mycode-cli 0.1.0__py3-none-any.whl
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.
- mycode/__init__.py +1 -0
- mycode/cli/__init__.py +1 -0
- mycode/cli/chat.py +650 -0
- mycode/cli/main.py +245 -0
- mycode/cli/render.py +693 -0
- mycode/cli/runtime.py +271 -0
- mycode/cli/theme.py +109 -0
- mycode/core/__init__.py +30 -0
- mycode/core/agent.py +515 -0
- mycode/core/config.py +551 -0
- mycode/core/messages.py +166 -0
- mycode/core/models.py +144 -0
- mycode/core/models_catalog.json +2090 -0
- mycode/core/providers/__init__.py +86 -0
- mycode/core/providers/anthropic_like.py +366 -0
- mycode/core/providers/base.py +351 -0
- mycode/core/providers/gemini.py +321 -0
- mycode/core/providers/openai_chat.py +356 -0
- mycode/core/providers/openai_responses.py +326 -0
- mycode/core/session.py +537 -0
- mycode/core/system_prompt.md +10 -0
- mycode/core/system_prompt.py +319 -0
- mycode/core/tools.py +898 -0
- mycode/server/__init__.py +1 -0
- mycode/server/app.py +52 -0
- mycode/server/deps.py +29 -0
- mycode/server/routers/__init__.py +7 -0
- mycode/server/routers/chat.py +320 -0
- mycode/server/routers/sessions.py +77 -0
- mycode/server/routers/workspaces.py +92 -0
- mycode/server/run_manager.py +195 -0
- mycode/server/schemas.py +66 -0
- mycode/server/static/assets/EditDiff-C1ql7kft.js +12 -0
- mycode/server/static/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- mycode/server/static/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- mycode/server/static/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- mycode/server/static/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- mycode/server/static/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- mycode/server/static/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- mycode/server/static/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- mycode/server/static/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- mycode/server/static/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- mycode/server/static/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- mycode/server/static/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- mycode/server/static/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- mycode/server/static/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- mycode/server/static/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- mycode/server/static/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- mycode/server/static/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- mycode/server/static/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- mycode/server/static/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- mycode/server/static/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- mycode/server/static/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- mycode/server/static/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- mycode/server/static/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- mycode/server/static/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- mycode/server/static/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- mycode/server/static/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- mycode/server/static/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- mycode/server/static/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- mycode/server/static/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- mycode/server/static/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- mycode/server/static/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- mycode/server/static/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- mycode/server/static/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- mycode/server/static/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- mycode/server/static/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- mycode/server/static/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- mycode/server/static/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- mycode/server/static/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- mycode/server/static/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- mycode/server/static/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- mycode/server/static/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- mycode/server/static/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- mycode/server/static/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- mycode/server/static/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- mycode/server/static/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- mycode/server/static/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- mycode/server/static/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- mycode/server/static/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- mycode/server/static/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- mycode/server/static/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- mycode/server/static/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- mycode/server/static/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- mycode/server/static/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- mycode/server/static/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- mycode/server/static/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- mycode/server/static/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- mycode/server/static/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- mycode/server/static/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- mycode/server/static/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- mycode/server/static/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- mycode/server/static/assets/abap-BdImnpbu.js +1 -0
- mycode/server/static/assets/actionscript-3-CoDkCxhg.js +1 -0
- mycode/server/static/assets/ada-bCR0ucgS.js +1 -0
- mycode/server/static/assets/andromeeda-C4gqWexZ.js +1 -0
- mycode/server/static/assets/angular-html-DA-rfuFy.js +1 -0
- mycode/server/static/assets/angular-ts-BrjP3tb8.js +1 -0
- mycode/server/static/assets/apache-Pmp26Uib.js +1 -0
- mycode/server/static/assets/apex-D8_7TLub.js +1 -0
- mycode/server/static/assets/apl-CORt7UWP.js +1 -0
- mycode/server/static/assets/applescript-Co6uUVPk.js +1 -0
- mycode/server/static/assets/ara-BRHolxvo.js +1 -0
- mycode/server/static/assets/asciidoc-Ve4PFQV2.js +1 -0
- mycode/server/static/assets/asm-D_Q5rh1f.js +1 -0
- mycode/server/static/assets/astro-HNnZUWAn.js +1 -0
- mycode/server/static/assets/aurora-x-D-2ljcwZ.js +1 -0
- mycode/server/static/assets/auto-render-xntwXHOX.js +261 -0
- mycode/server/static/assets/awk-DMzUqQB5.js +1 -0
- mycode/server/static/assets/ayu-dark-DYE7WIF3.js +1 -0
- mycode/server/static/assets/ayu-light-BA47KaF1.js +1 -0
- mycode/server/static/assets/ayu-mirage-32ctXXKs.js +1 -0
- mycode/server/static/assets/ballerina-BFfxhgS-.js +1 -0
- mycode/server/static/assets/bat-BkioyH1T.js +1 -0
- mycode/server/static/assets/beancount-k_qm7-4y.js +1 -0
- mycode/server/static/assets/berry-uYugtg8r.js +1 -0
- mycode/server/static/assets/bibtex-CHM0blh-.js +1 -0
- mycode/server/static/assets/bicep-Bmn6On1c.js +1 -0
- mycode/server/static/assets/bird2-BIv1doCn.js +1 -0
- mycode/server/static/assets/blade-BjGOyj-B.js +1 -0
- mycode/server/static/assets/bsl-BO_Y6i37.js +1 -0
- mycode/server/static/assets/c-BIGW1oBm.js +1 -0
- mycode/server/static/assets/c3-eo99z4R2.js +1 -0
- mycode/server/static/assets/cadence-Bv_4Rxtq.js +1 -0
- mycode/server/static/assets/cairo-KRGpt6FW.js +1 -0
- mycode/server/static/assets/catppuccin-frappe-DFWUc33u.js +1 -0
- mycode/server/static/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
- mycode/server/static/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
- mycode/server/static/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
- mycode/server/static/assets/clarity-D53aC0YG.js +1 -0
- mycode/server/static/assets/clojure-P80f7IUj.js +1 -0
- mycode/server/static/assets/cmake-D1j8_8rp.js +1 -0
- mycode/server/static/assets/cobol-nBiQ_Alo.js +1 -0
- mycode/server/static/assets/codeowners-Bp6g37R7.js +1 -0
- mycode/server/static/assets/codeql-DsOJ9woJ.js +1 -0
- mycode/server/static/assets/coffee-Ch7k5sss.js +1 -0
- mycode/server/static/assets/common-lisp-Cg-RD9OK.js +1 -0
- mycode/server/static/assets/coq-DkFqJrB1.js +1 -0
- mycode/server/static/assets/cpp-CofmeUqb.js +1 -0
- mycode/server/static/assets/crystal-DNxU26gB.js +1 -0
- mycode/server/static/assets/csharp-COcwbKMJ.js +1 -0
- mycode/server/static/assets/css-CLj8gQPS.js +1 -0
- mycode/server/static/assets/csv-fuZLfV_i.js +1 -0
- mycode/server/static/assets/cue-D82EKSYY.js +1 -0
- mycode/server/static/assets/cypher-COkxafJQ.js +1 -0
- mycode/server/static/assets/d-85-TOEBH.js +1 -0
- mycode/server/static/assets/dark-plus-C3mMm8J8.js +1 -0
- mycode/server/static/assets/dart-bE4Kk8sk.js +1 -0
- mycode/server/static/assets/dax-CEL-wOlO.js +1 -0
- mycode/server/static/assets/desktop-BmXAJ9_W.js +1 -0
- mycode/server/static/assets/diff-D97Zzqfu.js +1 -0
- mycode/server/static/assets/docker-BcOcwvcX.js +1 -0
- mycode/server/static/assets/dotenv-Da5cRb03.js +1 -0
- mycode/server/static/assets/dracula-BzJJZx-M.js +1 -0
- mycode/server/static/assets/dracula-soft-BXkSAIEj.js +1 -0
- mycode/server/static/assets/dream-maker-BtqSS_iP.js +1 -0
- mycode/server/static/assets/edge-FbVlp4U3.js +1 -0
- mycode/server/static/assets/elixir-CkH2-t6x.js +1 -0
- mycode/server/static/assets/elm-DbKCFpqz.js +1 -0
- mycode/server/static/assets/emacs-lisp-CXvaQtF9.js +1 -0
- mycode/server/static/assets/erb-BYCe7drp.js +1 -0
- mycode/server/static/assets/erlang-DsQrWhSR.js +1 -0
- mycode/server/static/assets/everforest-dark-BgDCqdQA.js +1 -0
- mycode/server/static/assets/everforest-light-C8M2exoo.js +1 -0
- mycode/server/static/assets/fennel-BYunw83y.js +1 -0
- mycode/server/static/assets/fish-BvzEVeQv.js +1 -0
- mycode/server/static/assets/fluent-C4IJs8-o.js +1 -0
- mycode/server/static/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
- mycode/server/static/assets/fortran-free-form-BxgE0vQu.js +1 -0
- mycode/server/static/assets/fsharp-CXgrBDvD.js +1 -0
- mycode/server/static/assets/gdresource-BOOCDP_w.js +1 -0
- mycode/server/static/assets/gdscript-C5YyOfLZ.js +1 -0
- mycode/server/static/assets/gdshader-DkwncUOv.js +1 -0
- mycode/server/static/assets/genie-D0YGMca9.js +1 -0
- mycode/server/static/assets/gherkin-DyxjwDmM.js +1 -0
- mycode/server/static/assets/git-commit-F4YmCXRG.js +1 -0
- mycode/server/static/assets/git-rebase-r7XF79zn.js +1 -0
- mycode/server/static/assets/github-dark-DHJKELXO.js +1 -0
- mycode/server/static/assets/github-dark-default-Cuk6v7N8.js +1 -0
- mycode/server/static/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- mycode/server/static/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- mycode/server/static/assets/github-light-DAi9KRSo.js +1 -0
- mycode/server/static/assets/github-light-default-D7oLnXFd.js +1 -0
- mycode/server/static/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- mycode/server/static/assets/gleam-BspZqrRM.js +1 -0
- mycode/server/static/assets/glimmer-js-ByusRIyA.js +1 -0
- mycode/server/static/assets/glimmer-ts-BfAWNZQY.js +1 -0
- mycode/server/static/assets/glsl-DplSGwfg.js +1 -0
- mycode/server/static/assets/gn-n2N0HUVH.js +1 -0
- mycode/server/static/assets/gnuplot-DdkO51Og.js +1 -0
- mycode/server/static/assets/go-C27-OAKa.js +1 -0
- mycode/server/static/assets/graphql-ChdNCCLP.js +1 -0
- mycode/server/static/assets/groovy-gcz8RCvz.js +1 -0
- mycode/server/static/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
- mycode/server/static/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
- mycode/server/static/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
- mycode/server/static/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
- mycode/server/static/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
- mycode/server/static/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
- mycode/server/static/assets/hack-i7_Ulhet.js +1 -0
- mycode/server/static/assets/haml-D5jkg6IW.js +1 -0
- mycode/server/static/assets/handlebars-BpdQsYii.js +1 -0
- mycode/server/static/assets/haskell-Df6bDoY_.js +1 -0
- mycode/server/static/assets/haxe-CzTSHFRz.js +1 -0
- mycode/server/static/assets/hcl-BWvSN4gD.js +1 -0
- mycode/server/static/assets/hjson-D5-asLiD.js +1 -0
- mycode/server/static/assets/hlsl-D3lLCCz7.js +1 -0
- mycode/server/static/assets/horizon-BUw7H-hv.js +1 -0
- mycode/server/static/assets/horizon-bright-CUuTKBJd.js +1 -0
- mycode/server/static/assets/houston-DnULxvSX.js +1 -0
- mycode/server/static/assets/html-derivative-DlHx6ybY.js +1 -0
- mycode/server/static/assets/html-pp8916En.js +1 -0
- mycode/server/static/assets/http-jrhK8wxY.js +1 -0
- mycode/server/static/assets/hurl-irOxFIW8.js +1 -0
- mycode/server/static/assets/hxml-Bvhsp5Yf.js +1 -0
- mycode/server/static/assets/hy-DFXneXwc.js +1 -0
- mycode/server/static/assets/imba-DGztddWO.js +1 -0
- mycode/server/static/assets/index-B4e4WQPq.css +1 -0
- mycode/server/static/assets/index-C2xTNJGd.js +203 -0
- mycode/server/static/assets/ini-BEwlwnbL.js +1 -0
- mycode/server/static/assets/java-CylS5w8V.js +1 -0
- mycode/server/static/assets/javascript-wDzz0qaB.js +1 -0
- mycode/server/static/assets/jinja-f2NsQr07.js +1 -0
- mycode/server/static/assets/jison-wvAkD_A8.js +1 -0
- mycode/server/static/assets/json-Cp-IABpG.js +1 -0
- mycode/server/static/assets/json5-C9tS-k6U.js +1 -0
- mycode/server/static/assets/jsonc-Des-eS-w.js +1 -0
- mycode/server/static/assets/jsonl-DcaNXYhu.js +1 -0
- mycode/server/static/assets/jsonnet-DFQXde-d.js +1 -0
- mycode/server/static/assets/jssm-C2t-YnRu.js +1 -0
- mycode/server/static/assets/jsx-g9-lgVsj.js +1 -0
- mycode/server/static/assets/julia-CxzCAyBv.js +1 -0
- mycode/server/static/assets/just-VxiPbLrw.js +1 -0
- mycode/server/static/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
- mycode/server/static/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
- mycode/server/static/assets/kanagawa-wave-DWedfzmr.js +1 -0
- mycode/server/static/assets/katex-DnJR2-55.css +1 -0
- mycode/server/static/assets/kdl-DV7GczEv.js +1 -0
- mycode/server/static/assets/kotlin-BdnUsdx6.js +1 -0
- mycode/server/static/assets/kusto-wEQ09or8.js +1 -0
- mycode/server/static/assets/laserwave-DUszq2jm.js +1 -0
- mycode/server/static/assets/latex-CWtU0Tv5.js +1 -0
- mycode/server/static/assets/lean-BZvkOJ9d.js +1 -0
- mycode/server/static/assets/less-B1dDrJ26.js +1 -0
- mycode/server/static/assets/light-plus-B7mTdjB0.js +1 -0
- mycode/server/static/assets/liquid-C0sCDyMI.js +1 -0
- mycode/server/static/assets/llvm-DjAJT7YJ.js +1 -0
- mycode/server/static/assets/log-2UxHyX5q.js +1 -0
- mycode/server/static/assets/logo-BtOb2qkB.js +1 -0
- mycode/server/static/assets/lua-BaeVxFsk.js +1 -0
- mycode/server/static/assets/luau-C-HG3fhB.js +1 -0
- mycode/server/static/assets/make-CHLpvVh8.js +1 -0
- mycode/server/static/assets/markdown-Cvjx9yec.js +1 -0
- mycode/server/static/assets/marko-DjSrsDqO.js +1 -0
- mycode/server/static/assets/material-theme-D5KoaKCx.js +1 -0
- mycode/server/static/assets/material-theme-darker-BfHTSMKl.js +1 -0
- mycode/server/static/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- mycode/server/static/assets/material-theme-ocean-CyktbL80.js +1 -0
- mycode/server/static/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- mycode/server/static/assets/matlab-D7o27uSR.js +1 -0
- mycode/server/static/assets/mdc-DTYItulj.js +1 -0
- mycode/server/static/assets/mdx-Cmh6b_Ma.js +1 -0
- mycode/server/static/assets/mermaid-mWjccvbQ.js +1 -0
- mycode/server/static/assets/min-dark-CafNBF8u.js +1 -0
- mycode/server/static/assets/min-light-CTRr51gU.js +1 -0
- mycode/server/static/assets/mipsasm-CKIfxQSi.js +1 -0
- mycode/server/static/assets/mojo-rZm6bMo-.js +1 -0
- mycode/server/static/assets/monokai-D4h5O-jR.js +1 -0
- mycode/server/static/assets/moonbit-_H4v1dQx.js +1 -0
- mycode/server/static/assets/move-IF9eRakj.js +1 -0
- mycode/server/static/assets/narrat-DRg8JJMk.js +1 -0
- mycode/server/static/assets/nextflow-C-mBbutL.js +1 -0
- mycode/server/static/assets/nextflow-groovy-vE_lwT2v.js +1 -0
- mycode/server/static/assets/nginx-BpAMiNFr.js +1 -0
- mycode/server/static/assets/night-owl-C39BiMTA.js +1 -0
- mycode/server/static/assets/night-owl-light-CMTm3GFP.js +1 -0
- mycode/server/static/assets/nim-BIad80T-.js +1 -0
- mycode/server/static/assets/nix-CwoSXNpI.js +1 -0
- mycode/server/static/assets/nord-Ddv68eIx.js +1 -0
- mycode/server/static/assets/nushell-Cz2AlsmD.js +1 -0
- mycode/server/static/assets/objective-c-DXmwc3jG.js +1 -0
- mycode/server/static/assets/objective-cpp-CLxacb5B.js +1 -0
- mycode/server/static/assets/ocaml-C0hk2d4L.js +1 -0
- mycode/server/static/assets/odin-BBf5iR-q.js +1 -0
- mycode/server/static/assets/one-dark-pro-DVMEJ2y_.js +1 -0
- mycode/server/static/assets/one-light-C3Wv6jpd.js +1 -0
- mycode/server/static/assets/openscad-C4EeE6gA.js +1 -0
- mycode/server/static/assets/pascal-D93ZcfNL.js +1 -0
- mycode/server/static/assets/perl-NvoQZIq0.js +1 -0
- mycode/server/static/assets/php-R6g_5hLQ.js +1 -0
- mycode/server/static/assets/pkl-u5AG7uiY.js +1 -0
- mycode/server/static/assets/plastic-3e1v2bzS.js +1 -0
- mycode/server/static/assets/plsql-ChMvpjG-.js +1 -0
- mycode/server/static/assets/po-BTJTHyun.js +1 -0
- mycode/server/static/assets/poimandres-CS3Unz2-.js +1 -0
- mycode/server/static/assets/polar-C0HS_06l.js +1 -0
- mycode/server/static/assets/postcss-CXtECtnM.js +1 -0
- mycode/server/static/assets/powerquery-CEu0bR-o.js +1 -0
- mycode/server/static/assets/powershell-Dpen1YoG.js +1 -0
- mycode/server/static/assets/prisma-Dd19v3D-.js +1 -0
- mycode/server/static/assets/prolog-CbFg5uaA.js +1 -0
- mycode/server/static/assets/proto-C7zT0LnQ.js +1 -0
- mycode/server/static/assets/pug-DKIMFp6K.js +1 -0
- mycode/server/static/assets/puppet-BMWR74SV.js +1 -0
- mycode/server/static/assets/purescript-CklMAg4u.js +1 -0
- mycode/server/static/assets/python-B6aJPvgy.js +1 -0
- mycode/server/static/assets/qml-3beO22l8.js +1 -0
- mycode/server/static/assets/qmldir-C8lEn-DE.js +1 -0
- mycode/server/static/assets/qss-IeuSbFQv.js +1 -0
- mycode/server/static/assets/r-Dspwwk_N.js +1 -0
- mycode/server/static/assets/racket-BqYA7rlc.js +1 -0
- mycode/server/static/assets/raku-DXvB9xmW.js +1 -0
- mycode/server/static/assets/razor-BDqjjVU7.js +1 -0
- mycode/server/static/assets/red-bN70gL4F.js +1 -0
- mycode/server/static/assets/reg-C-SQnVFl.js +1 -0
- mycode/server/static/assets/regexp-CDVJQ6XC.js +1 -0
- mycode/server/static/assets/rel-C3B-1QV4.js +1 -0
- mycode/server/static/assets/riscv-BM1_JUlF.js +1 -0
- mycode/server/static/assets/ron-D8l8udqQ.js +1 -0
- mycode/server/static/assets/rose-pine-dawn-DHQR4-dF.js +1 -0
- mycode/server/static/assets/rose-pine-moon-D4_iv3hh.js +1 -0
- mycode/server/static/assets/rose-pine-qdsjHGoJ.js +1 -0
- mycode/server/static/assets/rosmsg-BJDFO7_C.js +1 -0
- mycode/server/static/assets/rst-CRjBmOyv.js +1 -0
- mycode/server/static/assets/ruby-Wjq7vjNf.js +1 -0
- mycode/server/static/assets/rust-B1yitclQ.js +1 -0
- mycode/server/static/assets/sas-cz2c8ADy.js +1 -0
- mycode/server/static/assets/sass-Cj5Yp3dK.js +1 -0
- mycode/server/static/assets/scala-C151Ov-r.js +1 -0
- mycode/server/static/assets/scheme-C98Dy4si.js +1 -0
- mycode/server/static/assets/scss-D5BDwBP9.js +1 -0
- mycode/server/static/assets/sdbl-DVxCFoDh.js +1 -0
- mycode/server/static/assets/shaderlab-Dg9Lc6iA.js +1 -0
- mycode/server/static/assets/shellscript-Yzrsuije.js +1 -0
- mycode/server/static/assets/shellsession-BADoaaVG.js +1 -0
- mycode/server/static/assets/slack-dark-BthQWCQV.js +1 -0
- mycode/server/static/assets/slack-ochin-DqwNpetd.js +1 -0
- mycode/server/static/assets/smalltalk-BERRCDM3.js +1 -0
- mycode/server/static/assets/snazzy-light-Bw305WKR.js +1 -0
- mycode/server/static/assets/solarized-dark-DXbdFlpD.js +1 -0
- mycode/server/static/assets/solarized-light-L9t79GZl.js +1 -0
- mycode/server/static/assets/solidity-rGO070M0.js +1 -0
- mycode/server/static/assets/soy-8wufbnw4.js +1 -0
- mycode/server/static/assets/sparql-rVzFXLq3.js +1 -0
- mycode/server/static/assets/splunk-BtCnVYZw.js +1 -0
- mycode/server/static/assets/sql-BLtJtn59.js +1 -0
- mycode/server/static/assets/ssh-config-_ykCGR6B.js +1 -0
- mycode/server/static/assets/stata-BH5u7GGu.js +1 -0
- mycode/server/static/assets/stylus-BEDo0Tqx.js +1 -0
- mycode/server/static/assets/surrealql-Bq5Q-fJD.js +1 -0
- mycode/server/static/assets/svelte-Cy7k_4gC.js +1 -0
- mycode/server/static/assets/swift-D82vCrfD.js +1 -0
- mycode/server/static/assets/synthwave-84-CbfX1IO0.js +1 -0
- mycode/server/static/assets/system-verilog-CnnmHF94.js +1 -0
- mycode/server/static/assets/systemd-4A_iFExJ.js +1 -0
- mycode/server/static/assets/talonscript-CkByrt1z.js +1 -0
- mycode/server/static/assets/tasl-QIJgUcNo.js +1 -0
- mycode/server/static/assets/tcl-dwOrl1Do.js +1 -0
- mycode/server/static/assets/templ-DhtptRzy.js +1 -0
- mycode/server/static/assets/terraform-BETggiCN.js +1 -0
- mycode/server/static/assets/tex-idrVyKtj.js +1 -0
- mycode/server/static/assets/tokyo-night-hegEt444.js +1 -0
- mycode/server/static/assets/toml-vGWfd6FD.js +1 -0
- mycode/server/static/assets/ts-tags-DQrlYJgV.js +1 -0
- mycode/server/static/assets/tsv-B_m7g4N7.js +1 -0
- mycode/server/static/assets/tsx-COt5Ahok.js +1 -0
- mycode/server/static/assets/turtle-BsS91CYL.js +1 -0
- mycode/server/static/assets/twig-xg9kU7Mw.js +1 -0
- mycode/server/static/assets/typescript-BPQ3VLAy.js +1 -0
- mycode/server/static/assets/typespec-CAFt9gP4.js +1 -0
- mycode/server/static/assets/typst-DHCkPAjA.js +1 -0
- mycode/server/static/assets/v-BcVCzyr7.js +1 -0
- mycode/server/static/assets/vala-CsfeWuGM.js +1 -0
- mycode/server/static/assets/vb-D17OF-Vu.js +1 -0
- mycode/server/static/assets/verilog-BQ8w6xss.js +1 -0
- mycode/server/static/assets/vesper-DU1UobuO.js +1 -0
- mycode/server/static/assets/vhdl-CeAyd5Ju.js +1 -0
- mycode/server/static/assets/viml-CJc9bBzg.js +1 -0
- mycode/server/static/assets/vitesse-black-Bkuqu6BP.js +1 -0
- mycode/server/static/assets/vitesse-dark-D0r3Knsf.js +1 -0
- mycode/server/static/assets/vitesse-light-CVO1_9PV.js +1 -0
- mycode/server/static/assets/vue-D2xRrEX4.js +1 -0
- mycode/server/static/assets/vue-html-AaS7Mt5G.js +1 -0
- mycode/server/static/assets/vue-vine-BoDAl6tE.js +1 -0
- mycode/server/static/assets/vyper-CDx5xZoG.js +1 -0
- mycode/server/static/assets/wasm-CG6Dc4jp.js +1 -0
- mycode/server/static/assets/wasm-MzD3tlZU.js +1 -0
- mycode/server/static/assets/wenyan-BV7otONQ.js +1 -0
- mycode/server/static/assets/wgsl-Dx-B1_4e.js +1 -0
- mycode/server/static/assets/wikitext-BhOHFoWU.js +1 -0
- mycode/server/static/assets/wit-5i3qLPDT.js +1 -0
- mycode/server/static/assets/wolfram-lXgVvXCa.js +1 -0
- mycode/server/static/assets/xml-sdJ4AIDG.js +1 -0
- mycode/server/static/assets/xsl-CtQFsRM5.js +1 -0
- mycode/server/static/assets/yaml-Buea-lGh.js +1 -0
- mycode/server/static/assets/zenscript-DVFEvuxE.js +1 -0
- mycode/server/static/assets/zig-VOosw3JB.js +1 -0
- mycode/server/static/favicon_slashes.svg +12 -0
- mycode/server/static/index.html +35 -0
- mycode_cli-0.1.0.dist-info/METADATA +186 -0
- mycode_cli-0.1.0.dist-info/RECORD +404 -0
- mycode_cli-0.1.0.dist-info/WHEEL +4 -0
- mycode_cli-0.1.0.dist-info/entry_points.txt +2 -0
- mycode_cli-0.1.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-DA-rfuFy.js","assets/html-pp8916En.js","assets/javascript-wDzz0qaB.js","assets/css-CLj8gQPS.js","assets/angular-ts-BrjP3tb8.js","assets/scss-D5BDwBP9.js","assets/apl-CORt7UWP.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-HNnZUWAn.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-BjGOyj-B.js","assets/html-derivative-DlHx6ybY.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nBiQ_Alo.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-DNxU26gB.js","assets/shellscript-Yzrsuije.js","assets/edge-FbVlp4U3.js","assets/elixir-CkH2-t6x.js","assets/elm-DbKCFpqz.js","assets/erb-BYCe7drp.js","assets/ruby-Wjq7vjNf.js","assets/haml-D5jkg6IW.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BaeVxFsk.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-BOOCDP_w.js","assets/gdshader-DkwncUOv.js","assets/gdscript-C5YyOfLZ.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-ByusRIyA.js","assets/glimmer-ts-BfAWNZQY.js","assets/hack-i7_Ulhet.js","assets/handlebars-BpdQsYii.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-f2NsQr07.js","assets/jison-wvAkD_A8.js","assets/julia-CxzCAyBv.js","assets/r-Dspwwk_N.js","assets/just-VxiPbLrw.js","assets/perl-NvoQZIq0.js","assets/latex-CWtU0Tv5.js","assets/tex-idrVyKtj.js","assets/liquid-C0sCDyMI.js","assets/marko-DjSrsDqO.js","assets/less-B1dDrJ26.js","assets/mdc-DTYItulj.js","assets/nextflow-C-mBbutL.js","assets/nextflow-groovy-vE_lwT2v.js","assets/nginx-BpAMiNFr.js","assets/nim-BIad80T-.js","assets/php-R6g_5hLQ.js","assets/pug-DKIMFp6K.js","assets/qml-3beO22l8.js","assets/razor-BDqjjVU7.js","assets/csharp-COcwbKMJ.js","assets/rst-CRjBmOyv.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-8wufbnw4.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/surrealql-Bq5Q-fJD.js","assets/svelte-Cy7k_4gC.js","assets/templ-DhtptRzy.js","assets/go-C27-OAKa.js","assets/ts-tags-DQrlYJgV.js","assets/twig-xg9kU7Mw.js","assets/vue-D2xRrEX4.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-BoDAl6tE.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js","assets/katex-DnJR2-55.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function r(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function a(o){if(o.ep)return;o.ep=!0;const s=r(o);fetch(o.href,s)}})();function uu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var $f={exports:{}},Tl={};var p_;function uw(){if(p_)return Tl;p_=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(a,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+o.key),"key"in o){s={};for(var f in o)f!=="key"&&(s[f]=o[f])}else s=o;return o=s.ref,{$$typeof:e,type:a,key:c,ref:o!==void 0?o:null,props:s}}return Tl.Fragment=n,Tl.jsx=r,Tl.jsxs=r,Tl}var m_;function cw(){return m_||(m_=1,$f.exports=uw()),$f.exports}var O=cw(),Ff={exports:{}},ke={};var g_;function fw(){if(g_)return ke;g_=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function _(M){return M===null||typeof M!="object"?null:(M=b&&M[b]||M["@@iterator"],typeof M=="function"?M:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,R={};function w(M,I,S){this.props=M,this.context=I,this.refs=R,this.updater=S||x}w.prototype.isReactComponent={},w.prototype.setState=function(M,I){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,I,"setState")},w.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function T(){}T.prototype=w.prototype;function N(M,I,S){this.props=M,this.context=I,this.refs=R,this.updater=S||x}var Z=N.prototype=new T;Z.constructor=N,C(Z,w.prototype),Z.isPureReactComponent=!0;var Q=Array.isArray;function D(){}var P={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function F(M,I,S){var re=S.ref;return{$$typeof:e,type:M,key:I,ref:re!==void 0?re:null,props:S}}function j(M,I){return F(M.type,I,M.props)}function V(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function W(M){var I={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(S){return I[S]})}var ge=/\/+/g;function oe(M,I){return typeof M=="object"&&M!==null&&M.key!=null?W(""+M.key):I.toString(36)}function ie(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(D,D):(M.status="pending",M.then(function(I){M.status==="pending"&&(M.status="fulfilled",M.value=I)},function(I){M.status==="pending"&&(M.status="rejected",M.reason=I)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function B(M,I,S,re,ae){var le=typeof M;(le==="undefined"||le==="boolean")&&(M=null);var fe=!1;if(M===null)fe=!0;else switch(le){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(M.$$typeof){case e:case n:fe=!0;break;case y:return fe=M._init,B(fe(M._payload),I,S,re,ae)}}if(fe)return ae=ae(M),fe=re===""?"."+oe(M,0):re,Q(ae)?(S="",fe!=null&&(S=fe.replace(ge,"$&/")+"/"),B(ae,I,S,"",function(Be){return Be})):ae!=null&&(V(ae)&&(ae=j(ae,S+(ae.key==null||M&&M.key===ae.key?"":(""+ae.key).replace(ge,"$&/")+"/")+fe)),I.push(ae)),1;fe=0;var _e=re===""?".":re+":";if(Q(M))for(var ue=0;ue<M.length;ue++)re=M[ue],le=_e+oe(re,ue),fe+=B(re,I,S,le,ae);else if(ue=_(M),typeof ue=="function")for(M=ue.call(M),ue=0;!(re=M.next()).done;)re=re.value,le=_e+oe(re,ue++),fe+=B(re,I,S,le,ae);else if(le==="object"){if(typeof M.then=="function")return B(ie(M),I,S,re,ae);throw I=String(M),Error("Objects are not valid as a React child (found: "+(I==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":I)+"). If you meant to render a collection of children, use an array instead.")}return fe}function ne(M,I,S){if(M==null)return M;var re=[],ae=0;return B(M,re,"","",function(le){return I.call(S,le,ae++)}),re}function de(M){if(M._status===-1){var I=M._result;I=I(),I.then(function(S){(M._status===0||M._status===-1)&&(M._status=1,M._result=S)},function(S){(M._status===0||M._status===-1)&&(M._status=2,M._result=S)}),M._status===-1&&(M._status=0,M._result=I)}if(M._status===1)return M._result.default;throw M._result}var xe=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var I=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(I))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},A={map:ne,forEach:function(M,I,S){ne(M,function(){I.apply(this,arguments)},S)},count:function(M){var I=0;return ne(M,function(){I++}),I},toArray:function(M){return ne(M,function(I){return I})||[]},only:function(M){if(!V(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return ke.Activity=g,ke.Children=A,ke.Component=w,ke.Fragment=r,ke.Profiler=o,ke.PureComponent=N,ke.StrictMode=a,ke.Suspense=d,ke.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,ke.__COMPILER_RUNTIME={__proto__:null,c:function(M){return P.H.useMemoCache(M)}},ke.cache=function(M){return function(){return M.apply(null,arguments)}},ke.cacheSignal=function(){return null},ke.cloneElement=function(M,I,S){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var re=C({},M.props),ae=M.key;if(I!=null)for(le in I.key!==void 0&&(ae=""+I.key),I)!q.call(I,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&I.ref===void 0||(re[le]=I[le]);var le=arguments.length-2;if(le===1)re.children=S;else if(1<le){for(var fe=Array(le),_e=0;_e<le;_e++)fe[_e]=arguments[_e+2];re.children=fe}return F(M.type,ae,re)},ke.createContext=function(M){return M={$$typeof:c,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:s,_context:M},M},ke.createElement=function(M,I,S){var re,ae={},le=null;if(I!=null)for(re in I.key!==void 0&&(le=""+I.key),I)q.call(I,re)&&re!=="key"&&re!=="__self"&&re!=="__source"&&(ae[re]=I[re]);var fe=arguments.length-2;if(fe===1)ae.children=S;else if(1<fe){for(var _e=Array(fe),ue=0;ue<fe;ue++)_e[ue]=arguments[ue+2];ae.children=_e}if(M&&M.defaultProps)for(re in fe=M.defaultProps,fe)ae[re]===void 0&&(ae[re]=fe[re]);return F(M,le,ae)},ke.createRef=function(){return{current:null}},ke.forwardRef=function(M){return{$$typeof:f,render:M}},ke.isValidElement=V,ke.lazy=function(M){return{$$typeof:y,_payload:{_status:-1,_result:M},_init:de}},ke.memo=function(M,I){return{$$typeof:h,type:M,compare:I===void 0?null:I}},ke.startTransition=function(M){var I=P.T,S={};P.T=S;try{var re=M(),ae=P.S;ae!==null&&ae(S,re),typeof re=="object"&&re!==null&&typeof re.then=="function"&&re.then(D,xe)}catch(le){xe(le)}finally{I!==null&&S.types!==null&&(I.types=S.types),P.T=I}},ke.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},ke.use=function(M){return P.H.use(M)},ke.useActionState=function(M,I,S){return P.H.useActionState(M,I,S)},ke.useCallback=function(M,I){return P.H.useCallback(M,I)},ke.useContext=function(M){return P.H.useContext(M)},ke.useDebugValue=function(){},ke.useDeferredValue=function(M,I){return P.H.useDeferredValue(M,I)},ke.useEffect=function(M,I){return P.H.useEffect(M,I)},ke.useEffectEvent=function(M){return P.H.useEffectEvent(M)},ke.useId=function(){return P.H.useId()},ke.useImperativeHandle=function(M,I,S){return P.H.useImperativeHandle(M,I,S)},ke.useInsertionEffect=function(M,I){return P.H.useInsertionEffect(M,I)},ke.useLayoutEffect=function(M,I){return P.H.useLayoutEffect(M,I)},ke.useMemo=function(M,I){return P.H.useMemo(M,I)},ke.useOptimistic=function(M,I){return P.H.useOptimistic(M,I)},ke.useReducer=function(M,I,S){return P.H.useReducer(M,I,S)},ke.useRef=function(M){return P.H.useRef(M)},ke.useState=function(M){return P.H.useState(M)},ke.useSyncExternalStore=function(M,I,S){return P.H.useSyncExternalStore(M,I,S)},ke.useTransition=function(){return P.H.useTransition()},ke.version="19.2.4",ke}var y_;function cu(){return y_||(y_=1,Ff.exports=fw()),Ff.exports}var Y=cu();const fu=uu(Y);var Yf={exports:{}},Rl={},Xf={exports:{}},Qf={};var __;function dw(){return __||(__=1,(function(e){function n(B,ne){var de=B.length;B.push(ne);e:for(;0<de;){var xe=de-1>>>1,A=B[xe];if(0<o(A,ne))B[xe]=ne,B[de]=A,de=xe;else break e}}function r(B){return B.length===0?null:B[0]}function a(B){if(B.length===0)return null;var ne=B[0],de=B.pop();if(de!==ne){B[0]=de;e:for(var xe=0,A=B.length,M=A>>>1;xe<M;){var I=2*(xe+1)-1,S=B[I],re=I+1,ae=B[re];if(0>o(S,de))re<A&&0>o(ae,S)?(B[xe]=ae,B[re]=de,xe=re):(B[xe]=S,B[I]=de,xe=I);else if(re<A&&0>o(ae,de))B[xe]=ae,B[re]=de,xe=re;else break e}}return ne}function o(B,ne){var de=B.sortIndex-ne.sortIndex;return de!==0?de:B.id-ne.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var d=[],h=[],y=1,g=null,b=3,_=!1,x=!1,C=!1,R=!1,w=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,N=typeof setImmediate<"u"?setImmediate:null;function Z(B){for(var ne=r(h);ne!==null;){if(ne.callback===null)a(h);else if(ne.startTime<=B)a(h),ne.sortIndex=ne.expirationTime,n(d,ne);else break;ne=r(h)}}function Q(B){if(C=!1,Z(B),!x)if(r(d)!==null)x=!0,D||(D=!0,W());else{var ne=r(h);ne!==null&&ie(Q,ne.startTime-B)}}var D=!1,P=-1,q=5,F=-1;function j(){return R?!0:!(e.unstable_now()-F<q)}function V(){if(R=!1,D){var B=e.unstable_now();F=B;var ne=!0;try{e:{x=!1,C&&(C=!1,T(P),P=-1),_=!0;var de=b;try{t:{for(Z(B),g=r(d);g!==null&&!(g.expirationTime>B&&j());){var xe=g.callback;if(typeof xe=="function"){g.callback=null,b=g.priorityLevel;var A=xe(g.expirationTime<=B);if(B=e.unstable_now(),typeof A=="function"){g.callback=A,Z(B),ne=!0;break t}g===r(d)&&a(d),Z(B)}else a(d);g=r(d)}if(g!==null)ne=!0;else{var M=r(h);M!==null&&ie(Q,M.startTime-B),ne=!1}}break e}finally{g=null,b=de,_=!1}ne=void 0}}finally{ne?W():D=!1}}}var W;if(typeof N=="function")W=function(){N(V)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,oe=ge.port2;ge.port1.onmessage=V,W=function(){oe.postMessage(null)}}else W=function(){w(V,0)};function ie(B,ne){P=w(function(){B(e.unstable_now())},ne)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<B?Math.floor(1e3/B):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(B){switch(b){case 1:case 2:case 3:var ne=3;break;default:ne=b}var de=b;b=ne;try{return B()}finally{b=de}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(B,ne){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var de=b;b=B;try{return ne()}finally{b=de}},e.unstable_scheduleCallback=function(B,ne,de){var xe=e.unstable_now();switch(typeof de=="object"&&de!==null?(de=de.delay,de=typeof de=="number"&&0<de?xe+de:xe):de=xe,B){case 1:var A=-1;break;case 2:A=250;break;case 5:A=1073741823;break;case 4:A=1e4;break;default:A=5e3}return A=de+A,B={id:y++,callback:ne,priorityLevel:B,startTime:de,expirationTime:A,sortIndex:-1},de>xe?(B.sortIndex=de,n(h,B),r(d)===null&&B===r(h)&&(C?(T(P),P=-1):C=!0,ie(Q,de-xe))):(B.sortIndex=A,n(d,B),x||_||(x=!0,D||(D=!0,W()))),B},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(B){var ne=b;return function(){var de=b;b=ne;try{return B.apply(this,arguments)}finally{b=de}}}})(Qf)),Qf}var b_;function hw(){return b_||(b_=1,Xf.exports=dw()),Xf.exports}var Zf={exports:{}},$t={};var v_;function pw(){if(v_)return $t;v_=1;var e=cu();function n(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)h+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(d,h,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:d,containerInfo:h,implementation:y}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return $t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,$t.createPortal=function(d,h){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(n(299));return s(d,h,null,y)},$t.flushSync=function(d){var h=c.T,y=a.p;try{if(c.T=null,a.p=2,d)return d()}finally{c.T=h,a.p=y,a.d.f()}},$t.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,a.d.C(d,h))},$t.prefetchDNS=function(d){typeof d=="string"&&a.d.D(d)},$t.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var y=h.as,g=f(y,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,_=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;y==="style"?a.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:_}):y==="script"&&a.d.X(d,{crossOrigin:g,integrity:b,fetchPriority:_,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},$t.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var y=f(h.as,h.crossOrigin);a.d.M(d,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&a.d.M(d)},$t.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var y=h.as,g=f(y,h.crossOrigin);a.d.L(d,y,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},$t.preloadModule=function(d,h){if(typeof d=="string")if(h){var y=f(h.as,h.crossOrigin);a.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else a.d.m(d)},$t.requestFormReset=function(d){a.d.r(d)},$t.unstable_batchedUpdates=function(d,h){return d(h)},$t.useFormState=function(d,h,y){return c.H.useFormState(d,h,y)},$t.useFormStatus=function(){return c.H.useHostTransitionStatus()},$t.version="19.2.4",$t}var x_;function Lb(){if(x_)return Zf.exports;x_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Zf.exports=pw(),Zf.exports}var E_;function mw(){if(E_)return Rl;E_=1;var e=hw(),n=cu(),r=Lb();function a(t){var i="https://react.dev/errors/"+t;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function s(t){var i=t,l=t;if(t.alternate)for(;i.return;)i=i.return;else{t=i;do i=t,(i.flags&4098)!==0&&(l=i.return),t=i.return;while(t)}return i.tag===3?l:null}function c(t){if(t.tag===13){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function f(t){if(t.tag===31){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function d(t){if(s(t)!==t)throw Error(a(188))}function h(t){var i=t.alternate;if(!i){if(i=s(t),i===null)throw Error(a(188));return i!==t?null:t}for(var l=t,u=i;;){var p=l.return;if(p===null)break;var m=p.alternate;if(m===null){if(u=p.return,u!==null){l=u;continue}break}if(p.child===m.child){for(m=p.child;m;){if(m===l)return d(p),t;if(m===u)return d(p),i;m=m.sibling}throw Error(a(188))}if(l.return!==u.return)l=p,u=m;else{for(var v=!1,E=p.child;E;){if(E===l){v=!0,l=p,u=m;break}if(E===u){v=!0,u=p,l=m;break}E=E.sibling}if(!v){for(E=m.child;E;){if(E===l){v=!0,l=m,u=p;break}if(E===u){v=!0,u=m,l=p;break}E=E.sibling}if(!v)throw Error(a(189))}}if(l.alternate!==u)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?t:i}function y(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t;for(t=t.child;t!==null;){if(i=y(t),i!==null)return i;t=t.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),N=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),j=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function W(t){return t===null||typeof t!="object"?null:(t=V&&t[V]||t["@@iterator"],typeof t=="function"?t:null)}var ge=Symbol.for("react.client.reference");function oe(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ge?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case w:return"Profiler";case R:return"StrictMode";case Q:return"Suspense";case D:return"SuspenseList";case F:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case x:return"Portal";case N:return t.displayName||"Context";case T:return(t._context.displayName||"Context")+".Consumer";case Z:var i=t.render;return t=t.displayName,t||(t=i.displayName||i.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case P:return i=t.displayName||null,i!==null?i:oe(t.type)||"Memo";case q:i=t._payload,t=t._init;try{return oe(t(i))}catch{}}return null}var ie=Array.isArray,B=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},xe=[],A=-1;function M(t){return{current:t}}function I(t){0>A||(t.current=xe[A],xe[A]=null,A--)}function S(t,i){A++,xe[A]=t.current,t.current=i}var re=M(null),ae=M(null),le=M(null),fe=M(null);function _e(t,i){switch(S(le,i),S(ae,t),S(re,null),i.nodeType){case 9:case 11:t=(t=i.documentElement)&&(t=t.namespaceURI)?jy(t):0;break;default:if(t=i.tagName,i=i.namespaceURI)i=jy(i),t=By(i,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}I(re),S(re,t)}function ue(){I(re),I(ae),I(le)}function Be(t){t.memoizedState!==null&&S(fe,t);var i=re.current,l=By(i,t.type);i!==l&&(S(ae,t),S(re,l))}function qe(t){ae.current===t&&(I(re),I(ae)),fe.current===t&&(I(fe),wl._currentValue=de)}var dt,ht;function Ye(t){if(dt===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);dt=i&&i[1]||"",ht=-1<l.stack.indexOf(`
|
|
3
|
+
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
+
`+dt+t+ht}var Dt=!1;function Wt(t,i){if(!t||Dt)return"";Dt=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(i){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(X){var $=X}Reflect.construct(t,[],te)}else{try{te.call()}catch(X){$=X}t.call(te.prototype)}}else{try{throw Error()}catch(X){$=X}(te=t())&&typeof te.catch=="function"&&te.catch(function(){})}}catch(X){if(X&&$&&typeof X.stack=="string")return[X.stack,$.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=u.DetermineComponentFrameRoot(),v=m[0],E=m[1];if(v&&E){var L=v.split(`
|
|
5
|
+
`),G=E.split(`
|
|
6
|
+
`);for(p=u=0;u<L.length&&!L[u].includes("DetermineComponentFrameRoot");)u++;for(;p<G.length&&!G[p].includes("DetermineComponentFrameRoot");)p++;if(u===L.length||p===G.length)for(u=L.length-1,p=G.length-1;1<=u&&0<=p&&L[u]!==G[p];)p--;for(;1<=u&&0<=p;u--,p--)if(L[u]!==G[p]){if(u!==1||p!==1)do if(u--,p--,0>p||L[u]!==G[p]){var J=`
|
|
7
|
+
`+L[u].replace(" at new "," at ");return t.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",t.displayName)),J}while(1<=u&&0<=p);break}}}finally{Dt=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Ye(l):""}function Pe(t,i){switch(t.tag){case 26:case 27:case 5:return Ye(t.type);case 16:return Ye("Lazy");case 13:return t.child!==i&&i!==null?Ye("Suspense Fallback"):Ye("Suspense");case 19:return Ye("SuspenseList");case 0:case 15:return Wt(t.type,!1);case 11:return Wt(t.type.render,!1);case 1:return Wt(t.type,!0);case 31:return Ye("Activity");default:return""}}function Qe(t){try{var i="",l=null;do i+=Pe(t,l),l=t,t=t.return;while(t);return i}catch(u){return`
|
|
8
|
+
Error generating stack: `+u.message+`
|
|
9
|
+
`+u.stack}}var Ge=Object.prototype.hasOwnProperty,Je=e.unstable_scheduleCallback,Gt=e.unstable_cancelCallback,qt=e.unstable_shouldYield,pt=e.unstable_requestPaint,nt=e.unstable_now,Jn=e.unstable_getCurrentPriorityLevel,K=e.unstable_ImmediatePriority,ce=e.unstable_UserBlockingPriority,Ee=e.unstable_NormalPriority,we=e.unstable_LowPriority,Oe=e.unstable_IdlePriority,jt=e.log,zn=e.unstable_setDisableYieldValue,kt=null,At=null;function en(t){if(typeof jt=="function"&&zn(t),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(kt,t)}catch{}}var rt=Math.clz32?Math.clz32:Qx,wr=Math.log,In=Math.LN2;function Qx(t){return t>>>=0,t===0?32:31-(wr(t)/In|0)|0}var lo=256,oo=262144,so=4194304;function ai(t){var i=t&42;if(i!==0)return i;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function uo(t,i,l){var u=t.pendingLanes;if(u===0)return 0;var p=0,m=t.suspendedLanes,v=t.pingedLanes;t=t.warmLanes;var E=u&134217727;return E!==0?(u=E&~m,u!==0?p=ai(u):(v&=E,v!==0?p=ai(v):l||(l=E&~t,l!==0&&(p=ai(l))))):(E=u&~m,E!==0?p=ai(E):v!==0?p=ai(v):l||(l=u&~t,l!==0&&(p=ai(l)))),p===0?0:i!==0&&i!==p&&(i&m)===0&&(m=p&-p,l=i&-i,m>=l||m===32&&(l&4194048)!==0)?i:p}function ja(t,i){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&i)===0}function Zx(t,i){switch(t){case 1:case 2:case 4:case 8:case 64:return i+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function _p(){var t=so;return so<<=1,(so&62914560)===0&&(so=4194304),t}function Du(t){for(var i=[],l=0;31>l;l++)i.push(t);return i}function Ba(t,i){t.pendingLanes|=i,i!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Kx(t,i,l,u,p,m){var v=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var E=t.entanglements,L=t.expirationTimes,G=t.hiddenUpdates;for(l=v&~l;0<l;){var J=31-rt(l),te=1<<J;E[J]=0,L[J]=-1;var $=G[J];if($!==null)for(G[J]=null,J=0;J<$.length;J++){var X=$[J];X!==null&&(X.lane&=-536870913)}l&=~te}u!==0&&bp(t,u,0),m!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=m&~(v&~i))}function bp(t,i,l){t.pendingLanes|=i,t.suspendedLanes&=~i;var u=31-rt(i);t.entangledLanes|=i,t.entanglements[u]=t.entanglements[u]|1073741824|l&261930}function vp(t,i){var l=t.entangledLanes|=i;for(t=t.entanglements;l;){var u=31-rt(l),p=1<<u;p&i|t[u]&i&&(t[u]|=i),l&=~p}}function xp(t,i){var l=i&-i;return l=(l&42)!==0?1:Nu(l),(l&(t.suspendedLanes|i))!==0?0:l}function Nu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Mu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Ep(){var t=ne.p;return t!==0?t:(t=window.event,t===void 0?32:o_(t.type))}function Sp(t,i){var l=ne.p;try{return ne.p=t,i()}finally{ne.p=l}}var kr=Math.random().toString(36).slice(2),Bt="__reactFiber$"+kr,tn="__reactProps$"+kr,Ii="__reactContainer$"+kr,zu="__reactEvents$"+kr,Jx="__reactListeners$"+kr,Wx="__reactHandles$"+kr,wp="__reactResources$"+kr,Ua="__reactMarker$"+kr;function Iu(t){delete t[Bt],delete t[tn],delete t[zu],delete t[Jx],delete t[Wx]}function ji(t){var i=t[Bt];if(i)return i;for(var l=t.parentNode;l;){if(i=l[Ii]||l[Bt]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(t=$y(t);t!==null;){if(l=t[Bt])return l;t=$y(t)}return i}t=l,l=t.parentNode}return null}function Bi(t){if(t=t[Bt]||t[Ii]){var i=t.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return t}return null}function Va(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t.stateNode;throw Error(a(33))}function Ui(t){var i=t[wp];return i||(i=t[wp]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Nt(t){t[Ua]=!0}var kp=new Set,Ap={};function li(t,i){Vi(t,i),Vi(t+"Capture",i)}function Vi(t,i){for(Ap[t]=i,t=0;t<i.length;t++)kp.add(i[t])}var eE=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Cp={},Tp={};function tE(t){return Ge.call(Tp,t)?!0:Ge.call(Cp,t)?!1:eE.test(t)?Tp[t]=!0:(Cp[t]=!0,!1)}function co(t,i,l){if(tE(i))if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(i);return;case"boolean":var u=i.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){t.removeAttribute(i);return}}t.setAttribute(i,""+l)}}function fo(t,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttribute(i,""+l)}}function Wn(t,i,l,u){if(u===null)t.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(i,l,""+u)}}function xn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Rp(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function nE(t,i,l){var u=Object.getOwnPropertyDescriptor(t.constructor.prototype,i);if(!t.hasOwnProperty(i)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var p=u.get,m=u.set;return Object.defineProperty(t,i,{configurable:!0,get:function(){return p.call(this)},set:function(v){l=""+v,m.call(this,v)}}),Object.defineProperty(t,i,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){t._valueTracker=null,delete t[i]}}}}function ju(t){if(!t._valueTracker){var i=Rp(t)?"checked":"value";t._valueTracker=nE(t,i,""+t[i])}}function Op(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var l=i.getValue(),u="";return t&&(u=Rp(t)?t.checked?"true":"false":t.value),t=u,t!==l?(i.setValue(t),!0):!1}function ho(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var rE=/[\n"\\]/g;function En(t){return t.replace(rE,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Bu(t,i,l,u,p,m,v,E){t.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.type=v:t.removeAttribute("type"),i!=null?v==="number"?(i===0&&t.value===""||t.value!=i)&&(t.value=""+xn(i)):t.value!==""+xn(i)&&(t.value=""+xn(i)):v!=="submit"&&v!=="reset"||t.removeAttribute("value"),i!=null?Uu(t,v,xn(i)):l!=null?Uu(t,v,xn(l)):u!=null&&t.removeAttribute("value"),p==null&&m!=null&&(t.defaultChecked=!!m),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?t.name=""+xn(E):t.removeAttribute("name")}function Lp(t,i,l,u,p,m,v,E){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),i!=null||l!=null){if(!(m!=="submit"&&m!=="reset"||i!=null)){ju(t);return}l=l!=null?""+xn(l):"",i=i!=null?""+xn(i):l,E||i===t.value||(t.value=i),t.defaultValue=i}u=u??p,u=typeof u!="function"&&typeof u!="symbol"&&!!u,t.checked=E?t.checked:!!u,t.defaultChecked=!!u,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(t.name=v),ju(t)}function Uu(t,i,l){i==="number"&&ho(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function Pi(t,i,l,u){if(t=t.options,i){i={};for(var p=0;p<l.length;p++)i["$"+l[p]]=!0;for(l=0;l<t.length;l++)p=i.hasOwnProperty("$"+t[l].value),t[l].selected!==p&&(t[l].selected=p),p&&u&&(t[l].defaultSelected=!0)}else{for(l=""+xn(l),i=null,p=0;p<t.length;p++){if(t[p].value===l){t[p].selected=!0,u&&(t[p].defaultSelected=!0);return}i!==null||t[p].disabled||(i=t[p])}i!==null&&(i.selected=!0)}}function Dp(t,i,l){if(i!=null&&(i=""+xn(i),i!==t.value&&(t.value=i),l==null)){t.defaultValue!==i&&(t.defaultValue=i);return}t.defaultValue=l!=null?""+xn(l):""}function Np(t,i,l,u){if(i==null){if(u!=null){if(l!=null)throw Error(a(92));if(ie(u)){if(1<u.length)throw Error(a(93));u=u[0]}l=u}l==null&&(l=""),i=l}l=xn(i),t.defaultValue=l,u=t.textContent,u===l&&u!==""&&u!==null&&(t.value=u),ju(t)}function Hi(t,i){if(i){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=i;return}}t.textContent=i}var iE=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Mp(t,i,l){var u=i.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="":u?t.setProperty(i,l):typeof l!="number"||l===0||iE.has(i)?i==="float"?t.cssFloat=l:t[i]=(""+l).trim():t[i]=l+"px"}function zp(t,i,l){if(i!=null&&typeof i!="object")throw Error(a(62));if(t=t.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||i!=null&&i.hasOwnProperty(u)||(u.indexOf("--")===0?t.setProperty(u,""):u==="float"?t.cssFloat="":t[u]="");for(var p in i)u=i[p],i.hasOwnProperty(p)&&l[p]!==u&&Mp(t,p,u)}else for(var m in i)i.hasOwnProperty(m)&&Mp(t,m,i[m])}function Vu(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var aE=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["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"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["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"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["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"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),lE=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function po(t){return lE.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function er(){}var Pu=null;function Hu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Gi=null,qi=null;function Ip(t){var i=Bi(t);if(i&&(t=i.stateNode)){var l=t[tn]||null;e:switch(t=i.stateNode,i.type){case"input":if(Bu(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),i=l.name,l.type==="radio"&&i!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+En(""+i)+'"][type="radio"]'),i=0;i<l.length;i++){var u=l[i];if(u!==t&&u.form===t.form){var p=u[tn]||null;if(!p)throw Error(a(90));Bu(u,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(i=0;i<l.length;i++)u=l[i],u.form===t.form&&Op(u)}break e;case"textarea":Dp(t,l.value,l.defaultValue);break e;case"select":i=l.value,i!=null&&Pi(t,!!l.multiple,i,!1)}}}var Gu=!1;function jp(t,i,l){if(Gu)return t(i,l);Gu=!0;try{var u=t(i);return u}finally{if(Gu=!1,(Gi!==null||qi!==null)&&(ts(),Gi&&(i=Gi,t=qi,qi=Gi=null,Ip(i),t)))for(i=0;i<t.length;i++)Ip(t[i])}}function Pa(t,i){var l=t.stateNode;if(l===null)return null;var u=l[tn]||null;if(u===null)return null;l=u[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(t=t.type,u=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!u;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(a(231,i,typeof l));return l}var tr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qu=!1;if(tr)try{var Ha={};Object.defineProperty(Ha,"passive",{get:function(){qu=!0}}),window.addEventListener("test",Ha,Ha),window.removeEventListener("test",Ha,Ha)}catch{qu=!1}var Ar=null,$u=null,mo=null;function Bp(){if(mo)return mo;var t,i=$u,l=i.length,u,p="value"in Ar?Ar.value:Ar.textContent,m=p.length;for(t=0;t<l&&i[t]===p[t];t++);var v=l-t;for(u=1;u<=v&&i[l-u]===p[m-u];u++);return mo=p.slice(t,1<u?1-u:void 0)}function go(t){var i=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&i===13&&(t=13)):t=i,t===10&&(t=13),32<=t||t===13?t:0}function yo(){return!0}function Up(){return!1}function nn(t){function i(l,u,p,m,v){this._reactName=l,this._targetInst=p,this.type=u,this.nativeEvent=m,this.target=v,this.currentTarget=null;for(var E in t)t.hasOwnProperty(E)&&(l=t[E],this[E]=l?l(m):m[E]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?yo:Up,this.isPropagationStopped=Up,this}return g(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=yo)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=yo)},persist:function(){},isPersistent:yo}),i}var oi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_o=nn(oi),Ga=g({},oi,{view:0,detail:0}),oE=nn(Ga),Fu,Yu,qa,bo=g({},Ga,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qu,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==qa&&(qa&&t.type==="mousemove"?(Fu=t.screenX-qa.screenX,Yu=t.screenY-qa.screenY):Yu=Fu=0,qa=t),Fu)},movementY:function(t){return"movementY"in t?t.movementY:Yu}}),Vp=nn(bo),sE=g({},bo,{dataTransfer:0}),uE=nn(sE),cE=g({},Ga,{relatedTarget:0}),Xu=nn(cE),fE=g({},oi,{animationName:0,elapsedTime:0,pseudoElement:0}),dE=nn(fE),hE=g({},oi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),pE=nn(hE),mE=g({},oi,{data:0}),Pp=nn(mE),gE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},yE={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},_E={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bE(t){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(t):(t=_E[t])?!!i[t]:!1}function Qu(){return bE}var vE=g({},Ga,{key:function(t){if(t.key){var i=gE[t.key]||t.key;if(i!=="Unidentified")return i}return t.type==="keypress"?(t=go(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?yE[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qu,charCode:function(t){return t.type==="keypress"?go(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?go(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),xE=nn(vE),EE=g({},bo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hp=nn(EE),SE=g({},Ga,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qu}),wE=nn(SE),kE=g({},oi,{propertyName:0,elapsedTime:0,pseudoElement:0}),AE=nn(kE),CE=g({},bo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),TE=nn(CE),RE=g({},oi,{newState:0,oldState:0}),OE=nn(RE),LE=[9,13,27,32],Zu=tr&&"CompositionEvent"in window,$a=null;tr&&"documentMode"in document&&($a=document.documentMode);var DE=tr&&"TextEvent"in window&&!$a,Gp=tr&&(!Zu||$a&&8<$a&&11>=$a),qp=" ",$p=!1;function Fp(t,i){switch(t){case"keyup":return LE.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var $i=!1;function NE(t,i){switch(t){case"compositionend":return Yp(i);case"keypress":return i.which!==32?null:($p=!0,qp);case"textInput":return t=i.data,t===qp&&$p?null:t;default:return null}}function ME(t,i){if($i)return t==="compositionend"||!Zu&&Fp(t,i)?(t=Bp(),mo=$u=Ar=null,$i=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Gp&&i.locale!=="ko"?null:i.data;default:return null}}var zE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Xp(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i==="input"?!!zE[t.type]:i==="textarea"}function Qp(t,i,l,u){Gi?qi?qi.push(u):qi=[u]:Gi=u,i=ss(i,"onChange"),0<i.length&&(l=new _o("onChange","change",null,l,u),t.push({event:l,listeners:i}))}var Fa=null,Ya=null;function IE(t){Ly(t,0)}function vo(t){var i=Va(t);if(Op(i))return t}function Zp(t,i){if(t==="change")return i}var Kp=!1;if(tr){var Ku;if(tr){var Ju="oninput"in document;if(!Ju){var Jp=document.createElement("div");Jp.setAttribute("oninput","return;"),Ju=typeof Jp.oninput=="function"}Ku=Ju}else Ku=!1;Kp=Ku&&(!document.documentMode||9<document.documentMode)}function Wp(){Fa&&(Fa.detachEvent("onpropertychange",em),Ya=Fa=null)}function em(t){if(t.propertyName==="value"&&vo(Ya)){var i=[];Qp(i,Ya,t,Hu(t)),jp(IE,i)}}function jE(t,i,l){t==="focusin"?(Wp(),Fa=i,Ya=l,Fa.attachEvent("onpropertychange",em)):t==="focusout"&&Wp()}function BE(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return vo(Ya)}function UE(t,i){if(t==="click")return vo(i)}function VE(t,i){if(t==="input"||t==="change")return vo(i)}function PE(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var fn=typeof Object.is=="function"?Object.is:PE;function Xa(t,i){if(fn(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var l=Object.keys(t),u=Object.keys(i);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var p=l[u];if(!Ge.call(i,p)||!fn(t[p],i[p]))return!1}return!0}function tm(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function nm(t,i){var l=tm(t);t=0;for(var u;l;){if(l.nodeType===3){if(u=t+l.textContent.length,t<=i&&u>=i)return{node:l,offset:i-t};t=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=tm(l)}}function rm(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?rm(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function im(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var i=ho(t.document);i instanceof t.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)t=i.contentWindow;else break;i=ho(t.document)}return i}function Wu(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}var HE=tr&&"documentMode"in document&&11>=document.documentMode,Fi=null,ec=null,Qa=null,tc=!1;function am(t,i,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;tc||Fi==null||Fi!==ho(u)||(u=Fi,"selectionStart"in u&&Wu(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Qa&&Xa(Qa,u)||(Qa=u,u=ss(ec,"onSelect"),0<u.length&&(i=new _o("onSelect","select",null,i,l),t.push({event:i,listeners:u}),i.target=Fi)))}function si(t,i){var l={};return l[t.toLowerCase()]=i.toLowerCase(),l["Webkit"+t]="webkit"+i,l["Moz"+t]="moz"+i,l}var Yi={animationend:si("Animation","AnimationEnd"),animationiteration:si("Animation","AnimationIteration"),animationstart:si("Animation","AnimationStart"),transitionrun:si("Transition","TransitionRun"),transitionstart:si("Transition","TransitionStart"),transitioncancel:si("Transition","TransitionCancel"),transitionend:si("Transition","TransitionEnd")},nc={},lm={};tr&&(lm=document.createElement("div").style,"AnimationEvent"in window||(delete Yi.animationend.animation,delete Yi.animationiteration.animation,delete Yi.animationstart.animation),"TransitionEvent"in window||delete Yi.transitionend.transition);function ui(t){if(nc[t])return nc[t];if(!Yi[t])return t;var i=Yi[t],l;for(l in i)if(i.hasOwnProperty(l)&&l in lm)return nc[t]=i[l];return t}var om=ui("animationend"),sm=ui("animationiteration"),um=ui("animationstart"),GE=ui("transitionrun"),qE=ui("transitionstart"),$E=ui("transitioncancel"),cm=ui("transitionend"),fm=new Map,rc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");rc.push("scrollEnd");function jn(t,i){fm.set(t,i),li(i,[t])}var xo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Sn=[],Xi=0,ic=0;function Eo(){for(var t=Xi,i=ic=Xi=0;i<t;){var l=Sn[i];Sn[i++]=null;var u=Sn[i];Sn[i++]=null;var p=Sn[i];Sn[i++]=null;var m=Sn[i];if(Sn[i++]=null,u!==null&&p!==null){var v=u.pending;v===null?p.next=p:(p.next=v.next,v.next=p),u.pending=p}m!==0&&dm(l,p,m)}}function So(t,i,l,u){Sn[Xi++]=t,Sn[Xi++]=i,Sn[Xi++]=l,Sn[Xi++]=u,ic|=u,t.lanes|=u,t=t.alternate,t!==null&&(t.lanes|=u)}function ac(t,i,l,u){return So(t,i,l,u),wo(t)}function ci(t,i){return So(t,null,null,i),wo(t)}function dm(t,i,l){t.lanes|=l;var u=t.alternate;u!==null&&(u.lanes|=l);for(var p=!1,m=t.return;m!==null;)m.childLanes|=l,u=m.alternate,u!==null&&(u.childLanes|=l),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(p=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,p&&i!==null&&(p=31-rt(l),t=m.hiddenUpdates,u=t[p],u===null?t[p]=[i]:u.push(i),i.lane=l|536870912),m):null}function wo(t){if(50<yl)throw yl=0,mf=null,Error(a(185));for(var i=t.return;i!==null;)t=i,i=t.return;return t.tag===3?t.stateNode:null}var Qi={};function FE(t,i,l,u){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dn(t,i,l,u){return new FE(t,i,l,u)}function lc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function nr(t,i){var l=t.alternate;return l===null?(l=dn(t.tag,i,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=i,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,i=t.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function hm(t,i){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=i,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,i=l.dependencies,t.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),t}function ko(t,i,l,u,p,m){var v=0;if(u=t,typeof t=="function")lc(t)&&(v=1);else if(typeof t=="string")v=KS(t,l,re.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case F:return t=dn(31,l,i,p),t.elementType=F,t.lanes=m,t;case C:return fi(l.children,p,m,i);case R:v=8,p|=24;break;case w:return t=dn(12,l,i,p|2),t.elementType=w,t.lanes=m,t;case Q:return t=dn(13,l,i,p),t.elementType=Q,t.lanes=m,t;case D:return t=dn(19,l,i,p),t.elementType=D,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case N:v=10;break e;case T:v=9;break e;case Z:v=11;break e;case P:v=14;break e;case q:v=16,u=null;break e}v=29,l=Error(a(130,t===null?"null":typeof t,"")),u=null}return i=dn(v,l,i,p),i.elementType=t,i.type=u,i.lanes=m,i}function fi(t,i,l,u){return t=dn(7,t,u,i),t.lanes=l,t}function oc(t,i,l){return t=dn(6,t,null,i),t.lanes=l,t}function pm(t){var i=dn(18,null,null,0);return i.stateNode=t,i}function sc(t,i,l){return i=dn(4,t.children!==null?t.children:[],t.key,i),i.lanes=l,i.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},i}var mm=new WeakMap;function wn(t,i){if(typeof t=="object"&&t!==null){var l=mm.get(t);return l!==void 0?l:(i={value:t,source:i,stack:Qe(i)},mm.set(t,i),i)}return{value:t,source:i,stack:Qe(i)}}var Zi=[],Ki=0,Ao=null,Za=0,kn=[],An=0,Cr=null,Gn=1,qn="";function rr(t,i){Zi[Ki++]=Za,Zi[Ki++]=Ao,Ao=t,Za=i}function gm(t,i,l){kn[An++]=Gn,kn[An++]=qn,kn[An++]=Cr,Cr=t;var u=Gn;t=qn;var p=32-rt(u)-1;u&=~(1<<p),l+=1;var m=32-rt(i)+p;if(30<m){var v=p-p%5;m=(u&(1<<v)-1).toString(32),u>>=v,p-=v,Gn=1<<32-rt(i)+p|l<<p|u,qn=m+t}else Gn=1<<m|l<<p|u,qn=t}function uc(t){t.return!==null&&(rr(t,1),gm(t,1,0))}function cc(t){for(;t===Ao;)Ao=Zi[--Ki],Zi[Ki]=null,Za=Zi[--Ki],Zi[Ki]=null;for(;t===Cr;)Cr=kn[--An],kn[An]=null,qn=kn[--An],kn[An]=null,Gn=kn[--An],kn[An]=null}function ym(t,i){kn[An++]=Gn,kn[An++]=qn,kn[An++]=Cr,Gn=i.id,qn=i.overflow,Cr=t}var Ut=null,st=null,Ue=!1,Tr=null,Cn=!1,fc=Error(a(519));function Rr(t){var i=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ka(wn(i,t)),fc}function _m(t){var i=t.stateNode,l=t.type,u=t.memoizedProps;switch(i[Bt]=t,i[tn]=u,l){case"dialog":Ne("cancel",i),Ne("close",i);break;case"iframe":case"object":case"embed":Ne("load",i);break;case"video":case"audio":for(l=0;l<bl.length;l++)Ne(bl[l],i);break;case"source":Ne("error",i);break;case"img":case"image":case"link":Ne("error",i),Ne("load",i);break;case"details":Ne("toggle",i);break;case"input":Ne("invalid",i),Lp(i,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Ne("invalid",i);break;case"textarea":Ne("invalid",i),Np(i,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||i.textContent===""+l||u.suppressHydrationWarning===!0||zy(i.textContent,l)?(u.popover!=null&&(Ne("beforetoggle",i),Ne("toggle",i)),u.onScroll!=null&&Ne("scroll",i),u.onScrollEnd!=null&&Ne("scrollend",i),u.onClick!=null&&(i.onclick=er),i=!0):i=!1,i||Rr(t,!0)}function bm(t){for(Ut=t.return;Ut;)switch(Ut.tag){case 5:case 31:case 13:Cn=!1;return;case 27:case 3:Cn=!0;return;default:Ut=Ut.return}}function Ji(t){if(t!==Ut)return!1;if(!Ue)return bm(t),Ue=!0,!1;var i=t.tag,l;if((l=i!==3&&i!==27)&&((l=i===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Of(t.type,t.memoizedProps)),l=!l),l&&st&&Rr(t),bm(t),i===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));st=qy(t)}else if(i===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));st=qy(t)}else i===27?(i=st,Gr(t.type)?(t=zf,zf=null,st=t):st=i):st=Ut?Rn(t.stateNode.nextSibling):null;return!0}function di(){st=Ut=null,Ue=!1}function dc(){var t=Tr;return t!==null&&(on===null?on=t:on.push.apply(on,t),Tr=null),t}function Ka(t){Tr===null?Tr=[t]:Tr.push(t)}var hc=M(null),hi=null,ir=null;function Or(t,i,l){S(hc,i._currentValue),i._currentValue=l}function ar(t){t._currentValue=hc.current,I(hc)}function pc(t,i,l){for(;t!==null;){var u=t.alternate;if((t.childLanes&i)!==i?(t.childLanes|=i,u!==null&&(u.childLanes|=i)):u!==null&&(u.childLanes&i)!==i&&(u.childLanes|=i),t===l)break;t=t.return}}function mc(t,i,l,u){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var m=p.dependencies;if(m!==null){var v=p.child;m=m.firstContext;e:for(;m!==null;){var E=m;m=p;for(var L=0;L<i.length;L++)if(E.context===i[L]){m.lanes|=l,E=m.alternate,E!==null&&(E.lanes|=l),pc(m.return,l,t),u||(v=null);break e}m=E.next}}else if(p.tag===18){if(v=p.return,v===null)throw Error(a(341));v.lanes|=l,m=v.alternate,m!==null&&(m.lanes|=l),pc(v,l,t),v=null}else v=p.child;if(v!==null)v.return=p;else for(v=p;v!==null;){if(v===t){v=null;break}if(p=v.sibling,p!==null){p.return=v.return,v=p;break}v=v.return}p=v}}function Wi(t,i,l,u){t=null;for(var p=i,m=!1;p!==null;){if(!m){if((p.flags&524288)!==0)m=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var v=p.alternate;if(v===null)throw Error(a(387));if(v=v.memoizedProps,v!==null){var E=p.type;fn(p.pendingProps.value,v.value)||(t!==null?t.push(E):t=[E])}}else if(p===fe.current){if(v=p.alternate,v===null)throw Error(a(387));v.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(wl):t=[wl])}p=p.return}t!==null&&mc(i,t,l,u),i.flags|=262144}function Co(t){for(t=t.firstContext;t!==null;){if(!fn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function pi(t){hi=t,ir=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Vt(t){return vm(hi,t)}function To(t,i){return hi===null&&pi(t),vm(t,i)}function vm(t,i){var l=i._currentValue;if(i={context:i,memoizedValue:l,next:null},ir===null){if(t===null)throw Error(a(308));ir=i,t.dependencies={lanes:0,firstContext:i},t.flags|=524288}else ir=ir.next=i;return l}var YE=typeof AbortController<"u"?AbortController:function(){var t=[],i=this.signal={aborted:!1,addEventListener:function(l,u){t.push(u)}};this.abort=function(){i.aborted=!0,t.forEach(function(l){return l()})}},XE=e.unstable_scheduleCallback,QE=e.unstable_NormalPriority,vt={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function gc(){return{controller:new YE,data:new Map,refCount:0}}function Ja(t){t.refCount--,t.refCount===0&&XE(QE,function(){t.controller.abort()})}var Wa=null,yc=0,ea=0,ta=null;function ZE(t,i){if(Wa===null){var l=Wa=[];yc=0,ea=xf(),ta={status:"pending",value:void 0,then:function(u){l.push(u)}}}return yc++,i.then(xm,xm),i}function xm(){if(--yc===0&&Wa!==null){ta!==null&&(ta.status="fulfilled");var t=Wa;Wa=null,ea=0,ta=null;for(var i=0;i<t.length;i++)(0,t[i])()}}function KE(t,i){var l=[],u={status:"pending",value:null,reason:null,then:function(p){l.push(p)}};return t.then(function(){u.status="fulfilled",u.value=i;for(var p=0;p<l.length;p++)(0,l[p])(i)},function(p){for(u.status="rejected",u.reason=p,p=0;p<l.length;p++)(0,l[p])(void 0)}),u}var Em=B.S;B.S=function(t,i){ay=nt(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&ZE(t,i),Em!==null&&Em(t,i)};var mi=M(null);function _c(){var t=mi.current;return t!==null?t:it.pooledCache}function Ro(t,i){i===null?S(mi,mi.current):S(mi,i.pool)}function Sm(){var t=_c();return t===null?null:{parent:vt._currentValue,pool:t}}var na=Error(a(460)),bc=Error(a(474)),Oo=Error(a(542)),Lo={then:function(){}};function wm(t){return t=t.status,t==="fulfilled"||t==="rejected"}function km(t,i,l){switch(l=t[l],l===void 0?t.push(i):l!==i&&(i.then(er,er),i=l),i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,Cm(t),t;default:if(typeof i.status=="string")i.then(er,er);else{if(t=it,t!==null&&100<t.shellSuspendCounter)throw Error(a(482));t=i,t.status="pending",t.then(function(u){if(i.status==="pending"){var p=i;p.status="fulfilled",p.value=u}},function(u){if(i.status==="pending"){var p=i;p.status="rejected",p.reason=u}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,Cm(t),t}throw yi=i,na}}function gi(t){try{var i=t._init;return i(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(yi=l,na):l}}var yi=null;function Am(){if(yi===null)throw Error(a(459));var t=yi;return yi=null,t}function Cm(t){if(t===na||t===Oo)throw Error(a(483))}var ra=null,el=0;function Do(t){var i=el;return el+=1,ra===null&&(ra=[]),km(ra,t,i)}function tl(t,i){i=i.props.ref,t.ref=i!==void 0?i:null}function No(t,i){throw i.$$typeof===b?Error(a(525)):(t=Object.prototype.toString.call(i),Error(a(31,t==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":t)))}function Tm(t){function i(U,z){if(t){var H=U.deletions;H===null?(U.deletions=[z],U.flags|=16):H.push(z)}}function l(U,z){if(!t)return null;for(;z!==null;)i(U,z),z=z.sibling;return null}function u(U){for(var z=new Map;U!==null;)U.key!==null?z.set(U.key,U):z.set(U.index,U),U=U.sibling;return z}function p(U,z){return U=nr(U,z),U.index=0,U.sibling=null,U}function m(U,z,H){return U.index=H,t?(H=U.alternate,H!==null?(H=H.index,H<z?(U.flags|=67108866,z):H):(U.flags|=67108866,z)):(U.flags|=1048576,z)}function v(U){return t&&U.alternate===null&&(U.flags|=67108866),U}function E(U,z,H,ee){return z===null||z.tag!==6?(z=oc(H,U.mode,ee),z.return=U,z):(z=p(z,H),z.return=U,z)}function L(U,z,H,ee){var be=H.type;return be===C?J(U,z,H.props.children,ee,H.key):z!==null&&(z.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===q&&gi(be)===z.type)?(z=p(z,H.props),tl(z,H),z.return=U,z):(z=ko(H.type,H.key,H.props,null,U.mode,ee),tl(z,H),z.return=U,z)}function G(U,z,H,ee){return z===null||z.tag!==4||z.stateNode.containerInfo!==H.containerInfo||z.stateNode.implementation!==H.implementation?(z=sc(H,U.mode,ee),z.return=U,z):(z=p(z,H.children||[]),z.return=U,z)}function J(U,z,H,ee,be){return z===null||z.tag!==7?(z=fi(H,U.mode,ee,be),z.return=U,z):(z=p(z,H),z.return=U,z)}function te(U,z,H){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=oc(""+z,U.mode,H),z.return=U,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case _:return H=ko(z.type,z.key,z.props,null,U.mode,H),tl(H,z),H.return=U,H;case x:return z=sc(z,U.mode,H),z.return=U,z;case q:return z=gi(z),te(U,z,H)}if(ie(z)||W(z))return z=fi(z,U.mode,H,null),z.return=U,z;if(typeof z.then=="function")return te(U,Do(z),H);if(z.$$typeof===N)return te(U,To(U,z),H);No(U,z)}return null}function $(U,z,H,ee){var be=z!==null?z.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return be!==null?null:E(U,z,""+H,ee);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case _:return H.key===be?L(U,z,H,ee):null;case x:return H.key===be?G(U,z,H,ee):null;case q:return H=gi(H),$(U,z,H,ee)}if(ie(H)||W(H))return be!==null?null:J(U,z,H,ee,null);if(typeof H.then=="function")return $(U,z,Do(H),ee);if(H.$$typeof===N)return $(U,z,To(U,H),ee);No(U,H)}return null}function X(U,z,H,ee,be){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return U=U.get(H)||null,E(z,U,""+ee,be);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case _:return U=U.get(ee.key===null?H:ee.key)||null,L(z,U,ee,be);case x:return U=U.get(ee.key===null?H:ee.key)||null,G(z,U,ee,be);case q:return ee=gi(ee),X(U,z,H,ee,be)}if(ie(ee)||W(ee))return U=U.get(H)||null,J(z,U,ee,be,null);if(typeof ee.then=="function")return X(U,z,H,Do(ee),be);if(ee.$$typeof===N)return X(U,z,H,To(z,ee),be);No(z,ee)}return null}function he(U,z,H,ee){for(var be=null,$e=null,ye=z,Te=z=0,Ie=null;ye!==null&&Te<H.length;Te++){ye.index>Te?(Ie=ye,ye=null):Ie=ye.sibling;var Fe=$(U,ye,H[Te],ee);if(Fe===null){ye===null&&(ye=Ie);break}t&&ye&&Fe.alternate===null&&i(U,ye),z=m(Fe,z,Te),$e===null?be=Fe:$e.sibling=Fe,$e=Fe,ye=Ie}if(Te===H.length)return l(U,ye),Ue&&rr(U,Te),be;if(ye===null){for(;Te<H.length;Te++)ye=te(U,H[Te],ee),ye!==null&&(z=m(ye,z,Te),$e===null?be=ye:$e.sibling=ye,$e=ye);return Ue&&rr(U,Te),be}for(ye=u(ye);Te<H.length;Te++)Ie=X(ye,U,Te,H[Te],ee),Ie!==null&&(t&&Ie.alternate!==null&&ye.delete(Ie.key===null?Te:Ie.key),z=m(Ie,z,Te),$e===null?be=Ie:$e.sibling=Ie,$e=Ie);return t&&ye.forEach(function(Xr){return i(U,Xr)}),Ue&&rr(U,Te),be}function Se(U,z,H,ee){if(H==null)throw Error(a(151));for(var be=null,$e=null,ye=z,Te=z=0,Ie=null,Fe=H.next();ye!==null&&!Fe.done;Te++,Fe=H.next()){ye.index>Te?(Ie=ye,ye=null):Ie=ye.sibling;var Xr=$(U,ye,Fe.value,ee);if(Xr===null){ye===null&&(ye=Ie);break}t&&ye&&Xr.alternate===null&&i(U,ye),z=m(Xr,z,Te),$e===null?be=Xr:$e.sibling=Xr,$e=Xr,ye=Ie}if(Fe.done)return l(U,ye),Ue&&rr(U,Te),be;if(ye===null){for(;!Fe.done;Te++,Fe=H.next())Fe=te(U,Fe.value,ee),Fe!==null&&(z=m(Fe,z,Te),$e===null?be=Fe:$e.sibling=Fe,$e=Fe);return Ue&&rr(U,Te),be}for(ye=u(ye);!Fe.done;Te++,Fe=H.next())Fe=X(ye,U,Te,Fe.value,ee),Fe!==null&&(t&&Fe.alternate!==null&&ye.delete(Fe.key===null?Te:Fe.key),z=m(Fe,z,Te),$e===null?be=Fe:$e.sibling=Fe,$e=Fe);return t&&ye.forEach(function(sw){return i(U,sw)}),Ue&&rr(U,Te),be}function tt(U,z,H,ee){if(typeof H=="object"&&H!==null&&H.type===C&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case _:e:{for(var be=H.key;z!==null;){if(z.key===be){if(be=H.type,be===C){if(z.tag===7){l(U,z.sibling),ee=p(z,H.props.children),ee.return=U,U=ee;break e}}else if(z.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===q&&gi(be)===z.type){l(U,z.sibling),ee=p(z,H.props),tl(ee,H),ee.return=U,U=ee;break e}l(U,z);break}else i(U,z);z=z.sibling}H.type===C?(ee=fi(H.props.children,U.mode,ee,H.key),ee.return=U,U=ee):(ee=ko(H.type,H.key,H.props,null,U.mode,ee),tl(ee,H),ee.return=U,U=ee)}return v(U);case x:e:{for(be=H.key;z!==null;){if(z.key===be)if(z.tag===4&&z.stateNode.containerInfo===H.containerInfo&&z.stateNode.implementation===H.implementation){l(U,z.sibling),ee=p(z,H.children||[]),ee.return=U,U=ee;break e}else{l(U,z);break}else i(U,z);z=z.sibling}ee=sc(H,U.mode,ee),ee.return=U,U=ee}return v(U);case q:return H=gi(H),tt(U,z,H,ee)}if(ie(H))return he(U,z,H,ee);if(W(H)){if(be=W(H),typeof be!="function")throw Error(a(150));return H=be.call(H),Se(U,z,H,ee)}if(typeof H.then=="function")return tt(U,z,Do(H),ee);if(H.$$typeof===N)return tt(U,z,To(U,H),ee);No(U,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,z!==null&&z.tag===6?(l(U,z.sibling),ee=p(z,H),ee.return=U,U=ee):(l(U,z),ee=oc(H,U.mode,ee),ee.return=U,U=ee),v(U)):l(U,z)}return function(U,z,H,ee){try{el=0;var be=tt(U,z,H,ee);return ra=null,be}catch(ye){if(ye===na||ye===Oo)throw ye;var $e=dn(29,ye,null,U.mode);return $e.lanes=ee,$e.return=U,$e}}}var _i=Tm(!0),Rm=Tm(!1),Lr=!1;function vc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xc(t,i){t=t.updateQueue,i.updateQueue===t&&(i.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Dr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Nr(t,i,l){var u=t.updateQueue;if(u===null)return null;if(u=u.shared,(Xe&2)!==0){var p=u.pending;return p===null?i.next=i:(i.next=p.next,p.next=i),u.pending=i,i=wo(t),dm(t,null,l),i}return So(t,u,i,l),wo(t)}function nl(t,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194048)!==0)){var u=i.lanes;u&=t.pendingLanes,l|=u,i.lanes=l,vp(t,l)}}function Ec(t,i){var l=t.updateQueue,u=t.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var p=null,m=null;if(l=l.firstBaseUpdate,l!==null){do{var v={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};m===null?p=m=v:m=m.next=v,l=l.next}while(l!==null);m===null?p=m=i:m=m.next=i}else p=m=i;l={baseState:u.baseState,firstBaseUpdate:p,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=i:t.next=i,l.lastBaseUpdate=i}var Sc=!1;function rl(){if(Sc){var t=ta;if(t!==null)throw t}}function il(t,i,l,u){Sc=!1;var p=t.updateQueue;Lr=!1;var m=p.firstBaseUpdate,v=p.lastBaseUpdate,E=p.shared.pending;if(E!==null){p.shared.pending=null;var L=E,G=L.next;L.next=null,v===null?m=G:v.next=G,v=L;var J=t.alternate;J!==null&&(J=J.updateQueue,E=J.lastBaseUpdate,E!==v&&(E===null?J.firstBaseUpdate=G:E.next=G,J.lastBaseUpdate=L))}if(m!==null){var te=p.baseState;v=0,J=G=L=null,E=m;do{var $=E.lane&-536870913,X=$!==E.lane;if(X?(ze&$)===$:(u&$)===$){$!==0&&$===ea&&(Sc=!0),J!==null&&(J=J.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var he=t,Se=E;$=i;var tt=l;switch(Se.tag){case 1:if(he=Se.payload,typeof he=="function"){te=he.call(tt,te,$);break e}te=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=Se.payload,$=typeof he=="function"?he.call(tt,te,$):he,$==null)break e;te=g({},te,$);break e;case 2:Lr=!0}}$=E.callback,$!==null&&(t.flags|=64,X&&(t.flags|=8192),X=p.callbacks,X===null?p.callbacks=[$]:X.push($))}else X={lane:$,tag:E.tag,payload:E.payload,callback:E.callback,next:null},J===null?(G=J=X,L=te):J=J.next=X,v|=$;if(E=E.next,E===null){if(E=p.shared.pending,E===null)break;X=E,E=X.next,X.next=null,p.lastBaseUpdate=X,p.shared.pending=null}}while(!0);J===null&&(L=te),p.baseState=L,p.firstBaseUpdate=G,p.lastBaseUpdate=J,m===null&&(p.shared.lanes=0),Br|=v,t.lanes=v,t.memoizedState=te}}function Om(t,i){if(typeof t!="function")throw Error(a(191,t));t.call(i)}function Lm(t,i){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Om(l[t],i)}var ia=M(null),Mo=M(0);function Dm(t,i){t=pr,S(Mo,t),S(ia,i),pr=t|i.baseLanes}function wc(){S(Mo,pr),S(ia,ia.current)}function kc(){pr=Mo.current,I(ia),I(Mo)}var hn=M(null),Tn=null;function Mr(t){var i=t.alternate;S(yt,yt.current&1),S(hn,t),Tn===null&&(i===null||ia.current!==null||i.memoizedState!==null)&&(Tn=t)}function Ac(t){S(yt,yt.current),S(hn,t),Tn===null&&(Tn=t)}function Nm(t){t.tag===22?(S(yt,yt.current),S(hn,t),Tn===null&&(Tn=t)):zr()}function zr(){S(yt,yt.current),S(hn,hn.current)}function pn(t){I(hn),Tn===t&&(Tn=null),I(yt)}var yt=M(0);function zo(t){for(var i=t;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Nf(l)||Mf(l)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var lr=0,Ce=null,We=null,xt=null,Io=!1,aa=!1,bi=!1,jo=0,al=0,la=null,JE=0;function mt(){throw Error(a(321))}function Cc(t,i){if(i===null)return!1;for(var l=0;l<i.length&&l<t.length;l++)if(!fn(t[l],i[l]))return!1;return!0}function Tc(t,i,l,u,p,m){return lr=m,Ce=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,B.H=t===null||t.memoizedState===null?gg:Gc,bi=!1,m=l(u,p),bi=!1,aa&&(m=zm(i,l,u,p)),Mm(t),m}function Mm(t){B.H=sl;var i=We!==null&&We.next!==null;if(lr=0,xt=We=Ce=null,Io=!1,al=0,la=null,i)throw Error(a(300));t===null||Et||(t=t.dependencies,t!==null&&Co(t)&&(Et=!0))}function zm(t,i,l,u){Ce=t;var p=0;do{if(aa&&(la=null),al=0,aa=!1,25<=p)throw Error(a(301));if(p+=1,xt=We=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}B.H=yg,m=i(l,u)}while(aa);return m}function WE(){var t=B.H,i=t.useState()[0];return i=typeof i.then=="function"?ll(i):i,t=t.useState()[0],(We!==null?We.memoizedState:null)!==t&&(Ce.flags|=1024),i}function Rc(){var t=jo!==0;return jo=0,t}function Oc(t,i,l){i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~l}function Lc(t){if(Io){for(t=t.memoizedState;t!==null;){var i=t.queue;i!==null&&(i.pending=null),t=t.next}Io=!1}lr=0,xt=We=Ce=null,aa=!1,al=jo=0,la=null}function Kt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xt===null?Ce.memoizedState=xt=t:xt=xt.next=t,xt}function _t(){if(We===null){var t=Ce.alternate;t=t!==null?t.memoizedState:null}else t=We.next;var i=xt===null?Ce.memoizedState:xt.next;if(i!==null)xt=i,We=t;else{if(t===null)throw Ce.alternate===null?Error(a(467)):Error(a(310));We=t,t={memoizedState:We.memoizedState,baseState:We.baseState,baseQueue:We.baseQueue,queue:We.queue,next:null},xt===null?Ce.memoizedState=xt=t:xt=xt.next=t}return xt}function Bo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ll(t){var i=al;return al+=1,la===null&&(la=[]),t=km(la,t,i),i=Ce,(xt===null?i.memoizedState:xt.next)===null&&(i=i.alternate,B.H=i===null||i.memoizedState===null?gg:Gc),t}function Uo(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ll(t);if(t.$$typeof===N)return Vt(t)}throw Error(a(438,String(t)))}function Dc(t){var i=null,l=Ce.updateQueue;if(l!==null&&(i=l.memoCache),i==null){var u=Ce.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(i={data:u.data.map(function(p){return p.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),l===null&&(l=Bo(),Ce.updateQueue=l),l.memoCache=i,l=i.data[i.index],l===void 0)for(l=i.data[i.index]=Array(t),u=0;u<t;u++)l[u]=j;return i.index++,l}function or(t,i){return typeof i=="function"?i(t):i}function Vo(t){var i=_t();return Nc(i,We,t)}function Nc(t,i,l){var u=t.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=l;var p=t.baseQueue,m=u.pending;if(m!==null){if(p!==null){var v=p.next;p.next=m.next,m.next=v}i.baseQueue=p=m,u.pending=null}if(m=t.baseState,p===null)t.memoizedState=m;else{i=p.next;var E=v=null,L=null,G=i,J=!1;do{var te=G.lane&-536870913;if(te!==G.lane?(ze&te)===te:(lr&te)===te){var $=G.revertLane;if($===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),te===ea&&(J=!0);else if((lr&$)===$){G=G.next,$===ea&&(J=!0);continue}else te={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},L===null?(E=L=te,v=m):L=L.next=te,Ce.lanes|=$,Br|=$;te=G.action,bi&&l(m,te),m=G.hasEagerState?G.eagerState:l(m,te)}else $={lane:te,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},L===null?(E=L=$,v=m):L=L.next=$,Ce.lanes|=te,Br|=te;G=G.next}while(G!==null&&G!==i);if(L===null?v=m:L.next=E,!fn(m,t.memoizedState)&&(Et=!0,J&&(l=ta,l!==null)))throw l;t.memoizedState=m,t.baseState=v,t.baseQueue=L,u.lastRenderedState=m}return p===null&&(u.lanes=0),[t.memoizedState,u.dispatch]}function Mc(t){var i=_t(),l=i.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=t;var u=l.dispatch,p=l.pending,m=i.memoizedState;if(p!==null){l.pending=null;var v=p=p.next;do m=t(m,v.action),v=v.next;while(v!==p);fn(m,i.memoizedState)||(Et=!0),i.memoizedState=m,i.baseQueue===null&&(i.baseState=m),l.lastRenderedState=m}return[m,u]}function Im(t,i,l){var u=Ce,p=_t(),m=Ue;if(m){if(l===void 0)throw Error(a(407));l=l()}else l=i();var v=!fn((We||p).memoizedState,l);if(v&&(p.memoizedState=l,Et=!0),p=p.queue,jc(Um.bind(null,u,p,t),[t]),p.getSnapshot!==i||v||xt!==null&&xt.memoizedState.tag&1){if(u.flags|=2048,oa(9,{destroy:void 0},Bm.bind(null,u,p,l,i),null),it===null)throw Error(a(349));m||(lr&127)!==0||jm(u,i,l)}return l}function jm(t,i,l){t.flags|=16384,t={getSnapshot:i,value:l},i=Ce.updateQueue,i===null?(i=Bo(),Ce.updateQueue=i,i.stores=[t]):(l=i.stores,l===null?i.stores=[t]:l.push(t))}function Bm(t,i,l,u){i.value=l,i.getSnapshot=u,Vm(i)&&Pm(t)}function Um(t,i,l){return l(function(){Vm(i)&&Pm(t)})}function Vm(t){var i=t.getSnapshot;t=t.value;try{var l=i();return!fn(t,l)}catch{return!0}}function Pm(t){var i=ci(t,2);i!==null&&sn(i,t,2)}function zc(t){var i=Kt();if(typeof t=="function"){var l=t;if(t=l(),bi){en(!0);try{l()}finally{en(!1)}}}return i.memoizedState=i.baseState=t,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:or,lastRenderedState:t},i}function Hm(t,i,l,u){return t.baseState=l,Nc(t,We,typeof u=="function"?u:or)}function eS(t,i,l,u,p){if(Go(t))throw Error(a(485));if(t=i.action,t!==null){var m={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){m.listeners.push(v)}};B.T!==null?l(!0):m.isTransition=!1,u(m),l=i.pending,l===null?(m.next=i.pending=m,Gm(i,m)):(m.next=l.next,i.pending=l.next=m)}}function Gm(t,i){var l=i.action,u=i.payload,p=t.state;if(i.isTransition){var m=B.T,v={};B.T=v;try{var E=l(p,u),L=B.S;L!==null&&L(v,E),qm(t,i,E)}catch(G){Ic(t,i,G)}finally{m!==null&&v.types!==null&&(m.types=v.types),B.T=m}}else try{m=l(p,u),qm(t,i,m)}catch(G){Ic(t,i,G)}}function qm(t,i,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){$m(t,i,u)},function(u){return Ic(t,i,u)}):$m(t,i,l)}function $m(t,i,l){i.status="fulfilled",i.value=l,Fm(i),t.state=l,i=t.pending,i!==null&&(l=i.next,l===i?t.pending=null:(l=l.next,i.next=l,Gm(t,l)))}function Ic(t,i,l){var u=t.pending;if(t.pending=null,u!==null){u=u.next;do i.status="rejected",i.reason=l,Fm(i),i=i.next;while(i!==u)}t.action=null}function Fm(t){t=t.listeners;for(var i=0;i<t.length;i++)(0,t[i])()}function Ym(t,i){return i}function Xm(t,i){if(Ue){var l=it.formState;if(l!==null){e:{var u=Ce;if(Ue){if(st){t:{for(var p=st,m=Cn;p.nodeType!==8;){if(!m){p=null;break t}if(p=Rn(p.nextSibling),p===null){p=null;break t}}m=p.data,p=m==="F!"||m==="F"?p:null}if(p){st=Rn(p.nextSibling),u=p.data==="F!";break e}}Rr(u)}u=!1}u&&(i=l[0])}}return l=Kt(),l.memoizedState=l.baseState=i,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ym,lastRenderedState:i},l.queue=u,l=hg.bind(null,Ce,u),u.dispatch=l,u=zc(!1),m=Hc.bind(null,Ce,!1,u.queue),u=Kt(),p={state:i,dispatch:null,action:t,pending:null},u.queue=p,l=eS.bind(null,Ce,p,m,l),p.dispatch=l,u.memoizedState=t,[i,l,!1]}function Qm(t){var i=_t();return Zm(i,We,t)}function Zm(t,i,l){if(i=Nc(t,i,Ym)[0],t=Vo(or)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var u=ll(i)}catch(v){throw v===na?Oo:v}else u=i;i=_t();var p=i.queue,m=p.dispatch;return l!==i.memoizedState&&(Ce.flags|=2048,oa(9,{destroy:void 0},tS.bind(null,p,l),null)),[u,m,t]}function tS(t,i){t.action=i}function Km(t){var i=_t(),l=We;if(l!==null)return Zm(i,l,t);_t(),i=i.memoizedState,l=_t();var u=l.queue.dispatch;return l.memoizedState=t,[i,u,!1]}function oa(t,i,l,u){return t={tag:t,create:l,deps:u,inst:i,next:null},i=Ce.updateQueue,i===null&&(i=Bo(),Ce.updateQueue=i),l=i.lastEffect,l===null?i.lastEffect=t.next=t:(u=l.next,l.next=t,t.next=u,i.lastEffect=t),t}function Jm(){return _t().memoizedState}function Po(t,i,l,u){var p=Kt();Ce.flags|=t,p.memoizedState=oa(1|i,{destroy:void 0},l,u===void 0?null:u)}function Ho(t,i,l,u){var p=_t();u=u===void 0?null:u;var m=p.memoizedState.inst;We!==null&&u!==null&&Cc(u,We.memoizedState.deps)?p.memoizedState=oa(i,m,l,u):(Ce.flags|=t,p.memoizedState=oa(1|i,m,l,u))}function Wm(t,i){Po(8390656,8,t,i)}function jc(t,i){Ho(2048,8,t,i)}function nS(t){Ce.flags|=4;var i=Ce.updateQueue;if(i===null)i=Bo(),Ce.updateQueue=i,i.events=[t];else{var l=i.events;l===null?i.events=[t]:l.push(t)}}function eg(t){var i=_t().memoizedState;return nS({ref:i,nextImpl:t}),function(){if((Xe&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}function tg(t,i){return Ho(4,2,t,i)}function ng(t,i){return Ho(4,4,t,i)}function rg(t,i){if(typeof i=="function"){t=t();var l=i(t);return function(){typeof l=="function"?l():i(null)}}if(i!=null)return t=t(),i.current=t,function(){i.current=null}}function ig(t,i,l){l=l!=null?l.concat([t]):null,Ho(4,4,rg.bind(null,i,t),l)}function Bc(){}function ag(t,i){var l=_t();i=i===void 0?null:i;var u=l.memoizedState;return i!==null&&Cc(i,u[1])?u[0]:(l.memoizedState=[t,i],t)}function lg(t,i){var l=_t();i=i===void 0?null:i;var u=l.memoizedState;if(i!==null&&Cc(i,u[1]))return u[0];if(u=t(),bi){en(!0);try{t()}finally{en(!1)}}return l.memoizedState=[u,i],u}function Uc(t,i,l){return l===void 0||(lr&1073741824)!==0&&(ze&261930)===0?t.memoizedState=i:(t.memoizedState=l,t=oy(),Ce.lanes|=t,Br|=t,l)}function og(t,i,l,u){return fn(l,i)?l:ia.current!==null?(t=Uc(t,l,u),fn(t,i)||(Et=!0),t):(lr&42)===0||(lr&1073741824)!==0&&(ze&261930)===0?(Et=!0,t.memoizedState=l):(t=oy(),Ce.lanes|=t,Br|=t,i)}function sg(t,i,l,u,p){var m=ne.p;ne.p=m!==0&&8>m?m:8;var v=B.T,E={};B.T=E,Hc(t,!1,i,l);try{var L=p(),G=B.S;if(G!==null&&G(E,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var J=KE(L,u);ol(t,i,J,yn(t))}else ol(t,i,u,yn(t))}catch(te){ol(t,i,{then:function(){},status:"rejected",reason:te},yn())}finally{ne.p=m,v!==null&&E.types!==null&&(v.types=E.types),B.T=v}}function rS(){}function Vc(t,i,l,u){if(t.tag!==5)throw Error(a(476));var p=ug(t).queue;sg(t,p,i,de,l===null?rS:function(){return cg(t),l(u)})}function ug(t){var i=t.memoizedState;if(i!==null)return i;i={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:or,lastRenderedState:de},next:null};var l={};return i.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:or,lastRenderedState:l},next:null},t.memoizedState=i,t=t.alternate,t!==null&&(t.memoizedState=i),i}function cg(t){var i=ug(t);i.next===null&&(i=t.alternate.memoizedState),ol(t,i.next.queue,{},yn())}function Pc(){return Vt(wl)}function fg(){return _t().memoizedState}function dg(){return _t().memoizedState}function iS(t){for(var i=t.return;i!==null;){switch(i.tag){case 24:case 3:var l=yn();t=Dr(l);var u=Nr(i,t,l);u!==null&&(sn(u,i,l),nl(u,i,l)),i={cache:gc()},t.payload=i;return}i=i.return}}function aS(t,i,l){var u=yn();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Go(t)?pg(i,l):(l=ac(t,i,l,u),l!==null&&(sn(l,t,u),mg(l,i,u)))}function hg(t,i,l){var u=yn();ol(t,i,l,u)}function ol(t,i,l,u){var p={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Go(t))pg(i,p);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=i.lastRenderedReducer,m!==null))try{var v=i.lastRenderedState,E=m(v,l);if(p.hasEagerState=!0,p.eagerState=E,fn(E,v))return So(t,i,p,0),it===null&&Eo(),!1}catch{}if(l=ac(t,i,p,u),l!==null)return sn(l,t,u),mg(l,i,u),!0}return!1}function Hc(t,i,l,u){if(u={lane:2,revertLane:xf(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Go(t)){if(i)throw Error(a(479))}else i=ac(t,l,u,2),i!==null&&sn(i,t,2)}function Go(t){var i=t.alternate;return t===Ce||i!==null&&i===Ce}function pg(t,i){aa=Io=!0;var l=t.pending;l===null?i.next=i:(i.next=l.next,l.next=i),t.pending=i}function mg(t,i,l){if((l&4194048)!==0){var u=i.lanes;u&=t.pendingLanes,l|=u,i.lanes=l,vp(t,l)}}var sl={readContext:Vt,use:Uo,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useLayoutEffect:mt,useInsertionEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useSyncExternalStore:mt,useId:mt,useHostTransitionStatus:mt,useFormState:mt,useActionState:mt,useOptimistic:mt,useMemoCache:mt,useCacheRefresh:mt};sl.useEffectEvent=mt;var gg={readContext:Vt,use:Uo,useCallback:function(t,i){return Kt().memoizedState=[t,i===void 0?null:i],t},useContext:Vt,useEffect:Wm,useImperativeHandle:function(t,i,l){l=l!=null?l.concat([t]):null,Po(4194308,4,rg.bind(null,i,t),l)},useLayoutEffect:function(t,i){return Po(4194308,4,t,i)},useInsertionEffect:function(t,i){Po(4,2,t,i)},useMemo:function(t,i){var l=Kt();i=i===void 0?null:i;var u=t();if(bi){en(!0);try{t()}finally{en(!1)}}return l.memoizedState=[u,i],u},useReducer:function(t,i,l){var u=Kt();if(l!==void 0){var p=l(i);if(bi){en(!0);try{l(i)}finally{en(!1)}}}else p=i;return u.memoizedState=u.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},u.queue=t,t=t.dispatch=aS.bind(null,Ce,t),[u.memoizedState,t]},useRef:function(t){var i=Kt();return t={current:t},i.memoizedState=t},useState:function(t){t=zc(t);var i=t.queue,l=hg.bind(null,Ce,i);return i.dispatch=l,[t.memoizedState,l]},useDebugValue:Bc,useDeferredValue:function(t,i){var l=Kt();return Uc(l,t,i)},useTransition:function(){var t=zc(!1);return t=sg.bind(null,Ce,t.queue,!0,!1),Kt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,i,l){var u=Ce,p=Kt();if(Ue){if(l===void 0)throw Error(a(407));l=l()}else{if(l=i(),it===null)throw Error(a(349));(ze&127)!==0||jm(u,i,l)}p.memoizedState=l;var m={value:l,getSnapshot:i};return p.queue=m,Wm(Um.bind(null,u,m,t),[t]),u.flags|=2048,oa(9,{destroy:void 0},Bm.bind(null,u,m,l,i),null),l},useId:function(){var t=Kt(),i=it.identifierPrefix;if(Ue){var l=qn,u=Gn;l=(u&~(1<<32-rt(u)-1)).toString(32)+l,i="_"+i+"R_"+l,l=jo++,0<l&&(i+="H"+l.toString(32)),i+="_"}else l=JE++,i="_"+i+"r_"+l.toString(32)+"_";return t.memoizedState=i},useHostTransitionStatus:Pc,useFormState:Xm,useActionState:Xm,useOptimistic:function(t){var i=Kt();i.memoizedState=i.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=l,i=Hc.bind(null,Ce,!0,l),l.dispatch=i,[t,i]},useMemoCache:Dc,useCacheRefresh:function(){return Kt().memoizedState=iS.bind(null,Ce)},useEffectEvent:function(t){var i=Kt(),l={impl:t};return i.memoizedState=l,function(){if((Xe&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}},Gc={readContext:Vt,use:Uo,useCallback:ag,useContext:Vt,useEffect:jc,useImperativeHandle:ig,useInsertionEffect:tg,useLayoutEffect:ng,useMemo:lg,useReducer:Vo,useRef:Jm,useState:function(){return Vo(or)},useDebugValue:Bc,useDeferredValue:function(t,i){var l=_t();return og(l,We.memoizedState,t,i)},useTransition:function(){var t=Vo(or)[0],i=_t().memoizedState;return[typeof t=="boolean"?t:ll(t),i]},useSyncExternalStore:Im,useId:fg,useHostTransitionStatus:Pc,useFormState:Qm,useActionState:Qm,useOptimistic:function(t,i){var l=_t();return Hm(l,We,t,i)},useMemoCache:Dc,useCacheRefresh:dg};Gc.useEffectEvent=eg;var yg={readContext:Vt,use:Uo,useCallback:ag,useContext:Vt,useEffect:jc,useImperativeHandle:ig,useInsertionEffect:tg,useLayoutEffect:ng,useMemo:lg,useReducer:Mc,useRef:Jm,useState:function(){return Mc(or)},useDebugValue:Bc,useDeferredValue:function(t,i){var l=_t();return We===null?Uc(l,t,i):og(l,We.memoizedState,t,i)},useTransition:function(){var t=Mc(or)[0],i=_t().memoizedState;return[typeof t=="boolean"?t:ll(t),i]},useSyncExternalStore:Im,useId:fg,useHostTransitionStatus:Pc,useFormState:Km,useActionState:Km,useOptimistic:function(t,i){var l=_t();return We!==null?Hm(l,We,t,i):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Dc,useCacheRefresh:dg};yg.useEffectEvent=eg;function qc(t,i,l,u){i=t.memoizedState,l=l(u,i),l=l==null?i:g({},i,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var $c={enqueueSetState:function(t,i,l){t=t._reactInternals;var u=yn(),p=Dr(u);p.payload=i,l!=null&&(p.callback=l),i=Nr(t,p,u),i!==null&&(sn(i,t,u),nl(i,t,u))},enqueueReplaceState:function(t,i,l){t=t._reactInternals;var u=yn(),p=Dr(u);p.tag=1,p.payload=i,l!=null&&(p.callback=l),i=Nr(t,p,u),i!==null&&(sn(i,t,u),nl(i,t,u))},enqueueForceUpdate:function(t,i){t=t._reactInternals;var l=yn(),u=Dr(l);u.tag=2,i!=null&&(u.callback=i),i=Nr(t,u,l),i!==null&&(sn(i,t,l),nl(i,t,l))}};function _g(t,i,l,u,p,m,v){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(u,m,v):i.prototype&&i.prototype.isPureReactComponent?!Xa(l,u)||!Xa(p,m):!0}function bg(t,i,l,u){t=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,u),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,u),i.state!==t&&$c.enqueueReplaceState(i,i.state,null)}function vi(t,i){var l=i;if("ref"in i){l={};for(var u in i)u!=="ref"&&(l[u]=i[u])}if(t=t.defaultProps){l===i&&(l=g({},l));for(var p in t)l[p]===void 0&&(l[p]=t[p])}return l}function vg(t){xo(t)}function xg(t){console.error(t)}function Eg(t){xo(t)}function qo(t,i){try{var l=t.onUncaughtError;l(i.value,{componentStack:i.stack})}catch(u){setTimeout(function(){throw u})}}function Sg(t,i,l){try{var u=t.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Fc(t,i,l){return l=Dr(l),l.tag=3,l.payload={element:null},l.callback=function(){qo(t,i)},l}function wg(t){return t=Dr(t),t.tag=3,t}function kg(t,i,l,u){var p=l.type.getDerivedStateFromError;if(typeof p=="function"){var m=u.value;t.payload=function(){return p(m)},t.callback=function(){Sg(i,l,u)}}var v=l.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(t.callback=function(){Sg(i,l,u),typeof p!="function"&&(Ur===null?Ur=new Set([this]):Ur.add(this));var E=u.stack;this.componentDidCatch(u.value,{componentStack:E!==null?E:""})})}function lS(t,i,l,u,p){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(i=l.alternate,i!==null&&Wi(i,l,p,!0),l=hn.current,l!==null){switch(l.tag){case 31:case 13:return Tn===null?ns():l.alternate===null&>===0&&(gt=3),l.flags&=-257,l.flags|=65536,l.lanes=p,u===Lo?l.flags|=16384:(i=l.updateQueue,i===null?l.updateQueue=new Set([u]):i.add(u),_f(t,u,p)),!1;case 22:return l.flags|=65536,u===Lo?l.flags|=16384:(i=l.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=i):(l=i.retryQueue,l===null?i.retryQueue=new Set([u]):l.add(u)),_f(t,u,p)),!1}throw Error(a(435,l.tag))}return _f(t,u,p),ns(),!1}if(Ue)return i=hn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=p,u!==fc&&(t=Error(a(422),{cause:u}),Ka(wn(t,l)))):(u!==fc&&(i=Error(a(423),{cause:u}),Ka(wn(i,l))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,u=wn(u,l),p=Fc(t.stateNode,u,p),Ec(t,p),gt!==4&&(gt=2)),!1;var m=Error(a(520),{cause:u});if(m=wn(m,l),gl===null?gl=[m]:gl.push(m),gt!==4&&(gt=2),i===null)return!0;u=wn(u,l),l=i;do{switch(l.tag){case 3:return l.flags|=65536,t=p&-p,l.lanes|=t,t=Fc(l.stateNode,u,t),Ec(l,t),!1;case 1:if(i=l.type,m=l.stateNode,(l.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Ur===null||!Ur.has(m))))return l.flags|=65536,p&=-p,l.lanes|=p,p=wg(p),kg(p,t,l,u),Ec(l,p),!1}l=l.return}while(l!==null);return!1}var Yc=Error(a(461)),Et=!1;function Pt(t,i,l,u){i.child=t===null?Rm(i,null,l,u):_i(i,t.child,l,u)}function Ag(t,i,l,u,p){l=l.render;var m=i.ref;if("ref"in u){var v={};for(var E in u)E!=="ref"&&(v[E]=u[E])}else v=u;return pi(i),u=Tc(t,i,l,v,m,p),E=Rc(),t!==null&&!Et?(Oc(t,i,p),sr(t,i,p)):(Ue&&E&&uc(i),i.flags|=1,Pt(t,i,u,p),i.child)}function Cg(t,i,l,u,p){if(t===null){var m=l.type;return typeof m=="function"&&!lc(m)&&m.defaultProps===void 0&&l.compare===null?(i.tag=15,i.type=m,Tg(t,i,m,u,p)):(t=ko(l.type,null,u,i,i.mode,p),t.ref=i.ref,t.return=i,i.child=t)}if(m=t.child,!tf(t,p)){var v=m.memoizedProps;if(l=l.compare,l=l!==null?l:Xa,l(v,u)&&t.ref===i.ref)return sr(t,i,p)}return i.flags|=1,t=nr(m,u),t.ref=i.ref,t.return=i,i.child=t}function Tg(t,i,l,u,p){if(t!==null){var m=t.memoizedProps;if(Xa(m,u)&&t.ref===i.ref)if(Et=!1,i.pendingProps=u=m,tf(t,p))(t.flags&131072)!==0&&(Et=!0);else return i.lanes=t.lanes,sr(t,i,p)}return Xc(t,i,l,u,p)}function Rg(t,i,l,u){var p=u.children,m=t!==null?t.memoizedState:null;if(t===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((i.flags&128)!==0){if(m=m!==null?m.baseLanes|l:l,t!==null){for(u=i.child=t.child,p=0;u!==null;)p=p|u.lanes|u.childLanes,u=u.sibling;u=p&~m}else u=0,i.child=null;return Og(t,i,m,l,u)}if((l&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ro(i,m!==null?m.cachePool:null),m!==null?Dm(i,m):wc(),Nm(i);else return u=i.lanes=536870912,Og(t,i,m!==null?m.baseLanes|l:l,l,u)}else m!==null?(Ro(i,m.cachePool),Dm(i,m),zr(),i.memoizedState=null):(t!==null&&Ro(i,null),wc(),zr());return Pt(t,i,p,l),i.child}function ul(t,i){return t!==null&&t.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function Og(t,i,l,u,p){var m=_c();return m=m===null?null:{parent:vt._currentValue,pool:m},i.memoizedState={baseLanes:l,cachePool:m},t!==null&&Ro(i,null),wc(),Nm(i),t!==null&&Wi(t,i,u,!0),i.childLanes=p,null}function $o(t,i){return i=Yo({mode:i.mode,children:i.children},t.mode),i.ref=t.ref,t.child=i,i.return=t,i}function Lg(t,i,l){return _i(i,t.child,null,l),t=$o(i,i.pendingProps),t.flags|=2,pn(i),i.memoizedState=null,t}function oS(t,i,l){var u=i.pendingProps,p=(i.flags&128)!==0;if(i.flags&=-129,t===null){if(Ue){if(u.mode==="hidden")return t=$o(i,u),i.lanes=536870912,ul(null,t);if(Ac(i),(t=st)?(t=Gy(t,Cn),t=t!==null&&t.data==="&"?t:null,t!==null&&(i.memoizedState={dehydrated:t,treeContext:Cr!==null?{id:Gn,overflow:qn}:null,retryLane:536870912,hydrationErrors:null},l=pm(t),l.return=i,i.child=l,Ut=i,st=null)):t=null,t===null)throw Rr(i);return i.lanes=536870912,null}return $o(i,u)}var m=t.memoizedState;if(m!==null){var v=m.dehydrated;if(Ac(i),p)if(i.flags&256)i.flags&=-257,i=Lg(t,i,l);else if(i.memoizedState!==null)i.child=t.child,i.flags|=128,i=null;else throw Error(a(558));else if(Et||Wi(t,i,l,!1),p=(l&t.childLanes)!==0,Et||p){if(u=it,u!==null&&(v=xp(u,l),v!==0&&v!==m.retryLane))throw m.retryLane=v,ci(t,v),sn(u,t,v),Yc;ns(),i=Lg(t,i,l)}else t=m.treeContext,st=Rn(v.nextSibling),Ut=i,Ue=!0,Tr=null,Cn=!1,t!==null&&ym(i,t),i=$o(i,u),i.flags|=4096;return i}return t=nr(t.child,{mode:u.mode,children:u.children}),t.ref=i.ref,i.child=t,t.return=i,t}function Fo(t,i){var l=i.ref;if(l===null)t!==null&&t.ref!==null&&(i.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(t===null||t.ref!==l)&&(i.flags|=4194816)}}function Xc(t,i,l,u,p){return pi(i),l=Tc(t,i,l,u,void 0,p),u=Rc(),t!==null&&!Et?(Oc(t,i,p),sr(t,i,p)):(Ue&&u&&uc(i),i.flags|=1,Pt(t,i,l,p),i.child)}function Dg(t,i,l,u,p,m){return pi(i),i.updateQueue=null,l=zm(i,u,l,p),Mm(t),u=Rc(),t!==null&&!Et?(Oc(t,i,m),sr(t,i,m)):(Ue&&u&&uc(i),i.flags|=1,Pt(t,i,l,m),i.child)}function Ng(t,i,l,u,p){if(pi(i),i.stateNode===null){var m=Qi,v=l.contextType;typeof v=="object"&&v!==null&&(m=Vt(v)),m=new l(u,m),i.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=$c,i.stateNode=m,m._reactInternals=i,m=i.stateNode,m.props=u,m.state=i.memoizedState,m.refs={},vc(i),v=l.contextType,m.context=typeof v=="object"&&v!==null?Vt(v):Qi,m.state=i.memoizedState,v=l.getDerivedStateFromProps,typeof v=="function"&&(qc(i,l,v,u),m.state=i.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(v=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),v!==m.state&&$c.enqueueReplaceState(m,m.state,null),il(i,u,m,p),rl(),m.state=i.memoizedState),typeof m.componentDidMount=="function"&&(i.flags|=4194308),u=!0}else if(t===null){m=i.stateNode;var E=i.memoizedProps,L=vi(l,E);m.props=L;var G=m.context,J=l.contextType;v=Qi,typeof J=="object"&&J!==null&&(v=Vt(J));var te=l.getDerivedStateFromProps;J=typeof te=="function"||typeof m.getSnapshotBeforeUpdate=="function",E=i.pendingProps!==E,J||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(E||G!==v)&&bg(i,m,u,v),Lr=!1;var $=i.memoizedState;m.state=$,il(i,u,m,p),rl(),G=i.memoizedState,E||$!==G||Lr?(typeof te=="function"&&(qc(i,l,te,u),G=i.memoizedState),(L=Lr||_g(i,l,L,u,$,G,v))?(J||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(i.flags|=4194308)):(typeof m.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=G),m.props=u,m.state=G,m.context=v,u=L):(typeof m.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{m=i.stateNode,xc(t,i),v=i.memoizedProps,J=vi(l,v),m.props=J,te=i.pendingProps,$=m.context,G=l.contextType,L=Qi,typeof G=="object"&&G!==null&&(L=Vt(G)),E=l.getDerivedStateFromProps,(G=typeof E=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(v!==te||$!==L)&&bg(i,m,u,L),Lr=!1,$=i.memoizedState,m.state=$,il(i,u,m,p),rl();var X=i.memoizedState;v!==te||$!==X||Lr||t!==null&&t.dependencies!==null&&Co(t.dependencies)?(typeof E=="function"&&(qc(i,l,E,u),X=i.memoizedState),(J=Lr||_g(i,l,J,u,$,X,L)||t!==null&&t.dependencies!==null&&Co(t.dependencies))?(G||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(u,X,L),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(u,X,L)),typeof m.componentDidUpdate=="function"&&(i.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof m.componentDidUpdate!="function"||v===t.memoizedProps&&$===t.memoizedState||(i.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&$===t.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=X),m.props=u,m.state=X,m.context=L,u=J):(typeof m.componentDidUpdate!="function"||v===t.memoizedProps&&$===t.memoizedState||(i.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||v===t.memoizedProps&&$===t.memoizedState||(i.flags|=1024),u=!1)}return m=u,Fo(t,i),u=(i.flags&128)!==0,m||u?(m=i.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:m.render(),i.flags|=1,t!==null&&u?(i.child=_i(i,t.child,null,p),i.child=_i(i,null,l,p)):Pt(t,i,l,p),i.memoizedState=m.state,t=i.child):t=sr(t,i,p),t}function Mg(t,i,l,u){return di(),i.flags|=256,Pt(t,i,l,u),i.child}var Qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zc(t){return{baseLanes:t,cachePool:Sm()}}function Kc(t,i,l){return t=t!==null?t.childLanes&~l:0,i&&(t|=gn),t}function zg(t,i,l){var u=i.pendingProps,p=!1,m=(i.flags&128)!==0,v;if((v=m)||(v=t!==null&&t.memoizedState===null?!1:(yt.current&2)!==0),v&&(p=!0,i.flags&=-129),v=(i.flags&32)!==0,i.flags&=-33,t===null){if(Ue){if(p?Mr(i):zr(),(t=st)?(t=Gy(t,Cn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(i.memoizedState={dehydrated:t,treeContext:Cr!==null?{id:Gn,overflow:qn}:null,retryLane:536870912,hydrationErrors:null},l=pm(t),l.return=i,i.child=l,Ut=i,st=null)):t=null,t===null)throw Rr(i);return Mf(t)?i.lanes=32:i.lanes=536870912,null}var E=u.children;return u=u.fallback,p?(zr(),p=i.mode,E=Yo({mode:"hidden",children:E},p),u=fi(u,p,l,null),E.return=i,u.return=i,E.sibling=u,i.child=E,u=i.child,u.memoizedState=Zc(l),u.childLanes=Kc(t,v,l),i.memoizedState=Qc,ul(null,u)):(Mr(i),Jc(i,E))}var L=t.memoizedState;if(L!==null&&(E=L.dehydrated,E!==null)){if(m)i.flags&256?(Mr(i),i.flags&=-257,i=Wc(t,i,l)):i.memoizedState!==null?(zr(),i.child=t.child,i.flags|=128,i=null):(zr(),E=u.fallback,p=i.mode,u=Yo({mode:"visible",children:u.children},p),E=fi(E,p,l,null),E.flags|=2,u.return=i,E.return=i,u.sibling=E,i.child=u,_i(i,t.child,null,l),u=i.child,u.memoizedState=Zc(l),u.childLanes=Kc(t,v,l),i.memoizedState=Qc,i=ul(null,u));else if(Mr(i),Mf(E)){if(v=E.nextSibling&&E.nextSibling.dataset,v)var G=v.dgst;v=G,u=Error(a(419)),u.stack="",u.digest=v,Ka({value:u,source:null,stack:null}),i=Wc(t,i,l)}else if(Et||Wi(t,i,l,!1),v=(l&t.childLanes)!==0,Et||v){if(v=it,v!==null&&(u=xp(v,l),u!==0&&u!==L.retryLane))throw L.retryLane=u,ci(t,u),sn(v,t,u),Yc;Nf(E)||ns(),i=Wc(t,i,l)}else Nf(E)?(i.flags|=192,i.child=t.child,i=null):(t=L.treeContext,st=Rn(E.nextSibling),Ut=i,Ue=!0,Tr=null,Cn=!1,t!==null&&ym(i,t),i=Jc(i,u.children),i.flags|=4096);return i}return p?(zr(),E=u.fallback,p=i.mode,L=t.child,G=L.sibling,u=nr(L,{mode:"hidden",children:u.children}),u.subtreeFlags=L.subtreeFlags&65011712,G!==null?E=nr(G,E):(E=fi(E,p,l,null),E.flags|=2),E.return=i,u.return=i,u.sibling=E,i.child=u,ul(null,u),u=i.child,E=t.child.memoizedState,E===null?E=Zc(l):(p=E.cachePool,p!==null?(L=vt._currentValue,p=p.parent!==L?{parent:L,pool:L}:p):p=Sm(),E={baseLanes:E.baseLanes|l,cachePool:p}),u.memoizedState=E,u.childLanes=Kc(t,v,l),i.memoizedState=Qc,ul(t.child,u)):(Mr(i),l=t.child,t=l.sibling,l=nr(l,{mode:"visible",children:u.children}),l.return=i,l.sibling=null,t!==null&&(v=i.deletions,v===null?(i.deletions=[t],i.flags|=16):v.push(t)),i.child=l,i.memoizedState=null,l)}function Jc(t,i){return i=Yo({mode:"visible",children:i},t.mode),i.return=t,t.child=i}function Yo(t,i){return t=dn(22,t,null,i),t.lanes=0,t}function Wc(t,i,l){return _i(i,t.child,null,l),t=Jc(i,i.pendingProps.children),t.flags|=2,i.memoizedState=null,t}function Ig(t,i,l){t.lanes|=i;var u=t.alternate;u!==null&&(u.lanes|=i),pc(t.return,i,l)}function ef(t,i,l,u,p,m){var v=t.memoizedState;v===null?t.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:p,treeForkCount:m}:(v.isBackwards=i,v.rendering=null,v.renderingStartTime=0,v.last=u,v.tail=l,v.tailMode=p,v.treeForkCount=m)}function jg(t,i,l){var u=i.pendingProps,p=u.revealOrder,m=u.tail;u=u.children;var v=yt.current,E=(v&2)!==0;if(E?(v=v&1|2,i.flags|=128):v&=1,S(yt,v),Pt(t,i,u,l),u=Ue?Za:0,!E&&t!==null&&(t.flags&128)!==0)e:for(t=i.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Ig(t,l,i);else if(t.tag===19)Ig(t,l,i);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===i)break e;for(;t.sibling===null;){if(t.return===null||t.return===i)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(p){case"forwards":for(l=i.child,p=null;l!==null;)t=l.alternate,t!==null&&zo(t)===null&&(p=l),l=l.sibling;l=p,l===null?(p=i.child,i.child=null):(p=l.sibling,l.sibling=null),ef(i,!1,p,l,m,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,p=i.child,i.child=null;p!==null;){if(t=p.alternate,t!==null&&zo(t)===null){i.child=p;break}t=p.sibling,p.sibling=l,l=p,p=t}ef(i,!0,l,null,m,u);break;case"together":ef(i,!1,null,null,void 0,u);break;default:i.memoizedState=null}return i.child}function sr(t,i,l){if(t!==null&&(i.dependencies=t.dependencies),Br|=i.lanes,(l&i.childLanes)===0)if(t!==null){if(Wi(t,i,l,!1),(l&i.childLanes)===0)return null}else return null;if(t!==null&&i.child!==t.child)throw Error(a(153));if(i.child!==null){for(t=i.child,l=nr(t,t.pendingProps),i.child=l,l.return=i;t.sibling!==null;)t=t.sibling,l=l.sibling=nr(t,t.pendingProps),l.return=i;l.sibling=null}return i.child}function tf(t,i){return(t.lanes&i)!==0?!0:(t=t.dependencies,!!(t!==null&&Co(t)))}function sS(t,i,l){switch(i.tag){case 3:_e(i,i.stateNode.containerInfo),Or(i,vt,t.memoizedState.cache),di();break;case 27:case 5:Be(i);break;case 4:_e(i,i.stateNode.containerInfo);break;case 10:Or(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Ac(i),null;break;case 13:var u=i.memoizedState;if(u!==null)return u.dehydrated!==null?(Mr(i),i.flags|=128,null):(l&i.child.childLanes)!==0?zg(t,i,l):(Mr(i),t=sr(t,i,l),t!==null?t.sibling:null);Mr(i);break;case 19:var p=(t.flags&128)!==0;if(u=(l&i.childLanes)!==0,u||(Wi(t,i,l,!1),u=(l&i.childLanes)!==0),p){if(u)return jg(t,i,l);i.flags|=128}if(p=i.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),S(yt,yt.current),u)break;return null;case 22:return i.lanes=0,Rg(t,i,l,i.pendingProps);case 24:Or(i,vt,t.memoizedState.cache)}return sr(t,i,l)}function Bg(t,i,l){if(t!==null)if(t.memoizedProps!==i.pendingProps)Et=!0;else{if(!tf(t,l)&&(i.flags&128)===0)return Et=!1,sS(t,i,l);Et=(t.flags&131072)!==0}else Et=!1,Ue&&(i.flags&1048576)!==0&&gm(i,Za,i.index);switch(i.lanes=0,i.tag){case 16:e:{var u=i.pendingProps;if(t=gi(i.elementType),i.type=t,typeof t=="function")lc(t)?(u=vi(t,u),i.tag=1,i=Ng(null,i,t,u,l)):(i.tag=0,i=Xc(null,i,t,u,l));else{if(t!=null){var p=t.$$typeof;if(p===Z){i.tag=11,i=Ag(null,i,t,u,l);break e}else if(p===P){i.tag=14,i=Cg(null,i,t,u,l);break e}}throw i=oe(t)||t,Error(a(306,i,""))}}return i;case 0:return Xc(t,i,i.type,i.pendingProps,l);case 1:return u=i.type,p=vi(u,i.pendingProps),Ng(t,i,u,p,l);case 3:e:{if(_e(i,i.stateNode.containerInfo),t===null)throw Error(a(387));u=i.pendingProps;var m=i.memoizedState;p=m.element,xc(t,i),il(i,u,null,l);var v=i.memoizedState;if(u=v.cache,Or(i,vt,u),u!==m.cache&&mc(i,[vt],l,!0),rl(),u=v.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:v.cache},i.updateQueue.baseState=m,i.memoizedState=m,i.flags&256){i=Mg(t,i,u,l);break e}else if(u!==p){p=wn(Error(a(424)),i),Ka(p),i=Mg(t,i,u,l);break e}else for(t=i.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,st=Rn(t.firstChild),Ut=i,Ue=!0,Tr=null,Cn=!0,l=Rm(i,null,u,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(di(),u===p){i=sr(t,i,l);break e}Pt(t,i,u,l)}i=i.child}return i;case 26:return Fo(t,i),t===null?(l=Qy(i.type,null,i.pendingProps,null))?i.memoizedState=l:Ue||(l=i.type,t=i.pendingProps,u=us(le.current).createElement(l),u[Bt]=i,u[tn]=t,Ht(u,l,t),Nt(u),i.stateNode=u):i.memoizedState=Qy(i.type,t.memoizedProps,i.pendingProps,t.memoizedState),null;case 27:return Be(i),t===null&&Ue&&(u=i.stateNode=Fy(i.type,i.pendingProps,le.current),Ut=i,Cn=!0,p=st,Gr(i.type)?(zf=p,st=Rn(u.firstChild)):st=p),Pt(t,i,i.pendingProps.children,l),Fo(t,i),t===null&&(i.flags|=4194304),i.child;case 5:return t===null&&Ue&&((p=u=st)&&(u=BS(u,i.type,i.pendingProps,Cn),u!==null?(i.stateNode=u,Ut=i,st=Rn(u.firstChild),Cn=!1,p=!0):p=!1),p||Rr(i)),Be(i),p=i.type,m=i.pendingProps,v=t!==null?t.memoizedProps:null,u=m.children,Of(p,m)?u=null:v!==null&&Of(p,v)&&(i.flags|=32),i.memoizedState!==null&&(p=Tc(t,i,WE,null,null,l),wl._currentValue=p),Fo(t,i),Pt(t,i,u,l),i.child;case 6:return t===null&&Ue&&((t=l=st)&&(l=US(l,i.pendingProps,Cn),l!==null?(i.stateNode=l,Ut=i,st=null,t=!0):t=!1),t||Rr(i)),null;case 13:return zg(t,i,l);case 4:return _e(i,i.stateNode.containerInfo),u=i.pendingProps,t===null?i.child=_i(i,null,u,l):Pt(t,i,u,l),i.child;case 11:return Ag(t,i,i.type,i.pendingProps,l);case 7:return Pt(t,i,i.pendingProps,l),i.child;case 8:return Pt(t,i,i.pendingProps.children,l),i.child;case 12:return Pt(t,i,i.pendingProps.children,l),i.child;case 10:return u=i.pendingProps,Or(i,i.type,u.value),Pt(t,i,u.children,l),i.child;case 9:return p=i.type._context,u=i.pendingProps.children,pi(i),p=Vt(p),u=u(p),i.flags|=1,Pt(t,i,u,l),i.child;case 14:return Cg(t,i,i.type,i.pendingProps,l);case 15:return Tg(t,i,i.type,i.pendingProps,l);case 19:return jg(t,i,l);case 31:return oS(t,i,l);case 22:return Rg(t,i,l,i.pendingProps);case 24:return pi(i),u=Vt(vt),t===null?(p=_c(),p===null&&(p=it,m=gc(),p.pooledCache=m,m.refCount++,m!==null&&(p.pooledCacheLanes|=l),p=m),i.memoizedState={parent:u,cache:p},vc(i),Or(i,vt,p)):((t.lanes&l)!==0&&(xc(t,i),il(i,null,null,l),rl()),p=t.memoizedState,m=i.memoizedState,p.parent!==u?(p={parent:u,cache:u},i.memoizedState=p,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=p),Or(i,vt,u)):(u=m.cache,Or(i,vt,u),u!==p.cache&&mc(i,[vt],l,!0))),Pt(t,i,i.pendingProps.children,l),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function ur(t){t.flags|=4}function nf(t,i,l,u,p){if((i=(t.mode&32)!==0)&&(i=!1),i){if(t.flags|=16777216,(p&335544128)===p)if(t.stateNode.complete)t.flags|=8192;else if(fy())t.flags|=8192;else throw yi=Lo,bc}else t.flags&=-16777217}function Ug(t,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!e_(i))if(fy())t.flags|=8192;else throw yi=Lo,bc}function Xo(t,i){i!==null&&(t.flags|=4),t.flags&16384&&(i=t.tag!==22?_p():536870912,t.lanes|=i,fa|=i)}function cl(t,i){if(!Ue)switch(t.tailMode){case"hidden":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?i||t.tail===null?t.tail=null:t.tail.sibling=null:u.sibling=null}}function ut(t){var i=t.alternate!==null&&t.alternate.child===t.child,l=0,u=0;if(i)for(var p=t.child;p!==null;)l|=p.lanes|p.childLanes,u|=p.subtreeFlags&65011712,u|=p.flags&65011712,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)l|=p.lanes|p.childLanes,u|=p.subtreeFlags,u|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=u,t.childLanes=l,i}function uS(t,i,l){var u=i.pendingProps;switch(cc(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(i),null;case 1:return ut(i),null;case 3:return l=i.stateNode,u=null,t!==null&&(u=t.memoizedState.cache),i.memoizedState.cache!==u&&(i.flags|=2048),ar(vt),ue(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(Ji(i)?ur(i):t===null||t.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,dc())),ut(i),null;case 26:var p=i.type,m=i.memoizedState;return t===null?(ur(i),m!==null?(ut(i),Ug(i,m)):(ut(i),nf(i,p,null,u,l))):m?m!==t.memoizedState?(ur(i),ut(i),Ug(i,m)):(ut(i),i.flags&=-16777217):(t=t.memoizedProps,t!==u&&ur(i),ut(i),nf(i,p,t,u,l)),null;case 27:if(qe(i),l=le.current,p=i.type,t!==null&&i.stateNode!=null)t.memoizedProps!==u&&ur(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return ut(i),null}t=re.current,Ji(i)?_m(i):(t=Fy(p,u,l),i.stateNode=t,ur(i))}return ut(i),null;case 5:if(qe(i),p=i.type,t!==null&&i.stateNode!=null)t.memoizedProps!==u&&ur(i);else{if(!u){if(i.stateNode===null)throw Error(a(166));return ut(i),null}if(m=re.current,Ji(i))_m(i);else{var v=us(le.current);switch(m){case 1:m=v.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:m=v.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":m=v.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":m=v.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":m=v.createElement("div"),m.innerHTML="<script><\/script>",m=m.removeChild(m.firstChild);break;case"select":m=typeof u.is=="string"?v.createElement("select",{is:u.is}):v.createElement("select"),u.multiple?m.multiple=!0:u.size&&(m.size=u.size);break;default:m=typeof u.is=="string"?v.createElement(p,{is:u.is}):v.createElement(p)}}m[Bt]=i,m[tn]=u;e:for(v=i.child;v!==null;){if(v.tag===5||v.tag===6)m.appendChild(v.stateNode);else if(v.tag!==4&&v.tag!==27&&v.child!==null){v.child.return=v,v=v.child;continue}if(v===i)break e;for(;v.sibling===null;){if(v.return===null||v.return===i)break e;v=v.return}v.sibling.return=v.return,v=v.sibling}i.stateNode=m;e:switch(Ht(m,p,u),p){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&ur(i)}}return ut(i),nf(i,i.type,t===null?null:t.memoizedProps,i.pendingProps,l),null;case 6:if(t&&i.stateNode!=null)t.memoizedProps!==u&&ur(i);else{if(typeof u!="string"&&i.stateNode===null)throw Error(a(166));if(t=le.current,Ji(i)){if(t=i.stateNode,l=i.memoizedProps,u=null,p=Ut,p!==null)switch(p.tag){case 27:case 5:u=p.memoizedProps}t[Bt]=i,t=!!(t.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||zy(t.nodeValue,l)),t||Rr(i,!0)}else t=us(t).createTextNode(u),t[Bt]=i,i.stateNode=t}return ut(i),null;case 31:if(l=i.memoizedState,t===null||t.memoizedState!==null){if(u=Ji(i),l!==null){if(t===null){if(!u)throw Error(a(318));if(t=i.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(557));t[Bt]=i}else di(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;ut(i),t=!1}else l=dc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return i.flags&256?(pn(i),i):(pn(i),null);if((i.flags&128)!==0)throw Error(a(558))}return ut(i),null;case 13:if(u=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=Ji(i),u!==null&&u.dehydrated!==null){if(t===null){if(!p)throw Error(a(318));if(p=i.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(a(317));p[Bt]=i}else di(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;ut(i),p=!1}else p=dc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return i.flags&256?(pn(i),i):(pn(i),null)}return pn(i),(i.flags&128)!==0?(i.lanes=l,i):(l=u!==null,t=t!==null&&t.memoizedState!==null,l&&(u=i.child,p=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(p=u.alternate.memoizedState.cachePool.pool),m=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==p&&(u.flags|=2048)),l!==t&&l&&(i.child.flags|=8192),Xo(i,i.updateQueue),ut(i),null);case 4:return ue(),t===null&&kf(i.stateNode.containerInfo),ut(i),null;case 10:return ar(i.type),ut(i),null;case 19:if(I(yt),u=i.memoizedState,u===null)return ut(i),null;if(p=(i.flags&128)!==0,m=u.rendering,m===null)if(p)cl(u,!1);else{if(gt!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(m=zo(t),m!==null){for(i.flags|=128,cl(u,!1),t=m.updateQueue,i.updateQueue=t,Xo(i,t),i.subtreeFlags=0,t=l,l=i.child;l!==null;)hm(l,t),l=l.sibling;return S(yt,yt.current&1|2),Ue&&rr(i,u.treeForkCount),i.child}t=t.sibling}u.tail!==null&&nt()>Wo&&(i.flags|=128,p=!0,cl(u,!1),i.lanes=4194304)}else{if(!p)if(t=zo(m),t!==null){if(i.flags|=128,p=!0,t=t.updateQueue,i.updateQueue=t,Xo(i,t),cl(u,!0),u.tail===null&&u.tailMode==="hidden"&&!m.alternate&&!Ue)return ut(i),null}else 2*nt()-u.renderingStartTime>Wo&&l!==536870912&&(i.flags|=128,p=!0,cl(u,!1),i.lanes=4194304);u.isBackwards?(m.sibling=i.child,i.child=m):(t=u.last,t!==null?t.sibling=m:i.child=m,u.last=m)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=nt(),t.sibling=null,l=yt.current,S(yt,p?l&1|2:l&1),Ue&&rr(i,u.treeForkCount),t):(ut(i),null);case 22:case 23:return pn(i),kc(),u=i.memoizedState!==null,t!==null?t.memoizedState!==null!==u&&(i.flags|=8192):u&&(i.flags|=8192),u?(l&536870912)!==0&&(i.flags&128)===0&&(ut(i),i.subtreeFlags&6&&(i.flags|=8192)):ut(i),l=i.updateQueue,l!==null&&Xo(i,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),u=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),u!==l&&(i.flags|=2048),t!==null&&I(mi),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),ar(vt),ut(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function cS(t,i){switch(cc(i),i.tag){case 1:return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 3:return ar(vt),ue(),t=i.flags,(t&65536)!==0&&(t&128)===0?(i.flags=t&-65537|128,i):null;case 26:case 27:case 5:return qe(i),null;case 31:if(i.memoizedState!==null){if(pn(i),i.alternate===null)throw Error(a(340));di()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 13:if(pn(i),t=i.memoizedState,t!==null&&t.dehydrated!==null){if(i.alternate===null)throw Error(a(340));di()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 19:return I(yt),null;case 4:return ue(),null;case 10:return ar(i.type),null;case 22:case 23:return pn(i),kc(),t!==null&&I(mi),t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 24:return ar(vt),null;case 25:return null;default:return null}}function Vg(t,i){switch(cc(i),i.tag){case 3:ar(vt),ue();break;case 26:case 27:case 5:qe(i);break;case 4:ue();break;case 31:i.memoizedState!==null&&pn(i);break;case 13:pn(i);break;case 19:I(yt);break;case 10:ar(i.type);break;case 22:case 23:pn(i),kc(),t!==null&&I(mi);break;case 24:ar(vt)}}function fl(t,i){try{var l=i.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var p=u.next;l=p;do{if((l.tag&t)===t){u=void 0;var m=l.create,v=l.inst;u=m(),v.destroy=u}l=l.next}while(l!==p)}}catch(E){Ke(i,i.return,E)}}function Ir(t,i,l){try{var u=i.updateQueue,p=u!==null?u.lastEffect:null;if(p!==null){var m=p.next;u=m;do{if((u.tag&t)===t){var v=u.inst,E=v.destroy;if(E!==void 0){v.destroy=void 0,p=i;var L=l,G=E;try{G()}catch(J){Ke(p,L,J)}}}u=u.next}while(u!==m)}}catch(J){Ke(i,i.return,J)}}function Pg(t){var i=t.updateQueue;if(i!==null){var l=t.stateNode;try{Lm(i,l)}catch(u){Ke(t,t.return,u)}}}function Hg(t,i,l){l.props=vi(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(u){Ke(t,i,u)}}function dl(t,i){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var u=t.stateNode;break;case 30:u=t.stateNode;break;default:u=t.stateNode}typeof l=="function"?t.refCleanup=l(u):l.current=u}}catch(p){Ke(t,i,p)}}function $n(t,i){var l=t.ref,u=t.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(p){Ke(t,i,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(p){Ke(t,i,p)}else l.current=null}function Gg(t){var i=t.type,l=t.memoizedProps,u=t.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(p){Ke(t,t.return,p)}}function rf(t,i,l){try{var u=t.stateNode;DS(u,t.type,l,i),u[tn]=i}catch(p){Ke(t,t.return,p)}}function qg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Gr(t.type)||t.tag===4}function af(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||qg(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Gr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function lf(t,i,l){var u=t.tag;if(u===5||u===6)t=t.stateNode,i?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,i):(i=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,i.appendChild(t),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=er));else if(u!==4&&(u===27&&Gr(t.type)&&(l=t.stateNode,i=null),t=t.child,t!==null))for(lf(t,i,l),t=t.sibling;t!==null;)lf(t,i,l),t=t.sibling}function Qo(t,i,l){var u=t.tag;if(u===5||u===6)t=t.stateNode,i?l.insertBefore(t,i):l.appendChild(t);else if(u!==4&&(u===27&&Gr(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Qo(t,i,l),t=t.sibling;t!==null;)Qo(t,i,l),t=t.sibling}function $g(t){var i=t.stateNode,l=t.memoizedProps;try{for(var u=t.type,p=i.attributes;p.length;)i.removeAttributeNode(p[0]);Ht(i,u,l),i[Bt]=t,i[tn]=l}catch(m){Ke(t,t.return,m)}}var cr=!1,St=!1,of=!1,Fg=typeof WeakSet=="function"?WeakSet:Set,Mt=null;function fS(t,i){if(t=t.containerInfo,Tf=gs,t=im(t),Wu(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var p=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{l.nodeType,m.nodeType}catch{l=null;break e}var v=0,E=-1,L=-1,G=0,J=0,te=t,$=null;t:for(;;){for(var X;te!==l||p!==0&&te.nodeType!==3||(E=v+p),te!==m||u!==0&&te.nodeType!==3||(L=v+u),te.nodeType===3&&(v+=te.nodeValue.length),(X=te.firstChild)!==null;)$=te,te=X;for(;;){if(te===t)break t;if($===l&&++G===p&&(E=v),$===m&&++J===u&&(L=v),(X=te.nextSibling)!==null)break;te=$,$=te.parentNode}te=X}l=E===-1||L===-1?null:{start:E,end:L}}else l=null}l=l||{start:0,end:0}}else l=null;for(Rf={focusedElem:t,selectionRange:l},gs=!1,Mt=i;Mt!==null;)if(i=Mt,t=i.child,(i.subtreeFlags&1028)!==0&&t!==null)t.return=i,Mt=t;else for(;Mt!==null;){switch(i=Mt,m=i.alternate,t=i.flags,i.tag){case 0:if((t&4)!==0&&(t=i.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)p=t[l],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,l=i,p=m.memoizedProps,m=m.memoizedState,u=l.stateNode;try{var he=vi(l.type,p);t=u.getSnapshotBeforeUpdate(he,m),u.__reactInternalSnapshotBeforeUpdate=t}catch(Se){Ke(l,l.return,Se)}}break;case 3:if((t&1024)!==0){if(t=i.stateNode.containerInfo,l=t.nodeType,l===9)Df(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Df(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(a(163))}if(t=i.sibling,t!==null){t.return=i.return,Mt=t;break}Mt=i.return}}function Yg(t,i,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:dr(t,l),u&4&&fl(5,l);break;case 1:if(dr(t,l),u&4)if(t=l.stateNode,i===null)try{t.componentDidMount()}catch(v){Ke(l,l.return,v)}else{var p=vi(l.type,i.memoizedProps);i=i.memoizedState;try{t.componentDidUpdate(p,i,t.__reactInternalSnapshotBeforeUpdate)}catch(v){Ke(l,l.return,v)}}u&64&&Pg(l),u&512&&dl(l,l.return);break;case 3:if(dr(t,l),u&64&&(t=l.updateQueue,t!==null)){if(i=null,l.child!==null)switch(l.child.tag){case 27:case 5:i=l.child.stateNode;break;case 1:i=l.child.stateNode}try{Lm(t,i)}catch(v){Ke(l,l.return,v)}}break;case 27:i===null&&u&4&&$g(l);case 26:case 5:dr(t,l),i===null&&u&4&&Gg(l),u&512&&dl(l,l.return);break;case 12:dr(t,l);break;case 31:dr(t,l),u&4&&Zg(t,l);break;case 13:dr(t,l),u&4&&Kg(t,l),u&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=vS.bind(null,l),VS(t,l))));break;case 22:if(u=l.memoizedState!==null||cr,!u){i=i!==null&&i.memoizedState!==null||St,p=cr;var m=St;cr=u,(St=i)&&!m?hr(t,l,(l.subtreeFlags&8772)!==0):dr(t,l),cr=p,St=m}break;case 30:break;default:dr(t,l)}}function Xg(t){var i=t.alternate;i!==null&&(t.alternate=null,Xg(i)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(i=t.stateNode,i!==null&&Iu(i)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var ft=null,rn=!1;function fr(t,i,l){for(l=l.child;l!==null;)Qg(t,i,l),l=l.sibling}function Qg(t,i,l){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(kt,l)}catch{}switch(l.tag){case 26:St||$n(l,i),fr(t,i,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:St||$n(l,i);var u=ft,p=rn;Gr(l.type)&&(ft=l.stateNode,rn=!1),fr(t,i,l),xl(l.stateNode),ft=u,rn=p;break;case 5:St||$n(l,i);case 6:if(u=ft,p=rn,ft=null,fr(t,i,l),ft=u,rn=p,ft!==null)if(rn)try{(ft.nodeType===9?ft.body:ft.nodeName==="HTML"?ft.ownerDocument.body:ft).removeChild(l.stateNode)}catch(m){Ke(l,i,m)}else try{ft.removeChild(l.stateNode)}catch(m){Ke(l,i,m)}break;case 18:ft!==null&&(rn?(t=ft,Py(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),ba(t)):Py(ft,l.stateNode));break;case 4:u=ft,p=rn,ft=l.stateNode.containerInfo,rn=!0,fr(t,i,l),ft=u,rn=p;break;case 0:case 11:case 14:case 15:Ir(2,l,i),St||Ir(4,l,i),fr(t,i,l);break;case 1:St||($n(l,i),u=l.stateNode,typeof u.componentWillUnmount=="function"&&Hg(l,i,u)),fr(t,i,l);break;case 21:fr(t,i,l);break;case 22:St=(u=St)||l.memoizedState!==null,fr(t,i,l),St=u;break;default:fr(t,i,l)}}function Zg(t,i){if(i.memoizedState===null&&(t=i.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ba(t)}catch(l){Ke(i,i.return,l)}}}function Kg(t,i){if(i.memoizedState===null&&(t=i.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ba(t)}catch(l){Ke(i,i.return,l)}}function dS(t){switch(t.tag){case 31:case 13:case 19:var i=t.stateNode;return i===null&&(i=t.stateNode=new Fg),i;case 22:return t=t.stateNode,i=t._retryCache,i===null&&(i=t._retryCache=new Fg),i;default:throw Error(a(435,t.tag))}}function Zo(t,i){var l=dS(t);i.forEach(function(u){if(!l.has(u)){l.add(u);var p=xS.bind(null,t,u);u.then(p,p)}})}function an(t,i){var l=i.deletions;if(l!==null)for(var u=0;u<l.length;u++){var p=l[u],m=t,v=i,E=v;e:for(;E!==null;){switch(E.tag){case 27:if(Gr(E.type)){ft=E.stateNode,rn=!1;break e}break;case 5:ft=E.stateNode,rn=!1;break e;case 3:case 4:ft=E.stateNode.containerInfo,rn=!0;break e}E=E.return}if(ft===null)throw Error(a(160));Qg(m,v,p),ft=null,rn=!1,m=p.alternate,m!==null&&(m.return=null),p.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Jg(i,t),i=i.sibling}var Bn=null;function Jg(t,i){var l=t.alternate,u=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:an(i,t),ln(t),u&4&&(Ir(3,t,t.return),fl(3,t),Ir(5,t,t.return));break;case 1:an(i,t),ln(t),u&512&&(St||l===null||$n(l,l.return)),u&64&&cr&&(t=t.updateQueue,t!==null&&(u=t.callbacks,u!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var p=Bn;if(an(i,t),ln(t),u&512&&(St||l===null||$n(l,l.return)),u&4){var m=l!==null?l.memoizedState:null;if(u=t.memoizedState,l===null)if(u===null)if(t.stateNode===null){e:{u=t.type,l=t.memoizedProps,p=p.ownerDocument||p;t:switch(u){case"title":m=p.getElementsByTagName("title")[0],(!m||m[Ua]||m[Bt]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=p.createElement(u),p.head.insertBefore(m,p.querySelector("head > title"))),Ht(m,u,l),m[Bt]=t,Nt(m),u=m;break e;case"link":var v=Jy("link","href",p).get(u+(l.href||""));if(v){for(var E=0;E<v.length;E++)if(m=v[E],m.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&m.getAttribute("rel")===(l.rel==null?null:l.rel)&&m.getAttribute("title")===(l.title==null?null:l.title)&&m.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){v.splice(E,1);break t}}m=p.createElement(u),Ht(m,u,l),p.head.appendChild(m);break;case"meta":if(v=Jy("meta","content",p).get(u+(l.content||""))){for(E=0;E<v.length;E++)if(m=v[E],m.getAttribute("content")===(l.content==null?null:""+l.content)&&m.getAttribute("name")===(l.name==null?null:l.name)&&m.getAttribute("property")===(l.property==null?null:l.property)&&m.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&m.getAttribute("charset")===(l.charSet==null?null:l.charSet)){v.splice(E,1);break t}}m=p.createElement(u),Ht(m,u,l),p.head.appendChild(m);break;default:throw Error(a(468,u))}m[Bt]=t,Nt(m),u=m}t.stateNode=u}else Wy(p,t.type,t.stateNode);else t.stateNode=Ky(p,u,t.memoizedProps);else m!==u?(m===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):m.count--,u===null?Wy(p,t.type,t.stateNode):Ky(p,u,t.memoizedProps)):u===null&&t.stateNode!==null&&rf(t,t.memoizedProps,l.memoizedProps)}break;case 27:an(i,t),ln(t),u&512&&(St||l===null||$n(l,l.return)),l!==null&&u&4&&rf(t,t.memoizedProps,l.memoizedProps);break;case 5:if(an(i,t),ln(t),u&512&&(St||l===null||$n(l,l.return)),t.flags&32){p=t.stateNode;try{Hi(p,"")}catch(he){Ke(t,t.return,he)}}u&4&&t.stateNode!=null&&(p=t.memoizedProps,rf(t,p,l!==null?l.memoizedProps:p)),u&1024&&(of=!0);break;case 6:if(an(i,t),ln(t),u&4){if(t.stateNode===null)throw Error(a(162));u=t.memoizedProps,l=t.stateNode;try{l.nodeValue=u}catch(he){Ke(t,t.return,he)}}break;case 3:if(ds=null,p=Bn,Bn=cs(i.containerInfo),an(i,t),Bn=p,ln(t),u&4&&l!==null&&l.memoizedState.isDehydrated)try{ba(i.containerInfo)}catch(he){Ke(t,t.return,he)}of&&(of=!1,Wg(t));break;case 4:u=Bn,Bn=cs(t.stateNode.containerInfo),an(i,t),ln(t),Bn=u;break;case 12:an(i,t),ln(t);break;case 31:an(i,t),ln(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,Zo(t,u)));break;case 13:an(i,t),ln(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Jo=nt()),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,Zo(t,u)));break;case 22:p=t.memoizedState!==null;var L=l!==null&&l.memoizedState!==null,G=cr,J=St;if(cr=G||p,St=J||L,an(i,t),St=J,cr=G,ln(t),u&8192)e:for(i=t.stateNode,i._visibility=p?i._visibility&-2:i._visibility|1,p&&(l===null||L||cr||St||xi(t)),l=null,i=t;;){if(i.tag===5||i.tag===26){if(l===null){L=l=i;try{if(m=L.stateNode,p)v=m.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{E=L.stateNode;var te=L.memoizedProps.style,$=te!=null&&te.hasOwnProperty("display")?te.display:null;E.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(he){Ke(L,L.return,he)}}}else if(i.tag===6){if(l===null){L=i;try{L.stateNode.nodeValue=p?"":L.memoizedProps}catch(he){Ke(L,L.return,he)}}}else if(i.tag===18){if(l===null){L=i;try{var X=L.stateNode;p?Hy(X,!0):Hy(L.stateNode,!1)}catch(he){Ke(L,L.return,he)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===t)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;l===i&&(l=null),i=i.return}l===i&&(l=null),i.sibling.return=i.return,i=i.sibling}u&4&&(u=t.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,Zo(t,l))));break;case 19:an(i,t),ln(t),u&4&&(u=t.updateQueue,u!==null&&(t.updateQueue=null,Zo(t,u)));break;case 30:break;case 21:break;default:an(i,t),ln(t)}}function ln(t){var i=t.flags;if(i&2){try{for(var l,u=t.return;u!==null;){if(qg(u)){l=u;break}u=u.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var p=l.stateNode,m=af(t);Qo(t,m,p);break;case 5:var v=l.stateNode;l.flags&32&&(Hi(v,""),l.flags&=-33);var E=af(t);Qo(t,E,v);break;case 3:case 4:var L=l.stateNode.containerInfo,G=af(t);lf(t,G,L);break;default:throw Error(a(161))}}catch(J){Ke(t,t.return,J)}t.flags&=-3}i&4096&&(t.flags&=-4097)}function Wg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var i=t;Wg(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),t=t.sibling}}function dr(t,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)Yg(t,i.alternate,i),i=i.sibling}function xi(t){for(t=t.child;t!==null;){var i=t;switch(i.tag){case 0:case 11:case 14:case 15:Ir(4,i,i.return),xi(i);break;case 1:$n(i,i.return);var l=i.stateNode;typeof l.componentWillUnmount=="function"&&Hg(i,i.return,l),xi(i);break;case 27:xl(i.stateNode);case 26:case 5:$n(i,i.return),xi(i);break;case 22:i.memoizedState===null&&xi(i);break;case 30:xi(i);break;default:xi(i)}t=t.sibling}}function hr(t,i,l){for(l=l&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var u=i.alternate,p=t,m=i,v=m.flags;switch(m.tag){case 0:case 11:case 15:hr(p,m,l),fl(4,m);break;case 1:if(hr(p,m,l),u=m,p=u.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(G){Ke(u,u.return,G)}if(u=m,p=u.updateQueue,p!==null){var E=u.stateNode;try{var L=p.shared.hiddenCallbacks;if(L!==null)for(p.shared.hiddenCallbacks=null,p=0;p<L.length;p++)Om(L[p],E)}catch(G){Ke(u,u.return,G)}}l&&v&64&&Pg(m),dl(m,m.return);break;case 27:$g(m);case 26:case 5:hr(p,m,l),l&&u===null&&v&4&&Gg(m),dl(m,m.return);break;case 12:hr(p,m,l);break;case 31:hr(p,m,l),l&&v&4&&Zg(p,m);break;case 13:hr(p,m,l),l&&v&4&&Kg(p,m);break;case 22:m.memoizedState===null&&hr(p,m,l),dl(m,m.return);break;case 30:break;default:hr(p,m,l)}i=i.sibling}}function sf(t,i){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(t=i.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&Ja(l))}function uf(t,i){t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&Ja(t))}function Un(t,i,l,u){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)ey(t,i,l,u),i=i.sibling}function ey(t,i,l,u){var p=i.flags;switch(i.tag){case 0:case 11:case 15:Un(t,i,l,u),p&2048&&fl(9,i);break;case 1:Un(t,i,l,u);break;case 3:Un(t,i,l,u),p&2048&&(t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&Ja(t)));break;case 12:if(p&2048){Un(t,i,l,u),t=i.stateNode;try{var m=i.memoizedProps,v=m.id,E=m.onPostCommit;typeof E=="function"&&E(v,i.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(L){Ke(i,i.return,L)}}else Un(t,i,l,u);break;case 31:Un(t,i,l,u);break;case 13:Un(t,i,l,u);break;case 23:break;case 22:m=i.stateNode,v=i.alternate,i.memoizedState!==null?m._visibility&2?Un(t,i,l,u):hl(t,i):m._visibility&2?Un(t,i,l,u):(m._visibility|=2,sa(t,i,l,u,(i.subtreeFlags&10256)!==0||!1)),p&2048&&sf(v,i);break;case 24:Un(t,i,l,u),p&2048&&uf(i.alternate,i);break;default:Un(t,i,l,u)}}function sa(t,i,l,u,p){for(p=p&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var m=t,v=i,E=l,L=u,G=v.flags;switch(v.tag){case 0:case 11:case 15:sa(m,v,E,L,p),fl(8,v);break;case 23:break;case 22:var J=v.stateNode;v.memoizedState!==null?J._visibility&2?sa(m,v,E,L,p):hl(m,v):(J._visibility|=2,sa(m,v,E,L,p)),p&&G&2048&&sf(v.alternate,v);break;case 24:sa(m,v,E,L,p),p&&G&2048&&uf(v.alternate,v);break;default:sa(m,v,E,L,p)}i=i.sibling}}function hl(t,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var l=t,u=i,p=u.flags;switch(u.tag){case 22:hl(l,u),p&2048&&sf(u.alternate,u);break;case 24:hl(l,u),p&2048&&uf(u.alternate,u);break;default:hl(l,u)}i=i.sibling}}var pl=8192;function ua(t,i,l){if(t.subtreeFlags&pl)for(t=t.child;t!==null;)ty(t,i,l),t=t.sibling}function ty(t,i,l){switch(t.tag){case 26:ua(t,i,l),t.flags&pl&&t.memoizedState!==null&&JS(l,Bn,t.memoizedState,t.memoizedProps);break;case 5:ua(t,i,l);break;case 3:case 4:var u=Bn;Bn=cs(t.stateNode.containerInfo),ua(t,i,l),Bn=u;break;case 22:t.memoizedState===null&&(u=t.alternate,u!==null&&u.memoizedState!==null?(u=pl,pl=16777216,ua(t,i,l),pl=u):ua(t,i,l));break;default:ua(t,i,l)}}function ny(t){var i=t.alternate;if(i!==null&&(t=i.child,t!==null)){i.child=null;do i=t.sibling,t.sibling=null,t=i;while(t!==null)}}function ml(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var u=i[l];Mt=u,iy(u,t)}ny(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ry(t),t=t.sibling}function ry(t){switch(t.tag){case 0:case 11:case 15:ml(t),t.flags&2048&&Ir(9,t,t.return);break;case 3:ml(t);break;case 12:ml(t);break;case 22:var i=t.stateNode;t.memoizedState!==null&&i._visibility&2&&(t.return===null||t.return.tag!==13)?(i._visibility&=-3,Ko(t)):ml(t);break;default:ml(t)}}function Ko(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var l=0;l<i.length;l++){var u=i[l];Mt=u,iy(u,t)}ny(t)}for(t=t.child;t!==null;){switch(i=t,i.tag){case 0:case 11:case 15:Ir(8,i,i.return),Ko(i);break;case 22:l=i.stateNode,l._visibility&2&&(l._visibility&=-3,Ko(i));break;default:Ko(i)}t=t.sibling}}function iy(t,i){for(;Mt!==null;){var l=Mt;switch(l.tag){case 0:case 11:case 15:Ir(8,l,i);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Ja(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,Mt=u;else e:for(l=t;Mt!==null;){u=Mt;var p=u.sibling,m=u.return;if(Xg(u),u===l){Mt=null;break e}if(p!==null){p.return=m,Mt=p;break e}Mt=m}}}var hS={getCacheForType:function(t){var i=Vt(vt),l=i.data.get(t);return l===void 0&&(l=t(),i.data.set(t,l)),l},cacheSignal:function(){return Vt(vt).controller.signal}},pS=typeof WeakMap=="function"?WeakMap:Map,Xe=0,it=null,De=null,ze=0,Ze=0,mn=null,jr=!1,ca=!1,cf=!1,pr=0,gt=0,Br=0,Ei=0,ff=0,gn=0,fa=0,gl=null,on=null,df=!1,Jo=0,ay=0,Wo=1/0,es=null,Ur=null,Ct=0,Vr=null,da=null,mr=0,hf=0,pf=null,ly=null,yl=0,mf=null;function yn(){return(Xe&2)!==0&&ze!==0?ze&-ze:B.T!==null?xf():Ep()}function oy(){if(gn===0)if((ze&536870912)===0||Ue){var t=oo;oo<<=1,(oo&3932160)===0&&(oo=262144),gn=t}else gn=536870912;return t=hn.current,t!==null&&(t.flags|=32),gn}function sn(t,i,l){(t===it&&(Ze===2||Ze===9)||t.cancelPendingCommit!==null)&&(ha(t,0),Pr(t,ze,gn,!1)),Ba(t,l),((Xe&2)===0||t!==it)&&(t===it&&((Xe&2)===0&&(Ei|=l),gt===4&&Pr(t,ze,gn,!1)),Fn(t))}function sy(t,i,l){if((Xe&6)!==0)throw Error(a(327));var u=!l&&(i&127)===0&&(i&t.expiredLanes)===0||ja(t,i),p=u?yS(t,i):yf(t,i,!0),m=u;do{if(p===0){ca&&!u&&Pr(t,i,0,!1);break}else{if(l=t.current.alternate,m&&!mS(l)){p=yf(t,i,!1),m=!1;continue}if(p===2){if(m=i,t.errorRecoveryDisabledLanes&m)var v=0;else v=t.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){i=v;e:{var E=t;p=gl;var L=E.current.memoizedState.isDehydrated;if(L&&(ha(E,v).flags|=256),v=yf(E,v,!1),v!==2){if(cf&&!L){E.errorRecoveryDisabledLanes|=m,Ei|=m,p=4;break e}m=on,on=p,m!==null&&(on===null?on=m:on.push.apply(on,m))}p=v}if(m=!1,p!==2)continue}}if(p===1){ha(t,0),Pr(t,i,0,!0);break}e:{switch(u=t,m=p,m){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:Pr(u,i,gn,!jr);break e;case 2:on=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(p=Jo+300-nt(),10<p)){if(Pr(u,i,gn,!jr),uo(u,0,!0)!==0)break e;mr=i,u.timeoutHandle=Uy(uy.bind(null,u,l,on,es,df,i,gn,Ei,fa,jr,m,"Throttled",-0,0),p);break e}uy(u,l,on,es,df,i,gn,Ei,fa,jr,m,null,-0,0)}}break}while(!0);Fn(t)}function uy(t,i,l,u,p,m,v,E,L,G,J,te,$,X){if(t.timeoutHandle=-1,te=i.subtreeFlags,te&8192||(te&16785408)===16785408){te={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:er},ty(i,m,te);var he=(m&62914560)===m?Jo-nt():(m&4194048)===m?ay-nt():0;if(he=WS(te,he),he!==null){mr=m,t.cancelPendingCommit=he(yy.bind(null,t,i,m,l,u,p,v,E,L,J,te,null,$,X)),Pr(t,m,v,!G);return}}yy(t,i,m,l,u,p,v,E,L)}function mS(t){for(var i=t;;){var l=i.tag;if((l===0||l===11||l===15)&&i.flags&16384&&(l=i.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var p=l[u],m=p.getSnapshot;p=p.value;try{if(!fn(m(),p))return!1}catch{return!1}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Pr(t,i,l,u){i&=~ff,i&=~Ei,t.suspendedLanes|=i,t.pingedLanes&=~i,u&&(t.warmLanes|=i),u=t.expirationTimes;for(var p=i;0<p;){var m=31-rt(p),v=1<<m;u[m]=-1,p&=~v}l!==0&&bp(t,l,i)}function ts(){return(Xe&6)===0?(_l(0),!1):!0}function gf(){if(De!==null){if(Ze===0)var t=De.return;else t=De,ir=hi=null,Lc(t),ra=null,el=0,t=De;for(;t!==null;)Vg(t.alternate,t),t=t.return;De=null}}function ha(t,i){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,zS(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),mr=0,gf(),it=t,De=l=nr(t.current,null),ze=i,Ze=0,mn=null,jr=!1,ca=ja(t,i),cf=!1,fa=gn=ff=Ei=Br=gt=0,on=gl=null,df=!1,(i&8)!==0&&(i|=i&32);var u=t.entangledLanes;if(u!==0)for(t=t.entanglements,u&=i;0<u;){var p=31-rt(u),m=1<<p;i|=t[p],u&=~m}return pr=i,Eo(),l}function cy(t,i){Ce=null,B.H=sl,i===na||i===Oo?(i=Am(),Ze=3):i===bc?(i=Am(),Ze=4):Ze=i===Yc?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,mn=i,De===null&&(gt=1,qo(t,wn(i,t.current)))}function fy(){var t=hn.current;return t===null?!0:(ze&4194048)===ze?Tn===null:(ze&62914560)===ze||(ze&536870912)!==0?t===Tn:!1}function dy(){var t=B.H;return B.H=sl,t===null?sl:t}function hy(){var t=B.A;return B.A=hS,t}function ns(){gt=4,jr||(ze&4194048)!==ze&&hn.current!==null||(ca=!0),(Br&134217727)===0&&(Ei&134217727)===0||it===null||Pr(it,ze,gn,!1)}function yf(t,i,l){var u=Xe;Xe|=2;var p=dy(),m=hy();(it!==t||ze!==i)&&(es=null,ha(t,i)),i=!1;var v=gt;e:do try{if(Ze!==0&&De!==null){var E=De,L=mn;switch(Ze){case 8:gf(),v=6;break e;case 3:case 2:case 9:case 6:hn.current===null&&(i=!0);var G=Ze;if(Ze=0,mn=null,pa(t,E,L,G),l&&ca){v=0;break e}break;default:G=Ze,Ze=0,mn=null,pa(t,E,L,G)}}gS(),v=gt;break}catch(J){cy(t,J)}while(!0);return i&&t.shellSuspendCounter++,ir=hi=null,Xe=u,B.H=p,B.A=m,De===null&&(it=null,ze=0,Eo()),v}function gS(){for(;De!==null;)py(De)}function yS(t,i){var l=Xe;Xe|=2;var u=dy(),p=hy();it!==t||ze!==i?(es=null,Wo=nt()+500,ha(t,i)):ca=ja(t,i);e:do try{if(Ze!==0&&De!==null){i=De;var m=mn;t:switch(Ze){case 1:Ze=0,mn=null,pa(t,i,m,1);break;case 2:case 9:if(wm(m)){Ze=0,mn=null,my(i);break}i=function(){Ze!==2&&Ze!==9||it!==t||(Ze=7),Fn(t)},m.then(i,i);break e;case 3:Ze=7;break e;case 4:Ze=5;break e;case 7:wm(m)?(Ze=0,mn=null,my(i)):(Ze=0,mn=null,pa(t,i,m,7));break;case 5:var v=null;switch(De.tag){case 26:v=De.memoizedState;case 5:case 27:var E=De;if(v?e_(v):E.stateNode.complete){Ze=0,mn=null;var L=E.sibling;if(L!==null)De=L;else{var G=E.return;G!==null?(De=G,rs(G)):De=null}break t}}Ze=0,mn=null,pa(t,i,m,5);break;case 6:Ze=0,mn=null,pa(t,i,m,6);break;case 8:gf(),gt=6;break e;default:throw Error(a(462))}}_S();break}catch(J){cy(t,J)}while(!0);return ir=hi=null,B.H=u,B.A=p,Xe=l,De!==null?0:(it=null,ze=0,Eo(),gt)}function _S(){for(;De!==null&&!qt();)py(De)}function py(t){var i=Bg(t.alternate,t,pr);t.memoizedProps=t.pendingProps,i===null?rs(t):De=i}function my(t){var i=t,l=i.alternate;switch(i.tag){case 15:case 0:i=Dg(l,i,i.pendingProps,i.type,void 0,ze);break;case 11:i=Dg(l,i,i.pendingProps,i.type.render,i.ref,ze);break;case 5:Lc(i);default:Vg(l,i),i=De=hm(i,pr),i=Bg(l,i,pr)}t.memoizedProps=t.pendingProps,i===null?rs(t):De=i}function pa(t,i,l,u){ir=hi=null,Lc(i),ra=null,el=0;var p=i.return;try{if(lS(t,p,i,l,ze)){gt=1,qo(t,wn(l,t.current)),De=null;return}}catch(m){if(p!==null)throw De=p,m;gt=1,qo(t,wn(l,t.current)),De=null;return}i.flags&32768?(Ue||u===1?t=!0:ca||(ze&536870912)!==0?t=!1:(jr=t=!0,(u===2||u===9||u===3||u===6)&&(u=hn.current,u!==null&&u.tag===13&&(u.flags|=16384))),gy(i,t)):rs(i)}function rs(t){var i=t;do{if((i.flags&32768)!==0){gy(i,jr);return}t=i.return;var l=uS(i.alternate,i,pr);if(l!==null){De=l;return}if(i=i.sibling,i!==null){De=i;return}De=i=t}while(i!==null);gt===0&&(gt=5)}function gy(t,i){do{var l=cS(t.alternate,t);if(l!==null){l.flags&=32767,De=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!i&&(t=t.sibling,t!==null)){De=t;return}De=t=l}while(t!==null);gt=6,De=null}function yy(t,i,l,u,p,m,v,E,L){t.cancelPendingCommit=null;do is();while(Ct!==0);if((Xe&6)!==0)throw Error(a(327));if(i!==null){if(i===t.current)throw Error(a(177));if(m=i.lanes|i.childLanes,m|=ic,Kx(t,l,m,v,E,L),t===it&&(De=it=null,ze=0),da=i,Vr=t,mr=l,hf=m,pf=p,ly=u,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,ES(Ee,function(){return Ey(),null})):(t.callbackNode=null,t.callbackPriority=0),u=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||u){u=B.T,B.T=null,p=ne.p,ne.p=2,v=Xe,Xe|=4;try{fS(t,i,l)}finally{Xe=v,ne.p=p,B.T=u}}Ct=1,_y(),by(),vy()}}function _y(){if(Ct===1){Ct=0;var t=Vr,i=da,l=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||l){l=B.T,B.T=null;var u=ne.p;ne.p=2;var p=Xe;Xe|=4;try{Jg(i,t);var m=Rf,v=im(t.containerInfo),E=m.focusedElem,L=m.selectionRange;if(v!==E&&E&&E.ownerDocument&&rm(E.ownerDocument.documentElement,E)){if(L!==null&&Wu(E)){var G=L.start,J=L.end;if(J===void 0&&(J=G),"selectionStart"in E)E.selectionStart=G,E.selectionEnd=Math.min(J,E.value.length);else{var te=E.ownerDocument||document,$=te&&te.defaultView||window;if($.getSelection){var X=$.getSelection(),he=E.textContent.length,Se=Math.min(L.start,he),tt=L.end===void 0?Se:Math.min(L.end,he);!X.extend&&Se>tt&&(v=tt,tt=Se,Se=v);var U=nm(E,Se),z=nm(E,tt);if(U&&z&&(X.rangeCount!==1||X.anchorNode!==U.node||X.anchorOffset!==U.offset||X.focusNode!==z.node||X.focusOffset!==z.offset)){var H=te.createRange();H.setStart(U.node,U.offset),X.removeAllRanges(),Se>tt?(X.addRange(H),X.extend(z.node,z.offset)):(H.setEnd(z.node,z.offset),X.addRange(H))}}}}for(te=[],X=E;X=X.parentNode;)X.nodeType===1&&te.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<te.length;E++){var ee=te[E];ee.element.scrollLeft=ee.left,ee.element.scrollTop=ee.top}}gs=!!Tf,Rf=Tf=null}finally{Xe=p,ne.p=u,B.T=l}}t.current=i,Ct=2}}function by(){if(Ct===2){Ct=0;var t=Vr,i=da,l=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||l){l=B.T,B.T=null;var u=ne.p;ne.p=2;var p=Xe;Xe|=4;try{Yg(t,i.alternate,i)}finally{Xe=p,ne.p=u,B.T=l}}Ct=3}}function vy(){if(Ct===4||Ct===3){Ct=0,pt();var t=Vr,i=da,l=mr,u=ly;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Ct=5:(Ct=0,da=Vr=null,xy(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(Ur=null),Mu(l),i=i.stateNode,At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(kt,i,void 0,(i.current.flags&128)===128)}catch{}if(u!==null){i=B.T,p=ne.p,ne.p=2,B.T=null;try{for(var m=t.onRecoverableError,v=0;v<u.length;v++){var E=u[v];m(E.value,{componentStack:E.stack})}}finally{B.T=i,ne.p=p}}(mr&3)!==0&&is(),Fn(t),p=t.pendingLanes,(l&261930)!==0&&(p&42)!==0?t===mf?yl++:(yl=0,mf=t):yl=0,_l(0)}}function xy(t,i){(t.pooledCacheLanes&=i)===0&&(i=t.pooledCache,i!=null&&(t.pooledCache=null,Ja(i)))}function is(){return _y(),by(),vy(),Ey()}function Ey(){if(Ct!==5)return!1;var t=Vr,i=hf;hf=0;var l=Mu(mr),u=B.T,p=ne.p;try{ne.p=32>l?32:l,B.T=null,l=pf,pf=null;var m=Vr,v=mr;if(Ct=0,da=Vr=null,mr=0,(Xe&6)!==0)throw Error(a(331));var E=Xe;if(Xe|=4,ry(m.current),ey(m,m.current,v,l),Xe=E,_l(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(kt,m)}catch{}return!0}finally{ne.p=p,B.T=u,xy(t,i)}}function Sy(t,i,l){i=wn(l,i),i=Fc(t.stateNode,i,2),t=Nr(t,i,2),t!==null&&(Ba(t,2),Fn(t))}function Ke(t,i,l){if(t.tag===3)Sy(t,t,l);else for(;i!==null;){if(i.tag===3){Sy(i,t,l);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Ur===null||!Ur.has(u))){t=wn(l,t),l=wg(2),u=Nr(i,l,2),u!==null&&(kg(l,u,i,t),Ba(u,2),Fn(u));break}}i=i.return}}function _f(t,i,l){var u=t.pingCache;if(u===null){u=t.pingCache=new pS;var p=new Set;u.set(i,p)}else p=u.get(i),p===void 0&&(p=new Set,u.set(i,p));p.has(l)||(cf=!0,p.add(l),t=bS.bind(null,t,i,l),i.then(t,t))}function bS(t,i,l){var u=t.pingCache;u!==null&&u.delete(i),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,it===t&&(ze&l)===l&&(gt===4||gt===3&&(ze&62914560)===ze&&300>nt()-Jo?(Xe&2)===0&&ha(t,0):ff|=l,fa===ze&&(fa=0)),Fn(t)}function wy(t,i){i===0&&(i=_p()),t=ci(t,i),t!==null&&(Ba(t,i),Fn(t))}function vS(t){var i=t.memoizedState,l=0;i!==null&&(l=i.retryLane),wy(t,l)}function xS(t,i){var l=0;switch(t.tag){case 31:case 13:var u=t.stateNode,p=t.memoizedState;p!==null&&(l=p.retryLane);break;case 19:u=t.stateNode;break;case 22:u=t.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(i),wy(t,l)}function ES(t,i){return Je(t,i)}var as=null,ma=null,bf=!1,ls=!1,vf=!1,Hr=0;function Fn(t){t!==ma&&t.next===null&&(ma===null?as=ma=t:ma=ma.next=t),ls=!0,bf||(bf=!0,wS())}function _l(t,i){if(!vf&&ls){vf=!0;do for(var l=!1,u=as;u!==null;){if(t!==0){var p=u.pendingLanes;if(p===0)var m=0;else{var v=u.suspendedLanes,E=u.pingedLanes;m=(1<<31-rt(42|t)+1)-1,m&=p&~(v&~E),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(l=!0,Ty(u,m))}else m=ze,m=uo(u,u===it?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||ja(u,m)||(l=!0,Ty(u,m));u=u.next}while(l);vf=!1}}function SS(){ky()}function ky(){ls=bf=!1;var t=0;Hr!==0&&MS()&&(t=Hr);for(var i=nt(),l=null,u=as;u!==null;){var p=u.next,m=Ay(u,i);m===0?(u.next=null,l===null?as=p:l.next=p,p===null&&(ma=l)):(l=u,(t!==0||(m&3)!==0)&&(ls=!0)),u=p}Ct!==0&&Ct!==5||_l(t),Hr!==0&&(Hr=0)}function Ay(t,i){for(var l=t.suspendedLanes,u=t.pingedLanes,p=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var v=31-rt(m),E=1<<v,L=p[v];L===-1?((E&l)===0||(E&u)!==0)&&(p[v]=Zx(E,i)):L<=i&&(t.expiredLanes|=E),m&=~E}if(i=it,l=ze,l=uo(t,t===i?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u=t.callbackNode,l===0||t===i&&(Ze===2||Ze===9)||t.cancelPendingCommit!==null)return u!==null&&u!==null&&Gt(u),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||ja(t,l)){if(i=l&-l,i===t.callbackPriority)return i;switch(u!==null&&Gt(u),Mu(l)){case 2:case 8:l=ce;break;case 32:l=Ee;break;case 268435456:l=Oe;break;default:l=Ee}return u=Cy.bind(null,t),l=Je(l,u),t.callbackPriority=i,t.callbackNode=l,i}return u!==null&&u!==null&&Gt(u),t.callbackPriority=2,t.callbackNode=null,2}function Cy(t,i){if(Ct!==0&&Ct!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(is()&&t.callbackNode!==l)return null;var u=ze;return u=uo(t,t===it?u:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),u===0?null:(sy(t,u,i),Ay(t,nt()),t.callbackNode!=null&&t.callbackNode===l?Cy.bind(null,t):null)}function Ty(t,i){if(is())return null;sy(t,i,!0)}function wS(){IS(function(){(Xe&6)!==0?Je(K,SS):ky()})}function xf(){if(Hr===0){var t=ea;t===0&&(t=lo,lo<<=1,(lo&261888)===0&&(lo=256)),Hr=t}return Hr}function Ry(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:po(""+t)}function Oy(t,i){var l=i.ownerDocument.createElement("input");return l.name=i.name,l.value=i.value,t.id&&l.setAttribute("form",t.id),i.parentNode.insertBefore(l,i),t=new FormData(t),l.parentNode.removeChild(l),t}function kS(t,i,l,u,p){if(i==="submit"&&l&&l.stateNode===p){var m=Ry((p[tn]||null).action),v=u.submitter;v&&(i=(i=v[tn]||null)?Ry(i.formAction):v.getAttribute("formAction"),i!==null&&(m=i,v=null));var E=new _o("action","action",null,u,p);t.push({event:E,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(Hr!==0){var L=v?Oy(p,v):new FormData(p);Vc(l,{pending:!0,data:L,method:p.method,action:m},null,L)}}else typeof m=="function"&&(E.preventDefault(),L=v?Oy(p,v):new FormData(p),Vc(l,{pending:!0,data:L,method:p.method,action:m},m,L))},currentTarget:p}]})}}for(var Ef=0;Ef<rc.length;Ef++){var Sf=rc[Ef],AS=Sf.toLowerCase(),CS=Sf[0].toUpperCase()+Sf.slice(1);jn(AS,"on"+CS)}jn(om,"onAnimationEnd"),jn(sm,"onAnimationIteration"),jn(um,"onAnimationStart"),jn("dblclick","onDoubleClick"),jn("focusin","onFocus"),jn("focusout","onBlur"),jn(GE,"onTransitionRun"),jn(qE,"onTransitionStart"),jn($E,"onTransitionCancel"),jn(cm,"onTransitionEnd"),Vi("onMouseEnter",["mouseout","mouseover"]),Vi("onMouseLeave",["mouseout","mouseover"]),Vi("onPointerEnter",["pointerout","pointerover"]),Vi("onPointerLeave",["pointerout","pointerover"]),li("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),li("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),li("onBeforeInput",["compositionend","keypress","textInput","paste"]),li("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),li("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),li("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bl="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),TS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bl));function Ly(t,i){i=(i&4)!==0;for(var l=0;l<t.length;l++){var u=t[l],p=u.event;u=u.listeners;e:{var m=void 0;if(i)for(var v=u.length-1;0<=v;v--){var E=u[v],L=E.instance,G=E.currentTarget;if(E=E.listener,L!==m&&p.isPropagationStopped())break e;m=E,p.currentTarget=G;try{m(p)}catch(J){xo(J)}p.currentTarget=null,m=L}else for(v=0;v<u.length;v++){if(E=u[v],L=E.instance,G=E.currentTarget,E=E.listener,L!==m&&p.isPropagationStopped())break e;m=E,p.currentTarget=G;try{m(p)}catch(J){xo(J)}p.currentTarget=null,m=L}}}}function Ne(t,i){var l=i[zu];l===void 0&&(l=i[zu]=new Set);var u=t+"__bubble";l.has(u)||(Dy(i,t,2,!1),l.add(u))}function wf(t,i,l){var u=0;i&&(u|=4),Dy(l,t,u,i)}var os="_reactListening"+Math.random().toString(36).slice(2);function kf(t){if(!t[os]){t[os]=!0,kp.forEach(function(l){l!=="selectionchange"&&(TS.has(l)||wf(l,!1,t),wf(l,!0,t))});var i=t.nodeType===9?t:t.ownerDocument;i===null||i[os]||(i[os]=!0,wf("selectionchange",!1,i))}}function Dy(t,i,l,u){switch(o_(i)){case 2:var p=nw;break;case 8:p=rw;break;default:p=Vf}l=p.bind(null,i,l,t),p=void 0,!qu||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(p=!0),u?p!==void 0?t.addEventListener(i,l,{capture:!0,passive:p}):t.addEventListener(i,l,!0):p!==void 0?t.addEventListener(i,l,{passive:p}):t.addEventListener(i,l,!1)}function Af(t,i,l,u,p){var m=u;if((i&1)===0&&(i&2)===0&&u!==null)e:for(;;){if(u===null)return;var v=u.tag;if(v===3||v===4){var E=u.stateNode.containerInfo;if(E===p)break;if(v===4)for(v=u.return;v!==null;){var L=v.tag;if((L===3||L===4)&&v.stateNode.containerInfo===p)return;v=v.return}for(;E!==null;){if(v=ji(E),v===null)return;if(L=v.tag,L===5||L===6||L===26||L===27){u=m=v;continue e}E=E.parentNode}}u=u.return}jp(function(){var G=m,J=Hu(l),te=[];e:{var $=fm.get(t);if($!==void 0){var X=_o,he=t;switch(t){case"keypress":if(go(l)===0)break e;case"keydown":case"keyup":X=xE;break;case"focusin":he="focus",X=Xu;break;case"focusout":he="blur",X=Xu;break;case"beforeblur":case"afterblur":X=Xu;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=Vp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=uE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=wE;break;case om:case sm:case um:X=dE;break;case cm:X=AE;break;case"scroll":case"scrollend":X=oE;break;case"wheel":X=TE;break;case"copy":case"cut":case"paste":X=pE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=Hp;break;case"toggle":case"beforetoggle":X=OE}var Se=(i&4)!==0,tt=!Se&&(t==="scroll"||t==="scrollend"),U=Se?$!==null?$+"Capture":null:$;Se=[];for(var z=G,H;z!==null;){var ee=z;if(H=ee.stateNode,ee=ee.tag,ee!==5&&ee!==26&&ee!==27||H===null||U===null||(ee=Pa(z,U),ee!=null&&Se.push(vl(z,ee,H))),tt)break;z=z.return}0<Se.length&&($=new X($,he,null,l,J),te.push({event:$,listeners:Se}))}}if((i&7)===0){e:{if($=t==="mouseover"||t==="pointerover",X=t==="mouseout"||t==="pointerout",$&&l!==Pu&&(he=l.relatedTarget||l.fromElement)&&(ji(he)||he[Ii]))break e;if((X||$)&&($=J.window===J?J:($=J.ownerDocument)?$.defaultView||$.parentWindow:window,X?(he=l.relatedTarget||l.toElement,X=G,he=he?ji(he):null,he!==null&&(tt=s(he),Se=he.tag,he!==tt||Se!==5&&Se!==27&&Se!==6)&&(he=null)):(X=null,he=G),X!==he)){if(Se=Vp,ee="onMouseLeave",U="onMouseEnter",z="mouse",(t==="pointerout"||t==="pointerover")&&(Se=Hp,ee="onPointerLeave",U="onPointerEnter",z="pointer"),tt=X==null?$:Va(X),H=he==null?$:Va(he),$=new Se(ee,z+"leave",X,l,J),$.target=tt,$.relatedTarget=H,ee=null,ji(J)===G&&(Se=new Se(U,z+"enter",he,l,J),Se.target=H,Se.relatedTarget=tt,ee=Se),tt=ee,X&&he)t:{for(Se=RS,U=X,z=he,H=0,ee=U;ee;ee=Se(ee))H++;ee=0;for(var be=z;be;be=Se(be))ee++;for(;0<H-ee;)U=Se(U),H--;for(;0<ee-H;)z=Se(z),ee--;for(;H--;){if(U===z||z!==null&&U===z.alternate){Se=U;break t}U=Se(U),z=Se(z)}Se=null}else Se=null;X!==null&&Ny(te,$,X,Se,!1),he!==null&&tt!==null&&Ny(te,tt,he,Se,!0)}}e:{if($=G?Va(G):window,X=$.nodeName&&$.nodeName.toLowerCase(),X==="select"||X==="input"&&$.type==="file")var $e=Zp;else if(Xp($))if(Kp)$e=VE;else{$e=BE;var ye=jE}else X=$.nodeName,!X||X.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?G&&Vu(G.elementType)&&($e=Zp):$e=UE;if($e&&($e=$e(t,G))){Qp(te,$e,l,J);break e}ye&&ye(t,$,G),t==="focusout"&&G&&$.type==="number"&&G.memoizedProps.value!=null&&Uu($,"number",$.value)}switch(ye=G?Va(G):window,t){case"focusin":(Xp(ye)||ye.contentEditable==="true")&&(Fi=ye,ec=G,Qa=null);break;case"focusout":Qa=ec=Fi=null;break;case"mousedown":tc=!0;break;case"contextmenu":case"mouseup":case"dragend":tc=!1,am(te,l,J);break;case"selectionchange":if(HE)break;case"keydown":case"keyup":am(te,l,J)}var Te;if(Zu)e:{switch(t){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else $i?Fp(t,l)&&(Ie="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(Ie="onCompositionStart");Ie&&(Gp&&l.locale!=="ko"&&($i||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&$i&&(Te=Bp()):(Ar=J,$u="value"in Ar?Ar.value:Ar.textContent,$i=!0)),ye=ss(G,Ie),0<ye.length&&(Ie=new Pp(Ie,t,null,l,J),te.push({event:Ie,listeners:ye}),Te?Ie.data=Te:(Te=Yp(l),Te!==null&&(Ie.data=Te)))),(Te=DE?NE(t,l):ME(t,l))&&(Ie=ss(G,"onBeforeInput"),0<Ie.length&&(ye=new Pp("onBeforeInput","beforeinput",null,l,J),te.push({event:ye,listeners:Ie}),ye.data=Te)),kS(te,t,G,l,J)}Ly(te,i)})}function vl(t,i,l){return{instance:t,listener:i,currentTarget:l}}function ss(t,i){for(var l=i+"Capture",u=[];t!==null;){var p=t,m=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||m===null||(p=Pa(t,l),p!=null&&u.unshift(vl(t,p,m)),p=Pa(t,i),p!=null&&u.push(vl(t,p,m))),t.tag===3)return u;t=t.return}return[]}function RS(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Ny(t,i,l,u,p){for(var m=i._reactName,v=[];l!==null&&l!==u;){var E=l,L=E.alternate,G=E.stateNode;if(E=E.tag,L!==null&&L===u)break;E!==5&&E!==26&&E!==27||G===null||(L=G,p?(G=Pa(l,m),G!=null&&v.unshift(vl(l,G,L))):p||(G=Pa(l,m),G!=null&&v.push(vl(l,G,L)))),l=l.return}v.length!==0&&t.push({event:i,listeners:v})}var OS=/\r\n?/g,LS=/\u0000|\uFFFD/g;function My(t){return(typeof t=="string"?t:""+t).replace(OS,`
|
|
10
|
+
`).replace(LS,"")}function zy(t,i){return i=My(i),My(t)===i}function et(t,i,l,u,p,m){switch(l){case"children":typeof u=="string"?i==="body"||i==="textarea"&&u===""||Hi(t,u):(typeof u=="number"||typeof u=="bigint")&&i!=="body"&&Hi(t,""+u);break;case"className":fo(t,"class",u);break;case"tabIndex":fo(t,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":fo(t,l,u);break;case"style":zp(t,u,m);break;case"data":if(i!=="object"){fo(t,"data",u);break}case"src":case"href":if(u===""&&(i!=="a"||l!=="href")){t.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(l);break}u=po(""+u),t.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){t.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(l==="formAction"?(i!=="input"&&et(t,i,"name",p.name,p,null),et(t,i,"formEncType",p.formEncType,p,null),et(t,i,"formMethod",p.formMethod,p,null),et(t,i,"formTarget",p.formTarget,p,null)):(et(t,i,"encType",p.encType,p,null),et(t,i,"method",p.method,p,null),et(t,i,"target",p.target,p,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){t.removeAttribute(l);break}u=po(""+u),t.setAttribute(l,u);break;case"onClick":u!=null&&(t.onclick=er);break;case"onScroll":u!=null&&Ne("scroll",t);break;case"onScrollEnd":u!=null&&Ne("scrollend",t);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(p.children!=null)throw Error(a(60));t.innerHTML=l}}break;case"multiple":t.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":t.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){t.removeAttribute("xlink:href");break}l=po(""+u),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(l,""+u):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":u===!0?t.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?t.setAttribute(l,u):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?t.setAttribute(l,u):t.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?t.removeAttribute(l):t.setAttribute(l,u);break;case"popover":Ne("beforetoggle",t),Ne("toggle",t),co(t,"popover",u);break;case"xlinkActuate":Wn(t,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Wn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Wn(t,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Wn(t,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Wn(t,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Wn(t,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Wn(t,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Wn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Wn(t,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":co(t,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=aE.get(l)||l,co(t,l,u))}}function Cf(t,i,l,u,p,m){switch(l){case"style":zp(t,u,m);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(p.children!=null)throw Error(a(60));t.innerHTML=l}}break;case"children":typeof u=="string"?Hi(t,u):(typeof u=="number"||typeof u=="bigint")&&Hi(t,""+u);break;case"onScroll":u!=null&&Ne("scroll",t);break;case"onScrollEnd":u!=null&&Ne("scrollend",t);break;case"onClick":u!=null&&(t.onclick=er);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ap.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(p=l.endsWith("Capture"),i=l.slice(2,p?l.length-7:void 0),m=t[tn]||null,m=m!=null?m[l]:null,typeof m=="function"&&t.removeEventListener(i,m,p),typeof u=="function")){typeof m!="function"&&m!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(i,u,p);break e}l in t?t[l]=u:u===!0?t.setAttribute(l,""):co(t,l,u)}}}function Ht(t,i,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ne("error",t),Ne("load",t);var u=!1,p=!1,m;for(m in l)if(l.hasOwnProperty(m)){var v=l[m];if(v!=null)switch(m){case"src":u=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:et(t,i,m,v,l,null)}}p&&et(t,i,"srcSet",l.srcSet,l,null),u&&et(t,i,"src",l.src,l,null);return;case"input":Ne("invalid",t);var E=m=v=p=null,L=null,G=null;for(u in l)if(l.hasOwnProperty(u)){var J=l[u];if(J!=null)switch(u){case"name":p=J;break;case"type":v=J;break;case"checked":L=J;break;case"defaultChecked":G=J;break;case"value":m=J;break;case"defaultValue":E=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(a(137,i));break;default:et(t,i,u,J,l,null)}}Lp(t,m,E,L,G,v,p,!1);return;case"select":Ne("invalid",t),u=v=m=null;for(p in l)if(l.hasOwnProperty(p)&&(E=l[p],E!=null))switch(p){case"value":m=E;break;case"defaultValue":v=E;break;case"multiple":u=E;default:et(t,i,p,E,l,null)}i=m,l=v,t.multiple=!!u,i!=null?Pi(t,!!u,i,!1):l!=null&&Pi(t,!!u,l,!0);return;case"textarea":Ne("invalid",t),m=p=u=null;for(v in l)if(l.hasOwnProperty(v)&&(E=l[v],E!=null))switch(v){case"value":u=E;break;case"defaultValue":p=E;break;case"children":m=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(a(91));break;default:et(t,i,v,E,l,null)}Np(t,u,p,m);return;case"option":for(L in l)l.hasOwnProperty(L)&&(u=l[L],u!=null)&&(L==="selected"?t.selected=u&&typeof u!="function"&&typeof u!="symbol":et(t,i,L,u,l,null));return;case"dialog":Ne("beforetoggle",t),Ne("toggle",t),Ne("cancel",t),Ne("close",t);break;case"iframe":case"object":Ne("load",t);break;case"video":case"audio":for(u=0;u<bl.length;u++)Ne(bl[u],t);break;case"image":Ne("error",t),Ne("load",t);break;case"details":Ne("toggle",t);break;case"embed":case"source":case"link":Ne("error",t),Ne("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(G in l)if(l.hasOwnProperty(G)&&(u=l[G],u!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:et(t,i,G,u,l,null)}return;default:if(Vu(i)){for(J in l)l.hasOwnProperty(J)&&(u=l[J],u!==void 0&&Cf(t,i,J,u,l,void 0));return}}for(E in l)l.hasOwnProperty(E)&&(u=l[E],u!=null&&et(t,i,E,u,l,null))}function DS(t,i,l,u){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,m=null,v=null,E=null,L=null,G=null,J=null;for(X in l){var te=l[X];if(l.hasOwnProperty(X)&&te!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":L=te;default:u.hasOwnProperty(X)||et(t,i,X,null,u,te)}}for(var $ in u){var X=u[$];if(te=l[$],u.hasOwnProperty($)&&(X!=null||te!=null))switch($){case"type":m=X;break;case"name":p=X;break;case"checked":G=X;break;case"defaultChecked":J=X;break;case"value":v=X;break;case"defaultValue":E=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(a(137,i));break;default:X!==te&&et(t,i,$,X,u,te)}}Bu(t,v,E,L,G,J,m,p);return;case"select":X=v=E=$=null;for(m in l)if(L=l[m],l.hasOwnProperty(m)&&L!=null)switch(m){case"value":break;case"multiple":X=L;default:u.hasOwnProperty(m)||et(t,i,m,null,u,L)}for(p in u)if(m=u[p],L=l[p],u.hasOwnProperty(p)&&(m!=null||L!=null))switch(p){case"value":$=m;break;case"defaultValue":E=m;break;case"multiple":v=m;default:m!==L&&et(t,i,p,m,u,L)}i=E,l=v,u=X,$!=null?Pi(t,!!l,$,!1):!!u!=!!l&&(i!=null?Pi(t,!!l,i,!0):Pi(t,!!l,l?[]:"",!1));return;case"textarea":X=$=null;for(E in l)if(p=l[E],l.hasOwnProperty(E)&&p!=null&&!u.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:et(t,i,E,null,u,p)}for(v in u)if(p=u[v],m=l[v],u.hasOwnProperty(v)&&(p!=null||m!=null))switch(v){case"value":$=p;break;case"defaultValue":X=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(a(91));break;default:p!==m&&et(t,i,v,p,u,m)}Dp(t,$,X);return;case"option":for(var he in l)$=l[he],l.hasOwnProperty(he)&&$!=null&&!u.hasOwnProperty(he)&&(he==="selected"?t.selected=!1:et(t,i,he,null,u,$));for(L in u)$=u[L],X=l[L],u.hasOwnProperty(L)&&$!==X&&($!=null||X!=null)&&(L==="selected"?t.selected=$&&typeof $!="function"&&typeof $!="symbol":et(t,i,L,$,u,X));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Se in l)$=l[Se],l.hasOwnProperty(Se)&&$!=null&&!u.hasOwnProperty(Se)&&et(t,i,Se,null,u,$);for(G in u)if($=u[G],X=l[G],u.hasOwnProperty(G)&&$!==X&&($!=null||X!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(a(137,i));break;default:et(t,i,G,$,u,X)}return;default:if(Vu(i)){for(var tt in l)$=l[tt],l.hasOwnProperty(tt)&&$!==void 0&&!u.hasOwnProperty(tt)&&Cf(t,i,tt,void 0,u,$);for(J in u)$=u[J],X=l[J],!u.hasOwnProperty(J)||$===X||$===void 0&&X===void 0||Cf(t,i,J,$,u,X);return}}for(var U in l)$=l[U],l.hasOwnProperty(U)&&$!=null&&!u.hasOwnProperty(U)&&et(t,i,U,null,u,$);for(te in u)$=u[te],X=l[te],!u.hasOwnProperty(te)||$===X||$==null&&X==null||et(t,i,te,$,u,X)}function Iy(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function NS(){if(typeof performance.getEntriesByType=="function"){for(var t=0,i=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var p=l[u],m=p.transferSize,v=p.initiatorType,E=p.duration;if(m&&E&&Iy(v)){for(v=0,E=p.responseEnd,u+=1;u<l.length;u++){var L=l[u],G=L.startTime;if(G>E)break;var J=L.transferSize,te=L.initiatorType;J&&Iy(te)&&(L=L.responseEnd,v+=J*(L<E?1:(E-G)/(L-G)))}if(--u,i+=8*(m+v)/(p.duration/1e3),t++,10<t)break}}if(0<t)return i/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Tf=null,Rf=null;function us(t){return t.nodeType===9?t:t.ownerDocument}function jy(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function By(t,i){if(t===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&i==="foreignObject"?0:t}function Of(t,i){return t==="textarea"||t==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Lf=null;function MS(){var t=window.event;return t&&t.type==="popstate"?t===Lf?!1:(Lf=t,!0):(Lf=null,!1)}var Uy=typeof setTimeout=="function"?setTimeout:void 0,zS=typeof clearTimeout=="function"?clearTimeout:void 0,Vy=typeof Promise=="function"?Promise:void 0,IS=typeof queueMicrotask=="function"?queueMicrotask:typeof Vy<"u"?function(t){return Vy.resolve(null).then(t).catch(jS)}:Uy;function jS(t){setTimeout(function(){throw t})}function Gr(t){return t==="head"}function Py(t,i){var l=i,u=0;do{var p=l.nextSibling;if(t.removeChild(l),p&&p.nodeType===8)if(l=p.data,l==="/$"||l==="/&"){if(u===0){t.removeChild(p),ba(i);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")xl(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,xl(l);for(var m=l.firstChild;m;){var v=m.nextSibling,E=m.nodeName;m[Ua]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&m.rel.toLowerCase()==="stylesheet"||l.removeChild(m),m=v}}else l==="body"&&xl(t.ownerDocument.body);l=p}while(l);ba(i)}function Hy(t,i){var l=t;t=0;do{var u=l.nextSibling;if(l.nodeType===1?i?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(i?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=u}while(l)}function Df(t){var i=t.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var l=i;switch(i=i.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Df(l),Iu(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function BS(t,i,l,u){for(;t.nodeType===1;){var p=l;if(t.nodeName.toLowerCase()!==i.toLowerCase()){if(!u&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(u){if(!t[Ua])switch(i){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==p.rel||t.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||t.getAttribute("title")!==(p.title==null?null:p.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(i==="input"&&t.type==="hidden"){var m=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=Rn(t.nextSibling),t===null)break}return null}function US(t,i,l){if(i==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Rn(t.nextSibling),t===null))return null;return t}function Gy(t,i){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Rn(t.nextSibling),t===null))return null;return t}function Nf(t){return t.data==="$?"||t.data==="$~"}function Mf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function VS(t,i){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=i;else if(t.data!=="$?"||l.readyState!=="loading")i();else{var u=function(){i(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),t._reactRetry=u}}function Rn(t){for(;t!=null;t=t.nextSibling){var i=t.nodeType;if(i===1||i===3)break;if(i===8){if(i=t.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return t}var zf=null;function qy(t){t=t.nextSibling;for(var i=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(i===0)return Rn(t.nextSibling);i--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||i++}t=t.nextSibling}return null}function $y(t){t=t.previousSibling;for(var i=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(i===0)return t;i--}else l!=="/$"&&l!=="/&"||i++}t=t.previousSibling}return null}function Fy(t,i,l){switch(i=us(l),t){case"html":if(t=i.documentElement,!t)throw Error(a(452));return t;case"head":if(t=i.head,!t)throw Error(a(453));return t;case"body":if(t=i.body,!t)throw Error(a(454));return t;default:throw Error(a(451))}}function xl(t){for(var i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Iu(t)}var On=new Map,Yy=new Set;function cs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var gr=ne.d;ne.d={f:PS,r:HS,D:GS,C:qS,L:$S,m:FS,X:XS,S:YS,M:QS};function PS(){var t=gr.f(),i=ts();return t||i}function HS(t){var i=Bi(t);i!==null&&i.tag===5&&i.type==="form"?cg(i):gr.r(t)}var ga=typeof document>"u"?null:document;function Xy(t,i,l){var u=ga;if(u&&typeof i=="string"&&i){var p=En(i);p='link[rel="'+t+'"][href="'+p+'"]',typeof l=="string"&&(p+='[crossorigin="'+l+'"]'),Yy.has(p)||(Yy.add(p),t={rel:t,crossOrigin:l,href:i},u.querySelector(p)===null&&(i=u.createElement("link"),Ht(i,"link",t),Nt(i),u.head.appendChild(i)))}}function GS(t){gr.D(t),Xy("dns-prefetch",t,null)}function qS(t,i){gr.C(t,i),Xy("preconnect",t,i)}function $S(t,i,l){gr.L(t,i,l);var u=ga;if(u&&t&&i){var p='link[rel="preload"][as="'+En(i)+'"]';i==="image"&&l&&l.imageSrcSet?(p+='[imagesrcset="'+En(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(p+='[imagesizes="'+En(l.imageSizes)+'"]')):p+='[href="'+En(t)+'"]';var m=p;switch(i){case"style":m=ya(t);break;case"script":m=_a(t)}On.has(m)||(t=g({rel:"preload",href:i==="image"&&l&&l.imageSrcSet?void 0:t,as:i},l),On.set(m,t),u.querySelector(p)!==null||i==="style"&&u.querySelector(El(m))||i==="script"&&u.querySelector(Sl(m))||(i=u.createElement("link"),Ht(i,"link",t),Nt(i),u.head.appendChild(i)))}}function FS(t,i){gr.m(t,i);var l=ga;if(l&&t){var u=i&&typeof i.as=="string"?i.as:"script",p='link[rel="modulepreload"][as="'+En(u)+'"][href="'+En(t)+'"]',m=p;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=_a(t)}if(!On.has(m)&&(t=g({rel:"modulepreload",href:t},i),On.set(m,t),l.querySelector(p)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Sl(m)))return}u=l.createElement("link"),Ht(u,"link",t),Nt(u),l.head.appendChild(u)}}}function YS(t,i,l){gr.S(t,i,l);var u=ga;if(u&&t){var p=Ui(u).hoistableStyles,m=ya(t);i=i||"default";var v=p.get(m);if(!v){var E={loading:0,preload:null};if(v=u.querySelector(El(m)))E.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":i},l),(l=On.get(m))&&If(t,l);var L=v=u.createElement("link");Nt(L),Ht(L,"link",t),L._p=new Promise(function(G,J){L.onload=G,L.onerror=J}),L.addEventListener("load",function(){E.loading|=1}),L.addEventListener("error",function(){E.loading|=2}),E.loading|=4,fs(v,i,u)}v={type:"stylesheet",instance:v,count:1,state:E},p.set(m,v)}}}function XS(t,i){gr.X(t,i);var l=ga;if(l&&t){var u=Ui(l).hoistableScripts,p=_a(t),m=u.get(p);m||(m=l.querySelector(Sl(p)),m||(t=g({src:t,async:!0},i),(i=On.get(p))&&jf(t,i),m=l.createElement("script"),Nt(m),Ht(m,"link",t),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(p,m))}}function QS(t,i){gr.M(t,i);var l=ga;if(l&&t){var u=Ui(l).hoistableScripts,p=_a(t),m=u.get(p);m||(m=l.querySelector(Sl(p)),m||(t=g({src:t,async:!0,type:"module"},i),(i=On.get(p))&&jf(t,i),m=l.createElement("script"),Nt(m),Ht(m,"link",t),l.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(p,m))}}function Qy(t,i,l,u){var p=(p=le.current)?cs(p):null;if(!p)throw Error(a(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(i=ya(l.href),l=Ui(p).hoistableStyles,u=l.get(i),u||(u={type:"style",instance:null,count:0,state:null},l.set(i,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=ya(l.href);var m=Ui(p).hoistableStyles,v=m.get(t);if(v||(p=p.ownerDocument||p,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,v),(m=p.querySelector(El(t)))&&!m._p&&(v.instance=m,v.state.loading=5),On.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},On.set(t,l),m||ZS(p,t,l,v.state))),i&&u===null)throw Error(a(528,""));return v}if(i&&u!==null)throw Error(a(529,""));return null;case"script":return i=l.async,l=l.src,typeof l=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=_a(l),l=Ui(p).hoistableScripts,u=l.get(i),u||(u={type:"script",instance:null,count:0,state:null},l.set(i,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,t))}}function ya(t){return'href="'+En(t)+'"'}function El(t){return'link[rel="stylesheet"]['+t+"]"}function Zy(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function ZS(t,i,l,u){t.querySelector('link[rel="preload"][as="style"]['+i+"]")?u.loading=1:(i=t.createElement("link"),u.preload=i,i.addEventListener("load",function(){return u.loading|=1}),i.addEventListener("error",function(){return u.loading|=2}),Ht(i,"link",l),Nt(i),t.head.appendChild(i))}function _a(t){return'[src="'+En(t)+'"]'}function Sl(t){return"script[async]"+t}function Ky(t,i,l){if(i.count++,i.instance===null)switch(i.type){case"style":var u=t.querySelector('style[data-href~="'+En(l.href)+'"]');if(u)return i.instance=u,Nt(u),u;var p=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(t.ownerDocument||t).createElement("style"),Nt(u),Ht(u,"style",p),fs(u,l.precedence,t),i.instance=u;case"stylesheet":p=ya(l.href);var m=t.querySelector(El(p));if(m)return i.state.loading|=4,i.instance=m,Nt(m),m;u=Zy(l),(p=On.get(p))&&If(u,p),m=(t.ownerDocument||t).createElement("link"),Nt(m);var v=m;return v._p=new Promise(function(E,L){v.onload=E,v.onerror=L}),Ht(m,"link",u),i.state.loading|=4,fs(m,l.precedence,t),i.instance=m;case"script":return m=_a(l.src),(p=t.querySelector(Sl(m)))?(i.instance=p,Nt(p),p):(u=l,(p=On.get(m))&&(u=g({},l),jf(u,p)),t=t.ownerDocument||t,p=t.createElement("script"),Nt(p),Ht(p,"link",u),t.head.appendChild(p),i.instance=p);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(u=i.instance,i.state.loading|=4,fs(u,l.precedence,t));return i.instance}function fs(t,i,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=u.length?u[u.length-1]:null,m=p,v=0;v<u.length;v++){var E=u[v];if(E.dataset.precedence===i)m=E;else if(m!==p)break}m?m.parentNode.insertBefore(t,m.nextSibling):(i=l.nodeType===9?l.head:l,i.insertBefore(t,i.firstChild))}function If(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.title==null&&(t.title=i.title)}function jf(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.integrity==null&&(t.integrity=i.integrity)}var ds=null;function Jy(t,i,l){if(ds===null){var u=new Map,p=ds=new Map;p.set(l,u)}else p=ds,u=p.get(l),u||(u=new Map,p.set(l,u));if(u.has(t))return u;for(u.set(t,null),l=l.getElementsByTagName(t),p=0;p<l.length;p++){var m=l[p];if(!(m[Ua]||m[Bt]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var v=m.getAttribute(i)||"";v=t+v;var E=u.get(v);E?E.push(m):u.set(v,[m])}}return u}function Wy(t,i,l){t=t.ownerDocument||t,t.head.insertBefore(l,i==="title"?t.querySelector("head > title"):null)}function KS(t,i,l){if(l===1||i.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(t=i.disabled,typeof i.precedence=="string"&&t==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function e_(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function JS(t,i,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var p=ya(u.href),m=i.querySelector(El(p));if(m){i=m._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(t.count++,t=hs.bind(t),i.then(t,t)),l.state.loading|=4,l.instance=m,Nt(m);return}m=i.ownerDocument||i,u=Zy(u),(p=On.get(p))&&If(u,p),m=m.createElement("link"),Nt(m);var v=m;v._p=new Promise(function(E,L){v.onload=E,v.onerror=L}),Ht(m,"link",u),l.instance=m}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,i),(i=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=hs.bind(t),i.addEventListener("load",l),i.addEventListener("error",l))}}var Bf=0;function WS(t,i){return t.stylesheets&&t.count===0&&ms(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var u=setTimeout(function(){if(t.stylesheets&&ms(t,t.stylesheets),t.unsuspend){var m=t.unsuspend;t.unsuspend=null,m()}},6e4+i);0<t.imgBytes&&Bf===0&&(Bf=62500*NS());var p=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ms(t,t.stylesheets),t.unsuspend)){var m=t.unsuspend;t.unsuspend=null,m()}},(t.imgBytes>Bf?50:800)+i);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(u),clearTimeout(p)}}:null}function hs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ms(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ps=null;function ms(t,i){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ps=new Map,i.forEach(ew,t),ps=null,hs.call(t))}function ew(t,i){if(!(i.state.loading&4)){var l=ps.get(t);if(l)var u=l.get(null);else{l=new Map,ps.set(t,l);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<p.length;m++){var v=p[m];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(l.set(v.dataset.precedence,v),u=v)}u&&l.set(null,u)}p=i.instance,v=p.getAttribute("data-precedence"),m=l.get(v)||u,m===u&&l.set(null,p),l.set(v,p),this.count++,u=hs.bind(this),p.addEventListener("load",u),p.addEventListener("error",u),m?m.parentNode.insertBefore(p,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),i.state.loading|=4}}var wl={$$typeof:N,Provider:null,Consumer:null,_currentValue:de,_currentValue2:de,_threadCount:0};function tw(t,i,l,u,p,m,v,E,L){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Du(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Du(0),this.hiddenUpdates=Du(null),this.identifierPrefix=u,this.onUncaughtError=p,this.onCaughtError=m,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function t_(t,i,l,u,p,m,v,E,L,G,J,te){return t=new tw(t,i,l,v,L,G,J,te,E),i=1,m===!0&&(i|=24),m=dn(3,null,null,i),t.current=m,m.stateNode=t,i=gc(),i.refCount++,t.pooledCache=i,i.refCount++,m.memoizedState={element:u,isDehydrated:l,cache:i},vc(m),t}function n_(t){return t?(t=Qi,t):Qi}function r_(t,i,l,u,p,m){p=n_(p),u.context===null?u.context=p:u.pendingContext=p,u=Dr(i),u.payload={element:l},m=m===void 0?null:m,m!==null&&(u.callback=m),l=Nr(t,u,i),l!==null&&(sn(l,t,i),nl(l,t,i))}function i_(t,i){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<i?l:i}}function Uf(t,i){i_(t,i),(t=t.alternate)&&i_(t,i)}function a_(t){if(t.tag===13||t.tag===31){var i=ci(t,67108864);i!==null&&sn(i,t,67108864),Uf(t,67108864)}}function l_(t){if(t.tag===13||t.tag===31){var i=yn();i=Nu(i);var l=ci(t,i);l!==null&&sn(l,t,i),Uf(t,i)}}var gs=!0;function nw(t,i,l,u){var p=B.T;B.T=null;var m=ne.p;try{ne.p=2,Vf(t,i,l,u)}finally{ne.p=m,B.T=p}}function rw(t,i,l,u){var p=B.T;B.T=null;var m=ne.p;try{ne.p=8,Vf(t,i,l,u)}finally{ne.p=m,B.T=p}}function Vf(t,i,l,u){if(gs){var p=Pf(u);if(p===null)Af(t,i,u,ys,l),s_(t,u);else if(aw(p,t,i,l,u))u.stopPropagation();else if(s_(t,u),i&4&&-1<iw.indexOf(t)){for(;p!==null;){var m=Bi(p);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var v=ai(m.pendingLanes);if(v!==0){var E=m;for(E.pendingLanes|=2,E.entangledLanes|=2;v;){var L=1<<31-rt(v);E.entanglements[1]|=L,v&=~L}Fn(m),(Xe&6)===0&&(Wo=nt()+500,_l(0))}}break;case 31:case 13:E=ci(m,2),E!==null&&sn(E,m,2),ts(),Uf(m,2)}if(m=Pf(u),m===null&&Af(t,i,u,ys,l),m===p)break;p=m}p!==null&&u.stopPropagation()}else Af(t,i,u,null,l)}}function Pf(t){return t=Hu(t),Hf(t)}var ys=null;function Hf(t){if(ys=null,t=ji(t),t!==null){var i=s(t);if(i===null)t=null;else{var l=i.tag;if(l===13){if(t=c(i),t!==null)return t;t=null}else if(l===31){if(t=f(i),t!==null)return t;t=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;t=null}else i!==t&&(t=null)}}return ys=t,null}function o_(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Jn()){case K:return 2;case ce:return 8;case Ee:case we:return 32;case Oe:return 268435456;default:return 32}default:return 32}}var Gf=!1,qr=null,$r=null,Fr=null,kl=new Map,Al=new Map,Yr=[],iw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function s_(t,i){switch(t){case"focusin":case"focusout":qr=null;break;case"dragenter":case"dragleave":$r=null;break;case"mouseover":case"mouseout":Fr=null;break;case"pointerover":case"pointerout":kl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Al.delete(i.pointerId)}}function Cl(t,i,l,u,p,m){return t===null||t.nativeEvent!==m?(t={blockedOn:i,domEventName:l,eventSystemFlags:u,nativeEvent:m,targetContainers:[p]},i!==null&&(i=Bi(i),i!==null&&a_(i)),t):(t.eventSystemFlags|=u,i=t.targetContainers,p!==null&&i.indexOf(p)===-1&&i.push(p),t)}function aw(t,i,l,u,p){switch(i){case"focusin":return qr=Cl(qr,t,i,l,u,p),!0;case"dragenter":return $r=Cl($r,t,i,l,u,p),!0;case"mouseover":return Fr=Cl(Fr,t,i,l,u,p),!0;case"pointerover":var m=p.pointerId;return kl.set(m,Cl(kl.get(m)||null,t,i,l,u,p)),!0;case"gotpointercapture":return m=p.pointerId,Al.set(m,Cl(Al.get(m)||null,t,i,l,u,p)),!0}return!1}function u_(t){var i=ji(t.target);if(i!==null){var l=s(i);if(l!==null){if(i=l.tag,i===13){if(i=c(l),i!==null){t.blockedOn=i,Sp(t.priority,function(){l_(l)});return}}else if(i===31){if(i=f(l),i!==null){t.blockedOn=i,Sp(t.priority,function(){l_(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function _s(t){if(t.blockedOn!==null)return!1;for(var i=t.targetContainers;0<i.length;){var l=Pf(t.nativeEvent);if(l===null){l=t.nativeEvent;var u=new l.constructor(l.type,l);Pu=u,l.target.dispatchEvent(u),Pu=null}else return i=Bi(l),i!==null&&a_(i),t.blockedOn=l,!1;i.shift()}return!0}function c_(t,i,l){_s(t)&&l.delete(i)}function lw(){Gf=!1,qr!==null&&_s(qr)&&(qr=null),$r!==null&&_s($r)&&($r=null),Fr!==null&&_s(Fr)&&(Fr=null),kl.forEach(c_),Al.forEach(c_)}function bs(t,i){t.blockedOn===i&&(t.blockedOn=null,Gf||(Gf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,lw)))}var vs=null;function f_(t){vs!==t&&(vs=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){vs===t&&(vs=null);for(var i=0;i<t.length;i+=3){var l=t[i],u=t[i+1],p=t[i+2];if(typeof u!="function"){if(Hf(u||l)===null)continue;break}var m=Bi(l);m!==null&&(t.splice(i,3),i-=3,Vc(m,{pending:!0,data:p,method:l.method,action:u},u,p))}}))}function ba(t){function i(L){return bs(L,t)}qr!==null&&bs(qr,t),$r!==null&&bs($r,t),Fr!==null&&bs(Fr,t),kl.forEach(i),Al.forEach(i);for(var l=0;l<Yr.length;l++){var u=Yr[l];u.blockedOn===t&&(u.blockedOn=null)}for(;0<Yr.length&&(l=Yr[0],l.blockedOn===null);)u_(l),l.blockedOn===null&&Yr.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var p=l[u],m=l[u+1],v=p[tn]||null;if(typeof m=="function")v||f_(l);else if(v){var E=null;if(m&&m.hasAttribute("formAction")){if(p=m,v=m[tn]||null)E=v.formAction;else if(Hf(p)!==null)continue}else E=v.action;typeof E=="function"?l[u+1]=E:(l.splice(u,3),u-=3),f_(l)}}}function d_(){function t(m){m.canIntercept&&m.info==="react-transition"&&m.intercept({handler:function(){return new Promise(function(v){return p=v})},focusReset:"manual",scroll:"manual"})}function i(){p!==null&&(p(),p=null),u||setTimeout(l,20)}function l(){if(!u&&!navigation.transition){var m=navigation.currentEntry;m&&m.url!=null&&navigation.navigate(m.url,{state:m.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,p=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),p!==null&&(p(),p=null)}}}function qf(t){this._internalRoot=t}xs.prototype.render=qf.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw Error(a(409));var l=i.current,u=yn();r_(l,u,t,i,null,null)},xs.prototype.unmount=qf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;r_(t.current,2,null,t,null,null),ts(),i[Ii]=null}};function xs(t){this._internalRoot=t}xs.prototype.unstable_scheduleHydration=function(t){if(t){var i=Ep();t={blockedOn:null,target:t,priority:i};for(var l=0;l<Yr.length&&i!==0&&i<Yr[l].priority;l++);Yr.splice(l,0,t),l===0&&u_(t)}};var h_=n.version;if(h_!=="19.2.4")throw Error(a(527,h_,"19.2.4"));ne.findDOMNode=function(t){var i=t._reactInternals;if(i===void 0)throw typeof t.render=="function"?Error(a(188)):(t=Object.keys(t).join(","),Error(a(268,t)));return t=h(i),t=t!==null?y(t):null,t=t===null?null:t.stateNode,t};var ow={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Es=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Es.isDisabled&&Es.supportsFiber)try{kt=Es.inject(ow),At=Es}catch{}}return Rl.createRoot=function(t,i){if(!o(t))throw Error(a(299));var l=!1,u="",p=vg,m=xg,v=Eg;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(m=i.onCaughtError),i.onRecoverableError!==void 0&&(v=i.onRecoverableError)),i=t_(t,1,!1,null,null,l,u,null,p,m,v,d_),t[Ii]=i.current,kf(t),new qf(i)},Rl.hydrateRoot=function(t,i,l){if(!o(t))throw Error(a(299));var u=!1,p="",m=vg,v=xg,E=Eg,L=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(p=l.identifierPrefix),l.onUncaughtError!==void 0&&(m=l.onUncaughtError),l.onCaughtError!==void 0&&(v=l.onCaughtError),l.onRecoverableError!==void 0&&(E=l.onRecoverableError),l.formState!==void 0&&(L=l.formState)),i=t_(t,1,!0,i,l??null,u,p,L,m,v,E,d_),i.context=n_(null),l=i.current,u=yn(),u=Nu(u),p=Dr(u),p.callback=null,Nr(l,p,u),l=u,i.current.lanes=l,Ba(i,l),Fn(i),t[Ii]=i.current,kf(t),new xs(i)},Rl.version="19.2.4",Rl}var S_;function gw(){if(S_)return Yf.exports;S_=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Yf.exports=mw(),Yf.exports}var yw=gw();const _w=uu(yw);var Kf={exports:{}},Jf={};var w_;function bw(){if(w_)return Jf;w_=1;var e=cu();function n(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var r=typeof Object.is=="function"?Object.is:n,a=e.useState,o=e.useEffect,s=e.useLayoutEffect,c=e.useDebugValue;function f(g,b){var _=b(),x=a({inst:{value:_,getSnapshot:b}}),C=x[0].inst,R=x[1];return s(function(){C.value=_,C.getSnapshot=b,d(C)&&R({inst:C})},[g,_,b]),o(function(){return d(C)&&R({inst:C}),g(function(){d(C)&&R({inst:C})})},[g]),c(_),_}function d(g){var b=g.getSnapshot;g=g.value;try{var _=b();return!r(g,_)}catch{return!0}}function h(g,b){return b()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return Jf.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,Jf}var k_;function vw(){return k_||(k_=1,Kf.exports=bw()),Kf.exports}var A_=vw();const Db=0,Nb=1,Mb=2,C_=3;var T_=Object.prototype.hasOwnProperty;function Fd(e,n){var r,a;if(e===n)return!0;if(e&&n&&(r=e.constructor)===n.constructor){if(r===Date)return e.getTime()===n.getTime();if(r===RegExp)return e.toString()===n.toString();if(r===Array){if((a=e.length)===n.length)for(;a--&&Fd(e[a],n[a]););return a===-1}if(!r||typeof e=="object"){a=0;for(r in e)if(T_.call(e,r)&&++a&&!T_.call(n,r)||!(r in n)||!Fd(e[r],n[r]))return!1;return Object.keys(n).length===a}}return e!==e&&n!==n}const vr=new WeakMap,xr=()=>{},Yt=xr(),Yd=Object,je=e=>e===Yt,Zn=e=>typeof e=="function",ni=(e,n)=>({...e,...n}),zb=e=>Zn(e.then),Wf={},Ss={},Oh="undefined",Jl=typeof window!=Oh,Xd=typeof document!=Oh,xw=Jl&&"Deno"in window,Ew=()=>Jl&&typeof window.requestAnimationFrame!=Oh,Ib=(e,n)=>{const r=vr.get(e);return[()=>!je(n)&&e.get(n)||Wf,a=>{if(!je(n)){const o=e.get(n);n in Ss||(Ss[n]=o),r[5](n,ni(o,a),o||Wf)}},r[6],()=>!je(n)&&n in Ss?Ss[n]:!je(n)&&e.get(n)||Wf]};let Qd=!0;const Sw=()=>Qd,[Zd,Kd]=Jl&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[xr,xr],ww=()=>{const e=Xd&&document.visibilityState;return je(e)||e!=="hidden"},kw=e=>(Xd&&document.addEventListener("visibilitychange",e),Zd("focus",e),()=>{Xd&&document.removeEventListener("visibilitychange",e),Kd("focus",e)}),Aw=e=>{const n=()=>{Qd=!0,e()},r=()=>{Qd=!1};return Zd("online",n),Zd("offline",r),()=>{Kd("online",n),Kd("offline",r)}},Cw={isOnline:Sw,isVisible:ww},Tw={initFocus:kw,initReconnect:Aw},R_=!fu.useId,Ca=!Jl||xw,Rw=e=>Ew()?window.requestAnimationFrame(e):setTimeout(e,1),ed=Ca?Y.useEffect:Y.useLayoutEffect,td=typeof navigator<"u"&&navigator.connection,O_=!Ca&&td&&(["slow-2g","2g"].includes(td.effectiveType)||td.saveData),ws=new WeakMap,Ow=e=>Yd.prototype.toString.call(e),nd=(e,n)=>e===`[object ${n}]`;let Lw=0;const Jd=e=>{const n=typeof e,r=Ow(e),a=nd(r,"Date"),o=nd(r,"RegExp"),s=nd(r,"Object");let c,f;if(Yd(e)===e&&!a&&!o){if(c=ws.get(e),c)return c;if(c=++Lw+"~",ws.set(e,c),Array.isArray(e)){for(c="@",f=0;f<e.length;f++)c+=Jd(e[f])+",";ws.set(e,c)}if(s){c="#";const d=Yd.keys(e).sort();for(;!je(f=d.pop());)je(e[f])||(c+=f+":"+Jd(e[f])+",");ws.set(e,c)}}else c=a?e.toJSON():n=="symbol"?e.toString():n=="string"?JSON.stringify(e):""+e;return c},Lh=e=>{if(Zn(e))try{e=e()}catch{e=""}const n=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Jd(e):"",[e,n]};let Dw=0;const Wd=()=>++Dw;async function jb(...e){const[n,r,a,o]=e,s=ni({populateCache:!0,throwOnError:!0},typeof o=="boolean"?{revalidate:o}:o||{});let c=s.populateCache;const f=s.rollbackOnError;let d=s.optimisticData;const h=b=>typeof f=="function"?f(b):f!==!1,y=s.throwOnError;if(Zn(r)){const b=r,_=[],x=n.keys();for(const C of x)!/^\$(inf|sub)\$/.test(C)&&b(n.get(C)._k)&&_.push(C);return Promise.all(_.map(g))}return g(r);async function g(b){const[_]=Lh(b);if(!_)return;const[x,C]=Ib(n,_),[R,w,T,N]=vr.get(n),Z=()=>{const oe=R[_];return(Zn(s.revalidate)?s.revalidate(x().data,b):s.revalidate!==!1)&&(delete T[_],delete N[_],oe&&oe[0])?oe[0](Mb).then(()=>x().data):x().data};if(e.length<3)return Z();let Q=a,D,P=!1;const q=Wd();w[_]=[q,0];const F=!je(d),j=x(),V=j.data,W=j._c,ge=je(W)?V:W;if(F&&(d=Zn(d)?d(ge,V):d,C({data:d,_c:ge})),Zn(Q))try{Q=Q(ge)}catch(oe){D=oe,P=!0}if(Q&&zb(Q))if(Q=await Q.catch(oe=>{D=oe,P=!0}),q!==w[_][0]){if(P)throw D;return Q}else P&&F&&h(D)&&(c=!0,C({data:ge,_c:Yt}));if(c&&!P)if(Zn(c)){const oe=c(Q,ge);C({data:oe,error:Yt,_c:Yt})}else C({data:Q,error:Yt,_c:Yt});if(w[_][1]=Wd(),Promise.resolve(Z()).then(()=>{C({_c:Yt})}),P){if(y)throw D;return}return Q}}const L_=(e,n)=>{for(const r in e)e[r][0]&&e[r][0](n)},Nw=(e,n)=>{if(!vr.has(e)){const r=ni(Tw,n),a=Object.create(null),o=jb.bind(Yt,e);let s=xr;const c=Object.create(null),f=(y,g)=>{const b=c[y]||[];return c[y]=b,b.push(g),()=>b.splice(b.indexOf(g),1)},d=(y,g,b)=>{e.set(y,g);const _=c[y];if(_)for(const x of _)x(g,b)},h=()=>{if(!vr.has(e)&&(vr.set(e,[a,Object.create(null),Object.create(null),Object.create(null),o,d,f]),!Ca)){const y=r.initFocus(setTimeout.bind(Yt,L_.bind(Yt,a,Db))),g=r.initReconnect(setTimeout.bind(Yt,L_.bind(Yt,a,Nb)));s=()=>{y&&y(),g&&g(),vr.delete(e)}}};return h(),[e,o,h,s]}return[e,vr.get(e)[4]]},Mw=(e,n,r,a,o)=>{const s=r.errorRetryCount,c=o.retryCount,f=~~((Math.random()+.5)*(1<<(c<8?c:8)))*r.errorRetryInterval;!je(s)&&c>s||setTimeout(a,f,o)},zw=Fd,[Bb,Iw]=Nw(new Map),jw=ni({onLoadingSlow:xr,onSuccess:xr,onError:xr,onErrorRetry:Mw,onDiscarded:xr,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:O_?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:O_?5e3:3e3,compare:zw,isPaused:()=>!1,cache:Bb,mutate:Iw,fallback:{}},Cw),Bw=(e,n)=>{const r=ni(e,n);if(n){const{use:a,fallback:o}=e,{use:s,fallback:c}=n;a&&s&&(r.use=a.concat(s)),o&&c&&(r.fallback=ni(o,c))}return r},Uw=Y.createContext({}),Vw="$inf$",Ub=Jl&&window.__SWR_DEVTOOLS_USE__,Pw=Ub?window.__SWR_DEVTOOLS_USE__:[],Hw=()=>{Ub&&(window.__SWR_DEVTOOLS_REACT__=fu)},Gw=e=>Zn(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],qw=()=>{const e=Y.useContext(Uw);return Y.useMemo(()=>ni(jw,e),[e])},$w=e=>(n,r,a)=>e(n,r&&((...s)=>{const[c]=Lh(n),[,,,f]=vr.get(Bb);if(c.startsWith(Vw))return r(...s);const d=f[c];return je(d)?r(...s):(delete f[c],d)}),a),Fw=Pw.concat($w),Yw=e=>function(...r){const a=qw(),[o,s,c]=Gw(r),f=Bw(a,c);let d=e;const{use:h}=f,y=(h||[]).concat(Fw);for(let g=y.length;g--;)d=y[g](d);return d(o,s||f.fetcher||null,f)},Xw=(e,n,r)=>{const a=n[e]||(n[e]=[]);return a.push(r),()=>{const o=a.indexOf(r);o>=0&&(a[o]=a[a.length-1],a.pop())}};Hw();const rd=fu.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(n=>{e.status="fulfilled",e.value=n},n=>{e.status="rejected",e.reason=n}),e}}),id={dedupe:!0},D_=Promise.resolve(Yt),Qw=()=>xr,Zw=(e,n,r)=>{const{cache:a,compare:o,suspense:s,fallbackData:c,revalidateOnMount:f,revalidateIfStale:d,refreshInterval:h,refreshWhenHidden:y,refreshWhenOffline:g,keepPreviousData:b,strictServerPrefetchWarning:_}=r,[x,C,R,w]=vr.get(a),[T,N]=Lh(e),Z=Y.useRef(!1),Q=Y.useRef(!1),D=Y.useRef(T),P=Y.useRef(n),q=Y.useRef(r),F=()=>q.current,j=()=>F().isVisible()&&F().isOnline(),[V,W,ge,oe]=Ib(a,T),ie=Y.useRef({}).current,B=je(c)?je(r.fallback)?Yt:r.fallback[T]:c,ne=(Pe,Qe)=>{for(const Ge in ie){const Je=Ge;if(Je==="data"){if(!o(Pe[Je],Qe[Je])&&(!je(Pe[Je])||!o(le,Qe[Je])))return!1}else if(Qe[Je]!==Pe[Je])return!1}return!0},de=!Z.current,xe=Y.useMemo(()=>{const Pe=V(),Qe=oe(),Ge=pt=>{const nt=ni(pt);return delete nt._k,(()=>{if(!T||!n||F().isPaused())return!1;if(de&&!je(f))return f;const K=je(B)?nt.data:B;return je(K)||d})()?{isValidating:!0,isLoading:!0,...nt}:nt},Je=Ge(Pe),Gt=Pe===Qe?Je:Ge(Qe);let qt=Je;return[()=>{const pt=Ge(V());return ne(pt,qt)?(qt.data=pt.data,qt.isLoading=pt.isLoading,qt.isValidating=pt.isValidating,qt.error=pt.error,qt):(qt=pt,pt)},()=>Gt]},[a,T]),A=A_.useSyncExternalStore(Y.useCallback(Pe=>ge(T,(Qe,Ge)=>{ne(Ge,Qe)||Pe()}),[a,T]),xe[0],xe[1]),M=x[T]&&x[T].length>0,I=A.data,S=je(I)?B&&zb(B)?rd(B):B:I,re=A.error,ae=Y.useRef(S),le=b?je(I)?je(ae.current)?S:ae.current:I:S,fe=T&&je(S),_e=Y.useRef(null);!Ca&&A_.useSyncExternalStore(Qw,()=>(_e.current=!1,_e),()=>(_e.current=!0,_e));const ue=_e.current;_&&ue&&!s&&fe&&console.warn(`Missing pre-initiated data for serialized key "${T}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);const Be=!T||!n||F().isPaused()||M&&!je(re)?!1:de&&!je(f)?f:s?je(S)?!1:d:je(S)||d,qe=de&&Be,dt=je(A.isValidating)?qe:A.isValidating,ht=je(A.isLoading)?qe:A.isLoading,Ye=Y.useCallback(async Pe=>{const Qe=P.current;if(!T||!Qe||Q.current||F().isPaused())return!1;let Ge,Je,Gt=!0;const qt=Pe||{},pt=!R[T]||!qt.dedupe,nt=()=>R_?!Q.current&&T===D.current&&Z.current:T===D.current,Jn={isValidating:!1,isLoading:!1},K=()=>{W(Jn)},ce=()=>{const we=R[T];we&&we[1]===Je&&delete R[T]},Ee={isValidating:!0};je(V().data)&&(Ee.isLoading=!0);try{if(pt&&(W(Ee),r.loadingTimeout&&je(V().data)&&setTimeout(()=>{Gt&&nt()&&F().onLoadingSlow(T,r)},r.loadingTimeout),R[T]=[Qe(N),Wd()]),[Ge,Je]=R[T],Ge=await Ge,pt&&setTimeout(ce,r.dedupingInterval),!R[T]||R[T][1]!==Je)return pt&&nt()&&F().onDiscarded(T),!1;Jn.error=Yt;const we=C[T];if(!je(we)&&(Je<=we[0]||Je<=we[1]||we[1]===0))return K(),pt&&nt()&&F().onDiscarded(T),!1;const Oe=V().data;Jn.data=o(Oe,Ge)?Oe:Ge,pt&&nt()&&F().onSuccess(Ge,T,r)}catch(we){ce();const Oe=F(),{shouldRetryOnError:jt}=Oe;Oe.isPaused()||(Jn.error=we,pt&&nt()&&(Oe.onError(we,T,Oe),(jt===!0||Zn(jt)&&jt(we))&&(!F().revalidateOnFocus||!F().revalidateOnReconnect||j())&&Oe.onErrorRetry(we,T,Oe,zn=>{const kt=x[T];kt&&kt[0]&&kt[0](C_,zn)},{retryCount:(qt.retryCount||0)+1,dedupe:!0})))}return Gt=!1,K(),!0},[T,a]),Dt=Y.useCallback((...Pe)=>jb(a,D.current,...Pe),[]);if(ed(()=>{P.current=n,q.current=r,je(I)||(ae.current=I)}),ed(()=>{if(!T)return;const Pe=Ye.bind(Yt,id);let Qe=0;F().revalidateOnFocus&&(Qe=Date.now()+F().focusThrottleInterval);const Je=Xw(T,x,(Gt,qt={})=>{if(Gt==Db){const pt=Date.now();F().revalidateOnFocus&&pt>Qe&&j()&&(Qe=pt+F().focusThrottleInterval,Pe())}else if(Gt==Nb)F().revalidateOnReconnect&&j()&&Pe();else{if(Gt==Mb)return Ye();if(Gt==C_)return Ye(qt)}});return Q.current=!1,D.current=T,Z.current=!0,W({_k:N}),Be&&(R[T]||(je(S)||Ca?Pe():Rw(Pe))),()=>{Q.current=!0,Je()}},[T]),ed(()=>{let Pe;function Qe(){const Je=Zn(h)?h(V().data):h;Je&&Pe!==-1&&(Pe=setTimeout(Ge,Je))}function Ge(){!V().error&&(y||F().isVisible())&&(g||F().isOnline())?Ye(id).then(Qe):Qe()}return Qe(),()=>{Pe&&(clearTimeout(Pe),Pe=-1)}},[h,y,g,T]),Y.useDebugValue(le),s){if(!R_&&Ca&&fe)throw new Error("Fallback data is required when using Suspense in SSR.");fe&&(P.current=n,q.current=r,Q.current=!1);const Pe=w[T],Qe=!je(Pe)&&fe?Dt(Pe):D_;if(rd(Qe),!je(re)&&fe)throw re;const Ge=fe?Ye(id):D_;!je(le)&&fe&&(Ge.status="fulfilled",Ge.value=!0),rd(Ge)}return{mutate:Dt,get data(){return ie.data=!0,le},get error(){return ie.error=!0,re},get isValidating(){return ie.isValidating=!0,dt},get isLoading(){return ie.isLoading=!0,ht}}},Kw=Yw(Zw);const Jw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ww=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,a)=>a?a.toUpperCase():r.toLowerCase()),N_=e=>{const n=Ww(e);return n.charAt(0).toUpperCase()+n.slice(1)},Vb=(...e)=>e.filter((n,r,a)=>!!n&&n.trim()!==""&&a.indexOf(n)===r).join(" ").trim(),ek=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};var tk={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const nk=Y.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:s,iconNode:c,...f},d)=>Y.createElement("svg",{ref:d,...tk,width:n,height:n,stroke:e,strokeWidth:a?Number(r)*24/Number(n):r,className:Vb("lucide",o),...!s&&!ek(f)&&{"aria-hidden":"true"},...f},[...c.map(([h,y])=>Y.createElement(h,y)),...Array.isArray(s)?s:[s]]));const ct=(e,n)=>{const r=Y.forwardRef(({className:a,...o},s)=>Y.createElement(nk,{ref:s,iconNode:n,className:Vb(`lucide-${Jw(N_(e))}`,`lucide-${e}`,a),...o}));return r.displayName=N_(e),r};const rk=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],ik=ct("arrow-up",rk);const ak=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Dh=ct("check",ak);const lk=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Pb=ct("chevron-down",lk);const ok=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],sk=ct("chevron-left",ok);const uk=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],ck=ct("clock",uk);const fk=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Hb=ct("copy",fk);const dk=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],hk=ct("file-text",dk);const pk=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],mk=ct("folder-open",pk);const gk=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],M_=ct("folder",gk);const yk=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],z_=ct("history",yk);const _k=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],bk=ct("laptop",_k);const vk=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Gb=ct("loader-circle",vk);const xk=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Ek=ct("menu",xk);const Sk=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],wk=ct("moon",Sk);const kk=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],Ak=ct("paperclip",kk);const Ck=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Tk=ct("pen-line",Ck);const Rk=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],Ok=ct("pencil",Rk);const Lk=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],qb=ct("plus",Lk);const Dk=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Nk=ct("settings",Dk);const Mk=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],zk=ct("square-pen",Mk);const Ik=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],jk=ct("square",Ik);const Bk=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],Uk=ct("sun",Bk);const Vk=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],Nh=ct("terminal",Vk);const Pk=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Hk=ct("trash-2",Pk);const Gk=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],$b=ct("x",Gk);function Fb(e){var n,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(r=Fb(e[n]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function qk(){for(var e,n,r=0,a="",o=arguments.length;r<o;r++)(e=arguments[r])&&(n=Fb(e))&&(a&&(a+=" "),a+=n);return a}const $k=(e,n)=>{const r=new Array(e.length+n.length);for(let a=0;a<e.length;a++)r[a]=e[a];for(let a=0;a<n.length;a++)r[e.length+a]=n[a];return r},Fk=(e,n)=>({classGroupId:e,validator:n}),Yb=(e=new Map,n=null,r)=>({nextPart:e,validators:n,classGroupId:r}),$s="-",I_=[],Yk="arbitrary..",Xk=e=>{const n=Zk(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return Qk(c);const f=c.split($s),d=f[0]===""&&f.length>1?1:0;return Xb(f,d,n)},getConflictingClassGroupIds:(c,f)=>{if(f){const d=a[c],h=r[c];return d?h?$k(h,d):d:h||I_}return r[c]||I_}}},Xb=(e,n,r)=>{if(e.length-n===0)return r.classGroupId;const o=e[n],s=r.nextPart.get(o);if(s){const h=Xb(e,n+1,s);if(h)return h}const c=r.validators;if(c===null)return;const f=n===0?e.join($s):e.slice(n).join($s),d=c.length;for(let h=0;h<d;h++){const y=c[h];if(y.validator(f))return y.classGroupId}},Qk=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),r=n.indexOf(":"),a=n.slice(0,r);return a?Yk+a:void 0})(),Zk=e=>{const{theme:n,classGroups:r}=e;return Kk(r,n)},Kk=(e,n)=>{const r=Yb();for(const a in e){const o=e[a];Mh(o,r,a,n)}return r},Mh=(e,n,r,a)=>{const o=e.length;for(let s=0;s<o;s++){const c=e[s];Jk(c,n,r,a)}},Jk=(e,n,r,a)=>{if(typeof e=="string"){Wk(e,n,r);return}if(typeof e=="function"){eA(e,n,r,a);return}tA(e,n,r,a)},Wk=(e,n,r)=>{const a=e===""?n:Qb(n,e);a.classGroupId=r},eA=(e,n,r,a)=>{if(nA(e)){Mh(e(a),n,r,a);return}n.validators===null&&(n.validators=[]),n.validators.push(Fk(r,e))},tA=(e,n,r,a)=>{const o=Object.entries(e),s=o.length;for(let c=0;c<s;c++){const[f,d]=o[c];Mh(d,Qb(n,f),r,a)}},Qb=(e,n)=>{let r=e;const a=n.split($s),o=a.length;for(let s=0;s<o;s++){const c=a[s];let f=r.nextPart.get(c);f||(f=Yb(),r.nextPart.set(c,f)),r=f}return r},nA=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,rA=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=Object.create(null),a=Object.create(null);const o=(s,c)=>{r[s]=c,n++,n>e&&(n=0,a=r,r=Object.create(null))};return{get(s){let c=r[s];if(c!==void 0)return c;if((c=a[s])!==void 0)return o(s,c),c},set(s,c){s in r?r[s]=c:o(s,c)}}},eh="!",j_=":",iA=[],B_=(e,n,r,a,o)=>({modifiers:e,hasImportantModifier:n,baseClassName:r,maybePostfixModifierPosition:a,isExternal:o}),aA=e=>{const{prefix:n,experimentalParseClassName:r}=e;let a=o=>{const s=[];let c=0,f=0,d=0,h;const y=o.length;for(let C=0;C<y;C++){const R=o[C];if(c===0&&f===0){if(R===j_){s.push(o.slice(d,C)),d=C+1;continue}if(R==="/"){h=C;continue}}R==="["?c++:R==="]"?c--:R==="("?f++:R===")"&&f--}const g=s.length===0?o:o.slice(d);let b=g,_=!1;g.endsWith(eh)?(b=g.slice(0,-1),_=!0):g.startsWith(eh)&&(b=g.slice(1),_=!0);const x=h&&h>d?h-d:void 0;return B_(s,_,b,x)};if(n){const o=n+j_,s=a;a=c=>c.startsWith(o)?s(c.slice(o.length)):B_(iA,!1,c,void 0,!0)}if(r){const o=a;a=s=>r({className:s,parseClassName:o})}return a},lA=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((r,a)=>{n.set(r,1e6+a)}),r=>{const a=[];let o=[];for(let s=0;s<r.length;s++){const c=r[s],f=c[0]==="[",d=n.has(c);f||d?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(c)):o.push(c)}return o.length>0&&(o.sort(),a.push(...o)),a}},oA=e=>({cache:rA(e.cacheSize),parseClassName:aA(e),sortModifiers:lA(e),...Xk(e)}),sA=/\s+/,uA=(e,n)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:s}=n,c=[],f=e.trim().split(sA);let d="";for(let h=f.length-1;h>=0;h-=1){const y=f[h],{isExternal:g,modifiers:b,hasImportantModifier:_,baseClassName:x,maybePostfixModifierPosition:C}=r(y);if(g){d=y+(d.length>0?" "+d:d);continue}let R=!!C,w=a(R?x.substring(0,C):x);if(!w){if(!R){d=y+(d.length>0?" "+d:d);continue}if(w=a(x),!w){d=y+(d.length>0?" "+d:d);continue}R=!1}const T=b.length===0?"":b.length===1?b[0]:s(b).join(":"),N=_?T+eh:T,Z=N+w;if(c.indexOf(Z)>-1)continue;c.push(Z);const Q=o(w,R);for(let D=0;D<Q.length;++D){const P=Q[D];c.push(N+P)}d=y+(d.length>0?" "+d:d)}return d},cA=(...e)=>{let n=0,r,a,o="";for(;n<e.length;)(r=e[n++])&&(a=Zb(r))&&(o&&(o+=" "),o+=a);return o},Zb=e=>{if(typeof e=="string")return e;let n,r="";for(let a=0;a<e.length;a++)e[a]&&(n=Zb(e[a]))&&(r&&(r+=" "),r+=n);return r},fA=(e,...n)=>{let r,a,o,s;const c=d=>{const h=n.reduce((y,g)=>g(y),e());return r=oA(h),a=r.cache.get,o=r.cache.set,s=f,f(d)},f=d=>{const h=a(d);if(h)return h;const y=uA(d,r);return o(d,y),y};return s=c,(...d)=>s(cA(...d))},dA=[],Tt=e=>{const n=r=>r[e]||dA;return n.isThemeGetter=!0,n},Kb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,hA=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,pA=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mA=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gA=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,yA=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_A=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qr=e=>hA.test(e),Le=e=>!!e&&!Number.isNaN(Number(e)),Zr=e=>!!e&&Number.isInteger(Number(e)),ad=e=>e.endsWith("%")&&Le(e.slice(0,-1)),yr=e=>pA.test(e),Wb=()=>!0,bA=e=>mA.test(e)&&!gA.test(e),zh=()=>!1,vA=e=>yA.test(e),xA=e=>_A.test(e),EA=e=>!pe(e)&&!me(e),SA=e=>ri(e,nv,zh),pe=e=>Kb.test(e),Si=e=>ri(e,rv,bA),U_=e=>ri(e,LA,Le),wA=e=>ri(e,av,Wb),kA=e=>ri(e,iv,zh),V_=e=>ri(e,ev,zh),AA=e=>ri(e,tv,xA),ks=e=>ri(e,lv,vA),me=e=>Jb.test(e),Ol=e=>Ni(e,rv),CA=e=>Ni(e,iv),P_=e=>Ni(e,ev),TA=e=>Ni(e,nv),RA=e=>Ni(e,tv),As=e=>Ni(e,lv,!0),OA=e=>Ni(e,av,!0),ri=(e,n,r)=>{const a=Kb.exec(e);return a?a[1]?n(a[1]):r(a[2]):!1},Ni=(e,n,r=!1)=>{const a=Jb.exec(e);return a?a[1]?n(a[1]):r:!1},ev=e=>e==="position"||e==="percentage",tv=e=>e==="image"||e==="url",nv=e=>e==="length"||e==="size"||e==="bg-size",rv=e=>e==="length",LA=e=>e==="number",iv=e=>e==="family-name",av=e=>e==="number"||e==="weight",lv=e=>e==="shadow",DA=()=>{const e=Tt("color"),n=Tt("font"),r=Tt("text"),a=Tt("font-weight"),o=Tt("tracking"),s=Tt("leading"),c=Tt("breakpoint"),f=Tt("container"),d=Tt("spacing"),h=Tt("radius"),y=Tt("shadow"),g=Tt("inset-shadow"),b=Tt("text-shadow"),_=Tt("drop-shadow"),x=Tt("blur"),C=Tt("perspective"),R=Tt("aspect"),w=Tt("ease"),T=Tt("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Q=()=>[...Z(),me,pe],D=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],q=()=>[me,pe,d],F=()=>[Qr,"full","auto",...q()],j=()=>[Zr,"none","subgrid",me,pe],V=()=>["auto",{span:["full",Zr,me,pe]},Zr,me,pe],W=()=>[Zr,"auto",me,pe],ge=()=>["auto","min","max","fr",me,pe],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ie=()=>["start","end","center","stretch","center-safe","end-safe"],B=()=>["auto",...q()],ne=()=>[Qr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],de=()=>[Qr,"screen","full","dvw","lvw","svw","min","max","fit",...q()],xe=()=>[Qr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...q()],A=()=>[e,me,pe],M=()=>[...Z(),P_,V_,{position:[me,pe]}],I=()=>["no-repeat",{repeat:["","x","y","space","round"]}],S=()=>["auto","cover","contain",TA,SA,{size:[me,pe]}],re=()=>[ad,Ol,Si],ae=()=>["","none","full",h,me,pe],le=()=>["",Le,Ol,Si],fe=()=>["solid","dashed","dotted","double"],_e=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>[Le,ad,P_,V_],Be=()=>["","none",x,me,pe],qe=()=>["none",Le,me,pe],dt=()=>["none",Le,me,pe],ht=()=>[Le,me,pe],Ye=()=>[Qr,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[yr],breakpoint:[yr],color:[Wb],container:[yr],"drop-shadow":[yr],ease:["in","out","in-out"],font:[EA],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[yr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[yr],shadow:[yr],spacing:["px",Le],text:[yr],"text-shadow":[yr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qr,pe,me,R]}],container:["container"],columns:[{columns:[Le,pe,me,f]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Q()}],overflow:[{overflow:D()}],"overflow-x":[{"overflow-x":D()}],"overflow-y":[{"overflow-y":D()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{"inset-s":F(),start:F()}],end:[{"inset-e":F(),end:F()}],"inset-bs":[{"inset-bs":F()}],"inset-be":[{"inset-be":F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[Zr,"auto",me,pe]}],basis:[{basis:[Qr,"full","auto",f,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Le,Qr,"auto","initial","none",pe]}],grow:[{grow:["",Le,me,pe]}],shrink:[{shrink:["",Le,me,pe]}],order:[{order:[Zr,"first","last","none",me,pe]}],"grid-cols":[{"grid-cols":j()}],"col-start-end":[{col:V()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:V()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ge()}],"auto-rows":[{"auto-rows":ge()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...ie(),"normal"]}],"justify-self":[{"justify-self":["auto",...ie()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...ie(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ie(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...ie(),"baseline"]}],"place-self":[{"place-self":["auto",...ie()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pbs:[{pbs:q()}],pbe:[{pbe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:B()}],mx:[{mx:B()}],my:[{my:B()}],ms:[{ms:B()}],me:[{me:B()}],mbs:[{mbs:B()}],mbe:[{mbe:B()}],mt:[{mt:B()}],mr:[{mr:B()}],mb:[{mb:B()}],ml:[{ml:B()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],"inline-size":[{inline:["auto",...de()]}],"min-inline-size":[{"min-inline":["auto",...de()]}],"max-inline-size":[{"max-inline":["none",...de()]}],"block-size":[{block:["auto",...xe()]}],"min-block-size":[{"min-block":["auto",...xe()]}],"max-block-size":[{"max-block":["none",...xe()]}],w:[{w:[f,"screen",...ne()]}],"min-w":[{"min-w":[f,"screen","none",...ne()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...ne()]}],h:[{h:["screen","lh",...ne()]}],"min-h":[{"min-h":["screen","lh","none",...ne()]}],"max-h":[{"max-h":["screen","lh",...ne()]}],"font-size":[{text:["base",r,Ol,Si]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,OA,wA]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ad,pe]}],"font-family":[{font:[CA,kA,n]}],"font-features":[{"font-features":[pe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,me,pe]}],"line-clamp":[{"line-clamp":[Le,"none",me,U_]}],leading:[{leading:[s,...q()]}],"list-image":[{"list-image":["none",me,pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...fe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Le,"from-font","auto",me,Si]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[Le,"auto",me,pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,pe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:M()}],"bg-repeat":[{bg:I()}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Zr,me,pe],radial:["",me,pe],conic:[Zr,me,pe]},RA,AA]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:re()}],"gradient-via-pos":[{via:re()}],"gradient-to-pos":[{to:re()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...fe(),"hidden","none"]}],"divide-style":[{divide:[...fe(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-bs":[{"border-bs":A()}],"border-color-be":[{"border-be":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...fe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Le,me,pe]}],"outline-w":[{outline:["",Le,Ol,Si]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",y,As,ks]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",g,As,ks]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[Le,Si]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",b,As,ks]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[Le,me,pe]}],"mix-blend":[{"mix-blend":[..._e(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":_e()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Le]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[me,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":Z()}],"mask-image-conic-pos":[{"mask-conic":[Le]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:M()}],"mask-repeat":[{mask:I()}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,pe]}],filter:[{filter:["","none",me,pe]}],blur:[{blur:Be()}],brightness:[{brightness:[Le,me,pe]}],contrast:[{contrast:[Le,me,pe]}],"drop-shadow":[{"drop-shadow":["","none",_,As,ks]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",Le,me,pe]}],"hue-rotate":[{"hue-rotate":[Le,me,pe]}],invert:[{invert:["",Le,me,pe]}],saturate:[{saturate:[Le,me,pe]}],sepia:[{sepia:["",Le,me,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",me,pe]}],"backdrop-blur":[{"backdrop-blur":Be()}],"backdrop-brightness":[{"backdrop-brightness":[Le,me,pe]}],"backdrop-contrast":[{"backdrop-contrast":[Le,me,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Le,me,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Le,me,pe]}],"backdrop-invert":[{"backdrop-invert":["",Le,me,pe]}],"backdrop-opacity":[{"backdrop-opacity":[Le,me,pe]}],"backdrop-saturate":[{"backdrop-saturate":[Le,me,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",Le,me,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Le,"initial",me,pe]}],ease:[{ease:["linear","initial",w,me,pe]}],delay:[{delay:[Le,me,pe]}],animate:[{animate:["none",T,me,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,me,pe]}],"perspective-origin":[{"perspective-origin":Q()}],rotate:[{rotate:qe()}],"rotate-x":[{"rotate-x":qe()}],"rotate-y":[{"rotate-y":qe()}],"rotate-z":[{"rotate-z":qe()}],scale:[{scale:dt()}],"scale-x":[{"scale-x":dt()}],"scale-y":[{"scale-y":dt()}],"scale-z":[{"scale-z":dt()}],"scale-3d":["scale-3d"],skew:[{skew:ht()}],"skew-x":[{"skew-x":ht()}],"skew-y":[{"skew-y":ht()}],transform:[{transform:[me,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:Q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ye()}],"translate-x":[{"translate-x":Ye()}],"translate-y":[{"translate-y":Ye()}],"translate-z":[{"translate-z":Ye()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,pe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mbs":[{"scroll-mbs":q()}],"scroll-mbe":[{"scroll-mbe":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pbs":[{"scroll-pbs":q()}],"scroll-pbe":[{"scroll-pbe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,pe]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[Le,Ol,Si,U_]}],stroke:[{stroke:["none",...A()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},NA=fA(DA);function Ve(...e){return NA(qk(e))}function MA(e){return new Promise((n,r)=>{const a=new FileReader;a.onload=()=>{const o=a.result;n(o.split(",")[1]??"")},a.onerror=r,a.readAsDataURL(e)})}async function zA(e){const n=e.filter(r=>r.type.startsWith("image/"));return n.length?Promise.all(n.map(async r=>({data:await MA(r),mime_type:r.type,name:r.name,preview:URL.createObjectURL(r)}))):[]}const IA=Y.memo(function({input:n,setInput:r,loading:a,onSend:o,onCancel:s,supportsImages:c=!1,images:f=[],onAttachImages:d,onRemoveImage:h}){const y=Y.useRef(null),g=Y.useRef(null),[b,_]=Y.useState(!1),x=Y.useRef(0);Y.useEffect(()=>{!n&&y.current&&(y.current.style.height="auto")},[n]);const C=P=>{P.key==="Enter"&&!P.shiftKey&&(P.preventDefault(),a||o())},R=Y.useCallback(async P=>{const q=await zA(P);q.length&&d?.(q)},[d]),w=async P=>{const q=Array.from(P.target.files??[]);P.target.value="",await R(q)},T=P=>{P.preventDefault(),P.stopPropagation(),x.current++,x.current===1&&_(!0)},N=P=>{P.preventDefault(),P.stopPropagation(),x.current--,x.current===0&&_(!1)},Z=P=>{P.preventDefault()},Q=async P=>{P.preventDefault(),P.stopPropagation(),x.current=0,_(!1),c&&await R(Array.from(P.dataTransfer.files))},D=n.trim().length>0||f.length>0;return O.jsx("div",{className:"mx-auto max-w-4xl max-md:max-w-none px-5 max-md:px-3 py-3 max-md:py-2",children:O.jsxs("div",{role:"presentation",className:Ve("relative rounded-xl bg-card border shadow-sm transition duration-200","focus-within:shadow-md focus-within:border-border/60",b&&c?"border-accent/60 bg-accent/5":"border-border/30"),onDragEnter:T,onDragLeave:N,onDragOver:Z,onDrop:Q,children:[f.length>0&&O.jsx("div",{className:"flex flex-wrap gap-1.5 px-3 pt-2.5 pb-1",children:f.map((P,q)=>O.jsxs("div",{className:"relative group/thumb flex-shrink-0",children:[O.jsx("img",{src:P.preview,alt:P.name,className:"h-14 w-14 rounded-lg object-cover border border-border/30"}),O.jsx("button",{type:"button",onClick:()=>h?.(q),"aria-label":`Remove ${P.name}`,className:"absolute -top-1 -right-1 h-4 w-4 bg-foreground text-background rounded-full flex items-center justify-center opacity-0 group-hover/thumb:opacity-100 max-md:opacity-100 transition-opacity",children:O.jsx($b,{className:"h-2.5 w-2.5"})})]},q))}),O.jsx("textarea",{ref:y,rows:1,name:"message","aria-label":"Message",value:n,onChange:P=>{r(P.target.value),P.target.style.height="auto",P.target.style.height=`${Math.min(P.target.scrollHeight,200)}px`},onKeyDown:C,placeholder:"Message…",className:Ve("block w-full resize-none bg-transparent py-3 max-md:py-2.5 pr-14 text-base md:text-sm leading-relaxed text-foreground placeholder:text-muted-foreground/40 focus-visible:outline-none max-h-[200px]",c?"pl-12 max-md:pl-11":"px-4")}),b&&c&&O.jsx("div",{className:"absolute inset-0 flex items-center justify-center rounded-xl bg-accent/5 pointer-events-none z-10",children:O.jsx("span",{className:"text-sm text-accent font-medium",children:"Drop image here"})}),c&&O.jsxs(O.Fragment,{children:[O.jsx("input",{ref:g,type:"file",accept:"image/*",multiple:!0,className:"hidden",onChange:w}),O.jsx("div",{className:"absolute bottom-[7px] max-md:bottom-[5px] left-2.5 max-md:left-2",children:O.jsx("button",{type:"button","aria-label":"Attach image",disabled:a,onClick:()=>g.current?.click(),className:Ve("h-8 w-8 flex items-center justify-center rounded-lg transition duration-150",a?"text-muted-foreground/20":"text-muted-foreground/40 hover:text-muted-foreground/70 hover:bg-muted/50 active:scale-95"),title:"Attach image",children:O.jsx(Ak,{className:"h-4 w-4"})})})]}),O.jsx("div",{className:"absolute bottom-[7px] max-md:bottom-[5px] right-2.5 max-md:right-2",children:a?O.jsx("button",{type:"button","aria-label":"Stop generating",onClick:s,className:"h-8 w-8 flex items-center justify-center rounded-lg text-destructive/70 hover:text-destructive hover:bg-destructive/10 active:scale-95 transition",title:"Stop",children:O.jsx(jk,{className:"h-3.5 w-3.5 fill-current"})}):O.jsx("button",{type:"button","aria-label":"Send message",onClick:o,disabled:!D,className:Ve("h-8 w-8 flex items-center justify-center rounded-lg transition duration-150",D?"bg-foreground text-background hover:opacity-90 active:scale-95":"text-muted-foreground/40"),title:"Send",children:O.jsx(ik,{className:"h-4 w-4",strokeWidth:2.5})})})]})})});function ov(e){if(navigator.clipboard?.writeText)return navigator.clipboard.writeText(e);const n=document.createElement("textarea");return n.value=e,n.style.cssText="position:fixed;opacity:0",document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n),Promise.resolve()}const jA="modulepreload",BA=function(e){return"/"+e},H_={},k=function(n,r,a){let o=Promise.resolve();if(r&&r.length>0){let d=function(h){return Promise.all(h.map(y=>Promise.resolve(y).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),f=c?.nonce||c?.getAttribute("nonce");o=d(r.map(h=>{if(h=BA(h),h in H_)return;H_[h]=!0;const y=h.endsWith(".css"),g=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const b=document.createElement("link");if(b.rel=y?"stylesheet":jA,y||(b.as="script"),b.crossOrigin="",b.href=h,f&&b.setAttribute("nonce",f),document.head.appendChild(b),y)return new Promise((_,x)=>{b.addEventListener("load",_),b.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return o.then(c=>{for(const f of c||[])f.status==="rejected"&&s(f.reason);return n().catch(s)})};function sv(e,n){const r=n||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const UA=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,VA=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,PA={};function G_(e,n){return(PA.jsx?VA:UA).test(e)}const HA=/[ \t\n\f\r]/g;function du(e){return typeof e=="object"?e.type==="text"?q_(e.value):!1:q_(e)}function q_(e){return e.replace(HA,"")===""}class Wl{constructor(n,r,a){this.normal=r,this.property=n,a&&(this.space=a)}}Wl.prototype.normal={};Wl.prototype.property={};Wl.prototype.space=void 0;function uv(e,n){const r={},a={};for(const o of e)Object.assign(r,o.property),Object.assign(a,o.normal);return new Wl(r,a,n)}function th(e){return e.toLowerCase()}class cn{constructor(n,r){this.attribute=r,this.property=n}}cn.prototype.attribute="";cn.prototype.booleanish=!1;cn.prototype.boolean=!1;cn.prototype.commaOrSpaceSeparated=!1;cn.prototype.commaSeparated=!1;cn.prototype.defined=!1;cn.prototype.mustUseProperty=!1;cn.prototype.number=!1;cn.prototype.overloadedBoolean=!1;cn.prototype.property="";cn.prototype.spaceSeparated=!1;cn.prototype.space=void 0;let GA=0;const Re=Mi(),wt=Mi(),nh=Mi(),se=Mi(),lt=Mi(),Ta=Mi(),_n=Mi();function Mi(){return 2**++GA}const rh=Object.freeze(Object.defineProperty({__proto__:null,boolean:Re,booleanish:wt,commaOrSpaceSeparated:_n,commaSeparated:Ta,number:se,overloadedBoolean:nh,spaceSeparated:lt},Symbol.toStringTag,{value:"Module"})),ld=Object.keys(rh);class Ih extends cn{constructor(n,r,a,o){let s=-1;if(super(n,r),$_(this,"space",o),typeof a=="number")for(;++s<ld.length;){const c=ld[s];$_(this,ld[s],(a&rh[c])===rh[c])}}}Ih.prototype.defined=!0;function $_(e,n,r){r&&(e[n]=r)}function Da(e){const n={},r={};for(const[a,o]of Object.entries(e.properties)){const s=new Ih(a,e.transform(e.attributes||{},a),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(s.mustUseProperty=!0),n[a]=s,r[th(a)]=a,r[th(s.attribute)]=a}return new Wl(n,r,e.space)}const cv=Da({properties:{ariaActiveDescendant:null,ariaAtomic:wt,ariaAutoComplete:null,ariaBusy:wt,ariaChecked:wt,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:lt,ariaCurrent:null,ariaDescribedBy:lt,ariaDetails:null,ariaDisabled:wt,ariaDropEffect:lt,ariaErrorMessage:null,ariaExpanded:wt,ariaFlowTo:lt,ariaGrabbed:wt,ariaHasPopup:null,ariaHidden:wt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:lt,ariaLevel:se,ariaLive:null,ariaModal:wt,ariaMultiLine:wt,ariaMultiSelectable:wt,ariaOrientation:null,ariaOwns:lt,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:wt,ariaReadOnly:wt,ariaRelevant:null,ariaRequired:wt,ariaRoleDescription:lt,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:wt,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function fv(e,n){return n in e?e[n]:n}function dv(e,n){return fv(e,n.toLowerCase())}const qA=Da({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ta,acceptCharset:lt,accessKey:lt,action:null,allow:null,allowFullScreen:Re,allowPaymentRequest:Re,allowUserMedia:Re,alt:null,as:null,async:Re,autoCapitalize:null,autoComplete:lt,autoFocus:Re,autoPlay:Re,blocking:lt,capture:null,charSet:null,checked:Re,cite:null,className:lt,cols:se,colSpan:null,content:null,contentEditable:wt,controls:Re,controlsList:lt,coords:se|Ta,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re,defer:Re,dir:null,dirName:null,disabled:Re,download:nh,draggable:wt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Re,formTarget:null,headers:lt,height:se,hidden:nh,high:se,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:null,inert:Re,inputMode:null,integrity:null,is:null,isMap:Re,itemId:null,itemProp:lt,itemRef:lt,itemScope:Re,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Re,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:Re,muted:Re,name:null,nonce:null,noModule:Re,noValidate:Re,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:Re,optimum:se,pattern:null,ping:lt,placeholder:null,playsInline:Re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Re,referrerPolicy:null,rel:lt,required:Re,reversed:Re,rows:se,rowSpan:se,sandbox:lt,scope:null,scoped:Re,seamless:Re,selected:Re,shadowRootClonable:Re,shadowRootDelegatesFocus:Re,shadowRootMode:null,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:wt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:Re,useMap:null,value:wt,width:se,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:lt,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Re,declare:Re,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:Re,noHref:Re,noShade:Re,noWrap:Re,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:wt,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Re,disableRemotePlayback:Re,prefix:null,property:null,results:se,security:null,unselectable:null},space:"html",transform:dv}),$A=Da({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",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:_n,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:lt,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:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:Re,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,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:Ta,g2:Ta,glyphName:Ta,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:_n,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:se,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:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:_n,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:_n,rev:_n,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:_n,requiredFeatures:_n,requiredFonts:_n,requiredFormats:_n,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:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:_n,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:_n,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:_n,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:fv}),hv=Da({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),pv=Da({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:dv}),mv=Da({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),FA={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"},YA=/[A-Z]/g,F_=/-[a-z]/g,XA=/^data[-\w.:]+$/i;function gv(e,n){const r=th(n);let a=n,o=cn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&XA.test(n)){if(n.charAt(4)==="-"){const s=n.slice(5).replace(F_,ZA);a="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=n.slice(4);if(!F_.test(s)){let c=s.replace(YA,QA);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}o=Ih}return new o(a,n)}function QA(e){return"-"+e.toLowerCase()}function ZA(e){return e.charAt(1).toUpperCase()}const yv=uv([cv,qA,hv,pv,mv],"html"),eo=uv([cv,$A,hv,pv,mv],"svg");function _v(e){return e.join(" ").trim()}var va={},od,Y_;function KA(){if(Y_)return od;Y_=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,f=/^\s+|\s+$/g,d=`
|
|
11
|
+
`,h="/",y="*",g="",b="comment",_="declaration";function x(R,w){if(typeof R!="string")throw new TypeError("First argument must be a string");if(!R)return[];w=w||{};var T=1,N=1;function Z(oe){var ie=oe.match(n);ie&&(T+=ie.length);var B=oe.lastIndexOf(d);N=~B?oe.length-B:N+oe.length}function Q(){var oe={line:T,column:N};return function(ie){return ie.position=new D(oe),F(),ie}}function D(oe){this.start=oe,this.end={line:T,column:N},this.source=w.source}D.prototype.content=R;function P(oe){var ie=new Error(w.source+":"+T+":"+N+": "+oe);if(ie.reason=oe,ie.filename=w.source,ie.line=T,ie.column=N,ie.source=R,!w.silent)throw ie}function q(oe){var ie=oe.exec(R);if(ie){var B=ie[0];return Z(B),R=R.slice(B.length),ie}}function F(){q(r)}function j(oe){var ie;for(oe=oe||[];ie=V();)ie!==!1&&oe.push(ie);return oe}function V(){var oe=Q();if(!(h!=R.charAt(0)||y!=R.charAt(1))){for(var ie=2;g!=R.charAt(ie)&&(y!=R.charAt(ie)||h!=R.charAt(ie+1));)++ie;if(ie+=2,g===R.charAt(ie-1))return P("End of comment missing");var B=R.slice(2,ie-2);return N+=2,Z(B),R=R.slice(ie),N+=2,oe({type:b,comment:B})}}function W(){var oe=Q(),ie=q(a);if(ie){if(V(),!q(o))return P("property missing ':'");var B=q(s),ne=oe({type:_,property:C(ie[0].replace(e,g)),value:B?C(B[0].replace(e,g)):g});return q(c),ne}}function ge(){var oe=[];j(oe);for(var ie;ie=W();)ie!==!1&&(oe.push(ie),j(oe));return oe}return F(),ge()}function C(R){return R?R.replace(f,g):g}return od=x,od}var X_;function JA(){if(X_)return va;X_=1;var e=va&&va.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(va,"__esModule",{value:!0}),va.default=r;const n=e(KA());function r(a,o){let s=null;if(!a||typeof a!="string")return s;const c=(0,n.default)(a),f=typeof o=="function";return c.forEach(d=>{if(d.type!=="declaration")return;const{property:h,value:y}=d;f?o(h,y,d):y&&(s=s||{},s[h]=y)}),s}return va}var Ll={},Q_;function WA(){if(Q_)return Ll;Q_=1,Object.defineProperty(Ll,"__esModule",{value:!0}),Ll.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,s=function(h){return!h||r.test(h)||e.test(h)},c=function(h,y){return y.toUpperCase()},f=function(h,y){return"".concat(y,"-")},d=function(h,y){return y===void 0&&(y={}),s(h)?h:(h=h.toLowerCase(),y.reactCompat?h=h.replace(o,f):h=h.replace(a,f),h.replace(n,c))};return Ll.camelCase=d,Ll}var Dl,Z_;function eC(){if(Z_)return Dl;Z_=1;var e=Dl&&Dl.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},n=e(JA()),r=WA();function a(o,s){var c={};return!o||typeof o!="string"||(0,n.default)(o,function(f,d){f&&d&&(c[(0,r.camelCase)(f,s)]=d)}),c}return a.default=a,Dl=a,Dl}var tC=eC();const nC=uu(tC),bv=vv("end"),jh=vv("start");function vv(e){return n;function n(r){const a=r&&r.position&&r.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function rC(e){const n=jh(e),r=bv(e);if(n&&r)return{start:n,end:r}}function Bl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?K_(e.position):"start"in e||"end"in e?K_(e):"line"in e||"column"in e?ih(e):""}function ih(e){return J_(e&&e.line)+":"+J_(e&&e.column)}function K_(e){return ih(e&&e.start)+"-"+ih(e&&e.end)}function J_(e){return e&&typeof e=="number"?e:1}class Zt extends Error{constructor(n,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let o="",s={},c=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof n=="string"?o=n:!s.cause&&n&&(c=!0,o=n.message,s.cause=n),!s.ruleId&&!s.source&&typeof a=="string"){const d=a.indexOf(":");d===-1?s.ruleId=a:(s.source=a.slice(0,d),s.ruleId=a.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const f=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=f?f.line:void 0,this.name=Bl(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=c&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Zt.prototype.file="";Zt.prototype.name="";Zt.prototype.reason="";Zt.prototype.message="";Zt.prototype.stack="";Zt.prototype.column=void 0;Zt.prototype.line=void 0;Zt.prototype.ancestors=void 0;Zt.prototype.cause=void 0;Zt.prototype.fatal=void 0;Zt.prototype.place=void 0;Zt.prototype.ruleId=void 0;Zt.prototype.source=void 0;const Bh={}.hasOwnProperty,iC=new Map,aC=/[A-Z]/g,lC=new Set(["table","tbody","thead","tfoot","tr"]),oC=new Set(["td","th"]),xv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function sC(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=n.filePath||void 0;let a;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=gC(r,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=mC(r,n.jsx,n.jsxs)}const o={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:a,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?eo:yv,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},s=Ev(o,e,void 0);return s&&typeof s!="string"?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}function Ev(e,n,r){if(n.type==="element")return uC(e,n,r);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return cC(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return dC(e,n,r);if(n.type==="mdxjsEsm")return fC(e,n);if(n.type==="root")return hC(e,n,r);if(n.type==="text")return pC(e,n)}function uC(e,n,r){const a=e.schema;let o=a;n.tagName.toLowerCase()==="svg"&&a.space==="html"&&(o=eo,e.schema=o),e.ancestors.push(n);const s=wv(e,n.tagName,!1),c=yC(e,n);let f=Vh(e,n);return lC.has(n.tagName)&&(f=f.filter(function(d){return typeof d=="string"?!du(d):!0})),Sv(e,c,s,n),Uh(c,f),e.ancestors.pop(),e.schema=a,e.create(n,s,c,r)}function cC(e,n){if(n.data&&n.data.estree&&e.evaluater){const a=n.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}Gl(e,n.position)}function fC(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Gl(e,n.position)}function dC(e,n,r){const a=e.schema;let o=a;n.name==="svg"&&a.space==="html"&&(o=eo,e.schema=o),e.ancestors.push(n);const s=n.name===null?e.Fragment:wv(e,n.name,!0),c=_C(e,n),f=Vh(e,n);return Sv(e,c,s,n),Uh(c,f),e.ancestors.pop(),e.schema=a,e.create(n,s,c,r)}function hC(e,n,r){const a={};return Uh(a,Vh(e,n)),e.create(n,e.Fragment,a,r)}function pC(e,n){return n.value}function Sv(e,n,r,a){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(n.node=a)}function Uh(e,n){if(n.length>0){const r=n.length>1?n:n[0];r&&(e.children=r)}}function mC(e,n,r){return a;function a(o,s,c,f){const h=Array.isArray(c.children)?r:n;return f?h(s,c,f):h(s,c)}}function gC(e,n){return r;function r(a,o,s,c){const f=Array.isArray(s.children),d=jh(a);return n(o,s,c,f,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function yC(e,n){const r={};let a,o;for(o in n.properties)if(o!=="children"&&Bh.call(n.properties,o)){const s=bC(e,o,n.properties[o]);if(s){const[c,f]=s;e.tableCellAlignToStyle&&c==="align"&&typeof f=="string"&&oC.has(n.tagName)?a=f:r[c]=f}}if(a){const s=r.style||(r.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function _C(e,n){const r={};for(const a of n.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const s=a.data.estree.body[0];s.type;const c=s.expression;c.type;const f=c.properties[0];f.type,Object.assign(r,e.evaluater.evaluateExpression(f.argument))}else Gl(e,n.position);else{const o=a.name;let s;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const f=a.value.data.estree.body[0];f.type,s=e.evaluater.evaluateExpression(f.expression)}else Gl(e,n.position);else s=a.value===null?!0:a.value;r[o]=s}return r}function Vh(e,n){const r=[];let a=-1;const o=e.passKeys?new Map:iC;for(;++a<n.children.length;){const s=n.children[a];let c;if(e.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const h=o.get(d)||0;c=d+"-"+h,o.set(d,h+1)}}const f=Ev(e,s,c);f!==void 0&&r.push(f)}return r}function bC(e,n,r){const a=gv(e.schema,n);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=a.commaSeparated?sv(r):_v(r)),a.property==="style"){let o=typeof r=="object"?r:vC(e,String(r));return e.stylePropertyNameCase==="css"&&(o=xC(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&a.space?FA[a.property]||a.property:a.attribute,r]}}function vC(e,n){try{return nC(n,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const a=r,o=new Zt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=xv+"#cannot-parse-style-attribute",o}}function wv(e,n,r){let a;if(!r)a={type:"Literal",value:n};else if(n.includes(".")){const o=n.split(".");let s=-1,c;for(;++s<o.length;){const f=G_(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};c=c?{type:"MemberExpression",object:c,property:f,computed:!!(s&&f.type==="Literal"),optional:!1}:f}a=c}else a=G_(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(a.type==="Literal"){const o=a.value;return Bh.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(a);Gl(e)}function Gl(e,n){const r=new Zt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=xv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function xC(e){const n={};let r;for(r in e)Bh.call(e,r)&&(n[EC(r)]=e[r]);return n}function EC(e){let n=e.replace(aC,SC);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function SC(e){return"-"+e.toLowerCase()}const sd={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"]},wC={};function Ph(e,n){const r=wC,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return kv(e,a,o)}function kv(e,n,r){if(kC(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return W_(e.children,n,r)}return Array.isArray(e)?W_(e,n,r):""}function W_(e,n,r){const a=[];let o=-1;for(;++o<e.length;)a[o]=kv(e[o],n,r);return a.join("")}function kC(e){return!!(e&&typeof e=="object")}const e0=document.createElement("i");function Hh(e){const n="&"+e+";";e0.innerHTML=n;const r=e0.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===n?!1:r}function vn(e,n,r,a){const o=e.length;let s=0,c;if(n<0?n=-n>o?0:o+n:n=n>o?o:n,r=r>0?r:0,a.length<1e4)c=Array.from(a),c.unshift(n,r),e.splice(...c);else for(r&&e.splice(n,r);s<a.length;)c=a.slice(s,s+1e4),c.unshift(n,0),e.splice(...c),s+=1e4,n+=1e4}function Dn(e,n){return e.length>0?(vn(e,e.length,0,n),e):n}const t0={}.hasOwnProperty;function Av(e){const n={};let r=-1;for(;++r<e.length;)AC(n,e[r]);return n}function AC(e,n){let r;for(r in n){const o=(t0.call(e,r)?e[r]:void 0)||(e[r]={}),s=n[r];let c;if(s)for(c in s){t0.call(o,c)||(o[c]=[]);const f=s[c];CC(o[c],Array.isArray(f)?f:f?[f]:[])}}}function CC(e,n){let r=-1;const a=[];for(;++r<n.length;)(n[r].add==="after"?e:a).push(n[r]);vn(e,0,0,a)}function Cv(e,n){const r=Number.parseInt(e,n);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)}function Pn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Jt=ii(/[A-Za-z]/),Qt=ii(/[\dA-Za-z]/),TC=ii(/[#-'*+\--9=?A-Z^-~]/);function Fs(e){return e!==null&&(e<32||e===127)}const ah=ii(/\d/),RC=ii(/[\dA-Fa-f]/),OC=ii(/[!-/:-@[-`{-~]/);function ve(e){return e!==null&&e<-2}function at(e){return e!==null&&(e<0||e===32)}function Me(e){return e===-2||e===-1||e===32}const hu=ii(new RegExp("\\p{P}|\\p{S}","u")),Li=ii(/\s/);function ii(e){return n;function n(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Na(e){const n=[];let r=-1,a=0,o=0;for(;++r<e.length;){const s=e.charCodeAt(r);let c="";if(s===37&&Qt(e.charCodeAt(r+1))&&Qt(e.charCodeAt(r+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(c=String.fromCharCode(s));else if(s>55295&&s<57344){const f=e.charCodeAt(r+1);s<56320&&f>56319&&f<57344?(c=String.fromCharCode(s,f),o=1):c="�"}else c=String.fromCharCode(s);c&&(n.push(e.slice(a,r),encodeURIComponent(c)),a=r+o+1,c=""),o&&(r+=o,o=0)}return n.join("")+e.slice(a)}function He(e,n,r,a){const o=a?a-1:Number.POSITIVE_INFINITY;let s=0;return c;function c(d){return Me(d)?(e.enter(r),f(d)):n(d)}function f(d){return Me(d)&&s++<o?(e.consume(d),f):(e.exit(r),n(d))}}const LC={tokenize:DC};function DC(e){const n=e.attempt(this.parser.constructs.contentInitial,a,o);let r;return n;function a(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),He(e,n,"linePrefix")}function o(f){return e.enter("paragraph"),s(f)}function s(f){const d=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=d),r=d,c(f)}function c(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return ve(f)?(e.consume(f),e.exit("chunkText"),s):(e.consume(f),c)}}const NC={tokenize:MC},n0={tokenize:zC};function MC(e){const n=this,r=[];let a=0,o,s,c;return f;function f(N){if(a<r.length){const Z=r[a];return n.containerState=Z[1],e.attempt(Z[0].continuation,d,h)(N)}return h(N)}function d(N){if(a++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,o&&T();const Z=n.events.length;let Q=Z,D;for(;Q--;)if(n.events[Q][0]==="exit"&&n.events[Q][1].type==="chunkFlow"){D=n.events[Q][1].end;break}w(a);let P=Z;for(;P<n.events.length;)n.events[P][1].end={...D},P++;return vn(n.events,Q+1,0,n.events.slice(Z)),n.events.length=P,h(N)}return f(N)}function h(N){if(a===r.length){if(!o)return b(N);if(o.currentConstruct&&o.currentConstruct.concrete)return x(N);n.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(n0,y,g)(N)}function y(N){return o&&T(),w(a),b(N)}function g(N){return n.parser.lazy[n.now().line]=a!==r.length,c=n.now().offset,x(N)}function b(N){return n.containerState={},e.attempt(n0,_,x)(N)}function _(N){return a++,r.push([n.currentConstruct,n.containerState]),b(N)}function x(N){if(N===null){o&&T(),w(0),e.consume(N);return}return o=o||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),C(N)}function C(N){if(N===null){R(e.exit("chunkFlow"),!0),w(0),e.consume(N);return}return ve(N)?(e.consume(N),R(e.exit("chunkFlow")),a=0,n.interrupt=void 0,f):(e.consume(N),C)}function R(N,Z){const Q=n.sliceStream(N);if(Z&&Q.push(null),N.previous=s,s&&(s.next=N),s=N,o.defineSkip(N.start),o.write(Q),n.parser.lazy[N.start.line]){let D=o.events.length;for(;D--;)if(o.events[D][1].start.offset<c&&(!o.events[D][1].end||o.events[D][1].end.offset>c))return;const P=n.events.length;let q=P,F,j;for(;q--;)if(n.events[q][0]==="exit"&&n.events[q][1].type==="chunkFlow"){if(F){j=n.events[q][1].end;break}F=!0}for(w(a),D=P;D<n.events.length;)n.events[D][1].end={...j},D++;vn(n.events,q+1,0,n.events.slice(P)),n.events.length=D}}function w(N){let Z=r.length;for(;Z-- >N;){const Q=r[Z];n.containerState=Q[1],Q[0].exit.call(n,e)}r.length=N}function T(){o.write([null]),s=void 0,o=void 0,n.containerState._closeFlow=void 0}}function zC(e,n,r){return He(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Oa(e){if(e===null||at(e)||Li(e))return 1;if(hu(e))return 2}function pu(e,n,r){const a=[];let o=-1;for(;++o<e.length;){const s=e[o].resolveAll;s&&!a.includes(s)&&(n=s(n,r),a.push(s))}return n}const lh={name:"attention",resolveAll:IC,tokenize:jC};function IC(e,n){let r=-1,a,o,s,c,f,d,h,y;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(a=r;a--;)if(e[a][0]==="exit"&&e[a][1].type==="attentionSequence"&&e[a][1]._open&&n.sliceSerialize(e[a][1]).charCodeAt(0)===n.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[a][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[a][1].end.offset-e[a][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;d=e[a][1].end.offset-e[a][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const g={...e[a][1].end},b={...e[r][1].start};r0(g,-d),r0(b,d),c={type:d>1?"strongSequence":"emphasisSequence",start:g,end:{...e[a][1].end}},f={type:d>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:b},s={type:d>1?"strongText":"emphasisText",start:{...e[a][1].end},end:{...e[r][1].start}},o={type:d>1?"strong":"emphasis",start:{...c.start},end:{...f.end}},e[a][1].end={...c.start},e[r][1].start={...f.end},h=[],e[a][1].end.offset-e[a][1].start.offset&&(h=Dn(h,[["enter",e[a][1],n],["exit",e[a][1],n]])),h=Dn(h,[["enter",o,n],["enter",c,n],["exit",c,n],["enter",s,n]]),h=Dn(h,pu(n.parser.constructs.insideSpan.null,e.slice(a+1,r),n)),h=Dn(h,[["exit",s,n],["enter",f,n],["exit",f,n],["exit",o,n]]),e[r][1].end.offset-e[r][1].start.offset?(y=2,h=Dn(h,[["enter",e[r][1],n],["exit",e[r][1],n]])):y=0,vn(e,a-1,r-a+3,h),r=a+h.length-y-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function jC(e,n){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,o=Oa(a);let s;return c;function c(d){return s=d,e.enter("attentionSequence"),f(d)}function f(d){if(d===s)return e.consume(d),f;const h=e.exit("attentionSequence"),y=Oa(d),g=!y||y===2&&o||r.includes(d),b=!o||o===2&&y||r.includes(a);return h._open=!!(s===42?g:g&&(o||!b)),h._close=!!(s===42?b:b&&(y||!g)),n(d)}}function r0(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const BC={name:"autolink",tokenize:UC};function UC(e,n,r){let a=0;return o;function o(_){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(_){return Jt(_)?(e.consume(_),c):_===64?r(_):h(_)}function c(_){return _===43||_===45||_===46||Qt(_)?(a=1,f(_)):h(_)}function f(_){return _===58?(e.consume(_),a=0,d):(_===43||_===45||_===46||Qt(_))&&a++<32?(e.consume(_),f):(a=0,h(_))}function d(_){return _===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.exit("autolink"),n):_===null||_===32||_===60||Fs(_)?r(_):(e.consume(_),d)}function h(_){return _===64?(e.consume(_),y):TC(_)?(e.consume(_),h):r(_)}function y(_){return Qt(_)?g(_):r(_)}function g(_){return _===46?(e.consume(_),a=0,y):_===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.exit("autolink"),n):b(_)}function b(_){if((_===45||Qt(_))&&a++<63){const x=_===45?b:g;return e.consume(_),x}return r(_)}}const to={partial:!0,tokenize:VC};function VC(e,n,r){return a;function a(s){return Me(s)?He(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||ve(s)?n(s):r(s)}}const Tv={continuation:{tokenize:HC},exit:GC,name:"blockQuote",tokenize:PC};function PC(e,n,r){const a=this;return o;function o(c){if(c===62){const f=a.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(c),e.exit("blockQuoteMarker"),s}return r(c)}function s(c){return Me(c)?(e.enter("blockQuotePrefixWhitespace"),e.consume(c),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(c))}}function HC(e,n,r){const a=this;return o;function o(c){return Me(c)?He(e,s,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):s(c)}function s(c){return e.attempt(Tv,n,r)(c)}}function GC(e){e.exit("blockQuote")}const Rv={name:"characterEscape",tokenize:qC};function qC(e,n,r){return a;function a(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),o}function o(s){return OC(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(s)}}const Ov={name:"characterReference",tokenize:$C};function $C(e,n,r){const a=this;let o=0,s,c;return f;function f(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),d}function d(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),h):(e.enter("characterReferenceValue"),s=31,c=Qt,y(g))}function h(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,c=RC,y):(e.enter("characterReferenceValue"),s=7,c=ah,y(g))}function y(g){if(g===59&&o){const b=e.exit("characterReferenceValue");return c===Qt&&!Hh(a.sliceSerialize(b))?r(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return c(g)&&o++<s?(e.consume(g),y):r(g)}}const i0={partial:!0,tokenize:YC},a0={concrete:!0,name:"codeFenced",tokenize:FC};function FC(e,n,r){const a=this,o={partial:!0,tokenize:Q};let s=0,c=0,f;return d;function d(D){return h(D)}function h(D){const P=a.events[a.events.length-1];return s=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,f=D,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(D)}function y(D){return D===f?(c++,e.consume(D),y):c<3?r(D):(e.exit("codeFencedFenceSequence"),Me(D)?He(e,g,"whitespace")(D):g(D))}function g(D){return D===null||ve(D)?(e.exit("codeFencedFence"),a.interrupt?n(D):e.check(i0,C,Z)(D)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),b(D))}function b(D){return D===null||ve(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(D)):Me(D)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),He(e,_,"whitespace")(D)):D===96&&D===f?r(D):(e.consume(D),b)}function _(D){return D===null||ve(D)?g(D):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(D))}function x(D){return D===null||ve(D)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(D)):D===96&&D===f?r(D):(e.consume(D),x)}function C(D){return e.attempt(o,Z,R)(D)}function R(D){return e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),w}function w(D){return s>0&&Me(D)?He(e,T,"linePrefix",s+1)(D):T(D)}function T(D){return D===null||ve(D)?e.check(i0,C,Z)(D):(e.enter("codeFlowValue"),N(D))}function N(D){return D===null||ve(D)?(e.exit("codeFlowValue"),T(D)):(e.consume(D),N)}function Z(D){return e.exit("codeFenced"),n(D)}function Q(D,P,q){let F=0;return j;function j(ie){return D.enter("lineEnding"),D.consume(ie),D.exit("lineEnding"),V}function V(ie){return D.enter("codeFencedFence"),Me(ie)?He(D,W,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ie):W(ie)}function W(ie){return ie===f?(D.enter("codeFencedFenceSequence"),ge(ie)):q(ie)}function ge(ie){return ie===f?(F++,D.consume(ie),ge):F>=c?(D.exit("codeFencedFenceSequence"),Me(ie)?He(D,oe,"whitespace")(ie):oe(ie)):q(ie)}function oe(ie){return ie===null||ve(ie)?(D.exit("codeFencedFence"),P(ie)):q(ie)}}}function YC(e,n,r){const a=this;return o;function o(c){return c===null?r(c):(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s)}function s(c){return a.parser.lazy[a.now().line]?r(c):n(c)}}const ud={name:"codeIndented",tokenize:QC},XC={partial:!0,tokenize:ZC};function QC(e,n,r){const a=this;return o;function o(h){return e.enter("codeIndented"),He(e,s,"linePrefix",5)(h)}function s(h){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?c(h):r(h)}function c(h){return h===null?d(h):ve(h)?e.attempt(XC,c,d)(h):(e.enter("codeFlowValue"),f(h))}function f(h){return h===null||ve(h)?(e.exit("codeFlowValue"),c(h)):(e.consume(h),f)}function d(h){return e.exit("codeIndented"),n(h)}}function ZC(e,n,r){const a=this;return o;function o(c){return a.parser.lazy[a.now().line]?r(c):ve(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),o):He(e,s,"linePrefix",5)(c)}function s(c){const f=a.events[a.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):ve(c)?o(c):r(c)}}const KC={name:"codeText",previous:WC,resolve:JC,tokenize:eT};function JC(e){let n=e.length-4,r=3,a,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(a=r;++a<n;)if(e[a][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(a=r-1,n++;++a<=n;)o===void 0?a!==n&&e[a][1].type!=="lineEnding"&&(o=a):(a===n||e[a][1].type==="lineEnding")&&(e[o][1].type="codeTextData",a!==o+2&&(e[o][1].end=e[a-1][1].end,e.splice(o+2,a-o-2),n-=a-o-2,a=o+2),o=void 0);return e}function WC(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function eT(e,n,r){let a=0,o,s;return c;function c(g){return e.enter("codeText"),e.enter("codeTextSequence"),f(g)}function f(g){return g===96?(e.consume(g),a++,f):(e.exit("codeTextSequence"),d(g))}function d(g){return g===null?r(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),d):g===96?(s=e.enter("codeTextSequence"),o=0,y(g)):ve(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||ve(g)?(e.exit("codeTextData"),d(g)):(e.consume(g),h)}function y(g){return g===96?(e.consume(g),o++,y):o===a?(e.exit("codeTextSequence"),e.exit("codeText"),n(g)):(s.type="codeTextData",h(g))}}class tT{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(n,a):n>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(n,r,a){const o=r||0;this.setCursor(Math.trunc(n));const s=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&Nl(this.left,a),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Nl(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Nl(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const r=this.left.splice(n,Number.POSITIVE_INFINITY);Nl(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Nl(this.left,r.reverse())}}}function Nl(e,n){let r=0;if(n.length<1e4)e.push(...n);else for(;r<n.length;)e.push(...n.slice(r,r+1e4)),r+=1e4}function Lv(e){const n={};let r=-1,a,o,s,c,f,d,h;const y=new tT(e);for(;++r<y.length;){for(;r in n;)r=n[r];if(a=y.get(r),r&&a[1].type==="chunkFlow"&&y.get(r-1)[1].type==="listItemPrefix"&&(d=a[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);if(a[0]==="enter")a[1].contentType&&(Object.assign(n,nT(y,r)),r=n[r],h=!0);else if(a[1]._container){for(s=r,o=void 0;s--;)if(c=y.get(s),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),c[1].type="lineEnding",o=s);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;o&&(a[1].end={...y.get(o)[1].start},f=y.slice(o,r),f.unshift(a),y.splice(o,r-o+1,f))}}return vn(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!h}function nT(e,n){const r=e.get(n)[1],a=e.get(n)[2];let o=n-1;const s=[];let c=r._tokenizer;c||(c=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const f=c.events,d=[],h={};let y,g,b=-1,_=r,x=0,C=0;const R=[C];for(;_;){for(;e.get(++o)[1]!==_;);s.push(o),_._tokenizer||(y=a.sliceStream(_),_.next||y.push(null),g&&c.defineSkip(_.start),_._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(y),_._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=_,_=_.next}for(_=r;++b<f.length;)f[b][0]==="exit"&&f[b-1][0]==="enter"&&f[b][1].type===f[b-1][1].type&&f[b][1].start.line!==f[b][1].end.line&&(C=b+1,R.push(C),_._tokenizer=void 0,_.previous=void 0,_=_.next);for(c.events=[],_?(_._tokenizer=void 0,_.previous=void 0):R.pop(),b=R.length;b--;){const w=f.slice(R[b],R[b+1]),T=s.pop();d.push([T,T+w.length-1]),e.splice(T,2,w)}for(d.reverse(),b=-1;++b<d.length;)h[x+d[b][0]]=x+d[b][1],x+=d[b][1]-d[b][0]-1;return h}const rT={resolve:aT,tokenize:lT},iT={partial:!0,tokenize:oT};function aT(e){return Lv(e),e}function lT(e,n){let r;return a;function a(f){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(f)}function o(f){return f===null?s(f):ve(f)?e.check(iT,c,s)(f):(e.consume(f),o)}function s(f){return e.exit("chunkContent"),e.exit("content"),n(f)}function c(f){return e.consume(f),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function oT(e,n,r){const a=this;return o;function o(c){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),He(e,s,"linePrefix")}function s(c){if(c===null||ve(c))return r(c);const f=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?n(c):e.interrupt(a.parser.constructs.flow,r,n)(c)}}function Dv(e,n,r,a,o,s,c,f,d){const h=d||Number.POSITIVE_INFINITY;let y=0;return g;function g(w){return w===60?(e.enter(a),e.enter(o),e.enter(s),e.consume(w),e.exit(s),b):w===null||w===32||w===41||Fs(w)?r(w):(e.enter(a),e.enter(c),e.enter(f),e.enter("chunkString",{contentType:"string"}),C(w))}function b(w){return w===62?(e.enter(s),e.consume(w),e.exit(s),e.exit(o),e.exit(a),n):(e.enter(f),e.enter("chunkString",{contentType:"string"}),_(w))}function _(w){return w===62?(e.exit("chunkString"),e.exit(f),b(w)):w===null||w===60||ve(w)?r(w):(e.consume(w),w===92?x:_)}function x(w){return w===60||w===62||w===92?(e.consume(w),_):_(w)}function C(w){return!y&&(w===null||w===41||at(w))?(e.exit("chunkString"),e.exit(f),e.exit(c),e.exit(a),n(w)):y<h&&w===40?(e.consume(w),y++,C):w===41?(e.consume(w),y--,C):w===null||w===32||w===40||Fs(w)?r(w):(e.consume(w),w===92?R:C)}function R(w){return w===40||w===41||w===92?(e.consume(w),C):C(w)}}function Nv(e,n,r,a,o,s){const c=this;let f=0,d;return h;function h(_){return e.enter(a),e.enter(o),e.consume(_),e.exit(o),e.enter(s),y}function y(_){return f>999||_===null||_===91||_===93&&!d||_===94&&!f&&"_hiddenFootnoteSupport"in c.parser.constructs?r(_):_===93?(e.exit(s),e.enter(o),e.consume(_),e.exit(o),e.exit(a),n):ve(_)?(e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),g(_))}function g(_){return _===null||_===91||_===93||ve(_)||f++>999?(e.exit("chunkString"),y(_)):(e.consume(_),d||(d=!Me(_)),_===92?b:g)}function b(_){return _===91||_===92||_===93?(e.consume(_),f++,g):g(_)}}function Mv(e,n,r,a,o,s){let c;return f;function f(b){return b===34||b===39||b===40?(e.enter(a),e.enter(o),e.consume(b),e.exit(o),c=b===40?41:b,d):r(b)}function d(b){return b===c?(e.enter(o),e.consume(b),e.exit(o),e.exit(a),n):(e.enter(s),h(b))}function h(b){return b===c?(e.exit(s),d(c)):b===null?r(b):ve(b)?(e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),He(e,h,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(b))}function y(b){return b===c||b===null||ve(b)?(e.exit("chunkString"),h(b)):(e.consume(b),b===92?g:y)}function g(b){return b===c||b===92?(e.consume(b),y):y(b)}}function Ul(e,n){let r;return a;function a(o){return ve(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,a):Me(o)?He(e,a,r?"linePrefix":"lineSuffix")(o):n(o)}}const sT={name:"definition",tokenize:cT},uT={partial:!0,tokenize:fT};function cT(e,n,r){const a=this;let o;return s;function s(_){return e.enter("definition"),c(_)}function c(_){return Nv.call(a,e,f,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(_)}function f(_){return o=Pn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),_===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),d):r(_)}function d(_){return at(_)?Ul(e,h)(_):h(_)}function h(_){return Dv(e,y,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(_)}function y(_){return e.attempt(uT,g,g)(_)}function g(_){return Me(_)?He(e,b,"whitespace")(_):b(_)}function b(_){return _===null||ve(_)?(e.exit("definition"),a.parser.defined.push(o),n(_)):r(_)}}function fT(e,n,r){return a;function a(f){return at(f)?Ul(e,o)(f):r(f)}function o(f){return Mv(e,s,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function s(f){return Me(f)?He(e,c,"whitespace")(f):c(f)}function c(f){return f===null||ve(f)?n(f):r(f)}}const dT={name:"hardBreakEscape",tokenize:hT};function hT(e,n,r){return a;function a(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return ve(s)?(e.exit("hardBreakEscape"),n(s)):r(s)}}const pT={name:"headingAtx",resolve:mT,tokenize:gT};function mT(e,n){let r=e.length-2,a=3,o,s;return e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a&&(o={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},s={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"},vn(e,a,r-a+1,[["enter",o,n],["enter",s,n],["exit",s,n],["exit",o,n]])),e}function gT(e,n,r){let a=0;return o;function o(y){return e.enter("atxHeading"),s(y)}function s(y){return e.enter("atxHeadingSequence"),c(y)}function c(y){return y===35&&a++<6?(e.consume(y),c):y===null||at(y)?(e.exit("atxHeadingSequence"),f(y)):r(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),d(y)):y===null||ve(y)?(e.exit("atxHeading"),n(y)):Me(y)?He(e,f,"whitespace")(y):(e.enter("atxHeadingText"),h(y))}function d(y){return y===35?(e.consume(y),d):(e.exit("atxHeadingSequence"),f(y))}function h(y){return y===null||y===35||at(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),h)}}const yT=["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"],l0=["pre","script","style","textarea"],_T={concrete:!0,name:"htmlFlow",resolveTo:xT,tokenize:ET},bT={partial:!0,tokenize:wT},vT={partial:!0,tokenize:ST};function xT(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function ET(e,n,r){const a=this;let o,s,c,f,d;return h;function h(S){return y(S)}function y(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),g}function g(S){return S===33?(e.consume(S),b):S===47?(e.consume(S),s=!0,C):S===63?(e.consume(S),o=3,a.interrupt?n:A):Jt(S)?(e.consume(S),c=String.fromCharCode(S),R):r(S)}function b(S){return S===45?(e.consume(S),o=2,_):S===91?(e.consume(S),o=5,f=0,x):Jt(S)?(e.consume(S),o=4,a.interrupt?n:A):r(S)}function _(S){return S===45?(e.consume(S),a.interrupt?n:A):r(S)}function x(S){const re="CDATA[";return S===re.charCodeAt(f++)?(e.consume(S),f===re.length?a.interrupt?n:W:x):r(S)}function C(S){return Jt(S)?(e.consume(S),c=String.fromCharCode(S),R):r(S)}function R(S){if(S===null||S===47||S===62||at(S)){const re=S===47,ae=c.toLowerCase();return!re&&!s&&l0.includes(ae)?(o=1,a.interrupt?n(S):W(S)):yT.includes(c.toLowerCase())?(o=6,re?(e.consume(S),w):a.interrupt?n(S):W(S)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(S):s?T(S):N(S))}return S===45||Qt(S)?(e.consume(S),c+=String.fromCharCode(S),R):r(S)}function w(S){return S===62?(e.consume(S),a.interrupt?n:W):r(S)}function T(S){return Me(S)?(e.consume(S),T):j(S)}function N(S){return S===47?(e.consume(S),j):S===58||S===95||Jt(S)?(e.consume(S),Z):Me(S)?(e.consume(S),N):j(S)}function Z(S){return S===45||S===46||S===58||S===95||Qt(S)?(e.consume(S),Z):Q(S)}function Q(S){return S===61?(e.consume(S),D):Me(S)?(e.consume(S),Q):N(S)}function D(S){return S===null||S===60||S===61||S===62||S===96?r(S):S===34||S===39?(e.consume(S),d=S,P):Me(S)?(e.consume(S),D):q(S)}function P(S){return S===d?(e.consume(S),d=null,F):S===null||ve(S)?r(S):(e.consume(S),P)}function q(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||at(S)?Q(S):(e.consume(S),q)}function F(S){return S===47||S===62||Me(S)?N(S):r(S)}function j(S){return S===62?(e.consume(S),V):r(S)}function V(S){return S===null||ve(S)?W(S):Me(S)?(e.consume(S),V):r(S)}function W(S){return S===45&&o===2?(e.consume(S),B):S===60&&o===1?(e.consume(S),ne):S===62&&o===4?(e.consume(S),M):S===63&&o===3?(e.consume(S),A):S===93&&o===5?(e.consume(S),xe):ve(S)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(bT,I,ge)(S)):S===null||ve(S)?(e.exit("htmlFlowData"),ge(S)):(e.consume(S),W)}function ge(S){return e.check(vT,oe,I)(S)}function oe(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),ie}function ie(S){return S===null||ve(S)?ge(S):(e.enter("htmlFlowData"),W(S))}function B(S){return S===45?(e.consume(S),A):W(S)}function ne(S){return S===47?(e.consume(S),c="",de):W(S)}function de(S){if(S===62){const re=c.toLowerCase();return l0.includes(re)?(e.consume(S),M):W(S)}return Jt(S)&&c.length<8?(e.consume(S),c+=String.fromCharCode(S),de):W(S)}function xe(S){return S===93?(e.consume(S),A):W(S)}function A(S){return S===62?(e.consume(S),M):S===45&&o===2?(e.consume(S),A):W(S)}function M(S){return S===null||ve(S)?(e.exit("htmlFlowData"),I(S)):(e.consume(S),M)}function I(S){return e.exit("htmlFlow"),n(S)}}function ST(e,n,r){const a=this;return o;function o(c){return ve(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):r(c)}function s(c){return a.parser.lazy[a.now().line]?r(c):n(c)}}function wT(e,n,r){return a;function a(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(to,n,r)}}const kT={name:"htmlText",tokenize:AT};function AT(e,n,r){const a=this;let o,s,c;return f;function f(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),d}function d(A){return A===33?(e.consume(A),h):A===47?(e.consume(A),Q):A===63?(e.consume(A),N):Jt(A)?(e.consume(A),q):r(A)}function h(A){return A===45?(e.consume(A),y):A===91?(e.consume(A),s=0,x):Jt(A)?(e.consume(A),T):r(A)}function y(A){return A===45?(e.consume(A),_):r(A)}function g(A){return A===null?r(A):A===45?(e.consume(A),b):ve(A)?(c=g,ne(A)):(e.consume(A),g)}function b(A){return A===45?(e.consume(A),_):g(A)}function _(A){return A===62?B(A):A===45?b(A):g(A)}function x(A){const M="CDATA[";return A===M.charCodeAt(s++)?(e.consume(A),s===M.length?C:x):r(A)}function C(A){return A===null?r(A):A===93?(e.consume(A),R):ve(A)?(c=C,ne(A)):(e.consume(A),C)}function R(A){return A===93?(e.consume(A),w):C(A)}function w(A){return A===62?B(A):A===93?(e.consume(A),w):C(A)}function T(A){return A===null||A===62?B(A):ve(A)?(c=T,ne(A)):(e.consume(A),T)}function N(A){return A===null?r(A):A===63?(e.consume(A),Z):ve(A)?(c=N,ne(A)):(e.consume(A),N)}function Z(A){return A===62?B(A):N(A)}function Q(A){return Jt(A)?(e.consume(A),D):r(A)}function D(A){return A===45||Qt(A)?(e.consume(A),D):P(A)}function P(A){return ve(A)?(c=P,ne(A)):Me(A)?(e.consume(A),P):B(A)}function q(A){return A===45||Qt(A)?(e.consume(A),q):A===47||A===62||at(A)?F(A):r(A)}function F(A){return A===47?(e.consume(A),B):A===58||A===95||Jt(A)?(e.consume(A),j):ve(A)?(c=F,ne(A)):Me(A)?(e.consume(A),F):B(A)}function j(A){return A===45||A===46||A===58||A===95||Qt(A)?(e.consume(A),j):V(A)}function V(A){return A===61?(e.consume(A),W):ve(A)?(c=V,ne(A)):Me(A)?(e.consume(A),V):F(A)}function W(A){return A===null||A===60||A===61||A===62||A===96?r(A):A===34||A===39?(e.consume(A),o=A,ge):ve(A)?(c=W,ne(A)):Me(A)?(e.consume(A),W):(e.consume(A),oe)}function ge(A){return A===o?(e.consume(A),o=void 0,ie):A===null?r(A):ve(A)?(c=ge,ne(A)):(e.consume(A),ge)}function oe(A){return A===null||A===34||A===39||A===60||A===61||A===96?r(A):A===47||A===62||at(A)?F(A):(e.consume(A),oe)}function ie(A){return A===47||A===62||at(A)?F(A):r(A)}function B(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),n):r(A)}function ne(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),de}function de(A){return Me(A)?He(e,xe,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):xe(A)}function xe(A){return e.enter("htmlTextData"),c(A)}}const Gh={name:"labelEnd",resolveAll:OT,resolveTo:LT,tokenize:DT},CT={tokenize:NT},TT={tokenize:MT},RT={tokenize:zT};function OT(e){let n=-1;const r=[];for(;++n<e.length;){const a=e[n][1];if(r.push(e[n]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",n+=o}}return e.length!==r.length&&vn(e,0,e.length,r),e}function LT(e,n){let r=e.length,a=0,o,s,c,f;for(;r--;)if(o=e[r][1],s){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[r][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(s=r,o.type!=="labelLink")){a=2;break}}else o.type==="labelEnd"&&(c=r);const d={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},h={type:"label",start:{...e[s][1].start},end:{...e[c][1].end}},y={type:"labelText",start:{...e[s+a+2][1].end},end:{...e[c-2][1].start}};return f=[["enter",d,n],["enter",h,n]],f=Dn(f,e.slice(s+1,s+a+3)),f=Dn(f,[["enter",y,n]]),f=Dn(f,pu(n.parser.constructs.insideSpan.null,e.slice(s+a+4,c-3),n)),f=Dn(f,[["exit",y,n],e[c-2],e[c-1],["exit",h,n]]),f=Dn(f,e.slice(c+1)),f=Dn(f,[["exit",d,n]]),vn(e,s,e.length,f),e}function DT(e,n,r){const a=this;let o=a.events.length,s,c;for(;o--;)if((a.events[o][1].type==="labelImage"||a.events[o][1].type==="labelLink")&&!a.events[o][1]._balanced){s=a.events[o][1];break}return f;function f(b){return s?s._inactive?g(b):(c=a.parser.defined.includes(Pn(a.sliceSerialize({start:s.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(b),e.exit("labelMarker"),e.exit("labelEnd"),d):r(b)}function d(b){return b===40?e.attempt(CT,y,c?y:g)(b):b===91?e.attempt(TT,y,c?h:g)(b):c?y(b):g(b)}function h(b){return e.attempt(RT,y,g)(b)}function y(b){return n(b)}function g(b){return s._balanced=!0,r(b)}}function NT(e,n,r){return a;function a(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return at(g)?Ul(e,s)(g):s(g)}function s(g){return g===41?y(g):Dv(e,c,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return at(g)?Ul(e,d)(g):y(g)}function f(g){return r(g)}function d(g){return g===34||g===39||g===40?Mv(e,h,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function h(g){return at(g)?Ul(e,y)(g):y(g)}function y(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),n):r(g)}}function MT(e,n,r){const a=this;return o;function o(f){return Nv.call(a,e,s,c,"reference","referenceMarker","referenceString")(f)}function s(f){return a.parser.defined.includes(Pn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?n(f):r(f)}function c(f){return r(f)}}function zT(e,n,r){return a;function a(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),o}function o(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),n):r(s)}}const IT={name:"labelStartImage",resolveAll:Gh.resolveAll,tokenize:jT};function jT(e,n,r){const a=this;return o;function o(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),s}function s(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),c):r(f)}function c(f){return f===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(f):n(f)}}const BT={name:"labelStartLink",resolveAll:Gh.resolveAll,tokenize:UT};function UT(e,n,r){const a=this;return o;function o(c){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelLink"),s}function s(c){return c===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(c):n(c)}}const cd={name:"lineEnding",tokenize:VT};function VT(e,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),He(e,n,"linePrefix")}}const Vs={name:"thematicBreak",tokenize:PT};function PT(e,n,r){let a=0,o;return s;function s(h){return e.enter("thematicBreak"),c(h)}function c(h){return o=h,f(h)}function f(h){return h===o?(e.enter("thematicBreakSequence"),d(h)):a>=3&&(h===null||ve(h))?(e.exit("thematicBreak"),n(h)):r(h)}function d(h){return h===o?(e.consume(h),a++,d):(e.exit("thematicBreakSequence"),Me(h)?He(e,f,"whitespace")(h):f(h))}}const un={continuation:{tokenize:$T},exit:YT,name:"list",tokenize:qT},HT={partial:!0,tokenize:XT},GT={partial:!0,tokenize:FT};function qT(e,n,r){const a=this,o=a.events[a.events.length-1];let s=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,c=0;return f;function f(_){const x=a.containerState.type||(_===42||_===43||_===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!a.containerState.marker||_===a.containerState.marker:ah(_)){if(a.containerState.type||(a.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),_===42||_===45?e.check(Vs,r,h)(_):h(_);if(!a.interrupt||_===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(_)}return r(_)}function d(_){return ah(_)&&++c<10?(e.consume(_),d):(!a.interrupt||c<2)&&(a.containerState.marker?_===a.containerState.marker:_===41||_===46)?(e.exit("listItemValue"),h(_)):r(_)}function h(_){return e.enter("listItemMarker"),e.consume(_),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||_,e.check(to,a.interrupt?r:y,e.attempt(HT,b,g))}function y(_){return a.containerState.initialBlankLine=!0,s++,b(_)}function g(_){return Me(_)?(e.enter("listItemPrefixWhitespace"),e.consume(_),e.exit("listItemPrefixWhitespace"),b):r(_)}function b(_){return a.containerState.size=s+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(_)}}function $T(e,n,r){const a=this;return a.containerState._closeFlow=void 0,e.check(to,o,s);function o(f){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,He(e,n,"listItemIndent",a.containerState.size+1)(f)}function s(f){return a.containerState.furtherBlankLines||!Me(f)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,c(f)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(GT,n,c)(f))}function c(f){return a.containerState._closeFlow=!0,a.interrupt=void 0,He(e,e.attempt(un,n,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function FT(e,n,r){const a=this;return He(e,o,"listItemIndent",a.containerState.size+1);function o(s){const c=a.events[a.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===a.containerState.size?n(s):r(s)}}function YT(e){e.exit(this.containerState.type)}function XT(e,n,r){const a=this;return He(e,o,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const c=a.events[a.events.length-1];return!Me(s)&&c&&c[1].type==="listItemPrefixWhitespace"?n(s):r(s)}}const o0={name:"setextUnderline",resolveTo:QT,tokenize:ZT};function QT(e,n){let r=e.length,a,o,s;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){a=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&e.splice(r,1),!s&&e[r][1].type==="definition"&&(s=r);const c={type:"setextHeading",start:{...e[a][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",s?(e.splice(o,0,["enter",c,n]),e.splice(s+1,0,["exit",e[a][1],n]),e[a][1].end={...e[s][1].end}):e[a][1]=c,e.push(["exit",c,n]),e}function ZT(e,n,r){const a=this;let o;return s;function s(h){let y=a.events.length,g;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){g=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(e.enter("setextHeadingLine"),o=h,c(h)):r(h)}function c(h){return e.enter("setextHeadingLineSequence"),f(h)}function f(h){return h===o?(e.consume(h),f):(e.exit("setextHeadingLineSequence"),Me(h)?He(e,d,"lineSuffix")(h):d(h))}function d(h){return h===null||ve(h)?(e.exit("setextHeadingLine"),n(h)):r(h)}}const KT={tokenize:JT};function JT(e){const n=this,r=e.attempt(to,a,e.attempt(this.parser.constructs.flowInitial,o,He(e,e.attempt(this.parser.constructs.flow,o,e.attempt(rT,o)),"linePrefix")));return r;function a(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n.currentConstruct=void 0,r}}const WT={resolveAll:Iv()},e2=zv("string"),t2=zv("text");function zv(e){return{resolveAll:Iv(e==="text"?n2:void 0),tokenize:n};function n(r){const a=this,o=this.parser.constructs[e],s=r.attempt(o,c,f);return c;function c(y){return h(y)?s(y):f(y)}function f(y){if(y===null){r.consume(y);return}return r.enter("data"),r.consume(y),d}function d(y){return h(y)?(r.exit("data"),s(y)):(r.consume(y),d)}function h(y){if(y===null)return!0;const g=o[y];let b=-1;if(g)for(;++b<g.length;){const _=g[b];if(!_.previous||_.previous.call(a,a.previous))return!0}return!1}}}function Iv(e){return n;function n(r,a){let o=-1,s;for(;++o<=r.length;)s===void 0?r[o]&&r[o][1].type==="data"&&(s=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==s+2&&(r[s][1].end=r[o-1][1].end,r.splice(s+2,o-s-2),o=s+2),s=void 0);return e?e(r,a):r}}function n2(e,n){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const a=e[r-1][1],o=n.sliceStream(a);let s=o.length,c=-1,f=0,d;for(;s--;){const h=o[s];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)f++,c--;if(c)break;c=-1}else if(h===-2)d=!0,f++;else if(h!==-1){s++;break}}if(n._contentTypeTextTrailing&&r===e.length&&(f=0),f){const h={type:r===e.length||d||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?c:a.start._bufferIndex+c,_index:a.start._index+s,line:a.end.line,column:a.end.column-f,offset:a.end.offset-f},end:{...a.end}};a.end={...h.start},a.start.offset===a.end.offset?Object.assign(a,h):(e.splice(r,0,["enter",h,n],["exit",h,n]),r+=2)}r++}return e}const r2={42:un,43:un,45:un,48:un,49:un,50:un,51:un,52:un,53:un,54:un,55:un,56:un,57:un,62:Tv},i2={91:sT},a2={[-2]:ud,[-1]:ud,32:ud},l2={35:pT,42:Vs,45:[o0,Vs],60:_T,61:o0,95:Vs,96:a0,126:a0},o2={38:Ov,92:Rv},s2={[-5]:cd,[-4]:cd,[-3]:cd,33:IT,38:Ov,42:lh,60:[BC,kT],91:BT,92:[dT,Rv],93:Gh,95:lh,96:KC},u2={null:[lh,WT]},c2={null:[42,95]},f2={null:[]},d2=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:c2,contentInitial:i2,disable:f2,document:r2,flow:l2,flowInitial:a2,insideSpan:u2,string:o2,text:s2},Symbol.toStringTag,{value:"Module"}));function h2(e,n,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},s=[];let c=[],f=[];const d={attempt:P(Q),check:P(D),consume:T,enter:N,exit:Z,interrupt:P(D,{interrupt:!0})},h={code:null,containerState:{},defineSkip:C,events:[],now:x,parser:e,previous:null,sliceSerialize:b,sliceStream:_,write:g};let y=n.tokenize.call(h,d);return n.resolveAll&&s.push(n),h;function g(V){return c=Dn(c,V),R(),c[c.length-1]!==null?[]:(q(n,0),h.events=pu(s,h.events,h),h.events)}function b(V,W){return m2(_(V),W)}function _(V){return p2(c,V)}function x(){const{_bufferIndex:V,_index:W,line:ge,column:oe,offset:ie}=a;return{_bufferIndex:V,_index:W,line:ge,column:oe,offset:ie}}function C(V){o[V.line]=V.column,j()}function R(){let V;for(;a._index<c.length;){const W=c[a._index];if(typeof W=="string")for(V=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===V&&a._bufferIndex<W.length;)w(W.charCodeAt(a._bufferIndex));else w(W)}}function w(V){y=y(V)}function T(V){ve(V)?(a.line++,a.column=1,a.offset+=V===-3?2:1,j()):V!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===c[a._index].length&&(a._bufferIndex=-1,a._index++)),h.previous=V}function N(V,W){const ge=W||{};return ge.type=V,ge.start=x(),h.events.push(["enter",ge,h]),f.push(ge),ge}function Z(V){const W=f.pop();return W.end=x(),h.events.push(["exit",W,h]),W}function Q(V,W){q(V,W.from)}function D(V,W){W.restore()}function P(V,W){return ge;function ge(oe,ie,B){let ne,de,xe,A;return Array.isArray(oe)?I(oe):"tokenize"in oe?I([oe]):M(oe);function M(le){return fe;function fe(_e){const ue=_e!==null&&le[_e],Be=_e!==null&&le.null,qe=[...Array.isArray(ue)?ue:ue?[ue]:[],...Array.isArray(Be)?Be:Be?[Be]:[]];return I(qe)(_e)}}function I(le){return ne=le,de=0,le.length===0?B:S(le[de])}function S(le){return fe;function fe(_e){return A=F(),xe=le,le.partial||(h.currentConstruct=le),le.name&&h.parser.constructs.disable.null.includes(le.name)?ae():le.tokenize.call(W?Object.assign(Object.create(h),W):h,d,re,ae)(_e)}}function re(le){return V(xe,A),ie}function ae(le){return A.restore(),++de<ne.length?S(ne[de]):B}}}function q(V,W){V.resolveAll&&!s.includes(V)&&s.push(V),V.resolve&&vn(h.events,W,h.events.length-W,V.resolve(h.events.slice(W),h)),V.resolveTo&&(h.events=V.resolveTo(h.events,h))}function F(){const V=x(),W=h.previous,ge=h.currentConstruct,oe=h.events.length,ie=Array.from(f);return{from:oe,restore:B};function B(){a=V,h.previous=W,h.currentConstruct=ge,h.events.length=oe,f=ie,j()}}function j(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}function p2(e,n){const r=n.start._index,a=n.start._bufferIndex,o=n.end._index,s=n.end._bufferIndex;let c;if(r===o)c=[e[r].slice(a,s)];else{if(c=e.slice(r,o),a>-1){const f=c[0];typeof f=="string"?c[0]=f.slice(a):c.shift()}s>0&&c.push(e[o].slice(0,s))}return c}function m2(e,n){let r=-1;const a=[];let o;for(;++r<e.length;){const s=e[r];let c;if(typeof s=="string")c=s;else switch(s){case-5:{c="\r";break}case-4:{c=`
|
|
12
|
+
`;break}case-3:{c=`\r
|
|
13
|
+
`;break}case-2:{c=n?" ":" ";break}case-1:{if(!n&&o)continue;c=" ";break}default:c=String.fromCharCode(s)}o=s===-2,a.push(c)}return a.join("")}function g2(e){const a={constructs:Av([d2,...(e||{}).extensions||[]]),content:o(LC),defined:[],document:o(NC),flow:o(KT),lazy:{},string:o(e2),text:o(t2)};return a;function o(s){return c;function c(f){return h2(a,s,f)}}}function y2(e){for(;!Lv(e););return e}const s0=/[\0\t\n\r]/g;function _2(){let e=1,n="",r=!0,a;return o;function o(s,c,f){const d=[];let h,y,g,b,_;for(s=n+(typeof s=="string"?s.toString():new TextDecoder(c||void 0).decode(s)),g=0,n="",r&&(s.charCodeAt(0)===65279&&g++,r=void 0);g<s.length;){if(s0.lastIndex=g,h=s0.exec(s),b=h&&h.index!==void 0?h.index:s.length,_=s.charCodeAt(b),!h){n=s.slice(g);break}if(_===10&&g===b&&a)d.push(-3),a=void 0;else switch(a&&(d.push(-5),a=void 0),g<b&&(d.push(s.slice(g,b)),e+=b-g),_){case 0:{d.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,d.push(-2);e++<y;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:a=!0,e=1}g=b+1}return f&&(a&&d.push(-5),n&&d.push(n),d.push(null)),d}}const b2=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function v2(e){return e.replace(b2,x2)}function x2(e,n,r){if(n)return n;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),s=o===120||o===88;return Cv(r.slice(s?2:1),s?16:10)}return Hh(r)||e}const jv={}.hasOwnProperty;function E2(e,n,r){return n&&typeof n=="object"&&(r=n,n=void 0),S2(r)(y2(g2(r).document().write(_2()(e,n,!0))))}function S2(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Ge),autolinkProtocol:F,autolinkEmail:F,atxHeading:s(Dt),blockQuote:s(Be),characterEscape:F,characterReference:F,codeFenced:s(qe),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:s(qe,c),codeText:s(dt,c),codeTextData:F,data:F,codeFlowValue:F,definition:s(ht),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:s(Ye),hardBreakEscape:s(Wt),hardBreakTrailing:s(Wt),htmlFlow:s(Pe,c),htmlFlowData:F,htmlText:s(Pe,c),htmlTextData:F,image:s(Qe),label:c,link:s(Ge),listItem:s(Gt),listItemValue:b,listOrdered:s(Je,g),listUnordered:s(Je),paragraph:s(qt),reference:S,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:s(Dt),strong:s(pt),thematicBreak:s(Jn)},exit:{atxHeading:d(),atxHeadingSequence:Q,autolink:d(),autolinkEmail:ue,autolinkProtocol:_e,blockQuote:d(),characterEscapeValue:j,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:le,characterReference:fe,codeFenced:d(R),codeFencedFence:C,codeFencedFenceInfo:_,codeFencedFenceMeta:x,codeFlowValue:j,codeIndented:d(w),codeText:d(ie),codeTextData:j,data:j,definition:d(),definitionDestinationString:Z,definitionLabelString:T,definitionTitleString:N,emphasis:d(),hardBreakEscape:d(W),hardBreakTrailing:d(W),htmlFlow:d(ge),htmlFlowData:j,htmlText:d(oe),htmlTextData:j,image:d(ne),label:xe,labelText:de,lineEnding:V,link:d(B),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:re,resourceDestinationString:A,resourceTitleString:M,resource:I,setextHeading:d(q),setextHeadingLineSequence:P,setextHeadingText:D,strong:d(),thematicBreak:d()}};Bv(n,(e||{}).mdastExtensions||[]);const r={};return a;function a(K){let ce={type:"root",children:[]};const Ee={stack:[ce],tokenStack:[],config:n,enter:f,exit:h,buffer:c,resume:y,data:r},we=[];let Oe=-1;for(;++Oe<K.length;)if(K[Oe][1].type==="listOrdered"||K[Oe][1].type==="listUnordered")if(K[Oe][0]==="enter")we.push(Oe);else{const jt=we.pop();Oe=o(K,jt,Oe)}for(Oe=-1;++Oe<K.length;){const jt=n[K[Oe][0]];jv.call(jt,K[Oe][1].type)&&jt[K[Oe][1].type].call(Object.assign({sliceSerialize:K[Oe][2].sliceSerialize},Ee),K[Oe][1])}if(Ee.tokenStack.length>0){const jt=Ee.tokenStack[Ee.tokenStack.length-1];(jt[1]||u0).call(Ee,void 0,jt[0])}for(ce.position={start:Kr(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Kr(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Oe=-1;++Oe<n.transforms.length;)ce=n.transforms[Oe](ce)||ce;return ce}function o(K,ce,Ee){let we=ce-1,Oe=-1,jt=!1,zn,kt,At,en;for(;++we<=Ee;){const rt=K[we];switch(rt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{rt[0]==="enter"?Oe++:Oe--,en=void 0;break}case"lineEndingBlank":{rt[0]==="enter"&&(zn&&!en&&!Oe&&!At&&(At=we),en=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:en=void 0}if(!Oe&&rt[0]==="enter"&&rt[1].type==="listItemPrefix"||Oe===-1&&rt[0]==="exit"&&(rt[1].type==="listUnordered"||rt[1].type==="listOrdered")){if(zn){let wr=we;for(kt=void 0;wr--;){const In=K[wr];if(In[1].type==="lineEnding"||In[1].type==="lineEndingBlank"){if(In[0]==="exit")continue;kt&&(K[kt][1].type="lineEndingBlank",jt=!0),In[1].type="lineEnding",kt=wr}else if(!(In[1].type==="linePrefix"||In[1].type==="blockQuotePrefix"||In[1].type==="blockQuotePrefixWhitespace"||In[1].type==="blockQuoteMarker"||In[1].type==="listItemIndent"))break}At&&(!kt||At<kt)&&(zn._spread=!0),zn.end=Object.assign({},kt?K[kt][1].start:rt[1].end),K.splice(kt||we,0,["exit",zn,rt[2]]),we++,Ee++}if(rt[1].type==="listItemPrefix"){const wr={type:"listItem",_spread:!1,start:Object.assign({},rt[1].start),end:void 0};zn=wr,K.splice(we,0,["enter",wr,rt[2]]),we++,Ee++,At=void 0,en=!0}}}return K[ce][1]._spread=jt,Ee}function s(K,ce){return Ee;function Ee(we){f.call(this,K(we),we),ce&&ce.call(this,we)}}function c(){this.stack.push({type:"fragment",children:[]})}function f(K,ce,Ee){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([ce,Ee||void 0]),K.position={start:Kr(ce.start),end:void 0}}function d(K){return ce;function ce(Ee){K&&K.call(this,Ee),h.call(this,Ee)}}function h(K,ce){const Ee=this.stack.pop(),we=this.tokenStack.pop();if(we)we[0].type!==K.type&&(ce?ce.call(this,K,we[0]):(we[1]||u0).call(this,K,we[0]));else throw new Error("Cannot close `"+K.type+"` ("+Bl({start:K.start,end:K.end})+"): it’s not open");Ee.position.end=Kr(K.end)}function y(){return Ph(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function b(K){if(this.data.expectingFirstListItemValue){const ce=this.stack[this.stack.length-2];ce.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function _(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.lang=K}function x(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.meta=K}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.value=K.replace(/(\r?\n|\r)$/g,"")}function T(K){const ce=this.resume(),Ee=this.stack[this.stack.length-1];Ee.label=ce,Ee.identifier=Pn(this.sliceSerialize(K)).toLowerCase()}function N(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.title=K}function Z(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.url=K}function Q(K){const ce=this.stack[this.stack.length-1];if(!ce.depth){const Ee=this.sliceSerialize(K).length;ce.depth=Ee}}function D(){this.data.setextHeadingSlurpLineEnding=!0}function P(K){const ce=this.stack[this.stack.length-1];ce.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function F(K){const Ee=this.stack[this.stack.length-1].children;let we=Ee[Ee.length-1];(!we||we.type!=="text")&&(we=nt(),we.position={start:Kr(K.start),end:void 0},Ee.push(we)),this.stack.push(we)}function j(K){const ce=this.stack.pop();ce.value+=this.sliceSerialize(K),ce.position.end=Kr(K.end)}function V(K){const ce=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ee=ce.children[ce.children.length-1];Ee.position.end=Kr(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(ce.type)&&(F.call(this,K),j.call(this,K))}function W(){this.data.atHardBreak=!0}function ge(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.value=K}function oe(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.value=K}function ie(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.value=K}function B(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ce=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ce,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function ne(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const ce=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=ce,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function de(K){const ce=this.sliceSerialize(K),Ee=this.stack[this.stack.length-2];Ee.label=v2(ce),Ee.identifier=Pn(ce).toLowerCase()}function xe(){const K=this.stack[this.stack.length-1],ce=this.resume(),Ee=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ee.type==="link"){const we=K.children;Ee.children=we}else Ee.alt=ce}function A(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.url=K}function M(){const K=this.resume(),ce=this.stack[this.stack.length-1];ce.title=K}function I(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function re(K){const ce=this.resume(),Ee=this.stack[this.stack.length-1];Ee.label=ce,Ee.identifier=Pn(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function ae(K){this.data.characterReferenceType=K.type}function le(K){const ce=this.sliceSerialize(K),Ee=this.data.characterReferenceType;let we;Ee?(we=Cv(ce,Ee==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):we=Hh(ce);const Oe=this.stack[this.stack.length-1];Oe.value+=we}function fe(K){const ce=this.stack.pop();ce.position.end=Kr(K.end)}function _e(K){j.call(this,K);const ce=this.stack[this.stack.length-1];ce.url=this.sliceSerialize(K)}function ue(K){j.call(this,K);const ce=this.stack[this.stack.length-1];ce.url="mailto:"+this.sliceSerialize(K)}function Be(){return{type:"blockquote",children:[]}}function qe(){return{type:"code",lang:null,meta:null,value:""}}function dt(){return{type:"inlineCode",value:""}}function ht(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ye(){return{type:"emphasis",children:[]}}function Dt(){return{type:"heading",depth:0,children:[]}}function Wt(){return{type:"break"}}function Pe(){return{type:"html",value:""}}function Qe(){return{type:"image",title:null,url:"",alt:null}}function Ge(){return{type:"link",title:null,url:"",children:[]}}function Je(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Gt(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function qt(){return{type:"paragraph",children:[]}}function pt(){return{type:"strong",children:[]}}function nt(){return{type:"text",value:""}}function Jn(){return{type:"thematicBreak"}}}function Kr(e){return{line:e.line,column:e.column,offset:e.offset}}function Bv(e,n){let r=-1;for(;++r<n.length;){const a=n[r];Array.isArray(a)?Bv(e,a):w2(e,a)}}function w2(e,n){let r;for(r in n)if(jv.call(n,r))switch(r){case"canContainEols":{const a=n[r];a&&e[r].push(...a);break}case"transforms":{const a=n[r];a&&e[r].push(...a);break}case"enter":case"exit":{const a=n[r];a&&Object.assign(e[r],a);break}}}function u0(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Bl({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Bl({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Bl({start:n.start,end:n.end})+") is still open")}function k2(e){const n=this;n.parser=r;function r(a){return E2(a,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function A2(e,n){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,r),e.applyData(n,r)}function C2(e,n){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:`
|
|
14
|
+
`}]}function T2(e,n){const r=n.value?n.value+`
|
|
15
|
+
`:"",a={},o=n.lang?n.lang.split(/\s+/):[];o.length>0&&(a.className=["language-"+o[0]]);let s={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return n.meta&&(s.data={meta:n.meta}),e.patch(n,s),s=e.applyData(n,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(n,s),s}function R2(e,n){const r={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function O2(e,n){const r={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function L2(e,n){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(n.identifier).toUpperCase(),o=Na(a.toLowerCase()),s=e.footnoteOrder.indexOf(a);let c,f=e.footnoteCounts.get(a);f===void 0?(f=0,e.footnoteOrder.push(a),c=e.footnoteOrder.length):c=s+1,f+=1,e.footnoteCounts.set(a,f);const d={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(c)}]};e.patch(n,d);const h={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(n,h),e.applyData(n,h)}function D2(e,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function N2(e,n){if(e.options.allowDangerousHtml){const r={type:"raw",value:n.value};return e.patch(n,r),e.applyData(n,r)}}function Uv(e,n){const r=n.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+a}];const o=e.all(n),s=o[0];s&&s.type==="text"?s.value="["+s.value:o.unshift({type:"text",value:"["});const c=o[o.length-1];return c&&c.type==="text"?c.value+=a:o.push({type:"text",value:a}),o}function M2(e,n){const r=String(n.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Uv(e,n);const o={src:Na(a.url||""),alt:n.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,s),e.applyData(n,s)}function z2(e,n){const r={src:Na(n.url)};n.alt!==null&&n.alt!==void 0&&(r.alt=n.alt),n.title!==null&&n.title!==void 0&&(r.title=n.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,a),e.applyData(n,a)}function I2(e,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(n,a),e.applyData(n,a)}function j2(e,n){const r=String(n.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Uv(e,n);const o={href:Na(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const s={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,s),e.applyData(n,s)}function B2(e,n){const r={href:Na(n.url)};n.title!==null&&n.title!==void 0&&(r.title=n.title);const a={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function U2(e,n,r){const a=e.all(n),o=r?V2(r):Vv(n),s={},c=[];if(typeof n.checked=="boolean"){const y=a[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let f=-1;for(;++f<a.length;){const y=a[f];(o||f!==0||y.type!=="element"||y.tagName!=="p")&&c.push({type:"text",value:`
|
|
16
|
+
`}),y.type==="element"&&y.tagName==="p"&&!o?c.push(...y.children):c.push(y)}const d=a[a.length-1];d&&(o||d.type!=="element"||d.tagName!=="p")&&c.push({type:"text",value:`
|
|
17
|
+
`});const h={type:"element",tagName:"li",properties:s,children:c};return e.patch(n,h),e.applyData(n,h)}function V2(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const r=e.children;let a=-1;for(;!n&&++a<r.length;)n=Vv(r[a])}return n}function Vv(e){const n=e.spread;return n??e.children.length>1}function P2(e,n){const r={},a=e.all(n);let o=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.start);++o<a.length;){const c=a[o];if(c.type==="element"&&c.tagName==="li"&&c.properties&&Array.isArray(c.properties.className)&&c.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const s={type:"element",tagName:n.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(n,s),e.applyData(n,s)}function H2(e,n){const r={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function G2(e,n){const r={type:"root",children:e.wrap(e.all(n))};return e.patch(n,r),e.applyData(n,r)}function q2(e,n){const r={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function $2(e,n){const r=e.all(n),a=r.shift(),o=[];if(a){const c={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(n.children[0],c),o.push(c)}if(r.length>0){const c={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},f=jh(n.children[1]),d=bv(n.children[n.children.length-1]);f&&d&&(c.position={start:f,end:d}),o.push(c)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,s),e.applyData(n,s)}function F2(e,n,r){const a=r?r.children:void 0,s=(a?a.indexOf(n):1)===0?"th":"td",c=r&&r.type==="table"?r.align:void 0,f=c?c.length:n.children.length;let d=-1;const h=[];for(;++d<f;){const g=n.children[d],b={},_=c?c[d]:void 0;_&&(b.align=_);let x={type:"element",tagName:s,properties:b,children:[]};g&&(x.children=e.all(g),e.patch(g,x),x=e.applyData(g,x)),h.push(x)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(n,y),e.applyData(n,y)}function Y2(e,n){const r={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const c0=9,f0=32;function X2(e){const n=String(e),r=/\r?\n|\r/g;let a=r.exec(n),o=0;const s=[];for(;a;)s.push(d0(n.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=r.exec(n);return s.push(d0(n.slice(o),o>0,!1)),s.join("")}function d0(e,n,r){let a=0,o=e.length;if(n){let s=e.codePointAt(a);for(;s===c0||s===f0;)a++,s=e.codePointAt(a)}if(r){let s=e.codePointAt(o-1);for(;s===c0||s===f0;)o--,s=e.codePointAt(o-1)}return o>a?e.slice(a,o):""}function Q2(e,n){const r={type:"text",value:X2(String(n.value))};return e.patch(n,r),e.applyData(n,r)}function Z2(e,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,r),e.applyData(n,r)}const K2={blockquote:A2,break:C2,code:T2,delete:R2,emphasis:O2,footnoteReference:L2,heading:D2,html:N2,imageReference:M2,image:z2,inlineCode:I2,linkReference:j2,link:B2,listItem:U2,list:P2,paragraph:H2,root:G2,strong:q2,table:$2,tableCell:Y2,tableRow:F2,text:Q2,thematicBreak:Z2,toml:Cs,yaml:Cs,definition:Cs,footnoteDefinition:Cs};function Cs(){}const Pv=-1,mu=0,Vl=1,Ys=2,qh=3,$h=4,Fh=5,Yh=6,Hv=7,Gv=8,h0=typeof self=="object"?self:globalThis,J2=(e,n)=>{const r=(o,s)=>(e.set(s,o),o),a=o=>{if(e.has(o))return e.get(o);const[s,c]=n[o];switch(s){case mu:case Pv:return r(c,o);case Vl:{const f=r([],o);for(const d of c)f.push(a(d));return f}case Ys:{const f=r({},o);for(const[d,h]of c)f[a(d)]=a(h);return f}case qh:return r(new Date(c),o);case $h:{const{source:f,flags:d}=c;return r(new RegExp(f,d),o)}case Fh:{const f=r(new Map,o);for(const[d,h]of c)f.set(a(d),a(h));return f}case Yh:{const f=r(new Set,o);for(const d of c)f.add(a(d));return f}case Hv:{const{name:f,message:d}=c;return r(new h0[f](d),o)}case Gv:return r(BigInt(c),o);case"BigInt":return r(Object(BigInt(c)),o);case"ArrayBuffer":return r(new Uint8Array(c).buffer,c);case"DataView":{const{buffer:f}=new Uint8Array(c);return r(new DataView(f),c)}}return r(new h0[s](c),o)};return a},p0=e=>J2(new Map,e)(0),xa="",{toString:W2}={},{keys:eR}=Object,Ml=e=>{const n=typeof e;if(n!=="object"||!e)return[mu,n];const r=W2.call(e).slice(8,-1);switch(r){case"Array":return[Vl,xa];case"Object":return[Ys,xa];case"Date":return[qh,xa];case"RegExp":return[$h,xa];case"Map":return[Fh,xa];case"Set":return[Yh,xa];case"DataView":return[Vl,r]}return r.includes("Array")?[Vl,r]:r.includes("Error")?[Hv,r]:[Ys,r]},Ts=([e,n])=>e===mu&&(n==="function"||n==="symbol"),tR=(e,n,r,a)=>{const o=(c,f)=>{const d=a.push(c)-1;return r.set(f,d),d},s=c=>{if(r.has(c))return r.get(c);let[f,d]=Ml(c);switch(f){case mu:{let y=c;switch(d){case"bigint":f=Gv,y=c.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);y=null;break;case"undefined":return o([Pv],c)}return o([f,y],c)}case Vl:{if(d){let b=c;return d==="DataView"?b=new Uint8Array(c.buffer):d==="ArrayBuffer"&&(b=new Uint8Array(c)),o([d,[...b]],c)}const y=[],g=o([f,y],c);for(const b of c)y.push(s(b));return g}case Ys:{if(d)switch(d){case"BigInt":return o([d,c.toString()],c);case"Boolean":case"Number":case"String":return o([d,c.valueOf()],c)}if(n&&"toJSON"in c)return s(c.toJSON());const y=[],g=o([f,y],c);for(const b of eR(c))(e||!Ts(Ml(c[b])))&&y.push([s(b),s(c[b])]);return g}case qh:return o([f,c.toISOString()],c);case $h:{const{source:y,flags:g}=c;return o([f,{source:y,flags:g}],c)}case Fh:{const y=[],g=o([f,y],c);for(const[b,_]of c)(e||!(Ts(Ml(b))||Ts(Ml(_))))&&y.push([s(b),s(_)]);return g}case Yh:{const y=[],g=o([f,y],c);for(const b of c)(e||!Ts(Ml(b)))&&y.push(s(b));return g}}const{message:h}=c;return o([f,{name:d,message:h}],c)};return s},m0=(e,{json:n,lossy:r}={})=>{const a=[];return tR(!(n||r),!!n,new Map,a)(e),a},Xs=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?p0(m0(e,n)):structuredClone(e):(e,n)=>p0(m0(e,n));function nR(e,n){const r=[{type:"text",value:"↩"}];return n>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),r}function rR(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function iR(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||nR,a=e.options.footnoteBackLabel||rR,o=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",c=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let d=-1;for(;++d<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[d]);if(!h)continue;const y=e.all(h),g=String(h.identifier).toUpperCase(),b=Na(g.toLowerCase());let _=0;const x=[],C=e.footnoteCounts.get(g);for(;C!==void 0&&++_<=C;){x.length>0&&x.push({type:"text",value:" "});let T=typeof r=="string"?r:r(d,_);typeof T=="string"&&(T={type:"text",value:T}),x.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+b+(_>1?"-"+_:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(d,_),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const R=y[y.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const T=R.children[R.children.length-1];T&&T.type==="text"?T.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...x)}else y.push(...x);const w={type:"element",tagName:"li",properties:{id:n+"fn-"+b},children:e.wrap(y,!0)};e.patch(h,w),f.push(w)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Xs(c),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
18
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
|
|
19
|
+
`}]}}const gu=(function(e){if(e==null)return sR;if(typeof e=="function")return yu(e);if(typeof e=="object")return Array.isArray(e)?aR(e):lR(e);if(typeof e=="string")return oR(e);throw new Error("Expected function, string, or object as test")});function aR(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=gu(e[r]);return yu(a);function a(...o){let s=-1;for(;++s<n.length;)if(n[s].apply(this,o))return!0;return!1}}function lR(e){const n=e;return yu(r);function r(a){const o=a;let s;for(s in e)if(o[s]!==n[s])return!1;return!0}}function oR(e){return yu(n);function n(r){return r&&r.type===e}}function yu(e){return n;function n(r,a,o){return!!(uR(r)&&e.call(this,r,typeof a=="number"?a:void 0,o||void 0))}}function sR(){return!0}function uR(e){return e!==null&&typeof e=="object"&&"type"in e}const qv=[],cR=!0,oh=!1,fR="skip";function $v(e,n,r,a){let o;typeof n=="function"&&typeof r!="function"?(a=r,r=n):o=n;const s=gu(o),c=a?-1:1;f(e,void 0,[])();function f(d,h,y){const g=d&&typeof d=="object"?d:{};if(typeof g.type=="string"){const _=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(d.type+(_?"<"+_+">":""))+")"})}return b;function b(){let _=qv,x,C,R;if((!n||s(d,h,y[y.length-1]||void 0))&&(_=dR(r(d,y)),_[0]===oh))return _;if("children"in d&&d.children){const w=d;if(w.children&&_[0]!==fR)for(C=(a?w.children.length:-1)+c,R=y.concat(w);C>-1&&C<w.children.length;){const T=w.children[C];if(x=f(T,C,R)(),x[0]===oh)return x;C=typeof x[1]=="number"?x[1]:C+c}}return _}}}function dR(e){return Array.isArray(e)?e:typeof e=="number"?[cR,e]:e==null?qv:[e]}function Xh(e,n,r,a){let o,s,c;typeof n=="function"&&typeof r!="function"?(s=void 0,c=n,o=r):(s=n,c=r,o=a),$v(e,s,f,o);function f(d,h){const y=h[h.length-1],g=y?y.children.indexOf(d):void 0;return c(d,g,y)}}const sh={}.hasOwnProperty,hR={};function pR(e,n){const r=n||hR,a=new Map,o=new Map,s=new Map,c={...K2,...r.handlers},f={all:h,applyData:gR,definitionById:a,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:c,one:d,options:r,patch:mR,wrap:_R};return Xh(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?a:o,b=String(y.identifier).toUpperCase();g.has(b)||g.set(b,y)}}),f;function d(y,g){const b=y.type,_=f.handlers[b];if(sh.call(f.handlers,b)&&_)return _(f,y,g);if(f.options.passThrough&&f.options.passThrough.includes(b)){if("children"in y){const{children:C,...R}=y,w=Xs(R);return w.children=f.all(y),w}return Xs(y)}return(f.options.unknownHandler||yR)(f,y,g)}function h(y){const g=[];if("children"in y){const b=y.children;let _=-1;for(;++_<b.length;){const x=f.one(b[_],y);if(x){if(_&&b[_-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=g0(x.value)),!Array.isArray(x)&&x.type==="element")){const C=x.children[0];C&&C.type==="text"&&(C.value=g0(C.value))}Array.isArray(x)?g.push(...x):g.push(x)}}}return g}}function mR(e,n){e.position&&(n.position=rC(e))}function gR(e,n){let r=n;if(e&&e.data){const a=e.data.hName,o=e.data.hChildren,s=e.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const c="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:c}}r.type==="element"&&s&&Object.assign(r.properties,Xs(s)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function yR(e,n){const r=n.data||{},a="value"in n&&!(sh.call(r,"hProperties")||sh.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function _R(e,n){const r=[];let a=-1;for(n&&r.push({type:"text",value:`
|
|
20
|
+
`});++a<e.length;)a&&r.push({type:"text",value:`
|
|
21
|
+
`}),r.push(e[a]);return n&&e.length>0&&r.push({type:"text",value:`
|
|
22
|
+
`}),r}function g0(e){let n=0,r=e.charCodeAt(n);for(;r===9||r===32;)n++,r=e.charCodeAt(n);return e.slice(n)}function y0(e,n){const r=pR(e,n),a=r.one(e,void 0),o=iR(r),s=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
|
|
23
|
+
`},o),s}function bR(e,n){return e&&"run"in e?async function(r,a){const o=y0(r,{file:a,...n});await e.run(o,a)}:function(r,a){return y0(r,{file:a,...e||n})}}function _0(e){if(e)throw e}var fd,b0;function vR(){if(b0)return fd;b0=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(h){return typeof Array.isArray=="function"?Array.isArray(h):n.call(h)==="[object Array]"},s=function(h){if(!h||n.call(h)!=="[object Object]")return!1;var y=e.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!y&&!g)return!1;var b;for(b in h);return typeof b>"u"||e.call(h,b)},c=function(h,y){r&&y.name==="__proto__"?r(h,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):h[y.name]=y.newValue},f=function(h,y){if(y==="__proto__")if(e.call(h,y)){if(a)return a(h,y).value}else return;return h[y]};return fd=function d(){var h,y,g,b,_,x,C=arguments[0],R=1,w=arguments.length,T=!1;for(typeof C=="boolean"&&(T=C,C=arguments[1]||{},R=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});R<w;++R)if(h=arguments[R],h!=null)for(y in h)g=f(C,y),b=f(h,y),C!==b&&(T&&b&&(s(b)||(_=o(b)))?(_?(_=!1,x=g&&o(g)?g:[]):x=g&&s(g)?g:{},c(C,{name:y,newValue:d(T,x,b)})):typeof b<"u"&&c(C,{name:y,newValue:b}));return C},fd}var xR=vR();const dd=uu(xR);function uh(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ER(){const e=[],n={run:r,use:a};return n;function r(...o){let s=-1;const c=o.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);f(null,...o);function f(d,...h){const y=e[++s];let g=-1;if(d){c(d);return}for(;++g<o.length;)(h[g]===null||h[g]===void 0)&&(h[g]=o[g]);o=h,y?SR(y,f)(...h):c(null,...h)}}function a(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),n}}function SR(e,n){let r;return a;function a(...c){const f=e.length>c.length;let d;f&&c.push(o);try{d=e.apply(this,c)}catch(h){const y=h;if(f&&r)throw y;return o(y)}f||(d&&d.then&&typeof d.then=="function"?d.then(s,o):d instanceof Error?o(d):s(d))}function o(c,...f){r||(r=!0,n(c,...f))}function s(c){o(null,c)}}const Qn={basename:wR,dirname:kR,extname:AR,join:CR,sep:"/"};function wR(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');no(e);let r=0,a=-1,o=e.length,s;if(n===void 0||n.length===0||n.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else a<0&&(s=!0,a=o+1);return a<0?"":e.slice(r,a)}if(n===e)return"";let c=-1,f=n.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){r=o+1;break}}else c<0&&(s=!0,c=o+1),f>-1&&(e.codePointAt(o)===n.codePointAt(f--)?f<0&&(a=o):(f=-1,a=c));return r===a?a=c:a<0&&(a=e.length),e.slice(r,a)}function kR(e){if(no(e),e.length===0)return".";let n=-1,r=e.length,a;for(;--r;)if(e.codePointAt(r)===47){if(a){n=r;break}}else a||(a=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function AR(e){no(e);let n=e.length,r=-1,a=0,o=-1,s=0,c;for(;n--;){const f=e.codePointAt(n);if(f===47){if(c){a=n+1;break}continue}r<0&&(c=!0,r=n+1),f===46?o<0?o=n:s!==1&&(s=1):o>-1&&(s=-1)}return o<0||r<0||s===0||s===1&&o===r-1&&o===a+1?"":e.slice(o,r)}function CR(...e){let n=-1,r;for(;++n<e.length;)no(e[n]),e[n]&&(r=r===void 0?e[n]:r+"/"+e[n]);return r===void 0?".":TR(r)}function TR(e){no(e);const n=e.codePointAt(0)===47;let r=RR(e,!n);return r.length===0&&!n&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),n?"/"+r:r}function RR(e,n){let r="",a=0,o=-1,s=0,c=-1,f,d;for(;++c<=e.length;){if(c<e.length)f=e.codePointAt(c);else{if(f===47)break;f=47}if(f===47){if(!(o===c-1||s===1))if(o!==c-1&&s===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(d=r.lastIndexOf("/"),d!==r.length-1){d<0?(r="",a=0):(r=r.slice(0,d),a=r.length-1-r.lastIndexOf("/")),o=c,s=0;continue}}else if(r.length>0){r="",a=0,o=c,s=0;continue}}n&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(o+1,c):r=e.slice(o+1,c),a=c-o-1;o=c,s=0}else f===46&&s>-1?s++:s=-1}return r}function no(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const OR={cwd:LR};function LR(){return"/"}function ch(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function DR(e){if(typeof e=="string")e=new URL(e);else if(!ch(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return NR(e)}function NR(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const n=e.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const a=n.codePointAt(r+2);if(a===70||a===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(n)}const hd=["history","path","basename","stem","extname","dirname"];class Fv{constructor(n){let r;n?ch(n)?r={path:n}:typeof n=="string"||MR(n)?r={value:n}:r=n:r={},this.cwd="cwd"in r?"":OR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<hd.length;){const s=hd[a];s in r&&r[s]!==void 0&&r[s]!==null&&(this[s]=s==="history"?[...r[s]]:r[s])}let o;for(o in r)hd.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?Qn.basename(this.path):void 0}set basename(n){md(n,"basename"),pd(n,"basename"),this.path=Qn.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Qn.dirname(this.path):void 0}set dirname(n){v0(this.basename,"dirname"),this.path=Qn.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Qn.extname(this.path):void 0}set extname(n){if(pd(n,"extname"),v0(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Qn.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){ch(n)&&(n=DR(n)),md(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Qn.basename(this.path,this.extname):void 0}set stem(n){md(n,"stem"),pd(n,"stem"),this.path=Qn.join(this.dirname||"",n+(this.extname||""))}fail(n,r,a){const o=this.message(n,r,a);throw o.fatal=!0,o}info(n,r,a){const o=this.message(n,r,a);return o.fatal=void 0,o}message(n,r,a){const o=new Zt(n,r,a);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function pd(e,n){if(e&&e.includes(Qn.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Qn.sep+"`")}function md(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function v0(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function MR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const zR=(function(e){const a=this.constructor.prototype,o=a[e],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,a),s}),IR={}.hasOwnProperty;class Qh extends zR{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=ER()}copy(){const n=new Qh;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];n.use(...a)}return n.data(dd(!0,{},this.namespace)),n}data(n,r){return typeof n=="string"?arguments.length===2?(_d("data",this.frozen),this.namespace[n]=r,this):IR.call(this.namespace,n)&&this.namespace[n]||void 0:n?(_d("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const o=r.call(n,...a);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const r=Rs(n),a=this.parser||this.Parser;return gd("parse",a),a(String(r),r)}process(n,r){const a=this;return this.freeze(),gd("process",this.parser||this.Parser),yd("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(s,c){const f=Rs(n),d=a.parse(f);a.run(d,f,function(y,g,b){if(y||!g||!b)return h(y);const _=g,x=a.stringify(_,b);UR(x)?b.value=x:b.result=x,h(y,b)});function h(y,g){y||!g?c(y):s?s(g):r(void 0,g)}}}processSync(n){let r=!1,a;return this.freeze(),gd("processSync",this.parser||this.Parser),yd("processSync",this.compiler||this.Compiler),this.process(n,o),E0("processSync","process",r),a;function o(s,c){r=!0,_0(s),a=c}}run(n,r,a){x0(n),this.freeze();const o=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?s(void 0,a):new Promise(s);function s(c,f){const d=Rs(r);o.run(n,d,h);function h(y,g,b){const _=g||n;y?f(y):c?c(_):a(void 0,_,b)}}}runSync(n,r){let a=!1,o;return this.run(n,r,s),E0("runSync","run",a),o;function s(c,f){_0(c),o=f,a=!0}}stringify(n,r){this.freeze();const a=Rs(r),o=this.compiler||this.Compiler;return yd("stringify",o),x0(n),o(n,a)}use(n,...r){const a=this.attachers,o=this.namespace;if(_d("use",this.frozen),n!=null)if(typeof n=="function")d(n,r);else if(typeof n=="object")Array.isArray(n)?f(n):c(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function s(h){if(typeof h=="function")d(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[y,...g]=h;d(y,g)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))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");f(h.plugins),h.settings&&(o.settings=dd(!0,o.settings,h.settings))}function f(h){let y=-1;if(h!=null)if(Array.isArray(h))for(;++y<h.length;){const g=h[y];s(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function d(h,y){let g=-1,b=-1;for(;++g<a.length;)if(a[g][0]===h){b=g;break}if(b===-1)a.push([h,...y]);else if(y.length>0){let[_,...x]=y;const C=a[b][1];uh(C)&&uh(_)&&(_=dd(!0,C,_)),a[b]=[h,_,...x]}}}}const jR=new Qh().freeze();function gd(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function yd(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function _d(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function x0(e){if(!uh(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function E0(e,n,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Rs(e){return BR(e)?e:new Fv(e)}function BR(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function UR(e){return typeof e=="string"||VR(e)}function VR(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const PR="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",S0=[],w0={allowDangerousHtml:!0},HR=/^(https?|ircs?|mailto|xmpp)$/i,GR=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function qR(e){const n=$R(e),r=FR(e);return YR(n.runSync(n.parse(r),r),e)}function $R(e){const n=e.rehypePlugins||S0,r=e.remarkPlugins||S0,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...w0}:w0;return jR().use(k2).use(r).use(bR,a).use(n)}function FR(e){const n=e.children||"",r=new Fv;return typeof n=="string"&&(r.value=n),r}function YR(e,n){const r=n.allowedElements,a=n.allowElement,o=n.components,s=n.disallowedElements,c=n.skipHtml,f=n.unwrapDisallowed,d=n.urlTransform||XR;for(const y of GR)Object.hasOwn(n,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+PR+y.id,void 0);return Xh(e,h),sC(e,{Fragment:O.Fragment,components:o,ignoreInvalidStyle:!0,jsx:O.jsx,jsxs:O.jsxs,passKeys:!0,passNode:!0});function h(y,g,b){if(y.type==="raw"&&b&&typeof g=="number")return c?b.children.splice(g,1):b.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let _;for(_ in sd)if(Object.hasOwn(sd,_)&&Object.hasOwn(y.properties,_)){const x=y.properties[_],C=sd[_];(C===null||C.includes(y.tagName))&&(y.properties[_]=d(String(x||""),_,y))}}if(y.type==="element"){let _=r?!r.includes(y.tagName):s?s.includes(y.tagName):!1;if(!_&&a&&typeof g=="number"&&(_=!a(y,g,b)),_&&b&&typeof g=="number")return f&&y.children?b.children.splice(g,1,...y.children):b.children.splice(g,1),g}}}function XR(e){const n=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),o=e.indexOf("/");return n===-1||o!==-1&&n>o||r!==-1&&n>r||a!==-1&&n>a||HR.test(e.slice(0,n))?e:""}function Qs(e,n){const r=String(e);if(typeof n!="string")throw new TypeError("Expected character");let a=0,o=r.indexOf(n);for(;o!==-1;)a++,o=r.indexOf(n,o+n.length);return a}function QR(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ZR(e,n,r){const o=gu((r||{}).ignore||[]),s=KR(n);let c=-1;for(;++c<s.length;)$v(e,"text",f);function f(h,y){let g=-1,b;for(;++g<y.length;){const _=y[g],x=b?b.children:void 0;if(o(_,x?x.indexOf(_):void 0,b))return;b=_}if(b)return d(h,y)}function d(h,y){const g=y[y.length-1],b=s[c][0],_=s[c][1];let x=0;const R=g.children.indexOf(h);let w=!1,T=[];b.lastIndex=0;let N=b.exec(h.value);for(;N;){const Z=N.index,Q={index:N.index,input:N.input,stack:[...y,h]};let D=_(...N,Q);if(typeof D=="string"&&(D=D.length>0?{type:"text",value:D}:void 0),D===!1?b.lastIndex=Z+1:(x!==Z&&T.push({type:"text",value:h.value.slice(x,Z)}),Array.isArray(D)?T.push(...D):D&&T.push(D),x=Z+N[0].length,w=!0),!b.global)break;N=b.exec(h.value)}return w?(x<h.value.length&&T.push({type:"text",value:h.value.slice(x)}),g.children.splice(R,1,...T)):T=[h],R+T.length}}function KR(e){const n=[];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 a=-1;for(;++a<r.length;){const o=r[a];n.push([JR(o[0]),WR(o[1])])}return n}function JR(e){return typeof e=="string"?new RegExp(QR(e),"g"):e}function WR(e){return typeof e=="function"?e:function(){return e}}const bd="phrasing",vd=["autolink","link","image","label"];function eO(){return{transforms:[oO],enter:{literalAutolink:nO,literalAutolinkEmail:xd,literalAutolinkHttp:xd,literalAutolinkWww:xd},exit:{literalAutolink:lO,literalAutolinkEmail:aO,literalAutolinkHttp:rO,literalAutolinkWww:iO}}}function tO(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:bd,notInConstruct:vd},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:bd,notInConstruct:vd},{character:":",before:"[ps]",after:"\\/",inConstruct:bd,notInConstruct:vd}]}}function nO(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function xd(e){this.config.enter.autolinkProtocol.call(this,e)}function rO(e){this.config.exit.autolinkProtocol.call(this,e)}function iO(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function aO(e){this.config.exit.autolinkEmail.call(this,e)}function lO(e){this.exit(e)}function oO(e){ZR(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,sO],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),uO]],{ignore:["link","linkReference"]})}function sO(e,n,r,a,o){let s="";if(!Yv(o)||(/^w/i.test(n)&&(r=n+r,n="",s="http://"),!cO(r)))return!1;const c=fO(r+a);if(!c[0])return!1;const f={type:"link",title:null,url:s+n+c[0],children:[{type:"text",value:n+c[0]}]};return c[1]?[f,{type:"text",value:c[1]}]:f}function uO(e,n,r,a){return!Yv(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+r,children:[{type:"text",value:n+"@"+r}]}}function cO(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function fO(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let r=n[0],a=r.indexOf(")");const o=Qs(e,"(");let s=Qs(e,")");for(;a!==-1&&o>s;)e+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),s++;return[e,r]}function Yv(e,n){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Li(r)||hu(r))&&(!n||r!==47)}Xv.peek=vO;function dO(){this.buffer()}function hO(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function pO(){this.buffer()}function mO(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function gO(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Pn(this.sliceSerialize(e)).toLowerCase(),r.label=n}function yO(e){this.exit(e)}function _O(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Pn(this.sliceSerialize(e)).toLowerCase(),r.label=n}function bO(e){this.exit(e)}function vO(){return"["}function Xv(e,n,r,a){const o=r.createTracker(a);let s=o.move("[^");const c=r.enter("footnoteReference"),f=r.enter("reference");return s+=o.move(r.safe(r.associationId(e),{after:"]",before:s})),f(),c(),s+=o.move("]"),s}function xO(){return{enter:{gfmFootnoteCallString:dO,gfmFootnoteCall:hO,gfmFootnoteDefinitionLabelString:pO,gfmFootnoteDefinition:mO},exit:{gfmFootnoteCallString:gO,gfmFootnoteCall:yO,gfmFootnoteDefinitionLabelString:_O,gfmFootnoteDefinition:bO}}}function EO(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:r,footnoteReference:Xv},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,o,s,c){const f=s.createTracker(c);let d=f.move("[^");const h=s.enter("footnoteDefinition"),y=s.enter("label");return d+=f.move(s.safe(s.associationId(a),{before:d,after:"]"})),y(),d+=f.move("]:"),a.children&&a.children.length>0&&(f.shift(4),d+=f.move((n?`
|
|
24
|
+
`:" ")+s.indentLines(s.containerFlow(a,f.current()),n?Qv:SO))),h(),d}}function SO(e,n,r){return n===0?e:Qv(e,n,r)}function Qv(e,n,r){return(r?"":" ")+e}const wO=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Zv.peek=RO;function kO(){return{canContainEols:["delete"],enter:{strikethrough:CO},exit:{strikethrough:TO}}}function AO(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:wO}],handlers:{delete:Zv}}}function CO(e){this.enter({type:"delete",children:[]},e)}function TO(e){this.exit(e)}function Zv(e,n,r,a){const o=r.createTracker(a),s=r.enter("strikethrough");let c=o.move("~~");return c+=r.containerPhrasing(e,{...o.current(),before:c,after:"~"}),c+=o.move("~~"),s(),c}function RO(){return"~"}function OO(e){return e.length}function LO(e,n){const r=n||{},a=(r.align||[]).concat(),o=r.stringLength||OO,s=[],c=[],f=[],d=[];let h=0,y=-1;for(;++y<e.length;){const C=[],R=[];let w=-1;for(e[y].length>h&&(h=e[y].length);++w<e[y].length;){const T=DO(e[y][w]);if(r.alignDelimiters!==!1){const N=o(T);R[w]=N,(d[w]===void 0||N>d[w])&&(d[w]=N)}C.push(T)}c[y]=C,f[y]=R}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<h;)s[g]=k0(a[g]);else{const C=k0(a);for(;++g<h;)s[g]=C}g=-1;const b=[],_=[];for(;++g<h;){const C=s[g];let R="",w="";C===99?(R=":",w=":"):C===108?R=":":C===114&&(w=":");let T=r.alignDelimiters===!1?1:Math.max(1,d[g]-R.length-w.length);const N=R+"-".repeat(T)+w;r.alignDelimiters!==!1&&(T=R.length+T+w.length,T>d[g]&&(d[g]=T),_[g]=T),b[g]=N}c.splice(1,0,b),f.splice(1,0,_),y=-1;const x=[];for(;++y<c.length;){const C=c[y],R=f[y];g=-1;const w=[];for(;++g<h;){const T=C[g]||"";let N="",Z="";if(r.alignDelimiters!==!1){const Q=d[g]-(R[g]||0),D=s[g];D===114?N=" ".repeat(Q):D===99?Q%2?(N=" ".repeat(Q/2+.5),Z=" ".repeat(Q/2-.5)):(N=" ".repeat(Q/2),Z=N):Z=" ".repeat(Q)}r.delimiterStart!==!1&&!g&&w.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&T==="")&&(r.delimiterStart!==!1||g)&&w.push(" "),r.alignDelimiters!==!1&&w.push(N),w.push(T),r.alignDelimiters!==!1&&w.push(Z),r.padding!==!1&&w.push(" "),(r.delimiterEnd!==!1||g!==h-1)&&w.push("|")}x.push(r.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return x.join(`
|
|
25
|
+
`)}function DO(e){return e==null?"":String(e)}function k0(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}const A0={}.hasOwnProperty;function NO(e,n){const r=n||{};function a(o,...s){let c=a.invalid;const f=a.handlers;if(o&&A0.call(o,e)){const d=String(o[e]);c=A0.call(f,d)?f[d]:a.unknown}if(c)return c.call(this,o,...s)}return a.handlers=r.handlers||{},a.invalid=r.invalid,a.unknown=r.unknown,a}function MO(e,n,r,a){const o=r.enter("blockquote"),s=r.createTracker(a);s.move("> "),s.shift(2);const c=r.indentLines(r.containerFlow(e,s.current()),zO);return o(),c}function zO(e,n,r){return">"+(r?"":" ")+e}function IO(e,n){return C0(e,n.inConstruct,!0)&&!C0(e,n.notInConstruct,!1)}function C0(e,n,r){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return r;let a=-1;for(;++a<n.length;)if(e.includes(n[a]))return!0;return!1}function T0(e,n,r,a){let o=-1;for(;++o<r.unsafe.length;)if(r.unsafe[o].character===`
|
|
26
|
+
`&&IO(r.stack,r.unsafe[o]))return/[ \t]/.test(a.before)?"":" ";return`\\
|
|
27
|
+
`}function jO(e,n){const r=String(e);let a=r.indexOf(n),o=a,s=0,c=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++s>c&&(c=s):s=1,o=a+n.length,a=r.indexOf(n,o);return c}function BO(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function UO(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function VO(e,n,r,a){const o=UO(r),s=e.value||"",c=o==="`"?"GraveAccent":"Tilde";if(BO(e,r)){const g=r.enter("codeIndented"),b=r.indentLines(s,PO);return g(),b}const f=r.createTracker(a),d=o.repeat(Math.max(jO(s,o)+1,3)),h=r.enter("codeFenced");let y=f.move(d);if(e.lang){const g=r.enter(`codeFencedLang${c}`);y+=f.move(r.safe(e.lang,{before:y,after:" ",encode:["`"],...f.current()})),g()}if(e.lang&&e.meta){const g=r.enter(`codeFencedMeta${c}`);y+=f.move(" "),y+=f.move(r.safe(e.meta,{before:y,after:`
|
|
28
|
+
`,encode:["`"],...f.current()})),g()}return y+=f.move(`
|
|
29
|
+
`),s&&(y+=f.move(s+`
|
|
30
|
+
`)),y+=f.move(d),h(),y}function PO(e,n,r){return(r?"":" ")+e}function Zh(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function HO(e,n,r,a){const o=Zh(r),s=o==='"'?"Quote":"Apostrophe",c=r.enter("definition");let f=r.enter("label");const d=r.createTracker(a);let h=d.move("[");return h+=d.move(r.safe(r.associationId(e),{before:h,after:"]",...d.current()})),h+=d.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(r.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(f=r.enter("destinationRaw"),h+=d.move(r.safe(e.url,{before:h,after:e.title?" ":`
|
|
31
|
+
`,...d.current()}))),f(),e.title&&(f=r.enter(`title${s}`),h+=d.move(" "+o),h+=d.move(r.safe(e.title,{before:h,after:o,...d.current()})),h+=d.move(o),f()),c(),h}function GO(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function ql(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Zs(e,n,r){const a=Oa(e),o=Oa(n);return a===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Kv.peek=qO;function Kv(e,n,r,a){const o=GO(r),s=r.enter("emphasis"),c=r.createTracker(a),f=c.move(o);let d=c.move(r.containerPhrasing(e,{after:o,before:f,...c.current()}));const h=d.charCodeAt(0),y=Zs(a.before.charCodeAt(a.before.length-1),h,o);y.inside&&(d=ql(h)+d.slice(1));const g=d.charCodeAt(d.length-1),b=Zs(a.after.charCodeAt(0),g,o);b.inside&&(d=d.slice(0,-1)+ql(g));const _=c.move(o);return s(),r.attentionEncodeSurroundingInfo={after:b.outside,before:y.outside},f+d+_}function qO(e,n,r){return r.options.emphasis||"*"}function $O(e,n){let r=!1;return Xh(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,oh}),!!((!e.depth||e.depth<3)&&Ph(e)&&(n.options.setext||r))}function FO(e,n,r,a){const o=Math.max(Math.min(6,e.depth||1),1),s=r.createTracker(a);if($O(e,r)){const y=r.enter("headingSetext"),g=r.enter("phrasing"),b=r.containerPhrasing(e,{...s.current(),before:`
|
|
32
|
+
`,after:`
|
|
33
|
+
`});return g(),y(),b+`
|
|
34
|
+
`+(o===1?"=":"-").repeat(b.length-(Math.max(b.lastIndexOf("\r"),b.lastIndexOf(`
|
|
35
|
+
`))+1))}const c="#".repeat(o),f=r.enter("headingAtx"),d=r.enter("phrasing");s.move(c+" ");let h=r.containerPhrasing(e,{before:"# ",after:`
|
|
36
|
+
`,...s.current()});return/^[\t ]/.test(h)&&(h=ql(h.charCodeAt(0))+h.slice(1)),h=h?c+" "+h:c,r.options.closeAtx&&(h+=" "+c),d(),f(),h}Jv.peek=YO;function Jv(e){return e.value||""}function YO(){return"<"}Wv.peek=XO;function Wv(e,n,r,a){const o=Zh(r),s=o==='"'?"Quote":"Apostrophe",c=r.enter("image");let f=r.enter("label");const d=r.createTracker(a);let h=d.move("![");return h+=d.move(r.safe(e.alt,{before:h,after:"]",...d.current()})),h+=d.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),h+=d.move("<"),h+=d.move(r.safe(e.url,{before:h,after:">",...d.current()})),h+=d.move(">")):(f=r.enter("destinationRaw"),h+=d.move(r.safe(e.url,{before:h,after:e.title?" ":")",...d.current()}))),f(),e.title&&(f=r.enter(`title${s}`),h+=d.move(" "+o),h+=d.move(r.safe(e.title,{before:h,after:o,...d.current()})),h+=d.move(o),f()),h+=d.move(")"),c(),h}function XO(){return"!"}e1.peek=QO;function e1(e,n,r,a){const o=e.referenceType,s=r.enter("imageReference");let c=r.enter("label");const f=r.createTracker(a);let d=f.move("![");const h=r.safe(e.alt,{before:d,after:"]",...f.current()});d+=f.move(h+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(e),{before:d,after:"]",...f.current()});return c(),r.stack=y,s(),o==="full"||!h||h!==g?d+=f.move(g+"]"):o==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function QO(){return"!"}t1.peek=ZO;function t1(e,n,r){let a=e.value||"",o="`",s=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(a);)o+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++s<r.unsafe.length;){const c=r.unsafe[s],f=r.compilePattern(c);let d;if(c.atBreak)for(;d=f.exec(a);){let h=d.index;a.charCodeAt(h)===10&&a.charCodeAt(h-1)===13&&h--,a=a.slice(0,h)+" "+a.slice(d.index+1)}}return o+a+o}function ZO(){return"`"}function n1(e,n){const r=Ph(e);return!!(!n.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))}r1.peek=KO;function r1(e,n,r,a){const o=Zh(r),s=o==='"'?"Quote":"Apostrophe",c=r.createTracker(a);let f,d;if(n1(e,r)){const y=r.stack;r.stack=[],f=r.enter("autolink");let g=c.move("<");return g+=c.move(r.containerPhrasing(e,{before:g,after:">",...c.current()})),g+=c.move(">"),f(),r.stack=y,g}f=r.enter("link"),d=r.enter("label");let h=c.move("[");return h+=c.move(r.containerPhrasing(e,{before:h,after:"](",...c.current()})),h+=c.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(r.safe(e.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(d=r.enter("destinationRaw"),h+=c.move(r.safe(e.url,{before:h,after:e.title?" ":")",...c.current()}))),d(),e.title&&(d=r.enter(`title${s}`),h+=c.move(" "+o),h+=c.move(r.safe(e.title,{before:h,after:o,...c.current()})),h+=c.move(o),d()),h+=c.move(")"),f(),h}function KO(e,n,r){return n1(e,r)?"<":"["}i1.peek=JO;function i1(e,n,r,a){const o=e.referenceType,s=r.enter("linkReference");let c=r.enter("label");const f=r.createTracker(a);let d=f.move("[");const h=r.containerPhrasing(e,{before:d,after:"]",...f.current()});d+=f.move(h+"]["),c();const y=r.stack;r.stack=[],c=r.enter("reference");const g=r.safe(r.associationId(e),{before:d,after:"]",...f.current()});return c(),r.stack=y,s(),o==="full"||!h||h!==g?d+=f.move(g+"]"):o==="shortcut"?d=d.slice(0,-1):d+=f.move("]"),d}function JO(){return"["}function Kh(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function WO(e){const n=Kh(e),r=e.options.bulletOther;if(!r)return n==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+r+"`) to be different");return r}function eL(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function a1(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function tL(e,n,r,a){const o=r.enter("list"),s=r.bulletCurrent;let c=e.ordered?eL(r):Kh(r);const f=e.ordered?c==="."?")":".":WO(r);let d=n&&r.bulletLastUsed?c===r.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((c==="*"||c==="-")&&y&&(!y.children||!y.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&&(d=!0),a1(r)===c&&y){let g=-1;for(;++g<e.children.length;){const b=e.children[g];if(b&&b.type==="listItem"&&b.children&&b.children[0]&&b.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(c=f),r.bulletCurrent=c;const h=r.containerFlow(e,a);return r.bulletLastUsed=c,r.bulletCurrent=s,o(),h}function nL(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function rL(e,n,r,a){const o=nL(r);let s=r.bulletCurrent||Kh(r);n&&n.type==="list"&&n.ordered&&(s=(typeof n.start=="number"&&n.start>-1?n.start:1)+(r.options.incrementListMarker===!1?0:n.children.indexOf(e))+s);let c=s.length+1;(o==="tab"||o==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(c=Math.ceil(c/4)*4);const f=r.createTracker(a);f.move(s+" ".repeat(c-s.length)),f.shift(c);const d=r.enter("listItem"),h=r.indentLines(r.containerFlow(e,f.current()),y);return d(),h;function y(g,b,_){return b?(_?"":" ".repeat(c))+g:(_?s:s+" ".repeat(c-s.length))+g}}function iL(e,n,r,a){const o=r.enter("paragraph"),s=r.enter("phrasing"),c=r.containerPhrasing(e,a);return s(),o(),c}const aL=gu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function lL(e,n,r,a){return(e.children.some(function(c){return aL(c)})?r.containerPhrasing:r.containerFlow).call(r,e,a)}function oL(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}l1.peek=sL;function l1(e,n,r,a){const o=oL(r),s=r.enter("strong"),c=r.createTracker(a),f=c.move(o+o);let d=c.move(r.containerPhrasing(e,{after:o,before:f,...c.current()}));const h=d.charCodeAt(0),y=Zs(a.before.charCodeAt(a.before.length-1),h,o);y.inside&&(d=ql(h)+d.slice(1));const g=d.charCodeAt(d.length-1),b=Zs(a.after.charCodeAt(0),g,o);b.inside&&(d=d.slice(0,-1)+ql(g));const _=c.move(o+o);return s(),r.attentionEncodeSurroundingInfo={after:b.outside,before:y.outside},f+d+_}function sL(e,n,r){return r.options.strong||"*"}function uL(e,n,r,a){return r.safe(e.value,a)}function cL(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function fL(e,n,r){const a=(a1(r)+(r.options.ruleSpaces?" ":"")).repeat(cL(r));return r.options.ruleSpaces?a.slice(0,-1):a}const o1={blockquote:MO,break:T0,code:VO,definition:HO,emphasis:Kv,hardBreak:T0,heading:FO,html:Jv,image:Wv,imageReference:e1,inlineCode:t1,link:r1,linkReference:i1,list:tL,listItem:rL,paragraph:iL,root:lL,strong:l1,text:uL,thematicBreak:fL};function dL(){return{enter:{table:hL,tableData:R0,tableHeader:R0,tableRow:mL},exit:{codeText:gL,table:pL,tableData:Ed,tableHeader:Ed,tableRow:Ed}}}function hL(e){const n=e._align;this.enter({type:"table",align:n.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function pL(e){this.exit(e),this.data.inTable=void 0}function mL(e){this.enter({type:"tableRow",children:[]},e)}function Ed(e){this.exit(e)}function R0(e){this.enter({type:"tableCell",children:[]},e)}function gL(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,yL));const r=this.stack[this.stack.length-1];r.type,r.value=n,this.exit(e)}function yL(e,n){return n==="|"?n:e}function _L(e){const n=e||{},r=n.tableCellPadding,a=n.tablePipeAlign,o=n.stringLength,s=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
37
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:b,table:c,tableCell:d,tableRow:f}};function c(_,x,C,R){return h(y(_,C,R),_.align)}function f(_,x,C,R){const w=g(_,C,R),T=h([w]);return T.slice(0,T.indexOf(`
|
|
38
|
+
`))}function d(_,x,C,R){const w=C.enter("tableCell"),T=C.enter("phrasing"),N=C.containerPhrasing(_,{...R,before:s,after:s});return T(),w(),N}function h(_,x){return LO(_,{align:x,alignDelimiters:a,padding:r,stringLength:o})}function y(_,x,C){const R=_.children;let w=-1;const T=[],N=x.enter("table");for(;++w<R.length;)T[w]=g(R[w],x,C);return N(),T}function g(_,x,C){const R=_.children;let w=-1;const T=[],N=x.enter("tableRow");for(;++w<R.length;)T[w]=d(R[w],_,x,C);return N(),T}function b(_,x,C){let R=o1.inlineCode(_,x,C);return C.stack.includes("tableCell")&&(R=R.replace(/\|/g,"\\$&")),R}}function bL(){return{exit:{taskListCheckValueChecked:O0,taskListCheckValueUnchecked:O0,paragraph:xL}}}function vL(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:EL}}}function O0(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function xL(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const o=n.children;let s=-1,c;for(;++s<o.length;){const f=o[s];if(f.type==="paragraph"){c=f;break}}c===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function EL(e,n,r,a){const o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",c="["+(e.checked?"x":" ")+"] ",f=r.createTracker(a);s&&f.move(c);let d=o1.listItem(e,n,r,{...a,...f.current()});return s&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),d;function h(y){return y+c}}function SL(){return[eO(),xO(),kO(),dL(),bL()]}function wL(e){return{extensions:[tO(),EO(e),AO(),_L(e),vL()]}}const kL={tokenize:LL,partial:!0},s1={tokenize:DL,partial:!0},u1={tokenize:NL,partial:!0},c1={tokenize:ML,partial:!0},AL={tokenize:zL,partial:!0},f1={name:"wwwAutolink",tokenize:RL,previous:h1},d1={name:"protocolAutolink",tokenize:OL,previous:p1},Sr={name:"emailAutolink",tokenize:TL,previous:m1},Kn={};function CL(){return{text:Kn}}let wi=48;for(;wi<123;)Kn[wi]=Sr,wi++,wi===58?wi=65:wi===91&&(wi=97);Kn[43]=Sr;Kn[45]=Sr;Kn[46]=Sr;Kn[95]=Sr;Kn[72]=[Sr,d1];Kn[104]=[Sr,d1];Kn[87]=[Sr,f1];Kn[119]=[Sr,f1];function TL(e,n,r){const a=this;let o,s;return c;function c(g){return!fh(g)||!m1.call(a,a.previous)||Jh(a.events)?r(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(g))}function f(g){return fh(g)?(e.consume(g),f):g===64?(e.consume(g),d):r(g)}function d(g){return g===46?e.check(AL,y,h)(g):g===45||g===95||Qt(g)?(s=!0,e.consume(g),d):y(g)}function h(g){return e.consume(g),o=!0,d}function y(g){return s&&o&&Jt(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(g)):r(g)}}function RL(e,n,r){const a=this;return o;function o(c){return c!==87&&c!==119||!h1.call(a,a.previous)||Jh(a.events)?r(c):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(kL,e.attempt(s1,e.attempt(u1,s),r),r)(c))}function s(c){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(c)}}function OL(e,n,r){const a=this;let o="",s=!1;return c;function c(g){return(g===72||g===104)&&p1.call(a,a.previous)&&!Jh(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),e.consume(g),f):r(g)}function f(g){if(Jt(g)&&o.length<5)return o+=String.fromCodePoint(g),e.consume(g),f;if(g===58){const b=o.toLowerCase();if(b==="http"||b==="https")return e.consume(g),d}return r(g)}function d(g){return g===47?(e.consume(g),s?h:(s=!0,d)):r(g)}function h(g){return g===null||Fs(g)||at(g)||Li(g)||hu(g)?r(g):e.attempt(s1,e.attempt(u1,y),r)(g)}function y(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(g)}}function LL(e,n,r){let a=0;return o;function o(c){return(c===87||c===119)&&a<3?(a++,e.consume(c),o):c===46&&a===3?(e.consume(c),s):r(c)}function s(c){return c===null?r(c):n(c)}}function DL(e,n,r){let a,o,s;return c;function c(h){return h===46||h===95?e.check(c1,d,f)(h):h===null||at(h)||Li(h)||h!==45&&hu(h)?d(h):(s=!0,e.consume(h),c)}function f(h){return h===95?a=!0:(o=a,a=void 0),e.consume(h),c}function d(h){return o||a||!s?r(h):n(h)}}function NL(e,n){let r=0,a=0;return o;function o(c){return c===40?(r++,e.consume(c),o):c===41&&a<r?s(c):c===33||c===34||c===38||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===60||c===63||c===93||c===95||c===126?e.check(c1,n,s)(c):c===null||at(c)||Li(c)?n(c):(e.consume(c),o)}function s(c){return c===41&&a++,e.consume(c),o}}function ML(e,n,r){return a;function a(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),a):f===38?(e.consume(f),s):f===93?(e.consume(f),o):f===60||f===null||at(f)||Li(f)?n(f):r(f)}function o(f){return f===null||f===40||f===91||at(f)||Li(f)?n(f):a(f)}function s(f){return Jt(f)?c(f):r(f)}function c(f){return f===59?(e.consume(f),a):Jt(f)?(e.consume(f),c):r(f)}}function zL(e,n,r){return a;function a(s){return e.consume(s),o}function o(s){return Qt(s)?r(s):n(s)}}function h1(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||at(e)}function p1(e){return!Jt(e)}function m1(e){return!(e===47||fh(e))}function fh(e){return e===43||e===45||e===46||e===95||Qt(e)}function Jh(e){let n=e.length,r=!1;for(;n--;){const a=e[n][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const IL={tokenize:qL,partial:!0};function jL(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:PL,continuation:{tokenize:HL},exit:GL}},text:{91:{name:"gfmFootnoteCall",tokenize:VL},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:BL,resolveTo:UL}}}}function BL(e,n,r){const a=this;let o=a.events.length;const s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c;for(;o--;){const d=a.events[o][1];if(d.type==="labelImage"){c=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return f;function f(d){if(!c||!c._balanced)return r(d);const h=Pn(a.sliceSerialize({start:c.end,end:a.now()}));return h.codePointAt(0)!==94||!s.includes(h.slice(1))?r(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),n(d))}}function UL(e,n){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 a={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},c={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},f=[e[r+1],e[r+2],["enter",a,n],e[r+3],e[r+4],["enter",o,n],["exit",o,n],["enter",s,n],["enter",c,n],["exit",c,n],["exit",s,n],e[e.length-2],e[e.length-1],["exit",a,n]];return e.splice(r,e.length-r+1,...f),e}function VL(e,n,r){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s=0,c;return f;function f(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),d}function d(g){return g!==94?r(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",h)}function h(g){if(s>999||g===93&&!c||g===null||g===91||at(g))return r(g);if(g===93){e.exit("chunkString");const b=e.exit("gfmFootnoteCallString");return o.includes(Pn(a.sliceSerialize(b)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):r(g)}return at(g)||(c=!0),s++,e.consume(g),g===92?y:h}function y(g){return g===91||g===92||g===93?(e.consume(g),s++,h):h(g)}}function PL(e,n,r){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s,c=0,f;return d;function d(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):r(x)}function y(x){if(c>999||x===93&&!f||x===null||x===91||at(x))return r(x);if(x===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return s=Pn(a.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),b}return at(x)||(f=!0),c++,e.consume(x),x===92?g:y}function g(x){return x===91||x===92||x===93?(e.consume(x),c++,y):y(x)}function b(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),o.includes(s)||o.push(s),He(e,_,"gfmFootnoteDefinitionWhitespace")):r(x)}function _(x){return n(x)}}function HL(e,n,r){return e.check(to,n,e.attempt(IL,n,r))}function GL(e){e.exit("gfmFootnoteDefinition")}function qL(e,n,r){const a=this;return He(e,o,"gfmFootnoteDefinitionIndent",5);function o(s){const c=a.events[a.events.length-1];return c&&c[1].type==="gfmFootnoteDefinitionIndent"&&c[2].sliceSerialize(c[1],!0).length===4?n(s):r(s)}}function $L(e){let r=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:s,resolveAll:o};return r==null&&(r=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function o(c,f){let d=-1;for(;++d<c.length;)if(c[d][0]==="enter"&&c[d][1].type==="strikethroughSequenceTemporary"&&c[d][1]._close){let h=d;for(;h--;)if(c[h][0]==="exit"&&c[h][1].type==="strikethroughSequenceTemporary"&&c[h][1]._open&&c[d][1].end.offset-c[d][1].start.offset===c[h][1].end.offset-c[h][1].start.offset){c[d][1].type="strikethroughSequence",c[h][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},c[h][1].start),end:Object.assign({},c[d][1].end)},g={type:"strikethroughText",start:Object.assign({},c[h][1].end),end:Object.assign({},c[d][1].start)},b=[["enter",y,f],["enter",c[h][1],f],["exit",c[h][1],f],["enter",g,f]],_=f.parser.constructs.insideSpan.null;_&&vn(b,b.length,0,pu(_,c.slice(h+1,d),f)),vn(b,b.length,0,[["exit",g,f],["enter",c[d][1],f],["exit",c[d][1],f],["exit",y,f]]),vn(c,h-1,d-h+3,b),d=h+b.length-2;break}}for(d=-1;++d<c.length;)c[d][1].type==="strikethroughSequenceTemporary"&&(c[d][1].type="data");return c}function s(c,f,d){const h=this.previous,y=this.events;let g=0;return b;function b(x){return h===126&&y[y.length-1][1].type!=="characterEscape"?d(x):(c.enter("strikethroughSequenceTemporary"),_(x))}function _(x){const C=Oa(h);if(x===126)return g>1?d(x):(c.consume(x),g++,_);if(g<2&&!r)return d(x);const R=c.exit("strikethroughSequenceTemporary"),w=Oa(x);return R._open=!w||w===2&&!!C,R._close=!C||C===2&&!!w,f(x)}}}class FL{constructor(){this.map=[]}add(n,r,a){YL(this,n,r,a)}consume(n){if(this.map.sort(function(s,c){return s[0]-c[0]}),this.map.length===0)return;let r=this.map.length;const a=[];for(;r>0;)r-=1,a.push(n.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),n.length=this.map[r][0];a.push(n.slice()),n.length=0;let o=a.pop();for(;o;){for(const s of o)n.push(s);o=a.pop()}this.map.length=0}}function YL(e,n,r,a){let o=0;if(!(r===0&&a.length===0)){for(;o<e.map.length;){if(e.map[o][0]===n){e.map[o][1]+=r,e.map[o][2].push(...a);return}o+=1}e.map.push([n,r,a])}}function XL(e,n){let r=!1;const a=[];for(;n<e.length;){const o=e[n];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&a.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const s=a.length-1;a[s]=a[s]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);n+=1}return a}function QL(){return{flow:{null:{name:"table",tokenize:ZL,resolveAll:KL}}}}function ZL(e,n,r){const a=this;let o=0,s=0,c;return f;function f(j){let V=a.events.length-1;for(;V>-1;){const oe=a.events[V][1].type;if(oe==="lineEnding"||oe==="linePrefix")V--;else break}const W=V>-1?a.events[V][1].type:null,ge=W==="tableHead"||W==="tableRow"?D:d;return ge===D&&a.parser.lazy[a.now().line]?r(j):ge(j)}function d(j){return e.enter("tableHead"),e.enter("tableRow"),h(j)}function h(j){return j===124||(c=!0,s+=1),y(j)}function y(j){return j===null?r(j):ve(j)?s>1?(s=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),_):r(j):Me(j)?He(e,y,"whitespace")(j):(s+=1,c&&(c=!1,o+=1),j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),c=!0,y):(e.enter("data"),g(j)))}function g(j){return j===null||j===124||at(j)?(e.exit("data"),y(j)):(e.consume(j),j===92?b:g)}function b(j){return j===92||j===124?(e.consume(j),g):g(j)}function _(j){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(j):(e.enter("tableDelimiterRow"),c=!1,Me(j)?He(e,x,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):x(j))}function x(j){return j===45||j===58?R(j):j===124?(c=!0,e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),C):Q(j)}function C(j){return Me(j)?He(e,R,"whitespace")(j):R(j)}function R(j){return j===58?(s+=1,c=!0,e.enter("tableDelimiterMarker"),e.consume(j),e.exit("tableDelimiterMarker"),w):j===45?(s+=1,w(j)):j===null||ve(j)?Z(j):Q(j)}function w(j){return j===45?(e.enter("tableDelimiterFiller"),T(j)):Q(j)}function T(j){return j===45?(e.consume(j),T):j===58?(c=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(j),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(j))}function N(j){return Me(j)?He(e,Z,"whitespace")(j):Z(j)}function Z(j){return j===124?x(j):j===null||ve(j)?!c||o!==s?Q(j):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(j)):Q(j)}function Q(j){return r(j)}function D(j){return e.enter("tableRow"),P(j)}function P(j){return j===124?(e.enter("tableCellDivider"),e.consume(j),e.exit("tableCellDivider"),P):j===null||ve(j)?(e.exit("tableRow"),n(j)):Me(j)?He(e,P,"whitespace")(j):(e.enter("data"),q(j))}function q(j){return j===null||j===124||at(j)?(e.exit("data"),P(j)):(e.consume(j),j===92?F:q)}function F(j){return j===92||j===124?(e.consume(j),q):q(j)}}function KL(e,n){let r=-1,a=!0,o=0,s=[0,0,0,0],c=[0,0,0,0],f=!1,d=0,h,y,g;const b=new FL;for(;++r<e.length;){const _=e[r],x=_[1];_[0]==="enter"?x.type==="tableHead"?(f=!1,d!==0&&(L0(b,n,d,h,y),y=void 0,d=0),h={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},b.add(r,0,[["enter",h,n]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(a=!0,g=void 0,s=[0,0,0,0],c=[0,r+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},b.add(r,0,[["enter",y,n]])),o=x.type==="tableDelimiterRow"?2:y?3:1):o&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(a=!1,c[2]===0&&(s[1]!==0&&(c[0]=c[1],g=Os(b,n,s,o,void 0,g),s=[0,0,0,0]),c[2]=r)):x.type==="tableCellDivider"&&(a?a=!1:(s[1]!==0&&(c[0]=c[1],g=Os(b,n,s,o,void 0,g)),s=c,c=[s[1],r,0,0])):x.type==="tableHead"?(f=!0,d=r):x.type==="tableRow"||x.type==="tableDelimiterRow"?(d=r,s[1]!==0?(c[0]=c[1],g=Os(b,n,s,o,r,g)):c[1]!==0&&(g=Os(b,n,c,o,r,g)),o=0):o&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(c[3]=r)}for(d!==0&&L0(b,n,d,h,y),b.consume(n.events),r=-1;++r<n.events.length;){const _=n.events[r];_[0]==="enter"&&_[1].type==="table"&&(_[1]._align=XL(n.events,r))}return e}function Os(e,n,r,a,o,s){const c=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",f="tableContent";r[0]!==0&&(s.end=Object.assign({},wa(n.events,r[0])),e.add(r[0],0,[["exit",s,n]]));const d=wa(n.events,r[1]);if(s={type:c,start:Object.assign({},d),end:Object.assign({},d)},e.add(r[1],0,[["enter",s,n]]),r[2]!==0){const h=wa(n.events,r[2]),y=wa(n.events,r[3]),g={type:f,start:Object.assign({},h),end:Object.assign({},y)};if(e.add(r[2],0,[["enter",g,n]]),a!==2){const b=n.events[r[2]],_=n.events[r[3]];if(b[1].end=Object.assign({},_[1].end),b[1].type="chunkText",b[1].contentType="text",r[3]>r[2]+1){const x=r[2]+1,C=r[3]-r[2]-1;e.add(x,C,[])}}e.add(r[3]+1,0,[["exit",g,n]])}return o!==void 0&&(s.end=Object.assign({},wa(n.events,o)),e.add(o,0,[["exit",s,n]]),s=void 0),s}function L0(e,n,r,a,o){const s=[],c=wa(n.events,r);o&&(o.end=Object.assign({},c),s.push(["exit",o,n])),a.end=Object.assign({},c),s.push(["exit",a,n]),e.add(r+1,0,s)}function wa(e,n){const r=e[n],a=r[0]==="enter"?"start":"end";return r[1][a]}const JL={name:"tasklistCheck",tokenize:eD};function WL(){return{text:{91:JL}}}function eD(e,n,r){const a=this;return o;function o(d){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),s)}function s(d){return at(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),c):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),c):r(d)}function c(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):r(d)}function f(d){return ve(d)?n(d):Me(d)?e.check({tokenize:tD},n,r)(d):r(d)}}function tD(e,n,r){return He(e,a,"whitespace");function a(o){return o===null?r(o):n(o)}}function nD(e){return Av([CL(),jL(),$L(e),QL(),WL()])}const rD={};function iD(e){const n=this,r=e||rD,a=n.data(),o=a.micromarkExtensions||(a.micromarkExtensions=[]),s=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),c=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);o.push(nD(r)),s.push(SL()),c.push(wL(r))}var dh=Object.defineProperty,aD=Object.getOwnPropertyDescriptor,lD=Object.getOwnPropertyNames,oD=Object.prototype.hasOwnProperty,Wh=(e,n)=>{let r={};for(var a in e)dh(r,a,{get:e[a],enumerable:!0});return dh(r,Symbol.toStringTag,{value:"Module"}),r},sD=(e,n,r,a)=>{if(n&&typeof n=="object"||typeof n=="function")for(var o=lD(n),s=0,c=o.length,f;s<c;s++)f=o[s],!oD.call(e,f)&&f!==r&&dh(e,f,{get:(d=>n[d]).bind(null,f),enumerable:!(a=aD(n,f))||a.enumerable});return e},g1=(e,n,r)=>(sD(e,n,"default"),r);const _u=[{id:"abap",name:"ABAP",import:(()=>k(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>k(()=>import("./actionscript-3-CoDkCxhg.js"),[]))},{id:"ada",name:"Ada",import:(()=>k(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>k(()=>import("./angular-html-DA-rfuFy.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>k(()=>import("./angular-ts-BrjP3tb8.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>k(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>k(()=>import("./apex-D8_7TLub.js"),[]))},{id:"apl",name:"APL",import:(()=>k(()=>import("./apl-CORt7UWP.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>k(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>k(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>k(()=>import("./asciidoc-Ve4PFQV2.js"),[]))},{id:"asm",name:"Assembly",import:(()=>k(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>k(()=>import("./astro-HNnZUWAn.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>k(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>k(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>k(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>k(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>k(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>k(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>k(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:(()=>k(()=>import("./bird2-BIv1doCn.js"),[]))},{id:"blade",name:"Blade",import:(()=>k(()=>import("./blade-BjGOyj-B.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>k(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>k(()=>import("./c-BIGW1oBm.js"),[]))},{id:"c3",name:"C3",import:(()=>k(()=>import("./c3-eo99z4R2.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>k(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>k(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>k(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>k(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>k(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>k(()=>import("./cobol-nBiQ_Alo.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>k(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>k(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>k(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>k(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>k(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>k(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>k(()=>import("./crystal-DNxU26gB.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>k(()=>import("./csharp-COcwbKMJ.js"),[]))},{id:"css",name:"CSS",import:(()=>k(()=>import("./css-CLj8gQPS.js"),[]))},{id:"csv",name:"CSV",import:(()=>k(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>k(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>k(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>k(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>k(()=>import("./dart-bE4Kk8sk.js"),[]))},{id:"dax",name:"DAX",import:(()=>k(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>k(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>k(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>k(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>k(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>k(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>k(()=>import("./edge-FbVlp4U3.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>k(()=>import("./elixir-CkH2-t6x.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>k(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>k(()=>import("./emacs-lisp-CXvaQtF9.js"),[]))},{id:"erb",name:"ERB",import:(()=>k(()=>import("./erb-BYCe7drp.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>k(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>k(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>k(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>k(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>k(()=>import("./fortran-fixed-form-CkoXwp7k.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>k(()=>import("./fortran-free-form-BxgE0vQu.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>k(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>k(()=>import("./gdresource-BOOCDP_w.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>k(()=>import("./gdscript-C5YyOfLZ.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>k(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>k(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>k(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>k(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>k(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>k(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>k(()=>import("./glimmer-js-ByusRIyA.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>k(()=>import("./glimmer-ts-BfAWNZQY.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>k(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gn",name:"GN",import:(()=>k(()=>import("./gn-n2N0HUVH.js"),[]))},{id:"gnuplot",name:"Gnuplot",import:(()=>k(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>k(()=>import("./go-C27-OAKa.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>k(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>k(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>k(()=>import("./hack-i7_Ulhet.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>k(()=>import("./haml-D5jkg6IW.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>k(()=>import("./handlebars-BpdQsYii.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>k(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>k(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>k(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>k(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>k(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>k(()=>import("./html-pp8916En.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>k(()=>import("./html-derivative-DlHx6ybY.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>k(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>k(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>k(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>k(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>k(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>k(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>k(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>k(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>k(()=>import("./jinja-f2NsQr07.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>k(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>k(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>k(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>k(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>k(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>k(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>k(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>k(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>k(()=>import("./julia-CxzCAyBv.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"just",name:"Just",import:(()=>k(()=>import("./just-VxiPbLrw.js"),__vite__mapDeps([63,28,2,11,64,1,3,7,8,16,20,33,34,35,36,13,23,24,25,26,37,38])))},{id:"kdl",name:"KDL",import:(()=>k(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>k(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>k(()=>import("./kusto-wEQ09or8.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>k(()=>import("./latex-CWtU0Tv5.js"),__vite__mapDeps([65,66,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>k(()=>import("./lean-BZvkOJ9d.js"),[]))},{id:"less",name:"Less",import:(()=>k(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>k(()=>import("./liquid-C0sCDyMI.js"),__vite__mapDeps([67,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>k(()=>import("./llvm-DjAJT7YJ.js"),[]))},{id:"log",name:"Log file",import:(()=>k(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>k(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>k(()=>import("./lua-BaeVxFsk.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>k(()=>import("./luau-C-HG3fhB.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>k(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>k(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>k(()=>import("./marko-DjSrsDqO.js"),__vite__mapDeps([68,3,69,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>k(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>k(()=>import("./mdc-DTYItulj.js"),__vite__mapDeps([70,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>k(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>k(()=>import("./mermaid-mWjccvbQ.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>k(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>k(()=>import("./mojo-rZm6bMo-.js"),[]))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>k(()=>import("./moonbit-_H4v1dQx.js"),[]))},{id:"move",name:"Move",import:(()=>k(()=>import("./move-IF9eRakj.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>k(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>k(()=>import("./nextflow-C-mBbutL.js"),__vite__mapDeps([71,72])))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:(()=>k(()=>import("./nextflow-groovy-vE_lwT2v.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>k(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([73,37,26])))},{id:"nim",name:"Nim",import:(()=>k(()=>import("./nim-BIad80T-.js"),__vite__mapDeps([74,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>k(()=>import("./nix-CwoSXNpI.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>k(()=>import("./nushell-Cz2AlsmD.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>k(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>k(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>k(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"odin",name:"Odin",import:(()=>k(()=>import("./odin-BBf5iR-q.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>k(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>k(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>k(()=>import("./perl-NvoQZIq0.js"),__vite__mapDeps([64,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>k(()=>import("./php-R6g_5hLQ.js"),__vite__mapDeps([75,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>k(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>k(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>k(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>k(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>k(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>k(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>k(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>k(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>k(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>k(()=>import("./proto-C7zT0LnQ.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>k(()=>import("./pug-DKIMFp6K.js"),__vite__mapDeps([76,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>k(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>k(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>k(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>k(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([77,2])))},{id:"qmldir",name:"QML Directory",import:(()=>k(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>k(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>k(()=>import("./r-Dspwwk_N.js"),[]))},{id:"racket",name:"Racket",import:(()=>k(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>k(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>k(()=>import("./razor-BDqjjVU7.js"),__vite__mapDeps([78,1,2,3,79])))},{id:"reg",name:"Windows Registry Script",import:(()=>k(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>k(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>k(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>k(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"ron",name:"RON",import:(()=>k(()=>import("./ron-D8l8udqQ.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>k(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>k(()=>import("./rst-CRjBmOyv.js"),__vite__mapDeps([80,15,1,2,3,23,24,25,26,16,20,28,38,81,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>k(()=>import("./ruby-Wjq7vjNf.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>k(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>k(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([82,16])))},{id:"sass",name:"Sass",import:(()=>k(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>k(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>k(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>k(()=>import("./scss-D5BDwBP9.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>k(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>k(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([83,84])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>k(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>k(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([85,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>k(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>k(()=>import("./solidity-rGO070M0.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>k(()=>import("./soy-8wufbnw4.js"),__vite__mapDeps([86,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>k(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([87,88])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>k(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>k(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>k(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>k(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([89,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>k(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>k(()=>import("./surrealql-Bq5Q-fJD.js"),__vite__mapDeps([90,2])))},{id:"svelte",name:"Svelte",import:(()=>k(()=>import("./svelte-Cy7k_4gC.js"),__vite__mapDeps([91,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>k(()=>import("./swift-D82vCrfD.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>k(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>k(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>k(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>k(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>k(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>k(()=>import("./templ-DhtptRzy.js"),__vite__mapDeps([92,93,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>k(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>k(()=>import("./tex-idrVyKtj.js"),__vite__mapDeps([66,62])))},{id:"toml",name:"TOML",import:(()=>k(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>k(()=>import("./ts-tags-DQrlYJgV.js"),__vite__mapDeps([94,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>k(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>k(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>k(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>k(()=>import("./twig-xg9kU7Mw.js"),__vite__mapDeps([95,3,2,5,75,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>k(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>k(()=>import("./typespec-CAFt9gP4.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>k(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>k(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>k(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>k(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>k(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>k(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>k(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>k(()=>import("./vue-D2xRrEX4.js"),__vite__mapDeps([96,3,2,11,9,1,15])))},{id:"vue-html",name:"Vue HTML",import:(()=>k(()=>import("./vue-html-AaS7Mt5G.js"),__vite__mapDeps([97,2])))},{id:"vue-vine",name:"Vue Vine",import:(()=>k(()=>import("./vue-vine-BoDAl6tE.js"),__vite__mapDeps([98,3,5,69,99,12,2])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>k(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>k(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>k(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>k(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>k(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>k(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>k(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>k(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>k(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([100,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>k(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>k(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>k(()=>import("./zig-VOosw3JB.js"),[]))}],ep=Object.fromEntries(_u.map(e=>[e.id,e.import])),tp=Object.fromEntries(_u.flatMap(e=>e.aliases?.map(n=>[n,e.import])||[])),bu={...ep,...tp},np=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>k(()=>import("./andromeeda-C4gqWexZ.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>k(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>k(()=>import("./ayu-dark-DYE7WIF3.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>k(()=>import("./ayu-light-BA47KaF1.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>k(()=>import("./ayu-mirage-32ctXXKs.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>k(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>k(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>k(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>k(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>k(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>k(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>k(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>k(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>k(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>k(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>k(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>k(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>k(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>k(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>k(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>k(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>k(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>k(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>k(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>k(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>k(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>k(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>k(()=>import("./horizon-BUw7H-hv.js"),[]))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:(()=>k(()=>import("./horizon-bright-CUuTKBJd.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>k(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>k(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>k(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>k(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>k(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>k(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>k(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>k(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>k(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>k(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>k(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>k(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>k(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>k(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>k(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>k(()=>import("./night-owl-light-CMTm3GFP.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>k(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>k(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>k(()=>import("./one-light-C3Wv6jpd.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>k(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>k(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>k(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>k(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>k(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>k(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>k(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>k(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>k(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>k(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>k(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>k(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>k(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>k(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>k(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>k(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>k(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],rp=Object.fromEntries(np.map(e=>[e.id,e.import]));var ip=class extends Error{constructor(n){super(n),this.name="ShikiError"}};function uD(){return 2147483648}function cD(){return typeof performance<"u"?performance.now():Date.now()}const fD=(e,n)=>e+(n-e%n)%n;async function dD(e){let n,r;const a={};function o(_){r=_,a.HEAPU8=new Uint8Array(_),a.HEAPU32=new Uint32Array(_)}function s(_,x,C){a.HEAPU8.copyWithin(_,x,x+C)}function c(_){try{return n.grow(_-r.byteLength+65535>>>16),o(n.buffer),1}catch{}}function f(_){const x=a.HEAPU8.length;_=_>>>0;const C=uD();if(_>C)return!1;for(let R=1;R<=4;R*=2){let w=x*(1+.2/R);w=Math.min(w,_+100663296);const T=Math.min(C,fD(Math.max(_,w),65536));if(c(T))return!0}return!1}const d=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function h(_,x,C=1024){const R=x+C;let w=x;for(;_[w]&&!(w>=R);)++w;if(w-x>16&&_.buffer&&d)return d.decode(_.subarray(x,w));let T="";for(;x<w;){let N=_[x++];if(!(N&128)){T+=String.fromCharCode(N);continue}const Z=_[x++]&63;if((N&224)===192){T+=String.fromCharCode((N&31)<<6|Z);continue}const Q=_[x++]&63;if((N&240)===224?N=(N&15)<<12|Z<<6|Q:N=(N&7)<<18|Z<<12|Q<<6|_[x++]&63,N<65536)T+=String.fromCharCode(N);else{const D=N-65536;T+=String.fromCharCode(55296|D>>10,56320|D&1023)}}return T}function y(_,x){return _?h(a.HEAPU8,_,x):""}const g={emscripten_get_now:cD,emscripten_memcpy_big:s,emscripten_resize_heap:f,fd_write:()=>0};async function b(){const x=await e({env:g,wasi_snapshot_preview1:g});n=x.memory,o(n.buffer),Object.assign(a,x),a.UTF8ToString=y}return await b(),a}var hD=Object.defineProperty,pD=(e,n,r)=>n in e?hD(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,Rt=(e,n,r)=>pD(e,typeof n!="symbol"?n+"":n,r);let zt=null;function mD(e){throw new ip(e.UTF8ToString(e.getLastOnigError()))}class vu{constructor(n){Rt(this,"utf16Length"),Rt(this,"utf8Length"),Rt(this,"utf16Value"),Rt(this,"utf8Value"),Rt(this,"utf16OffsetToUtf8"),Rt(this,"utf8OffsetToUtf16");const r=n.length,a=vu._utf8ByteLength(n),o=a!==r,s=o?new Uint32Array(r+1):null;o&&(s[r]=a);const c=o?new Uint32Array(a+1):null;o&&(c[a]=r);const f=new Uint8Array(a);let d=0;for(let h=0;h<r;h++){const y=n.charCodeAt(h);let g=y,b=!1;if(y>=55296&&y<=56319&&h+1<r){const _=n.charCodeAt(h+1);_>=56320&&_<=57343&&(g=(y-55296<<10)+65536|_-56320,b=!0)}o&&(s[h]=d,b&&(s[h+1]=d),g<=127?c[d+0]=h:g<=2047?(c[d+0]=h,c[d+1]=h):g<=65535?(c[d+0]=h,c[d+1]=h,c[d+2]=h):(c[d+0]=h,c[d+1]=h,c[d+2]=h,c[d+3]=h)),g<=127?f[d++]=g:g<=2047?(f[d++]=192|(g&1984)>>>6,f[d++]=128|(g&63)>>>0):g<=65535?(f[d++]=224|(g&61440)>>>12,f[d++]=128|(g&4032)>>>6,f[d++]=128|(g&63)>>>0):(f[d++]=240|(g&1835008)>>>18,f[d++]=128|(g&258048)>>>12,f[d++]=128|(g&4032)>>>6,f[d++]=128|(g&63)>>>0),b&&h++}this.utf16Length=r,this.utf8Length=a,this.utf16Value=n,this.utf8Value=f,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=c}static _utf8ByteLength(n){let r=0;for(let a=0,o=n.length;a<o;a++){const s=n.charCodeAt(a);let c=s,f=!1;if(s>=55296&&s<=56319&&a+1<o){const d=n.charCodeAt(a+1);d>=56320&&d<=57343&&(c=(s-55296<<10)+65536|d-56320,f=!0)}c<=127?r+=1:c<=2047?r+=2:c<=65535?r+=3:r+=4,f&&a++}return r}createString(n){const r=n.omalloc(this.utf8Length);return n.HEAPU8.set(this.utf8Value,r),r}}const xu=class Yn{constructor(n){if(Rt(this,"id",++Yn.LAST_ID),Rt(this,"_onigBinding"),Rt(this,"content"),Rt(this,"utf16Length"),Rt(this,"utf8Length"),Rt(this,"utf16OffsetToUtf8"),Rt(this,"utf8OffsetToUtf16"),Rt(this,"ptr"),!zt)throw new ip("Must invoke loadWasm first.");this._onigBinding=zt,this.content=n;const r=new vu(n);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!Yn._sharedPtrInUse?(Yn._sharedPtr||(Yn._sharedPtr=zt.omalloc(1e4)),Yn._sharedPtrInUse=!0,zt.HEAPU8.set(r.utf8Value,Yn._sharedPtr),this.ptr=Yn._sharedPtr):this.ptr=r.createString(zt)}convertUtf8OffsetToUtf16(n){return this.utf8OffsetToUtf16?n<0?0:n>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[n]:n}convertUtf16OffsetToUtf8(n){return this.utf16OffsetToUtf8?n<0?0:n>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[n]:n}dispose(){this.ptr===Yn._sharedPtr?Yn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Rt(xu,"LAST_ID",0);Rt(xu,"_sharedPtr",0);Rt(xu,"_sharedPtrInUse",!1);let y1=xu;class gD{constructor(n){if(Rt(this,"_onigBinding"),Rt(this,"_ptr"),!zt)throw new ip("Must invoke loadWasm first.");const r=[],a=[];for(let f=0,d=n.length;f<d;f++){const h=new vu(n[f]);r[f]=h.createString(zt),a[f]=h.utf8Length}const o=zt.omalloc(4*n.length);zt.HEAPU32.set(r,o/4);const s=zt.omalloc(4*n.length);zt.HEAPU32.set(a,s/4);const c=zt.createOnigScanner(o,s,n.length);for(let f=0,d=n.length;f<d;f++)zt.ofree(r[f]);zt.ofree(s),zt.ofree(o),c===0&&mD(zt),this._onigBinding=zt,this._ptr=c}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(n,r,a){let o=0;if(typeof a=="number"&&(o=a),typeof n=="string"){n=new y1(n);const s=this._findNextMatchSync(n,r,!1,o);return n.dispose(),s}return this._findNextMatchSync(n,r,!1,o)}_findNextMatchSync(n,r,a,o){const s=this._onigBinding,c=s.findNextOnigScannerMatch(this._ptr,n.id,n.ptr,n.utf8Length,n.convertUtf16OffsetToUtf8(r),o);if(c===0)return null;const f=s.HEAPU32;let d=c/4;const h=f[d++],y=f[d++],g=[];for(let b=0;b<y;b++){const _=n.convertUtf8OffsetToUtf16(f[d++]),x=n.convertUtf8OffsetToUtf16(f[d++]);g[b]={start:_,end:x,length:x-_}}return{index:h,captureIndices:g}}}function yD(e){return typeof e.instantiator=="function"}function _D(e){return typeof e.default=="function"}function bD(e){return typeof e.data<"u"}function vD(e){return typeof Response<"u"&&e instanceof Response}function xD(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Ls;function ap(e){if(Ls)return Ls;async function n(){zt=await dD(async r=>{let a=e;return a=await a,typeof a=="function"&&(a=await a(r)),typeof a=="function"&&(a=await a(r)),yD(a)?a=await a.instantiator(r):_D(a)?a=await a.default(r):(bD(a)&&(a=a.data),vD(a)?typeof WebAssembly.instantiateStreaming=="function"?a=await ED(a)(r):a=await SD(a)(r):xD(a)?a=await Sd(a)(r):a instanceof WebAssembly.Module?a=await Sd(a)(r):"default"in a&&a.default instanceof WebAssembly.Module&&(a=await Sd(a.default)(r))),"instance"in a&&(a=a.instance),"exports"in a&&(a=a.exports),a})}return Ls=n(),Ls}function Sd(e){return n=>WebAssembly.instantiate(e,n)}function ED(e){return n=>WebAssembly.instantiateStreaming(e,n)}function SD(e){return async n=>{const r=await e.arrayBuffer();return WebAssembly.instantiate(r,n)}}let _1;function wD(e){_1=e}function kD(){return _1}async function b1(e){return e&&await ap(e),{createScanner(n){return new gD(n.map(r=>typeof r=="string"?r:r.source))},createString(n){return new y1(n)}}}const AD=Object.freeze(Object.defineProperty({__proto__:null,createOnigurumaEngine:b1,getDefaultWasmLoader:kD,loadWasm:ap,setDefaultWasmLoader:wD},Symbol.toStringTag,{value:"Module"}));var v1=Wh({});g1(v1,AD);var ot=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function CD(e){return lp(e)}function lp(e){return Array.isArray(e)?TD(e):e instanceof RegExp?e:typeof e=="object"?RD(e):e}function TD(e){let n=[];for(let r=0,a=e.length;r<a;r++)n[r]=lp(e[r]);return n}function RD(e){let n={};for(let r in e)n[r]=lp(e[r]);return n}function x1(e,...n){return n.forEach(r=>{for(let a in r)e[a]=r[a]}),e}function E1(e){const n=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return n===0?e:~n===e.length-1?E1(e.substring(0,e.length-1)):e.substr(~n+1)}var wd=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ds=class{static hasCaptures(e){return e===null?!1:(wd.lastIndex=0,wd.test(e))}static replaceCaptures(e,n,r){return e.replace(wd,(a,o,s,c)=>{let f=r[parseInt(o||s,10)];if(f){let d=n.substring(f.start,f.end);for(;d[0]===".";)d=d.substring(1);switch(c){case"downcase":return d.toLowerCase();case"upcase":return d.toUpperCase();default:return d}}else return a})}};function S1(e,n){return e<n?-1:e>n?1:0}function w1(e,n){if(e===null&&n===null)return 0;if(!e)return-1;if(!n)return 1;let r=e.length,a=n.length;if(r===a){for(let o=0;o<r;o++){let s=S1(e[o],n[o]);if(s!==0)return s}return 0}return r-a}function D0(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function k1(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var A1=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const n=this.fn(e);return this.cache.set(e,n),n}},Ks=class{constructor(e,n,r){this._colorMap=e,this._defaults=n,this._root=r}static createFromRawTheme(e,n){return this.createFromParsedTheme(DD(e),n)}static createFromParsedTheme(e,n){return MD(e,n)}_cachedMatchRoot=new A1(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const n=e.scopeName,a=this._cachedMatchRoot.get(n).find(o=>OD(e.parent,o.parentScopes));return a?new C1(a.fontStyle,a.foreground,a.background):null}},kd=class Ps{constructor(n,r){this.parent=n,this.scopeName=r}static push(n,r){for(const a of r)n=new Ps(n,a);return n}static from(...n){let r=null;for(let a=0;a<n.length;a++)r=new Ps(r,n[a]);return r}push(n){return new Ps(this,n)}getSegments(){let n=this;const r=[];for(;n;)r.push(n.scopeName),n=n.parent;return r.reverse(),r}toString(){return this.getSegments().join(" ")}extends(n){return this===n?!0:this.parent===null?!1:this.parent.extends(n)}getExtensionIfDefined(n){const r=[];let a=this;for(;a&&a!==n;)r.push(a.scopeName),a=a.parent;return a===n?r.reverse():void 0}};function OD(e,n){if(n.length===0)return!0;for(let r=0;r<n.length;r++){let a=n[r],o=!1;if(a===">"){if(r===n.length-1)return!1;a=n[++r],o=!0}for(;e&&!LD(e.scopeName,a);){if(o)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function LD(e,n){return n===e||e.startsWith(n)&&e[n.length]==="."}var C1=class{constructor(e,n,r){this.fontStyle=e,this.foregroundId=n,this.backgroundId=r}};function DD(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let n=e.settings,r=[],a=0;for(let o=0,s=n.length;o<s;o++){let c=n[o];if(!c.settings)continue;let f;if(typeof c.scope=="string"){let g=c.scope;g=g.replace(/^[,]+/,""),g=g.replace(/[,]+$/,""),f=g.split(",")}else Array.isArray(c.scope)?f=c.scope:f=[""];let d=-1;if(typeof c.settings.fontStyle=="string"){d=0;let g=c.settings.fontStyle.split(" ");for(let b=0,_=g.length;b<_;b++)switch(g[b]){case"italic":d=d|1;break;case"bold":d=d|2;break;case"underline":d=d|4;break;case"strikethrough":d=d|8;break}}let h=null;typeof c.settings.foreground=="string"&&D0(c.settings.foreground)&&(h=c.settings.foreground);let y=null;typeof c.settings.background=="string"&&D0(c.settings.background)&&(y=c.settings.background);for(let g=0,b=f.length;g<b;g++){let x=f[g].trim().split(" "),C=x[x.length-1],R=null;x.length>1&&(R=x.slice(0,x.length-1),R.reverse()),r[a++]=new ND(C,R,o,d,h,y)}}return r}var ND=class{constructor(e,n,r,a,o,s){this.scope=e,this.parentScopes=n,this.index=r,this.fontStyle=a,this.foreground=o,this.background=s}},Xt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Xt||{});function MD(e,n){e.sort((d,h)=>{let y=S1(d.scope,h.scope);return y!==0||(y=w1(d.parentScopes,h.parentScopes),y!==0)?y:d.index-h.index});let r=0,a="#000000",o="#ffffff";for(;e.length>=1&&e[0].scope==="";){let d=e.shift();d.fontStyle!==-1&&(r=d.fontStyle),d.foreground!==null&&(a=d.foreground),d.background!==null&&(o=d.background)}let s=new zD(n),c=new C1(r,s.getId(a),s.getId(o)),f=new jD(new hh(0,null,-1,0,0),[]);for(let d=0,h=e.length;d<h;d++){let y=e[d];f.insert(0,y.scope,y.parentScopes,y.fontStyle,s.getId(y.foreground),s.getId(y.background))}return new Ks(s,c,f)}var zD=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let n=0,r=e.length;n<r;n++)this._color2id[e[n]]=n,this._id2color[n]=e[n]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let n=this._color2id[e];if(n)return n;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return n=++this._lastColorId,this._color2id[e]=n,this._id2color[n]=e,n}getColorMap(){return this._id2color.slice(0)}},ID=Object.freeze([]),hh=class T1{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(n,r,a,o,s){this.scopeDepth=n,this.parentScopes=r||ID,this.fontStyle=a,this.foreground=o,this.background=s}clone(){return new T1(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(n){let r=[];for(let a=0,o=n.length;a<o;a++)r[a]=n[a].clone();return r}acceptOverwrite(n,r,a,o){this.scopeDepth>n?console.log("how did this happen?"):this.scopeDepth=n,r!==-1&&(this.fontStyle=r),a!==0&&(this.foreground=a),o!==0&&(this.background=o)}},jD=class ph{constructor(n,r=[],a={}){this._mainRule=n,this._children=a,this._rulesWithParentScopes=r}_rulesWithParentScopes;static _cmpBySpecificity(n,r){if(n.scopeDepth!==r.scopeDepth)return r.scopeDepth-n.scopeDepth;let a=0,o=0;for(;n.parentScopes[a]===">"&&a++,r.parentScopes[o]===">"&&o++,!(a>=n.parentScopes.length||o>=r.parentScopes.length);){const s=r.parentScopes[o].length-n.parentScopes[a].length;if(s!==0)return s;a++,o++}return r.parentScopes.length-n.parentScopes.length}match(n){if(n!==""){let a=n.indexOf("."),o,s;if(a===-1?(o=n,s=""):(o=n.substring(0,a),s=n.substring(a+1)),this._children.hasOwnProperty(o))return this._children[o].match(s)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(ph._cmpBySpecificity),r}insert(n,r,a,o,s,c){if(r===""){this._doInsertHere(n,a,o,s,c);return}let f=r.indexOf("."),d,h;f===-1?(d=r,h=""):(d=r.substring(0,f),h=r.substring(f+1));let y;this._children.hasOwnProperty(d)?y=this._children[d]:(y=new ph(this._mainRule.clone(),hh.cloneArr(this._rulesWithParentScopes)),this._children[d]=y),y.insert(n+1,h,a,o,s,c)}_doInsertHere(n,r,a,o,s){if(r===null){this._mainRule.acceptOverwrite(n,a,o,s);return}for(let c=0,f=this._rulesWithParentScopes.length;c<f;c++){let d=this._rulesWithParentScopes[c];if(w1(d.parentScopes,r)===0){d.acceptOverwrite(n,a,o,s);return}}a===-1&&(a=this._mainRule.fontStyle),o===0&&(o=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new hh(n,r,a,o,s))}},La=class Ln{static toBinaryStr(n){return n.toString(2).padStart(32,"0")}static print(n){const r=Ln.getLanguageId(n),a=Ln.getTokenType(n),o=Ln.getFontStyle(n),s=Ln.getForeground(n),c=Ln.getBackground(n);console.log({languageId:r,tokenType:a,fontStyle:o,foreground:s,background:c})}static getLanguageId(n){return(n&255)>>>0}static getTokenType(n){return(n&768)>>>8}static containsBalancedBrackets(n){return(n&1024)!==0}static getFontStyle(n){return(n&30720)>>>11}static getForeground(n){return(n&16744448)>>>15}static getBackground(n){return(n&4278190080)>>>24}static set(n,r,a,o,s,c,f){let d=Ln.getLanguageId(n),h=Ln.getTokenType(n),y=Ln.containsBalancedBrackets(n)?1:0,g=Ln.getFontStyle(n),b=Ln.getForeground(n),_=Ln.getBackground(n);return r!==0&&(d=r),a!==8&&(h=a),o!==null&&(y=o?1:0),s!==-1&&(g=s),c!==0&&(b=c),f!==0&&(_=f),(d<<0|h<<8|y<<10|g<<11|b<<15|_<<24)>>>0}};function Js(e,n){const r=[],a=BD(e);let o=a.next();for(;o!==null;){let d=0;if(o.length===2&&o.charAt(1)===":"){switch(o.charAt(0)){case"R":d=1;break;case"L":d=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=a.next()}let h=c();if(r.push({matcher:h,priority:d}),o!==",")break;o=a.next()}return r;function s(){if(o==="-"){o=a.next();const d=s();return h=>!!d&&!d(h)}if(o==="("){o=a.next();const d=f();return o===")"&&(o=a.next()),d}if(N0(o)){const d=[];do d.push(o),o=a.next();while(N0(o));return h=>n(d,h)}return null}function c(){const d=[];let h=s();for(;h;)d.push(h),h=s();return y=>d.every(g=>g(y))}function f(){const d=[];let h=c();for(;h&&(d.push(h),o==="|"||o===",");){do o=a.next();while(o==="|"||o===",");h=c()}return y=>d.some(g=>g(y))}}function N0(e){return!!e&&!!e.match(/[\w\.:]+/)}function BD(e){let n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,r=n.exec(e);return{next:()=>{if(!r)return null;const a=r[0];return r=n.exec(e),a}}}function R1(e){typeof e.dispose=="function"&&e.dispose()}var $l=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},UD=class{constructor(e,n){this.scopeName=e,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},VD=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const n=e.toKey();this._seenReferenceKeys.has(n)||(this._seenReferenceKeys.add(n),this._references.push(e))}},PD=class{constructor(e,n){this.repo=e,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new $l(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const n=new VD;for(const r of e)HD(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof $l){if(this.seenFullScopeRequests.has(r.scopeName))continue;this.seenFullScopeRequests.add(r.scopeName),this.Q.push(r)}else{if(this.seenFullScopeRequests.has(r.scopeName)||this.seenPartialScopeRequests.has(r.toKey()))continue;this.seenPartialScopeRequests.add(r.toKey()),this.Q.push(r)}}};function HD(e,n,r,a){const o=r.lookup(e.scopeName);if(!o){if(e.scopeName===n)throw new Error(`No grammar provided for <${n}>`);return}const s=r.lookup(n);e instanceof $l?Hs({baseGrammar:s,selfGrammar:o},a):mh(e.ruleName,{baseGrammar:s,selfGrammar:o,repository:o.repository},a);const c=r.injections(e.scopeName);if(c)for(const f of c)a.add(new $l(f))}function mh(e,n,r){if(n.repository&&n.repository[e]){const a=n.repository[e];Ws([a],n,r)}}function Hs(e,n){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ws(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},n),e.selfGrammar.injections&&Ws(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},n)}function Ws(e,n,r){for(const a of e){if(r.visitedRule.has(a))continue;r.visitedRule.add(a);const o=a.repository?x1({},n.repository,a.repository):n.repository;Array.isArray(a.patterns)&&Ws(a.patterns,{...n,repository:o},r);const s=a.include;if(!s)continue;const c=O1(s);switch(c.kind){case 0:Hs({...n,selfGrammar:n.baseGrammar},r);break;case 1:Hs(n,r);break;case 2:mh(c.ruleName,{...n,repository:o},r);break;case 3:case 4:const f=c.scopeName===n.selfGrammar.scopeName?n.selfGrammar:c.scopeName===n.baseGrammar.scopeName?n.baseGrammar:void 0;if(f){const d={baseGrammar:n.baseGrammar,selfGrammar:f,repository:o};c.kind===4?mh(c.ruleName,d,r):Hs(d,r)}else c.kind===4?r.add(new UD(c.scopeName,c.ruleName)):r.add(new $l(c.scopeName));break}}}var GD=class{kind=0},qD=class{kind=1},$D=class{constructor(e){this.ruleName=e}kind=2},FD=class{constructor(e){this.scopeName=e}kind=3},YD=class{constructor(e,n){this.scopeName=e,this.ruleName=n}kind=4};function O1(e){if(e==="$base")return new GD;if(e==="$self")return new qD;const n=e.indexOf("#");if(n===-1)return new FD(e);if(n===0)return new $D(e.substring(1));{const r=e.substring(0,n),a=e.substring(n+1);return new YD(r,a)}}var XD=/\\(\d+)/,M0=/\\(\d+)/g,QD=-1,L1=-2;var ro=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,n,r,a){this.$location=e,this.id=n,this._name=r||null,this._nameIsCapturing=Ds.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=Ds.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${E1(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,n){return!this._nameIsCapturing||this._name===null||e===null||n===null?this._name:Ds.replaceCaptures(this._name,e,n)}getContentName(e,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ds.replaceCaptures(this._contentName,e,n)}},ZD=class extends ro{retokenizeCapturedWithRuleId;constructor(e,n,r,a,o){super(e,n,r,a),this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(e,n){throw new Error("Not supported!")}compile(e,n){throw new Error("Not supported!")}compileAG(e,n,r,a){throw new Error("Not supported!")}},KD=class extends ro{_match;captures;_cachedCompiledPatterns;constructor(e,n,r,a,o){super(e,n,r,null),this._match=new Fl(a,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,n){n.push(this._match)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,a){return this._getCachedCompiledPatterns(e).compileAG(e,r,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Yl,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},z0=class extends ro{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,r,a,o){super(e,n,r,a),this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,n){for(const r of this.patterns)e.getRule(r).collectPatterns(e,n)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,a){return this._getCachedCompiledPatterns(e).compileAG(e,r,a)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Yl,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},gh=class extends ro{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,r,a,o,s,c,f,d,h){super(e,n,r,a),this._begin=new Fl(o,this.id),this.beginCaptures=s,this._end=new Fl(c||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=f,this.applyEndPatternLast=d||!1,this.patterns=h.patterns,this.hasMissingPatterns=h.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,n){return this._end.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e,n).compile(e)}compileAG(e,n,r,a){return this._getCachedCompiledPatterns(e,n).compileAG(e,r,a)}_getCachedCompiledPatterns(e,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Yl;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},eu=class extends ro{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,n,r,a,o,s,c,f,d){super(e,n,r,a),this._begin=new Fl(o,this.id),this.beginCaptures=s,this.whileCaptures=f,this._while=new Fl(c,L1),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,n){return this._while.resolveBackReferences(e,n)}collectPatterns(e,n){n.push(this._begin)}compile(e,n){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,n,r,a){return this._getCachedCompiledPatterns(e).compileAG(e,r,a)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Yl;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,n){return this._getCachedCompiledWhilePatterns(e,n).compile(e)}compileWhileAG(e,n,r,a){return this._getCachedCompiledWhilePatterns(e,n).compileAG(e,r,a)}_getCachedCompiledWhilePatterns(e,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Yl,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},D1=class Ft{static createCaptureRule(n,r,a,o,s){return n.registerRule(c=>new ZD(r,c,a,o,s))}static getCompiledRuleId(n,r,a){return n.id||r.registerRule(o=>{if(n.id=o,n.match)return new KD(n.$vscodeTextmateLocation,n.id,n.name,n.match,Ft._compileCaptures(n.captures,r,a));if(typeof n.begin>"u"){n.repository&&(a=x1({},a,n.repository));let s=n.patterns;return typeof s>"u"&&n.include&&(s=[{include:n.include}]),new z0(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,Ft._compilePatterns(s,r,a))}return n.while?new eu(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,n.begin,Ft._compileCaptures(n.beginCaptures||n.captures,r,a),n.while,Ft._compileCaptures(n.whileCaptures||n.captures,r,a),Ft._compilePatterns(n.patterns,r,a)):new gh(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,n.begin,Ft._compileCaptures(n.beginCaptures||n.captures,r,a),n.end,Ft._compileCaptures(n.endCaptures||n.captures,r,a),n.applyEndPatternLast,Ft._compilePatterns(n.patterns,r,a))}),n.id}static _compileCaptures(n,r,a){let o=[];if(n){let s=0;for(const c in n){if(c==="$vscodeTextmateLocation")continue;const f=parseInt(c,10);f>s&&(s=f)}for(let c=0;c<=s;c++)o[c]=null;for(const c in n){if(c==="$vscodeTextmateLocation")continue;const f=parseInt(c,10);let d=0;n[c].patterns&&(d=Ft.getCompiledRuleId(n[c],r,a)),o[f]=Ft.createCaptureRule(r,n[c].$vscodeTextmateLocation,n[c].name,n[c].contentName,d)}}return o}static _compilePatterns(n,r,a){let o=[];if(n)for(let s=0,c=n.length;s<c;s++){const f=n[s];let d=-1;if(f.include){const h=O1(f.include);switch(h.kind){case 0:case 1:d=Ft.getCompiledRuleId(a[f.include],r,a);break;case 2:let y=a[h.ruleName];y&&(d=Ft.getCompiledRuleId(y,r,a));break;case 3:case 4:const g=h.scopeName,b=h.kind===4?h.ruleName:null,_=r.getExternalGrammar(g,a);if(_)if(b){let x=_.repository[b];x&&(d=Ft.getCompiledRuleId(x,r,_.repository))}else d=Ft.getCompiledRuleId(_.repository.$self,r,_.repository);break}}else d=Ft.getCompiledRuleId(f,r,a);if(d!==-1){const h=r.getRule(d);let y=!1;if((h instanceof z0||h instanceof gh||h instanceof eu)&&h.hasMissingPatterns&&h.patterns.length===0&&(y=!0),y)continue;o.push(d)}}return{patterns:o,hasMissingPatterns:(n?n.length:0)!==o.length}}},Fl=class N1{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(n,r){if(n&&typeof n=="string"){const a=n.length;let o=0,s=[],c=!1;for(let f=0;f<a;f++)if(n.charAt(f)==="\\"&&f+1<a){const h=n.charAt(f+1);h==="z"?(s.push(n.substring(o,f)),s.push("$(?!\\n)(?<!\\n)"),o=f+2):(h==="A"||h==="G")&&(c=!0),f++}this.hasAnchor=c,o===0?this.source=n:(s.push(n.substring(o,a)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=n;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=r,typeof this.source=="string"?this.hasBackReferences=XD.test(this.source):this.hasBackReferences=!1}clone(){return new N1(this.source,this.ruleId)}setSource(n){this.source!==n&&(this.source=n,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(n,r){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let a=r.map(o=>n.substring(o.start,o.end));return M0.lastIndex=0,this.source.replace(M0,(o,s)=>k1(a[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let n=[],r=[],a=[],o=[],s,c,f,d;for(s=0,c=this.source.length;s<c;s++)f=this.source.charAt(s),n[s]=f,r[s]=f,a[s]=f,o[s]=f,f==="\\"&&s+1<c&&(d=this.source.charAt(s+1),d==="A"?(n[s+1]="",r[s+1]="",a[s+1]="A",o[s+1]="A"):d==="G"?(n[s+1]="",r[s+1]="G",a[s+1]="",o[s+1]="G"):(n[s+1]=d,r[s+1]=d,a[s+1]=d,o[s+1]=d),s++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:a.join(""),A1_G1:o.join("")}}resolveAnchors(n,r){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:n?r?this._anchorCache.A1_G1:this._anchorCache.A1_G0:r?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Yl=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,n){this._items[e].source!==n&&(this._disposeCaches(),this._items[e].setSource(n))}compile(e){if(!this._cached){let n=this._items.map(r=>r.source);this._cached=new I0(e,n,this._items.map(r=>r.ruleId))}return this._cached}compileAG(e,n,r){return this._hasAnchors?n?r?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,n,r)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,n,r)),this._anchorCache.A1_G0):r?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,n,r)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,n,r)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,n,r){let a=this._items.map(o=>o.resolveAnchors(n,r));return new I0(e,a,this._items.map(o=>o.ruleId))}},I0=class{constructor(e,n,r){this.regExps=n,this.rules=r,this.scanner=e.createOnigScanner(n)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let n=0,r=this.rules.length;n<r;n++)e.push(" - "+this.rules[n]+": "+this.regExps[n]);return e.join(`
|
|
39
|
+
`)}findNextMatchSync(e,n,r){const a=this.scanner.findNextMatchSync(e,n,r);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}},Ad=class{constructor(e,n){this.languageId=e,this.tokenType=n}},JD=class yh{_defaultAttributes;_embeddedLanguagesMatcher;constructor(n,r){this._defaultAttributes=new Ad(n,8),this._embeddedLanguagesMatcher=new WD(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(n){return n===null?yh._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(n)}static _NULL_SCOPE_METADATA=new Ad(0,0);_getBasicScopeAttributes=new A1(n=>{const r=this._scopeToLanguage(n),a=this._toStandardTokenType(n);return new Ad(r,a)});_scopeToLanguage(n){return this._embeddedLanguagesMatcher.match(n)||0}_toStandardTokenType(n){const r=n.match(yh.STANDARD_TOKEN_TYPE_REGEXP);if(!r)return 8;switch(r[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},WD=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const n=e.map(([r,a])=>k1(r));n.sort(),n.reverse(),this.scopesRegExp=new RegExp(`^((${n.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const n=e.match(this.scopesRegExp);if(n)return this.values.get(n[1])}},j0=class{constructor(e,n){this.stack=e,this.stoppedEarly=n}};function M1(e,n,r,a,o,s,c,f){const d=n.content.length;let h=!1,y=-1;if(c){const _=eN(e,n,r,a,o,s);o=_.stack,a=_.linePos,r=_.isFirstLine,y=_.anchorPosition}const g=Date.now();for(;!h;){if(f!==0&&Date.now()-g>f)return new j0(o,!0);b()}return new j0(o,!1);function b(){const _=tN(e,n,r,a,o,y);if(!_){s.produce(o,d),h=!0;return}const x=_.captureIndices,C=_.matchedRuleId,R=x&&x.length>0?x[0].end>a:!1;if(C===QD){const w=o.getRule(e);s.produce(o,x[0].start),o=o.withContentNameScopesList(o.nameScopesList),Il(e,n,r,o,s,w.endCaptures,x),s.produce(o,x[0].end);const T=o;if(o=o.parent,y=T.getAnchorPos(),!R&&T.getEnterPos()===a){o=T,s.produce(o,d),h=!0;return}}else{const w=e.getRule(C);s.produce(o,x[0].start);const T=o,N=w.getName(n.content,x),Z=o.contentNameScopesList.pushAttributed(N,e);if(o=o.push(C,a,y,x[0].end===d,null,Z,Z),w instanceof gh){const Q=w;Il(e,n,r,o,s,Q.beginCaptures,x),s.produce(o,x[0].end),y=x[0].end;const D=Q.getContentName(n.content,x),P=Z.pushAttributed(D,e);if(o=o.withContentNameScopesList(P),Q.endHasBackReferences&&(o=o.withEndRule(Q.getEndWithResolvedBackReferences(n.content,x))),!R&&T.hasSameRuleAs(o)){o=o.pop(),s.produce(o,d),h=!0;return}}else if(w instanceof eu){const Q=w;Il(e,n,r,o,s,Q.beginCaptures,x),s.produce(o,x[0].end),y=x[0].end;const D=Q.getContentName(n.content,x),P=Z.pushAttributed(D,e);if(o=o.withContentNameScopesList(P),Q.whileHasBackReferences&&(o=o.withEndRule(Q.getWhileWithResolvedBackReferences(n.content,x))),!R&&T.hasSameRuleAs(o)){o=o.pop(),s.produce(o,d),h=!0;return}}else if(Il(e,n,r,o,s,w.captures,x),s.produce(o,x[0].end),o=o.pop(),!R){o=o.safePop(),s.produce(o,d),h=!0;return}}x[0].end>a&&(a=x[0].end,r=!1)}}function eN(e,n,r,a,o,s){let c=o.beginRuleCapturedEOL?0:-1;const f=[];for(let d=o;d;d=d.pop()){const h=d.getRule(e);h instanceof eu&&f.push({rule:h,stack:d})}for(let d=f.pop();d;d=f.pop()){const{ruleScanner:h,findOptions:y}=iN(d.rule,e,d.stack.endRule,r,a===c),g=h.findNextMatchSync(n,a,y);if(g){if(g.ruleId!==L1){o=d.stack.pop();break}g.captureIndices&&g.captureIndices.length&&(s.produce(d.stack,g.captureIndices[0].start),Il(e,n,r,d.stack,s,d.rule.whileCaptures,g.captureIndices),s.produce(d.stack,g.captureIndices[0].end),c=g.captureIndices[0].end,g.captureIndices[0].end>a&&(a=g.captureIndices[0].end,r=!1))}else{o=d.stack.pop();break}}return{stack:o,linePos:a,anchorPosition:c,isFirstLine:r}}function tN(e,n,r,a,o,s){const c=nN(e,n,r,a,o,s),f=e.getInjections();if(f.length===0)return c;const d=rN(f,e,n,r,a,o,s);if(!d)return c;if(!c)return d;const h=c.captureIndices[0].start,y=d.captureIndices[0].start;return y<h||d.priorityMatch&&y===h?d:c}function nN(e,n,r,a,o,s){const c=o.getRule(e),{ruleScanner:f,findOptions:d}=z1(c,e,o.endRule,r,a===s),h=f.findNextMatchSync(n,a,d);return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}function rN(e,n,r,a,o,s,c){let f=Number.MAX_VALUE,d=null,h,y=0;const g=s.contentNameScopesList.getScopeNames();for(let b=0,_=e.length;b<_;b++){const x=e[b];if(!x.matcher(g))continue;const C=n.getRule(x.ruleId),{ruleScanner:R,findOptions:w}=z1(C,n,null,a,o===c),T=R.findNextMatchSync(r,o,w);if(!T)continue;const N=T.captureIndices[0].start;if(!(N>=f)&&(f=N,d=T.captureIndices,h=T.ruleId,y=x.priority,f===o))break}return d?{priorityMatch:y===-1,captureIndices:d,matchedRuleId:h}:null}function z1(e,n,r,a,o){return{ruleScanner:e.compileAG(n,r,a,o),findOptions:0}}function iN(e,n,r,a,o){return{ruleScanner:e.compileWhileAG(n,r,a,o),findOptions:0}}function Il(e,n,r,a,o,s,c){if(s.length===0)return;const f=n.content,d=Math.min(s.length,c.length),h=[],y=c[0].end;for(let g=0;g<d;g++){const b=s[g];if(b===null)continue;const _=c[g];if(_.length===0)continue;if(_.start>y)break;for(;h.length>0&&h[h.length-1].endPos<=_.start;)o.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop();if(h.length>0?o.produceFromScopes(h[h.length-1].scopes,_.start):o.produce(a,_.start),b.retokenizeCapturedWithRuleId){const C=b.getName(f,c),R=a.contentNameScopesList.pushAttributed(C,e),w=b.getContentName(f,c),T=R.pushAttributed(w,e),N=a.push(b.retokenizeCapturedWithRuleId,_.start,-1,!1,null,R,T),Z=e.createOnigString(f.substring(0,_.end));M1(e,Z,r&&_.start===0,_.start,N,o,!1,0),R1(Z);continue}const x=b.getName(f,c);if(x!==null){const R=(h.length>0?h[h.length-1].scopes:a.contentNameScopesList).pushAttributed(x,e);h.push(new aN(R,_.end))}}for(;h.length>0;)o.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop()}var aN=class{scopes;endPos;constructor(e,n){this.scopes=e,this.endPos=n}};function lN(e,n,r,a,o,s,c,f){return new sN(e,n,r,a,o,s,c,f)}function B0(e,n,r,a,o){const s=Js(n,tu),c=D1.getCompiledRuleId(r,a,o.repository);for(const f of s)e.push({debugSelector:n,matcher:f.matcher,ruleId:c,grammar:o,priority:f.priority})}function tu(e,n){if(n.length<e.length)return!1;let r=0;return e.every(a=>{for(let o=r;o<n.length;o++)if(oN(n[o],a))return r=o+1,!0;return!1})}function oN(e,n){if(!e)return!1;if(e===n)return!0;const r=n.length;return e.length>r&&e.substr(0,r)===n&&e[r]==="."}var sN=class{constructor(e,n,r,a,o,s,c,f){if(this._rootScopeName=e,this.balancedBracketSelectors=s,this._onigLib=f,this._basicScopeAttributesProvider=new JD(r,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=c,this._grammar=U0(n,null),this._injections=null,this._tokenTypeMatchers=[],o)for(const d of Object.keys(o)){const h=Js(d,tu);for(const y of h)this._tokenTypeMatchers.push({matcher:y.matcher,type:o[d]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:o=>o===this._rootScopeName?this._grammar:this.getExternalGrammar(o),injections:o=>this._grammarRepository.injections(o)},n=[],r=this._rootScopeName,a=e.lookup(r);if(a){const o=a.injections;if(o)for(let c in o)B0(n,c,o[c],this,a);const s=this._grammarRepository.injections(r);s&&s.forEach(c=>{const f=this.getExternalGrammar(c);if(f){const d=f.injectionSelector;d&&B0(n,d,f,this,f)}})}return n.sort((o,s)=>o.priority-s.priority),n}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const n=++this._lastRuleId,r=e(n);return this._ruleId2desc[n]=r,r}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,n){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const r=this._grammarRepository.lookup(e);if(r)return this._includedGrammars[e]=U0(r,n&&n.$base),this._includedGrammars[e]}}tokenizeLine(e,n,r=0){const a=this._tokenize(e,n,!1,r);return{tokens:a.lineTokens.getResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}tokenizeLine2(e,n,r=0){const a=this._tokenize(e,n,!0,r);return{tokens:a.lineTokens.getBinaryResult(a.ruleStack,a.lineLength),ruleStack:a.ruleStack,stoppedEarly:a.stoppedEarly}}_tokenize(e,n,r,a){this._rootId===-1&&(this._rootId=D1.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let o;if(!n||n===_h.NULL){o=!0;const h=this._basicScopeAttributesProvider.getDefaultAttributes(),y=this.themeProvider.getDefaults(),g=La.set(0,h.languageId,h.tokenType,null,y.fontStyle,y.foregroundId,y.backgroundId),b=this.getRule(this._rootId).getName(null,null);let _;b?_=Pl.createRootAndLookUpScopeName(b,g,this):_=Pl.createRoot("unknown",g),n=new _h(null,this._rootId,-1,-1,!1,null,_,_)}else o=!1,n.reset();e=e+`
|
|
40
|
+
`;const s=this.createOnigString(e),c=s.content.length,f=new cN(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),d=M1(this,s,o,0,n,f,!0,a);return R1(s),{lineLength:c,lineTokens:f,ruleStack:d.stack,stoppedEarly:d.stoppedEarly}}};function U0(e,n){return e=CD(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=n||e.repository.$self,e}var Pl=class Xn{constructor(n,r,a){this.parent=n,this.scopePath=r,this.tokenAttributes=a}static fromExtension(n,r){let a=n,o=n?.scopePath??null;for(const s of r)o=kd.push(o,s.scopeNames),a=new Xn(a,o,s.encodedTokenAttributes);return a}static createRoot(n,r){return new Xn(null,new kd(null,n),r)}static createRootAndLookUpScopeName(n,r,a){const o=a.getMetadataForScope(n),s=new kd(null,n),c=a.themeProvider.themeMatch(s),f=Xn.mergeAttributes(r,o,c);return new Xn(null,s,f)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(n){return Xn.equals(this,n)}static equals(n,r){do{if(n===r||!n&&!r)return!0;if(!n||!r||n.scopeName!==r.scopeName||n.tokenAttributes!==r.tokenAttributes)return!1;n=n.parent,r=r.parent}while(!0)}static mergeAttributes(n,r,a){let o=-1,s=0,c=0;return a!==null&&(o=a.fontStyle,s=a.foregroundId,c=a.backgroundId),La.set(n,r.languageId,r.tokenType,null,o,s,c)}pushAttributed(n,r){if(n===null)return this;if(n.indexOf(" ")===-1)return Xn._pushAttributed(this,n,r);const a=n.split(/ /g);let o=this;for(const s of a)o=Xn._pushAttributed(o,s,r);return o}static _pushAttributed(n,r,a){const o=a.getMetadataForScope(r),s=n.scopePath.push(r),c=a.themeProvider.themeMatch(s),f=Xn.mergeAttributes(n.tokenAttributes,o,c);return new Xn(n,s,f)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(n){const r=[];let a=this;for(;a&&a!==n;)r.push({encodedTokenAttributes:a.tokenAttributes,scopeNames:a.scopePath.getExtensionIfDefined(a.parent?.scopePath??null)}),a=a.parent;return a===n?r.reverse():void 0}},_h=class Ai{constructor(n,r,a,o,s,c,f,d){this.parent=n,this.ruleId=r,this.beginRuleCapturedEOL=s,this.endRule=c,this.nameScopesList=f,this.contentNameScopesList=d,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=o}_stackElementBrand=void 0;static NULL=new Ai(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(n){return n===null?!1:Ai._equals(this,n)}static _equals(n,r){return n===r?!0:this._structuralEquals(n,r)?Pl.equals(n.contentNameScopesList,r.contentNameScopesList):!1}static _structuralEquals(n,r){do{if(n===r||!n&&!r)return!0;if(!n||!r||n.depth!==r.depth||n.ruleId!==r.ruleId||n.endRule!==r.endRule)return!1;n=n.parent,r=r.parent}while(!0)}clone(){return this}static _reset(n){for(;n;)n._enterPos=-1,n._anchorPos=-1,n=n.parent}reset(){Ai._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(n,r,a,o,s,c,f){return new Ai(this,n,r,a,o,s,c,f)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(n){return n.getRule(this.ruleId)}toString(){const n=[];return this._writeString(n,0),"["+n.join(",")+"]"}_writeString(n,r){return this.parent&&(r=this.parent._writeString(n,r)),n[r++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,r}withContentNameScopesList(n){return this.contentNameScopesList===n?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,n)}withEndRule(n){return this.endRule===n?this:new Ai(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,n,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(n){let r=this;for(;r&&r._enterPos===n._enterPos;){if(r.ruleId===n.ruleId)return!0;r=r.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(n,r){const a=Pl.fromExtension(n?.nameScopesList??null,r.nameScopesList);return new Ai(n,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,a,Pl.fromExtension(a,r.contentNameScopesList))}},uN=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,n){this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):Js(r,tu).map(a=>a.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>Js(r,tu).map(a=>a.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const n of this.unbalancedBracketScopes)if(n(e))return!1;for(const n of this.balancedBracketScopes)if(n(e))return!0;return this.allowAny}},cN=class{constructor(e,n,r,a){this.balancedBracketSelectors=a,this._emitBinaryTokens=e,this._tokenTypeOverrides=r,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,n){this.produceFromScopes(e.contentNameScopesList,n)}produceFromScopes(e,n){if(this._lastTokenEndIndex>=n)return;if(this._emitBinaryTokens){let a=e?.tokenAttributes??0,o=!1;if(this.balancedBracketSelectors?.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=e?.getScopeNames()??[];for(const c of this._tokenTypeOverrides)c.matcher(s)&&(a=La.set(a,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(s))}if(o&&(a=La.set(a,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===a){this._lastTokenEndIndex=n;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(a),this._lastTokenEndIndex=n;return}const r=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:n,scopes:r}),this._lastTokenEndIndex=n}getResult(e,n){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===n-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,n),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,n){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===n-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,n),this._binaryTokens[this._binaryTokens.length-2]=0);const r=new Uint32Array(this._binaryTokens.length);for(let a=0,o=this._binaryTokens.length;a<o;a++)r[a]=this._binaryTokens[a];return r}},fN=class{constructor(e,n){this._onigLib=n,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,n){this._rawGrammars.set(e.scopeName,e),n&&this._injectionGrammars.set(e.scopeName,n)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,n,r,a,o){if(!this._grammars.has(e)){let s=this._rawGrammars.get(e);if(!s)return null;this._grammars.set(e,lN(e,s,n,r,a,o,this,this._onigLib))}return this._grammars.get(e)}},dN=class{_options;_syncRegistry;_ensureGrammarCache;constructor(n){this._options=n,this._syncRegistry=new fN(Ks.createFromRawTheme(n.theme,n.colorMap),n.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(n,r){this._syncRegistry.setTheme(Ks.createFromRawTheme(n,r))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(n,r,a){return this.loadGrammarWithConfiguration(n,r,{embeddedLanguages:a})}loadGrammarWithConfiguration(n,r,a){return this._loadGrammar(n,r,a.embeddedLanguages,a.tokenTypes,new uN(a.balancedBracketSelectors||[],a.unbalancedBracketSelectors||[]))}loadGrammar(n){return this._loadGrammar(n,0,null,null,null)}_loadGrammar(n,r,a,o,s){const c=new PD(this._syncRegistry,n);for(;c.Q.length>0;)c.Q.map(f=>this._loadSingleGrammar(f.scopeName)),c.processQueue();return this._grammarForScopeName(n,r,a,o,s)}_loadSingleGrammar(n){this._ensureGrammarCache.has(n)||(this._doLoadSingleGrammar(n),this._ensureGrammarCache.set(n,!0))}_doLoadSingleGrammar(n){const r=this._options.loadGrammar(n);if(r){const a=typeof this._options.getInjections=="function"?this._options.getInjections(n):void 0;this._syncRegistry.addGrammar(r,a)}}addGrammar(n,r=[],a=0,o=null){return this._syncRegistry.addGrammar(n,r),this._grammarForScopeName(n.scopeName,a,o)}_grammarForScopeName(n,r=0,a=null,o=null,s=null){return this._syncRegistry.grammarForScopeName(n,r,a,o,s)}},bh=_h.NULL;function nu(e,n){const r=typeof e=="string"?{}:{...e.colorReplacements},a=typeof e=="string"?e:e.name;for(const[o,s]of Object.entries(n?.colorReplacements||{}))typeof s=="string"?r[o]=s:o===a&&Object.assign(r,s);return r}function ti(e,n){return e&&(n?.[e?.toLowerCase()]||e)}function hN(e){return Array.isArray(e)?e:[e]}async function I1(e){return Promise.resolve(typeof e=="function"?e():e).then(n=>n.default||n)}function Eu(e){return!e||["plaintext","txt","text","plain"].includes(e)}function j1(e){return e==="ansi"||Eu(e)}function Su(e){return e==="none"}function B1(e){return Su(e)}function wu(e,n=!1){if(e.length===0)return[["",0]];const r=e.split(/(\r?\n)/g);let a=0;const o=[];for(let s=0;s<r.length;s+=2){const c=n?r[s]+(r[s+1]||""):r[s];o.push([c,a]),a+=r[s].length,a+=r[s+1]?.length||0}return o}const V0={light:"#333333",dark:"#bbbbbb"},P0={light:"#fffffe",dark:"#1e1e1e"},H0="__shiki_resolved";function op(e){if(e?.[H0])return e;const n={...e};n.tokenColors&&!n.settings&&(n.settings=n.tokenColors,delete n.tokenColors),n.type||="dark",n.colorReplacements={...n.colorReplacements},n.settings||=[];let{bg:r,fg:a}=n;if(!r||!a){const f=n.settings?n.settings.find(d=>!d.name&&!d.scope):void 0;f?.settings?.foreground&&(a=f.settings.foreground),f?.settings?.background&&(r=f.settings.background),!a&&n?.colors?.["editor.foreground"]&&(a=n.colors["editor.foreground"]),!r&&n?.colors?.["editor.background"]&&(r=n.colors["editor.background"]),a||(a=n.type==="light"?V0.light:V0.dark),r||(r=n.type==="light"?P0.light:P0.dark),n.fg=a,n.bg=r}n.settings[0]&&n.settings[0].settings&&!n.settings[0].scope||n.settings.unshift({settings:{foreground:n.fg,background:n.bg}});let o=0;const s=new Map;function c(f){if(s.has(f))return s.get(f);o+=1;const d=`#${o.toString(16).padStart(8,"0").toLowerCase()}`;return n.colorReplacements?.[`#${d}`]?c(f):(s.set(f,d),d)}n.settings=n.settings.map(f=>{const d=f.settings?.foreground&&!f.settings.foreground.startsWith("#"),h=f.settings?.background&&!f.settings.background.startsWith("#");if(!d&&!h)return f;const y={...f,settings:{...f.settings}};if(d){const g=c(f.settings.foreground);n.colorReplacements[g]=f.settings.foreground,y.settings.foreground=g}if(h){const g=c(f.settings.background);n.colorReplacements[g]=f.settings.background,y.settings.background=g}return y});for(const f of Object.keys(n.colors||{}))if((f==="editor.foreground"||f==="editor.background"||f.startsWith("terminal.ansi"))&&!n.colors[f]?.startsWith("#")){const d=c(n.colors[f]);n.colorReplacements[d]=n.colors[f],n.colors[f]=d}return Object.defineProperty(n,H0,{enumerable:!1,writable:!1,value:!0}),n}async function U1(e){return Array.from(new Set((await Promise.all(e.filter(n=>!j1(n)).map(async n=>await I1(n).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function V1(e){return(await Promise.all(e.map(async n=>B1(n)?null:op(await I1(n))))).filter(n=>!!n)}function P1(e,n){if(!n)return e;if(n[e]){const r=new Set([e]);for(;n[e];){if(e=n[e],r.has(e))throw new ot(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}var pN=class extends dN{_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,n,r,a={}){super(e),this._resolver=e,this._themes=n,this._langs=r,this._alias=a,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const n=op(e);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let n=this._textmateThemeCache.get(e);n||(n=Ks.createFromRawTheme(e),this._textmateThemeCache.set(e,n)),this._syncRegistry.setTheme(n)}getGrammar(e){return e=P1(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const r={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const a=this.loadGrammarWithConfiguration(e.scopeName,1,r);if(a.name=e.name,this._resolvedGrammars.set(e.name,a),e.aliases&&e.aliases.forEach(o=>{this._alias[o]=e.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const a of e)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),r=n.filter(([a,o])=>!o);if(r.length){const a=n.filter(([o,s])=>s?(s.embeddedLanguages||s.embeddedLangs)?.some(c=>r.map(([f])=>f).includes(c)):!1).filter(o=>!r.includes(o));throw new ot(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${a.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[a,o]of n)this._resolver.addLanguage(o);for(const[a,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const n=e.embeddedLanguages??e.embeddedLangs;if(n)for(const r of n)this._langGraph.set(r,this._langMap.get(r))}},mN=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,n){this._onigLib={createOnigScanner:r=>e.createScanner(r),createOnigString:r=>e.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(n=>{this._langs.set(n,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(e.scopeName)})}getInjections(e){const n=e.split(".");let r=[];for(let a=1;a<=n.length;a++){const o=n.slice(0,a).join(".");r=[...r,...this._injections.get(o)||[]]}return r}};let zl=0;function gN(e){zl+=1,e.warnings!==!1&&zl>=10&&zl%10===0&&console.warn(`[Shiki] ${zl} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new ot("`engine` option is required for synchronous mode");const r=(e.langs||[]).flat(1),a=(e.themes||[]).flat(1).map(op),o=new pN(new mN(e.engine,r),a,r,e.langAlias);let s;function c(T){return P1(T,e.langAlias)}function f(T){R();const N=o.getGrammar(typeof T=="string"?T:T.name);if(!N)throw new ot(`Language \`${T}\` not found, you may need to load it first`);return N}function d(T){if(T==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};R();const N=o.getTheme(T);if(!N)throw new ot(`Theme \`${T}\` not found, you may need to load it first`);return N}function h(T){R();const N=d(T);return s!==T&&(o.setTheme(N),s=T),{theme:N,colorMap:o.getColorMap()}}function y(){return R(),o.getLoadedThemes()}function g(){return R(),o.getLoadedLanguages()}function b(...T){R(),o.loadLanguages(T.flat(1))}async function _(...T){return b(await U1(T))}function x(...T){R();for(const N of T.flat(1))o.loadTheme(N)}async function C(...T){return R(),x(await V1(T))}function R(){if(n)throw new ot("Shiki instance has been disposed")}function w(){n||(n=!0,o.dispose(),zl-=1)}return{setTheme:h,getTheme:d,getLanguage:f,getLoadedThemes:y,getLoadedLanguages:g,resolveLangAlias:c,loadLanguage:_,loadLanguageSync:b,loadTheme:C,loadThemeSync:x,dispose:w,[Symbol.dispose]:w}}async function yN(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[n,r,a]=await Promise.all([V1(e.themes||[]),U1(e.langs||[]),e.engine]);return gN({...e,themes:n,langs:r,engine:a})}const H1=new WeakMap;function ku(e,n){H1.set(e,n)}function Xl(e){return H1.get(e)}var Au=class G1{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(n,r){return new G1(Object.fromEntries(hN(r).map(a=>[a,bh])),n)}constructor(...n){if(n.length===2){const[r,a]=n;this.lang=a,this._stacks=r}else{const[r,a,o]=n;this.lang=a,this._stacks={[o]:r}}}getInternalStack(n=this.theme){return this._stacks[n]}getScopes(n=this.theme){return _N(this._stacks[n])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function _N(e){const n=[],r=new Set;function a(o){if(r.has(o))return;r.add(o);const s=o?.nameScopesList?.scopeName;s&&n.push(s),o.parent&&a(o.parent)}return a(e),n}function bN(e,n){if(!(e instanceof Au))throw new ot("Invalid grammar state");return e.getInternalStack(n)}function q1(e,n,r={}){const{theme:a=e.getLoadedThemes()[0]}=r;if(Eu(e.resolveLangAlias(r.lang||"text"))||Su(a))return wu(n).map(f=>[{content:f[0],offset:f[1]}]);const{theme:o,colorMap:s}=e.setTheme(a),c=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==c.name)throw new ot(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${c.name}"`);if(!r.grammarState.themes.includes(o.name))throw new ot(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return xN(n,c,o,s,r)}function vN(...e){if(e.length===2)return Xl(e[1]);const[n,r,a={}]=e,{lang:o="text",theme:s=n.getLoadedThemes()[0]}=a;if(Eu(o)||Su(s))throw new ot("Plain language does not have grammar state");if(o==="ansi")throw new ot("ANSI language does not have grammar state");const{theme:c,colorMap:f}=n.setTheme(s),d=n.getLanguage(o);return new Au(sp(r,d,c,f,a).stateStack,d.name,c.name)}function xN(e,n,r,a,o){const s=sp(e,n,r,a,o),c=new Au(s.stateStack,n.name,r.name);return ku(s.tokens,c),s.tokens}function sp(e,n,r,a,o){const s=nu(r,o),{tokenizeMaxLineLength:c=0,tokenizeTimeLimit:f=500}=o,d=wu(e);let h=o.grammarState?bN(o.grammarState,r.name)??bh:o.grammarContextCode!=null?sp(o.grammarContextCode,n,r,a,{...o,grammarState:void 0,grammarContextCode:void 0}).stateStack:bh,y=[];const g=[];for(let b=0,_=d.length;b<_;b++){const[x,C]=d[b];if(x===""){y=[],g.push([]);continue}if(c>0&&x.length>=c){y=[],g.push([{content:x,offset:C,color:"",fontStyle:0}]);continue}let R,w,T;o.includeExplanation&&(R=n.tokenizeLine(x,h,f),w=R.tokens,T=0);const N=n.tokenizeLine2(x,h,f),Z=N.tokens.length/2;for(let Q=0;Q<Z;Q++){const D=N.tokens[2*Q],P=Q+1<Z?N.tokens[2*Q+2]:x.length;if(D===P)continue;const q=N.tokens[2*Q+1],F=ti(a[La.getForeground(q)],s),j=La.getFontStyle(q),V={content:x.substring(D,P),offset:C+D,color:F,fontStyle:j};if(o.includeExplanation){const W=[];if(o.includeExplanation!=="scopeName")for(const oe of r.settings){let ie;switch(typeof oe.scope){case"string":ie=oe.scope.split(/,/).map(B=>B.trim());break;case"object":ie=oe.scope;break;default:continue}W.push({settings:oe,selectors:ie.map(B=>B.split(/ /))})}V.explanation=[];let ge=0;for(;D+ge<P;){const oe=w[T],ie=x.substring(oe.startIndex,oe.endIndex);ge+=ie.length,V.explanation.push({content:ie,scopes:o.includeExplanation==="scopeName"?EN(oe.scopes):SN(W,oe.scopes)}),T+=1}}y.push(V)}g.push(y),y=[],h=N.ruleStack}return{tokens:g,stateStack:h}}function EN(e){return e.map(n=>({scopeName:n}))}function SN(e,n){const r=[];for(let a=0,o=n.length;a<o;a++){const s=n[a];r[a]={scopeName:s,themeMatches:kN(e,s,n.slice(0,a))}}return r}function G0(e,n){return e===n||n.substring(0,e.length)===e&&n[e.length]==="."}function wN(e,n,r){if(!G0(e[e.length-1],n))return!1;let a=e.length-2,o=r.length-1;for(;a>=0&&o>=0;)G0(e[a],r[o])&&(a-=1),o-=1;return a===-1}function kN(e,n,r){const a=[];for(const{selectors:o,settings:s}of e)for(const c of o)if(wN(c,n,r)){a.push(s);break}return a}function $1(e,n,r,a=q1){const o=Object.entries(r.themes).filter(h=>h[1]).map(h=>({color:h[0],theme:h[1]})),s=o.map(h=>{const y=a(e,n,{...r,theme:h.theme});return{tokens:y,state:Xl(y),theme:typeof h.theme=="string"?h.theme:h.theme.name}}),c=AN(...s.map(h=>h.tokens)),f=c[0].map((h,y)=>h.map((g,b)=>{const _={content:g.content,variants:{},offset:g.offset};return"includeExplanation"in r&&r.includeExplanation&&(_.explanation=g.explanation),c.forEach((x,C)=>{const{content:R,explanation:w,offset:T,...N}=x[y][b];_.variants[o[C].color]=N}),_})),d=s[0].state?new Au(Object.fromEntries(s.map(h=>[h.theme,h.state?.getInternalStack(h.theme)])),s[0].state.lang):void 0;return d&&ku(f,d),f}function AN(...e){const n=e.map(()=>[]),r=e.length;for(let a=0;a<e[0].length;a++){const o=e.map(d=>d[a]),s=n.map(()=>[]);n.forEach((d,h)=>d.push(s[h]));const c=o.map(()=>0),f=o.map(d=>d[0]);for(;f.every(d=>d);){const d=Math.min(...f.map(h=>h.content.length));for(let h=0;h<r;h++){const y=f[h];y.content.length===d?(s[h].push(y),c[h]+=1,f[h]=o[h][c[h]]):(s[h].push({...y,content:y.content.slice(0,d)}),f[h]={...y,content:y.content.slice(d),offset:y.offset+d})}}}return n}const CN=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],TN=/["&'<>`]/g,RN=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ON=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,LN=/[|\\{}()[\]^$+*?.]/g,q0=new WeakMap;function DN(e,n){if(e=e.replace(n.subset?NN(n.subset):TN,a),n.subset||n.escapeOnly)return e;return e.replace(RN,r).replace(ON,a);function r(o,s,c){return n.format((o.charCodeAt(0)-55296)*1024+o.charCodeAt(1)-56320+65536,c.charCodeAt(s+2),n)}function a(o,s,c){return n.format(o.charCodeAt(0),c.charCodeAt(s+1),n)}}function NN(e){let n=q0.get(e);return n||(n=MN(e),q0.set(e,n)),n}function MN(e){const n=[];let r=-1;for(;++r<e.length;)n.push(e[r].replace(LN,"\\$&"));return new RegExp("(?:"+n.join("|")+")","g")}const zN=/[\dA-Fa-f]/;function IN(e,n,r){const a="&#x"+e.toString(16).toUpperCase();return r&&n&&!zN.test(String.fromCharCode(n))?a:a+";"}const jN=/\d/;function BN(e,n,r){const a="&#"+String(e);return r&&n&&!jN.test(String.fromCharCode(n))?a:a+";"}const UN=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Cd={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},VN=["cent","copy","divide","gt","lt","not","para","times"],F1={}.hasOwnProperty,vh={};let Ns;for(Ns in Cd)F1.call(Cd,Ns)&&(vh[Cd[Ns]]=Ns);const PN=/[^\dA-Za-z]/;function HN(e,n,r,a){const o=String.fromCharCode(e);if(F1.call(vh,o)){const s=vh[o],c="&"+s;return r&&UN.includes(s)&&!VN.includes(s)&&(!a||n&&n!==61&&PN.test(String.fromCharCode(n)))?c:c+";"}return""}function GN(e,n,r){let a=IN(e,n,r.omitOptionalSemicolons),o;if((r.useNamedReferences||r.useShortestReferences)&&(o=HN(e,n,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!o)&&r.useShortestReferences){const s=BN(e,n,r.omitOptionalSemicolons);s.length<a.length&&(a=s)}return o&&(!r.useShortestReferences||o.length<a.length)?o:a}function Ra(e,n){return DN(e,Object.assign({format:GN},n))}const qN=/^>|^->|<!--|-->|--!>|<!-$/g,$N=[">"],FN=["<",">"];function YN(e,n,r,a){return a.settings.bogusComments?"<?"+Ra(e.value,Object.assign({},a.settings.characterReferences,{subset:$N}))+">":"<!--"+e.value.replace(qN,o)+"-->";function o(s){return Ra(s,Object.assign({},a.settings.characterReferences,{subset:FN}))}}function XN(e,n,r,a){return"<!"+(a.settings.upperDoctype?"DOCTYPE":"doctype")+(a.settings.tightDoctype?"":" ")+"html>"}const Lt=X1(1),Y1=X1(-1),QN=[];function X1(e){return n;function n(r,a,o){const s=r?r.children:QN;let c=(a||0)+e,f=s[c];if(!o)for(;f&&du(f);)c+=e,f=s[c];return f}}const ZN={}.hasOwnProperty;function Q1(e){return n;function n(r,a,o){return ZN.call(e,r.tagName)&&e[r.tagName](r,a,o)}}const up=Q1({body:JN,caption:Td,colgroup:Td,dd:nM,dt:tM,head:Td,html:KN,li:eM,optgroup:rM,option:iM,p:WN,rp:$0,rt:$0,tbody:lM,td:F0,tfoot:oM,th:F0,thead:aM,tr:sM});function Td(e,n,r){const a=Lt(r,n,!0);return!a||a.type!=="comment"&&!(a.type==="text"&&du(a.value.charAt(0)))}function KN(e,n,r){const a=Lt(r,n);return!a||a.type!=="comment"}function JN(e,n,r){const a=Lt(r,n);return!a||a.type!=="comment"}function WN(e,n,r){const a=Lt(r,n);return a?a.type==="element"&&(a.tagName==="address"||a.tagName==="article"||a.tagName==="aside"||a.tagName==="blockquote"||a.tagName==="details"||a.tagName==="div"||a.tagName==="dl"||a.tagName==="fieldset"||a.tagName==="figcaption"||a.tagName==="figure"||a.tagName==="footer"||a.tagName==="form"||a.tagName==="h1"||a.tagName==="h2"||a.tagName==="h3"||a.tagName==="h4"||a.tagName==="h5"||a.tagName==="h6"||a.tagName==="header"||a.tagName==="hgroup"||a.tagName==="hr"||a.tagName==="main"||a.tagName==="menu"||a.tagName==="nav"||a.tagName==="ol"||a.tagName==="p"||a.tagName==="pre"||a.tagName==="section"||a.tagName==="table"||a.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function eM(e,n,r){const a=Lt(r,n);return!a||a.type==="element"&&a.tagName==="li"}function tM(e,n,r){const a=Lt(r,n);return!!(a&&a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd"))}function nM(e,n,r){const a=Lt(r,n);return!a||a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd")}function $0(e,n,r){const a=Lt(r,n);return!a||a.type==="element"&&(a.tagName==="rp"||a.tagName==="rt")}function rM(e,n,r){const a=Lt(r,n);return!a||a.type==="element"&&a.tagName==="optgroup"}function iM(e,n,r){const a=Lt(r,n);return!a||a.type==="element"&&(a.tagName==="option"||a.tagName==="optgroup")}function aM(e,n,r){const a=Lt(r,n);return!!(a&&a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot"))}function lM(e,n,r){const a=Lt(r,n);return!a||a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot")}function oM(e,n,r){return!Lt(r,n)}function sM(e,n,r){const a=Lt(r,n);return!a||a.type==="element"&&a.tagName==="tr"}function F0(e,n,r){const a=Lt(r,n);return!a||a.type==="element"&&(a.tagName==="td"||a.tagName==="th")}const uM=Q1({body:dM,colgroup:hM,head:fM,html:cM,tbody:pM});function cM(e){const n=Lt(e,-1);return!n||n.type!=="comment"}function fM(e){const n=new Set;for(const a of e.children)if(a.type==="element"&&(a.tagName==="base"||a.tagName==="title")){if(n.has(a.tagName))return!1;n.add(a.tagName)}const r=e.children[0];return!r||r.type==="element"}function dM(e){const n=Lt(e,-1,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&du(n.value.charAt(0)))&&!(n.type==="element"&&(n.tagName==="meta"||n.tagName==="link"||n.tagName==="script"||n.tagName==="style"||n.tagName==="template"))}function hM(e,n,r){const a=Y1(r,n),o=Lt(e,-1,!0);return r&&a&&a.type==="element"&&a.tagName==="colgroup"&&up(a,r.children.indexOf(a),r)?!1:!!(o&&o.type==="element"&&o.tagName==="col")}function pM(e,n,r){const a=Y1(r,n),o=Lt(e,-1);return r&&a&&a.type==="element"&&(a.tagName==="thead"||a.tagName==="tbody")&&up(a,r.children.indexOf(a),r)?!1:!!(o&&o.type==="element"&&o.tagName==="tr")}const Ms={name:[[`
|
|
41
|
+
\f\r &/=>`.split(""),`
|
|
42
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
43
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
44
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
45
|
+
\f\r &>`.split(""),`\0
|
|
46
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
47
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
48
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function mM(e,n,r,a){const o=a.schema,s=o.space==="svg"?!1:a.settings.omitOptionalTags;let c=o.space==="svg"?a.settings.closeEmptyElements:a.settings.voids.includes(e.tagName.toLowerCase());const f=[];let d;o.space==="html"&&e.tagName==="svg"&&(a.schema=eo);const h=gM(a,e.properties),y=a.all(o.space==="html"&&e.tagName==="template"?e.content:e);return a.schema=o,y&&(c=!1),(h||!s||!uM(e,n,r))&&(f.push("<",e.tagName,h?" "+h:""),c&&(o.space==="svg"||a.settings.closeSelfClosing)&&(d=h.charAt(h.length-1),(!a.settings.tightSelfClosing||d==="/"||d&&d!=='"'&&d!=="'")&&f.push(" "),f.push("/")),f.push(">")),f.push(y),!c&&(!s||!up(e,n,r))&&f.push("</"+e.tagName+">"),f.join("")}function gM(e,n){const r=[];let a=-1,o;if(n){for(o in n)if(n[o]!==null&&n[o]!==void 0){const s=yM(e,o,n[o]);s&&r.push(s)}}for(;++a<r.length;){const s=e.settings.tightAttributes?r[a].charAt(r[a].length-1):void 0;a!==r.length-1&&s!=='"'&&s!=="'"&&(r[a]+=" ")}return r.join("")}function yM(e,n,r){const a=gv(e.schema,n),o=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,s=e.settings.allowDangerousCharacters?0:1;let c=e.quote,f;if(a.overloadedBoolean&&(r===a.attribute||r==="")?r=!0:(a.boolean||a.overloadedBoolean)&&(typeof r!="string"||r===a.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const d=Ra(a.attribute,Object.assign({},e.settings.characterReferences,{subset:Ms.name[o][s]}));return r===!0||(r=Array.isArray(r)?(a.commaSeparated?sv:_v)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?d:(e.settings.preferUnquoted&&(f=Ra(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Ms.unquoted[o][s]}))),f!==r&&(e.settings.quoteSmart&&Qs(r,c)>Qs(r,e.alternative)&&(c=e.alternative),f=c+Ra(r,Object.assign({},e.settings.characterReferences,{subset:(c==="'"?Ms.single:Ms.double)[o][s],attribute:!0}))+c),d+(f&&"="+f))}const _M=["<","&"];function Z1(e,n,r,a){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Ra(e.value,Object.assign({},a.settings.characterReferences,{subset:_M}))}function bM(e,n,r,a){return a.settings.allowDangerousHtml?e.value:Z1(e,n,r,a)}function vM(e,n,r,a){return a.all(e)}const xM=NO("type",{invalid:EM,unknown:SM,handlers:{comment:YN,doctype:XN,element:mM,raw:bM,root:vM,text:Z1}});function EM(e){throw new Error("Expected node, not `"+e+"`")}function SM(e){const n=e;throw new Error("Cannot compile unknown node `"+n.type+"`")}const wM={},kM={},AM=[];function CM(e,n){const r=n||wM,a=r.quote||'"',o=a==='"'?"'":'"';if(a!=='"'&&a!=="'")throw new Error("Invalid quote `"+a+"`, expected `'` or `\"`");return{one:TM,all:RM,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||CN,characterReferences:r.characterReferences||kM,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?eo:yv,quote:a,alternative:o}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function TM(e,n,r){return xM(e,n,r,this)}function RM(e){const n=[],r=e&&e.children||AM;let a=-1;for(;++a<r.length;)n[a]=this.one(r[a],a,e);return n.join("")}function K1(e,n){if(!n)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const r=Array.isArray(n)?n:n.split(/\s+/g);for(const a of r)a&&!e.properties.class.includes(a)&&e.properties.class.push(a);return e}function OM(e){const n=wu(e,!0).map(([o])=>o);function r(o){if(o===e.length)return{line:n.length-1,character:n[n.length-1].length};let s=o,c=0;for(const f of n){if(s<f.length)break;s-=f.length,c++}return{line:c,character:s}}function a(o,s){let c=0;for(let f=0;f<o;f++)c+=n[f].length;return c+=s,c}return{lines:n,indexToPos:r,posToIndex:a}}function LM(e,n,r){const a=new Set;for(const s of e.matchAll(/:?lang=["']([^"']+)["']/g)){const c=s[1].toLowerCase().trim();c&&a.add(c)}for(const s of e.matchAll(/(?:```|~~~)([\w-]+)/g)){const c=s[1].toLowerCase().trim();c&&a.add(c)}for(const s of e.matchAll(/\\begin\{([\w-]+)\}/g)){const c=s[1].toLowerCase().trim();c&&a.add(c)}for(const s of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){const c=s[1].toLowerCase().trim(),f=c.includes("/")?c.split("/").pop():c;f&&a.add(f)}if(!r)return Array.from(a);const o=r.getBundledLanguages();return Array.from(a).filter(s=>s&&o[s])}const cp="light-dark()",DM=["color","background-color"];function NM(e,n){let r=0;const a=[];for(const o of n)o>r&&a.push({...e,content:e.content.slice(r,o),offset:e.offset+r}),r=o;return r<e.content.length&&a.push({...e,content:e.content.slice(r),offset:e.offset+r}),a}function MM(e,n){const r=Array.from(n instanceof Set?n:new Set(n)).sort((a,o)=>a-o);return r.length?e.map(a=>a.flatMap(o=>{const s=r.filter(c=>o.offset<c&&c<o.offset+o.content.length).map(c=>c-o.offset).sort((c,f)=>c-f);return s.length?NM(o,s):o})):e}function zM(e,n,r,a,o="css-vars"){const s={content:e.content,explanation:e.explanation,offset:e.offset},c=n.map(y=>ru(e.variants[y])),f=new Set(c.flatMap(y=>Object.keys(y))),d={},h=(y,g)=>{const b=g==="color"?"":g==="background-color"?"-bg":`-${g}`;return r+n[y]+(g==="color"?"":b)};return c.forEach((y,g)=>{for(const b of f){const _=y[b]||"inherit";if(g===0&&a&&DM.includes(b))if(a===cp&&c.length>1){const x=n.findIndex(R=>R==="light"),C=n.findIndex(R=>R==="dark");if(x===-1||C===-1)throw new ot('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');d[b]=`light-dark(${c[x][b]||"inherit"}, ${c[C][b]||"inherit"})`,o==="css-vars"&&(d[h(g,b)]=_)}else d[b]=_;else o==="css-vars"&&(d[h(g,b)]=_)}}),s.htmlStyle=d,s}function ru(e){const n={};if(e.color&&(n.color=e.color),e.bgColor&&(n["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Xt.Italic&&(n["font-style"]="italic"),e.fontStyle&Xt.Bold&&(n["font-weight"]="bold");const r=[];e.fontStyle&Xt.Underline&&r.push("underline"),e.fontStyle&Xt.Strikethrough&&r.push("line-through"),r.length&&(n["text-decoration"]=r.join(" "))}return n}function xh(e){return typeof e=="string"?e:Object.entries(e).map(([n,r])=>`${n}:${r}`).join(";")}function IM(){const e=new WeakMap;function n(r){if(!e.has(r.meta)){let o=function(c){if(typeof c=="number"){if(c<0||c>r.source.length)throw new ot(`Invalid decoration offset: ${c}. Code length: ${r.source.length}`);return{...a.indexToPos(c),offset:c}}else{const f=a.lines[c.line];if(f===void 0)throw new ot(`Invalid decoration position ${JSON.stringify(c)}. Lines length: ${a.lines.length}`);let d=c.character;if(d<0&&(d=f.length+d),d<0||d>f.length)throw new ot(`Invalid decoration position ${JSON.stringify(c)}. Line ${c.line} length: ${f.length}`);return{...c,character:d,offset:a.posToIndex(c.line,d)}}};const a=OM(r.source),s=(r.options.decorations||[]).map(c=>({...c,start:o(c.start),end:o(c.end)}));jM(s),e.set(r.meta,{decorations:s,converter:a,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){if(this.options.decorations?.length)return MM(r,n(this).decorations.flatMap(a=>[a.start.offset,a.end.offset]))},code(r){if(!this.options.decorations?.length)return;const a=n(this),o=Array.from(r.children).filter(y=>y.type==="element"&&y.tagName==="span");if(o.length!==a.converter.lines.length)throw new ot(`Number of lines in code element (${o.length}) does not match the number of lines in the source (${a.converter.lines.length}). Failed to apply decorations.`);function s(y,g,b,_){const x=o[y];let C="",R=-1,w=-1;if(g===0&&(R=0),b===0&&(w=0),b===Number.POSITIVE_INFINITY&&(w=x.children.length),R===-1||w===-1)for(let N=0;N<x.children.length;N++)C+=J1(x.children[N]),R===-1&&C.length===g&&(R=N+1),w===-1&&C.length===b&&(w=N+1);if(R===-1)throw new ot(`Failed to find start index for decoration ${JSON.stringify(_.start)}`);if(w===-1)throw new ot(`Failed to find end index for decoration ${JSON.stringify(_.end)}`);const T=x.children.slice(R,w);if(!_.alwaysWrap&&T.length===x.children.length)f(x,_,"line");else if(!_.alwaysWrap&&T.length===1&&T[0].type==="element")f(T[0],_,"token");else{const N={type:"element",tagName:"span",properties:{},children:T};f(N,_,"wrapper"),x.children.splice(R,T.length,N)}}function c(y,g){o[y]=f(o[y],g,"line")}function f(y,g,b){const _=g.properties||{},x=g.transform||(C=>C);return y.tagName=g.tagName||"span",y.properties={...y.properties,..._,class:y.properties.class},g.properties?.class&&K1(y,g.properties.class),y=x(y,b)||y,y}const d=[],h=a.decorations.sort((y,g)=>g.start.offset-y.start.offset||y.end.offset-g.end.offset);for(const y of h){const{start:g,end:b}=y;if(g.line===b.line)s(g.line,g.character,b.character,y);else if(g.line<b.line){s(g.line,g.character,Number.POSITIVE_INFINITY,y);for(let _=g.line+1;_<b.line;_++)d.unshift(()=>c(_,y));s(b.line,0,b.character,y)}}d.forEach(y=>y())}}}function jM(e){for(let n=0;n<e.length;n++){const r=e[n];if(r.start.offset>r.end.offset)throw new ot(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let a=n+1;a<e.length;a++){const o=e[a],s=r.start.offset<=o.start.offset&&o.start.offset<r.end.offset,c=r.start.offset<o.end.offset&&o.end.offset<=r.end.offset,f=o.start.offset<=r.start.offset&&r.start.offset<o.end.offset,d=o.start.offset<r.end.offset&&r.end.offset<=o.end.offset;if(s||c||f||d){if(s&&c||f&&d||f&&r.start.offset===r.end.offset||c&&o.start.offset===o.end.offset)continue;throw new ot(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(o.start)} intersect.`)}}}}function J1(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(J1).join(""):""}const BM=[IM()];function iu(e){const n=UM(e.transformers||[]);return[...n.pre,...n.normal,...n.post,...BM]}function UM(e){const n=[],r=[],a=[];for(const o of e)switch(o.enforce){case"pre":n.push(o);break;case"post":r.push(o);break;default:a.push(o)}return{pre:n,post:r,normal:a}}var Ri=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Rd={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function VM(e,n){const r=e.indexOf("\x1B",n);if(r!==-1&&e[r+1]==="["){const a=e.indexOf("m",r);if(a!==-1)return{sequence:e.substring(r+2,a).split(";"),startPosition:r,position:a+1}}return{position:e.length}}function Y0(e){const n=e.shift();if(n==="2"){const r=e.splice(0,3).map(a=>Number.parseInt(a));return r.length!==3||r.some(a=>Number.isNaN(a))?void 0:{type:"rgb",rgb:r}}else if(n==="5"){const r=e.shift();if(r)return{type:"table",index:Number(r)}}}function PM(e){const n=[];for(;e.length>0;){const r=e.shift();if(!r)continue;const a=Number.parseInt(r);if(!Number.isNaN(a))if(a===0)n.push({type:"resetAll"});else if(a<=9)Rd[a]&&n.push({type:"setDecoration",value:Rd[a]});else if(a<=29){const o=Rd[a-20];o&&(n.push({type:"resetDecoration",value:o}),o==="dim"&&n.push({type:"resetDecoration",value:"bold"}))}else if(a<=37)n.push({type:"setForegroundColor",value:{type:"named",name:Ri[a-30]}});else if(a===38){const o=Y0(e);o&&n.push({type:"setForegroundColor",value:o})}else if(a===39)n.push({type:"resetForegroundColor"});else if(a<=47)n.push({type:"setBackgroundColor",value:{type:"named",name:Ri[a-40]}});else if(a===48){const o=Y0(e);o&&n.push({type:"setBackgroundColor",value:o})}else a===49?n.push({type:"resetBackgroundColor"}):a===53?n.push({type:"setDecoration",value:"overline"}):a===55?n.push({type:"resetDecoration",value:"overline"}):a>=90&&a<=97?n.push({type:"setForegroundColor",value:{type:"named",name:Ri[a-90+8]}}):a>=100&&a<=107&&n.push({type:"setBackgroundColor",value:{type:"named",name:Ri[a-100+8]}})}return n}function HM(){let e=null,n=null,r=new Set;return{parse(a){const o=[];let s=0;do{const c=VM(a,s),f=c.sequence?a.substring(s,c.startPosition):a.substring(s);if(f.length>0&&o.push({value:f,foreground:e,background:n,decorations:new Set(r)}),c.sequence){const d=PM(c.sequence);for(const h of d)h.type==="resetAll"?(e=null,n=null,r.clear()):h.type==="resetForegroundColor"?e=null:h.type==="resetBackgroundColor"?n=null:h.type==="resetDecoration"&&r.delete(h.value);for(const h of d)h.type==="setForegroundColor"?e=h.value:h.type==="setBackgroundColor"?n=h.value:h.type==="setDecoration"&&r.add(h.value)}s=c.position}while(s<a.length);return o}}}var GM={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function qM(e=GM){function n(f){return e[f]}function r(f){return`#${f.map(d=>Math.max(0,Math.min(d,255)).toString(16).padStart(2,"0")).join("")}`}let a;function o(){if(a)return a;a=[];for(let h=0;h<Ri.length;h++)a.push(n(Ri[h]));let f=[0,95,135,175,215,255];for(let h=0;h<6;h++)for(let y=0;y<6;y++)for(let g=0;g<6;g++)a.push(r([f[h],f[y],f[g]]));let d=8;for(let h=0;h<24;h++,d+=10)a.push(r([d,d,d]));return a}function s(f){return o()[f]}function c(f){switch(f.type){case"named":return n(f.name);case"rgb":return r(f.rgb);case"table":return s(f.index)}}return{value:c}}const $M={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function FM(e,n,r){const a=nu(e,r),o=wu(n),s=qM(Object.fromEntries(Ri.map(f=>{const d=`terminal.ansi${f[0].toUpperCase()}${f.substring(1)}`;return[f,e.colors?.[d]||$M[f]]}))),c=HM();return o.map(f=>c.parse(f[0]).map(d=>{let h,y;d.decorations.has("reverse")?(h=d.background?s.value(d.background):e.bg,y=d.foreground?s.value(d.foreground):e.fg):(h=d.foreground?s.value(d.foreground):e.fg,y=d.background?s.value(d.background):void 0),h=ti(h,a),y=ti(y,a),d.decorations.has("dim")&&(h=YM(h));let g=Xt.None;return d.decorations.has("bold")&&(g|=Xt.Bold),d.decorations.has("italic")&&(g|=Xt.Italic),d.decorations.has("underline")&&(g|=Xt.Underline),d.decorations.has("strikethrough")&&(g|=Xt.Strikethrough),{content:d.value,offset:f[1],color:h,bgColor:y,fontStyle:g}}))}function YM(e){const n=e.match(/#([0-9a-f]{3,8})/i);if(n){const a=n[1];if(a.length===8){const o=Math.round(Number.parseInt(a.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${a.slice(0,6)}${o}`}else{if(a.length===6)return`#${a}80`;if(a.length===4){const o=a[0],s=a[1],c=a[2],f=a[3];return`#${o}${o}${s}${s}${c}${c}${Math.round(Number.parseInt(`${f}${f}`,16)/2).toString(16).padStart(2,"0")}`}else if(a.length===3){const o=a[0],s=a[1],c=a[2];return`#${o}${o}${s}${s}${c}${c}80`}}}const r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function Eh(e,n,r={}){const a=e.resolveLangAlias(r.lang||"text"),{theme:o=e.getLoadedThemes()[0]}=r;if(!Eu(a)&&!Su(o)&&a==="ansi"){const{theme:s}=e.setTheme(o);return FM(s,n,r)}return q1(e,n,r)}function au(e,n,r){let a,o,s,c,f,d;if("themes"in r){const{defaultColor:h="light",cssVariablePrefix:y="--shiki-",colorsRendering:g="css-vars"}=r,b=Object.entries(r.themes).filter(w=>w[1]).map(w=>({color:w[0],theme:w[1]})).sort((w,T)=>w.color===h?-1:T.color===h?1:0);if(b.length===0)throw new ot("`themes` option must not be empty");const _=$1(e,n,r,Eh);if(d=Xl(_),h&&cp!==h&&!b.find(w=>w.color===h))throw new ot(`\`themes\` option must contain the defaultColor key \`${h}\``);const x=b.map(w=>e.getTheme(w.theme)),C=b.map(w=>w.color);s=_.map(w=>w.map(T=>zM(T,C,y,h,g))),d&&ku(s,d);const R=b.map(w=>nu(w.theme,r));o=X0(b,x,R,y,h,"fg",g),a=X0(b,x,R,y,h,"bg",g),c=`shiki-themes ${x.map(w=>w.name).join(" ")}`,f=h?void 0:[o,a].join(";")}else if("theme"in r){const h=nu(r.theme,r);s=Eh(e,n,r);const y=e.getTheme(r.theme);a=ti(y.bg,h),o=ti(y.fg,h),c=y.name,d=Xl(s)}else throw new ot("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:o,bg:a,themeName:c,rootStyle:f,grammarState:d}}function X0(e,n,r,a,o,s,c){return e.map((f,d)=>{const h=ti(n[d][s],r[d])||"inherit",y=`${a+f.color}${s==="bg"?"-bg":""}:${h}`;if(d===0&&o){if(o===cp&&e.length>1){const g=e.findIndex(_=>_.color==="light"),b=e.findIndex(_=>_.color==="dark");if(g===-1||b===-1)throw new ot('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${ti(n[g][s],r[g])||"inherit"}, ${ti(n[b][s],r[b])||"inherit"});${y}`}return h}return c==="css-vars"?y:null}).filter(f=>!!f).join(";")}function lu(e,n,r,a={meta:{},options:r,codeToHast:(o,s)=>lu(e,o,s),codeToTokens:(o,s)=>au(e,o,s)}){let o=n;for(const x of iu(r))o=x.preprocess?.call(a,o,r)||o;let{tokens:s,fg:c,bg:f,themeName:d,rootStyle:h,grammarState:y}=au(e,o,r);const{mergeWhitespaces:g=!0,mergeSameStyleTokens:b=!1}=r;g===!0?s=QM(s):g==="never"&&(s=ZM(s)),b&&(s=KM(s));const _={...a,get source(){return o}};for(const x of iu(r))s=x.tokens?.call(_,s)||s;return XM(s,{...r,fg:c,bg:f,themeName:d,rootStyle:r.rootStyle===!1?!1:r.rootStyle??h},_,y)}function XM(e,n,r,a=Xl(e)){const o=iu(n),s=[],c={type:"root",children:[]},{structure:f="classic",tabindex:d="0"}=n,h={class:`shiki ${n.themeName||""}`};n.rootStyle!==!1&&(n.rootStyle!=null?h.style=n.rootStyle:h.style=`background-color:${n.bg};color:${n.fg}`),d!==!1&&d!=null&&(h.tabindex=d.toString());for(const[C,R]of Object.entries(n.meta||{}))C.startsWith("_")||(h[C]=R);let y={type:"element",tagName:"pre",properties:h,children:[],data:n.data},g={type:"element",tagName:"code",properties:{},children:s};const b=[],_={...r,structure:f,addClassToHast:K1,get source(){return r.source},get tokens(){return e},get options(){return n},get root(){return c},get pre(){return y},get code(){return g},get lines(){return b}};if(e.forEach((C,R)=>{R&&(f==="inline"?c.children.push({type:"element",tagName:"br",properties:{},children:[]}):f==="classic"&&s.push({type:"text",value:`
|
|
49
|
+
`}));let w={type:"element",tagName:"span",properties:{class:"line"},children:[]},T=0;for(const N of C){let Z={type:"element",tagName:"span",properties:{...N.htmlAttrs},children:[{type:"text",value:N.content}]};const Q=xh(N.htmlStyle||ru(N));Q&&(Z.properties.style=Q);for(const D of o)Z=D?.span?.call(_,Z,R+1,T,w,N)||Z;f==="inline"?c.children.push(Z):f==="classic"&&w.children.push(Z),T+=N.content.length}if(f==="classic"){for(const N of o)w=N?.line?.call(_,w,R+1)||w;b.push(w),s.push(w)}else f==="inline"&&b.push(w)}),f==="classic"){for(const C of o)g=C?.code?.call(_,g)||g;y.children.push(g);for(const C of o)y=C?.pre?.call(_,y)||y;c.children.push(y)}else if(f==="inline"){const C=[];let R={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const T of c.children)T.type==="element"&&T.tagName==="br"?(C.push(R),R={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(T.type==="element"||T.type==="text")&&R.children.push(T);C.push(R);let w={type:"element",tagName:"code",properties:{},children:C};for(const T of o)w=T?.code?.call(_,w)||w;c.children=[];for(let T=0;T<w.children.length;T++){T>0&&c.children.push({type:"element",tagName:"br",properties:{},children:[]});const N=w.children[T];N.type==="element"&&c.children.push(...N.children)}}let x=c;for(const C of o)x=C?.root?.call(_,x)||x;return a&&ku(x,a),x}function QM(e){return e.map(n=>{const r=[];let a="",o;return n.forEach((s,c)=>{const f=!(s.fontStyle&&(s.fontStyle&Xt.Underline||s.fontStyle&Xt.Strikethrough));f&&s.content.match(/^\s+$/)&&n[c+1]?(o===void 0&&(o=s.offset),a+=s.content):a?(f?r.push({...s,offset:o,content:a+s.content}):r.push({content:a,offset:o},s),o=void 0,a=""):r.push(s)}),r})}function ZM(e){return e.map(n=>n.flatMap(r=>{if(r.content.match(/^\s+$/))return r;const a=r.content.match(/^(\s*)(.*?)(\s*)$/);if(!a)return r;const[,o,s,c]=a;if(!o&&!c)return r;const f=[{...r,offset:r.offset+o.length,content:s}];return o&&f.unshift({content:o,offset:r.offset}),c&&f.push({content:c,offset:r.offset+o.length+s.length}),f}))}function KM(e){return e.map(n=>{const r=[];for(const a of n){if(r.length===0){r.push({...a});continue}const o=r[r.length-1],s=xh(o.htmlStyle||ru(o)),c=xh(a.htmlStyle||ru(a)),f=o.fontStyle&&(o.fontStyle&Xt.Underline||o.fontStyle&Xt.Strikethrough),d=a.fontStyle&&(a.fontStyle&Xt.Underline||a.fontStyle&Xt.Strikethrough);!f&&!d&&s===c?o.content+=a.content:r.push({...a})}return r})}const JM=CM;function WM(e,n,r){const a={meta:{},options:r,codeToHast:(s,c)=>lu(e,s,c),codeToTokens:(s,c)=>au(e,s,c)};let o=JM(lu(e,n,r,a));for(const s of iu(r))o=s.postprocess?.call(a,o,r)||o;return o}async function e3(e){const n=await yN(e);return{getLastGrammarState:(...r)=>vN(n,...r),codeToTokensBase:(r,a)=>Eh(n,r,a),codeToTokensWithThemes:(r,a)=>$1(n,r,a),codeToTokens:(r,a)=>au(n,r,a),codeToHast:(r,a)=>lu(n,r,a),codeToHtml:(r,a)=>WM(n,r,a),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...n,getInternalContext:()=>n}}function t3(e){const n=e.langs,r=e.themes,a=e.engine;async function o(s){function c(g){if(typeof g=="string"){if(g=s.langAlias?.[g]||g,j1(g))return[];const b=n[g];if(!b)throw new ot(`Language \`${g}\` is not included in this bundle. You may want to load it from external source.`);return b}return g}function f(g){if(B1(g))return"none";if(typeof g=="string"){const b=r[g];if(!b)throw new ot(`Theme \`${g}\` is not included in this bundle. You may want to load it from external source.`);return b}return g}const d=(s.themes??[]).map(g=>f(g)),h=(s.langs??[]).map(g=>c(g)),y=await e3({engine:s.engine??a(),...s,themes:d,langs:h});return{...y,loadLanguage(...g){return y.loadLanguage(...g.map(c))},loadTheme(...g){return y.loadTheme(...g.map(f))},getBundledLanguages(){return n},getBundledThemes(){return r}}}return o}function n3(e){let n;async function r(a={}){if(n){const o=await n;return await Promise.all([o.loadTheme(...a.themes||[]),o.loadLanguage(...a.langs||[])]),o}else{n=e({...a,themes:[],langs:[]});const o=await n;return await Promise.all([o.loadTheme(...a.themes||[]),o.loadLanguage(...a.langs||[])]),o}}return r}function r3(e,n){const r=n3(e);async function a(o,s){const c=await r({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)}),f=await n?.guessEmbeddedLanguages?.(o,s.lang,c);return f&&await c.loadLanguage(...f),c}return{getSingletonHighlighter(o){return r(o)},async codeToHtml(o,s){return(await a(o,s)).codeToHtml(o,s)},async codeToHast(o,s){return(await a(o,s)).codeToHast(o,s)},async codeToTokens(o,s){return(await a(o,s)).codeToTokens(o,s)},async codeToTokensBase(o,s){return(await a(o,s)).codeToTokensBase(o,s)},async codeToTokensWithThemes(o,s){return(await a(o,s)).codeToTokensWithThemes(o,s)},async getLastGrammarState(o,s){return(await r({langs:[s.lang],themes:[s.theme]})).getLastGrammarState(o,s)}}}var i3=Wh({bundledLanguages:()=>bu,bundledLanguagesAlias:()=>tp,bundledLanguagesBase:()=>ep,bundledLanguagesInfo:()=>_u,bundledThemes:()=>rp,bundledThemesInfo:()=>np,codeToHast:()=>ex,codeToHtml:()=>W1,codeToTokens:()=>tx,codeToTokensBase:()=>nx,codeToTokensWithThemes:()=>rx,createHighlighter:()=>Cu,getLastGrammarState:()=>ax,getSingletonHighlighter:()=>ix});const Cu=t3({langs:bu,themes:rp,engine:()=>(0,v1.createOnigurumaEngine)(k(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:W1,codeToHast:ex,codeToTokens:tx,codeToTokensBase:nx,codeToTokensWithThemes:rx,getSingletonHighlighter:ix,getLastGrammarState:ax}=r3(Cu,{guessEmbeddedLanguages:LM}),Q0=4294967295;var a3=class{regexps;constructor(e,n={}){this.patterns=e,this.options=n;const{forgiving:r=!1,cache:a,regexConstructor:o}=n;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(s=>{if(typeof s!="string")return s;const c=a?.get(s);if(c){if(c instanceof RegExp)return c;if(r)return null;throw c}try{const f=o(s);return a?.set(s,f),f}catch(f){if(a?.set(s,f),r)return null;throw f}})}findNextMatchSync(e,n,r){const a=typeof e=="string"?e:e.content,o=[];function s(c,f,d=0){return{index:c,captureIndices:f.indices.map(h=>h==null?{start:Q0,end:Q0,length:0}:{start:h[0]+d,end:h[1]+d,length:h[1]-h[0]})}}for(let c=0;c<this.regexps.length;c++){const f=this.regexps[c];if(f)try{f.lastIndex=n;const d=f.exec(a);if(!d)continue;if(d.index===n)return s(c,d,0);o.push([c,d,0])}catch(d){if(this.options.forgiving)continue;throw d}}if(o.length){const c=Math.min(...o.map(f=>f[1].index));for(const[f,d,h]of o)if(d.index===c)return s(f,d,h)}return null}};function Ma(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function l3(e,n,r){return e.has(n)||e.set(n,r),e.get(n)}const fp=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),It=String.raw;function za(e,n){if(e==null)throw new Error(n??"Value expected");return e}const lx=It`\[\^?`,ox=`c.? | C(?:-.?)?|${It`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${It`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${It`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${It`o\{[^\}]*\}?`}|${It`\d{1,3}`}`,dp=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,zs=new RegExp(It`
|
|
50
|
+
\\ (?:
|
|
51
|
+
${ox}
|
|
52
|
+
| [gk]<[^>]*>?
|
|
53
|
+
| [gk]'[^']*'?
|
|
54
|
+
| .
|
|
55
|
+
)
|
|
56
|
+
| \( (?:
|
|
57
|
+
\? (?:
|
|
58
|
+
[:=!>({]
|
|
59
|
+
| <[=!]
|
|
60
|
+
| <[^>]*>
|
|
61
|
+
| '[^']*'
|
|
62
|
+
| ~\|?
|
|
63
|
+
| #(?:[^)\\]|\\.?)*
|
|
64
|
+
| [^:)]*[:)]
|
|
65
|
+
)?
|
|
66
|
+
| \*[^\)]*\)?
|
|
67
|
+
)?
|
|
68
|
+
| (?:${dp.source})+
|
|
69
|
+
| ${lx}
|
|
70
|
+
| .
|
|
71
|
+
`.replace(/\s+/g,""),"gsu"),Od=new RegExp(It`
|
|
72
|
+
\\ (?:
|
|
73
|
+
${ox}
|
|
74
|
+
| .
|
|
75
|
+
)
|
|
76
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
77
|
+
| ${lx}
|
|
78
|
+
| &&
|
|
79
|
+
| .
|
|
80
|
+
`.replace(/\s+/g,""),"gsu");function o3(e,n={}){const r={flags:"",...n,rules:{captureGroup:!1,singleline:!1,...n.rules}};if(typeof e!="string")throw new Error("String expected as pattern");const a=A3(r.flags),o=[a.extended],s={captureGroup:r.rules.captureGroup,getCurrentModX(){return o.at(-1)},numOpenGroups:0,popModX(){o.pop()},pushModX(g){o.push(g)},replaceCurrentModX(g){o[o.length-1]=g},singleline:r.rules.singleline};let c=[],f;for(zs.lastIndex=0;f=zs.exec(e);){const g=s3(s,e,f[0],zs.lastIndex);g.tokens?c.push(...g.tokens):g.token&&c.push(g.token),g.lastIndex!==void 0&&(zs.lastIndex=g.lastIndex)}const d=[];let h=0;c.filter(g=>g.type==="GroupOpen").forEach(g=>{g.kind==="capturing"?g.number=++h:g.raw==="("&&d.push(g)}),h||d.forEach((g,b)=>{g.kind="capturing",g.number=b+1});const y=h||d.length;return{tokens:c.map(g=>g.type==="EscapedNumber"?T3(g,y):g).flat(),flags:a}}function s3(e,n,r,a){const[o,s]=r;if(r==="["||r==="[^"){const c=u3(n,r,a);return{tokens:c.tokens,lastIndex:c.lastIndex}}if(o==="\\"){if("AbBGyYzZ".includes(s))return{token:Z0(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:b3(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:ux(r)}}if(s==="K")return{token:cx("keep",r)};if(s==="N"||s==="R")return{token:Oi("newline",r,{negate:s==="N"})};if(s==="O")return{token:Oi("any",r)};if(s==="X")return{token:Oi("text_segment",r)};const c=sx(r,{inCharClass:!1});return Array.isArray(c)?{tokens:c}:{token:c}}if(o==="("){if(s==="*")return{token:S3(r)};if(r==="(?{")throw new Error(`Unsupported callout "${r}"`);if(r.startsWith("(?#")){if(n[a]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:a+1}}if(/^\(\?[-imx]+[:)]$/.test(r))return{token:E3(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:ka("group",r)};if(r==="(?>")return{token:ka("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:ka(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:ka("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:ka("absence_repeater",r)}}throw r==="(?("?new Error(`Unsupported conditional "${r}"`):new Error(`Invalid or unsupported group option "${r}"`)}if(r===")"){if(e.popModX(),e.numOpenGroups--,e.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:g3(r)}}if(e.getCurrentModX()){if(r==="#"){const c=n.indexOf(`
|
|
81
|
+
`,a);return{lastIndex:c===-1?n.length:c}}if(/^\s$/.test(r)){const c=/\s+/y;return c.lastIndex=a,{lastIndex:c.exec(n)?c.lastIndex:a}}}if(r===".")return{token:Oi("dot",r)};if(r==="^"||r==="$"){const c=e.singleline?{"^":It`\A`,$:It`\Z`}[r]:r;return{token:Z0(c,r)}}return r==="|"?{token:f3(r)}:dp.test(r)?{tokens:R3(r)}:{token:Er(Ma(r),r)}}function u3(e,n,r){const a=[K0(n[1]==="^",n)];let o=1,s;for(Od.lastIndex=r;s=Od.exec(e);){const c=s[0];if(c[0]==="["&&c[1]!==":")o++,a.push(K0(c[1]==="^",c));else if(c==="]"){if(a.at(-1).type==="CharacterClassOpen")a.push(Er(93,c));else if(o--,a.push(d3(c)),!o)break}else{const f=c3(c);Array.isArray(f)?a.push(...f):a.push(f)}}return{tokens:a,lastIndex:Od.lastIndex||e.length}}function c3(e){if(e[0]==="\\")return sx(e,{inCharClass:!0});if(e[0]==="["){const n=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!n||!fp.has(n.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return Oi("posix",e,{value:n.groups.name,negate:!!n.groups.negate})}return e==="-"?h3(e):e==="&&"?p3(e):Er(Ma(e),e)}function sx(e,{inCharClass:n}){const r=e[1];if(r==="c"||r==="C")return x3(e);if("dDhHsSwW".includes(r))return w3(e);if(e.startsWith(It`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);if(/^\\[pP]\{/.test(e)){if(e.length===3)throw new Error(`Incomplete or invalid Unicode property "${e}"`);return k3(e)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(e))try{const a=e.split(/\\x/).slice(1).map(c=>parseInt(c,16)),o=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(a)),s=new TextEncoder;return[...o].map(c=>{const f=[...s.encode(c)].map(d=>`\\x${d.toString(16)}`).join("");return Er(Ma(c),f)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return Er(C3(e),e);if(J0.has(r))return Er(J0.get(r),e);if(/\d/.test(r))return m3(n,e);if(e==="\\")throw new Error(It`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return Er(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function f3(e){return{type:"Alternator",raw:e}}function Z0(e,n){return{type:"Assertion",kind:e,raw:n}}function ux(e){return{type:"Backreference",raw:e}}function Er(e,n){return{type:"Character",value:e,raw:n}}function d3(e){return{type:"CharacterClassClose",raw:e}}function h3(e){return{type:"CharacterClassHyphen",raw:e}}function p3(e){return{type:"CharacterClassIntersector",raw:e}}function K0(e,n){return{type:"CharacterClassOpen",negate:e,raw:n}}function Oi(e,n,r={}){return{type:"CharacterSet",kind:e,...r,raw:n}}function cx(e,n,r={}){return e==="keep"?{type:"Directive",kind:e,raw:n}:{type:"Directive",kind:e,flags:za(r.flags),raw:n}}function m3(e,n){return{type:"EscapedNumber",inCharClass:e,raw:n}}function g3(e){return{type:"GroupClose",raw:e}}function ka(e,n,r={}){return{type:"GroupOpen",kind:e,...r,raw:n}}function y3(e,n,r,a){return{type:"NamedCallout",kind:e,tag:n,arguments:r,raw:a}}function _3(e,n,r,a){return{type:"Quantifier",kind:e,min:n,max:r,raw:a}}function b3(e){return{type:"Subroutine",raw:e}}const v3=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),J0=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function x3(e){const n=e[1]==="c"?e[2]:e[3];if(!n||!/[A-Za-z]/.test(n))throw new Error(`Unsupported control character "${e}"`);return Er(Ma(n.toUpperCase())-64,e)}function E3(e,n){let{on:r,off:a}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;a??="";const o=(n.getCurrentModX()||r.includes("x"))&&!a.includes("x"),s=eb(r),c=eb(a),f={};if(s&&(f.enable=s),c&&(f.disable=c),e.endsWith(")"))return n.replaceCurrentModX(o),cx("flags",e,{flags:f});if(e.endsWith(":"))return n.pushModX(o),n.numOpenGroups++,ka("group",e,{...(s||c)&&{flags:f}});throw new Error(`Unexpected flag modifier "${e}"`)}function S3(e){const n=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);if(!n)throw new Error(`Incomplete or invalid named callout "${e}"`);const{name:r,tag:a,args:o}=n.groups;if(!r)throw new Error(`Invalid named callout "${e}"`);if(a==="")throw new Error(`Named callout tag with empty value not allowed "${e}"`);const s=o?o.split(",").filter(y=>y!=="").map(y=>/^[+-]?\d+$/.test(y)?+y:y):[],[c,f,d]=s,h=v3.has(r)?r.toLowerCase():"custom";switch(h){case"fail":case"mismatch":case"skip":if(s.length>0)throw new Error(`Named callout arguments not allowed "${s}"`);break;case"error":if(s.length>1)throw new Error(`Named callout allows only one argument "${s}"`);if(typeof c=="string")throw new Error(`Named callout argument must be a number "${c}"`);break;case"max":if(!s.length||s.length>2)throw new Error(`Named callout must have one or two arguments "${s}"`);if(typeof c=="string"&&!/^[A-Za-z_]\w*$/.test(c))throw new Error(`Named callout argument one must be a tag or number "${c}"`);if(s.length===2&&(typeof f=="number"||!/^[<>X]$/.test(f)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${f}"`);break;case"count":case"total_count":if(s.length>1)throw new Error(`Named callout allows only one argument "${s}"`);if(s.length===1&&(typeof c=="number"||!/^[<>X]$/.test(c)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${c}"`);break;case"cmp":if(s.length!==3)throw new Error(`Named callout must have three arguments "${s}"`);if(typeof c=="string"&&!/^[A-Za-z_]\w*$/.test(c))throw new Error(`Named callout argument one must be a tag or number "${c}"`);if(typeof f=="number"||!/^(?:[<>!=]=|[<>])$/.test(f))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${f}"`);if(typeof d=="string"&&!/^[A-Za-z_]\w*$/.test(d))throw new Error(`Named callout argument three must be a tag or number "${d}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${h}"`)}return y3(h,a??null,o?.split(",")??null,e)}function W0(e){let n=null,r,a;if(e[0]==="{"){const{minStr:o,maxStr:s}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,c=1e5;if(+o>c||s&&+s>c)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+o,a=s===void 0?+o:s===""?1/0:+s,r>a&&(n="possessive",[r,a]=[a,r]),e.endsWith("?")){if(n==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');n="lazy"}else n||(n="greedy")}else r=e[0]==="+"?1:0,a=e[0]==="?"?1:1/0,n=e[1]==="+"?"possessive":e[1]==="?"?"lazy":"greedy";return _3(n,r,a,e)}function w3(e){const n=e[1].toLowerCase();return Oi({d:"digit",h:"hex",s:"space",w:"word"}[n],e,{negate:e[1]!==n})}function k3(e){const{p:n,neg:r,value:a}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return Oi("property",e,{value:a,negate:n==="P"&&!r||n==="p"&&!!r})}function eb(e){const n={};return e.includes("i")&&(n.ignoreCase=!0),e.includes("m")&&(n.dotAll=!0),e.includes("x")&&(n.extended=!0),Object.keys(n).length?n:null}function A3(e){const n={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let r=0;r<e.length;r++){const a=e[r];if(!"imxDPSWy".includes(a))throw new Error(`Invalid flag "${a}"`);if(a==="y"){if(!/^y{[gw]}/.test(e.slice(r)))throw new Error('Invalid or unspecified flag "y" mode');n.textSegmentMode=e[r+2]==="g"?"grapheme":"word",r+=3;continue}n[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[a]]=!0}return n}function C3(e){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(e))throw new Error(`Incomplete or invalid escape "${e}"`);const n=e[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(e).groups.hex:e.slice(2);return parseInt(n,16)}function T3(e,n){const{raw:r,inCharClass:a}=e,o=r.slice(1);if(!a&&(o!=="0"&&o.length===1||o[0]!=="0"&&+o<=n))return[ux(r)];const s=[],c=o.match(/^[0-7]+|\d/g);for(let f=0;f<c.length;f++){const d=c[f];let h;if(f===0&&d!=="8"&&d!=="9"){if(h=parseInt(d,8),h>127)throw new Error(It`Octal encoded byte above 177 unsupported "${r}"`)}else h=Ma(d);s.push(Er(h,(f===0?"\\":"")+d))}return s}function R3(e){const n=[],r=new RegExp(dp,"gy");let a;for(;a=r.exec(e);){const o=a[0];if(o[0]==="{"){const s=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(o);if(s){const{min:c,max:f}=s.groups;if(+c>+f&&o.endsWith("?")){r.lastIndex--,n.push(W0(o.slice(0,-1)));continue}}}n.push(W0(o))}return n}function fx(e,n){if(!Array.isArray(e.body))throw new Error("Expected node with body array");if(e.body.length!==1)return!1;const r=e.body[0];return!n||Object.keys(n).every(a=>n[a]===r[a])}function O3(e){return L3.has(e.type)}const L3=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function dx(e,n={}){const r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...n,rules:{captureGroup:!1,singleline:!1,...n.rules}},a=o3(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),o=(b,_)=>{const x=a.tokens[s.nextIndex];switch(s.parent=b,s.nextIndex++,x.type){case"Alternator":return Di();case"Assertion":return D3(x);case"Backreference":return N3(x,s);case"Character":return Tu(x.value,{useLastValid:!!_.isCheckingRangeEnd});case"CharacterClassHyphen":return M3(x,s,_);case"CharacterClassOpen":return z3(x,s,_);case"CharacterSet":return I3(x,s);case"Directive":return H3(x.kind,{flags:x.flags});case"GroupOpen":return j3(x,s,_);case"NamedCallout":return q3(x.kind,x.tag,x.arguments);case"Quantifier":return B3(x,s);case"Subroutine":return U3(x,s);default:throw new Error(`Unexpected token type "${x.type}"`)}},s={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:r.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:r.skipBackrefValidation,skipLookbehindValidation:r.skipLookbehindValidation,skipPropertyNameValidation:r.skipPropertyNameValidation,subroutines:[],tokens:a.tokens,unicodePropertyMap:r.unicodePropertyMap,walk:o},c=F3(G3(a.flags));let f=c.body[0];for(;s.nextIndex<a.tokens.length;){const b=o(f,{});b.type==="Alternative"?(c.body.push(b),f=b):f.body.push(b)}const{capturingGroups:d,hasNumberedRef:h,namedGroupsByName:y,subroutines:g}=s;if(h&&y.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:b}of g)if(typeof b=="number"){if(b>d.length)throw new Error("Subroutine uses a group number that's not defined");b&&(d[b-1].isSubroutined=!0)}else if(y.has(b)){if(y.get(b).length>1)throw new Error(It`Subroutine uses a duplicate group name "\g<${b}>"`);y.get(b)[0].isSubroutined=!0}else throw new Error(It`Subroutine uses a group name that's not defined "\g<${b}>"`);return c}function D3({kind:e}){return Sh(za({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[e],`Unexpected assertion kind "${e}"`),{negate:e===It`\B`||e===It`\Y`})}function N3({raw:e},n){const r=/^\\k[<']/.test(e),a=r?e.slice(3,-1):e.slice(1),o=(s,c=!1)=>{const f=n.capturingGroups.length;let d=!1;if(s>f)if(n.skipBackrefValidation)d=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return n.hasNumberedRef=!0,wh(c?f+1-s:s,{orphan:d})};if(r){const s=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(a);if(s)return o(+s.groups.num,!!s.groups.sign);if(/[-+]/.test(a))throw new Error(`Invalid backref name "${e}"`);if(!n.namedGroupsByName.has(a))throw new Error(`Group name not defined to the left "${e}"`);return wh(a)}return o(+a)}function M3(e,n,r){const{tokens:a,walk:o}=n,s=n.parent,c=s.body.at(-1),f=a[n.nextIndex];if(!r.isCheckingRangeEnd&&c&&c.type!=="CharacterClass"&&c.type!=="CharacterClassRange"&&f&&f.type!=="CharacterClassOpen"&&f.type!=="CharacterClassClose"&&f.type!=="CharacterClassIntersector"){const d=o(s,{...r,isCheckingRangeEnd:!0});if(c.type==="Character"&&d.type==="Character")return s.body.pop(),P3(c,d);throw new Error("Invalid character class range")}return Tu(Ma("-"))}function z3({negate:e},n,r){const{tokens:a,walk:o}=n,s=a[n.nextIndex],c=[Gs()];let f=rb(s);for(;f.type!=="CharacterClassClose";){if(f.type==="CharacterClassIntersector")c.push(Gs()),n.nextIndex++;else{const h=c.at(-1);h.body.push(o(h,r))}f=rb(a[n.nextIndex],s)}const d=Gs({negate:e});return c.length===1?d.body=c[0].body:(d.kind="intersection",d.body=c.map(h=>h.body.length===1?h.body[0]:h)),n.nextIndex++,d}function I3({kind:e,negate:n,value:r},a){const{normalizeUnknownPropertyNames:o,skipPropertyNameValidation:s,unicodePropertyMap:c}=a;if(e==="property"){const f=Ru(r);if(fp.has(f)&&!c?.has(f))e="posix",r=f;else return Aa(r,{negate:n,normalizeUnknownPropertyNames:o,skipPropertyNameValidation:s,unicodePropertyMap:c})}return e==="posix"?$3(r,{negate:n}):kh(e,{negate:n})}function j3(e,n,r){const{tokens:a,capturingGroups:o,namedGroupsByName:s,skipLookbehindValidation:c,walk:f}=n,d=Y3(e),h=d.type==="AbsenceFunction",y=nb(d),g=y&&d.negate;if(d.type==="CapturingGroup"&&(o.push(d),d.name&&l3(s,d.name,[]).push(d)),h&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let b=ib(a[n.nextIndex]);for(;b.type!=="GroupClose";){if(b.type==="Alternator")d.body.push(Di()),n.nextIndex++;else{const _=d.body.at(-1),x=f(_,{...r,isInAbsenceFunction:r.isInAbsenceFunction||h,isInLookbehind:r.isInLookbehind||y,isInNegLookbehind:r.isInNegLookbehind||g});if(_.body.push(x),(y||r.isInLookbehind)&&!c){const C="Lookbehind includes a pattern not allowed by Oniguruma";if(g||r.isInNegLookbehind){if(tb(x)||x.type==="CapturingGroup")throw new Error(C)}else if(tb(x)||nb(x)&&x.negate)throw new Error(C)}}b=ib(a[n.nextIndex])}return n.nextIndex++,d}function B3({kind:e,min:n,max:r},a){const o=a.parent,s=o.body.at(-1);if(!s||!O3(s))throw new Error("Quantifier requires a repeatable token");const c=px(e,n,r,s);return o.body.pop(),c}function U3({raw:e},n){const{capturingGroups:r,subroutines:a}=n;let o=e.slice(3,-1);const s=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(o);if(s){const f=+s.groups.num,d=r.length;if(n.hasNumberedRef=!0,o={"":f,"+":d+f,"-":d+1-f}[s.groups.sign],o<1)throw new Error("Invalid subroutine number")}else o==="0"&&(o=0);const c=mx(o);return a.push(c),c}function V3(e,n){return{type:"AbsenceFunction",kind:e,body:io(n?.body)}}function Di(e){return{type:"Alternative",body:gx(e?.body)}}function Sh(e,n){const r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!n?.negate),r}function wh(e,n){const r=!!n?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function hx(e,n){const r={name:void 0,isSubroutined:!1,...n};if(r.name!==void 0&&!X3(r.name))throw new Error(`Group name "${r.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:e,...r.name&&{name:r.name},...r.isSubroutined&&{isSubroutined:r.isSubroutined},body:io(n?.body)}}function Tu(e,n){const r={useLastValid:!1,...n};if(e>1114111){const a=e.toString(16);if(r.useLastValid)e=1114111;else throw e>1310719?new Error(`Invalid code point out of range "\\x{${a}}"`):new Error(`Invalid code point out of range in JS "\\x{${a}}"`)}return{type:"Character",value:e}}function Gs(e){const n={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:n.kind,negate:n.negate,body:gx(e?.body)}}function P3(e,n){if(n.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:n}}function kh(e,n){const r=!!n?.negate,a={type:"CharacterSet",kind:e};return(e==="digit"||e==="hex"||e==="newline"||e==="space"||e==="word")&&(a.negate=r),(e==="text_segment"||e==="newline"&&!r)&&(a.variableLength=!0),a}function H3(e,n={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:za(n.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function G3(e){return{type:"Flags",...e}}function Vn(e){const n=e?.atomic,r=e?.flags;if(n&&r)throw new Error("Atomic group cannot have flags");return{type:"Group",...n&&{atomic:n},...r&&{flags:r},body:io(e?.body)}}function Ti(e){const n={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:n.behind?"lookbehind":"lookahead",negate:n.negate,body:io(e?.body)}}function q3(e,n,r){return{type:"NamedCallout",kind:e,tag:n,arguments:r}}function $3(e,n){const r=!!n?.negate;if(!fp.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function px(e,n,r,a){if(n>r)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:e,min:n,max:r,body:a}}function F3(e,n){return{type:"Regex",body:io(n?.body),flags:e}}function mx(e){return{type:"Subroutine",ref:e}}function Aa(e,n){const r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...n};let a=r.unicodePropertyMap?.get(Ru(e));if(!a){if(r.normalizeUnknownPropertyNames)a=Q3(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(It`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:a??e,negate:r.negate}}function Y3({flags:e,kind:n,name:r,negate:a,number:o}){switch(n){case"absence_repeater":return V3("repeater");case"atomic":return Vn({atomic:!0});case"capturing":return hx(o,{name:r});case"group":return Vn({flags:e});case"lookahead":case"lookbehind":return Ti({behind:n==="lookbehind",negate:a});default:throw new Error(`Unexpected group kind "${n}"`)}}function io(e){if(e===void 0)e=[Di()];else if(!Array.isArray(e)||!e.length||!e.every(n=>n.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return e}function gx(e){if(e===void 0)e=[];else if(!Array.isArray(e)||!e.every(n=>!!n.type))throw new Error("Invalid body; expected array of nodes");return e}function tb(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function nb(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function X3(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function Q3(e){return e.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}function Ru(e){return e.replace(/[- _]+/g,"").toLowerCase()}function rb(e,n){return za(e,`${n?.type==="Character"&&n.value===93?"Empty":"Unclosed"} character class`)}function ib(e){return za(e,"Unclosed group")}function Hl(e,n,r=null){function a(s,c){for(let f=0;f<s.length;f++){const d=o(s[f],c,f,s);f=Math.max(-1,f+d)}}function o(s,c=null,f=null,d=null){let h=0,y=!1;const g={node:s,parent:c,key:f,container:d,root:e,remove(){Is(d).splice(Math.max(0,Ea(f)+h),1),h--,y=!0},removeAllNextSiblings(){return Is(d).splice(Ea(f)+1)},removeAllPrevSiblings(){const w=Ea(f)+h;return h-=w,Is(d).splice(0,Math.max(0,w))},replaceWith(w,T={}){const N=!!T.traverse;d?d[Math.max(0,Ea(f)+h)]=w:za(c,"Can't replace root node")[f]=w,N&&o(w,c,f,d),y=!0},replaceWithMultiple(w,T={}){const N=!!T.traverse;if(Is(d).splice(Math.max(0,Ea(f)+h),1,...w),h+=w.length-1,N){let Z=0;for(let Q=0;Q<w.length;Q++)Z+=o(w[Q],c,Ea(f)+Q+Z,d)}y=!0},skip(){y=!0}},{type:b}=s,_=n["*"],x=n[b],C=typeof _=="function"?_:_?.enter,R=typeof x=="function"?x:x?.enter;if(C?.(g,r),R?.(g,r),!y)switch(b){case"AbsenceFunction":case"CapturingGroup":case"Group":a(s.body,s);break;case"Alternative":case"CharacterClass":a(s.body,s);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":o(s.min,s,"min"),o(s.max,s,"max");break;case"LookaroundAssertion":a(s.body,s);break;case"Quantifier":o(s.body,s,"body");break;case"Regex":a(s.body,s),o(s.flags,s,"flags");break;default:throw new Error(`Unexpected node type "${b}"`)}return x?.exit?.(g,r),_?.exit?.(g,r),h}return o(e),e}function Is(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Ea(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const Z3=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function K3(e,n){for(let r=0;r<e.length;r++)e[r]>=n&&e[r]++}function J3(e,n,r,a){return e.slice(0,n)+a+e.slice(n+r.length)}const Mn=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function hp(e,n,r,a){const o=new RegExp(String.raw`${n}|(?<$skip>\[\^?|\\?.)`,"gsu"),s=[!1];let c=0,f="";for(const d of e.matchAll(o)){const{0:h,groups:{$skip:y}}=d;if(!y&&(!a||a===Mn.DEFAULT==!c)){r instanceof Function?f+=r(d,{context:c?Mn.CHAR_CLASS:Mn.DEFAULT,negated:s[s.length-1]}):f+=r;continue}h[0]==="["?(c++,s.push(h[1]==="^")):h==="]"&&c&&(c--,s.pop()),f+=h}return f}function yx(e,n,r,a){hp(e,n,r,a)}function W3(e,n,r=0,a){if(!new RegExp(n,"su").test(e))return null;const o=new RegExp(`${n}|(?<$skip>\\\\?.)`,"gsu");o.lastIndex=r;let s=0,c;for(;c=o.exec(e);){const{0:f,groups:{$skip:d}}=c;if(!d&&(!a||a===Mn.DEFAULT==!s))return c;f==="["?s++:f==="]"&&s&&s--,o.lastIndex==c.index&&o.lastIndex++}return null}function js(e,n,r){return!!W3(e,n,0,r)}function e4(e,n){const r=/\\?./gsu;r.lastIndex=n;let a=e.length,o=0,s=1,c;for(;c=r.exec(e);){const[f]=c;if(f==="[")o++;else if(o)f==="]"&&o--;else if(f==="(")s++;else if(f===")"&&(s--,!s)){a=c.index;break}}return e.slice(n,a)}const ab=new RegExp(String.raw`(?<noncapturingStart>${Z3})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function t4(e,n){const r=n?.hiddenCaptures??[];let a=n?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:r};const o="(?>",s="(?:(?=(",c=[0],f=[];let d=0,h=0,y=NaN,g;do{g=!1;let b=0,_=0,x=!1,C;for(ab.lastIndex=Number.isNaN(y)?0:y+s.length;C=ab.exec(e);){const{0:R,index:w,groups:{capturingStart:T,noncapturingStart:N}}=C;if(R==="[")b++;else if(b)R==="]"&&b--;else if(R===o&&!x)y=w,x=!0;else if(x&&N)_++;else if(T)x?_++:(d++,c.push(d+h));else if(R===")"&&x){if(!_){h++;const Z=d+h;if(e=`${e.slice(0,y)}${s}${e.slice(y+o.length,w)}))<$$${Z}>)${e.slice(w+1)}`,g=!0,f.push(Z),K3(r,Z),a.size){const Q=new Map;a.forEach((D,P)=>{Q.set(P>=Z?P+1:P,D.map(q=>q>=Z?q+1:q))}),a=Q}break}_--}}}while(g);return r.push(...f),e=hp(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:b,groups:{backrefNum:_,wrappedBackrefNum:x}})=>{if(_){const C=+_;if(C>c.length-1)throw new Error(`Backref "${b}" greater than number of captures`);return`\\${c[C]}`}return`\\${x}`},Mn.DEFAULT),{pattern:e,captureTransfers:a,hiddenCaptures:r}}const _x=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Ld=new RegExp(String.raw`
|
|
82
|
+
\\(?: \d+
|
|
83
|
+
| c[A-Za-z]
|
|
84
|
+
| [gk]<[^>]+>
|
|
85
|
+
| [pPu]\{[^\}]+\}
|
|
86
|
+
| u[A-Fa-f\d]{4}
|
|
87
|
+
| x[A-Fa-f\d]{2}
|
|
88
|
+
)
|
|
89
|
+
| \((?: \? (?: [:=!>]
|
|
90
|
+
| <(?:[=!]|[^>]+>)
|
|
91
|
+
| [A-Za-z\-]+:
|
|
92
|
+
| \(DEFINE\)
|
|
93
|
+
))?
|
|
94
|
+
| (?<qBase>${_x})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
95
|
+
| \\?.
|
|
96
|
+
`.replace(/\s+/g,""),"gsu");function n4(e){if(!new RegExp(`${_x}\\+`).test(e))return{pattern:e};const n=[];let r=null,a=null,o="",s=0,c;for(Ld.lastIndex=0;c=Ld.exec(e);){const{0:f,index:d,groups:{qBase:h,qMod:y,invalidQ:g}}=c;if(f==="[")s||(a=d),s++;else if(f==="]")s?s--:a=null;else if(!s)if(y==="+"&&o&&!o.startsWith("(")){if(g)throw new Error(`Invalid quantifier "${f}"`);let b=-1;if(/^\{\d+\}$/.test(h))e=J3(e,d+h.length,y,"");else{if(o===")"||o==="]"){const _=o===")"?r:a;if(_===null)throw new Error(`Invalid unmatched "${o}"`);e=`${e.slice(0,_)}(?>${e.slice(_,d)}${h})${e.slice(d+f.length)}`}else e=`${e.slice(0,d-o.length)}(?>${o}${h})${e.slice(d+f.length)}`;b+=4}Ld.lastIndex+=b}else f[0]==="("?n.push(d):f===")"&&(r=n.length?n.pop():null);o=f}return{pattern:e}}const Nn=String.raw,r4=Nn`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,Ah=Nn`\(\?R=(?<rDepth>[^\)]+)\)|${r4}`,Ou=Nn`\(\?<(?![=!])(?<captureName>[^>]+)>`,bx=Nn`${Ou}|(?<unnamed>\()(?!\?)`,ki=new RegExp(Nn`${Ou}|${Ah}|\(\?|\\?.`,"gsu"),Dd="Cannot use multiple overlapping recursions";function i4(e,n){const{hiddenCaptures:r,mode:a}={hiddenCaptures:[],mode:"plugin",...n};let o=n?.captureTransfers??new Map;if(!new RegExp(Ah,"su").test(e))return{pattern:e,captureTransfers:o,hiddenCaptures:r};if(a==="plugin"&&js(e,Nn`\(\?\(DEFINE\)`,Mn.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const s=[],c=js(e,Nn`\\[1-9]`,Mn.DEFAULT),f=new Map,d=[];let h=!1,y=0,g=0,b;for(ki.lastIndex=0;b=ki.exec(e);){const{0:_,groups:{captureName:x,rDepth:C,gRNameOrNum:R,gRDepth:w}}=b;if(_==="[")y++;else if(y)_==="]"&&y--;else if(C){if(lb(C),h)throw new Error(Dd);if(c)throw new Error(`${a==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const T=e.slice(0,b.index),N=e.slice(ki.lastIndex);if(js(N,Ah,Mn.DEFAULT))throw new Error(Dd);const Z=+C-1;e=ob(T,N,Z,!1,r,s,g),o=ub(o,T,Z,s.length,0,g);break}else if(R){lb(w);let T=!1;for(const W of d)if(W.name===R||W.num===+R){if(T=!0,W.hasRecursedWithin)throw new Error(Dd);break}if(!T)throw new Error(Nn`Recursive \g cannot be used outside the referenced group "${a==="external"?R:Nn`\g<${R}&R=${w}>`}"`);const N=f.get(R),Z=e4(e,N);if(c&&js(Z,Nn`${Ou}|\((?!\?)`,Mn.DEFAULT))throw new Error(`${a==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const Q=e.slice(N,b.index),D=Z.slice(Q.length+_.length),P=s.length,q=+w-1,F=ob(Q,D,q,!0,r,s,g);o=ub(o,Q,q,s.length-P,P,g);const j=e.slice(0,N),V=e.slice(N+Z.length);e=`${j}${F}${V}`,ki.lastIndex+=F.length-_.length-Q.length-D.length,d.forEach(W=>W.hasRecursedWithin=!0),h=!0}else if(x)g++,f.set(String(g),ki.lastIndex),f.set(x,ki.lastIndex),d.push({num:g,name:x});else if(_[0]==="("){const T=_==="(";T&&(g++,f.set(String(g),ki.lastIndex)),d.push(T?{num:g}:{})}else _===")"&&d.pop()}return r.push(...s),{pattern:e,captureTransfers:o,hiddenCaptures:r}}function lb(e){const n=`Max depth must be integer between 2 and 100; used ${e}`;if(!/^[1-9]\d*$/.test(e))throw new Error(n);if(e=+e,e<2||e>100)throw new Error(n)}function ob(e,n,r,a,o,s,c){const f=new Set;a&&yx(e+n,Ou,({groups:{captureName:h}})=>{f.add(h)},Mn.DEFAULT);const d=[r,a?f:null,o,s,c];return`${e}${sb(`(?:${e}`,"forward",...d)}(?:)${sb(`${n})`,"backward",...d)}${n}`}function sb(e,n,r,a,o,s,c){const d=y=>n==="forward"?y+2:r-y+2-1;let h="";for(let y=0;y<r;y++){const g=d(y);h+=hp(e,Nn`${bx}|\\k<(?<backref>[^>]+)>`,({0:b,groups:{captureName:_,unnamed:x,backref:C}})=>{if(C&&a&&!a.has(C))return b;const R=`_$${g}`;if(x||_){const w=c+s.length+1;return s.push(w),a4(o,w),x?b:`(?<${_}${R}>`}return Nn`\k<${C}${R}>`},Mn.DEFAULT)}return h}function a4(e,n){for(let r=0;r<e.length;r++)e[r]>=n&&e[r]++}function ub(e,n,r,a,o,s){if(e.size&&a){let c=0;yx(n,bx,()=>c++,Mn.DEFAULT);const f=s-c+o,d=new Map;return e.forEach((h,y)=>{const g=(a-c*r)/r,b=c*r,_=y>f+c?y+a:y,x=[];for(const C of h)if(C<=f)x.push(C);else if(C>f+c+g)x.push(C+a);else if(C<=f+c)for(let R=0;R<=r;R++)x.push(C+c*R);else for(let R=0;R<=r;R++)x.push(C+b+g*R);d.set(_,x)}),d}return e}var Ot=String.fromCodePoint,Ae=String.raw,Hn={},Lu=globalThis.RegExp;Hn.flagGroups=(()=>{try{new Lu("(?i:)")}catch{return!1}return!0})();Hn.unicodeSets=(()=>{try{new Lu("[[]]","v")}catch{return!1}return!0})();Hn.bugFlagVLiteralHyphenIsRange=Hn.unicodeSets?(()=>{try{new Lu(Ae`[\d\-a]`,"v")}catch{return!0}return!1})():!1;Hn.bugNestedClassIgnoresNegation=Hn.unicodeSets&&new Lu("[[^a]]","v").test("a");function ou(e,{enable:n,disable:r}){return{dotAll:!r?.dotAll&&!!(n?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(n?.ignoreCase||e.ignoreCase)}}function Ql(e,n,r){return e.has(n)||e.set(n,r),e.get(n)}function Ch(e,n){return cb[e]>=cb[n]}function l4(e,n){if(e==null)throw new Error(n??"Value expected");return e}var cb={ES2025:2025,ES2024:2024,ES2018:2018},o4={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function vx(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!o4[e.target])throw new Error(`Unexpected target "${e.target}"`);const n={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...e,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...e.rules}};return n.target==="auto"&&(n.target=Hn.flagGroups?"ES2025":Hn.unicodeSets?"ES2024":"ES2018"),n}var s4="[ -\r ]",u4=new Set([Ot(304),Ot(305)]),_r=Ae`[\p{L}\p{M}\p{N}\p{Pc}]`;function xx(e){if(u4.has(e))return[e];const n=new Set,r=e.toLowerCase(),a=r.toUpperCase(),o=d4.get(r),s=c4.get(r),c=f4.get(r);return[...a].length===1&&n.add(a),c&&n.add(c),o&&n.add(o),n.add(r),s&&n.add(s),[...n]}var pp=new Map(`C Other
|
|
97
|
+
Cc Control cntrl
|
|
98
|
+
Cf Format
|
|
99
|
+
Cn Unassigned
|
|
100
|
+
Co Private_Use
|
|
101
|
+
Cs Surrogate
|
|
102
|
+
L Letter
|
|
103
|
+
LC Cased_Letter
|
|
104
|
+
Ll Lowercase_Letter
|
|
105
|
+
Lm Modifier_Letter
|
|
106
|
+
Lo Other_Letter
|
|
107
|
+
Lt Titlecase_Letter
|
|
108
|
+
Lu Uppercase_Letter
|
|
109
|
+
M Mark Combining_Mark
|
|
110
|
+
Mc Spacing_Mark
|
|
111
|
+
Me Enclosing_Mark
|
|
112
|
+
Mn Nonspacing_Mark
|
|
113
|
+
N Number
|
|
114
|
+
Nd Decimal_Number digit
|
|
115
|
+
Nl Letter_Number
|
|
116
|
+
No Other_Number
|
|
117
|
+
P Punctuation punct
|
|
118
|
+
Pc Connector_Punctuation
|
|
119
|
+
Pd Dash_Punctuation
|
|
120
|
+
Pe Close_Punctuation
|
|
121
|
+
Pf Final_Punctuation
|
|
122
|
+
Pi Initial_Punctuation
|
|
123
|
+
Po Other_Punctuation
|
|
124
|
+
Ps Open_Punctuation
|
|
125
|
+
S Symbol
|
|
126
|
+
Sc Currency_Symbol
|
|
127
|
+
Sk Modifier_Symbol
|
|
128
|
+
Sm Math_Symbol
|
|
129
|
+
So Other_Symbol
|
|
130
|
+
Z Separator
|
|
131
|
+
Zl Line_Separator
|
|
132
|
+
Zp Paragraph_Separator
|
|
133
|
+
Zs Space_Separator
|
|
134
|
+
ASCII
|
|
135
|
+
ASCII_Hex_Digit AHex
|
|
136
|
+
Alphabetic Alpha
|
|
137
|
+
Any
|
|
138
|
+
Assigned
|
|
139
|
+
Bidi_Control Bidi_C
|
|
140
|
+
Bidi_Mirrored Bidi_M
|
|
141
|
+
Case_Ignorable CI
|
|
142
|
+
Cased
|
|
143
|
+
Changes_When_Casefolded CWCF
|
|
144
|
+
Changes_When_Casemapped CWCM
|
|
145
|
+
Changes_When_Lowercased CWL
|
|
146
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
147
|
+
Changes_When_Titlecased CWT
|
|
148
|
+
Changes_When_Uppercased CWU
|
|
149
|
+
Dash
|
|
150
|
+
Default_Ignorable_Code_Point DI
|
|
151
|
+
Deprecated Dep
|
|
152
|
+
Diacritic Dia
|
|
153
|
+
Emoji
|
|
154
|
+
Emoji_Component EComp
|
|
155
|
+
Emoji_Modifier EMod
|
|
156
|
+
Emoji_Modifier_Base EBase
|
|
157
|
+
Emoji_Presentation EPres
|
|
158
|
+
Extended_Pictographic ExtPict
|
|
159
|
+
Extender Ext
|
|
160
|
+
Grapheme_Base Gr_Base
|
|
161
|
+
Grapheme_Extend Gr_Ext
|
|
162
|
+
Hex_Digit Hex
|
|
163
|
+
IDS_Binary_Operator IDSB
|
|
164
|
+
IDS_Trinary_Operator IDST
|
|
165
|
+
ID_Continue IDC
|
|
166
|
+
ID_Start IDS
|
|
167
|
+
Ideographic Ideo
|
|
168
|
+
Join_Control Join_C
|
|
169
|
+
Logical_Order_Exception LOE
|
|
170
|
+
Lowercase Lower
|
|
171
|
+
Math
|
|
172
|
+
Noncharacter_Code_Point NChar
|
|
173
|
+
Pattern_Syntax Pat_Syn
|
|
174
|
+
Pattern_White_Space Pat_WS
|
|
175
|
+
Quotation_Mark QMark
|
|
176
|
+
Radical
|
|
177
|
+
Regional_Indicator RI
|
|
178
|
+
Sentence_Terminal STerm
|
|
179
|
+
Soft_Dotted SD
|
|
180
|
+
Terminal_Punctuation Term
|
|
181
|
+
Unified_Ideograph UIdeo
|
|
182
|
+
Uppercase Upper
|
|
183
|
+
Variation_Selector VS
|
|
184
|
+
White_Space space
|
|
185
|
+
XID_Continue XIDC
|
|
186
|
+
XID_Start XIDS`.split(/\s/).map(e=>[Ru(e),e])),c4=new Map([["s",Ot(383)],[Ot(383),"s"]]),f4=new Map([[Ot(223),Ot(7838)],[Ot(107),Ot(8490)],[Ot(229),Ot(8491)],[Ot(969),Ot(8486)]]),d4=new Map([Jr(453),Jr(456),Jr(459),Jr(498),...Nd(8072,8079),...Nd(8088,8095),...Nd(8104,8111),Jr(8124),Jr(8140),Jr(8188)]),h4=new Map([["alnum",Ae`[\p{Alpha}\p{Nd}]`],["alpha",Ae`\p{Alpha}`],["ascii",Ae`\p{ASCII}`],["blank",Ae`[\p{Zs}\t]`],["cntrl",Ae`\p{Cc}`],["digit",Ae`\p{Nd}`],["graph",Ae`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",Ae`\p{Lower}`],["print",Ae`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",Ae`[\p{P}\p{S}]`],["space",Ae`\p{space}`],["upper",Ae`\p{Upper}`],["word",Ae`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",Ae`\p{AHex}`]]);function p4(e,n){const r=[];for(let a=e;a<=n;a++)r.push(a);return r}function Jr(e){const n=Ot(e);return[n.toLowerCase(),n]}function Nd(e,n){return p4(e,n).map(r=>Jr(r))}var Ex=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function m4(e,n){const r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...n};Sx(e);const a={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:Ch(r.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:e.flags.digitIsAscii,spaceIsAscii:e.flags.spaceIsAscii,wordIsAscii:e.flags.wordIsAscii};Hl(e,g4,a);const o={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},s={currentFlags:o,prevFlags:null,globalFlags:o,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:a.subroutineRefMap};Hl(e,y4,s);const c={groupsByName:s.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:s.reffedNodesByReferencer};return Hl(e,_4,c),e._originMap=s.groupOriginByCopy,e._strategy=a.strategy,e}var g4={AbsenceFunction({node:e,parent:n,replaceWith:r}){const{body:a,kind:o}=e;if(o==="repeater"){const s=Vn();s.body[0].body.push(Ti({negate:!0,body:a}),Aa("Any"));const c=Vn();c.body[0].body.push(px("greedy",0,1/0,s)),r(bt(c,n),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:n,key:r},{flagDirectivesByAlt:a}){const o=e.body.filter(s=>s.kind==="flags");for(let s=r+1;s<n.body.length;s++){const c=n.body[s];Ql(a,c,[]).push(...o)}},exit({node:e},{flagDirectivesByAlt:n}){if(n.get(e)?.length){const r=kx(n.get(e));if(r){const a=Vn({flags:r});a.body[0].body=e.body,e.body=[bt(a,e)]}}}},Assertion({node:e,parent:n,key:r,container:a,root:o,remove:s,replaceWith:c},f){const{kind:d,negate:h}=e,{asciiWordBoundaries:y,avoidSubclass:g,supportedGNodes:b,wordIsAscii:_}=f;if(d==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${h?"Y":"y"}"`);if(d==="line_end")c(bt(Ti({body:[Di({body:[Sh("string_end")]}),Di({body:[Tu(10)]})]}),n));else if(d==="line_start")c(bt(br(Ae`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),n));else if(d==="search_start")if(b.has(e))o.flags.sticky=!0,s();else{const x=a[r-1];if(x&&w4(x))c(bt(Ti({negate:!0}),n));else{if(g)throw new Error(Ae`Uses "\G" in a way that requires a subclass`);c(Wr(Sh("string_start"),n)),f.strategy="clip_search"}}else if(!(d==="string_end"||d==="string_start"))if(d==="string_end_newline")c(bt(br(Ae`(?=\n?\z)`),n));else if(d==="word_boundary"){if(!_&&!y){const x=`(?:(?<=${_r})(?!${_r})|(?<!${_r})(?=${_r}))`,C=`(?:(?<=${_r})(?=${_r})|(?<!${_r})(?!${_r}))`;c(bt(br(h?C:x),n))}}else throw new Error(`Unexpected assertion kind "${d}"`)},Backreference({node:e},{jsGroupNameMap:n}){let{ref:r}=e;typeof r=="string"&&!zd(r)&&(r=Md(r,n),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:n,subroutineRefMap:r}){let{name:a}=e;a&&!zd(a)&&(a=Md(a,n),e.name=a),r.set(e.number,e),a&&r.set(a,e)},CharacterClassRange({node:e,parent:n,replaceWith:r}){if(n.kind==="intersection"){const a=Gs({body:[e]});r(bt(a,n),{traverse:!0})}},CharacterSet({node:e,parent:n,replaceWith:r},{accuracy:a,minTargetEs2024:o,digitIsAscii:s,spaceIsAscii:c,wordIsAscii:f}){const{kind:d,negate:h,value:y}=e;if(s&&(d==="digit"||y==="digit")){r(Wr(kh("digit",{negate:h}),n));return}if(c&&(d==="space"||y==="space")){r(bt(Id(br(s4),h),n));return}if(f&&(d==="word"||y==="word")){r(Wr(kh("word",{negate:h}),n));return}if(d==="any")r(Wr(Aa("Any"),n));else if(d==="digit")r(Wr(Aa("Nd",{negate:h}),n));else if(d!=="dot")if(d==="text_segment"){if(a==="strict")throw new Error(Ae`Use of "\X" requires non-strict accuracy`);const g="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",b=Ae`\p{RI}{2}|${g}(?:\u200D${g})*`;r(bt(br(Ae`(?>\r\n|${o?Ae`\p{RGI_Emoji}`:b}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),n))}else if(d==="hex")r(Wr(Aa("AHex",{negate:h}),n));else if(d==="newline")r(bt(br(h?`[^
|
|
187
|
+
]`:`(?>\r
|
|
188
|
+
?|[
|
|
189
|
+
\v\f
\u2028\u2029])`),n));else if(d==="posix")if(!o&&(y==="graph"||y==="print")){if(a==="strict")throw new Error(`POSIX class "${y}" requires min target ES2024 or non-strict accuracy`);let g={graph:"!-~",print:" -~"}[y];h&&(g=`\0-${Ot(g.codePointAt(0)-1)}${Ot(g.codePointAt(2)+1)}-`),r(bt(br(`[${g}]`),n))}else r(bt(Id(br(h4.get(y)),h),n));else if(d==="property")pp.has(Ru(y))||(e.key="sc");else if(d==="space")r(Wr(Aa("space",{negate:h}),n));else if(d==="word")r(bt(Id(br(_r),h),n));else throw new Error(`Unexpected character set kind "${d}"`)},Directive({node:e,parent:n,root:r,remove:a,replaceWith:o,removeAllPrevSiblings:s,removeAllNextSiblings:c}){const{kind:f,flags:d}=e;if(f==="flags")if(!d.enable&&!d.disable)a();else{const h=Vn({flags:d});h.body[0].body=c(),o(bt(h,n),{traverse:!0})}else if(f==="keep"){const h=r.body[0],g=r.body.length===1&&fx(h,{type:"Group"})&&h.body[0].body.length===1?h.body[0]:r;if(n.parent!==g||g.body.length>1)throw new Error(Ae`Uses "\K" in a way that's unsupported`);const b=Ti({behind:!0});b.body[0].body=s(),o(bt(b,n))}else throw new Error(`Unexpected directive kind "${f}"`)},Flags({node:e,parent:n}){if(e.posixIsAscii)throw new Error('Unsupported flag "P"');if(e.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(r=>delete e[r]),Object.assign(e,{global:!1,hasIndices:!1,multiline:!1,sticky:e.sticky??!1}),n.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:e}){if(!e.flags)return;const{enable:n,disable:r}=e.flags;n?.extended&&delete n.extended,r?.extended&&delete r.extended,n?.dotAll&&r?.dotAll&&delete n.dotAll,n?.ignoreCase&&r?.ignoreCase&&delete n.ignoreCase,n&&!Object.keys(n).length&&delete e.flags.enable,r&&!Object.keys(r).length&&delete e.flags.disable,!e.flags.enable&&!e.flags.disable&&delete e.flags},LookaroundAssertion({node:e},n){const{kind:r}=e;r==="lookbehind"&&(n.passedLookbehind=!0)},NamedCallout({node:e,parent:n,replaceWith:r}){const{kind:a}=e;if(a==="fail")r(bt(Ti({negate:!0}),n));else throw new Error(`Unsupported named callout "(*${a.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const n=Vn();n.body[0].body.push(e.body),e.body=bt(n,e)}},Regex:{enter({node:e},{supportedGNodes:n}){const r=[];let a=!1,o=!1;for(const s of e.body)if(s.body.length===1&&s.body[0].kind==="search_start")s.body.pop();else{const c=Cx(s.body);c?(a=!0,Array.isArray(c)?r.push(...c):r.push(c)):o=!0}a&&!o&&r.forEach(s=>n.add(s))},exit(e,{accuracy:n,passedLookbehind:r,strategy:a}){if(n==="strict"&&r&&a)throw new Error(Ae`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:n}){let{ref:r}=e;typeof r=="string"&&!zd(r)&&(r=Md(r,n),e.ref=r)}},y4={Backreference({node:e},{multiplexCapturesToLeftByRef:n,reffedNodesByReferencer:r}){const{orphan:a,ref:o}=e;a||r.set(e,[...n.get(o).map(({node:s})=>s)])},CapturingGroup:{enter({node:e,parent:n,replaceWith:r,skip:a},{groupOriginByCopy:o,groupsByName:s,multiplexCapturesToLeftByRef:c,openRefs:f,reffedNodesByReferencer:d}){const h=o.get(e);if(h&&f.has(e.number)){const g=Wr(fb(e.number),n);d.set(g,f.get(e.number)),r(g);return}f.set(e.number,e),c.set(e.number,[]),e.name&&Ql(c,e.name,[]);const y=c.get(e.name??e.number);for(let g=0;g<y.length;g++){const b=y[g];if(h===b.node||h&&h===b.origin||e===b.origin){y.splice(g,1);break}}if(c.get(e.number).push({node:e,origin:h}),e.name&&c.get(e.name).push({node:e,origin:h}),e.name){const g=Ql(s,e.name,new Map);let b=!1;if(h)b=!0;else for(const _ of g.values())if(!_.hasDuplicateNameToRemove){b=!0;break}s.get(e.name).set(e,{node:e,hasDuplicateNameToRemove:b})}},exit({node:e},{openRefs:n}){n.delete(e.number)}},Group:{enter({node:e},n){n.prevFlags=n.currentFlags,e.flags&&(n.currentFlags=ou(n.currentFlags,e.flags))},exit(e,n){n.currentFlags=n.prevFlags}},Subroutine({node:e,parent:n,replaceWith:r},a){const{isRecursive:o,ref:s}=e;if(o){let y=n;for(;(y=y.parent)&&!(y.type==="CapturingGroup"&&(y.name===s||y.number===s)););a.reffedNodesByReferencer.set(e,y);return}const c=a.subroutineRefMap.get(s),f=s===0,d=f?fb(0):wx(c,a.groupOriginByCopy,null);let h=d;if(!f){const y=kx(x4(c,b=>b.type==="Group"&&!!b.flags)),g=y?ou(a.globalFlags,y):a.globalFlags;b4(g,a.currentFlags)||(h=Vn({flags:E4(g)}),h.body[0].body.push(d))}r(bt(h,n),{traverse:!f})}},_4={Backreference({node:e,parent:n,replaceWith:r},a){if(e.orphan){a.highestOrphanBackref=Math.max(a.highestOrphanBackref,e.ref);return}const s=a.reffedNodesByReferencer.get(e).filter(c=>v4(c,e));if(!s.length)r(bt(Ti({negate:!0}),n));else if(s.length>1){const c=Vn({atomic:!0,body:s.reverse().map(f=>Di({body:[wh(f.number)]}))});r(bt(c,n))}else e.ref=s[0].number},CapturingGroup({node:e},n){e.number=++n.numCapturesToLeft,e.name&&n.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove&&delete e.name},Regex:{exit({node:e},n){const r=Math.max(n.highestOrphanBackref-n.numCapturesToLeft,0);for(let a=0;a<r;a++){const o=hx();e.body.at(-1).body.push(o)}}},Subroutine({node:e},n){!e.isRecursive||e.ref===0||(e.ref=n.reffedNodesByReferencer.get(e).number)}};function Sx(e){Hl(e,{"*"({node:n,parent:r}){n.parent=r}})}function b4(e,n){return e.dotAll===n.dotAll&&e.ignoreCase===n.ignoreCase}function v4(e,n){let r=n;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;const a=Ax(r.parent);for(const o of a){if(o===r)break;if(o===e||Tx(o,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function wx(e,n,r,a){const o=Array.isArray(e)?[]:{};for(const[s,c]of Object.entries(e))s==="parent"?o.parent=Array.isArray(r)?a:r:c&&typeof c=="object"?o[s]=wx(c,n,o,r):(s==="type"&&c==="CapturingGroup"&&n.set(o,n.get(e)??e),o[s]=c);return o}function fb(e){const n=mx(e);return n.isRecursive=!0,n}function x4(e,n){const r=[];for(;e=e.parent;)(!n||n(e))&&r.push(e);return r}function Md(e,n){if(n.has(e))return n.get(e);const r=`$${n.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return n.set(e,r),r}function kx(e){const n=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:a})=>{n.forEach(o=>{a.enable?.[o]&&(delete r.disable[o],r.enable[o]=!0),a.disable?.[o]&&(r.disable[o]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function E4({dotAll:e,ignoreCase:n}){const r={};return(e||n)&&(r.enable={},e&&(r.enable.dotAll=!0),n&&(r.enable.ignoreCase=!0)),(!e||!n)&&(r.disable={},!e&&(r.disable.dotAll=!0),!n&&(r.disable.ignoreCase=!0)),r}function Ax(e){if(!e)throw new Error("Node expected");const{body:n}=e;return Array.isArray(n)?n:n?[n]:null}function Cx(e){const n=e.find(r=>r.kind==="search_start"||k4(r,{negate:!1})||!S4(r));if(!n)return null;if(n.kind==="search_start")return n;if(n.type==="LookaroundAssertion")return n.body[0].body[0];if(n.type==="CapturingGroup"||n.type==="Group"){const r=[];for(const a of n.body){const o=Cx(a.body);if(!o)return null;Array.isArray(o)?r.push(...o):r.push(o)}return r}return null}function Tx(e,n){const r=Ax(e)??[];for(const a of r)if(a===n||Tx(a,n))return!0;return!1}function S4({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function w4(e){const n=["Character","CharacterClass","CharacterSet"];return n.includes(e.type)||e.type==="Quantifier"&&e.min&&n.includes(e.body.type)}function k4(e,n){const r={negate:null,...n};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&fx(e.body[0],{type:"Assertion",kind:"search_start"})}function zd(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function br(e,n){const a=dx(e,{...n,unicodePropertyMap:pp}).body;return a.length>1||a[0].body.length>1?Vn({body:a}):a[0].body[0]}function Id(e,n){return e.negate=n,e}function Wr(e,n){return e.parent=n,e}function bt(e,n){return Sx(e),e.parent=n,e}function A4(e,n){const r=vx(n),a=Ch(r.target,"ES2024"),o=Ch(r.target,"ES2025"),s=r.rules.recursionLimit;if(!Number.isInteger(s)||s<2||s>20)throw new Error("Invalid recursionLimit; use 2-20");let c=null,f=null;if(!o){const _=[e.flags.ignoreCase];Hl(e,C4,{getCurrentModI:()=>_.at(-1),popModI(){_.pop()},pushModI(x){_.push(x)},setHasCasedChar(){_.at(-1)?c=!0:f=!0}})}const d={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||c)&&!f)};let h=e;const y={accuracy:r.accuracy,appliedGlobalFlags:d,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:h,originMap:e._originMap,recursionLimit:s,useAppliedIgnoreCase:!!(!o&&c&&f),useFlagMods:o,useFlagV:a,verbose:r.verbose};function g(_){return y.lastNode=h,h=_,l4(T4[_.type],`Unexpected node type "${_.type}"`)(_,y,g)}const b={pattern:e.body.map(g).join("|"),flags:g(e.flags),options:{...e.options}};return a||(delete b.options.force.v,b.options.disable.v=!0,b.options.unicodeSetsPlugin=null),b._captureTransfers=new Map,b._hiddenCaptures=[],y.captureMap.forEach((_,x)=>{_.hidden&&b._hiddenCaptures.push(x),_.transferTo&&Ql(b._captureTransfers,_.transferTo,[]).push(x)}),b}var C4={"*":{enter({node:e},n){if(hb(e)){const r=n.getCurrentModI();n.pushModI(e.flags?ou({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},n){hb(e)&&n.popModI()}},Backreference(e,n){n.setHasCasedChar()},Character({node:e},n){mp(Ot(e.value))&&n.setHasCasedChar()},CharacterClassRange({node:e,skip:n},r){n(),Rx(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},n){e.kind==="property"&&Ex.has(e.value)&&n.setHasCasedChar()}},T4={Alternative({body:e},n,r){return e.map(r).join("")},Assertion({kind:e,negate:n}){if(e==="string_end")return"$";if(e==="string_start")return"^";if(e==="word_boundary")return n?Ae`\B`:Ae`\b`;throw new Error(`Unexpected assertion kind "${e}"`)},Backreference({ref:e},n){if(typeof e!="number")throw new Error("Unexpected named backref in transformed AST");if(!n.useFlagMods&&n.accuracy==="strict"&&n.currentFlags.ignoreCase&&!n.captureMap.get(e).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+e},CapturingGroup(e,n,r){const{body:a,name:o,number:s}=e,c={ignoreCase:n.currentFlags.ignoreCase},f=n.originMap.get(e);return f&&(c.hidden=!0,s>f.number&&(c.transferTo=f.number)),n.captureMap.set(s,c),`(${o?`?<${o}>`:""}${a.map(r).join("|")})`},Character({value:e},n){const r=Ot(e),a=Sa(e,{escDigit:n.lastNode.type==="Backreference",inCharClass:n.inCharClass,useFlagV:n.useFlagV});if(a!==r)return a;if(n.useAppliedIgnoreCase&&n.currentFlags.ignoreCase&&mp(r)){const o=xx(r);return n.inCharClass?o.join(""):o.length>1?`[${o.join("")}]`:o[0]}return r},CharacterClass(e,n,r){const{kind:a,negate:o,parent:s}=e;let{body:c}=e;if(a==="intersection"&&!n.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");Hn.bugFlagVLiteralHyphenIsRange&&n.useFlagV&&c.some(pb)&&(c=[Tu(45),...c.filter(h=>!pb(h))]);const f=()=>`[${o?"^":""}${c.map(r).join(a==="intersection"?"&&":"")}]`;if(!n.inCharClass){if((!n.useFlagV||Hn.bugNestedClassIgnoresNegation)&&!o){const y=c.filter(g=>g.type==="CharacterClass"&&g.kind==="union"&&g.negate);if(y.length){const g=Vn(),b=g.body[0];return g.parent=s,b.parent=g,c=c.filter(_=>!y.includes(_)),e.body=c,c.length?(e.parent=b,b.body.push(e)):g.body.pop(),y.forEach(_=>{const x=Di({body:[_]});_.parent=x,x.parent=g,g.body.push(x)}),r(g)}}n.inCharClass=!0;const h=f();return n.inCharClass=!1,h}const d=c[0];if(a==="union"&&!o&&d&&((!n.useFlagV||!n.verbose)&&s.kind==="union"&&!(Hn.bugFlagVLiteralHyphenIsRange&&n.useFlagV)||!n.verbose&&s.kind==="intersection"&&c.length===1&&d.type!=="CharacterClassRange"))return c.map(r).join("");if(!n.useFlagV&&s.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return f()},CharacterClassRange(e,n){const r=e.min.value,a=e.max.value,o={escDigit:!1,inCharClass:!0,useFlagV:n.useFlagV},s=Sa(r,o),c=Sa(a,o),f=new Set;if(n.useAppliedIgnoreCase&&n.currentFlags.ignoreCase){const d=Rx(e);N4(d).forEach(y=>{f.add(Array.isArray(y)?`${Sa(y[0],o)}-${Sa(y[1],o)}`:Sa(y,o))})}return`${s}-${c}${[...f].join("")}`},CharacterSet({kind:e,negate:n,value:r,key:a},o){if(e==="dot")return o.currentFlags.dotAll?o.appliedGlobalFlags.dotAll||o.useFlagMods?".":"[^]":Ae`[^\n]`;if(e==="digit")return n?Ae`\D`:Ae`\d`;if(e==="property"){if(o.useAppliedIgnoreCase&&o.currentFlags.ignoreCase&&Ex.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${n?Ae`\P`:Ae`\p`}{${a?`${a}=`:""}${r}}`}if(e==="word")return n?Ae`\W`:Ae`\w`;throw new Error(`Unexpected character set kind "${e}"`)},Flags(e,n){return(n.appliedGlobalFlags.ignoreCase?"i":"")+(e.dotAll?"s":"")+(e.sticky?"y":"")},Group({atomic:e,body:n,flags:r,parent:a},o,s){const c=o.currentFlags;r&&(o.currentFlags=ou(c,r));const f=n.map(s).join("|"),d=!o.verbose&&n.length===1&&a.type!=="Quantifier"&&!e&&(!o.useFlagMods||!r)?f:`(?${M4(e,r,o.useFlagMods)}${f})`;return o.currentFlags=c,d},LookaroundAssertion({body:e,kind:n,negate:r},a,o){return`(?${`${n==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(o).join("|")})`},Quantifier(e,n,r){return r(e.body)+z4(e)},Subroutine({isRecursive:e,ref:n},r){if(!e)throw new Error("Unexpected non-recursive subroutine in transformed AST");const a=r.recursionLimit;return n===0?`(?R=${a})`:Ae`\g<${n}&R=${a}>`}},R4=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),O4=new Set(["-","\\","]","^","["]),L4=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),db=new Map([[9,Ae`\t`],[10,Ae`\n`],[11,Ae`\v`],[12,Ae`\f`],[13,Ae`\r`],[8232,Ae`\u2028`],[8233,Ae`\u2029`],[65279,Ae`\uFEFF`]]),D4=new RegExp("^\\p{Cased}$","u");function mp(e){return D4.test(e)}function Rx(e,n){const r=!!n?.firstOnly,a=e.min.value,o=e.max.value,s=[];if(a<65&&(o===65535||o>=131071)||a===65536&&o>=131071)return s;for(let c=a;c<=o;c++){const f=Ot(c);if(!mp(f))continue;const d=xx(f).filter(h=>{const y=h.codePointAt(0);return y<a||y>o});if(d.length&&(s.push(...d),r))break}return s}function Sa(e,{escDigit:n,inCharClass:r,useFlagV:a}){if(db.has(e))return db.get(e);if(e<32||e>126&&e<160||e>262143||n&&I4(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const o=r?a?L4:O4:R4,s=Ot(e);return(o.has(s)?"\\":"")+s}function N4(e){const n=e.map(o=>o.codePointAt(0)).sort((o,s)=>o-s),r=[];let a=null;for(let o=0;o<n.length;o++)n[o+1]===n[o]+1?a??=n[o]:a===null?r.push(n[o]):(r.push([a,n[o]]),a=null);return r}function M4(e,n,r){if(e)return">";let a="";if(n&&r){const{enable:o,disable:s}=n;a=(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")+(s?"-":"")+(s?.ignoreCase?"i":"")+(s?.dotAll?"s":"")}return`${a}:`}function z4({kind:e,max:n,min:r}){let a;return!r&&n===1?a="?":!r&&n===1/0?a="*":r===1&&n===1/0?a="+":r===n?a=`{${r}}`:a=`{${r},${n===1/0?"":n}}`,a+{greedy:"",lazy:"?",possessive:"+"}[e]}function hb({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function I4(e){return e>47&&e<58}function pb({type:e,value:n}){return e==="Character"&&n===45}var j4=class Th extends RegExp{#t=new Map;#e=null;#r;#n=null;#i=null;rawOptions={};get source(){return this.#r||"(?:)"}constructor(n,r,a){const o=!!a?.lazyCompile;if(n instanceof RegExp){if(a)throw new Error("Cannot provide options when copying a regexp");const s=n;super(s,r),this.#r=s.source,s instanceof Th&&(this.#t=s.#t,this.#n=s.#n,this.#i=s.#i,this.rawOptions=s.rawOptions)}else{const s={hiddenCaptures:[],strategy:null,transfers:[],...a};super(o?"":n,r),this.#r=n,this.#t=U4(s.hiddenCaptures,s.transfers),this.#i=s.strategy,this.rawOptions=a??{}}o||(this.#e=this)}exec(n){if(!this.#e){const{lazyCompile:o,...s}=this.rawOptions;this.#e=new Th(this.#r,this.flags,s)}const r=this.global||this.sticky,a=this.lastIndex;if(this.#i==="clip_search"&&r&&a){this.lastIndex=0;const o=this.#a(n.slice(a));return o&&(B4(o,a,n,this.hasIndices),this.lastIndex+=a),o}return this.#a(n)}#a(n){this.#e.lastIndex=this.lastIndex;const r=super.exec.call(this.#e,n);if(this.lastIndex=this.#e.lastIndex,!r||!this.#t.size)return r;const a=[...r];r.length=1;let o;this.hasIndices&&(o=[...r.indices],r.indices.length=1);const s=[0];for(let c=1;c<a.length;c++){const{hidden:f,transferTo:d}=this.#t.get(c)??{};if(f?s.push(null):(s.push(r.length),r.push(a[c]),this.hasIndices&&r.indices.push(o[c])),d&&a[c]!==void 0){const h=s[d];if(!h)throw new Error(`Invalid capture transfer to "${h}"`);if(r[h]=a[c],this.hasIndices&&(r.indices[h]=o[c]),r.groups){this.#n||(this.#n=V4(this.source));const y=this.#n.get(d);y&&(r.groups[y]=a[c],this.hasIndices&&(r.indices.groups[y]=o[c]))}}}return r}};function B4(e,n,r,a){if(e.index+=n,e.input=r,a){const o=e.indices;for(let c=0;c<o.length;c++){const f=o[c];f&&(o[c]=[f[0]+n,f[1]+n])}const s=o.groups;s&&Object.keys(s).forEach(c=>{const f=s[c];f&&(s[c]=[f[0]+n,f[1]+n])})}}function U4(e,n){const r=new Map;for(const a of e)r.set(a,{hidden:!0});for(const[a,o]of n)for(const s of o)Ql(r,s,{}).transferTo=a;return r}function V4(e){const n=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map;let a=0,o=0,s;for(;s=n.exec(e);){const{0:c,groups:{capture:f,name:d}}=s;c==="["?a++:a?c==="]"&&a--:f&&(o++,d&&r.set(o,d))}return r}function P4(e,n){const r=H4(e,n);return r.options?new j4(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function H4(e,n){const r=vx(n),a=dx(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:pp}),o=m4(a,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),s=A4(o,r),c=i4(s.pattern,{captureTransfers:s._captureTransfers,hiddenCaptures:s._hiddenCaptures,mode:"external"}),f=n4(c.pattern),d=t4(f.pattern,{captureTransfers:c.captureTransfers,hiddenCaptures:c.hiddenCaptures}),h={pattern:d.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${s.flags}${s.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const y=d.hiddenCaptures.sort((x,C)=>x-C),g=Array.from(d.captureTransfers),b=o._strategy,_=h.pattern.length>=r.lazyCompileLength;(y.length||g.length||b||_)&&(h.options={...y.length&&{hiddenCaptures:y},...g.length&&{transfers:g},...b&&{strategy:b},..._&&{lazyCompile:_}})}return h}function Ox(e,n){return P4(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...n})}function Lx(e={}){const n=Object.assign({target:"auto",cache:new Map},e);return n.regexConstructor||=r=>Ox(r,{target:n.target}),{createScanner(r){return new a3(r,n)},createString(r){return{content:r}}}}var G4=Wh({bundledLanguages:()=>bu,bundledLanguagesAlias:()=>tp,bundledLanguagesBase:()=>ep,bundledLanguagesInfo:()=>_u,bundledThemes:()=>rp,bundledThemesInfo:()=>np,codeToHast:()=>ex,codeToHtml:()=>W1,codeToTokens:()=>tx,codeToTokensBase:()=>nx,codeToTokensWithThemes:()=>rx,createHighlighter:()=>Cu,createJavaScriptRegexEngine:()=>Lx,createOnigurumaEngine:()=>b1,defaultJavaScriptRegexConstructor:()=>Ox,getLastGrammarState:()=>ax,getSingletonHighlighter:()=>ix,loadWasm:()=>ap});g1(G4,i3);let Dx=null;const q4={"c#":"csharp","c++":"cpp",golang:"go",md:"markdown",plaintext:"text",py:"python",rb:"ruby",rs:"rust",sh:"bash",text:"text",ts:"typescript",yml:"yaml"},eI=Cu({themes:["dark-plus","light-plus"],langs:["javascript","typescript","python","json","bash","html","css","jsx","tsx"],engine:Lx()}).then(e=>(Dx=e,e));function $4(){return Dx}const Bs=new Map;function Nx(e){const n=String(e||"").trim().toLowerCase();if(!n)return"text";const r=q4[n]||n;return Object.hasOwn(bu,r)?r:"text"}function F4(e,n){const r=Nx(n);if(r==="text")return Promise.resolve("text");if(e.getLoadedLanguages().includes(r))return Promise.resolve(r);if(!Bs.has(r))try{Bs.set(r,Promise.resolve(e.loadLanguage(r)).then(()=>r).catch(()=>(Bs.delete(r),"text")))}catch{return Promise.resolve("text")}return Bs.get(r)??Promise.resolve("text")}function Y4(e,n,r){try{return e.codeToHtml(n,r)}catch{return null}}const X4={themes:{dark:"dark-plus",light:"light-plus"},defaultColor:!1},jd={margin:0,padding:0,fontFamily:'"DM Mono", "JetBrains Mono", monospace',fontSize:"13px",lineHeight:"1.5",fontWeight:400};function Q4({code:e,language:n}){const r=$4(),a=Nx(n),s=r?.getLoadedLanguages()?.includes(a)?a:"text",[c,f]=Y.useState(s);if(Y.useEffect(()=>{if(!r)return;const h=r.getLoadedLanguages().includes(a)?a:"text";if(f(g=>g===h?g:h),h!=="text"||a==="text")return;let y=!1;return F4(r,a).then(g=>{y||g==="text"||Y.startTransition(()=>{f(b=>b===g?b:g)})}),()=>{y=!0}},[r,a]),!r)return O.jsx("pre",{style:jd,children:O.jsx("code",{children:e})});const d=Y4(r,e,{lang:c,...X4});return d?O.jsx("div",{className:"shiki-wrapper",style:jd,dangerouslySetInnerHTML:{__html:d}}):O.jsx("pre",{style:jd,children:O.jsx("code",{children:e})})}const Z4=/language-([a-z0-9+#-]+)/i;function K4({className:e,children:n,...r}){const[a,o]=Y.useState(!1),s=Y.useRef(null),c=Z4.exec(e||""),f=c?.[1]??"",d=Array.isArray(n)?n.join(""):String(n||""),h=d.replace(/\n$/,""),y=!c&&!d.endsWith(`
|
|
190
|
+
`);Y.useEffect(()=>()=>{s.current!==null&&window.clearTimeout(s.current)},[]);const g=async()=>{try{await ov(h),o(!0),s.current!==null&&window.clearTimeout(s.current),s.current=window.setTimeout(()=>{o(!1),s.current=null},2e3)}catch{}};return y?O.jsx("code",{className:Ve("px-1.5 py-0.5 rounded bg-code font-mono text-[13px] text-accent font-medium",e),...r,children:n}):O.jsxs("div",{"data-code-block":!0,className:"group/code relative my-3 rounded-md bg-code overflow-x-auto scrollbar-subtle",children:[f&&O.jsx("span",{className:"absolute top-1.5 left-3 text-[11px] font-mono text-muted-foreground/50 uppercase tracking-wider select-none",children:f}),O.jsx("button",{type:"button","aria-label":"Copy code",onClick:g,className:Ve("absolute top-1 right-1 z-10 flex items-center justify-center h-7 w-7 rounded-md transition duration-150",a?"text-emerald-400 opacity-100":"text-muted-foreground/40 max-md:opacity-60 opacity-0 group-hover/code:opacity-100 hover:text-foreground/60 hover:bg-muted/20"),title:"Copy",children:a?O.jsx(Dh,{className:"h-3.5 w-3.5"}):O.jsx(Hb,{className:"h-3.5 w-3.5"})}),O.jsx("div",{className:Ve("px-3 pb-2.5",f?"pt-6":"pt-2"),children:O.jsx(Q4,{language:f,code:h})})]})}const J4=[iD],W4=/(\$\$[\s\S]+?\$\$|\$[^\n$]+?\$|\\\([\s\S]+?\\\)|\\\[[\s\S]+?\\\])/,ez=[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\[",right:"\\]",display:!0}],tz={pre:({children:e})=>e,code:K4,table:({children:e,...n})=>O.jsx("div",{className:"my-4 overflow-x-auto scrollbar-subtle",children:O.jsx("table",{...n,children:e})})};let mb=!1;function nz(){mb||(mb=!0,k(()=>Promise.resolve({}),__vite__mapDeps([101])))}function Mx({content:e}){return O.jsx(qR,{remarkPlugins:J4,components:tz,children:e})}function rz({content:e}){const n=Y.useRef(null),r=W4.test(e);return Y.useLayoutEffect(()=>{!n.current||!r||(nz(),k(async()=>{const{default:a}=await import("./auto-render-xntwXHOX.js");return{default:a}},[]).then(({default:a})=>{n.current&&a(n.current,{delimiters:ez,throwOnError:!1})}))},[r]),O.jsx("div",{ref:n,children:O.jsx(Mx,{content:e})})}const iz=Y.memo(function({content:n,isStreaming:r=!1}){return O.jsx("div",{className:"prose prose-sm max-w-none dark:prose-invert",children:r?O.jsx(Mx,{content:n}):O.jsx(rz,{content:n},n)})}),az=Y.memo(function({content:n,isStreaming:r}){const[a,o]=Y.useState(null),s=a??!!r;return n?O.jsxs("div",{className:"rounded-lg bg-secondary/30 px-3 py-2",children:[O.jsxs("button",{type:"button",className:"flex w-full items-center gap-1.5 select-none cursor-pointer text-left","aria-expanded":s,onClick:()=>o(!s),children:[O.jsx("span",{className:Ve("text-xs transition-colors",r?"text-accent/70 animate-breathing font-medium":"text-muted-foreground/60"),children:"Thinking"}),O.jsx(Pb,{className:Ve("h-3 w-3 text-muted-foreground/30 transition-transform duration-200",!s&&"-rotate-90"),"aria-hidden":"true"})]}),O.jsx("div",{className:Ve("grid transition-[grid-template-rows,opacity] duration-200 ease-out",s?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:O.jsx("div",{className:"overflow-hidden",children:O.jsx("div",{className:"pt-2 text-[13px] text-muted-foreground whitespace-pre-wrap italic leading-[1.5]",children:n})})})]}):null});let Bd;function lz(){return Bd||(Bd=k(()=>import("./EditDiff-C1ql7kft.js"),[])),Bd}const oz=Y.lazy(lz);function sz(e){const{oldText:n,newText:r,path:a}=e;return(n===void 0||typeof n=="string")&&(r===void 0||typeof r=="string")&&(a===void 0||typeof a=="string")}function uz({oldText:e,newText:n}){return O.jsxs("div",{className:"rounded-md bg-code px-3 py-2 font-mono text-[13px] leading-[1.5] overflow-x-auto scrollbar-subtle whitespace-pre-wrap",children:[e&&O.jsx("div",{className:"diff-line-removed px-1",children:e}),n&&O.jsx("div",{className:"diff-line-added px-1",children:n})]})}const gb={read:{icon:hk,label:"read"},write:{icon:Tk,label:"write"},edit:{icon:zk,label:"edit"},bash:{icon:Nh,label:"bash"}};function cz(e,n){if(!n)return"";switch(e){case"bash":return typeof n.command=="string"?n.command:"";case"read":case"write":case"edit":return typeof n.path=="string"?n.path:"";default:return Object.entries(n).filter(([r])=>r!=="content"&&r!=="prompt").map(([,r])=>typeof r=="object"?"…":String(r)).join(" ")}}const fz=Y.memo(function({name:n,args:r,output:a,modelText:o,displayText:s,pending:c,isError:f}){const d=typeof s=="string"?s:typeof a=="string"?a:"",h=!!f||typeof o=="string"&&o.startsWith("error:"),[y,g]=Y.useState(null),b=y??h,_=d!=null&&d!=="",x=c?"pending":h?"error":"success",R=(Object.hasOwn(gb,n)?gb[n]:{icon:Nh}).icon,w=cz(n,r);return O.jsxs("div",{className:Ve("rounded-lg px-3 py-2 transition-colors",x==="error"?"bg-red-500/[0.06]":"bg-secondary/30"),children:[O.jsxs("button",{type:"button",className:"flex w-full items-center gap-1.5 select-none cursor-pointer text-left","aria-expanded":b,onClick:()=>g(!b),children:[O.jsx(R,{className:Ve("h-3.5 w-3.5 shrink-0",x==="error"?"text-red-400":"text-foreground/70"),"aria-hidden":"true"}),O.jsx("span",{className:Ve("text-[13px] font-medium shrink-0",x==="error"?"text-red-400":"text-foreground/70"),children:n}),!b&&w&&O.jsx("span",{className:"pl-1 text-[13px] text-muted-foreground/50 font-mono truncate",children:w}),O.jsx("span",{className:"flex-1"}),x==="pending"&&O.jsx(Gb,{className:"h-3.5 w-3.5 text-muted-foreground/40 animate-spin shrink-0","aria-hidden":"true"}),x==="success"&&O.jsx(Dh,{className:"h-3 w-3 text-emerald-500/50 shrink-0","aria-hidden":"true"}),O.jsx(Pb,{className:Ve("h-3 w-3 text-muted-foreground/30 transition-transform duration-200 shrink-0",!b&&"-rotate-90"),"aria-hidden":"true"})]}),O.jsx("div",{className:Ve("grid transition-[grid-template-rows,opacity] duration-200 ease-out",b?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:O.jsx("div",{className:"overflow-hidden",children:O.jsxs("div",{className:"pt-2 space-y-2",children:[r&&Object.keys(r).length>0&&(n==="edit"&&sz(r)&&r.oldText!==void 0?O.jsx(Y.Suspense,{fallback:O.jsx(uz,{oldText:r.oldText,newText:r.newText}),children:O.jsx(oz,{path:r.path,oldText:r.oldText,newText:r.newText,result:o??null})}):O.jsx("div",{className:"rounded-md bg-code px-3 py-2 font-mono text-[13px] leading-[1.5] overflow-x-auto scrollbar-subtle",children:Object.entries(r).map(([T,N])=>O.jsxs("div",{children:[O.jsxs("span",{className:"text-accent/60",children:[T,": "]}),O.jsx("span",{className:"text-foreground/70 break-all whitespace-pre-wrap",children:typeof N=="object"?JSON.stringify(N,null,2):String(N)})]},T))})),_&&!(n==="edit"&&!h)&&O.jsx("div",{className:Ve("rounded-md px-3 py-2 font-mono text-[13px] leading-[1.5] overflow-x-auto overflow-y-auto scrollbar-subtle whitespace-pre-wrap max-h-[240px]",x==="error"?"bg-red-500/[0.06] text-red-400/80":"bg-code text-muted-foreground"),children:d})]})})})]})});class Ud extends Y.Component{state={hasError:!1,resetKey:this.props.resetKey};static getDerivedStateFromProps(n,r){return n.resetKey===r.resetKey?null:{hasError:!1,resetKey:n.resetKey}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(n){console.error("Chat block render failed:",n)}render(){return this.state.hasError?this.props.fallback:this.props.children}}const dz=Y.memo(function({role:n,blocks:r,sourceIndex:a,synthetic:o,isStreaming:s,isLoading:c,index:f,onRewindAndSend:d}){const h=n==="user",[y,g]=Y.useState(!1),[b,_]=Y.useState(!1),[x,C]=Y.useState(""),R=Y.useRef(null),w=Y.useRef(null),T=Y.useMemo(()=>r.filter(V=>V?.type==="text").map(V=>V.text).join(`
|
|
191
|
+
|
|
192
|
+
`),[r]),N=Y.useMemo(()=>r.filter(V=>V?.type==="image"),[r]);Y.useEffect(()=>()=>{w.current!==null&&window.clearTimeout(w.current)},[]);const Z=Y.useCallback(async()=>{if(T)try{await ov(T),g(!0),w.current!==null&&window.clearTimeout(w.current),w.current=window.setTimeout(()=>{g(!1),w.current=null},2e3)}catch{}},[T]),Q=h&&!!T&&typeof a=="number"&&!o&&!c&&d,D=Y.useCallback(()=>{C(T),_(!0)},[T]);Y.useEffect(()=>{if(b&&R.current){const V=R.current;V.focus(),V.style.height="auto",V.style.height=`${V.scrollHeight}px`}},[b]);const P=Y.useCallback(()=>{const V=x.trim();!V||!d||typeof a!="number"||(_(!1),d(a,V))},[x,d,a]),q=Y.useCallback(()=>{_(!1)},[]),F=Y.useCallback(V=>{V.key==="Enter"&&!V.shiftKey?(V.preventDefault(),P()):V.key==="Escape"&&q()},[P,q]),j=O.jsx("div",{className:"rounded-lg bg-destructive/10 px-3 py-2 text-xs text-destructive/80",children:"Failed to render this block."});return h?b?O.jsx("div",{className:"flex justify-end px-5 max-md:px-4 animate-fade-in-up",style:{animationDelay:`${Math.min(f*30,150)}ms`},children:O.jsxs("div",{className:"max-w-[85%] w-full flex flex-col gap-2",children:[O.jsx("textarea",{ref:R,name:"edit-message","aria-label":"Edit message",value:x,onChange:V=>{C(V.target.value),V.target.style.height="auto",V.target.style.height=`${Math.min(V.target.scrollHeight,300)}px`},onKeyDown:F,className:"w-full resize-none rounded-2xl bg-card px-4 py-2.5 text-base md:text-sm leading-relaxed text-foreground/90 border border-border/50 focus:outline-none focus:border-accent/50 max-h-[300px]"}),O.jsxs("div",{className:"flex justify-end gap-2",children:[O.jsx("button",{type:"button",onClick:q,className:"px-3 py-1 text-xs rounded-lg text-muted-foreground hover:text-foreground transition-colors",children:"Cancel"}),O.jsx("button",{type:"button",onClick:P,disabled:!x.trim(),className:Ve("px-3 py-1 text-xs rounded-lg transition-colors",x.trim()?"bg-foreground text-background hover:opacity-90":"text-muted-foreground/40"),children:"Send"})]})]})}):O.jsxs("div",{className:"group/user flex justify-end px-5 max-md:px-4 animate-fade-in-up",style:{animationDelay:`${Math.min(f*30,150)}ms`},children:[Q&&O.jsx("button",{type:"button","aria-label":"Edit message",onClick:D,className:"self-end mr-2 mb-0.5 opacity-0 group-hover/user:opacity-100 max-md:opacity-60 transition-opacity duration-150 h-6 w-6 flex items-center justify-center rounded text-muted-foreground/40 hover:text-muted-foreground/70",title:"Edit & resend",children:O.jsx(Ok,{className:"h-3 w-3"})}),O.jsxs("div",{className:"max-w-[85%] flex flex-col gap-1.5 items-end",children:[N.length>0&&O.jsx("div",{className:"flex flex-wrap gap-2 justify-end",children:N.map((V,W)=>O.jsx("img",{src:`data:${V.mime_type};base64,${V.data}`,alt:V.name??"Image",className:"max-h-64 max-w-full rounded-xl"},V.renderKey??W))}),T&&O.jsx("div",{className:"rounded-2xl bg-card px-4 py-2.5 text-sm leading-relaxed text-foreground/90 whitespace-pre-wrap [overflow-wrap:anywhere]",children:T})]})]}):O.jsxs("div",{className:"group/msg relative px-5 max-md:px-4 animate-fade-in-up",style:{animationDelay:`${Math.min(f*30,150)}ms`},children:[O.jsxs("div",{className:"flex flex-col gap-3 text-foreground/90 leading-relaxed text-sm",children:[r.map(V=>{if(V.type==="thinking"){const W=V.renderKey||`thinking:${V.text||"block"}`;return O.jsx(Ud,{fallback:j,resetKey:`${W}:${V.text}`,children:O.jsx(az,{content:V.text,isStreaming:s})},W)}if(V.type==="text"){const W=V.renderKey||`text:${V.text||"block"}`;return O.jsx(Ud,{fallback:j,resetKey:`${W}:${V.text}`,children:O.jsx(iz,{content:V.text,isStreaming:s})},W)}if(V.type==="tool_use"){const W=V.renderKey||V.id||`tool:${V.name||"tool"}`,ge=`${W}:${JSON.stringify(V.input)}:${V.runtime?.pending?"1":"0"}:${V.runtime?.isError?"1":"0"}:${V.runtime?.output??""}:${V.runtime?.modelText??""}:${V.runtime?.displayText??""}`;return O.jsx(Ud,{fallback:j,resetKey:ge,children:O.jsx(fz,{name:V.name,args:V.input,output:V.runtime?.output,modelText:V.runtime?.modelText,displayText:V.runtime?.displayText,pending:V.runtime?.pending,isError:V.runtime?.isError})},W)}return null}),s&&O.jsx("span",{className:"inline-block w-[2px] h-4 bg-accent animate-cursor-blink ml-0.5 align-middle"})]}),!h&&T&&!s&&O.jsx("div",{className:"mt-2 max-md:opacity-60 opacity-0 group-hover/msg:opacity-100 transition-opacity duration-150",children:O.jsx("button",{type:"button","aria-label":"Copy to clipboard",onClick:Z,className:Ve("flex items-center justify-center h-6 w-6 rounded transition-colors duration-150",y?"text-emerald-400":"text-muted-foreground/40 hover:text-muted-foreground/70"),title:"Copy",children:y?O.jsx(Dh,{className:"h-3.5 w-3.5"}):O.jsx(Hb,{className:"h-3.5 w-3.5"})})})]})}),hz=120,pz=Y.memo(function({messages:n,loading:r,onRewindAndSend:a}){const o=Y.useRef(null),s=Y.useRef(null),c=Y.useRef(!0),f=Y.useRef(0),d=Y.useCallback(()=>{const h=o.current;h&&(c.current=h.scrollHeight-h.scrollTop-h.clientHeight<hz)},[]);return Y.useLayoutEffect(()=>{const h=f.current;f.current=n.length,!(!n.length||!c.current)&&s.current?.scrollIntoView({behavior:r||h===0?"auto":"smooth",block:"end"})},[r,n]),n.length===0?O.jsx("div",{className:"flex flex-1 flex-col items-center justify-center p-8",children:O.jsx("div",{className:"text-center",children:O.jsxs("h1",{className:"font-display text-2xl tracking-tighter text-foreground/70",children:["mycode",O.jsx("span",{className:"inline-block w-[2px] h-5 bg-accent/60 ml-0.5 align-middle animate-cursor-blink"})]})})}):O.jsx("div",{ref:o,onScroll:d,className:"flex-1 overflow-y-auto pb-4 pt-6",children:O.jsxs("div",{className:"mx-auto max-w-4xl max-md:max-w-none flex flex-col gap-6 max-md:gap-5",children:[n.map((h,y)=>O.jsx(dz,{role:h.role,blocks:h.content,sourceIndex:h.sourceIndex,synthetic:h.meta?.synthetic,isStreaming:r&&y===n.length-1&&h.role==="assistant",isLoading:r,index:y,onRewindAndSend:a},h.renderKey||`msg-${y}`)),O.jsx("div",{ref:s,className:"h-4"})]})})});function mz({children:e}){return O.jsx("div",{className:Ve("flex h-screen min-h-0 w-full flex-col overflow-hidden supports-[height:100dvh]:h-dvh bg-background font-sans text-foreground antialiased","transition-colors duration-500"),children:e})}function gz({title:e,onMenuToggle:n,onCreateSession:r}){return O.jsxs("header",{className:"flex md:hidden h-12 shrink-0 items-center justify-between px-4 border-b border-border/40 bg-background",children:[O.jsx("button",{type:"button","aria-label":"Toggle menu",onClick:n,className:"flex items-center justify-center h-10 w-10 -ml-2 text-muted-foreground hover:text-foreground active:scale-90 transition",children:O.jsx(Ek,{className:"h-5 w-5"})}),O.jsx("span",{className:"text-xs font-mono text-foreground/70 truncate max-w-[60%] text-center",children:e||"mycode"}),O.jsx("button",{type:"button","aria-label":"New chat",onClick:r,className:"flex items-center justify-center h-10 w-10 -mr-2 text-muted-foreground hover:text-foreground active:scale-90 transition",children:O.jsx(qb,{className:"h-5 w-5"})})]})}function gp(e){return e===""||e==="auto"||e==="none"||e==="low"||e==="medium"||e==="high"||e==="xhigh"}function yz(e,n,r){const a=e?.providers?.[n];if(!a?.supports_reasoning_effort||!(a.reasoning_models||[]).includes(r))return"";const s=a.reasoning_effort||e?.default_reasoning_effort;return gp(s)?s:""}function _z(e,n){const r=n?.providers||{},a=!e.provider||!r[e.provider],o=a?n?.default?.provider||"":e.provider,s=r[o],c=!s?.models?.includes(e.model),f=c?s?.models?.[0]||"":e.model,d=a||c?"":e.reasoningEffort;return{...e,provider:o,model:f,reasoningEffort:d}}const bz={primary:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",danger:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},vz={sm:"h-8 px-3 text-xs",md:"h-10 px-4 py-2",lg:"h-11 px-8",icon:"h-9 w-9 p-0"},zx=Y.forwardRef(({className:e,variant:n="primary",size:r="md",isLoading:a,disabled:o,children:s,...c},f)=>O.jsxs("button",{ref:f,disabled:o||a,className:Ve("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 active:scale-[0.97]",bz[n],vz[r],e),...c,children:[a&&O.jsx(Gb,{className:"mr-2 h-4 w-4 animate-spin","aria-hidden":"true"}),s]}));zx.displayName="Button";var xz=Lb();const su=e=>e.replace(/\\/g,"/"),Ez=e=>/^([a-zA-Z]:[\\/]|\/)/.test(e),yb=(e,n)=>{const r=su(n);return[...e].sort((o,s)=>s.length-o.length).find(o=>{const s=su(o).replace(/\/+$/,"");return r===s||r.startsWith(`${s}/`)})||e[0]},_b=(e,n)=>{const r=su(e).replace(/\/+$/,""),a=su(n);return a===r?"":(a.startsWith(r)?a.slice(r.length):a).replace(/^\/+/,"")},Sz=e=>{if(!e||e==="/"||e==="\\")return"/";const n=e.replace(/[\\/]+$/,"");if(/\/Users\/[^/]+$/.test(n)||/\/home\/[^/]+$/.test(n))return"~";const r=n.split(/[/\\]/);return r[r.length-1]||e};function bb(e){return e instanceof Error?e.message:"Unknown error"}function wz({open:e,onClose:n,currentCwd:r,cwdHistory:a=[],onSelect:o}){const[s,c]=Y.useState({roots:[],root:"",path:"",current:"",entries:[],loading:!1,error:""}),[f,d]=Y.useState(""),h=Y.useRef(0),y=Y.useRef(null);Y.useEffect(()=>{e&&window.matchMedia("(min-width: 640px)").matches&&y.current?.focus()},[e]);const g=Y.useCallback(async()=>{const D=await fetch("/api/workspaces/roots");if(!D.ok)throw new Error("Failed to load roots");return(await D.json()).roots||[]},[]),b=Y.useCallback(async(D,P="")=>{const q=++h.current;c(F=>({...F,loading:!0,error:""}));try{const F=new URLSearchParams({root:D});P&&F.set("path",P);const j=await fetch(`/api/workspaces/browse?${F.toString()}`);if(!j.ok)throw new Error("Failed to browse directory");const V=await j.json();if(V.error)throw new Error(V.error);if(h.current!==q)return;c(W=>({...W,root:V.root,path:V.path,current:V.current,entries:V.entries||[],loading:!1,error:""})),d(V.current||"")}catch(F){if(h.current!==q)return;c(j=>({...j,loading:!1,error:bb(F)}))}},[]);Y.useEffect(()=>{if(!e)return;let D=!0;return(async()=>{try{const q=await g();if(!D)return;if(!q.length){c(F=>({...F,roots:[],loading:!1,error:"No workspace roots configured."}));return}if(c(F=>({...F,roots:q})),d(""),r){const F=yb(q,r);F&&await b(F,_b(F,r))}else{const F=q[0];F&&await b(F,"")}}catch(q){D&&c(F=>({...F,loading:!1,error:bb(q)}))}})(),()=>{D=!1}},[e,b,r,g]);const _=Y.useMemo(()=>{const D=f.trim();if(!D||!s.current)return"";const P=`${s.current.replace(/\/$/,"")}/`;if(D.startsWith(P)){const q=D.slice(P.length);return q.includes("/")?"":q}return""},[f,s.current]),x=_?s.entries.filter(D=>D.name.toLowerCase().startsWith(_.toLowerCase())):s.entries,C=async D=>{const P=D.trim();if(!(!P||!s.roots.length))if(Ez(P)){const q=yb(s.roots,P);if(!q){c(F=>({...F,error:"Path is outside any configured workspace root."}));return}await b(q,_b(q,P))}else{const q=s.path?`${s.path}/${P}`:P;await b(s.root,q)}},R=()=>{if(!s.root||!s.path)return;const D=s.path.split("/");b(s.root,D.slice(0,-1).join("/"))},w=()=>{s.current&&(o(s.current),n())},T=D=>{if(D.key==="Enter")C(f);else if(D.key==="Tab"){D.preventDefault();const P=x[0];P&&b(s.root,P.path)}else D.key==="Escape"&&(d(s.current||""),n())},N=s.path?s.path.split("/"):[],Z=a.filter(D=>D!==s.current),Q=Z.length>0&&!_;return e?xz.createPortal(O.jsxs("div",{className:"fixed inset-0 z-[100] flex items-end sm:items-center sm:justify-center",role:"dialog","aria-modal":"true","aria-label":"Select Workspace",children:[O.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-[3px] animate-backdrop-in",onClick:n,"aria-hidden":"true"}),O.jsxs("div",{className:Ve("relative flex flex-col overflow-hidden","bg-background border border-border/40 shadow-2xl","w-full rounded-t-2xl max-h-[82vh]","animate-sheet-in","sm:rounded-xl sm:w-[440px] sm:max-h-[520px]","sm:animate-dialog-in"),children:[O.jsx("div",{className:"sm:hidden flex justify-center pt-2.5 pb-1 shrink-0","aria-hidden":"true",children:O.jsx("div",{className:"w-10 h-[3px] rounded-full bg-border/60"})}),O.jsxs("div",{className:"flex items-center h-12 px-1.5 border-b border-border/30 shrink-0 gap-0.5",children:[O.jsx("button",{type:"button",onClick:R,disabled:!s.path,className:Ve("flex items-center justify-center w-9 h-9 rounded-lg shrink-0 cursor-pointer","text-muted-foreground transition-colors duration-150","hover:bg-muted/70 hover:text-foreground","active:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:opacity-25 disabled:cursor-not-allowed"),"aria-label":"Go up one level",children:O.jsx(sk,{className:"h-4 w-4"})}),O.jsxs("div",{className:"flex-1 flex items-center overflow-x-auto scrollbar-none min-w-0 px-1 gap-0.5",children:[O.jsx("button",{type:"button",onClick:()=>s.root&&void b(s.root,""),className:Ve("shrink-0 px-1.5 py-0.5 rounded text-sm font-mono cursor-pointer","transition-colors duration-150 hover:bg-muted/60 hover:text-foreground",N.length===0?"text-foreground font-medium":"text-muted-foreground"),children:Sz(s.root)||"~"}),N.map((D,P)=>{const q=N.slice(0,P+1).join("/");return O.jsxs("div",{className:"flex items-center shrink-0",children:[O.jsx("span",{className:"text-border/50 select-none mx-0.5 text-sm","aria-hidden":"true",children:"/"}),O.jsx("button",{type:"button",onClick:()=>{b(s.root,q)},className:Ve("px-1.5 py-0.5 rounded text-sm font-mono cursor-pointer whitespace-nowrap","transition-colors duration-150 hover:bg-muted/60 hover:text-foreground",P===N.length-1?"text-foreground font-medium":"text-muted-foreground"),children:D})]},q)})]}),O.jsx("button",{type:"button",onClick:n,className:Ve("hidden sm:flex items-center justify-center w-9 h-9 rounded-lg shrink-0 cursor-pointer","text-muted-foreground/60 transition-colors duration-150","hover:bg-muted/70 hover:text-foreground","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"),"aria-label":"Close",children:O.jsx($b,{className:"h-3.5 w-3.5"})})]}),O.jsx("div",{className:"px-4 py-2.5 border-b border-border/20 bg-muted/[0.08] shrink-0",children:O.jsx("input",{ref:y,name:"workspace-path",value:f,onChange:D=>d(D.target.value),onKeyDown:T,placeholder:"Filter or type a path…",spellCheck:!1,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",className:"w-full bg-transparent text-base md:text-xs font-mono focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring text-muted-foreground placeholder:text-muted-foreground/30 caret-accent","aria-label":"Filter directories or enter a path"})}),O.jsxs("div",{className:"flex-1 overflow-y-auto overscroll-contain",children:[s.loading&&O.jsx("div",{className:"flex items-center justify-center h-36",children:O.jsx("div",{className:"flex items-end gap-1",children:[0,1,2].map(D=>O.jsx("div",{className:"w-[3px] rounded-full bg-muted-foreground/30 animate-pulse",style:{height:`${12+D*4}px`,animationDelay:`${D*120}ms`}},D))})}),!s.loading&&s.error&&O.jsx("div",{className:"flex items-center justify-center h-36 px-6 text-center",children:O.jsx("p",{className:"text-xs text-destructive leading-relaxed",children:s.error})}),!s.loading&&!s.error&&O.jsxs("div",{className:"py-1",children:[Q&&O.jsxs(O.Fragment,{children:[O.jsx("div",{className:"px-4 pt-3 pb-1.5",children:O.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-widest text-muted-foreground/40 select-none",children:"Recent"})}),Z.map(D=>O.jsxs("button",{type:"button",onClick:()=>{o(D),n()},className:"group flex items-center gap-3 w-full min-h-[44px] px-4 py-2 text-left cursor-pointer transition-colors duration-100 hover:bg-muted/50 active:bg-muted/70 focus-visible:outline-none focus-visible:bg-muted/50",children:[O.jsx(ck,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground/35 group-hover:text-accent/60 transition-colors duration-100"}),O.jsx("span",{className:"truncate text-xs font-mono text-muted-foreground group-hover:text-foreground/80 transition-colors duration-100",children:D})]},D)),x.length>0&&O.jsx("div",{className:"mx-4 mt-1 mb-1 border-b border-border/20"})]}),x.length===0&&!Q&&O.jsxs("div",{className:"flex flex-col items-center justify-center gap-3 h-36 text-muted-foreground/30",children:[O.jsx(M_,{className:"h-10 w-10",strokeWidth:1}),O.jsx("p",{className:"text-xs",children:"This folder is empty"})]}),O.jsx("div",{className:"sm:grid sm:grid-cols-2",children:x.map(D=>O.jsxs("button",{type:"button",onClick:()=>{b(s.root,D.path)},className:"group flex items-center gap-3 w-full min-h-[44px] px-4 py-2 text-left cursor-pointer transition-colors duration-100 hover:bg-muted/50 active:bg-muted/70 focus-visible:outline-none focus-visible:bg-muted/50",children:[O.jsx(M_,{className:"h-3.5 w-3.5 shrink-0 text-accent/40 group-hover:text-accent/70 transition-colors duration-100"}),O.jsx("span",{className:"truncate text-sm font-mono text-foreground/70 group-hover:text-foreground transition-colors duration-100",children:D.name})]},D.path))})]})]}),O.jsxs("div",{className:"flex items-center gap-3 h-12 px-4 border-t border-border/20 bg-muted/[0.06] shrink-0",children:[O.jsx("span",{className:"flex-1 min-w-0 truncate text-xs font-mono text-muted-foreground/50",title:s.current,children:s.current||"—"}),O.jsx("button",{type:"button",onClick:w,disabled:!s.current,className:Ve("shrink-0 px-3.5 h-7 rounded-md text-xs font-semibold cursor-pointer","transition-colors duration-150","bg-accent/15 text-accent border border-accent/20","hover:bg-accent/25 hover:border-accent/40 active:bg-accent/30","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:opacity-25 disabled:cursor-not-allowed"),children:"Open"})]})]})]}),document.body):null}const Vd="w-full bg-secondary/20 px-2.5 py-2 text-base md:text-sm font-mono text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring rounded-md border-0 focus:bg-secondary/40 disabled:opacity-50 transition-colors cursor-pointer",kz=[{key:"light",icon:Uk,label:"Light"},{key:"dark",icon:wk,label:"Dark"},{key:"system",icon:bk,label:"Auto"}];function Az(e){return e?Object.entries(e).filter(n=>n[1]!==void 0):[]}const Cz=Y.memo(function({className:n,sessions:r,activeSession:a,onSelectSession:o,onCreateSession:s,onDeleteSession:c,config:f,onUpdateConfig:d,cwdHistory:h,remoteConfig:y,theme:g,setTheme:b}){const[_,x]=Y.useState("chat"),[C,R]=Y.useState(!1),w=F=>{d({...f,cwd:F})},T=F=>{const V=y?.providers?.[F]?.models?.[0]||"";d({...f,provider:F,model:V,apiBase:"",apiKey:"",reasoningEffort:""})},N=Az(y?.providers),Z=y?.providers?.[f.provider],Q=Z?.models||[],D=Z?.reasoning_models||[],P=Z?.supports_reasoning_effort&&D.includes(f.model),q=y?.reasoning_effort_options||[];return O.jsxs("div",{className:Ve("flex w-64 flex-col border-r border-border/60 bg-sidebar-bg",n),children:[O.jsx("div",{className:"flex h-14 shrink-0 items-center px-4 border-b border-border/40",children:O.jsxs("div",{className:"flex items-center gap-2.5",children:[O.jsx(Nh,{className:"h-4 w-4 text-accent"}),O.jsx("span",{className:"font-display text-sm tracking-tight text-foreground",children:"mycode"})]})}),O.jsxs("div",{className:"relative flex shrink-0 border-b border-border/40",role:"tablist",children:[O.jsxs("button",{type:"button",role:"tab","aria-selected":_==="chat",onClick:()=>x("chat"),className:Ve("flex-1 flex items-center justify-center gap-1.5 py-2.5 text-xs font-medium transition-colors",_==="chat"?"text-foreground":"text-muted-foreground hover:text-foreground"),children:[O.jsx(z_,{className:"h-3 w-3"}),"History"]}),O.jsxs("button",{type:"button",role:"tab","aria-selected":_==="settings",onClick:()=>x("settings"),className:Ve("flex-1 flex items-center justify-center gap-1.5 py-2.5 text-xs font-medium transition-colors",_==="settings"?"text-foreground":"text-muted-foreground hover:text-foreground"),children:[O.jsx(Nk,{className:"h-3 w-3"}),"Settings"]}),O.jsx("div",{className:"absolute bottom-0 h-[2px] bg-accent transition-[left,transform] duration-200 ease-out",style:{left:_==="chat"?"12px":"50%",width:"calc(50% - 24px)",transform:_==="settings"?"translateX(12px)":"none"}})]}),O.jsxs("div",{className:"flex-1 overflow-hidden flex flex-col min-h-0",children:[_==="chat"&&O.jsxs("div",{className:"flex h-full flex-col",children:[O.jsx("div",{className:"px-3 pt-2 pb-1 shrink-0",children:O.jsxs("button",{type:"button",onClick:s,className:"w-full flex items-center justify-center gap-1.5 py-2.5 text-xs font-medium text-muted-foreground hover:text-foreground hover:bg-secondary/30 rounded-md transition-colors",children:[O.jsx(qb,{className:"h-3 w-3"}),"New Chat"]})}),O.jsxs("div",{className:"flex-1 overflow-y-auto pb-4",children:[r.map(F=>{const j=a?.id===F.id,V=F.is_running;return O.jsxs("div",{className:"group relative",children:[(j||V)&&O.jsx("div",{className:Ve("absolute left-0 top-0 bottom-0 w-[2px] bg-accent",V&&"animate-breathing")}),O.jsx("button",{type:"button","aria-current":j?"true":void 0,className:Ve("session-row flex w-full items-center gap-2 px-4 py-2 pr-10 text-xs cursor-pointer text-left transition-colors active:bg-secondary/30",j?"bg-secondary/40 text-foreground":"session-row-inactive text-muted-foreground"),onClick:()=>o(F.id),children:O.jsx("span",{className:"truncate flex-1",children:F.title||"New Chat"})}),!j&&O.jsx(zx,{variant:"ghost",size:"icon",className:"session-delete-button absolute right-2 top-1/2 h-5 w-5 -translate-y-1/2 transition-opacity","aria-label":"Delete session",onClick:W=>{W.stopPropagation(),c(F.id)},children:O.jsx(Hk,{className:"session-delete-icon h-3 w-3 text-muted-foreground"})})]},F.id)}),r.length===0&&O.jsxs("div",{className:"py-12 text-center text-xs text-muted-foreground/60 flex flex-col items-center gap-2",children:[O.jsx(z_,{className:"h-4 w-4 opacity-30"}),"No history"]})]})]}),_==="settings"&&O.jsxs("div",{className:"h-full overflow-y-auto px-4 py-5 space-y-6",children:[O.jsxs("div",{children:[O.jsx("div",{className:"text-2xs font-mono text-muted-foreground/60 mb-2.5",children:"Appearance"}),O.jsx("div",{className:"flex items-center gap-1",children:kz.map(({key:F,icon:j,label:V})=>O.jsx("button",{type:"button",onClick:()=>b(F),"aria-label":V,title:V,className:Ve("flex items-center justify-center h-9 w-9 rounded-md transition-colors",g===F?"text-accent bg-secondary/40":"text-muted-foreground hover:text-foreground hover:bg-secondary/20"),children:O.jsx(j,{className:"h-3.5 w-3.5"})},F))})]}),O.jsxs("div",{children:[O.jsxs("div",{className:"flex items-center justify-between mb-2.5",children:[O.jsx("span",{className:"text-2xs font-mono text-muted-foreground/60",children:"Workspace"}),O.jsx("button",{type:"button","aria-label":"Open workspace",onClick:()=>R(!0),className:"text-muted-foreground/50 hover:text-accent transition-colors",children:O.jsx(mk,{className:"h-3 w-3"})})]}),O.jsx("p",{className:"break-all font-mono text-2xs leading-relaxed text-muted-foreground",title:f.cwd==="."?y?.cwd||".":f.cwd,children:f.cwd==="."?y?.cwd||".":f.cwd})]}),O.jsxs("div",{className:"space-y-4",children:[y?.providers&&Object.keys(y.providers).length>0&&O.jsxs("div",{children:[O.jsx("label",{htmlFor:"provider-select",className:"text-2xs font-mono text-muted-foreground/60",children:"Provider"}),O.jsx("select",{id:"provider-select",value:f.provider,onChange:F=>T(F.target.value),className:Ve(Vd,"mt-1.5"),children:N.map(([F,j])=>O.jsxs("option",{value:F,children:[j.name," (",j.type,")"]},F))})]}),Q.length>0?O.jsxs("div",{children:[O.jsx("label",{htmlFor:"model-input",className:"text-2xs font-mono text-muted-foreground/60",children:"Model"}),O.jsx("select",{id:"model-input",value:f.model,onChange:F=>{const j=F.target.value;return d({...f,model:j,reasoningEffort:""})},className:Ve(Vd,"mt-1.5"),children:Q.map(F=>O.jsx("option",{value:F,children:F},F))})]}):O.jsx("div",{className:"text-center text-2xs text-muted-foreground/50 py-2",children:"No models available"}),P&&O.jsxs("div",{children:[O.jsx("label",{htmlFor:"effort-select",className:"text-2xs font-mono text-muted-foreground/60",children:"Reasoning effort"}),O.jsx("select",{id:"effort-select",value:f.reasoningEffort||yz(y,f.provider,f.model)||"auto",onChange:F=>{const j=F.target.value;gp(j)&&d({...f,reasoningEffort:j})},className:Ve(Vd,"mt-1.5"),children:q.map(F=>O.jsx("option",{value:F,children:F},F))})]})]})]})]}),O.jsx(wz,{open:C,onClose:()=>R(!1),currentCwd:f.cwd,cwdHistory:h,onSelect:w})]})}),Ix=Y.createContext(null);function jx(e){return e!=="system"?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function vb(e){const n=window.document.documentElement,r=jx(e);return n.classList.remove("light","dark"),r==="light"?n.classList.add("light"):n.classList.add("dark"),n.style.colorScheme=r,r}function Tz({children:e,defaultTheme:n="system",storageKey:r="vite-ui-theme"}){const[a,o]=Y.useState(()=>{const h=localStorage.getItem(r);return h==="light"||h==="dark"||h==="system"?h:n}),[s,c]=Y.useState(()=>jx(a));Y.useEffect(()=>{c(vb(a))},[a]),Y.useEffect(()=>{if(a!=="system")return;const h=window.matchMedia("(prefers-color-scheme: dark)"),y=()=>{c(vb("system"))};return h.addEventListener("change",y),()=>h.removeEventListener("change",y)},[a]);const f=Y.useCallback(h=>{localStorage.setItem(r,h),o(h)},[r]),d=Y.useMemo(()=>({theme:a,resolvedTheme:s,setTheme:f}),[a,s,f]);return O.jsx(Ix.Provider,{value:d,children:e})}const Rz=()=>{const e=Y.useContext(Ix);if(!e)throw new Error("useTheme must be used within a ThemeProvider");return e};function qs(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function bn(e){return Array.isArray(e?.content)?e.content:[]}function Pd(e,n=null){const r={...e};return r.meta&&(r.meta={...r.meta}),n&&(r.renderKey=n),r}function zi(e,n=[],r=null){const a={role:e,content:n};return r&&(a.renderKey=r),a}function ao(e){return{type:"text",text:e}}function Bx(e){return{type:"thinking",text:e}}function Ux(e){return{type:"tool_use",id:e?.id||"",name:e?.name||"tool",input:qs(e?.input)?{...e.input}:{}}}function Oz(e,n,r,a=!1){return{type:"tool_result",tool_use_id:e,model_text:n,display_text:r,is_error:a}}function xb(e){return zi("user",e?[ao(e)]:[])}function Vx(e,n,r,a){const o={type:"image",data:e,mime_type:n};return r&&(o.name=r),a&&(o.renderKey=a),o}function Lz(e,n){const r=[];e&&r.push(ao(e));for(const a of n)r.push(Vx(a.data,a.mime_type,a.name));return zi("user",r)}function Zl(e=[]){return zi("assistant",e)}function Dz(e,n,r,a){const o=[];if(n&&o.push(ao(n)),a?.length)for(const[c,f]of a.entries())o.push(Vx(f.data,f.mime_type,f.name,`user:${e}:img:${c}`));const s=zi("user",o,`user:${e}`);return s.sourceIndex=e,s}function Ia(e){const n=zi("assistant",[],`assistant:${e}`);return n.sourceIndex=e,n}function Nz(e){const n=[...e],r=n.length-1;return r>=0&&n[r]?.role==="assistant"?{messages:n,index:r}:(n.push(Zl([])),{messages:n,index:n.length-1})}function Ci(e){for(let n=e.length-1;n>=0;n--)if(e[n]?.role==="assistant")return n;return-1}function Hd(e,n,r){if(!r)return e;const{messages:a,index:o}=Nz(e),s=a[o]??Zl([]),c=[...bn(s)],f=c[c.length-1];return f?.type===n?c[c.length-1]={...f,text:`${f.text||""}${r}`}:c.push(n==="thinking"?Bx(r):ao(r)),a[o]={...s,content:c},a}function Mz(e,n){const r=[...e];let a=Ci(r);a===-1&&(r.push(Zl([])),a=r.length-1);const o=r[a];return o&&(r[a]={...o,content:[...bn(o),Ux(n)]}),r}function zz(e){const n=bn(e);return e?.role==="user"&&n.length>0&&n.every(r=>r?.type==="tool_result")}function Iz(e,n,r,a,o=!1){const s=Oz(n,r,a,o),c=[...e],f=c.length-1;if(f>=0&&zz(c[f])){const d=c[f];return d&&(c[f]={...d,content:[...bn(d),s]}),c}return c.push(zi("user",[s])),c}function Kl(e,n){const r=typeof e?.output=="string"?e.output:"",a=typeof e?.modelText=="string",o=typeof n?.model_text=="string"?n.model_text:null,s=typeof e?.displayText=="string",c=typeof n?.display_text=="string"?n.display_text:null,f=a?e.modelText:o,d=s?e.displayText:c??f,h=!!(e?.isError||n?.is_error||typeof f=="string"&&f.startsWith("error:"));return{pending:!!e?.pending,output:r,modelText:f,displayText:d,isError:h}}function Px(e,n,r,a){const o=e[n.messageIndex];if(!o)return null;const s=[...bn(o)],c=s[n.blockIndex];if(c?.type!=="tool_use")return o;s[n.blockIndex]={...c,runtime:Kl(r,a)};const f={...o,content:s};return e[n.messageIndex]=f,f}function yp(e,n){const r=[...e],a=r.length-1,o=`assistant:${n}`;return a>=0&&r[a]?.role==="assistant"&&r[a]?.renderKey===o?{messages:r,index:a}:(r.push(Ia(n)),{messages:r,index:r.length-1})}function jz(e,n){if(!n)return null;for(let r=e.length-1;r>=0;r--){const a=e[r];if(a?.role!=="assistant")continue;const o=bn(a);for(let s=o.length-1;s>=0;s--){const c=o[s];if(c?.type==="tool_use"&&c.id===n)return{messageIndex:r,blockIndex:s}}}return null}function Gd(e,n,r,a){if(!r||a<0)return e;const{messages:o,index:s}=yp(e,a),c=o[s]??Ia(a),f=[...bn(c)],d=f[f.length-1];if(d?.type===n)f[f.length-1]={...d,text:`${d.text||""}${r}`};else{const h=`assistant:${a}:${f.length}`,y=n==="thinking"?Bx(r):ao(r);y.renderKey=h,f.push(y)}return o[s]={...c,content:f},o}function Eb(e,n,r,a){if(r<0)return e;const{messages:o,index:s}=yp(e,r),c=o[s]??Ia(r),f=[...bn(c)],d=Ux(n);return d.renderKey=d.id||`assistant:${r}:${f.length}`,d.runtime=Kl(a,null),o[s]={...c,content:[...f,d]},o}function Sb(e,n,r,a,o=null){if(!n||a<0)return e;const s=jz(e,n);if(!s){const{messages:f,index:d}=yp(e,a),h=f[d]??Ia(a),y=[...bn(h)],g={type:"tool_use",id:n,name:"tool",input:{},runtime:Kl(r,o),renderKey:n};return f[d]={...h,content:[...y,g]},f}const c=[...e];return Px(c,s,r,o),c}function wb(e,n={}){if(!Array.isArray(e))return[];const r=[],a={};let o=null;const s=c=>o||(o=Ia(c),r.push(o),o);for(const[c,f]of e.entries()){const d=f?.role,h=bn(f);if(d==="user"){const _=h.filter(w=>w?.type==="text"&&w.text||w?.type==="image").map((w,T)=>Pd(w,`user:${c}:${T}`));if(_.length>0){const w=zi("user",_,`user:${c}`);qs(f?.meta)&&(w.meta={...f.meta}),w.sourceIndex=c,r.push(w),o=null}const x=h.filter(w=>w?.type==="tool_result");if(x.length===0)continue;const C=s(c);let R=[...bn(C)];for(const w of x){const T=w.tool_use_id,N=T?n[T]:void 0,Z=T?a[T]:void 0;if(Z){const P=Px(r,Z,N,w);P&&Z.messageIndex===r.length-1&&(o=P,R=[...bn(P)]);continue}const Q={type:"tool_use",id:T||"",name:"tool",input:{},runtime:Kl(N,w)},D=R.length;Q.renderKey=T||`tool-result:${c}:${D}`,R.push(Q),o={...C,content:R},r[r.length-1]=o,T&&(a[T]={messageIndex:r.length-1,blockIndex:D})}continue}if(d!=="assistant")continue;const y=s(c),g=[...bn(y)],b=r.length-1;for(const[_,x]of h.entries()){if(x?.type==="thinking"&&x.text){g.push(Pd(x,`assistant:${c}:${_}`));continue}if(x?.type==="text"&&x.text){g.push(Pd(x,`assistant:${c}:${_}`));continue}if(x?.type!=="tool_use")continue;const C={type:"tool_use",id:x.id,name:x.name,input:qs(x.input)?{...x.input}:{},runtime:Kl(x.id?n[x.id]:void 0,null)};C.renderKey=x.id||`assistant:${c}:${_}`,qs(x.meta)&&(C.meta={...x.meta});const R=g.length;g.push(C),x.id&&(a[x.id]={messageIndex:b,blockIndex:R})}o={...y,content:g},r[b]=o}return r.filter((c,f)=>Array.isArray(c.content)&&c.content.length>0||f===r.length-1&&c.role==="assistant")}const Hx="mycode_config",Gx="mycode_cwd_history",Rh="mycode_active_sessions",qx=1,ei={provider:"",model:"",cwd:".",apiKey:"",apiBase:"",reasoningEffort:""};function $x(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function qd(e,n,r){return typeof e[n]=="string"?e[n]:r}function Bz(e){const n=e.reasoningEffort;return{provider:qd(e,"provider",ei.provider),model:qd(e,"model",ei.model),cwd:qd(e,"cwd",ei.cwd),apiKey:ei.apiKey,apiBase:ei.apiBase,reasoningEffort:gp(n)?n:ei.reasoningEffort}}function Uz(){try{const e=localStorage.getItem(Hx);if(e){const n=JSON.parse(e);return!$x(n)||n._v!==qx?ei:Bz(n)}}catch(e){console.error("Failed to load config:",e)}return ei}function kb(e){try{const{apiKey:n,apiBase:r,...a}=e;localStorage.setItem(Hx,JSON.stringify({...a,_v:qx}))}catch(n){console.error("Failed to save config:",n)}}function Vz(){try{const e=localStorage.getItem(Gx);if(e){const n=JSON.parse(e);return Array.isArray(n)?n.filter(r=>typeof r=="string"):[]}}catch(e){console.error("Failed to load history:",e)}return[]}function Pz(e){try{localStorage.setItem(Gx,JSON.stringify(e.slice(0,6)))}catch(n){console.error("Failed to save history:",n)}}function Hz(e,n){if(!n)return e;const r=n.trim();return r?[r,...e.filter(o=>o!==r)].slice(0,6):e}function Fx(e){return typeof e!="string"?".":e.trim()||"."}function Yx(){try{const e=localStorage.getItem(Rh);if(!e)return{};const n=JSON.parse(e);return $x(n)?Object.fromEntries(Object.entries(n).filter(r=>typeof r[0]=="string"&&typeof r[1]=="string")):{}}catch(e){return console.error("Failed to load active sessions:",e),{}}}function Gz(e){try{const n=Object.entries(e).filter(([r,a])=>typeof r=="string"&&r&&typeof a=="string"&&a);if(n.length===0){localStorage.removeItem(Rh);return}localStorage.setItem(Rh,JSON.stringify(Object.fromEntries(n)))}catch(n){console.error("Failed to save active sessions:",n)}}function qz(e){const r=Yx()[Fx(e)];return typeof r=="string"?r:""}function $d(e,n){if(typeof n!="string"||!n)return;const r=Yx();r[Fx(e)]=n,Gz(r)}function $z(e,n){if(!Array.isArray(e)||e.length===0)return null;if(n){const r=e.find(a=>a.id===n);if(r?.id)return r.id}return e[0]?.id||null}function jl({pendingRequestToken:e,requestToken:n,activeCwd:r,requestCwd:a}){return e===n&&r===a}function Ab({pendingRequestToken:e,requestToken:n,activeSessionId:r,sessionId:a,activeCwd:o,requestCwd:s}){return jl({pendingRequestToken:e,requestToken:n,activeCwd:o,requestCwd:s})&&r===a}const Fz="New chat";function Cb(e){return e instanceof Error?e.message:"Unknown error"}function Tb(e){return"detail"in e?e.detail:void 0}function Rb(e){return typeof e=="object"&&e?.run?e.run:null}function Ob(e,n){return typeof e=="string"&&e?e:e&&typeof e=="object"&&e.message?e.message:n}function Us(){return{id:globalThis.crypto?.randomUUID?.()||`draft-${Date.now()}-${Math.random().toString(16).slice(2)}`,title:Fz,isDraft:!0}}function Yz(e,n){switch(n.type){case"set_messages":{const r=Array.isArray(n.messages)?n.messages:[];return{rawMessages:r,messages:wb(r),toolRuntimeById:{}}}case"start_turn":{const r=e.rawMessages.length,{content:a,images:o}=n;return{...e,rawMessages:[...e.rawMessages,o?.length?Lz(a,o):xb(a),Zl([])],messages:[...e.messages,Dz(r,a,void 0,o),Ia(r+1)]}}case"rewind_and_start_turn":{const r=[...e.rawMessages.slice(0,n.rewindTo),xb(n.content),Zl([])];return{rawMessages:r,messages:wb(r),toolRuntimeById:{}}}case"apply_event":{const r=n.event||{};let a=[...e.rawMessages],o=e.messages;const s={...e.toolRuntimeById};if(r.type==="reasoning"){a=Hd(a,"thinking",r.delta||"");const c=Ci(a);o=Gd(o,"thinking",r.delta||"",c)}else if(r.type==="text"){a=Hd(a,"text",r.delta||"");const c=Ci(a);o=Gd(o,"text",r.delta||"",c)}else if(r.type==="tool_start"){const c=r.tool_call||{};a=Mz(a,c);const f=Ci(a);if(c.id){const d={pending:!0,output:"",modelText:null,displayText:null,isError:!1};s[c.id]=d,o=Eb(o,c,f,d)}else o=Eb(o,c,f)}else if(r.type==="tool_output"){const c=r.tool_use_id||"";if(c){const f=Ci(a),d=s[c]||{pending:!0,output:"",modelText:null,displayText:null,isError:!1},h=r.output||"";s[c]={...d,pending:!0,output:d.output?`${d.output}
|
|
193
|
+
${h}`:h},o=Sb(o,c,s[c],f)}}else if(r.type==="tool_done"){const c=r.tool_use_id||"",f=r.model_text||"",d=r.display_text||"",h=!!(r.is_error||typeof f=="string"&&f.startsWith("error:"));if(c){const y=s[c]||{pending:!1,output:"",modelText:null,displayText:null,isError:!1};s[c]={...y,pending:!1,modelText:f,displayText:d,isError:h},a=Iz(a,c,f,d,h);const g=Ci(a);o=Sb(o,c,s[c],g,{model_text:f,display_text:d,is_error:h})}}else if(r.type==="error"){a=Hd(a,"text",`
|
|
194
|
+
|
|
195
|
+
**Error:** ${r.message||"Unknown"}`);const c=Ci(a);o=Gd(o,"text",`
|
|
196
|
+
|
|
197
|
+
**Error:** ${r.message||"Unknown"}`,c)}return{rawMessages:a,messages:o,toolRuntimeById:s}}default:return e}}function Xz(e){const[n,r]=Y.useReducer(Yz,{rawMessages:[],messages:[],toolRuntimeById:{}}),[a,o]=Y.useState([]),[s,c]=Y.useState(Us),[f,d]=Y.useState(!1),[h,y]=Y.useState(!1),[g,b]=Y.useState("idle"),_=Y.useRef(!1),x=Y.useRef(e.cwd),C=Y.useRef(s),R=Y.useRef(0),w=Y.useRef(0),T=Y.useRef(0),N=Y.useRef(null),Z=Y.useRef(0),Q=Y.useRef(null),D=Y.useRef(null),P=n.messages,q=f?"generating":g==="error"?"offline":g==="ready"?"ready":"idle",F=Y.useCallback(async I=>{if(I)try{await fetch(`/api/runs/${encodeURIComponent(I)}/cancel`,{method:"POST"})}catch(S){console.error("Failed to cancel:",S)}},[]),j=Y.useCallback(async()=>{const I=e.cwd;try{const S=await fetch(`/api/sessions?cwd=${encodeURIComponent(I)}`);if(!S.ok)throw new Error("Failed to load sessions");const re=await S.json();if(I!==x.current)return[];const ae=re.sessions||[],le=C.current,fe=le.isDraft&&!ae.some(ue=>ue.id===le.id)?[le,...ae]:ae;o(fe);const _e=fe.find(ue=>ue.id===le.id);return _e&&_e!==le&&(C.current=_e,c(_e)),fe}catch(S){return console.error("Failed to load sessions:",S),[]}},[e.cwd]),V=Y.useCallback(()=>{Z.current+=1,w.current=0,N.current?.abort(),N.current=null,Q.current=null,d(!1),b("ready")},[]),W=Y.useCallback(async(I,S,re=0)=>{const ae=I?.id;if(!ae)return;Z.current+=1;const le=Z.current;N.current?.abort();const fe=new AbortController;N.current=fe,Q.current=I,d(!0),b("ready");const _e=async()=>{if(Z.current!==le||C.current.id!==S)return!0;const ue=D.current;if(!ue)return!1;try{return await ue(S),!0}catch(Be){return console.error("Failed to recover disconnected stream:",Be),!1}};try{const ue=await fetch(`/api/runs/${encodeURIComponent(ae)}/stream?after=${re}`,{signal:fe.signal});if(!ue.ok)throw new Error(`HTTP ${ue.status}: ${ue.statusText}`);if(!ue.body)throw new Error("Response body is empty");const Be=ue.body.getReader(),qe=new TextDecoder;let dt="",ht=!1;for(;;){const{done:Ye,value:Dt}=await Be.read();if(Ye)break;dt+=qe.decode(Dt,{stream:!0});const Wt=dt.split(`
|
|
198
|
+
`);dt=Wt.pop()||"";for(const Pe of Wt){if(!Pe.startsWith("data: "))continue;const Qe=Pe.slice(6);if(Qe==="[DONE]"){ht=!0;continue}try{const Ge=JSON.parse(Qe);if(Ge.type==="compact"||Z.current!==le||C.current.id!==S)continue;r({type:"apply_event",event:Ge})}catch(Ge){console.error("Parse error:",Ge)}}}if(!ht&&await _e())return}catch(ue){(!(ue instanceof Error)||ue.name!=="AbortError")&&!await _e()&&Z.current===le&&C.current.id===S&&(b("error"),r({type:"apply_event",event:{type:"error",message:"Stream disconnected. Reload the session to resume."}}))}finally{Z.current===le&&(N.current=null,Q.current=null,C.current.id===S&&d(!1),j())}},[j]),ge=Y.useCallback(async(I,S)=>{const re=S?.requestCwd??e.cwd,ae=S?.requestToken??T.current,le=await fetch(`/api/sessions/${encodeURIComponent(I)}`);if(!le.ok)throw new Error("Failed to load session");const fe=await le.json();if(!jl({pendingRequestToken:T.current,requestToken:ae,activeCwd:x.current,requestCwd:re})||!fe.session)return null;b("ready"),C.current=fe.session,c(fe.session),$d(re,fe.session.id),r({type:"set_messages",messages:fe.messages||[]});const _e=Array.isArray(fe.pending_events)?fe.pending_events:[];for(const Be of _e)Be?.type!=="compact"&&r({type:"apply_event",event:Be});const ue=fe.active_run||null;if(Q.current=ue,ue?.id){const Be=_e.at(-1)?.seq||0;W(ue,fe.session.id,Be)}else d(!1);return fe},[e.cwd,W]);Y.useEffect(()=>{D.current=ge},[ge]);const oe=Y.useCallback(async(I,S)=>{const re=I.trim();if(!re&&!S?.length||f)return;const ae=s.id,le=e.cwd,fe=n.rawMessages,_e=R.current+1;R.current=_e,w.current=_e,r({type:"start_turn",content:re,...S?.length?{images:S}:{}}),d(!0),b("ready");const ue={session_id:ae,provider:e.provider||void 0,model:e.model||void 0,cwd:e.cwd,reasoning_effort:e.reasoningEffort&&e.reasoningEffort!=="auto"?e.reasoningEffort:void 0},Be=S?.length?{...ue,input:[...re?[{type:"text",text:re}]:[],...S.map(qe=>({type:"image",data:qe.data,mime_type:qe.mime_type,name:qe.name}))]}:{...ue,message:re};try{const qe=await fetch("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Be)}),dt=await qe.json(),ht=Ab({pendingRequestToken:w.current,requestToken:_e,activeSessionId:C.current.id,sessionId:ae,activeCwd:x.current,requestCwd:le});if(!qe.ok){const Dt=Tb(dt),Wt=Rb(Dt);if(qe.status===409&&Wt?.id){ht&&(w.current=0,r({type:"set_messages",messages:fe}),W(Wt,ae,Wt.last_seq||0));return}throw new Error(Ob(Dt,"Failed to start task"))}if(w.current=0,!ht)return;const Ye=dt;if(Ye.session){const Dt=Ye.session;C.current=Dt,c(Dt),$d(le,Dt.id)}j(),W(Ye.run,ae,0)}catch(qe){w.current===_e&&C.current.id===ae&&(w.current=0,d(!1),b("error"),r({type:"apply_event",event:{type:"error",message:Cb(qe)}}))}},[s.id,n.rawMessages,e,j,f,W]),ie=Y.useCallback(async(I,S)=>{const re=S.trim();if(!re||f)return;const ae=s.id,le=e.cwd,fe=n.rawMessages,_e=R.current+1;R.current=_e,w.current=_e,r({type:"rewind_and_start_turn",rewindTo:I,content:re}),d(!0),b("ready");try{const ue=await fetch("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:ae,message:re,rewind_to:I,provider:e.provider||void 0,model:e.model||void 0,cwd:e.cwd,reasoning_effort:e.reasoningEffort&&e.reasoningEffort!=="auto"?e.reasoningEffort:void 0})}),Be=await ue.json(),qe=Ab({pendingRequestToken:w.current,requestToken:_e,activeSessionId:C.current.id,sessionId:ae,activeCwd:x.current,requestCwd:le});if(!ue.ok){if(qe){w.current=0,r({type:"set_messages",messages:fe});const ht=Tb(Be),Ye=Rb(ht);if(ue.status===409&&Ye?.id){W(Ye,ae,Ye.last_seq||0);return}d(!1),b("error"),r({type:"apply_event",event:{type:"error",message:Ob(ht,"Failed to start task")}})}return}if(w.current=0,!qe)return;const dt=Be;if(dt.session){const ht=dt.session;C.current=ht,c(ht),$d(le,ht.id)}j(),W(dt.run,ae,0)}catch(ue){w.current===_e&&C.current.id===ae&&(w.current=0,r({type:"set_messages",messages:fe}),d(!1),b("error"),r({type:"apply_event",event:{type:"error",message:Cb(ue)}}))}},[s.id,n.rawMessages,e,j,f,W]),B=Y.useCallback(async()=>{try{if(!(await fetch(`/api/sessions/${encodeURIComponent(s.id)}/clear`,{method:"POST"})).ok)throw new Error("Failed to clear session");r({type:"set_messages",messages:[]})}catch(I){console.error("Failed to clear:",I)}},[s.id]),ne=Y.useCallback(()=>{const I=Q.current?.id;V(),I&&F(I)},[F,V]),de=Y.useCallback(()=>{if(h)return;V(),_.current=!0,T.current+=1;const I=Us();C.current=I,c(I),r({type:"set_messages",messages:[]}),j()},[j,h,V]),xe=Y.useCallback(async I=>{if(!I||I===s.id)return;V(),_.current=!0;const S=T.current+1;T.current=S,y(!0);try{await ge(I,{requestCwd:e.cwd,requestToken:S}),j()}catch(re){console.error("Failed to load session:",re)}finally{jl({pendingRequestToken:T.current,requestToken:S,activeCwd:x.current,requestCwd:e.cwd})&&y(!1)}},[s.id,e.cwd,j,ge,V]),A=Y.useCallback(async I=>{if(!(!I||a.length===1||I===s.id)){y(!0);try{if(!(await fetch(`/api/sessions/${encodeURIComponent(I)}`,{method:"DELETE"})).ok)throw new Error("Failed to delete session");o(re=>re.filter(ae=>ae.id!==I))}catch(S){console.error("Failed to delete session:",S)}finally{y(!1)}}},[s.id,a.length]),M=Y.useCallback(async()=>{if(_.current)return;_.current=!0;const I=e.cwd,S=T.current+1;T.current=S,y(!0);try{const re=qz(I),ae=await fetch(`/api/sessions?cwd=${encodeURIComponent(I)}`);if(!ae.ok)throw new Error("Failed to load sessions");const le=await ae.json();if(!jl({pendingRequestToken:T.current,requestToken:S,activeCwd:x.current,requestCwd:I}))return;const fe=le.sessions||[];o(fe);const _e=$z(fe,re);if(_e){const ue=fe.find(Be=>Be.id===_e);ue&&(C.current=ue,c(ue)),await ge(_e,{requestCwd:I,requestToken:S})}else{const ue=Us();C.current=ue,c(ue),o([ue]),r({type:"set_messages",messages:[]}),d(!1)}}catch(re){console.error("Failed to initialize sessions:",re)}finally{jl({pendingRequestToken:T.current,requestToken:S,activeCwd:x.current,requestCwd:I})&&y(!1)}},[e.cwd,ge]);return Y.useEffect(()=>{C.current=s},[s]),Y.useEffect(()=>{M()},[M]),Y.useEffect(()=>{if(x.current===e.cwd)return;V(),T.current+=1,x.current=e.cwd,_.current=!1,r({type:"set_messages",messages:[]}),o([]);const I=Us();c(I),C.current=I,M()},[e.cwd,M,V]),Y.useEffect(()=>()=>{V()},[V]),{messages:P,loading:f,status:q,sessions:a,activeSession:s,sessionLoading:h,send:oe,rewindAndSend:ie,clear:B,cancel:ne,createSession:de,selectSession:xe,deleteSession:A}}async function Qz(e){const n=await fetch(e);if(!n.ok){let r=`Request failed with status ${n.status}`;try{const a=await n.json();typeof a?.detail=="string"&&a.detail&&(r=a.detail)}catch{}throw new Error(r)}return n.json()}function Zz(){const[e,n]=Y.useState(Uz),[r,a]=Y.useState(""),[o,s]=Y.useState([]),[c,f]=Y.useState(Vz),[d,h]=Y.useState(!1),{theme:y,setTheme:g}=Rz(),b=`/api/config?cwd=${encodeURIComponent(e.cwd)}`,{data:_=null,error:x}=Kw(b,Qz,{keepPreviousData:!0,onError:I=>{console.error("Failed to load config:",I)}}),{messages:C,loading:R,sessions:w,activeSession:T,send:N,rewindAndSend:Z,cancel:Q,createSession:D,selectSession:P,deleteSession:q}=Xz(e);Y.useEffect(()=>{_&&n(I=>{const S=_z(I,_);return I.provider===S.provider&&I.model===S.model&&I.reasoningEffort===S.reasoningEffort?I:(kb(S),S)})},[_]);const F=Y.useCallback(I=>{if(I.cwd!==e.cwd){const S=Hz(c,I.cwd);f(S),Pz(S)}n(I),kb(I)},[e.cwd,c]),j=Y.useRef(r);j.current=r;const V=Y.useRef(o);V.current=o;const W=Y.useCallback(()=>{s(I=>{for(const S of I)URL.revokeObjectURL(S.preview);return[]})},[]),ge=Y.useCallback(()=>{const I=V.current;N(j.current,I.length?I:void 0),a(""),W()},[N,W]),oe=Y.useCallback(I=>{s(S=>[...S,...I])},[]),ie=Y.useCallback(I=>{s(S=>{const re=[...S],ae=re.splice(I,1);return ae[0]&&URL.revokeObjectURL(ae[0].preview),re})},[]),B=e.provider||_?.default?.provider||"",ne=_?.providers?.[B],de=e.model||_?.default?.model||"",xe=Y.useMemo(()=>!!(ne?.supports_image_input&&ne.image_input_models?.includes(de)),[ne,de]);Y.useEffect(()=>{xe||W()},[xe,W]);const A=Y.useCallback(I=>{P(I),h(!1),W()},[P,W]),M=Y.useCallback(()=>{D(),h(!1),W()},[D,W]);return O.jsx(mz,{children:O.jsxs("div",{className:"relative flex h-full min-h-0 overflow-hidden",children:[d&&O.jsx("button",{type:"button","aria-label":"Close sidebar",tabIndex:-1,className:"fixed inset-0 z-40 bg-background/60 backdrop-blur-sm md:hidden cursor-default",onClick:()=>h(!1)}),O.jsx("div",{className:`
|
|
199
|
+
max-md:fixed max-md:inset-y-0 max-md:left-0 max-md:z-50
|
|
200
|
+
max-md:transition-transform max-md:duration-300 max-md:ease-out
|
|
201
|
+
max-md:overscroll-y-contain
|
|
202
|
+
${d?"max-md:translate-x-0":"max-md:-translate-x-full"}
|
|
203
|
+
`,children:O.jsx(Cz,{sessions:w,activeSession:T,onSelectSession:A,onCreateSession:M,onDeleteSession:q,config:e,onUpdateConfig:F,cwdHistory:c,remoteConfig:_,theme:y,setTheme:g,className:"h-full"})}),O.jsxs("main",{className:"relative flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background",children:[O.jsx(gz,{title:T?.title,onMenuToggle:()=>h(I=>!I),onCreateSession:M}),x&&!_?O.jsx("div",{className:"flex flex-1 items-center justify-center px-6",children:O.jsx("div",{className:"max-w-xl font-mono text-xs leading-6 text-muted-foreground",children:x.message})}):O.jsxs(O.Fragment,{children:[O.jsx(pz,{messages:C,loading:R,onRewindAndSend:Z}),O.jsx("div",{className:"pointer-events-none absolute bottom-0 left-0 right-0 h-24 bg-gradient-to-t from-background via-background/80 to-transparent"}),O.jsx("div",{className:"shrink-0 relative z-10 pb-4 max-md:pb-[max(0.5rem,env(safe-area-inset-bottom))] pt-1",children:O.jsx(IA,{input:r,setInput:a,loading:R,onSend:ge,onCancel:Q,supportsImages:xe,images:o,onAttachImages:oe,onRemoveImage:ie})})]})]})]})})}function Kz(){return O.jsx(Tz,{children:O.jsx(Zz,{})})}const Xx=document.getElementById("root");if(!Xx)throw new Error("Root element not found");_w.createRoot(Xx).render(O.jsx(fu.StrictMode,{children:O.jsx(Kz,{})}));export{X4 as S,Nx as a,Y4 as c,eI as h,O as j,F4 as l,Y as r};
|