@jawkx1999/opencr 0.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +51 -0
- package/dist/client/assets/abap-BdImnpbu.js +1 -0
- package/dist/client/assets/actionscript-3-CoDkCxhg.js +1 -0
- package/dist/client/assets/ada-bCR0ucgS.js +1 -0
- package/dist/client/assets/andromeeda-C4gqWexZ.js +1 -0
- package/dist/client/assets/angular-html-CU67Zn6k.js +1 -0
- package/dist/client/assets/angular-ts-BwZT4LLn.js +1 -0
- package/dist/client/assets/apache-Pmp26Uib.js +1 -0
- package/dist/client/assets/apex-D8_7TLub.js +1 -0
- package/dist/client/assets/apl-dKokRX4l.js +1 -0
- package/dist/client/assets/applescript-Co6uUVPk.js +1 -0
- package/dist/client/assets/ara-BRHolxvo.js +1 -0
- package/dist/client/assets/asciidoc-Ve4PFQV2.js +1 -0
- package/dist/client/assets/asm-D_Q5rh1f.js +1 -0
- package/dist/client/assets/astro-CbQHKStN.js +1 -0
- package/dist/client/assets/aurora-x-D-2ljcwZ.js +1 -0
- package/dist/client/assets/awk-DMzUqQB5.js +1 -0
- package/dist/client/assets/ayu-dark-DYE7WIF3.js +1 -0
- package/dist/client/assets/ayu-light-BA47KaF1.js +1 -0
- package/dist/client/assets/ayu-mirage-32ctXXKs.js +1 -0
- package/dist/client/assets/ballerina-BFfxhgS-.js +1 -0
- package/dist/client/assets/bat-BkioyH1T.js +1 -0
- package/dist/client/assets/beancount-k_qm7-4y.js +1 -0
- package/dist/client/assets/berry-uYugtg8r.js +1 -0
- package/dist/client/assets/bibtex-CHM0blh-.js +1 -0
- package/dist/client/assets/bicep-Bmn6On1c.js +1 -0
- package/dist/client/assets/bird2-DPOp833l.js +1 -0
- package/dist/client/assets/blade-D4QpJJKB.js +1 -0
- package/dist/client/assets/bsl-BO_Y6i37.js +1 -0
- package/dist/client/assets/c-BIGW1oBm.js +1 -0
- package/dist/client/assets/c3-eo99z4R2.js +1 -0
- package/dist/client/assets/cadence-Bv_4Rxtq.js +1 -0
- package/dist/client/assets/cairo-KRGpt6FW.js +1 -0
- package/dist/client/assets/catppuccin-frappe-DFWUc33u.js +1 -0
- package/dist/client/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
- package/dist/client/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
- package/dist/client/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
- package/dist/client/assets/clarity-D53aC0YG.js +1 -0
- package/dist/client/assets/clojure-P80f7IUj.js +1 -0
- package/dist/client/assets/cmake-D1j8_8rp.js +1 -0
- package/dist/client/assets/cobol-nwyudZeR.js +1 -0
- package/dist/client/assets/codeowners-Bp6g37R7.js +1 -0
- package/dist/client/assets/codeql-DsOJ9woJ.js +1 -0
- package/dist/client/assets/coffee-Ch7k5sss.js +1 -0
- package/dist/client/assets/common-lisp-Cg-RD9OK.js +1 -0
- package/dist/client/assets/coq-DkFqJrB1.js +1 -0
- package/dist/client/assets/cpp-CofmeUqb.js +1 -0
- package/dist/client/assets/crystal-tKQVLTB8.js +1 -0
- package/dist/client/assets/csharp-COcwbKMJ.js +1 -0
- package/dist/client/assets/css-DPfMkruS.js +1 -0
- package/dist/client/assets/csv-fuZLfV_i.js +1 -0
- package/dist/client/assets/cue-D82EKSYY.js +1 -0
- package/dist/client/assets/cypher-COkxafJQ.js +1 -0
- package/dist/client/assets/d-85-TOEBH.js +1 -0
- package/dist/client/assets/dark-plus-C3mMm8J8.js +1 -0
- package/dist/client/assets/dart-CF10PKvl.js +1 -0
- package/dist/client/assets/dax-CEL-wOlO.js +1 -0
- package/dist/client/assets/desktop-BmXAJ9_W.js +1 -0
- package/dist/client/assets/diff-D97Zzqfu.js +1 -0
- package/dist/client/assets/docker-BcOcwvcX.js +1 -0
- package/dist/client/assets/dotenv-Da5cRb03.js +1 -0
- package/dist/client/assets/dracula-BzJJZx-M.js +1 -0
- package/dist/client/assets/dracula-soft-BXkSAIEj.js +1 -0
- package/dist/client/assets/dream-maker-BtqSS_iP.js +1 -0
- package/dist/client/assets/edge-BkV0erSs.js +1 -0
- package/dist/client/assets/elixir-CDX3lj18.js +1 -0
- package/dist/client/assets/elm-DbKCFpqz.js +1 -0
- package/dist/client/assets/emacs-lisp-C9XAeP06.js +1 -0
- package/dist/client/assets/erb-B12qg9BL.js +1 -0
- package/dist/client/assets/erlang-DsQrWhSR.js +1 -0
- package/dist/client/assets/everforest-dark-BgDCqdQA.js +1 -0
- package/dist/client/assets/everforest-light-C8M2exoo.js +1 -0
- package/dist/client/assets/fennel-BYunw83y.js +1 -0
- package/dist/client/assets/fish-BvzEVeQv.js +1 -0
- package/dist/client/assets/fluent-C4IJs8-o.js +1 -0
- package/dist/client/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
- package/dist/client/assets/fortran-free-form-BxgE0vQu.js +1 -0
- package/dist/client/assets/fsharp-CXgrBDvD.js +1 -0
- package/dist/client/assets/gdresource-BOOCDP_w.js +1 -0
- package/dist/client/assets/gdscript-C5YyOfLZ.js +1 -0
- package/dist/client/assets/gdshader-DkwncUOv.js +1 -0
- package/dist/client/assets/geist-mono-cyrillic-wght-normal-BZdD_g9V.woff2 +0 -0
- package/dist/client/assets/geist-mono-latin-ext-wght-normal-b6lpi8_2.woff2 +0 -0
- package/dist/client/assets/geist-mono-latin-wght-normal-Cjtb1TV-.woff2 +0 -0
- package/dist/client/assets/genie-D0YGMca9.js +1 -0
- package/dist/client/assets/gherkin-DyxjwDmM.js +1 -0
- package/dist/client/assets/git-commit-F4YmCXRG.js +1 -0
- package/dist/client/assets/git-rebase-r7XF79zn.js +1 -0
- package/dist/client/assets/github-dark-DHJKELXO.js +1 -0
- package/dist/client/assets/github-dark-default-Cuk6v7N8.js +1 -0
- package/dist/client/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- package/dist/client/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- package/dist/client/assets/github-light-DAi9KRSo.js +1 -0
- package/dist/client/assets/github-light-default-D7oLnXFd.js +1 -0
- package/dist/client/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- package/dist/client/assets/gleam-BspZqrRM.js +1 -0
- package/dist/client/assets/glimmer-js-Rg0-pVw9.js +1 -0
- package/dist/client/assets/glimmer-ts-U6CK756n.js +1 -0
- package/dist/client/assets/glsl-DplSGwfg.js +1 -0
- package/dist/client/assets/gn-n2N0HUVH.js +1 -0
- package/dist/client/assets/gnuplot-DdkO51Og.js +1 -0
- package/dist/client/assets/go-CxLEBnE3.js +1 -0
- package/dist/client/assets/graphql-ChdNCCLP.js +1 -0
- package/dist/client/assets/groovy-gcz8RCvz.js +1 -0
- package/dist/client/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
- package/dist/client/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
- package/dist/client/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
- package/dist/client/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
- package/dist/client/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
- package/dist/client/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
- package/dist/client/assets/hack-CaT9iCJl.js +1 -0
- package/dist/client/assets/haml-B8DHNrY2.js +1 -0
- package/dist/client/assets/handlebars-BL8al0AC.js +1 -0
- package/dist/client/assets/haskell-Df6bDoY_.js +1 -0
- package/dist/client/assets/haxe-CzTSHFRz.js +1 -0
- package/dist/client/assets/hcl-BWvSN4gD.js +1 -0
- package/dist/client/assets/hjson-D5-asLiD.js +1 -0
- package/dist/client/assets/hlsl-D3lLCCz7.js +1 -0
- package/dist/client/assets/horizon-BUw7H-hv.js +1 -0
- package/dist/client/assets/horizon-bright-Cn-bp-IR.js +1 -0
- package/dist/client/assets/houston-DnULxvSX.js +1 -0
- package/dist/client/assets/html-GMplVEZG.js +1 -0
- package/dist/client/assets/html-derivative-BFtXZ54Q.js +1 -0
- package/dist/client/assets/http-jrhK8wxY.js +1 -0
- package/dist/client/assets/hurl-irOxFIW8.js +1 -0
- package/dist/client/assets/hxml-Bvhsp5Yf.js +1 -0
- package/dist/client/assets/hy-DFXneXwc.js +1 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-400-normal-BTotfTJu.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-400-normal-DZqxrq2p.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-500-normal-ByOcLdNv.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-500-normal-CocWQlwt.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-600-normal-71GNu3SW.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-600-normal-BGq0mW3O.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-ext-400-normal-Dsrv2Tcn.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-ext-400-normal-g30qAdWV.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-ext-500-normal-Cs5J6C77.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-ext-500-normal-DB5PtV2g.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-ext-600-normal-Bz0x94Yp.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-cyrillic-ext-600-normal-DUMzJB7m.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-greek-400-normal-D9ESIMu3.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-greek-400-normal-_efipK4i.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-greek-500-normal-CuWXN6rf.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-greek-500-normal-JMMifIXV.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-greek-600-normal-D-CqTdkO.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-greek-600-normal-DzTrcv_p.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-500-normal-6ng42L7E.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-500-normal-BgVn5rGT.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-ext-400-normal-C5H60-Va.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-ext-400-normal-RBey6euL.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-ext-500-normal-D0aIdm-b.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-ext-500-normal-DakdToA3.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-ext-600-normal-DIrixKbi.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-latin-ext-600-normal-DOrvGEcy.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-vietnamese-400-normal-DG4YqDda.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-vietnamese-400-normal-fK1oJ5dG.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-vietnamese-500-normal-BEb3_waV.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-vietnamese-500-normal-e4dixQRQ.woff2 +0 -0
- package/dist/client/assets/ibm-plex-sans-vietnamese-600-normal-DgdngZtN.woff +0 -0
- package/dist/client/assets/ibm-plex-sans-vietnamese-600-normal-DpPYBSTl.woff2 +0 -0
- package/dist/client/assets/imba-DGztddWO.js +1 -0
- package/dist/client/assets/index-BISvyTuG.css +1 -0
- package/dist/client/assets/index-Co9fPoWo.js +1970 -0
- package/dist/client/assets/ini-BEwlwnbL.js +1 -0
- package/dist/client/assets/java-CylS5w8V.js +1 -0
- package/dist/client/assets/javascript-wDzz0qaB.js +1 -0
- package/dist/client/assets/jinja-4LBKfQ-Z.js +1 -0
- package/dist/client/assets/jison-wvAkD_A8.js +1 -0
- package/dist/client/assets/json-Cp-IABpG.js +1 -0
- package/dist/client/assets/json5-C9tS-k6U.js +1 -0
- package/dist/client/assets/jsonc-Des-eS-w.js +1 -0
- package/dist/client/assets/jsonl-DcaNXYhu.js +1 -0
- package/dist/client/assets/jsonnet-DFQXde-d.js +1 -0
- package/dist/client/assets/jssm-C2t-YnRu.js +1 -0
- package/dist/client/assets/jsx-g9-lgVsj.js +1 -0
- package/dist/client/assets/julia-CxzCAyBv.js +1 -0
- package/dist/client/assets/just-Cw27pwNe.js +1 -0
- package/dist/client/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
- package/dist/client/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
- package/dist/client/assets/kanagawa-wave-DWedfzmr.js +1 -0
- package/dist/client/assets/kdl-DV7GczEv.js +1 -0
- package/dist/client/assets/kotlin-BdnUsdx6.js +1 -0
- package/dist/client/assets/kusto-DZf3V79B.js +1 -0
- package/dist/client/assets/laserwave-DUszq2jm.js +1 -0
- package/dist/client/assets/latex-CWtU0Tv5.js +1 -0
- package/dist/client/assets/lean-BZvkOJ9d.js +1 -0
- package/dist/client/assets/less-B1dDrJ26.js +1 -0
- package/dist/client/assets/light-plus-B7mTdjB0.js +1 -0
- package/dist/client/assets/liquid-DYVedYrR.js +1 -0
- package/dist/client/assets/llvm-DjAJT7YJ.js +1 -0
- package/dist/client/assets/log-2UxHyX5q.js +1 -0
- package/dist/client/assets/logo-BtOb2qkB.js +1 -0
- package/dist/client/assets/lua-BaeVxFsk.js +1 -0
- package/dist/client/assets/luau-C-HG3fhB.js +1 -0
- package/dist/client/assets/make-CHLpvVh8.js +1 -0
- package/dist/client/assets/markdown-Cvjx9yec.js +1 -0
- package/dist/client/assets/marko-CnJfTvn9.js +1 -0
- package/dist/client/assets/material-theme-D5KoaKCx.js +1 -0
- package/dist/client/assets/material-theme-darker-BfHTSMKl.js +1 -0
- package/dist/client/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- package/dist/client/assets/material-theme-ocean-CyktbL80.js +1 -0
- package/dist/client/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- package/dist/client/assets/matlab-D7o27uSR.js +1 -0
- package/dist/client/assets/mdc-BMNejdWA.js +1 -0
- package/dist/client/assets/mdx-Cmh6b_Ma.js +1 -0
- package/dist/client/assets/mermaid-mWjccvbQ.js +1 -0
- package/dist/client/assets/min-dark-CafNBF8u.js +1 -0
- package/dist/client/assets/min-light-CTRr51gU.js +1 -0
- package/dist/client/assets/mipsasm-CKIfxQSi.js +1 -0
- package/dist/client/assets/mojo-rZm6bMo-.js +1 -0
- package/dist/client/assets/monokai-D4h5O-jR.js +1 -0
- package/dist/client/assets/moonbit-_H4v1dQx.js +1 -0
- package/dist/client/assets/move-IF9eRakj.js +1 -0
- package/dist/client/assets/narrat-DRg8JJMk.js +1 -0
- package/dist/client/assets/nextflow-Zz6hmt5N.js +1 -0
- package/dist/client/assets/nextflow-groovy-BeH2EWoN.js +1 -0
- package/dist/client/assets/nginx-BpAMiNFr.js +1 -0
- package/dist/client/assets/night-owl-C39BiMTA.js +1 -0
- package/dist/client/assets/night-owl-light-CMTm3GFP.js +1 -0
- package/dist/client/assets/nim-CVrawwO9.js +1 -0
- package/dist/client/assets/nix-CwoSXNpI.js +1 -0
- package/dist/client/assets/nord-Ddv68eIx.js +1 -0
- package/dist/client/assets/nushell-Cz2AlsmD.js +1 -0
- package/dist/client/assets/objective-c-DXmwc3jG.js +1 -0
- package/dist/client/assets/objective-cpp-CLxacb5B.js +1 -0
- package/dist/client/assets/ocaml-C0hk2d4L.js +1 -0
- package/dist/client/assets/odin-BBf5iR-q.js +1 -0
- package/dist/client/assets/one-dark-pro-DVMEJ2y_.js +1 -0
- package/dist/client/assets/one-light-C3Wv6jpd.js +1 -0
- package/dist/client/assets/openscad-C4EeE6gA.js +1 -0
- package/dist/client/assets/pascal-D93ZcfNL.js +1 -0
- package/dist/client/assets/perl-C0TMdlhV.js +1 -0
- package/dist/client/assets/php-Dhbhpdrm.js +1 -0
- package/dist/client/assets/pierre-dark-ClCaJvdG.js +1 -0
- package/dist/client/assets/pierre-light-zjGsWSiE.js +1 -0
- package/dist/client/assets/pkl-u5AG7uiY.js +1 -0
- package/dist/client/assets/plastic-3e1v2bzS.js +1 -0
- package/dist/client/assets/plsql-ChMvpjG-.js +1 -0
- package/dist/client/assets/po-BTJTHyun.js +1 -0
- package/dist/client/assets/poimandres-CS3Unz2-.js +1 -0
- package/dist/client/assets/polar-C0HS_06l.js +1 -0
- package/dist/client/assets/postcss-CXtECtnM.js +1 -0
- package/dist/client/assets/powerquery-CEu0bR-o.js +1 -0
- package/dist/client/assets/powershell-Dpen1YoG.js +1 -0
- package/dist/client/assets/prisma-Dd19v3D-.js +1 -0
- package/dist/client/assets/prolog-CbFg5uaA.js +1 -0
- package/dist/client/assets/proto-C7zT0LnQ.js +1 -0
- package/dist/client/assets/pug-CGlum2m_.js +1 -0
- package/dist/client/assets/puppet-BMWR74SV.js +1 -0
- package/dist/client/assets/purescript-CklMAg4u.js +1 -0
- package/dist/client/assets/python-B6aJPvgy.js +1 -0
- package/dist/client/assets/qml-3beO22l8.js +1 -0
- package/dist/client/assets/qmldir-C8lEn-DE.js +1 -0
- package/dist/client/assets/qss-IeuSbFQv.js +1 -0
- package/dist/client/assets/r-Dspwwk_N.js +1 -0
- package/dist/client/assets/racket-BqYA7rlc.js +1 -0
- package/dist/client/assets/raku-DXvB9xmW.js +1 -0
- package/dist/client/assets/razor-Uh8Bk_45.js +1 -0
- package/dist/client/assets/red-bN70gL4F.js +1 -0
- package/dist/client/assets/reg-C-SQnVFl.js +1 -0
- package/dist/client/assets/regexp-CDVJQ6XC.js +1 -0
- package/dist/client/assets/rel-C3B-1QV4.js +1 -0
- package/dist/client/assets/riscv-BM1_JUlF.js +1 -0
- package/dist/client/assets/ron-D8l8udqQ.js +1 -0
- package/dist/client/assets/rose-pine-dawn-DHQR4-dF.js +1 -0
- package/dist/client/assets/rose-pine-moon-D4_iv3hh.js +1 -0
- package/dist/client/assets/rose-pine-qdsjHGoJ.js +1 -0
- package/dist/client/assets/rosmsg-BJDFO7_C.js +1 -0
- package/dist/client/assets/rst-BrH8l1NY.js +1 -0
- package/dist/client/assets/ruby-Dw2BHqvy.js +1 -0
- package/dist/client/assets/rust-B1yitclQ.js +1 -0
- package/dist/client/assets/sas-cz2c8ADy.js +1 -0
- package/dist/client/assets/sass-Cj5Yp3dK.js +1 -0
- package/dist/client/assets/scala-C151Ov-r.js +1 -0
- package/dist/client/assets/scheme-C98Dy4si.js +1 -0
- package/dist/client/assets/scss-OYdSNvt2.js +1 -0
- package/dist/client/assets/sdbl-DVxCFoDh.js +1 -0
- package/dist/client/assets/shaderlab-Dg9Lc6iA.js +1 -0
- package/dist/client/assets/shellscript-Yzrsuije.js +1 -0
- package/dist/client/assets/shellsession-BADoaaVG.js +1 -0
- package/dist/client/assets/slack-dark-BthQWCQV.js +1 -0
- package/dist/client/assets/slack-ochin-DqwNpetd.js +1 -0
- package/dist/client/assets/smalltalk-BERRCDM3.js +1 -0
- package/dist/client/assets/snazzy-light-Bw305WKR.js +1 -0
- package/dist/client/assets/solarized-dark-DXbdFlpD.js +1 -0
- package/dist/client/assets/solarized-light-L9t79GZl.js +1 -0
- package/dist/client/assets/solidity-rGO070M0.js +1 -0
- package/dist/client/assets/soy-Brmx7dQM.js +1 -0
- package/dist/client/assets/sparql-rVzFXLq3.js +1 -0
- package/dist/client/assets/splunk-BtCnVYZw.js +1 -0
- package/dist/client/assets/sql-BLtJtn59.js +1 -0
- package/dist/client/assets/ssh-config-_ykCGR6B.js +1 -0
- package/dist/client/assets/stata-BH5u7GGu.js +1 -0
- package/dist/client/assets/stylus-BEDo0Tqx.js +1 -0
- package/dist/client/assets/surrealql-Bq5Q-fJD.js +1 -0
- package/dist/client/assets/svelte-C_ipcX3V.js +1 -0
- package/dist/client/assets/swift-D82vCrfD.js +1 -0
- package/dist/client/assets/synthwave-84-CbfX1IO0.js +1 -0
- package/dist/client/assets/system-verilog-CnnmHF94.js +1 -0
- package/dist/client/assets/systemd-4A_iFExJ.js +1 -0
- package/dist/client/assets/talonscript-CkByrt1z.js +1 -0
- package/dist/client/assets/tasl-QIJgUcNo.js +1 -0
- package/dist/client/assets/tcl-dwOrl1Do.js +1 -0
- package/dist/client/assets/templ-P3uqSqPl.js +1 -0
- package/dist/client/assets/terraform-BETggiCN.js +1 -0
- package/dist/client/assets/tex-idrVyKtj.js +1 -0
- package/dist/client/assets/tokyo-night-hegEt444.js +1 -0
- package/dist/client/assets/toml-vGWfd6FD.js +1 -0
- package/dist/client/assets/ts-tags-zn1MmPIZ.js +1 -0
- package/dist/client/assets/tsv-B_m7g4N7.js +1 -0
- package/dist/client/assets/tsx-COt5Ahok.js +1 -0
- package/dist/client/assets/turtle-BsS91CYL.js +1 -0
- package/dist/client/assets/twig-DNn4PbVi.js +1 -0
- package/dist/client/assets/typescript-BPQ3VLAy.js +1 -0
- package/dist/client/assets/typespec-BGHnOYBU.js +1 -0
- package/dist/client/assets/typst-DHCkPAjA.js +1 -0
- package/dist/client/assets/v-BcVCzyr7.js +1 -0
- package/dist/client/assets/vala-CsfeWuGM.js +1 -0
- package/dist/client/assets/vb-D17OF-Vu.js +1 -0
- package/dist/client/assets/verilog-BQ8w6xss.js +1 -0
- package/dist/client/assets/vesper-DU1UobuO.js +1 -0
- package/dist/client/assets/vhdl-CeAyd5Ju.js +1 -0
- package/dist/client/assets/viml-CJc9bBzg.js +1 -0
- package/dist/client/assets/vitesse-black-Bkuqu6BP.js +1 -0
- package/dist/client/assets/vitesse-dark-D0r3Knsf.js +1 -0
- package/dist/client/assets/vitesse-light-CVO1_9PV.js +1 -0
- package/dist/client/assets/vue-DN_0RTcg.js +1 -0
- package/dist/client/assets/vue-html-AaS7Mt5G.js +1 -0
- package/dist/client/assets/vue-vine-CQOfvN7w.js +1 -0
- package/dist/client/assets/vyper-CDx5xZoG.js +1 -0
- package/dist/client/assets/wasm-CG6Dc4jp.js +1 -0
- package/dist/client/assets/wasm-MzD3tlZU.js +1 -0
- package/dist/client/assets/wenyan-BV7otONQ.js +1 -0
- package/dist/client/assets/wgsl-Dx-B1_4e.js +1 -0
- package/dist/client/assets/wikitext-BhOHFoWU.js +1 -0
- package/dist/client/assets/wit-5i3qLPDT.js +1 -0
- package/dist/client/assets/wolfram-lXgVvXCa.js +1 -0
- package/dist/client/assets/xml-sdJ4AIDG.js +1 -0
- package/dist/client/assets/xsl-CtQFsRM5.js +1 -0
- package/dist/client/assets/yaml-Buea-lGh.js +1 -0
- package/dist/client/assets/zenscript-DVFEvuxE.js +1 -0
- package/dist/client/assets/zig-VOosw3JB.js +1 -0
- package/dist/client/index.html +13 -0
- package/dist/server/cli/index.js +110 -0
- package/dist/server/cli/index.js.map +1 -0
- package/dist/server/cli/utils.js +307 -0
- package/dist/server/cli/utils.js.map +1 -0
- package/dist/server/core/reviewPayload.js +39 -0
- package/dist/server/core/reviewPayload.js.map +1 -0
- package/dist/server/core/reviewRequest.js +127 -0
- package/dist/server/core/reviewRequest.js.map +1 -0
- package/dist/server/core/server.js +94 -0
- package/dist/server/core/server.js.map +1 -0
- package/dist/server/server/app.js +72 -0
- package/dist/server/server/app.js.map +1 -0
- package/dist/server/shared/diffMode.js +9 -0
- package/dist/server/shared/diffMode.js.map +1 -0
- package/dist/server/shared/types.js +2 -0
- package/dist/server/shared/types.js.map +1 -0
- package/package.json +76 -0
|
@@ -0,0 +1,1970 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-D4QpJJKB.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-B12qg9BL.js","assets/ruby-Dw2BHqvy.js","assets/haml-B8DHNrY2.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-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-CxzCAyBv.js","assets/r-Dspwwk_N.js","assets/just-Cw27pwNe.js","assets/perl-C0TMdlhV.js","assets/latex-CWtU0Tv5.js","assets/tex-idrVyKtj.js","assets/liquid-DYVedYrR.js","assets/marko-CnJfTvn9.js","assets/less-B1dDrJ26.js","assets/mdc-BMNejdWA.js","assets/nextflow-Zz6hmt5N.js","assets/nextflow-groovy-BeH2EWoN.js","assets/nginx-BpAMiNFr.js","assets/nim-CVrawwO9.js","assets/php-Dhbhpdrm.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-Uh8Bk_45.js","assets/csharp-COcwbKMJ.js","assets/rst-BrH8l1NY.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/surrealql-Bq5Q-fJD.js","assets/svelte-C_ipcX3V.js","assets/templ-P3uqSqPl.js","assets/go-CxLEBnE3.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-DNn4PbVi.js","assets/vue-DN_0RTcg.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-CQOfvN7w.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function cE(e,n){for(var r=0;r<n.length;r++){const a=n[r];if(typeof a!="string"&&!Array.isArray(a)){for(const l in a)if(l!=="default"&&!(l in e)){const u=Object.getOwnPropertyDescriptor(a,l);u&&Object.defineProperty(e,l,u.get?u:{enumerable:!0,get:()=>a[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&a(c)}).observe(document,{childList:!0,subtree:!0});function r(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(l){if(l.ep)return;l.ep=!0;const u=r(l);fetch(l.href,u)}})();function py(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nf={exports:{}},$o={};var eb;function dE(){if(eb)return $o;eb=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(a,l,u){var c=null;if(u!==void 0&&(c=""+u),l.key!==void 0&&(c=""+l.key),"key"in l){u={};for(var d in l)d!=="key"&&(u[d]=l[d])}else u=l;return l=u.ref,{$$typeof:e,type:a,key:c,ref:l!==void 0?l:null,props:u}}return $o.Fragment=n,$o.jsx=r,$o.jsxs=r,$o}var tb;function fE(){return tb||(tb=1,nf.exports=dE()),nf.exports}var M=fE(),rf={exports:{}},ye={};var nb;function hE(){if(nb)return ye;nb=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),b=Symbol.iterator;function _(N){return N===null||typeof N!="object"?null:(N=b&&N[b]||N["@@iterator"],typeof N=="function"?N:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,L={};function w(N,q,ae){this.props=N,this.context=q,this.refs=L,this.updater=ae||S}w.prototype.isReactComponent={},w.prototype.setState=function(N,q){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,q,"setState")},w.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function C(){}C.prototype=w.prototype;function A(N,q,ae){this.props=N,this.context=q,this.refs=L,this.updater=ae||S}var R=A.prototype=new C;R.constructor=A,E(R,w.prototype),R.isPureReactComponent=!0;var T=Array.isArray;function P(){}var H={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function K(N,q,ae){var oe=ae.ref;return{$$typeof:e,type:N,key:q,ref:oe!==void 0?oe:null,props:ae}}function Z(N,q){return K(N.type,q,N.props)}function F(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function V(N){var q={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(ae){return q[ae]})}var te=/\/+/g;function J(N,q){return typeof N=="object"&&N!==null&&N.key!=null?V(""+N.key):q.toString(36)}function W(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(P,P):(N.status="pending",N.then(function(q){N.status==="pending"&&(N.status="fulfilled",N.value=q)},function(q){N.status==="pending"&&(N.status="rejected",N.reason=q)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function D(N,q,ae,oe,ue){var le=typeof N;(le==="undefined"||le==="boolean")&&(N=null);var de=!1;if(N===null)de=!0;else switch(le){case"bigint":case"string":case"number":de=!0;break;case"object":switch(N.$$typeof){case e:case n:de=!0;break;case g:return de=N._init,D(de(N._payload),q,ae,oe,ue)}}if(de)return ue=ue(N),de=oe===""?"."+J(N,0):oe,T(ue)?(ae="",de!=null&&(ae=de.replace(te,"$&/")+"/"),D(ue,q,ae,"",function(Be){return Be})):ue!=null&&(F(ue)&&(ue=Z(ue,ae+(ue.key==null||N&&N.key===ue.key?"":(""+ue.key).replace(te,"$&/")+"/")+de)),q.push(ue)),1;de=0;var Ce=oe===""?".":oe+":";if(T(N))for(var he=0;he<N.length;he++)oe=N[he],le=Ce+J(oe,he),de+=D(oe,q,ae,le,ue);else if(he=_(N),typeof he=="function")for(N=he.call(N),he=0;!(oe=N.next()).done;)oe=oe.value,le=Ce+J(oe,he++),de+=D(oe,q,ae,le,ue);else if(le==="object"){if(typeof N.then=="function")return D(W(N),q,ae,oe,ue);throw q=String(N),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return de}function Y(N,q,ae){if(N==null)return N;var oe=[],ue=0;return D(N,oe,"","",function(le){return q.call(ae,le,ue++)}),oe}function re(N){if(N._status===-1){var q=N._result;q=q(),q.then(function(ae){(N._status===0||N._status===-1)&&(N._status=1,N._result=ae)},function(ae){(N._status===0||N._status===-1)&&(N._status=2,N._result=ae)}),N._status===-1&&(N._status=0,N._result=q)}if(N._status===1)return N._result.default;throw N._result}var ce=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},ie={map:Y,forEach:function(N,q,ae){Y(N,function(){q.apply(this,arguments)},ae)},count:function(N){var q=0;return Y(N,function(){q++}),q},toArray:function(N){return Y(N,function(q){return q})||[]},only:function(N){if(!F(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return ye.Activity=v,ye.Children=ie,ye.Component=w,ye.Fragment=r,ye.Profiler=l,ye.PureComponent=A,ye.StrictMode=a,ye.Suspense=f,ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,ye.__COMPILER_RUNTIME={__proto__:null,c:function(N){return H.H.useMemoCache(N)}},ye.cache=function(N){return function(){return N.apply(null,arguments)}},ye.cacheSignal=function(){return null},ye.cloneElement=function(N,q,ae){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var oe=E({},N.props),ue=N.key;if(q!=null)for(le in q.key!==void 0&&(ue=""+q.key),q)!I.call(q,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&q.ref===void 0||(oe[le]=q[le]);var le=arguments.length-2;if(le===1)oe.children=ae;else if(1<le){for(var de=Array(le),Ce=0;Ce<le;Ce++)de[Ce]=arguments[Ce+2];oe.children=de}return K(N.type,ue,oe)},ye.createContext=function(N){return N={$$typeof:c,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:u,_context:N},N},ye.createElement=function(N,q,ae){var oe,ue={},le=null;if(q!=null)for(oe in q.key!==void 0&&(le=""+q.key),q)I.call(q,oe)&&oe!=="key"&&oe!=="__self"&&oe!=="__source"&&(ue[oe]=q[oe]);var de=arguments.length-2;if(de===1)ue.children=ae;else if(1<de){for(var Ce=Array(de),he=0;he<de;he++)Ce[he]=arguments[he+2];ue.children=Ce}if(N&&N.defaultProps)for(oe in de=N.defaultProps,de)ue[oe]===void 0&&(ue[oe]=de[oe]);return K(N,le,ue)},ye.createRef=function(){return{current:null}},ye.forwardRef=function(N){return{$$typeof:d,render:N}},ye.isValidElement=F,ye.lazy=function(N){return{$$typeof:g,_payload:{_status:-1,_result:N},_init:re}},ye.memo=function(N,q){return{$$typeof:m,type:N,compare:q===void 0?null:q}},ye.startTransition=function(N){var q=H.T,ae={};H.T=ae;try{var oe=N(),ue=H.S;ue!==null&&ue(ae,oe),typeof oe=="object"&&oe!==null&&typeof oe.then=="function"&&oe.then(P,ce)}catch(le){ce(le)}finally{q!==null&&ae.types!==null&&(q.types=ae.types),H.T=q}},ye.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},ye.use=function(N){return H.H.use(N)},ye.useActionState=function(N,q,ae){return H.H.useActionState(N,q,ae)},ye.useCallback=function(N,q){return H.H.useCallback(N,q)},ye.useContext=function(N){return H.H.useContext(N)},ye.useDebugValue=function(){},ye.useDeferredValue=function(N,q){return H.H.useDeferredValue(N,q)},ye.useEffect=function(N,q){return H.H.useEffect(N,q)},ye.useEffectEvent=function(N){return H.H.useEffectEvent(N)},ye.useId=function(){return H.H.useId()},ye.useImperativeHandle=function(N,q,ae){return H.H.useImperativeHandle(N,q,ae)},ye.useInsertionEffect=function(N,q){return H.H.useInsertionEffect(N,q)},ye.useLayoutEffect=function(N,q){return H.H.useLayoutEffect(N,q)},ye.useMemo=function(N,q){return H.H.useMemo(N,q)},ye.useOptimistic=function(N,q){return H.H.useOptimistic(N,q)},ye.useReducer=function(N,q,ae){return H.H.useReducer(N,q,ae)},ye.useRef=function(N){return H.H.useRef(N)},ye.useState=function(N){return H.H.useState(N)},ye.useSyncExternalStore=function(N,q,ae){return H.H.useSyncExternalStore(N,q,ae)},ye.useTransition=function(){return H.H.useTransition()},ye.version="19.2.4",ye}var ib;function gh(){return ib||(ib=1,rf.exports=hE()),rf.exports}var z=gh();const Ua=py(z),my=cE({__proto__:null,default:Ua},[z]);var af={exports:{}},qo={},of={exports:{}},lf={};var rb;function pE(){return rb||(rb=1,(function(e){function n(D,Y){var re=D.length;D.push(Y);e:for(;0<re;){var ce=re-1>>>1,ie=D[ce];if(0<l(ie,Y))D[ce]=Y,D[re]=ie,re=ce;else break e}}function r(D){return D.length===0?null:D[0]}function a(D){if(D.length===0)return null;var Y=D[0],re=D.pop();if(re!==Y){D[0]=re;e:for(var ce=0,ie=D.length,N=ie>>>1;ce<N;){var q=2*(ce+1)-1,ae=D[q],oe=q+1,ue=D[oe];if(0>l(ae,re))oe<ie&&0>l(ue,ae)?(D[ce]=ue,D[oe]=re,ce=oe):(D[ce]=ae,D[q]=re,ce=q);else if(oe<ie&&0>l(ue,re))D[ce]=ue,D[oe]=re,ce=oe;else break e}}return Y}function l(D,Y){var re=D.sortIndex-Y.sortIndex;return re!==0?re:D.id-Y.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],m=[],g=1,v=null,b=3,_=!1,S=!1,E=!1,L=!1,w=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function R(D){for(var Y=r(m);Y!==null;){if(Y.callback===null)a(m);else if(Y.startTime<=D)a(m),Y.sortIndex=Y.expirationTime,n(f,Y);else break;Y=r(m)}}function T(D){if(E=!1,R(D),!S)if(r(f)!==null)S=!0,P||(P=!0,V());else{var Y=r(m);Y!==null&&W(T,Y.startTime-D)}}var P=!1,H=-1,I=5,K=-1;function Z(){return L?!0:!(e.unstable_now()-K<I)}function F(){if(L=!1,P){var D=e.unstable_now();K=D;var Y=!0;try{e:{S=!1,E&&(E=!1,C(H),H=-1),_=!0;var re=b;try{t:{for(R(D),v=r(f);v!==null&&!(v.expirationTime>D&&Z());){var ce=v.callback;if(typeof ce=="function"){v.callback=null,b=v.priorityLevel;var ie=ce(v.expirationTime<=D);if(D=e.unstable_now(),typeof ie=="function"){v.callback=ie,R(D),Y=!0;break t}v===r(f)&&a(f),R(D)}else a(f);v=r(f)}if(v!==null)Y=!0;else{var N=r(m);N!==null&&W(T,N.startTime-D),Y=!1}}break e}finally{v=null,b=re,_=!1}Y=void 0}}finally{Y?V():P=!1}}}var V;if(typeof A=="function")V=function(){A(F)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,J=te.port2;te.port1.onmessage=F,V=function(){J.postMessage(null)}}else V=function(){w(F,0)};function W(D,Y){H=w(function(){D(e.unstable_now())},Y)}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(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(D){switch(b){case 1:case 2:case 3:var Y=3;break;default:Y=b}var re=b;b=Y;try{return D()}finally{b=re}},e.unstable_requestPaint=function(){L=!0},e.unstable_runWithPriority=function(D,Y){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var re=b;b=D;try{return Y()}finally{b=re}},e.unstable_scheduleCallback=function(D,Y,re){var ce=e.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?ce+re:ce):re=ce,D){case 1:var ie=-1;break;case 2:ie=250;break;case 5:ie=1073741823;break;case 4:ie=1e4;break;default:ie=5e3}return ie=re+ie,D={id:g++,callback:Y,priorityLevel:D,startTime:re,expirationTime:ie,sortIndex:-1},re>ce?(D.sortIndex=re,n(m,D),r(f)===null&&D===r(m)&&(E?(C(H),H=-1):E=!0,W(T,re-ce))):(D.sortIndex=ie,n(f,D),S||_||(S=!0,P||(P=!0,V()))),D},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(D){var Y=b;return function(){var re=b;b=Y;try{return D.apply(this,arguments)}finally{b=re}}}})(lf)),lf}var ab;function mE(){return ab||(ab=1,of.exports=pE()),of.exports}var sf={exports:{}},Ot={};var ob;function gE(){if(ob)return Ot;ob=1;var e=gh();function n(f){var m="https://react.dev/errors/"+f;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+f+"; visit "+m+" 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},l=Symbol.for("react.portal");function u(f,m,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:v==null?null:""+v,children:f,containerInfo:m,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,m){if(f==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Ot.createPortal=function(f,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(n(299));return u(f,m,null,g)},Ot.flushSync=function(f){var m=c.T,g=a.p;try{if(c.T=null,a.p=2,f)return f()}finally{c.T=m,a.p=g,a.d.f()}},Ot.preconnect=function(f,m){typeof f=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,a.d.C(f,m))},Ot.prefetchDNS=function(f){typeof f=="string"&&a.d.D(f)},Ot.preinit=function(f,m){if(typeof f=="string"&&m&&typeof m.as=="string"){var g=m.as,v=d(g,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,_=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?a.d.S(f,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:_}):g==="script"&&a.d.X(f,{crossOrigin:v,integrity:b,fetchPriority:_,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Ot.preinitModule=function(f,m){if(typeof f=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=d(m.as,m.crossOrigin);a.d.M(f,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&a.d.M(f)},Ot.preload=function(f,m){if(typeof f=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,v=d(g,m.crossOrigin);a.d.L(f,g,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Ot.preloadModule=function(f,m){if(typeof f=="string")if(m){var g=d(m.as,m.crossOrigin);a.d.m(f,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else a.d.m(f)},Ot.requestFormReset=function(f){a.d.r(f)},Ot.unstable_batchedUpdates=function(f,m){return f(m)},Ot.useFormState=function(f,m,g){return c.H.useFormState(f,m,g)},Ot.useFormStatus=function(){return c.H.useHostTransitionStatus()},Ot.version="19.2.4",Ot}var lb;function gy(){if(lb)return sf.exports;lb=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(),sf.exports=gE(),sf.exports}var sb;function vE(){if(sb)return qo;sb=1;var e=mE(),n=gh(),r=gy();function a(t){var i="https://react.dev/errors/"+t;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o])}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 l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var i=t,o=t;if(t.alternate)for(;i.return;)i=i.return;else{t=i;do i=t,(i.flags&4098)!==0&&(o=i.return),t=i.return;while(t)}return i.tag===3?o: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 d(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 f(t){if(u(t)!==t)throw Error(a(188))}function m(t){var i=t.alternate;if(!i){if(i=u(t),i===null)throw Error(a(188));return i!==t?null:t}for(var o=t,s=i;;){var h=o.return;if(h===null)break;var p=h.alternate;if(p===null){if(s=h.return,s!==null){o=s;continue}break}if(h.child===p.child){for(p=h.child;p;){if(p===o)return f(h),t;if(p===s)return f(h),i;p=p.sibling}throw Error(a(188))}if(o.return!==s.return)o=h,s=p;else{for(var y=!1,x=h.child;x;){if(x===o){y=!0,o=h,s=p;break}if(x===s){y=!0,s=h,o=p;break}x=x.sibling}if(!y){for(x=p.child;x;){if(x===o){y=!0,o=p,s=h;break}if(x===s){y=!0,s=p,o=h;break}x=x.sibling}if(!y)throw Error(a(189))}}if(o.alternate!==s)throw Error(a(190))}if(o.tag!==3)throw Error(a(188));return o.stateNode.current===o?t:i}function g(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t;for(t=t.child;t!==null;){if(i=g(t),i!==null)return i;t=t.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),A=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function V(t){return t===null||typeof t!="object"?null:(t=F&&t[F]||t["@@iterator"],typeof t=="function"?t:null)}var te=Symbol.for("react.client.reference");function J(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===te?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case E:return"Fragment";case w:return"Profiler";case L:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList";case K:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case S:return"Portal";case A:return t.displayName||"Context";case C:return(t._context.displayName||"Context")+".Consumer";case R:var i=t.render;return t=t.displayName,t||(t=i.displayName||i.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case H:return i=t.displayName||null,i!==null?i:J(t.type)||"Memo";case I:i=t._payload,t=t._init;try{return J(t(i))}catch{}}return null}var W=Array.isArray,D=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},ce=[],ie=-1;function N(t){return{current:t}}function q(t){0>ie||(t.current=ce[ie],ce[ie]=null,ie--)}function ae(t,i){ie++,ce[ie]=t.current,t.current=i}var oe=N(null),ue=N(null),le=N(null),de=N(null);function Ce(t,i){switch(ae(le,i),ae(ue,t),ae(oe,null),i.nodeType){case 9:case 11:t=(t=i.documentElement)&&(t=t.namespaceURI)?Ev(t):0;break;default:if(t=i.tagName,i=i.namespaceURI)i=Ev(i),t=wv(i,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}q(oe),ae(oe,t)}function he(){q(oe),q(ue),q(le)}function Be(t){t.memoizedState!==null&&ae(de,t);var i=oe.current,o=wv(i,t.type);i!==o&&(ae(ue,t),ae(oe,o))}function Ge(t){ue.current===t&&(q(oe),q(ue)),de.current===t&&(q(de),jo._currentValue=re)}var et,Ye;function xt(t){if(et===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);et=i&&i[1]||"",Ye=-1<o.stack.indexOf(`
|
|
3
|
+
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
|
+
`+et+t+Ye}var bn=!1;function It(t,i){if(!t||bn)return"";bn=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(i){var ne=function(){throw Error()};if(Object.defineProperty(ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ne,[])}catch(X){var $=X}Reflect.construct(t,[],ne)}else{try{ne.call()}catch(X){$=X}t.call(ne.prototype)}}else{try{throw Error()}catch(X){$=X}(ne=t())&&typeof ne.catch=="function"&&ne.catch(function(){})}}catch(X){if(X&&$&&typeof X.stack=="string")return[X.stack,$.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=s.DetermineComponentFrameRoot(),y=p[0],x=p[1];if(y&&x){var O=y.split(`
|
|
5
|
+
`),G=x.split(`
|
|
6
|
+
`);for(h=s=0;s<O.length&&!O[s].includes("DetermineComponentFrameRoot");)s++;for(;h<G.length&&!G[h].includes("DetermineComponentFrameRoot");)h++;if(s===O.length||h===G.length)for(s=O.length-1,h=G.length-1;1<=s&&0<=h&&O[s]!==G[h];)h--;for(;1<=s&&0<=h;s--,h--)if(O[s]!==G[h]){if(s!==1||h!==1)do if(s--,h--,0>h||O[s]!==G[h]){var Q=`
|
|
7
|
+
`+O[s].replace(" at new "," at ");return t.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",t.displayName)),Q}while(1<=s&&0<=h);break}}}finally{bn=!1,Error.prepareStackTrace=o}return(o=t?t.displayName||t.name:"")?xt(o):""}function yn(t,i){switch(t.tag){case 26:case 27:case 5:return xt(t.type);case 16:return xt("Lazy");case 13:return t.child!==i&&i!==null?xt("Suspense Fallback"):xt("Suspense");case 19:return xt("SuspenseList");case 0:case 15:return It(t.type,!1);case 11:return It(t.type.render,!1);case 1:return It(t.type,!0);case 31:return xt("Activity");default:return""}}function Vr(t){try{var i="",o=null;do i+=yn(t,o),o=t,t=t.return;while(t);return i}catch(s){return`
|
|
8
|
+
Error generating stack: `+s.message+`
|
|
9
|
+
`+s.stack}}var ze=Object.prototype.hasOwnProperty,Ht=e.unstable_scheduleCallback,_n=e.unstable_cancelCallback,_i=e.unstable_shouldYield,nr=e.unstable_requestPaint,Et=e.unstable_now,ir=e.unstable_getCurrentPriorityLevel,Yn=e.unstable_ImmediatePriority,Si=e.unstable_UserBlockingPriority,Dn=e.unstable_NormalPriority,Fn=e.unstable_LowPriority,zn=e.unstable_IdlePriority,yl=e.log,$u=e.unstable_setDisableYieldValue,rr=null,Rt=null;function Sn(t){if(typeof yl=="function"&&$u(t),Rt&&typeof Rt.setStrictMode=="function")try{Rt.setStrictMode(rr,t)}catch{}}var Nt=Math.clz32?Math.clz32:xl,_l=Math.log,Sl=Math.LN2;function xl(t){return t>>>=0,t===0?32:31-(_l(t)/Sl|0)|0}var Br=256,Gr=262144,xi=4194304;function xn(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 $r(t,i,o){var s=t.pendingLanes;if(s===0)return 0;var h=0,p=t.suspendedLanes,y=t.pingedLanes;t=t.warmLanes;var x=s&134217727;return x!==0?(s=x&~p,s!==0?h=xn(s):(y&=x,y!==0?h=xn(y):o||(o=x&~t,o!==0&&(h=xn(o))))):(x=s&~p,x!==0?h=xn(x):y!==0?h=xn(y):o||(o=s&~t,o!==0&&(h=xn(o)))),h===0?0:i!==0&&i!==h&&(i&p)===0&&(p=h&-h,o=i&-i,p>=o||p===32&&(o&4194048)!==0)?i:h}function En(t,i){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&i)===0}function $e(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 In(){var t=xi;return xi<<=1,(xi&62914560)===0&&(xi=4194304),t}function Ei(t){for(var i=[],o=0;31>o;o++)i.push(t);return i}function Xn(t,i){t.pendingLanes|=i,i!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function K1(t,i,o,s,h,p){var y=t.pendingLanes;t.pendingLanes=o,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=o,t.entangledLanes&=o,t.errorRecoveryDisabledLanes&=o,t.shellSuspendCounter=0;var x=t.entanglements,O=t.expirationTimes,G=t.hiddenUpdates;for(o=y&~o;0<o;){var Q=31-Nt(o),ne=1<<Q;x[Q]=0,O[Q]=-1;var $=G[Q];if($!==null)for(G[Q]=null,Q=0;Q<$.length;Q++){var X=$[Q];X!==null&&(X.lane&=-536870913)}o&=~ne}s!==0&&ap(t,s,0),p!==0&&h===0&&t.tag!==0&&(t.suspendedLanes|=p&~(y&~i))}function ap(t,i,o){t.pendingLanes|=i,t.suspendedLanes&=~i;var s=31-Nt(i);t.entangledLanes|=i,t.entanglements[s]=t.entanglements[s]|1073741824|o&261930}function op(t,i){var o=t.entangledLanes|=i;for(t=t.entanglements;o;){var s=31-Nt(o),h=1<<s;h&i|t[s]&i&&(t[s]|=i),o&=~h}}function lp(t,i){var o=i&-i;return o=(o&42)!==0?1:qu(o),(o&(t.suspendedLanes|i))!==0?0:o}function qu(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 Yu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function sp(){var t=Y.p;return t!==0?t:(t=window.event,t===void 0?32:Fv(t.type))}function up(t,i){var o=Y.p;try{return Y.p=t,i()}finally{Y.p=o}}var wi=Math.random().toString(36).slice(2),wt="__reactFiber$"+wi,jt="__reactProps$"+wi,qr="__reactContainer$"+wi,Fu="__reactEvents$"+wi,J1="__reactListeners$"+wi,eS="__reactHandles$"+wi,cp="__reactResources$"+wi,eo="__reactMarker$"+wi;function Xu(t){delete t[wt],delete t[jt],delete t[Fu],delete t[J1],delete t[eS]}function Yr(t){var i=t[wt];if(i)return i;for(var o=t.parentNode;o;){if(i=o[qr]||o[wt]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(t=Nv(t);t!==null;){if(o=t[wt])return o;t=Nv(t)}return i}t=o,o=t.parentNode}return null}function Fr(t){if(t=t[wt]||t[qr]){var i=t.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return t}return null}function to(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t.stateNode;throw Error(a(33))}function Xr(t){var i=t[cp];return i||(i=t[cp]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function bt(t){t[eo]=!0}var dp=new Set,fp={};function ar(t,i){Wr(t,i),Wr(t+"Capture",i)}function Wr(t,i){for(fp[t]=i,t=0;t<i.length;t++)dp.add(i[t])}var tS=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]*$"),hp={},pp={};function nS(t){return ze.call(pp,t)?!0:ze.call(hp,t)?!1:tS.test(t)?pp[t]=!0:(hp[t]=!0,!1)}function El(t,i,o){if(nS(i))if(o===null)t.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":t.removeAttribute(i);return;case"boolean":var s=i.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(i);return}}t.setAttribute(i,""+o)}}function wl(t,i,o){if(o===null)t.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttribute(i,""+o)}}function Wn(t,i,o,s){if(s===null)t.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(o);return}t.setAttributeNS(i,o,""+s)}}function rn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function mp(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function iS(t,i,o){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,i);if(!t.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var h=s.get,p=s.set;return Object.defineProperty(t,i,{configurable:!0,get:function(){return h.call(this)},set:function(y){o=""+y,p.call(this,y)}}),Object.defineProperty(t,i,{enumerable:s.enumerable}),{getValue:function(){return o},setValue:function(y){o=""+y},stopTracking:function(){t._valueTracker=null,delete t[i]}}}}function Wu(t){if(!t._valueTracker){var i=mp(t)?"checked":"value";t._valueTracker=iS(t,i,""+t[i])}}function gp(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var o=i.getValue(),s="";return t&&(s=mp(t)?t.checked?"true":"false":t.value),t=s,t!==o?(i.setValue(t),!0):!1}function Cl(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 rS=/[\n"\\]/g;function an(t){return t.replace(rS,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Qu(t,i,o,s,h,p,y,x){t.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?t.type=y:t.removeAttribute("type"),i!=null?y==="number"?(i===0&&t.value===""||t.value!=i)&&(t.value=""+rn(i)):t.value!==""+rn(i)&&(t.value=""+rn(i)):y!=="submit"&&y!=="reset"||t.removeAttribute("value"),i!=null?Zu(t,y,rn(i)):o!=null?Zu(t,y,rn(o)):s!=null&&t.removeAttribute("value"),h==null&&p!=null&&(t.defaultChecked=!!p),h!=null&&(t.checked=h&&typeof h!="function"&&typeof h!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+rn(x):t.removeAttribute("name")}function vp(t,i,o,s,h,p,y,x){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(t.type=p),i!=null||o!=null){if(!(p!=="submit"&&p!=="reset"||i!=null)){Wu(t);return}o=o!=null?""+rn(o):"",i=i!=null?""+rn(i):o,x||i===t.value||(t.value=i),t.defaultValue=i}s=s??h,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=x?t.checked:!!s,t.defaultChecked=!!s,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(t.name=y),Wu(t)}function Zu(t,i,o){i==="number"&&Cl(t.ownerDocument)===t||t.defaultValue===""+o||(t.defaultValue=""+o)}function Qr(t,i,o,s){if(t=t.options,i){i={};for(var h=0;h<o.length;h++)i["$"+o[h]]=!0;for(o=0;o<t.length;o++)h=i.hasOwnProperty("$"+t[o].value),t[o].selected!==h&&(t[o].selected=h),h&&s&&(t[o].defaultSelected=!0)}else{for(o=""+rn(o),i=null,h=0;h<t.length;h++){if(t[h].value===o){t[h].selected=!0,s&&(t[h].defaultSelected=!0);return}i!==null||t[h].disabled||(i=t[h])}i!==null&&(i.selected=!0)}}function bp(t,i,o){if(i!=null&&(i=""+rn(i),i!==t.value&&(t.value=i),o==null)){t.defaultValue!==i&&(t.defaultValue=i);return}t.defaultValue=o!=null?""+rn(o):""}function yp(t,i,o,s){if(i==null){if(s!=null){if(o!=null)throw Error(a(92));if(W(s)){if(1<s.length)throw Error(a(93));s=s[0]}o=s}o==null&&(o=""),i=o}o=rn(i),t.defaultValue=o,s=t.textContent,s===o&&s!==""&&s!==null&&(t.value=s),Wu(t)}function Zr(t,i){if(i){var o=t.firstChild;if(o&&o===t.lastChild&&o.nodeType===3){o.nodeValue=i;return}}t.textContent=i}var aS=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 _p(t,i,o){var s=i.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?s?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="":s?t.setProperty(i,o):typeof o!="number"||o===0||aS.has(i)?i==="float"?t.cssFloat=o:t[i]=(""+o).trim():t[i]=o+"px"}function Sp(t,i,o){if(i!=null&&typeof i!="object")throw Error(a(62));if(t=t.style,o!=null){for(var s in o)!o.hasOwnProperty(s)||i!=null&&i.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var h in i)s=i[h],i.hasOwnProperty(h)&&o[h]!==s&&_p(t,h,s)}else for(var p in i)i.hasOwnProperty(p)&&_p(t,p,i[p])}function Ku(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 oS=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"]]),lS=/^[\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 Al(t){return lS.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Qn(){}var Ju=null;function ec(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Kr=null,Jr=null;function xp(t){var i=Fr(t);if(i&&(t=i.stateNode)){var o=t[jt]||null;e:switch(t=i.stateNode,i.type){case"input":if(Qu(t,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),i=o.name,o.type==="radio"&&i!=null){for(o=t;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+an(""+i)+'"][type="radio"]'),i=0;i<o.length;i++){var s=o[i];if(s!==t&&s.form===t.form){var h=s[jt]||null;if(!h)throw Error(a(90));Qu(s,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(i=0;i<o.length;i++)s=o[i],s.form===t.form&&gp(s)}break e;case"textarea":bp(t,o.value,o.defaultValue);break e;case"select":i=o.value,i!=null&&Qr(t,!!o.multiple,i,!1)}}}var tc=!1;function Ep(t,i,o){if(tc)return t(i,o);tc=!0;try{var s=t(i);return s}finally{if(tc=!1,(Kr!==null||Jr!==null)&&(hs(),Kr&&(i=Kr,t=Jr,Jr=Kr=null,xp(i),t)))for(i=0;i<t.length;i++)xp(t[i])}}function no(t,i){var o=t.stateNode;if(o===null)return null;var s=o[jt]||null;if(s===null)return null;o=s[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":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(o&&typeof o!="function")throw Error(a(231,i,typeof o));return o}var Zn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nc=!1;if(Zn)try{var io={};Object.defineProperty(io,"passive",{get:function(){nc=!0}}),window.addEventListener("test",io,io),window.removeEventListener("test",io,io)}catch{nc=!1}var Ci=null,ic=null,kl=null;function wp(){if(kl)return kl;var t,i=ic,o=i.length,s,h="value"in Ci?Ci.value:Ci.textContent,p=h.length;for(t=0;t<o&&i[t]===h[t];t++);var y=o-t;for(s=1;s<=y&&i[o-s]===h[p-s];s++);return kl=h.slice(t,1<s?1-s:void 0)}function Tl(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 Ll(){return!0}function Cp(){return!1}function Vt(t){function i(o,s,h,p,y){this._reactName=o,this._targetInst=h,this.type=s,this.nativeEvent=p,this.target=y,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(o=t[x],this[x]=o?o(p):p[x]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Ll:Cp,this.isPropagationStopped=Cp,this}return v(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Ll)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Ll)},persist:function(){},isPersistent:Ll}),i}var or={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Rl=Vt(or),ro=v({},or,{view:0,detail:0}),sS=Vt(ro),rc,ac,ao,Nl=v({},ro,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lc,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!==ao&&(ao&&t.type==="mousemove"?(rc=t.screenX-ao.screenX,ac=t.screenY-ao.screenY):ac=rc=0,ao=t),rc)},movementY:function(t){return"movementY"in t?t.movementY:ac}}),Ap=Vt(Nl),uS=v({},Nl,{dataTransfer:0}),cS=Vt(uS),dS=v({},ro,{relatedTarget:0}),oc=Vt(dS),fS=v({},or,{animationName:0,elapsedTime:0,pseudoElement:0}),hS=Vt(fS),pS=v({},or,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),mS=Vt(pS),gS=v({},or,{data:0}),kp=Vt(gS),vS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},bS={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"},yS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _S(t){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(t):(t=yS[t])?!!i[t]:!1}function lc(){return _S}var SS=v({},ro,{key:function(t){if(t.key){var i=vS[t.key]||t.key;if(i!=="Unidentified")return i}return t.type==="keypress"?(t=Tl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?bS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lc,charCode:function(t){return t.type==="keypress"?Tl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Tl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),xS=Vt(SS),ES=v({},Nl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tp=Vt(ES),wS=v({},ro,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lc}),CS=Vt(wS),AS=v({},or,{propertyName:0,elapsedTime:0,pseudoElement:0}),kS=Vt(AS),TS=v({},Nl,{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}),LS=Vt(TS),RS=v({},or,{newState:0,oldState:0}),NS=Vt(RS),OS=[9,13,27,32],sc=Zn&&"CompositionEvent"in window,oo=null;Zn&&"documentMode"in document&&(oo=document.documentMode);var MS=Zn&&"TextEvent"in window&&!oo,Lp=Zn&&(!sc||oo&&8<oo&&11>=oo),Rp=" ",Np=!1;function Op(t,i){switch(t){case"keyup":return OS.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ea=!1;function DS(t,i){switch(t){case"compositionend":return Mp(i);case"keypress":return i.which!==32?null:(Np=!0,Rp);case"textInput":return t=i.data,t===Rp&&Np?null:t;default:return null}}function zS(t,i){if(ea)return t==="compositionend"||!sc&&Op(t,i)?(t=wp(),kl=ic=Ci=null,ea=!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 Lp&&i.locale!=="ko"?null:i.data;default:return null}}var IS={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 Dp(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i==="input"?!!IS[t.type]:i==="textarea"}function zp(t,i,o,s){Kr?Jr?Jr.push(s):Jr=[s]:Kr=s,i=_s(i,"onChange"),0<i.length&&(o=new Rl("onChange","change",null,o,s),t.push({event:o,listeners:i}))}var lo=null,so=null;function PS(t){vv(t,0)}function Ol(t){var i=to(t);if(gp(i))return t}function Ip(t,i){if(t==="change")return i}var Pp=!1;if(Zn){var uc;if(Zn){var cc="oninput"in document;if(!cc){var Up=document.createElement("div");Up.setAttribute("oninput","return;"),cc=typeof Up.oninput=="function"}uc=cc}else uc=!1;Pp=uc&&(!document.documentMode||9<document.documentMode)}function Hp(){lo&&(lo.detachEvent("onpropertychange",jp),so=lo=null)}function jp(t){if(t.propertyName==="value"&&Ol(so)){var i=[];zp(i,so,t,ec(t)),Ep(PS,i)}}function US(t,i,o){t==="focusin"?(Hp(),lo=i,so=o,lo.attachEvent("onpropertychange",jp)):t==="focusout"&&Hp()}function HS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ol(so)}function jS(t,i){if(t==="click")return Ol(i)}function VS(t,i){if(t==="input"||t==="change")return Ol(i)}function BS(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var Wt=typeof Object.is=="function"?Object.is:BS;function uo(t,i){if(Wt(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var o=Object.keys(t),s=Object.keys(i);if(o.length!==s.length)return!1;for(s=0;s<o.length;s++){var h=o[s];if(!ze.call(i,h)||!Wt(t[h],i[h]))return!1}return!0}function Vp(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Bp(t,i){var o=Vp(t);t=0;for(var s;o;){if(o.nodeType===3){if(s=t+o.textContent.length,t<=i&&s>=i)return{node:o,offset:i-t};t=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Vp(o)}}function Gp(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?Gp(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function $p(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var i=Cl(t.document);i instanceof t.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)t=i.contentWindow;else break;i=Cl(t.document)}return i}function dc(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 GS=Zn&&"documentMode"in document&&11>=document.documentMode,ta=null,fc=null,co=null,hc=!1;function qp(t,i,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;hc||ta==null||ta!==Cl(s)||(s=ta,"selectionStart"in s&&dc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),co&&uo(co,s)||(co=s,s=_s(fc,"onSelect"),0<s.length&&(i=new Rl("onSelect","select",null,i,o),t.push({event:i,listeners:s}),i.target=ta)))}function lr(t,i){var o={};return o[t.toLowerCase()]=i.toLowerCase(),o["Webkit"+t]="webkit"+i,o["Moz"+t]="moz"+i,o}var na={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},pc={},Yp={};Zn&&(Yp=document.createElement("div").style,"AnimationEvent"in window||(delete na.animationend.animation,delete na.animationiteration.animation,delete na.animationstart.animation),"TransitionEvent"in window||delete na.transitionend.transition);function sr(t){if(pc[t])return pc[t];if(!na[t])return t;var i=na[t],o;for(o in i)if(i.hasOwnProperty(o)&&o in Yp)return pc[t]=i[o];return t}var Fp=sr("animationend"),Xp=sr("animationiteration"),Wp=sr("animationstart"),$S=sr("transitionrun"),qS=sr("transitionstart"),YS=sr("transitioncancel"),Qp=sr("transitionend"),Zp=new Map,mc="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(" ");mc.push("scrollEnd");function wn(t,i){Zp.set(t,i),ar(i,[t])}var Ml=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)},on=[],ia=0,gc=0;function Dl(){for(var t=ia,i=gc=ia=0;i<t;){var o=on[i];on[i++]=null;var s=on[i];on[i++]=null;var h=on[i];on[i++]=null;var p=on[i];if(on[i++]=null,s!==null&&h!==null){var y=s.pending;y===null?h.next=h:(h.next=y.next,y.next=h),s.pending=h}p!==0&&Kp(o,h,p)}}function zl(t,i,o,s){on[ia++]=t,on[ia++]=i,on[ia++]=o,on[ia++]=s,gc|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function vc(t,i,o,s){return zl(t,i,o,s),Il(t)}function ur(t,i){return zl(t,null,null,i),Il(t)}function Kp(t,i,o){t.lanes|=o;var s=t.alternate;s!==null&&(s.lanes|=o);for(var h=!1,p=t.return;p!==null;)p.childLanes|=o,s=p.alternate,s!==null&&(s.childLanes|=o),p.tag===22&&(t=p.stateNode,t===null||t._visibility&1||(h=!0)),t=p,p=p.return;return t.tag===3?(p=t.stateNode,h&&i!==null&&(h=31-Nt(o),t=p.hiddenUpdates,s=t[h],s===null?t[h]=[i]:s.push(i),i.lane=o|536870912),p):null}function Il(t){if(50<Mo)throw Mo=0,Ad=null,Error(a(185));for(var i=t.return;i!==null;)t=i,i=t.return;return t.tag===3?t.stateNode:null}var ra={};function FS(t,i,o,s){this.tag=t,this.key=o,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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(t,i,o,s){return new FS(t,i,o,s)}function bc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Kn(t,i){var o=t.alternate;return o===null?(o=Qt(t.tag,i,t.key,t.mode),o.elementType=t.elementType,o.type=t.type,o.stateNode=t.stateNode,o.alternate=t,t.alternate=o):(o.pendingProps=i,o.type=t.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=t.flags&65011712,o.childLanes=t.childLanes,o.lanes=t.lanes,o.child=t.child,o.memoizedProps=t.memoizedProps,o.memoizedState=t.memoizedState,o.updateQueue=t.updateQueue,i=t.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=t.sibling,o.index=t.index,o.ref=t.ref,o.refCleanup=t.refCleanup,o}function Jp(t,i){t.flags&=65011714;var o=t.alternate;return o===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=o.childLanes,t.lanes=o.lanes,t.child=o.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=o.memoizedProps,t.memoizedState=o.memoizedState,t.updateQueue=o.updateQueue,t.type=o.type,i=o.dependencies,t.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),t}function Pl(t,i,o,s,h,p){var y=0;if(s=t,typeof t=="function")bc(t)&&(y=1);else if(typeof t=="string")y=Kx(t,o,oe.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case K:return t=Qt(31,o,i,h),t.elementType=K,t.lanes=p,t;case E:return cr(o.children,h,p,i);case L:y=8,h|=24;break;case w:return t=Qt(12,o,i,h|2),t.elementType=w,t.lanes=p,t;case T:return t=Qt(13,o,i,h),t.elementType=T,t.lanes=p,t;case P:return t=Qt(19,o,i,h),t.elementType=P,t.lanes=p,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case A:y=10;break e;case C:y=9;break e;case R:y=11;break e;case H:y=14;break e;case I:y=16,s=null;break e}y=29,o=Error(a(130,t===null?"null":typeof t,"")),s=null}return i=Qt(y,o,i,h),i.elementType=t,i.type=s,i.lanes=p,i}function cr(t,i,o,s){return t=Qt(7,t,s,i),t.lanes=o,t}function yc(t,i,o){return t=Qt(6,t,null,i),t.lanes=o,t}function em(t){var i=Qt(18,null,null,0);return i.stateNode=t,i}function _c(t,i,o){return i=Qt(4,t.children!==null?t.children:[],t.key,i),i.lanes=o,i.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},i}var tm=new WeakMap;function ln(t,i){if(typeof t=="object"&&t!==null){var o=tm.get(t);return o!==void 0?o:(i={value:t,source:i,stack:Vr(i)},tm.set(t,i),i)}return{value:t,source:i,stack:Vr(i)}}var aa=[],oa=0,Ul=null,fo=0,sn=[],un=0,Ai=null,Pn=1,Un="";function Jn(t,i){aa[oa++]=fo,aa[oa++]=Ul,Ul=t,fo=i}function nm(t,i,o){sn[un++]=Pn,sn[un++]=Un,sn[un++]=Ai,Ai=t;var s=Pn;t=Un;var h=32-Nt(s)-1;s&=~(1<<h),o+=1;var p=32-Nt(i)+h;if(30<p){var y=h-h%5;p=(s&(1<<y)-1).toString(32),s>>=y,h-=y,Pn=1<<32-Nt(i)+h|o<<h|s,Un=p+t}else Pn=1<<p|o<<h|s,Un=t}function Sc(t){t.return!==null&&(Jn(t,1),nm(t,1,0))}function xc(t){for(;t===Ul;)Ul=aa[--oa],aa[oa]=null,fo=aa[--oa],aa[oa]=null;for(;t===Ai;)Ai=sn[--un],sn[un]=null,Un=sn[--un],sn[un]=null,Pn=sn[--un],sn[un]=null}function im(t,i){sn[un++]=Pn,sn[un++]=Un,sn[un++]=Ai,Pn=i.id,Un=i.overflow,Ai=t}var Ct=null,Xe=null,Re=!1,ki=null,cn=!1,Ec=Error(a(519));function Ti(t){var i=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ho(ln(i,t)),Ec}function rm(t){var i=t.stateNode,o=t.type,s=t.memoizedProps;switch(i[wt]=t,i[jt]=s,o){case"dialog":ke("cancel",i),ke("close",i);break;case"iframe":case"object":case"embed":ke("load",i);break;case"video":case"audio":for(o=0;o<zo.length;o++)ke(zo[o],i);break;case"source":ke("error",i);break;case"img":case"image":case"link":ke("error",i),ke("load",i);break;case"details":ke("toggle",i);break;case"input":ke("invalid",i),vp(i,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":ke("invalid",i);break;case"textarea":ke("invalid",i),yp(i,s.value,s.defaultValue,s.children)}o=s.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||i.textContent===""+o||s.suppressHydrationWarning===!0||Sv(i.textContent,o)?(s.popover!=null&&(ke("beforetoggle",i),ke("toggle",i)),s.onScroll!=null&&ke("scroll",i),s.onScrollEnd!=null&&ke("scrollend",i),s.onClick!=null&&(i.onclick=Qn),i=!0):i=!1,i||Ti(t,!0)}function am(t){for(Ct=t.return;Ct;)switch(Ct.tag){case 5:case 31:case 13:cn=!1;return;case 27:case 3:cn=!0;return;default:Ct=Ct.return}}function la(t){if(t!==Ct)return!1;if(!Re)return am(t),Re=!0,!1;var i=t.tag,o;if((o=i!==3&&i!==27)&&((o=i===5)&&(o=t.type,o=!(o!=="form"&&o!=="button")||Vd(t.type,t.memoizedProps)),o=!o),o&&Xe&&Ti(t),am(t),i===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));Xe=Rv(t)}else if(i===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));Xe=Rv(t)}else i===27?(i=Xe,Bi(t.type)?(t=Yd,Yd=null,Xe=t):Xe=i):Xe=Ct?fn(t.stateNode.nextSibling):null;return!0}function dr(){Xe=Ct=null,Re=!1}function wc(){var t=ki;return t!==null&&(qt===null?qt=t:qt.push.apply(qt,t),ki=null),t}function ho(t){ki===null?ki=[t]:ki.push(t)}var Cc=N(null),fr=null,ei=null;function Li(t,i,o){ae(Cc,i._currentValue),i._currentValue=o}function ti(t){t._currentValue=Cc.current,q(Cc)}function Ac(t,i,o){for(;t!==null;){var s=t.alternate;if((t.childLanes&i)!==i?(t.childLanes|=i,s!==null&&(s.childLanes|=i)):s!==null&&(s.childLanes&i)!==i&&(s.childLanes|=i),t===o)break;t=t.return}}function kc(t,i,o,s){var h=t.child;for(h!==null&&(h.return=t);h!==null;){var p=h.dependencies;if(p!==null){var y=h.child;p=p.firstContext;e:for(;p!==null;){var x=p;p=h;for(var O=0;O<i.length;O++)if(x.context===i[O]){p.lanes|=o,x=p.alternate,x!==null&&(x.lanes|=o),Ac(p.return,o,t),s||(y=null);break e}p=x.next}}else if(h.tag===18){if(y=h.return,y===null)throw Error(a(341));y.lanes|=o,p=y.alternate,p!==null&&(p.lanes|=o),Ac(y,o,t),y=null}else y=h.child;if(y!==null)y.return=h;else for(y=h;y!==null;){if(y===t){y=null;break}if(h=y.sibling,h!==null){h.return=y.return,y=h;break}y=y.return}h=y}}function sa(t,i,o,s){t=null;for(var h=i,p=!1;h!==null;){if(!p){if((h.flags&524288)!==0)p=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var y=h.alternate;if(y===null)throw Error(a(387));if(y=y.memoizedProps,y!==null){var x=h.type;Wt(h.pendingProps.value,y.value)||(t!==null?t.push(x):t=[x])}}else if(h===de.current){if(y=h.alternate,y===null)throw Error(a(387));y.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(t!==null?t.push(jo):t=[jo])}h=h.return}t!==null&&kc(i,t,o,s),i.flags|=262144}function Hl(t){for(t=t.firstContext;t!==null;){if(!Wt(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function hr(t){fr=t,ei=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function At(t){return om(fr,t)}function jl(t,i){return fr===null&&hr(t),om(t,i)}function om(t,i){var o=i._currentValue;if(i={context:i,memoizedValue:o,next:null},ei===null){if(t===null)throw Error(a(308));ei=i,t.dependencies={lanes:0,firstContext:i},t.flags|=524288}else ei=ei.next=i;return o}var XS=typeof AbortController<"u"?AbortController:function(){var t=[],i=this.signal={aborted:!1,addEventListener:function(o,s){t.push(s)}};this.abort=function(){i.aborted=!0,t.forEach(function(o){return o()})}},WS=e.unstable_scheduleCallback,QS=e.unstable_NormalPriority,ot={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Tc(){return{controller:new XS,data:new Map,refCount:0}}function po(t){t.refCount--,t.refCount===0&&WS(QS,function(){t.controller.abort()})}var mo=null,Lc=0,ua=0,ca=null;function ZS(t,i){if(mo===null){var o=mo=[];Lc=0,ua=Od(),ca={status:"pending",value:void 0,then:function(s){o.push(s)}}}return Lc++,i.then(lm,lm),i}function lm(){if(--Lc===0&&mo!==null){ca!==null&&(ca.status="fulfilled");var t=mo;mo=null,ua=0,ca=null;for(var i=0;i<t.length;i++)(0,t[i])()}}function KS(t,i){var o=[],s={status:"pending",value:null,reason:null,then:function(h){o.push(h)}};return t.then(function(){s.status="fulfilled",s.value=i;for(var h=0;h<o.length;h++)(0,o[h])(i)},function(h){for(s.status="rejected",s.reason=h,h=0;h<o.length;h++)(0,o[h])(void 0)}),s}var sm=D.S;D.S=function(t,i){qg=Et(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&ZS(t,i),sm!==null&&sm(t,i)};var pr=N(null);function Rc(){var t=pr.current;return t!==null?t:qe.pooledCache}function Vl(t,i){i===null?ae(pr,pr.current):ae(pr,i.pool)}function um(){var t=Rc();return t===null?null:{parent:ot._currentValue,pool:t}}var da=Error(a(460)),Nc=Error(a(474)),Bl=Error(a(542)),Gl={then:function(){}};function cm(t){return t=t.status,t==="fulfilled"||t==="rejected"}function dm(t,i,o){switch(o=t[o],o===void 0?t.push(i):o!==i&&(i.then(Qn,Qn),i=o),i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,hm(t),t;default:if(typeof i.status=="string")i.then(Qn,Qn);else{if(t=qe,t!==null&&100<t.shellSuspendCounter)throw Error(a(482));t=i,t.status="pending",t.then(function(s){if(i.status==="pending"){var h=i;h.status="fulfilled",h.value=s}},function(s){if(i.status==="pending"){var h=i;h.status="rejected",h.reason=s}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,hm(t),t}throw gr=i,da}}function mr(t){try{var i=t._init;return i(t._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(gr=o,da):o}}var gr=null;function fm(){if(gr===null)throw Error(a(459));var t=gr;return gr=null,t}function hm(t){if(t===da||t===Bl)throw Error(a(483))}var fa=null,go=0;function $l(t){var i=go;return go+=1,fa===null&&(fa=[]),dm(fa,t,i)}function vo(t,i){i=i.props.ref,t.ref=i!==void 0?i:null}function ql(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 pm(t){function i(j,U){if(t){var B=j.deletions;B===null?(j.deletions=[U],j.flags|=16):B.push(U)}}function o(j,U){if(!t)return null;for(;U!==null;)i(j,U),U=U.sibling;return null}function s(j){for(var U=new Map;j!==null;)j.key!==null?U.set(j.key,j):U.set(j.index,j),j=j.sibling;return U}function h(j,U){return j=Kn(j,U),j.index=0,j.sibling=null,j}function p(j,U,B){return j.index=B,t?(B=j.alternate,B!==null?(B=B.index,B<U?(j.flags|=67108866,U):B):(j.flags|=67108866,U)):(j.flags|=1048576,U)}function y(j){return t&&j.alternate===null&&(j.flags|=67108866),j}function x(j,U,B,ee){return U===null||U.tag!==6?(U=yc(B,j.mode,ee),U.return=j,U):(U=h(U,B),U.return=j,U)}function O(j,U,B,ee){var ve=B.type;return ve===E?Q(j,U,B.props.children,ee,B.key):U!==null&&(U.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===I&&mr(ve)===U.type)?(U=h(U,B.props),vo(U,B),U.return=j,U):(U=Pl(B.type,B.key,B.props,null,j.mode,ee),vo(U,B),U.return=j,U)}function G(j,U,B,ee){return U===null||U.tag!==4||U.stateNode.containerInfo!==B.containerInfo||U.stateNode.implementation!==B.implementation?(U=_c(B,j.mode,ee),U.return=j,U):(U=h(U,B.children||[]),U.return=j,U)}function Q(j,U,B,ee,ve){return U===null||U.tag!==7?(U=cr(B,j.mode,ee,ve),U.return=j,U):(U=h(U,B),U.return=j,U)}function ne(j,U,B){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=yc(""+U,j.mode,B),U.return=j,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case _:return B=Pl(U.type,U.key,U.props,null,j.mode,B),vo(B,U),B.return=j,B;case S:return U=_c(U,j.mode,B),U.return=j,U;case I:return U=mr(U),ne(j,U,B)}if(W(U)||V(U))return U=cr(U,j.mode,B,null),U.return=j,U;if(typeof U.then=="function")return ne(j,$l(U),B);if(U.$$typeof===A)return ne(j,jl(j,U),B);ql(j,U)}return null}function $(j,U,B,ee){var ve=U!==null?U.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return ve!==null?null:x(j,U,""+B,ee);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case _:return B.key===ve?O(j,U,B,ee):null;case S:return B.key===ve?G(j,U,B,ee):null;case I:return B=mr(B),$(j,U,B,ee)}if(W(B)||V(B))return ve!==null?null:Q(j,U,B,ee,null);if(typeof B.then=="function")return $(j,U,$l(B),ee);if(B.$$typeof===A)return $(j,U,jl(j,B),ee);ql(j,B)}return null}function X(j,U,B,ee,ve){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return j=j.get(B)||null,x(U,j,""+ee,ve);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case _:return j=j.get(ee.key===null?B:ee.key)||null,O(U,j,ee,ve);case S:return j=j.get(ee.key===null?B:ee.key)||null,G(U,j,ee,ve);case I:return ee=mr(ee),X(j,U,B,ee,ve)}if(W(ee)||V(ee))return j=j.get(B)||null,Q(U,j,ee,ve,null);if(typeof ee.then=="function")return X(j,U,B,$l(ee),ve);if(ee.$$typeof===A)return X(j,U,B,jl(U,ee),ve);ql(U,ee)}return null}function fe(j,U,B,ee){for(var ve=null,Oe=null,ge=U,xe=U=0,Le=null;ge!==null&&xe<B.length;xe++){ge.index>xe?(Le=ge,ge=null):Le=ge.sibling;var Me=$(j,ge,B[xe],ee);if(Me===null){ge===null&&(ge=Le);break}t&&ge&&Me.alternate===null&&i(j,ge),U=p(Me,U,xe),Oe===null?ve=Me:Oe.sibling=Me,Oe=Me,ge=Le}if(xe===B.length)return o(j,ge),Re&&Jn(j,xe),ve;if(ge===null){for(;xe<B.length;xe++)ge=ne(j,B[xe],ee),ge!==null&&(U=p(ge,U,xe),Oe===null?ve=ge:Oe.sibling=ge,Oe=ge);return Re&&Jn(j,xe),ve}for(ge=s(ge);xe<B.length;xe++)Le=X(ge,j,xe,B[xe],ee),Le!==null&&(t&&Le.alternate!==null&&ge.delete(Le.key===null?xe:Le.key),U=p(Le,U,xe),Oe===null?ve=Le:Oe.sibling=Le,Oe=Le);return t&&ge.forEach(function(Fi){return i(j,Fi)}),Re&&Jn(j,xe),ve}function be(j,U,B,ee){if(B==null)throw Error(a(151));for(var ve=null,Oe=null,ge=U,xe=U=0,Le=null,Me=B.next();ge!==null&&!Me.done;xe++,Me=B.next()){ge.index>xe?(Le=ge,ge=null):Le=ge.sibling;var Fi=$(j,ge,Me.value,ee);if(Fi===null){ge===null&&(ge=Le);break}t&&ge&&Fi.alternate===null&&i(j,ge),U=p(Fi,U,xe),Oe===null?ve=Fi:Oe.sibling=Fi,Oe=Fi,ge=Le}if(Me.done)return o(j,ge),Re&&Jn(j,xe),ve;if(ge===null){for(;!Me.done;xe++,Me=B.next())Me=ne(j,Me.value,ee),Me!==null&&(U=p(Me,U,xe),Oe===null?ve=Me:Oe.sibling=Me,Oe=Me);return Re&&Jn(j,xe),ve}for(ge=s(ge);!Me.done;xe++,Me=B.next())Me=X(ge,j,xe,Me.value,ee),Me!==null&&(t&&Me.alternate!==null&&ge.delete(Me.key===null?xe:Me.key),U=p(Me,U,xe),Oe===null?ve=Me:Oe.sibling=Me,Oe=Me);return t&&ge.forEach(function(uE){return i(j,uE)}),Re&&Jn(j,xe),ve}function je(j,U,B,ee){if(typeof B=="object"&&B!==null&&B.type===E&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case _:e:{for(var ve=B.key;U!==null;){if(U.key===ve){if(ve=B.type,ve===E){if(U.tag===7){o(j,U.sibling),ee=h(U,B.props.children),ee.return=j,j=ee;break e}}else if(U.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===I&&mr(ve)===U.type){o(j,U.sibling),ee=h(U,B.props),vo(ee,B),ee.return=j,j=ee;break e}o(j,U);break}else i(j,U);U=U.sibling}B.type===E?(ee=cr(B.props.children,j.mode,ee,B.key),ee.return=j,j=ee):(ee=Pl(B.type,B.key,B.props,null,j.mode,ee),vo(ee,B),ee.return=j,j=ee)}return y(j);case S:e:{for(ve=B.key;U!==null;){if(U.key===ve)if(U.tag===4&&U.stateNode.containerInfo===B.containerInfo&&U.stateNode.implementation===B.implementation){o(j,U.sibling),ee=h(U,B.children||[]),ee.return=j,j=ee;break e}else{o(j,U);break}else i(j,U);U=U.sibling}ee=_c(B,j.mode,ee),ee.return=j,j=ee}return y(j);case I:return B=mr(B),je(j,U,B,ee)}if(W(B))return fe(j,U,B,ee);if(V(B)){if(ve=V(B),typeof ve!="function")throw Error(a(150));return B=ve.call(B),be(j,U,B,ee)}if(typeof B.then=="function")return je(j,U,$l(B),ee);if(B.$$typeof===A)return je(j,U,jl(j,B),ee);ql(j,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,U!==null&&U.tag===6?(o(j,U.sibling),ee=h(U,B),ee.return=j,j=ee):(o(j,U),ee=yc(B,j.mode,ee),ee.return=j,j=ee),y(j)):o(j,U)}return function(j,U,B,ee){try{go=0;var ve=je(j,U,B,ee);return fa=null,ve}catch(ge){if(ge===da||ge===Bl)throw ge;var Oe=Qt(29,ge,null,j.mode);return Oe.lanes=ee,Oe.return=j,Oe}}}var vr=pm(!0),mm=pm(!1),Ri=!1;function Oc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mc(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 Ni(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Oi(t,i,o){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(De&2)!==0){var h=s.pending;return h===null?i.next=i:(i.next=h.next,h.next=i),s.pending=i,i=Il(t),Kp(t,null,o),i}return zl(t,s,i,o),Il(t)}function bo(t,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var s=i.lanes;s&=t.pendingLanes,o|=s,i.lanes=o,op(t,o)}}function Dc(t,i){var o=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var h=null,p=null;if(o=o.firstBaseUpdate,o!==null){do{var y={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};p===null?h=p=y:p=p.next=y,o=o.next}while(o!==null);p===null?h=p=i:p=p.next=i}else h=p=i;o={baseState:s.baseState,firstBaseUpdate:h,lastBaseUpdate:p,shared:s.shared,callbacks:s.callbacks},t.updateQueue=o;return}t=o.lastBaseUpdate,t===null?o.firstBaseUpdate=i:t.next=i,o.lastBaseUpdate=i}var zc=!1;function yo(){if(zc){var t=ca;if(t!==null)throw t}}function _o(t,i,o,s){zc=!1;var h=t.updateQueue;Ri=!1;var p=h.firstBaseUpdate,y=h.lastBaseUpdate,x=h.shared.pending;if(x!==null){h.shared.pending=null;var O=x,G=O.next;O.next=null,y===null?p=G:y.next=G,y=O;var Q=t.alternate;Q!==null&&(Q=Q.updateQueue,x=Q.lastBaseUpdate,x!==y&&(x===null?Q.firstBaseUpdate=G:x.next=G,Q.lastBaseUpdate=O))}if(p!==null){var ne=h.baseState;y=0,Q=G=O=null,x=p;do{var $=x.lane&-536870913,X=$!==x.lane;if(X?(Te&$)===$:(s&$)===$){$!==0&&$===ua&&(zc=!0),Q!==null&&(Q=Q.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var fe=t,be=x;$=i;var je=o;switch(be.tag){case 1:if(fe=be.payload,typeof fe=="function"){ne=fe.call(je,ne,$);break e}ne=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=be.payload,$=typeof fe=="function"?fe.call(je,ne,$):fe,$==null)break e;ne=v({},ne,$);break e;case 2:Ri=!0}}$=x.callback,$!==null&&(t.flags|=64,X&&(t.flags|=8192),X=h.callbacks,X===null?h.callbacks=[$]:X.push($))}else X={lane:$,tag:x.tag,payload:x.payload,callback:x.callback,next:null},Q===null?(G=Q=X,O=ne):Q=Q.next=X,y|=$;if(x=x.next,x===null){if(x=h.shared.pending,x===null)break;X=x,x=X.next,X.next=null,h.lastBaseUpdate=X,h.shared.pending=null}}while(!0);Q===null&&(O=ne),h.baseState=O,h.firstBaseUpdate=G,h.lastBaseUpdate=Q,p===null&&(h.shared.lanes=0),Pi|=y,t.lanes=y,t.memoizedState=ne}}function gm(t,i){if(typeof t!="function")throw Error(a(191,t));t.call(i)}function vm(t,i){var o=t.callbacks;if(o!==null)for(t.callbacks=null,t=0;t<o.length;t++)gm(o[t],i)}var ha=N(null),Yl=N(0);function bm(t,i){t=ci,ae(Yl,t),ae(ha,i),ci=t|i.baseLanes}function Ic(){ae(Yl,ci),ae(ha,ha.current)}function Pc(){ci=Yl.current,q(ha),q(Yl)}var Zt=N(null),dn=null;function Mi(t){var i=t.alternate;ae(tt,tt.current&1),ae(Zt,t),dn===null&&(i===null||ha.current!==null||i.memoizedState!==null)&&(dn=t)}function Uc(t){ae(tt,tt.current),ae(Zt,t),dn===null&&(dn=t)}function ym(t){t.tag===22?(ae(tt,tt.current),ae(Zt,t),dn===null&&(dn=t)):Di()}function Di(){ae(tt,tt.current),ae(Zt,Zt.current)}function Kt(t){q(Zt),dn===t&&(dn=null),q(tt)}var tt=N(0);function Fl(t){for(var i=t;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||$d(o)||qd(o)))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 ni=0,Se=null,Ue=null,lt=null,Xl=!1,pa=!1,br=!1,Wl=0,So=0,ma=null,JS=0;function Ke(){throw Error(a(321))}function Hc(t,i){if(i===null)return!1;for(var o=0;o<i.length&&o<t.length;o++)if(!Wt(t[o],i[o]))return!1;return!0}function jc(t,i,o,s,h,p){return ni=p,Se=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,D.H=t===null||t.memoizedState===null?ng:td,br=!1,p=o(s,h),br=!1,pa&&(p=Sm(i,o,s,h)),_m(t),p}function _m(t){D.H=wo;var i=Ue!==null&&Ue.next!==null;if(ni=0,lt=Ue=Se=null,Xl=!1,So=0,ma=null,i)throw Error(a(300));t===null||st||(t=t.dependencies,t!==null&&Hl(t)&&(st=!0))}function Sm(t,i,o,s){Se=t;var h=0;do{if(pa&&(ma=null),So=0,pa=!1,25<=h)throw Error(a(301));if(h+=1,lt=Ue=null,t.updateQueue!=null){var p=t.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}D.H=ig,p=i(o,s)}while(pa);return p}function ex(){var t=D.H,i=t.useState()[0];return i=typeof i.then=="function"?xo(i):i,t=t.useState()[0],(Ue!==null?Ue.memoizedState:null)!==t&&(Se.flags|=1024),i}function Vc(){var t=Wl!==0;return Wl=0,t}function Bc(t,i,o){i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~o}function Gc(t){if(Xl){for(t=t.memoizedState;t!==null;){var i=t.queue;i!==null&&(i.pending=null),t=t.next}Xl=!1}ni=0,lt=Ue=Se=null,pa=!1,So=Wl=0,ma=null}function Pt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lt===null?Se.memoizedState=lt=t:lt=lt.next=t,lt}function nt(){if(Ue===null){var t=Se.alternate;t=t!==null?t.memoizedState:null}else t=Ue.next;var i=lt===null?Se.memoizedState:lt.next;if(i!==null)lt=i,Ue=t;else{if(t===null)throw Se.alternate===null?Error(a(467)):Error(a(310));Ue=t,t={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},lt===null?Se.memoizedState=lt=t:lt=lt.next=t}return lt}function Ql(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xo(t){var i=So;return So+=1,ma===null&&(ma=[]),t=dm(ma,t,i),i=Se,(lt===null?i.memoizedState:lt.next)===null&&(i=i.alternate,D.H=i===null||i.memoizedState===null?ng:td),t}function Zl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return xo(t);if(t.$$typeof===A)return At(t)}throw Error(a(438,String(t)))}function $c(t){var i=null,o=Se.updateQueue;if(o!==null&&(i=o.memoCache),i==null){var s=Se.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(i={data:s.data.map(function(h){return h.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),o===null&&(o=Ql(),Se.updateQueue=o),o.memoCache=i,o=i.data[i.index],o===void 0)for(o=i.data[i.index]=Array(t),s=0;s<t;s++)o[s]=Z;return i.index++,o}function ii(t,i){return typeof i=="function"?i(t):i}function Kl(t){var i=nt();return qc(i,Ue,t)}function qc(t,i,o){var s=t.queue;if(s===null)throw Error(a(311));s.lastRenderedReducer=o;var h=t.baseQueue,p=s.pending;if(p!==null){if(h!==null){var y=h.next;h.next=p.next,p.next=y}i.baseQueue=h=p,s.pending=null}if(p=t.baseState,h===null)t.memoizedState=p;else{i=h.next;var x=y=null,O=null,G=i,Q=!1;do{var ne=G.lane&-536870913;if(ne!==G.lane?(Te&ne)===ne:(ni&ne)===ne){var $=G.revertLane;if($===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),ne===ua&&(Q=!0);else if((ni&$)===$){G=G.next,$===ua&&(Q=!0);continue}else ne={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},O===null?(x=O=ne,y=p):O=O.next=ne,Se.lanes|=$,Pi|=$;ne=G.action,br&&o(p,ne),p=G.hasEagerState?G.eagerState:o(p,ne)}else $={lane:ne,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},O===null?(x=O=$,y=p):O=O.next=$,Se.lanes|=ne,Pi|=ne;G=G.next}while(G!==null&&G!==i);if(O===null?y=p:O.next=x,!Wt(p,t.memoizedState)&&(st=!0,Q&&(o=ca,o!==null)))throw o;t.memoizedState=p,t.baseState=y,t.baseQueue=O,s.lastRenderedState=p}return h===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function Yc(t){var i=nt(),o=i.queue;if(o===null)throw Error(a(311));o.lastRenderedReducer=t;var s=o.dispatch,h=o.pending,p=i.memoizedState;if(h!==null){o.pending=null;var y=h=h.next;do p=t(p,y.action),y=y.next;while(y!==h);Wt(p,i.memoizedState)||(st=!0),i.memoizedState=p,i.baseQueue===null&&(i.baseState=p),o.lastRenderedState=p}return[p,s]}function xm(t,i,o){var s=Se,h=nt(),p=Re;if(p){if(o===void 0)throw Error(a(407));o=o()}else o=i();var y=!Wt((Ue||h).memoizedState,o);if(y&&(h.memoizedState=o,st=!0),h=h.queue,Wc(Cm.bind(null,s,h,t),[t]),h.getSnapshot!==i||y||lt!==null&<.memoizedState.tag&1){if(s.flags|=2048,ga(9,{destroy:void 0},wm.bind(null,s,h,o,i),null),qe===null)throw Error(a(349));p||(ni&127)!==0||Em(s,i,o)}return o}function Em(t,i,o){t.flags|=16384,t={getSnapshot:i,value:o},i=Se.updateQueue,i===null?(i=Ql(),Se.updateQueue=i,i.stores=[t]):(o=i.stores,o===null?i.stores=[t]:o.push(t))}function wm(t,i,o,s){i.value=o,i.getSnapshot=s,Am(i)&&km(t)}function Cm(t,i,o){return o(function(){Am(i)&&km(t)})}function Am(t){var i=t.getSnapshot;t=t.value;try{var o=i();return!Wt(t,o)}catch{return!0}}function km(t){var i=ur(t,2);i!==null&&Yt(i,t,2)}function Fc(t){var i=Pt();if(typeof t=="function"){var o=t;if(t=o(),br){Sn(!0);try{o()}finally{Sn(!1)}}}return i.memoizedState=i.baseState=t,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:t},i}function Tm(t,i,o,s){return t.baseState=o,qc(t,Ue,typeof s=="function"?s:ii)}function tx(t,i,o,s,h){if(ts(t))throw Error(a(485));if(t=i.action,t!==null){var p={payload:h,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){p.listeners.push(y)}};D.T!==null?o(!0):p.isTransition=!1,s(p),o=i.pending,o===null?(p.next=i.pending=p,Lm(i,p)):(p.next=o.next,i.pending=o.next=p)}}function Lm(t,i){var o=i.action,s=i.payload,h=t.state;if(i.isTransition){var p=D.T,y={};D.T=y;try{var x=o(h,s),O=D.S;O!==null&&O(y,x),Rm(t,i,x)}catch(G){Xc(t,i,G)}finally{p!==null&&y.types!==null&&(p.types=y.types),D.T=p}}else try{p=o(h,s),Rm(t,i,p)}catch(G){Xc(t,i,G)}}function Rm(t,i,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(s){Nm(t,i,s)},function(s){return Xc(t,i,s)}):Nm(t,i,o)}function Nm(t,i,o){i.status="fulfilled",i.value=o,Om(i),t.state=o,i=t.pending,i!==null&&(o=i.next,o===i?t.pending=null:(o=o.next,i.next=o,Lm(t,o)))}function Xc(t,i,o){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do i.status="rejected",i.reason=o,Om(i),i=i.next;while(i!==s)}t.action=null}function Om(t){t=t.listeners;for(var i=0;i<t.length;i++)(0,t[i])()}function Mm(t,i){return i}function Dm(t,i){if(Re){var o=qe.formState;if(o!==null){e:{var s=Se;if(Re){if(Xe){t:{for(var h=Xe,p=cn;h.nodeType!==8;){if(!p){h=null;break t}if(h=fn(h.nextSibling),h===null){h=null;break t}}p=h.data,h=p==="F!"||p==="F"?h:null}if(h){Xe=fn(h.nextSibling),s=h.data==="F!";break e}}Ti(s)}s=!1}s&&(i=o[0])}}return o=Pt(),o.memoizedState=o.baseState=i,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mm,lastRenderedState:i},o.queue=s,o=Jm.bind(null,Se,s),s.dispatch=o,s=Fc(!1),p=ed.bind(null,Se,!1,s.queue),s=Pt(),h={state:i,dispatch:null,action:t,pending:null},s.queue=h,o=tx.bind(null,Se,h,p,o),h.dispatch=o,s.memoizedState=t,[i,o,!1]}function zm(t){var i=nt();return Im(i,Ue,t)}function Im(t,i,o){if(i=qc(t,i,Mm)[0],t=Kl(ii)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var s=xo(i)}catch(y){throw y===da?Bl:y}else s=i;i=nt();var h=i.queue,p=h.dispatch;return o!==i.memoizedState&&(Se.flags|=2048,ga(9,{destroy:void 0},nx.bind(null,h,o),null)),[s,p,t]}function nx(t,i){t.action=i}function Pm(t){var i=nt(),o=Ue;if(o!==null)return Im(i,o,t);nt(),i=i.memoizedState,o=nt();var s=o.queue.dispatch;return o.memoizedState=t,[i,s,!1]}function ga(t,i,o,s){return t={tag:t,create:o,deps:s,inst:i,next:null},i=Se.updateQueue,i===null&&(i=Ql(),Se.updateQueue=i),o=i.lastEffect,o===null?i.lastEffect=t.next=t:(s=o.next,o.next=t,t.next=s,i.lastEffect=t),t}function Um(){return nt().memoizedState}function Jl(t,i,o,s){var h=Pt();Se.flags|=t,h.memoizedState=ga(1|i,{destroy:void 0},o,s===void 0?null:s)}function es(t,i,o,s){var h=nt();s=s===void 0?null:s;var p=h.memoizedState.inst;Ue!==null&&s!==null&&Hc(s,Ue.memoizedState.deps)?h.memoizedState=ga(i,p,o,s):(Se.flags|=t,h.memoizedState=ga(1|i,p,o,s))}function Hm(t,i){Jl(8390656,8,t,i)}function Wc(t,i){es(2048,8,t,i)}function ix(t){Se.flags|=4;var i=Se.updateQueue;if(i===null)i=Ql(),Se.updateQueue=i,i.events=[t];else{var o=i.events;o===null?i.events=[t]:o.push(t)}}function jm(t){var i=nt().memoizedState;return ix({ref:i,nextImpl:t}),function(){if((De&2)!==0)throw Error(a(440));return i.impl.apply(void 0,arguments)}}function Vm(t,i){return es(4,2,t,i)}function Bm(t,i){return es(4,4,t,i)}function Gm(t,i){if(typeof i=="function"){t=t();var o=i(t);return function(){typeof o=="function"?o():i(null)}}if(i!=null)return t=t(),i.current=t,function(){i.current=null}}function $m(t,i,o){o=o!=null?o.concat([t]):null,es(4,4,Gm.bind(null,i,t),o)}function Qc(){}function qm(t,i){var o=nt();i=i===void 0?null:i;var s=o.memoizedState;return i!==null&&Hc(i,s[1])?s[0]:(o.memoizedState=[t,i],t)}function Ym(t,i){var o=nt();i=i===void 0?null:i;var s=o.memoizedState;if(i!==null&&Hc(i,s[1]))return s[0];if(s=t(),br){Sn(!0);try{t()}finally{Sn(!1)}}return o.memoizedState=[s,i],s}function Zc(t,i,o){return o===void 0||(ni&1073741824)!==0&&(Te&261930)===0?t.memoizedState=i:(t.memoizedState=o,t=Fg(),Se.lanes|=t,Pi|=t,o)}function Fm(t,i,o,s){return Wt(o,i)?o:ha.current!==null?(t=Zc(t,o,s),Wt(t,i)||(st=!0),t):(ni&42)===0||(ni&1073741824)!==0&&(Te&261930)===0?(st=!0,t.memoizedState=o):(t=Fg(),Se.lanes|=t,Pi|=t,i)}function Xm(t,i,o,s,h){var p=Y.p;Y.p=p!==0&&8>p?p:8;var y=D.T,x={};D.T=x,ed(t,!1,i,o);try{var O=h(),G=D.S;if(G!==null&&G(x,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var Q=KS(O,s);Eo(t,i,Q,tn(t))}else Eo(t,i,s,tn(t))}catch(ne){Eo(t,i,{then:function(){},status:"rejected",reason:ne},tn())}finally{Y.p=p,y!==null&&x.types!==null&&(y.types=x.types),D.T=y}}function rx(){}function Kc(t,i,o,s){if(t.tag!==5)throw Error(a(476));var h=Wm(t).queue;Xm(t,h,i,re,o===null?rx:function(){return Qm(t),o(s)})}function Wm(t){var i=t.memoizedState;if(i!==null)return i;i={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:re},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ii,lastRenderedState:o},next:null},t.memoizedState=i,t=t.alternate,t!==null&&(t.memoizedState=i),i}function Qm(t){var i=Wm(t);i.next===null&&(i=t.alternate.memoizedState),Eo(t,i.next.queue,{},tn())}function Jc(){return At(jo)}function Zm(){return nt().memoizedState}function Km(){return nt().memoizedState}function ax(t){for(var i=t.return;i!==null;){switch(i.tag){case 24:case 3:var o=tn();t=Ni(o);var s=Oi(i,t,o);s!==null&&(Yt(s,i,o),bo(s,i,o)),i={cache:Tc()},t.payload=i;return}i=i.return}}function ox(t,i,o){var s=tn();o={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},ts(t)?eg(i,o):(o=vc(t,i,o,s),o!==null&&(Yt(o,t,s),tg(o,i,s)))}function Jm(t,i,o){var s=tn();Eo(t,i,o,s)}function Eo(t,i,o,s){var h={lane:s,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(ts(t))eg(i,h);else{var p=t.alternate;if(t.lanes===0&&(p===null||p.lanes===0)&&(p=i.lastRenderedReducer,p!==null))try{var y=i.lastRenderedState,x=p(y,o);if(h.hasEagerState=!0,h.eagerState=x,Wt(x,y))return zl(t,i,h,0),qe===null&&Dl(),!1}catch{}if(o=vc(t,i,h,s),o!==null)return Yt(o,t,s),tg(o,i,s),!0}return!1}function ed(t,i,o,s){if(s={lane:2,revertLane:Od(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},ts(t)){if(i)throw Error(a(479))}else i=vc(t,o,s,2),i!==null&&Yt(i,t,2)}function ts(t){var i=t.alternate;return t===Se||i!==null&&i===Se}function eg(t,i){pa=Xl=!0;var o=t.pending;o===null?i.next=i:(i.next=o.next,o.next=i),t.pending=i}function tg(t,i,o){if((o&4194048)!==0){var s=i.lanes;s&=t.pendingLanes,o|=s,i.lanes=o,op(t,o)}}var wo={readContext:At,use:Zl,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useLayoutEffect:Ke,useInsertionEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useSyncExternalStore:Ke,useId:Ke,useHostTransitionStatus:Ke,useFormState:Ke,useActionState:Ke,useOptimistic:Ke,useMemoCache:Ke,useCacheRefresh:Ke};wo.useEffectEvent=Ke;var ng={readContext:At,use:Zl,useCallback:function(t,i){return Pt().memoizedState=[t,i===void 0?null:i],t},useContext:At,useEffect:Hm,useImperativeHandle:function(t,i,o){o=o!=null?o.concat([t]):null,Jl(4194308,4,Gm.bind(null,i,t),o)},useLayoutEffect:function(t,i){return Jl(4194308,4,t,i)},useInsertionEffect:function(t,i){Jl(4,2,t,i)},useMemo:function(t,i){var o=Pt();i=i===void 0?null:i;var s=t();if(br){Sn(!0);try{t()}finally{Sn(!1)}}return o.memoizedState=[s,i],s},useReducer:function(t,i,o){var s=Pt();if(o!==void 0){var h=o(i);if(br){Sn(!0);try{o(i)}finally{Sn(!1)}}}else h=i;return s.memoizedState=s.baseState=h,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:h},s.queue=t,t=t.dispatch=ox.bind(null,Se,t),[s.memoizedState,t]},useRef:function(t){var i=Pt();return t={current:t},i.memoizedState=t},useState:function(t){t=Fc(t);var i=t.queue,o=Jm.bind(null,Se,i);return i.dispatch=o,[t.memoizedState,o]},useDebugValue:Qc,useDeferredValue:function(t,i){var o=Pt();return Zc(o,t,i)},useTransition:function(){var t=Fc(!1);return t=Xm.bind(null,Se,t.queue,!0,!1),Pt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,i,o){var s=Se,h=Pt();if(Re){if(o===void 0)throw Error(a(407));o=o()}else{if(o=i(),qe===null)throw Error(a(349));(Te&127)!==0||Em(s,i,o)}h.memoizedState=o;var p={value:o,getSnapshot:i};return h.queue=p,Hm(Cm.bind(null,s,p,t),[t]),s.flags|=2048,ga(9,{destroy:void 0},wm.bind(null,s,p,o,i),null),o},useId:function(){var t=Pt(),i=qe.identifierPrefix;if(Re){var o=Un,s=Pn;o=(s&~(1<<32-Nt(s)-1)).toString(32)+o,i="_"+i+"R_"+o,o=Wl++,0<o&&(i+="H"+o.toString(32)),i+="_"}else o=JS++,i="_"+i+"r_"+o.toString(32)+"_";return t.memoizedState=i},useHostTransitionStatus:Jc,useFormState:Dm,useActionState:Dm,useOptimistic:function(t){var i=Pt();i.memoizedState=i.baseState=t;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=o,i=ed.bind(null,Se,!0,o),o.dispatch=i,[t,i]},useMemoCache:$c,useCacheRefresh:function(){return Pt().memoizedState=ax.bind(null,Se)},useEffectEvent:function(t){var i=Pt(),o={impl:t};return i.memoizedState=o,function(){if((De&2)!==0)throw Error(a(440));return o.impl.apply(void 0,arguments)}}},td={readContext:At,use:Zl,useCallback:qm,useContext:At,useEffect:Wc,useImperativeHandle:$m,useInsertionEffect:Vm,useLayoutEffect:Bm,useMemo:Ym,useReducer:Kl,useRef:Um,useState:function(){return Kl(ii)},useDebugValue:Qc,useDeferredValue:function(t,i){var o=nt();return Fm(o,Ue.memoizedState,t,i)},useTransition:function(){var t=Kl(ii)[0],i=nt().memoizedState;return[typeof t=="boolean"?t:xo(t),i]},useSyncExternalStore:xm,useId:Zm,useHostTransitionStatus:Jc,useFormState:zm,useActionState:zm,useOptimistic:function(t,i){var o=nt();return Tm(o,Ue,t,i)},useMemoCache:$c,useCacheRefresh:Km};td.useEffectEvent=jm;var ig={readContext:At,use:Zl,useCallback:qm,useContext:At,useEffect:Wc,useImperativeHandle:$m,useInsertionEffect:Vm,useLayoutEffect:Bm,useMemo:Ym,useReducer:Yc,useRef:Um,useState:function(){return Yc(ii)},useDebugValue:Qc,useDeferredValue:function(t,i){var o=nt();return Ue===null?Zc(o,t,i):Fm(o,Ue.memoizedState,t,i)},useTransition:function(){var t=Yc(ii)[0],i=nt().memoizedState;return[typeof t=="boolean"?t:xo(t),i]},useSyncExternalStore:xm,useId:Zm,useHostTransitionStatus:Jc,useFormState:Pm,useActionState:Pm,useOptimistic:function(t,i){var o=nt();return Ue!==null?Tm(o,Ue,t,i):(o.baseState=t,[t,o.queue.dispatch])},useMemoCache:$c,useCacheRefresh:Km};ig.useEffectEvent=jm;function nd(t,i,o,s){i=t.memoizedState,o=o(s,i),o=o==null?i:v({},i,o),t.memoizedState=o,t.lanes===0&&(t.updateQueue.baseState=o)}var id={enqueueSetState:function(t,i,o){t=t._reactInternals;var s=tn(),h=Ni(s);h.payload=i,o!=null&&(h.callback=o),i=Oi(t,h,s),i!==null&&(Yt(i,t,s),bo(i,t,s))},enqueueReplaceState:function(t,i,o){t=t._reactInternals;var s=tn(),h=Ni(s);h.tag=1,h.payload=i,o!=null&&(h.callback=o),i=Oi(t,h,s),i!==null&&(Yt(i,t,s),bo(i,t,s))},enqueueForceUpdate:function(t,i){t=t._reactInternals;var o=tn(),s=Ni(o);s.tag=2,i!=null&&(s.callback=i),i=Oi(t,s,o),i!==null&&(Yt(i,t,o),bo(i,t,o))}};function rg(t,i,o,s,h,p,y){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,p,y):i.prototype&&i.prototype.isPureReactComponent?!uo(o,s)||!uo(h,p):!0}function ag(t,i,o,s){t=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,s),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,s),i.state!==t&&id.enqueueReplaceState(i,i.state,null)}function yr(t,i){var o=i;if("ref"in i){o={};for(var s in i)s!=="ref"&&(o[s]=i[s])}if(t=t.defaultProps){o===i&&(o=v({},o));for(var h in t)o[h]===void 0&&(o[h]=t[h])}return o}function og(t){Ml(t)}function lg(t){console.error(t)}function sg(t){Ml(t)}function ns(t,i){try{var o=t.onUncaughtError;o(i.value,{componentStack:i.stack})}catch(s){setTimeout(function(){throw s})}}function ug(t,i,o){try{var s=t.onCaughtError;s(o.value,{componentStack:o.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function rd(t,i,o){return o=Ni(o),o.tag=3,o.payload={element:null},o.callback=function(){ns(t,i)},o}function cg(t){return t=Ni(t),t.tag=3,t}function dg(t,i,o,s){var h=o.type.getDerivedStateFromError;if(typeof h=="function"){var p=s.value;t.payload=function(){return h(p)},t.callback=function(){ug(i,o,s)}}var y=o.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(t.callback=function(){ug(i,o,s),typeof h!="function"&&(Ui===null?Ui=new Set([this]):Ui.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function lx(t,i,o,s,h){if(o.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(i=o.alternate,i!==null&&sa(i,o,h,!0),o=Zt.current,o!==null){switch(o.tag){case 31:case 13:return dn===null?ps():o.alternate===null&&Je===0&&(Je=3),o.flags&=-257,o.flags|=65536,o.lanes=h,s===Gl?o.flags|=16384:(i=o.updateQueue,i===null?o.updateQueue=new Set([s]):i.add(s),Ld(t,s,h)),!1;case 22:return o.flags|=65536,s===Gl?o.flags|=16384:(i=o.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([s])},o.updateQueue=i):(o=i.retryQueue,o===null?i.retryQueue=new Set([s]):o.add(s)),Ld(t,s,h)),!1}throw Error(a(435,o.tag))}return Ld(t,s,h),ps(),!1}if(Re)return i=Zt.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=h,s!==Ec&&(t=Error(a(422),{cause:s}),ho(ln(t,o)))):(s!==Ec&&(i=Error(a(423),{cause:s}),ho(ln(i,o))),t=t.current.alternate,t.flags|=65536,h&=-h,t.lanes|=h,s=ln(s,o),h=rd(t.stateNode,s,h),Dc(t,h),Je!==4&&(Je=2)),!1;var p=Error(a(520),{cause:s});if(p=ln(p,o),Oo===null?Oo=[p]:Oo.push(p),Je!==4&&(Je=2),i===null)return!0;s=ln(s,o),o=i;do{switch(o.tag){case 3:return o.flags|=65536,t=h&-h,o.lanes|=t,t=rd(o.stateNode,s,t),Dc(o,t),!1;case 1:if(i=o.type,p=o.stateNode,(o.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Ui===null||!Ui.has(p))))return o.flags|=65536,h&=-h,o.lanes|=h,h=cg(h),dg(h,t,o,s),Dc(o,h),!1}o=o.return}while(o!==null);return!1}var ad=Error(a(461)),st=!1;function kt(t,i,o,s){i.child=t===null?mm(i,null,o,s):vr(i,t.child,o,s)}function fg(t,i,o,s,h){o=o.render;var p=i.ref;if("ref"in s){var y={};for(var x in s)x!=="ref"&&(y[x]=s[x])}else y=s;return hr(i),s=jc(t,i,o,y,p,h),x=Vc(),t!==null&&!st?(Bc(t,i,h),ri(t,i,h)):(Re&&x&&Sc(i),i.flags|=1,kt(t,i,s,h),i.child)}function hg(t,i,o,s,h){if(t===null){var p=o.type;return typeof p=="function"&&!bc(p)&&p.defaultProps===void 0&&o.compare===null?(i.tag=15,i.type=p,pg(t,i,p,s,h)):(t=Pl(o.type,null,s,i,i.mode,h),t.ref=i.ref,t.return=i,i.child=t)}if(p=t.child,!hd(t,h)){var y=p.memoizedProps;if(o=o.compare,o=o!==null?o:uo,o(y,s)&&t.ref===i.ref)return ri(t,i,h)}return i.flags|=1,t=Kn(p,s),t.ref=i.ref,t.return=i,i.child=t}function pg(t,i,o,s,h){if(t!==null){var p=t.memoizedProps;if(uo(p,s)&&t.ref===i.ref)if(st=!1,i.pendingProps=s=p,hd(t,h))(t.flags&131072)!==0&&(st=!0);else return i.lanes=t.lanes,ri(t,i,h)}return od(t,i,o,s,h)}function mg(t,i,o,s){var h=s.children,p=t!==null?t.memoizedState:null;if(t===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((i.flags&128)!==0){if(p=p!==null?p.baseLanes|o:o,t!==null){for(s=i.child=t.child,h=0;s!==null;)h=h|s.lanes|s.childLanes,s=s.sibling;s=h&~p}else s=0,i.child=null;return gg(t,i,p,o,s)}if((o&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},t!==null&&Vl(i,p!==null?p.cachePool:null),p!==null?bm(i,p):Ic(),ym(i);else return s=i.lanes=536870912,gg(t,i,p!==null?p.baseLanes|o:o,o,s)}else p!==null?(Vl(i,p.cachePool),bm(i,p),Di(),i.memoizedState=null):(t!==null&&Vl(i,null),Ic(),Di());return kt(t,i,h,o),i.child}function Co(t,i){return t!==null&&t.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function gg(t,i,o,s,h){var p=Rc();return p=p===null?null:{parent:ot._currentValue,pool:p},i.memoizedState={baseLanes:o,cachePool:p},t!==null&&Vl(i,null),Ic(),ym(i),t!==null&&sa(t,i,s,!0),i.childLanes=h,null}function is(t,i){return i=as({mode:i.mode,children:i.children},t.mode),i.ref=t.ref,t.child=i,i.return=t,i}function vg(t,i,o){return vr(i,t.child,null,o),t=is(i,i.pendingProps),t.flags|=2,Kt(i),i.memoizedState=null,t}function sx(t,i,o){var s=i.pendingProps,h=(i.flags&128)!==0;if(i.flags&=-129,t===null){if(Re){if(s.mode==="hidden")return t=is(i,s),i.lanes=536870912,Co(null,t);if(Uc(i),(t=Xe)?(t=Lv(t,cn),t=t!==null&&t.data==="&"?t:null,t!==null&&(i.memoizedState={dehydrated:t,treeContext:Ai!==null?{id:Pn,overflow:Un}:null,retryLane:536870912,hydrationErrors:null},o=em(t),o.return=i,i.child=o,Ct=i,Xe=null)):t=null,t===null)throw Ti(i);return i.lanes=536870912,null}return is(i,s)}var p=t.memoizedState;if(p!==null){var y=p.dehydrated;if(Uc(i),h)if(i.flags&256)i.flags&=-257,i=vg(t,i,o);else if(i.memoizedState!==null)i.child=t.child,i.flags|=128,i=null;else throw Error(a(558));else if(st||sa(t,i,o,!1),h=(o&t.childLanes)!==0,st||h){if(s=qe,s!==null&&(y=lp(s,o),y!==0&&y!==p.retryLane))throw p.retryLane=y,ur(t,y),Yt(s,t,y),ad;ps(),i=vg(t,i,o)}else t=p.treeContext,Xe=fn(y.nextSibling),Ct=i,Re=!0,ki=null,cn=!1,t!==null&&im(i,t),i=is(i,s),i.flags|=4096;return i}return t=Kn(t.child,{mode:s.mode,children:s.children}),t.ref=i.ref,i.child=t,t.return=i,t}function rs(t,i){var o=i.ref;if(o===null)t!==null&&t.ref!==null&&(i.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(a(284));(t===null||t.ref!==o)&&(i.flags|=4194816)}}function od(t,i,o,s,h){return hr(i),o=jc(t,i,o,s,void 0,h),s=Vc(),t!==null&&!st?(Bc(t,i,h),ri(t,i,h)):(Re&&s&&Sc(i),i.flags|=1,kt(t,i,o,h),i.child)}function bg(t,i,o,s,h,p){return hr(i),i.updateQueue=null,o=Sm(i,s,o,h),_m(t),s=Vc(),t!==null&&!st?(Bc(t,i,p),ri(t,i,p)):(Re&&s&&Sc(i),i.flags|=1,kt(t,i,o,p),i.child)}function yg(t,i,o,s,h){if(hr(i),i.stateNode===null){var p=ra,y=o.contextType;typeof y=="object"&&y!==null&&(p=At(y)),p=new o(s,p),i.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=id,i.stateNode=p,p._reactInternals=i,p=i.stateNode,p.props=s,p.state=i.memoizedState,p.refs={},Oc(i),y=o.contextType,p.context=typeof y=="object"&&y!==null?At(y):ra,p.state=i.memoizedState,y=o.getDerivedStateFromProps,typeof y=="function"&&(nd(i,o,y,s),p.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(y=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),y!==p.state&&id.enqueueReplaceState(p,p.state,null),_o(i,s,p,h),yo(),p.state=i.memoizedState),typeof p.componentDidMount=="function"&&(i.flags|=4194308),s=!0}else if(t===null){p=i.stateNode;var x=i.memoizedProps,O=yr(o,x);p.props=O;var G=p.context,Q=o.contextType;y=ra,typeof Q=="object"&&Q!==null&&(y=At(Q));var ne=o.getDerivedStateFromProps;Q=typeof ne=="function"||typeof p.getSnapshotBeforeUpdate=="function",x=i.pendingProps!==x,Q||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(x||G!==y)&&ag(i,p,s,y),Ri=!1;var $=i.memoizedState;p.state=$,_o(i,s,p,h),yo(),G=i.memoizedState,x||$!==G||Ri?(typeof ne=="function"&&(nd(i,o,ne,s),G=i.memoizedState),(O=Ri||rg(i,o,O,s,$,G,y))?(Q||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(i.flags|=4194308)):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=s,i.memoizedState=G),p.props=s,p.state=G,p.context=y,s=O):(typeof p.componentDidMount=="function"&&(i.flags|=4194308),s=!1)}else{p=i.stateNode,Mc(t,i),y=i.memoizedProps,Q=yr(o,y),p.props=Q,ne=i.pendingProps,$=p.context,G=o.contextType,O=ra,typeof G=="object"&&G!==null&&(O=At(G)),x=o.getDerivedStateFromProps,(G=typeof x=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(y!==ne||$!==O)&&ag(i,p,s,O),Ri=!1,$=i.memoizedState,p.state=$,_o(i,s,p,h),yo();var X=i.memoizedState;y!==ne||$!==X||Ri||t!==null&&t.dependencies!==null&&Hl(t.dependencies)?(typeof x=="function"&&(nd(i,o,x,s),X=i.memoizedState),(Q=Ri||rg(i,o,Q,s,$,X,O)||t!==null&&t.dependencies!==null&&Hl(t.dependencies))?(G||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,X,O),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,X,O)),typeof p.componentDidUpdate=="function"&&(i.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof p.componentDidUpdate!="function"||y===t.memoizedProps&&$===t.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===t.memoizedProps&&$===t.memoizedState||(i.flags|=1024),i.memoizedProps=s,i.memoizedState=X),p.props=s,p.state=X,p.context=O,s=Q):(typeof p.componentDidUpdate!="function"||y===t.memoizedProps&&$===t.memoizedState||(i.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===t.memoizedProps&&$===t.memoizedState||(i.flags|=1024),s=!1)}return p=s,rs(t,i),s=(i.flags&128)!==0,p||s?(p=i.stateNode,o=s&&typeof o.getDerivedStateFromError!="function"?null:p.render(),i.flags|=1,t!==null&&s?(i.child=vr(i,t.child,null,h),i.child=vr(i,null,o,h)):kt(t,i,o,h),i.memoizedState=p.state,t=i.child):t=ri(t,i,h),t}function _g(t,i,o,s){return dr(),i.flags|=256,kt(t,i,o,s),i.child}var ld={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sd(t){return{baseLanes:t,cachePool:um()}}function ud(t,i,o){return t=t!==null?t.childLanes&~o:0,i&&(t|=en),t}function Sg(t,i,o){var s=i.pendingProps,h=!1,p=(i.flags&128)!==0,y;if((y=p)||(y=t!==null&&t.memoizedState===null?!1:(tt.current&2)!==0),y&&(h=!0,i.flags&=-129),y=(i.flags&32)!==0,i.flags&=-33,t===null){if(Re){if(h?Mi(i):Di(),(t=Xe)?(t=Lv(t,cn),t=t!==null&&t.data!=="&"?t:null,t!==null&&(i.memoizedState={dehydrated:t,treeContext:Ai!==null?{id:Pn,overflow:Un}:null,retryLane:536870912,hydrationErrors:null},o=em(t),o.return=i,i.child=o,Ct=i,Xe=null)):t=null,t===null)throw Ti(i);return qd(t)?i.lanes=32:i.lanes=536870912,null}var x=s.children;return s=s.fallback,h?(Di(),h=i.mode,x=as({mode:"hidden",children:x},h),s=cr(s,h,o,null),x.return=i,s.return=i,x.sibling=s,i.child=x,s=i.child,s.memoizedState=sd(o),s.childLanes=ud(t,y,o),i.memoizedState=ld,Co(null,s)):(Mi(i),cd(i,x))}var O=t.memoizedState;if(O!==null&&(x=O.dehydrated,x!==null)){if(p)i.flags&256?(Mi(i),i.flags&=-257,i=dd(t,i,o)):i.memoizedState!==null?(Di(),i.child=t.child,i.flags|=128,i=null):(Di(),x=s.fallback,h=i.mode,s=as({mode:"visible",children:s.children},h),x=cr(x,h,o,null),x.flags|=2,s.return=i,x.return=i,s.sibling=x,i.child=s,vr(i,t.child,null,o),s=i.child,s.memoizedState=sd(o),s.childLanes=ud(t,y,o),i.memoizedState=ld,i=Co(null,s));else if(Mi(i),qd(x)){if(y=x.nextSibling&&x.nextSibling.dataset,y)var G=y.dgst;y=G,s=Error(a(419)),s.stack="",s.digest=y,ho({value:s,source:null,stack:null}),i=dd(t,i,o)}else if(st||sa(t,i,o,!1),y=(o&t.childLanes)!==0,st||y){if(y=qe,y!==null&&(s=lp(y,o),s!==0&&s!==O.retryLane))throw O.retryLane=s,ur(t,s),Yt(y,t,s),ad;$d(x)||ps(),i=dd(t,i,o)}else $d(x)?(i.flags|=192,i.child=t.child,i=null):(t=O.treeContext,Xe=fn(x.nextSibling),Ct=i,Re=!0,ki=null,cn=!1,t!==null&&im(i,t),i=cd(i,s.children),i.flags|=4096);return i}return h?(Di(),x=s.fallback,h=i.mode,O=t.child,G=O.sibling,s=Kn(O,{mode:"hidden",children:s.children}),s.subtreeFlags=O.subtreeFlags&65011712,G!==null?x=Kn(G,x):(x=cr(x,h,o,null),x.flags|=2),x.return=i,s.return=i,s.sibling=x,i.child=s,Co(null,s),s=i.child,x=t.child.memoizedState,x===null?x=sd(o):(h=x.cachePool,h!==null?(O=ot._currentValue,h=h.parent!==O?{parent:O,pool:O}:h):h=um(),x={baseLanes:x.baseLanes|o,cachePool:h}),s.memoizedState=x,s.childLanes=ud(t,y,o),i.memoizedState=ld,Co(t.child,s)):(Mi(i),o=t.child,t=o.sibling,o=Kn(o,{mode:"visible",children:s.children}),o.return=i,o.sibling=null,t!==null&&(y=i.deletions,y===null?(i.deletions=[t],i.flags|=16):y.push(t)),i.child=o,i.memoizedState=null,o)}function cd(t,i){return i=as({mode:"visible",children:i},t.mode),i.return=t,t.child=i}function as(t,i){return t=Qt(22,t,null,i),t.lanes=0,t}function dd(t,i,o){return vr(i,t.child,null,o),t=cd(i,i.pendingProps.children),t.flags|=2,i.memoizedState=null,t}function xg(t,i,o){t.lanes|=i;var s=t.alternate;s!==null&&(s.lanes|=i),Ac(t.return,i,o)}function fd(t,i,o,s,h,p){var y=t.memoizedState;y===null?t.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:h,treeForkCount:p}:(y.isBackwards=i,y.rendering=null,y.renderingStartTime=0,y.last=s,y.tail=o,y.tailMode=h,y.treeForkCount=p)}function Eg(t,i,o){var s=i.pendingProps,h=s.revealOrder,p=s.tail;s=s.children;var y=tt.current,x=(y&2)!==0;if(x?(y=y&1|2,i.flags|=128):y&=1,ae(tt,y),kt(t,i,s,o),s=Re?fo:0,!x&&t!==null&&(t.flags&128)!==0)e:for(t=i.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&xg(t,o,i);else if(t.tag===19)xg(t,o,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(h){case"forwards":for(o=i.child,h=null;o!==null;)t=o.alternate,t!==null&&Fl(t)===null&&(h=o),o=o.sibling;o=h,o===null?(h=i.child,i.child=null):(h=o.sibling,o.sibling=null),fd(i,!1,h,o,p,s);break;case"backwards":case"unstable_legacy-backwards":for(o=null,h=i.child,i.child=null;h!==null;){if(t=h.alternate,t!==null&&Fl(t)===null){i.child=h;break}t=h.sibling,h.sibling=o,o=h,h=t}fd(i,!0,o,null,p,s);break;case"together":fd(i,!1,null,null,void 0,s);break;default:i.memoizedState=null}return i.child}function ri(t,i,o){if(t!==null&&(i.dependencies=t.dependencies),Pi|=i.lanes,(o&i.childLanes)===0)if(t!==null){if(sa(t,i,o,!1),(o&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,o=Kn(t,t.pendingProps),i.child=o,o.return=i;t.sibling!==null;)t=t.sibling,o=o.sibling=Kn(t,t.pendingProps),o.return=i;o.sibling=null}return i.child}function hd(t,i){return(t.lanes&i)!==0?!0:(t=t.dependencies,!!(t!==null&&Hl(t)))}function ux(t,i,o){switch(i.tag){case 3:Ce(i,i.stateNode.containerInfo),Li(i,ot,t.memoizedState.cache),dr();break;case 27:case 5:Be(i);break;case 4:Ce(i,i.stateNode.containerInfo);break;case 10:Li(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,Uc(i),null;break;case 13:var s=i.memoizedState;if(s!==null)return s.dehydrated!==null?(Mi(i),i.flags|=128,null):(o&i.child.childLanes)!==0?Sg(t,i,o):(Mi(i),t=ri(t,i,o),t!==null?t.sibling:null);Mi(i);break;case 19:var h=(t.flags&128)!==0;if(s=(o&i.childLanes)!==0,s||(sa(t,i,o,!1),s=(o&i.childLanes)!==0),h){if(s)return Eg(t,i,o);i.flags|=128}if(h=i.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),ae(tt,tt.current),s)break;return null;case 22:return i.lanes=0,mg(t,i,o,i.pendingProps);case 24:Li(i,ot,t.memoizedState.cache)}return ri(t,i,o)}function wg(t,i,o){if(t!==null)if(t.memoizedProps!==i.pendingProps)st=!0;else{if(!hd(t,o)&&(i.flags&128)===0)return st=!1,ux(t,i,o);st=(t.flags&131072)!==0}else st=!1,Re&&(i.flags&1048576)!==0&&nm(i,fo,i.index);switch(i.lanes=0,i.tag){case 16:e:{var s=i.pendingProps;if(t=mr(i.elementType),i.type=t,typeof t=="function")bc(t)?(s=yr(t,s),i.tag=1,i=yg(null,i,t,s,o)):(i.tag=0,i=od(null,i,t,s,o));else{if(t!=null){var h=t.$$typeof;if(h===R){i.tag=11,i=fg(null,i,t,s,o);break e}else if(h===H){i.tag=14,i=hg(null,i,t,s,o);break e}}throw i=J(t)||t,Error(a(306,i,""))}}return i;case 0:return od(t,i,i.type,i.pendingProps,o);case 1:return s=i.type,h=yr(s,i.pendingProps),yg(t,i,s,h,o);case 3:e:{if(Ce(i,i.stateNode.containerInfo),t===null)throw Error(a(387));s=i.pendingProps;var p=i.memoizedState;h=p.element,Mc(t,i),_o(i,s,null,o);var y=i.memoizedState;if(s=y.cache,Li(i,ot,s),s!==p.cache&&kc(i,[ot],o,!0),yo(),s=y.element,p.isDehydrated)if(p={element:s,isDehydrated:!1,cache:y.cache},i.updateQueue.baseState=p,i.memoizedState=p,i.flags&256){i=_g(t,i,s,o);break e}else if(s!==h){h=ln(Error(a(424)),i),ho(h),i=_g(t,i,s,o);break e}else for(t=i.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Xe=fn(t.firstChild),Ct=i,Re=!0,ki=null,cn=!0,o=mm(i,null,s,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(dr(),s===h){i=ri(t,i,o);break e}kt(t,i,s,o)}i=i.child}return i;case 26:return rs(t,i),t===null?(o=zv(i.type,null,i.pendingProps,null))?i.memoizedState=o:Re||(o=i.type,t=i.pendingProps,s=Ss(le.current).createElement(o),s[wt]=i,s[jt]=t,Tt(s,o,t),bt(s),i.stateNode=s):i.memoizedState=zv(i.type,t.memoizedProps,i.pendingProps,t.memoizedState),null;case 27:return Be(i),t===null&&Re&&(s=i.stateNode=Ov(i.type,i.pendingProps,le.current),Ct=i,cn=!0,h=Xe,Bi(i.type)?(Yd=h,Xe=fn(s.firstChild)):Xe=h),kt(t,i,i.pendingProps.children,o),rs(t,i),t===null&&(i.flags|=4194304),i.child;case 5:return t===null&&Re&&((h=s=Xe)&&(s=Hx(s,i.type,i.pendingProps,cn),s!==null?(i.stateNode=s,Ct=i,Xe=fn(s.firstChild),cn=!1,h=!0):h=!1),h||Ti(i)),Be(i),h=i.type,p=i.pendingProps,y=t!==null?t.memoizedProps:null,s=p.children,Vd(h,p)?s=null:y!==null&&Vd(h,y)&&(i.flags|=32),i.memoizedState!==null&&(h=jc(t,i,ex,null,null,o),jo._currentValue=h),rs(t,i),kt(t,i,s,o),i.child;case 6:return t===null&&Re&&((t=o=Xe)&&(o=jx(o,i.pendingProps,cn),o!==null?(i.stateNode=o,Ct=i,Xe=null,t=!0):t=!1),t||Ti(i)),null;case 13:return Sg(t,i,o);case 4:return Ce(i,i.stateNode.containerInfo),s=i.pendingProps,t===null?i.child=vr(i,null,s,o):kt(t,i,s,o),i.child;case 11:return fg(t,i,i.type,i.pendingProps,o);case 7:return kt(t,i,i.pendingProps,o),i.child;case 8:return kt(t,i,i.pendingProps.children,o),i.child;case 12:return kt(t,i,i.pendingProps.children,o),i.child;case 10:return s=i.pendingProps,Li(i,i.type,s.value),kt(t,i,s.children,o),i.child;case 9:return h=i.type._context,s=i.pendingProps.children,hr(i),h=At(h),s=s(h),i.flags|=1,kt(t,i,s,o),i.child;case 14:return hg(t,i,i.type,i.pendingProps,o);case 15:return pg(t,i,i.type,i.pendingProps,o);case 19:return Eg(t,i,o);case 31:return sx(t,i,o);case 22:return mg(t,i,o,i.pendingProps);case 24:return hr(i),s=At(ot),t===null?(h=Rc(),h===null&&(h=qe,p=Tc(),h.pooledCache=p,p.refCount++,p!==null&&(h.pooledCacheLanes|=o),h=p),i.memoizedState={parent:s,cache:h},Oc(i),Li(i,ot,h)):((t.lanes&o)!==0&&(Mc(t,i),_o(i,null,null,o),yo()),h=t.memoizedState,p=i.memoizedState,h.parent!==s?(h={parent:s,cache:s},i.memoizedState=h,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=h),Li(i,ot,s)):(s=p.cache,Li(i,ot,s),s!==h.cache&&kc(i,[ot],o,!0))),kt(t,i,i.pendingProps.children,o),i.child;case 29:throw i.pendingProps}throw Error(a(156,i.tag))}function ai(t){t.flags|=4}function pd(t,i,o,s,h){if((i=(t.mode&32)!==0)&&(i=!1),i){if(t.flags|=16777216,(h&335544128)===h)if(t.stateNode.complete)t.flags|=8192;else if(Zg())t.flags|=8192;else throw gr=Gl,Nc}else t.flags&=-16777217}function Cg(t,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!jv(i))if(Zg())t.flags|=8192;else throw gr=Gl,Nc}function os(t,i){i!==null&&(t.flags|=4),t.flags&16384&&(i=t.tag!==22?In():536870912,t.lanes|=i,_a|=i)}function Ao(t,i){if(!Re)switch(t.tailMode){case"hidden":i=t.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?t.tail=null:o.sibling=null;break;case"collapsed":o=t.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?i||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function We(t){var i=t.alternate!==null&&t.alternate.child===t.child,o=0,s=0;if(i)for(var h=t.child;h!==null;)o|=h.lanes|h.childLanes,s|=h.subtreeFlags&65011712,s|=h.flags&65011712,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)o|=h.lanes|h.childLanes,s|=h.subtreeFlags,s|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=s,t.childLanes=o,i}function cx(t,i,o){var s=i.pendingProps;switch(xc(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(i),null;case 1:return We(i),null;case 3:return o=i.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),ti(ot),he(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(t===null||t.child===null)&&(la(i)?ai(i):t===null||t.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,wc())),We(i),null;case 26:var h=i.type,p=i.memoizedState;return t===null?(ai(i),p!==null?(We(i),Cg(i,p)):(We(i),pd(i,h,null,s,o))):p?p!==t.memoizedState?(ai(i),We(i),Cg(i,p)):(We(i),i.flags&=-16777217):(t=t.memoizedProps,t!==s&&ai(i),We(i),pd(i,h,t,s,o)),null;case 27:if(Ge(i),o=le.current,h=i.type,t!==null&&i.stateNode!=null)t.memoizedProps!==s&&ai(i);else{if(!s){if(i.stateNode===null)throw Error(a(166));return We(i),null}t=oe.current,la(i)?rm(i):(t=Ov(h,s,o),i.stateNode=t,ai(i))}return We(i),null;case 5:if(Ge(i),h=i.type,t!==null&&i.stateNode!=null)t.memoizedProps!==s&&ai(i);else{if(!s){if(i.stateNode===null)throw Error(a(166));return We(i),null}if(p=oe.current,la(i))rm(i);else{var y=Ss(le.current);switch(p){case 1:p=y.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:p=y.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":p=y.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":p=y.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":p=y.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof s.is=="string"?y.createElement("select",{is:s.is}):y.createElement("select"),s.multiple?p.multiple=!0:s.size&&(p.size=s.size);break;default:p=typeof s.is=="string"?y.createElement(h,{is:s.is}):y.createElement(h)}}p[wt]=i,p[jt]=s;e:for(y=i.child;y!==null;){if(y.tag===5||y.tag===6)p.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===i)break e;for(;y.sibling===null;){if(y.return===null||y.return===i)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}i.stateNode=p;e:switch(Tt(p,h,s),h){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&ai(i)}}return We(i),pd(i,i.type,t===null?null:t.memoizedProps,i.pendingProps,o),null;case 6:if(t&&i.stateNode!=null)t.memoizedProps!==s&&ai(i);else{if(typeof s!="string"&&i.stateNode===null)throw Error(a(166));if(t=le.current,la(i)){if(t=i.stateNode,o=i.memoizedProps,s=null,h=Ct,h!==null)switch(h.tag){case 27:case 5:s=h.memoizedProps}t[wt]=i,t=!!(t.nodeValue===o||s!==null&&s.suppressHydrationWarning===!0||Sv(t.nodeValue,o)),t||Ti(i,!0)}else t=Ss(t).createTextNode(s),t[wt]=i,i.stateNode=t}return We(i),null;case 31:if(o=i.memoizedState,t===null||t.memoizedState!==null){if(s=la(i),o!==null){if(t===null){if(!s)throw Error(a(318));if(t=i.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(557));t[wt]=i}else dr(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;We(i),t=!1}else o=wc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=o),t=!0;if(!t)return i.flags&256?(Kt(i),i):(Kt(i),null);if((i.flags&128)!==0)throw Error(a(558))}return We(i),null;case 13:if(s=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(h=la(i),s!==null&&s.dehydrated!==null){if(t===null){if(!h)throw Error(a(318));if(h=i.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(a(317));h[wt]=i}else dr(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;We(i),h=!1}else h=wc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=h),h=!0;if(!h)return i.flags&256?(Kt(i),i):(Kt(i),null)}return Kt(i),(i.flags&128)!==0?(i.lanes=o,i):(o=s!==null,t=t!==null&&t.memoizedState!==null,o&&(s=i.child,h=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(h=s.alternate.memoizedState.cachePool.pool),p=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),p!==h&&(s.flags|=2048)),o!==t&&o&&(i.child.flags|=8192),os(i,i.updateQueue),We(i),null);case 4:return he(),t===null&&Id(i.stateNode.containerInfo),We(i),null;case 10:return ti(i.type),We(i),null;case 19:if(q(tt),s=i.memoizedState,s===null)return We(i),null;if(h=(i.flags&128)!==0,p=s.rendering,p===null)if(h)Ao(s,!1);else{if(Je!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(p=Fl(t),p!==null){for(i.flags|=128,Ao(s,!1),t=p.updateQueue,i.updateQueue=t,os(i,t),i.subtreeFlags=0,t=o,o=i.child;o!==null;)Jp(o,t),o=o.sibling;return ae(tt,tt.current&1|2),Re&&Jn(i,s.treeForkCount),i.child}t=t.sibling}s.tail!==null&&Et()>ds&&(i.flags|=128,h=!0,Ao(s,!1),i.lanes=4194304)}else{if(!h)if(t=Fl(p),t!==null){if(i.flags|=128,h=!0,t=t.updateQueue,i.updateQueue=t,os(i,t),Ao(s,!0),s.tail===null&&s.tailMode==="hidden"&&!p.alternate&&!Re)return We(i),null}else 2*Et()-s.renderingStartTime>ds&&o!==536870912&&(i.flags|=128,h=!0,Ao(s,!1),i.lanes=4194304);s.isBackwards?(p.sibling=i.child,i.child=p):(t=s.last,t!==null?t.sibling=p:i.child=p,s.last=p)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Et(),t.sibling=null,o=tt.current,ae(tt,h?o&1|2:o&1),Re&&Jn(i,s.treeForkCount),t):(We(i),null);case 22:case 23:return Kt(i),Pc(),s=i.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(i.flags|=8192):s&&(i.flags|=8192),s?(o&536870912)!==0&&(i.flags&128)===0&&(We(i),i.subtreeFlags&6&&(i.flags|=8192)):We(i),o=i.updateQueue,o!==null&&os(i,o.retryQueue),o=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),s=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),s!==o&&(i.flags|=2048),t!==null&&q(pr),null;case 24:return o=null,t!==null&&(o=t.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),ti(ot),We(i),null;case 25:return null;case 30:return null}throw Error(a(156,i.tag))}function dx(t,i){switch(xc(i),i.tag){case 1:return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 3:return ti(ot),he(),t=i.flags,(t&65536)!==0&&(t&128)===0?(i.flags=t&-65537|128,i):null;case 26:case 27:case 5:return Ge(i),null;case 31:if(i.memoizedState!==null){if(Kt(i),i.alternate===null)throw Error(a(340));dr()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 13:if(Kt(i),t=i.memoizedState,t!==null&&t.dehydrated!==null){if(i.alternate===null)throw Error(a(340));dr()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 19:return q(tt),null;case 4:return he(),null;case 10:return ti(i.type),null;case 22:case 23:return Kt(i),Pc(),t!==null&&q(pr),t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 24:return ti(ot),null;case 25:return null;default:return null}}function Ag(t,i){switch(xc(i),i.tag){case 3:ti(ot),he();break;case 26:case 27:case 5:Ge(i);break;case 4:he();break;case 31:i.memoizedState!==null&&Kt(i);break;case 13:Kt(i);break;case 19:q(tt);break;case 10:ti(i.type);break;case 22:case 23:Kt(i),Pc(),t!==null&&q(pr);break;case 24:ti(ot)}}function ko(t,i){try{var o=i.updateQueue,s=o!==null?o.lastEffect:null;if(s!==null){var h=s.next;o=h;do{if((o.tag&t)===t){s=void 0;var p=o.create,y=o.inst;s=p(),y.destroy=s}o=o.next}while(o!==h)}}catch(x){Pe(i,i.return,x)}}function zi(t,i,o){try{var s=i.updateQueue,h=s!==null?s.lastEffect:null;if(h!==null){var p=h.next;s=p;do{if((s.tag&t)===t){var y=s.inst,x=y.destroy;if(x!==void 0){y.destroy=void 0,h=i;var O=o,G=x;try{G()}catch(Q){Pe(h,O,Q)}}}s=s.next}while(s!==p)}}catch(Q){Pe(i,i.return,Q)}}function kg(t){var i=t.updateQueue;if(i!==null){var o=t.stateNode;try{vm(i,o)}catch(s){Pe(t,t.return,s)}}}function Tg(t,i,o){o.props=yr(t.type,t.memoizedProps),o.state=t.memoizedState;try{o.componentWillUnmount()}catch(s){Pe(t,i,s)}}function To(t,i){try{var o=t.ref;if(o!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof o=="function"?t.refCleanup=o(s):o.current=s}}catch(h){Pe(t,i,h)}}function Hn(t,i){var o=t.ref,s=t.refCleanup;if(o!==null)if(typeof s=="function")try{s()}catch(h){Pe(t,i,h)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(h){Pe(t,i,h)}else o.current=null}function Lg(t){var i=t.type,o=t.memoizedProps,s=t.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&s.focus();break e;case"img":o.src?s.src=o.src:o.srcSet&&(s.srcset=o.srcSet)}}catch(h){Pe(t,t.return,h)}}function md(t,i,o){try{var s=t.stateNode;Mx(s,t.type,o,i),s[jt]=i}catch(h){Pe(t,t.return,h)}}function Rg(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Bi(t.type)||t.tag===4}function gd(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Rg(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&&Bi(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 vd(t,i,o){var s=t.tag;if(s===5||s===6)t=t.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(t,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(t),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=Qn));else if(s!==4&&(s===27&&Bi(t.type)&&(o=t.stateNode,i=null),t=t.child,t!==null))for(vd(t,i,o),t=t.sibling;t!==null;)vd(t,i,o),t=t.sibling}function ls(t,i,o){var s=t.tag;if(s===5||s===6)t=t.stateNode,i?o.insertBefore(t,i):o.appendChild(t);else if(s!==4&&(s===27&&Bi(t.type)&&(o=t.stateNode),t=t.child,t!==null))for(ls(t,i,o),t=t.sibling;t!==null;)ls(t,i,o),t=t.sibling}function Ng(t){var i=t.stateNode,o=t.memoizedProps;try{for(var s=t.type,h=i.attributes;h.length;)i.removeAttributeNode(h[0]);Tt(i,s,o),i[wt]=t,i[jt]=o}catch(p){Pe(t,t.return,p)}}var oi=!1,ut=!1,bd=!1,Og=typeof WeakSet=="function"?WeakSet:Set,yt=null;function fx(t,i){if(t=t.containerInfo,Hd=Ts,t=$p(t),dc(t)){if("selectionStart"in t)var o={start:t.selectionStart,end:t.selectionEnd};else e:{o=(o=t.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var h=s.anchorOffset,p=s.focusNode;s=s.focusOffset;try{o.nodeType,p.nodeType}catch{o=null;break e}var y=0,x=-1,O=-1,G=0,Q=0,ne=t,$=null;t:for(;;){for(var X;ne!==o||h!==0&&ne.nodeType!==3||(x=y+h),ne!==p||s!==0&&ne.nodeType!==3||(O=y+s),ne.nodeType===3&&(y+=ne.nodeValue.length),(X=ne.firstChild)!==null;)$=ne,ne=X;for(;;){if(ne===t)break t;if($===o&&++G===h&&(x=y),$===p&&++Q===s&&(O=y),(X=ne.nextSibling)!==null)break;ne=$,$=ne.parentNode}ne=X}o=x===-1||O===-1?null:{start:x,end:O}}else o=null}o=o||{start:0,end:0}}else o=null;for(jd={focusedElem:t,selectionRange:o},Ts=!1,yt=i;yt!==null;)if(i=yt,t=i.child,(i.subtreeFlags&1028)!==0&&t!==null)t.return=i,yt=t;else for(;yt!==null;){switch(i=yt,p=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(o=0;o<t.length;o++)h=t[o],h.ref.impl=h.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&p!==null){t=void 0,o=i,h=p.memoizedProps,p=p.memoizedState,s=o.stateNode;try{var fe=yr(o.type,h);t=s.getSnapshotBeforeUpdate(fe,p),s.__reactInternalSnapshotBeforeUpdate=t}catch(be){Pe(o,o.return,be)}}break;case 3:if((t&1024)!==0){if(t=i.stateNode.containerInfo,o=t.nodeType,o===9)Gd(t);else if(o===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Gd(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,yt=t;break}yt=i.return}}function Mg(t,i,o){var s=o.flags;switch(o.tag){case 0:case 11:case 15:si(t,o),s&4&&ko(5,o);break;case 1:if(si(t,o),s&4)if(t=o.stateNode,i===null)try{t.componentDidMount()}catch(y){Pe(o,o.return,y)}else{var h=yr(o.type,i.memoizedProps);i=i.memoizedState;try{t.componentDidUpdate(h,i,t.__reactInternalSnapshotBeforeUpdate)}catch(y){Pe(o,o.return,y)}}s&64&&kg(o),s&512&&To(o,o.return);break;case 3:if(si(t,o),s&64&&(t=o.updateQueue,t!==null)){if(i=null,o.child!==null)switch(o.child.tag){case 27:case 5:i=o.child.stateNode;break;case 1:i=o.child.stateNode}try{vm(t,i)}catch(y){Pe(o,o.return,y)}}break;case 27:i===null&&s&4&&Ng(o);case 26:case 5:si(t,o),i===null&&s&4&&Lg(o),s&512&&To(o,o.return);break;case 12:si(t,o);break;case 31:si(t,o),s&4&&Ig(t,o);break;case 13:si(t,o),s&4&&Pg(t,o),s&64&&(t=o.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(o=Sx.bind(null,o),Vx(t,o))));break;case 22:if(s=o.memoizedState!==null||oi,!s){i=i!==null&&i.memoizedState!==null||ut,h=oi;var p=ut;oi=s,(ut=i)&&!p?ui(t,o,(o.subtreeFlags&8772)!==0):si(t,o),oi=h,ut=p}break;case 30:break;default:si(t,o)}}function Dg(t){var i=t.alternate;i!==null&&(t.alternate=null,Dg(i)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(i=t.stateNode,i!==null&&Xu(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 Qe=null,Bt=!1;function li(t,i,o){for(o=o.child;o!==null;)zg(t,i,o),o=o.sibling}function zg(t,i,o){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(rr,o)}catch{}switch(o.tag){case 26:ut||Hn(o,i),li(t,i,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:ut||Hn(o,i);var s=Qe,h=Bt;Bi(o.type)&&(Qe=o.stateNode,Bt=!1),li(t,i,o),Po(o.stateNode),Qe=s,Bt=h;break;case 5:ut||Hn(o,i);case 6:if(s=Qe,h=Bt,Qe=null,li(t,i,o),Qe=s,Bt=h,Qe!==null)if(Bt)try{(Qe.nodeType===9?Qe.body:Qe.nodeName==="HTML"?Qe.ownerDocument.body:Qe).removeChild(o.stateNode)}catch(p){Pe(o,i,p)}else try{Qe.removeChild(o.stateNode)}catch(p){Pe(o,i,p)}break;case 18:Qe!==null&&(Bt?(t=Qe,kv(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,o.stateNode),Ta(t)):kv(Qe,o.stateNode));break;case 4:s=Qe,h=Bt,Qe=o.stateNode.containerInfo,Bt=!0,li(t,i,o),Qe=s,Bt=h;break;case 0:case 11:case 14:case 15:zi(2,o,i),ut||zi(4,o,i),li(t,i,o);break;case 1:ut||(Hn(o,i),s=o.stateNode,typeof s.componentWillUnmount=="function"&&Tg(o,i,s)),li(t,i,o);break;case 21:li(t,i,o);break;case 22:ut=(s=ut)||o.memoizedState!==null,li(t,i,o),ut=s;break;default:li(t,i,o)}}function Ig(t,i){if(i.memoizedState===null&&(t=i.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Ta(t)}catch(o){Pe(i,i.return,o)}}}function Pg(t,i){if(i.memoizedState===null&&(t=i.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ta(t)}catch(o){Pe(i,i.return,o)}}function hx(t){switch(t.tag){case 31:case 13:case 19:var i=t.stateNode;return i===null&&(i=t.stateNode=new Og),i;case 22:return t=t.stateNode,i=t._retryCache,i===null&&(i=t._retryCache=new Og),i;default:throw Error(a(435,t.tag))}}function ss(t,i){var o=hx(t);i.forEach(function(s){if(!o.has(s)){o.add(s);var h=xx.bind(null,t,s);s.then(h,h)}})}function Gt(t,i){var o=i.deletions;if(o!==null)for(var s=0;s<o.length;s++){var h=o[s],p=t,y=i,x=y;e:for(;x!==null;){switch(x.tag){case 27:if(Bi(x.type)){Qe=x.stateNode,Bt=!1;break e}break;case 5:Qe=x.stateNode,Bt=!1;break e;case 3:case 4:Qe=x.stateNode.containerInfo,Bt=!0;break e}x=x.return}if(Qe===null)throw Error(a(160));zg(p,y,h),Qe=null,Bt=!1,p=h.alternate,p!==null&&(p.return=null),h.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Ug(i,t),i=i.sibling}var Cn=null;function Ug(t,i){var o=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Gt(i,t),$t(t),s&4&&(zi(3,t,t.return),ko(3,t),zi(5,t,t.return));break;case 1:Gt(i,t),$t(t),s&512&&(ut||o===null||Hn(o,o.return)),s&64&&oi&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(o=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=o===null?s:o.concat(s))));break;case 26:var h=Cn;if(Gt(i,t),$t(t),s&512&&(ut||o===null||Hn(o,o.return)),s&4){var p=o!==null?o.memoizedState:null;if(s=t.memoizedState,o===null)if(s===null)if(t.stateNode===null){e:{s=t.type,o=t.memoizedProps,h=h.ownerDocument||h;t:switch(s){case"title":p=h.getElementsByTagName("title")[0],(!p||p[eo]||p[wt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=h.createElement(s),h.head.insertBefore(p,h.querySelector("head > title"))),Tt(p,s,o),p[wt]=t,bt(p),s=p;break e;case"link":var y=Uv("link","href",h).get(s+(o.href||""));if(y){for(var x=0;x<y.length;x++)if(p=y[x],p.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&p.getAttribute("rel")===(o.rel==null?null:o.rel)&&p.getAttribute("title")===(o.title==null?null:o.title)&&p.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){y.splice(x,1);break t}}p=h.createElement(s),Tt(p,s,o),h.head.appendChild(p);break;case"meta":if(y=Uv("meta","content",h).get(s+(o.content||""))){for(x=0;x<y.length;x++)if(p=y[x],p.getAttribute("content")===(o.content==null?null:""+o.content)&&p.getAttribute("name")===(o.name==null?null:o.name)&&p.getAttribute("property")===(o.property==null?null:o.property)&&p.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&p.getAttribute("charset")===(o.charSet==null?null:o.charSet)){y.splice(x,1);break t}}p=h.createElement(s),Tt(p,s,o),h.head.appendChild(p);break;default:throw Error(a(468,s))}p[wt]=t,bt(p),s=p}t.stateNode=s}else Hv(h,t.type,t.stateNode);else t.stateNode=Pv(h,s,t.memoizedProps);else p!==s?(p===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):p.count--,s===null?Hv(h,t.type,t.stateNode):Pv(h,s,t.memoizedProps)):s===null&&t.stateNode!==null&&md(t,t.memoizedProps,o.memoizedProps)}break;case 27:Gt(i,t),$t(t),s&512&&(ut||o===null||Hn(o,o.return)),o!==null&&s&4&&md(t,t.memoizedProps,o.memoizedProps);break;case 5:if(Gt(i,t),$t(t),s&512&&(ut||o===null||Hn(o,o.return)),t.flags&32){h=t.stateNode;try{Zr(h,"")}catch(fe){Pe(t,t.return,fe)}}s&4&&t.stateNode!=null&&(h=t.memoizedProps,md(t,h,o!==null?o.memoizedProps:h)),s&1024&&(bd=!0);break;case 6:if(Gt(i,t),$t(t),s&4){if(t.stateNode===null)throw Error(a(162));s=t.memoizedProps,o=t.stateNode;try{o.nodeValue=s}catch(fe){Pe(t,t.return,fe)}}break;case 3:if(ws=null,h=Cn,Cn=xs(i.containerInfo),Gt(i,t),Cn=h,$t(t),s&4&&o!==null&&o.memoizedState.isDehydrated)try{Ta(i.containerInfo)}catch(fe){Pe(t,t.return,fe)}bd&&(bd=!1,Hg(t));break;case 4:s=Cn,Cn=xs(t.stateNode.containerInfo),Gt(i,t),$t(t),Cn=s;break;case 12:Gt(i,t),$t(t);break;case 31:Gt(i,t),$t(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,ss(t,s)));break;case 13:Gt(i,t),$t(t),t.child.flags&8192&&t.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(cs=Et()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,ss(t,s)));break;case 22:h=t.memoizedState!==null;var O=o!==null&&o.memoizedState!==null,G=oi,Q=ut;if(oi=G||h,ut=Q||O,Gt(i,t),ut=Q,oi=G,$t(t),s&8192)e:for(i=t.stateNode,i._visibility=h?i._visibility&-2:i._visibility|1,h&&(o===null||O||oi||ut||_r(t)),o=null,i=t;;){if(i.tag===5||i.tag===26){if(o===null){O=o=i;try{if(p=O.stateNode,h)y=p.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{x=O.stateNode;var ne=O.memoizedProps.style,$=ne!=null&&ne.hasOwnProperty("display")?ne.display:null;x.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(fe){Pe(O,O.return,fe)}}}else if(i.tag===6){if(o===null){O=i;try{O.stateNode.nodeValue=h?"":O.memoizedProps}catch(fe){Pe(O,O.return,fe)}}}else if(i.tag===18){if(o===null){O=i;try{var X=O.stateNode;h?Tv(X,!0):Tv(O.stateNode,!1)}catch(fe){Pe(O,O.return,fe)}}}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;o===i&&(o=null),i=i.return}o===i&&(o=null),i.sibling.return=i.return,i=i.sibling}s&4&&(s=t.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,ss(t,o))));break;case 19:Gt(i,t),$t(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,ss(t,s)));break;case 30:break;case 21:break;default:Gt(i,t),$t(t)}}function $t(t){var i=t.flags;if(i&2){try{for(var o,s=t.return;s!==null;){if(Rg(s)){o=s;break}s=s.return}if(o==null)throw Error(a(160));switch(o.tag){case 27:var h=o.stateNode,p=gd(t);ls(t,p,h);break;case 5:var y=o.stateNode;o.flags&32&&(Zr(y,""),o.flags&=-33);var x=gd(t);ls(t,x,y);break;case 3:case 4:var O=o.stateNode.containerInfo,G=gd(t);vd(t,G,O);break;default:throw Error(a(161))}}catch(Q){Pe(t,t.return,Q)}t.flags&=-3}i&4096&&(t.flags&=-4097)}function Hg(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var i=t;Hg(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),t=t.sibling}}function si(t,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)Mg(t,i.alternate,i),i=i.sibling}function _r(t){for(t=t.child;t!==null;){var i=t;switch(i.tag){case 0:case 11:case 14:case 15:zi(4,i,i.return),_r(i);break;case 1:Hn(i,i.return);var o=i.stateNode;typeof o.componentWillUnmount=="function"&&Tg(i,i.return,o),_r(i);break;case 27:Po(i.stateNode);case 26:case 5:Hn(i,i.return),_r(i);break;case 22:i.memoizedState===null&&_r(i);break;case 30:_r(i);break;default:_r(i)}t=t.sibling}}function ui(t,i,o){for(o=o&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var s=i.alternate,h=t,p=i,y=p.flags;switch(p.tag){case 0:case 11:case 15:ui(h,p,o),ko(4,p);break;case 1:if(ui(h,p,o),s=p,h=s.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(G){Pe(s,s.return,G)}if(s=p,h=s.updateQueue,h!==null){var x=s.stateNode;try{var O=h.shared.hiddenCallbacks;if(O!==null)for(h.shared.hiddenCallbacks=null,h=0;h<O.length;h++)gm(O[h],x)}catch(G){Pe(s,s.return,G)}}o&&y&64&&kg(p),To(p,p.return);break;case 27:Ng(p);case 26:case 5:ui(h,p,o),o&&s===null&&y&4&&Lg(p),To(p,p.return);break;case 12:ui(h,p,o);break;case 31:ui(h,p,o),o&&y&4&&Ig(h,p);break;case 13:ui(h,p,o),o&&y&4&&Pg(h,p);break;case 22:p.memoizedState===null&&ui(h,p,o),To(p,p.return);break;case 30:break;default:ui(h,p,o)}i=i.sibling}}function yd(t,i){var o=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),t=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(t=i.memoizedState.cachePool.pool),t!==o&&(t!=null&&t.refCount++,o!=null&&po(o))}function _d(t,i){t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&po(t))}function An(t,i,o,s){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)jg(t,i,o,s),i=i.sibling}function jg(t,i,o,s){var h=i.flags;switch(i.tag){case 0:case 11:case 15:An(t,i,o,s),h&2048&&ko(9,i);break;case 1:An(t,i,o,s);break;case 3:An(t,i,o,s),h&2048&&(t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&po(t)));break;case 12:if(h&2048){An(t,i,o,s),t=i.stateNode;try{var p=i.memoizedProps,y=p.id,x=p.onPostCommit;typeof x=="function"&&x(y,i.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(O){Pe(i,i.return,O)}}else An(t,i,o,s);break;case 31:An(t,i,o,s);break;case 13:An(t,i,o,s);break;case 23:break;case 22:p=i.stateNode,y=i.alternate,i.memoizedState!==null?p._visibility&2?An(t,i,o,s):Lo(t,i):p._visibility&2?An(t,i,o,s):(p._visibility|=2,va(t,i,o,s,(i.subtreeFlags&10256)!==0||!1)),h&2048&&yd(y,i);break;case 24:An(t,i,o,s),h&2048&&_d(i.alternate,i);break;default:An(t,i,o,s)}}function va(t,i,o,s,h){for(h=h&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var p=t,y=i,x=o,O=s,G=y.flags;switch(y.tag){case 0:case 11:case 15:va(p,y,x,O,h),ko(8,y);break;case 23:break;case 22:var Q=y.stateNode;y.memoizedState!==null?Q._visibility&2?va(p,y,x,O,h):Lo(p,y):(Q._visibility|=2,va(p,y,x,O,h)),h&&G&2048&&yd(y.alternate,y);break;case 24:va(p,y,x,O,h),h&&G&2048&&_d(y.alternate,y);break;default:va(p,y,x,O,h)}i=i.sibling}}function Lo(t,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var o=t,s=i,h=s.flags;switch(s.tag){case 22:Lo(o,s),h&2048&&yd(s.alternate,s);break;case 24:Lo(o,s),h&2048&&_d(s.alternate,s);break;default:Lo(o,s)}i=i.sibling}}var Ro=8192;function ba(t,i,o){if(t.subtreeFlags&Ro)for(t=t.child;t!==null;)Vg(t,i,o),t=t.sibling}function Vg(t,i,o){switch(t.tag){case 26:ba(t,i,o),t.flags&Ro&&t.memoizedState!==null&&Jx(o,Cn,t.memoizedState,t.memoizedProps);break;case 5:ba(t,i,o);break;case 3:case 4:var s=Cn;Cn=xs(t.stateNode.containerInfo),ba(t,i,o),Cn=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=Ro,Ro=16777216,ba(t,i,o),Ro=s):ba(t,i,o));break;default:ba(t,i,o)}}function Bg(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 No(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var s=i[o];yt=s,$g(s,t)}Bg(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Gg(t),t=t.sibling}function Gg(t){switch(t.tag){case 0:case 11:case 15:No(t),t.flags&2048&&zi(9,t,t.return);break;case 3:No(t);break;case 12:No(t);break;case 22:var i=t.stateNode;t.memoizedState!==null&&i._visibility&2&&(t.return===null||t.return.tag!==13)?(i._visibility&=-3,us(t)):No(t);break;default:No(t)}}function us(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var s=i[o];yt=s,$g(s,t)}Bg(t)}for(t=t.child;t!==null;){switch(i=t,i.tag){case 0:case 11:case 15:zi(8,i,i.return),us(i);break;case 22:o=i.stateNode,o._visibility&2&&(o._visibility&=-3,us(i));break;default:us(i)}t=t.sibling}}function $g(t,i){for(;yt!==null;){var o=yt;switch(o.tag){case 0:case 11:case 15:zi(8,o,i);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var s=o.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:po(o.memoizedState.cache)}if(s=o.child,s!==null)s.return=o,yt=s;else e:for(o=t;yt!==null;){s=yt;var h=s.sibling,p=s.return;if(Dg(s),s===o){yt=null;break e}if(h!==null){h.return=p,yt=h;break e}yt=p}}}var px={getCacheForType:function(t){var i=At(ot),o=i.data.get(t);return o===void 0&&(o=t(),i.data.set(t,o)),o},cacheSignal:function(){return At(ot).controller.signal}},mx=typeof WeakMap=="function"?WeakMap:Map,De=0,qe=null,Ae=null,Te=0,Ie=0,Jt=null,Ii=!1,ya=!1,Sd=!1,ci=0,Je=0,Pi=0,Sr=0,xd=0,en=0,_a=0,Oo=null,qt=null,Ed=!1,cs=0,qg=0,ds=1/0,fs=null,Ui=null,ft=0,Hi=null,Sa=null,di=0,wd=0,Cd=null,Yg=null,Mo=0,Ad=null;function tn(){return(De&2)!==0&&Te!==0?Te&-Te:D.T!==null?Od():sp()}function Fg(){if(en===0)if((Te&536870912)===0||Re){var t=Gr;Gr<<=1,(Gr&3932160)===0&&(Gr=262144),en=t}else en=536870912;return t=Zt.current,t!==null&&(t.flags|=32),en}function Yt(t,i,o){(t===qe&&(Ie===2||Ie===9)||t.cancelPendingCommit!==null)&&(xa(t,0),ji(t,Te,en,!1)),Xn(t,o),((De&2)===0||t!==qe)&&(t===qe&&((De&2)===0&&(Sr|=o),Je===4&&ji(t,Te,en,!1)),jn(t))}function Xg(t,i,o){if((De&6)!==0)throw Error(a(327));var s=!o&&(i&127)===0&&(i&t.expiredLanes)===0||En(t,i),h=s?bx(t,i):Td(t,i,!0),p=s;do{if(h===0){ya&&!s&&ji(t,i,0,!1);break}else{if(o=t.current.alternate,p&&!gx(o)){h=Td(t,i,!1),p=!1;continue}if(h===2){if(p=i,t.errorRecoveryDisabledLanes&p)var y=0;else y=t.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){i=y;e:{var x=t;h=Oo;var O=x.current.memoizedState.isDehydrated;if(O&&(xa(x,y).flags|=256),y=Td(x,y,!1),y!==2){if(Sd&&!O){x.errorRecoveryDisabledLanes|=p,Sr|=p,h=4;break e}p=qt,qt=h,p!==null&&(qt===null?qt=p:qt.push.apply(qt,p))}h=y}if(p=!1,h!==2)continue}}if(h===1){xa(t,0),ji(t,i,0,!0);break}e:{switch(s=t,p=h,p){case 0:case 1:throw Error(a(345));case 4:if((i&4194048)!==i)break;case 6:ji(s,i,en,!Ii);break e;case 2:qt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((i&62914560)===i&&(h=cs+300-Et(),10<h)){if(ji(s,i,en,!Ii),$r(s,0,!0)!==0)break e;di=i,s.timeoutHandle=Cv(Wg.bind(null,s,o,qt,fs,Ed,i,en,Sr,_a,Ii,p,"Throttled",-0,0),h);break e}Wg(s,o,qt,fs,Ed,i,en,Sr,_a,Ii,p,null,-0,0)}}break}while(!0);jn(t)}function Wg(t,i,o,s,h,p,y,x,O,G,Q,ne,$,X){if(t.timeoutHandle=-1,ne=i.subtreeFlags,ne&8192||(ne&16785408)===16785408){ne={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qn},Vg(i,p,ne);var fe=(p&62914560)===p?cs-Et():(p&4194048)===p?qg-Et():0;if(fe=eE(ne,fe),fe!==null){di=p,t.cancelPendingCommit=fe(iv.bind(null,t,i,p,o,s,h,y,x,O,Q,ne,null,$,X)),ji(t,p,y,!G);return}}iv(t,i,p,o,s,h,y,x,O)}function gx(t){for(var i=t;;){var o=i.tag;if((o===0||o===11||o===15)&&i.flags&16384&&(o=i.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var s=0;s<o.length;s++){var h=o[s],p=h.getSnapshot;h=h.value;try{if(!Wt(p(),h))return!1}catch{return!1}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;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 ji(t,i,o,s){i&=~xd,i&=~Sr,t.suspendedLanes|=i,t.pingedLanes&=~i,s&&(t.warmLanes|=i),s=t.expirationTimes;for(var h=i;0<h;){var p=31-Nt(h),y=1<<p;s[p]=-1,h&=~y}o!==0&&ap(t,o,i)}function hs(){return(De&6)===0?(Do(0),!1):!0}function kd(){if(Ae!==null){if(Ie===0)var t=Ae.return;else t=Ae,ei=fr=null,Gc(t),fa=null,go=0,t=Ae;for(;t!==null;)Ag(t.alternate,t),t=t.return;Ae=null}}function xa(t,i){var o=t.timeoutHandle;o!==-1&&(t.timeoutHandle=-1,Ix(o)),o=t.cancelPendingCommit,o!==null&&(t.cancelPendingCommit=null,o()),di=0,kd(),qe=t,Ae=o=Kn(t.current,null),Te=i,Ie=0,Jt=null,Ii=!1,ya=En(t,i),Sd=!1,_a=en=xd=Sr=Pi=Je=0,qt=Oo=null,Ed=!1,(i&8)!==0&&(i|=i&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=i;0<s;){var h=31-Nt(s),p=1<<h;i|=t[h],s&=~p}return ci=i,Dl(),o}function Qg(t,i){Se=null,D.H=wo,i===da||i===Bl?(i=fm(),Ie=3):i===Nc?(i=fm(),Ie=4):Ie=i===ad?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Jt=i,Ae===null&&(Je=1,ns(t,ln(i,t.current)))}function Zg(){var t=Zt.current;return t===null?!0:(Te&4194048)===Te?dn===null:(Te&62914560)===Te||(Te&536870912)!==0?t===dn:!1}function Kg(){var t=D.H;return D.H=wo,t===null?wo:t}function Jg(){var t=D.A;return D.A=px,t}function ps(){Je=4,Ii||(Te&4194048)!==Te&&Zt.current!==null||(ya=!0),(Pi&134217727)===0&&(Sr&134217727)===0||qe===null||ji(qe,Te,en,!1)}function Td(t,i,o){var s=De;De|=2;var h=Kg(),p=Jg();(qe!==t||Te!==i)&&(fs=null,xa(t,i)),i=!1;var y=Je;e:do try{if(Ie!==0&&Ae!==null){var x=Ae,O=Jt;switch(Ie){case 8:kd(),y=6;break e;case 3:case 2:case 9:case 6:Zt.current===null&&(i=!0);var G=Ie;if(Ie=0,Jt=null,Ea(t,x,O,G),o&&ya){y=0;break e}break;default:G=Ie,Ie=0,Jt=null,Ea(t,x,O,G)}}vx(),y=Je;break}catch(Q){Qg(t,Q)}while(!0);return i&&t.shellSuspendCounter++,ei=fr=null,De=s,D.H=h,D.A=p,Ae===null&&(qe=null,Te=0,Dl()),y}function vx(){for(;Ae!==null;)ev(Ae)}function bx(t,i){var o=De;De|=2;var s=Kg(),h=Jg();qe!==t||Te!==i?(fs=null,ds=Et()+500,xa(t,i)):ya=En(t,i);e:do try{if(Ie!==0&&Ae!==null){i=Ae;var p=Jt;t:switch(Ie){case 1:Ie=0,Jt=null,Ea(t,i,p,1);break;case 2:case 9:if(cm(p)){Ie=0,Jt=null,tv(i);break}i=function(){Ie!==2&&Ie!==9||qe!==t||(Ie=7),jn(t)},p.then(i,i);break e;case 3:Ie=7;break e;case 4:Ie=5;break e;case 7:cm(p)?(Ie=0,Jt=null,tv(i)):(Ie=0,Jt=null,Ea(t,i,p,7));break;case 5:var y=null;switch(Ae.tag){case 26:y=Ae.memoizedState;case 5:case 27:var x=Ae;if(y?jv(y):x.stateNode.complete){Ie=0,Jt=null;var O=x.sibling;if(O!==null)Ae=O;else{var G=x.return;G!==null?(Ae=G,ms(G)):Ae=null}break t}}Ie=0,Jt=null,Ea(t,i,p,5);break;case 6:Ie=0,Jt=null,Ea(t,i,p,6);break;case 8:kd(),Je=6;break e;default:throw Error(a(462))}}yx();break}catch(Q){Qg(t,Q)}while(!0);return ei=fr=null,D.H=s,D.A=h,De=o,Ae!==null?0:(qe=null,Te=0,Dl(),Je)}function yx(){for(;Ae!==null&&!_i();)ev(Ae)}function ev(t){var i=wg(t.alternate,t,ci);t.memoizedProps=t.pendingProps,i===null?ms(t):Ae=i}function tv(t){var i=t,o=i.alternate;switch(i.tag){case 15:case 0:i=bg(o,i,i.pendingProps,i.type,void 0,Te);break;case 11:i=bg(o,i,i.pendingProps,i.type.render,i.ref,Te);break;case 5:Gc(i);default:Ag(o,i),i=Ae=Jp(i,ci),i=wg(o,i,ci)}t.memoizedProps=t.pendingProps,i===null?ms(t):Ae=i}function Ea(t,i,o,s){ei=fr=null,Gc(i),fa=null,go=0;var h=i.return;try{if(lx(t,h,i,o,Te)){Je=1,ns(t,ln(o,t.current)),Ae=null;return}}catch(p){if(h!==null)throw Ae=h,p;Je=1,ns(t,ln(o,t.current)),Ae=null;return}i.flags&32768?(Re||s===1?t=!0:ya||(Te&536870912)!==0?t=!1:(Ii=t=!0,(s===2||s===9||s===3||s===6)&&(s=Zt.current,s!==null&&s.tag===13&&(s.flags|=16384))),nv(i,t)):ms(i)}function ms(t){var i=t;do{if((i.flags&32768)!==0){nv(i,Ii);return}t=i.return;var o=cx(i.alternate,i,ci);if(o!==null){Ae=o;return}if(i=i.sibling,i!==null){Ae=i;return}Ae=i=t}while(i!==null);Je===0&&(Je=5)}function nv(t,i){do{var o=dx(t.alternate,t);if(o!==null){o.flags&=32767,Ae=o;return}if(o=t.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!i&&(t=t.sibling,t!==null)){Ae=t;return}Ae=t=o}while(t!==null);Je=6,Ae=null}function iv(t,i,o,s,h,p,y,x,O){t.cancelPendingCommit=null;do gs();while(ft!==0);if((De&6)!==0)throw Error(a(327));if(i!==null){if(i===t.current)throw Error(a(177));if(p=i.lanes|i.childLanes,p|=gc,K1(t,o,p,y,x,O),t===qe&&(Ae=qe=null,Te=0),Sa=i,Hi=t,di=o,wd=p,Cd=h,Yg=s,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Ex(Dn,function(){return sv(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||s){s=D.T,D.T=null,h=Y.p,Y.p=2,y=De,De|=4;try{fx(t,i,o)}finally{De=y,Y.p=h,D.T=s}}ft=1,rv(),av(),ov()}}function rv(){if(ft===1){ft=0;var t=Hi,i=Sa,o=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||o){o=D.T,D.T=null;var s=Y.p;Y.p=2;var h=De;De|=4;try{Ug(i,t);var p=jd,y=$p(t.containerInfo),x=p.focusedElem,O=p.selectionRange;if(y!==x&&x&&x.ownerDocument&&Gp(x.ownerDocument.documentElement,x)){if(O!==null&&dc(x)){var G=O.start,Q=O.end;if(Q===void 0&&(Q=G),"selectionStart"in x)x.selectionStart=G,x.selectionEnd=Math.min(Q,x.value.length);else{var ne=x.ownerDocument||document,$=ne&&ne.defaultView||window;if($.getSelection){var X=$.getSelection(),fe=x.textContent.length,be=Math.min(O.start,fe),je=O.end===void 0?be:Math.min(O.end,fe);!X.extend&&be>je&&(y=je,je=be,be=y);var j=Bp(x,be),U=Bp(x,je);if(j&&U&&(X.rangeCount!==1||X.anchorNode!==j.node||X.anchorOffset!==j.offset||X.focusNode!==U.node||X.focusOffset!==U.offset)){var B=ne.createRange();B.setStart(j.node,j.offset),X.removeAllRanges(),be>je?(X.addRange(B),X.extend(U.node,U.offset)):(B.setEnd(U.node,U.offset),X.addRange(B))}}}}for(ne=[],X=x;X=X.parentNode;)X.nodeType===1&&ne.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<ne.length;x++){var ee=ne[x];ee.element.scrollLeft=ee.left,ee.element.scrollTop=ee.top}}Ts=!!Hd,jd=Hd=null}finally{De=h,Y.p=s,D.T=o}}t.current=i,ft=2}}function av(){if(ft===2){ft=0;var t=Hi,i=Sa,o=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||o){o=D.T,D.T=null;var s=Y.p;Y.p=2;var h=De;De|=4;try{Mg(t,i.alternate,i)}finally{De=h,Y.p=s,D.T=o}}ft=3}}function ov(){if(ft===4||ft===3){ft=0,nr();var t=Hi,i=Sa,o=di,s=Yg;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?ft=5:(ft=0,Sa=Hi=null,lv(t,t.pendingLanes));var h=t.pendingLanes;if(h===0&&(Ui=null),Yu(o),i=i.stateNode,Rt&&typeof Rt.onCommitFiberRoot=="function")try{Rt.onCommitFiberRoot(rr,i,void 0,(i.current.flags&128)===128)}catch{}if(s!==null){i=D.T,h=Y.p,Y.p=2,D.T=null;try{for(var p=t.onRecoverableError,y=0;y<s.length;y++){var x=s[y];p(x.value,{componentStack:x.stack})}}finally{D.T=i,Y.p=h}}(di&3)!==0&&gs(),jn(t),h=t.pendingLanes,(o&261930)!==0&&(h&42)!==0?t===Ad?Mo++:(Mo=0,Ad=t):Mo=0,Do(0)}}function lv(t,i){(t.pooledCacheLanes&=i)===0&&(i=t.pooledCache,i!=null&&(t.pooledCache=null,po(i)))}function gs(){return rv(),av(),ov(),sv()}function sv(){if(ft!==5)return!1;var t=Hi,i=wd;wd=0;var o=Yu(di),s=D.T,h=Y.p;try{Y.p=32>o?32:o,D.T=null,o=Cd,Cd=null;var p=Hi,y=di;if(ft=0,Sa=Hi=null,di=0,(De&6)!==0)throw Error(a(331));var x=De;if(De|=4,Gg(p.current),jg(p,p.current,y,o),De=x,Do(0,!1),Rt&&typeof Rt.onPostCommitFiberRoot=="function")try{Rt.onPostCommitFiberRoot(rr,p)}catch{}return!0}finally{Y.p=h,D.T=s,lv(t,i)}}function uv(t,i,o){i=ln(o,i),i=rd(t.stateNode,i,2),t=Oi(t,i,2),t!==null&&(Xn(t,2),jn(t))}function Pe(t,i,o){if(t.tag===3)uv(t,t,o);else for(;i!==null;){if(i.tag===3){uv(i,t,o);break}else if(i.tag===1){var s=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Ui===null||!Ui.has(s))){t=ln(o,t),o=cg(2),s=Oi(i,o,2),s!==null&&(dg(o,s,i,t),Xn(s,2),jn(s));break}}i=i.return}}function Ld(t,i,o){var s=t.pingCache;if(s===null){s=t.pingCache=new mx;var h=new Set;s.set(i,h)}else h=s.get(i),h===void 0&&(h=new Set,s.set(i,h));h.has(o)||(Sd=!0,h.add(o),t=_x.bind(null,t,i,o),i.then(t,t))}function _x(t,i,o){var s=t.pingCache;s!==null&&s.delete(i),t.pingedLanes|=t.suspendedLanes&o,t.warmLanes&=~o,qe===t&&(Te&o)===o&&(Je===4||Je===3&&(Te&62914560)===Te&&300>Et()-cs?(De&2)===0&&xa(t,0):xd|=o,_a===Te&&(_a=0)),jn(t)}function cv(t,i){i===0&&(i=In()),t=ur(t,i),t!==null&&(Xn(t,i),jn(t))}function Sx(t){var i=t.memoizedState,o=0;i!==null&&(o=i.retryLane),cv(t,o)}function xx(t,i){var o=0;switch(t.tag){case 31:case 13:var s=t.stateNode,h=t.memoizedState;h!==null&&(o=h.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(a(314))}s!==null&&s.delete(i),cv(t,o)}function Ex(t,i){return Ht(t,i)}var vs=null,wa=null,Rd=!1,bs=!1,Nd=!1,Vi=0;function jn(t){t!==wa&&t.next===null&&(wa===null?vs=wa=t:wa=wa.next=t),bs=!0,Rd||(Rd=!0,Cx())}function Do(t,i){if(!Nd&&bs){Nd=!0;do for(var o=!1,s=vs;s!==null;){if(t!==0){var h=s.pendingLanes;if(h===0)var p=0;else{var y=s.suspendedLanes,x=s.pingedLanes;p=(1<<31-Nt(42|t)+1)-1,p&=h&~(y&~x),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(o=!0,pv(s,p))}else p=Te,p=$r(s,s===qe?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(p&3)===0||En(s,p)||(o=!0,pv(s,p));s=s.next}while(o);Nd=!1}}function wx(){dv()}function dv(){bs=Rd=!1;var t=0;Vi!==0&&zx()&&(t=Vi);for(var i=Et(),o=null,s=vs;s!==null;){var h=s.next,p=fv(s,i);p===0?(s.next=null,o===null?vs=h:o.next=h,h===null&&(wa=o)):(o=s,(t!==0||(p&3)!==0)&&(bs=!0)),s=h}ft!==0&&ft!==5||Do(t),Vi!==0&&(Vi=0)}function fv(t,i){for(var o=t.suspendedLanes,s=t.pingedLanes,h=t.expirationTimes,p=t.pendingLanes&-62914561;0<p;){var y=31-Nt(p),x=1<<y,O=h[y];O===-1?((x&o)===0||(x&s)!==0)&&(h[y]=$e(x,i)):O<=i&&(t.expiredLanes|=x),p&=~x}if(i=qe,o=Te,o=$r(t,t===i?o:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,o===0||t===i&&(Ie===2||Ie===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&_n(s),t.callbackNode=null,t.callbackPriority=0;if((o&3)===0||En(t,o)){if(i=o&-o,i===t.callbackPriority)return i;switch(s!==null&&_n(s),Yu(o)){case 2:case 8:o=Si;break;case 32:o=Dn;break;case 268435456:o=zn;break;default:o=Dn}return s=hv.bind(null,t),o=Ht(o,s),t.callbackPriority=i,t.callbackNode=o,i}return s!==null&&s!==null&&_n(s),t.callbackPriority=2,t.callbackNode=null,2}function hv(t,i){if(ft!==0&&ft!==5)return t.callbackNode=null,t.callbackPriority=0,null;var o=t.callbackNode;if(gs()&&t.callbackNode!==o)return null;var s=Te;return s=$r(t,t===qe?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Xg(t,s,i),fv(t,Et()),t.callbackNode!=null&&t.callbackNode===o?hv.bind(null,t):null)}function pv(t,i){if(gs())return null;Xg(t,i,!0)}function Cx(){Px(function(){(De&6)!==0?Ht(Yn,wx):dv()})}function Od(){if(Vi===0){var t=ua;t===0&&(t=Br,Br<<=1,(Br&261888)===0&&(Br=256)),Vi=t}return Vi}function mv(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Al(""+t)}function gv(t,i){var o=i.ownerDocument.createElement("input");return o.name=i.name,o.value=i.value,t.id&&o.setAttribute("form",t.id),i.parentNode.insertBefore(o,i),t=new FormData(t),o.parentNode.removeChild(o),t}function Ax(t,i,o,s,h){if(i==="submit"&&o&&o.stateNode===h){var p=mv((h[jt]||null).action),y=s.submitter;y&&(i=(i=y[jt]||null)?mv(i.formAction):y.getAttribute("formAction"),i!==null&&(p=i,y=null));var x=new Rl("action","action",null,s,h);t.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(Vi!==0){var O=y?gv(h,y):new FormData(h);Kc(o,{pending:!0,data:O,method:h.method,action:p},null,O)}}else typeof p=="function"&&(x.preventDefault(),O=y?gv(h,y):new FormData(h),Kc(o,{pending:!0,data:O,method:h.method,action:p},p,O))},currentTarget:h}]})}}for(var Md=0;Md<mc.length;Md++){var Dd=mc[Md],kx=Dd.toLowerCase(),Tx=Dd[0].toUpperCase()+Dd.slice(1);wn(kx,"on"+Tx)}wn(Fp,"onAnimationEnd"),wn(Xp,"onAnimationIteration"),wn(Wp,"onAnimationStart"),wn("dblclick","onDoubleClick"),wn("focusin","onFocus"),wn("focusout","onBlur"),wn($S,"onTransitionRun"),wn(qS,"onTransitionStart"),wn(YS,"onTransitionCancel"),wn(Qp,"onTransitionEnd"),Wr("onMouseEnter",["mouseout","mouseover"]),Wr("onMouseLeave",["mouseout","mouseover"]),Wr("onPointerEnter",["pointerout","pointerover"]),Wr("onPointerLeave",["pointerout","pointerover"]),ar("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ar("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ar("onBeforeInput",["compositionend","keypress","textInput","paste"]),ar("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ar("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ar("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zo="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(" "),Lx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zo));function vv(t,i){i=(i&4)!==0;for(var o=0;o<t.length;o++){var s=t[o],h=s.event;s=s.listeners;e:{var p=void 0;if(i)for(var y=s.length-1;0<=y;y--){var x=s[y],O=x.instance,G=x.currentTarget;if(x=x.listener,O!==p&&h.isPropagationStopped())break e;p=x,h.currentTarget=G;try{p(h)}catch(Q){Ml(Q)}h.currentTarget=null,p=O}else for(y=0;y<s.length;y++){if(x=s[y],O=x.instance,G=x.currentTarget,x=x.listener,O!==p&&h.isPropagationStopped())break e;p=x,h.currentTarget=G;try{p(h)}catch(Q){Ml(Q)}h.currentTarget=null,p=O}}}}function ke(t,i){var o=i[Fu];o===void 0&&(o=i[Fu]=new Set);var s=t+"__bubble";o.has(s)||(bv(i,t,2,!1),o.add(s))}function zd(t,i,o){var s=0;i&&(s|=4),bv(o,t,s,i)}var ys="_reactListening"+Math.random().toString(36).slice(2);function Id(t){if(!t[ys]){t[ys]=!0,dp.forEach(function(o){o!=="selectionchange"&&(Lx.has(o)||zd(o,!1,t),zd(o,!0,t))});var i=t.nodeType===9?t:t.ownerDocument;i===null||i[ys]||(i[ys]=!0,zd("selectionchange",!1,i))}}function bv(t,i,o,s){switch(Fv(i)){case 2:var h=iE;break;case 8:h=rE;break;default:h=Zd}o=h.bind(null,i,o,t),h=void 0,!nc||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(h=!0),s?h!==void 0?t.addEventListener(i,o,{capture:!0,passive:h}):t.addEventListener(i,o,!0):h!==void 0?t.addEventListener(i,o,{passive:h}):t.addEventListener(i,o,!1)}function Pd(t,i,o,s,h){var p=s;if((i&1)===0&&(i&2)===0&&s!==null)e:for(;;){if(s===null)return;var y=s.tag;if(y===3||y===4){var x=s.stateNode.containerInfo;if(x===h)break;if(y===4)for(y=s.return;y!==null;){var O=y.tag;if((O===3||O===4)&&y.stateNode.containerInfo===h)return;y=y.return}for(;x!==null;){if(y=Yr(x),y===null)return;if(O=y.tag,O===5||O===6||O===26||O===27){s=p=y;continue e}x=x.parentNode}}s=s.return}Ep(function(){var G=p,Q=ec(o),ne=[];e:{var $=Zp.get(t);if($!==void 0){var X=Rl,fe=t;switch(t){case"keypress":if(Tl(o)===0)break e;case"keydown":case"keyup":X=xS;break;case"focusin":fe="focus",X=oc;break;case"focusout":fe="blur",X=oc;break;case"beforeblur":case"afterblur":X=oc;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=Ap;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=cS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=CS;break;case Fp:case Xp:case Wp:X=hS;break;case Qp:X=kS;break;case"scroll":case"scrollend":X=sS;break;case"wheel":X=LS;break;case"copy":case"cut":case"paste":X=mS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=Tp;break;case"toggle":case"beforetoggle":X=NS}var be=(i&4)!==0,je=!be&&(t==="scroll"||t==="scrollend"),j=be?$!==null?$+"Capture":null:$;be=[];for(var U=G,B;U!==null;){var ee=U;if(B=ee.stateNode,ee=ee.tag,ee!==5&&ee!==26&&ee!==27||B===null||j===null||(ee=no(U,j),ee!=null&&be.push(Io(U,ee,B))),je)break;U=U.return}0<be.length&&($=new X($,fe,null,o,Q),ne.push({event:$,listeners:be}))}}if((i&7)===0){e:{if($=t==="mouseover"||t==="pointerover",X=t==="mouseout"||t==="pointerout",$&&o!==Ju&&(fe=o.relatedTarget||o.fromElement)&&(Yr(fe)||fe[qr]))break e;if((X||$)&&($=Q.window===Q?Q:($=Q.ownerDocument)?$.defaultView||$.parentWindow:window,X?(fe=o.relatedTarget||o.toElement,X=G,fe=fe?Yr(fe):null,fe!==null&&(je=u(fe),be=fe.tag,fe!==je||be!==5&&be!==27&&be!==6)&&(fe=null)):(X=null,fe=G),X!==fe)){if(be=Ap,ee="onMouseLeave",j="onMouseEnter",U="mouse",(t==="pointerout"||t==="pointerover")&&(be=Tp,ee="onPointerLeave",j="onPointerEnter",U="pointer"),je=X==null?$:to(X),B=fe==null?$:to(fe),$=new be(ee,U+"leave",X,o,Q),$.target=je,$.relatedTarget=B,ee=null,Yr(Q)===G&&(be=new be(j,U+"enter",fe,o,Q),be.target=B,be.relatedTarget=je,ee=be),je=ee,X&&fe)t:{for(be=Rx,j=X,U=fe,B=0,ee=j;ee;ee=be(ee))B++;ee=0;for(var ve=U;ve;ve=be(ve))ee++;for(;0<B-ee;)j=be(j),B--;for(;0<ee-B;)U=be(U),ee--;for(;B--;){if(j===U||U!==null&&j===U.alternate){be=j;break t}j=be(j),U=be(U)}be=null}else be=null;X!==null&&yv(ne,$,X,be,!1),fe!==null&&je!==null&&yv(ne,je,fe,be,!0)}}e:{if($=G?to(G):window,X=$.nodeName&&$.nodeName.toLowerCase(),X==="select"||X==="input"&&$.type==="file")var Oe=Ip;else if(Dp($))if(Pp)Oe=VS;else{Oe=HS;var ge=US}else X=$.nodeName,!X||X.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?G&&Ku(G.elementType)&&(Oe=Ip):Oe=jS;if(Oe&&(Oe=Oe(t,G))){zp(ne,Oe,o,Q);break e}ge&&ge(t,$,G),t==="focusout"&&G&&$.type==="number"&&G.memoizedProps.value!=null&&Zu($,"number",$.value)}switch(ge=G?to(G):window,t){case"focusin":(Dp(ge)||ge.contentEditable==="true")&&(ta=ge,fc=G,co=null);break;case"focusout":co=fc=ta=null;break;case"mousedown":hc=!0;break;case"contextmenu":case"mouseup":case"dragend":hc=!1,qp(ne,o,Q);break;case"selectionchange":if(GS)break;case"keydown":case"keyup":qp(ne,o,Q)}var xe;if(sc)e:{switch(t){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else ea?Op(t,o)&&(Le="onCompositionEnd"):t==="keydown"&&o.keyCode===229&&(Le="onCompositionStart");Le&&(Lp&&o.locale!=="ko"&&(ea||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&ea&&(xe=wp()):(Ci=Q,ic="value"in Ci?Ci.value:Ci.textContent,ea=!0)),ge=_s(G,Le),0<ge.length&&(Le=new kp(Le,t,null,o,Q),ne.push({event:Le,listeners:ge}),xe?Le.data=xe:(xe=Mp(o),xe!==null&&(Le.data=xe)))),(xe=MS?DS(t,o):zS(t,o))&&(Le=_s(G,"onBeforeInput"),0<Le.length&&(ge=new kp("onBeforeInput","beforeinput",null,o,Q),ne.push({event:ge,listeners:Le}),ge.data=xe)),Ax(ne,t,G,o,Q)}vv(ne,i)})}function Io(t,i,o){return{instance:t,listener:i,currentTarget:o}}function _s(t,i){for(var o=i+"Capture",s=[];t!==null;){var h=t,p=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||p===null||(h=no(t,o),h!=null&&s.unshift(Io(t,h,p)),h=no(t,i),h!=null&&s.push(Io(t,h,p))),t.tag===3)return s;t=t.return}return[]}function Rx(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function yv(t,i,o,s,h){for(var p=i._reactName,y=[];o!==null&&o!==s;){var x=o,O=x.alternate,G=x.stateNode;if(x=x.tag,O!==null&&O===s)break;x!==5&&x!==26&&x!==27||G===null||(O=G,h?(G=no(o,p),G!=null&&y.unshift(Io(o,G,O))):h||(G=no(o,p),G!=null&&y.push(Io(o,G,O)))),o=o.return}y.length!==0&&t.push({event:i,listeners:y})}var Nx=/\r\n?/g,Ox=/\u0000|\uFFFD/g;function _v(t){return(typeof t=="string"?t:""+t).replace(Nx,`
|
|
10
|
+
`).replace(Ox,"")}function Sv(t,i){return i=_v(i),_v(t)===i}function He(t,i,o,s,h,p){switch(o){case"children":typeof s=="string"?i==="body"||i==="textarea"&&s===""||Zr(t,s):(typeof s=="number"||typeof s=="bigint")&&i!=="body"&&Zr(t,""+s);break;case"className":wl(t,"class",s);break;case"tabIndex":wl(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":wl(t,o,s);break;case"style":Sp(t,s,p);break;case"data":if(i!=="object"){wl(t,"data",s);break}case"src":case"href":if(s===""&&(i!=="a"||o!=="href")){t.removeAttribute(o);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(o);break}s=Al(""+s),t.setAttribute(o,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(o,"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 p=="function"&&(o==="formAction"?(i!=="input"&&He(t,i,"name",h.name,h,null),He(t,i,"formEncType",h.formEncType,h,null),He(t,i,"formMethod",h.formMethod,h,null),He(t,i,"formTarget",h.formTarget,h,null)):(He(t,i,"encType",h.encType,h,null),He(t,i,"method",h.method,h,null),He(t,i,"target",h.target,h,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(o);break}s=Al(""+s),t.setAttribute(o,s);break;case"onClick":s!=null&&(t.onclick=Qn);break;case"onScroll":s!=null&&ke("scroll",t);break;case"onScrollEnd":s!=null&&ke("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(o=s.__html,o!=null){if(h.children!=null)throw Error(a(60));t.innerHTML=o}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}o=Al(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(o,""+s):t.removeAttribute(o);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":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(o,""):t.removeAttribute(o);break;case"capture":case"download":s===!0?t.setAttribute(o,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(o,s):t.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(o,s):t.removeAttribute(o);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(o):t.setAttribute(o,s);break;case"popover":ke("beforetoggle",t),ke("toggle",t),El(t,"popover",s);break;case"xlinkActuate":Wn(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":Wn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":Wn(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":Wn(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":Wn(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":Wn(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":Wn(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":Wn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":Wn(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":El(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=oS.get(o)||o,El(t,o,s))}}function Ud(t,i,o,s,h,p){switch(o){case"style":Sp(t,s,p);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(o=s.__html,o!=null){if(h.children!=null)throw Error(a(60));t.innerHTML=o}}break;case"children":typeof s=="string"?Zr(t,s):(typeof s=="number"||typeof s=="bigint")&&Zr(t,""+s);break;case"onScroll":s!=null&&ke("scroll",t);break;case"onScrollEnd":s!=null&&ke("scrollend",t);break;case"onClick":s!=null&&(t.onclick=Qn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fp.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(h=o.endsWith("Capture"),i=o.slice(2,h?o.length-7:void 0),p=t[jt]||null,p=p!=null?p[o]:null,typeof p=="function"&&t.removeEventListener(i,p,h),typeof s=="function")){typeof p!="function"&&p!==null&&(o in t?t[o]=null:t.hasAttribute(o)&&t.removeAttribute(o)),t.addEventListener(i,s,h);break e}o in t?t[o]=s:s===!0?t.setAttribute(o,""):El(t,o,s)}}}function Tt(t,i,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",t),ke("load",t);var s=!1,h=!1,p;for(p in o)if(o.hasOwnProperty(p)){var y=o[p];if(y!=null)switch(p){case"src":s=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:He(t,i,p,y,o,null)}}h&&He(t,i,"srcSet",o.srcSet,o,null),s&&He(t,i,"src",o.src,o,null);return;case"input":ke("invalid",t);var x=p=y=h=null,O=null,G=null;for(s in o)if(o.hasOwnProperty(s)){var Q=o[s];if(Q!=null)switch(s){case"name":h=Q;break;case"type":y=Q;break;case"checked":O=Q;break;case"defaultChecked":G=Q;break;case"value":p=Q;break;case"defaultValue":x=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(a(137,i));break;default:He(t,i,s,Q,o,null)}}vp(t,p,x,O,G,y,h,!1);return;case"select":ke("invalid",t),s=y=p=null;for(h in o)if(o.hasOwnProperty(h)&&(x=o[h],x!=null))switch(h){case"value":p=x;break;case"defaultValue":y=x;break;case"multiple":s=x;default:He(t,i,h,x,o,null)}i=p,o=y,t.multiple=!!s,i!=null?Qr(t,!!s,i,!1):o!=null&&Qr(t,!!s,o,!0);return;case"textarea":ke("invalid",t),p=h=s=null;for(y in o)if(o.hasOwnProperty(y)&&(x=o[y],x!=null))switch(y){case"value":s=x;break;case"defaultValue":h=x;break;case"children":p=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(a(91));break;default:He(t,i,y,x,o,null)}yp(t,s,h,p);return;case"option":for(O in o)o.hasOwnProperty(O)&&(s=o[O],s!=null)&&(O==="selected"?t.selected=s&&typeof s!="function"&&typeof s!="symbol":He(t,i,O,s,o,null));return;case"dialog":ke("beforetoggle",t),ke("toggle",t),ke("cancel",t),ke("close",t);break;case"iframe":case"object":ke("load",t);break;case"video":case"audio":for(s=0;s<zo.length;s++)ke(zo[s],t);break;case"image":ke("error",t),ke("load",t);break;case"details":ke("toggle",t);break;case"embed":case"source":case"link":ke("error",t),ke("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 o)if(o.hasOwnProperty(G)&&(s=o[G],s!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,i));default:He(t,i,G,s,o,null)}return;default:if(Ku(i)){for(Q in o)o.hasOwnProperty(Q)&&(s=o[Q],s!==void 0&&Ud(t,i,Q,s,o,void 0));return}}for(x in o)o.hasOwnProperty(x)&&(s=o[x],s!=null&&He(t,i,x,s,o,null))}function Mx(t,i,o,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,p=null,y=null,x=null,O=null,G=null,Q=null;for(X in o){var ne=o[X];if(o.hasOwnProperty(X)&&ne!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":O=ne;default:s.hasOwnProperty(X)||He(t,i,X,null,s,ne)}}for(var $ in s){var X=s[$];if(ne=o[$],s.hasOwnProperty($)&&(X!=null||ne!=null))switch($){case"type":p=X;break;case"name":h=X;break;case"checked":G=X;break;case"defaultChecked":Q=X;break;case"value":y=X;break;case"defaultValue":x=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(a(137,i));break;default:X!==ne&&He(t,i,$,X,s,ne)}}Qu(t,y,x,O,G,Q,p,h);return;case"select":X=y=x=$=null;for(p in o)if(O=o[p],o.hasOwnProperty(p)&&O!=null)switch(p){case"value":break;case"multiple":X=O;default:s.hasOwnProperty(p)||He(t,i,p,null,s,O)}for(h in s)if(p=s[h],O=o[h],s.hasOwnProperty(h)&&(p!=null||O!=null))switch(h){case"value":$=p;break;case"defaultValue":x=p;break;case"multiple":y=p;default:p!==O&&He(t,i,h,p,s,O)}i=x,o=y,s=X,$!=null?Qr(t,!!o,$,!1):!!s!=!!o&&(i!=null?Qr(t,!!o,i,!0):Qr(t,!!o,o?[]:"",!1));return;case"textarea":X=$=null;for(x in o)if(h=o[x],o.hasOwnProperty(x)&&h!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:He(t,i,x,null,s,h)}for(y in s)if(h=s[y],p=o[y],s.hasOwnProperty(y)&&(h!=null||p!=null))switch(y){case"value":$=h;break;case"defaultValue":X=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(a(91));break;default:h!==p&&He(t,i,y,h,s,p)}bp(t,$,X);return;case"option":for(var fe in o)$=o[fe],o.hasOwnProperty(fe)&&$!=null&&!s.hasOwnProperty(fe)&&(fe==="selected"?t.selected=!1:He(t,i,fe,null,s,$));for(O in s)$=s[O],X=o[O],s.hasOwnProperty(O)&&$!==X&&($!=null||X!=null)&&(O==="selected"?t.selected=$&&typeof $!="function"&&typeof $!="symbol":He(t,i,O,$,s,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 be in o)$=o[be],o.hasOwnProperty(be)&&$!=null&&!s.hasOwnProperty(be)&&He(t,i,be,null,s,$);for(G in s)if($=s[G],X=o[G],s.hasOwnProperty(G)&&$!==X&&($!=null||X!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(a(137,i));break;default:He(t,i,G,$,s,X)}return;default:if(Ku(i)){for(var je in o)$=o[je],o.hasOwnProperty(je)&&$!==void 0&&!s.hasOwnProperty(je)&&Ud(t,i,je,void 0,s,$);for(Q in s)$=s[Q],X=o[Q],!s.hasOwnProperty(Q)||$===X||$===void 0&&X===void 0||Ud(t,i,Q,$,s,X);return}}for(var j in o)$=o[j],o.hasOwnProperty(j)&&$!=null&&!s.hasOwnProperty(j)&&He(t,i,j,null,s,$);for(ne in s)$=s[ne],X=o[ne],!s.hasOwnProperty(ne)||$===X||$==null&&X==null||He(t,i,ne,$,s,X)}function xv(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Dx(){if(typeof performance.getEntriesByType=="function"){for(var t=0,i=0,o=performance.getEntriesByType("resource"),s=0;s<o.length;s++){var h=o[s],p=h.transferSize,y=h.initiatorType,x=h.duration;if(p&&x&&xv(y)){for(y=0,x=h.responseEnd,s+=1;s<o.length;s++){var O=o[s],G=O.startTime;if(G>x)break;var Q=O.transferSize,ne=O.initiatorType;Q&&xv(ne)&&(O=O.responseEnd,y+=Q*(O<x?1:(x-G)/(O-G)))}if(--s,i+=8*(p+y)/(h.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 Hd=null,jd=null;function Ss(t){return t.nodeType===9?t:t.ownerDocument}function Ev(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 wv(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 Vd(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 Bd=null;function zx(){var t=window.event;return t&&t.type==="popstate"?t===Bd?!1:(Bd=t,!0):(Bd=null,!1)}var Cv=typeof setTimeout=="function"?setTimeout:void 0,Ix=typeof clearTimeout=="function"?clearTimeout:void 0,Av=typeof Promise=="function"?Promise:void 0,Px=typeof queueMicrotask=="function"?queueMicrotask:typeof Av<"u"?function(t){return Av.resolve(null).then(t).catch(Ux)}:Cv;function Ux(t){setTimeout(function(){throw t})}function Bi(t){return t==="head"}function kv(t,i){var o=i,s=0;do{var h=o.nextSibling;if(t.removeChild(o),h&&h.nodeType===8)if(o=h.data,o==="/$"||o==="/&"){if(s===0){t.removeChild(h),Ta(i);return}s--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")s++;else if(o==="html")Po(t.ownerDocument.documentElement);else if(o==="head"){o=t.ownerDocument.head,Po(o);for(var p=o.firstChild;p;){var y=p.nextSibling,x=p.nodeName;p[eo]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&p.rel.toLowerCase()==="stylesheet"||o.removeChild(p),p=y}}else o==="body"&&Po(t.ownerDocument.body);o=h}while(o);Ta(i)}function Tv(t,i){var o=t;t=0;do{var s=o.nextSibling;if(o.nodeType===1?i?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(i?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),s&&s.nodeType===8)if(o=s.data,o==="/$"){if(t===0)break;t--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||t++;o=s}while(o)}function Gd(t){var i=t.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var o=i;switch(i=i.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Gd(o),Xu(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}t.removeChild(o)}}function Hx(t,i,o,s){for(;t.nodeType===1;){var h=o;if(t.nodeName.toLowerCase()!==i.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[eo])switch(i){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(p=t.getAttribute("rel"),p==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(p!==h.rel||t.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||t.getAttribute("title")!==(h.title==null?null:h.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(p=t.getAttribute("src"),(p!==(h.src==null?null:h.src)||t.getAttribute("type")!==(h.type==null?null:h.type)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&p&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(i==="input"&&t.type==="hidden"){var p=h.name==null?null:""+h.name;if(h.type==="hidden"&&t.getAttribute("name")===p)return t}else return t;if(t=fn(t.nextSibling),t===null)break}return null}function jx(t,i,o){if(i==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!o||(t=fn(t.nextSibling),t===null))return null;return t}function Lv(t,i){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=fn(t.nextSibling),t===null))return null;return t}function $d(t){return t.data==="$?"||t.data==="$~"}function qd(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Vx(t,i){var o=t.ownerDocument;if(t.data==="$~")t._reactRetry=i;else if(t.data!=="$?"||o.readyState!=="loading")i();else{var s=function(){i(),o.removeEventListener("DOMContentLoaded",s)};o.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function fn(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 Yd=null;function Rv(t){t=t.nextSibling;for(var i=0;t;){if(t.nodeType===8){var o=t.data;if(o==="/$"||o==="/&"){if(i===0)return fn(t.nextSibling);i--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||i++}t=t.nextSibling}return null}function Nv(t){t=t.previousSibling;for(var i=0;t;){if(t.nodeType===8){var o=t.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(i===0)return t;i--}else o!=="/$"&&o!=="/&"||i++}t=t.previousSibling}return null}function Ov(t,i,o){switch(i=Ss(o),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 Po(t){for(var i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Xu(t)}var hn=new Map,Mv=new Set;function xs(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var fi=Y.d;Y.d={f:Bx,r:Gx,D:$x,C:qx,L:Yx,m:Fx,X:Wx,S:Xx,M:Qx};function Bx(){var t=fi.f(),i=hs();return t||i}function Gx(t){var i=Fr(t);i!==null&&i.tag===5&&i.type==="form"?Qm(i):fi.r(t)}var Ca=typeof document>"u"?null:document;function Dv(t,i,o){var s=Ca;if(s&&typeof i=="string"&&i){var h=an(i);h='link[rel="'+t+'"][href="'+h+'"]',typeof o=="string"&&(h+='[crossorigin="'+o+'"]'),Mv.has(h)||(Mv.add(h),t={rel:t,crossOrigin:o,href:i},s.querySelector(h)===null&&(i=s.createElement("link"),Tt(i,"link",t),bt(i),s.head.appendChild(i)))}}function $x(t){fi.D(t),Dv("dns-prefetch",t,null)}function qx(t,i){fi.C(t,i),Dv("preconnect",t,i)}function Yx(t,i,o){fi.L(t,i,o);var s=Ca;if(s&&t&&i){var h='link[rel="preload"][as="'+an(i)+'"]';i==="image"&&o&&o.imageSrcSet?(h+='[imagesrcset="'+an(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(h+='[imagesizes="'+an(o.imageSizes)+'"]')):h+='[href="'+an(t)+'"]';var p=h;switch(i){case"style":p=Aa(t);break;case"script":p=ka(t)}hn.has(p)||(t=v({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:t,as:i},o),hn.set(p,t),s.querySelector(h)!==null||i==="style"&&s.querySelector(Uo(p))||i==="script"&&s.querySelector(Ho(p))||(i=s.createElement("link"),Tt(i,"link",t),bt(i),s.head.appendChild(i)))}}function Fx(t,i){fi.m(t,i);var o=Ca;if(o&&t){var s=i&&typeof i.as=="string"?i.as:"script",h='link[rel="modulepreload"][as="'+an(s)+'"][href="'+an(t)+'"]',p=h;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=ka(t)}if(!hn.has(p)&&(t=v({rel:"modulepreload",href:t},i),hn.set(p,t),o.querySelector(h)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Ho(p)))return}s=o.createElement("link"),Tt(s,"link",t),bt(s),o.head.appendChild(s)}}}function Xx(t,i,o){fi.S(t,i,o);var s=Ca;if(s&&t){var h=Xr(s).hoistableStyles,p=Aa(t);i=i||"default";var y=h.get(p);if(!y){var x={loading:0,preload:null};if(y=s.querySelector(Uo(p)))x.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":i},o),(o=hn.get(p))&&Fd(t,o);var O=y=s.createElement("link");bt(O),Tt(O,"link",t),O._p=new Promise(function(G,Q){O.onload=G,O.onerror=Q}),O.addEventListener("load",function(){x.loading|=1}),O.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Es(y,i,s)}y={type:"stylesheet",instance:y,count:1,state:x},h.set(p,y)}}}function Wx(t,i){fi.X(t,i);var o=Ca;if(o&&t){var s=Xr(o).hoistableScripts,h=ka(t),p=s.get(h);p||(p=o.querySelector(Ho(h)),p||(t=v({src:t,async:!0},i),(i=hn.get(h))&&Xd(t,i),p=o.createElement("script"),bt(p),Tt(p,"link",t),o.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(h,p))}}function Qx(t,i){fi.M(t,i);var o=Ca;if(o&&t){var s=Xr(o).hoistableScripts,h=ka(t),p=s.get(h);p||(p=o.querySelector(Ho(h)),p||(t=v({src:t,async:!0,type:"module"},i),(i=hn.get(h))&&Xd(t,i),p=o.createElement("script"),bt(p),Tt(p,"link",t),o.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},s.set(h,p))}}function zv(t,i,o,s){var h=(h=le.current)?xs(h):null;if(!h)throw Error(a(446));switch(t){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=Aa(o.href),o=Xr(h).hoistableStyles,s=o.get(i),s||(s={type:"style",instance:null,count:0,state:null},o.set(i,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){t=Aa(o.href);var p=Xr(h).hoistableStyles,y=p.get(t);if(y||(h=h.ownerDocument||h,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(t,y),(p=h.querySelector(Uo(t)))&&!p._p&&(y.instance=p,y.state.loading=5),hn.has(t)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},hn.set(t,o),p||Zx(h,t,o,y.state))),i&&s===null)throw Error(a(528,""));return y}if(i&&s!==null)throw Error(a(529,""));return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=ka(o),o=Xr(h).hoistableScripts,s=o.get(i),s||(s={type:"script",instance:null,count:0,state:null},o.set(i,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,t))}}function Aa(t){return'href="'+an(t)+'"'}function Uo(t){return'link[rel="stylesheet"]['+t+"]"}function Iv(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function Zx(t,i,o,s){t.querySelector('link[rel="preload"][as="style"]['+i+"]")?s.loading=1:(i=t.createElement("link"),s.preload=i,i.addEventListener("load",function(){return s.loading|=1}),i.addEventListener("error",function(){return s.loading|=2}),Tt(i,"link",o),bt(i),t.head.appendChild(i))}function ka(t){return'[src="'+an(t)+'"]'}function Ho(t){return"script[async]"+t}function Pv(t,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var s=t.querySelector('style[data-href~="'+an(o.href)+'"]');if(s)return i.instance=s,bt(s),s;var h=v({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),bt(s),Tt(s,"style",h),Es(s,o.precedence,t),i.instance=s;case"stylesheet":h=Aa(o.href);var p=t.querySelector(Uo(h));if(p)return i.state.loading|=4,i.instance=p,bt(p),p;s=Iv(o),(h=hn.get(h))&&Fd(s,h),p=(t.ownerDocument||t).createElement("link"),bt(p);var y=p;return y._p=new Promise(function(x,O){y.onload=x,y.onerror=O}),Tt(p,"link",s),i.state.loading|=4,Es(p,o.precedence,t),i.instance=p;case"script":return p=ka(o.src),(h=t.querySelector(Ho(p)))?(i.instance=h,bt(h),h):(s=o,(h=hn.get(p))&&(s=v({},o),Xd(s,h)),t=t.ownerDocument||t,h=t.createElement("script"),bt(h),Tt(h,"link",s),t.head.appendChild(h),i.instance=h);case"void":return null;default:throw Error(a(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(s=i.instance,i.state.loading|=4,Es(s,o.precedence,t));return i.instance}function Es(t,i,o){for(var s=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=s.length?s[s.length-1]:null,p=h,y=0;y<s.length;y++){var x=s[y];if(x.dataset.precedence===i)p=x;else if(p!==h)break}p?p.parentNode.insertBefore(t,p.nextSibling):(i=o.nodeType===9?o.head:o,i.insertBefore(t,i.firstChild))}function Fd(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.title==null&&(t.title=i.title)}function Xd(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.integrity==null&&(t.integrity=i.integrity)}var ws=null;function Uv(t,i,o){if(ws===null){var s=new Map,h=ws=new Map;h.set(o,s)}else h=ws,s=h.get(o),s||(s=new Map,h.set(o,s));if(s.has(t))return s;for(s.set(t,null),o=o.getElementsByTagName(t),h=0;h<o.length;h++){var p=o[h];if(!(p[eo]||p[wt]||t==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var y=p.getAttribute(i)||"";y=t+y;var x=s.get(y);x?x.push(p):s.set(y,[p])}}return s}function Hv(t,i,o){t=t.ownerDocument||t,t.head.insertBefore(o,i==="title"?t.querySelector("head > title"):null)}function Kx(t,i,o){if(o===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 jv(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Jx(t,i,o,s){if(o.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var h=Aa(s.href),p=i.querySelector(Uo(h));if(p){i=p._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(t.count++,t=Cs.bind(t),i.then(t,t)),o.state.loading|=4,o.instance=p,bt(p);return}p=i.ownerDocument||i,s=Iv(s),(h=hn.get(h))&&Fd(s,h),p=p.createElement("link"),bt(p);var y=p;y._p=new Promise(function(x,O){y.onload=x,y.onerror=O}),Tt(p,"link",s),o.instance=p}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(t.count++,o=Cs.bind(t),i.addEventListener("load",o),i.addEventListener("error",o))}}var Wd=0;function eE(t,i){return t.stylesheets&&t.count===0&&ks(t,t.stylesheets),0<t.count||0<t.imgCount?function(o){var s=setTimeout(function(){if(t.stylesheets&&ks(t,t.stylesheets),t.unsuspend){var p=t.unsuspend;t.unsuspend=null,p()}},6e4+i);0<t.imgBytes&&Wd===0&&(Wd=62500*Dx());var h=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ks(t,t.stylesheets),t.unsuspend)){var p=t.unsuspend;t.unsuspend=null,p()}},(t.imgBytes>Wd?50:800)+i);return t.unsuspend=o,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(h)}}:null}function Cs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ks(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var As=null;function ks(t,i){t.stylesheets=null,t.unsuspend!==null&&(t.count++,As=new Map,i.forEach(tE,t),As=null,Cs.call(t))}function tE(t,i){if(!(i.state.loading&4)){var o=As.get(t);if(o)var s=o.get(null);else{o=new Map,As.set(t,o);for(var h=t.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<h.length;p++){var y=h[p];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(o.set(y.dataset.precedence,y),s=y)}s&&o.set(null,s)}h=i.instance,y=h.getAttribute("data-precedence"),p=o.get(y)||s,p===s&&o.set(null,h),o.set(y,h),this.count++,s=Cs.bind(this),h.addEventListener("load",s),h.addEventListener("error",s),p?p.parentNode.insertBefore(h,p.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(h,t.firstChild)),i.state.loading|=4}}var jo={$$typeof:A,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function nE(t,i,o,s,h,p,y,x,O){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=Ei(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ei(0),this.hiddenUpdates=Ei(null),this.identifierPrefix=s,this.onUncaughtError=h,this.onCaughtError=p,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Vv(t,i,o,s,h,p,y,x,O,G,Q,ne){return t=new nE(t,i,o,y,O,G,Q,ne,x),i=1,p===!0&&(i|=24),p=Qt(3,null,null,i),t.current=p,p.stateNode=t,i=Tc(),i.refCount++,t.pooledCache=i,i.refCount++,p.memoizedState={element:s,isDehydrated:o,cache:i},Oc(p),t}function Bv(t){return t?(t=ra,t):ra}function Gv(t,i,o,s,h,p){h=Bv(h),s.context===null?s.context=h:s.pendingContext=h,s=Ni(i),s.payload={element:o},p=p===void 0?null:p,p!==null&&(s.callback=p),o=Oi(t,s,i),o!==null&&(Yt(o,t,i),bo(o,t,i))}function $v(t,i){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var o=t.retryLane;t.retryLane=o!==0&&o<i?o:i}}function Qd(t,i){$v(t,i),(t=t.alternate)&&$v(t,i)}function qv(t){if(t.tag===13||t.tag===31){var i=ur(t,67108864);i!==null&&Yt(i,t,67108864),Qd(t,67108864)}}function Yv(t){if(t.tag===13||t.tag===31){var i=tn();i=qu(i);var o=ur(t,i);o!==null&&Yt(o,t,i),Qd(t,i)}}var Ts=!0;function iE(t,i,o,s){var h=D.T;D.T=null;var p=Y.p;try{Y.p=2,Zd(t,i,o,s)}finally{Y.p=p,D.T=h}}function rE(t,i,o,s){var h=D.T;D.T=null;var p=Y.p;try{Y.p=8,Zd(t,i,o,s)}finally{Y.p=p,D.T=h}}function Zd(t,i,o,s){if(Ts){var h=Kd(s);if(h===null)Pd(t,i,s,Ls,o),Xv(t,s);else if(oE(h,t,i,o,s))s.stopPropagation();else if(Xv(t,s),i&4&&-1<aE.indexOf(t)){for(;h!==null;){var p=Fr(h);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var y=xn(p.pendingLanes);if(y!==0){var x=p;for(x.pendingLanes|=2,x.entangledLanes|=2;y;){var O=1<<31-Nt(y);x.entanglements[1]|=O,y&=~O}jn(p),(De&6)===0&&(ds=Et()+500,Do(0))}}break;case 31:case 13:x=ur(p,2),x!==null&&Yt(x,p,2),hs(),Qd(p,2)}if(p=Kd(s),p===null&&Pd(t,i,s,Ls,o),p===h)break;h=p}h!==null&&s.stopPropagation()}else Pd(t,i,s,null,o)}}function Kd(t){return t=ec(t),Jd(t)}var Ls=null;function Jd(t){if(Ls=null,t=Yr(t),t!==null){var i=u(t);if(i===null)t=null;else{var o=i.tag;if(o===13){if(t=c(i),t!==null)return t;t=null}else if(o===31){if(t=d(i),t!==null)return t;t=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;t=null}else i!==t&&(t=null)}}return Ls=t,null}function Fv(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(ir()){case Yn:return 2;case Si:return 8;case Dn:case Fn:return 32;case zn:return 268435456;default:return 32}default:return 32}}var ef=!1,Gi=null,$i=null,qi=null,Vo=new Map,Bo=new Map,Yi=[],aE="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 Xv(t,i){switch(t){case"focusin":case"focusout":Gi=null;break;case"dragenter":case"dragleave":$i=null;break;case"mouseover":case"mouseout":qi=null;break;case"pointerover":case"pointerout":Vo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bo.delete(i.pointerId)}}function Go(t,i,o,s,h,p){return t===null||t.nativeEvent!==p?(t={blockedOn:i,domEventName:o,eventSystemFlags:s,nativeEvent:p,targetContainers:[h]},i!==null&&(i=Fr(i),i!==null&&qv(i)),t):(t.eventSystemFlags|=s,i=t.targetContainers,h!==null&&i.indexOf(h)===-1&&i.push(h),t)}function oE(t,i,o,s,h){switch(i){case"focusin":return Gi=Go(Gi,t,i,o,s,h),!0;case"dragenter":return $i=Go($i,t,i,o,s,h),!0;case"mouseover":return qi=Go(qi,t,i,o,s,h),!0;case"pointerover":var p=h.pointerId;return Vo.set(p,Go(Vo.get(p)||null,t,i,o,s,h)),!0;case"gotpointercapture":return p=h.pointerId,Bo.set(p,Go(Bo.get(p)||null,t,i,o,s,h)),!0}return!1}function Wv(t){var i=Yr(t.target);if(i!==null){var o=u(i);if(o!==null){if(i=o.tag,i===13){if(i=c(o),i!==null){t.blockedOn=i,up(t.priority,function(){Yv(o)});return}}else if(i===31){if(i=d(o),i!==null){t.blockedOn=i,up(t.priority,function(){Yv(o)});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){t.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Rs(t){if(t.blockedOn!==null)return!1;for(var i=t.targetContainers;0<i.length;){var o=Kd(t.nativeEvent);if(o===null){o=t.nativeEvent;var s=new o.constructor(o.type,o);Ju=s,o.target.dispatchEvent(s),Ju=null}else return i=Fr(o),i!==null&&qv(i),t.blockedOn=o,!1;i.shift()}return!0}function Qv(t,i,o){Rs(t)&&o.delete(i)}function lE(){ef=!1,Gi!==null&&Rs(Gi)&&(Gi=null),$i!==null&&Rs($i)&&($i=null),qi!==null&&Rs(qi)&&(qi=null),Vo.forEach(Qv),Bo.forEach(Qv)}function Ns(t,i){t.blockedOn===i&&(t.blockedOn=null,ef||(ef=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,lE)))}var Os=null;function Zv(t){Os!==t&&(Os=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Os===t&&(Os=null);for(var i=0;i<t.length;i+=3){var o=t[i],s=t[i+1],h=t[i+2];if(typeof s!="function"){if(Jd(s||o)===null)continue;break}var p=Fr(o);p!==null&&(t.splice(i,3),i-=3,Kc(p,{pending:!0,data:h,method:o.method,action:s},s,h))}}))}function Ta(t){function i(O){return Ns(O,t)}Gi!==null&&Ns(Gi,t),$i!==null&&Ns($i,t),qi!==null&&Ns(qi,t),Vo.forEach(i),Bo.forEach(i);for(var o=0;o<Yi.length;o++){var s=Yi[o];s.blockedOn===t&&(s.blockedOn=null)}for(;0<Yi.length&&(o=Yi[0],o.blockedOn===null);)Wv(o),o.blockedOn===null&&Yi.shift();if(o=(t.ownerDocument||t).$$reactFormReplay,o!=null)for(s=0;s<o.length;s+=3){var h=o[s],p=o[s+1],y=h[jt]||null;if(typeof p=="function")y||Zv(o);else if(y){var x=null;if(p&&p.hasAttribute("formAction")){if(h=p,y=p[jt]||null)x=y.formAction;else if(Jd(h)!==null)continue}else x=y.action;typeof x=="function"?o[s+1]=x:(o.splice(s,3),s-=3),Zv(o)}}}function Kv(){function t(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(y){return h=y})},focusReset:"manual",scroll:"manual"})}function i(){h!==null&&(h(),h=null),s||setTimeout(o,20)}function o(){if(!s&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,h=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(o,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),h!==null&&(h(),h=null)}}}function tf(t){this._internalRoot=t}Ms.prototype.render=tf.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw Error(a(409));var o=i.current,s=tn();Gv(o,s,t,i,null,null)},Ms.prototype.unmount=tf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;Gv(t.current,2,null,t,null,null),hs(),i[qr]=null}};function Ms(t){this._internalRoot=t}Ms.prototype.unstable_scheduleHydration=function(t){if(t){var i=sp();t={blockedOn:null,target:t,priority:i};for(var o=0;o<Yi.length&&i!==0&&i<Yi[o].priority;o++);Yi.splice(o,0,t),o===0&&Wv(t)}};var Jv=n.version;if(Jv!=="19.2.4")throw Error(a(527,Jv,"19.2.4"));Y.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=m(i),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var sE={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ds=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ds.isDisabled&&Ds.supportsFiber)try{rr=Ds.inject(sE),Rt=Ds}catch{}}return qo.createRoot=function(t,i){if(!l(t))throw Error(a(299));var o=!1,s="",h=og,p=lg,y=sg;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(s=i.identifierPrefix),i.onUncaughtError!==void 0&&(h=i.onUncaughtError),i.onCaughtError!==void 0&&(p=i.onCaughtError),i.onRecoverableError!==void 0&&(y=i.onRecoverableError)),i=Vv(t,1,!1,null,null,o,s,null,h,p,y,Kv),t[qr]=i.current,Id(t),new tf(i)},qo.hydrateRoot=function(t,i,o){if(!l(t))throw Error(a(299));var s=!1,h="",p=og,y=lg,x=sg,O=null;return o!=null&&(o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(p=o.onUncaughtError),o.onCaughtError!==void 0&&(y=o.onCaughtError),o.onRecoverableError!==void 0&&(x=o.onRecoverableError),o.formState!==void 0&&(O=o.formState)),i=Vv(t,1,!0,i,o??null,s,h,O,p,y,x,Kv),i.context=Bv(null),o=i.current,s=tn(),s=qu(s),h=Ni(s),h.callback=null,Oi(o,h,s),o=s,i.current.lanes=o,Xn(i,o),jn(i),t[qr]=i.current,Id(t),new Ms(i)},qo.version="19.2.4",qo}var ub;function bE(){if(ub)return af.exports;ub=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(),af.exports=vE(),af.exports}var yE=bE();const _E=py(yE);const vy=(...e)=>e.filter((n,r,a)=>!!n&&n.trim()!==""&&a.indexOf(n)===r).join(" ").trim();const SE=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const xE=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,a)=>a?a.toUpperCase():r.toLowerCase());const cb=e=>{const n=xE(e);return n.charAt(0).toUpperCase()+n.slice(1)};var EE={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 wE=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1};const CE=z.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:l="",children:u,iconNode:c,...d},f)=>z.createElement("svg",{ref:f,...EE,width:n,height:n,stroke:e,strokeWidth:a?Number(r)*24/Number(n):r,className:vy("lucide",l),...!u&&!wE(d)&&{"aria-hidden":"true"},...d},[...c.map(([m,g])=>z.createElement(m,g)),...Array.isArray(u)?u:[u]]));const zt=(e,n)=>{const r=z.forwardRef(({className:a,...l},u)=>z.createElement(CE,{ref:u,iconNode:n,className:vy(`lucide-${SE(cb(e))}`,`lucide-${e}`,a),...l}));return r.displayName=cb(e),r};const AE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],kE=zt("chevron-down",AE);const TE=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],LE=zt("chevron-left",TE);const RE=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],db=zt("chevron-right",RE);const NE=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],OE=zt("chevron-up",NE);const ME=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],uu=zt("circle-alert",ME);const DE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],zE=zt("columns-2",DE);const IE=[["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"}]],PE=zt("copy",IE);const UE=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],HE=zt("file-code-corner",UE);const jE=[["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"}]],VE=zt("file",jE);const BE=[["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"}]],GE=zt("folder",BE);const $E=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],qE=zt("message-square",$E);const YE=[["path",{d:"M18 5h4",key:"1lhgn2"}],["path",{d:"M20 3v4",key:"1olli1"}],["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"}]],FE=zt("moon-star",YE);const XE=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],WE=zt("rows-3",XE);const QE=[["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"}]],ZE=zt("sun",QE);const KE=[["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"}]],JE=zt("trash-2",KE);const ew=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],tw=zt("x",ew);function by(){return typeof window<"u"}function yy(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function nw(e){return by()?e instanceof HTMLElement||e instanceof yy(e).HTMLElement:!1}function iw(e){return!by()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof yy(e).ShadowRoot}const fb={};function Nr(e,n){const r=z.useRef(fb);return r.current===fb&&(r.current=e(n)),r}const uf=my[`useInsertionEffect${Math.random().toFixed(1)}`.slice(0,-3)],rw=uf&&uf!==z.useLayoutEffect?uf:e=>e();function Lt(e){const n=Nr(aw).current;return n.next=e,rw(n.effect),n.trampoline}function aw(){const e={next:void 0,callback:ow,trampoline:(...n)=>e.callback?.(...n),effect:()=>{e.callback=e.next}};return e}function ow(){}const lw={...my},sw=()=>{},Ze=typeof document<"u"?z.useLayoutEffect:sw;function jf(e,n){if(e&&!n)return e;if(!e&&n)return n;if(e||n)return{...e,...n}}const Jo={};function _y(e,n,r,a,l){let u={...Vf(e,Jo)};return n&&(u=nu(u,n)),r&&(u=nu(u,r)),a&&(u=nu(u,a)),u}function uw(e){if(e.length===0)return Jo;if(e.length===1)return Vf(e[0],Jo);let n={...Vf(e[0],Jo)};for(let r=1;r<e.length;r+=1)n=nu(n,e[r]);return n}function nu(e,n){return Sy(n)?n(e):cw(e,n)}function cw(e,n){if(!n)return e;for(const r in n){const a=n[r];switch(r){case"style":{e[r]=jf(e.style,a);break}case"className":{e[r]=xy(e.className,a);break}default:dw(r,a)?e[r]=fw(e[r],a):e[r]=a}}return e}function dw(e,n){const r=e.charCodeAt(0),a=e.charCodeAt(1),l=e.charCodeAt(2);return r===111&&a===110&&l>=65&&l<=90&&(typeof n=="function"||typeof n>"u")}function Sy(e){return typeof e=="function"}function Vf(e,n){return Sy(e)?e(n):e??Jo}function fw(e,n){return n?e?r=>{if(hw(r)){const l=r;Bf(l);const u=n(l);return l.baseUIHandlerPrevented||e?.(l),u}const a=n(r);return e?.(r),a}:n:e}function Bf(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function xy(e,n){return n?e?n+" "+e:n:e}function hw(e){return e!=null&&typeof e=="object"&&"nativeEvent"in e}function pw(e,n){return function(a,...l){const u=new URL(e);return u.searchParams.set("code",a.toString()),l.forEach(c=>u.searchParams.append("args[]",c)),`${n} error #${a}; visit ${u} for the full message.`}}const Ir=pw("https://base-ui.com/production-error","Base UI"),mw=z.createContext(void 0);function gw(e=!1){const n=z.useContext(mw);if(n===void 0&&!e)throw new Error(Ir(16));return n}function vw(e){const{focusableWhenDisabled:n,disabled:r,composite:a=!1,tabIndex:l=0,isNativeButton:u}=e,c=a&&n!==!1,d=a&&n===!1;return{props:z.useMemo(()=>{const m={onKeyDown(g){r&&n&&g.key!=="Tab"&&g.preventDefault()}};return a||(m.tabIndex=l,!u&&r&&(m.tabIndex=n?l:-1)),(u&&(n||c)||!u&&r)&&(m["aria-disabled"]=r),u&&(!n||d)&&(m.disabled=r),m},[a,r,n,c,d,u,l])}}function Ey(e={}){const{disabled:n=!1,focusableWhenDisabled:r,tabIndex:a=0,native:l=!0,composite:u}=e,c=z.useRef(null),d=gw(!0),f=u??d!==void 0,{props:m}=vw({focusableWhenDisabled:r,disabled:n,composite:f,tabIndex:a,isNativeButton:l}),g=z.useCallback(()=>{const _=c.current;cf(_)&&f&&n&&m.disabled===void 0&&_.disabled&&(_.disabled=!1)},[n,m.disabled,f]);Ze(g,[g]);const v=z.useCallback((_={})=>{const{onClick:S,onMouseDown:E,onKeyUp:L,onKeyDown:w,onPointerDown:C,...A}=_;return _y({type:l?"button":void 0,onClick(T){if(n){T.preventDefault();return}S?.(T)},onMouseDown(T){n||E?.(T)},onKeyDown(T){if(n||(Bf(T),w?.(T),T.baseUIHandlerPrevented))return;const P=T.target===T.currentTarget,H=T.currentTarget,I=cf(H),K=!l&&bw(H),Z=P&&(l?I:!K),F=T.key==="Enter",V=T.key===" ",te=H.getAttribute("role"),J=te?.startsWith("menuitem")||te==="option"||te==="gridcell";if(P&&f&&V){if(T.defaultPrevented&&J)return;T.preventDefault(),K||l&&I?(H.click(),T.preventBaseUIHandler()):Z&&(S?.(T),T.preventBaseUIHandler());return}Z&&(!l&&(V||F)&&T.preventDefault(),!l&&F&&S?.(T))},onKeyUp(T){if(!n){if(Bf(T),L?.(T),T.target===T.currentTarget&&l&&f&&cf(T.currentTarget)&&T.key===" "){T.preventDefault();return}T.baseUIHandlerPrevented||T.target===T.currentTarget&&!l&&!f&&T.key===" "&&S?.(T)}},onPointerDown(T){if(n){T.preventDefault();return}C?.(T)}},l?void 0:{role:"button"},m,A)},[n,m,f,l]),b=Lt(_=>{c.current=_,g()});return{getButtonProps:v,buttonRef:b}}function cf(e){return nw(e)&&e.tagName==="BUTTON"}function bw(e){return!!(e?.tagName==="A"&&e?.href)}function cu(e,n,r,a){const l=Nr(wy).current;return _w(l,e,n,r,a)&&Cy(l,[e,n,r,a]),l.callback}function yw(e){const n=Nr(wy).current;return Sw(n,e)&&Cy(n,e),n.callback}function wy(){return{callback:null,cleanup:null,refs:[]}}function _w(e,n,r,a,l){return e.refs[0]!==n||e.refs[1]!==r||e.refs[2]!==a||e.refs[3]!==l}function Sw(e,n){return e.refs.length!==n.length||e.refs.some((r,a)=>r!==n[a])}function Cy(e,n){if(e.refs=n,n.every(r=>r==null)){e.callback=null;return}e.callback=r=>{if(e.cleanup&&(e.cleanup(),e.cleanup=null),r!=null){const a=Array(n.length).fill(null);for(let l=0;l<n.length;l+=1){const u=n[l];if(u!=null)switch(typeof u){case"function":{const c=u(r);typeof c=="function"&&(a[l]=c);break}case"object":{u.current=r;break}}}e.cleanup=()=>{for(let l=0;l<n.length;l+=1){const u=n[l];if(u!=null)switch(typeof u){case"function":{const c=a[l];typeof c=="function"?c():u(null);break}case"object":{u.current=null;break}}}}}}}const xw=parseInt(z.version,10);function Ew(e){return xw>=e}function hb(e){if(!z.isValidElement(e))return null;const n=e,r=n.props;return(Ew(19)?r?.ref:n.ref)??null}function ww(e,n){const r={};for(const a in e){const l=e[a];if(n?.hasOwnProperty(a)){const u=n[a](l);u!=null&&Object.assign(r,u);continue}l===!0?r[`data-${a.toLowerCase()}`]="":l&&(r[`data-${a.toLowerCase()}`]=l.toString())}return r}function Cw(e,n){return typeof e=="function"?e(n):e}function Aw(e,n){return typeof e=="function"?e(n):e}const Ar=Object.freeze({});function Mn(e,n,r={}){const a=n.render,l=kw(n,r);if(r.enabled===!1)return null;const u=r.state??Ar;return Lw(e,a,l,u)}function kw(e,n={}){const{className:r,style:a,render:l}=e,{state:u=Ar,ref:c,props:d,stateAttributesMapping:f,enabled:m=!0}=n,g=m?Cw(r,u):void 0,v=m?Aw(a,u):void 0,b=m?ww(u,f):Ar,_=m?jf(b,Array.isArray(d)?uw(d):d)??Ar:Ar;return typeof document<"u"&&(m?Array.isArray(c)?_.ref=yw([_.ref,hb(l),...c]):_.ref=cu(_.ref,hb(l),c):cu(null,null)),m?(g!==void 0&&(_.className=xy(_.className,g)),v!==void 0&&(_.style=jf(_.style,v)),_):Ar}const Tw=Symbol.for("react.lazy");function Lw(e,n,r,a){if(n){if(typeof n=="function")return n(r,a);const l=_y(r,n.props);l.ref=r.ref;let u=n;return u?.$$typeof===Tw&&(u=z.Children.toArray(n)[0]),z.cloneElement(u,l)}if(e&&typeof e=="string")return Rw(e,r);throw new Error(Ir(8))}function Rw(e,n){return e==="button"?z.createElement("button",{type:"button",...n,key:n.key}):e==="img"?z.createElement("img",{alt:"",...n,key:n.key}):z.createElement(e,n)}const Nw=z.forwardRef(function(n,r){const{render:a,className:l,disabled:u=!1,focusableWhenDisabled:c=!1,nativeButton:d=!0,...f}=n,{getButtonProps:m,buttonRef:g}=Ey({disabled:u,focusableWhenDisabled:c,native:d});return Mn("button",n,{state:{disabled:u},ref:[r,g],props:[f,m]})});function Ay(e){var n,r,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(n=0;n<l;n++)e[n]&&(r=Ay(e[n]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function ky(){for(var e,n,r=0,a="",l=arguments.length;r<l;r++)(e=arguments[r])&&(n=Ay(e))&&(a&&(a+=" "),a+=n);return a}const pb=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,mb=ky,Ty=(e,n)=>r=>{var a;if(n?.variants==null)return mb(e,r?.class,r?.className);const{variants:l,defaultVariants:u}=n,c=Object.keys(l).map(m=>{const g=r?.[m],v=u?.[m];if(g===null)return null;const b=pb(g)||pb(v);return l[m][b]}),d=r&&Object.entries(r).reduce((m,g)=>{let[v,b]=g;return b===void 0||(m[v]=b),m},{}),f=n==null||(a=n.compoundVariants)===null||a===void 0?void 0:a.reduce((m,g)=>{let{class:v,className:b,..._}=g;return Object.entries(_).every(S=>{let[E,L]=S;return Array.isArray(L)?L.includes({...u,...d}[E]):{...u,...d}[E]===L})?[...m,v,b]:m},[]);return mb(e,c,f,r?.class,r?.className)},Ow=(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},Mw=(e,n)=>({classGroupId:e,validator:n}),Ly=(e=new Map,n=null,r)=>({nextPart:e,validators:n,classGroupId:r}),du="-",gb=[],Dw="arbitrary..",zw=e=>{const n=Pw(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return Iw(c);const d=c.split(du),f=d[0]===""&&d.length>1?1:0;return Ry(d,f,n)},getConflictingClassGroupIds:(c,d)=>{if(d){const f=a[c],m=r[c];return f?m?Ow(m,f):f:m||gb}return r[c]||gb}}},Ry=(e,n,r)=>{if(e.length-n===0)return r.classGroupId;const l=e[n],u=r.nextPart.get(l);if(u){const m=Ry(e,n+1,u);if(m)return m}const c=r.validators;if(c===null)return;const d=n===0?e.join(du):e.slice(n).join(du),f=c.length;for(let m=0;m<f;m++){const g=c[m];if(g.validator(d))return g.classGroupId}},Iw=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?Dw+a:void 0})(),Pw=e=>{const{theme:n,classGroups:r}=e;return Uw(r,n)},Uw=(e,n)=>{const r=Ly();for(const a in e){const l=e[a];vh(l,r,a,n)}return r},vh=(e,n,r,a)=>{const l=e.length;for(let u=0;u<l;u++){const c=e[u];Hw(c,n,r,a)}},Hw=(e,n,r,a)=>{if(typeof e=="string"){jw(e,n,r);return}if(typeof e=="function"){Vw(e,n,r,a);return}Bw(e,n,r,a)},jw=(e,n,r)=>{const a=e===""?n:Ny(n,e);a.classGroupId=r},Vw=(e,n,r,a)=>{if(Gw(e)){vh(e(a),n,r,a);return}n.validators===null&&(n.validators=[]),n.validators.push(Mw(r,e))},Bw=(e,n,r,a)=>{const l=Object.entries(e),u=l.length;for(let c=0;c<u;c++){const[d,f]=l[c];vh(f,Ny(n,d),r,a)}},Ny=(e,n)=>{let r=e;const a=n.split(du),l=a.length;for(let u=0;u<l;u++){const c=a[u];let d=r.nextPart.get(c);d||(d=Ly(),r.nextPart.set(c,d)),r=d}return r},Gw=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,$w=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=Object.create(null),a=Object.create(null);const l=(u,c)=>{r[u]=c,n++,n>e&&(n=0,a=r,r=Object.create(null))};return{get(u){let c=r[u];if(c!==void 0)return c;if((c=a[u])!==void 0)return l(u,c),c},set(u,c){u in r?r[u]=c:l(u,c)}}},Gf="!",vb=":",qw=[],bb=(e,n,r,a,l)=>({modifiers:e,hasImportantModifier:n,baseClassName:r,maybePostfixModifierPosition:a,isExternal:l}),Yw=e=>{const{prefix:n,experimentalParseClassName:r}=e;let a=l=>{const u=[];let c=0,d=0,f=0,m;const g=l.length;for(let E=0;E<g;E++){const L=l[E];if(c===0&&d===0){if(L===vb){u.push(l.slice(f,E)),f=E+1;continue}if(L==="/"){m=E;continue}}L==="["?c++:L==="]"?c--:L==="("?d++:L===")"&&d--}const v=u.length===0?l:l.slice(f);let b=v,_=!1;v.endsWith(Gf)?(b=v.slice(0,-1),_=!0):v.startsWith(Gf)&&(b=v.slice(1),_=!0);const S=m&&m>f?m-f:void 0;return bb(u,_,b,S)};if(n){const l=n+vb,u=a;a=c=>c.startsWith(l)?u(c.slice(l.length)):bb(qw,!1,c,void 0,!0)}if(r){const l=a;a=u=>r({className:u,parseClassName:l})}return a},Fw=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((r,a)=>{n.set(r,1e6+a)}),r=>{const a=[];let l=[];for(let u=0;u<r.length;u++){const c=r[u],d=c[0]==="[",f=n.has(c);d||f?(l.length>0&&(l.sort(),a.push(...l),l=[]),a.push(c)):l.push(c)}return l.length>0&&(l.sort(),a.push(...l)),a}},Xw=e=>({cache:$w(e.cacheSize),parseClassName:Yw(e),sortModifiers:Fw(e),...zw(e)}),Ww=/\s+/,Qw=(e,n)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:l,sortModifiers:u}=n,c=[],d=e.trim().split(Ww);let f="";for(let m=d.length-1;m>=0;m-=1){const g=d[m],{isExternal:v,modifiers:b,hasImportantModifier:_,baseClassName:S,maybePostfixModifierPosition:E}=r(g);if(v){f=g+(f.length>0?" "+f:f);continue}let L=!!E,w=a(L?S.substring(0,E):S);if(!w){if(!L){f=g+(f.length>0?" "+f:f);continue}if(w=a(S),!w){f=g+(f.length>0?" "+f:f);continue}L=!1}const C=b.length===0?"":b.length===1?b[0]:u(b).join(":"),A=_?C+Gf:C,R=A+w;if(c.indexOf(R)>-1)continue;c.push(R);const T=l(w,L);for(let P=0;P<T.length;++P){const H=T[P];c.push(A+H)}f=g+(f.length>0?" "+f:f)}return f},Zw=(...e)=>{let n=0,r,a,l="";for(;n<e.length;)(r=e[n++])&&(a=Oy(r))&&(l&&(l+=" "),l+=a);return l},Oy=e=>{if(typeof e=="string")return e;let n,r="";for(let a=0;a<e.length;a++)e[a]&&(n=Oy(e[a]))&&(r&&(r+=" "),r+=n);return r},Kw=(e,...n)=>{let r,a,l,u;const c=f=>{const m=n.reduce((g,v)=>v(g),e());return r=Xw(m),a=r.cache.get,l=r.cache.set,u=d,d(f)},d=f=>{const m=a(f);if(m)return m;const g=Qw(f,r);return l(f,g),g};return u=c,(...f)=>u(Zw(...f))},Jw=[],ht=e=>{const n=r=>r[e]||Jw;return n.isThemeGetter=!0,n},My=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Dy=/^\((?:(\w[\w-]*):)?(.+)\)$/i,eC=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,tC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,nC=/\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$/,iC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rC=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xi=e=>eC.test(e),we=e=>!!e&&!Number.isNaN(Number(e)),Wi=e=>!!e&&Number.isInteger(Number(e)),df=e=>e.endsWith("%")&&we(e.slice(0,-1)),hi=e=>tC.test(e),zy=()=>!0,oC=e=>nC.test(e)&&!iC.test(e),bh=()=>!1,lC=e=>rC.test(e),sC=e=>aC.test(e),uC=e=>!pe(e)&&!me(e),cC=e=>tr(e,Uy,bh),pe=e=>My.test(e),xr=e=>tr(e,Hy,oC),yb=e=>tr(e,bC,we),dC=e=>tr(e,Vy,zy),fC=e=>tr(e,jy,bh),_b=e=>tr(e,Iy,bh),hC=e=>tr(e,Py,sC),zs=e=>tr(e,By,lC),me=e=>Dy.test(e),Yo=e=>Pr(e,Hy),pC=e=>Pr(e,jy),Sb=e=>Pr(e,Iy),mC=e=>Pr(e,Uy),gC=e=>Pr(e,Py),Is=e=>Pr(e,By,!0),vC=e=>Pr(e,Vy,!0),tr=(e,n,r)=>{const a=My.exec(e);return a?a[1]?n(a[1]):r(a[2]):!1},Pr=(e,n,r=!1)=>{const a=Dy.exec(e);return a?a[1]?n(a[1]):r:!1},Iy=e=>e==="position"||e==="percentage",Py=e=>e==="image"||e==="url",Uy=e=>e==="length"||e==="size"||e==="bg-size",Hy=e=>e==="length",bC=e=>e==="number",jy=e=>e==="family-name",Vy=e=>e==="number"||e==="weight",By=e=>e==="shadow",yC=()=>{const e=ht("color"),n=ht("font"),r=ht("text"),a=ht("font-weight"),l=ht("tracking"),u=ht("leading"),c=ht("breakpoint"),d=ht("container"),f=ht("spacing"),m=ht("radius"),g=ht("shadow"),v=ht("inset-shadow"),b=ht("text-shadow"),_=ht("drop-shadow"),S=ht("blur"),E=ht("perspective"),L=ht("aspect"),w=ht("ease"),C=ht("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...R(),me,pe],P=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],I=()=>[me,pe,f],K=()=>[Xi,"full","auto",...I()],Z=()=>[Wi,"none","subgrid",me,pe],F=()=>["auto",{span:["full",Wi,me,pe]},Wi,me,pe],V=()=>[Wi,"auto",me,pe],te=()=>["auto","min","max","fr",me,pe],J=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],W=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...I()],Y=()=>[Xi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],re=()=>[Xi,"screen","full","dvw","lvw","svw","min","max","fit",...I()],ce=()=>[Xi,"screen","full","lh","dvh","lvh","svh","min","max","fit",...I()],ie=()=>[e,me,pe],N=()=>[...R(),Sb,_b,{position:[me,pe]}],q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ae=()=>["auto","cover","contain",mC,cC,{size:[me,pe]}],oe=()=>[df,Yo,xr],ue=()=>["","none","full",m,me,pe],le=()=>["",we,Yo,xr],de=()=>["solid","dashed","dotted","double"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],he=()=>[we,df,Sb,_b],Be=()=>["","none",S,me,pe],Ge=()=>["none",we,me,pe],et=()=>["none",we,me,pe],Ye=()=>[we,me,pe],xt=()=>[Xi,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[hi],breakpoint:[hi],color:[zy],container:[hi],"drop-shadow":[hi],ease:["in","out","in-out"],font:[uC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[hi],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[hi],shadow:[hi],spacing:["px",we],text:[hi],"text-shadow":[hi],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xi,pe,me,L]}],container:["container"],columns:[{columns:[we,pe,me,d]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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:T()}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[Wi,"auto",me,pe]}],basis:[{basis:[Xi,"full","auto",d,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[we,Xi,"auto","initial","none",pe]}],grow:[{grow:["",we,me,pe]}],shrink:[{shrink:["",we,me,pe]}],order:[{order:[Wi,"first","last","none",me,pe]}],"grid-cols":[{"grid-cols":Z()}],"col-start-end":[{col:F()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":Z()}],"row-start-end":[{row:F()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":te()}],"auto-rows":[{"auto-rows":te()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...J(),"normal"]}],"justify-items":[{"justify-items":[...W(),"normal"]}],"justify-self":[{"justify-self":["auto",...W()]}],"align-content":[{content:["normal",...J()]}],"align-items":[{items:[...W(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...W(),{baseline:["","last"]}]}],"place-content":[{"place-content":J()}],"place-items":[{"place-items":[...W(),"baseline"]}],"place-self":[{"place-self":["auto",...W()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pbs:[{pbs:I()}],pbe:[{pbe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...re()]}],"min-inline-size":[{"min-inline":["auto",...re()]}],"max-inline-size":[{"max-inline":["none",...re()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[d,"screen",...Y()]}],"min-w":[{"min-w":[d,"screen","none",...Y()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[c]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",r,Yo,xr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,vC,dC]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",df,pe]}],"font-family":[{font:[pC,fC,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:[l,me,pe]}],"line-clamp":[{"line-clamp":[we,"none",me,yb]}],leading:[{leading:[u,...I()]}],"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:ie()}],"text-color":[{text:ie()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[we,"from-font","auto",me,xr]}],"text-decoration-color":[{decoration:ie()}],"underline-offset":[{"underline-offset":[we,"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:I()}],"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:N()}],"bg-repeat":[{bg:q()}],"bg-size":[{bg:ae()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Wi,me,pe],radial:["",me,pe],conic:[Wi,me,pe]},gC,hC]}],"bg-color":[{bg:ie()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:ie()}],"gradient-via":[{via:ie()}],"gradient-to":[{to:ie()}],rounded:[{rounded:ue()}],"rounded-s":[{"rounded-s":ue()}],"rounded-e":[{"rounded-e":ue()}],"rounded-t":[{"rounded-t":ue()}],"rounded-r":[{"rounded-r":ue()}],"rounded-b":[{"rounded-b":ue()}],"rounded-l":[{"rounded-l":ue()}],"rounded-ss":[{"rounded-ss":ue()}],"rounded-se":[{"rounded-se":ue()}],"rounded-ee":[{"rounded-ee":ue()}],"rounded-es":[{"rounded-es":ue()}],"rounded-tl":[{"rounded-tl":ue()}],"rounded-tr":[{"rounded-tr":ue()}],"rounded-br":[{"rounded-br":ue()}],"rounded-bl":[{"rounded-bl":ue()}],"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:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:ie()}],"border-color-x":[{"border-x":ie()}],"border-color-y":[{"border-y":ie()}],"border-color-s":[{"border-s":ie()}],"border-color-e":[{"border-e":ie()}],"border-color-bs":[{"border-bs":ie()}],"border-color-be":[{"border-be":ie()}],"border-color-t":[{"border-t":ie()}],"border-color-r":[{"border-r":ie()}],"border-color-b":[{"border-b":ie()}],"border-color-l":[{"border-l":ie()}],"divide-color":[{divide:ie()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[we,me,pe]}],"outline-w":[{outline:["",we,Yo,xr]}],"outline-color":[{outline:ie()}],shadow:[{shadow:["","none",g,Is,zs]}],"shadow-color":[{shadow:ie()}],"inset-shadow":[{"inset-shadow":["none",v,Is,zs]}],"inset-shadow-color":[{"inset-shadow":ie()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ie()}],"ring-offset-w":[{"ring-offset":[we,xr]}],"ring-offset-color":[{"ring-offset":ie()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":ie()}],"text-shadow":[{"text-shadow":["none",b,Is,zs]}],"text-shadow-color":[{"text-shadow":ie()}],opacity:[{opacity:[we,me,pe]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ce()}],"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":[we]}],"mask-image-linear-from-pos":[{"mask-linear-from":he()}],"mask-image-linear-to-pos":[{"mask-linear-to":he()}],"mask-image-linear-from-color":[{"mask-linear-from":ie()}],"mask-image-linear-to-color":[{"mask-linear-to":ie()}],"mask-image-t-from-pos":[{"mask-t-from":he()}],"mask-image-t-to-pos":[{"mask-t-to":he()}],"mask-image-t-from-color":[{"mask-t-from":ie()}],"mask-image-t-to-color":[{"mask-t-to":ie()}],"mask-image-r-from-pos":[{"mask-r-from":he()}],"mask-image-r-to-pos":[{"mask-r-to":he()}],"mask-image-r-from-color":[{"mask-r-from":ie()}],"mask-image-r-to-color":[{"mask-r-to":ie()}],"mask-image-b-from-pos":[{"mask-b-from":he()}],"mask-image-b-to-pos":[{"mask-b-to":he()}],"mask-image-b-from-color":[{"mask-b-from":ie()}],"mask-image-b-to-color":[{"mask-b-to":ie()}],"mask-image-l-from-pos":[{"mask-l-from":he()}],"mask-image-l-to-pos":[{"mask-l-to":he()}],"mask-image-l-from-color":[{"mask-l-from":ie()}],"mask-image-l-to-color":[{"mask-l-to":ie()}],"mask-image-x-from-pos":[{"mask-x-from":he()}],"mask-image-x-to-pos":[{"mask-x-to":he()}],"mask-image-x-from-color":[{"mask-x-from":ie()}],"mask-image-x-to-color":[{"mask-x-to":ie()}],"mask-image-y-from-pos":[{"mask-y-from":he()}],"mask-image-y-to-pos":[{"mask-y-to":he()}],"mask-image-y-from-color":[{"mask-y-from":ie()}],"mask-image-y-to-color":[{"mask-y-to":ie()}],"mask-image-radial":[{"mask-radial":[me,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":he()}],"mask-image-radial-to-pos":[{"mask-radial-to":he()}],"mask-image-radial-from-color":[{"mask-radial-from":ie()}],"mask-image-radial-to-color":[{"mask-radial-to":ie()}],"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":R()}],"mask-image-conic-pos":[{"mask-conic":[we]}],"mask-image-conic-from-pos":[{"mask-conic-from":he()}],"mask-image-conic-to-pos":[{"mask-conic-to":he()}],"mask-image-conic-from-color":[{"mask-conic-from":ie()}],"mask-image-conic-to-color":[{"mask-conic-to":ie()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:N()}],"mask-repeat":[{mask:q()}],"mask-size":[{mask:ae()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,pe]}],filter:[{filter:["","none",me,pe]}],blur:[{blur:Be()}],brightness:[{brightness:[we,me,pe]}],contrast:[{contrast:[we,me,pe]}],"drop-shadow":[{"drop-shadow":["","none",_,Is,zs]}],"drop-shadow-color":[{"drop-shadow":ie()}],grayscale:[{grayscale:["",we,me,pe]}],"hue-rotate":[{"hue-rotate":[we,me,pe]}],invert:[{invert:["",we,me,pe]}],saturate:[{saturate:[we,me,pe]}],sepia:[{sepia:["",we,me,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",me,pe]}],"backdrop-blur":[{"backdrop-blur":Be()}],"backdrop-brightness":[{"backdrop-brightness":[we,me,pe]}],"backdrop-contrast":[{"backdrop-contrast":[we,me,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",we,me,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[we,me,pe]}],"backdrop-invert":[{"backdrop-invert":["",we,me,pe]}],"backdrop-opacity":[{"backdrop-opacity":[we,me,pe]}],"backdrop-saturate":[{"backdrop-saturate":[we,me,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",we,me,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"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:[we,"initial",me,pe]}],ease:[{ease:["linear","initial",w,me,pe]}],delay:[{delay:[we,me,pe]}],animate:[{animate:["none",C,me,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,me,pe]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:Ge()}],"rotate-x":[{"rotate-x":Ge()}],"rotate-y":[{"rotate-y":Ge()}],"rotate-z":[{"rotate-z":Ge()}],scale:[{scale:et()}],"scale-x":[{"scale-x":et()}],"scale-y":[{"scale-y":et()}],"scale-z":[{"scale-z":et()}],"scale-3d":["scale-3d"],skew:[{skew:Ye()}],"skew-x":[{"skew-x":Ye()}],"skew-y":[{"skew-y":Ye()}],transform:[{transform:[me,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:xt()}],"translate-x":[{"translate-x":xt()}],"translate-y":[{"translate-y":xt()}],"translate-z":[{"translate-z":xt()}],"translate-none":["translate-none"],accent:[{accent:ie()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ie()}],"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":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mbs":[{"scroll-mbs":I()}],"scroll-mbe":[{"scroll-mbe":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pbs":[{"scroll-pbs":I()}],"scroll-pbe":[{"scroll-pbe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",...ie()]}],"stroke-w":[{stroke:[we,Yo,xr,yb]}],stroke:[{stroke:["none",...ie()]}],"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"]}},_C=Kw(yC);function gt(...e){return _C(ky(e))}const SC=Ty("group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Nn({className:e,variant:n="default",size:r="default",...a}){return M.jsx(Nw,{"data-slot":"button",className:gt(SC({variant:n,size:r,className:e})),...a})}const xC=Ty("group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current"}},defaultVariants:{variant:"default"}});function rl({className:e,variant:n,...r}){return M.jsx("div",{"data-slot":"alert",role:"alert",className:gt(xC({variant:n}),e),...r})}function al({className:e,...n}){return M.jsx("div",{"data-slot":"alert-title",className:gt("font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground",e),...n})}function ol({className:e,...n}){return M.jsx("div",{"data-slot":"alert-description",className:gt("text-sm text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),...n})}const EC=[];function yh(e){z.useEffect(e,EC)}const Fo=0;class _h{static create(){return new _h}currentId=Fo;start(n,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Fo,r()},n)}isStarted(){return this.currentId!==Fo}clear=()=>{this.currentId!==Fo&&(clearTimeout(this.currentId),this.currentId=Fo)};disposeEffect=()=>this.clear}function fu(){const e=Nr(_h.create).current;return yh(e.disposeEffect),e}const Gy=z.createContext(void 0);function Mu(){const e=z.useContext(Gy);if(e===void 0)throw new Error(Ir(53));return e}let hu=(function(e){return e.scrollAreaCornerHeight="--scroll-area-corner-height",e.scrollAreaCornerWidth="--scroll-area-corner-width",e})({});const Ps=500,xb=16;function gn(e,n,r){if(!e)return 0;const a=getComputedStyle(e),l=r==="x"?"Inline":"Block";return r==="x"&&n==="margin"?parseFloat(a[`${n}InlineStart`])*2:parseFloat(a[`${n}${l}Start`])+parseFloat(a[`${n}${l}End`])}let wC=(function(e){return e.orientation="data-orientation",e.hovering="data-hovering",e.scrolling="data-scrolling",e.hasOverflowX="data-has-overflow-x",e.hasOverflowY="data-has-overflow-y",e.overflowXStart="data-overflow-x-start",e.overflowXEnd="data-overflow-x-end",e.overflowYStart="data-overflow-y-start",e.overflowYEnd="data-overflow-y-end",e})({});const Us="base-ui-disable-scrollbar",$y={className:Us,getElement(e){return M.jsx("style",{nonce:e,href:Us,precedence:"base-ui:low",children:`.${Us}{scrollbar-width:none}.${Us}::-webkit-scrollbar{display:none}`})}};let Eb=0;function CC(e,n="mui"){const[r,a]=z.useState(e),l=e||r;return z.useEffect(()=>{r==null&&(Eb+=1,a(`${n}-${Eb}`))},[r,n]),l}const wb=lw.useId;function AC(e,n){if(wb!==void 0){const r=wb();return`${n}-${r}`}return CC(e,n)}function pu(e){return AC(e,"base-ui")}let La=(function(e){return e.scrolling="data-scrolling",e.hasOverflowX="data-has-overflow-x",e.hasOverflowY="data-has-overflow-y",e.overflowXStart="data-overflow-x-start",e.overflowXEnd="data-overflow-x-end",e.overflowYStart="data-overflow-y-start",e.overflowYEnd="data-overflow-y-end",e})({});const Sh={hasOverflowX:e=>e?{[La.hasOverflowX]:""}:null,hasOverflowY:e=>e?{[La.hasOverflowY]:""}:null,overflowXStart:e=>e?{[La.overflowXStart]:""}:null,overflowXEnd:e=>e?{[La.overflowXEnd]:""}:null,overflowYStart:e=>e?{[La.overflowYStart]:""}:null,overflowYEnd:e=>e?{[La.overflowYEnd]:""}:null,cornerHidden:()=>null},Du=typeof navigator<"u",ff=RC(),kC=OC(),TC=NC(),LC=typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter:none");ff.platform==="MacIntel"&&ff.maxTouchPoints>1||/iP(hone|ad|od)|iOS/.test(ff.platform);Du&&kC.toLowerCase().startsWith("mac")&&navigator.maxTouchPoints;TC.includes("jsdom/");function RC(){if(!Du)return{platform:"",maxTouchPoints:-1};const e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??-1}}function NC(){if(!Du)return"";const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:n,version:r})=>`${n}/${r}`).join(" "):navigator.userAgent}function OC(){if(!Du)return"";const e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??""}function MC(e,n){if(!e||!n)return!1;const r=n.getRootNode?.();if(e.contains(n))return!0;if(r&&iw(r)){let a=n;for(;a;){if(e===a)return!0;a=a.parentNode||a.host}}return!1}function DC(e){e.preventDefault(),e.stopPropagation()}const zC=z.createContext(void 0),IC={disableStyleElements:!1};function PC(){return z.useContext(zC)??IC}const UC={x:0,y:0},Cb={width:0,height:0},HC={xStart:!1,xEnd:!1,yStart:!1,yEnd:!1},jC={x:!0,y:!0,corner:!0},VC=z.forwardRef(function(n,r){const{render:a,className:l,overflowEdgeThreshold:u,...c}=n,d=BC(u),f=pu(),m=fu(),g=fu(),{nonce:v,disableStyleElements:b}=PC(),[_,S]=z.useState(!1),[E,L]=z.useState(!1),[w,C]=z.useState(!1),[A,R]=z.useState(!1),[T,P]=z.useState(!1),[H,I]=z.useState(Cb),[K,Z]=z.useState(Cb),[F,V]=z.useState(HC),[te,J]=z.useState(jC),W=z.useRef(null),D=z.useRef(null),Y=z.useRef(null),re=z.useRef(null),ce=z.useRef(null),ie=z.useRef(null),N=z.useRef(null),q=z.useRef(!1),ae=z.useRef(0),oe=z.useRef(0),ue=z.useRef(0),le=z.useRef(0),de=z.useRef("vertical"),Ce=z.useRef(UC),he=Lt(ze=>{const Ht=ze.x-Ce.current.x,_n=ze.y-Ce.current.y;Ce.current=ze,_n!==0&&(C(!0),m.start(Ps,()=>{C(!1)})),Ht!==0&&(L(!0),g.start(Ps,()=>{L(!1)}))}),Be=Lt(ze=>{ze.button===0&&(q.current=!0,ae.current=ze.clientY,oe.current=ze.clientX,de.current=ze.currentTarget.getAttribute(wC.orientation),D.current&&(ue.current=D.current.scrollTop,le.current=D.current.scrollLeft),ce.current&&de.current==="vertical"&&ce.current.setPointerCapture(ze.pointerId),ie.current&&de.current==="horizontal"&&ie.current.setPointerCapture(ze.pointerId))}),Ge=Lt(ze=>{if(!q.current)return;const Ht=ze.clientY-ae.current,_n=ze.clientX-oe.current;if(D.current){const _i=D.current.scrollHeight,nr=D.current.clientHeight,Et=D.current.scrollWidth,ir=D.current.clientWidth;if(ce.current&&Y.current&&de.current==="vertical"){const Yn=gn(Y.current,"padding","y"),Si=gn(ce.current,"margin","y"),Dn=ce.current.offsetHeight,Fn=Y.current.offsetHeight-Dn-Yn-Si,zn=Ht/Fn;D.current.scrollTop=ue.current+zn*(_i-nr),ze.preventDefault(),C(!0),m.start(Ps,()=>{C(!1)})}if(ie.current&&re.current&&de.current==="horizontal"){const Yn=gn(re.current,"padding","x"),Si=gn(ie.current,"margin","x"),Dn=ie.current.offsetWidth,Fn=re.current.offsetWidth-Dn-Yn-Si,zn=_n/Fn;D.current.scrollLeft=le.current+zn*(Et-ir),ze.preventDefault(),L(!0),g.start(Ps,()=>{L(!1)})}}}),et=Lt(ze=>{q.current=!1,ce.current&&de.current==="vertical"&&ce.current.releasePointerCapture(ze.pointerId),ie.current&&de.current==="horizontal"&&ie.current.releasePointerCapture(ze.pointerId)});function Ye(ze){R(ze.pointerType==="touch")}function xt(ze){if(Ye(ze),ze.pointerType!=="touch"){const Ht=MC(W.current,ze.target);S(Ht)}}const bn=z.useMemo(()=>({scrolling:E||w,hasOverflowX:!te.x,hasOverflowY:!te.y,overflowXStart:F.xStart,overflowXEnd:F.xEnd,overflowYStart:F.yStart,overflowYEnd:F.yEnd,cornerHidden:te.corner}),[E,w,te.x,te.y,te.corner,F]),It={role:"presentation",onPointerEnter:xt,onPointerMove:xt,onPointerDown:Ye,onPointerLeave(){S(!1)},style:{position:"relative",[hu.scrollAreaCornerHeight]:`${H.height}px`,[hu.scrollAreaCornerWidth]:`${H.width}px`}},yn=Mn("div",n,{state:bn,ref:[r,W],props:[It,c],stateAttributesMapping:Sh}),Vr=z.useMemo(()=>({handlePointerDown:Be,handlePointerMove:Ge,handlePointerUp:et,handleScroll:he,cornerSize:H,setCornerSize:I,thumbSize:K,setThumbSize:Z,hasMeasuredScrollbar:T,setHasMeasuredScrollbar:P,touchModality:A,cornerRef:N,scrollingX:E,setScrollingX:L,scrollingY:w,setScrollingY:C,hovering:_,setHovering:S,viewportRef:D,rootRef:W,scrollbarYRef:Y,scrollbarXRef:re,thumbYRef:ce,thumbXRef:ie,rootId:f,hiddenState:te,setHiddenState:J,overflowEdges:F,setOverflowEdges:V,viewportState:bn,overflowEdgeThreshold:d}),[Be,Ge,et,he,H,K,T,A,E,L,w,C,_,S,f,te,F,bn,d]);return M.jsxs(Gy.Provider,{value:Vr,children:[!b&&$y.getElement(v),yn]})});function BC(e){if(typeof e=="number"){const n=Math.max(0,e);return{xStart:n,xEnd:n,yStart:n,yEnd:n}}return{xStart:Math.max(0,e?.xStart||0),xEnd:Math.max(0,e?.xEnd||0),yStart:Math.max(0,e?.yStart||0),yEnd:Math.max(0,e?.yEnd||0)}}const GC=z.createContext(void 0),$C=z.createContext(void 0);function xh(){return z.useContext($C)?.direction??"ltr"}function za(e,n=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(e,r))}function qC(e,n){if(typeof IntersectionObserver>"u")return()=>{};const r=new IntersectionObserver(a=>{a.forEach(l=>{l.intersectionRatio>0&&(n(),r.disconnect())})});return r.observe(e),()=>{r.disconnect()}}let Ki=(function(e){return e.scrollAreaOverflowXStart="--scroll-area-overflow-x-start",e.scrollAreaOverflowXEnd="--scroll-area-overflow-x-end",e.scrollAreaOverflowYStart="--scroll-area-overflow-y-start",e.scrollAreaOverflowYEnd="--scroll-area-overflow-y-end",e})({});const Ab=1;function kb(e,n){if(n<=0)return 0;const r=za(e,0,n),a=r,l=n-r,u=a<=Ab,c=l<=Ab;return u&&c?a<=l?0:n:u?0:c?n:r}let Tb=!1;const Lb=typeof ResizeObserver<"u";function YC(){Tb||LC||(typeof CSS<"u"&&"registerProperty"in CSS&&[Ki.scrollAreaOverflowXStart,Ki.scrollAreaOverflowXEnd,Ki.scrollAreaOverflowYStart,Ki.scrollAreaOverflowYEnd].forEach(e=>{try{CSS.registerProperty({name:e,syntax:"<length>",inherits:!1,initialValue:"0px"})}catch{}}),Tb=!0)}const FC=z.forwardRef(function(n,r){const{render:a,className:l,...u}=n,{viewportRef:c,scrollbarYRef:d,scrollbarXRef:f,thumbYRef:m,thumbXRef:g,cornerRef:v,cornerSize:b,setCornerSize:_,setThumbSize:S,rootId:E,setHiddenState:L,hiddenState:w,setHasMeasuredScrollbar:C,handleScroll:A,setHovering:R,setOverflowEdges:T,overflowEdges:P,overflowEdgeThreshold:H,scrollingX:I,scrollingY:K}=Mu(),Z=xh(),F=z.useRef(!0),V=z.useRef([NaN,NaN,NaN,NaN]),te=fu(),J=fu(),W=Lt(()=>{const N=c.current,q=d.current,ae=f.current,oe=m.current,ue=g.current,le=v.current;if(!N)return;const de=N.scrollHeight,Ce=N.scrollWidth,he=N.clientHeight,Be=N.clientWidth,Ge=N.scrollTop,et=N.scrollLeft,Ye=V.current,xt=Number.isNaN(Ye[0]);if(Ye[0]=he,Ye[1]=de,Ye[2]=Be,Ye[3]=Ce,xt&&C(!0),de===0||Ce===0)return;const bn=XC(N),It=bn.y,yn=bn.x,Vr=Be/Ce,ze=he/de,Ht=Math.max(0,Ce-Be),_n=Math.max(0,de-he);let _i=0,nr=0;if(!yn){let $e=0;Z==="rtl"?$e=za(-et,0,Ht):$e=za(et,0,Ht),_i=kb($e,Ht),nr=Ht-_i}const Et=It?0:za(Ge,0,_n),ir=It?0:kb(Et,_n),Yn=It?0:_n-ir,Si=yn?0:Be,Dn=It?0:he;let Fn=0,zn=0;!yn&&!It&&(Fn=q?.offsetWidth||0,zn=ae?.offsetHeight||0);const yl=b.width===0&&b.height===0,$u=yl?Fn:0,rr=yl?zn:0,Rt=gn(ae,"padding","x"),Sn=gn(q,"padding","y"),Nt=gn(ue,"margin","x"),_l=gn(oe,"margin","y"),Sl=Si-Rt-Nt,xl=Dn-Sn-_l,Br=ae?Math.min(ae.offsetWidth-$u,Sl):Sl,Gr=q?Math.min(q.offsetHeight-rr,xl):xl,xi=Math.max(xb,Br*Vr),xn=Math.max(xb,Gr*ze);if(S($e=>$e.height===xn&&$e.width===xi?$e:{width:xi,height:xn}),q&&oe){const $e=q.offsetHeight-xn-Sn-_l,In=de-he,Ei=In===0?0:Ge/In,Xn=Math.min($e,Math.max(0,Ei*$e));oe.style.transform=`translate3d(0,${Xn}px,0)`}if(ae&&ue){const $e=ae.offsetWidth-xi-Rt-Nt,In=Ce-Be,Ei=In===0?0:et/In,Xn=Z==="rtl"?za(Ei*$e,-$e,0):za(Ei*$e,0,$e);ue.style.transform=`translate3d(${Xn}px,0,0)`}const $r=[[Ki.scrollAreaOverflowXStart,_i],[Ki.scrollAreaOverflowXEnd,nr],[Ki.scrollAreaOverflowYStart,ir],[Ki.scrollAreaOverflowYEnd,Yn]];for(const[$e,In]of $r)N.style.setProperty($e,`${In}px`);le&&(yn||It?_({width:0,height:0}):!yn&&!It&&_({width:Fn,height:zn})),L($e=>WC($e,bn));const En={xStart:!yn&&_i>H.xStart,xEnd:!yn&&nr>H.xEnd,yStart:!It&&ir>H.yStart,yEnd:!It&&Yn>H.yEnd};T($e=>$e.xStart===En.xStart&&$e.xEnd===En.xEnd&&$e.yStart===En.yStart&&$e.yEnd===En.yEnd?$e:En)});Ze(()=>{if(c.current&&(YC(),!Lb))return qC(c.current,()=>{W()})},[W,c]),Ze(()=>{queueMicrotask(W)},[W,w,Z]),Ze(()=>{c.current?.matches(":hover")&&R(!0)},[c,R]),z.useEffect(()=>{const N=c.current;if(!Lb||!N)return;let q=!1;const ae=new ResizeObserver(()=>{if(!q){q=!0;const oe=V.current;if(oe[0]===N.clientHeight&&oe[1]===N.scrollHeight&&oe[2]===N.clientWidth&&oe[3]===N.scrollWidth)return}W()});return ae.observe(N),J.start(0,()=>{const oe=N.getAnimations({subtree:!0});oe.length!==0&&Promise.allSettled(oe.map(ue=>ue.finished)).then(W).catch(()=>{})}),()=>{ae.disconnect(),J.clear()}},[W,c,J]);function D(){F.current=!1}const Y={role:"presentation",...E&&{"data-id":`${E}-viewport`},tabIndex:w.x&&w.y?-1:0,className:$y.className,style:{overflow:"scroll"},onScroll(){c.current&&(W(),F.current||A({x:c.current.scrollLeft,y:c.current.scrollTop}),te.start(100,()=>{F.current=!0}))},onWheel:D,onTouchMove:D,onPointerMove:D,onPointerEnter:D,onKeyDown:D},re=z.useMemo(()=>({scrolling:I||K,hasOverflowX:!w.x,hasOverflowY:!w.y,overflowXStart:P.xStart,overflowXEnd:P.xEnd,overflowYStart:P.yStart,overflowYEnd:P.yEnd,cornerHidden:w.corner}),[I,K,w.x,w.y,w.corner,P]),ce=Mn("div",n,{ref:[r,c],state:re,props:[Y,u],stateAttributesMapping:Sh}),ie=z.useMemo(()=>({computeThumbPosition:W}),[W]);return M.jsx(GC.Provider,{value:ie,children:ce})});function XC(e){const n=e.clientHeight>=e.scrollHeight,r=e.clientWidth>=e.scrollWidth;return{y:n,x:r,corner:n||r}}function WC(e,n){return e.y===n.y&&e.x===n.x&&e.corner===n.corner?e:n}const qy=z.createContext(void 0);function QC(){const e=z.useContext(qy);if(e===void 0)throw new Error(Ir(54));return e}let mu=(function(e){return e.scrollAreaThumbHeight="--scroll-area-thumb-height",e.scrollAreaThumbWidth="--scroll-area-thumb-width",e})({});const ZC=z.forwardRef(function(n,r){const{render:a,className:l,orientation:u="vertical",keepMounted:c=!1,...d}=n,{hovering:f,scrollingX:m,scrollingY:g,hiddenState:v,overflowEdges:b,scrollbarYRef:_,scrollbarXRef:S,viewportRef:E,thumbYRef:L,thumbXRef:w,handlePointerDown:C,handlePointerUp:A,rootId:R,thumbSize:T,hasMeasuredScrollbar:P}=Mu(),H={hovering:f,scrolling:{horizontal:m,vertical:g}[u],orientation:u,hasOverflowX:!v.x,hasOverflowY:!v.y,overflowXStart:b.xStart,overflowXEnd:b.xEnd,overflowYStart:b.yStart,overflowYEnd:b.yEnd,cornerHidden:v.corner},I=xh(),K=!P&&!c;z.useEffect(()=>{const W=E.current,D=u==="vertical"?_.current:S.current;if(!D)return;function Y(re){if(!(!W||!D||re.ctrlKey)){if(re.preventDefault(),u==="vertical"){if(W.scrollTop===0&&re.deltaY<0)return}else if(W.scrollLeft===0&&re.deltaX<0)return;if(u==="vertical"){if(W.scrollTop===W.scrollHeight-W.clientHeight&&re.deltaY>0)return}else if(W.scrollLeft===W.scrollWidth-W.clientWidth&&re.deltaX>0)return;u==="vertical"?W.scrollTop+=re.deltaY:W.scrollLeft+=re.deltaX}}return D.addEventListener("wheel",Y,{passive:!1}),()=>{D.removeEventListener("wheel",Y)}},[u,S,_,E]);const Z={...R&&{"data-id":`${R}-scrollbar`},onPointerDown(W){if(W.button===0&&W.currentTarget===W.target&&E.current){if(L.current&&_.current&&u==="vertical"){const D=gn(L.current,"margin","y"),Y=gn(_.current,"padding","y"),re=L.current.offsetHeight,ce=_.current.getBoundingClientRect(),ie=W.clientY-ce.top-re/2-Y+D/2,N=E.current.scrollHeight,q=E.current.clientHeight,ae=_.current.offsetHeight-re-Y-D,ue=ie/ae*(N-q);E.current.scrollTop=ue}if(w.current&&S.current&&u==="horizontal"){const D=gn(w.current,"margin","x"),Y=gn(S.current,"padding","x"),re=w.current.offsetWidth,ce=S.current.getBoundingClientRect(),ie=W.clientX-ce.left-re/2-Y+D/2,N=E.current.scrollWidth,q=E.current.clientWidth,ae=S.current.offsetWidth-re-Y-D,oe=ie/ae;let ue;I==="rtl"?(ue=(1-oe)*(N-q),E.current.scrollLeft<=0&&(ue=-ue)):ue=oe*(N-q),E.current.scrollLeft=ue}C(W)}},onPointerUp:A,style:{position:"absolute",touchAction:"none",WebkitUserSelect:"none",userSelect:"none",visibility:K?"hidden":void 0,...u==="vertical"&&{top:0,bottom:`var(${hu.scrollAreaCornerHeight})`,insetInlineEnd:0,[mu.scrollAreaThumbHeight]:`${T.height}px`},...u==="horizontal"&&{insetInlineStart:0,insetInlineEnd:`var(${hu.scrollAreaCornerWidth})`,bottom:0,[mu.scrollAreaThumbWidth]:`${T.width}px`}}},F=Mn("div",n,{ref:[r,u==="vertical"?_:S],state:H,props:[Z,d],stateAttributesMapping:Sh}),V=z.useMemo(()=>({orientation:u}),[u]),te=u==="vertical"?v.y:v.x;return c||!te?M.jsx(qy.Provider,{value:V,children:F}):null}),KC=z.forwardRef(function(n,r){const{render:a,className:l,...u}=n,{thumbYRef:c,thumbXRef:d,handlePointerDown:f,handlePointerMove:m,handlePointerUp:g,setScrollingX:v,setScrollingY:b,hasMeasuredScrollbar:_}=Mu(),{orientation:S}=QC();return Mn("div",n,{ref:[r,S==="vertical"?c:d],state:{orientation:S},props:[{onPointerDown:f,onPointerMove:m,onPointerUp(w){S==="vertical"&&b(!1),S==="horizontal"&&v(!1),g(w)},style:{visibility:_?void 0:"hidden",...S==="vertical"&&{height:`var(${mu.scrollAreaThumbHeight})`},...S==="horizontal"&&{width:`var(${mu.scrollAreaThumbWidth})`}}},u]})}),JC=z.forwardRef(function(n,r){const{render:a,className:l,...u}=n,{cornerRef:c,cornerSize:d,hiddenState:f}=Mu(),m=Mn("div",n,{ref:[r,c],props:[{style:{position:"absolute",bottom:0,insetInlineEnd:0,width:d.width,height:d.height}},u]});return f.corner?null:m});function Eh({className:e,children:n,...r}){return M.jsxs(VC,{"data-slot":"scroll-area",className:gt("relative",e),...r,children:[M.jsx(FC,{"data-slot":"scroll-area-viewport",className:"size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1",children:n}),M.jsx(eA,{}),M.jsx(JC,{})]})}function eA({className:e,orientation:n="vertical",...r}){return M.jsx(ZC,{"data-slot":"scroll-area-scrollbar","data-orientation":n,orientation:n,className:gt("flex touch-none p-px transition-colors select-none",n==="vertical"&&"h-full w-2.5 border-l border-l-transparent",n==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...r,children:M.jsx(KC,{"data-slot":"scroll-area-thumb",className:"relative flex-1 rounded-full bg-border"})})}function $f({className:e,...n}){return M.jsx("div",{"data-slot":"skeleton",className:gt("animate-pulse rounded-md bg-muted",e),...n})}async function Yy(e,n){const r=await fetch(e);if(!r.ok)throw new Error(`${n.errorPrefix} (${r.status})`);return await r.json()}function Fy(e){const[n,r]=z.useState(null),[a,l]=z.useState(null),[u,c]=z.useState(!0),d=z.useCallback(async()=>{c(!0);try{const f=await e();r(f),l(null)}catch(f){const m=f instanceof Error?f.message:String(f);l(m)}finally{c(!1)}},[e]);return z.useEffect(()=>{d()},[d]),{data:n,error:a,isLoading:u,reload:d}}function tA(){const e=z.useCallback(()=>Yy("/api/debug-state",{errorPrefix:"Failed to load debug state"}),[]),{data:n,error:r,isLoading:a}=Fy(e);return{debugState:n,error:r,isLoading:a}}function nA(){const{debugState:e,error:n,isLoading:r}=tA();return r?M.jsx("div",{className:"h-full p-4",children:M.jsx($f,{className:"h-full w-full"})}):n?M.jsxs(rl,{variant:"destructive",children:[M.jsx(uu,{}),M.jsx(al,{children:"Debug state failed to load."}),M.jsx(ol,{children:n})]}):M.jsx(Eh,{className:"h-full",children:M.jsx("pre",{className:"min-w-full whitespace-pre-wrap p-4 font-mono text-xs leading-5 text-foreground",children:JSON.stringify(e,null,2)})})}function iA(e,n){const r=getComputedStyle(e),a=parseFloat(r.fontSize);return n*a}function rA(e,n){const r=getComputedStyle(e.ownerDocument.body),a=parseFloat(r.fontSize);return n*a}function aA(e){return e/100*window.innerHeight}function oA(e){return e/100*window.innerWidth}function lA(e){switch(typeof e){case"number":return[e,"px"];case"string":{const n=parseFloat(e);return e.endsWith("%")?[n,"%"]:e.endsWith("px")?[n,"px"]:e.endsWith("rem")?[n,"rem"]:e.endsWith("em")?[n,"em"]:e.endsWith("vh")?[n,"vh"]:e.endsWith("vw")?[n,"vw"]:[n,"%"]}}}function Zo({groupSize:e,panelElement:n,styleProp:r}){let a;const[l,u]=lA(r);switch(u){case"%":{a=l/100*e;break}case"px":{a=l;break}case"rem":{a=rA(n,l);break}case"em":{a=iA(n,l);break}case"vh":{a=aA(l);break}case"vw":{a=oA(l);break}}return a}function Ft(e){return parseFloat(e.toFixed(3))}function Fa({group:e}){const{orientation:n,panels:r}=e;return r.reduce((a,l)=>(a+=n==="horizontal"?l.element.offsetWidth:l.element.offsetHeight,a),0)}function qf(e){const{panels:n}=e,r=Fa({group:e});return r===0?n.map(a=>({groupResizeBehavior:a.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:a.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:a.panelConstraints.disabled,minSize:0,maxSize:100,panelId:a.id})):n.map(a=>{const{element:l,panelConstraints:u}=a;let c=0;if(u.collapsedSize!==void 0){const g=Zo({groupSize:r,panelElement:l,styleProp:u.collapsedSize});c=Ft(g/r*100)}let d;if(u.defaultSize!==void 0){const g=Zo({groupSize:r,panelElement:l,styleProp:u.defaultSize});d=Ft(g/r*100)}let f=0;if(u.minSize!==void 0){const g=Zo({groupSize:r,panelElement:l,styleProp:u.minSize});f=Ft(g/r*100)}let m=100;if(u.maxSize!==void 0){const g=Zo({groupSize:r,panelElement:l,styleProp:u.maxSize});m=Ft(g/r*100)}return{groupResizeBehavior:u.groupResizeBehavior,collapsedSize:c,collapsible:u.collapsible===!0,defaultSize:d,disabled:u.disabled,minSize:f,maxSize:m,panelId:a.id}})}function Ve(e,n="Assertion error"){if(!e)throw Error(n)}function Yf(e,n){return Array.from(n).sort(e==="horizontal"?sA:uA)}function sA(e,n){const r=e.element.offsetLeft-n.element.offsetLeft;return r!==0?r:e.element.offsetWidth-n.element.offsetWidth}function uA(e,n){const r=e.element.offsetTop-n.element.offsetTop;return r!==0?r:e.element.offsetHeight-n.element.offsetHeight}function Xy(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}function Wy(e,n){return{x:e.x>=n.left&&e.x<=n.right?0:Math.min(Math.abs(e.x-n.left),Math.abs(e.x-n.right)),y:e.y>=n.top&&e.y<=n.bottom?0:Math.min(Math.abs(e.y-n.top),Math.abs(e.y-n.bottom))}}function cA({orientation:e,rects:n,targetRect:r}){const a={x:r.x+r.width/2,y:r.y+r.height/2};let l,u=Number.MAX_VALUE;for(const c of n){const{x:d,y:f}=Wy(a,c),m=e==="horizontal"?d:f;m<u&&(u=m,l=c)}return Ve(l,"No rect found"),l}let Hs;function dA(){return Hs===void 0&&(typeof matchMedia=="function"?Hs=!!matchMedia("(pointer:coarse)").matches:Hs=!1),Hs}function Qy(e){const{element:n,orientation:r,panels:a,separators:l}=e,u=Yf(r,Array.from(n.children).filter(Xy).map(S=>({element:S}))).map(({element:S})=>S),c=[];let d=!1,f=!1,m=-1,g=-1,v=0,b,_=[];{let S=-1;for(const E of u)E.hasAttribute("data-panel")&&(S++,E.ariaDisabled===null&&(v++,m===-1&&(m=S),g=S))}if(v>1){let S=-1;for(const E of u)if(E.hasAttribute("data-panel")){S++;const L=a.find(w=>w.element===E);if(L){if(b){const w=b.element.getBoundingClientRect(),C=E.getBoundingClientRect();let A;if(f){const R=r==="horizontal"?new DOMRect(w.right,w.top,0,w.height):new DOMRect(w.left,w.bottom,w.width,0),T=r==="horizontal"?new DOMRect(C.left,C.top,0,C.height):new DOMRect(C.left,C.top,C.width,0);switch(_.length){case 0:{A=[R,T];break}case 1:{const P=_[0],H=cA({orientation:r,rects:[w,C],targetRect:P.element.getBoundingClientRect()});A=[P,H===w?T:R];break}default:{A=_;break}}}else _.length?A=_:A=[r==="horizontal"?new DOMRect(w.right,C.top,C.left-w.right,C.height):new DOMRect(C.left,w.bottom,C.width,C.top-w.bottom)];for(const R of A){let T="width"in R?R:R.element.getBoundingClientRect();const P=dA()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(T.width<P){const I=P-T.width;T=new DOMRect(T.x-I/2,T.y,T.width+I,T.height)}if(T.height<P){const I=P-T.height;T=new DOMRect(T.x,T.y-I/2,T.width,T.height+I)}const H=S<=m||S>g;!d&&!H&&c.push({group:e,groupSize:Fa({group:e}),panels:[b,L],separator:"width"in R?void 0:R,rect:T}),d=!1}}f=!1,b=L,_=[]}}else if(E.hasAttribute("data-separator")){E.ariaDisabled!==null&&(d=!0);const L=l.find(w=>w.element===E);L?_.push(L):(b=void 0,_=[])}else f=!0}return c}class Zy{#e={};addListener(n,r){const a=this.#e[n];return a===void 0?this.#e[n]=[r]:a.includes(r)||a.push(r),()=>{this.removeListener(n,r)}}emit(n,r){const a=this.#e[n];if(a!==void 0)if(a.length===1)a[0].call(null,r);else{let l=!1,u=null;const c=Array.from(a);for(let d=0;d<c.length;d++){const f=c[d];try{f.call(null,r)}catch(m){u===null&&(l=!0,u=m)}}if(l)throw u}}removeAllListeners(){this.#e={}}removeListener(n,r){const a=this.#e[n];if(a!==void 0){const l=a.indexOf(r);l>=0&&a.splice(l,1)}}}let qn=new Map;const Ky=new Zy;function fA(e){qn=new Map(qn),qn.delete(e)}function Rb(e,n){for(const[r]of qn)if(r.id===e)return r}function Ji(e,n){for(const[r,a]of qn)if(r.id===e)return a;if(n)throw Error(`Could not find data for Group with id ${e}`)}function Ur(){return qn}function wh(e,n){return Ky.addListener("groupChange",r=>{r.group.id===e&&n(r)})}function bi(e,n){const r=qn.get(e);qn=new Map(qn),qn.set(e,n),Ky.emit("groupChange",{group:e,prev:r,next:n})}function hA(e,n,r){let a,l={x:1/0,y:1/0};for(const u of n){const c=Wy(r,u.rect);switch(e){case"horizontal":{c.x<=l.x&&(a=u,l=c);break}case"vertical":{c.y<=l.y&&(a=u,l=c);break}}}return a?{distance:l,hitRegion:a}:void 0}function pA(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function mA(e,n){if(e===n)throw new Error("Cannot compare node with itself");const r={a:Mb(e),b:Mb(n)};let a;for(;r.a.at(-1)===r.b.at(-1);)a=r.a.pop(),r.b.pop();Ve(a,"Stacking order can only be calculated for elements with a common ancestor");const l={a:Ob(Nb(r.a)),b:Ob(Nb(r.b))};if(l.a===l.b){const u=a.childNodes,c={a:r.a.at(-1),b:r.b.at(-1)};let d=u.length;for(;d--;){const f=u[d];if(f===c.a)return 1;if(f===c.b)return-1}}return Math.sign(l.a-l.b)}const gA=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function vA(e){const n=getComputedStyle(Jy(e)??e).display;return n==="flex"||n==="inline-flex"}function bA(e){const n=getComputedStyle(e);return!!(n.position==="fixed"||n.zIndex!=="auto"&&(n.position!=="static"||vA(e))||+n.opacity<1||"transform"in n&&n.transform!=="none"||"webkitTransform"in n&&n.webkitTransform!=="none"||"mixBlendMode"in n&&n.mixBlendMode!=="normal"||"filter"in n&&n.filter!=="none"||"webkitFilter"in n&&n.webkitFilter!=="none"||"isolation"in n&&n.isolation==="isolate"||gA.test(n.willChange)||n.webkitOverflowScrolling==="touch")}function Nb(e){let n=e.length;for(;n--;){const r=e[n];if(Ve(r,"Missing node"),bA(r))return r}return null}function Ob(e){return e&&Number(getComputedStyle(e).zIndex)||0}function Mb(e){const n=[];for(;e;)n.push(e),e=Jy(e);return n}function Jy(e){const{parentNode:n}=e;return pA(n)?n.host:n}function yA(e,n){return e.x<n.x+n.width&&e.x+e.width>n.x&&e.y<n.y+n.height&&e.y+e.height>n.y}function _A({groupElement:e,hitRegion:n,pointerEventTarget:r}){if(!Xy(r)||r.contains(e)||e.contains(r))return!0;if(mA(r,e)>0){let a=r;for(;a;){if(a.contains(e))return!0;if(yA(a.getBoundingClientRect(),n))return!1;a=a.parentElement}}return!0}function Ch(e,n){const r=[];return n.forEach((a,l)=>{if(l.disabled)return;const u=Qy(l),c=hA(l.orientation,u,{x:e.clientX,y:e.clientY});c&&c.distance.x<=0&&c.distance.y<=0&&_A({groupElement:l.element,hitRegion:c.hitRegion.rect,pointerEventTarget:e.target})&&r.push(c.hitRegion)}),r}function SA(e,n){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=n[r])return!1;return!0}function Ut(e,n,r=0){return Math.abs(Ft(e)-Ft(n))<=r}function Gn(e,n){return Ut(e,n)?0:e>n?1:-1}function Ha({overrideDisabledPanels:e,panelConstraints:n,prevSize:r,size:a}){const{collapsedSize:l=0,collapsible:u,disabled:c,maxSize:d=100,minSize:f=0}=n;if(c&&!e)return r;if(Gn(a,f)<0)if(u){const m=(l+f)/2;Gn(a,m)<0?a=l:a=f}else a=f;return a=Math.min(d,a),a=Ft(a),a}function ll({delta:e,initialLayout:n,panelConstraints:r,pivotIndices:a,prevLayout:l,trigger:u}){if(Ut(e,0))return n;const c=u==="imperative-api",d=Object.values(n),f=Object.values(l),m=[...d],[g,v]=a;Ve(g!=null,"Invalid first pivot index"),Ve(v!=null,"Invalid second pivot index");let b=0;switch(u){case"keyboard":{{const E=e<0?v:g,L=r[E];Ve(L,`Panel constraints not found for index ${E}`);const{collapsedSize:w=0,collapsible:C,minSize:A=0}=L;if(C){const R=d[E];if(Ve(R!=null,`Previous layout not found for panel index ${E}`),Ut(R,w)){const T=A-R;Gn(T,Math.abs(e))>0&&(e=e<0?0-T:T)}}}{const E=e<0?g:v,L=r[E];Ve(L,`No panel constraints found for index ${E}`);const{collapsedSize:w=0,collapsible:C,minSize:A=0}=L;if(C){const R=d[E];if(Ve(R!=null,`Previous layout not found for panel index ${E}`),Ut(R,A)){const T=R-w;Gn(T,Math.abs(e))>0&&(e=e<0?0-T:T)}}}break}default:{const E=e<0?v:g,L=r[E];Ve(L,`Panel constraints not found for index ${E}`);const w=d[E],{collapsible:C,collapsedSize:A,minSize:R}=L;if(C&&Gn(w,R)<0)if(e>0){const T=R-A,P=T/2,H=w+e;Gn(H,R)<0&&(e=Gn(e,P)<=0?0:T)}else{const T=R-A,P=100-T/2,H=w-e;Gn(H,R)<0&&(e=Gn(100+e,P)>0?0:-T)}break}}{const E=e<0?1:-1;let L=e<0?v:g,w=0;for(;;){const A=d[L];Ve(A!=null,`Previous layout not found for panel index ${L}`);const R=Ha({overrideDisabledPanels:c,panelConstraints:r[L],prevSize:A,size:100})-A;if(w+=R,L+=E,L<0||L>=r.length)break}const C=Math.min(Math.abs(e),Math.abs(w));e=e<0?0-C:C}{let E=e<0?g:v;for(;E>=0&&E<r.length;){const L=Math.abs(e)-Math.abs(b),w=d[E];Ve(w!=null,`Previous layout not found for panel index ${E}`);const C=w-L,A=Ha({overrideDisabledPanels:c,panelConstraints:r[E],prevSize:w,size:C});if(!Ut(w,A)&&(b+=w-A,m[E]=A,b.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?E--:E++}}if(SA(f,m))return l;{const E=e<0?v:g,L=d[E];Ve(L!=null,`Previous layout not found for panel index ${E}`);const w=L+b,C=Ha({overrideDisabledPanels:c,panelConstraints:r[E],prevSize:L,size:w});if(m[E]=C,!Ut(C,w)){let A=w-C,R=e<0?v:g;for(;R>=0&&R<r.length;){const T=m[R];Ve(T!=null,`Previous layout not found for panel index ${R}`);const P=T+A,H=Ha({overrideDisabledPanels:c,panelConstraints:r[R],prevSize:T,size:P});if(Ut(T,H)||(A-=H-T,m[R]=H),Ut(A,0))break;e>0?R--:R++}}}const _=Object.values(m).reduce((E,L)=>L+E,0);if(!Ut(_,100,.1))return l;const S=Object.keys(l);return m.reduce((E,L,w)=>(E[S[w]]=L,E),{})}function Or(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(n[r]===void 0||Gn(e[r],n[r])!==0)return!1;return!0}function Mr({layout:e,panelConstraints:n}){const r=Object.values(e),a=[...r],l=a.reduce((d,f)=>d+f,0);if(a.length!==n.length)throw Error(`Invalid ${n.length} panel layout: ${a.map(d=>`${d}%`).join(", ")}`);if(!Ut(l,100)&&a.length>0)for(let d=0;d<n.length;d++){const f=a[d];Ve(f!=null,`No layout data found for index ${d}`);const m=100/l*f;a[d]=m}let u=0;for(let d=0;d<n.length;d++){const f=r[d];Ve(f!=null,`No layout data found for index ${d}`);const m=a[d];Ve(m!=null,`No layout data found for index ${d}`);const g=Ha({overrideDisabledPanels:!0,panelConstraints:n[d],prevSize:f,size:m});m!=g&&(u+=m-g,a[d]=g)}if(!Ut(u,0))for(let d=0;d<n.length;d++){const f=a[d];Ve(f!=null,`No layout data found for index ${d}`);const m=f+u,g=Ha({overrideDisabledPanels:!0,panelConstraints:n[d],prevSize:f,size:m});if(f!==g&&(u-=g-f,a[d]=g,Ut(u,0)))break}const c=Object.keys(e);return a.reduce((d,f,m)=>(d[c[m]]=f,d),{})}function e_({groupId:e,panelId:n}){const r=()=>{const d=Ur();for(const[f,{defaultLayoutDeferred:m,derivedPanelConstraints:g,layout:v,groupSize:b,separatorToPanels:_}]of d)if(f.id===e)return{defaultLayoutDeferred:m,derivedPanelConstraints:g,group:f,groupSize:b,layout:v,separatorToPanels:_};throw Error(`Group ${e} not found`)},a=()=>{const d=r().derivedPanelConstraints.find(f=>f.panelId===n);if(d!==void 0)return d;throw Error(`Panel constraints not found for Panel ${n}`)},l=()=>{const d=r().group.panels.find(f=>f.id===n);if(d!==void 0)return d;throw Error(`Layout not found for Panel ${n}`)},u=()=>{const d=r().layout[n];if(d!==void 0)return d;throw Error(`Layout not found for Panel ${n}`)},c=d=>{const f=u();if(d===f)return;const{defaultLayoutDeferred:m,derivedPanelConstraints:g,group:v,groupSize:b,layout:_,separatorToPanels:S}=r(),E=v.panels.findIndex(A=>A.id===n),L=E===v.panels.length-1,w=ll({delta:L?f-d:d-f,initialLayout:_,panelConstraints:g,pivotIndices:L?[E-1,E]:[E,E+1],prevLayout:_,trigger:"imperative-api"}),C=Mr({layout:w,panelConstraints:g});Or(_,C)||bi(v,{defaultLayoutDeferred:m,derivedPanelConstraints:g,groupSize:b,layout:C,separatorToPanels:S})};return{collapse:()=>{const{collapsible:d,collapsedSize:f}=a(),{mutableValues:m}=l(),g=u();d&&g!==f&&(m.expandToSize=g,c(f))},expand:()=>{const{collapsible:d,collapsedSize:f,minSize:m}=a(),{mutableValues:g}=l(),v=u();if(d&&v===f){let b=g.expandToSize??m;b===0&&(b=1),c(b)}},getSize:()=>{const{group:d}=r(),f=u(),{element:m}=l(),g=d.orientation==="horizontal"?m.offsetWidth:m.offsetHeight;return{asPercentage:f,inPixels:g}},isCollapsed:()=>{const{collapsible:d,collapsedSize:f}=a(),m=u();return d&&Ut(f,m)},resize:d=>{const{group:f}=r(),{element:m}=l(),g=Fa({group:f}),v=Zo({groupSize:g,panelElement:m,styleProp:d}),b=Ft(v/g*100);c(b)}}}function Db(e){if(e.defaultPrevented)return;const n=Ur();Ch(e,n).forEach(r=>{if(r.separator){const a=r.panels.find(l=>l.panelConstraints.defaultSize!==void 0);if(a){const l=a.panelConstraints.defaultSize,u=e_({groupId:r.group.id,panelId:a.id});u&&l!==void 0&&(u.resize(l),e.preventDefault())}}})}function iu(e){const n=Ur();for(const[r]of n)if(r.separators.some(a=>a.element===e))return r;throw Error("Could not find parent Group for separator element")}function t_({groupId:e}){const n=()=>{const r=Ur();for(const[a,l]of r)if(a.id===e)return{group:a,...l};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){const{defaultLayoutDeferred:r,layout:a}=n();return r?{}:a},setLayout(r){const{defaultLayoutDeferred:a,derivedPanelConstraints:l,group:u,groupSize:c,layout:d,separatorToPanels:f}=n(),m=Mr({layout:r,panelConstraints:l});return a?d:(Or(d,m)||bi(u,{defaultLayoutDeferred:a,derivedPanelConstraints:l,groupSize:c,layout:m,separatorToPanels:f}),m)}}}function Er(e,n){const r=iu(e),a=Ji(r.id,!0),l=r.separators.find(g=>g.element===e);Ve(l,"Matching separator not found");const u=a.separatorToPanels.get(l);Ve(u,"Matching panels not found");const c=u.map(g=>r.panels.indexOf(g)),d=t_({groupId:r.id}).getLayout(),f=ll({delta:n,initialLayout:d,panelConstraints:a.derivedPanelConstraints,pivotIndices:c,prevLayout:d,trigger:"keyboard"}),m=Mr({layout:f,panelConstraints:a.derivedPanelConstraints});Or(d,m)||bi(r,{defaultLayoutDeferred:a.defaultLayoutDeferred,derivedPanelConstraints:a.derivedPanelConstraints,groupSize:a.groupSize,layout:m,separatorToPanels:a.separatorToPanels})}function zb(e){if(e.defaultPrevented)return;const n=e.currentTarget,r=iu(n);if(!r.disabled)switch(e.key){case"ArrowDown":{e.preventDefault(),r.orientation==="vertical"&&Er(n,5);break}case"ArrowLeft":{e.preventDefault(),r.orientation==="horizontal"&&Er(n,-5);break}case"ArrowRight":{e.preventDefault(),r.orientation==="horizontal"&&Er(n,5);break}case"ArrowUp":{e.preventDefault(),r.orientation==="vertical"&&Er(n,-5);break}case"End":{e.preventDefault(),Er(n,100);break}case"Enter":{e.preventDefault();const a=iu(n),l=Ji(a.id,!0),{derivedPanelConstraints:u,layout:c,separatorToPanels:d}=l,f=a.separators.find(b=>b.element===n);Ve(f,"Matching separator not found");const m=d.get(f);Ve(m,"Matching panels not found");const g=m[0],v=u.find(b=>b.panelId===g.id);if(Ve(v,"Panel metadata not found"),v.collapsible){const b=c[g.id],_=v.collapsedSize===b?a.mutableState.expandedPanelSizes[g.id]??v.minSize:v.collapsedSize;Er(n,_-b)}break}case"F6":{e.preventDefault();const a=iu(n).separators.map(c=>c.element),l=Array.from(a).findIndex(c=>c===e.currentTarget);Ve(l!==null,"Index not found");const u=e.shiftKey?l>0?l-1:a.length-1:l+1<a.length?l+1:0;a[u].focus({preventScroll:!0});break}case"Home":{e.preventDefault(),Er(n,-100);break}}}let Va={cursorFlags:0,state:"inactive"};const Ah=new Zy;function Dr(){return Va}function xA(e){return Ah.addListener("change",e)}function EA(e){const n=Va,r={...Va};r.cursorFlags=e,Va=r,Ah.emit("change",{prev:n,next:r})}function Ba(e){const n=Va;Va=e,Ah.emit("change",{prev:n,next:e})}function Ib(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const n=Ur(),r=Ch(e,n),a=new Map;let l=!1;r.forEach(u=>{u.separator&&(l||(l=!0,u.separator.element.focus({preventScroll:!0})));const c=n.get(u.group);c&&a.set(u.group,c.layout)}),Ba({cursorFlags:0,hitRegions:r,initialLayoutMap:a,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:"active"}),r.length&&e.preventDefault()}const wA=e=>e,hf=()=>{},n_=1,i_=2,r_=4,a_=8,Pb=3,Ub=12;let js;function Hb(){return js===void 0&&(js=!1,typeof window<"u"&&(window.navigator.userAgent.includes("Chrome")||window.navigator.userAgent.includes("Firefox"))&&(js=!0)),js}function CA({cursorFlags:e,groups:n,state:r}){let a=0,l=0;switch(r){case"active":case"hover":n.forEach(u=>{if(!u.mutableState.disableCursor)switch(u.orientation){case"horizontal":{a++;break}case"vertical":{l++;break}}})}if(!(a===0&&l===0)){switch(r){case"active":{if(e&&Hb()){const u=(e&n_)!==0,c=(e&i_)!==0,d=(e&r_)!==0,f=(e&a_)!==0;if(u)return d?"se-resize":f?"ne-resize":"e-resize";if(c)return d?"sw-resize":f?"nw-resize":"w-resize";if(d)return"s-resize";if(f)return"n-resize"}break}}return Hb()?a>0&&l>0?"move":a>0?"ew-resize":"ns-resize":a>0&&l>0?"grab":a>0?"col-resize":"row-resize"}}const jb=new WeakMap;function kh(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:n,styleSheet:r}=jb.get(e)??{};r===void 0&&(r=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&e.adoptedStyleSheets.push(r));const a=Dr();switch(a.state){case"active":case"hover":{const l=CA({cursorFlags:a.cursorFlags,groups:a.hitRegions.map(c=>c.group),state:a.state}),u=`*, *:hover {cursor: ${l} !important; }`;if(n===u)return;n=u,l?r.cssRules.length===0?r.insertRule(u):r.replaceSync(u):r.cssRules.length===1&&r.deleteRule(0);break}case"inactive":{n=void 0,r.cssRules.length===1&&r.deleteRule(0);break}}jb.set(e,{prevStyle:n,styleSheet:r})}function o_({document:e,event:n,hitRegions:r,initialLayoutMap:a,mountedGroups:l,pointerDownAtPoint:u,prevCursorFlags:c}){let d=0;r.forEach(m=>{const{group:g,groupSize:v}=m,{orientation:b,panels:_}=g,{disableCursor:S}=g.mutableState;let E=0;u?b==="horizontal"?E=(n.clientX-u.x)/v*100:E=(n.clientY-u.y)/v*100:b==="horizontal"?E=n.clientX<0?-100:100:E=n.clientY<0?-100:100;const L=a.get(g),w=l.get(g);if(!L||!w)return;const{defaultLayoutDeferred:C,derivedPanelConstraints:A,groupSize:R,layout:T,separatorToPanels:P}=w;if(A&&T&&P){const H=ll({delta:E,initialLayout:L,panelConstraints:A,pivotIndices:m.panels.map(I=>_.indexOf(I)),prevLayout:T,trigger:"mouse-or-touch"});if(Or(H,T)){if(E!==0&&!S)switch(b){case"horizontal":{d|=E<0?n_:i_;break}case"vertical":{d|=E<0?r_:a_;break}}}else bi(m.group,{defaultLayoutDeferred:C,derivedPanelConstraints:A,groupSize:R,layout:H,separatorToPanels:P})}});let f=0;n.movementX===0?f|=c&Pb:f|=d&Pb,n.movementY===0?f|=c&Ub:f|=d&Ub,EA(f),kh(e)}function Vb(e){const n=Ur(),r=Dr();r.state==="active"&&o_({document:e.currentTarget,event:e,hitRegions:r.hitRegions,initialLayoutMap:r.initialLayoutMap,mountedGroups:n,prevCursorFlags:r.cursorFlags})}function Bb(e){if(e.defaultPrevented)return;const n=Dr(),r=Ur();switch(n.state){case"active":{if(e.buttons===0){Ba({cursorFlags:0,state:"inactive"}),n.hitRegions.forEach(a=>{const l=Ji(a.group.id,!0);bi(a.group,l)});return}o_({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:r,pointerDownAtPoint:n.pointerDownAtPoint,prevCursorFlags:n.cursorFlags});break}default:{const a=Ch(e,r);a.length===0?n.state!=="inactive"&&Ba({cursorFlags:0,state:"inactive"}):Ba({cursorFlags:0,hitRegions:a,state:"hover"}),kh(e.currentTarget);break}}}function Gb(e){e.relatedTarget instanceof HTMLIFrameElement&&Dr().state==="hover"&&Ba({cursorFlags:0,state:"inactive"})}function $b(e){if(e.defaultPrevented||e.pointerType==="mouse"&&e.button>0)return;const n=Dr();n.state==="active"&&(Ba({cursorFlags:0,state:"inactive"}),n.hitRegions.length>0&&(kh(e.currentTarget),n.hitRegions.forEach(r=>{const a=Ji(r.group.id,!0);bi(r.group,a)}),e.preventDefault()))}function qb(e){let n=0,r=0;const a={};for(const u of e)if(u.defaultSize!==void 0){n++;const c=Ft(u.defaultSize);r+=c,a[u.panelId]=c}else a[u.panelId]=void 0;const l=e.length-n;if(l!==0){const u=Ft((100-r)/l);for(const c of e)c.defaultSize===void 0&&(a[c.panelId]=u)}return a}function AA(e,n,r){if(!r[0])return;const a=e.panels.find(f=>f.element===n);if(!a||!a.onResize)return;const l=Fa({group:e}),u=e.orientation==="horizontal"?a.element.offsetWidth:a.element.offsetHeight,c=a.mutableValues.prevSize,d={asPercentage:Ft(u/l*100),inPixels:u};a.mutableValues.prevSize=d,a.onResize(d,a.id,c)}function kA(e,n){if(Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}function TA({group:e,nextGroupSize:n,prevGroupSize:r,prevLayout:a}){if(r<=0||n<=0||r===n)return a;let l=0,u=0,c=!1;const d=new Map,f=[];for(const v of e.panels){const b=a[v.id]??0;if(v.panelConstraints.groupResizeBehavior==="preserve-pixel-size"){c=!0;const _=b/100*r,S=Ft(_/n*100);d.set(v.id,S),l+=S}else f.push(v.id),u+=b}if(!c||f.length===0)return a;const m=100-l,g={...a};if(d.forEach((v,b)=>{g[b]=v}),u>0)for(const v of f){const b=a[v]??0;g[v]=Ft(b/u*m)}else{const v=Ft(m/f.length);for(const b of f)g[b]=v}return g}function LA(e,n){const r=e.map(l=>l.id),a=Object.keys(n);if(r.length!==a.length)return!1;for(const l of r)if(!a.includes(l))return!1;return!0}const Ra=new Map;function RA(e){let n=!0;Ve(e.element.ownerDocument.defaultView,"Cannot register an unmounted Group");const r=e.element.ownerDocument.defaultView.ResizeObserver,a=new Set,l=new Set,u=new r(S=>{for(const E of S){const{borderBoxSize:L,target:w}=E;if(w===e.element){if(n){const C=Fa({group:e});if(C===0)return;const A=Ji(e.id);if(!A)return;const R=qf(e),T=A.defaultLayoutDeferred?qb(R):A.layout,P=TA({group:e,nextGroupSize:C,prevGroupSize:A.groupSize,prevLayout:T}),H=Mr({layout:P,panelConstraints:R});if(!A.defaultLayoutDeferred&&Or(A.layout,H)&&kA(A.derivedPanelConstraints,R)&&A.groupSize===C)return;bi(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:R,groupSize:C,layout:H,separatorToPanels:A.separatorToPanels})}}else AA(e,w,L)}});u.observe(e.element),e.panels.forEach(S=>{Ve(!a.has(S.id),`Panel ids must be unique; id "${S.id}" was used more than once`),a.add(S.id),S.onResize&&u.observe(S.element)});const c=Fa({group:e}),d=qf(e),f=e.panels.map(({id:S})=>S).join(",");let m=e.mutableState.defaultLayout;m&&(LA(e.panels,m)||(m=void 0));const g=e.mutableState.layouts[f]??m??qb(d),v=Mr({layout:g,panelConstraints:d}),b=e.element.ownerDocument;Ra.set(b,(Ra.get(b)??0)+1);const _=new Map;return Qy(e).forEach(S=>{S.separator&&_.set(S.separator,S.panels)}),bi(e,{defaultLayoutDeferred:c===0,derivedPanelConstraints:d,groupSize:c,layout:v,separatorToPanels:_}),e.separators.forEach(S=>{Ve(!l.has(S.id),`Separator ids must be unique; id "${S.id}" was used more than once`),l.add(S.id),S.element.addEventListener("keydown",zb)}),Ra.get(b)===1&&(b.addEventListener("dblclick",Db,!0),b.addEventListener("pointerdown",Ib,!0),b.addEventListener("pointerleave",Vb),b.addEventListener("pointermove",Bb),b.addEventListener("pointerout",Gb),b.addEventListener("pointerup",$b,!0)),function(){n=!1,Ra.set(b,Math.max(0,(Ra.get(b)??0)-1)),fA(e),e.separators.forEach(S=>{S.element.removeEventListener("keydown",zb)}),Ra.get(b)||(b.removeEventListener("dblclick",Db,!0),b.removeEventListener("pointerdown",Ib,!0),b.removeEventListener("pointerleave",Vb),b.removeEventListener("pointermove",Bb),b.removeEventListener("pointerout",Gb),b.removeEventListener("pointerup",$b,!0)),u.disconnect()}}function NA(){const[e,n]=z.useState({}),r=z.useCallback(()=>n({}),[]);return[e,r]}function Th(e){const n=z.useId();return`${e??n}`}const Hr=typeof window<"u"?z.useLayoutEffect:z.useEffect;function el(e){const n=z.useRef(e);return Hr(()=>{n.current=e},[e]),z.useCallback((...r)=>n.current?.(...r),[n])}function Lh(...e){return el(n=>{e.forEach(r=>{if(r)switch(typeof r){case"function":{r(n);break}case"object":{r.current=n;break}}})})}function Rh(e){const n=z.useRef({...e});return Hr(()=>{for(const r in e)n.current[r]=e[r]},[e]),n.current}const l_=z.createContext(null);function OA(e,n){const r=z.useRef({getLayout:()=>({}),setLayout:wA});z.useImperativeHandle(n,()=>r.current,[]),Hr(()=>{Object.assign(r.current,t_({groupId:e}))})}function s_({children:e,className:n,defaultLayout:r,disableCursor:a,disabled:l,elementRef:u,groupRef:c,id:d,onLayoutChange:f,onLayoutChanged:m,orientation:g="horizontal",resizeTargetMinimumSize:v={coarse:20,fine:10},style:b,..._}){const S=z.useRef({onLayoutChange:{},onLayoutChanged:{}}),E=el(F=>{Or(S.current.onLayoutChange,F)||(S.current.onLayoutChange=F,f?.(F))}),L=el(F=>{Or(S.current.onLayoutChanged,F)||(S.current.onLayoutChanged=F,m?.(F))}),w=Th(d),C=z.useRef(null),[A,R]=NA(),T=z.useRef({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:v,separators:[]}),P=Lh(C,u);OA(w,c);const H=el((F,V)=>{const te=Dr(),J=Rb(F),W=Ji(F);if(W){let D=!1;return te.state==="active"&&(D=te.hitRegions.some(Y=>Y.group===J)),{flexGrow:W.layout[V]??1,pointerEvents:D?"none":void 0}}return{flexGrow:r?.[V]??1}}),I=Rh({defaultLayout:r,disableCursor:a}),K=z.useMemo(()=>({get disableCursor(){return!!I.disableCursor},getPanelStyles:H,id:w,orientation:g,registerPanel:F=>{const V=T.current;return V.panels=Yf(g,[...V.panels,F]),R(),()=>{V.panels=V.panels.filter(te=>te!==F),R()}},registerSeparator:F=>{const V=T.current;return V.separators=Yf(g,[...V.separators,F]),R(),()=>{V.separators=V.separators.filter(te=>te!==F),R()}},togglePanelDisabled:(F,V)=>{const te=T.current.panels.find(D=>D.id===F);te&&(te.panelConstraints.disabled=V);const J=Rb(w),W=Ji(w);J&&W&&bi(J,{...W,derivedPanelConstraints:qf(J)})},toggleSeparatorDisabled:(F,V)=>{const te=T.current.separators.find(J=>J.id===F);te&&(te.disabled=V)}}),[H,w,R,g,I]),Z=z.useRef(null);return Hr(()=>{const F=C.current;if(F===null)return;const V=T.current;let te;if(I.defaultLayout!==void 0&&Object.keys(I.defaultLayout).length===V.panels.length){te={};for(const ie of V.panels){const N=I.defaultLayout[ie.id];N!==void 0&&(te[ie.id]=N)}}const J={disabled:!!l,element:F,id:w,mutableState:{defaultLayout:te,disableCursor:!!I.disableCursor,expandedPanelSizes:T.current.lastExpandedPanelSizes,layouts:T.current.layouts},orientation:g,panels:V.panels,resizeTargetMinimumSize:V.resizeTargetMinimumSize,separators:V.separators};Z.current=J;const W=RA(J),{defaultLayoutDeferred:D,derivedPanelConstraints:Y,layout:re}=Ji(J.id,!0);!D&&Y.length>0&&(E(re),L(re));const ce=wh(w,ie=>{const{defaultLayoutDeferred:N,derivedPanelConstraints:q,layout:ae}=ie.next;if(N||q.length===0)return;const oe=J.panels.map(({id:le})=>le).join(",");J.mutableState.layouts[oe]=ae,q.forEach(le=>{if(le.collapsible){const{layout:de}=ie.prev??{};if(de){const Ce=Ut(le.collapsedSize,ae[le.panelId]),he=Ut(le.collapsedSize,de[le.panelId]);Ce&&!he&&(J.mutableState.expandedPanelSizes[le.panelId]=de[le.panelId])}}});const ue=Dr().state!=="active";E(ae),ue&&L(ae)});return()=>{Z.current=null,W(),ce()}},[l,w,L,E,g,A,I]),z.useEffect(()=>{const F=Z.current;F&&(F.mutableState.defaultLayout=r,F.mutableState.disableCursor=!!a)}),M.jsx(l_.Provider,{value:K,children:M.jsx("div",{..._,className:n,"data-group":!0,"data-testid":w,id:w,ref:P,style:{height:"100%",width:"100%",overflow:"hidden",...b,display:"flex",flexDirection:g==="horizontal"?"row":"column",flexWrap:"nowrap",touchAction:g==="horizontal"?"pan-y":"pan-x"},children:e})})}s_.displayName="Group";function Nh(){const e=z.useContext(l_);return Ve(e,"Group Context not found; did you render a Panel or Separator outside of a Group?"),e}function MA(e,n){const{id:r}=Nh(),a=z.useRef({collapse:hf,expand:hf,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:hf});z.useImperativeHandle(n,()=>a.current,[]),Hr(()=>{Object.assign(a.current,e_({groupId:r,panelId:e}))})}function u_({children:e,className:n,collapsedSize:r="0%",collapsible:a=!1,defaultSize:l,disabled:u,elementRef:c,groupResizeBehavior:d="preserve-relative-size",id:f,maxSize:m="100%",minSize:g="0%",onResize:v,panelRef:b,style:_,...S}){const E=!!f,L=Th(f),w=Rh({disabled:u}),C=z.useRef(null),A=Lh(C,c),{getPanelStyles:R,id:T,orientation:P,registerPanel:H,togglePanelDisabled:I}=Nh(),K=v!==null,Z=el((V,te,J)=>{v?.(V,f,J)});Hr(()=>{const V=C.current;if(V!==null){const te={element:V,id:L,idIsStable:E,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:K?Z:void 0,panelConstraints:{groupResizeBehavior:d,collapsedSize:r,collapsible:a,defaultSize:l,disabled:w.disabled,maxSize:m,minSize:g}};return H(te)}},[d,r,a,l,K,L,E,m,g,Z,H,w]),z.useEffect(()=>{I(L,!!u)},[u,L,I]),MA(L,b);const F=z.useSyncExternalStore(V=>wh(T,V),()=>JSON.stringify(R(T,L)),()=>JSON.stringify(R(T,L)));return M.jsx("div",{...S,"aria-disabled":u||void 0,"data-panel":!0,"data-testid":L,id:L,ref:A,style:{...DA,display:"flex",flexBasis:0,flexShrink:1,overflow:"visible",...JSON.parse(F)},children:M.jsx("div",{className:n,style:{maxHeight:"100%",maxWidth:"100%",flexGrow:1,overflow:"auto",..._,touchAction:P==="horizontal"?"pan-y":"pan-x"},children:e})})}u_.displayName="Panel";const DA={minHeight:0,maxHeight:"100%",height:"auto",minWidth:0,maxWidth:"100%",width:"auto",border:"none",borderWidth:0,padding:0,margin:0};function zA({layout:e,panelConstraints:n,panelId:r,panelIndex:a}){let l,u;const c=e[r],d=n.find(f=>f.panelId===r);if(d){const f=d.maxSize,m=d.collapsible?d.collapsedSize:d.minSize,g=[a,a+1];u=Mr({layout:ll({delta:m-c,initialLayout:e,panelConstraints:n,pivotIndices:g,prevLayout:e}),panelConstraints:n})[r],l=Mr({layout:ll({delta:f-c,initialLayout:e,panelConstraints:n,pivotIndices:g,prevLayout:e}),panelConstraints:n})[r]}return{valueControls:r,valueMax:l,valueMin:u,valueNow:c}}function c_({children:e,className:n,disabled:r,elementRef:a,id:l,style:u,...c}){const d=Th(l),f=Rh({disabled:r}),[m,g]=z.useState({}),[v,b]=z.useState("inactive"),_=z.useRef(null),S=Lh(_,a),{disableCursor:E,id:L,orientation:w,registerSeparator:C,toggleSeparatorDisabled:A}=Nh(),R=w==="horizontal"?"vertical":"horizontal";Hr(()=>{const P=_.current;if(P!==null){const H={disabled:f.disabled,element:P,id:d},I=C(H),K=xA(F=>{b(F.next.state!=="inactive"&&F.next.hitRegions.some(V=>V.separator===H)?F.next.state:"inactive")}),Z=wh(L,F=>{const{derivedPanelConstraints:V,layout:te,separatorToPanels:J}=F.next,W=J.get(H);if(W){const D=W[0],Y=W.indexOf(D);g(zA({layout:te,panelConstraints:V,panelId:D.id,panelIndex:Y}))}});return()=>{K(),Z(),I()}}},[L,d,C,f]),z.useEffect(()=>{A(d,!!r)},[r,d,A]);let T;return r&&!E&&(T="not-allowed"),M.jsx("div",{...c,"aria-controls":m.valueControls,"aria-disabled":r||void 0,"aria-orientation":R,"aria-valuemax":m.valueMax,"aria-valuemin":m.valueMin,"aria-valuenow":m.valueNow,children:e,className:n,"data-separator":r?"disabled":v,"data-testid":d,id:d,ref:S,role:"separator",style:{flexBasis:"auto",cursor:T,...u,flexGrow:0,flexShrink:0,touchAction:"none"},tabIndex:r?void 0:0})}c_.displayName="Separator";function IA({className:e,...n}){return M.jsx(s_,{"data-slot":"resizable-panel-group",className:gt("flex h-full w-full aria-[orientation=vertical]:flex-col",e),...n})}function Yb({...e}){return M.jsx(u_,{"data-slot":"resizable-panel",...e})}function PA({withHandle:e,className:n,...r}){return M.jsx(c_,{"data-slot":"resizable-handle",className:gt("relative flex w-px items-center justify-center bg-border ring-offset-background after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-ring focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90",n),...r,children:e&&M.jsx("div",{className:"z-10 flex h-6 w-1 shrink-0 rounded-lg bg-border"})})}const Fb=e=>e??"additions",UA=(e,n)=>e.lineNumber!==n.lineNumber?e.lineNumber-n.lineNumber:e.side===n.side?0:e.side==="deletions"?-1:1,Oh=e=>{const n={lineNumber:e.start,side:Fb(e.side)},r={lineNumber:e.end,side:Fb(e.endSide??e.side)};return UA(n,r)<=0?{first:n,last:r}:{first:r,last:n}},gu=e=>`${e.side==="deletions"?"L":"R"}${e.lineNumber}`,ru=e=>{const{first:n,last:r}=Oh(e),a=gu(n),l=gu(r);return a===l?`Note on line ${a}`:`Note on lines ${a} to ${l}`},HA=e=>{const{first:n,last:r}=Oh(e),a=gu(n),l=gu(r);return a===l?`Add a note on line ${a}`:`Add a note on lines ${a} to ${l}`},d_=e=>`review-note-anchor-${e}`,Xb=e=>{const{last:n}=Oh(e);return{lineNumber:n.lineNumber,side:n.side}},jA=(e,n,r)=>{const a=n.filter(l=>l.fileId===e).map(l=>{const u=Xb(l.range);return{lineNumber:u.lineNumber,side:u.side,metadata:{kind:"note",noteId:l.id}}});if(r?.fileId===e){const l=Xb(r.range);a.push({lineNumber:l.lineNumber,side:l.side,metadata:{kind:"draft-note"}})}return a},Wb=e=>{let n;const r=new Set,a=(m,g)=>{const v=typeof m=="function"?m(n):m;if(!Object.is(v,n)){const b=n;n=g??(typeof v!="object"||v===null)?v:Object.assign({},n,v),r.forEach(_=>_(n,b))}},l=()=>n,d={setState:a,getState:l,getInitialState:()=>f,subscribe:m=>(r.add(m),()=>r.delete(m))},f=n=e(a,l,d);return d},VA=(e=>e?Wb(e):Wb),BA=e=>e;function GA(e,n=BA){const r=Ua.useSyncExternalStore(e.subscribe,Ua.useCallback(()=>n(e.getState()),[e,n]),Ua.useCallback(()=>n(e.getInitialState()),[e,n]));return Ua.useDebugValue(r),r}const Qb=e=>{const n=VA(e),r=a=>GA(n,a);return Object.assign(r,n),r},$A=(e=>e?Qb(e):Qb),qA=()=>typeof crypto<"u"&&typeof crypto.randomUUID=="function"?crypto.randomUUID():`${Date.now()}-${Math.random().toString(36).slice(2,8)}`,Vs=(e,n,r)=>({fileId:e,fileLabel:n,range:r}),Zb=()=>({activeSelection:null,draftSelection:null,draftNoteBody:"",notes:[],activeNoteId:null}),at=$A((e,n)=>({...Zb(),startSelection:()=>{e({activeSelection:null,draftSelection:null,draftNoteBody:"",activeNoteId:null})},changeSelection:(r,a,l)=>{if(l==null){e(u=>({activeSelection:u.activeSelection?.fileId===r?null:u.activeSelection}));return}e({activeSelection:Vs(r,a,l)})},endSelection:(r,a,l)=>{if(l==null){e(c=>{const d=c.draftSelection?.fileId===r;return{activeSelection:c.activeSelection?.fileId===r?null:c.activeSelection,draftSelection:d?null:c.draftSelection,draftNoteBody:d?"":c.draftNoteBody}});return}const u=Vs(r,a,l);e({activeSelection:u,draftSelection:u,draftNoteBody:"",activeNoteId:null})},setDraftNoteBody:r=>{e({draftNoteBody:r})},selectNote:r=>{if(r==null){e({activeNoteId:null,activeSelection:null});return}const a=n().notes.find(l=>l.id===r);if(a==null){e({activeNoteId:null,activeSelection:null});return}e({activeNoteId:a.id,activeSelection:Vs(a.fileId,a.fileLabel,a.range),draftSelection:null,draftNoteBody:""})},addNote:()=>{const{notes:r,draftSelection:a,draftNoteBody:l}=n();if(a==null)return;const u=l.trim();if(u.length===0)return;const c={id:qA(),fileId:a.fileId,fileLabel:a.fileLabel,range:a.range,body:u};e({notes:[c,...r],activeNoteId:c.id,activeSelection:Vs(c.fileId,c.fileLabel,c.range),draftSelection:null,draftNoteBody:""})},cancelNote:()=>{e({activeSelection:null,draftSelection:null,draftNoteBody:""})},deleteNote:r=>{e(a=>{const l=a.activeNoteId===r;return{notes:a.notes.filter(u=>u.id!==r),activeNoteId:l?null:a.activeNoteId,activeSelection:l?null:a.activeSelection}})},reset:()=>{e(Zb())}}));function YA(){const e=at(u=>u.notes),n=at(u=>u.activeNoteId),r=at(u=>u.selectNote),a=at(u=>u.deleteNote),l=async()=>{if(e.length===0||typeof navigator>"u"||navigator.clipboard==null)return;const u=e.map(c=>`File: ${c.fileLabel}
|
|
11
|
+
${ru(c.range)}
|
|
12
|
+
${c.body}`).join(`
|
|
13
|
+
|
|
14
|
+
`);await navigator.clipboard.writeText(u)};return M.jsxs("div",{className:"flex h-full min-h-0 flex-col bg-background",children:[M.jsxs("div",{className:"shrink-0 border-b px-4 py-3",children:[M.jsxs("div",{className:"flex items-center justify-between gap-3",children:[M.jsx("div",{className:"font-sans text-sm font-medium",children:"Notes"}),M.jsxs("div",{className:"font-sans text-xs text-muted-foreground",children:[e.length," note",e.length===1?"":"s"]})]}),M.jsx("p",{className:"mt-1 font-sans text-xs text-muted-foreground",children:"Select a line range in the diff, write inline, then add it here."})]}),M.jsx(Eh,{className:"min-h-0 flex-1",children:M.jsx("div",{className:"flex flex-col gap-3 p-4",children:e.length===0?M.jsxs("div",{className:"px-4 py-5 text-center",children:[M.jsx("div",{className:"font-sans text-sm text-muted-foreground",children:"No notes yet"}),M.jsx("p",{className:"mt-1 font-sans text-xs leading-5 text-muted-foreground/70",children:"Drag in the gutter lane, then use the inline note box inside the hunk."})]}):e.map(u=>M.jsxs("div",{className:gt("p-3 text-left transition hover:bg-muted/15",n===u.id&&"bg-muted/40"),children:[M.jsxs("div",{className:"flex items-start justify-between gap-3",children:[M.jsxs("button",{type:"button",onClick:()=>r(u.id),className:"min-w-0 flex-1 text-left",children:[M.jsx("div",{className:"truncate font-mono text-xs text-foreground",children:u.fileLabel}),M.jsx("div",{className:"mt-1 font-sans text-xs text-muted-foreground",children:ru(u.range)})]}),n===u.id?M.jsx(Nn,{type:"button",variant:"ghost",size:"icon-sm","aria-label":`Delete note on ${ru(u.range)}`,onClick:()=>a(u.id),children:M.jsx(JE,{})}):null]}),M.jsx("button",{type:"button",onClick:()=>r(u.id),className:"mt-3 block w-full text-left",children:M.jsx("p",{className:"whitespace-pre-wrap font-sans text-sm leading-6 text-foreground",children:u.body})})]},u.id))})}),M.jsx("div",{className:"shrink-0 border-t px-4 py-3",children:M.jsx("div",{className:"flex justify-end",children:M.jsxs(Nn,{type:"button",variant:"outline",size:"sm",onClick:l,disabled:e.length===0,children:[M.jsx(PE,{}),"Copy notes"]})})})]})}function f_({controlled:e,default:n,name:r,state:a="value"}){const{current:l}=z.useRef(e!==void 0),[u,c]=z.useState(n),d=l?e:u,f=z.useCallback(m=>{l||c(m)},[]);return[d,f]}const h_=z.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},elementsRef:{current:[]},nextIndexRef:{current:0}});function FA(){return z.useContext(h_)}function XA(e){const{children:n,elementsRef:r,labelsRef:a,onMapChange:l}=e,u=Lt(l),c=z.useRef(0),d=Nr(QA).current,f=Nr(WA).current,[m,g]=z.useState(0),v=z.useRef(m),b=Lt((w,C)=>{f.set(w,C??null),v.current+=1,g(v.current)}),_=Lt(w=>{f.delete(w),v.current+=1,g(v.current)}),S=z.useMemo(()=>{const w=new Map;return Array.from(f.keys()).filter(A=>A.isConnected).sort(ZA).forEach((A,R)=>{const T=f.get(A)??{};w.set(A,{...T,index:R})}),w},[f,m]);Ze(()=>{if(typeof MutationObserver!="function"||S.size===0)return;const w=new MutationObserver(C=>{const A=new Set,R=T=>A.has(T)?A.delete(T):A.add(T);C.forEach(T=>{T.removedNodes.forEach(R),T.addedNodes.forEach(R)}),A.size===0&&(v.current+=1,g(v.current))});return S.forEach((C,A)=>{A.parentElement&&w.observe(A.parentElement,{childList:!0})}),()=>{w.disconnect()}},[S]),Ze(()=>{v.current===m&&(r.current.length!==S.size&&(r.current.length=S.size),a&&a.current.length!==S.size&&(a.current.length=S.size),c.current=S.size),u(S)},[u,S,r,a,m]),Ze(()=>()=>{r.current=[]},[r]),Ze(()=>()=>{a&&(a.current=[])},[a]);const E=Lt(w=>(d.add(w),()=>{d.delete(w)}));Ze(()=>{d.forEach(w=>w(S))},[d,S]);const L=z.useMemo(()=>({register:b,unregister:_,subscribeMapChange:E,elementsRef:r,labelsRef:a,nextIndexRef:c}),[b,_,E,r,a,c]);return M.jsx(h_.Provider,{value:L,children:n})}function WA(){return new Map}function QA(){return new Set}function ZA(e,n){const r=e.compareDocumentPosition(n);return r&Node.DOCUMENT_POSITION_FOLLOWING||r&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:r&Node.DOCUMENT_POSITION_PRECEDING||r&Node.DOCUMENT_POSITION_CONTAINS?1:0}const p_=z.createContext(void 0);function Mh(){const e=z.useContext(p_);if(e===void 0)throw new Error(Ir(10));return e}const m_="none",KA="trigger-press";function Dh(e,n,r,a){let l=!1,u=!1;const c=Ar;return{reason:e,event:n??new Event("base-ui"),cancel(){l=!0},allowPropagation(){u=!0},get isCanceled(){return l},get isPropagationAllowed(){return u},trigger:r,...c}}const JA={value:()=>null},ek=z.forwardRef(function(n,r){const{render:a,className:l,disabled:u=!1,hiddenUntilFound:c,keepMounted:d,loopFocus:f=!0,onValueChange:m,multiple:g=!1,orientation:v="vertical",value:b,defaultValue:_,...S}=n,E=xh(),L=z.useMemo(()=>{if(b===void 0)return _??[]},[b,_]),w=Lt(m),C=z.useRef([]),[A,R]=f_({controlled:b,default:L,name:"Accordion",state:"value"}),T=Lt((K,Z)=>{const F=Dh(m_);if(g)if(Z){const V=A.slice();if(V.push(K),w(V,F),F.isCanceled)return;R(V)}else{const V=A.filter(te=>te!==K);if(w(V,F),F.isCanceled)return;R(V)}else{const V=A[0]===K?[]:[K];if(w(V,F),F.isCanceled)return;R(V)}}),P=z.useMemo(()=>({value:A,disabled:u,orientation:v}),[A,u,v]),H=z.useMemo(()=>({accordionItemRefs:C,direction:E,disabled:u,handleValueChange:T,hiddenUntilFound:c??!1,keepMounted:d??!1,loopFocus:f,orientation:v,state:P,value:A}),[E,u,T,c,d,f,v,P,A]),I=Mn("div",n,{state:P,ref:r,props:[{dir:E,role:"region"},S],stateAttributesMapping:JA});return M.jsx(p_.Provider,{value:H,children:M.jsx(XA,{elementsRef:C,children:I})})});var tk=gy();const Bs=null;class nk{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=n=>{this.isScheduled=!1;const r=this.callbacks,a=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,a>0)for(let l=0;l<r.length;l+=1)r[l]?.(n)};request(n){const r=this.nextId;return this.nextId+=1,this.callbacks.push(n),this.callbacksCount+=1,!this.isScheduled&&(requestAnimationFrame(this.tick),this.isScheduled=!0),r}cancel(n){const r=n-this.startId;r<0||r>=this.callbacks.length||(this.callbacks[r]=null,this.callbacksCount-=1)}}const Gs=new nk;class rt{static create(){return new rt}static request(n){return Gs.request(n)}static cancel(n){return Gs.cancel(n)}currentId=Bs;request(n){this.cancel(),this.currentId=Gs.request(()=>{this.currentId=Bs,n()})}cancel=()=>{this.currentId!==Bs&&(Gs.cancel(this.currentId),this.currentId=Bs)};disposeEffect=()=>this.cancel}function g_(){const e=Nr(rt.create).current;return yh(e.disposeEffect),e}function ik(e){return e==null?e:"current"in e?e.current:e}let sl=(function(e){return e.startingStyle="data-starting-style",e.endingStyle="data-ending-style",e})({});const rk={[sl.startingStyle]:""},ak={[sl.endingStyle]:""},ok={transitionStatus(e){return e==="starting"?rk:e==="ending"?ak:null}};function v_(e,n=!1,r=!0){const a=g_();return Lt((l,u=null)=>{a.cancel();function c(){tk.flushSync(l)}const d=ik(e);if(d==null)return;const f=d;if(typeof f.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED)l();else{let v=function(){const _=sl.startingStyle;if(!f.hasAttribute(_)){a.request(b);return}const S=new MutationObserver(()=>{f.hasAttribute(_)||(S.disconnect(),b())});S.observe(f,{attributes:!0,attributeFilter:[_]}),u?.addEventListener("abort",()=>S.disconnect(),{once:!0})},b=function(){Promise.all(f.getAnimations().map(_=>_.finished)).then(()=>{u?.aborted||c()}).catch(()=>{const _=f.getAnimations();if(r){if(u?.aborted)return;c()}else _.length>0&&_.some(S=>S.pending||S.playState!=="finished")&&b()})};var m=v,g=b;if(n){v();return}a.request(b)}})}function lk(e,n=!1,r=!1){const[a,l]=z.useState(e&&n?"idle":void 0),[u,c]=z.useState(e);return e&&!u&&(c(!0),l("starting")),!e&&u&&a!=="ending"&&!r&&l("ending"),!e&&!u&&a==="ending"&&l(void 0),Ze(()=>{if(!e&&u&&a!=="ending"&&r){const d=rt.request(()=>{l("ending")});return()=>{rt.cancel(d)}}},[e,u,a,r]),Ze(()=>{if(!e||n)return;const d=rt.request(()=>{l(void 0)});return()=>{rt.cancel(d)}},[n,e]),Ze(()=>{if(!e||!n)return;e&&u&&a!=="idle"&&l("starting");const d=rt.request(()=>{l("idle")});return()=>{rt.cancel(d)}},[n,e,u,l,a]),z.useMemo(()=>({mounted:u,setMounted:c,transitionStatus:a}),[u,a])}function sk(e){const{open:n,defaultOpen:r,onOpenChange:a,disabled:l}=e,u=n!==void 0,[c,d]=f_({controlled:n,default:r,name:"Collapsible",state:"open"}),{mounted:f,setMounted:m,transitionStatus:g}=lk(c,!0,!0),[v,b]=z.useState(c),[{height:_,width:S},E]=z.useState({height:void 0,width:void 0}),L=pu(),[w,C]=z.useState(),A=w??L,[R,T]=z.useState(!1),[P,H]=z.useState(!1),I=z.useRef(null),K=z.useRef(null),Z=z.useRef(null),F=z.useRef(null),V=v_(F,!1),te=Lt(J=>{const W=!c,D=Dh(KA,J.nativeEvent);if(a(W,D),D.isCanceled)return;const Y=F.current;K.current==="css-animation"&&Y!=null&&Y.style.removeProperty("animation-name"),!R&&!P&&(K.current!=null&&K.current!=="css-animation"&&!f&&W&&m(!0),K.current==="css-animation"&&(!v&&W&&b(!0),!f&&W&&m(!0))),d(W),K.current==="none"&&f&&!W&&m(!1)});return Ze(()=>{u&&K.current==="none"&&!P&&!c&&m(!1)},[u,P,c,n,m]),z.useMemo(()=>({abortControllerRef:I,animationTypeRef:K,disabled:l,handleTrigger:te,height:_,mounted:f,open:c,panelId:A,panelRef:F,runOnceAnimationsFinish:V,setDimensions:E,setHiddenUntilFound:T,setKeepMounted:H,setMounted:m,setOpen:d,setPanelIdState:C,setVisible:b,transitionDimensionRef:Z,transitionStatus:g,visible:v,width:S}),[I,K,l,te,_,f,c,A,F,V,E,T,H,m,d,b,Z,g,v,S])}const b_=z.createContext(void 0);function y_(){const e=z.useContext(b_);if(e===void 0)throw new Error(Ir(15));return e}let uk=(function(e){return e[e.None=0]="None",e[e.GuessFromOrder=1]="GuessFromOrder",e})({});function ck(e={}){const{label:n,metadata:r,textRef:a,indexGuessBehavior:l,index:u}=e,{register:c,unregister:d,subscribeMapChange:f,elementsRef:m,labelsRef:g,nextIndexRef:v}=FA(),b=z.useRef(-1),[_,S]=z.useState(u??(l===uk.GuessFromOrder?()=>{if(b.current===-1){const w=v.current;v.current+=1,b.current=w}return b.current}:-1)),E=z.useRef(null),L=z.useCallback(w=>{if(E.current=w,_!==-1&&w!==null&&(m.current[_]=w,g)){const C=n!==void 0;g.current[_]=C?n:a?.current?.textContent??w.textContent}},[_,m,g,n,a]);return Ze(()=>{if(u!=null)return;const w=E.current;if(w)return c(w,r),()=>{d(w)}},[u,c,d,r]),Ze(()=>{if(u==null)return f(w=>{const C=E.current?w.get(E.current)?.index:null;C!=null&&S(C)})},[u,f,S]),z.useMemo(()=>({ref:L,index:_}),[_,L])}const __=z.createContext(void 0);function zh(){const e=z.useContext(__);if(e===void 0)throw new Error(Ir(9));return e}let tl=(function(e){return e.open="data-open",e.closed="data-closed",e[e.startingStyle=sl.startingStyle]="startingStyle",e[e.endingStyle=sl.endingStyle]="endingStyle",e})({}),dk=(function(e){return e.panelOpen="data-panel-open",e})({});const fk={[tl.open]:""},hk={[tl.closed]:""},pk={open(e){return e?{[dk.panelOpen]:""}:null}},mk={open(e){return e?fk:hk}};let gk=(function(e){return e.index="data-index",e.disabled="data-disabled",e.open="data-open",e})({});const Ih={...mk,index:e=>Number.isInteger(e)?{[gk.index]:String(e)}:null,...ok,value:()=>null},vk=z.forwardRef(function(n,r){const{className:a,disabled:l=!1,onOpenChange:u,render:c,value:d,...f}=n,{ref:m,index:g}=ck(),v=cu(r,m),{disabled:b,handleValueChange:_,state:S,value:E}=Mh(),L=pu(),w=d??L,C=l||b,A=z.useMemo(()=>{if(!E)return!1;for(let te=0;te<E.length;te+=1)if(E[te]===w)return!0;return!1},[E,w]),R=Lt((te,J)=>{u?.(te,J),!J.isCanceled&&_(w,te)}),T=sk({open:A,onOpenChange:R,disabled:C}),P=z.useMemo(()=>({open:T.open,disabled:T.disabled,hidden:!T.mounted,transitionStatus:T.transitionStatus}),[T.open,T.disabled,T.mounted,T.transitionStatus]),H=z.useMemo(()=>({...T,onOpenChange:R,state:P}),[T,P,R]),I=z.useMemo(()=>({...S,index:g,disabled:C,open:A}),[C,g,A,S]),[K,Z]=z.useState(pu()),F=z.useMemo(()=>({open:A,state:I,setTriggerId:Z,triggerId:K}),[A,I,Z,K]),V=Mn("div",n,{state:I,ref:v,props:f,stateAttributesMapping:Ih});return M.jsx(b_.Provider,{value:H,children:M.jsx(__.Provider,{value:F,children:V})})}),bk=z.forwardRef(function(n,r){const{render:a,className:l,...u}=n,{state:c}=zh();return Mn("h3",n,{state:c,ref:r,props:u,stateAttributesMapping:Ih})});function Kb(e){return e==null||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true"}const Ph="ArrowUp",Uh="ArrowDown",Hh="ArrowLeft",jh="ArrowRight",S_="Home",x_="End",yk=new Set([Hh,jh]),_k=new Set([Ph,Uh]),Sk=new Set([...yk,..._k]);[...Sk];const xk=new Set([Uh,Ph,jh,Hh,S_,x_]);function Ek(e){const{current:n}=e,r=[];for(let a=0;a<n.length;a+=1){const l=n[a];if(!Kb(l)){const u=l?.querySelector('[type="button"], [role="button"]');u&&!Kb(u)&&r.push(u)}}return r}const wk=z.forwardRef(function(n,r){const{disabled:a,className:l,id:u,render:c,nativeButton:d=!0,...f}=n,{panelId:m,open:g,handleTrigger:v,disabled:b}=y_(),_=a??b,{getButtonProps:S,buttonRef:E}=Ey({disabled:_,focusableWhenDisabled:!0,native:d,composite:!0}),{accordionItemRefs:L,direction:w,loopFocus:C,orientation:A}=Mh(),R=w==="rtl",T=A==="horizontal",{state:P,setTriggerId:H,triggerId:I}=zh();Ze(()=>(u&&H(u),()=>{H(void 0)}),[u,H]);const K=z.useMemo(()=>({"aria-controls":g?m:void 0,"aria-expanded":g,id:I,tabIndex:0,onClick:v,onKeyDown(F){if(!xk.has(F.key))return;DC(F);const V=Ek(L),J=V.length-1;let W=-1;const D=V.indexOf(F.target);function Y(){C?W=D+1>J?0:D+1:W=Math.min(D+1,J)}function re(){C?W=D===0?J:D-1:W=D-1}switch(F.key){case Uh:T||Y();break;case Ph:T||re();break;case jh:T&&(R?re():Y());break;case Hh:T&&(R?Y():re());break;case"Home":W=0;break;case"End":W=J;break}W>-1&&V[W].focus()}}),[L,v,I,T,R,C,g,m]);return Mn("button",n,{state:P,ref:[r,E],props:[K,f,S],stateAttributesMapping:pk})});let Ck=(function(e){return e.disabled="data-disabled",e.orientation="data-orientation",e})({});function Ak(e){const{abortControllerRef:n,animationTypeRef:r,externalRef:a,height:l,hiddenUntilFound:u,keepMounted:c,id:d,mounted:f,onOpenChange:m,open:g,panelRef:v,runOnceAnimationsFinish:b,setDimensions:_,setMounted:S,setOpen:E,setVisible:L,transitionDimensionRef:w,visible:C,width:A}=e,R=z.useRef(!1),T=z.useRef(null),P=z.useRef(g),H=z.useRef(g),I=g_(),K=z.useMemo(()=>r.current==="css-animation"?!C:!g&&!f,[g,f,C,r]),Z=Lt(V=>{if(!V)return;if(r.current==null||w.current==null){const W=getComputedStyle(V),D=W.animationName!=="none"&&W.animationName!=="",Y=W.transitionDuration!=="0s"&&W.transitionDuration!=="";D&&Y||(W.animationName==="none"&&W.transitionDuration!=="0s"?r.current="css-transition":W.animationName!=="none"&&W.transitionDuration==="0s"?r.current="css-animation":r.current="none"),V.getAttribute(Ck.orientation)==="horizontal"||W.transitionProperty.indexOf("width")>-1?w.current="width":w.current="height"}if(r.current!=="css-transition")return;(l===void 0||A===void 0)&&(_({height:V.scrollHeight,width:V.scrollWidth}),H.current&&V.style.setProperty("transition-duration","0s"));let te=-1,J=-1;return te=rt.request(()=>{H.current=!1,J=rt.request(()=>{setTimeout(()=>{V.style.removeProperty("transition-duration")})})}),()=>{rt.cancel(te),rt.cancel(J)}}),F=cu(a,v,Z);return Ze(()=>{if(r.current!=="css-transition")return;const V=v.current;if(!V)return;let te=-1;if(n.current!=null&&(n.current.abort(),n.current=null),g){const J={"justify-content":V.style.justifyContent,"align-items":V.style.alignItems,"align-content":V.style.alignContent,"justify-items":V.style.justifyItems};Object.keys(J).forEach(W=>{V.style.setProperty(W,"initial","important")}),!H.current&&!c&&V.setAttribute(tl.startingStyle,""),_({height:V.scrollHeight,width:V.scrollWidth}),te=rt.request(()=>{Object.entries(J).forEach(([W,D])=>{D===""?V.style.removeProperty(W):V.style.setProperty(W,D)})})}else{if(V.scrollHeight===0&&V.scrollWidth===0)return;_({height:V.scrollHeight,width:V.scrollWidth});const J=new AbortController;n.current=J;const W=J.signal;let D=null;const Y=tl.endingStyle;return D=new MutationObserver(re=>{re.some(ie=>ie.type==="attributes"&&ie.attributeName===Y)&&(D?.disconnect(),D=null,b(()=>{_({height:0,width:0}),V.style.removeProperty("content-visibility"),S(!1),n.current===J&&(n.current=null)},W))}),D.observe(V,{attributes:!0,attributeFilter:[Y]}),()=>{D?.disconnect(),I.cancel(),n.current===J&&(J.abort(),n.current=null)}}return()=>{rt.cancel(te)}},[n,r,I,u,c,f,g,v,b,_,S]),Ze(()=>{if(r.current!=="css-animation")return;const V=v.current;V&&(T.current=V.style.animationName||T.current,V.style.setProperty("animation-name","none"),_({height:V.scrollHeight,width:V.scrollWidth}),!P.current&&!R.current&&V.style.removeProperty("animation-name"),g?(n.current!=null&&(n.current.abort(),n.current=null),S(!0),L(!0)):(n.current=new AbortController,b(()=>{S(!1),L(!1),n.current=null},n.current.signal)))},[n,r,g,v,b,_,S,L,C]),yh(()=>{const V=rt.request(()=>{P.current=!1});return()=>rt.cancel(V)}),Ze(()=>{if(!u)return;const V=v.current;if(!V)return;let te=-1,J=-1;return g&&R.current&&(V.style.transitionDuration="0s",_({height:V.scrollHeight,width:V.scrollWidth}),te=rt.request(()=>{R.current=!1,J=rt.request(()=>{setTimeout(()=>{V.style.removeProperty("transition-duration")})})})),()=>{rt.cancel(te),rt.cancel(J)}},[u,g,v,_]),Ze(()=>{const V=v.current;V&&u&&K&&(V.setAttribute("hidden","until-found"),r.current==="css-transition"&&V.setAttribute(tl.startingStyle,""))},[u,K,r,v]),z.useEffect(function(){const te=v.current;if(!te)return;function J(W){R.current=!0,E(!0),m(!0,Dh(m_,W))}return te.addEventListener("beforematch",J),()=>{te.removeEventListener("beforematch",J)}},[m,v,E]),z.useMemo(()=>({props:{hidden:K,id:d,ref:F}}),[K,d,F])}let Jb=(function(e){return e.accordionPanelHeight="--accordion-panel-height",e.accordionPanelWidth="--accordion-panel-width",e})({});function kk(e){const{enabled:n=!0,open:r,ref:a,onComplete:l}=e,u=Lt(l),c=v_(a,r,!1);z.useEffect(()=>{if(!n)return;const d=new AbortController;return c(u,d.signal),()=>{d.abort()}},[n,r,u,c])}const Tk=z.forwardRef(function(n,r){const{className:a,hiddenUntilFound:l,keepMounted:u,id:c,render:d,...f}=n,{hiddenUntilFound:m,keepMounted:g}=Mh(),{abortControllerRef:v,animationTypeRef:b,height:_,mounted:S,onOpenChange:E,open:L,panelId:w,panelRef:C,runOnceAnimationsFinish:A,setDimensions:R,setHiddenUntilFound:T,setKeepMounted:P,setMounted:H,setOpen:I,setVisible:K,transitionDimensionRef:Z,visible:F,width:V,setPanelIdState:te,transitionStatus:J}=y_(),W=l??m,D=u??g;Ze(()=>{if(c)return te(c),()=>{te(void 0)}},[c,te]),Ze(()=>{T(W)},[T,W]),Ze(()=>{P(D)},[P,D]),kk({open:L&&J==="idle",ref:C,onComplete(){L&&R({width:void 0,height:void 0})}});const{props:Y}=Ak({abortControllerRef:v,animationTypeRef:b,externalRef:r,height:_,hiddenUntilFound:W,id:c??w,keepMounted:D,mounted:S,onOpenChange:E,open:L,panelRef:C,runOnceAnimationsFinish:A,setDimensions:R,setMounted:H,setOpen:I,setVisible:K,transitionDimensionRef:Z,visible:F,width:V}),{state:re,triggerId:ce}=zh(),ie=z.useMemo(()=>({...re,transitionStatus:J}),[re,J]),N=Mn("div",n,{state:ie,ref:[r,C],props:[Y,{"aria-labelledby":ce,role:"region",style:{[Jb.accordionPanelHeight]:_===void 0?"auto":`${_}px`,[Jb.accordionPanelWidth]:V===void 0?"auto":`${V}px`}},f],stateAttributesMapping:Ih});return D||W||!D&&S?N:null});function E_({className:e,...n}){return M.jsx(ek,{"data-slot":"accordion",className:gt("flex w-full flex-col",e),...n})}function w_({className:e,...n}){return M.jsx(vk,{"data-slot":"accordion-item",className:gt("not-last:border-b",e),...n})}function C_({className:e,children:n,...r}){return M.jsx(bk,{className:"flex",children:M.jsxs(wk,{"data-slot":"accordion-trigger",className:gt("group/accordion-trigger relative flex flex-1 items-start justify-between rounded-lg border border-transparent py-2.5 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:after:border-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground",e),...r,children:[n,M.jsx(kE,{"data-slot":"accordion-trigger-icon",className:"pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden"}),M.jsx(OE,{"data-slot":"accordion-trigger-icon",className:"pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline"})]})})}function A_({className:e,children:n,...r}){return M.jsx(Tk,{"data-slot":"accordion-content",className:"overflow-hidden text-sm data-open:animate-accordion-down data-closed:animate-accordion-up",...r,children:M.jsx("div",{className:gt("h-(--accordion-panel-height) pt-0 pb-2.5 data-ending-style:h-0 data-starting-style:h-0 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",e),children:n})})}const vu="diffs-container",Lk=/(?=^From [a-f0-9]+ .+$)/m,au=/(?=^diff --git)/gm,e0=/(?=^---\s+\S)/gm,Rk=/(?=^@@ )/gm,Nk=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,pf=new RegExp("(?<=\\n)"),Ok=/^(---|\+\+\+)\s+([^\t\r\n]+)/,Mk=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,Dk=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,zk=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,Vh="header-prefix",Bh="header-metadata",Rn={dark:"pierre-dark",light:"pierre-light"},k_="data-unsafe-css",Ga=1,Ik={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,hunkSeparatorHeight:32,fileGap:8},Pk=Object.freeze({fromStart:0,fromEnd:0}),t0={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},Uk={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function n0(e,n){return e?.start===n?.start&&e?.end===n?.end&&e?.side===n?.side&&e?.endSide===n?.endSide}function yi(e){return{type:"text",value:e}}function Ne({tagName:e,children:n=[],properties:r={}}){return{type:"element",tagName:e,properties:r,children:n}}function bu({name:e,width:n=16,height:r=16,properties:a}){return Ne({tagName:"svg",properties:{width:n,height:r,viewBox:"0 0 16 16",...a},children:[Ne({tagName:"use",properties:{href:`#${e.replace(/^#/,"")}`}})]})}function Hk(e){let n=e.children[0];for(;n!=null;){if(n.type==="element"&&n.tagName==="code")return n;"children"in n?n=n.children[0]:n=null}}function $s(e){return Ne({tagName:"div",properties:{"data-gutter":""},children:e})}function jk(e,n,r,a={}){return Ne({tagName:"div",properties:{"data-line-type":e,"data-column-number":n,"data-line-index":r,...a},children:n!=null?[Ne({tagName:"span",properties:{"data-line-number-content":""},children:[yi(`${n}`)]})]:void 0})}function kn(e,n,r){return Ne({tagName:"div",properties:{"data-gutter-buffer":n,"data-buffer-size":r,"data-line-type":n==="annotation"?void 0:e,style:n==="annotation"?`grid-row: span ${r};`:`grid-row: span ${r};min-height:calc(${r} * 1lh);`}})}function Vk(){return Ne({tagName:"button",properties:{"data-utility-button":"",type:"button"},children:[bu({name:"diffs-icon-plus",properties:{"data-icon":""}})]})}function Bk(e,n){return e.lineNumber===n.lineNumber&&e.side===n.side}const Gk=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class gl{constructor(n,r,a){this.normal=r,this.property=n,a&&(this.space=a)}}gl.prototype.normal={};gl.prototype.property={};gl.prototype.space=void 0;function T_(e,n){const r={},a={};for(const l of e)Object.assign(r,l.property),Object.assign(a,l.normal);return new gl(r,a,n)}function Ff(e){return e.toLowerCase()}class Xt{constructor(n,r){this.attribute=r,this.property=n}}Xt.prototype.attribute="";Xt.prototype.booleanish=!1;Xt.prototype.boolean=!1;Xt.prototype.commaOrSpaceSeparated=!1;Xt.prototype.commaSeparated=!1;Xt.prototype.defined=!1;Xt.prototype.mustUseProperty=!1;Xt.prototype.number=!1;Xt.prototype.overloadedBoolean=!1;Xt.prototype.property="";Xt.prototype.spaceSeparated=!1;Xt.prototype.space=void 0;let $k=0;const Ee=jr(),ct=jr(),Xf=jr(),se=jr(),Fe=jr(),$a=jr(),nn=jr();function jr(){return 2**++$k}const Wf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ee,booleanish:ct,commaOrSpaceSeparated:nn,commaSeparated:$a,number:se,overloadedBoolean:Xf,spaceSeparated:Fe},Symbol.toStringTag,{value:"Module"})),mf=Object.keys(Wf);class Gh extends Xt{constructor(n,r,a,l){let u=-1;if(super(n,r),i0(this,"space",l),typeof a=="number")for(;++u<mf.length;){const c=mf[u];i0(this,mf[u],(a&Wf[c])===Wf[c])}}}Gh.prototype.defined=!0;function i0(e,n,r){r&&(e[n]=r)}function Qa(e){const n={},r={};for(const[a,l]of Object.entries(e.properties)){const u=new Gh(a,e.transform(e.attributes||{},a),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(u.mustUseProperty=!0),n[a]=u,r[Ff(a)]=a,r[Ff(u.attribute)]=a}return new gl(n,r,e.space)}const L_=Qa({properties:{ariaActiveDescendant:null,ariaAtomic:ct,ariaAutoComplete:null,ariaBusy:ct,ariaChecked:ct,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:Fe,ariaCurrent:null,ariaDescribedBy:Fe,ariaDetails:null,ariaDisabled:ct,ariaDropEffect:Fe,ariaErrorMessage:null,ariaExpanded:ct,ariaFlowTo:Fe,ariaGrabbed:ct,ariaHasPopup:null,ariaHidden:ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Fe,ariaLevel:se,ariaLive:null,ariaModal:ct,ariaMultiLine:ct,ariaMultiSelectable:ct,ariaOrientation:null,ariaOwns:Fe,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:ct,ariaReadOnly:ct,ariaRelevant:null,ariaRequired:ct,ariaRoleDescription:Fe,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:ct,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 R_(e,n){return n in e?e[n]:n}function N_(e,n){return R_(e,n.toLowerCase())}const qk=Qa({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:$a,acceptCharset:Fe,accessKey:Fe,action:null,allow:null,allowFullScreen:Ee,allowPaymentRequest:Ee,allowUserMedia:Ee,alt:null,as:null,async:Ee,autoCapitalize:null,autoComplete:Fe,autoFocus:Ee,autoPlay:Ee,blocking:Fe,capture:null,charSet:null,checked:Ee,cite:null,className:Fe,cols:se,colSpan:null,content:null,contentEditable:ct,controls:Ee,controlsList:Fe,coords:se|$a,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ee,defer:Ee,dir:null,dirName:null,disabled:Ee,download:Xf,draggable:ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ee,formTarget:null,headers:Fe,height:se,hidden:Xf,high:se,href:null,hrefLang:null,htmlFor:Fe,httpEquiv:Fe,id:null,imageSizes:null,imageSrcSet:null,inert:Ee,inputMode:null,integrity:null,is:null,isMap:Ee,itemId:null,itemProp:Fe,itemRef:Fe,itemScope:Ee,itemType:Fe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ee,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:Ee,muted:Ee,name:null,nonce:null,noModule:Ee,noValidate:Ee,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:Ee,optimum:se,pattern:null,ping:Fe,placeholder:null,playsInline:Ee,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ee,referrerPolicy:null,rel:Fe,required:Ee,reversed:Ee,rows:se,rowSpan:se,sandbox:Fe,scope:null,scoped:Ee,seamless:Ee,selected:Ee,shadowRootClonable:Ee,shadowRootDelegatesFocus:Ee,shadowRootMode:null,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:ct,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:Ee,useMap:null,value:ct,width:se,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Fe,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:Ee,declare:Ee,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:Ee,noHref:Ee,noShade:Ee,noWrap:Ee,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:ct,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:Ee,disableRemotePlayback:Ee,prefix:null,property:null,results:se,security:null,unselectable:null},space:"html",transform:N_}),Yk=Qa({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:nn,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:Fe,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:Ee,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:$a,g2:$a,glyphName:$a,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:nn,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:Fe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nn,rev:nn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nn,requiredFeatures:nn,requiredFonts:nn,requiredFormats:nn,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:nn,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:nn,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:nn,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:R_}),O_=Qa({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()}}),M_=Qa({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:N_}),D_=Qa({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Fk=/[A-Z]/g,r0=/-[a-z]/g,Xk=/^data[-\w.:]+$/i;function Wk(e,n){const r=Ff(n);let a=n,l=Xt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&Xk.test(n)){if(n.charAt(4)==="-"){const u=n.slice(5).replace(r0,Zk);a="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=n.slice(4);if(!r0.test(u)){let c=u.replace(Fk,Qk);c.charAt(0)!=="-"&&(c="-"+c),n="data"+c}}l=Gh}return new l(a,n)}function Qk(e){return"-"+e.toLowerCase()}function Zk(e){return e.charAt(1).toUpperCase()}const Kk=T_([L_,qk,O_,M_,D_],"html"),z_=T_([L_,Yk,O_,M_,D_],"svg"),a0={}.hasOwnProperty;function Jk(e,n){const r=n||{};function a(l,...u){let c=a.invalid;const d=a.handlers;if(l&&a0.call(l,e)){const f=String(l[e]);c=a0.call(d,f)?d[f]:a.unknown}if(c)return c.call(this,l,...u)}return a.handlers=r.handlers||{},a.invalid=r.invalid,a.unknown=r.unknown,a}const eT=/["&'<>`]/g,tT=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,nT=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,iT=/[|\\{}()[\]^$+*?.]/g,o0=new WeakMap;function rT(e,n){if(e=e.replace(n.subset?aT(n.subset):eT,a),n.subset||n.escapeOnly)return e;return e.replace(tT,r).replace(nT,a);function r(l,u,c){return n.format((l.charCodeAt(0)-55296)*1024+l.charCodeAt(1)-56320+65536,c.charCodeAt(u+2),n)}function a(l,u,c){return n.format(l.charCodeAt(0),c.charCodeAt(u+1),n)}}function aT(e){let n=o0.get(e);return n||(n=oT(e),o0.set(e,n)),n}function oT(e){const n=[];let r=-1;for(;++r<e.length;)n.push(e[r].replace(iT,"\\$&"));return new RegExp("(?:"+n.join("|")+")","g")}const lT=/[\dA-Fa-f]/;function sT(e,n,r){const a="&#x"+e.toString(16).toUpperCase();return r&&n&&!lT.test(String.fromCharCode(n))?a:a+";"}const uT=/\d/;function cT(e,n,r){const a="&#"+String(e);return r&&n&&!uT.test(String.fromCharCode(n))?a:a+";"}const dT=["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"],gf={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:"€"},fT=["cent","copy","divide","gt","lt","not","para","times"],I_={}.hasOwnProperty,Qf={};let qs;for(qs in gf)I_.call(gf,qs)&&(Qf[gf[qs]]=qs);const hT=/[^\dA-Za-z]/;function pT(e,n,r,a){const l=String.fromCharCode(e);if(I_.call(Qf,l)){const u=Qf[l],c="&"+u;return r&&dT.includes(u)&&!fT.includes(u)&&(!a||n&&n!==61&&hT.test(String.fromCharCode(n)))?c:c+";"}return""}function mT(e,n,r){let a=sT(e,n,r.omitOptionalSemicolons),l;if((r.useNamedReferences||r.useShortestReferences)&&(l=pT(e,n,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!l)&&r.useShortestReferences){const u=cT(e,n,r.omitOptionalSemicolons);u.length<a.length&&(a=u)}return l&&(!r.useShortestReferences||l.length<a.length)?l:a}function qa(e,n){return rT(e,Object.assign({format:mT},n))}const gT=/^>|^->|<!--|-->|--!>|<!-$/g,vT=[">"],bT=["<",">"];function yT(e,n,r,a){return a.settings.bogusComments?"<?"+qa(e.value,Object.assign({},a.settings.characterReferences,{subset:vT}))+">":"<!--"+e.value.replace(gT,l)+"-->";function l(u){return qa(u,Object.assign({},a.settings.characterReferences,{subset:bT}))}}function _T(e,n,r,a){return"<!"+(a.settings.upperDoctype?"DOCTYPE":"doctype")+(a.settings.tightDoctype?"":" ")+"html>"}function l0(e,n){const r=String(e);if(typeof n!="string")throw new TypeError("Expected character");let a=0,l=r.indexOf(n);for(;l!==-1;)a++,l=r.indexOf(n,l+n.length);return a}function ST(e,n){const r=n||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function xT(e){return e.join(" ").trim()}const ET=/[ \t\n\f\r]/g;function $h(e){return typeof e=="object"?e.type==="text"?s0(e.value):!1:s0(e)}function s0(e){return e.replace(ET,"")===""}const vt=U_(1),P_=U_(-1),wT=[];function U_(e){return n;function n(r,a,l){const u=r?r.children:wT;let c=(a||0)+e,d=u[c];if(!l)for(;d&&$h(d);)c+=e,d=u[c];return d}}const CT={}.hasOwnProperty;function H_(e){return n;function n(r,a,l){return CT.call(e,r.tagName)&&e[r.tagName](r,a,l)}}const qh=H_({body:kT,caption:vf,colgroup:vf,dd:NT,dt:RT,head:vf,html:AT,li:LT,optgroup:OT,option:MT,p:TT,rp:u0,rt:u0,tbody:zT,td:c0,tfoot:IT,th:c0,thead:DT,tr:PT});function vf(e,n,r){const a=vt(r,n,!0);return!a||a.type!=="comment"&&!(a.type==="text"&&$h(a.value.charAt(0)))}function AT(e,n,r){const a=vt(r,n);return!a||a.type!=="comment"}function kT(e,n,r){const a=vt(r,n);return!a||a.type!=="comment"}function TT(e,n,r){const a=vt(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 LT(e,n,r){const a=vt(r,n);return!a||a.type==="element"&&a.tagName==="li"}function RT(e,n,r){const a=vt(r,n);return!!(a&&a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd"))}function NT(e,n,r){const a=vt(r,n);return!a||a.type==="element"&&(a.tagName==="dt"||a.tagName==="dd")}function u0(e,n,r){const a=vt(r,n);return!a||a.type==="element"&&(a.tagName==="rp"||a.tagName==="rt")}function OT(e,n,r){const a=vt(r,n);return!a||a.type==="element"&&a.tagName==="optgroup"}function MT(e,n,r){const a=vt(r,n);return!a||a.type==="element"&&(a.tagName==="option"||a.tagName==="optgroup")}function DT(e,n,r){const a=vt(r,n);return!!(a&&a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot"))}function zT(e,n,r){const a=vt(r,n);return!a||a.type==="element"&&(a.tagName==="tbody"||a.tagName==="tfoot")}function IT(e,n,r){return!vt(r,n)}function PT(e,n,r){const a=vt(r,n);return!a||a.type==="element"&&a.tagName==="tr"}function c0(e,n,r){const a=vt(r,n);return!a||a.type==="element"&&(a.tagName==="td"||a.tagName==="th")}const UT=H_({body:VT,colgroup:BT,head:jT,html:HT,tbody:GT});function HT(e){const n=vt(e,-1);return!n||n.type!=="comment"}function jT(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 VT(e){const n=vt(e,-1,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&$h(n.value.charAt(0)))&&!(n.type==="element"&&(n.tagName==="meta"||n.tagName==="link"||n.tagName==="script"||n.tagName==="style"||n.tagName==="template"))}function BT(e,n,r){const a=P_(r,n),l=vt(e,-1,!0);return r&&a&&a.type==="element"&&a.tagName==="colgroup"&&qh(a,r.children.indexOf(a),r)?!1:!!(l&&l.type==="element"&&l.tagName==="col")}function GT(e,n,r){const a=P_(r,n),l=vt(e,-1);return r&&a&&a.type==="element"&&(a.tagName==="thead"||a.tagName==="tbody")&&qh(a,r.children.indexOf(a),r)?!1:!!(l&&l.type==="element"&&l.tagName==="tr")}const Ys={name:[[`
|
|
15
|
+
\f\r &/=>`.split(""),`
|
|
16
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
17
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
18
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
19
|
+
\f\r &>`.split(""),`\0
|
|
20
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
21
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
22
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function $T(e,n,r,a){const l=a.schema,u=l.space==="svg"?!1:a.settings.omitOptionalTags;let c=l.space==="svg"?a.settings.closeEmptyElements:a.settings.voids.includes(e.tagName.toLowerCase());const d=[];let f;l.space==="html"&&e.tagName==="svg"&&(a.schema=z_);const m=qT(a,e.properties),g=a.all(l.space==="html"&&e.tagName==="template"?e.content:e);return a.schema=l,g&&(c=!1),(m||!u||!UT(e,n,r))&&(d.push("<",e.tagName,m?" "+m:""),c&&(l.space==="svg"||a.settings.closeSelfClosing)&&(f=m.charAt(m.length-1),(!a.settings.tightSelfClosing||f==="/"||f&&f!=='"'&&f!=="'")&&d.push(" "),d.push("/")),d.push(">")),d.push(g),!c&&(!u||!qh(e,n,r))&&d.push("</"+e.tagName+">"),d.join("")}function qT(e,n){const r=[];let a=-1,l;if(n){for(l in n)if(n[l]!==null&&n[l]!==void 0){const u=YT(e,l,n[l]);u&&r.push(u)}}for(;++a<r.length;){const u=e.settings.tightAttributes?r[a].charAt(r[a].length-1):void 0;a!==r.length-1&&u!=='"'&&u!=="'"&&(r[a]+=" ")}return r.join("")}function YT(e,n,r){const a=Wk(e.schema,n),l=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,u=e.settings.allowDangerousCharacters?0:1;let c=e.quote,d;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 f=qa(a.attribute,Object.assign({},e.settings.characterReferences,{subset:Ys.name[l][u]}));return r===!0||(r=Array.isArray(r)?(a.commaSeparated?ST:xT)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?f:(e.settings.preferUnquoted&&(d=qa(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Ys.unquoted[l][u]}))),d!==r&&(e.settings.quoteSmart&&l0(r,c)>l0(r,e.alternative)&&(c=e.alternative),d=c+qa(r,Object.assign({},e.settings.characterReferences,{subset:(c==="'"?Ys.single:Ys.double)[l][u],attribute:!0}))+c),f+(d&&"="+d))}const FT=["<","&"];function j_(e,n,r,a){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:qa(e.value,Object.assign({},a.settings.characterReferences,{subset:FT}))}function XT(e,n,r,a){return a.settings.allowDangerousHtml?e.value:j_(e,n,r,a)}function WT(e,n,r,a){return a.all(e)}const QT=Jk("type",{invalid:ZT,unknown:KT,handlers:{comment:yT,doctype:_T,element:$T,raw:XT,root:WT,text:j_}});function ZT(e){throw new Error("Expected node, not `"+e+"`")}function KT(e){const n=e;throw new Error("Cannot compile unknown node `"+n.type+"`")}const JT={},e2={},t2=[];function Ya(e,n){const r=n||JT,a=r.quote||'"',l=a==='"'?"'":'"';if(a!=='"'&&a!=="'")throw new Error("Invalid quote `"+a+"`, expected `'` or `\"`");return{one:n2,all:i2,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||Gk,characterReferences:r.characterReferences||e2,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?z_:Kk,quote:a,alternative:l}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function n2(e,n,r){return QT(e,n,r,this)}function i2(e){const n=[],r=e&&e.children||t2;let a=-1;for(;++a<r.length;)n[a]=this.one(r[a],a,e);return n.join("")}var r2=class{hoveredLine;pre;gutterUtilityContainer;gutterUtilityButton;gutterUtilitySlot;interactiveLinesAttr=!1;interactiveLineNumbersAttr=!1;hasPointerListeners=!1;hasDocumentPointerListeners=!1;selectedRange=null;renderedSelectionRange;selectionAnchor;queuedSelectionRender;pointerSession={mode:"idle"};constructor(e,n){this.mode=e,this.options=n}setOptions(e){this.options=e}cleanUp(){this.pre?.removeEventListener("click",this.handlePointerClick),this.pre?.removeEventListener("pointerdown",this.handlePointerDown),this.pre?.removeEventListener("pointermove",this.handlePointerMove),this.pre?.removeEventListener("pointerleave",this.handlePointerLeave),this.pre?.removeAttribute("data-interactive-lines"),this.pre?.removeAttribute("data-interactive-line-numbers"),this.pre=void 0,this.gutterUtilityContainer?.remove(),this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.clearHoveredLine(),this.detachDocumentPointerListeners(),this.clearPointerSession(),this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.interactiveLinesAttr=!1,this.interactiveLineNumbersAttr=!1,this.hasPointerListeners=!1}setup(e){this.setSelectionDirty();const{usesCustomGutterUtility:n=!1,enableGutterUtility:r=!1}=this.options;this.pre!==e&&(this.cleanUp(),this.pre=e),r?this.ensureGutterUtilityNode(n):this.gutterUtilityContainer!=null&&(this.gutterUtilityContainer.remove(),this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.pointerSession.mode==="gutterSelecting"&&(this.clearPointerSession(),this.detachDocumentPointerListeners())),this.syncPointerListeners(e),this.updateInteractiveLineAttributes(),this.renderSelection()}setSelectionDirty(){this.renderedSelectionRange=void 0}isSelectionDirty(){return this.renderedSelectionRange===null}setSelection(e){const n=!(e===this.selectedRange||n0(e??void 0,this.selectedRange??void 0));!this.isSelectionDirty()&&!n||(this.selectedRange=e,this.renderSelection(),n&&this.notifySelectionCommitted())}getSelection(){return this.selectedRange}getHoveredLine=()=>{if(this.hoveredLine!=null){if(this.mode==="diff"&&this.hoveredLine.type==="diff-line")return{lineNumber:this.hoveredLine.lineNumber,side:this.hoveredLine.annotationSide};if(this.mode==="file"&&this.hoveredLine.type==="line")return{lineNumber:this.hoveredLine.lineNumber}}};handlePointerClick=e=>{const{onHunkExpand:n,onLineClick:r,onLineNumberClick:a,onMergeConflictActionClick:l}=this.options;n==null&&r==null&&a==null&&l==null||this.options.onGutterUtilityClick!=null&&p0(e.composedPath())||(pi(this.options.__debugPointerEvents,"click","FileDiff.DEBUG.handlePointerClick:",e),this.handlePointerEvent({eventType:"click",event:e}))};handlePointerMove=e=>{const{lineHoverHighlight:n="disabled",onLineEnter:r,onLineLeave:a,enableGutterUtility:l=!1}=this.options;n==="disabled"&&!l&&r==null&&a==null||(pi(this.options.__debugPointerEvents,"move","FileDiff.DEBUG.handlePointerMove:",e),this.handlePointerEvent({eventType:"move",event:e}))};handlePointerLeave=e=>{const{__debugPointerEvents:n}=this.options;if(pi(n,"move","FileDiff.DEBUG.handlePointerLeave: no event"),this.hoveredLine==null){pi(n,"move","FileDiff.DEBUG.handlePointerLeave: returned early, no .hoveredLine");return}this.gutterUtilityContainer?.remove(),this.options.onLineLeave?.({...this.hoveredLine,event:e}),this.clearHoveredLine()};handlePointerEvent({eventType:e,event:n}){const{__debugPointerEvents:r}=this.options,a=n.composedPath();pi(r,e,"FileDiff.DEBUG.handlePointerEvent:",{eventType:e,composedPath:a});const l=this.resolvePointerTarget(a);pi(r,e,"FileDiff.DEBUG.handlePointerEvent: resolvePointerTarget result:",l);const{onLineClick:u,onLineNumberClick:c,onLineEnter:d,onLineLeave:f,onHunkExpand:m,onMergeConflictActionClick:g}=this.options;switch(e){case"move":if(Xo(l)&&this.hoveredLine?.lineElement===l.lineElement)break;this.hoveredLine!=null&&(this.gutterUtilityContainer?.remove(),f?.({...this.hoveredLine,event:n}),this.clearHoveredLine()),Xo(l)&&(this.setHoveredLine(this.toEventBaseProps(l)),this.gutterUtilityContainer!=null&&l.numberElement.appendChild(this.gutterUtilityContainer),d?.({...this.hoveredLine,event:n}));break;case"click":{if(l==null)break;if(l2(l)&&g!=null){g(l);break}if(o2(l)&&m!=null){m(l.hunkIndex,n.shiftKey?"both":l.direction,n.shiftKey?Number.POSITIVE_INFINITY:void 0);break}if(!Xo(l))break;const v=this.toEventBaseProps(l);c!=null&&l.numberColumn?c({...v,event:n}):u?.({...v,event:n});break}}}syncPointerListeners(e){const{__debugPointerEvents:n,lineHoverHighlight:r="disabled",onLineClick:a,onLineNumberClick:l,onLineEnter:u,onLineLeave:c,onHunkExpand:d,onMergeConflictActionClick:f,enableGutterUtility:m=!1,enableLineSelection:g=!1,onGutterUtilityClick:v}=this.options,b=v!=null,_=r!=="disabled"||a!=null||l!=null||d!=null||f!=null||u!=null||c!=null||m||g||b;_&&!this.hasPointerListeners?(e.addEventListener("click",this.handlePointerClick),e.addEventListener("pointerdown",this.handlePointerDown),e.addEventListener("pointermove",this.handlePointerMove),e.addEventListener("pointerleave",this.handlePointerLeave),this.hasPointerListeners=!0,pi(n,"click","FileDiff.DEBUG.attachEventListeners: Attaching click events for:",(()=>{const L=[];return(n==="both"||n==="click")&&(a!=null&&L.push("onLineClick"),l!=null&&L.push("onLineNumberClick"),d!=null&&L.push("expandable hunk separators"),f!=null&&L.push("merge conflict actions")),L})()),pi(n,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer move event"),pi(n,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer leave event")):!_&&this.hasPointerListeners&&(e.removeEventListener("click",this.handlePointerClick),e.removeEventListener("pointerdown",this.handlePointerDown),e.removeEventListener("pointermove",this.handlePointerMove),e.removeEventListener("pointerleave",this.handlePointerLeave),this.hasPointerListeners=!1);const S=this.pointerSession.mode==="selecting"||this.pointerSession.mode==="pendingSingleLineUnselect",E=this.pointerSession.mode==="gutterSelecting";(!g&&S||!b&&E)&&(this.clearPointerSession(),this.detachDocumentPointerListeners(),this.selectionAnchor=void 0,this.clearPendingSingleLineState())}updateInteractiveLineAttributes(){if(this.pre==null)return;const{onLineClick:e,onLineNumberClick:n,enableLineSelection:r=!1}=this.options,a=e!=null,l=n!=null||r;a&&!this.interactiveLinesAttr?(this.pre.setAttribute("data-interactive-lines",""),this.interactiveLinesAttr=!0):!a&&this.interactiveLinesAttr&&(this.pre.removeAttribute("data-interactive-lines"),this.interactiveLinesAttr=!1),l&&!this.interactiveLineNumbersAttr?(this.pre.setAttribute("data-interactive-line-numbers",""),this.interactiveLineNumbersAttr=!0):!l&&this.interactiveLineNumbersAttr&&(this.pre.removeAttribute("data-interactive-line-numbers"),this.interactiveLineNumbersAttr=!1)}handlePointerDown=e=>{if(e.pointerType==="mouse"&&e.button!==0||this.pre==null||this.pointerSession.mode!=="idle")return;const n=e.composedPath();p0(n)&&this.options.onGutterUtilityClick!=null?this.startGutterSelectionFromPointerDown(e,n):this.startLineSelectionFromPointerDown(e,n)};startLineSelectionFromPointerDown(e,n){const{enableLineSelection:r=!1}=this.options;if(!r)return;const a=this.getSelectionPointerInfo(n,!0);if(a==null)return;const{pre:l}=this;if(l==null)return;e.preventDefault();const{lineNumber:u,eventSide:c,lineIndex:d}=a;if(e.shiftKey&&this.selectedRange!=null){const f=this.getIndexesFromSelection(this.selectedRange,l.getAttribute("data-diff-type")==="split");if(f==null)return;const m=f.start<=f.end?d>=f.start:d<=f.end;this.selectionAnchor={lineNumber:m?this.selectedRange.start:this.selectedRange.end,side:m?this.selectedRange.side:this.selectedRange.endSide??this.selectedRange.side},this.updateSelection(u,c,!1),this.notifySelectionStart(this.selectedRange),this.pointerSession={mode:"selecting",pointerId:e.pointerId},this.attachDocumentPointerListeners();return}if(this.selectedRange?.start===u&&this.selectedRange?.end===u){const f={lineNumber:u,side:c};this.selectionAnchor=f,this.pointerSession={mode:"pendingSingleLineUnselect",pointerId:e.pointerId,anchor:f,pending:f},this.attachDocumentPointerListeners();return}this.selectedRange=null,this.selectionAnchor={lineNumber:u,side:c},this.updateSelection(u,c,!1),this.notifySelectionStart(this.selectedRange),this.pointerSession={mode:"selecting",pointerId:e.pointerId},this.attachDocumentPointerListeners()}startGutterSelectionFromPointerDown(e,n){const{enableLineSelection:r=!1,onGutterUtilityClick:a}=this.options;if(a==null)return;const l=this.getSelectionPointFromPath(n);l!=null&&(e.preventDefault(),e.stopPropagation(),this.pointerSession={mode:"gutterSelecting",pointerId:e.pointerId,anchor:l,current:l},r&&(this.selectionAnchor={lineNumber:l.lineNumber,side:l.side},this.updateSelection(l.lineNumber,l.side,!1),this.notifySelectionStart(this.selectedRange)),this.attachDocumentPointerListeners())}handleDocumentPointerMove=e=>{const{enableLineSelection:n=!1}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(e.pointerId!==this.pointerSession.pointerId)return;const r=this.getSelectionPointFromPath(e.composedPath());if(r==null)return;this.pointerSession.current=r,n===!0&&this.updateSelection(r.lineNumber,r.side);return}case"selecting":{if(e.pointerId!==this.pointerSession.pointerId)return;const r=this.getSelectionPointerInfo(e.composedPath(),!1);if(r==null||this.selectionAnchor==null)return;this.updateSelection(r.lineNumber,r.eventSide);return}case"pendingSingleLineUnselect":{if(e.pointerId!==this.pointerSession.pointerId)return;const r=this.getSelectionPointerInfo(e.composedPath(),!1);if(r==null||this.selectionAnchor==null)return;const a={lineNumber:r.lineNumber,side:r.eventSide};if(Bk(this.pointerSession.pending,a))return;this.updateSelection(r.lineNumber,r.eventSide,!1),this.notifySelectionStart(this.selectedRange),this.notifySelectionChangeDelta(),this.pointerSession={mode:"selecting",pointerId:e.pointerId};return}}};handleDocumentPointerUp=e=>{const{enableLineSelection:n=!1,onGutterUtilityClick:r}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(e.pointerId!==this.pointerSession.pointerId)return;const a=this.getSelectionPointFromPath(e.composedPath());a!=null&&(this.pointerSession.current=a,n&&this.updateSelection(a.lineNumber,a.side)),r?.(this.buildSelectedLineRange(this.pointerSession.anchor,this.pointerSession.current)),this.selectionAnchor=void 0,n&&(this.notifySelectionEnd(this.selectedRange),this.notifySelectionCommitted()),this.clearPointerSession(),this.detachDocumentPointerListeners();return}case"pendingSingleLineUnselect":if(e.pointerId!==this.pointerSession.pointerId)return;this.updateSelection(null,void 0,!1),this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.detachDocumentPointerListeners(),this.notifySelectionEnd(this.selectedRange),this.notifySelectionCommitted();return;case"selecting":if(e.pointerId!==this.pointerSession.pointerId)return;this.selectionAnchor=void 0,this.detachDocumentPointerListeners(),this.clearPointerSession(),this.notifySelectionEnd(this.selectedRange),this.notifySelectionCommitted()}};handleDocumentPointerCancel=e=>{switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":case"selecting":case"pendingSingleLineUnselect":if("pointerId"in this.pointerSession&&e.pointerId!==this.pointerSession.pointerId)return;this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.clearPointerSession(),this.detachDocumentPointerListeners()}};clearHoveredLine(){this.hoveredLine!=null&&(this.hoveredLine.lineElement.removeAttribute("data-hovered"),this.hoveredLine.numberElement.removeAttribute("data-hovered"),this.hoveredLine=void 0)}setHoveredLine(e){const{lineHoverHighlight:n="disabled"}=this.options;this.hoveredLine!=null&&this.clearHoveredLine(),this.hoveredLine=e,n!=="disabled"&&((n==="both"||n==="line")&&this.hoveredLine.lineElement.setAttribute("data-hovered",""),(n==="both"||n==="number")&&this.hoveredLine.numberElement.setAttribute("data-hovered",""))}ensureGutterUtilityNode(e){if(this.gutterUtilityContainer==null&&(this.gutterUtilityContainer=document.createElement("div"),this.gutterUtilityContainer.setAttribute("data-gutter-utility-slot","")),e)this.gutterUtilityButton!=null&&(this.gutterUtilityButton.remove(),this.gutterUtilityButton=void 0),this.gutterUtilitySlot==null&&(this.gutterUtilitySlot=document.createElement("slot"),this.gutterUtilitySlot.name="gutter-utility-slot"),this.gutterUtilitySlot.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilitySlot);else{if(this.gutterUtilitySlot?.remove(),this.gutterUtilitySlot=void 0,this.gutterUtilityButton==null){const n=document.createElement("div");n.innerHTML=Ya(Vk());const r=n.firstElementChild;if(!(r instanceof HTMLButtonElement))throw new Error("InteractionManager.ensureGutterUtilityNode: Node element should be a button");r.remove(),this.gutterUtilityButton=r}this.gutterUtilityButton.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilityButton)}}attachDocumentPointerListeners(){this.hasDocumentPointerListeners||(document.addEventListener("pointermove",this.handleDocumentPointerMove),document.addEventListener("pointerup",this.handleDocumentPointerUp),document.addEventListener("pointercancel",this.handleDocumentPointerCancel),this.hasDocumentPointerListeners=!0)}detachDocumentPointerListeners(){this.hasDocumentPointerListeners&&(document.removeEventListener("pointermove",this.handleDocumentPointerMove),document.removeEventListener("pointerup",this.handleDocumentPointerUp),document.removeEventListener("pointercancel",this.handleDocumentPointerCancel),this.hasDocumentPointerListeners=!1)}clearPointerSession(){this.pointerSession={mode:"idle"}}clearPendingSingleLineState(){this.pointerSession.mode==="pendingSingleLineUnselect"&&(this.pointerSession={mode:"idle"})}getSelectionPointerInfo(e,n){const r=this.resolvePointerTarget(e);if(Xo(r)&&!(n&&!r.numberColumn)&&r.splitLineIndex!=null)return{lineIndex:r.splitLineIndex,lineNumber:r.lineNumber,eventSide:this.mode==="diff"?r.side:void 0}}getSelectionPointFromPath(e){const n=this.resolvePointerTarget(e);if(Xo(n))return{lineNumber:n.lineNumber,side:this.mode==="diff"?n.side:void 0}}getLineIndex(e,n){const{getLineIndex:r}=this.options;return r!=null?r(e,n):[e-1,e-1]}updateSelection(e,n,r=!0){const{selectedRange:a}=this;let l;if(e==null)l=null;else{const u=this.selectionAnchor?.side??n,c=this.selectionAnchor?.lineNumber??e;l=this.buildSelectionRange(c,e,u,n)}n0(a??void 0,l??void 0)||(this.selectedRange=l,r&&this.notifySelectionChangeDelta(),this.queuedSelectionRender??=requestAnimationFrame(this.renderSelection))}getIndexesFromSelection(e,n){if(this.pre==null)return;const r=this.getLineIndex(e.start,e.side),a=this.getLineIndex(e.end,e.endSide??e.side);return r!=null&&a!=null?{start:n?r[1]:r[0],end:n?a[1]:a[0]}:void 0}renderSelection=()=>{if(this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.pre==null||this.renderedSelectionRange===this.selectedRange)return;const e=this.pre.querySelectorAll("[data-selected-line]");for(const d of e)d.removeAttribute("data-selected-line");if(this.renderedSelectionRange=this.selectedRange,this.selectedRange==null)return;const{children:n}=this.pre;if(n.length===0)return;if(n.length>2)throw console.error(n),new Error("InteractionManager.renderSelection: Somehow there are more than 2 code elements...");const r=this.pre.getAttribute("data-diff-type")==="split",a=this.getIndexesFromSelection(this.selectedRange,r);if(a==null)throw console.error({rowRange:a,selectedRange:this.selectedRange}),new Error("InteractionManager.renderSelection: No valid rowRange");const l=a.start===a.end,u=Math.min(a.start,a.end),c=Math.max(a.start,a.end);for(const d of n){const[f,m]=d.children,g=m.children.length;if(g!==f.children.length)throw new Error("InteractionManager.renderSelection: gutter and content children dont match, something is wrong");for(let v=0;v<g;v++){const b=m.children[v],_=f.children[v];if(!(b instanceof HTMLElement)||!(_ instanceof HTMLElement))continue;const S=this.parseLineIndex(b,r);if((S??0)>c)break;if(S==null||S<u)continue;let E=l?"single":S===u?"first":S===c?"last":"";b.setAttribute("data-selected-line",E),_.setAttribute("data-selected-line",E),_.nextSibling instanceof HTMLElement&&b.nextSibling instanceof HTMLElement&&(b.nextSibling.hasAttribute("data-line-annotation")||b.nextSibling.hasAttribute("data-merge-conflict-actions"))&&(l?(E="last",b.setAttribute("data-selected-line","first")):S===u?E="":S===c&&b.setAttribute("data-selected-line",""),b.nextSibling.setAttribute("data-selected-line",E),_.nextSibling.setAttribute("data-selected-line",E))}}};notifySelectionCommitted(){this.options.onLineSelected?.(this.selectedRange??null)}notifySelectionChangeDelta(){this.options.onLineSelectionChange?.(this.selectedRange??null)}notifySelectionStart(e){this.options.onLineSelectionStart?.(e)}notifySelectionEnd(e){this.options.onLineSelectionEnd?.(e)}toEventBaseProps(e){return this.mode==="file"?{type:"line",lineElement:e.lineElement,lineNumber:e.lineNumber,numberColumn:e.numberColumn,numberElement:e.numberElement}:{type:"diff-line",annotationSide:e.side,lineType:e.lineType,lineElement:e.lineElement,numberElement:e.numberElement,lineNumber:e.lineNumber,numberColumn:e.numberColumn}}buildSelectedLineRange(e,n){return this.buildSelectionRange(e.lineNumber,n.lineNumber,e.side,n.side)}buildSelectionRange(e,n,r,a){return{start:e,end:n,...r!=null?{side:r}:{},...r!==a&&a!=null?{endSide:a}:{}}}resolvePointerTarget(e){let n=!1,r,a,l,u,c,d,f,m;for(const b of e){if(!(b instanceof HTMLElement))continue;if(m==null&&b.hasAttribute("data-merge-conflict-action")){const L=b.getAttribute("data-merge-conflict-action")??void 0,w=b.getAttribute("data-merge-conflict-conflict-index")??void 0,C=w!=null?Number.parseInt(w,10):NaN;s2(L)&&Number.isFinite(C)&&(m={kind:"merge-conflict-action",resolution:L,conflictIndex:C})}const _=c==null?b.getAttribute("data-column-number")??void 0:void 0;if(_!=null){c=b,f=Number.parseInt(_,10),n=!0,r=h0(b),u=b.getAttribute("data-line-index")??void 0;continue}const S=l==null?b.getAttribute("data-line")??void 0:void 0;if(S!=null){l=b,f=Number.parseInt(S,10),r=h0(b),u=b.getAttribute("data-line-index")??void 0;continue}if(d==null&&b.hasAttribute("data-expand-button")){d={hunkIndex:void 0,direction:b.hasAttribute("data-expand-up")?"up":b.hasAttribute("data-expand-down")?"down":"both"};continue}const E=d!=null?b.getAttribute("data-expand-index")??void 0:void 0;if(d!=null&&E!=null){const L=Number.parseInt(E,10);Number.isNaN(L)||(d.hunkIndex=L);continue}if(a==null&&b.hasAttribute("data-code")){a=b;break}}if(m!=null)return m;if(d?.hunkIndex!=null)return{type:"line-info",hunkIndex:d.hunkIndex,direction:d.direction};if(l??=u!=null?f0(a,`[data-line][data-line-index="${u}"]`):void 0,c??=u!=null?f0(a,`[data-column-number][data-line-index="${u}"]`):void 0,a==null||l==null||c==null||r==null||f==null||Number.isNaN(f))return;const g=this.parseLineIndex(l,this.isSplitDiff());if(this.mode==="file")return{kind:"line",lineType:r,lineElement:l,lineNumber:f,numberColumn:n,numberElement:c,side:void 0,splitLineIndex:g};const v=(()=>{switch(r){case"change-deletion":return"deletions";case"change-addition":return"additions";default:return a.hasAttribute("data-deletions")?"deletions":"additions"}})();return{kind:"line",lineType:r,lineElement:l,lineNumber:f,numberColumn:n,numberElement:c,side:v,splitLineIndex:g}}isSplitDiff(){return this.pre?.getAttribute("data-diff-type")==="split"}parseLineIndex(e,n){const r=(e.getAttribute("data-line-index")??"").split(",").map(a=>Number.parseInt(a,10)).filter(a=>!Number.isNaN(a));if(n&&r.length===2)return r[1];if(!n)return r[0]}};function d0({enableGutterUtility:e,enableHoverUtility:n,lineHoverHighlight:r,onGutterUtilityClick:a,onLineClick:l,onLineEnter:u,onLineLeave:c,onLineNumberClick:d,renderGutterUtility:f,renderHoverUtility:m,__debugPointerEvents:g,enableLineSelection:v,onLineSelected:b,onLineSelectionStart:_,onLineSelectionChange:S,onLineSelectionEnd:E},L,w,C){return{enableGutterUtility:a2({enableGutterUtility:e,enableHoverUtility:n,renderGutterUtility:f,renderHoverUtility:m,onGutterUtilityClick:a}),usesCustomGutterUtility:f!=null||m!=null,lineHoverHighlight:r,onGutterUtilityClick:a,onHunkExpand:L,onMergeConflictActionClick:C,onLineClick:l,onLineEnter:u,onLineLeave:c,onLineNumberClick:d,__debugPointerEvents:g,enableLineSelection:v,onLineSelected:b,onLineSelectionStart:_,onLineSelectionChange:S,onLineSelectionEnd:E,getLineIndex:w}}function a2({enableGutterUtility:e,enableHoverUtility:n,renderGutterUtility:r,renderHoverUtility:a,onGutterUtilityClick:l}){if(e!==void 0&&n!==void 0)throw new Error("Cannot use both 'enableGutterUtility' and deprecated 'enableHoverUtility'. Use only 'enableGutterUtility'.");if(r!=null&&a!=null)throw new Error("Cannot use both 'renderGutterUtility' and deprecated 'renderHoverUtility'. Use only 'renderGutterUtility'.");if(l!=null&&(r!=null||a!=null))throw new Error("Cannot use both 'onGutterUtilityClick' and render utility callbacks ('renderGutterUtility'/'renderHoverUtility'). Use only one gutter utility API.");return e??n??!1}function Xo(e){return e!=null&&"kind"in e&&e.kind==="line"}function o2(e){return"type"in e&&e.type==="line-info"}function l2(e){return"kind"in e&&e.kind==="merge-conflict-action"}function s2(e){return e==="current"||e==="incoming"||e==="both"}function f0(e,n){const r=e?.querySelector(n);return r instanceof HTMLElement?r:void 0}function h0(e){const n=e.getAttribute("data-line-type");if(n!=null)switch(n){case"change-deletion":case"change-addition":case"context":case"context-expanded":return n;default:return}}function p0(e){for(const n of e)if(n instanceof HTMLElement&&n.hasAttribute("data-utility-button"))return!0;return!1}function pi(e="none",n,...r){switch(e){case"none":return;case"both":break;case"click":if(n!=="click")return;break;case"move":if(n!=="move")return;break}console.log(...r)}var u2=class{observedNodes=new Map;queuedUpdates=new Map;cleanUp(){this.resizeObserver?.disconnect(),this.observedNodes.clear(),this.queuedUpdates.clear()}resizeObserver;setup(e,n){this.resizeObserver??=new ResizeObserver(this.handleResizeObserver);const r=e.querySelectorAll("code"),a=new Map(this.observedNodes);this.observedNodes.clear();for(const l of r){let u=a.get(l);if(u!=null&&u.type!=="code")throw new Error("ResizeManager.setup: somehow a code node is being used for an annotation, should be impossible");let c=l.firstElementChild;c instanceof HTMLElement||(c=null),u!=null?(this.observedNodes.set(l,u),a.delete(l),u.numberElement!==c?(u.numberElement!=null&&this.resizeObserver.unobserve(u.numberElement),c!=null&&(this.resizeObserver.observe(c),a.delete(c),this.observedNodes.set(c,u)),u.numberElement=c):u.numberElement!=null&&(a.delete(u.numberElement),this.observedNodes.set(u.numberElement,u))):(u={type:"code",codeElement:l,numberElement:c,codeWidth:"auto",numberWidth:0},this.observedNodes.set(l,u),this.resizeObserver.observe(l),c!=null&&(this.observedNodes.set(c,u),this.resizeObserver.observe(c)))}if(r.length>1&&!n){const l=e.querySelectorAll('[data-line-annotation*=","]'),u=new Map;for(const c of l){if(!(c instanceof HTMLElement))continue;const{lineAnnotation:d=""}=c.dataset;if(!/^\d+,\d+$/.test(d)){console.error("DiffFileRenderer.setupResizeObserver: Invalid element or annotation",{lineAnnotation:d,element:c});continue}let f=u.get(d);f==null&&(f=[],u.set(d,f)),f.push(c)}for(const[c,d]of u){if(d.length!==2){console.error("DiffFileRenderer.setupResizeObserver: Bad Pair",c,d);continue}const[f,m]=d,g=f.firstElementChild,v=m.firstElementChild;if(!(f instanceof HTMLElement)||!(m instanceof HTMLElement)||!(g instanceof HTMLElement)||!(v instanceof HTMLElement))continue;let b=a.get(g);if(b!=null){this.observedNodes.set(g,b),this.observedNodes.set(v,b),a.delete(g),a.delete(v);continue}b={type:"annotations",column1:{container:f,child:g,childHeight:g.getBoundingClientRect().height},column2:{container:m,child:v,childHeight:v.getBoundingClientRect().height},currentHeight:"auto"};const _=Math.max(b.column1.childHeight,b.column2.childHeight);this.applyNewHeight(b,_),this.observedNodes.set(g,b),this.observedNodes.set(v,b),this.resizeObserver.observe(g),this.resizeObserver.observe(v)}}for(const l of a.keys())l.isConnected&&(l.style.removeProperty("--diffs-column-content-width"),l.style.removeProperty("--diffs-column-number-width"),l.style.removeProperty("--diffs-column-width"),l.parentElement instanceof HTMLElement&&l.parentElement.style.removeProperty("--diffs-annotation-min-height")),this.resizeObserver.unobserve(l);a.clear()}handleResizeObserver=e=>{for(const n of e){const{target:r,borderBoxSize:a}=n;if(!(r instanceof HTMLElement)){console.error("FileDiff.handleResizeObserver: Invalid element for ResizeObserver",n);continue}const l=this.observedNodes.get(r);if(l==null){console.error("FileDiff.handleResizeObserver: Not a valid observed node",n);continue}const u=a[0];if(l.type==="annotations"){const c=(()=>{if(r===l.column1.child)return l.column1;if(r===l.column2.child)return l.column2})();if(c==null){console.error("FileDiff.handleResizeObserver: Couldn't find a column for",{item:l,target:r});continue}c.childHeight=u.blockSize;const d=Math.max(l.column1.childHeight,l.column2.childHeight);this.applyNewHeight(l,d)}else if(l.type==="code"){const c=[r,u.inlineSize],d=this.queuedUpdates.get(l)??[];d.push(c),this.queuedUpdates.set(l,d)}}this.handleColumnChange()};handleColumnChange=()=>{for(const[e,n]of this.queuedUpdates)for(const[r,a]of n)if(r===e.codeElement){const l=Math.max(Math.floor(a),0);if(l!==e.codeWidth){const u=Math.max(l-e.numberWidth,0);e.codeWidth=l===0?"auto":l,e.codeElement.style.setProperty("--diffs-column-content-width",`${u>0?`${u}px`:"auto"}`),e.codeElement.style.setProperty("--diffs-column-width",`${typeof e.codeWidth=="number"?`${e.codeWidth}px`:"auto"}`)}e.numberElement!=null&&typeof e.codeWidth=="number"&&e.numberWidth===0&&n.push([e.numberElement,e.numberElement.getBoundingClientRect().width])}else if(r===e.numberElement){const l=Math.max(Math.ceil(a),0);if(l!==e.numberWidth&&(e.numberWidth=l,e.codeElement.style.setProperty("--diffs-column-number-width",`${e.numberWidth===0?"auto":`${e.numberWidth}px`}`),e.codeWidth!=="auto")){const u=Math.max(e.codeWidth-e.numberWidth,0);e.codeElement.style.setProperty("--diffs-column-content-width",`${u===0?"auto":`${u}px`}`)}}this.queuedUpdates.clear()};applyNewHeight(e,n){n!==e.currentHeight&&(e.currentHeight=Math.max(n,0),e.column1.container.style.setProperty("--diffs-annotation-min-height",`${e.currentHeight}px`),e.column2.container.style.setProperty("--diffs-annotation-min-height",`${e.currentHeight}px`))}};const ul=new Map,bf=new Map,c2=new Map,Zf=new Set;function m0(e){for(const n of Array.isArray(e)?e:[e])if(!Zf.has(n))return!1;return!0}function g0(e,n){e=Array.isArray(e)?e:[e];for(const r of e){if(Zf.has(r.name))continue;let a=ul.get(r.name);a==null&&(a=r,ul.set(r.name,a)),Zf.add(a.name),n.loadLanguageSync(a.data)}}function V_(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}const d2="modulepreload",f2=function(e){return"/"+e},v0={},k=function(n,r,a){let l=Promise.resolve();if(r&&r.length>0){let m=function(g){return Promise.all(g.map(v=>Promise.resolve(v).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};var c=m;document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),f=d?.nonce||d?.getAttribute("nonce");l=m(r.map(g=>{if(g=f2(g),g in v0)return;v0[g]=!0;const v=g.endsWith(".css"),b=v?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${b}`))return;const _=document.createElement("link");if(_.rel=v?"stylesheet":d2,v||(_.as="script"),_.crossOrigin="",_.href=g,f&&_.setAttribute("nonce",f),document.head.appendChild(_),v)return new Promise((S,E)=>{_.addEventListener("load",S),_.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${g}`)))})}))}function u(d){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=d,window.dispatchEvent(f),!f.defaultPrevented)throw d}return l.then(d=>{for(const f of d||[])f.status==="rejected"&&u(f.reason);return n().catch(u)})};let dt=class extends Error{constructor(n){super(n),this.name="ShikiError"}};function h2(e){return Yh(e)}function Yh(e){return Array.isArray(e)?p2(e):e instanceof RegExp?e:typeof e=="object"?m2(e):e}function p2(e){let n=[];for(let r=0,a=e.length;r<a;r++)n[r]=Yh(e[r]);return n}function m2(e){let n={};for(let r in e)n[r]=Yh(e[r]);return n}function B_(e,...n){return n.forEach(r=>{for(let a in r)e[a]=r[a]}),e}function G_(e){const n=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return n===0?e:~n===e.length-1?G_(e.substring(0,e.length-1)):e.substr(~n+1)}var yf=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Fs=class{static hasCaptures(e){return e===null?!1:(yf.lastIndex=0,yf.test(e))}static replaceCaptures(e,n,r){return e.replace(yf,(a,l,u,c)=>{let d=r[parseInt(l||u,10)];if(d){let f=n.substring(d.start,d.end);for(;f[0]===".";)f=f.substring(1);switch(c){case"downcase":return f.toLowerCase();case"upcase":return f.toUpperCase();default:return f}}else return a})}};function $_(e,n){return e<n?-1:e>n?1:0}function q_(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 l=0;l<r;l++){let u=$_(e[l],n[l]);if(u!==0)return u}return 0}return r-a}function b0(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 Y_(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var F_=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}},yu=class{constructor(e,n,r){this._colorMap=e,this._defaults=n,this._root=r}static createFromRawTheme(e,n){return this.createFromParsedTheme(b2(e),n)}static createFromParsedTheme(e,n){return _2(e,n)}_cachedMatchRoot=new F_(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(l=>g2(e.parent,l.parentScopes));return a?new X_(a.fontStyle,a.foreground,a.background):null}},_f=class ou{constructor(n,r){this.parent=n,this.scopeName=r}static push(n,r){for(const a of r)n=new ou(n,a);return n}static from(...n){let r=null;for(let a=0;a<n.length;a++)r=new ou(r,n[a]);return r}push(n){return new ou(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 g2(e,n){if(n.length===0)return!0;for(let r=0;r<n.length;r++){let a=n[r],l=!1;if(a===">"){if(r===n.length-1)return!1;a=n[++r],l=!0}for(;e&&!v2(e.scopeName,a);){if(l)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function v2(e,n){return n===e||e.startsWith(n)&&e[n.length]==="."}var X_=class{constructor(e,n,r){this.fontStyle=e,this.foregroundId=n,this.backgroundId=r}};function b2(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let n=e.settings,r=[],a=0;for(let l=0,u=n.length;l<u;l++){let c=n[l];if(!c.settings)continue;let d;if(typeof c.scope=="string"){let v=c.scope;v=v.replace(/^[,]+/,""),v=v.replace(/[,]+$/,""),d=v.split(",")}else Array.isArray(c.scope)?d=c.scope:d=[""];let f=-1;if(typeof c.settings.fontStyle=="string"){f=0;let v=c.settings.fontStyle.split(" ");for(let b=0,_=v.length;b<_;b++)switch(v[b]){case"italic":f=f|1;break;case"bold":f=f|2;break;case"underline":f=f|4;break;case"strikethrough":f=f|8;break}}let m=null;typeof c.settings.foreground=="string"&&b0(c.settings.foreground)&&(m=c.settings.foreground);let g=null;typeof c.settings.background=="string"&&b0(c.settings.background)&&(g=c.settings.background);for(let v=0,b=d.length;v<b;v++){let S=d[v].trim().split(" "),E=S[S.length-1],L=null;S.length>1&&(L=S.slice(0,S.length-1),L.reverse()),r[a++]=new y2(E,L,l,f,m,g)}}return r}var y2=class{constructor(e,n,r,a,l,u){this.scope=e,this.parentScopes=n,this.index=r,this.fontStyle=a,this.foreground=l,this.background=u}},Dt=(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))(Dt||{});function _2(e,n){e.sort((f,m)=>{let g=$_(f.scope,m.scope);return g!==0||(g=q_(f.parentScopes,m.parentScopes),g!==0)?g:f.index-m.index});let r=0,a="#000000",l="#ffffff";for(;e.length>=1&&e[0].scope==="";){let f=e.shift();f.fontStyle!==-1&&(r=f.fontStyle),f.foreground!==null&&(a=f.foreground),f.background!==null&&(l=f.background)}let u=new S2(n),c=new X_(r,u.getId(a),u.getId(l)),d=new E2(new Kf(0,null,-1,0,0),[]);for(let f=0,m=e.length;f<m;f++){let g=e[f];d.insert(0,g.scope,g.parentScopes,g.fontStyle,u.getId(g.foreground),u.getId(g.background))}return new yu(u,c,d)}var S2=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)}},x2=Object.freeze([]),Kf=class W_{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(n,r,a,l,u){this.scopeDepth=n,this.parentScopes=r||x2,this.fontStyle=a,this.foreground=l,this.background=u}clone(){return new W_(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(n){let r=[];for(let a=0,l=n.length;a<l;a++)r[a]=n[a].clone();return r}acceptOverwrite(n,r,a,l){this.scopeDepth>n?console.log("how did this happen?"):this.scopeDepth=n,r!==-1&&(this.fontStyle=r),a!==0&&(this.foreground=a),l!==0&&(this.background=l)}},E2=class Jf{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,l=0;for(;n.parentScopes[a]===">"&&a++,r.parentScopes[l]===">"&&l++,!(a>=n.parentScopes.length||l>=r.parentScopes.length);){const u=r.parentScopes[l].length-n.parentScopes[a].length;if(u!==0)return u;a++,l++}return r.parentScopes.length-n.parentScopes.length}match(n){if(n!==""){let a=n.indexOf("."),l,u;if(a===-1?(l=n,u=""):(l=n.substring(0,a),u=n.substring(a+1)),this._children.hasOwnProperty(l))return this._children[l].match(u)}const r=this._rulesWithParentScopes.concat(this._mainRule);return r.sort(Jf._cmpBySpecificity),r}insert(n,r,a,l,u,c){if(r===""){this._doInsertHere(n,a,l,u,c);return}let d=r.indexOf("."),f,m;d===-1?(f=r,m=""):(f=r.substring(0,d),m=r.substring(d+1));let g;this._children.hasOwnProperty(f)?g=this._children[f]:(g=new Jf(this._mainRule.clone(),Kf.cloneArr(this._rulesWithParentScopes)),this._children[f]=g),g.insert(n+1,m,a,l,u,c)}_doInsertHere(n,r,a,l,u){if(r===null){this._mainRule.acceptOverwrite(n,a,l,u);return}for(let c=0,d=this._rulesWithParentScopes.length;c<d;c++){let f=this._rulesWithParentScopes[c];if(q_(f.parentScopes,r)===0){f.acceptOverwrite(n,a,l,u);return}}a===-1&&(a=this._mainRule.fontStyle),l===0&&(l=this._mainRule.foreground),u===0&&(u=this._mainRule.background),this._rulesWithParentScopes.push(new Kf(n,r,a,l,u))}},Xa=class pn{static toBinaryStr(n){return n.toString(2).padStart(32,"0")}static print(n){const r=pn.getLanguageId(n),a=pn.getTokenType(n),l=pn.getFontStyle(n),u=pn.getForeground(n),c=pn.getBackground(n);console.log({languageId:r,tokenType:a,fontStyle:l,foreground:u,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,l,u,c,d){let f=pn.getLanguageId(n),m=pn.getTokenType(n),g=pn.containsBalancedBrackets(n)?1:0,v=pn.getFontStyle(n),b=pn.getForeground(n),_=pn.getBackground(n);return r!==0&&(f=r),a!==8&&(m=a),l!==null&&(g=l?1:0),u!==-1&&(v=u),c!==0&&(b=c),d!==0&&(_=d),(f<<0|m<<8|g<<10|v<<11|b<<15|_<<24)>>>0}};function _u(e,n){const r=[],a=w2(e);let l=a.next();for(;l!==null;){let f=0;if(l.length===2&&l.charAt(1)===":"){switch(l.charAt(0)){case"R":f=1;break;case"L":f=-1;break;default:console.log(`Unknown priority ${l} in scope selector`)}l=a.next()}let m=c();if(r.push({matcher:m,priority:f}),l!==",")break;l=a.next()}return r;function u(){if(l==="-"){l=a.next();const f=u();return m=>!!f&&!f(m)}if(l==="("){l=a.next();const f=d();return l===")"&&(l=a.next()),f}if(y0(l)){const f=[];do f.push(l),l=a.next();while(y0(l));return m=>n(f,m)}return null}function c(){const f=[];let m=u();for(;m;)f.push(m),m=u();return g=>f.every(v=>v(g))}function d(){const f=[];let m=c();for(;m&&(f.push(m),l==="|"||l===",");){do l=a.next();while(l==="|"||l===",");m=c()}return g=>f.some(v=>v(g))}}function y0(e){return!!e&&!!e.match(/[\w\.:]+/)}function w2(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 Q_(e){typeof e.dispose=="function"&&e.dispose()}var cl=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},C2=class{constructor(e,n){this.scopeName=e,this.ruleName=n}toKey(){return`${this.scopeName}#${this.ruleName}`}},A2=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))}},k2=class{constructor(e,n){this.repo=e,this.initialScopeName=n,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new cl(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const n=new A2;for(const r of e)T2(r,this.initialScopeName,this.repo,n);for(const r of n.references)if(r instanceof cl){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 T2(e,n,r,a){const l=r.lookup(e.scopeName);if(!l){if(e.scopeName===n)throw new Error(`No grammar provided for <${n}>`);return}const u=r.lookup(n);e instanceof cl?lu({baseGrammar:u,selfGrammar:l},a):eh(e.ruleName,{baseGrammar:u,selfGrammar:l,repository:l.repository},a);const c=r.injections(e.scopeName);if(c)for(const d of c)a.add(new cl(d))}function eh(e,n,r){if(n.repository&&n.repository[e]){const a=n.repository[e];Su([a],n,r)}}function lu(e,n){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Su(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},n),e.selfGrammar.injections&&Su(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},n)}function Su(e,n,r){for(const a of e){if(r.visitedRule.has(a))continue;r.visitedRule.add(a);const l=a.repository?B_({},n.repository,a.repository):n.repository;Array.isArray(a.patterns)&&Su(a.patterns,{...n,repository:l},r);const u=a.include;if(!u)continue;const c=Z_(u);switch(c.kind){case 0:lu({...n,selfGrammar:n.baseGrammar},r);break;case 1:lu(n,r);break;case 2:eh(c.ruleName,{...n,repository:l},r);break;case 3:case 4:const d=c.scopeName===n.selfGrammar.scopeName?n.selfGrammar:c.scopeName===n.baseGrammar.scopeName?n.baseGrammar:void 0;if(d){const f={baseGrammar:n.baseGrammar,selfGrammar:d,repository:l};c.kind===4?eh(c.ruleName,f,r):lu(f,r)}else c.kind===4?r.add(new C2(c.scopeName,c.ruleName)):r.add(new cl(c.scopeName));break}}}var L2=class{kind=0},R2=class{kind=1},N2=class{constructor(e){this.ruleName=e}kind=2},O2=class{constructor(e){this.scopeName=e}kind=3},M2=class{constructor(e,n){this.scopeName=e,this.ruleName=n}kind=4};function Z_(e){if(e==="$base")return new L2;if(e==="$self")return new R2;const n=e.indexOf("#");if(n===-1)return new O2(e);if(n===0)return new N2(e.substring(1));{const r=e.substring(0,n),a=e.substring(n+1);return new M2(r,a)}}var D2=/\\(\d+)/,_0=/\\(\d+)/g,z2=-1,K_=-2;var vl=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,n,r,a){this.$location=e,this.id=n,this._name=r||null,this._nameIsCapturing=Fs.hasCaptures(this._name),this._contentName=a||null,this._contentNameIsCapturing=Fs.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${G_(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:Fs.replaceCaptures(this._name,e,n)}getContentName(e,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Fs.replaceCaptures(this._contentName,e,n)}},I2=class extends vl{retokenizeCapturedWithRuleId;constructor(e,n,r,a,l){super(e,n,r,a),this.retokenizeCapturedWithRuleId=l}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!")}},P2=class extends vl{_match;captures;_cachedCompiledPatterns;constructor(e,n,r,a,l){super(e,n,r,null),this._match=new dl(a,this.id),this.captures=l,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 fl,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},S0=class extends vl{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,r,a,l){super(e,n,r,a),this.patterns=l.patterns,this.hasMissingPatterns=l.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 fl,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},th=class extends vl{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,n,r,a,l,u,c,d,f,m){super(e,n,r,a),this._begin=new dl(l,this.id),this.beginCaptures=u,this._end=new dl(c||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=d,this.applyEndPatternLast=f||!1,this.patterns=m.patterns,this.hasMissingPatterns=m.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 fl;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}},xu=class extends vl{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,n,r,a,l,u,c,d,f){super(e,n,r,a),this._begin=new dl(l,this.id),this.beginCaptures=u,this.whileCaptures=d,this._while=new dl(c,K_),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=f.patterns,this.hasMissingPatterns=f.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 fl;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 fl,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||""),this._cachedCompiledWhilePatterns}},J_=class Mt{static createCaptureRule(n,r,a,l,u){return n.registerRule(c=>new I2(r,c,a,l,u))}static getCompiledRuleId(n,r,a){return n.id||r.registerRule(l=>{if(n.id=l,n.match)return new P2(n.$vscodeTextmateLocation,n.id,n.name,n.match,Mt._compileCaptures(n.captures,r,a));if(typeof n.begin>"u"){n.repository&&(a=B_({},a,n.repository));let u=n.patterns;return typeof u>"u"&&n.include&&(u=[{include:n.include}]),new S0(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,Mt._compilePatterns(u,r,a))}return n.while?new xu(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,n.begin,Mt._compileCaptures(n.beginCaptures||n.captures,r,a),n.while,Mt._compileCaptures(n.whileCaptures||n.captures,r,a),Mt._compilePatterns(n.patterns,r,a)):new th(n.$vscodeTextmateLocation,n.id,n.name,n.contentName,n.begin,Mt._compileCaptures(n.beginCaptures||n.captures,r,a),n.end,Mt._compileCaptures(n.endCaptures||n.captures,r,a),n.applyEndPatternLast,Mt._compilePatterns(n.patterns,r,a))}),n.id}static _compileCaptures(n,r,a){let l=[];if(n){let u=0;for(const c in n){if(c==="$vscodeTextmateLocation")continue;const d=parseInt(c,10);d>u&&(u=d)}for(let c=0;c<=u;c++)l[c]=null;for(const c in n){if(c==="$vscodeTextmateLocation")continue;const d=parseInt(c,10);let f=0;n[c].patterns&&(f=Mt.getCompiledRuleId(n[c],r,a)),l[d]=Mt.createCaptureRule(r,n[c].$vscodeTextmateLocation,n[c].name,n[c].contentName,f)}}return l}static _compilePatterns(n,r,a){let l=[];if(n)for(let u=0,c=n.length;u<c;u++){const d=n[u];let f=-1;if(d.include){const m=Z_(d.include);switch(m.kind){case 0:case 1:f=Mt.getCompiledRuleId(a[d.include],r,a);break;case 2:let g=a[m.ruleName];g&&(f=Mt.getCompiledRuleId(g,r,a));break;case 3:case 4:const v=m.scopeName,b=m.kind===4?m.ruleName:null,_=r.getExternalGrammar(v,a);if(_)if(b){let S=_.repository[b];S&&(f=Mt.getCompiledRuleId(S,r,_.repository))}else f=Mt.getCompiledRuleId(_.repository.$self,r,_.repository);break}}else f=Mt.getCompiledRuleId(d,r,a);if(f!==-1){const m=r.getRule(f);let g=!1;if((m instanceof S0||m instanceof th||m instanceof xu)&&m.hasMissingPatterns&&m.patterns.length===0&&(g=!0),g)continue;l.push(f)}}return{patterns:l,hasMissingPatterns:(n?n.length:0)!==l.length}}},dl=class e1{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(n,r){if(n&&typeof n=="string"){const a=n.length;let l=0,u=[],c=!1;for(let d=0;d<a;d++)if(n.charAt(d)==="\\"&&d+1<a){const m=n.charAt(d+1);m==="z"?(u.push(n.substring(l,d)),u.push("$(?!\\n)(?<!\\n)"),l=d+2):(m==="A"||m==="G")&&(c=!0),d++}this.hasAnchor=c,l===0?this.source=n:(u.push(n.substring(l,a)),this.source=u.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=D2.test(this.source):this.hasBackReferences=!1}clone(){return new e1(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(l=>n.substring(l.start,l.end));return _0.lastIndex=0,this.source.replace(_0,(l,u)=>Y_(a[parseInt(u,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=[],l=[],u,c,d,f;for(u=0,c=this.source.length;u<c;u++)d=this.source.charAt(u),n[u]=d,r[u]=d,a[u]=d,l[u]=d,d==="\\"&&u+1<c&&(f=this.source.charAt(u+1),f==="A"?(n[u+1]="",r[u+1]="",a[u+1]="A",l[u+1]="A"):f==="G"?(n[u+1]="",r[u+1]="G",a[u+1]="",l[u+1]="G"):(n[u+1]=f,r[u+1]=f,a[u+1]=f,l[u+1]=f),u++);return{A0_G0:n.join(""),A0_G1:r.join(""),A1_G0:a.join(""),A1_G1:l.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}},fl=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 x0(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(l=>l.resolveAnchors(n,r));return new x0(e,a,this._items.map(l=>l.ruleId))}},x0=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(`
|
|
23
|
+
`)}findNextMatchSync(e,n,r){const a=this.scanner.findNextMatchSync(e,n,r);return a?{ruleId:this.rules[a.index],captureIndices:a.captureIndices}:null}},Sf=class{constructor(e,n){this.languageId=e,this.tokenType=n}},U2=class nh{_defaultAttributes;_embeddedLanguagesMatcher;constructor(n,r){this._defaultAttributes=new Sf(n,8),this._embeddedLanguagesMatcher=new H2(Object.entries(r||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(n){return n===null?nh._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(n)}static _NULL_SCOPE_METADATA=new Sf(0,0);_getBasicScopeAttributes=new F_(n=>{const r=this._scopeToLanguage(n),a=this._toStandardTokenType(n);return new Sf(r,a)});_scopeToLanguage(n){return this._embeddedLanguagesMatcher.match(n)||0}_toStandardTokenType(n){const r=n.match(nh.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/},H2=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])=>Y_(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])}},E0=class{constructor(e,n){this.stack=e,this.stoppedEarly=n}};function t1(e,n,r,a,l,u,c,d){const f=n.content.length;let m=!1,g=-1;if(c){const _=j2(e,n,r,a,l,u);l=_.stack,a=_.linePos,r=_.isFirstLine,g=_.anchorPosition}const v=Date.now();for(;!m;){if(d!==0&&Date.now()-v>d)return new E0(l,!0);b()}return new E0(l,!1);function b(){const _=V2(e,n,r,a,l,g);if(!_){u.produce(l,f),m=!0;return}const S=_.captureIndices,E=_.matchedRuleId,L=S&&S.length>0?S[0].end>a:!1;if(E===z2){const w=l.getRule(e);u.produce(l,S[0].start),l=l.withContentNameScopesList(l.nameScopesList),Ko(e,n,r,l,u,w.endCaptures,S),u.produce(l,S[0].end);const C=l;if(l=l.parent,g=C.getAnchorPos(),!L&&C.getEnterPos()===a){l=C,u.produce(l,f),m=!0;return}}else{const w=e.getRule(E);u.produce(l,S[0].start);const C=l,A=w.getName(n.content,S),R=l.contentNameScopesList.pushAttributed(A,e);if(l=l.push(E,a,g,S[0].end===f,null,R,R),w instanceof th){const T=w;Ko(e,n,r,l,u,T.beginCaptures,S),u.produce(l,S[0].end),g=S[0].end;const P=T.getContentName(n.content,S),H=R.pushAttributed(P,e);if(l=l.withContentNameScopesList(H),T.endHasBackReferences&&(l=l.withEndRule(T.getEndWithResolvedBackReferences(n.content,S))),!L&&C.hasSameRuleAs(l)){l=l.pop(),u.produce(l,f),m=!0;return}}else if(w instanceof xu){const T=w;Ko(e,n,r,l,u,T.beginCaptures,S),u.produce(l,S[0].end),g=S[0].end;const P=T.getContentName(n.content,S),H=R.pushAttributed(P,e);if(l=l.withContentNameScopesList(H),T.whileHasBackReferences&&(l=l.withEndRule(T.getWhileWithResolvedBackReferences(n.content,S))),!L&&C.hasSameRuleAs(l)){l=l.pop(),u.produce(l,f),m=!0;return}}else if(Ko(e,n,r,l,u,w.captures,S),u.produce(l,S[0].end),l=l.pop(),!L){l=l.safePop(),u.produce(l,f),m=!0;return}}S[0].end>a&&(a=S[0].end,r=!1)}}function j2(e,n,r,a,l,u){let c=l.beginRuleCapturedEOL?0:-1;const d=[];for(let f=l;f;f=f.pop()){const m=f.getRule(e);m instanceof xu&&d.push({rule:m,stack:f})}for(let f=d.pop();f;f=d.pop()){const{ruleScanner:m,findOptions:g}=$2(f.rule,e,f.stack.endRule,r,a===c),v=m.findNextMatchSync(n,a,g);if(v){if(v.ruleId!==K_){l=f.stack.pop();break}v.captureIndices&&v.captureIndices.length&&(u.produce(f.stack,v.captureIndices[0].start),Ko(e,n,r,f.stack,u,f.rule.whileCaptures,v.captureIndices),u.produce(f.stack,v.captureIndices[0].end),c=v.captureIndices[0].end,v.captureIndices[0].end>a&&(a=v.captureIndices[0].end,r=!1))}else{l=f.stack.pop();break}}return{stack:l,linePos:a,anchorPosition:c,isFirstLine:r}}function V2(e,n,r,a,l,u){const c=B2(e,n,r,a,l,u),d=e.getInjections();if(d.length===0)return c;const f=G2(d,e,n,r,a,l,u);if(!f)return c;if(!c)return f;const m=c.captureIndices[0].start,g=f.captureIndices[0].start;return g<m||f.priorityMatch&&g===m?f:c}function B2(e,n,r,a,l,u){const c=l.getRule(e),{ruleScanner:d,findOptions:f}=n1(c,e,l.endRule,r,a===u),m=d.findNextMatchSync(n,a,f);return m?{captureIndices:m.captureIndices,matchedRuleId:m.ruleId}:null}function G2(e,n,r,a,l,u,c){let d=Number.MAX_VALUE,f=null,m,g=0;const v=u.contentNameScopesList.getScopeNames();for(let b=0,_=e.length;b<_;b++){const S=e[b];if(!S.matcher(v))continue;const E=n.getRule(S.ruleId),{ruleScanner:L,findOptions:w}=n1(E,n,null,a,l===c),C=L.findNextMatchSync(r,l,w);if(!C)continue;const A=C.captureIndices[0].start;if(!(A>=d)&&(d=A,f=C.captureIndices,m=C.ruleId,g=S.priority,d===l))break}return f?{priorityMatch:g===-1,captureIndices:f,matchedRuleId:m}:null}function n1(e,n,r,a,l){return{ruleScanner:e.compileAG(n,r,a,l),findOptions:0}}function $2(e,n,r,a,l){return{ruleScanner:e.compileWhileAG(n,r,a,l),findOptions:0}}function Ko(e,n,r,a,l,u,c){if(u.length===0)return;const d=n.content,f=Math.min(u.length,c.length),m=[],g=c[0].end;for(let v=0;v<f;v++){const b=u[v];if(b===null)continue;const _=c[v];if(_.length===0)continue;if(_.start>g)break;for(;m.length>0&&m[m.length-1].endPos<=_.start;)l.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop();if(m.length>0?l.produceFromScopes(m[m.length-1].scopes,_.start):l.produce(a,_.start),b.retokenizeCapturedWithRuleId){const E=b.getName(d,c),L=a.contentNameScopesList.pushAttributed(E,e),w=b.getContentName(d,c),C=L.pushAttributed(w,e),A=a.push(b.retokenizeCapturedWithRuleId,_.start,-1,!1,null,L,C),R=e.createOnigString(d.substring(0,_.end));t1(e,R,r&&_.start===0,_.start,A,l,!1,0),Q_(R);continue}const S=b.getName(d,c);if(S!==null){const L=(m.length>0?m[m.length-1].scopes:a.contentNameScopesList).pushAttributed(S,e);m.push(new q2(L,_.end))}}for(;m.length>0;)l.produceFromScopes(m[m.length-1].scopes,m[m.length-1].endPos),m.pop()}var q2=class{scopes;endPos;constructor(e,n){this.scopes=e,this.endPos=n}};function Y2(e,n,r,a,l,u,c,d){return new X2(e,n,r,a,l,u,c,d)}function w0(e,n,r,a,l){const u=_u(n,Eu),c=J_.getCompiledRuleId(r,a,l.repository);for(const d of u)e.push({debugSelector:n,matcher:d.matcher,ruleId:c,grammar:l,priority:d.priority})}function Eu(e,n){if(n.length<e.length)return!1;let r=0;return e.every(a=>{for(let l=r;l<n.length;l++)if(F2(n[l],a))return r=l+1,!0;return!1})}function F2(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 X2=class{constructor(e,n,r,a,l,u,c,d){if(this._rootScopeName=e,this.balancedBracketSelectors=u,this._onigLib=d,this._basicScopeAttributesProvider=new U2(r,a),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=c,this._grammar=C0(n,null),this._injections=null,this._tokenTypeMatchers=[],l)for(const f of Object.keys(l)){const m=_u(f,Eu);for(const g of m)this._tokenTypeMatchers.push({matcher:g.matcher,type:l[f]})}}_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:l=>l===this._rootScopeName?this._grammar:this.getExternalGrammar(l),injections:l=>this._grammarRepository.injections(l)},n=[],r=this._rootScopeName,a=e.lookup(r);if(a){const l=a.injections;if(l)for(let c in l)w0(n,c,l[c],this,a);const u=this._grammarRepository.injections(r);u&&u.forEach(c=>{const d=this.getExternalGrammar(c);if(d){const f=d.injectionSelector;f&&w0(n,f,d,this,d)}})}return n.sort((l,u)=>l.priority-u.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]=C0(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=J_.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let l;if(!n||n===ih.NULL){l=!0;const m=this._basicScopeAttributesProvider.getDefaultAttributes(),g=this.themeProvider.getDefaults(),v=Xa.set(0,m.languageId,m.tokenType,null,g.fontStyle,g.foregroundId,g.backgroundId),b=this.getRule(this._rootId).getName(null,null);let _;b?_=nl.createRootAndLookUpScopeName(b,v,this):_=nl.createRoot("unknown",v),n=new ih(null,this._rootId,-1,-1,!1,null,_,_)}else l=!1,n.reset();e=e+`
|
|
24
|
+
`;const u=this.createOnigString(e),c=u.content.length,d=new Q2(r,e,this._tokenTypeMatchers,this.balancedBracketSelectors),f=t1(this,u,l,0,n,d,!0,a);return Q_(u),{lineLength:c,lineTokens:d,ruleStack:f.stack,stoppedEarly:f.stoppedEarly}}};function C0(e,n){return e=h2(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 nl=class Vn{constructor(n,r,a){this.parent=n,this.scopePath=r,this.tokenAttributes=a}static fromExtension(n,r){let a=n,l=n?.scopePath??null;for(const u of r)l=_f.push(l,u.scopeNames),a=new Vn(a,l,u.encodedTokenAttributes);return a}static createRoot(n,r){return new Vn(null,new _f(null,n),r)}static createRootAndLookUpScopeName(n,r,a){const l=a.getMetadataForScope(n),u=new _f(null,n),c=a.themeProvider.themeMatch(u),d=Vn.mergeAttributes(r,l,c);return new Vn(null,u,d)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(n){return Vn.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 l=-1,u=0,c=0;return a!==null&&(l=a.fontStyle,u=a.foregroundId,c=a.backgroundId),Xa.set(n,r.languageId,r.tokenType,null,l,u,c)}pushAttributed(n,r){if(n===null)return this;if(n.indexOf(" ")===-1)return Vn._pushAttributed(this,n,r);const a=n.split(/ /g);let l=this;for(const u of a)l=Vn._pushAttributed(l,u,r);return l}static _pushAttributed(n,r,a){const l=a.getMetadataForScope(r),u=n.scopePath.push(r),c=a.themeProvider.themeMatch(u),d=Vn.mergeAttributes(n.tokenAttributes,l,c);return new Vn(n,u,d)}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}},ih=class Cr{constructor(n,r,a,l,u,c,d,f){this.parent=n,this.ruleId=r,this.beginRuleCapturedEOL=u,this.endRule=c,this.nameScopesList=d,this.contentNameScopesList=f,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=a,this._anchorPos=l}_stackElementBrand=void 0;static NULL=new Cr(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(n){return n===null?!1:Cr._equals(this,n)}static _equals(n,r){return n===r?!0:this._structuralEquals(n,r)?nl.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(){Cr._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(n,r,a,l,u,c,d){return new Cr(this,n,r,a,l,u,c,d)}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 Cr(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=nl.fromExtension(n?.nameScopesList??null,r.nameScopesList);return new Cr(n,r.ruleId,r.enterPos??-1,r.anchorPos??-1,r.beginRuleCapturedEOL,r.endRule,a,nl.fromExtension(a,r.contentNameScopesList))}},W2=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,n){this.balancedBracketScopes=e.flatMap(r=>r==="*"?(this.allowAny=!0,[]):_u(r,Eu).map(a=>a.matcher)),this.unbalancedBracketScopes=n.flatMap(r=>_u(r,Eu).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}},Q2=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,l=!1;if(this.balancedBracketSelectors?.matchesAlways&&(l=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const u=e?.getScopeNames()??[];for(const c of this._tokenTypeOverrides)c.matcher(u)&&(a=Xa.set(a,0,c.type,null,-1,0,0));this.balancedBracketSelectors&&(l=this.balancedBracketSelectors.match(u))}if(l&&(a=Xa.set(a,0,8,l,-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,l=this._binaryTokens.length;a<l;a++)r[a]=this._binaryTokens[a];return r}},Z2=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,l){if(!this._grammars.has(e)){let u=this._rawGrammars.get(e);if(!u)return null;this._grammars.set(e,Y2(e,u,n,r,a,l,this,this._onigLib))}return this._grammars.get(e)}},K2=class{_options;_syncRegistry;_ensureGrammarCache;constructor(n){this._options=n,this._syncRegistry=new Z2(yu.createFromRawTheme(n.theme,n.colorMap),n.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(n,r){this._syncRegistry.setTheme(yu.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 W2(a.balancedBracketSelectors||[],a.unbalancedBracketSelectors||[]))}loadGrammar(n){return this._loadGrammar(n,0,null,null,null)}_loadGrammar(n,r,a,l,u){const c=new k2(this._syncRegistry,n);for(;c.Q.length>0;)c.Q.map(d=>this._loadSingleGrammar(d.scopeName)),c.processQueue();return this._grammarForScopeName(n,r,a,l,u)}_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,l=null){return this._syncRegistry.addGrammar(n,r),this._grammarForScopeName(n.scopeName,a,l)}_grammarForScopeName(n,r=0,a=null,l=null,u=null){return this._syncRegistry.grammarForScopeName(n,r,a,l,u)}},rh=ih.NULL;function wu(e,n){const r=typeof e=="string"?{}:{...e.colorReplacements},a=typeof e=="string"?e:e.name;for(const[l,u]of Object.entries(n?.colorReplacements||{}))typeof u=="string"?r[l]=u:l===a&&Object.assign(r,u);return r}function er(e,n){return e&&(n?.[e?.toLowerCase()]||e)}function J2(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 Fh(e){return!e||["plaintext","txt","text","plain"].includes(e)}function r1(e){return e==="ansi"||Fh(e)}function Xh(e){return e==="none"}function a1(e){return Xh(e)}function o1(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 zu(e,n=!1){if(e.length===0)return[["",0]];const r=e.split(/(\r?\n)/g);let a=0;const l=[];for(let u=0;u<r.length;u+=2){const c=n?r[u]+(r[u+1]||""):r[u];l.push([c,a]),a+=r[u].length,a+=r[u+1]?.length||0}return l}function eL(e){const n=zu(e,!0).map(([l])=>l);function r(l){if(l===e.length)return{line:n.length-1,character:n[n.length-1].length};let u=l,c=0;for(const d of n){if(u<d.length)break;u-=d.length,c++}return{line:c,character:u}}function a(l,u){let c=0;for(let d=0;d<l;d++)c+=n[d].length;return c+=u,c}return{lines:n,indexToPos:r,posToIndex:a}}const Wh="light-dark()",tL=["color","background-color"];function nL(e,n){let r=0;const a=[];for(const l of n)l>r&&a.push({...e,content:e.content.slice(r,l),offset:e.offset+r}),r=l;return r<e.content.length&&a.push({...e,content:e.content.slice(r),offset:e.offset+r}),a}function iL(e,n){const r=Array.from(n instanceof Set?n:new Set(n)).sort((a,l)=>a-l);return r.length?e.map(a=>a.flatMap(l=>{const u=r.filter(c=>l.offset<c&&c<l.offset+l.content.length).map(c=>c-l.offset).sort((c,d)=>c-d);return u.length?nL(l,u):l})):e}function rL(e,n,r,a,l="css-vars"){const u={content:e.content,explanation:e.explanation,offset:e.offset},c=n.map(g=>Cu(e.variants[g])),d=new Set(c.flatMap(g=>Object.keys(g))),f={},m=(g,v)=>{const b=v==="color"?"":v==="background-color"?"-bg":`-${v}`;return r+n[g]+(v==="color"?"":b)};return c.forEach((g,v)=>{for(const b of d){const _=g[b]||"inherit";if(v===0&&a&&tL.includes(b))if(a===Wh&&c.length>1){const S=n.findIndex(C=>C==="light"),E=n.findIndex(C=>C==="dark");if(S===-1||E===-1)throw new dt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const L=c[S][b]||"inherit",w=c[E][b]||"inherit";f[b]=`light-dark(${L}, ${w})`,l==="css-vars"&&(f[m(v,b)]=_)}else f[b]=_;else l==="css-vars"&&(f[m(v,b)]=_)}}),u.htmlStyle=f,u}function Cu(e){const n={};if(e.color&&(n.color=e.color),e.bgColor&&(n["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&Dt.Italic&&(n["font-style"]="italic"),e.fontStyle&Dt.Bold&&(n["font-weight"]="bold");const r=[];e.fontStyle&Dt.Underline&&r.push("underline"),e.fontStyle&Dt.Strikethrough&&r.push("line-through"),r.length&&(n["text-decoration"]=r.join(" "))}return n}function ah(e){return typeof e=="string"?e:Object.entries(e).map(([n,r])=>`${n}:${r}`).join(";")}const l1=new WeakMap;function Iu(e,n){l1.set(e,n)}function hl(e){return l1.get(e)}class Za{_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 Za(Object.fromEntries(J2(r).map(a=>[a,rh])),n)}constructor(...n){if(n.length===2){const[r,a]=n;this.lang=a,this._stacks=r}else{const[r,a,l]=n;this.lang=a,this._stacks={[l]:r}}}getInternalStack(n=this.theme){return this._stacks[n]}getScopes(n=this.theme){return aL(this._stacks[n])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function aL(e){const n=[],r=new Set;function a(l){if(r.has(l))return;r.add(l);const u=l?.nameScopesList?.scopeName;u&&n.push(u),l.parent&&a(l.parent)}return a(e),n}function oL(e,n){if(!(e instanceof Za))throw new dt("Invalid grammar state");return e.getInternalStack(n)}function lL(){const e=new WeakMap;function n(r){if(!e.has(r.meta)){let a=function(c){if(typeof c=="number"){if(c<0||c>r.source.length)throw new dt(`Invalid decoration offset: ${c}. Code length: ${r.source.length}`);return{...l.indexToPos(c),offset:c}}else{const d=l.lines[c.line];if(d===void 0)throw new dt(`Invalid decoration position ${JSON.stringify(c)}. Lines length: ${l.lines.length}`);let f=c.character;if(f<0&&(f=d.length+f),f<0||f>d.length)throw new dt(`Invalid decoration position ${JSON.stringify(c)}. Line ${c.line} length: ${d.length}`);return{...c,character:f,offset:l.posToIndex(c.line,f)}}};const l=eL(r.source),u=(r.options.decorations||[]).map(c=>({...c,start:a(c.start),end:a(c.end)}));sL(u),e.set(r.meta,{decorations:u,converter:l,source:r.source})}return e.get(r.meta)}return{name:"shiki:decorations",tokens(r){if(!this.options.decorations?.length)return;const l=n(this).decorations.flatMap(c=>[c.start.offset,c.end.offset]);return iL(r,l)},code(r){if(!this.options.decorations?.length)return;const a=n(this),l=Array.from(r.children).filter(g=>g.type==="element"&&g.tagName==="span");if(l.length!==a.converter.lines.length)throw new dt(`Number of lines in code element (${l.length}) does not match the number of lines in the source (${a.converter.lines.length}). Failed to apply decorations.`);function u(g,v,b,_){const S=l[g];let E="",L=-1,w=-1;if(v===0&&(L=0),b===0&&(w=0),b===Number.POSITIVE_INFINITY&&(w=S.children.length),L===-1||w===-1)for(let A=0;A<S.children.length;A++)E+=s1(S.children[A]),L===-1&&E.length===v&&(L=A+1),w===-1&&E.length===b&&(w=A+1);if(L===-1)throw new dt(`Failed to find start index for decoration ${JSON.stringify(_.start)}`);if(w===-1)throw new dt(`Failed to find end index for decoration ${JSON.stringify(_.end)}`);const C=S.children.slice(L,w);if(!_.alwaysWrap&&C.length===S.children.length)d(S,_,"line");else if(!_.alwaysWrap&&C.length===1&&C[0].type==="element")d(C[0],_,"token");else{const A={type:"element",tagName:"span",properties:{},children:C};d(A,_,"wrapper"),S.children.splice(L,C.length,A)}}function c(g,v){l[g]=d(l[g],v,"line")}function d(g,v,b){const _=v.properties||{},S=v.transform||(E=>E);return g.tagName=v.tagName||"span",g.properties={...g.properties,..._,class:g.properties.class},v.properties?.class&&o1(g,v.properties.class),g=S(g,b)||g,g}const f=[],m=a.decorations.sort((g,v)=>v.start.offset-g.start.offset||g.end.offset-v.end.offset);for(const g of m){const{start:v,end:b}=g;if(v.line===b.line)u(v.line,v.character,b.character,g);else if(v.line<b.line){u(v.line,v.character,Number.POSITIVE_INFINITY,g);for(let _=v.line+1;_<b.line;_++)f.unshift(()=>c(_,g));u(b.line,0,b.character,g)}}f.forEach(g=>g())}}}function sL(e){for(let n=0;n<e.length;n++){const r=e[n];if(r.start.offset>r.end.offset)throw new dt(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);for(let a=n+1;a<e.length;a++){const l=e[a],u=r.start.offset<=l.start.offset&&l.start.offset<r.end.offset,c=r.start.offset<l.end.offset&&l.end.offset<=r.end.offset,d=l.start.offset<=r.start.offset&&r.start.offset<l.end.offset,f=l.start.offset<r.end.offset&&r.end.offset<=l.end.offset;if(u||c||d||f){if(u&&c||d&&f||d&&r.start.offset===r.end.offset||c&&l.start.offset===l.end.offset)continue;throw new dt(`Decorations ${JSON.stringify(r.start)} and ${JSON.stringify(l.start)} intersect.`)}}}}function s1(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(s1).join(""):""}const uL=[lL()];function Au(e){const n=cL(e.transformers||[]);return[...n.pre,...n.normal,...n.post,...uL]}function cL(e){const n=[],r=[],a=[];for(const l of e)switch(l.enforce){case"pre":n.push(l);break;case"post":r.push(l);break;default:a.push(l)}return{pre:n,post:r,normal:a}}var Tr=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],xf={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function dL(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 A0(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 fL(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)xf[a]&&n.push({type:"setDecoration",value:xf[a]});else if(a<=29){const l=xf[a-20];l&&(n.push({type:"resetDecoration",value:l}),l==="dim"&&n.push({type:"resetDecoration",value:"bold"}))}else if(a<=37)n.push({type:"setForegroundColor",value:{type:"named",name:Tr[a-30]}});else if(a===38){const l=A0(e);l&&n.push({type:"setForegroundColor",value:l})}else if(a===39)n.push({type:"resetForegroundColor"});else if(a<=47)n.push({type:"setBackgroundColor",value:{type:"named",name:Tr[a-40]}});else if(a===48){const l=A0(e);l&&n.push({type:"setBackgroundColor",value:l})}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:Tr[a-90+8]}}):a>=100&&a<=107&&n.push({type:"setBackgroundColor",value:{type:"named",name:Tr[a-100+8]}})}return n}function hL(){let e=null,n=null,r=new Set;return{parse(a){const l=[];let u=0;do{const c=dL(a,u),d=c.sequence?a.substring(u,c.startPosition):a.substring(u);if(d.length>0&&l.push({value:d,foreground:e,background:n,decorations:new Set(r)}),c.sequence){const f=fL(c.sequence);for(const m of f)m.type==="resetAll"?(e=null,n=null,r.clear()):m.type==="resetForegroundColor"?e=null:m.type==="resetBackgroundColor"?n=null:m.type==="resetDecoration"&&r.delete(m.value);for(const m of f)m.type==="setForegroundColor"?e=m.value:m.type==="setBackgroundColor"?n=m.value:m.type==="setDecoration"&&r.add(m.value)}u=c.position}while(u<a.length);return l}}}var pL={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 mL(e=pL){function n(d){return e[d]}function r(d){return`#${d.map(f=>Math.max(0,Math.min(f,255)).toString(16).padStart(2,"0")).join("")}`}let a;function l(){if(a)return a;a=[];for(let m=0;m<Tr.length;m++)a.push(n(Tr[m]));let d=[0,95,135,175,215,255];for(let m=0;m<6;m++)for(let g=0;g<6;g++)for(let v=0;v<6;v++)a.push(r([d[m],d[g],d[v]]));let f=8;for(let m=0;m<24;m++,f+=10)a.push(r([f,f,f]));return a}function u(d){return l()[d]}function c(d){switch(d.type){case"named":return n(d.name);case"rgb":return r(d.rgb);case"table":return u(d.index)}}return{value:c}}const gL={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 vL(e,n,r){const a=wu(e,r),l=zu(n),u=Object.fromEntries(Tr.map(f=>{const m=`terminal.ansi${f[0].toUpperCase()}${f.substring(1)}`,g=e.colors?.[m];return[f,g||gL[f]]})),c=mL(u),d=hL();return l.map(f=>d.parse(f[0]).map(m=>{let g,v;m.decorations.has("reverse")?(g=m.background?c.value(m.background):e.bg,v=m.foreground?c.value(m.foreground):e.fg):(g=m.foreground?c.value(m.foreground):e.fg,v=m.background?c.value(m.background):void 0),g=er(g,a),v=er(v,a),m.decorations.has("dim")&&(g=bL(g));let b=Dt.None;return m.decorations.has("bold")&&(b|=Dt.Bold),m.decorations.has("italic")&&(b|=Dt.Italic),m.decorations.has("underline")&&(b|=Dt.Underline),m.decorations.has("strikethrough")&&(b|=Dt.Strikethrough),{content:m.value,offset:f[1],color:g,bgColor:v,fontStyle:b}}))}function bL(e){const n=e.match(/#([0-9a-f]{3,8})/i);if(n){const a=n[1];if(a.length===8){const l=Math.round(Number.parseInt(a.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${a.slice(0,6)}${l}`}else{if(a.length===6)return`#${a}80`;if(a.length===4){const l=a[0],u=a[1],c=a[2],d=a[3],f=Math.round(Number.parseInt(`${d}${d}`,16)/2).toString(16).padStart(2,"0");return`#${l}${l}${u}${u}${c}${c}${f}`}else if(a.length===3){const l=a[0],u=a[1],c=a[2];return`#${l}${l}${u}${u}${c}${c}80`}}}const r=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return r?`var(${r[1]}-dim)`:e}function Qh(e,n,r={}){const{theme:a=e.getLoadedThemes()[0]}=r,l=e.resolveLangAlias(r.lang||"text");if(Fh(l)||Xh(a))return zu(n).map(f=>[{content:f[0],offset:f[1]}]);const{theme:u,colorMap:c}=e.setTheme(a);if(l==="ansi")return vL(u,n,r);const d=e.getLanguage(r.lang||"text");if(r.grammarState){if(r.grammarState.lang!==d.name)throw new dt(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${d.name}"`);if(!r.grammarState.themes.includes(u.name))throw new dt(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${u.name}"`)}return _L(n,d,u,c,r)}function yL(...e){if(e.length===2)return hl(e[1]);const[n,r,a={}]=e,{lang:l="text",theme:u=n.getLoadedThemes()[0]}=a;if(Fh(l)||Xh(u))throw new dt("Plain language does not have grammar state");if(l==="ansi")throw new dt("ANSI language does not have grammar state");const{theme:c,colorMap:d}=n.setTheme(u),f=n.getLanguage(l);return new Za(Zh(r,f,c,d,a).stateStack,f.name,c.name)}function _L(e,n,r,a,l){const u=Zh(e,n,r,a,l),c=new Za(u.stateStack,n.name,r.name);return Iu(u.tokens,c),u.tokens}function Zh(e,n,r,a,l){const u=wu(r,l),{tokenizeMaxLineLength:c=0,tokenizeTimeLimit:d=500}=l,f=zu(e);let m=l.grammarState?oL(l.grammarState,r.name)??rh:l.grammarContextCode!=null?Zh(l.grammarContextCode,n,r,a,{...l,grammarState:void 0,grammarContextCode:void 0}).stateStack:rh,g=[];const v=[];for(let b=0,_=f.length;b<_;b++){const[S,E]=f[b];if(S===""){g=[],v.push([]);continue}if(c>0&&S.length>=c){g=[],v.push([{content:S,offset:E,color:"",fontStyle:0}]);continue}let L,w,C;l.includeExplanation&&(L=n.tokenizeLine(S,m,d),w=L.tokens,C=0);const A=n.tokenizeLine2(S,m,d),R=A.tokens.length/2;for(let T=0;T<R;T++){const P=A.tokens[2*T],H=T+1<R?A.tokens[2*T+2]:S.length;if(P===H)continue;const I=A.tokens[2*T+1],K=er(a[Xa.getForeground(I)],u),Z=Xa.getFontStyle(I),F={content:S.substring(P,H),offset:E+P,color:K,fontStyle:Z};if(l.includeExplanation){const V=[];if(l.includeExplanation!=="scopeName")for(const J of r.settings){let W;switch(typeof J.scope){case"string":W=J.scope.split(/,/).map(D=>D.trim());break;case"object":W=J.scope;break;default:continue}V.push({settings:J,selectors:W.map(D=>D.split(/ /))})}F.explanation=[];let te=0;for(;P+te<H;){const J=w[C],W=S.substring(J.startIndex,J.endIndex);te+=W.length,F.explanation.push({content:W,scopes:l.includeExplanation==="scopeName"?SL(J.scopes):xL(V,J.scopes)}),C+=1}}g.push(F)}v.push(g),g=[],m=A.ruleStack}return{tokens:v,stateStack:m}}function SL(e){return e.map(n=>({scopeName:n}))}function xL(e,n){const r=[];for(let a=0,l=n.length;a<l;a++){const u=n[a];r[a]={scopeName:u,themeMatches:wL(e,u,n.slice(0,a))}}return r}function k0(e,n){return e===n||n.substring(0,e.length)===e&&n[e.length]==="."}function EL(e,n,r){if(!k0(e[e.length-1],n))return!1;let a=e.length-2,l=r.length-1;for(;a>=0&&l>=0;)k0(e[a],r[l])&&(a-=1),l-=1;return a===-1}function wL(e,n,r){const a=[];for(const{selectors:l,settings:u}of e)for(const c of l)if(EL(c,n,r)){a.push(u);break}return a}function u1(e,n,r){const a=Object.entries(r.themes).filter(f=>f[1]).map(f=>({color:f[0],theme:f[1]})),l=a.map(f=>{const m=Qh(e,n,{...r,theme:f.theme}),g=hl(m),v=typeof f.theme=="string"?f.theme:f.theme.name;return{tokens:m,state:g,theme:v}}),u=CL(...l.map(f=>f.tokens)),c=u[0].map((f,m)=>f.map((g,v)=>{const b={content:g.content,variants:{},offset:g.offset};return"includeExplanation"in r&&r.includeExplanation&&(b.explanation=g.explanation),u.forEach((_,S)=>{const{content:E,explanation:L,offset:w,...C}=_[m][v];b.variants[a[S].color]=C}),b})),d=l[0].state?new Za(Object.fromEntries(l.map(f=>[f.theme,f.state?.getInternalStack(f.theme)])),l[0].state.lang):void 0;return d&&Iu(c,d),c}function CL(...e){const n=e.map(()=>[]),r=e.length;for(let a=0;a<e[0].length;a++){const l=e.map(f=>f[a]),u=n.map(()=>[]);n.forEach((f,m)=>f.push(u[m]));const c=l.map(()=>0),d=l.map(f=>f[0]);for(;d.every(f=>f);){const f=Math.min(...d.map(m=>m.content.length));for(let m=0;m<r;m++){const g=d[m];g.content.length===f?(u[m].push(g),c[m]+=1,d[m]=l[m][c[m]]):(u[m].push({...g,content:g.content.slice(0,f)}),d[m]={...g,content:g.content.slice(f),offset:g.offset+f})}}}return n}function ku(e,n,r){let a,l,u,c,d,f;if("themes"in r){const{defaultColor:m="light",cssVariablePrefix:g="--shiki-",colorsRendering:v="css-vars"}=r,b=Object.entries(r.themes).filter(w=>w[1]).map(w=>({color:w[0],theme:w[1]})).sort((w,C)=>w.color===m?-1:C.color===m?1:0);if(b.length===0)throw new dt("`themes` option must not be empty");const _=u1(e,n,r);if(f=hl(_),m&&Wh!==m&&!b.find(w=>w.color===m))throw new dt(`\`themes\` option must contain the defaultColor key \`${m}\``);const S=b.map(w=>e.getTheme(w.theme)),E=b.map(w=>w.color);u=_.map(w=>w.map(C=>rL(C,E,g,m,v))),f&&Iu(u,f);const L=b.map(w=>wu(w.theme,r));l=T0(b,S,L,g,m,"fg",v),a=T0(b,S,L,g,m,"bg",v),c=`shiki-themes ${S.map(w=>w.name).join(" ")}`,d=m?void 0:[l,a].join(";")}else if("theme"in r){const m=wu(r.theme,r);u=Qh(e,n,r);const g=e.getTheme(r.theme);a=er(g.bg,m),l=er(g.fg,m),c=g.name,f=hl(u)}else throw new dt("Invalid options, either `theme` or `themes` must be provided");return{tokens:u,fg:l,bg:a,themeName:c,rootStyle:d,grammarState:f}}function T0(e,n,r,a,l,u,c){return e.map((d,f)=>{const m=er(n[f][u],r[f])||"inherit",g=`${a+d.color}${u==="bg"?"-bg":""}:${m}`;if(f===0&&l){if(l===Wh&&e.length>1){const v=e.findIndex(E=>E.color==="light"),b=e.findIndex(E=>E.color==="dark");if(v===-1||b===-1)throw new dt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const _=er(n[v][u],r[v])||"inherit",S=er(n[b][u],r[b])||"inherit";return`light-dark(${_}, ${S});${g}`}return m}return c==="css-vars"?g:null}).filter(d=>!!d).join(";")}function Tu(e,n,r,a={meta:{},options:r,codeToHast:(l,u)=>Tu(e,l,u),codeToTokens:(l,u)=>ku(e,l,u)}){let l=n;for(const S of Au(r))l=S.preprocess?.call(a,l,r)||l;let{tokens:u,fg:c,bg:d,themeName:f,rootStyle:m,grammarState:g}=ku(e,l,r);const{mergeWhitespaces:v=!0,mergeSameStyleTokens:b=!1}=r;v===!0?u=kL(u):v==="never"&&(u=TL(u)),b&&(u=LL(u));const _={...a,get source(){return l}};for(const S of Au(r))u=S.tokens?.call(_,u)||u;return AL(u,{...r,fg:c,bg:d,themeName:f,rootStyle:r.rootStyle===!1?!1:r.rootStyle??m},_,g)}function AL(e,n,r,a=hl(e)){const l=Au(n),u=[],c={type:"root",children:[]},{structure:d="classic",tabindex:f="0"}=n,m={class:`shiki ${n.themeName||""}`};n.rootStyle!==!1&&(n.rootStyle!=null?m.style=n.rootStyle:m.style=`background-color:${n.bg};color:${n.fg}`),f!==!1&&f!=null&&(m.tabindex=f.toString());for(const[E,L]of Object.entries(n.meta||{}))E.startsWith("_")||(m[E]=L);let g={type:"element",tagName:"pre",properties:m,children:[],data:n.data},v={type:"element",tagName:"code",properties:{},children:u};const b=[],_={...r,structure:d,addClassToHast:o1,get source(){return r.source},get tokens(){return e},get options(){return n},get root(){return c},get pre(){return g},get code(){return v},get lines(){return b}};if(e.forEach((E,L)=>{L&&(d==="inline"?c.children.push({type:"element",tagName:"br",properties:{},children:[]}):d==="classic"&&u.push({type:"text",value:`
|
|
25
|
+
`}));let w={type:"element",tagName:"span",properties:{class:"line"},children:[]},C=0;for(const A of E){let R={type:"element",tagName:"span",properties:{...A.htmlAttrs},children:[{type:"text",value:A.content}]};const T=ah(A.htmlStyle||Cu(A));T&&(R.properties.style=T);for(const P of l)R=P?.span?.call(_,R,L+1,C,w,A)||R;d==="inline"?c.children.push(R):d==="classic"&&w.children.push(R),C+=A.content.length}if(d==="classic"){for(const A of l)w=A?.line?.call(_,w,L+1)||w;b.push(w),u.push(w)}else d==="inline"&&b.push(w)}),d==="classic"){for(const E of l)v=E?.code?.call(_,v)||v;g.children.push(v);for(const E of l)g=E?.pre?.call(_,g)||g;c.children.push(g)}else if(d==="inline"){const E=[];let L={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const A of c.children)A.type==="element"&&A.tagName==="br"?(E.push(L),L={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(A.type==="element"||A.type==="text")&&L.children.push(A);E.push(L);let C={type:"element",tagName:"code",properties:{},children:E};for(const A of l)C=A?.code?.call(_,C)||C;c.children=[];for(let A=0;A<C.children.length;A++){A>0&&c.children.push({type:"element",tagName:"br",properties:{},children:[]});const R=C.children[A];R.type==="element"&&c.children.push(...R.children)}}let S=c;for(const E of l)S=E?.root?.call(_,S)||S;return a&&Iu(S,a),S}function kL(e){return e.map(n=>{const r=[];let a="",l;return n.forEach((u,c)=>{const f=!(u.fontStyle&&(u.fontStyle&Dt.Underline||u.fontStyle&Dt.Strikethrough));f&&u.content.match(/^\s+$/)&&n[c+1]?(l===void 0&&(l=u.offset),a+=u.content):a?(f?r.push({...u,offset:l,content:a+u.content}):r.push({content:a,offset:l},u),l=void 0,a=""):r.push(u)}),r})}function TL(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[,l,u,c]=a;if(!l&&!c)return r;const d=[{...r,offset:r.offset+l.length,content:u}];return l&&d.unshift({content:l,offset:r.offset}),c&&d.push({content:c,offset:r.offset+l.length+u.length}),d}))}function LL(e){return e.map(n=>{const r=[];for(const a of n){if(r.length===0){r.push({...a});continue}const l=r[r.length-1],u=ah(l.htmlStyle||Cu(l)),c=ah(a.htmlStyle||Cu(a)),d=l.fontStyle&&(l.fontStyle&Dt.Underline||l.fontStyle&Dt.Strikethrough),f=a.fontStyle&&(a.fontStyle&Dt.Underline||a.fontStyle&Dt.Strikethrough);!d&&!f&&u===c?l.content+=a.content:r.push({...a})}return r})}const RL=Ya;function NL(e,n,r){const a={meta:{},options:r,codeToHast:(u,c)=>Tu(e,u,c),codeToTokens:(u,c)=>ku(e,u,c)};let l=RL(Tu(e,n,r,a));for(const u of Au(r))l=u.postprocess?.call(a,l,r)||l;return l}const L0={light:"#333333",dark:"#bbbbbb"},R0={light:"#fffffe",dark:"#1e1e1e"},N0="__shiki_resolved";function Pu(e){if(e?.[N0])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 d=n.settings?n.settings.find(f=>!f.name&&!f.scope):void 0;d?.settings?.foreground&&(a=d.settings.foreground),d?.settings?.background&&(r=d.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"?L0.light:L0.dark),r||(r=n.type==="light"?R0.light:R0.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 l=0;const u=new Map;function c(d){if(u.has(d))return u.get(d);l+=1;const f=`#${l.toString(16).padStart(8,"0").toLowerCase()}`;return n.colorReplacements?.[`#${f}`]?c(d):(u.set(d,f),f)}n.settings=n.settings.map(d=>{const f=d.settings?.foreground&&!d.settings.foreground.startsWith("#"),m=d.settings?.background&&!d.settings.background.startsWith("#");if(!f&&!m)return d;const g={...d,settings:{...d.settings}};if(f){const v=c(d.settings.foreground);n.colorReplacements[v]=d.settings.foreground,g.settings.foreground=v}if(m){const v=c(d.settings.background);n.colorReplacements[v]=d.settings.background,g.settings.background=v}return g});for(const d of Object.keys(n.colors||{}))if((d==="editor.foreground"||d==="editor.background"||d.startsWith("terminal.ansi"))&&!n.colors[d]?.startsWith("#")){const f=c(n.colors[d]);n.colorReplacements[f]=n.colors[d],n.colors[d]=f}return Object.defineProperty(n,N0,{enumerable:!1,writable:!1,value:!0}),n}async function c1(e){return Array.from(new Set((await Promise.all(e.filter(n=>!r1(n)).map(async n=>await i1(n).then(r=>Array.isArray(r)?r:[r])))).flat()))}async function d1(e){return(await Promise.all(e.map(async r=>a1(r)?null:Pu(await i1(r))))).filter(r=>!!r)}let OL=3;function ML(e,n=3){n>OL||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let ja=class extends Error{constructor(n){super(n),this.name="ShikiError"}};function f1(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 ja(`Circular alias \`${Array.from(r).join(" -> ")} -> ${e}\``);r.add(e)}}return e}class DL extends K2{constructor(n,r,a,l={}){super(n),this._resolver=n,this._themes=r,this._langs=a,this._alias=l,this._themes.map(u=>this.loadTheme(u)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const r=Pu(n);return r.name&&(this._resolvedThemes.set(r.name,r),this._loadedThemesCache=null),r}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let r=this._textmateThemeCache.get(n);r||(r=yu.createFromRawTheme(n),this._textmateThemeCache.set(n,r)),this._syncRegistry.setTheme(r)}getGrammar(n){return n=f1(n,this._alias),this._resolvedGrammars.get(n)}loadLanguage(n){if(this.getGrammar(n.name))return;const r=new Set([...this._langMap.values()].filter(u=>u.embeddedLangsLazy?.includes(n.name)));this._resolver.addLanguage(n);const a={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const l=this.loadGrammarWithConfiguration(n.scopeName,1,a);if(l.name=n.name,this._resolvedGrammars.set(n.name,l),n.aliases&&n.aliases.forEach(u=>{this._alias[u]=n.name}),this._loadedLanguagesCache=null,r.size)for(const u of r)this._resolvedGrammars.delete(u.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(u.scopeName),this._syncRegistry?._grammars?.delete(u.scopeName),this.loadLanguage(this._langMap.get(u.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const l of n)this.resolveEmbeddedLanguages(l);const r=Array.from(this._langGraph.entries()),a=r.filter(([l,u])=>!u);if(a.length){const l=r.filter(([u,c])=>c?(c.embeddedLanguages||c.embeddedLangs)?.some(f=>a.map(([m])=>m).includes(f)):!1).filter(u=>!a.includes(u));throw new ja(`Missing languages ${a.map(([u])=>`\`${u}\``).join(", ")}, required by ${l.map(([u])=>`\`${u}\``).join(", ")}`)}for(const[l,u]of r)this._resolver.addLanguage(u);for(const[l,u]of r)this.loadLanguage(u)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){this._langMap.set(n.name,n),this._langGraph.set(n.name,n);const r=n.embeddedLanguages??n.embeddedLangs;if(r)for(const a of r)this._langGraph.set(a,this._langMap.get(a))}}class zL{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(n,r){this._onigLib={createOnigScanner:a=>n.createScanner(a),createOnigString:a=>n.createString(a)},r.forEach(a=>this.addLanguage(a))}get onigLib(){return this._onigLib}getLangRegistration(n){return this._langs.get(n)}loadGrammar(n){return this._scopeToLang.get(n)}addLanguage(n){this._langs.set(n.name,n),n.aliases&&n.aliases.forEach(r=>{this._langs.set(r,n)}),this._scopeToLang.set(n.scopeName,n),n.injectTo&&n.injectTo.forEach(r=>{this._injections.get(r)||this._injections.set(r,[]),this._injections.get(r).push(n.scopeName)})}getInjections(n){const r=n.split(".");let a=[];for(let l=1;l<=r.length;l++){const u=r.slice(0,l).join(".");a=[...a,...this._injections.get(u)||[]]}return a}}let Wo=0;function IL(e){Wo+=1,e.warnings!==!1&&Wo>=10&&Wo%10===0&&console.warn(`[Shiki] ${Wo} 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 ja("`engine` option is required for synchronous mode");const r=(e.langs||[]).flat(1),a=(e.themes||[]).flat(1).map(Pu),l=new zL(e.engine,r),u=new DL(l,a,r,e.langAlias);let c;function d(A){return f1(A,e.langAlias)}function f(A){w();const R=u.getGrammar(typeof A=="string"?A:A.name);if(!R)throw new ja(`Language \`${A}\` not found, you may need to load it first`);return R}function m(A){if(A==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};w();const R=u.getTheme(A);if(!R)throw new ja(`Theme \`${A}\` not found, you may need to load it first`);return R}function g(A){w();const R=m(A);c!==A&&(u.setTheme(R),c=A);const T=u.getColorMap();return{theme:R,colorMap:T}}function v(){return w(),u.getLoadedThemes()}function b(){return w(),u.getLoadedLanguages()}function _(...A){w(),u.loadLanguages(A.flat(1))}async function S(...A){return _(await c1(A))}function E(...A){w();for(const R of A.flat(1))u.loadTheme(R)}async function L(...A){return w(),E(await d1(A))}function w(){if(n)throw new ja("Shiki instance has been disposed")}function C(){n||(n=!0,u.dispose(),Wo-=1)}return{setTheme:g,getTheme:m,getLanguage:f,getLoadedThemes:v,getLoadedLanguages:b,resolveLangAlias:d,loadLanguage:S,loadLanguageSync:_,loadTheme:L,loadThemeSync:E,dispose:C,[Symbol.dispose]:C}}async function PL(e){e.engine||ML("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[n,r,a]=await Promise.all([d1(e.themes||[]),c1(e.langs||[]),e.engine]);return IL({...e,themes:n,langs:r,engine:a})}async function UL(e){const n=await PL(e);return{getLastGrammarState:(...r)=>yL(n,...r),codeToTokensBase:(r,a)=>Qh(n,r,a),codeToTokensWithThemes:(r,a)=>u1(n,r,a),codeToTokens:(r,a)=>ku(n,r,a),codeToHast:(r,a)=>Tu(n,r,a),codeToHtml:(r,a)=>NL(n,r,a),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...n,getInternalContext:()=>n}}function HL(e){const n=e.langs,r=e.themes,a=e.engine;async function l(u){function c(v){if(typeof v=="string"){if(v=u.langAlias?.[v]||v,r1(v))return[];const b=n[v];if(!b)throw new dt(`Language \`${v}\` is not included in this bundle. You may want to load it from external source.`);return b}return v}function d(v){if(a1(v))return"none";if(typeof v=="string"){const b=r[v];if(!b)throw new dt(`Theme \`${v}\` is not included in this bundle. You may want to load it from external source.`);return b}return v}const f=(u.themes??[]).map(v=>d(v)),m=(u.langs??[]).map(v=>c(v)),g=await UL({engine:u.engine??a(),...u,themes:f,langs:m});return{...g,loadLanguage(...v){return g.loadLanguage(...v.map(c))},loadTheme(...v){return g.loadTheme(...v.map(d))},getBundledLanguages(){return n},getBundledThemes(){return r}}}return l}const h1=[{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-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>k(()=>import("./angular-ts-BwZT4LLn.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-dKokRX4l.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-CbQHKStN.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-DPOp833l.js"),[]))},{id:"blade",name:"Blade",import:(()=>k(()=>import("./blade-D4QpJJKB.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-nwyudZeR.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-tKQVLTB8.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-DPfMkruS.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-CF10PKvl.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-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>k(()=>import("./elixir-CDX3lj18.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-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>k(()=>import("./erb-B12qg9BL.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-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>k(()=>import("./glimmer-ts-U6CK756n.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-CxLEBnE3.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-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>k(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>k(()=>import("./handlebars-BL8al0AC.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-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>k(()=>import("./html-derivative-BFtXZ54Q.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-4LBKfQ-Z.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-Cw27pwNe.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-DZf3V79B.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-DYVedYrR.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-CnJfTvn9.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-BMNejdWA.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-Zz6hmt5N.js"),__vite__mapDeps([71,72])))},{id:"nextflow-groovy",name:"nextflow-groovy",import:(()=>k(()=>import("./nextflow-groovy-BeH2EWoN.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>k(()=>import("./nginx-BpAMiNFr.js"),__vite__mapDeps([73,37,26])))},{id:"nim",name:"Nim",import:(()=>k(()=>import("./nim-CVrawwO9.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-C0TMdlhV.js"),__vite__mapDeps([64,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>k(()=>import("./php-Dhbhpdrm.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-CGlum2m_.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-Uh8Bk_45.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-BrH8l1NY.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-Dw2BHqvy.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-OYdSNvt2.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-Brmx7dQM.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-C_ipcX3V.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-P3uqSqPl.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-zn1MmPIZ.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-DNn4PbVi.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-BGHnOYBU.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-DN_0RTcg.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-CQOfvN7w.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"),[]))}],jL=Object.fromEntries(h1.map(e=>[e.id,e.import])),VL=Object.fromEntries(h1.flatMap(e=>e.aliases?.map(n=>[n,e.import])||[])),oh={...jL,...VL},BL=[{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:"dark",import:(()=>k(()=>import("./horizon-bright-Cn-bp-IR.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"),[]))}],p1=Object.fromEntries(BL.map(e=>[e.id,e.import]));class Kh extends Error{constructor(n){super(n),this.name="ShikiError"}}function GL(){return 2147483648}function $L(){return typeof performance<"u"?performance.now():Date.now()}const qL=(e,n)=>e+(n-e%n)%n;async function YL(e){let n,r;const a={};function l(_){r=_,a.HEAPU8=new Uint8Array(_),a.HEAPU32=new Uint32Array(_)}function u(_,S,E){a.HEAPU8.copyWithin(_,S,S+E)}function c(_){try{return n.grow(_-r.byteLength+65535>>>16),l(n.buffer),1}catch{}}function d(_){const S=a.HEAPU8.length;_=_>>>0;const E=GL();if(_>E)return!1;for(let L=1;L<=4;L*=2){let w=S*(1+.2/L);w=Math.min(w,_+100663296);const C=Math.min(E,qL(Math.max(_,w),65536));if(c(C))return!0}return!1}const f=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function m(_,S,E=1024){const L=S+E;let w=S;for(;_[w]&&!(w>=L);)++w;if(w-S>16&&_.buffer&&f)return f.decode(_.subarray(S,w));let C="";for(;S<w;){let A=_[S++];if(!(A&128)){C+=String.fromCharCode(A);continue}const R=_[S++]&63;if((A&224)===192){C+=String.fromCharCode((A&31)<<6|R);continue}const T=_[S++]&63;if((A&240)===224?A=(A&15)<<12|R<<6|T:A=(A&7)<<18|R<<12|T<<6|_[S++]&63,A<65536)C+=String.fromCharCode(A);else{const P=A-65536;C+=String.fromCharCode(55296|P>>10,56320|P&1023)}}return C}function g(_,S){return _?m(a.HEAPU8,_,S):""}const v={emscripten_get_now:$L,emscripten_memcpy_big:u,emscripten_resize_heap:d,fd_write:()=>0};async function b(){const S=await e({env:v,wasi_snapshot_preview1:v});n=S.memory,l(n.buffer),Object.assign(a,S),a.UTF8ToString=g}return await b(),a}var FL=Object.defineProperty,XL=(e,n,r)=>n in e?FL(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,pt=(e,n,r)=>XL(e,typeof n!="symbol"?n+"":n,r);let _t=null;function WL(e){throw new Kh(e.UTF8ToString(e.getLastOnigError()))}class Uu{constructor(n){pt(this,"utf16Length"),pt(this,"utf8Length"),pt(this,"utf16Value"),pt(this,"utf8Value"),pt(this,"utf16OffsetToUtf8"),pt(this,"utf8OffsetToUtf16");const r=n.length,a=Uu._utf8ByteLength(n),l=a!==r,u=l?new Uint32Array(r+1):null;l&&(u[r]=a);const c=l?new Uint32Array(a+1):null;l&&(c[a]=r);const d=new Uint8Array(a);let f=0;for(let m=0;m<r;m++){const g=n.charCodeAt(m);let v=g,b=!1;if(g>=55296&&g<=56319&&m+1<r){const _=n.charCodeAt(m+1);_>=56320&&_<=57343&&(v=(g-55296<<10)+65536|_-56320,b=!0)}l&&(u[m]=f,b&&(u[m+1]=f),v<=127?c[f+0]=m:v<=2047?(c[f+0]=m,c[f+1]=m):v<=65535?(c[f+0]=m,c[f+1]=m,c[f+2]=m):(c[f+0]=m,c[f+1]=m,c[f+2]=m,c[f+3]=m)),v<=127?d[f++]=v:v<=2047?(d[f++]=192|(v&1984)>>>6,d[f++]=128|(v&63)>>>0):v<=65535?(d[f++]=224|(v&61440)>>>12,d[f++]=128|(v&4032)>>>6,d[f++]=128|(v&63)>>>0):(d[f++]=240|(v&1835008)>>>18,d[f++]=128|(v&258048)>>>12,d[f++]=128|(v&4032)>>>6,d[f++]=128|(v&63)>>>0),b&&m++}this.utf16Length=r,this.utf8Length=a,this.utf16Value=n,this.utf8Value=d,this.utf16OffsetToUtf8=u,this.utf8OffsetToUtf16=c}static _utf8ByteLength(n){let r=0;for(let a=0,l=n.length;a<l;a++){const u=n.charCodeAt(a);let c=u,d=!1;if(u>=55296&&u<=56319&&a+1<l){const f=n.charCodeAt(a+1);f>=56320&&f<=57343&&(c=(u-55296<<10)+65536|f-56320,d=!0)}c<=127?r+=1:c<=2047?r+=2:c<=65535?r+=3:r+=4,d&&a++}return r}createString(n){const r=n.omalloc(this.utf8Length);return n.HEAPU8.set(this.utf8Value,r),r}}const Hu=class Bn{constructor(n){if(pt(this,"id",++Bn.LAST_ID),pt(this,"_onigBinding"),pt(this,"content"),pt(this,"utf16Length"),pt(this,"utf8Length"),pt(this,"utf16OffsetToUtf8"),pt(this,"utf8OffsetToUtf16"),pt(this,"ptr"),!_t)throw new Kh("Must invoke loadWasm first.");this._onigBinding=_t,this.content=n;const r=new Uu(n);this.utf16Length=r.utf16Length,this.utf8Length=r.utf8Length,this.utf16OffsetToUtf8=r.utf16OffsetToUtf8,this.utf8OffsetToUtf16=r.utf8OffsetToUtf16,this.utf8Length<1e4&&!Bn._sharedPtrInUse?(Bn._sharedPtr||(Bn._sharedPtr=_t.omalloc(1e4)),Bn._sharedPtrInUse=!0,_t.HEAPU8.set(r.utf8Value,Bn._sharedPtr),this.ptr=Bn._sharedPtr):this.ptr=r.createString(_t)}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===Bn._sharedPtr?Bn._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};pt(Hu,"LAST_ID",0);pt(Hu,"_sharedPtr",0);pt(Hu,"_sharedPtrInUse",!1);let m1=Hu;class QL{constructor(n){if(pt(this,"_onigBinding"),pt(this,"_ptr"),!_t)throw new Kh("Must invoke loadWasm first.");const r=[],a=[];for(let d=0,f=n.length;d<f;d++){const m=new Uu(n[d]);r[d]=m.createString(_t),a[d]=m.utf8Length}const l=_t.omalloc(4*n.length);_t.HEAPU32.set(r,l/4);const u=_t.omalloc(4*n.length);_t.HEAPU32.set(a,u/4);const c=_t.createOnigScanner(l,u,n.length);for(let d=0,f=n.length;d<f;d++)_t.ofree(r[d]);_t.ofree(u),_t.ofree(l),c===0&&WL(_t),this._onigBinding=_t,this._ptr=c}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(n,r,a){let l=0;if(typeof a=="number"&&(l=a),typeof n=="string"){n=new m1(n);const u=this._findNextMatchSync(n,r,!1,l);return n.dispose(),u}return this._findNextMatchSync(n,r,!1,l)}_findNextMatchSync(n,r,a,l){const u=this._onigBinding,c=u.findNextOnigScannerMatch(this._ptr,n.id,n.ptr,n.utf8Length,n.convertUtf16OffsetToUtf8(r),l);if(c===0)return null;const d=u.HEAPU32;let f=c/4;const m=d[f++],g=d[f++],v=[];for(let b=0;b<g;b++){const _=n.convertUtf8OffsetToUtf16(d[f++]),S=n.convertUtf8OffsetToUtf16(d[f++]);v[b]={start:_,end:S,length:S-_}}return{index:m,captureIndices:v}}}function ZL(e){return typeof e.instantiator=="function"}function KL(e){return typeof e.default=="function"}function JL(e){return typeof e.data<"u"}function eR(e){return typeof Response<"u"&&e instanceof Response}function tR(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 Xs;function nR(e){if(Xs)return Xs;async function n(){_t=await YL(async r=>{let a=e;return a=await a,typeof a=="function"&&(a=await a(r)),typeof a=="function"&&(a=await a(r)),ZL(a)?a=await a.instantiator(r):KL(a)?a=await a.default(r):(JL(a)&&(a=a.data),eR(a)?typeof WebAssembly.instantiateStreaming=="function"?a=await iR(a)(r):a=await rR(a)(r):tR(a)?a=await Ef(a)(r):a instanceof WebAssembly.Module?a=await Ef(a)(r):"default"in a&&a.default instanceof WebAssembly.Module&&(a=await Ef(a.default)(r))),"instance"in a&&(a=a.instance),"exports"in a&&(a=a.exports),a})}return Xs=n(),Xs}function Ef(e){return n=>WebAssembly.instantiate(e,n)}function iR(e){return n=>WebAssembly.instantiateStreaming(e,n)}function rR(e){return async n=>{const r=await e.arrayBuffer();return WebAssembly.instantiate(r,n)}}async function g1(e){return e&&await nR(e),{createScanner(n){return new QL(n.map(r=>typeof r=="string"?r:r.source))},createString(n){return new m1(n)}}}const aR=HL({langs:oh,themes:p1,engine:()=>g1(k(()=>import("./wasm-CG6Dc4jp.js"),[]))});function Ka(e){if([...e].length!==1)throw new Error(`Expected "${e}" to be a single code point`);return e.codePointAt(0)}function oR(e,n,r){return e.has(n)||e.set(n,r),e.get(n)}const Jh=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),St=String.raw;function Ja(e,n){if(e==null)throw new Error(n??"Value expected");return e}const v1=St`\[\^?`,b1=`c.? | C(?:-.?)?|${St`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${St`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${St`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${St`o\{[^\}]*\}?`}|${St`\d{1,3}`}`,ep=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,Ws=new RegExp(St`
|
|
26
|
+
\\ (?:
|
|
27
|
+
${b1}
|
|
28
|
+
| [gk]<[^>]*>?
|
|
29
|
+
| [gk]'[^']*'?
|
|
30
|
+
| .
|
|
31
|
+
)
|
|
32
|
+
| \( (?:
|
|
33
|
+
\? (?:
|
|
34
|
+
[:=!>({]
|
|
35
|
+
| <[=!]
|
|
36
|
+
| <[^>]*>
|
|
37
|
+
| '[^']*'
|
|
38
|
+
| ~\|?
|
|
39
|
+
| #(?:[^)\\]|\\.?)*
|
|
40
|
+
| [^:)]*[:)]
|
|
41
|
+
)?
|
|
42
|
+
| \*[^\)]*\)?
|
|
43
|
+
)?
|
|
44
|
+
| (?:${ep.source})+
|
|
45
|
+
| ${v1}
|
|
46
|
+
| .
|
|
47
|
+
`.replace(/\s+/g,""),"gsu"),wf=new RegExp(St`
|
|
48
|
+
\\ (?:
|
|
49
|
+
${b1}
|
|
50
|
+
| .
|
|
51
|
+
)
|
|
52
|
+
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
53
|
+
| ${v1}
|
|
54
|
+
| &&
|
|
55
|
+
| .
|
|
56
|
+
`.replace(/\s+/g,""),"gsu");function lR(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=AR(r.flags),l=[a.extended],u={captureGroup:r.rules.captureGroup,getCurrentModX(){return l.at(-1)},numOpenGroups:0,popModX(){l.pop()},pushModX(v){l.push(v)},replaceCurrentModX(v){l[l.length-1]=v},singleline:r.rules.singleline};let c=[],d;for(Ws.lastIndex=0;d=Ws.exec(e);){const v=sR(u,e,d[0],Ws.lastIndex);v.tokens?c.push(...v.tokens):v.token&&c.push(v.token),v.lastIndex!==void 0&&(Ws.lastIndex=v.lastIndex)}const f=[];let m=0;c.filter(v=>v.type==="GroupOpen").forEach(v=>{v.kind==="capturing"?v.number=++m:v.raw==="("&&f.push(v)}),m||f.forEach((v,b)=>{v.kind="capturing",v.number=b+1});const g=m||f.length;return{tokens:c.map(v=>v.type==="EscapedNumber"?TR(v,g):v).flat(),flags:a}}function sR(e,n,r,a){const[l,u]=r;if(r==="["||r==="[^"){const c=uR(n,r,a);return{tokens:c.tokens,lastIndex:c.lastIndex}}if(l==="\\"){if("AbBGyYzZ".includes(u))return{token:O0(r,r)};if(/^\\g[<']/.test(r)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:yR(r)}}if(/^\\k[<']/.test(r)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(r))throw new Error(`Invalid group name "${r}"`);return{token:_1(r)}}if(u==="K")return{token:S1("keep",r)};if(u==="N"||u==="R")return{token:Lr("newline",r,{negate:u==="N"})};if(u==="O")return{token:Lr("any",r)};if(u==="X")return{token:Lr("text_segment",r)};const c=y1(r,{inCharClass:!1});return Array.isArray(c)?{tokens:c}:{token:c}}if(l==="("){if(u==="*")return{token:ER(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:xR(r,e)};if(e.pushModX(e.getCurrentModX()),e.numOpenGroups++,r==="("&&!e.captureGroup||r==="(?:")return{token:Ia("group",r)};if(r==="(?>")return{token:Ia("atomic",r)};if(r==="(?="||r==="(?!"||r==="(?<="||r==="(?<!")return{token:Ia(r[2]==="<"?"lookbehind":"lookahead",r,{negate:r.endsWith("!")})};if(r==="("&&e.captureGroup||r.startsWith("(?<")&&r.endsWith(">")||r.startsWith("(?'")&&r.endsWith("'"))return{token:Ia("capturing",r,{...r!=="("&&{name:r.slice(3,-1)}})};if(r.startsWith("(?~")){if(r==="(?~|")throw new Error(`Unsupported absence function kind "${r}"`);return{token:Ia("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:gR(r)}}if(e.getCurrentModX()){if(r==="#"){const c=n.indexOf(`
|
|
57
|
+
`,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:Lr("dot",r)};if(r==="^"||r==="$"){const c=e.singleline?{"^":St`\A`,$:St`\Z`}[r]:r;return{token:O0(c,r)}}return r==="|"?{token:dR(r)}:ep.test(r)?{tokens:LR(r)}:{token:vi(Ka(r),r)}}function uR(e,n,r){const a=[M0(n[1]==="^",n)];let l=1,u;for(wf.lastIndex=r;u=wf.exec(e);){const c=u[0];if(c[0]==="["&&c[1]!==":")l++,a.push(M0(c[1]==="^",c));else if(c==="]"){if(a.at(-1).type==="CharacterClassOpen")a.push(vi(93,c));else if(l--,a.push(fR(c)),!l)break}else{const d=cR(c);Array.isArray(d)?a.push(...d):a.push(d)}}return{tokens:a,lastIndex:wf.lastIndex||e.length}}function cR(e){if(e[0]==="\\")return y1(e,{inCharClass:!0});if(e[0]==="["){const n=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);if(!n||!Jh.has(n.groups.name))throw new Error(`Invalid POSIX class "${e}"`);return Lr("posix",e,{value:n.groups.name,negate:!!n.groups.negate})}return e==="-"?hR(e):e==="&&"?pR(e):vi(Ka(e),e)}function y1(e,{inCharClass:n}){const r=e[1];if(r==="c"||r==="C")return SR(e);if("dDhHsSwW".includes(r))return wR(e);if(e.startsWith(St`\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 CR(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)),l=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(a)),u=new TextEncoder;return[...l].map(c=>{const d=[...u.encode(c)].map(f=>`\\x${f.toString(16)}`).join("");return vi(Ka(c),d)})}catch{throw new Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`)}if(r==="u"||r==="x")return vi(kR(e),e);if(D0.has(r))return vi(D0.get(r),e);if(/\d/.test(r))return mR(n,e);if(e==="\\")throw new Error(St`Incomplete escape "\"`);if(r==="M")throw new Error(`Unsupported meta "${e}"`);if([...e].length===2)return vi(e.codePointAt(1),e);throw new Error(`Unexpected escape "${e}"`)}function dR(e){return{type:"Alternator",raw:e}}function O0(e,n){return{type:"Assertion",kind:e,raw:n}}function _1(e){return{type:"Backreference",raw:e}}function vi(e,n){return{type:"Character",value:e,raw:n}}function fR(e){return{type:"CharacterClassClose",raw:e}}function hR(e){return{type:"CharacterClassHyphen",raw:e}}function pR(e){return{type:"CharacterClassIntersector",raw:e}}function M0(e,n){return{type:"CharacterClassOpen",negate:e,raw:n}}function Lr(e,n,r={}){return{type:"CharacterSet",kind:e,...r,raw:n}}function S1(e,n,r={}){return e==="keep"?{type:"Directive",kind:e,raw:n}:{type:"Directive",kind:e,flags:Ja(r.flags),raw:n}}function mR(e,n){return{type:"EscapedNumber",inCharClass:e,raw:n}}function gR(e){return{type:"GroupClose",raw:e}}function Ia(e,n,r={}){return{type:"GroupOpen",kind:e,...r,raw:n}}function vR(e,n,r,a){return{type:"NamedCallout",kind:e,tag:n,arguments:r,raw:a}}function bR(e,n,r,a){return{type:"Quantifier",kind:e,min:n,max:r,raw:a}}function yR(e){return{type:"Subroutine",raw:e}}const _R=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),D0=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function SR(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 vi(Ka(n.toUpperCase())-64,e)}function xR(e,n){let{on:r,off:a}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;a??="";const l=(n.getCurrentModX()||r.includes("x"))&&!a.includes("x"),u=I0(r),c=I0(a),d={};if(u&&(d.enable=u),c&&(d.disable=c),e.endsWith(")"))return n.replaceCurrentModX(l),S1("flags",e,{flags:d});if(e.endsWith(":"))return n.pushModX(l),n.numOpenGroups++,Ia("group",e,{...(u||c)&&{flags:d}});throw new Error(`Unexpected flag modifier "${e}"`)}function ER(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:l}=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 u=l?l.split(",").filter(g=>g!=="").map(g=>/^[+-]?\d+$/.test(g)?+g:g):[],[c,d,f]=u,m=_R.has(r)?r.toLowerCase():"custom";switch(m){case"fail":case"mismatch":case"skip":if(u.length>0)throw new Error(`Named callout arguments not allowed "${u}"`);break;case"error":if(u.length>1)throw new Error(`Named callout allows only one argument "${u}"`);if(typeof c=="string")throw new Error(`Named callout argument must be a number "${c}"`);break;case"max":if(!u.length||u.length>2)throw new Error(`Named callout must have one or two arguments "${u}"`);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(u.length===2&&(typeof d=="number"||!/^[<>X]$/.test(d)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${d}"`);break;case"count":case"total_count":if(u.length>1)throw new Error(`Named callout allows only one argument "${u}"`);if(u.length===1&&(typeof c=="number"||!/^[<>X]$/.test(c)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${c}"`);break;case"cmp":if(u.length!==3)throw new Error(`Named callout must have three arguments "${u}"`);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 d=="number"||!/^(?:[<>!=]=|[<>])$/.test(d))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${d}"`);if(typeof f=="string"&&!/^[A-Za-z_]\w*$/.test(f))throw new Error(`Named callout argument three must be a tag or number "${f}"`);break;case"custom":throw new Error(`Undefined callout name "${r}"`);default:throw new Error(`Unexpected named callout kind "${m}"`)}return vR(m,a??null,l?.split(",")??null,e)}function z0(e){let n=null,r,a;if(e[0]==="{"){const{minStr:l,maxStr:u}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups,c=1e5;if(+l>c||u&&+u>c)throw new Error("Quantifier value unsupported in Oniguruma");if(r=+l,a=u===void 0?+l:u===""?1/0:+u,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 bR(n,r,a,e)}function wR(e){const n=e[1].toLowerCase();return Lr({d:"digit",h:"hex",s:"space",w:"word"}[n],e,{negate:e[1]!==n})}function CR(e){const{p:n,neg:r,value:a}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;return Lr("property",e,{value:a,negate:n==="P"&&!r||n==="p"&&!!r})}function I0(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 AR(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 kR(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 TR(e,n){const{raw:r,inCharClass:a}=e,l=r.slice(1);if(!a&&(l!=="0"&&l.length===1||l[0]!=="0"&&+l<=n))return[_1(r)];const u=[],c=l.match(/^[0-7]+|\d/g);for(let d=0;d<c.length;d++){const f=c[d];let m;if(d===0&&f!=="8"&&f!=="9"){if(m=parseInt(f,8),m>127)throw new Error(St`Octal encoded byte above 177 unsupported "${r}"`)}else m=Ka(f);u.push(vi(m,(d===0?"\\":"")+f))}return u}function LR(e){const n=[],r=new RegExp(ep,"gy");let a;for(;a=r.exec(e);){const l=a[0];if(l[0]==="{"){const u=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(l);if(u){const{min:c,max:d}=u.groups;if(+c>+d&&l.endsWith("?")){r.lastIndex--,n.push(z0(l.slice(0,-1)));continue}}}n.push(z0(l))}return n}function x1(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 RR(e){return NR.has(e.type)}const NR=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function E1(e,n={}){const r={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...n,rules:{captureGroup:!1,singleline:!1,...n.rules}},a=lR(e,{flags:r.flags,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline}}),l=(b,_)=>{const S=a.tokens[u.nextIndex];switch(u.parent=b,u.nextIndex++,S.type){case"Alternator":return zr();case"Assertion":return OR(S);case"Backreference":return MR(S,u);case"Character":return ju(S.value,{useLastValid:!!_.isCheckingRangeEnd});case"CharacterClassHyphen":return DR(S,u,_);case"CharacterClassOpen":return zR(S,u,_);case"CharacterSet":return IR(S,u);case"Directive":return BR(S.kind,{flags:S.flags});case"GroupOpen":return PR(S,u,_);case"NamedCallout":return $R(S.kind,S.tag,S.arguments);case"Quantifier":return UR(S,u);case"Subroutine":return HR(S,u);default:throw new Error(`Unexpected token type "${S.type}"`)}},u={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:l},c=YR(GR(a.flags));let d=c.body[0];for(;u.nextIndex<a.tokens.length;){const b=l(d,{});b.type==="Alternative"?(c.body.push(b),d=b):d.body.push(b)}const{capturingGroups:f,hasNumberedRef:m,namedGroupsByName:g,subroutines:v}=u;if(m&&g.size&&!r.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:b}of v)if(typeof b=="number"){if(b>f.length)throw new Error("Subroutine uses a group number that's not defined");b&&(f[b-1].isSubroutined=!0)}else if(g.has(b)){if(g.get(b).length>1)throw new Error(St`Subroutine uses a duplicate group name "\g<${b}>"`);g.get(b)[0].isSubroutined=!0}else throw new Error(St`Subroutine uses a group name that's not defined "\g<${b}>"`);return c}function OR({kind:e}){return lh(Ja({"^":"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===St`\B`||e===St`\Y`})}function MR({raw:e},n){const r=/^\\k[<']/.test(e),a=r?e.slice(3,-1):e.slice(1),l=(u,c=!1)=>{const d=n.capturingGroups.length;let f=!1;if(u>d)if(n.skipBackrefValidation)f=!0;else throw new Error(`Not enough capturing groups defined to the left "${e}"`);return n.hasNumberedRef=!0,sh(c?d+1-u:u,{orphan:f})};if(r){const u=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(a);if(u)return l(+u.groups.num,!!u.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 sh(a)}return l(+a)}function DR(e,n,r){const{tokens:a,walk:l}=n,u=n.parent,c=u.body.at(-1),d=a[n.nextIndex];if(!r.isCheckingRangeEnd&&c&&c.type!=="CharacterClass"&&c.type!=="CharacterClassRange"&&d&&d.type!=="CharacterClassOpen"&&d.type!=="CharacterClassClose"&&d.type!=="CharacterClassIntersector"){const f=l(u,{...r,isCheckingRangeEnd:!0});if(c.type==="Character"&&f.type==="Character")return u.body.pop(),VR(c,f);throw new Error("Invalid character class range")}return ju(Ka("-"))}function zR({negate:e},n,r){const{tokens:a,walk:l}=n,u=a[n.nextIndex],c=[su()];let d=H0(u);for(;d.type!=="CharacterClassClose";){if(d.type==="CharacterClassIntersector")c.push(su()),n.nextIndex++;else{const m=c.at(-1);m.body.push(l(m,r))}d=H0(a[n.nextIndex],u)}const f=su({negate:e});return c.length===1?f.body=c[0].body:(f.kind="intersection",f.body=c.map(m=>m.body.length===1?m.body[0]:m)),n.nextIndex++,f}function IR({kind:e,negate:n,value:r},a){const{normalizeUnknownPropertyNames:l,skipPropertyNameValidation:u,unicodePropertyMap:c}=a;if(e==="property"){const d=Vu(r);if(Jh.has(d)&&!c?.has(d))e="posix",r=d;else return Pa(r,{negate:n,normalizeUnknownPropertyNames:l,skipPropertyNameValidation:u,unicodePropertyMap:c})}return e==="posix"?qR(r,{negate:n}):uh(e,{negate:n})}function PR(e,n,r){const{tokens:a,capturingGroups:l,namedGroupsByName:u,skipLookbehindValidation:c,walk:d}=n,f=FR(e),m=f.type==="AbsenceFunction",g=U0(f),v=g&&f.negate;if(f.type==="CapturingGroup"&&(l.push(f),f.name&&oR(u,f.name,[]).push(f)),m&&r.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let b=j0(a[n.nextIndex]);for(;b.type!=="GroupClose";){if(b.type==="Alternator")f.body.push(zr()),n.nextIndex++;else{const _=f.body.at(-1),S=d(_,{...r,isInAbsenceFunction:r.isInAbsenceFunction||m,isInLookbehind:r.isInLookbehind||g,isInNegLookbehind:r.isInNegLookbehind||v});if(_.body.push(S),(g||r.isInLookbehind)&&!c){const E="Lookbehind includes a pattern not allowed by Oniguruma";if(v||r.isInNegLookbehind){if(P0(S)||S.type==="CapturingGroup")throw new Error(E)}else if(P0(S)||U0(S)&&S.negate)throw new Error(E)}}b=j0(a[n.nextIndex])}return n.nextIndex++,f}function UR({kind:e,min:n,max:r},a){const l=a.parent,u=l.body.at(-1);if(!u||!RR(u))throw new Error("Quantifier requires a repeatable token");const c=C1(e,n,r,u);return l.body.pop(),c}function HR({raw:e},n){const{capturingGroups:r,subroutines:a}=n;let l=e.slice(3,-1);const u=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(l);if(u){const d=+u.groups.num,f=r.length;if(n.hasNumberedRef=!0,l={"":d,"+":f+d,"-":f+1-d}[u.groups.sign],l<1)throw new Error("Invalid subroutine number")}else l==="0"&&(l=0);const c=A1(l);return a.push(c),c}function jR(e,n){return{type:"AbsenceFunction",kind:e,body:bl(n?.body)}}function zr(e){return{type:"Alternative",body:k1(e?.body)}}function lh(e,n){const r={type:"Assertion",kind:e};return(e==="word_boundary"||e==="text_segment_boundary")&&(r.negate=!!n?.negate),r}function sh(e,n){const r=!!n?.orphan;return{type:"Backreference",ref:e,...r&&{orphan:r}}}function w1(e,n){const r={name:void 0,isSubroutined:!1,...n};if(r.name!==void 0&&!XR(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:bl(n?.body)}}function ju(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 su(e){const n={kind:"union",negate:!1,...e};return{type:"CharacterClass",kind:n.kind,negate:n.negate,body:k1(e?.body)}}function VR(e,n){if(n.value<e.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:e,max:n}}function uh(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 BR(e,n={}){if(e==="keep")return{type:"Directive",kind:e};if(e==="flags")return{type:"Directive",kind:e,flags:Ja(n.flags)};throw new Error(`Unexpected directive kind "${e}"`)}function GR(e){return{type:"Flags",...e}}function Ln(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:bl(e?.body)}}function kr(e){const n={behind:!1,negate:!1,...e};return{type:"LookaroundAssertion",kind:n.behind?"lookbehind":"lookahead",negate:n.negate,body:bl(e?.body)}}function $R(e,n,r){return{type:"NamedCallout",kind:e,tag:n,arguments:r}}function qR(e,n){const r=!!n?.negate;if(!Jh.has(e))throw new Error(`Invalid POSIX class "${e}"`);return{type:"CharacterSet",kind:"posix",value:e,negate:r}}function C1(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 YR(e,n){return{type:"Regex",body:bl(n?.body),flags:e}}function A1(e){return{type:"Subroutine",ref:e}}function Pa(e,n){const r={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...n};let a=r.unicodePropertyMap?.get(Vu(e));if(!a){if(r.normalizeUnknownPropertyNames)a=WR(e);else if(r.unicodePropertyMap&&!r.skipPropertyNameValidation)throw new Error(St`Invalid Unicode property "\p{${e}}"`)}return{type:"CharacterSet",kind:"property",value:a??e,negate:r.negate}}function FR({flags:e,kind:n,name:r,negate:a,number:l}){switch(n){case"absence_repeater":return jR("repeater");case"atomic":return Ln({atomic:!0});case"capturing":return w1(l,{name:r});case"group":return Ln({flags:e});case"lookahead":case"lookbehind":return kr({behind:n==="lookbehind",negate:a});default:throw new Error(`Unexpected group kind "${n}"`)}}function bl(e){if(e===void 0)e=[zr()];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 k1(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 P0(e){return e.type==="LookaroundAssertion"&&e.kind==="lookahead"}function U0(e){return e.type==="LookaroundAssertion"&&e.kind==="lookbehind"}function XR(e){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(e)}function WR(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 Vu(e){return e.replace(/[- _]+/g,"").toLowerCase()}function H0(e,n){return Ja(e,`${n?.type==="Character"&&n.value===93?"Empty":"Unclosed"} character class`)}function j0(e){return Ja(e,"Unclosed group")}function il(e,n,r=null){function a(u,c){for(let d=0;d<u.length;d++){const f=l(u[d],c,d,u);d=Math.max(-1,d+f)}}function l(u,c=null,d=null,f=null){let m=0,g=!1;const v={node:u,parent:c,key:d,container:f,root:e,remove(){Qs(f).splice(Math.max(0,Na(d)+m),1),m--,g=!0},removeAllNextSiblings(){return Qs(f).splice(Na(d)+1)},removeAllPrevSiblings(){const w=Na(d)+m;return m-=w,Qs(f).splice(0,Math.max(0,w))},replaceWith(w,C={}){const A=!!C.traverse;f?f[Math.max(0,Na(d)+m)]=w:Ja(c,"Can't replace root node")[d]=w,A&&l(w,c,d,f),g=!0},replaceWithMultiple(w,C={}){const A=!!C.traverse;if(Qs(f).splice(Math.max(0,Na(d)+m),1,...w),m+=w.length-1,A){let R=0;for(let T=0;T<w.length;T++)R+=l(w[T],c,Na(d)+T+R,f)}g=!0},skip(){g=!0}},{type:b}=u,_=n["*"],S=n[b],E=typeof _=="function"?_:_?.enter,L=typeof S=="function"?S:S?.enter;if(E?.(v,r),L?.(v,r),!g)switch(b){case"AbsenceFunction":case"CapturingGroup":case"Group":a(u.body,u);break;case"Alternative":case"CharacterClass":a(u.body,u);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":l(u.min,u,"min"),l(u.max,u,"max");break;case"LookaroundAssertion":a(u.body,u);break;case"Quantifier":l(u.body,u,"body");break;case"Regex":a(u.body,u),l(u.flags,u,"flags");break;default:throw new Error(`Unexpected node type "${b}"`)}return S?.exit?.(v,r),_?.exit?.(v,r),m}return l(e),e}function Qs(e){if(!Array.isArray(e))throw new Error("Container expected");return e}function Na(e){if(typeof e!="number")throw new Error("Numeric key expected");return e}const QR=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function ZR(e,n){for(let r=0;r<e.length;r++)e[r]>=n&&e[r]++}function KR(e,n,r,a){return e.slice(0,n)+a+e.slice(n+r.length)}const vn=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function tp(e,n,r,a){const l=new RegExp(String.raw`${n}|(?<$skip>\[\^?|\\?.)`,"gsu"),u=[!1];let c=0,d="";for(const f of e.matchAll(l)){const{0:m,groups:{$skip:g}}=f;if(!g&&(!a||a===vn.DEFAULT==!c)){r instanceof Function?d+=r(f,{context:c?vn.CHAR_CLASS:vn.DEFAULT,negated:u[u.length-1]}):d+=r;continue}m[0]==="["?(c++,u.push(m[1]==="^")):m==="]"&&c&&(c--,u.pop()),d+=m}return d}function T1(e,n,r,a){tp(e,n,r,a)}function JR(e,n,r=0,a){if(!new RegExp(n,"su").test(e))return null;const l=new RegExp(`${n}|(?<$skip>\\\\?.)`,"gsu");l.lastIndex=r;let u=0,c;for(;c=l.exec(e);){const{0:d,groups:{$skip:f}}=c;if(!f&&(!a||a===vn.DEFAULT==!u))return c;d==="["?u++:d==="]"&&u&&u--,l.lastIndex==c.index&&l.lastIndex++}return null}function Zs(e,n,r){return!!JR(e,n,0,r)}function eN(e,n){const r=/\\?./gsu;r.lastIndex=n;let a=e.length,l=0,u=1,c;for(;c=r.exec(e);){const[d]=c;if(d==="[")l++;else if(l)d==="]"&&l--;else if(d==="(")u++;else if(d===")"&&(u--,!u)){a=c.index;break}}return e.slice(n,a)}const V0=new RegExp(String.raw`(?<noncapturingStart>${QR})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function tN(e,n){const r=n?.hiddenCaptures??[];let a=n?.captureTransfers??new Map;if(!/\(\?>/.test(e))return{pattern:e,captureTransfers:a,hiddenCaptures:r};const l="(?>",u="(?:(?=(",c=[0],d=[];let f=0,m=0,g=NaN,v;do{v=!1;let b=0,_=0,S=!1,E;for(V0.lastIndex=Number.isNaN(g)?0:g+u.length;E=V0.exec(e);){const{0:L,index:w,groups:{capturingStart:C,noncapturingStart:A}}=E;if(L==="[")b++;else if(b)L==="]"&&b--;else if(L===l&&!S)g=w,S=!0;else if(S&&A)_++;else if(C)S?_++:(f++,c.push(f+m));else if(L===")"&&S){if(!_){m++;const R=f+m;if(e=`${e.slice(0,g)}${u}${e.slice(g+l.length,w)}))<$$${R}>)${e.slice(w+1)}`,v=!0,d.push(R),ZR(r,R),a.size){const T=new Map;a.forEach((P,H)=>{T.set(H>=R?H+1:H,P.map(I=>I>=R?I+1:I))}),a=T}break}_--}}}while(v);return r.push(...d),e=tp(e,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:b,groups:{backrefNum:_,wrappedBackrefNum:S}})=>{if(_){const E=+_;if(E>c.length-1)throw new Error(`Backref "${b}" greater than number of captures`);return`\\${c[E]}`}return`\\${S}`},vn.DEFAULT),{pattern:e,captureTransfers:a,hiddenCaptures:r}}const L1=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Cf=new RegExp(String.raw`
|
|
58
|
+
\\(?: \d+
|
|
59
|
+
| c[A-Za-z]
|
|
60
|
+
| [gk]<[^>]+>
|
|
61
|
+
| [pPu]\{[^\}]+\}
|
|
62
|
+
| u[A-Fa-f\d]{4}
|
|
63
|
+
| x[A-Fa-f\d]{2}
|
|
64
|
+
)
|
|
65
|
+
| \((?: \? (?: [:=!>]
|
|
66
|
+
| <(?:[=!]|[^>]+>)
|
|
67
|
+
| [A-Za-z\-]+:
|
|
68
|
+
| \(DEFINE\)
|
|
69
|
+
))?
|
|
70
|
+
| (?<qBase>${L1})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
71
|
+
| \\?.
|
|
72
|
+
`.replace(/\s+/g,""),"gsu");function nN(e){if(!new RegExp(`${L1}\\+`).test(e))return{pattern:e};const n=[];let r=null,a=null,l="",u=0,c;for(Cf.lastIndex=0;c=Cf.exec(e);){const{0:d,index:f,groups:{qBase:m,qMod:g,invalidQ:v}}=c;if(d==="[")u||(a=f),u++;else if(d==="]")u?u--:a=null;else if(!u)if(g==="+"&&l&&!l.startsWith("(")){if(v)throw new Error(`Invalid quantifier "${d}"`);let b=-1;if(/^\{\d+\}$/.test(m))e=KR(e,f+m.length,g,"");else{if(l===")"||l==="]"){const _=l===")"?r:a;if(_===null)throw new Error(`Invalid unmatched "${l}"`);e=`${e.slice(0,_)}(?>${e.slice(_,f)}${m})${e.slice(f+d.length)}`}else e=`${e.slice(0,f-l.length)}(?>${l}${m})${e.slice(f+d.length)}`;b+=4}Cf.lastIndex+=b}else d[0]==="("?n.push(f):d===")"&&(r=n.length?n.pop():null);l=d}return{pattern:e}}const mn=String.raw,iN=mn`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,ch=mn`\(\?R=(?<rDepth>[^\)]+)\)|${iN}`,Bu=mn`\(\?<(?![=!])(?<captureName>[^>]+)>`,R1=mn`${Bu}|(?<unnamed>\()(?!\?)`,wr=new RegExp(mn`${Bu}|${ch}|\(\?|\\?.`,"gsu"),Af="Cannot use multiple overlapping recursions";function rN(e,n){const{hiddenCaptures:r,mode:a}={hiddenCaptures:[],mode:"plugin",...n};let l=n?.captureTransfers??new Map;if(!new RegExp(ch,"su").test(e))return{pattern:e,captureTransfers:l,hiddenCaptures:r};if(a==="plugin"&&Zs(e,mn`\(\?\(DEFINE\)`,vn.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const u=[],c=Zs(e,mn`\\[1-9]`,vn.DEFAULT),d=new Map,f=[];let m=!1,g=0,v=0,b;for(wr.lastIndex=0;b=wr.exec(e);){const{0:_,groups:{captureName:S,rDepth:E,gRNameOrNum:L,gRDepth:w}}=b;if(_==="[")g++;else if(g)_==="]"&&g--;else if(E){if(B0(E),m)throw new Error(Af);if(c)throw new Error(`${a==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const C=e.slice(0,b.index),A=e.slice(wr.lastIndex);if(Zs(A,ch,vn.DEFAULT))throw new Error(Af);const R=+E-1;e=G0(C,A,R,!1,r,u,v),l=q0(l,C,R,u.length,0,v);break}else if(L){B0(w);let C=!1;for(const V of f)if(V.name===L||V.num===+L){if(C=!0,V.hasRecursedWithin)throw new Error(Af);break}if(!C)throw new Error(mn`Recursive \g cannot be used outside the referenced group "${a==="external"?L:mn`\g<${L}&R=${w}>`}"`);const A=d.get(L),R=eN(e,A);if(c&&Zs(R,mn`${Bu}|\((?!\?)`,vn.DEFAULT))throw new Error(`${a==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const T=e.slice(A,b.index),P=R.slice(T.length+_.length),H=u.length,I=+w-1,K=G0(T,P,I,!0,r,u,v);l=q0(l,T,I,u.length-H,H,v);const Z=e.slice(0,A),F=e.slice(A+R.length);e=`${Z}${K}${F}`,wr.lastIndex+=K.length-_.length-T.length-P.length,f.forEach(V=>V.hasRecursedWithin=!0),m=!0}else if(S)v++,d.set(String(v),wr.lastIndex),d.set(S,wr.lastIndex),f.push({num:v,name:S});else if(_[0]==="("){const C=_==="(";C&&(v++,d.set(String(v),wr.lastIndex)),f.push(C?{num:v}:{})}else _===")"&&f.pop()}return r.push(...u),{pattern:e,captureTransfers:l,hiddenCaptures:r}}function B0(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 G0(e,n,r,a,l,u,c){const d=new Set;a&&T1(e+n,Bu,({groups:{captureName:m}})=>{d.add(m)},vn.DEFAULT);const f=[r,a?d:null,l,u,c];return`${e}${$0(`(?:${e}`,"forward",...f)}(?:)${$0(`${n})`,"backward",...f)}${n}`}function $0(e,n,r,a,l,u,c){const f=g=>n==="forward"?g+2:r-g+2-1;let m="";for(let g=0;g<r;g++){const v=f(g);m+=tp(e,mn`${R1}|\\k<(?<backref>[^>]+)>`,({0:b,groups:{captureName:_,unnamed:S,backref:E}})=>{if(E&&a&&!a.has(E))return b;const L=`_$${v}`;if(S||_){const w=c+u.length+1;return u.push(w),aN(l,w),S?b:`(?<${_}${L}>`}return mn`\k<${E}${L}>`},vn.DEFAULT)}return m}function aN(e,n){for(let r=0;r<e.length;r++)e[r]>=n&&e[r]++}function q0(e,n,r,a,l,u){if(e.size&&a){let c=0;T1(n,R1,()=>c++,vn.DEFAULT);const d=u-c+l,f=new Map;return e.forEach((m,g)=>{const v=(a-c*r)/r,b=c*r,_=g>d+c?g+a:g,S=[];for(const E of m)if(E<=d)S.push(E);else if(E>d+c+v)S.push(E+a);else if(E<=d+c)for(let L=0;L<=r;L++)S.push(E+c*L);else for(let L=0;L<=r;L++)S.push(E+b+v*L);f.set(_,S)}),f}return e}var mt=String.fromCodePoint,_e=String.raw,On={},Gu=globalThis.RegExp;On.flagGroups=(()=>{try{new Gu("(?i:)")}catch{return!1}return!0})();On.unicodeSets=(()=>{try{new Gu("[[]]","v")}catch{return!1}return!0})();On.bugFlagVLiteralHyphenIsRange=On.unicodeSets?(()=>{try{new Gu(_e`[\d\-a]`,"v")}catch{return!0}return!1})():!1;On.bugNestedClassIgnoresNegation=On.unicodeSets&&new Gu("[[^a]]","v").test("a");function Lu(e,{enable:n,disable:r}){return{dotAll:!r?.dotAll&&!!(n?.dotAll||e.dotAll),ignoreCase:!r?.ignoreCase&&!!(n?.ignoreCase||e.ignoreCase)}}function pl(e,n,r){return e.has(n)||e.set(n,r),e.get(n)}function dh(e,n){return Y0[e]>=Y0[n]}function oN(e,n){if(e==null)throw new Error(n??"Value expected");return e}var Y0={ES2025:2025,ES2024:2024,ES2018:2018},lN={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function N1(e={}){if({}.toString.call(e)!=="[object Object]")throw new Error("Unexpected options");if(e.target!==void 0&&!lN[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=On.flagGroups?"ES2025":On.unicodeSets?"ES2024":"ES2018"),n}var sN="[ -\r ]",uN=new Set([mt(304),mt(305)]),mi=_e`[\p{L}\p{M}\p{N}\p{Pc}]`;function O1(e){if(uN.has(e))return[e];const n=new Set,r=e.toLowerCase(),a=r.toUpperCase(),l=fN.get(r),u=cN.get(r),c=dN.get(r);return[...a].length===1&&n.add(a),c&&n.add(c),l&&n.add(l),n.add(r),u&&n.add(u),[...n]}var np=new Map(`C Other
|
|
73
|
+
Cc Control cntrl
|
|
74
|
+
Cf Format
|
|
75
|
+
Cn Unassigned
|
|
76
|
+
Co Private_Use
|
|
77
|
+
Cs Surrogate
|
|
78
|
+
L Letter
|
|
79
|
+
LC Cased_Letter
|
|
80
|
+
Ll Lowercase_Letter
|
|
81
|
+
Lm Modifier_Letter
|
|
82
|
+
Lo Other_Letter
|
|
83
|
+
Lt Titlecase_Letter
|
|
84
|
+
Lu Uppercase_Letter
|
|
85
|
+
M Mark Combining_Mark
|
|
86
|
+
Mc Spacing_Mark
|
|
87
|
+
Me Enclosing_Mark
|
|
88
|
+
Mn Nonspacing_Mark
|
|
89
|
+
N Number
|
|
90
|
+
Nd Decimal_Number digit
|
|
91
|
+
Nl Letter_Number
|
|
92
|
+
No Other_Number
|
|
93
|
+
P Punctuation punct
|
|
94
|
+
Pc Connector_Punctuation
|
|
95
|
+
Pd Dash_Punctuation
|
|
96
|
+
Pe Close_Punctuation
|
|
97
|
+
Pf Final_Punctuation
|
|
98
|
+
Pi Initial_Punctuation
|
|
99
|
+
Po Other_Punctuation
|
|
100
|
+
Ps Open_Punctuation
|
|
101
|
+
S Symbol
|
|
102
|
+
Sc Currency_Symbol
|
|
103
|
+
Sk Modifier_Symbol
|
|
104
|
+
Sm Math_Symbol
|
|
105
|
+
So Other_Symbol
|
|
106
|
+
Z Separator
|
|
107
|
+
Zl Line_Separator
|
|
108
|
+
Zp Paragraph_Separator
|
|
109
|
+
Zs Space_Separator
|
|
110
|
+
ASCII
|
|
111
|
+
ASCII_Hex_Digit AHex
|
|
112
|
+
Alphabetic Alpha
|
|
113
|
+
Any
|
|
114
|
+
Assigned
|
|
115
|
+
Bidi_Control Bidi_C
|
|
116
|
+
Bidi_Mirrored Bidi_M
|
|
117
|
+
Case_Ignorable CI
|
|
118
|
+
Cased
|
|
119
|
+
Changes_When_Casefolded CWCF
|
|
120
|
+
Changes_When_Casemapped CWCM
|
|
121
|
+
Changes_When_Lowercased CWL
|
|
122
|
+
Changes_When_NFKC_Casefolded CWKCF
|
|
123
|
+
Changes_When_Titlecased CWT
|
|
124
|
+
Changes_When_Uppercased CWU
|
|
125
|
+
Dash
|
|
126
|
+
Default_Ignorable_Code_Point DI
|
|
127
|
+
Deprecated Dep
|
|
128
|
+
Diacritic Dia
|
|
129
|
+
Emoji
|
|
130
|
+
Emoji_Component EComp
|
|
131
|
+
Emoji_Modifier EMod
|
|
132
|
+
Emoji_Modifier_Base EBase
|
|
133
|
+
Emoji_Presentation EPres
|
|
134
|
+
Extended_Pictographic ExtPict
|
|
135
|
+
Extender Ext
|
|
136
|
+
Grapheme_Base Gr_Base
|
|
137
|
+
Grapheme_Extend Gr_Ext
|
|
138
|
+
Hex_Digit Hex
|
|
139
|
+
IDS_Binary_Operator IDSB
|
|
140
|
+
IDS_Trinary_Operator IDST
|
|
141
|
+
ID_Continue IDC
|
|
142
|
+
ID_Start IDS
|
|
143
|
+
Ideographic Ideo
|
|
144
|
+
Join_Control Join_C
|
|
145
|
+
Logical_Order_Exception LOE
|
|
146
|
+
Lowercase Lower
|
|
147
|
+
Math
|
|
148
|
+
Noncharacter_Code_Point NChar
|
|
149
|
+
Pattern_Syntax Pat_Syn
|
|
150
|
+
Pattern_White_Space Pat_WS
|
|
151
|
+
Quotation_Mark QMark
|
|
152
|
+
Radical
|
|
153
|
+
Regional_Indicator RI
|
|
154
|
+
Sentence_Terminal STerm
|
|
155
|
+
Soft_Dotted SD
|
|
156
|
+
Terminal_Punctuation Term
|
|
157
|
+
Unified_Ideograph UIdeo
|
|
158
|
+
Uppercase Upper
|
|
159
|
+
Variation_Selector VS
|
|
160
|
+
White_Space space
|
|
161
|
+
XID_Continue XIDC
|
|
162
|
+
XID_Start XIDS`.split(/\s/).map(e=>[Vu(e),e])),cN=new Map([["s",mt(383)],[mt(383),"s"]]),dN=new Map([[mt(223),mt(7838)],[mt(107),mt(8490)],[mt(229),mt(8491)],[mt(969),mt(8486)]]),fN=new Map([Qi(453),Qi(456),Qi(459),Qi(498),...kf(8072,8079),...kf(8088,8095),...kf(8104,8111),Qi(8124),Qi(8140),Qi(8188)]),hN=new Map([["alnum",_e`[\p{Alpha}\p{Nd}]`],["alpha",_e`\p{Alpha}`],["ascii",_e`\p{ASCII}`],["blank",_e`[\p{Zs}\t]`],["cntrl",_e`\p{Cc}`],["digit",_e`\p{Nd}`],["graph",_e`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",_e`\p{Lower}`],["print",_e`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",_e`[\p{P}\p{S}]`],["space",_e`\p{space}`],["upper",_e`\p{Upper}`],["word",_e`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",_e`\p{AHex}`]]);function pN(e,n){const r=[];for(let a=e;a<=n;a++)r.push(a);return r}function Qi(e){const n=mt(e);return[n.toLowerCase(),n]}function kf(e,n){return pN(e,n).map(r=>Qi(r))}var M1=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function mN(e,n){const r={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...n};D1(e);const a={accuracy:r.accuracy,asciiWordBoundaries:r.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:dh(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};il(e,gN,a);const l={dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},u={currentFlags:l,prevFlags:null,globalFlags:l,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:a.subroutineRefMap};il(e,vN,u);const c={groupsByName:u.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:u.reffedNodesByReferencer};return il(e,bN,c),e._originMap=u.groupOriginByCopy,e._strategy=a.strategy,e}var gN={AbsenceFunction({node:e,parent:n,replaceWith:r}){const{body:a,kind:l}=e;if(l==="repeater"){const u=Ln();u.body[0].body.push(kr({negate:!0,body:a}),Pa("Any"));const c=Ln();c.body[0].body.push(C1("greedy",0,1/0,u)),r(it(c,n),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:e,parent:n,key:r},{flagDirectivesByAlt:a}){const l=e.body.filter(u=>u.kind==="flags");for(let u=r+1;u<n.body.length;u++){const c=n.body[u];pl(a,c,[]).push(...l)}},exit({node:e},{flagDirectivesByAlt:n}){if(n.get(e)?.length){const r=I1(n.get(e));if(r){const a=Ln({flags:r});a.body[0].body=e.body,e.body=[it(a,e)]}}}},Assertion({node:e,parent:n,key:r,container:a,root:l,remove:u,replaceWith:c},d){const{kind:f,negate:m}=e,{asciiWordBoundaries:g,avoidSubclass:v,supportedGNodes:b,wordIsAscii:_}=d;if(f==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${m?"Y":"y"}"`);if(f==="line_end")c(it(kr({body:[zr({body:[lh("string_end")]}),zr({body:[ju(10)]})]}),n));else if(f==="line_start")c(it(gi(_e`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),n));else if(f==="search_start")if(b.has(e))l.flags.sticky=!0,u();else{const S=a[r-1];if(S&&wN(S))c(it(kr({negate:!0}),n));else{if(v)throw new Error(_e`Uses "\G" in a way that requires a subclass`);c(Zi(lh("string_start"),n)),d.strategy="clip_search"}}else if(!(f==="string_end"||f==="string_start"))if(f==="string_end_newline")c(it(gi(_e`(?=\n?\z)`),n));else if(f==="word_boundary"){if(!_&&!g){const S=`(?:(?<=${mi})(?!${mi})|(?<!${mi})(?=${mi}))`,E=`(?:(?<=${mi})(?=${mi})|(?<!${mi})(?!${mi}))`;c(it(gi(m?E:S),n))}}else throw new Error(`Unexpected assertion kind "${f}"`)},Backreference({node:e},{jsGroupNameMap:n}){let{ref:r}=e;typeof r=="string"&&!Lf(r)&&(r=Tf(r,n),e.ref=r)},CapturingGroup({node:e},{jsGroupNameMap:n,subroutineRefMap:r}){let{name:a}=e;a&&!Lf(a)&&(a=Tf(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=su({body:[e]});r(it(a,n),{traverse:!0})}},CharacterSet({node:e,parent:n,replaceWith:r},{accuracy:a,minTargetEs2024:l,digitIsAscii:u,spaceIsAscii:c,wordIsAscii:d}){const{kind:f,negate:m,value:g}=e;if(u&&(f==="digit"||g==="digit")){r(Zi(uh("digit",{negate:m}),n));return}if(c&&(f==="space"||g==="space")){r(it(Rf(gi(sN),m),n));return}if(d&&(f==="word"||g==="word")){r(Zi(uh("word",{negate:m}),n));return}if(f==="any")r(Zi(Pa("Any"),n));else if(f==="digit")r(Zi(Pa("Nd",{negate:m}),n));else if(f!=="dot")if(f==="text_segment"){if(a==="strict")throw new Error(_e`Use of "\X" requires non-strict accuracy`);const v="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",b=_e`\p{RI}{2}|${v}(?:\u200D${v})*`;r(it(gi(_e`(?>\r\n|${l?_e`\p{RGI_Emoji}`:b}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),n))}else if(f==="hex")r(Zi(Pa("AHex",{negate:m}),n));else if(f==="newline")r(it(gi(m?`[^
|
|
163
|
+
]`:`(?>\r
|
|
164
|
+
?|[
|
|
165
|
+
\v\f
\u2028\u2029])`),n));else if(f==="posix")if(!l&&(g==="graph"||g==="print")){if(a==="strict")throw new Error(`POSIX class "${g}" requires min target ES2024 or non-strict accuracy`);let v={graph:"!-~",print:" -~"}[g];m&&(v=`\0-${mt(v.codePointAt(0)-1)}${mt(v.codePointAt(2)+1)}-`),r(it(gi(`[${v}]`),n))}else r(it(Rf(gi(hN.get(g)),m),n));else if(f==="property")np.has(Vu(g))||(e.key="sc");else if(f==="space")r(Zi(Pa("space",{negate:m}),n));else if(f==="word")r(it(Rf(gi(mi),m),n));else throw new Error(`Unexpected character set kind "${f}"`)},Directive({node:e,parent:n,root:r,remove:a,replaceWith:l,removeAllPrevSiblings:u,removeAllNextSiblings:c}){const{kind:d,flags:f}=e;if(d==="flags")if(!f.enable&&!f.disable)a();else{const m=Ln({flags:f});m.body[0].body=c(),l(it(m,n),{traverse:!0})}else if(d==="keep"){const m=r.body[0],v=r.body.length===1&&x1(m,{type:"Group"})&&m.body[0].body.length===1?m.body[0]:r;if(n.parent!==v||v.body.length>1)throw new Error(_e`Uses "\K" in a way that's unsupported`);const b=kr({behind:!0});b.body[0].body=u(),l(it(b,n))}else throw new Error(`Unexpected directive kind "${d}"`)},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(it(kr({negate:!0}),n));else throw new Error(`Unsupported named callout "(*${a.toUpperCase()}"`)},Quantifier({node:e}){if(e.body.type==="Quantifier"){const n=Ln();n.body[0].body.push(e.body),e.body=it(n,e)}},Regex:{enter({node:e},{supportedGNodes:n}){const r=[];let a=!1,l=!1;for(const u of e.body)if(u.body.length===1&&u.body[0].kind==="search_start")u.body.pop();else{const c=U1(u.body);c?(a=!0,Array.isArray(c)?r.push(...c):r.push(c)):l=!0}a&&!l&&r.forEach(u=>n.add(u))},exit(e,{accuracy:n,passedLookbehind:r,strategy:a}){if(n==="strict"&&r&&a)throw new Error(_e`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:e},{jsGroupNameMap:n}){let{ref:r}=e;typeof r=="string"&&!Lf(r)&&(r=Tf(r,n),e.ref=r)}},vN={Backreference({node:e},{multiplexCapturesToLeftByRef:n,reffedNodesByReferencer:r}){const{orphan:a,ref:l}=e;a||r.set(e,[...n.get(l).map(({node:u})=>u)])},CapturingGroup:{enter({node:e,parent:n,replaceWith:r,skip:a},{groupOriginByCopy:l,groupsByName:u,multiplexCapturesToLeftByRef:c,openRefs:d,reffedNodesByReferencer:f}){const m=l.get(e);if(m&&d.has(e.number)){const v=Zi(F0(e.number),n);f.set(v,d.get(e.number)),r(v);return}d.set(e.number,e),c.set(e.number,[]),e.name&&pl(c,e.name,[]);const g=c.get(e.name??e.number);for(let v=0;v<g.length;v++){const b=g[v];if(m===b.node||m&&m===b.origin||e===b.origin){g.splice(v,1);break}}if(c.get(e.number).push({node:e,origin:m}),e.name&&c.get(e.name).push({node:e,origin:m}),e.name){const v=pl(u,e.name,new Map);let b=!1;if(m)b=!0;else for(const _ of v.values())if(!_.hasDuplicateNameToRemove){b=!0;break}u.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=Lu(n.currentFlags,e.flags))},exit(e,n){n.currentFlags=n.prevFlags}},Subroutine({node:e,parent:n,replaceWith:r},a){const{isRecursive:l,ref:u}=e;if(l){let g=n;for(;(g=g.parent)&&!(g.type==="CapturingGroup"&&(g.name===u||g.number===u)););a.reffedNodesByReferencer.set(e,g);return}const c=a.subroutineRefMap.get(u),d=u===0,f=d?F0(0):z1(c,a.groupOriginByCopy,null);let m=f;if(!d){const g=I1(SN(c,b=>b.type==="Group"&&!!b.flags)),v=g?Lu(a.globalFlags,g):a.globalFlags;yN(v,a.currentFlags)||(m=Ln({flags:xN(v)}),m.body[0].body.push(f))}r(it(m,n),{traverse:!d})}},bN={Backreference({node:e,parent:n,replaceWith:r},a){if(e.orphan){a.highestOrphanBackref=Math.max(a.highestOrphanBackref,e.ref);return}const u=a.reffedNodesByReferencer.get(e).filter(c=>_N(c,e));if(!u.length)r(it(kr({negate:!0}),n));else if(u.length>1){const c=Ln({atomic:!0,body:u.reverse().map(d=>zr({body:[sh(d.number)]}))});r(it(c,n))}else e.ref=u[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 l=w1();e.body.at(-1).body.push(l)}}},Subroutine({node:e},n){!e.isRecursive||e.ref===0||(e.ref=n.reffedNodesByReferencer.get(e).number)}};function D1(e){il(e,{"*"({node:n,parent:r}){n.parent=r}})}function yN(e,n){return e.dotAll===n.dotAll&&e.ignoreCase===n.ignoreCase}function _N(e,n){let r=n;do{if(r.type==="Regex")return!1;if(r.type==="Alternative")continue;if(r===e)return!1;const a=P1(r.parent);for(const l of a){if(l===r)break;if(l===e||H1(l,e))return!0}}while(r=r.parent);throw new Error("Unexpected path")}function z1(e,n,r,a){const l=Array.isArray(e)?[]:{};for(const[u,c]of Object.entries(e))u==="parent"?l.parent=Array.isArray(r)?a:r:c&&typeof c=="object"?l[u]=z1(c,n,l,r):(u==="type"&&c==="CapturingGroup"&&n.set(l,n.get(e)??e),l[u]=c);return l}function F0(e){const n=A1(e);return n.isRecursive=!0,n}function SN(e,n){const r=[];for(;e=e.parent;)(!n||n(e))&&r.push(e);return r}function Tf(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 I1(e){const n=["dotAll","ignoreCase"],r={enable:{},disable:{}};return e.forEach(({flags:a})=>{n.forEach(l=>{a.enable?.[l]&&(delete r.disable[l],r.enable[l]=!0),a.disable?.[l]&&(r.disable[l]=!0)})}),Object.keys(r.enable).length||delete r.enable,Object.keys(r.disable).length||delete r.disable,r.enable||r.disable?r:null}function xN({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 P1(e){if(!e)throw new Error("Node expected");const{body:n}=e;return Array.isArray(n)?n:n?[n]:null}function U1(e){const n=e.find(r=>r.kind==="search_start"||CN(r,{negate:!1})||!EN(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 l=U1(a.body);if(!l)return null;Array.isArray(l)?r.push(...l):r.push(l)}return r}return null}function H1(e,n){const r=P1(e)??[];for(const a of r)if(a===n||H1(a,n))return!0;return!1}function EN({type:e}){return e==="Assertion"||e==="Directive"||e==="LookaroundAssertion"}function wN(e){const n=["Character","CharacterClass","CharacterSet"];return n.includes(e.type)||e.type==="Quantifier"&&e.min&&n.includes(e.body.type)}function CN(e,n){const r={negate:null,...n};return e.type==="LookaroundAssertion"&&(r.negate===null||e.negate===r.negate)&&e.body.length===1&&x1(e.body[0],{type:"Assertion",kind:"search_start"})}function Lf(e){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e)}function gi(e,n){const a=E1(e,{...n,unicodePropertyMap:np}).body;return a.length>1||a[0].body.length>1?Ln({body:a}):a[0].body[0]}function Rf(e,n){return e.negate=n,e}function Zi(e,n){return e.parent=n,e}function it(e,n){return D1(e),e.parent=n,e}function AN(e,n){const r=N1(n),a=dh(r.target,"ES2024"),l=dh(r.target,"ES2025"),u=r.rules.recursionLimit;if(!Number.isInteger(u)||u<2||u>20)throw new Error("Invalid recursionLimit; use 2-20");let c=null,d=null;if(!l){const _=[e.flags.ignoreCase];il(e,kN,{getCurrentModI:()=>_.at(-1),popModI(){_.pop()},pushModI(S){_.push(S)},setHasCasedChar(){_.at(-1)?c=!0:d=!0}})}const f={dotAll:e.flags.dotAll,ignoreCase:!!((e.flags.ignoreCase||c)&&!d)};let m=e;const g={accuracy:r.accuracy,appliedGlobalFlags:f,captureMap:new Map,currentFlags:{dotAll:e.flags.dotAll,ignoreCase:e.flags.ignoreCase},inCharClass:!1,lastNode:m,originMap:e._originMap,recursionLimit:u,useAppliedIgnoreCase:!!(!l&&c&&d),useFlagMods:l,useFlagV:a,verbose:r.verbose};function v(_){return g.lastNode=m,m=_,oN(TN[_.type],`Unexpected node type "${_.type}"`)(_,g,v)}const b={pattern:e.body.map(v).join("|"),flags:v(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=[],g.captureMap.forEach((_,S)=>{_.hidden&&b._hiddenCaptures.push(S),_.transferTo&&pl(b._captureTransfers,_.transferTo,[]).push(S)}),b}var kN={"*":{enter({node:e},n){if(W0(e)){const r=n.getCurrentModI();n.pushModI(e.flags?Lu({ignoreCase:r},e.flags).ignoreCase:r)}},exit({node:e},n){W0(e)&&n.popModI()}},Backreference(e,n){n.setHasCasedChar()},Character({node:e},n){ip(mt(e.value))&&n.setHasCasedChar()},CharacterClassRange({node:e,skip:n},r){n(),j1(e,{firstOnly:!0}).length&&r.setHasCasedChar()},CharacterSet({node:e},n){e.kind==="property"&&M1.has(e.value)&&n.setHasCasedChar()}},TN={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?_e`\B`:_e`\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:l,number:u}=e,c={ignoreCase:n.currentFlags.ignoreCase},d=n.originMap.get(e);return d&&(c.hidden=!0,u>d.number&&(c.transferTo=d.number)),n.captureMap.set(u,c),`(${l?`?<${l}>`:""}${a.map(r).join("|")})`},Character({value:e},n){const r=mt(e),a=Oa(e,{escDigit:n.lastNode.type==="Backreference",inCharClass:n.inCharClass,useFlagV:n.useFlagV});if(a!==r)return a;if(n.useAppliedIgnoreCase&&n.currentFlags.ignoreCase&&ip(r)){const l=O1(r);return n.inCharClass?l.join(""):l.length>1?`[${l.join("")}]`:l[0]}return r},CharacterClass(e,n,r){const{kind:a,negate:l,parent:u}=e;let{body:c}=e;if(a==="intersection"&&!n.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");On.bugFlagVLiteralHyphenIsRange&&n.useFlagV&&c.some(Q0)&&(c=[ju(45),...c.filter(m=>!Q0(m))]);const d=()=>`[${l?"^":""}${c.map(r).join(a==="intersection"?"&&":"")}]`;if(!n.inCharClass){if((!n.useFlagV||On.bugNestedClassIgnoresNegation)&&!l){const g=c.filter(v=>v.type==="CharacterClass"&&v.kind==="union"&&v.negate);if(g.length){const v=Ln(),b=v.body[0];return v.parent=u,b.parent=v,c=c.filter(_=>!g.includes(_)),e.body=c,c.length?(e.parent=b,b.body.push(e)):v.body.pop(),g.forEach(_=>{const S=zr({body:[_]});_.parent=S,S.parent=v,v.body.push(S)}),r(v)}}n.inCharClass=!0;const m=d();return n.inCharClass=!1,m}const f=c[0];if(a==="union"&&!l&&f&&((!n.useFlagV||!n.verbose)&&u.kind==="union"&&!(On.bugFlagVLiteralHyphenIsRange&&n.useFlagV)||!n.verbose&&u.kind==="intersection"&&c.length===1&&f.type!=="CharacterClassRange"))return c.map(r).join("");if(!n.useFlagV&&u.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return d()},CharacterClassRange(e,n){const r=e.min.value,a=e.max.value,l={escDigit:!1,inCharClass:!0,useFlagV:n.useFlagV},u=Oa(r,l),c=Oa(a,l),d=new Set;if(n.useAppliedIgnoreCase&&n.currentFlags.ignoreCase){const f=j1(e);MN(f).forEach(g=>{d.add(Array.isArray(g)?`${Oa(g[0],l)}-${Oa(g[1],l)}`:Oa(g,l))})}return`${u}-${c}${[...d].join("")}`},CharacterSet({kind:e,negate:n,value:r,key:a},l){if(e==="dot")return l.currentFlags.dotAll?l.appliedGlobalFlags.dotAll||l.useFlagMods?".":"[^]":_e`[^\n]`;if(e==="digit")return n?_e`\D`:_e`\d`;if(e==="property"){if(l.useAppliedIgnoreCase&&l.currentFlags.ignoreCase&&M1.has(r))throw new Error(`Unicode property "${r}" can't be case-insensitive when other chars have specific case`);return`${n?_e`\P`:_e`\p`}{${a?`${a}=`:""}${r}}`}if(e==="word")return n?_e`\W`:_e`\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},l,u){const c=l.currentFlags;r&&(l.currentFlags=Lu(c,r));const d=n.map(u).join("|"),f=!l.verbose&&n.length===1&&a.type!=="Quantifier"&&!e&&(!l.useFlagMods||!r)?d:`(?${DN(e,r,l.useFlagMods)}${d})`;return l.currentFlags=c,f},LookaroundAssertion({body:e,kind:n,negate:r},a,l){return`(?${`${n==="lookahead"?"":"<"}${r?"!":"="}`}${e.map(l).join("|")})`},Quantifier(e,n,r){return r(e.body)+zN(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})`:_e`\g<${n}&R=${a}>`}},LN=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),RN=new Set(["-","\\","]","^","["]),NN=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),X0=new Map([[9,_e`\t`],[10,_e`\n`],[11,_e`\v`],[12,_e`\f`],[13,_e`\r`],[8232,_e`\u2028`],[8233,_e`\u2029`],[65279,_e`\uFEFF`]]),ON=new RegExp("^\\p{Cased}$","u");function ip(e){return ON.test(e)}function j1(e,n){const r=!!n?.firstOnly,a=e.min.value,l=e.max.value,u=[];if(a<65&&(l===65535||l>=131071)||a===65536&&l>=131071)return u;for(let c=a;c<=l;c++){const d=mt(c);if(!ip(d))continue;const f=O1(d).filter(m=>{const g=m.codePointAt(0);return g<a||g>l});if(f.length&&(u.push(...f),r))break}return u}function Oa(e,{escDigit:n,inCharClass:r,useFlagV:a}){if(X0.has(e))return X0.get(e);if(e<32||e>126&&e<160||e>262143||n&&IN(e))return e>255?`\\u{${e.toString(16).toUpperCase()}}`:`\\x${e.toString(16).toUpperCase().padStart(2,"0")}`;const l=r?a?NN:RN:LN,u=mt(e);return(l.has(u)?"\\":"")+u}function MN(e){const n=e.map(l=>l.codePointAt(0)).sort((l,u)=>l-u),r=[];let a=null;for(let l=0;l<n.length;l++)n[l+1]===n[l]+1?a??=n[l]:a===null?r.push(n[l]):(r.push([a,n[l]]),a=null);return r}function DN(e,n,r){if(e)return">";let a="";if(n&&r){const{enable:l,disable:u}=n;a=(l?.ignoreCase?"i":"")+(l?.dotAll?"s":"")+(u?"-":"")+(u?.ignoreCase?"i":"")+(u?.dotAll?"s":"")}return`${a}:`}function zN({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 W0({type:e}){return e==="CapturingGroup"||e==="Group"||e==="LookaroundAssertion"}function IN(e){return e>47&&e<58}function Q0({type:e,value:n}){return e==="Character"&&n===45}var PN=class fh extends RegExp{#e=new Map;#t=null;#i;#n=null;#r=null;rawOptions={};get source(){return this.#i||"(?:)"}constructor(n,r,a){const l=!!a?.lazyCompile;if(n instanceof RegExp){if(a)throw new Error("Cannot provide options when copying a regexp");const u=n;super(u,r),this.#i=u.source,u instanceof fh&&(this.#e=u.#e,this.#n=u.#n,this.#r=u.#r,this.rawOptions=u.rawOptions)}else{const u={hiddenCaptures:[],strategy:null,transfers:[],...a};super(l?"":n,r),this.#i=n,this.#e=HN(u.hiddenCaptures,u.transfers),this.#r=u.strategy,this.rawOptions=a??{}}l||(this.#t=this)}exec(n){if(!this.#t){const{lazyCompile:l,...u}=this.rawOptions;this.#t=new fh(this.#i,this.flags,u)}const r=this.global||this.sticky,a=this.lastIndex;if(this.#r==="clip_search"&&r&&a){this.lastIndex=0;const l=this.#a(n.slice(a));return l&&(UN(l,a,n,this.hasIndices),this.lastIndex+=a),l}return this.#a(n)}#a(n){this.#t.lastIndex=this.lastIndex;const r=super.exec.call(this.#t,n);if(this.lastIndex=this.#t.lastIndex,!r||!this.#e.size)return r;const a=[...r];r.length=1;let l;this.hasIndices&&(l=[...r.indices],r.indices.length=1);const u=[0];for(let c=1;c<a.length;c++){const{hidden:d,transferTo:f}=this.#e.get(c)??{};if(d?u.push(null):(u.push(r.length),r.push(a[c]),this.hasIndices&&r.indices.push(l[c])),f&&a[c]!==void 0){const m=u[f];if(!m)throw new Error(`Invalid capture transfer to "${m}"`);if(r[m]=a[c],this.hasIndices&&(r.indices[m]=l[c]),r.groups){this.#n||(this.#n=jN(this.source));const g=this.#n.get(f);g&&(r.groups[g]=a[c],this.hasIndices&&(r.indices.groups[g]=l[c]))}}}return r}};function UN(e,n,r,a){if(e.index+=n,e.input=r,a){const l=e.indices;for(let c=0;c<l.length;c++){const d=l[c];d&&(l[c]=[d[0]+n,d[1]+n])}const u=l.groups;u&&Object.keys(u).forEach(c=>{const d=u[c];d&&(u[c]=[d[0]+n,d[1]+n])})}}function HN(e,n){const r=new Map;for(const a of e)r.set(a,{hidden:!0});for(const[a,l]of n)for(const u of l)pl(r,u,{}).transferTo=a;return r}function jN(e){const n=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,r=new Map;let a=0,l=0,u;for(;u=n.exec(e);){const{0:c,groups:{capture:d,name:f}}=u;c==="["?a++:a?c==="]"&&a--:d&&(l++,f&&r.set(l,f))}return r}function VN(e,n){const r=BN(e,n);return r.options?new PN(r.pattern,r.flags,r.options):new RegExp(r.pattern,r.flags)}function BN(e,n){const r=N1(n),a=E1(e,{flags:r.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:r.rules.captureGroup,singleline:r.rules.singleline},skipBackrefValidation:r.rules.allowOrphanBackrefs,unicodePropertyMap:np}),l=mN(a,{accuracy:r.accuracy,asciiWordBoundaries:r.rules.asciiWordBoundaries,avoidSubclass:r.avoidSubclass,bestEffortTarget:r.target}),u=AN(l,r),c=rN(u.pattern,{captureTransfers:u._captureTransfers,hiddenCaptures:u._hiddenCaptures,mode:"external"}),d=nN(c.pattern),f=tN(d.pattern,{captureTransfers:c.captureTransfers,hiddenCaptures:c.hiddenCaptures}),m={pattern:f.pattern,flags:`${r.hasIndices?"d":""}${r.global?"g":""}${u.flags}${u.options.disable.v?"u":"v"}`};if(r.avoidSubclass){if(r.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const g=f.hiddenCaptures.sort((S,E)=>S-E),v=Array.from(f.captureTransfers),b=l._strategy,_=m.pattern.length>=r.lazyCompileLength;(g.length||v.length||b||_)&&(m.options={...g.length&&{hiddenCaptures:g},...v.length&&{transfers:v},...b&&{strategy:b},..._&&{lazyCompile:_}})}return m}const Z0=4294967295;class GN{constructor(n,r={}){this.patterns=n,this.options=r;const{forgiving:a=!1,cache:l,regexConstructor:u}=r;if(!u)throw new Error("Option `regexConstructor` is not provided");this.regexps=n.map(c=>{if(typeof c!="string")return c;const d=l?.get(c);if(d){if(d instanceof RegExp)return d;if(a)return null;throw d}try{const f=u(c);return l?.set(c,f),f}catch(f){if(l?.set(c,f),a)return null;throw f}})}regexps;findNextMatchSync(n,r,a){const l=typeof n=="string"?n:n.content,u=[];function c(d,f,m=0){return{index:d,captureIndices:f.indices.map(g=>g==null?{start:Z0,end:Z0,length:0}:{start:g[0]+m,end:g[1]+m,length:g[1]-g[0]})}}for(let d=0;d<this.regexps.length;d++){const f=this.regexps[d];if(f)try{f.lastIndex=r;const m=f.exec(l);if(!m)continue;if(m.index===r)return c(d,m,0);u.push([d,m,0])}catch(m){if(this.options.forgiving)continue;throw m}}if(u.length){const d=Math.min(...u.map(f=>f[1].index));for(const[f,m,g]of u)if(m.index===d)return c(f,m,g)}return null}}function $N(e,n){return VN(e,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...n})}function qN(e={}){const n=Object.assign({target:"auto",cache:new Map},e);return n.regexConstructor||=r=>$N(r,{target:n.target}),{createScanner(r){return new GN(r,n)},createString(r){return{content:r}}}}async function YN(e){if(V_())throw new Error(`resolveLanguage("${e}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);const n=bf.get(e);if(n!=null)return n;try{let r=c2.get(e);if(r==null&&Object.prototype.hasOwnProperty.call(oh,e)&&(r=oh[e]),r==null)throw new Error(`resolveLanguage: "${e}" not found in bundled or custom languages`);const a=r().then(({default:l})=>{const u={name:e,data:l};return ul.has(e)||ul.set(e,u),u});return bf.set(e,a),await a}finally{bf.delete(e)}}function FN(e){return ul.get(e)??YN(e)}const Rr=new Map,Nf=new Map,hh=new Map,ph=new Set;function K0(e,n){e=Array.isArray(e)?e:[e];for(let r of e){let a;if(typeof r=="string"){if(a=Rr.get(r),a==null)throw new Error(`loadResolvedThemes: ${r} is not resolved, you must resolve it before calling loadResolvedThemes`)}else a=r,r=r.name,Rr.has(r)||Rr.set(r,a);ph.has(r)||(ph.add(r),n.loadThemeSync(a))}}async function XN(e){if(V_())throw new Error(`resolveTheme("${e}") cannot be called from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);const n=Nf.get(e);if(n!=null)return n;try{const r=hh.get(e)??p1[e];if(r==null)throw new Error(`resolveTheme: No valid loader for ${e}`);const a=r().then(u=>WN(e,"default"in u?u.default:u));Nf.set(e,a);const l=await a;if(l.name!==e)throw new Error(`resolvedTheme: themeName: ${e} does not match theme.name: ${l.name}`);return Rr.set(l.name,l),l}finally{Nf.delete(e)}}function WN(e,n){const r=Rr.get(e);return r??(n=Pu(n),Rr.set(e,n),n)}function QN(e){return Rr.get(e)??XN(e)}function V1(e,n){if(hh.has(e)){console.error("SharedHighlight.registerCustomTheme: theme name already registered",e);return}hh.set(e,n)}let $n;async function ZN({themes:e,langs:n,preferredHighlighter:r="shiki-js"}){$n??=aR({themes:[],langs:["text"],engine:r==="shiki-wasm"?g1(k(()=>import("./wasm-CG6Dc4jp.js"),[])):qN()});const a=JN($n)?await $n:$n;$n=a;const l=[];for(const c of n){if(c==="text"||c==="ansi")continue;const d=FN(c);"then"in d?l.push(d):g0(d,a)}const u=[];for(const c of e){const d=QN(c);"then"in d?u.push(d):K0(d,$n)}return(l.length>0||u.length>0)&&await Promise.all([Promise.all(l).then(c=>{g0(c,a)}),Promise.all(u).then(c=>{K0(c,a)})]),a}function KN(){if($n!=null&&!("then"in $n))return $n}function JN(e=$n){return e!=null&&"then"in e}V1("pierre-dark",async()=>{const e=await k(()=>import("./pierre-dark-ClCaJvdG.js"),[]);return{...e.default??e,name:"pierre-dark"}});V1("pierre-light",async()=>{const e=await k(()=>import("./pierre-light-zjGsWSiE.js"),[]);return{...e.default??e,name:"pierre-light"}});function B1(e=Rn){const n=[];return typeof e=="string"?n.push(e):(n.push(e.dark),n.push(e.light)),n}function Of(e){for(const n of B1(e))if(!ph.has(n))return!1;return!0}function G1(e,n){return e==null||n==null?e===n:e.startingLine===n.startingLine&&e.totalLines===n.totalLines&&e.bufferBefore===n.bufferBefore&&e.bufferAfter===n.bufferAfter}function $1(e,n){return e==null||n==null||typeof e=="string"||typeof n=="string"?e===n:e.dark===n.dark&&e.light===n.light}function eO(e){return Ne({tagName:"div",children:[Ne({tagName:"div",children:e.annotations?.map(n=>Ne({tagName:"slot",properties:{name:n}})),properties:{"data-annotation-content":""}})],properties:{"data-line-annotation":`${e.hunkIndex},${e.lineIndex}`}})}function tO(e){switch(e){case"file":return"diffs-icon-file-code";case"change":return"diffs-icon-symbol-modified";case"new":return"diffs-icon-symbol-added";case"deleted":return"diffs-icon-symbol-deleted";case"rename-pure":case"rename-changed":return"diffs-icon-symbol-moved"}}function nO({fileOrDiff:e,themeStyles:n,themeType:r}){const a="type"in e?e:void 0,l={"data-diffs-header":"","data-change-type":a?.type,"data-theme-type":r!=="system"?r:void 0,style:n};return Ne({tagName:"div",children:[iO({name:e.name,prevName:"prevName"in e?e.prevName:void 0,iconType:a?.type??"file"}),rO(a)],properties:l})}function iO({name:e,prevName:n,iconType:r}){const a=[Ne({tagName:"slot",properties:{name:Vh}}),bu({name:tO(r),properties:{"data-change-icon":r}})];return n!=null&&(a.push(Ne({tagName:"div",children:[yi(n)],properties:{"data-prev-name":""}})),a.push(bu({name:"diffs-icon-arrow-right-short",properties:{"data-rename-icon":""}}))),a.push(Ne({tagName:"div",children:[yi(e)],properties:{"data-title":""}})),Ne({tagName:"div",children:a,properties:{"data-header-content":""}})}function rO(e){const n=[];if(e!=null){let r=0,a=0;for(const l of e.hunks)r+=l.additionLines,a+=l.deletionLines;(a>0||r===0)&&n.push(Ne({tagName:"span",children:[yi(`-${a}`)],properties:{"data-deletions-count":""}})),(r>0||a===0)&&n.push(Ne({tagName:"span",children:[yi(`+${r}`)],properties:{"data-additions-count":""}}))}return n.push(Ne({tagName:"slot",properties:{name:Bh}})),Ne({tagName:"div",children:n,properties:{"data-metadata":""}})}function aO(e){return Ne({tagName:"pre",properties:oO(e)})}function oO({diffIndicators:e,disableBackground:n,disableLineNumbers:r,overflow:a,split:l,themeType:u,themeStyles:c,totalLines:d,type:f,customProperties:m}){const g={...m,"data-diff":f==="diff"?"":void 0,"data-file":f==="file"?"":void 0,"data-diff-type":f==="diff"?l?"split":"single":void 0,"data-overflow":a,"data-disable-line-numbers":r?"":void 0,"data-background":n?void 0:"","data-indicators":e==="bars"||e==="classic"?e:void 0,"data-theme-type":u!=="system"?u:void 0,style:c,tabIndex:0};return g.style+=`--diffs-min-number-column-width-default:${`${d}`.length}ch;`,g}const Ma=new Map,Qo={"1c":"1c",abap:"abap",as:"actionscript-3",ada:"ada",adb:"ada",ads:"ada",adoc:"asciidoc",asciidoc:"asciidoc","component.html":"angular-html","component.ts":"angular-ts",conf:"nginx",htaccess:"apache",cls:"tex",trigger:"apex",apl:"apl",applescript:"applescript",scpt:"applescript",ara:"ara",asm:"asm",s:"riscv",astro:"astro",awk:"awk",bal:"ballerina",sh:"zsh",bash:"zsh",bat:"cmd",cmd:"cmd",be:"berry",beancount:"beancount",bib:"bibtex",bicep:"bicep","blade.php":"blade",bsl:"bsl",c:"c",h:"objective-cpp",cs:"csharp",cpp:"cpp",hpp:"cpp",cc:"cpp",cxx:"cpp",hh:"cpp",cdc:"cdc",cairo:"cairo",clar:"clarity",clj:"clojure",cljs:"clojure",cljc:"clojure",soy:"soy",cmake:"cmake","CMakeLists.txt":"cmake",cob:"cobol",cbl:"cobol",cobol:"cobol",CODEOWNERS:"codeowners",ql:"ql",coffee:"coffeescript",lisp:"lisp",cl:"lisp",lsp:"lisp",log:"log",v:"verilog",cql:"cql",cr:"crystal",css:"css",csv:"csv",cue:"cue",cypher:"cypher",cyp:"cypher",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",patch:"diff",Dockerfile:"dockerfile",dockerfile:"dockerfile",env:"dotenv",dm:"dream-maker",edge:"edge",el:"emacs-lisp",ex:"elixir",exs:"elixir",elm:"elm",erb:"erb",erl:"erlang",hrl:"erlang",f:"fortran-fixed-form",for:"fortran-fixed-form",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"fortran-free-form",f95:"fortran-free-form",fnl:"fennel",fish:"fish",ftl:"ftl",tres:"gdresource",res:"gdresource",gd:"gdscript",gdshader:"gdshader",gs:"genie",feature:"gherkin",COMMIT_EDITMSG:"git-commit","git-rebase-todo":"git-rebase",gjs:"glimmer-js",gleam:"gleam",gts:"glimmer-ts",glsl:"glsl",vert:"glsl",frag:"glsl",shader:"shaderlab",gp:"gnuplot",plt:"gnuplot",gnuplot:"gnuplot",go:"go",graphql:"graphql",gql:"graphql",groovy:"groovy",gvy:"groovy",hack:"hack",haml:"haml",hbs:"handlebars",handlebars:"handlebars",hs:"haskell",lhs:"haskell",hx:"haxe",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",fx:"hlsl",html:"html",htm:"html",http:"http",rest:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",cfg:"ini",jade:"pug",pug:"pug",java:"java",js:"javascript",mjs:"javascript",cjs:"javascript",jinja:"jinja",jinja2:"jinja",j2:"jinja",jison:"jison",jl:"julia",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",libsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",kt:"kotlin",kts:"kts",kql:"kusto",tex:"tex",ltx:"tex",lean:"lean4",less:"less",liquid:"liquid",lit:"lit",ll:"llvm",logo:"logo",lua:"lua",luau:"luau",Makefile:"makefile",mk:"makefile",makefile:"makefile",md:"markdown",markdown:"markdown",marko:"marko",m:"wolfram",mat:"matlab",mdc:"mdc",mdx:"mdx",wiki:"wikitext",mediawiki:"wikitext",mmd:"mermaid",mermaid:"mermaid",mips:"mipsasm",mojo:"mojo","🔥":"mojo",move:"move",nar:"narrat",nf:"nextflow",nim:"nim",nims:"nim",nimble:"nim",nix:"nix",nu:"nushell",mm:"objective-cpp",ml:"ocaml",mli:"ocaml",mll:"ocaml",mly:"ocaml",pas:"pascal",p:"pascal",pl:"prolog",pm:"perl",t:"perl",raku:"raku",p6:"raku",pl6:"raku",php:"php",phtml:"php",pls:"plsql",sql:"sql",po:"po",polar:"polar",pcss:"postcss",pot:"pot",potx:"potx",pq:"powerquery",pqm:"powerquery",ps1:"powershell",psm1:"powershell",psd1:"powershell",prisma:"prisma",pro:"prolog",P:"prolog",properties:"properties",proto:"protobuf",pp:"puppet",purs:"purescript",py:"python",pyw:"python",pyi:"python",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",R:"r",rkt:"racket",rktl:"racket",razor:"razor",cshtml:"razor",rb:"ruby",rbw:"ruby",reg:"reg",regex:"regexp",rel:"rel",rs:"rust",rst:"rst",rake:"ruby",gemspec:"ruby",sas:"sas",sass:"sass",scala:"scala",sc:"scala",scm:"scheme",ss:"scheme",sld:"scheme",scss:"scss",sdbl:"sdbl",shadergraph:"shader",st:"smalltalk",sol:"solidity",sparql:"sparql",rq:"sparql",spl:"splunk",config:"ssh-config",do:"stata",ado:"stata",dta:"stata",styl:"stylus",stylus:"stylus",svelte:"svelte",swift:"swift",sv:"system-verilog",svh:"system-verilog",service:"systemd",socket:"systemd",device:"systemd",timer:"systemd",talon:"talonscript",tasl:"tasl",tcl:"tcl",templ:"templ",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"typescript",tsp:"typespec",tsv:"tsv",tsx:"tsx",ttl:"turtle",twig:"twig",typ:"typst",vv:"v",vala:"vala",vapi:"vala",vb:"vb",vbs:"vb",bas:"vb",vh:"verilog",vhd:"vhdl",vhdl:"vhdl",vim:"vimscript",vue:"vue","vine.ts":"vue-vine",vy:"vyper",wasm:"wasm",wat:"wasm",wy:"文言",wgsl:"wgsl",wit:"wit",wl:"wolfram",nb:"wolfram",xml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yml",zs:"zenscript",zig:"zig",zsh:"zsh",sty:"tex"};function Ru(e){if(Ma.has(e))return Ma.get(e)??"text";if(Qo[e]!=null)return Qo[e];const n=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(n!=null){if(Ma.has(n[1]))return Ma.get(n[1])??"text";if(Qo[n[1]]!=null)return Qo[n[1]]??"text"}const r=e.match(/\.([^.]+)$/)?.[1]??"";return Ma.has(r)?Ma.get(r)??"text":Qo[r]??"text"}function lO(e,{theme:n,preferredHighlighter:r="shiki-js"}){return{langs:[e??"text"],themes:B1(n),preferredHighlighter:r}}function ml(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}function Wa(e){return e.replace(/\n$|\r\n$/,"")}function sO(e,n,r){const a=typeof r.lineInfo=="function"?r.lineInfo(n):r.lineInfo[n-1];if(a==null){const l=`processLine: line ${n}, contains no state.lineInfo`;throw console.error(l,{node:e,line:n,state:r}),new Error(l)}return e.tagName="div",e.properties["data-line"]=a.lineNumber,e.properties["data-alt-line"]=a.altLineNumber,e.properties["data-line-type"]=a.type,e.properties["data-line-index"]=a.lineIndex,e.children.length===0&&e.children.push(yi(`
|
|
166
|
+
`)),e}function uO(e={}){const{classPrefix:n="__shiki_",classSuffix:r="",classReplacer:a=d=>d}=e,l=new Map;function u(d){return Object.entries(d).map(([f,m])=>`${f}:${m}`).join(";")}function c(d){const f=typeof d=="string"?d:u(d);let m=n+cO(f)+r;return m=a(m),l.has(m)||l.set(m,typeof d=="string"?d:{...d}),m}return{name:"@shikijs/transformers:style-to-class",pre(d){if(!d.properties.style)return;const f=c(d.properties.style);delete d.properties.style,this.addClassToHast(d,f)},tokens(d){for(const f of d)for(const m of f){if(!m.htmlStyle)continue;const g=c(m.htmlStyle);m.htmlStyle={},m.htmlAttrs||={},m.htmlAttrs.class?m.htmlAttrs.class+=` ${g}`:m.htmlAttrs.class=g}},getClassRegistry(){return l},getCSS(){let d="";for(const[f,m]of l.entries())d+=`.${f}{${typeof m=="string"?m:u(m)}}`;return d},clearRegistry(){l.clear()}}}function cO(e,n=0){let r=3735928559^n,a=1103547991^n;for(let l=0,u;l<e.length;l++)u=e.charCodeAt(l),r=Math.imul(r^u,2654435761),a=Math.imul(a^u,1597334677);return r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(a^a>>>13,3266489909),a=Math.imul(a^a>>>16,2246822507),a^=Math.imul(r^r>>>13,3266489909),(4294967296*(2097151&a)+(r>>>0)).toString(36).slice(0,6)}function dO(e=!1){const n={lineInfo:[]},r=[{line(a){return delete a.properties.class,a},pre(a){const l=Hk(a),u=[];if(l!=null){let c=1;for(const d of l.children)d.type==="element"&&(u.push(sO(d,c,n)),c++);l.children=u}return a}}];return e&&r.push(fO,J0),{state:n,transformers:r,toClass:J0}}const J0=uO({classPrefix:"hl-"}),fO={name:"token-style-normalizer",tokens(e){for(const n of e)for(const r of n){if(r.htmlStyle!=null)continue;const a={};r.color!=null&&(a.color=r.color),r.bgColor!=null&&(a["background-color"]=r.bgColor),r.fontStyle!=null&&r.fontStyle!==0&&((r.fontStyle&1)!==0&&(a["font-style"]="italic"),(r.fontStyle&2)!==0&&(a["font-weight"]="bold"),(r.fontStyle&4)!==0&&(a["text-decoration"]="underline")),Object.keys(a).length>0&&(r.htmlStyle=a)}}};function Tn(e){return`--${e==="token"?"diffs-token":"diffs"}-`}function hO({theme:e=Rn,highlighter:n,prefix:r}){let a="";if(typeof e=="string"){const l=n.getTheme(e);a+=`color:${l.fg};`,a+=`background-color:${l.bg};`,a+=`${Tn("global")}fg:${l.fg};`,a+=`${Tn("global")}bg:${l.bg};`,a+=Mf(l,r)}else{let l=n.getTheme(e.dark);a+=`${Tn("global")}dark:${l.fg};`,a+=`${Tn("global")}dark-bg:${l.bg};`,a+=Mf(l,"dark"),l=n.getTheme(e.light),a+=`${Tn("global")}light:${l.fg};`,a+=`${Tn("global")}light-bg:${l.bg};`,a+=Mf(l,"light")}return a}function Mf(e,n){n=n!=null?`${n}-`:"";let r="";const a=e.colors?.["gitDecoration.addedResourceForeground"]??e.colors?.["terminal.ansiGreen"];a!=null&&(r+=`${Tn("global")}${n}addition-color:${a};`);const l=e.colors?.["gitDecoration.deletedResourceForeground"]??e.colors?.["terminal.ansiRed"];l!=null&&(r+=`${Tn("global")}${n}deletion-color:${l};`);const u=e.colors?.["gitDecoration.modifiedResourceForeground"]??e.colors?.["terminal.ansiBlue"];return u!=null&&(r+=`${Tn("global")}${n}modified-color:${u};`),r}function ey(e){let n=e.children[0];for(;n!=null;){if(n.type==="element"&&n.tagName==="code")return n.children;"children"in n?n=n.children[0]:n=null}throw console.error(e),new Error("getLineNodes: Unable to find children")}function pO(e,n){return Ne({tagName:"div",children:e,properties:{"data-content":"",style:`grid-row: span ${n}`}})}const mO=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
|
|
167
|
+
<symbol id="diffs-icon-arrow-right-short" viewBox="0 0 16 16">
|
|
168
|
+
<path d="M8.47 4.22a.75.75 0 0 0 0 1.06l1.97 1.97H3.75a.75.75 0 0 0 0 1.5h6.69l-1.97 1.97a.75.75 0 1 0 1.06 1.06l3.25-3.25a.75.75 0 0 0 0-1.06L9.53 4.22a.75.75 0 0 0-1.06 0"/>
|
|
169
|
+
</symbol>
|
|
170
|
+
<symbol id="diffs-icon-brand-github" viewBox="0 0 16 16">
|
|
171
|
+
<path d="M8 0c4.42 0 8 3.58 8 8a8.01 8.01 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27s-1.36.09-2 .27c-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8"/>
|
|
172
|
+
</symbol>
|
|
173
|
+
<symbol id="diffs-icon-chevron" viewBox="0 0 16 16">
|
|
174
|
+
<path d="M1.47 4.47a.75.75 0 0 1 1.06 0L8 9.94l5.47-5.47a.75.75 0 1 1 1.06 1.06l-6 6a.75.75 0 0 1-1.06 0l-6-6a.75.75 0 0 1 0-1.06"/>
|
|
175
|
+
</symbol>
|
|
176
|
+
<symbol id="diffs-icon-chevrons-narrow" viewBox="0 0 10 16">
|
|
177
|
+
<path d="M4.47 2.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1-1.06 1.06L5 3.81 2.28 6.53a.75.75 0 0 1-1.06-1.06zM1.22 9.47a.75.75 0 0 1 1.06 0L5 12.19l2.72-2.72a.75.75 0 0 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0l-3.25-3.25a.75.75 0 0 1 0-1.06"/>
|
|
178
|
+
</symbol>
|
|
179
|
+
<symbol id="diffs-icon-diff-split" viewBox="0 0 16 16">
|
|
180
|
+
<path d="M14 0H8.5v16H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2m-1.5 6.5v1h1a.5.5 0 0 1 0 1h-1v1a.5.5 0 0 1-1 0v-1h-1a.5.5 0 0 1 0-1h1v-1a.5.5 0 0 1 1 0"/><path d="M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h5.5V0zm.5 7.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1" opacity=".3"/>
|
|
181
|
+
</symbol>
|
|
182
|
+
<symbol id="diffs-icon-diff-unified" viewBox="0 0 16 16">
|
|
183
|
+
<path fill-rule="evenodd" d="M16 14a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V8.5h16zm-8-4a.5.5 0 0 0-.5.5v1h-1a.5.5 0 0 0 0 1h1v1a.5.5 0 0 0 1 0v-1h1a.5.5 0 0 0 0-1h-1v-1A.5.5 0 0 0 8 10" clip-rule="evenodd"/><path fill-rule="evenodd" d="M14 0a2 2 0 0 1 2 2v5.5H0V2a2 2 0 0 1 2-2zM6.5 3.5a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1z" clip-rule="evenodd" opacity=".4"/>
|
|
184
|
+
</symbol>
|
|
185
|
+
<symbol id="diffs-icon-expand" viewBox="0 0 16 16">
|
|
186
|
+
<path d="M3.47 5.47a.75.75 0 0 1 1.06 0L8 8.94l3.47-3.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 0 1 0-1.06"/>
|
|
187
|
+
</symbol>
|
|
188
|
+
<symbol id="diffs-icon-expand-all" viewBox="0 0 16 16">
|
|
189
|
+
<path d="M11.47 9.47a.75.75 0 1 1 1.06 1.06l-4 4a.75.75 0 0 1-1.06 0l-4-4a.75.75 0 1 1 1.06-1.06L8 12.94zM7.526 1.418a.75.75 0 0 1 1.004.052l4 4a.75.75 0 1 1-1.06 1.06L8 3.06 4.53 6.53a.75.75 0 1 1-1.06-1.06l4-4z"/>
|
|
190
|
+
</symbol>
|
|
191
|
+
<symbol id="diffs-icon-file-code" viewBox="0 0 16 16">
|
|
192
|
+
<path d="M10.75 0c.199 0 .39.08.53.22l3.5 3.5c.14.14.22.331.22.53v9A2.75 2.75 0 0 1 12.25 16h-8.5A2.75 2.75 0 0 1 1 13.25V2.75A2.75 2.75 0 0 1 3.75 0zm-7 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h8.5c.69 0 1.25-.56 1.25-1.25V5h-1.25A2.25 2.25 0 0 1 10 2.75V1.5z"/><path d="M7.248 6.19a.75.75 0 0 1 .063 1.058L5.753 9l1.558 1.752a.75.75 0 0 1-1.122.996l-2-2.25a.75.75 0 0 1 0-.996l2-2.25a.75.75 0 0 1 1.06-.063M8.69 7.248a.75.75 0 1 1 1.12-.996l2 2.25a.75.75 0 0 1 0 .996l-2 2.25a.75.75 0 1 1-1.12-.996L10.245 9z"/>
|
|
193
|
+
</symbol>
|
|
194
|
+
<symbol id="diffs-icon-plus" viewBox="0 0 16 16">
|
|
195
|
+
<path d="M8 3a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 8 3"/>
|
|
196
|
+
</symbol>
|
|
197
|
+
<symbol id="diffs-icon-symbol-added" viewBox="0 0 16 16">
|
|
198
|
+
<path d="M8 4a.75.75 0 0 1 .75.75v2.5h2.5a.75.75 0 0 1 0 1.5h-2.5v2.5a.75.75 0 0 1-1.5 0v-2.5h-2.5a.75.75 0 0 1 0-1.5h2.5v-2.5A.75.75 0 0 1 8 4"/><path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/>
|
|
199
|
+
</symbol>
|
|
200
|
+
<symbol id="diffs-icon-symbol-deleted" viewBox="0 0 16 16">
|
|
201
|
+
<path d="M4 8a.75.75 0 0 1 .75-.75h6.5a.75.75 0 0 1 0 1.5h-6.5A.75.75 0 0 1 4 8"/><path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/>
|
|
202
|
+
</symbol>
|
|
203
|
+
<symbol id="diffs-icon-symbol-diffstat" viewBox="0 0 16 16">
|
|
204
|
+
<path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/><path d="M8.75 4.296a.75.75 0 0 0-1.5 0V6.25h-2a.75.75 0 0 0 0 1.5h2v1.5h1.5v-1.5h2a.75.75 0 0 0 0-1.5h-2zM5.25 10a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5z"/>
|
|
205
|
+
</symbol>
|
|
206
|
+
<symbol id="diffs-icon-symbol-ignored" viewBox="0 0 16 16">
|
|
207
|
+
<path d="M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m11.53-2.47a.75.75 0 0 0-1.06-1.06l-6 6a.75.75 0 1 0 1.06 1.06z"/>
|
|
208
|
+
</symbol>
|
|
209
|
+
<symbol id="diffs-icon-symbol-modified" viewBox="0 0 16 16">
|
|
210
|
+
<path d="M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706s.826.607 1.706.802c.898.2 2.091.288 3.704.288s2.806-.088 3.704-.288c.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5s-2.806.088-3.704.288c-.88.196-1.381.478-1.706.802s-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8M0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m8 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6"/>
|
|
211
|
+
</symbol>
|
|
212
|
+
<symbol id="diffs-icon-symbol-moved" viewBox="0 0 16 16">
|
|
213
|
+
<path d="M1.788 4.296c.196-.88.478-1.381.802-1.706s.826-.606 1.706-.802C5.194 1.588 6.387 1.5 8 1.5s2.806.088 3.704.288c.88.196 1.381.478 1.706.802s.607.826.802 1.706c.2.898.288 2.091.288 3.704s-.088 2.806-.288 3.704c-.195.88-.478 1.381-.802 1.706s-.826.607-1.706.802c-.898.2-2.091.288-3.704.288s-2.806-.088-3.704-.288c-.88-.195-1.381-.478-1.706-.802s-.606-.826-.802-1.706C1.588 10.806 1.5 9.613 1.5 8s.088-2.806.288-3.704M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8"/><path d="M8.495 4.695a.75.75 0 0 0-.05 1.06L10.486 8l-2.041 2.246a.75.75 0 0 0 1.11 1.008l2.5-2.75a.75.75 0 0 0 0-1.008l-2.5-2.75a.75.75 0 0 0-1.06-.051m-4 0a.75.75 0 0 0-.05 1.06l2.044 2.248-1.796 1.995a.75.75 0 0 0 1.114 1.004l2.25-2.5a.75.75 0 0 0-.002-1.007l-2.5-2.75a.75.75 0 0 0-1.06-.05"/>
|
|
214
|
+
</symbol>
|
|
215
|
+
<symbol id="diffs-icon-symbol-ref" viewBox="0 0 16 16">
|
|
216
|
+
<path d="M1.5 8c0 1.613.088 2.806.288 3.704.196.88.478 1.381.802 1.706.286.286.71.54 1.41.73V1.86c-.7.19-1.124.444-1.41.73-.324.325-.606.826-.802 1.706C1.588 5.194 1.5 6.387 1.5 8m4 6.397c.697.07 1.522.103 2.5.103 1.613 0 2.806-.088 3.704-.288.88-.195 1.381-.478 1.706-.802s.607-.826.802-1.706c.2-.898.288-2.091.288-3.704s-.088-2.806-.288-3.704c-.195-.88-.478-1.381-.802-1.706s-.826-.606-1.706-.802C10.806 1.588 9.613 1.5 8 1.5c-.978 0-1.803.033-2.5.103zM0 8c0-6.588 1.412-8 8-8s8 1.412 8 8-1.412 8-8 8-8-1.412-8-8m7-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1z"/>
|
|
217
|
+
</symbol>
|
|
218
|
+
</svg>`;function ty(e,n){return e?.cacheKey===n?.cacheKey&&e?.contents===n?.contents&&e?.name===n?.name&&e?.lang===n?.lang}function gO(e,n){return e==null||n==null?e===n:vO(e.customProperties,n.customProperties)&&e.type===n.type&&e.diffIndicators===n.diffIndicators&&e.disableBackground===n.disableBackground&&e.disableLineNumbers===n.disableLineNumbers&&e.overflow===n.overflow&&e.split===n.split&&e.themeStyles===n.themeStyles&&e.themeType===n.themeType&&e.totalLines===n.totalLines}const ny={};function vO(e=ny,n=ny){if(e===n)return!0;const r=Object.keys(e),a=Object.keys(n);if(r.length!==a.length)return!1;for(const l of r)if(e[l]!==n[l])return!1;return!0}function bO(e){const n=document.createElement("div");return n.dataset.annotationSlot="",n.slot=e,n.style.whiteSpace="normal",n}function yO(){const e=document.createElement("div");return e.slot="gutter-utility-slot",e.style.position="absolute",e.style.top="0",e.style.bottom="0",e.style.textAlign="center",e.style.whiteSpace="normal",e}function _O(){const e=document.createElement("style");return e.setAttribute(k_,""),e}var SO=`@layer base, theme, unsafe;
|
|
219
|
+
|
|
220
|
+
@layer base {
|
|
221
|
+
:host {
|
|
222
|
+
--diffs-bg: #fff;
|
|
223
|
+
--diffs-fg: #000;
|
|
224
|
+
--diffs-font-fallback:
|
|
225
|
+
'SF Mono', Monaco, Consolas, 'Ubuntu Mono', 'Liberation Mono',
|
|
226
|
+
'Courier New', monospace;
|
|
227
|
+
--diffs-header-font-fallback:
|
|
228
|
+
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
229
|
+
'Noto Sans', 'Liberation Sans', Arial, sans-serif;
|
|
230
|
+
|
|
231
|
+
--diffs-mixer: light-dark(black, white);
|
|
232
|
+
--diffs-gap-fallback: 8px;
|
|
233
|
+
|
|
234
|
+
--diffs-added-light: #0dbe4e;
|
|
235
|
+
--diffs-added-dark: #5ecc71;
|
|
236
|
+
--diffs-modified-light: #009fff;
|
|
237
|
+
--diffs-modified-dark: #69b1ff;
|
|
238
|
+
--diffs-deleted-light: #ff2e3f;
|
|
239
|
+
--diffs-deleted-dark: #ff6762;
|
|
240
|
+
|
|
241
|
+
/*
|
|
242
|
+
// Available CSS Color Overrides
|
|
243
|
+
--diffs-bg-buffer-override
|
|
244
|
+
--diffs-bg-hover-override
|
|
245
|
+
--diffs-bg-context-override
|
|
246
|
+
--diffs-bg-separator-override
|
|
247
|
+
|
|
248
|
+
--diffs-fg-number-override
|
|
249
|
+
--diffs-fg-number-addition-override
|
|
250
|
+
--diffs-fg-number-deletion-override
|
|
251
|
+
--diffs-fg-conflict-marker-override
|
|
252
|
+
|
|
253
|
+
--diffs-deletion-color-override
|
|
254
|
+
--diffs-addition-color-override
|
|
255
|
+
--diffs-modified-color-override
|
|
256
|
+
|
|
257
|
+
--diffs-bg-deletion-override
|
|
258
|
+
--diffs-bg-deletion-number-override
|
|
259
|
+
--diffs-bg-deletion-hover-override
|
|
260
|
+
--diffs-bg-deletion-emphasis-override
|
|
261
|
+
|
|
262
|
+
--diffs-bg-addition-override
|
|
263
|
+
--diffs-bg-addition-number-override
|
|
264
|
+
--diffs-bg-addition-hover-override
|
|
265
|
+
--diffs-bg-addition-emphasis-override
|
|
266
|
+
|
|
267
|
+
// Line Selection Color Overrides (for enableLineSelection)
|
|
268
|
+
--diffs-selection-color-override
|
|
269
|
+
--diffs-bg-selection-override
|
|
270
|
+
--diffs-bg-selection-number-override
|
|
271
|
+
--diffs-bg-selection-background-override
|
|
272
|
+
--diffs-bg-selection-number-background-override
|
|
273
|
+
|
|
274
|
+
// Available CSS Layout Overrides
|
|
275
|
+
--diffs-gap-inline
|
|
276
|
+
--diffs-gap-block
|
|
277
|
+
--diffs-gap-style
|
|
278
|
+
--diffs-tab-size
|
|
279
|
+
*/
|
|
280
|
+
|
|
281
|
+
color-scheme: light dark;
|
|
282
|
+
display: block;
|
|
283
|
+
font-family: var(
|
|
284
|
+
--diffs-header-font-family,
|
|
285
|
+
var(--diffs-header-font-fallback)
|
|
286
|
+
);
|
|
287
|
+
font-size: var(--diffs-font-size, 13px);
|
|
288
|
+
line-height: var(--diffs-line-height, 20px);
|
|
289
|
+
font-feature-settings: var(--diffs-font-features);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/* NOTE(mdo): Some semantic HTML elements (e.g. \`pre\`, \`code\`) have default
|
|
293
|
+
* user-agent styles. These must be overridden to use our custom styles. */
|
|
294
|
+
pre,
|
|
295
|
+
code,
|
|
296
|
+
[data-error-wrapper] {
|
|
297
|
+
isolation: isolate;
|
|
298
|
+
margin: 0;
|
|
299
|
+
padding: 0;
|
|
300
|
+
display: block;
|
|
301
|
+
outline: none;
|
|
302
|
+
font-family: var(--diffs-font-family, var(--diffs-font-fallback));
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
pre,
|
|
306
|
+
code {
|
|
307
|
+
background-color: var(--diffs-bg);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
code {
|
|
311
|
+
contain: content;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
*,
|
|
315
|
+
*::before,
|
|
316
|
+
*::after {
|
|
317
|
+
box-sizing: border-box;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
[data-icon-sprite] {
|
|
321
|
+
display: none;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/* NOTE(mdo): Headers and separators are within pre/code, so we need to reset
|
|
325
|
+
* their font-family explicitly. */
|
|
326
|
+
[data-diffs-header],
|
|
327
|
+
[data-separator] {
|
|
328
|
+
font-family: var(
|
|
329
|
+
--diffs-header-font-family,
|
|
330
|
+
var(--diffs-header-font-fallback)
|
|
331
|
+
);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
[data-file-info] {
|
|
335
|
+
padding: 10px;
|
|
336
|
+
font-weight: 700;
|
|
337
|
+
color: var(--fg);
|
|
338
|
+
/* NOTE(amadeus): we cannot use 'in oklch' because current versions of cursor
|
|
339
|
+
* and vscode use an older build of chrome that appears to have a bug with
|
|
340
|
+
* color-mix and 'in oklch', so use 'in lab' instead */
|
|
341
|
+
background-color: color-mix(in lab, var(--bg) 98%, var(--fg));
|
|
342
|
+
border-block: 1px solid color-mix(in lab, var(--bg) 95%, var(--fg));
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
[data-diffs-header],
|
|
346
|
+
[data-diff],
|
|
347
|
+
[data-file],
|
|
348
|
+
[data-error-wrapper],
|
|
349
|
+
[data-virtualizer-buffer] {
|
|
350
|
+
--diffs-bg: light-dark(var(--diffs-light-bg), var(--diffs-dark-bg));
|
|
351
|
+
/* NOTE(amadeus): we cannot use 'in oklch' because current versions of cursor
|
|
352
|
+
* and vscode use an older build of chrome that appears to have a bug with
|
|
353
|
+
* color-mix and 'in oklch', so use 'in lab' instead */
|
|
354
|
+
--diffs-bg-buffer: var(
|
|
355
|
+
--diffs-bg-buffer-override,
|
|
356
|
+
light-dark(
|
|
357
|
+
color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer)),
|
|
358
|
+
color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer))
|
|
359
|
+
)
|
|
360
|
+
);
|
|
361
|
+
--diffs-bg-hover: var(
|
|
362
|
+
--diffs-bg-hover-override,
|
|
363
|
+
light-dark(
|
|
364
|
+
color-mix(in lab, var(--diffs-bg) 97%, var(--diffs-mixer)),
|
|
365
|
+
color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-mixer))
|
|
366
|
+
)
|
|
367
|
+
);
|
|
368
|
+
|
|
369
|
+
--diffs-bg-context: var(
|
|
370
|
+
--diffs-bg-context-override,
|
|
371
|
+
light-dark(
|
|
372
|
+
color-mix(in lab, var(--diffs-bg) 98.5%, var(--diffs-mixer)),
|
|
373
|
+
color-mix(in lab, var(--diffs-bg) 92.5%, var(--diffs-mixer))
|
|
374
|
+
)
|
|
375
|
+
);
|
|
376
|
+
--diffs-bg-context-number: var(
|
|
377
|
+
--diffs-bg-context-number-override,
|
|
378
|
+
light-dark(
|
|
379
|
+
color-mix(in lab, var(--diffs-bg-context) 80%, var(--diffs-bg)),
|
|
380
|
+
color-mix(in lab, var(--diffs-bg-context) 60%, var(--diffs-bg))
|
|
381
|
+
)
|
|
382
|
+
);
|
|
383
|
+
--diffs-bg-conflict-marker: var(
|
|
384
|
+
--diffs-bg-conflict-marker-override,
|
|
385
|
+
light-dark(
|
|
386
|
+
color-mix(
|
|
387
|
+
in lab,
|
|
388
|
+
var(--diffs-bg-context) 88%,
|
|
389
|
+
var(--diffs-modified-base)
|
|
390
|
+
),
|
|
391
|
+
color-mix(
|
|
392
|
+
in lab,
|
|
393
|
+
var(--diffs-bg-context) 80%,
|
|
394
|
+
var(--diffs-modified-base)
|
|
395
|
+
)
|
|
396
|
+
)
|
|
397
|
+
);
|
|
398
|
+
--diffs-bg-conflict-current: var(
|
|
399
|
+
--diffs-bg-conflict-current-override,
|
|
400
|
+
light-dark(#e5f8ea, #274432)
|
|
401
|
+
);
|
|
402
|
+
--diffs-bg-conflict-base: var(
|
|
403
|
+
--diffs-bg-conflict-base-override,
|
|
404
|
+
light-dark(
|
|
405
|
+
color-mix(
|
|
406
|
+
in lab,
|
|
407
|
+
var(--diffs-bg-context) 90%,
|
|
408
|
+
var(--diffs-modified-base)
|
|
409
|
+
),
|
|
410
|
+
color-mix(
|
|
411
|
+
in lab,
|
|
412
|
+
var(--diffs-bg-context) 82%,
|
|
413
|
+
var(--diffs-modified-base)
|
|
414
|
+
)
|
|
415
|
+
)
|
|
416
|
+
);
|
|
417
|
+
--diffs-bg-conflict-incoming: var(
|
|
418
|
+
--diffs-bg-conflict-incoming-override,
|
|
419
|
+
light-dark(#e6f1ff, #253b5a)
|
|
420
|
+
);
|
|
421
|
+
--diffs-bg-conflict-marker-number: var(
|
|
422
|
+
--diffs-bg-conflict-marker-number-override,
|
|
423
|
+
light-dark(
|
|
424
|
+
color-mix(in lab, var(--diffs-bg-conflict-marker) 72%, var(--diffs-bg)),
|
|
425
|
+
color-mix(in lab, var(--diffs-bg-conflict-marker) 54%, var(--diffs-bg))
|
|
426
|
+
)
|
|
427
|
+
);
|
|
428
|
+
--diffs-bg-conflict-current-number: var(
|
|
429
|
+
--diffs-bg-conflict-current-number-override,
|
|
430
|
+
light-dark(#d7f1de, #30533d)
|
|
431
|
+
);
|
|
432
|
+
--diffs-bg-conflict-base-number: var(
|
|
433
|
+
--diffs-bg-conflict-base-number-override,
|
|
434
|
+
light-dark(
|
|
435
|
+
color-mix(in lab, var(--diffs-bg-conflict-base) 72%, var(--diffs-bg)),
|
|
436
|
+
color-mix(in lab, var(--diffs-bg-conflict-base) 54%, var(--diffs-bg))
|
|
437
|
+
)
|
|
438
|
+
);
|
|
439
|
+
--diffs-bg-conflict-incoming-number: var(
|
|
440
|
+
--diffs-bg-conflict-incoming-number-override,
|
|
441
|
+
light-dark(#d8e8ff, #2f4b73)
|
|
442
|
+
);
|
|
443
|
+
--conflict-bg-current: var(
|
|
444
|
+
--conflict-bg-current-override,
|
|
445
|
+
var(--diffs-bg-addition)
|
|
446
|
+
);
|
|
447
|
+
--conflict-bg-incoming: var(
|
|
448
|
+
--conflict-bg-incoming-override,
|
|
449
|
+
light-dark(
|
|
450
|
+
color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-modified-base)),
|
|
451
|
+
color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-modified-base))
|
|
452
|
+
)
|
|
453
|
+
);
|
|
454
|
+
--conflict-bg-current-number: var(
|
|
455
|
+
--conflict-bg-current-number-override,
|
|
456
|
+
var(--diffs-bg-addition-number)
|
|
457
|
+
);
|
|
458
|
+
--conflict-bg-incoming-number: var(
|
|
459
|
+
--conflict-bg-incoming-number-override,
|
|
460
|
+
light-dark(
|
|
461
|
+
color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-modified-base)),
|
|
462
|
+
color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-modified-base))
|
|
463
|
+
)
|
|
464
|
+
);
|
|
465
|
+
--conflict-bg-current-header: var(
|
|
466
|
+
--conflict-bg-current-header-override,
|
|
467
|
+
light-dark(
|
|
468
|
+
color-mix(in lab, var(--diffs-bg) 78%, var(--diffs-addition-base)),
|
|
469
|
+
color-mix(in lab, var(--diffs-bg) 68%, var(--diffs-addition-base))
|
|
470
|
+
)
|
|
471
|
+
);
|
|
472
|
+
--conflict-bg-incoming-header: var(
|
|
473
|
+
--conflict-bg-incoming-header-override,
|
|
474
|
+
light-dark(
|
|
475
|
+
color-mix(in lab, var(--diffs-bg) 78%, var(--diffs-modified-base)),
|
|
476
|
+
color-mix(in lab, var(--diffs-bg) 68%, var(--diffs-modified-base))
|
|
477
|
+
)
|
|
478
|
+
);
|
|
479
|
+
--conflict-bg-current-header-number: var(
|
|
480
|
+
--conflict-bg-current-header-number-override,
|
|
481
|
+
light-dark(
|
|
482
|
+
color-mix(in lab, var(--diffs-bg) 72%, var(--diffs-addition-base)),
|
|
483
|
+
color-mix(in lab, var(--diffs-bg) 62%, var(--diffs-addition-base))
|
|
484
|
+
)
|
|
485
|
+
);
|
|
486
|
+
--conflict-bg-incoming-header-number: var(
|
|
487
|
+
--conflict-bg-incoming-header-number-override,
|
|
488
|
+
light-dark(
|
|
489
|
+
color-mix(in lab, var(--diffs-bg) 72%, var(--diffs-modified-base)),
|
|
490
|
+
color-mix(in lab, var(--diffs-bg) 62%, var(--diffs-modified-base))
|
|
491
|
+
)
|
|
492
|
+
);
|
|
493
|
+
|
|
494
|
+
--diffs-bg-separator: var(
|
|
495
|
+
--diffs-bg-separator-override,
|
|
496
|
+
light-dark(
|
|
497
|
+
color-mix(in lab, var(--diffs-bg) 96%, var(--diffs-mixer)),
|
|
498
|
+
color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-mixer))
|
|
499
|
+
)
|
|
500
|
+
);
|
|
501
|
+
|
|
502
|
+
--diffs-fg: light-dark(var(--diffs-light), var(--diffs-dark));
|
|
503
|
+
--diffs-fg-number: var(
|
|
504
|
+
--diffs-fg-number-override,
|
|
505
|
+
light-dark(
|
|
506
|
+
color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg)),
|
|
507
|
+
color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg))
|
|
508
|
+
)
|
|
509
|
+
);
|
|
510
|
+
--diffs-fg-conflict-marker: var(
|
|
511
|
+
--diffs-fg-conflict-marker-override,
|
|
512
|
+
var(--diffs-fg-number)
|
|
513
|
+
);
|
|
514
|
+
|
|
515
|
+
--diffs-deletion-base: var(
|
|
516
|
+
--diffs-deletion-color-override,
|
|
517
|
+
light-dark(
|
|
518
|
+
var(
|
|
519
|
+
--diffs-light-deletion-color,
|
|
520
|
+
var(--diffs-deletion-color, var(--diffs-deleted-light))
|
|
521
|
+
),
|
|
522
|
+
var(
|
|
523
|
+
--diffs-dark-deletion-color,
|
|
524
|
+
var(--diffs-deletion-color, var(--diffs-deleted-dark))
|
|
525
|
+
)
|
|
526
|
+
)
|
|
527
|
+
);
|
|
528
|
+
--diffs-addition-base: var(
|
|
529
|
+
--diffs-addition-color-override,
|
|
530
|
+
light-dark(
|
|
531
|
+
var(
|
|
532
|
+
--diffs-light-addition-color,
|
|
533
|
+
var(--diffs-addition-color, var(--diffs-added-light))
|
|
534
|
+
),
|
|
535
|
+
var(
|
|
536
|
+
--diffs-dark-addition-color,
|
|
537
|
+
var(--diffs-addition-color, var(--diffs-added-dark))
|
|
538
|
+
)
|
|
539
|
+
)
|
|
540
|
+
);
|
|
541
|
+
--diffs-modified-base: var(
|
|
542
|
+
--diffs-modified-color-override,
|
|
543
|
+
light-dark(
|
|
544
|
+
var(
|
|
545
|
+
--diffs-light-modified-color,
|
|
546
|
+
var(--diffs-modified-color, var(--diffs-modified-light))
|
|
547
|
+
),
|
|
548
|
+
var(
|
|
549
|
+
--diffs-dark-modified-color,
|
|
550
|
+
var(--diffs-modified-color, var(--diffs-modified-dark))
|
|
551
|
+
)
|
|
552
|
+
)
|
|
553
|
+
);
|
|
554
|
+
|
|
555
|
+
/* NOTE(amadeus): we cannot use 'in oklch' because current versions of cursor
|
|
556
|
+
* and vscode use an older build of chrome that appears to have a bug with
|
|
557
|
+
* color-mix and 'in oklch', so use 'in lab' instead */
|
|
558
|
+
--diffs-bg-deletion: var(
|
|
559
|
+
--diffs-bg-deletion-override,
|
|
560
|
+
light-dark(
|
|
561
|
+
color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-deletion-base)),
|
|
562
|
+
color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-deletion-base))
|
|
563
|
+
)
|
|
564
|
+
);
|
|
565
|
+
--diffs-bg-deletion-number: var(
|
|
566
|
+
--diffs-bg-deletion-number-override,
|
|
567
|
+
light-dark(
|
|
568
|
+
color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-deletion-base)),
|
|
569
|
+
color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-deletion-base))
|
|
570
|
+
)
|
|
571
|
+
);
|
|
572
|
+
--diffs-bg-deletion-hover: var(
|
|
573
|
+
--diffs-bg-deletion-hover-override,
|
|
574
|
+
light-dark(
|
|
575
|
+
color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-deletion-base)),
|
|
576
|
+
color-mix(in lab, var(--diffs-bg) 75%, var(--diffs-deletion-base))
|
|
577
|
+
)
|
|
578
|
+
);
|
|
579
|
+
--diffs-bg-deletion-emphasis: var(
|
|
580
|
+
--diffs-bg-deletion-emphasis-override,
|
|
581
|
+
light-dark(
|
|
582
|
+
rgb(from var(--diffs-deletion-base) r g b / 0.15),
|
|
583
|
+
rgb(from var(--diffs-deletion-base) r g b / 0.2)
|
|
584
|
+
)
|
|
585
|
+
);
|
|
586
|
+
|
|
587
|
+
--diffs-bg-addition: var(
|
|
588
|
+
--diffs-bg-addition-override,
|
|
589
|
+
light-dark(
|
|
590
|
+
color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-addition-base)),
|
|
591
|
+
color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-addition-base))
|
|
592
|
+
)
|
|
593
|
+
);
|
|
594
|
+
--diffs-bg-addition-number: var(
|
|
595
|
+
--diffs-bg-addition-number-override,
|
|
596
|
+
light-dark(
|
|
597
|
+
color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-addition-base)),
|
|
598
|
+
color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-addition-base))
|
|
599
|
+
)
|
|
600
|
+
);
|
|
601
|
+
--diffs-bg-addition-hover: var(
|
|
602
|
+
--diffs-bg-addition-hover-override,
|
|
603
|
+
light-dark(
|
|
604
|
+
color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-addition-base)),
|
|
605
|
+
color-mix(in lab, var(--diffs-bg) 70%, var(--diffs-addition-base))
|
|
606
|
+
)
|
|
607
|
+
);
|
|
608
|
+
--diffs-bg-addition-emphasis: var(
|
|
609
|
+
--diffs-bg-addition-emphasis-override,
|
|
610
|
+
light-dark(
|
|
611
|
+
rgb(from var(--diffs-addition-base) r g b / 0.15),
|
|
612
|
+
rgb(from var(--diffs-addition-base) r g b / 0.2)
|
|
613
|
+
)
|
|
614
|
+
);
|
|
615
|
+
|
|
616
|
+
--diffs-selection-base: var(--diffs-modified-base);
|
|
617
|
+
--diffs-selection-number-fg: light-dark(
|
|
618
|
+
color-mix(in lab, var(--diffs-selection-base) 65%, var(--diffs-mixer)),
|
|
619
|
+
color-mix(in lab, var(--diffs-selection-base) 75%, var(--diffs-mixer))
|
|
620
|
+
);
|
|
621
|
+
--diffs-bg-selection: var(
|
|
622
|
+
--diffs-bg-selection-override,
|
|
623
|
+
light-dark(
|
|
624
|
+
color-mix(in lab, var(--diffs-bg) 82%, var(--diffs-selection-base)),
|
|
625
|
+
color-mix(in lab, var(--diffs-bg) 75%, var(--diffs-selection-base))
|
|
626
|
+
)
|
|
627
|
+
);
|
|
628
|
+
--diffs-bg-selection-number: var(
|
|
629
|
+
--diffs-bg-selection-number-override,
|
|
630
|
+
light-dark(
|
|
631
|
+
color-mix(in lab, var(--diffs-bg) 75%, var(--diffs-selection-base)),
|
|
632
|
+
color-mix(in lab, var(--diffs-bg) 60%, var(--diffs-selection-base))
|
|
633
|
+
)
|
|
634
|
+
);
|
|
635
|
+
|
|
636
|
+
background-color: var(--diffs-bg);
|
|
637
|
+
color: var(--diffs-fg);
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
[data-diff],
|
|
641
|
+
[data-file] {
|
|
642
|
+
/* This feels a bit crazy to me... so I need to think about it a bit more... */
|
|
643
|
+
--diffs-grid-number-column-width: minmax(min-content, max-content);
|
|
644
|
+
--diffs-code-grid: var(--diffs-grid-number-column-width) 1fr;
|
|
645
|
+
|
|
646
|
+
&[data-dehydrated] {
|
|
647
|
+
--diffs-code-grid: var(--diffs-grid-number-column-width) minmax(0, 1fr);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
&[data-theme-type='light'],
|
|
651
|
+
& {
|
|
652
|
+
[data-line] span {
|
|
653
|
+
color: light-dark(
|
|
654
|
+
var(--diffs-token-light, var(--diffs-light)),
|
|
655
|
+
var(--diffs-token-dark, var(--diffs-dark))
|
|
656
|
+
);
|
|
657
|
+
font-weight: var(--diffs-token-light-font-weight, inherit);
|
|
658
|
+
font-style: var(--diffs-token-light-font-style, inherit);
|
|
659
|
+
-webkit-text-decoration: var(--diffs-token-light-text-decoration, inherit);
|
|
660
|
+
text-decoration: var(--diffs-token-light-text-decoration, inherit);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
&[data-theme-type='dark'] [data-line] span {
|
|
665
|
+
font-weight: var(--diffs-token-dark-font-weight, inherit);
|
|
666
|
+
font-style: var(--diffs-token-dark-font-style, inherit);
|
|
667
|
+
-webkit-text-decoration: var(--diffs-token-dark-text-decoration, inherit);
|
|
668
|
+
text-decoration: var(--diffs-token-dark-text-decoration, inherit);
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
&:hover [data-code]::-webkit-scrollbar-thumb {
|
|
672
|
+
background-color: var(--diffs-bg-context);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
[data-line] span {
|
|
677
|
+
background-color: light-dark(
|
|
678
|
+
var(--diffs-token-light-bg, inherit),
|
|
679
|
+
var(--diffs-token-dark-bg, inherit)
|
|
680
|
+
);
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
[data-line],
|
|
684
|
+
[data-gutter-buffer],
|
|
685
|
+
[data-line-annotation],
|
|
686
|
+
[data-no-newline] {
|
|
687
|
+
color: var(--diffs-fg);
|
|
688
|
+
background-color: var(--diffs-line-bg, var(--diffs-bg));
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
[data-no-newline] {
|
|
692
|
+
-webkit-user-select: none;
|
|
693
|
+
user-select: none;
|
|
694
|
+
|
|
695
|
+
span {
|
|
696
|
+
opacity: 0.6;
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
@media (prefers-color-scheme: dark) {
|
|
701
|
+
[data-diffs-header],
|
|
702
|
+
[data-error-wrapper],
|
|
703
|
+
[data-diff],
|
|
704
|
+
[data-file] {
|
|
705
|
+
color-scheme: dark;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
[data-content] [data-line] span {
|
|
709
|
+
font-weight: var(--diffs-token-dark-font-weight, inherit);
|
|
710
|
+
font-style: var(--diffs-token-dark-font-style, inherit);
|
|
711
|
+
-webkit-text-decoration: var(--diffs-token-dark-text-decoration, inherit);
|
|
712
|
+
text-decoration: var(--diffs-token-dark-text-decoration, inherit);
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
[data-diffs-header],
|
|
717
|
+
[data-diff],
|
|
718
|
+
[data-file] {
|
|
719
|
+
&[data-theme-type='light'] {
|
|
720
|
+
color-scheme: light;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
&[data-theme-type='dark'] {
|
|
724
|
+
color-scheme: dark;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
[data-diff-type='split'][data-overflow='scroll'] {
|
|
729
|
+
display: grid;
|
|
730
|
+
grid-template-columns: 1fr 1fr;
|
|
731
|
+
|
|
732
|
+
[data-additions] {
|
|
733
|
+
border-left: 1px solid var(--diffs-bg);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
[data-deletions] {
|
|
737
|
+
border-right: 1px solid var(--diffs-bg);
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
[data-code] {
|
|
742
|
+
display: grid;
|
|
743
|
+
grid-auto-flow: dense;
|
|
744
|
+
grid-template-columns: var(--diffs-code-grid);
|
|
745
|
+
overflow: scroll clip;
|
|
746
|
+
overscroll-behavior-x: none;
|
|
747
|
+
tab-size: var(--diffs-tab-size, 2);
|
|
748
|
+
align-self: flex-start;
|
|
749
|
+
padding-top: var(--diffs-gap-block, var(--diffs-gap-fallback));
|
|
750
|
+
padding-bottom: max(
|
|
751
|
+
0px,
|
|
752
|
+
calc(var(--diffs-gap-block, var(--diffs-gap-fallback)) - 6px)
|
|
753
|
+
);
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
[data-container-size] {
|
|
757
|
+
container-type: inline-size;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
[data-code]::-webkit-scrollbar {
|
|
761
|
+
width: 0;
|
|
762
|
+
height: 6px;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
[data-code]::-webkit-scrollbar-track {
|
|
766
|
+
background: transparent;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
[data-code]::-webkit-scrollbar-thumb {
|
|
770
|
+
background-color: transparent;
|
|
771
|
+
border: 1px solid transparent;
|
|
772
|
+
background-clip: content-box;
|
|
773
|
+
border-radius: 3px;
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
[data-code]::-webkit-scrollbar-corner {
|
|
777
|
+
background-color: transparent;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
/*
|
|
781
|
+
* If we apply these rules globally it will mean that webkit will opt into the
|
|
782
|
+
* standards compliant version of custom css scrollbars, which we do not want
|
|
783
|
+
* because the custom stuff will look better
|
|
784
|
+
*/
|
|
785
|
+
@supports (-moz-appearance: none) {
|
|
786
|
+
[data-code] {
|
|
787
|
+
scrollbar-width: thin;
|
|
788
|
+
scrollbar-color: var(--diffs-bg-context) transparent;
|
|
789
|
+
padding-bottom: var(--diffs-gap-block, var(--diffs-gap-fallback));
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
[data-diffs-header] ~ [data-diff],
|
|
794
|
+
[data-diffs-header] ~ [data-file] {
|
|
795
|
+
[data-code],
|
|
796
|
+
&[data-overflow='wrap'] {
|
|
797
|
+
padding-top: 0;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
[data-gutter] {
|
|
802
|
+
display: grid;
|
|
803
|
+
grid-template-rows: subgrid;
|
|
804
|
+
grid-template-columns: subgrid;
|
|
805
|
+
grid-column: 1;
|
|
806
|
+
z-index: 3;
|
|
807
|
+
position: relative;
|
|
808
|
+
background-color: var(--diffs-bg);
|
|
809
|
+
|
|
810
|
+
[data-gutter-buffer],
|
|
811
|
+
[data-column-number] {
|
|
812
|
+
border-right: var(--diffs-gap-style, 2px solid var(--diffs-bg));
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
[data-content] {
|
|
817
|
+
display: grid;
|
|
818
|
+
grid-template-rows: subgrid;
|
|
819
|
+
grid-template-columns: subgrid;
|
|
820
|
+
grid-column: 2;
|
|
821
|
+
min-width: 0;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
[data-diff-type='split'][data-overflow='wrap'] {
|
|
825
|
+
display: grid;
|
|
826
|
+
grid-auto-flow: dense;
|
|
827
|
+
grid-template-columns: repeat(2, var(--diffs-code-grid));
|
|
828
|
+
padding-block: var(--diffs-gap-block, var(--diffs-gap-fallback));
|
|
829
|
+
|
|
830
|
+
[data-deletions] {
|
|
831
|
+
display: contents;
|
|
832
|
+
|
|
833
|
+
[data-gutter] {
|
|
834
|
+
grid-column: 1;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
[data-content] {
|
|
838
|
+
grid-column: 2;
|
|
839
|
+
border-right: 1px solid var(--diffs-bg);
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
[data-additions] {
|
|
844
|
+
display: contents;
|
|
845
|
+
|
|
846
|
+
[data-gutter] {
|
|
847
|
+
grid-column: 3;
|
|
848
|
+
border-left: 1px solid var(--diffs-bg);
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
[data-content] {
|
|
852
|
+
grid-column: 4;
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
[data-overflow='scroll'] [data-gutter] {
|
|
858
|
+
position: sticky;
|
|
859
|
+
left: 0;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
[data-line-annotation][data-selected-line] {
|
|
863
|
+
background-color: unset;
|
|
864
|
+
|
|
865
|
+
&::before {
|
|
866
|
+
content: '';
|
|
867
|
+
/* FIXME(amadeus): This needs to be audited ... */
|
|
868
|
+
position: sticky;
|
|
869
|
+
top: 0;
|
|
870
|
+
left: 0;
|
|
871
|
+
display: block;
|
|
872
|
+
border-right: var(--diffs-gap-style, 1px solid var(--diffs-bg));
|
|
873
|
+
background-color: var(--diffs-bg-selection-number);
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
[data-annotation-content] {
|
|
877
|
+
background-color: var(--diffs-bg-selection);
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
[data-interactive-lines] [data-line] {
|
|
882
|
+
cursor: pointer;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
[data-content-buffer],
|
|
886
|
+
[data-gutter-buffer] {
|
|
887
|
+
position: relative;
|
|
888
|
+
-webkit-user-select: none;
|
|
889
|
+
user-select: none;
|
|
890
|
+
min-height: 1lh;
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
[data-gutter-buffer='annotation'] {
|
|
894
|
+
min-height: 0;
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
[data-gutter-buffer='buffer'] {
|
|
898
|
+
background-size: 8px 8px;
|
|
899
|
+
background-position: 0 0;
|
|
900
|
+
background-origin: border-box;
|
|
901
|
+
background-color: var(--diffs-bg);
|
|
902
|
+
/* This is incredibley expensive... */
|
|
903
|
+
background-image: repeating-linear-gradient(
|
|
904
|
+
-45deg,
|
|
905
|
+
transparent,
|
|
906
|
+
transparent calc(3px * 1.414),
|
|
907
|
+
rgb(from var(--diffs-bg-buffer) r g b / 0.8) calc(3px * 1.414),
|
|
908
|
+
rgb(from var(--diffs-bg-buffer) r g b / 0.8) calc(4px * 1.414)
|
|
909
|
+
);
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
[data-content-buffer] {
|
|
913
|
+
grid-column: 1;
|
|
914
|
+
/* We multiply by 1.414 (√2) to better approximate the diagonal repeat distance */
|
|
915
|
+
background-size: 8px 8px;
|
|
916
|
+
background-position: 5px 0;
|
|
917
|
+
background-origin: border-box;
|
|
918
|
+
background-color: var(--diffs-bg);
|
|
919
|
+
/* This is incredibley expensive... */
|
|
920
|
+
background-image: repeating-linear-gradient(
|
|
921
|
+
-45deg,
|
|
922
|
+
transparent,
|
|
923
|
+
transparent calc(3px * 1.414),
|
|
924
|
+
var(--diffs-bg-buffer) calc(3px * 1.414),
|
|
925
|
+
var(--diffs-bg-buffer) calc(4px * 1.414)
|
|
926
|
+
);
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
[data-separator] {
|
|
930
|
+
box-sizing: content-box;
|
|
931
|
+
background-color: var(--diffs-bg);
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
[data-separator='simple'] {
|
|
935
|
+
min-height: 4px;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
[data-separator='line-info'],
|
|
939
|
+
[data-separator='line-info-basic'],
|
|
940
|
+
[data-separator='metadata'],
|
|
941
|
+
[data-separator='simple'] {
|
|
942
|
+
background-color: var(--diffs-bg-separator);
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
[data-separator='line-info'],
|
|
946
|
+
[data-separator='line-info-basic'],
|
|
947
|
+
[data-separator='metadata'] {
|
|
948
|
+
height: 32px;
|
|
949
|
+
position: relative;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
[data-separator-wrapper] {
|
|
953
|
+
-webkit-user-select: none;
|
|
954
|
+
user-select: none;
|
|
955
|
+
fill: currentColor;
|
|
956
|
+
position: absolute;
|
|
957
|
+
inset-inline: 0;
|
|
958
|
+
display: flex;
|
|
959
|
+
align-items: center;
|
|
960
|
+
background-color: var(--diffs-bg);
|
|
961
|
+
height: 100%;
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
[data-content] [data-separator-wrapper] {
|
|
965
|
+
display: none;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
[data-separator='metadata'] [data-separator-wrapper] {
|
|
969
|
+
inset-inline: 100% auto;
|
|
970
|
+
padding-inline: 1ch;
|
|
971
|
+
height: 100%;
|
|
972
|
+
background-color: var(--diffs-bg-separator);
|
|
973
|
+
color: var(--diffs-fg-number);
|
|
974
|
+
white-space: nowrap;
|
|
975
|
+
overflow: hidden;
|
|
976
|
+
text-overflow: ellipsis;
|
|
977
|
+
min-width: min-content;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
[data-separator='line-info'] {
|
|
981
|
+
margin-block: var(--diffs-gap-block, var(--diffs-gap-fallback));
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
[data-separator='line-info-basic'],
|
|
985
|
+
[data-separator='metadata'] {
|
|
986
|
+
margin-block: 0;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
[data-separator='line-info'][data-separator-first] {
|
|
990
|
+
margin-top: 0;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
[data-separator='line-info'][data-separator-last] {
|
|
994
|
+
margin-bottom: 0;
|
|
995
|
+
}
|
|
996
|
+
|
|
997
|
+
[data-expand-index] [data-separator-wrapper] {
|
|
998
|
+
display: grid;
|
|
999
|
+
grid-template-columns: 32px auto;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
[data-expand-index] [data-separator-wrapper][data-separator-multi-button] {
|
|
1003
|
+
grid-template-columns: 32px 32px auto;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
[data-expand-button],
|
|
1007
|
+
[data-separator-content] {
|
|
1008
|
+
display: flex;
|
|
1009
|
+
flex: 0 0 auto;
|
|
1010
|
+
align-items: center;
|
|
1011
|
+
background-color: var(--diffs-bg-separator);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
[data-expand-button] {
|
|
1015
|
+
justify-content: center;
|
|
1016
|
+
flex-shrink: 0;
|
|
1017
|
+
cursor: pointer;
|
|
1018
|
+
min-width: 32px;
|
|
1019
|
+
align-self: stretch;
|
|
1020
|
+
color: var(--diffs-fg-number);
|
|
1021
|
+
border-right: 2px solid var(--diffs-bg);
|
|
1022
|
+
|
|
1023
|
+
&:hover {
|
|
1024
|
+
color: var(--diffs-fg);
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
[data-expand-down] [data-icon] {
|
|
1029
|
+
transform: scaleY(-1);
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
[data-separator-content] {
|
|
1033
|
+
flex: 1 1 auto;
|
|
1034
|
+
padding: 0 1ch;
|
|
1035
|
+
height: 100%;
|
|
1036
|
+
color: var(--diffs-fg-number);
|
|
1037
|
+
|
|
1038
|
+
overflow: hidden;
|
|
1039
|
+
justify-content: flex-start;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
[data-separator='line-info'],
|
|
1043
|
+
[data-separator='line-info-basic'] {
|
|
1044
|
+
[data-separator-content] {
|
|
1045
|
+
height: 100%;
|
|
1046
|
+
-webkit-user-select: none;
|
|
1047
|
+
user-select: none;
|
|
1048
|
+
overflow: clip;
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
@supports (width: 1cqi) {
|
|
1053
|
+
[data-unified] {
|
|
1054
|
+
[data-separator='line-info'] [data-separator-wrapper] {
|
|
1055
|
+
padding-inline: var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
1056
|
+
width: 100cqi;
|
|
1057
|
+
|
|
1058
|
+
[data-separator-content] {
|
|
1059
|
+
border-radius: 6px;
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
[data-separator='line-info'][data-expand-index]
|
|
1064
|
+
[data-separator-wrapper]
|
|
1065
|
+
[data-separator-content] {
|
|
1066
|
+
border-top-left-radius: unset;
|
|
1067
|
+
border-bottom-left-radius: unset;
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
[data-gutter] {
|
|
1072
|
+
[data-separator='line-info'] [data-separator-wrapper] {
|
|
1073
|
+
padding-left: var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
1074
|
+
}
|
|
1075
|
+
|
|
1076
|
+
[data-separator='line-info'] [data-separator-content] {
|
|
1077
|
+
border-top-left-radius: 6px;
|
|
1078
|
+
border-bottom-left-radius: 6px;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
[data-separator='line-info'][data-expand-index] [data-separator-content] {
|
|
1082
|
+
border-top-left-radius: unset;
|
|
1083
|
+
border-bottom-left-radius: unset;
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
[data-additions] {
|
|
1088
|
+
[data-content] [data-separator='line-info'] {
|
|
1089
|
+
background-color: var(--diffs-bg);
|
|
1090
|
+
|
|
1091
|
+
[data-separator-wrapper] {
|
|
1092
|
+
display: none;
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
|
|
1096
|
+
[data-gutter] [data-separator='line-info'] [data-separator-wrapper] {
|
|
1097
|
+
display: block;
|
|
1098
|
+
height: 100%;
|
|
1099
|
+
background-color: var(--diffs-bg-separator);
|
|
1100
|
+
border-top-right-radius: 6px;
|
|
1101
|
+
border-bottom-right-radius: 6px;
|
|
1102
|
+
|
|
1103
|
+
[data-separator-content],
|
|
1104
|
+
[data-expand-button] {
|
|
1105
|
+
display: none;
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
[data-overflow='scroll']
|
|
1111
|
+
[data-additions]
|
|
1112
|
+
[data-gutter]
|
|
1113
|
+
[data-separator='line-info']
|
|
1114
|
+
[data-separator-wrapper] {
|
|
1115
|
+
width: calc(100cqi - var(--diffs-gap-inline, var(--diffs-gap-fallback)));
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
[data-overflow='wrap']
|
|
1119
|
+
[data-additions]
|
|
1120
|
+
[data-content]
|
|
1121
|
+
[data-separator='line-info']
|
|
1122
|
+
[data-separator-wrapper] {
|
|
1123
|
+
background-color: var(--diffs-bg-separator);
|
|
1124
|
+
display: block;
|
|
1125
|
+
height: 100%;
|
|
1126
|
+
margin-right: var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
1127
|
+
border-top-right-radius: 6px;
|
|
1128
|
+
border-bottom-right-radius: 6px;
|
|
1129
|
+
|
|
1130
|
+
[data-separator-content],
|
|
1131
|
+
[data-expand-button] {
|
|
1132
|
+
display: none;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
[data-separator='line-info'] [data-separator-wrapper] {
|
|
1137
|
+
[data-expand-both],
|
|
1138
|
+
[data-expand-down],
|
|
1139
|
+
[data-expand-up] {
|
|
1140
|
+
border-top-left-radius: 6px;
|
|
1141
|
+
border-bottom-left-radius: 6px;
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
@media (pointer: fine) {
|
|
1146
|
+
[data-separator='line-info'] [data-separator-wrapper] {
|
|
1147
|
+
&[data-separator-multi-button] {
|
|
1148
|
+
[data-expand-up] {
|
|
1149
|
+
border-top-left-radius: 6px;
|
|
1150
|
+
border-bottom-left-radius: unset;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
[data-expand-down] {
|
|
1154
|
+
border-bottom-left-radius: 6px;
|
|
1155
|
+
border-top-left-radius: unset;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
@media (pointer: coarse) {
|
|
1163
|
+
[data-separator='line-info-basic']
|
|
1164
|
+
[data-separator-wrapper][data-separator-multi-button] {
|
|
1165
|
+
grid-template-columns: 34px 34px auto;
|
|
1166
|
+
|
|
1167
|
+
[data-separator-content] {
|
|
1168
|
+
grid-column: unset;
|
|
1169
|
+
grid-row: unset;
|
|
1170
|
+
}
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
@supports (width: 1cqi) {
|
|
1174
|
+
[data-separator='line-info'] [data-separator-wrapper] {
|
|
1175
|
+
[data-expand-both],
|
|
1176
|
+
[data-expand-down],
|
|
1177
|
+
[data-expand-up] {
|
|
1178
|
+
border-top-left-radius: 6px;
|
|
1179
|
+
border-bottom-left-radius: 6px;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
&[data-separator-multi-button] {
|
|
1183
|
+
[data-expand-up] {
|
|
1184
|
+
border-top-left-radius: 6px;
|
|
1185
|
+
border-bottom-left-radius: 6px;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
[data-expand-down] {
|
|
1189
|
+
border-bottom-left-radius: unset;
|
|
1190
|
+
border-top-left-radius: unset;
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
@media (pointer: fine) {
|
|
1198
|
+
[data-separator-wrapper][data-separator-multi-button] {
|
|
1199
|
+
display: grid;
|
|
1200
|
+
grid-template-rows: 50% 50%;
|
|
1201
|
+
|
|
1202
|
+
[data-separator-content] {
|
|
1203
|
+
grid-column: 2;
|
|
1204
|
+
grid-row: 1 / -1;
|
|
1205
|
+
min-width: min-content;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
[data-expand-button] {
|
|
1209
|
+
grid-column: 1;
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
[data-separator='line-info'] [data-separator-wrapper],
|
|
1214
|
+
[data-separator='line-info']
|
|
1215
|
+
[data-separator-wrapper][data-separator-multi-button] {
|
|
1216
|
+
grid-template-columns: 34px auto;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
[data-separator='line-info-basic'][data-expand-index]
|
|
1220
|
+
[data-separator-wrapper] {
|
|
1221
|
+
grid-template-columns: 100% auto;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
[data-separator='line-info'],
|
|
1225
|
+
[data-separator='line-info-basic'] {
|
|
1226
|
+
[data-separator-multi-button] {
|
|
1227
|
+
[data-expand-up] {
|
|
1228
|
+
border-bottom: 1px solid var(--diffs-bg);
|
|
1229
|
+
border-right: 2px solid var(--diffs-bg);
|
|
1230
|
+
}
|
|
1231
|
+
[data-expand-down] {
|
|
1232
|
+
border-top: 1px solid var(--diffs-bg);
|
|
1233
|
+
border-right: 2px solid var(--diffs-bg);
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
[data-additions] [data-gutter] [data-separator-wrapper],
|
|
1240
|
+
[data-additions] [data-separator='line-info-basic'] [data-separator-wrapper],
|
|
1241
|
+
[data-content] [data-separator-wrapper] {
|
|
1242
|
+
display: none;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
[data-line-annotation],
|
|
1246
|
+
[data-gutter-buffer='annotation'] {
|
|
1247
|
+
--diffs-line-bg: var(--diffs-bg-context);
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
[data-merge-conflict-actions],
|
|
1251
|
+
[data-gutter-buffer='merge-conflict-action'] {
|
|
1252
|
+
--diffs-line-bg: var(--diffs-bg-context);
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
[data-has-merge-conflict] [data-line-annotation],
|
|
1256
|
+
[data-has-merge-conflict] [data-gutter-buffer='annotation'] {
|
|
1257
|
+
--diffs-line-bg: var(--diffs-bg);
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
[data-has-merge-conflict] [data-gutter-buffer='merge-conflict-action'] {
|
|
1261
|
+
--diffs-line-bg: var(--diffs-bg);
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
[data-line-annotation] {
|
|
1265
|
+
min-height: var(--diffs-annotation-min-height, 0);
|
|
1266
|
+
z-index: 2;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
[data-merge-conflict-actions] {
|
|
1270
|
+
z-index: 2;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
[data-separator='custom'] {
|
|
1274
|
+
display: grid;
|
|
1275
|
+
grid-template-columns: subgrid;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
[data-line],
|
|
1279
|
+
[data-column-number],
|
|
1280
|
+
[data-no-newline] {
|
|
1281
|
+
position: relative;
|
|
1282
|
+
padding-inline: 1ch;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
[data-indicators='classic'] [data-line] {
|
|
1286
|
+
padding-inline-start: 2ch;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
[data-indicators='classic'] {
|
|
1290
|
+
[data-line-type='change-addition'],
|
|
1291
|
+
[data-line-type='change-deletion'] {
|
|
1292
|
+
&[data-no-newline],
|
|
1293
|
+
&[data-line] {
|
|
1294
|
+
&::before {
|
|
1295
|
+
display: inline-block;
|
|
1296
|
+
width: 1ch;
|
|
1297
|
+
height: 1lh;
|
|
1298
|
+
position: absolute;
|
|
1299
|
+
top: 0;
|
|
1300
|
+
left: 0;
|
|
1301
|
+
-webkit-user-select: none;
|
|
1302
|
+
user-select: none;
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
[data-line-type='change-addition'] {
|
|
1308
|
+
&[data-line],
|
|
1309
|
+
&[data-no-newline] {
|
|
1310
|
+
&::before {
|
|
1311
|
+
content: '+';
|
|
1312
|
+
color: var(--diffs-addition-base);
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
[data-line-type='change-deletion'] {
|
|
1318
|
+
&[data-line],
|
|
1319
|
+
&[data-no-newline] {
|
|
1320
|
+
&::before {
|
|
1321
|
+
content: '-';
|
|
1322
|
+
color: var(--diffs-deletion-base);
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
[data-indicators='bars'] {
|
|
1329
|
+
[data-line-type='change-deletion'],
|
|
1330
|
+
[data-line-type='change-addition'] {
|
|
1331
|
+
&[data-column-number] {
|
|
1332
|
+
&::before {
|
|
1333
|
+
content: '';
|
|
1334
|
+
display: block;
|
|
1335
|
+
width: 4px;
|
|
1336
|
+
height: 100%;
|
|
1337
|
+
position: absolute;
|
|
1338
|
+
top: 0;
|
|
1339
|
+
left: 0;
|
|
1340
|
+
-webkit-user-select: none;
|
|
1341
|
+
user-select: none;
|
|
1342
|
+
contain: strict;
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
[data-line-type='change-deletion'] {
|
|
1348
|
+
&[data-column-number] {
|
|
1349
|
+
&::before {
|
|
1350
|
+
background-image: linear-gradient(
|
|
1351
|
+
0deg,
|
|
1352
|
+
var(--diffs-bg-deletion) 50%,
|
|
1353
|
+
var(--diffs-deletion-base) 50%
|
|
1354
|
+
);
|
|
1355
|
+
background-repeat: repeat;
|
|
1356
|
+
background-size: 2px 2px;
|
|
1357
|
+
background-size: calc(1lh / round(1lh / 2px))
|
|
1358
|
+
calc(1lh / round(1lh / 2px));
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
[data-line-type='change-addition'] {
|
|
1364
|
+
&[data-column-number] {
|
|
1365
|
+
&::before {
|
|
1366
|
+
background-color: var(--diffs-addition-base);
|
|
1367
|
+
}
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
[data-overflow='wrap'] {
|
|
1373
|
+
[data-line],
|
|
1374
|
+
[data-annotation-content] {
|
|
1375
|
+
white-space: pre-wrap;
|
|
1376
|
+
word-break: break-word;
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
[data-overflow='scroll'] [data-line] {
|
|
1381
|
+
white-space: pre;
|
|
1382
|
+
min-height: 1lh;
|
|
1383
|
+
}
|
|
1384
|
+
|
|
1385
|
+
[data-column-number] {
|
|
1386
|
+
box-sizing: content-box;
|
|
1387
|
+
text-align: right;
|
|
1388
|
+
-webkit-user-select: none;
|
|
1389
|
+
user-select: none;
|
|
1390
|
+
background-color: var(--diffs-bg);
|
|
1391
|
+
color: var(--diffs-fg-number);
|
|
1392
|
+
padding-left: 2ch;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
[data-line-number-content] {
|
|
1396
|
+
display: inline-block;
|
|
1397
|
+
min-width: var(
|
|
1398
|
+
--diffs-min-number-column-width,
|
|
1399
|
+
var(--diffs-min-number-column-width-default, 3ch)
|
|
1400
|
+
);
|
|
1401
|
+
}
|
|
1402
|
+
|
|
1403
|
+
[data-disable-line-numbers] {
|
|
1404
|
+
[data-column-number] {
|
|
1405
|
+
min-width: 4px;
|
|
1406
|
+
padding: 0;
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
[data-line-number-content] {
|
|
1410
|
+
display: none;
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
[data-gutter-utility-slot] {
|
|
1414
|
+
right: unset;
|
|
1415
|
+
left: 0;
|
|
1416
|
+
justify-content: flex-start;
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1419
|
+
&[data-indicators='bars'] [data-gutter-utility-slot] {
|
|
1420
|
+
/* Using 5px here because theres a 1px separator after the bar */
|
|
1421
|
+
left: 5px;
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
[data-file][data-disable-line-numbers] {
|
|
1426
|
+
[data-gutter-buffer],
|
|
1427
|
+
[data-column-number] {
|
|
1428
|
+
min-width: 0;
|
|
1429
|
+
border-right: 0;
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
[data-interactive-line-numbers] [data-column-number] {
|
|
1434
|
+
cursor: pointer;
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
[data-diff-span] {
|
|
1438
|
+
border-radius: 3px;
|
|
1439
|
+
-webkit-box-decoration-break: clone;
|
|
1440
|
+
box-decoration-break: clone;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
[data-line-type='change-addition'] {
|
|
1444
|
+
&[data-column-number] {
|
|
1445
|
+
color: var(
|
|
1446
|
+
--diffs-fg-number-addition-override,
|
|
1447
|
+
var(--diffs-addition-base)
|
|
1448
|
+
);
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
> [data-diff-span] {
|
|
1452
|
+
background-color: var(--diffs-bg-addition-emphasis);
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
[data-line-type='change-deletion'] {
|
|
1457
|
+
&[data-column-number] {
|
|
1458
|
+
color: var(
|
|
1459
|
+
--diffs-fg-number-deletion-override,
|
|
1460
|
+
var(--diffs-deletion-base)
|
|
1461
|
+
);
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
[data-diff-span] {
|
|
1465
|
+
background-color: var(--diffs-bg-deletion-emphasis);
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
[data-background] [data-line-type='change-addition'] {
|
|
1470
|
+
--diffs-line-bg: var(--diffs-bg-addition);
|
|
1471
|
+
|
|
1472
|
+
&[data-column-number] {
|
|
1473
|
+
background-color: var(--diffs-bg-addition-number);
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
[data-background] [data-line-type='change-deletion'] {
|
|
1478
|
+
--diffs-line-bg: var(--diffs-bg-deletion);
|
|
1479
|
+
|
|
1480
|
+
&[data-column-number] {
|
|
1481
|
+
background-color: var(--diffs-bg-deletion-number);
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
[data-merge-conflict^='marker-'][data-line] {
|
|
1486
|
+
&[data-line-type='context'],
|
|
1487
|
+
&[data-line-type='context-expanded'] {
|
|
1488
|
+
color: var(--diffs-fg);
|
|
1489
|
+
|
|
1490
|
+
span {
|
|
1491
|
+
color: var(--diffs-fg) !important;
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
[data-merge-conflict='marker-start'][data-line] {
|
|
1497
|
+
&[data-line-type='context'],
|
|
1498
|
+
&[data-line-type='context-expanded'] {
|
|
1499
|
+
&::after {
|
|
1500
|
+
content: ' (Current Change)';
|
|
1501
|
+
color: var(--diffs-fg-conflict-marker);
|
|
1502
|
+
opacity: 1;
|
|
1503
|
+
font-style: normal;
|
|
1504
|
+
font-family: var(
|
|
1505
|
+
--diffs-header-font-family,
|
|
1506
|
+
var(--diffs-header-font-fallback)
|
|
1507
|
+
);
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
[data-merge-conflict='marker-end'][data-line] {
|
|
1513
|
+
&[data-line-type='context'],
|
|
1514
|
+
&[data-line-type='context-expanded'] {
|
|
1515
|
+
&::after {
|
|
1516
|
+
content: ' (Incoming Change)';
|
|
1517
|
+
color: var(--diffs-fg-conflict-marker);
|
|
1518
|
+
opacity: 1;
|
|
1519
|
+
font-style: normal;
|
|
1520
|
+
font-family: var(
|
|
1521
|
+
--diffs-header-font-family,
|
|
1522
|
+
var(--diffs-header-font-fallback)
|
|
1523
|
+
);
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
[data-merge-conflict='marker-start'],
|
|
1529
|
+
[data-merge-conflict='marker-base'],
|
|
1530
|
+
[data-merge-conflict='marker-separator'],
|
|
1531
|
+
[data-merge-conflict='marker-end'] {
|
|
1532
|
+
&[data-line],
|
|
1533
|
+
&[data-no-newline] {
|
|
1534
|
+
background-color: var(--diffs-bg-conflict-marker);
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
&[data-column-number] {
|
|
1538
|
+
background-color: var(--diffs-bg-conflict-marker-number);
|
|
1539
|
+
color: var(--diffs-fg-conflict-marker);
|
|
1540
|
+
|
|
1541
|
+
[data-line-number-content] {
|
|
1542
|
+
color: var(--diffs-fg-conflict-marker);
|
|
1543
|
+
}
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
[data-merge-conflict='current'] {
|
|
1548
|
+
&[data-line],
|
|
1549
|
+
&[data-no-newline] {
|
|
1550
|
+
background-color: var(--conflict-bg-current);
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
&[data-column-number] {
|
|
1554
|
+
background-color: var(--conflict-bg-current-number);
|
|
1555
|
+
color: var(--diffs-addition-base);
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
[data-merge-conflict='marker-start'] {
|
|
1560
|
+
&[data-line],
|
|
1561
|
+
&[data-no-newline] {
|
|
1562
|
+
background-color: var(--conflict-bg-current-header);
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
&[data-column-number] {
|
|
1566
|
+
background-color: var(--conflict-bg-current-header-number);
|
|
1567
|
+
color: var(--diffs-addition-base);
|
|
1568
|
+
|
|
1569
|
+
[data-line-number-content] {
|
|
1570
|
+
color: var(--diffs-addition-base);
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
[data-merge-conflict='marker-end'] {
|
|
1576
|
+
&[data-line],
|
|
1577
|
+
&[data-no-newline] {
|
|
1578
|
+
background-color: var(--conflict-bg-incoming-header);
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
&[data-column-number] {
|
|
1582
|
+
background-color: var(--conflict-bg-incoming-header-number);
|
|
1583
|
+
color: var(--diffs-modified-base);
|
|
1584
|
+
|
|
1585
|
+
[data-line-number-content] {
|
|
1586
|
+
color: var(--diffs-modified-base);
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
[data-merge-conflict='marker-separator'] {
|
|
1592
|
+
&[data-line],
|
|
1593
|
+
&[data-no-newline] {
|
|
1594
|
+
background-color: var(--diffs-bg);
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
&[data-column-number] {
|
|
1598
|
+
background-color: var(--diffs-bg);
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
[data-merge-conflict='base'] {
|
|
1603
|
+
&[data-line],
|
|
1604
|
+
&[data-no-newline] {
|
|
1605
|
+
background-color: var(--diffs-bg-conflict-base);
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
&[data-column-number] {
|
|
1609
|
+
background-color: var(--diffs-bg-conflict-base-number);
|
|
1610
|
+
color: var(--diffs-modified-base);
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
[data-merge-conflict='incoming'] {
|
|
1615
|
+
&[data-line],
|
|
1616
|
+
&[data-no-newline] {
|
|
1617
|
+
background-color: var(--conflict-bg-incoming);
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
&[data-column-number] {
|
|
1621
|
+
background-color: var(--conflict-bg-incoming-number);
|
|
1622
|
+
color: var(--diffs-modified-base);
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
@media (pointer: fine) {
|
|
1627
|
+
[data-column-number],
|
|
1628
|
+
[data-line] {
|
|
1629
|
+
&[data-hovered] {
|
|
1630
|
+
background-color: var(--diffs-bg-hover);
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
[data-background] {
|
|
1635
|
+
[data-column-number],
|
|
1636
|
+
[data-line] {
|
|
1637
|
+
&[data-hovered] {
|
|
1638
|
+
&[data-line-type='change-deletion'] {
|
|
1639
|
+
background-color: var(--diffs-bg-deletion-hover);
|
|
1640
|
+
}
|
|
1641
|
+
|
|
1642
|
+
&[data-line-type='change-addition'] {
|
|
1643
|
+
background-color: var(--diffs-bg-addition-hover);
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1650
|
+
[data-diffs-header] {
|
|
1651
|
+
position: relative;
|
|
1652
|
+
display: flex;
|
|
1653
|
+
flex-direction: row;
|
|
1654
|
+
justify-content: space-between;
|
|
1655
|
+
align-items: center;
|
|
1656
|
+
gap: var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
1657
|
+
min-height: calc(
|
|
1658
|
+
1lh + (var(--diffs-gap-block, var(--diffs-gap-fallback)) * 3)
|
|
1659
|
+
);
|
|
1660
|
+
padding-inline: 16px;
|
|
1661
|
+
top: 0;
|
|
1662
|
+
z-index: 2;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
[data-header-content] {
|
|
1666
|
+
display: flex;
|
|
1667
|
+
flex-direction: row;
|
|
1668
|
+
align-items: center;
|
|
1669
|
+
gap: var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
1670
|
+
min-width: 0;
|
|
1671
|
+
white-space: nowrap;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
[data-header-content] [data-prev-name],
|
|
1675
|
+
[data-header-content] [data-title] {
|
|
1676
|
+
direction: rtl;
|
|
1677
|
+
overflow: hidden;
|
|
1678
|
+
text-overflow: ellipsis;
|
|
1679
|
+
min-width: 0;
|
|
1680
|
+
white-space: nowrap;
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
[data-prev-name] {
|
|
1684
|
+
opacity: 0.7;
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
[data-rename-icon] {
|
|
1688
|
+
fill: currentColor;
|
|
1689
|
+
flex-shrink: 0;
|
|
1690
|
+
flex-grow: 0;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
[data-diffs-header] [data-metadata] {
|
|
1694
|
+
display: flex;
|
|
1695
|
+
align-items: center;
|
|
1696
|
+
gap: 1ch;
|
|
1697
|
+
white-space: nowrap;
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
[data-diffs-header] [data-additions-count] {
|
|
1701
|
+
font-family: var(--diffs-font-family, var(--diffs-font-fallback));
|
|
1702
|
+
color: var(--diffs-addition-base);
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
[data-diffs-header] [data-deletions-count] {
|
|
1706
|
+
font-family: var(--diffs-font-family, var(--diffs-font-fallback));
|
|
1707
|
+
color: var(--diffs-deletion-base);
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
[data-annotation-content] {
|
|
1711
|
+
position: relative;
|
|
1712
|
+
display: flow-root;
|
|
1713
|
+
align-self: flex-start;
|
|
1714
|
+
z-index: 2;
|
|
1715
|
+
min-width: 0;
|
|
1716
|
+
isolation: isolate;
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
[data-merge-conflict-actions-content] {
|
|
1720
|
+
display: flex;
|
|
1721
|
+
align-items: center;
|
|
1722
|
+
gap: 0.25rem;
|
|
1723
|
+
padding-inline: 0.5rem;
|
|
1724
|
+
min-height: 1.75rem;
|
|
1725
|
+
font-family: var(
|
|
1726
|
+
--diffs-header-font-family,
|
|
1727
|
+
var(--diffs-header-font-fallback)
|
|
1728
|
+
);
|
|
1729
|
+
font-size: 0.75rem;
|
|
1730
|
+
line-height: 1.2;
|
|
1731
|
+
color: var(--diffs-fg);
|
|
1732
|
+
}
|
|
1733
|
+
|
|
1734
|
+
[data-merge-conflict-action] {
|
|
1735
|
+
appearance: none;
|
|
1736
|
+
border: 0;
|
|
1737
|
+
background: transparent;
|
|
1738
|
+
color: var(--diffs-fg-number);
|
|
1739
|
+
font: inherit;
|
|
1740
|
+
font-style: normal;
|
|
1741
|
+
cursor: pointer;
|
|
1742
|
+
padding: 0;
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
[data-merge-conflict-action]:hover {
|
|
1746
|
+
color: var(--diffs-fg);
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
[data-merge-conflict-action='current']:hover {
|
|
1750
|
+
color: var(--diffs-addition-base);
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
[data-merge-conflict-action='incoming']:hover {
|
|
1754
|
+
color: var(--diffs-modified-base);
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
[data-merge-conflict-action-separator] {
|
|
1758
|
+
color: var(--diffs-fg-number);
|
|
1759
|
+
opacity: 0.6;
|
|
1760
|
+
-webkit-user-select: none;
|
|
1761
|
+
user-select: none;
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
/* Sticky positioning has a composite costs, so we should _only_ pay it if we
|
|
1765
|
+
* need to */
|
|
1766
|
+
[data-overflow='scroll'] [data-annotation-content] {
|
|
1767
|
+
position: sticky;
|
|
1768
|
+
width: var(--diffs-column-content-width, auto);
|
|
1769
|
+
left: var(--diffs-column-number-width, 0);
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
[data-overflow='scroll'] [data-merge-conflict-actions-content] {
|
|
1773
|
+
position: sticky;
|
|
1774
|
+
width: var(--diffs-column-content-width, auto);
|
|
1775
|
+
left: var(--diffs-column-number-width, 0);
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
/* Undo some of the stuff that the 'pre' tag does */
|
|
1779
|
+
[data-annotation-slot] {
|
|
1780
|
+
text-wrap-mode: wrap;
|
|
1781
|
+
word-break: normal;
|
|
1782
|
+
white-space-collapse: collapse;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
[data-change-icon] {
|
|
1786
|
+
fill: currentColor;
|
|
1787
|
+
flex-shrink: 0;
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
[data-change-icon='change'],
|
|
1791
|
+
[data-change-icon='rename-pure'],
|
|
1792
|
+
[data-change-icon='rename-changed'] {
|
|
1793
|
+
color: var(--diffs-modified-base);
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
[data-change-icon='new'] {
|
|
1797
|
+
color: var(--diffs-addition-base);
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
[data-change-icon='deleted'] {
|
|
1801
|
+
color: var(--diffs-deletion-base);
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
[data-change-icon='file'] {
|
|
1805
|
+
opacity: 0.6;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
/* Line selection highlighting */
|
|
1809
|
+
[data-selected-line] {
|
|
1810
|
+
&[data-gutter-buffer='annotation'],
|
|
1811
|
+
&[data-column-number] {
|
|
1812
|
+
color: var(--diffs-selection-number-fg);
|
|
1813
|
+
background-color: var(--diffs-bg-selection-number);
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
&[data-line] {
|
|
1817
|
+
background-color: var(--diffs-bg-selection);
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
[data-line-type='change-addition'],
|
|
1822
|
+
[data-line-type='change-deletion'] {
|
|
1823
|
+
&[data-selected-line] {
|
|
1824
|
+
&[data-line],
|
|
1825
|
+
&[data-line][data-hovered] {
|
|
1826
|
+
background-color: light-dark(
|
|
1827
|
+
color-mix(
|
|
1828
|
+
in lab,
|
|
1829
|
+
var(--diffs-line-bg, var(--diffs-bg)) 82%,
|
|
1830
|
+
var(--diffs-selection-base)
|
|
1831
|
+
),
|
|
1832
|
+
color-mix(
|
|
1833
|
+
in lab,
|
|
1834
|
+
var(--diffs-line-bg, var(--diffs-bg)) 75%,
|
|
1835
|
+
var(--diffs-selection-base)
|
|
1836
|
+
)
|
|
1837
|
+
);
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
&[data-column-number],
|
|
1841
|
+
&[data-column-number][data-hovered] {
|
|
1842
|
+
color: var(--diffs-selection-number-fg);
|
|
1843
|
+
background-color: light-dark(
|
|
1844
|
+
color-mix(
|
|
1845
|
+
in lab,
|
|
1846
|
+
var(--diffs-line-bg, var(--diffs-bg)) 75%,
|
|
1847
|
+
var(--diffs-selection-base)
|
|
1848
|
+
),
|
|
1849
|
+
color-mix(
|
|
1850
|
+
in lab,
|
|
1851
|
+
var(--diffs-line-bg, var(--diffs-bg)) 60%,
|
|
1852
|
+
var(--diffs-selection-base)
|
|
1853
|
+
)
|
|
1854
|
+
);
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
[data-gutter-utility-slot] {
|
|
1860
|
+
position: absolute;
|
|
1861
|
+
top: 0;
|
|
1862
|
+
bottom: 0;
|
|
1863
|
+
right: 0;
|
|
1864
|
+
display: flex;
|
|
1865
|
+
justify-content: flex-end;
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
[data-unmodified-lines] {
|
|
1869
|
+
display: block;
|
|
1870
|
+
overflow: hidden;
|
|
1871
|
+
min-width: 0;
|
|
1872
|
+
text-overflow: ellipsis;
|
|
1873
|
+
white-space: nowrap;
|
|
1874
|
+
flex: 0 1 auto;
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
[data-error-wrapper] {
|
|
1878
|
+
overflow: auto;
|
|
1879
|
+
padding: var(--diffs-gap-block, var(--diffs-gap-fallback))
|
|
1880
|
+
var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
1881
|
+
max-height: 400px;
|
|
1882
|
+
scrollbar-width: none;
|
|
1883
|
+
|
|
1884
|
+
[data-error-message] {
|
|
1885
|
+
font-weight: bold;
|
|
1886
|
+
font-size: 18px;
|
|
1887
|
+
color: var(--diffs-deletion-base);
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
[data-error-stack] {
|
|
1891
|
+
color: var(--diffs-fg-number);
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
[data-placeholder] {
|
|
1896
|
+
contain: strict;
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
[data-utility-button] {
|
|
1900
|
+
display: flex;
|
|
1901
|
+
align-items: center;
|
|
1902
|
+
justify-content: center;
|
|
1903
|
+
border: none;
|
|
1904
|
+
appearance: none;
|
|
1905
|
+
width: 1lh;
|
|
1906
|
+
height: 1lh;
|
|
1907
|
+
margin-right: calc((1lh - 1ch) * -1);
|
|
1908
|
+
padding: 0;
|
|
1909
|
+
cursor: pointer;
|
|
1910
|
+
font-size: var(--diffs-font-size, 13px);
|
|
1911
|
+
line-height: var(--diffs-line-height, 20px);
|
|
1912
|
+
border-radius: 4px;
|
|
1913
|
+
background-color: var(--diffs-modified-base);
|
|
1914
|
+
color: var(--diffs-bg);
|
|
1915
|
+
fill: currentColor;
|
|
1916
|
+
position: relative;
|
|
1917
|
+
z-index: 4;
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
1920
|
+
`;const xO="@layer base, theme, unsafe;";function EO(e){return`${xO}
|
|
1921
|
+
@layer unsafe {
|
|
1922
|
+
${e}
|
|
1923
|
+
}`}function Df({code:e,pre:n,columnType:r,rowSpan:a,containerSize:l=!1}={}){return e==null&&(e=document.createElement("code"),e.setAttribute("data-code",""),r!=null&&e.setAttribute(`data-${r}`,""),n?.appendChild(e)),a!=null?e.style.setProperty("grid-row",`span ${a}`):e.style.removeProperty("grid-row"),l?e.setAttribute("data-container-size",""):e.removeAttribute("data-container-size"),e}function wO(e,n){if(n==null)return;const r=e.shadowRoot??e.attachShadow({mode:"open"});r.innerHTML===""&&(r.innerHTML=n)}function CO(e,{type:n,diffIndicators:r,disableBackground:a,disableLineNumbers:l,overflow:u,split:c,themeStyles:d,themeType:f,totalLines:m,customProperties:g}){if(g!=null)for(const v in g){const b=g[v];b!=null&&e.setAttribute(v,`${b}`)}switch(n==="diff"?(e.setAttribute("data-diff",""),e.removeAttribute("data-file")):(e.setAttribute("data-file",""),e.removeAttribute("data-diff")),f==="system"?e.removeAttribute("data-theme-type"):e.setAttribute("data-theme-type",f),r){case"bars":case"classic":e.setAttribute("data-indicators",r);break;case"none":e.removeAttribute("data-indicators");break}return l?e.setAttribute("data-disable-line-numbers",""):e.removeAttribute("data-disable-line-numbers"),a?e.removeAttribute("data-background"):e.setAttribute("data-background",""),n==="diff"?e.setAttribute("data-diff-type",c?"split":"single"):e.removeAttribute("data-diff-type"),e.setAttribute("data-overflow",u),e.tabIndex=0,e.style=d,e.style.setProperty("--diffs-min-number-column-width-default",`${`${m}`.length}ch`),e}if(typeof HTMLElement<"u"&&customElements.get(vu)==null){let e;class n extends HTMLElement{constructor(){if(super(),this.shadowRoot!=null)return;const a=this.attachShadow({mode:"open"});e==null&&(e=new CSSStyleSheet,e.replaceSync(SO)),a.adoptedStyleSheets=[e]}}customElements.define(vu,n)}const AO=!0;var kO=class{isDeletionsScrolling=!1;isAdditionsScrolling=!1;timeoutId=-1;codeDeletions;codeAdditions;enabled=!1;cleanUp(){this.enabled&&(this.codeDeletions?.removeEventListener("scroll",this.handleDeletionsScroll),this.codeAdditions?.removeEventListener("scroll",this.handleAdditionsScroll),clearTimeout(this.timeoutId),this.codeDeletions=void 0,this.codeAdditions=void 0,this.enabled=!1)}setup(e,n,r){if(n==null||r==null)for(const a of e.children??[])a instanceof HTMLElement&&("deletions"in a.dataset?n=a:"additions"in a.dataset&&(r=a));if(r==null||n==null){this.cleanUp();return}this.codeDeletions!==n&&(this.codeDeletions?.removeEventListener("scroll",this.handleDeletionsScroll),this.codeDeletions=n,n.addEventListener("scroll",this.handleDeletionsScroll,{passive:!0})),this.codeAdditions!==r&&(this.codeAdditions?.removeEventListener("scroll",this.handleAdditionsScroll),this.codeAdditions=r,r.addEventListener("scroll",this.handleAdditionsScroll,{passive:!0})),this.enabled=!0}handleDeletionsScroll=()=>{this.isAdditionsScrolling||(this.isDeletionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isDeletionsScrolling=!1},300),this.codeAdditions?.scrollTo({left:this.codeDeletions?.scrollLeft}))};handleAdditionsScroll=()=>{this.isDeletionsScrolling||(this.isAdditionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isAdditionsScrolling=!1},300),this.codeDeletions?.scrollTo({left:this.codeAdditions?.scrollLeft}))}};function Ks(e){return Ne({tagName:"div",properties:{"data-content-buffer":"","data-buffer-size":e,style:`grid-row: span ${e};min-height:calc(${e} * 1lh)`}})}function Js(e){return Ne({tagName:"div",children:[Ne({tagName:"span",children:[yi("No newline at end of file")]})],properties:{"data-no-newline":"","data-line-type":e,"data-column-content":""}})}function zf(e){return Ne({tagName:"div",children:[bu({name:e==="both"?"diffs-icon-expand-all":"diffs-icon-expand",properties:{"data-icon":""}})],properties:{"data-expand-button":"","data-expand-both":e==="both"?"":void 0,"data-expand-up":e==="up"?"":void 0,"data-expand-down":e==="down"?"":void 0}})}function Da({type:e,content:n,expandIndex:r,chunked:a=!1,slotName:l,isFirstHunk:u,isLastHunk:c}){const d=[];if(e==="metadata"&&n!=null&&d.push(Ne({tagName:"div",children:[yi(n)],properties:{"data-separator-wrapper":""}})),(e==="line-info"||e==="line-info-basic")&&n!=null){const f=[];r!=null&&(a?(u||f.push(zf("up")),c||f.push(zf("down"))):f.push(zf(!u&&!c?"both":u?"down":"up"))),f.push(Ne({tagName:"div",children:[Ne({tagName:"span",children:[yi(n)],properties:{"data-unmodified-lines":""}})],properties:{"data-separator-content":""}})),d.push(Ne({tagName:"div",children:f,properties:{"data-separator-wrapper":"","data-separator-multi-button":f.length>2?"":void 0}}))}return e==="custom"&&l!=null&&d.push(Ne({tagName:"slot",properties:{name:l}})),Ne({tagName:"div",children:d,properties:{"data-separator":d.length===0?"simple":e,"data-expand-index":r,"data-separator-first":u?"":void 0,"data-separator-last":c?"":void 0}})}function TO(e,n){return`hunk-separator-${e}-${n}`}function LO(e){const n=e.at(-1);return n==null?0:Math.max(n.additionStart+n.additionCount,n.deletionStart+n.deletionCount)}function RO(e){return e.startingLine===0&&e.totalLines===1/0&&e.bufferBefore===0&&e.bufferAfter===0}class rp{diff(n,r,a={}){let l;typeof a=="function"?(l=a,a={}):"callback"in a&&(l=a.callback);const u=this.castInput(n,a),c=this.castInput(r,a),d=this.removeEmpty(this.tokenize(u,a)),f=this.removeEmpty(this.tokenize(c,a));return this.diffWithOptionsObj(d,f,a,l)}diffWithOptionsObj(n,r,a,l){var u;const c=C=>{if(C=this.postProcess(C,a),l){setTimeout(function(){l(C)},0);return}else return C},d=r.length,f=n.length;let m=1,g=d+f;a.maxEditLength!=null&&(g=Math.min(g,a.maxEditLength));const v=(u=a.timeout)!==null&&u!==void 0?u:1/0,b=Date.now()+v,_=[{oldPos:-1,lastComponent:void 0}];let S=this.extractCommon(_[0],r,n,0,a);if(_[0].oldPos+1>=f&&S+1>=d)return c(this.buildValues(_[0].lastComponent,r,n));let E=-1/0,L=1/0;const w=()=>{for(let C=Math.max(E,-m);C<=Math.min(L,m);C+=2){let A;const R=_[C-1],T=_[C+1];R&&(_[C-1]=void 0);let P=!1;if(T){const I=T.oldPos-C;P=T&&0<=I&&I<d}const H=R&&R.oldPos+1<f;if(!P&&!H){_[C]=void 0;continue}if(!H||P&&R.oldPos<T.oldPos?A=this.addToPath(T,!0,!1,0,a):A=this.addToPath(R,!1,!0,1,a),S=this.extractCommon(A,r,n,C,a),A.oldPos+1>=f&&S+1>=d)return c(this.buildValues(A.lastComponent,r,n))||!0;_[C]=A,A.oldPos+1>=f&&(L=Math.min(L,C-1)),S+1>=d&&(E=Math.max(E,C+1))}m++};if(l)(function C(){setTimeout(function(){if(m>g||Date.now()>b)return l(void 0);w()||C()},0)})();else for(;m<=g&&Date.now()<=b;){const C=w();if(C)return C}}addToPath(n,r,a,l,u){const c=n.lastComponent;return c&&!u.oneChangePerToken&&c.added===r&&c.removed===a?{oldPos:n.oldPos+l,lastComponent:{count:c.count+1,added:r,removed:a,previousComponent:c.previousComponent}}:{oldPos:n.oldPos+l,lastComponent:{count:1,added:r,removed:a,previousComponent:c}}}extractCommon(n,r,a,l,u){const c=r.length,d=a.length;let f=n.oldPos,m=f-l,g=0;for(;m+1<c&&f+1<d&&this.equals(a[f+1],r[m+1],u);)m++,f++,g++,u.oneChangePerToken&&(n.lastComponent={count:1,previousComponent:n.lastComponent,added:!1,removed:!1});return g&&!u.oneChangePerToken&&(n.lastComponent={count:g,previousComponent:n.lastComponent,added:!1,removed:!1}),n.oldPos=f,m}equals(n,r,a){return a.comparator?a.comparator(n,r):n===r||!!a.ignoreCase&&n.toLowerCase()===r.toLowerCase()}removeEmpty(n){const r=[];for(let a=0;a<n.length;a++)n[a]&&r.push(n[a]);return r}castInput(n,r){return n}tokenize(n,r){return Array.from(n)}join(n){return n.join("")}postProcess(n,r){return n}get useLongestToken(){return!1}buildValues(n,r,a){const l=[];let u;for(;n;)l.push(n),u=n.previousComponent,delete n.previousComponent,n=u;l.reverse();const c=l.length;let d=0,f=0,m=0;for(;d<c;d++){const g=l[d];if(g.removed)g.value=this.join(a.slice(m,m+g.count)),m+=g.count;else{if(!g.added&&this.useLongestToken){let v=r.slice(f,f+g.count);v=v.map(function(b,_){const S=a[m+_];return S.length>b.length?S:b}),g.value=this.join(v)}else g.value=this.join(r.slice(f,f+g.count));f+=g.count,g.added||(m+=g.count)}}return l}}class NO extends rp{}const OO=new NO;function MO(e,n,r){return OO.diff(e,n,r)}const iy="a-zA-Z0-9_\\u{AD}\\u{C0}-\\u{D6}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}";class DO extends rp{tokenize(n){const r=new RegExp(`(\\r?\\n)|[${iy}]+|[^\\S\\n\\r]+|[^${iy}]`,"ug");return n.match(r)||[]}}const zO=new DO;function IO(e,n,r){return zO.diff(e,n,r)}class PO extends rp{constructor(){super(...arguments),this.tokenize=HO}equals(n,r,a){return a.ignoreWhitespace?((!a.newlineIsToken||!n.includes(`
|
|
1924
|
+
`))&&(n=n.trim()),(!a.newlineIsToken||!r.includes(`
|
|
1925
|
+
`))&&(r=r.trim())):a.ignoreNewlineAtEof&&!a.newlineIsToken&&(n.endsWith(`
|
|
1926
|
+
`)&&(n=n.slice(0,-1)),r.endsWith(`
|
|
1927
|
+
`)&&(r=r.slice(0,-1))),super.equals(n,r,a)}}const UO=new PO;function ry(e,n,r){return UO.diff(e,n,r)}function HO(e,n){n.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
1928
|
+
`));const r=[],a=e.split(/(\n|\r\n)/);a[a.length-1]||a.pop();for(let l=0;l<a.length;l++){const u=a[l];l%2&&!n.newlineIsToken?r[r.length-1]+=u:r.push(u)}return r}const jO={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function VO(e,n,r,a,l,u,c){let d;d={},typeof d.context>"u"&&(d.context=4);const f=d.context;if(d.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(d.callback){const{callback:g}=d;ry(r,a,Object.assign(Object.assign({},d),{callback:v=>{const b=m(v);g(b)}}))}else return m(ry(r,a,d));function m(g){if(!g)return;g.push({value:"",lines:[]});function v(C){return C.map(function(A){return" "+A})}const b=[];let _=0,S=0,E=[],L=1,w=1;for(let C=0;C<g.length;C++){const A=g[C],R=A.lines||GO(A.value);if(A.lines=R,A.added||A.removed){if(!_){const T=g[C-1];_=L,S=w,T&&(E=f>0?v(T.lines.slice(-f)):[],_-=E.length,S-=E.length)}for(const T of R)E.push((A.added?"+":"-")+T);A.added?w+=R.length:L+=R.length}else{if(_)if(R.length<=f*2&&C<g.length-2)for(const T of v(R))E.push(T);else{const T=Math.min(R.length,f);for(const H of v(R.slice(0,T)))E.push(H);const P={oldStart:_,oldLines:L-_+T,newStart:S,newLines:w-S+T,lines:E};b.push(P),_=0,S=0,E=[]}L+=R.length,w+=R.length}}for(const C of b)for(let A=0;A<C.lines.length;A++)C.lines[A].endsWith(`
|
|
1929
|
+
`)?C.lines[A]=C.lines[A].slice(0,-1):(C.lines.splice(A+1,0,"\"),A++);return{oldFileName:e,newFileName:n,oldHeader:l,newHeader:u,hunks:b}}}function q1(e,n){if(n||(n=jO),Array.isArray(e)){if(e.length>1&&!n.includeFileHeaders)throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return e.map(a=>q1(a,n)).join(`
|
|
1930
|
+
`)}const r=[];n.includeIndex&&e.oldFileName==e.newFileName&&r.push("Index: "+e.oldFileName),n.includeUnderline&&r.push("==================================================================="),n.includeFileHeaders&&(r.push("--- "+e.oldFileName+(typeof e.oldHeader>"u"?"":" "+e.oldHeader)),r.push("+++ "+e.newFileName+(typeof e.newHeader>"u"?"":" "+e.newHeader)));for(let a=0;a<e.hunks.length;a++){const l=e.hunks[a];l.oldLines===0&&(l.oldStart-=1),l.newLines===0&&(l.newStart-=1),r.push("@@ -"+l.oldStart+","+l.oldLines+" +"+l.newStart+","+l.newLines+" @@");for(const u of l.lines)r.push(u)}return r.join(`
|
|
1931
|
+
`)+`
|
|
1932
|
+
`}function BO(e,n,r,a,l,u,c){{const d=VO(e,n,r,a,l,u);return d?q1(d,void 0):void 0}}function GO(e){const n=e.endsWith(`
|
|
1933
|
+
`),r=e.split(`
|
|
1934
|
+
`).map(a=>a+`
|
|
1935
|
+
`);return n?r.pop():r.push(r.pop().slice(0,-1)),r}function ay({line:e,spanStart:n,spanLength:r}){return{start:{line:e,character:n},end:{line:e,character:n+r},properties:{"data-diff-span":""},alwaysWrap:!0}}function eu({item:e,arr:n,enableJoin:r,isNeutral:a=!1,isLastItem:l=!1}){const u=n[n.length-1];if(u==null||l||!r){n.push([a?0:1,e.value]);return}const c=u[0]===0;if(a===c||a&&e.value.length===1&&!c){u[1]+=e.value;return}n.push([a?0:1,e.value])}function Nu({diff:e,diffStyle:n,startingLine:r=0,totalLines:a=1/0,expandedHunks:l,collapsedContextThreshold:u=Ga,callback:c}){const d={finalHunk:e.hunks.at(-1),viewportStart:r,viewportEnd:r+a,isWindowedHighlight:r>0||a<1/0,splitCount:0,unifiedCount:0,shouldBreak(){if(!d.isWindowedHighlight)return!1;const g=d.unifiedCount>=r+a,v=d.splitCount>=r+a;return n==="unified"?g:(n==="split"||g)&&v},shouldSkip(g,v){if(!d.isWindowedHighlight)return!1;const b=d.unifiedCount+g<r,_=d.splitCount+v<r;return n==="unified"?b:(n==="split"||b)&&_},incrementCounts(g,v){(n==="unified"||n==="both")&&(d.unifiedCount+=g),(n==="split"||n==="both")&&(d.splitCount+=v)},isInWindow(g,v){if(!d.isWindowedHighlight)return!0;const b=d.isInUnifiedWindow(g),_=d.isInSplitWindow(v);return n==="unified"?b:n==="split"?_:b||_},isInUnifiedWindow(g){return!d.isWindowedHighlight||d.unifiedCount>=r-g&&d.unifiedCount<r+a},isInSplitWindow(g){return!d.isWindowedHighlight||d.splitCount>=r-g&&d.splitCount<r+a},emit(g,v=!1){return v||(n==="unified"?d.incrementCounts(1,0):n==="split"?d.incrementCounts(0,1):d.incrementCounts(1,1)),c(g)??!1}};e:for(const[g,v]of e.hunks.entries()){let E=function(I,K){return _==null||_.collapsedLines<=0||_.fromStart+_.fromEnd>0?0:n==="unified"?I===v.unifiedLineStart+v.unifiedLineCount-1?_.collapsedLines:0:K===v.splitLineStart+v.splitLineCount-1?_.collapsedLines:0},L=function(){if(b.collapsedLines===0)return 0;const I=b.collapsedLines;return b.collapsedLines=0,I};var f=E,m=L;if(d.shouldBreak())break;const b=oy(e.isPartial,v.collapsedBefore,l,g,u),_=(()=>{if(v!==d.finalHunk||!$O(e))return;const I=e.additionLines.length-(v.additionLineIndex+v.additionCount),K=e.deletionLines.length-(v.deletionLineIndex+v.deletionCount);if(I!==K)throw new Error(`iterateOverDiff: trailing context mismatch (additions=${I}, deletions=${K}) for ${e.name}`);const Z=Math.min(I,K);return oy(e.isPartial,Z,l,e.hunks.length,u)})(),S=b.fromStart+b.fromEnd;if(d.shouldSkip(S,S))d.incrementCounts(S,S),L();else{let I=v.unifiedLineStart-b.rangeSize,K=v.splitLineStart-b.rangeSize,Z=v.deletionLineIndex-b.rangeSize,F=v.additionLineIndex-b.rangeSize,V=v.deletionStart-b.rangeSize,te=v.additionStart-b.rangeSize,J=0;for(;J<b.fromStart;){if(d.isInWindow(0,0)){if(d.emit({hunkIndex:g,hunk:v,collapsedBefore:0,collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:V+J,lineIndex:Z+J,noEOFCR:!1,unifiedLineIndex:I+J,splitLineIndex:K+J},additionLine:{unifiedLineIndex:I+J,splitLineIndex:K+J,lineIndex:F+J,lineNumber:te+J,noEOFCR:!1}}))break e}else d.incrementCounts(1,1);J++}for(I=v.unifiedLineStart-b.fromEnd,K=v.splitLineStart-b.fromEnd,Z=v.deletionLineIndex-b.fromEnd,F=v.additionLineIndex-b.fromEnd,V=v.deletionStart-b.fromEnd,te=v.additionStart-b.fromEnd,J=0;J<b.fromEnd;){if(d.isInWindow(0,0)){if(d.emit({hunkIndex:g,hunk:v,collapsedBefore:L(),collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:V+J,lineIndex:Z+J,noEOFCR:!1,unifiedLineIndex:I+J,splitLineIndex:K+J},additionLine:{unifiedLineIndex:I+J,splitLineIndex:K+J,lineIndex:F+J,lineNumber:te+J,noEOFCR:!1}}))break e}else d.incrementCounts(1,1);J++}}let w=v.unifiedLineStart,C=v.splitLineStart,A=v.deletionLineIndex,R=v.additionLineIndex,T=v.deletionStart,P=v.additionStart;const H=v.hunkContent.at(-1);for(const I of v.hunkContent){if(d.shouldBreak())break e;const K=I===H;if(I.type==="context"){if(d.shouldSkip(I.lines,I.lines))d.incrementCounts(I.lines,I.lines),L();else{let Z=0;for(;Z<I.lines;){if(d.isInWindow(0,0)){const F=K&&Z===I.lines-1,V=w+Z,te=C+Z;if(d.emit({hunkIndex:g,hunk:v,collapsedBefore:L(),collapsedAfter:E(V,te),type:"context",deletionLine:{lineNumber:T+Z,lineIndex:A+Z,noEOFCR:F&&v.noEOFCRDeletions,unifiedLineIndex:V,splitLineIndex:te},additionLine:{unifiedLineIndex:V,splitLineIndex:te,lineIndex:R+Z,lineNumber:P+Z,noEOFCR:F&&v.noEOFCRAdditions}}))break e}else d.incrementCounts(1,1);Z++}}w+=I.lines,C+=I.lines,A+=I.lines,R+=I.lines,T+=I.lines,P+=I.lines}else{const Z=Math.max(I.deletions,I.additions),F=I.deletions+I.additions;if(!d.shouldSkip(F,Z)){const V=qO(d,I,n);for(const[te,J]of V)for(let W=te;W<J;W++){const D=E(w+W,n==="unified"?C+(W<I.deletions?W:W-I.deletions):C+W);if(d.emit(YO({hunkIndex:g,hunk:v,collapsedBefore:L(),collapsedAfter:D,diffStyle:n,index:W,unifiedLineIndex:w,splitLineIndex:C,additionLineIndex:R,deletionLineIndex:A,additionLineNumber:P,deletionLineNumber:T,content:I,isLastContent:K,unifiedCount:F,splitCount:Z}),!0))break e}}L(),d.incrementCounts(F,Z),w+=F,C+=Z,A+=I.deletions,R+=I.additions,T+=I.deletions,P+=I.additions}}if(_!=null){const{collapsedLines:I,fromStart:K,fromEnd:Z}=_,F=K+Z;let V=0;for(;V<F;){if(d.shouldBreak())break e;if(d.isInWindow(0,0)){const te=V===F-1;if(d.emit({hunkIndex:e.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:te?I:0,type:"context-expanded",deletionLine:{lineNumber:T+V,lineIndex:A+V,noEOFCR:!1,unifiedLineIndex:w+V,splitLineIndex:C+V},additionLine:{unifiedLineIndex:w+V,splitLineIndex:C+V,lineIndex:R+V,lineNumber:P+V,noEOFCR:!1}}))break e}else d.incrementCounts(1,1);V++}}}}function oy(e,n,r,a,l){if(n=Math.max(n,0),n===0||e)return{fromStart:0,fromEnd:0,rangeSize:n,collapsedLines:Math.max(n,0)};if(r===!0||n<=l)return{fromStart:n,fromEnd:0,rangeSize:n,collapsedLines:0};const u=r?.get(a),c=Math.min(Math.max(u?.fromStart??0,0),n),d=Math.min(Math.max(u?.fromEnd??0,0),n),f=c+d,m=f>=n;return{fromStart:m?n:c,fromEnd:m?0:d,rangeSize:n,collapsedLines:Math.max(n-f,0)}}function $O(e){const n=e.hunks.at(-1);return n==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0?!1:n.additionLineIndex+n.additionCount<e.additionLines.length||n.deletionLineIndex+n.deletionCount<e.deletionLines.length}function qO(e,n,r){if(!e.isWindowedHighlight)return[[0,r==="unified"?n.deletions+n.additions:Math.max(n.deletions,n.additions)]];const a=r!=="split",l=r!=="unified",u=r==="unified"?"unified":"split",c=[];function d(v,b){if(v+b<=e.viewportStart||v>=e.viewportEnd)return;const _=Math.max(0,e.viewportStart-v),S=Math.min(b,e.viewportEnd-v);return S>_?[_,S]:void 0}function f(v,b){return u==="split"?v:b==="additions"?[v[0]+n.deletions,v[1]+n.deletions]:v}function m(v,b){if(v==null)return;const[_,S]=f(v,b);S>_&&c.push([_,S])}if(a&&(m(d(e.unifiedCount,n.deletions),"deletions"),m(d(e.unifiedCount+n.deletions,n.additions),"additions")),l&&(m(d(e.splitCount,n.deletions),"deletions"),m(d(e.splitCount,n.additions),"additions")),c.length===0)return c;c.sort((v,b)=>v[0]-b[0]);const g=[c[0]];for(const[v,b]of c.slice(1)){const _=g[g.length-1];v<=_[1]?_[1]=Math.max(_[1],b):g.push([v,b])}return g}function YO({hunkIndex:e,hunk:n,collapsedAfter:r,collapsedBefore:a,diffStyle:l,index:u,unifiedLineIndex:c,splitLineIndex:d,additionLineIndex:f,deletionLineIndex:m,additionLineNumber:g,deletionLineNumber:v,content:b,isLastContent:_,unifiedCount:S,splitCount:E}){const L=u<b.deletions?c+u:void 0,w=l==="unified"?u>=b.deletions?c+u:void 0:u<b.additions?c+b.deletions+u:void 0,C=l==="unified"?d+(u<b.deletions?u:u-b.deletions):d+u,A=u<b.deletions?m+u:void 0,R=u<b.deletions?v+u:void 0,T=l==="unified"?u>=b.deletions?f+(u-b.deletions):void 0:u<b.additions?f+u:void 0,P=l==="unified"?u>=b.deletions?g+(u-b.deletions):void 0:u<b.additions?g+u:void 0,H=l==="unified"?_&&u===b.deletions-1&&n.noEOFCRDeletions:_&&u===E-1&&n.noEOFCRDeletions,I=l==="unified"?_&&u===S-1&&n.noEOFCRAdditions:_&&u===E-1&&n.noEOFCRAdditions,K=A!=null&&R!=null&&L!=null?{lineNumber:R,lineIndex:A,noEOFCR:H,unifiedLineIndex:L,splitLineIndex:C}:void 0,Z=T!=null&&P!=null&&w!=null?{unifiedLineIndex:w,splitLineIndex:C,lineIndex:T,lineNumber:P,noEOFCR:I}:void 0;if(K==null&&Z!=null)return{type:"change",hunkIndex:e,hunk:n,collapsedAfter:r,collapsedBefore:a,deletionLine:void 0,additionLine:Z};if(K!=null&&Z==null)return{type:"change",hunkIndex:e,hunk:n,collapsedAfter:r,collapsedBefore:a,deletionLine:K,additionLine:void 0};if(K==null||Z==null)throw new Error("iterateOverDiff: missing change line data");return{type:"change",hunkIndex:e,hunk:n,collapsedAfter:r,collapsedBefore:a,deletionLine:K,additionLine:Z}}const FO={forcePlainText:!1};function XO(e,n,r,{forcePlainText:a,startingLine:l,totalLines:u,expandedHunks:c,collapsedContextThreshold:d=Ga}=FO){a?(l??=0,u??=1/0):(l=0,u=1/0);const f=l>0||u<1/0,m=(()=>{const C=r.theme??Rn;if(typeof C=="string")return n.getTheme(C).type})(),g=hO({theme:r.theme,highlighter:n}),v=a&&!f&&(e.unifiedLineCount>1e3||e.splitLineCount>1e3)?"none":r.lineDiffType,b={deletionLines:[],additionLines:[]},_=!a&&!e.isPartial,S=a?c:void 0,E=new Map;function L(C){const A=_?0:C,R=E.get(A)??QO();return E.set(A,R),R}function w(C,A,R,T){if(f){let P=R.at(-1);(P==null||P.targetIndex+P.count!==A)&&(P={targetIndex:A,originalOffset:T.length,count:0},R.push(P)),P.count++}T.push(C)}Nu({diff:e,diffStyle:"both",startingLine:l,totalLines:u,expandedHunks:f?S:!0,collapsedContextThreshold:d,callback:({hunkIndex:C,additionLine:A,deletionLine:R,type:T})=>{const P=L(C),H=A!=null?A.splitLineIndex:R.splitLineIndex;T==="change"&&A!=null&&R!=null&&WO({additionLine:e.additionLines[A.lineIndex],deletionLine:e.deletionLines[R.lineIndex],deletionLineIndex:P.deletionContent.length,additionLineIndex:P.additionContent.length,deletionDecorations:P.deletionDecorations,additionDecorations:P.additionDecorations,lineDiffType:v}),R!=null&&(w(e.deletionLines[R.lineIndex],R.lineIndex,P.deletionSegments,P.deletionContent),P.deletionInfo.push({type:T==="change"?"change-deletion":T,lineNumber:R.lineNumber,altLineNumber:T==="change"?void 0:A.lineNumber??void 0,lineIndex:`${R.unifiedLineIndex},${H}`})),A!=null&&(w(e.additionLines[A.lineIndex],A.lineIndex,P.additionSegments,P.additionContent),P.additionInfo.push({type:T==="change"?"change-addition":T,lineNumber:A.lineNumber,altLineNumber:T==="change"?void 0:R.lineNumber??void 0,lineIndex:`${A.unifiedLineIndex},${H}`}))}});for(const C of E.values()){if(C.deletionContent.length===0&&C.additionContent.length===0)continue;const A={name:e.prevName??e.name,contents:C.deletionContent.value},R={name:e.name,contents:C.additionContent.value},{deletionLines:T,additionLines:P}=ZO({deletionFile:A,deletionInfo:C.deletionInfo,deletionDecorations:C.deletionDecorations,additionFile:R,additionInfo:C.additionInfo,additionDecorations:C.additionDecorations,highlighter:n,options:r,languageOverride:a?"text":e.lang});if(_){b.deletionLines=T,b.additionLines=P;continue}if(C.deletionSegments.length>0)for(const H of C.deletionSegments)for(let I=0;I<H.count;I++)b.deletionLines[H.targetIndex+I]=T[H.originalOffset+I];else b.deletionLines.push(...T);if(C.additionSegments.length>0)for(const H of C.additionSegments)for(let I=0;I<H.count;I++)b.additionLines[H.targetIndex+I]=P[H.originalOffset+I];else b.additionLines.push(...P)}return{code:b,themeStyles:g,baseThemeType:m}}function WO({deletionLine:e,additionLine:n,deletionLineIndex:r,additionLineIndex:a,deletionDecorations:l,additionDecorations:u,lineDiffType:c}){if(e==null||n==null||c==="none")return;e=Wa(e),n=Wa(n);const d=c==="char"?MO(e,n):IO(e,n),f=[],m=[],g=c==="word-alt",v=d.at(-1);for(const _ of d){const S=_===v;!_.added&&!_.removed?(eu({item:_,arr:f,enableJoin:g,isNeutral:!0,isLastItem:S}),eu({item:_,arr:m,enableJoin:g,isNeutral:!0,isLastItem:S})):_.removed?eu({item:_,arr:f,enableJoin:g,isLastItem:S}):eu({item:_,arr:m,enableJoin:g,isLastItem:S})}let b=0;for(const _ of f)_[0]===1&&l.push(ay({line:r,spanStart:b,spanLength:_[1].length})),b+=_[1].length;b=0;for(const _ of m)_[0]===1&&u.push(ay({line:a,spanStart:b,spanLength:_[1].length})),b+=_[1].length}function QO(){return{deletionContent:{push(e){this.value+=e,this.length++},value:"",length:0},additionContent:{push(e){this.value+=e,this.length++},value:"",length:0},deletionInfo:[],additionInfo:[],deletionDecorations:[],additionDecorations:[],deletionSegments:[],additionSegments:[]}}function ZO({deletionFile:e,additionFile:n,deletionInfo:r,additionInfo:a,highlighter:l,deletionDecorations:u,additionDecorations:c,languageOverride:d,options:{theme:f=Rn,...m}}){const g=d??Ru(e.name),v=d??Ru(n.name),{state:b,transformers:_}=dO(),S=typeof f=="string"?{...m,lang:"text",theme:f,transformers:_,decorations:void 0,defaultColor:!1,cssVariablePrefix:Tn("token")}:{...m,lang:"text",themes:f,transformers:_,decorations:void 0,defaultColor:!1,cssVariablePrefix:Tn("token")};return{deletionLines:e.contents===""?[]:(S.lang=g,b.lineInfo=r,S.decorations=u,ey(l.codeToHast(Wa(e.contents),S))),additionLines:n.contents===""?[]:(S.lang=v,S.decorations=c,b.lineInfo=a,ey(l.codeToHast(Wa(n.contents),S)))}}let KO=-1;var JO=class{__id=`diff-hunks-renderer:${++KO}`;highlighter;diff;expandedHunks=new Map;deletionAnnotations={};additionAnnotations={};computedLang="text";renderCache;constructor(e={theme:Rn},n,r){this.options=e,this.onRenderUpdate=n,this.workerManager=r,r?.isWorkingPool()!==!0&&(this.highlighter=Of(e.theme??Rn)?KN():void 0)}cleanUp(){this.highlighter=void 0,this.diff=void 0,this.renderCache=void 0,this.workerManager?.cleanUpPendingTasks(this),this.workerManager=void 0,this.onRenderUpdate=void 0}recycle(){this.highlighter=void 0,this.diff=void 0,this.renderCache=void 0,this.workerManager?.cleanUpPendingTasks(this)}setOptions(e){this.options=e}mergeOptions(e){this.options={...this.options,...e}}setThemeType(e){this.getOptionsWithDefaults().themeType!==e&&this.mergeOptions({themeType:e})}expandHunk(e,n,r=this.getOptionsWithDefaults().expansionLineCount){const a={...this.expandedHunks.get(e)??{fromStart:0,fromEnd:0}};(n==="up"||n==="both")&&(a.fromStart+=r),(n==="down"||n==="both")&&(a.fromEnd+=r),this.renderCache?.highlighted!==!0&&(this.renderCache=void 0),this.expandedHunks.set(e,a)}getExpandedHunk(e){return this.expandedHunks.get(e)??Pk}getExpandedHunksMap(){return this.expandedHunks}setLineAnnotations(e){this.additionAnnotations={},this.deletionAnnotations={};for(const n of e){const r=(()=>{switch(n.side){case"deletions":return this.deletionAnnotations;case"additions":return this.additionAnnotations}})(),a=r[n.lineNumber]??[];r[n.lineNumber]=a,a.push(n)}}getUnifiedLineDecoration({lineType:e}){return{gutterLineType:e}}getSplitLineDecoration({side:e,type:n}){return n!=="change"?{gutterLineType:n}:{gutterLineType:e==="deletions"?"change-deletion":"change-addition"}}createAnnotationElement(e){return eO(e)}getOptionsWithDefaults(){const{diffIndicators:e="bars",diffStyle:n="split",disableBackground:r=!1,disableFileHeader:a=!1,disableLineNumbers:l=!1,disableVirtualizationBuffers:u=!1,collapsed:c=!1,expandUnchanged:d=!1,collapsedContextThreshold:f=Ga,expansionLineCount:m=100,hunkSeparators:g="line-info",lineDiffType:v="word-alt",maxLineDiffLength:b=1e3,overflow:_="scroll",theme:S=Rn,themeType:E="system",tokenizeMaxLineLength:L=1e3,useCSSClasses:w=!1}=this.options;return{diffIndicators:e,diffStyle:n,disableBackground:r,disableFileHeader:a,disableLineNumbers:l,disableVirtualizationBuffers:u,collapsed:c,expandUnchanged:d,collapsedContextThreshold:f,expansionLineCount:m,hunkSeparators:g,lineDiffType:v,maxLineDiffLength:b,overflow:_,theme:this.workerManager?.getDiffRenderOptions().theme??S,themeType:E,tokenizeMaxLineLength:L,useCSSClasses:w}}async initializeHighlighter(){return this.highlighter=await ZN(lO(this.computedLang,this.options)),this.highlighter}hydrate(e){if(e==null)return;this.diff=e;const{options:n}=this.getRenderOptions(e);let r=this.workerManager?.getDiffResultCache(e);r!=null&&!If(n,r.options)&&(r=void 0),this.renderCache??={diff:e,highlighted:!0,options:n,result:r?.result,renderRange:void 0},this.workerManager?.isWorkingPool()===!0&&this.renderCache.result==null?this.workerManager.highlightDiffAST(this,this.diff):this.asyncHighlight(e).then(({result:a,options:l})=>{this.onHighlightSuccess(e,a,l)})}getRenderOptions(e){const n=(()=>{if(this.workerManager?.isWorkingPool()===!0)return this.workerManager.getDiffRenderOptions();const{theme:a,tokenizeMaxLineLength:l,lineDiffType:u}=this.getOptionsWithDefaults();return{theme:a,tokenizeMaxLineLength:l,lineDiffType:u}})();this.getOptionsWithDefaults();const{renderCache:r}=this;return r?.result==null?{options:n,forceRender:!0}:e!==r.diff||!If(n,r.options)?{options:n,forceRender:!0}:{options:n,forceRender:!1}}renderDiff(e=this.renderCache?.diff,n=t0){if(e==null)return;const{expandUnchanged:r=!1,collapsedContextThreshold:a}=this.getOptionsWithDefaults(),l=this.workerManager?.getDiffResultCache(e);l!=null&&this.renderCache==null&&(this.renderCache={diff:e,highlighted:!0,renderRange:void 0,...l});const{options:u,forceRender:c}=this.getRenderOptions(e);if(this.renderCache??={diff:e,highlighted:!1,options:u,result:void 0,renderRange:void 0},this.workerManager?.isWorkingPool()===!0)(this.renderCache.result==null||!this.renderCache.highlighted&&!G1(this.renderCache.renderRange,n))&&(this.renderCache.result=this.workerManager.getPlainDiffAST(e,n.startingLine,n.totalLines,RO(n)||r?!0:this.expandedHunks,a),this.renderCache.renderRange=n),n.totalLines>0&&(!this.renderCache.highlighted||c)&&this.workerManager.highlightDiffAST(this,e);else{this.computedLang=e.lang??Ru(e.name);const d=this.highlighter!=null&&Of(u.theme),f=this.highlighter!=null&&m0(this.computedLang);if(this.highlighter!=null&&d&&(c||!this.renderCache.highlighted&&f||this.renderCache.result==null)){const{result:m,options:g}=this.renderDiffWithHighlighter(e,this.highlighter,!f);this.renderCache={diff:e,options:g,highlighted:f,result:m,renderRange:void 0}}(!d||!f)&&this.asyncHighlight(e).then(({result:m,options:g})=>{this.onHighlightSuccess(e,m,g)})}return this.renderCache.result!=null?this.processDiffResult(this.renderCache.diff,n,this.renderCache.result):void 0}async asyncRender(e,n=t0){const{result:r}=await this.asyncHighlight(e);return this.processDiffResult(e,n,r)}createPreElement(e,n,r,a,l){const{diffIndicators:u,disableBackground:c,disableLineNumbers:d,overflow:f,themeType:m}=this.getOptionsWithDefaults();return aO({type:"diff",diffIndicators:u,disableBackground:c,disableLineNumbers:d,overflow:f,themeStyles:r,split:e,themeType:a??m,totalLines:n,customProperties:l})}async asyncHighlight(e){this.computedLang=e.lang??Ru(e.name);const n=this.highlighter!=null&&Of(this.options.theme??Rn),r=this.highlighter!=null&&m0(this.computedLang);return(this.highlighter==null||!n||!r)&&(this.highlighter=await this.initializeHighlighter()),this.renderDiffWithHighlighter(e,this.highlighter)}renderDiffWithHighlighter(e,n,r=!1){const{options:a}=this.getRenderOptions(e),{collapsedContextThreshold:l}=this.getOptionsWithDefaults();return{result:XO(e,n,a,{forcePlainText:r,expandedHunks:r?!0:void 0,collapsedContextThreshold:l}),options:a}}onHighlightSuccess(e,n,r){if(this.renderCache==null)return;const a=this.renderCache.diff!==e||!this.renderCache.highlighted||!If(this.renderCache.options,r);this.renderCache={diff:e,options:r,highlighted:!0,result:n,renderRange:void 0},a&&this.onRenderUpdate?.()}onHighlightError(e){console.error(e)}processDiffResult(e,n,{code:r,themeStyles:a,baseThemeType:l}){const{diffStyle:u,disableFileHeader:c,expandUnchanged:d,expansionLineCount:f,collapsedContextThreshold:m,hunkSeparators:g}=this.getOptionsWithDefaults();this.diff=e;const v=u==="unified";let b=[],_=[],S=[];const E=[],{additionLines:L,deletionLines:w}=r,C={rowCount:0,hunkSeparators:g,additionsContentAST:b,deletionsContentAST:_,unifiedContentAST:S,unifiedGutterAST:$s(),deletionsGutterAST:$s(),additionsGutterAST:$s(),expansionLineCount:f,hunkData:E,incrementRowCount(te=1){C.rowCount+=te},pushToGutter(te,J){switch(te){case"unified":C.unifiedGutterAST.children.push(J);break;case"deletions":C.deletionsGutterAST.children.push(J);break;case"additions":C.additionsGutterAST.children.push(J);break}}},A=nM(e),R={size:0,side:void 0,increment(){this.size+=1},flush(){if(u!=="unified"){if(this.size<=0||this.side==null){this.side=void 0,this.size=0;return}this.side==="additions"?(C.pushToGutter("additions",kn(void 0,"buffer",this.size)),b?.push(Ks(this.size))):(C.pushToGutter("deletions",kn(void 0,"buffer",this.size)),_?.push(Ks(this.size))),this.size=0,this.side=void 0}}},T=(te,J,W,D,Y)=>{C.pushToGutter(te,jk(J,W,D,Y))};function P(te){R.flush(),u==="unified"?Pf("unified",te,C):(Pf("deletions",te,C),Pf("additions",te,C))}Nu({diff:e,diffStyle:u,startingLine:n.startingLine,totalLines:n.totalLines,expandedHunks:d?!0:this.expandedHunks,collapsedContextThreshold:m,callback:({hunkIndex:te,hunk:J,collapsedBefore:W,collapsedAfter:D,additionLine:Y,deletionLine:re,type:ce})=>{const ie=re!=null?re.splitLineIndex:Y.splitLineIndex,N=Y!=null?Y.unifiedLineIndex:re.unifiedLineIndex;u==="split"&&ce!=="change"&&R.flush(),W>0&&P({hunkIndex:te,collapsedLines:W,rangeSize:Math.max(J?.collapsedBefore??0,0),hunkSpecs:J?.hunkSpecs,isFirstHunk:te===0,isLastHunk:!1,isExpandable:!e.isPartial});const q=u==="unified"?N:ie,ae={type:ce,hunkIndex:te,lineIndex:q,unifiedLineIndex:N,splitLineIndex:ie,deletionLine:re,additionLine:Y};if(u==="unified"){let le=re!=null?w[re.lineIndex]:void 0,de=Y!=null?L[Y.lineIndex]:void 0;if(le==null&&de==null){const Ge="DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong";throw console.error(Ge,{file:e.name}),new Error(Ge)}const Ce=ce==="change"?Y!=null?"change-addition":"change-deletion":ce,he=this.getUnifiedLineDecoration({type:ce,lineType:Ce,additionLineIndex:Y?.lineIndex,deletionLineIndex:re?.lineIndex});T("unified",he.gutterLineType,Y!=null?Y.lineNumber:re.lineNumber,`${N},${ie}`,he.gutterProperties),de!=null?de=tu(de,he.contentProperties):le!=null&&(le=tu(le,he.contentProperties)),sy({diffStyle:"unified",type:ce,deletionLine:le,additionLine:de,unifiedSpan:this.getAnnotations("unified",re?.lineNumber,Y?.lineNumber,te,q),createAnnotationElement:Ge=>this.createAnnotationElement(Ge),context:C});const Be=this.getUnifiedInlineRowsForLine?.(ae);Be!=null&&eM(Be,C)}else{let le=re!=null?w[re.lineIndex]:void 0,de=Y!=null?L[Y.lineIndex]:void 0;const Ce=this.getSplitLineDecoration({side:"deletions",type:ce,lineIndex:re?.lineIndex}),he=this.getSplitLineDecoration({side:"additions",type:ce,lineIndex:Y?.lineIndex});if(le==null&&de==null){const Ye="DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong";throw console.error(Ye,{file:e.name}),new Error(Ye)}const Be=(()=>{if(ce==="change"){if(de==null)return"additions";if(le==null)return"deletions"}})();if(Be!=null){if(R.side!=null&&R.side!==Be)throw new Error("DiffHunksRenderer.processDiffResult: iterateOverDiff, invalid pending splits");R.side=Be,R.increment()}const Ge=this.getAnnotations("split",re?.lineNumber,Y?.lineNumber,te,q);if(Ge!=null&&R.size>0&&R.flush(),re!=null){const Ye=tu(le,Ce.contentProperties);T("deletions",Ce.gutterLineType,re.lineNumber,`${re.unifiedLineIndex},${ie}`,Ce.gutterProperties),Ye!=null&&(le=Ye)}if(Y!=null){const Ye=tu(de,he.contentProperties);T("additions",he.gutterLineType,Y.lineNumber,`${Y.unifiedLineIndex},${ie}`,he.gutterProperties),Ye!=null&&(de=Ye)}sy({diffStyle:"split",type:ce,additionLine:de,deletionLine:le,...Ge,createAnnotationElement:Ye=>this.createAnnotationElement(Ye),context:C});const et=this.getSplitInlineRowsForLine?.(ae);et!=null&&tM(et,C,R)}const oe=re?.noEOFCR??!1,ue=Y?.noEOFCR??!1;if(ue||oe){if(oe){const le=ce==="context"||ce==="context-expanded"?ce:"change-deletion";u==="unified"?(C.unifiedContentAST.push(Js(le)),C.pushToGutter("unified",kn(le,"metadata",1))):(C.deletionsContentAST.push(Js(le)),C.pushToGutter("deletions",kn(le,"metadata",1)),ue||(C.pushToGutter("additions",kn(void 0,"buffer",1)),C.additionsContentAST.push(Ks(1))))}if(ue){const le=ce==="context"||ce==="context-expanded"?ce:"change-addition";u==="unified"?(C.unifiedContentAST.push(Js(le)),C.pushToGutter("unified",kn(le,"metadata",1))):(C.additionsContentAST.push(Js(le)),C.pushToGutter("additions",kn(le,"metadata",1)),oe||(C.pushToGutter("deletions",kn(void 0,"buffer",1)),C.deletionsContentAST.push(Ks(1))))}C.incrementRowCount(1)}D>0&&g!=="simple"&&P({hunkIndex:ce==="context-expanded"?te:te+1,collapsedLines:D,rangeSize:A,hunkSpecs:void 0,isFirstHunk:!1,isLastHunk:!0,isExpandable:!e.isPartial}),C.incrementRowCount(1)}}),u==="split"&&R.flush();const H=Math.max(LO(e.hunks),e.additionLines.length??0,e.deletionLines.length??0),I=n.bufferBefore>0||n.bufferAfter>0,K=!v&&e.type!=="deleted",Z=!v&&e.type!=="new",F=C.rowCount>0||I;b=K&&F?b:void 0,_=Z&&F?_:void 0,S=v&&F?S:void 0;const V=this.createPreElement(_!=null&&b!=null,H,a,l);return{unifiedGutterAST:v&&F?C.unifiedGutterAST.children:void 0,unifiedContentAST:S,deletionsGutterAST:Z&&F?C.deletionsGutterAST.children:void 0,deletionsContentAST:_,additionsGutterAST:K&&F?C.additionsGutterAST.children:void 0,additionsContentAST:b,hunkData:E,preNode:V,themeStyles:a,baseThemeType:l,headerElement:c?void 0:this.renderHeader(this.diff,a,l),totalLines:H,rowCount:C.rowCount,bufferBefore:n.bufferBefore,bufferAfter:n.bufferAfter,css:""}}renderCodeAST(e,n){const r=e==="unified"?n.unifiedGutterAST:e==="deletions"?n.deletionsGutterAST:n.additionsGutterAST,a=e==="unified"?n.unifiedContentAST:e==="deletions"?n.deletionsContentAST:n.additionsContentAST;if(r==null||a==null)return;const l=$s(r);return l.properties.style=`grid-row: span ${n.rowCount}`,[l,pO(a,n.rowCount)]}renderFullAST(e,n=[]){const r=this.getOptionsWithDefaults().hunkSeparators==="line-info",a=this.renderCodeAST("unified",e);if(a!=null)return n.push(Ne({tagName:"code",children:a,properties:{"data-code":"","data-container-size":r?"":void 0,"data-unified":""}})),{...e.preNode,children:n};const l=this.renderCodeAST("deletions",e);l!=null&&n.push(Ne({tagName:"code",children:l,properties:{"data-code":"","data-container-size":r?"":void 0,"data-deletions":""}}));const u=this.renderCodeAST("additions",e);return u!=null&&n.push(Ne({tagName:"code",children:u,properties:{"data-code":"","data-container-size":r?"":void 0,"data-additions":""}})),{...e.preNode,children:n}}renderFullHTML(e,n=[]){return Ya(this.renderFullAST(e,n))}renderPartialHTML(e,n){return n==null?Ya(e):Ya(Ne({tagName:"code",children:e,properties:{"data-code":"","data-container-size":this.getOptionsWithDefaults().hunkSeparators==="line-info"?"":void 0,[`data-${n}`]:""}}))}getAnnotations(e,n,r,a,l){const u={type:"annotation",hunkIndex:a,lineIndex:l,annotations:[]};if(n!=null)for(const d of this.deletionAnnotations[n]??[])u.annotations.push(ml(d));const c={type:"annotation",hunkIndex:a,lineIndex:l,annotations:[]};if(r!=null)for(const d of this.additionAnnotations[r]??[])(e==="unified"?u:c).annotations.push(ml(d));if(e==="unified")return u.annotations.length>0?u:void 0;if(!(c.annotations.length===0&&u.annotations.length===0))return{deletionSpan:u,additionSpan:c}}renderHeader(e,n,r){const{themeType:a}=this.getOptionsWithDefaults();return nO({fileOrDiff:e,themeStyles:n,themeType:r??a})}};function If(e,n){return $1(e.theme,n.theme)&&e.tokenizeMaxLineLength===n.tokenizeMaxLineLength&&e.lineDiffType===n.lineDiffType}function ly(e){return`${e} unmodified line${e>1?"s":""}`}function eM(e,n){for(const r of e)n.unifiedContentAST.push(r.content),n.pushToGutter("unified",r.gutter),n.incrementRowCount(1)}function tM(e,n,r){for(const{deletion:a,addition:l}of e){if(a==null&&l==null)continue;const u=a!=null&&l!=null?void 0:a==null?"deletions":"additions";(u==null||r.side!==u)&&r.flush(),a!=null&&(n.deletionsContentAST.push(a.content),n.pushToGutter("deletions",a.gutter)),l!=null&&(n.additionsContentAST.push(l.content),n.pushToGutter("additions",l.gutter)),u!=null&&(r.side=u,r.increment()),n.incrementRowCount(1)}}function sy({diffStyle:e,type:n,deletionLine:r,additionLine:a,unifiedSpan:l,deletionSpan:u,additionSpan:c,createAnnotationElement:d,context:f}){let m=!1;if(e==="unified"){if(a!=null?f.unifiedContentAST.push(a):r!=null&&f.unifiedContentAST.push(r),l!=null){const g=n==="change"?r!=null?"change-deletion":"change-addition":n;f.unifiedContentAST.push(d(l)),f.pushToGutter("unified",kn(g,"annotation",1)),m=!0}}else if(e==="split"){if(r!=null&&f.deletionsContentAST.push(r),a!=null&&f.additionsContentAST.push(a),u!=null){const g=n==="change"?r!=null?"change-deletion":"context":n;f.deletionsContentAST.push(d(u)),f.pushToGutter("deletions",kn(g,"annotation",1)),m=!0}if(c!=null){const g=n==="change"?a!=null?"change-addition":"context":n;f.additionsContentAST.push(d(c)),f.pushToGutter("additions",kn(g,"annotation",1)),m=!0}}m&&f.incrementRowCount(1)}function Pf(e,{hunkIndex:n,collapsedLines:r,rangeSize:a,hunkSpecs:l,isFirstHunk:u,isLastHunk:c,isExpandable:d},f){if(r<=0)return;const m=e==="unified"?f.unifiedContentAST:e==="deletions"?f.deletionsContentAST:f.additionsContentAST;if(f.hunkSeparators==="metadata"){l!=null&&(f.pushToGutter(e,Da({type:"metadata",content:l,isFirstHunk:u,isLastHunk:c})),m.push(Da({type:"metadata",content:l,isFirstHunk:u,isLastHunk:c})),e!=="additions"&&f.incrementRowCount(1));return}if(f.hunkSeparators==="simple"){n>0&&(f.pushToGutter(e,Da({type:"simple",isFirstHunk:u,isLastHunk:!1})),m.push(Da({type:"simple",isFirstHunk:u,isLastHunk:!1})),e!=="additions"&&f.incrementRowCount(1));return}const g=TO(e,n),v=a>f.expansionLineCount,b=d?n:void 0;f.pushToGutter(e,Da({type:f.hunkSeparators,content:ly(r),expandIndex:b,chunked:v,slotName:g,isFirstHunk:u,isLastHunk:c})),m.push(Da({type:f.hunkSeparators,content:ly(r),expandIndex:b,chunked:v,slotName:g,isFirstHunk:u,isLastHunk:c})),e!=="additions"&&f.incrementRowCount(1),f.hunkData.push({slotName:g,hunkIndex:n,lines:r,type:e,expandable:d?{up:!u,down:!c,chunked:v}:void 0})}function tu(e,n){return e==null||e.type!=="element"||n==null?e:{...e,properties:{...e.properties,...n}}}function nM(e){const n=e.hunks.at(-1);if(n==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0)return 0;const r=e.additionLines.length-(n.additionLineIndex+n.additionCount),a=e.deletionLines.length-(n.deletionLineIndex+n.deletionCount);if(r!==a)throw new Error(`DiffHunksRenderer.processDiffResult: trailing context mismatch (additions=${r}, deletions=${a}) for ${e.name}`);return Math.min(r,a)}function iM(e,n){return e.lineNumber===n.lineNumber&&e.side===n.side&&e.metadata===n.metadata}function rM(e,n){return e.slotName===n.slotName&&e.hunkIndex===n.hunkIndex&&e.lines===n.lines&&e.type===n.type&&e.expandable?.chunked===n.expandable?.chunked&&e.expandable?.up===n.expandable?.up&&e.expandable?.down===n.expandable?.down}function aM(e){const n=e[0];if(n!=="+"&&n!=="-"&&n!==" "&&n!=="\\"){console.error(`parseLineType: Invalid firstChar: "${n}", full line: "${e}"`);return}const r=e.substring(1);return{line:r===""?`
|
|
1936
|
+
`:r,type:n===" "?"context":n==="\\"?"metadata":n==="+"?"addition":"deletion"}}function oM(e,n,r=!1){const a=au.test(e),l=e.split(a?au:e0);let u;const c=[];for(const d of l){if(a&&!au.test(d)){if(u==null)u=d;else{if(r)throw Error("parsePatchContent: unknown file blob");console.error("parsePatchContent: unknown file blob:",d)}continue}else if(!a&&!e0.test(d)){if(u==null)u=d;else{if(r)throw Error("parsePatchContent: unknown file blob");console.error("parsePatchContent: unknown file blob:",d)}continue}const f=Y1(d,{cacheKey:n!=null?`${n}-${c.length}`:void 0,isGitDiff:a,throwOnError:r});f!=null&&c.push(f)}return{patchMetadata:u,files:c}}function Y1(e,{cacheKey:n,isGitDiff:r=au.test(e),oldFile:a,newFile:l,throwOnError:u=!1}={}){let c=0;const d=e.split(Rk);let f;const m=a==null||l==null;let g=0,v=0;for(const b of d){const _=b.split(pf),S=_.shift();if(S==null){if(u)throw Error("parsePatchContent: invalid hunk");console.error("parsePatchContent: invalid hunk",b);continue}const E=S.match(Nk);let L=0,w=0;if(E==null||f==null){if(f!=null){if(u)throw Error("parsePatchContent: Invalid hunk");console.error("parsePatchContent: Invalid hunk",b);continue}f={name:"",type:"change",hunks:[],splitLineCount:0,unifiedLineCount:0,isPartial:m,additionLines:!m&&a!=null&&l!=null?l.contents.split(pf):[],deletionLines:!m&&a!=null&&l!=null?a.contents.split(pf):[],cacheKey:n},f.additionLines.length===1&&l?.contents===""&&(f.additionLines.length=0),f.deletionLines.length===1&&a?.contents===""&&(f.deletionLines.length=0),_.unshift(S);for(const H of _){const I=H.match(r?Mk:Ok);if(H.startsWith("diff --git")){const[,,K,,Z]=H.trim().match(Dk)??[];f.name=Z.trim(),K!==Z&&(f.prevName=K.trim())}else if(I!=null){const[,K,Z]=I;K==="---"&&Z!=="/dev/null"?(f.prevName=Z.trim(),f.name=Z.trim()):K==="+++"&&Z!=="/dev/null"&&(f.name=Z.trim())}else if(r){if(H.startsWith("new mode ")&&(f.mode=H.replace("new mode","").trim()),H.startsWith("old mode ")&&(f.prevMode=H.replace("old mode","").trim()),H.startsWith("new file mode")&&(f.type="new",f.mode=H.replace("new file mode","").trim()),H.startsWith("deleted file mode")&&(f.type="deleted",f.mode=H.replace("deleted file mode","").trim()),H.startsWith("similarity index")&&(H.startsWith("similarity index 100%")?f.type="rename-pure":f.type="rename-changed"),H.startsWith("index ")){const[,K,Z,F]=H.trim().match(zk)??[];K!=null&&(f.prevObjectId=K),Z!=null&&(f.newObjectId=Z),F!=null&&(f.mode=F)}H.startsWith("rename from ")&&(f.prevName=H.replace("rename from ","")),H.startsWith("rename to ")&&(f.name=H.replace("rename to ","").trim())}}continue}let C,A;for(;_.length>0&&(_[_.length-1]===`
|
|
1937
|
+
`||_[_.length-1]==="\r"||_[_.length-1]===`\r
|
|
1938
|
+
`||_[_.length-1]==="");)_.pop();const R=parseInt(E[3]),T=parseInt(E[1]);g=m?g:T-1,v=m?v:R-1;const P={collapsedBefore:0,splitLineCount:0,splitLineStart:0,unifiedLineCount:0,unifiedLineStart:0,additionCount:parseInt(E[4]??"1"),additionStart:R,additionLines:L,deletionCount:parseInt(E[2]??"1"),deletionStart:T,deletionLines:w,deletionLineIndex:g,additionLineIndex:v,hunkContent:[],hunkContext:E[5],hunkSpecs:S,noEOFCRAdditions:!1,noEOFCRDeletions:!1};if(isNaN(P.additionCount)||isNaN(P.deletionCount)||isNaN(P.additionStart)||isNaN(P.deletionStart)){if(u)throw Error("parsePatchContent: invalid hunk metadata");console.error("parsePatchContent: invalid hunk metadata",P);continue}for(const H of _){const I=aM(H);if(I==null){console.error("processFile: invalid rawLine:",H);continue}const{type:K,line:Z}=I;if(K==="addition")(C==null||C.type!=="change")&&(C=Uf("change",g,v),P.hunkContent.push(C)),v++,m&&f.additionLines.push(Z),C.additions++,L++,A="addition";else if(K==="deletion")(C==null||C.type!=="change")&&(C=Uf("change",g,v),P.hunkContent.push(C)),g++,m&&f.deletionLines.push(Z),C.deletions++,w++,A="deletion";else if(K==="context")(C==null||C.type!=="context")&&(C=Uf("context",g,v),P.hunkContent.push(C)),v++,g++,m&&(f.deletionLines.push(Z),f.additionLines.push(Z)),C.lines++,A="context";else if(K==="metadata"&&C!=null){if(C.type==="context"?(P.noEOFCRAdditions=!0,P.noEOFCRDeletions=!0):A==="deletion"?P.noEOFCRDeletions=!0:A==="addition"&&(P.noEOFCRAdditions=!0),m&&(A==="addition"||A==="context")){const F=f.additionLines.length-1;F>=0&&(f.additionLines[F]=Wa(f.additionLines[F]))}if(m&&(A==="deletion"||A==="context")){const F=f.deletionLines.length-1;F>=0&&(f.deletionLines[F]=Wa(f.deletionLines[F]))}}}P.additionLines=L,P.deletionLines=w,P.collapsedBefore=Math.max(P.additionStart-1-c,0),f.hunks.push(P),c=P.additionStart+P.additionCount-1;for(const H of P.hunkContent)H.type==="context"?(P.splitLineCount+=H.lines,P.unifiedLineCount+=H.lines):(P.splitLineCount+=Math.max(H.additions,H.deletions),P.unifiedLineCount+=H.deletions+H.additions);P.splitLineStart=f.splitLineCount+P.collapsedBefore,P.unifiedLineStart=f.unifiedLineCount+P.collapsedBefore,f.splitLineCount+=P.collapsedBefore+P.splitLineCount,f.unifiedLineCount+=P.collapsedBefore+P.unifiedLineCount}if(f!=null){if(f.hunks.length>0&&!m&&f.additionLines.length>0&&f.deletionLines.length>0){const b=f.hunks[f.hunks.length-1],_=b.additionStart+b.additionCount-1,S=f.additionLines.length,E=Math.max(S-_,0);f.splitLineCount+=E,f.unifiedLineCount+=E}return r||(f.prevName!=null&&f.name!==f.prevName?f.hunks.length>0?f.type="rename-changed":f.type="rename-pure":l!=null&&l.contents===""?f.type="deleted":a!=null&&a.contents===""&&(f.type="new")),f.type!=="rename-pure"&&f.type!=="rename-changed"&&(f.prevName=void 0),f}}function lM(e,n,r=!1){const a=[];for(const l of e.split(Lk))try{a.push(oM(l,n!=null?`${n}-${a.length}`:void 0,r))}catch(u){if(r)throw u;console.error(u)}return a}function Uf(e,n,r){return e==="change"?{type:"change",additions:0,deletions:0,additionLineIndex:r,deletionLineIndex:n}:{type:"context",lines:0,additionLineIndex:r,deletionLineIndex:n}}function mh(e,n,r,a=!1){const l=Y1(BO(e.name,n.name,e.contents,n.contents,e.header,n.header),{cacheKey:(()=>{if(e.cacheKey!=null&&n.cacheKey!=null)return`${e.cacheKey}:${n.cacheKey}`})(),oldFile:e,newFile:n,throwOnError:a});if(l==null)throw new Error("parseDiffFrom: FileInvalid diff -- probably need to fix something -- if the files are the same maybe?");return l}let sM=-1;var F1=class{static LoadedCustomComponent=AO;__id=`file-diff:${++sM}`;fileContainer;spriteSVG;pre;codeUnified;codeDeletions;codeAdditions;bufferBefore;bufferAfter;unsafeCSSStyle;gutterUtilityContent;headerElement;headerPrefix;headerMetadata;separatorCache=new Map;errorWrapper;placeHolder;hunksRenderer;resizeManager;scrollSyncManager;interactionManager;annotationCache=new Map;lineAnnotations=[];deletionFile;additionFile;fileDiff;renderRange;appliedPreAttributes;lastRenderedHeaderHTML;lastRowCount;enabled=!0;constructor(n={theme:Rn},r,a=!1){this.options=n,this.workerManager=r,this.isContainerManaged=a,this.hunksRenderer=this.createHunksRenderer(n),this.resizeManager=new u2,this.scrollSyncManager=new kO,this.interactionManager=new r2("diff",d0(n,typeof n.hunkSeparators=="function"||(n.hunkSeparators??"line-info")==="line-info"||n.hunkSeparators==="line-info-basic"?this.handleExpandHunk:void 0,this.getLineIndex)),this.workerManager?.subscribeToThemeChanges(this),this.enabled=!0}handleHighlightRender=()=>{this.rerender()};getHunksRendererOptions(n){return{...n,hunkSeparators:typeof n.hunkSeparators=="function"?"custom":n.hunkSeparators}}createHunksRenderer(n){return new JO(this.getHunksRendererOptions(n),this.handleHighlightRender,this.workerManager)}getLineIndex=(n,r="additions")=>{if(this.fileDiff==null)return;const a=this.fileDiff.hunks.at(-1);let l,u;e:for(const c of this.fileDiff.hunks){let d=r==="deletions"?c.deletionStart:c.additionStart;const f=r==="deletions"?c.deletionCount:c.additionCount;let m=c.splitLineStart,g=c.unifiedLineStart;if(n<d){const v=d-n;l=Math.max(g-v,0),u=Math.max(m-v,0);break e}if(n>=d+f){if(c===a){const v=n-(d+f);l=g+c.unifiedLineCount+v,u=m+c.splitLineCount+v;break e}continue}for(const v of c.hunkContent)if(v.type==="context")if(n<d+v.lines){const b=n-d;u=m+b,l=g+b;break e}else d+=v.lines,m+=v.lines,g+=v.lines;else{const b=r==="deletions"?v.deletions:v.additions;if(n<d+b){const _=n-d;l=g+(r==="additions"?v.deletions:0)+_,u=m+_;break e}else d+=b,m+=Math.max(v.deletions,v.additions),g+=v.deletions+v.additions}break e}if(!(l==null||u==null))return[l,u]};setOptions(n){n!=null&&(this.options=n,this.hunksRenderer.setOptions(this.getHunksRendererOptions(n)),this.interactionManager.setOptions(d0(n,typeof n.hunkSeparators=="function"||(n.hunkSeparators??"line-info")==="line-info"||n.hunkSeparators==="line-info-basic"?this.handleExpandHunk:void 0,this.getLineIndex)))}mergeOptions(n){this.options={...this.options,...n}}setThemeType(n){if((this.options.themeType??"system")!==n&&(this.mergeOptions({themeType:n}),this.hunksRenderer.setThemeType(n),this.headerElement!=null&&(n==="system"?delete this.headerElement.dataset.themeType:this.headerElement.dataset.themeType=n),this.pre!=null))switch(n){case"system":delete this.pre.dataset.themeType;break;case"light":case"dark":this.pre.dataset.themeType=n;break}}getHoveredLine=()=>this.interactionManager.getHoveredLine();setLineAnnotations(n){this.lineAnnotations=n}canPartiallyRender(n,r,a){return!(n||r||a||typeof this.options.hunkSeparators=="function")}setSelectedLines(n){this.interactionManager.setSelection(n)}cleanUp(n=!1){this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.workerManager?.unsubscribeToThemeChanges(this),this.renderRange=void 0,this.isContainerManaged||this.fileContainer?.remove(),this.fileContainer?.shadowRoot!=null&&(this.fileContainer.shadowRoot.innerHTML=""),this.fileContainer=void 0,this.pre!=null&&(this.pre.innerHTML="",this.pre=void 0),this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,this.bufferBefore=void 0,this.bufferAfter=void 0,this.appliedPreAttributes=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.lastRenderedHeaderHTML=void 0,this.errorWrapper=void 0,this.spriteSVG=void 0,this.lastRowCount=void 0,n?this.hunksRenderer.recycle():(this.hunksRenderer.cleanUp(),this.workerManager=void 0,this.fileDiff=void 0,this.deletionFile=void 0,this.additionFile=void 0),this.enabled=!1}virtualizedSetup(){this.enabled=!0,this.workerManager?.subscribeToThemeChanges(this)}hydrate(n){const{overflow:r="scroll",diffStyle:a="split"}=this.options,{fileContainer:l,prerenderedHTML:u}=n;wO(l,u);for(const c of l.shadowRoot?.children??[]){if(c instanceof SVGElement){this.spriteSVG=c;continue}if(c instanceof HTMLElement){if(c instanceof HTMLPreElement){this.pre=c;for(const d of c.children)!(d instanceof HTMLElement)||d.tagName.toLowerCase()!=="code"||("deletions"in d.dataset&&(this.codeDeletions=d),"additions"in d.dataset&&(this.codeAdditions=d),"unified"in d.dataset&&(this.codeUnified=d));continue}if("diffsHeader"in c.dataset){this.headerElement=c;continue}if(c instanceof HTMLStyleElement&&c.hasAttribute(k_)){this.unsafeCSSStyle=c;continue}}}if(this.pre!=null&&this.syncCodeNodesFromPre(this.pre),this.pre==null)this.render(n);else{const{lineAnnotations:c,oldFile:d,newFile:f,fileDiff:m}=n;this.fileContainer=l,delete this.pre.dataset.dehydrated,this.lineAnnotations=c??this.lineAnnotations,this.additionFile=f,this.deletionFile=d,this.fileDiff=m??(d!=null&&f!=null?mh(d,f):void 0),this.hunksRenderer.hydrate(this.fileDiff),this.renderAnnotations(),this.renderGutterUtility(),this.injectUnsafeCSS(),this.interactionManager.setup(this.pre),this.resizeManager.setup(this.pre,r==="wrap"),r==="scroll"&&a==="split"&&this.scrollSyncManager.setup(this.pre,this.codeDeletions,this.codeAdditions)}}rerender(){!this.enabled||this.fileDiff==null&&this.additionFile==null&&this.deletionFile==null||this.render({forceRender:!0,renderRange:this.renderRange})}handleExpandHunk=(n,r,a)=>{this.expandHunk(n,r,a)};expandHunk=(n,r,a)=>{this.hunksRenderer.expandHunk(n,r,a),this.rerender()};render({oldFile:n,newFile:r,fileDiff:a,forceRender:l=!1,lineAnnotations:u,fileContainer:c,containerWrapper:d,renderRange:f}){if(!this.enabled)throw new Error("FileDiff.render: attempting to call render after cleaned up");const{collapsed:m=!1}=this.options,g=m?void 0:f,v=n!=null&&r!=null&&(!ty(n,this.deletionFile)||!ty(r,this.additionFile));let b=a!=null&&a!==this.fileDiff;const _=u!=null&&(u.length>0||this.lineAnnotations.length>0)?u!==this.lineAnnotations:!1;if(!m&&G1(g,this.renderRange)&&!l&&!_&&(a!=null&&a===this.fileDiff||a==null&&!v))return!1;const{renderRange:S}=this;if(this.renderRange=g,this.deletionFile=n,this.additionFile=r,a!=null?this.fileDiff=a:n!=null&&r!=null&&v&&(b=!0,this.fileDiff=mh(n,r)),u!=null&&this.setLineAnnotations(u),this.fileDiff==null)return!1;this.hunksRenderer.setOptions({...this.options,hunkSeparators:typeof this.options.hunkSeparators=="function"?"custom":this.options.hunkSeparators}),this.hunksRenderer.setLineAnnotations(this.lineAnnotations);const{diffStyle:E="split",disableErrorHandling:L=!1,disableFileHeader:w=!1,overflow:C="scroll"}=this.options;if(w&&(this.headerElement!=null&&(this.headerElement.remove(),this.headerElement=void 0,this.lastRenderedHeaderHTML=void 0),this.headerPrefix!=null&&(this.headerPrefix.remove(),this.headerPrefix=void 0),this.headerMetadata!=null&&(this.headerMetadata.remove(),this.headerMetadata=void 0)),c=this.getOrCreateFileContainer(c,d),m){this.removeRenderedCode(),this.clearAuxiliaryNodes();try{const A=this.hunksRenderer.renderDiff(this.fileDiff,Uk);A?.headerElement!=null&&this.applyHeaderToDOM(A.headerElement,c),this.renderSeparators([]),this.injectUnsafeCSS()}catch(A){if(L)throw A;console.error(A),A instanceof Error&&this.applyErrorToDOM(A,c)}return!0}try{const A=this.getOrCreatePreNode(c);if(!(this.canPartiallyRender(l,_,v||b)&&this.applyPartialRender({previousRenderRange:S,renderRange:g}))){const R=this.hunksRenderer.renderDiff(this.fileDiff,g);if(R==null)return this.workerManager?.isInitialized()===!1&&this.workerManager.initialize().then(()=>this.rerender()),!1;R.headerElement!=null&&this.applyHeaderToDOM(R.headerElement,c),R.additionsContentAST!=null||R.deletionsContentAST!=null||R.unifiedContentAST!=null?this.applyHunksToDOM(A,R):this.pre!=null&&(this.pre.remove(),this.pre=void 0),this.renderSeparators(R.hunkData)}this.applyBuffers(A,g),this.injectUnsafeCSS(),this.renderAnnotations(),this.renderGutterUtility(),this.interactionManager.setup(A),this.resizeManager.setup(A,C==="wrap"),C==="scroll"&&E==="split"?this.scrollSyncManager.setup(A,this.codeDeletions,this.codeAdditions):this.scrollSyncManager.cleanUp()}catch(A){if(L)throw A;console.error(A),A instanceof Error&&this.applyErrorToDOM(A,c)}return!0}removeRenderedCode(){this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferBefore?.remove(),this.bufferBefore=void 0,this.bufferAfter?.remove(),this.bufferAfter=void 0,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0,this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0}clearAuxiliaryNodes(){for(const{element:n}of this.separatorCache.values())n.remove();this.separatorCache.clear();for(const{element:n}of this.annotationCache.values())n.remove();this.annotationCache.clear(),this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0}renderPlaceholder(n){if(this.fileContainer==null)return!1;if(this.cleanChildNodes(),this.placeHolder==null){const r=this.fileContainer.shadowRoot??this.fileContainer.attachShadow({mode:"open"});this.placeHolder=document.createElement("div"),this.placeHolder.dataset.placeholder="",r.appendChild(this.placeHolder)}return this.placeHolder.style.setProperty("height",`${n}px`),!0}cleanChildNodes(){this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferAfter?.remove(),this.bufferBefore?.remove(),this.codeAdditions?.remove(),this.codeDeletions?.remove(),this.codeUnified?.remove(),this.errorWrapper?.remove(),this.headerElement?.remove(),this.gutterUtilityContent?.remove(),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.pre?.remove(),this.spriteSVG?.remove(),this.unsafeCSSStyle?.remove(),this.bufferAfter=void 0,this.bufferBefore=void 0,this.codeAdditions=void 0,this.codeDeletions=void 0,this.codeUnified=void 0,this.errorWrapper=void 0,this.headerElement=void 0,this.gutterUtilityContent=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.pre=void 0,this.spriteSVG=void 0,this.unsafeCSSStyle=void 0,this.lastRenderedHeaderHTML=void 0,this.lastRowCount=void 0}renderSeparators(n){const{hunkSeparators:r}=this.options;if(this.isContainerManaged||this.fileContainer==null||typeof r!="function"){for(const{element:l}of this.separatorCache.values())l.remove();this.separatorCache.clear();return}const a=new Map(this.separatorCache);for(const l of n){const u=l.slotName;let c=this.separatorCache.get(u);if(c==null||!rM(l,c.hunkData)){c?.element.remove();const d=document.createElement("div");d.style.display="contents",d.slot=l.slotName;const f=r(l,this);f!=null&&d.appendChild(f),this.fileContainer.appendChild(d),c={element:d,hunkData:l},this.separatorCache.set(u,c)}a.delete(u)}for(const[l,{element:u}]of a.entries())this.separatorCache.delete(l),u.remove()}renderAnnotations(){if(this.isContainerManaged||this.fileContainer==null){for(const{element:a}of this.annotationCache.values())a.remove();this.annotationCache.clear();return}const n=new Map(this.annotationCache),{renderAnnotation:r}=this.options;if(r!=null&&this.lineAnnotations.length>0)for(const[a,l]of this.lineAnnotations.entries()){const u=`${a}-${ml(l)}`;let c=this.annotationCache.get(u);if(c==null||!iM(l,c.annotation)){c?.element.remove();const d=r(l);if(d==null)continue;c={element:bO(ml(l)),annotation:l},c.element.appendChild(d),this.fileContainer.appendChild(c.element),this.annotationCache.set(u,c)}n.delete(u)}for(const[a,{element:l}]of n.entries())this.annotationCache.delete(a),l.remove()}renderGutterUtility(){const n=this.options.renderGutterUtility??this.options.renderHoverUtility;if(this.fileContainer==null||n==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}const r=n(this.interactionManager.getHoveredLine);if(r!=null&&this.gutterUtilityContent!=null)return;if(r==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}const a=yO();a.appendChild(r),this.fileContainer.appendChild(a),this.gutterUtilityContent=a}getOrCreateFileContainer(n,r){const a=this.fileContainer;if(this.fileContainer=n??this.fileContainer??document.createElement(vu),a!=null&&a!==this.fileContainer&&(this.lastRenderedHeaderHTML=void 0,this.headerElement=void 0),r!=null&&this.fileContainer.parentNode!==r&&r.appendChild(this.fileContainer),this.spriteSVG==null){const l=document.createElement("div");l.innerHTML=mO;const u=l.firstChild;u instanceof SVGElement&&(this.spriteSVG=u,this.fileContainer.shadowRoot?.appendChild(this.spriteSVG))}return this.fileContainer}getFileContainer(){return this.fileContainer}getOrCreatePreNode(n){const r=n.shadowRoot??n.attachShadow({mode:"open"});return this.pre==null?(this.pre=document.createElement("pre"),this.appliedPreAttributes=void 0,this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,r.appendChild(this.pre)):this.pre.parentNode!==r&&(r.appendChild(this.pre),this.appliedPreAttributes=void 0),this.placeHolder?.remove(),this.placeHolder=void 0,this.pre}syncCodeNodesFromPre(n){this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0;for(const r of Array.from(n.children))r instanceof HTMLElement&&("unified"in r.dataset?this.codeUnified=r:"deletions"in r.dataset?this.codeDeletions=r:"additions"in r.dataset&&(this.codeAdditions=r))}applyHeaderToDOM(n,r){this.cleanupErrorWrapper(),this.placeHolder?.remove(),this.placeHolder=void 0;const a=Ya(n);if(a!==this.lastRenderedHeaderHTML){const f=document.createElement("div");f.innerHTML=a;const m=f.firstElementChild;if(!(m instanceof HTMLElement))return;this.headerElement!=null?r.shadowRoot?.replaceChild(m,this.headerElement):r.shadowRoot?.prepend(m),this.headerElement=m,this.lastRenderedHeaderHTML=a}if(this.isContainerManaged)return;const{renderHeaderPrefix:l,renderHeaderMetadata:u}=this.options;this.headerPrefix!=null&&this.headerPrefix.remove(),this.headerMetadata!=null&&this.headerMetadata.remove();const c=l?.({deletionFile:this.deletionFile,additionFile:this.additionFile,fileDiff:this.fileDiff})??void 0,d=u?.({deletionFile:this.deletionFile,additionFile:this.additionFile,fileDiff:this.fileDiff})??void 0;c!=null&&(this.headerPrefix=document.createElement("div"),this.headerPrefix.slot=Vh,c instanceof Element?this.headerPrefix.appendChild(c):this.headerPrefix.innerText=`${c}`,r.appendChild(this.headerPrefix)),d!=null&&(this.headerMetadata=document.createElement("div"),this.headerMetadata.slot=Bh,d instanceof Element?this.headerMetadata.appendChild(d):this.headerMetadata.innerText=`${d}`,r.appendChild(this.headerMetadata))}injectUnsafeCSS(){if(this.fileContainer?.shadowRoot==null)return;const{unsafeCSS:n}=this.options;n==null||n===""||(this.unsafeCSSStyle==null&&(this.unsafeCSSStyle=_O(),this.fileContainer.shadowRoot.appendChild(this.unsafeCSSStyle)),this.unsafeCSSStyle.innerText=EO(n))}applyHunksToDOM(n,r){const{overflow:a="scroll"}=this.options,l=(this.options.hunkSeparators??"line-info")==="line-info",u=a==="wrap"?r.rowCount:void 0;this.cleanupErrorWrapper(),this.applyPreNodeAttributes(n,r);let c=!1;const d=[],f=this.hunksRenderer.renderCodeAST("unified",r),m=this.hunksRenderer.renderCodeAST("deletions",r),g=this.hunksRenderer.renderCodeAST("additions",r);f!=null?(c=this.codeUnified==null||this.codeAdditions!=null||this.codeDeletions!=null,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0,this.codeUnified=Df({code:this.codeUnified,columnType:"unified",rowSpan:u,containerSize:l}),this.codeUnified.innerHTML=this.hunksRenderer.renderPartialHTML(f),d.push(this.codeUnified)):m!=null||g!=null?(m!=null?(c=this.codeDeletions==null||this.codeUnified!=null,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions=Df({code:this.codeDeletions,columnType:"deletions",rowSpan:u,containerSize:l}),this.codeDeletions.innerHTML=this.hunksRenderer.renderPartialHTML(m),d.push(this.codeDeletions)):(this.codeDeletions?.remove(),this.codeDeletions=void 0),g!=null?(c=c||this.codeAdditions==null||this.codeUnified!=null,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeAdditions=Df({code:this.codeAdditions,columnType:"additions",rowSpan:u,containerSize:l}),this.codeAdditions.innerHTML=this.hunksRenderer.renderPartialHTML(g),d.push(this.codeAdditions)):(this.codeAdditions?.remove(),this.codeAdditions=void 0)):(this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0),d.length===0?n.textContent="":c&&n.replaceChildren(...d),this.lastRowCount=r.rowCount}applyPartialRender({previousRenderRange:n,renderRange:r}){const{pre:a,codeUnified:l,codeAdditions:u,codeDeletions:c,options:{diffStyle:d="split"}}=this;if(a==null||n==null||r==null||!Number.isFinite(n.totalLines)||!Number.isFinite(r.totalLines)||this.lastRowCount==null)return!1;const f=this.getCodeColumns(d,l,c,u);if(f==null)return!1;const m=n.startingLine,g=r.startingLine,v=m+n.totalLines,b=g+r.totalLines,_=Math.max(m,g),S=Math.min(v,b);if(S<=_)return!1;const E=Math.max(0,_-m),L=Math.max(0,v-S),w=this.trimColumns({columns:f,trimStart:E,trimEnd:L,previousStart:m,overlapStart:_,overlapEnd:S,diffStyle:d});if(w<0)throw new Error("applyPartialRender: failed to trim to overlap");if(this.lastRowCount<w)throw new Error("applyPartialRender: trimmed beyond DOM row count");let C=this.lastRowCount-w;const A=(H,I)=>{if(!(I<=0||this.fileDiff==null))return this.hunksRenderer.renderDiff(this.fileDiff,{startingLine:H,totalLines:I,bufferBefore:0,bufferAfter:0})},R=A(g,Math.max(_-g,0));if(R==null&&g<_)return!1;const T=A(S,Math.max(b-S,0));if(T==null&&b>S)return!1;const P=(H,I)=>{if(H!=null){if(d==="unified"&&!Array.isArray(f))this.insertPartialHTML(d,f,H,I);else if(d==="split"&&Array.isArray(f))this.insertPartialHTML(d,f,H,I);else throw new Error("FileDiff.applyPartialRender.applyChunk: invalid chunk application");C+=H.rowCount}};return this.cleanupErrorWrapper(),P(R,"afterbegin"),P(T,"beforeend"),this.lastRowCount!==C&&(this.applyRowSpan(d,f,C),this.lastRowCount=C),!0}insertPartialHTML(n,r,a,l){if(n==="unified"&&!Array.isArray(r)){const u=this.hunksRenderer.renderCodeAST("unified",a);this.renderPartialColumn(r,u,l)}else if(n==="split"&&Array.isArray(r)){const u=this.hunksRenderer.renderCodeAST("deletions",a),c=this.hunksRenderer.renderCodeAST("additions",a);this.renderPartialColumn(r[0],u,l),this.renderPartialColumn(r[1],c,l)}else throw new Error("FileDiff.insertPartialHTML: Invalid argument composition")}renderPartialColumn(n,r,a){if(n==null||r==null)return;const l=uy(r[0]),u=uy(r[1]);if(l==null||u==null)throw new Error("FileDiff.insertPartialHTML: Unexpected AST structure");const c=u.at(0);a==="beforeend"&&c?.type==="element"&&typeof c.properties["data-buffer-size"]=="number"&&this.mergeBuffersIfNecessary(c.properties["data-buffer-size"],n.content.children[n.content.children.length-1],n.gutter.children[n.gutter.children.length-1],l,u,!0);const d=u.at(-1);a==="afterbegin"&&d?.type==="element"&&typeof d.properties["data-buffer-size"]=="number"&&this.mergeBuffersIfNecessary(d.properties["data-buffer-size"],n.content.children[0],n.gutter.children[0],l,u,!1),n.gutter.insertAdjacentHTML(a,this.hunksRenderer.renderPartialHTML(l)),n.content.insertAdjacentHTML(a,this.hunksRenderer.renderPartialHTML(u))}mergeBuffersIfNecessary(n,r,a,l,u,c){if(!(r instanceof HTMLElement)||!(a instanceof HTMLElement))return;const d=this.getBufferSize(r.dataset);d!=null&&(c?(l.shift(),u.shift()):(l.pop(),u.pop()),this.updateBufferSize(r,d+n),this.updateBufferSize(a,d+n))}applyRowSpan(n,r,a){const l=u=>{u!=null&&(u.gutter.style.setProperty("grid-row",`span ${a}`),u.content.style.setProperty("grid-row",`span ${a}`))};if(n==="unified"&&!Array.isArray(r))l(r);else if(n==="split"&&Array.isArray(r))l(r[0]),l(r[1]);else throw new Error("dun fuuuuked up")}trimColumnRows(n,r,a){let l=0,u=0,c=0,d=!1;const f=a>=0;if(n==null)return 0;const m=Array.from(n.content.children),g=Array.from(n.gutter.children);if(m.length!==g.length)throw new Error("FileDiff.trimColumnRows: columns do not match");for(;c<m.length&&!(r<=0&&!f&&!d);){const v=g[c],b=m[c];if(c++,!(v instanceof HTMLElement)||!(b instanceof HTMLElement))throw console.error({gutterElement:v,contentElement:b}),new Error("FileDiff.trimColumnRows: invalid row elements");if(d&&(d=!1,v.dataset.gutterBuffer==="annotation"&&"lineAnnotation"in b.dataset||v.dataset.gutterBuffer==="metadata"&&"noNewline"in b.dataset)){v.remove(),b.remove(),u++;continue}if("lineIndex"in v.dataset&&"lineIndex"in b.dataset){(r>0||f&&l>=a)&&(v.remove(),b.remove(),r>0&&(r--,r===0&&(d=!0)),u++),l++;continue}if("separator"in v.dataset&&"separator"in b.dataset){(r>0||f&&l>=a)&&(v.remove(),b.remove(),u++);continue}if(v.dataset.gutterBuffer==="annotation"&&"lineAnnotation"in b.dataset){(r>0||f&&l>=a)&&(v.remove(),b.remove(),u++);continue}if(v.dataset.gutterBuffer==="metadata"&&"noNewline"in b.dataset){(r>0||f&&l>=a)&&(v.remove(),b.remove(),u++);continue}if(v.dataset.gutterBuffer==="buffer"&&"contentBuffer"in b.dataset){const _=this.getBufferSize(b.dataset);if(_==null)throw new Error("FileDiff.trimColumnRows: invalid element");if(r>0){const S=Math.min(r,_),E=_-S;E>0?(this.updateBufferSize(v,E),this.updateBufferSize(b,E),u+=S):(v.remove(),b.remove(),u+=_),r-=S}else if(f){const S=l,E=l+_-1;if(a<=S)v.remove(),b.remove(),u+=_;else if(a<=E){const L=E-a+1,w=_-L;this.updateBufferSize(v,w),this.updateBufferSize(b,w),u+=L}}l+=_;continue}throw console.error({gutterElement:v,contentElement:b}),new Error("FileDiff.trimColumnRows: unknown row elements")}return u}trimColumns({columns:n,diffStyle:r,overlapEnd:a,overlapStart:l,previousStart:u,trimEnd:c,trimStart:d}){const f=Math.max(0,l-u),m=a-u;if(m<0)throw new Error("FileDiff.trimColumns: overlap ends before previous");const g=d>0,v=c>0;if(!g&&!v)return 0;const b=g?f:0,_=v?m:-1;if(r==="unified"&&!Array.isArray(n))return this.trimColumnRows(n,b,_);if(r==="split"&&Array.isArray(n)){const S=this.trimColumnRows(n[0],b,_),E=this.trimColumnRows(n[1],b,_);if(n[0]!=null&&n[1]!=null&&S!==E)throw new Error("FileDiff.trimColumns: split columns out of sync");return n[0]!=null?S:E}else throw console.error({diffStyle:r,columns:n}),new Error("FileDiff.trimColumns: Invalid columns for diffType")}getBufferSize(n){const r=Number.parseInt(n?.bufferSize??"",10);return Number.isNaN(r)?void 0:r}updateBufferSize(n,r){n.dataset.bufferSize=`${r}`,n.style.setProperty("grid-row",`span ${r}`),n.style.setProperty("min-height",`calc(${r} * 1lh)`)}getCodeColumns(n,r,a,l){function u(c){if(c==null)return;const d=c.children[0],f=c.children[1];if(!(!(d instanceof HTMLElement)||!(f instanceof HTMLElement)||d.dataset.gutter==null||f.dataset.content==null))return{gutter:d,content:f}}if(n==="unified")return u(r);{const c=u(a),d=u(l);return c!=null||d!=null?[c,d]:void 0}}applyBuffers(n,r){const{disableVirtualizationBuffers:a=!1}=this.options;if(a||r==null){this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0);return}r.bufferBefore>0?(this.bufferBefore==null&&(this.bufferBefore=document.createElement("div"),this.bufferBefore.dataset.virtualizerBuffer="before",n.before(this.bufferBefore)),this.bufferBefore.style.setProperty("height",`${r.bufferBefore}px`),this.bufferBefore.style.setProperty("contain","strict")):this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),r.bufferAfter>0?(this.bufferAfter==null&&(this.bufferAfter=document.createElement("div"),this.bufferAfter.dataset.virtualizerBuffer="after",n.after(this.bufferAfter)),this.bufferAfter.style.setProperty("height",`${r.bufferAfter}px`),this.bufferAfter.style.setProperty("contain","strict")):this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0)}applyPreNodeAttributes(n,{themeStyles:r,baseThemeType:a,additionsContentAST:l,deletionsContentAST:u,totalLines:c},d){const{diffIndicators:f="bars",disableBackground:m=!1,disableLineNumbers:g=!1,overflow:v="scroll",themeType:b="system",diffStyle:_="split"}=this.options,S={type:"diff",diffIndicators:f,disableBackground:m,disableLineNumbers:g,overflow:v,split:_==="unified"?!1:l!=null&&u!=null,themeStyles:r,themeType:a??b,totalLines:c,customProperties:d};gO(S,this.appliedPreAttributes)||(CO(n,S),this.appliedPreAttributes=S)}applyErrorToDOM(n,r){this.cleanupErrorWrapper();const a=this.getOrCreatePreNode(r);a.innerHTML="",a.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;const l=r.shadowRoot??r.attachShadow({mode:"open"});this.errorWrapper??=document.createElement("div"),this.errorWrapper.dataset.errorWrapper="",this.errorWrapper.innerHTML="",l.appendChild(this.errorWrapper);const u=document.createElement("div");u.dataset.errorMessage="",u.innerText=n.message,this.errorWrapper.appendChild(u);const c=document.createElement("pre");c.dataset.errorStack="",c.innerText=n.stack??"No Error Stack",this.errorWrapper.appendChild(c)}cleanupErrorWrapper(){this.errorWrapper?.remove(),this.errorWrapper=void 0}};function uy(e){if(!(e==null||e.type!=="element"))return e.children??[]}function uM({side:e,lineNumber:n,conflictIndex:r}){return`merge-conflict-action-${e}-${n}-${r}`}function cM(e){if(e.incomingLineNumber!=null)return{side:"additions",lineNumber:e.incomingLineNumber};if(e.currentLineNumber!=null)return{side:"deletions",lineNumber:e.currentLineNumber}}function dM(e,n){const r={...Ik,...n};return r.hunkSeparatorHeight=fM(e,n?.hunkSeparatorHeight),r}function fM(e,n){if(n!=null)return n;switch(e){case"simple":return 4;case"metadata":case"line-info":case"line-info-basic":case"custom":return 32}}let hM=-1;var pM=class extends F1{__id=`little-virtualized-file-diff:${++hM}`;top;height=0;metrics;heightCache=new Map;isVisible=!1;virtualizer;constructor(e,n,r,a,l=!1){super(e,a,l);const{hunkSeparators:u="line-info"}=this.options;this.virtualizer=n,this.metrics=dM(typeof u=="function"?"custom":u,r)}getLineHeight(e,n=!1){const r=this.heightCache.get(e);if(r!=null)return r;const a=n?2:1;return this.metrics.lineHeight*a}setOptions(e){if(e==null)return;const n=this.options.diffStyle,r=this.options.overflow,a=this.options.collapsed;super.setOptions(e),(n!==this.options.diffStyle||r!==this.options.overflow||a!==this.options.collapsed)&&(this.heightCache.clear(),this.computeApproximateSize(),this.renderRange=void 0),this.virtualizer.instanceChanged(this)}reconcileHeights(){const{overflow:e="scroll"}=this.options;if(this.fileContainer!=null&&(this.top=this.virtualizer.getOffsetInScrollContainer(this.fileContainer)),this.fileContainer==null||this.fileDiff==null){this.height=0;return}if(e==="scroll"&&this.lineAnnotations.length===0&&!this.virtualizer.config.resizeDebugging)return;const n=this.getDiffStyle();let r=!1;const a=n==="split"?[this.codeDeletions,this.codeAdditions]:[this.codeUnified];for(const l of a){if(l==null)continue;const u=l.children[1];if(u instanceof HTMLElement)for(const c of u.children){if(!(c instanceof HTMLElement))continue;const d=c.dataset.lineIndex;if(d==null)continue;const f=gM(d,n);let m=c.getBoundingClientRect().height,g=!1;c.nextElementSibling instanceof HTMLElement&&("lineAnnotation"in c.nextElementSibling.dataset||"noNewline"in c.nextElementSibling.dataset)&&("noNewline"in c.nextElementSibling.dataset&&(g=!0),m+=c.nextElementSibling.getBoundingClientRect().height);const v=this.getLineHeight(f,g);m!==v&&(r=!0,m===this.metrics.lineHeight*(g?2:1)?this.heightCache.delete(f):this.heightCache.set(f,m))}}(r||this.virtualizer.config.resizeDebugging)&&this.computeApproximateSize()}onRender=e=>this.fileContainer==null?!1:(e&&(this.top=this.virtualizer.getOffsetInScrollContainer(this.fileContainer)),this.render());cleanUp(){this.fileContainer!=null&&this.virtualizer.disconnect(this.fileContainer),super.cleanUp()}expandHunk=(e,n,r)=>{this.hunksRenderer.expandHunk(e,n,r),this.computeApproximateSize(),this.renderRange=void 0,this.virtualizer.instanceChanged(this)};setVisibility(e){this.fileContainer!=null&&(this.renderRange=void 0,e&&!this.isVisible?(this.top=this.virtualizer.getOffsetInScrollContainer(this.fileContainer),this.isVisible=!0):!e&&this.isVisible&&(this.isVisible=!1,this.rerender()))}computeApproximateSize(){const e=this.height===0;if(this.height=0,this.fileDiff==null)return;const{disableFileHeader:n=!1,expandUnchanged:r=!1,collapsed:a=!1,collapsedContextThreshold:l=Ga,hunkSeparators:u="line-info"}=this.options,{diffHeaderHeight:c,fileGap:d,hunkSeparatorHeight:f}=this.metrics,m=this.getDiffStyle(),g=u!=="simple"&&u!=="metadata"&&u!=="line-info-basic"?d:0;if(n?u!=="simple"&&u!=="metadata"&&(this.height+=d):this.height+=c,!a&&(Nu({diff:this.fileDiff,diffStyle:m,expandedHunks:r?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:l,callback:({hunkIndex:v,collapsedBefore:b,collapsedAfter:_,deletionLine:S,additionLine:E})=>{const L=E!=null?E.splitLineIndex:S.splitLineIndex,w=E!=null?E.unifiedLineIndex:S.unifiedLineIndex,C=(E?.noEOFCR??!1)||(S?.noEOFCR??!1);b>0&&(v>0&&(this.height+=g),this.height+=f+g),this.height+=this.getLineHeight(m==="split"?L:w,C),_>0&&u!=="simple"&&(this.height+=g+f)}}),this.fileDiff.hunks.length>0&&(this.height+=d),this.fileContainer!=null&&this.virtualizer.config.resizeDebugging&&!e)){const v=this.fileContainer.getBoundingClientRect();v.height!==this.height?console.log("VirtualizedFileDiff.computeApproximateSize: computed height doesnt match",{name:this.fileDiff.name,elementHeight:v.height,computedHeight:this.height}):console.log("VirtualizedFileDiff.computeApproximateSize: computed height IS CORRECT")}}render({fileContainer:e,oldFile:n,newFile:r,fileDiff:a,...l}={}){const u=this.fileContainer==null;if(this.fileDiff??=a??(n!=null&&r!=null?mh(n,r):void 0),e=this.getOrCreateFileContainer(e),this.fileDiff==null)return console.error("VirtualizedFileDiff.render: attempting to virtually render when we dont have the correct data"),!1;if(u?(this.computeApproximateSize(),this.virtualizer.connect(e,this),this.top??=this.virtualizer.getOffsetInScrollContainer(e),this.isVisible=this.virtualizer.isInstanceVisible(this.top,this.height)):this.top??=this.virtualizer.getOffsetInScrollContainer(e),!this.isVisible)return this.renderPlaceholder(this.height);const c=this.virtualizer.getWindowSpecs(),d=this.computeRenderRangeFromWindow(this.fileDiff,this.top,c);return super.render({fileDiff:this.fileDiff,fileContainer:e,renderRange:d,oldFile:n,newFile:r,...l})}getDiffStyle(){return this.options.diffStyle??"split"}getExpandedRegion(e,n,r){if(r<=0||e)return{fromStart:0,fromEnd:0,collapsedLines:Math.max(r,0),renderAll:!1};const{expandUnchanged:a=!1,collapsedContextThreshold:l=Ga}=this.options;if(a||r<=l)return{fromStart:r,fromEnd:0,collapsedLines:0,renderAll:!0};const u=this.hunksRenderer.getExpandedHunk(n),c=Math.min(Math.max(u.fromStart,0),r),d=Math.min(Math.max(u.fromEnd,0),r),f=c+d,m=f>=r;return{fromStart:c,fromEnd:d,collapsedLines:Math.max(r-f,0),renderAll:m}}getExpandedLineCount(e,n){let r=0;if(e.isPartial){for(const l of e.hunks)r+=n==="split"?l.splitLineCount:l.unifiedLineCount;return r}for(const[l,u]of e.hunks.entries()){const c=n==="split"?u.splitLineCount:u.unifiedLineCount;r+=c;const d=Math.max(u.collapsedBefore,0),{fromStart:f,fromEnd:m,renderAll:g}=this.getExpandedRegion(e.isPartial,l,d);d>0&&(r+=g?d:f+m)}const a=e.hunks.at(-1);if(a!=null&&mM(e)){const l=e.additionLines.length-(a.additionLineIndex+a.additionCount),u=e.deletionLines.length-(a.deletionLineIndex+a.deletionCount);if(a!=null&&l!==u)throw new Error(`VirtualizedFileDiff: trailing context mismatch (additions=${l}, deletions=${u}) for ${e.name}`);const c=Math.min(l,u);if(a!=null&&c>0){const{fromStart:d,renderAll:f}=this.getExpandedRegion(e.isPartial,e.hunks.length,c);r+=f?c:d}}return r}computeRenderRangeFromWindow(e,n,{top:r,bottom:a}){const{disableFileHeader:l=!1,expandUnchanged:u=!1,collapsedContextThreshold:c=Ga,hunkSeparators:d="line-info"}=this.options,{diffHeaderHeight:f,fileGap:m,hunkLineCount:g,hunkSeparatorHeight:v,lineHeight:b}=this.metrics,_=this.getDiffStyle(),S=this.height,E=this.getExpandedLineCount(e,_),L=l?m:f;if(n<r-S||n>a)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:S-L-m};if(E<=g||e.hunks.length===0)return{startingLine:0,totalLines:g,bufferBefore:0,bufferAfter:0};const w=Math.ceil(Math.max(a-r,0)/b),C=Math.ceil(w/g)*g+g,A=C/g,R=A,T=[],P=(r+a)/2,H=d==="simple"||d==="metadata"||d==="line-info-basic"?0:m;let I=n+L,K=0,Z,F,V;if(Nu({diff:e,diffStyle:_,expandedHunks:u?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:c,callback:({hunkIndex:N,collapsedBefore:q,collapsedAfter:ae,deletionLine:oe,additionLine:ue})=>{const le=ue!=null?ue.splitLineIndex:oe.splitLineIndex,de=ue!=null?ue.unifiedLineIndex:oe.unifiedLineIndex,Ce=(ue?.noEOFCR??!1)||(oe?.noEOFCR??!1);let he=q>0?v+H+(N>0?H:0):0;N===0&&d==="simple"&&(he=0),I+=he;const Be=K%g===0;if(Be&&(T.push(I-(n+L+he)),V!=null)){if(V<=0)return!0;V--}const Ge=this.getLineHeight(_==="split"?le:de,Ce),et=Math.floor(K/g);return I>r-Ge&&I<a&&(Z??=et),F==null&&I+Ge>P&&(F=et),V==null&&I>=a&&Be&&(V=R),K++,I+=Ge,ae>0&&d!=="simple"&&(I+=v+H),!1}}),Z==null)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:S-L-m};const te=T.length;F??=Z;const J=Math.round(F-A/2),W=Math.max(0,te-A),D=Math.max(0,Math.min(J,W)),Y=D*g,re=J<0?C+J*g:C,ce=T[D]??0,ie=D+re/g;return{startingLine:Y,totalLines:re,bufferBefore:ce,bufferAfter:ie<T.length?S-L-T[ie]-m:S-(I-n)-m}}};function mM(e){const n=e.hunks.at(-1);return n==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0?!1:n.additionLineIndex+n.additionCount<e.additionLines.length||n.deletionLineIndex+n.deletionCount<e.deletionLines.length}function gM(e,n){const[r,a]=e.split(",").map(Number);return n==="split"?a:r}function vM(e,n,r){if(e===n||e==null||n==null)return e===n;const a=new Set(r),l=Object.keys(e),u=new Set(Object.keys(n));for(const c of l)if(u.delete(c),!a.has(c)&&(!(c in n)||e[c]!==n[c]))return!1;for(const c of Array.from(u))if(!a.has(c))return!1;return!0}function bM(e,n){return $1(e?.theme??Rn,n?.theme??Rn)&&vM(e,n,["theme"])}const cy=(e,n)=>{const r=e.replace(/\r\n/g,`
|
|
1939
|
+
`);return{bytes:new TextEncoder().encode(e).length,fileCount:n,lineCount:r.length===0?0:r.split(`
|
|
1940
|
+
`).length}},yM=e=>{if(e.trim().length===0)return{files:[],stats:cy(e,0)};const r=lM(e,"opencr-review",!0).flatMap(a=>a.files);return{files:r,stats:cy(e,r.length)}},_M=e=>{try{return{data:yM(e),error:null}}catch(n){return{data:null,error:n instanceof Error?n.message:String(n)}}},X1=e=>{let n=0,r=0;for(const a of e.hunks)n+=a.additionLines,r+=a.deletionLines;return{additions:n,deletions:r}},Ou=(e,n)=>e.cacheKey??`${e.name}-${n}`,SM=e=>!e.prevName||e.prevName===e.name?e.name:`${e.prevName} -> ${e.name}`,xM=(e,n)=>n!=="split"||e.type!=="new"&&e.type!=="deleted"?e:{...e,type:"change"},EM={position:"absolute",top:0,bottom:0,textAlign:"center"},wM={display:"contents"};function CM(e,n){return typeof window>"u"&&n!=null?M.jsxs(M.Fragment,{children:[M.jsx("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:n}}),e]}):M.jsx(M.Fragment,{children:e})}const AM=z.createContext(void 0);function kM(){return z.useContext(AM)}const TM=z.createContext(void 0);function LM(e){const n=z.useRef(e);return z.useInsertionEffect(()=>{n.current=e}),z.useCallback((...r)=>n.current(...r),[])}function RM({fileDiff:e,actions:n,deletionFile:r,additionFile:a,renderHeaderPrefix:l,renderHeaderMetadata:u,renderAnnotation:c,renderGutterUtility:d,renderHoverUtility:f,renderMergeConflictUtility:m,lineAnnotations:g,getHoveredLine:v,getInstance:b}){const _=d??f,S=l?.({fileDiff:e,deletionFile:r,additionFile:a}),E=u?.({fileDiff:e,deletionFile:r,additionFile:a});return M.jsxs(M.Fragment,{children:[S!=null&&M.jsx("div",{slot:Vh,children:S}),E!=null&&M.jsx("div",{slot:Bh,children:E}),c!=null&&g?.map((L,w)=>M.jsx("div",{slot:ml(L),children:c(L)},w)),n!=null&&m!=null&&b!=null&&n.map(L=>{const w=NM(L);return M.jsx("div",{slot:w,style:wM,children:m(L,b)},w)}),_!=null&&M.jsx("div",{slot:"gutter-utility-slot",style:EM,children:_(v)})]})}function NM(e){const n=cM(e);return n!=null?uM({...n,conflictIndex:e.conflictIndex}):void 0}const OM=typeof window>"u"?z.useEffect:z.useLayoutEffect;function MM({oldFile:e,newFile:n,fileDiff:r,options:a,lineAnnotations:l,selectedLines:u,prerenderedHTML:c,metrics:d}){const f=kM(),m=z.useContext(TM),g=z.useRef(null),v=LM(b=>{if(b!=null){if(g.current!=null)throw new Error("useFileDiffInstance: An instance should not already exist when a node is created");f!=null?g.current=new pM(a,f,d,m,!0):g.current=new F1(a,m,!0),g.current.hydrate({fileDiff:r,oldFile:e,newFile:n,fileContainer:b,lineAnnotations:l,prerenderedHTML:c})}else{if(g.current==null)throw new Error("useFileDiffInstance: A FileDiff instance should exist when unmounting");g.current.cleanUp(),g.current=null}});return OM(()=>{const{current:b}=g;if(b==null)return;const _=!bM(b.options,a);b.setOptions(a),b.render({forceRender:_,fileDiff:r,oldFile:e,newFile:n,lineAnnotations:l}),u!==void 0&&b.setSelectedLines(u)}),{ref:v,getHoveredLine:z.useCallback(()=>g.current?.getHoveredLine(),[])}}function DM({fileDiff:e,options:n,metrics:r,lineAnnotations:a,selectedLines:l,className:u,style:c,prerenderedHTML:d,renderAnnotation:f,renderHeaderPrefix:m,renderHeaderMetadata:g,renderGutterUtility:v,renderHoverUtility:b}){const{ref:_,getHoveredLine:S}=MM({fileDiff:e,options:n,metrics:r,lineAnnotations:a,selectedLines:l,prerenderedHTML:d});return M.jsx(vu,{ref:_,className:u,style:c,children:CM(RM({fileDiff:e,renderHeaderPrefix:m,renderHeaderMetadata:g,renderAnnotation:f,renderGutterUtility:v,lineAnnotations:a,renderHoverUtility:b,getHoveredLine:S}),d)})}function zM(){const e=at(u=>u.draftSelection),n=at(u=>u.draftNoteBody),r=at(u=>u.setDraftNoteBody),a=at(u=>u.addNote),l=at(u=>u.cancelNote);return e==null?null:M.jsx("div",{className:"px-3 py-3",children:M.jsxs("div",{className:"w-full max-w-[500px] bg-card",children:[M.jsxs("div",{className:"flex items-center gap-2 bg-muted/40 px-3 py-2",children:[M.jsx(qE,{className:"size-4 text-foreground"}),M.jsx("div",{className:"font-sans text-sm font-medium",children:HA(e.range)})]}),M.jsxs("div",{className:"p-3",children:[M.jsx("textarea",{value:n,onChange:u=>r(u.target.value),placeholder:"Leave a note",className:"min-h-28 w-full resize-y bg-muted/30 px-3 py-2 font-sans text-sm outline-none transition focus:ring-1 focus:ring-foreground/20"}),M.jsxs("div",{className:"mt-3 flex justify-end gap-2",children:[M.jsx(Nn,{type:"button",size:"sm",variant:"ghost",onClick:l,children:"Cancel"}),M.jsx(Nn,{type:"button",size:"sm",onClick:a,disabled:n.trim().length===0,children:"Add note"})]})]})]})})}function IM({noteId:e}){const n=at(z.useCallback(l=>l.notes.find(u=>u.id===e)??null,[e])),r=at(l=>l.activeNoteId),a=at(l=>l.selectNote);return n==null?null:M.jsx("div",{id:d_(n.id),className:"px-3 py-2",children:M.jsx(E_,{value:r===n.id?[n.id]:[],onValueChange:l=>a(l[0]??null),className:"w-full",children:M.jsxs(w_,{value:n.id,className:gt("overflow-hidden border-0 bg-card",r===n.id&&"bg-muted/40"),children:[M.jsx(C_,{className:"px-3 py-2 hover:bg-muted/20 hover:no-underline",children:M.jsx("span",{className:"truncate font-sans text-sm",children:ru(n.range)})}),M.jsx(A_,{className:"px-3 pb-3",children:M.jsx("p",{className:"whitespace-pre-wrap font-sans text-sm leading-6 text-foreground",children:n.body})})]})})})}const PM=`
|
|
1941
|
+
@media (pointer: fine) {
|
|
1942
|
+
[data-line][data-hovered] {
|
|
1943
|
+
background-color: var(--diffs-line-bg, var(--diffs-bg));
|
|
1944
|
+
}
|
|
1945
|
+
|
|
1946
|
+
[data-column-number][data-hovered] {
|
|
1947
|
+
background-color: var(--diffs-bg);
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
[data-line-type='change-addition'][data-column-number][data-hovered] {
|
|
1951
|
+
background-color: var(--diffs-bg-addition-number);
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
[data-line-type='change-deletion'][data-column-number][data-hovered] {
|
|
1955
|
+
background-color: var(--diffs-bg-deletion-number);
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1958
|
+
[data-column-number][data-hovered]:hover {
|
|
1959
|
+
background-color: var(--diffs-bg-hover);
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
[data-background] [data-line-type='change-addition'][data-column-number][data-hovered]:hover {
|
|
1963
|
+
background-color: var(--diffs-bg-addition-hover);
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
[data-background] [data-line-type='change-deletion'][data-column-number][data-hovered]:hover {
|
|
1967
|
+
background-color: var(--diffs-bg-deletion-hover);
|
|
1968
|
+
}
|
|
1969
|
+
}
|
|
1970
|
+
`;function UM({fileDiff:e,fileIndex:n,containerId:r,diffViewMode:a,isDarkMode:l,diffStyle:u}){const c=Ou(e,n),d=SM(e),f=X1(e),m=xM(e,a),g=at(Z=>Z.notes),v=at(Z=>Z.draftSelection?.fileId===c?Z.draftSelection:null),b=at(Z=>Z.activeSelection?.fileId===c?Z.activeSelection.range:null),_=at(Z=>Z.startSelection),S=at(Z=>Z.changeSelection),E=at(Z=>Z.endSelection),L=z.useRef(void 0),w=z.useRef(null),C=z.useMemo(()=>jA(c,g,v),[g,v,c]),A=z.useCallback(()=>{w.current=null;const Z=L.current??null;L.current=void 0,S(c,d,Z)},[S,c,d]),R=z.useCallback(()=>{w.current!=null&&(cancelAnimationFrame(w.current),w.current=null),L.current=void 0},[]);z.useEffect(()=>()=>{w.current!=null&&cancelAnimationFrame(w.current)},[]);const T=z.useCallback(()=>{R(),_()},[R,_]),P=z.useCallback(Z=>{L.current=Z,w.current==null&&(w.current=requestAnimationFrame(A))},[A]),H=z.useCallback(Z=>{R(),E(c,d,Z)},[R,E,c,d]),I=z.useMemo(()=>({diffStyle:a,disableFileHeader:!0,enableLineSelection:!0,hunkSeparators:"line-info-basic",lineDiffType:"word-alt",lineHoverHighlight:"both",overflow:"scroll",unsafeCSS:PM,onLineSelectionStart:T,onLineSelectionChange:P,onLineSelectionEnd:H,themeType:l?"dark":"light",theme:{light:"pierre-light",dark:"pierre-dark"}}),[a,P,H,T,l]),K=z.useCallback(Z=>{const F=Z.metadata;return F.kind==="draft-note"?M.jsx(zM,{}):M.jsx(IM,{noteId:F.noteId})},[]);return M.jsxs(w_,{id:r,value:c,className:"overflow-hidden border-0 bg-card",children:[M.jsxs(C_,{className:"items-center gap-3 px-4 py-3 hover:bg-muted/30 hover:no-underline",children:[M.jsx("span",{className:"min-w-0 flex-1 truncate font-mono text-xs sm:text-sm",children:d}),M.jsxs("span",{className:"ml-auto flex shrink-0 items-center gap-2 font-sans text-xs",children:[f.additions>0?M.jsxs("span",{className:"text-green-700",children:["+",f.additions]}):null,f.deletions>0?M.jsxs("span",{className:"text-red-700",children:["-",f.deletions]}):null]})]}),M.jsx(A_,{className:"px-4 pb-4",children:M.jsx("div",{className:"overflow-hidden bg-background",children:M.jsx(DM,{fileDiff:m,className:"bg-background",style:u,lineAnnotations:C,selectedLines:b,renderAnnotation:K,options:I})})})]})}const dy=6,Hf=e=>`review-file-diff-${encodeURIComponent(e)}`,fy=e=>({path:e,folders:new Map,files:[]}),W1=e=>{const n=Array.from(e.folders.values()).toSorted((a,l)=>a.path.localeCompare(l.path)).map(a=>{const l=a.path.lastIndexOf("/"),u=l===-1?a.path:a.path.slice(l+1);return{type:"folder",key:`folder:${a.path}`,path:a.path,name:u,items:W1(a)}}),r=[...e.files].toSorted((a,l)=>a.name.localeCompare(l.name));return[...n,...r]},HM=e=>{const n=fy("");for(const[a,l]of e.entries()){const u=l.name.replace(/\\+/g,"/"),c=u.split("/").filter(_=>_.length>0),d=c.length===0?u:c[c.length-1]??u,f=c.slice(0,-1),m=Ou(l,a),g=X1(l);let v=n,b="";for(const _ of f){b=b.length===0?_:`${b}/${_}`;const S=v.folders.get(_);if(S!=null){v=S;continue}const E=fy(b);v.folders.set(_,E),v=E}v.files.push({type:"file",key:`file:${m}`,fileId:m,name:d,additions:g.additions,deletions:g.deletions})}const r=Array.from(n.folders.values()).toSorted((a,l)=>a.path.localeCompare(l.path)).map(a=>a.path);return{items:W1(n),defaultExpandedFolderPaths:r}},jM=e=>({"--diffs-bg-selection-override":e?"oklch(0.28 0 0 / 0.92)":"oklch(0.93 0 0 / 0.96)","--diffs-bg-selection-number-override":e?"oklch(0.34 0 0 / 0.96)":"oklch(0.89 0 0 / 0.98)","--diffs-bg-selection-background-override":e?"oklch(0.28 0 0 / 0.92)":"oklch(0.93 0 0 / 0.96)","--diffs-bg-selection-number-background-override":e?"oklch(0.34 0 0 / 0.96)":"oklch(0.89 0 0 / 0.98)","--diffs-selection-color-override":e?"oklch(0.97 0 0)":"oklch(0.20 0 0)","--diffs-bg-hover-override":e?"oklch(0.24 0 0 / 0.95)":"oklch(0.97 0 0 / 0.98)"});function VM({patch:e,parsedPatch:n,diffViewMode:r,isDarkMode:a}){const l=z.useMemo(()=>jM(a),[a]),u=at(R=>R.activeSelection),c=at(R=>R.activeNoteId),d=n.data?.files??[],{items:f,defaultExpandedFolderPaths:m}=z.useMemo(()=>HM(d),[d]),g=z.useMemo(()=>(d.length>dy?d.slice(0,dy):d).map((T,P)=>Ou(T,P)),[d]),[v,b]=z.useState(g),[_,S]=z.useState([...m]),[E,L]=z.useState(!1),w=u?.fileId??null;z.useEffect(()=>{b(g)},[g]),z.useEffect(()=>{S([...m])},[m]),z.useEffect(()=>{w!=null&&b(R=>R.includes(w)?R:[...R,w])},[w]),z.useEffect(()=>{if(w==null||c==null)return;b(T=>T.includes(w)?T:[...T,w]);const R=requestAnimationFrame(()=>{const T=document.getElementById(d_(c));if(T!=null){T.scrollIntoView({behavior:"smooth",block:"center"});return}document.getElementById(Hf(w))?.scrollIntoView({behavior:"smooth",block:"start"})});return()=>{cancelAnimationFrame(R)}},[w,c]);const C=z.useCallback(R=>{b(T=>T.includes(R)?T:[...T,R]),requestAnimationFrame(()=>{document.getElementById(Hf(R))?.scrollIntoView({behavior:"smooth",block:"start"})})},[]),A=(R,T=0)=>R.map(P=>{const K=8+T*14;if(P.type==="folder"){const F=_.includes(P.path);return M.jsxs("div",{className:"space-y-0.5",children:[M.jsxs(Nn,{type:"button",variant:"ghost",size:"sm",onClick:()=>{S(V=>V.includes(P.path)?V.filter(te=>te!==P.path):[...V,P.path])},className:"h-7 w-full justify-start gap-1.5 rounded-md px-2 font-mono text-xs",style:{paddingLeft:K},children:[M.jsx(db,{className:gt("size-3 text-muted-foreground transition-transform",F&&"rotate-90")}),M.jsx(GE,{className:"size-3.5 text-muted-foreground"}),M.jsx("span",{className:"truncate",children:P.name})]}),F?M.jsx("div",{className:"space-y-0.5",children:A(P.items,T+1)}):null]},P.key)}const Z=P.fileId===w;return M.jsxs(Nn,{type:"button",variant:"ghost",size:"sm",onClick:()=>C(P.fileId),className:gt("h-7 w-full justify-start gap-1.5 rounded-md px-2 font-mono text-xs",Z&&"bg-muted text-foreground"),style:{paddingLeft:K},children:[M.jsx(VE,{className:"size-3.5 text-muted-foreground"}),M.jsx("span",{className:"min-w-0 flex-1 truncate text-left",children:P.name}),M.jsxs("span",{className:"ml-auto flex shrink-0 items-center gap-1 text-[0.65rem]",children:[P.additions>0?M.jsxs("span",{className:"text-green-700",children:["+",P.additions]}):null,P.deletions>0?M.jsxs("span",{className:"text-red-700",children:["-",P.deletions]}):null]})]},P.key)});return M.jsx(Eh,{className:"min-h-0 flex-1",children:M.jsx("div",{className:"p-4",children:e.trim().length===0?M.jsxs(rl,{children:[M.jsx(HE,{}),M.jsx(al,{children:"No diff content was returned."}),M.jsx(ol,{children:"The current review request resolved successfully, but there are no changes to show."})]}):n.error?M.jsxs(rl,{variant:"destructive",children:[M.jsx(uu,{}),M.jsx(al,{children:"Diff parsing failed."}),M.jsx(ol,{children:n.error})]}):M.jsxs("div",{className:"flex flex-col gap-4 lg:flex-row lg:items-start",children:[M.jsxs("aside",{className:gt("shrink-0 lg:sticky lg:top-4",E?"w-full lg:w-10":"w-full lg:w-72"),children:[M.jsx("div",{className:gt("flex",E?"justify-center":"justify-end pb-1"),children:M.jsx(Nn,{type:"button",variant:"ghost",size:"icon-sm","aria-label":E?"Expand file tree":"Collapse file tree",title:E?"Expand file tree":"Collapse file tree",onClick:()=>{L(R=>!R)},children:E?M.jsx(db,{}):M.jsx(LE,{})})}),E?null:M.jsx("div",{className:"space-y-0.5",children:A(f)})]}),M.jsx(E_,{multiple:!0,className:"min-w-0 flex-1 gap-3",value:v,onValueChange:R=>{if(Array.isArray(R)){b(R);return}b(R?[R]:[])},children:d.map((R,T)=>{const P=Ou(R,T);return M.jsx(UM,{fileDiff:R,fileIndex:T,containerId:Hf(P),diffViewMode:r,isDarkMode:a,diffStyle:l},P)})})]})})})}function BM({source:e}){switch(e.kind){case"git":return M.jsxs(M.Fragment,{children:[M.jsxs("div",{className:"flex items-center gap-2",children:[M.jsx("span",{className:"font-sans text-[0.9375rem] text-muted-foreground",children:"Project:"}),M.jsx("span",{className:"truncate font-mono text-[0.9375rem] text-foreground/85",children:e.repositoryPath})]}),M.jsxs("div",{className:"flex items-center gap-6",children:[M.jsxs("div",{className:"flex items-center gap-2",children:[M.jsx("span",{className:"font-sans text-[0.9375rem] text-muted-foreground",children:"Head:"}),M.jsx("span",{className:"truncate font-mono text-[0.9375rem] text-foreground/85",children:e.baseCommitish})]}),M.jsxs("div",{className:"flex items-center gap-2",children:[M.jsx("span",{className:"font-sans text-[0.9375rem] text-muted-foreground",children:"Target:"}),M.jsx("span",{className:"truncate font-mono text-[0.9375rem] text-foreground/85",children:e.targetCommitish})]})]})]});case"pull-request":return M.jsxs(M.Fragment,{children:[M.jsxs("div",{className:"flex items-center gap-2",children:[M.jsx("span",{className:"font-sans text-[0.9375rem] text-muted-foreground",children:"Project:"}),M.jsxs("span",{className:"truncate font-mono text-[0.9375rem] text-foreground/85",children:[e.owner,"/",e.repo]})]}),M.jsx("div",{className:"flex items-center gap-6",children:M.jsxs("div",{className:"flex items-center gap-2",children:[M.jsx("span",{className:"font-sans text-[0.9375rem] text-muted-foreground",children:"Pull Request:"}),M.jsxs("span",{className:"truncate font-mono text-[0.9375rem] text-foreground/85",children:["#",e.pullNumber]})]})})]});case"stdin":return M.jsxs(M.Fragment,{children:[M.jsxs("div",{className:"flex items-center gap-2",children:[M.jsx("span",{className:"font-sans text-[0.9375rem] text-muted-foreground",children:"Project:"}),M.jsx("span",{className:"truncate font-mono text-[0.9375rem] text-foreground/85",children:"stdin"})]}),M.jsx("div",{className:"flex items-center gap-6",children:M.jsxs("div",{className:"flex items-center gap-2",children:[M.jsx("span",{className:"font-sans text-[0.9375rem] text-muted-foreground",children:"Source:"}),M.jsx("span",{className:"truncate font-mono text-[0.9375rem] text-foreground/85",children:e.stdinSource})]})})]})}}function GM({source:e,diffViewMode:n,onDiffViewModeChange:r}){return M.jsx("div",{className:"shrink-0 border-b px-4 py-3",children:M.jsxs("div",{className:"flex items-start justify-between gap-3",children:[M.jsx("div",{className:"min-w-0 flex-1",children:M.jsx("div",{className:"flex flex-col gap-2",children:M.jsx(BM,{source:e})})}),M.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[M.jsx(Nn,{type:"button",variant:n==="unified"?"secondary":"ghost",size:"icon-sm","aria-label":"Unified layout",title:"Unified layout",onClick:()=>r("unified"),children:M.jsx(WE,{})}),M.jsx(Nn,{type:"button",variant:n==="split"?"secondary":"ghost",size:"icon-sm","aria-label":"Split layout",title:"Split layout",onClick:()=>r("split"),children:M.jsx(zE,{})})]})]})})}function $M(){const e=z.useCallback(()=>Yy("/api/review",{errorPrefix:"Failed to load review session"}),[]),{data:n,error:r,isLoading:a}=Fy(e),[l,u]=z.useState("unified");z.useEffect(()=>{n&&u(n.session.diffViewMode)},[n]);const c=z.useMemo(()=>n?_M(n.diff.patch):{data:null,error:null},[n]);return{reviewSession:n,error:r,isLoading:a,parsedPatch:c,diffViewMode:l,setDiffViewMode:u}}function qM({isDarkMode:e}){const{reviewSession:n,error:r,isLoading:a,parsedPatch:l,diffViewMode:u,setDiffViewMode:c}=$M(),d=at(f=>f.reset);return z.useEffect(()=>{d()},[d,n]),a?M.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[M.jsx("div",{className:"shrink-0 px-4 py-2.5",children:M.jsx($f,{className:"h-4 w-64"})}),M.jsx("div",{className:"min-h-0 flex-1 p-4",children:M.jsx($f,{className:"h-full w-full"})})]}):r?M.jsxs(rl,{variant:"destructive",children:[M.jsx(uu,{}),M.jsx(al,{children:"Review session failed to load."}),M.jsx(ol,{children:r})]}):n?M.jsxs(IA,{orientation:"horizontal",className:"h-full min-h-0",children:[M.jsx(Yb,{defaultSize:67,minSize:45,children:M.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[M.jsx(GM,{source:n.source,diffViewMode:u,onDiffViewModeChange:c}),M.jsx(VM,{patch:n.diff.patch,parsedPatch:l,diffViewMode:u,isDarkMode:e})]})}),M.jsx(PA,{}),M.jsx(Yb,{defaultSize:33,minSize:20,children:M.jsx(YA,{})})]}):M.jsxs(rl,{children:[M.jsx(uu,{}),M.jsx(al,{children:"No review session is available."}),M.jsx(ol,{children:"Start the CLI again to open a review session."})]})}function YM(e="/api/heartbeat"){z.useEffect(()=>{const n=new EventSource(e);return()=>{n.close()}},[e])}const hy=e=>e==="/dev"||e==="/debug"?"debug":"review";function FM(){const[e,n]=z.useState(()=>hy(window.location.pathname));z.useEffect(()=>{const a=()=>{n(hy(window.location.pathname))};return window.addEventListener("popstate",a),()=>{window.removeEventListener("popstate",a)}},[]);const r=z.useCallback(a=>{const l=a==="debug"?"/debug":"/";window.location.pathname!==l&&window.history.pushState({},"",l),n(a)},[]);return{page:e,navigate:r}}const Q1="opencr-theme",XM=()=>{if(typeof window>"u")return"light";const e=window.localStorage.getItem(Q1);return e==="light"||e==="dark"?e:window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"};function WM(){const[e,n]=z.useState(XM);z.useEffect(()=>{document.documentElement.classList.toggle("dark",e==="dark"),window.localStorage.setItem(Q1,e)},[e]);const r=z.useCallback(()=>{n(a=>a==="dark"?"light":"dark")},[]);return{theme:e,isDarkMode:e==="dark",toggleTheme:r}}function QM(){const{page:e,navigate:n}=FM(),{theme:r,isDarkMode:a,toggleTheme:l}=WM();return YM(),M.jsx("main",{className:"h-screen overflow-hidden bg-background",children:M.jsxs("div",{className:"flex h-full w-full flex-col",children:[M.jsxs("header",{className:"flex h-12 shrink-0 items-center justify-between border-b px-4 sm:px-5",children:[M.jsx("div",{className:"font-sans text-xl font-bold tracking-tight text-foreground",children:"Opendiff"}),M.jsxs("div",{className:"flex items-center gap-1",children:[e==="debug"?M.jsx(Nn,{type:"button",variant:"ghost",size:"icon-sm","aria-label":"Close debug view",onClick:()=>n("review"),children:M.jsx(tw,{})}):null,M.jsx(Nn,{type:"button",variant:"ghost",size:"icon-sm","aria-label":r==="dark"?"Switch to light mode":"Switch to dark mode",onClick:l,children:r==="dark"?M.jsx(ZE,{}):M.jsx(FE,{})})]})]}),M.jsx("div",{className:"min-h-0 flex-1",children:e==="review"?M.jsx(qM,{isDarkMode:a}):M.jsx(nA,{})})]})})}const Z1=document.getElementById("root");if(!Z1)throw new Error("Root element not found");_E.createRoot(Z1).render(M.jsx(Ua.StrictMode,{children:M.jsx(QM,{})}));
|