@rynx-ai/server 0.1.11-beta.3 → 0.1.11-beta.31
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/control-api.d.ts +16 -4
- package/dist/control-api.js +713 -83
- package/dist/control-web/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/control-web/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/control-web/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/control-web/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/control-web/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/control-web/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/control-web/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/control-web/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/control-web/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/control-web/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/control-web/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/control-web/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/control-web/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/control-web/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/control-web/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/control-web/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/control-web/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/control-web/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/control-web/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/control-web/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/control-web/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/control-web/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/control-web/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/control-web/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/control-web/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/control-web/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/control-web/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/control-web/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/control-web/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/control-web/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/control-web/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/control-web/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/control-web/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/control-web/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/control-web/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/control-web/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/control-web/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/control-web/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/control-web/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/control-web/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/control-web/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/control-web/assets/abap-BdImnpbu.js +1 -0
- package/dist/control-web/assets/abnfDiagram-VRR7QNED-8c99_3I5.js +1 -0
- package/dist/control-web/assets/actionscript-3-CoDkCxhg.js +1 -0
- package/dist/control-web/assets/ada-bCR0ucgS.js +1 -0
- package/dist/control-web/assets/andromeeda-C4gqWexZ.js +1 -0
- package/dist/control-web/assets/angular-html-CU67Zn6k.js +1 -0
- package/dist/control-web/assets/angular-ts-BwZT4LLn.js +1 -0
- package/dist/control-web/assets/apache-Pmp26Uib.js +1 -0
- package/dist/control-web/assets/apex-D8_7TLub.js +1 -0
- package/dist/control-web/assets/apl-dKokRX4l.js +1 -0
- package/dist/control-web/assets/applescript-Co6uUVPk.js +1 -0
- package/dist/control-web/assets/ara-BRHolxvo.js +1 -0
- package/dist/control-web/assets/arc-FWW96Tzo.js +1 -0
- package/dist/control-web/assets/architectureDiagram-ZJ3FMSHR-B5FrqoRB.js +36 -0
- package/dist/control-web/assets/asciidoc-Ve4PFQV2.js +1 -0
- package/dist/control-web/assets/asm-D_Q5rh1f.js +1 -0
- package/dist/control-web/assets/astro-CbQHKStN.js +1 -0
- package/dist/control-web/assets/aurora-x-D-2ljcwZ.js +1 -0
- package/dist/control-web/assets/awk-DMzUqQB5.js +1 -0
- package/dist/control-web/assets/ayu-dark-DYE7WIF3.js +1 -0
- package/dist/control-web/assets/ayu-light-BA47KaF1.js +1 -0
- package/dist/control-web/assets/ayu-mirage-32ctXXKs.js +1 -0
- package/dist/control-web/assets/ballerina-BFfxhgS-.js +1 -0
- package/dist/control-web/assets/bat-BkioyH1T.js +1 -0
- package/dist/control-web/assets/beancount-k_qm7-4y.js +1 -0
- package/dist/control-web/assets/berry-uYugtg8r.js +1 -0
- package/dist/control-web/assets/bibtex-CHM0blh-.js +1 -0
- package/dist/control-web/assets/bicep-Bmn6On1c.js +1 -0
- package/dist/control-web/assets/bird2-DPOp833l.js +1 -0
- package/dist/control-web/assets/blade-D4QpJJKB.js +1 -0
- package/dist/control-web/assets/blockDiagram-677ZJIJ3-DJRwOGMa.js +132 -0
- package/dist/control-web/assets/bsl-BO_Y6i37.js +1 -0
- package/dist/control-web/assets/c-BIGW1oBm.js +1 -0
- package/dist/control-web/assets/c3-eo99z4R2.js +1 -0
- package/dist/control-web/assets/c4Diagram-LMCZKHZV-B8FCUurl.js +10 -0
- package/dist/control-web/assets/cadence-Bv_4Rxtq.js +1 -0
- package/dist/control-web/assets/cairo-KRGpt6FW.js +1 -0
- package/dist/control-web/assets/catppuccin-frappe-DFWUc33u.js +1 -0
- package/dist/control-web/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
- package/dist/control-web/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
- package/dist/control-web/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
- package/dist/control-web/assets/channel-Bnyhn1Qs.js +1 -0
- package/dist/control-web/assets/chunk-2Q5K7J3B-DC5xexY2.js +1 -0
- package/dist/control-web/assets/chunk-32BRIVSS-DAzT69zb.js +1 -0
- package/dist/control-web/assets/chunk-5VM5RSS4-CXKpL77L.js +15 -0
- package/dist/control-web/assets/chunk-EX3LRPZG-DQKQvoPv.js +231 -0
- package/dist/control-web/assets/chunk-JWPE2WC7-CWMqpJoT.js +1 -0
- package/dist/control-web/assets/chunk-MOJQB5TN-Bd8jn7RZ.js +88 -0
- package/dist/control-web/assets/chunk-RYQCIY6F-DKXEMFO6.js +1 -0
- package/dist/control-web/assets/chunk-V7JOEXUC-BUDLq5nU.js +206 -0
- package/dist/control-web/assets/chunk-VR4S4FIN-C65l7VIz.js +1 -0
- package/dist/control-web/assets/chunk-XXDRQBXY-Y2498HkC.js +1 -0
- package/dist/control-web/assets/clarity-D53aC0YG.js +1 -0
- package/dist/control-web/assets/classDiagram-OUVF2IWQ-CBtXSdwW.js +1 -0
- package/dist/control-web/assets/classDiagram-v2-EOCWNBFH-CBtXSdwW.js +1 -0
- package/dist/control-web/assets/clojure-P80f7IUj.js +1 -0
- package/dist/control-web/assets/cmake-D1j8_8rp.js +1 -0
- package/dist/control-web/assets/cobol-nwyudZeR.js +1 -0
- package/dist/control-web/assets/codeowners-Bp6g37R7.js +1 -0
- package/dist/control-web/assets/codeql-DsOJ9woJ.js +1 -0
- package/dist/control-web/assets/coffee-Ch7k5sss.js +1 -0
- package/dist/control-web/assets/common-lisp-Cg-RD9OK.js +1 -0
- package/dist/control-web/assets/coq-DkFqJrB1.js +1 -0
- package/dist/control-web/assets/cose-bilkent-JH36ORCC-C9aVXb8E.js +1 -0
- package/dist/control-web/assets/cpp-CofmeUqb.js +1 -0
- package/dist/control-web/assets/crystal-tKQVLTB8.js +1 -0
- package/dist/control-web/assets/csharp-COcwbKMJ.js +1 -0
- package/dist/control-web/assets/css-DPfMkruS.js +1 -0
- package/dist/control-web/assets/csv-fuZLfV_i.js +1 -0
- package/dist/control-web/assets/cue-D82EKSYY.js +1 -0
- package/dist/control-web/assets/cynefin-VYW2F7L2-BsyMhvG0.js +178 -0
- package/dist/control-web/assets/cynefinDiagram-TSTJHNR4-DwY43f3-.js +62 -0
- package/dist/control-web/assets/cypher-COkxafJQ.js +1 -0
- package/dist/control-web/assets/cytoscape.esm-DTSO7Bv0.js +331 -0
- package/dist/control-web/assets/d-85-TOEBH.js +1 -0
- package/dist/control-web/assets/dagre-VKFMJZFB-CP1xk7Ox.js +4 -0
- package/dist/control-web/assets/dark-plus-C3mMm8J8.js +1 -0
- package/dist/control-web/assets/dart-CF10PKvl.js +1 -0
- package/dist/control-web/assets/dax-CEL-wOlO.js +1 -0
- package/dist/control-web/assets/defaultLocale-DX6XiGOO.js +1 -0
- package/dist/control-web/assets/desktop-BmXAJ9_W.js +1 -0
- package/dist/control-web/assets/diagram-FQU43EPY-D_yRnH1b.js +3 -0
- package/dist/control-web/assets/diagram-G47NLZAW-DpTmLmbm.js +24 -0
- package/dist/control-web/assets/diagram-NH7WQ7WH-Wh_P26Dr.js +24 -0
- package/dist/control-web/assets/diagram-OA4YK3LP-BMMaO78f.js +30 -0
- package/dist/control-web/assets/diagram-WEI45ONY-D8smty9F.js +41 -0
- package/dist/control-web/assets/diff-D97Zzqfu.js +1 -0
- package/dist/control-web/assets/docker-BcOcwvcX.js +1 -0
- package/dist/control-web/assets/dotenv-Da5cRb03.js +1 -0
- package/dist/control-web/assets/dracula-BzJJZx-M.js +1 -0
- package/dist/control-web/assets/dracula-soft-BXkSAIEj.js +1 -0
- package/dist/control-web/assets/dream-maker-BtqSS_iP.js +1 -0
- package/dist/control-web/assets/ebnfDiagram-CCIWWBDH-BqVsmEYh.js +1 -0
- package/dist/control-web/assets/edge-BkV0erSs.js +1 -0
- package/dist/control-web/assets/elixir-CDX3lj18.js +1 -0
- package/dist/control-web/assets/elm-DbKCFpqz.js +1 -0
- package/dist/control-web/assets/emacs-lisp-C9XAeP06.js +1 -0
- package/dist/control-web/assets/erDiagram-Q63AITRT-CxaumIzW.js +85 -0
- package/dist/control-web/assets/erb-B12qg9BL.js +1 -0
- package/dist/control-web/assets/erlang-DsQrWhSR.js +1 -0
- package/dist/control-web/assets/everforest-dark-BgDCqdQA.js +1 -0
- package/dist/control-web/assets/everforest-light-C8M2exoo.js +1 -0
- package/dist/control-web/assets/fennel-BYunw83y.js +1 -0
- package/dist/control-web/assets/fish-BvzEVeQv.js +1 -0
- package/dist/control-web/assets/flowDiagram-23GEKE2U-DZhUBne-.js +156 -0
- package/dist/control-web/assets/fluent-C4IJs8-o.js +1 -0
- package/dist/control-web/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
- package/dist/control-web/assets/fortran-free-form-BxgE0vQu.js +1 -0
- package/dist/control-web/assets/fsharp-CXgrBDvD.js +1 -0
- package/dist/control-web/assets/ganttDiagram-NO4QXBWP-B20dY8SF.js +292 -0
- package/dist/control-web/assets/gdresource-BOOCDP_w.js +1 -0
- package/dist/control-web/assets/gdscript-C5YyOfLZ.js +1 -0
- package/dist/control-web/assets/gdshader-DkwncUOv.js +1 -0
- package/dist/control-web/assets/genie-D0YGMca9.js +1 -0
- package/dist/control-web/assets/gherkin-DyxjwDmM.js +1 -0
- package/dist/control-web/assets/git-commit-F4YmCXRG.js +1 -0
- package/dist/control-web/assets/git-rebase-r7XF79zn.js +1 -0
- package/dist/control-web/assets/gitGraphDiagram-IHSO6WYX-CAlnqFfW.js +106 -0
- package/dist/control-web/assets/github-dark-DHJKELXO.js +1 -0
- package/dist/control-web/assets/github-dark-default-Cuk6v7N8.js +1 -0
- package/dist/control-web/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- package/dist/control-web/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- package/dist/control-web/assets/github-light-DAi9KRSo.js +1 -0
- package/dist/control-web/assets/github-light-default-D7oLnXFd.js +1 -0
- package/dist/control-web/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- package/dist/control-web/assets/gleam-BspZqrRM.js +1 -0
- package/dist/control-web/assets/glimmer-js-Rg0-pVw9.js +1 -0
- package/dist/control-web/assets/glimmer-ts-U6CK756n.js +1 -0
- package/dist/control-web/assets/glsl-DplSGwfg.js +1 -0
- package/dist/control-web/assets/gn-n2N0HUVH.js +1 -0
- package/dist/control-web/assets/gnuplot-DdkO51Og.js +1 -0
- package/dist/control-web/assets/go-CxLEBnE3.js +1 -0
- package/dist/control-web/assets/graph-C9eacEi8.js +1 -0
- package/dist/control-web/assets/graphql-ChdNCCLP.js +1 -0
- package/dist/control-web/assets/groovy-gcz8RCvz.js +1 -0
- package/dist/control-web/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
- package/dist/control-web/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
- package/dist/control-web/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
- package/dist/control-web/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
- package/dist/control-web/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
- package/dist/control-web/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
- package/dist/control-web/assets/hack-CaT9iCJl.js +1 -0
- package/dist/control-web/assets/haml-B8DHNrY2.js +1 -0
- package/dist/control-web/assets/handlebars-BL8al0AC.js +1 -0
- package/dist/control-web/assets/haskell-Df6bDoY_.js +1 -0
- package/dist/control-web/assets/haxe-CzTSHFRz.js +1 -0
- package/dist/control-web/assets/hcl-BWvSN4gD.js +1 -0
- package/dist/control-web/assets/{highlighted-body-OFNGDK62-DWWsUtHF.js → highlighted-body-OFNGDK62-vBlGjC8F.js} +1 -1
- package/dist/control-web/assets/hjson-D5-asLiD.js +1 -0
- package/dist/control-web/assets/hlsl-D3lLCCz7.js +1 -0
- package/dist/control-web/assets/horizon-BUw7H-hv.js +1 -0
- package/dist/control-web/assets/horizon-bright-Cn-bp-IR.js +1 -0
- package/dist/control-web/assets/houston-DnULxvSX.js +1 -0
- package/dist/control-web/assets/html-GMplVEZG.js +1 -0
- package/dist/control-web/assets/html-derivative-BFtXZ54Q.js +1 -0
- package/dist/control-web/assets/http-jrhK8wxY.js +1 -0
- package/dist/control-web/assets/hurl-irOxFIW8.js +1 -0
- package/dist/control-web/assets/hxml-Bvhsp5Yf.js +1 -0
- package/dist/control-web/assets/hy-DFXneXwc.js +1 -0
- package/dist/control-web/assets/imba-DGztddWO.js +1 -0
- package/dist/control-web/assets/index-B3g4Kfko.js +153 -0
- package/dist/control-web/assets/index-BKqZNg1a.js +718 -0
- package/dist/control-web/assets/index-CZrE_F_i.css +32 -0
- package/dist/control-web/assets/infoDiagram-FWYZ7A6U-PaEyeSke.js +2 -0
- package/dist/control-web/assets/ini-BEwlwnbL.js +1 -0
- package/dist/control-web/assets/init-Gi6I4Gst.js +1 -0
- package/dist/control-web/assets/ishikawaDiagram-FXEZZL3T-BwsgPXGC.js +70 -0
- package/dist/control-web/assets/java-CylS5w8V.js +1 -0
- package/dist/control-web/assets/javascript-wDzz0qaB.js +1 -0
- package/dist/control-web/assets/jinja-4LBKfQ-Z.js +1 -0
- package/dist/control-web/assets/jison-wvAkD_A8.js +1 -0
- package/dist/control-web/assets/journeyDiagram-5HDEW3XC-BUEf1NEq.js +139 -0
- package/dist/control-web/assets/json-Cp-IABpG.js +1 -0
- package/dist/control-web/assets/json5-C9tS-k6U.js +1 -0
- package/dist/control-web/assets/jsonc-Des-eS-w.js +1 -0
- package/dist/control-web/assets/jsonl-DcaNXYhu.js +1 -0
- package/dist/control-web/assets/jsonnet-DFQXde-d.js +1 -0
- package/dist/control-web/assets/jssm-C2t-YnRu.js +1 -0
- package/dist/control-web/assets/jsx-g9-lgVsj.js +1 -0
- package/dist/control-web/assets/julia-CxzCAyBv.js +1 -0
- package/dist/control-web/assets/just-Cw27pwNe.js +1 -0
- package/dist/control-web/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
- package/dist/control-web/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
- package/dist/control-web/assets/kanagawa-wave-DWedfzmr.js +1 -0
- package/dist/control-web/assets/kanban-definition-HUTT4EX6-CiTCwnJ7.js +89 -0
- package/dist/control-web/assets/kdl-DV7GczEv.js +1 -0
- package/dist/control-web/assets/kotlin-BdnUsdx6.js +1 -0
- package/dist/control-web/assets/kusto-DZf3V79B.js +1 -0
- package/dist/control-web/assets/laserwave-DUszq2jm.js +1 -0
- package/dist/control-web/assets/latex-CWtU0Tv5.js +1 -0
- package/dist/control-web/assets/layout-DEXfKzaS.js +1 -0
- package/dist/control-web/assets/lean-BZvkOJ9d.js +1 -0
- package/dist/control-web/assets/less-B1dDrJ26.js +1 -0
- package/dist/control-web/assets/light-plus-B7mTdjB0.js +1 -0
- package/dist/control-web/assets/linear-Cs4GSPvX.js +1 -0
- package/dist/control-web/assets/liquid-DYVedYrR.js +1 -0
- package/dist/control-web/assets/llvm-DjAJT7YJ.js +1 -0
- package/dist/control-web/assets/log-2UxHyX5q.js +1 -0
- package/dist/control-web/assets/logo-BtOb2qkB.js +1 -0
- package/dist/control-web/assets/lua-BaeVxFsk.js +1 -0
- package/dist/control-web/assets/luau-C-HG3fhB.js +1 -0
- package/dist/control-web/assets/make-CHLpvVh8.js +1 -0
- package/dist/control-web/assets/map-Czzmt4hB.js +1 -0
- package/dist/control-web/assets/markdown-Cvjx9yec.js +1 -0
- package/dist/control-web/assets/marko-CnJfTvn9.js +1 -0
- package/dist/control-web/assets/material-theme-D5KoaKCx.js +1 -0
- package/dist/control-web/assets/material-theme-darker-BfHTSMKl.js +1 -0
- package/dist/control-web/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- package/dist/control-web/assets/material-theme-ocean-CyktbL80.js +1 -0
- package/dist/control-web/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- package/dist/control-web/assets/matlab-D7o27uSR.js +1 -0
- package/dist/control-web/assets/mdc-BMNejdWA.js +1 -0
- package/dist/control-web/assets/mdx-Cmh6b_Ma.js +1 -0
- package/dist/control-web/assets/mermaid-GHXKKRXX-BYZTj3zW.css +1 -0
- package/dist/control-web/assets/mermaid-GHXKKRXX-C_lUqoOB.js +710 -0
- package/dist/control-web/assets/mermaid-mWjccvbQ.js +1 -0
- package/dist/control-web/assets/min-dark-CafNBF8u.js +1 -0
- package/dist/control-web/assets/min-light-CTRr51gU.js +1 -0
- package/dist/control-web/assets/mindmap-definition-LN4V7U3C-B8TkylOR.js +96 -0
- package/dist/control-web/assets/mipsasm-CKIfxQSi.js +1 -0
- package/dist/control-web/assets/mojo-rZm6bMo-.js +1 -0
- package/dist/control-web/assets/monokai-D4h5O-jR.js +1 -0
- package/dist/control-web/assets/moonbit-_H4v1dQx.js +1 -0
- package/dist/control-web/assets/move-IF9eRakj.js +1 -0
- package/dist/control-web/assets/narrat-DRg8JJMk.js +1 -0
- package/dist/control-web/assets/nextflow-Zz6hmt5N.js +1 -0
- package/dist/control-web/assets/nextflow-groovy-BeH2EWoN.js +1 -0
- package/dist/control-web/assets/nginx-BpAMiNFr.js +1 -0
- package/dist/control-web/assets/night-owl-C39BiMTA.js +1 -0
- package/dist/control-web/assets/night-owl-light-CMTm3GFP.js +1 -0
- package/dist/control-web/assets/nim-CVrawwO9.js +1 -0
- package/dist/control-web/assets/nix-CwoSXNpI.js +1 -0
- package/dist/control-web/assets/nord-Ddv68eIx.js +1 -0
- package/dist/control-web/assets/nushell-Cz2AlsmD.js +1 -0
- package/dist/control-web/assets/objective-c-DXmwc3jG.js +1 -0
- package/dist/control-web/assets/objective-cpp-CLxacb5B.js +1 -0
- package/dist/control-web/assets/ocaml-C0hk2d4L.js +1 -0
- package/dist/control-web/assets/odin-BBf5iR-q.js +1 -0
- package/dist/control-web/assets/one-dark-pro-DVMEJ2y_.js +1 -0
- package/dist/control-web/assets/one-light-C3Wv6jpd.js +1 -0
- package/dist/control-web/assets/openscad-C4EeE6gA.js +1 -0
- package/dist/control-web/assets/ordinal-Cboi1Yqb.js +1 -0
- package/dist/control-web/assets/pascal-D93ZcfNL.js +1 -0
- package/dist/control-web/assets/pegDiagram-2B236MQR-Bnge_jzz.js +1 -0
- package/dist/control-web/assets/perl-C0TMdlhV.js +1 -0
- package/dist/control-web/assets/php-Dhbhpdrm.js +1 -0
- package/dist/control-web/assets/pieDiagram-ENE6RG2P-DOP7FAKG.js +39 -0
- package/dist/control-web/assets/pkl-u5AG7uiY.js +1 -0
- package/dist/control-web/assets/plastic-3e1v2bzS.js +1 -0
- package/dist/control-web/assets/plsql-ChMvpjG-.js +1 -0
- package/dist/control-web/assets/po-BTJTHyun.js +1 -0
- package/dist/control-web/assets/poimandres-CS3Unz2-.js +1 -0
- package/dist/control-web/assets/polar-C0HS_06l.js +1 -0
- package/dist/control-web/assets/postcss-CXtECtnM.js +1 -0
- package/dist/control-web/assets/powerquery-CEu0bR-o.js +1 -0
- package/dist/control-web/assets/powershell-Dpen1YoG.js +1 -0
- package/dist/control-web/assets/prisma-Dd19v3D-.js +1 -0
- package/dist/control-web/assets/prolog-CbFg5uaA.js +1 -0
- package/dist/control-web/assets/proto-C7zT0LnQ.js +1 -0
- package/dist/control-web/assets/pug-CGlum2m_.js +1 -0
- package/dist/control-web/assets/puppet-BMWR74SV.js +1 -0
- package/dist/control-web/assets/purescript-CklMAg4u.js +1 -0
- package/dist/control-web/assets/python-B6aJPvgy.js +1 -0
- package/dist/control-web/assets/qml-3beO22l8.js +1 -0
- package/dist/control-web/assets/qmldir-C8lEn-DE.js +1 -0
- package/dist/control-web/assets/qss-IeuSbFQv.js +1 -0
- package/dist/control-web/assets/quadrantDiagram-ABIIQ3AL-Cqqu5uu-.js +7 -0
- package/dist/control-web/assets/r-Dspwwk_N.js +1 -0
- package/dist/control-web/assets/racket-BqYA7rlc.js +1 -0
- package/dist/control-web/assets/railroadDiagram-RFXS5EU6-1bk56BMW.js +1 -0
- package/dist/control-web/assets/raku-DXvB9xmW.js +1 -0
- package/dist/control-web/assets/razor-Uh8Bk_45.js +1 -0
- package/dist/control-web/assets/red-bN70gL4F.js +1 -0
- package/dist/control-web/assets/reg-C-SQnVFl.js +1 -0
- package/dist/control-web/assets/regexp-CDVJQ6XC.js +1 -0
- package/dist/control-web/assets/rel-C3B-1QV4.js +1 -0
- package/dist/control-web/assets/requirementDiagram-TGXJPOKE-BHVwG79A.js +84 -0
- package/dist/control-web/assets/riscv-BM1_JUlF.js +1 -0
- package/dist/control-web/assets/ron-D8l8udqQ.js +1 -0
- package/dist/control-web/assets/rose-pine-dawn-DHQR4-dF.js +1 -0
- package/dist/control-web/assets/rose-pine-moon-D4_iv3hh.js +1 -0
- package/dist/control-web/assets/rose-pine-qdsjHGoJ.js +1 -0
- package/dist/control-web/assets/rosmsg-BJDFO7_C.js +1 -0
- package/dist/control-web/assets/rst-BrH8l1NY.js +1 -0
- package/dist/control-web/assets/ruby-Dw2BHqvy.js +1 -0
- package/dist/control-web/assets/rust-B1yitclQ.js +1 -0
- package/dist/control-web/assets/sankeyDiagram-HTMAVEWB-ghjBFqfs.js +40 -0
- package/dist/control-web/assets/sas-cz2c8ADy.js +1 -0
- package/dist/control-web/assets/sass-Cj5Yp3dK.js +1 -0
- package/dist/control-web/assets/scala-C151Ov-r.js +1 -0
- package/dist/control-web/assets/scheme-C98Dy4si.js +1 -0
- package/dist/control-web/assets/scss-OYdSNvt2.js +1 -0
- package/dist/control-web/assets/sdbl-DVxCFoDh.js +1 -0
- package/dist/control-web/assets/sequenceDiagram-DBY2YBRQ-DChtyqq5.js +162 -0
- package/dist/control-web/assets/shaderlab-Dg9Lc6iA.js +1 -0
- package/dist/control-web/assets/shellscript-Yzrsuije.js +1 -0
- package/dist/control-web/assets/shellsession-BADoaaVG.js +1 -0
- package/dist/control-web/assets/sizeCapture-X5ZJPWSS-BNp94nCS.js +1 -0
- package/dist/control-web/assets/slack-dark-BthQWCQV.js +1 -0
- package/dist/control-web/assets/slack-ochin-DqwNpetd.js +1 -0
- package/dist/control-web/assets/smalltalk-BERRCDM3.js +1 -0
- package/dist/control-web/assets/snazzy-light-Bw305WKR.js +1 -0
- package/dist/control-web/assets/solarized-dark-DXbdFlpD.js +1 -0
- package/dist/control-web/assets/solarized-light-L9t79GZl.js +1 -0
- package/dist/control-web/assets/solidity-rGO070M0.js +1 -0
- package/dist/control-web/assets/soy-Brmx7dQM.js +1 -0
- package/dist/control-web/assets/sparql-rVzFXLq3.js +1 -0
- package/dist/control-web/assets/splunk-BtCnVYZw.js +1 -0
- package/dist/control-web/assets/sql-BLtJtn59.js +1 -0
- package/dist/control-web/assets/ssh-config-_ykCGR6B.js +1 -0
- package/dist/control-web/assets/stata-BH5u7GGu.js +1 -0
- package/dist/control-web/assets/stateDiagram-2N3HPSRC-CaFYkZZ2.js +1 -0
- package/dist/control-web/assets/stateDiagram-v2-6OUMAXLB-CCvEZFYI.js +1 -0
- package/dist/control-web/assets/stylus-BEDo0Tqx.js +1 -0
- package/dist/control-web/assets/surrealql-Bq5Q-fJD.js +1 -0
- package/dist/control-web/assets/svelte-C_ipcX3V.js +1 -0
- package/dist/control-web/assets/swift-D82vCrfD.js +1 -0
- package/dist/control-web/assets/swimlanes-5IMT3BWC-CV2YWeYv.js +2 -0
- package/dist/control-web/assets/swimlanesDiagram-G3AALYLV-BFAdJHEB.js +8 -0
- package/dist/control-web/assets/synthwave-84-CbfX1IO0.js +1 -0
- package/dist/control-web/assets/system-verilog-CnnmHF94.js +1 -0
- package/dist/control-web/assets/systemd-4A_iFExJ.js +1 -0
- package/dist/control-web/assets/talonscript-CkByrt1z.js +1 -0
- package/dist/control-web/assets/tasl-QIJgUcNo.js +1 -0
- package/dist/control-web/assets/tcl-dwOrl1Do.js +1 -0
- package/dist/control-web/assets/templ-P3uqSqPl.js +1 -0
- package/dist/control-web/assets/terraform-BETggiCN.js +1 -0
- package/dist/control-web/assets/tex-idrVyKtj.js +1 -0
- package/dist/control-web/assets/timeline-definition-FHXFAJF6-Cq32UWLH.js +120 -0
- package/dist/control-web/assets/tokyo-night-hegEt444.js +1 -0
- package/dist/control-web/assets/toml-vGWfd6FD.js +1 -0
- package/dist/control-web/assets/ts-tags-zn1MmPIZ.js +1 -0
- package/dist/control-web/assets/tsv-B_m7g4N7.js +1 -0
- package/dist/control-web/assets/tsx-COt5Ahok.js +1 -0
- package/dist/control-web/assets/turtle-BsS91CYL.js +1 -0
- package/dist/control-web/assets/twig-DNn4PbVi.js +1 -0
- package/dist/control-web/assets/typescript-BPQ3VLAy.js +1 -0
- package/dist/control-web/assets/typespec-BGHnOYBU.js +1 -0
- package/dist/control-web/assets/typst-DHCkPAjA.js +1 -0
- package/dist/control-web/assets/v-BcVCzyr7.js +1 -0
- package/dist/control-web/assets/vala-CsfeWuGM.js +1 -0
- package/dist/control-web/assets/vb-D17OF-Vu.js +1 -0
- package/dist/control-web/assets/vennDiagram-L72KCM5P-BgBoqPth.js +34 -0
- package/dist/control-web/assets/verilog-BQ8w6xss.js +1 -0
- package/dist/control-web/assets/vesper-DU1UobuO.js +1 -0
- package/dist/control-web/assets/vhdl-CeAyd5Ju.js +1 -0
- package/dist/control-web/assets/viml-CJc9bBzg.js +1 -0
- package/dist/control-web/assets/vitesse-black-Bkuqu6BP.js +1 -0
- package/dist/control-web/assets/vitesse-dark-D0r3Knsf.js +1 -0
- package/dist/control-web/assets/vitesse-light-CVO1_9PV.js +1 -0
- package/dist/control-web/assets/vue-DN_0RTcg.js +1 -0
- package/dist/control-web/assets/vue-html-AaS7Mt5G.js +1 -0
- package/dist/control-web/assets/vue-vine-CQOfvN7w.js +1 -0
- package/dist/control-web/assets/vyper-CDx5xZoG.js +1 -0
- package/dist/control-web/assets/wardleyDiagram-EHGQE667-VsC2Gfpu.js +78 -0
- package/dist/control-web/assets/wasm-CG6Dc4jp.js +1 -0
- package/dist/control-web/assets/wasm-MzD3tlZU.js +1 -0
- package/dist/control-web/assets/wenyan-BV7otONQ.js +1 -0
- package/dist/control-web/assets/wgsl-Dx-B1_4e.js +1 -0
- package/dist/control-web/assets/wikitext-BhOHFoWU.js +1 -0
- package/dist/control-web/assets/wit-5i3qLPDT.js +1 -0
- package/dist/control-web/assets/wolfram-lXgVvXCa.js +1 -0
- package/dist/control-web/assets/xml-sdJ4AIDG.js +1 -0
- package/dist/control-web/assets/xsl-CtQFsRM5.js +1 -0
- package/dist/control-web/assets/xychartDiagram-FW5EYKEG-CyFiAunt.js +7 -0
- package/dist/control-web/assets/yaml-Buea-lGh.js +1 -0
- package/dist/control-web/assets/zenscript-DVFEvuxE.js +1 -0
- package/dist/control-web/assets/zig-VOosw3JB.js +1 -0
- package/dist/control-web/index.html +2 -2
- package/dist/control-web-dist.d.ts +1 -1
- package/dist/control-web-dist.js +4 -2
- package/dist/desktop-browser-host.d.ts +3 -1
- package/dist/desktop-browser-host.js +39 -4
- package/dist/machine-session-service.d.ts +94 -15
- package/dist/machine-session-service.js +700 -86
- package/dist/remote-runtime-dispatcher.d.ts +2 -2
- package/dist/remote-runtime-dispatcher.js +42 -2
- package/dist/remote-runtime-session-projection.d.ts +1 -0
- package/dist/remote-runtime-session-projection.js +6 -0
- package/dist/server.d.ts +47 -8
- package/dist/server.js +291 -47
- package/dist/session-browser-service.d.ts +24 -4
- package/dist/session-browser-service.js +127 -1
- package/dist/session-pending-inputs.d.ts +40 -0
- package/dist/session-pending-inputs.js +84 -0
- package/dist/session-portal.d.ts +54 -0
- package/dist/session-portal.js +983 -0
- package/dist/session-runtime-index.d.ts +2 -6
- package/dist/session-runtime-index.js +70 -38
- package/dist/terminal-ws.js +8 -6
- package/package.json +7 -7
- package/dist/control-web/assets/index-BnX7NWJX.js +0 -689
- package/dist/control-web/assets/index-CUoWRX2i.css +0 -32
- package/dist/control-web/assets/mermaid-GHXKKRXX-C1fxAgiw.js +0 -131
|
@@ -0,0 +1,710 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dagre-VKFMJZFB-CP1xk7Ox.js","assets/chunk-RYQCIY6F-DKXEMFO6.js","assets/graph-C9eacEi8.js","assets/map-Czzmt4hB.js","assets/layout-DEXfKzaS.js","assets/index-BKqZNg1a.js","assets/index-CZrE_F_i.css","assets/swimlanes-5IMT3BWC-CV2YWeYv.js","assets/cose-bilkent-JH36ORCC-C9aVXb8E.js","assets/cytoscape.esm-DTSO7Bv0.js","assets/c4Diagram-LMCZKHZV-B8FCUurl.js","assets/chunk-32BRIVSS-DAzT69zb.js","assets/flowDiagram-23GEKE2U-DZhUBne-.js","assets/chunk-5VM5RSS4-CXKpL77L.js","assets/chunk-XXDRQBXY-Y2498HkC.js","assets/chunk-VR4S4FIN-C65l7VIz.js","assets/channel-Bnyhn1Qs.js","assets/swimlanesDiagram-G3AALYLV-BFAdJHEB.js","assets/erDiagram-Q63AITRT-CxaumIzW.js","assets/gitGraphDiagram-IHSO6WYX-CAlnqFfW.js","assets/chunk-2Q5K7J3B-DC5xexY2.js","assets/chunk-JWPE2WC7-CWMqpJoT.js","assets/cynefin-VYW2F7L2-BsyMhvG0.js","assets/ganttDiagram-NO4QXBWP-B20dY8SF.js","assets/linear-Cs4GSPvX.js","assets/init-Gi6I4Gst.js","assets/defaultLocale-DX6XiGOO.js","assets/infoDiagram-FWYZ7A6U-PaEyeSke.js","assets/pieDiagram-ENE6RG2P-DOP7FAKG.js","assets/arc-FWW96Tzo.js","assets/ordinal-Cboi1Yqb.js","assets/quadrantDiagram-ABIIQ3AL-Cqqu5uu-.js","assets/xychartDiagram-FW5EYKEG-CyFiAunt.js","assets/requirementDiagram-TGXJPOKE-BHVwG79A.js","assets/sequenceDiagram-DBY2YBRQ-DChtyqq5.js","assets/classDiagram-OUVF2IWQ-CBtXSdwW.js","assets/chunk-V7JOEXUC-BUDLq5nU.js","assets/classDiagram-v2-EOCWNBFH-CBtXSdwW.js","assets/stateDiagram-2N3HPSRC-CaFYkZZ2.js","assets/chunk-EX3LRPZG-DQKQvoPv.js","assets/stateDiagram-v2-6OUMAXLB-CCvEZFYI.js","assets/journeyDiagram-5HDEW3XC-BUEf1NEq.js","assets/timeline-definition-FHXFAJF6-Cq32UWLH.js","assets/mindmap-definition-LN4V7U3C-B8TkylOR.js","assets/kanban-definition-HUTT4EX6-CiTCwnJ7.js","assets/sankeyDiagram-HTMAVEWB-ghjBFqfs.js","assets/diagram-NH7WQ7WH-Wh_P26Dr.js","assets/diagram-WEI45ONY-D8smty9F.js","assets/blockDiagram-677ZJIJ3-DJRwOGMa.js","assets/diagram-OA4YK3LP-BMMaO78f.js","assets/architectureDiagram-ZJ3FMSHR-B5FrqoRB.js","assets/diagram-FQU43EPY-D_yRnH1b.js","assets/ishikawaDiagram-FXEZZL3T-BwsgPXGC.js","assets/vennDiagram-L72KCM5P-BgBoqPth.js","assets/diagram-G47NLZAW-DpTmLmbm.js","assets/wardleyDiagram-EHGQE667-VsC2Gfpu.js","assets/cynefinDiagram-TSTJHNR4-DwY43f3-.js","assets/railroadDiagram-RFXS5EU6-1bk56BMW.js","assets/chunk-MOJQB5TN-Bd8jn7RZ.js","assets/ebnfDiagram-CCIWWBDH-BqVsmEYh.js","assets/abnfDiagram-VRR7QNED-8c99_3I5.js","assets/pegDiagram-2B236MQR-Bnge_jzz.js","assets/highlighted-body-OFNGDK62-vBlGjC8F.js","assets/index-B3g4Kfko.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var yv=Object.defineProperty;var xv=(e,t,r)=>t in e?yv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var $t=(e,t,r)=>xv(e,typeof t!="symbol"?t+"":t,r);import{c as Cv,g as Qf,_ as ee,r as Z,j as W,t as Gy,a as Xy,b as Ky,d as Cm,W as Qy,w as kv,e as Tv}from"./index-BKqZNg1a.js";/**
|
|
3
|
+
* @license lucide-react v0.475.0 - ISC
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the ISC license.
|
|
6
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/const wv=[["line",{x1:"3",x2:"21",y1:"6",y2:"6",key:"4m8b97"}],["path",{d:"M3 12h15a3 3 0 1 1 0 6h-4",key:"1cl7v7"}],["polyline",{points:"16 16 14 18 16 20",key:"1jznyi"}],["line",{x1:"3",x2:"10",y1:"18",y2:"18",key:"1h33wv"}]],vv=Cv("WrapText",wv),ke={eof:null,asterisk:42,underscore:95,tilde:126},Ns={attentionSideAfter:2,characterGroupPunctuation:2,characterGroupWhitespace:1},qi={data:"data",characterEscape:"characterEscape",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",strong:"strong",strongSequence:"strongSequence",strongText:"strongText"};const Sv=161,Ev=1114109,_v=[161,161,164,164,167,168,170,170,173,174,176,180,182,186,188,191,198,198,208,208,215,216,222,225,230,230,232,234,236,237,240,240,242,243,247,250,252,252,254,254,257,257,273,273,275,275,283,283,294,295,299,299,305,307,312,312,319,322,324,324,328,331,333,333,338,339,358,359,363,363,462,462,464,464,466,466,468,468,470,470,472,472,474,474,476,476,593,593,609,609,708,708,711,711,713,715,717,717,720,720,728,731,733,733,735,735,768,879,913,929,931,937,945,961,963,969,1025,1025,1040,1103,1105,1105,8208,8208,8211,8214,8216,8217,8220,8221,8224,8226,8228,8231,8240,8240,8242,8243,8245,8245,8251,8251,8254,8254,8308,8308,8319,8319,8321,8324,8364,8364,8451,8451,8453,8453,8457,8457,8467,8467,8470,8470,8481,8482,8486,8486,8491,8491,8531,8532,8539,8542,8544,8555,8560,8569,8585,8585,8592,8601,8632,8633,8658,8658,8660,8660,8679,8679,8704,8704,8706,8707,8711,8712,8715,8715,8719,8719,8721,8721,8725,8725,8730,8730,8733,8736,8739,8739,8741,8741,8743,8748,8750,8750,8756,8759,8764,8765,8776,8776,8780,8780,8786,8786,8800,8801,8804,8807,8810,8811,8814,8815,8834,8835,8838,8839,8853,8853,8857,8857,8869,8869,8895,8895,8978,8978,9312,9449,9451,9547,9552,9587,9600,9615,9618,9621,9632,9633,9635,9641,9650,9651,9654,9655,9660,9661,9664,9665,9670,9672,9675,9675,9678,9681,9698,9701,9711,9711,9733,9734,9737,9737,9742,9743,9756,9756,9758,9758,9792,9792,9794,9794,9824,9825,9827,9829,9831,9834,9836,9837,9839,9839,9886,9887,9919,9919,9926,9933,9935,9939,9941,9953,9955,9955,9960,9961,9963,9969,9972,9972,9974,9977,9979,9980,9982,9983,10045,10045,10102,10111,11094,11097,12872,12879,57344,63743,65024,65039,65533,65533,127232,127242,127248,127277,127280,127337,127344,127373,127375,127376,127387,127404,917760,917999,983040,1048573,1048576,1114109],Av=12288,Bv=65510,Lv=[12288,12288,65281,65376,65504,65510],Iv=8361,Mv=65518,Nv=[8361,8361,65377,65470,65474,65479,65482,65487,65490,65495,65498,65500,65512,65518],Fv=32,Ov=10630,Dv=[32,126,162,163,165,166,172,172,175,175,10214,10221,10629,10630],Rv=4352,Pv=262141,Zy=[4352,4447,8986,8987,9001,9002,9193,9196,9200,9200,9203,9203,9725,9726,9748,9749,9776,9783,9800,9811,9855,9855,9866,9871,9875,9875,9889,9889,9898,9899,9917,9918,9924,9925,9934,9934,9940,9940,9962,9962,9970,9971,9973,9973,9978,9978,9981,9981,9989,9989,9994,9995,10024,10024,10060,10060,10062,10062,10067,10069,10071,10071,10133,10135,10160,10160,10175,10175,11035,11036,11088,11088,11093,11093,11904,11929,11931,12019,12032,12245,12272,12287,12289,12350,12353,12438,12441,12543,12549,12591,12593,12686,12688,12773,12783,12830,12832,12871,12880,42124,42128,42182,43360,43388,44032,55203,63744,64255,65040,65049,65072,65106,65108,65126,65128,65131,94176,94180,94192,94198,94208,101589,101631,101662,101760,101874,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,119552,119638,119648,119670,126980,126980,127183,127183,127374,127374,127377,127386,127488,127490,127504,127547,127552,127560,127568,127569,127584,127589,127744,127776,127789,127797,127799,127868,127870,127891,127904,127946,127951,127955,127968,127984,127988,127988,127992,128062,128064,128064,128066,128252,128255,128317,128331,128334,128336,128359,128378,128378,128405,128406,128420,128420,128507,128591,128640,128709,128716,128716,128720,128722,128725,128728,128732,128735,128747,128748,128756,128764,128992,129003,129008,129008,129292,129338,129340,129349,129351,129535,129648,129660,129664,129674,129678,129734,129736,129736,129741,129756,129759,129770,129775,129784,131072,196605,196608,262141],vl=(e,t)=>{let r=0,i=Math.floor(e.length/2)-1;for(;r<=i;){const n=Math.floor((r+i)/2),a=n*2;if(t<e[a])i=n-1;else if(t>e[a+1])r=n+1;else return!0}return!1},km=19968,[$v,zv]=Hv(Zy);function Hv(e){let t=e[0],r=e[1];for(let i=0;i<e.length;i+=2){const n=e[i],a=e[i+1];if(km>=n&&km<=a)return[n,a];a-n>r-t&&(t=n,r=a)}return[t,r]}const qv=e=>e<Sv||e>Ev?!1:vl(_v,e),Uv=e=>e<Av||e>Bv?!1:vl(Lv,e),Wv=e=>e<Iv||e>Mv?!1:vl(Nv,e),jv=e=>e<Fv||e>Ov?!1:vl(Dv,e),Yv=e=>e>=$v&&e<=zv?!0:e<Rv||e>Pv?!1:vl(Zy,e);function Vv(e){return qv(e)?"ambiguous":Uv(e)?"fullwidth":Wv(e)?"halfwidth":jv(e)?"narrow":Yv(e)?"wide":"neutral"}function Gv(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function Xv(e){return Gv(e),Vv(e)}function Kv(e){return new RegExp("^\\p{Emoji_Presentation}","u").test(String.fromCodePoint(e))}function Qv(e){if(!e||e<4352)return!1;switch(Xv(e)){case"fullwidth":case"halfwidth":return!0;case"wide":return!Kv(e);case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999?null:!1;case"neutral":return new RegExp("^\\p{sc=Hangul}","u").test(String.fromCodePoint(e))}}function Zv(e,t){return t!==65025||!e||e<8216?!1:e===8216||e===8217||e===8220||e===8221}function Jv(e){return e!==null&&e>=65024&&e<=65038}const t9=Jy(new RegExp("\\p{P}|\\p{S}","u")),e9=Jy(/\s/);function Jy(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCodePoint(r))}}function Qe(e){return!!(e&Ns.characterGroupWhitespace)}function Ki(e){return(e&Kr.cjkPunctuation)===Ns.characterGroupPunctuation}function al(e){return!!(e&Kr.cjk)}function r9(e){return e===Kr.ivs}function Ma(e){return!!(e&Kr.cjkOrIvs)}function Sl(e){return e===Kr.nonEmojiGeneralUseVS}function Vu(e){return!!(e&Kr.spaceOrPunctuation)}const Ir=aa(/[A-Za-z]/),yr=aa(/[\dA-Za-z]/),i9=aa(/[#-'*+\--9=?A-Z^-~]/);function Gu(e){return e!==null&&(e<32||e===127)}const ed=aa(/\d/),n9=aa(/[\dA-Fa-f]/),a9=aa(/[!-/:-@[-`{-~]/);function Rt(e){return e!==null&&e<-2}function we(e){return e!==null&&(e<0||e===32)}function ue(e){return e===-2||e===-1||e===32}const Uc=aa(new RegExp("\\p{P}|\\p{S}","u")),Na=aa(/\s/);function aa(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}let Kr;(function(e){e.spaceOrPunctuation=3,e.cjk=4096,e.cjkPunctuation=4098,e.ivs=8192,e.cjkOrIvs=12288,e.nonEmojiGeneralUseVS=16384,e.variationSelector=24576,e.ivsToCjkRightShift=1})(Kr||(Kr={}));function xr(e){if(e===ke.eof||we(e)||e9(e))return Ns.characterGroupWhitespace;let t=0;if(e>=4352){if(Jv(e))return Kr.nonEmojiGeneralUseVS;switch(Qv(e)){case null:return Kr.ivs;case!0:t|=Kr.cjk;break}}return t9(e)&&(t|=Ns.characterGroupPunctuation),t}function Wc(e,t,r){if(!Sl(e))return e;const i=t(),n=xr(i);return!i||Qe(n)?e:Zv(i,r)?Kr.cjkPunctuation:s9(n)}function s9(e){return e&~Kr.ivs}function t4(e){return!!(e&&e>=55296&&e<=56319)}function e4(e){return!!(e&&e>=56320&&e<=57343)}function r4(e,t,r){if(t._bufferIndex<2)return e;const i=r({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return i&&i>=65536?i:e}function o9(e,t,r){const i=e>=65536?2:1;if(t._bufferIndex<1+i)return null;const n=t._bufferIndex-i-2,a=r({start:{...t,_bufferIndex:n>=0?n:0},end:{...t,_bufferIndex:t._bufferIndex-i}}),s=a.charCodeAt(a.length-1);if(Number.isNaN(s))return null;if(a.length<2||s<56320||57343<s)return s;const o=a.codePointAt(0);return o&&o>=65536?o:s}var i4=class{constructor(e,t,r){$t(this,"cachedValue");this.previousCode=e,this.nowPoint=t,this.sliceSerialize=r}value(){return this.cachedValue===void 0&&(this.cachedValue=o9(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function n4(e,t,r){const i=r({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return i&&i>=65536?i:e}function dr(e,t,r,i){const n=e.length;let a=0,s;if(t<0?t=-t>n?0:n+t:t=t>n?n:t,r=r>0?r:0,i.length<1e4)s=Array.from(i),s.unshift(t,r),e.splice(...s);else for(r&&e.splice(t,r);a<i.length;)s=i.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function cr(e,t){return e.length>0?(dr(e,e.length,0,t),e):t}function Gs(e,t,r){const i=[];let n=-1;for(;++n<e.length;){const a=e[n].resolveAll;a&&!i.includes(a)&&(t=a(t,r),i.push(a))}return t}const Yh={name:"attention",resolveAll:l9,tokenize:u9};function l9(e,t){let r=-1,i,n,a,s,o,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const h={...e[i][1].end},f={...e[r][1].start};Tm(h,-l),Tm(f,l),s={type:l>1?qi.strongSequence:qi.emphasisSequence,start:h,end:{...e[i][1].end}},o={type:l>1?qi.strongSequence:qi.emphasisSequence,start:{...e[r][1].start},end:f},a={type:l>1?qi.strongText:qi.emphasisText,start:{...e[i][1].end},end:{...e[r][1].start}},n={type:l>1?qi.strong:qi.emphasis,start:{...s.start},end:{...o.end}},e[i][1].end={...s.start},e[r][1].start={...o.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=cr(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=cr(u,[["enter",n,t],["enter",s,t],["exit",s,t],["enter",a,t]]),t.parser.constructs.insideSpan.null,u=cr(u,Gs(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),u=cr(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=cr(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,dr(e,i-1,r-i+3,u),r=i+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function u9(e,t){const r=this.parser.constructs.attentionMarkers.null,{now:i,sliceSerialize:n,previous:a}=this,s=e4(a)?r4(a,i(),n):a,o=xr(s),l=new i4(s,i(),n),u=Wc(o,l.value.bind(l),s);let c;return h;function h(d){return c=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===c)return e.consume(d),f;const p=e.exit("attentionSequence"),m=xr(t4(d)?n4(d,i(),n):d),g=Ki(u),y=g||Qe(u),k=Ki(m),w=k||Qe(m),_=Ma(u),A=!w||k&&(y||_)||r.includes(d),E=!y||g&&(w||al(m))||r.includes(s);return p._open=!!(c===ke.asterisk?A:A&&(Vu(u)||!E)),p._close=!!(c===ke.asterisk?E:E&&(Vu(m)||!A)),t(d)}}function Tm(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function c9(){return{text:{[ke.asterisk]:Yh,[ke.underscore]:Yh},insideSpan:{null:[Yh]}}}function h9(){const e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push(c9())}const d9=";".codePointAt(0)??ke.eof,f9="&".codePointAt(0)??ke.eof;function p9(){return{handlers:{emphasis:a4,strong:s4,text:m9}}}a4.peek=o4;s4.peek=l4;function a4(e,t,r,i){return u4(e,t,r,i,o4(e,t,r),1)}function s4(e,t,r,i){return u4(e,t,r,i,l4(e,t,r),2)}function o4(e,t,r){return r.options.emphasis||"*"}function l4(e,t,r){return r.options.strong||"*"}function u4(e,t,r,i,n,a){const s=n.repeat(a),o=r.enter(a===1?"emphasis":"strong"),l=r.createTracker(i),u=l.move(s);let c=l.move(r.containerPhrasing(e,{after:n,before:u,...l.current()}));const h=y9(e,t,r,i.before),f=x9(e,t,r,i.after),d=wm(h,Xu(c),n,"open");d.inside&&c&&(c=v9(c));const p=wm({current:id(c),previous:rd(c)},f,n,"close");p.inside&&c&&(c=S9(c));const m=l.move(s);o();const g=p.outside&&w9(t,r);return r.attentionEncodeSurroundingInfo={after:p.outside&&!g,before:d.outside},r.cjkFriendlyEncodeAfterSupplementaryText=g,u+c+m}function m9(e,t,r,i){const n=r;if(!n.cjkFriendlyEncodeAfterSupplementaryText)return r.safe(e.value,i);n.cjkFriendlyEncodeAfterSupplementaryText=!1;const[a=""]=[...e.value],s=e.value.slice(a.length);return`${Jf(a.codePointAt(0)??ke.eof)}${r.safe(s,{...i,before:";"})}`}function wm(e,t,r,i){const n=Zf(e),a=xr(t);if(!Ma(n)&&!Ma(a))return i==="open"?vm(n,a,r):vm(a,n,r);const s={inside:!1,outside:!1},o={inside:!0,outside:!1},l={inside:!1,outside:!0},u={inside:!0,outside:!0};for(const c of[s,o,l,u]){const h=i==="open"?c.outside?Sm:e:c.inside?Sm:e,f=i==="open"?c.inside?Em:t:c.outside?Em:t;if(i==="open"?g9(r,h,f):b9(r,h,f))return c}return u}function vm(e,t,r){return Vh(e)?Vh(t)?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:Qe(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:Qe(e)?Vh(t)?{inside:!1,outside:!1}:Qe(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:Qe(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function g9(e,t,r){const i=Zf(t),{close:n,open:a}=c4(i,xr(r));return e==="_"?a&&(Vu(i)||!n):a}function b9(e,t,r){const i=xr(r),{close:n,open:a}=c4(Zf(t),i);return e==="_"?n&&(Vu(i)||!a):n}function c4(e,t){const r=Ki(e),i=r||Qe(e),n=Ki(t),a=n||Qe(t);return{open:!a||n&&(i||Ma(e)),close:!i||r&&(a||al(t))}}function Vh(e){return!Qe(e)&&!Ki(e)}function Zf(e){const t=xr(e.current);return e.current===null||!Sl(t)?t:Wc(t,()=>e.previous,e.current)}function y9(e,t,r,i){let n=id(i),a=rd(i);if(C9(n)||T9(n,a)){const s=h4(e,t,r,-1);s&&(n=id(s),a=rd(s))}return{current:n,previous:a}}function x9(e,t,r,i){const n=Xu(i);if(!k9(n))return n;const a=h4(e,t,r,1);return a?Xu(a):n}function C9(e){return e!==null&&56320<=e&&e<=57343}function k9(e){return e!==null&&55296<=e&&e<=56319}function T9(e,t){return Sl(xr(e))&&(t===null||t===ke.eof)}function h4(e,t,r,i){if(!t)return;const n=r.indexStack.at(-1),a=t.children,s=typeof n=="number"?n:a.indexOf(e);if(s<0)return;const o=a[s+i];return d4(o)||void 0}function w9(e,t){if(!e)return!1;const r=t.indexStack.at(-1);if(typeof r!="number")return!1;const i=e.children[r+1];return(i==null?void 0:i.type)==="text"&&(Xu(i.value)??0)>65535}function d4(e){return!e||typeof e!="object"?"":"value"in e&&typeof e.value=="string"?e.value:"alt"in e&&typeof e.alt=="string"?e.alt:"children"in e&&Array.isArray(e.children)?e.children.map(d4).join(""):""}function Jf(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function v9(e){const[t=""]=[...e];return Jf(t.codePointAt(0)??ke.eof)+e.slice(t.length)}function S9(e){const t=[...e],r=t.pop();return`${t.join("")}${Jf((r==null?void 0:r.codePointAt(0))??ke.eof)}`}function rd(e){var r;const t=[...e];return t.pop(),((r=t.at(-1))==null?void 0:r.codePointAt(0))??ke.eof}function Xu(e){return e.codePointAt(0)??ke.eof}function id(e){var t;return((t=[...e].at(-1))==null?void 0:t.codePointAt(0))??ke.eof}const Sm={current:d9,previous:ke.eof},Em=f9;function E9(){const e=this.data();(e.toMarkdownExtensions||(e.toMarkdownExtensions=[])).push(p9())}function _9(){h9.call(this),E9.call(this)}var A9=_9;function B9(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:n,resolveAll:i};return t==null&&(t=!0),{text:{[ke.tilde]:r},insideSpan:{null:[r]},attentionMarkers:{null:[ke.tilde]}};function i(a,s){let o=-1;for(;++o<a.length;)if(a[o][0]==="enter"&&a[o][1].type==="strikethroughSequenceTemporary"&&a[o][1]._close){let l=o;for(;l--;)if(a[l][0]==="exit"&&a[l][1].type==="strikethroughSequenceTemporary"&&a[l][1]._open&&a[o][1].end.offset-a[o][1].start.offset===a[l][1].end.offset-a[l][1].start.offset){a[o][1].type="strikethroughSequence",a[l][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},a[l][1].start),end:Object.assign({},a[o][1].end)},c={type:"strikethroughText",start:Object.assign({},a[l][1].end),end:Object.assign({},a[o][1].start)},h=[["enter",u,s],["enter",a[l][1],s],["exit",a[l][1],s],["enter",c,s]],f=s.parser.constructs.insideSpan.null;f&&dr(h,h.length,0,Gs(f,a.slice(l+1,o),s)),dr(h,h.length,0,[["exit",c,s],["enter",a[o][1],s],["exit",a[o][1],s],["exit",u,s]]),dr(a,l-1,o-l+3,h),o=l+h.length-2;break}}for(o=-1;++o<a.length;)a[o][1].type==="strikethroughSequenceTemporary"&&(a[o][1].type=qi.data);return a}function n(a,s,o){const{now:l,sliceSerialize:u,previous:c}=this,h=e4(c)?r4(c,l(),u):c,f=xr(h),d=new i4(h,l(),u),p=Wc(f,d.value.bind(d),h),m=this.events;let g=0;return y;function y(w){return h===ke.tilde&&m[m.length-1][1].type!==qi.characterEscape?o(w):(a.enter("strikethroughSequenceTemporary"),k(w))}function k(w){const _=xr(h);if(w===ke.tilde)return g>1?o(w):(a.consume(w),g++,k);if(g<2&&!t)return o(w);const A=a.exit("strikethroughSequenceTemporary"),E=xr(t4(w)?n4(w,l(),u):w),N=Ki(p)||Qe(p),F=Ki(E)||Qe(E),Y=al(p)||r9(_);return A._open=!F||E===Ns.attentionSideAfter&&(N||Y),A._close=!N||_===Ns.attentionSideAfter&&(F||al(E)),s(w)}}}function L9(e){const t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(B9(e))}const I9=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],M9=";".codePointAt(0)??ke.eof,N9="&".codePointAt(0)??ke.eof;function F9(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:I9}],handlers:{delete:f4,text:O9}}}f4.peek=D9;function f4(e,t,r,i){const a=r.enter("strikethrough"),s=r.createTracker(i),o=s.move("~~");let l=s.move(r.containerPhrasing(e,{after:"~",before:o,...s.current()}));const u=$9(e,t,r,i.before),c=z9(e,t,r,i.after),h=_m(u,Ku(l),"open");h.inside&&l&&(l=j9(l));const f=_m({current:ad(l),previous:nd(l)},c,"close");f.inside&&l&&(l=Y9(l));const d=s.move("~~");a();const p=f.outside&&W9(t,r);return r.attentionEncodeSurroundingInfo={after:f.outside&&!p,before:h.outside},r.cjkFriendlyEncodeAfterSupplementaryText=p,o+l+d}function O9(e,t,r,i){const n=r;if(!n.cjkFriendlyEncodeAfterSupplementaryText)return r.safe(e.value,i);n.cjkFriendlyEncodeAfterSupplementaryText=!1;const[a=""]=[...e.value],s=e.value.slice(a.length);return`${e1(a.codePointAt(0)??ke.eof)}${r.safe(s,{...i,before:";"})}`}function D9(){return"~"}function _m(e,t,r){const i=t1(e),n=xr(t);if(!Ma(i)&&!Ma(n))return r==="open"?Am(i,n):Am(n,i);const a={inside:!1,outside:!1},s={inside:!0,outside:!1},o={inside:!1,outside:!0},l={inside:!0,outside:!0};for(const u of[a,s,o,l]){const c=r==="open"?u.outside?Bm:e:u.inside?Bm:e,h=r==="open"?u.inside?Lm:t:u.outside?Lm:t;if(r==="open"?R9(c,h):P9(c,h))return u}return l}function Am(e,t){return Gh(e)?Gh(t)?{inside:!1,outside:!1}:Qe(t)?{inside:!0,outside:!0}:{inside:!1,outside:!0}:Qe(e)?Gh(t)?{inside:!1,outside:!1}:Qe(t)?{inside:!0,outside:!0}:{inside:!1,outside:!1}:Qe(t)?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function R9(e,t){const{open:r}=p4(t1(e),xr(t));return r}function P9(e,t){const r=xr(t),{close:i}=p4(t1(e),r);return i}function p4(e,t){const r=Ki(e),i=r||Qe(e),n=Ki(t),a=n||Qe(t);return{open:!a||n&&(i||Ma(e)),close:!i||r&&(a||al(t))}}function Gh(e){return!Qe(e)&&!Ki(e)}function t1(e){const t=xr(e.current);return e.current===null||!Sl(t)?t:Wc(t,()=>e.previous,e.current)}function $9(e,t,r,i){let n=ad(i),a=nd(i);if(H9(n)||U9(n,a)){const s=m4(e,t,r,-1);s&&(n=ad(s),a=nd(s))}return{current:n,previous:a}}function z9(e,t,r,i){const n=Ku(i);if(!q9(n))return n;const a=m4(e,t,r,1);return a?Ku(a):n}function H9(e){return e!==null&&56320<=e&&e<=57343}function q9(e){return e!==null&&55296<=e&&e<=56319}function U9(e,t){return Sl(xr(e))&&(t===null||t===ke.eof)}function m4(e,t,r,i){if(!t)return;const n=r.indexStack.at(-1),a=t.children,s=typeof n=="number"?n:a.indexOf(e);if(s<0)return;const o=a[s+i];return g4(o)||void 0}function W9(e,t){if(!e)return!1;const r=t.indexStack.at(-1);if(typeof r!="number")return!1;const i=e.children[r+1];return(i==null?void 0:i.type)==="text"&&(Ku(i.value)??0)>65535}function g4(e){return!e||typeof e!="object"?"":"value"in e&&typeof e.value=="string"?e.value:"alt"in e&&typeof e.alt=="string"?e.alt:"children"in e&&Array.isArray(e.children)?e.children.map(g4).join(""):""}function e1(e){return`&#x${(e??0).toString(16).toUpperCase()};`}function j9(e){const[t=""]=[...e];return e1(t.codePointAt(0)??ke.eof)+e.slice(t.length)}function Y9(e){const t=[...e],r=t.pop();return`${t.join("")}${e1((r==null?void 0:r.codePointAt(0))??ke.eof)}`}function nd(e){var r;const t=[...e];return t.pop(),((r=t.at(-1))==null?void 0:r.codePointAt(0))??ke.eof}function Ku(e){return e.codePointAt(0)??ke.eof}function ad(e){var t;return((t=[...e].at(-1))==null?void 0:t.codePointAt(0))??ke.eof}const Bm={current:M9,previous:ke.eof},Lm=N9;function V9(){const e=this.data();(e.toMarkdownExtensions||(e.toMarkdownExtensions=[])).push(F9())}function G9(e){L9.call(this,e),V9.call(this)}var X9=G9;const El=(function(e){if(e==null)return J9;if(typeof e=="function")return jc(e);if(typeof e=="object")return Array.isArray(e)?K9(e):Q9(e);if(typeof e=="string")return Z9(e);throw new Error("Expected function, string, or object as test")});function K9(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=El(e[r]);return jc(i);function i(...n){let a=-1;for(;++a<t.length;)if(t[a].apply(this,n))return!0;return!1}}function Q9(e){const t=e;return jc(r);function r(i){const n=i;let a;for(a in e)if(n[a]!==t[a])return!1;return!0}}function Z9(e){return jc(t);function t(r){return r&&r.type===e}}function jc(e){return t;function t(r,i,n){return!!(tS(r)&&e.call(this,r,typeof i=="number"?i:void 0,n||void 0))}}function J9(){return!0}function tS(e){return e!==null&&typeof e=="object"&&"type"in e}const b4=[],Bo=!0,sd=!1,wa="skip";function Yc(e,t,r,i){let n;typeof t=="function"&&typeof r!="function"?(i=r,r=t):n=t;const a=El(n),s=i?-1:1;o(e,void 0,[])();function o(l,u,c){const h=l&&typeof l=="object"?l:{};if(typeof h.type=="string"){const d=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(f,"name",{value:"node ("+(l.type+(d?"<"+d+">":""))+")"})}return f;function f(){let d=b4,p,m,g;if((!t||a(l,u,c[c.length-1]||void 0))&&(d=eS(r(l,c)),d[0]===sd))return d;if("children"in l&&l.children){const y=l;if(y.children&&d[0]!==wa)for(m=(i?y.children.length:-1)+s,g=c.concat(y);m>-1&&m<y.children.length;){const k=y.children[m];if(p=o(k,m,g)(),p[0]===sd)return p;m=typeof p[1]=="number"?p[1]:m+s}}return d}}}function eS(e){return Array.isArray(e)?e:typeof e=="number"?[Bo,e]:e==null?b4:[e]}function Ei(e,t,r,i){let n,a,s;typeof t=="function"&&typeof r!="function"?(a=void 0,s=t,n=r):(a=t,s=r,n=i),Yc(e,a,o,n);function o(l,u){const c=u[u.length-1],h=c?c.children.indexOf(l):void 0;return s(l,h,c)}}var rS=new Set(["。",".",",","、","?","!",":",";","(",")","【","】","「","」","『","』","〈","〉","《","》"]),iS=/^(https?:\/\/|mailto:|www\.)/i,nS=e=>{if(e.children.length!==1)return!1;let t=e.children[0];return t.type==="text"&&t.value===e.url},aS=e=>{let t=0;for(let r of e){if(rS.has(r))return t;t+=r.length}return null},sS=(e,t)=>({...t,url:e,children:[{type:"text",value:e}]}),oS=e=>({type:"text",value:e}),lS=()=>e=>{Ei(e,"link",(t,r,i)=>{if(!i||typeof r!="number"||!nS(t)||!iS.test(t.url))return;let n=aS(t.url);if(n===null||n===0)return;let a=t.url.slice(0,n),s=t.url.slice(n),o=sS(a,t),l=oS(s);return i.children.splice(r,1,o,l),r+1})};function uS(){let e=[A9],t=[lS,X9],r=[...e,...t];return{name:"cjk",type:"cjk",remarkPluginsBefore:e,remarkPluginsAfter:t,remarkPlugins:r}}var cS=uS();class _l{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}_l.prototype.normal={};_l.prototype.property={};_l.prototype.space=void 0;function y4(e,t){const r={},i={};for(const n of e)Object.assign(r,n.property),Object.assign(i,n.normal);return new _l(r,i,t)}function sl(e){return e.toLowerCase()}class Vr{constructor(t,r){this.attribute=r,this.property=t}}Vr.prototype.attribute="";Vr.prototype.booleanish=!1;Vr.prototype.boolean=!1;Vr.prototype.commaOrSpaceSeparated=!1;Vr.prototype.commaSeparated=!1;Vr.prototype.defined=!1;Vr.prototype.mustUseProperty=!1;Vr.prototype.number=!1;Vr.prototype.overloadedBoolean=!1;Vr.prototype.property="";Vr.prototype.spaceSeparated=!1;Vr.prototype.space=void 0;let hS=0;const Jt=Ua(),He=Ua(),od=Ua(),mt=Ua(),ve=Ua(),Aa=Ua(),Xr=Ua();function Ua(){return 2**++hS}const ld=Object.freeze(Object.defineProperty({__proto__:null,boolean:Jt,booleanish:He,commaOrSpaceSeparated:Xr,commaSeparated:Aa,number:mt,overloadedBoolean:od,spaceSeparated:ve},Symbol.toStringTag,{value:"Module"})),Xh=Object.keys(ld);class r1 extends Vr{constructor(t,r,i,n){let a=-1;if(super(t,r),Im(this,"space",n),typeof i=="number")for(;++a<Xh.length;){const s=Xh[a];Im(this,Xh[a],(i&ld[s])===ld[s])}}}r1.prototype.defined=!0;function Im(e,t,r){r&&(e[t]=r)}function Xs(e){const t={},r={};for(const[i,n]of Object.entries(e.properties)){const a=new r1(i,e.transform(e.attributes||{},i),n,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),t[i]=a,r[sl(i)]=i,r[sl(a.attribute)]=i}return new _l(t,r,e.space)}const x4=Xs({properties:{ariaActiveDescendant:null,ariaAtomic:He,ariaAutoComplete:null,ariaBusy:He,ariaChecked:He,ariaColCount:mt,ariaColIndex:mt,ariaColSpan:mt,ariaControls:ve,ariaCurrent:null,ariaDescribedBy:ve,ariaDetails:null,ariaDisabled:He,ariaDropEffect:ve,ariaErrorMessage:null,ariaExpanded:He,ariaFlowTo:ve,ariaGrabbed:He,ariaHasPopup:null,ariaHidden:He,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ve,ariaLevel:mt,ariaLive:null,ariaModal:He,ariaMultiLine:He,ariaMultiSelectable:He,ariaOrientation:null,ariaOwns:ve,ariaPlaceholder:null,ariaPosInSet:mt,ariaPressed:He,ariaReadOnly:He,ariaRelevant:null,ariaRequired:He,ariaRoleDescription:ve,ariaRowCount:mt,ariaRowIndex:mt,ariaRowSpan:mt,ariaSelected:He,ariaSetSize:mt,ariaSort:null,ariaValueMax:mt,ariaValueMin:mt,ariaValueNow:mt,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function C4(e,t){return t in e?e[t]:t}function k4(e,t){return C4(e,t.toLowerCase())}const dS=Xs({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Aa,acceptCharset:ve,accessKey:ve,action:null,allow:null,allowFullScreen:Jt,allowPaymentRequest:Jt,allowUserMedia:Jt,alpha:Jt,alt:null,as:null,async:Jt,autoCapitalize:null,autoComplete:ve,autoFocus:Jt,autoPlay:Jt,blocking:ve,capture:null,charSet:null,checked:Jt,cite:null,className:ve,closedBy:null,colorSpace:null,cols:mt,colSpan:mt,command:null,commandFor:null,content:null,contentEditable:He,controls:Jt,controlsList:ve,coords:mt|Aa,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Jt,defer:Jt,dir:null,dirName:null,disabled:Jt,download:od,draggable:He,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Jt,formTarget:null,headers:ve,height:mt,hidden:od,high:mt,href:null,hrefLang:null,htmlFor:ve,httpEquiv:ve,id:null,imageSizes:null,imageSrcSet:null,inert:Jt,inputMode:null,integrity:null,is:null,isMap:Jt,itemId:null,itemProp:ve,itemRef:ve,itemScope:Jt,itemType:ve,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Jt,low:mt,manifest:null,max:null,maxLength:mt,media:null,method:null,min:null,minLength:mt,multiple:Jt,muted:Jt,name:null,nonce:null,noModule:Jt,noValidate:Jt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Jt,optimum:mt,pattern:null,ping:ve,placeholder:null,playsInline:Jt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Jt,referrerPolicy:null,rel:ve,required:Jt,reversed:Jt,rows:mt,rowSpan:mt,sandbox:ve,scope:null,scoped:Jt,seamless:Jt,selected:Jt,shadowRootClonable:Jt,shadowRootCustomElementRegistry:Jt,shadowRootDelegatesFocus:Jt,shadowRootMode:null,shadowRootSerializable:Jt,shape:null,size:mt,sizes:null,slot:null,span:mt,spellCheck:He,src:null,srcDoc:null,srcLang:null,srcSet:null,start:mt,step:null,style:null,tabIndex:mt,target:null,title:null,translate:null,type:null,typeMustMatch:Jt,useMap:null,value:He,width:mt,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ve,axis:null,background:null,bgColor:null,border:mt,borderColor:null,bottomMargin:mt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Jt,declare:Jt,event:null,face:null,frame:null,frameBorder:null,hSpace:mt,leftMargin:mt,link:null,longDesc:null,lowSrc:null,marginHeight:mt,marginWidth:mt,noResize:Jt,noHref:Jt,noShade:Jt,noWrap:Jt,object:null,profile:null,prompt:null,rev:null,rightMargin:mt,rules:null,scheme:null,scrolling:He,standby:null,summary:null,text:null,topMargin:mt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:mt,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Jt,disablePictureInPicture:Jt,disableRemotePlayback:Jt,exportParts:Aa,part:ve,prefix:null,property:null,results:mt,security:null,unselectable:null},space:"html",transform:k4}),fS=Xs({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Xr,accentHeight:mt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:mt,amplitude:mt,arabicForm:null,ascent:mt,attributeName:null,attributeType:null,azimuth:mt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:mt,by:null,calcMode:null,capHeight:mt,className:ve,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:mt,diffuseConstant:mt,direction:null,display:null,dur:null,divisor:mt,dominantBaseline:null,download:Jt,dx:null,dy:null,edgeMode:null,editable:null,elevation:mt,enableBackground:null,end:null,event:null,exponent:mt,externalResourcesRequired:null,fill:null,fillOpacity:mt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Aa,g2:Aa,glyphName:Aa,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:mt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:mt,horizOriginX:mt,horizOriginY:mt,id:null,ideographic:mt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:mt,k:mt,k1:mt,k2:mt,k3:mt,k4:mt,kernelMatrix:Xr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:mt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:mt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:mt,overlineThickness:mt,paintOrder:null,panose1:null,path:null,pathLength:mt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ve,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:mt,pointsAtY:mt,pointsAtZ:mt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xr,rev:Xr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xr,requiredFeatures:Xr,requiredFonts:Xr,requiredFormats:Xr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:mt,specularExponent:mt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:mt,strikethroughThickness:mt,string:null,stroke:null,strokeDashArray:Xr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:mt,strokeOpacity:mt,strokeWidth:null,style:null,surfaceScale:mt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xr,tabIndex:mt,tableValues:null,target:null,targetX:mt,targetY:mt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:mt,underlineThickness:mt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:mt,values:null,vAlphabetic:mt,vMathematical:mt,vectorEffect:null,vHanging:mt,vIdeographic:mt,version:null,vertAdvY:mt,vertOriginX:mt,vertOriginY:mt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:mt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:C4}),T4=Xs({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),w4=Xs({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:k4}),v4=Xs({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),pS={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},mS=/[A-Z]/g,Mm=/-[a-z]/g,gS=/^data[-\w.:]+$/i;function Vc(e,t){const r=sl(t);let i=t,n=Vr;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&gS.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Mm,yS);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Mm.test(a)){let s=a.replace(mS,bS);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}n=r1}return new n(i,t)}function bS(e){return"-"+e.toLowerCase()}function yS(e){return e.charAt(1).toUpperCase()}const Al=y4([x4,dS,T4,w4,v4],"html"),sa=y4([x4,fS,T4,w4,v4],"svg");function Nm(e){const t=[],r=String(e||"");let i=r.indexOf(","),n=0,a=!1;for(;!a;){i===-1&&(i=r.length,a=!0);const s=r.slice(n,i).trim();(s||!a)&&t.push(s),n=i+1,i=r.indexOf(",",n)}return t}function S4(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const Fm=/[#.]/g;function xS(e,t){const r=e||"",i={};let n=0,a,s;for(;n<r.length;){Fm.lastIndex=n;const o=Fm.exec(r),l=r.slice(n,o?o.index:r.length);l&&(a?a==="#"?i.id=l:Array.isArray(i.className)?i.className.push(l):i.className=[l]:s=l,n+=l.length),o&&(a=o[0],n++)}return{type:"element",tagName:s||t||"div",properties:i,children:[]}}function Om(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function E4(e){return e.join(" ").trim()}function _4(e,t,r){const i=r?wS(r):void 0;function n(a,s,...o){let l;if(a==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=xS(a,t);const u=l.tagName.toLowerCase(),c=i?i.get(u):void 0;if(l.tagName=c||u,CS(s))o.unshift(s);else for(const[h,f]of Object.entries(s))kS(e,l.properties,h,f)}for(const u of o)ud(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return n}function CS(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const i of r){const n=t[i];if(n&&typeof n=="object"){if(!Array.isArray(n))return!0;const a=n;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function kS(e,t,r,i){const n=Vc(e,r);let a;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;a=i}else typeof i=="boolean"?a=i:typeof i=="string"?n.spaceSeparated?a=Om(i):n.commaSeparated?a=Nm(i):n.commaOrSpaceSeparated?a=Om(Nm(i).join(" ")):a=Dm(n,n.property,i):Array.isArray(i)?a=[...i]:a=n.property==="style"?TS(i):String(i);if(Array.isArray(a)){const s=[];for(const o of a)s.push(Dm(n,n.property,o));a=s}n.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[n.property]=a}}function ud(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)ud(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?ud(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Dm(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||sl(r)===sl(t)))return!0}return r}function TS(e){const t=[];for(const[r,i]of Object.entries(e))t.push([r,i].join(": "));return t.join("; ")}function wS(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const vS=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","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","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],A4=_4(Al,"div"),B4=_4(sa,"g",vS),Vi={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function SS(e,t){return L4(e,{})||{type:"root",children:[]}}function L4(e,t){const r=ES(e,t);return r&&t.afterTransform&&t.afterTransform(e,r),r}function ES(e,t){switch(e.nodeType){case 1:return LS(e,t);case 3:return AS(e);case 8:return BS(e);case 9:return Rm(e,t);case 10:return _S();case 11:return Rm(e,t);default:return}}function Rm(e,t){return{type:"root",children:I4(e,t)}}function _S(){return{type:"doctype"}}function AS(e){return{type:"text",value:e.nodeValue||""}}function BS(e){return{type:"comment",value:e.nodeValue||""}}function LS(e,t){const r=e.namespaceURI,i=r===Vi.svg?B4:A4,n=r===Vi.html?e.tagName.toLowerCase():e.tagName,a=r===Vi.html&&n==="template"?e.content:e,s=e.getAttributeNames(),o={};let l=-1;for(;++l<s.length;)o[s[l]]=e.getAttribute(s[l])||"";return i(n,o,I4(a,t))}function I4(e,t){const r=e.childNodes,i=[];let n=-1;for(;++n<r.length;){const a=L4(r[n],t);a!==void 0&&i.push(a)}return i}new DOMParser;function IS(e,t){const r=MS(e);return SS(r)}function MS(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const Pm=(function(e,t,r){const i=El(r);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof t=="number"){if(t<0||t===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(t=e.children.indexOf(t),t<0)throw new Error("Expected child node or index");for(;++t<e.children.length;)if(i(e.children[t],t,e))return e.children[t]}),Wa=(function(e){if(e==null)return OS;if(typeof e=="string")return FS(e);if(typeof e=="object")return NS(e);if(typeof e=="function")return i1(e);throw new Error("Expected function, string, or array as `test`")});function NS(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Wa(e[r]);return i1(i);function i(...n){let a=-1;for(;++a<t.length;)if(t[a].apply(this,n))return!0;return!1}}function FS(e){return i1(t);function t(r){return r.tagName===e}}function i1(e){return t;function t(r,i,n){return!!(DS(r)&&e.call(this,r,typeof i=="number"?i:void 0,n||void 0))}}function OS(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function DS(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const $m=/\n/g,zm=/[\t ]+/g,cd=Wa("br"),Hm=Wa(WS),RS=Wa("p"),qm=Wa("tr"),PS=Wa(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",US,jS]),M4=Wa(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function $S(e,t){const r=t||{},i="children"in e?e.children:[],n=M4(e),a=O4(e,{whitespace:r.whitespace||"normal"}),s=[];(e.type==="text"||e.type==="comment")&&s.push(...F4(e,{breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<i.length;)s.push(...N4(i[o],e,{whitespace:a,breakBefore:o?void 0:n,breakAfter:o<i.length-1?cd(i[o+1]):n}));const l=[];let u;for(o=-1;++o<s.length;){const c=s[o];typeof c=="number"?u!==void 0&&c>u&&(u=c):c&&(u!==void 0&&u>-1&&l.push(`
|
|
8
|
+
`.repeat(u)||" "),u=-1,l.push(c))}return l.join("")}function N4(e,t,r){return e.type==="element"?zS(e,t,r):e.type==="text"?r.whitespace==="normal"?F4(e,r):HS(e):[]}function zS(e,t,r){const i=O4(e,r),n=e.children||[];let a=-1,s=[];if(PS(e))return s;let o,l;for(cd(e)||qm(e)&&Pm(t,e,qm)?l=`
|
|
9
|
+
`:RS(e)?(o=2,l=2):M4(e)&&(o=1,l=1);++a<n.length;)s=s.concat(N4(n[a],e,{whitespace:i,breakBefore:a?void 0:o,breakAfter:a<n.length-1?cd(n[a+1]):l}));return Hm(e)&&Pm(t,e,Hm)&&s.push(" "),o&&s.unshift(o),l&&s.push(l),s}function F4(e,t){const r=String(e.value),i=[],n=[];let a=0;for(;a<=r.length;){$m.lastIndex=a;const l=$m.exec(r),u=l&&"index"in l?l.index:r.length;i.push(qS(r.slice(a,u).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?t.breakBefore:!0,u===r.length?t.breakAfter:!0)),a=u+1}let s=-1,o;for(;++s<i.length;)i[s].charCodeAt(i[s].length-1)===8203||s<i.length-1&&i[s+1].charCodeAt(0)===8203?(n.push(i[s]),o=void 0):i[s]?(typeof o=="number"&&n.push(o),n.push(i[s]),o=0):(s===0||s===i.length-1)&&n.push(0);return n}function HS(e){return[String(e.value)]}function qS(e,t,r){const i=[];let n=0,a;for(;n<e.length;){zm.lastIndex=n;const s=zm.exec(e);a=s?s.index:e.length,!n&&!a&&s&&!t&&i.push(""),n!==a&&i.push(e.slice(n,a)),n=s?a+s[0].length:a}return n!==a&&!r&&i.push(""),i.join(" ")}function O4(e,t){if(e.type==="element"){const r=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return r.wrap?"pre-wrap":"pre";case"td":case"th":return r.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function US(e){return!!(e.properties||{}).hidden}function WS(e){return e.tagName==="td"||e.tagName==="th"}function jS(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class pt extends Error{constructor(t,r){var i="KaTeX parse error: "+t,n,a,s=r&&r.loc;if(s&&s.start<=s.end){var o=s.lexer.input;n=s.start,a=s.end,n===o.length?i+=" at end of input: ":i+=" at position "+(n+1)+": ";var l=o.slice(n,a).replace(/[^]/g,"$&̲"),u;n>15?u="…"+o.slice(n-15,n):u=o.slice(0,n);var c;a+15<o.length?c=o.slice(a,a+15)+"…":c=o.slice(a),i+=u+l+c}super(i),this.name="ParseError",this.position=void 0,this.length=void 0,this.rawMessage=void 0,Object.setPrototypeOf(this,pt.prototype),this.position=n,n!=null&&a!=null&&(this.length=a-n),this.rawMessage=t}}var YS=/([A-Z])/g,VS=e=>e.replace(YS,"-$1").toLowerCase(),GS={"&":"&",">":">","<":"<",'"':""","'":"'"},XS=/[&><"']/g,Cr=e=>String(e).replace(XS,t=>GS[t]),_u=e=>e.type==="ordgroup"||e.type==="color"?e.body.length===1?_u(e.body[0]):e:e.type==="font"?_u(e.body):e,KS=new Set(["mathord","textord","atom"]),vn=e=>KS.has(_u(e).type),QS=e=>{var t=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return t?t[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?null:t[1].toLowerCase():"_relative"},Qu={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function ZS(e){if(typeof e!="string")return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{};default:throw new Error("Unexpected schema type; settings must declare an explicit default.")}}function JS(e){if(e.default!==void 0)return e.default;var t=Array.isArray(e.type)?e.type[0]:e.type;return ZS(t)}function tE(e,t,r,i){var n=r[t];e[t]=n!==void 0?i.processor?i.processor(n):n:JS(i)}class n1{constructor(t){t===void 0&&(t={}),this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r of Object.keys(Qu)){var i=Qu[r];i&&tE(this,r,t,i)}}reportNonstrict(t,r,i){var n=this.strict;if(typeof n=="function"&&(n=n(t,r,i)),!(!n||n==="ignore")){if(n===!0||n==="error")throw new pt("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),i);n==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,i){var n=this.strict;if(typeof n=="function")try{n=n(t,r,i)}catch{n="error"}return!n||n==="ignore"?!1:n===!0||n==="error"?!0:n==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+n+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if("url"in t&&t.url&&!t.protocol){var r=QS(t.url);if(r==null)return!1;t.protocol=r}var i=typeof this.trust=="function"?this.trust(t):this.trust;return!!i}}class Nn{constructor(t,r,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=i}sup(){return ji[eE[this.id]]}sub(){return ji[rE[this.id]]}fracNum(){return ji[iE[this.id]]}fracDen(){return ji[nE[this.id]]}cramp(){return ji[aE[this.id]]}text(){return ji[sE[this.id]]}isTight(){return this.size>=2}}var a1=0,Zu=1,ps=2,yn=3,ol=4,fi=5,Fs=6,Mr=7,ji=[new Nn(a1,0,!1),new Nn(Zu,0,!0),new Nn(ps,1,!1),new Nn(yn,1,!0),new Nn(ol,2,!1),new Nn(fi,2,!0),new Nn(Fs,3,!1),new Nn(Mr,3,!0)],eE=[ol,fi,ol,fi,Fs,Mr,Fs,Mr],rE=[fi,fi,fi,fi,Mr,Mr,Mr,Mr],iE=[ps,yn,ol,fi,Fs,Mr,Fs,Mr],nE=[yn,yn,fi,fi,Mr,Mr,Mr,Mr],aE=[Zu,Zu,yn,yn,fi,fi,Mr,Mr],sE=[a1,Zu,ps,yn,ps,yn,ps,yn],te={DISPLAY:ji[a1],TEXT:ji[ps],SCRIPT:ji[ol],SCRIPTSCRIPT:ji[Fs]},hd=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function oE(e){for(var t=0;t<hd.length;t++)for(var r=hd[t],i=0;i<r.blocks.length;i++){var n=r.blocks[i];if(e>=n[0]&&e<=n[1])return r.name}return null}var Au=[];hd.forEach(e=>e.blocks.forEach(t=>Au.push(...t)));function D4(e){for(var t=0;t<Au.length;t+=2)if(e>=Au[t]&&e<=Au[t+1])return!0;return!1}var Ge=e=>e+" "+e,ts=80,lE=function(t,r){return"M95,"+(622+t+r)+`
|
|
10
|
+
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
11
|
+
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
12
|
+
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
13
|
+
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
14
|
+
c69,-144,104.5,-217.7,106.5,-221
|
|
15
|
+
l`+t/2.075+" -"+t+`
|
|
16
|
+
c5.3,-9.3,12,-14,20,-14
|
|
17
|
+
H400000v`+(40+t)+`H845.2724
|
|
18
|
+
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
19
|
+
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
20
|
+
M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},uE=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
|
|
21
|
+
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
22
|
+
c340,-704.7,510.7,-1060.3,512,-1067
|
|
23
|
+
l`+t/2.084+" -"+t+`
|
|
24
|
+
c4.7,-7.3,11,-11,19,-11
|
|
25
|
+
H40000v`+(40+t)+`H1012.3
|
|
26
|
+
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
27
|
+
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
28
|
+
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
29
|
+
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
30
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},cE=function(t,r){return"M983 "+(10+t+r)+`
|
|
31
|
+
l`+t/3.13+" -"+t+`
|
|
32
|
+
c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
|
|
33
|
+
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
34
|
+
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
35
|
+
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
36
|
+
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
37
|
+
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
38
|
+
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
39
|
+
M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},hE=function(t,r){return"M424,"+(2398+t+r)+`
|
|
40
|
+
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
41
|
+
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
42
|
+
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
43
|
+
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
44
|
+
l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
|
|
45
|
+
v`+(40+t)+`H1014.6
|
|
46
|
+
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
47
|
+
c-2,6,-10,9,-24,9
|
|
48
|
+
c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
|
|
49
|
+
h400000v`+(40+t)+"h-400000z"},dE=function(t,r){return"M473,"+(2713+t+r)+`
|
|
50
|
+
c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
|
|
51
|
+
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
|
|
52
|
+
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
53
|
+
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
54
|
+
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
55
|
+
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
56
|
+
606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},fE=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},pE=function(t,r,i){var n=i-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
|
|
57
|
+
H742v`+n+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
58
|
+
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
59
|
+
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
60
|
+
219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},mE=function(t,r,i){r=1e3*r;var n="";switch(t){case"sqrtMain":n=lE(r,ts);break;case"sqrtSize1":n=uE(r,ts);break;case"sqrtSize2":n=cE(r,ts);break;case"sqrtSize3":n=hE(r,ts);break;case"sqrtSize4":n=dE(r,ts);break;case"sqrtTall":n=pE(r,ts,i)}return n},gE=function(t,r){switch(t){case"⎜":return Ge("M291 0 H417 V"+r+" H291z");case"∣":return Ge("M145 0 H188 V"+r+" H145z");case"∥":return Ge("M145 0 H188 V"+r+" H145z")+Ge("M367 0 H410 V"+r+" H367z");case"⎟":return Ge("M457 0 H583 V"+r+" H457z");case"⎢":return Ge("M319 0 H403 V"+r+" H319z");case"⎥":return Ge("M263 0 H347 V"+r+" H263z");case"⎪":return Ge("M384 0 H504 V"+r+" H384z");case"⏐":return Ge("M312 0 H355 V"+r+" H312z");case"‖":return Ge("M257 0 H300 V"+r+" H257z")+Ge("M478 0 H521 V"+r+" H478z");default:return""}},Um={doubleleftarrow:`M262 157
|
|
61
|
+
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
62
|
+
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
63
|
+
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
64
|
+
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
65
|
+
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
66
|
+
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
67
|
+
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
68
|
+
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
69
|
+
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
70
|
+
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
71
|
+
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
72
|
+
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
73
|
+
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
74
|
+
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
75
|
+
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
76
|
+
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
77
|
+
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
78
|
+
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
79
|
+
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
80
|
+
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
81
|
+
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
82
|
+
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
83
|
+
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
84
|
+
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
85
|
+
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
86
|
+
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
87
|
+
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
88
|
+
435 0h399565z`,leftgroupunder:`M400000 262
|
|
89
|
+
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
90
|
+
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
91
|
+
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
92
|
+
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
93
|
+
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
94
|
+
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
95
|
+
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
96
|
+
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
97
|
+
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
98
|
+
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
99
|
+
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
100
|
+
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
101
|
+
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
102
|
+
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
103
|
+
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
104
|
+
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
105
|
+
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
106
|
+
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:Ge("M40 281 V428 H0 V94 H40 V241 H400000 v40z"),leftbracketunder:Ge("M0 0 h120 V290 H399995 v120 H0z"),leftbracketover:Ge("M0 440 h120 V150 H399995 v-120 H0z"),leftmapsto:Ge("M40 281 V448H0V74H40V241H400000v40z"),leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
107
|
+
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
108
|
+
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
109
|
+
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:Ge("M0 50 h400000 v40H0z m0 194h40000v40H0z"),midbrace:`M200428 334
|
|
110
|
+
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
111
|
+
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
112
|
+
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
113
|
+
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
114
|
+
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
115
|
+
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
116
|
+
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
117
|
+
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
118
|
+
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
119
|
+
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
120
|
+
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
121
|
+
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
122
|
+
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
123
|
+
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
124
|
+
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
125
|
+
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
126
|
+
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
127
|
+
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
128
|
+
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
129
|
+
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
130
|
+
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
131
|
+
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
132
|
+
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
133
|
+
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
134
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
135
|
+
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
136
|
+
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
137
|
+
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
138
|
+
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
139
|
+
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
140
|
+
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
141
|
+
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
142
|
+
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
143
|
+
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
144
|
+
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
145
|
+
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
146
|
+
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
147
|
+
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
148
|
+
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
149
|
+
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
150
|
+
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
151
|
+
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
152
|
+
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
153
|
+
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
154
|
+
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
155
|
+
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
156
|
+
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
157
|
+
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
158
|
+
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:Ge("M399960 241 V94 h40 V428 h-40 V281 H0 v-40z"),rightbracketunder:Ge("M399995 0 h-120 V290 H0 v120 H400000z"),rightbracketover:Ge("M399995 440 h-120 V150 H0 v-120 H399995z"),rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
159
|
+
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
160
|
+
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
161
|
+
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
162
|
+
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
163
|
+
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
164
|
+
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
165
|
+
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
166
|
+
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
167
|
+
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
168
|
+
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
169
|
+
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
170
|
+
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
171
|
+
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
172
|
+
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
173
|
+
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
174
|
+
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
175
|
+
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
176
|
+
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
177
|
+
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
178
|
+
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
179
|
+
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
180
|
+
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
181
|
+
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
182
|
+
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
183
|
+
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
184
|
+
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
185
|
+
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
186
|
+
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
187
|
+
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
188
|
+
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
189
|
+
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
190
|
+
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
191
|
+
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
192
|
+
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
193
|
+
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
194
|
+
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
195
|
+
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
196
|
+
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
197
|
+
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
198
|
+
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
199
|
+
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
200
|
+
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
201
|
+
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
202
|
+
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
203
|
+
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
204
|
+
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
205
|
+
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
206
|
+
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
207
|
+
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
208
|
+
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
209
|
+
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
210
|
+
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
211
|
+
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
212
|
+
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
213
|
+
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
214
|
+
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
215
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
216
|
+
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
217
|
+
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
218
|
+
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
219
|
+
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
220
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
221
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
222
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
223
|
+
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
224
|
+
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
225
|
+
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
226
|
+
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
227
|
+
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
228
|
+
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
229
|
+
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
230
|
+
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
231
|
+
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},bE=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 v84 h347 v-84
|
|
232
|
+
H403z M403 1759 V0 H319 V1759 v`+r+" v1759 v84 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
|
|
233
|
+
M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
234
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
235
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
|
|
236
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
237
|
+
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
|
|
238
|
+
M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
|
|
239
|
+
c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
240
|
+
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
|
|
241
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
|
|
242
|
+
MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
|
|
243
|
+
M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
|
|
244
|
+
M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
245
|
+
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
246
|
+
-36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
247
|
+
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
248
|
+
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
249
|
+
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
250
|
+
l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
251
|
+
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
252
|
+
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
253
|
+
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
|
|
254
|
+
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
255
|
+
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
256
|
+
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
257
|
+
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
258
|
+
l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
259
|
+
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};function yE(e){return"toText"in e}class Ks{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){return this.children.map(t=>{if(yE(t))return t.toText();throw new Error("Expected MathDomNode with toText, got "+t.constructor.name)}).join("")}}var dd={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},xE={ex:!0,em:!0,mu:!0},R4=function(t){return typeof t!="string"&&(t=t.unit),t in dd||t in xE||t==="ex"},Me=function(t,r){var i;if(t.unit in dd)i=dd[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")i=r.fontMetrics().cssEmPerMu;else{var n;if(r.style.isTight()?n=r.havingStyle(r.style.text()):n=r,t.unit==="ex")i=n.fontMetrics().xHeight;else if(t.unit==="em")i=n.fontMetrics().quad;else throw new pt("Invalid unit: '"+t.unit+"'");n!==r&&(i*=n.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*i,r.maxSize)},xt=function(t){return+t.toFixed(4)+"em"},Xn=function(t){return t.filter(r=>r).join(" ")},s1=function(t){var r="";for(var i of Object.keys(t)){var n=t[i];n!==void 0&&(r+=VS(i)+":"+n+";")}return r},P4=function(t,r,i){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},r){r.style.isTight()&&this.classes.push("mtight");var n=r.getColor();n&&(this.style.color=n)}},$4=function(t){var r=document.createElement(t);r.className=Xn(this.classes),Object.assign(r.style,this.style);for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var n=0;n<this.children.length;n++)r.appendChild(this.children[n].toNode());return r},CE=/[\s"'>/=\x00-\x1f]/,z4=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+Cr(Xn(this.classes))+'"');var i=s1(this.style);i&&(r+=' style="'+Cr(i)+'"');for(var n of Object.keys(this.attributes)){if(CE.test(n))throw new pt("Invalid attribute name '"+n+"'");r+=" "+n+'="'+Cr(this.attributes[n])+'"'}r+=">";for(var a=0;a<this.children.length;a++)r+=this.children[a].toMarkup();return r+="</"+t+">",r};class Qs{constructor(t,r,i,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,this.italic=void 0,P4.call(this,t,i,n),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return $4.call(this,"span")}toMarkup(){return z4.call(this,"span")}}class Gc{constructor(t,r,i,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,P4.call(this,r,n),this.children=i||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return $4.call(this,"a")}toMarkup(){return z4.call(this,"a")}}class kE{constructor(t,r,i){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.height=0,this.depth=0,this.maxFontSize=0,this.style=i}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");return t.src=this.src,t.alt=this.alt,t.className="mord",Object.assign(t.style,this.style),t}toMarkup(){var t='<img src="'+Cr(this.src)+'"'+(' alt="'+Cr(this.alt)+'"'),r=s1(this.style);return r&&(t+=' style="'+Cr(r)+'"'),t+="'/>",t}}var TE={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class Jr{constructor(t,r,i,n,a,s,o,l){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=r||0,this.depth=i||0,this.italic=n||0,this.skew=a||0,this.width=s||0,this.classes=o||[],this.style=l||{},this.maxFontSize=0;var u=oE(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=TE[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;return this.italic>0&&(r=document.createElement("span"),r.style.marginRight=xt(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=Xn(this.classes)),Object.keys(this.style).length>0&&(r=r||document.createElement("span"),Object.assign(r.style,this.style)),r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=Cr(Xn(this.classes)),r+='"');var i="";this.italic>0&&(i+="margin-right:"+xt(this.italic)+";"),i+=s1(this.style),i&&(t=!0,r+=' style="'+Cr(i)+'"');var n=Cr(this.text);return t?(r+=">",r+=n,r+="</span>",r):n}}class kn{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);for(var n=0;n<this.children.length;n++)r.appendChild(this.children[n].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r of Object.keys(this.attributes))t+=" "+r+'="'+Cr(this.attributes[r])+'"';t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</svg>",t}}class Kn{constructor(t,r){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",Um[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+Cr(this.alternate)+'"/>':'<path d="'+Cr(Um[this.pathName])+'"/>'}}class fd{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var i of Object.keys(this.attributes))r.setAttribute(i,this.attributes[i]);return r}toMarkup(){var t="<line";for(var r of Object.keys(this.attributes))t+=" "+r+'="'+Cr(this.attributes[r])+'"';return t+="/>",t}}function wE(e){if(e instanceof Jr)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function vE(e){if(e instanceof Qs)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var SE=e=>e instanceof Qs||e instanceof Gc||e instanceof Ks,Gi={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Ql={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Wm={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function H4(e,t){Gi[e]=t}function o1(e,t,r){if(!Gi[t])throw new Error("Font metrics not found for font: "+t+".");var i=e.charCodeAt(0),n=Gi[t][i];if(!n&&e[0]in Wm&&(i=Wm[e[0]].charCodeAt(0),n=Gi[t][i]),!n&&r==="text"&&D4(i)&&(n=Gi[t][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var Kh={};function EE(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!Kh[t]){var r=Kh[t]={cssEmPerMu:Ql.quad[t]/18};for(var i in Ql)Ql.hasOwnProperty(i)&&(r[i]=Ql[i][t])}return Kh[t]}var Ae={math:{},text:{}};function x(e,t,r,i,n,a){Ae[e][n]={font:t,group:r,replace:i},a&&i&&(Ae[e][i]=Ae[e][n])}var T="math",ct="text",S="main",H="ams",Be="accent-token",Bt="bin",Pr="close",Zs="inner",Ut="mathord",Ye="op-token",ri="open",Bl="punct",q="rel",Sn="spacing",G="textord";x(T,S,q,"≡","\\equiv",!0);x(T,S,q,"≺","\\prec",!0);x(T,S,q,"≻","\\succ",!0);x(T,S,q,"∼","\\sim",!0);x(T,S,q,"⊥","\\perp");x(T,S,q,"⪯","\\preceq",!0);x(T,S,q,"⪰","\\succeq",!0);x(T,S,q,"≃","\\simeq",!0);x(T,S,q,"∣","\\mid",!0);x(T,S,q,"≪","\\ll",!0);x(T,S,q,"≫","\\gg",!0);x(T,S,q,"≍","\\asymp",!0);x(T,S,q,"∥","\\parallel");x(T,S,q,"⋈","\\bowtie",!0);x(T,S,q,"⌣","\\smile",!0);x(T,S,q,"⊑","\\sqsubseteq",!0);x(T,S,q,"⊒","\\sqsupseteq",!0);x(T,S,q,"≐","\\doteq",!0);x(T,S,q,"⌢","\\frown",!0);x(T,S,q,"∋","\\ni",!0);x(T,S,q,"∝","\\propto",!0);x(T,S,q,"⊢","\\vdash",!0);x(T,S,q,"⊣","\\dashv",!0);x(T,S,q,"∋","\\owns");x(T,S,Bl,".","\\ldotp");x(T,S,Bl,"⋅","\\cdotp");x(T,S,Bl,"⋅","·");x(ct,S,G,"⋅","·");x(T,S,G,"#","\\#");x(ct,S,G,"#","\\#");x(T,S,G,"&","\\&");x(ct,S,G,"&","\\&");x(T,S,G,"ℵ","\\aleph",!0);x(T,S,G,"∀","\\forall",!0);x(T,S,G,"ℏ","\\hbar",!0);x(T,S,G,"∃","\\exists",!0);x(T,S,G,"∇","\\nabla",!0);x(T,S,G,"♭","\\flat",!0);x(T,S,G,"ℓ","\\ell",!0);x(T,S,G,"♮","\\natural",!0);x(T,S,G,"♣","\\clubsuit",!0);x(T,S,G,"℘","\\wp",!0);x(T,S,G,"♯","\\sharp",!0);x(T,S,G,"♢","\\diamondsuit",!0);x(T,S,G,"ℜ","\\Re",!0);x(T,S,G,"♡","\\heartsuit",!0);x(T,S,G,"ℑ","\\Im",!0);x(T,S,G,"♠","\\spadesuit",!0);x(T,S,G,"§","\\S",!0);x(ct,S,G,"§","\\S");x(T,S,G,"¶","\\P",!0);x(ct,S,G,"¶","\\P");x(T,S,G,"†","\\dag");x(ct,S,G,"†","\\dag");x(ct,S,G,"†","\\textdagger");x(T,S,G,"‡","\\ddag");x(ct,S,G,"‡","\\ddag");x(ct,S,G,"‡","\\textdaggerdbl");x(T,S,Pr,"⎱","\\rmoustache",!0);x(T,S,ri,"⎰","\\lmoustache",!0);x(T,S,Pr,"⟯","\\rgroup",!0);x(T,S,ri,"⟮","\\lgroup",!0);x(T,S,Bt,"∓","\\mp",!0);x(T,S,Bt,"⊖","\\ominus",!0);x(T,S,Bt,"⊎","\\uplus",!0);x(T,S,Bt,"⊓","\\sqcap",!0);x(T,S,Bt,"∗","\\ast");x(T,S,Bt,"⊔","\\sqcup",!0);x(T,S,Bt,"◯","\\bigcirc",!0);x(T,S,Bt,"∙","\\bullet",!0);x(T,S,Bt,"‡","\\ddagger");x(T,S,Bt,"≀","\\wr",!0);x(T,S,Bt,"⨿","\\amalg");x(T,S,Bt,"&","\\And");x(T,S,q,"⟵","\\longleftarrow",!0);x(T,S,q,"⇐","\\Leftarrow",!0);x(T,S,q,"⟸","\\Longleftarrow",!0);x(T,S,q,"⟶","\\longrightarrow",!0);x(T,S,q,"⇒","\\Rightarrow",!0);x(T,S,q,"⟹","\\Longrightarrow",!0);x(T,S,q,"↔","\\leftrightarrow",!0);x(T,S,q,"⟷","\\longleftrightarrow",!0);x(T,S,q,"⇔","\\Leftrightarrow",!0);x(T,S,q,"⟺","\\Longleftrightarrow",!0);x(T,S,q,"↦","\\mapsto",!0);x(T,S,q,"⟼","\\longmapsto",!0);x(T,S,q,"↗","\\nearrow",!0);x(T,S,q,"↩","\\hookleftarrow",!0);x(T,S,q,"↪","\\hookrightarrow",!0);x(T,S,q,"↘","\\searrow",!0);x(T,S,q,"↼","\\leftharpoonup",!0);x(T,S,q,"⇀","\\rightharpoonup",!0);x(T,S,q,"↙","\\swarrow",!0);x(T,S,q,"↽","\\leftharpoondown",!0);x(T,S,q,"⇁","\\rightharpoondown",!0);x(T,S,q,"↖","\\nwarrow",!0);x(T,S,q,"⇌","\\rightleftharpoons",!0);x(T,H,q,"≮","\\nless",!0);x(T,H,q,"","\\@nleqslant");x(T,H,q,"","\\@nleqq");x(T,H,q,"⪇","\\lneq",!0);x(T,H,q,"≨","\\lneqq",!0);x(T,H,q,"","\\@lvertneqq");x(T,H,q,"⋦","\\lnsim",!0);x(T,H,q,"⪉","\\lnapprox",!0);x(T,H,q,"⊀","\\nprec",!0);x(T,H,q,"⋠","\\npreceq",!0);x(T,H,q,"⋨","\\precnsim",!0);x(T,H,q,"⪹","\\precnapprox",!0);x(T,H,q,"≁","\\nsim",!0);x(T,H,q,"","\\@nshortmid");x(T,H,q,"∤","\\nmid",!0);x(T,H,q,"⊬","\\nvdash",!0);x(T,H,q,"⊭","\\nvDash",!0);x(T,H,q,"⋪","\\ntriangleleft");x(T,H,q,"⋬","\\ntrianglelefteq",!0);x(T,H,q,"⊊","\\subsetneq",!0);x(T,H,q,"","\\@varsubsetneq");x(T,H,q,"⫋","\\subsetneqq",!0);x(T,H,q,"","\\@varsubsetneqq");x(T,H,q,"≯","\\ngtr",!0);x(T,H,q,"","\\@ngeqslant");x(T,H,q,"","\\@ngeqq");x(T,H,q,"⪈","\\gneq",!0);x(T,H,q,"≩","\\gneqq",!0);x(T,H,q,"","\\@gvertneqq");x(T,H,q,"⋧","\\gnsim",!0);x(T,H,q,"⪊","\\gnapprox",!0);x(T,H,q,"⊁","\\nsucc",!0);x(T,H,q,"⋡","\\nsucceq",!0);x(T,H,q,"⋩","\\succnsim",!0);x(T,H,q,"⪺","\\succnapprox",!0);x(T,H,q,"≆","\\ncong",!0);x(T,H,q,"","\\@nshortparallel");x(T,H,q,"∦","\\nparallel",!0);x(T,H,q,"⊯","\\nVDash",!0);x(T,H,q,"⋫","\\ntriangleright");x(T,H,q,"⋭","\\ntrianglerighteq",!0);x(T,H,q,"","\\@nsupseteqq");x(T,H,q,"⊋","\\supsetneq",!0);x(T,H,q,"","\\@varsupsetneq");x(T,H,q,"⫌","\\supsetneqq",!0);x(T,H,q,"","\\@varsupsetneqq");x(T,H,q,"⊮","\\nVdash",!0);x(T,H,q,"⪵","\\precneqq",!0);x(T,H,q,"⪶","\\succneqq",!0);x(T,H,q,"","\\@nsubseteqq");x(T,H,Bt,"⊴","\\unlhd");x(T,H,Bt,"⊵","\\unrhd");x(T,H,q,"↚","\\nleftarrow",!0);x(T,H,q,"↛","\\nrightarrow",!0);x(T,H,q,"⇍","\\nLeftarrow",!0);x(T,H,q,"⇏","\\nRightarrow",!0);x(T,H,q,"↮","\\nleftrightarrow",!0);x(T,H,q,"⇎","\\nLeftrightarrow",!0);x(T,H,q,"△","\\vartriangle");x(T,H,G,"ℏ","\\hslash");x(T,H,G,"▽","\\triangledown");x(T,H,G,"◊","\\lozenge");x(T,H,G,"Ⓢ","\\circledS");x(T,H,G,"®","\\circledR");x(ct,H,G,"®","\\circledR");x(T,H,G,"∡","\\measuredangle",!0);x(T,H,G,"∄","\\nexists");x(T,H,G,"℧","\\mho");x(T,H,G,"Ⅎ","\\Finv",!0);x(T,H,G,"⅁","\\Game",!0);x(T,H,G,"‵","\\backprime");x(T,H,G,"▲","\\blacktriangle");x(T,H,G,"▼","\\blacktriangledown");x(T,H,G,"■","\\blacksquare");x(T,H,G,"⧫","\\blacklozenge");x(T,H,G,"★","\\bigstar");x(T,H,G,"∢","\\sphericalangle",!0);x(T,H,G,"∁","\\complement",!0);x(T,H,G,"ð","\\eth",!0);x(ct,S,G,"ð","ð");x(T,H,G,"╱","\\diagup");x(T,H,G,"╲","\\diagdown");x(T,H,G,"□","\\square");x(T,H,G,"□","\\Box");x(T,H,G,"◊","\\Diamond");x(T,H,G,"¥","\\yen",!0);x(ct,H,G,"¥","\\yen",!0);x(T,H,G,"✓","\\checkmark",!0);x(ct,H,G,"✓","\\checkmark");x(T,H,G,"ℶ","\\beth",!0);x(T,H,G,"ℸ","\\daleth",!0);x(T,H,G,"ℷ","\\gimel",!0);x(T,H,G,"ϝ","\\digamma",!0);x(T,H,G,"ϰ","\\varkappa");x(T,H,ri,"┌","\\@ulcorner",!0);x(T,H,Pr,"┐","\\@urcorner",!0);x(T,H,ri,"└","\\@llcorner",!0);x(T,H,Pr,"┘","\\@lrcorner",!0);x(T,H,q,"≦","\\leqq",!0);x(T,H,q,"⩽","\\leqslant",!0);x(T,H,q,"⪕","\\eqslantless",!0);x(T,H,q,"≲","\\lesssim",!0);x(T,H,q,"⪅","\\lessapprox",!0);x(T,H,q,"≊","\\approxeq",!0);x(T,H,Bt,"⋖","\\lessdot");x(T,H,q,"⋘","\\lll",!0);x(T,H,q,"≶","\\lessgtr",!0);x(T,H,q,"⋚","\\lesseqgtr",!0);x(T,H,q,"⪋","\\lesseqqgtr",!0);x(T,H,q,"≑","\\doteqdot");x(T,H,q,"≓","\\risingdotseq",!0);x(T,H,q,"≒","\\fallingdotseq",!0);x(T,H,q,"∽","\\backsim",!0);x(T,H,q,"⋍","\\backsimeq",!0);x(T,H,q,"⫅","\\subseteqq",!0);x(T,H,q,"⋐","\\Subset",!0);x(T,H,q,"⊏","\\sqsubset",!0);x(T,H,q,"≼","\\preccurlyeq",!0);x(T,H,q,"⋞","\\curlyeqprec",!0);x(T,H,q,"≾","\\precsim",!0);x(T,H,q,"⪷","\\precapprox",!0);x(T,H,q,"⊲","\\vartriangleleft");x(T,H,q,"⊴","\\trianglelefteq");x(T,H,q,"⊨","\\vDash",!0);x(T,H,q,"⊪","\\Vvdash",!0);x(T,H,q,"⌣","\\smallsmile");x(T,H,q,"⌢","\\smallfrown");x(T,H,q,"≏","\\bumpeq",!0);x(T,H,q,"≎","\\Bumpeq",!0);x(T,H,q,"≧","\\geqq",!0);x(T,H,q,"⩾","\\geqslant",!0);x(T,H,q,"⪖","\\eqslantgtr",!0);x(T,H,q,"≳","\\gtrsim",!0);x(T,H,q,"⪆","\\gtrapprox",!0);x(T,H,Bt,"⋗","\\gtrdot");x(T,H,q,"⋙","\\ggg",!0);x(T,H,q,"≷","\\gtrless",!0);x(T,H,q,"⋛","\\gtreqless",!0);x(T,H,q,"⪌","\\gtreqqless",!0);x(T,H,q,"≖","\\eqcirc",!0);x(T,H,q,"≗","\\circeq",!0);x(T,H,q,"≜","\\triangleq",!0);x(T,H,q,"∼","\\thicksim");x(T,H,q,"≈","\\thickapprox");x(T,H,q,"⫆","\\supseteqq",!0);x(T,H,q,"⋑","\\Supset",!0);x(T,H,q,"⊐","\\sqsupset",!0);x(T,H,q,"≽","\\succcurlyeq",!0);x(T,H,q,"⋟","\\curlyeqsucc",!0);x(T,H,q,"≿","\\succsim",!0);x(T,H,q,"⪸","\\succapprox",!0);x(T,H,q,"⊳","\\vartriangleright");x(T,H,q,"⊵","\\trianglerighteq");x(T,H,q,"⊩","\\Vdash",!0);x(T,H,q,"∣","\\shortmid");x(T,H,q,"∥","\\shortparallel");x(T,H,q,"≬","\\between",!0);x(T,H,q,"⋔","\\pitchfork",!0);x(T,H,q,"∝","\\varpropto");x(T,H,q,"◀","\\blacktriangleleft");x(T,H,q,"∴","\\therefore",!0);x(T,H,q,"∍","\\backepsilon");x(T,H,q,"▶","\\blacktriangleright");x(T,H,q,"∵","\\because",!0);x(T,H,q,"⋘","\\llless");x(T,H,q,"⋙","\\gggtr");x(T,H,Bt,"⊲","\\lhd");x(T,H,Bt,"⊳","\\rhd");x(T,H,q,"≂","\\eqsim",!0);x(T,S,q,"⋈","\\Join");x(T,H,q,"≑","\\Doteq",!0);x(T,H,Bt,"∔","\\dotplus",!0);x(T,H,Bt,"∖","\\smallsetminus");x(T,H,Bt,"⋒","\\Cap",!0);x(T,H,Bt,"⋓","\\Cup",!0);x(T,H,Bt,"⩞","\\doublebarwedge",!0);x(T,H,Bt,"⊟","\\boxminus",!0);x(T,H,Bt,"⊞","\\boxplus",!0);x(T,H,Bt,"⋇","\\divideontimes",!0);x(T,H,Bt,"⋉","\\ltimes",!0);x(T,H,Bt,"⋊","\\rtimes",!0);x(T,H,Bt,"⋋","\\leftthreetimes",!0);x(T,H,Bt,"⋌","\\rightthreetimes",!0);x(T,H,Bt,"⋏","\\curlywedge",!0);x(T,H,Bt,"⋎","\\curlyvee",!0);x(T,H,Bt,"⊝","\\circleddash",!0);x(T,H,Bt,"⊛","\\circledast",!0);x(T,H,Bt,"⋅","\\centerdot");x(T,H,Bt,"⊺","\\intercal",!0);x(T,H,Bt,"⋒","\\doublecap");x(T,H,Bt,"⋓","\\doublecup");x(T,H,Bt,"⊠","\\boxtimes",!0);x(T,H,q,"⇢","\\dashrightarrow",!0);x(T,H,q,"⇠","\\dashleftarrow",!0);x(T,H,q,"⇇","\\leftleftarrows",!0);x(T,H,q,"⇆","\\leftrightarrows",!0);x(T,H,q,"⇚","\\Lleftarrow",!0);x(T,H,q,"↞","\\twoheadleftarrow",!0);x(T,H,q,"↢","\\leftarrowtail",!0);x(T,H,q,"↫","\\looparrowleft",!0);x(T,H,q,"⇋","\\leftrightharpoons",!0);x(T,H,q,"↶","\\curvearrowleft",!0);x(T,H,q,"↺","\\circlearrowleft",!0);x(T,H,q,"↰","\\Lsh",!0);x(T,H,q,"⇈","\\upuparrows",!0);x(T,H,q,"↿","\\upharpoonleft",!0);x(T,H,q,"⇃","\\downharpoonleft",!0);x(T,S,q,"⊶","\\origof",!0);x(T,S,q,"⊷","\\imageof",!0);x(T,H,q,"⊸","\\multimap",!0);x(T,H,q,"↭","\\leftrightsquigarrow",!0);x(T,H,q,"⇉","\\rightrightarrows",!0);x(T,H,q,"⇄","\\rightleftarrows",!0);x(T,H,q,"↠","\\twoheadrightarrow",!0);x(T,H,q,"↣","\\rightarrowtail",!0);x(T,H,q,"↬","\\looparrowright",!0);x(T,H,q,"↷","\\curvearrowright",!0);x(T,H,q,"↻","\\circlearrowright",!0);x(T,H,q,"↱","\\Rsh",!0);x(T,H,q,"⇊","\\downdownarrows",!0);x(T,H,q,"↾","\\upharpoonright",!0);x(T,H,q,"⇂","\\downharpoonright",!0);x(T,H,q,"⇝","\\rightsquigarrow",!0);x(T,H,q,"⇝","\\leadsto");x(T,H,q,"⇛","\\Rrightarrow",!0);x(T,H,q,"↾","\\restriction");x(T,S,G,"‘","`");x(T,S,G,"$","\\$");x(ct,S,G,"$","\\$");x(ct,S,G,"$","\\textdollar");x(T,S,G,"%","\\%");x(ct,S,G,"%","\\%");x(T,S,G,"_","\\_");x(ct,S,G,"_","\\_");x(ct,S,G,"_","\\textunderscore");x(T,S,G,"∠","\\angle",!0);x(T,S,G,"∞","\\infty",!0);x(T,S,G,"′","\\prime");x(T,S,G,"△","\\triangle");x(T,S,G,"Γ","\\Gamma",!0);x(T,S,G,"Δ","\\Delta",!0);x(T,S,G,"Θ","\\Theta",!0);x(T,S,G,"Λ","\\Lambda",!0);x(T,S,G,"Ξ","\\Xi",!0);x(T,S,G,"Π","\\Pi",!0);x(T,S,G,"Σ","\\Sigma",!0);x(T,S,G,"Υ","\\Upsilon",!0);x(T,S,G,"Φ","\\Phi",!0);x(T,S,G,"Ψ","\\Psi",!0);x(T,S,G,"Ω","\\Omega",!0);x(T,S,G,"A","Α");x(T,S,G,"B","Β");x(T,S,G,"E","Ε");x(T,S,G,"Z","Ζ");x(T,S,G,"H","Η");x(T,S,G,"I","Ι");x(T,S,G,"K","Κ");x(T,S,G,"M","Μ");x(T,S,G,"N","Ν");x(T,S,G,"O","Ο");x(T,S,G,"P","Ρ");x(T,S,G,"T","Τ");x(T,S,G,"X","Χ");x(T,S,G,"¬","\\neg",!0);x(T,S,G,"¬","\\lnot");x(T,S,G,"⊤","\\top");x(T,S,G,"⊥","\\bot");x(T,S,G,"∅","\\emptyset");x(T,H,G,"∅","\\varnothing");x(T,S,Ut,"α","\\alpha",!0);x(T,S,Ut,"β","\\beta",!0);x(T,S,Ut,"γ","\\gamma",!0);x(T,S,Ut,"δ","\\delta",!0);x(T,S,Ut,"ϵ","\\epsilon",!0);x(T,S,Ut,"ζ","\\zeta",!0);x(T,S,Ut,"η","\\eta",!0);x(T,S,Ut,"θ","\\theta",!0);x(T,S,Ut,"ι","\\iota",!0);x(T,S,Ut,"κ","\\kappa",!0);x(T,S,Ut,"λ","\\lambda",!0);x(T,S,Ut,"μ","\\mu",!0);x(T,S,Ut,"ν","\\nu",!0);x(T,S,Ut,"ξ","\\xi",!0);x(T,S,Ut,"ο","\\omicron",!0);x(T,S,Ut,"π","\\pi",!0);x(T,S,Ut,"ρ","\\rho",!0);x(T,S,Ut,"σ","\\sigma",!0);x(T,S,Ut,"τ","\\tau",!0);x(T,S,Ut,"υ","\\upsilon",!0);x(T,S,Ut,"ϕ","\\phi",!0);x(T,S,Ut,"χ","\\chi",!0);x(T,S,Ut,"ψ","\\psi",!0);x(T,S,Ut,"ω","\\omega",!0);x(T,S,Ut,"ε","\\varepsilon",!0);x(T,S,Ut,"ϑ","\\vartheta",!0);x(T,S,Ut,"ϖ","\\varpi",!0);x(T,S,Ut,"ϱ","\\varrho",!0);x(T,S,Ut,"ς","\\varsigma",!0);x(T,S,Ut,"φ","\\varphi",!0);x(T,S,Bt,"∗","*",!0);x(T,S,Bt,"+","+");x(T,S,Bt,"−","-",!0);x(T,S,Bt,"⋅","\\cdot",!0);x(T,S,Bt,"∘","\\circ",!0);x(T,S,Bt,"÷","\\div",!0);x(T,S,Bt,"±","\\pm",!0);x(T,S,Bt,"×","\\times",!0);x(T,S,Bt,"∩","\\cap",!0);x(T,S,Bt,"∪","\\cup",!0);x(T,S,Bt,"∖","\\setminus",!0);x(T,S,Bt,"∧","\\land");x(T,S,Bt,"∨","\\lor");x(T,S,Bt,"∧","\\wedge",!0);x(T,S,Bt,"∨","\\vee",!0);x(T,S,G,"√","\\surd");x(T,S,ri,"⟨","\\langle",!0);x(T,S,ri,"∣","\\lvert");x(T,S,ri,"∥","\\lVert");x(T,S,Pr,"?","?");x(T,S,Pr,"!","!");x(T,S,Pr,"⟩","\\rangle",!0);x(T,S,Pr,"∣","\\rvert");x(T,S,Pr,"∥","\\rVert");x(T,S,q,"=","=");x(T,S,q,":",":");x(T,S,q,"≈","\\approx",!0);x(T,S,q,"≅","\\cong",!0);x(T,S,q,"≥","\\ge");x(T,S,q,"≥","\\geq",!0);x(T,S,q,"←","\\gets");x(T,S,q,">","\\gt",!0);x(T,S,q,"∈","\\in",!0);x(T,S,q,"","\\@not");x(T,S,q,"⊂","\\subset",!0);x(T,S,q,"⊃","\\supset",!0);x(T,S,q,"⊆","\\subseteq",!0);x(T,S,q,"⊇","\\supseteq",!0);x(T,H,q,"⊈","\\nsubseteq",!0);x(T,H,q,"⊉","\\nsupseteq",!0);x(T,S,q,"⊨","\\models");x(T,S,q,"←","\\leftarrow",!0);x(T,S,q,"≤","\\le");x(T,S,q,"≤","\\leq",!0);x(T,S,q,"<","\\lt",!0);x(T,S,q,"→","\\rightarrow",!0);x(T,S,q,"→","\\to");x(T,H,q,"≱","\\ngeq",!0);x(T,H,q,"≰","\\nleq",!0);x(T,S,Sn," ","\\ ");x(T,S,Sn," ","\\space");x(T,S,Sn," ","\\nobreakspace");x(ct,S,Sn," ","\\ ");x(ct,S,Sn," "," ");x(ct,S,Sn," ","\\space");x(ct,S,Sn," ","\\nobreakspace");x(T,S,Sn,"","\\nobreak");x(T,S,Sn,"","\\allowbreak");x(T,S,Bl,",",",");x(T,S,Bl,";",";");x(T,H,Bt,"⊼","\\barwedge",!0);x(T,H,Bt,"⊻","\\veebar",!0);x(T,S,Bt,"⊙","\\odot",!0);x(T,S,Bt,"⊕","\\oplus",!0);x(T,S,Bt,"⊗","\\otimes",!0);x(T,S,G,"∂","\\partial",!0);x(T,S,Bt,"⊘","\\oslash",!0);x(T,H,Bt,"⊚","\\circledcirc",!0);x(T,H,Bt,"⊡","\\boxdot",!0);x(T,S,Bt,"△","\\bigtriangleup");x(T,S,Bt,"▽","\\bigtriangledown");x(T,S,Bt,"†","\\dagger");x(T,S,Bt,"⋄","\\diamond");x(T,S,Bt,"⋆","\\star");x(T,S,Bt,"◃","\\triangleleft");x(T,S,Bt,"▹","\\triangleright");x(T,S,ri,"{","\\{");x(ct,S,G,"{","\\{");x(ct,S,G,"{","\\textbraceleft");x(T,S,Pr,"}","\\}");x(ct,S,G,"}","\\}");x(ct,S,G,"}","\\textbraceright");x(T,S,ri,"{","\\lbrace");x(T,S,Pr,"}","\\rbrace");x(T,S,ri,"[","\\lbrack",!0);x(ct,S,G,"[","\\lbrack",!0);x(T,S,Pr,"]","\\rbrack",!0);x(ct,S,G,"]","\\rbrack",!0);x(T,S,ri,"(","\\lparen",!0);x(T,S,Pr,")","\\rparen",!0);x(ct,S,G,"<","\\textless",!0);x(ct,S,G,">","\\textgreater",!0);x(T,S,ri,"⌊","\\lfloor",!0);x(T,S,Pr,"⌋","\\rfloor",!0);x(T,S,ri,"⌈","\\lceil",!0);x(T,S,Pr,"⌉","\\rceil",!0);x(T,S,G,"\\","\\backslash");x(T,S,G,"∣","|");x(T,S,G,"∣","\\vert");x(ct,S,G,"|","\\textbar",!0);x(T,S,G,"∥","\\|");x(T,S,G,"∥","\\Vert");x(ct,S,G,"∥","\\textbardbl");x(ct,S,G,"~","\\textasciitilde");x(ct,S,G,"\\","\\textbackslash");x(ct,S,G,"^","\\textasciicircum");x(T,S,q,"↑","\\uparrow",!0);x(T,S,q,"⇑","\\Uparrow",!0);x(T,S,q,"↓","\\downarrow",!0);x(T,S,q,"⇓","\\Downarrow",!0);x(T,S,q,"↕","\\updownarrow",!0);x(T,S,q,"⇕","\\Updownarrow",!0);x(T,S,Ye,"∐","\\coprod");x(T,S,Ye,"⋁","\\bigvee");x(T,S,Ye,"⋀","\\bigwedge");x(T,S,Ye,"⨄","\\biguplus");x(T,S,Ye,"⋂","\\bigcap");x(T,S,Ye,"⋃","\\bigcup");x(T,S,Ye,"∫","\\int");x(T,S,Ye,"∫","\\intop");x(T,S,Ye,"∬","\\iint");x(T,S,Ye,"∭","\\iiint");x(T,S,Ye,"∏","\\prod");x(T,S,Ye,"∑","\\sum");x(T,S,Ye,"⨂","\\bigotimes");x(T,S,Ye,"⨁","\\bigoplus");x(T,S,Ye,"⨀","\\bigodot");x(T,S,Ye,"∮","\\oint");x(T,S,Ye,"∯","\\oiint");x(T,S,Ye,"∰","\\oiiint");x(T,S,Ye,"⨆","\\bigsqcup");x(T,S,Ye,"∫","\\smallint");x(ct,S,Zs,"…","\\textellipsis");x(T,S,Zs,"…","\\mathellipsis");x(ct,S,Zs,"…","\\ldots",!0);x(T,S,Zs,"…","\\ldots",!0);x(T,S,Zs,"⋯","\\@cdots",!0);x(T,S,Zs,"⋱","\\ddots",!0);x(T,S,G,"⋮","\\varvdots");x(ct,S,G,"⋮","\\varvdots");x(T,S,Be,"ˊ","\\acute");x(T,S,Be,"ˋ","\\grave");x(T,S,Be,"¨","\\ddot");x(T,S,Be,"~","\\tilde");x(T,S,Be,"ˉ","\\bar");x(T,S,Be,"˘","\\breve");x(T,S,Be,"ˇ","\\check");x(T,S,Be,"^","\\hat");x(T,S,Be,"⃗","\\vec");x(T,S,Be,"˙","\\dot");x(T,S,Be,"˚","\\mathring");x(T,S,Ut,"","\\@imath");x(T,S,Ut,"","\\@jmath");x(T,S,G,"ı","ı");x(T,S,G,"ȷ","ȷ");x(ct,S,G,"ı","\\i",!0);x(ct,S,G,"ȷ","\\j",!0);x(ct,S,G,"ß","\\ss",!0);x(ct,S,G,"æ","\\ae",!0);x(ct,S,G,"œ","\\oe",!0);x(ct,S,G,"ø","\\o",!0);x(ct,S,G,"Æ","\\AE",!0);x(ct,S,G,"Œ","\\OE",!0);x(ct,S,G,"Ø","\\O",!0);x(ct,S,Be,"ˊ","\\'");x(ct,S,Be,"ˋ","\\`");x(ct,S,Be,"ˆ","\\^");x(ct,S,Be,"˜","\\~");x(ct,S,Be,"ˉ","\\=");x(ct,S,Be,"˘","\\u");x(ct,S,Be,"˙","\\.");x(ct,S,Be,"¸","\\c");x(ct,S,Be,"˚","\\r");x(ct,S,Be,"ˇ","\\v");x(ct,S,Be,"¨",'\\"');x(ct,S,Be,"˝","\\H");x(ct,S,Be,"◯","\\textcircled");var q4={"--":!0,"---":!0,"``":!0,"''":!0};x(ct,S,G,"–","--",!0);x(ct,S,G,"–","\\textendash");x(ct,S,G,"—","---",!0);x(ct,S,G,"—","\\textemdash");x(ct,S,G,"‘","`",!0);x(ct,S,G,"‘","\\textquoteleft");x(ct,S,G,"’","'",!0);x(ct,S,G,"’","\\textquoteright");x(ct,S,G,"“","``",!0);x(ct,S,G,"“","\\textquotedblleft");x(ct,S,G,"”","''",!0);x(ct,S,G,"”","\\textquotedblright");x(T,S,G,"°","\\degree",!0);x(ct,S,G,"°","\\degree");x(ct,S,G,"°","\\textdegree",!0);x(T,S,G,"£","\\pounds");x(T,S,G,"£","\\mathsterling",!0);x(ct,S,G,"£","\\pounds");x(ct,S,G,"£","\\textsterling",!0);x(T,H,G,"✠","\\maltese");x(ct,H,G,"✠","\\maltese");var jm='0123456789/@."';for(var Qh=0;Qh<jm.length;Qh++){var Ym=jm.charAt(Qh);x(T,S,G,Ym,Ym)}var Vm='0123456789!@*()-=+";:?/.,';for(var Zh=0;Zh<Vm.length;Zh++){var Gm=Vm.charAt(Zh);x(ct,S,G,Gm,Gm)}var Ju="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var Jh=0;Jh<Ju.length;Jh++){var Zl=Ju.charAt(Jh);x(T,S,Ut,Zl,Zl),x(ct,S,G,Zl,Zl)}x(T,H,G,"C","ℂ");x(ct,H,G,"C","ℂ");x(T,H,G,"H","ℍ");x(ct,H,G,"H","ℍ");x(T,H,G,"N","ℕ");x(ct,H,G,"N","ℕ");x(T,H,G,"P","ℙ");x(ct,H,G,"P","ℙ");x(T,H,G,"Q","ℚ");x(ct,H,G,"Q","ℚ");x(T,H,G,"R","ℝ");x(ct,H,G,"R","ℝ");x(T,H,G,"Z","ℤ");x(ct,H,G,"Z","ℤ");x(T,S,Ut,"h","ℎ");x(ct,S,Ut,"h","ℎ");var Kt;for(var _r=0;_r<Ju.length;_r++){var Oe=Ju.charAt(_r);Kt=String.fromCharCode(55349,56320+_r),x(T,S,Ut,Oe,Kt),x(ct,S,G,Oe,Kt),Kt=String.fromCharCode(55349,56372+_r),x(T,S,Ut,Oe,Kt),x(ct,S,G,Oe,Kt),Kt=String.fromCharCode(55349,56424+_r),x(T,S,Ut,Oe,Kt),x(ct,S,G,Oe,Kt),Kt=String.fromCharCode(55349,56580+_r),x(T,S,Ut,Oe,Kt),x(ct,S,G,Oe,Kt),Kt=String.fromCharCode(55349,56684+_r),x(T,S,Ut,Oe,Kt),x(ct,S,G,Oe,Kt),Kt=String.fromCharCode(55349,56736+_r),x(T,S,Ut,Oe,Kt),x(ct,S,G,Oe,Kt),Kt=String.fromCharCode(55349,56788+_r),x(T,S,Ut,Oe,Kt),x(ct,S,G,Oe,Kt),Kt=String.fromCharCode(55349,56840+_r),x(T,S,Ut,Oe,Kt),x(ct,S,G,Oe,Kt),Kt=String.fromCharCode(55349,56944+_r),x(T,S,Ut,Oe,Kt),x(ct,S,G,Oe,Kt),_r<26&&(Kt=String.fromCharCode(55349,56632+_r),x(T,S,Ut,Oe,Kt),x(ct,S,G,Oe,Kt),Kt=String.fromCharCode(55349,56476+_r),x(T,S,Ut,Oe,Kt),x(ct,S,G,Oe,Kt))}Kt="𝕜";x(T,S,Ut,"k",Kt);x(ct,S,G,"k",Kt);for(var ca=0;ca<10;ca++){var Fn=ca.toString();Kt=String.fromCharCode(55349,57294+ca),x(T,S,Ut,Fn,Kt),x(ct,S,G,Fn,Kt),Kt=String.fromCharCode(55349,57314+ca),x(T,S,Ut,Fn,Kt),x(ct,S,G,Fn,Kt),Kt=String.fromCharCode(55349,57324+ca),x(T,S,Ut,Fn,Kt),x(ct,S,G,Fn,Kt),Kt=String.fromCharCode(55349,57334+ca),x(T,S,Ut,Fn,Kt),x(ct,S,G,Fn,Kt)}var pd="ÐÞþ";for(var t0=0;t0<pd.length;t0++){var Jl=pd.charAt(t0);x(T,S,Ut,Jl,Jl),x(ct,S,G,Jl,Jl)}var md={mathClass:"mathbf",textClass:"textbf",font:"Main-Bold"},Xm={mathClass:"mathnormal",textClass:"textit",font:"Math-Italic"},Km={mathClass:"boldsymbol",textClass:"boldsymbol",font:"Main-BoldItalic"},_E={mathClass:"mathscr",textClass:"textscr",font:"Script-Regular"},Ca={mathClass:"",textClass:"",font:""},Qm={mathClass:"mathfrak",textClass:"textfrak",font:"Fraktur-Regular"},Zm={mathClass:"mathbb",textClass:"textbb",font:"AMS-Regular"},Jm={mathClass:"mathboldfrak",textClass:"textboldfrak",font:"Fraktur-Regular"},gd={mathClass:"mathsf",textClass:"textsf",font:"SansSerif-Regular"},bd={mathClass:"mathboldsf",textClass:"textboldsf",font:"SansSerif-Bold"},tg={mathClass:"mathitsf",textClass:"textitsf",font:"SansSerif-Italic"},yd={mathClass:"mathtt",textClass:"texttt",font:"Typewriter-Regular"},eg=[md,md,Xm,Xm,Km,Km,_E,Ca,Ca,Ca,Qm,Qm,Zm,Zm,Jm,Jm,gd,gd,bd,bd,tg,tg,Ca,Ca,yd,yd],AE=[md,Ca,gd,bd,yd],BE=e=>{var t=e.charCodeAt(0),r=e.charCodeAt(1),i=(t-55296)*1024+(r-56320)+65536;if(119808<=i&&i<120484){var n=Math.floor((i-119808)/26);return eg[n]}else if(120782<=i&&i<=120831){var a=Math.floor((i-120782)/10);return AE[a]}else{if(i===120485||i===120486)return eg[0];if(120486<i&&i<120782)return Ca;throw new pt("Unsupported character: "+e)}},Xc=function(t,r,i){if(Ae[i][t]){var n=Ae[i][t].replace;n&&(t=n)}return{value:t,metrics:o1(t,r,i)}},Lr=function(t,r,i,n,a){var s=Xc(t,r,i),o=s.metrics;t=s.value;var l;if(o){var u=o.italic;(i==="text"||n&&n.font==="mathit")&&(u=0),l=new Jr(t,o.height,o.depth,u,o.skew,o.width,a)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+i+"'")),l=new Jr(t,0,0,0,0,0,a);if(n){l.maxFontSize=n.sizeMultiplier,n.style.isTight()&&l.classes.push("mtight");var c=n.getColor();c&&(l.style.color=c)}return l},l1=function(t,r,i,n){return n===void 0&&(n=[]),i.font==="boldsymbol"&&Xc(t,"Main-Bold",r).metrics?Lr(t,"Main-Bold",r,i,n.concat(["mathbf"])):t==="\\"||Ae[r][t].font==="main"?Lr(t,"Main-Regular",r,i,n):Lr(t,"AMS-Regular",r,i,n.concat(["amsrm"]))},LE=function(t,r,i){return i!=="textord"&&Xc(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Kc=function(t,r,i){var n=t.mode,a=t.text,s=["mord"],{font:o,fontFamily:l,fontWeight:u,fontShape:c}=r,h=n==="math"||n==="text"&&!!o,f=h?o:l,d="",p="";if(a.charCodeAt(0)===55349){var m=BE(a);d=m.font,p=m[n+"Class"]}if(d)return Lr(a,d,n,r,s.concat(p));if(f){var g,y;if(f==="boldsymbol"){var k=LE(a,n,i);g=k.fontName,y=[k.fontClass]}else h?(g=xd[o].fontName,y=[o]):(g=tu(l,u,c),y=[l,u,c]);if(Xc(a,g,n).metrics)return Lr(a,g,n,r,s.concat(y));if(q4.hasOwnProperty(a)&&g.slice(0,10)==="Typewriter"){for(var w=[],_=0;_<a.length;_++)w.push(Lr(a[_],g,n,r,s.concat(y)));return En(w)}}if(i==="mathord")return Lr(a,"Math-Italic",n,r,s.concat(["mathnormal"]));if(i==="textord"){var A=Ae[n][a]&&Ae[n][a].font;if(A==="ams"){var E=tu("amsrm",u,c);return Lr(a,E,n,r,s.concat("amsrm",u,c))}else if(A==="main"||!A){var N=tu("textrm",u,c);return Lr(a,N,n,r,s.concat(u,c))}else{var F=tu(A,u,c);return Lr(a,F,n,r,s.concat(F,u,c))}}else throw new Error("unexpected type: "+i+" in makeOrd")},IE=(e,t)=>{if(Xn(e.classes)!==Xn(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize||e.italic!==0&&e.hasClass("mathnormal"))return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var i of Object.keys(e.style))if(e.style[i]!==t.style[i])return!1;for(var n of Object.keys(t.style))if(e.style[n]!==t.style[n])return!1;return!0},U4=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],i=e[t+1];r instanceof Jr&&i instanceof Jr&&IE(r,i)&&(r.text+=i.text,r.height=Math.max(r.height,i.height),r.depth=Math.max(r.depth,i.depth),r.italic=i.italic,e.splice(t+1,1),t--)}return e},u1=function(t){for(var r=0,i=0,n=0,a=0;a<t.children.length;a++){var s=t.children[a];s.height>r&&(r=s.height),s.depth>i&&(i=s.depth),s.maxFontSize>n&&(n=s.maxFontSize)}t.height=r,t.depth=i,t.maxFontSize=n},dt=function(t,r,i,n){var a=new Qs(t,r,i,n);return u1(a),a},Qn=(e,t,r,i)=>new Qs(e,t,r,i),Os=function(t,r,i){var n=dt([t],[],r);return n.height=Math.max(i||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),n.style.borderBottomWidth=xt(n.height),n.maxFontSize=1,n},ME=function(t,r,i,n){var a=new Gc(t,r,i,n);return u1(a),a},En=function(t){var r=new Ks(t);return u1(r),r},Ds=function(t,r){return t instanceof Ks?dt([],[t],r):t},NE=function(t){if(t.positionType==="individualShift"){for(var r=t.children,i=[r[0]],n=-r[0].shift-r[0].elem.depth,a=n,s=1;s<r.length;s++){var o=-r[s].shift-a-r[s].elem.depth,l=o-(r[s-1].elem.height+r[s-1].elem.depth);a=a+o,i.push({type:"kern",size:l}),i.push(r[s])}return{children:i,depth:n}}var u;if(t.positionType==="top"){for(var c=t.positionData,h=0;h<t.children.length;h++){var f=t.children[h];c-=f.type==="kern"?f.size:f.elem.height+f.elem.depth}u=c}else if(t.positionType==="bottom")u=-t.positionData;else{var d=t.children[0];if(d.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")u=-d.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")u=-d.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:u}},ye=function(t,r){for(var{children:i,depth:n}=NE(t),a=0,s=0;s<i.length;s++){var o=i[s];if(o.type==="elem"){var l=o.elem;a=Math.max(a,l.maxFontSize,l.height)}}a+=2;var u=dt(["pstrut"],[]);u.style.height=xt(a);for(var c=[],h=n,f=n,d=n,p=0;p<i.length;p++){var m=i[p];if(m.type==="kern")d+=m.size;else{var g=m.elem,y=m.wrapperClasses||[],k=m.wrapperStyle||{},w=dt(y,[u,g],void 0,k);w.style.top=xt(-a-d-g.depth),m.marginLeft&&(w.style.marginLeft=m.marginLeft),m.marginRight&&(w.style.marginRight=m.marginRight),c.push(w),d+=g.height+g.depth}h=Math.min(h,d),f=Math.max(f,d)}var _=dt(["vlist"],c);_.style.height=xt(f);var A;if(h<0){var E=dt([],[]),N=dt(["vlist"],[E]);N.style.height=xt(-h);var F=dt(["vlist-s"],[new Jr("")]);A=[dt(["vlist-r"],[_,F]),dt(["vlist-r"],[N])]}else A=[dt(["vlist-r"],[_])];var Y=dt(["vlist-t"],A);return A.length===2&&Y.classes.push("vlist-t2"),Y.height=f,Y.depth=-h,Y},W4=(e,t)=>{var r=dt(["mspace"],[],t),i=Me(e,t);return r.style.marginRight=xt(i),r},tu=(e,t,r)=>{var i,n;switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}return t==="textbf"&&r==="textit"?n="BoldItalic":t==="textbf"?n="Bold":r==="textit"?n="Italic":n="Regular",i+"-"+n},xd={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},j4={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Y4=function(t,r){var[i,n,a]=j4[t],s=new Kn(i),o=new kn([s],{width:xt(n),height:xt(a),style:"width:"+xt(n),viewBox:"0 0 "+1e3*n+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=Qn(["overlay"],[o],r);return l.height=a,l.style.height=xt(a),l.style.width=xt(n),l},Ie={number:3,unit:"mu"},ha={number:4,unit:"mu"},hn={number:5,unit:"mu"},FE={mord:{mop:Ie,mbin:ha,mrel:hn,minner:Ie},mop:{mord:Ie,mop:Ie,mrel:hn,minner:Ie},mbin:{mord:ha,mop:ha,mopen:ha,minner:ha},mrel:{mord:hn,mop:hn,mopen:hn,minner:hn},mopen:{},mclose:{mop:Ie,mbin:ha,mrel:hn,minner:Ie},mpunct:{mord:Ie,mop:Ie,mrel:hn,mopen:Ie,mclose:Ie,mpunct:Ie,minner:Ie},minner:{mord:Ie,mop:Ie,mbin:ha,mrel:hn,mopen:Ie,mpunct:Ie,minner:Ie}},OE={mord:{mop:Ie},mop:{mord:Ie,mop:Ie},mbin:{},mrel:{},mopen:{},mclose:{mop:Ie},mpunct:{},minner:{mop:Ie}},V4={},tc={},ec={};function Et(e){for(var{type:t,names:r,props:i,handler:n,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:i.allowedInMath===void 0?!0:i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:n},l=0;l<r.length;++l)V4[r[l]]=o;t&&(a&&(tc[t]=a),s&&(ec[t]=s))}function ja(e){var{type:t,htmlBuilder:r,mathmlBuilder:i}=e;Et({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:i})}var rc=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Ue=function(t){return t.type==="ordgroup"?t.body:[t]},DE=new Set(["leftmost","mbin","mopen","mrel","mop","mpunct"]),RE=new Set(["rightmost","mrel","mclose","mpunct"]),PE={display:te.DISPLAY,text:te.TEXT,script:te.SCRIPT,scriptscript:te.SCRIPTSCRIPT},$E={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Ze=function(t,r,i,n){n===void 0&&(n=[null,null]);for(var a=[],s=0;s<t.length;s++){var o=xe(t[s],r);if(o instanceof Ks){var l=o.children;a.push(...l)}else a.push(o)}if(U4(a),!i)return a;var u=r;if(t.length===1){var c=t[0];c.type==="sizing"?u=r.havingSize(c.size):c.type==="styling"&&(u=r.havingStyle(PE[c.style]))}var h=dt([n[0]||"leftmost"],[],r),f=dt([n[1]||"rightmost"],[],r),d=i==="root";return Cd(a,(p,m)=>{var g=m.classes[0],y=p.classes[0];g==="mbin"&&RE.has(y)?m.classes[0]="mord":y==="mbin"&&DE.has(g)&&(p.classes[0]="mord")},{node:h},f,d),Cd(a,(p,m)=>{var g,y,k=Td(m),w=Td(p),_=k&&w?p.hasClass("mtight")?(g=OE[k])==null?void 0:g[w]:(y=FE[k])==null?void 0:y[w]:null;if(_)return W4(_,u)},{node:h},f,d),a},Cd=function(t,r,i,n,a){n&&t.push(n);for(var s=0;s<t.length;s++){var o=t[s],l=G4(o);if(l){Cd(l.children,r,i,null,a);continue}var u=!o.hasClass("mspace");if(u){var c=r(o,i.node);c&&(i.insertAfter?i.insertAfter(c):(t.unshift(c),s++))}u?i.node=o:a&&o.hasClass("newline")&&(i.node=dt(["leftmost"])),i.insertAfter=(h=>f=>{t.splice(h+1,0,f),s++})(s)}n&&t.pop()},G4=function(t){return t instanceof Ks||t instanceof Gc||t instanceof Qs&&t.hasClass("enclosing")?t:null},kd=function(t,r){var i=G4(t);if(i){var n=i.children;if(n.length){if(r==="right")return kd(n[n.length-1],"right");if(r==="left")return kd(n[0],"left")}}return t},Td=function(t,r){if(!t)return null;r&&(t=kd(t,r));var i=t.classes[0];return $E[i]||null},ll=function(t,r){var i=["nulldelimiter"].concat(t.baseSizingClasses());return dt(r.concat(i))},xe=function(t,r,i){if(!t)return dt();if(tc[t.type]){var n=tc[t.type](t,r);if(i&&r.size!==i.size){n=dt(r.sizingClasses(i),[n],r);var a=r.sizeMultiplier/i.sizeMultiplier;n.height*=a,n.depth*=a}return n}else throw new pt("Got group of unknown type: '"+t.type+"'")};function eu(e,t){var r=dt(["base"],e,t),i=dt(["strut"]);return i.style.height=xt(r.height+r.depth),r.depth&&(i.style.verticalAlign=xt(-r.depth)),r.children.unshift(i),r}function wd(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var i=Ze(e,t,"root"),n;i.length===2&&i[1].hasClass("tag")&&(n=i.pop());for(var a=[],s=[],o=0;o<i.length;o++)if(s.push(i[o]),i[o].hasClass("mbin")||i[o].hasClass("mrel")||i[o].hasClass("allowbreak")){for(var l=!1;o<i.length-1&&i[o+1].hasClass("mspace")&&!i[o+1].hasClass("newline");)o++,s.push(i[o]),i[o].hasClass("nobreak")&&(l=!0);l||(a.push(eu(s,t)),s=[])}else i[o].hasClass("newline")&&(s.pop(),s.length>0&&(a.push(eu(s,t)),s=[]),a.push(i[o]));s.length>0&&a.push(eu(s,t));var u;r?(u=eu(Ze(r,t,!0),t),u.classes=["tag"],a.push(u)):n&&a.push(n);var c=dt(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),u){var h=u.children[0];h.style.height=xt(c.height+c.depth),c.depth&&(h.style.verticalAlign=xt(-c.depth))}return c}function X4(e){return new Ks(e)}class gt{constructor(t,r,i){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=i||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=Xn(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof We&&this.children[i+1]instanceof We){for(var n=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof We;)n+=this.children[++i].toText();t.appendChild(new We(n).toNode())}else t.appendChild(this.children[i].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=Cr(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+Cr(Xn(this.classes))+'"'),t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class We{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Cr(this.toText())}toText(){return this.text}}class K4{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character=" ":t>=-.05556&&t<=-.05555?this.character=" ":t>=-.1667&&t<=-.1666?this.character=" ":t>=-.2223&&t<=-.2222?this.character=" ":t>=-.2778&&t<=-.2777?this.character=" ":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",xt(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+xt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var zE=new Set(["\\imath","\\jmath"]),HE=new Set(["mrow","mtable"]),pi=function(t,r,i){return Ae[r][t]&&Ae[r][t].replace&&t.charCodeAt(0)!==55349&&!(q4.hasOwnProperty(t)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(t=Ae[r][t].replace),new We(t)},c1=function(t){return t.length===1?t[0]:new gt("mrow",t)},qE={mathit:"italic",boldsymbol:e=>e.type==="textord"?"bold":"bold-italic",mathbf:"bold",mathbb:"double-struck",mathsfit:"sans-serif-italic",mathfrak:"fraktur",mathscr:"script",mathcal:"script",mathsf:"sans-serif",mathtt:"monospace"},h1=(e,t)=>{if(e.mode==="text"){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold"}var r=t.font;if(!r||r==="mathnormal")return null;var i=e.mode,n=qE[r];if(n)return typeof n=="function"?n(e):n;var a=e.text;if(zE.has(a))return null;if(Ae[i][a]){var s=Ae[i][a].replace;s&&(a=s)}var o=xd[r].fontName;return o1(a,o,i)?xd[r].variant:null};function e0(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof We&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof We&&r.text===","}else return!1}var ii=function(t,r,i){if(t.length===1){var n=Se(t[0],r);return i&&n instanceof gt&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var a=[],s,o=0;o<t.length;o++){var l=Se(t[o],r);if(l instanceof gt&&s instanceof gt){if(l.type==="mtext"&&s.type==="mtext"&&l.getAttribute("mathvariant")===s.getAttribute("mathvariant")){s.children.push(...l.children);continue}else if(l.type==="mn"&&s.type==="mn"){s.children.push(...l.children);continue}else if(e0(l)&&s.type==="mn"){s.children.push(...l.children);continue}else if(l.type==="mn"&&e0(s))l.children=[...s.children,...l.children],a.pop();else if((l.type==="msup"||l.type==="msub")&&l.children.length>=1&&(s.type==="mn"||e0(s))){var u=l.children[0];u instanceof gt&&u.type==="mn"&&(u.children=[...s.children,...u.children],a.pop())}else if(s.type==="mi"&&s.children.length===1){var c=s.children[0];if(c instanceof We&&c.text==="̸"&&(l.type==="mo"||l.type==="mi"||l.type==="mn")){var h=l.children[0];h instanceof We&&h.text.length>0&&(h.text=h.text.slice(0,1)+"̸"+h.text.slice(1),a.pop())}}}a.push(l),s=l}return a},Zn=function(t,r,i){return c1(ii(t,r,i))},Se=function(t,r){if(!t)return new gt("mrow");if(ec[t.type])return ec[t.type](t,r);throw new pt("Got group of unknown type: '"+t.type+"'")};function rg(e,t,r,i,n){var a=ii(e,r),s;a.length===1&&a[0]instanceof gt&&HE.has(a[0].type)?s=a[0]:s=new gt("mrow",a);var o=new gt("annotation",[new We(t)]);o.setAttribute("encoding","application/x-tex");var l=new gt("semantics",[s,o]),u=new gt("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&u.setAttribute("display","block");var c=n?"katex":"katex-mathml";return dt([c],[u])}var UE=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ig=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],ng=function(t,r){return r.size<2?t:UE[t-1][r.size-1]};class gn{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||gn.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=ig[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};return Object.assign(r,t),new gn(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:ng(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:ig[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=ng(gn.BASESIZE,t);return this.size===r&&this.textSize===gn.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==gn.BASESIZE?["sizing","reset-size"+this.size,"size"+gn.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=EE(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}gn.BASESIZE=6;var Q4=function(t){return new gn({style:t.displayMode?te.DISPLAY:te.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Z4=function(t,r){if(r.displayMode){var i=["katex-display"];r.leqno&&i.push("leqno"),r.fleqn&&i.push("fleqn"),t=dt(i,[t])}return t},WE=function(t,r,i){var n=Q4(i),a;if(i.output==="mathml")return rg(t,r,n,i.displayMode,!0);if(i.output==="html"){var s=wd(t,n);a=dt(["katex"],[s])}else{var o=rg(t,r,n,i.displayMode,!1),l=wd(t,n);a=dt(["katex"],[o,l])}return Z4(a,i)},jE=function(t,r,i){var n=Q4(i),a=wd(t,n),s=dt(["katex"],[a]);return Z4(s,i)},YE={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",underbracket:"⎵",overbracket:"⎴",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Qc=function(t){var r=new gt("mo",[new We(YE[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},VE={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overbracket:[["leftbracketover","rightbracketover"],1.6,440],underbracket:[["leftbracketunder","rightbracketunder"],1.6,410],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},GE=new Set(["widehat","widecheck","widetilde","utilde"]),Zc=function(t,r){function i(){var o=4e5,l=t.label.slice(1);if(GE.has(l)&&"base"in t){var u=t.base.type==="ordgroup"?t.base.body.length:1,c,h,f;if(u>5)l==="widehat"||l==="widecheck"?(c=420,o=2364,f=.42,h=l+"4"):(c=312,o=2340,f=.34,h="tilde4");else{var d=[1,1,2,2,3,3][u];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][d],c=[0,239,300,360,420][d],f=[0,.24,.3,.3,.36,.42][d],h=l+d):(o=[0,600,1033,2339,2340][d],c=[0,260,286,306,312][d],f=[0,.26,.286,.3,.306,.34][d],h="tilde"+d)}var p=new Kn(h),m=new kn([p],{width:"100%",height:xt(f),viewBox:"0 0 "+o+" "+c,preserveAspectRatio:"none"});return{span:Qn([],[m],r),minWidth:0,height:f}}else{var g=[],y=VE[l];if(!y)throw new Error('No SVG data for "'+l+'".');var[k,w,_]=y,A=_/1e3,E=k.length,N,F;if(E===1){if(y.length!==4)throw new Error('Expected 4-tuple for single-path SVG data "'+l+'".');N=["hide-tail"],F=[y[3]]}else if(E===2)N=["halfarrow-left","halfarrow-right"],F=["xMinYMin","xMaxYMin"];else if(E===3)N=["brace-left","brace-center","brace-right"],F=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
260
|
+
`+E+" children.");for(var Y=0;Y<E;Y++){var I=new Kn(k[Y]),z=new kn([I],{width:"400em",height:xt(A),viewBox:"0 0 "+o+" "+_,preserveAspectRatio:F[Y]+" slice"}),K=Qn([N[Y]],[z],r);if(E===1)return{span:K,minWidth:w,height:A};K.style.height=xt(A),g.push(K)}return{span:dt(["stretchy"],g,r),minWidth:w,height:A}}}var{span:n,minWidth:a,height:s}=i();return n.height=s,n.style.height=xt(s),a>0&&(n.style.minWidth=xt(a)),n},XE=function(t,r,i,n,a){var s,o=t.height+t.depth+i+n;if(/fbox|color|angl/.test(r)){if(s=dt(["stretchy",r],[],a),r==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(r)&&u.push(new fd({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&u.push(new fd({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new kn(u,{width:"100%",height:xt(o)});s=Qn([],[c],a)}return s.height=o,s.style.height=xt(o),s},KE={bin:1,close:1,inner:1,open:1,punct:1,rel:1},QE={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1};function ZE(e){return e in KE}function ne(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Jc(e){var t=th(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function th(e){return e&&(e.type==="atom"||QE.hasOwnProperty(e.type))?e:null}var J4=e=>{if(e instanceof Jr)return e;if(SE(e)&&e.children.length===1)return J4(e.children[0])},d1=(e,t)=>{var r,i,n;e&&e.type==="supsub"?(i=ne(e.base,"accent"),r=i.base,e.base=r,n=vE(xe(e,t)),e.base=i):(i=ne(e,"accent"),r=i.base);var a=xe(r,t.havingCrampedStyle()),s=i.isShifty&&vn(r),o=0;if(s){var l,u;o=(l=(u=J4(a))==null?void 0:u.skew)!=null?l:0}var c=i.label==="\\c",h=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),f;if(i.isStretchy)f=Zc(i,t),f=ye({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:f,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+xt(2*o)+")",marginLeft:xt(2*o)}:void 0}]});else{var d,p;i.label==="\\vec"?(d=Y4("vec",t),p=j4.vec[1]):(d=Kc({mode:i.mode,text:i.label},t,"textord"),d=wE(d),d.italic=0,p=d.width,c&&(h+=d.depth)),f=dt(["accent-body"],[d]);var m=i.label==="\\textcircled";m&&(f.classes.push("accent-full"),h=a.height);var g=o;m||(g-=p/2),f.style.left=xt(g),i.label==="\\textcircled"&&(f.style.top=".2em"),f=ye({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-h},{type:"elem",elem:f}]})}var y=dt(["mord","accent"],[f],t);return n?(n.children[0]=y,n.height=Math.max(y.height,n.height),n.classes[0]="mord",n):y},t3=(e,t)=>{var r=e.isStretchy?Qc(e.label):new gt("mo",[pi(e.label,e.mode)]),i=new gt("mover",[Se(e.base,t),r]);return i.setAttribute("accent","true"),i},JE=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));Et({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=rc(t[0]),i=!JE.test(e.funcName),n=!i||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:n,base:r}},htmlBuilder:d1,mathmlBuilder:t3});Et({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],i=e.parser.mode;return i==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:d1,mathmlBuilder:t3});Et({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:i}=e,n=t[0];return{type:"accentUnder",mode:r.mode,label:i,base:n}},htmlBuilder:(e,t)=>{var r=xe(e.base,t),i=Zc(e,t),n=e.label==="\\utilde"?.12:0,a=ye({positionType:"top",positionData:r.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:r}]});return dt(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var r=Qc(e.label),i=new gt("munder",[Se(e.base,t),r]);return i.setAttribute("accentunder","true"),i}});var ru=e=>{var t=new gt("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};Et({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:i,funcName:n}=e;return{type:"xArrow",mode:i.mode,label:n,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,i=t.havingStyle(r.sup()),n=Ds(xe(e.body,i,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(a+"-arrow-pad");var s;e.below&&(i=t.havingStyle(r.sub()),s=Ds(xe(e.below,i,t),t),s.classes.push(a+"-arrow-pad"));var o=Zc(e,t),l=-t.fontMetrics().axisHeight+.5*o.height,u=-t.fontMetrics().axisHeight-.5*o.height-.111;(n.depth>.25||e.label==="\\xleftequilibrium")&&(u-=n.depth);var c;if(s){var h=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;c=ye({positionType:"individualShift",children:[{type:"elem",elem:n,shift:u},{type:"elem",elem:o,shift:l,wrapperClasses:["svg-align"]},{type:"elem",elem:s,shift:h}]})}else c=ye({positionType:"individualShift",children:[{type:"elem",elem:n,shift:u},{type:"elem",elem:o,shift:l,wrapperClasses:["svg-align"]}]});return dt(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var r=Qc(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(e.body){var n=ru(Se(e.body,t));if(e.below){var a=ru(Se(e.below,t));i=new gt("munderover",[r,a,n])}else i=new gt("mover",[r,n])}else if(e.below){var s=ru(Se(e.below,t));i=new gt("munder",[r,s])}else i=ru(),i=new gt("mover",[r,i]);return i}});function e3(e,t){var r=Ze(e.body,t,!0);return dt([e.mclass],r,t)}function r3(e,t){var r,i=ii(e.body,t);return e.mclass==="minner"?r=new gt("mpadded",i):e.mclass==="mord"?e.isCharacterBox?(r=i[0],r.type="mi"):r=new gt("mi",i):(e.isCharacterBox?(r=i[0],r.type="mo"):r=new gt("mo",i),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}Et({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:i}=e,n=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+i.slice(5),body:Ue(n),isCharacterBox:vn(n)}},htmlBuilder:e3,mathmlBuilder:r3});var eh=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};Et({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:eh(t[0]),body:Ue(t[1]),isCharacterBox:vn(t[1])}}});Et({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:i}=e,n=t[1],a=t[0],s;i!=="\\stackrel"?s=eh(n):s="mrel";var o={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:Ue(n)},l={type:"supsub",mode:a.mode,base:o,sup:i==="\\underset"?null:a,sub:i==="\\underset"?a:null};return{type:"mclass",mode:r.mode,mclass:s,body:[l],isCharacterBox:vn(l)}},htmlBuilder:e3,mathmlBuilder:r3});Et({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:eh(t[0]),body:Ue(t[0])}},htmlBuilder(e,t){var r=Ze(e.body,t,!0),i=dt([e.mclass],r,t);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(e,t){var r=ii(e.body,t),i=new gt("mstyle",r);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var t_={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},ag=()=>({type:"styling",body:[],mode:"math",style:"display",resetFont:!0}),sg=e=>e.type==="textord"&&e.text==="@",e_=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function r_(e,t,r){var i=t_[e];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var n=r.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:i,mode:"math",family:"rel"},s=r.callFunction("\\Big",[a],[]),o=r.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[n,s,o]};return r.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function i_(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new pt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var i=[],n=[i],a=0;a<t.length;a++){for(var s=t[a],o=ag(),l=0;l<s.length;l++)if(!sg(s[l]))o.body.push(s[l]);else{i.push(o),l+=1;var u=Jc(s[l]).text,c=new Array(2);if(c[0]={type:"ordgroup",mode:"math",body:[]},c[1]={type:"ordgroup",mode:"math",body:[]},!"=|.".includes(u))if("<>AV".includes(u))for(var h=0;h<2;h++){for(var f=!0,d=l+1;d<s.length;d++){if(e_(s[d],u)){f=!1,l=d;break}if(sg(s[d]))throw new pt("Missing a "+u+" character to complete a CD arrow.",s[d]);c[h].body.push(s[d])}if(f)throw new pt("Missing a "+u+" character to complete a CD arrow.",s[l])}else throw new pt('Expected one of "<>AV=|." after @',s[l]);var p=r_(u,c,e),m={type:"styling",body:[p],mode:"math",style:"display",resetFont:!0};i.push(m),o=ag()}a%2===0?i.push(o):i.shift(),i=[],n.push(i)}e.gullet.endGroup(),e.gullet.endGroup();var g=new Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:g,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}Et({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:i}=e;return{type:"cdlabel",mode:r.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),i=Ds(xe(e.label,r,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=xt(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){var r=new gt("mrow",[Se(e.label,t)]);return r=new gt("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new gt("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});Et({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=Ds(xe(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new gt("mrow",[Se(e.fragment,t)])}});Et({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,i=ne(t[0],"ordgroup"),n=i.body,a="",s=0;s<n.length;s++){var o=ne(n[s],"textord");a+=o.text}var l=parseInt(a),u;if(isNaN(l))throw new pt("\\@char has non-numeric argument "+a);if(l<0||l>=1114111)throw new pt("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:r.mode,text:u}}});var i3=(e,t)=>{var r=Ze(e.body,t.withColor(e.color),!1);return En(r)},n3=(e,t)=>{var r=ii(e.body,t.withColor(e.color)),i=new gt("mstyle",r);return i.setAttribute("mathcolor",e.color),i};Et({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,i=ne(t[0],"color-token").color,n=t[1];return{type:"color",mode:r.mode,color:i,body:Ue(n)}},htmlBuilder:i3,mathmlBuilder:n3});Et({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:i}=e,n=ne(t[0],"color-token").color;r.gullet.macros.set("\\current@color",n);var a=r.parseExpression(!0,i);return{type:"color",mode:r.mode,color:n,body:a}},htmlBuilder:i3,mathmlBuilder:n3});Et({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:i}=e,n=i.gullet.future().text==="["?i.parseSizeGroup(!0):null,a=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:a,size:n&&ne(n,"size").value}},htmlBuilder(e,t){var r=dt(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=xt(Me(e.size,t)))),r},mathmlBuilder(e,t){var r=new gt("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",xt(Me(e.size,t)))),r}});var vd={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},a3=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new pt("Expected a control sequence",e);return t},n_=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},s3=(e,t,r,i)=>{var n=e.gullet.macros.get(r.text);n==null&&(r.noexpand=!0,n={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,n,i)};Et({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var i=t.fetch();if(vd[i.text])return(r==="\\global"||r==="\\\\globallong")&&(i.text=vd[i.text]),ne(t.parseFunction(),"internal");throw new pt("Invalid token after macro prefix",i)}});Et({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,i=t.gullet.popToken(),n=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new pt("Expected a control sequence",i);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(i=t.gullet.popToken(),i.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new pt('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==a+1)throw new pt('Argument number "'+i.text+'" out of order');a++,o.push([])}else{if(i.text==="EOF")throw new pt("Expected a macro definition");o[a].push(i.text)}var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),(r==="\\edef"||r==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(n,{tokens:l,numArgs:a,delimiters:o},r===vd[r]),{type:"internal",mode:t.mode}}});Et({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,i=a3(t.gullet.popToken());t.gullet.consumeSpaces();var n=n_(t);return s3(t,i,n,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});Et({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,i=a3(t.gullet.popToken()),n=t.gullet.popToken(),a=t.gullet.popToken();return s3(t,i,a,r==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(n),{type:"internal",mode:t.mode}}});var Lo=function(t,r,i){var n=Ae.math[t]&&Ae.math[t].replace,a=o1(n||t,r,i);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return a},f1=function(t,r,i,n){var a=i.havingBaseStyle(r),s=dt(n.concat(a.sizingClasses(i)),[t],i),o=a.sizeMultiplier/i.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},o3=function(t,r,i){var n=r.havingBaseStyle(i),a=(1-r.sizeMultiplier/n.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=xt(a),t.height-=a,t.depth+=a},a_=function(t,r,i,n,a,s){var o=Lr(t,"Main-Regular",a,n),l=f1(o,r,n,s);return o3(l,n,r),l},s_=function(t,r,i,n){return Lr(t,"Size"+r+"-Regular",i,n)},l3=function(t,r,i,n,a,s){var o=s_(t,r,a,n),l=f1(dt(["delimsizing","size"+r],[o],n),te.TEXT,n,s);return i&&o3(l,n,te.TEXT),l},r0=function(t,r,i){var n;r==="Size1-Regular"?n="delim-size1":n="delim-size4";var a=dt(["delimsizinginner",n],[dt([],[Lr(t,r,i)])]);return{type:"elem",elem:a}},i0=function(t,r,i){var n=Gi["Size4-Regular"][t.charCodeAt(0)]?Gi["Size4-Regular"][t.charCodeAt(0)][4]:Gi["Size1-Regular"][t.charCodeAt(0)][4],a=new Kn("inner",gE(t,Math.round(1e3*r))),s=new kn([a],{width:xt(n),height:xt(r),style:"width:"+xt(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),o=Qn([],[s],i);return o.height=r,o.style.height=xt(r),o.style.width=xt(n),{type:"elem",elem:o}},Sd=.008,iu={type:"kern",size:-1*Sd},o_=new Set(["|","\\lvert","\\rvert","\\vert"]),l_=new Set(["\\|","\\lVert","\\rVert","\\Vert"]),u3=function(t,r,i,n,a,s){var o,l,u,c,h="",f=0;o=u=c=t,l=null;var d="Size1-Regular";t==="\\uparrow"?u=c="⏐":t==="\\Uparrow"?u=c="‖":t==="\\downarrow"?o=u="⏐":t==="\\Downarrow"?o=u="‖":t==="\\updownarrow"?(o="\\uparrow",u="⏐",c="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",u="‖",c="\\Downarrow"):o_.has(t)?(u="∣",h="vert",f=333):l_.has(t)?(u="∥",h="doublevert",f=556):t==="["||t==="\\lbrack"?(o="⎡",u="⎢",c="⎣",d="Size4-Regular",h="lbrack",f=667):t==="]"||t==="\\rbrack"?(o="⎤",u="⎥",c="⎦",d="Size4-Regular",h="rbrack",f=667):t==="\\lfloor"||t==="⌊"?(u=o="⎢",c="⎣",d="Size4-Regular",h="lfloor",f=667):t==="\\lceil"||t==="⌈"?(o="⎡",u=c="⎢",d="Size4-Regular",h="lceil",f=667):t==="\\rfloor"||t==="⌋"?(u=o="⎥",c="⎦",d="Size4-Regular",h="rfloor",f=667):t==="\\rceil"||t==="⌉"?(o="⎤",u=c="⎥",d="Size4-Regular",h="rceil",f=667):t==="("||t==="\\lparen"?(o="⎛",u="⎜",c="⎝",d="Size4-Regular",h="lparen",f=875):t===")"||t==="\\rparen"?(o="⎞",u="⎟",c="⎠",d="Size4-Regular",h="rparen",f=875):t==="\\{"||t==="\\lbrace"?(o="⎧",l="⎨",c="⎩",u="⎪",d="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",l="⎬",c="⎭",u="⎪",d="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",c="⎩",u="⎪",d="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",c="⎭",u="⎪",d="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",c="⎭",u="⎪",d="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",c="⎩",u="⎪",d="Size4-Regular");var p=Lo(o,d,a),m=p.height+p.depth,g=Lo(u,d,a),y=g.height+g.depth,k=Lo(c,d,a),w=k.height+k.depth,_=0,A=1;if(l!==null){var E=Lo(l,d,a);_=E.height+E.depth,A=2}var N=m+w+_,F=Math.max(0,Math.ceil((r-N)/(A*y))),Y=N+F*A*y,I=n.fontMetrics().axisHeight;i&&(I*=n.sizeMultiplier);var z=Y/2-I,K=[];if(h.length>0){var J=Y-m-w,j=Math.round(Y*1e3),P=bE(h,Math.round(J*1e3)),$=new Kn(h,P),V=xt(f/1e3),X=xt(j/1e3),it=new kn([$],{width:V,height:X,viewBox:"0 0 "+f+" "+j}),L=Qn([],[it],n);L.height=j/1e3,L.style.width=V,L.style.height=X,K.push({type:"elem",elem:L})}else{if(K.push(r0(c,d,a)),K.push(iu),l===null){var lt=Y-m-w+2*Sd;K.push(i0(u,lt,n))}else{var Ct=(Y-m-w-_)/2+2*Sd;K.push(i0(u,Ct,n)),K.push(iu),K.push(r0(l,d,a)),K.push(iu),K.push(i0(u,Ct,n))}K.push(iu),K.push(r0(o,d,a))}var O=n.havingBaseStyle(te.TEXT),St=ye({positionType:"bottom",positionData:z,children:K});return f1(dt(["delimsizing","mult"],[St],O),te.TEXT,n,s)},n0=80,a0=.08,s0=function(t,r,i,n,a){var s=mE(t,n,i),o=new Kn(t,s),l=new kn([o],{width:"400em",height:xt(r),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return Qn(["hide-tail"],[l],a)},u_=function(t,r){var i=r.havingBaseSizing(),n=p3("\\surd",t*i.sizeMultiplier,f3,i),a=i.sizeMultiplier,s=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),o,l,u,c,h;return n.type==="small"?(c=1e3+1e3*s+n0,t<1?a=1:t<1.4&&(a=.7),l=(1+s+a0)/a,u=(1+s)/a,o=s0("sqrtMain",l,c,s,r),o.style.minWidth="0.853em",h=.833/a):n.type==="large"?(c=(1e3+n0)*Uo[n.size],u=(Uo[n.size]+s)/a,l=(Uo[n.size]+s+a0)/a,o=s0("sqrtSize"+n.size,l,c,s,r),o.style.minWidth="1.02em",h=1/a):(l=t+s+a0,u=t+s,c=Math.floor(1e3*t+s)+n0,o=s0("sqrtTall",l,c,s,r),o.style.minWidth="0.742em",h=1.056),o.height=u,o.style.height=xt(l),{span:o,advanceWidth:h,ruleWidth:(r.fontMetrics().sqrtRuleThickness+s)*a}},c3=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"]),c_=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"]),h3=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),Uo=[0,1.2,1.8,2.4,3],d3=function(t,r,i,n,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),c3.has(t)||h3.has(t))return l3(t,r,!1,i,n,a);if(c_.has(t))return u3(t,Uo[r],!1,i,n,a);throw new pt("Illegal delimiter: '"+t+"'")},h_=[{type:"small",style:te.SCRIPTSCRIPT},{type:"small",style:te.SCRIPT},{type:"small",style:te.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],d_=[{type:"small",style:te.SCRIPTSCRIPT},{type:"small",style:te.SCRIPT},{type:"small",style:te.TEXT},{type:"stack"}],f3=[{type:"small",style:te.SCRIPTSCRIPT},{type:"small",style:te.SCRIPT},{type:"small",style:te.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],f_=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";var r=t.type;throw new Error("Add support for delim type '"+r+"' here.")},p3=function(t,r,i,n){for(var a=Math.min(2,3-n.style.size),s=a;s<i.length;s++){var o=i[s];if(o.type==="stack")break;var l=Lo(t,f_(o),"math"),u=l.height+l.depth;if(o.type==="small"){var c=n.havingBaseStyle(o.style);u*=c.sizeMultiplier}if(u>r)return o}return i[i.length-1]},Ed=function(t,r,i,n,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;h3.has(t)?o=h_:c3.has(t)?o=f3:o=d_;var l=p3(t,r,o,n);return l.type==="small"?a_(t,l.style,i,n,a,s):l.type==="large"?l3(t,l.size,i,n,a,s):u3(t,r,i,n,a,s)},o0=function(t,r,i,n,a,s){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,l=901,u=5/n.fontMetrics().ptPerEm,c=Math.max(r-o,i+o),h=Math.max(c/500*l,2*c-u);return Ed(t,h,!0,n,a,s)},og={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},p_=new Set(["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."]);function lg(e){return"isMiddle"in e}function rh(e,t){var r=th(e);if(r&&p_.has(r.text))return r;throw r?new pt("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new pt("Invalid delimiter type '"+e.type+"'",e)}Et({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=rh(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:og[e.funcName].size,mclass:og[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?dt([e.mclass]):d3(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(pi(e.delim,e.mode));var r=new gt("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var i=xt(Uo[e.size]);return r.setAttribute("minsize",i),r.setAttribute("maxsize",i),r}});function ug(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Et({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new pt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:rh(t[0],e).text,color:r}}});Et({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=rh(t[0],e),i=e.parser;++i.leftrightDepth;var n=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var a=ne(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:n,left:r.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{ug(e);for(var r=Ze(e.body,t,!0,["mopen","mclose"]),i=0,n=0,a=!1,s=0;s<r.length;s++){var o=r[s];lg(o)?a=!0:(i=Math.max(r[s].height,i),n=Math.max(r[s].depth,n))}i*=t.sizeMultiplier,n*=t.sizeMultiplier;var l;if(e.left==="."?l=ll(t,["mopen"]):l=o0(e.left,i,n,t,e.mode,["mopen"]),r.unshift(l),a)for(var u=1;u<r.length;u++){var c=r[u];if(lg(c)){var h=c.isMiddle;r[u]=o0(h.delim,i,n,h.options,e.mode,[])}}var f;if(e.right===".")f=ll(t,["mclose"]);else{var d=e.rightColor?t.withColor(e.rightColor):t;f=o0(e.right,i,n,d,e.mode,["mclose"])}return r.push(f),dt(["minner"],r,t)},mathmlBuilder:(e,t)=>{ug(e);var r=ii(e.body,t);if(e.left!=="."){var i=new gt("mo",[pi(e.left,e.mode)]);i.setAttribute("fence","true"),r.unshift(i)}if(e.right!=="."){var n=new gt("mo",[pi(e.right,e.mode)]);n.setAttribute("fence","true"),e.rightColor&&n.setAttribute("mathcolor",e.rightColor),r.push(n)}return c1(r)}});Et({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=rh(t[0],e);if(!e.parser.leftrightDepth)throw new pt("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;return e.delim==="."?r=ll(t,[]):(r=d3(e.delim,1,t,e.mode,[]),r.isMiddle={delim:e.delim,options:t}),r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?pi("|","text"):pi(e.delim,e.mode),i=new gt("mo",[r]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var ih=(e,t)=>{var r=Ds(xe(e.body,t),t),i=e.label.slice(1),n=t.sizeMultiplier,a,s,o=vn(e.body);if(i==="sout")a=dt(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/n,s=-.5*t.fontMetrics().xHeight;else if(i==="phase"){var l=Me({number:.6,unit:"pt"},t),u=Me({number:.35,unit:"ex"},t),c=t.havingBaseSizing();n=n/c.sizeMultiplier;var h=r.height+r.depth+l+u;r.style.paddingLeft=xt(h/2+l);var f=Math.floor(1e3*h*n),d=fE(f),p=new kn([new Kn("phase",d)],{width:"400em",height:xt(f/1e3),viewBox:"0 0 400000 "+f,preserveAspectRatio:"xMinYMin slice"});a=Qn(["hide-tail"],[p],t),a.style.height=xt(h),s=r.depth+l+u}else{/cancel/.test(i)?o||r.classes.push("cancel-pad"):i==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var m,g,y=0;/box/.test(i)?(y=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),m=t.fontMetrics().fboxsep+(i==="colorbox"?0:y),g=m):i==="angl"?(y=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),m=4*y,g=Math.max(0,.25-r.depth)):(m=o?.2:0,g=m),a=XE(r,i,m,g,t),/fbox|boxed|fcolorbox/.test(i)?(a.style.borderStyle="solid",a.style.borderWidth=xt(y)):i==="angl"&&y!==.049&&(a.style.borderTopWidth=xt(y),a.style.borderRightWidth=xt(y)),s=r.depth+g,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var k;if(e.backgroundColor)k=ye({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:r,shift:0}]});else{var w=/cancel|phase/.test(i)?["svg-align"]:[];k=ye({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:w}]})}return/cancel/.test(i)&&(k.height=r.height,k.depth=r.depth),/cancel/.test(i)&&!o?dt(["mord","cancel-lap"],[k],t):dt(["mord"],[k],t)},nh=(e,t)=>{var r,i=new gt(e.label.includes("colorbox")?"mpadded":"menclose",[Se(e.body,t)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*r+"pt"),i.setAttribute("height","+"+2*r+"pt"),i.setAttribute("lspace",r+"pt"),i.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var n=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+xt(n)+" solid "+e.borderColor)}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};Et({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","hbox"]},handler(e,t,r){var{parser:i,funcName:n}=e,a=ne(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:i.mode,label:n,backgroundColor:a,body:s}},htmlBuilder:ih,mathmlBuilder:nh});Et({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","hbox"]},handler(e,t,r){var{parser:i,funcName:n}=e,a=ne(t[0],"color-token").color,s=ne(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:i.mode,label:n,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:ih,mathmlBuilder:nh});Et({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});Et({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:i}=e,n=t[0];return{type:"enclose",mode:r.mode,label:i,body:n}},htmlBuilder:ih,mathmlBuilder:nh});Et({type:"enclose",names:["\\sout"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r,funcName:i}=e;r.mode==="math"&&r.settings.reportNonstrict("mathVsSout","LaTeX's \\sout works only in text mode");var n=t[0];return{type:"enclose",mode:r.mode,label:i,body:n}},htmlBuilder:ih,mathmlBuilder:nh});Et({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var m3={};function Ji(e){for(var{type:t,names:r,props:i,handler:n,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},l=0;l<r.length;++l)m3[r[l]]=o;a&&(tc[t]=a),s&&(ec[t]=s)}var g3={};function B(e,t){g3[e]=t}class Ur{constructor(t,r,i){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=i}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new Ur(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class Qr{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new Qr(r,Ur.range(this,t))}}function cg(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var ah=e=>{var t=e.parser.settings;if(!t.displayMode)throw new pt("{"+e.envName+"} can be used only in display mode.")},m_=new Set(["gather","gather*"]);function p1(e){if(!e.includes("ed"))return!e.includes("*")}function oa(e,t,r){var{hskipBeforeAndAfter:i,addJot:n,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:c,maxNumCols:h,leqno:f}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var d=e.gullet.expandMacroAsText("\\arraystretch");if(d==null)s=1;else if(s=parseFloat(d),!s||s<0)throw new pt("Invalid \\arraystretch: "+d)}e.gullet.beginGroup();var p=[],m=[p],g=[],y=[],k=l!=null?[]:void 0;function w(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function _(){k&&(e.gullet.macros.get("\\df@tag")?(k.push(e.subparse([new Qr("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):k.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(w(),y.push(cg(e));;){var A=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup();var E={type:"ordgroup",mode:e.mode,body:A};r&&(E={type:"styling",mode:e.mode,style:r,resetFont:!0,body:[E]}),p.push(E);var N=e.fetch().text;if(N==="&"){if(h&&p.length===h){if(u||o)throw new pt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(N==="\\end"){_(),p.length===1&&E.type==="styling"&&E.body.length===1&&E.body[0].type==="ordgroup"&&E.body[0].body.length===0&&(m.length>1||!c)&&m.pop(),y.length<m.length+1&&y.push([]);break}else if(N==="\\\\"){e.consume();var F=void 0;e.gullet.future().text!==" "&&(F=e.parseSizeGroup(!0)),g.push(F?F.value:null),_(),y.push(cg(e)),p=[],m.push(p),w()}else throw new pt("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:n,arraystretch:s,body:m,cols:a,rowGaps:g,hskipBeforeAndAfter:i,hLinesBeforeRow:y,colSeparationType:o,tags:k,leqno:f}}function m1(e){return e.slice(0,1)==="d"?"display":"text"}var tn=function(t,r){var i,n,a=t.body.length,s=t.hLinesBeforeRow,o=0,l=new Array(a),u=[],c=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),h=1/r.fontMetrics().ptPerEm,f=5*h;if(t.colSeparationType&&t.colSeparationType==="small"){var d=r.havingStyle(te.SCRIPT).sizeMultiplier;f=.2778*(d/r.sizeMultiplier)}var p=t.colSeparationType==="CD"?Me({number:3,unit:"ex"},r):12*h,m=3*h,g=t.arraystretch*p,y=.7*g,k=.3*g,w=0;function _(qt){for(var re=0;re<qt.length;++re)re>0&&(w+=.25),u.push({pos:w,isDashed:qt[re]})}for(_(s[0]),i=0;i<t.body.length;++i){var A=t.body[i],E=y,N=k;o<A.length&&(o=A.length);var F={cells:new Array(A.length),height:0,depth:0,pos:0};for(n=0;n<A.length;++n){var Y=xe(A[n],r);N<Y.depth&&(N=Y.depth),E<Y.height&&(E=Y.height),F.cells[n]=Y}var I=t.rowGaps[i],z=0;I&&(z=Me(I,r),z>0&&(z+=k,N<z&&(N=z),z=0)),t.addJot&&i<t.body.length-1&&(N+=m),F.height=E,F.depth=N,w+=E,F.pos=w,w+=N+z,l[i]=F,_(s[i+1])}var K=w/2+r.fontMetrics().axisHeight,J=t.cols||[],j=[],P,$,V=[];if(t.tags&&t.tags.some(qt=>qt))for(i=0;i<a;++i){var X=l[i],it=X.pos-K,L=t.tags[i],lt=void 0;L===!0?lt=dt(["eqn-num"],[],r):L===!1?lt=dt([],[],r):lt=dt([],Ze(L,r,!0),r),lt.depth=X.depth,lt.height=X.height,V.push({type:"elem",elem:lt,shift:it})}for(n=0,$=0;n<o||$<J.length;++n,++$){for(var Ct,O=J[$],St=!0;((_t=O)==null?void 0:_t.type)==="separator";){var _t;if(St||(P=dt(["arraycolsep"],[]),P.style.width=xt(r.fontMetrics().doubleRuleSep),j.push(P)),O.separator==="|"||O.separator===":"){var Ft=O.separator==="|"?"solid":"dashed",zt=dt(["vertical-separator"],[],r);zt.style.height=xt(w),zt.style.borderRightWidth=xt(c),zt.style.borderRightStyle=Ft,zt.style.margin="0 "+xt(-c/2);var Zt=w-K;Zt&&(zt.style.verticalAlign=xt(-Zt)),j.push(zt)}else throw new pt("Invalid separator type: "+O.separator);$++,O=J[$],St=!1}if(!(n>=o)){var Vt=void 0;if(n>0||t.hskipBeforeAndAfter){var yt,bt;Vt=(yt=(bt=O)==null?void 0:bt.pregap)!=null?yt:f,Vt!==0&&(P=dt(["arraycolsep"],[]),P.style.width=xt(Vt),j.push(P))}var jt=[];for(i=0;i<a;++i){var It=l[i],et=It.cells[n];if(et){var vt=It.pos-K;et.depth=It.depth,et.height=It.height,jt.push({type:"elem",elem:et,shift:vt})}}var nr=ye({positionType:"individualShift",children:jt}),Mi=dt(["col-align-"+(((Ct=O)==null?void 0:Ct.align)||"c")],[nr]);if(j.push(Mi),n<o-1||t.hskipBeforeAndAfter){var Ht,ge;Vt=(Ht=(ge=O)==null?void 0:ge.postgap)!=null?Ht:f,Vt!==0&&(P=dt(["arraycolsep"],[]),P.style.width=xt(Vt),j.push(P))}}}var Le=dt(["mtable"],j);if(u.length>0){for(var Sr=Os("hline",r,c),ni=Os("hdashline",r,c),$r=[{type:"elem",elem:Le,shift:0}];u.length>0;){var Ni=u.pop(),ai=Ni.pos-K;Ni.isDashed?$r.push({type:"elem",elem:ni,shift:ai}):$r.push({type:"elem",elem:Sr,shift:ai})}Le=ye({positionType:"individualShift",children:$r})}if(V.length===0)return dt(["mord"],[Le],r);var ot=ye({positionType:"individualShift",children:V}),kt=dt(["tag"],[ot],r);return En([Le,kt])},g_={c:"center ",l:"left ",r:"right "},en=function(t,r){for(var i=[],n=new gt("mtd",[],["mtr-glue"]),a=new gt("mtd",[],["mml-eqn-num"]),s=0;s<t.body.length;s++){for(var o=t.body[s],l=[],u=0;u<o.length;u++)l.push(new gt("mtd",[Se(o[u],r)]));t.tags&&t.tags[s]&&(l.unshift(n),l.push(n),t.leqno?l.unshift(a):l.push(a)),i.push(new gt("mtr",l))}var c=new gt("mtable",i),h=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);c.setAttribute("rowspacing",xt(h));var f="",d="";if(t.cols&&t.cols.length>0){var p=t.cols,m="",g=!1,y=0,k=p.length;p[0].type==="separator"&&(f+="top ",y=1),p[p.length-1].type==="separator"&&(f+="bottom ",k-=1);for(var w=y;w<k;w++){var _=p[w];_.type==="align"?(d+=g_[_.align],g&&(m+="none "),g=!0):_.type==="separator"&&g&&(m+=_.separator==="|"?"solid ":"dashed ",g=!1)}c.setAttribute("columnalign",d.trim()),/[sd]/.test(m)&&c.setAttribute("columnlines",m.trim())}if(t.colSeparationType==="align"){for(var A=t.cols||[],E="",N=1;N<A.length;N++)E+=N%2?"0em ":"1em ";c.setAttribute("columnspacing",E.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?c.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?c.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var F="",Y=t.hLinesBeforeRow;f+=Y[0].length>0?"left ":"",f+=Y[Y.length-1].length>0?"right ":"";for(var I=1;I<Y.length-1;I++)F+=Y[I].length===0?"none ":Y[I][0]?"dashed ":"solid ";return/[sd]/.test(F)&&c.setAttribute("rowlines",F.trim()),f!==""&&(c=new gt("menclose",[c]),c.setAttribute("notation",f.trim())),t.arraystretch&&t.arraystretch<1&&(c=new gt("mstyle",[c]),c.setAttribute("scriptlevel","1")),c},b3=function(t,r){t.envName.includes("ed")||ah(t);var i=[],n=t.envName.includes("at")?"alignat":"align",a=t.envName==="split",s=oa(t.parser,{cols:i,addJot:!0,autoTag:a?void 0:p1(t.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o=0,l=0,u={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var c="",h=0;h<r[0].body.length;h++){var f=ne(r[0].body[h],"textord");c+=f.text}o=Number(c),l=o*2}var d=!l;s.body.forEach(function(y){for(var k=1;k<y.length;k+=2){var w=ne(y[k],"styling"),_=ne(w.body[0],"ordgroup");_.body.unshift(u)}if(d)l<y.length&&(l=y.length);else{var A=y.length/2;if(o<A)throw new pt("Too many math in a row: "+("expected "+o+", but got "+A),y[0])}});for(var p=0;p<l;++p){var m="r",g=0;p%2===1?m="l":p>0&&d&&(g=1),i[p]={type:"align",align:m,pregap:g,postgap:0}}return s.colSeparationType=d?"align":"alignat",s};Ji({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=th(t[0]),i=r?[t[0]]:ne(t[0],"ordgroup").body,n=i.map(function(s){var o=Jc(s),l=o.text;if("lcr".includes(l))return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new pt("Unknown column alignment: "+l,s)}),a={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return oa(e.parser,a,m1(e.envName))},htmlBuilder:tn,mathmlBuilder:en});Ji({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var n=e.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),r=n.fetch().text,!"lcr".includes(r))throw new pt("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),i.cols=[{type:"align",align:r}]}}var a=oa(e.parser,i,m1(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:tn,mathmlBuilder:en});Ji({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=oa(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:tn,mathmlBuilder:en});Ji({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=th(t[0]),i=r?[t[0]]:ne(t[0],"ordgroup").body,n=i.map(function(o){var l=Jc(o),u=l.text;if("lc".includes(u))return{type:"align",align:u};throw new pt("Unknown column alignment: "+u,o)});if(n.length>1)throw new pt("{subarray} can contain only one column");var a={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5},s=oa(e.parser,a,"script");if(s.body.length>0&&s.body[0].length>1)throw new pt("{subarray} can contain only one column");return s},htmlBuilder:tn,mathmlBuilder:en});Ji({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=oa(e.parser,t,m1(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.includes("r")?".":"\\{",right:e.envName.includes("r")?"\\}":".",rightColor:void 0}},htmlBuilder:tn,mathmlBuilder:en});Ji({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:b3,htmlBuilder:tn,mathmlBuilder:en});Ji({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){m_.has(e.envName)&&ah(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:p1(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return oa(e.parser,t,"display")},htmlBuilder:tn,mathmlBuilder:en});Ji({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:b3,htmlBuilder:tn,mathmlBuilder:en});Ji({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){ah(e);var t={autoTag:p1(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return oa(e.parser,t,"display")},htmlBuilder:tn,mathmlBuilder:en});Ji({type:"array",names:["CD"],props:{numArgs:0},handler(e){return ah(e),i_(e.parser)},htmlBuilder:tn,mathmlBuilder:en});B("\\nonumber","\\gdef\\@eqnsw{0}");B("\\notag","\\nonumber");Et({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new pt(e.funcName+" valid only within array environment")}});var hg=m3;Et({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:i}=e,n=t[0];if(n.type!=="ordgroup")throw new pt("Invalid environment name",n);for(var a="",s=0;s<n.body.length;++s)a+=ne(n.body[s],"textord").text;if(i==="\\begin"){if(!hg.hasOwnProperty(a))throw new pt("No such environment: "+a,n);var o=hg[a],{args:l,optArgs:u}=r.parseArguments("\\begin{"+a+"}",o),c={mode:r.mode,envName:a,parser:r},h=o.handler(c,l,u);r.expect("\\end",!1);var f=r.nextToken,d=ne(r.parseFunction(),"environment");if(d.name!==a)throw new pt("Mismatch: \\begin{"+a+"} matched by \\end{"+d.name+"}",f);return h}return{type:"environment",mode:r.mode,name:a,nameGroup:n}}});var y3=(e,t)=>{var r=e.font,i=t.withFont(r);return xe(e.body,i)},x3=(e,t)=>{var r=e.font,i=t.withFont(r);return Se(e.body,i)},dg={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};Et({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:i}=e,n=rc(t[0]),a=i;return a in dg&&(a=dg[a]),{type:"font",mode:r.mode,font:a.slice(1),body:n}},htmlBuilder:y3,mathmlBuilder:x3});Et({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,i=t[0];return{type:"mclass",mode:r.mode,mclass:eh(i),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:i}],isCharacterBox:vn(i)}}});Et({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:i,breakOnTokenText:n}=e,{mode:a}=r,s=r.parseExpression(!0,n);return{type:"font",mode:a,font:"math"+i.slice(1),body:{type:"ordgroup",mode:r.mode,body:s}}},htmlBuilder:y3,mathmlBuilder:x3});var b_=(e,t)=>{var r=t.style,i=r.fracNum(),n=r.fracDen(),a;a=t.havingStyle(i);var s=xe(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height<o?o:s.height,s.depth=s.depth<l?l:s.depth}a=t.havingStyle(n);var u=xe(e.denom,a,t),c,h,f;e.hasBarLine?(e.barSize?(h=Me(e.barSize,t),c=Os("frac-line",t,h)):c=Os("frac-line",t),h=c.height,f=c.height):(c=null,h=0,f=t.fontMetrics().defaultRuleThickness);var d,p,m;r.size===te.DISPLAY.size?(d=t.fontMetrics().num1,h>0?p=3*f:p=7*f,m=t.fontMetrics().denom1):(h>0?(d=t.fontMetrics().num2,p=f):(d=t.fontMetrics().num3,p=3*f),m=t.fontMetrics().denom2);var g;if(c){var k=t.fontMetrics().axisHeight;d-s.depth-(k+.5*h)<p&&(d+=p-(d-s.depth-(k+.5*h))),k-.5*h-(u.height-m)<p&&(m+=p-(k-.5*h-(u.height-m)));var w=-(k-.5*h);g=ye({positionType:"individualShift",children:[{type:"elem",elem:u,shift:m},{type:"elem",elem:c,shift:w},{type:"elem",elem:s,shift:-d}]})}else{var y=d-s.depth-(u.height-m);y<p&&(d+=.5*(p-y),m+=.5*(p-y)),g=ye({positionType:"individualShift",children:[{type:"elem",elem:u,shift:m},{type:"elem",elem:s,shift:-d}]})}a=t.havingStyle(r),g.height*=a.sizeMultiplier/t.sizeMultiplier,g.depth*=a.sizeMultiplier/t.sizeMultiplier;var _;r.size===te.DISPLAY.size?_=t.fontMetrics().delim1:r.size===te.SCRIPTSCRIPT.size?_=t.havingStyle(te.SCRIPT).fontMetrics().delim2:_=t.fontMetrics().delim2;var A,E;return e.leftDelim==null?A=ll(t,["mopen"]):A=Ed(e.leftDelim,_,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?E=dt([]):e.rightDelim==null?E=ll(t,["mclose"]):E=Ed(e.rightDelim,_,!0,t.havingStyle(r),e.mode,["mclose"]),dt(["mord"].concat(a.sizingClasses(t)),[A,dt(["mfrac"],[g]),E],t)},y_=(e,t)=>{var r=new gt("mfrac",[Se(e.numer,t),Se(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var i=Me(e.barSize,t);r.setAttribute("linethickness",xt(i))}if(e.leftDelim!=null||e.rightDelim!=null){var n=[];if(e.leftDelim!=null){var a=new gt("mo",[new We(e.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),n.push(a)}if(n.push(r),e.rightDelim!=null){var s=new gt("mo",[new We(e.rightDelim.replace("\\",""))]);s.setAttribute("fence","true"),n.push(s)}return c1(n)}return r},C3=(e,t)=>{if(!t)return e;var r={type:"styling",mode:e.mode,style:t,body:[e]};return r};Et({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:i}=e,n=t[0],a=t[1],s,o=null,l=null;switch(i){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}var u=i==="\\cfrac",c=null;return u||i.startsWith("\\d")?c="display":i.startsWith("\\t")&&(c="text"),C3({type:"genfrac",mode:r.mode,numer:n,denom:a,continued:u,hasBarLine:s,leftDelim:o,rightDelim:l,barSize:null},c)},htmlBuilder:b_,mathmlBuilder:y_});Et({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:i}=e,n;switch(r){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:n,token:i}}});var fg=["display","text","script","scriptscript"],pg=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};Et({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,i=t[4],n=t[5],a=rc(t[0]),s=a.type==="atom"&&a.family==="open"?pg(a.text):null,o=rc(t[1]),l=o.type==="atom"&&o.family==="close"?pg(o.text):null,u=ne(t[2],"size"),c,h=null;u.isBlank?c=!0:(h=u.value,c=h.number>0);var f=null,d=t[3];if(d.type==="ordgroup"){if(d.body.length>0){var p=ne(d.body[0],"textord");f=fg[Number(p.text)]}}else d=ne(d,"textord"),f=fg[Number(d.text)];return C3({type:"genfrac",mode:r.mode,numer:i,denom:n,continued:!1,hasBarLine:c,barSize:h,leftDelim:s,rightDelim:l},f)}});Et({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:i,token:n}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:ne(t[0],"size").value,token:n}}});Et({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:i}=e,n=t[0],a=ne(t[1],"infix").size;if(!a)throw new Error("\\\\abovefrac expected size, but got "+String(a));var s=t[2],o=a.number>0;return{type:"genfrac",mode:r.mode,numer:n,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null}}});var k3=(e,t)=>{var r=t.style,i,n;e.type==="supsub"?(i=e.sup?xe(e.sup,t.havingStyle(r.sup()),t):xe(e.sub,t.havingStyle(r.sub()),t),n=ne(e.base,"horizBrace")):n=ne(e,"horizBrace");var a=xe(n.base,t.havingBaseStyle(te.DISPLAY)),s=Zc(n,t),o;if(n.isOver?o=ye({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s,wrapperClasses:["svg-align"]}]}):o=ye({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:.1},{type:"elem",elem:a}]}),i){var l=dt(["minner",n.isOver?"mover":"munder"],[o],t);n.isOver?o=ye({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:i}]}):o=ye({positionType:"bottom",positionData:l.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:l}]})}return dt(["minner",n.isOver?"mover":"munder"],[o],t)},x_=(e,t)=>{var r=Qc(e.label);return new gt(e.isOver?"mover":"munder",[Se(e.base,t),r])};Et({type:"horizBrace",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:i}=e;return{type:"horizBrace",mode:r.mode,label:i,isOver:i.includes("\\over"),base:t[0]}},htmlBuilder:k3,mathmlBuilder:x_});Et({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,i=t[1],n=ne(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:r.mode,href:n,body:Ue(i)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Ze(e.body,t,!1);return ME(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=Zn(e.body,t);return r instanceof gt||(r=new gt("mrow",[r])),r.setAttribute("href",e.href),r}});Et({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,i=ne(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:i}))return r.formatUnsupportedCmd("\\url");for(var n=[],a=0;a<i.length;a++){var s=i[a];s==="~"&&(s="\\textasciitilde"),n.push({type:"textord",mode:"text",text:s})}var o={type:"text",mode:r.mode,font:"\\texttt",body:n};return{type:"href",mode:r.mode,href:i,body:Ue(o)}}});Et({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:Ue(t[0])}},htmlBuilder(e,t){var r=Ze(e.body,t.withFont(""),!1);return En(r)},mathmlBuilder(e,t){return new gt("mrow",ii(e.body,t.withFont("")))}});Et({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:i,token:n}=e,a=ne(t[0],"raw").string,s=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(i){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),c=0;c<u.length;c++){var h=u[c],f=h.indexOf("=");if(f<0)throw new pt("\\htmlData key/value '"+h+"' missing equals sign");var d=h.slice(0,f),p=h.slice(f+1);l["data-"+d.trim()]=p}o={command:"\\htmlData",attributes:l};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(o)?{type:"html",mode:r.mode,attributes:l,body:Ue(s)}:r.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var r=Ze(e.body,t,!1),i=["enclosing"];e.attributes.class&&i.push(...e.attributes.class.trim().split(/\s+/));var n=dt(i,r,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&n.setAttribute(a,e.attributes[a]);return n},mathmlBuilder:(e,t)=>Zn(e.body,t)});Et({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInArgument:!0,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Ue(t[0]),mathml:Ue(t[1])}},htmlBuilder:(e,t)=>{var r=Ze(e.html,t,!1);return En(r)},mathmlBuilder:(e,t)=>Zn(e.mathml,t)});var l0=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new pt("Invalid size: '"+t+"' in \\includegraphics");var i={number:+(r[1]+r[2]),unit:r[3]};if(!R4(i))throw new pt("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i};Et({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:i}=e,n={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(r[0])for(var l=ne(r[0],"raw").string,u=l.split(","),c=0;c<u.length;c++){var h=u[c].split("=");if(h.length===2){var f=h[1].trim();switch(h[0].trim()){case"alt":o=f;break;case"width":n=l0(f);break;case"height":a=l0(f);break;case"totalheight":s=l0(f);break;default:throw new pt("Invalid key: '"+h[0]+"' in \\includegraphics.")}}}var d=ne(t[0],"url").url;return o===""&&(o=d,o=o.replace(/^.*[\\/]/,""),o=o.substring(0,o.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:d})?{type:"includegraphics",mode:i.mode,alt:o,width:n,height:a,totalheight:s,src:d}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=Me(e.height,t),i=0;e.totalheight.number>0&&(i=Me(e.totalheight,t)-r);var n=0;e.width.number>0&&(n=Me(e.width,t));var a={height:xt(r+i)};n>0&&(a.width=xt(n)),i>0&&(a.verticalAlign=xt(-i));var s=new kE(e.src,e.alt,a);return s.height=r,s.depth=i,s},mathmlBuilder:(e,t)=>{var r=new gt("mglyph",[]);r.setAttribute("alt",e.alt);var i=Me(e.height,t),n=0;if(e.totalheight.number>0&&(n=Me(e.totalheight,t)-i,r.setAttribute("valign",xt(-n))),r.setAttribute("height",xt(i+n)),e.width.number>0){var a=Me(e.width,t);r.setAttribute("width",xt(a))}return r.setAttribute("src",e.src),r}});Et({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:i}=e,n=ne(t[0],"size");if(r.settings.strict){var a=i[1]==="m",s=n.value.unit==="mu";a?(s||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, "+("not "+n.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):s&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:n.value}},htmlBuilder(e,t){return W4(e.dimension,t)},mathmlBuilder(e,t){var r=Me(e.dimension,t);return new K4(r)}});Et({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:i}=e,n=t[0];return{type:"lap",mode:r.mode,alignment:i.slice(5),body:n}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=dt([],[xe(e.body,t)]),r=dt(["inner"],[r],t)):r=dt(["inner"],[xe(e.body,t)]);var i=dt(["fix"],[]),n=dt([e.alignment],[r,i],t),a=dt(["strut"]);return a.style.height=xt(n.height+n.depth),n.depth&&(a.style.verticalAlign=xt(-n.depth)),n.children.unshift(a),n=dt(["thinbox"],[n],t),dt(["mord","vbox"],[n],t)},mathmlBuilder:(e,t)=>{var r=new gt("mpadded",[Se(e.body,t)]);if(e.alignment!=="rlap"){var i=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",i+"width")}return r.setAttribute("width","0px"),r}});Et({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:i}=e,n=i.mode;i.switchMode("math");var a=r==="\\("?"\\)":"$",s=i.parseExpression(!1,a);return i.expect(a),i.switchMode(n),{type:"styling",mode:i.mode,style:"text",resetFont:!0,body:s}}});Et({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new pt("Mismatched "+e.funcName)}});var mg=(e,t)=>{switch(t.style.size){case te.DISPLAY.size:return e.display;case te.TEXT.size:return e.text;case te.SCRIPT.size:return e.script;case te.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};Et({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Ue(t[0]),text:Ue(t[1]),script:Ue(t[2]),scriptscript:Ue(t[3])}},htmlBuilder:(e,t)=>{var r=mg(e,t),i=Ze(r,t,!1);return En(i)},mathmlBuilder:(e,t)=>{var r=mg(e,t);return Zn(r,t)}});var T3=(e,t,r,i,n,a,s)=>{e=dt([],[e]);var o=r&&vn(r),l,u;if(t){var c=xe(t,i.havingStyle(n.sup()),i);u={elem:c,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-c.depth)}}if(r){var h=xe(r,i.havingStyle(n.sub()),i);l={elem:h,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-h.height)}}var f;if(u&&l){var d=i.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;f=ye({positionType:"bottom",positionData:d,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:xt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:xt(a)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else if(l){var p=e.height-s;f=ye({positionType:"top",positionData:p,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:xt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]})}else if(u){var m=e.depth+s;f=ye({positionType:"bottom",positionData:m,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:xt(a)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]})}else return e;var g=[f];if(l&&a!==0&&!o){var y=dt(["mspace"],[],i);y.style.marginRight=xt(a),g.unshift(y)}return dt(["mop","op-limits"],g,i)},w3=new Set(["\\smallint"]),Js=(e,t)=>{var r,i,n=!1,a;e.type==="supsub"?(r=e.sup,i=e.sub,a=ne(e.base,"op"),n=!0):a=ne(e,"op");var s=t.style,o=!1;s.size===te.DISPLAY.size&&a.symbol&&!w3.has(a.name)&&(o=!0);var l,u;if(a.symbol){var c=o?"Size2-Regular":"Size1-Regular",h="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(h=a.name.slice(1),a.name=h==="oiint"?"\\iint":"\\iiint"),l=Lr(a.name,c,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),u=l.italic,h.length>0){var f=Y4(h+"Size"+(o?"2":"1"),t);l=ye({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:f,shift:o?.08:0}]}),a.name="\\"+h,l.classes.unshift("mop"),l.italic=u}}else if(a.body){var d=Ze(a.body,t,!0);d.length===1&&d[0]instanceof Jr?(l=d[0],l.classes[0]="mop"):l=dt(["mop"],d,t)}else{for(var p=[],m=1;m<a.name.length;m++)p.push(l1(a.name[m],a.mode,t));l=dt(["mop"],p,t)}var g=0,y=0;if((l instanceof Jr||a.name==="\\oiint"||a.name==="\\oiiint")&&!a.suppressBaseShift){var k;g=(l.height-l.depth)/2-t.fontMetrics().axisHeight,y=(k=l.italic)!=null?k:0}return n?T3(l,r,i,t,s,y,g):(g&&(l.style.position="relative",l.style.top=xt(g)),l)},Ll=(e,t)=>{var r;if(e.symbol)r=new gt("mo",[pi(e.name,e.mode)]),w3.has(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new gt("mo",ii(e.body,t));else{r=new gt("mi",[new We(e.name.slice(1))]);var i=new gt("mo",[pi("","text")]);e.parentIsSupSub?r=new gt("mrow",[r,i]):r=X4([r,i])}return r},C_={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Et({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:i}=e,n=i;return n.length===1&&(n=C_[n]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Js,mathmlBuilder:Ll});Et({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,i=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Ue(i)}},htmlBuilder:Js,mathmlBuilder:Ll});var k_={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Et({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Js,mathmlBuilder:Ll});Et({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:Js,mathmlBuilder:Ll});Et({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,i=r;return i.length===1&&(i=k_[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Js,mathmlBuilder:Ll});var v3=(e,t)=>{var r,i,n=!1,a;e.type==="supsub"?(r=e.sup,i=e.sub,a=ne(e.base,"operatorname"),n=!0):a=ne(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(h=>{var f="text"in h?h.text:void 0;return typeof f=="string"?{type:"textord",mode:h.mode,text:f}:h}),l=Ze(o,t.withFont("mathrm"),!0),u=0;u<l.length;u++){var c=l[u];c instanceof Jr&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}s=dt(["mop"],l,t)}else s=dt(["mop"],[],t);return n?T3(s,r,i,t,t.style,0,0):s},T_=(e,t)=>{for(var r=ii(e.body,t.withFont("mathrm")),i=!0,n=0;n<r.length;n++){var a=r[n];if(!(a instanceof K4))if(a instanceof gt)switch(a.type){case"mi":case"mn":case"mspace":case"mtext":break;case"mo":{var s=a.children[0];a.children.length===1&&s instanceof We?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break}default:i=!1}else i=!1}if(i){var o=r.map(c=>c.toText()).join("");r=[new We(o)]}var l=new gt("mi",r);l.setAttribute("mathvariant","normal");var u=new gt("mo",[pi("","text")]);return e.parentIsSupSub?new gt("mrow",[l,u]):X4([l,u])};Et({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:i}=e,n=t[0];return{type:"operatorname",mode:r.mode,body:Ue(n),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:v3,mathmlBuilder:T_});B("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");ja({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?En(Ze(e.body,t,!1)):dt(["mord"],Ze(e.body,t,!0),t)},mathmlBuilder(e,t){return Zn(e.body,t,!0)}});Et({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,i=t[0];return{type:"overline",mode:r.mode,body:i}},htmlBuilder(e,t){var r=xe(e.body,t.havingCrampedStyle()),i=Os("overline-line",t),n=t.fontMetrics().defaultRuleThickness,a=ye({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:i},{type:"kern",size:n}]});return dt(["mord","overline"],[a],t)},mathmlBuilder(e,t){var r=new gt("mo",[new We("‾")]);r.setAttribute("stretchy","true");var i=new gt("mover",[Se(e.body,t),r]);return i.setAttribute("accent","true"),i}});Et({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,i=t[0];return{type:"phantom",mode:r.mode,body:Ue(i)}},htmlBuilder:(e,t)=>{var r=Ze(e.body,t.withPhantom(),!1);return En(r)},mathmlBuilder:(e,t)=>{var r=ii(e.body,t);return new gt("mphantom",r)}});B("\\hphantom","\\smash{\\phantom{#1}}");Et({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,i=t[0];return{type:"vphantom",mode:r.mode,body:i}},htmlBuilder:(e,t)=>{var r=dt(["inner"],[xe(e.body,t.withPhantom())]),i=dt(["fix"],[]);return dt(["mord","rlap"],[r,i],t)},mathmlBuilder:(e,t)=>{var r=ii(Ue(e.body),t),i=new gt("mphantom",r),n=new gt("mpadded",[i]);return n.setAttribute("width","0px"),n}});Et({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,i=ne(t[0],"size").value,n=t[1];return{type:"raisebox",mode:r.mode,dy:i,body:n}},htmlBuilder(e,t){var r=xe(e.body,t),i=Me(e.dy,t);return ye({positionType:"shift",positionData:-i,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new gt("mpadded",[Se(e.body,t)]),i=e.dy.number+e.dy.unit;return r.setAttribute("voffset",i),r}});Et({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});Et({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:i}=e,n=r[0],a=ne(t[0],"size"),s=ne(t[1],"size");return{type:"rule",mode:i.mode,shift:n&&ne(n,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var r=dt(["mord","rule"],[],t),i=Me(e.width,t),n=Me(e.height,t),a=e.shift?Me(e.shift,t):0;return r.style.borderRightWidth=xt(i),r.style.borderTopWidth=xt(n),r.style.bottom=xt(a),r.width=i,r.height=n+a,r.depth=-a,r.maxFontSize=n*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=Me(e.width,t),i=Me(e.height,t),n=e.shift?Me(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new gt("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",xt(r)),s.setAttribute("height",xt(i));var o=new gt("mpadded",[s]);return n>=0?o.setAttribute("height",xt(n)):(o.setAttribute("height",xt(n)),o.setAttribute("depth",xt(-n))),o.setAttribute("voffset",xt(n)),o}});function S3(e,t,r){for(var i=Ze(e,t,!1),n=t.sizeMultiplier/r.sizeMultiplier,a=0;a<i.length;a++){var s=i[a].classes.indexOf("sizing");s<0?Array.prototype.push.apply(i[a].classes,t.sizingClasses(r)):i[a].classes[s+1]==="reset-size"+t.size&&(i[a].classes[s+1]="reset-size"+r.size),i[a].height*=n,i[a].depth*=n}return En(i)}var gg=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],w_=(e,t)=>{var r=t.havingSize(e.size);return S3(e.body,r,t)};Et({type:"sizing",names:gg,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:i,parser:n}=e,a=n.parseExpression(!1,r);return{type:"sizing",mode:n.mode,size:gg.indexOf(i)+1,body:a}},htmlBuilder:w_,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),i=ii(e.body,r),n=new gt("mstyle",i);return n.setAttribute("mathsize",xt(r.sizeMultiplier)),n}});Et({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:i}=e,n=!1,a=!1,s=r[0]&&ne(r[0],"ordgroup");if(s)for(var o,l=0;l<s.body.length;++l){var u=s.body[l];if(o=Jc(u).text,o==="t")n=!0;else if(o==="b")a=!0;else{n=!1,a=!1;break}}else n=!0,a=!0;var c=t[0];return{type:"smash",mode:i.mode,body:c,smashHeight:n,smashDepth:a}},htmlBuilder:(e,t)=>{var r=dt([],[xe(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0),e.smashDepth&&(r.depth=0),e.smashHeight&&e.smashDepth)return dt(["mord","smash"],[r],t);if(r.children)for(var i=0;i<r.children.length;i++)e.smashHeight&&(r.children[i].height=0),e.smashDepth&&(r.children[i].depth=0);var n=ye({positionType:"firstBaseline",children:[{type:"elem",elem:r}]});return dt(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var r=new gt("mpadded",[Se(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});Et({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:i}=e,n=r[0],a=t[0];return{type:"sqrt",mode:i.mode,body:a,index:n}},htmlBuilder(e,t){var r=xe(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=Ds(r,t);var i=t.fontMetrics(),n=i.defaultRuleThickness,a=n;t.style.id<te.TEXT.id&&(a=t.fontMetrics().xHeight);var s=n+a/4,o=r.height+r.depth+s+n,{span:l,ruleWidth:u,advanceWidth:c}=u_(o,t),h=l.height-u;h>r.height+r.depth+s&&(s=(s+h-r.height-r.depth)/2);var f=l.height-r.height-s-u;r.style.paddingLeft=xt(c);var d=ye({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+f)},{type:"elem",elem:l},{type:"kern",size:u}]});if(e.index){var p=t.havingStyle(te.SCRIPTSCRIPT),m=xe(e.index,p,t),g=.6*(d.height-d.depth),y=ye({positionType:"shift",positionData:-g,children:[{type:"elem",elem:m}]}),k=dt(["root"],[y]);return dt(["mord","sqrt"],[k,d],t)}else return dt(["mord","sqrt"],[d],t)},mathmlBuilder(e,t){var{body:r,index:i}=e;return i?new gt("mroot",[Se(r,t),Se(i,t)]):new gt("msqrt",[Se(r,t)])}});var _d={display:te.DISPLAY,text:te.TEXT,script:te.SCRIPT,scriptscript:te.SCRIPTSCRIPT};function v_(e){return e in _d}Et({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:i,parser:n}=e,a=n.parseExpression(!0,r),s=i.slice(1,i.length-5);if(!v_(s))throw new Error("Unknown style: "+s);return{type:"styling",mode:n.mode,style:s,body:a}},htmlBuilder(e,t){var r=_d[e.style],i=t.havingStyle(r);return e.resetFont&&(i=i.withFont("")),S3(e.body,i,t)},mathmlBuilder(e,t){var r=_d[e.style],i=t.havingStyle(r);e.resetFont&&(i=i.withFont(""));var n=ii(e.body,i),a=new gt("mstyle",n),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var S_=function(t,r){var i=t.base;if(i)if(i.type==="op"){var n=i.limits&&(r.style.size===te.DISPLAY.size||i.alwaysHandleSupSub);return n?Js:null}else if(i.type==="operatorname"){var a=i.alwaysHandleSupSub&&(r.style.size===te.DISPLAY.size||i.limits);return a?v3:null}else{if(i.type==="accent")return vn(i.base)?d1:null;if(i.type==="horizBrace"){var s=!t.sub;return s===i.isOver?k3:null}else return null}else return null};ja({type:"supsub",htmlBuilder(e,t){var r=S_(e,t);if(r)return r(e,t);var{base:i,sup:n,sub:a}=e,s=xe(i,t),o,l,u=t.fontMetrics(),c=0,h=0,f=i&&vn(i);if(n){var d=t.havingStyle(t.style.sup());o=xe(n,d,t),f||(c=s.height-d.fontMetrics().supDrop*d.sizeMultiplier/t.sizeMultiplier)}if(a){var p=t.havingStyle(t.style.sub());l=xe(a,p,t),f||(h=s.depth+p.fontMetrics().subDrop*p.sizeMultiplier/t.sizeMultiplier)}var m;t.style===te.DISPLAY?m=u.sup1:t.style.cramped?m=u.sup3:m=u.sup2;var g=t.sizeMultiplier,y=xt(.5/u.ptPerEm/g),k=null;if(l){var w=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");if(s instanceof Jr||w){var _;k=xt(-((_=s.italic)!=null?_:0))}}var A;if(o&&l){c=Math.max(c,m,o.depth+.25*u.xHeight),h=Math.max(h,u.sub2);var E=u.defaultRuleThickness,N=4*E;if(c-o.depth-(l.height-h)<N){h=N-(c-o.depth)+l.height;var F=.8*u.xHeight-(c-o.depth);F>0&&(c+=F,h-=F)}var Y=[{type:"elem",elem:l,shift:h,marginRight:y,marginLeft:k},{type:"elem",elem:o,shift:-c,marginRight:y}];A=ye({positionType:"individualShift",children:Y})}else if(l){h=Math.max(h,u.sub1,l.height-.8*u.xHeight);var I=[{type:"elem",elem:l,marginLeft:k,marginRight:y}];A=ye({positionType:"shift",positionData:h,children:I})}else if(o)c=Math.max(c,m,o.depth+.25*u.xHeight),A=ye({positionType:"shift",positionData:-c,children:[{type:"elem",elem:o,marginRight:y}]});else throw new Error("supsub must have either sup or sub.");var z=Td(s,"right")||"mord";return dt([z],[s,dt(["msupsub"],[A])],t)},mathmlBuilder(e,t){var r=!1,i,n;e.base&&e.base.type==="horizBrace"&&(n=!!e.sup,n===e.base.isOver&&(r=!0,i=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Se(e.base,t)];e.sub&&a.push(Se(e.sub,t)),e.sup&&a.push(Se(e.sup,t));var s;if(r)s=i?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===te.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===te.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===te.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===te.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===te.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===te.DISPLAY)?s="mover":s="msup"}return new gt(s,a)}});ja({type:"atom",htmlBuilder(e,t){return l1(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new gt("mo",[pi(e.text,e.mode)]);if(e.family==="bin"){var i=h1(e,t);i==="bold-italic"&&r.setAttribute("mathvariant",i)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var E3={mi:"italic",mn:"normal",mtext:"normal"};ja({type:"mathord",htmlBuilder(e,t){return Kc(e,t,"mathord")},mathmlBuilder(e,t){var r=new gt("mi",[pi(e.text,e.mode,t)]),i=h1(e,t)||"italic";return i!==E3[r.type]&&r.setAttribute("mathvariant",i),r}});ja({type:"textord",htmlBuilder(e,t){return Kc(e,t,"textord")},mathmlBuilder(e,t){var r=pi(e.text,e.mode,t),i=h1(e,t)||"normal",n;return e.mode==="text"?n=new gt("mtext",[r]):/[0-9]/.test(e.text)?n=new gt("mn",[r]):e.text==="\\prime"?n=new gt("mo",[r]):n=new gt("mi",[r]),i!==E3[n.type]&&n.setAttribute("mathvariant",i),n}});var u0={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},c0={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ja({type:"spacing",htmlBuilder(e,t){if(c0.hasOwnProperty(e.text)){var r=c0[e.text].className||"";if(e.mode==="text"){var i=Kc(e,t,"textord");return i.classes.push(r),i}else return dt(["mspace",r],[l1(e.text,e.mode,t)],t)}else{if(u0.hasOwnProperty(e.text))return dt(["mspace",u0[e.text]],[],t);throw new pt('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(c0.hasOwnProperty(e.text))r=new gt("mtext",[new We(" ")]);else{if(u0.hasOwnProperty(e.text))return new gt("mspace");throw new pt('Unknown type of space "'+e.text+'"')}return r}});var bg=()=>{var e=new gt("mtd",[]);return e.setAttribute("width","50%"),e};ja({type:"tag",mathmlBuilder(e,t){var r=new gt("mtable",[new gt("mtr",[bg(),new gt("mtd",[Zn(e.body,t)]),bg(),new gt("mtd",[Zn(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var yg={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},xg={"\\textbf":"textbf","\\textmd":"textmd"},E_={"\\textit":"textit","\\textup":"textup"},Cg=(e,t)=>{var r=e.font;if(r){if(yg[r])return t.withTextFontFamily(yg[r]);if(xg[r])return t.withTextFontWeight(xg[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(E_[r])};Et({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:i}=e,n=t[0];return{type:"text",mode:r.mode,body:Ue(n),font:i}},htmlBuilder(e,t){var r=Cg(e,t),i=Ze(e.body,r,!0);return dt(["mord","text"],i,r)},mathmlBuilder(e,t){var r=Cg(e,t);return Zn(e.body,r)}});Et({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=xe(e.body,t),i=Os("underline-line",t),n=t.fontMetrics().defaultRuleThickness,a=ye({positionType:"top",positionData:r.height,children:[{type:"kern",size:n},{type:"elem",elem:i},{type:"kern",size:3*n},{type:"elem",elem:r}]});return dt(["mord","underline"],[a],t)},mathmlBuilder(e,t){var r=new gt("mo",[new We("‾")]);r.setAttribute("stretchy","true");var i=new gt("munder",[Se(e.body,t),r]);return i.setAttribute("accentunder","true"),i}});Et({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=xe(e.body,t),i=t.fontMetrics().axisHeight,n=.5*(r.height-i-(r.depth+i));return ye({positionType:"shift",positionData:n,children:[{type:"elem",elem:r}]})},mathmlBuilder(e,t){var r=new gt("mpadded",[Se(e.body,t)],["vcenter"]);return new gt("mrow",[r])}});Et({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new pt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=kg(e),i=[],n=t.havingStyle(t.style.text()),a=0;a<r.length;a++){var s=r[a];s==="~"&&(s="\\textasciitilde"),i.push(Lr(s,"Typewriter-Regular",e.mode,n,["mord","texttt"]))}return dt(["mord","text"].concat(n.sizingClasses(t)),U4(i),n)},mathmlBuilder(e,t){var r=new We(kg(e)),i=new gt("mtext",[r]);return i.setAttribute("mathvariant","monospace"),i}});var kg=e=>e.body.replace(/ /g,e.star?"␣":" "),Un=V4,_3=`[ \r
|
|
261
|
+
]`,__="\\\\[a-zA-Z@]+",A_="\\\\[^\uD800-\uDFFF]",B_="("+__+")"+_3+"*",L_=`\\\\(
|
|
262
|
+
|[ \r ]+
|
|
263
|
+
?)[ \r ]*`,Ad="[̀-ͯ]",I_=new RegExp(Ad+"+$"),M_="("+_3+"+)|"+(L_+"|")+"([!-\\[\\]-‧-豈-]"+(Ad+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ad+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+B_)+("|"+A_+")");class Tg{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(M_,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Qr("EOF",new Ur(this,r,r));var i=this.tokenRegex.exec(t);if(i===null||i.index!==r)throw new pt("Unexpected character: '"+t[r]+"'",new Qr(t[r],new Ur(this,r,r+1)));var n=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[n]===14){var a=t.indexOf(`
|
|
264
|
+
`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new Qr(n,new Ur(this,r,this.tokenRegex.lastIndex))}}class N_{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new pt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,i){if(i===void 0&&(i=!1),i){for(var n=0;n<this.undefStack.length;n++)delete this.undefStack[n][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var F_=g3;B("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});B("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});B("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});B("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});B("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});B("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");B("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var wg={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};B("\\char",function(e){var t=e.popToken(),r,i=0;if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")i=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new pt("\\char` missing argument");i=t.text.charCodeAt(0)}else r=10;if(r){if(i=wg[t.text],i==null||i>=r)throw new pt("Invalid base-"+r+" digit "+t.text);for(var n;(n=wg[e.future().text])!=null&&n<r;)i*=r,i+=n,e.popToken()}return"\\@char{"+i+"}"});var g1=(e,t,r,i)=>{var n=e.consumeArg().tokens;if(n.length!==1)throw new pt("\\newcommand's first argument must be a macro name");var a=n[0].text,s=e.isDefined(a);if(s&&!t)throw new pt("\\newcommand{"+a+"} attempting to redefine "+(a+"; use \\renewcommand"));if(!s&&!r)throw new pt("\\renewcommand{"+a+"} when command "+a+" does not yet exist; use \\newcommand");var o=0;if(n=e.consumeArg().tokens,n.length===1&&n[0].text==="["){for(var l="",u=e.expandNextToken();u.text!=="]"&&u.text!=="EOF";)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new pt("Invalid number of arguments: "+l);o=parseInt(l),n=e.consumeArg().tokens}return s&&i||e.macros.set(a,{tokens:n,numArgs:o}),""};B("\\newcommand",e=>g1(e,!1,!0,!1));B("\\renewcommand",e=>g1(e,!0,!1,!1));B("\\providecommand",e=>g1(e,!0,!0,!0));B("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});B("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});B("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Un[r],Ae.math[r],Ae.text[r]),""});B("\\bgroup","{");B("\\egroup","}");B("~","\\nobreakspace");B("\\lq","`");B("\\rq","'");B("\\aa","\\r a");B("\\AA","\\r A");B("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");B("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");B("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");B("ℬ","\\mathscr{B}");B("ℰ","\\mathscr{E}");B("ℱ","\\mathscr{F}");B("ℋ","\\mathscr{H}");B("ℐ","\\mathscr{I}");B("ℒ","\\mathscr{L}");B("ℳ","\\mathscr{M}");B("ℛ","\\mathscr{R}");B("ℭ","\\mathfrak{C}");B("ℌ","\\mathfrak{H}");B("ℨ","\\mathfrak{Z}");B("\\Bbbk","\\Bbb{k}");B("\\llap","\\mathllap{\\textrm{#1}}");B("\\rlap","\\mathrlap{\\textrm{#1}}");B("\\clap","\\mathclap{\\textrm{#1}}");B("\\mathstrut","\\vphantom{(}");B("\\underbar","\\underline{\\text{#1}}");B("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}\\nobreak}{\\char"338}');B("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");B("\\ne","\\neq");B("≠","\\neq");B("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");B("∉","\\notin");B("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");B("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");B("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");B("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");B("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");B("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");B("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");B("⟂","\\perp");B("‼","\\mathclose{!\\mkern-0.8mu!}");B("∌","\\notni");B("⌜","\\ulcorner");B("⌝","\\urcorner");B("⌞","\\llcorner");B("⌟","\\lrcorner");B("©","\\copyright");B("®","\\textregistered");B("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');B("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');B("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');B("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');B("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");B("⋮","\\vdots");B("\\varGamma","\\mathit{\\Gamma}");B("\\varDelta","\\mathit{\\Delta}");B("\\varTheta","\\mathit{\\Theta}");B("\\varLambda","\\mathit{\\Lambda}");B("\\varXi","\\mathit{\\Xi}");B("\\varPi","\\mathit{\\Pi}");B("\\varSigma","\\mathit{\\Sigma}");B("\\varUpsilon","\\mathit{\\Upsilon}");B("\\varPhi","\\mathit{\\Phi}");B("\\varPsi","\\mathit{\\Psi}");B("\\varOmega","\\mathit{\\Omega}");B("\\substack","\\begin{subarray}{c}#1\\end{subarray}");B("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");B("\\boxed","\\fbox{$\\displaystyle{#1}$}");B("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");B("\\implies","\\DOTSB\\;\\Longrightarrow\\;");B("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");B("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");B("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var vg={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"},O_=new Set(["bin","rel"]);B("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in vg?t=vg[r]:(r.slice(0,4)==="\\not"||r in Ae.math&&O_.has(Ae.math[r].group))&&(t="\\dotsb"),t});var b1={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};B("\\dotso",function(e){var t=e.future().text;return t in b1?"\\ldots\\,":"\\ldots"});B("\\dotsc",function(e){var t=e.future().text;return t in b1&&t!==","?"\\ldots\\,":"\\ldots"});B("\\cdots",function(e){var t=e.future().text;return t in b1?"\\@cdots\\,":"\\@cdots"});B("\\dotsb","\\cdots");B("\\dotsm","\\cdots");B("\\dotsi","\\!\\cdots");B("\\dotsx","\\ldots\\,");B("\\DOTSI","\\relax");B("\\DOTSB","\\relax");B("\\DOTSX","\\relax");B("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");B("\\,","\\tmspace+{3mu}{.1667em}");B("\\thinspace","\\,");B("\\>","\\mskip{4mu}");B("\\:","\\tmspace+{4mu}{.2222em}");B("\\medspace","\\:");B("\\;","\\tmspace+{5mu}{.2777em}");B("\\thickspace","\\;");B("\\!","\\tmspace-{3mu}{.1667em}");B("\\negthinspace","\\!");B("\\negmedspace","\\tmspace-{4mu}{.2222em}");B("\\negthickspace","\\tmspace-{5mu}{.277em}");B("\\enspace","\\kern.5em ");B("\\enskip","\\hskip.5em\\relax");B("\\quad","\\hskip1em\\relax");B("\\qquad","\\hskip2em\\relax");B("\\tag","\\@ifstar\\tag@literal\\tag@paren");B("\\tag@paren","\\tag@literal{({#1})}");B("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new pt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});B("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");B("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");B("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");B("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");B("\\newline","\\\\\\relax");B("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var A3=xt(Gi["Main-Regular"][84][1]-.7*Gi["Main-Regular"][65][1]);B("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+A3+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");B("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+A3+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");B("\\hspace","\\@ifstar\\@hspacer\\@hspace");B("\\@hspace","\\hskip #1\\relax");B("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");B("\\ordinarycolon",":");B("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");B("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');B("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');B("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');B("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');B("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');B("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');B("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');B("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');B("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');B("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');B("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');B("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');B("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');B("∷","\\dblcolon");B("∹","\\eqcolon");B("≔","\\coloneqq");B("≕","\\eqqcolon");B("⩴","\\Coloneqq");B("\\ratio","\\vcentcolon");B("\\coloncolon","\\dblcolon");B("\\colonequals","\\coloneqq");B("\\coloncolonequals","\\Coloneqq");B("\\equalscolon","\\eqqcolon");B("\\equalscoloncolon","\\Eqqcolon");B("\\colonminus","\\coloneq");B("\\coloncolonminus","\\Coloneq");B("\\minuscolon","\\eqcolon");B("\\minuscoloncolon","\\Eqcolon");B("\\coloncolonapprox","\\Colonapprox");B("\\coloncolonsim","\\Colonsim");B("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");B("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");B("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");B("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");B("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");B("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");B("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");B("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");B("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");B("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");B("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");B("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");B("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");B("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");B("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");B("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");B("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");B("\\nleqq","\\html@mathml{\\@nleqq}{≰}");B("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");B("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");B("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");B("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");B("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");B("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");B("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");B("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");B("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");B("\\imath","\\html@mathml{\\@imath}{ı}");B("\\jmath","\\html@mathml{\\@jmath}{ȷ}");B("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");B("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");B("⟦","\\llbracket");B("⟧","\\rrbracket");B("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");B("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");B("⦃","\\lBrace");B("⦄","\\rBrace");B("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");B("⦵","\\minuso");B("\\darr","\\downarrow");B("\\dArr","\\Downarrow");B("\\Darr","\\Downarrow");B("\\lang","\\langle");B("\\rang","\\rangle");B("\\uarr","\\uparrow");B("\\uArr","\\Uparrow");B("\\Uarr","\\Uparrow");B("\\N","\\mathbb{N}");B("\\R","\\mathbb{R}");B("\\Z","\\mathbb{Z}");B("\\alef","\\aleph");B("\\alefsym","\\aleph");B("\\Alpha","\\mathrm{A}");B("\\Beta","\\mathrm{B}");B("\\bull","\\bullet");B("\\Chi","\\mathrm{X}");B("\\clubs","\\clubsuit");B("\\cnums","\\mathbb{C}");B("\\Complex","\\mathbb{C}");B("\\Dagger","\\ddagger");B("\\diamonds","\\diamondsuit");B("\\empty","\\emptyset");B("\\Epsilon","\\mathrm{E}");B("\\Eta","\\mathrm{H}");B("\\exist","\\exists");B("\\harr","\\leftrightarrow");B("\\hArr","\\Leftrightarrow");B("\\Harr","\\Leftrightarrow");B("\\hearts","\\heartsuit");B("\\image","\\Im");B("\\infin","\\infty");B("\\Iota","\\mathrm{I}");B("\\isin","\\in");B("\\Kappa","\\mathrm{K}");B("\\larr","\\leftarrow");B("\\lArr","\\Leftarrow");B("\\Larr","\\Leftarrow");B("\\lrarr","\\leftrightarrow");B("\\lrArr","\\Leftrightarrow");B("\\Lrarr","\\Leftrightarrow");B("\\Mu","\\mathrm{M}");B("\\natnums","\\mathbb{N}");B("\\Nu","\\mathrm{N}");B("\\Omicron","\\mathrm{O}");B("\\plusmn","\\pm");B("\\rarr","\\rightarrow");B("\\rArr","\\Rightarrow");B("\\Rarr","\\Rightarrow");B("\\real","\\Re");B("\\reals","\\mathbb{R}");B("\\Reals","\\mathbb{R}");B("\\Rho","\\mathrm{P}");B("\\sdot","\\cdot");B("\\sect","\\S");B("\\spades","\\spadesuit");B("\\sub","\\subset");B("\\sube","\\subseteq");B("\\supe","\\supseteq");B("\\Tau","\\mathrm{T}");B("\\thetasym","\\vartheta");B("\\weierp","\\wp");B("\\Zeta","\\mathrm{Z}");B("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");B("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");B("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");B("\\bra","\\mathinner{\\langle{#1}|}");B("\\ket","\\mathinner{|{#1}\\rangle}");B("\\braket","\\mathinner{\\langle{#1}\\rangle}");B("\\Bra","\\left\\langle#1\\right|");B("\\Ket","\\left|#1\\right\\rangle");var B3=e=>t=>{var r=t.consumeArg().tokens,i=t.consumeArg().tokens,n=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var l=h=>f=>{e&&(f.macros.set("|",s),n.length&&f.macros.set("\\|",o));var d=h;if(!h&&n.length){var p=f.future();p.text==="|"&&(f.popToken(),d=!0)}return{tokens:d?n:i,numArgs:0}};t.macros.set("|",l(!1)),n.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,c=t.expandTokens([...a,...u,...r]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};B("\\bra@ket",B3(!1));B("\\bra@set",B3(!0));B("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");B("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");B("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");B("\\angln","{\\angl n}");B("\\blue","\\textcolor{##6495ed}{#1}");B("\\orange","\\textcolor{##ffa500}{#1}");B("\\pink","\\textcolor{##ff00af}{#1}");B("\\red","\\textcolor{##df0030}{#1}");B("\\green","\\textcolor{##28ae7b}{#1}");B("\\gray","\\textcolor{gray}{#1}");B("\\purple","\\textcolor{##9d38bd}{#1}");B("\\blueA","\\textcolor{##ccfaff}{#1}");B("\\blueB","\\textcolor{##80f6ff}{#1}");B("\\blueC","\\textcolor{##63d9ea}{#1}");B("\\blueD","\\textcolor{##11accd}{#1}");B("\\blueE","\\textcolor{##0c7f99}{#1}");B("\\tealA","\\textcolor{##94fff5}{#1}");B("\\tealB","\\textcolor{##26edd5}{#1}");B("\\tealC","\\textcolor{##01d1c1}{#1}");B("\\tealD","\\textcolor{##01a995}{#1}");B("\\tealE","\\textcolor{##208170}{#1}");B("\\greenA","\\textcolor{##b6ffb0}{#1}");B("\\greenB","\\textcolor{##8af281}{#1}");B("\\greenC","\\textcolor{##74cf70}{#1}");B("\\greenD","\\textcolor{##1fab54}{#1}");B("\\greenE","\\textcolor{##0d923f}{#1}");B("\\goldA","\\textcolor{##ffd0a9}{#1}");B("\\goldB","\\textcolor{##ffbb71}{#1}");B("\\goldC","\\textcolor{##ff9c39}{#1}");B("\\goldD","\\textcolor{##e07d10}{#1}");B("\\goldE","\\textcolor{##a75a05}{#1}");B("\\redA","\\textcolor{##fca9a9}{#1}");B("\\redB","\\textcolor{##ff8482}{#1}");B("\\redC","\\textcolor{##f9685d}{#1}");B("\\redD","\\textcolor{##e84d39}{#1}");B("\\redE","\\textcolor{##bc2612}{#1}");B("\\maroonA","\\textcolor{##ffbde0}{#1}");B("\\maroonB","\\textcolor{##ff92c6}{#1}");B("\\maroonC","\\textcolor{##ed5fa6}{#1}");B("\\maroonD","\\textcolor{##ca337c}{#1}");B("\\maroonE","\\textcolor{##9e034e}{#1}");B("\\purpleA","\\textcolor{##ddd7ff}{#1}");B("\\purpleB","\\textcolor{##c6b9fc}{#1}");B("\\purpleC","\\textcolor{##aa87ff}{#1}");B("\\purpleD","\\textcolor{##7854ab}{#1}");B("\\purpleE","\\textcolor{##543b78}{#1}");B("\\mintA","\\textcolor{##f5f9e8}{#1}");B("\\mintB","\\textcolor{##edf2df}{#1}");B("\\mintC","\\textcolor{##e0e5cc}{#1}");B("\\grayA","\\textcolor{##f6f7f7}{#1}");B("\\grayB","\\textcolor{##f0f1f2}{#1}");B("\\grayC","\\textcolor{##e3e5e6}{#1}");B("\\grayD","\\textcolor{##d6d8da}{#1}");B("\\grayE","\\textcolor{##babec2}{#1}");B("\\grayF","\\textcolor{##888d93}{#1}");B("\\grayG","\\textcolor{##626569}{#1}");B("\\grayH","\\textcolor{##3b3e40}{#1}");B("\\grayI","\\textcolor{##21242c}{#1}");B("\\kaBlue","\\textcolor{##314453}{#1}");B("\\kaGreen","\\textcolor{##71B307}{#1}");var L3={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class D_{constructor(t,r,i){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new N_(F_,r.macros),this.mode=i,this.stack=[]}feed(t){this.lexer=new Tg(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,i,n;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:n,end:i}=this.consumeArg(["]"])}else({tokens:n,start:r,end:i}=this.consumeArg());return this.pushToken(new Qr("EOF",i.loc)),this.pushTokens(n),new Qr("",Ur.range(r,i))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],i=t&&t.length>0;i||this.consumeSpaces();var n=this.future(),a,s=0,o=0;do{if(a=this.popToken(),r.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new pt("Extra }",a)}else if(a.text==="EOF")throw new pt("Unexpected end of input in a macro argument, expected '"+(t&&i?t[o]:"}")+"'",a);if(t&&i)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){r.splice(-o,o);break}}else o=0}while(s!==0||i);return n.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:n,end:a}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new pt("The length of delimiters doesn't match the number of args!");for(var i=r[0],n=0;n<i.length;n++){var a=this.popToken();if(i[n]!==a.text)throw new pt("Use of the macro doesn't match its definition",a)}}for(var s=[],o=0;o<t;o++)s.push(this.consumeArg(r&&r[o+1]).tokens);return s}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new pt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),i=r.text,n=r.noexpand?null:this._getExpansion(i);if(n==null||t&&n.unexpandable){if(t&&n==null&&i[0]==="\\"&&!this.isDefined(i))throw new pt("Undefined control sequence: "+i);return this.pushToken(r),!1}this.countExpansion(1);var a=n.tokens,s=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new pt("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new pt("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Qr(t)]):void 0}expandTokens(t){var r=[],i=this.stack.length;for(this.pushTokens(t);this.stack.length>i;)if(this.expandOnce(!0)===!1){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),r.push(n)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(i=>i.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var i=this.lexer.catcodes[t];if(i!=null&&i!==13)return}var n=typeof r=="function"?r(this):r;if(typeof n=="string"){var a=0;if(n.includes("#"))for(var s=n.replace(/##/g,"");s.includes("#"+(a+1));)++a;for(var o=new Tg(n,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var c={tokens:l,numArgs:a};return c}return n}isDefined(t){return this.macros.has(t)||Un.hasOwnProperty(t)||Ae.math.hasOwnProperty(t)||Ae.text.hasOwnProperty(t)||L3.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Un.hasOwnProperty(t)&&!Un[t].primitive}}var Sg=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,nu=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),h0={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Eg={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let I3=class M3{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new D_(t,r,this.mode),this.settings=r,this.leftrightDepth=0,this.nextToken=null}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new pt("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Qr("}")),this.gullet.pushTokens(t);var i=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,i}parseExpression(t,r){for(var i=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(M3.endOfExpression.has(n.text)||r&&n.text===r||t&&Un[n.text]&&Un[n.text].infix)break;var a=this.parseAtom(r);if(a){if(a.type==="internal")continue}else break;i.push(a)}return this.mode==="text"&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(t){for(var r=-1,i,n=0;n<t.length;n++){var a=t[n];if(a.type==="infix"){if(r!==-1)throw new pt("only one infix operator per group",a.token);r=n,i=a.replaceWith}}if(r!==-1&&i){var s,o,l=t.slice(0,r),u=t.slice(r+1);l.length===1&&l[0].type==="ordgroup"?s=l[0]:s={type:"ordgroup",mode:this.mode,body:l},u.length===1&&u[0].type==="ordgroup"?o=u[0]:o={type:"ordgroup",mode:this.mode,body:u};var c;return i==="\\\\abovefrac"?c=this.callFunction(i,[s,t[r],o],[]):c=this.callFunction(i,[s,o],[]),[c]}else return t}handleSupSubscript(t){var r=this.fetch(),i=r.text;this.consume(),this.consumeSpaces();var n;do{var a;n=this.parseGroup(t)}while(((a=n)==null?void 0:a.type)==="internal");if(!n)throw new pt("Expected group after '"+i+"'",r);return n}formatUnsupportedCmd(t){for(var r=[],i=0;i<t.length;i++)r.push({type:"textord",mode:"text",text:t[i]});var n={type:"text",mode:this.mode,body:r},a={type:"color",mode:this.mode,color:this.settings.errorColor,body:[n]};return a}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var i,n;;){this.consumeSpaces();var a=this.fetch();if(a.text==="\\limits"||a.text==="\\nolimits"){if(r&&r.type==="op"){var s=a.text==="\\limits";r.limits=s,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=a.text==="\\limits");else throw new pt("Limit controls must follow a math operator",a);this.consume()}else if(a.text==="^"){if(i)throw new pt("Double superscript",a);i=this.handleSupSubscript("superscript")}else if(a.text==="_"){if(n)throw new pt("Double subscript",a);n=this.handleSupSubscript("subscript")}else if(a.text==="'"){if(i)throw new pt("Double superscript",a);var o={type:"textord",mode:this.mode,text:"\\prime"},l=[o];for(this.consume();this.fetch().text==="'";)l.push(o),this.consume();this.fetch().text==="^"&&l.push(this.handleSupSubscript("superscript")),i={type:"ordgroup",mode:this.mode,body:l}}else if(nu[a.text]){var u=Sg.test(a.text),c=[];for(c.push(new Qr(nu[a.text])),this.consume();;){var h=this.fetch().text;if(!nu[h]||Sg.test(h)!==u)break;c.unshift(new Qr(nu[h])),this.consume()}var f=this.subparse(c);u?n={type:"ordgroup",mode:"math",body:f}:i={type:"ordgroup",mode:"math",body:f}}else break}return i||n?{type:"supsub",mode:this.mode,base:r,sup:i,sub:n}:r}parseFunction(t,r){var i=this.fetch(),n=i.text,a=Un[n];if(!a)return null;if(this.consume(),r&&r!=="atom"&&!a.allowedInArgument)throw new pt("Got function '"+n+"' with no arguments"+(r?" as "+r:""),i);if(this.mode==="text"&&!a.allowedInText)throw new pt("Can't use function '"+n+"' in text mode",i);if(this.mode==="math"&&a.allowedInMath===!1)throw new pt("Can't use function '"+n+"' in math mode",i);var{args:s,optArgs:o}=this.parseArguments(n,a);return this.callFunction(n,s,o,i,t)}callFunction(t,r,i,n,a){var s={funcName:t,parser:this,token:n,breakOnTokenText:a},o=Un[t];if(o&&o.handler)return o.handler(s,r,i);throw new pt("No function handler for "+t)}parseArguments(t,r){var i=r.numArgs+r.numOptionalArgs;if(i===0)return{args:[],optArgs:[]};for(var n=[],a=[],s=0;s<i;s++){var o=r.argTypes&&r.argTypes[s],l=s<r.numOptionalArgs;("primitive"in r&&r.primitive&&o==null||r.type==="sqrt"&&s===1&&a[0]==null)&&(o="primitive");var u=this.parseGroupOfType("argument to '"+t+"'",o,l);if(l)a.push(u);else if(u!=null)n.push(u);else throw new pt("Null argument, please report this as a bug")}return{args:n,optArgs:a}}parseGroupOfType(t,r,i){switch(r){case"color":return this.parseColorGroup(i);case"size":return this.parseSizeGroup(i);case"url":return this.parseUrlGroup(i);case"math":case"text":return this.parseArgumentGroup(i,r);case"hbox":{var n=this.parseArgumentGroup(i,"text");return n!=null?{type:"styling",mode:n.mode,body:[n],style:"text",resetFont:!0}:null}case"raw":{var a=this.parseStringGroup("raw",i);return a!=null?{type:"raw",mode:"text",string:a.text}:null}case"primitive":{if(i)throw new pt("A primitive argument cannot be optional");var s=this.parseGroup(t);if(s==null)throw new pt("Expected group as "+t,this.fetch());return s}case"original":case null:case void 0:return this.parseArgumentGroup(i);default:throw new pt("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var i=this.gullet.scanArgument(r);if(i==null)return null;for(var n="",a;(a=this.fetch()).text!=="EOF";)n+=a.text,this.consume();return this.consume(),i.text=n,i}parseRegexGroup(t,r){for(var i=this.fetch(),n=i,a="",s;(s=this.fetch()).text!=="EOF"&&t.test(a+s.text);)n=s,a+=n.text,this.consume();if(a==="")throw new pt("Invalid "+r+": '"+i.text+"'",i);return i.range(n,a)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var i=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!i)throw new pt("Invalid color: '"+r.text+"'",r);var n=i[0];return/^[0-9a-f]{6}$/i.test(n)&&(n="#"+n),{type:"color-token",mode:this.mode,color:n}}parseSizeGroup(t){var r,i=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",i=!0);var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!n)throw new pt("Invalid size: '"+r.text+"'",r);var a={number:+(n[1]+n[2]),unit:n[3]};if(!R4(a))throw new pt("Invalid unit: '"+a.unit+"'",r);return{type:"size",mode:this.mode,value:a,isBlank:i}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var i=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}}parseArgumentGroup(t,r){var i=this.gullet.scanArgument(t);if(i==null)return null;var n=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var s={type:"ordgroup",mode:this.mode,loc:i.loc,body:a};return r&&this.switchMode(n),s}parseGroup(t,r){var i=this.fetch(),n=i.text,a;if(n==="{"||n==="\\begingroup"){this.consume();var s=n==="{"?"}":"\\endgroup";this.gullet.beginGroup();var o=this.parseExpression(!1,s),l=this.fetch();this.expect(s),this.gullet.endGroup(),a={type:"ordgroup",mode:this.mode,loc:Ur.range(i,l),body:o,semisimple:n==="\\begingroup"||void 0}}else if(a=this.parseFunction(r,t)||this.parseSymbol(),a==null&&n[0]==="\\"&&!L3.hasOwnProperty(n)){if(this.settings.throwOnError)throw new pt("Undefined control sequence: "+n,i);a=this.formatUnsupportedCmd(n),this.consume()}return a}formLigatures(t){for(var r=t.length-1,i=0;i<r;++i){var n=t[i];if(n.type==="textord"){var a=n.text,s=t[i+1];if(!(!s||s.type!=="textord")){if(a==="-"&&s.text==="-"){var o=t[i+2];i+1<r&&o&&o.type==="textord"&&o.text==="-"?(t.splice(i,3,{type:"textord",mode:"text",loc:Ur.range(n,o),text:"---"}),r-=2):(t.splice(i,2,{type:"textord",mode:"text",loc:Ur.range(n,s),text:"--"}),r-=1)}(a==="'"||a==="`")&&s.text===a&&(t.splice(i,2,{type:"textord",mode:"text",loc:Ur.range(n,s),text:a+a}),r-=1)}}}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var i=r.slice(5),n=i.charAt(0)==="*";if(n&&(i=i.slice(1)),i.length<2||i.charAt(0)!==i.slice(-1))throw new pt(`\\verb assertion failed --
|
|
265
|
+
please report what input caused this bug`);return i=i.slice(1,-1),{type:"verb",mode:"text",body:i,star:n}}Eg.hasOwnProperty(r[0])&&!Ae[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=Eg[r[0]]+r.slice(1));var a=I_.exec(r);a&&(r=r.substring(0,a.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var s;if(Ae[this.mode][r]){this.settings.strict&&this.mode==="math"&&pd.includes(r)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var o=Ae[this.mode][r].group,l=Ur.range(t),u;ZE(o)?u={type:"atom",mode:this.mode,family:o,loc:l,text:r}:u={type:o,mode:this.mode,loc:l,text:r},s=u}else if(r.charCodeAt(0)>=128)this.settings.strict&&(D4(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:Ur.range(t),text:r};else return null;if(this.consume(),a)for(var c=0;c<a[0].length;c++){var h=a[0][c];if(!h0[h])throw new pt("Unknown accent ' "+h+"'",t);var f=h0[h][this.mode]||h0[h].text;if(!f)throw new pt("Accent "+h+" unsupported in "+this.mode+" mode",t);s={type:"accent",mode:this.mode,loc:Ur.range(t),label:f,isStretchy:!1,isShifty:!0,base:s}}return s}};I3.endOfExpression=new Set(["}","\\endgroup","\\end","\\right","&"]);var y1=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new I3(t,r);delete i.gullet.macros.current["\\df@tag"];var n=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new pt("\\tag works only in display equations");n=[{type:"tag",mode:"text",body:n,tag:i.subparse([new Qr("\\df@tag")])}]}return n},x1=function(t,r,i){r.textContent="";var n=sh(t,i).toNode();r.appendChild(n)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),x1=function(){throw new pt("KaTeX doesn't work in quirks mode.")});var N3=function(t,r){var i=sh(t,r).toMarkup();return i},F3=function(t,r){var i=new n1(r);return y1(t,i)},O3=function(t,r,i){if(i.throwOnError||!(t instanceof pt))throw t;var n=dt(["katex-error"],[new Jr(r)]);return n.setAttribute("title",t.toString()),n.setAttribute("style","color:"+i.errorColor),n},sh=function(t,r){var i=new n1(r);try{var n=y1(t,i);return WE(n,t,i)}catch(a){return O3(a,t,i)}},D3=function(t,r){var i=new n1(r);try{var n=y1(t,i);return jE(n,t,i)}catch(a){return O3(a,t,i)}},R3="0.16.47",P3={Span:Qs,Anchor:Gc,SymbolNode:Jr,SvgNode:kn,PathNode:Kn,LineNode:fd},Bd={version:R3,render:x1,renderToString:N3,ParseError:pt,SETTINGS_SCHEMA:Qu,__parse:F3,__renderToDomTree:sh,__renderToHTMLTree:D3,__setFontMetrics:H4,__defineSymbol:x,__defineFunction:Et,__defineMacro:B,__domTree:P3};const R_=Object.freeze(Object.defineProperty({__proto__:null,ParseError:pt,SETTINGS_SCHEMA:Qu,__defineFunction:Et,__defineMacro:B,__defineSymbol:x,__domTree:P3,__parse:F3,__renderToDomTree:sh,__renderToHTMLTree:D3,__setFontMetrics:H4,default:Bd,get render(){return x1},renderToString:N3,version:R3},Symbol.toStringTag,{value:"Module"})),P_={},$_=[];function z_(e){const t=e||P_;return function(r,i){Yc(r,"element",function(n,a){const s=Array.isArray(n.properties.className)?n.properties.className:$_,o=s.includes("language-math"),l=s.includes("math-display"),u=s.includes("math-inline");let c=l;if(!o&&!l&&!u)return;let h=a[a.length-1],f=n;if(n.tagName==="code"&&o&&h&&h.type==="element"&&h.tagName==="pre"&&(f=h,h=a[a.length-2],c=!0),!h)return;const d=$S(f,{whitespace:"pre"});let p;try{p=Bd.renderToString(d,{...t,displayMode:c,throwOnError:!0})}catch(g){const y=g,k=y.name.toLowerCase();i.message("Could not render math with KaTeX",{ancestors:[...a,n],cause:y,place:n.position,ruleId:k,source:"rehype-katex"});try{p=Bd.renderToString(d,{...t,displayMode:c,strict:"ignore",throwOnError:!1})}catch{p=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(g)},children:[{type:"text",value:d}]}]}}typeof p=="string"&&(p=IS(p).children);const m=h.children.indexOf(f);return h.children.splice(m,1,...p),wa})}}function $3(e,t){const r=String(e);let i=r.indexOf(t),n=i,a=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===n?++a>s&&(s=a):a=1,n=i+t.length,i=r.indexOf(t,n);return s}function H_(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:a},exit:{mathFlow:n,mathFlowFence:i,mathFlowFenceMeta:r,mathFlowValue:o,mathText:s,mathTextData:o}};function e(l){const u={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[u]}},l)}function t(){this.buffer()}function r(){const l=this.resume(),u=this.stack[this.stack.length-1];u.type,u.meta=l}function i(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function n(l){const u=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(l),c.value=u;const h=c.data.hChildren[0];h.type,h.tagName,h.children.push({type:"text",value:u}),this.data.mathFlowInside=void 0}function a(l){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},l),this.buffer()}function s(l){const u=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(l),c.value=u,c.data.hChildren.push({type:"text",value:u})}function o(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function q_(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),i.peek=n,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
266
|
+
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:r,inlineMath:i}};function r(a,s,o,l){const u=a.value||"",c=o.createTracker(l),h="$".repeat(Math.max($3(u,"$")+1,2)),f=o.enter("mathFlow");let d=c.move(h);if(a.meta){const p=o.enter("mathFlowMeta");d+=c.move(o.safe(a.meta,{after:`
|
|
267
|
+
`,before:d,encode:["$"],...c.current()})),p()}return d+=c.move(`
|
|
268
|
+
`),u&&(d+=c.move(u+`
|
|
269
|
+
`)),d+=c.move(h),f(),d}function i(a,s,o){let l=a.value||"",u=1;for(t||u++;new RegExp("(^|[^$])"+"\\$".repeat(u)+"([^$]|$)").test(l);)u++;const c="$".repeat(u);/[^ \r\n]/.test(l)&&(/^[ \r\n]/.test(l)&&/[ \r\n]$/.test(l)||/^\$|\$$/.test(l))&&(l=" "+l+" ");let h=-1;for(;++h<o.unsafe.length;){const f=o.unsafe[h];if(!f.atBreak)continue;const d=o.compilePattern(f);let p;for(;p=d.exec(l);){let m=p.index;l.codePointAt(m)===10&&l.codePointAt(m-1)===13&&m--,l=l.slice(0,m)+" "+l.slice(p.index+1)}}return c+l+c}function n(){return"$"}}function oe(e,t,r,i){const n=i?i-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return ue(l)?(e.enter(r),o(l)):t(l)}function o(l){return ue(l)&&a++<n?(e.consume(l),o):(e.exit(r),t(l))}}const U_={tokenize:W_,concrete:!0,name:"mathFlow"},_g={tokenize:j_,partial:!0};function W_(e,t,r){const i=this,n=i.events[i.events.length-1],a=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0;let s=0;return o;function o(k){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),l(k)}function l(k){return k===36?(e.consume(k),s++,l):s<2?r(k):(e.exit("mathFlowFenceSequence"),oe(e,u,"whitespace")(k))}function u(k){return k===null||Rt(k)?h(k):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(k))}function c(k){return k===null||Rt(k)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),h(k)):k===36?r(k):(e.consume(k),c)}function h(k){return e.exit("mathFlowFence"),i.interrupt?t(k):e.attempt(_g,f,g)(k)}function f(k){return e.attempt({tokenize:y,partial:!0},g,d)(k)}function d(k){return(a?oe(e,p,"linePrefix",a+1):p)(k)}function p(k){return k===null?g(k):Rt(k)?e.attempt(_g,f,g)(k):(e.enter("mathFlowValue"),m(k))}function m(k){return k===null||Rt(k)?(e.exit("mathFlowValue"),p(k)):(e.consume(k),m)}function g(k){return e.exit("mathFlow"),t(k)}function y(k,w,_){let A=0;return oe(k,E,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function E(Y){return k.enter("mathFlowFence"),k.enter("mathFlowFenceSequence"),N(Y)}function N(Y){return Y===36?(A++,k.consume(Y),N):A<s?_(Y):(k.exit("mathFlowFenceSequence"),oe(k,F,"whitespace")(Y))}function F(Y){return Y===null||Rt(Y)?(k.exit("mathFlowFence"),w(Y)):_(Y)}}}function j_(e,t,r){const i=this;return n;function n(s){return s===null?t(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return i.parser.lazy[i.now().line]?r(s):t(s)}}function Y_(e){let r=(e||{}).singleDollarTextMath;return r==null&&(r=!0),{tokenize:i,resolve:V_,previous:G_,name:"mathText"};function i(n,a,s){let o=0,l,u;return c;function c(m){return n.enter("mathText"),n.enter("mathTextSequence"),h(m)}function h(m){return m===36?(n.consume(m),o++,h):o<2&&!r?s(m):(n.exit("mathTextSequence"),f(m))}function f(m){return m===null?s(m):m===36?(u=n.enter("mathTextSequence"),l=0,p(m)):m===32?(n.enter("space"),n.consume(m),n.exit("space"),f):Rt(m)?(n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),f):(n.enter("mathTextData"),d(m))}function d(m){return m===null||m===32||m===36||Rt(m)?(n.exit("mathTextData"),f(m)):(n.consume(m),d)}function p(m){return m===36?(n.consume(m),l++,p):l===o?(n.exit("mathTextSequence"),n.exit("mathText"),a(m)):(u.type="mathTextData",d(m))}}}function V_(e){let t=e.length-4,r=3,i,n;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[r][1].type="mathTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)n===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(n=i):(i===t||e[i][1].type==="lineEnding")&&(e[n][1].type="mathTextData",i!==n+2&&(e[n][1].end=e[i-1][1].end,e.splice(n+2,i-n-2),t-=i-n-2,i=n+2),n=void 0);return e}function G_(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function X_(e){return{flow:{36:U_},text:{36:Y_(e)}}}const K_={};function Q_(e){const t=this,r=e||K_,i=t.data(),n=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);n.push(X_(r)),a.push(H_()),s.push(q_(r))}function z3(e={}){var t,r;let i=[Q_,{singleDollarTextMath:(t=e.singleDollarTextMath)!=null?t:!1}],n=[z_,{errorColor:(r=e.errorColor)!=null?r:"var(--color-muted-foreground)"}];return{name:"katex",type:"math",remarkPlugin:i,rehypePlugin:n,getStyles(){return"katex/dist/katex.min.css"}}}z3();var H3=Object.defineProperty,C=(e,t)=>H3(e,"name",{value:t,configurable:!0}),Z_=(e,t)=>{for(var r in t)H3(e,r,{get:t[r],enumerable:!0})},Bu={exports:{}},J_=Bu.exports,Ag;function tA(){return Ag||(Ag=1,(function(e,t){(function(r,i){e.exports=i()})(J_,(function(){var r=1e3,i=6e4,n=36e5,a="millisecond",s="second",o="minute",l="hour",u="day",c="week",h="month",f="quarter",d="year",p="date",m="Invalid Date",g=/^(\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,k={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(j){var P=["th","st","nd","rd"],$=j%100;return"["+j+(P[($-20)%10]||P[$]||P[0])+"]"}},w=function(j,P,$){var V=String(j);return!V||V.length>=P?j:""+Array(P+1-V.length).join($)+j},_={s:w,z:function(j){var P=-j.utcOffset(),$=Math.abs(P),V=Math.floor($/60),X=$%60;return(P<=0?"+":"-")+w(V,2,"0")+":"+w(X,2,"0")},m:function j(P,$){if(P.date()<$.date())return-j($,P);var V=12*($.year()-P.year())+($.month()-P.month()),X=P.clone().add(V,h),it=$-X<0,L=P.clone().add(V+(it?-1:1),h);return+(-(V+($-X)/(it?X-L:L-X))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:h,y:d,w:c,d:u,D:p,h:l,m:o,s,ms:a,Q:f}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},A="en",E={};E[A]=k;var N="$isDayjsObject",F=function(j){return j instanceof K||!(!j||!j[N])},Y=function j(P,$,V){var X;if(!P)return A;if(typeof P=="string"){var it=P.toLowerCase();E[it]&&(X=it),$&&(E[it]=$,X=it);var L=P.split("-");if(!X&&L.length>1)return j(L[0])}else{var lt=P.name;E[lt]=P,X=lt}return!V&&X&&(A=X),X||!V&&A},I=function(j,P){if(F(j))return j.clone();var $=typeof P=="object"?P:{};return $.date=j,$.args=arguments,new K($)},z=_;z.l=Y,z.i=F,z.w=function(j,P){return I(j,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var K=(function(){function j($){this.$L=Y($.locale,null,!0),this.parse($),this.$x=this.$x||$.x||{},this[N]=!0}var P=j.prototype;return P.parse=function($){this.$d=(function(V){var X=V.date,it=V.utc;if(X===null)return new Date(NaN);if(z.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var L=X.match(g);if(L){var lt=L[2]-1||0,Ct=(L[7]||"0").substring(0,3);return it?new Date(Date.UTC(L[1],lt,L[3]||1,L[4]||0,L[5]||0,L[6]||0,Ct)):new Date(L[1],lt,L[3]||1,L[4]||0,L[5]||0,L[6]||0,Ct)}}return new Date(X)})($),this.init()},P.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},P.$utils=function(){return z},P.isValid=function(){return this.$d.toString()!==m},P.isSame=function($,V){var X=I($);return this.startOf(V)<=X&&X<=this.endOf(V)},P.isAfter=function($,V){return I($)<this.startOf(V)},P.isBefore=function($,V){return this.endOf(V)<I($)},P.$g=function($,V,X){return z.u($)?this[V]:this.set(X,$)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function($,V){var X=this,it=!!z.u(V)||V,L=z.p($),lt=function(Vt,yt){var bt=z.w(X.$u?Date.UTC(X.$y,yt,Vt):new Date(X.$y,yt,Vt),X);return it?bt:bt.endOf(u)},Ct=function(Vt,yt){return z.w(X.toDate()[Vt].apply(X.toDate("s"),(it?[0,0,0,0]:[23,59,59,999]).slice(yt)),X)},O=this.$W,St=this.$M,_t=this.$D,Ft="set"+(this.$u?"UTC":"");switch(L){case d:return it?lt(1,0):lt(31,11);case h:return it?lt(1,St):lt(0,St+1);case c:var zt=this.$locale().weekStart||0,Zt=(O<zt?O+7:O)-zt;return lt(it?_t-Zt:_t+(6-Zt),St);case u:case p:return Ct(Ft+"Hours",0);case l:return Ct(Ft+"Minutes",1);case o:return Ct(Ft+"Seconds",2);case s:return Ct(Ft+"Milliseconds",3);default:return this.clone()}},P.endOf=function($){return this.startOf($,!1)},P.$set=function($,V){var X,it=z.p($),L="set"+(this.$u?"UTC":""),lt=(X={},X[u]=L+"Date",X[p]=L+"Date",X[h]=L+"Month",X[d]=L+"FullYear",X[l]=L+"Hours",X[o]=L+"Minutes",X[s]=L+"Seconds",X[a]=L+"Milliseconds",X)[it],Ct=it===u?this.$D+(V-this.$W):V;if(it===h||it===d){var O=this.clone().set(p,1);O.$d[lt](Ct),O.init(),this.$d=O.set(p,Math.min(this.$D,O.daysInMonth())).$d}else lt&&this.$d[lt](Ct);return this.init(),this},P.set=function($,V){return this.clone().$set($,V)},P.get=function($){return this[z.p($)]()},P.add=function($,V){var X,it=this;$=Number($);var L=z.p(V),lt=function(St){var _t=I(it);return z.w(_t.date(_t.date()+Math.round(St*$)),it)};if(L===h)return this.set(h,this.$M+$);if(L===d)return this.set(d,this.$y+$);if(L===u)return lt(1);if(L===c)return lt(7);var Ct=(X={},X[o]=i,X[l]=n,X[s]=r,X)[L]||1,O=this.$d.getTime()+$*Ct;return z.w(O,this)},P.subtract=function($,V){return this.add(-1*$,V)},P.format=function($){var V=this,X=this.$locale();if(!this.isValid())return X.invalidDate||m;var it=$||"YYYY-MM-DDTHH:mm:ssZ",L=z.z(this),lt=this.$H,Ct=this.$m,O=this.$M,St=X.weekdays,_t=X.months,Ft=X.meridiem,zt=function(yt,bt,jt,It){return yt&&(yt[bt]||yt(V,it))||jt[bt].slice(0,It)},Zt=function(yt){return z.s(lt%12||12,yt,"0")},Vt=Ft||function(yt,bt,jt){var It=yt<12?"AM":"PM";return jt?It.toLowerCase():It};return it.replace(y,(function(yt,bt){return bt||(function(jt){switch(jt){case"YY":return String(V.$y).slice(-2);case"YYYY":return z.s(V.$y,4,"0");case"M":return O+1;case"MM":return z.s(O+1,2,"0");case"MMM":return zt(X.monthsShort,O,_t,3);case"MMMM":return zt(_t,O);case"D":return V.$D;case"DD":return z.s(V.$D,2,"0");case"d":return String(V.$W);case"dd":return zt(X.weekdaysMin,V.$W,St,2);case"ddd":return zt(X.weekdaysShort,V.$W,St,3);case"dddd":return St[V.$W];case"H":return String(lt);case"HH":return z.s(lt,2,"0");case"h":return Zt(1);case"hh":return Zt(2);case"a":return Vt(lt,Ct,!0);case"A":return Vt(lt,Ct,!1);case"m":return String(Ct);case"mm":return z.s(Ct,2,"0");case"s":return String(V.$s);case"ss":return z.s(V.$s,2,"0");case"SSS":return z.s(V.$ms,3,"0");case"Z":return L}return null})(yt)||L.replace(":","")}))},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function($,V,X){var it,L=this,lt=z.p(V),Ct=I($),O=(Ct.utcOffset()-this.utcOffset())*i,St=this-Ct,_t=function(){return z.m(L,Ct)};switch(lt){case d:it=_t()/12;break;case h:it=_t();break;case f:it=_t()/3;break;case c:it=(St-O)/6048e5;break;case u:it=(St-O)/864e5;break;case l:it=St/n;break;case o:it=St/i;break;case s:it=St/r;break;default:it=St}return X?it:z.a(it)},P.daysInMonth=function(){return this.endOf(h).$D},P.$locale=function(){return E[this.$L]},P.locale=function($,V){if(!$)return this.$L;var X=this.clone(),it=Y($,V,!0);return it&&(X.$L=it),X},P.clone=function(){return z.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},j})(),J=K.prototype;return I.prototype=J,[["$ms",a],["$s",s],["$m",o],["$H",l],["$W",u],["$M",h],["$y",d],["$D",p]].forEach((function(j){J[j[1]]=function(P){return this.$g(P,j[0],j[1])}})),I.extend=function(j,P){return j.$i||(j(P,K,I),j.$i=!0),I},I.locale=Y,I.isDayjs=F,I.unix=function(j){return I(1e3*j)},I.en=E[A],I.Ls=E,I.p={},I}))})(Bu)),Bu.exports}var eA=tA();const rA=Qf(eA);var dn={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},ut={trace:C((...e)=>{},"trace"),debug:C((...e)=>{},"debug"),info:C((...e)=>{},"info"),warn:C((...e)=>{},"warn"),error:C((...e)=>{},"error"),fatal:C((...e)=>{},"fatal")},C1=C(function(e="fatal"){let t=dn.fatal;typeof e=="string"?e.toLowerCase()in dn&&(t=dn[e]):typeof e=="number"&&(t=e),ut.trace=()=>{},ut.debug=()=>{},ut.info=()=>{},ut.warn=()=>{},ut.error=()=>{},ut.fatal=()=>{},t<=dn.fatal&&(ut.fatal=console.error?console.error.bind(console,ui("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",ui("FATAL"))),t<=dn.error&&(ut.error=console.error?console.error.bind(console,ui("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",ui("ERROR"))),t<=dn.warn&&(ut.warn=console.warn?console.warn.bind(console,ui("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",ui("WARN"))),t<=dn.info&&(ut.info=console.info?console.info.bind(console,ui("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",ui("INFO"))),t<=dn.debug&&(ut.debug=console.debug?console.debug.bind(console,ui("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ui("DEBUG"))),t<=dn.trace&&(ut.trace=console.debug?console.debug.bind(console,ui("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",ui("TRACE")))},"setLogLevel"),ui=C(e=>`%c${rA().format("ss.SSS")} : ${e} : `,"format");const Lu={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,a=2*r-n;switch(i){case"r":return Lu.hue2rgb(a,n,e+1/3)*255;case"g":return Lu.hue2rgb(a,n,e)*255;case"b":return Lu.hue2rgb(a,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),a=Math.min(e,t,r),s=(n+a)/2;if(i==="l")return s*100;if(n===a)return 0;const o=n-a,l=s>.5?o/(2-n-a):o/(n+a);if(i==="s")return l*100;switch(n){case e:return((t-r)/o+(t<r?6:0))*60;case t:return((r-e)/o+2)*60;case r:return((e-t)/o+4)*60;default:return-1}}},iA={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},nA={dec2hex:e=>{const t=Math.round(e).toString(16);return t.length>1?t:`0${t}`}},Qt={channel:Lu,lang:iA,unit:nA},Rn={};for(let e=0;e<=255;e++)Rn[e]=Qt.unit.dec2hex(e);const gr={ALL:0,RGB:1,HSL:2};class aA{constructor(){this.type=gr.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=gr.ALL}is(t){return this.type===t}}class sA{constructor(t,r){this.color=r,this.changed=!1,this.data=t,this.type=new aA}set(t,r){return this.color=r,this.changed=!1,this.data=t,this.type.type=gr.ALL,this}_ensureHSL(){const t=this.data,{h:r,s:i,l:n}=t;r===void 0&&(t.h=Qt.channel.rgb2hsl(t,"h")),i===void 0&&(t.s=Qt.channel.rgb2hsl(t,"s")),n===void 0&&(t.l=Qt.channel.rgb2hsl(t,"l"))}_ensureRGB(){const t=this.data,{r,g:i,b:n}=t;r===void 0&&(t.r=Qt.channel.hsl2rgb(t,"r")),i===void 0&&(t.g=Qt.channel.hsl2rgb(t,"g")),n===void 0&&(t.b=Qt.channel.hsl2rgb(t,"b"))}get r(){const t=this.data,r=t.r;return!this.type.is(gr.HSL)&&r!==void 0?r:(this._ensureHSL(),Qt.channel.hsl2rgb(t,"r"))}get g(){const t=this.data,r=t.g;return!this.type.is(gr.HSL)&&r!==void 0?r:(this._ensureHSL(),Qt.channel.hsl2rgb(t,"g"))}get b(){const t=this.data,r=t.b;return!this.type.is(gr.HSL)&&r!==void 0?r:(this._ensureHSL(),Qt.channel.hsl2rgb(t,"b"))}get h(){const t=this.data,r=t.h;return!this.type.is(gr.RGB)&&r!==void 0?r:(this._ensureRGB(),Qt.channel.rgb2hsl(t,"h"))}get s(){const t=this.data,r=t.s;return!this.type.is(gr.RGB)&&r!==void 0?r:(this._ensureRGB(),Qt.channel.rgb2hsl(t,"s"))}get l(){const t=this.data,r=t.l;return!this.type.is(gr.RGB)&&r!==void 0?r:(this._ensureRGB(),Qt.channel.rgb2hsl(t,"l"))}get a(){return this.data.a}set r(t){this.type.set(gr.RGB),this.changed=!0,this.data.r=t}set g(t){this.type.set(gr.RGB),this.changed=!0,this.data.g=t}set b(t){this.type.set(gr.RGB),this.changed=!0,this.data.b=t}set h(t){this.type.set(gr.HSL),this.changed=!0,this.data.h=t}set s(t){this.type.set(gr.HSL),this.changed=!0,this.data.s=t}set l(t){this.type.set(gr.HSL),this.changed=!0,this.data.l=t}set a(t){this.changed=!0,this.data.a=t}}const oh=new sA({r:0,g:0,b:0,a:0},"transparent"),ms={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const t=e.match(ms.re);if(!t)return;const r=t[1],i=parseInt(r,16),n=r.length,a=n%4===0,s=n>4,o=s?1:17,l=s?8:4,u=a?0:-1,c=s?255:15;return oh.set({r:(i>>l*(u+3)&c)*o,g:(i>>l*(u+2)&c)*o,b:(i>>l*(u+1)&c)*o,a:a?(i&c)*o/255:1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`#${Rn[Math.round(t)]}${Rn[Math.round(r)]}${Rn[Math.round(i)]}${Rn[Math.round(n*255)]}`:`#${Rn[Math.round(t)]}${Rn[Math.round(r)]}${Rn[Math.round(i)]}`}},va={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(va.hueRe);if(t){const[,r,i]=t;switch(i){case"grad":return Qt.channel.clamp.h(parseFloat(r)*.9);case"rad":return Qt.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return Qt.channel.clamp.h(parseFloat(r)*360)}}return Qt.channel.clamp.h(parseFloat(e))},parse:e=>{const t=e.charCodeAt(0);if(t!==104&&t!==72)return;const r=e.match(va.re);if(!r)return;const[,i,n,a,s,o]=r;return oh.set({h:va._hue2deg(i),s:Qt.channel.clamp.s(parseFloat(n)),l:Qt.channel.clamp.l(parseFloat(a)),a:s?Qt.channel.clamp.a(o?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{const{h:t,s:r,l:i,a:n}=e;return n<1?`hsla(${Qt.lang.round(t)}, ${Qt.lang.round(r)}%, ${Qt.lang.round(i)}%, ${n})`:`hsl(${Qt.lang.round(t)}, ${Qt.lang.round(r)}%, ${Qt.lang.round(i)}%)`}},Wo={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=Wo.colors[e];if(t)return ms.parse(t)},stringify:e=>{const t=ms.stringify(e);for(const r in Wo.colors)if(Wo.colors[r]===t)return r}},Io={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(Io.re);if(!r)return;const[,i,n,a,s,o,l,u,c]=r;return oh.set({r:Qt.channel.clamp.r(n?parseFloat(i)*2.55:parseFloat(i)),g:Qt.channel.clamp.g(s?parseFloat(a)*2.55:parseFloat(a)),b:Qt.channel.clamp.b(l?parseFloat(o)*2.55:parseFloat(o)),a:u?Qt.channel.clamp.a(c?parseFloat(u)/100:parseFloat(u)):1},e)},stringify:e=>{const{r:t,g:r,b:i,a:n}=e;return n<1?`rgba(${Qt.lang.round(t)}, ${Qt.lang.round(r)}, ${Qt.lang.round(i)}, ${Qt.lang.round(n)})`:`rgb(${Qt.lang.round(t)}, ${Qt.lang.round(r)}, ${Qt.lang.round(i)})`}},Qi={format:{keyword:Wo,hex:ms,rgb:Io,rgba:Io,hsl:va,hsla:va},parse:e=>{if(typeof e!="string")return e;const t=ms.parse(e)||Io.parse(e)||va.parse(e)||Wo.parse(e);if(t)return t;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(gr.HSL)||e.data.r===void 0?va.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?Io.stringify(e):ms.stringify(e)},q3=(e,t)=>{const r=Qi.parse(e);for(const i in t)r[i]=Qt.channel.clamp[i](t[i]);return Qi.stringify(r)},Vn=(e,t,r=0,i=1)=>{if(typeof e!="number")return q3(e,{a:t});const n=oh.set({r:Qt.channel.clamp.r(e),g:Qt.channel.clamp.g(t),b:Qt.channel.clamp.b(r),a:Qt.channel.clamp.a(i)});return Qi.stringify(n)},oA=e=>{const{r:t,g:r,b:i}=Qi.parse(e),n=.2126*Qt.channel.toLinear(t)+.7152*Qt.channel.toLinear(r)+.0722*Qt.channel.toLinear(i);return Qt.lang.round(n)},lA=e=>oA(e)>=.5,Ai=e=>!lA(e),U3=(e,t,r)=>{const i=Qi.parse(e),n=i[t],a=Qt.channel.clamp[t](n+r);return n!==a&&(i[t]=a),Qi.stringify(i)},nt=(e,t)=>U3(e,"l",t),at=(e,t)=>U3(e,"l",-t),v=(e,t)=>{const r=Qi.parse(e),i={};for(const n in t)t[n]&&(i[n]=r[n]+t[n]);return q3(e,i)},uA=(e,t,r=50)=>{const{r:i,g:n,b:a,a:s}=Qi.parse(e),{r:o,g:l,b:u,a:c}=Qi.parse(t),h=r/100,f=h*2-1,d=s-c,m=((f*d===-1?f:(f+d)/(1+f*d))+1)/2,g=1-m,y=i*m+o*g,k=n*m+l*g,w=a*m+u*g,_=s*h+c*(1-h);return Vn(y,k,w,_)},Q=(e,t=100)=>{const r=Qi.parse(e);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,uA(r,e,t)};/*! @license DOMPurify 3.4.11 | (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.11/LICENSE */function Bg(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 cA(e){if(Array.isArray(e))return e}function hA(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,n,a,s,o=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(i=a.call(r)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(c){u=!0,n=c}finally{try{if(!l&&r.return!=null&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw n}}return o}}function dA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
270
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fA(e,t){return cA(e)||hA(e,t)||pA(e,t)||dA()}function pA(e,t){if(e){if(typeof e=="string")return Bg(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)?Bg(e,t):void 0}}const W3=Object.entries,Lg=Object.setPrototypeOf,mA=Object.isFrozen,gA=Object.getPrototypeOf,bA=Object.getOwnPropertyDescriptor;let hr=Object.freeze,fr=Object.seal,ss=Object.create,j3=typeof Reflect<"u"&&Reflect,Ld=j3.apply,Id=j3.construct;hr||(hr=function(t){return t});fr||(fr=function(t){return t});Ld||(Ld=function(t,r){for(var i=arguments.length,n=new Array(i>2?i-2:0),a=2;a<i;a++)n[a-2]=arguments[a];return t.apply(r,n)});Id||(Id=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 co=je(Array.prototype.forEach),yA=je(Array.prototype.lastIndexOf),Ig=je(Array.prototype.pop),es=je(Array.prototype.push),xA=je(Array.prototype.splice),qn=Array.isArray,Mo=je(String.prototype.toLowerCase),d0=je(String.prototype.toString),Mg=je(String.prototype.match),ho=je(String.prototype.replace),Ng=je(String.prototype.indexOf),CA=je(String.prototype.trim),kA=je(Number.prototype.toString),TA=je(Boolean.prototype.toString),Fg=typeof BigInt>"u"?null:je(BigInt.prototype.toString),Og=typeof Symbol>"u"?null:je(Symbol.prototype.toString),er=je(Object.prototype.hasOwnProperty),fo=je(Object.prototype.toString),or=je(RegExp.prototype.test),da=wA(TypeError);function je(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 Ld(e,t,i)}}function wA(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Id(e,r)}}function de(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Mo;if(Lg&&Lg(e,null),!qn(t))return e;let i=t.length;for(;i--;){let n=t[i];if(typeof n=="string"){const a=r(n);a!==n&&(mA(t)||(t[i]=a),n=a)}e[n]=!0}return e}function vA(e){for(let t=0;t<e.length;t++)er(e,t)||(e[t]=null);return e}function Br(e){const t=ss(null);for(const i of W3(e)){var r=fA(i,2);const n=r[0],a=r[1];er(e,n)&&(qn(a)?t[n]=vA(a):a&&typeof a=="object"&&a.constructor===Object?t[n]=Br(a):t[n]=a)}return t}function SA(e){switch(typeof e){case"string":return e;case"number":return kA(e);case"boolean":return TA(e);case"bigint":return Fg?Fg(e):"0";case"symbol":return Og?Og(e):"Symbol()";case"undefined":return fo(e);case"function":case"object":{if(e===null)return fo(e);const t=e,r=Pi(t,"toString");if(typeof r=="function"){const i=r(t);return typeof i=="string"?i:fo(i)}return fo(e)}default:return fo(e)}}function Pi(e,t){for(;e!==null;){const i=bA(e,t);if(i){if(i.get)return je(i.get);if(typeof i.value=="function")return je(i.value)}e=gA(e)}function r(){return null}return r}function EA(e){try{return or(e,""),!0}catch{return!1}}const Dg=hr(["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"]),f0=hr(["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"]),p0=hr(["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"]),_A=hr(["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"]),m0=hr(["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"]),AA=hr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Rg=hr(["#text"]),Pg=hr(["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"]),g0=hr(["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"]),$g=hr(["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"]),au=hr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),BA=fr(/{{[\w\W]*|^[\w\W]*}}/g),LA=fr(/<%[\w\W]*|^[\w\W]*%>/g),IA=fr(/\${[\w\W]*/g),MA=fr(/^data-[\-\w.\u00B7-\uFFFF]+$/),NA=fr(/^aria-[\-\w]+$/),zg=fr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),FA=fr(/^(?:\w+script|data):/i),OA=fr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DA=fr(/^html$/i),RA=fr(/^[a-z][.\w]*(-[.\w]+)+$/i),Hg=fr(/<[/\w!]/g),PA=fr(/<[/\w]/g),$A=fr(/<\/no(script|embed|frames)/i),zA=fr(/\/>/i),Ri={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},HA=function(){return typeof window>"u"?null:window},qA=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 a="dompurify"+(i?"#"+i:"");try{return t.createPolicy(a,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},qg=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},On=function(t,r,i,n){return er(t,r)&&qn(t[r])?de(n.base?Br(n.base):{},t[r],n.transform):i};function Y3(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:HA();const t=wt=>Y3(wt);if(t.version="3.4.11",t.removed=[],!e||!e.document||e.document.nodeType!==Ri.document||!e.Element)return t.isSupported=!1,t;let r=e.document;const i=r,n=i.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,s=e.Node,o=e.Element,l=e.NodeFilter,u=e.NamedNodeMap;u===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const c=e.DOMParser,h=e.trustedTypes,f=o.prototype,d=Pi(f,"cloneNode"),p=Pi(f,"remove"),m=Pi(f,"nextSibling"),g=Pi(f,"childNodes"),y=Pi(f,"parentNode"),k=Pi(f,"shadowRoot"),w=Pi(f,"attributes"),_=s&&s.prototype?Pi(s.prototype,"nodeType"):null,A=s&&s.prototype?Pi(s.prototype,"nodeName"):null;if(typeof a=="function"){const wt=r.createElement("template");wt.content&&wt.content.ownerDocument&&(r=wt.content.ownerDocument)}let E,N="",F,Y=!1,I=0;const z=function(){if(I>0)throw da('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.')},K=function(R){z(),I++;try{return E.createHTML(R)}finally{I--}},J=function(R){z(),I++;try{return E.createScriptURL(R)}finally{I--}},j=function(){return Y||(F=qA(h,n),Y=!0),F},P=r,$=P.implementation,V=P.createNodeIterator,X=P.createDocumentFragment,it=P.getElementsByTagName,L=i.importNode;let lt=qg();t.isSupported=typeof W3=="function"&&typeof y=="function"&&$&&$.createHTMLDocument!==void 0;const Ct=BA,O=LA,St=IA,_t=MA,Ft=NA,zt=FA,Zt=OA,Vt=RA;let yt=zg,bt=null;const jt=de({},[...Dg,...f0,...p0,...m0,...Rg]);let It=null;const et=de({},[...Pg,...g0,...$g,...au]);let vt=Object.seal(ss(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}})),nr=null,Mi=null;const Ht=Object.seal(ss(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ge=!0,Le=!0,Sr=!1,ni=!0,$r=!1,Ni=!0,ai=!1,ot=!1,kt=null,qt=null,re=!1,he=!1,pr=!1,si=!1,oi=!0,Ln=!1;const In="user-content-";let ar=!0,Fi=!1,mr={},Oi=null;const Dh=de({},["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 am=null;const sm=de({},["audio","video","img","source","image","track"]);let Rh=null;const om=de({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Yl="http://www.w3.org/1998/Math/MathML",Vl="http://www.w3.org/2000/svg",Di="http://www.w3.org/1999/xhtml";let Qa=Di,Ph=!1,$h=null;const rv=de({},[Yl,Vl,Di],d0),lm=hr(["mi","mo","mn","ms","mtext"]);let zh=de({},lm);const um=hr(["annotation-xml"]);let Hh=de({},um);const iv=de({},["title","style","font","a","script"]);let lo=null;const nv=["application/xhtml+xml","text/html"],av="text/html";let Fe=null,Za=null;const sv=r.createElement("form"),cm=function(R){return R instanceof RegExp||R instanceof Function},qh=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Za&&Za===R)return;(!R||typeof R!="object")&&(R={}),R=Br(R),lo=nv.indexOf(R.PARSER_MEDIA_TYPE)===-1?av:R.PARSER_MEDIA_TYPE,Fe=lo==="application/xhtml+xml"?d0:Mo,bt=On(R,"ALLOWED_TAGS",jt,{transform:Fe}),It=On(R,"ALLOWED_ATTR",et,{transform:Fe}),$h=On(R,"ALLOWED_NAMESPACES",rv,{transform:d0}),Rh=On(R,"ADD_URI_SAFE_ATTR",om,{transform:Fe,base:om}),am=On(R,"ADD_DATA_URI_TAGS",sm,{transform:Fe,base:sm}),Oi=On(R,"FORBID_CONTENTS",Dh,{transform:Fe}),nr=On(R,"FORBID_TAGS",Br({}),{transform:Fe}),Mi=On(R,"FORBID_ATTR",Br({}),{transform:Fe}),mr=er(R,"USE_PROFILES")?R.USE_PROFILES&&typeof R.USE_PROFILES=="object"?Br(R.USE_PROFILES):R.USE_PROFILES:!1,ge=R.ALLOW_ARIA_ATTR!==!1,Le=R.ALLOW_DATA_ATTR!==!1,Sr=R.ALLOW_UNKNOWN_PROTOCOLS||!1,ni=R.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$r=R.SAFE_FOR_TEMPLATES||!1,Ni=R.SAFE_FOR_XML!==!1,ai=R.WHOLE_DOCUMENT||!1,he=R.RETURN_DOM||!1,pr=R.RETURN_DOM_FRAGMENT||!1,si=R.RETURN_TRUSTED_TYPE||!1,re=R.FORCE_BODY||!1,oi=R.SANITIZE_DOM!==!1,Ln=R.SANITIZE_NAMED_PROPS||!1,ar=R.KEEP_CONTENT!==!1,Fi=R.IN_PLACE||!1,yt=EA(R.ALLOWED_URI_REGEXP)?R.ALLOWED_URI_REGEXP:zg,Qa=typeof R.NAMESPACE=="string"?R.NAMESPACE:Di,zh=er(R,"MATHML_TEXT_INTEGRATION_POINTS")&&R.MATHML_TEXT_INTEGRATION_POINTS&&typeof R.MATHML_TEXT_INTEGRATION_POINTS=="object"?Br(R.MATHML_TEXT_INTEGRATION_POINTS):de({},lm),Hh=er(R,"HTML_INTEGRATION_POINTS")&&R.HTML_INTEGRATION_POINTS&&typeof R.HTML_INTEGRATION_POINTS=="object"?Br(R.HTML_INTEGRATION_POINTS):de({},um);const rt=er(R,"CUSTOM_ELEMENT_HANDLING")&&R.CUSTOM_ELEMENT_HANDLING&&typeof R.CUSTOM_ELEMENT_HANDLING=="object"?Br(R.CUSTOM_ELEMENT_HANDLING):ss(null);if(vt=ss(null),er(rt,"tagNameCheck")&&cm(rt.tagNameCheck)&&(vt.tagNameCheck=rt.tagNameCheck),er(rt,"attributeNameCheck")&&cm(rt.attributeNameCheck)&&(vt.attributeNameCheck=rt.attributeNameCheck),er(rt,"allowCustomizedBuiltInElements")&&typeof rt.allowCustomizedBuiltInElements=="boolean"&&(vt.allowCustomizedBuiltInElements=rt.allowCustomizedBuiltInElements),fr(vt),$r&&(Le=!1),pr&&(he=!0),mr&&(bt=de({},Rg),It=ss(null),mr.html===!0&&(de(bt,Dg),de(It,Pg)),mr.svg===!0&&(de(bt,f0),de(It,g0),de(It,au)),mr.svgFilters===!0&&(de(bt,p0),de(It,g0),de(It,au)),mr.mathMl===!0&&(de(bt,m0),de(It,$g),de(It,au))),Ht.tagCheck=null,Ht.attributeCheck=null,er(R,"ADD_TAGS")&&(typeof R.ADD_TAGS=="function"?Ht.tagCheck=R.ADD_TAGS:qn(R.ADD_TAGS)&&(bt===jt&&(bt=Br(bt)),de(bt,R.ADD_TAGS,Fe))),er(R,"ADD_ATTR")&&(typeof R.ADD_ATTR=="function"?Ht.attributeCheck=R.ADD_ATTR:qn(R.ADD_ATTR)&&(It===et&&(It=Br(It)),de(It,R.ADD_ATTR,Fe))),er(R,"ADD_URI_SAFE_ATTR")&&qn(R.ADD_URI_SAFE_ATTR)&&de(Rh,R.ADD_URI_SAFE_ATTR,Fe),er(R,"FORBID_CONTENTS")&&qn(R.FORBID_CONTENTS)&&(Oi===Dh&&(Oi=Br(Oi)),de(Oi,R.FORBID_CONTENTS,Fe)),er(R,"ADD_FORBID_CONTENTS")&&qn(R.ADD_FORBID_CONTENTS)&&(Oi===Dh&&(Oi=Br(Oi)),de(Oi,R.ADD_FORBID_CONTENTS,Fe)),ar&&(bt["#text"]=!0),ai&&de(bt,["html","head","body"]),bt.table&&(de(bt,["tbody"]),delete nr.tbody),R.TRUSTED_TYPES_POLICY){if(typeof R.TRUSTED_TYPES_POLICY.createHTML!="function")throw da('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof R.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw da('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const Tt=E;E=R.TRUSTED_TYPES_POLICY;try{N=K("")}catch(Dt){throw E=Tt,Dt}}else R.TRUSTED_TYPES_POLICY===null?(E=void 0,N=""):(E===void 0&&(E=j()),E&&typeof N=="string"&&(N=K("")));hr&&hr(R),Za=R},hm=de({},[...f0,...p0,..._A]),dm=de({},[...m0,...AA]),ov=function(R,rt,Tt){return rt.namespaceURI===Di?R==="svg":rt.namespaceURI===Yl?R==="svg"&&(Tt==="annotation-xml"||zh[Tt]):!!hm[R]},lv=function(R,rt,Tt){return rt.namespaceURI===Di?R==="math":rt.namespaceURI===Vl?R==="math"&&Hh[Tt]:!!dm[R]},uv=function(R,rt,Tt){return rt.namespaceURI===Vl&&!Hh[Tt]||rt.namespaceURI===Yl&&!zh[Tt]?!1:!dm[R]&&(iv[R]||!hm[R])},cv=function(R){let rt=y(R);(!rt||!rt.tagName)&&(rt={namespaceURI:Qa,tagName:"template"});const Tt=Mo(R.tagName),Dt=Mo(rt.tagName);return $h[R.namespaceURI]?R.namespaceURI===Vl?ov(Tt,rt,Dt):R.namespaceURI===Yl?lv(Tt,rt,Dt):R.namespaceURI===Di?uv(Tt,rt,Dt):!!(lo==="application/xhtml+xml"&&$h[R.namespaceURI]):!1},Mn=function(R){es(t.removed,{element:R});try{y(R).removeChild(R)}catch{if(p(R),!y(R))throw da("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},fm=function(R){const rt=g(R);if(rt){const Dt=[];co(rt,ae=>{es(Dt,ae)}),co(Dt,ae=>{try{p(ae)}catch{}})}const Tt=w(R);if(Tt)for(let Dt=Tt.length-1;Dt>=0;--Dt){const ae=Tt[Dt],pe=ae&&ae.name;if(typeof pe=="string")try{R.removeAttribute(pe)}catch{}}},ua=function(R,rt){try{es(t.removed,{attribute:rt.getAttributeNode(R),from:rt})}catch{es(t.removed,{attribute:null,from:rt})}if(rt.removeAttribute(R),R==="is")if(he||pr)try{Mn(rt)}catch{}else try{rt.setAttribute(R,"")}catch{}},hv=function(R){const rt=w(R);if(rt)for(let Tt=rt.length-1;Tt>=0;--Tt){const Dt=rt[Tt],ae=Dt&&Dt.name;if(!(typeof ae!="string"||It[Fe(ae)]))try{R.removeAttribute(ae)}catch{}}},dv=function(R){const rt=[R];for(;rt.length>0;){const Tt=rt.pop();(_?_(Tt):Tt.nodeType)===Ri.element&&hv(Tt);const ae=g(Tt);if(ae)for(let pe=ae.length-1;pe>=0;--pe)rt.push(ae[pe])}},pm=function(R){let rt=null,Tt=null;if(re)R="<remove></remove>"+R;else{const pe=Mg(R,/^[\r\n\t ]+/);Tt=pe&&pe[0]}lo==="application/xhtml+xml"&&Qa===Di&&(R='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+R+"</body></html>");const Dt=E?K(R):R;if(Qa===Di)try{rt=new c().parseFromString(Dt,lo)}catch{}if(!rt||!rt.documentElement){rt=$.createDocument(Qa,"template",null);try{rt.documentElement.innerHTML=Ph?N:Dt}catch{}}const ae=rt.body||rt.documentElement;return R&&Tt&&ae.insertBefore(r.createTextNode(Tt),ae.childNodes[0]||null),Qa===Di?it.call(rt,ai?"html":"body")[0]:ai?rt.documentElement:ae},mm=function(R){return V.call(R.ownerDocument||R,R,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Gl=function(R){return R=ho(R,Ct," "),R=ho(R,O," "),R=ho(R,St," "),R},Uh=function(R){var rt;R.normalize();const Tt=V.call(R.ownerDocument||R,R,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null);let Dt=Tt.nextNode();for(;Dt;)Dt.data=Gl(Dt.data),Dt=Tt.nextNode();const ae=(rt=R.querySelectorAll)===null||rt===void 0?void 0:rt.call(R,"template");ae&&co(ae,pe=>{Ja(pe.content)&&Uh(pe.content)})},Xl=function(R){const rt=A?A(R):null;return typeof rt!="string"||Fe(rt)!=="form"?!1:typeof R.nodeName!="string"||typeof R.textContent!="string"||typeof R.removeChild!="function"||R.attributes!==w(R)||typeof R.removeAttribute!="function"||typeof R.setAttribute!="function"||typeof R.namespaceURI!="string"||typeof R.insertBefore!="function"||typeof R.hasChildNodes!="function"||R.nodeType!==_(R)||R.childNodes!==g(R)},Ja=function(R){if(!_||typeof R!="object"||R===null)return!1;try{return _(R)===Ri.documentFragment}catch{return!1}},uo=function(R){if(!_||typeof R!="object"||R===null)return!1;try{return typeof _(R)=="number"}catch{return!1}};function cn(wt,R,rt){wt.length!==0&&co(wt,Tt=>{Tt.call(t,R,rt,Za)})}const fv=function(R,rt){return!!(Ni&&R.hasChildNodes()&&!uo(R.firstElementChild)&&or(Hg,R.textContent)&&or(Hg,R.innerHTML)||Ni&&R.namespaceURI===Di&&rt==="style"&&uo(R.firstElementChild)||R.nodeType===Ri.processingInstruction||Ni&&R.nodeType===Ri.comment&&or(PA,R.data))},pv=function(R,rt){if(!nr[rt]&&ym(rt)&&(vt.tagNameCheck instanceof RegExp&&or(vt.tagNameCheck,rt)||vt.tagNameCheck instanceof Function&&vt.tagNameCheck(rt)))return!1;if(ar&&!Oi[rt]){const Tt=y(R),Dt=g(R);if(Dt&&Tt){const ae=Dt.length;for(let pe=ae-1;pe>=0;--pe){const Je=Fi?Dt[pe]:d(Dt[pe],!0);Tt.insertBefore(Je,m(R))}}}return Mn(R),!0},gm=function(R){if(cn(lt.beforeSanitizeElements,R,null),Xl(R))return Mn(R),!0;const rt=Fe(A?A(R):R.nodeName);if(cn(lt.uponSanitizeElement,R,{tagName:rt,allowedTags:bt}),fv(R,rt))return Mn(R),!0;if(nr[rt]||!(Ht.tagCheck instanceof Function&&Ht.tagCheck(rt))&&!bt[rt])return pv(R,rt);if((_?_(R):R.nodeType)===Ri.element&&!cv(R)||(rt==="noscript"||rt==="noembed"||rt==="noframes")&&or($A,R.innerHTML))return Mn(R),!0;if($r&&R.nodeType===Ri.text){const Dt=Gl(R.textContent);R.textContent!==Dt&&(es(t.removed,{element:R.cloneNode()}),R.textContent=Dt)}return cn(lt.afterSanitizeElements,R,null),!1},bm=function(R,rt,Tt){if(Mi[rt]||oi&&(rt==="id"||rt==="name")&&(Tt in r||Tt in sv))return!1;const Dt=It[rt]||Ht.attributeCheck instanceof Function&&Ht.attributeCheck(rt,R);if(!(Le&&or(_t,rt))){if(!(ge&&or(Ft,rt))){if(Dt){if(!Rh[rt]){if(!or(yt,ho(Tt,Zt,""))){if(!((rt==="src"||rt==="xlink:href"||rt==="href")&&R!=="script"&&Ng(Tt,"data:")===0&&am[R])){if(!(Sr&&!or(zt,ho(Tt,Zt,"")))){if(Tt)return!1}}}}}else if(!(ym(R)&&(vt.tagNameCheck instanceof RegExp&&or(vt.tagNameCheck,R)||vt.tagNameCheck instanceof Function&&vt.tagNameCheck(R))&&(vt.attributeNameCheck instanceof RegExp&&or(vt.attributeNameCheck,rt)||vt.attributeNameCheck instanceof Function&&vt.attributeNameCheck(rt,R))||rt==="is"&&vt.allowCustomizedBuiltInElements&&(vt.tagNameCheck instanceof RegExp&&or(vt.tagNameCheck,Tt)||vt.tagNameCheck instanceof Function&&vt.tagNameCheck(Tt))))return!1}}return!0},mv=de({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ym=function(R){return!mv[Mo(R)]&&or(Vt,R)},gv=function(R,rt,Tt,Dt){if(E&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!Tt)switch(h.getAttributeType(R,rt)){case"TrustedHTML":return K(Dt);case"TrustedScriptURL":return J(Dt)}return Dt},bv=function(R,rt,Tt,Dt){try{Tt?R.setAttributeNS(Tt,rt,Dt):R.setAttribute(rt,Dt),Xl(R)?Mn(R):Ig(t.removed)}catch{ua(rt,R)}},xm=function(R){cn(lt.beforeSanitizeAttributes,R,null);const rt=R.attributes;if(!rt||Xl(R))return;const Tt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:It,forceKeepAttr:void 0};let Dt=rt.length;const ae=Fe(R.nodeName);for(;Dt--;){const pe=rt[Dt],Je=pe.name,ze=pe.namespaceURI,li=pe.value,gi=Fe(Je),jh=li;let Er=Je==="value"?jh:CA(jh);if(Tt.attrName=gi,Tt.attrValue=Er,Tt.keepAttr=!0,Tt.forceKeepAttr=void 0,cn(lt.uponSanitizeAttribute,R,Tt),Er=Tt.attrValue,Ln&&(gi==="id"||gi==="name")&&Ng(Er,In)!==0&&(ua(Je,R),Er=In+Er),Ni&&or(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Er)){ua(Je,R);continue}if(gi==="attributename"&&Mg(Er,"href")){ua(Je,R);continue}if(!Tt.forceKeepAttr){if(!Tt.keepAttr){ua(Je,R);continue}if(!ni&&or(zA,Er)){ua(Je,R);continue}if($r&&(Er=Gl(Er)),!bm(ae,gi,Er)){ua(Je,R);continue}Er=gv(ae,gi,ze,Er),Er!==jh&&bv(R,Je,ze,Er)}}cn(lt.afterSanitizeAttributes,R,null)},Kl=function(R){let rt=null;const Tt=mm(R);for(cn(lt.beforeSanitizeShadowDOM,R,null);rt=Tt.nextNode();)if(cn(lt.uponSanitizeShadowNode,rt,null),gm(rt),xm(rt),Ja(rt.content)&&Kl(rt.content),(_?_(rt):rt.nodeType)===Ri.element){const ae=k(rt);Ja(ae)&&(Wh(ae),Kl(ae))}cn(lt.afterSanitizeShadowDOM,R,null)},Wh=function(R){const rt=[{node:R,shadow:null}];for(;rt.length>0;){const Tt=rt.pop();if(Tt.shadow){Kl(Tt.shadow);continue}const Dt=Tt.node,pe=(_?_(Dt):Dt.nodeType)===Ri.element,Je=g(Dt);if(Je)for(let ze=Je.length-1;ze>=0;--ze)rt.push({node:Je[ze],shadow:null});if(pe){const ze=A?A(Dt):null;if(typeof ze=="string"&&Fe(ze)==="template"){const li=Dt.content;Ja(li)&&rt.push({node:li,shadow:null})}}if(pe){const ze=k(Dt);Ja(ze)&&rt.push({node:null,shadow:ze},{node:ze,shadow:null})}}};return t.sanitize=function(wt){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},rt=null,Tt=null,Dt=null,ae=null;if(Ph=!wt,Ph&&(wt="<!-->"),typeof wt!="string"&&!uo(wt)&&(wt=SA(wt),typeof wt!="string"))throw da("dirty is not a string, aborting");if(!t.isSupported)return wt;ot?(bt=kt,It=qt):qh(R),(lt.uponSanitizeElement.length>0||lt.uponSanitizeAttribute.length>0)&&(bt=Br(bt)),lt.uponSanitizeAttribute.length>0&&(It=Br(It)),t.removed=[];const pe=Fi&&typeof wt!="string"&&uo(wt);if(pe){const li=A?A(wt):wt.nodeName;if(typeof li=="string"){const gi=Fe(li);if(!bt[gi]||nr[gi])throw da("root node is forbidden and cannot be sanitized in-place")}if(Xl(wt))throw da("root node is clobbered and cannot be sanitized in-place");try{Wh(wt)}catch(gi){throw fm(wt),gi}}else if(uo(wt))rt=pm("<!---->"),Tt=rt.ownerDocument.importNode(wt,!0),Tt.nodeType===Ri.element&&Tt.nodeName==="BODY"||Tt.nodeName==="HTML"?rt=Tt:rt.appendChild(Tt),Wh(Tt);else{if(!he&&!$r&&!ai&&wt.indexOf("<")===-1)return E&&si?K(wt):wt;if(rt=pm(wt),!rt)return he?null:si?N:""}rt&&re&&Mn(rt.firstChild);const Je=mm(pe?wt:rt);try{for(;Dt=Je.nextNode();)gm(Dt),xm(Dt),Ja(Dt.content)&&Kl(Dt.content)}catch(li){throw pe&&fm(wt),li}if(pe)return co(t.removed,li=>{li.element&&dv(li.element)}),$r&&Uh(wt),wt;if(he){if($r&&Uh(rt),pr)for(ae=X.call(rt.ownerDocument);rt.firstChild;)ae.appendChild(rt.firstChild);else ae=rt;return(It.shadowroot||It.shadowrootmode)&&(ae=L.call(i,ae,!0)),ae}let ze=ai?rt.outerHTML:rt.innerHTML;return ai&&bt["!doctype"]&&rt.ownerDocument&&rt.ownerDocument.doctype&&rt.ownerDocument.doctype.name&&or(DA,rt.ownerDocument.doctype.name)&&(ze="<!DOCTYPE "+rt.ownerDocument.doctype.name+`>
|
|
271
|
+
`+ze),$r&&(ze=Gl(ze)),E&&si?K(ze):ze},t.setConfig=function(){let wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};qh(wt),ot=!0,kt=bt,qt=It},t.clearConfig=function(){Za=null,ot=!1,kt=null,qt=null,E=F,N=""},t.isValidAttribute=function(wt,R,rt){Za||qh({});const Tt=Fe(wt),Dt=Fe(R);return bm(Tt,Dt,rt)},t.addHook=function(wt,R){typeof R=="function"&&er(lt,wt)&&es(lt[wt],R)},t.removeHook=function(wt,R){if(er(lt,wt)){if(R!==void 0){const rt=yA(lt[wt],R);return rt===-1?void 0:xA(lt[wt],rt,1)[0]}return Ig(lt[wt])}},t.removeHooks=function(wt){er(lt,wt)&&(lt[wt]=[])},t.removeAllHooks=function(){lt=qg()},t}var Rs=Y3(),Md=C((e,t,{depth:r=2,clobber:i=!1}={})=>{const n={depth:r,clobber:i};return Array.isArray(t)&&!Array.isArray(e)?(t.forEach(a=>Md(e,a,n)),e):Array.isArray(t)&&Array.isArray(e)?(t.forEach(a=>{e.includes(a)||e.push(a)}),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(a=>{typeof t[a]=="object"&&t[a]!==null&&(e[a]===void 0||typeof e[a]=="object")?(e[a]===void 0&&(e[a]=Array.isArray(t[a])?[]:{}),e[a]=Md(e[a],t[a],{depth:r-1,clobber:i})):(i||typeof e[a]!="object"&&typeof t[a]!="object")&&(e[a]=t[a])}),e)},"assignWithDepth"),Xe=Md,rn="#ffffff",nn="#f2f2f2",Xt=C((e,t)=>t?v(e,{s:-40,l:10}):v(e,{s:-40,l:-10}),"mkBorder"),xs,UA=(xs=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,a,s,o,l,u,c,h,f,d,p,m,g,y,k,w,_,A,E,N,F,Y,I,z,K,J,j,P,$,V,X,it,L,lt,Ct,O,St,_t,Ft,zt,Zt,Vt,yt,bt,jt,It,et;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||Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Q(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Q(this.tertiaryColor),this.lineColor=this.lineColor||Q(this.background),this.arrowheadColor=this.arrowheadColor||Q(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?at(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||at(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Q(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||nt(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||at(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||at(this.mainBkg,10)):(this.rowOdd=this.rowOdd||nt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||nt(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 vt=0;vt<this.THEME_COLOR_LIMIT;vt++)this["cScale"+vt]=at(this["cScale"+vt],75);else for(let vt=0;vt<this.THEME_COLOR_LIMIT;vt++)this["cScale"+vt]=at(this["cScale"+vt],25);for(let vt=0;vt<this.THEME_COLOR_LIMIT;vt++)this["cScaleInv"+vt]=this["cScaleInv"+vt]||Q(this["cScale"+vt]);for(let vt=0;vt<this.THEME_COLOR_LIMIT;vt++)this.darkMode?this["cScalePeer"+vt]=this["cScalePeer"+vt]||nt(this["cScale"+vt],10):this["cScalePeer"+vt]=this["cScalePeer"+vt]||at(this["cScale"+vt],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let vt=0;vt<this.THEME_COLOR_LIMIT;vt++)this["cScaleLabel"+vt]=this["cScaleLabel"+vt]||this.scaleLabelColor;const t=this.darkMode?-4:-1;for(let vt=0;vt<5;vt++)this["surface"+vt]=this["surface"+vt]||v(this.mainBkg,{h:180,s:-15,l:t*(5+vt*3)}),this["surfacePeer"+vt]=this["surfacePeer"+vt]||v(this.mainBkg,{h:180,s:-15,l:t*(8+vt*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.cynefin={domainFontSize:((r=this.cynefin)==null?void 0:r.domainFontSize)||16,itemFontSize:((i=this.cynefin)==null?void 0:i.itemFontSize)||12,boundaryColor:((n=this.cynefin)==null?void 0:n.boundaryColor)||this.lineColor,boundaryWidth:((a=this.cynefin)==null?void 0:a.boundaryWidth)||2,cliffColor:((s=this.cynefin)==null?void 0:s.cliffColor)||"#8B0000",cliffWidth:((o=this.cynefin)==null?void 0:o.cliffWidth)||4,arrowColor:((l=this.cynefin)==null?void 0:l.arrowColor)||this.lineColor,arrowWidth:((u=this.cynefin)==null?void 0:u.arrowWidth)||2,complexBg:((c=this.cynefin)==null?void 0:c.complexBg)||"#E8F5E9",complicatedBg:((h=this.cynefin)==null?void 0:h.complicatedBg)||"#E3F2FD",chaoticBg:((f=this.cynefin)==null?void 0:f.chaoticBg)||"#FBE9E7",clearBg:((d=this.cynefin)==null?void 0:d.clearBg)||"#FFF8E1",confusionBg:((p=this.cynefin)==null?void 0:p.confusionBg)||"#F3E5F5",textColor:((m=this.cynefin)==null?void 0:m.textColor)||this.textColor,labelColor:((g=this.cynefin)==null?void 0:g.labelColor)||this.primaryTextColor},this.radar={axisColor:((y=this.radar)==null?void 0:y.axisColor)||this.lineColor,axisStrokeWidth:((k=this.radar)==null?void 0:k.axisStrokeWidth)||2,axisLabelFontSize:((w=this.radar)==null?void 0:w.axisLabelFontSize)||12,curveOpacity:((_=this.radar)==null?void 0:_.curveOpacity)||.5,curveStrokeWidth:((A=this.radar)==null?void 0:A.curveStrokeWidth)||2,graticuleColor:((E=this.radar)==null?void 0:E.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((N=this.radar)==null?void 0:N.graticuleStrokeWidth)||1,graticuleOpacity:((F=this.radar)==null?void 0:F.graticuleOpacity)||.3,legendBoxSize:((Y=this.radar)==null?void 0:Y.legendBoxSize)||12,legendFontSize:((I=this.radar)==null?void 0:I.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((z=this.wardley)==null?void 0:z.backgroundColor)||this.background,axisColor:((K=this.wardley)==null?void 0:K.axisColor)||this.lineColor,axisTextColor:((J=this.wardley)==null?void 0:J.axisTextColor)||this.primaryTextColor,gridColor:((j=this.wardley)==null?void 0:j.gridColor)||this.gridColor,componentFill:((P=this.wardley)==null?void 0:P.componentFill)||this.background,componentStroke:(($=this.wardley)==null?void 0:$.componentStroke)||this.lineColor,componentLabelColor:((V=this.wardley)==null?void 0:V.componentLabelColor)||this.primaryTextColor,linkStroke:((X=this.wardley)==null?void 0:X.linkStroke)||this.lineColor,evolutionStroke:((it=this.wardley)==null?void 0:it.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((L=this.wardley)==null?void 0:L.annotationStroke)||this.lineColor,annotationTextColor:((lt=this.wardley)==null?void 0:lt.annotationTextColor)||this.primaryTextColor,annotationFill:((Ct=this.wardley)==null?void 0:Ct.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||Ai(this.quadrant1Fill)?nt(this.quadrant1Fill):at(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:((St=this.xyChart)==null?void 0:St.titleColor)||this.primaryTextColor,dataLabelColor:((_t=this.xyChart)==null?void 0:_t.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((Ft=this.xyChart)==null?void 0:Ft.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((zt=this.xyChart)==null?void 0:zt.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((Zt=this.xyChart)==null?void 0:Zt.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((Vt=this.xyChart)==null?void 0:Vt.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((yt=this.xyChart)==null?void 0:yt.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((bt=this.xyChart)==null?void 0:bt.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((jt=this.xyChart)==null?void 0:jt.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((It=this.xyChart)==null?void 0:It.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((et=this.xyChart)==null?void 0:et.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?at(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=nt(this.git0,25),this.git1=nt(this.git1,25),this.git2=nt(this.git2,25),this.git3=nt(this.git3,25),this.git4=nt(this.git4,25),this.git5=nt(this.git5,25),this.git6=nt(this.git6,25),this.git7=nt(this.git7,25)):(this.git0=at(this.git0,25),this.git1=at(this.git1,25),this.git2=at(this.git2,25),this.git3=at(this.git3,25),this.git4=at(this.git4,25),this.git5=at(this.git5,25),this.git6=at(this.git6,25),this.git7=at(this.git7,25)),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(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||rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nn,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]})}},C(xs,"Theme"),xs),WA=C(e=>{const t=new UA;return t.calculate(e),t},"getThemeVariables"),Cs,jA=(Cs=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=nt(this.primaryColor,16),this.tertiaryColor=v(this.primaryColor,{h:-160}),this.primaryBorderColor=Q(this.background),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Q(this.primaryColor),this.secondaryTextColor=Q(this.secondaryColor),this.tertiaryTextColor=Q(this.tertiaryColor),this.lineColor=Q(this.background),this.textColor=Q(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=nt(Q("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=Vn(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=at("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=at(this.sectionBkgColor,10),this.taskBorderColor=Vn(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=Vn(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||nt(this.mainBkg,5)||"#ffffff",this.rowEven=this.rowEven||at(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,a,s,o,l,u,c,h,f,d,p,m,g,y,k,w,_,A,E,N,F,Y,I,z,K,J,j,P,$,V,X,it,L,lt,Ct,O,St,_t,Ft,zt,Zt,Vt,yt,bt,jt,It;this.secondBkg=nt(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=nt(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.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.background,this.taskBkgColor=nt(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=Q(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 et=0;et<this.THEME_COLOR_LIMIT;et++)this["cScaleInv"+et]=this["cScaleInv"+et]||Q(this["cScale"+et]);for(let et=0;et<this.THEME_COLOR_LIMIT;et++)this["cScalePeer"+et]=this["cScalePeer"+et]||nt(this["cScale"+et],10);for(let et=0;et<5;et++)this["surface"+et]=this["surface"+et]||v(this.mainBkg,{h:30,s:-30,l:-(-10+et*4)}),this["surfacePeer"+et]=this["surfacePeer"+et]||v(this.mainBkg,{h:30,s:-30,l:-(-7+et*4)});this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor);for(let et=0;et<this.THEME_COLOR_LIMIT;et++)this["cScaleLabel"+et]=this["cScaleLabel"+et]||this.scaleLabelColor;for(let et=0;et<this.THEME_COLOR_LIMIT;et++)this["pie"+et]=this["cScale"+et];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 et=0;et<8;et++)this["venn"+(et+1)]=this["venn"+(et+1)]??nt(this["cScale"+et],30);this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((n=this.cynefin)==null?void 0:n.boundaryWidth)||2,cliffColor:((a=this.cynefin)==null?void 0:a.cliffColor)||"#FF6B6B",cliffWidth:((s=this.cynefin)==null?void 0:s.cliffWidth)||4,arrowColor:((o=this.cynefin)==null?void 0:o.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((u=this.cynefin)==null?void 0:u.complexBg)||"#1B5E20",complicatedBg:((c=this.cynefin)==null?void 0:c.complicatedBg)||"#0D47A1",chaoticBg:((h=this.cynefin)==null?void 0:h.chaoticBg)||"#BF360C",clearBg:((f=this.cynefin)==null?void 0:f.clearBg)||"#F57F17",confusionBg:((d=this.cynefin)==null?void 0:d.confusionBg)||"#4A148C",textColor:((p=this.cynefin)==null?void 0:p.textColor)||this.textColor,labelColor:((m=this.cynefin)==null?void 0:m.labelColor)||this.primaryTextColor},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||Ai(this.quadrant1Fill)?nt(this.quadrant1Fill):at(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:((g=this.xyChart)==null?void 0:g.backgroundColor)||this.background,titleColor:((y=this.xyChart)==null?void 0:y.titleColor)||this.primaryTextColor,dataLabelColor:((k=this.xyChart)==null?void 0:k.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((w=this.xyChart)==null?void 0:w.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((_=this.xyChart)==null?void 0:_.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((A=this.xyChart)==null?void 0:A.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((E=this.xyChart)==null?void 0:E.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((N=this.xyChart)==null?void 0:N.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((F=this.xyChart)==null?void 0:F.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((Y=this.xyChart)==null?void 0:Y.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((I=this.xyChart)==null?void 0:I.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((z=this.xyChart)==null?void 0:z.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:((K=this.radar)==null?void 0:K.axisColor)||this.lineColor,axisStrokeWidth:((J=this.radar)==null?void 0:J.axisStrokeWidth)||2,axisLabelFontSize:((j=this.radar)==null?void 0:j.axisLabelFontSize)||12,curveOpacity:((P=this.radar)==null?void 0:P.curveOpacity)||.5,curveStrokeWidth:(($=this.radar)==null?void 0:$.curveStrokeWidth)||2,graticuleColor:((V=this.radar)==null?void 0:V.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((X=this.radar)==null?void 0:X.graticuleStrokeWidth)||1,graticuleOpacity:((it=this.radar)==null?void 0:it.graticuleOpacity)||.3,legendBoxSize:((L=this.radar)==null?void 0:L.legendBoxSize)||12,legendFontSize:((lt=this.radar)==null?void 0:lt.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#ff6b6b",this.wardley={backgroundColor:((Ct=this.wardley)==null?void 0:Ct.backgroundColor)||this.background,axisColor:((O=this.wardley)==null?void 0:O.axisColor)||this.lineColor,axisTextColor:((St=this.wardley)==null?void 0:St.axisTextColor)||this.primaryTextColor,gridColor:((_t=this.wardley)==null?void 0:_t.gridColor)||this.gridColor,componentFill:((Ft=this.wardley)==null?void 0:Ft.componentFill)||this.mainBkg,componentStroke:((zt=this.wardley)==null?void 0:zt.componentStroke)||this.lineColor,componentLabelColor:((Zt=this.wardley)==null?void 0:Zt.componentLabelColor)||this.primaryTextColor,linkStroke:((Vt=this.wardley)==null?void 0:Vt.linkStroke)||this.lineColor,evolutionStroke:((yt=this.wardley)==null?void 0:yt.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((bt=this.wardley)==null?void 0:bt.annotationStroke)||this.lineColor,annotationTextColor:((jt=this.wardley)==null?void 0:jt.annotationTextColor)||this.primaryTextColor,annotationFill:((It=this.wardley)==null?void 0:It.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?at(this.secondaryColor,30):this.secondaryColor),this.relationLabelColor=this.relationLabelColor||this.actorTextColor,this.git0=nt(this.secondaryColor,20),this.git1=nt(this.pie2||this.secondaryColor,20),this.git2=nt(this.pie3||this.tertiaryColor,20),this.git3=nt(this.pie4||v(this.primaryColor,{h:-30}),20),this.git4=nt(this.pie5||v(this.primaryColor,{h:-60}),20),this.git5=nt(this.pie6||v(this.primaryColor,{h:-90}),10),this.git6=nt(this.pie7||v(this.primaryColor,{h:60}),10),this.git7=nt(this.pie8||v(this.primaryColor,{h:120}),20),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Q(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Q(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||nt("#5a3d5c",10),this.emProcessorStroke=this.emProcessorStroke||"#8a6d8c",this.emReadModelFill=this.emReadModelFill||nt("#3d5a2d",10),this.emReadModelStroke=this.emReadModelStroke||"#6d8c5c",this.emCommandFill=this.emCommandFill||nt("#2d3d5a",10),this.emCommandStroke=this.emCommandStroke||"#5c6d8c",this.emEventFill=this.emEventFill||nt("#5a452d",10),this.emEventStroke=this.emEventStroke||"#8c755c",this.emSwimlaneBackgroundOdd=this.emSwimlaneBackgroundOdd||nt(this.background,5),this.emSwimlaneBackgroundStroke=this.emSwimlaneBackgroundStroke||nt(this.background,12),this.emArrowhead=this.emArrowhead||this.lineColor,this.emRelationStroke=this.emRelationStroke||this.lineColor,this.attributeBackgroundColorOdd=this.attributeBackgroundColorOdd||nt(this.background,12),this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nt(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]})}},C(Cs,"Theme"),Cs),YA=C(e=>{const t=new jA;return t.calculate(e),t},"getThemeVariables"),ks,VA=(ks=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=Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Q(this.primaryColor),this.secondaryTextColor=Q(this.secondaryColor),this.tertiaryTextColor=Q(this.tertiaryColor),this.lineColor=Q(this.background),this.textColor=Q(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.primaryBorderColor=Xt(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=Vn(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,a,s,o,l,u,c,h,f,d,p,m,g,y,k,w,_,A,E,N,F,Y,I,z,K,J,j,P,$,V,X,it,L,lt,Ct,O,St,_t,Ft,zt,Zt,Vt,yt,bt,jt,It;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||at(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||at(this.tertiaryColor,40);for(let et=0;et<this.THEME_COLOR_LIMIT;et++)this["cScale"+et]=at(this["cScale"+et],10),this["cScalePeer"+et]=this["cScalePeer"+et]||at(this["cScale"+et],25);for(let et=0;et<this.THEME_COLOR_LIMIT;et++)this["cScaleInv"+et]=this["cScaleInv"+et]||v(this["cScale"+et],{h:180});for(let et=0;et<5;et++)this["surface"+et]=this["surface"+et]||v(this.mainBkg,{h:30,l:-(5+et*5)}),this["surfacePeer"+et]=this["surfacePeer"+et]||v(this.mainBkg,{h:30,l:-(7+et*5)});if(this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor,this.labelTextColor!=="calculated"){this.cScaleLabel0=this.cScaleLabel0||Q(this.labelTextColor),this.cScaleLabel3=this.cScaleLabel3||Q(this.labelTextColor);for(let et=0;et<this.THEME_COLOR_LIMIT;et++)this["cScaleLabel"+et]=this["cScaleLabel"+et]||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.rectBkgColor=this.rectBkgColor||this.tertiaryColor,this.taskTextColor=this.taskTextLightColor,this.taskTextOutsideColor=this.taskTextDarkColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.rowOdd=this.rowOdd||nt(this.primaryColor,75)||"#ffffff",this.rowEven=this.rowEven||nt(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.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((n=this.cynefin)==null?void 0:n.boundaryWidth)||2,cliffColor:((a=this.cynefin)==null?void 0:a.cliffColor)||"#8B0000",cliffWidth:((s=this.cynefin)==null?void 0:s.cliffWidth)||4,arrowColor:((o=this.cynefin)==null?void 0:o.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((u=this.cynefin)==null?void 0:u.complexBg)||"#E8F5E9",complicatedBg:((c=this.cynefin)==null?void 0:c.complicatedBg)||"#E3F2FD",chaoticBg:((h=this.cynefin)==null?void 0:h.chaoticBg)||"#FBE9E7",clearBg:((f=this.cynefin)==null?void 0:f.clearBg)||"#FFF8E1",confusionBg:((d=this.cynefin)==null?void 0:d.confusionBg)||"#F3E5F5",textColor:((p=this.cynefin)==null?void 0:p.textColor)||this.textColor,labelColor:((m=this.cynefin)==null?void 0:m.labelColor)||this.primaryTextColor},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||Ai(this.quadrant1Fill)?nt(this.quadrant1Fill):at(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:((g=this.radar)==null?void 0:g.axisColor)||this.lineColor,axisStrokeWidth:((y=this.radar)==null?void 0:y.axisStrokeWidth)||2,axisLabelFontSize:((k=this.radar)==null?void 0:k.axisLabelFontSize)||12,curveOpacity:((w=this.radar)==null?void 0:w.curveOpacity)||.5,curveStrokeWidth:((_=this.radar)==null?void 0:_.curveStrokeWidth)||2,graticuleColor:((A=this.radar)==null?void 0:A.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((E=this.radar)==null?void 0:E.graticuleStrokeWidth)||1,graticuleOpacity:((N=this.radar)==null?void 0:N.graticuleOpacity)||.3,legendBoxSize:((F=this.radar)==null?void 0:F.legendBoxSize)||12,legendFontSize:((Y=this.radar)==null?void 0:Y.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((I=this.wardley)==null?void 0:I.backgroundColor)||this.background,axisColor:((z=this.wardley)==null?void 0:z.axisColor)||this.lineColor,axisTextColor:((K=this.wardley)==null?void 0:K.axisTextColor)||this.primaryTextColor,gridColor:((J=this.wardley)==null?void 0:J.gridColor)||this.gridColor,componentFill:((j=this.wardley)==null?void 0:j.componentFill)||this.background,componentStroke:((P=this.wardley)==null?void 0:P.componentStroke)||this.lineColor,componentLabelColor:(($=this.wardley)==null?void 0:$.componentLabelColor)||this.primaryTextColor,linkStroke:((V=this.wardley)==null?void 0:V.linkStroke)||this.lineColor,evolutionStroke:((X=this.wardley)==null?void 0:X.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((it=this.wardley)==null?void 0:it.annotationStroke)||this.lineColor,annotationTextColor:((L=this.wardley)==null?void 0:L.annotationTextColor)||this.primaryTextColor,annotationFill:((lt=this.wardley)==null?void 0:lt.annotationFill)||this.background},this.xyChart={backgroundColor:((Ct=this.xyChart)==null?void 0:Ct.backgroundColor)||this.background,titleColor:((O=this.xyChart)==null?void 0:O.titleColor)||this.primaryTextColor,dataLabelColor:((St=this.xyChart)==null?void 0:St.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((_t=this.xyChart)==null?void 0:_t.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((Ft=this.xyChart)==null?void 0:Ft.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((zt=this.xyChart)==null?void 0:zt.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((Zt=this.xyChart)==null?void 0:Zt.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((Vt=this.xyChart)==null?void 0:Vt.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((yt=this.xyChart)==null?void 0:yt.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((bt=this.xyChart)==null?void 0:bt.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((jt=this.xyChart)==null?void 0:jt.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((It=this.xyChart)==null?void 0:It.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=nt(this.git0,25),this.git1=nt(this.git1,25),this.git2=nt(this.git2,25),this.git3=nt(this.git3,25),this.git4=nt(this.git4,25),this.git5=nt(this.git5,25),this.git6=nt(this.git6,25),this.git7=nt(this.git7,25)):(this.git0=at(this.git0,25),this.git1=at(this.git1,25),this.git2=at(this.git2,25),this.git3=at(this.git3,25),this.git4=at(this.git4,25),this.git5=at(this.git5,25),this.git6=at(this.git6,25),this.git7=at(this.git7,25)),this.gitInv0=this.gitInv0||at(Q(this.git0),25),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Q(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Q(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||rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nn}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]})}},C(ks,"Theme"),ks),GA=C(e=>{const t=new VA;return t.calculate(e),t},"getThemeVariables"),Ts,XA=(Ts=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=nt("#cde498",10),this.primaryBorderColor=Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Q(this.primaryColor),this.secondaryTextColor=Q(this.secondaryColor),this.tertiaryTextColor=Q(this.primaryColor),this.lineColor=Q(this.background),this.textColor=Q(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,a,s,o,l,u,c,h,f,d,p,m,g,y,k,w,_,A,E,N,F,Y,I,z,K,J,j,P,$,V,X,it,L,lt,Ct,O,St,_t,Ft,zt,Zt,Vt,yt,bt,jt,It;this.actorBorder=at(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.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||at(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||at(this.tertiaryColor,40);for(let et=0;et<this.THEME_COLOR_LIMIT;et++)this["cScale"+et]=at(this["cScale"+et],10),this["cScalePeer"+et]=this["cScalePeer"+et]||at(this["cScale"+et],25);for(let et=0;et<this.THEME_COLOR_LIMIT;et++)this["cScaleInv"+et]=this["cScaleInv"+et]||v(this["cScale"+et],{h:180});this.scaleLabelColor=this.scaleLabelColor!=="calculated"&&this.scaleLabelColor?this.scaleLabelColor:this.labelTextColor;for(let et=0;et<this.THEME_COLOR_LIMIT;et++)this["cScaleLabel"+et]=this["cScaleLabel"+et]||this.scaleLabelColor;for(let et=0;et<5;et++)this["surface"+et]=this["surface"+et]||v(this.mainBkg,{h:30,s:-30,l:-(5+et*5)}),this["surfacePeer"+et]=this["surfacePeer"+et]||v(this.mainBkg,{h:30,s:-30,l:-(8+et*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||nt(this.mainBkg,75)||"#ffffff",this.rowEven=this.rowEven||nt(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.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((n=this.cynefin)==null?void 0:n.boundaryWidth)||2,cliffColor:((a=this.cynefin)==null?void 0:a.cliffColor)||"#8B4513",cliffWidth:((s=this.cynefin)==null?void 0:s.cliffWidth)||4,arrowColor:((o=this.cynefin)==null?void 0:o.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((u=this.cynefin)==null?void 0:u.complexBg)||"#C8E6C9",complicatedBg:((c=this.cynefin)==null?void 0:c.complicatedBg)||"#DCEDC8",chaoticBg:((h=this.cynefin)==null?void 0:h.chaoticBg)||"#FFE0B2",clearBg:((f=this.cynefin)==null?void 0:f.clearBg)||"#FFF9C4",confusionBg:((d=this.cynefin)==null?void 0:d.confusionBg)||"#D7CCC8",textColor:((p=this.cynefin)==null?void 0:p.textColor)||this.textColor,labelColor:((m=this.cynefin)==null?void 0:m.labelColor)||this.primaryTextColor},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||Ai(this.quadrant1Fill)?nt(this.quadrant1Fill):at(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:((g=this.radar)==null?void 0:g.axisColor)||this.lineColor,axisStrokeWidth:((y=this.radar)==null?void 0:y.axisStrokeWidth)||2,axisLabelFontSize:((k=this.radar)==null?void 0:k.axisLabelFontSize)||12,curveOpacity:((w=this.radar)==null?void 0:w.curveOpacity)||.5,curveStrokeWidth:((_=this.radar)==null?void 0:_.curveStrokeWidth)||2,graticuleColor:((A=this.radar)==null?void 0:A.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((E=this.radar)==null?void 0:E.graticuleStrokeWidth)||1,graticuleOpacity:((N=this.radar)==null?void 0:N.graticuleOpacity)||.3,legendBoxSize:((F=this.radar)==null?void 0:F.legendBoxSize)||12,legendFontSize:((Y=this.radar)==null?void 0:Y.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((I=this.wardley)==null?void 0:I.backgroundColor)||this.background,axisColor:((z=this.wardley)==null?void 0:z.axisColor)||this.lineColor,axisTextColor:((K=this.wardley)==null?void 0:K.axisTextColor)||this.primaryTextColor,gridColor:((J=this.wardley)==null?void 0:J.gridColor)||this.gridColor,componentFill:((j=this.wardley)==null?void 0:j.componentFill)||this.background,componentStroke:((P=this.wardley)==null?void 0:P.componentStroke)||this.lineColor,componentLabelColor:(($=this.wardley)==null?void 0:$.componentLabelColor)||this.primaryTextColor,linkStroke:((V=this.wardley)==null?void 0:V.linkStroke)||this.lineColor,evolutionStroke:((X=this.wardley)==null?void 0:X.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((it=this.wardley)==null?void 0:it.annotationStroke)||this.lineColor,annotationTextColor:((L=this.wardley)==null?void 0:L.annotationTextColor)||this.primaryTextColor,annotationFill:((lt=this.wardley)==null?void 0:lt.annotationFill)||this.background},this.xyChart={backgroundColor:((Ct=this.xyChart)==null?void 0:Ct.backgroundColor)||this.background,titleColor:((O=this.xyChart)==null?void 0:O.titleColor)||this.primaryTextColor,dataLabelColor:((St=this.xyChart)==null?void 0:St.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((_t=this.xyChart)==null?void 0:_t.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((Ft=this.xyChart)==null?void 0:Ft.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((zt=this.xyChart)==null?void 0:zt.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((Zt=this.xyChart)==null?void 0:Zt.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((Vt=this.xyChart)==null?void 0:Vt.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((yt=this.xyChart)==null?void 0:yt.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((bt=this.xyChart)==null?void 0:bt.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((jt=this.xyChart)==null?void 0:jt.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((It=this.xyChart)==null?void 0:It.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=nt(this.git0,25),this.git1=nt(this.git1,25),this.git2=nt(this.git2,25),this.git3=nt(this.git3,25),this.git4=nt(this.git4,25),this.git5=nt(this.git5,25),this.git6=nt(this.git6,25),this.git7=nt(this.git7,25)):(this.git0=at(this.git0,25),this.git1=at(this.git1,25),this.git2=at(this.git2,25),this.git3=at(this.git3,25),this.git4=at(this.git4,25),this.git5=at(this.git5,25),this.git6=at(this.git6,25),this.git7=at(this.git7,25)),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(this.git7),this.gitBranchLabel0=this.gitBranchLabel0||Q(this.labelTextColor),this.gitBranchLabel1=this.gitBranchLabel1||this.labelTextColor,this.gitBranchLabel2=this.gitBranchLabel2||this.labelTextColor,this.gitBranchLabel3=this.gitBranchLabel3||Q(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||rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nn}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]})}},C(Ts,"Theme"),Ts),KA=C(e=>{const t=new XA;return t.calculate(e),t},"getThemeVariables"),ws,QA=(ws=class{constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=nt(this.contrast,55),this.background="#ffffff",this.tertiaryColor=v(this.primaryColor,{h:-160}),this.primaryBorderColor=Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Q(this.primaryColor),this.secondaryTextColor=Q(this.secondaryColor),this.tertiaryTextColor=Q(this.tertiaryColor),this.lineColor=Q(this.background),this.textColor=Q(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||nt(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,a,s,o,l,u,c,h,f,d,p,m,g,y,k,w,_,A,E,N,F,Y,I,z,K,J,j,P,$,V,X,it,L,lt,Ct,O,St,_t,Ft,zt,Zt,Vt,yt,bt,jt,It;this.secondBkg=nt(this.contrast,55),this.border2=this.contrast,this.actorBorder=nt(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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 et=0;et<this.THEME_COLOR_LIMIT;et++)this["cScaleInv"+et]=this["cScaleInv"+et]||Q(this["cScale"+et]);for(let et=0;et<this.THEME_COLOR_LIMIT;et++)this.darkMode?this["cScalePeer"+et]=this["cScalePeer"+et]||nt(this["cScale"+et],10):this["cScalePeer"+et]=this["cScalePeer"+et]||at(this["cScale"+et],10);this.scaleLabelColor=this.scaleLabelColor||(this.darkMode?"black":this.labelTextColor),this.cScaleLabel0=this.cScaleLabel0||this.cScale1,this.cScaleLabel2=this.cScaleLabel2||this.cScale1;for(let et=0;et<this.THEME_COLOR_LIMIT;et++)this["cScaleLabel"+et]=this["cScaleLabel"+et]||this.scaleLabelColor;for(let et=0;et<5;et++)this["surface"+et]=this["surface"+et]||v(this.mainBkg,{l:-(5+et*5)}),this["surfacePeer"+et]=this["surfacePeer"+et]||v(this.mainBkg,{l:-(8+et*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=nt(this.contrast,30),this.sectionBkgColor2=nt(this.contrast,30),this.taskBorderColor=at(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=nt(this.border1,30),this.doneTaskBkgColor=this.done,this.doneTaskBorderColor=this.lineColor,this.critBkgColor=this.critical,this.critBorderColor=at(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 et=0;et<this.THEME_COLOR_LIMIT;et++)this["pie"+et]=this["cScale"+et];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 et=0;et<8;et++)this["venn"+(et+1)]=this["venn"+(et+1)]??this["cScale"+et];this.vennTitleTextColor=this.vennTitleTextColor??this.titleColor,this.vennSetTextColor=this.vennSetTextColor??this.textColor,this.cynefin={domainFontSize:((t=this.cynefin)==null?void 0:t.domainFontSize)||16,itemFontSize:((r=this.cynefin)==null?void 0:r.itemFontSize)||12,boundaryColor:((i=this.cynefin)==null?void 0:i.boundaryColor)||this.lineColor,boundaryWidth:((n=this.cynefin)==null?void 0:n.boundaryWidth)||2,cliffColor:((a=this.cynefin)==null?void 0:a.cliffColor)||"#8B0000",cliffWidth:((s=this.cynefin)==null?void 0:s.cliffWidth)||4,arrowColor:((o=this.cynefin)==null?void 0:o.arrowColor)||this.lineColor,arrowWidth:((l=this.cynefin)==null?void 0:l.arrowWidth)||2,complexBg:((u=this.cynefin)==null?void 0:u.complexBg)||"#E8F5E9",complicatedBg:((c=this.cynefin)==null?void 0:c.complicatedBg)||"#E3F2FD",chaoticBg:((h=this.cynefin)==null?void 0:h.chaoticBg)||"#FBE9E7",clearBg:((f=this.cynefin)==null?void 0:f.clearBg)||"#FFF8E1",confusionBg:((d=this.cynefin)==null?void 0:d.confusionBg)||"#F3E5F5",textColor:((p=this.cynefin)==null?void 0:p.textColor)||this.textColor,labelColor:((m=this.cynefin)==null?void 0:m.labelColor)||this.primaryTextColor},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||Ai(this.quadrant1Fill)?nt(this.quadrant1Fill):at(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:((g=this.xyChart)==null?void 0:g.backgroundColor)||this.background,titleColor:((y=this.xyChart)==null?void 0:y.titleColor)||this.primaryTextColor,dataLabelColor:((k=this.xyChart)==null?void 0:k.dataLabelColor)||this.primaryTextColor,xAxisTitleColor:((w=this.xyChart)==null?void 0:w.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((_=this.xyChart)==null?void 0:_.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((A=this.xyChart)==null?void 0:A.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((E=this.xyChart)==null?void 0:E.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((N=this.xyChart)==null?void 0:N.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((F=this.xyChart)==null?void 0:F.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((Y=this.xyChart)==null?void 0:Y.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((I=this.xyChart)==null?void 0:I.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((z=this.xyChart)==null?void 0:z.plotColorPalette)||"#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"},this.radar={axisColor:((K=this.radar)==null?void 0:K.axisColor)||this.lineColor,axisStrokeWidth:((J=this.radar)==null?void 0:J.axisStrokeWidth)||2,axisLabelFontSize:((j=this.radar)==null?void 0:j.axisLabelFontSize)||12,curveOpacity:((P=this.radar)==null?void 0:P.curveOpacity)||.5,curveStrokeWidth:(($=this.radar)==null?void 0:$.curveStrokeWidth)||2,graticuleColor:((V=this.radar)==null?void 0:V.graticuleColor)||"#DEDEDE",graticuleStrokeWidth:((X=this.radar)==null?void 0:X.graticuleStrokeWidth)||1,graticuleOpacity:((it=this.radar)==null?void 0:it.graticuleOpacity)||.3,legendBoxSize:((L=this.radar)==null?void 0:L.legendBoxSize)||12,legendFontSize:((lt=this.radar)==null?void 0:lt.legendFontSize)||12},this.wardleyEvolutionColor=this.wardleyEvolutionColor||"#dc3545",this.wardley={backgroundColor:((Ct=this.wardley)==null?void 0:Ct.backgroundColor)||this.background,axisColor:((O=this.wardley)==null?void 0:O.axisColor)||this.lineColor,axisTextColor:((St=this.wardley)==null?void 0:St.axisTextColor)||this.primaryTextColor,gridColor:((_t=this.wardley)==null?void 0:_t.gridColor)||this.gridColor,componentFill:((Ft=this.wardley)==null?void 0:Ft.componentFill)||this.background,componentStroke:((zt=this.wardley)==null?void 0:zt.componentStroke)||this.lineColor,componentLabelColor:((Zt=this.wardley)==null?void 0:Zt.componentLabelColor)||this.primaryTextColor,linkStroke:((Vt=this.wardley)==null?void 0:Vt.linkStroke)||this.lineColor,evolutionStroke:((yt=this.wardley)==null?void 0:yt.evolutionStroke)||this.wardleyEvolutionColor,annotationStroke:((bt=this.wardley)==null?void 0:bt.annotationStroke)||this.lineColor,annotationTextColor:((jt=this.wardley)==null?void 0:jt.annotationTextColor)||this.primaryTextColor,annotationFill:((It=this.wardley)==null?void 0:It.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=at(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||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(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||rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nn}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]})}},C(ws,"Theme"),ws),ZA=C(e=>{const t=new QA;return t.calculate(e),t},"getThemeVariables"),vs,JA=(vs=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=Xt(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 a,s,o,l,u,c,h,f,d,p,m;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||Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Q(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Q(this.tertiaryColor),this.lineColor=this.lineColor||Q(this.background),this.arrowheadColor=this.arrowheadColor||Q(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?at(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||at(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Q(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;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||nt(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 g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=at(this["cScale"+g],75);else for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=at(this["cScale"+g],25);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||Q(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||nt(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||at(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=this["cScaleLabel"+g]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||v(this.mainBkg,{h:180,s:-15,l:n*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||v(this.mainBkg,{h:180,s:-15,l:n*(8+g*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||Ai(this.quadrant1Fill)?nt(this.quadrant1Fill):at(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:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((u=this.xyChart)==null?void 0:u.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.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:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.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?at(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=nt(this.git0,25),this.git1=nt(this.git1,25),this.git2=nt(this.git2,25),this.git3=nt(this.git3,25),this.git4=nt(this.git4,25),this.git5=nt(this.git5,25),this.git6=nt(this.git6,25),this.git7=nt(this.git7,25)):(this.git0=at(this.git0,25),this.git1=at(this.git1,25),this.git2=at(this.git2,25),this.git3=at(this.git3,25),this.git4=at(this.git4,25),this.git5=at(this.git5,25),this.git6=at(this.git6,25),this.git7=at(this.git7,25)),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(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||rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nn}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]})}},C(vs,"Theme"),vs),tB=C(e=>{const t=new JA;return t.calculate(e),t},"getThemeVariables"),Ss,eB=(Ss=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=nt(this.primaryColor,16),this.tertiaryColor=v(this.primaryColor,{h:-160}),this.primaryBorderColor=Q(this.background),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Q(this.primaryColor),this.secondaryTextColor=Q(this.secondaryColor),this.tertiaryTextColor=Q(this.tertiaryColor),this.mainBkg="#2a2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=nt(Q("#323D47"),10),this.border1="#ccc",this.border2=Vn(255,255,255,.25),this.arrowheadColor=Q(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,a,s,o,l,u,c,h,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||Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||Q(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Q(this.tertiaryColor),this.lineColor=this.lineColor||Q(this.background),this.arrowheadColor=this.arrowheadColor||Q(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?at(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||at(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Q(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||nt(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]=at(this["cScale"+d],75);else for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=at(this["cScale"+d],25);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||Q(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||nt(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||at(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||Ai(this.quadrant1Fill)?nt(this.quadrant1Fill):at(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:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.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?at(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=nt(this.git0,25),this.git1=nt(this.git1,25),this.git2=nt(this.git2,25),this.git3=nt(this.git3,25),this.git4=nt(this.git4,25),this.git5=nt(this.git5,25),this.git6=nt(this.git6,25),this.git7=nt(this.git7,25)):(this.git0=at(this.git0,25),this.git1=at(this.git1,25),this.git2=at(this.git2,25),this.git3=at(this.git3,25),this.git4=at(this.git4,25),this.git5=at(this.git5,25),this.git6=at(this.git6,25),this.git7=at(this.git7,25)),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(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||rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nn}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]})}},C(Ss,"Theme"),Ss),rB=C(e=>{const t=new eB;return t.calculate(e),t},"getThemeVariables"),Es,iB=(Es=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=Xt("#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 a,s,o,l,u,c,h,f,d,p,m;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||Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#FEF9C3",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Q(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Q(this.tertiaryColor),this.lineColor=this.lineColor||Q(this.background),this.arrowheadColor=this.arrowheadColor||Q(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?at(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||at(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Q(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;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||nt(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 g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=this.mainBkg;if(this.darkMode)for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=at(this["cScale"+g],75);else for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScale"+g]=at(this["cScale"+g],25);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||Q(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||nt(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||at(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=this["cScaleLabel"+g]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||v(this.mainBkg,{h:180,s:-15,l:n*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||v(this.mainBkg,{h:180,s:-15,l:n*(8+g*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||Ai(this.quadrant1Fill)?nt(this.quadrant1Fill):at(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:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((u=this.xyChart)==null?void 0:u.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.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:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.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?at(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=nt(this.git0,25),this.git1=nt(this.git1,25),this.git2=nt(this.git2,25),this.git3=nt(this.git3,25),this.git4=nt(this.git4,25),this.git5=nt(this.git5,25),this.git6=nt(this.git6,25),this.git7=nt(this.git7,25)):(this.git0=at(this.git0,25),this.git1=at(this.git1,25),this.git2=at(this.git2,25),this.git3=at(this.git3,25),this.git4=at(this.git4,25),this.git5=at(this.git5,25),this.git6=at(this.git6,25),this.git7=at(this.git7,25)),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(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||rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nn}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]})}},C(Es,"Theme"),Es),nB=C(e=>{const t=new iB;return t.calculate(e),t},"getThemeVariables"),_s,aB=(_s=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=nt(this.primaryColor,16),this.tertiaryColor=v(this.primaryColor,{h:-160}),this.primaryBorderColor=Q(this.background),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Q(this.primaryColor),this.secondaryTextColor=Q(this.secondaryColor),this.tertiaryTextColor=Q(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=nt(Q("#323D47"),10),this.border1="#ccc",this.border2=Vn(255,255,255,.25),this.arrowheadColor=Q(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,a,s,o,l,u,c,h,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||Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Q(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Q(this.tertiaryColor),this.lineColor=this.lineColor||Q(this.background),this.arrowheadColor=this.arrowheadColor||Q(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?at(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||at(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Q(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||nt(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]=at(this["cScale"+d],75);else for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScale"+d]=at(this["cScale"+d],25);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleInv"+d]=this["cScaleInv"+d]||Q(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||nt(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||at(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||Ai(this.quadrant1Fill)?nt(this.quadrant1Fill):at(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:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.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?at(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=nt(this.git0,25),this.git1=nt(this.git1,25),this.git2=nt(this.git2,25),this.git3=nt(this.git3,25),this.git4=nt(this.git4,25),this.git5=nt(this.git5,25),this.git6=nt(this.git6,25),this.git7=nt(this.git7,25)):(this.git0=at(this.git0,25),this.git1=at(this.git1,25),this.git2=at(this.git2,25),this.git3=at(this.git3,25),this.git4=at(this.git4,25),this.git5=at(this.git5,25),this.git6=at(this.git6,25),this.git7=at(this.git7,25)),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(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||rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nn}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]})}},C(_s,"Theme"),_s),sB=C(e=>{const t=new aB;return t.calculate(e),t},"getThemeVariables"),As,oB=(As=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=Xt(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 a,s,o,l,u,c,h,f,d,p,m;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||Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#28253D",this.secondaryTextColor=this.secondaryTextColor||Q(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Q(this.tertiaryColor),this.lineColor=this.lineColor||Q(this.background),this.arrowheadColor=this.arrowheadColor||Q(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?at(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||at(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Q(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor;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||nt(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 g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleInv"+g]=this["cScaleInv"+g]||Q(this["cScale"+g]);for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this.darkMode?this["cScalePeer"+g]=this["cScalePeer"+g]||nt(this["cScale"+g],10):this["cScalePeer"+g]=this["cScalePeer"+g]||at(this["cScale"+g],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let g=0;g<this.THEME_COLOR_LIMIT;g++)this["cScaleLabel"+g]=this["cScaleLabel"+g]||this.scaleLabelColor;const n=this.darkMode?-4:-1;for(let g=0;g<5;g++)this["surface"+g]=this["surface"+g]||v(this.mainBkg,{h:180,s:-15,l:n*(5+g*3)}),this["surfacePeer"+g]=this["surfacePeer"+g]||v(this.mainBkg,{h:180,s:-15,l:n*(8+g*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||Ai(this.quadrant1Fill)?nt(this.quadrant1Fill):at(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:((a=this.xyChart)==null?void 0:a.backgroundColor)||this.background,titleColor:((s=this.xyChart)==null?void 0:s.titleColor)||this.primaryTextColor,xAxisTitleColor:((o=this.xyChart)==null?void 0:o.xAxisTitleColor)||this.primaryTextColor,xAxisLabelColor:((l=this.xyChart)==null?void 0:l.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((u=this.xyChart)==null?void 0:u.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((c=this.xyChart)==null?void 0:c.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((h=this.xyChart)==null?void 0:h.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:((p=this.xyChart)==null?void 0:p.yAxisLineColor)||this.primaryTextColor,plotColorPalette:((m=this.xyChart)==null?void 0:m.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?at(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=nt(this.git0,25),this.git1=nt(this.git1,25),this.git2=nt(this.git2,25),this.git3=nt(this.git3,25),this.git4=nt(this.git4,25),this.git5=nt(this.git5,25),this.git6=nt(this.git6,25),this.git7=nt(this.git7,25)):(this.git0=at(this.git0,25),this.git1=at(this.git1,25),this.git2=at(this.git2,25),this.git3=at(this.git3,25),this.git4=at(this.git4,25),this.git5=at(this.git5,25),this.git6=at(this.git6,25),this.git7=at(this.git7,25)),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(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||rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nn}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]})}},C(As,"Theme"),As),lB=C(e=>{const t=new oB;return t.calculate(e),t},"getThemeVariables"),Bs,uB=(Bs=class{constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=nt(this.primaryColor,16),this.tertiaryColor=v(this.primaryColor,{h:-160}),this.primaryBorderColor=Q(this.background),this.secondaryBorderColor=Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=Xt(this.tertiaryColor,this.darkMode),this.primaryTextColor=Q(this.primaryColor),this.secondaryTextColor=Q(this.secondaryColor),this.tertiaryTextColor=Q(this.tertiaryColor),this.mainBkg="#111113",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=nt(Q("#323D47"),10),this.border1="#ccc",this.border2=Vn(255,255,255,.25),this.arrowheadColor=Q(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,a,s,o,l,u,c,h,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||Xt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||Xt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||Xt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||Xt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#FFFFFF",this.secondaryTextColor=this.secondaryTextColor||Q(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||Q(this.tertiaryColor),this.lineColor=this.lineColor||Q(this.background),this.arrowheadColor=this.arrowheadColor||Q(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?at(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||at(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||Q(this.lineColor),this.rectBkgColor=this.rectBkgColor||this.tertiaryColor,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||nt(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]||Q(this["cScale"+d]);for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this.darkMode?this["cScalePeer"+d]=this["cScalePeer"+d]||nt(this["cScale"+d],10):this["cScalePeer"+d]=this["cScalePeer"+d]||at(this["cScale"+d],10);this.scaleLabelColor=this.scaleLabelColor||this.labelTextColor;for(let d=0;d<this.THEME_COLOR_LIMIT;d++)this["cScaleLabel"+d]=at(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||Ai(this.quadrant1Fill)?nt(this.quadrant1Fill):at(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:((a=this.xyChart)==null?void 0:a.xAxisLabelColor)||this.primaryTextColor,xAxisTickColor:((s=this.xyChart)==null?void 0:s.xAxisTickColor)||this.primaryTextColor,xAxisLineColor:((o=this.xyChart)==null?void 0:o.xAxisLineColor)||this.primaryTextColor,yAxisTitleColor:((l=this.xyChart)==null?void 0:l.yAxisTitleColor)||this.primaryTextColor,yAxisLabelColor:((u=this.xyChart)==null?void 0:u.yAxisLabelColor)||this.primaryTextColor,yAxisTickColor:((c=this.xyChart)==null?void 0:c.yAxisTickColor)||this.primaryTextColor,yAxisLineColor:((h=this.xyChart)==null?void 0:h.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?at(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=nt(this.git0,25),this.git1=nt(this.git1,25),this.git2=nt(this.git2,25),this.git3=nt(this.git3,25),this.git4=nt(this.git4,25),this.git5=nt(this.git5,25),this.git6=nt(this.git6,25),this.git7=nt(this.git7,25)):(this.git0=at(this.git0,25),this.git1=at(this.git1,25),this.git2=at(this.git2,25),this.git3=at(this.git3,25),this.git4=at(this.git4,25),this.git5=at(this.git5,25),this.git6=at(this.git6,25),this.git7=at(this.git7,25)),this.gitInv0=this.gitInv0||Q(this.git0),this.gitInv1=this.gitInv1||Q(this.git1),this.gitInv2=this.gitInv2||Q(this.git2),this.gitInv3=this.gitInv3||Q(this.git3),this.gitInv4=this.gitInv4||Q(this.git4),this.gitInv5=this.gitInv5||Q(this.git5),this.gitInv6=this.gitInv6||Q(this.git6),this.gitInv7=this.gitInv7||Q(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||rn,this.attributeBackgroundColorEven=this.attributeBackgroundColorEven||nn}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]})}},C(Bs,"Theme"),Bs),cB=C(e=>{const t=new uB;return t.calculate(e),t},"getThemeVariables"),xn={base:{getThemeVariables:WA},dark:{getThemeVariables:YA},default:{getThemeVariables:GA},forest:{getThemeVariables:KA},neutral:{getThemeVariables:ZA},neo:{getThemeVariables:tB},"neo-dark":{getThemeVariables:rB},redux:{getThemeVariables:nB},"redux-dark":{getThemeVariables:sB},"redux-color":{getThemeVariables:lB},"redux-dark-color":{getThemeVariables:cB}},sr={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},swimlane:{useMaxWidth:!0,lineHops:"arc",ignoreCrossLaneEdges:!0,optimizeRanksByCrossings:!0,automaticLaneOrdering:!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,donutHole:0,legendPosition:"right",highlightSlice:""},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,labelRotation:0},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,labelRotation:0},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,showIcons:!1,defaultIconPack:"",filenameIcons:{},extensionIcons:{}},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16,randomize:!1,nodeSeparation:75,idealEdgeLengthMultiplier:1.5,edgeElasticity:.45,numIter:2500,seed:1},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},cynefin:{useMaxWidth:!0,width:800,height:600,padding:40,showDomainDescriptions:!0,boundaryAmplitude:8,seed:0},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},V3={...sr,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF",forceNodeModelOrder:!1,considerModelOrder:"NODES_AND_EDGES"},themeCSS:void 0,themeVariables:xn.default.getThemeVariables(),sequence:{...sr.sequence,messageFont:C(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:C(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:C(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1,hierarchicalNamespaces:!0},gantt:{...sr.gantt,tickInterval:void 0,useWidth:void 0},c4:{...sr.c4,useWidth:void 0,personFont:C(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),flowchart:{...sr.flowchart,inheritDir:!1},external_personFont:C(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:C(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:C(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:C(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:C(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:C(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:C(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:C(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:C(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:C(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:C(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:C(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:C(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:C(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:C(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:C(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:C(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:C(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:C(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:C(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:C(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...sr.pie,useWidth:984},xyChart:{...sr.xyChart,useWidth:void 0},requirement:{...sr.requirement,useWidth:void 0},packet:{...sr.packet},eventmodeling:{...sr.eventmodeling},treeView:{...sr.treeView,useWidth:void 0},radar:{...sr.radar},railroad:{...sr.railroad,fontSize:void 0,fontFamily:void 0,terminalFill:void 0,terminalStroke:void 0,terminalTextColor:void 0,nonTerminalFill:void 0,nonTerminalStroke:void 0,nonTerminalTextColor:void 0,lineColor:void 0,markerFill:void 0,commentFill:void 0,commentStroke:void 0,commentTextColor:void 0,specialFill:void 0,specialStroke:void 0,ruleNameColor:void 0},ishikawa:{...sr.ishikawa},sankey:{...sr.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:{...sr.venn},cynefin:{...sr.cynefin}},G3=C((e,t="")=>Object.keys(e).reduce((r,i)=>Array.isArray(e[i])?r:typeof e[i]=="object"&&e[i]!==null?[...r,t+i,...G3(e[i],"")]:[...r,t+i],[]),"keyify"),hB=new Set(G3(V3,"")),X3=V3,dB={nodeColors:/^#[\da-f]{3,8}$|^rgb\([\d\s%,.]+\)$|^hsl\([\d\s%,.]+\)$|^[a-z]+$/i,filenameIcons:/^[\w-]+(?::[\w-]+)?$/,extensionIcons:/^[\w-]+(?::[\w-]+)?$/},fB=C((e,t)=>{for(const r of Object.keys(e)){const i=e[r];(r.startsWith("__")||r.includes("proto")||r.includes("constr")||typeof i!="string"||!t.test(i))&&(ut.debug("sanitize deleting dictionary entry:",r,i),delete e[r])}},"sanitizeDictionaryConfig"),ic=C(e=>{if(ut.debug("sanitizeDirective called with",e),!(typeof e!="object"||e==null)){if(Array.isArray(e)){e.forEach(t=>ic(t));return}for(const t of Object.keys(e)){if(ut.debug("Checking key",t),t.startsWith("__")||t.includes("proto")||t.includes("constr")||!hB.has(t)||e[t]==null){ut.debug("sanitize deleting key: ",t),delete e[t];continue}if(typeof e[t]=="object"){const i=dB[t];i?fB(e[t],i):(ut.debug("sanitizing object",t),ic(e[t]));continue}const r=["themeCSS","fontFamily","altFontFamily"];for(const i of r)t.includes(i)&&(ut.debug("sanitizing css option",t),e[t]=K3(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]="")}ut.debug("After sanitization",e)}},"sanitizeDirective"),K3=C(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"),Ps=Object.freeze(X3),an=C(e=>!(e===!1||["false","null","0"].includes(String(e).trim().toLowerCase())),"evaluate"),Wr=Xe({},Ps),nc,Fa=[],jo=Xe({},Ps),lh=C((e,t)=>{let r=Xe({},e),i={};for(const n of t)J3(n),i=Xe(i,n);if(r=Xe(r,i),i.theme&&i.theme in xn){const n=Xe({},nc),a=Xe(n.themeVariables||{},i.themeVariables);r.theme&&r.theme in xn&&(r.themeVariables=xn[r.theme].getThemeVariables(a))}return jo=r,ex(jo),jo},"updateCurrentConfig"),pB=C(e=>(Wr=Xe({},Ps),Wr=Xe(Wr,e),e.theme&&xn[e.theme]&&(Wr.themeVariables=xn[e.theme].getThemeVariables(e.themeVariables)),lh(Wr,Fa),Wr),"setSiteConfig"),mB=C(e=>{nc=Xe({},e)},"saveConfigFromInitialize"),gB=C(e=>(Wr=Xe(Wr,e),lh(Wr,Fa),Wr),"updateSiteConfig"),Q3=C(()=>Xe({},Wr),"getSiteConfig"),Z3=C(e=>(ex(e),Xe(jo,e),Ne()),"setConfig"),Ne=C(()=>Xe({},jo),"getConfig"),J3=C(e=>{e&&(["secure",...Wr.secure??[]].forEach(t=>{Object.hasOwn(e,t)&&(ut.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"&&J3(e[t])}))},"sanitize"),bB=C(e=>{var t;ic(e),e.fontFamily&&!((t=e.themeVariables)!=null&&t.fontFamily)&&(e.themeVariables={...e.themeVariables,fontFamily:e.fontFamily}),Fa.push(e),lh(Wr,Fa)},"addDirective"),ac=C((e=Wr)=>{Fa=[],lh(e,Fa)},"reset"),yB={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."},Ug={},tx=C(e=>{Ug[e]||(ut.warn(yB[e]),Ug[e]=!0)},"issueWarning"),ex=C(e=>{e&&(e.lazyLoadedDiagrams||e.loadExternalDiagramsAtStartup)&&tx("LAZY_LOAD_DEPRECATED")},"checkConfig"),cet=C(()=>{let e={};nc&&(e=Xe(e,nc));for(const t of Fa)e=Xe(e,t);return e},"getUserDefinedConfig"),Dr=C(e=>{var t,r;return((t=e.flowchart)==null?void 0:t.htmlLabels)!=null&&tx("FLOWCHART_HTML_LABELS_DEPRECATED"),an(e.htmlLabels??((r=e.flowchart)==null?void 0:r.htmlLabels)??!0)},"getEffectiveHtmlLabels"),rx=/^([^\S\n\r]*)-{3}\s*[\n\r](.*?)[\n\r]\1-{3}\s*[\n\r]+/s,Yo=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,xB=/\s*%%.*\n/gm,Ls,ix=(Ls=class extends Error{constructor(t){super(t),this.name="UnknownDiagramError"}},C(Ls,"UnknownDiagramError"),Ls),Oa={},k1=C(function(e,t){e=e.replace(rx,"").replace(Yo,"").replace(xB,`
|
|
272
|
+
`);for(const[r,{detector:i}]of Object.entries(Oa))if(i(e,t))return r;throw new ix(`No diagram type detected matching given configuration for text: ${e}`)},"detectType"),Nd=C((...e)=>{for(const{id:t,detector:r,loader:i}of e)nx(t,r,i)},"registerLazyLoadedDiagrams"),nx=C((e,t,r)=>{Oa[e]&&ut.warn(`Detector with key ${e} already exists. Overwriting.`),Oa[e]={detector:t,loader:r},ut.debug(`Detector with key ${e} added${r?" with loader":""}`)},"addDetector"),CB=C(e=>Oa[e].loader,"getDiagramLoader"),Il=/<br\s*\/?>/gi,kB=C(e=>e?ox(e).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),TB=(()=>{let e=!1;return()=>{e||(ax(),e=!0)}})();function ax(){const e="data-temp-href-target";Rs.addHook("beforeSanitizeAttributes",t=>{t.tagName==="A"&&t.hasAttribute("target")&&t.setAttribute(e,t.getAttribute("target")??"")}),Rs.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"))})}C(ax,"setupDompurifyHooks");var sx=C(e=>(TB(),Rs.sanitize(e)),"removeScript"),Wg=C((e,t)=>{if(Dr(t)){const r=t.securityLevel;r==="antiscript"||r==="strict"||r==="sandbox"?e=sx(e):r!=="loose"&&(e=ox(e),e=e.replace(/</g,"<").replace(/>/g,">"),e=e.replace(/=/g,"="),e=EB(e))}return e},"sanitizeMore"),_i=C((e,t)=>e&&(t.dompurifyConfig?e=Rs.sanitize(Wg(e,t),t.dompurifyConfig).toString():e=Rs.sanitize(Wg(e,t),{FORBID_TAGS:["style"]}).toString(),e),"sanitizeText"),wB=C((e,t)=>typeof e=="string"?_i(e,t):e.flat().map(r=>_i(r,t)),"sanitizeTextOrArray"),vB=C(e=>Il.test(e),"hasBreaks"),SB=C(e=>e.split(Il),"splitBreaks"),EB=C(e=>e.replace(/#br#/g,"<br/>"),"placeholderToBreak"),ox=C(e=>e.replace(Il,"#br#"),"breakToPlaceholder"),_B=C(e=>{let t="";return e&&(t=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,t=CSS.escape(t)),t},"getUrl"),AB=C(function(...e){const t=e.filter(r=>!isNaN(r));return Math.max(...t)},"getMax"),BB=C(function(...e){const t=e.filter(r=>!isNaN(r));return Math.min(...t)},"getMin"),jg=C(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 a=t[i-1],s=t[i+1];LB(a,s)&&(n=a+","+s,i++,r.pop())}r.push(IB(n))}return r.join("")},"parseGenericTypes"),Fd=C((e,t)=>Math.max(0,e.split(t).length-1),"countOccurrence"),LB=C((e,t)=>{const r=Fd(e,"~"),i=Fd(t,"~");return r===1&&i===1},"shouldCombineSets"),IB=C(e=>{const t=Fd(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("~"),a=i.lastIndexOf("~");for(;n!==-1&&a!==-1&&n!==a;)i[n]="<",i[a]=">",n=i.indexOf("~"),a=i.lastIndexOf("~");return r&&i.unshift("~"),i.join("")},"processSet"),Yg=C(()=>window.MathMLElement!==void 0,"isMathMLSupported"),Od=/\$\$(.*?)\$\$/g,ul=C(e=>{var t;return(((t=e.match(Od))==null?void 0:t.length)??0)>0},"hasKatex"),het=C(async(e,t)=>{const r=document.createElement("div");r.innerHTML=await lx(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"),MB=C(async(e,t)=>{if(!ul(e))return e;if(!(Yg()||t.legacyMathML||t.forceLegacyMathML))return e.replace(Od,"MathML is unsupported in this environment.");{const{default:r}=await ee(async()=>{const{default:n}=await Promise.resolve().then(()=>R_);return{default:n}},void 0),i=t.forceLegacyMathML||!Yg()&&t.legacyMathML?"htmlAndMathml":"mathml";return e.split(Il).map(n=>ul(n)?`<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${n}</div>`:`<div>${n}</div>`).join("").replace(Od,(n,a)=>r.renderToString(a,{throwOnError:!0,displayMode:!0,output:i}).replace(/\n/g," ").replace(/<annotation.*<\/annotation>/g,""))}},"renderKatexUnsanitized"),lx=C(async(e,t)=>_i(await MB(e,t),t),"renderKatexSanitized"),Ml={getRows:kB,sanitizeText:_i,sanitizeTextOrArray:wB,hasBreaks:vB,splitBreaks:SB,lineBreakRegex:Il,removeScript:sx,getUrl:_B,evaluate:an,getMax:AB,getMin:BB},NB=C(function(e,t){for(let r of t)e.attr(r[0],r[1])},"d3Attrs"),FB=C(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"),ux=C(function(e,t,r,i){const n=FB(t,r,i);NB(e,n)},"configureSvgSize"),OB=C(function(e,t,r,i){const n=t.node().getBBox(),a=n.width,s=n.height;ut.info(`SVG bounds: ${a}x${s}`,n);let o=0,l=0;ut.info(`Graph bounds: ${o}x${l}`,e),o=a+r*2,l=s+r*2,ut.info(`Calculated bounds: ${o}x${l}`),ux(t,l,o,i);const u=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;t.attr("viewBox",u)},"setupGraphViewbox"),Iu={};function Dd(e){return[...e.cssRules].map(t=>t.cssText).join(`
|
|
273
|
+
`)}C(Dd,"cssStyleSheetToString");var DB=C((e,t,r,i)=>{let n="";return e in Iu&&Iu[e]?n=Iu[e]({...r,svgId:i}):ut.warn(`No theme found for ${e}`),` & {
|
|
274
|
+
font-family: ${r.fontFamily};
|
|
275
|
+
font-size: ${r.fontSize};
|
|
276
|
+
fill: ${r.textColor}
|
|
277
|
+
}
|
|
278
|
+
@keyframes edge-animation-frame {
|
|
279
|
+
from {
|
|
280
|
+
stroke-dashoffset: 0;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
@keyframes dash {
|
|
284
|
+
to {
|
|
285
|
+
stroke-dashoffset: 0;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
& .edge-animation-slow {
|
|
289
|
+
stroke-dasharray: 9,5 !important;
|
|
290
|
+
stroke-dashoffset: 900;
|
|
291
|
+
animation: dash 50s linear infinite;
|
|
292
|
+
stroke-linecap: round;
|
|
293
|
+
}
|
|
294
|
+
& .edge-animation-fast {
|
|
295
|
+
stroke-dasharray: 9,5 !important;
|
|
296
|
+
stroke-dashoffset: 900;
|
|
297
|
+
animation: dash 20s linear infinite;
|
|
298
|
+
stroke-linecap: round;
|
|
299
|
+
}
|
|
300
|
+
/* Classes common for multiple diagrams */
|
|
301
|
+
|
|
302
|
+
& .error-icon {
|
|
303
|
+
fill: ${r.errorBkgColor};
|
|
304
|
+
}
|
|
305
|
+
& .error-text {
|
|
306
|
+
fill: ${r.errorTextColor};
|
|
307
|
+
stroke: ${r.errorTextColor};
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
& .edge-thickness-normal {
|
|
311
|
+
stroke-width: ${r.strokeWidth??1}px;
|
|
312
|
+
}
|
|
313
|
+
& .edge-thickness-thick {
|
|
314
|
+
stroke-width: 3.5px
|
|
315
|
+
}
|
|
316
|
+
& .edge-pattern-solid {
|
|
317
|
+
stroke-dasharray: 0;
|
|
318
|
+
}
|
|
319
|
+
& .edge-thickness-invisible {
|
|
320
|
+
stroke-width: 0;
|
|
321
|
+
fill: none;
|
|
322
|
+
}
|
|
323
|
+
& .edge-pattern-dashed{
|
|
324
|
+
stroke-dasharray: 3;
|
|
325
|
+
}
|
|
326
|
+
.edge-pattern-dotted {
|
|
327
|
+
stroke-dasharray: 2;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
& .marker {
|
|
331
|
+
fill: ${r.lineColor};
|
|
332
|
+
stroke: ${r.lineColor};
|
|
333
|
+
}
|
|
334
|
+
& .marker.cross {
|
|
335
|
+
stroke: ${r.lineColor};
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
& svg {
|
|
339
|
+
font-family: ${r.fontFamily};
|
|
340
|
+
font-size: ${r.fontSize};
|
|
341
|
+
}
|
|
342
|
+
& p {
|
|
343
|
+
margin: 0
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
${n}
|
|
347
|
+
.node .neo-node {
|
|
348
|
+
stroke: ${r.nodeBorder};
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
[data-look="neo"].node rect, [data-look="neo"].cluster rect, [data-look="neo"].node polygon {
|
|
352
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
353
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
354
|
+
}
|
|
355
|
+
[data-look="neo"].swimlane.cluster rect {
|
|
356
|
+
filter: none;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
[data-look="neo"].node path {
|
|
361
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
362
|
+
stroke-width: ${r.strokeWidth??1}px;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
[data-look="neo"].node .outer-path {
|
|
366
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
[data-look="neo"].node .neo-line path {
|
|
370
|
+
stroke: ${r.nodeBorder};
|
|
371
|
+
filter: none;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
[data-look="neo"].node circle{
|
|
375
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
376
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
[data-look="neo"].node circle .state-start{
|
|
380
|
+
fill: #000000;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
[data-look="neo"].icon-shape .icon {
|
|
384
|
+
fill: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
385
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
[data-look="neo"].icon-shape .icon-neo path {
|
|
389
|
+
stroke: ${r.useGradient?"url("+i+"-gradient)":r.nodeBorder};
|
|
390
|
+
filter: ${r.dropShadow?r.dropShadow.replace("url(#drop-shadow)",`url(${i}-drop-shadow)`):"none"};
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
${t}
|
|
394
|
+
`},"getStyles"),RB=C((e,t)=>{t!==void 0&&(Iu[e]=t)},"addStylesForDiagram"),PB=DB,cx={};Z_(cx,{clear:()=>$B,getAccDescription:()=>UB,getAccTitle:()=>HB,getDiagramTitle:()=>jB,setAccDescription:()=>qB,setAccTitle:()=>zB,setDiagramTitle:()=>WB});var T1="",w1="",v1="",S1=C(e=>_i(e,Ne()),"sanitizeText"),$B=C(()=>{T1="",v1="",w1=""},"clear"),zB=C(e=>{T1=S1(e).replace(/^\s+/g,"")},"setAccTitle"),HB=C(()=>T1,"getAccTitle"),qB=C(e=>{v1=S1(e).replace(/\n\s+/g,`
|
|
395
|
+
`)},"setAccDescription"),UB=C(()=>v1,"getAccDescription"),WB=C(e=>{w1=S1(e)},"setDiagramTitle"),jB=C(()=>w1,"getDiagramTitle"),Vg=ut,YB=C1,me=Ne,det=Z3,fet=Ps,E1=C(e=>_i(e,me()),"sanitizeText"),VB=OB,GB=C(()=>cx,"getCommonDb"),sc={},oc=C((e,t,r)=>{var i;sc[e]&&Vg.warn(`Diagram with id ${e} already registered. Overwriting.`),sc[e]=t,r&&nx(e,r),RB(e,t.styles),(i=t.injectUtils)==null||i.call(t,Vg,YB,me,E1,VB,GB(),()=>{})},"registerDiagram"),Rd=C(e=>{if(e in sc)return sc[e];throw new XB(e)},"getDiagram"),Is,XB=(Is=class extends Error{constructor(t){super(`Diagram ${t} not found.`)}},C(Is,"DiagramNotFoundError"),Is),KB={value:()=>{}};function hx(){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 Mu(r)}function Mu(e){this._=e}function QB(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}})}Mu.prototype=hx.prototype={constructor:Mu,on:function(e,t){var r=this._,i=QB(e+"",r),n,a=-1,s=i.length;if(arguments.length<2){for(;++a<s;)if((n=(e=i[a]).type)&&(n=ZB(r[n],e.name)))return n;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<s;)if(n=(e=i[a]).type)r[n]=Gg(r[n],e.name,t);else if(t==null)for(n in r)r[n]=Gg(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 Mu(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var r=new Array(n),i=0,n,a;i<n;++i)r[i]=arguments[i+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],i=0,n=a.length;i<n;++i)a[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,a=i.length;n<a;++n)i[n].value.apply(t,r)}};function ZB(e,t){for(var r=0,i=e.length,n;r<i;++r)if((n=e[r]).name===t)return n.value}function Gg(e,t,r){for(var i=0,n=e.length;i<n;++i)if(e[i].name===t){e[i]=KB,e=e.slice(0,i).concat(e.slice(i+1));break}return r!=null&&e.push({name:t,value:r}),e}var Pd="http://www.w3.org/1999/xhtml";const Xg={svg:"http://www.w3.org/2000/svg",xhtml:Pd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function uh(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Xg.hasOwnProperty(t)?{space:Xg[t],local:e}:e}function JB(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Pd&&t.documentElement.namespaceURI===Pd?t.createElement(e):t.createElementNS(r,e)}}function tL(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function dx(e){var t=uh(e);return(t.local?tL:JB)(t)}function eL(){}function _1(e){return e==null?eL:function(){return this.querySelector(e)}}function rL(e){typeof e!="function"&&(e=_1(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],s=a.length,o=i[n]=new Array(s),l,u,c=0;c<s;++c)(l=a[c])&&(u=e.call(l,l.__data__,c,a))&&("__data__"in l&&(u.__data__=l.__data__),o[c]=u);return new ti(i,this._parents)}function iL(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function nL(){return[]}function fx(e){return e==null?nL:function(){return this.querySelectorAll(e)}}function aL(e){return function(){return iL(e.apply(this,arguments))}}function sL(e){typeof e=="function"?e=aL(e):e=fx(e);for(var t=this._groups,r=t.length,i=[],n=[],a=0;a<r;++a)for(var s=t[a],o=s.length,l,u=0;u<o;++u)(l=s[u])&&(i.push(e.call(l,l.__data__,u,s)),n.push(l));return new ti(i,n)}function px(e){return function(){return this.matches(e)}}function mx(e){return function(t){return t.matches(e)}}var oL=Array.prototype.find;function lL(e){return function(){return oL.call(this.children,e)}}function uL(){return this.firstElementChild}function cL(e){return this.select(e==null?uL:lL(typeof e=="function"?e:mx(e)))}var hL=Array.prototype.filter;function dL(){return Array.from(this.children)}function fL(e){return function(){return hL.call(this.children,e)}}function pL(e){return this.selectAll(e==null?dL:fL(typeof e=="function"?e:mx(e)))}function mL(e){typeof e!="function"&&(e=px(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],s=a.length,o=i[n]=[],l,u=0;u<s;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&o.push(l);return new ti(i,this._parents)}function gx(e){return new Array(e.length)}function gL(){return new ti(this._enter||this._groups.map(gx),this._parents)}function lc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}lc.prototype={constructor:lc,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 bL(e){return function(){return e}}function yL(e,t,r,i,n,a){for(var s=0,o,l=t.length,u=a.length;s<u;++s)(o=t[s])?(o.__data__=a[s],i[s]=o):r[s]=new lc(e,a[s]);for(;s<l;++s)(o=t[s])&&(n[s]=o)}function xL(e,t,r,i,n,a,s){var o,l,u=new Map,c=t.length,h=a.length,f=new Array(c),d;for(o=0;o<c;++o)(l=t[o])&&(f[o]=d=s.call(l,l.__data__,o,t)+"",u.has(d)?n[o]=l:u.set(d,l));for(o=0;o<h;++o)d=s.call(e,a[o],o,a)+"",(l=u.get(d))?(i[o]=l,l.__data__=a[o],u.delete(d)):r[o]=new lc(e,a[o]);for(o=0;o<c;++o)(l=t[o])&&u.get(f[o])===l&&(n[o]=l)}function CL(e){return e.__data__}function kL(e,t){if(!arguments.length)return Array.from(this,CL);var r=t?xL:yL,i=this._parents,n=this._groups;typeof e!="function"&&(e=bL(e));for(var a=n.length,s=new Array(a),o=new Array(a),l=new Array(a),u=0;u<a;++u){var c=i[u],h=n[u],f=h.length,d=TL(e.call(c,c&&c.__data__,u,i)),p=d.length,m=o[u]=new Array(p),g=s[u]=new Array(p),y=l[u]=new Array(f);r(c,h,m,g,y,d,t);for(var k=0,w=0,_,A;k<p;++k)if(_=m[k]){for(k>=w&&(w=k+1);!(A=g[w])&&++w<p;);_._next=A||null}}return s=new ti(s,i),s._enter=o,s._exit=l,s}function TL(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function wL(){return new ti(this._exit||this._groups.map(gx),this._parents)}function vL(e,t,r){var i=this.enter(),n=this,a=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?a.remove():r(a),i&&n?i.merge(n).order():n}function SL(e){for(var t=e.selection?e.selection():e,r=this._groups,i=t._groups,n=r.length,a=i.length,s=Math.min(n,a),o=new Array(n),l=0;l<s;++l)for(var u=r[l],c=i[l],h=u.length,f=o[l]=new Array(h),d,p=0;p<h;++p)(d=u[p]||c[p])&&(f[p]=d);for(;l<n;++l)o[l]=r[l];return new ti(o,this._parents)}function EL(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var i=e[t],n=i.length-1,a=i[n],s;--n>=0;)(s=i[n])&&(a&&s.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(s,a),a=s);return this}function _L(e){e||(e=AL);function t(h,f){return h&&f?e(h.__data__,f.__data__):!h-!f}for(var r=this._groups,i=r.length,n=new Array(i),a=0;a<i;++a){for(var s=r[a],o=s.length,l=n[a]=new Array(o),u,c=0;c<o;++c)(u=s[c])&&(l[c]=u);l.sort(t)}return new ti(n,this._parents).order()}function AL(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function BL(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function LL(){return Array.from(this)}function IL(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length;n<a;++n){var s=i[n];if(s)return s}return null}function ML(){let e=0;for(const t of this)++e;return e}function NL(){return!this.node()}function FL(e){for(var t=this._groups,r=0,i=t.length;r<i;++r)for(var n=t[r],a=0,s=n.length,o;a<s;++a)(o=n[a])&&e.call(o,o.__data__,a,n);return this}function OL(e){return function(){this.removeAttribute(e)}}function DL(e){return function(){this.removeAttributeNS(e.space,e.local)}}function RL(e,t){return function(){this.setAttribute(e,t)}}function PL(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function $L(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function zL(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 HL(e,t){var r=uh(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?DL:OL:typeof t=="function"?r.local?zL:$L:r.local?PL:RL)(r,t))}function bx(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function qL(e){return function(){this.style.removeProperty(e)}}function UL(e,t,r){return function(){this.style.setProperty(e,t,r)}}function WL(e,t,r){return function(){var i=t.apply(this,arguments);i==null?this.style.removeProperty(e):this.style.setProperty(e,i,r)}}function jL(e,t,r){return arguments.length>1?this.each((t==null?qL:typeof t=="function"?WL:UL)(e,t,r??"")):$s(this.node(),e)}function $s(e,t){return e.style.getPropertyValue(t)||bx(e).getComputedStyle(e,null).getPropertyValue(t)}function YL(e){return function(){delete this[e]}}function VL(e,t){return function(){this[e]=t}}function GL(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function XL(e,t){return arguments.length>1?this.each((t==null?YL:typeof t=="function"?GL:VL)(e,t)):this.node()[e]}function yx(e){return e.trim().split(/^|\s+/)}function A1(e){return e.classList||new xx(e)}function xx(e){this._node=e,this._names=yx(e.getAttribute("class")||"")}xx.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 Cx(e,t){for(var r=A1(e),i=-1,n=t.length;++i<n;)r.add(t[i])}function kx(e,t){for(var r=A1(e),i=-1,n=t.length;++i<n;)r.remove(t[i])}function KL(e){return function(){Cx(this,e)}}function QL(e){return function(){kx(this,e)}}function ZL(e,t){return function(){(t.apply(this,arguments)?Cx:kx)(this,e)}}function JL(e,t){var r=yx(e+"");if(arguments.length<2){for(var i=A1(this.node()),n=-1,a=r.length;++n<a;)if(!i.contains(r[n]))return!1;return!0}return this.each((typeof t=="function"?ZL:t?KL:QL)(r,t))}function tI(){this.textContent=""}function eI(e){return function(){this.textContent=e}}function rI(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function iI(e){return arguments.length?this.each(e==null?tI:(typeof e=="function"?rI:eI)(e)):this.node().textContent}function nI(){this.innerHTML=""}function aI(e){return function(){this.innerHTML=e}}function sI(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function oI(e){return arguments.length?this.each(e==null?nI:(typeof e=="function"?sI:aI)(e)):this.node().innerHTML}function lI(){this.nextSibling&&this.parentNode.appendChild(this)}function uI(){return this.each(lI)}function cI(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hI(){return this.each(cI)}function dI(e){var t=typeof e=="function"?e:dx(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function fI(){return null}function pI(e,t){var r=typeof e=="function"?e:dx(e),i=t==null?fI:typeof t=="function"?t:_1(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),i.apply(this,arguments)||null)})}function mI(){var e=this.parentNode;e&&e.removeChild(this)}function gI(){return this.each(mI)}function bI(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function yI(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function xI(e){return this.select(e?yI:bI)}function CI(e){return arguments.length?this.property("__data__",e):this.node().__data__}function kI(e){return function(t){e.call(this,t,this.__data__)}}function TI(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 wI(e){return function(){var t=this.__on;if(t){for(var r=0,i=-1,n=t.length,a;r<n;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++i]=a;++i?t.length=i:delete this.__on}}}function vI(e,t,r){return function(){var i=this.__on,n,a=kI(t);if(i){for(var s=0,o=i.length;s<o;++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=a,n.options=r),n.value=t;return}}this.addEventListener(e.type,a,r),n={type:e.type,name:e.name,value:t,listener:a,options:r},i?i.push(n):this.__on=[n]}}function SI(e,t,r){var i=TI(e+""),n,a=i.length,s;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,u=o.length,c;l<u;++l)for(n=0,c=o[l];n<a;++n)if((s=i[n]).type===c.type&&s.name===c.name)return c.value}return}for(o=t?vI:wI,n=0;n<a;++n)this.each(o(i[n],t,r));return this}function Tx(e,t,r){var i=bx(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 EI(e,t){return function(){return Tx(this,e,t)}}function _I(e,t){return function(){return Tx(this,e,t.apply(this,arguments))}}function AI(e,t){return this.each((typeof t=="function"?_I:EI)(e,t))}function*BI(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],n=0,a=i.length,s;n<a;++n)(s=i[n])&&(yield s)}var wx=[null];function ti(e,t){this._groups=e,this._parents=t}function Nl(){return new ti([[document.documentElement]],wx)}function LI(){return this}ti.prototype=Nl.prototype={constructor:ti,select:rL,selectAll:sL,selectChild:cL,selectChildren:pL,filter:mL,data:kL,enter:gL,exit:wL,join:vL,merge:SL,selection:LI,order:EL,sort:_L,call:BL,nodes:LL,node:IL,size:ML,empty:NL,each:FL,attr:HL,style:jL,property:XL,classed:JL,text:iI,html:oI,raise:uI,lower:hI,append:dI,insert:pI,remove:gI,clone:xI,datum:CI,on:SI,dispatch:AI,[Symbol.iterator]:BI};function ie(e){return typeof e=="string"?new ti([[document.querySelector(e)]],[document.documentElement]):new ti([[e]],wx)}function B1(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function vx(e,t){var r=Object.create(e.prototype);for(var i in t)r[i]=t[i];return r}function Fl(){}var cl=.7,uc=1/cl,gs="\\s*([+-]?\\d+)\\s*",hl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",II=/^#([0-9a-f]{3,8})$/,MI=new RegExp(`^rgb\\(${gs},${gs},${gs}\\)$`),NI=new RegExp(`^rgb\\(${Xi},${Xi},${Xi}\\)$`),FI=new RegExp(`^rgba\\(${gs},${gs},${gs},${hl}\\)$`),OI=new RegExp(`^rgba\\(${Xi},${Xi},${Xi},${hl}\\)$`),DI=new RegExp(`^hsl\\(${hl},${Xi},${Xi}\\)$`),RI=new RegExp(`^hsla\\(${hl},${Xi},${Xi},${hl}\\)$`),Kg={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};B1(Fl,dl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Qg,formatHex:Qg,formatHex8:PI,formatHsl:$I,formatRgb:Zg,toString:Zg});function Qg(){return this.rgb().formatHex()}function PI(){return this.rgb().formatHex8()}function $I(){return Sx(this).formatHsl()}function Zg(){return this.rgb().formatRgb()}function dl(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=II.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Jg(t):r===3?new Yr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?su(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?su(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=MI.exec(e))?new Yr(t[1],t[2],t[3],1):(t=NI.exec(e))?new Yr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=FI.exec(e))?su(t[1],t[2],t[3],t[4]):(t=OI.exec(e))?su(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=DI.exec(e))?r2(t[1],t[2]/100,t[3]/100,1):(t=RI.exec(e))?r2(t[1],t[2]/100,t[3]/100,t[4]):Kg.hasOwnProperty(e)?Jg(Kg[e]):e==="transparent"?new Yr(NaN,NaN,NaN,0):null}function Jg(e){return new Yr(e>>16&255,e>>8&255,e&255,1)}function su(e,t,r,i){return i<=0&&(e=t=r=NaN),new Yr(e,t,r,i)}function zI(e){return e instanceof Fl||(e=dl(e)),e?(e=e.rgb(),new Yr(e.r,e.g,e.b,e.opacity)):new Yr}function $d(e,t,r,i){return arguments.length===1?zI(e):new Yr(e,t,r,i??1)}function Yr(e,t,r,i){this.r=+e,this.g=+t,this.b=+r,this.opacity=+i}B1(Yr,$d,vx(Fl,{brighter(e){return e=e==null?uc:Math.pow(uc,e),new Yr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?cl:Math.pow(cl,e),new Yr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yr(Ba(this.r),Ba(this.g),Ba(this.b),cc(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:t2,formatHex:t2,formatHex8:HI,formatRgb:e2,toString:e2}));function t2(){return`#${Sa(this.r)}${Sa(this.g)}${Sa(this.b)}`}function HI(){return`#${Sa(this.r)}${Sa(this.g)}${Sa(this.b)}${Sa((isNaN(this.opacity)?1:this.opacity)*255)}`}function e2(){const e=cc(this.opacity);return`${e===1?"rgb(":"rgba("}${Ba(this.r)}, ${Ba(this.g)}, ${Ba(this.b)}${e===1?")":`, ${e})`}`}function cc(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ba(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Sa(e){return e=Ba(e),(e<16?"0":"")+e.toString(16)}function r2(e,t,r,i){return i<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ki(e,t,r,i)}function Sx(e){if(e instanceof ki)return new ki(e.h,e.s,e.l,e.opacity);if(e instanceof Fl||(e=dl(e)),!e)return new ki;if(e instanceof ki)return e;e=e.rgb();var t=e.r/255,r=e.g/255,i=e.b/255,n=Math.min(t,r,i),a=Math.max(t,r,i),s=NaN,o=a-n,l=(a+n)/2;return o?(t===a?s=(r-i)/o+(r<i)*6:r===a?s=(i-t)/o+2:s=(t-r)/o+4,o/=l<.5?a+n:2-a-n,s*=60):o=l>0&&l<1?0:s,new ki(s,o,l,e.opacity)}function qI(e,t,r,i){return arguments.length===1?Sx(e):new ki(e,t,r,i??1)}function ki(e,t,r,i){this.h=+e,this.s=+t,this.l=+r,this.opacity=+i}B1(ki,qI,vx(Fl,{brighter(e){return e=e==null?uc:Math.pow(uc,e),new ki(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?cl:Math.pow(cl,e),new ki(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 Yr(b0(e>=240?e-240:e+120,n,i),b0(e,n,i),b0(e<120?e+240:e-120,n,i),this.opacity)},clamp(){return new ki(i2(this.h),ou(this.s),ou(this.l),cc(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=cc(this.opacity);return`${e===1?"hsl(":"hsla("}${i2(this.h)}, ${ou(this.s)*100}%, ${ou(this.l)*100}%${e===1?")":`, ${e})`}`}}));function i2(e){return e=(e||0)%360,e<0?e+360:e}function ou(e){return Math.max(0,Math.min(1,e||0))}function b0(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 L1=e=>()=>e;function Ex(e,t){return function(r){return e+r*t}}function UI(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 pet(e,t){var r=t-e;return r?Ex(e,r>180||r<-180?r-360*Math.round(r/360):r):L1(isNaN(e)?t:e)}function WI(e){return(e=+e)==1?_x:function(t,r){return r-t?UI(t,r,e):L1(isNaN(t)?r:t)}}function _x(e,t){var r=t-e;return r?Ex(e,r):L1(isNaN(e)?t:e)}const n2=(function e(t){var r=WI(t);function i(n,a){var s=r((n=$d(n)).r,(a=$d(a)).r),o=r(n.g,a.g),l=r(n.b,a.b),u=_x(n.opacity,a.opacity);return function(c){return n.r=s(c),n.g=o(c),n.b=l(c),n.opacity=u(c),n+""}}return i.gamma=e,i})(1);function zn(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var zd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,y0=new RegExp(zd.source,"g");function jI(e){return function(){return e}}function YI(e){return function(t){return e(t)+""}}function VI(e,t){var r=zd.lastIndex=y0.lastIndex=0,i,n,a,s=-1,o=[],l=[];for(e=e+"",t=t+"";(i=zd.exec(e))&&(n=y0.exec(t));)(a=n.index)>r&&(a=t.slice(r,a),o[s]?o[s]+=a:o[++s]=a),(i=i[0])===(n=n[0])?o[s]?o[s]+=n:o[++s]=n:(o[++s]=null,l.push({i:s,x:zn(i,n)})),r=y0.lastIndex;return r<t.length&&(a=t.slice(r),o[s]?o[s]+=a:o[++s]=a),o.length<2?l[0]?YI(l[0].x):jI(t):(t=l.length,function(u){for(var c=0,h;c<t;++c)o[(h=l[c]).i]=h.x(u);return o.join("")})}var a2=180/Math.PI,Hd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ax(e,t,r,i,n,a){var s,o,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*r+t*i)&&(r-=e*l,i-=t*l),(o=Math.sqrt(r*r+i*i))&&(r/=o,i/=o,l/=o),e*i<t*r&&(e=-e,t=-t,l=-l,s=-s),{translateX:n,translateY:a,rotate:Math.atan2(t,e)*a2,skewX:Math.atan(l)*a2,scaleX:s,scaleY:o}}var lu;function GI(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Hd:Ax(t.a,t.b,t.c,t.d,t.e,t.f)}function XI(e){return e==null||(lu||(lu=document.createElementNS("http://www.w3.org/2000/svg","g")),lu.setAttribute("transform",e),!(e=lu.transform.baseVal.consolidate()))?Hd:(e=e.matrix,Ax(e.a,e.b,e.c,e.d,e.e,e.f))}function Bx(e,t,r,i){function n(u){return u.length?u.pop()+" ":""}function a(u,c,h,f,d,p){if(u!==h||c!==f){var m=d.push("translate(",null,t,null,r);p.push({i:m-4,x:zn(u,h)},{i:m-2,x:zn(c,f)})}else(h||f)&&d.push("translate("+h+t+f+r)}function s(u,c,h,f){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),f.push({i:h.push(n(h)+"rotate(",null,i)-2,x:zn(u,c)})):c&&h.push(n(h)+"rotate("+c+i)}function o(u,c,h,f){u!==c?f.push({i:h.push(n(h)+"skewX(",null,i)-2,x:zn(u,c)}):c&&h.push(n(h)+"skewX("+c+i)}function l(u,c,h,f,d,p){if(u!==h||c!==f){var m=d.push(n(d)+"scale(",null,",",null,")");p.push({i:m-4,x:zn(u,h)},{i:m-2,x:zn(c,f)})}else(h!==1||f!==1)&&d.push(n(d)+"scale("+h+","+f+")")}return function(u,c){var h=[],f=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,h,f),s(u.rotate,c.rotate,h,f),o(u.skewX,c.skewX,h,f),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,h,f),u=c=null,function(d){for(var p=-1,m=f.length,g;++p<m;)h[(g=f[p]).i]=g.x(d);return h.join("")}}}var KI=Bx(GI,"px, ","px)","deg)"),QI=Bx(XI,", ",")",")"),zs=0,No=0,po=0,Lx=1e3,hc,Fo,dc=0,Da=0,ch=0,fl=typeof performance=="object"&&performance.now?performance:Date,Ix=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function I1(){return Da||(Ix(ZI),Da=fl.now()+ch)}function ZI(){Da=0}function fc(){this._call=this._time=this._next=null}fc.prototype=Mx.prototype={constructor:fc,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?I1():+r)+(t==null?0:+t),!this._next&&Fo!==this&&(Fo?Fo._next=this:hc=this,Fo=this),this._call=e,this._time=r,qd()},stop:function(){this._call&&(this._call=null,this._time=1/0,qd())}};function Mx(e,t,r){var i=new fc;return i.restart(e,t,r),i}function JI(){I1(),++zs;for(var e=hc,t;e;)(t=Da-e._time)>=0&&e._call.call(void 0,t),e=e._next;--zs}function s2(){Da=(dc=fl.now())+ch,zs=No=0;try{JI()}finally{zs=0,eM(),Da=0}}function tM(){var e=fl.now(),t=e-dc;t>Lx&&(ch-=t,dc=e)}function eM(){for(var e,t=hc,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:hc=r);Fo=e,qd(i)}function qd(e){if(!zs){No&&(No=clearTimeout(No));var t=e-Da;t>24?(e<1/0&&(No=setTimeout(s2,e-fl.now()-ch)),po&&(po=clearInterval(po))):(po||(dc=fl.now(),po=setInterval(tM,Lx)),zs=1,Ix(s2))}}function o2(e,t,r){var i=new fc;return t=t==null?0:+t,i.restart(n=>{i.stop(),e(n+t)},t,r),i}var rM=hx("start","end","cancel","interrupt"),iM=[],Nx=0,l2=1,Ud=2,Nu=3,u2=4,Wd=5,Fu=6;function hh(e,t,r,i,n,a){var s=e.__transition;if(!s)e.__transition={};else if(r in s)return;nM(e,r,{name:t,index:i,group:n,on:rM,tween:iM,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Nx})}function M1(e,t){var r=Bi(e,t);if(r.state>Nx)throw new Error("too late; already scheduled");return r}function sn(e,t){var r=Bi(e,t);if(r.state>Nu)throw new Error("too late; already running");return r}function Bi(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function nM(e,t,r){var i=e.__transition,n;i[t]=r,r.timer=Mx(a,0,r.time);function a(u){r.state=l2,r.timer.restart(s,r.delay,r.time),r.delay<=u&&s(u-r.delay)}function s(u){var c,h,f,d;if(r.state!==l2)return l();for(c in i)if(d=i[c],d.name===r.name){if(d.state===Nu)return o2(s);d.state===u2?(d.state=Fu,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[c]):+c<t&&(d.state=Fu,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[c])}if(o2(function(){r.state===Nu&&(r.state=u2,r.timer.restart(o,r.delay,r.time),o(u))}),r.state=Ud,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Ud){for(r.state=Nu,n=new Array(f=r.tween.length),c=0,h=-1;c<f;++c)(d=r.tween[c].value.call(e,e.__data__,r.index,r.group))&&(n[++h]=d);n.length=h+1}}function o(u){for(var c=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(l),r.state=Wd,1),h=-1,f=n.length;++h<f;)n[h].call(e,c);r.state===Wd&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=Fu,r.timer.stop(),delete i[t];for(var u in i)return;delete e.__transition}}function aM(e,t){var r=e.__transition,i,n,a=!0,s;if(r){t=t==null?null:t+"";for(s in r){if((i=r[s]).name!==t){a=!1;continue}n=i.state>Ud&&i.state<Wd,i.state=Fu,i.timer.stop(),i.on.call(n?"interrupt":"cancel",e,e.__data__,i.index,i.group),delete r[s]}a&&delete e.__transition}}function sM(e){return this.each(function(){aM(this,e)})}function oM(e,t){var r,i;return function(){var n=sn(this,e),a=n.tween;if(a!==r){i=r=a;for(var s=0,o=i.length;s<o;++s)if(i[s].name===t){i=i.slice(),i.splice(s,1);break}}n.tween=i}}function lM(e,t,r){var i,n;if(typeof r!="function")throw new Error;return function(){var a=sn(this,e),s=a.tween;if(s!==i){n=(i=s).slice();for(var o={name:t,value:r},l=0,u=n.length;l<u;++l)if(n[l].name===t){n[l]=o;break}l===u&&n.push(o)}a.tween=n}}function uM(e,t){var r=this._id;if(e+="",arguments.length<2){for(var i=Bi(this.node(),r).tween,n=0,a=i.length,s;n<a;++n)if((s=i[n]).name===e)return s.value;return null}return this.each((t==null?oM:lM)(r,e,t))}function N1(e,t,r){var i=e._id;return e.each(function(){var n=sn(this,i);(n.value||(n.value={}))[t]=r.apply(this,arguments)}),function(n){return Bi(n,i).value[t]}}function Fx(e,t){var r;return(typeof t=="number"?zn:t instanceof dl?n2:(r=dl(t))?(t=r,n2):VI)(e,t)}function cM(e){return function(){this.removeAttribute(e)}}function hM(e){return function(){this.removeAttributeNS(e.space,e.local)}}function dM(e,t,r){var i,n=r+"",a;return function(){var s=this.getAttribute(e);return s===n?null:s===i?a:a=t(i=s,r)}}function fM(e,t,r){var i,n=r+"",a;return function(){var s=this.getAttributeNS(e.space,e.local);return s===n?null:s===i?a:a=t(i=s,r)}}function pM(e,t,r){var i,n,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=o+"",s===l?null:s===i&&l===n?a:(n=l,a=t(i=s,o)))}}function mM(e,t,r){var i,n,a;return function(){var s,o=r(this),l;return o==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=o+"",s===l?null:s===i&&l===n?a:(n=l,a=t(i=s,o)))}}function gM(e,t){var r=uh(e),i=r==="transform"?QI:Fx;return this.attrTween(e,typeof t=="function"?(r.local?mM:pM)(r,i,N1(this,"attr."+e,t)):t==null?(r.local?hM:cM)(r):(r.local?fM:dM)(r,i,t))}function bM(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function yM(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function xM(e,t){var r,i;function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&yM(e,a)),r}return n._value=t,n}function CM(e,t){var r,i;function n(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&bM(e,a)),r}return n._value=t,n}function kM(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=uh(e);return this.tween(r,(i.local?xM:CM)(i,t))}function TM(e,t){return function(){M1(this,e).delay=+t.apply(this,arguments)}}function wM(e,t){return t=+t,function(){M1(this,e).delay=t}}function vM(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?TM:wM)(t,e)):Bi(this.node(),t).delay}function SM(e,t){return function(){sn(this,e).duration=+t.apply(this,arguments)}}function EM(e,t){return t=+t,function(){sn(this,e).duration=t}}function _M(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?SM:EM)(t,e)):Bi(this.node(),t).duration}function AM(e,t){if(typeof t!="function")throw new Error;return function(){sn(this,e).ease=t}}function BM(e){var t=this._id;return arguments.length?this.each(AM(t,e)):Bi(this.node(),t).ease}function LM(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;sn(this,e).ease=r}}function IM(e){if(typeof e!="function")throw new Error;return this.each(LM(this._id,e))}function MM(e){typeof e!="function"&&(e=px(e));for(var t=this._groups,r=t.length,i=new Array(r),n=0;n<r;++n)for(var a=t[n],s=a.length,o=i[n]=[],l,u=0;u<s;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&o.push(l);return new Tn(i,this._parents,this._name,this._id)}function NM(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,i=t.length,n=r.length,a=Math.min(i,n),s=new Array(i),o=0;o<a;++o)for(var l=t[o],u=r[o],c=l.length,h=s[o]=new Array(c),f,d=0;d<c;++d)(f=l[d]||u[d])&&(h[d]=f);for(;o<i;++o)s[o]=t[o];return new Tn(s,this._parents,this._name,this._id)}function FM(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 OM(e,t,r){var i,n,a=FM(t)?M1:sn;return function(){var s=a(this,e),o=s.on;o!==i&&(n=(i=o).copy()).on(t,r),s.on=n}}function DM(e,t){var r=this._id;return arguments.length<2?Bi(this.node(),r).on.on(e):this.each(OM(r,e,t))}function RM(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function PM(){return this.on("end.remove",RM(this._id))}function $M(e){var t=this._name,r=this._id;typeof e!="function"&&(e=_1(e));for(var i=this._groups,n=i.length,a=new Array(n),s=0;s<n;++s)for(var o=i[s],l=o.length,u=a[s]=new Array(l),c,h,f=0;f<l;++f)(c=o[f])&&(h=e.call(c,c.__data__,f,o))&&("__data__"in c&&(h.__data__=c.__data__),u[f]=h,hh(u[f],t,r,f,u,Bi(c,r)));return new Tn(a,this._parents,t,r)}function zM(e){var t=this._name,r=this._id;typeof e!="function"&&(e=fx(e));for(var i=this._groups,n=i.length,a=[],s=[],o=0;o<n;++o)for(var l=i[o],u=l.length,c,h=0;h<u;++h)if(c=l[h]){for(var f=e.call(c,c.__data__,h,l),d,p=Bi(c,r),m=0,g=f.length;m<g;++m)(d=f[m])&&hh(d,t,r,m,f,p);a.push(f),s.push(c)}return new Tn(a,s,t,r)}var HM=Nl.prototype.constructor;function qM(){return new HM(this._groups,this._parents)}function UM(e,t){var r,i,n;return function(){var a=$s(this,e),s=(this.style.removeProperty(e),$s(this,e));return a===s?null:a===r&&s===i?n:n=t(r=a,i=s)}}function Ox(e){return function(){this.style.removeProperty(e)}}function WM(e,t,r){var i,n=r+"",a;return function(){var s=$s(this,e);return s===n?null:s===i?a:a=t(i=s,r)}}function jM(e,t,r){var i,n,a;return function(){var s=$s(this,e),o=r(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(e),$s(this,e))),s===l?null:s===i&&l===n?a:(n=l,a=t(i=s,o))}}function YM(e,t){var r,i,n,a="style."+t,s="end."+a,o;return function(){var l=sn(this,e),u=l.on,c=l.value[a]==null?o||(o=Ox(t)):void 0;(u!==r||n!==c)&&(i=(r=u).copy()).on(s,n=c),l.on=i}}function VM(e,t,r){var i=(e+="")=="transform"?KI:Fx;return t==null?this.styleTween(e,UM(e,i)).on("end.style."+e,Ox(e)):typeof t=="function"?this.styleTween(e,jM(e,i,N1(this,"style."+e,t))).each(YM(this._id,e)):this.styleTween(e,WM(e,i,t),r).on("end.style."+e,null)}function GM(e,t,r){return function(i){this.style.setProperty(e,t.call(this,i),r)}}function XM(e,t,r){var i,n;function a(){var s=t.apply(this,arguments);return s!==n&&(i=(n=s)&&GM(e,s,r)),i}return a._value=t,a}function KM(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,XM(e,t,r??""))}function QM(e){return function(){this.textContent=e}}function ZM(e){return function(){var t=e(this);this.textContent=t??""}}function JM(e){return this.tween("text",typeof e=="function"?ZM(N1(this,"text",e)):QM(e==null?"":e+""))}function tN(e){return function(t){this.textContent=e.call(this,t)}}function eN(e){var t,r;function i(){var n=e.apply(this,arguments);return n!==r&&(t=(r=n)&&tN(n)),t}return i._value=e,i}function rN(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,eN(e))}function iN(){for(var e=this._name,t=this._id,r=Dx(),i=this._groups,n=i.length,a=0;a<n;++a)for(var s=i[a],o=s.length,l,u=0;u<o;++u)if(l=s[u]){var c=Bi(l,t);hh(l,e,r,u,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Tn(i,this._parents,e,r)}function nN(){var e,t,r=this,i=r._id,n=r.size();return new Promise(function(a,s){var o={value:s},l={value:function(){--n===0&&a()}};r.each(function(){var u=sn(this,i),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),u.on=t}),n===0&&a()})}var aN=0;function Tn(e,t,r,i){this._groups=e,this._parents=t,this._name=r,this._id=i}function Dx(){return++aN}var fn=Nl.prototype;Tn.prototype={constructor:Tn,select:$M,selectAll:zM,selectChild:fn.selectChild,selectChildren:fn.selectChildren,filter:MM,merge:NM,selection:qM,transition:iN,call:fn.call,nodes:fn.nodes,node:fn.node,size:fn.size,empty:fn.empty,each:fn.each,on:DM,attr:gM,attrTween:kM,style:VM,styleTween:KM,text:JM,textTween:rN,remove:PM,tween:uM,delay:vM,duration:_M,ease:BM,easeVarying:IM,end:nN,[Symbol.iterator]:fn[Symbol.iterator]};function sN(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var oN={time:null,delay:0,duration:250,ease:sN};function lN(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 uN(e){var t,r;e instanceof Tn?(t=e._id,e=e._name):(t=Dx(),(r=oN).time=I1(),e=e==null?null:e+"");for(var i=this._groups,n=i.length,a=0;a<n;++a)for(var s=i[a],o=s.length,l,u=0;u<o;++u)(l=s[u])&&hh(l,e,t,u,s,r||lN(l,t));return new Tn(i,this._parents,e,t)}Nl.prototype.interrupt=sM;Nl.prototype.transition=uN;const jd=Math.PI,Yd=2*jd,ba=1e-6,cN=Yd-ba;function Rx(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function hN(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Rx;const r=10**t;return function(i){this._+=i[0];for(let n=1,a=i.length;n<a;++n)this._+=Math.round(arguments[n]*r)/r+i[n]}}class dN{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Rx:hN(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,a,s){this._append`C${+t},${+r},${+i},${+n},${this._x1=+a},${this._y1=+s}`}arcTo(t,r,i,n,a){if(t=+t,r=+r,i=+i,n=+n,a=+a,a<0)throw new Error(`negative radius: ${a}`);let s=this._x1,o=this._y1,l=i-t,u=n-r,c=s-t,h=o-r,f=c*c+h*h;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(f>ba)if(!(Math.abs(h*l-u*c)>ba)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let d=i-s,p=n-o,m=l*l+u*u,g=d*d+p*p,y=Math.sqrt(m),k=Math.sqrt(f),w=a*Math.tan((jd-Math.acos((m+f-g)/(2*y*k)))/2),_=w/k,A=w/y;Math.abs(_-1)>ba&&this._append`L${t+_*c},${r+_*h}`,this._append`A${a},${a},0,0,${+(h*d>c*p)},${this._x1=t+A*l},${this._y1=r+A*u}`}}arc(t,r,i,n,a,s){if(t=+t,r=+r,i=+i,s=!!s,i<0)throw new Error(`negative radius: ${i}`);let o=i*Math.cos(n),l=i*Math.sin(n),u=t+o,c=r+l,h=1^s,f=s?n-a:a-n;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>ba||Math.abs(this._y1-c)>ba)&&this._append`L${u},${c}`,i&&(f<0&&(f=f%Yd+Yd),f>cN?this._append`A${i},${i},0,1,${h},${t-o},${r-l}A${i},${i},0,1,${h},${this._x1=u},${this._y1=c}`:f>ba&&this._append`A${i},${i},0,${+(f>=jd)},${h},${this._x1=t+i*Math.cos(a)},${this._y1=r+i*Math.sin(a)}`)}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 rs(e){return function(){return e}}const met=Math.abs,get=Math.atan2,bet=Math.cos,yet=Math.max,xet=Math.min,Cet=Math.sin,ket=Math.sqrt,c2=1e-12,F1=Math.PI,h2=F1/2,Tet=2*F1;function wet(e){return e>1?0:e<-1?F1:Math.acos(e)}function vet(e){return e>=1?h2:e<=-1?-h2:Math.asin(e)}function fN(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 dN(t)}function pN(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Px(e){this._context=e}Px.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 Vo(e){return new Px(e)}function mN(e){return e[0]}function gN(e){return e[1]}function bN(e,t){var r=rs(!0),i=null,n=Vo,a=null,s=fN(o);e=typeof e=="function"?e:e===void 0?mN:rs(e),t=typeof t=="function"?t:t===void 0?gN:rs(t);function o(l){var u,c=(l=pN(l)).length,h,f=!1,d;for(i==null&&(a=n(d=s())),u=0;u<=c;++u)!(u<c&&r(h=l[u],u,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(h,u,l),+t(h,u,l));if(d)return a=null,d+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:rs(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:rs(+l),o):t},o.defined=function(l){return arguments.length?(r=typeof l=="function"?l:rs(!!l),o):r},o.curve=function(l){return arguments.length?(n=l,i!=null&&(a=n(i)),o):n},o.context=function(l){return arguments.length?(l==null?i=a=null:a=n(i=l),o):i},o}class $x{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 zx(e){return new $x(e,!0)}function Hx(e){return new $x(e,!1)}function Jn(){}function pc(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 dh(e){this._context=e}dh.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:pc(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:pc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Vd(e){return new dh(e)}function qx(e){this._context=e}qx.prototype={areaStart:Jn,areaEnd:Jn,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:pc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yN(e){return new qx(e)}function Ux(e){this._context=e}Ux.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:pc(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function xN(e){return new Ux(e)}function Wx(e,t){this._basis=new dh(e),this._beta=t}Wx.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],a=e[r]-i,s=t[r]-n,o=-1,l;++o<=r;)l=o/r,this._basis.point(this._beta*e[o]+(1-this._beta)*(i+l*a),this._beta*t[o]+(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 CN=(function e(t){function r(i){return t===1?new dh(i):new Wx(i,t)}return r.beta=function(i){return e(+i)},r})(.85);function mc(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 O1(e,t){this._context=e,this._k=(1-t)/6}O1.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:mc(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:mc(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 jx=(function e(t){function r(i){return new O1(i,t)}return r.tension=function(i){return e(+i)},r})(0);function D1(e,t){this._context=e,this._k=(1-t)/6}D1.prototype={areaStart:Jn,areaEnd:Jn,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:mc(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 kN=(function e(t){function r(i){return new D1(i,t)}return r.tension=function(i){return e(+i)},r})(0);function R1(e,t){this._context=e,this._k=(1-t)/6}R1.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:mc(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 TN=(function e(t){function r(i){return new R1(i,t)}return r.tension=function(i){return e(+i)},r})(0);function P1(e,t,r){var i=e._x1,n=e._y1,a=e._x2,s=e._y2;if(e._l01_a>c2){var o=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*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,n=(n*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>c2){var u=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);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/c,s=(s*u+e._y1*e._l23_2a-r*e._l12_2a)/c}e._context.bezierCurveTo(i,n,a,s,e._x2,e._y2)}function Yx(e,t){this._context=e,this._alpha=t}Yx.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:P1(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 Vx=(function e(t){function r(i){return t?new Yx(i,t):new O1(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function Gx(e,t){this._context=e,this._alpha=t}Gx.prototype={areaStart:Jn,areaEnd:Jn,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:P1(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 wN=(function e(t){function r(i){return t?new Gx(i,t):new D1(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function Xx(e,t){this._context=e,this._alpha=t}Xx.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:P1(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 vN=(function e(t){function r(i){return t?new Xx(i,t):new R1(i,0)}return r.alpha=function(i){return e(+i)},r})(.5);function Kx(e){this._context=e}Kx.prototype={areaStart:Jn,areaEnd:Jn,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 SN(e){return new Kx(e)}function d2(e){return e<0?-1:1}function f2(e,t,r){var i=e._x1-e._x0,n=t-e._x1,a=(e._y1-e._y0)/(i||n<0&&-0),s=(r-e._y1)/(n||i<0&&-0),o=(a*n+s*i)/(i+n);return(d2(a)+d2(s))*Math.min(Math.abs(a),Math.abs(s),.5*Math.abs(o))||0}function p2(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function x0(e,t,r){var i=e._x0,n=e._y0,a=e._x1,s=e._y1,o=(a-i)/3;e._context.bezierCurveTo(i+o,n+o*t,a-o,s-o*r,a,s)}function gc(e){this._context=e}gc.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:x0(this,this._t0,p2(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,x0(this,p2(this,r=f2(this,e,t)),r);break;default:x0(this,this._t0,r=f2(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function Qx(e){this._context=new Zx(e)}(Qx.prototype=Object.create(gc.prototype)).point=function(e,t){gc.prototype.point.call(this,t,e)};function Zx(e){this._context=e}Zx.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,a){this._context.bezierCurveTo(t,e,i,r,a,n)}};function Jx(e){return new gc(e)}function t5(e){return new Qx(e)}function e5(e){this._context=e}e5.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=m2(e),n=m2(t),a=0,s=1;s<r;++a,++s)this._context.bezierCurveTo(i[0][a],n[0][a],i[1][a],n[1][a],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 m2(e){var t,r=e.length-1,i,n=new Array(r),a=new Array(r),s=new Array(r);for(n[0]=0,a[0]=2,s[0]=e[0]+2*e[1],t=1;t<r-1;++t)n[t]=1,a[t]=4,s[t]=4*e[t]+2*e[t+1];for(n[r-1]=2,a[r-1]=7,s[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)i=n[t]/a[t-1],a[t]-=i,s[t]-=i*s[t-1];for(n[r-1]=s[r-1]/a[r-1],t=r-2;t>=0;--t)n[t]=(s[t]-n[t+1])/a[t];for(a[r-1]=(e[r]+n[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-n[t+1];return[n,a]}function r5(e){return new e5(e)}function fh(e,t){this._context=e,this._t=t}fh.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 i5(e){return new fh(e,.5)}function n5(e){return new fh(e,0)}function a5(e){return new fh(e,1)}function Oo(e,t,r){this.k=e,this.x=t,this.y=r}Oo.prototype={constructor:Oo,scale:function(e){return e===1?this:new Oo(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Oo(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+")"}};Oo.prototype;var EN=C(e=>{var n;const{securityLevel:t}=me();let r=ie("body");if(t==="sandbox"){const s=((n=ie(`#i${e}`).node())==null?void 0:n.contentDocument)??document;r=ie(s.body)}return r.select(`#${e}`)},"selectSvgElement");function $1(e){return typeof e>"u"||e===null}C($1,"isNothing");function s5(e){return typeof e=="object"&&e!==null}C(s5,"isObject");function o5(e){return Array.isArray(e)?e:$1(e)?[]:[e]}C(o5,"toArray");function l5(e,t){var r,i,n,a;if(t)for(a=Object.keys(t),r=0,i=a.length;r<i;r+=1)n=a[r],e[n]=t[n];return e}C(l5,"extend");function u5(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}C(u5,"repeat");function c5(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}C(c5,"isNegativeZero");var _N=$1,AN=s5,BN=o5,LN=u5,IN=c5,MN=l5,Ke={isNothing:_N,isObject:AN,toArray:BN,repeat:LN,isNegativeZero:IN,extend:MN};function z1(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+=`
|
|
396
|
+
|
|
397
|
+
`+e.mark.snippet),i+" "+r):i}C(z1,"formatError");function Hs(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=z1(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}C(Hs,"YAMLException$1");Hs.prototype=Object.create(Error.prototype);Hs.prototype.constructor=Hs;Hs.prototype.toString=C(function(t){return this.name+": "+z1(this,t)},"toString");var jr=Hs;function Ou(e,t,r,i,n){var a="",s="",o=Math.floor(n/2)-1;return i-t>o&&(a=" ... ",t=i-o+a.length),r-i>o&&(s=" ...",r=i+o-s.length),{str:a+e.slice(t,r).replace(/\t/g,"→")+s,pos:i-t+a.length}}C(Ou,"getLine");function Du(e,t){return Ke.repeat(" ",t-e.length)+e}C(Du,"padStart");function h5(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=[],a,s=-1;a=r.exec(e.buffer);)n.push(a.index),i.push(a.index+a[0].length),e.position<=a.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);var o="",l,u,c=Math.min(e.line+t.linesAfter,n.length).toString().length,h=t.maxLength-(t.indent+c+3);for(l=1;l<=t.linesBefore&&!(s-l<0);l++)u=Ou(e.buffer,i[s-l],n[s-l],e.position-(i[s]-i[s-l]),h),o=Ke.repeat(" ",t.indent)+Du((e.line-l+1).toString(),c)+" | "+u.str+`
|
|
398
|
+
`+o;for(u=Ou(e.buffer,i[s],n[s],e.position,h),o+=Ke.repeat(" ",t.indent)+Du((e.line+1).toString(),c)+" | "+u.str+`
|
|
399
|
+
`,o+=Ke.repeat("-",t.indent+c+3+u.pos)+`^
|
|
400
|
+
`,l=1;l<=t.linesAfter&&!(s+l>=n.length);l++)u=Ou(e.buffer,i[s+l],n[s+l],e.position-(i[s]-i[s+l]),h),o+=Ke.repeat(" ",t.indent)+Du((e.line+l+1).toString(),c)+" | "+u.str+`
|
|
401
|
+
`;return o.replace(/\n$/,"")}C(h5,"makeSnippet");var NN=h5,FN=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ON=["scalar","sequence","mapping"];function d5(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}C(d5,"compileStyleAliases");function f5(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(FN.indexOf(r)===-1)throw new jr('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=d5(t.styleAliases||null),ON.indexOf(this.kind)===-1)throw new jr('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}C(f5,"Type$1");var kr=f5;function Gd(e,t){var r=[];return e[t].forEach(function(i){var n=r.length;r.forEach(function(a,s){a.tag===i.tag&&a.kind===i.kind&&a.multi===i.multi&&(n=s)}),r[n]=i}),r}C(Gd,"compileList");function p5(){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(C(i,"collectType"),t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}C(p5,"compileMap");function bc(e){return this.extend(e)}C(bc,"Schema$1");bc.prototype.extend=C(function(t){var r=[],i=[];if(t instanceof kr)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 jr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(a){if(!(a instanceof kr))throw new jr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(a.loadKind&&a.loadKind!=="scalar")throw new jr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(a.multi)throw new jr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(a){if(!(a instanceof kr))throw new jr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(bc.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(i),n.compiledImplicit=Gd(n,"implicit"),n.compiledExplicit=Gd(n,"explicit"),n.compiledTypeMap=p5(n.compiledImplicit,n.compiledExplicit),n},"extend");var DN=bc,RN=new kr("tag:yaml.org,2002:str",{kind:"scalar",construct:C(function(e){return e!==null?e:""},"construct")}),PN=new kr("tag:yaml.org,2002:seq",{kind:"sequence",construct:C(function(e){return e!==null?e:[]},"construct")}),$N=new kr("tag:yaml.org,2002:map",{kind:"mapping",construct:C(function(e){return e!==null?e:{}},"construct")}),zN=new DN({explicit:[RN,PN,$N]});function m5(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}C(m5,"resolveYamlNull");function g5(){return null}C(g5,"constructYamlNull");function b5(e){return e===null}C(b5,"isNull");var HN=new kr("tag:yaml.org,2002:null",{kind:"scalar",resolve:m5,construct:g5,predicate:b5,represent:{canonical:C(function(){return"~"},"canonical"),lowercase:C(function(){return"null"},"lowercase"),uppercase:C(function(){return"NULL"},"uppercase"),camelcase:C(function(){return"Null"},"camelcase"),empty:C(function(){return""},"empty")},defaultStyle:"lowercase"});function y5(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")}C(y5,"resolveYamlBoolean");function x5(e){return e==="true"||e==="True"||e==="TRUE"}C(x5,"constructYamlBoolean");function C5(e){return Object.prototype.toString.call(e)==="[object Boolean]"}C(C5,"isBoolean");var qN=new kr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:y5,construct:x5,predicate:C5,represent:{lowercase:C(function(e){return e?"true":"false"},"lowercase"),uppercase:C(function(e){return e?"TRUE":"FALSE"},"uppercase"),camelcase:C(function(e){return e?"True":"False"},"camelcase")},defaultStyle:"lowercase"});function k5(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}C(k5,"isHexCode");function T5(e){return 48<=e&&e<=55}C(T5,"isOctCode");function w5(e){return 48<=e&&e<=57}C(w5,"isDecCode");function v5(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(!k5(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}if(n==="o"){for(r++;r<t;r++)if(n=e[r],n!=="_"){if(!T5(e.charCodeAt(r)))return!1;i=!0}return i&&n!=="_"}}if(n==="_")return!1;for(;r<t;r++)if(n=e[r],n!=="_"){if(!w5(e.charCodeAt(r)))return!1;i=!0}return!(!i||n==="_")}C(v5,"resolveYamlInteger");function S5(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)}C(S5,"constructYamlInteger");function E5(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ke.isNegativeZero(e)}C(E5,"isInteger");var UN=new kr("tag:yaml.org,2002:int",{kind:"scalar",resolve:v5,construct:S5,predicate:E5,represent:{binary:C(function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},"binary"),octal:C(function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},"octal"),decimal:C(function(e){return e.toString(10)},"decimal"),hexadecimal:C(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"]}}),WN=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function _5(e){return!(e===null||!WN.test(e)||e[e.length-1]==="_")}C(_5,"resolveYamlFloat");function A5(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)}C(A5,"constructYamlFloat");var jN=/^[-+]?[0-9]+e/;function B5(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(Ke.isNegativeZero(e))return"-0.0";return r=e.toString(10),jN.test(r)?r.replace("e",".e"):r}C(B5,"representYamlFloat");function L5(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ke.isNegativeZero(e))}C(L5,"isFloat");var YN=new kr("tag:yaml.org,2002:float",{kind:"scalar",resolve:_5,construct:A5,predicate:L5,represent:B5,defaultStyle:"lowercase"}),I5=zN.extend({implicit:[HN,qN,UN,YN]}),VN=I5,M5=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),N5=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 F5(e){return e===null?!1:M5.exec(e)!==null||N5.exec(e)!==null}C(F5,"resolveYamlTimestamp");function O5(e){var t,r,i,n,a,s,o,l=0,u=null,c,h,f;if(t=M5.exec(e),t===null&&(t=N5.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(a=+t[4],s=+t[5],o=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(c=+t[10],h=+(t[11]||0),u=(c*60+h)*6e4,t[9]==="-"&&(u=-u)),f=new Date(Date.UTC(r,i,n,a,s,o,l)),u&&f.setTime(f.getTime()-u),f}C(O5,"constructYamlTimestamp");function D5(e){return e.toISOString()}C(D5,"representYamlTimestamp");var GN=new kr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:F5,construct:O5,instanceOf:Date,represent:D5});function R5(e){return e==="<<"||e===null}C(R5,"resolveYamlMerge");var XN=new kr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:R5}),H1=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
402
|
+
\r`;function P5(e){if(e===null)return!1;var t,r,i=0,n=e.length,a=H1;for(r=0;r<n;r++)if(t=a.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}C(P5,"resolveYamlBinary");function $5(e){var t,r,i=e.replace(/[\r\n=]/g,""),n=i.length,a=H1,s=0,o=[];for(t=0;t<n;t++)t%4===0&&t&&(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)),s=s<<6|a.indexOf(i.charAt(t));return r=n%4*6,r===0?(o.push(s>>16&255),o.push(s>>8&255),o.push(s&255)):r===18?(o.push(s>>10&255),o.push(s>>2&255)):r===12&&o.push(s>>4&255),new Uint8Array(o)}C($5,"constructYamlBinary");function z5(e){var t="",r=0,i,n,a=e.length,s=H1;for(i=0;i<a;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=a%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}C(z5,"representYamlBinary");function H5(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}C(H5,"isBinary");var KN=new kr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:P5,construct:$5,predicate:H5,represent:z5}),QN=Object.prototype.hasOwnProperty,ZN=Object.prototype.toString;function q5(e){if(e===null)return!0;var t=[],r,i,n,a,s,o=e;for(r=0,i=o.length;r<i;r+=1){if(n=o[r],s=!1,ZN.call(n)!=="[object Object]")return!1;for(a in n)if(QN.call(n,a))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(a)===-1)t.push(a);else return!1}return!0}C(q5,"resolveYamlOmap");function U5(e){return e!==null?e:[]}C(U5,"constructYamlOmap");var JN=new kr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:q5,construct:U5}),tF=Object.prototype.toString;function W5(e){if(e===null)return!0;var t,r,i,n,a,s=e;for(a=new Array(s.length),t=0,r=s.length;t<r;t+=1){if(i=s[t],tF.call(i)!=="[object Object]"||(n=Object.keys(i),n.length!==1))return!1;a[t]=[n[0],i[n[0]]]}return!0}C(W5,"resolveYamlPairs");function j5(e){if(e===null)return[];var t,r,i,n,a,s=e;for(a=new Array(s.length),t=0,r=s.length;t<r;t+=1)i=s[t],n=Object.keys(i),a[t]=[n[0],i[n[0]]];return a}C(j5,"constructYamlPairs");var eF=new kr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:W5,construct:j5}),rF=Object.prototype.hasOwnProperty;function Y5(e){if(e===null)return!0;var t,r=e;for(t in r)if(rF.call(r,t)&&r[t]!==null)return!1;return!0}C(Y5,"resolveYamlSet");function V5(e){return e!==null?e:{}}C(V5,"constructYamlSet");var iF=new kr("tag:yaml.org,2002:set",{kind:"mapping",resolve:Y5,construct:V5}),G5=VN.extend({implicit:[GN,XN],explicit:[KN,JN,eF,iF]}),ta=Object.prototype.hasOwnProperty,yc=1,X5=2,K5=3,xc=4,C0=1,nF=2,g2=3,aF=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,sF=/[\x85\u2028\u2029]/,oF=/[,\[\]\{\}]/,Q5=/^(?:!|!!|![a-z\-]+!)$/i,Z5=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Xd(e){return Object.prototype.toString.call(e)}C(Xd,"_class");function wi(e){return e===10||e===13}C(wi,"is_EOL");function Gn(e){return e===9||e===32}C(Gn,"is_WHITE_SPACE");function Nr(e){return e===9||e===32||e===10||e===13}C(Nr,"is_WS_OR_EOL");function Ea(e){return e===44||e===91||e===93||e===123||e===125}C(Ea,"is_FLOW_INDICATOR");function J5(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}C(J5,"fromHexCode");function t6(e){return e===120?2:e===117?4:e===85?8:0}C(t6,"escapedHexLen");function e6(e){return 48<=e&&e<=57?e-48:-1}C(e6,"fromDecimalCode");function Kd(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
403
|
+
`: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":""}C(Kd,"simpleEscapeSequence");function r6(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}C(r6,"charFromCodepoint");function q1(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}C(q1,"setProperty");var i6=new Array(256),n6=new Array(256);for(fa=0;fa<256;fa++)i6[fa]=Kd(fa)?1:0,n6[fa]=Kd(fa);var fa;function a6(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||G5,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=[]}C(a6,"State$1");function U1(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=NN(r),new jr(t,r)}C(U1,"generateError");function Pt(e,t){throw U1(e,t)}C(Pt,"throwError");function pl(e,t){e.onWarning&&e.onWarning.call(null,U1(e,t))}C(pl,"throwWarning");var b2={YAML:C(function(t,r,i){var n,a,s;t.version!==null&&Pt(t,"duplication of %YAML directive"),i.length!==1&&Pt(t,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),n===null&&Pt(t,"ill-formed argument of the YAML directive"),a=parseInt(n[1],10),s=parseInt(n[2],10),a!==1&&Pt(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=s<2,s!==1&&s!==2&&pl(t,"unsupported YAML version of the document")},"handleYamlDirective"),TAG:C(function(t,r,i){var n,a;i.length!==2&&Pt(t,"TAG directive accepts exactly two arguments"),n=i[0],a=i[1],Q5.test(n)||Pt(t,"ill-formed tag handle (first argument) of the TAG directive"),ta.call(t.tagMap,n)&&Pt(t,'there is a previously declared suffix for "'+n+'" tag handle'),Z5.test(a)||Pt(t,"ill-formed tag prefix (second argument) of the TAG directive");try{a=decodeURIComponent(a)}catch{Pt(t,"tag prefix is malformed: "+a)}t.tagMap[n]=a},"handleTagDirective")};function Cn(e,t,r,i){var n,a,s,o;if(t<r){if(o=e.input.slice(t,r),i)for(n=0,a=o.length;n<a;n+=1)s=o.charCodeAt(n),s===9||32<=s&&s<=1114111||Pt(e,"expected valid JSON character");else aF.test(o)&&Pt(e,"the stream contains non-printable characters");e.result+=o}}C(Cn,"captureSegment");function Qd(e,t,r,i){var n,a,s,o;for(Ke.isObject(r)||Pt(e,"cannot merge mappings; the provided source object is unacceptable"),n=Object.keys(r),s=0,o=n.length;s<o;s+=1)a=n[s],ta.call(t,a)||(q1(t,a,r[a]),i[a]=!0)}C(Qd,"mergeMappings");function _a(e,t,r,i,n,a,s,o,l){var u,c;if(Array.isArray(n))for(n=Array.prototype.slice.call(n),u=0,c=n.length;u<c;u+=1)Array.isArray(n[u])&&Pt(e,"nested arrays are not supported inside keys"),typeof n=="object"&&Xd(n[u])==="[object Object]"&&(n[u]="[object Object]");if(typeof n=="object"&&Xd(n)==="[object Object]"&&(n="[object Object]"),n=String(n),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(a))for(u=0,c=a.length;u<c;u+=1)Qd(e,t,a[u],r);else Qd(e,t,a,r);else!e.json&&!ta.call(r,n)&&ta.call(t,n)&&(e.line=s||e.line,e.lineStart=o||e.lineStart,e.position=l||e.position,Pt(e,"duplicated mapping key")),q1(t,n,a),delete r[n];return t}C(_a,"storeMappingPair");function ph(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++):Pt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}C(ph,"readLineBreak");function Pe(e,t,r){for(var i=0,n=e.input.charCodeAt(e.position);n!==0;){for(;Gn(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(wi(n))for(ph(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&&pl(e,"deficient indentation"),i}C(Pe,"skipSeparationSpace");function Ol(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||Nr(r)))}C(Ol,"testDocumentSeparator");function mh(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ke.repeat(`
|
|
404
|
+
`,t-1))}C(mh,"writeFoldedLines");function s6(e,t,r){var i,n,a,s,o,l,u,c,h=e.kind,f=e.result,d;if(d=e.input.charCodeAt(e.position),Nr(d)||Ea(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),Nr(n)||r&&Ea(n)))return!1;for(e.kind="scalar",e.result="",a=s=e.position,o=!1;d!==0;){if(d===58){if(n=e.input.charCodeAt(e.position+1),Nr(n)||r&&Ea(n))break}else if(d===35){if(i=e.input.charCodeAt(e.position-1),Nr(i))break}else{if(e.position===e.lineStart&&Ol(e)||r&&Ea(d))break;if(wi(d))if(l=e.line,u=e.lineStart,c=e.lineIndent,Pe(e,!1,-1),e.lineIndent>=t){o=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=l,e.lineStart=u,e.lineIndent=c;break}}o&&(Cn(e,a,s,!1),mh(e,e.line-l),a=s=e.position,o=!1),Gn(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position)}return Cn(e,a,s,!1),e.result?!0:(e.kind=h,e.result=f,!1)}C(s6,"readPlainScalar");function o6(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(Cn(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 wi(r)?(Cn(e,i,n,!0),mh(e,Pe(e,!1,t)),i=n=e.position):e.position===e.lineStart&&Ol(e)?Pt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);Pt(e,"unexpected end of the stream within a single quoted scalar")}C(o6,"readSingleQuotedScalar");function l6(e,t){var r,i,n,a,s,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return Cn(e,r,e.position,!0),e.position++,!0;if(o===92){if(Cn(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),wi(o))Pe(e,!1,t);else if(o<256&&i6[o])e.result+=n6[o],e.position++;else if((s=t6(o))>0){for(n=s,a=0;n>0;n--)o=e.input.charCodeAt(++e.position),(s=J5(o))>=0?a=(a<<4)+s:Pt(e,"expected hexadecimal character");e.result+=r6(a),e.position++}else Pt(e,"unknown escape sequence");r=i=e.position}else wi(o)?(Cn(e,r,i,!0),mh(e,Pe(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Ol(e)?Pt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}Pt(e,"unexpected end of the stream within a double quoted scalar")}C(l6,"readDoubleQuotedScalar");function u6(e,t){var r=!0,i,n,a,s=e.tag,o,l=e.anchor,u,c,h,f,d,p=Object.create(null),m,g,y,k;if(k=e.input.charCodeAt(e.position),k===91)c=93,d=!1,o=[];else if(k===123)c=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),k=e.input.charCodeAt(++e.position);k!==0;){if(Pe(e,!0,t),k=e.input.charCodeAt(e.position),k===c)return e.position++,e.tag=s,e.anchor=l,e.kind=d?"mapping":"sequence",e.result=o,!0;r?k===44&&Pt(e,"expected the node content, but found ','"):Pt(e,"missed comma between flow collection entries"),g=m=y=null,h=f=!1,k===63&&(u=e.input.charCodeAt(e.position+1),Nr(u)&&(h=f=!0,e.position++,Pe(e,!0,t))),i=e.line,n=e.lineStart,a=e.position,Ra(e,t,yc,!1,!0),g=e.tag,m=e.result,Pe(e,!0,t),k=e.input.charCodeAt(e.position),(f||e.line===i)&&k===58&&(h=!0,k=e.input.charCodeAt(++e.position),Pe(e,!0,t),Ra(e,t,yc,!1,!0),y=e.result),d?_a(e,o,p,g,m,y,i,n,a):h?o.push(_a(e,null,p,g,m,y,i,n,a)):o.push(m),Pe(e,!0,t),k=e.input.charCodeAt(e.position),k===44?(r=!0,k=e.input.charCodeAt(++e.position)):r=!1}Pt(e,"unexpected end of the stream within a flow collection")}C(u6,"readFlowCollection");function c6(e,t){var r,i,n=C0,a=!1,s=!1,o=t,l=0,u=!1,c,h;if(h=e.input.charCodeAt(e.position),h===124)i=!1;else if(h===62)i=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)C0===n?n=h===43?g2:nF:Pt(e,"repeat of a chomping mode identifier");else if((c=e6(h))>=0)c===0?Pt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):s?Pt(e,"repeat of an indentation width identifier"):(o=t+c-1,s=!0);else break;if(Gn(h)){do h=e.input.charCodeAt(++e.position);while(Gn(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!wi(h)&&h!==0)}for(;h!==0;){for(ph(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!s||e.lineIndent<o)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!s&&e.lineIndent>o&&(o=e.lineIndent),wi(h)){l++;continue}if(e.lineIndent<o){n===g2?e.result+=Ke.repeat(`
|
|
405
|
+
`,a?1+l:l):n===C0&&a&&(e.result+=`
|
|
406
|
+
`);break}for(i?Gn(h)?(u=!0,e.result+=Ke.repeat(`
|
|
407
|
+
`,a?1+l:l)):u?(u=!1,e.result+=Ke.repeat(`
|
|
408
|
+
`,l+1)):l===0?a&&(e.result+=" "):e.result+=Ke.repeat(`
|
|
409
|
+
`,l):e.result+=Ke.repeat(`
|
|
410
|
+
`,a?1+l:l),a=!0,s=!0,l=0,r=e.position;!wi(h)&&h!==0;)h=e.input.charCodeAt(++e.position);Cn(e,r,e.position,!1)}return!0}C(c6,"readBlockScalar");function Zd(e,t){var r,i=e.tag,n=e.anchor,a=[],s,o=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Pt(e,"tab characters must not be used in indentation")),!(l!==45||(s=e.input.charCodeAt(e.position+1),!Nr(s))));){if(o=!0,e.position++,Pe(e,!0,-1)&&e.lineIndent<=t){a.push(null),l=e.input.charCodeAt(e.position);continue}if(r=e.line,Ra(e,t,K5,!1,!0),a.push(e.result),Pe(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&l!==0)Pt(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=i,e.anchor=n,e.kind="sequence",e.result=a,!0):!1}C(Zd,"readBlockSequence");function h6(e,t,r){var i,n,a,s,o,l,u=e.tag,c=e.anchor,h={},f=Object.create(null),d=null,p=null,m=null,g=!1,y=!1,k;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),k=e.input.charCodeAt(e.position);k!==0;){if(!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Pt(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),a=e.line,(k===63||k===58)&&Nr(i))k===63?(g&&(_a(e,h,f,d,p,null,s,o,l),d=p=m=null),y=!0,g=!0,n=!0):g?(g=!1,n=!0):Pt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,k=i;else{if(s=e.line,o=e.lineStart,l=e.position,!Ra(e,r,X5,!1,!0))break;if(e.line===a){for(k=e.input.charCodeAt(e.position);Gn(k);)k=e.input.charCodeAt(++e.position);if(k===58)k=e.input.charCodeAt(++e.position),Nr(k)||Pt(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(_a(e,h,f,d,p,null,s,o,l),d=p=m=null),y=!0,g=!1,n=!1,d=e.tag,p=e.result;else if(y)Pt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=c,!0}else if(y)Pt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=c,!0}if((e.line===a||e.lineIndent>t)&&(g&&(s=e.line,o=e.lineStart,l=e.position),Ra(e,t,xc,!0,n)&&(g?p=e.result:m=e.result),g||(_a(e,h,f,d,p,m,s,o,l),d=p=m=null),Pe(e,!0,-1),k=e.input.charCodeAt(e.position)),(e.line===a||e.lineIndent>t)&&k!==0)Pt(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&_a(e,h,f,d,p,null,s,o,l),y&&(e.tag=u,e.anchor=c,e.kind="mapping",e.result=h),y}C(h6,"readBlockMapping");function d6(e){var t,r=!1,i=!1,n,a,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&Pt(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?(a=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Pt(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Nr(s);)s===33&&(i?Pt(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),Q5.test(n)||Pt(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);a=e.input.slice(t,e.position),oF.test(a)&&Pt(e,"tag suffix cannot contain flow indicator characters")}a&&!Z5.test(a)&&Pt(e,"tag name cannot contain such characters: "+a);try{a=decodeURIComponent(a)}catch{Pt(e,"tag name is malformed: "+a)}return r?e.tag=a:ta.call(e.tagMap,n)?e.tag=e.tagMap[n]+a:n==="!"?e.tag="!"+a:n==="!!"?e.tag="tag:yaml.org,2002:"+a:Pt(e,'undeclared tag handle "'+n+'"'),!0}C(d6,"readTagProperty");function f6(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Pt(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Nr(r)&&!Ea(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Pt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}C(f6,"readAnchorProperty");function p6(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&&!Nr(i)&&!Ea(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&Pt(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ta.call(e.anchorMap,r)||Pt(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Pe(e,!0,-1),!0}C(p6,"readAlias");function Ra(e,t,r,i,n){var a,s,o,l=1,u=!1,c=!1,h,f,d,p,m,g;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=o=xc===r||K5===r,i&&Pe(e,!0,-1)&&(u=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;d6(e)||f6(e);)Pe(e,!0,-1)?(u=!0,o=a,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):o=!1;if(o&&(o=u||n),(l===1||xc===r)&&(yc===r||X5===r?m=t:m=t+1,g=e.position-e.lineStart,l===1?o&&(Zd(e,g)||h6(e,g,m))||u6(e,m)?c=!0:(s&&c6(e,m)||o6(e,m)||l6(e,m)?c=!0:p6(e)?(c=!0,(e.tag!==null||e.anchor!==null)&&Pt(e,"alias node should not have any properties")):s6(e,m,yc===r)&&(c=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(c=o&&Zd(e,g))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Pt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,f=e.implicitTypes.length;h<f;h+=1)if(p=e.implicitTypes[h],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ta.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],h=0,f=d.length;h<f;h+=1)if(e.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||Pt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&Pt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Pt(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}C(Ra,"composeNode");function m6(e){var t=e.position,r,i,n,a=!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&&(Pe(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(a=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!Nr(s);)s=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),n=[],i.length<1&&Pt(e,"directive name must not be less than one character in length");s!==0;){for(;Gn(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!wi(s));break}if(wi(s))break;for(r=e.position;s!==0&&!Nr(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(r,e.position))}s!==0&&ph(e),ta.call(b2,i)?b2[i](e,i,n):pl(e,'unknown document directive "'+i+'"')}if(Pe(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,Pe(e,!0,-1)):a&&Pt(e,"directives end mark is expected"),Ra(e,e.lineIndent-1,xc,!1,!0),Pe(e,!0,-1),e.checkLineBreaks&&sF.test(e.input.slice(t,e.position))&&pl(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ol(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Pe(e,!0,-1));return}if(e.position<e.length-1)Pt(e,"end of the stream or a document separator is expected");else return}C(m6,"readDocument");function W1(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
411
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new a6(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,Pt(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;)m6(r);return r.documents}C(W1,"loadDocuments");function lF(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var i=W1(e,r);if(typeof t!="function")return i;for(var n=0,a=i.length;n<a;n+=1)t(i[n])}C(lF,"loadAll$1");function g6(e,t){var r=W1(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new jr("expected a single document in the stream, but found more")}}C(g6,"load$1");var uF=g6,cF={load:uF},b6=Object.prototype.toString,y6=Object.prototype.hasOwnProperty,j1=65279,hF=9,ml=10,dF=13,fF=32,pF=33,mF=34,Jd=35,gF=37,bF=38,yF=39,xF=42,x6=44,CF=45,Cc=58,kF=61,TF=62,wF=63,vF=64,C6=91,k6=93,SF=96,T6=123,EF=124,w6=125,Tr={};Tr[0]="\\0";Tr[7]="\\a";Tr[8]="\\b";Tr[9]="\\t";Tr[10]="\\n";Tr[11]="\\v";Tr[12]="\\f";Tr[13]="\\r";Tr[27]="\\e";Tr[34]='\\"';Tr[92]="\\\\";Tr[133]="\\N";Tr[160]="\\_";Tr[8232]="\\L";Tr[8233]="\\P";var _F=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],AF=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function v6(e,t){var r,i,n,a,s,o,l;if(t===null)return{};for(r={},i=Object.keys(t),n=0,a=i.length;n<a;n+=1)s=i[n],o=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),l=e.compiledTypeMap.fallback[s],l&&y6.call(l.styleAliases,o)&&(o=l.styleAliases[o]),r[s]=o;return r}C(v6,"compileStyleMap");function S6(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 jr("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ke.repeat("0",i-t.length)+t}C(S6,"encodeHex");var BF=1,gl=2;function E6(e){this.schema=e.schema||G5,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ke.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=v6(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==='"'?gl:BF,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}C(E6,"State");function tf(e,t){for(var r=Ke.repeat(" ",t),i=0,n=-1,a="",s,o=e.length;i<o;)n=e.indexOf(`
|
|
412
|
+
`,i),n===-1?(s=e.slice(i),i=o):(s=e.slice(i,n+1),i=n+1),s.length&&s!==`
|
|
413
|
+
`&&(a+=r),a+=s;return a}C(tf,"indentString");function kc(e,t){return`
|
|
414
|
+
`+Ke.repeat(" ",e.indent*t)}C(kc,"generateNextLine");function _6(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}C(_6,"testImplicitResolving");function bl(e){return e===fF||e===hF}C(bl,"isWhitespace");function qs(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==j1||65536<=e&&e<=1114111}C(qs,"isPrintable");function ef(e){return qs(e)&&e!==j1&&e!==dF&&e!==ml}C(ef,"isNsCharOrWhitespace");function rf(e,t,r){var i=ef(e),n=i&&!bl(e);return(r?i:i&&e!==x6&&e!==C6&&e!==k6&&e!==T6&&e!==w6)&&e!==Jd&&!(t===Cc&&!n)||ef(t)&&!bl(t)&&e===Jd||t===Cc&&n}C(rf,"isPlainSafe");function A6(e){return qs(e)&&e!==j1&&!bl(e)&&e!==CF&&e!==wF&&e!==Cc&&e!==x6&&e!==C6&&e!==k6&&e!==T6&&e!==w6&&e!==Jd&&e!==bF&&e!==xF&&e!==pF&&e!==EF&&e!==kF&&e!==TF&&e!==yF&&e!==mF&&e!==gF&&e!==vF&&e!==SF}C(A6,"isPlainSafeFirst");function B6(e){return!bl(e)&&e!==Cc}C(B6,"isPlainSafeLast");function hs(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}C(hs,"codePointAt");function Y1(e){var t=/^\n* /;return t.test(e)}C(Y1,"needIndentIndicator");var L6=1,nf=2,I6=3,M6=4,os=5;function N6(e,t,r,i,n,a,s,o){var l,u=0,c=null,h=!1,f=!1,d=i!==-1,p=-1,m=A6(hs(e,0))&&B6(hs(e,e.length-1));if(t||s)for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=hs(e,l),!qs(u))return os;m=m&&rf(u,c,o),c=u}else{for(l=0;l<e.length;u>=65536?l+=2:l++){if(u=hs(e,l),u===ml)h=!0,d&&(f=f||l-p-1>i&&e[p+1]!==" ",p=l);else if(!qs(u))return os;m=m&&rf(u,c,o),c=u}f=f||d&&l-p-1>i&&e[p+1]!==" "}return!h&&!f?m&&!s&&!n(e)?L6:a===gl?os:nf:r>9&&Y1(e)?os:s?a===gl?os:nf:f?M6:I6}C(N6,"chooseScalarStyle");function F6(e,t,r,i,n){e.dump=(function(){if(t.length===0)return e.quotingType===gl?'""':"''";if(!e.noCompatMode&&(_F.indexOf(t)!==-1||AF.test(t)))return e.quotingType===gl?'"'+t+'"':"'"+t+"'";var a=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a),o=i||e.flowLevel>-1&&r>=e.flowLevel;function l(u){return _6(e,u)}switch(C(l,"testAmbiguity"),N6(t,o,e.indent,s,l,e.quotingType,e.forceQuotes&&!i,n)){case L6:return t;case nf:return"'"+t.replace(/'/g,"''")+"'";case I6:return"|"+af(t,e.indent)+sf(tf(t,a));case M6:return">"+af(t,e.indent)+sf(tf(O6(t,s),a));case os:return'"'+D6(t)+'"';default:throw new jr("impossible error: invalid scalar style")}})()}C(F6,"writeScalar");function af(e,t){var r=Y1(e)?String(t):"",i=e[e.length-1]===`
|
|
415
|
+
`,n=i&&(e[e.length-2]===`
|
|
416
|
+
`||e===`
|
|
417
|
+
`),a=n?"+":i?"":"-";return r+a+`
|
|
418
|
+
`}C(af,"blockHeader");function sf(e){return e[e.length-1]===`
|
|
419
|
+
`?e.slice(0,-1):e}C(sf,"dropEndingNewline");function O6(e,t){for(var r=/(\n+)([^\n]*)/g,i=(function(){var u=e.indexOf(`
|
|
420
|
+
`);return u=u!==-1?u:e.length,r.lastIndex=u,of(e.slice(0,u),t)})(),n=e[0]===`
|
|
421
|
+
`||e[0]===" ",a,s;s=r.exec(e);){var o=s[1],l=s[2];a=l[0]===" ",i+=o+(!n&&!a&&l!==""?`
|
|
422
|
+
`:"")+of(l,t),n=a}return i}C(O6,"foldString");function of(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,i,n=0,a,s=0,o=0,l="";i=r.exec(e);)o=i.index,o-n>t&&(a=s>n?s:o,l+=`
|
|
423
|
+
`+e.slice(n,a),n=a+1),s=o;return l+=`
|
|
424
|
+
`,e.length-n>t&&s>n?l+=e.slice(n,s)+`
|
|
425
|
+
`+e.slice(s+1):l+=e.slice(n),l.slice(1)}C(of,"foldLine");function D6(e){for(var t="",r=0,i,n=0;n<e.length;r>=65536?n+=2:n++)r=hs(e,n),i=Tr[r],!i&&qs(r)?(t+=e[n],r>=65536&&(t+=e[n+1])):t+=i||S6(r);return t}C(D6,"escapeString");function R6(e,t,r){var i="",n=e.tag,a,s,o;for(a=0,s=r.length;a<s;a+=1)o=r[a],e.replacer&&(o=e.replacer.call(r,String(a),o)),(Zi(e,t,o,!1,!1)||typeof o>"u"&&Zi(e,t,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=n,e.dump="["+i+"]"}C(R6,"writeFlowSequence");function lf(e,t,r,i){var n="",a=e.tag,s,o,l;for(s=0,o=r.length;s<o;s+=1)l=r[s],e.replacer&&(l=e.replacer.call(r,String(s),l)),(Zi(e,t+1,l,!0,!0,!1,!0)||typeof l>"u"&&Zi(e,t+1,null,!0,!0,!1,!0))&&((!i||n!=="")&&(n+=kc(e,t)),e.dump&&ml===e.dump.charCodeAt(0)?n+="-":n+="- ",n+=e.dump);e.tag=a,e.dump=n||"[]"}C(lf,"writeBlockSequence");function P6(e,t,r){var i="",n=e.tag,a=Object.keys(r),s,o,l,u,c;for(s=0,o=a.length;s<o;s+=1)c="",i!==""&&(c+=", "),e.condenseFlow&&(c+='"'),l=a[s],u=r[l],e.replacer&&(u=e.replacer.call(r,l,u)),Zi(e,t,l,!1,!1)&&(e.dump.length>1024&&(c+="? "),c+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Zi(e,t,u,!1,!1)&&(c+=e.dump,i+=c));e.tag=n,e.dump="{"+i+"}"}C(P6,"writeFlowMapping");function $6(e,t,r,i){var n="",a=e.tag,s=Object.keys(r),o,l,u,c,h,f;if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys=="function")s.sort(e.sortKeys);else if(e.sortKeys)throw new jr("sortKeys must be a boolean or a function");for(o=0,l=s.length;o<l;o+=1)f="",(!i||n!=="")&&(f+=kc(e,t)),u=s[o],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),Zi(e,t+1,u,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&ml===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,h&&(f+=kc(e,t)),Zi(e,t+1,c,!0,h)&&(e.dump&&ml===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,n+=f));e.tag=a,e.dump=n||"{}"}C($6,"writeBlockMapping");function uf(e,t,r){var i,n,a,s,o,l;for(n=r?e.explicitTypes:e.implicitTypes,a=0,s=n.length;a<s;a+=1)if(o=n[a],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(l=e.styleMap[o.tag]||o.defaultStyle,b6.call(o.represent)==="[object Function]")i=o.represent(t,l);else if(y6.call(o.represent,l))i=o.represent[l](t,l);else throw new jr("!<"+o.tag+'> tag resolver accepts not "'+l+'" style');e.dump=i}return!0}return!1}C(uf,"detectType");function Zi(e,t,r,i,n,a,s){e.tag=null,e.dump=r,uf(e,r,!1)||uf(e,r,!0);var o=b6.call(e.dump),l=i,u;i&&(i=e.flowLevel<0||e.flowLevel>t);var c=o==="[object Object]"||o==="[object Array]",h,f;if(c&&(h=e.duplicates.indexOf(r),f=h!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&t>0)&&(n=!1),f&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(c&&f&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),o==="[object Object]")i&&Object.keys(e.dump).length!==0?($6(e,t,e.dump,n),f&&(e.dump="&ref_"+h+e.dump)):(P6(e,t,e.dump),f&&(e.dump="&ref_"+h+" "+e.dump));else if(o==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!s&&t>0?lf(e,t-1,e.dump,n):lf(e,t,e.dump,n),f&&(e.dump="&ref_"+h+e.dump)):(R6(e,t,e.dump),f&&(e.dump="&ref_"+h+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&F6(e,e.dump,t,a,l);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new jr("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}C(Zi,"writeNode");function z6(e,t){var r=[],i=[],n,a;for(Tc(e,r,i),n=0,a=i.length;n<a;n+=1)t.duplicates.push(r[i[n]]);t.usedDuplicates=new Array(a)}C(z6,"getDuplicateReferences");function Tc(e,t,r){var i,n,a;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,a=e.length;n<a;n+=1)Tc(e[n],t,r);else for(i=Object.keys(e),n=0,a=i.length;n<a;n+=1)Tc(e[i[n]],t,r)}C(Tc,"inspectNode");function LF(e,t){t=t||{};var r=new E6(t);r.noRefs||z6(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),Zi(r,0,i,!0,!0)?r.dump+`
|
|
426
|
+
`:""}C(LF,"dump$1");function IF(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.")}}C(IF,"renamed");var MF=I5,NF=cF.load;/*! Bundled license information:
|
|
427
|
+
|
|
428
|
+
js-yaml/dist/js-yaml.mjs:
|
|
429
|
+
(*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
|
|
430
|
+
*/var FF=C(e=>{const{handDrawnSeed:t}=me();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},"solidStateFill"),to=C(e=>{const t=OF([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),OF=C(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"),H6=C(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"),Nt=C(e=>{const{stylesArray:t}=to(e),r=[],i=[],n=[],a=[];return t.forEach(s=>{const o=s[0];H6(o)?r.push(s.join(":")+" !important"):(i.push(s.join(":")+" !important"),o.includes("stroke")&&n.push(s.join(":")+" !important"),o==="fill"&&a.push(s.join(":")+" !important"))}),{labelStyles:r.join(";"),nodeStyles:i.join(";"),stylesArray:t,borderStyles:n,backgroundStyles:a}},"styles2String"),Lt=C((e,t)=>{var l;const{themeVariables:r,handDrawnSeed:i}=me(),{nodeBorder:n,mainBkg:a}=r,{stylesMap:s}=to(e);return Object.assign({roughness:.7,fill:s.get("fill")||a,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:DF(s.get("stroke-dasharray"))},t)},"userNodeOverrides"),DF=C(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"),uu={},Ve={},y2;function RF(){return y2||(y2=1,Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.BLANK_URL=Ve.relativeFirstCharacters=Ve.whitespaceEscapeCharsRegex=Ve.urlSchemeRegex=Ve.ctrlCharactersRegex=Ve.htmlCtrlEntityRegex=Ve.htmlEntitiesRegex=Ve.invalidProtocolRegex=void 0,Ve.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,Ve.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,Ve.htmlCtrlEntityRegex=/&(newline|tab);/gi,Ve.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,Ve.urlSchemeRegex=/^.+(:|:)/gim,Ve.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,Ve.relativeFirstCharacters=[".","/"],Ve.BLANK_URL="about:blank"),Ve}var x2;function PF(){if(x2)return uu;x2=1,Object.defineProperty(uu,"__esModule",{value:!0}),uu.sanitizeUrl=a;var e=RF();function t(s){return e.relativeFirstCharacters.indexOf(s[0])>-1}function r(s){var o=s.replace(e.ctrlCharactersRegex,"");return o.replace(e.htmlEntitiesRegex,function(l,u){return String.fromCharCode(u)})}function i(s){return URL.canParse(s)}function n(s){try{return decodeURIComponent(s)}catch{return s}}function a(s){if(!s)return e.BLANK_URL;var o,l=n(s.trim());do l=r(l).replace(e.htmlCtrlEntityRegex,"").replace(e.ctrlCharactersRegex,"").replace(e.whitespaceEscapeCharsRegex,"").trim(),l=n(l),o=l.match(e.ctrlCharactersRegex)||l.match(e.htmlEntitiesRegex)||l.match(e.htmlCtrlEntityRegex)||l.match(e.whitespaceEscapeCharsRegex);while(o&&o.length>0);var u=l;if(!u)return e.BLANK_URL;if(t(u))return u;var c=u.trimStart(),h=c.match(e.urlSchemeRegex);if(!h)return u;var f=h[0].toLowerCase().trim();if(e.invalidProtocolRegex.test(f))return e.BLANK_URL;var d=c.replace(/\\/g,"/");if(f==="mailto:"||f.includes("://"))return d;if(f==="http:"||f==="https:"){if(!i(d))return e.BLANK_URL;var p=new URL(d);return p.protocol=p.protocol.toLowerCase(),p.hostname=p.hostname.toLowerCase(),p.toString()}return d}return uu}var $F=PF();function k0(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 zF(){}function q6(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function V1(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const HF="[object RegExp]",U6="[object String]",W6="[object Number]",j6="[object Boolean]",Y6="[object Arguments]",qF="[object Symbol]",UF="[object Date]",WF="[object Map]",jF="[object Set]",YF="[object Array]",VF="[object ArrayBuffer]",GF="[object Object]",XF="[object DataView]",KF="[object Uint8Array]",QF="[object Uint8ClampedArray]",ZF="[object Uint16Array]",JF="[object Uint32Array]",tO="[object Int8Array]",eO="[object Int16Array]",rO="[object Int32Array]",iO="[object Float32Array]",nO="[object Float64Array]",C2=typeof globalThis=="object"&&globalThis||typeof window=="object"&&window||typeof self=="object"&&self||typeof global=="object"&&global||(function(){return this})();function G1(e){return typeof C2.Buffer<"u"&&C2.Buffer.isBuffer(e)}function aO(e){return Number.isSafeInteger(e)&&e>=0}function V6(e){return e!=null&&typeof e!="function"&&aO(e.length)}function sO(e){return e==="__proto__"}function X1(e){return e==null||typeof e!="object"&&typeof e!="function"}function K1(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function oO(e,t){return ds(e,void 0,e,new Map,t)}function ds(e,t,r,i=new Map,n=void 0){const a=n==null?void 0:n(e,t,r,i);if(a!==void 0)return a;if(X1(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 o=0;o<e.length;o++)s[o]=ds(e[o],o,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[o,l]of e)s.set(o,ds(l,o,r,i,n));return s}if(e instanceof Set){const s=new Set;i.set(e,s);for(const o of e)s.add(ds(o,void 0,r,i,n));return s}if(G1(e))return e.subarray();if(K1(e)){const s=new(Object.getPrototypeOf(e)).constructor(e.length);i.set(e,s);for(let o=0;o<e.length;o++)s[o]=ds(e[o],o,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),bi(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),bi(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),bi(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,bi(s,e,r,i,n),s}if(e instanceof Boolean){const s=new Boolean(e.valueOf());return i.set(e,s),bi(s,e,r,i,n),s}if(e instanceof Number){const s=new Number(e.valueOf());return i.set(e,s),bi(s,e,r,i,n),s}if(e instanceof String){const s=new String(e.valueOf());return i.set(e,s),bi(s,e,r,i,n),s}if(typeof e=="object"&&lO(e)){const s=Object.create(Object.getPrototypeOf(e));return i.set(e,s),bi(s,e,r,i,n),s}return e}function bi(e,t,r=e,i,n){const a=[...Object.keys(t),...q6(t)];for(let s=0;s<a.length;s++){const o=a[s],l=Object.getOwnPropertyDescriptor(e,o);(l==null||l.writable)&&(e[o]=ds(t[o],o,r,i,n))}}function lO(e){switch(V1(e)){case Y6:case YF:case VF:case XF:case j6:case UF:case iO:case nO:case tO:case eO:case rO:case WF:case W6:case GF:case HF:case jF:case U6:case qF:case KF:case QF:case ZF:case JF:return!0;default:return!1}}function uO(e,t){return oO(e,(r,i,n,a)=>{if(typeof e=="object"){if(V1(e)==="[object Object]"&&typeof e.constructor!="function"){const s={};return a.set(e,s),bi(s,e,n,a),s}switch(Object.prototype.toString.call(e)){case W6:case U6:case j6:{const s=new e.constructor(e==null?void 0:e.valueOf());return bi(s,e),s}case Y6:{const s={};return bi(s,e),s.length=e.length,s[Symbol.iterator]=e[Symbol.iterator],s}default:return}}})}function k2(e){return uO(e)}function cf(e){return e!==null&&typeof e=="object"&&V1(e)==="[object Arguments]"}function hf(e){return typeof e=="object"&&e!==null}function cO(e){return hf(e)&&V6(e)}function Dl(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],a=r.cache;if(a.has(n))return a.get(n);const s=e.apply(this,i);return r.cache=a.set(n,s)||a,s};return r.cache=new(Dl.Cache||Map),r}Dl.Cache=Map;function Ru(e){return K1(e)}function hO(e){const t=e==null?void 0:e.constructor;return e===(typeof t=="function"?t.prototype:Object.prototype)}function dO(e){if(X1(e))return e;if(Array.isArray(e)||K1(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 fO(e,...t){const r=t.slice(0,-1),i=t[t.length-1];let n=e;for(let a=0;a<r.length;a++){const s=r[a];n=Pu(n,s,i,new Map)}return n}function Pu(e,t,r,i){if(X1(e)&&(e=Object(e)),t==null||typeof t!="object")return e;if(i.has(t))return dO(i.get(t));if(i.set(t,e),Array.isArray(t)){t=t.slice();for(let a=0;a<t.length;a++)t[a]=t[a]??void 0}const n=[...Object.keys(t),...q6(t)];for(let a=0;a<n.length;a++){const s=n[a];if(sO(s))continue;let o=t[s],l=e[s];if(cf(o)&&(o={...o}),cf(l)&&(l={...l}),G1(o)&&(o=k2(o)),Array.isArray(o))if(Array.isArray(l)){const c=[],h=Reflect.ownKeys(l);for(let f=0;f<h.length;f++){const d=h[f];c[d]=l[d]}l=c}else if(cO(l)){const c=[];for(let h=0;h<l.length;h++)c[h]=l[h];l=c}else l=[];const u=r(l,o,s,e,t,i);u!==void 0?e[s]=u:Array.isArray(o)||hf(l)&&hf(o)&&(k0(l)||k0(o)||Ru(l)||Ru(o))?e[s]=Pu(l,o,r,i):l==null&&k0(o)?e[s]=Pu({},o,r,i):l==null&&Ru(o)?e[s]=k2(o):(l===void 0||o!==void 0)&&(e[s]=o)}return e}function pO(e,...t){return fO(e,...t,zF)}function T2(e){if(e==null)return!0;if(V6(e))return typeof e.splice!="function"&&typeof e!="string"&&!G1(e)&&!Ru(e)&&!cf(e)?!1:e.length===0;if(typeof e=="object"||typeof e=="function"){if(e instanceof Map||e instanceof Set)return e.size===0;const t=Object.keys(e);return hO(e)?t.filter(r=>r!=="constructor").length===0:t.length===0}return!0}var mO="",gO={curveBasis:Vd,curveBasisClosed:yN,curveBasisOpen:xN,curveBumpX:zx,curveBumpY:Hx,curveBundle:CN,curveCardinalClosed:kN,curveCardinalOpen:TN,curveCardinal:jx,curveCatmullRomClosed:wN,curveCatmullRomOpen:vN,curveCatmullRom:Vx,curveLinear:Vo,curveLinearClosed:SN,curveMonotoneX:Jx,curveMonotoneY:t5,curveNatural:r5,curveStep:i5,curveStepAfter:a5,curveStepBefore:n5},bO=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,yO=C(function(e,t){const r=G6(e,/(?:init\b)|(?:initialize\b)/);let i={};if(Array.isArray(r)){const s=r.map(o=>o.args);ic(s),i=Xe(i,[...s])}else i=r.args;if(!i)return;let n=k1(e,t);const a="config";return i[a]!==void 0&&(n==="flowchart-v2"&&(n="flowchart"),i[n]=i[a],delete i[a]),i},"detectInit"),G6=C(function(e,t=null){var r,i;try{const n=new RegExp(`[%]{2}(?![{]${bO.source})(?=[}][%]{2}).*
|
|
431
|
+
`,"ig");e=e.trim().replace(n,"").replace(/'/gm,'"'),ut.debug(`Detecting diagram directive${t!==null?" type:"+t:""} based on the text:${e}`);let a;const s=[];for(;(a=Yo.exec(e))!==null;)if(a.index===Yo.lastIndex&&Yo.lastIndex++,a&&!t||t&&((r=a[1])!=null&&r.match(t))||t&&((i=a[2])!=null&&i.match(t))){const o=a[1]?a[1]:a[2],l=a[3]?a[3].trim():a[4]?JSON.parse(a[4].trim()):null;s.push({type:o,args:l})}return s.length===0?{type:e,args:null}:s.length===1?s[0]:s}catch(n){return ut.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},"detectDirective"),xO=C(function(e){return e.replace(Yo,"")},"removeDirectives"),CO=C(function(e,t){for(const[r,i]of t.entries())if(i.match(e))return r;return-1},"isSubstringInArray");function Q1(e,t){if(!e)return t;const r=`curve${e.charAt(0).toUpperCase()+e.slice(1)}`;return gO[r]??t}C(Q1,"interpolateToCurve");function X6(e,t){const r=e.trim();if(r)return t.securityLevel!=="loose"?$F.sanitizeUrl(r):r}C(X6,"formatUrl");var kO=C((e,...t)=>{const r=e.split("."),i=r.length-1,n=r[i];let a=window;for(let s=0;s<i;s++)if(a=a[r[s]],!a){ut.error(`Function name: ${e} not found in window`);return}a[n](...t)},"runFunc");function Z1(e,t){return!e||!t?0:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}C(Z1,"distance");function K6(e){let t,r=0;e.forEach(n=>{r+=Z1(n,t),t=n});const i=r/2;return J1(e,i)}C(K6,"traverseEdge");function Q6(e){return e.length===1?e[0]:K6(e)}C(Q6,"calcLabelPosition");var w2=C((e,t=2)=>{const r=Math.pow(10,t);return Math.round(e*r)/r},"roundNumber"),J1=C((e,t)=>{let r,i=t;for(const n of e){if(r){const a=Z1(n,r);if(a===0)return r;if(a<i)i-=a;else{const s=i/a;if(s<=0)return r;if(s>=1)return{x:n.x,y:n.y};if(s>0&&s<1)return{x:w2((1-s)*r.x+s*n.x,5),y:w2((1-s)*r.y+s*n.y,5)}}}r=n}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),TO=C((e,t,r)=>{ut.info(`our points ${JSON.stringify(t)}`),t[0]!==r&&(t=t.reverse());const n=J1(t,25),a=e?10:5,s=Math.atan2(t[0].y-n.y,t[0].x-n.x),o={x:0,y:0};return o.x=Math.sin(s)*a+(t[0].x+n.x)/2,o.y=-Math.cos(s)*a+(t[0].y+n.y)/2,o},"calcCardinalityPosition");function Z6(e,t,r){const i=structuredClone(r);ut.info("our points",i),t!=="start_left"&&t!=="start_right"&&i.reverse();const n=25+e,a=J1(i,n),s=10+e*.5,o=Math.atan2(i[0].y-a.y,i[0].x-a.x),l={x:0,y:0};return t==="start_left"?(l.x=Math.sin(o+Math.PI)*s+(i[0].x+a.x)/2,l.y=-Math.cos(o+Math.PI)*s+(i[0].y+a.y)/2):t==="end_right"?(l.x=Math.sin(o-Math.PI)*s+(i[0].x+a.x)/2-5,l.y=-Math.cos(o-Math.PI)*s+(i[0].y+a.y)/2-5):t==="end_left"?(l.x=Math.sin(o)*s+(i[0].x+a.x)/2-5,l.y=-Math.cos(o)*s+(i[0].y+a.y)/2-5):(l.x=Math.sin(o)*s+(i[0].x+a.x)/2,l.y=-Math.cos(o)*s+(i[0].y+a.y)/2),l}C(Z6,"calcTerminalLabelPosition");function J6(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}}C(J6,"getStylesFromArray");var v2=0,wO=C(()=>(v2++,"id-"+Math.random().toString(36).substr(2,12)+"-"+v2),"generateId");function tC(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}C(tC,"makeRandomHex");var vO=C(e=>tC(e.length),"random"),SO=C(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"),EO=C(function(e,t){const r=t.text.replace(Ml.lineBreakRegex," "),[,i]=gh(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 a=n.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.attr("fill",t.fill),a.text(r),n},"drawSimpleText"),_O=Dl((e,t,r)=>{if(!e||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"<br/>"},r),Ml.lineBreakRegex.test(e)))return e;const i=e.split(" ").filter(Boolean),n=[];let a="";return i.forEach((s,o)=>{const l=wn(`${s} `,r),u=wn(a,r);if(l>t){const{hyphenatedStrings:f,remainingWord:d}=AO(s,t,"-",r);n.push(a,...f),a=d}else u+l>=t?(n.push(a),a=s):a=[a,s].filter(Boolean).join(" ");o+1===i.length&&n.push(a)}),n.filter(s=>s!=="").join(r.joinWith)},(e,t,r)=>`${e}${t}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),AO=Dl((e,t,r="-",i)=>{i=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},i);const n=[...e],a=[];let s="";return n.forEach((o,l)=>{const u=`${s}${o}`;if(wn(u,i)>=t){const h=l+1,f=n.length===h,d=`${u}${r}`;a.push(f?u:d),s=""}else s=u}),{hyphenatedStrings:a,remainingWord:s}},(e,t,r="-",i)=>`${e}${t}${r}${i.fontSize}${i.fontWeight}${i.fontFamily}`);function eC(e,t){return tp(e,t).height}C(eC,"calculateTextHeight");function wn(e,t){return tp(e,t).width}C(wn,"calculateTextWidth");var tp=Dl((e,t)=>{const{fontSize:r=12,fontFamily:i="Arial",fontWeight:n=400}=t;if(!e)return{width:0,height:0};const[,a]=gh(r),s=["sans-serif",i],o=e.split(Ml.lineBreakRegex),l=[],u=ie("body");if(!u.remove)return{width:0,height:0,lineHeight:0};const c=u.append("svg");for(const f of s){let d=0;const p={width:0,height:0,lineHeight:0};for(const m of o){const g=SO();g.text=m||mO;const y=EO(c,g).style("font-size",a).style("font-weight",n).style("font-family",f),k=(y._groups||y)[0][0].getBBox();if(k.width===0&&k.height===0)throw new Error("svg element not in render tree");p.width=Math.round(Math.max(p.width,k.width)),d=Math.round(k.height),p.height+=d,p.lineHeight=Math.round(Math.max(p.lineHeight,d))}l.push(p)}c.remove();const h=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[h]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),Ms,BO=(Ms=class{constructor(t=!1,r){this.count=0,this.count=r?r.length:0,this.next=t?()=>this.count++:()=>Date.now()}},C(Ms,"InitIDGenerator"),Ms),cu,LO=C(function(e){return cu=cu||document.createElement("div"),e=escape(e).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),cu.innerHTML=e,unescape(cu.textContent)},"entityDecode");function ep(e){return"str"in e}C(ep,"isDetailedError");var IO=C((e,t,r,i)=>{var a;if(!i)return;const n=(a=e.node())==null?void 0:a.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"),gh=C(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 rp(e,t){return pO({},e,t)}C(rp,"cleanAndMerge");var Ti={assignWithDepth:Xe,wrapLabel:_O,calculateTextHeight:eC,calculateTextWidth:wn,calculateTextDimensions:tp,cleanAndMerge:rp,detectInit:yO,detectDirective:G6,isSubstringInArray:CO,interpolateToCurve:Q1,calcLabelPosition:Q6,calcCardinalityPosition:TO,calcTerminalLabelPosition:Z6,formatUrl:X6,getStylesFromArray:J6,generateId:wO,random:vO,runFunc:kO,entityDecode:LO,insertTitle:IO,isLabelCoordinateInPath:rC,parseFontSize:gh,InitIDGenerator:BO},MO=C(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"),Pa=C(function(e){return e.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities"),Eet=C((e,t,{counter:r=0,prefix:i,suffix:n},a)=>a||`${i?`${i}_`:""}${e}_${t}_${r}${n?`_${n}`:""}`,"getEdgeId");function ir(e){return e??null}C(ir,"handleUndefinedAttr");function rC(e,t){const r=Math.round(e.x),i=Math.round(e.y),n=t.replace(/(\d+\.\d+)/g,a=>Math.round(parseFloat(a)).toString());return n.includes(r.toString())||n.includes(i.toString())}C(rC,"isLabelCoordinateInPath");var ip=C(({flowchart:e})=>{var n,a;const t=((n=e==null?void 0:e.subGraphTitleMargin)==null?void 0:n.top)??0,r=((a=e==null?void 0:e.subGraphTitleMargin)==null?void 0:a.bottom)??0,i=t+r;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:r,subGraphTitleTotalMargin:i}},"getSubGraphTitleMargins");async function iC(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(a=>{function s(){if(n.style.display="flex",n.style.flexDirection="column",i){const o=me().fontSize?me().fontSize:window.getComputedStyle(document.body).fontSize,l=5,[u=X3.fontSize]=gh(o),c=u*l+"px";n.style.minWidth=c,n.style.maxWidth=c}else n.style.width="100%";a(n)}C(s,"setupImage"),setTimeout(()=>{n.complete&&s()}),n.addEventListener("error",s),n.addEventListener("load",s)})))}C(iC,"configureLabelImages");const NO=Object.freeze({left:0,top:0,width:16,height:16}),wc=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),nC=Object.freeze({...NO,...wc}),FO=Object.freeze({...nC,body:"",hidden:!1}),OO=Object.freeze({width:null,height:null}),DO=Object.freeze({...OO,...wc}),RO=(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 o=n.pop(),l=n.pop(),u={provider:n.length>0?n[0]:i,prefix:l,name:o};return T0(u)?u:null}const a=n[0],s=a.split("-");if(s.length>1){const o={provider:i,prefix:s.shift(),name:s.join("-")};return T0(o)?o:null}if(r&&i===""){const o={provider:i,prefix:"",name:a};return T0(o,r)?o:null}return null},T0=(e,t)=>e?!!((t&&e.prefix===""||e.prefix)&&e.name):!1;function PO(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 S2(e,t){const r=PO(e,t);for(const i in FO)i in wc?i in e&&!(i in r)&&(r[i]=wc[i]):i in t?r[i]=t[i]:i in e&&(r[i]=e[i]);return r}function $O(e,t){const r=e.icons,i=e.aliases||Object.create(null),n=Object.create(null);function a(s){if(r[s])return n[s]=[];if(!(s in n)){n[s]=null;const o=i[s]&&i[s].parent,l=o&&a(o);l&&(n[s]=[o].concat(l))}return n[s]}return(t||Object.keys(r).concat(Object.keys(i))).forEach(a),n}function E2(e,t,r){const i=e.icons,n=e.aliases||Object.create(null);let a={};function s(o){a=S2(i[o]||n[o],a)}return s(t),r.forEach(s),S2(e,a)}function zO(e,t){if(e.icons[t])return E2(e,t,[]);const r=$O(e,[t])[t];return r?E2(e,t,r):null}const HO=/(-?[0-9.]*[0-9]+[0-9.]*)/g,qO=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function _2(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(HO);if(i===null||!i.length)return e;const n=[];let a=i.shift(),s=qO.test(a);for(;;){if(s){const o=parseFloat(a);isNaN(o)?n.push(a):n.push(Math.ceil(o*t*r)/r)}else n.push(a);if(a=i.shift(),a===void 0)return n.join("");s=!s}}function UO(e,t="defs"){let r="";const i=e.indexOf("<"+t);for(;i>=0;){const n=e.indexOf(">",i),a=e.indexOf("</"+t);if(n===-1||a===-1)break;const s=e.indexOf(">",a);if(s===-1)break;r+=e.slice(n+1,a).trim(),e=e.slice(0,i).trim()+e.slice(s+1)}return{defs:r,content:e}}function WO(e,t){return e?"<defs>"+e+"</defs>"+t:t}function jO(e,t,r){const i=UO(e);return WO(i.defs,t+i.content+r)}const YO=e=>e==="unset"||e==="undefined"||e==="none";function VO(e,t){const r={...nC,...e},i={...DO,...t},n={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,i].forEach(m=>{const g=[],y=m.hFlip,k=m.vFlip;let w=m.rotate;y?k?w+=2:(g.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),g.push("scale(-1 1)"),n.top=n.left=0):k&&(g.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),g.push("scale(1 -1)"),n.top=n.left=0);let _;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:_=n.height/2+n.top,g.unshift("rotate(90 "+_.toString()+" "+_.toString()+")");break;case 2:g.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:_=n.width/2+n.left,g.unshift("rotate(-90 "+_.toString()+" "+_.toString()+")");break}w%2===1&&(n.left!==n.top&&(_=n.left,n.left=n.top,n.top=_),n.width!==n.height&&(_=n.width,n.width=n.height,n.height=_)),g.length&&(a=jO(a,'<g transform="'+g.join(" ")+'">',"</g>"))});const s=i.width,o=i.height,l=n.width,u=n.height;let c,h;s===null?(h=o===null?"1em":o==="auto"?u:o,c=_2(h,l/u)):(c=s==="auto"?l:s,h=o===null?_2(c,u/l):o==="auto"?u:o);const f={},d=(m,g)=>{YO(g)||(f[m]=g.toString())};d("width",c),d("height",h);const p=[n.left,n.top,l,u];return f.viewBox=p.join(" "),{attributes:f,viewBox:p,body:a}}const GO=/\sid="(\S+)"/g,A2=new Map;function XO(e){e=e.replace(/[0-9]+$/,"")||"a";const t=A2.get(e)||0;return A2.set(e,t+1),t?`${e}${t}`:e}function KO(e){const t=[];let r;for(;r=GO.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 a=XO(n),s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+s+')([")]|\\.[a-z])',"g"),"$1"+a+i+"$3")}),e=e.replace(new RegExp(i,"g"),""),e}function QO(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>"}var ZO={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},df=new Map,aC=new Map,JO=C(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(ut.debug("Registering icon pack:",t.name),"loader"in t)aC.set(t.name,t.loader);else if("icons"in t)df.set(t.name,t.icons);else throw ut.error("Invalid icon loader:",t),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),sC=C(async(e,t)=>{const r=RO(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=df.get(i);if(!n){const s=aC.get(i);if(!s)throw new Error(`Icon set not found: ${r.prefix}`);try{n={...await s(),prefix:i},df.set(i,n)}catch(o){throw ut.error(o),new Error(`Failed to load icon set: ${r.prefix}`)}}const a=zO(n,r.name);if(!a)throw new Error(`Icon not found: ${e}`);return a},"getRegisteredIconData"),tD=C(async e=>{try{return await sC(e),!0}catch{return!1}},"isIconAvailable"),Rl=C(async(e,t,r)=>{let i;try{i=await sC(e,t==null?void 0:t.fallbackPrefix)}catch(s){ut.error(s),i=ZO}const n=VO(i,t),a=QO(KO(n.body),{...n.attributes,...r});return _i(a,Ne())},"getIconSVG");function np(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ya=np();function oC(e){Ya=e}var Go={exec:()=>null};function be(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(n,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(Fr.caret,"$1"),r=r.replace(n,s),i},getRegex:()=>new RegExp(r,t)};return i}var eD=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Fr={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")},rD=/^(?:[ \t]*(?:\n|$))+/,iD=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,nD=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Pl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,aD=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ap=/(?:[*+-]|\d{1,9}[.)])/,lC=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,uC=be(lC).replace(/bull/g,ap).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(),sD=be(lC).replace(/bull/g,ap).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(),sp=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,oD=/^[^\n]+/,op=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,lD=be(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",op).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),uD=be(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ap).getRegex(),bh="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",lp=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,cD=be("^ {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",lp).replace("tag",bh).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),cC=be(sp).replace("hr",Pl).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",bh).getRegex(),hD=be(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",cC).getRegex(),up={blockquote:hD,code:iD,def:lD,fences:nD,heading:aD,hr:Pl,html:cD,lheading:uC,list:uD,newline:rD,paragraph:cC,table:Go,text:oD},B2=be("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Pl).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",bh).getRegex(),dD={...up,lheading:sD,table:B2,paragraph:be(sp).replace("hr",Pl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",B2).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",bh).getRegex()},fD={...up,html:be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",lp).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:Go,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:be(sp).replace("hr",Pl).replace("heading",` *#{1,6} *[^
|
|
432
|
+
]`).replace("lheading",uC).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},pD=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,mD=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,hC=/^( {2,}|\\)\n(?!\s*$)/,gD=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,yh=/[\p{P}\p{S}]/u,cp=/[\s\p{P}\p{S}]/u,dC=/[^\s\p{P}\p{S}]/u,bD=be(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,cp).getRegex(),fC=/(?!~)[\p{P}\p{S}]/u,yD=/(?!~)[\s\p{P}\p{S}]/u,xD=/(?:[^\s\p{P}\p{S}]|~)/u,CD=be(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",eD?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),pC=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,kD=be(pC,"u").replace(/punct/g,yh).getRegex(),TD=be(pC,"u").replace(/punct/g,fC).getRegex(),mC="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",wD=be(mC,"gu").replace(/notPunctSpace/g,dC).replace(/punctSpace/g,cp).replace(/punct/g,yh).getRegex(),vD=be(mC,"gu").replace(/notPunctSpace/g,xD).replace(/punctSpace/g,yD).replace(/punct/g,fC).getRegex(),SD=be("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,dC).replace(/punctSpace/g,cp).replace(/punct/g,yh).getRegex(),ED=be(/\\(punct)/,"gu").replace(/punct/g,yh).getRegex(),_D=be(/^<(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(),AD=be(lp).replace("(?:-->|$)","-->").getRegex(),BD=be("^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",AD).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,LD=be(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",vc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),gC=be(/^!?\[(label)\]\[(ref)\]/).replace("label",vc).replace("ref",op).getRegex(),bC=be(/^!?\[(ref)\](?:\[\])?/).replace("ref",op).getRegex(),ID=be("reflink|nolink(?!\\()","g").replace("reflink",gC).replace("nolink",bC).getRegex(),L2=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,hp={_backpedal:Go,anyPunctuation:ED,autolink:_D,blockSkip:CD,br:hC,code:mD,del:Go,emStrongLDelim:kD,emStrongRDelimAst:wD,emStrongRDelimUnd:SD,escape:pD,link:LD,nolink:bC,punctuation:bD,reflink:gC,reflinkSearch:ID,tag:BD,text:gD,url:Go},MD={...hp,link:be(/^!?\[(label)\]\((.*?)\)/).replace("label",vc).getRegex(),reflink:be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vc).getRegex()},ff={...hp,emStrongRDelimAst:vD,emStrongLDelim:TD,url:be(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",L2).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:be(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",L2).getRegex()},ND={...ff,br:be(hC).replace("{2,}","*").getRegex(),text:be(ff.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},hu={normal:up,gfm:dD,pedantic:fD},mo={normal:hp,gfm:ff,breaks:ND,pedantic:MD},FD={"&":"&","<":"<",">":">",'"':""","'":"'"},I2=e=>FD[e];function $i(e,t){if(t){if(Fr.escapeTest.test(e))return e.replace(Fr.escapeReplace,I2)}else if(Fr.escapeTestNoEncode.test(e))return e.replace(Fr.escapeReplaceNoEncode,I2);return e}function M2(e){try{e=encodeURI(e).replace(Fr.percentDecode,"%")}catch{return null}return e}function N2(e,t){var a;let r=e.replace(Fr.findPipe,(s,o,l)=>{let u=!1,c=o;for(;--c>=0&&l[c]==="\\";)u=!u;return u?"|":" |"}),i=r.split(Fr.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!((a=i.at(-1))!=null&&a.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(Fr.slashPipe,"|");return i}function go(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 OD(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 F2(e,t,r,i,n){let a=t.href,s=t.title||null,o=e[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:s,text:o,tokens:i.inlineTokens(o)};return i.state.inLink=!1,l}function DD(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let n=i[1];return t.split(`
|
|
433
|
+
`).map(a=>{let s=a.match(r.other.beginningSpace);if(s===null)return a;let[o]=s;return o.length>=n.length?a.slice(n.length):a}).join(`
|
|
434
|
+
`)}var Sc=class{constructor(t){$t(this,"options");$t(this,"rules");$t(this,"lexer");this.options=t||Ya}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:go(i,`
|
|
435
|
+
`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],n=DD(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=go(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:go(r[0],`
|
|
436
|
+
`)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=go(r[0],`
|
|
437
|
+
`).split(`
|
|
438
|
+
`),n="",a="",s=[];for(;i.length>0;){let o=!1,l=[],u;for(u=0;u<i.length;u++)if(this.rules.other.blockquoteStart.test(i[u]))l.push(i[u]),o=!0;else if(!o)l.push(i[u]);else break;i=i.slice(u);let c=l.join(`
|
|
439
|
+
`),h=c.replace(this.rules.other.blockquoteSetextReplace,`
|
|
440
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
|
|
441
|
+
${c}`:c,a=a?`${a}
|
|
442
|
+
${h}`:h;let f=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,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 p=d,m=p.raw+`
|
|
443
|
+
`+i.join(`
|
|
444
|
+
`),g=this.blockquote(m);s[s.length-1]=g,n=n.substring(0,n.length-p.raw.length)+g.raw,a=a.substring(0,a.length-p.text.length)+g.text;break}else if((d==null?void 0:d.type)==="list"){let p=d,m=p.raw+`
|
|
445
|
+
`+i.join(`
|
|
446
|
+
`),g=this.list(m);s[s.length-1]=g,n=n.substring(0,n.length-d.raw.length)+g.raw,a=a.substring(0,a.length-p.raw.length)+g.raw,i=m.substring(s.at(-1).raw.length).split(`
|
|
447
|
+
`);continue}}return{type:"blockquote",raw:n,tokens:s,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),n=i.length>1,a={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),o=!1;for(;t;){let u=!1,c="",h="";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(`
|
|
448
|
+
`,1)[0].replace(this.rules.other.listReplaceTabs,k=>" ".repeat(3*k.length)),d=t.split(`
|
|
449
|
+
`,1)[0],p=!f.trim(),m=0;if(this.options.pedantic?(m=2,h=f.trimStart()):p?m=r[1].length+1:(m=r[2].search(this.rules.other.nonSpaceChar),m=m>4?1:m,h=f.slice(m),m+=r[1].length),p&&this.rules.other.blankLine.test(d)&&(c+=d+`
|
|
450
|
+
`,t=t.substring(d.length+1),u=!0),!u){let k=this.rules.other.nextBulletRegex(m),w=this.rules.other.hrRegex(m),_=this.rules.other.fencesBeginRegex(m),A=this.rules.other.headingBeginRegex(m),E=this.rules.other.htmlBeginRegex(m);for(;t;){let N=t.split(`
|
|
451
|
+
`,1)[0],F;if(d=N,this.options.pedantic?(d=d.replace(this.rules.other.listReplaceNesting," "),F=d):F=d.replace(this.rules.other.tabCharGlobal," "),_.test(d)||A.test(d)||E.test(d)||k.test(d)||w.test(d))break;if(F.search(this.rules.other.nonSpaceChar)>=m||!d.trim())h+=`
|
|
452
|
+
`+F.slice(m);else{if(p||f.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||_.test(f)||A.test(f)||w.test(f))break;h+=`
|
|
453
|
+
`+d}!p&&!d.trim()&&(p=!0),c+=N+`
|
|
454
|
+
`,t=t.substring(N.length+1),f=F.slice(m)}}a.loose||(o?a.loose=!0:this.rules.other.doubleBlankLine.test(c)&&(o=!0));let g=null,y;this.options.gfm&&(g=this.rules.other.listIsTask.exec(h),g&&(y=g[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:c,task:!!g,checked:y,loose:!1,text:h,tokens:[]}),a.raw+=c}let l=a.items.at(-1);if(l)l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let u=0;u<a.items.length;u++)if(this.lexer.state.top=!1,a.items[u].tokens=this.lexer.blockTokens(a.items[u].text,[]),!a.loose){let c=a.items[u].tokens.filter(f=>f.type==="space"),h=c.length>0&&c.some(f=>this.rules.other.anyLine.test(f.raw));a.loose=h}if(a.loose)for(let u=0;u<a.items.length;u++)a.items[u].loose=!0;return a}}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"):"",a=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:a}}}table(t){var o;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=N2(r[1]),n=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(o=r[3])!=null&&o.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
455
|
+
`):[],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 a)s.rows.push(N2(l,s.header.length).map((u,c)=>({text:u,tokens:this.lexer.inline(u),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)===`
|
|
456
|
+
`?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=go(i.slice(0,-1),"\\");if((i.length-s.length)%2===0)return}else{let s=OD(r[2],"()");if(s===-2)return;if(s>-1){let o=(r[0].indexOf("!")===0?5:4)+r[1].length+s;r[2]=r[2].substring(0,s),r[0]=r[0].substring(0,o).trim(),r[3]=""}}let n=r[2],a="";if(this.options.pedantic){let s=this.rules.other.pedanticHrefTitle.exec(n);s&&(n=s[1],a=s[3])}else a=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)),F2(r,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.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," "),a=r[n.toLowerCase()];if(!a){let s=i[0].charAt(0);return{type:"text",raw:s,text:s}}return F2(i,a,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 a=[...n[0]].length-1,s,o,l=a,u=0,c=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,r=r.slice(-1*t.length+a);(n=c.exec(r))!=null;){if(s=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!s)continue;if(o=[...s].length,n[3]||n[4]){l+=o;continue}else if((n[5]||n[6])&&a%3&&!((a+o)%3)){u+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l+u);let h=[...n[0]][0].length,f=t.slice(0,a+n.index+h+o);if(Math.min(a,o)%2){let p=f.slice(1,-1);return{type:"em",raw:f,text:p,tokens:this.lexer.inlineTokens(p)}}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),a=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return n&&a&&(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,a;if(r[2]==="@")n=r[0],a="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."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:n,href:a,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}}}},yi=class pf{constructor(t){$t(this,"tokens");$t(this,"options");$t(this,"state");$t(this,"tokenizer");$t(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ya,this.options.tokenizer=this.options.tokenizer||new Sc,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:Fr,block:hu.normal,inline:mo.normal};this.options.pedantic?(r.block=hu.pedantic,r.inline=mo.pedantic):this.options.gfm&&(r.block=hu.gfm,this.options.breaks?r.inline=mo.breaks:r.inline=mo.gfm),this.tokenizer.rules=r}static get rules(){return{block:hu,inline:mo}}static lex(t,r){return new pf(r).lex(t)}static lexInline(t,r){return new pf(r).inlineTokens(t)}lex(t){t=t.replace(Fr.carriageReturn,`
|
|
457
|
+
`),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,a,s;for(this.options.pedantic&&(t=t.replace(Fr.tabCharGlobal," ").replace(Fr.spaceLine,""));t;){let o;if((a=(n=this.options.extensions)==null?void 0:n.block)!=null&&a.some(u=>(o=u.call({lexer:this},t,r))?(t=t.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let u=r.at(-1);o.raw.length===1&&u!==void 0?u.raw+=`
|
|
458
|
+
`:r.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let u=r.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
|
|
459
|
+
`)?"":`
|
|
460
|
+
`)+o.raw,u.text+=`
|
|
461
|
+
`+o.text,this.inlineQueue.at(-1).src=u.text):r.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);let u=r.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
|
|
462
|
+
`)?"":`
|
|
463
|
+
`)+o.raw,u.text+=`
|
|
464
|
+
`+o.raw,this.inlineQueue.at(-1).src=u.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},r.push(o));continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),r.push(o);continue}let l=t;if((s=this.options.extensions)!=null&&s.startBlock){let u=1/0,c=t.slice(1),h;this.options.extensions.startBlock.forEach(f=>{h=f.call({lexer:this},c),typeof h=="number"&&h>=0&&(u=Math.min(u,h))}),u<1/0&&u>=0&&(l=t.substring(0,u+1))}if(this.state.top&&(o=this.tokenizer.paragraph(l))){let u=r.at(-1);i&&(u==null?void 0:u.type)==="paragraph"?(u.raw+=(u.raw.endsWith(`
|
|
465
|
+
`)?"":`
|
|
466
|
+
`)+o.raw,u.text+=`
|
|
467
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):r.push(o),i=l.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let u=r.at(-1);(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
|
|
468
|
+
`)?"":`
|
|
469
|
+
`)+o.raw,u.text+=`
|
|
470
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):r.push(o);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var l,u,c,h,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 a;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)a=n[2]?n[2].length:0,i=i.slice(0,n.index+a)+"["+"a".repeat(n[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((u=(l=this.options.hooks)==null?void 0:l.emStrongMask)==null?void 0:u.call({lexer:this},i))??i;let s=!1,o="";for(;t;){s||(o=""),s=!1;let d;if((h=(c=this.options.extensions)==null?void 0:c.inline)!=null&&h.some(m=>(d=m.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 m=r.at(-1);d.type==="text"&&(m==null?void 0:m.type)==="text"?(m.raw+=d.raw,m.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(t,i,o)){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 p=t;if((f=this.options.extensions)!=null&&f.startInline){let m=1/0,g=t.slice(1),y;this.options.extensions.startInline.forEach(k=>{y=k.call({lexer:this},g),typeof y=="number"&&y>=0&&(m=Math.min(m,y))}),m<1/0&&m>=0&&(p=t.substring(0,m+1))}if(d=this.tokenizer.inlineText(p)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(o=d.raw.slice(-1)),s=!0;let m=r.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=d.raw,m.text+=d.text):r.push(d);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return r}},Ec=class{constructor(t){$t(this,"options");$t(this,"parser");this.options=t||Ya}space(t){return""}code({text:t,lang:r,escaped:i}){var s;let n=(s=(r||"").match(Fr.notSpaceStart))==null?void 0:s[0],a=t.replace(Fr.endingNewline,"")+`
|
|
471
|
+
`;return n?'<pre><code class="language-'+$i(n)+'">'+(i?a:$i(a,!0))+`</code></pre>
|
|
472
|
+
`:"<pre><code>"+(i?a:$i(a,!0))+`</code></pre>
|
|
473
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
474
|
+
${this.parser.parse(t)}</blockquote>
|
|
475
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
476
|
+
`}hr(t){return`<hr>
|
|
477
|
+
`}list(t){let r=t.ordered,i=t.start,n="";for(let o=0;o<t.items.length;o++){let l=t.items[o];n+=this.listitem(l)}let a=r?"ol":"ul",s=r&&i!==1?' start="'+i+'"':"";return"<"+a+s+`>
|
|
478
|
+
`+n+"</"+a+`>
|
|
479
|
+
`}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+" "+$i(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>
|
|
480
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
481
|
+
`}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let n="";for(let a=0;a<t.rows.length;a++){let s=t.rows[a];i="";for(let o=0;o<s.length;o++)i+=this.tablecell(s[o]);n+=this.tablerow({text:i})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
482
|
+
<thead>
|
|
483
|
+
`+r+`</thead>
|
|
484
|
+
`+n+`</table>
|
|
485
|
+
`}tablerow({text:t}){return`<tr>
|
|
486
|
+
${t}</tr>
|
|
487
|
+
`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
|
|
488
|
+
`}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>${$i(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),a=M2(t);if(a===null)return n;t=a;let s='<a href="'+t+'"';return r&&(s+=' title="'+$i(r)+'"'),s+=">"+n+"</a>",s}image({href:t,title:r,text:i,tokens:n}){n&&(i=this.parser.parseInline(n,this.parser.textRenderer));let a=M2(t);if(a===null)return $i(i);t=a;let s=`<img src="${t}" alt="${i}"`;return r&&(s+=` title="${$i(r)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:$i(t.text)}},dp=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""}},xi=class mf{constructor(t){$t(this,"options");$t(this,"renderer");$t(this,"textRenderer");this.options=t||Ya,this.options.renderer=this.options.renderer||new Ec,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new dp}static parse(t,r){return new mf(r).parse(t)}static parseInline(t,r){return new mf(r).parseInline(t)}parse(t,r=!0){var n,a;let i="";for(let s=0;s<t.length;s++){let o=t[s];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[o.type]){let u=o,c=this.options.extensions.renderers[u.type].call({parser:this},u);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(u.type)){i+=c||"";continue}}let l=o;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 u=l,c=this.renderer.text(u);for(;s+1<t.length&&t[s+1].type==="text";)u=t[++s],c+=`
|
|
489
|
+
`+this.renderer.text(u);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 u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return i}parseInline(t,r=this.renderer){var n,a;let i="";for(let s=0;s<t.length;s++){let o=t[s];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[o.type]){let u=this.options.extensions.renderers[o.type].call({parser:this},o);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){i+=u||"";continue}}let l=o;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 u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return i}},Su,Do=(Su=class{constructor(t){$t(this,"options");$t(this,"block");this.options=t||Ya}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?yi.lex:yi.lexInline}provideParser(){return this.block?xi.parse:xi.parseInline}},$t(Su,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),$t(Su,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Su),RD=class{constructor(...t){$t(this,"defaults",np());$t(this,"options",this.setOptions);$t(this,"parse",this.parseMarkdown(!0));$t(this,"parseInline",this.parseMarkdown(!1));$t(this,"Parser",xi);$t(this,"Renderer",Ec);$t(this,"TextRenderer",dp);$t(this,"Lexer",yi);$t(this,"Tokenizer",Sc);$t(this,"Hooks",Do);this.use(...t)}walkTokens(t,r){var n,a;let i=[];for(let s of t)switch(i=i.concat(r.call(this,s)),s.type){case"table":{let o=s;for(let l of o.header)i=i.concat(this.walkTokens(l.tokens,r));for(let l of o.rows)for(let u of l)i=i.concat(this.walkTokens(u.tokens,r));break}case"list":{let o=s;i=i.concat(this.walkTokens(o.items,r));break}default:{let o=s;(a=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&a[o.type]?this.defaults.extensions.childTokens[o.type].forEach(l=>{let u=o[l].flat(1/0);i=i.concat(this.walkTokens(u,r))}):o.tokens&&(i=i.concat(this.walkTokens(o.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(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=r.renderers[a.name];s?r.renderers[a.name]=function(...o){let l=a.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),n.extensions=r),i.renderer){let a=this.defaults.renderer||new Ec(this.defaults);for(let s in i.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,l=i.renderer[o],u=a[o];a[o]=(...c)=>{let h=l.apply(a,c);return h===!1&&(h=u.apply(a,c)),h||""}}n.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new Sc(this.defaults);for(let s in i.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,l=i.tokenizer[o],u=a[o];a[o]=(...c)=>{let h=l.apply(a,c);return h===!1&&(h=u.apply(a,c)),h}}n.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new Do;for(let s in i.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,l=i.hooks[o],u=a[o];Do.passThroughHooks.has(s)?a[o]=c=>{if(this.defaults.async&&Do.passThroughHooksRespectAsync.has(s))return(async()=>{let f=await l.call(a,c);return u.call(a,f)})();let h=l.call(a,c);return u.call(a,h)}:a[o]=(...c)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(a,c);return f===!1&&(f=await u.apply(a,c)),f})();let h=l.apply(a,c);return h===!1&&(h=u.apply(a,c)),h}}n.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,s=i.walkTokens;n.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),a&&(l=l.concat(a.call(this,o))),l}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return yi.lex(t,r??this.defaults)}parser(t,r){return xi.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let n={...i},a={...this.defaults,...n},s=this.onError(!!a.silent,!!a.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(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let o=a.hooks?await a.hooks.preprocess(r):r,l=await(a.hooks?await a.hooks.provideLexer():t?yi.lex:yi.lexInline)(o,a),u=a.hooks?await a.hooks.processAllTokens(l):l;a.walkTokens&&await Promise.all(this.walkTokens(u,a.walkTokens));let c=await(a.hooks?await a.hooks.provideParser():t?xi.parse:xi.parseInline)(u,a);return a.hooks?await a.hooks.postprocess(c):c})().catch(s);try{a.hooks&&(r=a.hooks.preprocess(r));let o=(a.hooks?a.hooks.provideLexer():t?yi.lex:yi.lexInline)(r,a);a.hooks&&(o=a.hooks.processAllTokens(o)),a.walkTokens&&this.walkTokens(o,a.walkTokens);let l=(a.hooks?a.hooks.provideParser():t?xi.parse:xi.parseInline)(o,a);return a.hooks&&(l=a.hooks.postprocess(l)),l}catch(o){return s(o)}}}onError(t,r){return i=>{if(i.message+=`
|
|
490
|
+
Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error occurred:</p><pre>"+$i(i.message+"",!0)+"</pre>";return r?Promise.resolve(n):n}if(r)return Promise.reject(i);throw i}}},$a=new RD;function Ce(e,t){return $a.parse(e,t)}Ce.options=Ce.setOptions=function(e){return $a.setOptions(e),Ce.defaults=$a.defaults,oC(Ce.defaults),Ce};Ce.getDefaults=np;Ce.defaults=Ya;Ce.use=function(...e){return $a.use(...e),Ce.defaults=$a.defaults,oC(Ce.defaults),Ce};Ce.walkTokens=function(e,t){return $a.walkTokens(e,t)};Ce.parseInline=$a.parseInline;Ce.Parser=xi;Ce.parser=xi.parse;Ce.Renderer=Ec;Ce.TextRenderer=dp;Ce.Lexer=yi;Ce.lexer=yi.lex;Ce.Tokenizer=Sc;Ce.Hooks=Do;Ce.parse=Ce;Ce.options;Ce.setOptions;Ce.use;Ce.walkTokens;Ce.parseInline;xi.parse;yi.lex;function yC(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(o,l){var u=l.match(/\n([\t ]+|(?!\s).)/g);return u?o.concat(u.map(function(c){var h,f;return(f=(h=c.match(/[\t ]/g))===null||h===void 0?void 0:h.length)!==null&&f!==void 0?f:0})):o},[]);if(n.length){var a=new RegExp(`
|
|
491
|
+
[ ]{`.concat(Math.min.apply(Math,n),"}"),"g");i=i.map(function(o){return o.replace(a,`
|
|
492
|
+
`)})}i[0]=i[0].replace(/^\r?\n/,"");var s=i[0];return t.forEach(function(o,l){var u=s.match(/(?:^|\n)( *)$/),c=u?u[1]:"",h=o;typeof o=="string"&&o.includes(`
|
|
493
|
+
`)&&(h=String(o).split(`
|
|
494
|
+
`).map(function(f,d){return d===0?f:"".concat(c).concat(f)}).join(`
|
|
495
|
+
`)),s+=h+i[l+1]}),s}function xC(e,{markdownAutoWrap:t}){const i=e.replace(/<br\/>/g,`
|
|
496
|
+
`).replace(/\n{2,}/g,`
|
|
497
|
+
`);return yC(i)}C(xC,"preprocessMarkdown");function CC(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"})))??[]})}C(CC,"nonMarkdownToLines");function kC(e,t={}){const r=xC(e,t),i=Ce.lexer(r),n=[[]];let a=0;function s(o,l="normal"){o.type==="text"?o.text.split(`
|
|
498
|
+
`).forEach((c,h)=>{h!==0&&(a++,n.push([])),c.split(" ").forEach(f=>{f=f.replace(/'/g,"'"),f&&n[a].push({content:f,type:l})})}):o.type==="strong"||o.type==="em"?o.tokens.forEach(u=>{s(u,o.type)}):o.type==="html"&&n[a].push({content:o.text,type:"normal"})}return C(s,"processNode"),i.forEach(o=>{var l;o.type==="paragraph"?(l=o.tokens)==null||l.forEach(u=>{s(u)}):o.type==="html"?n[a].push({content:o.text,type:"normal"}):n[a].push({content:o.raw,type:"normal"})}),n}C(kC,"markdownToLines");function TC(e){return e?`<p>${e.replace(/\\n|\n/g,"<br />")}</p>`:""}C(TC,"nonMarkdownToHTML");function wC(e,{markdownAutoWrap:t}={}){const r=Ce.lexer(e);function i(n){var a,s,o;return n.type==="text"?t===!1?n.text.replace(/\n */g,"<br/>").replace(/ /g," "):n.text.replace(/\n */g,"<br/>"):n.type==="strong"?`<strong>${(a=n.tokens)==null?void 0:a.map(i).join("")}</strong>`:n.type==="em"?`<em>${(s=n.tokens)==null?void 0:s.map(i).join("")}</em>`:n.type==="paragraph"?`<p>${(o=n.tokens)==null?void 0:o.map(i).join("")}</p>`:n.type==="space"?"":n.type==="html"?`${n.text}`:n.type==="escape"?n.text:(ut.warn(`Unsupported markdown: ${n.type}`),n.raw)}return C(i,"output"),r.map(i).join("")}C(wC,"markdownToHTML");function vC(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(t=>t.segment):[...e]}C(vC,"splitTextToChars");function SC(e,t){const r=vC(t.content);return fp(e,[],r,t.type)}C(SC,"splitWordToFitWidth");function fp(e,t,r,i){if(r.length===0)return[{content:t.join(""),type:i},{content:"",type:i}];const[n,...a]=r,s=[...t,n];return e([{content:s.join(""),type:i}])?fp(e,s,a,i):(t.length===0&&n&&(t.push(n),r.shift()),[{content:t.join(""),type:i},{content:r.join(""),type:i}])}C(fp,"splitWordToFitWidthRecursion");function EC(e,t){if(e.some(({content:r})=>r.includes(`
|
|
499
|
+
`)))throw new Error("splitLineToFitWidth does not support newlines in the line");return _c(e,t)}C(EC,"splitLineToFitWidth");function _c(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 a=e.shift()??{content:" ",type:"normal"},s=[...i];if(n!==""&&s.push({content:n,type:"normal"}),s.push(a),t(s))return _c(e,t,r,s);if(i.length>0)r.push(i),e.unshift(a);else if(a.content){const[o,l]=SC(t,a);r.push([o]),l.content&&e.unshift(l)}return _c(e,t,r)}C(_c,"splitLineToFitWidthRecursion");function gf(e,t){t&&e.attr("style",t)}C(gf,"applyStyle");var O2=16384;async function _C(e,t,r,i,n=!1,a=Ne()){const s=e.append("foreignObject");s.attr("width",`${Math.min(10*r,O2)}px`),s.attr("height",`${Math.min(10*r,O2)}px`);const o=s.append("xhtml:div"),l=ul(t.label)?await lx(t.label.replace(Ml.lineBreakRegex,`
|
|
500
|
+
`),a):_i(t.label,a),u=t.isNode?"nodeLabel":"edgeLabel",c=o.append("span");c.html(l),gf(c,t.labelStyle),c.attr("class",`${u} ${i}`),gf(o,t.labelStyle),o.style("display","table-cell"),o.style("white-space","nowrap"),o.style("line-height","1.5"),r!==Number.POSITIVE_INFINITY&&(o.style("max-width",r+"px"),o.style("text-align","center")),o.attr("xmlns","http://www.w3.org/1999/xhtml"),n&&o.attr("class","labelBkg");let h=o.node().getBoundingClientRect();return h.width===r&&(o.style("display","table"),o.style("white-space","break-spaces"),o.style("width",r+"px"),h=o.node().getBoundingClientRect()),s.node()}C(_C,"addHtmlSpan");function xh(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}C(xh,"createTspan");function AC(e,t,r){const i=e.append("text"),n=xh(i,1,t);Ch(n,r);const a=n.node().getComputedTextLength();return i.remove(),a}C(AC,"computeWidthOfText");function PD(e,t,r){var s;const i=e.append("text"),n=xh(i,1,t);Ch(n,[{content:r,type:"normal"}]);const a=(s=n.node())==null?void 0:s.getBoundingClientRect();return a&&i.remove(),a}C(PD,"computeDimensionOfText");function BC(e,t,r,i=!1,n=!1){const s=t.append("g"),o=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 u=0;for(const c of r){const h=C(d=>AC(s,1.1,d)<=e,"checkWidth"),f=h(c)?[c]:EC(c,h);for(const d of f){const p=xh(l,u,1.1,n);Ch(p,d),u++}}if(i){const c=l.node().getBBox(),h=2;return o.attr("x",c.x-h).attr("y",c.y-h).attr("width",c.width+2*h).attr("height",c.height+2*h),s.node()}else return l.node()}C(BC,"createFormattedText");function bf(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}})}C(bf,"decodeHTMLEntities");function Ch(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(bf(r.content)):n.text(" "+bf(r.content))})}C(Ch,"updateTextContentAndStyles");async function LC(e,t={}){const r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(n,a,s)=>(r.push((async()=>{const o=`${a}:${s}`;return await tD(o)?await Rl(o,void 0,{class:"label-icon"}):`<i class='${_i(n,t).replace(":"," ")}'></i>`})()),n));const i=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>i.shift()??"")}C(LC,"replaceIconSubstring");var on=C(async(e,t="",{style:r="",isTitle:i=!1,classes:n="",useHtmlLabels:a=!0,markdown:s=!0,isNode:o=!0,width:l=200,addSvgBackground:u=!1}={},c)=>{if(ut.debug("XYZ createText",t,r,i,n,a,o,"addSvgBackground: ",u),a){const h=s?wC(t,c):TC(t),f=await LC(Pa(h),c),d=t.replace(/\\\\/g,"\\"),p={isNode:o,label:ul(t)?d:f,labelStyle:r.replace("fill:","color:")};return await _C(e,p,l,n,u,c)}else{const h=Pa(t.replace(/<br\s*\/?>/g,"<br/>")),f=s?kC(h.replace("<br>","<br/>"),c):CC(h),d=BC(l,e,f,t?u:!1,!o);if(o){/stroke:/.exec(r)&&(r=r.replace("stroke:","lineColor:"));const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");ie(d).attr("style",p)}else{const p=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/background:/g,"fill:");ie(d).select("rect").attr("style",p.replace(/background:/g,"fill:"));const m=r.replace(/stroke:[^;]+;?/g,"").replace(/stroke-width:[^;]+;?/g,"").replace(/fill:[^;]+;?/g,"").replace(/color:/g,"fill:");ie(d).select("text").attr("style",m)}return i?ie(d).selectAll("tspan.text-outer-tspan").classed("title-row",!0):ie(d).selectAll("tspan.text-outer-tspan").classed("row",!0),d}},"createText");function w0(e,t,r){if(e&&e.length){const[i,n]=t,a=Math.PI/180*r,s=Math.cos(a),o=Math.sin(a);for(const l of e){const[u,c]=l;l[0]=(u-i)*s-(c-n)*o+i,l[1]=(u-i)*o+(c-n)*s+n}}}function $D(e,t){return e[0]===t[0]&&e[1]===t[1]}function zD(e,t,r,i=1){const n=r,a=Math.max(t,.1),s=e[0]&&e[0][0]&&typeof e[0][0]=="number"?[e]:e,o=[0,0];if(n)for(const u of s)w0(u,o,n);const l=(function(u,c,h){const f=[];for(const k of u){const w=[...k];$D(w[0],w[w.length-1])||w.push([w[0][0],w[0][1]]),w.length>2&&f.push(w)}const d=[];c=Math.max(c,.1);const p=[];for(const k of f)for(let w=0;w<k.length-1;w++){const _=k[w],A=k[w+1];if(_[1]!==A[1]){const E=Math.min(_[1],A[1]);p.push({ymin:E,ymax:Math.max(_[1],A[1]),x:E===_[1]?_[0]:A[0],islope:(A[0]-_[0])/(A[1]-_[1])})}}if(p.sort(((k,w)=>k.ymin<w.ymin?-1:k.ymin>w.ymin?1:k.x<w.x?-1:k.x>w.x?1:k.ymax===w.ymax?0:(k.ymax-w.ymax)/Math.abs(k.ymax-w.ymax))),!p.length)return d;let m=[],g=p[0].ymin,y=0;for(;m.length||p.length;){if(p.length){let k=-1;for(let w=0;w<p.length&&!(p[w].ymin>g);w++)k=w;p.splice(0,k+1).forEach((w=>{m.push({s:g,edge:w})}))}if(m=m.filter((k=>!(k.edge.ymax<=g))),m.sort(((k,w)=>k.edge.x===w.edge.x?0:(k.edge.x-w.edge.x)/Math.abs(k.edge.x-w.edge.x))),(h!==1||y%c==0)&&m.length>1)for(let k=0;k<m.length;k+=2){const w=k+1;if(w>=m.length)break;const _=m[k].edge,A=m[w].edge;d.push([[Math.round(_.x),g],[Math.round(A.x),g]])}g+=h,m.forEach((k=>{k.edge.x=k.edge.x+h*k.edge.islope})),y++}return d})(s,a,i);if(n){for(const u of s)w0(u,o,-n);(function(u,c,h){const f=[];u.forEach((d=>f.push(...d))),w0(f,c,h)})(l,o,-n)}return l}function $l(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 a=1;return t.roughness>=1&&(((r=t.randomizer)===null||r===void 0?void 0:r.next())||Math.random())>.7&&(a=n),zD(e,n,i,a||1)}let pp=class{constructor(t){this.helper=t}fillPolygons(t,r){return this._fillPolygons(t,r)}_fillPolygons(t,r){const i=$l(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 kh(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))}let HD=class extends pp{fillPolygons(t,r){let i=r.hachureGap;i<0&&(i=4*r.strokeWidth),i=Math.max(i,.1);const n=$l(t,Object.assign({},r,{hachureGap:i})),a=Math.PI/180*r.hachureAngle,s=[],o=.5*i*Math.cos(a),l=.5*i*Math.sin(a);for(const[u,c]of n)kh([u,c])&&s.push([[u[0]-o,u[1]+l],[...c]],[[u[0]+o,u[1]-l],[...c]]);return{type:"fillSketch",ops:this.renderLines(s,r)}}};class qD extends pp{fillPolygons(t,r){const i=this._fillPolygons(t,r),n=Object.assign({},r,{hachureAngle:r.hachureAngle+90}),a=this._fillPolygons(t,n);return i.ops=i.ops.concat(a.ops),i}}class UD{constructor(t){this.helper=t}fillPolygons(t,r){const i=$l(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 a=r.fillWeight;a<0&&(a=r.strokeWidth/2);const s=n/4;for(const o of t){const l=kh(o),u=l/n,c=Math.ceil(u)-1,h=l-c*n,f=(o[0][0]+o[1][0])/2-n/4,d=Math.min(o[0][1],o[1][1]);for(let p=0;p<c;p++){const m=d+h+p*n,g=f-s+2*Math.random()*s,y=m-s+2*Math.random()*s,k=this.helper.ellipse(g,y,a,a,r);i.push(...k.ops)}}return{type:"fillSketch",ops:i}}}let WD=class{constructor(t){this.helper=t}fillPolygons(t,r){const i=$l(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,a=[];return t.forEach((s=>{const o=kh(s),l=Math.floor(o/(i+n)),u=(o+n-l*(i+n))/2;let c=s[0],h=s[1];c[0]>h[0]&&(c=s[1],h=s[0]);const f=Math.atan((h[1]-c[1])/(h[0]-c[0]));for(let d=0;d<l;d++){const p=d*(i+n),m=p+i,g=[c[0]+p*Math.cos(f)+u*Math.cos(f),c[1]+p*Math.sin(f)+u*Math.sin(f)],y=[c[0]+m*Math.cos(f)+u*Math.cos(f),c[1]+m*Math.sin(f)+u*Math.sin(f)];a.push(...this.helper.doubleLineOps(g[0],g[1],y[0],y[1],r))}})),a}};class jD{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,a=$l(t,r=Object.assign({},r,{hachureGap:i+n}));return{type:"fillSketch",ops:this.zigzagLines(a,n,r)}}zigzagLines(t,r,i){const n=[];return t.forEach((a=>{const s=kh(a),o=Math.round(s/(2*r));let l=a[0],u=a[1];l[0]>u[0]&&(l=a[1],u=a[0]);const c=Math.atan((u[1]-l[1])/(u[0]-l[0]));for(let h=0;h<o;h++){const f=2*h*r,d=2*(h+1)*r,p=Math.sqrt(2*Math.pow(r,2)),m=[l[0]+f*Math.cos(c),l[1]+f*Math.sin(c)],g=[l[0]+d*Math.cos(c),l[1]+d*Math.sin(c)],y=[m[0]+p*Math.cos(c+Math.PI/4),m[1]+p*Math.sin(c+Math.PI/4)];n.push(...this.helper.doubleLineOps(m[0],m[1],y[0],y[1],i),...this.helper.doubleLineOps(y[0],y[1],g[0],g[1],i))}})),n}}const zr={};let YD=class{constructor(t){this.seed=t}next(){return this.seed?(2**31-1&(this.seed=Math.imul(48271,this.seed)))/2**31:Math.random()}};const VD=0,v0=1,D2=2,du={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 S0(e,t){return e.type===t}function mp(e){const t=[],r=(function(s){const o=new Array;for(;s!=="";)if(s.match(/^([ \t\r\n,]+)/))s=s.substr(RegExp.$1.length);else if(s.match(/^([aAcChHlLmMqQsStTvVzZ])/))o[o.length]={type:VD,text:RegExp.$1},s=s.substr(RegExp.$1.length);else{if(!s.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];o[o.length]={type:v0,text:`${parseFloat(RegExp.$1)}`},s=s.substr(RegExp.$1.length)}return o[o.length]={type:D2,text:""},o})(e);let i="BOD",n=0,a=r[n];for(;!S0(a,D2);){let s=0;const o=[];if(i==="BOD"){if(a.text!=="M"&&a.text!=="m")return mp("M0,0"+e);n++,s=du[a.text],i=a.text}else S0(a,v0)?s=du[i]:(n++,s=du[a.text],i=a.text);if(!(n+s<r.length))throw new Error("Path data ended short");for(let l=n;l<n+s;l++){const u=r[l];if(!S0(u,v0))throw new Error("Param not a number: "+i+","+u.text);o[o.length]=+u.text}if(typeof du[i]!="number")throw new Error("Bad segment: "+i);{const l={key:i,data:o};t.push(l),n+=s,a=r[n],i==="M"&&(i="L"),i==="m"&&(i="l")}}return t}function IC(e){let t=0,r=0,i=0,n=0;const a=[];for(const{key:s,data:o}of e)switch(s){case"M":a.push({key:"M",data:[...o]}),[t,r]=o,[i,n]=o;break;case"m":t+=o[0],r+=o[1],a.push({key:"M",data:[t,r]}),i=t,n=r;break;case"L":a.push({key:"L",data:[...o]}),[t,r]=o;break;case"l":t+=o[0],r+=o[1],a.push({key:"L",data:[t,r]});break;case"C":a.push({key:"C",data:[...o]}),t=o[4],r=o[5];break;case"c":{const l=o.map(((u,c)=>c%2?u+r:u+t));a.push({key:"C",data:l}),t=l[4],r=l[5];break}case"Q":a.push({key:"Q",data:[...o]}),t=o[2],r=o[3];break;case"q":{const l=o.map(((u,c)=>c%2?u+r:u+t));a.push({key:"Q",data:l}),t=l[2],r=l[3];break}case"A":a.push({key:"A",data:[...o]}),t=o[5],r=o[6];break;case"a":t+=o[5],r+=o[6],a.push({key:"A",data:[o[0],o[1],o[2],o[3],o[4],t,r]});break;case"H":a.push({key:"H",data:[...o]}),t=o[0];break;case"h":t+=o[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...o]}),r=o[0];break;case"v":r+=o[0],a.push({key:"V",data:[r]});break;case"S":a.push({key:"S",data:[...o]}),t=o[2],r=o[3];break;case"s":{const l=o.map(((u,c)=>c%2?u+r:u+t));a.push({key:"S",data:l}),t=l[2],r=l[3];break}case"T":a.push({key:"T",data:[...o]}),t=o[0],r=o[1];break;case"t":t+=o[0],r+=o[1],a.push({key:"T",data:[t,r]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=i,r=n}return a}function MC(e){const t=[];let r="",i=0,n=0,a=0,s=0,o=0,l=0;for(const{key:u,data:c}of e){switch(u){case"M":t.push({key:"M",data:[...c]}),[i,n]=c,[a,s]=c;break;case"C":t.push({key:"C",data:[...c]}),i=c[4],n=c[5],o=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 h=0,f=0;r==="C"||r==="S"?(h=i+(i-o),f=n+(n-l)):(h=i,f=n),t.push({key:"C",data:[h,f,...c]}),o=c[0],l=c[1],i=c[2],n=c[3];break}case"T":{const[h,f]=c;let d=0,p=0;r==="Q"||r==="T"?(d=i+(i-o),p=n+(n-l)):(d=i,p=n);const m=i+2*(d-i)/3,g=n+2*(p-n)/3,y=h+2*(d-h)/3,k=f+2*(p-f)/3;t.push({key:"C",data:[m,g,y,k,h,f]}),o=d,l=p,i=h,n=f;break}case"Q":{const[h,f,d,p]=c,m=i+2*(h-i)/3,g=n+2*(f-n)/3,y=d+2*(h-d)/3,k=p+2*(f-p)/3;t.push({key:"C",data:[m,g,y,k,d,p]}),o=h,l=f,i=d,n=p;break}case"A":{const h=Math.abs(c[0]),f=Math.abs(c[1]),d=c[2],p=c[3],m=c[4],g=c[5],y=c[6];h===0||f===0?(t.push({key:"C",data:[i,n,g,y,g,y]}),i=g,n=y):(i!==g||n!==y)&&(NC(i,n,g,y,h,f,d,p,m).forEach((function(k){t.push({key:"C",data:k})})),i=g,n=y);break}case"Z":t.push({key:"Z",data:[]}),i=a,n=s}r=u}return t}function bo(e,t,r){return[e*Math.cos(r)-t*Math.sin(r),e*Math.sin(r)+t*Math.cos(r)]}function NC(e,t,r,i,n,a,s,o,l,u){const c=(h=s,Math.PI*h/180);var h;let f=[],d=0,p=0,m=0,g=0;if(u)[d,p,m,g]=u;else{[e,t]=bo(e,t,-c),[r,i]=bo(r,i,-c);const J=(e-r)/2,j=(t-i)/2;let P=J*J/(n*n)+j*j/(a*a);P>1&&(P=Math.sqrt(P),n*=P,a*=P);const $=n*n,V=a*a,X=$*V-$*j*j-V*J*J,it=$*j*j+V*J*J,L=(o===l?-1:1)*Math.sqrt(Math.abs(X/it));m=L*n*j/a+(e+r)/2,g=L*-a*J/n+(t+i)/2,d=Math.asin(parseFloat(((t-g)/a).toFixed(9))),p=Math.asin(parseFloat(((i-g)/a).toFixed(9))),e<m&&(d=Math.PI-d),r<m&&(p=Math.PI-p),d<0&&(d=2*Math.PI+d),p<0&&(p=2*Math.PI+p),l&&d>p&&(d-=2*Math.PI),!l&&p>d&&(p-=2*Math.PI)}let y=p-d;if(Math.abs(y)>120*Math.PI/180){const J=p,j=r,P=i;p=l&&p>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,f=NC(r=m+n*Math.cos(p),i=g+a*Math.sin(p),j,P,n,a,s,0,l,[p,J,m,g])}y=p-d;const k=Math.cos(d),w=Math.sin(d),_=Math.cos(p),A=Math.sin(p),E=Math.tan(y/4),N=4/3*n*E,F=4/3*a*E,Y=[e,t],I=[e+N*w,t-F*k],z=[r+N*A,i-F*_],K=[r,i];if(I[0]=2*Y[0]-I[0],I[1]=2*Y[1]-I[1],u)return[I,z,K].concat(f);{f=[I,z,K].concat(f);const J=[];for(let j=0;j<f.length;j+=3){const P=bo(f[j][0],f[j][1],c),$=bo(f[j+1][0],f[j+1][1],c),V=bo(f[j+2][0],f[j+2][1],c);J.push([P[0],P[1],$[0],$[1],V[0],V[1]])}return J}}const GD={randOffset:function(e,t){return Gt(e,t)},randOffsetWithRange:function(e,t,r){return Ac(e,t,r)},ellipse:function(e,t,r,i,n){const a=OC(r,i,n);return yf(e,t,n,a).opset},doubleLineOps:function(e,t,r,i,n){return ea(e,t,r,i,n,!0)}};function FC(e,t,r,i,n){return{type:"path",ops:ea(e,t,r,i,n)}}function $u(e,t,r){const i=(e||[]).length;if(i>2){const n=[];for(let a=0;a<i-1;a++)n.push(...ea(e[a][0],e[a][1],e[a+1][0],e[a+1][1],r));return t&&n.push(...ea(e[i-1][0],e[i-1][1],e[0][0],e[0][1],r)),{type:"path",ops:n}}return i===2?FC(e[0][0],e[0][1],e[1][0],e[1][1],r):{type:"path",ops:[]}}function XD(e,t,r,i,n){return(function(a,s){return $u(a,!0,s)})([[e,t],[e+r,t],[e+r,t+i],[e,t+i]],n)}function R2(e,t){if(e.length){const r=typeof e[0][0]=="number"?[e]:e,i=fu(r[0],1*(1+.2*t.roughness),t),n=t.disableMultiStroke?[]:fu(r[0],1.5*(1+.22*t.roughness),z2(t));for(let a=1;a<r.length;a++){const s=r[a];if(s.length){const o=fu(s,1*(1+.2*t.roughness),t),l=t.disableMultiStroke?[]:fu(s,1.5*(1+.22*t.roughness),z2(t));for(const u of o)u.op!=="move"&&i.push(u);for(const u of l)u.op!=="move"&&n.push(u)}}return{type:"path",ops:i.concat(n)}}return{type:"path",ops:[]}}function OC(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)),a=2*Math.PI/n;let s=Math.abs(e/2),o=Math.abs(t/2);const l=1-r.curveFitting;return s+=Gt(s*l,r),o+=Gt(o*l,r),{increment:a,rx:s,ry:o}}function yf(e,t,r,i){const[n,a]=H2(i.increment,e,t,i.rx,i.ry,1,i.increment*Ac(.1,Ac(.4,1,r),r),r);let s=Bc(n,null,r);if(!r.disableMultiStroke&&r.roughness!==0){const[o]=H2(i.increment,e,t,i.rx,i.ry,1.5,0,r),l=Bc(o,null,r);s=s.concat(l)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}function P2(e,t,r,i,n,a,s,o,l){const u=e,c=t;let h=Math.abs(r/2),f=Math.abs(i/2);h+=Gt(.01*h,l),f+=Gt(.01*f,l);let d=n,p=a;for(;d<0;)d+=2*Math.PI,p+=2*Math.PI;p-d>2*Math.PI&&(d=0,p=2*Math.PI);const m=2*Math.PI/l.curveStepCount,g=Math.min(m/2,(p-d)/2),y=q2(g,u,c,h,f,d,p,1,l);if(!l.disableMultiStroke){const k=q2(g,u,c,h,f,d,p,1.5,l);y.push(...k)}return s&&(o?y.push(...ea(u,c,u+h*Math.cos(d),c+f*Math.sin(d),l),...ea(u,c,u+h*Math.cos(p),c+f*Math.sin(p),l)):y.push({op:"lineTo",data:[u,c]},{op:"lineTo",data:[u+h*Math.cos(d),c+f*Math.sin(d)]})),{type:"path",ops:y}}function $2(e,t){const r=MC(IC(mp(e))),i=[];let n=[0,0],a=[0,0];for(const{key:s,data:o}of r)switch(s){case"M":a=[o[0],o[1]],n=[o[0],o[1]];break;case"L":i.push(...ea(a[0],a[1],o[0],o[1],t)),a=[o[0],o[1]];break;case"C":{const[l,u,c,h,f,d]=o;i.push(...KD(l,u,c,h,f,d,a,t)),a=[f,d];break}case"Z":i.push(...ea(a[0],a[1],n[0],n[1],t)),a=[n[0],n[1]]}return{type:"path",ops:i}}function E0(e,t){const r=[];for(const i of e)if(i.length){const n=t.maxRandomnessOffset||0,a=i.length;if(a>2){r.push({op:"move",data:[i[0][0]+Gt(n,t),i[0][1]+Gt(n,t)]});for(let s=1;s<a;s++)r.push({op:"lineTo",data:[i[s][0]+Gt(n,t),i[s][1]+Gt(n,t)]})}}return{type:"fillPath",ops:r}}function is(e,t){return(function(r,i){let n=r.fillStyle||"hachure";if(!zr[n])switch(n){case"zigzag":zr[n]||(zr[n]=new HD(i));break;case"cross-hatch":zr[n]||(zr[n]=new qD(i));break;case"dots":zr[n]||(zr[n]=new UD(i));break;case"dashed":zr[n]||(zr[n]=new WD(i));break;case"zigzag-line":zr[n]||(zr[n]=new jD(i));break;default:n="hachure",zr[n]||(zr[n]=new pp(i))}return zr[n]})(t,GD).fillPolygons(e,t)}function z2(e){const t=Object.assign({},e);return t.randomizer=void 0,e.seed&&(t.seed=e.seed+1),t}function DC(e){return e.randomizer||(e.randomizer=new YD(e.seed||0)),e.randomizer.next()}function Ac(e,t,r,i=1){return r.roughness*i*(DC(r)*(t-e)+e)}function Gt(e,t,r=1){return Ac(-e,e,t,r)}function ea(e,t,r,i,n,a=!1){const s=a?n.disableMultiStrokeFill:n.disableMultiStroke,o=xf(e,t,r,i,n,!0,!1);if(s)return o;const l=xf(e,t,r,i,n,!0,!0);return o.concat(l)}function xf(e,t,r,i,n,a,s){const o=Math.pow(e-r,2)+Math.pow(t-i,2),l=Math.sqrt(o);let u=1;u=l<200?1:l>500?.4:-.0016668*l+1.233334;let c=n.maxRandomnessOffset||0;c*c*100>o&&(c=l/10);const h=c/2,f=.2+.2*DC(n);let d=n.bowing*n.maxRandomnessOffset*(i-t)/200,p=n.bowing*n.maxRandomnessOffset*(e-r)/200;d=Gt(d,n,u),p=Gt(p,n,u);const m=[],g=()=>Gt(h,n,u),y=()=>Gt(c,n,u),k=n.preserveVertices;return s?m.push({op:"move",data:[e+(k?0:g()),t+(k?0:g())]}):m.push({op:"move",data:[e+(k?0:Gt(c,n,u)),t+(k?0:Gt(c,n,u))]}),s?m.push({op:"bcurveTo",data:[d+e+(r-e)*f+g(),p+t+(i-t)*f+g(),d+e+2*(r-e)*f+g(),p+t+2*(i-t)*f+g(),r+(k?0:g()),i+(k?0:g())]}):m.push({op:"bcurveTo",data:[d+e+(r-e)*f+y(),p+t+(i-t)*f+y(),d+e+2*(r-e)*f+y(),p+t+2*(i-t)*f+y(),r+(k?0:y()),i+(k?0:y())]}),m}function fu(e,t,r){if(!e.length)return[];const i=[];i.push([e[0][0]+Gt(t,r),e[0][1]+Gt(t,r)]),i.push([e[0][0]+Gt(t,r),e[0][1]+Gt(t,r)]);for(let n=1;n<e.length;n++)i.push([e[n][0]+Gt(t,r),e[n][1]+Gt(t,r)]),n===e.length-1&&i.push([e[n][0]+Gt(t,r),e[n][1]+Gt(t,r)]);return Bc(i,null,r)}function Bc(e,t,r){const i=e.length,n=[];if(i>3){const a=[],s=1-r.curveTightness;n.push({op:"move",data:[e[1][0],e[1][1]]});for(let o=1;o+2<i;o++){const l=e[o];a[0]=[l[0],l[1]],a[1]=[l[0]+(s*e[o+1][0]-s*e[o-1][0])/6,l[1]+(s*e[o+1][1]-s*e[o-1][1])/6],a[2]=[e[o+1][0]+(s*e[o][0]-s*e[o+2][0])/6,e[o+1][1]+(s*e[o][1]-s*e[o+2][1])/6],a[3]=[e[o+1][0],e[o+1][1]],n.push({op:"bcurveTo",data:[a[1][0],a[1][1],a[2][0],a[2][1],a[3][0],a[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(...xf(e[0][0],e[0][1],e[1][0],e[1][1],r,!0,!0));return n}function H2(e,t,r,i,n,a,s,o){const l=[],u=[];if(o.roughness===0){e/=4,u.push([t+i*Math.cos(-e),r+n*Math.sin(-e)]);for(let c=0;c<=2*Math.PI;c+=e){const h=[t+i*Math.cos(c),r+n*Math.sin(c)];l.push(h),u.push(h)}u.push([t+i*Math.cos(0),r+n*Math.sin(0)]),u.push([t+i*Math.cos(e),r+n*Math.sin(e)])}else{const c=Gt(.5,o)-Math.PI/2;u.push([Gt(a,o)+t+.9*i*Math.cos(c-e),Gt(a,o)+r+.9*n*Math.sin(c-e)]);const h=2*Math.PI+c-.01;for(let f=c;f<h;f+=e){const d=[Gt(a,o)+t+i*Math.cos(f),Gt(a,o)+r+n*Math.sin(f)];l.push(d),u.push(d)}u.push([Gt(a,o)+t+i*Math.cos(c+2*Math.PI+.5*s),Gt(a,o)+r+n*Math.sin(c+2*Math.PI+.5*s)]),u.push([Gt(a,o)+t+.98*i*Math.cos(c+s),Gt(a,o)+r+.98*n*Math.sin(c+s)]),u.push([Gt(a,o)+t+.9*i*Math.cos(c+.5*s),Gt(a,o)+r+.9*n*Math.sin(c+.5*s)])}return[u,l]}function q2(e,t,r,i,n,a,s,o,l){const u=a+Gt(.1,l),c=[];c.push([Gt(o,l)+t+.9*i*Math.cos(u-e),Gt(o,l)+r+.9*n*Math.sin(u-e)]);for(let h=u;h<=s;h+=e)c.push([Gt(o,l)+t+i*Math.cos(h),Gt(o,l)+r+n*Math.sin(h)]);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)]),Bc(c,null,l)}function KD(e,t,r,i,n,a,s,o){const l=[],u=[o.maxRandomnessOffset||1,(o.maxRandomnessOffset||1)+.3];let c=[0,0];const h=o.disableMultiStroke?1:2,f=o.preserveVertices;for(let d=0;d<h;d++)d===0?l.push({op:"move",data:[s[0],s[1]]}):l.push({op:"move",data:[s[0]+(f?0:Gt(u[0],o)),s[1]+(f?0:Gt(u[0],o))]}),c=f?[n,a]:[n+Gt(u[d],o),a+Gt(u[d],o)],l.push({op:"bcurveTo",data:[e+Gt(u[d],o),t+Gt(u[d],o),r+Gt(u[d],o),i+Gt(u[d],o),c[0],c[1]]});return l}function yo(e){return[...e]}function U2(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(yo(e[0]),yo(e[1]),yo(e[2]),yo(e[2]));else{const n=[];n.push(e[0],e[0]);for(let o=1;o<e.length;o++)n.push(e[o]),o===e.length-1&&n.push(e[o]);const a=[],s=1-t;i.push(yo(n[0]));for(let o=1;o+2<n.length;o++){const l=n[o];a[0]=[l[0],l[1]],a[1]=[l[0]+(s*n[o+1][0]-s*n[o-1][0])/6,l[1]+(s*n[o+1][1]-s*n[o-1][1])/6],a[2]=[n[o+1][0]+(s*n[o][0]-s*n[o+2][0])/6,n[o+1][1]+(s*n[o][1]-s*n[o+2][1])/6],a[3]=[n[o+1][0],n[o+1][1]],i.push(a[1],a[2],a[3])}}return i}function zu(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)}function QD(e,t,r){const i=zu(t,r);if(i===0)return zu(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)),zu(e,ya(t,r,n))}function ya(e,t,r){return[e[0]+(t[0]-e[0])*r,e[1]+(t[1]-e[1])*r]}function Cf(e,t,r,i){const n=i||[];if((function(o,l){const u=o[l+0],c=o[l+1],h=o[l+2],f=o[l+3];let d=3*c[0]-2*u[0]-f[0];d*=d;let p=3*c[1]-2*u[1]-f[1];p*=p;let m=3*h[0]-2*f[0]-u[0];m*=m;let g=3*h[1]-2*f[1]-u[1];return g*=g,d<m&&(d=m),p<g&&(p=g),d+p})(e,t)<r){const o=e[t+0];n.length?(a=n[n.length-1],s=o,Math.sqrt(zu(a,s))>1&&n.push(o)):n.push(o),n.push(e[t+3])}else{const l=e[t+0],u=e[t+1],c=e[t+2],h=e[t+3],f=ya(l,u,.5),d=ya(u,c,.5),p=ya(c,h,.5),m=ya(f,d,.5),g=ya(d,p,.5),y=ya(m,g,.5);Cf([l,f,m,y],0,r,n),Cf([y,g,p,h],0,r,n)}var a,s;return n}function ZD(e,t){return Lc(e,0,e.length,t)}function Lc(e,t,r,i,n){const a=n||[],s=e[t],o=e[r-1];let l=0,u=1;for(let c=t+1;c<r-1;++c){const h=QD(e[c],s,o);h>l&&(l=h,u=c)}return Math.sqrt(l)>i?(Lc(e,t,u+1,i,a),Lc(e,u,r,i,a)):(a.length||a.push(s),a.push(o)),a}function _0(e,t=.15,r){const i=[],n=(e.length-1)/3;for(let a=0;a<n;a++)Cf(e,3*a,t,i);return r&&r>0?Lc(i,0,i.length,r):i}const Gr="none";let Ic=class{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,a){const s=this._o(a);return this._d("line",[FC(t,r,i,n,s)],s)}rectangle(t,r,i,n,a){const s=this._o(a),o=[],l=XD(t,r,i,n,s);if(s.fill){const u=[[t,r],[t+i,r],[t+i,r+n],[t,r+n]];s.fillStyle==="solid"?o.push(E0([u],s)):o.push(is([u],s))}return s.stroke!==Gr&&o.push(l),this._d("rectangle",o,s)}ellipse(t,r,i,n,a){const s=this._o(a),o=[],l=OC(i,n,s),u=yf(t,r,s,l);if(s.fill)if(s.fillStyle==="solid"){const c=yf(t,r,s,l).opset;c.type="fillPath",o.push(c)}else o.push(is([u.estimatedPoints],s));return s.stroke!==Gr&&o.push(u.opset),this._d("ellipse",o,s)}circle(t,r,i,n){const a=this.ellipse(t,r,i,i,n);return a.shape="circle",a}linearPath(t,r){const i=this._o(r);return this._d("linearPath",[$u(t,!1,i)],i)}arc(t,r,i,n,a,s,o=!1,l){const u=this._o(l),c=[],h=P2(t,r,i,n,a,s,o,!0,u);if(o&&u.fill)if(u.fillStyle==="solid"){const f=Object.assign({},u);f.disableMultiStroke=!0;const d=P2(t,r,i,n,a,s,!0,!1,f);d.type="fillPath",c.push(d)}else c.push((function(f,d,p,m,g,y,k){const w=f,_=d;let A=Math.abs(p/2),E=Math.abs(m/2);A+=Gt(.01*A,k),E+=Gt(.01*E,k);let N=g,F=y;for(;N<0;)N+=2*Math.PI,F+=2*Math.PI;F-N>2*Math.PI&&(N=0,F=2*Math.PI);const Y=(F-N)/k.curveStepCount,I=[];for(let z=N;z<=F;z+=Y)I.push([w+A*Math.cos(z),_+E*Math.sin(z)]);return I.push([w+A*Math.cos(F),_+E*Math.sin(F)]),I.push([w,_]),is([I],k)})(t,r,i,n,a,s,u));return u.stroke!==Gr&&c.push(h),this._d("arc",c,u)}curve(t,r){const i=this._o(r),n=[],a=R2(t,i);if(i.fill&&i.fill!==Gr)if(i.fillStyle==="solid"){const s=R2(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=[],o=t;if(o.length){const l=typeof o[0][0]=="number"?[o]:o;for(const u of l)u.length<3?s.push(...u):u.length===3?s.push(..._0(U2([u[0],u[0],u[1],u[2]]),10,(1+i.roughness)/2)):s.push(..._0(U2(u),10,(1+i.roughness)/2))}s.length&&n.push(is([s],i))}return i.stroke!==Gr&&n.push(a),this._d("curve",n,i)}polygon(t,r){const i=this._o(r),n=[],a=$u(t,!0,i);return i.fill&&(i.fillStyle==="solid"?n.push(E0([t],i)):n.push(is([t],i))),i.stroke!==Gr&&n.push(a),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 a=i.fill&&i.fill!=="transparent"&&i.fill!==Gr,s=i.stroke!==Gr,o=!!(i.simplification&&i.simplification<1),l=(function(c,h,f){const d=MC(IC(mp(c))),p=[];let m=[],g=[0,0],y=[];const k=()=>{y.length>=4&&m.push(..._0(y,h)),y=[]},w=()=>{k(),m.length&&(p.push(m),m=[])};for(const{key:A,data:E}of d)switch(A){case"M":w(),g=[E[0],E[1]],m.push(g);break;case"L":k(),m.push([E[0],E[1]]);break;case"C":if(!y.length){const N=m.length?m[m.length-1]:g;y.push([N[0],N[1]])}y.push([E[0],E[1]]),y.push([E[2],E[3]]),y.push([E[4],E[5]]);break;case"Z":k(),m.push([g[0],g[1]])}if(w(),!f)return p;const _=[];for(const A of p){const E=ZD(A,f);E.length&&_.push(E)}return _})(t,1,o?4-4*(i.simplification||1):(1+i.roughness)/2),u=$2(t,i);if(a)if(i.fillStyle==="solid")if(l.length===1){const c=$2(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(E0(l,i));else n.push(is(l,i));return s&&(o?l.forEach((c=>{n.push($u(c,!1,i))})):n.push(u)),this._d("path",n,i)}opsToPath(t,r){let i="";for(const n of t.ops){const a=typeof r=="number"&&r>=0?n.data.map((s=>+s.toFixed(r))):n.data;switch(n.op){case"move":i+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":i+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":i+=`L${a[0]} ${a[1]} `}}return i.trim()}toPaths(t){const r=t.sets||[],i=t.options||this.defaultOptions,n=[];for(const a of r){let s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:i.stroke,strokeWidth:i.strokeWidth,fill:Gr};break;case"fillPath":s={d:this.opsToPath(a),stroke:Gr,strokeWidth:0,fill:i.fill||Gr};break;case"fillSketch":s=this.fillSketch(a,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||Gr,strokeWidth:i,fill:Gr}}_mergedShape(t){return t.filter(((r,i)=>i===0||r.op!=="move"))}},JD=class{constructor(t,r){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new Ic(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.ctx,a=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,a),n.restore();break;case"fillPath":{n.save(),n.fillStyle=i.fill||"";const o=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(n,s,a,o),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 a of r.ops){const s=typeof i=="number"&&i>=0?a.data.map((o=>+o.toFixed(i))):a.data;switch(a.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,a){const s=this.gen.line(t,r,i,n,a);return this.draw(s),s}rectangle(t,r,i,n,a){const s=this.gen.rectangle(t,r,i,n,a);return this.draw(s),s}ellipse(t,r,i,n,a){const s=this.gen.ellipse(t,r,i,n,a);return this.draw(s),s}circle(t,r,i,n){const a=this.gen.circle(t,r,i,n);return this.draw(a),a}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,a,s,o=!1,l){const u=this.gen.arc(t,r,i,n,a,s,o,l);return this.draw(u),u}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 pu="http://www.w3.org/2000/svg";let tR=class{constructor(t,r){this.svg=t,this.gen=new Ic(r)}draw(t){const r=t.sets||[],i=t.options||this.getDefaultOptions(),n=this.svg.ownerDocument||window.document,a=n.createElementNS(pu,"g"),s=t.options.fixedDecimalPlaceDigits;for(const o of r){let l=null;switch(o.type){case"path":l=n.createElementNS(pu,"path"),l.setAttribute("d",this.opsToPath(o,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(pu,"path"),l.setAttribute("d",this.opsToPath(o,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,o,i)}l&&a.appendChild(l)}return a}fillSketch(t,r,i){let n=i.fillWeight;n<0&&(n=i.strokeWidth/2);const a=t.createElementNS(pu,"path");return a.setAttribute("d",this.opsToPath(r,i.fixedDecimalPlaceDigits)),a.setAttribute("stroke",i.fill||""),a.setAttribute("stroke-width",n+""),a.setAttribute("fill","none"),i.fillLineDash&&a.setAttribute("stroke-dasharray",i.fillLineDash.join(" ").trim()),i.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${i.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,r){return this.gen.opsToPath(t,r)}line(t,r,i,n,a){const s=this.gen.line(t,r,i,n,a);return this.draw(s)}rectangle(t,r,i,n,a){const s=this.gen.rectangle(t,r,i,n,a);return this.draw(s)}ellipse(t,r,i,n,a){const s=this.gen.ellipse(t,r,i,n,a);return this.draw(s)}circle(t,r,i,n){const a=this.gen.circle(t,r,i,n);return this.draw(a)}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,a,s,o=!1,l){const u=this.gen.arc(t,r,i,n,a,s,o,l);return this.draw(u)}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 Mt={canvas:(e,t)=>new JD(e,t),svg:(e,t)=>new tR(e,t),generator:e=>new Ic(e),newSeed:()=>Ic.newSeed()},Yt=C(async(e,t,r)=>{var d,p;let i;const n=t.useHtmlLabels||an((d=me())==null?void 0:d.htmlLabels);r?i=r:i="node default";const a=e.insert("g").attr("class",i).attr("id",t.domId||t.id),s=a.insert("g").attr("class","label").attr("style",ir(t.labelStyle));let o;t.label===void 0?o="":o=typeof t.label=="string"?t.label:t.label[0];const l=!!t.icon||!!t.img,u=t.labelType==="markdown",c=await on(s,_i(Pa(o),me()),{useHtmlLabels:n,width:t.width||((p=me().flowchart)==null?void 0:p.wrappingWidth),classes:u?"markdown-node-label":"",style:t.labelStyle,addSvgBackground:l,markdown:u},me());let h=c.getBBox();const f=((t==null?void 0:t.padding)??0)/2;if(n){const m=c.children[0],g=ie(c);await iC(m,o),h=m.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height)}return n?s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"):s.attr("transform","translate(0, "+-h.height/2+")"),t.centerLabel&&s.attr("transform","translate("+-h.width/2+", "+-h.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:a,bbox:h,halfPadding:f,label:s}},"labelHelper"),A0=C(async(e,t,r)=>{var l,u;const i=r.useHtmlLabels??Dr(me()),n=e.insert("g").attr("class","label").attr("style",r.labelStyle||""),a=await on(n,_i(Pa(t),me()),{useHtmlLabels:i,width:r.width||((u=(l=me())==null?void 0:l.flowchart)==null?void 0:u.wrappingWidth),style:r.labelStyle,addSvgBackground:!!r.icon||!!r.img});let s=a.getBBox();const o=r.padding/2;if(Dr(me())){const c=a.children[0],h=ie(a);s=c.getBoundingClientRect(),h.attr("width",s.width),h.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:o,label:n}},"insertLabel"),Ot=C((e,t)=>{const r=t.node().getBBox();e.width=r.width,e.height=r.height},"updateNodeBounds"),Wt=C((e,t)=>(e.look==="handDrawn"?"rough-node":"node")+" "+e.cssClasses+" "+(t||""),"getNodeClasses");function ce(e){const t=e.map((r,i)=>`${i===0?"M":"L"}${r.x},${r.y}`);return t.push("Z"),t.join(" ")}C(ce,"createPathFromPoints");function ra(e,t,r,i,n,a){const s=[],l=r-e,u=i-t,c=l/a,h=2*Math.PI/c,f=t+u/2;for(let d=0;d<=50;d++){const p=d/50,m=e+p*l,g=f+n*Math.sin(h*(m-e));s.push({x:m,y:g})}return s}C(ra,"generateFullSineWavePoints");function yl(e,t,r,i,n,a){const s=[],o=n*Math.PI/180,c=(a*Math.PI/180-o)/(i-1);for(let h=0;h<i;h++){const f=o+h*c,d=e+r*Math.cos(f),p=t+r*Math.sin(f);s.push({x:-d,y:-p})}return s}C(yl,"generateCirclePoints");function kf(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"),a=t.find(l=>l.getAttribute("stroke")!=="none"),s=C((l,u)=>(l==null?void 0:l.getAttribute(u))??void 0,"getAttr");if(n){const l={fill:s(n,"fill"),"fill-opacity":s(n,"fill-opacity")??"1"};Object.entries(l).forEach(([u,c])=>{c&&r.setAttribute(u,c)})}if(a){const l={stroke:s(a,"stroke"),"stroke-width":s(a,"stroke-width")??"1","stroke-opacity":s(a,"stroke-opacity")??"1"};Object.entries(l).forEach(([u,c])=>{c&&r.setAttribute(u,c)})}const o=document.createElementNS("http://www.w3.org/2000/svg","g");return o.appendChild(r),o}C(kf,"mergePaths");var eR=C((e,t)=>{var r=e.x,i=e.y,n=t.x-r,a=t.y-i,s=e.width/2,o=e.height/2,l,u;return Math.abs(a)*s>Math.abs(n)*o?(a<0&&(o=-o),l=a===0?0:o*n/a,u=o):(n<0&&(s=-s),l=s,u=n===0?0:s*a/n),{x:r+l,y:i+u}},"intersectRect"),Va=eR,rR=C(async(e,t,r,i=!1,n=!1)=>{let a=t||"";typeof a=="object"&&(a=a[0]);const s=me(),o=Dr(s);return await on(e,a,{style:r,isTitle:i,useHtmlLabels:o,markdown:!1,isNode:n,width:Number.POSITIVE_INFINITY},s)},"createLabel"),Wn=rR,la=C((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"),iR=C(async(e,t)=>{const r=me(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:s}=i,o=s,{labelStyles:l,nodeStyles:u,borderStyles:c,backgroundStyles:h}=Nt(t),f=e.insert("g").attr("class","cluster swimlane "+(t.cssClasses||"")).attr("id",t.id).attr("data-id",t.id).attr("data-et","cluster").attr("data-look",t.look),d=an(r.flowchart.htmlLabels),p=t.direction==="LR",m=f.insert("g").attr("class","cluster-label swimlane-label"),g=await on(m,t.label,{style:t.labelStyle,useHtmlLabels:d,isNode:!0,width:t.width});let y=g.getBBox();if(d){const J=g.children[0],j=ie(g);y=J.getBoundingClientRect(),j.attr("width",y.width),j.attr("height",y.height)}const k=t.padding??0,w=t.width<=y.width+k?y.width+k:t.width;t.width<=y.width+k?t.diff=(w-t.width)/2-k:t.diff=-k;const _=t.height,A=t.y-_/2,E=t.y+_/2,N=t.x-w/2,F=t.swimlaneContentTop!==void 0?t.swimlaneContentTop:A+_/3,Y=p?4:0,I=y.height+2*Y;let z,K;if(p){const J=Math.max(I,y.height+2*Y),j=N+J,P=Math.max(0,w-J);if(t.look==="handDrawn"){const X=Mt.svg(f),it=Lt(t,{roughness:.7,fill:a,stroke:o,fillWeight:3,seed:n}),L=Lt(t,{roughness:.7,fill:"none",stroke:o,seed:n}),lt=X.rectangle(N,A,J,_,it);z=f.insert(()=>lt,":first-child");const Ct=X.rectangle(j,A,P,_,L);K=f.insert(()=>Ct,":first-child"),z.select("path:nth-child(2)").attr("style",c.join(";")),z.select("path").attr("style",h.join(";").replace("fill","stroke"))}else z=f.insert("rect",":first-child"),K=f.insert("rect",":first-child"),z.attr("class","swimlane-title").attr("style",u).attr("x",N).attr("y",A).attr("width",J).attr("height",_).attr("fill",a).attr("stroke",o),K.attr("class","swimlane-body").attr("style",u).attr("x",j).attr("y",A).attr("width",P).attr("height",_).attr("fill","none").attr("stroke",o);const $=N+J/2,V=t.y;m.attr("transform",`translate(${$}, ${V}) rotate(-90) translate(${-y.width/2}, ${-y.height/2})`)}else{const J=Math.max(0,F-A),j=Math.min(I,J),P=A+j,$=Math.max(0,E-P),V=t.x-w/2;if(t.look==="handDrawn"){const L=Mt.svg(f),lt=Lt(t,{roughness:.7,fill:a,stroke:o,fillWeight:3,seed:n}),Ct=Lt(t,{roughness:.7,fill:"none",stroke:o,seed:n}),O=L.rectangle(V,A,w,j,lt);z=f.insert(()=>O,":first-child");const St=L.rectangle(V,P,w,$,Ct);K=f.insert(()=>St,":first-child"),z.select("path:nth-child(2)").attr("style",c.join(";")),z.select("path").attr("style",h.join(";").replace("fill","stroke"))}else z=f.insert("rect",":first-child"),K=f.insert("rect",":first-child"),z.attr("class","swimlane-title").attr("style",u).attr("x",V).attr("y",A).attr("width",w).attr("height",j).attr("fill",a).attr("stroke",o),K.attr("class","swimlane-body").attr("style",u).attr("x",V).attr("y",P).attr("width",w).attr("height",$).attr("fill","none").attr("stroke",o);const X=t.x-y.width/2,it=A+(j-y.height)/2;m.attr("transform",`translate(${X}, ${it})`)}if(ut.trace("Swimlane data ",t,JSON.stringify(t)),l){const J=m.select("span");J&&J.attr("style",l)}return t.offsetX=0,t.width=w,t.height=_,t.offsetY=y.height-k/2,t.intersect=function(J){return Va(t,J)},{cluster:f,labelBBox:y}},"swimlane"),RC=C(async(e,t)=>{ut.info("Creating subgraph rect for ",t.id,t);const r=me(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:s}=i,{labelStyles:o,nodeStyles:l,borderStyles:u,backgroundStyles:c}=Nt(t),h=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),f=Dr(r),d=h.insert("g").attr("class","cluster-label ");let p;t.labelType==="markdown"?p=await on(d,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width}):p=await Wn(d,t.label,t.labelStyle||"",!1,!0);let m=p.getBBox();if(Dr(r)){const N=p.children[0],F=ie(p);m=N.getBoundingClientRect(),F.attr("width",m.width),F.attr("height",m.height)}const g=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(g-t.width)/2-t.padding:t.diff=-t.padding;const y=t.height,k=t.x-g/2,w=t.y-y/2;ut.trace("Data ",t,JSON.stringify(t));let _;if(t.look==="handDrawn"){const N=Mt.svg(h),F=Lt(t,{roughness:.7,fill:a,stroke:s,fillWeight:3,seed:n}),Y=N.path(la(k,w,g,y,0),F);_=h.insert(()=>(ut.debug("Rough node insert CXC",Y),Y),":first-child"),_.select("path:nth-child(2)").attr("style",u.join(";")),_.select("path").attr("style",c.join(";").replace("fill","stroke"))}else _=h.insert("rect",":first-child"),_.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",k).attr("y",w).attr("width",g).attr("height",y);const{subGraphTitleTopMargin:A}=ip(r);if(d.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+A})`),o){const N=d.select("span");N&&N.attr("style",o)}const E=_.node().getBBox();return t.offsetX=0,t.width=E.width,t.height=E.height,t.offsetY=m.height-t.padding/2,t.intersect=function(N){return Va(t,N)},{cluster:h,labelBBox:m}},"rect"),nR=C((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,a=n/2;i.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+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(o){return Va(t,o)},{cluster:r,labelBBox:{width:0,height:0}}},"noteGroup"),aR=C(async(e,t)=>{const r=me(),{themeVariables:i,handDrawnSeed:n}=r,{altBackground:a,compositeBackground:s,compositeTitleBackground:o,nodeBorder:l}=i,u=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-id",t.id).attr("data-look",t.look),c=u.insert("g",":first-child"),h=u.insert("g").attr("class","cluster-label");let f=u.append("rect");const d=await Wn(h,t.label,t.labelStyle,void 0,!0);let p=d.getBBox();if(Dr(r)){const Y=d.children[0],I=ie(d);p=Y.getBoundingClientRect(),I.attr("width",p.width),I.attr("height",p.height)}const m=0*t.padding,g=m/2,y=(t.width<=p.width+t.padding?p.width+t.padding:t.width)+m;t.width<=p.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;const k=t.height+m,w=t.height+m-p.height-6,_=t.x-y/2,A=t.y-k/2;t.width=y;const E=t.y-t.height/2-g+p.height+2;let N;if(t.look==="handDrawn"){const Y=t.cssClasses.includes("statediagram-cluster-alt"),I=Mt.svg(u),z=t.rx||t.ry?I.path(la(_,A,y,k,10),{roughness:.7,fill:o,fillStyle:"solid",stroke:l,seed:n}):I.rectangle(_,A,y,k,{seed:n});N=u.insert(()=>z,":first-child");const K=I.rectangle(_,E,y,w,{fill:Y?a:s,fillStyle:Y?"hachure":"solid",stroke:l,seed:n});N=u.insert(()=>z,":first-child"),f=u.insert(()=>K)}else N=c.insert("rect",":first-child"),N.attr("class","outer").attr("x",_).attr("y",A).attr("width",y).attr("height",k).attr("data-look",t.look),f.attr("class","inner").attr("x",_).attr("y",E).attr("width",y).attr("height",w);h.attr("transform",`translate(${t.x-p.width/2}, ${A+1-(Dr(r)?0:3)})`);const F=N.node().getBBox();return t.height=F.height,t.offsetX=0,t.offsetY=p.height-t.padding/2,t.labelBBox=p,t.intersect=function(Y){return Va(t,Y)},{cluster:u,labelBBox:p}},"roundedWithTitle"),sR=C(async(e,t)=>{ut.info("Creating subgraph rect for ",t.id,t);const r=me(),{themeVariables:i,handDrawnSeed:n}=r,{clusterBkg:a,clusterBorder:s}=i,{labelStyles:o,nodeStyles:l,borderStyles:u,backgroundStyles:c}=Nt(t),h=e.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.domId).attr("data-look",t.look),f=Dr(r),d=h.insert("g").attr("class","cluster-label "),p=await on(d,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width});let m=p.getBBox();if(Dr(r)){const N=p.children[0],F=ie(p);m=N.getBoundingClientRect(),F.attr("width",m.width),F.attr("height",m.height)}const g=t.width<=m.width+t.padding?m.width+t.padding:t.width;t.width<=m.width+t.padding?t.diff=(g-t.width)/2-t.padding:t.diff=-t.padding;const y=t.height,k=t.x-g/2,w=t.y-y/2;ut.trace("Data ",t,JSON.stringify(t));let _;if(t.look==="handDrawn"){const N=Mt.svg(h),F=Lt(t,{roughness:.7,fill:a,stroke:s,fillWeight:4,seed:n}),Y=N.path(la(k,w,g,y,t.rx),F);_=h.insert(()=>(ut.debug("Rough node insert CXC",Y),Y),":first-child"),_.select("path:nth-child(2)").attr("style",u.join(";")),_.select("path").attr("style",c.join(";").replace("fill","stroke"))}else _=h.insert("rect",":first-child"),_.attr("style",l).attr("rx",t.rx).attr("ry",t.ry).attr("x",k).attr("y",w).attr("width",g).attr("height",y);const{subGraphTitleTopMargin:A}=ip(r);if(d.attr("transform",`translate(${t.x-m.width/2}, ${t.y-t.height/2+A})`),o){const N=d.select("span");N&&N.attr("style",o)}const E=_.node().getBBox();return t.offsetX=0,t.width=E.width,t.height=E.height,t.offsetY=m.height-t.padding/2,t.intersect=function(N){return Va(t,N)},{cluster:h,labelBBox:m}},"kanbanSection"),oR=C((e,t)=>{const r=me(),{themeVariables:i,handDrawnSeed:n}=r,{nodeBorder:a}=i,s=e.insert("g").attr("class",t.cssClasses).attr("id",t.domId).attr("data-look",t.look),o=s.insert("g",":first-child"),l=0*t.padding,u=t.width+l;t.diff=-t.padding;const c=t.height+l,h=t.x-u/2,f=t.y-c/2;t.width=u;let d;if(t.look==="handDrawn"){const g=Mt.svg(s).rectangle(h,f,u,c,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:n});d=s.insert(()=>g,":first-child")}else{d=o.insert("rect",":first-child");let m="outer";t.look,m="divider",d.attr("class",m).attr("x",h).attr("y",f).attr("width",u).attr("height",c).attr("data-look",t.look)}const p=d.node().getBBox();return t.height=p.height,t.offsetX=0,t.offsetY=0,t.intersect=function(m){return Va(t,m)},{cluster:s,labelBBox:{}}},"divider"),lR=RC,uR={rect:RC,squareRect:lR,roundedWithTitle:aR,noteGroup:nR,divider:oR,kanbanSection:sR,swimlane:iR},PC=new Map,cR=C(async(e,t)=>{const r=t.shape||"rect",i=await uR[r](e,t);return PC.set(t.id,i),i},"insertCluster"),$et=C(()=>{PC=new Map},"clear");function $C(e,t){return e.intersect(t)}C($C,"intersectNode");var hR=$C;function zC(e,t,r,i){var n=e.x,a=e.y,s=n-i.x,o=a-i.y,l=Math.sqrt(t*t*o*o+r*r*s*s),u=Math.abs(t*r*s/l);i.x<n&&(u=-u);var c=Math.abs(t*r*o/l);return i.y<a&&(c=-c),{x:n+u,y:a+c}}C(zC,"intersectEllipse");var HC=zC;function qC(e,t,r){return HC(e,t,t,r)}C(qC,"intersectCircle");var dR=qC;function UC(e,t,r,i){{const n=t.y-e.y,a=e.x-t.x,s=t.x*e.y-e.x*t.y,o=n*r.x+a*r.y+s,l=n*i.x+a*i.y+s,u=1e-6;if(o!==0&&l!==0&&Tf(o,l))return;const c=i.y-r.y,h=r.x-i.x,f=i.x*r.y-r.x*i.y,d=c*e.x+h*e.y+f,p=c*t.x+h*t.y+f;if(Math.abs(d)<u&&Math.abs(p)<u&&Tf(d,p))return;const m=n*h-c*a;if(m===0)return;const g=Math.abs(m/2);let y=a*f-h*s;const k=y<0?(y-g)/m:(y+g)/m;y=c*s-n*f;const w=y<0?(y-g)/m:(y+g)/m;return{x:k,y:w}}}C(UC,"intersectLine");function Tf(e,t){return e*t>0}C(Tf,"sameSign");var fR=UC;function WC(e,t,r){let i=e.x,n=e.y,a=[],s=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(c){s=Math.min(s,c.x),o=Math.min(o,c.y)}):(s=Math.min(s,t.x),o=Math.min(o,t.y));let l=i-e.width/2-s,u=n-e.height/2-o;for(let c=0;c<t.length;c++){let h=t[c],f=t[c<t.length-1?c+1:0],d=fR(e,r,{x:l+h.x,y:u+h.y},{x:l+f.x,y:u+f.y});d&&a.push(d)}return a.length?(a.length>1&&a.sort(function(c,h){let f=c.x-r.x,d=c.y-r.y,p=Math.sqrt(f*f+d*d),m=h.x-r.x,g=h.y-r.y,y=Math.sqrt(m*m+g*g);return p<y?-1:p===y?0:1}),a[0]):e}C(WC,"intersectPolygon");var pR=WC,At={node:hR,circle:dR,ellipse:HC,polygon:pR,rect:Va};function jC(e,t){const{labelStyles:r}=Nt(t);t.labelStyle=r;const i=Wt(t);let n=i;i||(n="anchor");const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),s=1,{cssStyles:o}=t,l=Mt.svg(a),u=Lt(t,{fill:"black",stroke:"none",fillStyle:"solid"});t.look!=="handDrawn"&&(u.roughness=0);const c=l.circle(0,0,s*2,u),h=a.insert(()=>c,":first-child");return h.attr("class","anchor").attr("style",ir(o)),Ot(t,h),t.intersect=function(f){return ut.info("Circle intersect",t,s,f),At.circle(t,s,f)},a}C(jC,"anchor");function wf(e,t,r,i,n,a,s){const l=(e+r)/2,u=(t+i)/2,c=Math.atan2(i-t,r-e),h=(r-e)/2,f=(i-t)/2,d=h/n,p=f/a,m=Math.sqrt(d**2+p**2);if(m>1)throw new Error("The given radii are too small to create an arc between the points.");const g=Math.sqrt(1-m**2),y=l+g*a*Math.sin(c)*(s?-1:1),k=u-g*n*Math.cos(c)*(s?-1:1),w=Math.atan2((t-k)/a,(e-y)/n);let A=Math.atan2((i-k)/a,(r-y)/n)-w;s&&A<0&&(A+=2*Math.PI),!s&&A>0&&(A-=2*Math.PI);const E=[];for(let N=0;N<20;N++){const F=N/19,Y=w+F*A,I=y+n*Math.cos(Y),z=k+a*Math.sin(Y);E.push({x:I,y:z})}return E}C(wf,"generateArcPoints");function YC(e,t,r){const[i,n]=[t,r].sort((a,s)=>s-a);return n*(1-Math.sqrt(1-(e/i/2)**2))}C(YC,"calculateArcSagitta");async function VC(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n,o=C(Y=>Y+s,"calcTotalHeight"),l=C(Y=>{const I=Y/2;return[I/(2.5+Y/50),I]},"calcEllipseRadius"),{shapeSvg:u,bbox:c}=await Yt(e,t,Wt(t)),h=o(t!=null&&t.height?t==null?void 0:t.height:c.height),[f,d]=l(h),p=YC(h,f,d),g=(t!=null&&t.width?t==null?void 0:t.width:c.width)+a*2+p-p,y=h,{cssStyles:k}=t,w=[{x:g/2,y:-y/2},{x:-g/2,y:-y/2},...wf(-g/2,-y/2,-g/2,y/2,f,d,!1),{x:g/2,y:y/2},...wf(g/2,y/2,g/2,-y/2,f,d,!0)],_=Mt.svg(u),A=Lt(t,{});t.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const E=ce(w),N=_.path(E,A),F=u.insert(()=>N,":first-child");return F.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",i),F.attr("transform",`translate(${f/2}, 0)`),Ot(t,F),t.intersect=function(Y){return At.polygon(t,w,Y)},u}C(VC,"bowTieRect");function _n(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+")")}C(_n,"insertPolygonShape");var mu=12;async function GC(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?28:n,s=t.look==="neo"?24:n,{shapeSvg:o,bbox:l}=await Yt(e,t,Wt(t)),u=((t==null?void 0:t.width)??l.width)+(t.look==="neo"?a*2:a+mu),c=((t==null?void 0:t.height)??l.height)+(t.look==="neo"?s*2:s),h=0,f=u,d=-c,p=0,m=[{x:h+mu,y:d},{x:f,y:d},{x:f,y:p},{x:h,y:p},{x:h,y:d+mu},{x:h+mu,y:d}];let g;const{cssStyles:y}=t;if(t.look==="handDrawn"){const k=Mt.svg(o),w=Lt(t,{}),_=ce(m),A=k.path(_,w);g=o.insert(()=>A,":first-child").attr("transform",`translate(${-u/2}, ${c/2})`),y&&g.attr("style",y)}else g=_n(o,u,c,m);return i&&g.attr("style",i),Ot(t,g),t.intersect=function(k){return At.polygon(t,m,k)},o}C(GC,"card");function XC(e,t){const{nodeStyles:r}=Nt(t);t.label="";const i=e.insert("g").attr("class",Wt(t)).attr("id",t.domId??t.id),{cssStyles:n}=t,a=Math.max(28,t.width??0),s=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],o=Mt.svg(i),l=Lt(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const u=ce(s),c=o.path(u,l),h=i.insert(()=>c,":first-child");return n&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",n),r&&t.look!=="handDrawn"&&h.selectAll("path").attr("style",r),t.width=28,t.height=28,t.intersect=function(f){return At.polygon(t,s,f)},i}C(XC,"choice");async function gp(e,t,r){const{labelStyles:i,nodeStyles:n}=Nt(t);t.labelStyle=i;const{shapeSvg:a,bbox:s,halfPadding:o}=await Yt(e,t,Wt(t)),l=16,u=(r==null?void 0:r.padding)??o,c=t.look==="neo"?s.width/2+l*2:s.width/2+u;let h;const{cssStyles:f}=t;if(t.look==="handDrawn"){const d=Mt.svg(a),p=Lt(t,{}),m=d.circle(0,0,c*2,p);h=a.insert(()=>m,":first-child"),h.attr("class","basic label-container").attr("style",ir(f))}else h=a.insert("circle",":first-child").attr("class","basic label-container").attr("style",n).attr("r",c).attr("cx",0).attr("cy",0);return Ot(t,h),t.calcIntersect=function(d,p){const m=d.width/2;return At.circle(d,m,p)},t.intersect=function(d){return ut.info("Circle intersect",t,c,d),At.circle(t,c,d)},a}C(gp,"circle");function KC(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},a={x:-(i/2)*t,y:i/2*r},s={x:-(i/2)*t,y:-(i/2)*r},o={x:i/2*t,y:-(i/2)*r};return`M ${a.x},${a.y} L ${o.x},${o.y}
|
|
501
|
+
M ${n.x},${n.y} L ${s.x},${s.y}`}C(KC,"createLine");function QC(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r,t.label="";const n=e.insert("g").attr("class",Wt(t)).attr("id",t.domId??t.id),a=Math.max(30,(t==null?void 0:t.width)??0),{cssStyles:s}=t,o=Mt.svg(n),l=Lt(t,{});t.look!=="handDrawn"&&(l.roughness=0,l.fillStyle="solid");const u=o.circle(0,0,a*2,l),c=KC(a),h=o.path(c,l),f=n.insert(()=>u,":first-child");return f.insert(()=>h),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),Ot(t,f),t.intersect=function(d){return ut.info("crossedCircle intersect",t,{radius:a,point:d}),At.circle(t,a,d)},n}C(QC,"crossedCircle");function pn(e,t,r,i=100,n=0,a=180){const s=[],o=n*Math.PI/180,c=(a*Math.PI/180-o)/(i-1);for(let h=0;h<i;h++){const f=o+h*c,d=e+r*Math.cos(f),p=t+r*Math.sin(f);s.push({x:-d,y:-p})}return s}C(pn,"generateCirclePoints");async function ZC(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await Yt(e,t,Wt(t)),o=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,u=a.width+o,c=a.height+l,h=Math.max(5,c*.1),{cssStyles:f}=t,d=[...pn(u/2,-c/2,h,30,-90,0),{x:-u/2-h,y:h},...pn(u/2+h*2,-h,h,20,-180,-270),...pn(u/2+h*2,h,h,20,-90,-180),{x:-u/2-h,y:-c/2},...pn(u/2,c/2,h,20,0,90)],p=[{x:u/2,y:-c/2-h},{x:-u/2,y:-c/2-h},...pn(u/2,-c/2,h,20,-90,0),{x:-u/2-h,y:-h},...pn(u/2+u*.1,-h,h,20,-180,-270),...pn(u/2+u*.1,h,h,20,-90,-180),{x:-u/2-h,y:c/2},...pn(u/2,c/2,h,20,0,90),{x:-u/2,y:c/2+h},{x:u/2,y:c/2+h}],m=Mt.svg(n),g=Lt(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const k=ce(d).replace("Z",""),w=m.path(k,g),_=ce(p),A=m.path(_,{...g}),E=n.insert("g",":first-child");return E.insert(()=>A,":first-child").attr("stroke-opacity",0),E.insert(()=>w,":first-child"),E.attr("class","text"),f&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",i),E.attr("transform",`translate(${h}, 0)`),s.attr("transform",`translate(${-u/2+h-(a.x-(a.left??0))},${-c/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Ot(t,E),t.intersect=function(N){return At.polygon(t,p,N)},n}C(ZC,"curlyBraceLeft");function mn(e,t,r,i=100,n=0,a=180){const s=[],o=n*Math.PI/180,c=(a*Math.PI/180-o)/(i-1);for(let h=0;h<i;h++){const f=o+h*c,d=e+r*Math.cos(f),p=t+r*Math.sin(f);s.push({x:d,y:p})}return s}C(mn,"generateCirclePoints");async function JC(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await Yt(e,t,Wt(t)),o=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,u=a.width+(t.look==="neo"?o*2:o),c=a.height+(t.look==="neo"?l*2:l),h=Math.max(5,c*.1),{cssStyles:f}=t,d=[...mn(u/2,-c/2,h,20,-90,0),{x:u/2+h,y:-h},...mn(u/2+h*2,-h,h,20,-180,-270),...mn(u/2+h*2,h,h,20,-90,-180),{x:u/2+h,y:c/2},...mn(u/2,c/2,h,20,0,90)],p=[{x:-u/2,y:-c/2-h},{x:u/2,y:-c/2-h},...mn(u/2,-c/2,h,20,-90,0),{x:u/2+h,y:-h},...mn(u/2+h*2,-h,h,20,-180,-270),...mn(u/2+h*2,h,h,20,-90,-180),{x:u/2+h,y:c/2},...mn(u/2,c/2,h,20,0,90),{x:u/2,y:c/2+h},{x:-u/2,y:c/2+h}],m=Mt.svg(n),g=Lt(t,{fill:"none"});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const k=ce(d).replace("Z",""),w=m.path(k,g),_=ce(p),A=m.path(_,{...g}),E=n.insert("g",":first-child");return E.insert(()=>A,":first-child").attr("stroke-opacity",0),E.insert(()=>w,":first-child"),E.attr("class","text"),f&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&E.selectAll("path").attr("style",i),E.attr("transform",`translate(${-h}, 0)`),s.attr("transform",`translate(${-u/2+(t.padding??0)/2-(a.x-(a.left??0))},${-c/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Ot(t,E),t.intersect=function(N){return At.polygon(t,p,N)},n}C(JC,"curlyBraceRight");function lr(e,t,r,i=100,n=0,a=180){const s=[],o=n*Math.PI/180,c=(a*Math.PI/180-o)/(i-1);for(let h=0;h<i;h++){const f=o+h*c,d=e+r*Math.cos(f),p=t+r*Math.sin(f);s.push({x:-d,y:-p})}return s}C(lr,"generateCirclePoints");async function tk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await Yt(e,t,Wt(t)),o=t.look==="neo"?18:t.padding??0,l=t.look==="neo"?12:t.padding??0,u=a.width+(t.look==="neo"?o*2:o),c=a.height+(t.look==="neo"?l*2:l),h=Math.max(5,c*.1),{cssStyles:f}=t,d=[...lr(u/2,-c/2,h,30,-90,0),{x:-u/2-h,y:h},...lr(u/2+h*2,-h,h,20,-180,-270),...lr(u/2+h*2,h,h,20,-90,-180),{x:-u/2-h,y:-c/2},...lr(u/2,c/2,h,20,0,90)],p=[...lr(-u/2+h+h/2,-c/2,h,20,-90,-180),{x:u/2-h/2,y:h},...lr(-u/2-h/2,-h,h,20,0,90),...lr(-u/2-h/2,h,h,20,-90,0),{x:u/2-h/2,y:-h},...lr(-u/2+h+h/2,c/2,h,30,-180,-270)],m=[{x:u/2,y:-c/2-h},{x:-u/2,y:-c/2-h},...lr(u/2,-c/2,h,20,-90,0),{x:-u/2-h,y:-h},...lr(u/2+h*2,-h,h,20,-180,-270),...lr(u/2+h*2,h,h,20,-90,-180),{x:-u/2-h,y:c/2},...lr(u/2,c/2,h,20,0,90),{x:-u/2,y:c/2+h},{x:u/2-h-h/2,y:c/2+h},...lr(-u/2+h+h/2,-c/2,h,20,-90,-180),{x:u/2-h/2,y:h},...lr(-u/2-h/2,-h,h,20,0,90),...lr(-u/2-h/2,h,h,20,-90,0),{x:u/2-h/2,y:-h},...lr(-u/2+h+h/2,c/2,h,30,-180,-270)],g=Mt.svg(n),y=Lt(t,{fill:"none"});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const w=ce(d).replace("Z",""),_=g.path(w,y),E=ce(p).replace("Z",""),N=g.path(E,y),F=ce(m),Y=g.path(F,{...y}),I=n.insert("g",":first-child");return I.insert(()=>Y,":first-child").attr("stroke-opacity",0),I.insert(()=>_,":first-child"),I.insert(()=>N,":first-child"),I.attr("class","text"),f&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",f),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),I.attr("transform",`translate(${h-h/4}, 0)`),s.attr("transform",`translate(${-u/2+(t.padding??0)/2-(a.x-(a.left??0))},${-c/2+(t.padding??0)/2-(a.y-(a.top??0))})`),Ot(t,I),t.intersect=function(z){return At.polygon(t,m,z)},n}C(tk,"curlyBraces");async function ek(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n,o=20,l=5,{shapeSvg:u,bbox:c}=await Yt(e,t,Wt(t)),h=Math.max(o,(c.width+a*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:p}=t,m=Mt.svg(u),g=Lt(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=h,k=f,w=y-d,_=k/4,A=[{x:w,y:0},{x:_,y:0},{x:0,y:k/2},{x:_,y:k},{x:w,y:k},...yl(-w,-k/2,d,50,270,90)],E=ce(A),N=m.path(E,g),F=u.insert(()=>N,":first-child");return F.attr("class","basic label-container outer-path"),p&&t.look!=="handDrawn"&&F.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&F.selectChildren("path").attr("style",i),F.attr("transform",`translate(${-h/2}, ${-f/2})`),Ot(t,F),t.intersect=function(Y){return At.polygon(t,A,Y)},u}C(ek,"curvedTrapezoid");var mR=C((e,t,r,i,n,a)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createCylinderPathD"),gR=C((e,t,r,i,n,a)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`].join(" "),"createOuterCylinderPathD"),bR=C((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),W2=8,j2=8;async function rk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?24:n,s=t.look==="neo"?24:n;if(t.width||t.height){const g=t.width??0;t.width=(t.width??0)-s,t.width<j2&&(t.width=j2);const k=g/2/(2.5+g/50);t.height=(t.height??0)-a-k*3,t.height<W2&&(t.height=W2)}const{shapeSvg:o,bbox:l,label:u}=await Yt(e,t,Wt(t)),c=(t.width?t.width:l.width)+s,h=c/2,f=h/(2.5+c/50),d=(t.height?t.height:l.height)+a+f;let p;const{cssStyles:m}=t;if(t.look==="handDrawn"){const g=Mt.svg(o),y=gR(0,0,c,d,h,f),k=bR(0,f,c,d,h,f),w=Lt(t,{}),_=g.path(y,w),A=g.path(k,Lt(t,{fill:"none"}));p=o.insert(()=>A,":first-child"),p=o.insert(()=>_,":first-child"),p.attr("class","basic label-container"),m&&p.attr("style",m)}else{const g=mR(0,0,c,d,h,f);p=o.insert("path",":first-child").attr("d",g).attr("class","basic label-container outer-path").attr("style",ir(m)).attr("style",i)}return p.attr("label-offset-y",f),p.attr("transform",`translate(${-c/2}, ${-(d/2+f)})`),Ot(t,p),u.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(g){const y=At.rect(t,g),k=y.x-(t.x??0);if(h!=0&&(Math.abs(k)<(t.width??0)/2||Math.abs(k)==(t.width??0)/2&&Math.abs(y.y-(t.y??0))>(t.height??0)/2-f)){let w=f*f*(1-k*k/(h*h));w>0&&(w=Math.sqrt(w)),w=f-w,g.y-(t.y??0)>0&&(w=-w),y.y+=w}return y},o}C(rk,"cylinder");async function eo(e,t,r){const{labelStyles:i,nodeStyles:n}=Nt(t);t.labelStyle=i;const{shapeSvg:a,bbox:s}=await Yt(e,t,Wt(t)),o=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),u=-o/2,c=-l/2;let h,{rx:f,ry:d}=t;const{cssStyles:p}=t;if(r!=null&&r.rx&&r.ry&&(f=r.rx,d=r.ry),t.look==="handDrawn"){const m=Mt.svg(a),g=Lt(t,{}),y=f||d?m.path(la(u,c,o,l,f||0),g):m.rectangle(u,c,o,l,g);h=a.insert(()=>y,":first-child"),h.attr("class","basic label-container").attr("style",ir(p))}else h=a.insert("rect",":first-child"),h.attr("class","basic label-container").attr("style",n).attr("rx",ir(f)).attr("ry",ir(d)).attr("x",u).attr("y",c).attr("width",o).attr("height",l);return Ot(t,h),t.calcIntersect=function(m,g){return At.rect(m,g)},t.intersect=function(m){return At.rect(t,m)},a}C(eo,"drawRect");async function ik(e,t){const{cssClasses:r,labelPaddingX:i,labelPaddingY:n,padding:a,width:s,height:o}=t,l={rx:0,ry:0,labelPaddingX:i??(a??0)*2,labelPaddingY:n??a??0},u=await eo(e,t,l);if(t.look==="handDrawn"){const d=Mt.svg(u),p=Lt(t,{}),m=u.select(".basic.label-container > path:nth-child(2)"),g=m.node();if(!g)return u;let y=null;if(g instanceof SVGGraphicsElement)y=g.getBBox();else return u;return u.insert(()=>d.line(y.x,y.y,y.x+y.width,y.y,p),".basic.label-container g.label"),u.insert(()=>d.line(y.x,y.y+y.height,y.x+y.width,y.y+y.height,p),".basic.label-container g.label"),m.remove(),u}const c=u.select(".basic.label-container"),h=(Number(c.attr("width"))||s)??0,f=(Number(c.attr("height"))||o)??0;return h>0&&f>0&&c.attr("stroke-dasharray",`${h} ${f}`),u}C(ik,"datastore");async function nk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?16:t.padding??0,{shapeSvg:s,bbox:o,label:l}=await Yt(e,t,Wt(t)),u=o.width+n,c=o.height+a,h=c*.2,f=-u/2,d=-c/2-h/2,{cssStyles:p}=t,m=Mt.svg(s),g=Lt(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=[{x:f,y:d+h},{x:-f,y:d+h},{x:-f,y:-d},{x:f,y:-d},{x:f,y:d},{x:-f,y:d},{x:-f,y:d+h}],k=m.polygon(y.map(_=>[_.x,_.y]),g),w=s.insert(()=>k,":first-child");return 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(${f+(t.padding??0)/2-(o.x-(o.left??0))}, ${d+h+(t.padding??0)/2-(o.y-(o.top??0))})`),Ot(t,w),t.intersect=function(_){return At.rect(t,_)},s}C(nk,"dividedRectangle");async function ak(e,t){var d,p;const{labelStyles:r,nodeStyles:i}=Nt(t),n=t.look==="neo"?12:5;t.labelStyle=r;const a=t.padding??0,s=t.look==="neo"?16:a,{shapeSvg:o,bbox:l}=await Yt(e,t,Wt(t)),u=(t!=null&&t.width?(t==null?void 0:t.width)/2:l.width/2)+(s??0),c=u-n;let h;const{cssStyles:f}=t;if(t.look==="handDrawn"){const m=Mt.svg(o),g=Lt(t,{roughness:.2,strokeWidth:2.5}),y=Lt(t,{roughness:.2,strokeWidth:1.5}),k=m.circle(0,0,u*2,g),w=m.circle(0,0,c*2,y);h=o.insert("g",":first-child"),h.attr("class",ir(t.cssClasses)).attr("style",ir(f)),(d=h.node())==null||d.appendChild(k),(p=h.node())==null||p.appendChild(w)}else{h=o.insert("g",":first-child");const m=h.insert("circle",":first-child"),g=h.insert("circle");h.attr("class","basic label-container").attr("style",i),m.attr("class","outer-circle").attr("style",i).attr("r",u).attr("cx",0).attr("cy",0),g.attr("class","inner-circle").attr("style",i).attr("r",c).attr("cx",0).attr("cy",0)}return Ot(t,h),t.intersect=function(m){return ut.info("DoubleCircle intersect",t,u,m),At.circle(t,u,m)},o}C(ak,"doublecircle");function sk(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=Nt(t);t.label="",t.labelStyle=i;const a=e.insert("g").attr("class",Wt(t)).attr("id",t.domId??t.id),s=7,{cssStyles:o}=t,l=Mt.svg(a),{nodeBorder:u}=r,c=Lt(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(c.roughness=0);const h=l.circle(0,0,s*2,c),f=a.insert(()=>h,":first-child");return f.selectAll("path").attr("style",`fill: ${u} !important;`),o&&o.length>0&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",o),n&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",n),Ot(t,f),t.intersect=function(d){return ut.info("filledCircle intersect",t,{radius:s,point:d}),At.circle(t,s,d)},a}C(sk,"filledCircle");var Y2=10,V2=10;async function ok(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.height=(t==null?void 0:t.height)??0,t.height<Y2&&(t.height=Y2),t.width=((t==null?void 0:t.width)??0)-a-a/2,t.width<V2&&(t.width=V2));const{shapeSvg:s,bbox:o,label:l}=await Yt(e,t,Wt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:o.width)+(a??0),c=t!=null&&t.height?t==null?void 0:t.height:u+o.height,h=c,f=[{x:0,y:-c},{x:h,y:-c},{x:h/2,y:0}],{cssStyles:d}=t,p=Mt.svg(s),m=Lt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const g=ce(f),y=p.path(g,m),k=s.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${c/2})`).attr("class","outer-path");return d&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),t.width=u,t.height=c,Ot(t,k),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${-c/2+(t.padding??0)/2+(o.y-(o.top??0))})`),t.intersect=function(w){return ut.info("Triangle intersect",t,f,w),At.polygon(t,f,w)},s}C(ok,"flippedTriangle");function lk(e,t,{dir:r,config:{state:i,themeVariables:n}}){const{nodeStyles:a}=Nt(t);t.label="";const s=e.insert("g").attr("class",Wt(t)).attr("id",t.domId??t.id),{cssStyles:o}=t;let l=Math.max(70,(t==null?void 0:t.width)??0),u=Math.max(10,(t==null?void 0:t.height)??0);r==="LR"&&(l=Math.max(10,(t==null?void 0:t.width)??0),u=Math.max(70,(t==null?void 0:t.height)??0));const c=-1*l/2,h=-1*u/2,f=Mt.svg(s),d=Lt(t,{stroke:n.lineColor,fill:n.lineColor});t.look!=="handDrawn"&&(d.roughness=0,d.fillStyle="solid");const p=f.rectangle(c,h,l,u,d),m=s.insert(()=>p,":first-child");o&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",o),a&&t.look!=="handDrawn"&&m.selectAll("path").attr("style",a),Ot(t,m);const g=(i==null?void 0:i.padding)??0;return t.width&&t.height&&(t.width+=g/2||0,t.height+=g/2||0),t.intersect=function(y){return At.rect(t,y)},s}C(lk,"forkJoin");async function uk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=15,a=10,s=t.look==="neo"?16:t.padding??0,o=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.height=((t==null?void 0:t.height)??0)-o*2,t.height<a&&(t.height=a),t.width=((t==null?void 0:t.width)??0)-s*2,t.width<n&&(t.width=n));const{shapeSvg:l,bbox:u}=await Yt(e,t,Wt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:Math.max(n,u.width))+s*2,h=(t!=null&&t.height?t==null?void 0:t.height:Math.max(a,u.height))+o*2,f=h/2,{cssStyles:d}=t,p=Mt.svg(l),m=Lt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const g=[{x:-c/2,y:-h/2},{x:c/2-f,y:-h/2},...yl(-c/2+f,0,f,50,90,270),{x:c/2-f,y:h/2},{x:-c/2,y:h/2}],y=ce(g),k=p.path(y,m),w=l.insert(()=>k,":first-child");return w.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),Ot(t,w),t.intersect=function(_){return ut.info("Pill intersect",t,{radius:f,point:_}),At.polygon(t,g,_)},l}C(uk,"halfRoundedRectangle");var yR=C((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 ck(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t),n=t.look==="neo"?3.5:4;t.labelStyle=r;const a=t.padding??0,s=70,o=32,l=t.look==="neo"?s:a,u=t.look==="neo"?o:a;if(t.width||t.height){const w=(t.height??0)/n;t.width=((t==null?void 0:t.width)??0)-2*w-u,t.height=(t.height??0)-l}const{shapeSvg:c,bbox:h}=await Yt(e,t,Wt(t)),f=(t!=null&&t.height?t==null?void 0:t.height:h.height)+l,d=f/n,p=(t!=null&&t.width?t==null?void 0:t.width:h.width)+2*d+u,m=[{x:d,y:0},{x:p-d,y:0},{x:p,y:-f/2},{x:p-d,y:-f},{x:d,y:-f},{x:0,y:-f/2}];let g;const{cssStyles:y}=t;if(t.look==="handDrawn"){const k=Mt.svg(c),w=Lt(t,{}),_=yR(0,0,p,f,d),A=k.path(_,w);g=c.insert(()=>A,":first-child").attr("transform",`translate(${-p/2}, ${f/2})`),y&&g.attr("style",y)}else g=_n(c,p,f,m);return i&&g.attr("style",i),t.width=p,t.height=f,Ot(t,g),t.intersect=function(k){return At.polygon(t,m,k)},c}C(ck,"hexagon");async function hk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.label="",t.labelStyle=r;const{shapeSvg:n}=await Yt(e,t,Wt(t)),a=Math.max(30,(t==null?void 0:t.width)??0),s=Math.max(30,(t==null?void 0:t.height)??0),{cssStyles:o}=t,l=Mt.svg(n),u=Lt(t,{});t.look!=="handDrawn"&&(u.roughness=0,u.fillStyle="solid");const c=[{x:0,y:0},{x:a,y:0},{x:0,y:s},{x:a,y:s}],h=ce(c),f=l.path(h,u),d=n.insert(()=>f,":first-child");return d.attr("class","basic label-container outer-path"),o&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",o),i&&t.look!=="handDrawn"&&d.selectChildren("path").attr("style",i),d.attr("transform",`translate(${-a/2}, ${-s/2})`),Ot(t,d),t.intersect=function(p){return ut.info("Pill intersect",t,{points:c}),At.polygon(t,c,p)},n}C(hk,"hourglass");async function dk(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Nt(t);t.labelStyle=n;const a=t.assetHeight??48,s=t.assetWidth??48,o=Math.max(a,s),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(o,l??0);const{shapeSvg:u,bbox:c,label:h}=await Yt(e,t,"icon-shape default"),f=t.pos==="t",d=o,p=o,{nodeBorder:m}=r,{stylesMap:g}=to(t),y=-p/2,k=-d/2,w=t.label?8:0,_=Mt.svg(u),A=Lt(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(A.roughness=0,A.fillStyle="solid");const E=_.rectangle(y,k,p,d,A),N=Math.max(p,c.width),F=d+c.height+w,Y=_.rectangle(-N/2,-F/2,N,F,{...A,fill:"transparent",stroke:"none"}),I=u.insert(()=>E,":first-child"),z=u.insert(()=>Y);if(t.icon){const K=u.append("g");K.html(`<g>${await Rl(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const J=K.node().getBBox(),j=J.width,P=J.height,$=J.x,V=J.y;K.attr("transform",`translate(${-j/2-$},${f?c.height/2+w/2-P/2-V:-c.height/2-w/2-P/2-V})`),K.attr("style",`color: ${g.get("stroke")??m};`)}return h.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${f?-F/2:F/2-c.height})`),I.attr("transform",`translate(0,${f?c.height/2+w/2:-c.height/2-w/2})`),Ot(t,z),t.intersect=function(K){if(ut.info("iconSquare intersect",t,K),!t.label)return At.rect(t,K);const J=t.x??0,j=t.y??0,P=t.height??0;let $=[];return f?$=[{x:J-c.width/2,y:j-P/2},{x:J+c.width/2,y:j-P/2},{x:J+c.width/2,y:j-P/2+c.height+w},{x:J+p/2,y:j-P/2+c.height+w},{x:J+p/2,y:j+P/2},{x:J-p/2,y:j+P/2},{x:J-p/2,y:j-P/2+c.height+w},{x:J-c.width/2,y:j-P/2+c.height+w}]:$=[{x:J-p/2,y:j-P/2},{x:J+p/2,y:j-P/2},{x:J+p/2,y:j-P/2+d},{x:J+c.width/2,y:j-P/2+d},{x:J+c.width/2/2,y:j+P/2},{x:J-c.width/2,y:j+P/2},{x:J-c.width/2,y:j-P/2+d},{x:J-p/2,y:j-P/2+d}],At.polygon(t,$,K)},u}C(dk,"icon");async function fk(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Nt(t);t.labelStyle=n;const a=t.assetHeight??48,s=t.assetWidth??48,o=Math.max(a,s),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(o,l??0);const{shapeSvg:u,bbox:c,label:h}=await Yt(e,t,"icon-shape default"),f=20,d=t.label?8:0,p=t.pos==="t",{nodeBorder:m,mainBkg:g}=r,{stylesMap:y}=to(t),k=Mt.svg(u),w=Lt(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const _=y.get("fill");w.stroke=_??g;const A=u.append("g");t.icon&&A.html(`<g>${await Rl(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const E=A.node().getBBox(),N=E.width,F=E.height,Y=E.x,I=E.y,z=Math.max(N,F)*Math.SQRT2+f*2,K=k.circle(0,0,z,w),J=Math.max(z,c.width),j=z+c.height+d,P=k.rectangle(-J/2,-j/2,J,j,{...w,fill:"transparent",stroke:"none"}),$=u.insert(()=>K,":first-child"),V=u.insert(()=>P);return A.attr("transform",`translate(${-N/2-Y},${p?c.height/2+d/2-F/2-I:-c.height/2-d/2-F/2-I})`),A.attr("style",`color: ${y.get("stroke")??m};`),h.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${p?-j/2:j/2-c.height})`),$.attr("transform",`translate(0,${p?c.height/2+d/2:-c.height/2-d/2})`),Ot(t,V),t.intersect=function(X){return ut.info("iconSquare intersect",t,X),At.rect(t,X)},u}C(fk,"iconCircle");async function pk(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Nt(t);t.labelStyle=n;const a=t.assetHeight??48,s=t.assetWidth??48,o=Math.max(a,s),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(o,l??0);const{shapeSvg:u,bbox:c,halfPadding:h,label:f}=await Yt(e,t,"icon-shape default"),d=t.pos==="t",p=o+h*2,m=o+h*2,{nodeBorder:g,mainBkg:y}=r,{stylesMap:k}=to(t),w=-m/2,_=-p/2,A=t.label?8:0,E=Mt.svg(u),N=Lt(t,{});t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");const F=k.get("fill");N.stroke=F??y;const Y=E.path(la(w,_,m,p,5),N),I=Math.max(m,c.width),z=p+c.height+A,K=E.rectangle(-I/2,-z/2,I,z,{...N,fill:"transparent",stroke:"none"}),J=u.insert(()=>Y,":first-child").attr("class","icon-shape2"),j=u.insert(()=>K);if(t.icon){const P=u.append("g");P.html(`<g>${await Rl(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const $=P.node().getBBox(),V=$.width,X=$.height,it=$.x,L=$.y;P.attr("transform",`translate(${-V/2-it},${d?c.height/2+A/2-X/2-L:-c.height/2-A/2-X/2-L})`),P.attr("style",`color: ${k.get("stroke")??g};`)}return f.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${d?-z/2:z/2-c.height})`),J.attr("transform",`translate(0,${d?c.height/2+A/2:-c.height/2-A/2})`),Ot(t,j),t.intersect=function(P){if(ut.info("iconSquare intersect",t,P),!t.label)return At.rect(t,P);const $=t.x??0,V=t.y??0,X=t.height??0;let it=[];return d?it=[{x:$-c.width/2,y:V-X/2},{x:$+c.width/2,y:V-X/2},{x:$+c.width/2,y:V-X/2+c.height+A},{x:$+m/2,y:V-X/2+c.height+A},{x:$+m/2,y:V+X/2},{x:$-m/2,y:V+X/2},{x:$-m/2,y:V-X/2+c.height+A},{x:$-c.width/2,y:V-X/2+c.height+A}]:it=[{x:$-m/2,y:V-X/2},{x:$+m/2,y:V-X/2},{x:$+m/2,y:V-X/2+p},{x:$+c.width/2,y:V-X/2+p},{x:$+c.width/2/2,y:V+X/2},{x:$-c.width/2,y:V+X/2},{x:$-c.width/2,y:V-X/2+p},{x:$-m/2,y:V-X/2+p}],At.polygon(t,it,P)},u}C(pk,"iconRounded");async function mk(e,t,{config:{themeVariables:r,flowchart:i}}){const{labelStyles:n}=Nt(t);t.labelStyle=n;const a=t.assetHeight??48,s=t.assetWidth??48,o=Math.max(a,s),l=i==null?void 0:i.wrappingWidth;t.width=Math.max(o,l??0);const{shapeSvg:u,bbox:c,halfPadding:h,label:f}=await Yt(e,t,"icon-shape default"),d=t.pos==="t",p=o+h*2,m=o+h*2,{nodeBorder:g,mainBkg:y}=r,{stylesMap:k}=to(t),w=-m/2,_=-p/2,A=t.label?8:0,E=Mt.svg(u),N=Lt(t,{});t.look!=="handDrawn"&&(N.roughness=0,N.fillStyle="solid");const F=k.get("fill");N.stroke=F??y;const Y=E.path(la(w,_,m,p,.1),N),I=Math.max(m,c.width),z=p+c.height+A,K=E.rectangle(-I/2,-z/2,I,z,{...N,fill:"transparent",stroke:"none"}),J=u.insert(()=>Y,":first-child"),j=u.insert(()=>K);if(t.icon){const P=u.append("g");P.html(`<g>${await Rl(t.icon,{height:o,width:o,fallbackPrefix:""})}</g>`);const $=P.node().getBBox(),V=$.width,X=$.height,it=$.x,L=$.y;P.attr("transform",`translate(${-V/2-it},${d?c.height/2+A/2-X/2-L:-c.height/2-A/2-X/2-L})`),P.attr("style",`color: ${k.get("stroke")??g};`)}return f.attr("transform",`translate(${-c.width/2-(c.x-(c.left??0))},${d?-z/2:z/2-c.height})`),J.attr("transform",`translate(0,${d?c.height/2+A/2:-c.height/2-A/2})`),Ot(t,j),t.intersect=function(P){if(ut.info("iconSquare intersect",t,P),!t.label)return At.rect(t,P);const $=t.x??0,V=t.y??0,X=t.height??0;let it=[];return d?it=[{x:$-c.width/2,y:V-X/2},{x:$+c.width/2,y:V-X/2},{x:$+c.width/2,y:V-X/2+c.height+A},{x:$+m/2,y:V-X/2+c.height+A},{x:$+m/2,y:V+X/2},{x:$-m/2,y:V+X/2},{x:$-m/2,y:V-X/2+c.height+A},{x:$-c.width/2,y:V-X/2+c.height+A}]:it=[{x:$-m/2,y:V-X/2},{x:$+m/2,y:V-X/2},{x:$+m/2,y:V-X/2+p},{x:$+c.width/2,y:V-X/2+p},{x:$+c.width/2/2,y:V+X/2},{x:$-c.width/2,y:V+X/2},{x:$-c.width/2,y:V-X/2+p},{x:$-m/2,y:V-X/2+p}],At.polygon(t,it,P)},u}C(mk,"iconSquare");async function gk(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","")),a=Number(i.naturalHeight.toString().replace("px",""));t.imageAspectRatio=n/a;const{labelStyles:s}=Nt(t);t.labelStyle=s;const o=r==null?void 0:r.wrappingWidth;t.defaultWidth=r==null?void 0:r.wrappingWidth;const l=Math.max(t.label?o??0:0,(t==null?void 0:t.assetWidth)??n),u=t.constraint==="on"&&t!=null&&t.assetHeight?t.assetHeight*t.imageAspectRatio:l,c=t.constraint==="on"?u/t.imageAspectRatio:(t==null?void 0:t.assetHeight)??a;t.width=Math.max(u,o??0);const{shapeSvg:h,bbox:f,label:d}=await Yt(e,t,"image-shape default"),p=t.pos==="t",m=-u/2,g=-c/2,y=t.label?8:0,k=Mt.svg(h),w=Lt(t,{});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const _=k.rectangle(m,g,u,c,w),A=Math.max(u,f.width),E=c+f.height+y,N=k.rectangle(-A/2,-E/2,A,E,{...w,fill:"none",stroke:"none"}),F=h.insert(()=>_,":first-child"),Y=h.insert(()=>N);if(t.img){const I=h.append("image");I.attr("href",t.img),I.attr("width",u),I.attr("height",c),I.attr("preserveAspectRatio","none"),I.attr("transform",`translate(${-u/2},${p?E/2-c:-E/2})`)}return d.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${p?-c/2-f.height/2-y/2:c/2-f.height/2+y/2})`),F.attr("transform",`translate(0,${p?f.height/2+y/2:-f.height/2-y/2})`),Ot(t,Y),t.intersect=function(I){if(ut.info("iconSquare intersect",t,I),!t.label)return At.rect(t,I);const z=t.x??0,K=t.y??0,J=t.height??0;let j=[];return p?j=[{x:z-f.width/2,y:K-J/2},{x:z+f.width/2,y:K-J/2},{x:z+f.width/2,y:K-J/2+f.height+y},{x:z+u/2,y:K-J/2+f.height+y},{x:z+u/2,y:K+J/2},{x:z-u/2,y:K+J/2},{x:z-u/2,y:K-J/2+f.height+y},{x:z-f.width/2,y:K-J/2+f.height+y}]:j=[{x:z-u/2,y:K-J/2},{x:z+u/2,y:K-J/2},{x:z+u/2,y:K-J/2+c},{x:z+f.width/2,y:K-J/2+c},{x:z+f.width/2/2,y:K+J/2},{x:z-f.width/2,y:K+J/2},{x:z-f.width/2,y:K-J/2+c},{x:z-u/2,y:K-J/2+c}],At.polygon(t,j,I)},h}C(gk,"imageSquare");async function bk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=n,s=t.look==="neo"?n*2:n,{shapeSvg:o,bbox:l}=await Yt(e,t,Wt(t)),u=Math.max(l.width+(s??0)*2,(t==null?void 0:t.width)??0),c=Math.max(l.height+(a??0)*2,(t==null?void 0:t.height)??0),h=[{x:0,y:0},{x:u,y:0},{x:u+3*c/6,y:-c},{x:-3*c/6,y:-c}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=Mt.svg(o),m=Lt(t,{}),g=ce(h),y=p.path(g,m);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-u/2}, ${c/2})`),d&&f.attr("style",d)}else f=_n(o,u,c,h);return i&&f.attr("style",i),t.width=u,t.height=c,Ot(t,f),t.intersect=function(p){return At.polygon(t,h,p)},o}C(bk,"inv_trapezoid");async function yk(e,t){const{shapeSvg:r,bbox:i,label:n}=await Yt(e,t,"label"),a=r.insert("rect",":first-child");return a.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))})`),Ot(t,a),t.intersect=function(l){return At.rect(t,l)},r}C(yk,"labelRect");async function xk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=n,s=t.look==="neo"?n*2:n,{shapeSvg:o,bbox:l}=await Yt(e,t,Wt(t)),u=((t==null?void 0:t.height)??l.height)+a,c=((t==null?void 0:t.width)??l.width)+s,h=[{x:0,y:0},{x:c+3*u/6,y:0},{x:c,y:-u},{x:-(3*u)/6,y:-u}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=Mt.svg(o),m=Lt(t,{}),g=ce(h),y=p.path(g,m);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${u/2})`),d&&f.attr("style",d)}else f=_n(o,c,u,h);return i&&f.attr("style",i),t.width=c,t.height=u,Ot(t,f),t.intersect=function(p){return At.polygon(t,h,p)},o}C(xk,"lean_left");async function Ck(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=n,s=t.look==="neo"?n*2:n,{shapeSvg:o,bbox:l}=await Yt(e,t,Wt(t)),u=((t==null?void 0:t.height)??l.height)+a,c=((t==null?void 0:t.width)??l.width)+s,h=[{x:-3*u/6,y:0},{x:c,y:0},{x:c+3*u/6,y:-u},{x:0,y:-u}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=Mt.svg(o),m=Lt(t,{}),g=ce(h),y=p.path(g,m);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${u/2})`),d&&f.attr("style",d)}else f=_n(o,c,u,h);return i&&f.attr("style",i),t.width=c,t.height=u,Ot(t,f),t.intersect=function(p){return At.polygon(t,h,p)},o}C(Ck,"lean_right");function kk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.label="",t.labelStyle=r;const n=e.insert("g").attr("class",Wt(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,s=Math.max(35,(t==null?void 0:t.width)??0),o=Math.max(35,(t==null?void 0:t.height)??0),l=7,u=[{x:s,y:0},{x:0,y:o+l/2},{x:s-2*l,y:o+l/2},{x:0,y:2*o},{x:s,y:o-l/2},{x:2*l,y:o-l/2}],c=Mt.svg(n),h=Lt(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");const f=ce(u),d=c.path(f,h),p=n.insert(()=>d,":first-child");return p.attr("class","outer-path"),a&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",a),i&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",i),p.attr("transform",`translate(-${s/2},${-o})`),Ot(t,p),t.intersect=function(m){return ut.info("lightningBolt intersect",t,m),At.polygon(t,u,m)},n}C(kk,"lightningBolt");var xR=C((e,t,r,i,n,a,s)=>[`M${e},${t+a}`,`a${n},${a} 0,0,0 ${r},0`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+s}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createCylinderPathD"),CR=C((e,t,r,i,n,a,s)=>[`M${e},${t+a}`,`M${e+r},${t+a}`,`a${n},${a} 0,0,0 ${-r},0`,`l0,${i}`,`a${n},${a} 0,0,0 ${r},0`,`l0,${-i}`,`M${e},${t+a+s}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createOuterCylinderPathD"),kR=C((e,t,r,i,n,a)=>[`M${e-r/2},${-i/2}`,`a${n},${a} 0,0,0 ${r},0`].join(" "),"createInnerCylinderPathD"),G2=10,X2=10;async function Tk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=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)-a,t.width<X2&&(t.width=X2);const w=y/2/(2.5+y/50);t.height=(t.height??0)-s-w*3,t.height<G2&&(t.height=G2)}const{shapeSvg:o,bbox:l,label:u}=await Yt(e,t,Wt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:l.width)+a*2,h=c/2,f=h/(2.5+c/50),d=(t!=null&&t.height?t==null?void 0:t.height:l.height)+f+s*2,p=d*.1;let m;const{cssStyles:g}=t;if(t.look==="handDrawn"){const y=Mt.svg(o),k=CR(0,0,c,d,h,f,p),w=kR(0,f,c,d,h,f),_=Lt(t,{}),A=y.path(k,_),E=y.path(w,_);o.insert(()=>E,":first-child").attr("class","line"),m=o.insert(()=>A,":first-child"),m.attr("class","basic label-container"),g&&m.attr("style",g)}else{const y=xR(0,0,c,d,h,f,p);m=o.insert("path",":first-child").attr("d",y).attr("class","basic label-container outer-path").attr("style",ir(g)).attr("style",i)}return m.attr("label-offset-y",f),m.attr("transform",`translate(${-c/2}, ${-(d/2+f)})`),Ot(t,m),u.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 k=At.rect(t,y),w=k.x-(t.x??0);if(h!=0&&(Math.abs(w)<(t.width??0)/2||Math.abs(w)==(t.width??0)/2&&Math.abs(k.y-(t.y??0))>(t.height??0)/2-f)){let _=f*f*(1-w*w/(h*h));_>0&&(_=Math.sqrt(_)),_=f-_,y.y-(t.y??0)>0&&(_=-_),k.y+=_}return k},o}C(Tk,"linedCylinder");async function wk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n;if(t.width||t.height){const _=t.width;t.width=(_??0)*10/11-a*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:o,bbox:l,label:u}=await Yt(e,t,Wt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:l.width)+(a??0)*2,h=(t!=null&&t.height?t==null?void 0:t.height:l.height)+(s??0)*2,f=t.look==="neo"?h/4:h/8,d=h+f,{cssStyles:p}=t,m=Mt.svg(o),g=Lt(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=[{x:-c/2-c/2*.1,y:-d/2},{x:-c/2-c/2*.1,y:d/2},...ra(-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}],k=m.polygon(y.map(_=>[_.x,_.y]),g),w=o.insert(()=>k,":first-child");return 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),w.attr("transform",`translate(0,${-f/2})`),u.attr("transform",`translate(${-c/2+(t.padding??0)+c/2*.1/2-(l.x-(l.left??0))},${-h/2+(t.padding??0)-f/2-(l.y-(l.top??0))})`),Ot(t,w),t.intersect=function(_){return At.polygon(t,y,_)},o}C(wk,"linedWaveEdgedRect");async function vk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n,o=t.look==="neo"?10:5;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-a*2-2*o,10),t.height=Math.max(((t==null?void 0:t.height)??0)-s*2-2*o,10));const{shapeSvg:l,bbox:u,label:c}=await Yt(e,t,Wt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:u.width)+a*2+2*o,f=(t!=null&&t.height?t==null?void 0:t.height:u.height)+s*2+2*o,d=h-2*o,p=f-2*o,m=-d/2,g=-p/2,{cssStyles:y}=t,k=Mt.svg(l),w=Lt(t,{}),_=[{x:m-o,y:g+o},{x:m-o,y:g+p+o},{x:m+d-o,y:g+p+o},{x:m+d-o,y:g+p},{x:m+d,y:g+p},{x:m+d,y:g+p-o},{x:m+d+o,y:g+p-o},{x:m+d+o,y:g-o},{x:m+o,y:g-o},{x:m+o,y:g},{x:m,y:g},{x:m,y:g+o}],A=[{x:m,y:g+o},{x:m+d-o,y:g+o},{x:m+d-o,y:g+p},{x:m+d,y:g+p},{x:m+d,y:g},{x:m,y:g}];t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const E=ce(_);let N=k.path(E,w);const F=ce(A);let Y=k.path(F,w);t.look!=="handDrawn"&&(N=kf(N),Y=kf(Y));const I=l.insert("g",":first-child");return I.insert(()=>N),I.insert(()=>Y),I.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),c.attr("transform",`translate(${-(u.width/2)-o-(u.x-(u.left??0))}, ${-(u.height/2)+o-(u.y-(u.top??0))})`),Ot(t,I),t.intersect=function(z){return At.polygon(t,_,z)},l}C(vk,"multiRect");async function Sk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await Yt(e,t,Wt(t)),o=t.padding??0,l=t.look==="neo"?16:o,u=t.look==="neo"?12:o;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)-u*3);const h=Math.max(a.width,(t==null?void 0:t.width)??0)+l*2,f=Math.max(a.height,(t==null?void 0:t.height)??0)+u*3,d=t.look==="neo"?f/4:f/8,p=f+(c?d/2:-d/2),m=-h/2,g=-p/2,y=10,{cssStyles:k}=t,w=ra(m-y,g+p+y,m+h-y,g+p+y,d,.8),_=w==null?void 0:w[w.length-1],A=[{x:m-y,y:g+y},{x:m-y,y:g+p+y},...w,{x:m+h-y,y:_.y-y},{x:m+h,y:_.y-y},{x:m+h,y:_.y-2*y},{x:m+h+y,y:_.y-2*y},{x:m+h+y,y:g-y},{x:m+y,y:g-y},{x:m+y,y:g},{x:m,y:g},{x:m,y:g+y}],E=[{x:m,y:g+y},{x:m+h-y,y:g+y},{x:m+h-y,y:_.y-y},{x:m+h,y:_.y-y},{x:m+h,y:g},{x:m,y:g}],N=Mt.svg(n),F=Lt(t,{});t.look!=="handDrawn"&&(F.roughness=0,F.fillStyle="solid");const Y=ce(A),I=N.path(Y,F),z=ce(E),K=N.path(z,F),J=n.insert(()=>I,":first-child");return J.insert(()=>K),J.attr("class","basic label-container outer-path"),k&&t.look!=="handDrawn"&&J.selectAll("path").attr("style",k),i&&t.look!=="handDrawn"&&J.selectAll("path").attr("style",i),J.attr("transform",`translate(0,${-d/2})`),s.attr("transform",`translate(${-(a.width/2)-y-(a.x-(a.left??0))}, ${-(a.height/2)+y-d/2-(a.y-(a.top??0))})`),Ot(t,J),t.intersect=function(j){return At.polygon(t,A,j)},n}C(Sk,"multiWaveEdgedRectangle");async function Ek(e,t,{config:{themeVariables:r}}){const{labelStyles:i,nodeStyles:n}=Nt(t);t.labelStyle=i,t.useHtmlLabels||Dr(Ne())||(t.centerLabel=!0);const{shapeSvg:s,bbox:o,label:l}=await Yt(e,t,Wt(t)),u=Math.max(o.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),c=Math.max(o.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),h=-u/2,f=-c/2,{cssStyles:d}=t,p=Mt.svg(s),m=Lt(t,{fill:r.noteBkgColor,stroke:r.noteBorderColor});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const g=p.rectangle(h,f,u,c,m),y=s.insert(()=>g,":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(${-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),Ot(t,y),t.intersect=function(k){return At.rect(t,k)},s}C(Ek,"note");var TR=C((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 _k(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await Yt(e,t,Wt(t)),s=a.width+(t.padding??0),o=a.height+(t.padding??0),l=s+o,u=.5,c=[{x:l/2,y:0},{x:l,y:-l/2},{x:l/2,y:-l},{x:0,y:-l/2}];let h;const{cssStyles:f}=t;if(t.look==="handDrawn"){const d=Mt.svg(n),p=Lt(t,{}),m=TR(0,0,l),g=d.path(m,p);h=n.insert(()=>g,":first-child").attr("transform",`translate(${-l/2+u}, ${l/2})`),f&&h.attr("style",f)}else h=_n(n,l,l,c),h.attr("transform",`translate(${-l/2+u}, ${l/2})`);return i&&h.attr("style",i),Ot(t,h),t.calcIntersect=function(d,p){const m=d.width,g=[{x:m/2,y:0},{x:m,y:-m/2},{x:m/2,y:-m},{x:0,y:-m/2}],y=At.polygon(d,g,p);return{x:y.x-.5,y:y.y-.5}},t.intersect=function(d){return this.calcIntersect(t,d)},n}C(_k,"question");async function Ak(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?21:n??0,s=t.look==="neo"?12:n??0,{shapeSvg:o,bbox:l,label:u}=await Yt(e,t,Wt(t)),c=((t==null?void 0:t.width)??l.width)+(t.look==="neo"?a*2:a),h=((t==null?void 0:t.height)??l.height)+(t.look==="neo"?s*2:s),f=-c/2,d=-h/2,p=d/2,m=[{x:f+p,y:d},{x:f,y:0},{x:f+p,y:-d},{x:-f,y:-d},{x:-f,y:d}],{cssStyles:g}=t,y=Mt.svg(o),k=Lt(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const w=ce(m),_=y.path(w,k),A=o.insert(()=>_,":first-child");return A.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",g),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),A.attr("transform",`translate(${-p/2},0)`),u.attr("transform",`translate(${-p/2-l.width/2-(l.x-(l.left??0))}, ${-(l.height/2)-(l.y-(l.top??0))})`),Ot(t,A),t.intersect=function(E){return At.polygon(t,m,E)},o}C(Ak,"rect_left_inv_arrow");async function Bk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;let n;t.cssClasses?n="node "+t.cssClasses:n="node default";const a=e.insert("g").attr("class",n).attr("id",t.domId||t.id),s=a.insert("g"),o=a.insert("g").attr("class","label").attr("style",i),l=t.description,u=t.label,c=await Wn(o,u,t.labelStyle,!0,!0);let h={width:0,height:0};if(Dr(me())){const F=c.children[0],Y=ie(c);h=F.getBoundingClientRect(),Y.attr("width",h.width),Y.attr("height",h.height)}ut.info("Text 2",l);const f=l||[],d=c.getBBox(),p=await Wn(o,Array.isArray(f)?f.join("<br/>"):f,t.labelStyle,!0,!0),m=p.children[0],g=ie(p);h=m.getBoundingClientRect(),g.attr("width",h.width),g.attr("height",h.height);const y=(t.padding||0)/2;ie(p).attr("transform","translate( "+(h.width>d.width?0:(d.width-h.width)/2)+", "+(d.height+y+5)+")"),ie(c).attr("transform","translate( "+(h.width<d.width?0:-(d.width-h.width)/2)+", 0)"),h=o.node().getBBox(),o.attr("transform","translate("+-h.width/2+", "+(-h.height/2-y+3)+")");const k=h.width+(t.padding||0),w=h.height+(t.padding||0),_=-h.width/2-y,A=-h.height/2-y;let E,N;if(t.look==="handDrawn"){const F=Mt.svg(a),Y=Lt(t,{}),I=F.path(la(_,A,k,w,t.rx||0),Y),z=F.line(-h.width/2-y,-h.height/2-y+d.height+y,h.width/2+y,-h.height/2-y+d.height+y,Y);N=a.insert(()=>(ut.debug("Rough node insert CXC",I),z),":first-child"),E=a.insert(()=>(ut.debug("Rough node insert CXC",I),I),":first-child")}else E=s.insert("rect",":first-child"),N=s.insert("line"),E.attr("class","outer title-state").attr("style",i).attr("x",-h.width/2-y).attr("y",-h.height/2-y).attr("width",h.width+(t.padding||0)).attr("height",h.height+(t.padding||0)),N.attr("class","divider").attr("x1",-h.width/2-y).attr("x2",h.width/2+y).attr("y1",-h.height/2-y+d.height+y).attr("y2",-h.height/2-y+d.height+y);return Ot(t,E),t.intersect=function(F){return At.rect(t,F)},a}C(Bk,"rectWithTitle");async function Lk(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 eo(e,t,n)}C(Lk,"roundedRect");var pa=8;async function Ik(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?12:t.padding??0,{shapeSvg:s,bbox:o,label:l}=await Yt(e,t,Wt(t)),u=((t==null?void 0:t.width)??o.width)+n*2+(t.look==="neo"?pa:pa*2),c=((t==null?void 0:t.height)??o.height)+a*2,h=u-pa,f=c,d=pa-u/2,p=-c/2,{cssStyles:m}=t,g=Mt.svg(s),y=Lt(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const k=[{x:d,y:p},{x:d+h,y:p},{x:d+h,y:p+f},{x:d-pa,y:p+f},{x:d-pa,y:p},{x:d,y:p},{x:d,y:p+f}],w=g.polygon(k.map(A=>[A.x,A.y]),y),_=s.insert(()=>w,":first-child");return _.attr("class","basic label-container outer-path").attr("style",ir(m)),i&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),m&&t.look!=="handDrawn"&&_.selectAll("path").attr("style",i),l.attr("transform",`translate(${pa/2-o.width/2-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),Ot(t,_),t.intersect=function(A){return At.rect(t,A)},s}C(Ik,"shadedProcess");async function Mk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=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)-a*2,10),t.height=Math.max(((t==null?void 0:t.height)??0)/1.5-s*2,10));const{shapeSvg:o,bbox:l,label:u}=await Yt(e,t,Wt(t)),c=(t!=null&&t.width?t==null?void 0:t.width:l.width)+a*2,h=((t!=null&&t.height?t==null?void 0:t.height:l.height)+s*2)*1.5,f=c,d=h/1.5,p=-f/2,m=-d/2,{cssStyles:g}=t,y=Mt.svg(o),k=Lt(t,{});t.look!=="handDrawn"&&(k.roughness=0,k.fillStyle="solid");const w=[{x:p,y:m},{x:p,y:m+d},{x:p+f,y:m+d},{x:p+f,y:m-d/2}],_=ce(w),A=y.path(_,k),E=o.insert(()=>A,":first-child");return E.attr("class","basic label-container outer-path"),g&&t.look!=="handDrawn"&&E.selectChildren("path").attr("style",g),i&&t.look!=="handDrawn"&&E.selectChildren("path").attr("style",i),E.attr("transform",`translate(0, ${d/4})`),u.attr("transform",`translate(${-f/2+(t.padding??0)-(l.x-(l.left??0))}, ${-d/4+(t.padding??0)-(l.y-(l.top??0))})`),Ot(t,E),t.intersect=function(N){return At.polygon(t,w,N)},o}C(Mk,"slopedRect");async function Nk(e,t){const r=t.padding??0,i=t.look==="neo"?16:r*2,n=t.look==="neo"?12:r,a={rx:0,ry:0,labelPaddingX:t.labelPaddingX??i,labelPaddingY:n};return eo(e,t,a)}C(Nk,"squareRect");async function Fk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?20:n,s=t.look==="neo"?12:n,{shapeSvg:o,bbox:l}=await Yt(e,t,Wt(t)),u=l.height+(t.look==="neo"?s*2:s),c=l.width+u/4+(t.look==="neo"?a*2:a),h=u/2,{cssStyles:f}=t,d=Mt.svg(o),p=Lt(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");const m=[{x:-c/2+h,y:-u/2},{x:c/2-h,y:-u/2},...yl(-c/2+h,0,h,50,90,270),{x:c/2-h,y:u/2},...yl(c/2-h,0,h,50,270,450)],g=ce(m),y=d.path(g,p),k=o.insert(()=>y,":first-child");return k.attr("class","basic label-container outer-path"),f&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",f),i&&t.look!=="handDrawn"&&k.selectChildren("path").attr("style",i),Ot(t,k),t.intersect=function(w){return At.polygon(t,m,w)},o}C(Fk,"stadium");async function Ok(e,t){const r={rx:t.look==="neo"?3:5,ry:t.look==="neo"?3:5};return eo(e,t,r)}C(Ok,"state");function Dk(e,t,{config:{themeVariables:r}}){var k,w;const{labelStyles:i,nodeStyles:n}=Nt(t);t.labelStyle=i;const{cssStyles:a}=t,{lineColor:s,stateBorder:o,nodeBorder:l,nodeShadow:u}=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),h=Mt.svg(c),f=Lt(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");const d=h.circle(0,0,t.width,{...f,stroke:s,strokeWidth:2}),p=o??l,m=(t.width??0)*5/14,g=h.circle(0,0,m,{...f,fill:p,stroke:p,strokeWidth:2,fillStyle:"solid"}),y=c.insert(()=>d,":first-child");if(y.insert(()=>g),t.look!=="handDrawn"&&y.attr("class","outer-path"),a&&y.selectAll("path").attr("style",a),n&&y.selectAll("path").attr("style",n),t.width<25&&u&&t.look!=="handDrawn"){const _=((w=(k=e.node())==null?void 0:k.ownerSVGElement)==null?void 0:w.id)??"",A=_?`${_}-drop-shadow-small`:"drop-shadow-small";y.attr("style",`filter:url(#${A})`)}return Ot(t,y),t.intersect=function(_){return At.circle(t,(t.width??0)/2,_)},c}C(Dk,"stateEnd");function Rk(e,t,{config:{themeVariables:r}}){var o,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 a=e.insert("g").attr("class","node default").attr("id",t.domId||t.id);let s;if(t.look==="handDrawn"){const c=Mt.svg(a).circle(0,0,t.width,FF(i));s=a.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=a.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 u=((l=(o=e.node())==null?void 0:o.ownerSVGElement)==null?void 0:l.id)??"",c=u?`${u}-drop-shadow-small`:"drop-shadow-small";s.attr("style",`filter:url(#${c})`)}return Ot(t,s),t.intersect=function(u){return At.circle(t,(t.width??7)/2,u)},a}C(Rk,"stateStart");var ns=8;async function Pk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=(t==null?void 0:t.padding)??8,a=t.look==="neo"?28:n,s=t.look==="neo"?12:n,{shapeSvg:o,bbox:l}=await Yt(e,t,Wt(t)),u=((t==null?void 0:t.width)??l.width)+2*ns+a,c=((t==null?void 0:t.height)??l.height)+s,h=u-2*ns,f=c,d=-u/2,p=-c/2,m=[{x:0,y:0},{x:h,y:0},{x:h,y:-f},{x:0,y:-f},{x:0,y:0},{x:-8,y:0},{x:h+8,y:0},{x:h+8,y:-f},{x:-8,y:-f},{x:-8,y:0}];if(t.look==="handDrawn"){const g=Mt.svg(o),y=Lt(t,{}),k=g.rectangle(d,p,h+16,f,y),w=g.line(d+ns,p,d+ns,p+f,y),_=g.line(d+ns+h,p,d+ns+h,p+f,y);o.insert(()=>w,":first-child"),o.insert(()=>_,":first-child");const A=o.insert(()=>k,":first-child"),{cssStyles:E}=t;A.attr("class","basic label-container").attr("style",ir(E)),Ot(t,A)}else{const g=_n(o,h,f,m);i&&g.attr("style",i),Ot(t,g)}return t.intersect=function(g){return At.polygon(t,m,g)},o}C(Pk,"subroutine");var B0=.2;async function $k(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=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)-a*2-B0*(t.height+s*2),10));const{shapeSvg:o,bbox:l}=await Yt(e,t,Wt(t)),u=(t!=null&&t.height?t==null?void 0:t.height:l.height)+s*2,c=B0*u,h=B0*u,d=(t!=null&&t.width?t==null?void 0:t.width:l.width)+a*2+c-c,p=u,m=-d/2,g=-p/2,{cssStyles:y}=t,k=Mt.svg(o),w=Lt(t,{}),_=[{x:m-c/2,y:g},{x:m+d+c/2,y:g},{x:m+d+c/2,y:g+p},{x:m-c/2,y:g+p}],A=[{x:m+d-c/2,y:g+p},{x:m+d+c/2,y:g+p},{x:m+d+c/2,y:g+p-h}];t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");const E=ce(_),N=k.path(E,w),F=ce(A),Y=k.path(F,{...w,fillStyle:"solid"}),I=o.insert(()=>Y,":first-child");return I.insert(()=>N,":first-child"),I.attr("class","basic label-container outer-path"),y&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",y),i&&t.look!=="handDrawn"&&I.selectAll("path").attr("style",i),Ot(t,I),t.intersect=function(z){return At.polygon(t,_,z)},o}C($k,"taggedRect");async function zk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,label:s}=await Yt(e,t,Wt(t)),o=Math.max(a.width+(t.padding??0)*2,(t==null?void 0:t.width)??0),l=Math.max(a.height+(t.padding??0)*2,(t==null?void 0:t.height)??0),u=l/8,c=.2*o,h=.2*l,f=l+u,{cssStyles:d}=t,p=Mt.svg(n),m=Lt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const g=[{x:-o/2-o/2*.1,y:f/2},...ra(-o/2-o/2*.1,f/2,o/2+o/2*.1,f/2,u,.8),{x:o/2+o/2*.1,y:-f/2},{x:-o/2-o/2*.1,y:-f/2}],y=-o/2+o/2*.1,k=-f/2-h*.4,w=[{x:y+o-c,y:(k+l)*1.3},{x:y+o,y:k+l-h},{x:y+o,y:(k+l)*.9},...ra(y+o,(k+l)*1.25,y+o-c,(k+l)*1.3,-l*.02,.5)],_=ce(g),A=p.path(_,m),E=ce(w),N=p.path(E,{...m,fillStyle:"solid"}),F=n.insert(()=>N,":first-child");return F.insert(()=>A,":first-child"),F.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",i),F.attr("transform",`translate(0,${-u/2})`),s.attr("transform",`translate(${-o/2+(t.padding??0)-(a.x-(a.left??0))},${-l/2+(t.padding??0)-u/2-(a.y-(a.top??0))})`),Ot(t,F),t.intersect=function(Y){return At.polygon(t,g,Y)},n}C(zk,"taggedWaveEdgedRectangle");async function Hk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a}=await Yt(e,t,Wt(t)),s=Math.max(a.width+(t.padding??0),(t==null?void 0:t.width)||0),o=Math.max(a.height+(t.padding??0),(t==null?void 0:t.height)||0),l=-s/2,u=-o/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",u).attr("width",s).attr("height",o),Ot(t,c),t.intersect=function(h){return At.rect(t,h)},n}C(Hk,"text");var wR=C((e,t,r,i,n,a)=>`M${e},${t}
|
|
502
|
+
a${n},${a} 0,0,1 0,${-i}
|
|
503
|
+
l${r},0
|
|
504
|
+
a${n},${a} 0,0,1 0,${i}
|
|
505
|
+
M${r},${-i}
|
|
506
|
+
a${n},${a} 0,0,0 0,${i}
|
|
507
|
+
l${-r},0`,"createCylinderPathD"),vR=C((e,t,r,i,n,a)=>[`M${e},${t}`,`M${e+r},${t}`,`a${n},${a} 0,0,0 0,${-i}`,`l${-r},0`,`a${n},${a} 0,0,0 0,${i}`,`l${r},0`].join(" "),"createOuterCylinderPathD"),SR=C((e,t,r,i,n,a)=>[`M${e+r/2},${-i/2}`,`a${n},${a} 0,0,0 0,${i}`].join(" "),"createInnerCylinderPathD"),K2=5,Q2=10;async function qk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?12:n/2;if(t.width||t.height){const m=t.height??0;t.height=(t.height??0)-a,t.height<K2&&(t.height=K2);const y=m/2/(2.5+m/50);t.width=(t.width??0)-a-y*3,t.width<Q2&&(t.width=Q2)}const{shapeSvg:s,bbox:o,label:l}=await Yt(e,t,Wt(t)),u=(t.height?t.height:o.height)+a,c=u/2,h=c/(2.5+u/50),f=(t.width?t.width:o.width)+h+a,{cssStyles:d}=t;let p;if(t.look==="handDrawn"){const m=Mt.svg(s),g=vR(0,0,f,u,h,c),y=SR(0,0,f,u,h,c),k=m.path(g,Lt(t,{})),w=m.path(y,Lt(t,{fill:"none"}));p=s.insert(()=>w,":first-child"),p=s.insert(()=>k,":first-child"),p.attr("class","basic label-container"),d&&p.attr("style",d)}else{const m=wR(0,0,f,u,h,c);p=s.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",ir(d)).attr("style",i),p.attr("class","basic label-container outer-path"),d&&p.selectAll("path").attr("style",d),i&&p.selectAll("path").attr("style",i)}return p.attr("label-offset-x",h),p.attr("transform",`translate(${-f/2}, ${u/2} )`),l.attr("transform",`translate(${-(o.width/2)-h-(o.x-(o.left??0))}, ${-(o.height/2)-(o.y-(o.top??0))})`),Ot(t,p),t.intersect=function(m){const g=At.rect(t,m),y=g.y-(t.y??0);if(c!=0&&(Math.abs(y)<(t.height??0)/2||Math.abs(y)==(t.height??0)/2&&Math.abs(g.x-(t.x??0))>(t.width??0)/2-h)){let k=h*h*(1-y*y/(c*c));k!=0&&(k=Math.sqrt(Math.abs(k))),k=h-k,m.x-(t.x??0)>0&&(k=-k),g.x+=k}return g},s}C(qk,"tiltedCylinder");async function Uk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=(t.look==="neo",n),s=t.look==="neo"?n*2:n,{shapeSvg:o,bbox:l}=await Yt(e,t,Wt(t)),u=((t==null?void 0:t.height)??l.height)+a,c=((t==null?void 0:t.width)??l.width)+s,h=[{x:-3*u/6,y:0},{x:c+3*u/6,y:0},{x:c,y:-u},{x:0,y:-u}];let f;const{cssStyles:d}=t;if(t.look==="handDrawn"){const p=Mt.svg(o),m=Lt(t,{}),g=ce(h),y=p.path(g,m);f=o.insert(()=>y,":first-child").attr("transform",`translate(${-c/2}, ${u/2})`),d&&f.attr("style",d)}else f=_n(o,c,u,h);return i&&f.attr("style",i),t.width=c,t.height=u,Ot(t,f),t.intersect=function(p){return At.polygon(t,h,p)},o}C(Uk,"trapezoid");async function Wk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n,o=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)-a*2,t.width<o&&(t.width=o));const{shapeSvg:u,bbox:c}=await Yt(e,t,Wt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:c.width)+a*2,f=(t!=null&&t.height?t==null?void 0:t.height:c.height)+s*2,{cssStyles:d}=t,p=Mt.svg(u),m=Lt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const g=[{x:-h/2*.8,y:-f/2},{x:h/2*.8,y:-f/2},{x:h/2,y:-f/2*.6},{x:h/2,y:f/2},{x:-h/2,y:f/2},{x:-h/2,y:-f/2*.6}],y=ce(g),k=p.path(y,m),w=u.insert(()=>k,":first-child");return w.attr("class","basic label-container outer-path"),d&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",d),i&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),Ot(t,w),t.intersect=function(_){return At.polygon(t,g,_)},u}C(Wk,"trapezoidalPentagon");var Z2=10,J2=10;async function jk(e,t){var _;const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?n*2:n;(t.width||t.height)&&(t.width=(((t==null?void 0:t.width)??0)-a)/2,t.width<J2&&(t.width=J2),t.height=(t==null?void 0:t.height)??0,t.height<Z2&&(t.height=Z2));const{shapeSvg:s,bbox:o,label:l}=await Yt(e,t,Wt(t)),u=an((_=me().flowchart)==null?void 0:_.htmlLabels),c=(t!=null&&t.width?t==null?void 0:t.width:o.width)+a,h=t!=null&&t.height?t==null?void 0:t.height:c+o.height,f=h,d=[{x:0,y:0},{x:f,y:0},{x:f/2,y:-h}],{cssStyles:p}=t,m=Mt.svg(s),g=Lt(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=ce(d),k=m.path(y,g),w=s.insert(()=>k,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`).attr("class","outer-path");return p&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",p),i&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",i),t.width=c,t.height=h,Ot(t,w),l.attr("transform",`translate(${-o.width/2-(o.x-(o.left??0))}, ${h/2-(o.height+(t.padding??0)/(u?2:1)-(o.y-(o.top??0)))})`),t.intersect=function(A){return ut.info("Triangle intersect",t,d,A),At.polygon(t,d,A)},s}C(jk,"triangle");async function Yk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=t.look==="neo"?16:n,s=t.look==="neo"?12:n;let o=!0;(t.width||t.height)&&(o=!1,t.width=((t==null?void 0:t.width)??0)-a*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:u,label:c}=await Yt(e,t,Wt(t)),h=(t!=null&&t.width?t==null?void 0:t.width:u.width)+(a??0)*2,f=(t!=null&&t.height?t==null?void 0:t.height:u.height)+(s??0)*2,d=t.look==="neo"?f/4:f/8,p=f+(o?d:-d),{cssStyles:m}=t,y=14-h,k=y>0?y/2:0,w=Mt.svg(l),_=Lt(t,{});t.look!=="handDrawn"&&(_.roughness=0,_.fillStyle="solid");const A=[{x:-h/2-k,y:p/2},...ra(-h/2-k,p/2,h/2+k,p/2,d,.8),{x:h/2+k,y:-p/2},{x:-h/2-k,y:-p/2}],E=ce(A),N=w.path(E,_),F=l.insert(()=>N,":first-child");return F.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&F.selectAll("path").attr("style",i),F.attr("transform",`translate(0,${-d/2})`),c.attr("transform",`translate(${-h/2+(t.padding??0)-(u.x-(u.left??0))},${-f/2+(t.padding??0)-d-(u.y-(u.top??0))})`),Ot(t,F),t.intersect=function(Y){return At.polygon(t,A,Y)},l}C(Yk,"waveEdgedRectangle");async function Vk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.padding??0,a=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 _=Math.min(t.height*.2,t.height/4);t.height=Math.ceil(t.height-s-_*(20/9)),t.width=t.width-a*2}const{shapeSvg:o,bbox:l}=await Yt(e,t,Wt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:l.width)+a*2,c=(t!=null&&t.height?t==null?void 0:t.height:l.height)+s,h=c/8,f=c+h*2,{cssStyles:d}=t,p=Mt.svg(o),m=Lt(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");const g=[{x:-u/2,y:f/2},...ra(-u/2,f/2,u/2,f/2,h,1),{x:u/2,y:-f/2},...ra(u/2,-f/2,-u/2,-f/2,h,-1)],y=ce(g),k=p.path(y,m),w=o.insert(()=>k,":first-child");return w.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",d),i&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",i),Ot(t,w),t.intersect=function(_){return At.polygon(t,g,_)},o}C(Vk,"waveRectangle");var De=10;async function Gk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t.look==="neo"?16:t.padding??0,a=t.look==="neo"?12:t.padding??0;(t.width||t.height)&&(t.width=Math.max(((t==null?void 0:t.width)??0)-n*2-De,10),t.height=Math.max(((t==null?void 0:t.height)??0)-a*2-De,10));const{shapeSvg:s,bbox:o,label:l}=await Yt(e,t,Wt(t)),u=(t!=null&&t.width?t==null?void 0:t.width:o.width)+n*2+De,c=(t!=null&&t.height?t==null?void 0:t.height:o.height)+a*2+De,h=u-De,f=c-De,d=-h/2,p=-f/2,{cssStyles:m}=t,g=Mt.svg(s),y=Lt(t,{}),k=[{x:d-De,y:p-De},{x:d-De,y:p+f},{x:d+h,y:p+f},{x:d+h,y:p-De}],w=`M${d-De},${p-De} L${d+h},${p-De} L${d+h},${p+f} L${d-De},${p+f} L${d-De},${p-De}
|
|
508
|
+
M${d-De},${p} L${d+h},${p}
|
|
509
|
+
M${d},${p-De} L${d},${p+f}`;t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");const _=g.path(w,y),A=s.insert(()=>_,":first-child");return A.attr("transform",`translate(${De/2}, ${De/2})`),A.attr("class","basic label-container outer-path"),m&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",m),i&&t.look!=="handDrawn"&&A.selectAll("path").attr("style",i),l.attr("transform",`translate(${-(o.width/2)+De/2-(o.x-(o.left??0))}, ${-(o.height/2)+De/2-(o.y-(o.top??0))})`),Ot(t,A),t.intersect=function(E){return At.polygon(t,k,E)},s}C(Gk,"windowPane");var tb=new Set(["redux-color","redux-dark-color"]),ER=new Set(["redux","redux-dark","redux-color","redux-dark-color"]);async function bp(e,t){var Ft,zt,Zt,Vt;const r=t;r.alias&&(t.label=r.alias);const{theme:i,themeVariables:n}=Ne(),{rowEven:a,rowOdd:s,nodeBorder:o,borderColorArray:l}=n;if(t.look==="handDrawn"){const{themeVariables:yt}=Ne(),{background:bt}=yt,jt={...t,id:t.id+"-background",domId:(t.domId||t.id)+"-background",look:"default",cssStyles:["stroke: none",`fill: ${bt}`]};await bp(e,jt)}const u=Ne();t.useHtmlLabels=u.htmlLabels;let c=((Ft=u.er)==null?void 0:Ft.diagramPadding)??10,h=((zt=u.er)==null?void 0:zt.entityPadding)??6;const{cssStyles:f}=t,{labelStyles:d,nodeStyles:p}=Nt(t);if(r.attributes.length===0&&t.label){const yt={rx:0,ry:0,labelPaddingX:c,labelPaddingY:c*1.5};wn(t.label,u)+yt.labelPaddingX*2<u.er.minEntityWidth&&(t.width=u.er.minEntityWidth);const bt=await eo(e,t,yt);if(i!=null&&tb.has(i)){const jt=r.colorIndex??0;bt.attr("data-color-id",`color-${jt%l.length}`)}if(!an(u.htmlLabels)){const jt=bt.select("text"),It=(Zt=jt.node())==null?void 0:Zt.getBBox();jt.attr("transform",`translate(${-It.width/2}, 0)`)}return bt}u.htmlLabels||(c*=1.25,h*=1.25);let m=Wt(t);m||(m="node default");const g=e.insert("g").attr("class",m).attr("id",t.domId||t.id),y=await ls(g,t.label??"",u,0,0,["name"],d);y.height+=h;let k=0;const w=[],_=[];let A=0,E=0,N=0,F=0,Y=!0,I=!0;for(const yt of r.attributes){const bt=await ls(g,yt.type,u,0,k,["attribute-type"],d);A=Math.max(A,bt.width+c);const jt=await ls(g,yt.name,u,0,k,["attribute-name"],d);E=Math.max(E,jt.width+c);const It=await ls(g,yt.keys.join(),u,0,k,["attribute-keys"],d);N=Math.max(N,It.width+c);const et=await ls(g,yt.comment,u,0,k,["attribute-comment"],d);F=Math.max(F,et.width+c);const vt=Math.max(bt.height,jt.height,It.height,et.height)+h;_.push({yOffset:k,rowHeight:vt}),k+=vt}let z=4;N<=c&&(Y=!1,N=0,z--),F<=c&&(I=!1,F=0,z--);const K=g.node().getBBox();if(y.width+c*2-(A+E+N+F)>0){const yt=y.width+c*2-(A+E+N+F);A+=yt/z,E+=yt/z,N>0&&(N+=yt/z),F>0&&(F+=yt/z)}const J=A+E+N+F,j=Mt.svg(g),P=Lt(t,{});t.look!=="handDrawn"&&(P.roughness=0,P.fillStyle="solid");let $=0;_.length>0&&($=_.reduce((yt,bt)=>yt+((bt==null?void 0:bt.rowHeight)??0),0));const V=Math.max(K.width+c*2,(t==null?void 0:t.width)||0,J),X=Math.max(($??0)+y.height,(t==null?void 0:t.height)||0),it=-V/2,L=-X/2;if(g.selectAll("g:not(:first-child)").each((yt,bt,jt)=>{const It=ie(jt[bt]),et=It.attr("transform");let vt=0,nr=0;if(et){const Ht=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(et);Ht&&(vt=parseFloat(Ht[1]),nr=parseFloat(Ht[2]),It.attr("class").includes("attribute-name")?vt+=A:It.attr("class").includes("attribute-keys")?vt+=A+E:It.attr("class").includes("attribute-comment")&&(vt+=A+E+N))}It.attr("transform",`translate(${it+c/2+vt}, ${nr+L+y.height+h/2})`)}),g.select(".name").attr("transform","translate("+-y.width/2+", "+(L+h/2)+")"),i!=null&&tb.has(i)){const yt=r.colorIndex??0;g.attr("data-color-id",`color-${yt%l.length}`)}const lt=j.rectangle(it,L,V,X,P),Ct=g.insert(()=>lt,":first-child").attr("class","outer-path").attr("style",f.join(""));w.push(0);for(const[yt,bt]of _.entries()){const It=(yt+1)%2===0&&bt.yOffset!==0,et=j.rectangle(it,y.height+L+(bt==null?void 0:bt.yOffset),V,bt==null?void 0:bt.rowHeight,{...P,fill:It?a:s,stroke:o});g.insert(()=>et,"g.label").attr("style",f.join("")).attr("class",`row-rect-${It?"even":"odd"}`)}const O=1e-4;let St=us(it,y.height+L,V+it,y.height+L,O),_t=j.polygon(St.map(yt=>[yt.x,yt.y]),P);if(g.insert(()=>_t).attr("class","divider"),St=us(A+it,y.height+L,A+it,X+L,O),_t=j.polygon(St.map(yt=>[yt.x,yt.y]),P),g.insert(()=>_t).attr("class","divider"),Y){const yt=A+E+it;St=us(yt,y.height+L,yt,X+L,O),_t=j.polygon(St.map(bt=>[bt.x,bt.y]),P),g.insert(()=>_t).attr("class","divider")}if(I){const yt=A+E+N+it;St=us(yt,y.height+L,yt,X+L,O),_t=j.polygon(St.map(bt=>[bt.x,bt.y]),P),g.insert(()=>_t).attr("class","divider")}for(const yt of w){const bt=y.height+L+yt;St=us(it,bt,V+it,bt,O),_t=j.polygon(St.map(jt=>[jt.x,jt.y]),P),g.insert(()=>_t).attr("class","divider")}if(Ot(t,Ct),p&&t.look!=="handDrawn")if(i!=null&&ER.has(i))g.selectAll("path").attr("style",p);else{const yt=p.split(";"),bt=(Vt=yt==null?void 0:yt.filter(jt=>jt.includes("stroke")))==null?void 0:Vt.map(jt=>`${jt}`).join("; ");g.selectAll("path").attr("style",bt??""),g.selectAll(".row-rect-even path").attr("style",p)}return t.intersect=function(yt){return At.rect(t,yt)},g}C(bp,"erBox");async function ls(e,t,r,i=0,n=0,a=[],s=""){const o=e.insert("g").attr("class",`label ${a.join(" ")}`).attr("transform",`translate(${i}, ${n})`).attr("style",s);t!==jg(t)&&(t=jg(t),t=t.replaceAll("<","<").replaceAll(">",">"));const l=o.node().appendChild(await on(o,t,{width:wn(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 u=l.getBBox();if(an(r.htmlLabels)){const c=l.children[0];c.style.textAlign="start";const h=ie(l);u=c.getBoundingClientRect(),h.attr("width",u.width),h.attr("height",u.height)}return u}C(ls,"addText");function us(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}]}C(us,"lineToPolygon");async function Xk(e,t,r,i,n=r.class.padding??12){const a=i?0:3,s=e.insert("g").attr("class",Wt(t)).attr("id",t.domId||t.id);let o=null,l=null,u=null,c=null,h=0,f=0,d=0;if(o=s.insert("g").attr("class","annotation-group text"),t.annotations.length>0){const k=t.annotations[0];await Ro(o,{text:`«${k}»`},0),h=o.node().getBBox().height}l=s.insert("g").attr("class","label-group text"),await Ro(l,t,0,["font-weight: bolder"]);const p=l.node().getBBox();f=p.height,u=s.insert("g").attr("class","members-group text");let m=0;for(const k of t.members){const w=await Ro(u,k,m,[k.parseClassifier()]);m+=w+a}d=u.node().getBBox().height,d<=0&&(d=n/2),c=s.insert("g").attr("class","methods-group text");let g=0;for(const k of t.methods){const w=await Ro(c,k,g,[k.parseClassifier()]);g+=w+a}let y=s.node().getBBox();if(o!==null){const k=o.node().getBBox();o.attr("transform",`translate(${-k.width/2})`)}return l.attr("transform",`translate(${-p.width/2}, ${h})`),y=s.node().getBBox(),u.attr("transform",`translate(0, ${h+f+n*2})`),y=s.node().getBBox(),c.attr("transform",`translate(0, ${h+f+(d?d+n*4:n*2)})`),y=s.node().getBBox(),{shapeSvg:s,bbox:y}}C(Xk,"textHelper");async function Ro(e,t,r,i=[]){const n=e.insert("g").attr("class","label").attr("style",i.join("; ")),a=Ne();let s="useHtmlLabels"in t?t.useHtmlLabels:an(a.htmlLabels)??!0,o="";"text"in t?o=t.text:o=t.label,!s&&o.startsWith("\\")&&(o=o.substring(1)),ul(o)&&(s=!0);const l=await on(n,E1(Pa(o)),{width:wn(o,a)+50,classes:"markdown-node-label",useHtmlLabels:s},a);let u,c=1;if(s){const h=l.children[0],f=ie(l);c=h.innerHTML.split("<br>").length,h.innerHTML.includes("</math>")&&(c+=h.innerHTML.split("<mrow>").length-1);const d=h.getElementsByTagName("img");if(d){const p=o.replace(/<img[^>]*>/g,"").trim()==="";await Promise.all([...d].map(m=>new Promise(g=>{function y(){var k;if(m.style.display="flex",m.style.flexDirection="column",p){const w=((k=a.fontSize)==null?void 0:k.toString())??window.getComputedStyle(document.body).fontSize,A=parseInt(w,10)*5+"px";m.style.minWidth=A,m.style.maxWidth=A}else m.style.width="100%";g(m)}C(y,"setupImage"),setTimeout(()=>{m.complete&&y()}),m.addEventListener("error",y),m.addEventListener("load",y)})))}u=h.getBoundingClientRect(),f.attr("width",u.width),f.attr("height",u.height)}else{i.includes("font-weight: bolder")&&ie(l).selectAll("tspan").attr("font-weight",""),c=l.children.length;const h=l.children[0];(l.textContent===""||l.textContent.includes(">"))&&(h.textContent=o[0]+o.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),o[1]===" "&&(h.textContent=h.textContent[0]+" "+h.textContent.substring(1))),h.textContent==="undefined"&&(h.textContent=""),u=l.getBBox()}return n.attr("transform","translate(0,"+(-u.height/(2*c)+r)+")"),u.height}C(Ro,"addText");async function Kk(e,t){var j,P;const r=me(),{themeVariables:i}=r,{useGradient:n}=i,a=r.class.padding??12,s=a,o=t.useHtmlLabels??an(r.htmlLabels)??!0,l=t;l.annotations=l.annotations??[],l.members=l.members??[],l.methods=l.methods??[];const{shapeSvg:u,bbox:c}=await Xk(e,t,r,o,s),{labelStyles:h,nodeStyles:f}=Nt(t);t.labelStyle=h,t.cssStyles=l.styles||"";const d=((j=l.styles)==null?void 0:j.join(";"))||f||"";t.cssStyles||(t.cssStyles=d.replaceAll("!important","").split(";"));const p=l.members.length===0&&l.methods.length===0&&!((P=r.class)!=null&&P.hideEmptyMembersBox),m=Mt.svg(u),g=Lt(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");const y=Math.max(t.width??0,c.width);let k=Math.max(t.height??0,c.height);const w=(t.height??0)>c.height;l.members.length===0&&l.methods.length===0?k+=s:l.members.length>0&&l.methods.length===0&&(k+=s*2);const _=-y/2,A=-k/2;let E=p?a*2:l.members.length===0&&l.methods.length===0?-a:0;w&&(E=a*2);const N=m.rectangle(_-a,A-a-(p?a:l.members.length===0&&l.methods.length===0?-a/2:0),y+2*a,k+2*a+E,g),F=u.insert(()=>N,":first-child");F.attr("class","basic label-container outer-path");const Y=F.node().getBBox(),I=u.select(".annotation-group").node().getBBox().height-(p?a/2:0)||0,z=u.select(".label-group").node().getBBox().height-(p?a/2:0)||0,K=u.select(".members-group").node().getBBox().height-(p?a/2:0)||0,J=(I+z+A+a-(A-a-(p?a:l.members.length===0&&l.methods.length===0?-a/2:0)))/2;if(u.selectAll(".text").each(($,V,X)=>{var St,_t;const it=ie(X[V]),L=it.attr("transform");let lt=0;if(L){const zt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(L);zt&&(lt=parseFloat(zt[2]))}let Ct=lt+A+a-(p?a:l.members.length===0&&l.methods.length===0?-a/2:0);if(it.attr("class").includes("methods-group")){const Ft=Math.max(K,s/2);w?Ct=Math.max(J,I+z+Ft+A+s*2+a)+s*2:Ct=I+z+Ft+A+s*4+a}l.members.length===0&&l.methods.length===0&&((St=r.class)!=null&&St.hideEmptyMembersBox)&&(l.annotations.length>0?Ct=lt-s:Ct=lt),o||(Ct-=4);let O=_;(it.attr("class").includes("label-group")||it.attr("class").includes("annotation-group"))&&(O=-((_t=it.node())==null?void 0:_t.getBBox().width)/2||0,u.selectAll("text").each(function(Ft,zt,Zt){window.getComputedStyle(Zt[zt]).textAnchor==="middle"&&(O=0)})),it.attr("transform",`translate(${O}, ${Ct})`)}),l.members.length>0||l.methods.length>0||p){const $=I+z+A+a,V=m.line(Y.x,$,Y.x+Y.width,$+.001,g);u.insert(()=>V).attr("class",`divider${t.look==="neo"&&!n?" neo-line":""}`).attr("style",d)}if(p||l.members.length>0||l.methods.length>0){const $=I+z+K+A+s*2+a,V=m.line(Y.x,w?Math.max(J,$):$,Y.x+Y.width,(w?Math.max(J,$):$)+.001,g);u.insert(()=>V).attr("class",`divider${t.look==="neo"&&!n?" neo-line":""}`).attr("style",d)}if(l.look!=="handDrawn"&&u.selectAll("path").attr("style",d),F.select(":nth-child(2)").attr("style",d),u.selectAll(".divider").select("path").attr("style",d),t.labelStyle?u.selectAll("span").attr("style",t.labelStyle):u.selectAll("span").attr("style",d),!o){const $=RegExp(/color\s*:\s*([^;]*)/),V=$.exec(d);if(V){const X=V[0].replace("color","fill");u.selectAll("tspan").attr("style",X)}else if(h){const X=$.exec(h);if(X){const it=X[0].replace("color","fill");u.selectAll("tspan").attr("style",it)}}}return Ot(t,F),t.intersect=function($){return At.rect(t,$)},u}C(Kk,"classBox");async function Qk(e,t){var Y,I;const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const n=t,a=t,s=20,o=20,l="verifyMethod"in t,u=Wt(t),{themeVariables:c}=me(),{borderColorArray:h,requirementEdgeLabelBackground:f}=c,d=e.insert("g").attr("class",u).attr("id",t.domId??t.id);let p;l?p=await zi(d,`<<${n.type}>>`,0,t.labelStyle):p=await zi(d,"<<Element>>",0,t.labelStyle);let m=p;const g=await zi(d,n.name,m,t.labelStyle+"; font-weight: bold;");if(m+=g+o,l){const z=await zi(d,`${n.requirementId?`ID: ${n.requirementId}`:""}`,m,t.labelStyle);m+=z;const K=await zi(d,`${n.text?`Text: ${n.text}`:""}`,m,t.labelStyle);m+=K;const J=await zi(d,`${n.risk?`Risk: ${n.risk}`:""}`,m,t.labelStyle);m+=J,await zi(d,`${n.verifyMethod?`Verification: ${n.verifyMethod}`:""}`,m,t.labelStyle)}else{const z=await zi(d,`${a.type?`Type: ${a.type}`:""}`,m,t.labelStyle);m+=z,await zi(d,`${a.docRef?`Doc Ref: ${a.docRef}`:""}`,m,t.labelStyle)}const y=(((Y=d.node())==null?void 0:Y.getBBox().width)??200)+s,k=(((I=d.node())==null?void 0:I.getBBox().height)??200)+s,w=-y/2,_=-k/2,A=Mt.svg(d),E=Lt(t,{});t.look!=="handDrawn"&&(E.roughness=0,E.fillStyle="solid");const N=A.rectangle(w,_,y,k,E),F=d.insert(()=>N,":first-child");if(F.attr("class","basic label-container outer-path").attr("style",i),h!=null&&h.length){const z=t.colorIndex??0;d.attr("data-color-id",`color-${z%h.length}`)}if(d.selectAll(".label").each((z,K,J)=>{const j=ie(J[K]),P=j.attr("transform");let $=0,V=0;if(P){const lt=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(P);lt&&($=parseFloat(lt[1]),V=parseFloat(lt[2]))}const X=V-k/2;let it=w+s/2;(K===0||K===1)&&(it=$),j.attr("transform",`translate(${it}, ${X+s})`)}),m>p+g+o){const z=_+p+g+o;let K;if(t.look==="neo"){const P=[[w,z],[w+y,z],[w+y,z+.001],[w,z+.001]];K=A.polygon(P,E)}else K=A.line(w,z,w+y,z,E);d.insert(()=>K).attr("class","divider")}return Ot(t,F),t.intersect=function(z){return At.rect(t,z)},i&&t.look!=="handDrawn"&&(f||h!=null&&h.length)&&d.selectAll("path").attr("style",i),d}C(Qk,"requirementBox");async function zi(e,t,r,i=""){if(t==="")return 0;const n=e.insert("g").attr("class","label").attr("style",i),a=me(),s=a.htmlLabels??!0,o=await on(n,E1(Pa(t)),{width:wn(t,a)+50,classes:"markdown-node-label",useHtmlLabels:s,style:i},a);let l;if(s){const u=o.children[0],c=ie(o);l=u.getBoundingClientRect(),c.attr("width",l.width),c.attr("height",l.height)}else{const u=o.children[0];for(const c of u.children)i&&c.setAttribute("style",i);l=o.getBBox(),l.height+=6}return n.attr("transform",`translate(${-l.width/2},${-l.height/2+r})`),l.height}C(zi,"addText");var _R=C(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 Zk(e,t,{config:r}){var K,J;const{labelStyles:i,nodeStyles:n}=Nt(t);t.labelStyle=i||"";const a=10,s=t.width;t.width=(t.width??200)-10;const{shapeSvg:o,bbox:l,label:u}=await Yt(e,t,Wt(t)),c=t.padding||10;let h="",f;"ticket"in t&&t.ticket&&((K=r==null?void 0:r.kanban)!=null&&K.ticketBaseUrl)&&(h=(J=r==null?void 0:r.kanban)==null?void 0:J.ticketBaseUrl.replace("#TICKET#",t.ticket),f=o.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",h).attr("target","_blank"));const d={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1};let p,m;f?{label:p,bbox:m}=await A0(f,"ticket"in t&&t.ticket||"",d):{label:p,bbox:m}=await A0(o,"ticket"in t&&t.ticket||"",d);const{label:g,bbox:y}=await A0(o,"assigned"in t&&t.assigned||"",d);t.width=s;const k=10,w=(t==null?void 0:t.width)||0,_=Math.max(m.height,y.height)/2,A=Math.max(l.height+k*2,(t==null?void 0:t.height)||0)+_,E=-w/2,N=-A/2;u.attr("transform","translate("+(c-w/2)+", "+(-_-l.height/2)+")"),p.attr("transform","translate("+(c-w/2)+", "+(-_+l.height/2)+")"),g.attr("transform","translate("+(c+w/2-y.width-2*a)+", "+(-_+l.height/2)+")");let F;const{rx:Y,ry:I}=t,{cssStyles:z}=t;if(t.look==="handDrawn"){const j=Mt.svg(o),P=Lt(t,{}),$=Y||I?j.path(la(E,N,w,A,Y||0),P):j.rectangle(E,N,w,A,P);F=o.insert(()=>$,":first-child"),F.attr("class","basic label-container").attr("style",z||null)}else{F=o.insert("rect",":first-child"),F.attr("class","basic label-container __APA__").attr("style",n).attr("rx",Y??5).attr("ry",I??5).attr("x",E).attr("y",N).attr("width",w).attr("height",A);const j="priority"in t&&t.priority;if(j){const P=o.append("line"),$=E+2,V=N+Math.floor((Y??0)/2),X=N+A-Math.floor((Y??0)/2);P.attr("x1",$).attr("y1",V).attr("x2",$).attr("y2",X).attr("stroke-width","4").attr("stroke",_R(j))}}return Ot(t,F),t.height=A,t.intersect=function(j){return At.rect(t,j)},o}C(Zk,"kanbanItem");async function Jk(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s,label:o}=await Yt(e,t,Wt(t)),l=a.width+10*s,u=a.height+8*s,c=.15*l,{cssStyles:h}=t,f=a.width+20,d=a.height+20,p=Math.max(l,f),m=Math.max(u,d);o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`);let g;const y=`M0 0
|
|
510
|
+
a${c},${c} 1 0,0 ${p*.25},${-1*m*.1}
|
|
511
|
+
a${c},${c} 1 0,0 ${p*.25},0
|
|
512
|
+
a${c},${c} 1 0,0 ${p*.25},0
|
|
513
|
+
a${c},${c} 1 0,0 ${p*.25},${m*.1}
|
|
514
|
+
|
|
515
|
+
a${c},${c} 1 0,0 ${p*.15},${m*.33}
|
|
516
|
+
a${c*.8},${c*.8} 1 0,0 0,${m*.34}
|
|
517
|
+
a${c},${c} 1 0,0 ${-1*p*.15},${m*.33}
|
|
518
|
+
|
|
519
|
+
a${c},${c} 1 0,0 ${-1*p*.25},${m*.15}
|
|
520
|
+
a${c},${c} 1 0,0 ${-1*p*.25},0
|
|
521
|
+
a${c},${c} 1 0,0 ${-1*p*.25},0
|
|
522
|
+
a${c},${c} 1 0,0 ${-1*p*.25},${-1*m*.15}
|
|
523
|
+
|
|
524
|
+
a${c},${c} 1 0,0 ${-1*p*.1},${-1*m*.33}
|
|
525
|
+
a${c*.8},${c*.8} 1 0,0 0,${-1*m*.34}
|
|
526
|
+
a${c},${c} 1 0,0 ${p*.1},${-1*m*.33}
|
|
527
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const k=Mt.svg(n),w=Lt(t,{}),_=k.path(y,w);g=n.insert(()=>_,":first-child"),g.attr("class","basic label-container").attr("style",ir(h))}else g=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",y);return g.attr("transform",`translate(${-p/2}, ${-m/2})`),Ot(t,g),t.calcIntersect=function(k,w){return At.rect(k,w)},t.intersect=function(k){return ut.info("Bang intersect",t,k),At.rect(t,k)},n}C(Jk,"bang");async function tT(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s,label:o}=await Yt(e,t,Wt(t)),l=a.width+2*s,u=a.height+2*s,c=.15*l,h=.25*l,f=.35*l,d=.2*l,{cssStyles:p}=t;let m;const g=`M0 0
|
|
528
|
+
a${c},${c} 0 0,1 ${l*.25},${-1*l*.1}
|
|
529
|
+
a${f},${f} 1 0,1 ${l*.4},${-1*l*.1}
|
|
530
|
+
a${h},${h} 1 0,1 ${l*.35},${l*.2}
|
|
531
|
+
|
|
532
|
+
a${c},${c} 1 0,1 ${l*.15},${u*.35}
|
|
533
|
+
a${d},${d} 1 0,1 ${-1*l*.15},${u*.65}
|
|
534
|
+
|
|
535
|
+
a${h},${c} 1 0,1 ${-1*l*.25},${l*.15}
|
|
536
|
+
a${f},${f} 1 0,1 ${-1*l*.5},0
|
|
537
|
+
a${c},${c} 1 0,1 ${-1*l*.25},${-1*l*.15}
|
|
538
|
+
|
|
539
|
+
a${c},${c} 1 0,1 ${-1*l*.1},${-1*u*.35}
|
|
540
|
+
a${d},${d} 1 0,1 ${l*.1},${-1*u*.65}
|
|
541
|
+
H0 V0 Z`;if(t.look==="handDrawn"){const y=Mt.svg(n),k=Lt(t,{}),w=y.path(g,k);m=n.insert(()=>w,":first-child"),m.attr("class","basic label-container").attr("style",ir(p))}else m=n.insert("path",":first-child").attr("class","basic label-container").attr("style",i).attr("d",g);return o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),m.attr("transform",`translate(${-l/2}, ${-u/2})`),Ot(t,m),t.calcIntersect=function(y,k){return At.rect(y,k)},t.intersect=function(y){return ut.info("Cloud intersect",t,y),At.rect(t,y)},n}C(tT,"cloud");async function eT(e,t){const{labelStyles:r,nodeStyles:i}=Nt(t);t.labelStyle=r;const{shapeSvg:n,bbox:a,halfPadding:s,label:o}=await Yt(e,t,Wt(t)),l=a.width+8*s,u=a.height+2*s,c=5,h=t.look==="neo"?`
|
|
542
|
+
M${-l/2} ${u/2-c}
|
|
543
|
+
v${-u+2*c}
|
|
544
|
+
q0,-${c} ${c},-${c}
|
|
545
|
+
h${l-2*c}
|
|
546
|
+
q${c},0 ${c},${c}
|
|
547
|
+
v${u-c}
|
|
548
|
+
H${-l/2}
|
|
549
|
+
Z
|
|
550
|
+
`:`
|
|
551
|
+
M${-l/2} ${u/2-c}
|
|
552
|
+
v${-u+2*c}
|
|
553
|
+
q0,-${c} ${c},-${c}
|
|
554
|
+
h${l-2*c}
|
|
555
|
+
q${c},0 ${c},${c}
|
|
556
|
+
v${u-2*c}
|
|
557
|
+
q0,${c} ${-c},${c}
|
|
558
|
+
h${-(l-2*c)}
|
|
559
|
+
q${-c},0 ${-c},${-c}
|
|
560
|
+
Z
|
|
561
|
+
`;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",h);return n.append("line").attr("class","node-line-").attr("x1",-l/2).attr("y1",u/2).attr("x2",l/2).attr("y2",u/2),o.attr("transform",`translate(${-a.width/2}, ${-a.height/2})`),n.append(()=>o.node()),Ot(t,f),t.calcIntersect=function(d,p){return At.rect(d,p)},t.intersect=function(d){return At.rect(t,d)},n}C(eT,"defaultMindmapNode");async function rT(e,t){const r={padding:t.padding??0};return gp(e,t,r)}C(rT,"mindmapCircle");var AR=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:Nk},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:Lk},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:Fk},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Pk},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:rk},{semanticName:"Data Store",name:"Data Store",shortName:"datastore",description:"Data flow diagram data store",aliases:["data-store"],handler:ik},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:gp},{semanticName:"Bang",name:"Bang",shortName:"bang",description:"Bang",aliases:["bang"],handler:Jk},{semanticName:"Cloud",name:"Cloud",shortName:"cloud",description:"cloud",aliases:["cloud"],handler:tT},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:_k},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:ck},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:Ck},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:xk},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Uk},{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:bk},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:ak},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:Hk},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:GC},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:Ik},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Rk},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:Dk},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:lk},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:hk},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:ZC},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:JC},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:tk},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:kk},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Yk},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:uk},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:qk},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:Tk},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:ek},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:nk},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:jk},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Gk},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:sk},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:Wk},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:ok},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:Mk},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:Sk},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:vk},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:VC},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:QC},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:zk},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:$k},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Vk},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:Ak},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:wk}],BR=C(()=>{const t=[...Object.entries({state:Ok,choice:XC,note:Ek,rectWithTitle:Bk,labelRect:yk,iconSquare:mk,iconCircle:fk,icon:dk,iconRounded:pk,imageSquare:gk,anchor:jC,kanbanItem:Zk,mindmapCircle:rT,defaultMindmapNode:eT,classBox:Kk,erBox:bp,requirementBox:Qk}),...AR.flatMap(r=>[r.shortName,..."aliases"in r?r.aliases:[],..."internalAliases"in r?r.internalAliases:[]].map(n=>[n,r.handler]))];return Object.fromEntries(t)},"generateShapeMap"),iT=BR();function LR(e){return e in iT}C(LR,"isValidShape");var Th=new Map;async function nT(e,t,r){let i,n;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");const a=t.shape?iT[t.shape]:void 0;if(!a)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 a(i,t,r)}else n=await a(e,t,r),i=n;return i.attr("data-look",ir(t.look)),t.tooltip&&n.attr("title",t.tooltip),Th.set(t.id,i),t.haveCallback&&i.attr("class",i.attr("class")+" clickable"),i}C(nT,"insertNode");var zet=C((e,t)=>{Th.set(t.id,e)},"setNodeElem"),Het=C(()=>{Th.clear()},"clear"),qet=C(e=>{const t=Th.get(e.id);ut.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"),xo=C((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"),br={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},eb={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function Po(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=_e(e),t=_e(t);const[r,i]=[e.x,e.y],[n,a]=[t.x,t.y],s=n-r,o=a-i;return{angle:Math.atan(o/s),deltaX:s,deltaY:o}}C(Po,"calculateDeltaAndAngle");var _e=C(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,"pointTransformer"),IR=C(e=>({x:C(function(t,r,i){let n=0;const a=_e(i[0]).x<_e(i[i.length-1]).x?"left":"right";if(r===0&&Object.hasOwn(br,e.arrowTypeStart)){const{angle:d,deltaX:p}=Po(i[0],i[1]);n=br[e.arrowTypeStart]*Math.cos(d)*(p>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(br,e.arrowTypeEnd)){const{angle:d,deltaX:p}=Po(i[i.length-1],i[i.length-2]);n=br[e.arrowTypeEnd]*Math.cos(d)*(p>=0?1:-1)}const s=Math.abs(_e(t).x-_e(i[i.length-1]).x),o=Math.abs(_e(t).y-_e(i[i.length-1]).y),l=Math.abs(_e(t).x-_e(i[0]).x),u=Math.abs(_e(t).y-_e(i[0]).y),c=br[e.arrowTypeStart],h=br[e.arrowTypeEnd],f=1;if(s<h&&s>0&&o<h){let d=h+f-s;d*=a==="right"?-1:1,n-=d}if(l<c&&l>0&&u<c){let d=c+f-l;d*=a==="right"?-1:1,n+=d}return _e(t).x+n},"x"),y:C(function(t,r,i){let n=0;const a=_e(i[0]).y<_e(i[i.length-1]).y?"down":"up";if(r===0&&Object.hasOwn(br,e.arrowTypeStart)){const{angle:d,deltaY:p}=Po(i[0],i[1]);n=br[e.arrowTypeStart]*Math.abs(Math.sin(d))*(p>=0?1:-1)}else if(r===i.length-1&&Object.hasOwn(br,e.arrowTypeEnd)){const{angle:d,deltaY:p}=Po(i[i.length-1],i[i.length-2]);n=br[e.arrowTypeEnd]*Math.abs(Math.sin(d))*(p>=0?1:-1)}const s=Math.abs(_e(t).y-_e(i[i.length-1]).y),o=Math.abs(_e(t).x-_e(i[i.length-1]).x),l=Math.abs(_e(t).y-_e(i[0]).y),u=Math.abs(_e(t).x-_e(i[0]).x),c=br[e.arrowTypeStart],h=br[e.arrowTypeEnd],f=1;if(s<h&&s>0&&o<h){let d=h+f-s;d*=a==="up"?-1:1,n-=d}if(l<c&&l>0&&u<c){let d=c+f-l;d*=a==="up"?-1:1,n+=d}return _e(t).y+n},"y")}),"getLineFunctionsWithOffset"),MR=C((e,t,r,i,n,a=!1,s)=>{t.arrowTypeStart&&rb(e,"start",t.arrowTypeStart,r,i,n,a,s),t.arrowTypeEnd&&rb(e,"end",t.arrowTypeEnd,r,i,n,a,s)},"addEdgeMarkers"),NR={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}},FR=["cross","point","circle","lollipop","aggregation","extension","composition","dependency","barb"],rb=C((e,t,r,i,n,a,s=!1,o)=>{var p;const l=NR[r],u=l&&FR.includes(l.type);if(!l){ut.warn(`Unknown arrow type: ${r}`);return}const c=l.type,d=`${n}_${a}-${c}${t==="start"?"Start":"End"}${s&&u?"-margin":""}`;if(o&&o.trim()!==""){const m=o.replace(/[^\dA-Za-z]/g,"_"),g=`${d}_${m}`;if(!document.getElementById(g)){const y=document.getElementById(d);if(y){const k=y.cloneNode(!0);k.id=g,k.querySelectorAll("path, circle, line").forEach(_=>{_.setAttribute("stroke",o),l.fill&&_.setAttribute("fill",o)}),(p=y.parentNode)==null||p.appendChild(k)}}e.attr(`marker-${t}`,`url(${i}#${g})`)}else e.attr(`marker-${t}`,`url(${i}#${d})`)},"addEdgeMarker"),OR=C(e=>{var t,r;return typeof e=="string"?e:(r=(t=me())==null?void 0:t.flowchart)==null?void 0:r.curve},"resolveEdgeCurveType"),Mc=new Map,ur=new Map,Uet=C(()=>{Mc.clear(),ur.clear()},"clear"),Co=C(e=>e?typeof e=="string"?e:e.reduce((t,r)=>t+";"+r,""):"","getLabelStyles"),DR=C(async(e,t)=>{const r=me();let i=Dr(r);const{labelStyles:n}=Nt(t);t.labelStyle=n;const a=e.insert("g").attr("class","edgeLabel"),s=a.insert("g").attr("class","label").attr("data-id",t.id),o=t.labelType==="markdown",u=await on(e,t.label,{style:Co(t.labelStyle),useHtmlLabels:i,addSvgBackground:!0,isNode:!1,markdown:o,width:o?void 0:void 0},r);s.node().appendChild(u),ut.info("abc82",t,t.labelType);let c=u.getBBox(),h=c;if(i){const d=u.children[0],p=ie(u);c=d.getBoundingClientRect(),h=c,p.attr("width",c.width),p.attr("height",c.height)}else{const d=ie(u).select("text").node();d&&typeof d.getBBox=="function"&&(h=d.getBBox())}s.attr("transform",xo(h,i)),Mc.set(t.id,a),t.width=c.width,t.height=c.height;let f;if(t.startLabelLeft){const d=e.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner"),m=await Wn(p,t.startLabelLeft,Co(t.labelStyle)||"",!1,!1);f=m;let g=m.getBBox();if(i){const y=m.children[0],k=ie(m);g=y.getBoundingClientRect(),k.attr("width",g.width),k.attr("height",g.height)}p.attr("transform",xo(g,i)),ur.get(t.id)||ur.set(t.id,{}),ur.get(t.id).startLeft=d,$o(f,t.startLabelLeft)}if(t.startLabelRight){const d=e.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner"),m=await Wn(p,t.startLabelRight,Co(t.labelStyle)||"",!1,!1);f=m;let g=m.getBBox();if(i){const y=m.children[0],k=ie(m);g=y.getBoundingClientRect(),k.attr("width",g.width),k.attr("height",g.height)}p.attr("transform",xo(g,i)),ur.get(t.id)||ur.set(t.id,{}),ur.get(t.id).startRight=d,$o(f,t.startLabelRight)}if(t.endLabelLeft){const d=e.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner"),m=await Wn(d,t.endLabelLeft,Co(t.labelStyle)||"",!1,!1);f=m;let g=m.getBBox();if(i){const y=m.children[0],k=ie(m);g=y.getBoundingClientRect(),k.attr("width",g.width),k.attr("height",g.height)}p.attr("transform",xo(g,i)),ur.get(t.id)||ur.set(t.id,{}),ur.get(t.id).endLeft=d,$o(f,t.endLabelLeft)}if(t.endLabelRight){const d=e.insert("g").attr("class","edgeTerminals"),p=d.insert("g").attr("class","inner"),m=await Wn(d,t.endLabelRight,Co(t.labelStyle)||"",!1,!1);f=m;let g=m.getBBox();if(i){const y=m.children[0],k=ie(m);g=y.getBoundingClientRect(),k.attr("width",g.width),k.attr("height",g.height)}p.attr("transform",xo(g,i)),ur.get(t.id)||ur.set(t.id,{}),ur.get(t.id).endRight=d,$o(f,t.endLabelRight)}return u},"insertEdgeLabel");function $o(e,t){Dr(me())&&e&&(e.style.width=t.length*9+"px",e.style.height="12px")}C($o,"setTerminalWidth");var RR=C((e,t)=>{ut.debug("Moving label abc88 ",e.id,e.label,Mc.get(e.id),t);let r=t.updatedPath?t.updatedPath:t.originalPath;const i=me(),{subGraphTitleTotalMargin:n}=ip(i);if(e.label){const a=Mc.get(e.id);let s=e.x,o=e.y;if(r){const l=Ti.calcLabelPosition(r);ut.debug("Moving label "+e.label+" from (",s,",",o,") to (",l.x,",",l.y,") abc88"),t.updatedPath&&(s=l.x,o=l.y)}a.attr("transform",`translate(${s}, ${o+n/2})`)}if(e.startLabelLeft){const a=ur.get(e.id).startLeft;let s=e.x,o=e.y;if(r){const l=Ti.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(e.startLabelRight){const a=ur.get(e.id).startRight;let s=e.x,o=e.y;if(r){const l=Ti.calcTerminalLabelPosition(e.arrowTypeStart?10:0,"start_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(e.endLabelLeft){const a=ur.get(e.id).endLeft;let s=e.x,o=e.y;if(r){const l=Ti.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_left",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}if(e.endLabelRight){const a=ur.get(e.id).endRight;let s=e.x,o=e.y;if(r){const l=Ti.calcTerminalLabelPosition(e.arrowTypeEnd?10:0,"end_right",r);s=l.x,o=l.y}a.attr("transform",`translate(${s}, ${o})`)}},"positionEdgeLabel"),PR=C((e,t)=>{var s;if(!(e!=null&&e.isLabelEdge)||!((s=e==null?void 0:e.id)!=null&&s.endsWith("-to-label"))||!Array.isArray(t)||t.length!==2)return t;const[r,i]=t,n=Math.abs(i.x-r.x),a=Math.abs(i.y-r.y);return n<.001||a<.001?t:a>=n?[r,{x:r.x,y:i.y},i]:[r,{x:i.x,y:r.y},i]},"orthogonalizeToLabelClippedPoints"),$R=C((e,t)=>{const r=e.x,i=e.y,n=Math.abs(t.x-r),a=Math.abs(t.y-i),s=e.width/2,o=e.height/2;return n>=s||a>=o},"outsideNode"),zR=C((e,t,r)=>{ut.debug(`intersection calc abc89:
|
|
562
|
+
outsidePoint: ${JSON.stringify(t)}
|
|
563
|
+
insidePoint : ${JSON.stringify(r)}
|
|
564
|
+
node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);const i=e.x,n=e.y,a=Math.abs(i-r.x),s=e.width/2;let o=r.x<t.x?s-a:s+a;const l=e.height/2,u=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 h=r.y<t.y?t.y-l-n:n-l-t.y;o=c*h/u;const f={x:r.x<t.x?r.x+o:r.x-c+o,y:r.y<t.y?r.y+u-h:r.y-u+h};return o===0&&(f.x=t.x,f.y=t.y),c===0&&(f.x=t.x),u===0&&(f.y=t.y),ut.debug(`abc89 top/bottom calc, Q ${u}, q ${h}, R ${c}, r ${o}`,f),f}else{r.x<t.x?o=t.x-s-i:o=i-s-t.x;let h=u*o/c,f=r.x<t.x?r.x+c-o:r.x-c+o,d=r.y<t.y?r.y+h:r.y-h;return ut.debug(`sides calc abc89, Q ${u}, q ${h}, R ${c}, r ${o}`,{_x:f,_y:d}),o===0&&(f=t.x,d=t.y),c===0&&(f=t.x),u===0&&(d=t.y),{x:f,y:d}}},"intersection"),ib=C((e,t)=>{ut.warn("abc88 cutPathAtIntersect",e,t);let r=[],i=e[0],n=!1;return e.forEach(a=>{if(ut.info("abc88 checking point",a,t),!$R(t,a)&&!n){const s=zR(t,i,a);ut.debug("abc88 inside",a,i,s),ut.debug("abc88 intersection",s,t);let o=!1;r.forEach(l=>{o=o||l.x===s.x&&l.y===s.y}),r.some(l=>l.x===s.x&&l.y===s.y)?ut.warn("abc88 no intersect",s,r):r.push(s),n=!0}else ut.warn("abc88 outside",a,i),i=a,n||r.push(a)}),ut.debug("returning points",r),r},"cutPathAtIntersect");function aT(e){const t=[],r=[];for(let i=1;i<e.length-1;i++){const n=e[i-1],a=e[i],s=e[i+1];(n.x===a.x&&a.y===s.y&&Math.abs(a.x-s.x)>5&&Math.abs(a.y-n.y)>5||n.y===a.y&&a.x===s.x&&Math.abs(a.x-n.x)>5&&Math.abs(a.y-s.y)>5)&&(t.push(a),r.push(i))}return{cornerPoints:t,cornerPointPositions:r}}C(aT,"extractCornerPoints");var nb=C(function(e,t,r){const i=t.x-e.x,n=t.y-e.y,a=Math.sqrt(i*i+n*n),s=r/a;return{x:t.x-s*i,y:t.y-s*n}},"findAdjacentPoint"),HR=C(function(e){const{cornerPointPositions:t}=aT(e),r=[];for(let i=0;i<e.length;i++)if(t.includes(i)){const n=e[i-1],a=e[i+1],s=e[i],o=nb(n,s,5),l=nb(a,s,5),u=l.x-o.x,c=l.y-o.y;r.push(o);const h=Math.sqrt(2)*2;let f={x:s.x,y:s.y};if(Math.abs(a.x-n.x)>10&&Math.abs(a.y-n.y)>=10){ut.debug("Corner point fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));const d=5;s.x===o.x?f={x:u<0?o.x-d+h:o.x+d-h,y:c<0?o.y-h:o.y+h}:f={x:u<0?o.x-h:o.x+h,y:c<0?o.y-d+h:o.y+d-h}}else ut.debug("Corner point skipping fixing",Math.abs(a.x-n.x),Math.abs(a.y-n.y));r.push(f,l)}else r.push(e[i]);return r},"fixCorners"),qR=C((e,t,r)=>{const i=e-t-r,n=2,a=2,s=n+a,o=Math.floor(i/s),l=Array(o).fill(`${n} ${a}`).join(" ");return`0 ${t} ${l} ${r}`},"generateDashArray"),UR=C(function(e,t,r,i,n,a,s,o=!1){var X;if(!s)throw new Error(`insertEdge: missing diagramId for edge "${t.id}" — edge IDs require a diagram prefix for uniqueness`);const{handDrawnSeed:l,layout:u}=me();let c=t.points,h=!1;const f=n;var d=a;const p=[];for(const it in t.cssCompiledStyles)H6(it)||p.push(t.cssCompiledStyles[it]);if(u==="swimlane"){if(d.intersect&&f.intersect&&Array.isArray(c)&&c.length>=2)if(c.length===2)c=[f.intersect(c[0]),d.intersect(c[1])];else{const it=c.slice(1,-1),L=it[0],lt=it[it.length-1],Ct=.5,O=Math.abs(c[c.length-1].x-lt.x)<Ct&&Math.abs(c[c.length-1].y-lt.y)<Ct,St=f.intersect(L),_t=O?lt:d.intersect(lt),Ft=Math.abs(_t.x-lt.x)<Ct&&Math.abs(_t.y-lt.y)<Ct,Zt=Math.abs(St.x-L.x)<Ct&&Math.abs(St.y-L.y)<Ct?[]:[St],Vt=Ft?[]:[_t];c=[...Zt,...it,...Vt]}c=PR(t,c)}else d.intersect&&f.intersect&&!o&&(c=c.slice(1,t.points.length-1),c.unshift(f.intersect(c[0])),c.push(d.intersect(c[c.length-1])));const m=btoa(JSON.stringify(c));t.toCluster&&(ut.info("to cluster abc88",r.get(t.toCluster)),c=ib(t.points,r.get(t.toCluster).node),h=!0),t.fromCluster&&(ut.debug("from cluster abc88",r.get(t.fromCluster),JSON.stringify(c,null,2)),c=ib(c.reverse(),r.get(t.fromCluster).node).reverse(),h=!0);let g=c.filter(it=>!Number.isNaN(it.y));const y=OR(t.curve);y!=="rounded"&&(g=HR(g));let k=Vo;switch(y){case"linear":k=Vo;break;case"basis":k=Vd;break;case"cardinal":k=jx;break;case"bumpX":k=zx;break;case"bumpY":k=Hx;break;case"catmullRom":k=Vx;break;case"monotoneX":k=Jx;break;case"monotoneY":k=t5;break;case"natural":k=r5;break;case"step":k=i5;break;case"stepAfter":k=a5;break;case"stepBefore":k=n5;break;case"rounded":k=Vo;break;default:k=Vd}const{x:w,y:_}=IR(t),A=bN().x(w).y(_).curve(k);let E;switch(t.thickness){case"normal":E="edge-thickness-normal";break;case"thick":E="edge-thickness-thick";break;case"invisible":E="edge-thickness-invisible";break;default:E="edge-thickness-normal"}switch(t.pattern){case"solid":E+=" edge-pattern-solid";break;case"dotted":E+=" edge-pattern-dotted";break;case"dashed":E+=" edge-pattern-dashed";break;default:E+=" edge-pattern-solid"}let N,F=y==="rounded"?sT(oT(g,t),5):A(g);const Y=Array.isArray(t.style)?t.style:[t.style];let I=Y.find(it=>it==null?void 0:it.startsWith("stroke:")),z="";t.animate&&(z="edge-animation-fast"),t.animation&&(z="edge-animation-"+t.animation);let K=!1;if(t.look==="handDrawn"){const it=Mt.svg(e);Object.assign([],g);const L=it.path(F,{roughness:.3,seed:l});E+=" transition",N=ie(L).select("path").attr("id",`${s}-${t.id}`).attr("class"," "+E+(t.classes?" "+t.classes:"")+(z?" "+z:"")).attr("style",Y?Y.reduce((Ct,O)=>Ct+";"+O,""):"");let lt=N.attr("d");N.attr("d",lt),e.node().appendChild(N.node())}else{const it=p.join(";"),L=Y?Y.reduce((Ft,zt)=>Ft+zt+";",""):"",lt=(it?it+";"+L+";":L)+";"+(Y?Y.reduce((Ft,zt)=>Ft+";"+zt,""):"");N=e.append("path").attr("d",F).attr("id",`${s}-${t.id}`).attr("class"," "+E+(t.classes?" "+t.classes:"")+(z?" "+z:"")).attr("style",lt),I=(X=lt.match(/stroke:([^;]+)/))==null?void 0:X[1],K=t.animate===!0||!!t.animation||it.includes("animation");const Ct=N.node(),O=typeof Ct.getTotalLength=="function"?Ct.getTotalLength():0,St=eb[t.arrowTypeStart]||0,_t=eb[t.arrowTypeEnd]||0;if(t.look==="neo"&&!K){const zt=`stroke-dasharray: ${t.pattern==="dotted"||t.pattern==="dashed"?qR(O,St,_t):`0 ${St} ${O-St-_t} ${_t}`}; stroke-dashoffset: 0;`;N.attr("style",zt+N.attr("style"))}}N.attr("data-edge",!0),N.attr("data-et","edge"),N.attr("data-id",t.id),N.attr("data-points",m),N.attr("data-look",ir(t.look)),t.showPoints&&g.forEach(it=>{e.append("circle").style("stroke","red").style("fill","red").attr("r",1).attr("cx",it.x).attr("cy",it.y)});let J="";(me().flowchart.arrowMarkerAbsolute||me().state.arrowMarkerAbsolute)&&(J=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,J=J.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),ut.info("arrowTypeStart",t.arrowTypeStart),ut.info("arrowTypeEnd",t.arrowTypeEnd);const j=!K&&(t==null?void 0:t.look)==="neo";MR(N,t,J,s,i,j,I);const P=Math.floor(c.length/2),$=c[P];Ti.isLabelCoordinateInPath($,N.attr("d"))||(h=!0);let V={};return h&&(V.updatedPath=c),V.originalPath=t.points,V},"insertEdge");function sT(e,t){if(e.length<2)return"";let r="";const i=e.length,n=1e-5;for(let a=0;a<i;a++){const s=e[a],o=e[a-1],l=e[a+1];if(a===0)r+=`M${s.x},${s.y}`;else if(a===i-1)r+=`L${s.x},${s.y}`;else{const u=s.x-o.x,c=s.y-o.y,h=l.x-s.x,f=l.y-s.y,d=Math.hypot(u,c),p=Math.hypot(h,f);if(d<n||p<n){r+=`L${s.x},${s.y}`;continue}const m=u/d,g=c/d,y=h/p,k=f/p,w=m*y+g*k,_=Math.max(-1,Math.min(1,w)),A=Math.acos(_);if(A<n||Math.abs(Math.PI-A)<n){r+=`L${s.x},${s.y}`;continue}const E=Math.min(t/Math.sin(A/2),d/2,p/2),N=s.x-m*E,F=s.y-g*E,Y=s.x+y*E,I=s.y+k*E;r+=`L${N},${F}`,r+=`Q${s.x},${s.y} ${Y},${I}`}}return r}C(sT,"generateRoundedPath");function vf(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}}C(vf,"calculateDeltaAndAngle");function oT(e,t){const r=e.map(n=>({...n}));if(e.length>=2&&br[t.arrowTypeStart]){const n=br[t.arrowTypeStart],a=e[0],s=e[1],{angle:o}=vf(a,s),l=n*Math.cos(o),u=n*Math.sin(o);r[0].x=a.x+l,r[0].y=a.y+u}const i=e.length;if(i>=2&&br[t.arrowTypeEnd]){const n=br[t.arrowTypeEnd],a=e[i-1],s=e[i-2],{angle:o}=vf(s,a),l=n*Math.cos(o),u=n*Math.sin(o);r[i-1].x=a.x-l,r[i-1].y=a.y-u}return r}C(oT,"applyMarkerOffsetsToPoints");var WR=C((e,t,r,i)=>{t.forEach(n=>{fP[n](e,r,i)})},"insertMarkers"),jR=C((e,t,r)=>{ut.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"),YR=C((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"),VR=C((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"),GR=C((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"),XR=C((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"),KR=C((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"),QR=C((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"),ZR=C((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"),JR=C((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"),tP=C((e,t,r)=>{const i=Ne(),{themeVariables:n}=i,{transitionColor:a}=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",`${a}`)},"barbNeo"),eP=C((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"),rP=C((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"),iP=C((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"),nP=C((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"),aP=C((e,t,r)=>{const i=Ne(),{themeVariables:n}=i,{strokeWidth:a}=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",`${a}`),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",`${a}`)},"only_one_neo"),sP=C((e,t,r)=>{const i=Ne(),{themeVariables:n}=i,{strokeWidth:a,mainBkg:s}=n,o=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");o.append("circle").attr("fill",s??"white").attr("cx",21).attr("cy",9).attr("stroke-width",`${a}`).attr("r",6),o.append("path").attr("d","M9,0 L9,18").attr("stroke-width",`${a}`);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",`${a}`).attr("r",6),l.append("path").attr("d","M21,0 L21,18").attr("stroke-width",`${a}`)},"zero_or_one_neo"),oP=C((e,t,r)=>{const i=Ne(),{themeVariables:n}=i,{strokeWidth:a}=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",`${a}`),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",`${a}`)},"one_or_more_neo"),lP=C((e,t,r)=>{const i=Ne(),{themeVariables:n}=i,{strokeWidth:a,mainBkg:s}=n,o=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");o.append("circle").attr("fill",s??"white").attr("cx",45.5).attr("cy",18).attr("r",6).attr("stroke-width",`${a}`),o.append("path").attr("d","M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width",`${a}`);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",`${a}`),l.append("path").attr("d","M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width",`${a}`)},"zero_or_more_neo"),uP=C((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
|
|
565
|
+
L20,10
|
|
566
|
+
M20,10
|
|
567
|
+
L0,20`)},"requirement_arrow"),cP=C((e,t,r)=>{const i=Ne(),{themeVariables:n}=i,{strokeWidth:a}=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",`${a}`).attr("viewBox","0 0 25 20").append("path").attr("d",`M0,0
|
|
568
|
+
L20,10
|
|
569
|
+
M20,10
|
|
570
|
+
L0,20`).attr("stroke-linejoin","miter")},"requirement_arrow_neo"),hP=C((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"),dP=C((e,t,r)=>{const i=Ne(),{themeVariables:n}=i,{strokeWidth:a}=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",`${a}`)},"requirement_contains_neo"),fP={extension:jR,composition:YR,aggregation:VR,dependency:GR,lollipop:XR,point:KR,circle:QR,cross:ZR,barb:JR,barbNeo:tP,only_one:eP,zero_or_one:rP,one_or_more:iP,zero_or_more:nP,only_one_neo:aP,zero_or_one_neo:sP,one_or_more_neo:oP,zero_or_more_neo:lP,requirement_arrow:uP,requirement_contains:hP,requirement_arrow_neo:cP,requirement_contains_neo:dP},pP=WR,mP={common:Ml,getConfig:Ne,insertCluster:cR,insertEdge:UR,insertEdgeLabel:DR,insertMarkers:pP,insertNode:nT,interpolateToCurve:Q1,labelHelper:Yt,log:ut,positionEdgeLabel:RR},xl={},lT=C(e=>{for(const t of e)xl[t.name]=t},"registerLayoutLoaders"),gP=C(()=>{lT([{name:"dagre",loader:C(async()=>await ee(()=>import("./dagre-VKFMJZFB-CP1xk7Ox.js"),__vite__mapDeps([0,1,2,3,4,5,6])),"loader")},{name:"swimlane",loader:C(async()=>await ee(()=>import("./swimlanes-5IMT3BWC-CV2YWeYv.js"),__vite__mapDeps([7,5,6,1,2,3])),"loader")},{name:"cose-bilkent",loader:C(async()=>await ee(()=>import("./cose-bilkent-JH36ORCC-C9aVXb8E.js"),__vite__mapDeps([8,9,5,6])),"loader")}])},"registerDefaultLayoutLoaders");gP();var Wet=C(async(e,t,r)=>{if(!(e.layoutAlgorithm in xl))throw new Error(`Unknown layout algorithm: ${e.layoutAlgorithm}`);if(e.diagramId)for(const h of e.nodes){const f=h.domId||h.id;h.domId=`${e.diagramId}-${f}`}const i=xl[e.layoutAlgorithm],n=await i.loader(),{theme:a,themeVariables:s}=e.config,{useGradient:o,gradientStart:l,gradientStop:u}=s,c=t.attr("id");if(t.append("defs").append("filter").attr("id",`${c}-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",`${a!=null&&a.includes("dark")?"#FFFFFF":"#000000"}`),t.append("defs").append("filter").attr("id",`${c}-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",`${a!=null&&a.includes("dark")?"#FFFFFF":"#000000"}`),o){const h=t.append("linearGradient").attr("id",t.attr("id")+"-gradient").attr("gradientUnits","objectBoundingBox").attr("x1","0%").attr("y1","0%").attr("x2","100%").attr("y2","0%");h.append("svg:stop").attr("offset","0%").attr("stop-color",l).attr("stop-opacity",1),h.append("svg:stop").attr("offset","100%").attr("stop-color",u).attr("stop-opacity",1)}return n.render(e,t,mP,{algorithm:i.algorithm},r)},"render"),jet=C((e="",{fallback:t="dagre"}={})=>{if(e in xl)return e;if(t in xl)return ut.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"),yp="comm",uT="rule",cT="decl",bP="@media",yP="@import",xP="@supports",CP="@namespace",Sf="@keyframes",hT="@layer",kP="@scope",TP=Math.abs,Xo=String.fromCharCode;function dT(e){return e.trim()}function Ef(e,t,r){return e.replace(t,r)}function bs(e,t){return e.charCodeAt(t)|0}function Us(e,t,r){return e.slice(t,r)}function Wi(e){return e.length}function fT(e){return e.length}function gu(e,t){return t.push(e),e}var wh=1,Ws=1,pT=0,mi=0,qe=0,ro="";function xp(e,t,r,i,n,a,s,o){return{value:e,root:t,parent:r,type:i,props:n,children:a,line:wh,column:Ws,length:s,return:"",siblings:o}}function wP(){return qe}function vP(){return qe=mi>0?bs(ro,--mi):0,Ws--,qe===10&&(Ws=1,wh--),qe}function vi(){return qe=mi<pT?bs(ro,mi++):0,Ws++,qe===10&&(Ws=1,wh++),qe}function jn(){return bs(ro,mi)}function Hu(){return mi}function vh(e,t){return Us(ro,e,t)}function Cl(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 SP(e){return wh=Ws=1,pT=Wi(ro=e),mi=0,[]}function EP(e){return ro="",e}function L0(e){return dT(vh(mi-1,_f(e===91?e+2:e===40?e+1:e)))}function _P(e){for(;(qe=jn())&&qe<33;)vi();return Cl(e)>2||Cl(qe)>3?"":" "}function AP(e,t){for(;--t&&vi()&&!(qe<48||qe>102||qe>57&&qe<65||qe>70&&qe<97););return vh(e,Hu()+(t<6&&jn()==32&&vi()==32))}function _f(e){for(;vi();)switch(qe){case e:return mi;case 34:case 39:e!==34&&e!==39&&_f(qe);break;case 40:e===41&&_f(e);break;case 92:vi();break}return mi}function BP(e,t){for(;vi()&&e+qe!==57;)if(e+qe===84&&jn()===47)break;return"/*"+vh(t,mi-1)+"*"+Xo(e===47?e:vi())}function LP(e){for(;!Cl(jn());)vi();return vh(e,mi)}function IP(e){return EP(qu("",null,null,null,[""],e=SP(e),0,[0],e))}function qu(e,t,r,i,n,a,s,o,l){for(var u=0,c=0,h=s,f=0,d=0,p=0,m=1,g=1,y=1,k=0,w=0,_="",A=n,E=a,N=i,F=_;g;)switch(p=w,w=vi()){case 40:p!=108&&bs(F,h-1)==58?(k++,F+="("):F+=L0(w);break;case 41:k--,F+=")";break;case 34:case 39:case 91:F+=L0(w);break;case 9:case 10:case 13:case 32:if(k>0){F+=Xo(w);break}F+=_P(p);break;case 92:F+=AP(Hu()-1,7);continue;case 47:switch(jn()){case 42:case 47:gu(MP(BP(vi(),Hu()),t,r,l),l),(Cl(p||1)==5||Cl(jn()||1)==5)&&Wi(F)&&Us(F,-1,void 0)!==" "&&(F+=" ");break;default:F+="/"}break;case 123*m:o[u++]=Wi(F)*y;case 125*m:case 59:case 0:if(k>0&&w){F+=Xo(w);break}switch(w){case 0:case 125:g=0;case 59+c:y==-1&&(F=Ef(F,/\f/g,"")),d>0&&(Wi(F)-h||m===0)&&gu(d>32?sb(F+";",i,r,h-1,l):sb(Ef(F," ","")+";",i,r,h-2,l),l);break;case 59:F+=";";default:if(gu(N=ab(F,t,r,u,c,n,o,_,A=[],E=[],h,a),a),w===123)if(c===0)qu(F,t,N,N,A,a,h,o,E);else{switch(f){case 99:if(bs(F,3)===110)break;case 108:if(bs(F,2)===97)break;default:c=0;case 100:case 109:case 115:}c?qu(e,N,N,i&&gu(ab(e,N,N,0,0,n,o,_,n,A=[],h,E),E),n,E,h,o,i?A:E):qu(F,N,N,N,[""],E,0,o,E)}}u=c=d=0,m=y=1,_=F="",h=s;break;case 58:h=1+Wi(F),d=p;default:if(m<1){if(w==123)--m;else if(w==125&&m++==0&&vP()==125)continue}switch(F+=Xo(w),w*m){case 38:y=c>0?1:(F+="\f",-1);break;case 44:if(k>0)break;o[u++]=(Wi(F)-1)*y,y=1;break;case 64:jn()===45&&(F+=L0(vi())),f=jn(),c=h=Wi(_=F+=LP(Hu())),w++;break;case 45:p===45&&Wi(F)==2&&(m=0)}}return a}function ab(e,t,r,i,n,a,s,o,l,u,c,h){for(var f=n-1,d=n===0?a:[""],p=fT(d),m=0,g=0,y=0;m<i;++m)for(var k=0,w=Us(e,f+1,f=TP(g=s[m])),_=e;k<p;++k)(_=dT(g>0?d[k]+" "+w:Ef(w,/&\f/g,d[k])))&&(l[y++]=_);return xp(e,t,r,n===0?uT:o,l,u,c,h)}function MP(e,t,r,i){return xp(e,t,r,yp,Xo(wP()),Us(e,2,-2),0,i)}function sb(e,t,r,i,n){return xp(e,t,r,cT,Us(e,0,i),Us(e,i+1,-1),i,n)}function Af(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function NP(e,t,r,i){switch(e.type){case hT:if(e.children.length)break;case yP:case CP:case cT:return e.return=e.return||e.value;case yp:return"";case Sf:return e.return=e.value+"{"+Af(e.children,i)+"}";case uT:if(!Wi(e.value=e.props.join(",")))return""}return Wi(r=Af(e.children,i))?e.return=e.value+"{"+r+"}":""}function FP(e){var t=fT(e);return function(r,i,n,a){for(var s="",o=0;o<t;o++)s+=e[o](r,i,n,a)||"";return s}}var mT="c4",OP=C(e=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(e),"detector"),DP=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./c4Diagram-LMCZKHZV-B8FCUurl.js");return{diagram:t}},__vite__mapDeps([10,11,5,6]));return{id:mT,diagram:e}},"loader"),RP={id:mT,detector:OP,loader:DP},PP=RP,gT="flowchart",$P=C((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"),zP=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./flowDiagram-23GEKE2U-DZhUBne-.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([12,13,14,15,11,16]));return{id:gT,diagram:e}},"loader"),HP={id:gT,detector:$P,loader:zP},qP=HP,bT="flowchart-v2",UP=C((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"),WP=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./flowDiagram-23GEKE2U-DZhUBne-.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([12,13,14,15,11,16]));return{id:bT,diagram:e}},"loader"),jP={id:bT,detector:UP,loader:WP},YP=jP,yT="swimlane",VP=C(e=>/^\s*swimlane-beta\b/.test(e),"detector"),GP=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./swimlanesDiagram-G3AALYLV-BFAdJHEB.js");return{diagram:t}},__vite__mapDeps([17,12,13,14,15,11,16,5,6]));return{id:yT,diagram:e}},"loader"),XP={id:yT,detector:VP,loader:GP},KP=XP,xT="er",QP=C(e=>/^\s*erDiagram/.test(e),"detector"),ZP=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./erDiagram-Q63AITRT-CxaumIzW.js");return{diagram:t}},__vite__mapDeps([18,14,15,16,5,6]));return{id:xT,diagram:e}},"loader"),JP={id:xT,detector:QP,loader:ZP},t$=JP,CT="gitGraph",e$=C(e=>/^\s*gitGraph/.test(e),"detector"),r$=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./gitGraphDiagram-IHSO6WYX-CAlnqFfW.js");return{diagram:t}},__vite__mapDeps([19,20,21,22,5,6]));return{id:CT,diagram:e}},"loader"),i$={id:CT,detector:e$,loader:r$},n$=i$,kT="gantt",a$=C(e=>/^\s*gantt/.test(e),"detector"),s$=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./ganttDiagram-NO4QXBWP-B20dY8SF.js");return{diagram:t}},__vite__mapDeps([23,5,6,24,25,26]));return{id:kT,diagram:e}},"loader"),o$={id:kT,detector:a$,loader:s$},l$=o$,TT="info",u$=C(e=>/^\s*info/.test(e),"detector"),c$=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./infoDiagram-FWYZ7A6U-PaEyeSke.js");return{diagram:t}},__vite__mapDeps([27,22,5,6]));return{id:TT,diagram:e}},"loader"),h$={id:TT,detector:u$,loader:c$},wT="pie",d$=C(e=>/^\s*pie/.test(e),"detector"),f$=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./pieDiagram-ENE6RG2P-DOP7FAKG.js");return{diagram:t}},__vite__mapDeps([28,21,22,5,6,29,30,25]));return{id:wT,diagram:e}},"loader"),p$={id:wT,detector:d$,loader:f$},vT="quadrantChart",m$=C(e=>/^\s*quadrantChart/.test(e),"detector"),g$=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./quadrantDiagram-ABIIQ3AL-Cqqu5uu-.js");return{diagram:t}},__vite__mapDeps([31,24,25,26,5,6]));return{id:vT,diagram:e}},"loader"),b$={id:vT,detector:m$,loader:g$},y$=b$,ST="xychart",x$=C(e=>/^\s*xychart(-beta)?/.test(e),"detector"),C$=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./xychartDiagram-FW5EYKEG-CyFiAunt.js");return{diagram:t}},__vite__mapDeps([32,25,30,24,26,5,6]));return{id:ST,diagram:e}},"loader"),k$={id:ST,detector:x$,loader:C$},T$=k$,ET="requirement",w$=C(e=>/^\s*requirement(Diagram)?/.test(e),"detector"),v$=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./requirementDiagram-TGXJPOKE-BHVwG79A.js");return{diagram:t}},__vite__mapDeps([33,14,15,5,6]));return{id:ET,diagram:e}},"loader"),S$={id:ET,detector:w$,loader:v$},E$=S$,_T="sequence",_$=C(e=>/^\s*sequenceDiagram/.test(e),"detector"),A$=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./sequenceDiagram-DBY2YBRQ-DChtyqq5.js");return{diagram:t}},__vite__mapDeps([34,20,11,5,6]));return{id:_T,diagram:e}},"loader"),B$={id:_T,detector:_$,loader:A$},L$=B$,AT="class",I$=C((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"),M$=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./classDiagram-OUVF2IWQ-CBtXSdwW.js");return{diagram:t}},__vite__mapDeps([35,36,13,14,15,11,5,6]));return{id:AT,diagram:e}},"loader"),N$={id:AT,detector:I$,loader:M$},F$=N$,BT="classDiagram",O$=C((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"),D$=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./classDiagram-v2-EOCWNBFH-CBtXSdwW.js");return{diagram:t}},__vite__mapDeps([37,36,13,14,15,11,5,6]));return{id:BT,diagram:e}},"loader"),R$={id:BT,detector:O$,loader:D$},P$=R$,LT="state",$$=C((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"),z$=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./stateDiagram-2N3HPSRC-CaFYkZZ2.js");return{diagram:t}},__vite__mapDeps([38,39,14,15,11,2,4,3,5,6]));return{id:LT,diagram:e}},"loader"),H$={id:LT,detector:$$,loader:z$},q$=H$,IT="stateDiagram",U$=C((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"),W$=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./stateDiagram-v2-6OUMAXLB-CCvEZFYI.js");return{diagram:t}},__vite__mapDeps([40,39,14,15,11,5,6]));return{id:IT,diagram:e}},"loader"),j$={id:IT,detector:U$,loader:W$},Y$=j$,MT="journey",V$=C(e=>/^\s*journey/.test(e),"detector"),G$=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./journeyDiagram-5HDEW3XC-BUEf1NEq.js");return{diagram:t}},__vite__mapDeps([41,13,11,29,5,6]));return{id:MT,diagram:e}},"loader"),X$={id:MT,detector:V$,loader:G$},K$=X$,Q$=C((e,t,r)=>{ut.debug(`rendering svg for syntax error
|
|
571
|
+
`);const i=EN(t),n=i.append("g");i.attr("viewBox","0 0 2412 512"),ux(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"),NT={draw:Q$},Z$=NT,J$={db:{},renderer:NT,parser:{parse:C(()=>{},"parse")}},tz=J$,FT="flowchart-elk",ez=C((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"),rz=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./flowDiagram-23GEKE2U-DZhUBne-.js").then(r=>r.f);return{diagram:t}},__vite__mapDeps([12,13,14,15,11,16]));return{id:FT,diagram:e}},"loader"),iz={id:FT,detector:ez,loader:rz},nz=iz,OT="timeline",az=C(e=>/^\s*timeline/.test(e),"detector"),sz=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./timeline-definition-FHXFAJF6-Cq32UWLH.js");return{diagram:t}},__vite__mapDeps([42,29,5,6]));return{id:OT,diagram:e}},"loader"),oz={id:OT,detector:az,loader:sz},lz=oz,DT="mindmap",uz=C(e=>/^\s*mindmap/.test(e),"detector"),cz=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./mindmap-definition-LN4V7U3C-B8TkylOR.js");return{diagram:t}},__vite__mapDeps([43,14,15,5,6]));return{id:DT,diagram:e}},"loader"),hz={id:DT,detector:uz,loader:cz},dz=hz,RT="kanban",fz=C(e=>/^\s*kanban/.test(e),"detector"),pz=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./kanban-definition-HUTT4EX6-CiTCwnJ7.js");return{diagram:t}},__vite__mapDeps([44,13,5,6]));return{id:RT,diagram:e}},"loader"),mz={id:RT,detector:fz,loader:pz},gz=mz,PT="sankey",bz=C(e=>/^\s*sankey(-beta)?/.test(e),"detector"),yz=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./sankeyDiagram-HTMAVEWB-ghjBFqfs.js");return{diagram:t}},__vite__mapDeps([45,30,25,5,6]));return{id:PT,diagram:e}},"loader"),xz={id:PT,detector:bz,loader:yz},Cz=xz,$T="packet",kz=C(e=>/^\s*packet(-beta)?/.test(e),"detector"),Tz=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./diagram-NH7WQ7WH-Wh_P26Dr.js");return{diagram:t}},__vite__mapDeps([46,21,22,5,6]));return{id:$T,diagram:e}},"loader"),wz={id:$T,detector:kz,loader:Tz},zT="radar",vz=C(e=>/^\s*radar-beta/.test(e),"detector"),Sz=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./diagram-WEI45ONY-D8smty9F.js");return{diagram:t}},__vite__mapDeps([47,21,22,5,6]));return{id:zT,diagram:e}},"loader"),Ez={id:zT,detector:vz,loader:Sz},HT="block",_z=C(e=>/^\s*block(-beta)?/.test(e),"detector"),Az=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./blockDiagram-677ZJIJ3-DJRwOGMa.js");return{diagram:t}},__vite__mapDeps([48,13,2,16,5,6]));return{id:HT,diagram:e}},"loader"),Bz={id:HT,detector:_z,loader:Az},Lz=Bz,qT="treeView",Iz=C(e=>/^\s*treeView-beta/.test(e),"detector"),Mz=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./diagram-OA4YK3LP-BMMaO78f.js");return{diagram:t}},__vite__mapDeps([49,20,21,22,5,6]));return{id:qT,diagram:e}},"loader"),Nz={id:qT,detector:Iz,loader:Mz},Fz=Nz,UT="architecture",Oz=C(e=>/^\s*architecture/.test(e),"detector"),Dz=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./architectureDiagram-ZJ3FMSHR-B5FrqoRB.js");return{diagram:t}},__vite__mapDeps([50,21,22,5,6,9]));return{id:UT,diagram:e}},"loader"),Rz={id:UT,detector:Oz,loader:Dz},Pz=Rz,WT="eventmodeling",$z=C(e=>/^\s*eventmodeling/.test(e),"detector"),zz=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./diagram-FQU43EPY-D_yRnH1b.js");return{diagram:t}},__vite__mapDeps([51,21,22,5,6]));return{id:WT,diagram:e}},"loader"),Hz={id:WT,detector:$z,loader:zz},qz=Hz,jT="ishikawa",Uz=C(e=>/^\s*ishikawa(-beta)?\b/i.test(e),"detector"),Wz=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./ishikawaDiagram-FXEZZL3T-BwsgPXGC.js");return{diagram:t}},__vite__mapDeps([52,5,6]));return{id:jT,diagram:e}},"loader"),jz={id:jT,detector:Uz,loader:Wz},YT="venn",Yz=C(e=>/^\s*venn-beta/.test(e),"detector"),Vz=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./vennDiagram-L72KCM5P-BgBoqPth.js");return{diagram:t}},__vite__mapDeps([53,5,6]));return{id:YT,diagram:e}},"loader"),Gz={id:YT,detector:Yz,loader:Vz},Xz=Gz,VT="treemap",Kz=C(e=>/^\s*treemap/.test(e),"detector"),Qz=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./diagram-G47NLZAW-DpTmLmbm.js");return{diagram:t}},__vite__mapDeps([54,21,15,22,5,6,26,30,25]));return{id:VT,diagram:e}},"loader"),Zz={id:VT,detector:Kz,loader:Qz},GT="wardley",Jz=C(e=>/^\s*wardley-beta/i.test(e),"detector"),tH=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./wardleyDiagram-EHGQE667-VsC2Gfpu.js");return{diagram:t}},__vite__mapDeps([55,21,22,5,6]));return{id:GT,diagram:e}},"loader"),eH={id:GT,detector:Jz,loader:tH},rH=eH,XT="cynefin",iH=C(e=>/^\s*cynefin-beta(?:[\s:]|$)/.test(e),"detector"),nH=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./cynefinDiagram-TSTJHNR4-DwY43f3-.js");return{diagram:t}},__vite__mapDeps([56,21,22,5,6]));return{id:XT,diagram:e}},"loader"),aH={id:XT,detector:iH,loader:nH},KT="railroad",sH=C(e=>/^\s*railroad-beta/i.test(e),"detector"),oH=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./railroadDiagram-RFXS5EU6-1bk56BMW.js");return{diagram:t}},__vite__mapDeps([57,58,21,22,5,6]));return{id:KT,diagram:e}},"loader"),lH={id:KT,detector:sH,loader:oH},QT="railroadEbnf",uH=C(e=>/^\s*railroad-ebnf-beta/i.test(e),"detector"),cH=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./ebnfDiagram-CCIWWBDH-BqVsmEYh.js");return{diagram:t}},__vite__mapDeps([59,58,21,22,5,6]));return{id:QT,diagram:e}},"loader"),hH={id:QT,detector:uH,loader:cH},ZT="railroadAbnf",dH=C(e=>/^\s*railroad-abnf-beta/i.test(e),"detector"),fH=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./abnfDiagram-VRR7QNED-8c99_3I5.js");return{diagram:t}},__vite__mapDeps([60,58,21,22,5,6]));return{id:ZT,diagram:e}},"loader"),pH={id:ZT,detector:dH,loader:fH},JT="railroadPeg",mH=C(e=>/^\s*railroad-peg-beta/i.test(e),"detector"),gH=C(async()=>{const{diagram:e}=await ee(async()=>{const{diagram:t}=await import("./pegDiagram-2B236MQR-Bnge_jzz.js");return{diagram:t}},__vite__mapDeps([61,58,21,22,5,6]));return{id:JT,diagram:e}},"loader"),bH={id:JT,detector:mH,loader:gH},ob=!1,Sh=C(()=>{ob||(ob=!0,oc("error",tz,e=>e.toLowerCase().trim()==="error"),oc("---",{db:{clear:C(()=>{},"clear")},styles:{},renderer:{draw:C(()=>{},"draw")},parser:{parse:C(()=>{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:C(()=>null,"init")},e=>e.toLowerCase().trimStart().startsWith("---")),Nd(nz,dz,Pz),Nd(PP,gz,P$,F$,t$,l$,h$,p$,E$,L$,KP,YP,qP,lz,n$,Y$,q$,K$,y$,Cz,wz,T$,Lz,qz,Fz,Ez,jz,Zz,lH,hH,pH,bH,Xz,rH,aH))},"addDiagrams"),yH=C(async()=>{ut.debug("Loading registered diagrams");const t=(await Promise.allSettled(Object.entries(Oa).map(async([r,{detector:i,loader:n}])=>{if(n)try{Rd(r)}catch{try{const{diagram:a,id:s}=await n();oc(s,a,i)}catch(a){throw ut.error(`Failed to load external diagram with key ${r}. Removing from detectors.`),delete Oa[r],a}}}))).filter(r=>r.status==="rejected");if(t.length>0){ut.error(`Failed to load ${t.length} external diagrams`);for(const r of t)ut.error(r);throw new Error(`Failed to load ${t.length} external diagrams`)}},"loadRegisteredDiagrams"),xH="graphics-document document";function t8(e,t){e.attr("role",xH),t!==""&&e.attr("aria-roledescription",t)}C(t8,"setA11yDiagramInfo");function e8(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)}}}C(e8,"addSVGa11yTitleDescription");var Ia,Bf=(Ia=class{constructor(t,r,i,n,a){this.type=t,this.text=r,this.db=i,this.parser=n,this.renderer=a}static async fromText(t,r={}){var u,c;const i=Ne(),n=k1(t,i);t=MO(t)+`
|
|
572
|
+
`;try{Rd(n)}catch{const h=CB(n);if(!h)throw new ix(`Diagram ${n} not found.`);const{id:f,diagram:d}=await h();oc(f,d)}const{db:a,parser:s,renderer:o,init:l}=Rd(n);return s.parser&&(s.parser.yy=a),(u=a.clear)==null||u.call(a),l==null||l(i),r.title&&((c=a.setDiagramTitle)==null||c.call(a,r.title)),await s.parse(t),new Ia(n,t,a,s,o)}async render(t,r){await this.renderer.draw(this.text,t,r,this)}getParser(){return this.parser}getType(){return this.type}},C(Ia,"Diagram"),Ia),lb=[],CH=C(()=>{lb.forEach(e=>{e()}),lb=[]},"attachFunctions"),kH=C(e=>e.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function r8(e){const t=e.match(rx);if(!t)return{text:e,metadata:{}};const r=t[1],i=r?t[2].split(`
|
|
573
|
+
`).map(s=>s.startsWith(r)?s.slice(r.length):s).join(`
|
|
574
|
+
`):t[2];let n=NF(i,{schema:MF})??{};n=typeof n=="object"&&!Array.isArray(n)?n:{};const a={};return n.displayMode&&(a.displayMode=n.displayMode.toString()),n.title&&(a.title=n.title.toString()),n.config&&(a.config=n.config),{text:e.slice(t[0].length),metadata:a}}C(r8,"extractFrontMatter");var TH=C(e=>e.replace(/\r\n?/g,`
|
|
575
|
+
`).replace(/<(\w+)([^>]*)>/g,(t,r,i)=>"<"+r+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),wH=C(e=>{const{text:t,metadata:r}=r8(e),{displayMode:i,title:n,config:a={}}=r;return i&&(a.gantt||(a.gantt={}),a.gantt.displayMode=i),{title:n,config:a,text:t}},"processFrontmatter"),vH=C(e=>{const t=Ti.detectInit(e)??{},r=Ti.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:xO(e),directive:t}},"processDirectives");function Cp(e){const t=TH(e),r=wH(t),i=vH(r.text),n=rp(r.config,i.directive);return e=kH(i.text),{code:e,title:r.title,config:n}}C(Cp,"preprocessDiagram");function i8(e){const t=new TextEncoder().encode(e),r=Array.from(t,i=>String.fromCodePoint(i)).join("");return btoa(r)}C(i8,"toBase64");var SH=5e4,EH="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",_H="sandbox",AH="loose",BH="http://www.w3.org/2000/svg",LH="http://www.w3.org/1999/xlink",IH="http://www.w3.org/1999/xhtml",MH="100%",NH="100%",FH="border:0;margin:0;",OH="margin:0",DH="allow-top-navigation-by-user-activation allow-popups",RH='The "iframe" tag is not supported by your browser.',PH=["foreignobject"],$H=["dominant-baseline"];function kp(e){const t=Cp(e);return ac(),bB(t.config??{}),t}C(kp,"processAndSetConfigs");async function n8(e,t){Sh();try{const{code:r,config:i}=kp(e);return{diagramType:(await s8(r)).type,config:i}}catch(r){if(t!=null&&t.suppressErrors)return!1;throw r}}C(n8,"parse");var ub=C((e,t,r=[])=>{const i=K3(`{ ${r.join(" !important; ")} !important; }`);return`.${e} ${t} ${i}`},"cssImportantStyles"),zH=C((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 o=Dr(e)?["> *","span"]:["rect","polygon","ellipse","circle","path"];t.forEach(l=>{T2(l.styles)||o.forEach(u=>{r.insertRule(ub(l.id,u,l.styles),r.cssRules.length)}),T2(l.textStyles)||r.insertRule(ub(l.id,"tspan",((l==null?void 0:l.textStyles)||[]).map(u=>u.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=Dd(n)+`
|
|
576
|
+
`}else i+=`${e.themeCSS}
|
|
577
|
+
`;return i+Dd(r)},"createCssStyles"),HH=C((e,t)=>Af(IP(`${e}{${t}}`),FP([C(function(i,n,a,s){if(i.type==="rule"&&Array.isArray(i.props)){if(i.parent&&i.parent.type===Sf)return;i.props=i.props.map(o=>o.startsWith(e)?o:`${e} ${o}`)}else i.type.startsWith("@")&&([...[bP,xP,hT,kP,"@container","@starting-style"],Sf].includes(i.type)||(ut.warn(`Removing unsupported at-rule ${i.type} from CSS`),i.type=yp))},"addNamespace"),NP])),"compileCSS"),qH=C((e,t,r,i)=>{const n=zH(e,r),a=PB(t,n,{...e.themeVariables,theme:e.theme,look:e.look},i);return HH(i,a)},"createUserStyles"),UH=C((e="",t,r)=>{let i=e;return!r&&!t&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Pa(i),i=i.replace(/<br>/g,"<br/>"),i},"cleanUpSvgCode"),WH=C((e="",t)=>{var n,a;const r=(a=(n=t==null?void 0:t.viewBox)==null?void 0:n.baseVal)!=null&&a.height?t.viewBox.baseVal.height+"px":NH,i=i8(`<body style="${OH}">${e}</body>`);return`<iframe style="width:${MH};height:${r};${FH}" src="data:text/html;charset=UTF-8;base64,${i}" sandbox="${DH}">
|
|
578
|
+
${RH}
|
|
579
|
+
</iframe>`},"putIntoIFrame"),cb=C((e,t,r,i,n)=>{const a=e.append("div");a.attr("id",r),i&&a.attr("style",i);const s=a.append("svg").attr("id",t).attr("width","100%").attr("xmlns",BH);return n&&s.attr("xmlns:xlink",n),s.append("g"),e},"appendDivSvgG");function Lf(e,t){return e.append("iframe").attr("id",t).attr("style","width: 100%; height: 100%;").attr("sandbox","")}C(Lf,"sandboxedIframe");var jH=C((e,t,r,i)=>{var n,a,s;(n=e.getElementById(t))==null||n.remove(),(a=e.getElementById(r))==null||a.remove(),(s=e.getElementById(i))==null||s.remove()},"removeExistingElements"),YH=C(async function(e,t,r){var K,J,j,P,$,V;Sh();const i=kp(t);t=i.code;const n=Ne();ut.debug(n),t.length>((n==null?void 0:n.maxTextSize)??SH)&&(t=EH);const a=`#${e}`,s="i"+e,o="#"+s,l="d"+e,u="#"+l,c=C(()=>{const it=ie(f?o:u).node();it&&"remove"in it&&it.remove()},"removeTempElements");let h=ie(document.body);const f=n.securityLevel===_H,d=n.securityLevel===AH,p=n.fontFamily;if(r!==void 0){if(r&&(r.innerHTML=""),f){const X=Lf(ie(r),s);h=ie(X.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=ie(r);cb(h,e,l,`font-family: ${p}`,LH)}else{if(jH(document,e,l,s),f){const X=Lf(ie(document.body),s);h=ie(X.nodes()[0].contentDocument.body),h.node().style.margin="0"}else h=ie("body");cb(h,e,l)}let m,g;try{m=await Bf.fromText(t,{title:i.title})}catch(X){if(n.suppressErrorRendering)throw c(),X;m=await Bf.fromText("error"),g=X}const y=h.select(u).node(),k=m.type,w=y.firstChild,_=w.firstChild,A=(J=(K=m.renderer).getClasses)==null?void 0:J.call(K,t,m),E=qH(n,k,A,a),N=document.createElement("style");N.innerHTML=E,w.insertBefore(N,_);try{await m.renderer.draw(t,e,"11.16.0",m)}catch(X){throw n.suppressErrorRendering?c():Z$.draw(t,e,"11.16.0"),X}const F=h.select(`${u} svg`),Y=(P=(j=m.db).getAccTitle)==null?void 0:P.call(j),I=(V=($=m.db).getAccDescription)==null?void 0:V.call($);o8(k,F,Y,I),h.select(`[id="${e}"]`).selectAll("foreignobject > *").attr("xmlns",IH);let z=h.select(u).node().innerHTML;if(ut.debug("config.arrowMarkerAbsolute",n.arrowMarkerAbsolute),z=UH(z,f,an(n.arrowMarkerAbsolute)),f){const X=h.select(u+" svg").node();z=WH(z,X)}else d||(z=Rs.sanitize(z,{ADD_TAGS:PH,ADD_ATTR:$H,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(CH(),g)throw g;return c(),{diagramType:k,svg:z,bindFunctions:m.db.bindFunctions}},"render");function a8(e={}){var i;const t=Xe({},e);t!=null&&t.fontFamily&&!((i=t.themeVariables)!=null&&i.fontFamily)&&(t.themeVariables||(t.themeVariables={}),t.themeVariables.fontFamily=t.fontFamily),mB(t),t!=null&&t.theme&&t.theme in xn?t.themeVariables=xn[t.theme].getThemeVariables(t.themeVariables):t&&(t.themeVariables=xn.default.getThemeVariables(t.themeVariables));const r=typeof t=="object"?pB(t):Q3();C1(r.logLevel),Sh()}C(a8,"initialize");var s8=C((e,t={})=>{const{code:r}=Cp(e);return Bf.fromText(r,t)},"getDiagramFromText");function o8(e,t,r,i){t8(t,e),e8(t,r,i,t.attr("id"))}C(o8,"addA11yInfo");var za=Object.freeze({render:YH,parse:n8,getDiagramFromText:s8,initialize:a8,getConfig:Ne,setConfig:Z3,getSiteConfig:Q3,updateSiteConfig:gB,reset:C(()=>{ac()},"reset"),globalReset:C(()=>{ac(Ps)},"globalReset"),defaultConfig:Ps});C1(Ne().logLevel);ac(Ne());var VH=C((e,t,r)=>{ut.warn(e),ep(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"),l8=C(async function(e={querySelector:".mermaid"}){try{await GH(e)}catch(t){if(ep(t)&&ut.error(t.str),Zr.parseError&&Zr.parseError(t),!e.suppressErrors)throw ut.error("Use the suppressErrors option to suppress these errors"),t}},"run"),GH=C(async function({postRenderCallback:e,querySelector:t,nodes:r}={querySelector:".mermaid"}){const i=za.getConfig();ut.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");ut.debug(`Found ${n.length} diagrams`),(i==null?void 0:i.startOnLoad)!==void 0&&(ut.debug("Start On Load: "+(i==null?void 0:i.startOnLoad)),za.updateSiteConfig({startOnLoad:i==null?void 0:i.startOnLoad}));const a=new Ti.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed);let s;const o=[];for(const l of Array.from(n)){if(ut.info("Rendering diagram: "+l.id),l.getAttribute("data-processed"))continue;l.setAttribute("data-processed","true");const u=`mermaid-${a.next()}`;s=l.innerHTML,s=yC(Ti.entityDecode(s)).trim().replace(/<br\s*\/?>/gi,"<br/>");const c=Ti.detectInit(s);c&&ut.debug("Detected early reinit: ",c);try{const{svg:h,bindFunctions:f}=await d8(u,s,l);l.innerHTML=h,e&&await e(u),f&&f(l)}catch(h){VH(h,o,Zr.parseError)}}if(o.length>0)throw o[0]},"runThrowsErrors"),u8=C(function(e){za.initialize(e)},"initialize"),XH=C(async function(e,t,r){ut.warn("mermaid.init is deprecated. Please use run instead."),e&&u8(e);const i={postRenderCallback:r,querySelector:".mermaid"};typeof t=="string"?i.querySelector=t:t&&(t instanceof HTMLElement?i.nodes=[t]:i.nodes=t),await l8(i)},"init"),KH=C(async(e,{lazyLoad:t=!0}={})=>{Sh(),Nd(...e),t===!1&&await yH()},"registerExternalDiagrams"),c8=C(function(){if(Zr.startOnLoad){const{startOnLoad:e}=za.getConfig();e&&Zr.run().catch(t=>ut.error("Mermaid failed to initialize",t))}},"contentLoaded");typeof document<"u"&&window.addEventListener("load",c8,!1);var QH=C(function(e){Zr.parseError=e},"setParseErrorHandler"),Nc=[],I0=!1,h8=C(async()=>{if(!I0){for(I0=!0;Nc.length>0;){const e=Nc.shift();if(e)try{await e()}catch(t){ut.error("Error executing queue",t)}}I0=!1}},"executeQueue"),ZH=C(async(e,t)=>new Promise((r,i)=>{const n=C(()=>new Promise((a,s)=>{za.parse(e,t).then(o=>{a(o),r(o)},o=>{var l;ut.error("Error parsing",o),(l=Zr.parseError)==null||l.call(Zr,o),s(o),i(o)})}),"performCall");Nc.push(n),h8().catch(i)}),"parse"),d8=C((e,t,r)=>new Promise((i,n)=>{const a=C(()=>new Promise((s,o)=>{za.render(e,t,r).then(l=>{s(l),i(l)},l=>{var u;ut.error("Error parsing",l),(u=Zr.parseError)==null||u.call(Zr,l),o(l),n(l)})}),"performCall");Nc.push(a),h8().catch(n)}),"render"),JH=C(()=>Object.keys(Oa).map(e=>({id:e})),"getRegisteredDiagramsMetadata"),Zr={startOnLoad:!0,mermaidAPI:za,parse:ZH,render:d8,init:XH,run:l8,registerExternalDiagrams:KH,registerLayoutLoaders:lT,initialize:u8,parseError:void 0,contentLoaded:c8,setParseErrorHandler:QH,detectType:k1,registerIconPacks:JO,getRegisteredDiagramsMetadata:JH},M0=Zr;/*! Check if previously processed *//*!
|
|
580
|
+
* Wait for document loaded before starting the execution
|
|
581
|
+
*/var hb={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0};function tq(e={}){let t=!1,r={...hb,...e.config},i={initialize(n){r={...hb,...e.config,...n},M0.initialize(r),t=!0},async render(n,a){return t||(M0.initialize(r),t=!0),await M0.render(n,a)}};return{name:"mermaid",type:"diagram",language:"mermaid",getMermaid(n){return n&&i.initialize(n),i}}}var eq=tq();function rq(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function f8(e,t,r){const n=El((r||{}).ignore||[]),a=iq(t);let s=-1;for(;++s<a.length;)Yc(e,"text",o);function o(u,c){let h=-1,f;for(;++h<c.length;){const d=c[h],p=f?f.children:void 0;if(n(d,p?p.indexOf(d):void 0,f))return;f=d}if(f)return l(u,c)}function l(u,c){const h=c[c.length-1],f=a[s][0],d=a[s][1];let p=0;const g=h.children.indexOf(u);let y=!1,k=[];f.lastIndex=0;let w=f.exec(u.value);for(;w;){const _=w.index,A={index:w.index,input:w.input,stack:[...c,u]};let E=d(...w,A);if(typeof E=="string"&&(E=E.length>0?{type:"text",value:E}:void 0),E===!1?f.lastIndex=_+1:(p!==_&&k.push({type:"text",value:u.value.slice(p,_)}),Array.isArray(E)?k.push(...E):E&&k.push(E),p=_+w[0].length,y=!0),!f.global)break;w=f.exec(u.value)}return y?(p<u.value.length&&k.push({type:"text",value:u.value.slice(p)}),h.children.splice(g,1,...k)):k=[u],g+k.length}}function iq(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<r.length;){const n=r[i];t.push([nq(n[0]),aq(n[1])])}return t}function nq(e){return typeof e=="string"?new RegExp(rq(e),"g"):e}function aq(e){return typeof e=="function"?e:function(){return e}}function sq(e){f8(e,[/\r?\n|\r/g,oq])}function oq(){return{type:"break"}}function lq(){return function(e){sq(e)}}const js={indicator:"indicator",textOnly:"text-only",remove:"remove"};function uq({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:r=[],allowDataImages:i=!1,allowedProtocols:n=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500",linkBlockPolicy:o=js.indicator,imageBlockPolicy:l=js.indicator}){const u=t.length&&!t.every(h=>h==="*"),c=r.length&&!r.every(h=>h==="*");if(!e&&(u||c))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return h=>{const f=mq(e,t,r,i,n,a,s,o,l);p8(h),Ei(h,f)}}function db(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function cq(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const hq=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),dq=new Set(["javascript:","data:","file:","vbscript:"]);function fb(e,t,r,i=!1,n=!1,a=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!n)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return n&&i&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const c=e.substring(5);if(c&&c.length>0&&c!=="invalid")return e}}catch{return null}return null}const s=db(e,r);if(!s||dq.has(s.protocol)||!(hq.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const l=cq(e);return s&&t.some(u=>{const c=db(u,r);return!c||c.origin!==s.origin?!1:s.href.startsWith(c.href)})?l?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:l?s.pathname+s.search+s.hash:s.href:null}function p8(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)p8(t)}}const N0=Symbol("node-seen");function fq(e,t,r){return t===js.remove?{type:"remove"}:t===js.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:r},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function pq(e,t,r){if(t===js.remove)return{type:"remove"};if(t===js.textOnly){const i=String(e.properties.alt||"");return i?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:i}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:r},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}const mq=(e,t,r,i,n,a,s,o,l)=>{const u=(c,h,f)=>{if(c.type!=="element"||c[N0])return Bo;if(c.tagName==="a"){const d=fb(c.properties.href,t,e,!1,!1,n);if(d===null){if(c[N0]=!0,Ei(c,u),f&&typeof h=="number"){const p=fq(c,o,s);if(p.type==="remove")return f.children.splice(h,1),[wa,h];f.children[h]=p.element}return wa}else return c.properties.href=d,c.properties.target="_blank",c.properties.rel="noopener noreferrer",Bo}if(c.tagName==="img"){const d=fb(c.properties.src,r,e,i,!0,n);if(d===null){if(c[N0]=!0,Ei(c,u),f&&typeof h=="number"){const p=pq(c,l,a);if(p.type==="remove")return f.children.splice(h,1),[wa,h];f.children[h]=p.element}return wa}else return c.properties.src=d,Bo}return Bo};return u},m8=-1,Eh=0,Ko=1,Fc=2,Tp=3,wp=4,vp=5,Sp=6,g8=7,b8=8,gq=typeof self=="object"?self:globalThis,pb=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new gq[e](t)},bq=(e,t)=>{const r=(n,a)=>(e.set(a,n),n),i=n=>{if(e.has(n))return e.get(n);const[a,s]=t[n];switch(a){case Eh:case m8:return r(s,n);case Ko:{const o=r([],n);for(const l of s)o.push(i(l));return o}case Fc:{const o=r({},n);for(const[l,u]of s)o[i(l)]=i(u);return o}case Tp:return r(new Date(s),n);case wp:{const{source:o,flags:l}=s;return r(new RegExp(o,l),n)}case vp:{const o=r(new Map,n);for(const[l,u]of s)o.set(i(l),i(u));return o}case Sp:{const o=r(new Set,n);for(const l of s)o.add(i(l));return o}case g8:{const{name:o,message:l}=s;return r(pb(o,l),n)}case b8:return r(BigInt(s),n);case"BigInt":return r(Object(BigInt(s)),n);case"ArrayBuffer":return r(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return r(new DataView(o),s)}}return r(pb(a,s),n)};return i},mb=e=>bq(new Map,e)(0),xa="",{toString:yq}={},{keys:xq}=Object,ko=e=>{const t=typeof e;if(t!=="object"||!e)return[Eh,t];const r=yq.call(e).slice(8,-1);switch(r){case"Array":return[Ko,xa];case"Object":return[Fc,xa];case"Date":return[Tp,xa];case"RegExp":return[wp,xa];case"Map":return[vp,xa];case"Set":return[Sp,xa];case"DataView":return[Ko,r]}return r.includes("Array")?[Ko,r]:r.includes("Error")?[g8,r]:[Fc,r]},bu=([e,t])=>e===Eh&&(t==="function"||t==="symbol"),Cq=(e,t,r,i)=>{const n=(s,o)=>{const l=i.push(s)-1;return r.set(o,l),l},a=s=>{if(r.has(s))return r.get(s);let[o,l]=ko(s);switch(o){case Eh:{let c=s;switch(l){case"bigint":o=b8,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return n([m8],s)}return n([o,c],s)}case Ko:{if(l){let f=s;return l==="DataView"?f=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(f=new Uint8Array(s)),n([l,[...f]],s)}const c=[],h=n([o,c],s);for(const f of s)c.push(a(f));return h}case Fc:{if(l)switch(l){case"BigInt":return n([l,s.toString()],s);case"Boolean":case"Number":case"String":return n([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],h=n([o,c],s);for(const f of xq(s))(e||!bu(ko(s[f])))&&c.push([a(f),a(s[f])]);return h}case Tp:return n([o,isNaN(s.getTime())?xa:s.toISOString()],s);case wp:{const{source:c,flags:h}=s;return n([o,{source:c,flags:h}],s)}case vp:{const c=[],h=n([o,c],s);for(const[f,d]of s)(e||!(bu(ko(f))||bu(ko(d))))&&c.push([a(f),a(d)]);return h}case Sp:{const c=[],h=n([o,c],s);for(const f of s)(e||!bu(ko(f)))&&c.push(a(f));return h}}const{message:u}=s;return n([o,{name:l,message:u}],s)};return a},gb=(e,{json:t,lossy:r}={})=>{const i=[];return Cq(!(t||r),!!t,new Map,i)(e),i},Ha=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?mb(gb(e,t)):structuredClone(e):(e,t)=>mb(gb(e,t));function kq(e){const t=String(e),r=[];return{toOffset:n,toPoint:i};function i(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=r[s];if(o===void 0){const l=bb(t,r[s-1]);o=l===-1?t.length+1:l+1,r[s]=o}if(o>a)return{line:s+1,column:a-(s>0?r[s-1]:0)+1,offset:a};s++}}}function n(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;r.length<a.line;){const o=r[r.length-1],l=bb(t,o),u=l===-1?t.length+1:l+1;if(o===u)break;r.push(u)}const s=(a.line>1?r[a.line-2]:0)+a.column-1;if(s<r[a.line-1])return s}}}function bb(e,t){const r=e.indexOf("\r",t),i=e.indexOf(`
|
|
582
|
+
`,t);return i===-1?r:r===-1||r+1===i?i:r<i?r:i}const y8={}.hasOwnProperty,Tq=Object.prototype;function wq(e,t){const r=t||{};return Ep({file:r.file||void 0,location:!1,schema:r.space==="svg"?sa:Al,verbose:r.verbose||!1},e)}function Ep(e,t){let r;switch(t.nodeName){case"#comment":{const i=t;return r={type:"comment",value:i.data},Uu(e,i,r),r}case"#document":case"#document-fragment":{const i=t,n="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":!1;if(r={type:"root",children:x8(e,t.childNodes),data:{quirksMode:n}},e.file&&e.location){const a=String(e.file),s=kq(a),o=s.toPoint(0),l=s.toPoint(a.length);r.position={start:o,end:l}}return r}case"#documentType":{const i=t;return r={type:"doctype"},Uu(e,i,r),r}case"#text":{const i=t;return r={type:"text",value:i.value},Uu(e,i,r),r}default:return r=vq(e,t),r}}function x8(e,t){let r=-1;const i=[];for(;++r<t.length;){const n=Ep(e,t[r]);i.push(n)}return i}function vq(e,t){const r=e.schema;e.schema=t.namespaceURI===Vi.svg?sa:Al;let i=-1;const n={};for(;++i<t.attrs.length;){const o=t.attrs[i],l=(o.prefix?o.prefix+":":"")+o.name;y8.call(Tq,l)||(n[l]=o.value)}const s=(e.schema.space==="svg"?B4:A4)(t.tagName,n,x8(e,t.childNodes));if(Uu(e,t,s),s.tagName==="template"){const o=t,l=o.sourceCodeLocation,u=l&&l.startTag&&fs(l.startTag),c=l&&l.endTag&&fs(l.endTag),h=Ep(e,o.content);u&&c&&e.file&&(h.position={start:u.end,end:c.start}),s.content=h}return e.schema=r,s}function Uu(e,t,r){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=Sq(e,r,t.sourceCodeLocation);i&&(e.location=!0,r.position=i)}}function Sq(e,t,r){const i=fs(r);if(t.type==="element"){const n=t.children[t.children.length-1];if(i&&!r.endTag&&n&&n.position&&n.position.end&&(i.end=Object.assign({},n.position.end)),e.verbose){const a={};let s;if(r.attrs)for(s in r.attrs)y8.call(r.attrs,s)&&(a[Vc(e.schema,s).property]=fs(r.attrs[s]));r.startTag;const o=fs(r.startTag),l=r.endTag?fs(r.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=a,t.data={position:u}}}return i}function fs(e){const t=yb({line:e.startLine,column:e.startCol,offset:e.startOffset}),r=yb({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||r?{start:t,end:r}:void 0}function yb(e){return e.line&&e.column?e:void 0}const xb={}.hasOwnProperty;function C8(e,t){const r=t||{};function i(n,...a){let s=i.invalid;const o=i.handlers;if(n&&xb.call(n,e)){const l=String(n[e]);s=xb.call(o,l)?o[l]:i.unknown}if(s)return s.call(this,n,...a)}return i.handlers=r.handlers||{},i.invalid=r.invalid,i.unknown=r.unknown,i}const Eq={},_q={}.hasOwnProperty,k8=C8("type",{handlers:{root:Bq,element:Fq,text:Mq,comment:Nq,doctype:Iq}});function Aq(e,t){const i=(t||Eq).space;return k8(e,i==="svg"?sa:Al)}function Bq(e,t){const r={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return r.childNodes=_p(e.children,r,t),io(e,r),r}function Lq(e,t){const r={nodeName:"#document-fragment",childNodes:[]};return r.childNodes=_p(e.children,r,t),io(e,r),r}function Iq(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return io(e,t),t}function Mq(e){const t={nodeName:"#text",value:e.value,parentNode:null};return io(e,t),t}function Nq(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return io(e,t),t}function Fq(e,t){const r=t;let i=r;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=sa);const n=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&_q.call(e.properties,a)){const l=Oq(i,a,e.properties[a]);l&&n.push(l)}}const s=i.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:n,namespaceURI:Vi[s],childNodes:[],parentNode:null};return o.childNodes=_p(e.children,o,i),io(e,o),e.tagName==="template"&&e.content&&(o.content=Lq(e.content,i)),o}function Oq(e,t,r){const i=Vc(e,t);if(r===!1||r===null||r===void 0||typeof r=="number"&&Number.isNaN(r)||!r&&i.boolean)return;Array.isArray(r)&&(r=i.commaSeparated?S4(r):E4(r));const n={name:i.attribute,value:r===!0?"":String(r)};if(i.space&&i.space!=="html"&&i.space!=="svg"){const a=n.name.indexOf(":");a<0?n.prefix="":(n.name=n.name.slice(a+1),n.prefix=i.attribute.slice(0,a)),n.namespace=Vi[i.space]}return n}function _p(e,t,r){let i=-1;const n=[];if(e)for(;++i<e.length;){const a=k8(e[i],r);a.parentNode=t,n.push(a)}return n}function io(e,t){const r=e.position;r&&r.start&&r.end&&(r.start.offset,r.end.offset,t.sourceCodeLocation={startLine:r.start.line,startCol:r.start.column,startOffset:r.start.offset,endLine:r.end.line,endCol:r.end.column,endOffset:r.end.offset})}const Dq=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Rq=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ee="�";var M;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(M||(M={}));const Hr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function T8(e){return e>=55296&&e<=57343}function Pq(e){return e>=56320&&e<=57343}function $q(e,t){return(e-55296)*1024+9216+t}function w8(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function v8(e){return e>=64976&&e<=65007||Rq.has(e)}var st;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(st||(st={}));const zq=65536;class Hq{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=zq,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,r){const{line:i,col:n,offset:a}=this,s=n+r,o=a+r;return{code:t,startLine:i,endLine:i,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const r=this.html.charCodeAt(this.pos+1);if(Pq(r))return this.pos++,this._addGap(),$q(t,r)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,M.EOF;return this._err(st.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,r){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=r}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,r){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(r)return this.html.startsWith(t,this.pos);for(let i=0;i<t.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==t.charCodeAt(i))return!1;return!0}peek(t){const r=this.pos+t;if(r>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,M.EOF;const i=this.html.charCodeAt(r);return i===M.CARRIAGE_RETURN?M.LINE_FEED:i}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,M.EOF;let t=this.html.charCodeAt(this.pos);return t===M.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,M.LINE_FEED):t===M.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,T8(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===M.LINE_FEED||t===M.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){w8(t)?this._err(st.controlCharacterInInputStream):v8(t)&&this._err(st.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var se;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(se||(se={}));function S8(e,t){for(let r=e.attrs.length-1;r>=0;r--)if(e.attrs[r].name===t)return e.attrs[r].value;return null}const qq=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Uq=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Wq(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Uq.get(e))!==null&&t!==void 0?t:e}var rr;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(rr||(rr={}));const jq=32;var Yn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Yn||(Yn={}));function If(e){return e>=rr.ZERO&&e<=rr.NINE}function Yq(e){return e>=rr.UPPER_A&&e<=rr.UPPER_F||e>=rr.LOWER_A&&e<=rr.LOWER_F}function Vq(e){return e>=rr.UPPER_A&&e<=rr.UPPER_Z||e>=rr.LOWER_A&&e<=rr.LOWER_Z||If(e)}function Gq(e){return e===rr.EQUALS||Vq(e)}var tr;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(tr||(tr={}));var bn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(bn||(bn={}));class Xq{constructor(t,r,i){this.decodeTree=t,this.emitCodePoint=r,this.errors=i,this.state=tr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=bn.Strict}startEntity(t){this.decodeMode=t,this.state=tr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case tr.EntityStart:return t.charCodeAt(r)===rr.NUM?(this.state=tr.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=tr.NamedEntity,this.stateNamedEntity(t,r));case tr.NumericStart:return this.stateNumericStart(t,r);case tr.NumericDecimal:return this.stateNumericDecimal(t,r);case tr.NumericHex:return this.stateNumericHex(t,r);case tr.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|jq)===rr.LOWER_X?(this.state=tr.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=tr.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,i,n){if(r!==i){const a=i-r;this.result=this.result*Math.pow(n,a)+Number.parseInt(t.substr(r,a),n),this.consumed+=a}}stateNumericHex(t,r){const i=r;for(;r<t.length;){const n=t.charCodeAt(r);if(If(n)||Yq(n))r+=1;else return this.addToNumericResult(t,i,r,16),this.emitNumericEntity(n,3)}return this.addToNumericResult(t,i,r,16),-1}stateNumericDecimal(t,r){const i=r;for(;r<t.length;){const n=t.charCodeAt(r);if(If(n))r+=1;else return this.addToNumericResult(t,i,r,10),this.emitNumericEntity(n,2)}return this.addToNumericResult(t,i,r,10),-1}emitNumericEntity(t,r){var i;if(this.consumed<=r)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===rr.SEMI)this.consumed+=1;else if(this.decodeMode===bn.Strict)return 0;return this.emitCodePoint(Wq(this.result),this.consumed),this.errors&&(t!==rr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,r){const{decodeTree:i}=this;let n=i[this.treeIndex],a=(n&Yn.VALUE_LENGTH)>>14;for(;r<t.length;r++,this.excess++){const s=t.charCodeAt(r);if(this.treeIndex=Kq(i,n,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===bn.Attribute&&(a===0||Gq(s))?0:this.emitNotTerminatedNamedEntity();if(n=i[this.treeIndex],a=(n&Yn.VALUE_LENGTH)>>14,a!==0){if(s===rr.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==bn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:i}=this,n=(i[r]&Yn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,n,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,i){const{decodeTree:n}=this;return this.emitCodePoint(r===1?n[t]&~Yn.VALUE_LENGTH:n[t+1],i),r===3&&this.emitCodePoint(n[t+2],i),i}end(){var t;switch(this.state){case tr.NamedEntity:return this.result!==0&&(this.decodeMode!==bn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case tr.NumericDecimal:return this.emitNumericEntity(0,2);case tr.NumericHex:return this.emitNumericEntity(0,3);case tr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case tr.EntityStart:return 0}}}function Kq(e,t,r,i){const n=(t&Yn.BRANCH_LENGTH)>>7,a=t&Yn.JUMP_TABLE;if(n===0)return a!==0&&i===a?r:-1;if(a){const l=i-a;return l<0||l>=n?-1:e[r+l]-1}let s=r,o=s+n-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(u<i)s=l+1;else if(u>i)o=l-1;else return e[l+n]}return-1}var ht;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(ht||(ht={}));var La;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(La||(La={}));var hi;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(hi||(hi={}));var tt;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(tt||(tt={}));var b;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(b||(b={}));const Qq=new Map([[tt.A,b.A],[tt.ADDRESS,b.ADDRESS],[tt.ANNOTATION_XML,b.ANNOTATION_XML],[tt.APPLET,b.APPLET],[tt.AREA,b.AREA],[tt.ARTICLE,b.ARTICLE],[tt.ASIDE,b.ASIDE],[tt.B,b.B],[tt.BASE,b.BASE],[tt.BASEFONT,b.BASEFONT],[tt.BGSOUND,b.BGSOUND],[tt.BIG,b.BIG],[tt.BLOCKQUOTE,b.BLOCKQUOTE],[tt.BODY,b.BODY],[tt.BR,b.BR],[tt.BUTTON,b.BUTTON],[tt.CAPTION,b.CAPTION],[tt.CENTER,b.CENTER],[tt.CODE,b.CODE],[tt.COL,b.COL],[tt.COLGROUP,b.COLGROUP],[tt.DD,b.DD],[tt.DESC,b.DESC],[tt.DETAILS,b.DETAILS],[tt.DIALOG,b.DIALOG],[tt.DIR,b.DIR],[tt.DIV,b.DIV],[tt.DL,b.DL],[tt.DT,b.DT],[tt.EM,b.EM],[tt.EMBED,b.EMBED],[tt.FIELDSET,b.FIELDSET],[tt.FIGCAPTION,b.FIGCAPTION],[tt.FIGURE,b.FIGURE],[tt.FONT,b.FONT],[tt.FOOTER,b.FOOTER],[tt.FOREIGN_OBJECT,b.FOREIGN_OBJECT],[tt.FORM,b.FORM],[tt.FRAME,b.FRAME],[tt.FRAMESET,b.FRAMESET],[tt.H1,b.H1],[tt.H2,b.H2],[tt.H3,b.H3],[tt.H4,b.H4],[tt.H5,b.H5],[tt.H6,b.H6],[tt.HEAD,b.HEAD],[tt.HEADER,b.HEADER],[tt.HGROUP,b.HGROUP],[tt.HR,b.HR],[tt.HTML,b.HTML],[tt.I,b.I],[tt.IMG,b.IMG],[tt.IMAGE,b.IMAGE],[tt.INPUT,b.INPUT],[tt.IFRAME,b.IFRAME],[tt.KEYGEN,b.KEYGEN],[tt.LABEL,b.LABEL],[tt.LI,b.LI],[tt.LINK,b.LINK],[tt.LISTING,b.LISTING],[tt.MAIN,b.MAIN],[tt.MALIGNMARK,b.MALIGNMARK],[tt.MARQUEE,b.MARQUEE],[tt.MATH,b.MATH],[tt.MENU,b.MENU],[tt.META,b.META],[tt.MGLYPH,b.MGLYPH],[tt.MI,b.MI],[tt.MO,b.MO],[tt.MN,b.MN],[tt.MS,b.MS],[tt.MTEXT,b.MTEXT],[tt.NAV,b.NAV],[tt.NOBR,b.NOBR],[tt.NOFRAMES,b.NOFRAMES],[tt.NOEMBED,b.NOEMBED],[tt.NOSCRIPT,b.NOSCRIPT],[tt.OBJECT,b.OBJECT],[tt.OL,b.OL],[tt.OPTGROUP,b.OPTGROUP],[tt.OPTION,b.OPTION],[tt.P,b.P],[tt.PARAM,b.PARAM],[tt.PLAINTEXT,b.PLAINTEXT],[tt.PRE,b.PRE],[tt.RB,b.RB],[tt.RP,b.RP],[tt.RT,b.RT],[tt.RTC,b.RTC],[tt.RUBY,b.RUBY],[tt.S,b.S],[tt.SCRIPT,b.SCRIPT],[tt.SEARCH,b.SEARCH],[tt.SECTION,b.SECTION],[tt.SELECT,b.SELECT],[tt.SOURCE,b.SOURCE],[tt.SMALL,b.SMALL],[tt.SPAN,b.SPAN],[tt.STRIKE,b.STRIKE],[tt.STRONG,b.STRONG],[tt.STYLE,b.STYLE],[tt.SUB,b.SUB],[tt.SUMMARY,b.SUMMARY],[tt.SUP,b.SUP],[tt.TABLE,b.TABLE],[tt.TBODY,b.TBODY],[tt.TEMPLATE,b.TEMPLATE],[tt.TEXTAREA,b.TEXTAREA],[tt.TFOOT,b.TFOOT],[tt.TD,b.TD],[tt.TH,b.TH],[tt.THEAD,b.THEAD],[tt.TITLE,b.TITLE],[tt.TR,b.TR],[tt.TRACK,b.TRACK],[tt.TT,b.TT],[tt.U,b.U],[tt.UL,b.UL],[tt.SVG,b.SVG],[tt.VAR,b.VAR],[tt.WBR,b.WBR],[tt.XMP,b.XMP]]);function no(e){var t;return(t=Qq.get(e))!==null&&t!==void 0?t:b.UNKNOWN}const ft=b,Zq={[ht.HTML]:new Set([ft.ADDRESS,ft.APPLET,ft.AREA,ft.ARTICLE,ft.ASIDE,ft.BASE,ft.BASEFONT,ft.BGSOUND,ft.BLOCKQUOTE,ft.BODY,ft.BR,ft.BUTTON,ft.CAPTION,ft.CENTER,ft.COL,ft.COLGROUP,ft.DD,ft.DETAILS,ft.DIR,ft.DIV,ft.DL,ft.DT,ft.EMBED,ft.FIELDSET,ft.FIGCAPTION,ft.FIGURE,ft.FOOTER,ft.FORM,ft.FRAME,ft.FRAMESET,ft.H1,ft.H2,ft.H3,ft.H4,ft.H5,ft.H6,ft.HEAD,ft.HEADER,ft.HGROUP,ft.HR,ft.HTML,ft.IFRAME,ft.IMG,ft.INPUT,ft.LI,ft.LINK,ft.LISTING,ft.MAIN,ft.MARQUEE,ft.MENU,ft.META,ft.NAV,ft.NOEMBED,ft.NOFRAMES,ft.NOSCRIPT,ft.OBJECT,ft.OL,ft.P,ft.PARAM,ft.PLAINTEXT,ft.PRE,ft.SCRIPT,ft.SECTION,ft.SELECT,ft.SOURCE,ft.STYLE,ft.SUMMARY,ft.TABLE,ft.TBODY,ft.TD,ft.TEMPLATE,ft.TEXTAREA,ft.TFOOT,ft.TH,ft.THEAD,ft.TITLE,ft.TR,ft.TRACK,ft.UL,ft.WBR,ft.XMP]),[ht.MATHML]:new Set([ft.MI,ft.MO,ft.MN,ft.MS,ft.MTEXT,ft.ANNOTATION_XML]),[ht.SVG]:new Set([ft.TITLE,ft.FOREIGN_OBJECT,ft.DESC]),[ht.XLINK]:new Set,[ht.XML]:new Set,[ht.XMLNS]:new Set},Mf=new Set([ft.H1,ft.H2,ft.H3,ft.H4,ft.H5,ft.H6]);tt.STYLE,tt.SCRIPT,tt.XMP,tt.IFRAME,tt.NOEMBED,tt.NOFRAMES,tt.PLAINTEXT;var D;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(D||(D={}));const $e={DATA:D.DATA,RCDATA:D.RCDATA,RAWTEXT:D.RAWTEXT,SCRIPT_DATA:D.SCRIPT_DATA,PLAINTEXT:D.PLAINTEXT,CDATA_SECTION:D.CDATA_SECTION};function Jq(e){return e>=M.DIGIT_0&&e<=M.DIGIT_9}function zo(e){return e>=M.LATIN_CAPITAL_A&&e<=M.LATIN_CAPITAL_Z}function tU(e){return e>=M.LATIN_SMALL_A&&e<=M.LATIN_SMALL_Z}function Pn(e){return tU(e)||zo(e)}function Cb(e){return Pn(e)||Jq(e)}function yu(e){return e+32}function E8(e){return e===M.SPACE||e===M.LINE_FEED||e===M.TABULATION||e===M.FORM_FEED}function kb(e){return E8(e)||e===M.SOLIDUS||e===M.GREATER_THAN_SIGN}function eU(e){return e===M.NULL?st.nullCharacterReference:e>1114111?st.characterReferenceOutsideUnicodeRange:T8(e)?st.surrogateCharacterReference:v8(e)?st.noncharacterCharacterReference:w8(e)||e===M.CARRIAGE_RETURN?st.controlCharacterReference:null}class rU{constructor(t,r){this.options=t,this.handler=r,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=D.DATA,this.returnState=D.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Hq(r),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Xq(qq,(i,n)=>{this.preprocessor.pos=this.entityStartPos+n-1,this._flushCodePointConsumedAsCharacterReference(i)},r.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(st.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(st.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const n=eU(i);n&&this._err(n,1)}}:void 0)}_err(t,r=0){var i,n;(n=(i=this.handler).onParseError)===null||n===void 0||n.call(i,this.preprocessor.getError(t,r))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,r,i){this.active=!0,this.preprocessor.write(t,r),this._runParsingLoop(),this.paused||i==null||i()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let r=0;r<t;r++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,r){return this.preprocessor.startsWith(t,r)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:se.START_TAG,tagName:"",tagID:b.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:se.END_TAG,tagName:"",tagID:b.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:se.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:se.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,r){this.currentCharacterToken={type:t,chars:r,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,r;const i=this.currentToken;if(S8(i,this.currentAttr.name)===null){if(i.attrs.push(this.currentAttr),i.location&&this.currentLocation){const n=(t=(r=i.location).attrs)!==null&&t!==void 0?t:r.attrs=Object.create(null);n[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(st.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=no(t.tagName),t.type===se.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(st.endTagWithAttributes),t.selfClosing&&this._err(st.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case se.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case se.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case se.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:se.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,r){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=r;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,r)}_emitCodePoint(t){const r=E8(t)?se.WHITESPACE_CHARACTER:t===M.NULL?se.NULL_CHARACTER:se.CHARACTER;this._appendCharToCurrentCharacterToken(r,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(se.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=D.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?bn.Attribute:bn.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===D.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===D.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===D.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case D.DATA:{this._stateData(t);break}case D.RCDATA:{this._stateRcdata(t);break}case D.RAWTEXT:{this._stateRawtext(t);break}case D.SCRIPT_DATA:{this._stateScriptData(t);break}case D.PLAINTEXT:{this._statePlaintext(t);break}case D.TAG_OPEN:{this._stateTagOpen(t);break}case D.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case D.TAG_NAME:{this._stateTagName(t);break}case D.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case D.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case D.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case D.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case D.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case D.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case D.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case D.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case D.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case D.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case D.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case D.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case D.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case D.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case D.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case D.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case D.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case D.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case D.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case D.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case D.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case D.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case D.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case D.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case D.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case D.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case D.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case D.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case D.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case D.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case D.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case D.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case D.BOGUS_COMMENT:{this._stateBogusComment(t);break}case D.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case D.COMMENT_START:{this._stateCommentStart(t);break}case D.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case D.COMMENT:{this._stateComment(t);break}case D.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case D.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case D.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case D.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case D.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case D.COMMENT_END:{this._stateCommentEnd(t);break}case D.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case D.DOCTYPE:{this._stateDoctype(t);break}case D.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case D.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case D.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case D.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case D.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case D.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case D.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case D.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case D.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case D.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case D.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case D.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case D.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case D.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case D.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case D.CDATA_SECTION:{this._stateCdataSection(t);break}case D.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case D.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case D.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case D.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case M.LESS_THAN_SIGN:{this.state=D.TAG_OPEN;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(st.unexpectedNullCharacter),this._emitCodePoint(t);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case M.AMPERSAND:{this._startCharacterReference();break}case M.LESS_THAN_SIGN:{this.state=D.RCDATA_LESS_THAN_SIGN;break}case M.NULL:{this._err(st.unexpectedNullCharacter),this._emitChars(Ee);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case M.LESS_THAN_SIGN:{this.state=D.RAWTEXT_LESS_THAN_SIGN;break}case M.NULL:{this._err(st.unexpectedNullCharacter),this._emitChars(Ee);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case M.LESS_THAN_SIGN:{this.state=D.SCRIPT_DATA_LESS_THAN_SIGN;break}case M.NULL:{this._err(st.unexpectedNullCharacter),this._emitChars(Ee);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case M.NULL:{this._err(st.unexpectedNullCharacter),this._emitChars(Ee);break}case M.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Pn(t))this._createStartTagToken(),this.state=D.TAG_NAME,this._stateTagName(t);else switch(t){case M.EXCLAMATION_MARK:{this.state=D.MARKUP_DECLARATION_OPEN;break}case M.SOLIDUS:{this.state=D.END_TAG_OPEN;break}case M.QUESTION_MARK:{this._err(st.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=D.BOGUS_COMMENT,this._stateBogusComment(t);break}case M.EOF:{this._err(st.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(st.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=D.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Pn(t))this._createEndTagToken(),this.state=D.TAG_NAME,this._stateTagName(t);else switch(t){case M.GREATER_THAN_SIGN:{this._err(st.missingEndTagName),this.state=D.DATA;break}case M.EOF:{this._err(st.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(st.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=D.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const r=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=D.BEFORE_ATTRIBUTE_NAME;break}case M.SOLIDUS:{this.state=D.SELF_CLOSING_START_TAG;break}case M.GREATER_THAN_SIGN:{this.state=D.DATA,this.emitCurrentTagToken();break}case M.NULL:{this._err(st.unexpectedNullCharacter),r.tagName+=Ee;break}case M.EOF:{this._err(st.eofInTag),this._emitEOFToken();break}default:r.tagName+=String.fromCodePoint(zo(t)?yu(t):t)}}_stateRcdataLessThanSign(t){t===M.SOLIDUS?this.state=D.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=D.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Pn(t)?(this.state=D.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=D.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const r=this.currentToken;switch(r.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=D.BEFORE_ATTRIBUTE_NAME,!1;case M.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=D.SELF_CLOSING_START_TAG,!1;case M.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=D.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=D.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===M.SOLIDUS?this.state=D.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=D.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Pn(t)?(this.state=D.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=D.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=D.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case M.SOLIDUS:{this.state=D.SCRIPT_DATA_END_TAG_OPEN;break}case M.EXCLAMATION_MARK:{this.state=D.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=D.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Pn(t)?(this.state=D.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=D.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=D.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===M.HYPHEN_MINUS?(this.state=D.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=D.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===M.HYPHEN_MINUS?(this.state=D.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=D.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case M.HYPHEN_MINUS:{this.state=D.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=D.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.NULL:{this._err(st.unexpectedNullCharacter),this._emitChars(Ee);break}case M.EOF:{this._err(st.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case M.HYPHEN_MINUS:{this.state=D.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=D.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.NULL:{this._err(st.unexpectedNullCharacter),this.state=D.SCRIPT_DATA_ESCAPED,this._emitChars(Ee);break}case M.EOF:{this._err(st.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=D.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case M.HYPHEN_MINUS:{this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=D.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case M.GREATER_THAN_SIGN:{this.state=D.SCRIPT_DATA,this._emitChars(">");break}case M.NULL:{this._err(st.unexpectedNullCharacter),this.state=D.SCRIPT_DATA_ESCAPED,this._emitChars(Ee);break}case M.EOF:{this._err(st.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=D.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===M.SOLIDUS?this.state=D.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Pn(t)?(this._emitChars("<"),this.state=D.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=D.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Pn(t)?(this.state=D.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=D.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=D.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Hr.SCRIPT,!1)&&kb(this.preprocessor.peek(Hr.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Hr.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=D.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case M.HYPHEN_MINUS:{this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.NULL:{this._err(st.unexpectedNullCharacter),this._emitChars(Ee);break}case M.EOF:{this._err(st.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case M.HYPHEN_MINUS:{this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.NULL:{this._err(st.unexpectedNullCharacter),this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ee);break}case M.EOF:{this._err(st.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case M.HYPHEN_MINUS:{this._emitChars("-");break}case M.LESS_THAN_SIGN:{this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case M.GREATER_THAN_SIGN:{this.state=D.SCRIPT_DATA,this._emitChars(">");break}case M.NULL:{this._err(st.unexpectedNullCharacter),this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ee);break}case M.EOF:{this._err(st.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===M.SOLIDUS?(this.state=D.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Hr.SCRIPT,!1)&&kb(this.preprocessor.peek(Hr.SCRIPT.length))){this._emitCodePoint(t);for(let r=0;r<Hr.SCRIPT.length;r++)this._emitCodePoint(this._consume());this.state=D.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=D.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.SOLIDUS:case M.GREATER_THAN_SIGN:case M.EOF:{this.state=D.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case M.EQUALS_SIGN:{this._err(st.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=D.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=D.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:case M.SOLIDUS:case M.GREATER_THAN_SIGN:case M.EOF:{this._leaveAttrName(),this.state=D.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case M.EQUALS_SIGN:{this._leaveAttrName(),this.state=D.BEFORE_ATTRIBUTE_VALUE;break}case M.QUOTATION_MARK:case M.APOSTROPHE:case M.LESS_THAN_SIGN:{this._err(st.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case M.NULL:{this._err(st.unexpectedNullCharacter),this.currentAttr.name+=Ee;break}default:this.currentAttr.name+=String.fromCodePoint(zo(t)?yu(t):t)}}_stateAfterAttributeName(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.SOLIDUS:{this.state=D.SELF_CLOSING_START_TAG;break}case M.EQUALS_SIGN:{this.state=D.BEFORE_ATTRIBUTE_VALUE;break}case M.GREATER_THAN_SIGN:{this.state=D.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(st.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=D.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{this.state=D.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this.state=D.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(st.missingAttributeValue),this.state=D.DATA,this.emitCurrentTagToken();break}default:this.state=D.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case M.QUOTATION_MARK:{this.state=D.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(st.unexpectedNullCharacter),this.currentAttr.value+=Ee;break}case M.EOF:{this._err(st.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case M.APOSTROPHE:{this.state=D.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.NULL:{this._err(st.unexpectedNullCharacter),this.currentAttr.value+=Ee;break}case M.EOF:{this._err(st.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this._leaveAttrValue(),this.state=D.BEFORE_ATTRIBUTE_NAME;break}case M.AMPERSAND:{this._startCharacterReference();break}case M.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=D.DATA,this.emitCurrentTagToken();break}case M.NULL:{this._err(st.unexpectedNullCharacter),this.currentAttr.value+=Ee;break}case M.QUOTATION_MARK:case M.APOSTROPHE:case M.LESS_THAN_SIGN:case M.EQUALS_SIGN:case M.GRAVE_ACCENT:{this._err(st.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case M.EOF:{this._err(st.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this._leaveAttrValue(),this.state=D.BEFORE_ATTRIBUTE_NAME;break}case M.SOLIDUS:{this._leaveAttrValue(),this.state=D.SELF_CLOSING_START_TAG;break}case M.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=D.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(st.eofInTag),this._emitEOFToken();break}default:this._err(st.missingWhitespaceBetweenAttributes),this.state=D.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case M.GREATER_THAN_SIGN:{const r=this.currentToken;r.selfClosing=!0,this.state=D.DATA,this.emitCurrentTagToken();break}case M.EOF:{this._err(st.eofInTag),this._emitEOFToken();break}default:this._err(st.unexpectedSolidusInTag),this.state=D.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const r=this.currentToken;switch(t){case M.GREATER_THAN_SIGN:{this.state=D.DATA,this.emitCurrentComment(r);break}case M.EOF:{this.emitCurrentComment(r),this._emitEOFToken();break}case M.NULL:{this._err(st.unexpectedNullCharacter),r.data+=Ee;break}default:r.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Hr.DASH_DASH,!0)?(this._createCommentToken(Hr.DASH_DASH.length+1),this.state=D.COMMENT_START):this._consumeSequenceIfMatch(Hr.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Hr.DOCTYPE.length+1),this.state=D.DOCTYPE):this._consumeSequenceIfMatch(Hr.CDATA_START,!0)?this.inForeignNode?this.state=D.CDATA_SECTION:(this._err(st.cdataInHtmlContent),this._createCommentToken(Hr.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=D.BOGUS_COMMENT):this._ensureHibernation()||(this._err(st.incorrectlyOpenedComment),this._createCommentToken(2),this.state=D.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case M.HYPHEN_MINUS:{this.state=D.COMMENT_START_DASH;break}case M.GREATER_THAN_SIGN:{this._err(st.abruptClosingOfEmptyComment),this.state=D.DATA;const r=this.currentToken;this.emitCurrentComment(r);break}default:this.state=D.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const r=this.currentToken;switch(t){case M.HYPHEN_MINUS:{this.state=D.COMMENT_END;break}case M.GREATER_THAN_SIGN:{this._err(st.abruptClosingOfEmptyComment),this.state=D.DATA,this.emitCurrentComment(r);break}case M.EOF:{this._err(st.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=D.COMMENT,this._stateComment(t)}}_stateComment(t){const r=this.currentToken;switch(t){case M.HYPHEN_MINUS:{this.state=D.COMMENT_END_DASH;break}case M.LESS_THAN_SIGN:{r.data+="<",this.state=D.COMMENT_LESS_THAN_SIGN;break}case M.NULL:{this._err(st.unexpectedNullCharacter),r.data+=Ee;break}case M.EOF:{this._err(st.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const r=this.currentToken;switch(t){case M.EXCLAMATION_MARK:{r.data+="!",this.state=D.COMMENT_LESS_THAN_SIGN_BANG;break}case M.LESS_THAN_SIGN:{r.data+="<";break}default:this.state=D.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===M.HYPHEN_MINUS?this.state=D.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=D.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===M.HYPHEN_MINUS?this.state=D.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=D.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==M.GREATER_THAN_SIGN&&t!==M.EOF&&this._err(st.nestedComment),this.state=D.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const r=this.currentToken;switch(t){case M.HYPHEN_MINUS:{this.state=D.COMMENT_END;break}case M.EOF:{this._err(st.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="-",this.state=D.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const r=this.currentToken;switch(t){case M.GREATER_THAN_SIGN:{this.state=D.DATA,this.emitCurrentComment(r);break}case M.EXCLAMATION_MARK:{this.state=D.COMMENT_END_BANG;break}case M.HYPHEN_MINUS:{r.data+="-";break}case M.EOF:{this._err(st.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--",this.state=D.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const r=this.currentToken;switch(t){case M.HYPHEN_MINUS:{r.data+="--!",this.state=D.COMMENT_END_DASH;break}case M.GREATER_THAN_SIGN:{this._err(st.incorrectlyClosedComment),this.state=D.DATA,this.emitCurrentComment(r);break}case M.EOF:{this._err(st.eofInComment),this.emitCurrentComment(r),this._emitEOFToken();break}default:r.data+="--!",this.state=D.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=D.BEFORE_DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this.state=D.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case M.EOF:{this._err(st.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(st.missingWhitespaceBeforeDoctypeName),this.state=D.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(zo(t))this._createDoctypeToken(String.fromCharCode(yu(t))),this.state=D.DOCTYPE_NAME;else switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.NULL:{this._err(st.unexpectedNullCharacter),this._createDoctypeToken(Ee),this.state=D.DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this._err(st.missingDoctypeName),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=D.DATA;break}case M.EOF:{this._err(st.eofInDoctype),this._createDoctypeToken(null);const r=this.currentToken;r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=D.DOCTYPE_NAME}}_stateDoctypeName(t){const r=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=D.AFTER_DOCTYPE_NAME;break}case M.GREATER_THAN_SIGN:{this.state=D.DATA,this.emitCurrentDoctype(r);break}case M.NULL:{this._err(st.unexpectedNullCharacter),r.name+=Ee;break}case M.EOF:{this._err(st.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.name+=String.fromCodePoint(zo(t)?yu(t):t)}}_stateAfterDoctypeName(t){const r=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.state=D.DATA,this.emitCurrentDoctype(r);break}case M.EOF:{this._err(st.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Hr.PUBLIC,!1)?this.state=D.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Hr.SYSTEM,!1)?this.state=D.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(st.invalidCharacterSequenceAfterDoctypeName),r.forceQuirks=!0,this.state=D.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const r=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=D.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.QUOTATION_MARK:{this._err(st.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=D.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(st.missingWhitespaceAfterDoctypePublicKeyword),r.publicId="",this.state=D.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(st.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=D.DATA,this.emitCurrentDoctype(r);break}case M.EOF:{this._err(st.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(st.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=D.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{r.publicId="",this.state=D.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{r.publicId="",this.state=D.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(st.missingDoctypePublicIdentifier),r.forceQuirks=!0,this.state=D.DATA,this.emitCurrentDoctype(r);break}case M.EOF:{this._err(st.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(st.missingQuoteBeforeDoctypePublicIdentifier),r.forceQuirks=!0,this.state=D.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case M.QUOTATION_MARK:{this.state=D.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.NULL:{this._err(st.unexpectedNullCharacter),r.publicId+=Ee;break}case M.GREATER_THAN_SIGN:{this._err(st.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=D.DATA;break}case M.EOF:{this._err(st.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case M.APOSTROPHE:{this.state=D.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case M.NULL:{this._err(st.unexpectedNullCharacter),r.publicId+=Ee;break}case M.GREATER_THAN_SIGN:{this._err(st.abruptDoctypePublicIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=D.DATA;break}case M.EOF:{this._err(st.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const r=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=D.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case M.GREATER_THAN_SIGN:{this.state=D.DATA,this.emitCurrentDoctype(r);break}case M.QUOTATION_MARK:{this._err(st.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=D.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(st.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),r.systemId="",this.state=D.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.EOF:{this._err(st.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(st.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=D.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const r=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=D.DATA;break}case M.QUOTATION_MARK:{r.systemId="",this.state=D.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{r.systemId="",this.state=D.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.EOF:{this._err(st.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(st.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=D.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const r=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:{this.state=D.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.QUOTATION_MARK:{this._err(st.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=D.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{this._err(st.missingWhitespaceAfterDoctypeSystemKeyword),r.systemId="",this.state=D.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(st.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=D.DATA,this.emitCurrentDoctype(r);break}case M.EOF:{this._err(st.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(st.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=D.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.QUOTATION_MARK:{r.systemId="",this.state=D.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case M.APOSTROPHE:{r.systemId="",this.state=D.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case M.GREATER_THAN_SIGN:{this._err(st.missingDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=D.DATA,this.emitCurrentDoctype(r);break}case M.EOF:{this._err(st.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(st.missingQuoteBeforeDoctypeSystemIdentifier),r.forceQuirks=!0,this.state=D.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const r=this.currentToken;switch(t){case M.QUOTATION_MARK:{this.state=D.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.NULL:{this._err(st.unexpectedNullCharacter),r.systemId+=Ee;break}case M.GREATER_THAN_SIGN:{this._err(st.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=D.DATA;break}case M.EOF:{this._err(st.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const r=this.currentToken;switch(t){case M.APOSTROPHE:{this.state=D.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case M.NULL:{this._err(st.unexpectedNullCharacter),r.systemId+=Ee;break}case M.GREATER_THAN_SIGN:{this._err(st.abruptDoctypeSystemIdentifier),r.forceQuirks=!0,this.emitCurrentDoctype(r),this.state=D.DATA;break}case M.EOF:{this._err(st.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:r.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const r=this.currentToken;switch(t){case M.SPACE:case M.LINE_FEED:case M.TABULATION:case M.FORM_FEED:break;case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=D.DATA;break}case M.EOF:{this._err(st.eofInDoctype),r.forceQuirks=!0,this.emitCurrentDoctype(r),this._emitEOFToken();break}default:this._err(st.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=D.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const r=this.currentToken;switch(t){case M.GREATER_THAN_SIGN:{this.emitCurrentDoctype(r),this.state=D.DATA;break}case M.NULL:{this._err(st.unexpectedNullCharacter);break}case M.EOF:{this.emitCurrentDoctype(r),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case M.RIGHT_SQUARE_BRACKET:{this.state=D.CDATA_SECTION_BRACKET;break}case M.EOF:{this._err(st.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===M.RIGHT_SQUARE_BRACKET?this.state=D.CDATA_SECTION_END:(this._emitChars("]"),this.state=D.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case M.GREATER_THAN_SIGN:{this.state=D.DATA;break}case M.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=D.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(M.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Cb(this.preprocessor.peek(1))?D.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Cb(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===M.SEMICOLON&&this._err(st.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const _8=new Set([b.DD,b.DT,b.LI,b.OPTGROUP,b.OPTION,b.P,b.RB,b.RP,b.RT,b.RTC]),Tb=new Set([..._8,b.CAPTION,b.COLGROUP,b.TBODY,b.TD,b.TFOOT,b.TH,b.THEAD,b.TR]),Oc=new Set([b.APPLET,b.CAPTION,b.HTML,b.MARQUEE,b.OBJECT,b.TABLE,b.TD,b.TEMPLATE,b.TH]),iU=new Set([...Oc,b.OL,b.UL]),nU=new Set([...Oc,b.BUTTON]),wb=new Set([b.ANNOTATION_XML,b.MI,b.MN,b.MO,b.MS,b.MTEXT]),vb=new Set([b.DESC,b.FOREIGN_OBJECT,b.TITLE]),aU=new Set([b.TR,b.TEMPLATE,b.HTML]),sU=new Set([b.TBODY,b.TFOOT,b.THEAD,b.TEMPLATE,b.HTML]),oU=new Set([b.TABLE,b.TEMPLATE,b.HTML]),lU=new Set([b.TD,b.TH]);class uU{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,r,i){this.treeAdapter=r,this.handler=i,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=b.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===b.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ht.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,r){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=r,this.currentTagId=r,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,r,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,r){const i=this._indexOf(t);this.items[i]=r,i===this.stackTop&&(this.current=r)}insertAfter(t,r,i){const n=this._indexOf(t)+1;this.items.splice(n,0,r),this.tagIDs.splice(n,0,i),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(t){let r=this.stackTop+1;do r=this.tagIDs.lastIndexOf(t,r-1);while(r>0&&this.treeAdapter.getNamespaceURI(this.items[r])!==ht.HTML);this.shortenToLength(Math.max(r,0))}shortenToLength(t){for(;this.stackTop>=t;){const r=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,this.stackTop<t)}}popUntilElementPopped(t){const r=this._indexOf(t);this.shortenToLength(Math.max(r,0))}popUntilPopped(t,r){const i=this._indexOfTagNames(t,r);this.shortenToLength(Math.max(i,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Mf,ht.HTML)}popUntilTableCellPopped(){this.popUntilPopped(lU,ht.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,r){for(let i=this.stackTop;i>=0;i--)if(t.has(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===r)return i;return-1}clearBackTo(t,r){const i=this._indexOfTagNames(t,r);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(oU,ht.HTML)}clearBackToTableBodyContext(){this.clearBackTo(sU,ht.HTML)}clearBackToTableRowContext(){this.clearBackTo(aU,ht.HTML)}remove(t){const r=this._indexOf(t);r>=0&&(r===this.stackTop?this.pop():(this.items.splice(r,1),this.tagIDs.splice(r,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===b.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const r=this._indexOf(t)-1;return r>=0?this.items[r]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===b.HTML}hasInDynamicScope(t,r){for(let i=this.stackTop;i>=0;i--){const n=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case ht.HTML:{if(n===t)return!0;if(r.has(n))return!1;break}case ht.SVG:{if(vb.has(n))return!1;break}case ht.MATHML:{if(wb.has(n))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Oc)}hasInListItemScope(t){return this.hasInDynamicScope(t,iU)}hasInButtonScope(t){return this.hasInDynamicScope(t,nU)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const r=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case ht.HTML:{if(Mf.has(r))return!0;if(Oc.has(r))return!1;break}case ht.SVG:{if(vb.has(r))return!1;break}case ht.MATHML:{if(wb.has(r))return!1;break}}}return!0}hasInTableScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===ht.HTML)switch(this.tagIDs[r]){case t:return!0;case b.TABLE:case b.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ht.HTML)switch(this.tagIDs[t]){case b.TBODY:case b.THEAD:case b.TFOOT:return!0;case b.TABLE:case b.HTML:return!1}return!0}hasInSelectScope(t){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===ht.HTML)switch(this.tagIDs[r]){case t:return!0;case b.OPTION:case b.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&_8.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Tb.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Tb.has(this.currentTagId);)this.pop()}}const F0=3;var Yi;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Yi||(Yi={}));const Sb={type:Yi.Marker};class cU{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,r){const i=[],n=r.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===Yi.Marker)break;const{element:u}=l;if(this.treeAdapter.getTagName(u)===a&&this.treeAdapter.getNamespaceURI(u)===s){const c=this.treeAdapter.getAttrList(u);c.length===n&&i.push({idx:o,attrs:c})}}return i}_ensureNoahArkCondition(t){if(this.entries.length<F0)return;const r=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,r);if(i.length<F0)return;const n=new Map(r.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<i.length;s++){const o=i[s];o.attrs.every(l=>n.get(l.name)===l.value)&&(a+=1,a>=F0&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Sb)}pushElement(t,r){this._ensureNoahArkCondition(t),this.entries.unshift({type:Yi.Element,element:t,token:r})}insertElementAfterBookmark(t,r){const i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:Yi.Element,element:t,token:r})}removeEntry(t){const r=this.entries.indexOf(t);r!==-1&&this.entries.splice(r,1)}clearToLastMarker(){const t=this.entries.indexOf(Sb);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const r=this.entries.find(i=>i.type===Yi.Marker||this.treeAdapter.getTagName(i.element)===t);return r&&r.type===Yi.Element?r:null}getElementEntry(t){return this.entries.find(r=>r.type===Yi.Element&&r.element===t)}}const $n={createDocument(){return{nodeName:"#document",mode:hi.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,r){return{nodeName:e,tagName:e,attrs:r,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,r){const i=e.childNodes.indexOf(r);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,r,i){const n=e.childNodes.find(a=>a.nodeName==="#documentType");if(n)n.name=t,n.publicId=r,n.systemId=i;else{const a={nodeName:"#documentType",name:t,publicId:r,systemId:i,parentNode:null};$n.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const r=e.childNodes[e.childNodes.length-1];if($n.isTextNode(r)){r.value+=t;return}}$n.appendChild(e,$n.createTextNode(t))},insertTextBefore(e,t,r){const i=e.childNodes[e.childNodes.indexOf(r)-1];i&&$n.isTextNode(i)?i.value+=t:$n.insertBefore(e,$n.createTextNode(t),r)},adoptAttributes(e,t){const r=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)r.has(t[i].name)||e.attrs.push(t[i])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},A8="html",hU="about:legacy-compat",dU="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",B8=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],fU=[...B8,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],pU=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),L8=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],mU=[...L8,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Eb(e,t){return t.some(r=>e.startsWith(r))}function gU(e){return e.name===A8&&e.publicId===null&&(e.systemId===null||e.systemId===hU)}function bU(e){if(e.name!==A8)return hi.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===dU)return hi.QUIRKS;let{publicId:r}=e;if(r!==null){if(r=r.toLowerCase(),pU.has(r))return hi.QUIRKS;let i=t===null?fU:B8;if(Eb(r,i))return hi.QUIRKS;if(i=t===null?L8:mU,Eb(r,i))return hi.LIMITED_QUIRKS}return hi.NO_QUIRKS}const _b={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},yU="definitionurl",xU="definitionURL",CU=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),kU=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ht.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ht.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ht.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ht.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ht.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ht.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ht.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ht.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ht.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ht.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ht.XMLNS}]]),TU=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),wU=new Set([b.B,b.BIG,b.BLOCKQUOTE,b.BODY,b.BR,b.CENTER,b.CODE,b.DD,b.DIV,b.DL,b.DT,b.EM,b.EMBED,b.H1,b.H2,b.H3,b.H4,b.H5,b.H6,b.HEAD,b.HR,b.I,b.IMG,b.LI,b.LISTING,b.MENU,b.META,b.NOBR,b.OL,b.P,b.PRE,b.RUBY,b.S,b.SMALL,b.SPAN,b.STRONG,b.STRIKE,b.SUB,b.SUP,b.TABLE,b.TT,b.U,b.UL,b.VAR]);function vU(e){const t=e.tagID;return t===b.FONT&&e.attrs.some(({name:i})=>i===La.COLOR||i===La.SIZE||i===La.FACE)||wU.has(t)}function I8(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===yU){e.attrs[t].name=xU;break}}function M8(e){for(let t=0;t<e.attrs.length;t++){const r=CU.get(e.attrs[t].name);r!=null&&(e.attrs[t].name=r)}}function Ap(e){for(let t=0;t<e.attrs.length;t++){const r=kU.get(e.attrs[t].name);r&&(e.attrs[t].prefix=r.prefix,e.attrs[t].name=r.name,e.attrs[t].namespace=r.namespace)}}function SU(e){const t=TU.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=no(e.tagName))}function EU(e,t){return t===ht.MATHML&&(e===b.MI||e===b.MO||e===b.MN||e===b.MS||e===b.MTEXT)}function _U(e,t,r){if(t===ht.MATHML&&e===b.ANNOTATION_XML){for(let i=0;i<r.length;i++)if(r[i].name===La.ENCODING){const n=r[i].value.toLowerCase();return n===_b.TEXT_HTML||n===_b.APPLICATION_XML}}return t===ht.SVG&&(e===b.FOREIGN_OBJECT||e===b.DESC||e===b.TITLE)}function AU(e,t,r,i){return(!i||i===ht.HTML)&&_U(e,t,r)||(!i||i===ht.MATHML)&&EU(e,t)}const BU="hidden",LU=8,IU=3;var U;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(U||(U={}));const MU={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},N8=new Set([b.TABLE,b.TBODY,b.TFOOT,b.THEAD,b.TR]),Ab={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:$n,onParseError:null};class Bb{constructor(t,r,i=null,n=null){this.fragmentContext=i,this.scriptHandler=n,this.currentToken=null,this.stopped=!1,this.insertionMode=U.INITIAL,this.originalInsertionMode=U.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Ab,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=r??this.treeAdapter.createDocument(),this.tokenizer=new rU(this.options,this),this.activeFormattingElements=new cU(this.treeAdapter),this.fragmentContextID=i?no(this.treeAdapter.getTagName(i)):b.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new uU(this.document,this.treeAdapter,this)}static parse(t,r){const i=new this(r);return i.tokenizer.write(t,!0),i.document}static getFragmentParser(t,r){const i={...Ab,...r};t??(t=i.treeAdapter.createElement(tt.TEMPLATE,ht.HTML,[]));const n=i.treeAdapter.createElement("documentmock",ht.HTML,[]),a=new this(i,n,t);return a.fragmentContextID===b.TEMPLATE&&a.tmplInsertionModeStack.unshift(U.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),r=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,r),r}_err(t,r,i){var n;if(!this.onParseError)return;const a=(n=t.location)!==null&&n!==void 0?n:MU,s={code:r,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:i?a.startLine:a.endLine,endCol:i?a.startCol:a.endCol,endOffset:i?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,r,i){var n,a;(a=(n=this.treeAdapter).onItemPush)===null||a===void 0||a.call(n,t),i&&this.openElements.stackTop>0&&this._setContextModes(t,r)}onItemPop(t,r){var i,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(n=(i=this.treeAdapter).onItemPop)===null||n===void 0||n.call(i,t,this.openElements.current),r){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,r){const i=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===ht.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&t!==void 0&&r!==void 0&&!this._isIntegrationPoint(r,t)}_switchToTextParsing(t,r){this._insertElement(t,ht.HTML),this.tokenizer.state=r,this.originalInsertionMode=this.insertionMode,this.insertionMode=U.TEXT}switchToPlaintextParsing(){this.insertionMode=U.TEXT,this.originalInsertionMode=U.IN_BODY,this.tokenizer.state=$e.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===tt.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ht.HTML))switch(this.fragmentContextID){case b.TITLE:case b.TEXTAREA:{this.tokenizer.state=$e.RCDATA;break}case b.STYLE:case b.XMP:case b.IFRAME:case b.NOEMBED:case b.NOFRAMES:case b.NOSCRIPT:{this.tokenizer.state=$e.RAWTEXT;break}case b.SCRIPT:{this.tokenizer.state=$e.SCRIPT_DATA;break}case b.PLAINTEXT:{this.tokenizer.state=$e.PLAINTEXT;break}}}_setDocumentType(t){const r=t.name||"",i=t.publicId||"",n=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,r,i,n),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,r){if(this.options.sourceCodeLocationInfo){const i=r&&{...r,startTag:r};this.treeAdapter.setNodeSourceCodeLocation(t,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i??this.document,t)}}_appendElement(t,r){const i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location)}_insertElement(t,r){const i=this.treeAdapter.createElement(t.tagName,r,t.attrs);this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID)}_insertFakeElement(t,r){const i=this.treeAdapter.createElement(t,ht.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,r)}_insertTemplate(t){const r=this.treeAdapter.createElement(t.tagName,ht.HTML,t.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(r,i),this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(tt.HTML,ht.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,b.HTML)}_appendCommentNode(t,r){const i=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(r,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_insertCharacters(t){let r,i;if(this._shouldFosterParentOnInsertion()?({parent:r,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(r,t.chars,i):this.treeAdapter.insertText(r,t.chars)):(r=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(r,t.chars)),!t.location)return;const n=this.treeAdapter.getChildNodes(r),a=i?n.lastIndexOf(i):n.length,s=n[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,r){for(let i=this.treeAdapter.getFirstChild(t);i;i=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(r,i)}_setEndLocation(t,r){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&r.location){const i=r.location,n=this.treeAdapter.getTagName(t),a=r.type===se.END_TAG&&n===r.tagName?{endTag:{...i},endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let r,i;return this.openElements.stackTop===0&&this.fragmentContext?(r=this.fragmentContext,i=this.fragmentContextID):{current:r,currentTagId:i}=this.openElements,t.tagID===b.SVG&&this.treeAdapter.getTagName(r)===tt.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(r)===ht.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===b.MGLYPH||t.tagID===b.MALIGNMARK)&&i!==void 0&&!this._isIntegrationPoint(i,r,ht.HTML)}_processToken(t){switch(t.type){case se.CHARACTER:{this.onCharacter(t);break}case se.NULL_CHARACTER:{this.onNullCharacter(t);break}case se.COMMENT:{this.onComment(t);break}case se.DOCTYPE:{this.onDoctype(t);break}case se.START_TAG:{this._processStartTag(t);break}case se.END_TAG:{this.onEndTag(t);break}case se.EOF:{this.onEof(t);break}case se.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,r,i){const n=this.treeAdapter.getNamespaceURI(r),a=this.treeAdapter.getAttrList(r);return AU(t,n,a,i)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const r=this.activeFormattingElements.entries.findIndex(n=>n.type===Yi.Marker||this.openElements.contains(n.element)),i=r===-1?t-1:r-1;for(let n=i;n>=0;n--){const a=this.activeFormattingElements.entries[n];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=U.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(b.P),this.openElements.popUntilTagNamePopped(b.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case b.TR:{this.insertionMode=U.IN_ROW;return}case b.TBODY:case b.THEAD:case b.TFOOT:{this.insertionMode=U.IN_TABLE_BODY;return}case b.CAPTION:{this.insertionMode=U.IN_CAPTION;return}case b.COLGROUP:{this.insertionMode=U.IN_COLUMN_GROUP;return}case b.TABLE:{this.insertionMode=U.IN_TABLE;return}case b.BODY:{this.insertionMode=U.IN_BODY;return}case b.FRAMESET:{this.insertionMode=U.IN_FRAMESET;return}case b.SELECT:{this._resetInsertionModeForSelect(t);return}case b.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case b.HTML:{this.insertionMode=this.headElement?U.AFTER_HEAD:U.BEFORE_HEAD;return}case b.TD:case b.TH:{if(t>0){this.insertionMode=U.IN_CELL;return}break}case b.HEAD:{if(t>0){this.insertionMode=U.IN_HEAD;return}break}}this.insertionMode=U.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let r=t-1;r>0;r--){const i=this.openElements.tagIDs[r];if(i===b.TEMPLATE)break;if(i===b.TABLE){this.insertionMode=U.IN_SELECT_IN_TABLE;return}}this.insertionMode=U.IN_SELECT}_isElementCausesFosterParenting(t){return N8.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const r=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case b.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(r)===ht.HTML)return{parent:this.treeAdapter.getTemplateContent(r),beforeElement:null};break}case b.TABLE:{const i=this.treeAdapter.getParentNode(r);return i?{parent:i,beforeElement:r}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const r=this._findFosterParentingLocation();r.beforeElement?this.treeAdapter.insertBefore(r.parent,t,r.beforeElement):this.treeAdapter.appendChild(r.parent,t)}_isSpecialElement(t,r){const i=this.treeAdapter.getNamespaceURI(t);return Zq[i].has(r)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){lj(this,t);return}switch(this.insertionMode){case U.INITIAL:{To(this,t);break}case U.BEFORE_HTML:{Qo(this,t);break}case U.BEFORE_HEAD:{Zo(this,t);break}case U.IN_HEAD:{Jo(this,t);break}case U.IN_HEAD_NO_SCRIPT:{tl(this,t);break}case U.AFTER_HEAD:{el(this,t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:{O8(this,t);break}case U.TEXT:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{O0(this,t);break}case U.IN_TABLE_TEXT:{H8(this,t);break}case U.IN_COLUMN_GROUP:{Dc(this,t);break}case U.AFTER_BODY:{Rc(this,t);break}case U.AFTER_AFTER_BODY:{Wu(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){oj(this,t);return}switch(this.insertionMode){case U.INITIAL:{To(this,t);break}case U.BEFORE_HTML:{Qo(this,t);break}case U.BEFORE_HEAD:{Zo(this,t);break}case U.IN_HEAD:{Jo(this,t);break}case U.IN_HEAD_NO_SCRIPT:{tl(this,t);break}case U.AFTER_HEAD:{el(this,t);break}case U.TEXT:{this._insertCharacters(t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{O0(this,t);break}case U.IN_COLUMN_GROUP:{Dc(this,t);break}case U.AFTER_BODY:{Rc(this,t);break}case U.AFTER_AFTER_BODY:{Wu(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Nf(this,t);return}switch(this.insertionMode){case U.INITIAL:case U.BEFORE_HTML:case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_TEMPLATE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{Nf(this,t);break}case U.IN_TABLE_TEXT:{wo(this,t);break}case U.AFTER_BODY:{$U(this,t);break}case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{zU(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case U.INITIAL:{HU(this,t);break}case U.BEFORE_HEAD:case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:{this._err(t,st.misplacedDoctype);break}case U.IN_TABLE_TEXT:{wo(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,st.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?uj(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{To(this,t);break}case U.BEFORE_HTML:{qU(this,t);break}case U.BEFORE_HEAD:{WU(this,t);break}case U.IN_HEAD:{Li(this,t);break}case U.IN_HEAD_NO_SCRIPT:{VU(this,t);break}case U.AFTER_HEAD:{XU(this,t);break}case U.IN_BODY:{wr(this,t);break}case U.IN_TABLE:{Ys(this,t);break}case U.IN_TABLE_TEXT:{wo(this,t);break}case U.IN_CAPTION:{jW(this,t);break}case U.IN_COLUMN_GROUP:{Ip(this,t);break}case U.IN_TABLE_BODY:{Bh(this,t);break}case U.IN_ROW:{Lh(this,t);break}case U.IN_CELL:{GW(this,t);break}case U.IN_SELECT:{W8(this,t);break}case U.IN_SELECT_IN_TABLE:{KW(this,t);break}case U.IN_TEMPLATE:{ZW(this,t);break}case U.AFTER_BODY:{tj(this,t);break}case U.IN_FRAMESET:{ej(this,t);break}case U.AFTER_FRAMESET:{ij(this,t);break}case U.AFTER_AFTER_BODY:{aj(this,t);break}case U.AFTER_AFTER_FRAMESET:{sj(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?cj(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case U.INITIAL:{To(this,t);break}case U.BEFORE_HTML:{UU(this,t);break}case U.BEFORE_HEAD:{jU(this,t);break}case U.IN_HEAD:{YU(this,t);break}case U.IN_HEAD_NO_SCRIPT:{GU(this,t);break}case U.AFTER_HEAD:{KU(this,t);break}case U.IN_BODY:{Ah(this,t);break}case U.TEXT:{OW(this,t);break}case U.IN_TABLE:{kl(this,t);break}case U.IN_TABLE_TEXT:{wo(this,t);break}case U.IN_CAPTION:{YW(this,t);break}case U.IN_COLUMN_GROUP:{VW(this,t);break}case U.IN_TABLE_BODY:{Ff(this,t);break}case U.IN_ROW:{U8(this,t);break}case U.IN_CELL:{XW(this,t);break}case U.IN_SELECT:{j8(this,t);break}case U.IN_SELECT_IN_TABLE:{QW(this,t);break}case U.IN_TEMPLATE:{JW(this,t);break}case U.AFTER_BODY:{V8(this,t);break}case U.IN_FRAMESET:{rj(this,t);break}case U.AFTER_FRAMESET:{nj(this,t);break}case U.AFTER_AFTER_BODY:{Wu(this,t);break}}}onEof(t){switch(this.insertionMode){case U.INITIAL:{To(this,t);break}case U.BEFORE_HTML:{Qo(this,t);break}case U.BEFORE_HEAD:{Zo(this,t);break}case U.IN_HEAD:{Jo(this,t);break}case U.IN_HEAD_NO_SCRIPT:{tl(this,t);break}case U.AFTER_HEAD:{el(this,t);break}case U.IN_BODY:case U.IN_TABLE:case U.IN_CAPTION:case U.IN_COLUMN_GROUP:case U.IN_TABLE_BODY:case U.IN_ROW:case U.IN_CELL:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:{$8(this,t);break}case U.TEXT:{DW(this,t);break}case U.IN_TABLE_TEXT:{wo(this,t);break}case U.IN_TEMPLATE:{Y8(this,t);break}case U.AFTER_BODY:case U.IN_FRAMESET:case U.AFTER_FRAMESET:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{Lp(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===M.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case U.IN_HEAD:case U.IN_HEAD_NO_SCRIPT:case U.AFTER_HEAD:case U.TEXT:case U.IN_COLUMN_GROUP:case U.IN_SELECT:case U.IN_SELECT_IN_TABLE:case U.IN_FRAMESET:case U.AFTER_FRAMESET:{this._insertCharacters(t);break}case U.IN_BODY:case U.IN_CAPTION:case U.IN_CELL:case U.IN_TEMPLATE:case U.AFTER_BODY:case U.AFTER_AFTER_BODY:case U.AFTER_AFTER_FRAMESET:{F8(this,t);break}case U.IN_TABLE:case U.IN_TABLE_BODY:case U.IN_ROW:{O0(this,t);break}case U.IN_TABLE_TEXT:{z8(this,t);break}}}}function NU(e,t){let r=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return r?e.openElements.contains(r.element)?e.openElements.hasInScope(t.tagID)||(r=null):(e.activeFormattingElements.removeEntry(r),r=null):P8(e,t),r}function FU(e,t){let r=null,i=e.openElements.stackTop;for(;i>=0;i--){const n=e.openElements.items[i];if(n===t.element)break;e._isSpecialElement(n,e.openElements.tagIDs[i])&&(r=n)}return r||(e.openElements.shortenToLength(Math.max(i,0)),e.activeFormattingElements.removeEntry(t)),r}function OU(e,t,r){let i=t,n=e.openElements.getCommonAncestor(t);for(let a=0,s=n;s!==r;a++,s=n){n=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=IU;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=DU(e,o),i===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(s,i),i=s)}return i}function DU(e,t){const r=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,r,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function RU(e,t,r){const i=e.treeAdapter.getTagName(t),n=no(i);if(e._isElementCausesFosterParenting(n))e._fosterParentElement(r);else{const a=e.treeAdapter.getNamespaceURI(t);n===b.TEMPLATE&&a===ht.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,r)}}function PU(e,t,r){const i=e.treeAdapter.getNamespaceURI(r.element),{token:n}=r,a=e.treeAdapter.createElement(n.tagName,i,n.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,n),e.activeFormattingElements.removeEntry(r),e.openElements.remove(r.element),e.openElements.insertAfter(t,a,n.tagID)}function Bp(e,t){for(let r=0;r<LU;r++){const i=NU(e,t);if(!i)break;const n=FU(e,i);if(!n)break;e.activeFormattingElements.bookmark=i;const a=OU(e,n,i.element),s=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(a),s&&RU(e,s,a),PU(e,n,i)}}function Nf(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function $U(e,t){e._appendCommentNode(t,e.openElements.items[0])}function zU(e,t){e._appendCommentNode(t,e.document)}function Lp(e,t){if(e.stopped=!0,t.location){const r=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=r;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const i=e.openElements.items[0],n=e.treeAdapter.getNodeSourceCodeLocation(i);if(n&&!n.endTag&&(e._setEndLocation(i,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function HU(e,t){e._setDocumentType(t);const r=t.forceQuirks?hi.QUIRKS:bU(t);gU(t)||e._err(t,st.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,r),e.insertionMode=U.BEFORE_HTML}function To(e,t){e._err(t,st.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,hi.QUIRKS),e.insertionMode=U.BEFORE_HTML,e._processToken(t)}function qU(e,t){t.tagID===b.HTML?(e._insertElement(t,ht.HTML),e.insertionMode=U.BEFORE_HEAD):Qo(e,t)}function UU(e,t){const r=t.tagID;(r===b.HTML||r===b.HEAD||r===b.BODY||r===b.BR)&&Qo(e,t)}function Qo(e,t){e._insertFakeRootElement(),e.insertionMode=U.BEFORE_HEAD,e._processToken(t)}function WU(e,t){switch(t.tagID){case b.HTML:{wr(e,t);break}case b.HEAD:{e._insertElement(t,ht.HTML),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD;break}default:Zo(e,t)}}function jU(e,t){const r=t.tagID;r===b.HEAD||r===b.BODY||r===b.HTML||r===b.BR?Zo(e,t):e._err(t,st.endTagWithoutMatchingOpenElement)}function Zo(e,t){e._insertFakeElement(tt.HEAD,b.HEAD),e.headElement=e.openElements.current,e.insertionMode=U.IN_HEAD,e._processToken(t)}function Li(e,t){switch(t.tagID){case b.HTML:{wr(e,t);break}case b.BASE:case b.BASEFONT:case b.BGSOUND:case b.LINK:case b.META:{e._appendElement(t,ht.HTML),t.ackSelfClosing=!0;break}case b.TITLE:{e._switchToTextParsing(t,$e.RCDATA);break}case b.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,$e.RAWTEXT):(e._insertElement(t,ht.HTML),e.insertionMode=U.IN_HEAD_NO_SCRIPT);break}case b.NOFRAMES:case b.STYLE:{e._switchToTextParsing(t,$e.RAWTEXT);break}case b.SCRIPT:{e._switchToTextParsing(t,$e.SCRIPT_DATA);break}case b.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=U.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(U.IN_TEMPLATE);break}case b.HEAD:{e._err(t,st.misplacedStartTagForHeadElement);break}default:Jo(e,t)}}function YU(e,t){switch(t.tagID){case b.HEAD:{e.openElements.pop(),e.insertionMode=U.AFTER_HEAD;break}case b.BODY:case b.BR:case b.HTML:{Jo(e,t);break}case b.TEMPLATE:{Ga(e,t);break}default:e._err(t,st.endTagWithoutMatchingOpenElement)}}function Ga(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==b.TEMPLATE&&e._err(t,st.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(b.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,st.endTagWithoutMatchingOpenElement)}function Jo(e,t){e.openElements.pop(),e.insertionMode=U.AFTER_HEAD,e._processToken(t)}function VU(e,t){switch(t.tagID){case b.HTML:{wr(e,t);break}case b.BASEFONT:case b.BGSOUND:case b.HEAD:case b.LINK:case b.META:case b.NOFRAMES:case b.STYLE:{Li(e,t);break}case b.NOSCRIPT:{e._err(t,st.nestedNoscriptInHead);break}default:tl(e,t)}}function GU(e,t){switch(t.tagID){case b.NOSCRIPT:{e.openElements.pop(),e.insertionMode=U.IN_HEAD;break}case b.BR:{tl(e,t);break}default:e._err(t,st.endTagWithoutMatchingOpenElement)}}function tl(e,t){const r=t.type===se.EOF?st.openElementsLeftAfterEof:st.disallowedContentInNoscriptInHead;e._err(t,r),e.openElements.pop(),e.insertionMode=U.IN_HEAD,e._processToken(t)}function XU(e,t){switch(t.tagID){case b.HTML:{wr(e,t);break}case b.BODY:{e._insertElement(t,ht.HTML),e.framesetOk=!1,e.insertionMode=U.IN_BODY;break}case b.FRAMESET:{e._insertElement(t,ht.HTML),e.insertionMode=U.IN_FRAMESET;break}case b.BASE:case b.BASEFONT:case b.BGSOUND:case b.LINK:case b.META:case b.NOFRAMES:case b.SCRIPT:case b.STYLE:case b.TEMPLATE:case b.TITLE:{e._err(t,st.abandonedHeadElementChild),e.openElements.push(e.headElement,b.HEAD),Li(e,t),e.openElements.remove(e.headElement);break}case b.HEAD:{e._err(t,st.misplacedStartTagForHeadElement);break}default:el(e,t)}}function KU(e,t){switch(t.tagID){case b.BODY:case b.HTML:case b.BR:{el(e,t);break}case b.TEMPLATE:{Ga(e,t);break}default:e._err(t,st.endTagWithoutMatchingOpenElement)}}function el(e,t){e._insertFakeElement(tt.BODY,b.BODY),e.insertionMode=U.IN_BODY,_h(e,t)}function _h(e,t){switch(t.type){case se.CHARACTER:{O8(e,t);break}case se.WHITESPACE_CHARACTER:{F8(e,t);break}case se.COMMENT:{Nf(e,t);break}case se.START_TAG:{wr(e,t);break}case se.END_TAG:{Ah(e,t);break}case se.EOF:{$8(e,t);break}}}function F8(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function O8(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function QU(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function ZU(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(r,t.attrs))}function JU(e,t){const r=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&r&&(e.treeAdapter.detachNode(r),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ht.HTML),e.insertionMode=U.IN_FRAMESET)}function tW(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ht.HTML)}function eW(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Mf.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ht.HTML)}function rW(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ht.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function iW(e,t){const r=e.openElements.tmplCount>0;(!e.formElement||r)&&(e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ht.HTML),r||(e.formElement=e.openElements.current))}function nW(e,t){e.framesetOk=!1;const r=t.tagID;for(let i=e.openElements.stackTop;i>=0;i--){const n=e.openElements.tagIDs[i];if(r===b.LI&&n===b.LI||(r===b.DD||r===b.DT)&&(n===b.DD||n===b.DT)){e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n);break}if(n!==b.ADDRESS&&n!==b.DIV&&n!==b.P&&e._isSpecialElement(e.openElements.items[i],n))break}e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ht.HTML)}function aW(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ht.HTML),e.tokenizer.state=$e.PLAINTEXT}function sW(e,t){e.openElements.hasInScope(b.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(b.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.framesetOk=!1}function oW(e,t){const r=e.activeFormattingElements.getElementEntryInScopeWithTagName(tt.A);r&&(Bp(e,t),e.openElements.remove(r.element),e.activeFormattingElements.removeEntry(r)),e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function lW(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function uW(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(b.NOBR)&&(Bp(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ht.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function cW(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function hW(e,t){e.treeAdapter.getDocumentMode(e.document)!==hi.QUIRKS&&e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._insertElement(t,ht.HTML),e.framesetOk=!1,e.insertionMode=U.IN_TABLE}function D8(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ht.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function R8(e){const t=S8(e,La.TYPE);return t!=null&&t.toLowerCase()===BU}function dW(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ht.HTML),R8(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function fW(e,t){e._appendElement(t,ht.HTML),t.ackSelfClosing=!0}function pW(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._appendElement(t,ht.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function mW(e,t){t.tagName=tt.IMG,t.tagID=b.IMG,D8(e,t)}function gW(e,t){e._insertElement(t,ht.HTML),e.skipNextNewLine=!0,e.tokenizer.state=$e.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=U.TEXT}function bW(e,t){e.openElements.hasInButtonScope(b.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,$e.RAWTEXT)}function yW(e,t){e.framesetOk=!1,e._switchToTextParsing(t,$e.RAWTEXT)}function Lb(e,t){e._switchToTextParsing(t,$e.RAWTEXT)}function xW(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===U.IN_TABLE||e.insertionMode===U.IN_CAPTION||e.insertionMode===U.IN_TABLE_BODY||e.insertionMode===U.IN_ROW||e.insertionMode===U.IN_CELL?U.IN_SELECT_IN_TABLE:U.IN_SELECT}function CW(e,t){e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML)}function kW(e,t){e.openElements.hasInScope(b.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ht.HTML)}function TW(e,t){e.openElements.hasInScope(b.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(b.RTC),e._insertElement(t,ht.HTML)}function wW(e,t){e._reconstructActiveFormattingElements(),I8(t),Ap(t),t.selfClosing?e._appendElement(t,ht.MATHML):e._insertElement(t,ht.MATHML),t.ackSelfClosing=!0}function vW(e,t){e._reconstructActiveFormattingElements(),M8(t),Ap(t),t.selfClosing?e._appendElement(t,ht.SVG):e._insertElement(t,ht.SVG),t.ackSelfClosing=!0}function Ib(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML)}function wr(e,t){switch(t.tagID){case b.I:case b.S:case b.B:case b.U:case b.EM:case b.TT:case b.BIG:case b.CODE:case b.FONT:case b.SMALL:case b.STRIKE:case b.STRONG:{lW(e,t);break}case b.A:{oW(e,t);break}case b.H1:case b.H2:case b.H3:case b.H4:case b.H5:case b.H6:{eW(e,t);break}case b.P:case b.DL:case b.OL:case b.UL:case b.DIV:case b.DIR:case b.NAV:case b.MAIN:case b.MENU:case b.ASIDE:case b.CENTER:case b.FIGURE:case b.FOOTER:case b.HEADER:case b.HGROUP:case b.DIALOG:case b.DETAILS:case b.ADDRESS:case b.ARTICLE:case b.SEARCH:case b.SECTION:case b.SUMMARY:case b.FIELDSET:case b.BLOCKQUOTE:case b.FIGCAPTION:{tW(e,t);break}case b.LI:case b.DD:case b.DT:{nW(e,t);break}case b.BR:case b.IMG:case b.WBR:case b.AREA:case b.EMBED:case b.KEYGEN:{D8(e,t);break}case b.HR:{pW(e,t);break}case b.RB:case b.RTC:{kW(e,t);break}case b.RT:case b.RP:{TW(e,t);break}case b.PRE:case b.LISTING:{rW(e,t);break}case b.XMP:{bW(e,t);break}case b.SVG:{vW(e,t);break}case b.HTML:{QU(e,t);break}case b.BASE:case b.LINK:case b.META:case b.STYLE:case b.TITLE:case b.SCRIPT:case b.BGSOUND:case b.BASEFONT:case b.TEMPLATE:{Li(e,t);break}case b.BODY:{ZU(e,t);break}case b.FORM:{iW(e,t);break}case b.NOBR:{uW(e,t);break}case b.MATH:{wW(e,t);break}case b.TABLE:{hW(e,t);break}case b.INPUT:{dW(e,t);break}case b.PARAM:case b.TRACK:case b.SOURCE:{fW(e,t);break}case b.IMAGE:{mW(e,t);break}case b.BUTTON:{sW(e,t);break}case b.APPLET:case b.OBJECT:case b.MARQUEE:{cW(e,t);break}case b.IFRAME:{yW(e,t);break}case b.SELECT:{xW(e,t);break}case b.OPTION:case b.OPTGROUP:{CW(e,t);break}case b.NOEMBED:case b.NOFRAMES:{Lb(e,t);break}case b.FRAMESET:{JU(e,t);break}case b.TEXTAREA:{gW(e,t);break}case b.NOSCRIPT:{e.options.scriptingEnabled?Lb(e,t):Ib(e,t);break}case b.PLAINTEXT:{aW(e,t);break}case b.COL:case b.TH:case b.TD:case b.TR:case b.HEAD:case b.FRAME:case b.TBODY:case b.TFOOT:case b.THEAD:case b.CAPTION:case b.COLGROUP:break;default:Ib(e,t)}}function SW(e,t){if(e.openElements.hasInScope(b.BODY)&&(e.insertionMode=U.AFTER_BODY,e.options.sourceCodeLocationInfo)){const r=e.openElements.tryPeekProperlyNestedBodyElement();r&&e._setEndLocation(r,t)}}function EW(e,t){e.openElements.hasInScope(b.BODY)&&(e.insertionMode=U.AFTER_BODY,V8(e,t))}function _W(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r))}function AW(e){const t=e.openElements.tmplCount>0,{formElement:r}=e;t||(e.formElement=null),(r||t)&&e.openElements.hasInScope(b.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(b.FORM):r&&e.openElements.remove(r))}function BW(e){e.openElements.hasInButtonScope(b.P)||e._insertFakeElement(tt.P,b.P),e._closePElement()}function LW(e){e.openElements.hasInListItemScope(b.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(b.LI),e.openElements.popUntilTagNamePopped(b.LI))}function IW(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.popUntilTagNamePopped(r))}function MW(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function NW(e,t){const r=t.tagID;e.openElements.hasInScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker())}function FW(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(tt.BR,b.BR),e.openElements.pop(),e.framesetOk=!1}function P8(e,t){const r=t.tagName,i=t.tagID;for(let n=e.openElements.stackTop;n>0;n--){const a=e.openElements.items[n],s=e.openElements.tagIDs[n];if(i===s&&(i!==b.UNKNOWN||e.treeAdapter.getTagName(a)===r)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=n&&e.openElements.shortenToLength(n);break}if(e._isSpecialElement(a,s))break}}function Ah(e,t){switch(t.tagID){case b.A:case b.B:case b.I:case b.S:case b.U:case b.EM:case b.TT:case b.BIG:case b.CODE:case b.FONT:case b.NOBR:case b.SMALL:case b.STRIKE:case b.STRONG:{Bp(e,t);break}case b.P:{BW(e);break}case b.DL:case b.UL:case b.OL:case b.DIR:case b.DIV:case b.NAV:case b.PRE:case b.MAIN:case b.MENU:case b.ASIDE:case b.BUTTON:case b.CENTER:case b.FIGURE:case b.FOOTER:case b.HEADER:case b.HGROUP:case b.DIALOG:case b.ADDRESS:case b.ARTICLE:case b.DETAILS:case b.SEARCH:case b.SECTION:case b.SUMMARY:case b.LISTING:case b.FIELDSET:case b.BLOCKQUOTE:case b.FIGCAPTION:{_W(e,t);break}case b.LI:{LW(e);break}case b.DD:case b.DT:{IW(e,t);break}case b.H1:case b.H2:case b.H3:case b.H4:case b.H5:case b.H6:{MW(e);break}case b.BR:{FW(e);break}case b.BODY:{SW(e,t);break}case b.HTML:{EW(e,t);break}case b.FORM:{AW(e);break}case b.APPLET:case b.OBJECT:case b.MARQUEE:{NW(e,t);break}case b.TEMPLATE:{Ga(e,t);break}default:P8(e,t)}}function $8(e,t){e.tmplInsertionModeStack.length>0?Y8(e,t):Lp(e,t)}function OW(e,t){var r;t.tagID===b.SCRIPT&&((r=e.scriptHandler)===null||r===void 0||r.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function DW(e,t){e._err(t,st.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function O0(e,t){if(e.openElements.currentTagId!==void 0&&N8.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=U.IN_TABLE_TEXT,t.type){case se.CHARACTER:{H8(e,t);break}case se.WHITESPACE_CHARACTER:{z8(e,t);break}}else zl(e,t)}function RW(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ht.HTML),e.insertionMode=U.IN_CAPTION}function PW(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ht.HTML),e.insertionMode=U.IN_COLUMN_GROUP}function $W(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(tt.COLGROUP,b.COLGROUP),e.insertionMode=U.IN_COLUMN_GROUP,Ip(e,t)}function zW(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ht.HTML),e.insertionMode=U.IN_TABLE_BODY}function HW(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(tt.TBODY,b.TBODY),e.insertionMode=U.IN_TABLE_BODY,Bh(e,t)}function qW(e,t){e.openElements.hasInTableScope(b.TABLE)&&(e.openElements.popUntilTagNamePopped(b.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function UW(e,t){R8(t)?e._appendElement(t,ht.HTML):zl(e,t),t.ackSelfClosing=!0}function WW(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ht.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Ys(e,t){switch(t.tagID){case b.TD:case b.TH:case b.TR:{HW(e,t);break}case b.STYLE:case b.SCRIPT:case b.TEMPLATE:{Li(e,t);break}case b.COL:{$W(e,t);break}case b.FORM:{WW(e,t);break}case b.TABLE:{qW(e,t);break}case b.TBODY:case b.TFOOT:case b.THEAD:{zW(e,t);break}case b.INPUT:{UW(e,t);break}case b.CAPTION:{RW(e,t);break}case b.COLGROUP:{PW(e,t);break}default:zl(e,t)}}function kl(e,t){switch(t.tagID){case b.TABLE:{e.openElements.hasInTableScope(b.TABLE)&&(e.openElements.popUntilTagNamePopped(b.TABLE),e._resetInsertionMode());break}case b.TEMPLATE:{Ga(e,t);break}case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:case b.TBODY:case b.TD:case b.TFOOT:case b.TH:case b.THEAD:case b.TR:break;default:zl(e,t)}}function zl(e,t){const r=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,_h(e,t),e.fosterParentingEnabled=r}function z8(e,t){e.pendingCharacterTokens.push(t)}function H8(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function wo(e,t){let r=0;if(e.hasNonWhitespacePendingCharacterToken)for(;r<e.pendingCharacterTokens.length;r++)zl(e,e.pendingCharacterTokens[r]);else for(;r<e.pendingCharacterTokens.length;r++)e._insertCharacters(e.pendingCharacterTokens[r]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const q8=new Set([b.CAPTION,b.COL,b.COLGROUP,b.TBODY,b.TD,b.TFOOT,b.TH,b.THEAD,b.TR]);function jW(e,t){const r=t.tagID;q8.has(r)?e.openElements.hasInTableScope(b.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(b.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,Ys(e,t)):wr(e,t)}function YW(e,t){const r=t.tagID;switch(r){case b.CAPTION:case b.TABLE:{e.openElements.hasInTableScope(b.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(b.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_TABLE,r===b.TABLE&&kl(e,t));break}case b.BODY:case b.COL:case b.COLGROUP:case b.HTML:case b.TBODY:case b.TD:case b.TFOOT:case b.TH:case b.THEAD:case b.TR:break;default:Ah(e,t)}}function Ip(e,t){switch(t.tagID){case b.HTML:{wr(e,t);break}case b.COL:{e._appendElement(t,ht.HTML),t.ackSelfClosing=!0;break}case b.TEMPLATE:{Li(e,t);break}default:Dc(e,t)}}function VW(e,t){switch(t.tagID){case b.COLGROUP:{e.openElements.currentTagId===b.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case b.TEMPLATE:{Ga(e,t);break}case b.COL:break;default:Dc(e,t)}}function Dc(e,t){e.openElements.currentTagId===b.COLGROUP&&(e.openElements.pop(),e.insertionMode=U.IN_TABLE,e._processToken(t))}function Bh(e,t){switch(t.tagID){case b.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ht.HTML),e.insertionMode=U.IN_ROW;break}case b.TH:case b.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(tt.TR,b.TR),e.insertionMode=U.IN_ROW,Lh(e,t);break}case b.CAPTION:case b.COL:case b.COLGROUP:case b.TBODY:case b.TFOOT:case b.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,Ys(e,t));break}default:Ys(e,t)}}function Ff(e,t){const r=t.tagID;switch(t.tagID){case b.TBODY:case b.TFOOT:case b.THEAD:{e.openElements.hasInTableScope(r)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE);break}case b.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE,kl(e,t));break}case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:case b.TD:case b.TH:case b.TR:break;default:kl(e,t)}}function Lh(e,t){switch(t.tagID){case b.TH:case b.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,ht.HTML),e.insertionMode=U.IN_CELL,e.activeFormattingElements.insertMarker();break}case b.CAPTION:case b.COL:case b.COLGROUP:case b.TBODY:case b.TFOOT:case b.THEAD:case b.TR:{e.openElements.hasInTableScope(b.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Bh(e,t));break}default:Ys(e,t)}}function U8(e,t){switch(t.tagID){case b.TR:{e.openElements.hasInTableScope(b.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY);break}case b.TABLE:{e.openElements.hasInTableScope(b.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Ff(e,t));break}case b.TBODY:case b.TFOOT:case b.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(b.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=U.IN_TABLE_BODY,Ff(e,t));break}case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:case b.TD:case b.TH:break;default:kl(e,t)}}function GW(e,t){const r=t.tagID;q8.has(r)?(e.openElements.hasInTableScope(b.TD)||e.openElements.hasInTableScope(b.TH))&&(e._closeTableCell(),Lh(e,t)):wr(e,t)}function XW(e,t){const r=t.tagID;switch(r){case b.TD:case b.TH:{e.openElements.hasInTableScope(r)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(r),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=U.IN_ROW);break}case b.TABLE:case b.TBODY:case b.TFOOT:case b.THEAD:case b.TR:{e.openElements.hasInTableScope(r)&&(e._closeTableCell(),U8(e,t));break}case b.BODY:case b.CAPTION:case b.COL:case b.COLGROUP:case b.HTML:break;default:Ah(e,t)}}function W8(e,t){switch(t.tagID){case b.HTML:{wr(e,t);break}case b.OPTION:{e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e._insertElement(t,ht.HTML);break}case b.OPTGROUP:{e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e.openElements.currentTagId===b.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ht.HTML);break}case b.HR:{e.openElements.currentTagId===b.OPTION&&e.openElements.pop(),e.openElements.currentTagId===b.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ht.HTML),t.ackSelfClosing=!0;break}case b.INPUT:case b.KEYGEN:case b.TEXTAREA:case b.SELECT:{e.openElements.hasInSelectScope(b.SELECT)&&(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode(),t.tagID!==b.SELECT&&e._processStartTag(t));break}case b.SCRIPT:case b.TEMPLATE:{Li(e,t);break}}}function j8(e,t){switch(t.tagID){case b.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===b.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===b.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===b.OPTGROUP&&e.openElements.pop();break}case b.OPTION:{e.openElements.currentTagId===b.OPTION&&e.openElements.pop();break}case b.SELECT:{e.openElements.hasInSelectScope(b.SELECT)&&(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode());break}case b.TEMPLATE:{Ga(e,t);break}}}function KW(e,t){const r=t.tagID;r===b.CAPTION||r===b.TABLE||r===b.TBODY||r===b.TFOOT||r===b.THEAD||r===b.TR||r===b.TD||r===b.TH?(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode(),e._processStartTag(t)):W8(e,t)}function QW(e,t){const r=t.tagID;r===b.CAPTION||r===b.TABLE||r===b.TBODY||r===b.TFOOT||r===b.THEAD||r===b.TR||r===b.TD||r===b.TH?e.openElements.hasInTableScope(r)&&(e.openElements.popUntilTagNamePopped(b.SELECT),e._resetInsertionMode(),e.onEndTag(t)):j8(e,t)}function ZW(e,t){switch(t.tagID){case b.BASE:case b.BASEFONT:case b.BGSOUND:case b.LINK:case b.META:case b.NOFRAMES:case b.SCRIPT:case b.STYLE:case b.TEMPLATE:case b.TITLE:{Li(e,t);break}case b.CAPTION:case b.COLGROUP:case b.TBODY:case b.TFOOT:case b.THEAD:{e.tmplInsertionModeStack[0]=U.IN_TABLE,e.insertionMode=U.IN_TABLE,Ys(e,t);break}case b.COL:{e.tmplInsertionModeStack[0]=U.IN_COLUMN_GROUP,e.insertionMode=U.IN_COLUMN_GROUP,Ip(e,t);break}case b.TR:{e.tmplInsertionModeStack[0]=U.IN_TABLE_BODY,e.insertionMode=U.IN_TABLE_BODY,Bh(e,t);break}case b.TD:case b.TH:{e.tmplInsertionModeStack[0]=U.IN_ROW,e.insertionMode=U.IN_ROW,Lh(e,t);break}default:e.tmplInsertionModeStack[0]=U.IN_BODY,e.insertionMode=U.IN_BODY,wr(e,t)}}function JW(e,t){t.tagID===b.TEMPLATE&&Ga(e,t)}function Y8(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(b.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Lp(e,t)}function tj(e,t){t.tagID===b.HTML?wr(e,t):Rc(e,t)}function V8(e,t){var r;if(t.tagID===b.HTML){if(e.fragmentContext||(e.insertionMode=U.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===b.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];i&&!(!((r=e.treeAdapter.getNodeSourceCodeLocation(i))===null||r===void 0)&&r.endTag)&&e._setEndLocation(i,t)}}else Rc(e,t)}function Rc(e,t){e.insertionMode=U.IN_BODY,_h(e,t)}function ej(e,t){switch(t.tagID){case b.HTML:{wr(e,t);break}case b.FRAMESET:{e._insertElement(t,ht.HTML);break}case b.FRAME:{e._appendElement(t,ht.HTML),t.ackSelfClosing=!0;break}case b.NOFRAMES:{Li(e,t);break}}}function rj(e,t){t.tagID===b.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==b.FRAMESET&&(e.insertionMode=U.AFTER_FRAMESET))}function ij(e,t){switch(t.tagID){case b.HTML:{wr(e,t);break}case b.NOFRAMES:{Li(e,t);break}}}function nj(e,t){t.tagID===b.HTML&&(e.insertionMode=U.AFTER_AFTER_FRAMESET)}function aj(e,t){t.tagID===b.HTML?wr(e,t):Wu(e,t)}function Wu(e,t){e.insertionMode=U.IN_BODY,_h(e,t)}function sj(e,t){switch(t.tagID){case b.HTML:{wr(e,t);break}case b.NOFRAMES:{Li(e,t);break}}}function oj(e,t){t.chars=Ee,e._insertCharacters(t)}function lj(e,t){e._insertCharacters(t),e.framesetOk=!1}function G8(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ht.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function uj(e,t){if(vU(t))G8(e),e._startTagOutsideForeignContent(t);else{const r=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(r);i===ht.MATHML?I8(t):i===ht.SVG&&(SU(t),M8(t)),Ap(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function cj(e,t){if(t.tagID===b.P||t.tagID===b.BR){G8(e),e._endTagOutsideForeignContent(t);return}for(let r=e.openElements.stackTop;r>0;r--){const i=e.openElements.items[r];if(e.treeAdapter.getNamespaceURI(i)===ht.HTML){e._endTagOutsideForeignContent(t);break}const n=e.treeAdapter.getTagName(i);if(n.toLowerCase()===t.tagName){t.tagName=n,e.openElements.shortenToLength(r);break}}}tt.AREA,tt.BASE,tt.BASEFONT,tt.BGSOUND,tt.BR,tt.COL,tt.EMBED,tt.FRAME,tt.HR,tt.IMG,tt.INPUT,tt.KEYGEN,tt.LINK,tt.META,tt.PARAM,tt.SOURCE,tt.TRACK,tt.WBR;const Ih=X8("end"),ln=X8("start");function X8(e){return t;function t(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function K8(e){const t=ln(e),r=Ih(e);if(t&&r)return{start:t,end:r}}const hj=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,dj=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Mb={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Q8(e,t){const r=Tj(e),i=C8("type",{handlers:{root:fj,element:pj,text:mj,comment:J8,doctype:gj,raw:yj},unknown:xj}),n={parser:r?new Bb(Mb):Bb.getFragmentParser(void 0,Mb),handle(o){i(o,n)},stitches:!1,options:t||{}};i(e,n),ao(n,ln());const a=r?n.parser.document:n.parser.getFragment(),s=wq(a,{file:n.options.file});return n.stitches&&Ei(s,"comment",function(o,l,u){const c=o;if(c.value.stitch&&u&&l!==void 0){const h=u.children;return h[l]=c.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Z8(e,t){let r=-1;if(e)for(;++r<e.length;)t.handle(e[r])}function fj(e,t){Z8(e.children,t)}function pj(e,t){Cj(e,t),Z8(e.children,t),kj(e,t)}function mj(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const r={type:se.CHARACTER,chars:e.value,location:Hl(e)};ao(t,ln(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function gj(e,t){const r={type:se.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Hl(e)};ao(t,ln(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function bj(e,t){t.stitches=!0;const r=wj(e);if("children"in e&&"children"in r){const i=Q8({type:"root",children:e.children},t.options);r.children=i.children}J8({type:"comment",value:{stitch:r}},t)}function J8(e,t){const r=e.value,i={type:se.COMMENT,data:r,location:Hl(e)};ao(t,ln(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function yj(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,t7(t,ln(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(hj,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const r=t.parser.tokenizer._consume();t.parser.tokenizer._callState(r)}}function xj(e,t){const r=e;if(t.options.passThrough&&t.options.passThrough.includes(r.type))bj(r,t);else{let i="";throw dj.has(r.type)&&(i=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+r.type+"` node"+i)}}function ao(e,t){t7(e,t);const r=e.parser.tokenizer.currentCharacterToken;r&&r.location&&(r.location.endLine=e.parser.tokenizer.preprocessor.line,r.location.endCol=e.parser.tokenizer.preprocessor.col+1,r.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=r,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=$e.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function t7(e,t){if(t&&t.offset!==void 0){const r={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=r}}function Cj(e,t){const r=e.tagName.toLowerCase();if(t.parser.tokenizer.state===$e.PLAINTEXT)return;ao(t,ln(e));const i=t.parser.openElements.current;let n="namespaceURI"in i?i.namespaceURI:Vi.html;n===Vi.html&&r==="svg"&&(n=Vi.svg);const a=Aq({...e,children:[]},{space:n===Vi.svg?"svg":"html"}),s={type:se.START_TAG,tagName:r,tagID:no(r),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Hl(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=r}function kj(e,t){const r=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Dq.includes(r)||t.parser.tokenizer.state===$e.PLAINTEXT)return;ao(t,Ih(e));const i={type:se.END_TAG,tagName:r,tagID:no(r),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Hl(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),r===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===$e.RCDATA||t.parser.tokenizer.state===$e.RAWTEXT||t.parser.tokenizer.state===$e.SCRIPT_DATA)&&(t.parser.tokenizer.state=$e.DATA)}function Tj(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Hl(e){const t=ln(e)||{line:void 0,column:void 0,offset:void 0},r=Ih(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:r.line,endCol:r.column,endOffset:r.offset}}function wj(e){return"children"in e?Ha({...e,children:[]}):Ha(e)}function Of(e){return function(t,r){return Q8(t,{...e,file:r})}}const ma=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],ka={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...ma,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...ma],h2:[["className","sr-only"]],img:[...ma,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...ma,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...ma],table:[...ma],ul:[...ma,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Hn={}.hasOwnProperty;function vj(e,t){let r={type:"root",children:[]};const i={schema:t?{...ka,...t}:ka,stack:[]},n=e7(i,e);return n&&(Array.isArray(n)?n.length===1?r=n[0]:r.children=n:r=n),r}function e7(e,t){if(t&&typeof t=="object"){const r=t;switch(typeof r.type=="string"?r.type:""){case"comment":return Sj(e,r);case"doctype":return Ej(e,r);case"element":return _j(e,r);case"root":return Aj(e,r);case"text":return Bj(e,r)}}}function Sj(e,t){if(e.schema.allowComments){const r=typeof t.value=="string"?t.value:"",i=r.indexOf("-->"),a={type:"comment",value:i<0?r:r.slice(0,i)};return ql(a,t),a}}function Ej(e,t){if(e.schema.allowDoctypes){const r={type:"doctype"};return ql(r,t),r}}function _j(e,t){const r=typeof t.tagName=="string"?t.tagName:"";e.stack.push(r);const i=r7(e,t.children),n=Lj(e,t.properties);e.stack.pop();let a=!1;if(r&&r!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(r))&&(a=!0,e.schema.ancestors&&Hn.call(e.schema.ancestors,r))){const o=e.schema.ancestors[r];let l=-1;for(a=!1;++l<o.length;)e.stack.includes(o[l])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(r)?i:void 0;const s={type:"element",tagName:r,properties:n,children:i};return ql(s,t),s}function Aj(e,t){const i={type:"root",children:r7(e,t.children)};return ql(i,t),i}function Bj(e,t){const i={type:"text",value:typeof t.value=="string"?t.value:""};return ql(i,t),i}function r7(e,t){const r=[];if(Array.isArray(t)){const i=t;let n=-1;for(;++n<i.length;){const a=e7(e,i[n]);a&&(Array.isArray(a)?r.push(...a):r.push(a))}}return r}function Lj(e,t){const r=e.stack[e.stack.length-1],i=e.schema.attributes,n=e.schema.required,a=i&&Hn.call(i,r)?i[r]:void 0,s=i&&Hn.call(i,"*")?i["*"]:void 0,o=t&&typeof t=="object"?t:{},l={};let u;for(u in o)if(Hn.call(o,u)){const c=o[u];let h=Nb(e,Fb(a,u),u,c);h==null&&(h=Nb(e,Fb(s,u),u,c)),h!=null&&(l[u]=h)}if(n&&Hn.call(n,r)){const c=n[r];for(u in c)Hn.call(c,u)&&!Hn.call(l,u)&&(l[u]=c[u])}return l}function Nb(e,t,r,i){return t?Array.isArray(i)?Ij(e,t,r,i):i7(e,t,r,i):void 0}function Ij(e,t,r,i){let n=-1;const a=[];for(;++n<i.length;){const s=i7(e,t,r,i[n]);(typeof s=="number"||typeof s=="string")&&a.push(s)}return a}function i7(e,t,r,i){if(!(typeof i!="boolean"&&typeof i!="number"&&typeof i!="string")&&Mj(e,r,i)){if(typeof t=="object"&&t.length>1){let n=!1,a=0;for(;++a<t.length;){const s=t[a];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(i))){n=!0;break}}else if(s===i){n=!0;break}}if(!n)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(r)?e.schema.clobberPrefix+i:i}}function Mj(e,t,r){const i=e.schema.protocols&&Hn.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!i||i.length===0)return!0;const n=String(r),a=n.indexOf(":"),s=n.indexOf("?"),o=n.indexOf("#"),l=n.indexOf("/");if(a<0||l>-1&&a>l||s>-1&&a>s||o>-1&&a>o)return!0;let u=-1;for(;++u<i.length;){const c=i[u];if(a===c.length&&n.slice(0,c.length)===c)return!0}return!1}function ql(e,t){const r=K8(t);t.data&&(e.data=Ha(t.data)),r&&(e.position=r)}function Fb(e,t){let r,i=-1;if(e)for(;++i<e.length;){const n=e[i],a=typeof n=="string"?n:n[0];if(a===t)return n;a==="data*"&&(r=n)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return r}function n7(e){return function(t){return vj(t,e)}}function Ob(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,n=r.indexOf(t);for(;n!==-1;)i++,n=r.indexOf(t,n+t.length);return i}const D0="phrasing",R0=["autolink","link","image","label"];function Nj(){return{transforms:[zj],enter:{literalAutolink:Oj,literalAutolinkEmail:P0,literalAutolinkHttp:P0,literalAutolinkWww:P0},exit:{literalAutolink:$j,literalAutolinkEmail:Pj,literalAutolinkHttp:Dj,literalAutolinkWww:Rj}}}function Fj(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:D0,notInConstruct:R0},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:D0,notInConstruct:R0},{character:":",before:"[ps]",after:"\\/",inConstruct:D0,notInConstruct:R0}]}}function Oj(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function P0(e){this.config.enter.autolinkProtocol.call(this,e)}function Dj(e){this.config.exit.autolinkProtocol.call(this,e)}function Rj(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Pj(e){this.config.exit.autolinkEmail.call(this,e)}function $j(e){this.exit(e)}function zj(e){f8(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Hj],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),qj]],{ignore:["link","linkReference"]})}function Hj(e,t,r,i,n){let a="";if(!a7(n)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!Uj(r)))return!1;const s=Wj(r+i);if(!s[0])return!1;const o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function qj(e,t,r,i){return!a7(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function Uj(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Wj(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],i=r.indexOf(")");const n=Ob(e,"(");let a=Ob(e,")");for(;i!==-1&&n>a;)e+=r.slice(0,i+1),r=r.slice(i+1),i=r.indexOf(")"),a++;return[e,r]}function a7(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Na(r)||Uc(r))&&(!t||r!==47)}function Si(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}s7.peek=Jj;function jj(){this.buffer()}function Yj(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Vj(){this.buffer()}function Gj(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Xj(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Si(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Kj(e){this.exit(e)}function Qj(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Si(this.sliceSerialize(e)).toLowerCase(),r.label=t}function Zj(e){this.exit(e)}function Jj(){return"["}function s7(e,t,r,i){const n=r.createTracker(i);let a=n.move("[^");const s=r.enter("footnoteReference"),o=r.enter("reference");return a+=n.move(r.safe(r.associationId(e),{after:"]",before:a})),o(),s(),a+=n.move("]"),a}function tY(){return{enter:{gfmFootnoteCallString:jj,gfmFootnoteCall:Yj,gfmFootnoteDefinitionLabelString:Vj,gfmFootnoteDefinition:Gj},exit:{gfmFootnoteCallString:Xj,gfmFootnoteCall:Kj,gfmFootnoteDefinitionLabelString:Qj,gfmFootnoteDefinition:Zj}}}function eY(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:s7},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,n,a,s){const o=a.createTracker(s);let l=o.move("[^");const u=a.enter("footnoteDefinition"),c=a.enter("label");return l+=o.move(a.safe(a.associationId(i),{before:l,after:"]"})),c(),l+=o.move("]:"),i.children&&i.children.length>0&&(o.shift(4),l+=o.move((t?`
|
|
583
|
+
`:" ")+a.indentLines(a.containerFlow(i,o.current()),t?o7:rY))),u(),l}}function rY(e,t,r){return t===0?e:o7(e,t,r)}function o7(e,t,r){return(r?"":" ")+e}const iY=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];l7.peek=lY;function nY(){return{canContainEols:["delete"],enter:{strikethrough:sY},exit:{strikethrough:oY}}}function aY(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:iY}],handlers:{delete:l7}}}function sY(e){this.enter({type:"delete",children:[]},e)}function oY(e){this.exit(e)}function l7(e,t,r,i){const n=r.createTracker(i),a=r.enter("strikethrough");let s=n.move("~~");return s+=r.containerPhrasing(e,{...n.current(),before:s,after:"~"}),s+=n.move("~~"),a(),s}function lY(){return"~"}function uY(e){return e.length}function cY(e,t){const r=t||{},i=(r.align||[]).concat(),n=r.stringLength||uY,a=[],s=[],o=[],l=[];let u=0,c=-1;for(;++c<e.length;){const m=[],g=[];let y=-1;for(e[c].length>u&&(u=e[c].length);++y<e[c].length;){const k=hY(e[c][y]);if(r.alignDelimiters!==!1){const w=n(k);g[y]=w,(l[y]===void 0||w>l[y])&&(l[y]=w)}m.push(k)}s[c]=m,o[c]=g}let h=-1;if(typeof i=="object"&&"length"in i)for(;++h<u;)a[h]=Db(i[h]);else{const m=Db(i);for(;++h<u;)a[h]=m}h=-1;const f=[],d=[];for(;++h<u;){const m=a[h];let g="",y="";m===99?(g=":",y=":"):m===108?g=":":m===114&&(y=":");let k=r.alignDelimiters===!1?1:Math.max(1,l[h]-g.length-y.length);const w=g+"-".repeat(k)+y;r.alignDelimiters!==!1&&(k=g.length+k+y.length,k>l[h]&&(l[h]=k),d[h]=k),f[h]=w}s.splice(1,0,f),o.splice(1,0,d),c=-1;const p=[];for(;++c<s.length;){const m=s[c],g=o[c];h=-1;const y=[];for(;++h<u;){const k=m[h]||"";let w="",_="";if(r.alignDelimiters!==!1){const A=l[h]-(g[h]||0),E=a[h];E===114?w=" ".repeat(A):E===99?A%2?(w=" ".repeat(A/2+.5),_=" ".repeat(A/2-.5)):(w=" ".repeat(A/2),_=w):_=" ".repeat(A)}r.delimiterStart!==!1&&!h&&y.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&k==="")&&(r.delimiterStart!==!1||h)&&y.push(" "),r.alignDelimiters!==!1&&y.push(w),y.push(k),r.alignDelimiters!==!1&&y.push(_),r.padding!==!1&&y.push(" "),(r.delimiterEnd!==!1||h!==u-1)&&y.push("|")}p.push(r.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return p.join(`
|
|
584
|
+
`)}function hY(e){return e==null?"":String(e)}function Db(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function dY(e,t,r,i){const n=r.enter("blockquote"),a=r.createTracker(i);a.move("> "),a.shift(2);const s=r.indentLines(r.containerFlow(e,a.current()),fY);return n(),s}function fY(e,t,r){return">"+(r?"":" ")+e}function pY(e,t){return Rb(e,t.inConstruct,!0)&&!Rb(e,t.notInConstruct,!1)}function Rb(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Pb(e,t,r,i){let n=-1;for(;++n<r.unsafe.length;)if(r.unsafe[n].character===`
|
|
585
|
+
`&&pY(r.stack,r.unsafe[n]))return/[ \t]/.test(i.before)?"":" ";return`\\
|
|
586
|
+
`}function mY(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function gY(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function bY(e,t,r,i){const n=gY(r),a=e.value||"",s=n==="`"?"GraveAccent":"Tilde";if(mY(e,r)){const h=r.enter("codeIndented"),f=r.indentLines(a,yY);return h(),f}const o=r.createTracker(i),l=n.repeat(Math.max($3(a,n)+1,3)),u=r.enter("codeFenced");let c=o.move(l);if(e.lang){const h=r.enter(`codeFencedLang${s}`);c+=o.move(r.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),h()}if(e.lang&&e.meta){const h=r.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(r.safe(e.meta,{before:c,after:`
|
|
587
|
+
`,encode:["`"],...o.current()})),h()}return c+=o.move(`
|
|
588
|
+
`),a&&(c+=o.move(a+`
|
|
589
|
+
`)),c+=o.move(l),u(),c}function yY(e,t,r){return(r?"":" ")+e}function Mp(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function xY(e,t,r,i){const n=Mp(r),a=n==='"'?"Quote":"Apostrophe",s=r.enter("definition");let o=r.enter("label");const l=r.createTracker(i);let u=l.move("[");return u+=l.move(r.safe(r.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":`
|
|
590
|
+
`,...l.current()}))),o(),e.title&&(o=r.enter(`title${a}`),u+=l.move(" "+n),u+=l.move(r.safe(e.title,{before:u,after:n,...l.current()})),u+=l.move(n),o()),s(),u}function CY(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Tl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Vs(e){if(e===null||we(e)||Na(e))return 1;if(Uc(e))return 2}function Pc(e,t,r){const i=Vs(e),n=Vs(t);return i===void 0?n===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:n===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?n===void 0?{inside:!1,outside:!1}:n===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:n===void 0?{inside:!1,outside:!1}:n===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}u7.peek=kY;function u7(e,t,r,i){const n=CY(r),a=r.enter("emphasis"),s=r.createTracker(i),o=s.move(n);let l=s.move(r.containerPhrasing(e,{after:n,before:o,...s.current()}));const u=l.charCodeAt(0),c=Pc(i.before.charCodeAt(i.before.length-1),u,n);c.inside&&(l=Tl(u)+l.slice(1));const h=l.charCodeAt(l.length-1),f=Pc(i.after.charCodeAt(0),h,n);f.inside&&(l=l.slice(0,-1)+Tl(h));const d=s.move(n);return a(),r.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},o+l+d}function kY(e,t,r){return r.options.emphasis||"*"}const TY={};function Np(e,t){const r=TY,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,n=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return c7(e,i,n)}function c7(e,t,r){if(wY(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return $b(e.children,t,r)}return Array.isArray(e)?$b(e,t,r):""}function $b(e,t,r){const i=[];let n=-1;for(;++n<e.length;)i[n]=c7(e[n],t,r);return i.join("")}function wY(e){return!!(e&&typeof e=="object")}function vY(e,t){let r=!1;return Ei(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,sd}),!!((!e.depth||e.depth<3)&&Np(e)&&(t.options.setext||r))}function SY(e,t,r,i){const n=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(i);if(vY(e,r)){const c=r.enter("headingSetext"),h=r.enter("phrasing"),f=r.containerPhrasing(e,{...a.current(),before:`
|
|
591
|
+
`,after:`
|
|
592
|
+
`});return h(),c(),f+`
|
|
593
|
+
`+(n===1?"=":"-").repeat(f.length-(Math.max(f.lastIndexOf("\r"),f.lastIndexOf(`
|
|
594
|
+
`))+1))}const s="#".repeat(n),o=r.enter("headingAtx"),l=r.enter("phrasing");a.move(s+" ");let u=r.containerPhrasing(e,{before:"# ",after:`
|
|
595
|
+
`,...a.current()});return/^[\t ]/.test(u)&&(u=Tl(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,r.options.closeAtx&&(u+=" "+s),l(),o(),u}h7.peek=EY;function h7(e){return e.value||""}function EY(){return"<"}d7.peek=_Y;function d7(e,t,r,i){const n=Mp(r),a=n==='"'?"Quote":"Apostrophe",s=r.enter("image");let o=r.enter("label");const l=r.createTracker(i);let u=l.move("![");return u+=l.move(r.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=r.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(r.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=r.enter("destinationRaw"),u+=l.move(r.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=r.enter(`title${a}`),u+=l.move(" "+n),u+=l.move(r.safe(e.title,{before:u,after:n,...l.current()})),u+=l.move(n),o()),u+=l.move(")"),s(),u}function _Y(){return"!"}f7.peek=AY;function f7(e,t,r,i){const n=e.referenceType,a=r.enter("imageReference");let s=r.enter("label");const o=r.createTracker(i);let l=o.move("![");const u=r.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=r.stack;r.stack=[],s=r.enter("reference");const h=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return s(),r.stack=c,a(),n==="full"||!u||u!==h?l+=o.move(h+"]"):n==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function AY(){return"!"}p7.peek=BY;function p7(e,t,r){let i=e.value||"",n="`",a=-1;for(;new RegExp("(^|[^`])"+n+"([^`]|$)").test(i);)n+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++a<r.unsafe.length;){const s=r.unsafe[a],o=r.compilePattern(s);let l;if(s.atBreak)for(;l=o.exec(i);){let u=l.index;i.charCodeAt(u)===10&&i.charCodeAt(u-1)===13&&u--,i=i.slice(0,u)+" "+i.slice(l.index+1)}}return n+i+n}function BY(){return"`"}function m7(e,t){const r=Np(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}g7.peek=LY;function g7(e,t,r,i){const n=Mp(r),a=n==='"'?"Quote":"Apostrophe",s=r.createTracker(i);let o,l;if(m7(e,r)){const c=r.stack;r.stack=[],o=r.enter("autolink");let h=s.move("<");return h+=s.move(r.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),o(),r.stack=c,h}o=r.enter("link"),l=r.enter("label");let u=s.move("[");return u+=s.move(r.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=r.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(r.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=r.enter("destinationRaw"),u+=s.move(r.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=r.enter(`title${a}`),u+=s.move(" "+n),u+=s.move(r.safe(e.title,{before:u,after:n,...s.current()})),u+=s.move(n),l()),u+=s.move(")"),o(),u}function LY(e,t,r){return m7(e,r)?"<":"["}b7.peek=IY;function b7(e,t,r,i){const n=e.referenceType,a=r.enter("linkReference");let s=r.enter("label");const o=r.createTracker(i);let l=o.move("[");const u=r.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=r.stack;r.stack=[],s=r.enter("reference");const h=r.safe(r.associationId(e),{before:l,after:"]",...o.current()});return s(),r.stack=c,a(),n==="full"||!u||u!==h?l+=o.move(h+"]"):n==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function IY(){return"["}function Fp(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function MY(e){const t=Fp(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function NY(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function y7(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function FY(e,t,r,i){const n=r.enter("list"),a=r.bulletCurrent;let s=e.ordered?NY(r):Fp(r);const o=e.ordered?s==="."?")":".":MY(r);let l=t&&r.bulletLastUsed?s===r.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(l=!0),y7(r)===s&&c){let h=-1;for(;++h<e.children.length;){const f=e.children[h];if(f&&f.type==="listItem"&&f.children&&f.children[0]&&f.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),r.bulletCurrent=s;const u=r.containerFlow(e,i);return r.bulletLastUsed=s,r.bulletCurrent=a,n(),u}function OY(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function DY(e,t,r,i){const n=OY(r);let a=r.bulletCurrent||Fp(r);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(n==="tab"||n==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=r.createTracker(i);o.move(a+" ".repeat(s-a.length)),o.shift(s);const l=r.enter("listItem"),u=r.indentLines(r.containerFlow(e,o.current()),c);return l(),u;function c(h,f,d){return f?(d?"":" ".repeat(s))+h:(d?a:a+" ".repeat(s-a.length))+h}}function RY(e,t,r,i){const n=r.enter("paragraph"),a=r.enter("phrasing"),s=r.containerPhrasing(e,i);return a(),n(),s}const PY=El(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function $Y(e,t,r,i){return(e.children.some(function(s){return PY(s)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function zY(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}x7.peek=HY;function x7(e,t,r,i){const n=zY(r),a=r.enter("strong"),s=r.createTracker(i),o=s.move(n+n);let l=s.move(r.containerPhrasing(e,{after:n,before:o,...s.current()}));const u=l.charCodeAt(0),c=Pc(i.before.charCodeAt(i.before.length-1),u,n);c.inside&&(l=Tl(u)+l.slice(1));const h=l.charCodeAt(l.length-1),f=Pc(i.after.charCodeAt(0),h,n);f.inside&&(l=l.slice(0,-1)+Tl(h));const d=s.move(n+n);return a(),r.attentionEncodeSurroundingInfo={after:f.outside,before:c.outside},o+l+d}function HY(e,t,r){return r.options.strong||"*"}function qY(e,t,r,i){return r.safe(e.value,i)}function UY(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function WY(e,t,r){const i=(y7(r)+(r.options.ruleSpaces?" ":"")).repeat(UY(r));return r.options.ruleSpaces?i.slice(0,-1):i}const C7={blockquote:dY,break:Pb,code:bY,definition:xY,emphasis:u7,hardBreak:Pb,heading:SY,html:h7,image:d7,imageReference:f7,inlineCode:p7,link:g7,linkReference:b7,list:FY,listItem:DY,paragraph:RY,root:$Y,strong:x7,text:qY,thematicBreak:WY},zb=document.createElement("i");function Op(e){const t="&"+e+";";zb.innerHTML=t;const r=zb.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function k7(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}const jY=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function YY(e){return e.replace(jY,VY)}function VY(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const n=r.charCodeAt(1),a=n===120||n===88;return k7(r.slice(a?2:1),a?16:10)}return Op(r)||e}function GY(){return{enter:{table:XY,tableData:Hb,tableHeader:Hb,tableRow:QY},exit:{codeText:ZY,table:KY,tableData:$0,tableHeader:$0,tableRow:$0}}}function XY(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function KY(e){this.exit(e),this.data.inTable=void 0}function QY(e){this.enter({type:"tableRow",children:[]},e)}function $0(e){this.exit(e)}function Hb(e){this.enter({type:"tableCell",children:[]},e)}function ZY(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,JY));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function JY(e,t){return t==="|"?t:e}function tV(e){const t=e||{},r=t.tableCellPadding,i=t.tablePipeAlign,n=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
596
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:s,tableCell:l,tableRow:o}};function s(d,p,m,g){return u(c(d,m,g),d.align)}function o(d,p,m,g){const y=h(d,m,g),k=u([y]);return k.slice(0,k.indexOf(`
|
|
597
|
+
`))}function l(d,p,m,g){const y=m.enter("tableCell"),k=m.enter("phrasing"),w=m.containerPhrasing(d,{...g,before:a,after:a});return k(),y(),w}function u(d,p){return cY(d,{align:p,alignDelimiters:i,padding:r,stringLength:n})}function c(d,p,m){const g=d.children;let y=-1;const k=[],w=p.enter("table");for(;++y<g.length;)k[y]=h(g[y],p,m);return w(),k}function h(d,p,m){const g=d.children;let y=-1;const k=[],w=p.enter("tableRow");for(;++y<g.length;)k[y]=l(g[y],d,p,m);return w(),k}function f(d,p,m){let g=C7.inlineCode(d,p,m);return m.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function eV(){return{exit:{taskListCheckValueChecked:qb,taskListCheckValueUnchecked:qb,paragraph:iV}}}function rV(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:nV}}}function qb(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function iV(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const i=r.children[0];if(i&&i.type==="text"){const n=t.children;let a=-1,s;for(;++a<n.length;){const o=n[a];if(o.type==="paragraph"){s=o;break}}s===r&&(i.value=i.value.slice(1),i.value.length===0?r.children.shift():r.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function nV(e,t,r,i){const n=e.children[0],a=typeof e.checked=="boolean"&&n&&n.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=r.createTracker(i);a&&o.move(s);let l=C7.listItem(e,t,r,{...i,...o.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function aV(){return[Nj(),tY(),nY(),GY(),eV()]}function sV(e){return{extensions:[Fj(),eY(e),aY(),tV(e),rV()]}}const Ub={}.hasOwnProperty;function T7(e){const t={};let r=-1;for(;++r<e.length;)oV(t,e[r]);return t}function oV(e,t){let r;for(r in t){const n=(Ub.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let s;if(a)for(s in a){Ub.call(n,s)||(n[s]=[]);const o=a[s];lV(n[s],Array.isArray(o)?o:o?[o]:[])}}}function lV(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);dr(e,0,0,i)}const uV={tokenize:mV,partial:!0},w7={tokenize:gV,partial:!0},v7={tokenize:bV,partial:!0},S7={tokenize:yV,partial:!0},cV={tokenize:xV,partial:!0},E7={name:"wwwAutolink",tokenize:fV,previous:A7},_7={name:"protocolAutolink",tokenize:pV,previous:B7},An={name:"emailAutolink",tokenize:dV,previous:L7},un={};function hV(){return{text:un}}let ga=48;for(;ga<123;)un[ga]=An,ga++,ga===58?ga=65:ga===91&&(ga=97);un[43]=An;un[45]=An;un[46]=An;un[95]=An;un[72]=[An,_7];un[104]=[An,_7];un[87]=[An,E7];un[119]=[An,E7];function dV(e,t,r){const i=this;let n,a;return s;function s(h){return!Df(h)||!L7.call(i,i.previous)||Dp(i.events)?r(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(h))}function o(h){return Df(h)?(e.consume(h),o):h===64?(e.consume(h),l):r(h)}function l(h){return h===46?e.check(cV,c,u)(h):h===45||h===95||yr(h)?(a=!0,e.consume(h),l):c(h)}function u(h){return e.consume(h),n=!0,l}function c(h){return a&&n&&Ir(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):r(h)}}function fV(e,t,r){const i=this;return n;function n(s){return s!==87&&s!==119||!A7.call(i,i.previous)||Dp(i.events)?r(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(uV,e.attempt(w7,e.attempt(v7,a),r),r)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function pV(e,t,r){const i=this;let n="",a=!1;return s;function s(h){return(h===72||h===104)&&B7.call(i,i.previous)&&!Dp(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),n+=String.fromCodePoint(h),e.consume(h),o):r(h)}function o(h){if(Ir(h)&&n.length<5)return n+=String.fromCodePoint(h),e.consume(h),o;if(h===58){const f=n.toLowerCase();if(f==="http"||f==="https")return e.consume(h),l}return r(h)}function l(h){return h===47?(e.consume(h),a?u:(a=!0,l)):r(h)}function u(h){return h===null||Gu(h)||we(h)||Na(h)||Uc(h)?r(h):e.attempt(w7,e.attempt(v7,c),r)(h)}function c(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function mV(e,t,r){let i=0;return n;function n(s){return(s===87||s===119)&&i<3?(i++,e.consume(s),n):s===46&&i===3?(e.consume(s),a):r(s)}function a(s){return s===null?r(s):t(s)}}function gV(e,t,r){let i,n,a;return s;function s(u){return u===46||u===95?e.check(S7,l,o)(u):u===null||we(u)||Na(u)||u!==45&&Uc(u)?l(u):(a=!0,e.consume(u),s)}function o(u){return u===95?i=!0:(n=i,i=void 0),e.consume(u),s}function l(u){return n||i||!a?r(u):t(u)}}function bV(e,t){let r=0,i=0;return n;function n(s){return s===40?(r++,e.consume(s),n):s===41&&i<r?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(S7,t,a)(s):s===null||we(s)||Na(s)?t(s):(e.consume(s),n)}function a(s){return s===41&&i++,e.consume(s),n}}function yV(e,t,r){return i;function i(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),i):o===38?(e.consume(o),a):o===93?(e.consume(o),n):o===60||o===null||we(o)||Na(o)?t(o):r(o)}function n(o){return o===null||o===40||o===91||we(o)||Na(o)?t(o):i(o)}function a(o){return Ir(o)?s(o):r(o)}function s(o){return o===59?(e.consume(o),i):Ir(o)?(e.consume(o),s):r(o)}}function xV(e,t,r){return i;function i(a){return e.consume(a),n}function n(a){return yr(a)?r(a):t(a)}}function A7(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||we(e)}function B7(e){return!Ir(e)}function L7(e){return!(e===47||Df(e))}function Df(e){return e===43||e===45||e===46||e===95||yr(e)}function Dp(e){let t=e.length,r=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){r=!0;break}if(i._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}function so(e){const t=[];let r=-1,i=0,n=0;for(;++r<e.length;){const a=e.charCodeAt(r);let s="";if(a===37&&yr(e.charCodeAt(r+1))&&yr(e.charCodeAt(r+2)))n=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(r+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),n=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(i,r),encodeURIComponent(s)),i=r+n+1,s=""),n&&(r+=n,n=0)}return t.join("")+e.slice(i)}const Rf={name:"attention",resolveAll:CV,tokenize:kV};function CV(e,t){let r=-1,i,n,a,s,o,l,u,c;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const h={...e[i][1].end},f={...e[r][1].start};Wb(h,-l),Wb(f,l),s={type:l>1?"strongSequence":"emphasisSequence",start:h,end:{...e[i][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:f},a={type:l>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},n={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[i][1].end={...s.start},e[r][1].start={...o.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=cr(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=cr(u,[["enter",n,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=cr(u,Gs(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),u=cr(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",n,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=cr(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,dr(e,i-1,r-i+3,u),r=i+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function kV(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,n=Vs(i);let a;return s;function s(l){return a=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===a)return e.consume(l),o;const u=e.exit("attentionSequence"),c=Vs(l),h=!c||c===2&&n||r.includes(l),f=!n||n===2&&c||r.includes(i);return u._open=!!(a===42?h:h&&(n||!f)),u._close=!!(a===42?f:f&&(c||!h)),t(l)}}function Wb(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const TV={name:"autolink",tokenize:wV};function wV(e,t,r){let i=0;return n;function n(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(d){return Ir(d)?(e.consume(d),s):d===64?r(d):u(d)}function s(d){return d===43||d===45||d===46||yr(d)?(i=1,o(d)):u(d)}function o(d){return d===58?(e.consume(d),i=0,l):(d===43||d===45||d===46||yr(d))&&i++<32?(e.consume(d),o):(i=0,u(d))}function l(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||Gu(d)?r(d):(e.consume(d),l)}function u(d){return d===64?(e.consume(d),c):i9(d)?(e.consume(d),u):r(d)}function c(d){return yr(d)?h(d):r(d)}function h(d){return d===46?(e.consume(d),i=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):f(d)}function f(d){if((d===45||yr(d))&&i++<63){const p=d===45?f:h;return e.consume(d),p}return r(d)}}const Ul={partial:!0,tokenize:vV};function vV(e,t,r){return i;function i(a){return ue(a)?oe(e,n,"linePrefix")(a):n(a)}function n(a){return a===null||Rt(a)?t(a):r(a)}}const I7={continuation:{tokenize:EV},exit:_V,name:"blockQuote",tokenize:SV};function SV(e,t,r){const i=this;return n;function n(s){if(s===62){const o=i.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return r(s)}function a(s){return ue(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function EV(e,t,r){const i=this;return n;function n(s){return ue(s)?oe(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(I7,t,r)(s)}}function _V(e){e.exit("blockQuote")}const M7={name:"characterEscape",tokenize:AV};function AV(e,t,r){return i;function i(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),n}function n(a){return a9(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const N7={name:"characterReference",tokenize:BV};function BV(e,t,r){const i=this;let n=0,a,s;return o;function o(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),l}function l(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,s=yr,c(h))}function u(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=n9,c):(e.enter("characterReferenceValue"),a=7,s=ed,c(h))}function c(h){if(h===59&&n){const f=e.exit("characterReferenceValue");return s===yr&&!Op(i.sliceSerialize(f))?r(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(h)&&n++<a?(e.consume(h),c):r(h)}}const jb={partial:!0,tokenize:IV},Yb={concrete:!0,name:"codeFenced",tokenize:LV};function LV(e,t,r){const i=this,n={partial:!0,tokenize:A};let a=0,s=0,o;return l;function l(E){return u(E)}function u(E){const N=i.events[i.events.length-1];return a=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,o=E,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(E)}function c(E){return E===o?(s++,e.consume(E),c):s<3?r(E):(e.exit("codeFencedFenceSequence"),ue(E)?oe(e,h,"whitespace")(E):h(E))}function h(E){return E===null||Rt(E)?(e.exit("codeFencedFence"),i.interrupt?t(E):e.check(jb,m,_)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(E))}function f(E){return E===null||Rt(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(E)):ue(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),oe(e,d,"whitespace")(E)):E===96&&E===o?r(E):(e.consume(E),f)}function d(E){return E===null||Rt(E)?h(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===null||Rt(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(E)):E===96&&E===o?r(E):(e.consume(E),p)}function m(E){return e.attempt(n,_,g)(E)}function g(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),y}function y(E){return a>0&&ue(E)?oe(e,k,"linePrefix",a+1)(E):k(E)}function k(E){return E===null||Rt(E)?e.check(jb,m,_)(E):(e.enter("codeFlowValue"),w(E))}function w(E){return E===null||Rt(E)?(e.exit("codeFlowValue"),k(E)):(e.consume(E),w)}function _(E){return e.exit("codeFenced"),t(E)}function A(E,N,F){let Y=0;return I;function I(P){return E.enter("lineEnding"),E.consume(P),E.exit("lineEnding"),z}function z(P){return E.enter("codeFencedFence"),ue(P)?oe(E,K,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):K(P)}function K(P){return P===o?(E.enter("codeFencedFenceSequence"),J(P)):F(P)}function J(P){return P===o?(Y++,E.consume(P),J):Y>=s?(E.exit("codeFencedFenceSequence"),ue(P)?oe(E,j,"whitespace")(P):j(P)):F(P)}function j(P){return P===null||Rt(P)?(E.exit("codeFencedFence"),N(P)):F(P)}}}function IV(e,t,r){const i=this;return n;function n(s){return s===null?r(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return i.parser.lazy[i.now().line]?r(s):t(s)}}const z0={name:"codeIndented",tokenize:NV},MV={partial:!0,tokenize:FV};function NV(e,t,r){const i=this;return n;function n(u){return e.enter("codeIndented"),oe(e,a,"linePrefix",5)(u)}function a(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):r(u)}function s(u){return u===null?l(u):Rt(u)?e.attempt(MV,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||Rt(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function FV(e,t,r){const i=this;return n;function n(s){return i.parser.lazy[i.now().line]?r(s):Rt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n):oe(e,a,"linePrefix",5)(s)}function a(s){const o=i.events[i.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):Rt(s)?n(s):r(s)}}const OV={name:"codeText",previous:RV,resolve:DV,tokenize:PV};function DV(e){let t=e.length-4,r=3,i,n;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)n===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(n=i):(i===t||e[i][1].type==="lineEnding")&&(e[n][1].type="codeTextData",i!==n+2&&(e[n][1].end=e[i-1][1].end,e.splice(n+2,i-n-2),t-=i-n-2,i=n+2),n=void 0);return e}function RV(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function PV(e,t,r){let i=0,n,a;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),o(h)}function o(h){return h===96?(e.consume(h),i++,o):(e.exit("codeTextSequence"),l(h))}function l(h){return h===null?r(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),l):h===96?(a=e.enter("codeTextSequence"),n=0,c(h)):Rt(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(h))}function u(h){return h===null||h===32||h===96||Rt(h)?(e.exit("codeTextData"),l(h)):(e.consume(h),u)}function c(h){return h===96?(e.consume(h),n++,c):n===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(a.type="codeTextData",u(h))}}class $V{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const n=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-n,Number.POSITIVE_INFINITY);return i&&vo(this.left,i),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),vo(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),vo(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);vo(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);vo(this.left,r.reverse())}}}function vo(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function F7(e){const t={};let r=-1,i,n,a,s,o,l,u;const c=new $V(e);for(;++r<c.length;){for(;r in t;)r=t[r];if(i=c.get(r),r&&i[1].type==="chunkFlow"&&c.get(r-1)[1].type==="listItemPrefix"&&(l=i[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,zV(c,r)),r=t[r],u=!0);else if(i[1]._container){for(a=r,n=void 0;a--;)if(s=c.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(n&&(c.get(n)[1].type="lineEndingBlank"),s[1].type="lineEnding",n=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;n&&(i[1].end={...c.get(n)[1].start},o=c.slice(n,r),o.unshift(i),c.splice(n,r-n+1,o))}}return dr(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function zV(e,t){const r=e.get(t)[1],i=e.get(t)[2];let n=t-1;const a=[];let s=r._tokenizer;s||(s=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],u={};let c,h,f=-1,d=r,p=0,m=0;const g=[m];for(;d;){for(;e.get(++n)[1]!==d;);a.push(n),d._tokenizer||(c=i.sliceStream(d),d.next||c.push(null),h&&s.defineSkip(d.start),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),d._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=d,d=d.next}for(d=r;++f<o.length;)o[f][0]==="exit"&&o[f-1][0]==="enter"&&o[f][1].type===o[f-1][1].type&&o[f][1].start.line!==o[f][1].end.line&&(m=f+1,g.push(m),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(s.events=[],d?(d._tokenizer=void 0,d.previous=void 0):g.pop(),f=g.length;f--;){const y=o.slice(g[f],g[f+1]),k=a.pop();l.push([k,k+y.length-1]),e.splice(k,2,y)}for(l.reverse(),f=-1;++f<l.length;)u[p+l[f][0]]=p+l[f][1],p+=l[f][1]-l[f][0]-1;return u}const HV={resolve:UV,tokenize:WV},qV={partial:!0,tokenize:jV};function UV(e){return F7(e),e}function WV(e,t){let r;return i;function i(o){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),n(o)}function n(o){return o===null?a(o):Rt(o)?e.check(qV,s,a)(o):(e.consume(o),n)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,n}}function jV(e,t,r){const i=this;return n;function n(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),oe(e,a,"linePrefix")}function a(s){if(s===null||Rt(s))return r(s);const o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(i.parser.constructs.flow,r,t)(s)}}function O7(e,t,r,i,n,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return h;function h(y){return y===60?(e.enter(i),e.enter(n),e.enter(a),e.consume(y),e.exit(a),f):y===null||y===32||y===41||Gu(y)?r(y):(e.enter(i),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),m(y))}function f(y){return y===62?(e.enter(a),e.consume(y),e.exit(a),e.exit(n),e.exit(i),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),d(y))}function d(y){return y===62?(e.exit("chunkString"),e.exit(o),f(y)):y===null||y===60||Rt(y)?r(y):(e.consume(y),y===92?p:d)}function p(y){return y===60||y===62||y===92?(e.consume(y),d):d(y)}function m(y){return!c&&(y===null||y===41||we(y))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(i),t(y)):c<u&&y===40?(e.consume(y),c++,m):y===41?(e.consume(y),c--,m):y===null||y===32||y===40||Gu(y)?r(y):(e.consume(y),y===92?g:m)}function g(y){return y===40||y===41||y===92?(e.consume(y),m):m(y)}}function D7(e,t,r,i,n,a){const s=this;let o=0,l;return u;function u(d){return e.enter(i),e.enter(n),e.consume(d),e.exit(n),e.enter(a),c}function c(d){return o>999||d===null||d===91||d===93&&!l||d===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?r(d):d===93?(e.exit(a),e.enter(n),e.consume(d),e.exit(n),e.exit(i),t):Rt(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),h(d))}function h(d){return d===null||d===91||d===93||Rt(d)||o++>999?(e.exit("chunkString"),c(d)):(e.consume(d),l||(l=!ue(d)),d===92?f:h)}function f(d){return d===91||d===92||d===93?(e.consume(d),o++,h):h(d)}}function R7(e,t,r,i,n,a){let s;return o;function o(f){return f===34||f===39||f===40?(e.enter(i),e.enter(n),e.consume(f),e.exit(n),s=f===40?41:f,l):r(f)}function l(f){return f===s?(e.enter(n),e.consume(f),e.exit(n),e.exit(i),t):(e.enter(a),u(f))}function u(f){return f===s?(e.exit(a),l(s)):f===null?r(f):Rt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),oe(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(f){return f===s||f===null||Rt(f)?(e.exit("chunkString"),u(f)):(e.consume(f),f===92?h:c)}function h(f){return f===s||f===92?(e.consume(f),c):c(f)}}function rl(e,t){let r;return i;function i(n){return Rt(n)?(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),r=!0,i):ue(n)?oe(e,i,r?"linePrefix":"lineSuffix")(n):t(n)}}const YV={name:"definition",tokenize:GV},VV={partial:!0,tokenize:XV};function GV(e,t,r){const i=this;let n;return a;function a(d){return e.enter("definition"),s(d)}function s(d){return D7.call(i,e,o,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function o(d){return n=Si(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),l):r(d)}function l(d){return we(d)?rl(e,u)(d):u(d)}function u(d){return O7(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(VV,h,h)(d)}function h(d){return ue(d)?oe(e,f,"whitespace")(d):f(d)}function f(d){return d===null||Rt(d)?(e.exit("definition"),i.parser.defined.push(n),t(d)):r(d)}}function XV(e,t,r){return i;function i(o){return we(o)?rl(e,n)(o):r(o)}function n(o){return R7(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return ue(o)?oe(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Rt(o)?t(o):r(o)}}const KV={name:"hardBreakEscape",tokenize:QV};function QV(e,t,r){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),n}function n(a){return Rt(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const ZV={name:"headingAtx",resolve:JV,tokenize:tG};function JV(e,t){let r=e.length-2,i=3,n,a;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},a={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},dr(e,i,r-i+1,[["enter",n,t],["enter",a,t],["exit",a,t],["exit",n,t]])),e}function tG(e,t,r){let i=0;return n;function n(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&i++<6?(e.consume(c),s):c===null||we(c)?(e.exit("atxHeadingSequence"),o(c)):r(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Rt(c)?(e.exit("atxHeading"),t(c)):ue(c)?oe(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||we(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const eG=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Vb=["pre","script","style","textarea"],rG={concrete:!0,name:"htmlFlow",resolveTo:aG,tokenize:sG},iG={partial:!0,tokenize:lG},nG={partial:!0,tokenize:oG};function aG(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function sG(e,t,r){const i=this;let n,a,s,o,l;return u;function u(O){return c(O)}function c(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),h}function h(O){return O===33?(e.consume(O),f):O===47?(e.consume(O),a=!0,m):O===63?(e.consume(O),n=3,i.interrupt?t:L):Ir(O)?(e.consume(O),s=String.fromCharCode(O),g):r(O)}function f(O){return O===45?(e.consume(O),n=2,d):O===91?(e.consume(O),n=5,o=0,p):Ir(O)?(e.consume(O),n=4,i.interrupt?t:L):r(O)}function d(O){return O===45?(e.consume(O),i.interrupt?t:L):r(O)}function p(O){const St="CDATA[";return O===St.charCodeAt(o++)?(e.consume(O),o===St.length?i.interrupt?t:K:p):r(O)}function m(O){return Ir(O)?(e.consume(O),s=String.fromCharCode(O),g):r(O)}function g(O){if(O===null||O===47||O===62||we(O)){const St=O===47,_t=s.toLowerCase();return!St&&!a&&Vb.includes(_t)?(n=1,i.interrupt?t(O):K(O)):eG.includes(s.toLowerCase())?(n=6,St?(e.consume(O),y):i.interrupt?t(O):K(O)):(n=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(O):a?k(O):w(O))}return O===45||yr(O)?(e.consume(O),s+=String.fromCharCode(O),g):r(O)}function y(O){return O===62?(e.consume(O),i.interrupt?t:K):r(O)}function k(O){return ue(O)?(e.consume(O),k):I(O)}function w(O){return O===47?(e.consume(O),I):O===58||O===95||Ir(O)?(e.consume(O),_):ue(O)?(e.consume(O),w):I(O)}function _(O){return O===45||O===46||O===58||O===95||yr(O)?(e.consume(O),_):A(O)}function A(O){return O===61?(e.consume(O),E):ue(O)?(e.consume(O),A):w(O)}function E(O){return O===null||O===60||O===61||O===62||O===96?r(O):O===34||O===39?(e.consume(O),l=O,N):ue(O)?(e.consume(O),E):F(O)}function N(O){return O===l?(e.consume(O),l=null,Y):O===null||Rt(O)?r(O):(e.consume(O),N)}function F(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||we(O)?A(O):(e.consume(O),F)}function Y(O){return O===47||O===62||ue(O)?w(O):r(O)}function I(O){return O===62?(e.consume(O),z):r(O)}function z(O){return O===null||Rt(O)?K(O):ue(O)?(e.consume(O),z):r(O)}function K(O){return O===45&&n===2?(e.consume(O),$):O===60&&n===1?(e.consume(O),V):O===62&&n===4?(e.consume(O),lt):O===63&&n===3?(e.consume(O),L):O===93&&n===5?(e.consume(O),it):Rt(O)&&(n===6||n===7)?(e.exit("htmlFlowData"),e.check(iG,Ct,J)(O)):O===null||Rt(O)?(e.exit("htmlFlowData"),J(O)):(e.consume(O),K)}function J(O){return e.check(nG,j,Ct)(O)}function j(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),P}function P(O){return O===null||Rt(O)?J(O):(e.enter("htmlFlowData"),K(O))}function $(O){return O===45?(e.consume(O),L):K(O)}function V(O){return O===47?(e.consume(O),s="",X):K(O)}function X(O){if(O===62){const St=s.toLowerCase();return Vb.includes(St)?(e.consume(O),lt):K(O)}return Ir(O)&&s.length<8?(e.consume(O),s+=String.fromCharCode(O),X):K(O)}function it(O){return O===93?(e.consume(O),L):K(O)}function L(O){return O===62?(e.consume(O),lt):O===45&&n===2?(e.consume(O),L):K(O)}function lt(O){return O===null||Rt(O)?(e.exit("htmlFlowData"),Ct(O)):(e.consume(O),lt)}function Ct(O){return e.exit("htmlFlow"),t(O)}}function oG(e,t,r){const i=this;return n;function n(s){return Rt(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):r(s)}function a(s){return i.parser.lazy[i.now().line]?r(s):t(s)}}function lG(e,t,r){return i;function i(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e.attempt(Ul,t,r)}}const uG={name:"htmlText",tokenize:cG};function cG(e,t,r){const i=this;let n,a,s;return o;function o(L){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(L),l}function l(L){return L===33?(e.consume(L),u):L===47?(e.consume(L),A):L===63?(e.consume(L),w):Ir(L)?(e.consume(L),F):r(L)}function u(L){return L===45?(e.consume(L),c):L===91?(e.consume(L),a=0,p):Ir(L)?(e.consume(L),k):r(L)}function c(L){return L===45?(e.consume(L),d):r(L)}function h(L){return L===null?r(L):L===45?(e.consume(L),f):Rt(L)?(s=h,V(L)):(e.consume(L),h)}function f(L){return L===45?(e.consume(L),d):h(L)}function d(L){return L===62?$(L):L===45?f(L):h(L)}function p(L){const lt="CDATA[";return L===lt.charCodeAt(a++)?(e.consume(L),a===lt.length?m:p):r(L)}function m(L){return L===null?r(L):L===93?(e.consume(L),g):Rt(L)?(s=m,V(L)):(e.consume(L),m)}function g(L){return L===93?(e.consume(L),y):m(L)}function y(L){return L===62?$(L):L===93?(e.consume(L),y):m(L)}function k(L){return L===null||L===62?$(L):Rt(L)?(s=k,V(L)):(e.consume(L),k)}function w(L){return L===null?r(L):L===63?(e.consume(L),_):Rt(L)?(s=w,V(L)):(e.consume(L),w)}function _(L){return L===62?$(L):w(L)}function A(L){return Ir(L)?(e.consume(L),E):r(L)}function E(L){return L===45||yr(L)?(e.consume(L),E):N(L)}function N(L){return Rt(L)?(s=N,V(L)):ue(L)?(e.consume(L),N):$(L)}function F(L){return L===45||yr(L)?(e.consume(L),F):L===47||L===62||we(L)?Y(L):r(L)}function Y(L){return L===47?(e.consume(L),$):L===58||L===95||Ir(L)?(e.consume(L),I):Rt(L)?(s=Y,V(L)):ue(L)?(e.consume(L),Y):$(L)}function I(L){return L===45||L===46||L===58||L===95||yr(L)?(e.consume(L),I):z(L)}function z(L){return L===61?(e.consume(L),K):Rt(L)?(s=z,V(L)):ue(L)?(e.consume(L),z):Y(L)}function K(L){return L===null||L===60||L===61||L===62||L===96?r(L):L===34||L===39?(e.consume(L),n=L,J):Rt(L)?(s=K,V(L)):ue(L)?(e.consume(L),K):(e.consume(L),j)}function J(L){return L===n?(e.consume(L),n=void 0,P):L===null?r(L):Rt(L)?(s=J,V(L)):(e.consume(L),J)}function j(L){return L===null||L===34||L===39||L===60||L===61||L===96?r(L):L===47||L===62||we(L)?Y(L):(e.consume(L),j)}function P(L){return L===47||L===62||we(L)?Y(L):r(L)}function $(L){return L===62?(e.consume(L),e.exit("htmlTextData"),e.exit("htmlText"),t):r(L)}function V(L){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),X}function X(L){return ue(L)?oe(e,it,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):it(L)}function it(L){return e.enter("htmlTextData"),s(L)}}const Rp={name:"labelEnd",resolveAll:pG,resolveTo:mG,tokenize:gG},hG={tokenize:bG},dG={tokenize:yG},fG={tokenize:xG};function pG(e){let t=-1;const r=[];for(;++t<e.length;){const i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const n=i.type==="labelImage"?4:2;i.type="data",t+=n}}return e.length!==r.length&&dr(e,0,e.length,r),e}function mG(e,t){let r=e.length,i=0,n,a,s,o;for(;r--;)if(n=e[r][1],a){if(n.type==="link"||n.type==="labelLink"&&n._inactive)break;e[r][0]==="enter"&&n.type==="labelLink"&&(n._inactive=!0)}else if(s){if(e[r][0]==="enter"&&(n.type==="labelImage"||n.type==="labelLink")&&!n._balanced&&(a=r,n.type!=="labelLink")){i=2;break}}else n.type==="labelEnd"&&(s=r);const l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[a+i+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=cr(o,e.slice(a+1,a+i+3)),o=cr(o,[["enter",c,t]]),o=cr(o,Gs(t.parser.constructs.insideSpan.null,e.slice(a+i+4,s-3),t)),o=cr(o,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),o=cr(o,e.slice(s+1)),o=cr(o,[["exit",l,t]]),dr(e,a,e.length,o),e}function gG(e,t,r){const i=this;let n=i.events.length,a,s;for(;n--;)if((i.events[n][1].type==="labelImage"||i.events[n][1].type==="labelLink")&&!i.events[n][1]._balanced){a=i.events[n][1];break}return o;function o(f){return a?a._inactive?h(f):(s=i.parser.defined.includes(Si(i.sliceSerialize({start:a.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),l):r(f)}function l(f){return f===40?e.attempt(hG,c,s?c:h)(f):f===91?e.attempt(dG,c,s?u:h)(f):s?c(f):h(f)}function u(f){return e.attempt(fG,c,h)(f)}function c(f){return t(f)}function h(f){return a._balanced=!0,r(f)}}function bG(e,t,r){return i;function i(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),n}function n(h){return we(h)?rl(e,a)(h):a(h)}function a(h){return h===41?c(h):O7(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return we(h)?rl(e,l)(h):c(h)}function o(h){return r(h)}function l(h){return h===34||h===39||h===40?R7(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):c(h)}function u(h){return we(h)?rl(e,c)(h):c(h)}function c(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):r(h)}}function yG(e,t,r){const i=this;return n;function n(o){return D7.call(i,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return i.parser.defined.includes(Si(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(o):r(o)}function s(o){return r(o)}}function xG(e,t,r){return i;function i(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),n}function n(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const CG={name:"labelStartImage",resolveAll:Rp.resolveAll,tokenize:kG};function kG(e,t,r){const i=this;return n;function n(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):r(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(o):t(o)}}const TG={name:"labelStartLink",resolveAll:Rp.resolveAll,tokenize:wG};function wG(e,t,r){const i=this;return n;function n(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(s):t(s)}}const H0={name:"lineEnding",tokenize:vG};function vG(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),oe(e,t,"linePrefix")}}const ju={name:"thematicBreak",tokenize:SG};function SG(e,t,r){let i=0,n;return a;function a(u){return e.enter("thematicBreak"),s(u)}function s(u){return n=u,o(u)}function o(u){return u===n?(e.enter("thematicBreakSequence"),l(u)):i>=3&&(u===null||Rt(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===n?(e.consume(u),i++,l):(e.exit("thematicBreakSequence"),ue(u)?oe(e,o,"whitespace")(u):o(u))}}const qr={continuation:{tokenize:BG},exit:IG,name:"list",tokenize:AG},EG={partial:!0,tokenize:MG},_G={partial:!0,tokenize:LG};function AG(e,t,r){const i=this,n=i.events[i.events.length-1];let a=n&&n[1].type==="linePrefix"?n[2].sliceSerialize(n[1],!0).length:0,s=0;return o;function o(d){const p=i.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(p==="listUnordered"?!i.containerState.marker||d===i.containerState.marker:ed(d)){if(i.containerState.type||(i.containerState.type=p,e.enter(p,{_container:!0})),p==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(ju,r,u)(d):u(d);if(!i.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(d)}return r(d)}function l(d){return ed(d)&&++s<10?(e.consume(d),l):(!i.interrupt||s<2)&&(i.containerState.marker?d===i.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):r(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||d,e.check(Ul,i.interrupt?r:c,e.attempt(EG,f,h))}function c(d){return i.containerState.initialBlankLine=!0,a++,f(d)}function h(d){return ue(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),f):r(d)}function f(d){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function BG(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(Ul,n,a);function n(o){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,oe(e,t,"listItemIndent",i.containerState.size+1)(o)}function a(o){return i.containerState.furtherBlankLines||!ue(o)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,s(o)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(_G,t,s)(o))}function s(o){return i.containerState._closeFlow=!0,i.interrupt=void 0,oe(e,e.attempt(qr,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function LG(e,t,r){const i=this;return oe(e,n,"listItemIndent",i.containerState.size+1);function n(a){const s=i.events[i.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===i.containerState.size?t(a):r(a)}}function IG(e){e.exit(this.containerState.type)}function MG(e,t,r){const i=this;return oe(e,n,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function n(a){const s=i.events[i.events.length-1];return!ue(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const Gb={name:"setextUnderline",resolveTo:NG,tokenize:FG};function NG(e,t){let r=e.length,i,n,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(n=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[n][1].type="setextHeadingText",a?(e.splice(n,0,["enter",s,t]),e.splice(a+1,0,["exit",e[i][1],t]),e[i][1].end={...e[a][1].end}):e[i][1]=s,e.push(["exit",s,t]),e}function FG(e,t,r){const i=this;let n;return a;function a(u){let c=i.events.length,h;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){h=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||h)?(e.enter("setextHeadingLine"),n=u,s(u)):r(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===n?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),ue(u)?oe(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Rt(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const OG={tokenize:UG,partial:!0};function DG(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:zG,continuation:{tokenize:HG},exit:qG}},text:{91:{name:"gfmFootnoteCall",tokenize:$G},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:RG,resolveTo:PG}}}}function RG(e,t,r){const i=this;let n=i.events.length;const a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s;for(;n--;){const l=i.events[n][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return r(l);const u=Si(i.sliceSerialize({start:s.end,end:i.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?r(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function PG(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},n={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};n.end.column++,n.end.offset++,n.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},n.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",n,t],["exit",n,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...o),e}function $G(e,t,r){const i=this,n=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a=0,s;return o;function o(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),l}function l(h){return h!==94?r(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(h){if(a>999||h===93&&!s||h===null||h===91||we(h))return r(h);if(h===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return n.includes(Si(i.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(h)}return we(h)||(s=!0),a++,e.consume(h),h===92?c:u}function c(h){return h===91||h===92||h===93?(e.consume(h),a++,u):u(h)}}function zG(e,t,r){const i=this,n=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(p){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(p){return p===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):r(p)}function c(p){if(s>999||p===93&&!o||p===null||p===91||we(p))return r(p);if(p===93){e.exit("chunkString");const m=e.exit("gfmFootnoteDefinitionLabelString");return a=Si(i.sliceSerialize(m)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(p),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return we(p)||(o=!0),s++,e.consume(p),p===92?h:c}function h(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}function f(p){return p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),n.includes(a)||n.push(a),oe(e,d,"gfmFootnoteDefinitionWhitespace")):r(p)}function d(p){return t(p)}}function HG(e,t,r){return e.check(Ul,t,e.attempt(OG,t,r))}function qG(e){e.exit("gfmFootnoteDefinition")}function UG(e,t,r){const i=this;return oe(e,n,"gfmFootnoteDefinitionIndent",5);function n(a){const s=i.events[i.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):r(a)}}function WG(e){let r=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:a,resolveAll:n};return r==null&&(r=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function n(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},h={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},f=[["enter",c,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",h,o]],d=o.parser.constructs.insideSpan.null;d&&dr(f,f.length,0,Gs(d,s.slice(u+1,l),o)),dr(f,f.length,0,[["exit",h,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",c,o]]),dr(s,u-1,l-u+3,f),l=u+f.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function a(s,o,l){const u=this.previous,c=this.events;let h=0;return f;function f(p){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(p):(s.enter("strikethroughSequenceTemporary"),d(p))}function d(p){const m=Vs(u);if(p===126)return h>1?l(p):(s.consume(p),h++,d);if(h<2&&!r)return l(p);const g=s.exit("strikethroughSequenceTemporary"),y=Vs(p);return g._open=!y||y===2&&!!m,g._close=!m||m===2&&!!y,o(p)}}}class jG{constructor(){this.map=[]}add(t,r,i){YG(this,t,r,i)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let r=this.map.length;const i=[];for(;r>0;)r-=1,i.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];i.push(t.slice()),t.length=0;let n=i.pop();for(;n;){for(const a of n)t.push(a);n=i.pop()}this.map.length=0}}function YG(e,t,r,i){let n=0;if(!(r===0&&i.length===0)){for(;n<e.map.length;){if(e.map[n][0]===t){e.map[n][1]+=r,e.map[n][2].push(...i);return}n+=1}e.map.push([t,r,i])}}function VG(e,t){let r=!1;const i=[];for(;t<e.length;){const n=e[t];if(r){if(n[0]==="enter")n[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(n[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=i.length-1;i[a]=i[a]==="left"?"center":"right"}}else if(n[1].type==="tableDelimiterRow")break}else n[0]==="enter"&&n[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return i}function GG(){return{flow:{null:{name:"table",tokenize:XG,resolveAll:KG}}}}function XG(e,t,r){const i=this;let n=0,a=0,s;return o;function o(I){let z=i.events.length-1;for(;z>-1;){const j=i.events[z][1].type;if(j==="lineEnding"||j==="linePrefix")z--;else break}const K=z>-1?i.events[z][1].type:null,J=K==="tableHead"||K==="tableRow"?E:l;return J===E&&i.parser.lazy[i.now().line]?r(I):J(I)}function l(I){return e.enter("tableHead"),e.enter("tableRow"),u(I)}function u(I){return I===124||(s=!0,a+=1),c(I)}function c(I){return I===null?r(I):Rt(I)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),d):r(I):ue(I)?oe(e,c,"whitespace")(I):(a+=1,s&&(s=!1,n+=1),I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),h(I)))}function h(I){return I===null||I===124||we(I)?(e.exit("data"),c(I)):(e.consume(I),I===92?f:h)}function f(I){return I===92||I===124?(e.consume(I),h):h(I)}function d(I){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(I):(e.enter("tableDelimiterRow"),s=!1,ue(I)?oe(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(I):p(I))}function p(I){return I===45||I===58?g(I):I===124?(s=!0,e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),m):A(I)}function m(I){return ue(I)?oe(e,g,"whitespace")(I):g(I)}function g(I){return I===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),y):I===45?(a+=1,y(I)):I===null||Rt(I)?_(I):A(I)}function y(I){return I===45?(e.enter("tableDelimiterFiller"),k(I)):A(I)}function k(I){return I===45?(e.consume(I),k):I===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(I),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(I))}function w(I){return ue(I)?oe(e,_,"whitespace")(I):_(I)}function _(I){return I===124?p(I):I===null||Rt(I)?!s||n!==a?A(I):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(I)):A(I)}function A(I){return r(I)}function E(I){return e.enter("tableRow"),N(I)}function N(I){return I===124?(e.enter("tableCellDivider"),e.consume(I),e.exit("tableCellDivider"),N):I===null||Rt(I)?(e.exit("tableRow"),t(I)):ue(I)?oe(e,N,"whitespace")(I):(e.enter("data"),F(I))}function F(I){return I===null||I===124||we(I)?(e.exit("data"),N(I)):(e.consume(I),I===92?Y:F)}function Y(I){return I===92||I===124?(e.consume(I),F):F(I)}}function KG(e,t){let r=-1,i=!0,n=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,c,h;const f=new jG;for(;++r<e.length;){const d=e[r],p=d[1];d[0]==="enter"?p.type==="tableHead"?(o=!1,l!==0&&(Xb(f,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},f.add(r,0,[["enter",u,t]])):p.type==="tableRow"||p.type==="tableDelimiterRow"?(i=!0,h=void 0,a=[0,0,0,0],s=[0,r+1,0,0],o&&(o=!1,c={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},f.add(r,0,[["enter",c,t]])),n=p.type==="tableDelimiterRow"?2:c?3:1):n&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")?(i=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],h=xu(f,t,a,n,void 0,h),a=[0,0,0,0]),s[2]=r)):p.type==="tableCellDivider"&&(i?i=!1:(a[1]!==0&&(s[0]=s[1],h=xu(f,t,a,n,void 0,h)),a=s,s=[a[1],r,0,0])):p.type==="tableHead"?(o=!0,l=r):p.type==="tableRow"||p.type==="tableDelimiterRow"?(l=r,a[1]!==0?(s[0]=s[1],h=xu(f,t,a,n,r,h)):s[1]!==0&&(h=xu(f,t,s,n,r,h)),n=0):n&&(p.type==="data"||p.type==="tableDelimiterMarker"||p.type==="tableDelimiterFiller")&&(s[3]=r)}for(l!==0&&Xb(f,t,l,u,c),f.consume(t.events),r=-1;++r<t.events.length;){const d=t.events[r];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=VG(t.events,r))}return e}function xu(e,t,r,i,n,a){const s=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",o="tableContent";r[0]!==0&&(a.end=Object.assign({},cs(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const l=cs(t.events,r[1]);if(a={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(r[1],0,[["enter",a,t]]),r[2]!==0){const u=cs(t.events,r[2]),c=cs(t.events,r[3]),h={type:o,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(r[2],0,[["enter",h,t]]),i!==2){const f=t.events[r[2]],d=t.events[r[3]];if(f[1].end=Object.assign({},d[1].end),f[1].type="chunkText",f[1].contentType="text",r[3]>r[2]+1){const p=r[2]+1,m=r[3]-r[2]-1;e.add(p,m,[])}}e.add(r[3]+1,0,[["exit",h,t]])}return n!==void 0&&(a.end=Object.assign({},cs(t.events,n)),e.add(n,0,[["exit",a,t]]),a=void 0),a}function Xb(e,t,r,i,n){const a=[],s=cs(t.events,r);n&&(n.end=Object.assign({},s),a.push(["exit",n,t])),i.end=Object.assign({},s),a.push(["exit",i,t]),e.add(r+1,0,a)}function cs(e,t){const r=e[t],i=r[0]==="enter"?"start":"end";return r[1][i]}const QG={name:"tasklistCheck",tokenize:JG};function ZG(){return{text:{91:QG}}}function JG(e,t,r){const i=this;return n;function n(l){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?r(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return we(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):r(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):r(l)}function o(l){return Rt(l)?t(l):ue(l)?e.check({tokenize:tX},t,r)(l):r(l)}}function tX(e,t,r){return oe(e,i,"whitespace");function i(n){return n===null?r(n):t(n)}}function eX(e){return T7([hV(),DG(),WG(e),GG(),ZG()])}const rX={};function iX(e){const t=this,r=e||rX,i=t.data(),n=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);n.push(eX(r)),a.push(aV()),s.push(sV(r))}var nX=Object.defineProperty,aX=Object.defineProperties,sX=Object.getOwnPropertyDescriptors,Kb=Object.getOwnPropertySymbols,oX=Object.prototype.hasOwnProperty,lX=Object.prototype.propertyIsEnumerable,Qb=(e,t,r)=>t in e?nX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P7=(e,t)=>{for(var r in t||(t={}))oX.call(t,r)&&Qb(e,r,t[r]);if(Kb)for(var r of Kb(t))lX.call(t,r)&&Qb(e,r,t[r]);return e},$7=(e,t)=>aX(e,sX(t)),Rr=(e,t)=>{let r=!1,i=!1;for(let n=0;n<t;n+=1){if(e[n]==="\\"&&n+1<e.length&&e[n+1]==="`"){n+=1;continue}if(e.substring(n,n+3)==="```"){i=!i,n+=2;continue}!i&&e[n]==="`"&&(r=!r)}return r||i},uX=(e,t)=>{let r=e.substring(t,t+3)==="```",i=t>0&&e.substring(t-1,t+2)==="```",n=t>1&&e.substring(t-2,t+1)==="```";return r||i||n},cX=e=>{let t=0;for(let r=0;r<e.length;r+=1){if(e[r]==="\\"&&r+1<e.length&&e[r+1]==="`"){r+=1;continue}e[r]==="`"&&!uX(e,r)&&(t+=1)}return t},ia=(e,t)=>{let r=!1,i=!1,n=-1;for(let a=0;a<e.length;a+=1){if(e[a]==="\\"&&a+1<e.length&&e[a+1]==="`"){a+=1;continue}if(e.substring(a,a+3)==="```"){i=!i,a+=2;continue}if(!i&&e[a]==="`")if(r){if(n<t&&t<a)return!0;r=!1,n=-1}else r=!0,n=a}return!1},hX=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,dX=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(hX,(t,r,i,n)=>Rr(e,n)?t:`${r}\\>${i}`),fX=/(\*\*)([^*]*\*?)$/,pX=/(__)([^_]*?)$/,mX=/(\*\*\*)([^*]*?)$/,gX=/(\*)([^*]*?)$/,bX=/(_)([^_]*?)$/,yX=/(`)([^`]*?)$/,xX=/(~~)([^~]*?)$/,Xa=/^[\s_~*`]*$/,z7=/^[\s]*[-*+][\s]+$/,CX=/[\p{L}\p{N}_]/u,kX=/^```[^`\n]*```?$/,TX=/^\*{4,}$/,wX=/(__)([^_]+)_$/,vX=/(~~)([^~]+)~$/,Zb=/~~/g,na=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:CX.test(e)},SX=(e,t)=>{let r=1;for(let i=t-1;i>=0;i-=1)if(e[i]==="]")r+=1;else if(e[i]==="["&&(r-=1,r===0))return i;return-1},H7=(e,t)=>{let r=1;for(let i=t+1;i<e.length;i+=1)if(e[i]==="[")r+=1;else if(e[i]==="]"&&(r-=1,r===0))return i;return-1},Mh=(e,t)=>{let r=!1,i=!1;for(let n=0;n<e.length&&n<t;n+=1){if(e[n]==="\\"&&e[n+1]==="$"){n+=1;continue}e[n]==="$"&&(e[n+1]==="$"?(i=!i,n+=1,r=!1):i||(r=!r))}return r||i},EX=(e,t)=>{for(let r=t;r<e.length;r+=1){if(e[r]===")")return!0;if(e[r]===`
|
|
598
|
+
`)return!1}return!1},q7=(e,t)=>{for(let r=t-1;r>=0;r-=1){if(e[r]===")")return!1;if(e[r]==="(")return r>0&&e[r-1]==="]"?EX(e,t):!1;if(e[r]===`
|
|
599
|
+
`)return!1}return!1},_X=(e,t)=>{for(let r=t-1;r>=0;r-=1){if(e[r]===">")return!1;if(e[r]==="<"){let i=r+1<e.length?e[r+1]:"";return i>="a"&&i<="z"||i>="A"&&i<="Z"||i==="/"}if(e[r]===`
|
|
600
|
+
`)return!1}return!1},Pp=(e,t,r)=>{let i=0;for(let l=t-1;l>=0;l-=1)if(e[l]===`
|
|
601
|
+
`){i=l+1;break}let n=e.length;for(let l=t;l<e.length;l+=1)if(e[l]===`
|
|
602
|
+
`){n=l;break}let a=e.substring(i,n),s=0,o=!1;for(let l of a)if(l===r)s+=1;else if(l!==" "&&l!==" "){o=!0;break}return s>=3&&!o},AX=(e,t,r,i)=>r==="\\"||e.includes("$")&&Mh(e,t)?!0:r!=="*"&&i==="*"?(t<e.length-2?e[t+2]:"")!=="*":!!(r==="*"||r&&i&&na(r)&&na(i)||(!r||r===" "||r===" "||r===`
|
|
603
|
+
`)&&(!i||i===" "||i===" "||i===`
|
|
604
|
+
`)),U7=e=>{let t=0,r=!1,i=e.length;for(let n=0;n<i;n+=1){if(e[n]==="`"&&n+2<i&&e[n+1]==="`"&&e[n+2]==="`"){r=!r,n+=2;continue}if(r||e[n]!=="*")continue;let a=n>0?e[n-1]:"",s=n<i-1?e[n+1]:"";AX(e,n,a,s)||(t+=1)}return t},BX=(e,t,r,i)=>!!(r==="\\"||e.includes("$")&&Mh(e,t)||q7(e,t)||_X(e,t)||r==="_"||i==="_"||r&&i&&na(r)&&na(i)),LX=e=>{let t=0,r=!1,i=e.length;for(let n=0;n<i;n+=1){if(e[n]==="`"&&n+2<i&&e[n+1]==="`"&&e[n+2]==="`"){r=!r,n+=2;continue}if(r||e[n]!=="_")continue;let a=n>0?e[n-1]:"",s=n<i-1?e[n+1]:"";BX(e,n,a,s)||(t+=1)}return t},IX=e=>{let t=0,r=0,i=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){r>=3&&(t+=Math.floor(r/3)),r=0,i=!i,n+=2;continue}i||(e[n]==="*"?r+=1:(r>=3&&(t+=Math.floor(r/3)),r=0))}return r>=3&&(t+=Math.floor(r/3)),t},$p=e=>{let t=0,r=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="`"&&i+2<e.length&&e[i+1]==="`"&&e[i+2]==="`"){r=!r,i+=2;continue}r||e[i]==="*"&&i+1<e.length&&e[i+1]==="*"&&(t+=1,i+=1)}return t},Jb=e=>{let t=0,r=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="`"&&i+2<e.length&&e[i+1]==="`"&&e[i+2]==="`"){r=!r,i+=2;continue}r||e[i]==="_"&&i+1<e.length&&e[i+1]==="_"&&(t+=1,i+=1)}return t},MX=(e,t,r)=>{if(!t||Xa.test(t))return!0;let i=e.substring(0,r).lastIndexOf(`
|
|
605
|
+
`),n=i===-1?0:i+1,a=e.substring(n,r);return z7.test(a)&&t.includes(`
|
|
606
|
+
`)?!0:Pp(e,r,"*")},NX=e=>{let t=e.match(fX);if(!t)return e;let r=t[2],i=e.lastIndexOf(t[1]);return Rr(e,i)||ia(e,i)||MX(e,r,i)?e:$p(e)%2===1?r.endsWith("*")?`${e}*`:`${e}**`:e},FX=(e,t,r)=>{if(!t||Xa.test(t))return!0;let i=e.substring(0,r).lastIndexOf(`
|
|
607
|
+
`),n=i===-1?0:i+1,a=e.substring(n,r);return z7.test(a)&&t.includes(`
|
|
608
|
+
`)?!0:Pp(e,r,"_")},OX=e=>{let t=e.match(pX);if(!t){let n=e.match(wX);if(n){let a=e.lastIndexOf(n[1]);if(!(Rr(e,a)||ia(e,a))&&Jb(e)%2===1)return`${e}_`}return e}let r=t[2],i=e.lastIndexOf(t[1]);return Rr(e,i)||ia(e,i)||FX(e,r,i)?e:Jb(e)%2===1?`${e}__`:e},DX=e=>{let t=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){t=!t,r+=2;continue}if(!t&&e[r]==="*"&&e[r-1]!=="*"&&e[r+1]!=="*"&&e[r-1]!=="\\"&&!Mh(e,r)){let i=r>0?e[r-1]:"",n=r<e.length-1?e[r+1]:"";if((!i||i===" "||i===" "||i===`
|
|
609
|
+
`)&&(!n||n===" "||n===" "||n===`
|
|
610
|
+
`)||i&&n&&na(i)&&na(n))continue;return r}}return-1},RX=e=>{if(!e.match(gX))return e;let t=DX(e);if(t===-1||Rr(e,t)||ia(e,t))return e;let r=e.substring(t+1);return!r||Xa.test(r)?e:U7(e)%2===1?`${e}*`:e},W7=e=>{let t=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){t=!t,r+=2;continue}if(!t&&e[r]==="_"&&e[r-1]!=="_"&&e[r+1]!=="_"&&e[r-1]!=="\\"&&!Mh(e,r)&&!q7(e,r)){let i=r>0?e[r-1]:"",n=r<e.length-1?e[r+1]:"";if(i&&n&&na(i)&&na(n))continue;return r}}return-1},PX=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
611
|
+
`;)t-=1;if(t<e.length){let r=e.slice(0,t),i=e.slice(t);return`${r}_${i}`}return`${e}_`},$X=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if($p(t)%2!==1)return null;let r=t.indexOf("**"),i=W7(t);return r!==-1&&i!==-1&&r<i?`${t}_**`:null},zX=e=>{if(!e.match(bX))return e;let t=W7(e);if(t===-1)return e;let r=e.substring(t+1);if(!r||Xa.test(r)||Rr(e,t)||ia(e,t))return e;if(LX(e)%2===1){let i=$X(e);return i!==null?i:PX(e)}return e},HX=e=>{let t=$p(e),r=U7(e);return t%2===0&&r%2===0},qX=(e,t,r)=>!t||Xa.test(t)||Rr(e,r)||ia(e,r)?!0:Pp(e,r,"*"),UX=e=>{if(TX.test(e))return e;let t=e.match(mX);if(!t)return e;let r=t[2],i=e.lastIndexOf(t[1]);return qX(e,r,i)?e:IX(e)%2===1?HX(e)?e:`${e}***`:e},WX=/<[a-zA-Z/][^>]*$/,jX=e=>{let t=e.match(WX);return!t||t.index===void 0||Rr(e,t.index)?e:e.substring(0,t.index).trimEnd()},YX=e=>!e.match(kX)||e.includes(`
|
|
612
|
+
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,VX=e=>(e.match(/```/g)||[]).length%2===1,GX=e=>{let t=YX(e);if(t!==null)return t;let r=e.match(yX);if(r&&!VX(e)){let i=r[2];if(!i||Xa.test(i))return e;if(cX(e)%2===1)return`${e}\``}return e},j7=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",XX=e=>{let t=0,r=!1;for(let i=0;i<e.length-1;i+=1)e[i]==="`"&&!j7(e,i)&&(r=!r),!r&&e[i]==="$"&&e[i+1]==="$"&&(t+=1,i+=1);return t},KX=e=>{let t=0,r=!1;for(let i=0;i<e.length;i+=1){if(e[i]==="\\"){i+=1;continue}if(e[i]==="`"&&!j7(e,i)){r=!r;continue}!r&&e[i]==="$"&&(i+1<e.length&&e[i+1]==="$"?i+=1:t+=1)}return t},QX=e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
|
|
613
|
+
`,t)!==-1&&!e.endsWith(`
|
|
614
|
+
`)?`${e}
|
|
615
|
+
$$`:`${e}$$`},ZX=e=>XX(e)%2===0?e:QX(e),JX=e=>KX(e)%2===1?`${e}$`:e,tK=(e,t,r)=>{if(e.substring(t+2).includes(")"))return null;let i=SX(e,t);if(i===-1||Rr(e,i))return null;let n=i>0&&e[i-1]==="!",a=n?i-1:i,s=e.substring(0,a);if(n)return s;let o=e.substring(i+1,t);return r==="text-only"?`${s}${o}`:`${s}[${o}](streamdown:incomplete-link)`},ty=(e,t)=>{for(let r=0;r<t;r++)if(e[r]==="["&&!Rr(e,r)){if(r>0&&e[r-1]==="!")continue;let i=H7(e,r);if(i===-1)return r;if(i+1<e.length&&e[i+1]==="("){let n=e.indexOf(")",i+2);n!==-1&&(r=n)}}return t},eK=(e,t,r)=>{let i=t>0&&e[t-1]==="!",n=i?t-1:t;if(!e.substring(t+1).includes("]")){let a=e.substring(0,n);if(i)return a;if(r==="text-only"){let s=ty(e,t);return e.substring(0,s)+e.substring(s+1)}return`${e}](streamdown:incomplete-link)`}if(H7(e,t)===-1){let a=e.substring(0,n);if(i)return a;if(r==="text-only"){let s=ty(e,t);return e.substring(0,s)+e.substring(s+1)}return`${e}](streamdown:incomplete-link)`}return null},Y7=(e,t="protocol")=>{let r=e.lastIndexOf("](");if(r!==-1&&!Rr(e,r)){let i=tK(e,r,t);if(i!==null)return i}for(let i=e.length-1;i>=0;i-=1)if(e[i]==="["&&!Rr(e,i)){let n=eK(e,i,t);if(n!==null)return n}return e},rK=/^-{1,2}$/,iK=/^[\s]*-{1,2}[\s]+$/,nK=/^={1,2}$/,aK=/^[\s]*={1,2}[\s]+$/,sK=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
|
|
616
|
+
`);if(t===-1)return e;let r=e.substring(t+1),i=e.substring(0,t),n=r.trim();if(rK.test(n)&&!r.match(iK)){let a=i.split(`
|
|
617
|
+
`).at(-1);if(a&&a.trim().length>0)return`${e}`}if(nK.test(n)&&!r.match(aK)){let a=i.split(`
|
|
618
|
+
`).at(-1);if(a&&a.trim().length>0)return`${e}`}return e},oK=new RegExp("(?<=[\\p{L}\\p{N}_])~(?!~)(?=[\\p{L}\\p{N}_])","gu"),lK=e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(oK,(t,r)=>Rr(e,r)?t:"\\~"),uK=e=>{var t,r;let i=e.match(xX);if(i){let n=i[2];if(!n||Xa.test(n))return e;let a=e.lastIndexOf(i[1]);if(Rr(e,a)||ia(e,a))return e;if(((t=e.match(Zb))==null?void 0:t.length)%2===1)return`${e}~~`}else{let n=e.match(vX);if(n){let a=e.lastIndexOf(n[0].slice(0,2));if(Rr(e,a)||ia(e,a))return e;if(((r=e.match(Zb))==null?void 0:r.length)%2===1)return`${e}~`}}return e},q0=e=>e!==!1,cK=e=>e===!0,Ar={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},hK=[{handler:{name:"singleTilde",handle:lK,priority:Ar.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:dX,priority:Ar.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:jX,priority:Ar.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:sK,priority:Ar.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:Y7,priority:Ar.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:UX,priority:Ar.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:NX,priority:Ar.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:OX,priority:Ar.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:RX,priority:Ar.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:zX,priority:Ar.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:GX,priority:Ar.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:uK,priority:Ar.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:ZX,priority:Ar.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:JX,priority:Ar.INLINE_KATEX},optionKey:"inlineKatex"}],dK=e=>{var t;let r=(t=e==null?void 0:e.linkMode)!=null?t:"protocol";return hK.filter(({handler:i,optionKey:n})=>i.name==="links"?q0(e==null?void 0:e.links)||q0(e==null?void 0:e.images):i.name==="inlineKatex"?cK(e==null?void 0:e.inlineKatex):q0(e==null?void 0:e[n])).map(({handler:i,earlyReturn:n})=>i.name==="links"?{handler:$7(P7({},i),{handle:a=>Y7(a,r)}),earlyReturn:r==="protocol"?n:void 0}:{handler:i,earlyReturn:n})},fK=(e,t)=>{var r;if(!e||typeof e!="string")return e;let i=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,n=dK(t),a=((r=t==null?void 0:t.handlers)!=null?r:[]).map(o=>{var l;return{handler:$7(P7({},o),{priority:(l=o.priority)!=null?l:Ar.DEFAULT}),earlyReturn:void 0}}),s=[...n,...a].sort((o,l)=>{var u,c;return((u=o.handler.priority)!=null?u:0)-((c=l.handler.priority)!=null?c:0)});for(let{handler:o,earlyReturn:l}of s)if(i=o.handle(i),l!=null&&l(i))return i;return i},pK=fK;const mK=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gK=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bK={};function ey(e,t){return(bK.jsx?gK:mK).test(e)}const yK=/[ \t\n\f\r]/g;function xK(e){return typeof e=="object"?e.type==="text"?ry(e.value):!1:ry(e)}function ry(e){return e.replace(yK,"")===""}var as={},U0,iy;function CK(){if(iy)return U0;iy=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,n=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
|
|
619
|
+
`,u="/",c="*",h="",f="comment",d="declaration";function p(g,y){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];y=y||{};var k=1,w=1;function _(j){var P=j.match(t);P&&(k+=P.length);var $=j.lastIndexOf(l);w=~$?j.length-$:w+j.length}function A(){var j={line:k,column:w};return function(P){return P.position=new E(j),Y(),P}}function E(j){this.start=j,this.end={line:k,column:w},this.source=y.source}E.prototype.content=g;function N(j){var P=new Error(y.source+":"+k+":"+w+": "+j);if(P.reason=j,P.filename=y.source,P.line=k,P.column=w,P.source=g,!y.silent)throw P}function F(j){var P=j.exec(g);if(P){var $=P[0];return _($),g=g.slice($.length),P}}function Y(){F(r)}function I(j){var P;for(j=j||[];P=z();)P!==!1&&j.push(P);return j}function z(){var j=A();if(!(u!=g.charAt(0)||c!=g.charAt(1))){for(var P=2;h!=g.charAt(P)&&(c!=g.charAt(P)||u!=g.charAt(P+1));)++P;if(P+=2,h===g.charAt(P-1))return N("End of comment missing");var $=g.slice(2,P-2);return w+=2,_($),g=g.slice(P),w+=2,j({type:f,comment:$})}}function K(){var j=A(),P=F(i);if(P){if(z(),!F(n))return N("property missing ':'");var $=F(a),V=j({type:d,property:m(P[0].replace(e,h)),value:$?m($[0].replace(e,h)):h});return F(s),V}}function J(){var j=[];I(j);for(var P;P=K();)P!==!1&&(j.push(P),I(j));return j}return Y(),J()}function m(g){return g?g.replace(o,h):h}return U0=p,U0}var ny;function kK(){if(ny)return as;ny=1;var e=as&&as.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(as,"__esModule",{value:!0}),as.default=r;const t=e(CK());function r(i,n){let a=null;if(!i||typeof i!="string")return a;const s=(0,t.default)(i),o=typeof n=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:c}=l;o?n(u,c,l):c&&(a=a||{},a[u]=c)}),a}return as}var So={},ay;function TK(){if(ay)return So;ay=1,Object.defineProperty(So,"__esModule",{value:!0}),So.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,n=/^-(ms)-/,a=function(u){return!u||r.test(u)||e.test(u)},s=function(u,c){return c.toUpperCase()},o=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),a(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(n,o):u=u.replace(i,o),u.replace(t,s))};return So.camelCase=l,So}var Eo,sy;function wK(){if(sy)return Eo;sy=1;var e=Eo&&Eo.__importDefault||function(n){return n&&n.__esModule?n:{default:n}},t=e(kK()),r=TK();function i(n,a){var s={};return!n||typeof n!="string"||(0,t.default)(n,function(o,l){o&&l&&(s[(0,r.camelCase)(o,a)]=l)}),s}return i.default=i,Eo=i,Eo}var vK=wK();const SK=Qf(vK);function il(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?oy(e.position):"start"in e||"end"in e?oy(e):"line"in e||"column"in e?Pf(e):""}function Pf(e){return ly(e&&e.line)+":"+ly(e&&e.column)}function oy(e){return Pf(e&&e.start)+"-"+Pf(e&&e.end)}function ly(e){return e&&typeof e=="number"?e:1}class vr extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let n="",a={},s=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?n=t:!a.cause&&t&&(s=!0,n=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?a.ruleId=i:(a.source=i.slice(0,l),a.ruleId=i.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=n,this.line=o?o.line:void 0,this.name=il(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}vr.prototype.file="";vr.prototype.name="";vr.prototype.reason="";vr.prototype.message="";vr.prototype.stack="";vr.prototype.column=void 0;vr.prototype.line=void 0;vr.prototype.ancestors=void 0;vr.prototype.cause=void 0;vr.prototype.fatal=void 0;vr.prototype.place=void 0;vr.prototype.ruleId=void 0;vr.prototype.source=void 0;const zp={}.hasOwnProperty,EK=new Map,_K=/[A-Z]/g,AK=new Set(["table","tbody","thead","tfoot","tr"]),BK=new Set(["td","th"]),V7="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function LK(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=PK(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=RK(r,t.jsx,t.jsxs)}const n={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?sa:Al,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=G7(n,e,void 0);return a&&typeof a!="string"?a:n.create(e,n.Fragment,{children:a||void 0},void 0)}function G7(e,t,r){if(t.type==="element")return IK(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return MK(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return FK(e,t,r);if(t.type==="mdxjsEsm")return NK(e,t);if(t.type==="root")return OK(e,t,r);if(t.type==="text")return DK(e,t)}function IK(e,t,r){const i=e.schema;let n=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(n=sa,e.schema=n),e.ancestors.push(t);const a=K7(e,t.tagName,!1),s=$K(e,t);let o=qp(e,t);return AK.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!xK(l):!0})),X7(e,s,a,t),Hp(s,o),e.ancestors.pop(),e.schema=i,e.create(t,a,s,r)}function MK(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}wl(e,t.position)}function NK(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);wl(e,t.position)}function FK(e,t,r){const i=e.schema;let n=i;t.name==="svg"&&i.space==="html"&&(n=sa,e.schema=n),e.ancestors.push(t);const a=t.name===null?e.Fragment:K7(e,t.name,!0),s=zK(e,t),o=qp(e,t);return X7(e,s,a,t),Hp(s,o),e.ancestors.pop(),e.schema=i,e.create(t,a,s,r)}function OK(e,t,r){const i={};return Hp(i,qp(e,t)),e.create(t,e.Fragment,i,r)}function DK(e,t){return t.value}function X7(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function Hp(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function RK(e,t,r){return i;function i(n,a,s,o){const u=Array.isArray(s.children)?r:t;return o?u(a,s,o):u(a,s)}}function PK(e,t){return r;function r(i,n,a,s){const o=Array.isArray(a.children),l=ln(i);return t(n,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function $K(e,t){const r={};let i,n;for(n in t.properties)if(n!=="children"&&zp.call(t.properties,n)){const a=HK(e,n,t.properties[n]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&BK.has(t.tagName)?i=o:r[s]=o}}if(i){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function zK(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const a=i.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(r,e.evaluater.evaluateExpression(o.argument))}else wl(e,t.position);else{const n=i.name;let a;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const o=i.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else wl(e,t.position);else a=i.value===null?!0:i.value;r[n]=a}return r}function qp(e,t){const r=[];let i=-1;const n=e.passKeys?new Map:EK;for(;++i<t.children.length;){const a=t.children[i];let s;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const u=n.get(l)||0;s=l+"-"+u,n.set(l,u+1)}}const o=G7(e,a,s);o!==void 0&&r.push(o)}return r}function HK(e,t,r){const i=Vc(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?S4(r):E4(r)),i.property==="style"){let n=typeof r=="object"?r:qK(e,String(r));return e.stylePropertyNameCase==="css"&&(n=UK(n)),["style",n]}return[e.elementAttributeNameCase==="react"&&i.space?pS[i.property]||i.property:i.attribute,r]}}function qK(e,t){try{return SK(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,n=new vr("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=V7+"#cannot-parse-style-attribute",n}}function K7(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const n=t.split(".");let a=-1,s;for(;++a<n.length;){const o=ey(n[a])?{type:"Identifier",name:n[a]}:{type:"Literal",value:n[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}i=s}else i=ey(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const n=i.value;return zp.call(e.components,n)?e.components[n]:n}if(e.evaluater)return e.evaluater.evaluateExpression(i);wl(e)}function wl(e,t){const r=new vr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=V7+"#cannot-handle-mdx-estrees-without-createevaluater",r}function UK(e){const t={};let r;for(r in e)zp.call(e,r)&&(t[WK(r)]=e[r]);return t}function WK(e){let t=e.replace(_K,jK);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function jK(e){return"-"+e.toLowerCase()}const W0={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},YK={tokenize:VK};function VK(e){const t=e.attempt(this.parser.constructs.contentInitial,i,n);let r;return t;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),oe(e,t,"linePrefix")}function n(o){return e.enter("paragraph"),a(o)}function a(o){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return Rt(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const GK={tokenize:XK},uy={tokenize:KK};function XK(e){const t=this,r=[];let i=0,n,a,s;return o;function o(w){if(i<r.length){const _=r[i];return t.containerState=_[1],e.attempt(_[0].continuation,l,u)(w)}return u(w)}function l(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,n&&k();const _=t.events.length;let A=_,E;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){E=t.events[A][1].end;break}y(i);let N=_;for(;N<t.events.length;)t.events[N][1].end={...E},N++;return dr(t.events,A+1,0,t.events.slice(_)),t.events.length=N,u(w)}return o(w)}function u(w){if(i===r.length){if(!n)return f(w);if(n.currentConstruct&&n.currentConstruct.concrete)return p(w);t.interrupt=!!(n.currentConstruct&&!n._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(uy,c,h)(w)}function c(w){return n&&k(),y(i),f(w)}function h(w){return t.parser.lazy[t.now().line]=i!==r.length,s=t.now().offset,p(w)}function f(w){return t.containerState={},e.attempt(uy,d,p)(w)}function d(w){return i++,r.push([t.currentConstruct,t.containerState]),f(w)}function p(w){if(w===null){n&&k(),y(0),e.consume(w);return}return n=n||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:n,contentType:"flow",previous:a}),m(w)}function m(w){if(w===null){g(e.exit("chunkFlow"),!0),y(0),e.consume(w);return}return Rt(w)?(e.consume(w),g(e.exit("chunkFlow")),i=0,t.interrupt=void 0,o):(e.consume(w),m)}function g(w,_){const A=t.sliceStream(w);if(_&&A.push(null),w.previous=a,a&&(a.next=w),a=w,n.defineSkip(w.start),n.write(A),t.parser.lazy[w.start.line]){let E=n.events.length;for(;E--;)if(n.events[E][1].start.offset<s&&(!n.events[E][1].end||n.events[E][1].end.offset>s))return;const N=t.events.length;let F=N,Y,I;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){if(Y){I=t.events[F][1].end;break}Y=!0}for(y(i),E=N;E<t.events.length;)t.events[E][1].end={...I},E++;dr(t.events,F+1,0,t.events.slice(N)),t.events.length=E}}function y(w){let _=r.length;for(;_-- >w;){const A=r[_];t.containerState=A[1],A[0].exit.call(t,e)}r.length=w}function k(){n.write([null]),a=void 0,n=void 0,t.containerState._closeFlow=void 0}}function KK(e,t,r){return oe(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const QK={tokenize:ZK};function ZK(e){const t=this,r=e.attempt(Ul,i,e.attempt(this.parser.constructs.flowInitial,n,oe(e,e.attempt(this.parser.constructs.flow,n,e.attempt(HV,n)),"linePrefix")));return r;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function n(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const JK={resolveAll:Z7()},tQ=Q7("string"),eQ=Q7("text");function Q7(e){return{resolveAll:Z7(e==="text"?rQ:void 0),tokenize:t};function t(r){const i=this,n=this.parser.constructs[e],a=r.attempt(n,s,o);return s;function s(c){return u(c)?a(c):o(c)}function o(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const h=n[c];let f=-1;if(h)for(;++f<h.length;){const d=h[f];if(!d.previous||d.previous.call(i,i.previous))return!0}return!1}}}function Z7(e){return t;function t(r,i){let n=-1,a;for(;++n<=r.length;)a===void 0?r[n]&&r[n][1].type==="data"&&(a=n,n++):(!r[n]||r[n][1].type!=="data")&&(n!==a+2&&(r[a][1].end=r[n-1][1].end,r.splice(a+2,n-a-2),n=a+2),a=void 0);return e?e(r,i):r}}function rQ(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],n=t.sliceStream(i);let a=n.length,s=-1,o=0,l;for(;a--;){const u=n[a];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(o=0),o){const u={type:r===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:i.start._bufferIndex+s,_index:i.start._index+a,line:i.end.line,column:i.end.column-o,offset:i.end.offset-o},end:{...i.end}};i.end={...u.start},i.start.offset===i.end.offset?Object.assign(i,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}const iQ={42:qr,43:qr,45:qr,48:qr,49:qr,50:qr,51:qr,52:qr,53:qr,54:qr,55:qr,56:qr,57:qr,62:I7},nQ={91:YV},aQ={[-2]:z0,[-1]:z0,32:z0},sQ={35:ZV,42:ju,45:[Gb,ju],60:rG,61:Gb,95:ju,96:Yb,126:Yb},oQ={38:N7,92:M7},lQ={[-5]:H0,[-4]:H0,[-3]:H0,33:CG,38:N7,42:Rf,60:[TV,uG],91:TG,92:[KV,M7],93:Rp,95:Rf,96:OV},uQ={null:[Rf,JK]},cQ={null:[42,95]},hQ={null:[]},dQ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:cQ,contentInitial:nQ,disable:hQ,document:iQ,flow:sQ,flowInitial:aQ,insideSpan:uQ,string:oQ,text:lQ},Symbol.toStringTag,{value:"Module"}));function fQ(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const n={},a=[];let s=[],o=[];const l={attempt:N(A),check:N(E),consume:k,enter:w,exit:_,interrupt:N(E,{interrupt:!0})},u={code:null,containerState:{},defineSkip:m,events:[],now:p,parser:e,previous:null,sliceSerialize:f,sliceStream:d,write:h};let c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function h(z){return s=cr(s,z),g(),s[s.length-1]!==null?[]:(F(t,0),u.events=Gs(a,u.events,u),u.events)}function f(z,K){return mQ(d(z),K)}function d(z){return pQ(s,z)}function p(){const{_bufferIndex:z,_index:K,line:J,column:j,offset:P}=i;return{_bufferIndex:z,_index:K,line:J,column:j,offset:P}}function m(z){n[z.line]=z.column,I()}function g(){let z;for(;i._index<s.length;){const K=s[i._index];if(typeof K=="string")for(z=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===z&&i._bufferIndex<K.length;)y(K.charCodeAt(i._bufferIndex));else y(K)}}function y(z){c=c(z)}function k(z){Rt(z)?(i.line++,i.column=1,i.offset+=z===-3?2:1,I()):z!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=z}function w(z,K){const J=K||{};return J.type=z,J.start=p(),u.events.push(["enter",J,u]),o.push(J),J}function _(z){const K=o.pop();return K.end=p(),u.events.push(["exit",K,u]),K}function A(z,K){F(z,K.from)}function E(z,K){K.restore()}function N(z,K){return J;function J(j,P,$){let V,X,it,L;return Array.isArray(j)?Ct(j):"tokenize"in j?Ct([j]):lt(j);function lt(Ft){return zt;function zt(Zt){const Vt=Zt!==null&&Ft[Zt],yt=Zt!==null&&Ft.null,bt=[...Array.isArray(Vt)?Vt:Vt?[Vt]:[],...Array.isArray(yt)?yt:yt?[yt]:[]];return Ct(bt)(Zt)}}function Ct(Ft){return V=Ft,X=0,Ft.length===0?$:O(Ft[X])}function O(Ft){return zt;function zt(Zt){return L=Y(),it=Ft,Ft.partial||(u.currentConstruct=Ft),Ft.name&&u.parser.constructs.disable.null.includes(Ft.name)?_t():Ft.tokenize.call(K?Object.assign(Object.create(u),K):u,l,St,_t)(Zt)}}function St(Ft){return z(it,L),P}function _t(Ft){return L.restore(),++X<V.length?O(V[X]):$}}}function F(z,K){z.resolveAll&&!a.includes(z)&&a.push(z),z.resolve&&dr(u.events,K,u.events.length-K,z.resolve(u.events.slice(K),u)),z.resolveTo&&(u.events=z.resolveTo(u.events,u))}function Y(){const z=p(),K=u.previous,J=u.currentConstruct,j=u.events.length,P=Array.from(o);return{from:j,restore:$};function $(){i=z,u.previous=K,u.currentConstruct=J,u.events.length=j,o=P,I()}}function I(){i.line in n&&i.column<2&&(i.column=n[i.line],i.offset+=n[i.line]-1)}}function pQ(e,t){const r=t.start._index,i=t.start._bufferIndex,n=t.end._index,a=t.end._bufferIndex;let s;if(r===n)s=[e[r].slice(i,a)];else{if(s=e.slice(r,n),i>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(i):s.shift()}a>0&&s.push(e[n].slice(0,a))}return s}function mQ(e,t){let r=-1;const i=[];let n;for(;++r<e.length;){const a=e[r];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
|
|
620
|
+
`;break}case-3:{s=`\r
|
|
621
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&n)continue;s=" ";break}default:s=String.fromCharCode(a)}n=a===-2,i.push(s)}return i.join("")}function gQ(e){const i={constructs:T7([dQ,...(e||{}).extensions||[]]),content:n(YK),defined:[],document:n(GK),flow:n(QK),lazy:{},string:n(tQ),text:n(eQ)};return i;function n(a){return s;function s(o){return fQ(i,a,o)}}}function bQ(e){for(;!F7(e););return e}const cy=/[\0\t\n\r]/g;function yQ(){let e=1,t="",r=!0,i;return n;function n(a,s,o){const l=[];let u,c,h,f,d;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),h=0,t="",r&&(a.charCodeAt(0)===65279&&h++,r=void 0);h<a.length;){if(cy.lastIndex=h,u=cy.exec(a),f=u&&u.index!==void 0?u.index:a.length,d=a.charCodeAt(f),!u){t=a.slice(h);break}if(d===10&&h===f&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),h<f&&(l.push(a.slice(h,f)),e+=f-h),d){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:i=!0,e=1}h=f+1}return o&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const J7={}.hasOwnProperty;function xQ(e,t,r){return t&&typeof t=="object"&&(r=t,t=void 0),CQ(r)(bQ(gQ(r).document().write(yQ()(e,t,!0))))}function CQ(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ge),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:a(vt),blockQuote:a(yt),characterEscape:Y,characterReference:Y,codeFenced:a(bt),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(bt,s),codeText:a(jt,s),codeTextData:Y,data:Y,codeFlowValue:Y,definition:a(It),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(et),hardBreakEscape:a(nr),hardBreakTrailing:a(nr),htmlFlow:a(Mi,s),htmlFlowData:Y,htmlText:a(Mi,s),htmlTextData:Y,image:a(Ht),label:s,link:a(ge),listItem:a(Sr),listItemValue:f,listOrdered:a(Le,h),listUnordered:a(Le),paragraph:a(ni),reference:O,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(vt),strong:a($r),thematicBreak:a(ai)},exit:{atxHeading:l(),atxHeadingSequence:A,autolink:l(),autolinkEmail:Vt,autolinkProtocol:Zt,blockQuote:l(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:_t,characterReferenceMarkerNumeric:_t,characterReferenceValue:Ft,characterReference:zt,codeFenced:l(g),codeFencedFence:m,codeFencedFenceInfo:d,codeFencedFenceMeta:p,codeFlowValue:I,codeIndented:l(y),codeText:l(P),codeTextData:I,data:I,definition:l(),definitionDestinationString:_,definitionLabelString:k,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(K),hardBreakTrailing:l(K),htmlFlow:l(J),htmlFlowData:I,htmlText:l(j),htmlTextData:I,image:l(V),label:it,labelText:X,lineEnding:z,link:l($),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:St,resourceDestinationString:L,resourceTitleString:lt,resource:Ct,setextHeading:l(F),setextHeadingLineSequence:N,setextHeadingText:E,strong:l(),thematicBreak:l()}};tw(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(ot){let kt={type:"root",children:[]};const qt={stack:[kt],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:c,data:r},re=[];let he=-1;for(;++he<ot.length;)if(ot[he][1].type==="listOrdered"||ot[he][1].type==="listUnordered")if(ot[he][0]==="enter")re.push(he);else{const pr=re.pop();he=n(ot,pr,he)}for(he=-1;++he<ot.length;){const pr=t[ot[he][0]];J7.call(pr,ot[he][1].type)&&pr[ot[he][1].type].call(Object.assign({sliceSerialize:ot[he][2].sliceSerialize},qt),ot[he][1])}if(qt.tokenStack.length>0){const pr=qt.tokenStack[qt.tokenStack.length-1];(pr[1]||hy).call(qt,void 0,pr[0])}for(kt.position={start:Dn(ot.length>0?ot[0][1].start:{line:1,column:1,offset:0}),end:Dn(ot.length>0?ot[ot.length-2][1].end:{line:1,column:1,offset:0})},he=-1;++he<t.transforms.length;)kt=t.transforms[he](kt)||kt;return kt}function n(ot,kt,qt){let re=kt-1,he=-1,pr=!1,si,oi,Ln,In;for(;++re<=qt;){const ar=ot[re];switch(ar[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ar[0]==="enter"?he++:he--,In=void 0;break}case"lineEndingBlank":{ar[0]==="enter"&&(si&&!In&&!he&&!Ln&&(Ln=re),In=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:In=void 0}if(!he&&ar[0]==="enter"&&ar[1].type==="listItemPrefix"||he===-1&&ar[0]==="exit"&&(ar[1].type==="listUnordered"||ar[1].type==="listOrdered")){if(si){let Fi=re;for(oi=void 0;Fi--;){const mr=ot[Fi];if(mr[1].type==="lineEnding"||mr[1].type==="lineEndingBlank"){if(mr[0]==="exit")continue;oi&&(ot[oi][1].type="lineEndingBlank",pr=!0),mr[1].type="lineEnding",oi=Fi}else if(!(mr[1].type==="linePrefix"||mr[1].type==="blockQuotePrefix"||mr[1].type==="blockQuotePrefixWhitespace"||mr[1].type==="blockQuoteMarker"||mr[1].type==="listItemIndent"))break}Ln&&(!oi||Ln<oi)&&(si._spread=!0),si.end=Object.assign({},oi?ot[oi][1].start:ar[1].end),ot.splice(oi||re,0,["exit",si,ar[2]]),re++,qt++}if(ar[1].type==="listItemPrefix"){const Fi={type:"listItem",_spread:!1,start:Object.assign({},ar[1].start),end:void 0};si=Fi,ot.splice(re,0,["enter",Fi,ar[2]]),re++,qt++,Ln=void 0,In=!0}}}return ot[kt][1]._spread=pr,qt}function a(ot,kt){return qt;function qt(re){o.call(this,ot(re),re),kt&&kt.call(this,re)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(ot,kt,qt){this.stack[this.stack.length-1].children.push(ot),this.stack.push(ot),this.tokenStack.push([kt,qt||void 0]),ot.position={start:Dn(kt.start),end:void 0}}function l(ot){return kt;function kt(qt){ot&&ot.call(this,qt),u.call(this,qt)}}function u(ot,kt){const qt=this.stack.pop(),re=this.tokenStack.pop();if(re)re[0].type!==ot.type&&(kt?kt.call(this,ot,re[0]):(re[1]||hy).call(this,ot,re[0]));else throw new Error("Cannot close `"+ot.type+"` ("+il({start:ot.start,end:ot.end})+"): it’s not open");qt.position.end=Dn(ot.end)}function c(){return Np(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function f(ot){if(this.data.expectingFirstListItemValue){const kt=this.stack[this.stack.length-2];kt.start=Number.parseInt(this.sliceSerialize(ot),10),this.data.expectingFirstListItemValue=void 0}}function d(){const ot=this.resume(),kt=this.stack[this.stack.length-1];kt.lang=ot}function p(){const ot=this.resume(),kt=this.stack[this.stack.length-1];kt.meta=ot}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const ot=this.resume(),kt=this.stack[this.stack.length-1];kt.value=ot.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const ot=this.resume(),kt=this.stack[this.stack.length-1];kt.value=ot.replace(/(\r?\n|\r)$/g,"")}function k(ot){const kt=this.resume(),qt=this.stack[this.stack.length-1];qt.label=kt,qt.identifier=Si(this.sliceSerialize(ot)).toLowerCase()}function w(){const ot=this.resume(),kt=this.stack[this.stack.length-1];kt.title=ot}function _(){const ot=this.resume(),kt=this.stack[this.stack.length-1];kt.url=ot}function A(ot){const kt=this.stack[this.stack.length-1];if(!kt.depth){const qt=this.sliceSerialize(ot).length;kt.depth=qt}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function N(ot){const kt=this.stack[this.stack.length-1];kt.depth=this.sliceSerialize(ot).codePointAt(0)===61?1:2}function F(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(ot){const qt=this.stack[this.stack.length-1].children;let re=qt[qt.length-1];(!re||re.type!=="text")&&(re=Ni(),re.position={start:Dn(ot.start),end:void 0},qt.push(re)),this.stack.push(re)}function I(ot){const kt=this.stack.pop();kt.value+=this.sliceSerialize(ot),kt.position.end=Dn(ot.end)}function z(ot){const kt=this.stack[this.stack.length-1];if(this.data.atHardBreak){const qt=kt.children[kt.children.length-1];qt.position.end=Dn(ot.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(kt.type)&&(Y.call(this,ot),I.call(this,ot))}function K(){this.data.atHardBreak=!0}function J(){const ot=this.resume(),kt=this.stack[this.stack.length-1];kt.value=ot}function j(){const ot=this.resume(),kt=this.stack[this.stack.length-1];kt.value=ot}function P(){const ot=this.resume(),kt=this.stack[this.stack.length-1];kt.value=ot}function $(){const ot=this.stack[this.stack.length-1];if(this.data.inReference){const kt=this.data.referenceType||"shortcut";ot.type+="Reference",ot.referenceType=kt,delete ot.url,delete ot.title}else delete ot.identifier,delete ot.label;this.data.referenceType=void 0}function V(){const ot=this.stack[this.stack.length-1];if(this.data.inReference){const kt=this.data.referenceType||"shortcut";ot.type+="Reference",ot.referenceType=kt,delete ot.url,delete ot.title}else delete ot.identifier,delete ot.label;this.data.referenceType=void 0}function X(ot){const kt=this.sliceSerialize(ot),qt=this.stack[this.stack.length-2];qt.label=YY(kt),qt.identifier=Si(kt).toLowerCase()}function it(){const ot=this.stack[this.stack.length-1],kt=this.resume(),qt=this.stack[this.stack.length-1];if(this.data.inReference=!0,qt.type==="link"){const re=ot.children;qt.children=re}else qt.alt=kt}function L(){const ot=this.resume(),kt=this.stack[this.stack.length-1];kt.url=ot}function lt(){const ot=this.resume(),kt=this.stack[this.stack.length-1];kt.title=ot}function Ct(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function St(ot){const kt=this.resume(),qt=this.stack[this.stack.length-1];qt.label=kt,qt.identifier=Si(this.sliceSerialize(ot)).toLowerCase(),this.data.referenceType="full"}function _t(ot){this.data.characterReferenceType=ot.type}function Ft(ot){const kt=this.sliceSerialize(ot),qt=this.data.characterReferenceType;let re;qt?(re=k7(kt,qt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):re=Op(kt);const he=this.stack[this.stack.length-1];he.value+=re}function zt(ot){const kt=this.stack.pop();kt.position.end=Dn(ot.end)}function Zt(ot){I.call(this,ot);const kt=this.stack[this.stack.length-1];kt.url=this.sliceSerialize(ot)}function Vt(ot){I.call(this,ot);const kt=this.stack[this.stack.length-1];kt.url="mailto:"+this.sliceSerialize(ot)}function yt(){return{type:"blockquote",children:[]}}function bt(){return{type:"code",lang:null,meta:null,value:""}}function jt(){return{type:"inlineCode",value:""}}function It(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function et(){return{type:"emphasis",children:[]}}function vt(){return{type:"heading",depth:0,children:[]}}function nr(){return{type:"break"}}function Mi(){return{type:"html",value:""}}function Ht(){return{type:"image",title:null,url:"",alt:null}}function ge(){return{type:"link",title:null,url:"",children:[]}}function Le(ot){return{type:"list",ordered:ot.type==="listOrdered",start:null,spread:ot._spread,children:[]}}function Sr(ot){return{type:"listItem",spread:ot._spread,checked:null,children:[]}}function ni(){return{type:"paragraph",children:[]}}function $r(){return{type:"strong",children:[]}}function Ni(){return{type:"text",value:""}}function ai(){return{type:"thematicBreak"}}}function Dn(e){return{line:e.line,column:e.column,offset:e.offset}}function tw(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?tw(e,i):kQ(e,i)}}function kQ(e,t){let r;for(r in t)if(J7.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function hy(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+il({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+il({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+il({start:t.start,end:t.end})+") is still open")}function TQ(e){const t=this;t.parser=r;function r(i){return xQ(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function wQ(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function vQ(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
|
622
|
+
`}]}function SQ(e,t){const r=t.value?t.value+`
|
|
623
|
+
`:"",i={},n=t.lang?t.lang.split(/\s+/):[];n.length>0&&(i.className=["language-"+n[0]]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function EQ(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function _Q(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function AQ(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),n=so(i.toLowerCase()),a=e.footnoteOrder.indexOf(i);let s,o=e.footnoteCounts.get(i);o===void 0?(o=0,e.footnoteOrder.push(i),s=e.footnoteOrder.length):s=a+1,o+=1,e.footnoteCounts.set(i,o);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+n,id:r+"fnref-"+n+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function BQ(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function LQ(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function ew(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const n=e.all(t),a=n[0];a&&a.type==="text"?a.value="["+a.value:n.unshift({type:"text",value:"["});const s=n[n.length-1];return s&&s.type==="text"?s.value+=i:n.push({type:"text",value:i}),n}function IQ(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return ew(e,t);const n={src:so(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(n.title=i.title);const a={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,a),e.applyData(t,a)}function MQ(e,t){const r={src:so(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function NQ(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function FQ(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return ew(e,t);const n={href:so(i.url||"")};i.title!==null&&i.title!==void 0&&(n.title=i.title);const a={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function OQ(e,t){const r={href:so(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function DQ(e,t,r){const i=e.all(t),n=r?RQ(r):rw(t),a={},s=[];if(typeof t.checked=="boolean"){const c=i[0];let h;c&&c.type==="element"&&c.tagName==="p"?h=c:(h={type:"element",tagName:"p",properties:{},children:[]},i.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<i.length;){const c=i[o];(n||o!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
|
|
624
|
+
`}),c.type==="element"&&c.tagName==="p"&&!n?s.push(...c.children):s.push(c)}const l=i[i.length-1];l&&(n||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
|
625
|
+
`});const u={type:"element",tagName:"li",properties:a,children:s};return e.patch(t,u),e.applyData(t,u)}function RQ(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=rw(r[i])}return t}function rw(e){const t=e.spread;return t??e.children.length>1}function PQ(e,t){const r={},i=e.all(t);let n=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++n<i.length;){const s=i[n];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function $Q(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function zQ(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function HQ(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function qQ(e,t){const r=e.all(t),i=r.shift(),n=[];if(i){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],s),n.push(s)}if(r.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},o=ln(t.children[1]),l=Ih(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),n.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)}function UQ(e,t,r){const i=r?r.children:void 0,a=(i?i.indexOf(t):1)===0?"th":"td",s=r&&r.type==="table"?r.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<o;){const h=t.children[l],f={},d=s?s[l]:void 0;d&&(f.align=d);let p={type:"element",tagName:a,properties:f,children:[]};h&&(p.children=e.all(h),e.patch(h,p),p=e.applyData(h,p)),u.push(p)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function WQ(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const dy=9,fy=32;function jQ(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),n=0;const a=[];for(;i;)a.push(py(t.slice(n,i.index),n>0,!0),i[0]),n=i.index+i[0].length,i=r.exec(t);return a.push(py(t.slice(n),n>0,!1)),a.join("")}function py(e,t,r){let i=0,n=e.length;if(t){let a=e.codePointAt(i);for(;a===dy||a===fy;)i++,a=e.codePointAt(i)}if(r){let a=e.codePointAt(n-1);for(;a===dy||a===fy;)n--,a=e.codePointAt(n-1)}return n>i?e.slice(i,n):""}function YQ(e,t){const r={type:"text",value:jQ(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function VQ(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const GQ={blockquote:wQ,break:vQ,code:SQ,delete:EQ,emphasis:_Q,footnoteReference:AQ,heading:BQ,html:LQ,imageReference:IQ,image:MQ,inlineCode:NQ,linkReference:FQ,link:OQ,listItem:DQ,list:PQ,paragraph:$Q,root:zQ,strong:HQ,table:qQ,tableCell:WQ,tableRow:UQ,text:YQ,thematicBreak:VQ,toml:Cu,yaml:Cu,definition:Cu,footnoteDefinition:Cu};function Cu(){}function XQ(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function KQ(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function QQ(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||XQ,i=e.options.footnoteBackLabel||KQ,n=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),h=String(u.identifier).toUpperCase(),f=so(h.toLowerCase());let d=0;const p=[],m=e.footnoteCounts.get(h);for(;m!==void 0&&++d<=m;){p.length>0&&p.push({type:"text",value:" "});let k=typeof r=="string"?r:r(l,d);typeof k=="string"&&(k={type:"text",value:k}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+f+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,d),className:["data-footnote-backref"]},children:Array.isArray(k)?k:[k]})}const g=c[c.length-1];if(g&&g.type==="element"&&g.tagName==="p"){const k=g.children[g.children.length-1];k&&k.type==="text"?k.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...p)}else c.push(...p);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+f},children:e.wrap(c,!0)};e.patch(u,y),o.push(y)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Ha(s),id:"footnote-label"},children:[{type:"text",value:n}]},{type:"text",value:`
|
|
626
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
627
|
+
`}]}}const $f={}.hasOwnProperty,ZQ={};function JQ(e,t){const r=t||ZQ,i=new Map,n=new Map,a=new Map,s={...GQ,...r.handlers},o={all:u,applyData:eZ,definitionById:i,footnoteById:n,footnoteCounts:a,footnoteOrder:[],handlers:s,one:l,options:r,patch:tZ,wrap:iZ};return Ei(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const h=c.type==="definition"?i:n,f=String(c.identifier).toUpperCase();h.has(f)||h.set(f,c)}}),o;function l(c,h){const f=c.type,d=o.handlers[f];if($f.call(o.handlers,f)&&d)return d(o,c,h);if(o.options.passThrough&&o.options.passThrough.includes(f)){if("children"in c){const{children:m,...g}=c,y=Ha(g);return y.children=o.all(c),y}return Ha(c)}return(o.options.unknownHandler||rZ)(o,c,h)}function u(c){const h=[];if("children"in c){const f=c.children;let d=-1;for(;++d<f.length;){const p=o.one(f[d],c);if(p){if(d&&f[d-1].type==="break"&&(!Array.isArray(p)&&p.type==="text"&&(p.value=my(p.value)),!Array.isArray(p)&&p.type==="element")){const m=p.children[0];m&&m.type==="text"&&(m.value=my(m.value))}Array.isArray(p)?h.push(...p):h.push(p)}}}return h}}function tZ(e,t){e.position&&(t.position=K8(e))}function eZ(e,t){let r=t;if(e&&e.data){const i=e.data.hName,n=e.data.hChildren,a=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const s="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:s}}r.type==="element"&&a&&Object.assign(r.properties,Ha(a)),"children"in r&&r.children&&n!==null&&n!==void 0&&(r.children=n)}return r}function rZ(e,t){const r=t.data||{},i="value"in t&&!($f.call(r,"hProperties")||$f.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function iZ(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
|
|
628
|
+
`});++i<e.length;)i&&r.push({type:"text",value:`
|
|
629
|
+
`}),r.push(e[i]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
630
|
+
`}),r}function my(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function gy(e,t){const r=JQ(e,t),i=r.one(e,void 0),n=QQ(r),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return n&&a.children.push({type:"text",value:`
|
|
631
|
+
`},n),a}function nZ(e,t){return e&&"run"in e?async function(r,i){const n=gy(r,{file:i,...t});await e.run(n,i)}:function(r,i){return gy(r,{file:i,...e||t})}}function by(e){if(e)throw e}var j0,yy;function aZ(){if(yy)return j0;yy=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,n=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},a=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),h=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!h)return!1;var f;for(f in u);return typeof f>"u"||e.call(u,f)},s=function(u,c){r&&c.name==="__proto__"?r(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},o=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(i)return i(u,c).value}else return;return u[c]};return j0=function l(){var u,c,h,f,d,p,m=arguments[0],g=1,y=arguments.length,k=!1;for(typeof m=="boolean"&&(k=m,m=arguments[1]||{},g=2),(m==null||typeof m!="object"&&typeof m!="function")&&(m={});g<y;++g)if(u=arguments[g],u!=null)for(c in u)h=o(m,c),f=o(u,c),m!==f&&(k&&f&&(a(f)||(d=n(f)))?(d?(d=!1,p=h&&n(h)?h:[]):p=h&&a(h)?h:{},s(m,{name:c,newValue:l(k,p,f)})):typeof f<"u"&&s(m,{name:c,newValue:f}));return m},j0}var sZ=aZ();const Y0=Qf(sZ);function zf(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function oZ(){const e=[],t={run:r,use:i};return t;function r(...n){let a=-1;const s=n.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...n);function o(l,...u){const c=e[++a];let h=-1;if(l){s(l);return}for(;++h<n.length;)(u[h]===null||u[h]===void 0)&&(u[h]=n[h]);n=u,c?lZ(c,o)(...u):s(null,...u)}}function i(n){if(typeof n!="function")throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function lZ(e,t){let r;return i;function i(...s){const o=e.length>s.length;let l;o&&s.push(n);try{l=e.apply(this,s)}catch(u){const c=u;if(o&&r)throw c;return n(c)}o||(l&&l.then&&typeof l.then=="function"?l.then(a,n):l instanceof Error?n(l):a(l))}function n(s,...o){r||(r=!0,t(s,...o))}function a(s){n(null,s)}}const Ui={basename:uZ,dirname:cZ,extname:hZ,join:dZ,sep:"/"};function uZ(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Wl(e);let r=0,i=-1,n=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;n--;)if(e.codePointAt(n)===47){if(a){r=n+1;break}}else i<0&&(a=!0,i=n+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,o=t.length-1;for(;n--;)if(e.codePointAt(n)===47){if(a){r=n+1;break}}else s<0&&(a=!0,s=n+1),o>-1&&(e.codePointAt(n)===t.codePointAt(o--)?o<0&&(i=n):(o=-1,i=s));return r===i?i=s:i<0&&(i=e.length),e.slice(r,i)}function cZ(e){if(Wl(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function hZ(e){Wl(e);let t=e.length,r=-1,i=0,n=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){i=t+1;break}continue}r<0&&(s=!0,r=t+1),o===46?n<0?n=t:a!==1&&(a=1):n>-1&&(a=-1)}return n<0||r<0||a===0||a===1&&n===r-1&&n===i+1?"":e.slice(n,r)}function dZ(...e){let t=-1,r;for(;++t<e.length;)Wl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":fZ(r)}function fZ(e){Wl(e);const t=e.codePointAt(0)===47;let r=pZ(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function pZ(e,t){let r="",i=0,n=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(n===s-1||a===1))if(n!==s-1&&a===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",i=0):(r=r.slice(0,l),i=r.length-1-r.lastIndexOf("/")),n=s,a=0;continue}}else if(r.length>0){r="",i=0,n=s,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(n+1,s):r=e.slice(n+1,s),i=s-n-1;n=s,a=0}else o===46&&a>-1?a++:a=-1}return r}function Wl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const mZ={cwd:gZ};function gZ(){return"/"}function Hf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function bZ(e){if(typeof e=="string")e=new URL(e);else if(!Hf(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return yZ(e)}function yZ(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const n=new TypeError("File URL path must not include encoded / characters");throw n.code="ERR_INVALID_FILE_URL_PATH",n}}return decodeURIComponent(t)}const V0=["history","path","basename","stem","extname","dirname"];class xZ{constructor(t){let r;t?Hf(t)?r={path:t}:typeof t=="string"||CZ(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":mZ.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<V0.length;){const a=V0[i];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let n;for(n in r)V0.includes(n)||(this[n]=r[n])}get basename(){return typeof this.path=="string"?Ui.basename(this.path):void 0}set basename(t){X0(t,"basename"),G0(t,"basename"),this.path=Ui.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ui.dirname(this.path):void 0}set dirname(t){xy(this.basename,"dirname"),this.path=Ui.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ui.extname(this.path):void 0}set extname(t){if(G0(t,"extname"),xy(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ui.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Hf(t)&&(t=bZ(t)),X0(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ui.basename(this.path,this.extname):void 0}set stem(t){X0(t,"stem"),G0(t,"stem"),this.path=Ui.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const n=this.message(t,r,i);throw n.fatal=!0,n}info(t,r,i){const n=this.message(t,r,i);return n.fatal=void 0,n}message(t,r,i){const n=new vr(t,r,i);return this.path&&(n.name=this.path+":"+n.name,n.file=this.path),n.fatal=!1,this.messages.push(n),n}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function G0(e,t){if(e&&e.includes(Ui.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ui.sep+"`")}function X0(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function xy(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function CZ(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const kZ=(function(e){const i=this.constructor.prototype,n=i[e],a=function(){return n.apply(a,arguments)};return Object.setPrototypeOf(a,i),a}),TZ={}.hasOwnProperty;class Up extends kZ{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=oZ()}copy(){const t=new Up;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(Y0(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Z0("data",this.frozen),this.namespace[t]=r,this):TZ.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Z0("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const n=r.call(t,...i);typeof n=="function"&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=ku(t),i=this.parser||this.Parser;return K0("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),K0("process",this.parser||this.Parser),Q0("process",this.compiler||this.Compiler),r?n(void 0,r):new Promise(n);function n(a,s){const o=ku(t),l=i.parse(o);i.run(l,o,function(c,h,f){if(c||!h||!f)return u(c);const d=h,p=i.stringify(d,f);SZ(p)?f.value=p:f.result=p,u(c,f)});function u(c,h){c||!h?s(c):a?a(h):r(void 0,h)}}}processSync(t){let r=!1,i;return this.freeze(),K0("processSync",this.parser||this.Parser),Q0("processSync",this.compiler||this.Compiler),this.process(t,n),ky("processSync","process",r),i;function n(a,s){r=!0,by(a),i=s}}run(t,r,i){Cy(t),this.freeze();const n=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?a(void 0,i):new Promise(a);function a(s,o){const l=ku(r);n.run(t,l,u);function u(c,h,f){const d=h||t;c?o(c):s?s(d):i(void 0,d,f)}}}runSync(t,r){let i=!1,n;return this.run(t,r,a),ky("runSync","run",i),n;function a(s,o){by(s),n=o,i=!0}}stringify(t,r){this.freeze();const i=ku(r),n=this.compiler||this.Compiler;return Q0("stringify",n),Cy(t),n(t,i)}use(t,...r){const i=this.attachers,n=this.namespace;if(Z0("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...h]=u;l(c,h)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(n.settings=Y0(!0,n.settings,u.settings))}function o(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const h=u[c];a(h)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let h=-1,f=-1;for(;++h<i.length;)if(i[h][0]===u){f=h;break}if(f===-1)i.push([u,...c]);else if(c.length>0){let[d,...p]=c;const m=i[f][1];zf(m)&&zf(d)&&(d=Y0(!0,m,d)),i[f]=[u,d,...p]}}}}const wZ=new Up().freeze();function K0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Q0(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Z0(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Cy(e){if(!zf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ky(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function ku(e){return vZ(e)?e:new xZ(e)}function vZ(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function SZ(e){return typeof e=="string"||EZ(e)}function EZ(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Wp(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ka=Wp();function iw(e){Ka=e}var Ta={exec:()=>null};function fe(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(n,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(Or.caret,"$1"),r=r.replace(n,s),i},getRegex:()=>new RegExp(r,t)};return i}var _Z=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Or={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,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ 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,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"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},AZ=/^(?:[ \t]*(?:\n|$))+/,BZ=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,LZ=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,jl=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,IZ=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,jp=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,nw=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,aw=fe(nw).replace(/bull/g,jp).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(),MZ=fe(nw).replace(/bull/g,jp).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(),Yp=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,NZ=/^[^\n]+/,Vp=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,FZ=fe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Vp).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),OZ=fe(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,jp).getRegex(),Nh="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",Gp=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,DZ=fe("^ {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",Gp).replace("tag",Nh).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),sw=fe(Yp).replace("hr",jl).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Nh).getRegex(),RZ=fe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",sw).getRegex(),Xp={blockquote:RZ,code:BZ,def:FZ,fences:LZ,heading:IZ,hr:jl,html:DZ,lheading:aw,list:OZ,newline:AZ,paragraph:sw,table:Ta,text:NZ},Ty=fe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",jl).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Nh).getRegex(),PZ={...Xp,lheading:MZ,table:Ty,paragraph:fe(Yp).replace("hr",jl).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ty).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Nh).getRegex()},$Z={...Xp,html:fe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Gp).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:Ta,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:fe(Yp).replace("hr",jl).replace("heading",` *#{1,6} *[^
|
|
632
|
+
]`).replace("lheading",aw).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},zZ=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,HZ=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ow=/^( {2,}|\\)\n(?!\s*$)/,qZ=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,oo=/[\p{P}\p{S}]/u,Fh=/[\s\p{P}\p{S}]/u,Kp=/[^\s\p{P}\p{S}]/u,UZ=fe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Fh).getRegex(),lw=/(?!~)[\p{P}\p{S}]/u,WZ=/(?!~)[\s\p{P}\p{S}]/u,jZ=/(?:[^\s\p{P}\p{S}]|~)/u,YZ=fe(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",_Z?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),uw=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,VZ=fe(uw,"u").replace(/punct/g,oo).getRegex(),GZ=fe(uw,"u").replace(/punct/g,lw).getRegex(),cw="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",XZ=fe(cw,"gu").replace(/notPunctSpace/g,Kp).replace(/punctSpace/g,Fh).replace(/punct/g,oo).getRegex(),KZ=fe(cw,"gu").replace(/notPunctSpace/g,jZ).replace(/punctSpace/g,WZ).replace(/punct/g,lw).getRegex(),QZ=fe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Kp).replace(/punctSpace/g,Fh).replace(/punct/g,oo).getRegex(),ZZ=fe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,oo).getRegex(),JZ="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",tJ=fe(JZ,"gu").replace(/notPunctSpace/g,Kp).replace(/punctSpace/g,Fh).replace(/punct/g,oo).getRegex(),eJ=fe(/\\(punct)/,"gu").replace(/punct/g,oo).getRegex(),rJ=fe(/^<(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(),iJ=fe(Gp).replace("(?:-->|$)","-->").getRegex(),nJ=fe("^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",iJ).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),$c=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,aJ=fe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",$c).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),hw=fe(/^!?\[(label)\]\[(ref)\]/).replace("label",$c).replace("ref",Vp).getRegex(),dw=fe(/^!?\[(ref)\](?:\[\])?/).replace("ref",Vp).getRegex(),sJ=fe("reflink|nolink(?!\\()","g").replace("reflink",hw).replace("nolink",dw).getRegex(),wy=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Qp={_backpedal:Ta,anyPunctuation:eJ,autolink:rJ,blockSkip:YZ,br:ow,code:HZ,del:Ta,delLDelim:Ta,delRDelim:Ta,emStrongLDelim:VZ,emStrongRDelimAst:XZ,emStrongRDelimUnd:QZ,escape:zZ,link:aJ,nolink:dw,punctuation:UZ,reflink:hw,reflinkSearch:sJ,tag:nJ,text:qZ,url:Ta},oJ={...Qp,link:fe(/^!?\[(label)\]\((.*?)\)/).replace("label",$c).getRegex(),reflink:fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$c).getRegex()},qf={...Qp,emStrongRDelimAst:KZ,emStrongLDelim:GZ,delLDelim:ZZ,delRDelim:tJ,url:fe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",wy).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:fe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",wy).getRegex()},lJ={...qf,br:fe(ow).replace("{2,}","*").getRegex(),text:fe(qf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Tu={normal:Xp,gfm:PZ,pedantic:$Z},_o={normal:Qp,gfm:qf,breaks:lJ,pedantic:oJ},uJ={"&":"&","<":"<",">":">",'"':""","'":"'"},vy=e=>uJ[e];function Hi(e,t){if(t){if(Or.escapeTest.test(e))return e.replace(Or.escapeReplace,vy)}else if(Or.escapeTestNoEncode.test(e))return e.replace(Or.escapeReplaceNoEncode,vy);return e}function Sy(e){try{e=encodeURI(e).replace(Or.percentDecode,"%")}catch{return null}return e}function Ey(e,t){var a;let r=e.replace(Or.findPipe,(s,o,l)=>{let u=!1,c=o;for(;--c>=0&&l[c]==="\\";)u=!u;return u?"|":" |"}),i=r.split(Or.splitPipe),n=0;if(i[0].trim()||i.shift(),i.length>0&&!((a=i.at(-1))!=null&&a.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(Or.slashPipe,"|");return i}function Ao(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 cJ(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 hJ(e,t=0){let r=t,i="";for(let n of e)if(n===" "){let a=4-r%4;i+=" ".repeat(a),r+=a}else i+=n,r++;return i}function _y(e,t,r,i,n){let a=t.href,s=t.title||null,o=e[1].replace(n.other.outputLinkReplace,"$1");i.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:s,text:o,tokens:i.inlineTokens(o)};return i.state.inLink=!1,l}function dJ(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let n=i[1];return t.split(`
|
|
633
|
+
`).map(a=>{let s=a.match(r.other.beginningSpace);if(s===null)return a;let[o]=s;return o.length>=n.length?a.slice(n.length):a}).join(`
|
|
634
|
+
`)}var zc=class{constructor(e){$t(this,"options");$t(this,"rules");$t(this,"lexer");this.options=e||Ka}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let r=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Ao(r,`
|
|
635
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let r=t[0],i=dJ(r,t[3]||"",this.rules);return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:i}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(this.rules.other.endingHash.test(r)){let i=Ao(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Ao(t[0],`
|
|
636
|
+
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let r=Ao(t[0],`
|
|
637
|
+
`).split(`
|
|
638
|
+
`),i="",n="",a=[];for(;r.length>0;){let s=!1,o=[],l;for(l=0;l<r.length;l++)if(this.rules.other.blockquoteStart.test(r[l]))o.push(r[l]),s=!0;else if(!s)o.push(r[l]);else break;r=r.slice(l);let u=o.join(`
|
|
639
|
+
`),c=u.replace(this.rules.other.blockquoteSetextReplace,`
|
|
640
|
+
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
|
|
641
|
+
${u}`:u,n=n?`${n}
|
|
642
|
+
${c}`:c;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,a,!0),this.lexer.state.top=h,r.length===0)break;let f=a.at(-1);if((f==null?void 0:f.type)==="code")break;if((f==null?void 0:f.type)==="blockquote"){let d=f,p=d.raw+`
|
|
643
|
+
`+r.join(`
|
|
644
|
+
`),m=this.blockquote(p);a[a.length-1]=m,i=i.substring(0,i.length-d.raw.length)+m.raw,n=n.substring(0,n.length-d.text.length)+m.text;break}else if((f==null?void 0:f.type)==="list"){let d=f,p=d.raw+`
|
|
645
|
+
`+r.join(`
|
|
646
|
+
`),m=this.list(p);a[a.length-1]=m,i=i.substring(0,i.length-f.raw.length)+m.raw,n=n.substring(0,n.length-d.raw.length)+m.raw,r=p.substring(a.at(-1).raw.length).split(`
|
|
647
|
+
`);continue}}return{type:"blockquote",raw:i,tokens:a,text:n}}}list(e){var r,i;let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),a=n.length>1,s={type:"list",raw:"",ordered:a,start:a?+n.slice(0,-1):"",loose:!1,items:[]};n=a?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=a?n:"[*+-]");let o=this.rules.other.listItemRegex(n),l=!1;for(;e;){let c=!1,h="",f="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;h=t[0],e=e.substring(h.length);let d=hJ(t[2].split(`
|
|
648
|
+
`,1)[0],t[1].length),p=e.split(`
|
|
649
|
+
`,1)[0],m=!d.trim(),g=0;if(this.options.pedantic?(g=2,f=d.trimStart()):m?g=t[1].length+1:(g=d.search(this.rules.other.nonSpaceChar),g=g>4?1:g,f=d.slice(g),g+=t[1].length),m&&this.rules.other.blankLine.test(p)&&(h+=p+`
|
|
650
|
+
`,e=e.substring(p.length+1),c=!0),!c){let y=this.rules.other.nextBulletRegex(g),k=this.rules.other.hrRegex(g),w=this.rules.other.fencesBeginRegex(g),_=this.rules.other.headingBeginRegex(g),A=this.rules.other.htmlBeginRegex(g),E=this.rules.other.blockquoteBeginRegex(g);for(;e;){let N=e.split(`
|
|
651
|
+
`,1)[0],F;if(p=N,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),F=p):F=p.replace(this.rules.other.tabCharGlobal," "),w.test(p)||_.test(p)||A.test(p)||E.test(p)||y.test(p)||k.test(p))break;if(F.search(this.rules.other.nonSpaceChar)>=g||!p.trim())f+=`
|
|
652
|
+
`+F.slice(g);else{if(m||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||w.test(d)||_.test(d)||k.test(d))break;f+=`
|
|
653
|
+
`+p}m=!p.trim(),h+=N+`
|
|
654
|
+
`,e=e.substring(N.length+1),d=F.slice(g)}}s.loose||(l?s.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(l=!0)),s.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(f),loose:!1,text:f,tokens:[]}),s.raw+=h}let u=s.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let c of s.items){if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),c.task){if(c.text=c.text.replace(this.rules.other.listReplaceTask,""),((r=c.tokens[0])==null?void 0:r.type)==="text"||((i=c.tokens[0])==null?void 0:i.type)==="paragraph"){c.tokens[0].raw=c.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),c.tokens[0].text=c.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let f=this.lexer.inlineQueue.length-1;f>=0;f--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[f].src)){this.lexer.inlineQueue[f].src=this.lexer.inlineQueue[f].src.replace(this.rules.other.listReplaceTask,"");break}}let h=this.rules.other.listTaskCheckbox.exec(c.raw);if(h){let f={type:"checkbox",raw:h[0]+" ",checked:h[0]!=="[ ]"};c.checked=f.checked,s.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=f.raw+c.tokens[0].raw,c.tokens[0].text=f.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(f)):c.tokens.unshift({type:"paragraph",raw:f.raw,text:f.raw,tokens:[f]}):c.tokens.unshift(f)}}if(!s.loose){let h=c.tokens.filter(d=>d.type==="space"),f=h.length>0&&h.some(d=>this.rules.other.anyLine.test(d.raw));s.loose=f}}if(s.loose)for(let c of s.items){c.loose=!0;for(let h of c.tokens)h.type==="text"&&(h.type="paragraph")}return s}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let r=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:i,title:n}}}table(e){var s;let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=Ey(t[1]),i=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),n=(s=t[3])!=null&&s.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
655
|
+
`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===i.length){for(let o of i)this.rules.other.tableAlignRight.test(o)?a.align.push("right"):this.rules.other.tableAlignCenter.test(o)?a.align.push("center"):this.rules.other.tableAlignLeft.test(o)?a.align.push("left"):a.align.push(null);for(let o=0;o<r.length;o++)a.header.push({text:r[o],tokens:this.lexer.inline(r[o]),header:!0,align:a.align[o]});for(let o of n)a.rows.push(Ey(o,a.header.length).map((l,u)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[u]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let r=t[1].trim();return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let r=t[1].charAt(t[1].length-1)===`
|
|
656
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let r=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;let a=Ao(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{let a=cJ(t[2],"()");if(a===-2)return;if(a>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let i=t[2],n="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(i);a&&(i=a[1],n=a[3])}else n=t[3]?t[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),_y(t,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),n=t[i.toLowerCase()];if(!n){let a=r[0].charAt(0);return{type:"text",raw:a,text:a}}return _y(r,n,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||!i[1]&&!i[2]&&!i[3]&&!i[4]||i[4]&&r.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[3])||!r||this.rules.inline.punctuation.exec(r))){let n=[...i[0]].length-1,a,s,o=n,l=0,u=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+n);(i=u.exec(t))!==null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(s=[...a].length,i[3]||i[4]){o+=s;continue}else if((i[5]||i[6])&&n%3&&!((n+s)%3)){l+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o+l);let c=[...i[0]][0].length,h=e.slice(0,n+i.index+c+s);if(Math.min(n,s)%2){let d=h.slice(1,-1);return{type:"em",raw:h,text:d,tokens:this.lexer.inlineTokens(d)}}let f=h.slice(2,-2);return{type:"strong",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(r),n=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&n&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:t[0],text:r}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,r=""){let i=this.rules.inline.delLDelim.exec(e);if(i&&(!i[1]||!r||this.rules.inline.punctuation.exec(r))){let n=[...i[0]].length-1,a,s,o=n,l=this.rules.inline.delRDelim;for(l.lastIndex=0,t=t.slice(-1*e.length+n);(i=l.exec(t))!==null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a||(s=[...a].length,s!==n))continue;if(i[3]||i[4]){o+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o);let u=[...i[0]][0].length,c=e.slice(0,n+i.index+u+s),h=c.slice(n,-n);return{type:"del",raw:c,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let r,i;return t[2]==="@"?(r=t[1],i="mailto:"+r):(r=t[1],i=r),{type:"link",raw:t[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let t;if(t=this.rules.inline.url.exec(e)){let i,n;if(t[2]==="@")i=t[0],n="mailto:"+i;else{let a;do a=t[0],t[0]=((r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])??"";while(a!==t[0]);i=t[0],t[1]==="www."?n="http://"+t[0]:n=t[0]}return{type:"link",raw:t[0],text:i,href:n,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let r=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:r}}}},di=class Uf{constructor(t){$t(this,"tokens");$t(this,"options");$t(this,"state");$t(this,"inlineQueue");$t(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ka,this.options.tokenizer=this.options.tokenizer||new zc,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:Or,block:Tu.normal,inline:_o.normal};this.options.pedantic?(r.block=Tu.pedantic,r.inline=_o.pedantic):this.options.gfm&&(r.block=Tu.gfm,this.options.breaks?r.inline=_o.breaks:r.inline=_o.gfm),this.tokenizer.rules=r}static get rules(){return{block:Tu,inline:_o}}static lex(t,r){return new Uf(r).lex(t)}static lexInline(t,r){return new Uf(r).inlineTokens(t)}lex(t){t=t.replace(Or.carriageReturn,`
|
|
657
|
+
`),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,a,s;for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Or.tabCharGlobal," ").replace(Or.spaceLine,""));t;){let o;if((a=(n=this.options.extensions)==null?void 0:n.block)!=null&&a.some(u=>(o=u.call({lexer:this},t,r))?(t=t.substring(o.raw.length),r.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);let u=r.at(-1);o.raw.length===1&&u!==void 0?u.raw+=`
|
|
658
|
+
`:r.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);let u=r.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
|
|
659
|
+
`)?"":`
|
|
660
|
+
`)+o.raw,u.text+=`
|
|
661
|
+
`+o.text,this.inlineQueue.at(-1).src=u.text):r.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);let u=r.at(-1);(u==null?void 0:u.type)==="paragraph"||(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
|
|
662
|
+
`)?"":`
|
|
663
|
+
`)+o.raw,u.text+=`
|
|
664
|
+
`+o.raw,this.inlineQueue.at(-1).src=u.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},r.push(o));continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),r.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),r.push(o);continue}let l=t;if((s=this.options.extensions)!=null&&s.startBlock){let u=1/0,c=t.slice(1),h;this.options.extensions.startBlock.forEach(f=>{h=f.call({lexer:this},c),typeof h=="number"&&h>=0&&(u=Math.min(u,h))}),u<1/0&&u>=0&&(l=t.substring(0,u+1))}if(this.state.top&&(o=this.tokenizer.paragraph(l))){let u=r.at(-1);i&&(u==null?void 0:u.type)==="paragraph"?(u.raw+=(u.raw.endsWith(`
|
|
665
|
+
`)?"":`
|
|
666
|
+
`)+o.raw,u.text+=`
|
|
667
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):r.push(o),i=l.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);let u=r.at(-1);(u==null?void 0:u.type)==="text"?(u.raw+=(u.raw.endsWith(`
|
|
668
|
+
`)?"":`
|
|
669
|
+
`)+o.raw,u.text+=`
|
|
670
|
+
`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):r.push(o);continue}if(t){let u="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var l,u,c,h,f;this.tokenizer.lexer=this;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 a;for(;(n=this.tokenizer.rules.inline.blockSkip.exec(i))!==null;)a=n[2]?n[2].length:0,i=i.slice(0,n.index+a)+"["+"a".repeat(n[0].length-a-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((u=(l=this.options.hooks)==null?void 0:l.emStrongMask)==null?void 0:u.call({lexer:this},i))??i;let s=!1,o="";for(;t;){s||(o=""),s=!1;let d;if((h=(c=this.options.extensions)==null?void 0:c.inline)!=null&&h.some(m=>(d=m.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 m=r.at(-1);d.type==="text"&&(m==null?void 0:m.type)==="text"?(m.raw+=d.raw,m.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(t,i,o)){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,i,o)){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 p=t;if((f=this.options.extensions)!=null&&f.startInline){let m=1/0,g=t.slice(1),y;this.options.extensions.startInline.forEach(k=>{y=k.call({lexer:this},g),typeof y=="number"&&y>=0&&(m=Math.min(m,y))}),m<1/0&&m>=0&&(p=t.substring(0,m+1))}if(d=this.tokenizer.inlineText(p)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(o=d.raw.slice(-1)),s=!0;let m=r.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=d.raw,m.text+=d.text):r.push(d);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return r}},Hc=class{constructor(t){$t(this,"options");$t(this,"parser");this.options=t||Ka}space(t){return""}code({text:t,lang:r,escaped:i}){var s;let n=(s=(r||"").match(Or.notSpaceStart))==null?void 0:s[0],a=t.replace(Or.endingNewline,"")+`
|
|
671
|
+
`;return n?'<pre><code class="language-'+Hi(n)+'">'+(i?a:Hi(a,!0))+`</code></pre>
|
|
672
|
+
`:"<pre><code>"+(i?a:Hi(a,!0))+`</code></pre>
|
|
673
|
+
`}blockquote({tokens:t}){return`<blockquote>
|
|
674
|
+
${this.parser.parse(t)}</blockquote>
|
|
675
|
+
`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
|
|
676
|
+
`}hr(t){return`<hr>
|
|
677
|
+
`}list(t){let r=t.ordered,i=t.start,n="";for(let o=0;o<t.items.length;o++){let l=t.items[o];n+=this.listitem(l)}let a=r?"ol":"ul",s=r&&i!==1?' start="'+i+'"':"";return"<"+a+s+`>
|
|
678
|
+
`+n+"</"+a+`>
|
|
679
|
+
`}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
|
|
680
|
+
`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
|
|
681
|
+
`}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let n="";for(let a=0;a<t.rows.length;a++){let s=t.rows[a];i="";for(let o=0;o<s.length;o++)i+=this.tablecell(s[o]);n+=this.tablerow({text:i})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
|
|
682
|
+
<thead>
|
|
683
|
+
`+r+`</thead>
|
|
684
|
+
`+n+`</table>
|
|
685
|
+
`}tablerow({text:t}){return`<tr>
|
|
686
|
+
${t}</tr>
|
|
687
|
+
`}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
|
|
688
|
+
`}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>${Hi(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),a=Sy(t);if(a===null)return n;t=a;let s='<a href="'+t+'"';return r&&(s+=' title="'+Hi(r)+'"'),s+=">"+n+"</a>",s}image({href:t,title:r,text:i,tokens:n}){n&&(i=this.parser.parseInline(n,this.parser.textRenderer));let a=Sy(t);if(a===null)return Hi(i);t=a;let s=`<img src="${t}" alt="${Hi(i)}"`;return r&&(s+=` title="${Hi(r)}"`),s+=">",s}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Hi(t.text)}},Zp=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},Ci=class Wf{constructor(t){$t(this,"options");$t(this,"renderer");$t(this,"textRenderer");this.options=t||Ka,this.options.renderer=this.options.renderer||new Hc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Zp}static parse(t,r){return new Wf(r).parse(t)}static parseInline(t,r){return new Wf(r).parseInline(t)}parse(t){var i,n;this.renderer.parser=this;let r="";for(let a=0;a<t.length;a++){let s=t[a];if((n=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&n[s.type]){let l=s,u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(l.type)){r+=u||"";continue}}let o=s;switch(o.type){case"space":{r+=this.renderer.space(o);break}case"hr":{r+=this.renderer.hr(o);break}case"heading":{r+=this.renderer.heading(o);break}case"code":{r+=this.renderer.code(o);break}case"table":{r+=this.renderer.table(o);break}case"blockquote":{r+=this.renderer.blockquote(o);break}case"list":{r+=this.renderer.list(o);break}case"checkbox":{r+=this.renderer.checkbox(o);break}case"html":{r+=this.renderer.html(o);break}case"def":{r+=this.renderer.def(o);break}case"paragraph":{r+=this.renderer.paragraph(o);break}case"text":{r+=this.renderer.text(o);break}default:{let l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return r}parseInline(t,r=this.renderer){var n,a;this.renderer.parser=this;let i="";for(let s=0;s<t.length;s++){let o=t[s];if((a=(n=this.options.extensions)==null?void 0:n.renderers)!=null&&a[o.type]){let u=this.options.extensions.renderers[o.type].call({parser:this},o);if(u!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(o.type)){i+=u||"";continue}}let l=o;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"checkbox":{i+=r.checkbox(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 u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return i}},Eu,Ho=(Eu=class{constructor(e){$t(this,"options");$t(this,"block");this.options=e||Ka}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?di.lex:di.lexInline}provideParser(e=this.block){return e?Ci.parse:Ci.parseInline}},$t(Eu,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),$t(Eu,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Eu),fJ=class{constructor(...t){$t(this,"defaults",Wp());$t(this,"options",this.setOptions);$t(this,"parse",this.parseMarkdown(!0));$t(this,"parseInline",this.parseMarkdown(!1));$t(this,"Parser",Ci);$t(this,"Renderer",Hc);$t(this,"TextRenderer",Zp);$t(this,"Lexer",di);$t(this,"Tokenizer",zc);$t(this,"Hooks",Ho);this.use(...t)}walkTokens(t,r){var n,a;let i=[];for(let s of t)switch(i=i.concat(r.call(this,s)),s.type){case"table":{let o=s;for(let l of o.header)i=i.concat(this.walkTokens(l.tokens,r));for(let l of o.rows)for(let u of l)i=i.concat(this.walkTokens(u.tokens,r));break}case"list":{let o=s;i=i.concat(this.walkTokens(o.items,r));break}default:{let o=s;(a=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&a[o.type]?this.defaults.extensions.childTokens[o.type].forEach(l=>{let u=o[l].flat(1/0);i=i.concat(this.walkTokens(u,r))}):o.tokens&&(i=i.concat(this.walkTokens(o.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(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let s=r.renderers[a.name];s?r.renderers[a.name]=function(...o){let l=a.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=r[a.level];s?s.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),n.extensions=r),i.renderer){let a=this.defaults.renderer||new Hc(this.defaults);for(let s in i.renderer){if(!(s in a))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,l=i.renderer[o],u=a[o];a[o]=(...c)=>{let h=l.apply(a,c);return h===!1&&(h=u.apply(a,c)),h||""}}n.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new zc(this.defaults);for(let s in i.tokenizer){if(!(s in a))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,l=i.tokenizer[o],u=a[o];a[o]=(...c)=>{let h=l.apply(a,c);return h===!1&&(h=u.apply(a,c)),h}}n.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new Ho;for(let s in i.hooks){if(!(s in a))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,l=i.hooks[o],u=a[o];Ho.passThroughHooks.has(s)?a[o]=c=>{if(this.defaults.async&&Ho.passThroughHooksRespectAsync.has(s))return(async()=>{let f=await l.call(a,c);return u.call(a,f)})();let h=l.call(a,c);return u.call(a,h)}:a[o]=(...c)=>{if(this.defaults.async)return(async()=>{let f=await l.apply(a,c);return f===!1&&(f=await u.apply(a,c)),f})();let h=l.apply(a,c);return h===!1&&(h=u.apply(a,c)),h}}n.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,s=i.walkTokens;n.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),a&&(l=l.concat(a.call(this,o))),l}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return di.lex(t,r??this.defaults)}parser(t,r){return Ci.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let n={...i},a={...this.defaults,...n},s=this.onError(!!a.silent,!!a.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(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let o=a.hooks?await a.hooks.preprocess(r):r,l=await(a.hooks?await a.hooks.provideLexer(t):t?di.lex:di.lexInline)(o,a),u=a.hooks?await a.hooks.processAllTokens(l):l;a.walkTokens&&await Promise.all(this.walkTokens(u,a.walkTokens));let c=await(a.hooks?await a.hooks.provideParser(t):t?Ci.parse:Ci.parseInline)(u,a);return a.hooks?await a.hooks.postprocess(c):c})().catch(s);try{a.hooks&&(r=a.hooks.preprocess(r));let o=(a.hooks?a.hooks.provideLexer(t):t?di.lex:di.lexInline)(r,a);a.hooks&&(o=a.hooks.processAllTokens(o)),a.walkTokens&&this.walkTokens(o,a.walkTokens);let l=(a.hooks?a.hooks.provideParser(t):t?Ci.parse:Ci.parseInline)(o,a);return a.hooks&&(l=a.hooks.postprocess(l)),l}catch(o){return s(o)}}}onError(t,r){return i=>{if(i.message+=`
|
|
689
|
+
Please report this to https://github.com/markedjs/marked.`,t){let n="<p>An error occurred:</p><pre>"+Hi(i.message+"",!0)+"</pre>";return r?Promise.resolve(n):n}if(r)return Promise.reject(i);throw i}}},qa=new fJ;function Te(e,t){return qa.parse(e,t)}Te.options=Te.setOptions=function(e){return qa.setOptions(e),Te.defaults=qa.defaults,iw(Te.defaults),Te};Te.getDefaults=Wp;Te.defaults=Ka;Te.use=function(...e){return qa.use(...e),Te.defaults=qa.defaults,iw(Te.defaults),Te};Te.walkTokens=function(e,t){return qa.walkTokens(e,t)};Te.parseInline=qa.parseInline;Te.Parser=Ci;Te.parser=Ci.parse;Te.Renderer=Hc;Te.TextRenderer=Zp;Te.Lexer=di;Te.lexer=di.lex;Te.Tokenizer=zc;Te.Hooks=Ho;Te.parse=Te;Te.options;Te.setOptions;Te.use;Te.walkTokens;Te.parseInline;Ci.parse;di.lex;var pJ=300,mJ="300px",gJ=500;function bJ(e={}){let{immediate:t=!1,debounceDelay:r=pJ,rootMargin:i=mJ,idleTimeout:n=gJ}=e,[a,s]=Z.useState(!1),o=Z.useRef(null),l=Z.useRef(null),u=Z.useRef(null),c=Z.useMemo(()=>d=>{let p=Date.now();return window.setTimeout(()=>{d({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-p))})},1)},[]),h=Z.useMemo(()=>typeof window<"u"&&window.requestIdleCallback?(d,p)=>window.requestIdleCallback(d,p):c,[c]),f=Z.useMemo(()=>typeof window<"u"&&window.cancelIdleCallback?d=>window.cancelIdleCallback(d):d=>{clearTimeout(d)},[]);return Z.useEffect(()=>{if(t){s(!0);return}let d=o.current;if(!d)return;l.current&&(clearTimeout(l.current),l.current=null),u.current&&(f(u.current),u.current=null);let p=()=>{l.current&&(clearTimeout(l.current),l.current=null),u.current&&(f(u.current),u.current=null)},m=w=>{u.current=h(_=>{_.timeRemaining()>0||_.didTimeout?(s(!0),w.disconnect()):u.current=h(()=>{s(!0),w.disconnect()},{timeout:n/2})},{timeout:n})},g=w=>{p(),l.current=window.setTimeout(()=>{var _,A;let E=w.takeRecords();(E.length===0||(A=(_=E.at(-1))==null?void 0:_.isIntersecting)!=null&&A)&&m(w)},r)},y=(w,_)=>{w.isIntersecting?g(_):p()},k=new IntersectionObserver(w=>{for(let _ of w)y(_,k)},{rootMargin:i,threshold:0});return k.observe(d),()=>{l.current&&clearTimeout(l.current),u.current&&f(u.current),k.disconnect()}},[t,r,i,n,f,h]),{shouldRender:a,containerRef:o}}var fw=/\s/,yJ=/^\s+$/,xJ=new Set(["code","pre","svg","math","annotation"]),CJ=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",kJ=e=>e.some(t=>CJ(t)&&xJ.has(t.tagName)),TJ=e=>{let t=[],r="",i=!1;for(let n of e){let a=fw.test(n);a!==i&&r&&(t.push(r),r=""),r+=n,i=a}return r&&t.push(r),t},wJ=e=>{let t=[],r="";for(let i of e)fw.test(i)?r+=i:(r&&(t.push(r),r=""),t.push(i));return r&&t.push(r),t},vJ=(e,t,r,i,n,a)=>{let s=`--sd-animation:sd-${t};--sd-duration:${n?0:r}ms;--sd-easing:${i}`;return a&&(s+=`;--sd-delay:${a}ms`),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:s},children:[{type:"text",value:e}]}},SJ=(e,t,r,i,n)=>{let a=t.at(-1);if(!(a&&"children"in a))return;if(kJ(t))return wa;let s=a,o=s.children.indexOf(e);if(o===-1)return;let l=e.value;if(!l.trim()){n.count+=l.length;return}let u=r.sep==="char"?wJ(l):TJ(l),c=i.prevContentLength,h=u.map(f=>{let d=n.count;if(n.count+=f.length,yJ.test(f))return{type:"text",value:f};let p=c>0&&d<c,m=p?0:n.newIndex++*r.stagger;return vJ(f,r.animation,r.duration,r.easing,p,m)});return s.children.splice(o,1,...h),o+h.length},EJ=0;function jf(e){var t,r,i,n,a;let s={animation:(t=e==null?void 0:e.animation)!=null?t:"fadeIn",duration:(r=e==null?void 0:e.duration)!=null?r:150,easing:(i=e==null?void 0:e.easing)!=null?i:"ease",sep:(n=e==null?void 0:e.sep)!=null?n:"word",stagger:(a=e==null?void 0:e.stagger)!=null?a:40},o={prevContentLength:0,lastRenderCharCount:0},l=EJ++,u=()=>c=>{let h={count:0,newIndex:0};Yc(c,"text",(f,d)=>SJ(f,d,s,o,h)),o.lastRenderCharCount=h.count,o.prevContentLength=0};return Object.defineProperty(u,"name",{value:`rehypeAnimate$${l}`}),{name:"animate",type:"animate",rehypePlugin:u,setPrevContentLength(c){o.prevContentLength=c},getLastRenderCharCount(){let c=o.lastRenderCharCount;return o.lastRenderCharCount=0,c}}}jf();var pw=Z.createContext(!1),_J=()=>Z.useContext(pw),Jp=(...e)=>Gy(Xy(e)),AJ=(e,t)=>{if(!e||!t)return t;let r=`${e}:`;return t.split(/\s+/).filter(Boolean).map(i=>i.startsWith(r)?i:`${e}:${i}`).join(" ")},BJ=e=>e?(...t)=>AJ(e,Gy(Xy(t))):Jp,ys=(e,t,r)=>{let i=typeof t=="string"&&r.startsWith("text/csv")?"\uFEFF":"",n=typeof t=="string"?new Blob([i+t],{type:r}):t,a=URL.createObjectURL(n),s=document.createElement("a");s.href=a,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(a)},Yf=Z.createContext(Jp),le=()=>Z.useContext(Yf),LJ=Jp("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),IJ=e=>{let t={};for(let r of e.split(";")){let i=r.indexOf(":");if(i>0){let n=r.slice(0,i).trim(),a=r.slice(i+1).trim();n&&a&&(t[n]=a)}}return t},MJ=Z.memo(({children:e,result:t,language:r,className:i,startLine:n,lineNumbers:a=!0,...s})=>{let o=le(),l=Z.useMemo(()=>o(LJ),[o]),u=Z.useMemo(()=>{let c={};return t.bg&&(c["--sdm-bg"]=t.bg),t.fg&&(c["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(c,IJ(t.rootStyle)),c},[t.bg,t.fg,t.rootStyle]);return W.jsx("div",{className:o(i,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":r,"data-streamdown":"code-block-body",...s,children:W.jsx("pre",{className:o(i,"bg-[var(--sdm-bg,inherit]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit)]"),style:u,children:W.jsx("code",{className:a?o("[counter-increment:line_0] [counter-reset:line]"):void 0,style:a&&n&&n>1?{counterReset:`line ${n-1}`}:void 0,children:t.tokens.map((c,h)=>W.jsx("span",{className:a?l:void 0,children:c.length===0||c.length===1&&c[0].content===""?`
|
|
690
|
+
`:c.map((f,d)=>{let p={},m=!!f.bgColor;if(f.color&&(p["--sdm-c"]=f.color),f.bgColor&&(p["--sdm-tbg"]=f.bgColor),f.htmlStyle)for(let[g,y]of Object.entries(f.htmlStyle))g==="color"?p["--sdm-c"]=y:g==="background-color"?(p["--sdm-tbg"]=y,m=!0):p[g]=y;return W.jsx("span",{className:o("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",m&&"bg-[var(--sdm-tbg)]",m&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:p,...f.htmlAttrs,children:f.content},d)})},h))})})})},(e,t)=>e.result===t.result&&e.language===t.language&&e.className===t.className&&e.startLine===t.startLine&&e.lineNumbers===t.lineNumbers),NJ=({className:e,language:t,style:r,isIncomplete:i,...n})=>{let a=le();return W.jsx("div",{className:a("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":i||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...r},...n})},mw=Z.createContext({code:""}),gw=()=>Z.useContext(mw),FJ=({language:e})=>{let t=le();return W.jsx("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:W.jsx("span",{className:t("ml-1 font-mono lowercase"),children:e})})},OJ=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
691
|
+
`;)t--;return e.slice(0,t)},DJ=Z.lazy(()=>ee(()=>import("./highlighted-body-OFNGDK62-vBlGjC8F.js"),__vite__mapDeps([62,5,6])).then(e=>({default:e.HighlightedCodeBlockBody}))),RJ=({code:e,language:t,className:r,children:i,isIncomplete:n=!1,startLine:a,lineNumbers:s,...o})=>{let l=le(),u=Z.useMemo(()=>OJ(e),[e]),c=Z.useMemo(()=>({bg:"transparent",fg:"inherit",tokens:u.split(`
|
|
692
|
+
`).map(h=>[{content:h,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[u]);return W.jsx(mw.Provider,{value:{code:e},children:W.jsxs(NJ,{isIncomplete:n,language:t,children:[W.jsx(FJ,{language:t}),i?W.jsx("div",{className:l("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:W.jsx("div",{className:l("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:i})}):null,W.jsx(Z.Suspense,{fallback:W.jsx(MJ,{className:r,language:t,lineNumbers:s,result:c,startLine:a,...o}),children:W.jsx(DJ,{className:r,code:u,language:t,lineNumbers:s,raw:c,startLine:a,...o})})]})})},PJ=e=>W.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:W.jsx("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),$J=e=>W.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:W.jsx("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),zJ=e=>W.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:W.jsx("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),HJ=e=>W.jsxs("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[W.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),W.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),W.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),W.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),W.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),W.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),W.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),W.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),W.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),W.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),qJ=e=>W.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:W.jsx("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),UJ=e=>W.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:W.jsx("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),WJ=e=>W.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:W.jsx("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),jJ=e=>W.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:W.jsx("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),YJ=e=>W.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:W.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),VJ=e=>W.jsx("svg",{color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:W.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),qo={CheckIcon:PJ,CopyIcon:$J,DownloadIcon:zJ,ExternalLinkIcon:jJ,Loader2Icon:HJ,Maximize2Icon:qJ,RotateCcwIcon:UJ,XIcon:WJ,ZoomInIcon:YJ,ZoomOutIcon:VJ},bw=Z.createContext(qo),GJ=(e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let r=Object.keys(e),i=Object.keys(t);return r.length!==i.length?!1:r.every(n=>e[n]===t[n])},Ay=({icons:e,children:t})=>{let r=Z.useRef(e),i=Z.useRef(e?{...qo,...e}:qo);GJ(r.current,e)||(r.current=e,i.current=e?{...qo,...e}:qo);let n=i.current;return W.jsx(bw.Provider,{value:n,children:t})},Ii=()=>Z.useContext(bw),yw={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},Vf=Z.createContext(yw),Bn=()=>Z.useContext(Vf),By=({onCopy:e,onError:t,timeout:r=2e3,children:i,className:n,code:a,...s})=>{let o=le(),[l,u]=Z.useState(!1),c=Z.useRef(0),{code:h}=gw(),{isAnimating:f}=Z.useContext(ei),d=Bn(),p=a??h,m=async()=>{var k;if(typeof window>"u"||!((k=navigator==null?void 0:navigator.clipboard)!=null&&k.writeText)){t==null||t(new Error("Clipboard API not available"));return}try{l||(await navigator.clipboard.writeText(p),u(!0),e==null||e(),c.current=window.setTimeout(()=>u(!1),r))}catch(w){t==null||t(w)}};Z.useEffect(()=>()=>{window.clearTimeout(c.current)},[]);let g=Ii(),y=l?g.CheckIcon:g.CopyIcon;return W.jsx("button",{className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),"data-streamdown":"code-block-copy-button",disabled:f,onClick:m,title:d.copyCode,type:"button",...s,children:i??W.jsx(y,{size:14})})},Ly={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},XJ=({onDownload:e,onError:t,language:r,children:i,className:n,code:a,...s})=>{let o=le(),{code:l}=gw(),{isAnimating:u}=Z.useContext(ei),c=Bn(),h=Ii(),f=a??l,d=`file.${r&&r in Ly?Ly[r]:"txt"}`,p="text/plain",m=()=>{try{ys(d,f,p),e==null||e()}catch(g){t==null||t(g)}};return W.jsx("button",{className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),"data-streamdown":"code-block-download-button",disabled:u,onClick:m,title:c.downloadFile,type:"button",...s,children:i??W.jsx(h.DownloadIcon,{size:14})})},Iy=()=>{let{Loader2Icon:e}=Ii(),t=le();return W.jsxs("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[W.jsx("div",{className:t("h-[46px] w-full bg-muted/80")}),W.jsx("div",{className:t("flex w-full items-center justify-center p-4"),children:W.jsx(e,{className:t("size-4 animate-spin")})})]})},KJ=/\.[^/.]+$/,QJ=({node:e,className:t,src:r,alt:i,onLoad:n,onError:a,...s})=>{let{DownloadIcon:o}=Ii(),l=le(),u=Z.useRef(null),[c,h]=Z.useState(!1),[f,d]=Z.useState(!1),p=Bn(),m=s.width!=null||s.height!=null,g=(c||m)&&!f,y=f&&!m;Z.useEffect(()=>{let A=u.current;if(A!=null&&A.complete){let E=A.naturalWidth>0;h(E),d(!E)}},[]);let k=Z.useCallback(A=>{h(!0),d(!1),n==null||n(A)},[n]),w=Z.useCallback(A=>{h(!1),d(!0),a==null||a(A)},[a]),_=async()=>{if(r)try{let A=await(await fetch(r)).blob(),E=new URL(r,window.location.origin).pathname.split("/").pop()||"",N=E.split(".").pop(),F=E.includes(".")&&N!==void 0&&N.length<=4,Y="";if(F)Y=E;else{let I=A.type,z="png";I.includes("jpeg")||I.includes("jpg")?z="jpg":I.includes("png")?z="png":I.includes("svg")?z="svg":I.includes("gif")?z="gif":I.includes("webp")&&(z="webp"),Y=`${(i||E||"image").replace(KJ,"")}.${z}`}ys(Y,A,A.type)}catch{window.open(r,"_blank")}};return r?W.jsxs("div",{className:l("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[W.jsx("img",{alt:i,className:l("max-w-full rounded-lg",y&&"hidden",t),"data-streamdown":"image",onError:w,onLoad:k,ref:u,src:r,...s}),y&&W.jsx("span",{className:l("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:p.imageNotAvailable}),W.jsx("div",{className:l("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block")}),g&&W.jsx("button",{className:l("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:_,title:p.downloadImage,type:"button",children:W.jsx(o,{size:14})})]}):null},nl=0,tm=()=>{nl+=1,nl===1&&(document.body.style.overflow="hidden")},em=()=>{nl=Math.max(0,nl-1),nl===0&&(document.body.style.overflow="")},ZJ=({url:e,isOpen:t,onClose:r,onConfirm:i})=>{let{CheckIcon:n,CopyIcon:a,ExternalLinkIcon:s,XIcon:o}=Ii(),l=le(),[u,c]=Z.useState(!1),h=Bn(),f=Z.useCallback(async()=>{try{await navigator.clipboard.writeText(e),c(!0),setTimeout(()=>c(!1),2e3)}catch{}},[e]),d=Z.useCallback(()=>{i(),r()},[i,r]);return Z.useEffect(()=>{if(t){tm();let p=m=>{m.key==="Escape"&&r()};return document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p),em()}}},[t,r]),t?W.jsx("div",{className:l("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:r,onKeyDown:p=>{p.key==="Escape"&&r()},role:"button",tabIndex:0,children:W.jsxs("div",{className:l("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:p=>p.stopPropagation(),onKeyDown:p=>p.stopPropagation(),role:"presentation",children:[W.jsx("button",{className:l("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:r,title:h.close,type:"button",children:W.jsx(o,{size:16})}),W.jsxs("div",{className:l("flex flex-col gap-2"),children:[W.jsxs("div",{className:l("flex items-center gap-2 font-semibold text-lg"),children:[W.jsx(s,{size:20}),W.jsx("span",{children:h.openExternalLink})]}),W.jsx("p",{className:l("text-muted-foreground text-sm"),children:h.externalLinkWarning})]}),W.jsx("div",{className:l("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),W.jsxs("div",{className:l("flex gap-2"),children:[W.jsx("button",{className:l("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:f,type:"button",children:u?W.jsxs(W.Fragment,{children:[W.jsx(n,{size:14}),W.jsx("span",{children:h.copied})]}):W.jsxs(W.Fragment,{children:[W.jsx(a,{size:14}),W.jsx("span",{children:h.copyLink})]})}),W.jsxs("button",{className:l("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:d,type:"button",children:[W.jsx(s,{size:14}),W.jsx("span",{children:h.openLink})]})]})]})}):null},Gf=Z.createContext(null),rm=()=>Z.useContext(Gf),Get=()=>{var e;let t=rm();return(e=t==null?void 0:t.code)!=null?e:null},im=()=>{var e;let t=rm();return(e=t==null?void 0:t.mermaid)!=null?e:null},JJ=e=>{var t;let r=rm();return r!=null&&r.renderers&&e&&(t=r.renderers.find(i=>Array.isArray(i.language)?i.language.includes(e):i.language===e))!=null?t:null},ttt=(e,t)=>{var r;let i=(r=void 0)!=null?r:5;return new Promise((n,a)=>{let s="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),o=new Image;o.crossOrigin="anonymous",o.onload=()=>{let l=document.createElement("canvas"),u=o.width*i,c=o.height*i;l.width=u,l.height=c;let h=l.getContext("2d");if(!h){a(new Error("Failed to create 2D canvas context for PNG export"));return}h.drawImage(o,0,0,u,c),l.toBlob(f=>{if(!f){a(new Error("Failed to create PNG blob"));return}n(f)},"image/png")},o.onerror=()=>a(new Error("Failed to load SVG image")),o.src=s})},ett=({chart:e,children:t,className:r,onDownload:i,config:n,onError:a})=>{let s=le(),[o,l]=Z.useState(!1),u=Z.useRef(null),{isAnimating:c}=Z.useContext(ei),h=Ii(),f=im(),d=Bn(),p=async m=>{try{if(m==="mmd"){ys("diagram.mmd",e,"text/plain"),l(!1),i==null||i(m);return}if(!f){a==null||a(new Error("Mermaid plugin not available"));return}let g=f.getMermaid(n),y=e.split("").reduce((_,A)=>(_<<5)-_+A.charCodeAt(0)|0,0),k=`mermaid-${Math.abs(y)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:w}=await g.render(k,e);if(!w){a==null||a(new Error("SVG not found. Please wait for the diagram to render."));return}if(m==="svg"){ys("diagram.svg",w,"image/svg+xml"),l(!1),i==null||i(m);return}if(m==="png"){let _=await ttt(w);ys("diagram.png",_,"image/png"),i==null||i(m),l(!1);return}}catch(g){a==null||a(g)}};return Z.useEffect(()=>{let m=g=>{let y=g.composedPath();u.current&&!y.includes(u.current)&&l(!1)};return document.addEventListener("mousedown",m),()=>{document.removeEventListener("mousedown",m)}},[]),W.jsxs("div",{className:s("relative"),ref:u,children:[W.jsx("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",r),disabled:c,onClick:()=>l(!o),title:d.downloadDiagram,type:"button",children:t??W.jsx(h.DownloadIcon,{size:14})}),o?W.jsxs("div",{className:s("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[W.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>p("svg"),title:d.downloadDiagramAsSvg,type:"button",children:d.mermaidFormatSvg}),W.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>p("png"),title:d.downloadDiagramAsPng,type:"button",children:d.mermaidFormatPng}),W.jsx("button",{className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>p("mmd"),title:d.downloadDiagramAsMmd,type:"button",children:d.mermaidFormatMmd})]}):null]})},rtt=({chart:e,config:t,onFullscreen:r,onExit:i,className:n,...a})=>{let{Maximize2Icon:s,XIcon:o}=Ii(),l=le(),[u,c]=Z.useState(!1),{isAnimating:h,controls:f}=Z.useContext(ei),d=Bn(),p=(()=>{if(typeof f=="boolean")return f;let g=f.mermaid;return g===!1?!1:g===!0||g===void 0?!0:g.panZoom!==!1})(),m=()=>{c(!u)};return Z.useEffect(()=>{if(u){tm();let g=y=>{y.key==="Escape"&&c(!1)};return document.addEventListener("keydown",g),()=>{document.removeEventListener("keydown",g),em()}}},[u]),Z.useEffect(()=>{u?r==null||r():i&&i()},[u,r,i]),W.jsxs(W.Fragment,{children:[W.jsx("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:h,onClick:m,title:d.viewFullscreen,type:"button",...a,children:W.jsx(s,{size:14})}),u?Ky.createPortal(W.jsxs("div",{className:l("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),onClick:m,onKeyDown:g=>{g.key==="Escape"&&m()},role:"button",tabIndex:0,children:[W.jsx("button",{className:l("absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:m,title:d.exitFullscreen,type:"button",children:W.jsx(o,{size:20})}),W.jsx("div",{className:l("flex size-full items-center justify-center p-4"),onClick:g=>g.stopPropagation(),onKeyDown:g=>g.stopPropagation(),role:"presentation",children:W.jsx(tv,{chart:e,className:l("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:p})})]}),document.body):null]})},xw=e=>{var t,r;let i=[],n=[],a=e.querySelectorAll("thead th");for(let o of a)i.push(((t=o.textContent)==null?void 0:t.trim())||"");let s=e.querySelectorAll("tbody tr");for(let o of s){let l=[],u=o.querySelectorAll("td");for(let c of u)l.push(((r=c.textContent)==null?void 0:r.trim())||"");n.push(l)}return{headers:i,rows:n}},Cw=e=>{let{headers:t,rows:r}=e,i=o=>{let l=!1,u=!1;for(let c of o){if(c==='"'){l=!0,u=!0;break}(c===","||c===`
|
|
693
|
+
`)&&(l=!0)}return l?u?`"${o.replace(/"/g,'""')}"`:`"${o}"`:o},n=t.length>0?r.length+1:r.length,a=new Array(n),s=0;t.length>0&&(a[s]=t.map(i).join(","),s+=1);for(let o of r)a[s]=o.map(i).join(","),s+=1;return a.join(`
|
|
694
|
+
`)},itt=e=>{let{headers:t,rows:r}=e,i=o=>{let l=!1;for(let c of o)if(c===" "||c===`
|
|
695
|
+
`||c==="\r"){l=!0;break}if(!l)return o;let u=[];for(let c of o)c===" "?u.push("\\t"):c===`
|
|
696
|
+
`?u.push("\\n"):c==="\r"?u.push("\\r"):u.push(c);return u.join("")},n=t.length>0?r.length+1:r.length,a=new Array(n),s=0;t.length>0&&(a[s]=t.map(i).join(" "),s+=1);for(let o of r)a[s]=o.map(i).join(" "),s+=1;return a.join(`
|
|
697
|
+
`)},J0=e=>{let t=!1;for(let i of e)if(i==="\\"||i==="|"){t=!0;break}if(!t)return e;let r=[];for(let i of e)i==="\\"?r.push("\\\\"):i==="|"?r.push("\\|"):r.push(i);return r.join("")},Xf=e=>{let{headers:t,rows:r}=e;if(t.length===0)return"";let i=new Array(r.length+2),n=0,a=t.map(o=>J0(o));i[n]=`| ${a.join(" | ")} |`,n+=1;let s=new Array(t.length);for(let o=0;o<t.length;o+=1)s[o]="---";i[n]=`| ${s.join(" | ")} |`,n+=1;for(let o of r)if(o.length<t.length){let l=new Array(t.length);for(let u=0;u<t.length;u+=1)l[u]=u<o.length?J0(o[u]):"";i[n]=`| ${l.join(" | ")} |`,n+=1}else{let l=o.map(u=>J0(u));i[n]=`| ${l.join(" | ")} |`,n+=1}return i.join(`
|
|
698
|
+
`)},kw=({children:e,className:t,onCopy:r,onError:i,timeout:n=2e3})=>{let a=le(),[s,o]=Z.useState(!1),[l,u]=Z.useState(!1),c=Z.useRef(null),h=Z.useRef(0),{isAnimating:f}=Z.useContext(ei),d=Bn(),p=async y=>{var k,w;if(typeof window>"u"||!((k=navigator==null?void 0:navigator.clipboard)!=null&&k.write)){i==null||i(new Error("Clipboard API not available"));return}try{let _=(w=c.current)==null?void 0:w.closest('[data-streamdown="table-wrapper"]'),A=_==null?void 0:_.querySelector("table");if(!A){i==null||i(new Error("Table not found"));return}let E=xw(A),N=({csv:Cw,tsv:itt,md:Xf}[y]||Xf)(E),F=new ClipboardItem({"text/plain":new Blob([N],{type:"text/plain"}),"text/html":new Blob([A.outerHTML],{type:"text/html"})});await navigator.clipboard.write([F]),u(!0),o(!1),r==null||r(y),h.current=window.setTimeout(()=>u(!1),n)}catch(_){i==null||i(_)}};Z.useEffect(()=>{let y=k=>{let w=k.composedPath();c.current&&!w.includes(c.current)&&o(!1)};return document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y),window.clearTimeout(h.current)}},[]);let m=Ii(),g=l?m.CheckIcon:m.CopyIcon;return W.jsxs("div",{className:a("relative"),ref:c,children:[W.jsx("button",{className:a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:f,onClick:()=>o(!s),title:d.copyTable,type:"button",children:e??W.jsx(g,{height:14,width:14})}),s?W.jsxs("div",{className:a("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[W.jsx("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>p("md"),title:d.copyTableAsMarkdown,type:"button",children:d.tableFormatMarkdown}),W.jsx("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>p("csv"),title:d.copyTableAsCsv,type:"button",children:d.tableFormatCsv}),W.jsx("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>p("tsv"),title:d.copyTableAsTsv,type:"button",children:d.tableFormatTsv})]}):null]})},Tw=({children:e,className:t,onDownload:r,onError:i})=>{let n=le(),[a,s]=Z.useState(!1),o=Z.useRef(null),{isAnimating:l}=Z.useContext(ei),u=Bn(),c=Ii(),h=f=>{var d;try{let p=(d=o.current)==null?void 0:d.closest('[data-streamdown="table-wrapper"]'),m=p==null?void 0:p.querySelector("table");if(!m){i==null||i(new Error("Table not found"));return}let g=xw(m),y=f==="csv"?Cw(g):Xf(g);ys(`table.${f==="csv"?"csv":"md"}`,y,f==="csv"?"text/csv":"text/markdown"),s(!1),r==null||r(f)}catch(p){i==null||i(p)}};return Z.useEffect(()=>{let f=d=>{let p=d.composedPath();o.current&&!p.includes(o.current)&&s(!1)};return document.addEventListener("mousedown",f),()=>{document.removeEventListener("mousedown",f)}},[]),W.jsxs("div",{className:n("relative"),ref:o,children:[W.jsx("button",{className:n("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:l,onClick:()=>s(!a),title:u.downloadTable,type:"button",children:e??W.jsx(c.DownloadIcon,{size:14})}),a?W.jsxs("div",{className:n("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[W.jsx("button",{className:n("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>h("csv"),title:u.downloadTableAsCsv,type:"button",children:u.tableFormatCsv}),W.jsx("button",{className:n("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>h("markdown"),title:u.downloadTableAsMarkdown,type:"button",children:u.tableFormatMarkdown})]}):null]})},ntt=({children:e,className:t,showCopy:r=!0,showDownload:i=!0})=>{let{Maximize2Icon:n,XIcon:a}=Ii(),s=le(),[o,l]=Z.useState(!1),{isAnimating:u}=Z.useContext(ei),c=Bn(),h=()=>{l(!0)},f=()=>{l(!1)};return Z.useEffect(()=>{if(o){tm();let d=p=>{p.key==="Escape"&&l(!1)};return document.addEventListener("keydown",d),()=>{document.removeEventListener("keydown",d),em()}}},[o]),W.jsxs(W.Fragment,{children:[W.jsx("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:h,title:c.viewFullscreen,type:"button",children:W.jsx(n,{size:14})}),o?Ky.createPortal(W.jsx("div",{"aria-label":c.viewFullscreen,"aria-modal":"true",className:s("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:f,onKeyDown:d=>{d.key==="Escape"&&f()},role:"dialog",children:W.jsxs("div",{className:s("flex h-full flex-col"),onClick:d=>d.stopPropagation(),onKeyDown:d=>d.stopPropagation(),role:"presentation",children:[W.jsxs("div",{className:s("flex items-center justify-end gap-1 p-4"),children:[r?W.jsx(kw,{}):null,i?W.jsx(Tw,{}):null,W.jsx("button",{className:s("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:f,title:c.exitFullscreen,type:"button",children:W.jsx(a,{size:20})})]}),W.jsx("div",{className:s("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:W.jsx("table",{className:s("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),document.body):null]})},att=({children:e,className:t,showControls:r,showCopy:i=!0,showDownload:n=!0,showFullscreen:a=!0,...s})=>{let o=le(),l=r&&i,u=r&&n,c=r&&a,h=l||u||c;return W.jsxs("div",{className:o("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[h?W.jsxs("div",{className:o("flex items-center justify-end gap-1"),children:[l?W.jsx(kw,{}):null,u?W.jsx(Tw,{}):null,c?W.jsx(ntt,{showCopy:l,showDownload:u,children:e}):null]}):null,W.jsx("div",{className:o("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),children:W.jsx("table",{className:o("w-full divide-y divide-border",t),"data-streamdown":"table",...s,children:e})})]})},stt=/startLine=(\d+)/,ott=/\bnoLineNumbers\b/,ltt=Z.lazy(()=>ee(()=>Promise.resolve().then(()=>set),void 0).then(e=>({default:e.Mermaid}))),utt=/language-([^\s]+)/;function Oh(e,t){if(!(e!=null&&e.position||t!=null&&t.position))return!0;if(!(e!=null&&e.position&&t!=null&&t.position))return!1;let r=e.position.start,i=t.position.start,n=e.position.end,a=t.position.end;return(r==null?void 0:r.line)===(i==null?void 0:i.line)&&(r==null?void 0:r.column)===(i==null?void 0:i.column)&&(n==null?void 0:n.line)===(a==null?void 0:a.line)&&(n==null?void 0:n.column)===(a==null?void 0:a.column)}function Re(e,t){return e.className===t.className&&Oh(e.node,t.node)}var Kf=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,td=(e,t)=>{if(typeof e=="boolean")return e;let r=e.table;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},My=(e,t)=>{if(typeof e=="boolean")return e;let r=e.code;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},wu=(e,t)=>{if(typeof e=="boolean")return e;let r=e.mermaid;return r===!1?!1:r===!0||r===void 0?!0:r[t]!==!1},nm=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("ol",{className:n("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...i,children:e})},(e,t)=>Re(e,t));nm.displayName="MarkdownOl";var ww=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("li",{className:n("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...i,children:e})},(e,t)=>e.className===t.className&&Oh(e.node,t.node));ww.displayName="MarkdownLi";var vw=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("ul",{className:n("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...i,children:e})},(e,t)=>Re(e,t));vw.displayName="MarkdownUl";var Sw=Z.memo(({className:e,node:t,...r})=>{let i=le();return W.jsx("hr",{className:i("my-6 border-border",e),"data-streamdown":"horizontal-rule",...r})},(e,t)=>Re(e,t));Sw.displayName="MarkdownHr";var Ew=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("span",{className:n("font-semibold",t),"data-streamdown":"strong",...i,children:e})},(e,t)=>Re(e,t));Ew.displayName="MarkdownStrong";var ctt=({children:e,className:t,href:r,node:i,...n})=>{let a=le(),{linkSafety:s}=Z.useContext(ei),[o,l]=Z.useState(!1),u=r==="streamdown:incomplete-link",c=Z.useCallback(async p=>{if(!(!(s!=null&&s.enabled&&r)||u)){if(p.preventDefault(),s.onLinkCheck&&await s.onLinkCheck(r)){window.open(r,"_blank","noreferrer");return}l(!0)}},[s,r,u]),h=Z.useCallback(()=>{r&&window.open(r,"_blank","noreferrer")},[r]),f=Z.useCallback(()=>{l(!1)},[]),d={url:r??"",isOpen:o,onClose:f,onConfirm:h};return s!=null&&s.enabled&&r?W.jsxs(W.Fragment,{children:[W.jsx("button",{className:a("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",onClick:c,type:"button",children:e}),s.renderModal?s.renderModal(d):W.jsx(ZJ,{...d})]}):W.jsx("a",{className:a("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",href:r,rel:"noreferrer",target:"_blank",...n,children:e})},_w=Z.memo(ctt,(e,t)=>Re(e,t)&&e.href===t.href);_w.displayName="MarkdownA";var Aw=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("h1",{className:n("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...i,children:e})},(e,t)=>Re(e,t));Aw.displayName="MarkdownH1";var Bw=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("h2",{className:n("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...i,children:e})},(e,t)=>Re(e,t));Bw.displayName="MarkdownH2";var Lw=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("h3",{className:n("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...i,children:e})},(e,t)=>Re(e,t));Lw.displayName="MarkdownH3";var Iw=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("h4",{className:n("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...i,children:e})},(e,t)=>Re(e,t));Iw.displayName="MarkdownH4";var Mw=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("h5",{className:n("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...i,children:e})},(e,t)=>Re(e,t));Mw.displayName="MarkdownH5";var Nw=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("h6",{className:n("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...i,children:e})},(e,t)=>Re(e,t));Nw.displayName="MarkdownH6";var Fw=Z.memo(({children:e,className:t,node:r,...i})=>{let{controls:n}=Z.useContext(ei),a=Kf(n,"table"),s=td(n,"copy"),o=td(n,"download"),l=td(n,"fullscreen");return W.jsx(att,{className:t,showControls:a,showCopy:s,showDownload:o,showFullscreen:l,...i,children:e})},(e,t)=>Re(e,t));Fw.displayName="MarkdownTable";var Ow=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("thead",{className:n("bg-muted/80",t),"data-streamdown":"table-header",...i,children:e})},(e,t)=>Re(e,t));Ow.displayName="MarkdownThead";var Dw=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("tbody",{className:n("divide-y divide-border",t),"data-streamdown":"table-body",...i,children:e})},(e,t)=>Re(e,t));Dw.displayName="MarkdownTbody";var Rw=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("tr",{className:n("border-border",t),"data-streamdown":"table-row",...i,children:e})},(e,t)=>Re(e,t));Rw.displayName="MarkdownTr";var Pw=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("th",{className:n("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...i,children:e})},(e,t)=>Re(e,t));Pw.displayName="MarkdownTh";var $w=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("td",{className:n("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...i,children:e})},(e,t)=>Re(e,t));$w.displayName="MarkdownTd";var zw=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("blockquote",{className:n("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...i,children:e})},(e,t)=>Re(e,t));zw.displayName="MarkdownBlockquote";var Hw=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("sup",{className:n("text-sm",t),"data-streamdown":"superscript",...i,children:e})},(e,t)=>Re(e,t));Hw.displayName="MarkdownSup";var qw=Z.memo(({children:e,className:t,node:r,...i})=>{let n=le();return W.jsx("sub",{className:n("text-sm",t),"data-streamdown":"subscript",...i,children:e})},(e,t)=>Re(e,t));qw.displayName="MarkdownSub";var Uw=Z.memo(({children:e,className:t,node:r,...i})=>{if("data-footnotes"in i){let n=s=>{var o,l;if(!Z.isValidElement(s))return!1;let u=Array.isArray(s.props.children)?s.props.children:[s.props.children],c=!1,h=!1;for(let f of u)if(f){if(typeof f=="string")f.trim()!==""&&(c=!0);else if(Z.isValidElement(f))if(((o=f.props)==null?void 0:o["data-footnote-backref"])!==void 0)h=!0;else{let d=Array.isArray(f.props.children)?f.props.children:[f.props.children];for(let p of d){if(typeof p=="string"&&p.trim()!==""){c=!0;break}if(Z.isValidElement(p)&&((l=p.props)==null?void 0:l["data-footnote-backref"])===void 0){c=!0;break}}}}return h&&!c},a=Array.isArray(e)?e.map(s=>{if(!Z.isValidElement(s))return s;if(s.type===nm){let o=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(l=>!n(l));return o.length===0?null:{...s,props:{...s.props,children:o}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?W.jsx("section",{className:t,...i,children:a}):null}return W.jsx("section",{className:t,...i,children:e})},(e,t)=>Re(e,t));Uw.displayName="MarkdownSection";var htt=({node:e,className:t,children:r,...i})=>{var n,a;let s=le(),o=!("data-block"in i),{mermaid:l,controls:u,lineNumbers:c}=Z.useContext(ei),h=im(),f=_J(),d=t==null?void 0:t.match(utt),p=(n=d==null?void 0:d.at(1))!=null?n:"",m=JJ(p);if(o)return W.jsx("code",{className:s("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...i,children:r});let g=(a=e==null?void 0:e.properties)==null?void 0:a.metastring,y=g==null?void 0:g.match(stt),k=y?Number.parseInt(y[1],10):void 0,w=k!==void 0&&k>=1?k:void 0,_=!(g&&ott.test(g))&&c!==!1,A="";if(Z.isValidElement(r)&&r.props&&typeof r.props=="object"&&"children"in r.props&&typeof r.props.children=="string"?A=r.props.children:typeof r=="string"&&(A=r),m){let Y=m.component;return W.jsx(Z.Suspense,{fallback:W.jsx(Iy,{}),children:W.jsx(Y,{code:A,isIncomplete:f,language:p,meta:g})})}if(p==="mermaid"&&h){let Y=Kf(u,"mermaid"),I=wu(u,"download"),z=wu(u,"copy"),K=wu(u,"fullscreen"),J=wu(u,"panZoom"),j=Y&&(I||z||K);return W.jsx(Z.Suspense,{fallback:W.jsx(Iy,{}),children:W.jsxs("div",{className:s("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[W.jsx("div",{className:s("flex h-8 items-center text-muted-foreground text-xs"),children:W.jsx("span",{className:s("ml-1 font-mono lowercase"),children:"mermaid"})}),j?W.jsx("div",{className:s("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:W.jsxs("div",{className:s("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[I?W.jsx(ett,{chart:A,config:l==null?void 0:l.config}):null,z?W.jsx(By,{code:A}):null,K?W.jsx(rtt,{chart:A,config:l==null?void 0:l.config}):null]})}):null,W.jsx("div",{className:s("rounded-md border border-border bg-background"),children:W.jsx(ltt,{chart:A,config:l==null?void 0:l.config,showControls:J})})]})})}let E=Kf(u,"code"),N=My(u,"download"),F=My(u,"copy");return W.jsx(RJ,{className:t,code:A,isIncomplete:f,language:p,lineNumbers:_,startLine:w,children:E?W.jsxs(W.Fragment,{children:[N?W.jsx(XJ,{code:A,language:p}):null,F?W.jsx(By,{}):null]}):null})},Ww=Z.memo(htt,(e,t)=>e.className===t.className&&Oh(e.node,t.node));Ww.displayName="MarkdownCode";var jw=Z.memo(QJ,(e,t)=>e.className===t.className&&Oh(e.node,t.node));jw.displayName="MarkdownImg";var Yw=Z.memo(({children:e,node:t,...r})=>{let i=(Array.isArray(e)?e:[e]).filter(n=>n!=null&&n!=="");if(i.length===1&&Z.isValidElement(i[0])){let n=i[0].props.node,a=n==null?void 0:n.tagName;if(a==="img")return W.jsx(W.Fragment,{children:e});if(a==="code"&&"data-block"in i[0].props)return W.jsx(W.Fragment,{children:e})}return W.jsx("p",{...r,children:e})},(e,t)=>Re(e,t));Yw.displayName="MarkdownParagraph";var dtt={ol:nm,li:ww,ul:vw,hr:Sw,strong:Ew,a:_w,h1:Aw,h2:Bw,h3:Lw,h4:Iw,h5:Mw,h6:Nw,table:Fw,thead:Ow,tbody:Dw,tr:Rw,th:Pw,td:$w,blockquote:zw,code:Ww,img:jw,pre:({children:e})=>Z.isValidElement(e)?Z.cloneElement(e,{"data-block":"true"}):e,sup:Hw,sub:qw,p:Yw,section:Uw},ftt=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,ptt=new RegExp("\\p{L}","u");function Ny(e){let t=e.replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,"");for(let r of t){if(ftt.test(r))return"rtl";if(ptt.test(r))return"ltr"}return"ltr"}var mtt=/^[ \t]{0,3}(`{3,}|~{3,})/,gtt=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,Fy=e=>{let t=e.split(`
|
|
699
|
+
`),r=null,i=0;for(let n of t){let a=mtt.exec(n);if(r===null){if(a){let s=a[1];r=s[0],i=s.length}}else if(a){let s=a[1],o=s[0],l=s.length;o===r&&l>=i&&(r=null,i=0)}}return r!==null},btt=e=>{let t=e.split(`
|
|
700
|
+
`);for(let r of t){let i=r.trim();if(i.length>0&&i.includes("|")&>t.test(i))return!0}return!1},ytt=()=>e=>{Ei(e,"html",(t,r,i)=>{!i||typeof r!="number"||(i.children[r]={type:"text",value:t.value})})},Oy=[],Dy={allowDangerousHtml:!0},vu=new WeakMap,xtt=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let r=e.rehypePlugins,i=e.remarkPlugins,n=e.remarkRehypeOptions;if(!(r||i||n)){let c="default";return this.keyCache.set(e,c),c}let a=c=>{if(!c||c.length===0)return"";let h="";for(let f=0;f<c.length;f+=1){let d=c[f];if(f>0&&(h+=","),Array.isArray(d)){let[p,m]=d;if(typeof p=="function"){let g=vu.get(p);g||(g=p.name,vu.set(p,g)),h+=g}else h+=String(p);h+=":",h+=JSON.stringify(m)}else if(typeof d=="function"){let p=vu.get(d);p||(p=d.name,vu.set(d,p)),h+=p}else h+=String(d)}return h},s=a(r),o=a(i),l=n?JSON.stringify(n):"",u=`${o}::${s}::${l}`;return this.keyCache.set(e,u),u}get(e){let t=this.generateCacheKey(e),r=this.cache.get(t);return r&&(this.cache.delete(t),this.cache.set(t,r)),r}set(e,t){let r=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let i=this.cache.keys().next().value;i&&this.cache.delete(i)}this.cache.set(r,t)}clear(){this.cache.clear()}},Ry=new xtt,Vw=e=>{let t=Ctt(e),r=e.children||"",i=t.runSync(t.parse(r),r);return _tt(i,e)},Ctt=e=>{let t=Ry.get(e);if(t)return t;let r=Ttt(e);return Ry.set(e,r),r},ktt=e=>e.some(t=>Array.isArray(t)?t[0]===Of:t===Of),Ttt=e=>{let t=e.rehypePlugins||Oy,r=e.remarkPlugins||Oy,i=ktt(t)?r:[...r,ytt],n=e.remarkRehypeOptions?{...Dy,...e.remarkRehypeOptions}:Dy;return wZ().use(TQ).use(i).use(nZ,n).use(t)},wtt=e=>e,vtt=(e,t,r,i)=>{r?e.children.splice(t,1):e.children[t]={type:"text",value:i}},Stt=(e,t)=>{var r;for(let i in W0)if(Object.hasOwn(W0,i)&&Object.hasOwn(e.properties,i)){let n=e.properties[i],a=W0[i];(a===null||a.includes(e.tagName))&&(e.properties[i]=(r=t(String(n||""),i,e))!=null?r:void 0)}},Ett=(e,t,r,i,n,a)=>{let s=!1;return i?s=!i.includes(e.tagName):n&&(s=n.includes(e.tagName)),!s&&a&&typeof t=="number"&&(s=!a(e,t,r)),s},_tt=(e,t)=>{let{allowElement:r,allowedElements:i,disallowedElements:n,skipHtml:a,unwrapDisallowed:s,urlTransform:o}=t;if(r||i||n||a||o){let l=o||wtt;Ei(e,(u,c,h)=>{if(u.type==="raw"&&h&&typeof c=="number")return vtt(h,c,a,u.value),c;if(u.type==="element"&&(Stt(u,l),Ett(u,c,h,i,n,r)&&h&&typeof c=="number"))return s&&u.children?h.children.splice(c,1,...u.children):h.children.splice(c,1),c})}return LK(e,{Fragment:W.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:W.jsx,jsxs:W.jsxs,passKeys:!0,passNode:!0})},Att=/\[\^[\w-]{1,200}\](?!:)/,Btt=/\[\^[\w-]{1,200}\]:/,Ltt=/<(\w+)[\s>]/,Itt=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),Py=new Map,$y=new Map,Mtt=e=>{let t=e.toLowerCase(),r=Py.get(t);if(r)return r;let i=new RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return Py.set(t,i),i},Ntt=e=>{let t=e.toLowerCase(),r=$y.get(t);if(r)return r;let i=new RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return $y.set(t,i),i},zy=(e,t)=>{if(Itt.has(t.toLowerCase()))return 0;let r=e.match(Mtt(t));if(!r)return 0;let i=0;for(let n of r)n.trimEnd().endsWith("/>")||(i+=1);return i},Hy=(e,t)=>{let r=e.match(Ntt(t));return r?r.length:0},Ftt=e=>{let t=0;for(let r=0;r<e.length-1;r+=1)e[r]==="$"&&e[r+1]==="$"&&(t+=1,r+=1);return t},Ott=e=>{let t=Att.test(e),r=Btt.test(e);if(t||r)return[e];let i=di.lex(e,{gfm:!0}),n=[],a=[],s=!1;for(let o of i){let l=o.raw,u=n.length;if(a.length>0){n[u-1]+=l;let c=a.at(-1),h=zy(l,c),f=Hy(l,c);for(let d=0;d<h;d+=1)a.push(c);for(let d=0;d<f;d+=1)a.length>0&&a.at(-1)===c&&a.pop();continue}if(o.type==="html"&&o.block){let c=l.match(Ltt);if(c){let h=c[1],f=zy(l,h),d=Hy(l,h);f>d&&a.push(h)}}if(u>0&&!s){let c=n[u-1];if(Ftt(c)%2===1){n[u-1]=c+l;continue}}n.push(l),o.type!=="space"&&(s=o.type==="code")}return n},Dtt=(e,t)=>{if(!t.length)return e;let r=e;for(let i of t){let n=new RegExp(`(<${i}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${i}\\s*>)`,"gi");r=r.replace(n,(a,s,o,l)=>{if(!o.includes(`
|
|
701
|
+
|
|
702
|
+
`))return s+o+l;let u=o.replace(/\n\n/g,`
|
|
703
|
+
<!---->
|
|
704
|
+
`),c=(u.startsWith(`
|
|
705
|
+
`)?"":`
|
|
706
|
+
`)+u+(u.endsWith(`
|
|
707
|
+
`)?"":`
|
|
708
|
+
`);return`${s}${c}${l}
|
|
709
|
+
|
|
710
|
+
`})}return r},Rtt=/([\\`*_~[\]|])/g,Ptt=e=>e.replace(Rtt,"\\$1"),$tt=(e,t)=>{if(!t.length)return e;let r=e;for(let i of t){let n=new RegExp(`(<${i}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${i}\\s*>)`,"gi");r=r.replace(n,(a,s,o,l)=>{let u=Ptt(o).replace(/\n\n/g," ");return s+u+l})}return r},Gw=e=>e.type==="text"?e.value:"children"in e&&Array.isArray(e.children)?e.children.map(Gw).join(""):"",ztt=e=>t=>{if(!e||e.length===0)return;let r=new Set(e.map(i=>i.toLowerCase()));Ei(t,"element",i=>{if(r.has(i.tagName.toLowerCase())){let n=Gw(i);i.children=n?[{type:"text",value:n}]:[]}})},Htt=()=>e=>{Ei(e,"code",t=>{var r,i;t.meta&&(t.data=(r=t.data)!=null?r:{},t.data.hProperties={...(i=t.data.hProperties)!=null?i:{},metastring:t.meta})})},qtt=/^[ \t]*<[\w!/?-]/,Utt=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,Wtt=e=>typeof e!="string"||e.length===0||!qtt.test(e)?e:e.replace(Utt,"$1"),qy,Uy,Wy,jy,Yu={...ka,protocols:{...ka.protocols,href:[...(Uy=(qy=ka.protocols)==null?void 0:qy.href)!=null?Uy:[],"tel"]},attributes:{...ka.attributes,code:[...(jy=(Wy=ka.attributes)==null?void 0:Wy.code)!=null?jy:[],"metastring"]}},qc={raw:Of,sanitize:[n7,Yu],harden:[uq,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},Xw={gfm:[iX,{}],codeMeta:Htt},Yy=Object.values(qc),jtt=Object.values(Xw),Ytt={block:" ▋",circle:" ●"},Kw=["github-light","github-dark"],Qw={enabled:!0},Vtt={shikiTheme:Kw,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:Qw},ei=Z.createContext(Vtt),Zw=Z.memo(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:r,index:i,isIncomplete:n,dir:a,animatePlugin:s,...o})=>{if(s){let c=s.getLastRenderCharCount();s.setPrevContentLength(c)}let l=typeof e=="string"&&r?Wtt(e):e,u=W.jsx(Vw,{...o,children:l});return W.jsx(pw.Provider,{value:n,children:a?W.jsx("div",{dir:a,style:{display:"contents"},children:u}):u})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let r=Object.keys(e.components||{}),i=Object.keys(t.components||{});if(r.length!==i.length||r.some(n=>{var a,s;return((a=e.components)==null?void 0:a[n])!==((s=t.components)==null?void 0:s[n])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)});Zw.displayName="Block";var Jw=Z.memo(({children:e,mode:t="streaming",dir:r,parseIncompleteMarkdown:i=!0,normalizeHtmlIndentation:n=!1,components:a,rehypePlugins:s=Yy,remarkPlugins:o=jtt,className:l,shikiTheme:u=Kw,mermaid:c,controls:h=!0,isAnimating:f=!1,animated:d,BlockComponent:p=Zw,parseMarkdownIntoBlocksFn:m=Ott,caret:g,plugins:y,remend:k,linkSafety:w=Qw,lineNumbers:_=!0,allowedTags:A,literalTagContent:E,translations:N,icons:F,prefix:Y,onAnimationStart:I,onAnimationEnd:z,...K})=>{let J=Z.useId(),[j,P]=Z.useTransition(),$=Z.useMemo(()=>BJ(Y),[Y]),V=Z.useRef(null),X=Z.useRef(I),it=Z.useRef(z);X.current=I,it.current=z,Z.useEffect(()=>{var Ht,ge,Le;if(t==="static")return;let Sr=V.current;if(V.current=f,Sr===null){f&&((Ht=X.current)==null||Ht.call(X));return}f&&!Sr?(ge=X.current)==null||ge.call(X):!f&&Sr&&((Le=it.current)==null||Le.call(it))},[f,t]);let L=Z.useMemo(()=>A?Object.keys(A):[],[A]),lt=Z.useMemo(()=>{if(typeof e!="string")return"";let Ht=t==="streaming"&&i?pK(e,k):e;return E&&E.length>0&&(Ht=$tt(Ht,E)),L.length>0&&(Ht=Dtt(Ht,L)),Ht},[e,t,i,k,L,E]),Ct=Z.useMemo(()=>m(lt),[lt,m]),[O,St]=Z.useState(Ct);Z.useEffect(()=>{t==="streaming"&&!Vt?P(()=>{St(Ct)}):St(Ct)},[Ct,t]);let _t=t==="streaming"?O:Ct,Ft=Z.useMemo(()=>r==="auto"?_t.map(Ny):void 0,[_t,r]),zt=Z.useMemo(()=>_t.map((Ht,ge)=>`${J}-${ge}`),[_t.length,J]),Zt=Z.useMemo(()=>d===!0?"true":d?JSON.stringify(d):"",[d]),Vt=Z.useMemo(()=>Zt?Zt==="true"?jf():jf(d):null,[Zt]),yt=Z.useMemo(()=>{var Ht,ge;return{shikiTheme:(ge=(Ht=y==null?void 0:y.code)==null?void 0:Ht.getThemes())!=null?ge:u,controls:h,isAnimating:f,lineNumbers:_,mode:t,mermaid:c,linkSafety:w}},[u,h,f,_,t,c,w,y==null?void 0:y.code]),bt=Z.useMemo(()=>N?JSON.stringify(N):"",[N]),jt=Z.useMemo(()=>({...yw,...N}),[bt]),It=Z.useMemo(()=>{let{inlineCode:Ht,...ge}=a??{},Le={...dtt,...ge};if(Ht){let Sr=Le.code;Le.code=ni=>"data-block"in ni?Sr?Z.createElement(Sr,ni):null:Z.createElement(Ht,ni)}return Le},[a]),et=Z.useMemo(()=>{let Ht=[];return y!=null&&y.cjk&&(Ht=[...Ht,...y.cjk.remarkPluginsBefore]),Ht=[...Ht,...o],y!=null&&y.cjk&&(Ht=[...Ht,...y.cjk.remarkPluginsAfter]),y!=null&&y.math&&(Ht=[...Ht,y.math.remarkPlugin]),Ht},[o,y==null?void 0:y.math,y==null?void 0:y.cjk]),vt=Z.useMemo(()=>{var Ht;let ge=s;if(A&&Object.keys(A).length>0&&s===Yy){let Le={...Yu,tagNames:[...(Ht=Yu.tagNames)!=null?Ht:[],...Object.keys(A)],attributes:{...Yu.attributes,...A}};ge=[qc.raw,[n7,Le],qc.harden]}return E&&E.length>0&&(ge=[...ge,[ztt,E]]),y!=null&&y.math&&(ge=[...ge,y.math.rehypePlugin]),Vt&&f&&(ge=[...ge,Vt.rehypePlugin]),ge},[s,y==null?void 0:y.math,Vt,f,A,E]),nr=Z.useMemo(()=>{if(!f||_t.length===0)return!1;let Ht=_t.at(-1);return Fy(Ht)||btt(Ht)},[f,_t]),Mi=Z.useMemo(()=>g&&f&&!nr?{"--streamdown-caret":`"${Ytt[g]}"`}:void 0,[g,f,nr]);return t==="static"?W.jsx(Vf.Provider,{value:jt,children:W.jsx(Gf.Provider,{value:y??null,children:W.jsx(ei.Provider,{value:yt,children:W.jsx(Ay,{icons:F,children:W.jsx(Yf.Provider,{value:$,children:W.jsx("div",{className:$("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",l),dir:r==="auto"?Ny(lt):r,children:W.jsx(Vw,{components:It,rehypePlugins:vt,remarkPlugins:et,...K,children:lt})})})})})})}):W.jsx(Vf.Provider,{value:jt,children:W.jsx(Gf.Provider,{value:y??null,children:W.jsx(ei.Provider,{value:yt,children:W.jsx(Ay,{icons:F,children:W.jsx(Yf.Provider,{value:$,children:W.jsxs("div",{className:$("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",g&&!nr?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,l),style:Mi,children:[_t.length===0&&g&&f&&W.jsx("span",{}),_t.map((Ht,ge)=>{var Le;let Sr=ge===_t.length-1,ni=f&&Sr&&Fy(Ht);return W.jsx(p,{animatePlugin:Vt,components:It,content:Ht,dir:(Le=Ft==null?void 0:Ft[ge])!=null?Le:r!=="auto"?r:void 0,index:ge,isIncomplete:ni,rehypePlugins:vt,remarkPlugins:et,shouldNormalizeHtmlIndentation:n,shouldParseIncompleteMarkdown:i,...K},zt[ge])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);Jw.displayName="Streamdown";var Gtt=({children:e,className:t,minZoom:r=.5,maxZoom:i=3,zoomStep:n=.1,showControls:a=!0,initialZoom:s=1,fullscreen:o=!1})=>{let{RotateCcwIcon:l,ZoomInIcon:u,ZoomOutIcon:c}=Ii(),h=le(),f=Z.useRef(null),d=Z.useRef(null),[p,m]=Z.useState(s),[g,y]=Z.useState({x:0,y:0}),[k,w]=Z.useState(!1),[_,A]=Z.useState({x:0,y:0}),[E,N]=Z.useState({x:0,y:0}),F=Z.useCallback($=>{m(V=>Math.max(r,Math.min(i,V+$)))},[r,i]),Y=Z.useCallback(()=>{F(n)},[F,n]),I=Z.useCallback(()=>{F(-n)},[F,n]),z=Z.useCallback(()=>{m(s),y({x:0,y:0})},[s]),K=Z.useCallback($=>{$.preventDefault();let V=$.deltaY>0?-n:n;F(V)},[F,n]),J=Z.useCallback($=>{if($.button!==0||$.isPrimary===!1)return;w(!0),A({x:$.clientX,y:$.clientY}),N(g);let V=$.currentTarget;V instanceof HTMLElement&&V.setPointerCapture($.pointerId)},[g]),j=Z.useCallback($=>{if(!k)return;$.preventDefault();let V=$.clientX-_.x,X=$.clientY-_.y;y({x:E.x+V,y:E.y+X})},[k,_,E]),P=Z.useCallback($=>{w(!1);let V=$.currentTarget;V instanceof HTMLElement&&V.releasePointerCapture($.pointerId)},[]);return Z.useEffect(()=>{let $=f.current;if($)return $.addEventListener("wheel",K,{passive:!1}),()=>{$.removeEventListener("wheel",K)}},[K]),Z.useEffect(()=>{let $=d.current;if($&&k)return document.body.style.userSelect="none",$.addEventListener("pointermove",j,{passive:!1}),$.addEventListener("pointerup",P),$.addEventListener("pointercancel",P),()=>{document.body.style.userSelect="",$.removeEventListener("pointermove",j),$.removeEventListener("pointerup",P),$.removeEventListener("pointercancel",P)}},[k,j,P]),W.jsxs("div",{className:h("relative flex flex-col",o?"h-full w-full":"min-h-28 w-full",t),ref:f,style:{cursor:k?"grabbing":"grab"},children:[a?W.jsxs("div",{className:h("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",o?"bottom-4 left-4":"bottom-2 left-2"),children:[W.jsx("button",{className:h("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:p>=i,onClick:Y,title:"Zoom in",type:"button",children:W.jsx(u,{size:16})}),W.jsx("button",{className:h("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:p<=r,onClick:I,title:"Zoom out",type:"button",children:W.jsx(c,{size:16})}),W.jsx("button",{className:h("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:z,title:"Reset zoom and pan",type:"button",children:W.jsx(l,{size:16})})]}):null,W.jsx("div",{className:h("flex-1 origin-center transition-transform duration-150 ease-out",o?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:J,ref:d,role:"application",style:{transform:`translate(${g.x}px, ${g.y}px) scale(${p})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},tv=({chart:e,className:t,config:r,fullscreen:i=!1,showControls:n=!0})=>{let a=le(),[s,o]=Z.useState(null),[l,u]=Z.useState(!1),[c,h]=Z.useState(""),[f,d]=Z.useState(""),[p,m]=Z.useState(0),{mermaid:g}=Z.useContext(ei),y=im(),k=g==null?void 0:g.errorComponent,{shouldRender:w,containerRef:_}=bJ({immediate:i});if(Z.useEffect(()=>{if(w){if(!y){o("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{o(null),u(!0);let E=y.getMermaid(r),N=e.split("").reduce((I,z)=>(I<<5)-I+z.charCodeAt(0)|0,0),F=`mermaid-${Math.abs(N)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:Y}=await E.render(F,e);h(Y),d(Y)}catch(E){if(!(f||c)){let N=E instanceof Error?E.message:"Failed to render Mermaid chart";o(N)}}finally{u(!1)}})()}},[e,r,p,w,y]),!(w||c||f))return W.jsx("div",{className:a("my-4 min-h-[200px]",t),ref:_});if(l&&!c&&!f)return W.jsx("div",{className:a("my-4 flex justify-center p-4",t),ref:_,children:W.jsxs("div",{className:a("flex items-center space-x-2 text-muted-foreground"),children:[W.jsx("div",{className:a("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),W.jsx("span",{className:a("text-sm"),children:"Loading diagram..."})]})});if(s&&!c&&!f){let E=()=>m(N=>N+1);return k?W.jsx("div",{ref:_,children:W.jsx(k,{chart:e,error:s,retry:E})}):W.jsxs("div",{className:a("rounded-md bg-red-50 p-4",t),ref:_,children:[W.jsxs("p",{className:a("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",s]}),W.jsxs("details",{className:a("mt-2"),children:[W.jsx("summary",{className:a("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),W.jsx("pre",{className:a("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]})}let A=c||f;return W.jsx("div",{className:a("size-full",t),"data-streamdown":"mermaid",ref:_,children:W.jsx(Gtt,{className:a(i?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:i,maxZoom:3,minZoom:.5,showControls:n,zoomStep:.1,children:W.jsx("div",{"aria-label":"Mermaid chart",className:a("flex justify-center",i?"size-full items-center":null),dangerouslySetInnerHTML:{__html:A},role:"img"})})})};const Xtt=["github-light","github-dark"];let ci=null,Vy=null;function Ktt(){return Vy??(Vy=ee(async()=>{const{code:e}=await import("./index-B3g4Kfko.js");return{code:e}},__vite__mapDeps([63,5,6])).then(({code:e})=>(ci=e,e))),Vy}const Qtt={name:"shiki",type:"code-highlighter",getThemes:()=>(ci==null?void 0:ci.getThemes())??Xtt,getSupportedLanguages:()=>(ci==null?void 0:ci.getSupportedLanguages())??[],supportsLanguage:e=>(ci==null?void 0:ci.supportsLanguage(e))??!0,highlight:(e,t)=>ci?ci.highlight(e,t):(Ktt().then(r=>{let i=!1;const n=s=>{i||(i=!0,t==null||t(s))},a=r.highlight(e,n);a&&n(a)}),null)},Ztt={cjk:cS,code:Qtt,math:z3({singleDollarTextMath:!0}),mermaid:eq},Jtt=[...Object.values(Xw),lq];function ev(e,t){e.type==="element"&&t(e);for(const r of e.children??[])ev(r,t)}function tet(){return e=>{ev(e,t=>{var i;if(t.tagName!=="img")return;const r=(i=t.properties)==null?void 0:i.src;typeof r!="string"||!kv(r,!0)||(t.properties={...t.properties,src:Qy,[Tv]:r})})}}function eet(e){if(!Array.isArray(e)||e.length<2)return!1;const t=e[1];return typeof t=="object"&&t!==null&&"allowedImagePrefixes"in t&&Array.isArray(t.allowedImagePrefixes)}function ret(){const e=[];for(const[t,r]of Object.entries(qc)){if(t!=="harden"){e.push(r);continue}if(e.push(tet),!eet(r))throw new Error("Streamdown harden plugin must expose image-prefix options");e.push([r[0],{...r[1],defaultOrigin:typeof window>"u"?"http://localhost":window.location.origin,allowedImagePrefixes:[Qy],allowDataImages:!1}])}return e}const iet=ret();function net({children:e}){const r=(Z.isValidElement(e)&&typeof e.props.className=="string"?e.props.className:"").split(/\s+/).includes("language-mermaid"),[i,n]=Z.useState(!0),a=Z.isValidElement(e)?Z.cloneElement(e,{"data-block":"true"}):e;return r?a:W.jsxs("div",{className:Cm("relative",i&&"chat-code-wrap"),children:[a,W.jsx("button",{type:"button","aria-label":"Toggle word wrap","aria-pressed":i,title:i?"Disable word wrap":"Enable word wrap",className:Cm("absolute right-20 top-3 z-20 grid size-7 place-items-center rounded-md text-[var(--muted-foreground)] transition-colors hover:bg-[var(--muted)] hover:text-[var(--foreground)]",i&&"text-[var(--foreground)]"),onClick:()=>n(s=>!s),children:W.jsx(vv,{className:"size-3.5"})})]})}function aet({breaks:e=!1,components:t,...r}){const i=Z.useMemo(()=>({...t,pre:net}),[t]);return W.jsx(Jw,{...r,components:i,plugins:Ztt,remarkPlugins:e?Jtt:void 0,rehypePlugins:iet})}const Xet=Object.freeze(Object.defineProperty({__proto__:null,MarkdownStreamdown:aet},Symbol.toStringTag,{value:"Module"})),set=Object.freeze(Object.defineProperty({__proto__:null,Mermaid:tv},Symbol.toStringTag,{value:"Module"}));export{OB as $,MJ as A,rp as B,X3 as C,vO as D,EN as E,GA as F,det as G,NF as H,ul as I,MF as J,het as K,Get as L,gh as M,_B as N,lx as O,Rs as P,jg as Q,ei as R,bN as S,Vd as T,wO as U,Il as V,Ai as W,nt as X,at as Y,mO as Z,C as _,HB as a,Y6 as a$,cx as a0,fN as a1,F1 as a2,bet as a3,Cet as a4,rs as a5,h2 as a6,c2 as a7,Tet as a8,ket as a9,ur as aA,br as aB,PD as aC,X1 as aD,V1 as aE,Ru as aF,JF as aG,ZF as aH,QF as aI,KF as aJ,qF as aK,U6 as aL,jF as aM,HF as aN,GF as aO,W6 as aP,WF as aQ,rO as aR,eO as aS,tO as aT,nO as aU,iO as aV,UF as aW,j6 as aX,XF as aY,VF as aZ,YF as a_,xet as aa,met as ab,get as ac,yet as ad,vet as ae,wet as af,cR as ag,nT as ah,qet as ai,Qt as aj,Qi as ak,Rl as al,JO as am,tp as an,Mt as ao,pP as ap,Het as aq,Uet as ar,$et as as,Ot as at,zet as au,ip as av,UR as aw,RR as ax,DR as ay,Mc as az,zB as b,IR as b0,Dr as b1,on as b2,xo as b3,J6 as b4,Pa as b5,iC as b6,U3 as b7,pN as b8,cet as b9,LR as bA,Xet as bB,ZO as ba,fet as bb,L1 as bc,zn as bd,dl as be,n2 as bf,VI as bg,Nt as bh,H6 as bi,Yr as bj,zI as bk,B1 as bl,vx as bm,Fl as bn,_x as bo,pet as bp,rA as bq,xK as br,sa as bs,Vc as bt,S4 as bu,E4 as bv,Ob as bw,C8 as bx,Al as by,Dq as bz,me as c,ie as d,ux as e,Xe as f,UB as g,wn as h,_i as i,$F as j,Ml as k,ut as l,eC as m,WB as n,jB as o,$B as p,Eet as q,Vn as r,qB as s,Z_ as t,jet as u,Wet as v,_O as w,Ti as x,Ne as y,VB as z};
|