@akadotsh/local-diff 0.0.0-stage → 0.1.4
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 +17 -0
- package/README.md +92 -2
- package/THIRD_PARTY_NOTICES/agent-icons-NOTICE.txt +14 -0
- package/THIRD_PARTY_NOTICES/material-icon-theme-MIT.txt +8 -0
- package/THIRD_PARTY_NOTICES/pierre-diffs-Apache-2.0.txt +189 -0
- package/THIRD_PARTY_NOTICES/pierre-highlights-Apache-2.0.txt +189 -0
- package/THIRD_PARTY_NOTICES/pierre-highlights-NOTICE.txt +157 -0
- package/THIRD_PARTY_NOTICES/pierre-theme-Apache-2.0.txt +189 -0
- package/THIRD_PARTY_NOTICES/pierre-theme-NOTICE.txt +32 -0
- package/THIRD_PARTY_NOTICES/pierre-theming-Apache-2.0.txt +189 -0
- package/THIRD_PARTY_NOTICES/pierre-trees-Apache-2.0.txt +189 -0
- package/THIRD_PARTY_NOTICES/pierre-trees-NOTICE.txt +35 -0
- package/THIRD_PARTY_NOTICES/preact-MIT.txt +21 -0
- package/THIRD_PARTY_NOTICES/react-MIT.txt +21 -0
- package/THIRD_PARTY_NOTICES/react-dom-MIT.txt +21 -0
- package/THIRD_PARTY_NOTICES/shiki-MIT.txt +22 -0
- package/dist/assets/3d-D7X6X7Qy.js +1 -0
- package/dist/assets/Explorer-C98lOZcC.js +1359 -0
- package/dist/assets/abap-BdImnpbu.js +1 -0
- package/dist/assets/abap-CcJBIOrj.js +1 -0
- package/dist/assets/abc-CCeclbK7.js +1 -0
- package/dist/assets/actionscript-3-B3316cI-.js +1 -0
- package/dist/assets/actionscript-9FDQ1Rks.js +1 -0
- package/dist/assets/ada-BIOnG6TC.js +1 -0
- package/dist/assets/ada-DMaoiERx.js +1 -0
- package/dist/assets/adobe-illustrator-BGKGzc0H.js +1 -0
- package/dist/assets/adobe-illustrator_light-BOAYnYmR.js +1 -0
- package/dist/assets/adobe-photoshop-D0HKrqEl.js +1 -0
- package/dist/assets/adobe-photoshop_light-DUZqNSG5.js +1 -0
- package/dist/assets/adobe-swc-DGfHZ-jC.js +1 -0
- package/dist/assets/adonis-C7RN5Izl.js +1 -0
- package/dist/assets/advpl-BH7NWq88.js +1 -0
- package/dist/assets/advpl-include.clone-D22P3_Ti.js +1 -0
- package/dist/assets/advpl-ptm.clone-CWoEqwdH.js +1 -0
- package/dist/assets/advpl-tlpp.clone-TXXmcOUH.js +1 -0
- package/dist/assets/agent-DUH2djGl.js +1 -0
- package/dist/assets/ahk-BrbAagtO.js +1 -0
- package/dist/assets/ahk2-8Zs4aa1G.js +1 -0
- package/dist/assets/ahk2.clone-DP8Yi_xU.js +1 -0
- package/dist/assets/amplify-BJv4w1dK.js +1 -0
- package/dist/assets/android-Dt3bacyd.js +1 -0
- package/dist/assets/andromeeda-C4gqWexZ.js +1 -0
- package/dist/assets/andromeeda-dzT1arR_.js +1 -0
- package/dist/assets/angular-9Ef6bkvi.js +1 -0
- package/dist/assets/angular-component.clone-CLLjn73h.js +1 -0
- package/dist/assets/angular-directive.clone-oP1YAUpf.js +1 -0
- package/dist/assets/angular-guard.clone-CGkWyUhE.js +1 -0
- package/dist/assets/angular-html-D_SYSyRt.js +1 -0
- package/dist/assets/angular-interceptor.clone-DqQKnRjE.js +1 -0
- package/dist/assets/angular-pipe.clone-DtTYipUr.js +1 -0
- package/dist/assets/angular-resolver.clone-CGkWyUhE.js +1 -0
- package/dist/assets/angular-service.clone-D8psbH0r.js +1 -0
- package/dist/assets/angular-ts-DGq0tZX5.js +1 -0
- package/dist/assets/antlr-7EOjMBbT.js +1 -0
- package/dist/assets/apache-Pmp26Uib.js +1 -0
- package/dist/assets/apex-DhZFqWV2.js +1 -0
- package/dist/assets/apiblueprint-cJwpxiqX.js +1 -0
- package/dist/assets/apl-ChzvTHjC.js +1 -0
- package/dist/assets/apollo-DVLsdWEo.js +1 -0
- package/dist/assets/applescript-Co6uUVPk.js +1 -0
- package/dist/assets/applescript-N-_1CErH.js +1 -0
- package/dist/assets/apps-script-BJqbefxc.js +1 -0
- package/dist/assets/appveyor-D-Cnhmez.js +1 -0
- package/dist/assets/appwrite-vdYGYl0j.js +1 -0
- package/dist/assets/ara-BRHolxvo.js +1 -0
- package/dist/assets/architecture-Bo2hGzCM.js +1 -0
- package/dist/assets/arduino-DObVG_ug.js +1 -0
- package/dist/assets/asciidoc-CSVQ5wI8.js +1 -0
- package/dist/assets/asciidoc-YGPb1rVx.js +1 -0
- package/dist/assets/asm-D_Q5rh1f.js +1 -0
- package/dist/assets/assembly-BHIkKwjh.js +1 -0
- package/dist/assets/astro-CC4vlZQC.js +1 -0
- package/dist/assets/astro-DTjqU0_L.js +1 -0
- package/dist/assets/astro-config-w12hcW_1.js +1 -0
- package/dist/assets/astyle-BKPTrycv.js +1 -0
- package/dist/assets/audio-Bf0bJU0H.js +1 -0
- package/dist/assets/aurelia-Chs1CGbQ.js +1 -0
- package/dist/assets/aurora-x-B7pmKBD2.js +1 -0
- package/dist/assets/aurora-x-D-2ljcwZ.js +1 -0
- package/dist/assets/authors-cqEXTiTm.js +1 -0
- package/dist/assets/auto-COJQtYR9.js +1 -0
- package/dist/assets/auto_light-D-hC_HZG.js +1 -0
- package/dist/assets/autohotkey-BFC4EBU9.js +1 -0
- package/dist/assets/autoit-CoDMTrMW.js +1 -0
- package/dist/assets/awk-DMzUqQB5.js +1 -0
- package/dist/assets/ayu-dark-BBURKmLH.js +1 -0
- package/dist/assets/ayu-dark-DYE7WIF3.js +1 -0
- package/dist/assets/ayu-light-BA47KaF1.js +1 -0
- package/dist/assets/ayu-light-DwHC-by_.js +1 -0
- package/dist/assets/ayu-mirage-32ctXXKs.js +1 -0
- package/dist/assets/ayu-mirage-DKqT1wVu.js +1 -0
- package/dist/assets/azure-BVA_Zyq9.js +1 -0
- package/dist/assets/azure-pipelines-4p_6vtkK.js +1 -0
- package/dist/assets/babel-7fe2qDhk.js +1 -0
- package/dist/assets/ballerina-BFfxhgS-.js +1 -0
- package/dist/assets/ballerina-BKk_dait.js +1 -0
- package/dist/assets/bashly-BNIjb7AL.js +1 -0
- package/dist/assets/bashly-hook-AwykSu0X.js +1 -0
- package/dist/assets/bashly-settings.clone-CuzeVkcu.js +1 -0
- package/dist/assets/bashly-settings_light.clone-hHi2zhtp.js +1 -0
- package/dist/assets/bashly-strings.clone-Bs7vBRXg.js +1 -0
- package/dist/assets/bashly-strings_light.clone-HXJK81_9.js +1 -0
- package/dist/assets/bat-CickPsom.js +1 -0
- package/dist/assets/bazel-D595_UAw.js +1 -0
- package/dist/assets/bbx-B6gIRtmg.js +1 -0
- package/dist/assets/beancount-BgSHGh8x.js +1 -0
- package/dist/assets/beancount-D1Pecjtt.js +1 -0
- package/dist/assets/bench-js-BKQhTQOV.js +1 -0
- package/dist/assets/bench-jsx-kE35Fs4w.js +1 -0
- package/dist/assets/bench-ts-hkFIlWVo.js +1 -0
- package/dist/assets/berry-uYugtg8r.js +1 -0
- package/dist/assets/bibliography-DKX27pHe.js +1 -0
- package/dist/assets/bibtex-CHM0blh-.js +1 -0
- package/dist/assets/bibtex-style-Cmjo0BP5.js +1 -0
- package/dist/assets/bicep-B3HjUczq.js +1 -0
- package/dist/assets/bicep-Bmn6On1c.js +1 -0
- package/dist/assets/biome-BItitEOn.js +1 -0
- package/dist/assets/bird2-Bx8U0n9b.js +1 -0
- package/dist/assets/bitbucket-D2EO9iEC.js +1 -0
- package/dist/assets/bithound-rVghSUU-.js +1 -0
- package/dist/assets/blade-k33SngOZ.js +1 -0
- package/dist/assets/blender-CdjZ5Uk8.js +1 -0
- package/dist/assets/blink-4WPWCPrP.js +1 -0
- package/dist/assets/blink_light-Yrmstnbz.js +1 -0
- package/dist/assets/blitz-BQEGC2zV.js +1 -0
- package/dist/assets/bower-CM0g8q1d.js +1 -0
- package/dist/assets/brainfuck-e4k4SHEy.js +1 -0
- package/dist/assets/browserlist-CnMr5O-6.js +1 -0
- package/dist/assets/browserlist_light-C5QYA9k4.js +1 -0
- package/dist/assets/bruno-Bveko2Yx.js +1 -0
- package/dist/assets/bsl-DlhNcFeZ.js +1 -0
- package/dist/assets/buck-Cr3CXnt6.js +1 -0
- package/dist/assets/bucklescript-BxkwGxWu.js +1 -0
- package/dist/assets/buildkite-DZYT4S_W.js +1 -0
- package/dist/assets/bun-H0SbYlRi.js +1 -0
- package/dist/assets/bun_light-D5rwApr4.js +1 -0
- package/dist/assets/c-BIGW1oBm.js +1 -0
- package/dist/assets/c-CCHPdB01.js +1 -0
- package/dist/assets/c3-C2jiP-0y.js +1 -0
- package/dist/assets/c3-Dp5svz6Z.js +1 -0
- package/dist/assets/cabal-CkpJHm6g.js +1 -0
- package/dist/assets/caddy-BZbMJWen.js +1 -0
- package/dist/assets/cadence-BLYOHCE8.js +1 -0
- package/dist/assets/cadence-Bv_4Rxtq.js +1 -0
- package/dist/assets/cairo-KRGpt6FW.js +1 -0
- package/dist/assets/cairo-whe9SJ59.js +1 -0
- package/dist/assets/cake-B5eKa_9X.js +1 -0
- package/dist/assets/capacitor-BPwKbqUI.js +1 -0
- package/dist/assets/capnp-DDp19NlB.js +1 -0
- package/dist/assets/catppuccin-frappe-B24fvTzB.js +1 -0
- package/dist/assets/catppuccin-frappe-CZL1YF0i.js +1 -0
- package/dist/assets/catppuccin-latte-CdPbmwTc.js +1 -0
- package/dist/assets/catppuccin-latte-DH-8KZSZ.js +1 -0
- package/dist/assets/catppuccin-macchiato-B7yYVSCf.js +1 -0
- package/dist/assets/catppuccin-macchiato-BDHlNkT6.js +1 -0
- package/dist/assets/catppuccin-mocha-Byn9ySyY.js +1 -0
- package/dist/assets/catppuccin-mocha-Ct7hS0mc.js +1 -0
- package/dist/assets/cbx-ik1J4CfG.js +1 -0
- package/dist/assets/cds-B2EyhH7T.js +1 -0
- package/dist/assets/certificate-SDJ2LD4A.js +1 -0
- package/dist/assets/changelog-DZEGJfHs.js +1 -0
- package/dist/assets/chapel-DTp_pixX.js +1 -0
- package/dist/assets/chess-CXChVqd1.js +1 -0
- package/dist/assets/chess_light-DHas6CLZ.js +1 -0
- package/dist/assets/chromatic-6NifbLd4.js +1 -0
- package/dist/assets/chrome-g4Vw2QCA.js +1 -0
- package/dist/assets/circleci-JgxRHE0v.js +1 -0
- package/dist/assets/circleci_light-DpWz-GPl.js +1 -0
- package/dist/assets/citation-DG5npvPc.js +1 -0
- package/dist/assets/clangd-5dVU-NKL.js +1 -0
- package/dist/assets/clarity-Dn5IMItf.js +1 -0
- package/dist/assets/claude-BZdhVhG0.js +1 -0
- package/dist/assets/cline-B5R398Uc.js +1 -0
- package/dist/assets/clojure-DNP0h8SB.js +1 -0
- package/dist/assets/clojure-P80f7IUj.js +1 -0
- package/dist/assets/cloudfoundry-QGqY1-MV.js +1 -0
- package/dist/assets/cmake-BB6BaeoW.js +1 -0
- package/dist/assets/cmake-D1j8_8rp.js +1 -0
- package/dist/assets/coala-tD8EGg0r.js +1 -0
- package/dist/assets/cobol-BBKr1ja6.js +1 -0
- package/dist/assets/cobol-Cf2hWkq6.js +1 -0
- package/dist/assets/coconut-EyWUjd-u.js +1 -0
- package/dist/assets/code-climate-dLE9She4.js +1 -0
- package/dist/assets/code-climate_light-Bhduqbz6.js +1 -0
- package/dist/assets/codecov-BQKC_jDP.js +1 -0
- package/dist/assets/codeowners-603tSmFI.js +1 -0
- package/dist/assets/codeowners-Bp6g37R7.js +1 -0
- package/dist/assets/codeql-DsOJ9woJ.js +1 -0
- package/dist/assets/coderabbit-ai-DQ3vCyvU.js +1 -0
- package/dist/assets/coffee-Ch7k5sss.js +1 -0
- package/dist/assets/coffee-DZEGvAg_.js +1 -0
- package/dist/assets/coldfusion-B6KzLHX5.js +1 -0
- package/dist/assets/coloredpetrinets-DejoV7vq.js +1 -0
- package/dist/assets/command-BneemDx1.js +1 -0
- package/dist/assets/commitizen-CkrpxCG3.js +1 -0
- package/dist/assets/commitlint-Drx8CSZj.js +1 -0
- package/dist/assets/common-lisp-Cg-RD9OK.js +1 -0
- package/dist/assets/concourse-B0OIgoHj.js +1 -0
- package/dist/assets/conduct-BtjtsLzU.js +1 -0
- package/dist/assets/console-C3BlRMAT.js +1 -0
- package/dist/assets/container.clone-tmERjYin.js +1 -0
- package/dist/assets/contentlayer-B274i3BW.js +1 -0
- package/dist/assets/context-B4OOTwdX.js +1 -0
- package/dist/assets/contributing-CHdjtKOt.js +1 -0
- package/dist/assets/controller-DGl35B_B.js +1 -0
- package/dist/assets/copilot-CQu1dByK.js +1 -0
- package/dist/assets/copilot_light-BAch-mwt.js +1 -0
- package/dist/assets/coq-BqXF5kFF.js +1 -0
- package/dist/assets/core-CNrdLTJr.js +12 -0
- package/dist/assets/cpp-BMRokrvK.js +1 -0
- package/dist/assets/cpp-DPIZaD7x.js +1 -0
- package/dist/assets/craco-Lqm8rVXB.js +1 -0
- package/dist/assets/credits-C8LxFMG9.js +1 -0
- package/dist/assets/crystal-LUwhHfY5.js +1 -0
- package/dist/assets/crystal-fxw7DKx1.js +1 -0
- package/dist/assets/crystal_light-BdVhh3Zr.js +1 -0
- package/dist/assets/csharp-B-HRK_Kq.js +1 -0
- package/dist/assets/csharp-B_TYUkTI.js +1 -0
- package/dist/assets/css-22mNA08O.js +1 -0
- package/dist/assets/css-Z72CF80r.js +1 -0
- package/dist/assets/css-map-DH4ZuEjY.js +1 -0
- package/dist/assets/csv-fuZLfV_i.js +1 -0
- package/dist/assets/cucumber-CN5YXlt1.js +1 -0
- package/dist/assets/cuda--AvYgoLa.js +1 -0
- package/dist/assets/cue-D82EKSYY.js +1 -0
- package/dist/assets/cue-aa60xtx5.js +1 -0
- package/dist/assets/cursor-BpxV_quT.js +1 -0
- package/dist/assets/cursor_light-CHINQG_i.js +1 -0
- package/dist/assets/cypher-COkxafJQ.js +1 -0
- package/dist/assets/cypress-dOqShmwP.js +1 -0
- package/dist/assets/d-85-TOEBH.js +1 -0
- package/dist/assets/d-DRO2nLBO.js +1 -0
- package/dist/assets/dark-plus-C3mMm8J8.js +1 -0
- package/dist/assets/dark-plus-CvX4Ty3s.js +1 -0
- package/dist/assets/dart-CtKP3W-j.js +1 -0
- package/dist/assets/dart-DW00-ud_.js +1 -0
- package/dist/assets/dart_generated-oEiL54bg.js +1 -0
- package/dist/assets/database-CRAWg-A_.js +1 -0
- package/dist/assets/dax-CEL-wOlO.js +1 -0
- package/dist/assets/deepsource-D9eAOREN.js +1 -0
- package/dist/assets/denizenscript-CWrf_2ou.js +1 -0
- package/dist/assets/deno-C-VtxdJW.js +1 -0
- package/dist/assets/deno_light-Bropdi8a.js +1 -0
- package/dist/assets/dependabot-CBrw_lYc.js +1 -0
- package/dist/assets/dependencies-update-R84LnhYb.js +1 -0
- package/dist/assets/desktop-BmXAJ9_W.js +1 -0
- package/dist/assets/dhall-BEme1oKN.js +1 -0
- package/dist/assets/diff-Bv3Jqfnf.js +1 -0
- package/dist/assets/diff-D97Zzqfu.js +1 -0
- package/dist/assets/dinophp-BQXzqGxL.js +1 -0
- package/dist/assets/disc-mNHnAEq7.js +1 -0
- package/dist/assets/django-CMZqDwzR.js +1 -0
- package/dist/assets/dll-2DRjuHfk.js +1 -0
- package/dist/assets/docker-2cFELkmq.js +1 -0
- package/dist/assets/docker-BcOcwvcX.js +1 -0
- package/dist/assets/doctex-installer-DJk8kwLA.js +1 -0
- package/dist/assets/doctex.clone-XT7Rl3MF.js +1 -0
- package/dist/assets/document-DuBkMdes.js +1 -0
- package/dist/assets/dotenv-De0Btta0.js +1 -0
- package/dist/assets/dotjs-CrQhsKtn.js +1 -0
- package/dist/assets/dracula-BzJJZx-M.js +1 -0
- package/dist/assets/dracula-DmZ-8HRb.js +1 -0
- package/dist/assets/dracula-soft-B2_S_wA_.js +1 -0
- package/dist/assets/dracula-soft-BXkSAIEj.js +1 -0
- package/dist/assets/drawio-Dw5L-M06.js +1 -0
- package/dist/assets/dream-maker-BtqSS_iP.js +1 -0
- package/dist/assets/drizzle-D-ukoGQq.js +1 -0
- package/dist/assets/drone-C8IOUB1b.js +1 -0
- package/dist/assets/drone_light-CxflkCgw.js +1 -0
- package/dist/assets/dtx.clone-XT7Rl3MF.js +1 -0
- package/dist/assets/duc-BFe_vTaW.js +1 -0
- package/dist/assets/dune-DZiMf1tI.js +1 -0
- package/dist/assets/edge-CJaD-t2L.js +1 -0
- package/dist/assets/edge-CiTuFZAO.js +1 -0
- package/dist/assets/editorconfig-C8fKSH6u.js +1 -0
- package/dist/assets/ejs-3sWnUNxL.js +1 -0
- package/dist/assets/elixir-CZzC62Ls.js +1 -0
- package/dist/assets/elixir-DkJLSxtU.js +1 -0
- package/dist/assets/elm-DbKCFpqz.js +1 -0
- package/dist/assets/elm-jSnAZ8HC.js +1 -0
- package/dist/assets/emacs-lisp-DaIrSCgJ.js +1 -0
- package/dist/assets/email-Cmc_qS2I.js +1 -0
- package/dist/assets/ember-DhcFZmmt.js +1 -0
- package/dist/assets/engine-javascript-BHPwbUfN.js +141 -0
- package/dist/assets/engine-oniguruma-lcJJ6yRs.js +1 -0
- package/dist/assets/epub-CIRIUWfz.js +1 -0
- package/dist/assets/erb-CSMaCouu.js +1 -0
- package/dist/assets/erlang-CQuXNzZ4.js +1 -0
- package/dist/assets/erlang-DsQrWhSR.js +1 -0
- package/dist/assets/esbuild-BeW_0a0_.js +1 -0
- package/dist/assets/eslint-BZx2RSUO.js +1 -0
- package/dist/assets/everforest-dark-0rLcFJpw.js +1 -0
- package/dist/assets/everforest-dark-BgDCqdQA.js +1 -0
- package/dist/assets/everforest-light-BTfPW4aP.js +1 -0
- package/dist/assets/everforest-light-C8M2exoo.js +1 -0
- package/dist/assets/excalidraw-D5_asqPS.js +1 -0
- package/dist/assets/exe-BQh6UOKc.js +1 -0
- package/dist/assets/expo-aTx0xTBV.js +1 -0
- package/dist/assets/expo_light-BlG8mpaf.js +1 -0
- package/dist/assets/fastlane-CnbJw1BG.js +1 -0
- package/dist/assets/favicon-V8xoG_nA.js +1 -0
- package/dist/assets/fennel-BYunw83y.js +1 -0
- package/dist/assets/figma-BaIbS8lC.js +1 -0
- package/dist/assets/file-B3G9HEZv.js +1 -0
- package/dist/assets/firebase-CbdCDLws.js +1 -0
- package/dist/assets/fish-BvzEVeQv.js +1 -0
- package/dist/assets/flash-DprLyML0.js +1 -0
- package/dist/assets/flow-DFliQA6p.js +1 -0
- package/dist/assets/fluent-C4IJs8-o.js +1 -0
- package/dist/assets/font-lpf1Xq8-.js +1 -0
- package/dist/assets/forth-Bkv6CzRO.js +1 -0
- package/dist/assets/fortran-CrbR7tec.js +1 -0
- package/dist/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
- package/dist/assets/fortran-free-form-BxgE0vQu.js +1 -0
- package/dist/assets/foxpro-CkENsKtP.js +1 -0
- package/dist/assets/freemarker-CPjxA8Jd.js +1 -0
- package/dist/assets/fsharp-CXgrBDvD.js +1 -0
- package/dist/assets/fsharp-CqtCj-4k.js +1 -0
- package/dist/assets/fusebox-Du0WTisa.js +1 -0
- package/dist/assets/gamemaker-BXJrqpEE.js +1 -0
- package/dist/assets/garden-B2CQNu4W.js +1 -0
- package/dist/assets/gatsby-KB27TuKn.js +1 -0
- package/dist/assets/gcp-DUAHL8qk.js +1 -0
- package/dist/assets/gdresource-TyuKm33G.js +1 -0
- package/dist/assets/gdscript-DqcFQ5yU.js +1 -0
- package/dist/assets/gdshader-DkwncUOv.js +1 -0
- package/dist/assets/gemfile-CuQEnTD7.js +1 -0
- package/dist/assets/gemini-CXtpQta5.js +1 -0
- package/dist/assets/gemini-ai-DJjDW0d5.js +1 -0
- package/dist/assets/genie-D0YGMca9.js +1 -0
- package/dist/assets/gherkin-DyxjwDmM.js +1 -0
- package/dist/assets/git-BNU6vY_m.js +1 -0
- package/dist/assets/git-commit-F4YmCXRG.js +1 -0
- package/dist/assets/git-rebase-r7XF79zn.js +1 -0
- package/dist/assets/github-actions-workflow-CvEp15DX.js +1 -0
- package/dist/assets/github-dark-BVmx9f8d.js +1 -0
- package/dist/assets/github-dark-DHJKELXO.js +1 -0
- package/dist/assets/github-dark-default-Cobl_g8l.js +1 -0
- package/dist/assets/github-dark-default-Cuk6v7N8.js +1 -0
- package/dist/assets/github-dark-dimmed-Bqq4Z-hR.js +1 -0
- package/dist/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
- package/dist/assets/github-dark-high-contrast-CC6_60ke.js +1 -0
- package/dist/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
- package/dist/assets/github-light-DAi9KRSo.js +1 -0
- package/dist/assets/github-light-DJPhTNJ5.js +1 -0
- package/dist/assets/github-light-default-D7oLnXFd.js +1 -0
- package/dist/assets/github-light-default-DqR1o2IW.js +1 -0
- package/dist/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
- package/dist/assets/github-light-high-contrast-D_1gu_AN.js +1 -0
- package/dist/assets/github-sponsors-DSKL6a59.js +1 -0
- package/dist/assets/gitlab-CoWx61cR.js +1 -0
- package/dist/assets/gitpod-CVWiBvVH.js +1 -0
- package/dist/assets/gleam-BEtGKIrl.js +1 -0
- package/dist/assets/gleam-BspZqrRM.js +1 -0
- package/dist/assets/glimmer-js-Drrc9bTt.js +1 -0
- package/dist/assets/glimmer-ts-zeybXsvi.js +1 -0
- package/dist/assets/glsl-DplSGwfg.js +1 -0
- package/dist/assets/gn-8iBmfbXw.js +1 -0
- package/dist/assets/gnuplot-B86xWijP.js +1 -0
- package/dist/assets/gnuplot-DdkO51Og.js +1 -0
- package/dist/assets/go-C27-OAKa.js +1 -0
- package/dist/assets/go-DSKdXPgj.js +1 -0
- package/dist/assets/go-mod-Cc2yyArJ.js +1 -0
- package/dist/assets/go_gopher-B9byxVX2.js +1 -0
- package/dist/assets/godot-CI43lgSv.js +1 -0
- package/dist/assets/godot-assets-Dd_MGPnF.js +1 -0
- package/dist/assets/google-Duy56YEG.js +1 -0
- package/dist/assets/gradle-B4FvLR69.js +1 -0
- package/dist/assets/grafana-alloy-8SDgGDzY.js +1 -0
- package/dist/assets/grain-BNz5D0P6.js +1 -0
- package/dist/assets/graphcool-Dj9HEFDF.js +1 -0
- package/dist/assets/graphql-BYrWaW5J.js +1 -0
- package/dist/assets/graphql-ChdNCCLP.js +1 -0
- package/dist/assets/gridsome-hwBOauwt.js +1 -0
- package/dist/assets/groovy-D-30FpLk.js +1 -0
- package/dist/assets/groovy-gcz8RCvz.js +1 -0
- package/dist/assets/grunt-BlGBhcib.js +1 -0
- package/dist/assets/gruvbox-dark-hard-C9F1V87v.js +1 -0
- package/dist/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
- package/dist/assets/gruvbox-dark-medium-C1_GCade.js +1 -0
- package/dist/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
- package/dist/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
- package/dist/assets/gruvbox-dark-soft-D3ZqCmv2.js +1 -0
- package/dist/assets/gruvbox-light-hard-BRlNxIYS.js +1 -0
- package/dist/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
- package/dist/assets/gruvbox-light-medium-BHRQ01Wa.js +1 -0
- package/dist/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
- package/dist/assets/gruvbox-light-soft-CRV2jOqR.js +1 -0
- package/dist/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
- package/dist/assets/gulp-DhxRE-UG.js +1 -0
- package/dist/assets/h-Ww50o4e2.js +1 -0
- package/dist/assets/hack-Ck6-gGSS.js +1 -0
- package/dist/assets/hack-LdfQ8cGz.js +1 -0
- package/dist/assets/hadolint-drt7BAwx.js +1 -0
- package/dist/assets/haml-BmpTwSHe.js +1 -0
- package/dist/assets/haml-GN_XdMnF.js +1 -0
- package/dist/assets/handlebars-C9KakZTY.js +1 -0
- package/dist/assets/handlebars-DPT5vKgj.js +1 -0
- package/dist/assets/happo-Bzcd09wR.js +1 -0
- package/dist/assets/hardhat-Cd0MICD7.js +1 -0
- package/dist/assets/harmonix-BokA6NgR.js +1 -0
- package/dist/assets/haskell-Ct8xdmez.js +1 -0
- package/dist/assets/haskell-Df6bDoY_.js +1 -0
- package/dist/assets/haxe-CfZj7gIn.js +1 -0
- package/dist/assets/haxe-DJh8BmEl.js +1 -0
- package/dist/assets/hcl-BWvSN4gD.js +1 -0
- package/dist/assets/hcl-Ca6J5aKw.js +1 -0
- package/dist/assets/hcl_light-DJlEq3RF.js +1 -0
- package/dist/assets/helm-DiB4ol5l.js +1 -0
- package/dist/assets/heroku-KLgT-_6d.js +1 -0
- package/dist/assets/hex-CBkGFW5i.js +1 -0
- package/dist/assets/highlights-CpYWOIDl.js +8 -0
- package/dist/assets/hip-Dm_KjXkK.js +1 -0
- package/dist/assets/histoire-DnJlzQx1.js +1 -0
- package/dist/assets/hjson-B7PDJLzT.js +1 -0
- package/dist/assets/hjson-D5-asLiD.js +1 -0
- package/dist/assets/hlsl-D3lLCCz7.js +1 -0
- package/dist/assets/horizon-4OJY8TlL.js +1 -0
- package/dist/assets/horizon-BUw7H-hv.js +1 -0
- package/dist/assets/horizon-bright-CUuTKBJd.js +1 -0
- package/dist/assets/horizon-bright-DKG-69X0.js +1 -0
- package/dist/assets/horusec-UiTNfPsX.js +1 -0
- package/dist/assets/hosts-YHrlRgMX.js +1 -0
- package/dist/assets/hosts_light-CWULAhjM.js +1 -0
- package/dist/assets/houston-DI9CDuY-.js +1 -0
- package/dist/assets/houston-DnULxvSX.js +1 -0
- package/dist/assets/hpp-C3_KsTmX.js +1 -0
- package/dist/assets/html-BlS82ilI.js +1 -0
- package/dist/assets/html-DwTvPm5V.js +1 -0
- package/dist/assets/html-derivative-DZhk3IEZ.js +1 -0
- package/dist/assets/http-BLZCee8E.js +1 -0
- package/dist/assets/http-jrhK8wxY.js +1 -0
- package/dist/assets/huff-DaexSZAr.js +1 -0
- package/dist/assets/huff_light-DksXJKTO.js +1 -0
- package/dist/assets/hurl-ByFivTHC.js +1 -0
- package/dist/assets/hurl-irOxFIW8.js +1 -0
- package/dist/assets/husky-CtVr_dzJ.js +1 -0
- package/dist/assets/hxml-2-FPmUDs.js +1 -0
- package/dist/assets/hy-DFXneXwc.js +1 -0
- package/dist/assets/i18n-BX2aowDt.js +1 -0
- package/dist/assets/idris-Co_5Bhau.js +1 -0
- package/dist/assets/ifanr-cloud-aC9N_7gy.js +1 -0
- package/dist/assets/image-CaINOXHA.js +1 -0
- package/dist/assets/imba-DGztddWO.js +1 -0
- package/dist/assets/imba-DgX6cmRy.js +1 -0
- package/dist/assets/index-2LWb-8Wc.css +1168 -0
- package/dist/assets/index-B8iDgboq.js +228 -0
- package/dist/assets/ini-BEwlwnbL.js +1 -0
- package/dist/assets/installation-D3HRSkg3.js +1 -0
- package/dist/assets/instructions.clone-BLrISQGs.js +1 -0
- package/dist/assets/ionic-Bn_7mKRQ.js +1 -0
- package/dist/assets/istanbul-BswzHdp2.js +1 -0
- package/dist/assets/jar-DgJQIODp.js +1 -0
- package/dist/assets/java-BnEGJunY.js +1 -0
- package/dist/assets/java-CylS5w8V.js +1 -0
- package/dist/assets/javaclass-DFmpWxcQ.js +1 -0
- package/dist/assets/javascript-DV9k-cQm.js +1 -0
- package/dist/assets/javascript-map-BxqahBN9.js +1 -0
- package/dist/assets/javascript-wDzz0qaB.js +1 -0
- package/dist/assets/jenkins-CXedXf-m.js +1 -0
- package/dist/assets/jest-D8jCVwot.js +1 -0
- package/dist/assets/jinja-CVZvbRD2.js +1 -0
- package/dist/assets/jinja-DFQZVq3b.js +1 -0
- package/dist/assets/jinja_light-rFtjtL8U.js +1 -0
- package/dist/assets/jison-wvAkD_A8.js +1 -0
- package/dist/assets/jsconfig-OInNBcL8.js +1 -0
- package/dist/assets/json-BWVDHY9B.js +1 -0
- package/dist/assets/json-Cp-IABpG.js +1 -0
- package/dist/assets/json5-C9tS-k6U.js +1 -0
- package/dist/assets/json_schema-D-EC84Qd.js +1 -0
- package/dist/assets/jsonc-Des-eS-w.js +1 -0
- package/dist/assets/jsonl-DcaNXYhu.js +1 -0
- package/dist/assets/jsonnet-DFQXde-d.js +1 -0
- package/dist/assets/jsr-S0sOXQzR.js +1 -0
- package/dist/assets/jsr_light-DFnachKS.js +1 -0
- package/dist/assets/jssm-C2t-YnRu.js +1 -0
- package/dist/assets/jsx-g9-lgVsj.js +1 -0
- package/dist/assets/julia-Cu79e8SL.js +1 -0
- package/dist/assets/julia-D6QIKrHj.js +1 -0
- package/dist/assets/jupyter-hXwxEmRE.js +1 -0
- package/dist/assets/just-BdRS3Ksm.js +1 -0
- package/dist/assets/just-CMxyWJJc.js +1 -0
- package/dist/assets/kanagawa-dragon-BuwD2xS4.js +1 -0
- package/dist/assets/kanagawa-dragon-D-96pmLZ.js +1 -0
- package/dist/assets/kanagawa-lotus-Bh8QPcxh.js +1 -0
- package/dist/assets/kanagawa-lotus-C3DzagqV.js +1 -0
- package/dist/assets/kanagawa-wave-CtcU2r-L.js +1 -0
- package/dist/assets/kanagawa-wave-DFGoQZhC.js +1 -0
- package/dist/assets/karma-1V4kfCVz.js +1 -0
- package/dist/assets/kcl-BJLyEiry.js +1 -0
- package/dist/assets/kdl-DV7GczEv.js +1 -0
- package/dist/assets/key-BZezo_nV.js +1 -0
- package/dist/assets/keystatic-D1ezd3V8.js +1 -0
- package/dist/assets/kivy-BZWGZsS8.js +1 -0
- package/dist/assets/kl-DCGrQ-p3.js +1 -0
- package/dist/assets/knip-AOhuR91w.js +1 -0
- package/dist/assets/kotlin-BdnUsdx6.js +1 -0
- package/dist/assets/kotlin-CtYDe6aL.js +1 -0
- package/dist/assets/kubernetes-BR3e4ZQa.js +1 -0
- package/dist/assets/kusto-BBfifqgC.js +1 -0
- package/dist/assets/kusto-wEQ09or8.js +1 -0
- package/dist/assets/label-cxKX-fIA.js +1 -0
- package/dist/assets/langs-DwaaGRZ6.js +2 -0
- package/dist/assets/laravel-DAcpaTu9.js +1 -0
- package/dist/assets/laserwave-CyPsI7TV.js +1 -0
- package/dist/assets/laserwave-DUszq2jm.js +1 -0
- package/dist/assets/latex-DJVikpzR.js +1 -0
- package/dist/assets/latex-class.clone-DB4yf78z.js +1 -0
- package/dist/assets/latex-package.clone-tqrgl0Hj.js +1 -0
- package/dist/assets/latex.clone-Z8Yh5B8w.js +1 -0
- package/dist/assets/latexmk-DzY21sqL.js +1 -0
- package/dist/assets/lbx-DRep4c5c.js +1 -0
- package/dist/assets/lean-BZvkOJ9d.js +1 -0
- package/dist/assets/lean-CMsyC3Lj.js +1 -0
- package/dist/assets/lefthook-D36WyXz7.js +1 -0
- package/dist/assets/lerna-DSD2nNAJ.js +1 -0
- package/dist/assets/less-B1dDrJ26.js +1 -0
- package/dist/assets/less-BmLSMnNj.js +1 -0
- package/dist/assets/liara-C72gP0JH.js +1 -0
- package/dist/assets/lib-CHRl5WXN.js +1 -0
- package/dist/assets/license-42K760dt.js +1 -0
- package/dist/assets/light-plus-B7mTdjB0.js +1 -0
- package/dist/assets/light-plus-DLxye2Gs.js +1 -0
- package/dist/assets/lighthouse-BtMovQpG.js +1 -0
- package/dist/assets/lilypond-BXAlY1wF.js +1 -0
- package/dist/assets/lintstaged-Deo9XMqk.js +1 -0
- package/dist/assets/liquid-B-duXHXw.js +1 -0
- package/dist/assets/liquid-B3StN7sa.js +1 -0
- package/dist/assets/lisp-CWs19g9P.js +1 -0
- package/dist/assets/livescript-E_j94S7V.js +1 -0
- package/dist/assets/llvm-BZoOZj88.js +1 -0
- package/dist/assets/loader-CTWdTgVc.js +1 -0
- package/dist/assets/lock-BPbIAUIR.js +1 -0
- package/dist/assets/log-2UxHyX5q.js +1 -0
- package/dist/assets/log-DSJb7Xlo.js +1 -0
- package/dist/assets/logo-BtOb2qkB.js +1 -0
- package/dist/assets/lolcode-De6Da_vS.js +1 -0
- package/dist/assets/lottie-D3CFhRnK.js +1 -0
- package/dist/assets/lua-BLEceKjG.js +1 -0
- package/dist/assets/lua-BaeVxFsk.js +1 -0
- package/dist/assets/luau-CqTuKfPE.js +1 -0
- package/dist/assets/luau-nOZpfvQi.js +1 -0
- package/dist/assets/lynx-CcrsIghE.js +1 -0
- package/dist/assets/lyric-DweM0Rgq.js +1 -0
- package/dist/assets/macaulay2-D2DVPofG.js +1 -0
- package/dist/assets/make-CHLpvVh8.js +1 -0
- package/dist/assets/makefile-S4WmaxNO.js +1 -0
- package/dist/assets/markdoc-Cxu-POcO.js +1 -0
- package/dist/assets/markdoc-config-GPOqjcOE.js +1 -0
- package/dist/assets/markdown-CabRC04b.js +1 -0
- package/dist/assets/markdown-Cvjx9yec.js +1 -0
- package/dist/assets/markdownlint-BNO4ZK-j.js +1 -0
- package/dist/assets/marko-BYgDmDgU.js +1 -0
- package/dist/assets/markojs-CJYZA8Q3.js +1 -0
- package/dist/assets/material-theme-CJcwlkxy.js +1 -0
- package/dist/assets/material-theme-D5KoaKCx.js +1 -0
- package/dist/assets/material-theme-darker-BGZ_5sXo.js +1 -0
- package/dist/assets/material-theme-darker-BfHTSMKl.js +1 -0
- package/dist/assets/material-theme-lighter-B0m2ddpp.js +1 -0
- package/dist/assets/material-theme-lighter-CjcM5chE.js +1 -0
- package/dist/assets/material-theme-ocean-CyktbL80.js +1 -0
- package/dist/assets/material-theme-ocean-bB53CPUr.js +1 -0
- package/dist/assets/material-theme-palenight-CEO02sJ-.js +1 -0
- package/dist/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
- package/dist/assets/materialIcons-0T6AU0ht.js +1 -0
- package/dist/assets/mathematica-D0SR_HGi.js +1 -0
- package/dist/assets/matlab-D7o27uSR.js +1 -0
- package/dist/assets/matlab-djWd4WI9.js +1 -0
- package/dist/assets/maven-CPH6dq1p.js +1 -0
- package/dist/assets/mdc-DF4WjDMn.js +1 -0
- package/dist/assets/mdsvex-CvWHUZ1A.js +1 -0
- package/dist/assets/mdx-Cmh6b_Ma.js +1 -0
- package/dist/assets/mdx-DMvzLKOV.js +1 -0
- package/dist/assets/mercurial-BHMCHi9I.js +1 -0
- package/dist/assets/merlin-BzvthGX7.js +1 -0
- package/dist/assets/mermaid-BM4pEB5k.js +1 -0
- package/dist/assets/mermaid-CQcHuHx7.js +1 -0
- package/dist/assets/meson-CY_m_Wss.js +1 -0
- package/dist/assets/metro-DN39KaT8.js +1 -0
- package/dist/assets/min-dark-BMCe6Sa9.js +1 -0
- package/dist/assets/min-dark-CafNBF8u.js +1 -0
- package/dist/assets/min-light-Bm6kkJDi.js +1 -0
- package/dist/assets/min-light-CTRr51gU.js +1 -0
- package/dist/assets/minecraft-BLz0P1ea.js +1 -0
- package/dist/assets/minecraft-fabric-D-emLktJ.js +1 -0
- package/dist/assets/mint-PuNatAHr.js +1 -0
- package/dist/assets/mipsasm-CKIfxQSi.js +1 -0
- package/dist/assets/mist.clone-DQuBpEEb.js +1 -0
- package/dist/assets/mjml-Bbi7XZZF.js +1 -0
- package/dist/assets/mocha-BO86r4Le.js +1 -0
- package/dist/assets/modernizr-DEK392x1.js +1 -0
- package/dist/assets/mojo-DJz3ZmWd.js +1 -0
- package/dist/assets/mojo-DxAXKlI8.js +1 -0
- package/dist/assets/monokai-CR4piiQ-.js +1 -0
- package/dist/assets/monokai-Dk2XPowy.js +1 -0
- package/dist/assets/moon-DGh_UE2g.js +1 -0
- package/dist/assets/moonbit-Bag4Rp_g.js +1 -0
- package/dist/assets/moonscript-CLAdO0ad.js +1 -0
- package/dist/assets/move-el3G9tDJ.js +1 -0
- package/dist/assets/mrpack-BbseLjOl.js +1 -0
- package/dist/assets/mxml-CmmOijJq.js +1 -0
- package/dist/assets/nano-staged-BVYMwZz0.js +1 -0
- package/dist/assets/nano-staged_light-CHxVZ_EK.js +1 -0
- package/dist/assets/narrat-DRg8JJMk.js +1 -0
- package/dist/assets/ndst-Cdpg_rEM.js +1 -0
- package/dist/assets/nest-controller.clone-qkEcLtHQ.js +1 -0
- package/dist/assets/nest-decorator.clone-Cf6DoeGO.js +1 -0
- package/dist/assets/nest-filter.clone-B2IUt143.js +1 -0
- package/dist/assets/nest-gateway.clone-DHvThHSZ.js +1 -0
- package/dist/assets/nest-guard.clone-DtnqBfcd.js +1 -0
- package/dist/assets/nest-interceptor.clone-BZjLr0zU.js +1 -0
- package/dist/assets/nest-middleware.clone-D_IV7lm_.js +1 -0
- package/dist/assets/nest-module.clone-a1YvMq_J.js +1 -0
- package/dist/assets/nest-pipe.clone-CtgJNIiv.js +1 -0
- package/dist/assets/nest-resolver.clone-Bu0CYLLp.js +1 -0
- package/dist/assets/nest-service.clone-DJVtC5ky.js +1 -0
- package/dist/assets/nest-uii31yoZ.js +1 -0
- package/dist/assets/netlify-CXpnmdMk.js +1 -0
- package/dist/assets/netlify_light-DUisGvWs.js +1 -0
- package/dist/assets/next-NlbmrkTR.js +1 -0
- package/dist/assets/next_light-Dov2Aag3.js +1 -0
- package/dist/assets/nextflow-BCxp2Aob.js +1 -0
- package/dist/assets/nextflow-CRJCa3-W.js +1 -0
- package/dist/assets/nextflow-groovy-CedDknKX.js +1 -0
- package/dist/assets/nginx-BpAMiNFr.js +1 -0
- package/dist/assets/nginx-CBltZhA0.js +1 -0
- package/dist/assets/ngrx-actions-CiiRBqoq.js +1 -0
- package/dist/assets/ngrx-effects-ht9wWEAp.js +1 -0
- package/dist/assets/ngrx-entity-CKMwrgVK.js +1 -0
- package/dist/assets/ngrx-reducer-CVvK_f1O.js +1 -0
- package/dist/assets/ngrx-selectors-DKYAQ07_.js +1 -0
- package/dist/assets/ngrx-state-Cjy9-4Gw.js +1 -0
- package/dist/assets/night-owl-C39BiMTA.js +1 -0
- package/dist/assets/night-owl-han1E7M5.js +1 -0
- package/dist/assets/night-owl-light-CMTm3GFP.js +1 -0
- package/dist/assets/night-owl-light-Cl1yPzT6.js +1 -0
- package/dist/assets/nim-nV83PyhX.js +1 -0
- package/dist/assets/nim-p7Wbc7ed.js +1 -0
- package/dist/assets/nix-BfV8uZRs.js +1 -0
- package/dist/assets/nix-CwoSXNpI.js +1 -0
- package/dist/assets/nodejs-DOyp0OwK.js +1 -0
- package/dist/assets/nodejs_alt-DM5GXuAE.js +1 -0
- package/dist/assets/nodemon-CBY1885z.js +1 -0
- package/dist/assets/nord-DDTeIukr.js +1 -0
- package/dist/assets/nord-Ddv68eIx.js +1 -0
- package/dist/assets/npm-Oj4J4caC.js +1 -0
- package/dist/assets/nsis-BlV79W_Q.js +1 -0
- package/dist/assets/nuget-3ofUwiRl.js +1 -0
- package/dist/assets/nunjucks-CcVFhSH6.js +1 -0
- package/dist/assets/nushell-BXD5iret.js +1 -0
- package/dist/assets/nuxt-s4rhqNb7.js +1 -0
- package/dist/assets/nx-CBxAqste.js +1 -0
- package/dist/assets/objective-c-DXmwc3jG.js +1 -0
- package/dist/assets/objective-c-ICVFUWS1.js +1 -0
- package/dist/assets/objective-cpp-CLxacb5B.js +1 -0
- package/dist/assets/objective-cpp-h3exWqBv.js +1 -0
- package/dist/assets/ocaml-C0hk2d4L.js +1 -0
- package/dist/assets/ocaml-DLgJ70Hh.js +1 -0
- package/dist/assets/odin-BBf5iR-q.js +1 -0
- package/dist/assets/odin-BczFO4iC.js +1 -0
- package/dist/assets/one-dark-pro-CxGP3dtY.js +1 -0
- package/dist/assets/one-dark-pro-DF6Wh4HV.js +1 -0
- package/dist/assets/one-light-C3Wv6jpd.js +1 -0
- package/dist/assets/one-light-DtuA6F_V.js +1 -0
- package/dist/assets/onnx-DH06GS8e.js +1 -0
- package/dist/assets/opa-BrETCzD9.js +1 -0
- package/dist/assets/opam-DUhEBMwc.js +1 -0
- package/dist/assets/openapi-Bn1BFbGY.js +1 -0
- package/dist/assets/openapi_light-uBtMDaia.js +1 -0
- package/dist/assets/opencode-C_xA0H3L.js +1 -0
- package/dist/assets/opencode_light-Bj9lx7qv.js +1 -0
- package/dist/assets/openscad-C4EeE6gA.js +1 -0
- package/dist/assets/opentofu-CC1Gwtld.js +1 -0
- package/dist/assets/opentofu_light-1ZDaXg_1.js +1 -0
- package/dist/assets/org-6a7ccXN_.js +1 -0
- package/dist/assets/otne-CrKxdKJ0.js +1 -0
- package/dist/assets/oxc-Cl9acx50.js +1 -0
- package/dist/assets/packship-C8dbKG9V.js +1 -0
- package/dist/assets/palette-D-hShjKh.js +1 -0
- package/dist/assets/panda-BXxE5r4M.js +1 -0
- package/dist/assets/parcel-DBEtLb0p.js +1 -0
- package/dist/assets/pascal-D93ZcfNL.js +1 -0
- package/dist/assets/pascal-NAYd3dN7.js +1 -0
- package/dist/assets/pawn-jrMhrT-2.js +1 -0
- package/dist/assets/payload-BAksMG7o.js +1 -0
- package/dist/assets/payload_light-D1yG1_qw.js +1 -0
- package/dist/assets/pdf-BwtV9HbE.js +1 -0
- package/dist/assets/pdm-CsgspJoW.js +1 -0
- package/dist/assets/peg-Ctk__vtj.js +1 -0
- package/dist/assets/percy-CMYv3jvb.js +1 -0
- package/dist/assets/perl-5klg-GXX.js +1 -0
- package/dist/assets/perl-Cws6Mxvh.js +1 -0
- package/dist/assets/php-DoruYMF0.js +1 -0
- package/dist/assets/php-PqrjLTra.js +1 -0
- package/dist/assets/php-cs-fixer-CkAAKYuV.js +1 -0
- package/dist/assets/php_elephant-DleVhMq8.js +1 -0
- package/dist/assets/php_elephant_pink-CZMRWVUe.js +1 -0
- package/dist/assets/phpstan-CsvmweRy.js +1 -0
- package/dist/assets/phpunit-XgaNEp-g.js +1 -0
- package/dist/assets/pierre-dark-CyvmCCZW.js +1 -0
- package/dist/assets/pierre-dark-DF50kJRQ.js +1 -0
- package/dist/assets/pierre-dark-protanopia-deuteranopia-Cgqy1jHS.js +1 -0
- package/dist/assets/pierre-dark-protanopia-deuteranopia-Rgc0TwpF.js +1 -0
- package/dist/assets/pierre-dark-soft-BCUYmEtF.js +1 -0
- package/dist/assets/pierre-dark-soft-BHGpRqa4.js +1 -0
- package/dist/assets/pierre-dark-tritanopia-Beq2gCRQ.js +1 -0
- package/dist/assets/pierre-dark-tritanopia-CncZof3Q.js +1 -0
- package/dist/assets/pierre-dark-vibrant-BI1wPMzu.js +1 -0
- package/dist/assets/pierre-dark-vibrant-BWBVywrn.js +1 -0
- package/dist/assets/pierre-light-480U9XYS.js +1 -0
- package/dist/assets/pierre-light-DXZG9etP.js +1 -0
- package/dist/assets/pierre-light-protanopia-deuteranopia-BTq7x1tZ.js +1 -0
- package/dist/assets/pierre-light-protanopia-deuteranopia-CaVOBURG.js +1 -0
- package/dist/assets/pierre-light-soft-BwL5JwZL.js +1 -0
- package/dist/assets/pierre-light-soft-CVdyfjmI.js +1 -0
- package/dist/assets/pierre-light-tritanopia-B4_gpKOM.js +1 -0
- package/dist/assets/pierre-light-tritanopia-sLHrbAeH.js +1 -0
- package/dist/assets/pierre-light-vibrant-D99YW89A.js +1 -0
- package/dist/assets/pierre-light-vibrant-DdTDNdfJ.js +1 -0
- package/dist/assets/pinejs-BPAJakmu.js +1 -0
- package/dist/assets/pipeline-CwrV8nZC.js +1 -0
- package/dist/assets/pkl-DTxaHUNp.js +1 -0
- package/dist/assets/pkl-u5AG7uiY.js +1 -0
- package/dist/assets/plastic-3e1v2bzS.js +1 -0
- package/dist/assets/plastic-BA_LeTlt.js +1 -0
- package/dist/assets/plastic-DjVpnBcv.js +1 -0
- package/dist/assets/playwright-BylxXmhp.js +1 -0
- package/dist/assets/plop-BQm9FggE.js +1 -0
- package/dist/assets/plsql-ChMvpjG-.js +1 -0
- package/dist/assets/pm2-ecosystem-DYFEqz_z.js +1 -0
- package/dist/assets/pnpm-rshl54qO.js +1 -0
- package/dist/assets/pnpm_light-l7P1Ucdu.js +1 -0
- package/dist/assets/po-BTJTHyun.js +1 -0
- package/dist/assets/poetry-CKdflkUz.js +1 -0
- package/dist/assets/poimandres-CS3Unz2-.js +1 -0
- package/dist/assets/poimandres-oP3Jw5ph.js +1 -0
- package/dist/assets/polar-C0HS_06l.js +1 -0
- package/dist/assets/postcss-CXtECtnM.js +1 -0
- package/dist/assets/postcss-ObvIYTXC.js +1 -0
- package/dist/assets/posthtml-DkteXM5p.js +1 -0
- package/dist/assets/powerpoint-CVI0vzNd.js +1 -0
- package/dist/assets/powerquery-CEu0bR-o.js +1 -0
- package/dist/assets/powershell-C-k0nzcV.js +1 -0
- package/dist/assets/powershell-Dd0kTxKP.js +1 -0
- package/dist/assets/pre-commit-B1FPNo8f.js +1 -0
- package/dist/assets/prettier-CaXOPeKv.js +1 -0
- package/dist/assets/prisma-BW16hXHe.js +1 -0
- package/dist/assets/prisma-Vru482bI.js +1 -0
- package/dist/assets/processing-DhPlSPZD.js +1 -0
- package/dist/assets/prolog-CbFg5uaA.js +1 -0
- package/dist/assets/prolog-M2GkMSTj.js +1 -0
- package/dist/assets/prompt-BMIsQ84q.js +1 -0
- package/dist/assets/proto-C7zT0LnQ.js +1 -0
- package/dist/assets/proto-oYNETYCE.js +1 -0
- package/dist/assets/protractor-DD2cS-B_.js +1 -0
- package/dist/assets/pug-0xpiwmWo.js +1 -0
- package/dist/assets/pug-BtYPkAgq.js +1 -0
- package/dist/assets/puppet-BMWR74SV.js +1 -0
- package/dist/assets/puppet-D_SIwXnB.js +1 -0
- package/dist/assets/puppeteer-DDTyfVif.js +1 -0
- package/dist/assets/purescript-C_roa20T.js +1 -0
- package/dist/assets/purescript-CklMAg4u.js +1 -0
- package/dist/assets/python-B6aJPvgy.js +1 -0
- package/dist/assets/python-CPht1dA4.js +1 -0
- package/dist/assets/python-misc-BnZOtqQ4.js +1 -0
- package/dist/assets/pytorch-C_fsrIn2.js +1 -0
- package/dist/assets/qml-3beO22l8.js +1 -0
- package/dist/assets/qmldir-C8lEn-DE.js +1 -0
- package/dist/assets/qsharp-Ckg8x_Jk.js +1 -0
- package/dist/assets/qss-IeuSbFQv.js +1 -0
- package/dist/assets/quarto-DZnVPUAt.js +1 -0
- package/dist/assets/quasar-BGuAWqse.js +1 -0
- package/dist/assets/quokka-DSBakkez.js +1 -0
- package/dist/assets/qwik-BOx6TvdJ.js +1 -0
- package/dist/assets/r-Br9B07-f.js +1 -0
- package/dist/assets/r-Cf5RLm7j.js +1 -0
- package/dist/assets/racket-BqYA7rlc.js +1 -0
- package/dist/assets/racket-DBrjbYY7.js +1 -0
- package/dist/assets/raku-DXvB9xmW.js +1 -0
- package/dist/assets/raml-BdMSRVzU.js +1 -0
- package/dist/assets/razor-4CAYO4Tr.js +1 -0
- package/dist/assets/razor-CyjPwjZj.js +1 -0
- package/dist/assets/rbs-CpoqiR4B.js +1 -0
- package/dist/assets/rbxmk-B1VQQQcF.js +1 -0
- package/dist/assets/rc-BaV0qTgr.js +1 -0
- package/dist/assets/react-Brdo9u0l.js +1 -0
- package/dist/assets/react_ts-JJzuChyH.js +1 -0
- package/dist/assets/readme-NiTwsv1m.js +1 -0
- package/dist/assets/reason-ledw0kzM.js +1 -0
- package/dist/assets/red-C7ljw3yD.js +1 -0
- package/dist/assets/red-D9F8Rgpn.js +1 -0
- package/dist/assets/red-DMbB5_pp.js +1 -0
- package/dist/assets/redux-action-BkouwOD2.js +1 -0
- package/dist/assets/redux-reducer-pQEjKULb.js +1 -0
- package/dist/assets/redux-selector-B7ZVFuNx.js +1 -0
- package/dist/assets/redux-store-BPlZDwV2.js +1 -0
- package/dist/assets/reg-C-SQnVFl.js +1 -0
- package/dist/assets/regedit-Cwlri74t.js +1 -0
- package/dist/assets/regexp-CDVJQ6XC.js +1 -0
- package/dist/assets/rel-C3B-1QV4.js +1 -0
- package/dist/assets/remark-DmX5zJY3.js +1 -0
- package/dist/assets/remix-DihcwMAj.js +1 -0
- package/dist/assets/remix_light-BiPVtUV2.js +1 -0
- package/dist/assets/renovate-DMs0am5J.js +1 -0
- package/dist/assets/replit-BQ-LSwO8.js +1 -0
- package/dist/assets/rescript-Dba5nlf2.js +1 -0
- package/dist/assets/rescript-interface-Cyu8vEEP.js +1 -0
- package/dist/assets/restql-BHztKuYv.js +1 -0
- package/dist/assets/riot-mLyZqv-x.js +1 -0
- package/dist/assets/riscv-BM1_JUlF.js +1 -0
- package/dist/assets/roadmap-CU9G6rQC.js +1 -0
- package/dist/assets/roblox-B2mt9e_t.js +1 -0
- package/dist/assets/robot-D5kUnLHT.js +1 -0
- package/dist/assets/robots-B7hUW-I0.js +1 -0
- package/dist/assets/rocket-B7w628pK.js +1 -0
- package/dist/assets/rojo-Cri0oX02.js +1 -0
- package/dist/assets/rolldown-CnHJsn0r.js +1 -0
- package/dist/assets/rollup-D9x5UXJA.js +1 -0
- package/dist/assets/rome-BOZg-CWb.js +1 -0
- package/dist/assets/ron-D8l8udqQ.js +1 -0
- package/dist/assets/rose-pine-5qJOZa0Y.js +1 -0
- package/dist/assets/rose-pine-N6Nc_Qgp.js +1 -0
- package/dist/assets/rose-pine-dawn-CjcyLH22.js +1 -0
- package/dist/assets/rose-pine-dawn-zx0QlTCp.js +1 -0
- package/dist/assets/rose-pine-moon-C9pEdX9L.js +1 -0
- package/dist/assets/rose-pine-moon-XvifxlJo.js +1 -0
- package/dist/assets/rosmsg-BJDFO7_C.js +1 -0
- package/dist/assets/routing-Dg9AsLka.js +1 -0
- package/dist/assets/rspec-IG2Hi06i.js +1 -0
- package/dist/assets/rst-CVOjT0e7.js +1 -0
- package/dist/assets/rstack-arV2gVn0.js +1 -0
- package/dist/assets/rubocop-CTySkbZa.js +1 -0
- package/dist/assets/rubocop_light-Cd87GreZ.js +1 -0
- package/dist/assets/ruby-C8rp0wew.js +1 -0
- package/dist/assets/ruby-lpPi_X4f.js +1 -0
- package/dist/assets/ruff-Ddf6XOKK.js +1 -0
- package/dist/assets/rust-DPvrY3IQ.js +1 -0
- package/dist/assets/rust-i3okWXug.js +1 -0
- package/dist/assets/salesforce-B-Fce8eC.js +1 -0
- package/dist/assets/salt-DCEWvBDg.js +1 -0
- package/dist/assets/san-CrGbP2-_.js +1 -0
- package/dist/assets/sas-BGn39htG.js +1 -0
- package/dist/assets/sas-Cx3HD76h.js +1 -0
- package/dist/assets/sass-Cj5Yp3dK.js +1 -0
- package/dist/assets/sass-N_dxGZbH.js +1 -0
- package/dist/assets/sbt-C6q1KyFY.js +1 -0
- package/dist/assets/scala-BVJCocpq.js +1 -0
- package/dist/assets/scala-CqE71os6.js +1 -0
- package/dist/assets/scheme-BaSIepFx.js +1 -0
- package/dist/assets/scheme-C98Dy4si.js +1 -0
- package/dist/assets/scons-Dw9W0Ntp.js +1 -0
- package/dist/assets/scons_light-CotAcxPH.js +1 -0
- package/dist/assets/screwdriver-DT_9c0UR.js +1 -0
- package/dist/assets/scss-Cw6XMfVs.js +1 -0
- package/dist/assets/sdbl-DVxCFoDh.js +1 -0
- package/dist/assets/search-Djs6iCSP.js +1 -0
- package/dist/assets/semantic-release-daYO61SS.js +1 -0
- package/dist/assets/semantic-release_light-ofAEQiJJ.js +1 -0
- package/dist/assets/semgrep-CuPPssA7.js +1 -0
- package/dist/assets/sentry-Ch81Q6ob.js +1 -0
- package/dist/assets/sequelize-D6-xOJ8I.js +1 -0
- package/dist/assets/serverless-LruNk77b.js +1 -0
- package/dist/assets/settings-BK68kowf.js +1 -0
- package/dist/assets/shader-C04GDJRz.js +1 -0
- package/dist/assets/shaderlab-Dg9Lc6iA.js +1 -0
- package/dist/assets/shellcheck-hjFdSEn4.js +1 -0
- package/dist/assets/shellcheck_light-CB69M8s4.js +1 -0
- package/dist/assets/shellscript-Yzrsuije.js +1 -0
- package/dist/assets/shellsession-BADoaaVG.js +1 -0
- package/dist/assets/shiki-CpXFjX6z.js +2 -0
- package/dist/assets/silverstripe-CxkQuvq1.js +1 -0
- package/dist/assets/simulink-B19FsZaj.js +1 -0
- package/dist/assets/siyuan-DTlGzTI5.js +1 -0
- package/dist/assets/sketch-D7bUgSkt.js +1 -0
- package/dist/assets/skill-CsyAdCOD.js +1 -0
- package/dist/assets/slack-dark-BthQWCQV.js +1 -0
- package/dist/assets/slack-dark-CXWcruur.js +1 -0
- package/dist/assets/slack-ochin-DqwNpetd.js +1 -0
- package/dist/assets/slack-ochin-j9-5xOqG.js +1 -0
- package/dist/assets/slim-DKANlMS4.js +1 -0
- package/dist/assets/slint-BXt2_SOj.js +1 -0
- package/dist/assets/slug-BXnojXrC.js +1 -0
- package/dist/assets/smalltalk-BOQMe2GC.js +1 -0
- package/dist/assets/smarty-B4p8Lfte.js +1 -0
- package/dist/assets/smithy-cds9vsN8.js +1 -0
- package/dist/assets/sml-BSw6Tf80.js +1 -0
- package/dist/assets/snakemake-DpgMTFY0.js +1 -0
- package/dist/assets/snapcraft-DYMQuluP.js +1 -0
- package/dist/assets/snazzy-light-Bw305WKR.js +1 -0
- package/dist/assets/snazzy-light-NrfPMqkH.js +1 -0
- package/dist/assets/snowpack-Q_deJg00.js +1 -0
- package/dist/assets/snowpack_light-BkA3F4N6.js +1 -0
- package/dist/assets/snyk-BV-5ZNtb.js +1 -0
- package/dist/assets/solarized-dark-CYqaUSYq.js +1 -0
- package/dist/assets/solarized-dark-UcubFVte.js +1 -0
- package/dist/assets/solarized-light-DCG28T6R.js +1 -0
- package/dist/assets/solarized-light-Ws7Bvbxh.js +1 -0
- package/dist/assets/solidity-B_KMDset.js +1 -0
- package/dist/assets/solidity-DijEV5ha.js +1 -0
- package/dist/assets/sonarcloud-DxoMV2hS.js +1 -0
- package/dist/assets/soy-zscZBeg6.js +1 -0
- package/dist/assets/sparql-rVzFXLq3.js +1 -0
- package/dist/assets/splunk-BtCnVYZw.js +1 -0
- package/dist/assets/spwn-ChqHVlhP.js +1 -0
- package/dist/assets/sql-DkvoVjww.js +1 -0
- package/dist/assets/ssh-config-_ykCGR6B.js +1 -0
- package/dist/assets/stackblitz-BHYKXqXF.js +1 -0
- package/dist/assets/stan-CpzMxJUj.js +1 -0
- package/dist/assets/stata-DACIj5bg.js +1 -0
- package/dist/assets/steadybit-CK_eei0J.js +1 -0
- package/dist/assets/stencil-C5eQxaDp.js +1 -0
- package/dist/assets/stitches-BY2h7a5O.js +1 -0
- package/dist/assets/stitches_light-DdHJP6h4.js +1 -0
- package/dist/assets/storybook-B754zdik.js +1 -0
- package/dist/assets/stream-tokenizer-Dc3o0eG9.js +4 -0
- package/dist/assets/stryker-Cj1I5_1L.js +1 -0
- package/dist/assets/sty.clone-tqrgl0Hj.js +1 -0
- package/dist/assets/stylable-qbtfJ7sI.js +1 -0
- package/dist/assets/stylelint-C3863dqQ.js +1 -0
- package/dist/assets/stylelint_light-DVLZoY7i.js +1 -0
- package/dist/assets/stylus-BEDo0Tqx.js +1 -0
- package/dist/assets/stylus-Yp7Xapjy.js +1 -0
- package/dist/assets/sublime-RfQDH_Tu.js +1 -0
- package/dist/assets/subtitles-DKlLGo0M.js +1 -0
- package/dist/assets/supabase-DBO-wtXT.js +1 -0
- package/dist/assets/surrealql-Cjom0U5J.js +1 -0
- package/dist/assets/svelte-BgtSWe3d.js +1 -0
- package/dist/assets/svelte-D84K1R2Q.js +1 -0
- package/dist/assets/svelte_js.clone-CxZfMMn2.js +1 -0
- package/dist/assets/svelte_ts.clone-DgMrQqzV.js +1 -0
- package/dist/assets/svg-D6fjmjLF.js +1 -0
- package/dist/assets/svgo-hrvgRN9o.js +1 -0
- package/dist/assets/svgr-COVc6cMM.js +1 -0
- package/dist/assets/swagger-CUB922QX.js +1 -0
- package/dist/assets/sway-CB5XO7mn.js +1 -0
- package/dist/assets/swc-Dv_1_4br.js +1 -0
- package/dist/assets/swift-C2oV4EkX.js +1 -0
- package/dist/assets/swift-CyGnHAZU.js +1 -0
- package/dist/assets/syncpack-BqZjSqMS.js +1 -0
- package/dist/assets/synthwave-84-CbfX1IO0.js +1 -0
- package/dist/assets/synthwave-84-ev3Pj0YU.js +1 -0
- package/dist/assets/system-verilog-0hqHdDBg.js +1 -0
- package/dist/assets/systemd-4A_iFExJ.js +1 -0
- package/dist/assets/systemd-DC0XsdEU.js +1 -0
- package/dist/assets/systemd_light-BhVcT-ql.js +1 -0
- package/dist/assets/table-Dl1fc6za.js +1 -0
- package/dist/assets/tailwindcss-DE61wxOw.js +1 -0
- package/dist/assets/talonscript-CkByrt1z.js +1 -0
- package/dist/assets/tape.clone-OvCAHPed.js +1 -0
- package/dist/assets/taskfile-v1ltlz-5.js +1 -0
- package/dist/assets/tasl-QIJgUcNo.js +1 -0
- package/dist/assets/tauri-Zb7fGdff.js +1 -0
- package/dist/assets/taze-C-mZVf0u.js +1 -0
- package/dist/assets/tcl-dwOrl1Do.js +1 -0
- package/dist/assets/tcl-fqvbdO0z.js +1 -0
- package/dist/assets/teal-BPHgXqrp.js +1 -0
- package/dist/assets/templ-UY18XKVU.js +1 -0
- package/dist/assets/templ-Vpw5XpSW.js +1 -0
- package/dist/assets/template-BJJInZ08.js +1 -0
- package/dist/assets/terraform-BETggiCN.js +1 -0
- package/dist/assets/terraform-De5D-xGd.js +1 -0
- package/dist/assets/test-js-Cosvu7KF.js +1 -0
- package/dist/assets/test-jsx-DIeuTZbc.js +1 -0
- package/dist/assets/test-ts-CJ9xpU8Z.js +1 -0
- package/dist/assets/tex-ChN9Nw-_.js +1 -0
- package/dist/assets/tex-D96PA37w.js +1 -0
- package/dist/assets/textlint-Cs6rt1Cu.js +1 -0
- package/dist/assets/themes-ChlupUkw.js +2 -0
- package/dist/assets/tilt-Dt5ulhxI.js +1 -0
- package/dist/assets/tldraw-D8yQecJk.js +1 -0
- package/dist/assets/tldraw_light-BdrBJGAk.js +1 -0
- package/dist/assets/tobi-hAB3KK-d.js +1 -0
- package/dist/assets/tobimake-BheJY94H.js +1 -0
- package/dist/assets/toc-BVHyreHx.js +1 -0
- package/dist/assets/todo-NIRmF9Nt.js +1 -0
- package/dist/assets/tokyo-night-DcOUfspC.js +1 -0
- package/dist/assets/tokyo-night-hegEt444.js +1 -0
- package/dist/assets/toml-CYN-E9Ic.js +1 -0
- package/dist/assets/toml-vGWfd6FD.js +1 -0
- package/dist/assets/toml_light-DoZW7ed-.js +1 -0
- package/dist/assets/toon-h9zLBx21.js +1 -0
- package/dist/assets/travis-BfBYRnAI.js +1 -0
- package/dist/assets/tree-v5yd1eDo.js +1 -0
- package/dist/assets/trigger-CbdSCxnV.js +1 -0
- package/dist/assets/ts-tags-Ls60c9xG.js +1 -0
- package/dist/assets/tsconfig-jwHGvwHS.js +1 -0
- package/dist/assets/tsdoc-CqriZ9N4.js +1 -0
- package/dist/assets/tsdown-4tEsNANt.js +1 -0
- package/dist/assets/tsil-D5schsrZ.js +1 -0
- package/dist/assets/tsv-B_m7g4N7.js +1 -0
- package/dist/assets/tsx-COt5Ahok.js +1 -0
- package/dist/assets/tune-C1VMPtEW.js +1 -0
- package/dist/assets/turborepo-Drq_phrM.js +1 -0
- package/dist/assets/turborepo_light-CTxmbjOn.js +1 -0
- package/dist/assets/turtle-BsS91CYL.js +1 -0
- package/dist/assets/twig-C8vTwqwl.js +1 -0
- package/dist/assets/twig-D9-LOF2p.js +1 -0
- package/dist/assets/twine-gjlCnxRH.js +1 -0
- package/dist/assets/typedoc-BiFaaYDw.js +1 -0
- package/dist/assets/typescript-BPQ3VLAy.js +1 -0
- package/dist/assets/typescript-C99txOYA.js +1 -0
- package/dist/assets/typescript-def-C_qwM6Wa.js +1 -0
- package/dist/assets/typespec-ClX509-Q.js +1 -0
- package/dist/assets/typst-DCU_PP9B.js +1 -0
- package/dist/assets/typst-DamkJZ1Q.js +1 -0
- package/dist/assets/uiua-BCeEt6b_.js +1 -0
- package/dist/assets/umi-B3GUBNcT.js +1 -0
- package/dist/assets/uml-Bs9XQ0yV.js +1 -0
- package/dist/assets/uml_light-CEYnIVKN.js +1 -0
- package/dist/assets/unity-DNfup6lc.js +1 -0
- package/dist/assets/unlicense-C_cIySJj.js +1 -0
- package/dist/assets/unocss-DMv89nsZ.js +1 -0
- package/dist/assets/url-CTZST4-Z.js +1 -0
- package/dist/assets/uv-BzCA5Piy.js +1 -0
- package/dist/assets/v-BGw2Nkan.js +1 -0
- package/dist/assets/vagrant-BTikYs9I.js +1 -0
- package/dist/assets/vala-CRcDP5UV.js +1 -0
- package/dist/assets/vala-CsfeWuGM.js +1 -0
- package/dist/assets/vanilla-extract-DTxT8YYu.js +1 -0
- package/dist/assets/varnish-BcGfeU0p.js +1 -0
- package/dist/assets/vb-Cu-pLBUe.js +1 -0
- package/dist/assets/vedic-D5QDaQ71.js +1 -0
- package/dist/assets/velite-TnCAItFD.js +1 -0
- package/dist/assets/velocity-CwKWeOGl.js +1 -0
- package/dist/assets/vercel-nnWdWFuX.js +1 -0
- package/dist/assets/vercel_light-CAzzCX1W.js +1 -0
- package/dist/assets/verdaccio-BnlaHIwR.js +1 -0
- package/dist/assets/verified-DAXBuqS_.js +1 -0
- package/dist/assets/verilog-BYNPrH-T.js +1 -0
- package/dist/assets/verilog-nZwndyjY.js +1 -0
- package/dist/assets/verse-D9Jaw3ic.js +1 -0
- package/dist/assets/verse_light-CbLNSu3V.js +1 -0
- package/dist/assets/vesper-DRje8inN.js +1 -0
- package/dist/assets/vesper-XBdv8qqG.js +1 -0
- package/dist/assets/vfl-CJAbpw4G.js +1 -0
- package/dist/assets/vhdl-CeAyd5Ju.js +1 -0
- package/dist/assets/video-DLhvWfNd.js +1 -0
- package/dist/assets/vim-BHrTFrqL.js +1 -0
- package/dist/assets/viml-CJc9bBzg.js +1 -0
- package/dist/assets/virtual-TqA3dcaa.js +1 -0
- package/dist/assets/visualstudio-CTvLVY4z.js +1 -0
- package/dist/assets/vite-DY0w42jz.js +1 -0
- package/dist/assets/vitesse-black-Bkuqu6BP.js +1 -0
- package/dist/assets/vitesse-black-Dax7f9LR.js +1 -0
- package/dist/assets/vitesse-dark-CC8sM7O4.js +1 -0
- package/dist/assets/vitesse-dark-D0r3Knsf.js +1 -0
- package/dist/assets/vitesse-light-CVO1_9PV.js +1 -0
- package/dist/assets/vitesse-light-DngnB9Ap.js +1 -0
- package/dist/assets/vitest-i44Gcf_F.js +1 -0
- package/dist/assets/vlang-K_acwrKH.js +1 -0
- package/dist/assets/vscode-CPfgSJNd.js +1 -0
- package/dist/assets/vue-Bzkmc0oY.js +1 -0
- package/dist/assets/vue-DSqPwMUe.js +1 -0
- package/dist/assets/vue-config-CtYpjv8n.js +1 -0
- package/dist/assets/vue-html-AaS7Mt5G.js +1 -0
- package/dist/assets/vue-vine-C0RcJ6UU.js +1 -0
- package/dist/assets/vuex-store-DCQ47Xpg.js +1 -0
- package/dist/assets/vyper-CDx5xZoG.js +1 -0
- package/dist/assets/wakatime-D32aN5Nj.js +1 -0
- package/dist/assets/wakatime_light-DYHDf_Fb.js +1 -0
- package/dist/assets/wallaby-DmtRLjTC.js +1 -0
- package/dist/assets/wally-Czk2cVHi.js +1 -0
- package/dist/assets/warp-bCChRRcb.js +1 -0
- package/dist/assets/warp_light-3C5QL5Jh.js +1 -0
- package/dist/assets/wasm-Cey7Y6ql.js +1 -0
- package/dist/assets/wasm-MzD3tlZU.js +1 -0
- package/dist/assets/watchman-BBzhvW7q.js +1 -0
- package/dist/assets/webassembly-DKWgsl-1.js +1 -0
- package/dist/assets/webhint-e2wxeSzF.js +1 -0
- package/dist/assets/webpack-BokQqAJA.js +1 -0
- package/dist/assets/wenyan-BV7otONQ.js +1 -0
- package/dist/assets/wepy-pzrt869D.js +1 -0
- package/dist/assets/werf-BvdCQyOw.js +1 -0
- package/dist/assets/wgsl-Dx-B1_4e.js +1 -0
- package/dist/assets/wikitext-BhOHFoWU.js +1 -0
- package/dist/assets/windicss-CpPbDU-_.js +1 -0
- package/dist/assets/wit-5i3qLPDT.js +1 -0
- package/dist/assets/wolfram-lXgVvXCa.js +1 -0
- package/dist/assets/wolframlanguage-wsq5kDAa.js +1 -0
- package/dist/assets/word-BtZ7qxXr.js +1 -0
- package/dist/assets/wrangler-D5ad_QWA.js +1 -0
- package/dist/assets/wxt-zGERCYAl.js +1 -0
- package/dist/assets/xaml-P0xVLetJ.js +1 -0
- package/dist/assets/xmake-BWREnQt2.js +1 -0
- package/dist/assets/xml-sdJ4AIDG.js +1 -0
- package/dist/assets/xml-yoWXa9Oi.js +1 -0
- package/dist/assets/xsl-CtQFsRM5.js +1 -0
- package/dist/assets/yaml-Buea-lGh.js +1 -0
- package/dist/assets/yaml-CUsJXjy0.js +1 -0
- package/dist/assets/yang-BM1tXpSV.js +1 -0
- package/dist/assets/yarn-DVjHNA2t.js +1 -0
- package/dist/assets/zeabur-ptXTs61B.js +1 -0
- package/dist/assets/zeabur_light-BCvG35Tq.js +1 -0
- package/dist/assets/zenscript-DVFEvuxE.js +1 -0
- package/dist/assets/zig-CFfxTC_v.js +1 -0
- package/dist/assets/zig-VOosw3JB.js +1 -0
- package/dist/assets/zip-DKctXltq.js +1 -0
- package/dist/assets/zizmor-ChQkApnp.js +1 -0
- package/dist/index.html +14 -0
- package/dist-node/agentSetup.js +45 -0
- package/dist-node/cli.js +167 -0
- package/dist-node/pixel.js +14 -0
- package/dist-node/rexPane.js +38 -0
- package/dist-node/rexTarget.js +43 -0
- package/dist-node/server.js +544 -0
- package/dist-node/shared/cliArgs.js +40 -0
- package/dist-node/shared/review.js +59 -0
- package/dist-node/upgrade.js +157 -0
- package/hosts/pixel/README.md +28 -0
- package/hosts/pixel/dist/main.js +62 -0
- package/hosts/pixel/dist/terminal.js +8 -0
- package/hosts/pixel/dist/tree-compat.js +18 -0
- package/hosts/pixel/dist/url.js +8 -0
- package/hosts/pixel/dist/zoom.js +8 -0
- package/local-diff.lua +41 -0
- package/package.json +70 -4
- package/skills/local-diff/SKILL.md +32 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/highlights-CpYWOIDl.js","assets/stream-tokenizer-Dc3o0eG9.js","assets/shiki-CpXFjX6z.js","assets/core-CNrdLTJr.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Wm=Object.defineProperty;var Bm=(e,n,r)=>n in e?Wm(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r;var O=(e,n,r)=>Bm(e,typeof n!="symbol"?n+"":n,r);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).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 o(l){if(l.ep)return;l.ep=!0;const u=r(l);fetch(l.href,u)}})();const qm="modulepreload",Gm=function(e){return"/"+e},vf={},Ji=function(n,r,o){let l=Promise.resolve();if(r&&r.length>0){let d=function(p){return Promise.all(p.map(m=>Promise.resolve(m).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),f=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));l=d(r.map(p=>{if(p=Gm(p),p in vf)return;vf[p]=!0;const m=p.endsWith(".css"),v=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const k=document.createElement("link");if(k.rel=m?"stylesheet":qm,m||(k.as="script"),k.crossOrigin="",k.href=p,f&&k.setAttribute("nonce",f),document.head.appendChild(k),m)return new Promise((x,S)=>{k.addEventListener("load",x),k.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${p}`)))})}))}function u(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return l.then(d=>{for(const h of d||[])h.status==="rejected"&&u(h.reason);return n().catch(u)})};function Xm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ba={exports:{}},jr={},Ea={exports:{}},Te={};/**
|
|
3
|
+
* @license React
|
|
4
|
+
* react.production.min.js
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
+
*
|
|
8
|
+
* This source code is licensed under the MIT license found in the
|
|
9
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
|
+
*/var yf;function Km(){if(yf)return Te;yf=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.iterator;function k(M){return M===null||typeof M!="object"?null:(M=v&&M[v]||M["@@iterator"],typeof M=="function"?M:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function E(M,H,se){this.props=M,this.context=H,this.refs=C,this.updater=se||x}E.prototype.isReactComponent={},E.prototype.setState=function(M,H){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,H,"setState")},E.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function A(){}A.prototype=E.prototype;function w(M,H,se){this.props=M,this.context=H,this.refs=C,this.updater=se||x}var L=w.prototype=new A;L.constructor=w,S(L,E.prototype),L.isPureReactComponent=!0;var b=Array.isArray,D=Object.prototype.hasOwnProperty,F={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function z(M,H,se){var fe,ke={},Se=null,Ee=null;if(H!=null)for(fe in H.ref!==void 0&&(Ee=H.ref),H.key!==void 0&&(Se=""+H.key),H)D.call(H,fe)&&!N.hasOwnProperty(fe)&&(ke[fe]=H[fe]);var we=arguments.length-2;if(we===1)ke.children=se;else if(1<we){for(var Le=Array(we),$e=0;$e<we;$e++)Le[$e]=arguments[$e+2];ke.children=Le}if(M&&M.defaultProps)for(fe in we=M.defaultProps,we)ke[fe]===void 0&&(ke[fe]=we[fe]);return{$$typeof:e,type:M,key:Se,ref:Ee,props:ke,_owner:F.current}}function G(M,H){return{$$typeof:e,type:M.type,key:H,ref:M.ref,props:M.props,_owner:M._owner}}function V(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function ue(M){var H={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(se){return H[se]})}var K=/\/+/g;function B(M,H){return typeof M=="object"&&M!==null&&M.key!=null?ue(""+M.key):H.toString(36)}function ie(M,H,se,fe,ke){var Se=typeof M;(Se==="undefined"||Se==="boolean")&&(M=null);var Ee=!1;if(M===null)Ee=!0;else switch(Se){case"string":case"number":Ee=!0;break;case"object":switch(M.$$typeof){case e:case n:Ee=!0}}if(Ee)return Ee=M,ke=ke(Ee),M=fe===""?"."+B(Ee,0):fe,b(ke)?(se="",M!=null&&(se=M.replace(K,"$&/")+"/"),ie(ke,H,se,"",function($e){return $e})):ke!=null&&(V(ke)&&(ke=G(ke,se+(!ke.key||Ee&&Ee.key===ke.key?"":(""+ke.key).replace(K,"$&/")+"/")+M)),H.push(ke)),1;if(Ee=0,fe=fe===""?".":fe+":",b(M))for(var we=0;we<M.length;we++){Se=M[we];var Le=fe+B(Se,we);Ee+=ie(Se,H,se,Le,ke)}else if(Le=k(M),typeof Le=="function")for(M=Le.call(M),we=0;!(Se=M.next()).done;)Se=Se.value,Le=fe+B(Se,we++),Ee+=ie(Se,H,se,Le,ke);else if(Se==="object")throw H=String(M),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.");return Ee}function ye(M,H,se){if(M==null)return M;var fe=[],ke=0;return ie(M,fe,"","",function(Se){return H.call(se,Se,ke++)}),fe}function ge(M){if(M._status===-1){var H=M._result;H=H(),H.then(function(se){(M._status===0||M._status===-1)&&(M._status=1,M._result=se)},function(se){(M._status===0||M._status===-1)&&(M._status=2,M._result=se)}),M._status===-1&&(M._status=0,M._result=H)}if(M._status===1)return M._result.default;throw M._result}var ee={current:null},W={transition:null},re={ReactCurrentDispatcher:ee,ReactCurrentBatchConfig:W,ReactCurrentOwner:F};function ne(){throw Error("act(...) is not supported in production builds of React.")}return Te.Children={map:ye,forEach:function(M,H,se){ye(M,function(){H.apply(this,arguments)},se)},count:function(M){var H=0;return ye(M,function(){H++}),H},toArray:function(M){return ye(M,function(H){return H})||[]},only:function(M){if(!V(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Te.Component=E,Te.Fragment=r,Te.Profiler=l,Te.PureComponent=w,Te.StrictMode=o,Te.Suspense=f,Te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,Te.act=ne,Te.cloneElement=function(M,H,se){if(M==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+M+".");var fe=S({},M.props),ke=M.key,Se=M.ref,Ee=M._owner;if(H!=null){if(H.ref!==void 0&&(Se=H.ref,Ee=F.current),H.key!==void 0&&(ke=""+H.key),M.type&&M.type.defaultProps)var we=M.type.defaultProps;for(Le in H)D.call(H,Le)&&!N.hasOwnProperty(Le)&&(fe[Le]=H[Le]===void 0&&we!==void 0?we[Le]:H[Le])}var Le=arguments.length-2;if(Le===1)fe.children=se;else if(1<Le){we=Array(Le);for(var $e=0;$e<Le;$e++)we[$e]=arguments[$e+2];fe.children=we}return{$$typeof:e,type:M.type,key:ke,ref:Se,props:fe,_owner:Ee}},Te.createContext=function(M){return M={$$typeof:d,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},M.Provider={$$typeof:u,_context:M},M.Consumer=M},Te.createElement=z,Te.createFactory=function(M){var H=z.bind(null,M);return H.type=M,H},Te.createRef=function(){return{current:null}},Te.forwardRef=function(M){return{$$typeof:h,render:M}},Te.isValidElement=V,Te.lazy=function(M){return{$$typeof:m,_payload:{_status:-1,_result:M},_init:ge}},Te.memo=function(M,H){return{$$typeof:p,type:M,compare:H===void 0?null:H}},Te.startTransition=function(M){var H=W.transition;W.transition={};try{M()}finally{W.transition=H}},Te.unstable_act=ne,Te.useCallback=function(M,H){return ee.current.useCallback(M,H)},Te.useContext=function(M){return ee.current.useContext(M)},Te.useDebugValue=function(){},Te.useDeferredValue=function(M){return ee.current.useDeferredValue(M)},Te.useEffect=function(M,H){return ee.current.useEffect(M,H)},Te.useId=function(){return ee.current.useId()},Te.useImperativeHandle=function(M,H,se){return ee.current.useImperativeHandle(M,H,se)},Te.useInsertionEffect=function(M,H){return ee.current.useInsertionEffect(M,H)},Te.useLayoutEffect=function(M,H){return ee.current.useLayoutEffect(M,H)},Te.useMemo=function(M,H){return ee.current.useMemo(M,H)},Te.useReducer=function(M,H,se){return ee.current.useReducer(M,H,se)},Te.useRef=function(M){return ee.current.useRef(M)},Te.useState=function(M){return ee.current.useState(M)},Te.useSyncExternalStore=function(M,H,se){return ee.current.useSyncExternalStore(M,H,se)},Te.useTransition=function(){return ee.current.useTransition()},Te.version="18.3.1",Te}var xf;function yu(){return xf||(xf=1,Ea.exports=Km()),Ea.exports}/**
|
|
11
|
+
* @license React
|
|
12
|
+
* react-jsx-runtime.production.min.js
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
+
*
|
|
16
|
+
* This source code is licensed under the MIT license found in the
|
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
|
18
|
+
*/var kf;function Qm(){if(kf)return jr;kf=1;var e=yu(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(h,f,p){var m,v={},k=null,x=null;p!==void 0&&(k=""+p),f.key!==void 0&&(k=""+f.key),f.ref!==void 0&&(x=f.ref);for(m in f)o.call(f,m)&&!u.hasOwnProperty(m)&&(v[m]=f[m]);if(h&&h.defaultProps)for(m in f=h.defaultProps,f)v[m]===void 0&&(v[m]=f[m]);return{$$typeof:n,type:h,key:k,ref:x,props:v,_owner:l.current}}return jr.Fragment=r,jr.jsx=d,jr.jsxs=d,jr}var Sf;function Ym(){return Sf||(Sf=1,ba.exports=Qm()),ba.exports}var T=Ym(),Fr={},wf;function Zm(){if(wf)return Fr;wf=1,Object.defineProperty(Fr,"__esModule",{value:!0}),Fr.styleq=void 0;var e=new WeakMap,n="$$css";function r(l){var u,d,h;return l!=null&&(u=l.disableCache===!0,d=l.disableMix===!0,h=l.transform),function(){for(var p=[],m="",v=null,k="",x=u?null:e,S=new Array(arguments.length),C=0;C<arguments.length;C++)S[C]=arguments[C];for(;S.length>0;){var E=S.pop();if(!(E==null||E===!1)){if(Array.isArray(E)){for(var A=0;A<E.length;A++)S.push(E[A]);continue}var w=h!=null?h(E):E;if(w.$$css!=null){var L="";if(x!=null&&x.has(w)){var b=x.get(w);b!=null&&(L=b[0],k=b[2],p.push.apply(p,b[1]),x=b[3])}else{var D=[];for(var F in w){var N=w[F];if(F===n){var z=w[F];z!==!0&&(k=k?z+"; "+k:z);continue}typeof N=="string"||N===null?p.includes(F)||(p.push(F),x!=null&&D.push(F),typeof N=="string"&&(L+=L?" "+N:N)):console.error("styleq: ".concat(F," typeof ").concat(String(N),' is not "string" or "null".'))}if(x!=null){var G=new WeakMap;x.set(w,[L,D,k,G]),x=G}}L&&(m=m?L+" "+m:L)}else if(d)v==null&&(v={}),v=Object.assign({},w,v);else{var V=null;for(var ue in w){var K=w[ue];K!==void 0&&(p.includes(ue)||(K!=null&&(v==null&&(v={}),V==null&&(V={}),V[ue]=K),p.push(ue),x=null))}V!=null&&(v=Object.assign(V,v))}}}var B=[m,v,k];return B}}var o=Fr.styleq=r();return o.factory=r,Fr}var Jm=Zm();function oe(...e){const[n,r,o]=Jm.styleq(e),l={};return n!=null&&n!==""&&(l.className=n),r!=null&&Object.keys(r).length>0&&(l.style=r),o!=null&&o!==""&&(l["data-style-src"]=o),l}const te={quickSwitcher:{kzqmXN:"xosgoat",kskxy:"xy2oaap",kogj98:"x1y6tqbo",kmVPX3:"x1717udv",kMzoRj:"xmkeg23",ksu8eU:"x1y0btm7",kVAM5u:"xxl21xq",kaIpWk:"x4pepcl",kWkggS:"xitqygx",kMwMTN:"x1aj07ft",kGVxlE:"xsc07ul",kVQacm:"xb3r6kr",$$css:!0},quickInputRow:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x883omv",kmVPX3:"x1j671cp",kt9PQ7:"xso031l",kfdmCh:"x1q0q8m5",kL6WhQ:"x6fu8a9",$$css:!0},quickResults:{kskxy:"x13w8hxi",kAzted:"x2lwn1j",kORKVm:"x1odjw0f",kmVPX3:"x1un38pp",$$css:!0},appHeader:{kUk6DE:"x1okw0bk",kAzted:"x1r0t8vs",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x167g77z x1t8jho5",kmVPX3:"xyxinxf x1iz89ud",kWkggS:"xuvt9l",kt9PQ7:"xso031l",kfdmCh:"x1q0q8m5",kL6WhQ:"x6fu8a9",$$css:!0},appIdentity:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x167g77z",kUk6DE:"x98rzlu",k7Eaqz:"xeuugli",khDVqt:"xuxw1ft",$$css:!0},mobileTabs:{k1xSpc:"x1s85apg x1kygzvu",kGNEyG:"x6s0dn4",$$css:!0},headerSearchButton:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kOIVth:"x1j9xkj6",kAzted:"xnumwl6",kmVPX3:"x80aahq x1qqy26f",kMzoRj:"xmkeg23",ksu8eU:"x1y0btm7",kVAM5u:"x1io3bm2",kaIpWk:"x1kogg8i",kWkggS:"x1dt85r0",kMwMTN:"x17j02y5",kGuDYH:"xfifm61",khDVqt:"xuxw1ft",$$css:!0},headerSearchShortcut:{k1xSpc:"x3nfvp2 x1iqanyw",kGNEyG:"x6s0dn4",kZKoxP:"xmix8c7",kmVPX3:"xld7i00",koQZXg:"x16vho4v",kMzoRj:"xmkeg23",ksu8eU:"x1y0btm7",kVAM5u:"x1io3bm2",kaIpWk:"x12oqio5",kGuDYH:"x1k6wstc",kLWn49:"xo5v014",kMwMTN:"x17j02y5",kMv6JI:"xjb2p0i",$$css:!0},headerIconButton:{k1xSpc:"xrvj5dj",kgQiWS:"x1ku5rj1",kUk6DE:"x1okw0bk",kzqmXN:"xfl98yo",kAzted:"xnumwl6",kmVPX3:"x14odnwx",kMzoRj:"xmkeg23",ksu8eU:"x1y0btm7",kVAM5u:"x9r1u3d",kaIpWk:"x1kogg8i",kWkggS:"xjbqb8w",kMwMTN:"x17j02y5",$$css:!0},selectTrigger:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"x1qughib",kOIVth:"x1j9xkj6",kmuXW:"x2lah0s",kAzted:"x1rz828m",kmVPX3:"x157iyib",kMzoRj:"xmkeg23",ksu8eU:"x1y0btm7",kVAM5u:"x1io3bm2",kaIpWk:"x1kogg8i",kWkggS:"x1dt85r0",kMwMTN:"x1aj07ft",kGuDYH:"xfifm61",khDVqt:"xuxw1ft",$$css:!0},selectTriggerInline:{k7Eaqz:"xeuugli",ks0D6T:"x193iq5w",kAzted:"xe0p6wg",kmVPX3:"x10ed91l",kVAM5u:"x9r1u3d",kWkggS:"xjbqb8w",kMwMTN:"xhgddhk",kGuDYH:"x1j6dyjg",$$css:!0},selectTriggerLabel:{kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",$$css:!0},selectChevron:{kzqmXN:"x1fxhmyf",kZKoxP:"x18gnavp",kMwMTN:"x17j02y5",kmuXW:"x2lah0s",kmkexE:"x1z0egwz x9kvfbb",$$css:!0},selectChevronOpen:{k3aq6I:"x19jd1h0",kMwMTN:"x1aj07ft",$$css:!0},selectPopover:{kVAEAm:"xixxii4",kY2c9j:"xa9119d",ks0D6T:"xlkbywk",kskxy:"xlnuhz6",kORKVm:"x1odjw0f",kmVPX3:"xfawy5m",kMzoRj:"xmkeg23",ksu8eU:"x1y0btm7",kVAM5u:"xxl21xq",kaIpWk:"xur7f20",kWkggS:"xitqygx",kMwMTN:"x1aj07ft",kGVxlE:"xc4qm6p",kI3sdo:"x1a2a7pz",kSiTet:"x1hc1fzr",k3aq6I:"xvvkyix",kmkexE:"xuxsok0 x9kvfbb",$$css:!0},selectOption:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"x1qughib",kOIVth:"x1v2ro7d",kAzted:"xe0p6wg",kmVPX3:"x1yewt50",kaIpWk:"x1sxf85j",kMwMTN:"xhgddhk",kGuDYH:"xfifm61",kkrTdU:"x1ypdohk",kfSwDN:"x87ps6o",$$css:!0},selectOptionHighlighted:{kWkggS:"x1z0npw7",kMwMTN:"x1aj07ft",$$css:!0},selectOptionSelected:{kMwMTN:"x1aj07ft",k63SB2:"xk50ysn",$$css:!0},selectOptionLabel:{kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",$$css:!0},selectOptionCheck:{k1xSpc:"xrvj5dj",kgQiWS:"x1ku5rj1",kzqmXN:"x6jxa94",kZKoxP:"x1v9usgg",kmuXW:"x2lah0s",kMwMTN:"x1aj07ft",$$css:!0},sidebarHeading:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x167g77z",kAzted:"x21xpn4",k1K539:"xyorhqc",kmuXW:"x2lah0s",$$css:!0},fileCount:{k7Eaqz:"xt4ypqs",k9WMMc:"x2b8uid",kaIpWk:"x1sxf85j",kmVPX3:"xld7i00",kMwMTN:"xhgddhk",kGuDYH:"x1j6dyjg",kcqcaj:"xss6m8b",$$css:!0},sidebarToggle:{k1xSpc:"xrvj5dj xl0nte0",kgQiWS:"x1ku5rj1",kUk6DE:"x1okw0bk",kzqmXN:"xgd8bvy",kAzted:"xe0p6wg",kmVPX3:"xfawy5m",kVAM5u:"x9r1u3d",kMwMTN:"xhgddhk",$$css:!0},sidebarModeButton:{k1xSpc:"xrvj5dj",kgQiWS:"x1ku5rj1",kUk6DE:"x1okw0bk",kzqmXN:"xgd8bvy",kAzted:"xe0p6wg",kmVPX3:"xfawy5m",kVAM5u:"x9r1u3d",kMwMTN:"xhgddhk",$$css:!0},fileItem:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x1jnr06f",kaIpWk:"x1sxf85j",kmuXW:"x2lah0s",$$css:!0},viewedToggle:{k1xSpc:"xrvj5dj",kgQiWS:"x1ku5rj1",kUk6DE:"x1okw0bk",kzqmXN:"xgd8bvy",kAzted:"xe0p6wg",kmVPX3:"x14odnwx",kWkggS:"xjbqb8w",kMzoRj:"xc342km",kMwMTN:"x17j02y5",$$css:!0},changeTotals:{k1xSpc:"x78zum5",kOIVth:"x1nejdyq",kGuDYH:"x1k6wstc",kcqcaj:"xss6m8b",$$css:!0},sidebarFooter:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x1j9xkj6",keoZOQ:"xr1yuqi",kmVPX3:"xwfaxsz",kMwMTN:"x17j02y5",kGuDYH:"x1k6wstc",khDVqt:"xuxw1ft",kmuXW:"x2lah0s",$$css:!0},connectionDot:{kzqmXN:"x1ftt334",kZKoxP:"x1ycjhwn",kaIpWk:"x16rqkct",kUk6DE:"x1okw0bk",$$css:!0},sidebarSettings:{kVAEAm:"x1n2onr6",kUk6DE:"x1okw0bk",$$css:!0},sidebarSettingsTrigger:{k1xSpc:"xrvj5dj",kgQiWS:"x1ku5rj1",kzqmXN:"x19gs91j",kAzted:"x1jzqatt",kmVPX3:"x14odnwx",kVAM5u:"x9r1u3d",kMwMTN:"x17j02y5",$$css:!0},settingsDialog:{kzqmXN:"xcs98ov xdkfdrw",ks0D6T:"x1x1rfll",kskxy:"x12ajvvl xc8nhku",kmVPX3:"x1717udv",kVQacm:"xysyzu8",kMzoRj:"xmkeg23",ksu8eU:"x1y0btm7",kVAM5u:"xxl21xq",kaIpWk:"x1q4ynmn",kWkggS:"xitqygx",kMwMTN:"x1aj07ft",kGVxlE:"x3uq0tk",kSiTet:"x1hc1fzr",k3aq6I:"xvvkyix",kmkexE:"x1hwsbto x9kvfbb",$$css:!0},settingsDialogHeader:{k1xSpc:"x78zum5",kGNEyG:"x1cy8zhl",kjj79g:"x1qughib",kOIVth:"xou54vl",kmVPX3:"xm67vvd",kt9PQ7:"xso031l",kfdmCh:"x1q0q8m5",kL6WhQ:"x6fu8a9",$$css:!0},settingsClose:{k1xSpc:"xrvj5dj",kgQiWS:"x1ku5rj1",kzqmXN:"x1849jeq",kAzted:"x1rz828m",kmVPX3:"x14odnwx",kVAM5u:"x9r1u3d",kMwMTN:"x17j02y5",$$css:!0},settingsDialogBody:{k1xSpc:"xrvj5dj",kumcoG:"xjwvtc2 xjucj32",kAzted:"xycb4ip x1ef3gmh",$$css:!0},settingsNav:{kmVPX3:"xbje72g xb271nq",kWqL5O:"xs1s249 x1p3bvng",kSWEuD:"x32b0ac",k26BEO:"x1x60bnm",kWkggS:"xvihz7a xm2lzxh",$$css:!0},settingsNavItem:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"xmmi0ta",kzqmXN:"xh8yej3 x1sgqdwz",kAzted:"xu97haq x88s1ij",kmVPX3:"x1jmcyos xpxx2qg",kMzoRj:"xmkeg23",ksu8eU:"x1y0btm7",kVAM5u:"x9r1u3d",kaIpWk:"x1kogg8i",kWkggS:"xjbqb8w",kMwMTN:"xhgddhk",k9WMMc:"xdpxx8g",kGuDYH:"xfifm61",kmkexE:"x191diov x9kvfbb",$$css:!0},settingsContent:{k7Eaqz:"xeuugli",kmVPX3:"xxt4ckt x1rnnkvb",$$css:!0},layoutChoices:{k1xSpc:"xrvj5dj",kumcoG:"xnby9oq",kOIVth:"xmmi0ta xi09jvl",kogj98:"x1ghz6dp",kmVPX3:"x1717udv",$$css:!0},layoutChoice:{kVAEAm:"x1n2onr6",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kOIVth:"x167g77z",k7Eaqz:"xeuugli",kmVPX3:"xe8ttls x1t3y18o",kMzoRj:"xmkeg23",ksu8eU:"x1y0btm7",kVAM5u:"xxl21xq",kaIpWk:"xu4hgxq",kWkggS:"x25uvz7",kkrTdU:"x1ypdohk",kmkexE:"x1esxbrs x9kvfbb",$$css:!0},layoutChoiceHeading:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"x1qughib",kOIVth:"x167g77z",$$css:!0},layoutChoiceLabel:{kGuDYH:"xfifm61",k63SB2:"xh88oxj",$$css:!0},layoutChoiceRadio:{k1xSpc:"xrvj5dj",kgQiWS:"x1ku5rj1",kUk6DE:"x1okw0bk",kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",kaIpWk:"x16rqkct",kMwMTN:"x1mvifnr",$$css:!0},layoutPreview:{k1xSpc:"xrvj5dj",kC13JO:"x1fb6qje",kumcoG:"x7um4pr",k9llMU:"x4oqzdd",kOIVth:"x1jnr06f",kZKoxP:"xy75621 xzp5vkz",kmVPX3:"x1ruevkc",kVQacm:"xb3r6kr",kMzoRj:"xmkeg23",ksu8eU:"x1y0btm7",kVAM5u:"x1io3bm2",kaIpWk:"x1sxf85j",kWkggS:"x1b9w1hp",$$css:!0},layoutPreviewRight:{kC13JO:"x14yxcpe",kumcoG:"xdb4qxy",$$css:!0},layoutPreviewChrome:{kJuA4N:"x14svxym",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x1ed6fcf",kt9PQ7:"xso031l",kfdmCh:"x1q0q8m5",kL6WhQ:"x1s68gkw",$$css:!0},layoutPreviewSidebar:{kJuA4N:"x1yc5d2u",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kOIVth:"x1nejdyq",kmVPX3:"x14zjhkh",kaIpWk:"x1cum3z5",kWkggS:"xjlecwp",$$css:!0},layoutPreviewMain:{kJuA4N:"x1qd5a2c",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kOIVth:"x1nejdyq",kmVPX3:"xn1qhxa",kaIpWk:"x1cum3z5",kWkggS:"x152km7d",$$css:!0},themeChoices:{k1xSpc:"xrvj5dj",kumcoG:"x185a7wo",kOIVth:"x167g77z x1t8jho5",$$css:!0},themeChoice:{kVAEAm:"x1n2onr6",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kOIVth:"x167g77z",k7Eaqz:"xeuugli",kmVPX3:"xe8ttls x2ws8om",kMzoRj:"xmkeg23",ksu8eU:"x1y0btm7",kVAM5u:"xxl21xq",kaIpWk:"xu4hgxq",kWkggS:"x25uvz7",kkrTdU:"x1ypdohk",kmkexE:"x1sbjtfs x9kvfbb",$$css:!0},themeSwatch:{k1xSpc:"x78zum5",kOIVth:"x1jnr06f",kZKoxP:"xng8ra xle72zg",kmVPX3:"x1ruevkc",kVQacm:"xb3r6kr",kMzoRj:"xmkeg23",ksu8eU:"x1y0btm7",kVAM5u:"x1io3bm2",kaIpWk:"x12oqio5",$$css:!0},themeSwatchDark:{kMwMTN:"xxjsej2",$$css:!0},themeSwatchLight:{kMwMTN:"x15xp6yi",$$css:!0},themeSwatchSystem:{kMwMTN:"x1t7hyc4",$$css:!0},themeChoiceLabel:{kMwMTN:"x1aj07ft",kGuDYH:"xfifm61",k63SB2:"xh88oxj",$$css:!0},densityChoices:{k1xSpc:"xrvj5dj",kumcoG:"xnby9oq",kOIVth:"x167g77z x1t8jho5",$$css:!0},densityChoice:{kVAEAm:"x1n2onr6",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"x1qughib",kOIVth:"x167g77z",k7Eaqz:"xeuugli",kmVPX3:"x12s40zk",kMzoRj:"xmkeg23",ksu8eU:"x1y0btm7",kVAM5u:"xxl21xq",kaIpWk:"xu4hgxq",kWkggS:"x25uvz7",kkrTdU:"x1ypdohk",kmkexE:"x1sbjtfs x9kvfbb",$$css:!0},footerBranch:{koQZXg:"x8x9d4c",kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",ks0D6T:"xirqqd8",$$css:!0},diffContent:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",k7Eaqz:"xeuugli",kVQacm:"xb3r6kr",$$css:!0},codeScroll:{kUk6DE:"x98rzlu",kAzted:"x2lwn1j",kVQacm:"xysyzu8",$$css:!0},codeScrollContent:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kAzted:"x1us19tq",$$css:!0},reviewNotes:{kmVPX3:"x1ly7u5z",kmuXW:"x2lah0s",kMwMTN:"x17j02y5",kGuDYH:"xfifm61",$$css:!0},emptyState:{k1xSpc:"x78zum5",kUk6DE:"x98rzlu",kXwgrk:"xdt5ytf",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kAzted:"x9l5fec",kmVPX3:"xi7o18q",k9WMMc:"x2b8uid",$$css:!0},emptyIcon:{k1xSpc:"xrvj5dj",kgQiWS:"x1ku5rj1",kzqmXN:"x1useyqa",kZKoxP:"xsdox4t",k1K539:"x1j6vgnk",kaIpWk:"x9h44rk",kMwMTN:"xhgddhk",kGVxlE:"xpj9s3x",$$css:!0},collapsedDiff:{kzqmXN:"xh8yej3",kmVPX3:"xozlmf9",kaIpWk:"x2u8bby",k9WMMc:"xdpxx8g",kMwMTN:"x17j02y5",$$css:!0},status:{kVAEAm:"xixxii4",kY2c9j:"x1w0boku",krVfgx:"x191j7n5",kCIrl2:"xn5hqff",ks0D6T:"x4d2062",kaIpWk:"xur7f20",kmVPX3:"x15x03d9",kGVxlE:"xbdy8o5",kGuDYH:"xfifm61",$$css:!0},appError:{kMwMTN:"xdc5w88",khDVqt:"x126k92a",$$css:!0},copyFilename:{k1xSpc:"xwz0xwf",kgQiWS:"x1ku5rj1",kzqmXN:"xgd8bvy",kAzted:"xe0p6wg",koQZXg:"x1iog12x",kmVPX3:"x14odnwx",kVAM5u:"x9r1u3d",kMwMTN:"x17j02y5",kXLuUW:"xxymvpz",$$css:!0},inlineComposer:{kogj98:"x123avrf x1rnant3",kaIpWk:"xhpnuu7",kGVxlE:"x1vzuqef",kMwMTN:"x1aj07ft",kVVagm:"xctzii1",khDVqt:"xeaf4i8",kHjlTd:"xj0a0fe",kVQacm:"xb3r6kr",kmkexE:"x9jyray",$$css:!0},composerHeading:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"x1qughib",kOIVth:"x167g77z",kmVPX3:"x1oqqwwe",kE3dHu:"x1u6co80",$$css:!0},composerTitle:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x167g77z",k7Eaqz:"xeuugli",$$css:!0},composerLineBadge:{koQZXg:"x1swdo50",kmVPX3:"x1e41zw8",kaIpWk:"x12oqio5",kMwMTN:"x17j02y5",kVVagm:"x12ih9lx",khDVqt:"xuxw1ft",$$css:!0},composerClose:{k1xSpc:"xrvj5dj",kgQiWS:"x1ku5rj1",kUk6DE:"x1okw0bk",kmVPX3:"xfawy5m",kzqmXN:"xvy4d1p",kAzted:"xjwf9q1",kMwMTN:"x17j02y5",$$css:!0},composerActions:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kjj79g:"x1qughib",kOIVth:"x1v2ro7d xkc8eqz",kmVPX3:"x1160tuk",kwnvtZ:"x1qohksk",$$css:!0},composerDestination:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x17d4w8g",k7Eaqz:"xeuugli",ks0D6T:"xggofmx xopd23v",kUk6DE:"x11133je",$$css:!0},askAgentButton:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kUk6DE:"x1okw0bk",kOIVth:"x1j9xkj6",k7Eaqz:"x1c7vg25",kAzted:"xe0p6wg",kmVPX3:"x9f0cxo",kVAM5u:"x1io3bm2",kaIpWk:"x1sxf85j",kMwMTN:"xtk6v10",kGuDYH:"x1j6dyjg",k63SB2:"x1s688f",khDVqt:"xuxw1ft",kGVxlE:"xej8dw4",koQZXg:"xaln239",$$css:!0},agentIcon:{kQNsl9:"x19aimcq",k1xSpc:"x1lliihq",kzqmXN:"x6jxa94",kZKoxP:"x1v9usgg",kVIFPx:"x19kjcj4",kmuXW:"x2lah0s",$$css:!0},sidebarModes:{k1xSpc:"x78zum5",kOIVth:"x195vfkc",$$css:!0},changesSidebar:{kUk6DE:"x98rzlu",kAzted:"x2lwn1j",kVQacm:"xysyzu8",$$css:!0},explorerHost:{k1xSpc:"x78zum5",kUk6DE:"x98rzlu",kAzted:"x2lwn1j",kXwgrk:"xdt5ytf",$$css:!0},explorerSidebar:{k1xSpc:"x78zum5",kUk6DE:"x98rzlu",kAzted:"x2lwn1j",kXwgrk:"xdt5ytf",$$css:!0},repositoryTree:{kUk6DE:"x98rzlu",kAzted:"x2lwn1j",$$css:!0},sourceContent:{k7Eaqz:"xeuugli",kVQacm:"xb3r6kr",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",$$css:!0},explorerTabs:{k1xSpc:"x78zum5",kGNEyG:"x1qjc9v5",kmuXW:"x2lah0s",k7Eaqz:"xeuugli",kAzted:"xu97haq",kOIVth:"x1ed6fcf",kmVPX3:"x18juh3m",kXHlph:"xw2csxc",$$css:!0},explorerTab:{k1xSpc:"x78zum5",kUk6DE:"x3psx0u",kGNEyG:"x6s0dn4",kzqmXN:"xeq5yr9",k7Eaqz:"xeuugli",ks0D6T:"x1e4dklr",kaIpWk:"x1sxf85j",$$css:!0},explorerTabSelect:{kUk6DE:"xkz0k9k",k7Eaqz:"xeuugli",kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",kAzted:"xj9xw9b",kmVPX3:"x1d4th4m",kaIpWk:"x12oqio5",kMwMTN:"x17j02y5",kGuDYH:"xfifm61",kkrTdU:"x1ypdohk",$$css:!0},explorerTabActive:{kVAM5u:"x1io3bm2",$$css:!0},explorerTabLabelActive:{kMwMTN:"x1aj07ft",$$css:!0},explorerTabClose:{k1xSpc:"xrvj5dj",kgQiWS:"x1ku5rj1",kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",km5ZXQ:"x1hdptxu",kAzted:"x2lwn1j",kmuXW:"x2lah0s",kaIpWk:"x12oqio5",kmVPX3:"x1717udv",kMwMTN:"x17j02y5",kSiTet:"xg01cxk",kkrTdU:"x1ypdohk",kmkexE:"x87spnt",kDPRdz:"x1ft2rvj",kBCxwx:"x25t5g8",$$css:!0},srOnly:{kVAEAm:"x10l6tqk",kzqmXN:"x1i1rx1s",kZKoxP:"xjm9jq1",kVQacm:"xb3r6kr",kz4h6p:"x1hyvwdk",khDVqt:"xuxw1ft",$$css:!0},sidebarResize:{kVAEAm:"x10l6tqk",kY2c9j:"xzkaem6",k87sOh:"x13vifvy",krVfgx:"x1ey2m1c",kbCHJM:"xrhnz0m",kzqmXN:"x1xc55vz",kkrTdU:"xicojor",kFalU9:"x5ve5x3",k1xSpc:"xl0nte0",$$css:!0},markdownPreviewToolbar:{k1xSpc:"x78zum5",kjj79g:"x13a6bvl",kGNEyG:"x6s0dn4",kOIVth:"x883omv",kmVPX3:"x1ff1495",kMwMTN:"x17j02y5",kGuDYH:"xfifm61",$$css:!0},sourceToolbar:{k1xSpc:"x78zum5",kjj79g:"x13a6bvl",kGNEyG:"x6s0dn4",kOIVth:"x883omv",kmVPX3:"x1ff1495",kMwMTN:"x17j02y5",kGuDYH:"xfifm61",$$css:!0},markdownPreview:{kzqmXN:"xt830al",kogj98:"x1or3q5w",kmVPX3:"x1ee3y45",kLWn49:"x4q1cud",kHjlTd:"xj0a0fe",$$css:!0},repositoryImagePreview:{k1xSpc:"x1lliihq",ks0D6T:"x193iq5w",kskxy:"xmz0i5r",kVIFPx:"x19kjcj4",kogj98:"x1bpp3o7",$$css:!0}};var q=yu();const e0=Xm(q);var as={},La={exports:{}},Rt={},Ra={exports:{}},Ta={};/**
|
|
19
|
+
* @license React
|
|
20
|
+
* scheduler.production.min.js
|
|
21
|
+
*
|
|
22
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the MIT license found in the
|
|
25
|
+
* LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/var Cf;function t0(){return Cf||(Cf=1,(function(e){function n(W,re){var ne=W.length;W.push(re);e:for(;0<ne;){var M=ne-1>>>1,H=W[M];if(0<l(H,re))W[M]=re,W[ne]=H,ne=M;else break e}}function r(W){return W.length===0?null:W[0]}function o(W){if(W.length===0)return null;var re=W[0],ne=W.pop();if(ne!==re){W[0]=ne;e:for(var M=0,H=W.length,se=H>>>1;M<se;){var fe=2*(M+1)-1,ke=W[fe],Se=fe+1,Ee=W[Se];if(0>l(ke,ne))Se<H&&0>l(Ee,ke)?(W[M]=Ee,W[Se]=ne,M=Se):(W[M]=ke,W[fe]=ne,M=fe);else if(Se<H&&0>l(Ee,ne))W[M]=Ee,W[Se]=ne,M=Se;else break e}}return re}function l(W,re){var ne=W.sortIndex-re.sortIndex;return ne!==0?ne:W.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,h=d.now();e.unstable_now=function(){return d.now()-h}}var f=[],p=[],m=1,v=null,k=3,x=!1,S=!1,C=!1,E=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function L(W){for(var re=r(p);re!==null;){if(re.callback===null)o(p);else if(re.startTime<=W)o(p),re.sortIndex=re.expirationTime,n(f,re);else break;re=r(p)}}function b(W){if(C=!1,L(W),!S)if(r(f)!==null)S=!0,ge(D);else{var re=r(p);re!==null&&ee(b,re.startTime-W)}}function D(W,re){S=!1,C&&(C=!1,A(z),z=-1),x=!0;var ne=k;try{for(L(re),v=r(f);v!==null&&(!(v.expirationTime>re)||W&&!ue());){var M=v.callback;if(typeof M=="function"){v.callback=null,k=v.priorityLevel;var H=M(v.expirationTime<=re);re=e.unstable_now(),typeof H=="function"?v.callback=H:v===r(f)&&o(f),L(re)}else o(f);v=r(f)}if(v!==null)var se=!0;else{var fe=r(p);fe!==null&&ee(b,fe.startTime-re),se=!1}return se}finally{v=null,k=ne,x=!1}}var F=!1,N=null,z=-1,G=5,V=-1;function ue(){return!(e.unstable_now()-V<G)}function K(){if(N!==null){var W=e.unstable_now();V=W;var re=!0;try{re=N(!0,W)}finally{re?B():(F=!1,N=null)}}else F=!1}var B;if(typeof w=="function")B=function(){w(K)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,ye=ie.port2;ie.port1.onmessage=K,B=function(){ye.postMessage(null)}}else B=function(){E(K,0)};function ge(W){N=W,F||(F=!0,B())}function ee(W,re){z=E(function(){W(e.unstable_now())},re)}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(W){W.callback=null},e.unstable_continueExecution=function(){S||x||(S=!0,ge(D))},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):G=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return k},e.unstable_getFirstCallbackNode=function(){return r(f)},e.unstable_next=function(W){switch(k){case 1:case 2:case 3:var re=3;break;default:re=k}var ne=k;k=re;try{return W()}finally{k=ne}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(W,re){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var ne=k;k=W;try{return re()}finally{k=ne}},e.unstable_scheduleCallback=function(W,re,ne){var M=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?M+ne:M):ne=M,W){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=ne+H,W={id:m++,callback:re,priorityLevel:W,startTime:ne,expirationTime:H,sortIndex:-1},ne>M?(W.sortIndex=ne,n(p,W),r(f)===null&&W===r(p)&&(C?(A(z),z=-1):C=!0,ee(b,ne-M))):(W.sortIndex=H,n(f,W),S||x||(S=!0,ge(D))),W},e.unstable_shouldYield=ue,e.unstable_wrapCallback=function(W){var re=k;return function(){var ne=k;k=re;try{return W.apply(this,arguments)}finally{k=ne}}}})(Ta)),Ta}var bf;function n0(){return bf||(bf=1,Ra.exports=t0()),Ra.exports}/**
|
|
27
|
+
* @license React
|
|
28
|
+
* react-dom.production.min.js
|
|
29
|
+
*
|
|
30
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the MIT license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/var Ef;function i0(){if(Ef)return Rt;Ef=1;var e=yu(),n=n0();function r(t){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+t,s=1;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s]);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."}var o=new Set,l={};function u(t,i){d(t,i),d(t+"Capture",i)}function d(t,i){for(l[t]=i,t=0;t<i.length;t++)o.add(i[t])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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]*$/,m={},v={};function k(t){return f.call(v,t)?!0:f.call(m,t)?!1:p.test(t)?v[t]=!0:(m[t]=!0,!1)}function x(t,i,s,a){if(s!==null&&s.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return a?!1:s!==null?!s.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function S(t,i,s,a){if(i===null||typeof i>"u"||x(t,i,s,a))return!0;if(a)return!1;if(s!==null)switch(s.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function C(t,i,s,a,c,g,y){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=a,this.attributeNamespace=c,this.mustUseProperty=s,this.propertyName=t,this.type=i,this.sanitizeURL=g,this.removeEmptyString=y}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){E[t]=new C(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var i=t[0];E[i]=new C(i,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){E[t]=new C(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){E[t]=new C(t,2,!1,t,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){E[t]=new C(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){E[t]=new C(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){E[t]=new C(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){E[t]=new C(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){E[t]=new C(t,5,!1,t.toLowerCase(),null,!1,!1)});var A=/[\-:]([a-z])/g;function w(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var i=t.replace(A,w);E[i]=new C(i,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var i=t.replace(A,w);E[i]=new C(i,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var i=t.replace(A,w);E[i]=new C(i,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){E[t]=new C(t,1,!1,t.toLowerCase(),null,!1,!1)}),E.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){E[t]=new C(t,1,!1,t.toLowerCase(),null,!0,!0)});function L(t,i,s,a){var c=E.hasOwnProperty(i)?E[i]:null;(c!==null?c.type!==0:a||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(S(i,s,c,a)&&(s=null),a||c===null?k(i)&&(s===null?t.removeAttribute(i):t.setAttribute(i,""+s)):c.mustUseProperty?t[c.propertyName]=s===null?c.type===3?!1:"":s:(i=c.attributeName,a=c.attributeNamespace,s===null?t.removeAttribute(i):(c=c.type,s=c===3||c===4&&s===!0?"":""+s,a?t.setAttributeNS(a,i,s):t.setAttribute(i,s))))}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,D=Symbol.for("react.element"),F=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),ue=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),ie=Symbol.for("react.suspense_list"),ye=Symbol.for("react.memo"),ge=Symbol.for("react.lazy"),ee=Symbol.for("react.offscreen"),W=Symbol.iterator;function re(t){return t===null||typeof t!="object"?null:(t=W&&t[W]||t["@@iterator"],typeof t=="function"?t:null)}var ne=Object.assign,M;function H(t){if(M===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);M=i&&i[1]||""}return`
|
|
35
|
+
`+M+t}var se=!1;function fe(t,i){if(!t||se)return"";se=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch($){var a=$}Reflect.construct(t,[],i)}else{try{i.call()}catch($){a=$}t.call(i.prototype)}else{try{throw Error()}catch($){a=$}t()}}catch($){if($&&a&&typeof $.stack=="string"){for(var c=$.stack.split(`
|
|
36
|
+
`),g=a.stack.split(`
|
|
37
|
+
`),y=c.length-1,R=g.length-1;1<=y&&0<=R&&c[y]!==g[R];)R--;for(;1<=y&&0<=R;y--,R--)if(c[y]!==g[R]){if(y!==1||R!==1)do if(y--,R--,0>R||c[y]!==g[R]){var P=`
|
|
38
|
+
`+c[y].replace(" at new "," at ");return t.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",t.displayName)),P}while(1<=y&&0<=R);break}}}finally{se=!1,Error.prepareStackTrace=s}return(t=t?t.displayName||t.name:"")?H(t):""}function ke(t){switch(t.tag){case 5:return H(t.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return t=fe(t.type,!1),t;case 11:return t=fe(t.type.render,!1),t;case 1:return t=fe(t.type,!0),t;default:return""}}function Se(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case N:return"Fragment";case F:return"Portal";case G:return"Profiler";case z:return"StrictMode";case B:return"Suspense";case ie:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case ue:return(t.displayName||"Context")+".Consumer";case V:return(t._context.displayName||"Context")+".Provider";case K:var i=t.render;return t=t.displayName,t||(t=i.displayName||i.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ye:return i=t.displayName||null,i!==null?i:Se(t.type)||"Memo";case ge:i=t._payload,t=t._init;try{return Se(t(i))}catch{}}return null}function Ee(t){var i=t.type;switch(t.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=i.render,t=t.displayName||t.name||"",i.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Se(i);case 8:return i===z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function we(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Le(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function $e(t){var i=Le(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,i),a=""+t[i];if(!t.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var c=s.get,g=s.set;return Object.defineProperty(t,i,{configurable:!0,get:function(){return c.call(this)},set:function(y){a=""+y,g.call(this,y)}}),Object.defineProperty(t,i,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(y){a=""+y},stopTracking:function(){t._valueTracker=null,delete t[i]}}}}function en(t){t._valueTracker||(t._valueTracker=$e(t))}function Je(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var s=i.getValue(),a="";return t&&(a=Le(t)?t.checked?"true":"false":t.value),t=a,t!==s?(i.setValue(t),!0):!1}function et(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}}function Nt(t,i){var s=i.checked;return ne({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??t._wrapperState.initialChecked})}function Ht(t,i){var s=i.defaultValue==null?"":i.defaultValue,a=i.checked!=null?i.checked:i.defaultChecked;s=we(i.value!=null?i.value:s),t._wrapperState={initialChecked:a,initialValue:s,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function De(t,i){i=i.checked,i!=null&&L(t,"checked",i,!1)}function Ge(t,i){De(t,i);var s=we(i.value),a=i.type;if(s!=null)a==="number"?(s===0&&t.value===""||t.value!=s)&&(t.value=""+s):t.value!==""+s&&(t.value=""+s);else if(a==="submit"||a==="reset"){t.removeAttribute("value");return}i.hasOwnProperty("value")?at(t,i.type,s):i.hasOwnProperty("defaultValue")&&at(t,i.type,we(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(t.defaultChecked=!!i.defaultChecked)}function Pe(t,i,s){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var a=i.type;if(!(a!=="submit"&&a!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+t._wrapperState.initialValue,s||i===t.value||(t.value=i),t.defaultValue=i}s=t.name,s!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,s!==""&&(t.name=s)}function at(t,i,s){(i!=="number"||et(t.ownerDocument)!==t)&&(s==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+s&&(t.defaultValue=""+s))}var Ue=Array.isArray;function Be(t,i,s,a){if(t=t.options,i){i={};for(var c=0;c<s.length;c++)i["$"+s[c]]=!0;for(s=0;s<t.length;s++)c=i.hasOwnProperty("$"+t[s].value),t[s].selected!==c&&(t[s].selected=c),c&&a&&(t[s].defaultSelected=!0)}else{for(s=""+we(s),i=null,c=0;c<t.length;c++){if(t[c].value===s){t[c].selected=!0,a&&(t[c].defaultSelected=!0);return}i!==null||t[c].disabled||(i=t[c])}i!==null&&(i.selected=!0)}}function Wt(t,i){if(i.dangerouslySetInnerHTML!=null)throw Error(r(91));return ne({},i,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Qe(t,i){var s=i.value;if(s==null){if(s=i.children,i=i.defaultValue,s!=null){if(i!=null)throw Error(r(92));if(Ue(s)){if(1<s.length)throw Error(r(93));s=s[0]}i=s}i==null&&(i=""),s=i}t._wrapperState={initialValue:we(s)}}function Yr(t,i){var s=we(i.value),a=we(i.defaultValue);s!=null&&(s=""+s,s!==t.value&&(t.value=s),i.defaultValue==null&&t.defaultValue!==s&&(t.defaultValue=s)),a!=null&&(t.defaultValue=""+a)}function Zr(t){var i=t.textContent;i===t._wrapperState.initialValue&&i!==""&&i!==null&&(t.value=i)}function Jr(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function tr(t,i){return t==null||t==="http://www.w3.org/1999/xhtml"?Jr(i):t==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var xi,ki=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,s,a,c){MSApp.execUnsafeLocalFunction(function(){return t(i,s,a,c)})}:t})(function(t,i){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=i;else{for(xi=xi||document.createElement("div"),xi.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=xi.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;i.firstChild;)t.appendChild(i.firstChild)}});function Zn(t,i){if(i){var s=t.firstChild;if(s&&s===t.lastChild&&s.nodeType===3){s.nodeValue=i;return}}t.textContent=i}var Jn={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},U=["Webkit","ms","Moz","O"];Object.keys(Jn).forEach(function(t){U.forEach(function(i){i=i+t.charAt(0).toUpperCase()+t.substring(1),Jn[i]=Jn[t]})});function he(t,i,s){return i==null||typeof i=="boolean"||i===""?"":s||typeof i!="number"||i===0||Jn.hasOwnProperty(t)&&Jn[t]?(""+i).trim():i+"px"}function xe(t,i){t=t.style;for(var s in i)if(i.hasOwnProperty(s)){var a=s.indexOf("--")===0,c=he(s,i[s],a);s==="float"&&(s="cssFloat"),a?t.setProperty(s,c):t[s]=c}}var He=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ct(t,i){if(i){if(He[t]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(r(137,t));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(r(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(r(61))}if(i.style!=null&&typeof i.style!="object")throw Error(r(62))}}function St(t,i){if(t.indexOf("-")===-1)return typeof i.is=="string";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 tn=null;function Fs(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var _s=null,Si=null,wi=null;function Pu(t){if(t=Cr(t)){if(typeof _s!="function")throw Error(r(280));var i=t.stateNode;i&&(i=Co(i),_s(t.stateNode,t.type,i))}}function Iu(t){Si?wi?wi.push(t):wi=[t]:Si=t}function zu(){if(Si){var t=Si,i=wi;if(wi=Si=null,Pu(t),i)for(t=0;t<i.length;t++)Pu(i[t])}}function Hu(t,i){return t(i)}function Ou(){}var $s=!1;function ju(t,i,s){if($s)return t(i,s);$s=!0;try{return Hu(t,i,s)}finally{$s=!1,(Si!==null||wi!==null)&&(Ou(),zu())}}function nr(t,i){var s=t.stateNode;if(s===null)return null;var a=Co(s);if(a===null)return null;s=a[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":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break e;default:t=!1}if(t)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var Us=!1;if(h)try{var ir={};Object.defineProperty(ir,"passive",{get:function(){Us=!0}}),window.addEventListener("test",ir,ir),window.removeEventListener("test",ir,ir)}catch{Us=!1}function Qp(t,i,s,a,c,g,y,R,P){var $=Array.prototype.slice.call(arguments,3);try{i.apply(s,$)}catch(Q){this.onError(Q)}}var rr=!1,eo=null,to=!1,Vs=null,Yp={onError:function(t){rr=!0,eo=t}};function Zp(t,i,s,a,c,g,y,R,P){rr=!1,eo=null,Qp.apply(Yp,arguments)}function Jp(t,i,s,a,c,g,y,R,P){if(Zp.apply(this,arguments),rr){if(rr){var $=eo;rr=!1,eo=null}else throw Error(r(198));to||(to=!0,Vs=$)}}function ei(t){var i=t,s=t;if(t.alternate)for(;i.return;)i=i.return;else{t=i;do i=t,(i.flags&4098)!==0&&(s=i.return),t=i.return;while(t)}return i.tag===3?s:null}function Fu(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 _u(t){if(ei(t)!==t)throw Error(r(188))}function eg(t){var i=t.alternate;if(!i){if(i=ei(t),i===null)throw Error(r(188));return i!==t?null:t}for(var s=t,a=i;;){var c=s.return;if(c===null)break;var g=c.alternate;if(g===null){if(a=c.return,a!==null){s=a;continue}break}if(c.child===g.child){for(g=c.child;g;){if(g===s)return _u(c),t;if(g===a)return _u(c),i;g=g.sibling}throw Error(r(188))}if(s.return!==a.return)s=c,a=g;else{for(var y=!1,R=c.child;R;){if(R===s){y=!0,s=c,a=g;break}if(R===a){y=!0,a=c,s=g;break}R=R.sibling}if(!y){for(R=g.child;R;){if(R===s){y=!0,s=g,a=c;break}if(R===a){y=!0,a=g,s=c;break}R=R.sibling}if(!y)throw Error(r(189))}}if(s.alternate!==a)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?t:i}function $u(t){return t=eg(t),t!==null?Uu(t):null}function Uu(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var i=Uu(t);if(i!==null)return i;t=t.sibling}return null}var Vu=n.unstable_scheduleCallback,Wu=n.unstable_cancelCallback,tg=n.unstable_shouldYield,ng=n.unstable_requestPaint,Xe=n.unstable_now,ig=n.unstable_getCurrentPriorityLevel,Ws=n.unstable_ImmediatePriority,Bu=n.unstable_UserBlockingPriority,no=n.unstable_NormalPriority,rg=n.unstable_LowPriority,qu=n.unstable_IdlePriority,io=null,nn=null;function og(t){if(nn&&typeof nn.onCommitFiberRoot=="function")try{nn.onCommitFiberRoot(io,t,void 0,(t.current.flags&128)===128)}catch{}}var Bt=Math.clz32?Math.clz32:ag,sg=Math.log,lg=Math.LN2;function ag(t){return t>>>=0,t===0?32:31-(sg(t)/lg|0)|0}var ro=64,oo=4194304;function or(t){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function so(t,i){var s=t.pendingLanes;if(s===0)return 0;var a=0,c=t.suspendedLanes,g=t.pingedLanes,y=s&268435455;if(y!==0){var R=y&~c;R!==0?a=or(R):(g&=y,g!==0&&(a=or(g)))}else y=s&~c,y!==0?a=or(y):g!==0&&(a=or(g));if(a===0)return 0;if(i!==0&&i!==a&&(i&c)===0&&(c=a&-a,g=i&-i,c>=g||c===16&&(g&4194240)!==0))return i;if((a&4)!==0&&(a|=s&16),i=t.entangledLanes,i!==0)for(t=t.entanglements,i&=a;0<i;)s=31-Bt(i),c=1<<s,a|=t[s],i&=~c;return a}function ug(t,i){switch(t){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function dg(t,i){for(var s=t.suspendedLanes,a=t.pingedLanes,c=t.expirationTimes,g=t.pendingLanes;0<g;){var y=31-Bt(g),R=1<<y,P=c[y];P===-1?((R&s)===0||(R&a)!==0)&&(c[y]=ug(R,i)):P<=i&&(t.expiredLanes|=R),g&=~R}}function Bs(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Gu(){var t=ro;return ro<<=1,(ro&4194240)===0&&(ro=64),t}function qs(t){for(var i=[],s=0;31>s;s++)i.push(t);return i}function sr(t,i,s){t.pendingLanes|=i,i!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,i=31-Bt(i),t[i]=s}function cg(t,i){var s=t.pendingLanes&~i;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=i,t.mutableReadLanes&=i,t.entangledLanes&=i,i=t.entanglements;var a=t.eventTimes;for(t=t.expirationTimes;0<s;){var c=31-Bt(s),g=1<<c;i[c]=0,a[c]=-1,t[c]=-1,s&=~g}}function Gs(t,i){var s=t.entangledLanes|=i;for(t=t.entanglements;s;){var a=31-Bt(s),c=1<<a;c&i|t[a]&i&&(t[a]|=i),s&=~c}}var Ae=0;function Xu(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Ku,Xs,Qu,Yu,Zu,Ks=!1,lo=[],Rn=null,Tn=null,Dn=null,lr=new Map,ar=new Map,Nn=[],fg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ju(t,i){switch(t){case"focusin":case"focusout":Rn=null;break;case"dragenter":case"dragleave":Tn=null;break;case"mouseover":case"mouseout":Dn=null;break;case"pointerover":case"pointerout":lr.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":ar.delete(i.pointerId)}}function ur(t,i,s,a,c,g){return t===null||t.nativeEvent!==g?(t={blockedOn:i,domEventName:s,eventSystemFlags:a,nativeEvent:g,targetContainers:[c]},i!==null&&(i=Cr(i),i!==null&&Xs(i)),t):(t.eventSystemFlags|=a,i=t.targetContainers,c!==null&&i.indexOf(c)===-1&&i.push(c),t)}function hg(t,i,s,a,c){switch(i){case"focusin":return Rn=ur(Rn,t,i,s,a,c),!0;case"dragenter":return Tn=ur(Tn,t,i,s,a,c),!0;case"mouseover":return Dn=ur(Dn,t,i,s,a,c),!0;case"pointerover":var g=c.pointerId;return lr.set(g,ur(lr.get(g)||null,t,i,s,a,c)),!0;case"gotpointercapture":return g=c.pointerId,ar.set(g,ur(ar.get(g)||null,t,i,s,a,c)),!0}return!1}function ed(t){var i=ti(t.target);if(i!==null){var s=ei(i);if(s!==null){if(i=s.tag,i===13){if(i=Fu(s),i!==null){t.blockedOn=i,Zu(t.priority,function(){Qu(s)});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){t.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ao(t){if(t.blockedOn!==null)return!1;for(var i=t.targetContainers;0<i.length;){var s=Ys(t.domEventName,t.eventSystemFlags,i[0],t.nativeEvent);if(s===null){s=t.nativeEvent;var a=new s.constructor(s.type,s);tn=a,s.target.dispatchEvent(a),tn=null}else return i=Cr(s),i!==null&&Xs(i),t.blockedOn=s,!1;i.shift()}return!0}function td(t,i,s){ao(t)&&s.delete(i)}function pg(){Ks=!1,Rn!==null&&ao(Rn)&&(Rn=null),Tn!==null&&ao(Tn)&&(Tn=null),Dn!==null&&ao(Dn)&&(Dn=null),lr.forEach(td),ar.forEach(td)}function dr(t,i){t.blockedOn===i&&(t.blockedOn=null,Ks||(Ks=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,pg)))}function cr(t){function i(c){return dr(c,t)}if(0<lo.length){dr(lo[0],t);for(var s=1;s<lo.length;s++){var a=lo[s];a.blockedOn===t&&(a.blockedOn=null)}}for(Rn!==null&&dr(Rn,t),Tn!==null&&dr(Tn,t),Dn!==null&&dr(Dn,t),lr.forEach(i),ar.forEach(i),s=0;s<Nn.length;s++)a=Nn[s],a.blockedOn===t&&(a.blockedOn=null);for(;0<Nn.length&&(s=Nn[0],s.blockedOn===null);)ed(s),s.blockedOn===null&&Nn.shift()}var Ci=b.ReactCurrentBatchConfig,uo=!0;function gg(t,i,s,a){var c=Ae,g=Ci.transition;Ci.transition=null;try{Ae=1,Qs(t,i,s,a)}finally{Ae=c,Ci.transition=g}}function mg(t,i,s,a){var c=Ae,g=Ci.transition;Ci.transition=null;try{Ae=4,Qs(t,i,s,a)}finally{Ae=c,Ci.transition=g}}function Qs(t,i,s,a){if(uo){var c=Ys(t,i,s,a);if(c===null)pl(t,i,a,co,s),Ju(t,a);else if(hg(c,t,i,s,a))a.stopPropagation();else if(Ju(t,a),i&4&&-1<fg.indexOf(t)){for(;c!==null;){var g=Cr(c);if(g!==null&&Ku(g),g=Ys(t,i,s,a),g===null&&pl(t,i,a,co,s),g===c)break;c=g}c!==null&&a.stopPropagation()}else pl(t,i,a,null,s)}}var co=null;function Ys(t,i,s,a){if(co=null,t=Fs(a),t=ti(t),t!==null)if(i=ei(t),i===null)t=null;else if(s=i.tag,s===13){if(t=Fu(i),t!==null)return t;t=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;t=null}else i!==t&&(t=null);return co=t,null}function nd(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(ig()){case Ws:return 1;case Bu:return 4;case no:case rg:return 16;case qu:return 536870912;default:return 16}default:return 16}}var Mn=null,Zs=null,fo=null;function id(){if(fo)return fo;var t,i=Zs,s=i.length,a,c="value"in Mn?Mn.value:Mn.textContent,g=c.length;for(t=0;t<s&&i[t]===c[t];t++);var y=s-t;for(a=1;a<=y&&i[s-a]===c[g-a];a++);return fo=c.slice(t,1<a?1-a:void 0)}function ho(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 po(){return!0}function rd(){return!1}function Mt(t){function i(s,a,c,g,y){this._reactName=s,this._targetInst=c,this.type=a,this.nativeEvent=g,this.target=y,this.currentTarget=null;for(var R in t)t.hasOwnProperty(R)&&(s=t[R],this[R]=s?s(g):g[R]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?po:rd,this.isPropagationStopped=rd,this}return ne(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=po)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=po)},persist:function(){},isPersistent:po}),i}var bi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Js=Mt(bi),fr=ne({},bi,{view:0,detail:0}),vg=Mt(fr),el,tl,hr,go=ne({},fr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:il,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!==hr&&(hr&&t.type==="mousemove"?(el=t.screenX-hr.screenX,tl=t.screenY-hr.screenY):tl=el=0,hr=t),el)},movementY:function(t){return"movementY"in t?t.movementY:tl}}),od=Mt(go),yg=ne({},go,{dataTransfer:0}),xg=Mt(yg),kg=ne({},fr,{relatedTarget:0}),nl=Mt(kg),Sg=ne({},bi,{animationName:0,elapsedTime:0,pseudoElement:0}),wg=Mt(Sg),Cg=ne({},bi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),bg=Mt(Cg),Eg=ne({},bi,{data:0}),sd=Mt(Eg),Lg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rg={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"},Tg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Dg(t){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(t):(t=Tg[t])?!!i[t]:!1}function il(){return Dg}var Ng=ne({},fr,{key:function(t){if(t.key){var i=Lg[t.key]||t.key;if(i!=="Unidentified")return i}return t.type==="keypress"?(t=ho(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Rg[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:il,charCode:function(t){return t.type==="keypress"?ho(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ho(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Mg=Mt(Ng),Ag=ne({},go,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ld=Mt(Ag),Pg=ne({},fr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:il}),Ig=Mt(Pg),zg=ne({},bi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Hg=Mt(zg),Og=ne({},go,{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}),jg=Mt(Og),Fg=[9,13,27,32],rl=h&&"CompositionEvent"in window,pr=null;h&&"documentMode"in document&&(pr=document.documentMode);var _g=h&&"TextEvent"in window&&!pr,ad=h&&(!rl||pr&&8<pr&&11>=pr),ud=" ",dd=!1;function cd(t,i){switch(t){case"keyup":return Fg.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ei=!1;function $g(t,i){switch(t){case"compositionend":return fd(i);case"keypress":return i.which!==32?null:(dd=!0,ud);case"textInput":return t=i.data,t===ud&&dd?null:t;default:return null}}function Ug(t,i){if(Ei)return t==="compositionend"||!rl&&cd(t,i)?(t=id(),fo=Zs=Mn=null,Ei=!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 ad&&i.locale!=="ko"?null:i.data;default:return null}}var Vg={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 hd(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i==="input"?!!Vg[t.type]:i==="textarea"}function pd(t,i,s,a){Iu(a),i=ko(i,"onChange"),0<i.length&&(s=new Js("onChange","change",null,s,a),t.push({event:s,listeners:i}))}var gr=null,mr=null;function Wg(t){Ad(t,0)}function mo(t){var i=Ni(t);if(Je(i))return t}function Bg(t,i){if(t==="change")return i}var gd=!1;if(h){var ol;if(h){var sl="oninput"in document;if(!sl){var md=document.createElement("div");md.setAttribute("oninput","return;"),sl=typeof md.oninput=="function"}ol=sl}else ol=!1;gd=ol&&(!document.documentMode||9<document.documentMode)}function vd(){gr&&(gr.detachEvent("onpropertychange",yd),mr=gr=null)}function yd(t){if(t.propertyName==="value"&&mo(mr)){var i=[];pd(i,mr,t,Fs(t)),ju(Wg,i)}}function qg(t,i,s){t==="focusin"?(vd(),gr=i,mr=s,gr.attachEvent("onpropertychange",yd)):t==="focusout"&&vd()}function Gg(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return mo(mr)}function Xg(t,i){if(t==="click")return mo(i)}function Kg(t,i){if(t==="input"||t==="change")return mo(i)}function Qg(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var qt=typeof Object.is=="function"?Object.is:Qg;function vr(t,i){if(qt(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var s=Object.keys(t),a=Object.keys(i);if(s.length!==a.length)return!1;for(a=0;a<s.length;a++){var c=s[a];if(!f.call(i,c)||!qt(t[c],i[c]))return!1}return!0}function xd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function kd(t,i){var s=xd(t);t=0;for(var a;s;){if(s.nodeType===3){if(a=t+s.textContent.length,t<=i&&a>=i)return{node:s,offset:i-t};t=a}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=xd(s)}}function Sd(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?Sd(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function wd(){for(var t=window,i=et();i instanceof t.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)t=i.contentWindow;else break;i=et(t.document)}return i}function ll(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")}function Yg(t){var i=wd(),s=t.focusedElem,a=t.selectionRange;if(i!==s&&s&&s.ownerDocument&&Sd(s.ownerDocument.documentElement,s)){if(a!==null&&ll(s)){if(i=a.start,t=a.end,t===void 0&&(t=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(t,s.value.length);else if(t=(i=s.ownerDocument||document)&&i.defaultView||window,t.getSelection){t=t.getSelection();var c=s.textContent.length,g=Math.min(a.start,c);a=a.end===void 0?g:Math.min(a.end,c),!t.extend&&g>a&&(c=a,a=g,g=c),c=kd(s,g);var y=kd(s,a);c&&y&&(t.rangeCount!==1||t.anchorNode!==c.node||t.anchorOffset!==c.offset||t.focusNode!==y.node||t.focusOffset!==y.offset)&&(i=i.createRange(),i.setStart(c.node,c.offset),t.removeAllRanges(),g>a?(t.addRange(i),t.extend(y.node,y.offset)):(i.setEnd(y.node,y.offset),t.addRange(i)))}}for(i=[],t=s;t=t.parentNode;)t.nodeType===1&&i.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<i.length;s++)t=i[s],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var Zg=h&&"documentMode"in document&&11>=document.documentMode,Li=null,al=null,yr=null,ul=!1;function Cd(t,i,s){var a=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;ul||Li==null||Li!==et(a)||(a=Li,"selectionStart"in a&&ll(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),yr&&vr(yr,a)||(yr=a,a=ko(al,"onSelect"),0<a.length&&(i=new Js("onSelect","select",null,i,s),t.push({event:i,listeners:a}),i.target=Li)))}function vo(t,i){var s={};return s[t.toLowerCase()]=i.toLowerCase(),s["Webkit"+t]="webkit"+i,s["Moz"+t]="moz"+i,s}var Ri={animationend:vo("Animation","AnimationEnd"),animationiteration:vo("Animation","AnimationIteration"),animationstart:vo("Animation","AnimationStart"),transitionend:vo("Transition","TransitionEnd")},dl={},bd={};h&&(bd=document.createElement("div").style,"AnimationEvent"in window||(delete Ri.animationend.animation,delete Ri.animationiteration.animation,delete Ri.animationstart.animation),"TransitionEvent"in window||delete Ri.transitionend.transition);function yo(t){if(dl[t])return dl[t];if(!Ri[t])return t;var i=Ri[t],s;for(s in i)if(i.hasOwnProperty(s)&&s in bd)return dl[t]=i[s];return t}var Ed=yo("animationend"),Ld=yo("animationiteration"),Rd=yo("animationstart"),Td=yo("transitionend"),Dd=new Map,Nd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function An(t,i){Dd.set(t,i),u(i,[t])}for(var cl=0;cl<Nd.length;cl++){var fl=Nd[cl],Jg=fl.toLowerCase(),em=fl[0].toUpperCase()+fl.slice(1);An(Jg,"on"+em)}An(Ed,"onAnimationEnd"),An(Ld,"onAnimationIteration"),An(Rd,"onAnimationStart"),An("dblclick","onDoubleClick"),An("focusin","onFocus"),An("focusout","onBlur"),An(Td,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xr="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(" "),tm=new Set("cancel close invalid load scroll toggle".split(" ").concat(xr));function Md(t,i,s){var a=t.type||"unknown-event";t.currentTarget=s,Jp(a,i,void 0,t),t.currentTarget=null}function Ad(t,i){i=(i&4)!==0;for(var s=0;s<t.length;s++){var a=t[s],c=a.event;a=a.listeners;e:{var g=void 0;if(i)for(var y=a.length-1;0<=y;y--){var R=a[y],P=R.instance,$=R.currentTarget;if(R=R.listener,P!==g&&c.isPropagationStopped())break e;Md(c,R,$),g=P}else for(y=0;y<a.length;y++){if(R=a[y],P=R.instance,$=R.currentTarget,R=R.listener,P!==g&&c.isPropagationStopped())break e;Md(c,R,$),g=P}}}if(to)throw t=Vs,to=!1,Vs=null,t}function je(t,i){var s=i[kl];s===void 0&&(s=i[kl]=new Set);var a=t+"__bubble";s.has(a)||(Pd(i,t,2,!1),s.add(a))}function hl(t,i,s){var a=0;i&&(a|=4),Pd(s,t,a,i)}var xo="_reactListening"+Math.random().toString(36).slice(2);function kr(t){if(!t[xo]){t[xo]=!0,o.forEach(function(s){s!=="selectionchange"&&(tm.has(s)||hl(s,!1,t),hl(s,!0,t))});var i=t.nodeType===9?t:t.ownerDocument;i===null||i[xo]||(i[xo]=!0,hl("selectionchange",!1,i))}}function Pd(t,i,s,a){switch(nd(i)){case 1:var c=gg;break;case 4:c=mg;break;default:c=Qs}s=c.bind(null,i,s,t),c=void 0,!Us||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(c=!0),a?c!==void 0?t.addEventListener(i,s,{capture:!0,passive:c}):t.addEventListener(i,s,!0):c!==void 0?t.addEventListener(i,s,{passive:c}):t.addEventListener(i,s,!1)}function pl(t,i,s,a,c){var g=a;if((i&1)===0&&(i&2)===0&&a!==null)e:for(;;){if(a===null)return;var y=a.tag;if(y===3||y===4){var R=a.stateNode.containerInfo;if(R===c||R.nodeType===8&&R.parentNode===c)break;if(y===4)for(y=a.return;y!==null;){var P=y.tag;if((P===3||P===4)&&(P=y.stateNode.containerInfo,P===c||P.nodeType===8&&P.parentNode===c))return;y=y.return}for(;R!==null;){if(y=ti(R),y===null)return;if(P=y.tag,P===5||P===6){a=g=y;continue e}R=R.parentNode}}a=a.return}ju(function(){var $=g,Q=Fs(s),Y=[];e:{var X=Dd.get(t);if(X!==void 0){var le=Js,de=t;switch(t){case"keypress":if(ho(s)===0)break e;case"keydown":case"keyup":le=Mg;break;case"focusin":de="focus",le=nl;break;case"focusout":de="blur",le=nl;break;case"beforeblur":case"afterblur":le=nl;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":le=od;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":le=xg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":le=Ig;break;case Ed:case Ld:case Rd:le=wg;break;case Td:le=Hg;break;case"scroll":le=vg;break;case"wheel":le=jg;break;case"copy":case"cut":case"paste":le=bg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":le=ld}var ce=(i&4)!==0,Ke=!ce&&t==="scroll",j=ce?X!==null?X+"Capture":null:X;ce=[];for(var I=$,_;I!==null;){_=I;var J=_.stateNode;if(_.tag===5&&J!==null&&(_=J,j!==null&&(J=nr(I,j),J!=null&&ce.push(Sr(I,J,_)))),Ke)break;I=I.return}0<ce.length&&(X=new le(X,de,null,s,Q),Y.push({event:X,listeners:ce}))}}if((i&7)===0){e:{if(X=t==="mouseover"||t==="pointerover",le=t==="mouseout"||t==="pointerout",X&&s!==tn&&(de=s.relatedTarget||s.fromElement)&&(ti(de)||de[cn]))break e;if((le||X)&&(X=Q.window===Q?Q:(X=Q.ownerDocument)?X.defaultView||X.parentWindow:window,le?(de=s.relatedTarget||s.toElement,le=$,de=de?ti(de):null,de!==null&&(Ke=ei(de),de!==Ke||de.tag!==5&&de.tag!==6)&&(de=null)):(le=null,de=$),le!==de)){if(ce=od,J="onMouseLeave",j="onMouseEnter",I="mouse",(t==="pointerout"||t==="pointerover")&&(ce=ld,J="onPointerLeave",j="onPointerEnter",I="pointer"),Ke=le==null?X:Ni(le),_=de==null?X:Ni(de),X=new ce(J,I+"leave",le,s,Q),X.target=Ke,X.relatedTarget=_,J=null,ti(Q)===$&&(ce=new ce(j,I+"enter",de,s,Q),ce.target=_,ce.relatedTarget=Ke,J=ce),Ke=J,le&&de)t:{for(ce=le,j=de,I=0,_=ce;_;_=Ti(_))I++;for(_=0,J=j;J;J=Ti(J))_++;for(;0<I-_;)ce=Ti(ce),I--;for(;0<_-I;)j=Ti(j),_--;for(;I--;){if(ce===j||j!==null&&ce===j.alternate)break t;ce=Ti(ce),j=Ti(j)}ce=null}else ce=null;le!==null&&Id(Y,X,le,ce,!1),de!==null&&Ke!==null&&Id(Y,Ke,de,ce,!0)}}e:{if(X=$?Ni($):window,le=X.nodeName&&X.nodeName.toLowerCase(),le==="select"||le==="input"&&X.type==="file")var pe=Bg;else if(hd(X))if(gd)pe=Kg;else{pe=Gg;var me=qg}else(le=X.nodeName)&&le.toLowerCase()==="input"&&(X.type==="checkbox"||X.type==="radio")&&(pe=Xg);if(pe&&(pe=pe(t,$))){pd(Y,pe,s,Q);break e}me&&me(t,X,$),t==="focusout"&&(me=X._wrapperState)&&me.controlled&&X.type==="number"&&at(X,"number",X.value)}switch(me=$?Ni($):window,t){case"focusin":(hd(me)||me.contentEditable==="true")&&(Li=me,al=$,yr=null);break;case"focusout":yr=al=Li=null;break;case"mousedown":ul=!0;break;case"contextmenu":case"mouseup":case"dragend":ul=!1,Cd(Y,s,Q);break;case"selectionchange":if(Zg)break;case"keydown":case"keyup":Cd(Y,s,Q)}var ve;if(rl)e:{switch(t){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Ei?cd(t,s)&&(Ce="onCompositionEnd"):t==="keydown"&&s.keyCode===229&&(Ce="onCompositionStart");Ce&&(ad&&s.locale!=="ko"&&(Ei||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Ei&&(ve=id()):(Mn=Q,Zs="value"in Mn?Mn.value:Mn.textContent,Ei=!0)),me=ko($,Ce),0<me.length&&(Ce=new sd(Ce,t,null,s,Q),Y.push({event:Ce,listeners:me}),ve?Ce.data=ve:(ve=fd(s),ve!==null&&(Ce.data=ve)))),(ve=_g?$g(t,s):Ug(t,s))&&($=ko($,"onBeforeInput"),0<$.length&&(Q=new sd("onBeforeInput","beforeinput",null,s,Q),Y.push({event:Q,listeners:$}),Q.data=ve))}Ad(Y,i)})}function Sr(t,i,s){return{instance:t,listener:i,currentTarget:s}}function ko(t,i){for(var s=i+"Capture",a=[];t!==null;){var c=t,g=c.stateNode;c.tag===5&&g!==null&&(c=g,g=nr(t,s),g!=null&&a.unshift(Sr(t,g,c)),g=nr(t,i),g!=null&&a.push(Sr(t,g,c))),t=t.return}return a}function Ti(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Id(t,i,s,a,c){for(var g=i._reactName,y=[];s!==null&&s!==a;){var R=s,P=R.alternate,$=R.stateNode;if(P!==null&&P===a)break;R.tag===5&&$!==null&&(R=$,c?(P=nr(s,g),P!=null&&y.unshift(Sr(s,P,R))):c||(P=nr(s,g),P!=null&&y.push(Sr(s,P,R)))),s=s.return}y.length!==0&&t.push({event:i,listeners:y})}var nm=/\r\n?/g,im=/\u0000|\uFFFD/g;function zd(t){return(typeof t=="string"?t:""+t).replace(nm,`
|
|
39
|
+
`).replace(im,"")}function So(t,i,s){if(i=zd(i),zd(t)!==i&&s)throw Error(r(425))}function wo(){}var gl=null,ml=null;function vl(t,i){return t==="textarea"||t==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var yl=typeof setTimeout=="function"?setTimeout:void 0,rm=typeof clearTimeout=="function"?clearTimeout:void 0,Hd=typeof Promise=="function"?Promise:void 0,om=typeof queueMicrotask=="function"?queueMicrotask:typeof Hd<"u"?function(t){return Hd.resolve(null).then(t).catch(sm)}:yl;function sm(t){setTimeout(function(){throw t})}function xl(t,i){var s=i,a=0;do{var c=s.nextSibling;if(t.removeChild(s),c&&c.nodeType===8)if(s=c.data,s==="/$"){if(a===0){t.removeChild(c),cr(i);return}a--}else s!=="$"&&s!=="$?"&&s!=="$!"||a++;s=c}while(s);cr(i)}function Pn(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==="$?")break;if(i==="/$")return null}}return t}function Od(t){t=t.previousSibling;for(var i=0;t;){if(t.nodeType===8){var s=t.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return t;i--}else s==="/$"&&i++}t=t.previousSibling}return null}var Di=Math.random().toString(36).slice(2),rn="__reactFiber$"+Di,wr="__reactProps$"+Di,cn="__reactContainer$"+Di,kl="__reactEvents$"+Di,lm="__reactListeners$"+Di,am="__reactHandles$"+Di;function ti(t){var i=t[rn];if(i)return i;for(var s=t.parentNode;s;){if(i=s[cn]||s[rn]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(t=Od(t);t!==null;){if(s=t[rn])return s;t=Od(t)}return i}t=s,s=t.parentNode}return null}function Cr(t){return t=t[rn]||t[cn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Ni(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(r(33))}function Co(t){return t[wr]||null}var Sl=[],Mi=-1;function In(t){return{current:t}}function Fe(t){0>Mi||(t.current=Sl[Mi],Sl[Mi]=null,Mi--)}function Oe(t,i){Mi++,Sl[Mi]=t.current,t.current=i}var zn={},ft=In(zn),wt=In(!1),ni=zn;function Ai(t,i){var s=t.type.contextTypes;if(!s)return zn;var a=t.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===i)return a.__reactInternalMemoizedMaskedChildContext;var c={},g;for(g in s)c[g]=i[g];return a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=c),c}function Ct(t){return t=t.childContextTypes,t!=null}function bo(){Fe(wt),Fe(ft)}function jd(t,i,s){if(ft.current!==zn)throw Error(r(168));Oe(ft,i),Oe(wt,s)}function Fd(t,i,s){var a=t.stateNode;if(i=i.childContextTypes,typeof a.getChildContext!="function")return s;a=a.getChildContext();for(var c in a)if(!(c in i))throw Error(r(108,Ee(t)||"Unknown",c));return ne({},s,a)}function Eo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||zn,ni=ft.current,Oe(ft,t),Oe(wt,wt.current),!0}function _d(t,i,s){var a=t.stateNode;if(!a)throw Error(r(169));s?(t=Fd(t,i,ni),a.__reactInternalMemoizedMergedChildContext=t,Fe(wt),Fe(ft),Oe(ft,t)):Fe(wt),Oe(wt,s)}var fn=null,Lo=!1,wl=!1;function $d(t){fn===null?fn=[t]:fn.push(t)}function um(t){Lo=!0,$d(t)}function Hn(){if(!wl&&fn!==null){wl=!0;var t=0,i=Ae;try{var s=fn;for(Ae=1;t<s.length;t++){var a=s[t];do a=a(!0);while(a!==null)}fn=null,Lo=!1}catch(c){throw fn!==null&&(fn=fn.slice(t+1)),Vu(Ws,Hn),c}finally{Ae=i,wl=!1}}return null}var Pi=[],Ii=0,Ro=null,To=0,Ot=[],jt=0,ii=null,hn=1,pn="";function ri(t,i){Pi[Ii++]=To,Pi[Ii++]=Ro,Ro=t,To=i}function Ud(t,i,s){Ot[jt++]=hn,Ot[jt++]=pn,Ot[jt++]=ii,ii=t;var a=hn;t=pn;var c=32-Bt(a)-1;a&=~(1<<c),s+=1;var g=32-Bt(i)+c;if(30<g){var y=c-c%5;g=(a&(1<<y)-1).toString(32),a>>=y,c-=y,hn=1<<32-Bt(i)+c|s<<c|a,pn=g+t}else hn=1<<g|s<<c|a,pn=t}function Cl(t){t.return!==null&&(ri(t,1),Ud(t,1,0))}function bl(t){for(;t===Ro;)Ro=Pi[--Ii],Pi[Ii]=null,To=Pi[--Ii],Pi[Ii]=null;for(;t===ii;)ii=Ot[--jt],Ot[jt]=null,pn=Ot[--jt],Ot[jt]=null,hn=Ot[--jt],Ot[jt]=null}var At=null,Pt=null,_e=!1,Gt=null;function Vd(t,i){var s=Ut(5,null,null,0);s.elementType="DELETED",s.stateNode=i,s.return=t,i=t.deletions,i===null?(t.deletions=[s],t.flags|=16):i.push(s)}function Wd(t,i){switch(t.tag){case 5:var s=t.type;return i=i.nodeType!==1||s.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(t.stateNode=i,At=t,Pt=Pn(i.firstChild),!0):!1;case 6:return i=t.pendingProps===""||i.nodeType!==3?null:i,i!==null?(t.stateNode=i,At=t,Pt=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(s=ii!==null?{id:hn,overflow:pn}:null,t.memoizedState={dehydrated:i,treeContext:s,retryLane:1073741824},s=Ut(18,null,null,0),s.stateNode=i,s.return=t,t.child=s,At=t,Pt=null,!0):!1;default:return!1}}function El(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Ll(t){if(_e){var i=Pt;if(i){var s=i;if(!Wd(t,i)){if(El(t))throw Error(r(418));i=Pn(s.nextSibling);var a=At;i&&Wd(t,i)?Vd(a,s):(t.flags=t.flags&-4097|2,_e=!1,At=t)}}else{if(El(t))throw Error(r(418));t.flags=t.flags&-4097|2,_e=!1,At=t}}}function Bd(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;At=t}function Do(t){if(t!==At)return!1;if(!_e)return Bd(t),_e=!0,!1;var i;if((i=t.tag!==3)&&!(i=t.tag!==5)&&(i=t.type,i=i!=="head"&&i!=="body"&&!vl(t.type,t.memoizedProps)),i&&(i=Pt)){if(El(t))throw qd(),Error(r(418));for(;i;)Vd(t,i),i=Pn(i.nextSibling)}if(Bd(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));e:{for(t=t.nextSibling,i=0;t;){if(t.nodeType===8){var s=t.data;if(s==="/$"){if(i===0){Pt=Pn(t.nextSibling);break e}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++}t=t.nextSibling}Pt=null}}else Pt=At?Pn(t.stateNode.nextSibling):null;return!0}function qd(){for(var t=Pt;t;)t=Pn(t.nextSibling)}function zi(){Pt=At=null,_e=!1}function Rl(t){Gt===null?Gt=[t]:Gt.push(t)}var dm=b.ReactCurrentBatchConfig;function br(t,i,s){if(t=s.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(r(309));var a=s.stateNode}if(!a)throw Error(r(147,t));var c=a,g=""+t;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===g?i.ref:(i=function(y){var R=c.refs;y===null?delete R[g]:R[g]=y},i._stringRef=g,i)}if(typeof t!="string")throw Error(r(284));if(!s._owner)throw Error(r(290,t))}return t}function No(t,i){throw t=Object.prototype.toString.call(i),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":t))}function Gd(t){var i=t._init;return i(t._payload)}function Xd(t){function i(j,I){if(t){var _=j.deletions;_===null?(j.deletions=[I],j.flags|=16):_.push(I)}}function s(j,I){if(!t)return null;for(;I!==null;)i(j,I),I=I.sibling;return null}function a(j,I){for(j=new Map;I!==null;)I.key!==null?j.set(I.key,I):j.set(I.index,I),I=I.sibling;return j}function c(j,I){return j=Wn(j,I),j.index=0,j.sibling=null,j}function g(j,I,_){return j.index=_,t?(_=j.alternate,_!==null?(_=_.index,_<I?(j.flags|=2,I):_):(j.flags|=2,I)):(j.flags|=1048576,I)}function y(j){return t&&j.alternate===null&&(j.flags|=2),j}function R(j,I,_,J){return I===null||I.tag!==6?(I=ya(_,j.mode,J),I.return=j,I):(I=c(I,_),I.return=j,I)}function P(j,I,_,J){var pe=_.type;return pe===N?Q(j,I,_.props.children,J,_.key):I!==null&&(I.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===ge&&Gd(pe)===I.type)?(J=c(I,_.props),J.ref=br(j,I,_),J.return=j,J):(J=es(_.type,_.key,_.props,null,j.mode,J),J.ref=br(j,I,_),J.return=j,J)}function $(j,I,_,J){return I===null||I.tag!==4||I.stateNode.containerInfo!==_.containerInfo||I.stateNode.implementation!==_.implementation?(I=xa(_,j.mode,J),I.return=j,I):(I=c(I,_.children||[]),I.return=j,I)}function Q(j,I,_,J,pe){return I===null||I.tag!==7?(I=fi(_,j.mode,J,pe),I.return=j,I):(I=c(I,_),I.return=j,I)}function Y(j,I,_){if(typeof I=="string"&&I!==""||typeof I=="number")return I=ya(""+I,j.mode,_),I.return=j,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case D:return _=es(I.type,I.key,I.props,null,j.mode,_),_.ref=br(j,null,I),_.return=j,_;case F:return I=xa(I,j.mode,_),I.return=j,I;case ge:var J=I._init;return Y(j,J(I._payload),_)}if(Ue(I)||re(I))return I=fi(I,j.mode,_,null),I.return=j,I;No(j,I)}return null}function X(j,I,_,J){var pe=I!==null?I.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return pe!==null?null:R(j,I,""+_,J);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case D:return _.key===pe?P(j,I,_,J):null;case F:return _.key===pe?$(j,I,_,J):null;case ge:return pe=_._init,X(j,I,pe(_._payload),J)}if(Ue(_)||re(_))return pe!==null?null:Q(j,I,_,J,null);No(j,_)}return null}function le(j,I,_,J,pe){if(typeof J=="string"&&J!==""||typeof J=="number")return j=j.get(_)||null,R(I,j,""+J,pe);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case D:return j=j.get(J.key===null?_:J.key)||null,P(I,j,J,pe);case F:return j=j.get(J.key===null?_:J.key)||null,$(I,j,J,pe);case ge:var me=J._init;return le(j,I,_,me(J._payload),pe)}if(Ue(J)||re(J))return j=j.get(_)||null,Q(I,j,J,pe,null);No(I,J)}return null}function de(j,I,_,J){for(var pe=null,me=null,ve=I,Ce=I=0,lt=null;ve!==null&&Ce<_.length;Ce++){ve.index>Ce?(lt=ve,ve=null):lt=ve.sibling;var Me=X(j,ve,_[Ce],J);if(Me===null){ve===null&&(ve=lt);break}t&&ve&&Me.alternate===null&&i(j,ve),I=g(Me,I,Ce),me===null?pe=Me:me.sibling=Me,me=Me,ve=lt}if(Ce===_.length)return s(j,ve),_e&&ri(j,Ce),pe;if(ve===null){for(;Ce<_.length;Ce++)ve=Y(j,_[Ce],J),ve!==null&&(I=g(ve,I,Ce),me===null?pe=ve:me.sibling=ve,me=ve);return _e&&ri(j,Ce),pe}for(ve=a(j,ve);Ce<_.length;Ce++)lt=le(ve,j,Ce,_[Ce],J),lt!==null&&(t&<.alternate!==null&&ve.delete(lt.key===null?Ce:lt.key),I=g(lt,I,Ce),me===null?pe=lt:me.sibling=lt,me=lt);return t&&ve.forEach(function(Bn){return i(j,Bn)}),_e&&ri(j,Ce),pe}function ce(j,I,_,J){var pe=re(_);if(typeof pe!="function")throw Error(r(150));if(_=pe.call(_),_==null)throw Error(r(151));for(var me=pe=null,ve=I,Ce=I=0,lt=null,Me=_.next();ve!==null&&!Me.done;Ce++,Me=_.next()){ve.index>Ce?(lt=ve,ve=null):lt=ve.sibling;var Bn=X(j,ve,Me.value,J);if(Bn===null){ve===null&&(ve=lt);break}t&&ve&&Bn.alternate===null&&i(j,ve),I=g(Bn,I,Ce),me===null?pe=Bn:me.sibling=Bn,me=Bn,ve=lt}if(Me.done)return s(j,ve),_e&&ri(j,Ce),pe;if(ve===null){for(;!Me.done;Ce++,Me=_.next())Me=Y(j,Me.value,J),Me!==null&&(I=g(Me,I,Ce),me===null?pe=Me:me.sibling=Me,me=Me);return _e&&ri(j,Ce),pe}for(ve=a(j,ve);!Me.done;Ce++,Me=_.next())Me=le(ve,j,Ce,Me.value,J),Me!==null&&(t&&Me.alternate!==null&&ve.delete(Me.key===null?Ce:Me.key),I=g(Me,I,Ce),me===null?pe=Me:me.sibling=Me,me=Me);return t&&ve.forEach(function(Vm){return i(j,Vm)}),_e&&ri(j,Ce),pe}function Ke(j,I,_,J){if(typeof _=="object"&&_!==null&&_.type===N&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case D:e:{for(var pe=_.key,me=I;me!==null;){if(me.key===pe){if(pe=_.type,pe===N){if(me.tag===7){s(j,me.sibling),I=c(me,_.props.children),I.return=j,j=I;break e}}else if(me.elementType===pe||typeof pe=="object"&&pe!==null&&pe.$$typeof===ge&&Gd(pe)===me.type){s(j,me.sibling),I=c(me,_.props),I.ref=br(j,me,_),I.return=j,j=I;break e}s(j,me);break}else i(j,me);me=me.sibling}_.type===N?(I=fi(_.props.children,j.mode,J,_.key),I.return=j,j=I):(J=es(_.type,_.key,_.props,null,j.mode,J),J.ref=br(j,I,_),J.return=j,j=J)}return y(j);case F:e:{for(me=_.key;I!==null;){if(I.key===me)if(I.tag===4&&I.stateNode.containerInfo===_.containerInfo&&I.stateNode.implementation===_.implementation){s(j,I.sibling),I=c(I,_.children||[]),I.return=j,j=I;break e}else{s(j,I);break}else i(j,I);I=I.sibling}I=xa(_,j.mode,J),I.return=j,j=I}return y(j);case ge:return me=_._init,Ke(j,I,me(_._payload),J)}if(Ue(_))return de(j,I,_,J);if(re(_))return ce(j,I,_,J);No(j,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,I!==null&&I.tag===6?(s(j,I.sibling),I=c(I,_),I.return=j,j=I):(s(j,I),I=ya(_,j.mode,J),I.return=j,j=I),y(j)):s(j,I)}return Ke}var Hi=Xd(!0),Kd=Xd(!1),Mo=In(null),Ao=null,Oi=null,Tl=null;function Dl(){Tl=Oi=Ao=null}function Nl(t){var i=Mo.current;Fe(Mo),t._currentValue=i}function Ml(t,i,s){for(;t!==null;){var a=t.alternate;if((t.childLanes&i)!==i?(t.childLanes|=i,a!==null&&(a.childLanes|=i)):a!==null&&(a.childLanes&i)!==i&&(a.childLanes|=i),t===s)break;t=t.return}}function ji(t,i){Ao=t,Tl=Oi=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&i)!==0&&(bt=!0),t.firstContext=null)}function Ft(t){var i=t._currentValue;if(Tl!==t)if(t={context:t,memoizedValue:i,next:null},Oi===null){if(Ao===null)throw Error(r(308));Oi=t,Ao.dependencies={lanes:0,firstContext:t}}else Oi=Oi.next=t;return i}var oi=null;function Al(t){oi===null?oi=[t]:oi.push(t)}function Qd(t,i,s,a){var c=i.interleaved;return c===null?(s.next=s,Al(i)):(s.next=c.next,c.next=s),i.interleaved=s,gn(t,a)}function gn(t,i){t.lanes|=i;var s=t.alternate;for(s!==null&&(s.lanes|=i),s=t,t=t.return;t!==null;)t.childLanes|=i,s=t.alternate,s!==null&&(s.childLanes|=i),s=t,t=t.return;return s.tag===3?s.stateNode:null}var On=!1;function Pl(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yd(t,i){t=t.updateQueue,i.updateQueue===t&&(i.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function mn(t,i){return{eventTime:t,lane:i,tag:0,payload:null,callback:null,next:null}}function jn(t,i,s){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Ne&2)!==0){var c=a.pending;return c===null?i.next=i:(i.next=c.next,c.next=i),a.pending=i,gn(t,s)}return c=a.interleaved,c===null?(i.next=i,Al(a)):(i.next=c.next,c.next=i),a.interleaved=i,gn(t,s)}function Po(t,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194240)!==0)){var a=i.lanes;a&=t.pendingLanes,s|=a,i.lanes=s,Gs(t,s)}}function Zd(t,i){var s=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,s===a)){var c=null,g=null;if(s=s.firstBaseUpdate,s!==null){do{var y={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};g===null?c=g=y:g=g.next=y,s=s.next}while(s!==null);g===null?c=g=i:g=g.next=i}else c=g=i;s={baseState:a.baseState,firstBaseUpdate:c,lastBaseUpdate:g,shared:a.shared,effects:a.effects},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=i:t.next=i,s.lastBaseUpdate=i}function Io(t,i,s,a){var c=t.updateQueue;On=!1;var g=c.firstBaseUpdate,y=c.lastBaseUpdate,R=c.shared.pending;if(R!==null){c.shared.pending=null;var P=R,$=P.next;P.next=null,y===null?g=$:y.next=$,y=P;var Q=t.alternate;Q!==null&&(Q=Q.updateQueue,R=Q.lastBaseUpdate,R!==y&&(R===null?Q.firstBaseUpdate=$:R.next=$,Q.lastBaseUpdate=P))}if(g!==null){var Y=c.baseState;y=0,Q=$=P=null,R=g;do{var X=R.lane,le=R.eventTime;if((a&X)===X){Q!==null&&(Q=Q.next={eventTime:le,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var de=t,ce=R;switch(X=i,le=s,ce.tag){case 1:if(de=ce.payload,typeof de=="function"){Y=de.call(le,Y,X);break e}Y=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=ce.payload,X=typeof de=="function"?de.call(le,Y,X):de,X==null)break e;Y=ne({},Y,X);break e;case 2:On=!0}}R.callback!==null&&R.lane!==0&&(t.flags|=64,X=c.effects,X===null?c.effects=[R]:X.push(R))}else le={eventTime:le,lane:X,tag:R.tag,payload:R.payload,callback:R.callback,next:null},Q===null?($=Q=le,P=Y):Q=Q.next=le,y|=X;if(R=R.next,R===null){if(R=c.shared.pending,R===null)break;X=R,R=X.next,X.next=null,c.lastBaseUpdate=X,c.shared.pending=null}}while(!0);if(Q===null&&(P=Y),c.baseState=P,c.firstBaseUpdate=$,c.lastBaseUpdate=Q,i=c.shared.interleaved,i!==null){c=i;do y|=c.lane,c=c.next;while(c!==i)}else g===null&&(c.shared.lanes=0);ai|=y,t.lanes=y,t.memoizedState=Y}}function Jd(t,i,s){if(t=i.effects,i.effects=null,t!==null)for(i=0;i<t.length;i++){var a=t[i],c=a.callback;if(c!==null){if(a.callback=null,a=s,typeof c!="function")throw Error(r(191,c));c.call(a)}}}var Er={},on=In(Er),Lr=In(Er),Rr=In(Er);function si(t){if(t===Er)throw Error(r(174));return t}function Il(t,i){switch(Oe(Rr,i),Oe(Lr,t),Oe(on,Er),t=i.nodeType,t){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:tr(null,"");break;default:t=t===8?i.parentNode:i,i=t.namespaceURI||null,t=t.tagName,i=tr(i,t)}Fe(on),Oe(on,i)}function Fi(){Fe(on),Fe(Lr),Fe(Rr)}function ec(t){si(Rr.current);var i=si(on.current),s=tr(i,t.type);i!==s&&(Oe(Lr,t),Oe(on,s))}function zl(t){Lr.current===t&&(Fe(on),Fe(Lr))}var Ve=In(0);function zo(t){for(var i=t;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){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 Hl=[];function Ol(){for(var t=0;t<Hl.length;t++)Hl[t]._workInProgressVersionPrimary=null;Hl.length=0}var Ho=b.ReactCurrentDispatcher,jl=b.ReactCurrentBatchConfig,li=0,We=null,tt=null,ot=null,Oo=!1,Tr=!1,Dr=0,cm=0;function ht(){throw Error(r(321))}function Fl(t,i){if(i===null)return!1;for(var s=0;s<i.length&&s<t.length;s++)if(!qt(t[s],i[s]))return!1;return!0}function _l(t,i,s,a,c,g){if(li=g,We=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Ho.current=t===null||t.memoizedState===null?gm:mm,t=s(a,c),Tr){g=0;do{if(Tr=!1,Dr=0,25<=g)throw Error(r(301));g+=1,ot=tt=null,i.updateQueue=null,Ho.current=vm,t=s(a,c)}while(Tr)}if(Ho.current=_o,i=tt!==null&&tt.next!==null,li=0,ot=tt=We=null,Oo=!1,i)throw Error(r(300));return t}function $l(){var t=Dr!==0;return Dr=0,t}function sn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?We.memoizedState=ot=t:ot=ot.next=t,ot}function _t(){if(tt===null){var t=We.alternate;t=t!==null?t.memoizedState:null}else t=tt.next;var i=ot===null?We.memoizedState:ot.next;if(i!==null)ot=i,tt=t;else{if(t===null)throw Error(r(310));tt=t,t={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},ot===null?We.memoizedState=ot=t:ot=ot.next=t}return ot}function Nr(t,i){return typeof i=="function"?i(t):i}function Ul(t){var i=_t(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=t;var a=tt,c=a.baseQueue,g=s.pending;if(g!==null){if(c!==null){var y=c.next;c.next=g.next,g.next=y}a.baseQueue=c=g,s.pending=null}if(c!==null){g=c.next,a=a.baseState;var R=y=null,P=null,$=g;do{var Q=$.lane;if((li&Q)===Q)P!==null&&(P=P.next={lane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),a=$.hasEagerState?$.eagerState:t(a,$.action);else{var Y={lane:Q,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null};P===null?(R=P=Y,y=a):P=P.next=Y,We.lanes|=Q,ai|=Q}$=$.next}while($!==null&&$!==g);P===null?y=a:P.next=R,qt(a,i.memoizedState)||(bt=!0),i.memoizedState=a,i.baseState=y,i.baseQueue=P,s.lastRenderedState=a}if(t=s.interleaved,t!==null){c=t;do g=c.lane,We.lanes|=g,ai|=g,c=c.next;while(c!==t)}else c===null&&(s.lanes=0);return[i.memoizedState,s.dispatch]}function Vl(t){var i=_t(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=t;var a=s.dispatch,c=s.pending,g=i.memoizedState;if(c!==null){s.pending=null;var y=c=c.next;do g=t(g,y.action),y=y.next;while(y!==c);qt(g,i.memoizedState)||(bt=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),s.lastRenderedState=g}return[g,a]}function tc(){}function nc(t,i){var s=We,a=_t(),c=i(),g=!qt(a.memoizedState,c);if(g&&(a.memoizedState=c,bt=!0),a=a.queue,Wl(oc.bind(null,s,a,t),[t]),a.getSnapshot!==i||g||ot!==null&&ot.memoizedState.tag&1){if(s.flags|=2048,Mr(9,rc.bind(null,s,a,c,i),void 0,null),st===null)throw Error(r(349));(li&30)!==0||ic(s,i,c)}return c}function ic(t,i,s){t.flags|=16384,t={getSnapshot:i,value:s},i=We.updateQueue,i===null?(i={lastEffect:null,stores:null},We.updateQueue=i,i.stores=[t]):(s=i.stores,s===null?i.stores=[t]:s.push(t))}function rc(t,i,s,a){i.value=s,i.getSnapshot=a,sc(i)&&lc(t)}function oc(t,i,s){return s(function(){sc(i)&&lc(t)})}function sc(t){var i=t.getSnapshot;t=t.value;try{var s=i();return!qt(t,s)}catch{return!0}}function lc(t){var i=gn(t,1);i!==null&&Yt(i,t,1,-1)}function ac(t){var i=sn();return typeof t=="function"&&(t=t()),i.memoizedState=i.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Nr,lastRenderedState:t},i.queue=t,t=t.dispatch=pm.bind(null,We,t),[i.memoizedState,t]}function Mr(t,i,s,a){return t={tag:t,create:i,destroy:s,deps:a,next:null},i=We.updateQueue,i===null?(i={lastEffect:null,stores:null},We.updateQueue=i,i.lastEffect=t.next=t):(s=i.lastEffect,s===null?i.lastEffect=t.next=t:(a=s.next,s.next=t,t.next=a,i.lastEffect=t)),t}function uc(){return _t().memoizedState}function jo(t,i,s,a){var c=sn();We.flags|=t,c.memoizedState=Mr(1|i,s,void 0,a===void 0?null:a)}function Fo(t,i,s,a){var c=_t();a=a===void 0?null:a;var g=void 0;if(tt!==null){var y=tt.memoizedState;if(g=y.destroy,a!==null&&Fl(a,y.deps)){c.memoizedState=Mr(i,s,g,a);return}}We.flags|=t,c.memoizedState=Mr(1|i,s,g,a)}function dc(t,i){return jo(8390656,8,t,i)}function Wl(t,i){return Fo(2048,8,t,i)}function cc(t,i){return Fo(4,2,t,i)}function fc(t,i){return Fo(4,4,t,i)}function hc(t,i){if(typeof i=="function")return t=t(),i(t),function(){i(null)};if(i!=null)return t=t(),i.current=t,function(){i.current=null}}function pc(t,i,s){return s=s!=null?s.concat([t]):null,Fo(4,4,hc.bind(null,i,t),s)}function Bl(){}function gc(t,i){var s=_t();i=i===void 0?null:i;var a=s.memoizedState;return a!==null&&i!==null&&Fl(i,a[1])?a[0]:(s.memoizedState=[t,i],t)}function mc(t,i){var s=_t();i=i===void 0?null:i;var a=s.memoizedState;return a!==null&&i!==null&&Fl(i,a[1])?a[0]:(t=t(),s.memoizedState=[t,i],t)}function vc(t,i,s){return(li&21)===0?(t.baseState&&(t.baseState=!1,bt=!0),t.memoizedState=s):(qt(s,i)||(s=Gu(),We.lanes|=s,ai|=s,t.baseState=!0),i)}function fm(t,i){var s=Ae;Ae=s!==0&&4>s?s:4,t(!0);var a=jl.transition;jl.transition={};try{t(!1),i()}finally{Ae=s,jl.transition=a}}function yc(){return _t().memoizedState}function hm(t,i,s){var a=Un(t);if(s={lane:a,action:s,hasEagerState:!1,eagerState:null,next:null},xc(t))kc(i,s);else if(s=Qd(t,i,s,a),s!==null){var c=yt();Yt(s,t,a,c),Sc(s,i,a)}}function pm(t,i,s){var a=Un(t),c={lane:a,action:s,hasEagerState:!1,eagerState:null,next:null};if(xc(t))kc(i,c);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var y=i.lastRenderedState,R=g(y,s);if(c.hasEagerState=!0,c.eagerState=R,qt(R,y)){var P=i.interleaved;P===null?(c.next=c,Al(i)):(c.next=P.next,P.next=c),i.interleaved=c;return}}catch{}finally{}s=Qd(t,i,c,a),s!==null&&(c=yt(),Yt(s,t,a,c),Sc(s,i,a))}}function xc(t){var i=t.alternate;return t===We||i!==null&&i===We}function kc(t,i){Tr=Oo=!0;var s=t.pending;s===null?i.next=i:(i.next=s.next,s.next=i),t.pending=i}function Sc(t,i,s){if((s&4194240)!==0){var a=i.lanes;a&=t.pendingLanes,s|=a,i.lanes=s,Gs(t,s)}}var _o={readContext:Ft,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useInsertionEffect:ht,useLayoutEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useMutableSource:ht,useSyncExternalStore:ht,useId:ht,unstable_isNewReconciler:!1},gm={readContext:Ft,useCallback:function(t,i){return sn().memoizedState=[t,i===void 0?null:i],t},useContext:Ft,useEffect:dc,useImperativeHandle:function(t,i,s){return s=s!=null?s.concat([t]):null,jo(4194308,4,hc.bind(null,i,t),s)},useLayoutEffect:function(t,i){return jo(4194308,4,t,i)},useInsertionEffect:function(t,i){return jo(4,2,t,i)},useMemo:function(t,i){var s=sn();return i=i===void 0?null:i,t=t(),s.memoizedState=[t,i],t},useReducer:function(t,i,s){var a=sn();return i=s!==void 0?s(i):i,a.memoizedState=a.baseState=i,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},a.queue=t,t=t.dispatch=hm.bind(null,We,t),[a.memoizedState,t]},useRef:function(t){var i=sn();return t={current:t},i.memoizedState=t},useState:ac,useDebugValue:Bl,useDeferredValue:function(t){return sn().memoizedState=t},useTransition:function(){var t=ac(!1),i=t[0];return t=fm.bind(null,t[1]),sn().memoizedState=t,[i,t]},useMutableSource:function(){},useSyncExternalStore:function(t,i,s){var a=We,c=sn();if(_e){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),st===null)throw Error(r(349));(li&30)!==0||ic(a,i,s)}c.memoizedState=s;var g={value:s,getSnapshot:i};return c.queue=g,dc(oc.bind(null,a,g,t),[t]),a.flags|=2048,Mr(9,rc.bind(null,a,g,s,i),void 0,null),s},useId:function(){var t=sn(),i=st.identifierPrefix;if(_e){var s=pn,a=hn;s=(a&~(1<<32-Bt(a)-1)).toString(32)+s,i=":"+i+"R"+s,s=Dr++,0<s&&(i+="H"+s.toString(32)),i+=":"}else s=cm++,i=":"+i+"r"+s.toString(32)+":";return t.memoizedState=i},unstable_isNewReconciler:!1},mm={readContext:Ft,useCallback:gc,useContext:Ft,useEffect:Wl,useImperativeHandle:pc,useInsertionEffect:cc,useLayoutEffect:fc,useMemo:mc,useReducer:Ul,useRef:uc,useState:function(){return Ul(Nr)},useDebugValue:Bl,useDeferredValue:function(t){var i=_t();return vc(i,tt.memoizedState,t)},useTransition:function(){var t=Ul(Nr)[0],i=_t().memoizedState;return[t,i]},useMutableSource:tc,useSyncExternalStore:nc,useId:yc,unstable_isNewReconciler:!1},vm={readContext:Ft,useCallback:gc,useContext:Ft,useEffect:Wl,useImperativeHandle:pc,useInsertionEffect:cc,useLayoutEffect:fc,useMemo:mc,useReducer:Vl,useRef:uc,useState:function(){return Vl(Nr)},useDebugValue:Bl,useDeferredValue:function(t){var i=_t();return tt===null?i.memoizedState=t:vc(i,tt.memoizedState,t)},useTransition:function(){var t=Vl(Nr)[0],i=_t().memoizedState;return[t,i]},useMutableSource:tc,useSyncExternalStore:nc,useId:yc,unstable_isNewReconciler:!1};function Xt(t,i){if(t&&t.defaultProps){i=ne({},i),t=t.defaultProps;for(var s in t)i[s]===void 0&&(i[s]=t[s]);return i}return i}function ql(t,i,s,a){i=t.memoizedState,s=s(a,i),s=s==null?i:ne({},i,s),t.memoizedState=s,t.lanes===0&&(t.updateQueue.baseState=s)}var $o={isMounted:function(t){return(t=t._reactInternals)?ei(t)===t:!1},enqueueSetState:function(t,i,s){t=t._reactInternals;var a=yt(),c=Un(t),g=mn(a,c);g.payload=i,s!=null&&(g.callback=s),i=jn(t,g,c),i!==null&&(Yt(i,t,c,a),Po(i,t,c))},enqueueReplaceState:function(t,i,s){t=t._reactInternals;var a=yt(),c=Un(t),g=mn(a,c);g.tag=1,g.payload=i,s!=null&&(g.callback=s),i=jn(t,g,c),i!==null&&(Yt(i,t,c,a),Po(i,t,c))},enqueueForceUpdate:function(t,i){t=t._reactInternals;var s=yt(),a=Un(t),c=mn(s,a);c.tag=2,i!=null&&(c.callback=i),i=jn(t,c,a),i!==null&&(Yt(i,t,a,s),Po(i,t,a))}};function wc(t,i,s,a,c,g,y){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,g,y):i.prototype&&i.prototype.isPureReactComponent?!vr(s,a)||!vr(c,g):!0}function Cc(t,i,s){var a=!1,c=zn,g=i.contextType;return typeof g=="object"&&g!==null?g=Ft(g):(c=Ct(i)?ni:ft.current,a=i.contextTypes,g=(a=a!=null)?Ai(t,c):zn),i=new i(s,g),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=$o,t.stateNode=i,i._reactInternals=t,a&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=c,t.__reactInternalMemoizedMaskedChildContext=g),i}function bc(t,i,s,a){t=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,a),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,a),i.state!==t&&$o.enqueueReplaceState(i,i.state,null)}function Gl(t,i,s,a){var c=t.stateNode;c.props=s,c.state=t.memoizedState,c.refs={},Pl(t);var g=i.contextType;typeof g=="object"&&g!==null?c.context=Ft(g):(g=Ct(i)?ni:ft.current,c.context=Ai(t,g)),c.state=t.memoizedState,g=i.getDerivedStateFromProps,typeof g=="function"&&(ql(t,i,g,s),c.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(i=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),i!==c.state&&$o.enqueueReplaceState(c,c.state,null),Io(t,s,c,a),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308)}function _i(t,i){try{var s="",a=i;do s+=ke(a),a=a.return;while(a);var c=s}catch(g){c=`
|
|
40
|
+
Error generating stack: `+g.message+`
|
|
41
|
+
`+g.stack}return{value:t,source:i,stack:c,digest:null}}function Xl(t,i,s){return{value:t,source:null,stack:s??null,digest:i??null}}function Kl(t,i){try{console.error(i.value)}catch(s){setTimeout(function(){throw s})}}var ym=typeof WeakMap=="function"?WeakMap:Map;function Ec(t,i,s){s=mn(-1,s),s.tag=3,s.payload={element:null};var a=i.value;return s.callback=function(){Xo||(Xo=!0,da=a),Kl(t,i)},s}function Lc(t,i,s){s=mn(-1,s),s.tag=3;var a=t.type.getDerivedStateFromError;if(typeof a=="function"){var c=i.value;s.payload=function(){return a(c)},s.callback=function(){Kl(t,i)}}var g=t.stateNode;return g!==null&&typeof g.componentDidCatch=="function"&&(s.callback=function(){Kl(t,i),typeof a!="function"&&(_n===null?_n=new Set([this]):_n.add(this));var y=i.stack;this.componentDidCatch(i.value,{componentStack:y!==null?y:""})}),s}function Rc(t,i,s){var a=t.pingCache;if(a===null){a=t.pingCache=new ym;var c=new Set;a.set(i,c)}else c=a.get(i),c===void 0&&(c=new Set,a.set(i,c));c.has(s)||(c.add(s),t=Am.bind(null,t,i,s),i.then(t,t))}function Tc(t){do{var i;if((i=t.tag===13)&&(i=t.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return t;t=t.return}while(t!==null);return null}function Dc(t,i,s,a,c){return(t.mode&1)===0?(t===i?t.flags|=65536:(t.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(i=mn(-1,1),i.tag=2,jn(s,i,1))),s.lanes|=1),t):(t.flags|=65536,t.lanes=c,t)}var xm=b.ReactCurrentOwner,bt=!1;function vt(t,i,s,a){i.child=t===null?Kd(i,null,s,a):Hi(i,t.child,s,a)}function Nc(t,i,s,a,c){s=s.render;var g=i.ref;return ji(i,c),a=_l(t,i,s,a,g,c),s=$l(),t!==null&&!bt?(i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~c,vn(t,i,c)):(_e&&s&&Cl(i),i.flags|=1,vt(t,i,a,c),i.child)}function Mc(t,i,s,a,c){if(t===null){var g=s.type;return typeof g=="function"&&!va(g)&&g.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(i.tag=15,i.type=g,Ac(t,i,g,a,c)):(t=es(s.type,null,a,i,i.mode,c),t.ref=i.ref,t.return=i,i.child=t)}if(g=t.child,(t.lanes&c)===0){var y=g.memoizedProps;if(s=s.compare,s=s!==null?s:vr,s(y,a)&&t.ref===i.ref)return vn(t,i,c)}return i.flags|=1,t=Wn(g,a),t.ref=i.ref,t.return=i,i.child=t}function Ac(t,i,s,a,c){if(t!==null){var g=t.memoizedProps;if(vr(g,a)&&t.ref===i.ref)if(bt=!1,i.pendingProps=a=g,(t.lanes&c)!==0)(t.flags&131072)!==0&&(bt=!0);else return i.lanes=t.lanes,vn(t,i,c)}return Ql(t,i,s,a,c)}function Pc(t,i,s){var a=i.pendingProps,c=a.children,g=t!==null?t.memoizedState:null;if(a.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Oe(Ui,It),It|=s;else{if((s&1073741824)===0)return t=g!==null?g.baseLanes|s:s,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:t,cachePool:null,transitions:null},i.updateQueue=null,Oe(Ui,It),It|=t,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=g!==null?g.baseLanes:s,Oe(Ui,It),It|=a}else g!==null?(a=g.baseLanes|s,i.memoizedState=null):a=s,Oe(Ui,It),It|=a;return vt(t,i,c,s),i.child}function Ic(t,i){var s=i.ref;(t===null&&s!==null||t!==null&&t.ref!==s)&&(i.flags|=512,i.flags|=2097152)}function Ql(t,i,s,a,c){var g=Ct(s)?ni:ft.current;return g=Ai(i,g),ji(i,c),s=_l(t,i,s,a,g,c),a=$l(),t!==null&&!bt?(i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~c,vn(t,i,c)):(_e&&a&&Cl(i),i.flags|=1,vt(t,i,s,c),i.child)}function zc(t,i,s,a,c){if(Ct(s)){var g=!0;Eo(i)}else g=!1;if(ji(i,c),i.stateNode===null)Vo(t,i),Cc(i,s,a),Gl(i,s,a,c),a=!0;else if(t===null){var y=i.stateNode,R=i.memoizedProps;y.props=R;var P=y.context,$=s.contextType;typeof $=="object"&&$!==null?$=Ft($):($=Ct(s)?ni:ft.current,$=Ai(i,$));var Q=s.getDerivedStateFromProps,Y=typeof Q=="function"||typeof y.getSnapshotBeforeUpdate=="function";Y||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(R!==a||P!==$)&&bc(i,y,a,$),On=!1;var X=i.memoizedState;y.state=X,Io(i,a,y,c),P=i.memoizedState,R!==a||X!==P||wt.current||On?(typeof Q=="function"&&(ql(i,s,Q,a),P=i.memoizedState),(R=On||wc(i,s,R,a,X,P,$))?(Y||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(i.flags|=4194308)):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=a,i.memoizedState=P),y.props=a,y.state=P,y.context=$,a=R):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),a=!1)}else{y=i.stateNode,Yd(t,i),R=i.memoizedProps,$=i.type===i.elementType?R:Xt(i.type,R),y.props=$,Y=i.pendingProps,X=y.context,P=s.contextType,typeof P=="object"&&P!==null?P=Ft(P):(P=Ct(s)?ni:ft.current,P=Ai(i,P));var le=s.getDerivedStateFromProps;(Q=typeof le=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(R!==Y||X!==P)&&bc(i,y,a,P),On=!1,X=i.memoizedState,y.state=X,Io(i,a,y,c);var de=i.memoizedState;R!==Y||X!==de||wt.current||On?(typeof le=="function"&&(ql(i,s,le,a),de=i.memoizedState),($=On||wc(i,s,$,a,X,de,P)||!1)?(Q||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(a,de,P),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(a,de,P)),typeof y.componentDidUpdate=="function"&&(i.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof y.componentDidUpdate!="function"||R===t.memoizedProps&&X===t.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||R===t.memoizedProps&&X===t.memoizedState||(i.flags|=1024),i.memoizedProps=a,i.memoizedState=de),y.props=a,y.state=de,y.context=P,a=$):(typeof y.componentDidUpdate!="function"||R===t.memoizedProps&&X===t.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||R===t.memoizedProps&&X===t.memoizedState||(i.flags|=1024),a=!1)}return Yl(t,i,s,a,g,c)}function Yl(t,i,s,a,c,g){Ic(t,i);var y=(i.flags&128)!==0;if(!a&&!y)return c&&_d(i,s,!1),vn(t,i,g);a=i.stateNode,xm.current=i;var R=y&&typeof s.getDerivedStateFromError!="function"?null:a.render();return i.flags|=1,t!==null&&y?(i.child=Hi(i,t.child,null,g),i.child=Hi(i,null,R,g)):vt(t,i,R,g),i.memoizedState=a.state,c&&_d(i,s,!0),i.child}function Hc(t){var i=t.stateNode;i.pendingContext?jd(t,i.pendingContext,i.pendingContext!==i.context):i.context&&jd(t,i.context,!1),Il(t,i.containerInfo)}function Oc(t,i,s,a,c){return zi(),Rl(c),i.flags|=256,vt(t,i,s,a),i.child}var Zl={dehydrated:null,treeContext:null,retryLane:0};function Jl(t){return{baseLanes:t,cachePool:null,transitions:null}}function jc(t,i,s){var a=i.pendingProps,c=Ve.current,g=!1,y=(i.flags&128)!==0,R;if((R=y)||(R=t!==null&&t.memoizedState===null?!1:(c&2)!==0),R?(g=!0,i.flags&=-129):(t===null||t.memoizedState!==null)&&(c|=1),Oe(Ve,c&1),t===null)return Ll(i),t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((i.mode&1)===0?i.lanes=1:t.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(y=a.children,t=a.fallback,g?(a=i.mode,g=i.child,y={mode:"hidden",children:y},(a&1)===0&&g!==null?(g.childLanes=0,g.pendingProps=y):g=ts(y,a,0,null),t=fi(t,a,s,null),g.return=i,t.return=i,g.sibling=t,i.child=g,i.child.memoizedState=Jl(s),i.memoizedState=Zl,t):ea(i,y));if(c=t.memoizedState,c!==null&&(R=c.dehydrated,R!==null))return km(t,i,y,a,R,c,s);if(g){g=a.fallback,y=i.mode,c=t.child,R=c.sibling;var P={mode:"hidden",children:a.children};return(y&1)===0&&i.child!==c?(a=i.child,a.childLanes=0,a.pendingProps=P,i.deletions=null):(a=Wn(c,P),a.subtreeFlags=c.subtreeFlags&14680064),R!==null?g=Wn(R,g):(g=fi(g,y,s,null),g.flags|=2),g.return=i,a.return=i,a.sibling=g,i.child=a,a=g,g=i.child,y=t.child.memoizedState,y=y===null?Jl(s):{baseLanes:y.baseLanes|s,cachePool:null,transitions:y.transitions},g.memoizedState=y,g.childLanes=t.childLanes&~s,i.memoizedState=Zl,a}return g=t.child,t=g.sibling,a=Wn(g,{mode:"visible",children:a.children}),(i.mode&1)===0&&(a.lanes=s),a.return=i,a.sibling=null,t!==null&&(s=i.deletions,s===null?(i.deletions=[t],i.flags|=16):s.push(t)),i.child=a,i.memoizedState=null,a}function ea(t,i){return i=ts({mode:"visible",children:i},t.mode,0,null),i.return=t,t.child=i}function Uo(t,i,s,a){return a!==null&&Rl(a),Hi(i,t.child,null,s),t=ea(i,i.pendingProps.children),t.flags|=2,i.memoizedState=null,t}function km(t,i,s,a,c,g,y){if(s)return i.flags&256?(i.flags&=-257,a=Xl(Error(r(422))),Uo(t,i,y,a)):i.memoizedState!==null?(i.child=t.child,i.flags|=128,null):(g=a.fallback,c=i.mode,a=ts({mode:"visible",children:a.children},c,0,null),g=fi(g,c,y,null),g.flags|=2,a.return=i,g.return=i,a.sibling=g,i.child=a,(i.mode&1)!==0&&Hi(i,t.child,null,y),i.child.memoizedState=Jl(y),i.memoizedState=Zl,g);if((i.mode&1)===0)return Uo(t,i,y,null);if(c.data==="$!"){if(a=c.nextSibling&&c.nextSibling.dataset,a)var R=a.dgst;return a=R,g=Error(r(419)),a=Xl(g,a,void 0),Uo(t,i,y,a)}if(R=(y&t.childLanes)!==0,bt||R){if(a=st,a!==null){switch(y&-y){case 4:c=2;break;case 16:c=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(a.suspendedLanes|y))!==0?0:c,c!==0&&c!==g.retryLane&&(g.retryLane=c,gn(t,c),Yt(a,t,c,-1))}return ma(),a=Xl(Error(r(421))),Uo(t,i,y,a)}return c.data==="$?"?(i.flags|=128,i.child=t.child,i=Pm.bind(null,t),c._reactRetry=i,null):(t=g.treeContext,Pt=Pn(c.nextSibling),At=i,_e=!0,Gt=null,t!==null&&(Ot[jt++]=hn,Ot[jt++]=pn,Ot[jt++]=ii,hn=t.id,pn=t.overflow,ii=i),i=ea(i,a.children),i.flags|=4096,i)}function Fc(t,i,s){t.lanes|=i;var a=t.alternate;a!==null&&(a.lanes|=i),Ml(t.return,i,s)}function ta(t,i,s,a,c){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:a,tail:s,tailMode:c}:(g.isBackwards=i,g.rendering=null,g.renderingStartTime=0,g.last=a,g.tail=s,g.tailMode=c)}function _c(t,i,s){var a=i.pendingProps,c=a.revealOrder,g=a.tail;if(vt(t,i,a.children,s),a=Ve.current,(a&2)!==0)a=a&1|2,i.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=i.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Fc(t,s,i);else if(t.tag===19)Fc(t,s,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}a&=1}if(Oe(Ve,a),(i.mode&1)===0)i.memoizedState=null;else switch(c){case"forwards":for(s=i.child,c=null;s!==null;)t=s.alternate,t!==null&&zo(t)===null&&(c=s),s=s.sibling;s=c,s===null?(c=i.child,i.child=null):(c=s.sibling,s.sibling=null),ta(i,!1,c,s,g);break;case"backwards":for(s=null,c=i.child,i.child=null;c!==null;){if(t=c.alternate,t!==null&&zo(t)===null){i.child=c;break}t=c.sibling,c.sibling=s,s=c,c=t}ta(i,!0,s,null,g);break;case"together":ta(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Vo(t,i){(i.mode&1)===0&&t!==null&&(t.alternate=null,i.alternate=null,i.flags|=2)}function vn(t,i,s){if(t!==null&&(i.dependencies=t.dependencies),ai|=i.lanes,(s&i.childLanes)===0)return null;if(t!==null&&i.child!==t.child)throw Error(r(153));if(i.child!==null){for(t=i.child,s=Wn(t,t.pendingProps),i.child=s,s.return=i;t.sibling!==null;)t=t.sibling,s=s.sibling=Wn(t,t.pendingProps),s.return=i;s.sibling=null}return i.child}function Sm(t,i,s){switch(i.tag){case 3:Hc(i),zi();break;case 5:ec(i);break;case 1:Ct(i.type)&&Eo(i);break;case 4:Il(i,i.stateNode.containerInfo);break;case 10:var a=i.type._context,c=i.memoizedProps.value;Oe(Mo,a._currentValue),a._currentValue=c;break;case 13:if(a=i.memoizedState,a!==null)return a.dehydrated!==null?(Oe(Ve,Ve.current&1),i.flags|=128,null):(s&i.child.childLanes)!==0?jc(t,i,s):(Oe(Ve,Ve.current&1),t=vn(t,i,s),t!==null?t.sibling:null);Oe(Ve,Ve.current&1);break;case 19:if(a=(s&i.childLanes)!==0,(t.flags&128)!==0){if(a)return _c(t,i,s);i.flags|=128}if(c=i.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Oe(Ve,Ve.current),a)break;return null;case 22:case 23:return i.lanes=0,Pc(t,i,s)}return vn(t,i,s)}var $c,na,Uc,Vc;$c=function(t,i){for(var s=i.child;s!==null;){if(s.tag===5||s.tag===6)t.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},na=function(){},Uc=function(t,i,s,a){var c=t.memoizedProps;if(c!==a){t=i.stateNode,si(on.current);var g=null;switch(s){case"input":c=Nt(t,c),a=Nt(t,a),g=[];break;case"select":c=ne({},c,{value:void 0}),a=ne({},a,{value:void 0}),g=[];break;case"textarea":c=Wt(t,c),a=Wt(t,a),g=[];break;default:typeof c.onClick!="function"&&typeof a.onClick=="function"&&(t.onclick=wo)}ct(s,a);var y;s=null;for($ in c)if(!a.hasOwnProperty($)&&c.hasOwnProperty($)&&c[$]!=null)if($==="style"){var R=c[$];for(y in R)R.hasOwnProperty(y)&&(s||(s={}),s[y]="")}else $!=="dangerouslySetInnerHTML"&&$!=="children"&&$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&$!=="autoFocus"&&(l.hasOwnProperty($)?g||(g=[]):(g=g||[]).push($,null));for($ in a){var P=a[$];if(R=c!=null?c[$]:void 0,a.hasOwnProperty($)&&P!==R&&(P!=null||R!=null))if($==="style")if(R){for(y in R)!R.hasOwnProperty(y)||P&&P.hasOwnProperty(y)||(s||(s={}),s[y]="");for(y in P)P.hasOwnProperty(y)&&R[y]!==P[y]&&(s||(s={}),s[y]=P[y])}else s||(g||(g=[]),g.push($,s)),s=P;else $==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,R=R?R.__html:void 0,P!=null&&R!==P&&(g=g||[]).push($,P)):$==="children"?typeof P!="string"&&typeof P!="number"||(g=g||[]).push($,""+P):$!=="suppressContentEditableWarning"&&$!=="suppressHydrationWarning"&&(l.hasOwnProperty($)?(P!=null&&$==="onScroll"&&je("scroll",t),g||R===P||(g=[])):(g=g||[]).push($,P))}s&&(g=g||[]).push("style",s);var $=g;(i.updateQueue=$)&&(i.flags|=4)}},Vc=function(t,i,s,a){s!==a&&(i.flags|=4)};function Ar(t,i){if(!_e)switch(t.tailMode){case"hidden":i=t.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?t.tail=null:s.sibling=null;break;case"collapsed":s=t.tail;for(var a=null;s!==null;)s.alternate!==null&&(a=s),s=s.sibling;a===null?i||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function pt(t){var i=t.alternate!==null&&t.alternate.child===t.child,s=0,a=0;if(i)for(var c=t.child;c!==null;)s|=c.lanes|c.childLanes,a|=c.subtreeFlags&14680064,a|=c.flags&14680064,c.return=t,c=c.sibling;else for(c=t.child;c!==null;)s|=c.lanes|c.childLanes,a|=c.subtreeFlags,a|=c.flags,c.return=t,c=c.sibling;return t.subtreeFlags|=a,t.childLanes=s,i}function wm(t,i,s){var a=i.pendingProps;switch(bl(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(i),null;case 1:return Ct(i.type)&&bo(),pt(i),null;case 3:return a=i.stateNode,Fi(),Fe(wt),Fe(ft),Ol(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Do(i)?i.flags|=4:t===null||t.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Gt!==null&&(ha(Gt),Gt=null))),na(t,i),pt(i),null;case 5:zl(i);var c=si(Rr.current);if(s=i.type,t!==null&&i.stateNode!=null)Uc(t,i,s,a,c),t.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!a){if(i.stateNode===null)throw Error(r(166));return pt(i),null}if(t=si(on.current),Do(i)){a=i.stateNode,s=i.type;var g=i.memoizedProps;switch(a[rn]=i,a[wr]=g,t=(i.mode&1)!==0,s){case"dialog":je("cancel",a),je("close",a);break;case"iframe":case"object":case"embed":je("load",a);break;case"video":case"audio":for(c=0;c<xr.length;c++)je(xr[c],a);break;case"source":je("error",a);break;case"img":case"image":case"link":je("error",a),je("load",a);break;case"details":je("toggle",a);break;case"input":Ht(a,g),je("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!g.multiple},je("invalid",a);break;case"textarea":Qe(a,g),je("invalid",a)}ct(s,g),c=null;for(var y in g)if(g.hasOwnProperty(y)){var R=g[y];y==="children"?typeof R=="string"?a.textContent!==R&&(g.suppressHydrationWarning!==!0&&So(a.textContent,R,t),c=["children",R]):typeof R=="number"&&a.textContent!==""+R&&(g.suppressHydrationWarning!==!0&&So(a.textContent,R,t),c=["children",""+R]):l.hasOwnProperty(y)&&R!=null&&y==="onScroll"&&je("scroll",a)}switch(s){case"input":en(a),Pe(a,g,!0);break;case"textarea":en(a),Zr(a);break;case"select":case"option":break;default:typeof g.onClick=="function"&&(a.onclick=wo)}a=c,i.updateQueue=a,a!==null&&(i.flags|=4)}else{y=c.nodeType===9?c:c.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=Jr(s)),t==="http://www.w3.org/1999/xhtml"?s==="script"?(t=y.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof a.is=="string"?t=y.createElement(s,{is:a.is}):(t=y.createElement(s),s==="select"&&(y=t,a.multiple?y.multiple=!0:a.size&&(y.size=a.size))):t=y.createElementNS(t,s),t[rn]=i,t[wr]=a,$c(t,i,!1,!1),i.stateNode=t;e:{switch(y=St(s,a),s){case"dialog":je("cancel",t),je("close",t),c=a;break;case"iframe":case"object":case"embed":je("load",t),c=a;break;case"video":case"audio":for(c=0;c<xr.length;c++)je(xr[c],t);c=a;break;case"source":je("error",t),c=a;break;case"img":case"image":case"link":je("error",t),je("load",t),c=a;break;case"details":je("toggle",t),c=a;break;case"input":Ht(t,a),c=Nt(t,a),je("invalid",t);break;case"option":c=a;break;case"select":t._wrapperState={wasMultiple:!!a.multiple},c=ne({},a,{value:void 0}),je("invalid",t);break;case"textarea":Qe(t,a),c=Wt(t,a),je("invalid",t);break;default:c=a}ct(s,c),R=c;for(g in R)if(R.hasOwnProperty(g)){var P=R[g];g==="style"?xe(t,P):g==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,P!=null&&ki(t,P)):g==="children"?typeof P=="string"?(s!=="textarea"||P!=="")&&Zn(t,P):typeof P=="number"&&Zn(t,""+P):g!=="suppressContentEditableWarning"&&g!=="suppressHydrationWarning"&&g!=="autoFocus"&&(l.hasOwnProperty(g)?P!=null&&g==="onScroll"&&je("scroll",t):P!=null&&L(t,g,P,y))}switch(s){case"input":en(t),Pe(t,a,!1);break;case"textarea":en(t),Zr(t);break;case"option":a.value!=null&&t.setAttribute("value",""+we(a.value));break;case"select":t.multiple=!!a.multiple,g=a.value,g!=null?Be(t,!!a.multiple,g,!1):a.defaultValue!=null&&Be(t,!!a.multiple,a.defaultValue,!0);break;default:typeof c.onClick=="function"&&(t.onclick=wo)}switch(s){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return pt(i),null;case 6:if(t&&i.stateNode!=null)Vc(t,i,t.memoizedProps,a);else{if(typeof a!="string"&&i.stateNode===null)throw Error(r(166));if(s=si(Rr.current),si(on.current),Do(i)){if(a=i.stateNode,s=i.memoizedProps,a[rn]=i,(g=a.nodeValue!==s)&&(t=At,t!==null))switch(t.tag){case 3:So(a.nodeValue,s,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&So(a.nodeValue,s,(t.mode&1)!==0)}g&&(i.flags|=4)}else a=(s.nodeType===9?s:s.ownerDocument).createTextNode(a),a[rn]=i,i.stateNode=a}return pt(i),null;case 13:if(Fe(Ve),a=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(_e&&Pt!==null&&(i.mode&1)!==0&&(i.flags&128)===0)qd(),zi(),i.flags|=98560,g=!1;else if(g=Do(i),a!==null&&a.dehydrated!==null){if(t===null){if(!g)throw Error(r(318));if(g=i.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[rn]=i}else zi(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;pt(i),g=!1}else Gt!==null&&(ha(Gt),Gt=null),g=!0;if(!g)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=s,i):(a=a!==null,a!==(t!==null&&t.memoizedState!==null)&&a&&(i.child.flags|=8192,(i.mode&1)!==0&&(t===null||(Ve.current&1)!==0?nt===0&&(nt=3):ma())),i.updateQueue!==null&&(i.flags|=4),pt(i),null);case 4:return Fi(),na(t,i),t===null&&kr(i.stateNode.containerInfo),pt(i),null;case 10:return Nl(i.type._context),pt(i),null;case 17:return Ct(i.type)&&bo(),pt(i),null;case 19:if(Fe(Ve),g=i.memoizedState,g===null)return pt(i),null;if(a=(i.flags&128)!==0,y=g.rendering,y===null)if(a)Ar(g,!1);else{if(nt!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(y=zo(t),y!==null){for(i.flags|=128,Ar(g,!1),a=y.updateQueue,a!==null&&(i.updateQueue=a,i.flags|=4),i.subtreeFlags=0,a=s,s=i.child;s!==null;)g=s,t=a,g.flags&=14680066,y=g.alternate,y===null?(g.childLanes=0,g.lanes=t,g.child=null,g.subtreeFlags=0,g.memoizedProps=null,g.memoizedState=null,g.updateQueue=null,g.dependencies=null,g.stateNode=null):(g.childLanes=y.childLanes,g.lanes=y.lanes,g.child=y.child,g.subtreeFlags=0,g.deletions=null,g.memoizedProps=y.memoizedProps,g.memoizedState=y.memoizedState,g.updateQueue=y.updateQueue,g.type=y.type,t=y.dependencies,g.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),s=s.sibling;return Oe(Ve,Ve.current&1|2),i.child}t=t.sibling}g.tail!==null&&Xe()>Vi&&(i.flags|=128,a=!0,Ar(g,!1),i.lanes=4194304)}else{if(!a)if(t=zo(y),t!==null){if(i.flags|=128,a=!0,s=t.updateQueue,s!==null&&(i.updateQueue=s,i.flags|=4),Ar(g,!0),g.tail===null&&g.tailMode==="hidden"&&!y.alternate&&!_e)return pt(i),null}else 2*Xe()-g.renderingStartTime>Vi&&s!==1073741824&&(i.flags|=128,a=!0,Ar(g,!1),i.lanes=4194304);g.isBackwards?(y.sibling=i.child,i.child=y):(s=g.last,s!==null?s.sibling=y:i.child=y,g.last=y)}return g.tail!==null?(i=g.tail,g.rendering=i,g.tail=i.sibling,g.renderingStartTime=Xe(),i.sibling=null,s=Ve.current,Oe(Ve,a?s&1|2:s&1),i):(pt(i),null);case 22:case 23:return ga(),a=i.memoizedState!==null,t!==null&&t.memoizedState!==null!==a&&(i.flags|=8192),a&&(i.mode&1)!==0?(It&1073741824)!==0&&(pt(i),i.subtreeFlags&6&&(i.flags|=8192)):pt(i),null;case 24:return null;case 25:return null}throw Error(r(156,i.tag))}function Cm(t,i){switch(bl(i),i.tag){case 1:return Ct(i.type)&&bo(),t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 3:return Fi(),Fe(wt),Fe(ft),Ol(),t=i.flags,(t&65536)!==0&&(t&128)===0?(i.flags=t&-65537|128,i):null;case 5:return zl(i),null;case 13:if(Fe(Ve),t=i.memoizedState,t!==null&&t.dehydrated!==null){if(i.alternate===null)throw Error(r(340));zi()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 19:return Fe(Ve),null;case 4:return Fi(),null;case 10:return Nl(i.type._context),null;case 22:case 23:return ga(),null;case 24:return null;default:return null}}var Wo=!1,gt=!1,bm=typeof WeakSet=="function"?WeakSet:Set,ae=null;function $i(t,i){var s=t.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(a){qe(t,i,a)}else s.current=null}function ia(t,i,s){try{s()}catch(a){qe(t,i,a)}}var Wc=!1;function Em(t,i){if(gl=uo,t=wd(),ll(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else e:{s=(s=t.ownerDocument)&&s.defaultView||window;var a=s.getSelection&&s.getSelection();if(a&&a.rangeCount!==0){s=a.anchorNode;var c=a.anchorOffset,g=a.focusNode;a=a.focusOffset;try{s.nodeType,g.nodeType}catch{s=null;break e}var y=0,R=-1,P=-1,$=0,Q=0,Y=t,X=null;t:for(;;){for(var le;Y!==s||c!==0&&Y.nodeType!==3||(R=y+c),Y!==g||a!==0&&Y.nodeType!==3||(P=y+a),Y.nodeType===3&&(y+=Y.nodeValue.length),(le=Y.firstChild)!==null;)X=Y,Y=le;for(;;){if(Y===t)break t;if(X===s&&++$===c&&(R=y),X===g&&++Q===a&&(P=y),(le=Y.nextSibling)!==null)break;Y=X,X=Y.parentNode}Y=le}s=R===-1||P===-1?null:{start:R,end:P}}else s=null}s=s||{start:0,end:0}}else s=null;for(ml={focusedElem:t,selectionRange:s},uo=!1,ae=i;ae!==null;)if(i=ae,t=i.child,(i.subtreeFlags&1028)!==0&&t!==null)t.return=i,ae=t;else for(;ae!==null;){i=ae;try{var de=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(de!==null){var ce=de.memoizedProps,Ke=de.memoizedState,j=i.stateNode,I=j.getSnapshotBeforeUpdate(i.elementType===i.type?ce:Xt(i.type,ce),Ke);j.__reactInternalSnapshotBeforeUpdate=I}break;case 3:var _=i.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(J){qe(i,i.return,J)}if(t=i.sibling,t!==null){t.return=i.return,ae=t;break}ae=i.return}return de=Wc,Wc=!1,de}function Pr(t,i,s){var a=i.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var c=a=a.next;do{if((c.tag&t)===t){var g=c.destroy;c.destroy=void 0,g!==void 0&&ia(i,s,g)}c=c.next}while(c!==a)}}function Bo(t,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var s=i=i.next;do{if((s.tag&t)===t){var a=s.create;s.destroy=a()}s=s.next}while(s!==i)}}function ra(t){var i=t.ref;if(i!==null){var s=t.stateNode;switch(t.tag){case 5:t=s;break;default:t=s}typeof i=="function"?i(t):i.current=t}}function Bc(t){var i=t.alternate;i!==null&&(t.alternate=null,Bc(i)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(i=t.stateNode,i!==null&&(delete i[rn],delete i[wr],delete i[kl],delete i[lm],delete i[am])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function qc(t){return t.tag===5||t.tag===3||t.tag===4}function Gc(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||qc(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.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 oa(t,i,s){var a=t.tag;if(a===5||a===6)t=t.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(t,i):s.insertBefore(t,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(t,s)):(i=s,i.appendChild(t)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=wo));else if(a!==4&&(t=t.child,t!==null))for(oa(t,i,s),t=t.sibling;t!==null;)oa(t,i,s),t=t.sibling}function sa(t,i,s){var a=t.tag;if(a===5||a===6)t=t.stateNode,i?s.insertBefore(t,i):s.appendChild(t);else if(a!==4&&(t=t.child,t!==null))for(sa(t,i,s),t=t.sibling;t!==null;)sa(t,i,s),t=t.sibling}var ut=null,Kt=!1;function Fn(t,i,s){for(s=s.child;s!==null;)Xc(t,i,s),s=s.sibling}function Xc(t,i,s){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(io,s)}catch{}switch(s.tag){case 5:gt||$i(s,i);case 6:var a=ut,c=Kt;ut=null,Fn(t,i,s),ut=a,Kt=c,ut!==null&&(Kt?(t=ut,s=s.stateNode,t.nodeType===8?t.parentNode.removeChild(s):t.removeChild(s)):ut.removeChild(s.stateNode));break;case 18:ut!==null&&(Kt?(t=ut,s=s.stateNode,t.nodeType===8?xl(t.parentNode,s):t.nodeType===1&&xl(t,s),cr(t)):xl(ut,s.stateNode));break;case 4:a=ut,c=Kt,ut=s.stateNode.containerInfo,Kt=!0,Fn(t,i,s),ut=a,Kt=c;break;case 0:case 11:case 14:case 15:if(!gt&&(a=s.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){c=a=a.next;do{var g=c,y=g.destroy;g=g.tag,y!==void 0&&((g&2)!==0||(g&4)!==0)&&ia(s,i,y),c=c.next}while(c!==a)}Fn(t,i,s);break;case 1:if(!gt&&($i(s,i),a=s.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=s.memoizedProps,a.state=s.memoizedState,a.componentWillUnmount()}catch(R){qe(s,i,R)}Fn(t,i,s);break;case 21:Fn(t,i,s);break;case 22:s.mode&1?(gt=(a=gt)||s.memoizedState!==null,Fn(t,i,s),gt=a):Fn(t,i,s);break;default:Fn(t,i,s)}}function Kc(t){var i=t.updateQueue;if(i!==null){t.updateQueue=null;var s=t.stateNode;s===null&&(s=t.stateNode=new bm),i.forEach(function(a){var c=Im.bind(null,t,a);s.has(a)||(s.add(a),a.then(c,c))})}}function Qt(t,i){var s=i.deletions;if(s!==null)for(var a=0;a<s.length;a++){var c=s[a];try{var g=t,y=i,R=y;e:for(;R!==null;){switch(R.tag){case 5:ut=R.stateNode,Kt=!1;break e;case 3:ut=R.stateNode.containerInfo,Kt=!0;break e;case 4:ut=R.stateNode.containerInfo,Kt=!0;break e}R=R.return}if(ut===null)throw Error(r(160));Xc(g,y,c),ut=null,Kt=!1;var P=c.alternate;P!==null&&(P.return=null),c.return=null}catch($){qe(c,i,$)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Qc(i,t),i=i.sibling}function Qc(t,i){var s=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Qt(i,t),ln(t),a&4){try{Pr(3,t,t.return),Bo(3,t)}catch(ce){qe(t,t.return,ce)}try{Pr(5,t,t.return)}catch(ce){qe(t,t.return,ce)}}break;case 1:Qt(i,t),ln(t),a&512&&s!==null&&$i(s,s.return);break;case 5:if(Qt(i,t),ln(t),a&512&&s!==null&&$i(s,s.return),t.flags&32){var c=t.stateNode;try{Zn(c,"")}catch(ce){qe(t,t.return,ce)}}if(a&4&&(c=t.stateNode,c!=null)){var g=t.memoizedProps,y=s!==null?s.memoizedProps:g,R=t.type,P=t.updateQueue;if(t.updateQueue=null,P!==null)try{R==="input"&&g.type==="radio"&&g.name!=null&&De(c,g),St(R,y);var $=St(R,g);for(y=0;y<P.length;y+=2){var Q=P[y],Y=P[y+1];Q==="style"?xe(c,Y):Q==="dangerouslySetInnerHTML"?ki(c,Y):Q==="children"?Zn(c,Y):L(c,Q,Y,$)}switch(R){case"input":Ge(c,g);break;case"textarea":Yr(c,g);break;case"select":var X=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!g.multiple;var le=g.value;le!=null?Be(c,!!g.multiple,le,!1):X!==!!g.multiple&&(g.defaultValue!=null?Be(c,!!g.multiple,g.defaultValue,!0):Be(c,!!g.multiple,g.multiple?[]:"",!1))}c[wr]=g}catch(ce){qe(t,t.return,ce)}}break;case 6:if(Qt(i,t),ln(t),a&4){if(t.stateNode===null)throw Error(r(162));c=t.stateNode,g=t.memoizedProps;try{c.nodeValue=g}catch(ce){qe(t,t.return,ce)}}break;case 3:if(Qt(i,t),ln(t),a&4&&s!==null&&s.memoizedState.isDehydrated)try{cr(i.containerInfo)}catch(ce){qe(t,t.return,ce)}break;case 4:Qt(i,t),ln(t);break;case 13:Qt(i,t),ln(t),c=t.child,c.flags&8192&&(g=c.memoizedState!==null,c.stateNode.isHidden=g,!g||c.alternate!==null&&c.alternate.memoizedState!==null||(ua=Xe())),a&4&&Kc(t);break;case 22:if(Q=s!==null&&s.memoizedState!==null,t.mode&1?(gt=($=gt)||Q,Qt(i,t),gt=$):Qt(i,t),ln(t),a&8192){if($=t.memoizedState!==null,(t.stateNode.isHidden=$)&&!Q&&(t.mode&1)!==0)for(ae=t,Q=t.child;Q!==null;){for(Y=ae=Q;ae!==null;){switch(X=ae,le=X.child,X.tag){case 0:case 11:case 14:case 15:Pr(4,X,X.return);break;case 1:$i(X,X.return);var de=X.stateNode;if(typeof de.componentWillUnmount=="function"){a=X,s=X.return;try{i=a,de.props=i.memoizedProps,de.state=i.memoizedState,de.componentWillUnmount()}catch(ce){qe(a,s,ce)}}break;case 5:$i(X,X.return);break;case 22:if(X.memoizedState!==null){Jc(Y);continue}}le!==null?(le.return=X,ae=le):Jc(Y)}Q=Q.sibling}e:for(Q=null,Y=t;;){if(Y.tag===5){if(Q===null){Q=Y;try{c=Y.stateNode,$?(g=c.style,typeof g.setProperty=="function"?g.setProperty("display","none","important"):g.display="none"):(R=Y.stateNode,P=Y.memoizedProps.style,y=P!=null&&P.hasOwnProperty("display")?P.display:null,R.style.display=he("display",y))}catch(ce){qe(t,t.return,ce)}}}else if(Y.tag===6){if(Q===null)try{Y.stateNode.nodeValue=$?"":Y.memoizedProps}catch(ce){qe(t,t.return,ce)}}else if((Y.tag!==22&&Y.tag!==23||Y.memoizedState===null||Y===t)&&Y.child!==null){Y.child.return=Y,Y=Y.child;continue}if(Y===t)break e;for(;Y.sibling===null;){if(Y.return===null||Y.return===t)break e;Q===Y&&(Q=null),Y=Y.return}Q===Y&&(Q=null),Y.sibling.return=Y.return,Y=Y.sibling}}break;case 19:Qt(i,t),ln(t),a&4&&Kc(t);break;case 21:break;default:Qt(i,t),ln(t)}}function ln(t){var i=t.flags;if(i&2){try{e:{for(var s=t.return;s!==null;){if(qc(s)){var a=s;break e}s=s.return}throw Error(r(160))}switch(a.tag){case 5:var c=a.stateNode;a.flags&32&&(Zn(c,""),a.flags&=-33);var g=Gc(t);sa(t,g,c);break;case 3:case 4:var y=a.stateNode.containerInfo,R=Gc(t);oa(t,R,y);break;default:throw Error(r(161))}}catch(P){qe(t,t.return,P)}t.flags&=-3}i&4096&&(t.flags&=-4097)}function Lm(t,i,s){ae=t,Yc(t)}function Yc(t,i,s){for(var a=(t.mode&1)!==0;ae!==null;){var c=ae,g=c.child;if(c.tag===22&&a){var y=c.memoizedState!==null||Wo;if(!y){var R=c.alternate,P=R!==null&&R.memoizedState!==null||gt;R=Wo;var $=gt;if(Wo=y,(gt=P)&&!$)for(ae=c;ae!==null;)y=ae,P=y.child,y.tag===22&&y.memoizedState!==null?ef(c):P!==null?(P.return=y,ae=P):ef(c);for(;g!==null;)ae=g,Yc(g),g=g.sibling;ae=c,Wo=R,gt=$}Zc(t)}else(c.subtreeFlags&8772)!==0&&g!==null?(g.return=c,ae=g):Zc(t)}}function Zc(t){for(;ae!==null;){var i=ae;if((i.flags&8772)!==0){var s=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:gt||Bo(5,i);break;case 1:var a=i.stateNode;if(i.flags&4&&!gt)if(s===null)a.componentDidMount();else{var c=i.elementType===i.type?s.memoizedProps:Xt(i.type,s.memoizedProps);a.componentDidUpdate(c,s.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var g=i.updateQueue;g!==null&&Jd(i,g,a);break;case 3:var y=i.updateQueue;if(y!==null){if(s=null,i.child!==null)switch(i.child.tag){case 5:s=i.child.stateNode;break;case 1:s=i.child.stateNode}Jd(i,y,s)}break;case 5:var R=i.stateNode;if(s===null&&i.flags&4){s=R;var P=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":P.autoFocus&&s.focus();break;case"img":P.src&&(s.src=P.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var $=i.alternate;if($!==null){var Q=$.memoizedState;if(Q!==null){var Y=Q.dehydrated;Y!==null&&cr(Y)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}gt||i.flags&512&&ra(i)}catch(X){qe(i,i.return,X)}}if(i===t){ae=null;break}if(s=i.sibling,s!==null){s.return=i.return,ae=s;break}ae=i.return}}function Jc(t){for(;ae!==null;){var i=ae;if(i===t){ae=null;break}var s=i.sibling;if(s!==null){s.return=i.return,ae=s;break}ae=i.return}}function ef(t){for(;ae!==null;){var i=ae;try{switch(i.tag){case 0:case 11:case 15:var s=i.return;try{Bo(4,i)}catch(P){qe(i,s,P)}break;case 1:var a=i.stateNode;if(typeof a.componentDidMount=="function"){var c=i.return;try{a.componentDidMount()}catch(P){qe(i,c,P)}}var g=i.return;try{ra(i)}catch(P){qe(i,g,P)}break;case 5:var y=i.return;try{ra(i)}catch(P){qe(i,y,P)}}}catch(P){qe(i,i.return,P)}if(i===t){ae=null;break}var R=i.sibling;if(R!==null){R.return=i.return,ae=R;break}ae=i.return}}var Rm=Math.ceil,qo=b.ReactCurrentDispatcher,la=b.ReactCurrentOwner,$t=b.ReactCurrentBatchConfig,Ne=0,st=null,Ye=null,dt=0,It=0,Ui=In(0),nt=0,Ir=null,ai=0,Go=0,aa=0,zr=null,Et=null,ua=0,Vi=1/0,yn=null,Xo=!1,da=null,_n=null,Ko=!1,$n=null,Qo=0,Hr=0,ca=null,Yo=-1,Zo=0;function yt(){return(Ne&6)!==0?Xe():Yo!==-1?Yo:Yo=Xe()}function Un(t){return(t.mode&1)===0?1:(Ne&2)!==0&&dt!==0?dt&-dt:dm.transition!==null?(Zo===0&&(Zo=Gu()),Zo):(t=Ae,t!==0||(t=window.event,t=t===void 0?16:nd(t.type)),t)}function Yt(t,i,s,a){if(50<Hr)throw Hr=0,ca=null,Error(r(185));sr(t,s,a),((Ne&2)===0||t!==st)&&(t===st&&((Ne&2)===0&&(Go|=s),nt===4&&Vn(t,dt)),Lt(t,a),s===1&&Ne===0&&(i.mode&1)===0&&(Vi=Xe()+500,Lo&&Hn()))}function Lt(t,i){var s=t.callbackNode;dg(t,i);var a=so(t,t===st?dt:0);if(a===0)s!==null&&Wu(s),t.callbackNode=null,t.callbackPriority=0;else if(i=a&-a,t.callbackPriority!==i){if(s!=null&&Wu(s),i===1)t.tag===0?um(nf.bind(null,t)):$d(nf.bind(null,t)),om(function(){(Ne&6)===0&&Hn()}),s=null;else{switch(Xu(a)){case 1:s=Ws;break;case 4:s=Bu;break;case 16:s=no;break;case 536870912:s=qu;break;default:s=no}s=cf(s,tf.bind(null,t))}t.callbackPriority=i,t.callbackNode=s}}function tf(t,i){if(Yo=-1,Zo=0,(Ne&6)!==0)throw Error(r(327));var s=t.callbackNode;if(Wi()&&t.callbackNode!==s)return null;var a=so(t,t===st?dt:0);if(a===0)return null;if((a&30)!==0||(a&t.expiredLanes)!==0||i)i=Jo(t,a);else{i=a;var c=Ne;Ne|=2;var g=of();(st!==t||dt!==i)&&(yn=null,Vi=Xe()+500,di(t,i));do try{Nm();break}catch(R){rf(t,R)}while(!0);Dl(),qo.current=g,Ne=c,Ye!==null?i=0:(st=null,dt=0,i=nt)}if(i!==0){if(i===2&&(c=Bs(t),c!==0&&(a=c,i=fa(t,c))),i===1)throw s=Ir,di(t,0),Vn(t,a),Lt(t,Xe()),s;if(i===6)Vn(t,a);else{if(c=t.current.alternate,(a&30)===0&&!Tm(c)&&(i=Jo(t,a),i===2&&(g=Bs(t),g!==0&&(a=g,i=fa(t,g))),i===1))throw s=Ir,di(t,0),Vn(t,a),Lt(t,Xe()),s;switch(t.finishedWork=c,t.finishedLanes=a,i){case 0:case 1:throw Error(r(345));case 2:ci(t,Et,yn);break;case 3:if(Vn(t,a),(a&130023424)===a&&(i=ua+500-Xe(),10<i)){if(so(t,0)!==0)break;if(c=t.suspendedLanes,(c&a)!==a){yt(),t.pingedLanes|=t.suspendedLanes&c;break}t.timeoutHandle=yl(ci.bind(null,t,Et,yn),i);break}ci(t,Et,yn);break;case 4:if(Vn(t,a),(a&4194240)===a)break;for(i=t.eventTimes,c=-1;0<a;){var y=31-Bt(a);g=1<<y,y=i[y],y>c&&(c=y),a&=~g}if(a=c,a=Xe()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Rm(a/1960))-a,10<a){t.timeoutHandle=yl(ci.bind(null,t,Et,yn),a);break}ci(t,Et,yn);break;case 5:ci(t,Et,yn);break;default:throw Error(r(329))}}}return Lt(t,Xe()),t.callbackNode===s?tf.bind(null,t):null}function fa(t,i){var s=zr;return t.current.memoizedState.isDehydrated&&(di(t,i).flags|=256),t=Jo(t,i),t!==2&&(i=Et,Et=s,i!==null&&ha(i)),t}function ha(t){Et===null?Et=t:Et.push.apply(Et,t)}function Tm(t){for(var i=t;;){if(i.flags&16384){var s=i.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var a=0;a<s.length;a++){var c=s[a],g=c.getSnapshot;c=c.value;try{if(!qt(g(),c))return!1}catch{return!1}}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;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 Vn(t,i){for(i&=~aa,i&=~Go,t.suspendedLanes|=i,t.pingedLanes&=~i,t=t.expirationTimes;0<i;){var s=31-Bt(i),a=1<<s;t[s]=-1,i&=~a}}function nf(t){if((Ne&6)!==0)throw Error(r(327));Wi();var i=so(t,0);if((i&1)===0)return Lt(t,Xe()),null;var s=Jo(t,i);if(t.tag!==0&&s===2){var a=Bs(t);a!==0&&(i=a,s=fa(t,a))}if(s===1)throw s=Ir,di(t,0),Vn(t,i),Lt(t,Xe()),s;if(s===6)throw Error(r(345));return t.finishedWork=t.current.alternate,t.finishedLanes=i,ci(t,Et,yn),Lt(t,Xe()),null}function pa(t,i){var s=Ne;Ne|=1;try{return t(i)}finally{Ne=s,Ne===0&&(Vi=Xe()+500,Lo&&Hn())}}function ui(t){$n!==null&&$n.tag===0&&(Ne&6)===0&&Wi();var i=Ne;Ne|=1;var s=$t.transition,a=Ae;try{if($t.transition=null,Ae=1,t)return t()}finally{Ae=a,$t.transition=s,Ne=i,(Ne&6)===0&&Hn()}}function ga(){It=Ui.current,Fe(Ui)}function di(t,i){t.finishedWork=null,t.finishedLanes=0;var s=t.timeoutHandle;if(s!==-1&&(t.timeoutHandle=-1,rm(s)),Ye!==null)for(s=Ye.return;s!==null;){var a=s;switch(bl(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&bo();break;case 3:Fi(),Fe(wt),Fe(ft),Ol();break;case 5:zl(a);break;case 4:Fi();break;case 13:Fe(Ve);break;case 19:Fe(Ve);break;case 10:Nl(a.type._context);break;case 22:case 23:ga()}s=s.return}if(st=t,Ye=t=Wn(t.current,null),dt=It=i,nt=0,Ir=null,aa=Go=ai=0,Et=zr=null,oi!==null){for(i=0;i<oi.length;i++)if(s=oi[i],a=s.interleaved,a!==null){s.interleaved=null;var c=a.next,g=s.pending;if(g!==null){var y=g.next;g.next=c,a.next=y}s.pending=a}oi=null}return t}function rf(t,i){do{var s=Ye;try{if(Dl(),Ho.current=_o,Oo){for(var a=We.memoizedState;a!==null;){var c=a.queue;c!==null&&(c.pending=null),a=a.next}Oo=!1}if(li=0,ot=tt=We=null,Tr=!1,Dr=0,la.current=null,s===null||s.return===null){nt=1,Ir=i,Ye=null;break}e:{var g=t,y=s.return,R=s,P=i;if(i=dt,R.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){var $=P,Q=R,Y=Q.tag;if((Q.mode&1)===0&&(Y===0||Y===11||Y===15)){var X=Q.alternate;X?(Q.updateQueue=X.updateQueue,Q.memoizedState=X.memoizedState,Q.lanes=X.lanes):(Q.updateQueue=null,Q.memoizedState=null)}var le=Tc(y);if(le!==null){le.flags&=-257,Dc(le,y,R,g,i),le.mode&1&&Rc(g,$,i),i=le,P=$;var de=i.updateQueue;if(de===null){var ce=new Set;ce.add(P),i.updateQueue=ce}else de.add(P);break e}else{if((i&1)===0){Rc(g,$,i),ma();break e}P=Error(r(426))}}else if(_e&&R.mode&1){var Ke=Tc(y);if(Ke!==null){(Ke.flags&65536)===0&&(Ke.flags|=256),Dc(Ke,y,R,g,i),Rl(_i(P,R));break e}}g=P=_i(P,R),nt!==4&&(nt=2),zr===null?zr=[g]:zr.push(g),g=y;do{switch(g.tag){case 3:g.flags|=65536,i&=-i,g.lanes|=i;var j=Ec(g,P,i);Zd(g,j);break e;case 1:R=P;var I=g.type,_=g.stateNode;if((g.flags&128)===0&&(typeof I.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(_n===null||!_n.has(_)))){g.flags|=65536,i&=-i,g.lanes|=i;var J=Lc(g,R,i);Zd(g,J);break e}}g=g.return}while(g!==null)}lf(s)}catch(pe){i=pe,Ye===s&&s!==null&&(Ye=s=s.return);continue}break}while(!0)}function of(){var t=qo.current;return qo.current=_o,t===null?_o:t}function ma(){(nt===0||nt===3||nt===2)&&(nt=4),st===null||(ai&268435455)===0&&(Go&268435455)===0||Vn(st,dt)}function Jo(t,i){var s=Ne;Ne|=2;var a=of();(st!==t||dt!==i)&&(yn=null,di(t,i));do try{Dm();break}catch(c){rf(t,c)}while(!0);if(Dl(),Ne=s,qo.current=a,Ye!==null)throw Error(r(261));return st=null,dt=0,nt}function Dm(){for(;Ye!==null;)sf(Ye)}function Nm(){for(;Ye!==null&&!tg();)sf(Ye)}function sf(t){var i=df(t.alternate,t,It);t.memoizedProps=t.pendingProps,i===null?lf(t):Ye=i,la.current=null}function lf(t){var i=t;do{var s=i.alternate;if(t=i.return,(i.flags&32768)===0){if(s=wm(s,i,It),s!==null){Ye=s;return}}else{if(s=Cm(s,i),s!==null){s.flags&=32767,Ye=s;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{nt=6,Ye=null;return}}if(i=i.sibling,i!==null){Ye=i;return}Ye=i=t}while(i!==null);nt===0&&(nt=5)}function ci(t,i,s){var a=Ae,c=$t.transition;try{$t.transition=null,Ae=1,Mm(t,i,s,a)}finally{$t.transition=c,Ae=a}return null}function Mm(t,i,s,a){do Wi();while($n!==null);if((Ne&6)!==0)throw Error(r(327));s=t.finishedWork;var c=t.finishedLanes;if(s===null)return null;if(t.finishedWork=null,t.finishedLanes=0,s===t.current)throw Error(r(177));t.callbackNode=null,t.callbackPriority=0;var g=s.lanes|s.childLanes;if(cg(t,g),t===st&&(Ye=st=null,dt=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||Ko||(Ko=!0,cf(no,function(){return Wi(),null})),g=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||g){g=$t.transition,$t.transition=null;var y=Ae;Ae=1;var R=Ne;Ne|=4,la.current=null,Em(t,s),Qc(s,t),Yg(ml),uo=!!gl,ml=gl=null,t.current=s,Lm(s),ng(),Ne=R,Ae=y,$t.transition=g}else t.current=s;if(Ko&&(Ko=!1,$n=t,Qo=c),g=t.pendingLanes,g===0&&(_n=null),og(s.stateNode),Lt(t,Xe()),i!==null)for(a=t.onRecoverableError,s=0;s<i.length;s++)c=i[s],a(c.value,{componentStack:c.stack,digest:c.digest});if(Xo)throw Xo=!1,t=da,da=null,t;return(Qo&1)!==0&&t.tag!==0&&Wi(),g=t.pendingLanes,(g&1)!==0?t===ca?Hr++:(Hr=0,ca=t):Hr=0,Hn(),null}function Wi(){if($n!==null){var t=Xu(Qo),i=$t.transition,s=Ae;try{if($t.transition=null,Ae=16>t?16:t,$n===null)var a=!1;else{if(t=$n,$n=null,Qo=0,(Ne&6)!==0)throw Error(r(331));var c=Ne;for(Ne|=4,ae=t.current;ae!==null;){var g=ae,y=g.child;if((ae.flags&16)!==0){var R=g.deletions;if(R!==null){for(var P=0;P<R.length;P++){var $=R[P];for(ae=$;ae!==null;){var Q=ae;switch(Q.tag){case 0:case 11:case 15:Pr(8,Q,g)}var Y=Q.child;if(Y!==null)Y.return=Q,ae=Y;else for(;ae!==null;){Q=ae;var X=Q.sibling,le=Q.return;if(Bc(Q),Q===$){ae=null;break}if(X!==null){X.return=le,ae=X;break}ae=le}}}var de=g.alternate;if(de!==null){var ce=de.child;if(ce!==null){de.child=null;do{var Ke=ce.sibling;ce.sibling=null,ce=Ke}while(ce!==null)}}ae=g}}if((g.subtreeFlags&2064)!==0&&y!==null)y.return=g,ae=y;else e:for(;ae!==null;){if(g=ae,(g.flags&2048)!==0)switch(g.tag){case 0:case 11:case 15:Pr(9,g,g.return)}var j=g.sibling;if(j!==null){j.return=g.return,ae=j;break e}ae=g.return}}var I=t.current;for(ae=I;ae!==null;){y=ae;var _=y.child;if((y.subtreeFlags&2064)!==0&&_!==null)_.return=y,ae=_;else e:for(y=I;ae!==null;){if(R=ae,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:Bo(9,R)}}catch(pe){qe(R,R.return,pe)}if(R===y){ae=null;break e}var J=R.sibling;if(J!==null){J.return=R.return,ae=J;break e}ae=R.return}}if(Ne=c,Hn(),nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot(io,t)}catch{}a=!0}return a}finally{Ae=s,$t.transition=i}}return!1}function af(t,i,s){i=_i(s,i),i=Ec(t,i,1),t=jn(t,i,1),i=yt(),t!==null&&(sr(t,1,i),Lt(t,i))}function qe(t,i,s){if(t.tag===3)af(t,t,s);else for(;i!==null;){if(i.tag===3){af(i,t,s);break}else if(i.tag===1){var a=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(_n===null||!_n.has(a))){t=_i(s,t),t=Lc(i,t,1),i=jn(i,t,1),t=yt(),i!==null&&(sr(i,1,t),Lt(i,t));break}}i=i.return}}function Am(t,i,s){var a=t.pingCache;a!==null&&a.delete(i),i=yt(),t.pingedLanes|=t.suspendedLanes&s,st===t&&(dt&s)===s&&(nt===4||nt===3&&(dt&130023424)===dt&&500>Xe()-ua?di(t,0):aa|=s),Lt(t,i)}function uf(t,i){i===0&&((t.mode&1)===0?i=1:(i=oo,oo<<=1,(oo&130023424)===0&&(oo=4194304)));var s=yt();t=gn(t,i),t!==null&&(sr(t,i,s),Lt(t,s))}function Pm(t){var i=t.memoizedState,s=0;i!==null&&(s=i.retryLane),uf(t,s)}function Im(t,i){var s=0;switch(t.tag){case 13:var a=t.stateNode,c=t.memoizedState;c!==null&&(s=c.retryLane);break;case 19:a=t.stateNode;break;default:throw Error(r(314))}a!==null&&a.delete(i),uf(t,s)}var df;df=function(t,i,s){if(t!==null)if(t.memoizedProps!==i.pendingProps||wt.current)bt=!0;else{if((t.lanes&s)===0&&(i.flags&128)===0)return bt=!1,Sm(t,i,s);bt=(t.flags&131072)!==0}else bt=!1,_e&&(i.flags&1048576)!==0&&Ud(i,To,i.index);switch(i.lanes=0,i.tag){case 2:var a=i.type;Vo(t,i),t=i.pendingProps;var c=Ai(i,ft.current);ji(i,s),c=_l(null,i,a,t,c,s);var g=$l();return i.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,Ct(a)?(g=!0,Eo(i)):g=!1,i.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,Pl(i),c.updater=$o,i.stateNode=c,c._reactInternals=i,Gl(i,a,t,s),i=Yl(null,i,a,!0,g,s)):(i.tag=0,_e&&g&&Cl(i),vt(null,i,c,s),i=i.child),i;case 16:a=i.elementType;e:{switch(Vo(t,i),t=i.pendingProps,c=a._init,a=c(a._payload),i.type=a,c=i.tag=Hm(a),t=Xt(a,t),c){case 0:i=Ql(null,i,a,t,s);break e;case 1:i=zc(null,i,a,t,s);break e;case 11:i=Nc(null,i,a,t,s);break e;case 14:i=Mc(null,i,a,Xt(a.type,t),s);break e}throw Error(r(306,a,""))}return i;case 0:return a=i.type,c=i.pendingProps,c=i.elementType===a?c:Xt(a,c),Ql(t,i,a,c,s);case 1:return a=i.type,c=i.pendingProps,c=i.elementType===a?c:Xt(a,c),zc(t,i,a,c,s);case 3:e:{if(Hc(i),t===null)throw Error(r(387));a=i.pendingProps,g=i.memoizedState,c=g.element,Yd(t,i),Io(i,a,null,s);var y=i.memoizedState;if(a=y.element,g.isDehydrated)if(g={element:a,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){c=_i(Error(r(423)),i),i=Oc(t,i,a,s,c);break e}else if(a!==c){c=_i(Error(r(424)),i),i=Oc(t,i,a,s,c);break e}else for(Pt=Pn(i.stateNode.containerInfo.firstChild),At=i,_e=!0,Gt=null,s=Kd(i,null,a,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(zi(),a===c){i=vn(t,i,s);break e}vt(t,i,a,s)}i=i.child}return i;case 5:return ec(i),t===null&&Ll(i),a=i.type,c=i.pendingProps,g=t!==null?t.memoizedProps:null,y=c.children,vl(a,c)?y=null:g!==null&&vl(a,g)&&(i.flags|=32),Ic(t,i),vt(t,i,y,s),i.child;case 6:return t===null&&Ll(i),null;case 13:return jc(t,i,s);case 4:return Il(i,i.stateNode.containerInfo),a=i.pendingProps,t===null?i.child=Hi(i,null,a,s):vt(t,i,a,s),i.child;case 11:return a=i.type,c=i.pendingProps,c=i.elementType===a?c:Xt(a,c),Nc(t,i,a,c,s);case 7:return vt(t,i,i.pendingProps,s),i.child;case 8:return vt(t,i,i.pendingProps.children,s),i.child;case 12:return vt(t,i,i.pendingProps.children,s),i.child;case 10:e:{if(a=i.type._context,c=i.pendingProps,g=i.memoizedProps,y=c.value,Oe(Mo,a._currentValue),a._currentValue=y,g!==null)if(qt(g.value,y)){if(g.children===c.children&&!wt.current){i=vn(t,i,s);break e}}else for(g=i.child,g!==null&&(g.return=i);g!==null;){var R=g.dependencies;if(R!==null){y=g.child;for(var P=R.firstContext;P!==null;){if(P.context===a){if(g.tag===1){P=mn(-1,s&-s),P.tag=2;var $=g.updateQueue;if($!==null){$=$.shared;var Q=$.pending;Q===null?P.next=P:(P.next=Q.next,Q.next=P),$.pending=P}}g.lanes|=s,P=g.alternate,P!==null&&(P.lanes|=s),Ml(g.return,s,i),R.lanes|=s;break}P=P.next}}else if(g.tag===10)y=g.type===i.type?null:g.child;else if(g.tag===18){if(y=g.return,y===null)throw Error(r(341));y.lanes|=s,R=y.alternate,R!==null&&(R.lanes|=s),Ml(y,s,i),y=g.sibling}else y=g.child;if(y!==null)y.return=g;else for(y=g;y!==null;){if(y===i){y=null;break}if(g=y.sibling,g!==null){g.return=y.return,y=g;break}y=y.return}g=y}vt(t,i,c.children,s),i=i.child}return i;case 9:return c=i.type,a=i.pendingProps.children,ji(i,s),c=Ft(c),a=a(c),i.flags|=1,vt(t,i,a,s),i.child;case 14:return a=i.type,c=Xt(a,i.pendingProps),c=Xt(a.type,c),Mc(t,i,a,c,s);case 15:return Ac(t,i,i.type,i.pendingProps,s);case 17:return a=i.type,c=i.pendingProps,c=i.elementType===a?c:Xt(a,c),Vo(t,i),i.tag=1,Ct(a)?(t=!0,Eo(i)):t=!1,ji(i,s),Cc(i,a,c),Gl(i,a,c,s),Yl(null,i,a,!0,t,s);case 19:return _c(t,i,s);case 22:return Pc(t,i,s)}throw Error(r(156,i.tag))};function cf(t,i){return Vu(t,i)}function zm(t,i,s,a){this.tag=t,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ut(t,i,s,a){return new zm(t,i,s,a)}function va(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Hm(t){if(typeof t=="function")return va(t)?1:0;if(t!=null){if(t=t.$$typeof,t===K)return 11;if(t===ye)return 14}return 2}function Wn(t,i){var s=t.alternate;return s===null?(s=Ut(t.tag,i,t.key,t.mode),s.elementType=t.elementType,s.type=t.type,s.stateNode=t.stateNode,s.alternate=t,t.alternate=s):(s.pendingProps=i,s.type=t.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=t.flags&14680064,s.childLanes=t.childLanes,s.lanes=t.lanes,s.child=t.child,s.memoizedProps=t.memoizedProps,s.memoizedState=t.memoizedState,s.updateQueue=t.updateQueue,i=t.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=t.sibling,s.index=t.index,s.ref=t.ref,s}function es(t,i,s,a,c,g){var y=2;if(a=t,typeof t=="function")va(t)&&(y=1);else if(typeof t=="string")y=5;else e:switch(t){case N:return fi(s.children,c,g,i);case z:y=8,c|=8;break;case G:return t=Ut(12,s,i,c|2),t.elementType=G,t.lanes=g,t;case B:return t=Ut(13,s,i,c),t.elementType=B,t.lanes=g,t;case ie:return t=Ut(19,s,i,c),t.elementType=ie,t.lanes=g,t;case ee:return ts(s,c,g,i);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case V:y=10;break e;case ue:y=9;break e;case K:y=11;break e;case ye:y=14;break e;case ge:y=16,a=null;break e}throw Error(r(130,t==null?t:typeof t,""))}return i=Ut(y,s,i,c),i.elementType=t,i.type=a,i.lanes=g,i}function fi(t,i,s,a){return t=Ut(7,t,a,i),t.lanes=s,t}function ts(t,i,s,a){return t=Ut(22,t,a,i),t.elementType=ee,t.lanes=s,t.stateNode={isHidden:!1},t}function ya(t,i,s){return t=Ut(6,t,null,i),t.lanes=s,t}function xa(t,i,s){return i=Ut(4,t.children!==null?t.children:[],t.key,i),i.lanes=s,i.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},i}function Om(t,i,s,a,c){this.tag=i,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=qs(0),this.expirationTimes=qs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qs(0),this.identifierPrefix=a,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function ka(t,i,s,a,c,g,y,R,P){return t=new Om(t,i,s,R,P),i===1?(i=1,g===!0&&(i|=8)):i=0,g=Ut(3,null,null,i),t.current=g,g.stateNode=t,g.memoizedState={element:a,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pl(g),t}function jm(t,i,s){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:F,key:a==null?null:""+a,children:t,containerInfo:i,implementation:s}}function ff(t){if(!t)return zn;t=t._reactInternals;e:{if(ei(t)!==t||t.tag!==1)throw Error(r(170));var i=t;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(Ct(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(r(171))}if(t.tag===1){var s=t.type;if(Ct(s))return Fd(t,s,i)}return i}function hf(t,i,s,a,c,g,y,R,P){return t=ka(s,a,!0,t,c,g,y,R,P),t.context=ff(null),s=t.current,a=yt(),c=Un(s),g=mn(a,c),g.callback=i??null,jn(s,g,c),t.current.lanes=c,sr(t,c,a),Lt(t,a),t}function ns(t,i,s,a){var c=i.current,g=yt(),y=Un(c);return s=ff(s),i.context===null?i.context=s:i.pendingContext=s,i=mn(g,y),i.payload={element:t},a=a===void 0?null:a,a!==null&&(i.callback=a),t=jn(c,i,y),t!==null&&(Yt(t,c,y,g),Po(t,c,y)),y}function is(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function pf(t,i){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var s=t.retryLane;t.retryLane=s!==0&&s<i?s:i}}function Sa(t,i){pf(t,i),(t=t.alternate)&&pf(t,i)}function Fm(){return null}var gf=typeof reportError=="function"?reportError:function(t){console.error(t)};function wa(t){this._internalRoot=t}rs.prototype.render=wa.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw Error(r(409));ns(t,i,null,null)},rs.prototype.unmount=wa.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;ui(function(){ns(null,t,null,null)}),i[cn]=null}};function rs(t){this._internalRoot=t}rs.prototype.unstable_scheduleHydration=function(t){if(t){var i=Yu();t={blockedOn:null,target:t,priority:i};for(var s=0;s<Nn.length&&i!==0&&i<Nn[s].priority;s++);Nn.splice(s,0,t),s===0&&ed(t)}};function Ca(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function os(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function mf(){}function _m(t,i,s,a,c){if(c){if(typeof a=="function"){var g=a;a=function(){var $=is(y);g.call($)}}var y=hf(i,a,t,0,null,!1,!1,"",mf);return t._reactRootContainer=y,t[cn]=y.current,kr(t.nodeType===8?t.parentNode:t),ui(),y}for(;c=t.lastChild;)t.removeChild(c);if(typeof a=="function"){var R=a;a=function(){var $=is(P);R.call($)}}var P=ka(t,0,!1,null,null,!1,!1,"",mf);return t._reactRootContainer=P,t[cn]=P.current,kr(t.nodeType===8?t.parentNode:t),ui(function(){ns(i,P,s,a)}),P}function ss(t,i,s,a,c){var g=s._reactRootContainer;if(g){var y=g;if(typeof c=="function"){var R=c;c=function(){var P=is(y);R.call(P)}}ns(i,y,t,c)}else y=_m(s,i,t,c,a);return is(y)}Ku=function(t){switch(t.tag){case 3:var i=t.stateNode;if(i.current.memoizedState.isDehydrated){var s=or(i.pendingLanes);s!==0&&(Gs(i,s|1),Lt(i,Xe()),(Ne&6)===0&&(Vi=Xe()+500,Hn()))}break;case 13:ui(function(){var a=gn(t,1);if(a!==null){var c=yt();Yt(a,t,1,c)}}),Sa(t,1)}},Xs=function(t){if(t.tag===13){var i=gn(t,134217728);if(i!==null){var s=yt();Yt(i,t,134217728,s)}Sa(t,134217728)}},Qu=function(t){if(t.tag===13){var i=Un(t),s=gn(t,i);if(s!==null){var a=yt();Yt(s,t,i,a)}Sa(t,i)}},Yu=function(){return Ae},Zu=function(t,i){var s=Ae;try{return Ae=t,i()}finally{Ae=s}},_s=function(t,i,s){switch(i){case"input":if(Ge(t,s),i=s.name,s.type==="radio"&&i!=null){for(s=t;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<s.length;i++){var a=s[i];if(a!==t&&a.form===t.form){var c=Co(a);if(!c)throw Error(r(90));Je(a),Ge(a,c)}}}break;case"textarea":Yr(t,s);break;case"select":i=s.value,i!=null&&Be(t,!!s.multiple,i,!1)}},Hu=pa,Ou=ui;var $m={usingClientEntryPoint:!1,Events:[Cr,Ni,Co,Iu,zu,pa]},Or={findFiberByHostInstance:ti,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Um={bundleType:Or.bundleType,version:Or.version,rendererPackageName:Or.rendererPackageName,rendererConfig:Or.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=$u(t),t===null?null:t.stateNode},findFiberByHostInstance:Or.findFiberByHostInstance||Fm,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ls=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ls.isDisabled&&ls.supportsFiber)try{io=ls.inject(Um),nn=ls}catch{}}return Rt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$m,Rt.createPortal=function(t,i){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ca(i))throw Error(r(200));return jm(t,i,null,s)},Rt.createRoot=function(t,i){if(!Ca(t))throw Error(r(299));var s=!1,a="",c=gf;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(a=i.identifierPrefix),i.onRecoverableError!==void 0&&(c=i.onRecoverableError)),i=ka(t,1,!1,null,null,s,!1,a,c),t[cn]=i.current,kr(t.nodeType===8?t.parentNode:t),new wa(i)},Rt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var i=t._reactInternals;if(i===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=$u(i),t=t===null?null:t.stateNode,t},Rt.flushSync=function(t){return ui(t)},Rt.hydrate=function(t,i,s){if(!os(i))throw Error(r(200));return ss(null,t,i,!0,s)},Rt.hydrateRoot=function(t,i,s){if(!Ca(t))throw Error(r(405));var a=s!=null&&s.hydratedSources||null,c=!1,g="",y=gf;if(s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(g=s.identifierPrefix),s.onRecoverableError!==void 0&&(y=s.onRecoverableError)),i=hf(i,null,t,1,s??null,c,!1,g,y),t[cn]=i.current,kr(t),a)for(t=0;t<a.length;t++)s=a[t],c=s._getVersion,c=c(s._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[s,c]:i.mutableSourceEagerHydrationData.push(s,c);return new rs(i)},Rt.render=function(t,i,s){if(!os(i))throw Error(r(200));return ss(null,t,i,!1,s)},Rt.unmountComponentAtNode=function(t){if(!os(t))throw Error(r(40));return t._reactRootContainer?(ui(function(){ss(null,null,t,!1,function(){t._reactRootContainer=null,t[cn]=null})}),!0):!1},Rt.unstable_batchedUpdates=pa,Rt.unstable_renderSubtreeIntoContainer=function(t,i,s,a){if(!os(s))throw Error(r(200));if(t==null||t._reactInternals===void 0)throw Error(r(38));return ss(t,i,s,!1,a)},Rt.version="18.3.1-next-f1338f8080-20240426",Rt}var Lf;function zh(){if(Lf)return La.exports;Lf=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(),La.exports=i0(),La.exports}var Rf;function r0(){if(Rf)return as;Rf=1;var e=zh();return as.createRoot=e.createRoot,as.hydrateRoot=e.hydrateRoot,as}var o0=r0();function us(e){const n=q.useRef(e);return q.useInsertionEffect(()=>void(n.current=e)),q.useCallback((...r)=>n.current(...r),[])}const s0=q.createContext(void 0);function l0(){return q.useContext(s0)}const a0={position:"absolute",top:0,bottom:0,textAlign:"center",whiteSpace:"normal",touchAction:"none"},u0={display:"contents"};function Tf(){return null}const Hh="diffs-container";(()=>{try{return!1}catch{return!1}})();const d0=/(?=^From [a-f0-9]+ .+$)/m,Oh=/(?=^diff --git)/gm,c0=new RegExp("(?<=\\n)"),f0=/^(---|\+\+\+)\s+([^\t\r\n]+)/,h0=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,jh="header-prefix",Fh="header-filename-suffix",_h="header-metadata",xu="header-custom",Cn={dark:"pierre-dark",light:"pierre-light"},p0="data-theme-css",g0="data-unsafe-css",m0="data-diffs-scrollbar-measure",$h="--diffs-scrollbar-gutter-measured",v0=1e5,ku={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,spacing:8};({...ku});const y0=Object.freeze({fromStart:0,fromEnd:0}),Df={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},Uh=Object.freeze([]),x0={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function pi(e){return`annotation-${"side"in e?`${e.side}-`:""}${e.lineNumber}`}function k0({hunkIndex:e,lineIndex:n,conflictIndex:r}){return`merge-conflict-action-${e}-${n}-${r}`}function Vt(e,n){return e-(n===0?0:1)}function Tt(e,n){return Vt(e,n)+n}function S0(e,n){const r=n.hunks[e.hunkIndex];if(r!=null)return{hunkIndex:e.hunkIndex,lineIndex:w0(r,e.startContentIndex)}}function w0(e,n){let r=e.unifiedLineStart;for(let o=0;o<n;o++){const l=e.hunkContent[o];r+=l.type==="context"?l.lines:l.deletions+l.additions}return r}function C0({fileDiff:e,actions:n,renderCustomHeader:r,renderHeaderPrefix:o,renderHeaderFilenameSuffix:l,renderHeaderMetadata:u,renderAnnotation:d,renderGutterUtility:h,renderMergeConflictUtility:f,lineAnnotations:p,getHoveredLine:m,getInstance:v,getAnnotationSlotName:k=pi}){const x=r==null?void 0:r(e),S=o==null?void 0:o(e),C=l==null?void 0:l(e),E=u==null?void 0:u(e);return T.jsxs(T.Fragment,{children:[x!=null?T.jsx("div",{slot:xu,children:x}):T.jsxs(T.Fragment,{children:[S!=null&&T.jsx("div",{slot:"header-prefix",children:S}),C!=null&&T.jsx("div",{slot:"header-filename-suffix",children:C}),E!=null&&T.jsx("div",{slot:"header-metadata",children:E})]}),d!=null&&(p==null?void 0:p.map((A,w)=>T.jsx("div",{slot:k(A),children:d(A,e)},w))),n!=null&&f!=null&&v!=null&&n.map(A=>{if(A==null)return;const w=b0(A,e);return T.jsx("div",{slot:w,style:u0,children:f(A,v)},w)}),h!=null&&T.jsx("div",{slot:"gutter-utility-slot",style:a0,children:h(m)})]})}function b0(e,n){const r=S0(e,n);return r!=null?k0({hunkIndex:r.hunkIndex,lineIndex:r.lineIndex,conflictIndex:e.conflictIndex}):void 0}let Xn,Qa=0;var Ns=class extends Error{constructor(){super("Highlighter is disposed"),this.name="HighlighterDisposedError"}};function E0(){return Xn}function Su(e){return e??Xn??"shiki-js"}function L0(e){if(Xn!=null&&Xn!==e)throw new Error(`Cannot load the "${e}" highlighter while "${Xn}" is in use. Only one highlighter type can be active at a time; dispose every "${Xn}" instance (disposeHighlighter() disposes the shared one) before switching.`)}function R0(e){L0(e),Xn=e,Qa++}function T0(){Qa--,Qa===0&&(Xn=void 0)}function wu(e=Cn){const n=[];return typeof e=="string"?n.push(e):(n.push(e.dark),n.push(e.light)),n}const OS=new Map,jS=new Map,FS=new Map,D0=new Set;function N0(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function Cu(e){let n;return()=>n??(n=e().then(r=>(n=r,r),r=>{throw n=void 0,r}))}function M0(e){return e!==null&&typeof e=="object"&&"default"in e?e.default:e}var A0=class extends Error{constructor(e){super(`Theme "${e}" is already registered`),this.name="DuplicateThemeError"}},Nf=class extends Error{constructor(e){super(`No loader registered for theme "${e}"`),this.name="UnregisteredThemeError"}},P0=class extends Error{constructor(e){super(`Theme "${e}" has not been resolved`),this.name="UnresolvedThemeError"}};function I0(e={}){const n=new Map,r=new Map,o=new Map;let l=0;function u(w,L){if(n.has(w))throw new A0(w);n.set(w,L)}function d(w,L){return n.has(w)?!1:(n.set(w,L),!0)}function h(w){return n.has(w)}function f(w){const L=r.get(w);if(L!==void 0)return Promise.resolve(L);const b=o.get(w);if(b!==void 0)return b;const D=n.get(w);if(D===void 0&&e.fallbackLoader===void 0)return Promise.reject(new Nf(w));const F=l,N=Promise.resolve().then(()=>{var z;return D!==void 0?D():(z=e.fallbackLoader)==null?void 0:z.call(e,w)}).then(async z=>{if(z===void 0)throw new Nf(w);const G=M0(z),V=e.normalizeTheme===void 0?G:await e.normalizeTheme(G,w);return F===l&&r.set(w,V),o.get(w)===N&&o.delete(w),V}).catch(z=>{throw o.get(w)===N&&o.delete(w),z});return o.set(w,N),N}function p(w){return Promise.all(w.map(L=>f(L)))}function m(w,L){r.set(w,L)}function v(w){for(const[L,b]of w)m(L,b)}function k(w){return r.get(w)}function x(w){const L=[];for(const b of w){const D=r.get(b);if(D===void 0)throw new P0(b);L.push(D)}return L}function S(w){return r.has(w)}function C(w){for(const L of w)if(!r.has(L))return!1;return!0}function E(w){const L=r.get(w);return L!==void 0?L:f(w)}function A(){l++,r.clear(),o.clear()}return{clearResolvedThemes:A,getResolvedOrResolveTheme:E,getResolvedTheme:k,getResolvedThemes:x,hasRegisteredTheme:h,hasResolvedTheme:S,hasResolvedThemes:C,registerTheme:u,registerThemeIfAbsent:d,resolveTheme:f,resolveThemes:p,seedResolvedTheme:m,seedResolvedThemes:v}}const z0=new Map,Mf=new Map,H0=Cu(()=>Ji(()=>import("./loader-CTWdTgVc.js"),[])),O0=Cu(()=>Ji(()=>import("./themes-ChlupUkw.js"),[])),j0=Cu(()=>Ji(()=>import("./core-CNrdLTJr.js").then(e=>e.b),[])),F0=[["editor.lineHighlightBackground","editor.active_line.background"],["editor.selectionBackground","element.selected"],["editor.findMatchBackground","search.match_background"],["editor.findMatchHighlightBackground","search.match_background"],["editorBracketMatch.background","editor.document_highlight.bracket_background"],["editorError.foreground","error"],["editorWarning.foreground","warning"],["editorInfo.foreground","info"],["editorHint.foreground","hint"],["gitDecoration.addedResourceForeground","created","terminal.ansi.green"],["gitDecoration.deletedResourceForeground","deleted","terminal.ansi.red"],["gitDecoration.modifiedResourceForeground","modified","terminal.ansi.blue"]];function Af(e,n){var h;const r="themes"in n?n.themes[0]:n;if(r==null)throw new Error(`Theme "${e}" is an empty Zed theme family.`);const o={...r,name:e},l={};for(const[f,p]of Object.entries(o.style))typeof p=="string"&&(l[f]=p);const u=(h=o.style.players)==null?void 0:h[0];(u==null?void 0:u.cursor)!=null&&(l["editorCursor.foreground"]??(l["editorCursor.foreground"]=u.cursor)),(u==null?void 0:u.selection)!=null&&(l["editor.selectionBackground"]??(l["editor.selectionBackground"]=u.selection));for(const[f,...p]of F0){if(l[f]!=null)continue;const m=p.find(v=>l[v]!=null);m!=null&&(l[f]=l[m])}if(o.cssVariables===!0)l["editor.foreground"]="var(--hls-foreground)",l["editor.background"]="var(--hls-background)";else if(typeof o.cssVariables=="object"){l["editor.foreground"]??(l["editor.foreground"]=l.text??l.foreground??"foreground"),l["editor.background"]??(l["editor.background"]=l.background??"background");const{prefix:f="--hls-",defaults:p}=o.cssVariables;for(const[m,v]of Object.entries(l)){const k=p==null?void 0:p[v];l[m]=`var(${f}${v}${k?`, ${k}`:""})`}}const d=o.appearance==="light"?"light":"dark";return{name:e,type:d,colors:l,zed:o,fg:l["editor.foreground"]??l.text??l.foreground??(d==="light"?"#333333":"#bbbbbb"),bg:l["editor.background"]??l.background??(d==="light"?"#ffffff":"#1e1e1e")}}function _0(e){let n=Mf.get(e);return n!=null||(n=I0({fallbackLoader:async r=>{if(typeof __DIFFS_WORKER__<"u"?__DIFFS_WORKER__:N0())throw new Error(`Theme "${r}" cannot be resolved from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedThemes parameter.`);const o=z0.get(r);if(e==="highlights"){const l=(o==null?void 0:o.zed)??(o==null?void 0:o.diffs);if(l!=null){const f=await l(),p="default"in f?f.default:f;if("zed"in p&&p.zed!=null)return p;if("style"in p||"themes"in p)return Af(r,p);throw new Error(`Theme "${r}" is a TextMate theme; register a Zed theme with registerCustomTheme(name, loader, 'zed') for Highlights.`)}const u=H0(),{themes:d}=u instanceof Promise?await u:u,h=d[r];if(h!=null)return Af(r,(await h()).default);if((o==null?void 0:o.textmate)!=null)throw new Error(`Theme "${r}" is only registered for TextMate; use registerCustomTheme(name, loader, 'zed') for Highlights.`)}else{const l=(o==null?void 0:o.textmate)??(o==null?void 0:o.diffs);let u;if(l!=null){const m=await l();u="default"in m?m.default:m}else{const m=O0(),{themes:v}=m instanceof Promise?await m:m,k=v.getTheme(r);if(k==null&&(o==null?void 0:o.zed)!=null)throw new Error(`Theme "${r}" is only registered for Zed; use registerCustomTheme(name, loader, 'textmate') for Shiki.`);if(k==null)throw new Error(`No valid theme loader registered for "${r}"`);const x=await k.load();u="default"in x?x.default:x}if("style"in u||"themes"in u)throw new Error(`Theme "${r}" is a Zed theme; use preferredHighlighter: 'highlights' or register a TextMate theme for Shiki.`);const d=j0(),{normalizeTheme:h,createCssVariablesTheme:f}=d instanceof Promise?await d:d;if("cssVariables"in u&&u.cssVariables!=null)return{...u,textmate:h(f(u.cssVariables))};if("textmate"in u&&u.textmate!=null)return{...u,textmate:h(u.textmate)};const p=h(u);return{name:p.name,type:p.type,fg:p.fg,bg:p.bg,colors:p.colors,textmate:p}}throw new Error(`No valid theme loader registered for "${r}"`)},normalizeTheme:(r,o)=>{if(r.name!==o)throw new Error(`resolvedTheme: themeName: ${o} does not match theme.name: ${r.name}`);return r}}),Mf.set(e,n)),n}function Ya(e,n=Su()){return typeof n!="string"&&n.isDisposed?!1:(typeof n=="string"?_0(n):n.themeResolver).hasResolvedThemes(wu(e))}let un;async function $0(e){const n=Su(e);R0(n);try{if(n==="highlights"){const{HighlightsHighlighter:o}=await Ji(async()=>{const{HighlightsHighlighter:l}=await import("./highlights-CpYWOIDl.js");return{HighlightsHighlighter:l}},__vite__mapDeps([0,1]));return new o}const{ShikiHighlighter:r}=await Ji(async()=>{const{ShikiHighlighter:o}=await import("./shiki-CpXFjX6z.js");return{ShikiHighlighter:o}},__vite__mapDeps([2,1,3]));return await r.create(n)}finally{T0()}}async function Vh({themes:e,langs:n,preferredHighlighter:r}){Wh();const o=un??(un=$0(E0()??r));let l;try{l=await o}catch(u){throw un===o&&(un=void 0),u}if(un===o&&(un=l),await Promise.all([l.themeResolver.resolveThemes(e),l.loadLanguages(n)]),l.isDisposed)throw new Ns;return l}function Wh(){un!=null&&!("then"in un)&&un.isDisposed&&(un=void 0)}function Xi({theme:e,lang:n,langs:r}={}){Wh();const o=un;if(!(o==null||"then"in o||e!=null&&!Ya(e,o)||(n!=null||r!=null)&&!o.hasLoadedLanguages([...n!=null?[n]:[],...r??[]])))return o}function bu(e,n){return e==null||n==null||typeof e=="string"||typeof n=="string"?e===n:e.dark===n.dark&&e.light===n.light}function Pf(e,n){const r=Array.isArray(e)?e:[e];return n!=null?n.hasLoadedLanguages(r):r.every(o=>o==="text"||o==="ansi"||D0.has(o))}const Bi=new Map,qi={"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",odin:"odin",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",BUCK:"python",BUILD:"python",PACKAGE:"python",WORKSPACE:"python",Tiltfile:"python",bazel:"python",bxl:"python",bzl:"python",bzlmod:"python",star:"python",sky:"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",jbuilder:"ruby",builder:"ruby",rabl:"ruby",arb:"ruby",ru:"ruby",podspec:"ruby",Gemfile:"ruby",Rakefile:"ruby",Guardfile:"ruby",Capfile:"ruby",Berksfile:"ruby",Brewfile:"ruby",Vagrantfile:"ruby",Thorfile:"ruby",Appraisals:"ruby",Dangerfile:"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",mts:"typescript",cts:"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 Qn(e){const n=If(e);if(n!=null)return n;const r=e.split(/[/\\]/).pop()??e;return r===e?"text":If(r)??"text"}function If(e){var o;if(Bi.has(e))return Bi.get(e)??"text";if(Object.hasOwn(qi,e))return qi[e]??null;const n=e.match(/\.([^/\\]+\.[^/\\]+)$/);if(n!=null){if(Bi.has(n[1]))return Bi.get(n[1])??"text";if(Object.hasOwn(qi,n[1]))return qi[n[1]]??"text"}const r=((o=e.match(/\.([^.]+)$/))==null?void 0:o[1])??"";return Bi.has(r)?Bi.get(r)??"text":Object.hasOwn(qi,r)?qi[r]??"text":null}function U0(e,n){for(const r of n)e.push(r)}function Jt(e){return`--${e==="token"?"diffs-token":"diffs"}-`}const V0=/^#(?:[0-9a-f]{3}0|[0-9a-f]{6}00)$/i,W0=/^0(?:\.0+)?%?$/;function B0(e){var u;const n=e.indexOf("(");if(n<=0||!e.endsWith(")"))return;const r=e.slice(0,n).trim();if(!/^(?:rgb|rgba|hsl|hsla|hwb|lab|lch|oklab|oklch|color)$/i.test(r))return;const o=e.slice(n+1,-1).trim();if(o.length===0)return;const l=o.lastIndexOf("/");if(l!==-1)return o.slice(l+1).trim();if(/^(?:rgba|hsla)$/i.test(r)){const d=o.split(",");if(d.length===4)return(u=d[3])==null?void 0:u.trim()}}function q0(e){const n=/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})\b/i.exec(e.trim());if(n==null)return null;const r=n[1];let o,l=1;return r.length===3?o=r.split("").map(u=>u+u).join(""):r.length===6?o=r:(o=r.slice(0,6),l=parseInt(r.slice(6,8),16)/255),[parseInt(o.slice(0,2),16),parseInt(o.slice(2,4),16),parseInt(o.slice(4,6),16),l]}function Da(e){if(e==null)return null;const n=q0(e);if(n==null)return null;const r=n[0]/255,o=n[1]/255,l=n[2]/255,u=d=>d<=.03928?d/12.92:((d+.055)/1.055)**2.4;return .2126*u(r)+.7152*u(o)+.0722*u(l)}function zf(e){if(e==null)return!1;const n=e.trim().toLowerCase();if(n==="transparent"||V0.test(n))return!0;const r=B0(n);return r!=null&&W0.test(r)}function G0(e,n,r){if(n==null||r==null)return!1;const o=Da(e),l=Da(n),u=Da(r);return o==null||l==null||u==null?!1:Math.abs(o-u)<Math.abs(o-l)}const Hf=new WeakMap;function X0(e){const n=Hf.get(e);if(n!=null)return n;const r=e.colors??{},o={...r},l=r["editor.background"]??e.bg,u=r["editor.foreground"]??e.fg,d=r["sideBar.background"]??l,h=r["sideBar.foreground"]??u;an(o,"editor.background",l),an(o,"editor.foreground",u),an(o,"sideBar.background",d),an(o,"sideBar.foreground",h),an(o,"input.background",r["input.background"]??d),an(o,"sideBarSectionHeader.foreground",r["sideBarSectionHeader.foreground"]??h),an(o,"list.activeSelectionForeground",r["list.activeSelectionForeground"]??h),an(o,"gitDecoration.addedResourceForeground",Na(r["gitDecoration.addedResourceForeground"],r["terminal.ansiGreen"],r["editorGutter.addedBackground"])),an(o,"gitDecoration.modifiedResourceForeground",Na(r["gitDecoration.modifiedResourceForeground"],r["terminal.ansiBlue"],r["editorGutter.modifiedBackground"])),an(o,"gitDecoration.deletedResourceForeground",Na(r["gitDecoration.deletedResourceForeground"],r["terminal.ansiRed"],r["editorGutter.deletedBackground"]));const f=(zf(r["list.focusOutline"])?void 0:r["list.focusOutline"])??(zf(r.focusBorder)?void 0:r.focusBorder);f!=null?o["list.focusOutline"]=f:delete o["list.focusOutline"];const p=r["list.hoverBackground"];p!=null&&(K0(p,d)||G0(p,d,h))&&delete o["list.hoverBackground"];const m=Object.freeze({...e,colors:Object.freeze(o)});return Hf.set(e,m),m}function an(e,n,r){r!=null&&r!==""&&(e[n]=r)}function Na(...e){for(const n of e)if(n!=null&&n!=="")return n}function K0(e,n){return n!=null&&e.toLowerCase()===n.toLowerCase()}function Q0({theme:e=Cn,highlighter:n,prefix:r}){let o="";if(typeof e=="string"){const l=n.getTheme(e),u=Ma(l,n);o+=`color:${u.fg};`,o+=`background-color:${u.bg};`,o+=`${Jt("global")}fg:${u.fg};`,o+=`${Jt("global")}bg:${u.bg};`,o+=Aa(l,r)}else{let l=n.getTheme(e.dark),u=Ma(l,n);o+=`${Jt("global")}dark:${u.fg};`,o+=`${Jt("global")}dark-bg:${u.bg};`,o+=Aa(l,"dark"),l=n.getTheme(e.light),u=Ma(l,n),o+=`${Jt("global")}light:${u.fg};`,o+=`${Jt("global")}light-bg:${u.bg};`,o+=Aa(l,"light")}return o}function Ma(e,n){var r;if(n.name==="highlights"&&((r=e.zed)==null?void 0:r.cssVariables)===!0){const o=Jt("token");return{fg:`var(${o}foreground)`,bg:`var(${o}background)`}}return X0(e)}function Aa(e,n){var d,h,f,p,m,v;n=n!=null?`${n}-`:"";let r="";const o=((d=e.colors)==null?void 0:d["gitDecoration.addedResourceForeground"])??((h=e.colors)==null?void 0:h["terminal.ansiGreen"]);o!=null&&(r+=`${Jt("global")}${n}addition-color:${o};`);const l=((f=e.colors)==null?void 0:f["gitDecoration.deletedResourceForeground"])??((p=e.colors)==null?void 0:p["terminal.ansiRed"]);l!=null&&(r+=`${Jt("global")}${n}deletion-color:${l};`);const u=((m=e.colors)==null?void 0:m["gitDecoration.modifiedResourceForeground"])??((v=e.colors)==null?void 0:v["terminal.ansiBlue"]);return u!=null&&(r+=`${Jt("global")}${n}modified-color:${u};`),r}function Y0(e,n,r){return{lang:e,...typeof n=="string"?{theme:n}:{themes:n},defaultColor:!1,cssVariablePrefix:Jt("token"),tokenizeMaxLineLength:r,tokenizeTimeLimit:0}}function dn(e){return{type:"text",value:e}}function Re({tagName:e,children:n=[],properties:r={}}){return{type:"element",tagName:e,properties:r,children:n}}function Ms({name:e,width:n=16,height:r=16,properties:o}){return Re({tagName:"svg",properties:{width:n,height:r,viewBox:"0 0 16 16",...o},children:[Re({tagName:"use",properties:{href:`#${e.replace(/^#/,"")}`}})]})}function ds(e){return Re({tagName:"div",properties:{"data-gutter":""},children:e})}function Z0(e,n,r,o={}){return Re({tagName:"div",properties:{"data-line-type":e,"data-column-number":n,"data-line-index":r,...o},children:n!=null?[Re({tagName:"span",properties:{"data-line-number-content":""},children:[dn(`${n}`)]})]:void 0})}function Zt(e,n,r){return Re({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 J0(e,n,r){const o=typeof r.lineInfo=="function"?r.lineInfo(n):r.lineInfo[n-1];if(o==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"]=o.lineNumber,e.properties["data-alt-line"]=o.altLineNumber,e.properties["data-line-type"]=o.type,e.properties["data-line-index"]=o.lineIndex,e.children.length===0&&e.children.push(dn(`
|
|
42
|
+
`)),e}function Bh(e,n,r,{retain:o=!0}={}){let l=!1,u;Object.defineProperty(e,n,{configurable:!0,enumerable:!0,get(){var h;if(l)return u;const d=r();return o?(u=d,l=!0,((h=Object.getOwnPropertyDescriptor(e,n))==null?void 0:h.configurable)===!0&&Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:u}),u):d},set(d){var h;if(((h=Object.getOwnPropertyDescriptor(e,n))==null?void 0:h.configurable)===!0)Object.defineProperty(e,n,{configurable:!0,enumerable:!0,writable:!0,value:d});else{if(Object.isFrozen(e))throw new TypeError(`Cannot assign to read only array index '${n}'`);u=d,l=!0}}})}const Of=new WeakMap;function qh(e,n=!1){const{htmlStyle:r}=e;if(r!=null){let l=n?Of.get(r):void 0;if(l==null){l="";for(const u in r)l+=`${l===""?"":";"}${u}:${r[u]}`;n&&Of.set(r,l)}return l}let o=e.color!=null?`color:${e.color}`:"";if(e.bgColor!=null&&(o+=`;background-color:${e.bgColor}`),e.fontStyle!=null){(e.fontStyle&1)!==0&&(o+=";font-style:italic"),(e.fontStyle&2)!==0&&(o+=";font-weight:bold");const l=(e.fontStyle&4)!==0,u=(e.fontStyle&8)!==0;(l||u)&&(o+=`;text-decoration:${l?"underline":""}${l&&u?" ":""}${u?"line-through":""}`)}return o.replace(/^;/,"")}const cs=Symbol("no-token"),Pa=Symbol("multiple-tokens");function Gh(e){const n=e1(e);if(n!=null)return n;let r=cs;const o=[];let l=[],u;const d=()=>{if(l.length===0||u==null){l=[],u=void 0;return}if(l.length===1){const f=l[0];if((f==null?void 0:f.type)==="element"){t1(f,u);for(const p of f.children)Ls(p)}else Ls(f);o.push(f),l=[],u=void 0;return}for(const f of l)Ls(f);o.push(Re({tagName:"span",properties:{"data-char":u},children:l})),l=[],u=void 0},h=f=>{if(f!==cs){if(f===Pa){r=Pa;return}if(r===cs){r=f;return}r!==f&&(r=Pa)}};for(const f of e.children){const p=f.type==="element"?Gh(f):cs;if(h(p),typeof p!="number"){d(),o.push(f);continue}u!=null&&u!==p&&d(),u??(u=p),l.push(f)}return d(),e.children=o,r}function e1(e){const n=e.properties["data-char"];if(typeof n=="number")return n}function Ls(e){if(e.type==="element"){e.properties["data-char"]=void 0;for(const n of e.children)Ls(n)}}function t1(e,n){e.properties["data-char"]=n}function n1(e,{state:n,lazyLineAST:r=!1,cacheHtmlStyles:o=!1,useTokenTransformer:l=!1,mergeWhitespaces:u="always",decorations:d=[],lineOffsets:h=[]}){let f;for(const v of d){const k=f??(f=new Map),x={...v,start:jf(v.start,h),end:jf(v.end,h)},S=Math.min(x.end.line,e.length-1);for(let C=x.start.line;C<=S;C++){let E=k.get(C);E==null&&k.set(C,E=[]),E.push(x)}}const p=(v,k)=>{let x;if(l||u!=="never"){let A="",w=0;for(let L=0;L<v.length;L++){let b=v[L];if(l){const D=b.content.trim();if(D!==""&&D!==b.content){x??(x=v.slice(0,L));const F=b.content.indexOf(D);F>0&&x.push({content:b.content.slice(0,F),offset:b.offset}),x.push({...b,content:D,offset:b.offset+F});const N=F+D.length;N<b.content.length&&x.push({content:b.content.slice(N),offset:b.offset+N});continue}}else{const D=((b.fontStyle??0)&12)!==0;if(!D&&/^\s+$/.test(b.content)&&L<v.length-1){x??(x=v.slice(0,L)),A===""&&(w=b.offset),A+=b.content;continue}A!==""&&x!=null&&(D?x.push({content:A,offset:w}):b={...b,content:A+b.content,offset:w},A="")}x==null||x.push(b)}}x??(x=v);const S={type:"element",tagName:n==null?"span":"div",properties:n==null?{class:"line"}:{},children:[]},C=f==null?void 0:f.get(k),E=C==null?i1(S,x,l,o):r1(S,x,C,k,l,o);return l&&E===0&&S.children.push({type:"element",tagName:"br",properties:{},children:[]}),l&&C!=null&&Gh(S),n==null?S:J0(S,k+1,n)};if(!r)return e.map(p);const m=new Array(e.length);for(let v=0;v<e.length;v++){const k=e[v];Bh(m,v,()=>p(k,v))}return m}function i1(e,n,r,o){let l=0;for(const u of n)u.content!==""&&(e.children.push(Xh(u,qh(u,o),u.content,l,r)),l+=u.content.length);return l}function r1(e,n,r,o,l,u){var E,A,w;r.length>1&&r.sort((L,b)=>L.start.line!==b.start.line?L.start.line-b.start.line:L.start.character!==b.start.character?L.start.character-b.start.character:L.end.line!==b.end.line?b.end.line-L.end.line:b.end.character-L.end.character);const d=n.reduce((L,b)=>L+b.content.length,0),h=[];for(let L=0;L<r.length;L++){const b=r[L],D={decoration:b,order:L,from:b.start.line===o?b.start.character:0,to:b.end.line===o?b.end.character:d};h.push({position:Math.max(0,Math.min(D.from,d)),range:D,start:!0},{position:Math.max(0,Math.min(D.to,d)),range:D,start:!1})}h.sort((L,b)=>L.position-b.position);const f=[],p=[];let m=0;const v=(L,b)=>{let D=0,F=f.length;for(;D<F;){const N=D+F>>>1;f[N].order<L.order?D=N+1:F=N}b?f.splice(D,0,L):f[D]===L&&f.splice(D,1)},k=()=>{var D;let L=e,b=0;for(const F of f){if(((D=p[b])==null?void 0:D.range)!==F){p.length=b;const N={type:"element",tagName:"span",properties:{...F.decoration.properties},children:[]};L.children.push(N),p.push({range:F,node:N})}L=p[b++].node}return p.length=b,L};let x=e;const S=L=>{var F;const b=m;for(;((F=h[m])==null?void 0:F.position)===L;)m++;let D=!1;for(let N=b;N<m;N++){const{range:z,start:G}=h[N];!G&&z.from!==z.to&&L<d&&v(z,!1)}for(let N=b;N<m;N++){const{range:z,start:G}=h[N];G&&z.from<=L&&z.to>=L&&(z.to>L||z.from===L||L===d)&&(v(z,!0),z.from===z.to&&(D=!0))}if(D){k();for(let N=b;N<m;N++){const{range:z,start:G}=h[N];G&&z.from===z.to&&v(z,!1)}}L<d&&(x=k())};let C=0;for(const L of n){if(L.content==="")continue;const b=C,D=b+L.content.length,F=qh(L,u);for(;C<D;){((E=h[m])==null?void 0:E.position)===C&&S(C);const N=Math.min(D,((A=h[m])==null?void 0:A.position)??D);x.children.push(Xh(L,F,C===b&&N===D?L.content:L.content.slice(C-b,N-b),b,l)),C=N}}return((w=h[m])==null?void 0:w.position)===C&&S(C),C}function Xh(e,n,r,o,l){const u=e.htmlAttrs!=null?{...e.htmlAttrs}:{};return n!==""&&(u.style=n),l&&(u["data-char"]=o),{type:"element",tagName:"span",properties:u,children:[{type:"text",value:r}]}}function jf(e,n){if(typeof e!="number")return e;let r=0,o=n.length;for(;r+1<o;){const l=r+o>>>1;n[l]<=e?r=l:o=l}return{line:r,character:e-(n[r]??0)}}var o1=class extends Error{constructor(){super("WorkerPoolManager: operation canceled because the pool terminated"),this.name="WorkerPoolTerminatedError"}},s1=class extends Error{constructor(){super("WorkerPoolManager: operation canceled before the task completed"),this.name="WorkerPoolTaskCanceledError"}},l1=class extends Error{constructor(e,n){super(e,n),this.name="WorkerPoolWorkerError"}};const a1=new WeakSet;function u1(e){return e instanceof o1||e instanceof s1}function Kh(e){return u1(e)||e instanceof l1&&a1.has(e)}function ze(e,n){return(e==null?void 0:e.cacheKey)!=null||(n==null?void 0:n.cacheKey)!=null?(e==null?void 0:e.cacheKey)===(n==null?void 0:n.cacheKey):e===n}function Qh(e,n){return(e==null?void 0:e.cacheKey)===(n==null?void 0:n.cacheKey)&&(e==null?void 0:e.contents)===(n==null?void 0:n.contents)&&(e==null?void 0:e.name)===(n==null?void 0:n.name)&&(e==null?void 0:e.lang)===(n==null?void 0:n.lang)}function xn(e,n){return bu(e.theme,n.theme)&&e.useTokenTransformer===n.useTokenTransformer&&e.tokenizeMaxLineLength===n.tokenizeMaxLineLength&&e.lineDiffType===n.lineDiffType&&e.maxLineDiffLength===n.maxLineDiffLength}function Wr(e){const n=e.lang??Qn(e.name),r=e.lang??(e.prevName!=null?Qn(e.prevName):"text");return n==="text"&&r==="text"}function Ia(e){return{...ku,...e}}function Br(e,n){return Za(e,n)+d1(e,n)}function Za(e,n){return n?0:e.diffHeaderHeight}function d1(e,n){return e.paddingTop??(n?e.spacing:0)}function Yh(e){return e.paddingBottom??e.spacing}function c1(e){switch(e){case"simple":return 4;case"metadata":case"line-info":case"line-info-basic":case"custom":return 32}}function Kr(e){return[Vt(e.additionStart,e.additionCount)+1,Tt(e.additionStart,e.additionCount)+1]}function bn({isPartial:e,rangeSize:n,expandedHunks:r,hunkIndex:o,collapsedContextThreshold:l}){const u=Math.max(n,0);if(u===0||e)return{fromStart:0,fromEnd:0,rangeSize:u,collapsedLines:u,renderAll:!1};if(r===!0||u<=l)return{fromStart:u,fromEnd:0,rangeSize:u,collapsedLines:0,renderAll:!0};const d=r==null?void 0:r.get(o),h=Math.min(Math.max((d==null?void 0:d.fromStart)??0,0),u),f=Math.min(Math.max((d==null?void 0:d.fromEnd)??0,0),u),p=h+f,m=p>=u;return{fromStart:m?u:h,fromEnd:m?0:f,rangeSize:u,collapsedLines:Math.max(u-p,0),renderAll:m}}function f1(e){const n=e.hunks[e.hunks.length-1];if(n==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0)return!1;const r=e.additionLines.length-Tt(n.additionStart,n.additionCount),o=e.deletionLines.length-Tt(n.deletionStart,n.deletionCount);return r<=0&&o<=0?!1:r!==o}function Zh({fileDiff:e,errorPrefix:n}){const r=e.hunks[e.hunks.length-1];if(r==null||e.isPartial||e.additionLines.length===0||e.deletionLines.length===0)return 0;const o=e.additionLines.length-Tt(r.additionStart,r.additionCount),l=e.deletionLines.length-Tt(r.deletionStart,r.deletionCount);if(o<=0&&l<=0)return 0;if(o!==l)throw new Error(`${n}: trailing context mismatch (additions=${o}, deletions=${l}) for ${e.name}`);return Math.min(o,l)}function En({fileDiff:e,hunkIndex:n,expandedHunks:r,collapsedContextThreshold:o,errorPrefix:l}){if(n!==e.hunks.length-1)return;const u=Zh({fileDiff:e,errorPrefix:l});if(u<=0)return;if(r===!0||u<=o)return{fromStart:u,fromEnd:0,rangeSize:u,collapsedLines:0,renderAll:!0};const d=r==null?void 0:r.get(e.hunks.length),h=Math.min(Math.max((d==null?void 0:d.fromStart)??0,0),u);return{fromStart:h,fromEnd:0,rangeSize:u,collapsedLines:u-h,renderAll:h>=u}}function Jh({fileDiff:e,lineNumber:n,expandedHunks:r,collapsedContextThreshold:o}){if(r===!0||e.isPartial)return!0;for(const[h,f]of e.hunks.entries()){const[p,m]=Kr(f);if(n<p){const v=bn({isPartial:e.isPartial,rangeSize:f.collapsedBefore,expandedHunks:r,hunkIndex:h,collapsedContextThreshold:o}),k=p-v.rangeSize;return v.renderAll||n<k+v.fromStart||n>=p-v.fromEnd}if(n<m)return!0}const l=En({fileDiff:e,hunkIndex:e.hunks.length-1,expandedHunks:r,collapsedContextThreshold:o,errorPrefix:"isAdditionLineRenderable"});if(l==null||l.renderAll)return!0;const u=e.hunks[e.hunks.length-1],[,d]=Kr(u);return n<d+l.fromStart||n>=d+l.rangeSize}function h1({fileDiff:e,lineNumber:n,direction:r,expandedHunks:o,collapsedContextThreshold:l}){if(o===!0||e.isPartial)return n;const u=[];let d=1;for(const[f,p]of e.hunks.entries()){const[m,v]=Kr(p),k=bn({isPartial:e.isPartial,rangeSize:p.collapsedBefore,expandedHunks:o,hunkIndex:f,collapsedContextThreshold:l}),x=m-k.rangeSize;k.renderAll?u.push([x,m]):(k.fromStart>0&&u.push([x,x+k.fromStart]),k.fromEnd>0&&u.push([m-k.fromEnd,m])),u.push([m,v]),d=v}const h=En({fileDiff:e,hunkIndex:e.hunks.length-1,expandedHunks:o,collapsedContextThreshold:l,errorPrefix:"getNearestRenderableAdditionLine"});if(h!=null){const f=d;d=f+h.rangeSize,h.renderAll?u.push([f,d]):h.fromStart>0&&u.push([f,f+h.fromStart])}if(n>=d)return n;if(r==="down"){for(const[f,p]of u)if(p>n)return Math.max(f,n);return}for(let f=u.length-1;f>=0;f--){const[p,m]=u[f];if(p<=n)return Math.min(m-1,n)}}function ep({type:e,metrics:n}){return n.hunkSeparatorHeight??c1(e)}function tp({type:e,metrics:n}){return e==="simple"||e==="metadata"||e==="line-info-basic"?0:n.spacing}function p1({type:e,hunkIndex:n,hunkSpecs:r}){switch(e){case"simple":return n>0;case"metadata":return r!=null;case"line-info":case"line-info-basic":case"custom":return!0}}function g1(e){return e!=="simple"&&e!=="metadata"}function qr({type:e,metrics:n,hunkIndex:r,hunkSpecs:o}){if(!p1({type:e,hunkIndex:r,hunkSpecs:o}))return;const l=ep({type:e,metrics:n}),u=tp({type:e,metrics:n}),d=r>0?u:0,h=u;return{height:l,gapBefore:d,gapAfter:h,totalHeight:d+l+h}}function hi({type:e,metrics:n}){if(!g1(e))return;const r=ep({type:e,metrics:n}),o=tp({type:e,metrics:n});return{height:r,gapBefore:o,gapAfter:0,totalHeight:o+r}}function gi({diff:e,diffStyle:n,startingLine:r=0,totalLines:o=1/0,expandedHunks:l,collapsedContextThreshold:u=1,callback:d}){var p;const h=m1({diff:e,diffStyle:n,startingLine:r,expandedHunks:l,collapsedContextThreshold:u}),f={viewportStart:r,viewportEnd:r+o,isWindowedHighlight:r>0||o<1/0,splitCount:h.splitCount,unifiedCount:h.unifiedCount,finalHunkIndex:e.hunks.length-1,shouldBreak(){if(!f.isWindowedHighlight)return!1;const m=f.unifiedCount>=r+o,v=f.splitCount>=r+o;return n==="unified"?m:(n==="split"||m)&&v},shouldSkip(m,v){if(!f.isWindowedHighlight)return!1;const k=m>0&&f.unifiedCount+m<=r,x=v>0&&f.splitCount+v<=r;return n==="unified"?k:(n==="split"||k)&&x},incrementCounts(m,v){(n==="unified"||n==="both")&&(f.unifiedCount+=m),(n==="split"||n==="both")&&(f.splitCount+=v)},isInWindow(m,v){if(!f.isWindowedHighlight)return!0;const k=f.isInUnifiedWindow(m),x=f.isInSplitWindow(v);return n==="unified"?k:n==="split"?x:k||x},isInUnifiedWindow(m){return!f.isWindowedHighlight||f.unifiedCount>=r-m&&f.unifiedCount<r+o},isInSplitWindow(m){return!f.isWindowedHighlight||f.splitCount>=r-m&&f.splitCount<r+o},emit(m,v=!1){return v||(n==="unified"?f.incrementCounts(1,0):n==="split"?f.incrementCounts(0,1):f.incrementCounts(1,1)),d(m)??!1}};e:for(let m=h.hunkIndex;m<e.hunks.length;m++){let L=function(B,ie){return A==null||A.collapsedLines<=0||A.fromStart+A.fromEnd>0?0:n==="unified"?B===v.unifiedLineStart+v.unifiedLineCount-1?A.collapsedLines:0:ie===v.splitLineStart+v.splitLineCount-1?A.collapsedLines:0},D=function(){return b?0:(b=!0,E.collapsedLines)};const v=e.hunks[m];if(v==null)throw new Error("iterateOverDiff: invalid hunk index");if(f.shouldBreak())break;const k=Vt(v.deletionStart,v.deletionCount),x=Vt(v.additionStart,v.additionCount),S=!e.isPartial&&v.deletionCount===0?k:v.deletionLineIndex,C=!e.isPartial&&v.additionCount===0?x:v.additionLineIndex,E=bn({isPartial:e.isPartial,rangeSize:v.collapsedBefore,expandedHunks:l,hunkIndex:m,collapsedContextThreshold:u}),A=m===f.finalHunkIndex?En({fileDiff:e,hunkIndex:m,expandedHunks:l,collapsedContextThreshold:u,errorPrefix:"iterateOverDiff"}):void 0,w=E.fromStart+E.fromEnd;let b=E.collapsedLines===0;if(f.shouldSkip(w,w))f.incrementCounts(w,w),D();else{let B=v.unifiedLineStart-E.rangeSize,ie=v.splitLineStart-E.rangeSize,ye=S-E.rangeSize,ge=C-E.rangeSize,ee=k+1-E.rangeSize,W=x+1-E.rangeSize;if(fs(f,E.fromStart,n,re=>f.emit({hunkIndex:m,hunk:v,collapsedBefore:0,collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:ee+re,lineIndex:ye+re,noEOFCR:!1,unifiedLineIndex:B+re,splitLineIndex:ie+re},additionLine:{unifiedLineIndex:B+re,splitLineIndex:ie+re,lineIndex:ge+re,lineNumber:W+re,noEOFCR:!1}}))||(B=v.unifiedLineStart-E.fromEnd,ie=v.splitLineStart-E.fromEnd,ye=S-E.fromEnd,ge=C-E.fromEnd,ee=k+1-E.fromEnd,W=x+1-E.fromEnd,fs(f,E.fromEnd,n,re=>f.emit({hunkIndex:m,hunk:v,collapsedBefore:D(),collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:ee+re,lineIndex:ye+re,noEOFCR:!1,unifiedLineIndex:B+re,splitLineIndex:ie+re},additionLine:{unifiedLineIndex:B+re,splitLineIndex:ie+re,lineIndex:ge+re,lineNumber:W+re,noEOFCR:!1}}),()=>{D()})))break e}let F=v.unifiedLineStart,N=v.splitLineStart,z=S,G=C,V=k+1,ue=x+1;const K=v.hunkContent.at(-1);for(const B of v.hunkContent){if(f.shouldBreak())break e;const ie=B===K;if(B.type==="context"){if(f.shouldSkip(B.lines,B.lines))f.incrementCounts(B.lines,B.lines),D();else if(fs(f,B.lines,n,ye=>{const ge=ie&&ye===B.lines-1,ee=F+ye,W=N+ye;return f.emit({hunkIndex:m,hunk:v,collapsedBefore:D(),collapsedAfter:L(ee,W),type:"context",deletionLine:{lineNumber:V+ye,lineIndex:z+ye,noEOFCR:ge&&v.noEOFCRDeletions,unifiedLineIndex:ee,splitLineIndex:W},additionLine:{unifiedLineIndex:ee,splitLineIndex:W,lineIndex:G+ye,lineNumber:ue+ye,noEOFCR:ge&&v.noEOFCRAdditions}})},()=>{D()}))break e;F+=B.lines,N+=B.lines,z+=B.lines,G+=B.lines,V+=B.lines,ue+=B.lines}else{const ye=Math.max(B.deletions,B.additions),ge=B.deletions+B.additions;if(!f.shouldSkip(ge,ye)){const ee=x1(f,B,n);(((p=ee[0])==null?void 0:p[0])??0)>0&&D();for(const[W,re]of ee)for(let ne=W;ne<re;ne++){const M=L(F+ne,n==="unified"?N+(ne<B.deletions?ne:ne-B.deletions):N+ne);if(f.emit(k1({hunkIndex:m,hunk:v,collapsedBefore:D(),collapsedAfter:M,diffStyle:n,index:ne,unifiedLineIndex:F,splitLineIndex:N,additionLineIndex:G,deletionLineIndex:z,additionLineNumber:ue,deletionLineNumber:V,content:B,isLastContent:ie,unifiedCount:ge,splitCount:ye}),!0))break e}}D(),f.incrementCounts(ge,ye),F+=ge,N+=ye,z+=B.deletions,G+=B.additions,V+=B.deletions,ue+=B.additions}}if(A!=null){const{collapsedLines:B,fromStart:ie,fromEnd:ye}=A,ge=ie+ye;if(fs(f,ge,n,ee=>{const W=ee===ge-1;return f.emit({hunkIndex:e.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:W?B:0,type:"context-expanded",deletionLine:{lineNumber:V+ee,lineIndex:z+ee,noEOFCR:!1,unifiedLineIndex:F+ee,splitLineIndex:N+ee},additionLine:{unifiedLineIndex:F+ee,splitLineIndex:N+ee,lineIndex:G+ee,lineNumber:ue+ee,noEOFCR:!1}})},void 0,()=>f.shouldBreak()))break e}}}function m1({diff:e,diffStyle:n,startingLine:r,expandedHunks:o,collapsedContextThreshold:l}){if(r<=0||n==="both")return{hunkIndex:0,splitCount:0,unifiedCount:0};const u=v1({diff:e,expandedHunks:o,collapsedContextThreshold:l});let d=0,h=e.hunks.length-1,f=e.hunks.length;for(;d<=h;){const m=d+h>>1,v=u[m+1];if(v==null)throw new Error("iterateOverDiff: invalid hunk prefix index");(n==="unified"?v.unifiedCount:v.splitCount)>r?(f=m,h=m-1):d=m+1}if(f>=e.hunks.length){const m=u[e.hunks.length];if(m==null)throw new Error("iterateOverDiff: invalid terminal hunk prefix index");return{hunkIndex:e.hunks.length,splitCount:m.splitCount,unifiedCount:m.unifiedCount}}const p=u[f];if(p==null)throw new Error("iterateOverDiff: invalid selected hunk prefix index");return{hunkIndex:f,splitCount:p.splitCount,unifiedCount:p.unifiedCount}}function v1({diff:e,expandedHunks:n,collapsedContextThreshold:r}){let o=0,l=0;const u=e.hunks.length-1,d=[{splitCount:0,unifiedCount:0}];for(let h=0;h<e.hunks.length;h++){const f=e.hunks[h];if(f==null)throw new Error("iterateOverDiff: invalid hunk summary index");const p=bn({isPartial:e.isPartial,rangeSize:f.collapsedBefore,expandedHunks:n,hunkIndex:h,collapsedContextThreshold:r}),m=p.fromStart+p.fromEnd;o+=m+f.splitLineCount,l+=m+f.unifiedLineCount;const v=h===u?En({fileDiff:e,hunkIndex:h,expandedHunks:n,collapsedContextThreshold:r,errorPrefix:"iterateOverDiff"}):void 0;if(v!=null){const k=v.fromStart+v.fromEnd;o+=k,l+=k}d.push({splitCount:o,unifiedCount:l})}return d}function y1(e,n,r){if(!e.isWindowedHighlight||n<=0)return[0,n];const o=[];function l(h){const f=Math.max(0,e.viewportStart-h),p=Math.min(n,e.viewportEnd-h);p>f&&o.push([f,p])}if(r!=="split"&&l(e.unifiedCount),r!=="unified"&&l(e.splitCount),o.length===0)return[0,0];let u=o[0][0],d=o[0][1];for(let h=1;h<o.length;h++){const f=o[h];u=Math.min(u,f[0]),d=Math.max(d,f[1])}return[u,d]}function fs(e,n,r,o,l,u){const[d,h]=y1(e,n,r);d>0&&(e.incrementCounts(d,d),l==null||l());let f=d;for(;f<n;){if((u==null?void 0:u())===!0)return!0;if(f>=h){e.incrementCounts(n-f,n-f);break}if(e.isInWindow(0,0)){if(o(f)===!0)return!0}else e.incrementCounts(1,1);f++}return!1}function x1(e,n,r){if(!e.isWindowedHighlight)return[[0,r==="unified"?n.deletions+n.additions:Math.max(n.deletions,n.additions)]];const o=r!=="split",l=r!=="unified",u=r==="unified"?"unified":"split",d=[];function h(v,k){if(v+k<=e.viewportStart||v>=e.viewportEnd)return;const x=Math.max(0,e.viewportStart-v),S=Math.min(k,e.viewportEnd-v);return S>x?[x,S]:void 0}function f(v,k){return u==="split"?v:k==="additions"?[v[0]+n.deletions,v[1]+n.deletions]:v}function p(v,k){if(v==null)return;const[x,S]=f(v,k);S>x&&d.push([x,S])}if(o&&(p(h(e.unifiedCount,n.deletions),"deletions"),p(h(e.unifiedCount+n.deletions,n.additions),"additions")),l&&(p(h(e.splitCount,n.deletions),"deletions"),p(h(e.splitCount,n.additions),"additions")),d.length===0)return d;d.sort((v,k)=>v[0]-k[0]);const m=[d[0]];for(const[v,k]of d.slice(1)){const x=m[m.length-1];v<=x[1]?x[1]=Math.max(x[1],k):m.push([v,k])}return m}function k1({hunkIndex:e,hunk:n,collapsedAfter:r,collapsedBefore:o,diffStyle:l,index:u,unifiedLineIndex:d,splitLineIndex:h,additionLineIndex:f,deletionLineIndex:p,additionLineNumber:m,deletionLineNumber:v,content:k,isLastContent:x,unifiedCount:S,splitCount:C}){const E=u<k.deletions?d+u:void 0,A=l==="unified"?u>=k.deletions?d+u:void 0:u<k.additions?d+k.deletions+u:void 0,w=l==="unified"?h+(u<k.deletions?u:u-k.deletions):h+u,L=u<k.deletions?p+u:void 0,b=u<k.deletions?v+u:void 0,D=l==="unified"?u>=k.deletions?f+(u-k.deletions):void 0:u<k.additions?f+u:void 0,F=l==="unified"?u>=k.deletions?m+(u-k.deletions):void 0:u<k.additions?m+u:void 0,N=l==="unified"?x&&u===k.deletions-1&&n.noEOFCRDeletions:x&&u===C-1&&n.noEOFCRDeletions,z=l==="unified"?x&&u===S-1&&n.noEOFCRAdditions:x&&u===C-1&&n.noEOFCRAdditions,G=L!=null&&b!=null&&E!=null?{lineNumber:b,lineIndex:L,noEOFCR:N,unifiedLineIndex:E,splitLineIndex:w}:void 0,V=D!=null&&F!=null&&A!=null?{unifiedLineIndex:A,splitLineIndex:w,lineIndex:D,lineNumber:F,noEOFCR:z}:void 0;if(G==null&&V!=null)return{type:"change",hunkIndex:e,hunk:n,collapsedAfter:r,collapsedBefore:o,deletionLine:void 0,additionLine:V};if(G!=null&&V==null)return{type:"change",hunkIndex:e,hunk:n,collapsedAfter:r,collapsedBefore:o,deletionLine:G,additionLine:void 0};if(G==null||V==null)throw new Error("iterateOverDiff: missing change line data");return{type:"change",hunkIndex:e,hunk:n,collapsedAfter:r,collapsedBefore:o,deletionLine:G,additionLine:V}}function Ln(e){let n=e.length;return e.charCodeAt(n-1)===10&&(n--,e.charCodeAt(n-1)===13&&n--),e.slice(0,n)}class Eu{diff(n,r,o={}){let l;typeof o=="function"?(l=o,o={}):"callback"in o&&(l=o.callback);const u=this.castInput(n,o),d=this.castInput(r,o),h=this.removeEmpty(this.tokenize(u,o)),f=this.removeEmpty(this.tokenize(d,o));return this.diffWithOptionsObj(h,f,o,l)}diffWithOptionsObj(n,r,o,l){var u;const d=w=>{if(w=this.postProcess(w,o),l){setTimeout(function(){l(w)},0);return}else return w},h=r.length,f=n.length;let p=1,m=h+f;o.maxEditLength!=null&&(m=Math.min(m,o.maxEditLength));const v=(u=o.timeout)!==null&&u!==void 0?u:1/0,k=Date.now()+v,x=[{oldPos:-1,lastComponent:void 0}];let S=this.extractCommon(x[0],r,n,0,o);if(x[0].oldPos+1>=f&&S+1>=h)return d(this.buildValues(x[0].lastComponent,r,n));let C=-1/0,E=1/0;const A=()=>{for(let w=Math.max(C,-p);w<=Math.min(E,p);w+=2){let L;const b=x[w-1],D=x[w+1];b&&(x[w-1]=void 0);let F=!1;if(D){const z=D.oldPos-w;F=D&&0<=z&&z<h}const N=b&&b.oldPos+1<f;if(!F&&!N){x[w]=void 0;continue}if(!N||F&&b.oldPos<D.oldPos?L=this.addToPath(D,!0,!1,0,o):L=this.addToPath(b,!1,!0,1,o),S=this.extractCommon(L,r,n,w,o),L.oldPos+1>=f&&S+1>=h)return d(this.buildValues(L.lastComponent,r,n))||!0;x[w]=L,L.oldPos+1>=f&&(E=Math.min(E,w-1)),S+1>=h&&(C=Math.max(C,w+1))}p++};if(l)(function w(){setTimeout(function(){if(p>m||Date.now()>k)return l(void 0);A()||w()},0)})();else for(;p<=m&&Date.now()<=k;){const w=A();if(w)return w}}addToPath(n,r,o,l,u){const d=n.lastComponent;return d&&!u.oneChangePerToken&&d.added===r&&d.removed===o?{oldPos:n.oldPos+l,lastComponent:{count:d.count+1,added:r,removed:o,previousComponent:d.previousComponent}}:{oldPos:n.oldPos+l,lastComponent:{count:1,added:r,removed:o,previousComponent:d}}}extractCommon(n,r,o,l,u){const d=r.length,h=o.length;let f=n.oldPos,p=f-l,m=0;for(;p+1<d&&f+1<h&&this.equals(o[f+1],r[p+1],u);)p++,f++,m++,u.oneChangePerToken&&(n.lastComponent={count:1,previousComponent:n.lastComponent,added:!1,removed:!1});return m&&!u.oneChangePerToken&&(n.lastComponent={count:m,previousComponent:n.lastComponent,added:!1,removed:!1}),n.oldPos=f,p}equals(n,r,o){return o.comparator?o.comparator(n,r):n===r||!!o.ignoreCase&&n.toLowerCase()===r.toLowerCase()}removeEmpty(n){const r=[];for(let o=0;o<n.length;o++)n[o]&&r.push(n[o]);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,o){const l=[];let u;for(;n;)l.push(n),u=n.previousComponent,delete n.previousComponent,n=u;l.reverse();const d=l.length;let h=0,f=0,p=0;for(;h<d;h++){const m=l[h];if(m.removed)m.value=this.join(o.slice(p,p+m.count)),p+=m.count;else{if(!m.added&&this.useLongestToken){let v=r.slice(f,f+m.count);v=v.map(function(k,x){const S=o[p+x];return S.length>k.length?S:k}),m.value=this.join(v)}else m.value=this.join(r.slice(f,f+m.count));f+=m.count,m.added||(p+=m.count)}}return l}}class S1 extends Eu{}const w1=new S1;function C1(e,n,r){return w1.diff(e,n,r)}const Ff="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 b1 extends Eu{tokenize(n){const r=new RegExp(`(\\r?\\n)|[${Ff}]+|[^\\S\\n\\r]+|[^${Ff}]`,"ug");return n.match(r)||[]}}const E1=new b1;function L1(e,n,r){return E1.diff(e,n,r)}class R1 extends Eu{constructor(){super(...arguments),this.tokenize=D1}equals(n,r,o){return o.ignoreWhitespace?((!o.newlineIsToken||!n.includes(`
|
|
43
|
+
`))&&(n=n.trim()),(!o.newlineIsToken||!r.includes(`
|
|
44
|
+
`))&&(r=r.trim())):o.ignoreNewlineAtEof&&!o.newlineIsToken&&(n.endsWith(`
|
|
45
|
+
`)&&(n=n.slice(0,-1)),r.endsWith(`
|
|
46
|
+
`)&&(r=r.slice(0,-1))),super.equals(n,r,o)}}const T1=new R1;function _f(e,n,r){return T1.diff(e,n,r)}function D1(e,n){n.stripTrailingCr&&(e=e.replace(/\r\n/g,`
|
|
47
|
+
`));const r=[],o=e.split(/(\n|\r\n)/);o[o.length-1]||o.pop();for(let l=0;l<o.length;l++){const u=o[l];l%2&&!n.newlineIsToken?r[r.length-1]+=u:r.push(u)}return r}function N1(e){for(let n=0;n<e.length;n++)if(e[n]<" "||e[n]>"~"||e[n]==='"'||e[n]==="\\")return!0;return!1}function qn(e){if(!N1(e))return e;let n='"';const r=new TextEncoder().encode(e);let o=0;for(;o<r.length;){const l=r[o];l===7?n+="\\a":l===8?n+="\\b":l===9?n+="\\t":l===10?n+="\\n":l===11?n+="\\v":l===12?n+="\\f":l===13?n+="\\r":l===34?n+='\\"':l===92?n+="\\\\":l>=32&&l<=126?n+=String.fromCharCode(l):n+="\\"+l.toString(8).padStart(3,"0"),o++}return n+='"',n}const $f={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Uf(e,n,r,o,l,u,d){let h;d?typeof d=="function"?h={callback:d}:h=d:h={},typeof h.context>"u"&&(h.context=4);const f=h.context;if(h.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(h.callback){const{callback:m}=h;_f(r,o,Object.assign(Object.assign({},h),{callback:v=>{const k=p(v);m(k)}}))}else return p(_f(r,o,h));function p(m){if(!m)return;m.push({value:"",lines:[]});function v(w){return w.map(function(L){return" "+L})}const k=[];let x=0,S=0,C=[],E=1,A=1;for(let w=0;w<m.length;w++){const L=m[w],b=L.lines||A1(L.value);if(L.lines=b,L.added||L.removed){if(!x){const D=m[w-1];x=E,S=A,D&&(C=f>0?v(D.lines.slice(-f)):[],x-=C.length,S-=C.length)}for(const D of b)C.push((L.added?"+":"-")+D);L.added?A+=b.length:E+=b.length}else{if(x)if(b.length<=f*2&&w<m.length-2)for(const D of v(b))C.push(D);else{const D=Math.min(b.length,f);for(const N of v(b.slice(0,D)))C.push(N);const F={oldStart:x,oldLines:E-x+D,newStart:S,newLines:A-S+D,lines:C};k.push(F),x=0,S=0,C=[]}E+=b.length,A+=b.length}}for(const w of k)for(let L=0;L<w.lines.length;L++)w.lines[L].endsWith(`
|
|
48
|
+
`)?w.lines[L]=w.lines[L].slice(0,-1):(w.lines.splice(L+1,0,"\"),L++);return{oldFileName:e,newFileName:n,oldHeader:l,newHeader:u,hunks:k}}}function Ja(e,n){var r,o,l,u,d,h;if(n||(n=$f),Array.isArray(e)){if(e.length>1&&!n.includeFileHeaders&&!e.every(m=>m.isGit))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(m=>Ja(m,n)).join(`
|
|
49
|
+
`)}const f=[];if(e.isGit){if(n=$f,!e.oldFileName)throw new Error("oldFileName must be specified for Git patches");if(!e.newFileName)throw new Error("newFileName must be specified for Git patches");let m=e.oldFileName,v=e.newFileName;e.isCreate&&m==="/dev/null"?m=v.replace(/^b\//,"a/"):e.isDelete&&v==="/dev/null"&&(v=m.replace(/^a\//,"b/")),f.push("diff --git "+qn(m)+" "+qn(v)),e.isDelete&&f.push("deleted file mode "+((r=e.oldMode)!==null&&r!==void 0?r:"100644")),e.isCreate&&f.push("new file mode "+((o=e.newMode)!==null&&o!==void 0?o:"100644")),e.oldMode&&e.newMode&&!e.isDelete&&!e.isCreate&&(f.push("old mode "+e.oldMode),f.push("new mode "+e.newMode)),e.isRename&&(f.push("rename from "+qn(((l=e.oldFileName)!==null&&l!==void 0?l:"").replace(/^a\//,""))),f.push("rename to "+qn(((u=e.newFileName)!==null&&u!==void 0?u:"").replace(/^b\//,"")))),e.isCopy&&(f.push("copy from "+qn(((d=e.oldFileName)!==null&&d!==void 0?d:"").replace(/^a\//,""))),f.push("copy to "+qn(((h=e.newFileName)!==null&&h!==void 0?h:"").replace(/^b\//,""))))}else n.includeIndex&&e.oldFileName==e.newFileName&&e.oldFileName!==void 0&&f.push("Index: "+e.oldFileName),n.includeUnderline&&f.push("===================================================================");const p=e.hunks.length>0;n.includeFileHeaders&&e.oldFileName!==void 0&&e.newFileName!==void 0&&(!e.isGit||p)&&(f.push("--- "+qn(e.oldFileName)+(e.oldHeader?" "+e.oldHeader:"")),f.push("+++ "+qn(e.newFileName)+(e.newHeader?" "+e.newHeader:"")));for(let m=0;m<e.hunks.length;m++){const v=e.hunks[m],k=v.oldLines===0?v.oldStart-1:v.oldStart,x=v.newLines===0?v.newStart-1:v.newStart;f.push("@@ -"+k+","+v.oldLines+" +"+x+","+v.newLines+" @@");for(const S of v.lines)f.push(S)}return f.join(`
|
|
50
|
+
`)+`
|
|
51
|
+
`}function M1(e,n,r,o,l,u,d){if(typeof d=="function"&&(d={callback:d}),d!=null&&d.callback){const{callback:h}=d;Uf(e,n,r,o,l,u,Object.assign(Object.assign({},d),{callback:f=>{h(f?Ja(f,d.headerOptions):void 0)}}))}else{const h=Uf(e,n,r,o,l,u,d);return h?Ja(h,d==null?void 0:d.headerOptions):void 0}}function A1(e){const n=e.endsWith(`
|
|
52
|
+
`),r=e.split(`
|
|
53
|
+
`).map(o=>o+`
|
|
54
|
+
`);return n?r.pop():r.push(r.pop().slice(0,-1)),r}function As({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 hs({item:e,arr:n,enableJoin:r,isNeutral:o=!1,isLastItem:l=!1}){const u=n[n.length-1];if(u==null||l||!r){n.push([o?0:1,e.value]);return}const d=u[0]===0;if(o===d||o&&e.value.length===1&&!d){u[1]+=e.value;return}n.push([o?0:1,e.value])}const P1={forcePlainText:!1};function I1(e,n,r,{forcePlainText:o,lazyLineAST:l=!1,startingLine:u,totalLines:d,expandedHunks:h,collapsedContextThreshold:f=1}=P1){o?(u??(u=0),d??(d=1/0)):(u=0,d=1/0);const p=u>0||d<1/0;l&&(l=!o&&!r.useTokenTransformer);const m=typeof r.theme=="string"?n.getTheme(r.theme).type:void 0,v=Q0({theme:r.theme,highlighter:n}),k=o&&!p&&(e.unifiedLineCount>1e3||e.splitLineCount>1e3)?"none":r.lineDiffType,x={deletionLines:[],additionLines:[]},{maxLineDiffLength:S}=r,C=!o&&!e.isPartial,E=o?h:void 0,A=new Map;function w(b){const D=C?0:b,F=A.get(D)??O1();return A.set(D,F),F}function L(b,D,F,N){if(p){let z=F.at(-1);(z==null||z.targetIndex+z.count!==D)&&(z={targetIndex:D,originalOffset:N.length,count:0},F.push(z)),z.count++}N.push(b)}gi({diff:e,diffStyle:"both",startingLine:u,totalLines:d,expandedHunks:p?E:!0,collapsedContextThreshold:f,callback:({hunkIndex:b,additionLine:D,deletionLine:F,type:N})=>{const z=w(b),G=D!=null?D.splitLineIndex:F.splitLineIndex;N==="change"&&D!=null&&F!=null&&H1({additionLine:e.additionLines[D.lineIndex],deletionLine:e.deletionLines[F.lineIndex],deletionLineIndex:z.deletionContent.length,additionLineIndex:z.additionContent.length,deletionDecorations:z.deletionDecorations,additionDecorations:z.additionDecorations,lineDiffType:k,maxLineDiffLength:S}),F!=null&&(L(e.deletionLines[F.lineIndex],F.lineIndex,z.deletionSegments,z.deletionContent),z.deletionInfo.push({type:N==="change"?"change-deletion":N,lineNumber:F.lineNumber,altLineNumber:N==="change"?void 0:D.lineNumber??void 0,lineIndex:`${F.unifiedLineIndex},${G}`})),D!=null&&(L(e.additionLines[D.lineIndex],D.lineIndex,z.additionSegments,z.additionContent),z.additionInfo.push({type:N==="change"?"change-addition":N,lineNumber:D.lineNumber,altLineNumber:N==="change"?void 0:F.lineNumber??void 0,lineIndex:`${D.unifiedLineIndex},${G}`}))}});for(const b of A.values()){if(b.deletionContent.length===0&&b.additionContent.length===0)continue;const D={name:e.prevName??e.name,contents:b.deletionContent.value},F={name:e.name,contents:b.additionContent.value},{deletionLines:N,additionLines:z}=j1({deletionFile:D,deletionInfo:b.deletionInfo,deletionDecorations:b.deletionDecorations,additionFile:F,additionInfo:b.additionInfo,additionDecorations:b.additionDecorations,highlighter:n,options:r,languageOverride:o?"text":e.lang,lazyLineAST:l});if(C){x.deletionLines=N,x.additionLines=z;continue}for(const[G,V,ue]of[[x.deletionLines,N,b.deletionSegments],[x.additionLines,z,b.additionSegments]])if(ue.length>0)for(const K of ue)for(let B=0;B<K.count;B++)G[K.targetIndex+B]=V[K.originalOffset+B];else if(l){const K=G.length;for(let B=0;B<V.length;B++)Bh(G,K+B,()=>V[B])}else U0(G,V)}return{code:x,themeStyles:v,baseThemeType:m}}function z1(e,{deletionLineIndex:n,additionLineIndex:r,deletionDecorations:o,additionDecorations:l}){let u=0,d=0,h=-1,f=0,p=-1,m=0;for(const{value:v,added:k,removed:x}of e)x?(h===-1&&(h=u),u+=v.length,f=u):k?(p===-1&&(p=d),d+=v.length,m=d):(u+=v.length,d+=v.length);h!==-1&&o.push(As({line:n,spanStart:h,spanLength:f-h})),p!==-1&&l.push(As({line:r,spanStart:p,spanLength:m-p}))}function H1({deletionLine:e,additionLine:n,deletionLineIndex:r,additionLineIndex:o,deletionDecorations:l,additionDecorations:u,lineDiffType:d,maxLineDiffLength:h}){if(e==null||n==null||d==="none"||(e=Ln(e),n=Ln(n),e.length>h||n.length>h))return;const f=d==="char"?C1(e,n):L1(e,n);if(d==="word-line"){z1(f,{deletionLineIndex:r,additionLineIndex:o,deletionDecorations:l,additionDecorations:u});return}const p=[],m=[],v=d==="word-alt",k=f.at(-1);for(const S of f){const C=S===k;!S.added&&!S.removed?(hs({item:S,arr:p,enableJoin:v,isNeutral:!0,isLastItem:C}),hs({item:S,arr:m,enableJoin:v,isNeutral:!0,isLastItem:C})):S.removed?hs({item:S,arr:p,enableJoin:v,isLastItem:C}):hs({item:S,arr:m,enableJoin:v,isLastItem:C})}let x=0;for(const S of p)S[0]===1&&l.push(As({line:r,spanStart:x,spanLength:S[1].length})),x+=S[1].length;x=0;for(const S of m)S[0]===1&&u.push(As({line:o,spanStart:x,spanLength:S[1].length})),x+=S[1].length}function O1(){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 j1({lazyLineAST:e,deletionFile:n,additionFile:r,deletionInfo:o,additionInfo:l,highlighter:u,deletionDecorations:d,additionDecorations:h,languageOverride:f,options:{theme:p,useTokenTransformer:m,tokenizeMaxLineLength:v}}){const k=(x,S,C)=>x.contents===""?[]:n1(u.codeToTokens(Ln(x.contents),Y0(f??Qn(x.name),p,v)).tokens,{state:{lineInfo:S},useTokenTransformer:m,decorations:C,lazyLineAST:e,cacheHtmlStyles:u.name==="highlights"});return{deletionLines:k(n,o,d),additionLines:k(r,l,h)}}const F1=q.createContext(void 0);function eu(e,n,r){if(e===n||e==null||n==null)return e===n;const o=new Set(r),l=Object.keys(e),u=new Set(Object.keys(n));for(const d of l)if(u.delete(d),!o.has(d)&&(!(d in n)||e[d]!==n[d]))return!1;for(const d of Array.from(u))if(!o.has(d))return!1;return!0}function np(e,n){const r=(e==null?void 0:e.theme)??Cn,o=(n==null?void 0:n.theme)??Cn,l=Vf(e),u=Vf(n);return bu(r,o)&&eu(e,n,["theme","parseDiffOptions"])&&eu(l,u)}function Vf(e){if(e!=null&&"parseDiffOptions"in e)return e.parseDiffOptions}const Qi=new Set;let Yi=null;function xt(e){Qi.add(e),Yi??(Yi=requestAnimationFrame(ip))}function Ps(e){Qi.delete(e)&&Qi.size===0&&Yi!=null&&(cancelAnimationFrame(Yi),Yi=null)}function ip(e){const n=new Set(Qi);Qi.clear();for(const r of n)try{r(e)}catch(o){console.error(o)}Qi.size>0?Yi=requestAnimationFrame(ip):Yi=null}function tu(e,n){return(e==null?void 0:e.start)===(n==null?void 0:n.start)&&(e==null?void 0:e.end)===(n==null?void 0:n.end)&&(e==null?void 0:e.side)===(n==null?void 0:n.side)&&(e==null?void 0:e.endSide)===(n==null?void 0:n.endSide)}function Wf({scrollTop:e,scrollHeight:n,height:r,fitPerfectly:o=!1,fitPerfectlyOverscroll:l=0,overscrollSize:u}){const d=r+u*2,h=o?r+l*2:d;if(n=Math.max(n,h),d>=n||o){const m=Math.max(e-l,0),v=Math.min(e+h,n);return{top:m,bottom:Math.max(v,m)}}let f=e+r/2-d/2,p=f+d;return f<0&&(f=0),p>n&&(p=n),f=Math.floor(Math.max(f,0)),{top:f,bottom:Math.ceil(Math.max(Math.min(p,n),f))}}function Bf(e){if(typeof HTMLStyleElement<"u"&&e instanceof HTMLStyleElement)return!0;const n=e.tagName??e.nodeName;return typeof n=="string"&&n.toLowerCase()==="style"}let _1;function $1(){return _1??(_1="safari"in window&&"pushNotification"in window.safari||/^((?!chrome|android).)*safari/i.test(navigator.userAgent))}function rp(e,n){return(e==null?void 0:e.getPreferredHighlighter())??n.preferredHighlighter}function qf(e,n){return(e==null?void 0:e.cacheKey)!=null||(n==null?void 0:n.cacheKey)!=null?(e==null?void 0:e.cacheKey)===(n==null?void 0:n.cacheKey):(e==null?void 0:e.contents)===(n==null?void 0:n.contents)&&(e==null?void 0:e.name)===(n==null?void 0:n.name)&&(e==null?void 0:e.lang)===(n==null?void 0:n.lang)}const U1="-1,-1";function V1(e){return(e==null?void 0:e.some(n=>n.lineNumber===0))??!1}function Gf(e){const n=e[0];return n!=null&&n.length>0?n:void 0}function op(e){return e.startingLine===0&&e.totalLines>0}const W1=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Qr{constructor(n,r,o){this.normal=r,this.property=n,o&&(this.space=o)}}Qr.prototype.normal={};Qr.prototype.property={};Qr.prototype.space=void 0;function sp(e,n){const r={},o={};for(const l of e)Object.assign(r,l.property),Object.assign(o,l.normal);return new Qr(r,o,n)}function nu(e){return e.toLowerCase()}class Dt{constructor(n,r){this.attribute=r,this.property=n}}Dt.prototype.attribute="";Dt.prototype.booleanish=!1;Dt.prototype.boolean=!1;Dt.prototype.commaOrSpaceSeparated=!1;Dt.prototype.commaSeparated=!1;Dt.prototype.defined=!1;Dt.prototype.mustUseProperty=!1;Dt.prototype.number=!1;Dt.prototype.overloadedBoolean=!1;Dt.prototype.property="";Dt.prototype.spaceSeparated=!1;Dt.prototype.space=void 0;let B1=0;const be=yi(),Ze=yi(),iu=yi(),Z=yi(),Ie=yi(),mi=yi(),zt=yi();function yi(){return 2**++B1}const ru=Object.freeze(Object.defineProperty({__proto__:null,boolean:be,booleanish:Ze,commaOrSpaceSeparated:zt,commaSeparated:mi,number:Z,overloadedBoolean:iu,spaceSeparated:Ie},Symbol.toStringTag,{value:"Module"})),za=Object.keys(ru);class Lu extends Dt{constructor(n,r,o,l){let u=-1;if(super(n,r),Xf(this,"space",l),typeof o=="number")for(;++u<za.length;){const d=za[u];Xf(this,za[u],(o&ru[d])===ru[d])}}}Lu.prototype.defined=!0;function Xf(e,n,r){r&&(e[n]=r)}function er(e){const n={},r={};for(const[o,l]of Object.entries(e.properties)){const u=new Lu(o,e.transform(e.attributes||{},o),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(u.mustUseProperty=!0),n[o]=u,r[nu(o)]=o,r[nu(u.attribute)]=o}return new Qr(n,r,e.space)}const lp=er({properties:{ariaActiveDescendant:null,ariaAtomic:Ze,ariaAutoComplete:null,ariaBusy:Ze,ariaChecked:Ze,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:Ie,ariaCurrent:null,ariaDescribedBy:Ie,ariaDetails:null,ariaDisabled:Ze,ariaDropEffect:Ie,ariaErrorMessage:null,ariaExpanded:Ze,ariaFlowTo:Ie,ariaGrabbed:Ze,ariaHasPopup:null,ariaHidden:Ze,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ie,ariaLevel:Z,ariaLive:null,ariaModal:Ze,ariaMultiLine:Ze,ariaMultiSelectable:Ze,ariaOrientation:null,ariaOwns:Ie,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:Ze,ariaReadOnly:Ze,ariaRelevant:null,ariaRequired:Ze,ariaRoleDescription:Ie,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:Ze,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function ap(e,n){return n in e?e[n]:n}function up(e,n){return ap(e,n.toLowerCase())}const q1=er({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:mi,acceptCharset:Ie,accessKey:Ie,action:null,allow:null,allowFullScreen:be,allowPaymentRequest:be,allowUserMedia:be,alpha:be,alt:null,as:null,async:be,autoCapitalize:null,autoComplete:Ie,autoFocus:be,autoPlay:be,blocking:Ie,capture:null,charSet:null,checked:be,cite:null,className:Ie,closedBy:null,colorSpace:null,cols:Z,colSpan:Z,command:null,commandFor:null,content:null,contentEditable:Ze,controls:be,controlsList:Ie,coords:Z|mi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:be,defer:be,dir:null,dirName:null,disabled:be,download:iu,draggable:Ze,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:be,formTarget:null,headers:Ie,height:Z,hidden:iu,high:Z,href:null,hrefLang:null,htmlFor:Ie,httpEquiv:Ie,id:null,imageSizes:null,imageSrcSet:null,inert:be,inputMode:null,integrity:null,is:null,isMap:be,itemId:null,itemProp:Ie,itemRef:Ie,itemScope:be,itemType:Ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:be,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:be,muted:be,name:null,nonce:null,noModule:be,noValidate:be,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:be,optimum:Z,pattern:null,ping:Ie,placeholder:null,playsInline:be,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:be,referrerPolicy:null,rel:Ie,required:be,reversed:be,rows:Z,rowSpan:Z,sandbox:Ie,scope:null,scoped:be,seamless:be,selected:be,shadowRootClonable:be,shadowRootCustomElementRegistry:be,shadowRootDelegatesFocus:be,shadowRootMode:null,shadowRootSerializable:be,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:Ze,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:be,useMap:null,value:Ze,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ie,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:be,declare:be,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:be,noHref:be,noShade:be,noWrap:be,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:Ze,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:be,disablePictureInPicture:be,disableRemotePlayback:be,exportParts:mi,part:Ie,prefix:null,property:null,results:Z,security:null,unselectable:null},space:"html",transform:up}),G1=er({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:zt,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:Ie,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:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:be,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,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:mi,g2:mi,glyphName:mi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:zt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Z,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:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:zt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:zt,rev:zt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:zt,requiredFeatures:zt,requiredFonts:zt,requiredFormats:zt,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:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:zt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:zt,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:zt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ap}),dp=er({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()}}),cp=er({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:up}),fp=er({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),X1=/[A-Z]/g,Kf=/-[a-z]/g,K1=/^data[-\w.:]+$/i;function Q1(e,n){const r=nu(n);let o=n,l=Dt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&K1.test(n)){if(n.charAt(4)==="-"){const u=n.slice(5).replace(Kf,Z1);o="data"+u.charAt(0).toUpperCase()+u.slice(1)}else{const u=n.slice(4);if(!Kf.test(u)){let d=u.replace(X1,Y1);d.charAt(0)!=="-"&&(d="-"+d),n="data"+d}}l=Lu}return new l(o,n)}function Y1(e){return"-"+e.toLowerCase()}function Z1(e){return e.charAt(1).toUpperCase()}const J1=sp([lp,q1,dp,cp,fp],"html"),hp=sp([lp,G1,dp,cp,fp],"svg"),Qf={}.hasOwnProperty;function ev(e,n){const r=n||{};function o(l,...u){let d=o.invalid;const h=o.handlers;if(l&&Qf.call(l,e)){const f=String(l[e]);d=Qf.call(h,f)?h[f]:o.unknown}if(d)return d.call(this,l,...u)}return o.handlers=r.handlers||{},o.invalid=r.invalid,o.unknown=r.unknown,o}const tv=/["&'<>`]/g,nv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,iv=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,rv=/[|\\{}()[\]^$+*?.]/g,Yf=new WeakMap;function ov(e,n){if(e=e.replace(n.subset?sv(n.subset):tv,o),n.subset||n.escapeOnly)return e;return e.replace(nv,r).replace(iv,o);function r(l,u,d){return n.format((l.charCodeAt(0)-55296)*1024+l.charCodeAt(1)-56320+65536,d.charCodeAt(u+2),n)}function o(l,u,d){return n.format(l.charCodeAt(0),d.charCodeAt(u+1),n)}}function sv(e){let n=Yf.get(e);return n||(n=lv(e),Yf.set(e,n)),n}function lv(e){const n=[];let r=-1;for(;++r<e.length;)n.push(e[r].replace(rv,"\\$&"));return new RegExp("(?:"+n.join("|")+")","g")}const av=/[\dA-Fa-f]/;function uv(e,n,r){const o="&#x"+e.toString(16).toUpperCase();return r&&n&&!av.test(String.fromCharCode(n))?o:o+";"}const dv=/\d/;function cv(e,n,r){const o="&#"+String(e);return r&&n&&!dv.test(String.fromCharCode(n))?o:o+";"}const fv=["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"],Ha={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:"€"},hv=["cent","copy","divide","gt","lt","not","para","times"],pp={}.hasOwnProperty,ou={};let ps;for(ps in Ha)pp.call(Ha,ps)&&(ou[Ha[ps]]=ps);const pv=/[^\dA-Za-z]/;function gv(e,n,r,o){const l=String.fromCharCode(e);if(pp.call(ou,l)){const u=ou[l],d="&"+u;return r&&fv.includes(u)&&!hv.includes(u)&&(!o||n&&n!==61&&pv.test(String.fromCharCode(n)))?d:d+";"}return""}function mv(e,n,r){let o=uv(e,n,r.omitOptionalSemicolons),l;if((r.useNamedReferences||r.useShortestReferences)&&(l=gv(e,n,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!l)&&r.useShortestReferences){const u=cv(e,n,r.omitOptionalSemicolons);u.length<o.length&&(o=u)}return l&&(!r.useShortestReferences||l.length<o.length)?l:o}function Zi(e,n){return ov(e,Object.assign({format:mv},n))}const vv=/^>|^->|<!--|-->|--!>|<!-$/g,yv=[">"],xv=["<",">"];function kv(e,n,r,o){return o.settings.bogusComments?"<?"+Zi(e.value,Object.assign({},o.settings.characterReferences,{subset:yv}))+">":"<!--"+e.value.replace(vv,l)+"-->";function l(u){return Zi(u,Object.assign({},o.settings.characterReferences,{subset:xv}))}}function Sv(e,n,r,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}function Zf(e,n){const r=String(e);if(typeof n!="string")throw new TypeError("Expected character");let o=0,l=r.indexOf(n);for(;l!==-1;)o++,l=r.indexOf(n,l+n.length);return o}function wv(e,n){const r=n||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}function Cv(e){return e.join(" ").trim()}const bv=/[ \t\n\f\r]/g;function Ru(e){return typeof e=="object"?e.type==="text"?Jf(e.value):!1:Jf(e)}function Jf(e){return e.replace(bv,"")===""}const rt=mp(1),gp=mp(-1),Ev=[];function mp(e){return n;function n(r,o,l){const u=r?r.children:Ev;let d=(o||0)+e,h=u[d];if(!l)for(;h&&Ru(h);)d+=e,h=u[d];return h}}const Lv={}.hasOwnProperty;function vp(e){return n;function n(r,o,l){return Lv.call(e,r.tagName)&&e[r.tagName](r,o,l)}}const Tu=vp({body:Tv,caption:Oa,colgroup:Oa,dd:Av,dt:Mv,head:Oa,html:Rv,li:Nv,optgroup:Pv,option:Iv,p:Dv,rp:eh,rt:eh,tbody:Hv,td:th,tfoot:Ov,th,thead:zv,tr:jv});function Oa(e,n,r){const o=rt(r,n,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&Ru(o.value.charAt(0)))}function Rv(e,n,r){const o=rt(r,n);return!o||o.type!=="comment"}function Tv(e,n,r){const o=rt(r,n);return!o||o.type!=="comment"}function Dv(e,n,r){const o=rt(r,n);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.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 Nv(e,n,r){const o=rt(r,n);return!o||o.type==="element"&&o.tagName==="li"}function Mv(e,n,r){const o=rt(r,n);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function Av(e,n,r){const o=rt(r,n);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function eh(e,n,r){const o=rt(r,n);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function Pv(e,n,r){const o=rt(r,n);return!o||o.type==="element"&&o.tagName==="optgroup"}function Iv(e,n,r){const o=rt(r,n);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function zv(e,n,r){const o=rt(r,n);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function Hv(e,n,r){const o=rt(r,n);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function Ov(e,n,r){return!rt(r,n)}function jv(e,n,r){const o=rt(r,n);return!o||o.type==="element"&&o.tagName==="tr"}function th(e,n,r){const o=rt(r,n);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}const Fv=vp({body:Uv,colgroup:Vv,head:$v,html:_v,tbody:Wv});function _v(e){const n=rt(e,-1);return!n||n.type!=="comment"}function $v(e){const n=new Set;for(const o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(n.has(o.tagName))return!1;n.add(o.tagName)}const r=e.children[0];return!r||r.type==="element"}function Uv(e){const n=rt(e,-1,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Ru(n.value.charAt(0)))&&!(n.type==="element"&&(n.tagName==="meta"||n.tagName==="link"||n.tagName==="script"||n.tagName==="style"||n.tagName==="template"))}function Vv(e,n,r){const o=gp(r,n),l=rt(e,-1,!0);return r&&o&&o.type==="element"&&o.tagName==="colgroup"&&Tu(o,r.children.indexOf(o),r)?!1:!!(l&&l.type==="element"&&l.tagName==="col")}function Wv(e,n,r){const o=gp(r,n),l=rt(e,-1);return r&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&Tu(o,r.children.indexOf(o),r)?!1:!!(l&&l.type==="element"&&l.tagName==="tr")}const gs={name:[[`
|
|
55
|
+
\f\r &/=>`.split(""),`
|
|
56
|
+
\f\r "&'/=>\``.split("")],[`\0
|
|
57
|
+
\f\r "&'/<=>`.split(""),`\0
|
|
58
|
+
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
59
|
+
\f\r &>`.split(""),`\0
|
|
60
|
+
\f\r "&'<=>\``.split("")],[`\0
|
|
61
|
+
\f\r "&'<=>\``.split(""),`\0
|
|
62
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Bv(e,n,r,o){const l=o.schema,u=l.space==="svg"?!1:o.settings.omitOptionalTags;let d=l.space==="svg"?o.settings.closeEmptyElements:o.settings.voids.includes(e.tagName.toLowerCase());const h=[];let f;l.space==="html"&&e.tagName==="svg"&&(o.schema=hp);const p=qv(o,e.properties),m=o.all(l.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=l,m&&(d=!1),(p||!u||!Fv(e,n,r))&&(h.push("<",e.tagName,p?" "+p:""),d&&(l.space==="svg"||o.settings.closeSelfClosing)&&(f=p.charAt(p.length-1),(!o.settings.tightSelfClosing||f==="/"||f&&f!=='"'&&f!=="'")&&h.push(" "),h.push("/")),h.push(">")),h.push(m),!d&&(!u||!Tu(e,n,r))&&h.push("</"+e.tagName+">"),h.join("")}function qv(e,n){const r=[];let o=-1,l;if(n){for(l in n)if(n[l]!==null&&n[l]!==void 0){const u=Gv(e,l,n[l]);u&&r.push(u)}}for(;++o<r.length;){const u=e.settings.tightAttributes?r[o].charAt(r[o].length-1):void 0;o!==r.length-1&&u!=='"'&&u!=="'"&&(r[o]+=" ")}return r.join("")}function Gv(e,n,r){const o=Q1(e.schema,n),l=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,u=e.settings.allowDangerousCharacters?0:1;let d=e.quote,h;if(o.overloadedBoolean&&(r===o.attribute||r==="")?r=!0:(o.boolean||o.overloadedBoolean)&&(typeof r!="string"||r===o.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const f=Zi(o.attribute,Object.assign({},e.settings.characterReferences,{subset:gs.name[l][u]}));return r===!0||(r=Array.isArray(r)?(o.commaSeparated?wv:Cv)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?f:(e.settings.preferUnquoted&&(h=Zi(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:gs.unquoted[l][u]}))),h!==r&&(e.settings.quoteSmart&&Zf(r,d)>Zf(r,e.alternative)&&(d=e.alternative),h=d+Zi(r,Object.assign({},e.settings.characterReferences,{subset:(d==="'"?gs.single:gs.double)[l][u],attribute:!0}))+d),f+(h&&"="+h))}const Xv=["<","&"];function yp(e,n,r,o){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Zi(e.value,Object.assign({},o.settings.characterReferences,{subset:Xv}))}function Kv(e,n,r,o){return o.settings.allowDangerousHtml?e.value:yp(e,n,r,o)}function Qv(e,n,r,o){return o.all(e)}const Yv=ev("type",{invalid:Zv,unknown:Jv,handlers:{comment:kv,doctype:Sv,element:Bv,raw:Kv,root:Qv,text:yp}});function Zv(e){throw new Error("Expected node, not `"+e+"`")}function Jv(e){const n=e;throw new Error("Cannot compile unknown node `"+n.type+"`")}const ey={},ty={},ny=[];function su(e,n){const r=ey,o=r.quote||'"',l=o==='"'?"'":'"';if(o!=='"'&&o!=="'")throw new Error("Invalid quote `"+o+"`, expected `'` or `\"`");return{one:iy,all:ry,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||W1,characterReferences:r.characterReferences||ty,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?hp:J1,quote:o,alternative:l}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function iy(e,n,r){return Yv(e,n,r,this)}function ry(e){const n=[],r=e&&e.children||ny;let o=-1;for(;++o<r.length;)n[o]=this.one(r[o],o,e);return n.join("")}const oy=new Set(["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"]),sy=new Set(["svg","template","script","style"]),ly={class:"class",className:"class",id:"id",role:"role",style:"style",tabIndex:"tabindex",tabindex:"tabindex",title:"title"},ay=/^data-[\w.:-]+$/,uy=/[<&]/g,dy=/[\0"&'`]/g,cy={"<":"<","&":"&",'"':""","'":"'","`":"`","\0":"�"},fy=256;function Kn(e){const n=new Map;return Array.isArray(e)?Du(e,n):xp(e,n)}function Du(e,n){let r="";for(const o of e)r+=xp(o,n);return r}function xp(e,n){switch(e.type){case"text":return Sp(e.value);case"element":return hy(e,n);case"root":return Du(e.children,n);default:return su(e)}}function hy(e,n){var d;const{tagName:r}=e;if(r==="span"&&e.children.length===1&&e.children[0].type==="text"&&typeof((d=e.properties)==null?void 0:d.style)=="string"){let h=!0;for(const f in e.properties)if(f!=="style"&&e.properties[f]!=null){h=!1;break}if(h)return`<span ${kp(e.properties.style,n)}>${Sp(e.children[0].value)}</span>`}if(sy.has(r))return su(e);const o=py(e.properties,n);if(o==null)return su(e);const l=o===""?`<${r}>`:`<${r} ${o}>`,u=Du(e.children,n);return u===""&&oy.has(r.toLowerCase())?l:`${l}${u}</${r}>`}function kp(e,n){let r=n.get(e);return r==null&&(r=`style="${wp(e)}"`,n.size<fy&&n.set(e,r)),r}function py(e,n){let r="";for(const o in e){const l=e[o];if(l==null)continue;const u=ly[o]??(ay.test(o)?o:void 0);if(u==null)return;if(l===!1||typeof l=="number"&&Number.isNaN(l))continue;const d=o==="style"&&typeof l=="string"?kp(l,n):l===!0?u:`${u}="${wp(Array.isArray(l)?l.join(" ").trim():String(l))}"`;r+=r===""?d:` ${d}`}return r}function Sp(e){return e.indexOf("<")<0&&e.indexOf("&")<0?e:e.replace(uy,Cp)}function wp(e){return e.replace(dy,Cp)}function Cp(e){return cy[e]}function gy(e,n){return e.lineNumber===n.lineNumber&&e.side===n.side}function my(){return Re({tagName:"button",properties:{"data-utility-button":"",type:"button"},children:[Ms({name:"diffs-icon-plus",properties:{"data-icon":""}})]})}function ms(e){for(const n of e)if(n instanceof HTMLElement&&(n.hasAttribute("data-utility-button")||n.hasAttribute("data-gutter-utility-slot")||n.getAttribute("slot")==="gutter-utility-slot"||n.getAttribute("name")==="gutter-utility-slot"))return!0;return!1}var vy=class{constructor(e,n){O(this,"mode");O(this,"options");O(this,"hoveredLine");O(this,"hoveredToken");O(this,"pre");O(this,"gutterUtilityLine");O(this,"gutterUtilityContainer");O(this,"gutterUtilityButton");O(this,"gutterUtilitySlot");O(this,"interactiveLinesAttr",!1);O(this,"interactiveLineNumbersAttr",!1);O(this,"hasPointerListeners",!1);O(this,"hasDocumentPointerListeners",!1);O(this,"selectedRange",null);O(this,"selectedRangeHighlightSide");O(this,"selectedRangeLineNumberOnly",!1);O(this,"editorActiveLine",null);O(this,"editorActiveLineSide");O(this,"editorLineNumberOnly",!1);O(this,"proposedSelectedRange");O(this,"renderedSelectedLinesState");O(this,"renderedEditorActiveLineState");O(this,"selectionAnchor");O(this,"pointerSession",{mode:"idle"});O(this,"getHoveredLine",()=>{const e=this.gutterUtilityLine??this.hoveredLine;if(e!=null){if(this.mode==="diff"&&e.type==="diff-line")return{lineNumber:e.lineNumber,side:e.annotationSide};if(this.mode==="file"&&e.type==="line")return{lineNumber:e.lineNumber}}});O(this,"handlePointerClick",e=>{const{onHunkExpand:n,onLineClick:r,onLineNumberClick:o,onTokenClick:l,onMergeConflictActionClick:u}=this.options;n==null&&r==null&&o==null&&u==null&&l==null||this.options.onGutterUtilityClick!=null&&ms(e.composedPath())||(kn(this.options.__debugPointerEvents,"click","FileDiff.DEBUG.handlePointerClick:",e),this.handlePointerEvent({eventType:"click",event:e}))});O(this,"handlePointerMove",e=>{if(e.pointerType!=="mouse")return;const{lineHoverHighlight:n="disabled",onLineEnter:r,onLineLeave:o,onTokenEnter:l,onTokenLeave:u,enableGutterUtility:d=!1}=this.options;n==="disabled"&&!d&&r==null&&o==null&&l==null&&u==null||(kn(this.options.__debugPointerEvents,"move","FileDiff.DEBUG.handlePointerMove:",e),this.handlePointerEvent({eventType:"move",event:e}))});O(this,"handlePointerLeave",e=>{var r,o,l,u;const{__debugPointerEvents:n}=this.options;if(kn(n,"move","FileDiff.DEBUG.handlePointerLeave: no event"),this.hoveredLine==null&&this.hoveredToken==null){kn(n,"move","FileDiff.DEBUG.handlePointerLeave: returned early, no hovered line or token");return}this.hoveredToken!=null&&((o=(r=this.options).onTokenLeave)==null||o.call(r,this.hoveredToken,e),this.clearHoveredToken()),this.hoveredLine!=null&&((u=(l=this.options).onLineLeave)==null||u.call(l,{...this.hoveredLine,event:e}),this.clearHoveredLine()),this.placeUtility()});O(this,"handlePointerDown",e=>{if(e.pointerType==="mouse"&&e.button!==0||this.pre==null||this.pointerSession.mode!=="idle")return;const n=e.composedPath();ms(n)&&this.options.onGutterUtilityClick!=null?this.startGutterSelectionFromPointerDown(e):(e.pointerType!=="mouse"&&this.revealUtilityFromGutterPath(n),this.startLineSelectionFromPointerDown(e))});O(this,"handleDocumentPointerMove",e=>{switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();const n=this.resolveSelectionPoint(e,{source:"coordinates-first"});if(n==null)return;this.pointerSession.current=n,this.updateSelection(n.lineNumber,n.side);return}case"selecting":{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();const n=this.resolveSelectionInfo(e,{source:"coordinates-first",requireNumberColumn:!1});if(n==null||this.selectionAnchor==null)return;this.updateSelection(n.lineNumber,n.eventSide);return}case"pendingSingleLineUnselect":{if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault();const n=this.resolveSelectionInfo(e,{source:"coordinates-first",requireNumberColumn:!1});if(n==null||this.selectionAnchor==null)return;const r={lineNumber:n.lineNumber,side:n.eventSide};if(gy(this.pointerSession.pending,r))return;this.updateSelection(n.lineNumber,n.eventSide,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.notifySelectionChangeDelta(),this.pointerSession={mode:"selecting",pointerId:e.pointerId};return}}});O(this,"handleDocumentPointerUp",e=>{const{onGutterUtilityClick:n}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{const{pointerSession:r}=this;if(e.pointerId!==r.pointerId)return;e.preventDefault();const o=this.resolveSelectionPoint(e,{source:"coordinates-first"});o!=null&&(r.current=o,this.updateSelection(o.lineNumber,o.side));const l=this.buildSelectedLineRange(r.anchor,r.current);n==null||n({...l}),this.selectionAnchor=void 0,this.notifySelectionEnd(l),this.notifySelectionCommitted(l),this.clearProposedSelection(),this.clearPointerSession(),this.detachDocumentPointerListeners();return}case"pendingSingleLineUnselect":if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault(),this.updateSelection(null,void 0,!1),this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.detachDocumentPointerListeners(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(this.getCurrentSelectionRange()),this.clearProposedSelection();return;case"selecting":if(e.pointerId!==this.pointerSession.pointerId)return;e.preventDefault(),this.selectionAnchor=void 0,this.detachDocumentPointerListeners(),this.clearPointerSession(),this.notifySelectionEnd(this.getCurrentSelectionRange()),this.notifySelectionCommitted(this.getCurrentSelectionRange()),this.clearProposedSelection()}});O(this,"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.clearProposedSelection(),this.clearPendingSingleLineState(),this.clearPointerSession(),this.detachDocumentPointerListeners()}});O(this,"renderSelection",()=>{Ps(this.renderSelection);const e=this.getSelectionRenderState();if(this.pre==null)return;const{editorActiveLine:n,selectedLines:r}=e,o=!oh(this.renderedSelectedLinesState,r),l=!oh(this.renderedEditorActiveLineState,n);if(!o&&!l)return;o&&(this.renderedSelectedLinesState=void 0),l&&(this.renderedEditorActiveLineState=void 0);const u=this.pre.getAttribute("data-diff-type")==="split",d=o?this.resolveLineRenderRange(r,u,"selected-lines"):void 0,h=l?this.resolveLineRenderRange(n,u,"editor-active-line"):void 0,f=this.getLineRenderColumns(o?r:void 0,d,l?n:void 0,h),p=r.range==null||f.some(C=>C.renderSelectedLines),m=n.range==null||f.some(C=>C.renderEditorActiveLine);if(o)for(const C of this.pre.querySelectorAll("[data-selected-line]"))C.removeAttribute("data-selected-line");if(l)for(const C of this.pre.querySelectorAll("[data-editor-active-line]"))C.removeAttribute("data-editor-active-line");const v=d==null?void 0:Math.min(d.start,d.end),k=d==null?void 0:Math.max(d.start,d.end),x=v===k,S=h==null?void 0:h.start;for(const C of f){const{content:E,gutter:A,renderEditorActiveLine:w,renderSelectedLines:L}=C,b=Math.max(L?k??-1/0:-1/0,w?S??-1/0:-1/0),D=E.children.length;for(let F=0;F<D;F++){const N=E.children[F],z=A.children[F];if(!(N instanceof HTMLElement)||!(z instanceof HTMLElement))continue;const G=this.parseLineIndex(N,u);if((G??0)>b)break;if(G!=null){if(L&&v!=null&&k!=null&&G>=v&&G<=k){let V=x?"single":G===v?"first":G===k?"last":"";z.setAttribute("data-selected-line",V),r.lineNumberOnly||(N.setAttribute("data-selected-line",V),z.nextSibling instanceof HTMLElement&&N.nextSibling instanceof HTMLElement&&(N.nextSibling.hasAttribute("data-line-annotation")||N.nextSibling.hasAttribute("data-merge-conflict-actions"))&&(x?(V="last",N.setAttribute("data-selected-line","first")):G===v?V="":G===k&&N.setAttribute("data-selected-line",""),N.nextSibling.setAttribute("data-selected-line",V),z.nextSibling.setAttribute("data-selected-line",V)))}w&&G===S&&(z.setAttribute("data-editor-active-line",""),n.lineNumberOnly||N.setAttribute("data-editor-active-line",""))}}}o&&p&&(this.renderedSelectedLinesState=r),l&&m&&(this.renderedEditorActiveLineState=n)});this.mode=e,this.options=n}setOptions(e){this.options=e}cleanUp(){var e,n,r,o,l,u,d;(e=this.pre)==null||e.removeEventListener("click",this.handlePointerClick),(n=this.pre)==null||n.removeEventListener("pointerdown",this.handlePointerDown),(r=this.pre)==null||r.removeEventListener("pointermove",this.handlePointerMove),(o=this.pre)==null||o.removeEventListener("pointerleave",this.handlePointerLeave),(l=this.pre)==null||l.removeAttribute("data-interactive-lines"),(u=this.pre)==null||u.removeAttribute("data-interactive-line-numbers"),this.pre=void 0,(d=this.gutterUtilityContainer)==null||d.remove(),this.gutterUtilityLine=void 0,this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.clearHoveredLine(),this.clearHoveredToken(),this.detachDocumentPointerListeners(),this.clearPointerSession(),Ps(this.renderSelection),this.interactiveLinesAttr=!1,this.interactiveLineNumbersAttr=!1,this.hasPointerListeners=!1,this.setSelectionDirty()}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.gutterUtilityLine=void 0,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(),this.placeUtility()}setSelectionDirty(){this.renderedSelectedLinesState=void 0,this.renderedEditorActiveLineState=void 0}isSelectionDirty(){return this.renderedSelectedLinesState===void 0||this.renderedEditorActiveLineState===void 0}setSelection(e,n){const r=!(e===this.selectedRange||tu(e??void 0,this.selectedRange??void 0)),o=(n==null?void 0:n.lineNumberOnly)??!1,l=(n==null?void 0:n.activeLineSide)!==this.selectedRangeHighlightSide||o!==this.selectedRangeLineNumberOnly;!this.isSelectionDirty()&&!r&&!l||(this.proposedSelectedRange=void 0,this.selectedRange=e,this.selectedRangeHighlightSide=n==null?void 0:n.activeLineSide,this.selectedRangeLineNumberOnly=o,this.renderSelection(),this.placeUtility(),r&&(n==null?void 0:n.notify)!==!1&&this.notifySelectionCommitted(e))}setEditorActiveLine(e,{lineNumberOnly:n=!1,side:r}={}){const o=e!==this.editorActiveLine,l=r!==this.editorActiveLineSide||n!==this.editorLineNumberOnly;!this.isSelectionDirty()&&!o&&!l||(this.editorActiveLine=e,this.editorActiveLineSide=r,this.editorLineNumberOnly=n,this.renderSelection())}getSelection(){return this.selectedRange}handlePointerEvent({eventType:e,event:n}){var S,C;const{__debugPointerEvents:r}=this.options,o=n.composedPath();kn(r,e,"FileDiff.DEBUG.handlePointerEvent:",{eventType:e,composedPath:o});const l=this.resolvePointerTarget(o);kn(r,e,"FileDiff.DEBUG.handlePointerEvent: resolvePointerTarget result:",l);const{onLineClick:u,onLineNumberClick:d,onLineEnter:h,onLineLeave:f,onTokenClick:p,onTokenEnter:m,onTokenLeave:v,onHunkExpand:k,onMergeConflictActionClick:x}=this.options;switch(e){case"move":{const E=ja(l)&&((S=this.hoveredLine)==null?void 0:S.lineElement)===l.lineElement;Rs(l)&&((C=this.hoveredToken)==null?void 0:C.tokenElement)===l.tokenElement||(this.hoveredToken!=null&&(v==null||v(this.hoveredToken,n),this.clearHoveredToken()),Rs(l)&&(this.setHoveredToken(this.toTokenEventBaseProps(l)),m==null||m(this.hoveredToken,n))),E||(this.hoveredLine!=null&&(f==null||f({...this.hoveredLine,event:n}),this.clearHoveredLine()),ja(l)?(this.setHoveredLine(this.toEventBaseProps(l)),this.placeUtility(),h==null||h({...this.hoveredLine,event:n})):this.placeUtility());break}case"click":{if(l==null)break;if(ky(l)&&x!=null){x(l);break}if(xy(l)&&k!=null){k(l.hunkIndex,l.all||n.shiftKey?"both":l.direction,l.all||n.shiftKey?Number.POSITIVE_INFINITY:void 0);break}if(!ja(l))break;Rs(l)&&p!=null&&p(this.toTokenEventBaseProps(l),n);const E=this.toEventBaseProps(l);d!=null&&l.numberColumn?d({...E,event:n}):u!=null&&u({...E,event:n});break}}}syncPointerListeners(e){const{__debugPointerEvents:n,lineHoverHighlight:r="disabled",onLineClick:o,onLineNumberClick:l,onLineEnter:u,onLineLeave:d,onTokenClick:h,onTokenEnter:f,onTokenLeave:p,onHunkExpand:m,onMergeConflictActionClick:v,enableGutterUtility:k=!1,enableLineSelection:x=!1,onGutterUtilityClick:S}=this.options,C=S!=null,E=r!=="disabled"||o!=null||l!=null||u!=null||d!=null||h!=null||f!=null||p!=null||m!=null||v!=null||k||x||C;E&&!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,kn(n,"click","FileDiff.DEBUG.attachEventListeners: Attaching click events for:",(()=>{const L=[];return(n==="both"||n==="click")&&(o!=null&&L.push("onLineClick"),l!=null&&L.push("onLineNumberClick"),m!=null&&L.push("expandable hunk separators"),v!=null&&L.push("merge conflict actions")),L})()),kn(n,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer move event"),kn(n,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer leave event")):!E&&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 A=this.pointerSession.mode==="selecting"||this.pointerSession.mode==="pendingSingleLineUnselect",w=this.pointerSession.mode==="gutterSelecting";(!x&&A||!C&&w)&&(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,o=e!=null,l=n!=null||r;o&&!this.interactiveLinesAttr?(this.pre.setAttribute("data-interactive-lines",""),this.interactiveLinesAttr=!0):!o&&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)}startLineSelectionFromPointerDown(e){var h,f;const{enableLineSelection:n=!1}=this.options;if(!n)return;const r=this.resolveSelectionInfo(e,{source:"event-path",requireNumberColumn:!0});if(r==null)return;const{pre:o}=this;if(o==null)return;const{lineNumber:l,eventSide:u,lineIndex:d}=r;if(e.shiftKey&&this.selectedRange!=null){const p=this.getIndexesFromSelection(this.selectedRange,o.getAttribute("data-diff-type")==="split");if(p==null)return;const m=p.start<=p.end?d>=p.start:d<=p.end;this.selectionAnchor={lineNumber:m?this.selectedRange.start:this.selectedRange.end,side:m?this.selectedRange.side:this.selectedRange.endSide??this.selectedRange.side},this.updateSelection(l,u,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:"selecting",pointerId:e.pointerId},this.attachDocumentPointerListeners();return}if(((h=this.selectedRange)==null?void 0:h.start)===l&&((f=this.selectedRange)==null?void 0:f.end)===l){const p={lineNumber:l,side:u};this.selectionAnchor=p,this.pointerSession={mode:"pendingSingleLineUnselect",pointerId:e.pointerId,anchor:p,pending:p},this.attachDocumentPointerListeners();return}this.options.controlledSelection===!0?this.proposedSelectedRange=null:this.selectedRange=null,this.placeUtility(),this.selectionAnchor={lineNumber:l,side:u},this.updateSelection(l,u,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.pointerSession={mode:"selecting",pointerId:e.pointerId},this.attachDocumentPointerListeners()}startGutterSelectionFromPointerDown(e){const{onGutterUtilityClick:n}=this.options;if(n==null)return;const r=this.currentSelectionEnds(),o=(r==null?void 0:r.bottom)??this.resolveSelectionPoint(e,{source:"event-path",excludeUtility:!1}),l=(r==null?void 0:r.top)??o;o==null||l==null||(e.preventDefault(),e.stopPropagation(),this.pointerSession={mode:"gutterSelecting",pointerId:e.pointerId,anchor:l,current:o},this.selectionAnchor={lineNumber:l.lineNumber,side:l.side},this.updateSelection(o.lineNumber,o.side,!1),this.notifySelectionStart(this.getCurrentSelectionRange()),this.attachDocumentPointerListeners())}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",""))}clearHoveredToken(){this.hoveredToken!=null&&(this.hoveredToken=void 0)}setHoveredToken(e){this.hoveredToken!=null&&this.clearHoveredToken(),this.hoveredToken=e}ensureGutterUtilityNode(e){var n;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((n=this.gutterUtilitySlot)==null||n.remove(),this.gutterUtilitySlot=void 0,this.gutterUtilityButton==null){const r=document.createElement("div");r.innerHTML=Kn(my());const o=r.firstElementChild;if(!(o instanceof HTMLButtonElement))throw new Error("InteractionManager.ensureGutterUtilityNode: Node element should be a button");o.remove(),this.gutterUtilityButton=o}this.gutterUtilityButton.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilityButton)}}revealUtilityFromGutterPath(e){if(this.placeUtilityFromSelection())return;const n=this.resolvePointerTarget(e);Gr(n)&&n.numberColumn&&this.showUtilityOnLine(this.toEventBaseProps(n))}placeUtility(){if(!this.placeUtilityFromSelection()){if(this.hoveredLine!=null){this.showUtilityOnLine(this.hoveredLine);return}this.hideUtility()}}placeUtilityFromSelection(){const e=this.currentSelectionEnds();if(e==null)return!1;const n=this.targetForSelectionPoint(e.bottom);return n==null?this.hideUtility():this.showUtilityOnLine(this.toEventBaseProps(n)),!0}showUtilityOnLine(e){this.gutterUtilityContainer!=null&&(this.gutterUtilityLine=e,e.numberElement.appendChild(this.gutterUtilityContainer))}hideUtility(){var e;(e=this.gutterUtilityContainer)==null||e.remove(),this.gutterUtilityLine=void 0}currentSelectionEnds(){const e=this.getCurrentSelectionRange();return e==null?void 0:this.selectionEnds(e)}selectionEnds(e){const n={lineNumber:e.start,side:e.side},r={lineNumber:e.end,side:e.endSide??e.side},o=this.selectionPointRowIndex(n),l=this.selectionPointRowIndex(r);if(!(o==null||l==null))return o>l?{top:r,bottom:n}:{top:n,bottom:r}}selectionPointRowIndex(e){const n=this.getLineIndex(e.lineNumber,e.side);if(n!=null)return this.isSplitDiff()?n[1]:n[0]}targetForSelectionPoint(e){if(this.pre==null)return;const n=this.getLineIndex(e.lineNumber,e.side);if(n==null)return;const r=this.mode==="diff"?`${n[0]},${n[1]}`:`${n[0]}`,o=this.pre.querySelectorAll(`[data-column-number="${e.lineNumber}"][data-line-index="${r}"]`);for(const l of o){if(!(l instanceof HTMLElement))continue;const u=this.resolvePointerTarget(_r(l));if(Gr(u)&&!(this.mode==="diff"&&e.side!=null&&u.side!==e.side))return u}}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"})}selectionInfoFromPath(e,n){const r=this.resolvePointerTarget(e);if(Gr(r)&&!(n&&!r.numberColumn)&&r.splitLineIndex!=null)return{lineIndex:r.splitLineIndex,lineNumber:r.lineNumber,eventSide:this.mode==="diff"?r.side:void 0}}resolveSelectionInfo(e,n){const r=this.resolveSelectionPath(e,n);return r!=null?this.selectionInfoFromPath(r,n.requireNumberColumn):void 0}selectionPointFromPath(e){const n=this.resolvePointerTarget(e);if(Gr(n))return{lineNumber:n.lineNumber,side:this.mode==="diff"?n.side:void 0}}resolveSelectionPoint(e,n){const r=this.resolveSelectionPath(e,n);return r!=null?this.selectionPointFromPath(r):void 0}resolveSelectionPath(e,n){const r=n.excludeUtility!==!1;switch(n.source){case"event-path":return this.pathFromEventPath(e.composedPath(),r);case"coordinates-first":{const o=this.pathFromCoordinates(e,r);return o!==void 0?o??void 0:this.pathFromEventPath(e.composedPath(),r)}}}pathFromCoordinates(e,n){const r=this.hitTest(e);if(r!==void 0)return r===null?null:this.pathFromElement(r,n)??null}pathFromEventPath(e,n){if(!(n&&ms(e))){for(const r of e)if(r instanceof Element)return this.pathFromElement(r,n)}}pathFromElement(e,n){const r=_r(e);if(n&&ms(r))return;const o=wy(e);return o!=null?_r(o):this.pathFromAnnotationSlot(e)}pathFromAnnotationSlot(e){var l;const n=(l=Cy(e))==null?void 0:l.previousElementSibling;if(n instanceof HTMLElement&&(n.hasAttribute("data-line")||n.hasAttribute("data-column-number")))return _r(n);const r=Ey(by(e));if(r==null)return;const o=this.targetForSelectionPoint(r);return o!=null?_r(o.lineElement):void 0}hitTest(e){var o;if(!Number.isFinite(e.clientX)||!Number.isFinite(e.clientY))return;const n=(o=this.pre)==null?void 0:o.getRootNode(),r=rh(n)?n:rh(document)?document:void 0;if(r!=null)return r.elementFromPoint(e.clientX,e.clientY)}getLineIndex(e,n){const{getLineIndex:r}=this.options;return r!=null?r(e,n):[e-1,e-1]}getCurrentSelectionRange(){return this.proposedSelectedRange!==void 0?this.proposedSelectedRange:this.selectedRange}clearProposedSelection(){this.proposedSelectedRange=void 0}updateSelection(e,n,r=!0){var u,d;const o=this.getCurrentSelectionRange();let l;if(e==null)l=null;else{const h=((u=this.selectionAnchor)==null?void 0:u.side)??n,f=((d=this.selectionAnchor)==null?void 0:d.lineNumber)??e;l=this.buildSelectionRange(f,e,h,n)}tu(o??void 0,l??void 0)||(this.selectedRangeHighlightSide=void 0,this.selectedRangeLineNumberOnly=!1,this.options.controlledSelection===!0?this.proposedSelectedRange=l:(this.selectedRange=l,xt(this.renderSelection)),this.placeUtility(),r&&this.notifySelectionChangeDelta())}getIndexesFromSelection(e,n){if(this.pre==null)return;const r=this.getLineIndex(e.start,e.side),o=this.getLineIndex(e.end,e.endSide??e.side);return r!=null&&o!=null?{start:n?r[1]:r[0],end:n?o[1]:o[0]}:void 0}getSelectionRenderState(){return{selectedLines:{range:this.selectedRange,highlightSide:this.selectedRangeHighlightSide,lineNumberOnly:this.selectedRangeLineNumberOnly},editorActiveLine:{range:this.editorActiveLine==null?null:{start:this.editorActiveLine,end:this.editorActiveLine,side:this.editorActiveLineSide},highlightSide:this.editorActiveLineSide,lineNumberOnly:this.editorLineNumberOnly}}}resolveLineRenderRange(e,n,r){if(e.range==null)return;const o=this.getIndexesFromSelection(e.range,n);if(o==null)throw console.error({rowRange:o,range:e.range}),new Error(`InteractionManager.renderSelection: No valid ${r} rowRange`);return o}getLineRenderColumns(e,n,r,o){if(this.pre==null||n==null&&o==null)return[];const{children:l}=this.pre;if(l.length>2)throw console.error(l),new Error("InteractionManager.renderSelection: Somehow there are more than 2 code elements...");const u=[];for(const d of l){const h=d.hasAttribute("data-deletions")?"deletions":d.hasAttribute("data-additions")?"additions":void 0,f=e!=null&&n!=null&&(e.highlightSide==null||h==null||e.highlightSide===h),p=r!=null&&o!=null&&(r.highlightSide==null||h==null||r.highlightSide===h);if(!f&&!p)continue;const[m,v]=d.children;if(!(m instanceof HTMLElement)||!(v instanceof HTMLElement))throw new Error("InteractionManager.renderSelection: missing gutter or content element");if(v.children.length!==m.children.length)throw new Error("InteractionManager.renderSelection: gutter and content children dont match, something is wrong");u.push({content:v,gutter:m,renderEditorActiveLine:p,renderSelectedLines:f})}return u}notifySelectionCommitted(e){var n,r;(r=(n=this.options).onLineSelected)==null||r.call(n,e)}notifySelectionChangeDelta(){var e,n;(n=(e=this.options).onLineSelectionChange)==null||n.call(e,this.getCurrentSelectionRange()??null)}notifySelectionStart(e){var n,r;(r=(n=this.options).onLineSelectionStart)==null||r.call(n,e)}notifySelectionEnd(e){var n,r;(r=(n=this.options).onLineSelectionEnd)==null||r.call(n,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}}toTokenEventBaseProps({lineCharEnd:e,lineCharStart:n,lineNumber:r,side:o,tokenElement:l,tokenText:u}){return this.mode==="file"?{type:"token",lineCharEnd:e,lineCharStart:n,lineNumber:r,tokenElement:l,tokenText:u}:{type:"token",lineCharEnd:e,lineCharStart:n,lineNumber:r,side:o,tokenElement:l,tokenText:u}}buildSelectedLineRange(e,n){return this.buildSelectionRange(e.lineNumber,n.lineNumber,e.side,n.side)}buildSelectionRange(e,n,r,o){return{start:e,end:n,...r!=null?{side:r}:{},...r!==o&&o!=null?{endSide:o}:{}}}resolvePointerTarget(e){let n=!1,r,o,l,u,d,h,f,p,m,v;for(const x of e){if(!(x instanceof HTMLElement))continue;if(v==null&&x.hasAttribute("data-merge-conflict-action")){const A=x.getAttribute("data-merge-conflict-action")??void 0,w=x.getAttribute("data-merge-conflict-conflict-index")??void 0,L=w!=null?Number.parseInt(w,10):NaN;Sy(A)&&Number.isFinite(L)&&(v={kind:"merge-conflict-action",resolution:A,conflictIndex:L})}if(h==null&&x.hasAttribute("data-char")){h=x;const A=x.getAttribute("data-char");if(A!=null){const w=Number.parseInt(A,10);if(!Number.isNaN(w)){const L=x.textContent??"",b=w+L.length;(L.trim()!==""||this.options.enableTokenInteractionsOnWhitespace===!0)&&(f={tokenElement:h,lineCharStart:w,lineCharEnd:b,tokenText:L});continue}}}const S=d==null?x.getAttribute("data-column-number")??void 0:void 0;if(S!=null){d=x,m=Number.parseInt(S,10),n=!0,r=lh(x),u=x.getAttribute("data-line-index")??void 0;continue}const C=l==null?x.getAttribute("data-line")??void 0:void 0;if(C!=null){l=x,m=Number.parseInt(C,10),r=lh(x),u=x.getAttribute("data-line-index")??void 0;continue}if(p==null&&(x.hasAttribute("data-expand-button")||x.hasAttribute("data-unmodified-lines"))){p={hunkIndex:void 0,direction:x.hasAttribute("data-expand-up")?"up":x.hasAttribute("data-expand-down")?"down":"both",all:x.hasAttribute("data-expand-all-button")};continue}const E=p!=null?x.getAttribute("data-expand-index")??void 0:void 0;if(p!=null&&E!=null){const A=Number.parseInt(E,10);Number.isNaN(A)||(p.hunkIndex=A);continue}if(o==null&&x.hasAttribute("data-code")){o=x;break}}if(v!=null)return v;if((p==null?void 0:p.hunkIndex)!=null)return{type:"line-info",hunkIndex:p.hunkIndex,direction:p.direction,all:p.all};if(l??(l=u!=null?ih(o,`[data-line][data-line-index="${u}"]`):void 0),d??(d=u!=null?ih(o,`[data-column-number][data-line-index="${u}"]`):void 0),o==null||l==null||d==null||r==null||m==null||Number.isNaN(m))return;const k=this.parseLineIndex(l,this.isSplitDiff());return f!=null?this.mode==="file"?{kind:"token",lineType:r,lineElement:l,lineNumber:m,numberColumn:n,numberElement:d,side:void 0,splitLineIndex:k,...f}:{kind:"token",lineType:r,lineElement:l,lineNumber:m,numberColumn:n,numberElement:d,side:sh(r,o),splitLineIndex:k,...f}:this.mode==="file"?{kind:"line",lineType:r,lineElement:l,lineNumber:m,numberColumn:n,numberElement:d,side:void 0,splitLineIndex:k}:{kind:"line",lineType:r,lineElement:l,lineNumber:m,numberColumn:n,numberElement:d,side:sh(r,o),splitLineIndex:k}}isSplitDiff(){var e;return((e=this.pre)==null?void 0:e.getAttribute("data-diff-type"))==="split"}parseLineIndex(e,n){const r=(e.getAttribute("data-line-index")??"").split(",").map(o=>Number.parseInt(o,10)).filter(o=>!Number.isNaN(o));if(n&&r.length===2)return r[1];if(!n)return r[0]}};function nh({enableTokenInteractionsOnWhitespace:e,enableGutterUtility:n,lineHoverHighlight:r,onGutterUtilityClick:o,onLineClick:l,onLineEnter:u,onLineLeave:d,onLineNumberClick:h,onTokenClick:f,onTokenEnter:p,onTokenLeave:m,renderGutterUtility:v,__debugPointerEvents:k,enableLineSelection:x,controlledSelection:S,onLineSelected:C,onLineSelectionStart:E,onLineSelectionChange:A,onLineSelectionEnd:w},L,b,D){return{enableTokenInteractionsOnWhitespace:e,enableGutterUtility:yy({enableGutterUtility:n,renderGutterUtility:v,onGutterUtilityClick:o}),usesCustomGutterUtility:v!=null,lineHoverHighlight:r,onGutterUtilityClick:o,onHunkExpand:L,onMergeConflictActionClick:D,onLineClick:l,onLineEnter:u,onLineLeave:d,onLineNumberClick:h,onTokenClick:f,onTokenEnter:p,onTokenLeave:m,__debugPointerEvents:k,enableLineSelection:x,controlledSelection:S,onLineSelected:C,onLineSelectionStart:E,onLineSelectionChange:A,onLineSelectionEnd:w,getLineIndex:b}}function yy({enableGutterUtility:e,renderGutterUtility:n,onGutterUtilityClick:r}){if(r!=null&&n!=null)throw new Error("Cannot use both 'onGutterUtilityClick' and 'renderGutterUtility'. Use only one gutter utility API.");return e??!1}function Gr(e){return e!=null&&"kind"in e&&e.kind==="line"}function Rs(e){return e!=null&&"kind"in e&&e.kind==="token"}function ja(e){return Gr(e)||Rs(e)}function xy(e){return"type"in e&&e.type==="line-info"}function ky(e){return"kind"in e&&e.kind==="merge-conflict-action"}function Sy(e){return e==="current"||e==="incoming"||e==="both"}function ih(e,n){const r=e==null?void 0:e.querySelector(n);return r instanceof HTMLElement?r:void 0}function _r(e){const n=[];let r=e;for(;r!=null;)n.push(r),r=r.parentNode;return n}function wy(e){const n=e.closest("[data-line], [data-column-number]");if(n instanceof HTMLElement)return n;const r=e.closest('[data-line-annotation], [data-gutter-buffer="annotation"]');if(!(r instanceof HTMLElement))return;const o=r.previousElementSibling;return o instanceof HTMLElement&&(o.hasAttribute("data-line")||o.hasAttribute("data-column-number"))?o:void 0}function Cy(e){var o;const n=e.closest('[slot^="annotation-"]'),r=(o=n instanceof HTMLElement&&n.assignedSlot!=null?n.assignedSlot:e.tagName==="SLOT"?e:void 0)==null?void 0:o.closest("[data-line-annotation]");return r instanceof HTMLElement?r:void 0}function by(e){const n=e.closest('[slot^="annotation-"]');if(n instanceof HTMLElement)return n.getAttribute("slot")??void 0;if(e instanceof HTMLElement){const r=e.getAttribute("name")??void 0;return r!=null&&r.startsWith("annotation-")?r:void 0}}function Ey(e){if(e==null)return;const n=/^annotation-(?:(additions|deletions)-)?(\d+)$/.exec(e);if(n==null)return;const r=Number.parseInt(n[2],10);if(!(!Number.isFinite(r)||r<=0))return{lineNumber:r,side:n[1]}}function rh(e){return e!=null&&typeof e.elementFromPoint=="function"}function Ly(e,n){return e===n||tu(e??void 0,n??void 0)}function oh(e,n){return(e==null?void 0:e.highlightSide)===n.highlightSide&&(e==null?void 0:e.lineNumberOnly)===n.lineNumberOnly&&Ly((e==null?void 0:e.range)??null,n.range)}function sh(e,n){switch(e){case"change-deletion":return"deletions";case"change-addition":return"additions";default:return n.hasAttribute("data-deletions")?"deletions":"additions"}}function lh(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 kn(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}console.log(...r)}var kt,Ry=(kt=class{constructor(){O(this,"observedNodes",new Map);O(this,"applyColumnUpdates",n=>{for(const[r,o]of n){const l=o.codeInlineSize!=null?Ty(o.codeInlineSize):r.codeWidth,u=o.numberInlineSize!=null?Dy(o.numberInlineSize):r.numberWidth,d=l!==r.codeWidth,h=u!==r.numberWidth;!d&&!h||(r.codeWidth=l,r.numberWidth=u,r.applyColumnVariables&&bp(r,{codeWidthChanged:d,numberWidthChanged:h}))}})}static getResizeObserver(){const n=kt.resizeObserver??new ResizeObserver(kt.handleSharedResizeEntries);return kt.resizeObserver=n,n}static handleSharedResizeEntries(n){const r=new Map;for(const o of n){const l=kt.managersByElement.get(o.target);if(l==null)continue;const u=r.get(l);u==null?r.set(l,[o]):u.push(o)}for(const[o,l]of r)o.handleResizeEntries(l)}setup(n,{disableAnnotations:r,columnVariables:o="apply"}){const l=new Set,u=o==="apply";let d=0;const h=new Map(this.observedNodes);this.observedNodes.clear();for(const f of n.children){if(d===2)break;const p=(()=>{if(f instanceof HTMLElement&&f.tagName==="CODE")return f})();if(p==null)continue;d++;let m=h.get(p);if(m!=null&&m.type!=="code")throw new Error("ResizeManager.setup: somehow a code node is being used for an annotation, should be impossible");let v=p.firstElementChild;v instanceof HTMLElement||(v=null),m!=null?(this.observedNodes.set(p,m),h.delete(p),m.numberElement!==v?(m.numberElement!=null&&(this.unobserve(m.numberElement),h.delete(m.numberElement)),v!=null&&(this.observe(v),h.delete(v),this.observedNodes.set(v,m)),m.numberElement=v,m.numberWidth=0):m.numberElement!=null?(h.delete(m.numberElement),this.observedNodes.set(m.numberElement,m)):m.numberWidth=0,Ny(m,u)):(m={type:"code",codeElement:p,numberElement:v,codeWidth:"auto",numberWidth:0,applyColumnVariables:u},this.observedNodes.set(p,m),this.observe(p),v!=null&&(this.observedNodes.set(v,m),this.observe(v)))}if(d>1&&!r){const f=n.querySelectorAll('[data-line-annotation*=","]'),p=new Map;for(const m of f){if(!(m instanceof HTMLElement))continue;const v=m.getAttribute("data-line-annotation")??"";if(!/^-?\d+,-?\d+$/.test(v)){console.error("DiffFileRenderer.setupResizeObserver: Invalid element or annotation",{lineAnnotation:v,element:m});continue}let k=p.get(v);k==null&&(k=[],p.set(v,k)),k.push(m)}for(const[m,v]of p){if(v.length!==2){console.error("DiffFileRenderer.setupResizeObserver: Bad Pair",m,v);continue}const[k,x]=v,S=k.firstElementChild,C=x.firstElementChild;if(!(k instanceof HTMLElement)||!(x instanceof HTMLElement)||!(S instanceof HTMLElement)||!(C instanceof HTMLElement))continue;let E=h.get(S);if(E!=null){this.observedNodes.set(S,E),this.observedNodes.set(C,E),h.delete(S),h.delete(C);continue}const A=S.getBoundingClientRect().height,w=C.getBoundingClientRect().height;E={type:"annotations",column1:{container:k,child:S,childHeight:A},column2:{container:x,child:C,childHeight:w},currentHeight:"auto"},l.add({child1:S,child2:C,item:E,newHeight:Math.max(A,w)})}for(const m of l)this.applyNewHeight(m.item,m.newHeight),this.observedNodes.set(m.child1,m.item),this.observedNodes.set(m.child2,m.item),this.observe(m.child1),this.observe(m.child2);l.clear()}for(const[f,p]of h)this.unobserve(f),p.type==="code"?My(p):Ay(p);h.clear()}cleanUp(){for(const n of this.observedNodes.keys())this.unobserve(n);this.observedNodes.clear()}observe(n){const{managersByElement:r}=kt,o=r.get(n);if(o!==this){if(o!=null&&o!==this)throw new Error("ResizeManager.observe: element is already owned by another ResizeManager");r.set(n,this),kt.getResizeObserver().observe(n)}}unobserve(n){const{managersByElement:r,resizeObserver:o}=kt,l=r.get(n);if(l!=null){if(l!==this)throw new Error("ResizeManager.unobserve: element is owned by another ResizeManager");r.delete(n),o==null||o.unobserve(n),o!=null&&r.size===0&&(o.disconnect(),kt.resizeObserver=void 0)}}handleResizeEntries(n){const r=new Map,o=new Set;for(const l of n){const{target:u,borderBoxSize:d,contentBoxSize:h}=l;if(!(u instanceof HTMLElement)){console.error("ResizeManager.handleResizeEntries: Invalid element for ResizeObserver",l);continue}const f=this.observedNodes.get(u);if(f==null){console.error("ResizeManager.handleResizeEntries: Not a valid observed node",l);continue}if(f.type==="annotations"){const p=(()=>{if(u===f.column1.child)return f.column1;if(u===f.column2.child)return f.column2})();if(p==null){console.error("ResizeManager.handleResizeEntries: Couldn't find a column for",{item:f,target:u});continue}p.childHeight=d[0].blockSize,o.add(f)}else if(f.type==="code"){const p=r.get(f)??{},m=h[0].inlineSize;u===f.codeElement?p.codeInlineSize=m:u===f.numberElement&&(p.numberInlineSize=m),r.set(f,p)}}this.applyAnnotationUpdates(o),o.clear(),this.applyColumnUpdates(r),r.clear()}applyAnnotationUpdates(n){for(const r of n)this.applyNewHeight(r,Math.max(r.column1.childHeight,r.column2.childHeight))}applyNewHeight(n,r){r!==n.currentHeight&&(n.currentHeight=Math.max(r,0),n.column1.container.style.setProperty("--diffs-annotation-min-height",`${n.currentHeight}px`),n.column2.container.style.setProperty("--diffs-annotation-min-height",`${n.currentHeight}px`))}},O(kt,"resizeObserver"),O(kt,"managersByElement",new Map),kt);function Ty(e){const n=Math.max(Math.floor(e),0);return n===0?"auto":n}function Dy(e){return Math.max(Math.ceil(e),0)}function Ny(e,n){e.applyColumnVariables!==n&&(e.applyColumnVariables=n,n?bp(e,{codeWidthChanged:!0,numberWidthChanged:!0}):Ep(e))}function bp(e,{codeWidthChanged:n,numberWidthChanged:r}){const{codeElement:o,codeWidth:l,numberWidth:u}=e;if(n&&o.style.setProperty("--diffs-column-width",`${typeof l=="number"?`${l}px`:"auto"}`),r&&o.style.setProperty("--diffs-column-number-width",`${u===0?"auto":`${u}px`}`),n||r&&l!=="auto"){const d=typeof l=="number"?Math.max(l-u,0):0;o.style.setProperty("--diffs-column-content-width",`${d>0?`${d}px`:"auto"}`)}}function Ep(e){e.codeElement.style.removeProperty("--diffs-column-content-width"),e.codeElement.style.removeProperty("--diffs-column-number-width"),e.codeElement.style.removeProperty("--diffs-column-width")}function My(e){e.codeElement.isConnected&&Ep(e)}function Ay(e){e.column1.container.isConnected&&e.column1.container.style.removeProperty("--diffs-annotation-min-height"),e.column2.container.isConnected&&e.column2.container.style.removeProperty("--diffs-annotation-min-height")}function Lp(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 Py(e,n){return e.endsWith(`\r
|
|
63
|
+
`)?n+`\r
|
|
64
|
+
`:e.endsWith("\r")?n+"\r":e.endsWith(`
|
|
65
|
+
`)?n+`
|
|
66
|
+
`:n}function Iy(e){var n;return Re({tagName:"div",children:[Re({tagName:"div",children:(n=e.annotations)==null?void 0:n.map(r=>Re({tagName:"slot",properties:{name:r}})),properties:{"data-annotation-content":""}})],properties:{"data-line-annotation":`${e.hunkIndex},${e.lineIndex}`}})}function zy(e,n){return Re({tagName:"div",children:e,properties:{"data-content":"",style:`grid-row: span ${n}`}})}function Hy(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 Oy({fileOrDiff:e,mode:n,stickyHeader:r}){const o="type"in e?e:void 0,l={"data-diffs-header":n,"data-change-type":o==null?void 0:o.type,"data-sticky":r?"":void 0};return Re({tagName:"div",children:[n==="custom"?Re({tagName:"slot",properties:{name:xu}}):jy({name:e.name,prevName:"prevName"in e?e.prevName:void 0,iconType:(o==null?void 0:o.type)??"file"}),...n==="custom"?[]:[Fy(o)]],properties:l})}function jy({name:e,prevName:n,iconType:r}){const o=[Re({tagName:"slot",properties:{name:jh}}),Ms({name:Hy(r),properties:{"data-change-icon":r}})];return n!=null&&(o.push(Re({tagName:"div",children:[Re({tagName:"bdi",children:[dn(n)]})],properties:{"data-prev-name":""}})),o.push(Ms({name:"diffs-icon-arrow-right-short",properties:{"data-rename-icon":""}}))),o.push(Re({tagName:"div",children:[Re({tagName:"bdi",children:[dn(e)]})],properties:{"data-title":""}})),o.push(Re({tagName:"slot",properties:{name:Fh}})),Re({tagName:"div",children:o,properties:{"data-header-content":""}})}function Fy(e){const n=[];if(e!=null){let r=0,o=0;for(const l of e.hunks)r+=l.additionLines,o+=l.deletionLines;(o>0||r===0)&&n.push(Re({tagName:"span",children:[dn(`-${o}`)],properties:{"data-deletions-count":""}})),(r>0||o===0)&&n.push(Re({tagName:"span",children:[dn(`+${r}`)],properties:{"data-additions-count":""}}))}return n.push(Re({tagName:"slot",properties:{name:_h}})),Re({tagName:"div",children:n,properties:{"data-metadata":""}})}function _y(e){return Re({tagName:"pre",properties:$y(e)})}function $y({diffIndicators:e,disableBackground:n,disableLineNumbers:r,overflow:o,split:l,totalLines:u,type:d,customProperties:h}){return{...h,"data-diff":d==="diff"?"":void 0,"data-file":d==="file"?"":void 0,"data-diff-type":d==="diff"?l?"split":"single":void 0,"data-overflow":o,"data-disable-line-numbers":r?"":void 0,"data-background":n?void 0:"","data-indicators":e==="bars"||e==="classic"?e:void 0,style:`--diffs-min-number-column-width-default:${`${u}`.length}ch;`}}function Uy(e,{theme:n,preferredHighlighter:r}){return{langs:Array.isArray(e)?e:[e??"text"],themes:wu(n),preferredHighlighter:Su(r)}}function lu(e){return e.startingLine===0&&e.totalLines===1/0&&e.bufferBefore===0&&e.bufferAfter===0}const Vy=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
|
|
67
|
+
<symbol id="diffs-icon-arrow-right-short" viewBox="0 0 16 16">
|
|
68
|
+
<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"/>
|
|
69
|
+
</symbol>
|
|
70
|
+
<symbol id="diffs-icon-brand-github" viewBox="0 0 16 16">
|
|
71
|
+
<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"/>
|
|
72
|
+
</symbol>
|
|
73
|
+
<symbol id="diffs-icon-chevron" viewBox="0 0 16 16">
|
|
74
|
+
<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"/>
|
|
75
|
+
</symbol>
|
|
76
|
+
<symbol id="diffs-icon-chevrons-narrow" viewBox="0 0 10 16">
|
|
77
|
+
<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"/>
|
|
78
|
+
</symbol>
|
|
79
|
+
<symbol id="diffs-icon-diff-split" viewBox="0 0 16 16">
|
|
80
|
+
<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"/>
|
|
81
|
+
</symbol>
|
|
82
|
+
<symbol id="diffs-icon-diff-unified" viewBox="0 0 16 16">
|
|
83
|
+
<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"/>
|
|
84
|
+
</symbol>
|
|
85
|
+
<symbol id="diffs-icon-expand" viewBox="0 0 16 16">
|
|
86
|
+
<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"/>
|
|
87
|
+
</symbol>
|
|
88
|
+
<symbol id="diffs-icon-expand-all" viewBox="0 0 16 16">
|
|
89
|
+
<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"/>
|
|
90
|
+
</symbol>
|
|
91
|
+
<symbol id="diffs-icon-eye-slash" viewBox="0 0 16 16">
|
|
92
|
+
<path d="m13.47 1.47-12 12 1.06 1.06 12-12zM8 14c-.92 0-1.802-.208-2.624-.547l1.173-1.174c.476.142.963.221 1.451.221 1.66 0 3.307-.949 4.626-2.196a10.4 10.4 0 0 0 1.494-1.751A5 5 0 0 0 14.443 8a5 5 0 0 0-.323-.553 10 10 0 0 0-1.238-1.5l1.061-1.062C15.222 6.173 16 7.511 16 8c0 1.05-3.582 6-8 6"/><path d="M8 11q-.084 0-.167-.005l3.162-3.162q.006.083.005.167a3 3 0 0 1-3 3M5.005 8.167l3.162-3.162a3 3 0 0 0-3.162 3.162"/><path d="M8 3.5c.485 0 .97.081 1.445.227l1.168-1.169C9.794 2.212 8.915 2 8 2 3.582 2 0 6.8 0 8c0 .555.766 1.88 2.027 3.144l1.06-1.06a9.5 9.5 0 0 1-1.203-1.461 4.3 4.3 0 0 1-.345-.617L1.536 8l.003-.006c.064-.149.176-.359.345-.617a9.8 9.8 0 0 1 1.482-1.73C4.675 4.427 6.326 3.5 8 3.5"/>
|
|
93
|
+
</symbol>
|
|
94
|
+
<symbol id="diffs-icon-file-code" viewBox="0 0 16 16">
|
|
95
|
+
<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"/>
|
|
96
|
+
</symbol>
|
|
97
|
+
<symbol id="diffs-icon-plus" viewBox="0 0 16 16">
|
|
98
|
+
<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"/>
|
|
99
|
+
</symbol>
|
|
100
|
+
<symbol id="diffs-icon-symbol-added" viewBox="0 0 16 16">
|
|
101
|
+
<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"/>
|
|
102
|
+
</symbol>
|
|
103
|
+
<symbol id="diffs-icon-symbol-added-duo" viewBox="0 0 16 16">
|
|
104
|
+
<path d="M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8" opacity=".2"/><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"/>
|
|
105
|
+
</symbol>
|
|
106
|
+
<symbol id="diffs-icon-symbol-added-fill" viewBox="0 0 16 16">
|
|
107
|
+
<path fill-rule="evenodd" d="M8 0c6.588 0 8 1.412 8 8s-1.412 8-8 8-8-1.412-8-8 1.412-8 8-8m0 4a.75.75 0 0 0-.75.75v2.5h-2.5a.75.75 0 0 0 0 1.5h2.5v2.5a.75.75 0 0 0 1.5 0v-2.5h2.5a.75.75 0 0 0 0-1.5h-2.5v-2.5A.75.75 0 0 0 8 4" clip-rule="evenodd"/>
|
|
108
|
+
</symbol>
|
|
109
|
+
<symbol id="diffs-icon-symbol-deleted" viewBox="0 0 16 16">
|
|
110
|
+
<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"/>
|
|
111
|
+
</symbol>
|
|
112
|
+
<symbol id="diffs-icon-symbol-deleted-duo" viewBox="0 0 16 16">
|
|
113
|
+
<path d="M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8" opacity=".2"/><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"/>
|
|
114
|
+
</symbol>
|
|
115
|
+
<symbol id="diffs-icon-symbol-deleted-fill" viewBox="0 0 16 16">
|
|
116
|
+
<path fill-rule="evenodd" d="M8 0c6.588 0 8 1.412 8 8s-1.412 8-8 8-8-1.412-8-8 1.412-8 8-8M4.75 7.25a.75.75 0 0 0 0 1.5h6.5a.75.75 0 0 0 0-1.5z" clip-rule="evenodd"/>
|
|
117
|
+
</symbol>
|
|
118
|
+
<symbol id="diffs-icon-symbol-diffstat" viewBox="0 0 16 16">
|
|
119
|
+
<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"/>
|
|
120
|
+
</symbol>
|
|
121
|
+
<symbol id="diffs-icon-symbol-diffstat-duo" viewBox="0 0 16 16">
|
|
122
|
+
<path d="M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8" opacity=".2"/><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"/>
|
|
123
|
+
</symbol>
|
|
124
|
+
<symbol id="diffs-icon-symbol-diffstat-fill" viewBox="0 0 16 16">
|
|
125
|
+
<path fill-rule="evenodd" d="M8 0c6.588 0 8 1.412 8 8s-1.412 8-8 8-8-1.412-8-8 1.412-8 8-8M5.25 10a.75.75 0 0 0 0 1.5h5.5a.75.75 0 0 0 0-1.5zM8 3.546a.75.75 0 0 0-.75.75V6.25h-2a.75.75 0 0 0 0 1.5h2v1.5h1.5v-1.5h2a.75.75 0 0 0 0-1.5h-2V4.296a.75.75 0 0 0-.75-.75" clip-rule="evenodd"/>
|
|
126
|
+
</symbol>
|
|
127
|
+
<symbol id="diffs-icon-symbol-extracted" viewBox="0 0 16 16">
|
|
128
|
+
<path d="M8.25 4.25a.75.75 0 0 1 0 1.5H6.81l3.302 3.302a1.5 1.5 0 1 1-1.06 1.06L5.75 6.811V8.25a.75.75 0 0 1-1.5 0V5A.75.75 0 0 1 5 4.25z"/><path fill-rule="evenodd" d="M8 0c6.588 0 8 1.412 8 8s-1.412 8-8 8-8-1.412-8-8 1.412-8 8-8m0 1.5c-1.613 0-2.807.089-3.704.288-.88.196-1.382.477-1.706.802-.325.324-.606.826-.802 1.706C1.588 5.193 1.5 6.387 1.5 8s.089 2.807.288 3.704c.196.88.477 1.382.802 1.706.324.325.826.606 1.706.802.897.2 2.091.288 3.704.288s2.807-.089 3.704-.288c.88-.196 1.382-.477 1.706-.802.325-.324.606-.826.802-1.706.2-.897.288-2.091.288-3.704s-.089-2.807-.288-3.704c-.196-.88-.477-1.382-.802-1.706-.324-.325-.826-.606-1.706-.802C10.807 1.588 9.613 1.5 8 1.5" clip-rule="evenodd"/>
|
|
129
|
+
</symbol>
|
|
130
|
+
<symbol id="diffs-icon-symbol-extracted-duo" viewBox="0 0 16 16">
|
|
131
|
+
<path fill-rule="evenodd" d="M8 0c6.588 0 8 1.412 8 8s-1.412 8-8 8-8-1.412-8-8 1.412-8 8-8" clip-rule="evenodd" opacity=".2"/><path d="M8.25 4.25a.75.75 0 0 1 0 1.5H6.81l3.302 3.302a1.5 1.5 0 1 1-1.06 1.06L5.75 6.811V8.25a.75.75 0 0 1-1.5 0V5A.75.75 0 0 1 5 4.25z"/>
|
|
132
|
+
</symbol>
|
|
133
|
+
<symbol id="diffs-icon-symbol-extracted-fill" viewBox="0 0 16 16">
|
|
134
|
+
<path fill-rule="evenodd" d="M8 0c6.588 0 8 1.412 8 8s-1.412 8-8 8-8-1.412-8-8 1.412-8 8-8M5 4.25a.75.75 0 0 0-.75.75v3.25a.75.75 0 0 0 1.5 0V6.81l3.302 3.302a1.5 1.5 0 1 0 1.06-1.06L6.811 5.75H8.25a.75.75 0 0 0 0-1.5z" clip-rule="evenodd"/>
|
|
135
|
+
</symbol>
|
|
136
|
+
<symbol id="diffs-icon-symbol-ignored" viewBox="0 0 16 16">
|
|
137
|
+
<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"/>
|
|
138
|
+
</symbol>
|
|
139
|
+
<symbol id="diffs-icon-symbol-ignored-duo" viewBox="0 0 16 16">
|
|
140
|
+
<path d="M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8" opacity=".2"/><path d="M11.53 4.47a.75.75 0 0 1 0 1.06l-6 6a.75.75 0 0 1-1.06-1.06l6-6a.75.75 0 0 1 1.06 0"/>
|
|
141
|
+
</symbol>
|
|
142
|
+
<symbol id="diffs-icon-symbol-ignored-fill" viewBox="0 0 16 16">
|
|
143
|
+
<path fill-rule="evenodd" d="M8 0c6.588 0 8 1.412 8 8s-1.412 8-8 8-8-1.412-8-8 1.412-8 8-8m3.53 4.47a.75.75 0 0 0-1.06 0l-6 6a.75.75 0 1 0 1.06 1.06l6-6a.75.75 0 0 0 0-1.06" clip-rule="evenodd"/>
|
|
144
|
+
</symbol>
|
|
145
|
+
<symbol id="diffs-icon-symbol-inlined" viewBox="0 0 16 16">
|
|
146
|
+
<path d="M7.75 11.75a.75.75 0 0 1 0-1.5h1.44L5.887 6.948a1.5 1.5 0 1 1 1.06-1.06l3.302 3.301V7.75a.75.75 0 0 1 1.5 0V11a.75.75 0 0 1-.75.75z"/><path fill-rule="evenodd" d="M8 16c-6.588 0-8-1.412-8-8s1.412-8 8-8 8 1.412 8 8-1.412 8-8 8m0-1.5c1.613 0 2.807-.089 3.704-.288.88-.196 1.382-.477 1.706-.802.325-.324.606-.826.802-1.706.2-.897.288-2.091.288-3.704s-.089-2.807-.288-3.704c-.196-.88-.477-1.382-.802-1.706-.324-.325-.826-.606-1.706-.802C10.807 1.588 9.613 1.5 8 1.5s-2.807.089-3.704.288c-.88.196-1.382.477-1.706.802-.325.324-.606.826-.802 1.706C1.588 5.193 1.5 6.387 1.5 8s.089 2.807.288 3.704c.196.88.477 1.382.802 1.706.324.325.826.606 1.706.802.897.2 2.091.288 3.704.288" clip-rule="evenodd"/>
|
|
147
|
+
</symbol>
|
|
148
|
+
<symbol id="diffs-icon-symbol-inlined-duo" viewBox="0 0 16 16">
|
|
149
|
+
<path fill-rule="evenodd" d="M8 16c-6.588 0-8-1.412-8-8s1.412-8 8-8 8 1.412 8 8-1.412 8-8 8" clip-rule="evenodd" opacity=".2"/><path d="M7.75 11.75a.75.75 0 0 1 0-1.5h1.44L5.887 6.948a1.5 1.5 0 1 1 1.06-1.06l3.302 3.301V7.75a.75.75 0 0 1 1.5 0V11a.75.75 0 0 1-.75.75z"/>
|
|
150
|
+
</symbol>
|
|
151
|
+
<symbol id="diffs-icon-symbol-inlined-fill" viewBox="0 0 16 16">
|
|
152
|
+
<path fill-rule="evenodd" d="M8 0c6.588 0 8 1.412 8 8s-1.412 8-8 8-8-1.412-8-8 1.412-8 8-8M5.5 4a1.5 1.5 0 1 0 .388 2.948l3.301 3.302H7.75a.75.75 0 0 0 0 1.5H11a.75.75 0 0 0 .75-.75V7.75a.75.75 0 0 0-1.5 0v1.44L6.948 5.887A1.5 1.5 0 0 0 5.5 4" clip-rule="evenodd"/>
|
|
153
|
+
</symbol>
|
|
154
|
+
<symbol id="diffs-icon-symbol-modified" viewBox="0 0 16 16">
|
|
155
|
+
<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"/>
|
|
156
|
+
</symbol>
|
|
157
|
+
<symbol id="diffs-icon-symbol-modified-duo" viewBox="0 0 16 16">
|
|
158
|
+
<path d="M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8" opacity=".2"/><path d="M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0"/>
|
|
159
|
+
</symbol>
|
|
160
|
+
<symbol id="diffs-icon-symbol-modified-fill" viewBox="0 0 16 16">
|
|
161
|
+
<path fill-rule="evenodd" d="M8 0c6.588 0 8 1.412 8 8s-1.412 8-8 8-8-1.412-8-8 1.412-8 8-8m0 5a3 3 0 1 0 0 6 3 3 0 0 0 0-6" clip-rule="evenodd"/>
|
|
162
|
+
</symbol>
|
|
163
|
+
<symbol id="diffs-icon-symbol-moved" viewBox="0 0 16 16">
|
|
164
|
+
<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"/>
|
|
165
|
+
</symbol>
|
|
166
|
+
<symbol id="diffs-icon-symbol-moved-duo" viewBox="0 0 16 16">
|
|
167
|
+
<path d="M8 0C1.412 0 0 1.412 0 8s1.412 8 8 8 8-1.412 8-8-1.412-8-8-8" opacity=".2"/><path d="M8.496 4.695a.75.75 0 0 0-.051 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-.051 1.06L6.49 8.003 4.693 9.998a.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"/>
|
|
168
|
+
</symbol>
|
|
169
|
+
<symbol id="diffs-icon-symbol-moved-fill" viewBox="0 0 16 16">
|
|
170
|
+
<path fill-rule="evenodd" d="M8 0c6.588 0 8 1.412 8 8s-1.412 8-8 8-8-1.412-8-8 1.412-8 8-8m1.555 4.745a.75.75 0 0 0-1.11 1.01L10.486 8l-2.04 2.245a.75.75 0 0 0 1.109 1.01l2.5-2.75a.75.75 0 0 0 0-1.01zm-4 0a.75.75 0 0 0-1.11 1.01l2.043 2.248-1.796 1.995a.75.75 0 0 0 1.116 1.004l2.25-2.5a.75.75 0 0 0-.003-1.007z" clip-rule="evenodd"/>
|
|
171
|
+
</symbol>
|
|
172
|
+
<symbol id="diffs-icon-symbol-ref" viewBox="0 0 16 16">
|
|
173
|
+
<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"/>
|
|
174
|
+
</symbol>
|
|
175
|
+
</svg>`;function Wy(e,n){return e==null||n==null?e===n:By(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.totalLines===n.totalLines}const ah={};function By(e=ah,n=ah){if(e===n)return!0;const r=Object.keys(e),o=Object.keys(n);if(r.length!==o.length)return!1;for(const l of r)if(e[l]!==n[l])return!1;return!0}function qy(e){const n=document.createElement("div");return n.dataset.annotationSlot="",n.slot=e,n.style.whiteSpace="normal",n}function Gy(){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.style.touchAction="none",e}function Xy(){const e=document.createElement("style");return e.setAttribute(g0,""),e}let vs;function au(e){if(vs!=null)return vs;const n=e.host;if(typeof HTMLElement<"u"&&n instanceof HTMLElement&&!n.isConnected)return;const r=document.createElement("div");r.setAttribute("data-code",""),r.setAttribute(m0,"true");const o=document.createElement("div");return o.style.position="relative",o.style.width="200%",o.style.height="200%",r.appendChild(o),e.appendChild(r),vs=Math.max(r.offsetHeight-r.clientHeight,0),r.remove(),vs}function Rp(e){const n=e==null?"var(--diffs-scrollbar-gutter-fallback)":`${e}px`;return`${$h}: ${n};`}var Ky=`@layer base,theme,rendered,unsafe;@layer base{:host{--diffs-font-fallback:"SF Mono", Monaco, Consolas, "Ubuntu Mono", "Liberation Mono", "Courier New", monospace;--diffs-header-font-fallback:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;--diffs-mixer:light-dark(#000,#fff);--diffs-gap-fallback:8px;--diffs-scrollbar-gutter-fallback:6px;--diffs-scrollbar-gutter:var(--diffs-scrollbar-gutter-override,var(--diffs-scrollbar-gutter-measured,var(--diffs-scrollbar-gutter-fallback)));--diffs-added-light:#0dbe4e;--diffs-added-dark:#5ecc71;--diffs-modified-light:#009fff;--diffs-modified-dark:#69b1ff;--diffs-deleted-light:#ff2e3f;--diffs-deleted-dark:#ff6762;--diffs-warning-light:#d5a910;--diffs-warning-dark:#ffd452;color-scheme:light dark;font-family:var(--diffs-header-font-family,var(--diffs-header-font-fallback));font-size:var(--diffs-font-size,13px);line-height:var(--diffs-line-height,20px);font-feature-settings:var(--diffs-font-features);--diffs-bg:light-dark(var(--diffs-light-bg,#fff),var(--diffs-dark-bg,#000));--diffs-bg-buffer:var(--diffs-bg-buffer-override,light-dark(color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer)),color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer))));--diffs-bg-context:var(--diffs-bg-context-override,light-dark(color-mix(in lab, var(--diffs-bg) 98.5%, var(--diffs-mixer)),color-mix(in lab, var(--diffs-bg) 92.5%, var(--diffs-mixer))));--diffs-bg-context-gutter:var(--diffs-bg-context-gutter-override,light-dark(color-mix(in lab, var(--diffs-bg-context) 90%, var(--diffs-bg)),color-mix(in lab, var(--diffs-bg-context) 45%, var(--diffs-bg))));--diffs-bg-separator:var(--diffs-bg-separator-override,light-dark(color-mix(in lab, var(--diffs-bg) 96%, var(--diffs-mixer)),color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-mixer))));--diffs-fg:light-dark(var(--diffs-light,#000),var(--diffs-dark,#fff));--diffs-fg-number:var(--diffs-fg-number-override,light-dark(color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg)),color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg))));--diffs-fg-conflict-marker:var(--diffs-fg-conflict-marker-override,var(--diffs-fg-number));--diffs-deletion-base:var(--diffs-deletion-color-override,light-dark(var(--diffs-light-deletion-color,var(--diffs-deletion-color,var(--diffs-deleted-light))),var(--diffs-dark-deletion-color,var(--diffs-deletion-color,var(--diffs-deleted-dark)))));--diffs-addition-base:var(--diffs-addition-color-override,light-dark(var(--diffs-light-addition-color,var(--diffs-addition-color,var(--diffs-added-light))),var(--diffs-dark-addition-color,var(--diffs-addition-color,var(--diffs-added-dark)))));--diffs-modified-base:var(--diffs-modified-color-override,light-dark(var(--diffs-light-modified-color,var(--diffs-modified-color,var(--diffs-modified-light))),var(--diffs-dark-modified-color,var(--diffs-modified-color,var(--diffs-modified-dark)))));--diffs-bg-deletion:var(--diffs-bg-deletion-override,light-dark(color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-deletion-base)),color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-deletion-base))));--diffs-bg-deletion-emphasis:var(--diffs-bg-deletion-emphasis-override,light-dark(rgb(from var(--diffs-deletion-base) r g b / .15),rgb(from var(--diffs-deletion-base) r g b / .2)));--diffs-bg-addition:var(--diffs-bg-addition-override,light-dark(color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-addition-base)),color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-addition-base))));--diffs-bg-addition-emphasis:var(--diffs-bg-addition-emphasis-override,light-dark(rgb(from var(--diffs-addition-base) r g b / .15),rgb(from var(--diffs-addition-base) r g b / .2)));--diffs-selection-base:var(--diffs-modified-base);--diffs-selection-number-fg:light-dark(color-mix(in lab, var(--diffs-selection-base) 65%, var(--diffs-mixer)),color-mix(in lab, var(--diffs-selection-base) 75%, var(--diffs-mixer)));background-color:var(--diffs-bg);color:var(--diffs-fg);display:block}pre,code,[data-error-wrapper]{isolation:isolate;font-family:var(--diffs-font-family,var(--diffs-font-fallback));outline:none;margin:0;padding:0;display:block}pre,code{background-color:var(--diffs-bg)}code{contain:content}input,button{font-family:inherit;font-size:inherit;line-height:inherit}*,:before,:after{box-sizing:border-box}[data-icon-sprite]{display:none}[data-diffs-header],[data-separator]{font-family:var(--diffs-header-font-family,var(--diffs-header-font-fallback))}[data-diffs-header][data-sticky]{z-index:1;background-color:var(--diffs-bg);position:sticky;top:0}[data-file-info]{color:var(--fg);background-color:color-mix(in lab, var(--bg) 98%, var(--fg));border-block:1px solid color-mix(in lab, var(--bg) 95%, var(--fg));padding:10px;font-weight:700}[data-diff],[data-file]{--diffs-grid-number-column-width:minmax(min-content, max-content);--diffs-code-grid:var(--diffs-grid-number-column-width) 1fr;&[data-dehydrated]{--diffs-code-grid:var(--diffs-grid-number-column-width) minmax(0, 1fr)}&:hover [data-code]::-webkit-scrollbar-thumb{background-color:var(--diffs-bg-context)}}@supports (-webkit-touch-callout:none){:host{--diffs-scrollbar-gutter-fallback:0px}}[data-line] span,[data-edit-prediction-suffix] span{color:light-dark(var(--diffs-token-light,var(--diffs-light)),var(--diffs-token-dark,var(--diffs-dark)));background-color:light-dark(var(--diffs-token-light-bg,inherit),var(--diffs-token-dark-bg,inherit))}[data-line],[data-gutter-buffer],[data-column-number],[data-line-annotation],[data-no-newline],[data-merge-conflict],[data-merge-conflict-actions],[data-editor-overlay]{--diffs-computed-decoration-bg:var(--diffs-bg);--diffs-computed-diff-line-bg:var(--diffs-computed-decoration-bg);--diffs-computed-selected-line-bg:var(--diffs-computed-diff-line-bg);--diffs-computed-editor-active-line-bg:var(--diffs-computed-selected-line-bg);--diffs-computed-hovered-line-bg:var(--diffs-computed-editor-active-line-bg);--diffs-hover-mix-target:var(--diffs-bg-hover-override,var(--diffs-mixer));--diffs-line-bg:var(--diffs-computed-hovered-line-bg);color:var(--diffs-fg);background-color:var(--diffs-line-bg,var(--diffs-bg))}[data-line],[data-no-newline]{&[data-decoration-bg]{--mix-deco-light:92%;--mix-deco-dark:85%;&[data-decoration-bg-depth="2"]{--mix-deco-light:88%;--mix-deco-dark:80%}&[data-decoration-bg-depth="3"]{--mix-deco-light:85%;--mix-deco-dark:78%}--diffs-hover-mix-target:var(--diffs-decoration-bg);--diffs-computed-decoration-bg:light-dark(color-mix(in lab, var(--diffs-bg) var(--mix-deco-light), var(--diffs-decoration-bg)),color-mix(in lab, var(--diffs-bg) var(--mix-deco-dark), var(--diffs-decoration-bg)))}}[data-line-annotation],[data-gutter-buffer=annotation]{--diffs-annotation-bg:var(--diffs-bg-context);--diffs-computed-decoration-bg:var(--diffs-annotation-bg);--diffs-hover-mix-target:var(--diffs-computed-editor-active-line-bg)}[data-merge-conflict-actions],[data-gutter-buffer=merge-conflict-action],[data-gutter-buffer=merge-conflict-marker-base],[data-gutter-buffer=merge-conflict-marker-separator],[data-merge-conflict=marker-base],[data-merge-conflict=marker-separator]{--diffs-computed-decoration-bg:var(--diffs-bg-context);--diffs-hover-mix-target:var(--diffs-computed-editor-active-line-bg)}[data-gutter-buffer=merge-conflict-marker-start],[data-merge-conflict=marker-start]{--diffs-computed-decoration-bg:light-dark(color-mix(in lab, var(--diffs-bg) 78%, var(--conflict-bg-current-header-override,var(--diffs-addition-base))),color-mix(in lab, var(--diffs-bg) 68%, var(--conflict-bg-current-header-override,var(--diffs-addition-base))));--diffs-hover-mix-target:var(--diffs-computed-editor-active-line-bg)}[data-gutter-buffer=merge-conflict-marker-end],[data-merge-conflict=marker-end]{--diffs-computed-decoration-bg:light-dark(color-mix(in lab, var(--diffs-bg) 78%, var(--conflict-bg-incoming-header-override,var(--diffs-modified-base))),color-mix(in lab, var(--diffs-bg) 68%, var(--conflict-bg-incoming-header-override,var(--diffs-modified-base))));--diffs-hover-mix-target:var(--diffs-computed-editor-active-line-bg)}[data-has-merge-conflict] [data-line-annotation],[data-has-merge-conflict] [data-gutter-buffer=annotation]{--diffs-computed-decoration-bg:var(--diffs-bg);--diffs-hover-mix-target:var(--diffs-computed-editor-active-line-bg)}:where([data-background]){& [data-gutter-buffer],& [data-column-number]{--mix-light:91%;--mix-dark:85%}& [data-line],& [data-no-newline]{--mix-light:88%;--mix-dark:80%}& [data-gutter-buffer],& [data-column-number],& [data-line],& [data-no-newline]{--diffs-diff-line-mix-target:var(--diffs-bg);&[data-line-type=change-deletion]{--diffs-diff-line-mix-target:var(--diffs-bg-deletion-override,var(--diffs-deletion-base));--diffs-hover-mix-target:var(--diffs-diff-line-mix-target);&:where([data-gutter-buffer],[data-column-number]){color:var(--diffs-fg-number-deletion-override,var(--diffs-deletion-base));--diffs-diff-line-mix-target:var(--diffs-bg-deletion-number-override,var(--diffs-deletion-base))}--diffs-computed-diff-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-light), var(--diffs-diff-line-mix-target)),color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-dark), var(--diffs-diff-line-mix-target)))}&[data-line-type=change-addition]{--diffs-diff-line-mix-target:var(--diffs-bg-addition-override,var(--diffs-addition-base));--diffs-hover-mix-target:var(--diffs-diff-line-mix-target);&:where([data-gutter-buffer],[data-column-number]){color:var(--diffs-fg-number-addition-override,var(--diffs-addition-base));--diffs-diff-line-mix-target:var(--diffs-bg-addition-number-override,var(--diffs-addition-base))}--diffs-computed-diff-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-light), var(--diffs-diff-line-mix-target)),color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-dark), var(--diffs-diff-line-mix-target)))}&[data-merge-conflict=current]{--diffs-diff-line-mix-target:var(--conflict-bg-current-override,var(--diffs-addition-base));--diffs-hover-mix-target:var(--diffs-diff-line-mix-target);&:where([data-gutter-buffer],[data-column-number]){color:var(--diffs-fg-number-addition-override,var(--diffs-addition-base));--diffs-diff-line-mix-target:var(--conflict-bg-current-number-override,var(--diffs-addition-base))}--diffs-computed-diff-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-light), var(--diffs-diff-line-mix-target)),color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-dark), var(--diffs-diff-line-mix-target)))}&[data-merge-conflict=incoming]{--diffs-diff-line-mix-target:var(--conflict-bg-incoming-override,var(--diffs-modified-base));--diffs-hover-mix-target:var(--diffs-diff-line-mix-target);&:where([data-gutter-buffer],[data-column-number]){color:var(--diffs-modified-base);--diffs-diff-line-mix-target:var(--conflict-bg-incoming-number-override,var(--diffs-modified-base))}--diffs-computed-diff-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-light), var(--diffs-diff-line-mix-target)),color-mix(in lab, var(--diffs-computed-decoration-bg) var(--mix-dark), var(--diffs-diff-line-mix-target)))}}}[data-gutter-buffer],[data-column-number],[data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline],[data-editor-overlay]{--diffs-selection-mix-target:var(--diffs-bg-selection-override,var(--diffs-selection-base));--diffs-selection-emphasis-mix-target:var(--diffs-selection-mix-target);&:where([data-editor-overlay]),&:where([data-line],[data-line-annotation],[data-merge-conflict],[data-merge-conflict-actions],[data-no-newline])[data-selected-line]{--mix-selection-light:82%;--mix-selection-dark:75%;--diffs-hover-mix-target:var(--diffs-selection-mix-target)}&:where([data-gutter-buffer][data-selected-line],[data-column-number]:is([data-selected-line],[data-editor-active-line])){--mix-selection-light:75%;--mix-selection-dark:60%;--diffs-selection-mix-target:var(--diffs-bg-selection-number-override,var(--diffs-selection-base));--diffs-hover-mix-target:var(--diffs-selection-mix-target)}&:where([data-line][data-selected-line]):is([data-line-type=change-addition],[data-line-type=change-deletion]){--diffs-selection-emphasis-mix-target:light-dark(color-mix(in lab, var(--diffs-diff-line-mix-target,var(--diffs-selection-mix-target)) var(--mix-selection-light), var(--diffs-selection-mix-target)),var(--diffs-selection-mix-target))}&:where([data-editor-overlay]),&[data-selected-line]{--diffs-computed-selected-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-diff-line-bg) var(--mix-selection-light), var(--diffs-selection-mix-target)),color-mix(in lab, var(--diffs-computed-diff-line-bg) var(--mix-selection-dark), var(--diffs-selection-mix-target)))}}[data-line][data-editor-active-line],[data-column-number][data-editor-active-line]{--diffs-computed-editor-active-line-bg:color-mix(in lab, var(--diffs-computed-selected-line-bg) var(--diffs-editor-active-line-source-mix,100%), var(--diffs-selection-emphasis-mix-target))}@media (pointer:fine){[data-line][data-hovered],[data-gutter-buffer][data-hovered],[data-column-number][data-hovered],[data-line-annotation][data-hovered],[data-no-newline][data-hovered],[data-merge-conflict][data-hovered],[data-merge-conflict-actions][data-hovered],[data-editor-overlay][data-hovered]{--diffs-computed-hovered-line-bg:light-dark(color-mix(in lab, var(--diffs-computed-editor-active-line-bg) 97%, var(--diffs-hover-mix-target)),color-mix(in lab, var(--diffs-computed-editor-active-line-bg) 91%, var(--diffs-hover-mix-target)))}}[data-gutter-buffer][data-selected-line],[data-column-number]:is([data-selected-line],[data-editor-active-line]){color:var(--diffs-selection-number-fg)}[data-no-newline]{user-select:none;& span{opacity:.6}}[data-diff-type=split][data-overflow=scroll]{grid-template-columns:1fr 1fr;display:grid;& [data-additions]{border-left:1px solid var(--diffs-bg)}& [data-deletions]{border-right:1px solid var(--diffs-bg)}}[data-code]{grid-auto-flow:dense;grid-template-columns:var(--diffs-code-grid);overflow:var(--diffs-overflow-override,scroll) clip;overscroll-behavior-x:none;tab-size:var(--diffs-tab-size,2);padding-top:var(--diffs-gap-block,var(--diffs-gap-fallback));padding-bottom:max(0px, calc(var(--diffs-gap-block,var(--diffs-gap-fallback)) - var(--diffs-scrollbar-gutter)));scrollbar-gutter:stable;align-self:flex-start;display:grid}[data-diffs-scrollbar-measure]{opacity:0;pointer-events:none;scrollbar-gutter:auto;grid-template-columns:none;width:100px;height:100px;padding:0;position:absolute;top:-200px;left:-200px}[data-container-size]{container-type:inline-size}[data-code]::-webkit-scrollbar{width:0;height:var(--diffs-scrollbar-gutter)}[data-code]::-webkit-scrollbar-track{background:0 0}[data-code]::-webkit-scrollbar-thumb{background-color:#0000;background-clip:content-box;border:1px solid #0000;border-radius:3px}[data-code]::-webkit-scrollbar-corner{background-color:#0000}@supports ((-moz-appearance:none)){[data-code]{scrollbar-width:thin;scrollbar-color:var(--diffs-bg-context) transparent;padding-bottom:var(--diffs-gap-block,var(--diffs-gap-fallback))}}[data-diffs-header]~[data-diff],[data-diffs-header]~[data-file]{& [data-code],&[data-overflow=wrap],&[data-dehydrated][data-diff-type=split][data-overflow=scroll]{padding-top:0}}[data-gutter]{grid-template-rows:subgrid;grid-template-columns:subgrid;z-index:3;background-color:var(--diffs-bg);grid-column:1;display:grid;position:relative;& [data-gutter-buffer],& [data-column-number]{border-right:var(--diffs-gap-style,2px solid var(--diffs-bg))}}[data-content]{grid-template-rows:subgrid;grid-template-columns:subgrid;background-color:var(--diffs-bg);grid-column:2;min-width:0;display:grid}[data-overflow=scroll]:not([data-dehydrated],[data-custom-styles],:has(>[data-code]>[contenteditable],>[data-code]>*>:is([data-line-annotation],[data-separator],[data-merge-conflict],[data-merge-conflict-actions])))>[data-code]{display:flex;&>[data-gutter]{flex-shrink:0;display:block}&>[data-content]{flex:1 0 max-content;display:block}}[data-diff-type=split][data-overflow=wrap],[data-dehydrated][data-diff-type=split][data-overflow=scroll]{grid-auto-flow:dense;grid-template-columns:repeat(2, var(--diffs-code-grid));padding-block:var(--diffs-gap-block,var(--diffs-gap-fallback));display:grid;& [data-code]{display:contents}& [data-deletions]{& [data-gutter]{grid-column:1}& [data-content]{border-right:1px solid var(--diffs-bg);grid-column:2}}& [data-additions]{& [data-gutter]{border-left:1px solid var(--diffs-bg);grid-column:3}& [data-content]{grid-column:4}}}[data-dehydrated][data-diff-type=split][data-overflow=scroll] [data-content]{overflow:clip}[data-overflow=scroll] [data-gutter]{position:sticky;left:0}[data-interactive-lines] [data-line]{cursor:pointer}[data-interactive-line-numbers] [data-column-number]{cursor:pointer;touch-action:none}[data-content-buffer],[data-gutter-buffer]{user-select:none;min-height:1lh;position:relative}[data-gutter-buffer]{padding-left:2ch;padding-right:1ch;&:before{content:"";min-width:var(--diffs-min-number-column-width,var(--diffs-min-number-column-width-default,3ch));display:block}}[data-gutter-buffer=annotation]{--diffs-annotation-bg:var(--diffs-bg-context-gutter);min-height:0}[data-gutter-buffer=buffer]{--diffs-line-bg:var(--diffs-bg-context-gutter)}[data-content-buffer]{background-position:5px 0;background-size:8px 8px;background-origin:border-box;background-image:repeating-linear-gradient(-45deg, transparent, transparent calc(3px * 1.414), var(--diffs-bg-buffer) calc(3px * 1.414), var(--diffs-bg-buffer) calc(4px * 1.414));grid-column:1}[data-separator]{box-sizing:content-box;background-color:var(--diffs-bg)}[data-separator=simple]{min-height:4px}[data-separator=line-info],[data-separator=line-info-basic],[data-separator=metadata],[data-separator=simple]{background-color:var(--diffs-bg-separator)}[data-separator=line-info],[data-separator=line-info-basic],[data-separator=metadata]{height:32px;position:relative}[data-separator-wrapper]{user-select:none;fill:currentColor;background-color:var(--diffs-bg);align-items:center;height:100%;display:flex;position:absolute;inset-inline:0}[data-content] [data-separator-wrapper]{display:none}[data-separator=metadata] [data-separator-wrapper]{background-color:var(--diffs-bg-separator);height:100%;color:var(--diffs-fg-number);white-space:nowrap;text-overflow:ellipsis;min-width:min-content;padding-inline:1ch;inset-inline:100% auto;overflow:hidden}[data-separator=line-info]{margin-block:var(--diffs-gap-block,var(--diffs-gap-fallback));& [data-separator-wrapper]{min-width:16px}}[data-separator=line-info-basic],[data-separator=metadata]{margin-block:0}[data-separator=line-info][data-separator-first]{margin-top:0}[data-separator=line-info][data-separator-last]{margin-bottom:0}[data-expand-index] [data-separator-wrapper]{grid-template-columns:32px auto;display:grid}[data-expand-index] [data-separator-wrapper][data-separator-multi-button]{grid-template-columns:32px 32px auto}[data-expand-button],[data-separator-content]{background-color:var(--diffs-bg-separator);flex:none;align-items:center;display:flex}[data-expand-index] [data-separator-content]:hover{cursor:pointer;text-decoration:underline}[data-expand-button]{cursor:pointer;min-width:32px;color:var(--diffs-fg-number);border-right:2px solid var(--diffs-bg);flex-shrink:0;justify-content:center;align-self:stretch;&:hover{color:var(--diffs-fg)}&[data-expand-all-button]{display:none}}[data-expand-down] [data-icon]{transform:scaleY(-1)}[data-separator-content]{height:100%;color:var(--diffs-fg-number);flex:auto;justify-content:flex-start;padding:0 1ch;overflow:hidden}[data-separator=line-info],[data-separator=line-info-basic]{& [data-separator-content]{user-select:none;height:100%;overflow:clip}}[data-unmodified-lines]{text-overflow:ellipsis;white-space:nowrap;flex:0 auto;min-width:0;display:block;overflow:hidden}@supports (width:1cqi){[data-unified]{& [data-separator=line-info] [data-separator-wrapper]{padding-inline:var(--diffs-gap-inline,var(--diffs-gap-fallback));width:100cqi;& [data-separator-content]{border-radius:6px}}& [data-separator=line-info][data-expand-index] [data-separator-wrapper] [data-separator-content]{border-top-left-radius:unset;border-bottom-left-radius:unset}}[data-gutter]{& [data-separator=line-info] [data-separator-wrapper]{padding-left:var(--diffs-gap-inline,var(--diffs-gap-fallback))}& [data-separator=line-info] [data-separator-content]{border-top-left-radius:6px;border-bottom-left-radius:6px}& [data-separator=line-info][data-expand-index] [data-separator-content]{border-top-left-radius:unset;border-bottom-left-radius:unset}}[data-additions]{& [data-content] [data-separator=line-info]{background-color:var(--diffs-bg);& [data-separator-wrapper]{display:none}}& [data-gutter] [data-separator=line-info] [data-separator-wrapper]{background-color:var(--diffs-bg-separator);border-top-right-radius:6px;border-bottom-right-radius:6px;height:100%;display:block;& [data-separator-content],& [data-expand-button]{display:none}}}[data-overflow=scroll] [data-additions] [data-gutter] [data-separator=line-info] [data-separator-wrapper]{width:calc(100cqi - var(--diffs-gap-inline,var(--diffs-gap-fallback)))}[data-overflow=wrap] [data-additions] [data-content] [data-separator=line-info] [data-separator-wrapper]{background-color:var(--diffs-bg-separator);height:100%;margin-right:var(--diffs-gap-inline,var(--diffs-gap-fallback));border-top-right-radius:6px;border-bottom-right-radius:6px;display:block;& [data-separator-content],& [data-expand-button]{display:none}}[data-separator=line-info] [data-separator-wrapper]{& [data-expand-both],& [data-expand-down],& [data-expand-up]{border-top-left-radius:6px;border-bottom-left-radius:6px}}@media (pointer:fine){[data-separator=line-info] [data-separator-wrapper]{&[data-separator-multi-button]{& [data-expand-up]{border-top-left-radius:6px;border-bottom-left-radius:unset}& [data-expand-down]{border-bottom-left-radius:6px;border-top-left-radius:unset}}}}}@media (pointer:coarse){[data-separator=line-info-basic] [data-separator-wrapper][data-separator-multi-button]{grid-template-columns:34px 34px auto;& [data-separator-content]{grid-column:unset;grid-row:unset}}@supports (width:1cqi){[data-separator=line-info] [data-separator-wrapper]{& [data-expand-both],& [data-expand-down],& [data-expand-up]{border-top-left-radius:6px;border-bottom-left-radius:6px}&[data-separator-multi-button]{& [data-expand-up]{border-top-left-radius:6px;border-bottom-left-radius:6px}& [data-expand-down]{border-bottom-left-radius:unset;border-top-left-radius:unset}}}}}@media (pointer:fine){[data-separator-wrapper][data-separator-multi-button]{grid-template-rows:50% 50%;display:grid;& [data-separator-content]{grid-area:1/2/-1;min-width:min-content}& [data-expand-button]{grid-column:1}}[data-separator=line-info] [data-separator-wrapper],[data-separator=line-info] [data-separator-wrapper][data-separator-multi-button]{grid-template-columns:34px auto}[data-separator=line-info-basic][data-expand-index] [data-separator-wrapper]{grid-template-columns:100% auto}[data-separator=line-info],[data-separator=line-info-basic]{& [data-separator-multi-button]{& [data-expand-up]{border-bottom:1px solid var(--diffs-bg);border-right:2px solid var(--diffs-bg)}& [data-expand-down]{border-top:1px solid var(--diffs-bg);border-right:2px solid var(--diffs-bg)}}}}[data-additions] [data-gutter] [data-separator-wrapper],[data-additions] [data-separator=line-info-basic] [data-separator-wrapper],[data-content] [data-separator-wrapper]{display:none}[data-line-annotation]{min-height:var(--diffs-annotation-min-height,0);z-index:2}[data-merge-conflict-actions]{z-index:2}[data-separator=custom]{grid-template-columns:subgrid;display:grid}[data-line],[data-column-number],[data-no-newline]{padding-inline:1ch;position:relative}[data-indicators=classic] [data-line]{padding-inline-start:2ch}[data-indicators=classic]{& [data-line-type=change-addition],& [data-line-type=change-deletion]{&[data-no-newline],&[data-line]{&:before{user-select:none;width:1ch;height:1lh;display:inline-block;position:absolute;top:0;left:0}}}& [data-line-type=change-addition]{&[data-line],&[data-no-newline]{&:before{content:"+";color:var(--diffs-addition-base)}}}& [data-line-type=change-deletion]{&[data-line],&[data-no-newline]{&:before{content:"-";color:var(--diffs-deletion-base)}}}}[data-indicators=bars]{& [data-line-type=change-deletion],& [data-line-type=change-addition]{&[data-column-number]{&:before{content:"";user-select:none;contain:strict;width:4px;height:100%;display:block;position:absolute;top:0;left:0}}}& [data-line-type=change-deletion]{&[data-column-number]{&:before{background-image:linear-gradient(0deg, var(--diffs-bg-deletion) 50%, var(--diffs-deletion-base) 50%);background-repeat:repeat;background-size:2px 2px;background-size:calc(1lh / round(1lh / 2px)) calc(1lh / round(1lh / 2px))}}}& [data-line-type=change-addition]{&[data-column-number]{&:before{background-color:var(--diffs-addition-base)}}}}[data-overflow=wrap]{& [data-line]{white-space:pre-wrap;word-break:break-word}& [data-annotation-content]{word-break:break-word}}[data-overflow=scroll] [data-line]{white-space:pre;min-height:1lh}[data-overflow=scroll] [data-column-number]{min-height:1lh}[data-column-number]{box-sizing:content-box;text-align:right;user-select:none;color:var(--diffs-fg-number);padding-left:2ch}[data-line-number-content]{min-width:var(--diffs-min-number-column-width,var(--diffs-min-number-column-width-default,3ch));z-index:1;display:inline-block;position:relative}[data-disable-line-numbers]{& [data-gutter-buffer],& [data-column-number]{min-width:4px;padding:0;&:before{min-width:0}}& [data-line-number-content]{display:none}& [data-gutter-utility-slot]{right:unset;justify-content:flex-start;left:0}&[data-indicators=bars] [data-gutter-utility-slot]{left:6px}}[data-file][data-disable-line-numbers]{& [data-gutter-buffer],& [data-column-number]{border-right:0;min-width:0}}[data-diff-span]{box-decoration-break:clone;border-radius:3px}[data-line-type=change-addition] [data-diff-span]{background-color:var(--diffs-bg-addition-emphasis)}[data-line-type=change-deletion] [data-diff-span]{background-color:var(--diffs-bg-deletion-emphasis)}[data-merge-conflict=marker-start],[data-merge-conflict=marker-base],[data-merge-conflict=marker-separator],[data-merge-conflict=marker-end]{color:var(--diffs-fg);padding-left:1ch}[data-merge-conflict=marker-start],[data-merge-conflict=marker-end]{align-items:center;display:flex;&:after{color:var(--diffs-fg-conflict-marker);font-size:.75rem;font-style:normal;line-height:1.25rem;font-family:var(--diffs-header-font-family,var(--diffs-header-font-fallback));padding-left:1ch}}[data-merge-conflict=marker-start]:after{content:"(Current Change)"}[data-merge-conflict=marker-end]:after{content:"(Incoming Change)"}[data-merge-conflict-actions-content]{min-height:1.75rem;font-family:var(--diffs-header-font-family,var(--diffs-header-font-fallback));color:var(--diffs-fg);align-items:center;gap:.25rem;padding-inline:.5rem;font-size:.75rem;line-height:1.2;display:flex}[data-merge-conflict-action]{appearance:none;color:var(--diffs-fg-number);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-style:normal}[data-merge-conflict-action]:hover{color:var(--diffs-fg)}[data-merge-conflict-action=current]:hover{color:var(--diffs-addition-base)}[data-merge-conflict-action=incoming]:hover{color:var(--diffs-modified-base)}[data-merge-conflict-action-separator]{color:var(--diffs-fg-number);opacity:.6;user-select:none}[data-diffs-header=default]{background-color:var(--diffs-bg);justify-content:space-between;align-items:center;gap:var(--diffs-gap-inline,var(--diffs-gap-fallback));min-height:calc(1lh + (var(--diffs-gap-block,var(--diffs-gap-fallback)) * 3));z-index:2;flex-direction:row;padding-inline:16px;display:flex;position:relative;top:0}[data-header-content]{align-items:center;gap:var(--diffs-gap-inline,var(--diffs-gap-fallback));white-space:nowrap;flex-direction:row;min-width:0;display:flex}[data-header-content] [data-prev-name],[data-header-content] [data-title]{text-overflow:ellipsis;white-space:nowrap;direction:rtl;min-width:0;overflow:hidden}[data-prev-name]{opacity:.7}[data-rename-icon]{fill:currentColor;flex-grow:0;flex-shrink:0}[data-diffs-header=default] [data-metadata]{white-space:nowrap;align-items:center;gap:1ch;display:flex}[data-diffs-header=default] [data-additions-count]{font-family:var(--diffs-font-family,var(--diffs-font-fallback));color:var(--diffs-addition-base)}[data-diffs-header=default] [data-deletions-count]{font-family:var(--diffs-font-family,var(--diffs-font-fallback));color:var(--diffs-deletion-base)}[data-change-icon]{fill:currentColor;flex-shrink:0}[data-change-icon=change],[data-change-icon=rename-pure],[data-change-icon=rename-changed]{color:var(--diffs-modified-base)}[data-change-icon=new]{color:var(--diffs-addition-base)}[data-change-icon=deleted]{color:var(--diffs-deletion-base)}[data-change-icon=file]{opacity:.6}[data-annotation-content]{z-index:2;isolation:isolate;white-space:normal;align-self:flex-start;min-width:0;display:flow-root;position:relative}[data-overflow=scroll] [data-annotation-content],[data-overflow=scroll] [data-merge-conflict-actions-content]{width:var(--diffs-column-content-width,auto);left:var(--diffs-column-number-width,0);position:sticky}[data-annotation-slot]{text-wrap-mode:wrap;word-break:normal;white-space-collapse:collapse}[data-gutter-utility-slot]{touch-action:none;justify-content:flex-end;display:flex;position:absolute;top:0;bottom:0;right:0}[data-utility-button]{appearance:none;cursor:pointer;width:1lh;height:1lh;font-size:var(--diffs-font-size,13px);line-height:var(--diffs-line-height,20px);background-color:var(--diffs-modified-base);color:var(--diffs-bg);fill:currentColor;z-index:4;touch-action:none;border:none;border-radius:4px;justify-content:center;align-items:center;margin-right:calc(-1lh + 1ch);padding:0;display:flex;position:relative;&:before{content:"";display:block;position:absolute;inset:0 0 0 -4px}}[data-decoration-bar-stack]{pointer-events:none;isolation:isolate;z-index:1;background-color:var(--diffs-decoration-bar-color,transparent);box-sizing:content-box;border-left:2px solid var(--diffs-bg);border-right:2px solid var(--diffs-bg);width:6px;position:absolute;top:0;bottom:0;right:-2px;[data-decoration-bar-depth="1"] &{background-color:color-mix(in lab, var(--diffs-bg) 20%, var(--diffs-decoration-bar-color,transparent))}[data-decoration-bar-depth="2"] &{background-color:color-mix(in lab, var(--diffs-bg) 45%, var(--diffs-decoration-bar-color,transparent))}[data-decoration-bar-depth="3"] &{background-color:color-mix(in lab, var(--diffs-bg) 65%, var(--diffs-decoration-bar-color,transparent))}[data-decoration-bar-start] &{border-top-left-radius:5px;border-top-right-radius:5px}[data-decoration-bar-end] &{z-index:3;border-bottom-right-radius:5px;border-bottom-left-radius:5px}}[data-placeholder]{contain:strict}[data-error-wrapper]{padding:var(--diffs-gap-block,var(--diffs-gap-fallback)) var(--diffs-gap-inline,var(--diffs-gap-fallback));scrollbar-width:none;max-height:400px;overflow:auto;& [data-error-message]{color:var(--diffs-deletion-base);font-size:18px;font-weight:700}& [data-error-stack]{color:var(--diffs-fg-number)}}}@layer theme,rendered,unsafe;
|
|
176
|
+
`;const Tp="@layer base, theme, rendered, unsafe;",Qy=new RegExp(`${ex($h)}\\s*:\\s*[^;]+;`);function Yy(e){return`${Tp}
|
|
177
|
+
@layer unsafe {
|
|
178
|
+
${e}
|
|
179
|
+
}`}function Zy(e,n="system",r){const o=n==="system"?"":`
|
|
180
|
+
color-scheme: ${n};`,l=Rp(r),u=(n==="system"?["light","dark"]:[n]).map(d=>{const h=`
|
|
181
|
+
[data-line] span, [data-edit-prediction-suffix] span {
|
|
182
|
+
font-weight: var(--diffs-token-${d}-font-weight, inherit);
|
|
183
|
+
font-style: var(--diffs-token-${d}-font-style, inherit);
|
|
184
|
+
text-decoration: var(--diffs-token-${d}-text-decoration, inherit);
|
|
185
|
+
}`;return n==="system"&&d==="dark"?`@media (prefers-color-scheme: dark) {${h}
|
|
186
|
+
}`:h}).join(`
|
|
187
|
+
`);return`${Tp}
|
|
188
|
+
@layer base {
|
|
189
|
+
${u}
|
|
190
|
+
}
|
|
191
|
+
@layer rendered {
|
|
192
|
+
:host {${o}
|
|
193
|
+
${l}
|
|
194
|
+
${e}
|
|
195
|
+
}
|
|
196
|
+
}`}function Jy(e,n){const r=Rp(n);return e.replace(Qy,r)}function ex(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const tx=new WeakMap;function Nu(e){const n=tx.get(e);return n??e}function uh(e,n,r){const o=new Map;for(const l of e){const u=Nu(l);o.set(u,(r==null?void 0:r.slotNames.get(u))??n(l))}return{provided:e,current:e,slotNames:o}}function nx(e,n,r){for(const o of n){const l=Nu(o);e.slotNames.has(l)||e.slotNames.set(l,r(o))}e.provided=n,e.current=n}function ix(e,n,r){if(e==null)return r(n);const o=Nu(n);let l=e.slotNames.get(o);return l==null&&(l=r(n),e.slotNames.set(o,l)),l}function rx(e){return(e==null?void 0:e.useTokenTransformer)===!0||(e==null?void 0:e.onTokenClick)!=null||(e==null?void 0:e.onTokenEnter)!=null||(e==null?void 0:e.onTokenLeave)!=null}function Fa({code:e,pre:n,columnType:r,rowSpan:o,containerSize:l=!1}={}){return e==null&&(e=document.createElement("code"),e.setAttribute("data-code",""),r!=null&&e.setAttribute(`data-${r}`,""),n==null||n.appendChild(e)),o!=null?e.style.setProperty("grid-row",`span ${o}`):e.style.removeProperty("grid-row"),l?e.setAttribute("data-container-size",""):e.removeAttribute("data-container-size"),e}function dh(e,n){const r=(e==null?void 0:e.offsetHeight)??0;if(e==null||r===0){n();return}e.style.minHeight=`${r}px`;try{n(),e.offsetHeight}finally{e.style.minHeight=""}}function ox({shadowRoot:e,currentNode:n,themeCSS:r}){if(r.trim()===""){n==null||n.remove();return}return n??(n=sx()),n.textContent=r,n.parentNode!==e&&e.appendChild(n),n}function sx(){const e=document.createElement("style");return e.setAttribute(p0,""),e}function lx(e,n){if(n==null)return;const r=e.shadowRoot??e.attachShadow({mode:"open"});r.innerHTML===""&&(r.innerHTML=n)}function ax(e,{type:n,diffIndicators:r,disableBackground:o,disableLineNumbers:l,overflow:u,split:d,totalLines:h,customProperties:f}){if(f!=null)for(const p in f){const m=f[p];m!=null&&e.setAttribute(p,`${m}`)}switch(n==="diff"?(e.setAttribute("data-diff",""),e.removeAttribute("data-file")):(e.setAttribute("data-file",""),e.removeAttribute("data-diff")),r){case"bars":case"classic":e.setAttribute("data-indicators",r);break;case"none":e.removeAttribute("data-indicators")}return l?e.setAttribute("data-disable-line-numbers",""):e.removeAttribute("data-disable-line-numbers"),o?e.removeAttribute("data-background"):e.setAttribute("data-background",""),n==="diff"?e.setAttribute("data-diff-type",d?"split":"single"):e.removeAttribute("data-diff-type"),e.setAttribute("data-overflow",u),e.style.setProperty("--diffs-min-number-column-width-default",`${`${h}`.length}ch`),e}if(typeof HTMLElement<"u"&&customElements.get("diffs-container")==null){let e;class n extends HTMLElement{constructor(){if(super(),this.shadowRoot!=null)return;const o=this.attachShadow({mode:"open"});e==null&&(e=new CSSStyleSheet,e.replaceSync(Ky)),o.adoptedStyleSheets=[e]}connectedCallback(){const o=this.shadowRoot??this.attachShadow({mode:"open"});au(o)}}customElements.define(Hh,n)}async function uu(e,n=300){let r;try{await Promise.race([e(),new Promise(o=>{r=setTimeout(o,n)})])}finally{r!=null&&clearTimeout(r)}}function ux({fileDiff:e,metrics:n,disableFileHeader:r,hunkSeparators:o,expandUnchanged:l,expandedHunks:u,collapsedContextThreshold:d,canHydratePartialDiff:h}){var k,x,S;let f=Br(n,r),p=f;const m=l?!0:u,v=e.hunks.length-1;for(let C=0;C<e.hunks.length;C++){const E=e.hunks[C];if(E==null)throw new Error("computeEstimatedDiffHeights: invalid hunk index");const A=bn({isPartial:e.isPartial,rangeSize:E.collapsedBefore,expandedHunks:m,hunkIndex:C,collapsedContextThreshold:d}),w=(A.fromStart+A.fromEnd)*n.lineHeight;if(f+=w,p+=w,A.collapsedLines>0){const D=((k=qr({type:o,metrics:n,hunkIndex:C,hunkSpecs:E.hunkSpecs}))==null?void 0:k.totalHeight)??0;f+=D,p+=D}f+=E.splitLineCount*n.lineHeight,p+=E.unifiedLineCount*n.lineHeight;const L=dx(E);f+=L.split*n.lineHeight,p+=L.unified*n.lineHeight;const b=C===v?En({fileDiff:e,hunkIndex:C,expandedHunks:m,collapsedContextThreshold:d,errorPrefix:"computeEstimatedDiffHeights"}):void 0;if(b!=null){const D=(b.fromStart+b.fromEnd)*n.lineHeight;if(f+=D,p+=D,b.collapsedLines>0){const F=((x=hi({type:o,metrics:n}))==null?void 0:x.totalHeight)??0;f+=F,p+=F}}else if(C===v&&e.isPartial&&h){const D=((S=hi({type:o,metrics:n}))==null?void 0:S.totalHeight)??0;f+=D,p+=D}}if(e.hunks.length>0){const C=Yh(n);f+=C,p+=C}return{splitHeight:f,unifiedHeight:p}}function dx(e){if(!e.noEOFCRAdditions&&!e.noEOFCRDeletions)return{split:0,unified:0};const n=e.hunkContent.at(-1);if(n==null)return{split:0,unified:0};if(n.type==="context"){const r=n.lines>0?1:0;return{split:r,unified:r}}return cx(e,n)}function cx(e,n){const r=(n.deletions>0&&e.noEOFCRDeletions?1:0)+(n.additions>0&&e.noEOFCRAdditions?1:0),o=n.deletions>0&&e.noEOFCRDeletions,l=n.additions>0&&e.noEOFCRAdditions;return{split:o||l?1:0,unified:r}}function du({oldFile:e,newFile:n},r){if(!(e===void 0&&n===void 0)){if(e===void 0||n===void 0)throw new Error(`${r}: Pass null for an intentionally missing oldFile or newFile side`);if(e===null){if(n===null)throw new Error(`${r}: You must pass oldFile, newFile, or both`);return{oldFile:e,newFile:n}}return n===null?{oldFile:e,newFile:n}:{oldFile:e,newFile:n}}}function Dp(e){return e.map(n=>({...n,hunkContent:n.hunkContent.map(r=>({...r}))}))}function Np(e){return{...e,hunks:Dp(e.hunks),deletionLines:[...e.deletionLines],additionLines:[...e.additionLines]}}const fx=1;function Is(e,...n){return`ck${fx}:${JSON.stringify([e,...n])}`}function zs(e){return e!==""?e.split(c0):[]}function cu(e,n,r,o={}){const l=e==="clone"?Np(n):n;if(!l.isPartial)throw new Error("hydratePartialDiff: fileDiff must be partial");switch(l.type){case"change":case"rename-changed":return hx(l,gx(l,r),ch(l,r),o);case"rename-pure":{const u=ch(l,r);mx(l,r);const d=zs(u.contents);return l.isPartial=!1,l.deletionLines=d,l.additionLines=d,l.deletionCharacterCount=u.contents.length,l.additionCharacterCount=u.contents.length,Mp(l,null,u,o),l}}throw new Error(`hydratePartialDiff: ${l.type} diffs cannot be hydrated from loaded files`)}function hx(e,n,r,o){const l=zs(n.contents),u=zs(r.contents),{hunks:d,splitLineCount:h,unifiedLineCount:f}=px(e.hunks,u.length);return e.hunks=d,e.splitLineCount=h,e.unifiedLineCount=f,e.isPartial=!1,e.deletionLines=l,e.additionLines=u,e.deletionCharacterCount=n.contents.length,e.additionCharacterCount=r.contents.length,Mp(e,n,r,o),e}function px(e,n){let r=0,o=0,l=0;const u=[];for(const d of e){const h=Math.max(d.additionStart-1,0),f=Math.max(d.deletionStart-1,0);let p=h,m=f,v=0,k=0,x=0,S=0;const C=[];for(const A of d.hunkContent){if(A.type==="context"){C.push({...A,additionLineIndex:p,deletionLineIndex:m}),p+=A.lines,m+=A.lines,x+=A.lines,S+=A.lines;continue}C.push({...A,additionLineIndex:p,deletionLineIndex:m}),p+=A.additions,m+=A.deletions,v+=A.additions,k+=A.deletions,x+=Math.max(A.additions,A.deletions),S+=A.additions+A.deletions}const E=Math.max(Vt(d.additionStart,d.additionCount)-l,0);u.push({...d,collapsedBefore:E,additionLineIndex:h,deletionLineIndex:f,additionLines:v,deletionLines:k,hunkContent:C,splitLineStart:r+E,unifiedLineStart:o+E,splitLineCount:x,unifiedLineCount:S}),r+=E+x,o+=E+S,l=Tt(d.additionStart,d.additionCount)}if(u.length>0){const d=u[u.length-1],h=Tt(d.additionStart,d.additionCount),f=Math.max(n-h,0);r+=f,o+=f}return{hunks:u,splitLineCount:r,unifiedLineCount:o}}function gx(e,n){if(n.oldFile==null)throw new Error(`hydratePartialDiff: ${e.type} diff for ${e.name} requires oldFile`);return n.oldFile}function ch(e,n){if(n.newFile==null)throw new Error(`hydratePartialDiff: ${e.type} diff for ${e.name} requires newFile`);return n.newFile}function mx(e,n){if(n.oldFile!==null)throw new Error(`hydratePartialDiff: ${e.type} diff for ${e.name} requires oldFile to be null`)}function vx(e,n,r,o){return e.cacheKey!=null?`${e.cacheKey}:hydrated`:yx(n,r,o)}function Mp(e,n,r,o){const l=vx(e,n,r,o);if(l==null){delete e.cacheKey;return}e.cacheKey=l}function yx(e,n,r){return e!=null&&n!=null?e.cacheKey!=null&&n.cacheKey!=null?Is(r.disableLineMatching===!0?"hydrated-files-raw":"hydrated-files",e.cacheKey,n.cacheKey):void 0:(e==null?void 0:e.cacheKey)??(n==null?void 0:n.cacheKey)}const xx=new TextEncoder,kx=new TextDecoder("utf-8",{ignoreBOM:!0}),Sx=/[\uD800-\uDFFF]/,fu=1024;let Ki=new Uint8Array(fu);function Ap(){Ki.length!==fu&&(Ki=new Uint8Array(fu))}function it(e){if(e.length===0)return e;if(Sx.test(e))return JSON.parse(JSON.stringify(e));const n=e.length*3;Ki.length<n&&(Ki=new Uint8Array(n));const{written:r}=xx.encodeInto(e,Ki);return kx.decode(Ki.subarray(0,r))}const wx=new TextDecoder("utf-8",{ignoreBOM:!0}),Cx={'"':'"',"\\":"\\",a:"\x07",b:"\b",t:" ",n:`
|
|
197
|
+
`,v:"\v",f:"\f",r:"\r"};function bx(e){if(e[0]!=='"')return;let n="",r=1;for(;r<e.length;){const o=e[r];if(o==='"')return{fileName:n,rawLength:r+1};if(o!=="\\"){n+=o,r++;continue}const l=Cx[e[r+1]];if(l!=null){n+=l,r+=2;continue}const u=[];do{const d=Ex(e,r+1);if(d==null)return;u.push(d),r+=4}while(e[r]==="\\"&&e[r+1]>="0"&&e[r+1]<="7");n+=wx.decode(new Uint8Array(u))}}function Ex(e,n){const r=e.charCodeAt(n)-48,o=e.charCodeAt(n+1)-48,l=e.charCodeAt(n+2)-48;if(r>=0&&r<=3&&o>=0&&o<=7&&l>=0&&l<=7)return r*64+o*8+l}const Lx=4096,Rx=.5;function Tx(e){for(const n of e.hunks)for(let r=0;r<n.hunkContent.length;r++){const o=n.hunkContent[r];if(o.type!=="change")continue;const l=Nx(e,o);l!=null&&(n.hunkContent.splice(r,1,...l),r+=l.length-1)}}function Dx(e,n,r){const{hunkContent:o}=e;for(let l=1;l<o.length;l++){const u=o[l],d=o[l-1];if(u.type!=="change"||u.additions>0&&u.deletions>0||d.type!=="context")continue;const h=u.additions>0,f=h?n.additionLines:n.deletionLines,p=h?u.additionLineIndex:u.deletionLineIndex,m=h?u.additions:u.deletions,v=f[p]??"";if(v.trim()!=="")continue;let k=!0;for(let A=1;A<m;A++)if(f[p+A]!==v){k=!1;break}if(!k)continue;let x=0;for(;x<d.lines&&n.additionLines[d.additionLineIndex+d.lines-1-x]===v;)x++;if(x===0||l===1&&x===d.lines||r!=null&&(x=r(u,x),x===0))continue;u.additionLineIndex-=x,u.deletionLineIndex-=x;const S=u.additionLineIndex+u.additions,C=u.deletionLineIndex+u.deletions,E=o[l+1];(E==null?void 0:E.type)==="context"?(E.lines+=x,E.additionLineIndex=S,E.deletionLineIndex=C):o.splice(l+1,0,{type:"context",lines:x,additionLineIndex:S,deletionLineIndex:C}),d.lines-=x,d.lines===0&&(o.splice(l-1,1),l--)}}function Nx(e,n){const{deletions:r,additions:o,deletionLineIndex:l,additionLineIndex:u}=n,d=Math.min(r,o),h=Math.abs(o-r);if(d===0||h===0||d*(h+1)>Lx)return null;const f=[];for(let C=0;C<r;C++)f.push(fh(e.deletionLines[l+C]??""));const p=[];for(let C=0;C<o;C++)p.push(fh(e.additionLines[u+C]??""));const m=o>r;let v=0,k=-1;for(let C=0;C<=h;C++){let E=0;for(let A=0;A<d;A++)E+=Ax(f[A+(m?0:C)],p[A+(m?C:0)]);C===0?k=E+d*Rx:E>k&&(k=E,v=C)}if(v===0)return null;const x=[],S=(C,E,A,w)=>{(C>0||E>0)&&x.push({type:"change",deletions:C,additions:E,deletionLineIndex:A,additionLineIndex:w})};return m?(S(0,v,l,u),S(d,d,l,u+v),S(0,o-d-v,l+d,u+v+d)):(S(v,0,l,u),S(d,d,l+v,u),S(r-d-v,0,l+v+d,u+d)),x}const Mx=/\s+/g;function fh(e){return e.replace(Mx,"")}function Ax(e,n){if(e===n)return 1;const r=Math.max(e.length,n.length),o=Math.min(e.length,n.length);if(o===0)return 0;let l=0;for(;l<o&&e[l]===n[l];)l++;let u=0;for(;u<o-l&&e[e.length-1-u]===n[n.length-1-u];)u++;return(l+u)/r}const Px=/^diff --git ("a\/(?:[^"\\]|\\.)*"|a\/.+?) ("b\/(?:[^"\\]|\\.)*"|b\/.+?)$/;function Ix(e,{cacheKeyPrefix:n,disableLineMatching:r,throwOnError:o=!1}={},l){const u=Vx(e),d=u?Ox(e):jx(e),h=r===!0?"patch-file-raw":"patch-file";let f;const p=[];for(const m of d){if(u&&!Oh.test(m)){if(f==null)f=it(m);else{if(o)throw Error("parsePatchContent: unknown file blob");console.error("parsePatchContent: unknown file blob:",m)}continue}else if(!u&&!Fx(m)){if(f==null)f=it(m);else{if(o)throw Error("parsePatchContent: unknown file blob");console.error("parsePatchContent: unknown file blob:",m)}continue}const v=Pp(m,{cacheKey:n!=null?l==null?Is(h,n,String(p.length)):Is(h,n,String(l),String(p.length)):void 0,isGitDiff:u,disableLineMatching:r,throwOnError:o});v!=null&&p.push(v)}return{patchMetadata:f,files:p}}function zx(e,n){try{return Pp(e,n)}finally{Ap()}}function Pp(e,{cacheKey:n,disableLineMatching:r=!1,isGitDiff:o=Oh.test(e),oldFile:l,newFile:u,throwOnError:d=!1}={}){let h=0;const f=jp(e,"@@ ");let p;const m=l==null||u==null;let v=0,k=0;for(const x of f){const S=zp(x),C=S[0];if(C==null){if(d)throw Error("parsePatchContent: invalid hunk");console.error("parsePatchContent: invalid hunk",x);continue}const E=Op(C);let A=0,w=0;if(E==null||p==null){if(p!=null){if(d)throw Error("parsePatchContent: Invalid hunk");console.error("parsePatchContent: Invalid hunk",x);continue}p={name:"",type:"change",hunks:[],splitLineCount:0,unifiedLineCount:0,isPartial:m,additionLines:!m&&l!=null&&u!=null?hh(u.contents):[],deletionLines:!m&&l!=null&&u!=null?hh(l.contents):[],additionCharacterCount:!m&&l!=null&&u!=null?u.contents.length:0,deletionCharacterCount:!m&&l!=null&&u!=null?l.contents.length:0,cacheKey:mh(n)},p.additionLines.length===1&&(u==null?void 0:u.contents)===""&&(p.additionLines.length=0),p.deletionLines.length===1&&(l==null?void 0:l.contents)===""&&(p.deletionLines.length=0);for(const V of S){if(V.startsWith("diff --git")){const K=V.trim().match(Px);if(K==null){if(d)throw Error("parsePatchContent: invalid git diff header");console.error("parsePatchContent: invalid git diff header",V);continue}const B=$r(K[1],!0),ie=$r(K[2],!0);p.name=it(ie),B!==ie&&(p.prevName=it(B));continue}const ue=V.startsWith("---")||V.startsWith("+++")?V.match(f0):null;if(ue!=null){const[,K,B]=ue,ie=$r(B,o);if(K==="---"&&ie!=="/dev/null"){const ye=it(ie);p.prevName=ye,p.name=ye}else K==="+++"&&ie!=="/dev/null"&&(p.name=it(ie))}else if(o){if(V.startsWith("new mode ")&&(p.mode=it(V.slice(8).trim())),V.startsWith("old mode ")&&(p.prevMode=it(V.slice(8).trim())),V.startsWith("new file mode")&&(p.type="new",p.mode=it(V.slice(13).trim())),V.startsWith("deleted file mode")&&(p.type="deleted",p.mode=it(V.slice(17).trim())),V.startsWith("similarity index")&&(V.startsWith("similarity index 100%")?p.type="rename-pure":p.type="rename-changed"),V.startsWith("index ")){const[,K,B,ie]=V.trim().match(h0)??[];K!=null&&(p.prevObjectId=it(K)),B!=null&&(p.newObjectId=it(B)),ie!=null&&(p.mode=it(ie))}(V.startsWith("rename from ")||V.startsWith("copy from "))&&(p.prevName=it($r(V.slice(V.startsWith("rename")?12:10)))),(V.startsWith("rename to ")||V.startsWith("copy to "))&&(p.name=it($r(V.slice(V.startsWith("rename")?10:8))))}}continue}let L,b;for(;S.length>0&&(S[S.length-1]===`
|
|
198
|
+
`||S[S.length-1]==="\r"||S[S.length-1]===`\r
|
|
199
|
+
`||S[S.length-1]==="");)S.pop();const{additionStart:D,deletionStart:F}=E;v=m?v:F-1,k=m?k:D-1;const N={collapsedBefore:0,splitLineCount:0,splitLineStart:0,unifiedLineCount:0,unifiedLineStart:0,additionCount:E.additionCount,additionStart:D,additionLines:A,deletionCount:E.deletionCount,deletionStart:F,deletionLines:w,deletionLineIndex:v,additionLineIndex:k,hunkContent:[],hunkContext:mh(E.hunkContext),hunkSpecs:it(C),noEOFCRAdditions:!1,noEOFCRDeletions:!1};let z=0,G=0;for(let V=1;V<S.length;V++){const ue=S[V];if(z>=N.additionCount&&G>=N.deletionCount&&!ue.startsWith("\\")){if(!(_x(ue)&&!$x(ue)))break;if(d)throw Error("parsePatchContent: hunk has more lines than expected")}const K=ue[0];if(K!=="+"&&K!=="-"&&K!==" "&&K!=="\\"){if(d)throw Error("parsePatchContent: invalid hunk line");console.error(`parseLineType: Invalid firstChar: "${K}", full line: "${ue}"`),console.error("processFile: invalid rawLine:",ue);continue}const B=Wx(K);if(B==="addition"){if(d&&z>=N.additionCount)throw Error("parsePatchContent: hunk has too many addition lines");const ie=_a(ue);(L==null||L.type!=="change")&&(L=$a("change",v,k),N.hunkContent.push(L)),k++,z++,m&&(p.additionLines.push(ie),p.additionCharacterCount+=ie.length),L.additions++,A++,b="addition"}else if(B==="deletion"){if(d&&G>=N.deletionCount)throw Error("parsePatchContent: hunk has too many deletion lines");const ie=_a(ue);(L==null||L.type!=="change")&&(L=$a("change",v,k),N.hunkContent.push(L)),v++,G++,m&&(p.deletionLines.push(ie),p.deletionCharacterCount+=ie.length),L.deletions++,w++,b="deletion"}else if(B==="context"){if(d&&(G>=N.deletionCount||z>=N.additionCount))throw Error("parsePatchContent: hunk has too many context lines");const ie=_a(ue);(L==null||L.type!=="context")&&(L=$a("context",v,k),N.hunkContent.push(L)),k++,v++,z++,G++,m&&(p.deletionLines.push(ie),p.additionLines.push(ie),p.deletionCharacterCount+=ie.length,p.additionCharacterCount+=ie.length),L.lines++,b="context"}else if(B==="metadata"&&L!=null){if(L.type==="context"?(N.noEOFCRAdditions=!0,N.noEOFCRDeletions=!0):b==="deletion"?N.noEOFCRDeletions=!0:b==="addition"&&(N.noEOFCRAdditions=!0),m&&(b==="addition"||b==="context")){const ie=p.additionLines.length-1;if(ie>=0){const ye=p.additionLines[ie],ge=Ln(ye);p.additionLines[ie]=ge,p.additionCharacterCount+=ge.length-ye.length}}if(m&&(b==="deletion"||b==="context")){const ie=p.deletionLines.length-1;if(ie>=0){const ye=p.deletionLines[ie],ge=Ln(ye);p.deletionLines[ie]=ge,p.deletionCharacterCount+=ge.length-ye.length}}}}if(z!==N.additionCount||G!==N.deletionCount){if(d)throw Error("parsePatchContent: hunk line count mismatch");console.error(`parsePatchContent: hunk line count mismatch: "${C.trimEnd()}", declared old/new ${N.deletionCount}/${N.additionCount}, parsed old/new ${G}/${z}`);const V=Vt(N.additionStart,N.additionCount)+(z===0?0:1),ue=Vt(N.deletionStart,N.deletionCount)+(G===0?0:1);if(!m){const K=V-N.additionStart,B=ue-N.deletionStart;N.additionLineIndex+=K,N.deletionLineIndex+=B;for(const ie of N.hunkContent)ie.additionLineIndex+=K,ie.deletionLineIndex+=B}N.additionStart=V,N.deletionStart=ue,N.additionCount=z,N.deletionCount=G}N.additionLines=A,N.deletionLines=w,N.collapsedBefore=Math.max(Vt(N.additionStart,N.additionCount)-h,0),p.hunks.push(N),h=Tt(N.additionStart,N.additionCount);for(const V of N.hunkContent)V.type==="context"?(N.splitLineCount+=V.lines,N.unifiedLineCount+=V.lines):(N.splitLineCount+=Math.max(V.additions,V.deletions),N.unifiedLineCount+=V.deletions+V.additions);N.splitLineStart=p.splitLineCount+N.collapsedBefore,N.unifiedLineStart=p.unifiedLineCount+N.collapsedBefore,p.splitLineCount+=N.collapsedBefore+N.splitLineCount,p.unifiedLineCount+=N.collapsedBefore+N.unifiedLineCount}if(p!=null){if(d&&m&&!o&&p.hunks.length===0)throw Error("parsePatchContent: unified file has no hunks");if(p.hunks.length>0&&!m&&p.additionLines.length>0&&p.deletionLines.length>0){const x=p.hunks[p.hunks.length-1],S=Tt(x.additionStart,x.additionCount),C=p.additionLines.length,E=Math.max(C-S,0);p.splitLineCount+=E,p.unifiedLineCount+=E}return o||(p.prevName!=null&&p.name!==p.prevName?p.hunks.length>0?p.type="rename-changed":p.type="rename-pure":(l==null||l.contents==="")&&u!=null&&u.contents!==""?p.type="new":l!=null&&l.contents!==""&&(u==null||u.contents==="")&&(p.type="deleted")),p.type!=="rename-pure"&&p.type!=="rename-changed"&&(p.prevName=void 0),r||Tx(p),p}}function Ip(e,n={}){const{cacheKeyPrefix:r,throwOnError:o=!1}=n,l=[],u=Hx(e)?e.split(d0):[e];for(const d of u)try{l.push(Ix(d,n,r!=null?l.length:void 0))}catch(h){if(o)throw h;console.error(h)}finally{Ap()}return l}function $r(e,n=!1){var l;const r=e.trim(),o=r.startsWith('"')?((l=bx(r))==null?void 0:l.fileName)??r:r;return n&&(o.startsWith("a/")||o.startsWith("b/"))?o.slice(2):o}function Hx(e){return e.startsWith("From ")||e.includes(`
|
|
200
|
+
From `)}function hh(e){const n=zp(e);for(let r=0;r<n.length;r++)n[r]=it(n[r]);return n}function zp(e){if(e.length===0)return[""];const n=[];let r=0;for(;;){const o=e.indexOf(`
|
|
201
|
+
`,r);if(o===-1)break;n.push(e.slice(r,o+1)),r=o+1}return r<e.length&&n.push(e.slice(r)),n}function Ox(e){return jp(e,"diff --git")}function jx(e){if(e.length===0)return[""];const n=[];let r=0,o=0,l=0,u=0,d=!1;for(;o<e.length;){const h=hu(e,o);if(l<=0&&u<=0){if(Hp(e,o)){o>r&&n.push(e.slice(r,o)),r=o,d=!0,o=hu(e,h);continue}if(d&&e.startsWith("@@ -",o)){const p=Op(e.slice(o,h));p!=null&&(l=p.deletionCount,u=p.additionCount)}o=h;continue}const f=e[o];if(f==="\\"){o=h;continue}f===" "?(l=Math.max(l-1,0),u=Math.max(u-1,0)):f==="-"?l=Math.max(l-1,0):f==="+"&&(u=Math.max(u-1,0)),o=h}return n.push(e.slice(r)),n}function Fx(e){return Hp(e,0)}function Hp(e,n){const r=hu(e,n);return ph(e,n,"---")&&ph(e,r,"+++")}function ph(e,n,r){if(!e.startsWith(r,n))return!1;const o=e[n+r.length];if(o!==" "&&o!==" ")return!1;for(let l=n+r.length+1;l<e.length;l++){const u=e[l];if(u===`
|
|
202
|
+
`||u==="\r")break;if(u!==" "&&u!==" ")return!0}return!1}function hu(e,n){const r=e.indexOf(`
|
|
203
|
+
`,n);return r===-1?e.length:r+1}function _x(e){const n=e[0];return n==="+"||n==="-"||n===" "}function $x(e){if(!e.startsWith("--"))return!1;for(let n=2;n<e.length;n++){const r=e[n];if(r!==" "&&r!==" "&&r!==`
|
|
204
|
+
`&&r!=="\r")return!1}return!0}function Op(e){if(!e.startsWith("@@ -"))return;let n=4;const r=ys(e,n);if(r==null)return;const o=r.value;n=r.endIndex;let l=1;if(e[n]===","){const m=ys(e,n+1);if(m==null)return;l=m.value,n=m.endIndex}if(e[n]!==" "||e[n+1]!=="+")return;n+=2;const u=ys(e,n);if(u==null)return;const d=u.value;n=u.endIndex;let h=1;if(e[n]===","){const m=ys(e,n+1);if(m==null)return;h=m.value,n=m.endIndex}if(e[n]!==" "||e[n+1]!=="@"||e[n+2]!=="@")return;let f;const p=n+3;return e[p]===" "&&(f=Ux(e.slice(p+1))),{additionCount:h,additionStart:d,deletionCount:l,deletionStart:o,hunkContext:f}}function ys(e,n){let r=n,o=0;for(;r<e.length;r++){const l=e.charCodeAt(r)-48;if(l<0||l>9)break;o=o*10+l}if(r!==n)return{value:o,endIndex:r}}function Ux(e){return e.endsWith(`\r
|
|
205
|
+
`)?e.slice(0,-2):e.endsWith(`
|
|
206
|
+
`)?e.slice(0,-1):e}function Vx(e){return e.startsWith("diff --git")||e.includes(`
|
|
207
|
+
diff --git`)}function jp(e,n){if(e.length===0)return[""];const r=`
|
|
208
|
+
${n}`,o=e.startsWith(n)?0:gh(e,r,0);if(o===-1)return[e];const l=[];o>0&&l.push(e.slice(0,o));let u=o;for(;;){const d=gh(e,r,u+1);if(d===-1)break;l.push(e.slice(u,d)),u=d}return l.push(e.slice(u)),l}function gh(e,n,r){const o=e.indexOf(n,r);return o===-1?-1:o+1}function mh(e){return e==null?e:it(e)}function Wx(e){return e===" "?"context":e==="\\"?"metadata":e==="+"?"addition":"deletion"}function _a(e){const n=e.slice(1);return it(n===""?`
|
|
209
|
+
`:n)}function $a(e,n,r){return e==="change"?{type:"change",additions:0,deletions:0,additionLineIndex:r,deletionLineIndex:n}:{type:"context",lines:0,additionLineIndex:r,deletionLineIndex:n}}const Bx="/dev/null";function Yn(e,n,{disableLineMatching:r,...o}={},l=!1){if(e===null&&n===null)throw new Error("parseDiffFromFile: You must pass oldFile, newFile, or both");const u=e??vh(),d=n??vh(),h=M1(u.name,d.name,u.contents,d.contents,u.header,d.header,o),f=zx(h,{cacheKey:(()=>{const m=e==null?void 0:e.cacheKey,v=n==null?void 0:n.cacheKey;return m!=null&&v!=null?Is(r===!0?"diff-raw":"diff",m,v):void 0})(),oldFile:u,newFile:d,disableLineMatching:r,throwOnError:l});if(f==null)throw new Error("parseDiffFrom: FileInvalid diff -- probably need to fix something -- if the files are the same maybe?");e===null?(f.type="new",f.prevName=void 0):n===null&&(f.type="deleted",f.prevName=void 0);const p=(n==null?void 0:n.lang)??(n===null?e==null?void 0:e.lang:void 0);return p!=null&&(f.lang=p),f}function vh(){return{name:Bx,contents:""}}var qx=class{constructor(){O(this,"isDeletionsScrolling",!1);O(this,"isAdditionsScrolling",!1);O(this,"timeoutId",-1);O(this,"codeDeletions");O(this,"codeAdditions");O(this,"enabled",!1);O(this,"handleDeletionsScroll",()=>{var e,n;this.isAdditionsScrolling||(this.isDeletionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isDeletionsScrolling=!1},300),(n=this.codeAdditions)==null||n.scrollTo({left:(e=this.codeDeletions)==null?void 0:e.scrollLeft}))});O(this,"handleAdditionsScroll",()=>{var e,n;this.isDeletionsScrolling||(this.isAdditionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isAdditionsScrolling=!1},300),(n=this.codeDeletions)==null||n.scrollTo({left:(e=this.codeAdditions)==null?void 0:e.scrollLeft}))})}cleanUp(){var e,n;this.enabled&&((e=this.codeDeletions)==null||e.removeEventListener("scroll",this.handleDeletionsScroll),(n=this.codeAdditions)==null||n.removeEventListener("scroll",this.handleAdditionsScroll),clearTimeout(this.timeoutId),this.codeDeletions=void 0,this.codeAdditions=void 0,this.enabled=!1)}setup(e,n,r){var o,l;if(n==null||r==null)for(const u of e.children??[])u instanceof HTMLElement&&("deletions"in u.dataset?n=u:"additions"in u.dataset&&(r=u));if(r==null||n==null){this.cleanUp();return}this.codeDeletions!==n&&((o=this.codeDeletions)==null||o.removeEventListener("scroll",this.handleDeletionsScroll),this.codeDeletions=n,n.addEventListener("scroll",this.handleDeletionsScroll,{passive:!0})),this.codeAdditions!==r&&((l=this.codeAdditions)==null||l.removeEventListener("scroll",this.handleAdditionsScroll),this.codeAdditions=r,r.addEventListener("scroll",this.handleAdditionsScroll,{passive:!0})),this.enabled=!0}};function wn(e,n){const r=Yn({name:e.prevName??e.name,contents:e.deletionLines.join("")},{name:e.name,contents:e.additionLines.join(""),lang:e.lang},n);return{hunks:r.hunks,splitLineCount:r.splitLineCount,unifiedLineCount:r.unifiedLineCount,additionLines:r.additionLines,deletionLines:r.deletionLines,additionCharacterCount:r.additionCharacterCount,deletionCharacterCount:r.deletionCharacterCount,type:r.type}}function Gx(e,n){const r=Math.max(e,1);let o=Array.from({length:r},(l,u)=>`${" ".repeat(u+1)}
|
|
210
|
+
`).join("");return o===n&&(o=Array.from({length:r},(l,u)=>`\0${" ".repeat(u)}
|
|
211
|
+
`).join("")),o}function Xx(e){for(const n of e)if(n.trim().length>0)return!1;return!0}function pu(e,n){return n.length>0&&n.length<e.deletionLines.length&&Xx(n)}function Hs(e,n,r,o){const l=e.deletionLines.join(""),u=Gx(n.length,l),d=Yn({name:e.prevName??e.name,contents:l},{name:e.name,contents:u,lang:e.lang},o);return{hunks:d.hunks,splitLineCount:d.splitLineCount,unifiedLineCount:d.unifiedLineCount,additionLines:n,deletionLines:d.deletionLines,additionCharacterCount:r,deletionCharacterCount:d.deletionCharacterCount,type:d.type}}function Ts(e,n){return Hs(e,[""],0,n)}function Fp(e,n){if(e.additionLines.length===0)return Ts(e,n);if(pu(e,e.additionLines))return Hs(e,e.additionLines,e.additionCharacterCount,n);const r=e.additionLines,o=wn(e,n);return _p(o,r),o}function Kx(e){return e.length>1&&e.at(-1)===""}function _p(e,n){if(!Kx(n))return;const r=n.length-e.additionLines.length;if(r<=0)return;const o=e.additionLines.length,l=e.hunks.at(-1);if(l!=null&&Tt(l.additionStart,l.additionCount)===o){for(const u of l.hunkContent)if(u.type==="change"&&u.additions<u.deletions&&u.additionLineIndex+u.additions===o){e.additionLines=n,u.additions+=r,l.additionCount+=r,l.additionLines+=r,js(e);return}}}function Qx(e,n,r){if(e.isPartial||e.deletionLines.length!==e.additionLines.length)return Sn(e,wn(e,r));const o=Array.from(n);if(o.length===0)return Sn(e,{hunks:e.hunks,splitLineCount:e.splitLineCount,unifiedLineCount:e.unifiedLineCount,type:e.type});for(const u of o){const d=e.additionLines[u],h=e.deletionLines[u];if(d==null||h==null||Ln(d)===Ln(h))return Sn(e,wn(e,r))}const l=Yx(e,o);if(l.size===0)return Sn(e,wn(e,r));for(const u of l)if(!Jx(e,u,r))return Sn(e,wn(e,r));return js(e),f1(e)?Sn(e,wn(e,r)):Sn(e,{hunks:e.hunks,splitLineCount:e.splitLineCount,unifiedLineCount:e.unifiedLineCount,type:e.type})}function Sn(e,n){return Object.assign(e,n),n}function Yx(e,n){const r=new Set;for(const o of n){const l=Zx(e,o);if(l==null)return new Set;r.add(l)}return r}function Zx(e,n){for(const[r,o]of e.hunks.entries()){const l=o.additionLineIndex+o.additionCount;if(n>=o.additionLineIndex&&n<l)return r}}function Jx(e,n,r){const o=e.hunks[n];if(o==null)return!1;const l=e.deletionLines.slice(o.deletionLineIndex,o.deletionLineIndex+o.deletionCount),u=e.additionLines.slice(o.additionLineIndex,o.additionLineIndex+o.additionCount),d=Yn({name:e.prevName??e.name,contents:l.join("")},{name:e.name,contents:u.join(""),lang:e.lang},{...r,context:0}),h=d.hunks[0];return h==null||d.hunks.length!==1?!1:(ek(o,h),$p(e,n),!0)}function $p(e,n){const r=e.hunks[n];if(r==null)return;if(n!==e.hunks.length-1){r.noEOFCRAdditions=!1,r.noEOFCRDeletions=!1;return}const o=e.additionLines.at(-1),l=e.deletionLines.at(-1);r.noEOFCRAdditions=o!=null&&o!==""&&!o.endsWith(`
|
|
212
|
+
`),r.noEOFCRDeletions=l!=null&&l!==""&&!l.endsWith(`
|
|
213
|
+
`)}function ek(e,n){const r=e.additionLineIndex,o=e.deletionLineIndex;e.hunkContent=n.hunkContent.map(l=>Up(l,r,o)),e.additionLineIndex=r+n.additionLineIndex,e.additionStart=e.additionStart+n.additionLineIndex,e.additionCount=n.additionCount,e.additionLines=n.additionLines,n.deletionLineIndex>=0&&(e.deletionLineIndex=o+n.deletionLineIndex,e.deletionStart=e.deletionStart+n.deletionLineIndex),e.deletionCount=n.deletionCount,e.deletionLines=n.deletionLines,e.noEOFCRAdditions=n.noEOFCRAdditions,e.noEOFCRDeletions=n.noEOFCRDeletions,Mu(e)}function Up(e,n,r){return{...e,additionLineIndex:e.additionLineIndex+n,deletionLineIndex:e.deletionLineIndex+r}}function Mu(e){let n=0,r=0;for(const o of e.hunkContent)o.type==="context"?(n+=o.lines,r+=o.lines):(n+=Math.max(o.additions,o.deletions),r+=o.additions+o.deletions);e.splitLineCount=n,e.unifiedLineCount=r}function js(e){let n=0,r=0,o=0;for(const l of e.hunks)l.collapsedBefore=Math.max(Vt(l.additionStart,l.additionCount)-o,0),l.splitLineStart=n+l.collapsedBefore,l.unifiedLineStart=r+l.collapsedBefore,Mu(l),n+=l.collapsedBefore+l.splitLineCount,r+=l.collapsedBefore+l.unifiedLineCount,o=Tt(l.additionStart,l.additionCount);if(e.hunks.length>0){const l=e.hunks[e.hunks.length-1],u=Math.max(e.additionLines.length-Tt(l.additionStart,l.additionCount),0);n+=u,r+=u}e.splitLineCount=n,e.unifiedLineCount=r}const yh=new WeakMap;function tk(e){return e.length>1&&e[e.length-1]===""?e.slice(0,-1):e}function nk(e,n){const r=Math.min(e.length,n.length);let o=0;for(;o<r&&e[o]===n[o];)o++;let l=e.length,u=n.length;for(;l>o&&u>o&&e[l-1]===n[u-1];)l--,u--;if(!(o===l&&o===u))return{start:o,deletionEnd:l,additionEnd:u}}function gu(e,n,r){const o=e.hunks,l=e.additionLines,u=tk(l),d=u===l?e:{...e,additionLines:u},h=fk(o,dk(d,n,r),e.deletionLines.length),f=gk(d,h);if(e.additionLines=u,e.hunks=f,e.editSessionDirty=!0,xk(e),_p(e,l),!!vk(o,e.hunks))return{regions:h.map(p=>p.previousSpan)}}function ik(e,n,r,o){const l=new Set(n),u=Array.from(l).filter(m=>m>=0&&m<e.additionLines.length).sort((m,v)=>m-v);if(u.length===0)return;const d=m=>l.has(m)?o==null?void 0:o.get(m):e.additionLines[m],{hunks:h}=e;let f,p=0;for(const m of u){for(;p<h.length;){const x=h[p];if(m<Os(x)+x.additionCount)break;p++}const v=h[p],k=v==null?void 0:Os(v);if(k==null||m<k||f!=null&&f!==p)return gu(e,r,d);f=p}if(f!=null){if(rk(e,u,f,o,r)){e.editSessionDirty=!0;return}return gu(e,r,d)}}function rk(e,n,r,o,l){if(o==null||(l==null?void 0:l.ignoreWhitespace)===!0||(l==null?void 0:l.stripTrailingCr)===!0)return!1;const u=ok(e),d=e.hunks[r];if(d.hunkContent.some(sk))return!1;for(const h of n){const f=o.get(h),p=e.additionLines[h];if(f==null||p==null||u.has(f)||u.has(p))return!1;let m=!1;for(const v of d.hunkContent)if(v.type==="change"&&v.additions===v.deletions&&h>=v.additionLineIndex&&h<v.additionLineIndex+v.additions){m=!0;break}if(!m)return!1}return!0}function ok(e){const n=yh.get(e);if((n==null?void 0:n.lines)===e.deletionLines)return n.set;const r=new Set(e.deletionLines);return yh.set(e,{lines:e.deletionLines,set:r}),r}function sk(e){return(e==null?void 0:e.type)==="change"&&(e.additions===0||e.deletions===0)}function lk(e,n){const r=new Map,{regions:o}=n;for(let l=0;l<=o.length;l++){const u=o[l-1],d=o[l],h=l===0?e.get(0):u==null?void 0:e.get(u.lastIndex+1),f=d==null?void 0:e.get(d.firstIndex),p=(h==null?void 0:h.fromStart)??0,m=(f==null?void 0:f.fromEnd)??0;(p>0||m>0)&&r.set(l,{fromStart:p,fromEnd:m})}return r}function ak(e,n,r){const o=[];if(e.isPartial)return o;for(const[u,d]of e.hunks.entries()){const h=bn({isPartial:e.isPartial,rangeSize:d.collapsedBefore,expandedHunks:n,hunkIndex:u,collapsedContextThreshold:r});if(h.rangeSize<=r)continue;const f=vi(d),p=f-h.rangeSize;h.fromStart>0&&o.push([p,p+h.fromStart]),h.fromEnd>0&&o.push([f-h.fromEnd,f])}const l=En({fileDiff:e,hunkIndex:e.hunks.length-1,expandedHunks:n,collapsedContextThreshold:r,errorPrefix:"captureExpansionAnchors"});if(l!=null&&l.fromStart>0&&l.rangeSize>r){const u=e.hunks[e.hunks.length-1],d=vi(u)+u.deletionCount;o.push([d,d+l.fromStart])}return o}function uk(e,n){const r=new Map;if(n.length===0)return r;const o=(u,d,h)=>{if(h<=d)return;let f=0,p=0;for(const[m,v]of n)v<=d||m>=h||(m<=d&&(f=Math.max(f,Math.min(v,h)-d)),v>=h&&(p=Math.max(p,h-Math.max(m,d))));(f>0||p>0)&&r.set(u,{fromStart:f,fromEnd:p})};for(const[u,d]of e.hunks.entries()){const h=vi(d);o(u,h-Math.max(d.collapsedBefore,0),h)}const l=e.hunks[e.hunks.length-1];return l!=null&&!e.isPartial&&e.deletionLines.length>0&&o(e.hunks.length,vi(l)+l.deletionCount,e.deletionLines.length),r}function xh(e,n){return e.editSessionDirty!==!0?!1:(delete e.editSessionDirty,Object.assign(e,e.additionLines.length<=1&&e.additionLines.join("")===""?wn(e,n):Fp(e,n)),!0)}function dk(e,n,r){if(nk(e.deletionLines,e.additionLines)==null)return[];const o=Yn({name:e.prevName??e.name,contents:e.deletionLines.join("")},{name:e.name,contents:e.additionLines.join(""),lang:e.lang},n);let l;const u=(p,m)=>{l??(l=ck(e.hunks));for(let v=0;v<=m;v++){const k=l.get(p.deletionLineIndex-v);if(!(k==null||k.additions!==p.additions||k.deletions!==p.deletions)){if(p.additions>0&&r!=null){for(let x=0;x<p.additions;x++)if(r(k.additionLineIndex+x)!==o.additionLines[p.additionLineIndex+x])return m}return v}}return m},d=[];let h=0,f=0;for(const p of o.hunks){Dx(p,o,u);const m=p.additionCount>0?p.additionLineIndex-h:p.deletionLineIndex-f;h+=m,f+=m;for(const v of p.hunkContent){if(v.type==="context"){h+=v.lines,f+=v.lines;continue}const k=Up(v,0,0);k.additions===0&&(k.additionLineIndex=h),k.deletions===0&&(k.deletionLineIndex=f),d.push(k),h+=k.additions,f+=k.deletions}}return d}function ck(e){const n=new Map;for(const r of e)for(const o of r.hunkContent)o.type==="change"&&(o.additions===0||o.deletions===0)&&n.set(o.deletionLineIndex,o);return n}function fk(e,n,r){var d,h;const o=e.map((f,p)=>{const m=vi(f);return{deletionStart:m,deletionEnd:m+f.deletionCount,blocks:[],previousSpan:{firstIndex:p,lastIndex:p}}}),l=[];let u=0;for(const f of n){const p=f.deletionLineIndex,m=p+f.deletions;for(;u<o.length&&o[u].deletionEnd<p;)l.push(o[u]),u++;let v=l.length>0&&hk(p,m,l[l.length-1])?l.pop():void 0;for(;u<o.length&&o[u].deletionStart<=m;)v=pk(v,o[u]),u++;if(v==null){let k=p,x=m;if((f.deletions===0||f.additions===0)&&r>f.deletions){const S=((d=l[l.length-1])==null?void 0:d.deletionEnd)??0,C=((h=o[u])==null?void 0:h.deletionStart)??r;p>S?k--:m<C&&x++}v={deletionStart:k,deletionEnd:x,blocks:[],previousSpan:void 0}}v.deletionStart=Math.min(v.deletionStart,p),v.deletionEnd=Math.max(v.deletionEnd,m),v.blocks.push(f),l.push(v)}for(;u<o.length;)l.push(o[u]),u++;return l}function hk(e,n,r){return e<=r.deletionEnd&&n>=r.deletionStart}function pk(e,n){return e==null?n:(e.deletionStart=Math.min(e.deletionStart,n.deletionStart),e.deletionEnd=Math.max(e.deletionEnd,n.deletionEnd),e.blocks.push(...n.blocks),n.previousSpan!=null&&(e.previousSpan??(e.previousSpan={...n.previousSpan}),e.previousSpan.firstIndex=Math.min(e.previousSpan.firstIndex,n.previousSpan.firstIndex),e.previousSpan.lastIndex=Math.max(e.previousSpan.lastIndex,n.previousSpan.lastIndex)),e)}function gk(e,n){const r=[];let o=0,l=0;for(const u of n){const d=u.deletionStart-o;if(d<0)throw new Error("buildRegionHunks: overlapping old-side regions");o+=d,l+=d;const h=l,f=[];for(const m of u.blocks){const v=m.deletionLineIndex-o,k=m.additionLineIndex-l;if(v<0||v!==k)throw new Error("buildRegionHunks: canonical block context mismatch");kh(f,v,l,o),o+=v,l+=k,f.push({...m}),o+=m.deletions,l+=m.additions}const p=u.deletionEnd-o;if(p<0)throw new Error("buildRegionHunks: block exceeds its old-side region");kh(f,p,l,o),o+=p,l+=p,r.push(mk(e,{additionStart:h,additionEnd:l,deletionStart:u.deletionStart,deletionEnd:u.deletionEnd},f))}if(e.deletionLines.length-o!==e.additionLines.length-l)throw new Error("buildRegionHunks: trailing context mismatch");return r}function mk(e,n,r){const o=n.additionEnd-n.additionStart,l=n.deletionEnd-n.deletionStart;let u=0,d=0;for(const f of r)f.type==="change"&&(u+=f.additions,d+=f.deletions);const h={collapsedBefore:0,additionStart:xs(n.additionStart,o),additionCount:o,additionLines:u,additionLineIndex:wh(n.additionStart,o),deletionStart:xs(n.deletionStart,l),deletionCount:l,deletionLines:d,deletionLineIndex:wh(n.deletionStart,l),hunkContent:r,hunkSpecs:`@@ -${xs(n.deletionStart,l)},${l} +${xs(n.additionStart,o)},${o} @@`,splitLineStart:0,splitLineCount:0,unifiedLineStart:0,unifiedLineCount:0,noEOFCRAdditions:!1,noEOFCRDeletions:!1};return Mu(h),h}function kh(e,n,r,o){n>0&&e.push({type:"context",lines:n,additionLineIndex:r,deletionLineIndex:o})}function vk(e,n){if(e.length!==n.length)return!0;for(let r=0;r<e.length;r++){const o=e[r],l=n[r];if(vi(o)!==vi(l)||o.deletionCount!==l.deletionCount||Os(o)!==Os(l)||o.additionCount!==l.additionCount||o.splitLineCount!==l.splitLineCount||!yk(o,l))return!0}return!1}function yk(e,n){const r=Sh(e),o=Sh(n);for(;;){const l=r.next(),u=o.next();if(l.done===!0||u.done===!0)return l.done===u.done;if(l.value[0]!==u.value[0]||l.value[1]!==u.value[1])return!1}}function*Sh(e){for(const n of e.hunkContent){if(n.type==="context"){for(let o=0;o<n.lines;o++)yield[n.deletionLineIndex+o,n.additionLineIndex+o];continue}const r=Math.max(n.deletions,n.additions);for(let o=0;o<r;o++)yield[o<n.deletions?n.deletionLineIndex+o:void 0,o<n.additions?n.additionLineIndex+o:void 0]}}function Os(e){return Vt(e.additionStart,e.additionCount)}function vi(e){return Vt(e.deletionStart,e.deletionCount)}function xs(e,n){return n===0?e:e+1}function wh(e,n){return n===0?e-1:e}function xk(e){js(e);for(let n=0;n<e.hunks.length;n++)$p(e,n)}function ks(e){return Re({tagName:"div",properties:{"data-content-buffer":"","data-buffer-size":e,style:`grid-row: span ${e};min-height:calc(${e} * 1lh)`}})}function Ss(e){return Re({tagName:"div",children:[Re({tagName:"span",children:[dn("No newline at end of file")]})],properties:{"data-no-newline":"","data-line-type":e,"data-column-content":""}})}function Ua(e){return Re({tagName:"div",children:[Ms({name:e==="both"?"diffs-icon-expand-all":"diffs-icon-expand",properties:{"data-icon":""}})],properties:{role:"button","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 Gi({type:e,content:n,expandIndex:r,chunked:o=!1,slotName:l,isFirstHunk:u,isLastHunk:d}){let h=0;const f=[];if(e==="metadata"&&n!=null&&f.push(Re({tagName:"div",children:[dn(n)],properties:{"data-separator-wrapper":""}})),(e==="line-info"||e==="line-info-basic")&&n!=null){const p=[];r!=null&&(o?(u||(p.push(Ua("up")),h++),d||(p.push(Ua("down")),h++)):(p.push(Ua(!u&&!d?"both":u?"down":"up")),h++)),p.push(Re({tagName:"div",children:[Re({tagName:"span",children:[dn(n)],properties:{"data-unmodified-lines":""}})],properties:{"data-separator-content":""}})),o&&r!=null&&p.push(Re({tagName:"div",children:[dn("Expand all")],properties:{role:"button","data-expand-button":"","data-expand-all-button":""}})),f.push(Re({tagName:"div",children:p,properties:{"data-separator-wrapper":"","data-separator-multi-button":h>1?"":void 0}}))}return e==="custom"&&l!=null&&f.push(Re({tagName:"slot",properties:{name:l}})),Re({tagName:"div",children:f,properties:{"data-separator":f.length===0?"simple":e,"data-expand-index":r,"data-separator-first":u?"":void 0,"data-separator-last":d?"":void 0}})}function kk(e,n){return`hunk-separator-${e}-${n}`}function Sk(e){const n=e.at(-1);return n==null?0:Math.max(Tt(n.additionStart,n.additionCount),Tt(n.deletionStart,n.deletionCount))}let wk=-1;var Ck=class{constructor(e={theme:Cn},n=pi,r,o){O(this,"options");O(this,"annotationSlotName");O(this,"onRenderUpdate");O(this,"workerManager");O(this,"__id",`diff-hunks-renderer:${++wk}`);O(this,"diff");O(this,"expandedHunks",new Map);O(this,"deletionAnnotations",{});O(this,"additionAnnotations",{});O(this,"computedLangs",["text"]);O(this,"renderCache");O(this,"pendingHighlightResult");O(this,"pendingStructuralRows");O(this,"editSessionActive",!1);O(this,"createAnnotationElement",e=>Iy(e));this.options=e,this.annotationSlotName=n,this.onRenderUpdate=r,this.workerManager=o}cleanUp(){this.endEditSession(),this.recycle(),this.expandedHunks.clear(),this.workerManager=void 0,this.onRenderUpdate=void 0}recycle(){var e;this.diff=void 0,this.editSessionActive?(this.renderCache!=null&&(this.renderCache.renderRange=void 0),this.pendingHighlightResult=void 0,this.pendingStructuralRows=void 0):this.clearRenderCache(),this.additionAnnotations={},this.deletionAnnotations={},(e=this.workerManager)==null||e.cleanUpTasks(this)}beginEditSession(e,n){const{editSessionActive:r}=this;this.editSessionActive=!0,r||(this.pendingHighlightResult=void 0),this.diff=e,r&&this.renderCache!=null&&this.renderCache.diff!==e&&this.clearRenderCache();const{renderCache:o}=this;if(!e.isPartial&&e.additionLines.length===0){Object.assign(e,Ts(e,this.options.parseDiffOptions)),this.markEditSessionPass(e),this.clearRenderCache();return}if(o==null||r&&o.diff===e)return;const{options:l}=this.getRenderOptions(e),u=o.diff===e,d=n!=null&&ze(o.diff,n),{result:h}=o;if(!o.highlighted||h==null||!xn(o.options,l)||!u&&!d){this.clearRenderCache();return}u||(this.renderCache={diff:e,options:l,highlighted:!0,result:{...h,code:{...h.code,additionLines:[...h.code.additionLines]}},renderRange:o.renderRange})}endEditSession(){this.editSessionActive=!1,this.pendingHighlightResult=void 0,this.diff==null&&this.clearRenderCache()}editorRenderReady(){var e;return((e=this.renderCache)==null?void 0:e.options.useTokenTransformer)===!0&&this.renderCache.highlighted&&this.renderCache.result!=null}refreshHighlightedResult(){const{diff:e,renderCache:n,workerManager:r}=this;return e==null||n==null||!ze(n.diff,e)||Wr(e)||Ur(e,this.getTokenizeMaxLength())?Promise.resolve():!this.editSessionActive&&(r==null?void 0:r.isWorkingPool())===!0&&e.cacheKey!=null?(r.evictDiffFromCache(e.cacheKey),r.primeDiffHighlightCache(e).then(()=>{this.applyRefreshedResult(e,r.getDiffResultCache(e))}).catch(o=>{Kh(o)||this.onHighlightError(o)})):this.asyncHighlight(e).then(o=>this.applyRefreshedResult(e,o)).catch(o=>this.onHighlightError(o))}applyRefreshedResult(e,n){var u;const{diff:r,renderCache:o}=this;if(n==null||r==null||o==null||!ze(r,e)||!ze(o.diff,e)||this.editSessionActive)return;const{options:l}=this.getRenderOptions(r);xn(l,n.options)&&(this.pendingHighlightResult={diff:r,options:n.options,highlighted:!0,result:n.result},(u=this.onRenderUpdate)==null||u.call(this))}get diffCache(){var e;return((e=this.renderCache)==null?void 0:e.diff)??this.diff}clearRenderCache(){this.renderCache=void 0,this.pendingHighlightResult=void 0,this.pendingStructuralRows=void 0}setOptions(e){this.options=e}mergeOptions(e){this.options={...this.options,...e}}expandHunk(e,n,r=this.getOptionsWithDefaults().expansionLineCount){var l;const o={...this.expandedHunks.get(e)??{fromStart:0,fromEnd:0}};(n==="up"||n==="both")&&(o.fromStart+=r),(n==="down"||n==="both")&&(o.fromEnd+=r),((l=this.renderCache)==null?void 0:l.highlighted)!==!0&&this.clearRenderCache(),this.expandedHunks.set(e,o)}getExpandedHunk(e){return this.expandedHunks.get(e)??y0}getExpandedHunksMap(){return this.expandedHunks}setExpandedHunksMap(e){this.expandedHunks=e}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}})(),o=r[n.lineNumber]??[];r[n.lineNumber]=o,o.push(n)}}updateRenderCache(e,n,r=!1,o,l){var x;this.pendingStructuralRows=void 0;const{renderCache:u}=this;if(u==null)return!1;const{result:d,diff:h}=u;if(d==null)return!1;if(h.isPartial)throw new Error("Could not update render cache for partial diff");const f=d.code.additionLines,p=this.pendingStructuralRows=r?new Map:void 0,m=[],v=new Map;if(p==null&&o!=null){const S=h.additionLines.length,C=Rk(h.additionLines,l);for(const[E,A]of o){if(E<0||E>S||E===S&&(A===""||!C))continue;const w=h.additionLines[E]??"";w!==A&&(h.additionLines[E]=A,h.additionCharacterCount+=A.length-w.length,m.push(E),v.set(E,w),e.has(E)||(f[E]=Ds(E,Ln(A))))}}for(const[S,C]of e){const E=((x=f[S])==null?void 0:x.properties)??{},A=C.map(F=>F[2]).join(""),w=S<h.additionLines.length,L=w?h.additionLines[S]??"":"",b=Ln(L);if(p==null&&w&&(o==null?void 0:o.has(S))!==!0){const F=Py(L,A);h.additionLines[S]=F,h.additionCharacterCount+=F.length-L.length,b!==A&&(m.push(S),v.set(S,L))}const D={type:"element",tagName:"div",properties:{"data-line":E["data-line"]??S+1,"data-line-index":E["data-line-index"]??S,"data-line-type":E["data-line-type"]??"context"},children:C.map(([F,N,z])=>F===0&&N===""?z===""?{type:"element",tagName:"br",properties:{},children:[]}:{type:"text",value:z}:{type:"element",tagName:"span",properties:{"data-char":F,style:`color:${N};`},children:[{type:"text",value:z}]})};p!=null?p.set(S,D):f[S]=D}let k=!1;if(m.length>0)if(this.editSessionActive)if(h.additionLines.length<=1&&h.additionLines.join("")==="")this.applyRecomputePreservingSessionType(h,Ts(h,this.options.parseDiffOptions)),k=!0;else if(pu(h,h.additionLines))this.applyRecomputePreservingSessionType(h,Hs(h,h.additionLines,h.additionCharacterCount,this.options.parseDiffOptions)),k=!0;else{const S=ik(h,m,this.options.parseDiffOptions,v);this.applyExpansionRemap(S),k=S!=null}else Object.assign(h,Qx(h,m,this.options.parseDiffOptions));return d.baseThemeType=n,u.isDirty=!0,k}applyExpansionRemap(e){e!=null&&(this.expandedHunks=lk(this.expandedHunks,e))}applyDocumentChange(e){const{pendingStructuralRows:n,renderCache:r}=this;this.pendingStructuralRows=void 0;const o=this.diff??(r==null?void 0:r.diff);if(o==null)return;const l=r==null?void 0:r.result;if(o.isPartial)throw new Error("Could not apply document change for partial diff");const{additionLines:u}=o,{lines:d,characterCount:h}=Tk(e);if(o.additionLines=d,o.additionCharacterCount=h,l!=null&&(l.code.additionLines=Lk(u,o.additionLines,l.code.additionLines,e)),o.additionLines.length<=1&&o.additionLines.join("")===""?(this.applyRecomputePreservingSessionType(o,Ts(o,this.options.parseDiffOptions)),l!=null&&(l.code.additionLines[0]=Ds(0,e.getLineText(0)))):this.editSessionActive?this.applySessionDocumentChange(o,u):Object.assign(o,Fp(o,this.options.parseDiffOptions)),n!=null&&l!=null)for(const[f,p]of n)f<l.code.additionLines.length&&(l.code.additionLines[f]=p);r!=null&&(r.isDirty=!0)}applySessionDocumentChange(e,n){const{parseDiffOptions:r}=this.options,o=e.additionLines;if(pu(e,o)){this.applyRecomputePreservingSessionType(e,Hs(e,o,e.additionCharacterCount,r));return}this.applyExpansionRemap(gu(e,r,l=>n[l]))}applyRecomputePreservingSessionType(e,n){const r=this.editSessionActive?e.type:void 0;Object.assign(e,n),r!=null&&(e.type=r),this.markEditSessionPass(e)}markEditSessionPass(e){this.editSessionActive&&(e.editSessionDirty=!0)}getUnifiedLineDecoration({lineType:e}){return{gutterLineType:e,contentProperties:{"data-line-type":e}}}getSplitLineDecoration({side:e,type:n}){const r=n==="change"?e==="deletions"?"change-deletion":"change-addition":n;return{gutterLineType:r,contentProperties:{"data-line-type":r}}}getOptionsWithDefaults(){var D;const{diffIndicators:e="bars",diffStyle:n="split",disableBackground:r=!1,disableFileHeader:o=!1,disableLineNumbers:l=!1,disableVirtualizationBuffers:u=!1,collapsed:d=!1,expandUnchanged:h=!1,collapsedContextThreshold:f=1,expansionLineCount:p=100,hunkSeparators:m="line-info",lineDiffType:v="word-alt",maxLineDiffLength:k=1e3,overflow:x="scroll",stickyHeader:S=!1,theme:C=Cn,headerRenderMode:E="default",tokenizeMaxLineLength:A=1e3,tokenizeMaxLength:w=v0,useTokenTransformer:L=!1,useCSSClasses:b=!1}=this.options;return{diffIndicators:e,diffStyle:n,disableBackground:r,disableFileHeader:o,disableLineNumbers:l,disableVirtualizationBuffers:u,collapsed:d,expandUnchanged:h,collapsedContextThreshold:f,expansionLineCount:p,hunkSeparators:m,lineDiffType:v,maxLineDiffLength:k,overflow:x,stickyHeader:S,theme:((D=this.workerManager)==null?void 0:D.getDiffRenderOptions().theme)??C,headerRenderMode:E,tokenizeMaxLineLength:A,tokenizeMaxLength:w,useTokenTransformer:L,useCSSClasses:b}}initializeHighlighter(){return Vh(Uy(this.computedLangs,{theme:this.getLocalHighlightTheme(),preferredHighlighter:rp(this.workerManager,this.options)}))}hydrate(e){var u;if(e==null)return;this.diff=e;const{options:n}=this.getRenderOptions(e),r=Ur(e,this.getTokenizeMaxLength());let o=(u=this.workerManager)==null?void 0:u.getDiffResultCache(e);o!=null&&!xn(n,o.options)&&(o=void 0),this.renderCache??(this.renderCache={diff:e,hydrated:!0,highlighted:!r&&!Wr(e),options:n,result:r||o==null?void 0:o.result,renderRange:void 0});const l=this.getHighlightWorkerManager(e);l!=null?this.renderCache.result==null&&!r&&l.highlightDiffAST(this,this.diff):Xi({theme:this.getLocalHighlightTheme()})==null&&(this.computedLangs=Wa(e),this.initializeHighlighter().catch(d=>{d instanceof Ns||this.onHighlightError(d)}))}getHighlightWorkerManager(e){const{editSessionActive:n,workerManager:r}=this;return!n&&(r==null?void 0:r.isWorkingPool())===!0&&!r.shouldHighlightOnMainThread(e)?r:void 0}cacheHighlightResult(e,n){const{editSessionActive:r,workerManager:o}=this;!r&&(o==null?void 0:o.isWorkingPool())===!0&&o.setDiffResultCache(e.cacheKey,n)}getLocalHighlightTheme(){var e;return((e=this.workerManager)==null?void 0:e.getDiffRenderOptions().theme)??this.options.theme??Cn}getEffectiveCodeOptions(){var n;const e=((n=this.workerManager)==null?void 0:n.isWorkingPool())===!0?this.workerManager.getDiffRenderOptions():void 0;return{theme:this.getLocalHighlightTheme(),tokenizeMaxLineLength:(e==null?void 0:e.tokenizeMaxLineLength)??this.options.tokenizeMaxLineLength}}getRenderOptions(e){const n=(()=>{var h;if(((h=this.workerManager)==null?void 0:h.isWorkingPool())===!0){const f=this.workerManager.getDiffRenderOptions();return this.editSessionActive&&f.useTokenTransformer!==!0?{...f,useTokenTransformer:!0}:f}const{theme:o,tokenizeMaxLineLength:l,lineDiffType:u,maxLineDiffLength:d}=this.getOptionsWithDefaults();return{theme:o,useTokenTransformer:this.editSessionActive||this.options.useTokenTransformer===!0,tokenizeMaxLineLength:l,lineDiffType:u,maxLineDiffLength:d}})();this.getOptionsWithDefaults();const{renderCache:r}=this;return(r==null?void 0:r.result)==null?{options:n,forceHighlight:!0}:!ze(e,r.diff)||!xn(n,r.options)?{options:n,forceHighlight:!0}:{options:n,forceHighlight:!1}}getDiffForNextRender(e){const{options:n}=this.getRenderOptions(e);if(this.getReadyRenderResult(e,n)!=null||this.renderCache==null)return e;if(ze(this.renderCache.diff,e))return this.renderCache.diff;const r=!(e.additionLines.length>0||e.deletionLines.length>0)||Wr(e)||Ur(e,this.getTokenizeMaxLength());return this.canRenderDiff(e,n,r)?e:this.renderCache.diff}canRenderDiff(e,n,r){var l;const{renderCache:o}=this;return o==null||ze(o.diff,e)?!0:r?o.result==null&&o.hydrated!==!0||((l=this.workerManager)==null?void 0:l.isWorkingPool())===!0&&!this.workerManager.shouldHighlightOnMainThread(e)||Xi({theme:n.theme})!=null:o.result==null&&o.hydrated!==!0?!0:this.getHighlightWorkerManager(e)!=null?!o.highlighted:Xi({theme:n.theme})!=null}renderDiff(e=this.diff,n=Df){if(this.diff=e,e==null){this.pendingHighlightResult=void 0;return}const{expandUnchanged:r,collapsedContextThreshold:o}=this.getOptionsWithDefaults();let{options:l,forceHighlight:u}=this.getRenderOptions(e);const d=this.getReadyRenderResult(e,l);this.pendingHighlightResult=void 0,d!=null&&(this.renderCache={...d,diff:e,renderRange:void 0},u=!1),this.renderCache??(this.renderCache={diff:e,highlighted:!1,options:l,result:void 0,renderRange:void 0});const h=e.additionLines.length>0||e.deletionLines.length>0,f=!h||Wr(e)||Ur(e,this.getTokenizeMaxLength()),p=this.canRenderDiff(e,l,f),m=!ze(e,this.renderCache.diff),v=!Lp(this.renderCache.renderRange,n),k=this.getHighlightWorkerManager(e);if(k!=null){const x=this.renderCache.result==null&&this.renderCache.highlighted&&!f&&!m&&lu(n);p&&!x&&(f||this.renderCache.result==null||!this.renderCache.highlighted&&(m||v))&&(this.renderCache.diff=e,this.renderCache.options=l,this.renderCache.highlighted=!1,(this.renderCache.result==null||m||v||u)&&(this.renderCache.result=k.getPlainDiffAST(e,n.startingLine,n.totalLines,lu(n)||r?!0:this.expandedHunks,o)),this.renderCache.renderRange=n),!f&&h&&(!this.renderCache.highlighted||u)&&k.highlightDiffAST(this,e)}else{this.computedLangs=Wa(e);const x=Xi(),S=x!=null&&Ya(l.theme,x),C=x!=null&&Pf(this.computedLangs,x),E=!f&&C,A=Number.isFinite(n.totalLines);if(p&&x!=null&&S&&(u||f||!this.renderCache.highlighted&&E||this.renderCache.result==null)){const{result:w,options:L}=this.renderDiffWithHighlighter(e,x,f||!C,A);this.renderCache={diff:e,options:L,highlighted:E,result:w,renderRange:void 0},E&&this.cacheHighlightResult(e,{result:w,options:L})}(!S||!f&&!C)&&this.asyncHighlight(e,A).then(({result:w,options:L})=>{f||this.cacheHighlightResult(e,{result:w,options:L}),this.applyHighlightResult(e,w,L,!f)}).catch(w=>{w instanceof Ns||this.onHighlightError(w)})}return this.renderCache.result!=null?this.processDiffResult(this.renderCache.diff,n,this.renderCache.result):void 0}async asyncRender(e,n=Df){this.diff=e;const{result:r}=await this.asyncHighlight(e,Number.isFinite(n.totalLines));return this.processDiffResult(e,n,r)}createPreElement(e,n,r){const{diffIndicators:o,disableBackground:l,disableLineNumbers:u,overflow:d}=this.getOptionsWithDefaults();return _y({type:"diff",diffIndicators:o,disableBackground:l,disableLineNumbers:u,overflow:d,split:e,totalLines:n,customProperties:r})}async asyncHighlight(e,n=!1){const r=Ur(e,this.getTokenizeMaxLength());this.computedLangs=r?["text"]:Wa(e);let o=Xi();const l=o!=null&&Ya(this.getLocalHighlightTheme(),o),u=r||o!=null&&Pf(this.computedLangs,o);return(o==null||!l||!u)&&(o=await this.initializeHighlighter()),this.renderDiffWithHighlighter(e,o,r,n)}renderDiffWithHighlighter(e,n,r=!1,o=!1){const{options:l}=this.getRenderOptions(e),{collapsedContextThreshold:u}=this.getOptionsWithDefaults(),d=I1(e,n,l,{forcePlainText:r,lazyLineAST:o,expandedHunks:r?!0:void 0,collapsedContextThreshold:u});if(this.editSessionActive&&e.additionLines.length===1&&e.additionLines[0]===""&&d.code.additionLines[0]==null){let h;if(gi({diff:e,diffStyle:"both",expandedHunks:r?!0:void 0,collapsedContextThreshold:u,callback:({additionLine:f})=>{if((f==null?void 0:f.lineIndex)===0)return h=f,!0}}),h==null)throw new Error("DiffHunksRenderer: missing empty addition line");d.code.additionLines[0]=Ds(0,"",h.unifiedLineIndex,h.splitLineIndex)}return{result:d,options:l}}onHighlightSuccess(e,n,r,o=!0){this.editSessionActive||this.applyHighlightResult(e,n,r,o)}applyHighlightResult(e,n,r,o=!0){var d;const{diff:l,renderCache:u}=this;l==null||u==null||!ze(l,e)||!xn(r,this.getRenderOptions(l).options)||(u.result==null||!u.highlighted||!xn(u.options,r)||!ze(u.diff,l))&&(this.pendingHighlightResult={diff:l,options:r,highlighted:o,result:n},(d=this.onRenderUpdate)==null||d.call(this))}getMatchingWorkerResultCache(e,n){var o;if(this.editSessionActive)return;const r=(o=this.workerManager)==null?void 0:o.getDiffResultCache(e);if(!(r==null||!xn(n,r.options)))return r}getReadyRenderResult(e,n){const{pendingHighlightResult:r}=this;if(r!=null&&ze(r.diff,e)&&xn(r.options,n))return r;const o=this.getMatchingWorkerResultCache(e,n);if(!(o==null||this.hasHighlightedRenderCache(e,n)))return{diff:e,highlighted:!0,...o}}hasHighlightedRenderCache(e,n){const{renderCache:r}=this;return(r==null?void 0:r.result)!=null&&r.highlighted&&ze(e,r.diff)&&xn(n,r.options)}onHighlightError(e){console.error(e)}getTokenizeMaxLength(){return this.options.tokenizeMaxLength??1e5}processDiffResult(e,n,{code:r,themeStyles:o,baseThemeType:l}){var ge;const{diffStyle:u,disableFileHeader:d,expandUnchanged:h,expansionLineCount:f,collapsedContextThreshold:p,hunkSeparators:m}=this.getOptionsWithDefaults(),v=((ge=this.renderCache)==null?void 0:ge.isDirty)??!1,k=u==="unified",x=Dk(e,this.options.loadDiffFiles!=null),S=!e.isPartial||x;let C=[],E=[],A=[];const w=[],{additionLines:L,deletionLines:b}=r,D={rowCount:0,hunkSeparators:m,additionsContentAST:C,deletionsContentAST:E,unifiedContentAST:A,unifiedGutterAST:ds(),deletionsGutterAST:ds(),additionsGutterAST:ds(),expansionLineCount:f,hunkData:w,incrementRowCount(ee=1){D.rowCount+=ee},pushToGutter(ee,W){switch(ee){case"unified":D.unifiedGutterAST.children.push(W);break;case"deletions":D.deletionsGutterAST.children.push(W);break;case"additions":D.additionsGutterAST.children.push(W)}}},F=Zh({fileDiff:e,errorPrefix:"DiffHunksRenderer.processDiffResult"}),N={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"?(D.pushToGutter("additions",Zt(void 0,"buffer",this.size)),C==null||C.push(ks(this.size))):(D.pushToGutter("deletions",Zt(void 0,"buffer",this.size)),E==null||E.push(ks(this.size))),this.size=0,this.side=void 0}}},z=(ee,W,re,ne,M)=>{D.pushToGutter(ee,Z0(W,re,ne,M))};function G(ee){N.flush(),u==="unified"?Va("unified",ee,D):(Va("deletions",ee,D),Va("additions",ee,D))}this.pushFileLevelAnnotations(e,u,n,D),gi({diff:e,diffStyle:u,startingLine:n.startingLine,totalLines:n.totalLines,expandedHunks:h?!0:this.expandedHunks,collapsedContextThreshold:p,callback:({hunkIndex:ee,hunk:W,collapsedBefore:re,collapsedAfter:ne,additionLine:M,deletionLine:H,type:se})=>{var Nt,Ht;const fe=H!=null?H.splitLineIndex:M.splitLineIndex,ke=M!=null?M.unifiedLineIndex:H.unifiedLineIndex;u==="split"&&se!=="change"&&N.flush(),re>0&&G({hunkIndex:ee,collapsedLines:re,rangeSize:Math.max((W==null?void 0:W.collapsedBefore)??0,0),hunkSpecs:W==null?void 0:W.hunkSpecs,isFirstHunk:ee===0,isLastHunk:!1,isExpandable:S});const Se=u==="unified"?ke:fe,Ee={type:se,hunkIndex:ee,lineIndex:Se,unifiedLineIndex:ke,splitLineIndex:fe,deletionLine:H,additionLine:M};if(u==="unified"){const De=(Nt=this.getUnifiedInjectedRowsForLine)==null?void 0:Nt.call(this,Ee);(De==null?void 0:De.before)!=null&&Ch(De.before,D);let Ge=H!=null?b[H.lineIndex]:void 0,Pe=M!=null?L[M.lineIndex]:void 0;if(Ge==null&&Pe==null){const Be="DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong";throw console.error(Be,{file:e.name}),new Error(Be)}const at=se==="change"?M!=null?"change-addition":"change-deletion":se,Ue=this.getUnifiedLineDecoration({type:se,lineType:at,additionLineIndex:M==null?void 0:M.lineIndex,deletionLineIndex:H==null?void 0:H.lineIndex});z("unified",Ue.gutterLineType,M!=null?M.lineNumber:H.lineNumber,`${ke},${fe}`,Ue.gutterProperties),Pe!=null?Pe=Cs(Pe,Ue.contentProperties,v&&M!=null?{"data-line":M.lineNumber,"data-line-index":`${ke},${fe}`}:void 0):Ge!=null&&(Ge=Cs(Ge,Ue.contentProperties,v&&H!=null?{"data-line":H.lineNumber,"data-line-index":`${ke},${fe}`}:void 0)),ws({diffStyle:"unified",type:se,deletionLine:Ge,additionLine:Pe,unifiedSpan:this.getAnnotations("unified",H==null?void 0:H.lineNumber,M==null?void 0:M.lineNumber,ee,Se),createAnnotationElement:Be=>this.createAnnotationElement(Be),context:D}),(De==null?void 0:De.after)!=null&&Ch(De.after,D)}else{const De=(Ht=this.getSplitInjectedRowsForLine)==null?void 0:Ht.call(this,Ee);(De==null?void 0:De.before)!=null&&bh(De.before,D,N);let Ge=H!=null?b[H.lineIndex]:void 0,Pe=M!=null?L[M.lineIndex]:void 0;const at=this.getSplitLineDecoration({side:"deletions",type:se,lineIndex:H==null?void 0:H.lineIndex}),Ue=this.getSplitLineDecoration({side:"additions",type:se,lineIndex:M==null?void 0:M.lineIndex});if(Ge==null&&Pe==null){const Qe="DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong";throw console.error(Qe,{file:e.name}),new Error(Qe)}const Be=(()=>{if(se==="change"){if(Pe==null)return"additions";if(Ge==null)return"deletions"}})();Be!=null?(N.side!=null&&N.side!==Be&&N.flush(),N.side=Be,N.increment()):se==="change"&&N.flush();const Wt=this.getAnnotations("split",H==null?void 0:H.lineNumber,M==null?void 0:M.lineNumber,ee,Se);if(Wt!=null&&N.size>0&&N.flush(),H!=null){const Qe=Cs(Ge,at.contentProperties,v?{"data-line":H.lineNumber,"data-line-index":`${H.unifiedLineIndex},${fe}`}:void 0);z("deletions",at.gutterLineType,H.lineNumber,`${H.unifiedLineIndex},${fe}`,at.gutterProperties),Qe!=null&&(Ge=Qe)}if(M!=null){const Qe=Cs(Pe,Ue.contentProperties,v?{"data-line":M.lineNumber,"data-line-index":`${M.unifiedLineIndex},${fe}`}:void 0);z("additions",Ue.gutterLineType,M.lineNumber,`${M.unifiedLineIndex},${fe}`,Ue.gutterProperties),Qe!=null&&(Pe=Qe)}ws({diffStyle:"split",type:se,additionLine:Pe,deletionLine:Ge,...Wt,createAnnotationElement:Qe=>this.createAnnotationElement(Qe),context:D}),(De==null?void 0:De.after)!=null&&bh(De.after,D,N)}const we=u==="split"&&W!=null&&fe===W.splitLineStart+W.splitLineCount-1,Le=ee===e.hunks.length-1&&W!=null&&(u==="split"?fe===W.splitLineStart+W.splitLineCount-1:ke===W.unifiedLineStart+W.unifiedLineCount-1),$e=we?W.noEOFCRDeletions:!1,en=we?W.noEOFCRAdditions:!1,Je=((H==null?void 0:H.noEOFCR)??!1)||$e,et=((M==null?void 0:M.noEOFCR)??!1)||en;if(et||Je){if(u==="split"&&N.flush(),Je){const De=se==="context"||se==="context-expanded"?se:"change-deletion";u==="unified"?(D.unifiedContentAST.push(Ss(De)),D.pushToGutter("unified",Zt(De,"metadata",1))):(D.deletionsContentAST.push(Ss(De)),D.pushToGutter("deletions",Zt(De,"metadata",1)),et||(D.pushToGutter("additions",Zt(void 0,"buffer",1)),D.additionsContentAST.push(ks(1))))}if(et&&!(k&&Je&&se!=="change")){const De=se==="context"||se==="context-expanded"?se:"change-addition";u==="unified"?(D.unifiedContentAST.push(Ss(De)),D.pushToGutter("unified",Zt(De,"metadata",1))):(D.additionsContentAST.push(Ss(De)),D.pushToGutter("additions",Zt(De,"metadata",1)),Je||(D.pushToGutter("deletions",Zt(void 0,"buffer",1)),D.deletionsContentAST.push(ks(1))))}D.incrementRowCount(1)}m!=="simple"&&m!=="metadata"&&(ne>0||Le&&x)&&G({hunkIndex:se==="context-expanded"?ee:ee+1,collapsedLines:Le&&x?"unknown":ne,rangeSize:F,hunkSpecs:void 0,isFirstHunk:!1,isLastHunk:!0,isExpandable:S}),D.incrementRowCount(1)}}),u==="split"&&N.flush();const V=Math.max(Sk(e.hunks),e.additionLines.length??0,e.deletionLines.length??0),ue=n.bufferBefore>0||n.bufferAfter>0,K=!k&&e.type!=="deleted",B=!k&&e.type!=="new",ie=D.rowCount>0||ue;C=K&&ie?C:void 0,E=B&&ie?E:void 0,A=k&&ie?A:void 0;const ye=this.createPreElement(E!=null&&C!=null,V);return{fileDiff:e,unifiedGutterAST:k&&ie?D.unifiedGutterAST.children:void 0,unifiedContentAST:A,deletionsGutterAST:B&&ie?D.deletionsGutterAST.children:void 0,deletionsContentAST:E,additionsGutterAST:K&&ie?D.additionsGutterAST.children:void 0,additionsContentAST:C,hunkData:w,preNode:ye,themeStyles:o,baseThemeType:l,headerElement:d?void 0:this.renderHeader(e),totalLines:V,rowCount:D.rowCount,bufferBefore:n.bufferBefore,bufferAfter:n.bufferAfter,css:""}}renderCodeAST(e,n){const r=e==="unified"?n.unifiedGutterAST:e==="deletions"?n.deletionsGutterAST:n.additionsGutterAST,o=e==="unified"?n.unifiedContentAST:e==="deletions"?n.deletionsContentAST:n.additionsContentAST;if(r==null||o==null)return;const l=ds(r);return l.properties.style=`grid-row: span ${n.rowCount}`,[l,zy(o,n.rowCount)]}renderFullAST(e,n=[]){const r=this.getOptionsWithDefaults().hunkSeparators==="line-info",o=this.renderCodeAST("unified",e);if(o!=null)return n.push(Re({tagName:"code",children:o,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(Re({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(Re({tagName:"code",children:u,properties:{"data-code":"","data-container-size":r?"":void 0,"data-additions":""}})),{...e.preNode,children:n}}renderFullHTML(e,n=[]){return Kn(this.renderFullAST(e,n))}renderPartialHTML(e,n){return n==null?Kn(e):Kn(Re({tagName:"code",children:e,properties:{"data-code":"","data-container-size":this.getOptionsWithDefaults().hunkSeparators==="line-info"?"":void 0,[`data-${n}`]:""}}))}pushFileLevelAnnotations(e,n,r,o){if(!op(r))return;const l=e.type!=="new"?this.getAnnotationNames(Gf(this.deletionAnnotations)):[],u=e.type!=="deleted"?this.getAnnotationNames(Gf(this.additionAnnotations)):[];if(l.length===0&&u.length===0)return;const d=-1,h=-1,{createAnnotationElement:f}=this;if(n==="unified"){ws({diffStyle:n,type:"context",unifiedSpan:{type:"annotation",hunkIndex:d,lineIndex:h,annotations:l.concat(u)},createAnnotationElement:f,context:o});return}ws({diffStyle:n,type:"context",deletionSpan:{type:"annotation",hunkIndex:d,lineIndex:h,annotations:l},additionSpan:{type:"annotation",hunkIndex:d,lineIndex:h,annotations:u},createAnnotationElement:f,context:o})}getAnnotations(e,n,r,o,l){const u={type:"annotation",hunkIndex:o,lineIndex:l,annotations:[]};if(n!=null)for(const h of this.deletionAnnotations[n]??[])u.annotations.push(this.annotationSlotName(h));const d={type:"annotation",hunkIndex:o,lineIndex:l,annotations:[]};if(r!=null)for(const h of this.additionAnnotations[r]??[])(e==="unified"?u:d).annotations.push(this.annotationSlotName(h));if(e==="unified")return u.annotations.length>0?u:void 0;if(!(d.annotations.length===0&&u.annotations.length===0))return{deletionSpan:u,additionSpan:d}}getAnnotationNames(e){return(e==null?void 0:e.map(n=>this.annotationSlotName(n)))??[]}renderHeader(e){const{headerRenderMode:n,stickyHeader:r}=this.getOptionsWithDefaults();return Oy({fileOrDiff:e,mode:n,stickyHeader:r})}};const bk=new Intl.PluralRules("en-US");function Ek(e){return`${e} unmodified line${bk.select(e)==="one"?"":"s"}`}function Ch(e,n){for(const r of e)n.unifiedContentAST.push(r.content),n.pushToGutter("unified",r.gutter),n.incrementRowCount(1)}function bh(e,n,r){for(const{deletion:o,addition:l}of e){if(o==null&&l==null)continue;const u=o!=null&&l!=null?void 0:o==null?"deletions":"additions";(u==null||r.side!==u)&&r.flush(),o!=null&&(n.deletionsContentAST.push(o.content),n.pushToGutter("deletions",o.gutter)),l!=null&&(n.additionsContentAST.push(l.content),n.pushToGutter("additions",l.gutter)),u!=null&&(r.side=u,r.increment()),n.incrementRowCount(1)}}function ws({diffStyle:e,type:n,deletionLine:r,additionLine:o,unifiedSpan:l,deletionSpan:u,additionSpan:d,createAnnotationElement:h,context:f}){let p=!1;if(e==="unified"){if(o!=null?f.unifiedContentAST.push(o):r!=null&&f.unifiedContentAST.push(r),l!=null){const m=n==="change"?r!=null?"change-deletion":"change-addition":n;f.unifiedContentAST.push(h(l)),f.pushToGutter("unified",Zt(m,"annotation",1)),p=!0}}else if(e==="split"){if(r!=null&&f.deletionsContentAST.push(r),o!=null&&f.additionsContentAST.push(o),u!=null){const m=n==="change"?r!=null?"change-deletion":"context":n;f.deletionsContentAST.push(h(u)),f.pushToGutter("deletions",Zt(m,"annotation",1)),p=!0}if(d!=null){const m=n==="change"?o!=null?"change-addition":"context":n;f.additionsContentAST.push(h(d)),f.pushToGutter("additions",Zt(m,"annotation",1)),p=!0}}p&&f.incrementRowCount(1)}function Va(e,{hunkIndex:n,collapsedLines:r,rangeSize:o,hunkSpecs:l,isFirstHunk:u,isLastHunk:d,isExpandable:h},f){if(typeof r=="number"&&r<=0)return;const p=e==="unified"?f.unifiedContentAST:e==="deletions"?f.deletionsContentAST:f.additionsContentAST;if(f.hunkSeparators==="metadata"){l!=null&&(f.pushToGutter(e,Gi({type:"metadata",content:l,isFirstHunk:u,isLastHunk:d})),p.push(Gi({type:"metadata",content:l,isFirstHunk:u,isLastHunk:d})),e!=="additions"&&f.incrementRowCount(1));return}if(f.hunkSeparators==="simple"){n>0&&(f.pushToGutter(e,Gi({type:"simple",isFirstHunk:u,isLastHunk:!1})),p.push(Gi({type:"simple",isFirstHunk:u,isLastHunk:!1})),e!=="additions"&&f.incrementRowCount(1));return}const m=kk(e,n),v=o>f.expansionLineCount,k=h?n:void 0,x=typeof r=="number"?Ek(r):"More unchanged context may be available";f.pushToGutter(e,Gi({type:f.hunkSeparators,content:x,expandIndex:k,chunked:v,slotName:m,isFirstHunk:u,isLastHunk:d})),p.push(Gi({type:f.hunkSeparators,content:x,expandIndex:k,chunked:v,slotName:m,isFirstHunk:u,isLastHunk:d})),e!=="additions"&&f.incrementRowCount(1),f.hunkData.push({slotName:m,hunkIndex:n,lines:typeof r=="number"?r:0,lineCountKnown:typeof r=="number",type:e,expandable:h?{up:!u,down:!d,chunked:v}:void 0})}function Cs(e,n,r){return e==null||e.type!=="element"||n==null&&r==null?e:{...e,properties:{...e.properties,...n,...r}}}function Eh(e){return e.length>0&&e[e.length-1]===""?e.length-1:e.length}function Lk(e,n,r,o){const l=Eh(e),u=Eh(n),d=Math.min(l,u);let h=0;for(;h<d&&e[h]===n[h];)h++;let f=0;for(;f<d-h&&e[l-1-f]===n[u-1-f];)f++;const p=new Array(n.length);for(let m=0;m<h;m++)p[m]=r[m];for(let m=0;m<f;m++)p[u-1-m]=r[l-1-m];l<e.length&&u<n.length&&(p[n.length-1]=r[e.length-1]);for(let m=h;m<n.length;m++)p[m]??(p[m]=Ds(m,o.getLineText(m)));return p}function Rk(e,n){var r;return n===e.length+1&&((r=e.at(-1))==null?void 0:r.endsWith(`
|
|
214
|
+
`))===!0}function Ds(e,n,r=e,o=e){return{type:"element",tagName:"div",properties:{"data-line":e+1,"data-line-index":`${r},${o}`,"data-line-type":"context"},children:[{type:"element",tagName:"span",properties:{"data-char":0},children:[{type:"text",value:n}]}]}}function Tk(e){const n=[];let r=0;for(let o=0;o<e.lineCount;o++){const l=e.getLineText(o,!0);n.push(l),r+=l.length}return{lines:n,characterCount:r}}function Wa(e){if(e.lang!=null)return[e.lang];const n=Qn(e.prevName??e.name),r=Qn(e.name);return n===r?[r]:[n,r]}function Ur(e,n){return Math.max(e.additionLines.length,e.deletionLines.length)>n}function Dk(e,n){return e.isPartial&&n&&(e.type==="change"||e.type==="rename-changed")}function Nk(e,n){return e.lineNumber===n.lineNumber&&e.side===n.side&&e.metadata===n.metadata}function Mk(e,n){var r,o,l,u,d,h;return e.slotName===n.slotName&&e.hunkIndex===n.hunkIndex&&e.lines===n.lines&&e.lineCountKnown===n.lineCountKnown&&e.type===n.type&&((r=e.expandable)==null?void 0:r.chunked)===((o=n.expandable)==null?void 0:o.chunked)&&((l=e.expandable)==null?void 0:l.up)===((u=n.expandable)==null?void 0:u.up)&&((d=e.expandable)==null?void 0:d.down)===((h=n.expandable)==null?void 0:h.down)}function Ak(e){return{theme:e==null?void 0:e.theme,disableLineNumbers:e==null?void 0:e.disableLineNumbers,overflow:e==null?void 0:e.overflow,collapsed:e==null?void 0:e.collapsed,disableFileHeader:e==null?void 0:e.disableFileHeader,disableVirtualizationBuffers:e==null?void 0:e.disableVirtualizationBuffers,stickyHeader:e==null?void 0:e.stickyHeader,preferredHighlighter:e==null?void 0:e.preferredHighlighter,useCSSClasses:e==null?void 0:e.useCSSClasses,useTokenTransformer:rx(e),tokenizeMaxLineLength:e==null?void 0:e.tokenizeMaxLineLength,tokenizeMaxLength:e==null?void 0:e.tokenizeMaxLength,diffStyle:e==null?void 0:e.diffStyle,diffIndicators:e==null?void 0:e.diffIndicators,disableBackground:e==null?void 0:e.disableBackground,hunkSeparators:typeof(e==null?void 0:e.hunkSeparators)=="function"?"custom":e==null?void 0:e.hunkSeparators,expandUnchanged:e==null?void 0:e.expandUnchanged,loadDiffFiles:e==null?void 0:e.loadDiffFiles,parseDiffOptions:e==null?void 0:e.parseDiffOptions,collapsedContextThreshold:e==null?void 0:e.collapsedContextThreshold,lineDiffType:e==null?void 0:e.lineDiffType,maxLineDiffLength:e==null?void 0:e.maxLineDiffLength,expansionLineCount:e==null?void 0:e.expansionLineCount,headerRenderMode:(e==null?void 0:e.renderCustomHeader)!=null?"custom":"default"}}function Ba(e){return e.isPartial&&(e.type==="change"||e.type==="rename-changed"||e.type==="rename-pure")}function Pk(e){const n={...e};return delete n.cacheKey,n}function Lh(e,n){if(e.isPartial||n.isPartial)throw new Error("FileDiff.shouldResetEditorForExternalDiff: diffs must be fully hydrated");const r=e.lang??Qn(e.name),o=n.lang??Qn(n.name),l=e.type!=="new",u=n.type!=="new";return e.name!==n.name||r!==o||l!==u||e.deletionLines.length!==n.deletionLines.length?!0:e.deletionLines.some((d,h)=>d!==n.deletionLines[h])}function Ik(e,n){return e.length===n.length&&e.every((r,o)=>r===n[o])}function zk(e,n){const{oldFile:r}=e;return r==null?n.type==="new":n.type!=="new"&&r.name===(n.prevName??n.name)&&Ik(r.lines,n.deletionLines)}let Hk=-1;var Ka,Vp=(Ka=class{constructor(e={theme:Cn},n,r){O(this,"options");O(this,"workerManager");O(this,"requestOwnerRender");O(this,"__id",`file-diff:${++Hk}`);O(this,"type","file-diff");O(this,"fileContainer");O(this,"spriteSVG");O(this,"pre");O(this,"codeUnified");O(this,"codeDeletions");O(this,"codeAdditions");O(this,"bufferBefore");O(this,"bufferAfter");O(this,"themeCSSStyle");O(this,"appliedThemeCSS");O(this,"hasAdoptedThemeCSS",!1);O(this,"unsafeCSSStyle");O(this,"appliedUnsafeCSS");O(this,"gutterUtilityContent");O(this,"headerElement");O(this,"headerPrefix");O(this,"headerFilenameSuffix");O(this,"headerMetadata");O(this,"headerCustom");O(this,"separatorCache",new Map);O(this,"errorWrapper");O(this,"placeHolder");O(this,"hunksRenderer");O(this,"resizeManager");O(this,"scrollSyncManager");O(this,"interactionManager");O(this,"annotationCache",new Map);O(this,"managersDirty",!1);O(this,"deletionFile");O(this,"additionFile");O(this,"fileDiff");O(this,"editSession");O(this,"renderedData");O(this,"pendingData");O(this,"forceRenderOverride");O(this,"renderRange");O(this,"pendingFiles");O(this,"appliedPreAttributes");O(this,"headerCache",{lastRenderedHTML:void 0,html:void 0,fileDiff:void 0});O(this,"lastRowCount");O(this,"mounted",!1);O(this,"enabled",!0);O(this,"editor");O(this,"refreshViewTimeout");O(this,"lineStateRefreshPending",!1);O(this,"deferredSelectedLines");O(this,"deferredEditorActiveLine");O(this,"handleHighlightRender",()=>{this.rerender()});O(this,"getLineIndex",(e,n="additions")=>this.getLineIndexForDiff(this.getDiffForLineIndex(),e,n));O(this,"getHoveredLine",()=>this.interactionManager.getHoveredLine());O(this,"getAnnotationSlotName",e=>{var n;return ix((n=this.editSession)==null?void 0:n.annotations,e,pi)});O(this,"handleExpandHunk",(e,n,r)=>{this.expandHunk(e,n,r)});O(this,"expandHunk",(e,n,r)=>{this.loadFilesIfNecessary(),this.hunksRenderer.expandHunk(e,n,r),this.rerender()});O(this,"handleEditSessionRender",()=>{this.rerender(),this.flushDeferredLineState()});var o;this.options=e,this.workerManager=n,this.requestOwnerRender=r,this.hunksRenderer=this.createHunksRenderer(e),this.resizeManager=new Ry,this.scrollSyncManager=new qx,this.interactionManager=new vy("diff",nh(e,typeof e.hunkSeparators=="function"||(e.hunkSeparators??"line-info")==="line-info"||e.hunkSeparators==="line-info-basic"?this.handleExpandHunk:void 0,this.getLineIndex)),(o=this.workerManager)==null||o.subscribeToThemeChanges(this),this.enabled=!0}get lineAnnotations(){var e;return((e=this.renderedData)==null?void 0:e.lineAnnotations)??Uh}getTheme(){var e;return((e=this.workerManager)==null?void 0:e.getDiffRenderOptions().theme)??this.options.theme??Cn}getHunksRendererOptions(e){return Ak(e)}createHunksRenderer(e){return new Ck(this.getHunksRendererOptions(e),this.getAnnotationSlotName,this.handleHighlightRender,this.workerManager)}getDiffForLineIndex(){return this.getRenderedDiff()}getLineIndexForDiff(e,n,r){if(e==null)return;const o=e.hunks.at(-1);let l,u;e:for(const d of e.hunks){const h=r==="deletions"?d.deletionStart:d.additionStart,f=r==="deletions"?d.deletionCount:d.additionCount;let p=Vt(h,f)+1,m=d.splitLineStart,v=d.unifiedLineStart;if(n<p){const k=p-n;l=Math.max(v-k,0),u=Math.max(m-k,0);break e}if(n>=p+f){if(d===o){const k=n-(p+f);l=v+d.unifiedLineCount+k,u=m+d.splitLineCount+k;break e}continue}for(const k of d.hunkContent)if(k.type==="context")if(n<p+k.lines){const x=n-p;u=m+x,l=v+x;break e}else p+=k.lines,m+=k.lines,v+=k.lines;else{const x=r==="deletions"?k.deletions:k.additions;if(n<p+x){const S=n-p;l=v+(r==="additions"?k.deletions:0)+S,u=m+S;break e}else p+=x,m+=Math.max(k.deletions,k.additions),v+=k.deletions+k.additions}break e}if(!(l==null||u==null))return[l,u]}setOptions(e){e!=null&&(this.options=e,this.clearReusableHeader(),this.hunksRenderer.setOptions(this.getHunksRendererOptions(e)),this.syncInteractionOptions())}syncInteractionOptions(){this.interactionManager.setOptions(nh(this.options,typeof this.options.hunkSeparators=="function"||(this.options.hunkSeparators??"line-info")==="line-info"||this.options.hunkSeparators==="line-info-basic"?this.handleExpandHunk:void 0,this.getLineIndex))}mergeOptions(e){this.options={...this.options,...e}}setThemeType(e){(this.options.themeType??"system")!==e&&(this.mergeOptions({themeType:e}),this.applyCachedThemeState(e))}applyCachedThemeState(e){if(typeof this.options.theme=="string"||this.fileContainer==null||this.appliedThemeCSS==null)return!1;const n=this.appliedThemeCSS.baseThemeType??e;return this.appliedThemeCSS.themeType===n?!1:(this.applyThemeState(this.fileContainer,this.appliedThemeCSS.themeStyles,e,this.appliedThemeCSS.baseThemeType),!0)}hasThemeChanged(){return this.appliedThemeCSS!=null&&!bu(this.appliedThemeCSS.theme,this.getTheme())}getLatestAnnotations(){var e,n,r;return((e=this.pendingData)==null?void 0:e.lineAnnotations)??((r=(n=this.editSession)==null?void 0:n.annotations)==null?void 0:r.current)??this.lineAnnotations}getAnnotationsForDiff(e){const{pendingData:n}=this;return n!=null&&ze(e,n.fileDiff)?n.lineAnnotations:this.lineAnnotations}isNewAnnotations(e){var r;const n=(r=this.editSession)==null?void 0:r.annotations;return e===this.getLatestAnnotations()?!1:n==null||e!==n.provided&&e!==n.current}setLineAnnotations(e){var o;const n=(o=this.editSession)==null?void 0:o.annotations;if(n!=null){if(!this.isNewAnnotations(e))return;nx(n,e,pi)}const r=this.getWorkingDiff();r!=null&&(this.pendingData={fileDiff:r,lineAnnotations:e})}syncEditSessionAnnotationsFromEditor(e){var r;const n=(r=this.editSession)==null?void 0:r.annotations;return n==null||e===n.current?!1:(n.current=e,this.renderedData!=null&&(this.renderedData.lineAnnotations=e),this.pendingData=void 0,this.hunksRenderer.setLineAnnotations(e),this.renderAnnotations(),!0)}canPartiallyRender(e,n,r){return!(e||n||r||typeof this.options.hunkSeparators=="function")}setSelectedLines(e,n){this.lineStateRefreshPending?this.deferredSelectedLines=[e,n]:this.interactionManager.setSelection(e,n)}setEditorActiveLine(e,n){this.lineStateRefreshPending?this.deferredEditorActiveLine=[e,n]:this.interactionManager.setEditorActiveLine(e,{lineNumberOnly:n==null?void 0:n.lineNumberOnly,side:(n==null?void 0:n.side)??"additions"})}flushDeferredLineState(){const{deferredEditorActiveLine:e,deferredSelectedLines:n}=this;this.lineStateRefreshPending=!1,this.deferredEditorActiveLine=void 0,this.deferredSelectedLines=void 0,e!=null&&this.setEditorActiveLine(...e),n!=null&&this.interactionManager.setSelection(...n)}flushManagers(){if(!this.managersDirty||this.pre==null){this.managersDirty=!1;return}const{diffStyle:e="split",overflow:n="scroll"}=this.options;this.interactionManager.setup(this.pre),this.resizeManager.setup(this.pre,{disableAnnotations:n==="wrap",columnVariables:this.shouldApplyColumnVariables(n)?"apply":"measure"}),n==="scroll"&&e==="split"?this.scrollSyncManager.setup(this.pre,this.codeDeletions,this.codeAdditions):this.scrollSyncManager.cleanUp(),this.managersDirty=!1}shouldApplyColumnVariables(e){var n;return typeof this.options.hunkSeparators=="function"?!0:e==="scroll"&&(this.lineAnnotations.length>0||((n=this.pre)==null?void 0:n.hasAttribute("data-has-merge-conflict"))===!0)}getCodeScrollLeft(){var e,n,r;return Math.max(((e=this.codeUnified)==null?void 0:e.scrollLeft)??0,((n=this.codeDeletions)==null?void 0:n.scrollLeft)??0,((r=this.codeAdditions)==null?void 0:r.scrollLeft)??0)}setCodeScrollLeft(e){this.codeUnified!=null&&(this.codeUnified.scrollLeft=e),this.codeAdditions!=null&&(this.codeAdditions.scrollLeft=e),this.codeDeletions!=null&&(this.codeDeletions.scrollLeft=e)}__getEffectiveCodeOptions(){return{...this.options,...this.hunksRenderer.getEffectiveCodeOptions()}}cleanUp(e=!1){var r,o,l,u,d,h,f,p;const{editor:n}=this;Ps(this.handleEditSessionRender),this.emitPostRender(!0),n==null||n.cleanUp(e?"recycle":"discard"),e||(this.editor=void 0),this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.managersDirty=!1,(r=this.workerManager)==null||r.unsubscribeToThemeChanges(this),this.renderRange=void 0,e||(this.pendingFiles=void 0),this.isComponentManaged||(o=this.fileContainer)==null||o.remove(),this.fileContainer=void 0,this.mounted=!1,e||(this.renderedData=void 0,this.pendingData=void 0),this.clearAuxiliaryNodes(),this.annotationCache.clear(),(l=this.pre)==null||l.remove(),this.pre=void 0,this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,(u=this.bufferBefore)==null||u.remove(),this.bufferBefore=void 0,(d=this.bufferAfter)==null||d.remove(),this.bufferAfter=void 0,this.appliedPreAttributes=void 0,(h=this.headerElement)==null||h.remove(),this.headerElement=void 0,this.clearHeaderSlots(),(f=this.placeHolder)==null||f.remove(),this.placeHolder=void 0,this.headerCache.lastRenderedHTML=void 0,e||this.clearReusableHeader(),(p=this.errorWrapper)==null||p.remove(),this.errorWrapper=void 0,this.spriteSVG=void 0,this.lastRowCount=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,e?this.hunksRenderer.recycle():(this.hunksRenderer.cleanUp(),this.workerManager=void 0,this.fileDiff=void 0,this.editSession=void 0,this.deletionFile=void 0,this.additionFile=void 0),this.refreshViewTimeout!=null&&(clearTimeout(this.refreshViewTimeout),this.refreshViewTimeout=void 0),this.lineStateRefreshPending=!1,this.deferredEditorActiveLine=void 0,this.deferredSelectedLines=void 0,this.enabled=!1}virtualizedSetup(){var e;this.enabled=!0,(e=this.workerManager)==null||e.subscribeToThemeChanges(this)}hydrate({fileContainer:e,prerenderedHTML:n,preventEmit:r=!1,lineAnnotations:o,fileDiff:l,...u}){if(!this.enabled)throw new Error("FileDiff.hydrate: attempting to call hydrate after cleaned up");if(this.fileContainer!=null)throw new Error("FileDiff.hydrate: hydrate can only be called before the instance has rendered or hydrated");const d=du(u,"FileDiff.hydrate"),h=d==null?void 0:d.oldFile,f=d==null?void 0:d.newFile;this.hydrateElements(e,n);const p=this.editor!=null;p||_k(this.pre,jk({fileDiff:l,oldFile:h,newFile:f}),this.options.collapsed)||$k(this.headerElement,Fk({fileDiff:l,oldFile:h,newFile:f}),this.options.disableFileHeader)?this.render({...u,fileContainer:e,lineAnnotations:o,fileDiff:l,forceRender:p||u.forceRender,preventEmit:!0}):this.hydrationSetup({fileDiff:l,lineAnnotations:o,...d}),r||this.emitPostRender()}hydrateElements(e,n){var r;this.fileContainer!==e&&this.emitPostRender(!0),lx(e,n);for(const o of((r=e.shadowRoot)==null?void 0:r.children)??[]){if(o instanceof SVGElement){this.spriteSVG=o;continue}if(o instanceof HTMLElement){if(o instanceof HTMLPreElement){this.pre=o;for(const l of o.children)!(l instanceof HTMLElement)||l.tagName.toLowerCase()!=="code"||("deletions"in l.dataset&&(this.codeDeletions=l),"additions"in l.dataset&&(this.codeAdditions=l),"unified"in l.dataset&&(this.codeUnified=l));continue}if("diffsHeader"in o.dataset){this.headerElement=o;continue}if(o instanceof HTMLStyleElement&&o.hasAttribute("data-theme-css")){this.themeCSSStyle=o;continue}if(o instanceof HTMLStyleElement&&o.hasAttribute("data-unsafe-css")){this.unsafeCSSStyle=o,this.appliedUnsafeCSS=o.textContent;continue}}}this.pre!=null&&(this.syncCodeNodesFromPre(this.pre),this.pre.removeAttribute("data-dehydrated")),this.fileContainer=e,this.hydrateMeasuredScrollbar()}hydrationSetup({fileDiff:e,oldFile:n,newFile:r,lineAnnotations:o}){const l=o??this.getLatestAnnotations();this.pendingData=void 0,this.additionFile=r,this.deletionFile=n,this.fileDiff=e??(n!==void 0&&r!==void 0?Yn(n,r,this.options.parseDiffOptions):void 0),this.renderedData=this.fileDiff!=null?{fileDiff:this.fileDiff,lineAnnotations:l}:void 0,this.fileDiff!=null&&this.adoptRenderData(this.fileDiff),this.pre!=null&&(this.syncInteractionOptions(),this.hunksRenderer.hydrate(this.fileDiff),this.renderAnnotations(),this.renderGutterUtility(),this.injectUnsafeCSS(),this.managersDirty=!0,this.flushManagers())}rerender(){!this.enabled||this.getInputDiff()==null&&this.additionFile==null&&this.deletionFile==null||this.requestRender()||this.render({forceRender:!0,renderRange:this.renderRange})}requestRender(){const{requestOwnerRender:e}=this;return this.editSession!=null||e==null?!1:(this.forceRenderOverride=!0,e(),!0)}get isComponentManaged(){return this.requestOwnerRender!=null}onThemeChange(){this.hunksRenderer.clearRenderCache(),this.rerender()}loadFilesIfNecessary(){var u;const e=this.getInputDiff(),{loadDiffFiles:n}=this.options;if(e==null||!Ba(e)||((u=this.pendingFiles)==null?void 0:u.fileDiff)===e)return;if(n==null)throw new Error("FileDiff: loadDiffFiles is required to load full files for a partial diff");const r=this.loadFilesForDiff(e,n),o=this.pendingFiles={fileDiff:e,promise:r},l=()=>{this.pendingFiles===o&&(this.pendingFiles=void 0)};o.promise=r.finally(l)}__canAttachEditor(){const e=this.getInputDiff();return e!=null&&!e.isPartial}async prepareForEditing(){if(this.__canAttachEditor())return;const e=this.__prepareForEditing();if(e==null){const n=this.getInputDiff();throw(n==null?void 0:n.isPartial)===!0&&!Ba(n)?new Error("FileDiff.prepareForEditing: this partial diff cannot be hydrated; provide a complete diff"):new Error("FileDiff.prepareForEditing: a partial diff requires loadDiffFiles")}if(await e,!this.__canAttachEditor())throw new Error("FileDiff.prepareForEditing: the diff did not finish loading")}__prepareForEditing(){var n;if(this.__canAttachEditor())return;const e=this.getInputDiff();if((e==null?void 0:e.isPartial)===!0&&!Ba(e))throw new Error("FileDiff: this partial diff cannot be hydrated; provide a complete diff to edit");return this.loadFilesIfNecessary(),(n=this.pendingFiles)==null?void 0:n.promise}async loadFilesForDiff(e,n){try{const r=await n(e);if(this.getInputDiff()!==e)return;await this.handleFilesLoaded(e,r)}catch(r){if(this.options.disableErrorHandling===!0)throw r;console.error(r)}}async handleFilesLoaded(e,n){if(!(this.getInputDiff()!==e||!e.isPartial)){if(cu("merge",e,n,this.options.parseDiffOptions),this.setHydratedState(n),this.installHydratedSessionDiff(e)){this.rerender();return}await uu(()=>this.primeHighlightCache(e)),!(!this.enabled||this.getInputDiff()!==e)&&this.rerender()}}installHydratedSessionDiff(e){var n;if(e.isPartial)throw new Error("FileDiff.installHydratedSessionDiff: diffs cannot be partial for editing");return this.getInputDiff()!==e?!1:((n=this.editSession)==null?void 0:n.outgoingDiff)!=null?(this.installEditSession(e),!0):!1}updateInputDiff(e,n){var u,d,h,f;if(ze(this.getInputDiff(),e))return!1;const r=this.getLatestAnnotations();this.fileDiff=e;const{editSession:o}=this,l=(o==null?void 0:o.outgoingDiff)??(o==null?void 0:o.diff);return o!=null&&(e.isPartial?o.inputDiff=e:this.installEditSession(e),this.editSession!=null&&(this.editSession.outgoingDiff=l)),((u=this.editSession)==null?void 0:u.annotations)!=null&&n!=null&&(this.editSession.annotations=uh(n,pi,this.editSession.annotations)),this.pendingData={fileDiff:((d=this.editSession)==null?void 0:d.diff)??e,lineAnnotations:((f=(h=this.editSession)==null?void 0:h.annotations)==null?void 0:f.current)??n??r},l!=null&&e.isPartial&&this.loadFilesIfNecessary(),!0}installEditSession(e,n,r){var p,m;const o=e.additionLines.join(""),l=n!=null?zs(n.contents):void 0,u=r!=null&&zk(r,e);if(r!=null&&!u)throw new Error("FileDiff: retained session cannot resume against a different old file");if(n!=null&&n.contents!==o&&!u)throw new Error("FileDiff: retained edits are missing their diff session state");const d=n==null||n.name===e.name&&n.lang===e.lang&&n.contents===o,h=Pk(e);n!=null&&l!=null&&!d&&(h.name=n.name,h.lang=n.lang),u&&r!=null&&n!=null&&l!=null&&(h.additionLines=l,h.additionCharacterCount=n.contents.length,h.type=r.type,h.hunks=r.hunks,h.editSessionDirty=!0,js(h));const f=((p=this.editSession)==null?void 0:p.annotations)??uh(this.getLatestAnnotations(),pi);this.editSession={diff:h,inputDiff:e,annotations:f,outgoingDiff:(m=this.editSession)==null?void 0:m.outgoingDiff},this.pendingData={fileDiff:h,lineAnnotations:f.current},this.hunksRenderer.beginEditSession(h,d&&!u?e:void 0)}setHydratedState(e){var n;this.deletionFile=e.oldFile,this.additionFile=e.newFile,(n=this.workerManager)==null||n.cleanUpTasks(this.hunksRenderer),this.hunksRenderer.clearRenderCache()}render({fileDiff:e,deferManagers:n=!1,forceRender:r=!1,preventEmit:o=!1,lineAnnotations:l,fileContainer:u,containerWrapper:d,renderRange:h,...f}){var V,ue;if(!this.enabled)throw new Error("FileDiff.render: attempting to call render after cleaned up");r=this.forceRenderOverride??r,this.forceRenderOverride=void 0;const p=du(f,"FileDiff.render"),m=p==null?void 0:p.oldFile,v=p==null?void 0:p.newFile;(V=this.editor)==null||V.__postponeBgTokenizeToNextFrame();const{collapsed:k=!1,themeType:x="system",expandUnchanged:S=!1}=this.options,C=k?void 0:h,E=this.hasThemeChanged(),A=p!=null,w=A&&(!Rh(m,this.deletionFile)||!Rh(v,this.additionFile));let L=e!=null&&!ze(e,this.getInputDiff());const b=l!=null&&(l.length>0||this.getLatestAnnotations().length>0)?this.isNewAnnotations(l):!1;if(!k&&Lp(C,this.renderRange)&&!r&&!b&&!E&&(e!=null&&!L||e==null&&!w)){const K=this.applyCachedThemeState(x);return K&&this.finalizeRender(),K}let D;e==null&&A&&(w||this.getInputDiff()==null)&&(D=Yn(p.oldFile,p.newFile,this.options.parseDiffOptions));const{renderRange:F}=this;this.renderRange=C,A?(this.deletionFile=m,this.additionFile=v):e!=null&&(this.deletionFile=void 0,this.additionFile=void 0),e!=null&&L?this.updateInputDiff(e,l):D!=null&&(L=!0,this.updateInputDiff(D,l)),L&&this.clearReusableHeader(),l!=null&&this.setLineAnnotations(l);const N=this.getWorkingDiff();if(N==null)return!1;N.editSessionDirty===!0&&this.shouldSelfHealEditSession()&&(xh(N,this.options.parseDiffOptions),this.hunksRenderer.refreshHighlightedResult()),S&&this.loadFilesIfNecessary(),this.hunksRenderer.setOptions(this.getHunksRendererOptions(this.options)),this.syncInteractionOptions(),this.prepareRenderData(this.hunksRenderer.getDiffForNextRender(N));const{disableErrorHandling:z=!1,disableFileHeader:G=!1}=this.options;if(G&&(this.headerElement!=null&&(this.headerElement.remove(),this.headerElement=void 0,this.headerCache.lastRenderedHTML=void 0),this.clearHeaderSlots()),u=this.getOrCreateFileContainer(u,d),this.applyCachedThemeState(x),k){this.removeRenderedCode(),this.clearAuxiliaryNodes();try{const K=this.hunksRenderer.renderDiff(N,x0);K!=null&&this.applyThemeState(u,K.themeStyles,x,K.baseThemeType),(K==null?void 0:K.headerElement)!=null&&this.applyHeaderToDOM(K.headerElement,u,K.fileDiff),this.renderSeparators([]),this.adoptRenderData((K==null?void 0:K.fileDiff)??N),this.injectUnsafeCSS()}catch(K){if(z)throw K;console.error(K),K instanceof Error&&this.applyErrorToDOM(K,u)}return this.finalizeRender(),o||this.emitPostRender(),!0}try{const K=this.getOrCreatePreNode(u);if(this.canPartiallyRender(r,b,w||L||E||!ze(this.getRenderedDiff(),N))&&this.applyPartialRender({fileDiff:N,previousRenderRange:F,renderRange:C})){const B=this.getRenderedDiff();B!=null&&this.adoptRenderData(B)}else{const B=this.hunksRenderer.renderDiff(N,C);if(B==null)return((ue=this.workerManager)==null?void 0:ue.isInitialized())===!1&&this.workerManager.isWorkingPool()&&this.workerManager.initialize().catch(()=>{}).then(()=>this.rerender()),!1;this.applyThemeState(u,B.themeStyles,x,B.baseThemeType),B.headerElement!=null&&this.applyHeaderToDOM(B.headerElement,u,B.fileDiff),B.additionsContentAST!=null||B.deletionsContentAST!=null||B.unifiedContentAST!=null?this.applyHunksToDOM(K,B):this.pre!=null&&(this.pre.remove(),this.pre=void 0),this.renderSeparators(B.hunkData),this.adoptRenderData(B.fileDiff)}this.applyBuffers(K,C),this.injectUnsafeCSS(),this.renderAnnotations(),this.renderGutterUtility(),this.managersDirty=!0,n||this.flushManagers(),this.finalizeRender(),this.editor!=null&&this.syncRenderViewToEditor()}catch(K){if(z)throw K;console.error(K),K instanceof Error&&this.applyErrorToDOM(K,u)}return o||this.emitPostRender(),!0}finalizeRender(){}emitPostRender(e=!1){var l,u;const{fileContainer:n,options:{onPostRender:r}}=this;if(e){if(!this.mounted||(this.mounted=!1,n==null))return;(u=(l=this.options).onPostRender)==null||u.call(l,n,this,"unmount");return}if(n==null)return;const o=this.mounted?"update":"mount";this.mounted=!0,r==null||r(n,this,o)}getInputDiff(){return this.fileDiff}getWorkingDiff(e=this.fileDiff){var n;return((n=this.editSession)==null?void 0:n.diff)??e}getRenderedDiff(){var e;return(e=this.renderedData)==null?void 0:e.fileDiff}__getNextRenderData({fileDiff:e,lineAnnotations:n}){var u;const r=(u=this.editSession)==null?void 0:u.annotations;if(r!=null)return{fileDiff:e,lineAnnotations:n!=null&&this.isNewAnnotations(n)?n:r.provided};const o=this.getWorkingDiff(e)??e,l=this.hunksRenderer.getDiffForNextRender(o);return{fileDiff:l,lineAnnotations:n!=null&&ze(l,o)?n:this.getAnnotationsForDiff(l)}}prepareRenderData(e){this.hunksRenderer.setLineAnnotations(this.getAnnotationsForDiff(e))}adoptRenderData(e){const{pendingData:n}=this,r=n!=null&&ze(e,n.fileDiff);this.renderedData={fileDiff:e,lineAnnotations:r?n.lineAnnotations:this.lineAnnotations},r&&(this.pendingData=void 0)}syncRenderViewToEditor(){const{editor:e,fileContainer:n}=this,r=this.getLatestAnnotations(),o=this.computeEditorRenderRange(this.renderRange),l=this.getWorkingDiff();if(e==null||n==null||l==null||l.isPartial)return;const u=p=>{var S;if(!this.enabled||this.editor!==e||this.fileContainer!==n||this.getWorkingDiff()!==l)return;const m=(S=this.editSession)==null?void 0:S.outgoingDiff,v=this.getInputDiff(),k=m!=null&&v!=null&&m!==l,x=k&&m!=null&&v!=null?Lh(m,v):!1;e.__syncRenderView({highlighter:p,fileContainer:n,fileDiff:l,lineAnnotations:r,renderRange:o,externalDocument:k,resetHistory:x})},d=this.getTheme(),h=l.lang??Qn(l.name),f=Xi({theme:d,lang:h});f!=null?u(f):Vh({themes:wu(d),langs:["text",h],preferredHighlighter:rp(this.workerManager,this.options)}).then(u).catch(p=>{p instanceof Ns||console.error(p)})}computeEditorRenderRange(e){const n=this.getWorkingDiff();if(e==null||n==null||lu(e))return e;const{diffStyle:r="split",expandUnchanged:o=!1,collapsedContextThreshold:l=1}=this.options;let u,d;return gi({diff:n,diffStyle:r,startingLine:e.startingLine,totalLines:e.totalLines,expandedHunks:o?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:l,callback:({additionLine:h})=>{h!=null&&(u??(u=h.lineNumber),d=h.lineNumber)}}),u==null||d==null?{...e,startingLine:0,totalLines:0}:{...e,startingLine:u-1,totalLines:d-u+1}}__acknowledgeDocumentUpdate(){this.editSession!=null&&(this.editSession.outgoingDiff=void 0)}__acceptEditorChange(e){const{lineAnnotations:n}=e;n!=null&&this.syncEditSessionAnnotationsFromEditor(n)}emitEditChange(e){const{onEditChange:n}=this.options;n==null||n(e)}__captureDocumentSessionState(e=!0){const n=this.getInputDiff();let{diff:r,outgoingDiff:o}=this.editSession??{};if(o!=null&&n!=null){if(!n.isPartial&&Lh(o,n))return;r=o}if(!(r==null||r.isPartial))return{diffSession:{oldFile:r.type!=="new"?{name:r.prevName??r.name,lines:e?[...r.deletionLines]:r.deletionLines}:null,type:r.type,hunks:e?Dp(r.hunks):r.hunks},hasChanges:r.editSessionDirty===!0}}__attachEditor(e){if(this.type!=="file-diff")throw new Error(`FileDiff.__attachEditor: cannot attach an editor to a "${this.type}" diff`);if(this.editor!=null)throw new Error("FileDiff.__attachEditor: an editor is already attached");if(!this.__canAttachEditor())throw new Error("FileDiff.__attachEditor: a complete diff is required before editing");const n=()=>{this.editor=void 0,this.finishEditSession()};try{return this.resumeEditorRendering(e),n}catch(r){throw n(),r}}__resumeEditor(e){if(this.editor!==e)throw new Error("FileDiff.__resumeEditor: editor association changed");this.resumeEditorRendering(e)}resumeEditorRendering(e){var u,d,h,f;const n=this.getInputDiff(),r=(u=this.editSession)==null?void 0:u.outgoingDiff;r!=null&&n!=null&&!n.isPartial&&((d=this.editSession)==null?void 0:d.diff)===r&&this.installEditSession(n);const o=this.editSession==null&&n!=null&&!n.isPartial?n:void 0;o!=null?this.installEditSession(o,e.__getDocumentContents(Ok(o)),e.__getDocumentSessionState()):this.editSession!=null&&this.hunksRenderer.beginEditSession(this.editSession.diff),this.editor=e,((h=this.getInputDiff())==null?void 0:h.isPartial)===!0&&this.loadFilesIfNecessary();const l=(f=this.editSession)==null?void 0:f.diff;this.hunksRenderer.editorRenderReady()?(l!=null&&this.hunksRenderer.diffCache===l&&this.adoptRenderData(l),this.syncRenderViewToEditor()):this.rerender()}finishEditSession(){this.hunksRenderer.endEditSession(),this.finalizeEditSessionHunks()}__completeEditSession(e,n){this.settleEditSession(n==="install",e)}settleEditSession(e,n){var E,A;const{editSession:r}=this;if(r==null)return;const{diff:o,inputDiff:l,annotations:u}=r,d=(u==null?void 0:u.provided)??this.lineAnnotations;if(this.editor!=null)throw new Error("FileDiff.__completeEditSession: detach the editor before completing the session");this.hunksRenderer.endEditSession(),this.finalizeEditSessionHunks();const h=u==null?void 0:u.current;let f,p=null,m=null,v=!1,k;if(n==null)throw new Error("FileDiff.__completeEditSession: editor is required for completion");const x=Np(o),S={name:x.name,contents:x.additionLines.join("")};x.lang!=null&&(S.lang=x.lang);const C={fileDiff:x,editor:n,originalFileDiff:l,oldFile:x.type==="new"?null:{name:x.prevName??x.name,contents:x.deletionLines.join("")},newFile:S,lineAnnotations:h,originalLineAnnotations:d};Object.freeze(C);try{if(n.__emitEditComplete(C),((A=(E=this.options).onEditComplete)==null?void 0:A.call(E,C))==="accept"){if(x.cacheKey!=null&&x.cacheKey===l.cacheKey)throw new Error("FileDiff.__completeEditSession: an accepted diff must not reuse the replaced diff cacheKey");f=x,p=C.oldFile,m=C.newFile}}catch(w){v=!0,k=w}if(e&&f!=null&&this.additionFile!=null&&(this.deletionFile=p,this.additionFile=m),this.editSession=void 0,this.fileDiff=e&&f!=null?f:l,this.pendingData={fileDiff:this.fileDiff,lineAnnotations:e&&f!=null?h??d:d},e&&this.fileContainer!=null&&this.rerender(),v)throw k}finalizeEditSessionHunks(){const e=this.getWorkingDiff();if(e==null||e.editSessionDirty!==!0)return!1;const{collapsedContextThreshold:n=1}=this.options,r=ak(e,this.hunksRenderer.getExpandedHunksMap(),n);return xh(e,this.options.parseDiffOptions),this.hunksRenderer.setExpandedHunksMap(uk(e,r)),this.hunksRenderer.refreshHighlightedResult(),this.escalateEditSessionRender(),!0}applyDocumentChange(e,n){var o;const r=(o=this.editSession)==null?void 0:o.diff;if(r==null)throw new Error("FileDiff.applyDocumentChange: requires an active edit session");this.detachAdditionLines(),this.hunksRenderer.beginEditSession(r),this.hunksRenderer.applyDocumentChange(e),n!=null&&this.syncEditSessionAnnotationsFromEditor(n),this.rerender(),this.interactionManager.setSelectionDirty()}applySuspendedDocumentChange(e,n){this.applyDocumentChange(e,n),this.hunksRenderer.clearRenderCache()}updateRenderCache(e,n,r={}){var d;const o=(d=this.editSession)==null?void 0:d.diff;if(o==null)throw new Error("FileDiff.updateRenderCache: requires an active edit session");this.detachAdditionLines(),this.hunksRenderer.beginEditSession(o);const{shouldRefreshDiffsView:l,lineCountChangeInFlight:u}=r;if(this.hunksRenderer.updateRenderCache(e,n,u,r.changedDocumentLines,r.documentLineCount)){this.refreshViewTimeout!=null&&(clearTimeout(this.refreshViewTimeout),this.refreshViewTimeout=void 0),this.lineStateRefreshPending=!0,this.escalateEditSessionRender();return}l===!0&&(this.refreshViewTimeout!=null&&clearTimeout(this.refreshViewTimeout),this.lineStateRefreshPending=!0,this.refreshViewTimeout=setTimeout(()=>{this.refreshViewTimeout=void 0,this.options.diffStyle==="split"?this.refreshSplitDiffView():this.refreshUnifiedDiffView(),this.flushDeferredLineState()},150))}detachAdditionLines(){const{diff:e,inputDiff:n}=this.editSession??{};e!=null&&(e.additionLines===(n==null?void 0:n.additionLines)||e.additionLines===e.deletionLines)&&(e.additionLines=[...e.additionLines])}isLineRenderable(e){const n=this.getRenderedDiff();if(n==null)return!0;const{expandUnchanged:r=!1,collapsedContextThreshold:o=1}=this.options;return Jh({fileDiff:n,lineNumber:e,expandedHunks:r?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:o})}getNearestRenderableLine(e,n){const r=this.getRenderedDiff();if(r==null)return e;const{expandUnchanged:o=!1,collapsedContextThreshold:l=1}=this.options;return h1({fileDiff:r,lineNumber:e,direction:n,expandedHunks:o?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:l})}revealLine(e){const n=this.getRenderedDiff(),{expandUnchanged:r=!1,collapsedContextThreshold:o=1,expansionLineCount:l=100}=this.options;if(n==null||n.isPartial||r)return!1;const u=this.hunksRenderer.getExpandedHunksMap();for(const[p,m]of n.hunks.entries()){const[v,k]=Kr(m);if(e<v){const x=bn({isPartial:n.isPartial,rangeSize:m.collapsedBefore,expandedHunks:u,hunkIndex:p,collapsedContextThreshold:o}),S=v-x.rangeSize;if(x.renderAll||e<S+x.fromStart||e>=v-x.fromEnd)return!1;const C=e-(S+x.fromStart)+1,E=v-x.fromEnd-e;return C<=E?this.expandHunk(p,"up",C+l):this.expandHunk(p,"down",E+l),!0}if(e<k)return!1}const d=En({fileDiff:n,hunkIndex:n.hunks.length-1,expandedHunks:u,collapsedContextThreshold:o,errorPrefix:"FileDiff.revealLine"});if(d==null||d.renderAll)return!1;const h=n.hunks[n.hunks.length-1],[,f]=Kr(h);return e<f+d.fromStart||e>=f+d.rangeSize?!1:(this.expandHunk(n.hunks.length,"up",e-(f+d.fromStart)+1+l),!0)}shouldSelfHealEditSession(){return this.editor==null}escalateEditSessionRender(){xt(this.handleEditSessionRender)}removeRenderedCode(){var e,n,r,o,l,u;this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),(e=this.bufferBefore)==null||e.remove(),this.bufferBefore=void 0,(n=this.bufferAfter)==null||n.remove(),this.bufferAfter=void 0,(r=this.codeUnified)==null||r.remove(),this.codeUnified=void 0,(o=this.codeDeletions)==null||o.remove(),this.codeDeletions=void 0,(l=this.codeAdditions)==null||l.remove(),this.codeAdditions=void 0,(u=this.pre)==null||u.remove(),this.pre=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0}clearAuxiliaryNodes(){var e;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(),(e=this.gutterUtilityContent)==null||e.remove(),this.gutterUtilityContent=void 0}renderPlaceholder(e){if(this.fileContainer==null)return!1;if(this.emitPostRender(!0),this.cleanChildNodes(),this.placeHolder==null){const n=this.fileContainer.shadowRoot??this.fileContainer.attachShadow({mode:"open"});this.placeHolder=document.createElement("div"),this.placeHolder.dataset.placeholder="",n.appendChild(this.placeHolder)}return this.setPlaceholderHeight(e)}setPlaceholderHeight(e){return this.placeHolder==null?!1:(this.placeHolder.style.setProperty("height",`${e}px`),!0)}async primeHighlightCache(e=this.getInputDiff()){const{workerManager:n}=this;if(e==null||n==null||!n.isWorkingPool()||e.cacheKey==null||Wr(e))return;const r=this.options.tokenizeMaxLength??1e5;Math.max(e.additionLines.length,e.deletionLines.length)>r||await n.primeDiffHighlightCache(e).catch(o=>{Kh(o)||console.error(o)})}cleanChildNodes(){var e,n,r,o,l,u,d,h,f,p,m,v,k,x,S;this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),this.clearAuxiliaryNodes(),(e=this.bufferAfter)==null||e.remove(),(n=this.bufferBefore)==null||n.remove(),(r=this.codeAdditions)==null||r.remove(),(o=this.codeDeletions)==null||o.remove(),(l=this.codeUnified)==null||l.remove(),(u=this.errorWrapper)==null||u.remove(),(d=this.headerElement)==null||d.remove(),(h=this.headerPrefix)==null||h.remove(),(f=this.headerFilenameSuffix)==null||f.remove(),(p=this.headerMetadata)==null||p.remove(),(m=this.headerCustom)==null||m.remove(),(v=this.pre)==null||v.remove(),(k=this.spriteSVG)==null||k.remove(),(x=this.themeCSSStyle)==null||x.remove(),(S=this.unsafeCSSStyle)==null||S.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.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.pre=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.headerCache.lastRenderedHTML=void 0,this.lastRowCount=void 0,this.mounted=!1}renderSeparators(e){const{hunkSeparators:n}=this.options;if(this.isComponentManaged||this.fileContainer==null||typeof n!="function"){for(const{element:o}of this.separatorCache.values())o.remove();this.separatorCache.clear();return}const r=new Map(this.separatorCache);for(const o of e){const l=o.slotName;let u=this.separatorCache.get(l);if(u==null||!Mk(o,u.hunkData)){u==null||u.element.remove();const d=document.createElement("div");d.style.display="contents",d.slot=o.slotName;const h=n(o,this);h!=null&&d.appendChild(h),this.fileContainer.appendChild(d),u={element:d,hunkData:o},this.separatorCache.set(l,u)}r.delete(l)}for(const[o,{element:l}]of r.entries())this.separatorCache.delete(o),l.remove()}renderAnnotations(){if(this.isComponentManaged||this.fileContainer==null){for(const{element:o}of this.annotationCache.values())o.remove();this.annotationCache.clear();return}const e=new Map(this.annotationCache),{renderedData:n,options:{renderAnnotation:r}}=this;if(r!=null&&n!=null){const{fileDiff:o,lineAnnotations:l}=n;for(const[u,d]of l.entries()){const h=this.getAnnotationSlotName(d),f=`${u}-${h}`;let p=this.annotationCache.get(f);if(p==null||p.fileDiff!==o||!Nk(d,p.annotation)){p==null||p.element.remove();const m=r(d,o);if(m==null)continue;p={element:qy(h),annotation:d,fileDiff:o},p.element.appendChild(m),this.fileContainer.appendChild(p.element),this.annotationCache.set(f,p)}e.delete(f)}}for(const[o,{element:l}]of e.entries())this.annotationCache.delete(o),l.remove()}renderGutterUtility(){var o,l;const{renderGutterUtility:e}=this.options;if(this.fileContainer==null||e==null){(o=this.gutterUtilityContent)==null||o.remove(),this.gutterUtilityContent=void 0;return}const n=e(this.interactionManager.getHoveredLine);if(n!=null&&this.gutterUtilityContent!=null)return;if(n==null){(l=this.gutterUtilityContent)==null||l.remove(),this.gutterUtilityContent=void 0;return}const r=Gy();r.appendChild(n),this.fileContainer.appendChild(r),this.gutterUtilityContent=r}getOrCreateFileContainer(e,n){var u;const{fileContainer:r}=this,o=e??r??document.createElement("diffs-container"),l=r!==o;return r!=null&&l&&((u=this.editor)==null||u.__captureFocusForDOMReplacement()),l&&this.emitPostRender(!0),this.fileContainer=o,r!=null&&l&&(this.headerCache.lastRenderedHTML=void 0,this.headerElement=void 0),n!=null&&this.fileContainer.parentNode!==n&&n.appendChild(this.fileContainer),l&&this.adoptReusableShellElements(this.fileContainer),this.ensureSpriteSVG(this.fileContainer),this.fileContainer}adoptReusableShellElements(e){const{shadowRoot:n}=e;if(n!=null)for(const r of n.children)r instanceof SVGElement?this.spriteSVG??(this.spriteSVG=r):Bf(r)&&r.hasAttribute("data-theme-css")?(this.themeCSSStyle??(this.themeCSSStyle=r),this.hasAdoptedThemeCSS=!0):Bf(r)&&r.hasAttribute("data-unsafe-css")&&(this.unsafeCSSStyle??(this.unsafeCSSStyle=r),this.appliedUnsafeCSS??(this.appliedUnsafeCSS=this.options.unsafeCSS??void 0))}ensureSpriteSVG(e){const n=e.shadowRoot??e.attachShadow({mode:"open"});if(this.spriteSVG==null){const r=document.createElement("div");r.innerHTML=Vy;const o=r.firstChild;o instanceof SVGElement&&(this.spriteSVG=o)}this.spriteSVG!=null&&this.spriteSVG.parentNode!==n&&n.appendChild(this.spriteSVG)}getOrCreatePreNode(e){var r,o;const n=e.shadowRoot??e.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,n.appendChild(this.pre)):this.pre.parentNode!==n&&((r=this.editor)==null||r.__captureFocusForDOMReplacement(),n.appendChild(this.pre),this.appliedPreAttributes=void 0),(o=this.placeHolder)==null||o.remove(),this.placeHolder=void 0,this.pre}syncCodeNodesFromPre(e){this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0;for(const n of Array.from(e.children))n instanceof HTMLElement&&(n.hasAttribute("data-unified")?this.codeUnified=n:n.hasAttribute("data-deletions")?this.codeDeletions=n:n.hasAttribute("data-additions")&&(this.codeAdditions=n))}applyHeaderToDOM(e,n,r){var S,C,E,A,w,L,b,D;this.cleanupErrorWrapper(),(S=this.placeHolder)==null||S.remove(),this.placeHolder=void 0;const{headerCache:{fileDiff:o,html:l,lastRenderedHTML:u}}=this,d=(r!==((C=this.editSession)==null?void 0:C.diff)&&ze(o,r)?l:void 0)??Kn(e);if(this.headerCache.html=d,this.headerCache.fileDiff=r,d!==u){const F=document.createElement("div");F.innerHTML=d;const N=F.firstElementChild;if(!(N instanceof HTMLElement))return;this.headerElement!=null?(E=n.shadowRoot)==null||E.replaceChild(N,this.headerElement):(A=n.shadowRoot)==null||A.prepend(N),this.headerElement=N,this.headerCache.lastRenderedHTML=d}if(this.isComponentManaged)return;const{renderCustomHeader:h,renderHeaderPrefix:f,renderHeaderFilenameSuffix:p,renderHeaderMetadata:m}=this.options;if(h!=null){const F=h(r)??void 0;this.headerCustom=this.upsertHeaderSlotElement(n,this.headerCustom,xu,F),(w=this.headerPrefix)==null||w.remove(),(L=this.headerFilenameSuffix)==null||L.remove(),(b=this.headerMetadata)==null||b.remove(),this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0;return}const v=(f==null?void 0:f(r))??void 0,k=(p==null?void 0:p(r))??void 0,x=(m==null?void 0:m(r))??void 0;this.headerPrefix=this.upsertHeaderSlotElement(n,this.headerPrefix,jh,v),this.headerFilenameSuffix=this.upsertHeaderSlotElement(n,this.headerFilenameSuffix,Fh,k),this.headerMetadata=this.upsertHeaderSlotElement(n,this.headerMetadata,_h,x),(D=this.headerCustom)==null||D.remove(),this.headerCustom=void 0}clearReusableHeader(){this.headerCache.html=void 0,this.headerCache.fileDiff=void 0}clearHeaderSlots(){var e,n,r,o;(e=this.headerPrefix)==null||e.remove(),(n=this.headerFilenameSuffix)==null||n.remove(),(r=this.headerMetadata)==null||r.remove(),(o=this.headerCustom)==null||o.remove(),this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0}upsertHeaderSlotElement(e,n,r,o){if(o==null){n==null||n.remove();return}const l=n??this.createHeaderSlotElement(r);return n==null&&e.appendChild(l),this.replaceHeaderSlotContent(l,o),l}replaceHeaderSlotContent(e,n){e.replaceChildren(),n instanceof Element?e.appendChild(n):e.innerText=`${n}`}createHeaderSlotElement(e){const n=document.createElement("div");return n.slot=e,n}injectUnsafeCSS(){var r,o,l;const{unsafeCSS:e}=this.options;(r=this.pre)==null||r.toggleAttribute("data-custom-styles",!!e);const n=(o=this.fileContainer)==null?void 0:o.shadowRoot;if(n!=null){if(e==null||e===""){this.unsafeCSSStyle!=null&&(this.unsafeCSSStyle.remove(),this.unsafeCSSStyle=void 0),this.appliedUnsafeCSS=void 0;return}((l=this.unsafeCSSStyle)==null?void 0:l.parentNode)===n&&this.appliedUnsafeCSS===e||(this.unsafeCSSStyle??(this.unsafeCSSStyle=Xy()),this.unsafeCSSStyle.parentNode!==n&&n.appendChild(this.unsafeCSSStyle),this.unsafeCSSStyle.textContent=Yy(e),this.appliedUnsafeCSS=e)}}applyThemeState(e,n,r,o){var p,m,v;const l=e.shadowRoot??e.attachShadow({mode:"open"}),u=o??r,d=this.getTheme(),h=typeof d=="string"?d:{...d},f=au(l);if(((p=this.themeCSSStyle)==null?void 0:p.parentNode)===l&&((m=this.appliedThemeCSS)==null?void 0:m.themeStyles)===n&&this.appliedThemeCSS.themeType===u&&this.appliedThemeCSS.scrollbarGutter===f){this.appliedThemeCSS.theme=h;return}if(this.hasAdoptedThemeCSS&&((v=this.themeCSSStyle)==null?void 0:v.parentNode)===l){this.hasAdoptedThemeCSS=!1,this.appliedThemeCSS={theme:h,themeStyles:n,themeType:u,baseThemeType:o,scrollbarGutter:f};return}this.themeCSSStyle=ox({shadowRoot:l,currentNode:this.themeCSSStyle,themeCSS:Zy(n,u,f)}),this.appliedThemeCSS=this.themeCSSStyle!=null?{theme:h,themeStyles:n,themeType:u,baseThemeType:o,scrollbarGutter:f}:void 0}hydrateMeasuredScrollbar(){var n;const e=(n=this.fileContainer)==null?void 0:n.shadowRoot;e==null||this.themeCSSStyle==null||(this.themeCSSStyle.textContent=Jy(this.themeCSSStyle.textContent??"",au(e)))}shouldGuardRebuildScroll(){return this.editor!=null&&$1()}applyHunksToDOM(e,n){this.shouldGuardRebuildScroll()?dh(e,()=>this.replaceCodeColumns(e,n)):this.replaceCodeColumns(e,n)}applyCodeColumnsInPlace(e,n,r){const o=this.getColumnPair(e);if(o==null)return!1;const l=Gn(n[0]),u=Gn(n[1]);return l==null||u==null?!1:(o.gutter.innerHTML=Kn(l),o.content.innerHTML=Kn(u),r!==this.lastRowCount&&(o.gutter.style.setProperty("grid-row",`span ${r}`),o.content.style.setProperty("grid-row",`span ${r}`)),!0)}replaceCodeColumns(e,n){var m,v,k,x,S,C,E,A,w,L;const{overflow:r="scroll"}=this.options,o=(this.options.hunkSeparators??"line-info")==="line-info",l=r==="wrap"?n.rowCount:void 0;this.cleanupErrorWrapper(),this.applyPreNodeAttributes(e,n);let u=!1;const d=[],h=this.hunksRenderer.renderCodeAST("unified",n),f=this.hunksRenderer.renderCodeAST("deletions",n),p=this.hunksRenderer.renderCodeAST("additions",n);(m=this.editor)==null||m.__captureFocusForDOMReplacement(),h!=null?(u=this.codeUnified==null||this.codeAdditions!=null||this.codeDeletions!=null,(v=this.codeDeletions)==null||v.remove(),this.codeDeletions=void 0,(k=this.codeAdditions)==null||k.remove(),this.codeAdditions=void 0,this.codeUnified=Fa({code:this.codeUnified,columnType:"unified",rowSpan:l,containerSize:o}),this.applyCodeColumnsInPlace(this.codeUnified,h,n.rowCount)||(this.codeUnified.innerHTML=this.hunksRenderer.renderPartialHTML(h)),d.push(this.codeUnified)):f!=null||p!=null?(f!=null?(u=this.codeDeletions==null||this.codeUnified!=null,(x=this.codeUnified)==null||x.remove(),this.codeUnified=void 0,this.codeDeletions=Fa({code:this.codeDeletions,columnType:"deletions",rowSpan:l,containerSize:o}),this.applyCodeColumnsInPlace(this.codeDeletions,f,n.rowCount)||(this.codeDeletions.innerHTML=this.hunksRenderer.renderPartialHTML(f)),d.push(this.codeDeletions)):((S=this.codeDeletions)==null||S.remove(),this.codeDeletions=void 0),p!=null?(u=u||this.codeAdditions==null||this.codeUnified!=null,(C=this.codeUnified)==null||C.remove(),this.codeUnified=void 0,this.codeAdditions=Fa({code:this.codeAdditions,columnType:"additions",rowSpan:l,containerSize:o}),this.applyCodeColumnsInPlace(this.codeAdditions,p,n.rowCount)||(this.codeAdditions.innerHTML=this.hunksRenderer.renderPartialHTML(p)),d.push(this.codeAdditions)):((E=this.codeAdditions)==null||E.remove(),this.codeAdditions=void 0)):((A=this.codeUnified)==null||A.remove(),this.codeUnified=void 0,(w=this.codeDeletions)==null||w.remove(),this.codeDeletions=void 0,(L=this.codeAdditions)==null||L.remove(),this.codeAdditions=void 0),d.length===0?e.textContent="":u&&e.replaceChildren(...d),this.lastRowCount=n.rowCount}applyPartialRender({fileDiff:e,previousRenderRange:n,renderRange:r}){const{pre:o,codeUnified:l,codeAdditions:u,codeDeletions:d,options:{diffStyle:h="split"}}=this;if(o==null||n==null||r==null||!Number.isFinite(n.totalLines)||!Number.isFinite(r.totalLines)||this.lastRowCount==null)return!1;const f=this.getCodeColumns(h,l,d,u);if(f==null)return!1;const p=n.startingLine,m=r.startingLine,v=p+n.totalLines,k=m+r.totalLines,x=Math.max(p,m),S=Math.min(v,k);if(S<=x)return!1;const C=Math.max(0,x-p),E=Math.max(0,v-S),A=this.trimColumns({columns:f,trimStart:C,trimEnd:E,previousStart:p,overlapStart:x,overlapEnd:S,diffStyle:h});if(A<0)throw new Error("FileDiff.applyPartialRender: failed to trim to overlap");if(this.lastRowCount<A)throw new Error("FileDiff.applyPartialRender: trimmed beyond DOM row count");let w=this.lastRowCount-A;const L=(N,z)=>{if(!(z<=0))return this.hunksRenderer.renderDiff(e,{startingLine:N,totalLines:z,bufferBefore:0,bufferAfter:0})},b=L(m,Math.max(x-m,0));if(b==null&&m<x)return!1;const D=L(S,Math.max(k-S,0));if(D==null&&k>S)return!1;const F=(N,z)=>{if(N!=null){if(h==="unified"&&!Array.isArray(f))this.insertPartialHTML(h,f,N,z);else if(h==="split"&&Array.isArray(f))this.insertPartialHTML(h,f,N,z);else throw new Error("FileDiff.applyPartialRender.applyChunk: invalid chunk application");w+=N.rowCount,this.adoptRenderData(N.fileDiff)}};return this.cleanupErrorWrapper(),F(b,"afterbegin"),F(D,"beforeend"),this.lastRowCount!==w&&(this.applyRowSpan(h,f,w),this.lastRowCount=w),!0}insertPartialHTML(e,n,r,o){if(e==="unified"&&!Array.isArray(n)){const l=this.hunksRenderer.renderCodeAST("unified",r);this.renderPartialColumn(n,l,o)}else if(e==="split"&&Array.isArray(n)){const l=this.hunksRenderer.renderCodeAST("deletions",r),u=this.hunksRenderer.renderCodeAST("additions",r);this.renderPartialColumn(n[0],l,o),this.renderPartialColumn(n[1],u,o)}else throw new Error("FileDiff.insertPartialHTML: Invalid argument composition")}refreshSplitDiffView(){const e=this.getWorkingDiff();if(this.options.diffStyle!=="split"||e==null)return;const n=this.hunksRenderer.renderDiff(e,this.renderRange);if(n==null)return;const r=this.getCodeColumns("split",this.codeUnified,this.codeDeletions,this.codeAdditions);if(!Array.isArray(r))return;const o=(l,u)=>{if(u==null)return;const d=this.hunksRenderer.renderCodeAST(l,n),h=Gn(d==null?void 0:d[0]),f=Gn(d==null?void 0:d[1]);for(const[p,m]of[[u.gutter,h],[u.content,f]])if(m!=null&&p.childElementCount===m.length)for(let v=0;v<m.length;v++){const k=p.children[v],x=m[v].properties["data-line-type"];x!=null&&k.dataset.lineType!==x&&(k.dataset.lineType=x)}};o("deletions",r[0]),o("additions",r[1]),this.adoptRenderData(n.fileDiff)}refreshUnifiedDiffView(){const e=this.getWorkingDiff();if(this.options.diffStyle!=="unified"||e==null)return;const n=this.hunksRenderer.renderDiff(e,this.renderRange);if(n==null)return;const r=this.getCodeColumns("unified",this.codeUnified,this.codeDeletions,this.codeAdditions);if(r==null||Array.isArray(r))return;const o=this.hunksRenderer.renderCodeAST("unified",n),l=Gn(o==null?void 0:o[0]),u=Gn(o==null?void 0:o[1]),d=()=>{for(const[h,f]of[[r.gutter,l],[r.content,u]])f!=null&&(h.innerHTML=Kn(f));n.rowCount!==this.lastRowCount&&(this.applyRowSpan("unified",r,n.rowCount),this.lastRowCount=n.rowCount),this.adoptRenderData(n.fileDiff)};this.shouldGuardRebuildScroll()?dh(this.pre,d):d(),this.renderSeparators(n.hunkData),this.managersDirty=!0,this.flushManagers(),this.syncRenderViewToEditor()}renderPartialColumn(e,n,r){if(e==null||n==null)return;const o=Gn(n[0]),l=Gn(n[1]);if(o==null||l==null)throw new Error("FileDiff.insertPartialHTML: Unexpected AST structure");const u=l.at(0);r==="beforeend"&&(u==null?void 0:u.type)==="element"&&typeof u.properties["data-buffer-size"]=="number"&&this.mergeBuffersIfNecessary(u.properties["data-buffer-size"],e.content.children[e.content.children.length-1],e.gutter.children[e.gutter.children.length-1],o,l,!0);const d=l.at(-1);r==="afterbegin"&&(d==null?void 0:d.type)==="element"&&typeof d.properties["data-buffer-size"]=="number"&&this.mergeBuffersIfNecessary(d.properties["data-buffer-size"],e.content.children[0],e.gutter.children[0],o,l,!1),e.gutter.insertAdjacentHTML(r,this.hunksRenderer.renderPartialHTML(o)),e.content.insertAdjacentHTML(r,this.hunksRenderer.renderPartialHTML(l))}mergeBuffersIfNecessary(e,n,r,o,l,u){if(!(n instanceof HTMLElement)||!(r instanceof HTMLElement))return;const d=this.getBufferSize(n.dataset);d!=null&&(u?(o.shift(),l.shift()):(o.pop(),l.pop()),this.updateBufferSize(n,d+e),this.updateBufferSize(r,d+e))}applyRowSpan(e,n,r){const o=l=>{l!=null&&(l.gutter.style.setProperty("grid-row",`span ${r}`),l.content.style.setProperty("grid-row",`span ${r}`))};if(e==="unified"&&!Array.isArray(n))o(n);else if(e==="split"&&Array.isArray(n))o(n[0]),o(n[1]);else throw new Error("dun fuuuuked up")}trimColumnRows(e,n,r){let o=0,l=0,u=0,d=!1;const h=r>=0;if(e==null)return 0;const f=Array.from(e.content.children),p=Array.from(e.gutter.children);if(f.length!==p.length)throw new Error("FileDiff.trimColumnRows: columns do not match");for(;u<f.length&&!(n<=0&&!h&&!d);){const m=p[u],v=f[u];if(u++,!(m instanceof HTMLElement)||!(v instanceof HTMLElement))throw console.error({gutterElement:m,contentElement:v}),new Error("FileDiff.trimColumnRows: invalid row elements");if(d&&(d=!1,m.dataset.gutterBuffer==="annotation"&&"lineAnnotation"in v.dataset||m.dataset.gutterBuffer==="metadata"&&"noNewline"in v.dataset)){m.remove(),v.remove(),l++;continue}if("lineIndex"in m.dataset&&"lineIndex"in v.dataset){(n>0||h&&o>=r)&&(m.remove(),v.remove(),n>0&&(n--,n===0&&(d=!0)),l++),o++;continue}if("separator"in m.dataset&&"separator"in v.dataset){(n>0||h&&o>=r)&&(m.remove(),v.remove(),l++);continue}if(m.dataset.gutterBuffer==="annotation"&&"lineAnnotation"in v.dataset){(n>0||h&&o>=r)&&(m.remove(),v.remove(),l++);continue}if(m.dataset.gutterBuffer==="metadata"&&"noNewline"in v.dataset){(n>0||h&&o>=r)&&(m.remove(),v.remove(),l++);continue}if(m.dataset.gutterBuffer==="buffer"&&"contentBuffer"in v.dataset){const k=this.getBufferSize(v.dataset);if(k==null)throw new Error("FileDiff.trimColumnRows: invalid element");if(n>0){const x=Math.min(n,k),S=k-x;S>0?(this.updateBufferSize(m,S),this.updateBufferSize(v,S),l+=x):(m.remove(),v.remove(),l+=k),n-=x,n===0&&S===0&&(d=!0)}else if(h){const x=o,S=o+k-1;if(r<=x)m.remove(),v.remove(),l+=k;else if(r<=S){const C=S-r+1,E=k-C;this.updateBufferSize(m,E),this.updateBufferSize(v,E),l+=C}}o+=k;continue}throw console.error({gutterElement:m,contentElement:v}),new Error("FileDiff.trimColumnRows: unknown row elements")}return l}trimColumns({columns:e,diffStyle:n,overlapEnd:r,overlapStart:o,previousStart:l,trimEnd:u,trimStart:d}){const h=Math.max(0,o-l),f=r-l;if(f<0)throw new Error("FileDiff.trimColumns: overlap ends before previous");const p=d>0,m=u>0;if(!p&&!m)return 0;const v=p?h:0,k=m?f:-1;if(n==="unified"&&!Array.isArray(e))return this.trimColumnRows(e,v,k);if(n==="split"&&Array.isArray(e)){const x=this.trimColumnRows(e[0],v,k),S=this.trimColumnRows(e[1],v,k);if(e[0]!=null&&e[1]!=null&&x!==S)throw new Error("FileDiff.trimColumns: split columns out of sync");return e[0]!=null?x:S}else throw console.error({diffStyle:n,columns:e}),new Error("FileDiff.trimColumns: Invalid columns for diffType")}getBufferSize(e){const n=Number.parseInt((e==null?void 0:e.bufferSize)??"",10);return Number.isNaN(n)?void 0:n}updateBufferSize(e,n){e.dataset.bufferSize=`${n}`,e.style.setProperty("grid-row",`span ${n}`),e.style.setProperty("min-height",`calc(${n} * 1lh)`)}getColumnPair(e){if(e==null)return;const n=e.children[0],r=e.children[1];if(!(!(n instanceof HTMLElement)||!(r instanceof HTMLElement)||n.dataset.gutter==null||r.dataset.content==null))return{gutter:n,content:r}}getCodeColumns(e,n,r,o){if(e==="unified")return this.getColumnPair(n);{const l=this.getColumnPair(r),u=this.getColumnPair(o);return l!=null||u!=null?[l,u]:void 0}}updateBuffers(e){this.pre!=null&&this.applyBuffers(this.pre,e)}applyBuffers(e,n){if(n==null||this.shouldDisableVirtualizationBuffers()){this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0);return}n.bufferBefore>0?(this.bufferBefore==null&&(this.bufferBefore=document.createElement("div"),this.bufferBefore.dataset.virtualizerBuffer="before",e.before(this.bufferBefore)),this.bufferBefore.style.setProperty("height",`${n.bufferBefore}px`),this.bufferBefore.style.setProperty("contain","strict")):this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),n.bufferAfter>0?(this.bufferAfter==null&&(this.bufferAfter=document.createElement("div"),this.bufferAfter.dataset.virtualizerBuffer="after",e.after(this.bufferAfter)),this.bufferAfter.style.setProperty("height",`${n.bufferAfter}px`),this.bufferAfter.style.setProperty("contain","strict")):this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0)}shouldDisableVirtualizationBuffers(){return this.options.disableVirtualizationBuffers??!1}applyPreNodeAttributes(e,{additionsContentAST:n,deletionsContentAST:r,totalLines:o},l){const{diffIndicators:u="bars",disableBackground:d=!1,disableLineNumbers:h=!1,overflow:f="scroll",diffStyle:p="split"}=this.options,m={type:"diff",diffIndicators:u,disableBackground:d,disableLineNumbers:h,overflow:f,split:p==="unified"?!1:n!=null&&r!=null,totalLines:o,customProperties:l};Wy(m,this.appliedPreAttributes)||(ax(e,m),this.appliedPreAttributes=m)}applyErrorToDOM(e,n){var u;this.cleanupErrorWrapper(),(u=this.pre)==null||u.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;const r=n.shadowRoot??n.attachShadow({mode:"open"});this.errorWrapper??(this.errorWrapper=document.createElement("div")),this.errorWrapper.dataset.errorWrapper="",this.errorWrapper.textContent="",r.appendChild(this.errorWrapper);const o=document.createElement("div");o.dataset.errorMessage="",o.innerText=e.message,this.errorWrapper.appendChild(o);const l=document.createElement("pre");l.dataset.errorStack="",l.innerText=e.stack??"No Error Stack",this.errorWrapper.appendChild(l)}cleanupErrorWrapper(){var e;(e=this.errorWrapper)==null||e.remove(),this.errorWrapper=void 0}},O(Ka,"LoadedCustomComponent",!0),Ka);function Ok(e){return{name:e.name,lang:e.lang,contents:e.additionLines.join("")}}function Rh(e,n){return e==null||n==null?e==null&&n==null:Qh(e,n)}function jk({fileDiff:e,oldFile:n,newFile:r}){return e!=null&&e.hunks.length>0||n!=null||r!=null}function Fk({fileDiff:e,oldFile:n,newFile:r}){return e!=null||n!=null||r!=null}function _k(e,n,r=!1){return!r&&e==null&&n}function $k(e,n,r=!1){return e==null&&n&&!r}function Gn(e){if(!(e==null||e.type!=="element"))return e.children??[]}const mu=3e3,bs=new Map;let Uk=-1;var Vk=class extends Vp{constructor(n,r,o,l,u){super(n,l,u);O(this,"__id",`little-virtualized-file-diff:${++Uk}`);O(this,"renderType","virtualized");O(this,"top");O(this,"height",0);O(this,"metrics");O(this,"cache",{heightDeltas:new Map,measuredHeightDeltaTotal:0,estimatedSplitHeight:void 0,estimatedUnifiedHeight:void 0,checkpoints:[],totalLines:0,fileAnnotationHeight:0,ghostTextRows:bs,ghostTextRowsByIndex:new Map});O(this,"isVisible",!1);O(this,"isSetup",!1);O(this,"virtualizer");O(this,"layoutDirty",!0);O(this,"currentCollapsed");O(this,"pendingHydratedDiff");O(this,"pendingExpansions");O(this,"pendingRender");O(this,"onRender",n=>this.fileContainer==null?!1:(n&&(this.top=this.getVirtualizedTop()),this.render()));O(this,"expandHunk",(n,r,o)=>{this.getInputDiff()!=null&&(this.loadFilesIfNecessary(),this.isAdvancedMode()?(this.pendingExpansions??(this.pendingExpansions=[]),this.pendingExpansions.push({hunkIndex:n,direction:r,expansionLineCountOverride:o})):(this.hunksRenderer.expandHunk(n,r,o),this.resetLayoutCache({includeEstimatedHeights:!0}),this.computeApproximateSize()),this.forceRenderOverride=!0,this.virtualizer.instanceChanged(this,!0))});this.virtualizer=r,this.metrics=Ia(o)}setMetrics(n,r=!1){const o=Ia(n);!r&&eu(this.metrics,o)||(this.metrics=o,this.resetLayoutCache({includeEstimatedHeights:!0}))}setLineAnnotations(n){this.syncLineAnnotations(n)&&(this.forceRenderOverride=!0)}syncLineAnnotations(n){return n==null||!this.isNewAnnotations(n)||n.length===0&&this.getLatestAnnotations().length===0?!1:(super.setLineAnnotations(n),!0)}syncEditSessionAnnotationsFromEditor(n){return super.syncEditSessionAnnotationsFromEditor(n)?(this.forceRenderOverride=!0,!0):!1}setFileAnnotationHeight(n){const r=this.cache.fileAnnotationHeight;return n===r?!1:(this.cache.fileAnnotationHeight=n,this.cache.measuredHeightDeltaTotal+=n-r,!0)}hasFileAnnotations(n){const r=this.getLayoutAnnotations();return V1(r)?r.some(o=>o.lineNumber!==0?!1:n.type==="new"?o.side==="additions":n.type==="deleted"?o.side==="deletions":!0):!1}getLineHeight(n,r=!1){return this.getEstimatedLineHeight(r)+(this.cache.heightDeltas.get(n)??0)}getEstimatedLineHeight(n=!1){const r=n?2:1;return this.metrics.lineHeight*r}setOptions(n){if(this.isAdvancedMode())throw new Error("VirtualizedFileDiff.setOptions cannot be used inside CodeView. Update CodeView options instead.");if(n==null)return;const{options:r}=this,o=!np(r,n),l=o&&Kk(r,n);super.setOptions(n),l&&this.resetLayoutCache({forceSimpleRecompute:!0,includeEstimatedHeights:Qk(r,n)}),o&&(this.forceRenderOverride=!0),o&&this.isSimpleMode()&&this.virtualizer.instanceChanged(this,l)}setThemeType(n){if(this.isAdvancedMode())throw new Error("VirtualizedFileDiff.setThemeType cannot be used inside CodeView. Update CodeView options instead.");super.setThemeType(n)}resetLayoutCache({forceSimpleRecompute:n=!1,includeEstimatedHeights:r=!1,resetRenderRange:o=!0}={}){this.layoutDirty=!0,this.cache.fileAnnotationHeight=0,this.cache.heightDeltas.clear(),this.cache.measuredHeightDeltaTotal=0,this.cache.ghostTextRows=bs,this.cache.ghostTextRowsByIndex.size>0&&this.cache.ghostTextRowsByIndex.clear(),this.invalidateDerivedLayoutCache(r,o),n&&this.isSimpleMode()&&this.computeApproximateSize()}invalidateDerivedLayoutCache(n,r=!0){this.layoutDirty=!0,this.cache.checkpoints.length>0&&(this.cache.checkpoints.length=0),this.cache.totalLines!==0&&(this.cache.totalLines=0),n&&(this.cache.estimatedSplitHeight=void 0,this.cache.estimatedUnifiedHeight=void 0),this.renderRange!=null&&r&&(this.renderRange=void 0)}applyGhostTextRows(n,r){const{cache:{heightDeltas:o,ghostTextRows:l,ghostTextRowsByIndex:u},metrics:{lineHeight:d}}=this;if(l===r)return!1;const h=this.getDiffStyle(),f=new Map;for(const[m,v]of r){const k=this.getLineIndexForDiff(n,m+1,"additions");k!=null&&f.set(h==="split"?k[1]:k[0],v)}let p=!1;for(const m of new Set([...u.keys(),...f.keys()])){const v=((f.get(m)??0)-(u.get(m)??0))*d;if(v===0)continue;const k=(o.get(m)??0)+v;k===0?o.delete(m):o.set(m,k),this.cache.measuredHeightDeltaTotal+=v,p=!0}return this.cache.ghostTextRows=r,this.cache.ghostTextRowsByIndex=f,p}reconcileHeights(){var p;let n=!1;const{options:{overflow:r="scroll"},metrics:{lineHeight:o}}=this,l=this.placeHolder!=null?this.getLayoutDiff():this.getRenderedDiff();if(this.fileContainer==null||l==null)return this.height!==0&&(n=!0),this.height=0,n;this.top=this.getVirtualizedTop(),n=this.applyGhostTextRows(l,((p=this.editor)==null?void 0:p.__getGhostTextRows())??bs);const{ghostTextRowsByIndex:u}=this.cache,d=r!=="scroll"||this.lineAnnotations.length>0||this.isResizeDebuggingEnabled();if(this.placeHolder!=null||!d&&this.cache.heightDeltas.size===0&&this.cache.fileAnnotationHeight===0)return n&&(this.computeApproximateSize(!0),this.setPlaceholderHeight(this.height)),n;const h=this.getDiffStyle(),f=h==="split"?[this.codeDeletions,this.codeAdditions]:[this.codeUnified];if(this.renderRange!=null&&op(this.renderRange)){const m=Wk(f)??0;this.setFileAnnotationHeight(m)&&(n=!0)}for(const m of f){if(m==null)continue;const v=m.children[1];if(!(v instanceof HTMLElement))continue;const k=h==="split"&&m===this.codeDeletions;for(const x of v.children){if(!(x instanceof HTMLElement))continue;const S=x.dataset.lineIndex;if(S==null)continue;const C=Zk(S,h),E=u.get(C)??0;if(k&&E>0)continue;const A=this.cache.heightDeltas.get(C)??0;if(!d&&A===E*o)continue;let w=x.getBoundingClientRect().height+E*o,L=!1;x.nextElementSibling instanceof HTMLElement&&("lineAnnotation"in x.nextElementSibling.dataset||"noNewline"in x.nextElementSibling.dataset)&&("noNewline"in x.nextElementSibling.dataset&&(L=!0),w+=x.nextElementSibling.getBoundingClientRect().height);const b=this.getEstimatedLineHeight(L),D=w-b;D!==A&&(n=!0,this.cache.measuredHeightDeltaTotal+=D-A,D===0?this.cache.heightDeltas.delete(C):this.cache.heightDeltas.set(C,D))}}return(n||this.isResizeDebuggingEnabled())&&this.computeApproximateSize(!0),n}flushManagers(){super.flushManagers(),this.lineStateRefreshPending&&this.flushDeferredLineState()}updateCodeViewLayout(n,r,o,l){let u=!1,d=!1;const{pendingExpansions:h,pendingHydratedDiff:f,options:{collapsed:p=!1}}=this;if(f!=null&&(this.pendingHydratedDiff=void 0,f.expectedDiff===n&&(Object.assign(n,f.nextDiff),this.setHydratedState(f.files),this.installHydratedSessionDiff(n),this.forceRenderOverride=!0,u=!0,d=!0)),h!=null){this.pendingExpansions=void 0;for(const{hunkIndex:C,direction:E,expansionLineCountOverride:A}of h)this.hunksRenderer.expandHunk(C,E,A),this.forceRenderOverride=!0,d=!0}const m=this.updateInputDiff(n,l),{pendingRenderDiff:v,layoutDiffChanged:k,renderedDiffChanged:x,annotationsChanged:S}=this.updatePendingRender(n,l);return!this.forceRenderOverride&&(m||x||S)&&(this.forceRenderOverride=!0),((o==null?void 0:o.resetDiffLayoutCache)===!0||k)&&(u=!0),(k||(o==null?void 0:o.resetDiffLayoutCache)===!0&&o.includeEstimatedDiffHeights)&&(d=!0),(o==null?void 0:o.metrics)!=null&&(this.metrics=Ia(o.metrics),u=!0,d=!0),this.currentCollapsed!==p&&(this.currentCollapsed=p,u=!0),u?this.resetLayoutCache({includeEstimatedHeights:d}):d&&this.invalidateDerivedLayoutCache(!0),this.top=r,this.computeApproximateSize(!1,v),this.height}getLinePosition(n,r="additions"){const o=this.getLayoutDiff();if(o==null||n<1)return;const l=this.getLineIndexForDiff(o,n,r);if(l==null)return;const{disableFileHeader:u=!1,expandUnchanged:d=!1,collapsed:h=!1,collapsedContextThreshold:f=1}=this.options,p=this.getDiffStyle(),m=this.getHunkSeparatorType(),v=p==="split"?l[1]:l[0];this.approximateLayoutCheckpoints(o);const k=Br(this.metrics,u),x=this.getLayoutCheckpointBeforeLineIndex(v);let S=(x==null?void 0:x.top)??k+this.cache.fileAnnotationHeight;if(h)return{top:Za(this.metrics,u),height:0};let C;return gi({diff:o,diffStyle:p,startingLine:(x==null?void 0:x.renderedLineIndex)??0,expandedHunks:d?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:f,callback:({hunkIndex:E,hunk:A,collapsedBefore:w,collapsedAfter:L,deletionLine:b,additionLine:D})=>{const F=p==="split"?(D==null?void 0:D.splitLineIndex)??(b==null?void 0:b.splitLineIndex):(D==null?void 0:D.unifiedLineIndex)??(b==null?void 0:b.unifiedLineIndex);if(F==null)throw new Error("VirtualizedFileDiff.getLinePosition: missing line index data");if(w>0){const z=qr({type:m,metrics:this.metrics,hunkIndex:E,hunkSpecs:A==null?void 0:A.hunkSpecs});if(z!=null){if(S+=z.gapBefore,v>=F-w&&v<F)return C={top:S,height:z.height},!0;S+=z.height+z.gapAfter}}const N=this.getLineHeight(F,((D==null?void 0:D.noEOFCR)??!1)||((b==null?void 0:b.noEOFCR)??!1));if(F===v)return C={top:S,height:N},!0;if(S+=N,L>0){const z=hi({type:m,metrics:this.metrics});if(z!=null){if(v>F&&v<=F+L)return C={top:S+z.gapBefore,height:z.height},!0;S+=z.totalHeight}}return!1}}),C}getEditorViewport(){return this.virtualizer.type==="simple"?this.virtualizer.getRoot():this.virtualizer.getContainerElement()}getNumericScrollAnchor(n){const r=this.getLayoutDiff();if(r==null)return;const{disableFileHeader:o=!1,expandUnchanged:l=!1,collapsed:u=!1,collapsedContextThreshold:d=1}=this.options;if(u)return;const h=this.getDiffStyle(),f=this.getHunkSeparatorType();this.approximateLayoutCheckpoints(r);const p=this.getLayoutCheckpointBeforeTop(n);let m=(p==null?void 0:p.top)??Br(this.metrics,o)+this.cache.fileAnnotationHeight,v;return gi({diff:r,diffStyle:h,startingLine:(p==null?void 0:p.renderedLineIndex)??0,expandedHunks:l?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:d,callback:({hunkIndex:k,hunk:x,collapsedBefore:S,collapsedAfter:C,deletionLine:E,additionLine:A})=>{const w=h==="split"?(A==null?void 0:A.splitLineIndex)??(E==null?void 0:E.splitLineIndex):(A==null?void 0:A.unifiedLineIndex)??(E==null?void 0:E.unifiedLineIndex);if(w==null)throw new Error("VirtualizedFileDiff.getNumericScrollAnchor: missing line index data");if(S>0){const b=qr({type:f,metrics:this.metrics,hunkIndex:k,hunkSpecs:x==null?void 0:x.hunkSpecs});b!=null&&(m+=b.totalHeight)}if(m>=n&&(E!=null?v={lineNumber:E.lineNumber,side:"deletions",top:m}:A!=null&&(v={lineNumber:A.lineNumber,side:"additions",top:m}),v!=null))return!0;const L=this.getLineHeight(w,((A==null?void 0:A.noEOFCR)??!1)||((E==null?void 0:E.noEOFCR)??!1));if(m+=L,C>0){const b=hi({type:f,metrics:this.metrics});b!=null&&(m+=b.totalHeight)}return!1}}),v}getVirtualizedHeight(){return this.height}getAdvancedStickySpecs(n){const r=this.getLayoutDiff();if(this.top==null||r==null)return;if(this.options.collapsed===!0)return{topOffset:this.top,height:this.height};const o=n!=null?this.computeRenderRangeFromWindow(r,this.top,n):this.renderRange;if(o==null)return;const{bufferBefore:l,bufferAfter:u,totalLines:d}=o;let h=0;if(d===0){const f=n??this.virtualizer.getWindowSpecs();this.top<f.top&&(h=u)}return{topOffset:this.top+l+h,height:this.height-(l+u)}}cleanUp(n=!1){var l;const r=this.cache.ghostTextRows.size>0;r&&(this.layoutDirty=!0);const o=n&&this.isAdvancedMode()&&this.fileContainer!=null&&(r||!ze(this.getRenderedDiff(),this.getWorkingDiff()));this.fileContainer!=null&&this.isSimpleMode()&&((l=this.getSimpleVirtualizer())==null||l.disconnect(this.fileContainer)),n||(this.resetLayoutCache({includeEstimatedHeights:!0}),this.pendingExpansions=void 0,this.pendingHydratedDiff=void 0),this.pendingRender=void 0,this.isSetup=!1,super.cleanUp(n),o&&this.virtualizer.instanceChanged(this,!0)}async handleFilesLoaded(n,r){if(!(this.getInputDiff()!==n||!n.isPartial)){if(this.isAdvancedMode()){const o=cu("clone",n,r,this.options.parseDiffOptions);if(await uu(()=>this.primeHighlightCache(o)),this.getInputDiff()!==n)return;this.pendingHydratedDiff={expectedDiff:n,nextDiff:o,files:r}}else{if(cu("merge",n,r,this.options.parseDiffOptions),this.setHydratedState(r),!this.installHydratedSessionDiff(n)&&(await uu(()=>this.primeHighlightCache(n)),this.getInputDiff()!==n))return;this.resetLayoutCache({includeEstimatedHeights:!0}),this.computeApproximateSize()}this.forceRenderOverride=!0,this.virtualizer.instanceChanged(this,!0)}}loadFilesIfNecessary(){if(this.pendingHydratedDiff!=null){if(this.pendingHydratedDiff.expectedDiff===this.getInputDiff())return;this.pendingHydratedDiff=void 0}super.loadFilesIfNecessary()}isLineRenderable(n){if(super.isLineRenderable(n))return!0;const{pendingExpansions:r}=this,o=this.getRenderedDiff();if(r==null||r.length===0||o==null)return!1;const{expansionLineCount:l=100,collapsedContextThreshold:u=1}=this.options,d=new Map(this.hunksRenderer.getExpandedHunksMap());for(const h of r){const f={...d.get(h.hunkIndex)??{fromStart:0,fromEnd:0}},p=h.expansionLineCountOverride??l;(h.direction==="up"||h.direction==="both")&&(f.fromStart+=p),(h.direction==="down"||h.direction==="both")&&(f.fromEnd+=p),d.set(h.hunkIndex,f)}return Jh({fileDiff:o,lineNumber:n,expandedHunks:d,collapsedContextThreshold:u})}invalidateEditSessionLayout(){var n,r;(n=this.getSimpleVirtualizer())==null||n.markDOMDirty(),this.resetLayoutCache({forceSimpleRecompute:this.isSimpleMode(),includeEstimatedHeights:!0,resetRenderRange:!1}),this.isSimpleMode()||this.computeApproximateSize(!0),(r=this.getSimpleVirtualizer())==null||r.requestHeightReconcile(this)}escalateEditSessionRender(){this.invalidateEditSessionLayout(),!(!this.enabled||this.getInputDiff()==null)&&(this.forceRenderOverride=!0,this.virtualizer.instanceChanged(this,!0))}shouldSelfHealEditSession(){return!this.isAdvancedMode()&&super.shouldSelfHealEditSession()}setVisibility(n){this.isAdvancedMode()||this.fileContainer==null||(this.renderRange=void 0,n&&!this.isVisible?(this.top=this.getVirtualizedTop(),this.isVisible=!0):!n&&this.isVisible&&(this.isVisible=!1,this.rerender()))}rerender(){if(!this.enabled||this.getInputDiff()==null&&this.additionFile==null&&this.deletionFile==null)return;const n=this.getWorkingDiff(),r=n==null?void 0:this.hunksRenderer.getDiffForNextRender(n);this.isSimpleMode()&&(this.pendingRender=void 0),this.forceRenderOverride=!0,!(this.isSimpleMode()&&this.requestRender())&&this.virtualizer.instanceChanged(this,!ze(this.getRenderedDiff(),r))}get isComponentManaged(){var n;return((n=this.getAdvancedVirtualizer())==null?void 0:n.isComponentManaged)??super.isComponentManaged}syncGhostTextRows(){var r;const n=this.getAdvancedVirtualizer();n!=null?(n.capturePendingLayoutAnchor(),this.layoutDirty=!0,n.instanceChanged(this,!0)):(r=this.getSimpleVirtualizer())==null||r.requestHeightReconcile(this)}applyDocumentChange(n,r,o=!1){var d,h;const{renderRange:l}=this;(d=this.getAdvancedVirtualizer())==null||d.capturePendingLayoutAnchor(),super.applyDocumentChange(n,r),(h=this.getSimpleVirtualizer())==null||h.markDOMDirty(),this.resetLayoutCache({forceSimpleRecompute:this.isSimpleMode(),includeEstimatedHeights:!0,resetRenderRange:!1});const u=this.getRenderedDiff();if(!this.isSimpleMode())this.computeApproximateSize(!0);else if(o&&l!=null&&u!=null){const f=this.virtualizer.getWindowSpecs(),p=this.computeRenderRangeFromWindow(u,this.top??0,f);p.bufferAfter!==l.bufferAfter&&this.updateBuffers(p)}this.forceRenderOverride=!0,this.virtualizer.instanceChanged(this,!0)}computeApproximateSize(n=!1,r=this.getLayoutDiff()){var h;const o=this.isResizeDebuggingEnabled();if(!n&&!this.layoutDirty&&!o)return;const l=this.height===0;if(this.height=0,this.cache.checkpoints=[],this.cache.totalLines=0,r==null){this.layoutDirty=!1;return}this.applyGhostTextRows(r,((h=this.editor)==null?void 0:h.__getGhostTextRows())??bs);const{disableFileHeader:u=!1,collapsed:d=!1}=this.options;if(d){this.height+=Za(this.metrics,u),this.layoutDirty=!1;return}this.height=this.getActiveEstimatedHeight(r)+this.cache.measuredHeightDeltaTotal,o&&!l&&this.validateComputedHeight(r),this.layoutDirty=!1}getLayoutDiff(){var n;return((n=this.pendingRender)==null?void 0:n.diff)??this.getRenderedDiff()}getLayoutAnnotations(){const{pendingRender:n}=this;return n!=null?this.getAnnotationsForDiff(n.diff):this.lineAnnotations}getActiveEstimatedHeight(n=this.getLayoutDiff()){this.ensureEstimatedDiffHeights(n);const r=this.getDiffStyle()==="split"?this.cache.estimatedSplitHeight:this.cache.estimatedUnifiedHeight;if(r==null)throw new Error("VirtualizedFileDiff.getActiveEstimatedHeight: missing estimated height");return r}ensureEstimatedDiffHeights(n=this.getLayoutDiff()){if(n==null){this.cache.estimatedSplitHeight=void 0,this.cache.estimatedUnifiedHeight=void 0;return}if(this.cache.estimatedSplitHeight!=null&&this.cache.estimatedUnifiedHeight!=null)return;const{disableFileHeader:r=!1,expandUnchanged:o=!1,collapsedContextThreshold:l=1}=this.options,{splitHeight:u,unifiedHeight:d}=ux({fileDiff:n,metrics:this.metrics,disableFileHeader:r,hunkSeparators:this.getHunkSeparatorType(),expandUnchanged:o,expandedHunks:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:l,canHydratePartialDiff:qa(n,this.options.loadDiffFiles!=null)});this.cache.estimatedSplitHeight=u,this.cache.estimatedUnifiedHeight=d}validateComputedHeight(n=this.getLayoutDiff()){if(this.fileContainer==null||n==null)return;const r=this.fileContainer.getBoundingClientRect();r.height!==this.height?console.log("VirtualizedFileDiff.computeApproximateSize: computed height doesnt match",{name:n.name,elementHeight:r.height,computedHeight:this.height}):console.log("VirtualizedFileDiff.computeApproximateSize: computed height IS CORRECT")}render({fileContainer:n,fileDiff:r,forceRender:o=!1,lineAnnotations:l,...u}={}){var N;const d=du(u,"VirtualizedFileDiff.render"),h=d!=null,f=d==null?void 0:d.oldFile,p=d==null?void 0:d.newFile,m=h&&(!Nh(f,this.deletionFile)||!Nh(p,this.additionFile));let v=r??this.getInputDiff();r==null&&h&&(m||this.getInputDiff()==null)&&(v=Yn(d.oldFile,d.newFile,this.options.parseDiffOptions));const{forceRenderOverride:k,isSetup:x}=this;this.forceRenderOverride=void 0;const S=v!=null&&!ze(this.getInputDiff(),v),C=S||m;if(n=this.getOrCreateFileContainer(n),v==null)return console.error("VirtualizedFileDiff.render: attempting to virtually render when we dont have the correct data"),!1;S&&this.updateInputDiff(v,l);const{pendingRenderDiff:E,layoutDiffChanged:A,renderedDiffChanged:w,annotationsChanged:L}=this.pendingRender!=null&&this.pendingRender.workingDiff===(this.getWorkingDiff(v)??v)?{pendingRenderDiff:this.pendingRender.diff,layoutDiffChanged:!1,renderedDiffChanged:!1,annotationsChanged:this.syncLineAnnotations(l)}:this.updatePendingRender(v,l);if(A&&this.resetLayoutCache({includeEstimatedHeights:!0}),x)this.top??(this.top=this.getVirtualizedTop()),this.layoutDirty&&this.isSimpleMode()&&((N=this.getSimpleVirtualizer())==null||N.markDOMDirty(),this.computeApproximateSize(!1,E));else{this.computeApproximateSize(!1,E);const z=this.getSimpleVirtualizer();if(this.top??(this.top=this.getVirtualizedTop()),this.isAdvancedMode())this.isVisible=!0;else{if(z==null)throw new Error("VirtualizedFileDiff.render: simple virtualizer is not available");z.connect(n,this),this.isVisible=z.isInstanceVisible(this.top??0,this.height)}this.isSetup=!0}if(!this.isVisible&&this.isSimpleMode()&&(!C||!x))return d!=null&&(this.deletionFile=f,this.additionFile=p),S&&this.clearReusableHeader(),this.renderPlaceholder(this.height);const b=this.virtualizer.getWindowSpecs(),D=this.top??0,F=this.computeRenderRangeFromWindow(E,D,b);return super.render({fileDiff:v,fileContainer:n,renderRange:F,lineAnnotations:l,forceRender:(k??o)||L||w||S,...d,...u})}finalizeRender(){var n,r;if(!ze(this.getRenderedDiff(),(n=this.pendingRender)==null?void 0:n.diff))throw new Error("VirtualizedFileDiff.render: rendered a different diff than its prepared layout");this.pendingRender=void 0,this.isSimpleMode()&&((r=this.getSimpleVirtualizer())==null||r.requestHeightReconcile(this))}updatePendingRender(n,r){const o=this.getWorkingDiff(n)??n,l=this.getRenderedDiff(),{pendingRender:u}=this,d=(u==null?void 0:u.diff)??l,h=this.hunksRenderer.getDiffForNextRender(o);return this.pendingRender={workingDiff:o,diff:h},{pendingRenderDiff:h,annotationsChanged:this.syncLineAnnotations(r),layoutDiffChanged:!ze(d,h),renderedDiffChanged:!ze(l,h)}}syncVirtualizedTop(){this.top=this.getVirtualizedTop()}shouldDisableVirtualizationBuffers(){return this.isAdvancedMode()||super.shouldDisableVirtualizationBuffers()}shouldGuardRebuildScroll(){return!1}isSimpleMode(){return this.virtualizer.type==="simple"}isAdvancedMode(){return this.virtualizer.type==="advanced"}getVirtualizedTop(){return this.virtualizer.type==="advanced"?this.virtualizer.getLocalTopForInstance(this):this.fileContainer!=null?this.virtualizer.getOffsetInScrollContainer(this.fileContainer):0}getSimpleVirtualizer(){return this.virtualizer.type==="simple"?this.virtualizer:void 0}getAdvancedVirtualizer(){return this.virtualizer.type==="advanced"?this.virtualizer:void 0}isResizeDebuggingEnabled(){var n;return((n=this.getSimpleVirtualizer())==null?void 0:n.config.resizeDebugging)??!1}getDiffStyle(){return this.options.diffStyle??"split"}getHunkSeparatorType(){return Yk(this.options.hunkSeparators)}approximateLayoutCheckpoints(n){var S,C,E;if(!this.layoutDirty&&this.cache.checkpoints.length>0||n.hunks.length===0||this.options.collapsed===!0)return;const{disableFileHeader:r=!1,expandUnchanged:o=!1,collapsedContextThreshold:l=1}=this.options,u=n.hunks.length-1,d=qa(n,this.options.loadDiffFiles!=null),h=this.getDiffStyle(),f=this.getHunkSeparatorType(),p=o?!0:this.hunksRenderer.getExpandedHunksMap(),m=Bk(this.cache.heightDeltas);let v=Br(this.metrics,r)+this.cache.fileAnnotationHeight,k=0;const x=({rowCount:A,startLineIndex:w,preSeparatorHeight:L=0,postSeparatorHeight:b=0,metadataOffsets:D=[]})=>{if(A<=0)return;const F=k,N=k+A;let z=qk(F);for(;z<N;){const G=z-F,V=v+(G>0?L:0)+G*this.metrics.lineHeight+Gk(D,G)*this.metrics.lineHeight+Th(m,w,w+G);this.cache.checkpoints.push({renderedLineIndex:z,lineIndex:w+G,top:V}),z+=mu}v+=L+A*this.metrics.lineHeight+D.length*this.metrics.lineHeight+Th(m,w,w+A)+b,k=N};for(let A=0;A<n.hunks.length;A++){const w=n.hunks[A];if(w==null)throw new Error("VirtualizedFileDiff.approximateLayoutCheckpoints: invalid hunk index");const L=bn({isPartial:n.isPartial,rangeSize:w.collapsedBefore,expandedHunks:p,hunkIndex:A,collapsedContextThreshold:l}),b=L.collapsedLines>0?((S=qr({type:f,metrics:this.metrics,hunkIndex:A,hunkSpecs:w.hunkSpecs}))==null?void 0:S.totalHeight)??0:0;x({rowCount:L.fromStart,startLineIndex:(h==="split"?w.splitLineStart:w.unifiedLineStart)-L.rangeSize});let D=b;x({rowCount:L.fromEnd,startLineIndex:(h==="split"?w.splitLineStart:w.unifiedLineStart)-L.fromEnd,preSeparatorHeight:D}),L.fromEnd>0&&(D=0);const F=A===u?En({fileDiff:n,hunkIndex:A,expandedHunks:p,collapsedContextThreshold:l,errorPrefix:"VirtualizedFileDiff"}):void 0,N=F!=null&&F.collapsedLines>0?((C=hi({type:f,metrics:this.metrics}))==null?void 0:C.totalHeight)??0:A===u&&d?((E=hi({type:f,metrics:this.metrics}))==null?void 0:E.totalHeight)??0:0,z=F!=null?F.fromStart+F.fromEnd:0,G=h==="split"?w.splitLineCount:w.unifiedLineCount,V=h==="split"?w.splitLineStart:w.unifiedLineStart;x({rowCount:G,startLineIndex:V,preSeparatorHeight:D,postSeparatorHeight:z===0?N:0,metadataOffsets:Xk({diffStyle:h,hunk:w,rowCount:G})}),F!=null&&z>0&&x({rowCount:z,startLineIndex:V+G,postSeparatorHeight:N})}this.cache.totalLines=k}getLayoutCheckpointBeforeLineIndex(n){if(n<=0||this.cache.checkpoints.length===0)return;let r=0,o=this.cache.checkpoints.length-1,l;for(;r<=o;){const u=r+o>>1,d=this.cache.checkpoints[u];if(d==null)throw new Error("VirtualizedFileDiff: invalid checkpoint index");d.lineIndex<=n?(l=d,r=u+1):o=u-1}return l}getLayoutCheckpointBeforeTop(n,r){let o=0,l=this.cache.checkpoints.length-1,u=-1;for(;o<=l;){const d=o+l>>1,h=this.cache.checkpoints[d];if(h==null)throw new Error("VirtualizedFileDiff: invalid checkpoint index");h.top<=n?(u=d,o=d+1):l=d-1}if(r==null)return u>=0?this.cache.checkpoints[u]:void 0;for(let d=u;d>=0;d--){const h=this.cache.checkpoints[d];if(h==null)throw new Error("VirtualizedFileDiff: invalid checkpoint index");if(h.renderedLineIndex%r===0)return h}}getExpandedLineCount(n,r){let o=0;if(n.isPartial){for(const f of n.hunks)o+=r==="split"?f.splitLineCount:f.unifiedLineCount;return o}const{expandUnchanged:l=!1,collapsedContextThreshold:u=1}=this.options,d=l?!0:this.hunksRenderer.getExpandedHunksMap();for(const[f,p]of n.hunks.entries()){const m=r==="split"?p.splitLineCount:p.unifiedLineCount;o+=m;const v=Math.max(p.collapsedBefore,0),{fromStart:k,fromEnd:x,renderAll:S}=bn({isPartial:n.isPartial,rangeSize:v,expandedHunks:d,hunkIndex:f,collapsedContextThreshold:u});v>0&&(o+=S?v:k+x)}const h=En({fileDiff:n,hunkIndex:n.hunks.length-1,expandedHunks:d,collapsedContextThreshold:u,errorPrefix:"VirtualizedFileDiff"});return h!=null&&(o+=h.fromStart+h.fromEnd),o}getLayoutLineCount(n,r){const o=this.getExpandedLineCount(n,r),l=r==="split"?n.splitLineCount:n.unifiedLineCount;return Math.max(o,l,n.additionLines.length,n.deletionLines.length,this.cache.totalLines)}computeRenderRangeFromWindow(n,r,{top:o,bottom:l}){const{disableFileHeader:u=!1,expandUnchanged:d=!1,collapsedContextThreshold:h=1}=this.options,{hunkLineCount:f,lineHeight:p}=this.metrics,m=this.getDiffStyle(),v=this.getHunkSeparatorType(),k=qa(n,this.options.loadDiffFiles!=null),x=this.height;let S=this.getLayoutLineCount(n,m);const C=Br(this.metrics,u),E=n.hunks.length>0?Yh(this.metrics):0,{fileAnnotationHeight:A}=this.cache,w=C+A,L=Math.max(0,x-C-A-E),b=this.hasFileAnnotations(n),D=r+C,F=A>0&&b&&D<l&&D+A>o;if(r<o-x||r>l)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:x-C-E};if(S<=f||n.hunks.length===0)return{startingLine:0,totalLines:f,bufferBefore:0,bufferAfter:0};this.approximateLayoutCheckpoints(n),S=this.getLayoutLineCount(n,m);const N=Math.ceil(Math.max(l-o,0)/p),z=Math.ceil(N/f)*f+f,G=z/f,V=G,ue=[],K=(o+l)/2,B=this.getLayoutCheckpointBeforeTop(Math.max(0,o-r-z*p*2),f);let ie=r+((B==null?void 0:B.top)??w),ye=(B==null?void 0:B.renderedLineIndex)??0,ge,ee,W;if(gi({diff:n,diffStyle:m,startingLine:(B==null?void 0:B.renderedLineIndex)??0,expandedHunks:d?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:h,callback:({hunkIndex:we,hunk:Le,collapsedBefore:$e,collapsedAfter:en,deletionLine:Je,additionLine:et})=>{var Wt;const Nt=et!=null?et.splitLineIndex:Je.splitLineIndex,Ht=et!=null?et.unifiedLineIndex:Je.unifiedLineIndex,De=((et==null?void 0:et.noEOFCR)??!1)||((Je==null?void 0:Je.noEOFCR)??!1),Ge=we===n.hunks.length-1&&Le!=null&&(m==="split"?Nt===Le.splitLineStart+Le.splitLineCount-1:Ht===Le.unifiedLineStart+Le.unifiedLineCount-1),Pe=((Wt=$e>0?qr({type:v,metrics:this.metrics,hunkIndex:we,hunkSpecs:Le==null?void 0:Le.hunkSpecs}):void 0)==null?void 0:Wt.totalHeight)??0;ie+=Pe;const at=ye%f===0,Ue=Math.floor(ye/f);if(at&&(ue[Ue]=ie-(r+w+Pe),W!=null)){if(W<=0)return!0;W--}const Be=this.getLineHeight(m==="split"?Nt:Ht,De);if(ie>o-Be&&ie<l&&(ge??(ge=Ue)),ee==null&&ie+Be>K&&(ee=Ue),W==null&&ie>=l&&at&&(W=V),ye++,ie+=Be,en>0||Ge&&k){const Qe=hi({type:v,metrics:this.metrics});Qe!=null&&(ie<l&&ie+Qe.totalHeight>o&&(ge??(ge=Ue)),ee==null&&ie+Qe.totalHeight>K&&(ee=Ue),ie+=Qe.totalHeight)}return!1}}),ge==null)if(F)ge=0,ee=0;else return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:x-C-E};ee??(ee=ge);const re=Math.round(ee-G/2),ne=Math.max(0,Math.ceil(S/f)-G),M=Math.max(0,Math.min(re,ne)),H=M*f,se=re<0?z+re*f:z,fe=ue[M]??0,ke=H===0?0:A+fe,Se=M+se/f,Ee=Se<ue.length?L-ue[Se]:L-(ie-r-w);return{startingLine:H,totalLines:se,bufferBefore:ke,bufferAfter:Math.max(0,Ee)}}};function Wk(e){let n;for(const r of e){if(r==null)continue;const o=r.children[1];if(o instanceof HTMLElement)for(const l of o.children)l instanceof HTMLElement&&l.dataset.lineAnnotation===U1&&(n=Math.max(n??0,l.getBoundingClientRect().height))}return n}function Bk(e){const n=Array.from(e).sort((u,d)=>u[0]-d[0]),r=[],o=[0];let l=0;for(const[u,d]of n)r.push(u),l+=d,o.push(l);return{lineIndexes:r,prefixTotals:o}}function Th({lineIndexes:e,prefixTotals:n},r,o){if(r>=o||e.length===0)return 0;const l=Dh(e,r);return(n[Dh(e,o)]??0)-(n[l]??0)}function Dh(e,n){let r=0,o=e.length;for(;r<o;){const l=r+o>>1,u=e[l];if(u==null)throw new Error("VirtualizedFileDiff: invalid prefix index");u<n?r=l+1:o=l}return r}function qk(e){return Math.ceil(e/mu)*mu}function Gk(e,n){let r=0;for(const o of e)o<n&&r++;return r}function Xk({diffStyle:e,hunk:n,rowCount:r}){if(r<=0||!n.noEOFCRAdditions&&!n.noEOFCRDeletions)return[];const o=n.hunkContent.at(-1);if(o==null)return[];if(o.type==="context")return[r-1];const l=Math.max(o.deletions,o.additions),u=o.deletions+o.additions;if(e==="split")return l>0&&(n.noEOFCRAdditions||n.noEOFCRDeletions)?[r-1]:[];const d=[],h=r-u;return o.deletions>0&&n.noEOFCRDeletions&&d.push(h+o.deletions-1),o.additions>0&&n.noEOFCRAdditions&&d.push(r-1),d}function Kk(e,n){return(e.diffStyle??"split")!==(n.diffStyle??"split")||(e.overflow??"scroll")!==(n.overflow??"scroll")||(e.collapsed??!1)!==(n.collapsed??!1)||(e.disableLineNumbers??!1)!==(n.disableLineNumbers??!1)||(e.disableFileHeader??!1)!==(n.disableFileHeader??!1)||(e.diffIndicators??"bars")!==(n.diffIndicators??"bars")||(e.hunkSeparators??"line-info")!==(n.hunkSeparators??"line-info")||!!e.loadDiffFiles!=!!n.loadDiffFiles||(e.expandUnchanged??!1)!==(n.expandUnchanged??!1)||(e.collapsedContextThreshold??1)!==(n.collapsedContextThreshold??1)||e.unsafeCSS!==n.unsafeCSS}function Qk(e,n){return(e.disableFileHeader??!1)!==(n.disableFileHeader??!1)||(e.hunkSeparators??"line-info")!==(n.hunkSeparators??"line-info")||!!e.loadDiffFiles!=!!n.loadDiffFiles||(e.expandUnchanged??!1)!==(n.expandUnchanged??!1)||(e.collapsedContextThreshold??1)!==(n.collapsedContextThreshold??1)}function qa(e,n){return e.isPartial&&n&&(e.type==="change"||e.type==="rename-changed")}function Yk(e){return typeof e=="function"?"custom":e??"line-info"}function Nh(e,n){return e==null||n==null?e==null&&n==null:Qh(e,n)}function Zk(e,n){const[r,o]=e.split(",").map(Number);return n==="split"?o:r}var Jk=zh();function eS(e,n){return typeof window>"u"&&n!=null?T.jsxs(T.Fragment,{children:[T.jsx("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:n}}),e]}):T.jsx(T.Fragment,{children:e})}function tS(e,n){return e==null||n==null?e===n:e.top===n.top&&e.bottom===n.bottom}const Wp=1e3,nS=Wp*4,iS=[0,1e-6,.99999,1],rS={overscrollSize:Wp,intersectionObserverMargin:nS,resizeDebugging:!1};let Es=0,oS=-1;var mt,sS=(mt=class{constructor(n){O(this,"__id",`virtualizer-${++oS}`);O(this,"config");O(this,"type","simple");O(this,"intersectionObserver");O(this,"scrollTop",0);O(this,"height",0);O(this,"scrollHeight",0);O(this,"windowSpecs",{top:0,bottom:0});O(this,"root");O(this,"contentContainer");O(this,"resizeObserver");O(this,"observers",new Map);O(this,"visibleInstances",new Map);O(this,"visibleInstancesDirty",!1);O(this,"instancesChanged",new Set);O(this,"reconcileQueue",new Set);O(this,"scrollDirty",!0);O(this,"heightDirty",!0);O(this,"scrollHeightDirty",!0);O(this,"renderedObservers",0);O(this,"connectQueue",new Map);O(this,"handleContainerResize",n=>{if(this.root==null)return;let r=!1;for(const o of n){const l=o.borderBoxSize[0].blockSize;this.root instanceof Document?l!==this.scrollHeight&&(this.scrollHeightDirty=!0,r=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:l-Es,newSize:l}),Es=l)):o.target===this.root?l!==this.height&&(this.heightDirty=!0,r=!0):o.target===this.contentContainer&&(this.scrollHeightDirty=!0,r=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:l-Es,newSize:l}),Es=l))}r&&xt(this.computeRenderRangeAndEmit)});O(this,"handleWindowResize",()=>{mt.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,xt(this.computeRenderRangeAndEmit))});O(this,"handleWindowScroll",()=>{mt.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,xt(this.computeRenderRangeAndEmit))});O(this,"handleElementScroll",()=>{mt.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,xt(this.computeRenderRangeAndEmit))});O(this,"computeRenderRangeAndEmit",()=>{if(mt.__STOP)return;const n=this.heightDirty||this.scrollHeightDirty;let r=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const u=Wf({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!n&&tS(this.windowSpecs,u)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=u}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const o=this.getScrollAnchor(this.height),l=new Set;for(const u of n?this.observers.values():this.visibleInstances.values())u.onRender(n)&&l.add(u);for(const u of this.instancesChanged)l.has(u)||u.onRender(n)&&l.add(u);this.scrollFix(o);for(const u of l)this.reconcileQueue.delete(u),u.reconcileHeights();for(const u of this.reconcileQueue)u.reconcileHeights()&&(r=!0);this.reconcileQueue.clear(),r||(r=this.instancesChanged.size>0),r&&this.markDOMDirty(),(r||n)&&xt(this.computeRenderRangeAndEmit),l.clear(),this.instancesChanged.clear()});O(this,"handleIntersectionChange",n=>{this.scrollDirty=!0;for(const{target:r,isIntersecting:o}of n){if(!(r instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const l=this.observers.get(r);l!=null&&(o&&!this.visibleInstances.has(r)?(l.setVisibility(!0),this.visibleInstances.set(r,l),this.visibleInstancesDirty=!0):!o&&this.visibleInstances.has(r)&&(l.setVisibility(!1),this.visibleInstances.delete(r),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&xt(this.computeRenderRangeAndEmit)});this.config={...rS,...n}}setup(n,r){if(this.root==null){this.root=n,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:iS,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),n instanceof Document?this.setupWindow():this.setupElement(r),window.__INSTANCE=this,window.__TOGGLE=()=>{mt.__STOP?(mt.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:mt.__lastScrollPosition}),xt(this.computeRenderRangeAndEmit)):(mt.__lastScrollPosition=this.getScrollTop(),mt.__STOP=!0)};for(const[o,l]of this.connectQueue.entries())this.connect(o,l);this.connectQueue.clear(),this.markDOMDirty(),xt(this.computeRenderRangeAndEmit)}}instanceChanged(n,r){this.instancesChanged.add(n),r&&this.markDOMDirty(),xt(this.computeRenderRangeAndEmit)}requestHeightReconcile(n){this.reconcileQueue.add(n),xt(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=Wf({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(n,r){const o=this.getScrollTop(),l=this.getHeight(),u=this.config.intersectionObserverMargin,d=o-u,h=o+l+u;return!(n<d-r||n>h)}setupWindow(){var n;if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),(n=this.resizeObserver)==null||n.observe(this.root.documentElement)}setupElement(n){var r,o;if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),(r=this.resizeObserver)==null||r.observe(this.root),n??(n=this.root.firstElementChild??void 0),n instanceof HTMLElement&&(this.contentContainer=n,(o=this.resizeObserver)==null||o.observe(n))}cleanUp(){var n,r,o;Ps(this.computeRenderRangeAndEmit),(n=this.resizeObserver)==null||n.disconnect(),this.resizeObserver=void 0,(r=this.intersectionObserver)==null||r.disconnect(),this.intersectionObserver=void 0,(o=this.root)==null||o.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(n){return this.getScrollTop()+Vr(n,this.getScrollContainerElement())}connect(n,r){if(this.observers.has(n))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(n,r):(this.intersectionObserver.observe(n),this.observers.set(n,r),this.instancesChanged.add(r),this.markDOMDirty(),xt(this.computeRenderRangeAndEmit)),()=>this.disconnect(n)}disconnect(n){var o;const r=this.observers.get(n);this.connectQueue.delete(n),r!=null&&((o=this.intersectionObserver)==null||o.unobserve(n),this.observers.delete(n),this.instancesChanged.delete(r),this.reconcileQueue.delete(r),this.visibleInstances.delete(n)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),xt(this.computeRenderRangeAndEmit))}scrollFix(n){var p;if(n==null)return;const r=this.getScrollContainerElement(),{lineIndex:o,lineOffset:l,fileElement:u,fileOffset:d,fileTypeOffset:h}=n;if(o!=null&&l!=null){const m=(p=u.shadowRoot)==null?void 0:p.querySelector(`[data-line][data-line-index="${o}"]`);if(m instanceof HTMLElement){const v=Vr(m,r);if(v!==l){const k=v-l;this.applyScrollFix(k)}return}}const f=Vr(u,r);if(h==="top")f!==d&&this.applyScrollFix(f-d);else{const m=f+u.getBoundingClientRect().height;m!==d&&this.applyScrollFix(m-d)}}applyScrollFix(n){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+n,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+n,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(n){var l;const r=this.getScrollContainerElement();let o;for(const[u]of this.visibleInstances.entries()){const d=Vr(u,r),h=d+u.offsetHeight;let f,p;h<=0?(f=h,p="bottom"):(f=d,p="top");let m,v;if(h>0&&d<n)for(const x of((l=u.shadowRoot)==null?void 0:l.querySelectorAll("[data-line][data-line-index]"))??[]){if(!(x instanceof HTMLElement))continue;const S=x.dataset.lineIndex;if(S==null)continue;const C=Vr(x,r);if(!(C<0)){m=S,v=C;break}}if((o==null?void 0:o.lineOffset)!=null&&v==null)continue;let k=!1;(o==null||v!=null&&(o.lineOffset==null||v<o.lineOffset)||v==null&&o.lineOffset==null&&(f>=0&&(o.fileOffset<0||f<o.fileOffset)||f<0&&o.fileOffset<0&&f>o.fileOffset))&&(k=!0),k&&(o={fileElement:u,fileTypeOffset:p,fileOffset:f,lineIndex:m,lineOffset:v})}return o}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let n=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return n=this.clampScrollTop(n),this.scrollTop=n,n}scrollTo({top:n,behavior:r="auto"}){const{root:o}=this;if(o==null)return;const l=this.clampScrollTop(n);o instanceof Document?window.scrollTo({top:l,behavior:r}):o.scrollTo({top:l,behavior:r}),this.scrollDirty=!0,xt(this.computeRenderRangeAndEmit)}clampScrollTop(n){return Math.max(0,Math.min(n,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},O(mt,"__STOP",!1),O(mt,"__lastScrollPosition",0),mt);function Vr(e,n){const r=e.getBoundingClientRect(),o=(n==null?void 0:n.getBoundingClientRect().top)??0;return r.top-o}const Bp=q.createContext(void 0);function lS({children:e,config:n,className:r,style:o,contentClassName:l,contentStyle:u}){const[d]=q.useState(()=>typeof window<"u"?new sS(n):void 0),h=q.useCallback(f=>{f!=null?d==null||d.setup(f):d==null||d.cleanUp()},[d]);return T.jsx(Bp.Provider,{value:d,children:T.jsx("div",{className:r,style:o,ref:h,children:T.jsx("div",{className:l,style:u,children:e})})})}function aS(){return q.useContext(Bp)}function uS(){const[e]=q.useState(()=>{let n=0,r;return{getSnapshot:()=>n,subscribe(o){return r=o,()=>{r=void 0}},forceUpdate(){n++,r==null||r()}}});return q.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot),e.forceUpdate}function dS(e,n){"use no memo";var r;return(r=e.current)==null?void 0:r.__getNextRenderData(n)}const cS=typeof window>"u"?q.useEffect:q.useLayoutEffect;function fS({fileDiff:e,oldFile:n,newFile:r,options:o,editorOptions:l,editStateKey:u,lineAnnotations:d,selectedLines:h,prerenderedHTML:f,metrics:p,hasGutterRenderUtility:m,hasCustomHeader:v,disableWorkerPool:k,edit:x,onEditChange:S,onEditComplete:C}){const E=aS(),A=h!==void 0,w=q.useContext(F1),L=l0(),[b,D]=q.useState(),F=us(H=>S==null?void 0:S(H)),N=S!=null?F:void 0,z=q.useRef(null),G=us(H=>{const se=(C==null?void 0:C(H))??"reject";return se==="accept"&&(z.current={fileDiff:{installed:H.fileDiff,stale:H.originalFileDiff},filePair:e==null?{fileDiff:H.fileDiff,installed:{oldFile:H.oldFile,newFile:H.newFile},stale:{oldFile:n??null,newFile:r??null}}:null,annotations:{installed:H.lineAnnotations,stale:H.originalLineAnnotations}}),se}),V=C!=null?G:void 0,ue=hS({acceptedCache:z,fileDiff:e,newFile:r,oldFile:n,parseDiffOptions:o==null?void 0:o.parseDiffOptions}),K=q.useRef(null),B=uS(),ie=pS(z,ue,d),ye=dS(K,ie)??{fileDiff:ue,lineAnnotations:d??Uh},ge=q.useRef(null),ee=q.useRef(null),W=us(()=>{if(L==null)throw new Error("FileDiff: EditContext is not attached");return L("file-diff",l??{},u)}),re=us(H=>{if(H!=null){if(K.current!=null)throw new Error("useFileDiffInstance: An instance should not already exist when a node is created");E!=null?K.current=new Vk(Ga({controlledSelection:A,hasCustomHeader:v,hasGutterRenderUtility:m,onEditChange:N,onEditComplete:V,options:o}),E,p,k?void 0:w,B):K.current=new Vp(Ga({controlledSelection:A,hasCustomHeader:v,hasGutterRenderUtility:m,onEditChange:N,onEditComplete:V,options:o}),k?void 0:w,B),K.current.hydrate({fileDiff:ue,fileContainer:H,lineAnnotations:d,prerenderedHTML:f})}else{if(K.current==null)throw new Error("useFileDiffInstance: A FileDiff instance should exist when unmounting");ee.current=null,K.current.cleanUp(),K.current=null,ge.current=null}});cS(()=>{var Le;const{current:H}=K;if(H==null)return;const se=Ga({controlledSelection:A,hasCustomHeader:v,hasGutterRenderUtility:m,onEditChange:N,onEditComplete:V,options:o}),fe=!np(H.options,se);if(H.setOptions(se),!x&&(ee.current=null,ge.current!=null)){const{current:$e}=ge;ge.current=null,$e()}const ke=gS(ue,d,z);if(H.render({forceRender:fe,fileDiff:ke.fileDiff,lineAnnotations:ke.lineAnnotations}),h!==void 0&&H.setSelectedLines(h),!x||ge.current!=null)return;if(L==null)throw new Error("FileDiff: EditContext is not attached");const Se=()=>{K.current!==H||ge.current!=null||!H.__canAttachEditor()||(ge.current=mS(H,W),B())};if(H.__canAttachEditor()){ee.current=null,Se();return}const Ee=H.__prepareForEditing();if(Ee==null){ee.current=null;return}if(((Le=ee.current)==null?void 0:Le.promise)===Ee)return;const we={promise:Ee};ee.current=we,Ee.then(()=>{ee.current===we&&(Se(),ee.current=null)}).catch($e=>{ee.current===we&&(ee.current=null,D($e))})});const ne=q.useCallback(()=>{var H;return(H=K.current)==null?void 0:H.getHoveredLine()},[]),M=q.useCallback(H=>{var se;return((se=K.current)==null?void 0:se.getAnnotationSlotName(H))??pi(H)},[]);if(b!=null)throw b;return{...ye,ref:re,getHoveredLine:ne,getAnnotationSlotName:M}}function hS({acceptedCache:e,fileDiff:n,newFile:r,oldFile:o,parseDiffOptions:l}){return q.useMemo(()=>{if(n!=null)return n;const{current:u}=e,d=u==null?void 0:u.filePair;if(u!=null&&d!=null){if(Mh(o,r,d.stale)||Mh(o,r,d.installed))return d.fileDiff;u.filePair=null}return Yn(o??null,r??null,l)},[e,n,o,r,l])}function Mh(e,n,r){return qf(e??void 0,r.oldFile??void 0)&&qf(n??void 0,r.newFile??void 0)}function pS(e,n,r){"use no memo";return qp(n,r,e.current)}function qp(e,n,r){return{fileDiff:(r==null?void 0:r.fileDiff)!=null&&ze(e,r.fileDiff.stale)?r.fileDiff.installed:e,lineAnnotations:(r==null?void 0:r.annotations)!=null&&n===r.annotations.stale?r.annotations.installed:n}}function gS(e,n,r){var u;const{current:o}=r,l=qp(e,n,o);return o==null||(o.fileDiff!=null&&!ze(e,o.fileDiff.stale)&&(o.fileDiff=null),n!==((u=o.annotations)==null?void 0:u.stale)&&(o.annotations=null),o.fileDiff==null&&o.annotations==null&&o.filePair==null&&(r.current=null)),l}function Ga({options:e,controlledSelection:n,hasCustomHeader:r,hasGutterRenderUtility:o,onEditChange:l,onEditComplete:u}){return{...e,controlledSelection:n,renderCustomHeader:r?Tf:e==null?void 0:e.renderCustomHeader,renderGutterUtility:o?Tf:e==null?void 0:e.renderGutterUtility,onEditChange:l,onEditComplete:u}}function mS(e,n){const r=n();try{return r.edit(e)}catch(o){throw r.cleanUp(),o}}function vS(e){const n=Ip(e);if(n.length!==1)throw console.error(n),new Error("PatchDiff: Provided patch must include only 1 patch, with 1 diff");const{files:r}=n[0];if(r.length!==1)throw console.error(r),new Error("FileDiff: Provided patch must contain exactly 1 file diff");return r[0]}function yS({patch:e,options:n,editorOptions:r,editStateKey:o,metrics:l,lineAnnotations:u,selectedLines:d,className:h,style:f,prerenderedHTML:p,renderAnnotation:m,renderCustomHeader:v,renderHeaderPrefix:k,renderHeaderFilenameSuffix:x,renderHeaderMetadata:S,renderGutterUtility:C,disableWorkerPool:E=!1,edit:A=!1,onEditChange:w,onEditComplete:L}){const b=xS(e),{ref:D,getHoveredLine:F,getAnnotationSlotName:N,fileDiff:z,lineAnnotations:G}=fS({fileDiff:b,options:n,editorOptions:r,editStateKey:o,metrics:l,lineAnnotations:u,selectedLines:d,prerenderedHTML:p,hasGutterRenderUtility:C!=null,hasCustomHeader:v!=null,disableWorkerPool:E,edit:A,onEditChange:w,onEditComplete:L}),V=C0({fileDiff:z,renderCustomHeader:v,renderHeaderPrefix:k,renderHeaderFilenameSuffix:x,renderHeaderMetadata:S,renderAnnotation:m,lineAnnotations:G,renderGutterUtility:C,getHoveredLine:F,getAnnotationSlotName:N});return T.jsx(Hh,{ref:D,className:h,style:f,children:eS(V,p)})}function xS(e){return q.useMemo(()=>vS(e),[e])}function kS(e,n){let r=0,o=e.length;for(;r<o;){const l=Math.floor((r+o)/2);e[l].getBoundingClientRect().top<=n?r=l+1:o=l}return e[Math.max(0,r-1)]}function Ah(e){return e.replace(/\\([\\"abfnrtv]|[0-7]{3}(?:\\[0-7]{3})*)/g,(n,r)=>{const o={"\\":"\\",'"':'"',a:"\x07",b:"\b",f:"\f",n:`
|
|
215
|
+
`,r:"\r",t:" ",v:"\v"};return r in o?o[r]:new TextDecoder().decode(Uint8Array.from(r.split("\\"),l=>parseInt(l,8)))})}function Gp(e){const r=(e.split(`
|
|
216
|
+
`,1)[0]||e.split(`
|
|
217
|
+
`).find(o=>o.startsWith("diff --git "))||"").match(/^diff --git (?:"a\/((?:\\.|[^"\\])+)"|a\/(.+?)) (?:"b\/((?:\\.|[^"\\])+)"|b\/(.+))$/);return r?r[3]!==void 0?Ah(r[3]):r[4]!==void 0?r[4]:r[1]!==void 0?Ah(r[1]):r[2]||"unknown":"unknown"}function SS(e,n){const r=Gp(e);let o=0,l=0;const u=[];for(const f of e.split(`
|
|
218
|
+
`)){const p=f.match(/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/);if(p){o=Number(p[1]),l=Number(p[2]);continue}if(!(!o&&!l)){if(f.startsWith("-")){u.push({old:o++,next:-1,text:f.slice(1),oldSide:!0,newSide:!1});continue}if(f.startsWith("+")){u.push({old:-1,next:l++,text:f.slice(1),oldSide:!1,newSide:!0});continue}if(f.startsWith(" ")){u.push({old:o++,next:l++,text:f.slice(1),oldSide:!0,newSide:!0});continue}f.startsWith("\\")||(o=0,l=0)}}const d=n.side==="deletions"?"old":"new",h=u.filter(f=>{const p=d==="old"?f.old:f.next;return p>=n.start&&p<=n.end&&(d==="old"?f.oldSide:f.newSide)});return{filename:r,start:n.start,end:n.end,side:d,code:h.map(f=>f.text).join(`
|
|
219
|
+
`)}}function wS(e,n,r){const o=n.filename.startsWith(e+"/")?n.filename.slice(e.length+1):n.filename;return`Please review this selected code context.
|
|
220
|
+
Repository: ${e}
|
|
221
|
+
File: ${o}
|
|
222
|
+
Lines: ${n.start}${n.end===n.start?"":`–${n.end}`} (${n.side} side)
|
|
223
|
+
|
|
224
|
+
\`\`\`
|
|
225
|
+
${n.code}
|
|
226
|
+
\`\`\`${r.trim()?`
|
|
227
|
+
|
|
228
|
+
Question: ${r.trim()}`:""}`}function CS(e,n){const r=e.toLowerCase(),o=n.trim().toLowerCase();if(!o)return 0;const l=r.lastIndexOf("/")+1,u=r.indexOf(o,l);if(u>=0)return u-l;const d=r.indexOf(o);if(d>=0)return 100+d;let h=-1,f=0;for(const p of o){const m=r.indexOf(p,h+1);if(m<0)return 1/0;f+=m-h-1,h=m}return 1e3+f}function bS({mode:e,token:n,changedFiles:r,commands:o,onFile:l,onClose:u}){const d=q.useRef(null),h=q.useRef(null),[f,p]=q.useState(""),[m,v]=q.useState(0),[k,x]=q.useState(),[S,C]=q.useState("");q.useEffect(()=>{var D;const b=d.current;return b==null||b.showModal(),(D=h.current)==null||D.focus(),()=>b==null?void 0:b.close()},[]),q.useEffect(()=>{if(e!=="files")return;const b=new AbortController;return fetch("/api/files",{signal:b.signal,headers:{"x-review-token":n}}).then(async D=>{const F=await D.json();if(!D.ok)throw new Error(F.error||"Could not load repository files");x(F)}).catch(D=>{b.signal.aborted||C(D.message)}),()=>b.abort()},[e,n]);const E=q.useMemo(()=>{const b=new Set(r);return(e==="commands"?o:[...new Set([...b,...(k==null?void 0:k.paths)??[]])].map(F=>{var N;return{label:F,status:((N=k==null?void 0:k.statuses[F])==null?void 0:N.trim())||(b.has(F)?"M":void 0),run:()=>l(F)}})).map(F=>({item:F,score:CS(F.label,f)})).filter(F=>Number.isFinite(F.score)).sort((F,N)=>F.score-N.score).slice(0,100).map(F=>F.item)},[e,o,r,k,f,l]),A=Math.min(m,Math.max(0,E.length-1));q.useEffect(()=>{var b,D;(D=(b=d.current)==null?void 0:b.querySelector('[aria-selected="true"]'))==null||D.scrollIntoView({block:"nearest"})},[A,f]);function w(b){var D;(D=d.current)==null||D.close(),u(),b.run()}function L(){var b;(b=d.current)==null||b.close(),u()}return T.jsxs("dialog",{ref:d,className:`quick-switcher ${oe(te.quickSwitcher).className}`,"aria-label":e==="files"?"Go to file":"Command palette",onCancel:b=>{b.preventDefault(),L()},onClick:b=>{b.target===b.currentTarget&&L()},children:[T.jsxs("form",{className:oe(te.quickInputRow).className,onSubmit:b=>{b.preventDefault(),E[A]&&w(E[A])},children:[T.jsxs("svg",{className:"quick-search-icon",viewBox:"0 0 24 24","aria-hidden":"true",children:[T.jsx("circle",{cx:"10.5",cy:"10.5",r:"6.5"}),T.jsx("path",{d:"m16 16 4.5 4.5"})]}),T.jsx("input",{ref:h,type:"search",role:"combobox","aria-label":e==="files"?"Find a file":"Find a command","aria-autocomplete":"list","aria-expanded":"true","aria-controls":"quick-results","aria-activedescendant":E[A]?`quick-result-${A}`:void 0,placeholder:e==="files"?"Search files by name or path…":"Search commands…",value:f,onChange:b=>{p(b.target.value),v(0)},onKeyDown:b=>{b.nativeEvent.isComposing||(b.key==="Escape"?(b.preventDefault(),L()):(b.key==="ArrowDown"||b.key==="ArrowUp")&&(b.preventDefault(),v(E.length?(A+(b.key==="ArrowDown"?1:-1)+E.length)%E.length:0)))}}),T.jsx("button",{type:"button","aria-label":"Close picker",onClick:L,children:T.jsx("kbd",{children:"esc"})})]}),T.jsxs("div",{className:"quick-section-label","aria-hidden":"true",children:[e==="files"?"Files":"Commands",E.length===100&&T.jsx("span",{children:"Top 100 matches"})]}),T.jsx("div",{id:"quick-results",role:"listbox","aria-label":e==="files"?"Files":"Commands",className:oe(te.quickResults).className,children:E.map((b,D)=>T.jsxs("div",{id:`quick-result-${D}`,role:"option","aria-label":b.label,"aria-selected":D===A,title:b.label,className:"quick-result",onMouseMove:()=>v(D),onMouseDown:F=>F.preventDefault(),onClick:()=>w(b),children:[T.jsx("svg",{className:"quick-file-icon",viewBox:"0 0 24 24","aria-hidden":"true",children:e==="files"?T.jsx("path",{d:"M13 3H6a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V9zm0 0v6h6"}):T.jsx("path",{d:"m7 7 5 5-5 5m7 0h4"})}),T.jsxs("span",{className:"quick-result-label",children:[T.jsx("span",{className:"quick-result-name",children:e==="files"?b.label.split("/").at(-1):b.label}),e==="files"&&b.label.includes("/")&&T.jsx("span",{className:"quick-result-directory",children:b.label.slice(0,b.label.lastIndexOf("/"))})]}),b.status&&T.jsx("small",{className:"quick-git-status","data-status":b.status,"aria-label":`Git status: ${b.status}`,children:b.status}),b.shortcut&&T.jsx("small",{className:"quick-command-shortcut",children:b.shortcut}),T.jsx("span",{className:"quick-confirm","aria-hidden":"true",children:"↵"})]},b.label))}),S&&T.jsx("p",{role:"alert",children:S}),e==="files"&&!k&&!S&&T.jsx("p",{role:"status",children:"Loading repository files…"}),!E.length&&(e==="commands"||k)&&T.jsx("p",{role:"status",children:"No matches."}),T.jsxs("footer",{children:[T.jsxs("span",{children:[T.jsx("kbd",{children:"↑"}),T.jsx("kbd",{children:"↓"})," Navigate"]}),T.jsxs("span",{children:[T.jsx("kbd",{children:"↵"})," ",e==="files"?"Open file":"Run command"]})]})]})}function Xp({value:e,options:n,onChange:r,ariaLabel:o,placeholder:l="Select…",title:u,disabled:d=!1,align:h="end",variant:f="header",icon:p,className:m}){const v=q.useId(),k=q.useRef(null),x=q.useRef(null),[S,C]=q.useState(!1),E=n.findIndex(z=>z.value===e),[A,w]=q.useState(()=>Math.max(0,E)),[L,b]=q.useState({top:0,right:0,minWidth:148,origin:"top right"});q.useLayoutEffect(()=>{if(!S)return;const z=()=>{const G=k.current;if(!G)return;const V=G.getBoundingClientRect(),ue=Math.min(260,n.length*30+10),K=V.bottom+ue+12>window.innerHeight&&V.top>ue+12,B=K?"bottom":"top",ie=h==="end"?"right":"left";b({top:K?void 0:Math.round(V.bottom+5),bottom:K?Math.round(window.innerHeight-V.top+5):void 0,left:h==="start"?Math.max(8,Math.round(V.left)):void 0,right:h==="end"?Math.max(8,Math.round(window.innerWidth-V.right)):void 0,minWidth:Math.max(148,Math.round(V.width)),origin:`${B} ${ie}`})};return z(),window.addEventListener("resize",z),window.addEventListener("scroll",z,!0),()=>{window.removeEventListener("resize",z),window.removeEventListener("scroll",z,!0)}},[S,h,n.length]),q.useEffect(()=>{var G;if(!S)return;w(Math.max(0,n.findIndex(V=>V.value===e))),(G=x.current)==null||G.focus();const z=V=>{var K,B;const ue=V.target;(K=k.current)!=null&&K.contains(ue)||(B=x.current)!=null&&B.contains(ue)||C(!1)};return window.addEventListener("pointerdown",z,!0),()=>window.removeEventListener("pointerdown",z,!0)},[S,n,e]);function D(){var z;C(!1),(z=k.current)==null||z.focus()}function F(z){const G=n[z];G&&(r(G.value),D())}const N=E>=0?n[E].label:l;return T.jsxs(T.Fragment,{children:[T.jsxs("button",{ref:k,type:"button",disabled:d,"aria-label":o,"aria-haspopup":"listbox","aria-expanded":S,"aria-controls":S?v:void 0,title:u,"data-open":S||void 0,className:`select-trigger select-trigger-${f} ${oe(te.selectTrigger,f==="inline"&&te.selectTriggerInline).className}${m?` ${m}`:""}`,onClick:()=>{d||C(z=>!z)},onKeyDown:z=>{d||(z.key==="ArrowDown"||z.key==="ArrowUp")&&(z.preventDefault(),C(!0))},children:[p,T.jsx("span",{className:oe(te.selectTriggerLabel).className,children:N}),T.jsx("svg",{className:`select-chevron ${oe(te.selectChevron,S&&te.selectChevronOpen).className}`,viewBox:"0 0 16 16","aria-hidden":"true",children:T.jsx("path",{d:"m4.5 6.25 3.5 3.5 3.5-3.5"})})]}),S&&Jk.createPortal(T.jsx("div",{ref:x,id:v,role:"listbox",tabIndex:-1,"aria-label":o,"aria-activedescendant":n[A]?`${v}-${A}`:void 0,"data-placement":L.bottom!==void 0?"top":"bottom",className:`select-popover ${oe(te.selectPopover).className}`,style:{top:L.top,bottom:L.bottom,left:L.left,right:L.right,minWidth:L.minWidth,transformOrigin:L.origin},onKeyDown:z=>{n.length&&(z.key==="Escape"?(z.preventDefault(),z.stopPropagation(),document.documentElement.dataset.focusSource="escape",D()):z.key==="Tab"?C(!1):z.key==="ArrowDown"?(z.preventDefault(),w(G=>(G+1)%n.length)):z.key==="ArrowUp"?(z.preventDefault(),w(G=>(G-1+n.length)%n.length)):z.key==="Home"?(z.preventDefault(),w(0)):z.key==="End"?(z.preventDefault(),w(n.length-1)):(z.key==="Enter"||z.key===" ")&&(z.preventDefault(),F(A)))},children:n.map((z,G)=>{const V=z.value===e,ue=G===A;return T.jsxs("div",{id:`${v}-${G}`,role:"option","aria-selected":V,"data-highlighted":ue||void 0,className:`select-option ${oe(te.selectOption,ue&&te.selectOptionHighlighted,V&&te.selectOptionSelected).className}`,onPointerMove:()=>{A!==G&&w(G)},onPointerDown:K=>K.preventDefault(),onClick:()=>F(G),children:[T.jsx("span",{className:oe(te.selectOptionLabel).className,children:z.label}),T.jsx("span",{className:oe(te.selectOptionCheck).className,"aria-hidden":"true",children:V&&T.jsx("svg",{viewBox:"0 0 16 16",children:T.jsx("path",{d:"m3.5 8.5 3 3 6-6.5"})})})]},z.value)})}),document.body)]})}function ES(){const e=q.useRef(null),n=q.useRef(void 0),[r,o]=q.useState(!1),[l,u]=q.useState(()=>{const h=Number(localStorage.getItem("rex-review-sidebar-width"));return Number.isFinite(h)&&h>=200?Math.min(520,h):248});q.useLayoutEffect(()=>{var h,f;(f=(h=e.current)==null?void 0:h.parentElement)==null||f.style.setProperty("--sidebar-preferred-width",`${l}px`)},[l]);function d(h,f=!1){var v;const p=(v=e.current)==null?void 0:v.parentElement;if(!p)return;const m=Math.round(Math.max(200,Math.min(520,p.clientWidth/2,h)));p.dataset.sidebarMotion="false",u(m),f&&localStorage.setItem("rex-review-sidebar-width",String(m))}return T.jsx("div",{ref:e,className:`sidebar-resize ${oe(te.sidebarResize).className}`,role:"separator","aria-label":"Resize sidebar","aria-orientation":"vertical","aria-valuemin":200,"aria-valuemax":520,"aria-valuenow":l,tabIndex:0,"data-dragging":r,title:"Drag to resize · Double-click to reset",onPointerDown:h=>{h.button!==0||n.current!==void 0||(h.preventDefault(),n.current=h.pointerId,h.currentTarget.setPointerCapture(h.pointerId),o(!0))},onPointerMove:h=>{if(n.current!==h.pointerId)return;const f=h.currentTarget.parentElement,p=f.getBoundingClientRect();d(f.classList.contains("sidebar-right")?p.right-h.clientX:h.clientX-p.left)},onPointerUp:h=>{n.current===h.pointerId&&h.currentTarget.releasePointerCapture(h.pointerId)},onLostPointerCapture:()=>{n.current=void 0,o(!1),localStorage.setItem("rex-review-sidebar-width",String(l))},onDoubleClick:()=>d(248,!0),onKeyDown:h=>{var m,v;const f=(v=(m=e.current)==null?void 0:m.parentElement)==null?void 0:v.classList.contains("sidebar-right"),p={ArrowLeft:l+(f?16:-16),ArrowRight:l+(f?-16:16),Home:200,End:520}[h.key];p!==void 0&&(h.preventDefault(),d(p,!0))}})}const Ph="(pointer: fine) and (max-width: 1440px), (pointer: fine) and (max-height: 900px)";function LS(e,n){return e==="comfortable"||e==="compact"?e:n?"compact":"comfortable"}const RS=q.lazy(()=>Ji(()=>import("./Explorer-C98lOZcC.js"),[]).then(e=>({default:e.Explorer}))),Au=/local-diff-pixel|Electron/i.test(navigator.userAgent),Kp=!Au&&/Mac|iPhone|iPad/i.test(navigator.platform),Xa=Au?"⌃P":Kp?"⌘P":"Ctrl+P",TS=Au?"⌃⇧P":Kp?"⌘⇧P":"Ctrl+Shift+P";var Ih;const Xr=((Ih=document.querySelector('meta[name="review-token"]'))==null?void 0:Ih.content)||"",vu={"x-review-token":Xr},DS={Codex:new URL("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='180'%20height='180'%20fill='none'%3e%3cstyle%3e%20:root%20{%20--primary-fill:%20%23fff;%20--secondary-fill:%20%23000;%20}%20@media%20(prefers-color-scheme:%20dark)%20{%20:root%20{%20--primary-fill:%20%23000;%20--secondary-fill:%20%23fff;%20}%20}%20%3c/style%3e%3cg%20clip-path='url(%23a)'%3e%3crect%20width='180'%20height='180'%20fill='var(--primary-fill)'%20rx='90'%20/%3e%3cg%20clip-path='url(%23b)'%3e%3cpath%20fill='var(--secondary-fill)'%20d='M75.91%2073.628V62.232c0-.96.36-1.68%201.199-2.16l22.912-13.194c3.119-1.8%206.838-2.639%2010.676-2.639%2014.394%200%2023.511%2011.157%2023.511%2023.032%200%20.839%200%201.799-.12%202.758l-23.752-13.914c-1.439-.84-2.879-.84-4.318%200L75.91%2073.627Zm53.499%2044.383v-27.23c0-1.68-.72-2.88-2.159-3.719L97.142%2069.55l9.836-5.638c.839-.48%201.559-.48%202.399%200l22.912%2013.195c6.598%203.839%2011.035%2011.995%2011.035%2019.912%200%209.116-5.397%2017.513-13.915%2020.992v.001Zm-60.577-23.99-9.836-5.758c-.84-.48-1.2-1.2-1.2-2.16v-26.39c0-12.834%209.837-22.55%2023.152-22.55%205.039%200%209.716%201.679%2013.676%204.678L70.993%2055.516c-1.44.84-2.16%202.039-2.16%203.719v34.787-.002Zm21.173%2012.234L75.91%2098.339V81.546l14.095-7.917%2014.094%207.917v16.793l-14.094%207.916Zm9.056%2036.467c-5.038%200-9.716-1.68-13.675-4.678l23.631-13.676c1.439-.839%202.159-2.038%202.159-3.718V85.863l9.956%205.757c.84.48%201.2%201.2%201.2%202.16v26.389c0%2012.835-9.957%2022.552-23.27%2022.552v.001Zm-28.43-26.75L47.72%20102.778c-6.599-3.84-11.036-11.996-11.036-19.913%200-9.236%205.518-17.513%2014.034-20.992v27.35c0%201.68.72%202.879%202.16%203.718l29.989%2017.393-9.837%205.638c-.84.48-1.56.48-2.399%200Zm-1.318%2019.673c-13.555%200-23.512-10.196-23.512-22.792%200-.959.12-1.919.24-2.879l23.63%2013.675c1.44.84%202.88.84%204.32%200l30.108-17.392v11.395c0%20.96-.361%201.68-1.2%202.16l-22.912%2013.194c-3.119%201.8-6.837%202.639-10.675%202.639Zm29.748%2014.274c14.515%200%2026.63-10.316%2029.39-23.991%2013.434-3.479%2022.071-16.074%2022.071-28.91%200-8.396-3.598-16.553-10.076-22.43.6-2.52.96-5.039.96-7.557%200-17.153-13.915-29.99-29.989-29.99-3.239%200-6.358.48-9.477%201.56-5.398-5.278-12.835-8.637-20.992-8.637-14.515%200-26.63%2010.316-29.39%2023.991-13.434%203.48-22.07%2016.074-22.07%2028.91%200%208.396%203.598%2016.553%2010.075%2022.431-.6%202.519-.96%205.038-.96%207.556%200%2017.154%2013.915%2029.989%2029.99%2029.989%203.238%200%206.357-.479%209.476-1.559%205.397%205.278%2012.835%208.637%2020.992%208.637Z'%20/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20d='M0%200h180v180H0z'%20/%3e%3c/clipPath%3e%3cclipPath%20id='b'%3e%3cpath%20d='M29.487%2029.964h121.035v119.954H29.487z'%20/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",import.meta.url).href,Claude:new URL("data:image/svg+xml,%3csvg%20width='248'%20height='248'%20viewBox='0%200%20248%20248'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M52.4285%20162.873L98.7844%20136.879L99.5485%20134.602L98.7844%20133.334H96.4921L88.7237%20132.862L62.2346%20132.153L39.3113%20131.207L17.0249%20130.026L11.4214%20128.844L6.2%20121.873L6.7094%20118.447L11.4214%20115.257L18.171%20115.847L33.0711%20116.911L55.485%20118.447L71.6586%20119.392L95.728%20121.873H99.5485L100.058%20120.337L98.7844%20119.392L97.7656%20118.447L74.5877%20102.732L49.4995%2086.1905L36.3823%2076.62L29.3779%2071.7757L25.8121%2067.2858L24.2839%2057.3608L30.6515%2050.2716L39.3113%2050.8623L41.4763%2051.4531L50.2636%2058.1879L68.9842%2072.7209L93.4357%2090.6804L97.0015%2093.6343L98.4374%2092.6652L98.6571%2091.9801L97.0015%2089.2625L83.757%2065.2772L69.621%2040.8192L63.2534%2030.6579L61.5978%2024.632C60.9565%2022.1032%2060.579%2020.0111%2060.579%2017.4246L67.8381%207.49965L71.9133%206.19995L81.7193%207.49965L85.7946%2011.0443L91.9074%2024.9865L101.714%2046.8451L116.996%2076.62L121.453%2085.4816L123.873%2093.6343L124.764%2096.1155H126.292V94.6976L127.566%2077.9197L129.858%2057.3608L132.15%2030.8942L132.915%2023.4505L136.608%2014.4708L143.994%209.62643L149.725%2012.344L154.437%2019.0788L153.8%2023.4505L150.998%2041.6463L145.522%2070.1215L141.957%2089.2625H143.994L146.414%2086.7813L156.093%2074.0206L172.266%2053.698L179.398%2045.6635L187.803%2036.802L193.152%2032.5484H203.34L210.726%2043.6549L207.415%2055.1159L196.972%2068.3492L188.312%2079.5739L175.896%2096.2095L168.191%20109.585L168.882%20110.689L170.738%20110.53L198.755%20104.504L213.91%20101.787L231.994%2098.7149L240.144%20102.496L241.036%20106.395L237.852%20114.311L218.495%20119.037L195.826%20123.645L162.07%20131.592L161.696%20131.893L162.137%20132.547L177.36%20133.925L183.855%20134.279H199.774L229.447%20136.524L237.215%20141.605L241.8%20147.867L241.036%20152.711L229.065%20158.737L213.019%20154.956L175.45%20145.977L162.587%20142.787H160.805V143.85L171.502%20154.366L191.242%20172.089L215.82%20195.011L217.094%20200.682L213.91%20205.172L210.599%20204.699L188.949%20188.394L180.544%20181.069L161.696%20165.118H160.422V166.772L164.752%20173.152L187.803%20207.771L188.949%20218.405L187.294%20221.832L181.308%20223.959L174.813%20222.777L161.187%20203.754L147.305%20182.486L136.098%20163.345L134.745%20164.2L128.075%20235.42L125.019%20239.082L117.887%20241.8L111.902%20237.31L108.718%20229.984L111.902%20215.452L115.722%20196.547L118.779%20181.541L121.58%20162.873L123.291%20156.636L123.14%20156.219L121.773%20156.449L107.699%20175.752L86.304%20204.699L69.3663%20222.777L65.291%20224.431L58.2867%20220.768L58.9235%20214.27L62.8713%20208.48L86.304%20178.705L100.44%20160.155L109.551%20149.507L109.462%20147.967L108.959%20147.924L46.6977%20188.512L35.6182%20189.93L30.7788%20185.44L31.4156%20178.115L33.7079%20175.752L52.4285%20162.873Z'%20fill='%23D97757'/%3e%3c/svg%3e",import.meta.url).href,OpenCode:new URL("data:image/svg+xml,%3csvg%20width='240'%20height='300'%20viewBox='0%200%20240%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1401_86274)'%3e%3cmask%20id='mask0_1401_86274'%20style='mask-type:luminance'%20maskUnits='userSpaceOnUse'%20x='0'%20y='0'%20width='240'%20height='300'%3e%3cpath%20d='M240%200H0V300H240V0Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1401_86274)'%3e%3cpath%20d='M180%20240H60V120H180V240Z'%20fill='%23D2D2D2'/%3e%3cpath%20d='M180%2060H60V240H180V60ZM240%20300H0V0H240V300Z'%20fill='%231F1F1F'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1401_86274'%3e%3crect%20width='240'%20height='300'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",import.meta.url).href},NS=[{value:"all",label:"All changes"},{value:"working",label:"Working tree"},{value:"staged",label:"Staged"}],MS=[];function AS({repoRoot:e,context:n,onCopy:r,onStatus:o,onClose:l}){var E,A;const[u,d]=q.useState(""),[h,f]=q.useState([]),[p,m]=q.useState(()=>localStorage.getItem("rex-review-agent")||"");q.useEffect(()=>{const w=new AbortController;return f([]),fetch("/api/targets",{signal:w.signal,headers:vu}).then(async L=>{const b=await L.json();if(!L.ok)throw new Error(b.error||"Could not find agent panes");return b}).then(L=>{f(L.blocks),m(b=>L.blocks.some(D=>D.id===b)?b:"")}).catch(L=>{w.signal.aborted||(m(""),o(String(L)))}),()=>w.abort()},[n,o]);const v=(E=h.find(w=>w.id===p))==null?void 0:E.agent,k=v==="Claude"?"Claude Code":v,x=v?DS[v]:void 0,S=()=>wS(e,n,u);async function C(){if(h.some(w=>w.id===p)){o("Sending…");try{const w=await fetch("/api/send",{method:"POST",headers:{"content-type":"application/json","x-review-token":Xr},body:JSON.stringify({blockId:p,message:S()})}),L=await w.json();if(!w.ok)throw new Error(L.error||"Delivery failed");localStorage.setItem("rex-review-agent",p),o("Inserted into selected pane. It was not submitted."),l()}catch(w){o(`Delivery failed: ${String(w)}`)}}}return T.jsxs("div",{className:`inline-composer ${oe(te.inlineComposer).className}`,role:"region","aria-label":"Ask Agent about selected lines",onKeyDown:w=>{w.key==="Escape"&&l()},children:[T.jsxs("div",{className:`composer-heading ${oe(te.composerHeading).className}`,children:[T.jsxs("div",{className:`composer-title ${oe(te.composerTitle).className}`,children:[T.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:T.jsx("path",{d:"m5 7 4 4-4 4m8 0h6"})}),T.jsx("strong",{children:"Ask Agent"}),T.jsxs("span",{className:`composer-line-badge ${oe(te.composerLineBadge).className}`,children:["L",n.start,n.end!==n.start?`–${n.end}`:""," · ",n.side]})]}),T.jsx("button",{type:"button",className:`composer-close ${oe(te.composerClose).className}`,"aria-label":"Close composer",onClick:l,children:T.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:T.jsx("path",{d:"m7 7 10 10M17 7 7 17"})})})]}),T.jsx("textarea",{"aria-label":"Question for agent",value:u,onChange:w=>d(w.target.value),placeholder:"Ask about these lines…",rows:3}),T.jsxs("div",{className:`composer-actions ${oe(te.composerActions).className}`,children:[h.length>0&&T.jsx("div",{className:`composer-destination ${oe(te.composerDestination).className}`,children:T.jsx(Xp,{ariaLabel:"Target Rex pane",title:((A=h.find(w=>w.id===p))==null?void 0:A.label)||"Choose an agent pane",placeholder:"Choose agent pane…",value:p,options:h.map(w=>({value:w.id,label:`${w.agent} · ${w.id.slice(-6)}`})),onChange:m,align:"start",variant:"inline",icon:T.jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[T.jsx("rect",{x:"3",y:"4",width:"18",height:"16",rx:"3"}),T.jsx("path",{d:"m7 9 3 3-3 3m6 0h4"})]})})}),T.jsx("button",{className:`ask-agent-button ${oe(te.askAgentButton).className}`,onClick:()=>r(S()),children:"Copy for agent"}),h.length>0&&T.jsxs("button",{className:`ask-agent-button ${oe(te.askAgentButton).className}`,disabled:!h.some(w=>w.id===p),onClick:()=>void C(),children:[x&&T.jsx("img",{className:`agent-icon ${oe(te.agentIcon).className}`,src:x,alt:"",width:"16",height:"16"}),k?`Ask ${k}`:"Ask Agent",T.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:T.jsx("path",{d:"M7 17 17 7M7 7h10v10"})})]})]})]})}const PS=q.memo(function({index:n,fileName:r,patch:o,isViewed:l,density:u,effectiveTheme:d,diffMetrics:h,diffStyle:f,selectedRange:p,selectedContext:m,repoRoot:v,onUnview:k,onSelectRange:x,onClearSelection:S,onCopy:C,onStatus:E}){const A=q.useMemo(()=>({unsafeCSS:`:host { --diffs-bg: ${d==="light"?"#ffffff":"#19191b"}; }`,theme:d==="light"?"pierre-light":"pierre-dark",themeType:d,diffStyle:"unified",overflow:"wrap",expandUnchanged:!1,collapsedContextThreshold:2,enableLineSelection:!0,onLineSelectionEnd:D=>x(D,o)}),[d,x,o]),w=q.useMemo(()=>p?[{side:p.endSide??p.side??"additions",lineNumber:p.end}]:MS,[p]),L=q.useCallback(()=>m?T.jsx(AS,{repoRoot:v,context:m,onCopy:C,onStatus:E,onClose:S}):null,[m,v,C,E,S]),b=q.useCallback(()=>T.jsx("button",{type:"button",className:`copy-filename ${oe(te.copyFilename).className}`,"aria-label":`Copy file path: ${r}`,title:"Copy file path",onClick:D=>{D.stopPropagation(),C(r)},children:T.jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[T.jsx("rect",{x:"8",y:"8",width:"12",height:"12",rx:"2"}),T.jsx("path",{d:"M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3"})]})}),[r,C]);return T.jsx("article",{id:"f"+n,"data-file":r,children:l?T.jsx("button",{className:`collapsed-diff ${oe(te.collapsedDiff).className}`,onClick:()=>k(r),children:"✓ Viewed · Show diff"}):T.jsx(yS,{patch:o,selectedLines:p,lineAnnotations:w,renderAnnotation:L,renderHeaderFilenameSuffix:b,style:f,options:A,metrics:h},u)})});function IS(){const[e,n]=q.useState("changes"),[r,o]=q.useState(null),[l,u]=q.useState(!1),d=q.useRef(null),[h,f]=q.useState(),[p,m]=q.useState(null),[v,k]=q.useState(),[x,S]=q.useState("all"),[C,E]=q.useState(""),[A,w]=q.useState(),[L,b]=q.useState(()=>new Set),[D,F]=q.useState([]),[N,z]=q.useState(),[G,V]=q.useState(0),[ue,K]=q.useState(""),[B,ie]=q.useState(""),[ye,ge]=q.useState("diff"),[ee,W]=q.useState(()=>localStorage.getItem("local-diff-density-preference")||"auto"),[re,ne]=q.useState(()=>matchMedia(Ph).matches),M=LS(ee,re),[H,se]=q.useState(!0),[fe,ke]=q.useState(()=>localStorage.getItem("rex-review-sidebar-side")==="right"?"right":"left"),[Se,Ee]=q.useState(!1),[we,Le]=q.useState(()=>{const U=localStorage.getItem("rex-review-theme");return U==="system"||U==="light"||U==="dark"?U:"dark"}),[$e,en]=q.useState(()=>matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"),Je=we==="system"?$e:we,et=q.useRef(null),Nt=q.useRef(null),Ht=q.useRef(null);q.useLayoutEffect(()=>{var ct;const U=(ct=Nt.current)==null?void 0:ct.querySelector(".diff-content"),he=Ht.current;if(Ht.current=null,!U||he===null)return;const xe=he-U.getBoundingClientRect().left,He=U.animate([{transform:`translateX(${xe}px)`},{transform:"translateX(0)"}],{duration:200,easing:getComputedStyle(U).getPropertyValue("--ease-out").trim()});return()=>He.cancel()},[H]),q.useEffect(()=>{document.body.dataset.density=M},[M]),q.useEffect(()=>{localStorage.setItem("local-diff-density-preference",ee)},[ee]),q.useEffect(()=>{const U=matchMedia(Ph),he=()=>ne(U.matches);return he(),U.addEventListener("change",he),()=>U.removeEventListener("change",he)},[]),q.useEffect(()=>{localStorage.setItem("rex-review-sidebar-side",fe)},[fe]),q.useEffect(()=>{const U=matchMedia("(prefers-color-scheme: light)"),he=()=>en(U.matches?"light":"dark");return U.addEventListener("change",he),()=>U.removeEventListener("change",he)},[]),q.useLayoutEffect(()=>{document.documentElement.dataset.theme=Je,document.documentElement.style.colorScheme=Je,localStorage.setItem("rex-review-theme",we)},[Je,we]),q.useEffect(()=>{const U=document.documentElement,he=()=>{U.dataset.focusSource="pointer"},xe=He=>{He.key==="Escape"?U.dataset.focusSource="escape":He.key==="Tab"&&(U.dataset.focusSource="keyboard")};return window.addEventListener("pointerdown",he,!0),window.addEventListener("keydown",xe,!0),()=>{window.removeEventListener("pointerdown",he,!0),window.removeEventListener("keydown",xe,!0)}},[]),q.useEffect(()=>{const U=et.current;Se&&U&&!U.open?U.showModal():!Se&&(U!=null&&U.open)&&U.close()},[Se]);const De=q.useCallback(()=>fetch("/api/diff?mode="+x,{headers:vu}).then(U=>U.json()).then(k),[x]);q.useEffect(()=>{De(),fetch("/api/reviews",{headers:vu}).then(he=>he.json()).then(F);const U=new EventSource("/events?token="+encodeURIComponent(Xr));return U.onmessage=()=>{De(),V(he=>he+1)},()=>U.close()},[De]);const{files:Ge,fileNames:Pe,totals:at}=q.useMemo(()=>{const U=(v==null?void 0:v.patch)||"",he=U.split(/(?=^diff --git )/m).filter(St=>St.startsWith("diff --git ")),xe=he.map(St=>Gp(St));let He=0,ct=0;for(const St of Ip(U).flatMap(tn=>tn.files))for(const tn of St.hunks)He+=tn.additionLines,ct+=tn.deletionLines;return{files:he,fileNames:xe,totals:{added:He,deleted:ct}}},[v]),Ue=q.useMemo(()=>{const U=C.trim().toLowerCase();return Pe.map((he,xe)=>({index:xe,name:he})).filter(he=>!U||he.name.toLowerCase().includes(U))},[Pe,C]);function Be(){u(!0),n("explorer")}function Wt(U){const he=Pe.indexOf(U);ge("diff"),he>=0?(n("changes"),E(""),w(U),f(U)):(Be(),f(U))}q.useLayoutEffect(()=>{var he;if(!h||e!=="changes")return;const U=Pe.indexOf(h);(he=document.getElementById("f"+U))==null||he.scrollIntoView({block:"start"}),f(void 0)},[h,e,Pe]);const Qe=q.useCallback(()=>f(void 0),[]),Yr=[{label:"Go to File",shortcut:`${Xa} / /`,run:()=>m("files")},{label:"View: Show Changes",run:()=>{n("changes"),ge("diff")}},{label:"View: Show Explorer",run:()=>{Be(),se(!0),ge("files")}},{label:"View: Toggle Sidebar",shortcut:"[",run:()=>se(U=>!U)},{label:"Settings: Open",run:()=>Ee(!0)},...["dark","light","system"].map(U=>({label:`Theme: ${U[0].toUpperCase()}${U.slice(1)}`,run:()=>Le(U)})),{label:"Layout: Move Sidebar Left",run:()=>ke("left")},{label:"Layout: Move Sidebar Right",run:()=>ke("right")},{label:"Density: Comfortable",run:()=>W("comfortable")},{label:"Density: Compact",run:()=>W("compact")},{label:"Density: Automatic",run:()=>W("auto")},{label:"Changes: All",run:()=>S("all")},{label:"Changes: Working Tree",run:()=>S("working")},{label:"Changes: Staged",run:()=>S("staged")},...e==="explorer"?[{label:"Tabs: Next File",shortcut:"Ctrl+Tab",run:()=>{var U;return(U=d.current)==null?void 0:U.cycleTab(1)}},{label:"Tabs: Previous File",shortcut:"Ctrl+Shift+Tab",run:()=>{var U;return(U=d.current)==null?void 0:U.cycleTab(-1)}},{label:"Tabs: Close File",run:()=>{var U;return(U=d.current)==null?void 0:U.closeTab()}}]:[]];q.useEffect(()=>{function U(xe){for(const He of xe.composedPath()){if(!(He instanceof HTMLElement))continue;const ct=He.tagName;if(ct==="INPUT"||ct==="TEXTAREA"||ct==="SELECT"||He.isContentEditable||He.getAttribute("role")==="listbox")return!0}return!1}function he(xe){var ct;if(xe.isComposing||xe.defaultPrevented||xe.altKey||document.querySelector("dialog[open]:not(.quick-switcher)"))return;const He=xe.key.toLowerCase();if((xe.metaKey||xe.ctrlKey)&&(He==="p"||He==="k")){xe.preventDefault(),xe.stopPropagation();const St=He==="k"||xe.shiftKey?"commands":"files";m(tn=>tn===St?null:St);return}if(!p&&e==="explorer"&&xe.ctrlKey&&xe.key==="Tab"){xe.preventDefault(),xe.stopPropagation(),(ct=d.current)==null||ct.cycleTab(xe.shiftKey?-1:1);return}!p&&!xe.metaKey&&!xe.ctrlKey&&!U(xe)&&(xe.key==="/"||xe.key==="t"?(xe.preventDefault(),m("files")):xe.key==="?"||xe.key===">"?(xe.preventDefault(),m("commands")):xe.key==="["&&(xe.preventDefault(),se(St=>!St)))}return window.addEventListener("keydown",he,!0),()=>window.removeEventListener("keydown",he,!0)},[p,e]);const Zr=q.useCallback(async U=>{try{await navigator.clipboard.writeText(U),ie(""),K("Copied to clipboard.")}catch{ie(U),K("Clipboard unavailable. Select and copy the context below.")}},[]),Jr=q.useCallback((U,he)=>{if(!U){z(void 0);return}z({patch:he,range:U,context:SS(he,U)})},[]),tr=q.useCallback(()=>z(void 0),[]),xi=q.useCallback(U=>{b(he=>{const xe=new Set(he);return xe.delete(U),xe})},[]),ki=q.useMemo(()=>({...ku,hunkLineCount:25,lineHeight:M==="comfortable"?22:19}),[M]),Zn=q.useMemo(()=>({"--diffs-font-size":M==="comfortable"?"14px":"12px","--diffs-line-height":`${ki.lineHeight}px`}),[M,ki.lineHeight]),Jn=q.useCallback(()=>ge("diff"),[]);return T.jsxs(T.Fragment,{children:[T.jsxs("header",{className:`app-header ${oe(te.appHeader).className} ${e==="explorer"?"explorer-mode":""}`,children:[T.jsx("nav",{className:`mobile-tabs ${oe(te.mobileTabs).className}`,"aria-label":"View",children:T.jsx("button",{type:"button","aria-label":ye==="files"?"Show diff":"Show files",title:ye==="files"?"Show diff":"Show files","aria-pressed":ye==="files",onClick:()=>ge(U=>U==="files"?"diff":"files"),children:T.jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[T.jsx("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),T.jsx("path",{d:"M9 4v16"})]})})}),T.jsxs("div",{className:`app-identity ${oe(te.appIdentity).className}`,children:[T.jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[T.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"5"}),T.jsx("path",{d:"M8 8h5",stroke:"#ff6b7a"}),T.jsx("path",{d:"M8 12h8"}),T.jsx("path",{d:"M11 16h5",stroke:"#3dd68c"})]}),T.jsx("b",{children:"Local Diff"})]}),T.jsxs("button",{type:"button",className:`header-search ${oe(te.headerSearchButton).className}`,"aria-label":"Go to file",title:`Go to file (${Xa} or /)`,onClick:()=>m("files"),children:[T.jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[T.jsx("circle",{cx:"10.5",cy:"10.5",r:"6.5"}),T.jsx("path",{d:"m16 16 4.5 4.5"})]}),T.jsx("span",{children:"Go to file"}),T.jsx("kbd",{className:oe(te.headerSearchShortcut).className,children:Xa})]}),T.jsx(Xp,{className:"scope-select-trigger",ariaLabel:"Change scope",value:x,options:NS,onChange:S,align:"end"}),T.jsx("button",{type:"button",className:`header-icon-button ${oe(te.headerIconButton).className}`,"aria-label":"Command palette",title:`Command palette (${TS} or ?)`,onClick:()=>m("commands"),children:T.jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[T.jsx("rect",{x:"3",y:"4",width:"18",height:"16",rx:"3"}),T.jsx("path",{d:"m7.5 9.5 3 2.5-3 2.5m5 0h4"})]})})]}),T.jsxs("main",{ref:Nt,className:`mobile-${ye} sidebar-${fe} ${H?"":"sidebar-collapsed"}`,children:[T.jsxs("aside",{children:[T.jsxs("div",{className:`sidebar-heading ${oe(te.sidebarHeading).className}`,children:[T.jsx("button",{className:`sidebar-toggle ${oe(te.sidebarToggle).className}`,"aria-label":H?"Hide files":"Show files",title:H?"Hide files":"Show files","aria-expanded":H,onClick:U=>{var He;const he=U.detail>0&&!matchMedia("(prefers-reduced-motion: reduce)").matches,xe=Nt.current;xe&&(xe.dataset.sidebarMotion=String(he)),Ht.current=he?((He=xe==null?void 0:xe.querySelector(".diff-content"))==null?void 0:He.getBoundingClientRect().left)??null:null,se(!H)},children:T.jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[T.jsx("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),T.jsx("path",{d:"M9 4v16"})]})}),T.jsxs("nav",{className:`sidebar-modes ${oe(te.sidebarModes).className}`,"aria-label":"Sidebar view",children:[T.jsx("button",{className:`sidebar-mode-button ${oe(te.sidebarModeButton).className}`,title:"Changes","aria-label":"Changes","aria-pressed":e==="changes",onClick:()=>n("changes"),children:T.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:T.jsx("path",{d:"M8 3 4 7l4 4M4 7h12M16 21l4-4-4-4m4 4H8"})})}),T.jsx("button",{className:`sidebar-mode-button ${oe(te.sidebarModeButton).className}`,title:"Explorer","aria-label":"Explorer","aria-pressed":e==="explorer",onClick:()=>{u(!0),n("explorer")},children:T.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:T.jsx("path",{d:"M8 3h10a2 2 0 0 1 2 2v12M4 7h8l4 4v10H4zM12 7v4h4"})})})]}),T.jsxs("h3",{hidden:e!=="changes",children:[T.jsx("span",{className:`sr-only ${oe(te.srOnly).className}`,children:"Changes"})," ",T.jsx("span",{className:`file-count ${oe(te.fileCount).className}`,children:Ge.length})]}),e==="changes"&&(at.added||at.deleted)>0&&T.jsxs("small",{className:`change-totals ${oe(te.changeTotals).className}`,children:[T.jsxs("span",{children:["+",at.added]})," ",T.jsxs("span",{children:["−",at.deleted]})]})]}),T.jsxs("div",{className:`changes-sidebar ${oe(te.changesSidebar).className}`,hidden:e!=="changes",children:[T.jsx("input",{type:"search","aria-label":"Search files",placeholder:"Search files",value:C,onChange:U=>E(U.target.value)}),Ue.map(({index:U,name:he})=>T.jsxs("div",{className:`file-item ${oe(te.fileItem).className}`,children:[T.jsx("a",{href:"#f"+U,onClick:()=>{w(he),ge("diff")},"aria-current":(A||Pe[0])===he?"location":void 0,children:he}),T.jsx("button",{className:`viewed-toggle ${oe(te.viewedToggle).className}`,"aria-label":L.has(he)?"Mark as unviewed":"Mark as viewed","aria-pressed":L.has(he),onClick:()=>b(xe=>{const He=new Set(xe);return He.has(he)?He.delete(he):He.add(he),He}),children:T.jsxs("svg",{viewBox:"0 0 18 18","aria-hidden":"true",children:[T.jsx("rect",{x:"1",y:"1",width:"16",height:"16",rx:"3"}),T.jsx("path",{d:"m4.5 9 3 3 6-6"})]})})]},U)),C&&Ue.length===0&&T.jsx("p",{children:"No matching files."})]}),T.jsx("div",{className:`explorer-host ${oe(te.explorerHost).className}`,ref:o,hidden:e!=="explorer"}),T.jsxs("div",{className:`sidebar-footer ${oe(te.sidebarFooter).className}`,children:[T.jsx("span",{className:`connection-dot ${oe(te.connectionDot).className}`,"aria-hidden":"true"}),T.jsx("span",{children:"Local"}),T.jsx("span",{className:`footer-branch ${oe(te.footerBranch).className}`,title:v==null?void 0:v.branch,children:v==null?void 0:v.branch}),T.jsx("div",{className:`sidebar-settings ${oe(te.sidebarSettings).className}`,children:T.jsx("button",{className:`sidebar-settings-trigger ${oe(te.sidebarSettingsTrigger).className}`,"aria-label":"Sidebar settings",title:"Sidebar settings","aria-expanded":Se,onClick:()=>Ee(U=>!U),children:T.jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[T.jsx("circle",{cx:"12",cy:"12",r:"3"}),T.jsx("path",{d:"M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"})]})})})]})]}),T.jsx(ES,{}),T.jsx("section",{hidden:e!=="changes",className:`diff-content ${oe(te.diffContent).className}`,"aria-label":"Diff viewer",onScrollCapture:U=>{if(!(U.target instanceof HTMLElement)||!U.target.classList.contains("code-scroll"))return;const he=kS(U.currentTarget.querySelectorAll("article[data-file]"),U.currentTarget.getBoundingClientRect().top+40);he&&w(he.dataset.file)},children:T.jsxs(lS,{className:`code-scroll ${oe(te.codeScroll).className}`,contentClassName:oe(te.codeScrollContent).className,children:[T.jsxs("details",{className:`review-notes ${oe(te.reviewNotes).className}`,children:[T.jsxs("summary",{children:["Review notes (",D.length,")"]}),D.map(U=>T.jsxs("p",{children:[U.file," ",U.range,": ",U.body]},U.id))]}),Ge.length?Ge.map((U,he)=>T.jsx(PS,{index:he,fileName:Pe[he],patch:U,isViewed:L.has(Pe[he]),density:M,effectiveTheme:Je,diffMetrics:ki,diffStyle:Zn,selectedRange:(N==null?void 0:N.patch)===U?N.range:null,selectedContext:(N==null?void 0:N.patch)===U?N.context:void 0,repoRoot:(v==null?void 0:v.root)||"",onUnview:xi,onSelectRange:Jr,onClearSelection:tr,onCopy:Zr,onStatus:K},Pe[he]||he)):T.jsxs("div",{className:`empty-state ${oe(te.emptyState).className}`,children:[T.jsx("div",{className:`empty-icon ${oe(te.emptyIcon).className}`,children:T.jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[T.jsx("path",{d:"m8 12 3 3 5-6"}),T.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"5"})]})}),T.jsx("h1",{children:v?"All caught up":"Loading changes…"}),T.jsx("p",{children:v?x==="staged"?"No staged changes to review.":x==="working"?"No working tree changes to review.":"Your working tree is clean.":"Reading your local repository."}),v&&T.jsxs("small",{children:["Edit a file",x==="staged"?" and stage it":""," to see changes here."]})]})]})}),l&&r&&T.jsx(q.Suspense,{fallback:null,children:T.jsx(RS,{ref:d,sidebar:r,token:Xr,active:e==="explorer",theme:Je,repoRevision:G,pendingFile:e==="explorer"?h:void 0,onPendingFileHandled:Qe,onSelect:Jn})})]}),p&&T.jsx(bS,{mode:p,token:Xr,changedFiles:Pe,commands:Yr,onFile:Wt,onClose:()=>m(null)},p),T.jsxs("dialog",{ref:et,className:`settings-dialog ${oe(te.settingsDialog).className}`,"aria-labelledby":"settings-title",onClose:()=>Ee(!1),onClick:U=>{U.target===U.currentTarget&&Ee(!1)},children:[T.jsxs("header",{className:`settings-dialog-header ${oe(te.settingsDialogHeader).className}`,children:[T.jsxs("div",{children:[T.jsx("h2",{id:"settings-title",children:"Settings"}),T.jsx("p",{children:"Review workspace preferences"})]}),T.jsx("button",{className:`settings-close ${oe(te.settingsClose).className}`,"aria-label":"Close settings",onClick:()=>Ee(!1),children:T.jsx("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:T.jsx("path",{d:"m6 6 12 12M18 6 6 18"})})})]}),T.jsxs("div",{className:`settings-dialog-body ${oe(te.settingsDialogBody).className}`,children:[T.jsx("nav",{className:`settings-nav ${oe(te.settingsNav).className}`,"aria-label":"Settings sections",children:T.jsxs("span",{className:`settings-nav-item selected ${oe(te.settingsNavItem).className}`,"aria-current":"page",children:[T.jsxs("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[T.jsx("circle",{cx:"12",cy:"12",r:"4"}),T.jsx("path",{d:"M12 2v2m0 16v2M4.93 4.93l1.42 1.42m11.3 11.3 1.42 1.42M2 12h2m16 0h2M4.93 19.07l1.42-1.42m11.3-11.3 1.42-1.42"})]}),"Appearance"]})}),T.jsxs("section",{className:`settings-content ${oe(te.settingsContent).className}`,"aria-label":"Appearance settings",children:[T.jsxs("section",{className:"appearance-setting","aria-labelledby":"settings-sidebar-title",children:[T.jsx("h4",{id:"settings-sidebar-title",children:"Sidebar"}),T.jsx("p",{children:"Choose where the review sidebar appears."}),T.jsx("div",{className:`layout-choices ${oe(te.layoutChoices).className}`,role:"radiogroup","aria-label":"Sidebar position",children:["left","right"].map(U=>T.jsxs("label",{className:`layout-choice ${oe(te.layoutChoice).className}${fe===U?" selected":""}`,children:[T.jsx("input",{type:"radio",name:"sidebar-position",value:U,checked:fe===U,onChange:()=>ke(U)}),T.jsxs("span",{className:`layout-choice-heading ${oe(te.layoutChoiceHeading).className}`,children:[T.jsxs("span",{className:`layout-choice-label ${oe(te.layoutChoiceLabel).className}`,children:["Sidebar on the ",U]}),T.jsx("span",{className:`layout-choice-radio ${oe(te.layoutChoiceRadio).className}`,"aria-hidden":"true",children:fe===U&&T.jsx("svg",{viewBox:"0 0 20 20",children:T.jsx("path",{d:"m4 10 4 4 8-8"})})})]}),T.jsxs("span",{className:`layout-preview layout-preview-${U} ${oe(te.layoutPreview,U==="right"&&te.layoutPreviewRight).className}`,"aria-hidden":"true",children:[T.jsxs("span",{className:`layout-preview-chrome ${oe(te.layoutPreviewChrome).className}`,children:[T.jsx("i",{}),T.jsx("i",{}),T.jsx("i",{})]}),T.jsxs("span",{className:`layout-preview-sidebar ${oe(te.layoutPreviewSidebar).className}`,children:[T.jsx("i",{}),T.jsx("i",{}),T.jsx("i",{}),T.jsx("i",{})]}),T.jsxs("span",{className:`layout-preview-main ${oe(te.layoutPreviewMain).className}`,children:[T.jsx("i",{}),T.jsx("i",{}),T.jsx("i",{}),T.jsx("i",{}),T.jsx("i",{}),T.jsx("i",{})]})]})]},U))})]}),T.jsxs("section",{className:"appearance-setting","aria-labelledby":"settings-theme-title",children:[T.jsx("h4",{id:"settings-theme-title",children:"Theme"}),T.jsx("p",{children:"Choose the color theme for the review workspace."}),T.jsx("div",{className:`theme-choices ${oe(te.themeChoices).className}`,role:"radiogroup","aria-label":"Color theme",children:["system","light","dark"].map(U=>T.jsxs("label",{className:`theme-choice ${oe(te.themeChoice).className}${we===U?" selected":""}`,children:[T.jsx("input",{type:"radio",name:"color-theme",value:U,checked:we===U,onChange:()=>Le(U)}),T.jsxs("span",{className:`theme-swatch theme-swatch-${U} ${oe(te.themeSwatch,U==="dark"&&te.themeSwatchDark,U==="light"&&te.themeSwatchLight,U==="system"&&te.themeSwatchSystem).className}`,"aria-hidden":"true",children:[T.jsx("i",{}),T.jsx("i",{})]}),T.jsxs("span",{className:`layout-choice-heading ${oe(te.layoutChoiceHeading).className}`,children:[T.jsx("span",{className:`theme-choice-label ${oe(te.themeChoiceLabel).className}`,children:U[0].toUpperCase()+U.slice(1)}),T.jsx("span",{className:`layout-choice-radio ${oe(te.layoutChoiceRadio).className}`,"aria-hidden":"true",children:we===U&&T.jsx("svg",{viewBox:"0 0 20 20",children:T.jsx("path",{d:"m4 10 4 4 8-8"})})})]})]},U))})]}),T.jsxs("section",{className:"appearance-setting","aria-labelledby":"settings-density-title",children:[T.jsx("h4",{id:"settings-density-title",children:"Display density"}),T.jsx("p",{children:"Automatic uses compact spacing in smaller panes and comfortable spacing in larger panes."}),T.jsx("div",{className:oe(te.densityChoices).className,role:"radiogroup","aria-label":"Display density",children:["auto","comfortable","compact"].map(U=>T.jsxs("label",{className:`density-choice ${oe(te.densityChoice).className}${ee===U?" selected":""}`,children:[T.jsx("input",{type:"radio",name:"display-density",value:U,checked:ee===U,onChange:()=>W(U)}),T.jsx("span",{className:oe(te.themeChoiceLabel).className,children:U==="auto"?"Automatic":U[0].toUpperCase()+U.slice(1)}),T.jsx("span",{className:`layout-choice-radio ${oe(te.layoutChoiceRadio).className}`,"aria-hidden":"true",children:ee===U&&T.jsx("svg",{viewBox:"0 0 20 20",children:T.jsx("path",{d:"m4 10 4 4 8-8"})})})]},U))})]})]})]})]}),ue&&T.jsxs("div",{className:`status ${oe(te.status).className}`,role:"status",children:[ue,B&&T.jsx("textarea",{"aria-label":"Context to copy",readOnly:!0,value:B,rows:6,onFocus:U=>U.currentTarget.select()})]})]})}class zS extends e0.Component{constructor(){super(...arguments);O(this,"state",{})}static getDerivedStateFromError(r){return{error:r}}render(){return this.state.error?T.jsxs("pre",{className:`app-error ${oe(te.appError).className}`,children:["local-diff could not render this diff: ",this.state.error.message]}):this.props.children}}o0.createRoot(document.getElementById("root")).render(T.jsx(zS,{children:T.jsx(IS,{})}));export{lx as $,D0 as A,Gf as B,xu as C,Cn as D,Zt as E,Iy as F,a0 as G,Ns as H,Z0 as I,Oy as J,Re as K,zy as L,Vh as M,Uy as N,rp as O,_y as P,ds as Q,jS as R,rx as S,Uh as T,Ry as U,vy as V,nh as W,ix as X,uh as Y,nx as Z,Ji as _,R0 as a,wu as a0,x0 as a1,Kh as a2,qy as a3,Gy as a4,Xy as a5,Yy as a6,au as a7,ox as a8,Zy as a9,dS as aA,Tf as aB,Hh as aC,eS as aD,Jk as aE,oe as aF,lS as aG,te as aH,Xp as aI,Zi as aJ,Ru as aK,hp as aL,J1 as aM,Q1 as aN,wv as aO,Cv as aP,Zf as aQ,ev as aR,W1 as aS,Jy as aa,$1 as ab,Fa as ac,dh as ad,jh as ae,Fh as af,_h as ag,Bf as ah,Vy as ai,Wy as aj,ax as ak,ku as al,Ia as am,eu as an,np as ao,Za as ap,Br as aq,Yh as ar,V1 as as,U1 as at,aS as au,q as av,F1 as aw,l0 as ax,us as ay,uS as az,T0 as b,FS as c,OS as d,U0 as e,_0 as f,Jt as g,Kn as h,N0 as i,T as j,pi as k,bu as l,Qn as m,Q0 as n,Y0 as o,qf as p,Xi as q,n1 as r,Py as s,Df as t,M0 as u,Lp as v,lu as w,Ya as x,Pf as y,op as z};
|