@epic-web/workshop-app 6.90.0 → 6.90.1
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/build/client/assets/_-BT9436ea.js +2 -0
- package/build/client/assets/_baseUniq-C0JF2TKV.js +2 -0
- package/build/client/assets/_exerciseNumber-CSCtk7Al.js +2 -0
- package/build/client/assets/_exerciseNumber_._stepNumber.index-DbPI-mzv.js +2 -0
- package/build/client/assets/_exerciseNumber_.finished-CEFgXR9z.js +2 -0
- package/build/client/assets/_extra-DwJwASmZ.js +2 -0
- package/build/client/assets/_layout-B0ti7VTY.js +2 -0
- package/build/client/assets/_layout-BuMaH-mO.js +2 -0
- package/build/client/assets/_layout-CTeaJDn4.js +2 -0
- package/build/client/assets/_layout-CvcQJtsj.js +2 -0
- package/build/client/assets/_layout-qrLKgtBY.js +2 -0
- package/build/client/assets/abap-EXxxpvIE.js +2 -0
- package/build/client/assets/account-DVXE2uNP.js +2 -0
- package/build/client/assets/actionscript-3-BaDKk-8k.js +2 -0
- package/build/client/assets/ada-CJqs4G11.js +2 -0
- package/build/client/assets/andromeeda-CEHVZPcO.js +2 -0
- package/build/client/assets/angular-html-C6Ux9EIc.js +2 -0
- package/build/client/assets/angular-ts-C-NhS_d_.js +2 -0
- package/build/client/assets/apache-TQTFq0Tg.js +2 -0
- package/build/client/assets/apex-Oe8gyaym.js +2 -0
- package/build/client/assets/apl-CG-DclC2.js +2 -0
- package/build/client/assets/app-TJ4tJehJ.js +2 -0
- package/build/client/assets/applescript-VhwTu1oZ.js +2 -0
- package/build/client/assets/ara-BlUDOa0L.js +2 -0
- package/build/client/assets/arc-DGPiDAPj.js +2 -0
- package/build/client/assets/architectureDiagram-Q4EWVU46-AgVimCIx.js +37 -0
- package/build/client/assets/asciidoc-Dmi0n_4U.js +2 -0
- package/build/client/assets/asm-zaQMESCn.js +2 -0
- package/build/client/assets/astro-BTXvM4uj.js +2 -0
- package/build/client/assets/aurora-x-CvHquPfR.js +2 -0
- package/build/client/assets/awk-BUEfU25G.js +2 -0
- package/build/client/assets/ayu-dark-B3HUaFwW.js +2 -0
- package/build/client/assets/ayu-light-BC_UffEp.js +2 -0
- package/build/client/assets/ayu-mirage-BzmjAcMi.js +2 -0
- package/build/client/assets/ballerina-9B4rg9kq.js +2 -0
- package/build/client/assets/bat-BcEA3y3u.js +2 -0
- package/build/client/assets/beancount-BrsrWbSJ.js +2 -0
- package/build/client/assets/berry-C8K33bXP.js +2 -0
- package/build/client/assets/bibtex-tA4EC8TQ.js +2 -0
- package/build/client/assets/bicep-DncYmo6s.js +2 -0
- package/build/client/assets/blade-DFbufhk4.js +2 -0
- package/build/client/assets/blockDiagram-DXYQGD6D-YxMvO674.js +133 -0
- package/build/client/assets/bsl-CjV1FPJ0.js +2 -0
- package/build/client/assets/button-BYp3RcB5.js +2 -0
- package/build/client/assets/c-CR9dcYwh.js +2 -0
- package/build/client/assets/c3-6vFW2y6i.js +2 -0
- package/build/client/assets/c4Diagram-AHTNJAMY-Dyy15ND7.js +11 -0
- package/build/client/assets/cache-BLX9Oit4.js +2 -0
- package/build/client/assets/cadence-DsopAVN6.js +2 -0
- package/build/client/assets/cairo-w2RQlUSB.js +2 -0
- package/build/client/assets/catppuccin-frappe-flnsXq-5.js +2 -0
- package/build/client/assets/catppuccin-latte-pLPvm0hM.js +2 -0
- package/build/client/assets/catppuccin-macchiato-BNBQOAN7.js +2 -0
- package/build/client/assets/catppuccin-mocha-Dln_2DHd.js +2 -0
- package/build/client/assets/channel-5yB1nhXy.js +2 -0
- package/build/client/assets/chunk-4BX2VUAB-D2OCPNfC.js +2 -0
- package/build/client/assets/chunk-4TB4RGXK-BA6KJGVe.js +207 -0
- package/build/client/assets/chunk-55IACEB6-DbNEoblE.js +2 -0
- package/build/client/assets/chunk-EDXVE4YY-pxMESK6x.js +2 -0
- package/build/client/assets/chunk-EVOBXE3Y-Bmgys8-c.js +27 -0
- package/build/client/assets/chunk-FMBD7UC4-Dkp0I7NB.js +16 -0
- package/build/client/assets/chunk-OYMX7WX6-9o94Sgjd.js +232 -0
- package/build/client/assets/chunk-QZHKN3VN-CtaFri1-.js +2 -0
- package/build/client/assets/chunk-YQSHRJWW-_QGrg8P_.js +6 -0
- package/build/client/assets/chunk-YZCP3GAM-BIXpV5VM.js +2 -0
- package/build/client/assets/clarity-DZouh5ru.js +2 -0
- package/build/client/assets/classDiagram-6PBFFD2Q-D4CPON8Y.js +2 -0
- package/build/client/assets/classDiagram-v2-HSJHXN6E-BjA_s6QC.js +2 -0
- package/build/client/assets/client-only-De_xqwN3.js +2 -0
- package/build/client/assets/clojure-hTBbjUP8.js +2 -0
- package/build/client/assets/clone-CbObAqrb.js +2 -0
- package/build/client/assets/cmake-y9OTSMRa.js +2 -0
- package/build/client/assets/cobol-D9oJZwg5.js +2 -0
- package/build/client/assets/codeowners-DbN2EGnS.js +2 -0
- package/build/client/assets/codeql-2hLdHeoV.js +2 -0
- package/build/client/assets/coerce-DZtAt68-.js +2 -0
- package/build/client/assets/coffee-Bi23Wg2E.js +2 -0
- package/build/client/assets/command-palette-BOjHR2-B.js +2 -0
- package/build/client/assets/common-lisp-6LT5ls0T.js +2 -0
- package/build/client/assets/coq-B5pRRKvC.js +2 -0
- package/build/client/assets/cose-bilkent-S5V4N54A-yQMc_R7i.js +2 -0
- package/build/client/assets/cpp-DEkNFtb6.js +2 -0
- package/build/client/assets/crystal-BPP3m--Z.js +2 -0
- package/build/client/assets/csharp-DM4jiEbu.js +2 -0
- package/build/client/assets/css-VHoSHnpz.js +2 -0
- package/build/client/assets/csv-BVlxfIcq.js +2 -0
- package/build/client/assets/cue-DwhFU4ey.js +2 -0
- package/build/client/assets/cypher-Cn4s0ny-.js +2 -0
- package/build/client/assets/cytoscape.esm-ulHEOK0w.js +322 -0
- package/build/client/assets/d-yWGkmTv4.js +2 -0
- package/build/client/assets/dagre-KV5264BT-DkJnHMMa.js +5 -0
- package/build/client/assets/dark-plus-DdFFWEQ2.js +2 -0
- package/build/client/assets/dart-DEWA59CY.js +2 -0
- package/build/client/assets/dax-Dfb3_ApW.js +2 -0
- package/build/client/assets/db-BfQcQqtF.js +2 -0
- package/build/client/assets/defaultLocale-CpVwrUiO.js +2 -0
- package/build/client/assets/desktop-BbYe_HZb.js +2 -0
- package/build/client/assets/diagram-5BDNPKRD-DZoPPAJL.js +11 -0
- package/build/client/assets/diagram-G4DWMVQ6-CihA5c-3.js +25 -0
- package/build/client/assets/diagram-MMDJMWI5-CHnTiHeR.js +44 -0
- package/build/client/assets/diagram-TYMM5635-CAy-FBov.js +25 -0
- package/build/client/assets/dialog-7CAwytT4.js +6 -0
- package/build/client/assets/diff-CWgxwtRl.js +2 -0
- package/build/client/assets/diff-Cxjt3lxZ.js +1893 -0
- package/build/client/assets/diff-fQtt-wod.js +2 -0
- package/build/client/assets/discord-D1A57oEc.js +2 -0
- package/build/client/assets/discord-dl9pmy87.js +2 -0
- package/build/client/assets/docker-BjWA-oyG.js +2 -0
- package/build/client/assets/dotenv-BGA3CNbF.js +2 -0
- package/build/client/assets/dracula-CMIcUMAM.js +2 -0
- package/build/client/assets/dracula-soft-DN5ubx4R.js +2 -0
- package/build/client/assets/dream-maker-DFIDcnj5.js +2 -0
- package/build/client/assets/edge-D9GV7Ei_.js +2 -0
- package/build/client/assets/elixir-C3PW904A.js +2 -0
- package/build/client/assets/elm-D_LuGVc4.js +2 -0
- package/build/client/assets/emacs-lisp-CW9xCf2z.js +2 -0
- package/build/client/assets/entry.client-tPVSc3DJ.js +11 -0
- package/build/client/assets/epic-video-CBu8Wl-E.js +2 -0
- package/build/client/assets/epic-video-CaAYhEZJ.js +3397 -0
- package/build/client/assets/erDiagram-SMLLAGMA-qADC7WFl.js +86 -0
- package/build/client/assets/erb-B2TuxjDa.js +2 -0
- package/build/client/assets/erlang-COjQS5Vd.js +2 -0
- package/build/client/assets/error-boundary-C8cCfAXR.js +3 -0
- package/build/client/assets/error-boundary-Ik9JEOSR.js +2 -0
- package/build/client/assets/everforest-dark-BcVhmp-v.js +2 -0
- package/build/client/assets/everforest-light-BABw_lAz.js +2 -0
- package/build/client/assets/fennel-BWMNJgf6.js +2 -0
- package/build/client/assets/finished-B4xoA3Ia.js +2 -0
- package/build/client/assets/fish-DfKEMbYf.js +2 -0
- package/build/client/assets/flowDiagram-DWJPFMVM-Dg5bUJHn.js +163 -0
- package/build/client/assets/fluent-pdkXnM3T.js +2 -0
- package/build/client/assets/format-C6HW_OzJ.js +2 -0
- package/build/client/assets/fortran-fixed-form-DJRRAQDN.js +2 -0
- package/build/client/assets/fortran-free-form-DV1gCHea.js +2 -0
- package/build/client/assets/fsharp--cXMF3qO.js +2 -0
- package/build/client/assets/ganttDiagram-T4ZO3ILL-ZP69k8Vi.js +293 -0
- package/build/client/assets/gdresource-8QVnS8N9.js +2 -0
- package/build/client/assets/gdscript-B-tinReb.js +2 -0
- package/build/client/assets/gdshader-D-sX5R4v.js +2 -0
- package/build/client/assets/genie-BmkGpf0o.js +2 -0
- package/build/client/assets/gherkin-B82_eSH5.js +2 -0
- package/build/client/assets/git-commit-DIM1uo6E.js +2 -0
- package/build/client/assets/git-rebase-r7JAQ3Rs.js +2 -0
- package/build/client/assets/gitGraphDiagram-UUTBAWPF-DghPPXTg.js +107 -0
- package/build/client/assets/github-dark-ItxRbaCF.js +2 -0
- package/build/client/assets/github-dark-default-Dqj3O7-B.js +2 -0
- package/build/client/assets/github-dark-dimmed-lOY--M6I.js +2 -0
- package/build/client/assets/github-dark-high-contrast-B7OajhI1.js +2 -0
- package/build/client/assets/github-light-Ys8OgkLF.js +2 -0
- package/build/client/assets/github-light-default-CImC0z1F.js +2 -0
- package/build/client/assets/github-light-high-contrast-DeuTq3bC.js +2 -0
- package/build/client/assets/gleam-6q1j_8JJ.js +2 -0
- package/build/client/assets/glimmer-js-DpkjQGdb.js +2 -0
- package/build/client/assets/glimmer-ts-BIU3Iomp.js +2 -0
- package/build/client/assets/glsl-CuPbztvA.js +2 -0
- package/build/client/assets/gn-B7PAH90T.js +2 -0
- package/build/client/assets/gnuplot-JCUDX9KJ.js +2 -0
- package/build/client/assets/go-DAF6hyfr.js +2 -0
- package/build/client/assets/graph-CjsRXT3S.js +2 -0
- package/build/client/assets/graphql-DRzOeJTk.js +2 -0
- package/build/client/assets/groovy-BCkM3IBO.js +2 -0
- package/build/client/assets/gruvbox-dark-hard-CLk2Sg5N.js +2 -0
- package/build/client/assets/gruvbox-dark-medium-Dv04O_Qz.js +2 -0
- package/build/client/assets/gruvbox-dark-soft-BBQ7ymWE.js +2 -0
- package/build/client/assets/gruvbox-light-hard-DEXF5z0W.js +2 -0
- package/build/client/assets/gruvbox-light-medium-BrxJZ8RE.js +2 -0
- package/build/client/assets/gruvbox-light-soft-C-rp8HGP.js +2 -0
- package/build/client/assets/guide-3DsI5Ii0.js +9 -0
- package/build/client/assets/hack-DzlTMoR3.js +2 -0
- package/build/client/assets/haml-COHee38x.js +2 -0
- package/build/client/assets/handlebars-C8hg2qEV.js +2 -0
- package/build/client/assets/haskell-qpdQ45KJ.js +2 -0
- package/build/client/assets/haxe-DcflU8c4.js +2 -0
- package/build/client/assets/hcl-_9MgfIlw.js +2 -0
- package/build/client/assets/hjson-C0k6WJ9A.js +2 -0
- package/build/client/assets/hlsl-BM3gP0ai.js +2 -0
- package/build/client/assets/horizon-C_p2-MnL.js +2 -0
- package/build/client/assets/houston-BAPwZj6C.js +2 -0
- package/build/client/assets/html-CSKTmz0s.js +2 -0
- package/build/client/assets/html-derivative-DOqPFzKp.js +2 -0
- package/build/client/assets/http-CAoYOCKU.js +2 -0
- package/build/client/assets/hurl-MIoTyRxi.js +2 -0
- package/build/client/assets/hxml-YE6AIiNR.js +2 -0
- package/build/client/assets/hy-B_YXjNfJ.js +2 -0
- package/build/client/assets/imba-Cun6PR6E.js +2 -0
- package/build/client/assets/index-Bh67Vwl7.js +2 -0
- package/build/client/assets/index-BiGqsMpe.js +83 -0
- package/build/client/assets/index-BlgqdxwS.js +2 -0
- package/build/client/assets/index-BoCb-ZDw.js +2 -0
- package/build/client/assets/index-CFdT0RIo.js +2 -0
- package/build/client/assets/index-D5dMhZeG.js +2 -0
- package/build/client/assets/index-DDpCzuT4.js +2 -0
- package/build/client/assets/index-DVoM9egA.js +2 -0
- package/build/client/assets/index-DkUG1N7T.js +2 -0
- package/build/client/assets/index-J1nVA_jb.js +2 -0
- package/build/client/assets/index-SfOF7hjq.js +42 -0
- package/build/client/assets/index-ZNADqOyW.js +2 -0
- package/build/client/assets/index.client-B4Gezg7M.js +500 -0
- package/build/client/assets/infoDiagram-42DDH7IO-Cupvew4i.js +3 -0
- package/build/client/assets/ini-CWj5weMe.js +2 -0
- package/build/client/assets/init-DB8TqInT.js +2 -0
- package/build/client/assets/ishikawaDiagram-UXIWVN3A-BEf836kf.js +71 -0
- package/build/client/assets/java-DVZupYui.js +2 -0
- package/build/client/assets/javascript-50CLWs3d.js +2 -0
- package/build/client/assets/jinja-DB1qyn1M.js +2 -0
- package/build/client/assets/jison-CjOu4BOa.js +2 -0
- package/build/client/assets/journeyDiagram-VCZTEJTY-ZrKfccix.js +140 -0
- package/build/client/assets/json-DsZx9y_T.js +2 -0
- package/build/client/assets/json5-CqO7DsW5.js +2 -0
- package/build/client/assets/jsonc-Bq5tNIGH.js +2 -0
- package/build/client/assets/jsonl-BsYotExs.js +2 -0
- package/build/client/assets/jsonnet-Miv0uYwm.js +2 -0
- package/build/client/assets/jssm-DgHPmGaA.js +2 -0
- package/build/client/assets/jsx-Bmkl4-6c.js +2 -0
- package/build/client/assets/jsx-runtime-hUI6LOBV.js +2 -0
- package/build/client/assets/julia-DEsqMxia.js +2 -0
- package/build/client/assets/kanagawa-dragon-BrO0lLK3.js +2 -0
- package/build/client/assets/kanagawa-lotus-Cp71I2om.js +2 -0
- package/build/client/assets/kanagawa-wave-B0xKGE4W.js +2 -0
- package/build/client/assets/kanban-definition-6JOO6SKY-BNrjcmVu.js +90 -0
- package/build/client/assets/katex-DQkiHNfB.js +262 -0
- package/build/client/assets/kdl-D6gD5Cj3.js +2 -0
- package/build/client/assets/kotlin-DsQagdE8.js +2 -0
- package/build/client/assets/kusto-CBQsh5AE.js +2 -0
- package/build/client/assets/l-DOzVYUO-.js +2 -0
- package/build/client/assets/laserwave-NZPLUhWk.js +2 -0
- package/build/client/assets/latex-Bhud-2JR.js +2 -0
- package/build/client/assets/launch-editor-DiQgdwg7.js +2 -0
- package/build/client/assets/layout-BWdjanO0.js +2 -0
- package/build/client/assets/lean-DD2KqpdV.js +2 -0
- package/build/client/assets/less-C9yJ14kV.js +2 -0
- package/build/client/assets/light-plus-BB9wiXzJ.js +2 -0
- package/build/client/assets/linear-kA5tSxQL.js +2 -0
- package/build/client/assets/liquid-2inoUFag.js +2 -0
- package/build/client/assets/llvm-CDsgmjfO.js +2 -0
- package/build/client/assets/loading-Cf-_cX4u.js +2 -0
- package/build/client/assets/log-C6_nsc2b.js +2 -0
- package/build/client/assets/login-CjJUgGco.js +2 -0
- package/build/client/assets/logo-C2Pq6_PQ.js +2 -0
- package/build/client/assets/lua-DpxJNud_.js +2 -0
- package/build/client/assets/luau-fZVhGDyL.js +2 -0
- package/build/client/assets/make-D2gBzN10.js +2 -0
- package/build/client/assets/manifest-d23b918c.js +1 -0
- package/build/client/assets/markdown-wN3kdmFB.js +2 -0
- package/build/client/assets/marko-BmdWvnvZ.js +2 -0
- package/build/client/assets/material-theme-C8fTAfKk.js +2 -0
- package/build/client/assets/material-theme-darker-CIfgkCnw.js +2 -0
- package/build/client/assets/material-theme-lighter-B_HGuFNc.js +2 -0
- package/build/client/assets/material-theme-ocean-S8Z9jiiC.js +2 -0
- package/build/client/assets/material-theme-palenight-EpSQV2Ds.js +2 -0
- package/build/client/assets/matlab-Be0m5p17.js +2 -0
- package/build/client/assets/mdc-CtVUIR2e.js +2 -0
- package/build/client/assets/mdx-C9OwPmWH.js +3 -0
- package/build/client/assets/mdx-FDxWoPwO.js +2 -0
- package/build/client/assets/mermaid-Csqg4RGZ.js +2 -0
- package/build/client/assets/mermaid.core-BMua9uWp.js +304 -0
- package/build/client/assets/min-BtgwXF5n.js +2 -0
- package/build/client/assets/min-dark-Cz7hEUe5.js +2 -0
- package/build/client/assets/min-light-B6yGo-P-.js +2 -0
- package/build/client/assets/mindmap-definition-QFDTVHPH-BEcNg8IU.js +97 -0
- package/build/client/assets/mipsasm-Dt6OK7Nm.js +2 -0
- package/build/client/assets/misc-BNcbB3dR.js +2 -0
- package/build/client/assets/mojo-B5iXJ_Nz.js +2 -0
- package/build/client/assets/monokai-BKoTHMXB.js +2 -0
- package/build/client/assets/moonbit-BjKlDB-X.js +2 -0
- package/build/client/assets/move-CyM9HiWJ.js +2 -0
- package/build/client/assets/narrat-BNa-EMr3.js +2 -0
- package/build/client/assets/nav-chevrons-BQZ__Z2z.js +2 -0
- package/build/client/assets/nextflow-CbGEqPfa.js +2 -0
- package/build/client/assets/nginx-COcdjV_H.js +2 -0
- package/build/client/assets/night-owl-CKhLZog1.js +2 -0
- package/build/client/assets/night-owl-light-BE5Yc_qh.js +2 -0
- package/build/client/assets/nim-ClNDI2gR.js +2 -0
- package/build/client/assets/nix-D6p2jdx-.js +2 -0
- package/build/client/assets/nord-BUe3zTSo.js +2 -0
- package/build/client/assets/nushell-DOO_8Ty3.js +2 -0
- package/build/client/assets/objective-c-B2sMRvJx.js +2 -0
- package/build/client/assets/objective-cpp-mwTLnaXT.js +2 -0
- package/build/client/assets/ocaml-CiqibrVy.js +2 -0
- package/build/client/assets/odin-B5Taooyc.js +2 -0
- package/build/client/assets/offline-videos-C628-CDe.js +2 -0
- package/build/client/assets/onboarding-indicator-CS7d1RLw.js +2 -0
- package/build/client/assets/one-dark-pro-Z7WXvzIg.js +2 -0
- package/build/client/assets/one-light-BMyP2FLU.js +2 -0
- package/build/client/assets/online-BM9kpW1W.js +2 -0
- package/build/client/assets/openscad-DrxZV49E.js +2 -0
- package/build/client/assets/ordinal-syO2Mdip.js +2 -0
- package/build/client/assets/pascal-Cyi_tFV5.js +2 -0
- package/build/client/assets/pe-BRA_K7Pt.js +2 -0
- package/build/client/assets/perl-CVLq4wVc.js +2 -0
- package/build/client/assets/php-D54Ljsjk.js +2 -0
- package/build/client/assets/pieDiagram-DEJITSTG-CrlFJnNo.js +31 -0
- package/build/client/assets/pierre-dark-BF7Rov05.js +2 -0
- package/build/client/assets/pierre-light-1PNFMH6t.js +2 -0
- package/build/client/assets/pkl-BubI3ciq.js +2 -0
- package/build/client/assets/plastic-BAl6iMdU.js +2 -0
- package/build/client/assets/playground-DmBtp9Rr.js +2 -0
- package/build/client/assets/playground-window-53zTrrRT.js +2 -0
- package/build/client/assets/plsql-DwbikqQ5.js +2 -0
- package/build/client/assets/po-_QhFERIT.js +2 -0
- package/build/client/assets/poimandres-4qD_qa-T.js +2 -0
- package/build/client/assets/polar-Dr2si1W4.js +2 -0
- package/build/client/assets/popover-D_79GoKZ.js +2 -0
- package/build/client/assets/postcss-Cqfdd1vP.js +2 -0
- package/build/client/assets/powerquery-Duh_WA-u.js +2 -0
- package/build/client/assets/powershell-Dgsa0rUh.js +2 -0
- package/build/client/assets/preferences-C_W4r3Wj.js +2 -0
- package/build/client/assets/preload-helper-DLdknYSj.js +2 -0
- package/build/client/assets/presence-DHVR7rPB.js +61 -0
- package/build/client/assets/preview-DsrzZJ3M.js +2 -0
- package/build/client/assets/prisma-3kk1xjwP.js +2 -0
- package/build/client/assets/product-tE_ZTgJf.js +2 -0
- package/build/client/assets/progress-DohUumej.js +2 -0
- package/build/client/assets/progress-bar-8MSIg-hJ.js +2 -0
- package/build/client/assets/prolog-DcbFR_-h.js +2 -0
- package/build/client/assets/proto-Bd3Qdmg2.js +2 -0
- package/build/client/assets/pug-DKhJ1yvQ.js +2 -0
- package/build/client/assets/puppet-D32Aj5jf.js +2 -0
- package/build/client/assets/purescript-PqafYsI9.js +2 -0
- package/build/client/assets/python--vzXdgBR.js +2 -0
- package/build/client/assets/qml-Cr01KhVR.js +2 -0
- package/build/client/assets/qmldir-DW6hox2m.js +2 -0
- package/build/client/assets/qss-yfiyM7_U.js +2 -0
- package/build/client/assets/quadrantDiagram-34T5L4WZ-C-fJVOPy.js +8 -0
- package/build/client/assets/r-LyzSKwT3.js +2 -0
- package/build/client/assets/racket-BRtueVUS.js +2 -0
- package/build/client/assets/raku-BRHK-UIa.js +2 -0
- package/build/client/assets/razor-BWj5VfIx.js +2 -0
- package/build/client/assets/react-error-boundary-DgOlQwwM.js +2 -0
- package/build/client/assets/red-BdTREnI1.js +2 -0
- package/build/client/assets/reg-DsbaXzPz.js +2 -0
- package/build/client/assets/regexp-DiS5fkLZ.js +2 -0
- package/build/client/assets/rel-m9ZazMK_.js +2 -0
- package/build/client/assets/requirementDiagram-MS252O5E-PGhhkc8a.js +85 -0
- package/build/client/assets/retrieval-practice-DaD6eeDM.js +2 -0
- package/build/client/assets/revalidation-ws-DjL8N8TA.js +2 -0
- package/build/client/assets/riscv-YKmXuLBX.js +2 -0
- package/build/client/assets/ron-shfPFxE-.js +2 -0
- package/build/client/assets/root-k2jc7r1v.js +3 -0
- package/build/client/assets/root-loader-ByAKsmmv.js +2 -0
- package/build/client/assets/rose-pine-DfnVmLtX.js +2 -0
- package/build/client/assets/rose-pine-dawn-D-sTnIpU.js +2 -0
- package/build/client/assets/rose-pine-moon-BJ6PWjoc.js +2 -0
- package/build/client/assets/rosmsg-CNZ2OwiZ.js +2 -0
- package/build/client/assets/rst-DvFSZSpr.js +2 -0
- package/build/client/assets/ruby-DMtEv4Gt.js +2 -0
- package/build/client/assets/rust-BxtItHEL.js +2 -0
- package/build/client/assets/sankeyDiagram-XADWPNL6-BjOZvTrV.js +11 -0
- package/build/client/assets/sas-BN9PoijS.js +2 -0
- package/build/client/assets/sass-BA97gn2Y.js +2 -0
- package/build/client/assets/scala-BZhlyAfD.js +2 -0
- package/build/client/assets/schemas-Bn3zadsT.js +41 -0
- package/build/client/assets/scheme-W2O8wGLi.js +2 -0
- package/build/client/assets/scss-B0YKoF9x.js +2 -0
- package/build/client/assets/sdbl-BEdax8w1.js +2 -0
- package/build/client/assets/seo-DV9H08y-.js +2 -0
- package/build/client/assets/sequenceDiagram-FGHM5R23-VH3XbE82.js +158 -0
- package/build/client/assets/set-playground-DyT4jldX.js +2 -0
- package/build/client/assets/shaderlab-Dro2S3zn.js +2 -0
- package/build/client/assets/shellscript-nxMxhVIj.js +2 -0
- package/build/client/assets/shellsession-B0m-Jx6h.js +2 -0
- package/build/client/assets/slack-dark-DwV80mSS.js +2 -0
- package/build/client/assets/slack-ochin-BexPifVu.js +2 -0
- package/build/client/assets/smalltalk-D0IVZAcX.js +2 -0
- package/build/client/assets/snazzy-light-hZSGUCZ5.js +2 -0
- package/build/client/assets/solarized-dark-CzU25Uzi.js +2 -0
- package/build/client/assets/solarized-light-C4CBVOAR.js +2 -0
- package/build/client/assets/solidity-Cr1rjeDv.js +2 -0
- package/build/client/assets/soy-CUEmwnhG.js +2 -0
- package/build/client/assets/sparql-D_EPzAtC.js +2 -0
- package/build/client/assets/split-layout-s1Y4wBQe.js +2 -0
- package/build/client/assets/splunk-zc9M-9b7.js +2 -0
- package/build/client/assets/sql-DKCBqeFM.js +2 -0
- package/build/client/assets/ssh-config-xq9rRPXh.js +2 -0
- package/build/client/assets/stata-CEbC3D5P.js +2 -0
- package/build/client/assets/stateDiagram-FHFEXIEX-CjL6dKTy.js +2 -0
- package/build/client/assets/stateDiagram-v2-QKLJ7IA2-k8xrCs-c.js +2 -0
- package/build/client/assets/status-indicator-DQNahQlq.js +2 -0
- package/build/client/assets/stylus-C59f42vG.js +2 -0
- package/build/client/assets/support-VKyviys2.js +2 -0
- package/build/client/assets/surrealql-skMMAZOK.js +2 -0
- package/build/client/assets/svelte-BiSMfAVw.js +2 -0
- package/build/client/assets/swift-VVxGP8GW.js +2 -0
- package/build/client/assets/synthwave-84-BCdhzwk7.js +2 -0
- package/build/client/assets/system-verilog-DIWyxszJ.js +2 -0
- package/build/client/assets/systemd-DcYMli4y.js +2 -0
- package/build/client/assets/talonscript-BhZspne4.js +2 -0
- package/build/client/assets/tasl-DIlKmZpy.js +2 -0
- package/build/client/assets/tcl-GT3pnOWo.js +2 -0
- package/build/client/assets/templ-BYviji7e.js +2 -0
- package/build/client/assets/terraform-D9j6D-Ny.js +2 -0
- package/build/client/assets/test-BfPTmMGn.js +2 -0
- package/build/client/assets/tests-G4o5iHU_.js +4 -0
- package/build/client/assets/tex-BbstrPnc.js +2 -0
- package/build/client/assets/timeline-definition-GMOUNBTQ-BCXQjzMG.js +121 -0
- package/build/client/assets/tokyo-night-QFMsc9wo.js +2 -0
- package/build/client/assets/toml-CbPaVabe.js +2 -0
- package/build/client/assets/tooltip-CoTdGGXz.js +2 -0
- package/build/client/assets/ts-tags-hqcJpMTS.js +2 -0
- package/build/client/assets/tsv-CYttvNtR.js +2 -0
- package/build/client/assets/tsx-q60CF6t4.js +2 -0
- package/build/client/assets/turtle-ClHAbrEC.js +2 -0
- package/build/client/assets/twig-CU_Ieduc.js +2 -0
- package/build/client/assets/typescript-I0dBY1Gn.js +2 -0
- package/build/client/assets/typespec-Djx19HmP.js +2 -0
- package/build/client/assets/typst-DarX3ipb.js +2 -0
- package/build/client/assets/user-BrD2IM_u.js +2 -0
- package/build/client/assets/v-BcLljofM.js +2 -0
- package/build/client/assets/vala-6RPKLkOf.js +2 -0
- package/build/client/assets/vb-D6eT5E7n.js +2 -0
- package/build/client/assets/vennDiagram-DHZGUBPP-CGdM7Aus.js +35 -0
- package/build/client/assets/verilog-DEgNK26i.js +2 -0
- package/build/client/assets/version-DGvvpKAO.js +2 -0
- package/build/client/assets/vesper-Dl5O7k2G.js +2 -0
- package/build/client/assets/vhdl-D1_YxcWz.js +2 -0
- package/build/client/assets/viml-CQw_gfVl.js +2 -0
- package/build/client/assets/vitesse-black-Du1Iqay6.js +2 -0
- package/build/client/assets/vitesse-dark-Dd9K6yxW.js +2 -0
- package/build/client/assets/vitesse-light-DcAoovp5.js +2 -0
- package/build/client/assets/vue-fmQHcKT_.js +2 -0
- package/build/client/assets/vue-html-C0H03Slw.js +2 -0
- package/build/client/assets/vue-vine-CFYKonMv.js +2 -0
- package/build/client/assets/vyper-Y_Fey19q.js +2 -0
- package/build/client/assets/wardley-RL74JXVD-B19Iaomu.js +163 -0
- package/build/client/assets/wardleyDiagram-NUSXRM2D-BY1V3DmD.js +21 -0
- package/build/client/assets/wasm-DM1fBalp.js +2 -0
- package/build/client/assets/wasm-sYrnnFJo.js +2 -0
- package/build/client/assets/wenyan-DW7phHOp.js +2 -0
- package/build/client/assets/wgsl-BAijelvZ.js +2 -0
- package/build/client/assets/wikitext-CKqsGJJh.js +2 -0
- package/build/client/assets/wit-DqVtQTTE.js +2 -0
- package/build/client/assets/wolfram-BZ2toccd.js +2 -0
- package/build/client/assets/workshop-config-BNvMPSev.js +2 -0
- package/build/client/assets/workspace-structure-CH5nlE9I.js +2 -0
- package/build/client/assets/xml-swHqFINk.js +2 -0
- package/build/client/assets/xsl-Bdq-ErzU.js +2 -0
- package/build/client/assets/xychartDiagram-5P7HB3ND-DEGt0NGP.js +8 -0
- package/build/client/assets/yaml-aYgU2TLq.js +2 -0
- package/build/client/assets/zenscript-ChPeTvrC.js +2 -0
- package/build/client/assets/zig-GHqzzShi.js +2 -0
- package/build/server/index.js +5 -5
- package/instrument.js +20 -0
- package/package.json +3 -3
- package/build/client/assets/_-BXD-NL5q.js +0 -2
- package/build/client/assets/_baseUniq-BZd-LB2j.js +0 -2
- package/build/client/assets/_exerciseNumber-wobJvzWw.js +0 -2
- package/build/client/assets/_exerciseNumber_._stepNumber.index-CJ_vsamY.js +0 -2
- package/build/client/assets/_exerciseNumber_.finished-DMvabMgs.js +0 -2
- package/build/client/assets/_extra-BX6xutM2.js +0 -2
- package/build/client/assets/_layout-2jhA44jg.js +0 -2
- package/build/client/assets/_layout-4Yc_URfc.js +0 -2
- package/build/client/assets/_layout-B2x92eZu.js +0 -2
- package/build/client/assets/_layout-BVZZzyTA.js +0 -2
- package/build/client/assets/_layout-Bu1PrDi4.js +0 -2
- package/build/client/assets/abap-DPWv1uN1.js +0 -2
- package/build/client/assets/account-D06eBUxf.js +0 -2
- package/build/client/assets/actionscript-3-Gnr4MBIu.js +0 -2
- package/build/client/assets/ada-zYvs9t3C.js +0 -2
- package/build/client/assets/andromeeda-BKVzGBdj.js +0 -2
- package/build/client/assets/angular-html-BmH65FG8.js +0 -2
- package/build/client/assets/angular-ts-BK4kqMuU.js +0 -2
- package/build/client/assets/apache-Df4hDiud.js +0 -2
- package/build/client/assets/apex-D1ZAgq2k.js +0 -2
- package/build/client/assets/apl-CUpjOvr5.js +0 -2
- package/build/client/assets/app-Dh7zivwU.js +0 -2
- package/build/client/assets/applescript-DyaBNi9N.js +0 -2
- package/build/client/assets/ara-Boqq2J9W.js +0 -2
- package/build/client/assets/arc-Dyu2EgWL.js +0 -2
- package/build/client/assets/architectureDiagram-Q4EWVU46-COhhkgOl.js +0 -37
- package/build/client/assets/asciidoc-CC8pS6eT.js +0 -2
- package/build/client/assets/asm-BRv55inW.js +0 -2
- package/build/client/assets/astro-C3XFMB-J.js +0 -2
- package/build/client/assets/aurora-x-BTYb-G9P.js +0 -2
- package/build/client/assets/awk-BC_GmiUq.js +0 -2
- package/build/client/assets/ayu-dark-lsIQrZ-m.js +0 -2
- package/build/client/assets/ayu-light-DQpQHyEg.js +0 -2
- package/build/client/assets/ayu-mirage-cjkkQtl-.js +0 -2
- package/build/client/assets/ballerina-6n00vJH_.js +0 -2
- package/build/client/assets/bat-BWJNNB_F.js +0 -2
- package/build/client/assets/beancount-CJIf7JyV.js +0 -2
- package/build/client/assets/berry-UR_Dn9en.js +0 -2
- package/build/client/assets/bibtex-LwpGkTjV.js +0 -2
- package/build/client/assets/bicep-C8aI6fcG.js +0 -2
- package/build/client/assets/blade-BwyyJ1ny.js +0 -2
- package/build/client/assets/blockDiagram-DXYQGD6D-CgGndTMW.js +0 -133
- package/build/client/assets/bsl-PXt1yOou.js +0 -2
- package/build/client/assets/button-D7BnAl2O.js +0 -2
- package/build/client/assets/c-DbhIm1Fb.js +0 -2
- package/build/client/assets/c3-CLFiwSqM.js +0 -2
- package/build/client/assets/c4Diagram-AHTNJAMY-D74mKPnR.js +0 -11
- package/build/client/assets/cache-BblxKJsA.js +0 -2
- package/build/client/assets/cadence-BwxCJ59J.js +0 -2
- package/build/client/assets/cairo-CkN0_AGx.js +0 -2
- package/build/client/assets/catppuccin-frappe-BKBWE-kf.js +0 -2
- package/build/client/assets/catppuccin-latte-Dn_wO80W.js +0 -2
- package/build/client/assets/catppuccin-macchiato-B1P9HPgP.js +0 -2
- package/build/client/assets/catppuccin-mocha-B7ZBybC-.js +0 -2
- package/build/client/assets/channel-QRtTWdOf.js +0 -2
- package/build/client/assets/chunk-4BX2VUAB-BXoiGXc7.js +0 -2
- package/build/client/assets/chunk-4TB4RGXK-CL_G9CK3.js +0 -207
- package/build/client/assets/chunk-55IACEB6-Dwsz9vVd.js +0 -2
- package/build/client/assets/chunk-EDXVE4YY-X4BXKkVZ.js +0 -2
- package/build/client/assets/chunk-EVOBXE3Y-CgtC8-HP.js +0 -27
- package/build/client/assets/chunk-FMBD7UC4-D2-oGIb4.js +0 -16
- package/build/client/assets/chunk-OYMX7WX6-CAyjvOMN.js +0 -232
- package/build/client/assets/chunk-QZHKN3VN-x7ERTMrw.js +0 -2
- package/build/client/assets/chunk-YQSHRJWW-CVV6x7QQ.js +0 -6
- package/build/client/assets/chunk-YZCP3GAM-BhmYxEUu.js +0 -2
- package/build/client/assets/clarity-CWxgMYTK.js +0 -2
- package/build/client/assets/classDiagram-6PBFFD2Q-BY1oHq90.js +0 -2
- package/build/client/assets/classDiagram-v2-HSJHXN6E-DQ5AINBc.js +0 -2
- package/build/client/assets/client-only-BqBofSkC.js +0 -2
- package/build/client/assets/clojure-CuptLZYh.js +0 -2
- package/build/client/assets/clone-D1odj96c.js +0 -2
- package/build/client/assets/cmake-CV-YVOv1.js +0 -2
- package/build/client/assets/cobol-CUvuWnt9.js +0 -2
- package/build/client/assets/codeowners-BvCy-vDX.js +0 -2
- package/build/client/assets/codeql-B4l6nK7b.js +0 -2
- package/build/client/assets/coerce-BjLPFTxa.js +0 -2
- package/build/client/assets/coffee-DHT847V8.js +0 -2
- package/build/client/assets/command-palette-DgGwAFdD.js +0 -2
- package/build/client/assets/common-lisp-BICWGRBO.js +0 -2
- package/build/client/assets/coq-z8esNeOH.js +0 -2
- package/build/client/assets/cose-bilkent-S5V4N54A-9YRBwW2_.js +0 -2
- package/build/client/assets/cpp-BIlA9ukJ.js +0 -2
- package/build/client/assets/crystal-CGK_9UWj.js +0 -2
- package/build/client/assets/csharp-CU9SBLwM.js +0 -2
- package/build/client/assets/css-C6fP25bB.js +0 -2
- package/build/client/assets/csv-BBEN1AFj.js +0 -2
- package/build/client/assets/cue-CeEzrYXM.js +0 -2
- package/build/client/assets/cypher-D0gn7ktP.js +0 -2
- package/build/client/assets/cytoscape.esm-Bj2CSbxP.js +0 -322
- package/build/client/assets/d-Dl1Z7wz4.js +0 -2
- package/build/client/assets/dagre-KV5264BT-DjCEUdaZ.js +0 -5
- package/build/client/assets/dark-plus-AJlRLNS9.js +0 -2
- package/build/client/assets/dart-D5ro-iqQ.js +0 -2
- package/build/client/assets/dax-CE34a1G-.js +0 -2
- package/build/client/assets/db-CobXRPGn.js +0 -2
- package/build/client/assets/defaultLocale-DZ29XfS0.js +0 -2
- package/build/client/assets/desktop-rqs7lENN.js +0 -2
- package/build/client/assets/diagram-5BDNPKRD-BYmcWylB.js +0 -11
- package/build/client/assets/diagram-G4DWMVQ6-BFL6OdHd.js +0 -25
- package/build/client/assets/diagram-MMDJMWI5-BH69Av60.js +0 -44
- package/build/client/assets/diagram-TYMM5635-BNbBLlrh.js +0 -25
- package/build/client/assets/dialog-BdByBZA9.js +0 -6
- package/build/client/assets/diff-BL-4LfcK.js +0 -2
- package/build/client/assets/diff-Bqd4Wrua.js +0 -2
- package/build/client/assets/diff-BwuP6Nso.js +0 -1893
- package/build/client/assets/discord-Chwspe8W.js +0 -2
- package/build/client/assets/discord-aluSvF37.js +0 -2
- package/build/client/assets/docker-BzQD2dez.js +0 -2
- package/build/client/assets/dotenv-CPRjKdjH.js +0 -2
- package/build/client/assets/dracula-CV7SlReP.js +0 -2
- package/build/client/assets/dracula-soft-JsIV5ZhX.js +0 -2
- package/build/client/assets/dream-maker-CSL_4Ct0.js +0 -2
- package/build/client/assets/edge-BjePLIcL.js +0 -2
- package/build/client/assets/elixir-DOnjEmfY.js +0 -2
- package/build/client/assets/elm-HYDQaoSp.js +0 -2
- package/build/client/assets/emacs-lisp-DmCLiZVT.js +0 -2
- package/build/client/assets/entry.client-BdYHNvCA.js +0 -11
- package/build/client/assets/epic-video-B0keuzBj.js +0 -2
- package/build/client/assets/epic-video-CAyT561C.js +0 -3397
- package/build/client/assets/erDiagram-SMLLAGMA-D5YxBkEM.js +0 -86
- package/build/client/assets/erb-Un3Uw2EV.js +0 -2
- package/build/client/assets/erlang-DtV7MFVW.js +0 -2
- package/build/client/assets/error-boundary-1JOGE3S_.js +0 -3
- package/build/client/assets/error-boundary-L2JYNlbT.js +0 -2
- package/build/client/assets/everforest-dark-CSmjfzXF.js +0 -2
- package/build/client/assets/everforest-light-Didqzd0R.js +0 -2
- package/build/client/assets/fennel-BSD2T0Gm.js +0 -2
- package/build/client/assets/finished-DNnkyVD3.js +0 -2
- package/build/client/assets/fish-CLgA_Vtt.js +0 -2
- package/build/client/assets/flowDiagram-DWJPFMVM-cTUBxlhM.js +0 -163
- package/build/client/assets/fluent-hIqvCHRM.js +0 -2
- package/build/client/assets/format-DQyQRzmq.js +0 -2
- package/build/client/assets/fortran-fixed-form-BoI8Mr6h.js +0 -2
- package/build/client/assets/fortran-free-form-GVuOXQTl.js +0 -2
- package/build/client/assets/fsharp-BsFSMI_h.js +0 -2
- package/build/client/assets/ganttDiagram-T4ZO3ILL-IXpB5Fl6.js +0 -293
- package/build/client/assets/gdresource-BwUfcn6I.js +0 -2
- package/build/client/assets/gdscript-D5h9VgRx.js +0 -2
- package/build/client/assets/gdshader-qcbIlyyi.js +0 -2
- package/build/client/assets/genie-B5WHlNQP.js +0 -2
- package/build/client/assets/gherkin-CiJU5Jh7.js +0 -2
- package/build/client/assets/git-commit-C6vnoD8R.js +0 -2
- package/build/client/assets/git-rebase-ofxTSFO1.js +0 -2
- package/build/client/assets/gitGraphDiagram-UUTBAWPF-BTDd4d28.js +0 -107
- package/build/client/assets/github-dark-BzHyzeOt.js +0 -2
- package/build/client/assets/github-dark-default-C-JNuWHi.js +0 -2
- package/build/client/assets/github-dark-dimmed-D30WlJd7.js +0 -2
- package/build/client/assets/github-dark-high-contrast-MmaCJo_P.js +0 -2
- package/build/client/assets/github-light-CRmTf71Y.js +0 -2
- package/build/client/assets/github-light-default-DOcIjpJl.js +0 -2
- package/build/client/assets/github-light-high-contrast-rIvjosom.js +0 -2
- package/build/client/assets/gleam-GZelxB76.js +0 -2
- package/build/client/assets/glimmer-js-tmaXecsM.js +0 -2
- package/build/client/assets/glimmer-ts-CR4KABhC.js +0 -2
- package/build/client/assets/glsl-TInMf61v.js +0 -2
- package/build/client/assets/gn-Cnxi2juf.js +0 -2
- package/build/client/assets/gnuplot-Dfq7jDJi.js +0 -2
- package/build/client/assets/go-DzbNi7d5.js +0 -2
- package/build/client/assets/graph-DWAG2JEg.js +0 -2
- package/build/client/assets/graphql-RJjRICG0.js +0 -2
- package/build/client/assets/groovy-Cv95lF1H.js +0 -2
- package/build/client/assets/gruvbox-dark-hard-CHuMFDRe.js +0 -2
- package/build/client/assets/gruvbox-dark-medium-CL6XN4Tb.js +0 -2
- package/build/client/assets/gruvbox-dark-soft-C-jqIzOQ.js +0 -2
- package/build/client/assets/gruvbox-light-hard-C732sOVF.js +0 -2
- package/build/client/assets/gruvbox-light-medium-DxZECFbJ.js +0 -2
- package/build/client/assets/gruvbox-light-soft-fSXSseNX.js +0 -2
- package/build/client/assets/guide-CqLVX3Nf.js +0 -9
- package/build/client/assets/hack-Cpa92xoH.js +0 -2
- package/build/client/assets/haml-BiKrxaKx.js +0 -2
- package/build/client/assets/handlebars-adnL_GFW.js +0 -2
- package/build/client/assets/haskell-Cx2p2Sas.js +0 -2
- package/build/client/assets/haxe-DxjfJhV2.js +0 -2
- package/build/client/assets/hcl-CQnrV8XM.js +0 -2
- package/build/client/assets/hjson-DqH9CfoE.js +0 -2
- package/build/client/assets/hlsl-C5kMyYFO.js +0 -2
- package/build/client/assets/horizon-WJm9K8n4.js +0 -2
- package/build/client/assets/houston-Dxmi8vug.js +0 -2
- package/build/client/assets/html-BqtHrN6j.js +0 -2
- package/build/client/assets/html-derivative-BYuDksc0.js +0 -2
- package/build/client/assets/http-DDeBXu00.js +0 -2
- package/build/client/assets/hurl-ia64ho5v.js +0 -2
- package/build/client/assets/hxml-C2T1b6Uj.js +0 -2
- package/build/client/assets/hy-C5HOB9u0.js +0 -2
- package/build/client/assets/imba-DA0ltSfZ.js +0 -2
- package/build/client/assets/index-B940ozEd.js +0 -2
- package/build/client/assets/index-BA7m1RGU.js +0 -2
- package/build/client/assets/index-BGq-GPu-.js +0 -2
- package/build/client/assets/index-BHDWH1tb.js +0 -83
- package/build/client/assets/index-CNGKfdwM.js +0 -2
- package/build/client/assets/index-CpDb5E7R.js +0 -2
- package/build/client/assets/index-CxXKaPhw.js +0 -42
- package/build/client/assets/index-D9ovdAA_.js +0 -2
- package/build/client/assets/index-DAhHGKBD.js +0 -2
- package/build/client/assets/index-Doy4MqSz.js +0 -2
- package/build/client/assets/index-Dv6OMK0K.js +0 -2
- package/build/client/assets/index-YMIv05Au.js +0 -2
- package/build/client/assets/index.client-BEr69eaj.js +0 -500
- package/build/client/assets/infoDiagram-42DDH7IO-Do1sbsAR.js +0 -3
- package/build/client/assets/ini-D1rlPQdQ.js +0 -2
- package/build/client/assets/init-aSCdgMer.js +0 -2
- package/build/client/assets/ishikawaDiagram-UXIWVN3A-B7BWWZ1P.js +0 -71
- package/build/client/assets/java-QnWcjcM1.js +0 -2
- package/build/client/assets/javascript-Bm6mLNC-.js +0 -2
- package/build/client/assets/jinja-CaJBZIgd.js +0 -2
- package/build/client/assets/jison-Dcd913qk.js +0 -2
- package/build/client/assets/journeyDiagram-VCZTEJTY-BvLMCRKi.js +0 -140
- package/build/client/assets/json-ClnRHh-a.js +0 -2
- package/build/client/assets/json5-BNALByhW.js +0 -2
- package/build/client/assets/jsonc-OKLTFUjy.js +0 -2
- package/build/client/assets/jsonl-D3r1P3Ix.js +0 -2
- package/build/client/assets/jsonnet-DBZ2vATn.js +0 -2
- package/build/client/assets/jssm-CfFNwPDC.js +0 -2
- package/build/client/assets/jsx-A1aPtx1x.js +0 -2
- package/build/client/assets/jsx-runtime-E_STLsUe.js +0 -2
- package/build/client/assets/julia-ZQhIVCQd.js +0 -2
- package/build/client/assets/kanagawa-dragon-Cd8HScG5.js +0 -2
- package/build/client/assets/kanagawa-lotus-DlYKsmKE.js +0 -2
- package/build/client/assets/kanagawa-wave-De2dJga1.js +0 -2
- package/build/client/assets/kanban-definition-6JOO6SKY-T_pTsKeJ.js +0 -90
- package/build/client/assets/katex-CQ0LIBmY.js +0 -262
- package/build/client/assets/kdl-CuUg-MFf.js +0 -2
- package/build/client/assets/kotlin-r6SpUtDI.js +0 -2
- package/build/client/assets/kusto-BW0Rotnb.js +0 -2
- package/build/client/assets/l-CFx2Ffvb.js +0 -2
- package/build/client/assets/laserwave-DU-cLQrM.js +0 -2
- package/build/client/assets/latex-uasMX1T6.js +0 -2
- package/build/client/assets/launch-editor-Bx2LLYzj.js +0 -2
- package/build/client/assets/layout-G4AHXAfP.js +0 -2
- package/build/client/assets/lean-B-Qe95HG.js +0 -2
- package/build/client/assets/less-DFV-pDHn.js +0 -2
- package/build/client/assets/light-plus-CZ289CX-.js +0 -2
- package/build/client/assets/linear-BIVGpaow.js +0 -2
- package/build/client/assets/liquid-DnpnVOFI.js +0 -2
- package/build/client/assets/llvm-CEht3DyH.js +0 -2
- package/build/client/assets/loading-ZKEaKg2x.js +0 -2
- package/build/client/assets/log-DDX2V-zW.js +0 -2
- package/build/client/assets/login-Z19sv0-z.js +0 -2
- package/build/client/assets/logo-BApQBkJc.js +0 -2
- package/build/client/assets/lua-XFvCb1Xu.js +0 -2
- package/build/client/assets/luau-BRCwSVun.js +0 -2
- package/build/client/assets/make-CES7tIJl.js +0 -2
- package/build/client/assets/manifest-0106d902.js +0 -1
- package/build/client/assets/markdown-KssX2sMt.js +0 -2
- package/build/client/assets/marko-Bi0cZG0p.js +0 -2
- package/build/client/assets/material-theme-Dlj5qui4.js +0 -2
- package/build/client/assets/material-theme-darker-CWmUdUey.js +0 -2
- package/build/client/assets/material-theme-lighter-D_uUHuIH.js +0 -2
- package/build/client/assets/material-theme-ocean-D1XhAFj3.js +0 -2
- package/build/client/assets/material-theme-palenight-Nh3fkUcn.js +0 -2
- package/build/client/assets/matlab-DDRxoJS2.js +0 -2
- package/build/client/assets/mdc-dZSQxO75.js +0 -2
- package/build/client/assets/mdx-BgpsIbK_.js +0 -3
- package/build/client/assets/mdx-Dps6nDTH.js +0 -2
- package/build/client/assets/mermaid-myA3C1xT.js +0 -2
- package/build/client/assets/mermaid.core-DoOBW-Sl.js +0 -304
- package/build/client/assets/min-LbPYCmPg.js +0 -2
- package/build/client/assets/min-dark-hsmmMYMV.js +0 -2
- package/build/client/assets/min-light-CpbywGGL.js +0 -2
- package/build/client/assets/mindmap-definition-QFDTVHPH-DF5EUKQy.js +0 -97
- package/build/client/assets/mipsasm-CXjxxgjf.js +0 -2
- package/build/client/assets/misc-B-Vsvh_e.js +0 -2
- package/build/client/assets/mojo-B2MS52O8.js +0 -2
- package/build/client/assets/monokai-Cfzb8UMI.js +0 -2
- package/build/client/assets/moonbit-kQlexyPW.js +0 -2
- package/build/client/assets/move-1vv9KkdT.js +0 -2
- package/build/client/assets/narrat-BqCihm0m.js +0 -2
- package/build/client/assets/nav-chevrons-NbMAAxTr.js +0 -2
- package/build/client/assets/nextflow-CjfegR52.js +0 -2
- package/build/client/assets/nginx-z2j80YMe.js +0 -2
- package/build/client/assets/night-owl-BRO-U4t3.js +0 -2
- package/build/client/assets/night-owl-light-DkivASr1.js +0 -2
- package/build/client/assets/nim-CheR0bgT.js +0 -2
- package/build/client/assets/nix-C6AB-3QL.js +0 -2
- package/build/client/assets/nord-AeN7bRvP.js +0 -2
- package/build/client/assets/nushell-DMmcib2t.js +0 -2
- package/build/client/assets/objective-c-CsBAamkK.js +0 -2
- package/build/client/assets/objective-cpp-DaJ21u0L.js +0 -2
- package/build/client/assets/ocaml-C0gT-_ZI.js +0 -2
- package/build/client/assets/odin-dWjs1lDr.js +0 -2
- package/build/client/assets/offline-videos-C2Pen9G8.js +0 -2
- package/build/client/assets/onboarding-indicator-C_b-BFaG.js +0 -2
- package/build/client/assets/one-dark-pro-DjZzIsnz.js +0 -2
- package/build/client/assets/one-light-VrdCkofK.js +0 -2
- package/build/client/assets/online-DbQnflx8.js +0 -2
- package/build/client/assets/openscad-DYDhhKY7.js +0 -2
- package/build/client/assets/ordinal-C_Eh9Yye.js +0 -2
- package/build/client/assets/pascal-B-9z9Bb_.js +0 -2
- package/build/client/assets/pe-PmdCRPfy.js +0 -2
- package/build/client/assets/perl-BJGQJYxN.js +0 -2
- package/build/client/assets/php-DUPEHwcd.js +0 -2
- package/build/client/assets/pieDiagram-DEJITSTG-DhXvVAOM.js +0 -31
- package/build/client/assets/pierre-dark-BJtsQcLw.js +0 -2
- package/build/client/assets/pierre-light-C3DReAeH.js +0 -2
- package/build/client/assets/pkl-CIxY8h0x.js +0 -2
- package/build/client/assets/plastic-CpTz_ncZ.js +0 -2
- package/build/client/assets/playground-CU0T7ubS.js +0 -2
- package/build/client/assets/playground-window-CjDngWWr.js +0 -2
- package/build/client/assets/plsql-Cspmm0hZ.js +0 -2
- package/build/client/assets/po-Dx6s_8mi.js +0 -2
- package/build/client/assets/poimandres-A27lgC4R.js +0 -2
- package/build/client/assets/polar-CQUaGvbb.js +0 -2
- package/build/client/assets/popover-bCsMqjbW.js +0 -2
- package/build/client/assets/postcss-DyHMoc_1.js +0 -2
- package/build/client/assets/powerquery-BpVuuUTy.js +0 -2
- package/build/client/assets/powershell-CTZHi9Hv.js +0 -2
- package/build/client/assets/preferences-C1ecxdTo.js +0 -2
- package/build/client/assets/preload-helper-BO8DkkYf.js +0 -2
- package/build/client/assets/presence-DyYeIttf.js +0 -61
- package/build/client/assets/preview-Cr0wnYf4.js +0 -2
- package/build/client/assets/prisma-jY0jqcHX.js +0 -2
- package/build/client/assets/product-kySQNRcO.js +0 -2
- package/build/client/assets/progress-BvNhcrl2.js +0 -2
- package/build/client/assets/progress-bar-BNZflHa8.js +0 -2
- package/build/client/assets/prolog-DAAwHbUs.js +0 -2
- package/build/client/assets/proto-DJ9jpBI4.js +0 -2
- package/build/client/assets/pug-DOY0UoXu.js +0 -2
- package/build/client/assets/puppet-CBWC0fZr.js +0 -2
- package/build/client/assets/purescript-C67F9098.js +0 -2
- package/build/client/assets/python-nms1R9Mv.js +0 -2
- package/build/client/assets/qml-D1D2Ppo-.js +0 -2
- package/build/client/assets/qmldir-D8OkynnI.js +0 -2
- package/build/client/assets/qss-C0ZFopia.js +0 -2
- package/build/client/assets/quadrantDiagram-34T5L4WZ--zJ-0A06.js +0 -8
- package/build/client/assets/r-DekjewFw.js +0 -2
- package/build/client/assets/racket-DyCSGAIQ.js +0 -2
- package/build/client/assets/raku-CTXErgXs.js +0 -2
- package/build/client/assets/razor-DJ4VgIET.js +0 -2
- package/build/client/assets/react-error-boundary-CqpRjHaS.js +0 -2
- package/build/client/assets/red-C8lcz3aq.js +0 -2
- package/build/client/assets/reg-scCe8vXX.js +0 -2
- package/build/client/assets/regexp-CNthu7ad.js +0 -2
- package/build/client/assets/rel-D3whOTSJ.js +0 -2
- package/build/client/assets/requirementDiagram-MS252O5E-DvJ7Hd3F.js +0 -85
- package/build/client/assets/retrieval-practice-UtAMfqK6.js +0 -2
- package/build/client/assets/revalidation-ws-BOwCYmKJ.js +0 -2
- package/build/client/assets/riscv-BpQcOflE.js +0 -2
- package/build/client/assets/ron-BNDWZPDL.js +0 -2
- package/build/client/assets/root-C0up1QHT.js +0 -3
- package/build/client/assets/root-loader-acoY0KPP.js +0 -2
- package/build/client/assets/rose-pine-ZTjJPdqO.js +0 -2
- package/build/client/assets/rose-pine-dawn-CuyePNpr.js +0 -2
- package/build/client/assets/rose-pine-moon-B8L3uPzM.js +0 -2
- package/build/client/assets/rosmsg-DfCK5Cx1.js +0 -2
- package/build/client/assets/rst-CtAdheuy.js +0 -2
- package/build/client/assets/ruby-DfWlRtso.js +0 -2
- package/build/client/assets/rust-CT3z5su4.js +0 -2
- package/build/client/assets/sankeyDiagram-XADWPNL6-B4cXproC.js +0 -11
- package/build/client/assets/sas-CfiahfKy.js +0 -2
- package/build/client/assets/sass-CcWXakFe.js +0 -2
- package/build/client/assets/scala-9AjXy62u.js +0 -2
- package/build/client/assets/schemas-CJOxdWRY.js +0 -41
- package/build/client/assets/scheme-XFAcc9-t.js +0 -2
- package/build/client/assets/scss-C0gpEqCm.js +0 -2
- package/build/client/assets/sdbl-CzZqw5iV.js +0 -2
- package/build/client/assets/seo-sPonQb7p.js +0 -2
- package/build/client/assets/sequenceDiagram-FGHM5R23-BV3NJ3W5.js +0 -158
- package/build/client/assets/set-playground-DIVb36KB.js +0 -2
- package/build/client/assets/shaderlab-vYgQ1M5z.js +0 -2
- package/build/client/assets/shellscript-Sit_DK6o.js +0 -2
- package/build/client/assets/shellsession-wmGfB2Uh.js +0 -2
- package/build/client/assets/slack-dark-Ciqmllm2.js +0 -2
- package/build/client/assets/slack-ochin-CojzpuMb.js +0 -2
- package/build/client/assets/smalltalk-Bce4xFSf.js +0 -2
- package/build/client/assets/snazzy-light-CUQXme-o.js +0 -2
- package/build/client/assets/solarized-dark-D5LOZry1.js +0 -2
- package/build/client/assets/solarized-light-DLiZg3AB.js +0 -2
- package/build/client/assets/solidity-CFS9PSoU.js +0 -2
- package/build/client/assets/soy-CximaQyM.js +0 -2
- package/build/client/assets/sparql-BkKi6dD7.js +0 -2
- package/build/client/assets/split-layout-B7jBRc0y.js +0 -2
- package/build/client/assets/splunk-B4SsYxSW.js +0 -2
- package/build/client/assets/sql-BgWZT08-.js +0 -2
- package/build/client/assets/ssh-config-QokbNkta.js +0 -2
- package/build/client/assets/stata-DHdbKgRR.js +0 -2
- package/build/client/assets/stateDiagram-FHFEXIEX-VDDmQNCp.js +0 -2
- package/build/client/assets/stateDiagram-v2-QKLJ7IA2-BJEGhc2U.js +0 -2
- package/build/client/assets/status-indicator-BnGQxuvZ.js +0 -2
- package/build/client/assets/stylus-BxxF0E07.js +0 -2
- package/build/client/assets/support-C_wE1Ggh.js +0 -2
- package/build/client/assets/surrealql-CyT5l8ij.js +0 -2
- package/build/client/assets/svelte-B0qdszaC.js +0 -2
- package/build/client/assets/swift-DIy3j30S.js +0 -2
- package/build/client/assets/synthwave-84-y4WVU-a-.js +0 -2
- package/build/client/assets/system-verilog-ByLNSOF9.js +0 -2
- package/build/client/assets/systemd-C-R4nZoW.js +0 -2
- package/build/client/assets/talonscript-BXe7m4X2.js +0 -2
- package/build/client/assets/tasl-DktKs1HG.js +0 -2
- package/build/client/assets/tcl-Bw37_bcs.js +0 -2
- package/build/client/assets/templ-cHeWFU4l.js +0 -2
- package/build/client/assets/terraform-pM-UMd51.js +0 -2
- package/build/client/assets/test-9uyGtNwf.js +0 -2
- package/build/client/assets/tests-CPChUfx-.js +0 -4
- package/build/client/assets/tex-DuTtBDq4.js +0 -2
- package/build/client/assets/timeline-definition-GMOUNBTQ-CFXHqoMC.js +0 -121
- package/build/client/assets/tokyo-night-DzgXW6ib.js +0 -2
- package/build/client/assets/toml-DnLkN3q8.js +0 -2
- package/build/client/assets/tooltip-Bkjc86W7.js +0 -2
- package/build/client/assets/ts-tags-CDDIZ5hF.js +0 -2
- package/build/client/assets/tsv-DywjNZeA.js +0 -2
- package/build/client/assets/tsx-CQ5nD7MS.js +0 -2
- package/build/client/assets/turtle-9LNJ9pTW.js +0 -2
- package/build/client/assets/twig-DXN1ON9r.js +0 -2
- package/build/client/assets/typescript-CMhgzGRv.js +0 -2
- package/build/client/assets/typespec-DH3d6K3a.js +0 -2
- package/build/client/assets/typst-C94fOFLs.js +0 -2
- package/build/client/assets/user-DEzkiEsD.js +0 -2
- package/build/client/assets/v-Cg_wiFG8.js +0 -2
- package/build/client/assets/vala-DAd38nzm.js +0 -2
- package/build/client/assets/vb-Bozaz7Jk.js +0 -2
- package/build/client/assets/vennDiagram-DHZGUBPP-r5o8Pra1.js +0 -35
- package/build/client/assets/verilog-DXoFd7pi.js +0 -2
- package/build/client/assets/version-CnB_XqkH.js +0 -2
- package/build/client/assets/vesper-C_uDcCQb.js +0 -2
- package/build/client/assets/vhdl-B7q3qYpa.js +0 -2
- package/build/client/assets/viml-HUjMCIOj.js +0 -2
- package/build/client/assets/vitesse-black-DI6mzVQY.js +0 -2
- package/build/client/assets/vitesse-dark-D705dHQT.js +0 -2
- package/build/client/assets/vitesse-light-BwwdjRzI.js +0 -2
- package/build/client/assets/vue-Ce6C56Aw.js +0 -2
- package/build/client/assets/vue-html-DySpIeKa.js +0 -2
- package/build/client/assets/vue-vine-CxzvI23K.js +0 -2
- package/build/client/assets/vyper-D15CJsnJ.js +0 -2
- package/build/client/assets/wardley-RL74JXVD-m7LzD2CA.js +0 -163
- package/build/client/assets/wardleyDiagram-NUSXRM2D-DRFQ5olL.js +0 -21
- package/build/client/assets/wasm-BcWxOZ3f.js +0 -2
- package/build/client/assets/wasm-LfyIz7f7.js +0 -2
- package/build/client/assets/wenyan-Bwvta48Y.js +0 -2
- package/build/client/assets/wgsl-BwnKUc0U.js +0 -2
- package/build/client/assets/wikitext-BuDobXuf.js +0 -2
- package/build/client/assets/wit-4ZdYuHm8.js +0 -2
- package/build/client/assets/wolfram-B4RKxhwG.js +0 -2
- package/build/client/assets/workshop-config-DW_E4TTx.js +0 -2
- package/build/client/assets/workspace-structure-zLKl3y3q.js +0 -2
- package/build/client/assets/xml-D-zmg7gU.js +0 -2
- package/build/client/assets/xsl-CKRXmXyC.js +0 -2
- package/build/client/assets/xychartDiagram-5P7HB3ND-B-9iSPSj.js +0 -8
- package/build/client/assets/yaml-BockATsl.js +0 -2
- package/build/client/assets/zenscript-ysaz_10h.js +0 -2
- package/build/client/assets/zig-BTysrzCF.js +0 -2
|
@@ -1,1893 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-BmH65FG8.js","assets/html-BqtHrN6j.js","assets/javascript-Bm6mLNC-.js","assets/css-C6fP25bB.js","assets/angular-ts-BK4kqMuU.js","assets/scss-C0gpEqCm.js","assets/apl-CUpjOvr5.js","assets/xml-D-zmg7gU.js","assets/java-QnWcjcM1.js","assets/json-ClnRHh-a.js","assets/astro-C3XFMB-J.js","assets/typescript-CMhgzGRv.js","assets/postcss-DyHMoc_1.js","assets/tsx-CQ5nD7MS.js","assets/blade-BwyyJ1ny.js","assets/html-derivative-BYuDksc0.js","assets/sql-BgWZT08-.js","assets/bsl-PXt1yOou.js","assets/sdbl-CzZqw5iV.js","assets/cairo-CkN0_AGx.js","assets/python-nms1R9Mv.js","assets/cobol-CUvuWnt9.js","assets/coffee-DHT847V8.js","assets/cpp-BIlA9ukJ.js","assets/regexp-CNthu7ad.js","assets/glsl-TInMf61v.js","assets/c-DbhIm1Fb.js","assets/crystal-CGK_9UWj.js","assets/shellscript-Sit_DK6o.js","assets/edge-BjePLIcL.js","assets/elixir-DOnjEmfY.js","assets/elm-HYDQaoSp.js","assets/erb-Un3Uw2EV.js","assets/ruby-DfWlRtso.js","assets/haml-BiKrxaKx.js","assets/graphql-RJjRICG0.js","assets/jsx-A1aPtx1x.js","assets/lua-XFvCb1Xu.js","assets/yaml-BockATsl.js","assets/erlang-DtV7MFVW.js","assets/markdown-KssX2sMt.js","assets/fortran-fixed-form-BoI8Mr6h.js","assets/fortran-free-form-GVuOXQTl.js","assets/fsharp-BsFSMI_h.js","assets/gdresource-BwUfcn6I.js","assets/gdshader-qcbIlyyi.js","assets/gdscript-D5h9VgRx.js","assets/git-commit-C6vnoD8R.js","assets/diff-BL-4LfcK.js","assets/git-rebase-ofxTSFO1.js","assets/glimmer-js-tmaXecsM.js","assets/glimmer-ts-CR4KABhC.js","assets/hack-Cpa92xoH.js","assets/handlebars-adnL_GFW.js","assets/http-DDeBXu00.js","assets/hurl-ia64ho5v.js","assets/csv-BBEN1AFj.js","assets/hxml-C2T1b6Uj.js","assets/haxe-DxjfJhV2.js","assets/jinja-CaJBZIgd.js","assets/jison-Dcd913qk.js","assets/julia-ZQhIVCQd.js","assets/r-DekjewFw.js","assets/latex-uasMX1T6.js","assets/tex-DuTtBDq4.js","assets/liquid-DnpnVOFI.js","assets/marko-Bi0cZG0p.js","assets/less-DFV-pDHn.js","assets/mdc-dZSQxO75.js","assets/nginx-z2j80YMe.js","assets/nim-CheR0bgT.js","assets/perl-BJGQJYxN.js","assets/php-DUPEHwcd.js","assets/pug-DOY0UoXu.js","assets/qml-D1D2Ppo-.js","assets/razor-DJ4VgIET.js","assets/csharp-CU9SBLwM.js","assets/rst-CtAdheuy.js","assets/cmake-CV-YVOv1.js","assets/sas-CfiahfKy.js","assets/shaderlab-vYgQ1M5z.js","assets/hlsl-C5kMyYFO.js","assets/shellsession-wmGfB2Uh.js","assets/soy-CximaQyM.js","assets/sparql-BkKi6dD7.js","assets/turtle-9LNJ9pTW.js","assets/stata-DHdbKgRR.js","assets/surrealql-CyT5l8ij.js","assets/svelte-B0qdszaC.js","assets/templ-cHeWFU4l.js","assets/go-DzbNi7d5.js","assets/ts-tags-CDDIZ5hF.js","assets/twig-DXN1ON9r.js","assets/vue-Ce6C56Aw.js","assets/vue-html-DySpIeKa.js","assets/vue-vine-CxzvI23K.js","assets/stylus-BxxF0E07.js","assets/xsl-CKRXmXyC.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{j as S}from"./jsx-runtime-E_STLsUe.js";import{m as Ls,R as As,I as Is,H as Ts,T as Rs,C as Ps}from"./react-error-boundary-CqpRjHaS.js";import{_ as m}from"./preload-helper-BO8DkkYf.js";import{r as ie,R as Ds}from"./index-BA7m1RGU.js";import{R as Ns,T as Os,V as Ms,I as $s,P as Vs,C as Hs,S as Us,a as Gs,G as js,L as Fs,c as Bs,d as zs,e as Ws,f as qs}from"./index-BGq-GPu-.js";import{I as he,d as Xs,c as Ft,a as Jr}from"./misc-B-Vsvh_e.js";import{A as Yr,T as Ks,d as Qs,k as Js,L as Ys,F as Zs}from"./chunk-EVOBXE3Y-CgtC8-HP.js";import{u as ea}from"./index-BHDWH1tb.js";import{L as Ct}from"./launch-editor-Bx2LLYzj.js";import{a as ta}from"./root-loader-acoY0KPP.js";import{D as na}from"./epic-video-CAyT561C.js";import{u as ia}from"./revalidation-ws-BOwCYmKJ.js";import{S as Gn}from"./tooltip-Bkjc86W7.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"68b7358d500c4a6a64cd0651544f83b028a3862e"};var e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="79b60b66-8a9e-42db-8ca7-5fd6ec99881c",t._sentryDebugIdIdentifier="sentry-dbid-79b60b66-8a9e-42db-8ca7-5fd6ec99881c")}catch{}})();const Bt="diffs-container",ra=/(?=^From [a-f0-9]+ .+$)/m,$t=/(?=^diff --git)/gm,Di=/(?=^---\s+\S)/gm,oa=/(?=^@@ )/gm,sa=/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(?: (.*))?/m,hn=new RegExp("(?<=\\n)"),aa=/^(---|\+\+\+)\s+([^\t\r\n]+)/,la=/^(---|\+\+\+)\s+[ab]\/([^\t\r\n]+)/,da=/^diff --git (?:"a\/(.+?)"|a\/(.+?)) (?:"b\/(.+?)"|b\/(.+?))$/,ca=/^index ([0-9a-f]+)\.\.([0-9a-f]+)(?: (\d+))?$/i,hi="header-prefix",pi="header-metadata",mi="header-custom",ve={dark:"pierre-dark",light:"pierre-light"},Zr="data-theme-css",eo="data-unsafe-css",Ke=1,ua={hunkLineCount:50,lineHeight:20,diffHeaderHeight:44,hunkSeparatorHeight:32,fileGap:8},fa=Object.freeze({fromStart:0,fromEnd:0}),Ni={startingLine:0,totalLines:1/0,bufferBefore:0,bufferAfter:0},ha={startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:0};function Oi(t,e){return t?.start===e?.start&&t?.end===e?.end&&t?.side===e?.side&&t?.endSide===e?.endSide}function _e(t){return{type:"text",value:t}}function N({tagName:t,children:e=[],properties:n={}}){return{type:"element",tagName:t,properties:n,children:e}}function zt({name:t,width:e=16,height:n=16,properties:i}){return N({tagName:"svg",properties:{width:e,height:n,viewBox:"0 0 16 16",...i},children:[N({tagName:"use",properties:{href:`#${t.replace(/^#/,"")}`}})]})}function pa(t){let e=t.children[0];for(;e!=null;){if(e.type==="element"&&e.tagName==="code")return e;"children"in e?e=e.children[0]:e=null}}function Et(t){return N({tagName:"div",properties:{"data-gutter":""},children:t})}function ma(t,e,n,i={}){return N({tagName:"div",properties:{"data-line-type":t,"data-column-number":e,"data-line-index":n,...i},children:e!=null?[N({tagName:"span",properties:{"data-line-number-content":""},children:[_e(`${e}`)]})]:void 0})}function ue(t,e,n){return N({tagName:"div",properties:{"data-gutter-buffer":e,"data-buffer-size":n,"data-line-type":e==="annotation"?void 0:t,style:e==="annotation"?`grid-row: span ${n};`:`grid-row: span ${n};min-height:calc(${n} * 1lh);`}})}function ga(){return N({tagName:"button",properties:{"data-utility-button":"",type:"button"},children:[zt({name:"diffs-icon-plus",properties:{"data-icon":""}})]})}function ba(t,e){return t.lineNumber===e.lineNumber&&t.side===e.side}const va=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class _t{constructor(e,n,i){this.normal=n,this.property=e,i&&(this.space=i)}}_t.prototype.normal={};_t.prototype.property={};_t.prototype.space=void 0;function to(t,e){const n={},i={};for(const r of t)Object.assign(n,r.property),Object.assign(i,r.normal);return new _t(n,i,e)}function jn(t){return t.toLowerCase()}class Y{constructor(e,n){this.attribute=n,this.property=e}}Y.prototype.attribute="";Y.prototype.booleanish=!1;Y.prototype.boolean=!1;Y.prototype.commaOrSpaceSeparated=!1;Y.prototype.commaSeparated=!1;Y.prototype.defined=!1;Y.prototype.mustUseProperty=!1;Y.prototype.number=!1;Y.prototype.overloadedBoolean=!1;Y.prototype.property="";Y.prototype.spaceSeparated=!1;Y.prototype.space=void 0;let _a=0;const R=Ue(),j=Ue(),Fn=Ue(),x=Ue(),M=Ue(),Qe=Ue(),ne=Ue();function Ue(){return 2**++_a}const Bn=Object.freeze(Object.defineProperty({__proto__:null,boolean:R,booleanish:j,commaOrSpaceSeparated:ne,commaSeparated:Qe,number:x,overloadedBoolean:Fn,spaceSeparated:M},Symbol.toStringTag,{value:"Module"})),pn=Object.keys(Bn);class gi extends Y{constructor(e,n,i,r){let o=-1;if(super(e,n),Mi(this,"space",r),typeof i=="number")for(;++o<pn.length;){const s=pn[o];Mi(this,pn[o],(i&Bn[s])===Bn[s])}}}gi.prototype.defined=!0;function Mi(t,e,n){n&&(t[e]=n)}function tt(t){const e={},n={};for(const[i,r]of Object.entries(t.properties)){const o=new gi(i,t.transform(t.attributes||{},i),r,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),e[i]=o,n[jn(i)]=i,n[jn(o.attribute)]=i}return new _t(e,n,t.space)}const no=tt({properties:{ariaActiveDescendant:null,ariaAtomic:j,ariaAutoComplete:null,ariaBusy:j,ariaChecked:j,ariaColCount:x,ariaColIndex:x,ariaColSpan:x,ariaControls:M,ariaCurrent:null,ariaDescribedBy:M,ariaDetails:null,ariaDisabled:j,ariaDropEffect:M,ariaErrorMessage:null,ariaExpanded:j,ariaFlowTo:M,ariaGrabbed:j,ariaHasPopup:null,ariaHidden:j,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:M,ariaLevel:x,ariaLive:null,ariaModal:j,ariaMultiLine:j,ariaMultiSelectable:j,ariaOrientation:null,ariaOwns:M,ariaPlaceholder:null,ariaPosInSet:x,ariaPressed:j,ariaReadOnly:j,ariaRelevant:null,ariaRequired:j,ariaRoleDescription:M,ariaRowCount:x,ariaRowIndex:x,ariaRowSpan:x,ariaSelected:j,ariaSetSize:x,ariaSort:null,ariaValueMax:x,ariaValueMin:x,ariaValueNow:x,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function io(t,e){return e in t?t[e]:e}function ro(t,e){return io(t,e.toLowerCase())}const ya=tt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qe,acceptCharset:M,accessKey:M,action:null,allow:null,allowFullScreen:R,allowPaymentRequest:R,allowUserMedia:R,alt:null,as:null,async:R,autoCapitalize:null,autoComplete:M,autoFocus:R,autoPlay:R,blocking:M,capture:null,charSet:null,checked:R,cite:null,className:M,cols:x,colSpan:null,content:null,contentEditable:j,controls:R,controlsList:M,coords:x|Qe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:R,defer:R,dir:null,dirName:null,disabled:R,download:Fn,draggable:j,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:R,formTarget:null,headers:M,height:x,hidden:Fn,high:x,href:null,hrefLang:null,htmlFor:M,httpEquiv:M,id:null,imageSizes:null,imageSrcSet:null,inert:R,inputMode:null,integrity:null,is:null,isMap:R,itemId:null,itemProp:M,itemRef:M,itemScope:R,itemType:M,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:R,low:x,manifest:null,max:null,maxLength:x,media:null,method:null,min:null,minLength:x,multiple:R,muted:R,name:null,nonce:null,noModule:R,noValidate:R,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:R,optimum:x,pattern:null,ping:M,placeholder:null,playsInline:R,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:R,referrerPolicy:null,rel:M,required:R,reversed:R,rows:x,rowSpan:x,sandbox:M,scope:null,scoped:R,seamless:R,selected:R,shadowRootClonable:R,shadowRootDelegatesFocus:R,shadowRootMode:null,shape:null,size:x,sizes:null,slot:null,span:x,spellCheck:j,src:null,srcDoc:null,srcLang:null,srcSet:null,start:x,step:null,style:null,tabIndex:x,target:null,title:null,translate:null,type:null,typeMustMatch:R,useMap:null,value:j,width:x,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:M,axis:null,background:null,bgColor:null,border:x,borderColor:null,bottomMargin:x,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:R,declare:R,event:null,face:null,frame:null,frameBorder:null,hSpace:x,leftMargin:x,link:null,longDesc:null,lowSrc:null,marginHeight:x,marginWidth:x,noResize:R,noHref:R,noShade:R,noWrap:R,object:null,profile:null,prompt:null,rev:null,rightMargin:x,rules:null,scheme:null,scrolling:j,standby:null,summary:null,text:null,topMargin:x,valueType:null,version:null,vAlign:null,vLink:null,vSpace:x,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:R,disableRemotePlayback:R,prefix:null,property:null,results:x,security:null,unselectable:null},space:"html",transform:ro}),wa=tt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ne,accentHeight:x,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:x,amplitude:x,arabicForm:null,ascent:x,attributeName:null,attributeType:null,azimuth:x,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:x,by:null,calcMode:null,capHeight:x,className:M,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:x,diffuseConstant:x,direction:null,display:null,dur:null,divisor:x,dominantBaseline:null,download:R,dx:null,dy:null,edgeMode:null,editable:null,elevation:x,enableBackground:null,end:null,event:null,exponent:x,externalResourcesRequired:null,fill:null,fillOpacity:x,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:Qe,g2:Qe,glyphName:Qe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:x,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:x,horizOriginX:x,horizOriginY:x,id:null,ideographic:x,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:x,k:x,k1:x,k2:x,k3:x,k4:x,kernelMatrix:ne,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:x,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:x,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:x,overlineThickness:x,paintOrder:null,panose1:null,path:null,pathLength:x,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:M,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:x,pointsAtY:x,pointsAtZ:x,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ne,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ne,rev:ne,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ne,requiredFeatures:ne,requiredFonts:ne,requiredFormats:ne,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:x,specularExponent:x,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:x,strikethroughThickness:x,string:null,stroke:null,strokeDashArray:ne,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:x,strokeOpacity:x,strokeWidth:null,style:null,surfaceScale:x,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne,tabIndex:x,tableValues:null,target:null,targetX:x,targetY:x,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ne,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:x,underlineThickness:x,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:x,values:null,vAlphabetic:x,vMathematical:x,vectorEffect:null,vHanging:x,vIdeographic:x,version:null,vertAdvY:x,vertOriginX:x,vertOriginY:x,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:x,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:io}),oo=tt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),so=tt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ro}),ao=tt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),ka=/[A-Z]/g,$i=/-[a-z]/g,Ca=/^data[-\w.:]+$/i;function Ea(t,e){const n=jn(e);let i=e,r=Y;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Ca.test(e)){if(e.charAt(4)==="-"){const o=e.slice(5).replace($i,xa);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=e.slice(4);if(!$i.test(o)){let s=o.replace(ka,Sa);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}r=gi}return new r(i,e)}function Sa(t){return"-"+t.toLowerCase()}function xa(t){return t.charAt(1).toUpperCase()}const La=to([no,ya,oo,so,ao],"html"),lo=to([no,wa,oo,so,ao],"svg"),Vi={}.hasOwnProperty;function Aa(t,e){const n=e||{};function i(r,...o){let s=i.invalid;const l=i.handlers;if(r&&Vi.call(r,t)){const a=String(r[t]);s=Vi.call(l,a)?l[a]:i.unknown}if(s)return s.call(this,r,...o)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}const Ia=/["&'<>`]/g,Ta=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ra=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Pa=/[|\\{}()[\]^$+*?.]/g,Hi=new WeakMap;function Da(t,e){if(t=t.replace(e.subset?Na(e.subset):Ia,i),e.subset||e.escapeOnly)return t;return t.replace(Ta,n).replace(Ra,i);function n(r,o,s){return e.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),e)}function i(r,o,s){return e.format(r.charCodeAt(0),s.charCodeAt(o+1),e)}}function Na(t){let e=Hi.get(t);return e||(e=Oa(t),Hi.set(t,e)),e}function Oa(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(Pa,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const Ma=/[\dA-Fa-f]/;function $a(t,e,n){const i="&#x"+t.toString(16).toUpperCase();return n&&e&&!Ma.test(String.fromCharCode(e))?i:i+";"}const Va=/\d/;function Ha(t,e,n){const i="&#"+String(t);return n&&e&&!Va.test(String.fromCharCode(e))?i:i+";"}const Ua=["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"],mn={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:"€"},Ga=["cent","copy","divide","gt","lt","not","para","times"],co={}.hasOwnProperty,zn={};let St;for(St in mn)co.call(mn,St)&&(zn[mn[St]]=St);const ja=/[^\dA-Za-z]/;function Fa(t,e,n,i){const r=String.fromCharCode(t);if(co.call(zn,r)){const o=zn[r],s="&"+o;return n&&Ua.includes(o)&&!Ga.includes(o)&&(!i||e&&e!==61&&ja.test(String.fromCharCode(e)))?s:s+";"}return""}function Ba(t,e,n){let i=$a(t,e,n.omitOptionalSemicolons),r;if((n.useNamedReferences||n.useShortestReferences)&&(r=Fa(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const o=Ha(t,e,n.omitOptionalSemicolons);o.length<i.length&&(i=o)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function Je(t,e){return Da(t,Object.assign({format:Ba},e))}const za=/^>|^->|<!--|-->|--!>|<!-$/g,Wa=[">"],qa=["<",">"];function Xa(t,e,n,i){return i.settings.bogusComments?"<?"+Je(t.value,Object.assign({},i.settings.characterReferences,{subset:Wa}))+">":"<!--"+t.value.replace(za,r)+"-->";function r(o){return Je(o,Object.assign({},i.settings.characterReferences,{subset:qa}))}}function Ka(t,e,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}function Ui(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let i=0,r=n.indexOf(e);for(;r!==-1;)i++,r=n.indexOf(e,r+e.length);return i}function Qa(t,e){const n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Ja(t){return t.join(" ").trim()}const Ya=/[ \t\n\f\r]/g;function bi(t){return typeof t=="object"?t.type==="text"?Gi(t.value):!1:Gi(t)}function Gi(t){return t.replace(Ya,"")===""}const q=fo(1),uo=fo(-1),Za=[];function fo(t){return e;function e(n,i,r){const o=n?n.children:Za;let s=(i||0)+t,l=o[s];if(!r)for(;l&&bi(l);)s+=t,l=o[s];return l}}const el={}.hasOwnProperty;function ho(t){return e;function e(n,i,r){return el.call(t,n.tagName)&&t[n.tagName](n,i,r)}}const vi=ho({body:nl,caption:gn,colgroup:gn,dd:sl,dt:ol,head:gn,html:tl,li:rl,optgroup:al,option:ll,p:il,rp:ji,rt:ji,tbody:cl,td:Fi,tfoot:ul,th:Fi,thead:dl,tr:fl});function gn(t,e,n){const i=q(n,e,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&bi(i.value.charAt(0)))}function tl(t,e,n){const i=q(n,e);return!i||i.type!=="comment"}function nl(t,e,n){const i=q(n,e);return!i||i.type!=="comment"}function il(t,e,n){const i=q(n,e);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function rl(t,e,n){const i=q(n,e);return!i||i.type==="element"&&i.tagName==="li"}function ol(t,e,n){const i=q(n,e);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function sl(t,e,n){const i=q(n,e);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function ji(t,e,n){const i=q(n,e);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function al(t,e,n){const i=q(n,e);return!i||i.type==="element"&&i.tagName==="optgroup"}function ll(t,e,n){const i=q(n,e);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function dl(t,e,n){const i=q(n,e);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function cl(t,e,n){const i=q(n,e);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function ul(t,e,n){return!q(n,e)}function fl(t,e,n){const i=q(n,e);return!i||i.type==="element"&&i.tagName==="tr"}function Fi(t,e,n){const i=q(n,e);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const hl=ho({body:gl,colgroup:bl,head:ml,html:pl,tbody:vl});function pl(t){const e=q(t,-1);return!e||e.type!=="comment"}function ml(t){const e=new Set;for(const i of t.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(e.has(i.tagName))return!1;e.add(i.tagName)}const n=t.children[0];return!n||n.type==="element"}function gl(t){const e=q(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&bi(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function bl(t,e,n){const i=uo(n,e),r=q(t,-1,!0);return n&&i&&i.type==="element"&&i.tagName==="colgroup"&&vi(i,n.children.indexOf(i),n)?!1:!!(r&&r.type==="element"&&r.tagName==="col")}function vl(t,e,n){const i=uo(n,e),r=q(t,-1);return n&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&vi(i,n.children.indexOf(i),n)?!1:!!(r&&r.type==="element"&&r.tagName==="tr")}const xt={name:[[`
|
|
3
|
-
\f\r &/=>`.split(""),`
|
|
4
|
-
\f\r "&'/=>\``.split("")],[`\0
|
|
5
|
-
\f\r "&'/<=>`.split(""),`\0
|
|
6
|
-
\f\r "&'/<=>\``.split("")]],unquoted:[[`
|
|
7
|
-
\f\r &>`.split(""),`\0
|
|
8
|
-
\f\r "&'<=>\``.split("")],[`\0
|
|
9
|
-
\f\r "&'<=>\``.split(""),`\0
|
|
10
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function _l(t,e,n,i){const r=i.schema,o=r.space==="svg"?!1:i.settings.omitOptionalTags;let s=r.space==="svg"?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase());const l=[];let a;r.space==="html"&&t.tagName==="svg"&&(i.schema=lo);const d=yl(i,t.properties),c=i.all(r.space==="html"&&t.tagName==="template"?t.content:t);return i.schema=r,c&&(s=!1),(d||!o||!hl(t,e,n))&&(l.push("<",t.tagName,d?" "+d:""),s&&(r.space==="svg"||i.settings.closeSelfClosing)&&(a=d.charAt(d.length-1),(!i.settings.tightSelfClosing||a==="/"||a&&a!=='"'&&a!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(c),!s&&(!o||!vi(t,e,n))&&l.push("</"+t.tagName+">"),l.join("")}function yl(t,e){const n=[];let i=-1,r;if(e){for(r in e)if(e[r]!==null&&e[r]!==void 0){const o=wl(t,r,e[r]);o&&n.push(o)}}for(;++i<n.length;){const o=t.settings.tightAttributes?n[i].charAt(n[i].length-1):void 0;i!==n.length-1&&o!=='"'&&o!=="'"&&(n[i]+=" ")}return n.join("")}function wl(t,e,n){const i=Ea(t.schema,e),r=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,o=t.settings.allowDangerousCharacters?0:1;let s=t.quote,l;if(i.overloadedBoolean&&(n===i.attribute||n==="")?n=!0:(i.boolean||i.overloadedBoolean)&&(typeof n!="string"||n===i.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const a=Je(i.attribute,Object.assign({},t.settings.characterReferences,{subset:xt.name[r][o]}));return n===!0||(n=Array.isArray(n)?(i.commaSeparated?Qa:Ja)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?a:(t.settings.preferUnquoted&&(l=Je(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:xt.unquoted[r][o]}))),l!==n&&(t.settings.quoteSmart&&Ui(n,s)>Ui(n,t.alternative)&&(s=t.alternative),l=s+Je(n,Object.assign({},t.settings.characterReferences,{subset:(s==="'"?xt.single:xt.double)[r][o],attribute:!0}))+s),a+(l&&"="+l))}const kl=["<","&"];function po(t,e,n,i){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:Je(t.value,Object.assign({},i.settings.characterReferences,{subset:kl}))}function Cl(t,e,n,i){return i.settings.allowDangerousHtml?t.value:po(t,e,n,i)}function El(t,e,n,i){return i.all(t)}const Sl=Aa("type",{invalid:xl,unknown:Ll,handlers:{comment:Xa,doctype:Ka,element:_l,raw:Cl,root:El,text:po}});function xl(t){throw new Error("Expected node, not `"+t+"`")}function Ll(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Al={},Il={},Tl=[];function Ye(t,e){const n=e||Al,i=n.quote||'"',r=i==='"'?"'":'"';if(i!=='"'&&i!=="'")throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:Rl,all:Pl,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||va,characterReferences:n.characterReferences||Il,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?lo:La,quote:i,alternative:r}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function Rl(t,e,n){return Sl(t,e,n,this)}function Pl(t){const e=[],n=t&&t.children||Tl;let i=-1;for(;++i<n.length;)e[i]=this.one(n[i],i,t);return e.join("")}var Dl=class{hoveredLine;hoveredToken;pre;gutterUtilityContainer;gutterUtilityButton;gutterUtilitySlot;interactiveLinesAttr=!1;interactiveLineNumbersAttr=!1;hasPointerListeners=!1;hasDocumentPointerListeners=!1;selectedRange=null;renderedSelectionRange;selectionAnchor;queuedSelectionRender;pointerSession={mode:"idle"};constructor(t,e){this.mode=t,this.options=e}setOptions(t){this.options=t}cleanUp(){this.pre?.removeEventListener("click",this.handlePointerClick),this.pre?.removeEventListener("pointerdown",this.handlePointerDown),this.pre?.removeEventListener("pointermove",this.handlePointerMove),this.pre?.removeEventListener("pointerleave",this.handlePointerLeave),this.pre?.removeAttribute("data-interactive-lines"),this.pre?.removeAttribute("data-interactive-line-numbers"),this.pre=void 0,this.gutterUtilityContainer?.remove(),this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.clearHoveredLine(),this.clearHoveredToken(),this.detachDocumentPointerListeners(),this.clearPointerSession(),this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.interactiveLinesAttr=!1,this.interactiveLineNumbersAttr=!1,this.hasPointerListeners=!1}setup(t){this.setSelectionDirty();const{usesCustomGutterUtility:e=!1,enableGutterUtility:n=!1}=this.options;this.pre!==t&&(this.cleanUp(),this.pre=t),n?this.ensureGutterUtilityNode(e):this.gutterUtilityContainer!=null&&(this.gutterUtilityContainer.remove(),this.gutterUtilityContainer=void 0,this.gutterUtilityButton=void 0,this.gutterUtilitySlot=void 0,this.pointerSession.mode==="gutterSelecting"&&(this.clearPointerSession(),this.detachDocumentPointerListeners())),this.syncPointerListeners(t),this.updateInteractiveLineAttributes(),this.renderSelection()}setSelectionDirty(){this.renderedSelectionRange=void 0}isSelectionDirty(){return this.renderedSelectionRange===null}setSelection(t){const e=!(t===this.selectedRange||Oi(t??void 0,this.selectedRange??void 0));!this.isSelectionDirty()&&!e||(this.selectedRange=t,this.renderSelection(),e&&this.notifySelectionCommitted())}getSelection(){return this.selectedRange}getHoveredLine=()=>{if(this.hoveredLine!=null){if(this.mode==="diff"&&this.hoveredLine.type==="diff-line")return{lineNumber:this.hoveredLine.lineNumber,side:this.hoveredLine.annotationSide};if(this.mode==="file"&&this.hoveredLine.type==="line")return{lineNumber:this.hoveredLine.lineNumber}}};handlePointerClick=t=>{const{onHunkExpand:e,onLineClick:n,onLineNumberClick:i,onTokenClick:r,onMergeConflictActionClick:o}=this.options;e==null&&n==null&&i==null&&o==null&&r==null||this.options.onGutterUtilityClick!=null&&Xi(t.composedPath())||(ke(this.options.__debugPointerEvents,"click","FileDiff.DEBUG.handlePointerClick:",t),this.handlePointerEvent({eventType:"click",event:t}))};handlePointerMove=t=>{const{lineHoverHighlight:e="disabled",onLineEnter:n,onLineLeave:i,onTokenEnter:r,onTokenLeave:o,enableGutterUtility:s=!1}=this.options;e==="disabled"&&!s&&n==null&&i==null&&r==null&&o==null||(ke(this.options.__debugPointerEvents,"move","FileDiff.DEBUG.handlePointerMove:",t),this.handlePointerEvent({eventType:"move",event:t}))};handlePointerLeave=t=>{const{__debugPointerEvents:e}=this.options;if(ke(e,"move","FileDiff.DEBUG.handlePointerLeave: no event"),this.hoveredLine==null&&this.hoveredToken==null){ke(e,"move","FileDiff.DEBUG.handlePointerLeave: returned early, no hovered line or token");return}this.gutterUtilityContainer?.remove(),this.hoveredToken!=null&&(this.options.onTokenLeave?.(this.hoveredToken,t),this.clearHoveredToken()),this.hoveredLine!=null&&(this.options.onLineLeave?.({...this.hoveredLine,event:t}),this.clearHoveredLine())};handlePointerEvent({eventType:t,event:e}){const{__debugPointerEvents:n}=this.options,i=e.composedPath();ke(n,t,"FileDiff.DEBUG.handlePointerEvent:",{eventType:t,composedPath:i});const r=this.resolvePointerTarget(i);ke(n,t,"FileDiff.DEBUG.handlePointerEvent: resolvePointerTarget result:",r);const{onLineClick:o,onLineNumberClick:s,onLineEnter:l,onLineLeave:a,onTokenClick:d,onTokenEnter:c,onTokenLeave:u,onHunkExpand:f,onMergeConflictActionClick:h}=this.options;switch(t){case"move":{const p=bn(r)&&this.hoveredLine?.lineElement===r.lineElement;Vt(r)&&this.hoveredToken?.tokenElement===r.tokenElement||(this.hoveredToken!=null&&(u?.(this.hoveredToken,e),this.clearHoveredToken()),Vt(r)&&(this.setHoveredToken(this.toTokenEventBaseProps(r)),c?.(this.hoveredToken,e))),p||(this.hoveredLine!=null&&(this.gutterUtilityContainer?.remove(),a?.({...this.hoveredLine,event:e}),this.clearHoveredLine()),bn(r)&&(this.setHoveredLine(this.toEventBaseProps(r)),this.gutterUtilityContainer!=null&&r.numberElement.appendChild(this.gutterUtilityContainer),l?.({...this.hoveredLine,event:e})));break}case"click":{if(r==null)break;if(Ml(r)&&h!=null){h(r);break}if(Ol(r)&&f!=null){f(r.hunkIndex,r.all||e.shiftKey?"both":r.direction,r.all||e.shiftKey?Number.POSITIVE_INFINITY:void 0);break}if(!bn(r))break;Vt(r)&&d!=null&&d(this.toTokenEventBaseProps(r),e);const p=this.toEventBaseProps(r);s!=null&&r.numberColumn?s({...p,event:e}):o?.({...p,event:e});break}}}syncPointerListeners(t){const{__debugPointerEvents:e,lineHoverHighlight:n="disabled",onLineClick:i,onLineNumberClick:r,onLineEnter:o,onLineLeave:s,onTokenClick:l,onTokenEnter:a,onTokenLeave:d,onHunkExpand:c,onMergeConflictActionClick:u,enableGutterUtility:f=!1,enableLineSelection:h=!1,onGutterUtilityClick:p}=this.options,b=p!=null,y=n!=="disabled"||i!=null||r!=null||o!=null||s!=null||l!=null||a!=null||d!=null||c!=null||u!=null||f||h||b;y&&!this.hasPointerListeners?(t.addEventListener("click",this.handlePointerClick),t.addEventListener("pointerdown",this.handlePointerDown),t.addEventListener("pointermove",this.handlePointerMove),t.addEventListener("pointerleave",this.handlePointerLeave),this.hasPointerListeners=!0,ke(e,"click","FileDiff.DEBUG.attachEventListeners: Attaching click events for:",(()=>{const v=[];return(e==="both"||e==="click")&&(i!=null&&v.push("onLineClick"),r!=null&&v.push("onLineNumberClick"),c!=null&&v.push("expandable hunk separators"),u!=null&&v.push("merge conflict actions")),v})()),ke(e,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer move event"),ke(e,"move","FileDiff.DEBUG.attachEventListeners: Attaching pointer leave event")):!y&&this.hasPointerListeners&&(t.removeEventListener("click",this.handlePointerClick),t.removeEventListener("pointerdown",this.handlePointerDown),t.removeEventListener("pointermove",this.handlePointerMove),t.removeEventListener("pointerleave",this.handlePointerLeave),this.hasPointerListeners=!1);const _=this.pointerSession.mode==="selecting"||this.pointerSession.mode==="pendingSingleLineUnselect",g=this.pointerSession.mode==="gutterSelecting";(!h&&_||!b&&g)&&(this.clearPointerSession(),this.detachDocumentPointerListeners(),this.selectionAnchor=void 0,this.clearPendingSingleLineState())}updateInteractiveLineAttributes(){if(this.pre==null)return;const{onLineClick:t,onLineNumberClick:e,enableLineSelection:n=!1}=this.options,i=t!=null,r=e!=null||n;i&&!this.interactiveLinesAttr?(this.pre.setAttribute("data-interactive-lines",""),this.interactiveLinesAttr=!0):!i&&this.interactiveLinesAttr&&(this.pre.removeAttribute("data-interactive-lines"),this.interactiveLinesAttr=!1),r&&!this.interactiveLineNumbersAttr?(this.pre.setAttribute("data-interactive-line-numbers",""),this.interactiveLineNumbersAttr=!0):!r&&this.interactiveLineNumbersAttr&&(this.pre.removeAttribute("data-interactive-line-numbers"),this.interactiveLineNumbersAttr=!1)}handlePointerDown=t=>{if(t.pointerType==="mouse"&&t.button!==0||this.pre==null||this.pointerSession.mode!=="idle")return;const e=t.composedPath();Xi(e)&&this.options.onGutterUtilityClick!=null?this.startGutterSelectionFromPointerDown(t,e):this.startLineSelectionFromPointerDown(t,e)};startLineSelectionFromPointerDown(t,e){const{enableLineSelection:n=!1}=this.options;if(!n)return;const i=this.getSelectionPointerInfo(e,!0);if(i==null)return;const{pre:r}=this;if(r==null)return;t.preventDefault();const{lineNumber:o,eventSide:s,lineIndex:l}=i;if(t.shiftKey&&this.selectedRange!=null){const a=this.getIndexesFromSelection(this.selectedRange,r.getAttribute("data-diff-type")==="split");if(a==null)return;const d=a.start<=a.end?l>=a.start:l<=a.end;this.selectionAnchor={lineNumber:d?this.selectedRange.start:this.selectedRange.end,side:d?this.selectedRange.side:this.selectedRange.endSide??this.selectedRange.side},this.updateSelection(o,s,!1),this.notifySelectionStart(this.selectedRange),this.pointerSession={mode:"selecting",pointerId:t.pointerId},this.attachDocumentPointerListeners();return}if(this.selectedRange?.start===o&&this.selectedRange?.end===o){const a={lineNumber:o,side:s};this.selectionAnchor=a,this.pointerSession={mode:"pendingSingleLineUnselect",pointerId:t.pointerId,anchor:a,pending:a},this.attachDocumentPointerListeners();return}this.selectedRange=null,this.selectionAnchor={lineNumber:o,side:s},this.updateSelection(o,s,!1),this.notifySelectionStart(this.selectedRange),this.pointerSession={mode:"selecting",pointerId:t.pointerId},this.attachDocumentPointerListeners()}startGutterSelectionFromPointerDown(t,e){const{enableLineSelection:n=!1,onGutterUtilityClick:i}=this.options;if(i==null)return;const r=this.getSelectionPointFromPath(e);r!=null&&(t.preventDefault(),t.stopPropagation(),this.pointerSession={mode:"gutterSelecting",pointerId:t.pointerId,anchor:r,current:r},n&&(this.selectionAnchor={lineNumber:r.lineNumber,side:r.side},this.updateSelection(r.lineNumber,r.side,!1),this.notifySelectionStart(this.selectedRange)),this.attachDocumentPointerListeners())}handleDocumentPointerMove=t=>{const{enableLineSelection:e=!1}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(t.pointerId!==this.pointerSession.pointerId)return;const n=this.getSelectionPointFromPath(t.composedPath());if(n==null)return;this.pointerSession.current=n,e===!0&&this.updateSelection(n.lineNumber,n.side);return}case"selecting":{if(t.pointerId!==this.pointerSession.pointerId)return;const n=this.getSelectionPointerInfo(t.composedPath(),!1);if(n==null||this.selectionAnchor==null)return;this.updateSelection(n.lineNumber,n.eventSide);return}case"pendingSingleLineUnselect":{if(t.pointerId!==this.pointerSession.pointerId)return;const n=this.getSelectionPointerInfo(t.composedPath(),!1);if(n==null||this.selectionAnchor==null)return;const i={lineNumber:n.lineNumber,side:n.eventSide};if(ba(this.pointerSession.pending,i))return;this.updateSelection(n.lineNumber,n.eventSide,!1),this.notifySelectionStart(this.selectedRange),this.notifySelectionChangeDelta(),this.pointerSession={mode:"selecting",pointerId:t.pointerId};return}}};handleDocumentPointerUp=t=>{const{enableLineSelection:e=!1,onGutterUtilityClick:n}=this.options;switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":{if(t.pointerId!==this.pointerSession.pointerId)return;const i=this.getSelectionPointFromPath(t.composedPath());i!=null&&(this.pointerSession.current=i,e&&this.updateSelection(i.lineNumber,i.side)),n?.(this.buildSelectedLineRange(this.pointerSession.anchor,this.pointerSession.current)),this.selectionAnchor=void 0,e&&(this.notifySelectionEnd(this.selectedRange),this.notifySelectionCommitted()),this.clearPointerSession(),this.detachDocumentPointerListeners();return}case"pendingSingleLineUnselect":if(t.pointerId!==this.pointerSession.pointerId)return;this.updateSelection(null,void 0,!1),this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.detachDocumentPointerListeners(),this.notifySelectionEnd(this.selectedRange),this.notifySelectionCommitted();return;case"selecting":if(t.pointerId!==this.pointerSession.pointerId)return;this.selectionAnchor=void 0,this.detachDocumentPointerListeners(),this.clearPointerSession(),this.notifySelectionEnd(this.selectedRange),this.notifySelectionCommitted()}};handleDocumentPointerCancel=t=>{switch(this.pointerSession.mode){case"idle":return;case"gutterSelecting":case"selecting":case"pendingSingleLineUnselect":if("pointerId"in this.pointerSession&&t.pointerId!==this.pointerSession.pointerId)return;this.selectionAnchor=void 0,this.clearPendingSingleLineState(),this.clearPointerSession(),this.detachDocumentPointerListeners()}};clearHoveredLine(){this.hoveredLine!=null&&(this.hoveredLine.lineElement.removeAttribute("data-hovered"),this.hoveredLine.numberElement.removeAttribute("data-hovered"),this.hoveredLine=void 0)}setHoveredLine(t){const{lineHoverHighlight:e="disabled"}=this.options;this.hoveredLine!=null&&this.clearHoveredLine(),this.hoveredLine=t,e!=="disabled"&&((e==="both"||e==="line")&&this.hoveredLine.lineElement.setAttribute("data-hovered",""),(e==="both"||e==="number")&&this.hoveredLine.numberElement.setAttribute("data-hovered",""))}clearHoveredToken(){this.hoveredToken!=null&&(this.hoveredToken=void 0)}setHoveredToken(t){this.hoveredToken!=null&&this.clearHoveredToken(),this.hoveredToken=t}ensureGutterUtilityNode(t){if(this.gutterUtilityContainer==null&&(this.gutterUtilityContainer=document.createElement("div"),this.gutterUtilityContainer.setAttribute("data-gutter-utility-slot","")),t)this.gutterUtilityButton!=null&&(this.gutterUtilityButton.remove(),this.gutterUtilityButton=void 0),this.gutterUtilitySlot==null&&(this.gutterUtilitySlot=document.createElement("slot"),this.gutterUtilitySlot.name="gutter-utility-slot"),this.gutterUtilitySlot.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilitySlot);else{if(this.gutterUtilitySlot?.remove(),this.gutterUtilitySlot=void 0,this.gutterUtilityButton==null){const e=document.createElement("div");e.innerHTML=Ye(ga());const n=e.firstElementChild;if(!(n instanceof HTMLButtonElement))throw new Error("InteractionManager.ensureGutterUtilityNode: Node element should be a button");n.remove(),this.gutterUtilityButton=n}this.gutterUtilityButton.parentNode!==this.gutterUtilityContainer&&this.gutterUtilityContainer.replaceChildren(this.gutterUtilityButton)}}attachDocumentPointerListeners(){this.hasDocumentPointerListeners||(document.addEventListener("pointermove",this.handleDocumentPointerMove),document.addEventListener("pointerup",this.handleDocumentPointerUp),document.addEventListener("pointercancel",this.handleDocumentPointerCancel),this.hasDocumentPointerListeners=!0)}detachDocumentPointerListeners(){this.hasDocumentPointerListeners&&(document.removeEventListener("pointermove",this.handleDocumentPointerMove),document.removeEventListener("pointerup",this.handleDocumentPointerUp),document.removeEventListener("pointercancel",this.handleDocumentPointerCancel),this.hasDocumentPointerListeners=!1)}clearPointerSession(){this.pointerSession={mode:"idle"}}clearPendingSingleLineState(){this.pointerSession.mode==="pendingSingleLineUnselect"&&(this.pointerSession={mode:"idle"})}getSelectionPointerInfo(t,e){const n=this.resolvePointerTarget(t);if(Wn(n)&&!(e&&!n.numberColumn)&&n.splitLineIndex!=null)return{lineIndex:n.splitLineIndex,lineNumber:n.lineNumber,eventSide:this.mode==="diff"?n.side:void 0}}getSelectionPointFromPath(t){const e=this.resolvePointerTarget(t);if(Wn(e))return{lineNumber:e.lineNumber,side:this.mode==="diff"?e.side:void 0}}getLineIndex(t,e){const{getLineIndex:n}=this.options;return n!=null?n(t,e):[t-1,t-1]}updateSelection(t,e,n=!0){const{selectedRange:i}=this;let r;if(t==null)r=null;else{const o=this.selectionAnchor?.side??e,s=this.selectionAnchor?.lineNumber??t;r=this.buildSelectionRange(s,t,o,e)}Oi(i??void 0,r??void 0)||(this.selectedRange=r,n&&this.notifySelectionChangeDelta(),this.queuedSelectionRender??=requestAnimationFrame(this.renderSelection))}getIndexesFromSelection(t,e){if(this.pre==null)return;const n=this.getLineIndex(t.start,t.side),i=this.getLineIndex(t.end,t.endSide??t.side);return n!=null&&i!=null?{start:e?n[1]:n[0],end:e?i[1]:i[0]}:void 0}renderSelection=()=>{if(this.queuedSelectionRender!=null&&(cancelAnimationFrame(this.queuedSelectionRender),this.queuedSelectionRender=void 0),this.pre==null||this.renderedSelectionRange===this.selectedRange)return;const t=this.pre.querySelectorAll("[data-selected-line]");for(const l of t)l.removeAttribute("data-selected-line");if(this.renderedSelectionRange=this.selectedRange,this.selectedRange==null)return;const{children:e}=this.pre;if(e.length===0)return;if(e.length>2)throw console.error(e),new Error("InteractionManager.renderSelection: Somehow there are more than 2 code elements...");const n=this.pre.getAttribute("data-diff-type")==="split",i=this.getIndexesFromSelection(this.selectedRange,n);if(i==null)throw console.error({rowRange:i,selectedRange:this.selectedRange}),new Error("InteractionManager.renderSelection: No valid rowRange");const r=i.start===i.end,o=Math.min(i.start,i.end),s=Math.max(i.start,i.end);for(const l of e){const[a,d]=l.children,c=d.children.length;if(c!==a.children.length)throw new Error("InteractionManager.renderSelection: gutter and content children dont match, something is wrong");for(let u=0;u<c;u++){const f=d.children[u],h=a.children[u];if(!(f instanceof HTMLElement)||!(h instanceof HTMLElement))continue;const p=this.parseLineIndex(f,n);if((p??0)>s)break;if(p==null||p<o)continue;let b=r?"single":p===o?"first":p===s?"last":"";f.setAttribute("data-selected-line",b),h.setAttribute("data-selected-line",b),h.nextSibling instanceof HTMLElement&&f.nextSibling instanceof HTMLElement&&(f.nextSibling.hasAttribute("data-line-annotation")||f.nextSibling.hasAttribute("data-merge-conflict-actions"))&&(r?(b="last",f.setAttribute("data-selected-line","first")):p===o?b="":p===s&&f.setAttribute("data-selected-line",""),f.nextSibling.setAttribute("data-selected-line",b),h.nextSibling.setAttribute("data-selected-line",b))}}};notifySelectionCommitted(){this.options.onLineSelected?.(this.selectedRange??null)}notifySelectionChangeDelta(){this.options.onLineSelectionChange?.(this.selectedRange??null)}notifySelectionStart(t){this.options.onLineSelectionStart?.(t)}notifySelectionEnd(t){this.options.onLineSelectionEnd?.(t)}toEventBaseProps(t){return this.mode==="file"?{type:"line",lineElement:t.lineElement,lineNumber:t.lineNumber,numberColumn:t.numberColumn,numberElement:t.numberElement}:{type:"diff-line",annotationSide:t.side,lineType:t.lineType,lineElement:t.lineElement,numberElement:t.numberElement,lineNumber:t.lineNumber,numberColumn:t.numberColumn}}toTokenEventBaseProps({lineCharEnd:t,lineCharStart:e,lineNumber:n,side:i,tokenElement:r,tokenText:o}){return this.mode==="file"?{type:"token",lineCharEnd:t,lineCharStart:e,lineNumber:n,tokenElement:r,tokenText:o}:{type:"token",lineCharEnd:t,lineCharStart:e,lineNumber:n,side:i,tokenElement:r,tokenText:o}}buildSelectedLineRange(t,e){return this.buildSelectionRange(t.lineNumber,e.lineNumber,t.side,e.side)}buildSelectionRange(t,e,n,i){return{start:t,end:e,...n!=null?{side:n}:{},...n!==i&&i!=null?{endSide:i}:{}}}resolvePointerTarget(t){let e=!1,n,i,r,o,s,l,a,d,c,u;for(const h of t){if(!(h instanceof HTMLElement))continue;if(u==null&&h.hasAttribute("data-merge-conflict-action")){const _=h.getAttribute("data-merge-conflict-action")??void 0,g=h.getAttribute("data-merge-conflict-conflict-index")??void 0,v=g!=null?Number.parseInt(g,10):NaN;$l(_)&&Number.isFinite(v)&&(u={kind:"merge-conflict-action",resolution:_,conflictIndex:v})}if(l==null&&h.hasAttribute("data-char")){l=h;const _=h.getAttribute("data-char");if(_!=null){const g=Number.parseInt(_,10);if(!Number.isNaN(g)){const v=h.textContent??"",k=g+v.length;(v.trim()!==""||this.options.enableTokenInteractionsOnWhitespace===!0)&&(a={tokenElement:l,lineCharStart:g,lineCharEnd:k,tokenText:v});continue}}}const p=s==null?h.getAttribute("data-column-number")??void 0:void 0;if(p!=null){s=h,c=Number.parseInt(p,10),e=!0,n=qi(h),o=h.getAttribute("data-line-index")??void 0;continue}const b=r==null?h.getAttribute("data-line")??void 0:void 0;if(b!=null){r=h,c=Number.parseInt(b,10),n=qi(h),o=h.getAttribute("data-line-index")??void 0;continue}if(d==null&&(h.hasAttribute("data-expand-button")||h.hasAttribute("data-unmodified-lines"))){d={hunkIndex:void 0,direction:h.hasAttribute("data-expand-up")?"up":h.hasAttribute("data-expand-down")?"down":"both",all:h.hasAttribute("data-expand-all-button")};continue}const y=d!=null?h.getAttribute("data-expand-index")??void 0:void 0;if(d!=null&&y!=null){const _=Number.parseInt(y,10);Number.isNaN(_)||(d.hunkIndex=_);continue}if(i==null&&h.hasAttribute("data-code")){i=h;break}}if(u!=null)return u;if(d?.hunkIndex!=null)return{type:"line-info",hunkIndex:d.hunkIndex,direction:d.direction,all:d.all};if(r??=o!=null?zi(i,`[data-line][data-line-index="${o}"]`):void 0,s??=o!=null?zi(i,`[data-column-number][data-line-index="${o}"]`):void 0,i==null||r==null||s==null||n==null||c==null||Number.isNaN(c))return;const f=this.parseLineIndex(r,this.isSplitDiff());return a!=null?this.mode==="file"?{kind:"token",lineType:n,lineElement:r,lineNumber:c,numberColumn:e,numberElement:s,side:void 0,splitLineIndex:f,...a}:{kind:"token",lineType:n,lineElement:r,lineNumber:c,numberColumn:e,numberElement:s,side:Wi(n,i),splitLineIndex:f,...a}:this.mode==="file"?{kind:"line",lineType:n,lineElement:r,lineNumber:c,numberColumn:e,numberElement:s,side:void 0,splitLineIndex:f}:{kind:"line",lineType:n,lineElement:r,lineNumber:c,numberColumn:e,numberElement:s,side:Wi(n,i),splitLineIndex:f}}isSplitDiff(){return this.pre?.getAttribute("data-diff-type")==="split"}parseLineIndex(t,e){const n=(t.getAttribute("data-line-index")??"").split(",").map(i=>Number.parseInt(i,10)).filter(i=>!Number.isNaN(i));if(e&&n.length===2)return n[1];if(!e)return n[0]}};function Bi({enableTokenInteractionsOnWhitespace:t,enableGutterUtility:e,enableHoverUtility:n,lineHoverHighlight:i,onGutterUtilityClick:r,onLineClick:o,onLineEnter:s,onLineLeave:l,onLineNumberClick:a,onTokenClick:d,onTokenEnter:c,onTokenLeave:u,renderGutterUtility:f,renderHoverUtility:h,__debugPointerEvents:p,enableLineSelection:b,onLineSelected:y,onLineSelectionStart:_,onLineSelectionChange:g,onLineSelectionEnd:v},k,C,w){return{enableTokenInteractionsOnWhitespace:t,enableGutterUtility:Nl({enableGutterUtility:e,enableHoverUtility:n,renderGutterUtility:f,renderHoverUtility:h,onGutterUtilityClick:r}),usesCustomGutterUtility:f!=null||h!=null,lineHoverHighlight:i,onGutterUtilityClick:r,onHunkExpand:k,onMergeConflictActionClick:w,onLineClick:o,onLineEnter:s,onLineLeave:l,onLineNumberClick:a,onTokenClick:d,onTokenEnter:c,onTokenLeave:u,__debugPointerEvents:p,enableLineSelection:b,onLineSelected:y,onLineSelectionStart:_,onLineSelectionChange:g,onLineSelectionEnd:v,getLineIndex:C}}function Nl({enableGutterUtility:t,enableHoverUtility:e,renderGutterUtility:n,renderHoverUtility:i,onGutterUtilityClick:r}){if(t!==void 0&&e!==void 0)throw new Error("Cannot use both 'enableGutterUtility' and deprecated 'enableHoverUtility'. Use only 'enableGutterUtility'.");if(n!=null&&i!=null)throw new Error("Cannot use both 'renderGutterUtility' and deprecated 'renderHoverUtility'. Use only 'renderGutterUtility'.");if(r!=null&&(n!=null||i!=null))throw new Error("Cannot use both 'onGutterUtilityClick' and render utility callbacks ('renderGutterUtility'/'renderHoverUtility'). Use only one gutter utility API.");return t??e??!1}function Wn(t){return t!=null&&"kind"in t&&t.kind==="line"}function Vt(t){return t!=null&&"kind"in t&&t.kind==="token"}function bn(t){return Wn(t)||Vt(t)}function Ol(t){return"type"in t&&t.type==="line-info"}function Ml(t){return"kind"in t&&t.kind==="merge-conflict-action"}function $l(t){return t==="current"||t==="incoming"||t==="both"}function zi(t,e){const n=t?.querySelector(e);return n instanceof HTMLElement?n:void 0}function Wi(t,e){switch(t){case"change-deletion":return"deletions";case"change-addition":return"additions";default:return e.hasAttribute("data-deletions")?"deletions":"additions"}}function qi(t){const e=t.getAttribute("data-line-type");if(e!=null)switch(e){case"change-deletion":case"change-addition":case"context":case"context-expanded":return e;default:return}}function Xi(t){for(const e of t)if(e instanceof HTMLElement&&e.hasAttribute("data-utility-button"))return!0;return!1}function ke(t="none",e,...n){switch(t){case"none":return;case"both":break;case"click":if(e!=="click")return;break;case"move":if(e!=="move")return;break}console.log(...n)}var Vl=class{observedNodes=new Map;queuedUpdates=new Map;cleanUp(){this.resizeObserver?.disconnect(),this.observedNodes.clear(),this.queuedUpdates.clear()}resizeObserver;setup(t,e){this.resizeObserver??=new ResizeObserver(this.handleResizeObserver);const n=t.querySelectorAll("code"),i=new Map(this.observedNodes);this.observedNodes.clear();for(const r of n){let o=i.get(r);if(o!=null&&o.type!=="code")throw new Error("ResizeManager.setup: somehow a code node is being used for an annotation, should be impossible");let s=r.firstElementChild;s instanceof HTMLElement||(s=null),o!=null?(this.observedNodes.set(r,o),i.delete(r),o.numberElement!==s?(o.numberElement!=null&&this.resizeObserver.unobserve(o.numberElement),s!=null&&(this.resizeObserver.observe(s),i.delete(s),this.observedNodes.set(s,o)),o.numberElement=s):o.numberElement!=null&&(i.delete(o.numberElement),this.observedNodes.set(o.numberElement,o))):(o={type:"code",codeElement:r,numberElement:s,codeWidth:"auto",numberWidth:0},this.observedNodes.set(r,o),this.resizeObserver.observe(r),s!=null&&(this.observedNodes.set(s,o),this.resizeObserver.observe(s)))}if(n.length>1&&!e){const r=t.querySelectorAll('[data-line-annotation*=","]'),o=new Map;for(const s of r){if(!(s instanceof HTMLElement))continue;const{lineAnnotation:l=""}=s.dataset;if(!/^\d+,\d+$/.test(l)){console.error("DiffFileRenderer.setupResizeObserver: Invalid element or annotation",{lineAnnotation:l,element:s});continue}let a=o.get(l);a==null&&(a=[],o.set(l,a)),a.push(s)}for(const[s,l]of o){if(l.length!==2){console.error("DiffFileRenderer.setupResizeObserver: Bad Pair",s,l);continue}const[a,d]=l,c=a.firstElementChild,u=d.firstElementChild;if(!(a instanceof HTMLElement)||!(d instanceof HTMLElement)||!(c instanceof HTMLElement)||!(u instanceof HTMLElement))continue;let f=i.get(c);if(f!=null){this.observedNodes.set(c,f),this.observedNodes.set(u,f),i.delete(c),i.delete(u);continue}f={type:"annotations",column1:{container:a,child:c,childHeight:c.getBoundingClientRect().height},column2:{container:d,child:u,childHeight:u.getBoundingClientRect().height},currentHeight:"auto"};const h=Math.max(f.column1.childHeight,f.column2.childHeight);this.applyNewHeight(f,h),this.observedNodes.set(c,f),this.observedNodes.set(u,f),this.resizeObserver.observe(c),this.resizeObserver.observe(u)}}for(const r of i.keys())r.isConnected&&(r.style.removeProperty("--diffs-column-content-width"),r.style.removeProperty("--diffs-column-number-width"),r.style.removeProperty("--diffs-column-width"),r.parentElement instanceof HTMLElement&&r.parentElement.style.removeProperty("--diffs-annotation-min-height")),this.resizeObserver.unobserve(r);i.clear()}handleResizeObserver=t=>{for(const e of t){const{target:n,borderBoxSize:i,contentBoxSize:r}=e;if(!(n instanceof HTMLElement)){console.error("FileDiff.handleResizeObserver: Invalid element for ResizeObserver",e);continue}const o=this.observedNodes.get(n);if(o==null){console.error("FileDiff.handleResizeObserver: Not a valid observed node",e);continue}if(o.type==="annotations"){const s=(()=>{if(n===o.column1.child)return o.column1;if(n===o.column2.child)return o.column2})();if(s==null){console.error("FileDiff.handleResizeObserver: Couldn't find a column for",{item:o,target:n});continue}s.childHeight=i[0].blockSize;const l=Math.max(o.column1.childHeight,o.column2.childHeight);this.applyNewHeight(o,l)}else if(o.type==="code"){const s=[n,r[0].inlineSize],l=this.queuedUpdates.get(o)??[];l.push(s),this.queuedUpdates.set(o,l)}}this.handleColumnChange()};handleColumnChange=()=>{for(const[t,e]of this.queuedUpdates)for(const[n,i]of e)if(n===t.codeElement){const r=Math.max(Math.floor(i),0);if(r!==t.codeWidth){const o=Math.max(r-t.numberWidth,0);t.codeWidth=r===0?"auto":r,t.codeElement.style.setProperty("--diffs-column-content-width",`${o>0?`${o}px`:"auto"}`),t.codeElement.style.setProperty("--diffs-column-width",`${typeof t.codeWidth=="number"?`${t.codeWidth}px`:"auto"}`)}t.numberElement!=null&&typeof t.codeWidth=="number"&&t.numberWidth===0&&e.push([t.numberElement,t.numberElement.getBoundingClientRect().width])}else if(n===t.numberElement){const r=Math.max(Math.ceil(i),0);if(r!==t.numberWidth&&(t.numberWidth=r,t.codeElement.style.setProperty("--diffs-column-number-width",`${t.numberWidth===0?"auto":`${t.numberWidth}px`}`),t.codeWidth!=="auto")){const o=Math.max(t.codeWidth-t.numberWidth,0);t.codeElement.style.setProperty("--diffs-column-content-width",`${o===0?"auto":`${o}px`}`)}}this.queuedUpdates.clear()};applyNewHeight(t,e){e!==t.currentHeight&&(t.currentHeight=Math.max(e,0),t.column1.container.style.setProperty("--diffs-annotation-min-height",`${t.currentHeight}px`),t.column2.container.style.setProperty("--diffs-annotation-min-height",`${t.currentHeight}px`))}};const ft=new Map,vn=new Map,Hl=new Map,qn=new Set;function Ki(t){for(const e of Array.isArray(t)?t:[t])if(!(e==="text"||e==="ansi")&&!qn.has(e))return!1;return!0}function Qi(t,e){t=Array.isArray(t)?t:[t];for(const n of t){if(qn.has(n.name))continue;let i=ft.get(n.name);i==null&&(i=n,ft.set(n.name,i)),qn.add(i.name),e.loadLanguageSync(i.data)}}function mo(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}let F=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Ul(t){return _i(t)}function _i(t){return Array.isArray(t)?Gl(t):t instanceof RegExp?t:typeof t=="object"?jl(t):t}function Gl(t){let e=[];for(let n=0,i=t.length;n<i;n++)e[n]=_i(t[n]);return e}function jl(t){let e={};for(let n in t)e[n]=_i(t[n]);return e}function go(t,...e){return e.forEach(n=>{for(let i in n)t[i]=n[i]}),t}function bo(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?bo(t.substring(0,t.length-1)):t.substr(~e+1)}var _n=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Lt=class{static hasCaptures(t){return t===null?!1:(_n.lastIndex=0,_n.test(t))}static replaceCaptures(t,e,n){return t.replace(_n,(i,r,o,s)=>{let l=n[parseInt(r||o,10)];if(l){let a=e.substring(l.start,l.end);for(;a[0]===".";)a=a.substring(1);switch(s){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return i})}};function vo(t,e){return t<e?-1:t>e?1:0}function _o(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,i=e.length;if(n===i){for(let r=0;r<n;r++){let o=vo(t[r],e[r]);if(o!==0)return o}return 0}return n-i}function Ji(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function yo(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var wo=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},Wt=class{constructor(t,e,n){this._colorMap=t,this._defaults=e,this._root=n}static createFromRawTheme(t,e){return this.createFromParsedTheme(zl(t),e)}static createFromParsedTheme(t,e){return ql(t,e)}_cachedMatchRoot=new wo(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,i=this._cachedMatchRoot.get(e).find(r=>Fl(t.parent,r.parentScopes));return i?new ko(i.fontStyle,i.foreground,i.background):null}},yn=class Ht{constructor(e,n){this.parent=e,this.scopeName=n}static push(e,n){for(const i of n)e=new Ht(e,i);return e}static from(...e){let n=null;for(let i=0;i<e.length;i++)n=new Ht(n,e[i]);return n}push(e){return new Ht(this,e)}getSegments(){let e=this;const n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const n=[];let i=this;for(;i&&i!==e;)n.push(i.scopeName),i=i.parent;return i===e?n.reverse():void 0}};function Fl(t,e){if(e.length===0)return!0;for(let n=0;n<e.length;n++){let i=e[n],r=!1;if(i===">"){if(n===e.length-1)return!1;i=e[++n],r=!0}for(;t&&!Bl(t.scopeName,i);){if(r)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function Bl(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var ko=class{constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}};function zl(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],i=0;for(let r=0,o=e.length;r<o;r++){let s=e[r];if(!s.settings)continue;let l;if(typeof s.scope=="string"){let u=s.scope;u=u.replace(/^[,]+/,""),u=u.replace(/[,]+$/,""),l=u.split(",")}else Array.isArray(s.scope)?l=s.scope:l=[""];let a=-1;if(typeof s.settings.fontStyle=="string"){a=0;let u=s.settings.fontStyle.split(" ");for(let f=0,h=u.length;f<h;f++)switch(u[f]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let d=null;typeof s.settings.foreground=="string"&&Ji(s.settings.foreground)&&(d=s.settings.foreground);let c=null;typeof s.settings.background=="string"&&Ji(s.settings.background)&&(c=s.settings.background);for(let u=0,f=l.length;u<f;u++){let p=l[u].trim().split(" "),b=p[p.length-1],y=null;p.length>1&&(y=p.slice(0,p.length-1),y.reverse()),n[i++]=new Wl(b,y,r,a,d,c)}}return n}var Wl=class{constructor(t,e,n,i,r,o){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=r,this.background=o}},J=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(J||{});function ql(t,e){t.sort((a,d)=>{let c=vo(a.scope,d.scope);return c!==0||(c=_o(a.parentScopes,d.parentScopes),c!==0)?c:a.index-d.index});let n=0,i="#000000",r="#ffffff";for(;t.length>=1&&t[0].scope==="";){let a=t.shift();a.fontStyle!==-1&&(n=a.fontStyle),a.foreground!==null&&(i=a.foreground),a.background!==null&&(r=a.background)}let o=new Xl(e),s=new ko(n,o.getId(i),o.getId(r)),l=new Ql(new Xn(0,null,-1,0,0),[]);for(let a=0,d=t.length;a<d;a++){let c=t[a];l.insert(0,c.scope,c.parentScopes,c.fontStyle,o.getId(c.foreground),o.getId(c.background))}return new Wt(o,s,l)}var Xl=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},Kl=Object.freeze([]),Xn=class Co{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,n,i,r,o){this.scopeDepth=e,this.parentScopes=n||Kl,this.fontStyle=i,this.foreground=r,this.background=o}clone(){return new Co(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let i=0,r=e.length;i<r;i++)n[i]=e[i].clone();return n}acceptOverwrite(e,n,i,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,n!==-1&&(this.fontStyle=n),i!==0&&(this.foreground=i),r!==0&&(this.background=r)}},Ql=class Kn{constructor(e,n=[],i={}){this._mainRule=e,this._children=i,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let i=0,r=0;for(;e.parentScopes[i]===">"&&i++,n.parentScopes[r]===">"&&r++,!(i>=e.parentScopes.length||r>=n.parentScopes.length);){const o=n.parentScopes[r].length-e.parentScopes[i].length;if(o!==0)return o;i++,r++}return n.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),r,o;if(i===-1?(r=e,o=""):(r=e.substring(0,i),o=e.substring(i+1)),this._children.hasOwnProperty(r))return this._children[r].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Kn._cmpBySpecificity),n}insert(e,n,i,r,o,s){if(n===""){this._doInsertHere(e,i,r,o,s);return}let l=n.indexOf("."),a,d;l===-1?(a=n,d=""):(a=n.substring(0,l),d=n.substring(l+1));let c;this._children.hasOwnProperty(a)?c=this._children[a]:(c=new Kn(this._mainRule.clone(),Xn.cloneArr(this._rulesWithParentScopes)),this._children[a]=c),c.insert(e+1,d,i,r,o,s)}_doInsertHere(e,n,i,r,o){if(n===null){this._mainRule.acceptOverwrite(e,i,r,o);return}for(let s=0,l=this._rulesWithParentScopes.length;s<l;s++){let a=this._rulesWithParentScopes[s];if(_o(a.parentScopes,n)===0){a.acceptOverwrite(e,i,r,o);return}}i===-1&&(i=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new Xn(e,n,i,r,o))}},Ze=class se{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const n=se.getLanguageId(e),i=se.getTokenType(e),r=se.getFontStyle(e),o=se.getForeground(e),s=se.getBackground(e);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:o,background:s})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,n,i,r,o,s,l){let a=se.getLanguageId(e),d=se.getTokenType(e),c=se.containsBalancedBrackets(e)?1:0,u=se.getFontStyle(e),f=se.getForeground(e),h=se.getBackground(e);return n!==0&&(a=n),i!==8&&(d=i),r!==null&&(c=r?1:0),o!==-1&&(u=o),s!==0&&(f=s),l!==0&&(h=l),(a<<0|d<<8|c<<10|u<<11|f<<15|h<<24)>>>0}};function qt(t,e){const n=[],i=Jl(t);let r=i.next();for(;r!==null;){let a=0;if(r.length===2&&r.charAt(1)===":"){switch(r.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=i.next()}let d=s();if(n.push({matcher:d,priority:a}),r!==",")break;r=i.next()}return n;function o(){if(r==="-"){r=i.next();const a=o();return d=>!!a&&!a(d)}if(r==="("){r=i.next();const a=l();return r===")"&&(r=i.next()),a}if(Yi(r)){const a=[];do a.push(r),r=i.next();while(Yi(r));return d=>e(a,d)}return null}function s(){const a=[];let d=o();for(;d;)a.push(d),d=o();return c=>a.every(u=>u(c))}function l(){const a=[];let d=s();for(;d&&(a.push(d),r==="|"||r===",");){do r=i.next();while(r==="|"||r===",");d=s()}return c=>a.some(u=>u(c))}}function Yi(t){return!!t&&!!t.match(/[\w\.:]+/)}function Jl(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;const i=n[0];return n=e.exec(t),i}}}function Eo(t){typeof t.dispose=="function"&&t.dispose()}var ht=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},Yl=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},Zl=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},ed=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ht(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const e=new Zl;for(const n of t)td(n,this.initialScopeName,this.repo,e);for(const n of e.references)if(n instanceof ht){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function td(t,e,n,i){const r=n.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const o=n.lookup(e);t instanceof ht?Ut({baseGrammar:o,selfGrammar:r},i):Qn(t.ruleName,{baseGrammar:o,selfGrammar:r,repository:r.repository},i);const s=n.injections(t.scopeName);if(s)for(const l of s)i.add(new ht(l))}function Qn(t,e,n){if(e.repository&&e.repository[t]){const i=e.repository[t];Xt([i],e,n)}}function Ut(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&Xt(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&Xt(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function Xt(t,e,n){for(const i of t){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);const r=i.repository?go({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&Xt(i.patterns,{...e,repository:r},n);const o=i.include;if(!o)continue;const s=So(o);switch(s.kind){case 0:Ut({...e,selfGrammar:e.baseGrammar},n);break;case 1:Ut(e,n);break;case 2:Qn(s.ruleName,{...e,repository:r},n);break;case 3:case 4:const l=s.scopeName===e.selfGrammar.scopeName?e.selfGrammar:s.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const a={baseGrammar:e.baseGrammar,selfGrammar:l,repository:r};s.kind===4?Qn(s.ruleName,a,n):Ut(a,n)}else s.kind===4?n.add(new Yl(s.scopeName,s.ruleName)):n.add(new ht(s.scopeName));break}}}var nd=class{kind=0},id=class{kind=1},rd=class{constructor(t){this.ruleName=t}kind=2},od=class{constructor(t){this.scopeName=t}kind=3},sd=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function So(t){if(t==="$base")return new nd;if(t==="$self")return new id;const e=t.indexOf("#");if(e===-1)return new od(t);if(e===0)return new rd(t.substring(1));{const n=t.substring(0,e),i=t.substring(e+1);return new sd(n,i)}}var ad=/\\(\d+)/,Zi=/\\(\d+)/g,ld=-1,xo=-2;var yt=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(t,e,n,i){this.$location=t,this.id=e,this._name=n||null,this._nameIsCapturing=Lt.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=Lt.hasCaptures(this._contentName)}get debugName(){const t=this.$location?`${bo(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${t}`}getName(t,e){return!this._nameIsCapturing||this._name===null||t===null||e===null?this._name:Lt.replaceCaptures(this._name,t,e)}getContentName(t,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Lt.replaceCaptures(this._contentName,t,e)}},dd=class extends yt{retokenizeCapturedWithRuleId;constructor(t,e,n,i,r){super(t,e,n,i),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,n,i){throw new Error("Not supported!")}},cd=class extends yt{_match;captures;_cachedCompiledPatterns;constructor(t,e,n,i,r){super(t,e,n,null),this._match=new pt(i,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new mt,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},er=class extends yt{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,i,r){super(t,e,n,i),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(const n of this.patterns)t.getRule(n).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new mt,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Jn=class extends yt{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,i,r,o,s,l,a,d){super(t,e,n,i),this._begin=new pt(r,this.id),this.beginCaptures=o,this._end=new pt(s||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=a||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,i)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new mt;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Kt=class extends yt{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,n,i,r,o,s,l,a){super(t,e,n,i),this._begin=new pt(r,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=new pt(s,xo),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new mt;for(const e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,n,i){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,i)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new mt,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||""),this._cachedCompiledWhilePatterns}},Lo=class Q{static createCaptureRule(e,n,i,r,o){return e.registerRule(s=>new dd(n,s,i,r,o))}static getCompiledRuleId(e,n,i){return e.id||n.registerRule(r=>{if(e.id=r,e.match)return new cd(e.$vscodeTextmateLocation,e.id,e.name,e.match,Q._compileCaptures(e.captures,n,i));if(typeof e.begin>"u"){e.repository&&(i=go({},i,e.repository));let o=e.patterns;return typeof o>"u"&&e.include&&(o=[{include:e.include}]),new er(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,Q._compilePatterns(o,n,i))}return e.while?new Kt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,Q._compileCaptures(e.beginCaptures||e.captures,n,i),e.while,Q._compileCaptures(e.whileCaptures||e.captures,n,i),Q._compilePatterns(e.patterns,n,i)):new Jn(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,Q._compileCaptures(e.beginCaptures||e.captures,n,i),e.end,Q._compileCaptures(e.endCaptures||e.captures,n,i),e.applyEndPatternLast,Q._compilePatterns(e.patterns,n,i))}),e.id}static _compileCaptures(e,n,i){let r=[];if(e){let o=0;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const l=parseInt(s,10);l>o&&(o=l)}for(let s=0;s<=o;s++)r[s]=null;for(const s in e){if(s==="$vscodeTextmateLocation")continue;const l=parseInt(s,10);let a=0;e[s].patterns&&(a=Q.getCompiledRuleId(e[s],n,i)),r[l]=Q.createCaptureRule(n,e[s].$vscodeTextmateLocation,e[s].name,e[s].contentName,a)}}return r}static _compilePatterns(e,n,i){let r=[];if(e)for(let o=0,s=e.length;o<s;o++){const l=e[o];let a=-1;if(l.include){const d=So(l.include);switch(d.kind){case 0:case 1:a=Q.getCompiledRuleId(i[l.include],n,i);break;case 2:let c=i[d.ruleName];c&&(a=Q.getCompiledRuleId(c,n,i));break;case 3:case 4:const u=d.scopeName,f=d.kind===4?d.ruleName:null,h=n.getExternalGrammar(u,i);if(h)if(f){let p=h.repository[f];p&&(a=Q.getCompiledRuleId(p,n,h.repository))}else a=Q.getCompiledRuleId(h.repository.$self,n,h.repository);break}}else a=Q.getCompiledRuleId(l,n,i);if(a!==-1){const d=n.getRule(a);let c=!1;if((d instanceof er||d instanceof Jn||d instanceof Kt)&&d.hasMissingPatterns&&d.patterns.length===0&&(c=!0),c)continue;r.push(a)}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length}}},pt=class Ao{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,n){if(e&&typeof e=="string"){const i=e.length;let r=0,o=[],s=!1;for(let l=0;l<i;l++)if(e.charAt(l)==="\\"&&l+1<i){const d=e.charAt(l+1);d==="z"?(o.push(e.substring(r,l)),o.push("$(?!\\n)(?<!\\n)"),r=l+2):(d==="A"||d==="G")&&(s=!0),l++}this.hasAnchor=s,r===0?this.source=e:(o.push(e.substring(r,i)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=ad.test(this.source):this.hasBackReferences=!1}clone(){return new Ao(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let i=n.map(r=>e.substring(r.start,r.end));return Zi.lastIndex=0,this.source.replace(Zi,(r,o)=>yo(i[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],n=[],i=[],r=[],o,s,l,a;for(o=0,s=this.source.length;o<s;o++)l=this.source.charAt(o),e[o]=l,n[o]=l,i[o]=l,r[o]=l,l==="\\"&&o+1<s&&(a=this.source.charAt(o+1),a==="A"?(e[o+1]="",n[o+1]="",i[o+1]="A",r[o+1]="A"):a==="G"?(e[o+1]="",n[o+1]="G",i[o+1]="",r[o+1]="G"):(e[o+1]=a,n[o+1]=a,i[o+1]=a,r[o+1]=a),o++);return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:i.join(""),A1_G1:r.join("")}}resolveAnchors(e,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},mt=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(n=>n.source);this._cached=new tr(t,e,this._items.map(n=>n.ruleId))}return this._cached}compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,n){let i=this._items.map(r=>r.resolveAnchors(e,n));return new tr(t,i,this._items.map(r=>r.ruleId))}},tr=class{constructor(t,e,n){this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
|
|
11
|
-
`)}findNextMatchSync(t,e,n){const i=this.scanner.findNextMatchSync(t,e,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},wn=class{constructor(t,e){this.languageId=t,this.tokenType=e}},ud=class Yn{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,n){this._defaultAttributes=new wn(e,8),this._embeddedLanguagesMatcher=new fd(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Yn._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new wn(0,0);_getBasicScopeAttributes=new wo(e=>{const n=this._scopeToLanguage(e),i=this._toStandardTokenType(e);return new wn(n,i)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const n=e.match(Yn.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},fd=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map(([n,i])=>yo(n));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},nr=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function Io(t,e,n,i,r,o,s,l){const a=e.content.length;let d=!1,c=-1;if(s){const h=hd(t,e,n,i,r,o);r=h.stack,i=h.linePos,n=h.isFirstLine,c=h.anchorPosition}const u=Date.now();for(;!d;){if(l!==0&&Date.now()-u>l)return new nr(r,!0);f()}return new nr(r,!1);function f(){const h=pd(t,e,n,i,r,c);if(!h){o.produce(r,a),d=!0;return}const p=h.captureIndices,b=h.matchedRuleId,y=p&&p.length>0?p[0].end>i:!1;if(b===ld){const _=r.getRule(t);o.produce(r,p[0].start),r=r.withContentNameScopesList(r.nameScopesList),dt(t,e,n,r,o,_.endCaptures,p),o.produce(r,p[0].end);const g=r;if(r=r.parent,c=g.getAnchorPos(),!y&&g.getEnterPos()===i){r=g,o.produce(r,a),d=!0;return}}else{const _=t.getRule(b);o.produce(r,p[0].start);const g=r,v=_.getName(e.content,p),k=r.contentNameScopesList.pushAttributed(v,t);if(r=r.push(b,i,c,p[0].end===a,null,k,k),_ instanceof Jn){const C=_;dt(t,e,n,r,o,C.beginCaptures,p),o.produce(r,p[0].end),c=p[0].end;const w=C.getContentName(e.content,p),E=k.pushAttributed(w,t);if(r=r.withContentNameScopesList(E),C.endHasBackReferences&&(r=r.withEndRule(C.getEndWithResolvedBackReferences(e.content,p))),!y&&g.hasSameRuleAs(r)){r=r.pop(),o.produce(r,a),d=!0;return}}else if(_ instanceof Kt){const C=_;dt(t,e,n,r,o,C.beginCaptures,p),o.produce(r,p[0].end),c=p[0].end;const w=C.getContentName(e.content,p),E=k.pushAttributed(w,t);if(r=r.withContentNameScopesList(E),C.whileHasBackReferences&&(r=r.withEndRule(C.getWhileWithResolvedBackReferences(e.content,p))),!y&&g.hasSameRuleAs(r)){r=r.pop(),o.produce(r,a),d=!0;return}}else if(dt(t,e,n,r,o,_.captures,p),o.produce(r,p[0].end),r=r.pop(),!y){r=r.safePop(),o.produce(r,a),d=!0;return}}p[0].end>i&&(i=p[0].end,n=!1)}}function hd(t,e,n,i,r,o){let s=r.beginRuleCapturedEOL?0:-1;const l=[];for(let a=r;a;a=a.pop()){const d=a.getRule(t);d instanceof Kt&&l.push({rule:d,stack:a})}for(let a=l.pop();a;a=l.pop()){const{ruleScanner:d,findOptions:c}=bd(a.rule,t,a.stack.endRule,n,i===s),u=d.findNextMatchSync(e,i,c);if(u){if(u.ruleId!==xo){r=a.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(o.produce(a.stack,u.captureIndices[0].start),dt(t,e,n,a.stack,o,a.rule.whileCaptures,u.captureIndices),o.produce(a.stack,u.captureIndices[0].end),s=u.captureIndices[0].end,u.captureIndices[0].end>i&&(i=u.captureIndices[0].end,n=!1))}else{r=a.stack.pop();break}}return{stack:r,linePos:i,anchorPosition:s,isFirstLine:n}}function pd(t,e,n,i,r,o){const s=md(t,e,n,i,r,o),l=t.getInjections();if(l.length===0)return s;const a=gd(l,t,e,n,i,r,o);if(!a)return s;if(!s)return a;const d=s.captureIndices[0].start,c=a.captureIndices[0].start;return c<d||a.priorityMatch&&c===d?a:s}function md(t,e,n,i,r,o){const s=r.getRule(t),{ruleScanner:l,findOptions:a}=To(s,t,r.endRule,n,i===o),d=l.findNextMatchSync(e,i,a);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function gd(t,e,n,i,r,o,s){let l=Number.MAX_VALUE,a=null,d,c=0;const u=o.contentNameScopesList.getScopeNames();for(let f=0,h=t.length;f<h;f++){const p=t[f];if(!p.matcher(u))continue;const b=e.getRule(p.ruleId),{ruleScanner:y,findOptions:_}=To(b,e,null,i,r===s),g=y.findNextMatchSync(n,r,_);if(!g)continue;const v=g.captureIndices[0].start;if(!(v>=l)&&(l=v,a=g.captureIndices,d=g.ruleId,c=p.priority,l===r))break}return a?{priorityMatch:c===-1,captureIndices:a,matchedRuleId:d}:null}function To(t,e,n,i,r){return{ruleScanner:t.compileAG(e,n,i,r),findOptions:0}}function bd(t,e,n,i,r){return{ruleScanner:t.compileWhileAG(e,n,i,r),findOptions:0}}function dt(t,e,n,i,r,o,s){if(o.length===0)return;const l=e.content,a=Math.min(o.length,s.length),d=[],c=s[0].end;for(let u=0;u<a;u++){const f=o[u];if(f===null)continue;const h=s[u];if(h.length===0)continue;if(h.start>c)break;for(;d.length>0&&d[d.length-1].endPos<=h.start;)r.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?r.produceFromScopes(d[d.length-1].scopes,h.start):r.produce(i,h.start),f.retokenizeCapturedWithRuleId){const b=f.getName(l,s),y=i.contentNameScopesList.pushAttributed(b,t),_=f.getContentName(l,s),g=y.pushAttributed(_,t),v=i.push(f.retokenizeCapturedWithRuleId,h.start,-1,!1,null,y,g),k=t.createOnigString(l.substring(0,h.end));Io(t,k,n&&h.start===0,h.start,v,r,!1,0),Eo(k);continue}const p=f.getName(l,s);if(p!==null){const y=(d.length>0?d[d.length-1].scopes:i.contentNameScopesList).pushAttributed(p,t);d.push(new vd(y,h.end))}}for(;d.length>0;)r.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var vd=class{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}};function _d(t,e,n,i,r,o,s,l){return new wd(t,e,n,i,r,o,s,l)}function ir(t,e,n,i,r){const o=qt(e,Qt),s=Lo.getCompiledRuleId(n,i,r.repository);for(const l of o)t.push({debugSelector:e,matcher:l.matcher,ruleId:s,grammar:r,priority:l.priority})}function Qt(t,e){if(e.length<t.length)return!1;let n=0;return t.every(i=>{for(let r=n;r<e.length;r++)if(yd(e[r],i))return n=r+1,!0;return!1})}function yd(t,e){if(!t)return!1;if(t===e)return!0;const n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}var wd=class{constructor(t,e,n,i,r,o,s,l){if(this._rootScopeName=t,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new ud(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=rr(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const a of Object.keys(r)){const d=qt(a,Qt);for(const c of d)this._tokenTypeMatchers.push({matcher:c.matcher,type:r[a]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:r=>r===this._rootScopeName?this._grammar:this.getExternalGrammar(r),injections:r=>this._grammarRepository.injections(r)},e=[],n=this._rootScopeName,i=t.lookup(n);if(i){const r=i.injections;if(r)for(let s in r)ir(e,s,r[s],this,i);const o=this._grammarRepository.injections(n);o&&o.forEach(s=>{const l=this.getExternalGrammar(s);if(l){const a=l.injectionSelector;a&&ir(e,a,l,this,l)}})}return e.sort((r,o)=>r.priority-o.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const n=this._grammarRepository.lookup(t);if(n)return this._includedGrammars[t]=rr(n,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,n=0){const i=this._tokenize(t,e,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(t,e,n=0){const i=this._tokenize(t,e,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(t,e,n,i){this._rootId===-1&&(this._rootId=Lo.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let r;if(!e||e===Zn.NULL){r=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),u=Ze.set(0,d.languageId,d.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),f=this.getRule(this._rootId).getName(null,null);let h;f?h=ct.createRootAndLookUpScopeName(f,u,this):h=ct.createRoot("unknown",u),e=new Zn(null,this._rootId,-1,-1,!1,null,h,h)}else r=!1,e.reset();t=t+`
|
|
12
|
-
`;const o=this.createOnigString(t),s=o.content.length,l=new Cd(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),a=Io(this,o,r,0,e,l,!0,i);return Eo(o),{lineLength:s,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function rr(t,e){return t=Ul(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var ct=class me{constructor(e,n,i){this.parent=e,this.scopePath=n,this.tokenAttributes=i}static fromExtension(e,n){let i=e,r=e?.scopePath??null;for(const o of n)r=yn.push(r,o.scopeNames),i=new me(i,r,o.encodedTokenAttributes);return i}static createRoot(e,n){return new me(null,new yn(null,e),n)}static createRootAndLookUpScopeName(e,n,i){const r=i.getMetadataForScope(e),o=new yn(null,e),s=i.themeProvider.themeMatch(o),l=me.mergeAttributes(n,r,s);return new me(null,o,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return me.equals(this,e)}static equals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,i){let r=-1,o=0,s=0;return i!==null&&(r=i.fontStyle,o=i.foregroundId,s=i.backgroundId),Ze.set(e,n.languageId,n.tokenType,null,r,o,s)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return me._pushAttributed(this,e,n);const i=e.split(/ /g);let r=this;for(const o of i)r=me._pushAttributed(r,o,n);return r}static _pushAttributed(e,n,i){const r=i.getMetadataForScope(n),o=e.scopePath.push(n),s=i.themeProvider.themeMatch(o),l=me.mergeAttributes(e.tokenAttributes,r,s);return new me(e,o,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const n=[];let i=this;for(;i&&i!==e;)n.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(i.parent?.scopePath??null)}),i=i.parent;return i===e?n.reverse():void 0}},Zn=class De{constructor(e,n,i,r,o,s,l,a){this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=l,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new De(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:De._equals(this,e)}static _equals(e,n){return e===n?!0:this._structuralEquals(e,n)?ct.equals(e.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){De._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,n,i,r,o,s,l){return new De(this,e,n,i,r,o,s,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,n){return this.parent&&(n=this.parent._writeString(e,n)),e[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new De(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;for(;n&&n._enterPos===e._enterPos;){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,n){const i=ct.fromExtension(e?.nameScopesList??null,n.nameScopesList);return new De(e,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,i,ct.fromExtension(i,n.contentNameScopesList))}},kd=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap(n=>n==="*"?(this.allowAny=!0,[]):qt(n,Qt).map(i=>i.matcher)),this.unbalancedBracketScopes=e.flatMap(n=>qt(n,Qt).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const e of this.unbalancedBracketScopes)if(e(t))return!1;for(const e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},Cd=class{constructor(t,e,n,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let i=t?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=t?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(o)&&(i=Ze.set(i,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(o))}if(r&&(i=Ze.set(i,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=e;return}const n=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let i=0,r=this._binaryTokens.length;i<r;i++)n[i]=this._binaryTokens[i];return n}},Ed=class{constructor(t,e){this._onigLib=e,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,n,i,r){if(!this._grammars.has(t)){let o=this._rawGrammars.get(t);if(!o)return null;this._grammars.set(t,_d(t,o,e,n,i,r,this,this._onigLib))}return this._grammars.get(t)}},Sd=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Ed(Wt.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,n){this._syncRegistry.setTheme(Wt.createFromRawTheme(e,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,n,i){return this.loadGrammarWithConfiguration(e,n,{embeddedLanguages:i})}loadGrammarWithConfiguration(e,n,i){return this._loadGrammar(e,n,i.embeddedLanguages,i.tokenTypes,new kd(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,n,i,r,o){const s=new ed(this._syncRegistry,e);for(;s.Q.length>0;)s.Q.map(l=>this._loadSingleGrammar(l.scopeName)),s.processQueue();return this._grammarForScopeName(e,n,i,r,o)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const n=this._options.loadGrammar(e);if(n){const i=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(n,i)}}addGrammar(e,n=[],i=0,r=null){return this._syncRegistry.addGrammar(e,n),this._grammarForScopeName(e.scopeName,i,r)}_grammarForScopeName(e,n=0,i=null,r=null,o=null){return this._syncRegistry.grammarForScopeName(e,n,i,r,o)}},ei=Zn.NULL;function Jt(t,e){const n=typeof t=="string"?{}:{...t.colorReplacements},i=typeof t=="string"?t:t.name;for(const[r,o]of Object.entries(e?.colorReplacements||{}))typeof o=="string"?n[r]=o:r===i&&Object.assign(n,o);return n}function Te(t,e){return t&&(e?.[t?.toLowerCase()]||t)}function xd(t){return Array.isArray(t)?t:[t]}async function Ro(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function yi(t){return!t||["plaintext","txt","text","plain"].includes(t)}function Po(t){return t==="ansi"||yi(t)}function wi(t){return t==="none"}function Do(t){return wi(t)}function No(t,e){if(!e)return t;t.properties||={},t.properties.class||=[],typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const n=Array.isArray(e)?e:e.split(/\s+/g);for(const i of n)i&&!t.properties.class.includes(i)&&t.properties.class.push(i);return t}function on(t,e=!1){if(t.length===0)return[["",0]];const n=t.split(/(\r?\n)/g);let i=0;const r=[];for(let o=0;o<n.length;o+=2){const s=e?n[o]+(n[o+1]||""):n[o];r.push([s,i]),i+=n[o].length,i+=n[o+1]?.length||0}return r}function Ld(t){const e=on(t,!0).map(([r])=>r);function n(r){if(r===t.length)return{line:e.length-1,character:e[e.length-1].length};let o=r,s=0;for(const l of e){if(o<l.length)break;o-=l.length,s++}return{line:s,character:o}}function i(r,o){let s=0;for(let l=0;l<r;l++)s+=e[l].length;return s+=o,s}return{lines:e,indexToPos:n,posToIndex:i}}const ki="light-dark()",Ad=["color","background-color"];function Id(t,e){let n=0;const i=[];for(const r of e)r>n&&i.push({...t,content:t.content.slice(n,r),offset:t.offset+n}),n=r;return n<t.content.length&&i.push({...t,content:t.content.slice(n),offset:t.offset+n}),i}function Td(t,e){const n=Array.from(e instanceof Set?e:new Set(e)).sort((i,r)=>i-r);return n.length?t.map(i=>i.flatMap(r=>{const o=n.filter(s=>r.offset<s&&s<r.offset+r.content.length).map(s=>s-r.offset).sort((s,l)=>s-l);return o.length?Id(r,o):r})):t}function Rd(t,e,n,i,r="css-vars"){const o={content:t.content,explanation:t.explanation,offset:t.offset},s=e.map(c=>Yt(t.variants[c])),l=new Set(s.flatMap(c=>Object.keys(c))),a={},d=(c,u)=>{const f=u==="color"?"":u==="background-color"?"-bg":`-${u}`;return n+e[c]+(u==="color"?"":f)};return s.forEach((c,u)=>{for(const f of l){const h=c[f]||"inherit";if(u===0&&i&&Ad.includes(f))if(i===ki&&s.length>1){const p=e.findIndex(g=>g==="light"),b=e.findIndex(g=>g==="dark");if(p===-1||b===-1)throw new F('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const y=s[p][f]||"inherit",_=s[b][f]||"inherit";a[f]=`light-dark(${y}, ${_})`,r==="css-vars"&&(a[d(u,f)]=h)}else a[f]=h;else r==="css-vars"&&(a[d(u,f)]=h)}}),o.htmlStyle=a,o}function Yt(t){const e={};if(t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle){t.fontStyle&J.Italic&&(e["font-style"]="italic"),t.fontStyle&J.Bold&&(e["font-weight"]="bold");const n=[];t.fontStyle&J.Underline&&n.push("underline"),t.fontStyle&J.Strikethrough&&n.push("line-through"),n.length&&(e["text-decoration"]=n.join(" "))}return e}function ti(t){return typeof t=="string"?t:Object.entries(t).map(([e,n])=>`${e}:${n}`).join(";")}const Oo=new WeakMap;function sn(t,e){Oo.set(t,e)}function gt(t){return Oo.get(t)}class nt{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,n){return new nt(Object.fromEntries(xd(n).map(i=>[i,ei])),e)}constructor(...e){if(e.length===2){const[n,i]=e;this.lang=i,this._stacks=n}else{const[n,i,r]=e;this.lang=i,this._stacks={[r]:n}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Pd(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function Pd(t){const e=[],n=new Set;function i(r){if(n.has(r))return;n.add(r);const o=r?.nameScopesList?.scopeName;o&&e.push(o),r.parent&&i(r.parent)}return i(t),e}function Dd(t,e){if(!(t instanceof nt))throw new F("Invalid grammar state");return t.getInternalStack(e)}function Nd(){const t=new WeakMap;function e(n){if(!t.has(n.meta)){let i=function(s){if(typeof s=="number"){if(s<0||s>n.source.length)throw new F(`Invalid decoration offset: ${s}. Code length: ${n.source.length}`);return{...r.indexToPos(s),offset:s}}else{const l=r.lines[s.line];if(l===void 0)throw new F(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${r.lines.length}`);let a=s.character;if(a<0&&(a=l.length+a),a<0||a>l.length)throw new F(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${l.length}`);return{...s,character:a,offset:r.posToIndex(s.line,a)}}};const r=Ld(n.source),o=(n.options.decorations||[]).map(s=>({...s,start:i(s.start),end:i(s.end)}));Od(o),t.set(n.meta,{decorations:o,converter:r,source:n.source})}return t.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=e(this).decorations.flatMap(s=>[s.start.offset,s.end.offset]);return Td(n,r)},code(n){if(!this.options.decorations?.length)return;const i=e(this),r=Array.from(n.children).filter(c=>c.type==="element"&&c.tagName==="span");if(r.length!==i.converter.lines.length)throw new F(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function o(c,u,f,h){const p=r[c];let b="",y=-1,_=-1;if(u===0&&(y=0),f===0&&(_=0),f===Number.POSITIVE_INFINITY&&(_=p.children.length),y===-1||_===-1)for(let v=0;v<p.children.length;v++)b+=Mo(p.children[v]),y===-1&&b.length===u&&(y=v+1),_===-1&&b.length===f&&(_=v+1);if(y===-1)throw new F(`Failed to find start index for decoration ${JSON.stringify(h.start)}`);if(_===-1)throw new F(`Failed to find end index for decoration ${JSON.stringify(h.end)}`);const g=p.children.slice(y,_);if(!h.alwaysWrap&&g.length===p.children.length)l(p,h,"line");else if(!h.alwaysWrap&&g.length===1&&g[0].type==="element")l(g[0],h,"token");else{const v={type:"element",tagName:"span",properties:{},children:g};l(v,h,"wrapper"),p.children.splice(y,g.length,v)}}function s(c,u){r[c]=l(r[c],u,"line")}function l(c,u,f){const h=u.properties||{},p=u.transform||(b=>b);return c.tagName=u.tagName||"span",c.properties={...c.properties,...h,class:c.properties.class},u.properties?.class&&No(c,u.properties.class),c=p(c,f)||c,c}const a=[],d=i.decorations.sort((c,u)=>u.start.offset-c.start.offset||c.end.offset-u.end.offset);for(const c of d){const{start:u,end:f}=c;if(u.line===f.line)o(u.line,u.character,f.character,c);else if(u.line<f.line){o(u.line,u.character,Number.POSITIVE_INFINITY,c);for(let h=u.line+1;h<f.line;h++)a.unshift(()=>s(h,c));o(f.line,0,f.character,c)}}a.forEach(c=>c())}}}function Od(t){for(let e=0;e<t.length;e++){const n=t[e];if(n.start.offset>n.end.offset)throw new F(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=e+1;i<t.length;i++){const r=t[i],o=n.start.offset<=r.start.offset&&r.start.offset<n.end.offset,s=n.start.offset<r.end.offset&&r.end.offset<=n.end.offset,l=r.start.offset<=n.start.offset&&n.start.offset<r.end.offset,a=r.start.offset<n.end.offset&&n.end.offset<=r.end.offset;if(o||s||l||a){if(o&&s||l&&a||l&&n.start.offset===n.end.offset||s&&r.start.offset===r.end.offset)continue;throw new F(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(r.start)} intersect.`)}}}}function Mo(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(Mo).join(""):""}const Md=[Nd()];function Zt(t){const e=$d(t.transformers||[]);return[...e.pre,...e.normal,...e.post,...Md]}function $d(t){const e=[],n=[],i=[];for(const r of t)switch(r.enforce){case"pre":e.push(r);break;case"post":n.push(r);break;default:i.push(r)}return{pre:e,post:n,normal:i}}var Oe=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],kn={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function Vd(t,e){const n=t.indexOf("\x1B",e);if(n!==-1&&t[n+1]==="["){const i=t.indexOf("m",n);if(i!==-1)return{sequence:t.substring(n+2,i).split(";"),startPosition:n,position:i+1}}return{position:t.length}}function or(t){const e=t.shift();if(e==="2"){const n=t.splice(0,3).map(i=>Number.parseInt(i));return n.length!==3||n.some(i=>Number.isNaN(i))?void 0:{type:"rgb",rgb:n}}else if(e==="5"){const n=t.shift();if(n)return{type:"table",index:Number(n)}}}function Hd(t){const e=[];for(;t.length>0;){const n=t.shift();if(!n)continue;const i=Number.parseInt(n);if(!Number.isNaN(i))if(i===0)e.push({type:"resetAll"});else if(i<=9)kn[i]&&e.push({type:"setDecoration",value:kn[i]});else if(i<=29){const r=kn[i-20];r&&(e.push({type:"resetDecoration",value:r}),r==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)e.push({type:"setForegroundColor",value:{type:"named",name:Oe[i-30]}});else if(i===38){const r=or(t);r&&e.push({type:"setForegroundColor",value:r})}else if(i===39)e.push({type:"resetForegroundColor"});else if(i<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:Oe[i-40]}});else if(i===48){const r=or(t);r&&e.push({type:"setBackgroundColor",value:r})}else i===49?e.push({type:"resetBackgroundColor"}):i===53?e.push({type:"setDecoration",value:"overline"}):i===55?e.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?e.push({type:"setForegroundColor",value:{type:"named",name:Oe[i-90+8]}}):i>=100&&i<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:Oe[i-100+8]}})}return e}function Ud(){let t=null,e=null,n=new Set;return{parse(i){const r=[];let o=0;do{const s=Vd(i,o),l=s.sequence?i.substring(o,s.startPosition):i.substring(o);if(l.length>0&&r.push({value:l,foreground:t,background:e,decorations:new Set(n)}),s.sequence){const a=Hd(s.sequence);for(const d of a)d.type==="resetAll"?(t=null,e=null,n.clear()):d.type==="resetForegroundColor"?t=null:d.type==="resetBackgroundColor"?e=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of a)d.type==="setForegroundColor"?t=d.value:d.type==="setBackgroundColor"?e=d.value:d.type==="setDecoration"&&n.add(d.value)}o=s.position}while(o<i.length);return r}}}var Gd={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function jd(t=Gd){function e(l){return t[l]}function n(l){return`#${l.map(a=>Math.max(0,Math.min(a,255)).toString(16).padStart(2,"0")).join("")}`}let i;function r(){if(i)return i;i=[];for(let d=0;d<Oe.length;d++)i.push(e(Oe[d]));let l=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let c=0;c<6;c++)for(let u=0;u<6;u++)i.push(n([l[d],l[c],l[u]]));let a=8;for(let d=0;d<24;d++,a+=10)i.push(n([a,a,a]));return i}function o(l){return r()[l]}function s(l){switch(l.type){case"named":return e(l.name);case"rgb":return n(l.rgb);case"table":return o(l.index)}}return{value:s}}const Fd={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function Bd(t,e,n){const i=Jt(t,n),r=on(e),o=Object.fromEntries(Oe.map(a=>{const d=`terminal.ansi${a[0].toUpperCase()}${a.substring(1)}`,c=t.colors?.[d];return[a,c||Fd[a]]})),s=jd(o),l=Ud();return r.map(a=>l.parse(a[0]).map(d=>{let c,u;d.decorations.has("reverse")?(c=d.background?s.value(d.background):t.bg,u=d.foreground?s.value(d.foreground):t.fg):(c=d.foreground?s.value(d.foreground):t.fg,u=d.background?s.value(d.background):void 0),c=Te(c,i),u=Te(u,i),d.decorations.has("dim")&&(c=zd(c));let f=J.None;return d.decorations.has("bold")&&(f|=J.Bold),d.decorations.has("italic")&&(f|=J.Italic),d.decorations.has("underline")&&(f|=J.Underline),d.decorations.has("strikethrough")&&(f|=J.Strikethrough),{content:d.value,offset:a[1],color:c,bgColor:u,fontStyle:f}}))}function zd(t){const e=t.match(/#([0-9a-f]{3,8})/i);if(e){const i=e[1];if(i.length===8){const r=Math.round(Number.parseInt(i.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${i.slice(0,6)}${r}`}else{if(i.length===6)return`#${i}80`;if(i.length===4){const r=i[0],o=i[1],s=i[2],l=i[3],a=Math.round(Number.parseInt(`${l}${l}`,16)/2).toString(16).padStart(2,"0");return`#${r}${r}${o}${o}${s}${s}${a}`}else if(i.length===3){const r=i[0],o=i[1],s=i[2];return`#${r}${r}${o}${o}${s}${s}80`}}}const n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:t}function Ci(t,e,n={}){const{theme:i=t.getLoadedThemes()[0]}=n,r=t.resolveLangAlias(n.lang||"text");if(yi(r)||wi(i))return on(e).map(a=>[{content:a[0],offset:a[1]}]);const{theme:o,colorMap:s}=t.setTheme(i);if(r==="ansi")return Bd(o,e,n);const l=t.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==l.name)throw new F(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(o.name))throw new F(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return qd(e,l,o,s,n)}function Wd(...t){if(t.length===2)return gt(t[1]);const[e,n,i={}]=t,{lang:r="text",theme:o=e.getLoadedThemes()[0]}=i;if(yi(r)||wi(o))throw new F("Plain language does not have grammar state");if(r==="ansi")throw new F("ANSI language does not have grammar state");const{theme:s,colorMap:l}=e.setTheme(o),a=e.getLanguage(r);return new nt(Ei(n,a,s,l,i).stateStack,a.name,s.name)}function qd(t,e,n,i,r){const o=Ei(t,e,n,i,r),s=new nt(o.stateStack,e.name,n.name);return sn(o.tokens,s),o.tokens}function Ei(t,e,n,i,r){const o=Jt(n,r),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500}=r,a=on(t);let d=r.grammarState?Dd(r.grammarState,n.name)??ei:r.grammarContextCode!=null?Ei(r.grammarContextCode,e,n,i,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:ei,c=[];const u=[];for(let f=0,h=a.length;f<h;f++){const[p,b]=a[f];if(p===""){c=[],u.push([]);continue}if(s>0&&p.length>=s){c=[],u.push([{content:p,offset:b,color:"",fontStyle:0}]);continue}let y,_,g;r.includeExplanation&&(y=e.tokenizeLine(p,d,l),_=y.tokens,g=0);const v=e.tokenizeLine2(p,d,l),k=v.tokens.length/2;for(let C=0;C<k;C++){const w=v.tokens[2*C],E=C+1<k?v.tokens[2*C+2]:p.length;if(w===E)continue;const L=v.tokens[2*C+1],A=Te(i[Ze.getForeground(L)],o),I=Ze.getFontStyle(L),P={content:p.substring(w,E),offset:b+w,color:A,fontStyle:I};if(r.includeExplanation){const D=[];if(r.includeExplanation!=="scopeName")for(const $ of n.settings){let Z;switch(typeof $.scope){case"string":Z=$.scope.split(/,/).map(re=>re.trim());break;case"object":Z=$.scope;break;default:continue}D.push({settings:$,selectors:Z.map(re=>re.split(/ /))})}P.explanation=[];let O=0;for(;w+O<E;){const $=_[g],Z=p.substring($.startIndex,$.endIndex);O+=Z.length,P.explanation.push({content:Z,scopes:r.includeExplanation==="scopeName"?Xd($.scopes):Kd(D,$.scopes)}),g+=1}}c.push(P)}u.push(c),c=[],d=v.ruleStack}return{tokens:u,stateStack:d}}function Xd(t){return t.map(e=>({scopeName:e}))}function Kd(t,e){const n=[];for(let i=0,r=e.length;i<r;i++){const o=e[i];n[i]={scopeName:o,themeMatches:Jd(t,o,e.slice(0,i))}}return n}function sr(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function Qd(t,e,n){if(!sr(t[t.length-1],e))return!1;let i=t.length-2,r=n.length-1;for(;i>=0&&r>=0;)sr(t[i],n[r])&&(i-=1),r-=1;return i===-1}function Jd(t,e,n){const i=[];for(const{selectors:r,settings:o}of t)for(const s of r)if(Qd(s,e,n)){i.push(o);break}return i}function $o(t,e,n){const i=Object.entries(n.themes).filter(a=>a[1]).map(a=>({color:a[0],theme:a[1]})),r=i.map(a=>{const d=Ci(t,e,{...n,theme:a.theme}),c=gt(d),u=typeof a.theme=="string"?a.theme:a.theme.name;return{tokens:d,state:c,theme:u}}),o=Yd(...r.map(a=>a.tokens)),s=o[0].map((a,d)=>a.map((c,u)=>{const f={content:c.content,variants:{},offset:c.offset};return"includeExplanation"in n&&n.includeExplanation&&(f.explanation=c.explanation),o.forEach((h,p)=>{const{content:b,explanation:y,offset:_,...g}=h[d][u];f.variants[i[p].color]=g}),f})),l=r[0].state?new nt(Object.fromEntries(r.map(a=>[a.theme,a.state?.getInternalStack(a.theme)])),r[0].state.lang):void 0;return l&&sn(s,l),s}function Yd(...t){const e=t.map(()=>[]),n=t.length;for(let i=0;i<t[0].length;i++){const r=t.map(a=>a[i]),o=e.map(()=>[]);e.forEach((a,d)=>a.push(o[d]));const s=r.map(()=>0),l=r.map(a=>a[0]);for(;l.every(a=>a);){const a=Math.min(...l.map(d=>d.content.length));for(let d=0;d<n;d++){const c=l[d];c.content.length===a?(o[d].push(c),s[d]+=1,l[d]=r[d][s[d]]):(o[d].push({...c,content:c.content.slice(0,a)}),l[d]={...c,content:c.content.slice(a),offset:c.offset+a})}}}return e}function en(t,e,n){let i,r,o,s,l,a;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:c="--shiki-",colorsRendering:u="css-vars"}=n,f=Object.entries(n.themes).filter(_=>_[1]).map(_=>({color:_[0],theme:_[1]})).sort((_,g)=>_.color===d?-1:g.color===d?1:0);if(f.length===0)throw new F("`themes` option must not be empty");const h=$o(t,e,n);if(a=gt(h),d&&ki!==d&&!f.find(_=>_.color===d))throw new F(`\`themes\` option must contain the defaultColor key \`${d}\``);const p=f.map(_=>t.getTheme(_.theme)),b=f.map(_=>_.color);o=h.map(_=>_.map(g=>Rd(g,b,c,d,u))),a&&sn(o,a);const y=f.map(_=>Jt(_.theme,n));r=ar(f,p,y,c,d,"fg",u),i=ar(f,p,y,c,d,"bg",u),s=`shiki-themes ${p.map(_=>_.name).join(" ")}`,l=d?void 0:[r,i].join(";")}else if("theme"in n){const d=Jt(n.theme,n);o=Ci(t,e,n);const c=t.getTheme(n.theme);i=Te(c.bg,d),r=Te(c.fg,d),s=c.name,a=gt(o)}else throw new F("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:r,bg:i,themeName:s,rootStyle:l,grammarState:a}}function ar(t,e,n,i,r,o,s){return t.map((l,a)=>{const d=Te(e[a][o],n[a])||"inherit",c=`${i+l.color}${o==="bg"?"-bg":""}:${d}`;if(a===0&&r){if(r===ki&&t.length>1){const u=t.findIndex(b=>b.color==="light"),f=t.findIndex(b=>b.color==="dark");if(u===-1||f===-1)throw new F('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const h=Te(e[u][o],n[u])||"inherit",p=Te(e[f][o],n[f])||"inherit";return`light-dark(${h}, ${p});${c}`}return d}return s==="css-vars"?c:null}).filter(l=>!!l).join(";")}function tn(t,e,n,i={meta:{},options:n,codeToHast:(r,o)=>tn(t,r,o),codeToTokens:(r,o)=>en(t,r,o)}){let r=e;for(const p of Zt(n))r=p.preprocess?.call(i,r,n)||r;let{tokens:o,fg:s,bg:l,themeName:a,rootStyle:d,grammarState:c}=en(t,r,n);const{mergeWhitespaces:u=!0,mergeSameStyleTokens:f=!1}=n;u===!0?o=ec(o):u==="never"&&(o=tc(o)),f&&(o=nc(o));const h={...i,get source(){return r}};for(const p of Zt(n))o=p.tokens?.call(h,o)||o;return Zd(o,{...n,fg:s,bg:l,themeName:a,rootStyle:n.rootStyle===!1?!1:n.rootStyle??d},h,c)}function Zd(t,e,n,i=gt(t)){const r=Zt(e),o=[],s={type:"root",children:[]},{structure:l="classic",tabindex:a="0"}=e,d={class:`shiki ${e.themeName||""}`};e.rootStyle!==!1&&(e.rootStyle!=null?d.style=e.rootStyle:d.style=`background-color:${e.bg};color:${e.fg}`),a!==!1&&a!=null&&(d.tabindex=a.toString());for(const[b,y]of Object.entries(e.meta||{}))b.startsWith("_")||(d[b]=y);let c={type:"element",tagName:"pre",properties:d,children:[],data:e.data},u={type:"element",tagName:"code",properties:{},children:o};const f=[],h={...n,structure:l,addClassToHast:No,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return s},get pre(){return c},get code(){return u},get lines(){return f}};if(t.forEach((b,y)=>{y&&(l==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&o.push({type:"text",value:`
|
|
13
|
-
`}));let _={type:"element",tagName:"span",properties:{class:"line"},children:[]},g=0;for(const v of b){let k={type:"element",tagName:"span",properties:{...v.htmlAttrs},children:[{type:"text",value:v.content}]};const C=ti(v.htmlStyle||Yt(v));C&&(k.properties.style=C);for(const w of r)k=w?.span?.call(h,k,y+1,g,_,v)||k;l==="inline"?s.children.push(k):l==="classic"&&_.children.push(k),g+=v.content.length}if(l==="classic"){for(const v of r)_=v?.line?.call(h,_,y+1)||_;f.push(_),o.push(_)}else l==="inline"&&f.push(_)}),l==="classic"){for(const b of r)u=b?.code?.call(h,u)||u;c.children.push(u);for(const b of r)c=b?.pre?.call(h,c)||c;s.children.push(c)}else if(l==="inline"){const b=[];let y={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const v of s.children)v.type==="element"&&v.tagName==="br"?(b.push(y),y={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(v.type==="element"||v.type==="text")&&y.children.push(v);b.push(y);let g={type:"element",tagName:"code",properties:{},children:b};for(const v of r)g=v?.code?.call(h,g)||g;s.children=[];for(let v=0;v<g.children.length;v++){v>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});const k=g.children[v];k.type==="element"&&s.children.push(...k.children)}}let p=s;for(const b of r)p=b?.root?.call(h,p)||p;return i&&sn(p,i),p}function ec(t){return t.map(e=>{const n=[];let i="",r;return e.forEach((o,s)=>{const a=!(o.fontStyle&&(o.fontStyle&J.Underline||o.fontStyle&J.Strikethrough));a&&o.content.match(/^\s+$/)&&e[s+1]?(r===void 0&&(r=o.offset),i+=o.content):i?(a?n.push({...o,offset:r,content:i+o.content}):n.push({content:i,offset:r},o),r=void 0,i=""):n.push(o)}),n})}function tc(t){return t.map(e=>e.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const i=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!i)return n;const[,r,o,s]=i;if(!r&&!s)return n;const l=[{...n,offset:n.offset+r.length,content:o}];return r&&l.unshift({content:r,offset:n.offset}),s&&l.push({content:s,offset:n.offset+r.length+o.length}),l}))}function nc(t){return t.map(e=>{const n=[];for(const i of e){if(n.length===0){n.push({...i});continue}const r=n[n.length-1],o=ti(r.htmlStyle||Yt(r)),s=ti(i.htmlStyle||Yt(i)),l=r.fontStyle&&(r.fontStyle&J.Underline||r.fontStyle&J.Strikethrough),a=i.fontStyle&&(i.fontStyle&J.Underline||i.fontStyle&J.Strikethrough);!l&&!a&&o===s?r.content+=i.content:n.push({...i})}return n})}const ic=Ye;function rc(t,e,n){const i={meta:{},options:n,codeToHast:(o,s)=>tn(t,o,s),codeToTokens:(o,s)=>en(t,o,s)};let r=ic(tn(t,e,n,i));for(const o of Zt(n))r=o.postprocess?.call(i,r,n)||r;return r}const lr={light:"#333333",dark:"#bbbbbb"},dr={light:"#fffffe",dark:"#1e1e1e"},cr="__shiki_resolved";function an(t){if(t?.[cr])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:n,fg:i}=e;if(!n||!i){const l=e.settings?e.settings.find(a=>!a.name&&!a.scope):void 0;l?.settings?.foreground&&(i=l.settings.foreground),l?.settings?.background&&(n=l.settings.background),!i&&e?.colors?.["editor.foreground"]&&(i=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),i||(i=e.type==="light"?lr.light:lr.dark),n||(n=e.type==="light"?dr.light:dr.dark),e.fg=i,e.bg=n}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let r=0;const o=new Map;function s(l){if(o.has(l))return o.get(l);r+=1;const a=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${a}`]?s(l):(o.set(l,a),a)}e.settings=e.settings.map(l=>{const a=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),d=l.settings?.background&&!l.settings.background.startsWith("#");if(!a&&!d)return l;const c={...l,settings:{...l.settings}};if(a){const u=s(l.settings.foreground);e.colorReplacements[u]=l.settings.foreground,c.settings.foreground=u}if(d){const u=s(l.settings.background);e.colorReplacements[u]=l.settings.background,c.settings.background=u}return c});for(const l of Object.keys(e.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!e.colors[l]?.startsWith("#")){const a=s(e.colors[l]);e.colorReplacements[a]=e.colors[l],e.colors[l]=a}return Object.defineProperty(e,cr,{enumerable:!1,writable:!1,value:!0}),e}async function Vo(t){return Array.from(new Set((await Promise.all(t.filter(e=>!Po(e)).map(async e=>await Ro(e).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Ho(t){return(await Promise.all(t.map(async n=>Do(n)?null:an(await Ro(n))))).filter(n=>!!n)}let oc=3;function sc(t,e=3){e>oc||console.trace(`[SHIKI DEPRECATE]: ${t}`)}let Xe=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Uo(t,e){if(!e)return t;if(e[t]){const n=new Set([t]);for(;e[t];){if(t=e[t],n.has(t))throw new Xe(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return t}class ac extends Sd{constructor(e,n,i,r={}){super(e),this._resolver=e,this._themes=n,this._langs=i,this._alias=r,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const n=an(e);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let n=this._textmateThemeCache.get(e);n||(n=Wt.createFromRawTheme(e),this._textmateThemeCache.set(e,n)),this._syncRegistry.setTheme(n)}getGrammar(e){return e=Uo(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const i={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const r=this.loadGrammarWithConfiguration(e.scopeName,1,i);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(o=>{this._alias[o]=e.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const r of e)this.resolveEmbeddedLanguages(r);const n=Array.from(this._langGraph.entries()),i=n.filter(([r,o])=>!o);if(i.length){const r=n.filter(([o,s])=>s?(s.embeddedLanguages||s.embeddedLangs)?.some(a=>i.map(([d])=>d).includes(a)):!1).filter(o=>!i.includes(o));throw new Xe(`Missing languages ${i.map(([o])=>`\`${o}\``).join(", ")}, required by ${r.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[r,o]of n)this._resolver.addLanguage(o);for(const[r,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const n=e.embeddedLanguages??e.embeddedLangs;if(n)for(const i of n)this._langGraph.set(i,this._langMap.get(i))}}class lc{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,n){this._onigLib={createOnigScanner:i=>e.createScanner(i),createOnigString:i=>e.createString(i)},n.forEach(i=>this.addLanguage(i))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(n=>{this._langs.set(n,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(e.scopeName)})}getInjections(e){const n=e.split(".");let i=[];for(let r=1;r<=n.length;r++){const o=n.slice(0,r).join(".");i=[...i,...this._injections.get(o)||[]]}return i}}let at=0;function dc(t){at+=1,t.warnings!==!1&&at>=10&&at%10===0&&console.warn(`[Shiki] ${at} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!t.engine)throw new Xe("`engine` option is required for synchronous mode");const n=(t.langs||[]).flat(1),i=(t.themes||[]).flat(1).map(an),r=new lc(t.engine,n),o=new ac(r,i,n,t.langAlias);let s;function l(v){return Uo(v,t.langAlias)}function a(v){_();const k=o.getGrammar(typeof v=="string"?v:v.name);if(!k)throw new Xe(`Language \`${v}\` not found, you may need to load it first`);return k}function d(v){if(v==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};_();const k=o.getTheme(v);if(!k)throw new Xe(`Theme \`${v}\` not found, you may need to load it first`);return k}function c(v){_();const k=d(v);s!==v&&(o.setTheme(k),s=v);const C=o.getColorMap();return{theme:k,colorMap:C}}function u(){return _(),o.getLoadedThemes()}function f(){return _(),o.getLoadedLanguages()}function h(...v){_(),o.loadLanguages(v.flat(1))}async function p(...v){return h(await Vo(v))}function b(...v){_();for(const k of v.flat(1))o.loadTheme(k)}async function y(...v){return _(),b(await Ho(v))}function _(){if(e)throw new Xe("Shiki instance has been disposed")}function g(){e||(e=!0,o.dispose(),at-=1)}return{setTheme:c,getTheme:d,getLanguage:a,getLoadedThemes:u,getLoadedLanguages:f,resolveLangAlias:l,loadLanguage:p,loadLanguageSync:h,loadTheme:y,loadThemeSync:b,dispose:g,[Symbol.dispose]:g}}async function cc(t){t.engine||sc("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,n,i]=await Promise.all([Ho(t.themes||[]),Vo(t.langs||[]),t.engine]);return dc({...t,themes:e,langs:n,engine:i})}async function uc(t){const e=await cc(t);return{getLastGrammarState:(...n)=>Wd(e,...n),codeToTokensBase:(n,i)=>Ci(e,n,i),codeToTokensWithThemes:(n,i)=>$o(e,n,i),codeToTokens:(n,i)=>en(e,n,i),codeToHast:(n,i)=>tn(e,n,i),codeToHtml:(n,i)=>rc(e,n,i),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function fc(t){const e=t.langs,n=t.themes,i=t.engine;async function r(o){function s(u){if(typeof u=="string"){if(u=o.langAlias?.[u]||u,Po(u))return[];const f=e[u];if(!f)throw new F(`Language \`${u}\` is not included in this bundle. You may want to load it from external source.`);return f}return u}function l(u){if(Do(u))return"none";if(typeof u=="string"){const f=n[u];if(!f)throw new F(`Theme \`${u}\` is not included in this bundle. You may want to load it from external source.`);return f}return u}const a=(o.themes??[]).map(u=>l(u)),d=(o.langs??[]).map(u=>s(u)),c=await uc({engine:o.engine??i(),...o,themes:a,langs:d});return{...c,loadLanguage(...u){return c.loadLanguage(...u.map(s))},loadTheme(...u){return c.loadTheme(...u.map(l))},getBundledLanguages(){return e},getBundledThemes(){return n}}}return r}function hc(t={}){const{name:e="css-variables",variablePrefix:n="--shiki-",fontStyle:i=!0}=t,r=s=>t.variableDefaults?.[s]?`var(${n}${s}, ${t.variableDefaults[s]})`:`var(${n}${s})`,o={name:e,type:"dark",colors:{"editor.foreground":r("foreground"),"editor.background":r("background"),"terminal.ansiBlack":r("ansi-black"),"terminal.ansiRed":r("ansi-red"),"terminal.ansiGreen":r("ansi-green"),"terminal.ansiYellow":r("ansi-yellow"),"terminal.ansiBlue":r("ansi-blue"),"terminal.ansiMagenta":r("ansi-magenta"),"terminal.ansiCyan":r("ansi-cyan"),"terminal.ansiWhite":r("ansi-white"),"terminal.ansiBrightBlack":r("ansi-bright-black"),"terminal.ansiBrightRed":r("ansi-bright-red"),"terminal.ansiBrightGreen":r("ansi-bright-green"),"terminal.ansiBrightYellow":r("ansi-bright-yellow"),"terminal.ansiBrightBlue":r("ansi-bright-blue"),"terminal.ansiBrightMagenta":r("ansi-bright-magenta"),"terminal.ansiBrightCyan":r("ansi-bright-cyan"),"terminal.ansiBrightWhite":r("ansi-bright-white")},tokenColors:[{scope:["keyword.operator.accessor","meta.group.braces.round.function.arguments","meta.template.expression","markup.fenced_code meta.embedded.block"],settings:{foreground:r("foreground")}},{scope:"emphasis",settings:{fontStyle:"italic"}},{scope:["strong","markup.heading.markdown","markup.bold.markdown"],settings:{fontStyle:"bold"}},{scope:["markup.italic.markdown"],settings:{fontStyle:"italic"}},{scope:"meta.link.inline.markdown",settings:{fontStyle:"underline",foreground:r("token-link")}},{scope:["string","markup.fenced_code","markup.inline"],settings:{foreground:r("token-string")}},{scope:["comment","string.quoted.docstring.multi"],settings:{foreground:r("token-comment")}},{scope:["constant.numeric","constant.language","constant.other.placeholder","constant.character.format.placeholder","variable.language.this","variable.other.object","variable.other.class","variable.other.constant","meta.property-name","meta.property-value","support"],settings:{foreground:r("token-constant")}},{scope:["keyword","storage.modifier","storage.type","storage.control.clojure","entity.name.function.clojure","entity.name.tag.yaml","support.function.node","support.type.property-name.json","punctuation.separator.key-value","punctuation.definition.template-expression"],settings:{foreground:r("token-keyword")}},{scope:"variable.parameter.function",settings:{foreground:r("token-parameter")}},{scope:["support.function","entity.name.type","entity.other.inherited-class","meta.function-call","meta.instance.constructor","entity.other.attribute-name","entity.name.function","constant.keyword.clojure"],settings:{foreground:r("token-function")}},{scope:["entity.name.tag","string.quoted","string.regexp","string.interpolated","string.template","string.unquoted.plain.out.yaml","keyword.other.template"],settings:{foreground:r("token-string-expression")}},{scope:["punctuation.definition.arguments","punctuation.definition.dict","punctuation.separator","meta.function-call.arguments"],settings:{foreground:r("token-punctuation")}},{scope:["markup.underline.link","punctuation.definition.metadata.markdown"],settings:{foreground:r("token-link")}},{scope:["beginning.punctuation.definition.list.markdown"],settings:{foreground:r("token-string")}},{scope:["punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown","string.other.link.title.markdown","string.other.link.description.markdown"],settings:{foreground:r("token-keyword")}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{foreground:r("token-inserted")}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{foreground:r("token-deleted")}},{scope:["markup.changed","punctuation.definition.changed"],settings:{foreground:r("token-changed")}}]};return i||(o.tokenColors=o.tokenColors?.map(s=>(s.settings?.fontStyle&&delete s.settings.fontStyle,s))),o}const Go=[{id:"abap",name:"ABAP",import:(()=>m(()=>import("./abap-DPWv1uN1.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>m(()=>import("./actionscript-3-Gnr4MBIu.js"),[]))},{id:"ada",name:"Ada",import:(()=>m(()=>import("./ada-zYvs9t3C.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>m(()=>import("./angular-html-BmH65FG8.js").then(t=>t.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>m(()=>import("./angular-ts-BK4kqMuU.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>m(()=>import("./apache-Df4hDiud.js"),[]))},{id:"apex",name:"Apex",import:(()=>m(()=>import("./apex-D1ZAgq2k.js"),[]))},{id:"apl",name:"APL",import:(()=>m(()=>import("./apl-CUpjOvr5.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>m(()=>import("./applescript-DyaBNi9N.js"),[]))},{id:"ara",name:"Ara",import:(()=>m(()=>import("./ara-Boqq2J9W.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>m(()=>import("./asciidoc-CC8pS6eT.js"),[]))},{id:"asm",name:"Assembly",import:(()=>m(()=>import("./asm-BRv55inW.js"),[]))},{id:"astro",name:"Astro",import:(()=>m(()=>import("./astro-C3XFMB-J.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>m(()=>import("./awk-BC_GmiUq.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>m(()=>import("./ballerina-6n00vJH_.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>m(()=>import("./bat-BWJNNB_F.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>m(()=>import("./beancount-CJIf7JyV.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>m(()=>import("./berry-UR_Dn9en.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>m(()=>import("./bibtex-LwpGkTjV.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>m(()=>import("./bicep-C8aI6fcG.js"),[]))},{id:"blade",name:"Blade",import:(()=>m(()=>import("./blade-BwyyJ1ny.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>m(()=>import("./bsl-PXt1yOou.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>m(()=>import("./c-DbhIm1Fb.js"),[]))},{id:"c3",name:"C3",import:(()=>m(()=>import("./c3-CLFiwSqM.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>m(()=>import("./cadence-BwxCJ59J.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>m(()=>import("./cairo-CkN0_AGx.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>m(()=>import("./clarity-CWxgMYTK.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>m(()=>import("./clojure-CuptLZYh.js"),[]))},{id:"cmake",name:"CMake",import:(()=>m(()=>import("./cmake-CV-YVOv1.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>m(()=>import("./cobol-CUvuWnt9.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>m(()=>import("./codeowners-BvCy-vDX.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>m(()=>import("./codeql-B4l6nK7b.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>m(()=>import("./coffee-DHT847V8.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>m(()=>import("./common-lisp-BICWGRBO.js"),[]))},{id:"coq",name:"Coq",import:(()=>m(()=>import("./coq-z8esNeOH.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>m(()=>import("./cpp-BIlA9ukJ.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>m(()=>import("./crystal-CGK_9UWj.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>m(()=>import("./csharp-CU9SBLwM.js"),[]))},{id:"css",name:"CSS",import:(()=>m(()=>import("./css-C6fP25bB.js"),[]))},{id:"csv",name:"CSV",import:(()=>m(()=>import("./csv-BBEN1AFj.js"),[]))},{id:"cue",name:"CUE",import:(()=>m(()=>import("./cue-CeEzrYXM.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>m(()=>import("./cypher-D0gn7ktP.js"),[]))},{id:"d",name:"D",import:(()=>m(()=>import("./d-Dl1Z7wz4.js"),[]))},{id:"dart",name:"Dart",import:(()=>m(()=>import("./dart-D5ro-iqQ.js"),[]))},{id:"dax",name:"DAX",import:(()=>m(()=>import("./dax-CE34a1G-.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>m(()=>import("./desktop-rqs7lENN.js"),[]))},{id:"diff",name:"Diff",import:(()=>m(()=>import("./diff-BL-4LfcK.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>m(()=>import("./docker-BzQD2dez.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>m(()=>import("./dotenv-CPRjKdjH.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>m(()=>import("./dream-maker-CSL_4Ct0.js"),[]))},{id:"edge",name:"Edge",import:(()=>m(()=>import("./edge-BjePLIcL.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>m(()=>import("./elixir-DOnjEmfY.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>m(()=>import("./elm-HYDQaoSp.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>m(()=>import("./emacs-lisp-DmCLiZVT.js"),[]))},{id:"erb",name:"ERB",import:(()=>m(()=>import("./erb-Un3Uw2EV.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>m(()=>import("./erlang-DtV7MFVW.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>m(()=>import("./fennel-BSD2T0Gm.js"),[]))},{id:"fish",name:"Fish",import:(()=>m(()=>import("./fish-CLgA_Vtt.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>m(()=>import("./fluent-hIqvCHRM.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>m(()=>import("./fortran-fixed-form-BoI8Mr6h.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>m(()=>import("./fortran-free-form-GVuOXQTl.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>m(()=>import("./fsharp-BsFSMI_h.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:(()=>m(()=>import("./gdresource-BwUfcn6I.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:(()=>m(()=>import("./gdscript-D5h9VgRx.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>m(()=>import("./gdshader-qcbIlyyi.js"),[]))},{id:"genie",name:"Genie",import:(()=>m(()=>import("./genie-B5WHlNQP.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>m(()=>import("./gherkin-CiJU5Jh7.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>m(()=>import("./git-commit-C6vnoD8R.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>m(()=>import("./git-rebase-ofxTSFO1.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>m(()=>import("./gleam-GZelxB76.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>m(()=>import("./glimmer-js-tmaXecsM.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>m(()=>import("./glimmer-ts-CR4KABhC.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>m(()=>import("./glsl-TInMf61v.js"),__vite__mapDeps([25,26])))},{id:"gn",name:"GN",import:(()=>m(()=>import("./gn-Cnxi2juf.js"),[]))},{id:"gnuplot",name:"Gnuplot",import:(()=>m(()=>import("./gnuplot-Dfq7jDJi.js"),[]))},{id:"go",name:"Go",import:(()=>m(()=>import("./go-DzbNi7d5.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>m(()=>import("./graphql-RJjRICG0.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>m(()=>import("./groovy-Cv95lF1H.js"),[]))},{id:"hack",name:"Hack",import:(()=>m(()=>import("./hack-Cpa92xoH.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>m(()=>import("./haml-BiKrxaKx.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>m(()=>import("./handlebars-adnL_GFW.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>m(()=>import("./haskell-Cx2p2Sas.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>m(()=>import("./haxe-DxjfJhV2.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>m(()=>import("./hcl-CQnrV8XM.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>m(()=>import("./hjson-DqH9CfoE.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>m(()=>import("./hlsl-C5kMyYFO.js"),[]))},{id:"html",name:"HTML",import:(()=>m(()=>import("./html-BqtHrN6j.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>m(()=>import("./html-derivative-BYuDksc0.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>m(()=>import("./http-DDeBXu00.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>m(()=>import("./hurl-ia64ho5v.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>m(()=>import("./hxml-C2T1b6Uj.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>m(()=>import("./hy-C5HOB9u0.js"),[]))},{id:"imba",name:"Imba",import:(()=>m(()=>import("./imba-DA0ltSfZ.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>m(()=>import("./ini-D1rlPQdQ.js"),[]))},{id:"java",name:"Java",import:(()=>m(()=>import("./java-QnWcjcM1.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>m(()=>import("./javascript-Bm6mLNC-.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>m(()=>import("./jinja-CaJBZIgd.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>m(()=>import("./jison-Dcd913qk.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>m(()=>import("./json-ClnRHh-a.js"),[]))},{id:"json5",name:"JSON5",import:(()=>m(()=>import("./json5-BNALByhW.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>m(()=>import("./jsonc-OKLTFUjy.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>m(()=>import("./jsonl-D3r1P3Ix.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>m(()=>import("./jsonnet-DBZ2vATn.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>m(()=>import("./jssm-CfFNwPDC.js"),[]))},{id:"jsx",name:"JSX",import:(()=>m(()=>import("./jsx-A1aPtx1x.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>m(()=>import("./julia-ZQhIVCQd.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"kdl",name:"KDL",import:(()=>m(()=>import("./kdl-CuUg-MFf.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>m(()=>import("./kotlin-r6SpUtDI.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>m(()=>import("./kusto-BW0Rotnb.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>m(()=>import("./latex-uasMX1T6.js"),__vite__mapDeps([63,64,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>m(()=>import("./lean-B-Qe95HG.js"),[]))},{id:"less",name:"Less",import:(()=>m(()=>import("./less-DFV-pDHn.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>m(()=>import("./liquid-DnpnVOFI.js"),__vite__mapDeps([65,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>m(()=>import("./llvm-CEht3DyH.js"),[]))},{id:"log",name:"Log file",import:(()=>m(()=>import("./log-DDX2V-zW.js"),[]))},{id:"logo",name:"Logo",import:(()=>m(()=>import("./logo-BApQBkJc.js"),[]))},{id:"lua",name:"Lua",import:(()=>m(()=>import("./lua-XFvCb1Xu.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>m(()=>import("./luau-BRCwSVun.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>m(()=>import("./make-CES7tIJl.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>m(()=>import("./markdown-KssX2sMt.js"),[]))},{id:"marko",name:"Marko",import:(()=>m(()=>import("./marko-Bi0cZG0p.js"),__vite__mapDeps([66,3,67,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>m(()=>import("./matlab-DDRxoJS2.js"),[]))},{id:"mdc",name:"MDC",import:(()=>m(()=>import("./mdc-dZSQxO75.js"),__vite__mapDeps([68,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>m(()=>import("./mdx-Dps6nDTH.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>m(()=>import("./mermaid-myA3C1xT.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>m(()=>import("./mipsasm-CXjxxgjf.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>m(()=>import("./mojo-B2MS52O8.js"),[]))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:(()=>m(()=>import("./moonbit-kQlexyPW.js"),[]))},{id:"move",name:"Move",import:(()=>m(()=>import("./move-1vv9KkdT.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>m(()=>import("./narrat-BqCihm0m.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>m(()=>import("./nextflow-CjfegR52.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>m(()=>import("./nginx-z2j80YMe.js"),__vite__mapDeps([69,37,26])))},{id:"nim",name:"Nim",import:(()=>m(()=>import("./nim-CheR0bgT.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>m(()=>import("./nix-C6AB-3QL.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>m(()=>import("./nushell-DMmcib2t.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>m(()=>import("./objective-c-CsBAamkK.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>m(()=>import("./objective-cpp-DaJ21u0L.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>m(()=>import("./ocaml-C0gT-_ZI.js"),[]))},{id:"odin",name:"Odin",import:(()=>m(()=>import("./odin-dWjs1lDr.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>m(()=>import("./openscad-DYDhhKY7.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>m(()=>import("./pascal-B-9z9Bb_.js"),[]))},{id:"perl",name:"Perl",import:(()=>m(()=>import("./perl-BJGQJYxN.js"),__vite__mapDeps([71,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>m(()=>import("./php-DUPEHwcd.js"),__vite__mapDeps([72,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>m(()=>import("./pkl-CIxY8h0x.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>m(()=>import("./plsql-Cspmm0hZ.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>m(()=>import("./po-Dx6s_8mi.js"),[]))},{id:"polar",name:"Polar",import:(()=>m(()=>import("./polar-CQUaGvbb.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>m(()=>import("./postcss-DyHMoc_1.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>m(()=>import("./powerquery-BpVuuUTy.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>m(()=>import("./powershell-CTZHi9Hv.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>m(()=>import("./prisma-jY0jqcHX.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>m(()=>import("./prolog-DAAwHbUs.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>m(()=>import("./proto-DJ9jpBI4.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>m(()=>import("./pug-DOY0UoXu.js"),__vite__mapDeps([73,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>m(()=>import("./puppet-CBWC0fZr.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>m(()=>import("./purescript-C67F9098.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>m(()=>import("./python-nms1R9Mv.js"),[]))},{id:"qml",name:"QML",import:(()=>m(()=>import("./qml-D1D2Ppo-.js"),__vite__mapDeps([74,2])))},{id:"qmldir",name:"QML Directory",import:(()=>m(()=>import("./qmldir-D8OkynnI.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>m(()=>import("./qss-C0ZFopia.js"),[]))},{id:"r",name:"R",import:(()=>m(()=>import("./r-DekjewFw.js"),[]))},{id:"racket",name:"Racket",import:(()=>m(()=>import("./racket-DyCSGAIQ.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>m(()=>import("./raku-CTXErgXs.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>m(()=>import("./razor-DJ4VgIET.js"),__vite__mapDeps([75,1,2,3,76])))},{id:"reg",name:"Windows Registry Script",import:(()=>m(()=>import("./reg-scCe8vXX.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>m(()=>import("./regexp-CNthu7ad.js"),[]))},{id:"rel",name:"Rel",import:(()=>m(()=>import("./rel-D3whOTSJ.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>m(()=>import("./riscv-BpQcOflE.js"),[]))},{id:"ron",name:"RON",import:(()=>m(()=>import("./ron-BNDWZPDL.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>m(()=>import("./rosmsg-DfCK5Cx1.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>m(()=>import("./rst-CtAdheuy.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>m(()=>import("./ruby-DfWlRtso.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>m(()=>import("./rust-CT3z5su4.js"),[]))},{id:"sas",name:"SAS",import:(()=>m(()=>import("./sas-CfiahfKy.js"),__vite__mapDeps([79,16])))},{id:"sass",name:"Sass",import:(()=>m(()=>import("./sass-CcWXakFe.js"),[]))},{id:"scala",name:"Scala",import:(()=>m(()=>import("./scala-9AjXy62u.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>m(()=>import("./scheme-XFAcc9-t.js"),[]))},{id:"scss",name:"SCSS",import:(()=>m(()=>import("./scss-C0gpEqCm.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>m(()=>import("./sdbl-CzZqw5iV.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>m(()=>import("./shaderlab-vYgQ1M5z.js"),__vite__mapDeps([80,81])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>m(()=>import("./shellscript-Sit_DK6o.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>m(()=>import("./shellsession-wmGfB2Uh.js"),__vite__mapDeps([82,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>m(()=>import("./smalltalk-Bce4xFSf.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>m(()=>import("./solidity-CFS9PSoU.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>m(()=>import("./soy-CximaQyM.js"),__vite__mapDeps([83,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>m(()=>import("./sparql-BkKi6dD7.js"),__vite__mapDeps([84,85])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>m(()=>import("./splunk-B4SsYxSW.js"),[]))},{id:"sql",name:"SQL",import:(()=>m(()=>import("./sql-BgWZT08-.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>m(()=>import("./ssh-config-QokbNkta.js"),[]))},{id:"stata",name:"Stata",import:(()=>m(()=>import("./stata-DHdbKgRR.js"),__vite__mapDeps([86,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>m(()=>import("./stylus-BxxF0E07.js"),[]))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:(()=>m(()=>import("./surrealql-CyT5l8ij.js"),__vite__mapDeps([87,2])))},{id:"svelte",name:"Svelte",import:(()=>m(()=>import("./svelte-B0qdszaC.js"),__vite__mapDeps([88,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>m(()=>import("./swift-DIy3j30S.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>m(()=>import("./system-verilog-ByLNSOF9.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>m(()=>import("./systemd-C-R4nZoW.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>m(()=>import("./talonscript-BXe7m4X2.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>m(()=>import("./tasl-DktKs1HG.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>m(()=>import("./tcl-Bw37_bcs.js"),[]))},{id:"templ",name:"Templ",import:(()=>m(()=>import("./templ-cHeWFU4l.js"),__vite__mapDeps([89,90,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>m(()=>import("./terraform-pM-UMd51.js"),[]))},{id:"tex",name:"TeX",import:(()=>m(()=>import("./tex-DuTtBDq4.js"),__vite__mapDeps([64,62])))},{id:"toml",name:"TOML",import:(()=>m(()=>import("./toml-DnLkN3q8.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>m(()=>import("./ts-tags-CDDIZ5hF.js"),__vite__mapDeps([91,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>m(()=>import("./tsv-DywjNZeA.js"),[]))},{id:"tsx",name:"TSX",import:(()=>m(()=>import("./tsx-CQ5nD7MS.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>m(()=>import("./turtle-9LNJ9pTW.js"),[]))},{id:"twig",name:"Twig",import:(()=>m(()=>import("./twig-DXN1ON9r.js"),__vite__mapDeps([92,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>m(()=>import("./typescript-CMhgzGRv.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>m(()=>import("./typespec-DH3d6K3a.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>m(()=>import("./typst-C94fOFLs.js"),[]))},{id:"v",name:"V",import:(()=>m(()=>import("./v-Cg_wiFG8.js"),[]))},{id:"vala",name:"Vala",import:(()=>m(()=>import("./vala-DAd38nzm.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>m(()=>import("./vb-Bozaz7Jk.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>m(()=>import("./verilog-DXoFd7pi.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>m(()=>import("./vhdl-B7q3qYpa.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>m(()=>import("./viml-HUjMCIOj.js"),[]))},{id:"vue",name:"Vue",import:(()=>m(()=>import("./vue-Ce6C56Aw.js"),__vite__mapDeps([93,3,2,11,9,1,15])))},{id:"vue-html",name:"Vue HTML",import:(()=>m(()=>import("./vue-html-DySpIeKa.js"),__vite__mapDeps([94,2])))},{id:"vue-vine",name:"Vue Vine",import:(()=>m(()=>import("./vue-vine-CxzvI23K.js"),__vite__mapDeps([95,3,5,67,96,12,2])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>m(()=>import("./vyper-D15CJsnJ.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>m(()=>import("./wasm-LfyIz7f7.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>m(()=>import("./wenyan-Bwvta48Y.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>m(()=>import("./wgsl-BwnKUc0U.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>m(()=>import("./wikitext-BuDobXuf.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>m(()=>import("./wit-4ZdYuHm8.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>m(()=>import("./wolfram-B4RKxhwG.js"),[]))},{id:"xml",name:"XML",import:(()=>m(()=>import("./xml-D-zmg7gU.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>m(()=>import("./xsl-CKRXmXyC.js"),__vite__mapDeps([97,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>m(()=>import("./yaml-BockATsl.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>m(()=>import("./zenscript-ysaz_10h.js"),[]))},{id:"zig",name:"Zig",import:(()=>m(()=>import("./zig-BTysrzCF.js"),[]))}],pc=Object.fromEntries(Go.map(t=>[t.id,t.import])),mc=Object.fromEntries(Go.flatMap(t=>t.aliases?.map(e=>[e,t.import])||[])),ni={...pc,...mc},gc=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>m(()=>import("./andromeeda-BKVzGBdj.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>m(()=>import("./aurora-x-BTYb-G9P.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>m(()=>import("./ayu-dark-lsIQrZ-m.js"),[]))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:(()=>m(()=>import("./ayu-light-DQpQHyEg.js"),[]))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:(()=>m(()=>import("./ayu-mirage-cjkkQtl-.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>m(()=>import("./catppuccin-frappe-BKBWE-kf.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>m(()=>import("./catppuccin-latte-Dn_wO80W.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>m(()=>import("./catppuccin-macchiato-B1P9HPgP.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>m(()=>import("./catppuccin-mocha-B7ZBybC-.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>m(()=>import("./dark-plus-AJlRLNS9.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>m(()=>import("./dracula-CV7SlReP.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>m(()=>import("./dracula-soft-JsIV5ZhX.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>m(()=>import("./everforest-dark-CSmjfzXF.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>m(()=>import("./everforest-light-Didqzd0R.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>m(()=>import("./github-dark-BzHyzeOt.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>m(()=>import("./github-dark-default-C-JNuWHi.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>m(()=>import("./github-dark-dimmed-D30WlJd7.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>m(()=>import("./github-dark-high-contrast-MmaCJo_P.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>m(()=>import("./github-light-CRmTf71Y.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>m(()=>import("./github-light-default-DOcIjpJl.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>m(()=>import("./github-light-high-contrast-rIvjosom.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>m(()=>import("./gruvbox-dark-hard-CHuMFDRe.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>m(()=>import("./gruvbox-dark-medium-CL6XN4Tb.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>m(()=>import("./gruvbox-dark-soft-C-jqIzOQ.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>m(()=>import("./gruvbox-light-hard-C732sOVF.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>m(()=>import("./gruvbox-light-medium-DxZECFbJ.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>m(()=>import("./gruvbox-light-soft-fSXSseNX.js"),[]))},{id:"horizon",displayName:"Horizon",type:"dark",import:(()=>m(()=>import("./horizon-WJm9K8n4.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>m(()=>import("./houston-Dxmi8vug.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>m(()=>import("./kanagawa-dragon-Cd8HScG5.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>m(()=>import("./kanagawa-lotus-DlYKsmKE.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>m(()=>import("./kanagawa-wave-De2dJga1.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>m(()=>import("./laserwave-DU-cLQrM.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>m(()=>import("./light-plus-CZ289CX-.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>m(()=>import("./material-theme-Dlj5qui4.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>m(()=>import("./material-theme-darker-CWmUdUey.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>m(()=>import("./material-theme-lighter-D_uUHuIH.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>m(()=>import("./material-theme-ocean-D1XhAFj3.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>m(()=>import("./material-theme-palenight-Nh3fkUcn.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>m(()=>import("./min-dark-hsmmMYMV.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>m(()=>import("./min-light-CpbywGGL.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>m(()=>import("./monokai-Cfzb8UMI.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>m(()=>import("./night-owl-BRO-U4t3.js"),[]))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:(()=>m(()=>import("./night-owl-light-DkivASr1.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>m(()=>import("./nord-AeN7bRvP.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>m(()=>import("./one-dark-pro-DjZzIsnz.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>m(()=>import("./one-light-VrdCkofK.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>m(()=>import("./plastic-CpTz_ncZ.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>m(()=>import("./poimandres-A27lgC4R.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>m(()=>import("./red-C8lcz3aq.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>m(()=>import("./rose-pine-ZTjJPdqO.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>m(()=>import("./rose-pine-dawn-CuyePNpr.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>m(()=>import("./rose-pine-moon-B8L3uPzM.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>m(()=>import("./slack-dark-Ciqmllm2.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>m(()=>import("./slack-ochin-CojzpuMb.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>m(()=>import("./snazzy-light-CUQXme-o.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>m(()=>import("./solarized-dark-D5LOZry1.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>m(()=>import("./solarized-light-DLiZg3AB.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>m(()=>import("./synthwave-84-y4WVU-a-.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>m(()=>import("./tokyo-night-DzgXW6ib.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>m(()=>import("./vesper-C_uDcCQb.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>m(()=>import("./vitesse-black-DI6mzVQY.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>m(()=>import("./vitesse-dark-D705dHQT.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>m(()=>import("./vitesse-light-BwwdjRzI.js"),[]))}],jo=Object.fromEntries(gc.map(t=>[t.id,t.import]));class Si extends Error{constructor(e){super(e),this.name="ShikiError"}}function bc(){return 2147483648}function vc(){return typeof performance<"u"?performance.now():Date.now()}const _c=(t,e)=>t+(e-t%e)%e;async function yc(t){let e,n;const i={};function r(h){n=h,i.HEAPU8=new Uint8Array(h),i.HEAPU32=new Uint32Array(h)}function o(h,p,b){i.HEAPU8.copyWithin(h,p,p+b)}function s(h){try{return e.grow(h-n.byteLength+65535>>>16),r(e.buffer),1}catch{}}function l(h){const p=i.HEAPU8.length;h=h>>>0;const b=bc();if(h>b)return!1;for(let y=1;y<=4;y*=2){let _=p*(1+.2/y);_=Math.min(_,h+100663296);const g=Math.min(b,_c(Math.max(h,_),65536));if(s(g))return!0}return!1}const a=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(h,p,b=1024){const y=p+b;let _=p;for(;h[_]&&!(_>=y);)++_;if(_-p>16&&h.buffer&&a)return a.decode(h.subarray(p,_));let g="";for(;p<_;){let v=h[p++];if(!(v&128)){g+=String.fromCharCode(v);continue}const k=h[p++]&63;if((v&224)===192){g+=String.fromCharCode((v&31)<<6|k);continue}const C=h[p++]&63;if((v&240)===224?v=(v&15)<<12|k<<6|C:v=(v&7)<<18|k<<12|C<<6|h[p++]&63,v<65536)g+=String.fromCharCode(v);else{const w=v-65536;g+=String.fromCharCode(55296|w>>10,56320|w&1023)}}return g}function c(h,p){return h?d(i.HEAPU8,h,p):""}const u={emscripten_get_now:vc,emscripten_memcpy_big:o,emscripten_resize_heap:l,fd_write:()=>0};async function f(){const p=await t({env:u,wasi_snapshot_preview1:u});e=p.memory,r(e.buffer),Object.assign(i,p),i.UTF8ToString=c}return await f(),i}var wc=Object.defineProperty,kc=(t,e,n)=>e in t?wc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,z=(t,e,n)=>kc(t,typeof e!="symbol"?e+"":e,n);let X=null;function Cc(t){throw new Si(t.UTF8ToString(t.getLastOnigError()))}class ln{constructor(e){z(this,"utf16Length"),z(this,"utf8Length"),z(this,"utf16Value"),z(this,"utf8Value"),z(this,"utf16OffsetToUtf8"),z(this,"utf8OffsetToUtf16");const n=e.length,i=ln._utf8ByteLength(e),r=i!==n,o=r?new Uint32Array(n+1):null;r&&(o[n]=i);const s=r?new Uint32Array(i+1):null;r&&(s[i]=n);const l=new Uint8Array(i);let a=0;for(let d=0;d<n;d++){const c=e.charCodeAt(d);let u=c,f=!1;if(c>=55296&&c<=56319&&d+1<n){const h=e.charCodeAt(d+1);h>=56320&&h<=57343&&(u=(c-55296<<10)+65536|h-56320,f=!0)}r&&(o[d]=a,f&&(o[d+1]=a),u<=127?s[a+0]=d:u<=2047?(s[a+0]=d,s[a+1]=d):u<=65535?(s[a+0]=d,s[a+1]=d,s[a+2]=d):(s[a+0]=d,s[a+1]=d,s[a+2]=d,s[a+3]=d)),u<=127?l[a++]=u:u<=2047?(l[a++]=192|(u&1984)>>>6,l[a++]=128|(u&63)>>>0):u<=65535?(l[a++]=224|(u&61440)>>>12,l[a++]=128|(u&4032)>>>6,l[a++]=128|(u&63)>>>0):(l[a++]=240|(u&1835008)>>>18,l[a++]=128|(u&258048)>>>12,l[a++]=128|(u&4032)>>>6,l[a++]=128|(u&63)>>>0),f&&d++}this.utf16Length=n,this.utf8Length=i,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(e){let n=0;for(let i=0,r=e.length;i<r;i++){const o=e.charCodeAt(i);let s=o,l=!1;if(o>=55296&&o<=56319&&i+1<r){const a=e.charCodeAt(i+1);a>=56320&&a<=57343&&(s=(o-55296<<10)+65536|a-56320,l=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,l&&i++}return n}createString(e){const n=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,n),n}}const dn=class ge{constructor(e){if(z(this,"id",++ge.LAST_ID),z(this,"_onigBinding"),z(this,"content"),z(this,"utf16Length"),z(this,"utf8Length"),z(this,"utf16OffsetToUtf8"),z(this,"utf8OffsetToUtf16"),z(this,"ptr"),!X)throw new Si("Must invoke loadWasm first.");this._onigBinding=X,this.content=e;const n=new ln(e);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!ge._sharedPtrInUse?(ge._sharedPtr||(ge._sharedPtr=X.omalloc(1e4)),ge._sharedPtrInUse=!0,X.HEAPU8.set(n.utf8Value,ge._sharedPtr),this.ptr=ge._sharedPtr):this.ptr=n.createString(X)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===ge._sharedPtr?ge._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};z(dn,"LAST_ID",0);z(dn,"_sharedPtr",0);z(dn,"_sharedPtrInUse",!1);let Fo=dn;class Ec{constructor(e){if(z(this,"_onigBinding"),z(this,"_ptr"),!X)throw new Si("Must invoke loadWasm first.");const n=[],i=[];for(let l=0,a=e.length;l<a;l++){const d=new ln(e[l]);n[l]=d.createString(X),i[l]=d.utf8Length}const r=X.omalloc(4*e.length);X.HEAPU32.set(n,r/4);const o=X.omalloc(4*e.length);X.HEAPU32.set(i,o/4);const s=X.createOnigScanner(r,o,e.length);for(let l=0,a=e.length;l<a;l++)X.ofree(n[l]);X.ofree(o),X.ofree(r),s===0&&Cc(X),this._onigBinding=X,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,n,i){let r=0;if(typeof i=="number"&&(r=i),typeof e=="string"){e=new Fo(e);const o=this._findNextMatchSync(e,n,!1,r);return e.dispose(),o}return this._findNextMatchSync(e,n,!1,r)}_findNextMatchSync(e,n,i,r){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(n),r);if(s===0)return null;const l=o.HEAPU32;let a=s/4;const d=l[a++],c=l[a++],u=[];for(let f=0;f<c;f++){const h=e.convertUtf8OffsetToUtf16(l[a++]),p=e.convertUtf8OffsetToUtf16(l[a++]);u[f]={start:h,end:p,length:p-h}}return{index:d,captureIndices:u}}}function Sc(t){return typeof t.instantiator=="function"}function xc(t){return typeof t.default=="function"}function Lc(t){return typeof t.data<"u"}function Ac(t){return typeof Response<"u"&&t instanceof Response}function Ic(t){return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&Buffer.isBuffer?.(t)||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}let At;function Tc(t){if(At)return At;async function e(){X=await yc(async n=>{let i=t;return i=await i,typeof i=="function"&&(i=await i(n)),typeof i=="function"&&(i=await i(n)),Sc(i)?i=await i.instantiator(n):xc(i)?i=await i.default(n):(Lc(i)&&(i=i.data),Ac(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await Rc(i)(n):i=await Pc(i)(n):Ic(i)?i=await Cn(i)(n):i instanceof WebAssembly.Module?i=await Cn(i)(n):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await Cn(i.default)(n))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return At=e(),At}function Cn(t){return e=>WebAssembly.instantiate(t,e)}function Rc(t){return e=>WebAssembly.instantiateStreaming(t,e)}function Pc(t){return async e=>{const n=await t.arrayBuffer();return WebAssembly.instantiate(n,e)}}async function Bo(t){return t&&await Tc(t),{createScanner(e){return new Ec(e.map(n=>typeof n=="string"?n:n.source))},createString(e){return new Fo(e)}}}const Dc=fc({langs:ni,themes:jo,engine:()=>Bo(m(()=>import("./wasm-BcWxOZ3f.js"),[]))});function it(t){if([...t].length!==1)throw new Error(`Expected "${t}" to be a single code point`);return t.codePointAt(0)}function Nc(t,e,n){return t.has(e)||t.set(e,n),t.get(e)}const xi=new Set(["alnum","alpha","ascii","blank","cntrl","digit","graph","lower","print","punct","space","upper","word","xdigit"]),K=String.raw;function rt(t,e){if(t==null)throw new Error(e??"Value expected");return t}const zo=K`\[\^?`,Wo=`c.? | C(?:-.?)?|${K`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${K`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${K`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${K`o\{[^\}]*\}?`}|${K`\d{1,3}`}`,Li=/[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/,It=new RegExp(K`
|
|
14
|
-
\\ (?:
|
|
15
|
-
${Wo}
|
|
16
|
-
| [gk]<[^>]*>?
|
|
17
|
-
| [gk]'[^']*'?
|
|
18
|
-
| .
|
|
19
|
-
)
|
|
20
|
-
| \( (?:
|
|
21
|
-
\? (?:
|
|
22
|
-
[:=!>({]
|
|
23
|
-
| <[=!]
|
|
24
|
-
| <[^>]*>
|
|
25
|
-
| '[^']*'
|
|
26
|
-
| ~\|?
|
|
27
|
-
| #(?:[^)\\]|\\.?)*
|
|
28
|
-
| [^:)]*[:)]
|
|
29
|
-
)?
|
|
30
|
-
| \*[^\)]*\)?
|
|
31
|
-
)?
|
|
32
|
-
| (?:${Li.source})+
|
|
33
|
-
| ${zo}
|
|
34
|
-
| .
|
|
35
|
-
`.replace(/\s+/g,""),"gsu"),En=new RegExp(K`
|
|
36
|
-
\\ (?:
|
|
37
|
-
${Wo}
|
|
38
|
-
| .
|
|
39
|
-
)
|
|
40
|
-
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
41
|
-
| ${zo}
|
|
42
|
-
| &&
|
|
43
|
-
| .
|
|
44
|
-
`.replace(/\s+/g,""),"gsu");function Oc(t,e={}){const n={flags:"",...e,rules:{captureGroup:!1,singleline:!1,...e.rules}};if(typeof t!="string")throw new Error("String expected as pattern");const i=eu(n.flags),r=[i.extended],o={captureGroup:n.rules.captureGroup,getCurrentModX(){return r.at(-1)},numOpenGroups:0,popModX(){r.pop()},pushModX(u){r.push(u)},replaceCurrentModX(u){r[r.length-1]=u},singleline:n.rules.singleline};let s=[],l;for(It.lastIndex=0;l=It.exec(t);){const u=Mc(o,t,l[0],It.lastIndex);u.tokens?s.push(...u.tokens):u.token&&s.push(u.token),u.lastIndex!==void 0&&(It.lastIndex=u.lastIndex)}const a=[];let d=0;s.filter(u=>u.type==="GroupOpen").forEach(u=>{u.kind==="capturing"?u.number=++d:u.raw==="("&&a.push(u)}),d||a.forEach((u,f)=>{u.kind="capturing",u.number=f+1});const c=d||a.length;return{tokens:s.map(u=>u.type==="EscapedNumber"?nu(u,c):u).flat(),flags:i}}function Mc(t,e,n,i){const[r,o]=n;if(n==="["||n==="[^"){const s=$c(e,n,i);return{tokens:s.tokens,lastIndex:s.lastIndex}}if(r==="\\"){if("AbBGyYzZ".includes(o))return{token:ur(n,n)};if(/^\\g[<']/.test(n)){if(!/^\\g(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:qc(n)}}if(/^\\k[<']/.test(n)){if(!/^\\k(?:<[^>]+>|'[^']+')$/.test(n))throw new Error(`Invalid group name "${n}"`);return{token:Xo(n)}}if(o==="K")return{token:Ko("keep",n)};if(o==="N"||o==="R")return{token:Me("newline",n,{negate:o==="N"})};if(o==="O")return{token:Me("any",n)};if(o==="X")return{token:Me("text_segment",n)};const s=qo(n,{inCharClass:!1});return Array.isArray(s)?{tokens:s}:{token:s}}if(r==="("){if(o==="*")return{token:Jc(n)};if(n==="(?{")throw new Error(`Unsupported callout "${n}"`);if(n.startsWith("(?#")){if(e[i]!==")")throw new Error('Unclosed comment group "(?#"');return{lastIndex:i+1}}if(/^\(\?[-imx]+[:)]$/.test(n))return{token:Qc(n,t)};if(t.pushModX(t.getCurrentModX()),t.numOpenGroups++,n==="("&&!t.captureGroup||n==="(?:")return{token:We("group",n)};if(n==="(?>")return{token:We("atomic",n)};if(n==="(?="||n==="(?!"||n==="(?<="||n==="(?<!")return{token:We(n[2]==="<"?"lookbehind":"lookahead",n,{negate:n.endsWith("!")})};if(n==="("&&t.captureGroup||n.startsWith("(?<")&&n.endsWith(">")||n.startsWith("(?'")&&n.endsWith("'"))return{token:We("capturing",n,{...n!=="("&&{name:n.slice(3,-1)}})};if(n.startsWith("(?~")){if(n==="(?~|")throw new Error(`Unsupported absence function kind "${n}"`);return{token:We("absence_repeater",n)}}throw n==="(?("?new Error(`Unsupported conditional "${n}"`):new Error(`Invalid or unsupported group option "${n}"`)}if(n===")"){if(t.popModX(),t.numOpenGroups--,t.numOpenGroups<0)throw new Error('Unmatched ")"');return{token:Bc(n)}}if(t.getCurrentModX()){if(n==="#"){const s=e.indexOf(`
|
|
45
|
-
`,i);return{lastIndex:s===-1?e.length:s}}if(/^\s$/.test(n)){const s=/\s+/y;return s.lastIndex=i,{lastIndex:s.exec(e)?s.lastIndex:i}}}if(n===".")return{token:Me("dot",n)};if(n==="^"||n==="$"){const s=t.singleline?{"^":K`\A`,$:K`\Z`}[n]:n;return{token:ur(s,n)}}return n==="|"?{token:Hc(n)}:Li.test(n)?{tokens:iu(n)}:{token:Se(it(n),n)}}function $c(t,e,n){const i=[fr(e[1]==="^",e)];let r=1,o;for(En.lastIndex=n;o=En.exec(t);){const s=o[0];if(s[0]==="["&&s[1]!==":")r++,i.push(fr(s[1]==="^",s));else if(s==="]"){if(i.at(-1).type==="CharacterClassOpen")i.push(Se(93,s));else if(r--,i.push(Uc(s)),!r)break}else{const l=Vc(s);Array.isArray(l)?i.push(...l):i.push(l)}}return{tokens:i,lastIndex:En.lastIndex||t.length}}function Vc(t){if(t[0]==="\\")return qo(t,{inCharClass:!0});if(t[0]==="["){const e=/\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(t);if(!e||!xi.has(e.groups.name))throw new Error(`Invalid POSIX class "${t}"`);return Me("posix",t,{value:e.groups.name,negate:!!e.groups.negate})}return t==="-"?Gc(t):t==="&&"?jc(t):Se(it(t),t)}function qo(t,{inCharClass:e}){const n=t[1];if(n==="c"||n==="C")return Kc(t);if("dDhHsSwW".includes(n))return Yc(t);if(t.startsWith(K`\o{`))throw new Error(`Incomplete, invalid, or unsupported octal code point "${t}"`);if(/^\\[pP]\{/.test(t)){if(t.length===3)throw new Error(`Incomplete or invalid Unicode property "${t}"`);return Zc(t)}if(new RegExp("^\\\\x[89A-Fa-f]\\p{AHex}","u").test(t))try{const i=t.split(/\\x/).slice(1).map(s=>parseInt(s,16)),r=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}).decode(new Uint8Array(i)),o=new TextEncoder;return[...r].map(s=>{const l=[...o.encode(s)].map(a=>`\\x${a.toString(16)}`).join("");return Se(it(s),l)})}catch{throw new Error(`Multibyte code "${t}" incomplete or invalid in Oniguruma`)}if(n==="u"||n==="x")return Se(tu(t),t);if(hr.has(n))return Se(hr.get(n),t);if(/\d/.test(n))return Fc(e,t);if(t==="\\")throw new Error(K`Incomplete escape "\"`);if(n==="M")throw new Error(`Unsupported meta "${t}"`);if([...t].length===2)return Se(t.codePointAt(1),t);throw new Error(`Unexpected escape "${t}"`)}function Hc(t){return{type:"Alternator",raw:t}}function ur(t,e){return{type:"Assertion",kind:t,raw:e}}function Xo(t){return{type:"Backreference",raw:t}}function Se(t,e){return{type:"Character",value:t,raw:e}}function Uc(t){return{type:"CharacterClassClose",raw:t}}function Gc(t){return{type:"CharacterClassHyphen",raw:t}}function jc(t){return{type:"CharacterClassIntersector",raw:t}}function fr(t,e){return{type:"CharacterClassOpen",negate:t,raw:e}}function Me(t,e,n={}){return{type:"CharacterSet",kind:t,...n,raw:e}}function Ko(t,e,n={}){return t==="keep"?{type:"Directive",kind:t,raw:e}:{type:"Directive",kind:t,flags:rt(n.flags),raw:e}}function Fc(t,e){return{type:"EscapedNumber",inCharClass:t,raw:e}}function Bc(t){return{type:"GroupClose",raw:t}}function We(t,e,n={}){return{type:"GroupOpen",kind:t,...n,raw:e}}function zc(t,e,n,i){return{type:"NamedCallout",kind:t,tag:e,arguments:n,raw:i}}function Wc(t,e,n,i){return{type:"Quantifier",kind:t,min:e,max:n,raw:i}}function qc(t){return{type:"Subroutine",raw:t}}const Xc=new Set(["COUNT","CMP","ERROR","FAIL","MAX","MISMATCH","SKIP","TOTAL_COUNT"]),hr=new Map([["a",7],["b",8],["e",27],["f",12],["n",10],["r",13],["t",9],["v",11]]);function Kc(t){const e=t[1]==="c"?t[2]:t[3];if(!e||!/[A-Za-z]/.test(e))throw new Error(`Unsupported control character "${t}"`);return Se(it(e.toUpperCase())-64,t)}function Qc(t,e){let{on:n,off:i}=/^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(t).groups;i??="";const r=(e.getCurrentModX()||n.includes("x"))&&!i.includes("x"),o=mr(n),s=mr(i),l={};if(o&&(l.enable=o),s&&(l.disable=s),t.endsWith(")"))return e.replaceCurrentModX(r),Ko("flags",t,{flags:l});if(t.endsWith(":"))return e.pushModX(r),e.numOpenGroups++,We("group",t,{...(o||s)&&{flags:l}});throw new Error(`Unexpected flag modifier "${t}"`)}function Jc(t){const e=/\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(t);if(!e)throw new Error(`Incomplete or invalid named callout "${t}"`);const{name:n,tag:i,args:r}=e.groups;if(!n)throw new Error(`Invalid named callout "${t}"`);if(i==="")throw new Error(`Named callout tag with empty value not allowed "${t}"`);const o=r?r.split(",").filter(c=>c!=="").map(c=>/^[+-]?\d+$/.test(c)?+c:c):[],[s,l,a]=o,d=Xc.has(n)?n.toLowerCase():"custom";switch(d){case"fail":case"mismatch":case"skip":if(o.length>0)throw new Error(`Named callout arguments not allowed "${o}"`);break;case"error":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(typeof s=="string")throw new Error(`Named callout argument must be a number "${s}"`);break;case"max":if(!o.length||o.length>2)throw new Error(`Named callout must have one or two arguments "${o}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(o.length===2&&(typeof l=="number"||!/^[<>X]$/.test(l)))throw new Error(`Named callout optional argument two must be '<', '>', or 'X' "${l}"`);break;case"count":case"total_count":if(o.length>1)throw new Error(`Named callout allows only one argument "${o}"`);if(o.length===1&&(typeof s=="number"||!/^[<>X]$/.test(s)))throw new Error(`Named callout optional argument must be '<', '>', or 'X' "${s}"`);break;case"cmp":if(o.length!==3)throw new Error(`Named callout must have three arguments "${o}"`);if(typeof s=="string"&&!/^[A-Za-z_]\w*$/.test(s))throw new Error(`Named callout argument one must be a tag or number "${s}"`);if(typeof l=="number"||!/^(?:[<>!=]=|[<>])$/.test(l))throw new Error(`Named callout argument two must be '==', '!=', '>', '<', '>=', or '<=' "${l}"`);if(typeof a=="string"&&!/^[A-Za-z_]\w*$/.test(a))throw new Error(`Named callout argument three must be a tag or number "${a}"`);break;case"custom":throw new Error(`Undefined callout name "${n}"`);default:throw new Error(`Unexpected named callout kind "${d}"`)}return zc(d,i??null,r?.split(",")??null,t)}function pr(t){let e=null,n,i;if(t[0]==="{"){const{minStr:r,maxStr:o}=/^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(t).groups,s=1e5;if(+r>s||o&&+o>s)throw new Error("Quantifier value unsupported in Oniguruma");if(n=+r,i=o===void 0?+r:o===""?1/0:+o,n>i&&(e="possessive",[n,i]=[i,n]),t.endsWith("?")){if(e==="possessive")throw new Error('Unsupported possessive interval quantifier chain with "?"');e="lazy"}else e||(e="greedy")}else n=t[0]==="+"?1:0,i=t[0]==="?"?1:1/0,e=t[1]==="+"?"possessive":t[1]==="?"?"lazy":"greedy";return Wc(e,n,i,t)}function Yc(t){const e=t[1].toLowerCase();return Me({d:"digit",h:"hex",s:"space",w:"word"}[e],t,{negate:t[1]!==e})}function Zc(t){const{p:e,neg:n,value:i}=/^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(t).groups;return Me("property",t,{value:i,negate:e==="P"&&!n||e==="p"&&!!n})}function mr(t){const e={};return t.includes("i")&&(e.ignoreCase=!0),t.includes("m")&&(e.dotAll=!0),t.includes("x")&&(e.extended=!0),Object.keys(e).length?e:null}function eu(t){const e={ignoreCase:!1,dotAll:!1,extended:!1,digitIsAscii:!1,posixIsAscii:!1,spaceIsAscii:!1,wordIsAscii:!1,textSegmentMode:null};for(let n=0;n<t.length;n++){const i=t[n];if(!"imxDPSWy".includes(i))throw new Error(`Invalid flag "${i}"`);if(i==="y"){if(!/^y{[gw]}/.test(t.slice(n)))throw new Error('Invalid or unspecified flag "y" mode');e.textSegmentMode=t[n+2]==="g"?"grapheme":"word",n+=3;continue}e[{i:"ignoreCase",m:"dotAll",x:"extended",D:"digitIsAscii",P:"posixIsAscii",S:"spaceIsAscii",W:"wordIsAscii"}[i]]=!0}return e}function tu(t){if(new RegExp("^(?:\\\\u(?!\\p{AHex}{4})|\\\\x(?!\\p{AHex}{1,2}|\\{\\p{AHex}{1,8}\\}))","u").test(t))throw new Error(`Incomplete or invalid escape "${t}"`);const e=t[2]==="{"?new RegExp("^\\\\x\\{\\s*(?<hex>\\p{AHex}+)","u").exec(t).groups.hex:t.slice(2);return parseInt(e,16)}function nu(t,e){const{raw:n,inCharClass:i}=t,r=n.slice(1);if(!i&&(r!=="0"&&r.length===1||r[0]!=="0"&&+r<=e))return[Xo(n)];const o=[],s=r.match(/^[0-7]+|\d/g);for(let l=0;l<s.length;l++){const a=s[l];let d;if(l===0&&a!=="8"&&a!=="9"){if(d=parseInt(a,8),d>127)throw new Error(K`Octal encoded byte above 177 unsupported "${n}"`)}else d=it(a);o.push(Se(d,(l===0?"\\":"")+a))}return o}function iu(t){const e=[],n=new RegExp(Li,"gy");let i;for(;i=n.exec(t);){const r=i[0];if(r[0]==="{"){const o=/^\{(?<min>\d+),(?<max>\d+)\}\??$/.exec(r);if(o){const{min:s,max:l}=o.groups;if(+s>+l&&r.endsWith("?")){n.lastIndex--,e.push(pr(r.slice(0,-1)));continue}}}e.push(pr(r))}return e}function Qo(t,e){if(!Array.isArray(t.body))throw new Error("Expected node with body array");if(t.body.length!==1)return!1;const n=t.body[0];return!e||Object.keys(e).every(i=>e[i]===n[i])}function ru(t){return ou.has(t.type)}const ou=new Set(["AbsenceFunction","Backreference","CapturingGroup","Character","CharacterClass","CharacterSet","Group","Quantifier","Subroutine"]);function Jo(t,e={}){const n={flags:"",normalizeUnknownPropertyNames:!1,skipBackrefValidation:!1,skipLookbehindValidation:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e,rules:{captureGroup:!1,singleline:!1,...e.rules}},i=Oc(t,{flags:n.flags,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline}}),r=(f,h)=>{const p=i.tokens[o.nextIndex];switch(o.parent=f,o.nextIndex++,p.type){case"Alternator":return He();case"Assertion":return su(p);case"Backreference":return au(p,o);case"Character":return cn(p.value,{useLastValid:!!h.isCheckingRangeEnd});case"CharacterClassHyphen":return lu(p,o,h);case"CharacterClassOpen":return du(p,o,h);case"CharacterSet":return cu(p,o);case"Directive":return gu(p.kind,{flags:p.flags});case"GroupOpen":return uu(p,o,h);case"NamedCallout":return vu(p.kind,p.tag,p.arguments);case"Quantifier":return fu(p,o);case"Subroutine":return hu(p,o);default:throw new Error(`Unexpected token type "${p.type}"`)}},o={capturingGroups:[],hasNumberedRef:!1,namedGroupsByName:new Map,nextIndex:0,normalizeUnknownPropertyNames:n.normalizeUnknownPropertyNames,parent:null,skipBackrefValidation:n.skipBackrefValidation,skipLookbehindValidation:n.skipLookbehindValidation,skipPropertyNameValidation:n.skipPropertyNameValidation,subroutines:[],tokens:i.tokens,unicodePropertyMap:n.unicodePropertyMap,walk:r},s=yu(bu(i.flags));let l=s.body[0];for(;o.nextIndex<i.tokens.length;){const f=r(l,{});f.type==="Alternative"?(s.body.push(f),l=f):l.body.push(f)}const{capturingGroups:a,hasNumberedRef:d,namedGroupsByName:c,subroutines:u}=o;if(d&&c.size&&!n.rules.captureGroup)throw new Error("Numbered backref/subroutine not allowed when using named capture");for(const{ref:f}of u)if(typeof f=="number"){if(f>a.length)throw new Error("Subroutine uses a group number that's not defined");f&&(a[f-1].isSubroutined=!0)}else if(c.has(f)){if(c.get(f).length>1)throw new Error(K`Subroutine uses a duplicate group name "\g<${f}>"`);c.get(f)[0].isSubroutined=!0}else throw new Error(K`Subroutine uses a group name that's not defined "\g<${f}>"`);return s}function su({kind:t}){return ii(rt({"^":"line_start",$:"line_end","\\A":"string_start","\\b":"word_boundary","\\B":"word_boundary","\\G":"search_start","\\y":"text_segment_boundary","\\Y":"text_segment_boundary","\\z":"string_end","\\Z":"string_end_newline"}[t],`Unexpected assertion kind "${t}"`),{negate:t===K`\B`||t===K`\Y`})}function au({raw:t},e){const n=/^\\k[<']/.test(t),i=n?t.slice(3,-1):t.slice(1),r=(o,s=!1)=>{const l=e.capturingGroups.length;let a=!1;if(o>l)if(e.skipBackrefValidation)a=!0;else throw new Error(`Not enough capturing groups defined to the left "${t}"`);return e.hasNumberedRef=!0,ri(s?l+1-o:o,{orphan:a})};if(n){const o=/^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(i);if(o)return r(+o.groups.num,!!o.groups.sign);if(/[-+]/.test(i))throw new Error(`Invalid backref name "${t}"`);if(!e.namedGroupsByName.has(i))throw new Error(`Group name not defined to the left "${t}"`);return ri(i)}return r(+i)}function lu(t,e,n){const{tokens:i,walk:r}=e,o=e.parent,s=o.body.at(-1),l=i[e.nextIndex];if(!n.isCheckingRangeEnd&&s&&s.type!=="CharacterClass"&&s.type!=="CharacterClassRange"&&l&&l.type!=="CharacterClassOpen"&&l.type!=="CharacterClassClose"&&l.type!=="CharacterClassIntersector"){const a=r(o,{...n,isCheckingRangeEnd:!0});if(s.type==="Character"&&a.type==="Character")return o.body.pop(),mu(s,a);throw new Error("Invalid character class range")}return cn(it("-"))}function du({negate:t},e,n){const{tokens:i,walk:r}=e,o=i[e.nextIndex],s=[Gt()];let l=vr(o);for(;l.type!=="CharacterClassClose";){if(l.type==="CharacterClassIntersector")s.push(Gt()),e.nextIndex++;else{const d=s.at(-1);d.body.push(r(d,n))}l=vr(i[e.nextIndex],o)}const a=Gt({negate:t});return s.length===1?a.body=s[0].body:(a.kind="intersection",a.body=s.map(d=>d.body.length===1?d.body[0]:d)),e.nextIndex++,a}function cu({kind:t,negate:e,value:n},i){const{normalizeUnknownPropertyNames:r,skipPropertyNameValidation:o,unicodePropertyMap:s}=i;if(t==="property"){const l=un(n);if(xi.has(l)&&!s?.has(l))t="posix",n=l;else return qe(n,{negate:e,normalizeUnknownPropertyNames:r,skipPropertyNameValidation:o,unicodePropertyMap:s})}return t==="posix"?_u(n,{negate:e}):oi(t,{negate:e})}function uu(t,e,n){const{tokens:i,capturingGroups:r,namedGroupsByName:o,skipLookbehindValidation:s,walk:l}=e,a=wu(t),d=a.type==="AbsenceFunction",c=br(a),u=c&&a.negate;if(a.type==="CapturingGroup"&&(r.push(a),a.name&&Nc(o,a.name,[]).push(a)),d&&n.isInAbsenceFunction)throw new Error("Nested absence function not supported by Oniguruma");let f=_r(i[e.nextIndex]);for(;f.type!=="GroupClose";){if(f.type==="Alternator")a.body.push(He()),e.nextIndex++;else{const h=a.body.at(-1),p=l(h,{...n,isInAbsenceFunction:n.isInAbsenceFunction||d,isInLookbehind:n.isInLookbehind||c,isInNegLookbehind:n.isInNegLookbehind||u});if(h.body.push(p),(c||n.isInLookbehind)&&!s){const b="Lookbehind includes a pattern not allowed by Oniguruma";if(u||n.isInNegLookbehind){if(gr(p)||p.type==="CapturingGroup")throw new Error(b)}else if(gr(p)||br(p)&&p.negate)throw new Error(b)}}f=_r(i[e.nextIndex])}return e.nextIndex++,a}function fu({kind:t,min:e,max:n},i){const r=i.parent,o=r.body.at(-1);if(!o||!ru(o))throw new Error("Quantifier requires a repeatable token");const s=Zo(t,e,n,o);return r.body.pop(),s}function hu({raw:t},e){const{capturingGroups:n,subroutines:i}=e;let r=t.slice(3,-1);const o=/^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(r);if(o){const l=+o.groups.num,a=n.length;if(e.hasNumberedRef=!0,r={"":l,"+":a+l,"-":a+1-l}[o.groups.sign],r<1)throw new Error("Invalid subroutine number")}else r==="0"&&(r=0);const s=es(r);return i.push(s),s}function pu(t,e){return{type:"AbsenceFunction",kind:t,body:wt(e?.body)}}function He(t){return{type:"Alternative",body:ts(t?.body)}}function ii(t,e){const n={type:"Assertion",kind:t};return(t==="word_boundary"||t==="text_segment_boundary")&&(n.negate=!!e?.negate),n}function ri(t,e){const n=!!e?.orphan;return{type:"Backreference",ref:t,...n&&{orphan:n}}}function Yo(t,e){const n={name:void 0,isSubroutined:!1,...e};if(n.name!==void 0&&!ku(n.name))throw new Error(`Group name "${n.name}" invalid in Oniguruma`);return{type:"CapturingGroup",number:t,...n.name&&{name:n.name},...n.isSubroutined&&{isSubroutined:n.isSubroutined},body:wt(e?.body)}}function cn(t,e){const n={useLastValid:!1,...e};if(t>1114111){const i=t.toString(16);if(n.useLastValid)t=1114111;else throw t>1310719?new Error(`Invalid code point out of range "\\x{${i}}"`):new Error(`Invalid code point out of range in JS "\\x{${i}}"`)}return{type:"Character",value:t}}function Gt(t){const e={kind:"union",negate:!1,...t};return{type:"CharacterClass",kind:e.kind,negate:e.negate,body:ts(t?.body)}}function mu(t,e){if(e.value<t.value)throw new Error("Character class range out of order");return{type:"CharacterClassRange",min:t,max:e}}function oi(t,e){const n=!!e?.negate,i={type:"CharacterSet",kind:t};return(t==="digit"||t==="hex"||t==="newline"||t==="space"||t==="word")&&(i.negate=n),(t==="text_segment"||t==="newline"&&!n)&&(i.variableLength=!0),i}function gu(t,e={}){if(t==="keep")return{type:"Directive",kind:t};if(t==="flags")return{type:"Directive",kind:t,flags:rt(e.flags)};throw new Error(`Unexpected directive kind "${t}"`)}function bu(t){return{type:"Flags",...t}}function fe(t){const e=t?.atomic,n=t?.flags;if(e&&n)throw new Error("Atomic group cannot have flags");return{type:"Group",...e&&{atomic:e},...n&&{flags:n},body:wt(t?.body)}}function Ne(t){const e={behind:!1,negate:!1,...t};return{type:"LookaroundAssertion",kind:e.behind?"lookbehind":"lookahead",negate:e.negate,body:wt(t?.body)}}function vu(t,e,n){return{type:"NamedCallout",kind:t,tag:e,arguments:n}}function _u(t,e){const n=!!e?.negate;if(!xi.has(t))throw new Error(`Invalid POSIX class "${t}"`);return{type:"CharacterSet",kind:"posix",value:t,negate:n}}function Zo(t,e,n,i){if(e>n)throw new Error("Invalid reversed quantifier range");return{type:"Quantifier",kind:t,min:e,max:n,body:i}}function yu(t,e){return{type:"Regex",body:wt(e?.body),flags:t}}function es(t){return{type:"Subroutine",ref:t}}function qe(t,e){const n={negate:!1,normalizeUnknownPropertyNames:!1,skipPropertyNameValidation:!1,unicodePropertyMap:null,...e};let i=n.unicodePropertyMap?.get(un(t));if(!i){if(n.normalizeUnknownPropertyNames)i=Cu(t);else if(n.unicodePropertyMap&&!n.skipPropertyNameValidation)throw new Error(K`Invalid Unicode property "\p{${t}}"`)}return{type:"CharacterSet",kind:"property",value:i??t,negate:n.negate}}function wu({flags:t,kind:e,name:n,negate:i,number:r}){switch(e){case"absence_repeater":return pu("repeater");case"atomic":return fe({atomic:!0});case"capturing":return Yo(r,{name:n});case"group":return fe({flags:t});case"lookahead":case"lookbehind":return Ne({behind:e==="lookbehind",negate:i});default:throw new Error(`Unexpected group kind "${e}"`)}}function wt(t){if(t===void 0)t=[He()];else if(!Array.isArray(t)||!t.length||!t.every(e=>e.type==="Alternative"))throw new Error("Invalid body; expected array of one or more Alternative nodes");return t}function ts(t){if(t===void 0)t=[];else if(!Array.isArray(t)||!t.every(e=>!!e.type))throw new Error("Invalid body; expected array of nodes");return t}function gr(t){return t.type==="LookaroundAssertion"&&t.kind==="lookahead"}function br(t){return t.type==="LookaroundAssertion"&&t.kind==="lookbehind"}function ku(t){return/^[\p{Alpha}\p{Pc}][^)]*$/u.test(t)}function Cu(t){return t.trim().replace(/[- _]+/g,"_").replace(/[A-Z][a-z]+(?=[A-Z])/g,"$&_").replace(/[A-Za-z]+/g,e=>e[0].toUpperCase()+e.slice(1).toLowerCase())}function un(t){return t.replace(/[- _]+/g,"").toLowerCase()}function vr(t,e){return rt(t,`${e?.type==="Character"&&e.value===93?"Empty":"Unclosed"} character class`)}function _r(t){return rt(t,"Unclosed group")}function ut(t,e,n=null){function i(o,s){for(let l=0;l<o.length;l++){const a=r(o[l],s,l,o);l=Math.max(-1,l+a)}}function r(o,s=null,l=null,a=null){let d=0,c=!1;const u={node:o,parent:s,key:l,container:a,root:t,remove(){Tt(a).splice(Math.max(0,je(l)+d),1),d--,c=!0},removeAllNextSiblings(){return Tt(a).splice(je(l)+1)},removeAllPrevSiblings(){const _=je(l)+d;return d-=_,Tt(a).splice(0,Math.max(0,_))},replaceWith(_,g={}){const v=!!g.traverse;a?a[Math.max(0,je(l)+d)]=_:rt(s,"Can't replace root node")[l]=_,v&&r(_,s,l,a),c=!0},replaceWithMultiple(_,g={}){const v=!!g.traverse;if(Tt(a).splice(Math.max(0,je(l)+d),1,..._),d+=_.length-1,v){let k=0;for(let C=0;C<_.length;C++)k+=r(_[C],s,je(l)+C+k,a)}c=!0},skip(){c=!0}},{type:f}=o,h=e["*"],p=e[f],b=typeof h=="function"?h:h?.enter,y=typeof p=="function"?p:p?.enter;if(b?.(u,n),y?.(u,n),!c)switch(f){case"AbsenceFunction":case"CapturingGroup":case"Group":i(o.body,o);break;case"Alternative":case"CharacterClass":i(o.body,o);break;case"Assertion":case"Backreference":case"Character":case"CharacterSet":case"Directive":case"Flags":case"NamedCallout":case"Subroutine":break;case"CharacterClassRange":r(o.min,o,"min"),r(o.max,o,"max");break;case"LookaroundAssertion":i(o.body,o);break;case"Quantifier":r(o.body,o,"body");break;case"Regex":i(o.body,o),r(o.flags,o,"flags");break;default:throw new Error(`Unexpected node type "${f}"`)}return p?.exit?.(u,n),h?.exit?.(u,n),d}return r(t),t}function Tt(t){if(!Array.isArray(t))throw new Error("Container expected");return t}function je(t){if(typeof t!="number")throw new Error("Numeric key expected");return t}const Eu=String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;function Su(t,e){for(let n=0;n<t.length;n++)t[n]>=e&&t[n]++}function xu(t,e,n,i){return t.slice(0,e)+i+t.slice(e+n.length)}const de=Object.freeze({DEFAULT:"DEFAULT",CHAR_CLASS:"CHAR_CLASS"});function Ai(t,e,n,i){const r=new RegExp(String.raw`${e}|(?<$skip>\[\^?|\\?.)`,"gsu"),o=[!1];let s=0,l="";for(const a of t.matchAll(r)){const{0:d,groups:{$skip:c}}=a;if(!c&&(!i||i===de.DEFAULT==!s)){n instanceof Function?l+=n(a,{context:s?de.CHAR_CLASS:de.DEFAULT,negated:o[o.length-1]}):l+=n;continue}d[0]==="["?(s++,o.push(d[1]==="^")):d==="]"&&s&&(s--,o.pop()),l+=d}return l}function ns(t,e,n,i){Ai(t,e,n,i)}function Lu(t,e,n=0,i){if(!new RegExp(e,"su").test(t))return null;const r=new RegExp(`${e}|(?<$skip>\\\\?.)`,"gsu");r.lastIndex=n;let o=0,s;for(;s=r.exec(t);){const{0:l,groups:{$skip:a}}=s;if(!a&&(!i||i===de.DEFAULT==!o))return s;l==="["?o++:l==="]"&&o&&o--,r.lastIndex==s.index&&r.lastIndex++}return null}function Rt(t,e,n){return!!Lu(t,e,0,n)}function Au(t,e){const n=/\\?./gsu;n.lastIndex=e;let i=t.length,r=0,o=1,s;for(;s=n.exec(t);){const[l]=s;if(l==="[")r++;else if(r)l==="]"&&r--;else if(l==="(")o++;else if(l===")"&&(o--,!o)){i=s.index;break}}return t.slice(e,i)}const yr=new RegExp(String.raw`(?<noncapturingStart>${Eu})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`,"gsu");function Iu(t,e){const n=e?.hiddenCaptures??[];let i=e?.captureTransfers??new Map;if(!/\(\?>/.test(t))return{pattern:t,captureTransfers:i,hiddenCaptures:n};const r="(?>",o="(?:(?=(",s=[0],l=[];let a=0,d=0,c=NaN,u;do{u=!1;let f=0,h=0,p=!1,b;for(yr.lastIndex=Number.isNaN(c)?0:c+o.length;b=yr.exec(t);){const{0:y,index:_,groups:{capturingStart:g,noncapturingStart:v}}=b;if(y==="[")f++;else if(f)y==="]"&&f--;else if(y===r&&!p)c=_,p=!0;else if(p&&v)h++;else if(g)p?h++:(a++,s.push(a+d));else if(y===")"&&p){if(!h){d++;const k=a+d;if(t=`${t.slice(0,c)}${o}${t.slice(c+r.length,_)}))<$$${k}>)${t.slice(_+1)}`,u=!0,l.push(k),Su(n,k),i.size){const C=new Map;i.forEach((w,E)=>{C.set(E>=k?E+1:E,w.map(L=>L>=k?L+1:L))}),i=C}break}h--}}}while(u);return n.push(...l),t=Ai(t,String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`,({0:f,groups:{backrefNum:h,wrappedBackrefNum:p}})=>{if(h){const b=+h;if(b>s.length-1)throw new Error(`Backref "${f}" greater than number of captures`);return`\\${s[b]}`}return`\\${p}`},de.DEFAULT),{pattern:t,captureTransfers:i,hiddenCaptures:n}}const is=String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`,Sn=new RegExp(String.raw`
|
|
46
|
-
\\(?: \d+
|
|
47
|
-
| c[A-Za-z]
|
|
48
|
-
| [gk]<[^>]+>
|
|
49
|
-
| [pPu]\{[^\}]+\}
|
|
50
|
-
| u[A-Fa-f\d]{4}
|
|
51
|
-
| x[A-Fa-f\d]{2}
|
|
52
|
-
)
|
|
53
|
-
| \((?: \? (?: [:=!>]
|
|
54
|
-
| <(?:[=!]|[^>]+>)
|
|
55
|
-
| [A-Za-z\-]+:
|
|
56
|
-
| \(DEFINE\)
|
|
57
|
-
))?
|
|
58
|
-
| (?<qBase>${is})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
59
|
-
| \\?.
|
|
60
|
-
`.replace(/\s+/g,""),"gsu");function Tu(t){if(!new RegExp(`${is}\\+`).test(t))return{pattern:t};const e=[];let n=null,i=null,r="",o=0,s;for(Sn.lastIndex=0;s=Sn.exec(t);){const{0:l,index:a,groups:{qBase:d,qMod:c,invalidQ:u}}=s;if(l==="[")o||(i=a),o++;else if(l==="]")o?o--:i=null;else if(!o)if(c==="+"&&r&&!r.startsWith("(")){if(u)throw new Error(`Invalid quantifier "${l}"`);let f=-1;if(/^\{\d+\}$/.test(d))t=xu(t,a+d.length,c,"");else{if(r===")"||r==="]"){const h=r===")"?n:i;if(h===null)throw new Error(`Invalid unmatched "${r}"`);t=`${t.slice(0,h)}(?>${t.slice(h,a)}${d})${t.slice(a+l.length)}`}else t=`${t.slice(0,a-r.length)}(?>${r}${d})${t.slice(a+l.length)}`;f+=4}Sn.lastIndex+=f}else l[0]==="("?e.push(a):l===")"&&(n=e.length?e.pop():null);r=l}return{pattern:t}}const le=String.raw,Ru=le`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`,si=le`\(\?R=(?<rDepth>[^\)]+)\)|${Ru}`,fn=le`\(\?<(?![=!])(?<captureName>[^>]+)>`,rs=le`${fn}|(?<unnamed>\()(?!\?)`,Pe=new RegExp(le`${fn}|${si}|\(\?|\\?.`,"gsu"),xn="Cannot use multiple overlapping recursions";function Pu(t,e){const{hiddenCaptures:n,mode:i}={hiddenCaptures:[],mode:"plugin",...e};let r=e?.captureTransfers??new Map;if(!new RegExp(si,"su").test(t))return{pattern:t,captureTransfers:r,hiddenCaptures:n};if(i==="plugin"&&Rt(t,le`\(\?\(DEFINE\)`,de.DEFAULT))throw new Error("DEFINE groups cannot be used with recursion");const o=[],s=Rt(t,le`\\[1-9]`,de.DEFAULT),l=new Map,a=[];let d=!1,c=0,u=0,f;for(Pe.lastIndex=0;f=Pe.exec(t);){const{0:h,groups:{captureName:p,rDepth:b,gRNameOrNum:y,gRDepth:_}}=f;if(h==="[")c++;else if(c)h==="]"&&c--;else if(b){if(wr(b),d)throw new Error(xn);if(s)throw new Error(`${i==="external"?"Backrefs":"Numbered backrefs"} cannot be used with global recursion`);const g=t.slice(0,f.index),v=t.slice(Pe.lastIndex);if(Rt(v,si,de.DEFAULT))throw new Error(xn);const k=+b-1;t=kr(g,v,k,!1,n,o,u),r=Er(r,g,k,o.length,0,u);break}else if(y){wr(_);let g=!1;for(const D of a)if(D.name===y||D.num===+y){if(g=!0,D.hasRecursedWithin)throw new Error(xn);break}if(!g)throw new Error(le`Recursive \g cannot be used outside the referenced group "${i==="external"?y:le`\g<${y}&R=${_}>`}"`);const v=l.get(y),k=Au(t,v);if(s&&Rt(k,le`${fn}|\((?!\?)`,de.DEFAULT))throw new Error(`${i==="external"?"Backrefs":"Numbered backrefs"} cannot be used with recursion of capturing groups`);const C=t.slice(v,f.index),w=k.slice(C.length+h.length),E=o.length,L=+_-1,A=kr(C,w,L,!0,n,o,u);r=Er(r,C,L,o.length-E,E,u);const I=t.slice(0,v),P=t.slice(v+k.length);t=`${I}${A}${P}`,Pe.lastIndex+=A.length-h.length-C.length-w.length,a.forEach(D=>D.hasRecursedWithin=!0),d=!0}else if(p)u++,l.set(String(u),Pe.lastIndex),l.set(p,Pe.lastIndex),a.push({num:u,name:p});else if(h[0]==="("){const g=h==="(";g&&(u++,l.set(String(u),Pe.lastIndex)),a.push(g?{num:u}:{})}else h===")"&&a.pop()}return n.push(...o),{pattern:t,captureTransfers:r,hiddenCaptures:n}}function wr(t){const e=`Max depth must be integer between 2 and 100; used ${t}`;if(!/^[1-9]\d*$/.test(t))throw new Error(e);if(t=+t,t<2||t>100)throw new Error(e)}function kr(t,e,n,i,r,o,s){const l=new Set;i&&ns(t+e,fn,({groups:{captureName:d}})=>{l.add(d)},de.DEFAULT);const a=[n,i?l:null,r,o,s];return`${t}${Cr(`(?:${t}`,"forward",...a)}(?:)${Cr(`${e})`,"backward",...a)}${e}`}function Cr(t,e,n,i,r,o,s){const a=c=>e==="forward"?c+2:n-c+2-1;let d="";for(let c=0;c<n;c++){const u=a(c);d+=Ai(t,le`${rs}|\\k<(?<backref>[^>]+)>`,({0:f,groups:{captureName:h,unnamed:p,backref:b}})=>{if(b&&i&&!i.has(b))return f;const y=`_$${u}`;if(p||h){const _=s+o.length+1;return o.push(_),Du(r,_),p?f:`(?<${h}${y}>`}return le`\k<${b}${y}>`},de.DEFAULT)}return d}function Du(t,e){for(let n=0;n<t.length;n++)t[n]>=e&&t[n]++}function Er(t,e,n,i,r,o){if(t.size&&i){let s=0;ns(e,rs,()=>s++,de.DEFAULT);const l=o-s+r,a=new Map;return t.forEach((d,c)=>{const u=(i-s*n)/n,f=s*n,h=c>l+s?c+i:c,p=[];for(const b of d)if(b<=l)p.push(b);else if(b>l+s+u)p.push(b+i);else if(b<=l+s)for(let y=0;y<=n;y++)p.push(b+s*y);else for(let y=0;y<=n;y++)p.push(b+f+u*y);a.set(h,p)}),a}return t}var W=String.fromCodePoint,T=String.raw,xe={flagGroups:(()=>{try{new RegExp("(?i:)")}catch{return!1}return!0})(),unicodeSets:(()=>{try{new RegExp("[[]]","v")}catch{return!1}return!0})()};xe.bugFlagVLiteralHyphenIsRange=xe.unicodeSets?(()=>{try{new RegExp(T`[\d\-a]`,"v")}catch{return!0}return!1})():!1;xe.bugNestedClassIgnoresNegation=xe.unicodeSets&&new RegExp("[[^a]]","v").test("a");function nn(t,{enable:e,disable:n}){return{dotAll:!n?.dotAll&&!!(e?.dotAll||t.dotAll),ignoreCase:!n?.ignoreCase&&!!(e?.ignoreCase||t.ignoreCase)}}function bt(t,e,n){return t.has(e)||t.set(e,n),t.get(e)}function ai(t,e){return Sr[t]>=Sr[e]}function Nu(t,e){if(t==null)throw new Error(e??"Value expected");return t}var Sr={ES2025:2025,ES2024:2024,ES2018:2018},Ou={auto:"auto",ES2025:"ES2025",ES2024:"ES2024",ES2018:"ES2018"};function os(t={}){if({}.toString.call(t)!=="[object Object]")throw new Error("Unexpected options");if(t.target!==void 0&&!Ou[t.target])throw new Error(`Unexpected target "${t.target}"`);const e={accuracy:"default",avoidSubclass:!1,flags:"",global:!1,hasIndices:!1,lazyCompileLength:1/0,target:"auto",verbose:!1,...t,rules:{allowOrphanBackrefs:!1,asciiWordBoundaries:!1,captureGroup:!1,recursionLimit:20,singleline:!1,...t.rules}};return e.target==="auto"&&(e.target=xe.flagGroups?"ES2025":xe.unicodeSets?"ES2024":"ES2018"),e}var Mu="[ -\r ]",$u=new Set([W(304),W(305)]),Ce=T`[\p{L}\p{M}\p{N}\p{Pc}]`;function ss(t){if($u.has(t))return[t];const e=new Set,n=t.toLowerCase(),i=n.toUpperCase(),r=Uu.get(n),o=Vu.get(n),s=Hu.get(n);return[...i].length===1&&e.add(i),s&&e.add(s),r&&e.add(r),e.add(n),o&&e.add(o),[...e]}var Ii=new Map(`C Other
|
|
61
|
-
Cc Control cntrl
|
|
62
|
-
Cf Format
|
|
63
|
-
Cn Unassigned
|
|
64
|
-
Co Private_Use
|
|
65
|
-
Cs Surrogate
|
|
66
|
-
L Letter
|
|
67
|
-
LC Cased_Letter
|
|
68
|
-
Ll Lowercase_Letter
|
|
69
|
-
Lm Modifier_Letter
|
|
70
|
-
Lo Other_Letter
|
|
71
|
-
Lt Titlecase_Letter
|
|
72
|
-
Lu Uppercase_Letter
|
|
73
|
-
M Mark Combining_Mark
|
|
74
|
-
Mc Spacing_Mark
|
|
75
|
-
Me Enclosing_Mark
|
|
76
|
-
Mn Nonspacing_Mark
|
|
77
|
-
N Number
|
|
78
|
-
Nd Decimal_Number digit
|
|
79
|
-
Nl Letter_Number
|
|
80
|
-
No Other_Number
|
|
81
|
-
P Punctuation punct
|
|
82
|
-
Pc Connector_Punctuation
|
|
83
|
-
Pd Dash_Punctuation
|
|
84
|
-
Pe Close_Punctuation
|
|
85
|
-
Pf Final_Punctuation
|
|
86
|
-
Pi Initial_Punctuation
|
|
87
|
-
Po Other_Punctuation
|
|
88
|
-
Ps Open_Punctuation
|
|
89
|
-
S Symbol
|
|
90
|
-
Sc Currency_Symbol
|
|
91
|
-
Sk Modifier_Symbol
|
|
92
|
-
Sm Math_Symbol
|
|
93
|
-
So Other_Symbol
|
|
94
|
-
Z Separator
|
|
95
|
-
Zl Line_Separator
|
|
96
|
-
Zp Paragraph_Separator
|
|
97
|
-
Zs Space_Separator
|
|
98
|
-
ASCII
|
|
99
|
-
ASCII_Hex_Digit AHex
|
|
100
|
-
Alphabetic Alpha
|
|
101
|
-
Any
|
|
102
|
-
Assigned
|
|
103
|
-
Bidi_Control Bidi_C
|
|
104
|
-
Bidi_Mirrored Bidi_M
|
|
105
|
-
Case_Ignorable CI
|
|
106
|
-
Cased
|
|
107
|
-
Changes_When_Casefolded CWCF
|
|
108
|
-
Changes_When_Casemapped CWCM
|
|
109
|
-
Changes_When_Lowercased CWL
|
|
110
|
-
Changes_When_NFKC_Casefolded CWKCF
|
|
111
|
-
Changes_When_Titlecased CWT
|
|
112
|
-
Changes_When_Uppercased CWU
|
|
113
|
-
Dash
|
|
114
|
-
Default_Ignorable_Code_Point DI
|
|
115
|
-
Deprecated Dep
|
|
116
|
-
Diacritic Dia
|
|
117
|
-
Emoji
|
|
118
|
-
Emoji_Component EComp
|
|
119
|
-
Emoji_Modifier EMod
|
|
120
|
-
Emoji_Modifier_Base EBase
|
|
121
|
-
Emoji_Presentation EPres
|
|
122
|
-
Extended_Pictographic ExtPict
|
|
123
|
-
Extender Ext
|
|
124
|
-
Grapheme_Base Gr_Base
|
|
125
|
-
Grapheme_Extend Gr_Ext
|
|
126
|
-
Hex_Digit Hex
|
|
127
|
-
IDS_Binary_Operator IDSB
|
|
128
|
-
IDS_Trinary_Operator IDST
|
|
129
|
-
ID_Continue IDC
|
|
130
|
-
ID_Start IDS
|
|
131
|
-
Ideographic Ideo
|
|
132
|
-
Join_Control Join_C
|
|
133
|
-
Logical_Order_Exception LOE
|
|
134
|
-
Lowercase Lower
|
|
135
|
-
Math
|
|
136
|
-
Noncharacter_Code_Point NChar
|
|
137
|
-
Pattern_Syntax Pat_Syn
|
|
138
|
-
Pattern_White_Space Pat_WS
|
|
139
|
-
Quotation_Mark QMark
|
|
140
|
-
Radical
|
|
141
|
-
Regional_Indicator RI
|
|
142
|
-
Sentence_Terminal STerm
|
|
143
|
-
Soft_Dotted SD
|
|
144
|
-
Terminal_Punctuation Term
|
|
145
|
-
Unified_Ideograph UIdeo
|
|
146
|
-
Uppercase Upper
|
|
147
|
-
Variation_Selector VS
|
|
148
|
-
White_Space space
|
|
149
|
-
XID_Continue XIDC
|
|
150
|
-
XID_Start XIDS`.split(/\s/).map(t=>[un(t),t])),Vu=new Map([["s",W(383)],[W(383),"s"]]),Hu=new Map([[W(223),W(7838)],[W(107),W(8490)],[W(229),W(8491)],[W(969),W(8486)]]),Uu=new Map([Ae(453),Ae(456),Ae(459),Ae(498),...Ln(8072,8079),...Ln(8088,8095),...Ln(8104,8111),Ae(8124),Ae(8140),Ae(8188)]),Gu=new Map([["alnum",T`[\p{Alpha}\p{Nd}]`],["alpha",T`\p{Alpha}`],["ascii",T`\p{ASCII}`],["blank",T`[\p{Zs}\t]`],["cntrl",T`\p{Cc}`],["digit",T`\p{Nd}`],["graph",T`[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]`],["lower",T`\p{Lower}`],["print",T`[[\P{space}&&\P{Cc}&&\P{Cn}&&\P{Cs}]\p{Zs}]`],["punct",T`[\p{P}\p{S}]`],["space",T`\p{space}`],["upper",T`\p{Upper}`],["word",T`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],["xdigit",T`\p{AHex}`]]);function ju(t,e){const n=[];for(let i=t;i<=e;i++)n.push(i);return n}function Ae(t){const e=W(t);return[e.toLowerCase(),e]}function Ln(t,e){return ju(t,e).map(n=>Ae(n))}var as=new Set(["Lower","Lowercase","Upper","Uppercase","Ll","Lowercase_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter"]);function Fu(t,e){const n={accuracy:"default",asciiWordBoundaries:!1,avoidSubclass:!1,bestEffortTarget:"ES2025",...e};ls(t);const i={accuracy:n.accuracy,asciiWordBoundaries:n.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,flagDirectivesByAlt:new Map,jsGroupNameMap:new Map,minTargetEs2024:ai(n.bestEffortTarget,"ES2024"),passedLookbehind:!1,strategy:null,subroutineRefMap:new Map,supportedGNodes:new Set,digitIsAscii:t.flags.digitIsAscii,spaceIsAscii:t.flags.spaceIsAscii,wordIsAscii:t.flags.wordIsAscii};ut(t,Bu,i);const r={dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},o={currentFlags:r,prevFlags:null,globalFlags:r,groupOriginByCopy:new Map,groupsByName:new Map,multiplexCapturesToLeftByRef:new Map,openRefs:new Map,reffedNodesByReferencer:new Map,subroutineRefMap:i.subroutineRefMap};ut(t,zu,o);const s={groupsByName:o.groupsByName,highestOrphanBackref:0,numCapturesToLeft:0,reffedNodesByReferencer:o.reffedNodesByReferencer};return ut(t,Wu,s),t._originMap=o.groupOriginByCopy,t._strategy=i.strategy,t}var Bu={AbsenceFunction({node:t,parent:e,replaceWith:n}){const{body:i,kind:r}=t;if(r==="repeater"){const o=fe();o.body[0].body.push(Ne({negate:!0,body:i}),qe("Any"));const s=fe();s.body[0].body.push(Zo("greedy",0,1/0,o)),n(U(s,e),{traverse:!0})}else throw new Error('Unsupported absence function "(?~|"')},Alternative:{enter({node:t,parent:e,key:n},{flagDirectivesByAlt:i}){const r=t.body.filter(o=>o.kind==="flags");for(let o=n+1;o<e.body.length;o++){const s=e.body[o];bt(i,s,[]).push(...r)}},exit({node:t},{flagDirectivesByAlt:e}){if(e.get(t)?.length){const n=cs(e.get(t));if(n){const i=fe({flags:n});i.body[0].body=t.body,t.body=[U(i,t)]}}}},Assertion({node:t,parent:e,key:n,container:i,root:r,remove:o,replaceWith:s},l){const{kind:a,negate:d}=t,{asciiWordBoundaries:c,avoidSubclass:u,supportedGNodes:f,wordIsAscii:h}=l;if(a==="text_segment_boundary")throw new Error(`Unsupported text segment boundary "\\${d?"Y":"y"}"`);if(a==="line_end")s(U(Ne({body:[He({body:[ii("string_end")]}),He({body:[cn(10)]})]}),e));else if(a==="line_start")s(U(Ee(T`(?<=\A|\n(?!\z))`,{skipLookbehindValidation:!0}),e));else if(a==="search_start")if(f.has(t))r.flags.sticky=!0,o();else{const p=i[n-1];if(p&&Yu(p))s(U(Ne({negate:!0}),e));else{if(u)throw new Error(T`Uses "\G" in a way that requires a subclass`);s(Ie(ii("string_start"),e)),l.strategy="clip_search"}}else if(!(a==="string_end"||a==="string_start"))if(a==="string_end_newline")s(U(Ee(T`(?=\n?\z)`),e));else if(a==="word_boundary"){if(!h&&!c){const p=`(?:(?<=${Ce})(?!${Ce})|(?<!${Ce})(?=${Ce}))`,b=`(?:(?<=${Ce})(?=${Ce})|(?<!${Ce})(?!${Ce}))`;s(U(Ee(d?b:p),e))}}else throw new Error(`Unexpected assertion kind "${a}"`)},Backreference({node:t},{jsGroupNameMap:e}){let{ref:n}=t;typeof n=="string"&&!In(n)&&(n=An(n,e),t.ref=n)},CapturingGroup({node:t},{jsGroupNameMap:e,subroutineRefMap:n}){let{name:i}=t;i&&!In(i)&&(i=An(i,e),t.name=i),n.set(t.number,t),i&&n.set(i,t)},CharacterClassRange({node:t,parent:e,replaceWith:n}){if(e.kind==="intersection"){const i=Gt({body:[t]});n(U(i,e),{traverse:!0})}},CharacterSet({node:t,parent:e,replaceWith:n},{accuracy:i,minTargetEs2024:r,digitIsAscii:o,spaceIsAscii:s,wordIsAscii:l}){const{kind:a,negate:d,value:c}=t;if(o&&(a==="digit"||c==="digit")){n(Ie(oi("digit",{negate:d}),e));return}if(s&&(a==="space"||c==="space")){n(U(Tn(Ee(Mu),d),e));return}if(l&&(a==="word"||c==="word")){n(Ie(oi("word",{negate:d}),e));return}if(a==="any")n(Ie(qe("Any"),e));else if(a==="digit")n(Ie(qe("Nd",{negate:d}),e));else if(a!=="dot")if(a==="text_segment"){if(i==="strict")throw new Error(T`Use of "\X" requires non-strict accuracy`);const u="\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?",f=T`\p{RI}{2}|${u}(?:\u200D${u})*`;n(U(Ee(T`(?>\r\n|${r?T`\p{RGI_Emoji}`:f}|\P{M}\p{M}*)`,{skipPropertyNameValidation:!0}),e))}else if(a==="hex")n(Ie(qe("AHex",{negate:d}),e));else if(a==="newline")n(U(Ee(d?`[^
|
|
151
|
-
]`:`(?>\r
|
|
152
|
-
?|[
|
|
153
|
-
\v\f
\u2028\u2029])`),e));else if(a==="posix")if(!r&&(c==="graph"||c==="print")){if(i==="strict")throw new Error(`POSIX class "${c}" requires min target ES2024 or non-strict accuracy`);let u={graph:"!-~",print:" -~"}[c];d&&(u=`\0-${W(u.codePointAt(0)-1)}${W(u.codePointAt(2)+1)}-`),n(U(Ee(`[${u}]`),e))}else n(U(Tn(Ee(Gu.get(c)),d),e));else if(a==="property")Ii.has(un(c))||(t.key="sc");else if(a==="space")n(Ie(qe("space",{negate:d}),e));else if(a==="word")n(U(Tn(Ee(Ce),d),e));else throw new Error(`Unexpected character set kind "${a}"`)},Directive({node:t,parent:e,root:n,remove:i,replaceWith:r,removeAllPrevSiblings:o,removeAllNextSiblings:s}){const{kind:l,flags:a}=t;if(l==="flags")if(!a.enable&&!a.disable)i();else{const d=fe({flags:a});d.body[0].body=s(),r(U(d,e),{traverse:!0})}else if(l==="keep"){const d=n.body[0],u=n.body.length===1&&Qo(d,{type:"Group"})&&d.body[0].body.length===1?d.body[0]:n;if(e.parent!==u||u.body.length>1)throw new Error(T`Uses "\K" in a way that's unsupported`);const f=Ne({behind:!0});f.body[0].body=o(),r(U(f,e))}else throw new Error(`Unexpected directive kind "${l}"`)},Flags({node:t,parent:e}){if(t.posixIsAscii)throw new Error('Unsupported flag "P"');if(t.textSegmentMode==="word")throw new Error('Unsupported flag "y{w}"');["digitIsAscii","extended","posixIsAscii","spaceIsAscii","wordIsAscii","textSegmentMode"].forEach(n=>delete t[n]),Object.assign(t,{global:!1,hasIndices:!1,multiline:!1,sticky:t.sticky??!1}),e.options={disable:{x:!0,n:!0},force:{v:!0}}},Group({node:t}){if(!t.flags)return;const{enable:e,disable:n}=t.flags;e?.extended&&delete e.extended,n?.extended&&delete n.extended,e?.dotAll&&n?.dotAll&&delete e.dotAll,e?.ignoreCase&&n?.ignoreCase&&delete e.ignoreCase,e&&!Object.keys(e).length&&delete t.flags.enable,n&&!Object.keys(n).length&&delete t.flags.disable,!t.flags.enable&&!t.flags.disable&&delete t.flags},LookaroundAssertion({node:t},e){const{kind:n}=t;n==="lookbehind"&&(e.passedLookbehind=!0)},NamedCallout({node:t,parent:e,replaceWith:n}){const{kind:i}=t;if(i==="fail")n(U(Ne({negate:!0}),e));else throw new Error(`Unsupported named callout "(*${i.toUpperCase()}"`)},Quantifier({node:t}){if(t.body.type==="Quantifier"){const e=fe();e.body[0].body.push(t.body),t.body=U(e,t)}},Regex:{enter({node:t},{supportedGNodes:e}){const n=[];let i=!1,r=!1;for(const o of t.body)if(o.body.length===1&&o.body[0].kind==="search_start")o.body.pop();else{const s=fs(o.body);s?(i=!0,Array.isArray(s)?n.push(...s):n.push(s)):r=!0}i&&!r&&n.forEach(o=>e.add(o))},exit(t,{accuracy:e,passedLookbehind:n,strategy:i}){if(e==="strict"&&n&&i)throw new Error(T`Uses "\G" in a way that requires non-strict accuracy`)}},Subroutine({node:t},{jsGroupNameMap:e}){let{ref:n}=t;typeof n=="string"&&!In(n)&&(n=An(n,e),t.ref=n)}},zu={Backreference({node:t},{multiplexCapturesToLeftByRef:e,reffedNodesByReferencer:n}){const{orphan:i,ref:r}=t;i||n.set(t,[...e.get(r).map(({node:o})=>o)])},CapturingGroup:{enter({node:t,parent:e,replaceWith:n,skip:i},{groupOriginByCopy:r,groupsByName:o,multiplexCapturesToLeftByRef:s,openRefs:l,reffedNodesByReferencer:a}){const d=r.get(t);if(d&&l.has(t.number)){const u=Ie(xr(t.number),e);a.set(u,l.get(t.number)),n(u);return}l.set(t.number,t),s.set(t.number,[]),t.name&&bt(s,t.name,[]);const c=s.get(t.name??t.number);for(let u=0;u<c.length;u++){const f=c[u];if(d===f.node||d&&d===f.origin||t===f.origin){c.splice(u,1);break}}if(s.get(t.number).push({node:t,origin:d}),t.name&&s.get(t.name).push({node:t,origin:d}),t.name){const u=bt(o,t.name,new Map);let f=!1;if(d)f=!0;else for(const h of u.values())if(!h.hasDuplicateNameToRemove){f=!0;break}o.get(t.name).set(t,{node:t,hasDuplicateNameToRemove:f})}},exit({node:t},{openRefs:e}){e.delete(t.number)}},Group:{enter({node:t},e){e.prevFlags=e.currentFlags,t.flags&&(e.currentFlags=nn(e.currentFlags,t.flags))},exit(t,e){e.currentFlags=e.prevFlags}},Subroutine({node:t,parent:e,replaceWith:n},i){const{isRecursive:r,ref:o}=t;if(r){let c=e;for(;(c=c.parent)&&!(c.type==="CapturingGroup"&&(c.name===o||c.number===o)););i.reffedNodesByReferencer.set(t,c);return}const s=i.subroutineRefMap.get(o),l=o===0,a=l?xr(0):ds(s,i.groupOriginByCopy,null);let d=a;if(!l){const c=cs(Ku(s,f=>f.type==="Group"&&!!f.flags)),u=c?nn(i.globalFlags,c):i.globalFlags;qu(u,i.currentFlags)||(d=fe({flags:Qu(u)}),d.body[0].body.push(a))}n(U(d,e),{traverse:!l})}},Wu={Backreference({node:t,parent:e,replaceWith:n},i){if(t.orphan){i.highestOrphanBackref=Math.max(i.highestOrphanBackref,t.ref);return}const o=i.reffedNodesByReferencer.get(t).filter(s=>Xu(s,t));if(!o.length)n(U(Ne({negate:!0}),e));else if(o.length>1){const s=fe({atomic:!0,body:o.reverse().map(l=>He({body:[ri(l.number)]}))});n(U(s,e))}else t.ref=o[0].number},CapturingGroup({node:t},e){t.number=++e.numCapturesToLeft,t.name&&e.groupsByName.get(t.name).get(t).hasDuplicateNameToRemove&&delete t.name},Regex:{exit({node:t},e){const n=Math.max(e.highestOrphanBackref-e.numCapturesToLeft,0);for(let i=0;i<n;i++){const r=Yo();t.body.at(-1).body.push(r)}}},Subroutine({node:t},e){!t.isRecursive||t.ref===0||(t.ref=e.reffedNodesByReferencer.get(t).number)}};function ls(t){ut(t,{"*"({node:e,parent:n}){e.parent=n}})}function qu(t,e){return t.dotAll===e.dotAll&&t.ignoreCase===e.ignoreCase}function Xu(t,e){let n=e;do{if(n.type==="Regex")return!1;if(n.type==="Alternative")continue;if(n===t)return!1;const i=us(n.parent);for(const r of i){if(r===n)break;if(r===t||hs(r,t))return!0}}while(n=n.parent);throw new Error("Unexpected path")}function ds(t,e,n,i){const r=Array.isArray(t)?[]:{};for(const[o,s]of Object.entries(t))o==="parent"?r.parent=Array.isArray(n)?i:n:s&&typeof s=="object"?r[o]=ds(s,e,r,n):(o==="type"&&s==="CapturingGroup"&&e.set(r,e.get(t)??t),r[o]=s);return r}function xr(t){const e=es(t);return e.isRecursive=!0,e}function Ku(t,e){const n=[];for(;t=t.parent;)(!e||e(t))&&n.push(t);return n}function An(t,e){if(e.has(t))return e.get(t);const n=`$${e.size}_${t.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/ug,"_")}`;return e.set(t,n),n}function cs(t){const e=["dotAll","ignoreCase"],n={enable:{},disable:{}};return t.forEach(({flags:i})=>{e.forEach(r=>{i.enable?.[r]&&(delete n.disable[r],n.enable[r]=!0),i.disable?.[r]&&(n.disable[r]=!0)})}),Object.keys(n.enable).length||delete n.enable,Object.keys(n.disable).length||delete n.disable,n.enable||n.disable?n:null}function Qu({dotAll:t,ignoreCase:e}){const n={};return(t||e)&&(n.enable={},t&&(n.enable.dotAll=!0),e&&(n.enable.ignoreCase=!0)),(!t||!e)&&(n.disable={},!t&&(n.disable.dotAll=!0),!e&&(n.disable.ignoreCase=!0)),n}function us(t){if(!t)throw new Error("Node expected");const{body:e}=t;return Array.isArray(e)?e:e?[e]:null}function fs(t){const e=t.find(n=>n.kind==="search_start"||Zu(n,{negate:!1})||!Ju(n));if(!e)return null;if(e.kind==="search_start")return e;if(e.type==="LookaroundAssertion")return e.body[0].body[0];if(e.type==="CapturingGroup"||e.type==="Group"){const n=[];for(const i of e.body){const r=fs(i.body);if(!r)return null;Array.isArray(r)?n.push(...r):n.push(r)}return n}return null}function hs(t,e){const n=us(t)??[];for(const i of n)if(i===e||hs(i,e))return!0;return!1}function Ju({type:t}){return t==="Assertion"||t==="Directive"||t==="LookaroundAssertion"}function Yu(t){const e=["Character","CharacterClass","CharacterSet"];return e.includes(t.type)||t.type==="Quantifier"&&t.min&&e.includes(t.body.type)}function Zu(t,e){const n={negate:null,...e};return t.type==="LookaroundAssertion"&&(n.negate===null||t.negate===n.negate)&&t.body.length===1&&Qo(t.body[0],{type:"Assertion",kind:"search_start"})}function In(t){return/^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(t)}function Ee(t,e){const i=Jo(t,{...e,unicodePropertyMap:Ii}).body;return i.length>1||i[0].body.length>1?fe({body:i}):i[0].body[0]}function Tn(t,e){return t.negate=e,t}function Ie(t,e){return t.parent=e,t}function U(t,e){return ls(t),t.parent=e,t}function ef(t,e){const n=os(e),i=ai(n.target,"ES2024"),r=ai(n.target,"ES2025"),o=n.rules.recursionLimit;if(!Number.isInteger(o)||o<2||o>20)throw new Error("Invalid recursionLimit; use 2-20");let s=null,l=null;if(!r){const h=[t.flags.ignoreCase];ut(t,tf,{getCurrentModI:()=>h.at(-1),popModI(){h.pop()},pushModI(p){h.push(p)},setHasCasedChar(){h.at(-1)?s=!0:l=!0}})}const a={dotAll:t.flags.dotAll,ignoreCase:!!((t.flags.ignoreCase||s)&&!l)};let d=t;const c={accuracy:n.accuracy,appliedGlobalFlags:a,captureMap:new Map,currentFlags:{dotAll:t.flags.dotAll,ignoreCase:t.flags.ignoreCase},inCharClass:!1,lastNode:d,originMap:t._originMap,recursionLimit:o,useAppliedIgnoreCase:!!(!r&&s&&l),useFlagMods:r,useFlagV:i,verbose:n.verbose};function u(h){return c.lastNode=d,d=h,Nu(nf[h.type],`Unexpected node type "${h.type}"`)(h,c,u)}const f={pattern:t.body.map(u).join("|"),flags:u(t.flags),options:{...t.options}};return i||(delete f.options.force.v,f.options.disable.v=!0,f.options.unicodeSetsPlugin=null),f._captureTransfers=new Map,f._hiddenCaptures=[],c.captureMap.forEach((h,p)=>{h.hidden&&f._hiddenCaptures.push(p),h.transferTo&&bt(f._captureTransfers,h.transferTo,[]).push(p)}),f}var tf={"*":{enter({node:t},e){if(Ar(t)){const n=e.getCurrentModI();e.pushModI(t.flags?nn({ignoreCase:n},t.flags).ignoreCase:n)}},exit({node:t},e){Ar(t)&&e.popModI()}},Backreference(t,e){e.setHasCasedChar()},Character({node:t},e){Ti(W(t.value))&&e.setHasCasedChar()},CharacterClassRange({node:t,skip:e},n){e(),ps(t,{firstOnly:!0}).length&&n.setHasCasedChar()},CharacterSet({node:t},e){t.kind==="property"&&as.has(t.value)&&e.setHasCasedChar()}},nf={Alternative({body:t},e,n){return t.map(n).join("")},Assertion({kind:t,negate:e}){if(t==="string_end")return"$";if(t==="string_start")return"^";if(t==="word_boundary")return e?T`\B`:T`\b`;throw new Error(`Unexpected assertion kind "${t}"`)},Backreference({ref:t},e){if(typeof t!="number")throw new Error("Unexpected named backref in transformed AST");if(!e.useFlagMods&&e.accuracy==="strict"&&e.currentFlags.ignoreCase&&!e.captureMap.get(t).ignoreCase)throw new Error("Use of case-insensitive backref to case-sensitive group requires target ES2025 or non-strict accuracy");return"\\"+t},CapturingGroup(t,e,n){const{body:i,name:r,number:o}=t,s={ignoreCase:e.currentFlags.ignoreCase},l=e.originMap.get(t);return l&&(s.hidden=!0,o>l.number&&(s.transferTo=l.number)),e.captureMap.set(o,s),`(${r?`?<${r}>`:""}${i.map(n).join("|")})`},Character({value:t},e){const n=W(t),i=Fe(t,{escDigit:e.lastNode.type==="Backreference",inCharClass:e.inCharClass,useFlagV:e.useFlagV});if(i!==n)return i;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase&&Ti(n)){const r=ss(n);return e.inCharClass?r.join(""):r.length>1?`[${r.join("")}]`:r[0]}return n},CharacterClass(t,e,n){const{kind:i,negate:r,parent:o}=t;let{body:s}=t;if(i==="intersection"&&!e.useFlagV)throw new Error("Use of character class intersection requires min target ES2024");xe.bugFlagVLiteralHyphenIsRange&&e.useFlagV&&s.some(Ir)&&(s=[cn(45),...s.filter(d=>!Ir(d))]);const l=()=>`[${r?"^":""}${s.map(n).join(i==="intersection"?"&&":"")}]`;if(!e.inCharClass){if((!e.useFlagV||xe.bugNestedClassIgnoresNegation)&&!r){const c=s.filter(u=>u.type==="CharacterClass"&&u.kind==="union"&&u.negate);if(c.length){const u=fe(),f=u.body[0];return u.parent=o,f.parent=u,s=s.filter(h=>!c.includes(h)),t.body=s,s.length?(t.parent=f,f.body.push(t)):u.body.pop(),c.forEach(h=>{const p=He({body:[h]});h.parent=p,p.parent=u,u.body.push(p)}),n(u)}}e.inCharClass=!0;const d=l();return e.inCharClass=!1,d}const a=s[0];if(i==="union"&&!r&&a&&((!e.useFlagV||!e.verbose)&&o.kind==="union"&&!(xe.bugFlagVLiteralHyphenIsRange&&e.useFlagV)||!e.verbose&&o.kind==="intersection"&&s.length===1&&a.type!=="CharacterClassRange"))return s.map(n).join("");if(!e.useFlagV&&o.type==="CharacterClass")throw new Error("Uses nested character class in a way that requires min target ES2024");return l()},CharacterClassRange(t,e){const n=t.min.value,i=t.max.value,r={escDigit:!1,inCharClass:!0,useFlagV:e.useFlagV},o=Fe(n,r),s=Fe(i,r),l=new Set;if(e.useAppliedIgnoreCase&&e.currentFlags.ignoreCase){const a=ps(t);lf(a).forEach(c=>{l.add(Array.isArray(c)?`${Fe(c[0],r)}-${Fe(c[1],r)}`:Fe(c,r))})}return`${o}-${s}${[...l].join("")}`},CharacterSet({kind:t,negate:e,value:n,key:i},r){if(t==="dot")return r.currentFlags.dotAll?r.appliedGlobalFlags.dotAll||r.useFlagMods?".":"[^]":T`[^\n]`;if(t==="digit")return e?T`\D`:T`\d`;if(t==="property"){if(r.useAppliedIgnoreCase&&r.currentFlags.ignoreCase&&as.has(n))throw new Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);return`${e?T`\P`:T`\p`}{${i?`${i}=`:""}${n}}`}if(t==="word")return e?T`\W`:T`\w`;throw new Error(`Unexpected character set kind "${t}"`)},Flags(t,e){return(e.appliedGlobalFlags.ignoreCase?"i":"")+(t.dotAll?"s":"")+(t.sticky?"y":"")},Group({atomic:t,body:e,flags:n,parent:i},r,o){const s=r.currentFlags;n&&(r.currentFlags=nn(s,n));const l=e.map(o).join("|"),a=!r.verbose&&e.length===1&&i.type!=="Quantifier"&&!t&&(!r.useFlagMods||!n)?l:`(?${df(t,n,r.useFlagMods)}${l})`;return r.currentFlags=s,a},LookaroundAssertion({body:t,kind:e,negate:n},i,r){return`(?${`${e==="lookahead"?"":"<"}${n?"!":"="}`}${t.map(r).join("|")})`},Quantifier(t,e,n){return n(t.body)+cf(t)},Subroutine({isRecursive:t,ref:e},n){if(!t)throw new Error("Unexpected non-recursive subroutine in transformed AST");const i=n.recursionLimit;return e===0?`(?R=${i})`:T`\g<${e}&R=${i}>`}},rf=new Set(["$","(",")","*","+",".","?","[","\\","]","^","{","|","}"]),of=new Set(["-","\\","]","^","["]),sf=new Set(["(",")","-","/","[","\\","]","^","{","|","}","!","#","$","%","&","*","+",",",".",":",";","<","=",">","?","@","`","~"]),Lr=new Map([[9,T`\t`],[10,T`\n`],[11,T`\v`],[12,T`\f`],[13,T`\r`],[8232,T`\u2028`],[8233,T`\u2029`],[65279,T`\uFEFF`]]),af=new RegExp("^\\p{Cased}$","u");function Ti(t){return af.test(t)}function ps(t,e){const n=!!e?.firstOnly,i=t.min.value,r=t.max.value,o=[];if(i<65&&(r===65535||r>=131071)||i===65536&&r>=131071)return o;for(let s=i;s<=r;s++){const l=W(s);if(!Ti(l))continue;const a=ss(l).filter(d=>{const c=d.codePointAt(0);return c<i||c>r});if(a.length&&(o.push(...a),n))break}return o}function Fe(t,{escDigit:e,inCharClass:n,useFlagV:i}){if(Lr.has(t))return Lr.get(t);if(t<32||t>126&&t<160||t>262143||e&&uf(t))return t>255?`\\u{${t.toString(16).toUpperCase()}}`:`\\x${t.toString(16).toUpperCase().padStart(2,"0")}`;const r=n?i?sf:of:rf,o=W(t);return(r.has(o)?"\\":"")+o}function lf(t){const e=t.map(r=>r.codePointAt(0)).sort((r,o)=>r-o),n=[];let i=null;for(let r=0;r<e.length;r++)e[r+1]===e[r]+1?i??=e[r]:i===null?n.push(e[r]):(n.push([i,e[r]]),i=null);return n}function df(t,e,n){if(t)return">";let i="";if(e&&n){const{enable:r,disable:o}=e;i=(r?.ignoreCase?"i":"")+(r?.dotAll?"s":"")+(o?"-":"")+(o?.ignoreCase?"i":"")+(o?.dotAll?"s":"")}return`${i}:`}function cf({kind:t,max:e,min:n}){let i;return!n&&e===1?i="?":!n&&e===1/0?i="*":n===1&&e===1/0?i="+":n===e?i=`{${n}}`:i=`{${n},${e===1/0?"":e}}`,i+{greedy:"",lazy:"?",possessive:"+"}[t]}function Ar({type:t}){return t==="CapturingGroup"||t==="Group"||t==="LookaroundAssertion"}function uf(t){return t>47&&t<58}function Ir({type:t,value:e}){return t==="Character"&&e===45}var ff=class li extends RegExp{#t=new Map;#e=null;#i;#n=null;#r=null;rawOptions={};get source(){return this.#i||"(?:)"}constructor(e,n,i){const r=!!i?.lazyCompile;if(e instanceof RegExp){if(i)throw new Error("Cannot provide options when copying a regexp");const o=e;super(o,n),this.#i=o.source,o instanceof li&&(this.#t=o.#t,this.#n=o.#n,this.#r=o.#r,this.rawOptions=o.rawOptions)}else{const o={hiddenCaptures:[],strategy:null,transfers:[],...i};super(r?"":e,n),this.#i=e,this.#t=pf(o.hiddenCaptures,o.transfers),this.#r=o.strategy,this.rawOptions=i??{}}r||(this.#e=this)}exec(e){if(!this.#e){const{lazyCompile:r,...o}=this.rawOptions;this.#e=new li(this.#i,this.flags,o)}const n=this.global||this.sticky,i=this.lastIndex;if(this.#r==="clip_search"&&n&&i){this.lastIndex=0;const r=this.#o(e.slice(i));return r&&(hf(r,i,e,this.hasIndices),this.lastIndex+=i),r}return this.#o(e)}#o(e){this.#e.lastIndex=this.lastIndex;const n=super.exec.call(this.#e,e);if(this.lastIndex=this.#e.lastIndex,!n||!this.#t.size)return n;const i=[...n];n.length=1;let r;this.hasIndices&&(r=[...n.indices],n.indices.length=1);const o=[0];for(let s=1;s<i.length;s++){const{hidden:l,transferTo:a}=this.#t.get(s)??{};if(l?o.push(null):(o.push(n.length),n.push(i[s]),this.hasIndices&&n.indices.push(r[s])),a&&i[s]!==void 0){const d=o[a];if(!d)throw new Error(`Invalid capture transfer to "${d}"`);if(n[d]=i[s],this.hasIndices&&(n.indices[d]=r[s]),n.groups){this.#n||(this.#n=mf(this.source));const c=this.#n.get(a);c&&(n.groups[c]=i[s],this.hasIndices&&(n.indices.groups[c]=r[s]))}}}return n}};function hf(t,e,n,i){if(t.index+=e,t.input=n,i){const r=t.indices;for(let s=0;s<r.length;s++){const l=r[s];l&&(r[s]=[l[0]+e,l[1]+e])}const o=r.groups;o&&Object.keys(o).forEach(s=>{const l=o[s];l&&(o[s]=[l[0]+e,l[1]+e])})}}function pf(t,e){const n=new Map;for(const i of t)n.set(i,{hidden:!0});for(const[i,r]of e)for(const o of r)bt(n,o,{}).transferTo=i;return n}function mf(t){const e=/(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu,n=new Map;let i=0,r=0,o;for(;o=e.exec(t);){const{0:s,groups:{capture:l,name:a}}=o;s==="["?i++:i?s==="]"&&i--:l&&(r++,a&&n.set(r,a))}return n}function gf(t,e){const n=bf(t,e);return n.options?new ff(n.pattern,n.flags,n.options):new RegExp(n.pattern,n.flags)}function bf(t,e){const n=os(e),i=Jo(t,{flags:n.flags,normalizeUnknownPropertyNames:!0,rules:{captureGroup:n.rules.captureGroup,singleline:n.rules.singleline},skipBackrefValidation:n.rules.allowOrphanBackrefs,unicodePropertyMap:Ii}),r=Fu(i,{accuracy:n.accuracy,asciiWordBoundaries:n.rules.asciiWordBoundaries,avoidSubclass:n.avoidSubclass,bestEffortTarget:n.target}),o=ef(r,n),s=Pu(o.pattern,{captureTransfers:o._captureTransfers,hiddenCaptures:o._hiddenCaptures,mode:"external"}),l=Tu(s.pattern),a=Iu(l.pattern,{captureTransfers:s.captureTransfers,hiddenCaptures:s.hiddenCaptures}),d={pattern:a.pattern,flags:`${n.hasIndices?"d":""}${n.global?"g":""}${o.flags}${o.options.disable.v?"u":"v"}`};if(n.avoidSubclass){if(n.lazyCompileLength!==1/0)throw new Error("Lazy compilation requires subclass")}else{const c=a.hiddenCaptures.sort((p,b)=>p-b),u=Array.from(a.captureTransfers),f=r._strategy,h=d.pattern.length>=n.lazyCompileLength;(c.length||u.length||f||h)&&(d.options={...c.length&&{hiddenCaptures:c},...u.length&&{transfers:u},...f&&{strategy:f},...h&&{lazyCompile:h}})}return d}const Tr=4294967295;class vf{constructor(e,n={}){this.patterns=e,this.options=n;const{forgiving:i=!1,cache:r,regexConstructor:o}=n;if(!o)throw new Error("Option `regexConstructor` is not provided");this.regexps=e.map(s=>{if(typeof s!="string")return s;const l=r?.get(s);if(l){if(l instanceof RegExp)return l;if(i)return null;throw l}try{const a=o(s);return r?.set(s,a),a}catch(a){if(r?.set(s,a),i)return null;throw a}})}regexps;findNextMatchSync(e,n,i){const r=typeof e=="string"?e:e.content,o=[];function s(l,a,d=0){return{index:l,captureIndices:a.indices.map(c=>c==null?{start:Tr,end:Tr,length:0}:{start:c[0]+d,end:c[1]+d,length:c[1]-c[0]})}}for(let l=0;l<this.regexps.length;l++){const a=this.regexps[l];if(a)try{a.lastIndex=n;const d=a.exec(r);if(!d)continue;if(d.index===n)return s(l,d,0);o.push([l,d,0])}catch(d){if(this.options.forgiving)continue;throw d}}if(o.length){const l=Math.min(...o.map(a=>a[1].index));for(const[a,d,c]of o)if(d.index===l)return s(a,d,c)}return null}}function _f(t,e){return gf(t,{global:!0,hasIndices:!0,lazyCompileLength:3e3,rules:{allowOrphanBackrefs:!0,asciiWordBoundaries:!0,captureGroup:!0,recursionLimit:5,singleline:!0},...e})}function yf(t={}){const e=Object.assign({target:"auto",cache:new Map},t);return e.regexConstructor||=n=>_f(n,{target:e.target}),{createScanner(n){return new vf(n,e)},createString(n){return{content:n}}}}async function wf(t){if(mo())throw new Error(`resolveLanguage("${t}") cannot be called from a worker context. Languages must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);const e=vn.get(t);if(e!=null)return e;try{let n=Hl.get(t);if(n==null&&Object.prototype.hasOwnProperty.call(ni,t)&&(n=ni[t]),n==null)throw new Error(`resolveLanguage: "${t}" not found in bundled or custom languages`);const i=n().then(({default:r})=>{const o={name:t,data:r};return ft.has(t)||ft.set(t,o),o});return vn.set(t,i),await i}finally{vn.delete(t)}}function kf(t){return ft.get(t)??wf(t)}const $e=new Map,Rn=new Map,di=new Map,ci=new Set;function Rr(t,e){t=Array.isArray(t)?t:[t];for(let n of t){let i;if(typeof n=="string"){if(i=$e.get(n),i==null)throw new Error(`loadResolvedThemes: ${n} is not resolved, you must resolve it before calling loadResolvedThemes`)}else i=n,n=n.name,$e.has(n)||$e.set(n,i);ci.has(n)||(ci.add(n),e.loadThemeSync(i))}}async function Cf(t){if(mo())throw new Error(`resolveTheme("${t}") cannot be called from a worker context. Themes must be pre-resolved on the main thread and passed to the worker via the resolvedLanguages parameter.`);const e=Rn.get(t);if(e!=null)return e;try{const n=di.get(t)??jo[t];if(n==null)throw new Error(`resolveTheme: No valid loader for ${t}`);const i=n().then(o=>Ef(t,"default"in o?o.default:o));Rn.set(t,i);const r=await i;if(r.name!==t)throw new Error(`resolvedTheme: themeName: ${t} does not match theme.name: ${r.name}`);return $e.set(r.name,r),r}finally{Rn.delete(t)}}function Ef(t,e){const n=$e.get(t);return n??(e=an(e),$e.set(t,e),e)}function Sf(t){return $e.get(t)??Cf(t)}function Ri(t,e){if(di.has(t)){console.error("SharedHighlight.registerCustomTheme: theme name already registered",t);return}di.set(t,e)}let be;async function xf({themes:t,langs:e,preferredHighlighter:n="shiki-js"}){be??=Dc({themes:[],langs:["text"],engine:n==="shiki-wasm"?Bo(m(()=>import("./wasm-BcWxOZ3f.js"),[])):yf()});const i=Af(be)?await be:be;be=i;const r=[];for(const s of e){if(s==="text"||s==="ansi")continue;const l=kf(s);"then"in l?r.push(l):Qi(l,i)}const o=[];for(const s of t){const l=Sf(s);"then"in l?o.push(l):Rr(l,be)}return(r.length>0||o.length>0)&&await Promise.all([Promise.all(r).then(s=>{Qi(s,i)}),Promise.all(o).then(s=>{Rr(s,i)})]),i}function Lf(){if(be!=null&&!("then"in be))return be}function Af(t=be){return t!=null&&"then"in t}Ri("pierre-dark",async()=>{const{default:t}=await m(async()=>{const{default:e}=await import("./pierre-dark-BJtsQcLw.js");return{default:e}},[]);return{...t,name:"pierre-dark"}});Ri("pierre-light",async()=>{const{default:t}=await m(async()=>{const{default:e}=await import("./pierre-light-C3DReAeH.js");return{default:e}},[]);return{...t,name:"pierre-light"}});function ms(t=ve){const e=[];return typeof t=="string"?e.push(t):(e.push(t.dark),e.push(t.light)),e}function Pn(t){for(const e of ms(t))if(!ci.has(e))return!1;return!0}function gs(t,e){return t==null||e==null?t===e:t.startingLine===e.startingLine&&t.totalLines===e.totalLines&&t.bufferBefore===e.bufferBefore&&t.bufferAfter===e.bufferAfter}function bs(t,e){return t==null||e==null||typeof t=="string"||typeof e=="string"?t===e:t.dark===e.dark&&t.light===e.light}function If(t){return N({tagName:"div",children:[N({tagName:"div",children:t.annotations?.map(e=>N({tagName:"slot",properties:{name:e}})),properties:{"data-annotation-content":""}})],properties:{"data-line-annotation":`${t.hunkIndex},${t.lineIndex}`}})}function Tf(t){switch(t){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 Rf({fileOrDiff:t,mode:e}){const n="type"in t?t:void 0,i={"data-diffs-header":e,"data-change-type":n?.type};return N({tagName:"div",children:[e==="custom"?N({tagName:"slot",properties:{name:mi}}):Pf({name:t.name,prevName:"prevName"in t?t.prevName:void 0,iconType:n?.type??"file"}),...e==="custom"?[]:[Df(n)]],properties:i})}function Pf({name:t,prevName:e,iconType:n}){const i=[N({tagName:"slot",properties:{name:hi}}),zt({name:Tf(n),properties:{"data-change-icon":n}})];return e!=null&&(i.push(N({tagName:"div",children:[N({tagName:"bdi",children:[_e(e)]})],properties:{"data-prev-name":""}})),i.push(zt({name:"diffs-icon-arrow-right-short",properties:{"data-rename-icon":""}}))),i.push(N({tagName:"div",children:[N({tagName:"bdi",children:[_e(t)]})],properties:{"data-title":""}})),N({tagName:"div",children:i,properties:{"data-header-content":""}})}function Df(t){const e=[];if(t!=null){let n=0,i=0;for(const r of t.hunks)n+=r.additionLines,i+=r.deletionLines;(i>0||n===0)&&e.push(N({tagName:"span",children:[_e(`-${i}`)],properties:{"data-deletions-count":""}})),(n>0||i===0)&&e.push(N({tagName:"span",children:[_e(`+${n}`)],properties:{"data-additions-count":""}}))}return e.push(N({tagName:"slot",properties:{name:pi}})),N({tagName:"div",children:e,properties:{"data-metadata":""}})}function Nf(t){return N({tagName:"pre",properties:Of(t)})}function Of({diffIndicators:t,disableBackground:e,disableLineNumbers:n,overflow:i,split:r,totalLines:o,type:s,customProperties:l}){return{...l,"data-diff":s==="diff"?"":void 0,"data-file":s==="file"?"":void 0,"data-diff-type":s==="diff"?r?"split":"single":void 0,"data-overflow":i,"data-disable-line-numbers":n?"":void 0,"data-background":e?void 0:"","data-indicators":t==="bars"||t==="classic"?t:void 0,tabIndex:0,style:`--diffs-min-number-column-width-default:${`${o}`.length}ch;`}}const Be=new Map,lt={"1c":"1c",abap:"abap",as:"actionscript-3",ada:"ada",adb:"ada",ads:"ada",adoc:"asciidoc",asciidoc:"asciidoc","component.html":"angular-html","component.ts":"angular-ts",conf:"nginx",htaccess:"apache",cls:"tex",trigger:"apex",apl:"apl",applescript:"applescript",scpt:"applescript",ara:"ara",asm:"asm",s:"riscv",astro:"astro",awk:"awk",bal:"ballerina",sh:"zsh",bash:"zsh",bat:"cmd",cmd:"cmd",be:"berry",beancount:"beancount",bib:"bibtex",bicep:"bicep","blade.php":"blade",bsl:"bsl",c:"c",h:"objective-cpp",cs:"csharp",cpp:"cpp",hpp:"cpp",cc:"cpp",cxx:"cpp",hh:"cpp",cdc:"cdc",cairo:"cairo",clar:"clarity",clj:"clojure",cljs:"clojure",cljc:"clojure",soy:"soy",cmake:"cmake","CMakeLists.txt":"cmake",cob:"cobol",cbl:"cobol",cobol:"cobol",CODEOWNERS:"codeowners",ql:"ql",coffee:"coffeescript",lisp:"lisp",cl:"lisp",lsp:"lisp",log:"log",v:"verilog",cql:"cql",cr:"crystal",css:"css",csv:"csv",cue:"cue",cypher:"cypher",cyp:"cypher",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",patch:"diff",Dockerfile:"dockerfile",dockerfile:"dockerfile",env:"dotenv",dm:"dream-maker",edge:"edge",el:"emacs-lisp",ex:"elixir",exs:"elixir",elm:"elm",erb:"erb",erl:"erlang",hrl:"erlang",f:"fortran-fixed-form",for:"fortran-fixed-form",fs:"fsharp",fsi:"fsharp",fsx:"fsharp",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"fortran-free-form",f95:"fortran-free-form",fnl:"fennel",fish:"fish",ftl:"ftl",tres:"gdresource",res:"gdresource",gd:"gdscript",gdshader:"gdshader",gs:"genie",feature:"gherkin",COMMIT_EDITMSG:"git-commit","git-rebase-todo":"git-rebase",gjs:"glimmer-js",gleam:"gleam",gts:"glimmer-ts",glsl:"glsl",vert:"glsl",frag:"glsl",shader:"shaderlab",gp:"gnuplot",plt:"gnuplot",gnuplot:"gnuplot",go:"go",graphql:"graphql",gql:"graphql",groovy:"groovy",gvy:"groovy",hack:"hack",haml:"haml",hbs:"handlebars",handlebars:"handlebars",hs:"haskell",lhs:"haskell",hx:"haxe",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",fx:"hlsl",html:"html",htm:"html",http:"http",rest:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",cfg:"ini",jade:"pug",pug:"pug",java:"java",js:"javascript",mjs:"javascript",cjs:"javascript",jinja:"jinja",jinja2:"jinja",j2:"jinja",jison:"jison",jl:"julia",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",libsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",kt:"kotlin",kts:"kts",kql:"kusto",tex:"tex",ltx:"tex",lean:"lean4",less:"less",liquid:"liquid",lit:"lit",ll:"llvm",logo:"logo",lua:"lua",luau:"luau",Makefile:"makefile",mk:"makefile",makefile:"makefile",md:"markdown",markdown:"markdown",marko:"marko",m:"wolfram",mat:"matlab",mdc:"mdc",mdx:"mdx",wiki:"wikitext",mediawiki:"wikitext",mmd:"mermaid",mermaid:"mermaid",mips:"mipsasm",mojo:"mojo","🔥":"mojo",move:"move",nar:"narrat",nf:"nextflow",nim:"nim",nims:"nim",nimble:"nim",nix:"nix",nu:"nushell",mm:"objective-cpp",ml:"ocaml",mli:"ocaml",mll:"ocaml",mly:"ocaml",pas:"pascal",p:"pascal",pl:"prolog",pm:"perl",t:"perl",raku:"raku",p6:"raku",pl6:"raku",php:"php",phtml:"php",pls:"plsql",sql:"sql",po:"po",polar:"polar",pcss:"postcss",pot:"pot",potx:"potx",pq:"powerquery",pqm:"powerquery",ps1:"powershell",psm1:"powershell",psd1:"powershell",prisma:"prisma",pro:"prolog",P:"prolog",properties:"properties",proto:"protobuf",pp:"puppet",purs:"purescript",py:"python",pyw:"python",pyi:"python",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",R:"r",rkt:"racket",rktl:"racket",razor:"razor",cshtml:"razor",rb:"ruby",rbw:"ruby",reg:"reg",regex:"regexp",rel:"rel",rs:"rust",rst:"rst",rake:"ruby",gemspec:"ruby",sas:"sas",sass:"sass",scala:"scala",sc:"scala",scm:"scheme",ss:"scheme",sld:"scheme",scss:"scss",sdbl:"sdbl",shadergraph:"shader",st:"smalltalk",sol:"solidity",sparql:"sparql",rq:"sparql",spl:"splunk",config:"ssh-config",do:"stata",ado:"stata",dta:"stata",styl:"stylus",stylus:"stylus",svelte:"svelte",swift:"swift",sv:"system-verilog",svh:"system-verilog",service:"systemd",socket:"systemd",device:"systemd",timer:"systemd",talon:"talonscript",tasl:"tasl",tcl:"tcl",templ:"templ",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"typescript",tsp:"typespec",tsv:"tsv",tsx:"tsx",ttl:"turtle",twig:"twig",typ:"typst",vv:"v",vala:"vala",vapi:"vala",vb:"vb",vbs:"vb",bas:"vb",vh:"verilog",vhd:"vhdl",vhdl:"vhdl",vim:"vimscript",vue:"vue","vine.ts":"vue-vine",vy:"vyper",wasm:"wasm",wat:"wasm",wy:"文言",wgsl:"wgsl",wit:"wit",wl:"wolfram",nb:"wolfram",xml:"xml",xsl:"xsl",xslt:"xsl",yaml:"yaml",yml:"yml",zs:"zenscript",zig:"zig",zsh:"zsh",sty:"tex"};function Ve(t){if(Be.has(t))return Be.get(t)??"text";if(lt[t]!=null)return lt[t];const e=t.match(/\.([^/\\]+\.[^/\\]+)$/);if(e!=null){if(Be.has(e[1]))return Be.get(e[1])??"text";if(lt[e[1]]!=null)return lt[e[1]]??"text"}const n=t.match(/\.([^.]+)$/)?.[1]??"";return Be.has(n)?Be.get(n)??"text":lt[n]??"text"}function Mf(t,{theme:e,preferredHighlighter:n="shiki-js"}){return{langs:[t??"text"],themes:ms(e),preferredHighlighter:n}}function vt(t){return`annotation-${"side"in t?`${t.side}-`:""}${t.lineNumber}`}function et(t){return t.replace(/\n$|\r\n$/,"")}function $f(t,e,n){const i=typeof n.lineInfo=="function"?n.lineInfo(e):n.lineInfo[e-1];if(i==null){const r=`processLine: line ${e}, contains no state.lineInfo`;throw console.error(r,{node:t,line:e,state:n}),new Error(r)}return t.tagName="div",t.properties["data-line"]=i.lineNumber,t.properties["data-alt-line"]=i.altLineNumber,t.properties["data-line-type"]=i.type,t.properties["data-line-index"]=i.lineIndex,t.children.length===0&&t.children.push(_e(`
|
|
154
|
-
`)),t}const Pt=Symbol("no-token"),Dn=Symbol("multiple-tokens");function vs(t){const e=Vf(t);if(e!=null)return e;let n=Pt;const i=[];let r=[],o;const s=()=>{if(r.length===0||o==null){r=[],o=void 0;return}if(r.length===1){const a=r[0];if(a?.type==="element"){Hf(a,o);for(const d of a.children)jt(d)}else jt(a);i.push(a),r=[],o=void 0;return}for(const a of r)jt(a);i.push(N({tagName:"span",properties:{"data-char":o},children:r})),r=[],o=void 0},l=a=>{if(a!==Pt){if(a===Dn){n=Dn;return}if(n===Pt){n=a;return}n!==a&&(n=Dn)}};for(const a of t.children){const d=a.type==="element"?vs(a):Pt;if(l(d),typeof d!="number"){s(),i.push(a);continue}o!=null&&o!==d&&s(),o??=d,r.push(a)}return s(),t.children=i,n}function Vf(t){const e=t.properties["data-char"];if(typeof e=="number")return e}function jt(t){if(t.type==="element"){t.properties["data-char"]=void 0;for(const e of t.children)jt(e)}}function Hf(t,e){t.properties["data-char"]=e}function Uf(t={}){const{classPrefix:e="__shiki_",classSuffix:n="",classReplacer:i=l=>l}=t,r=new Map;function o(l){return Object.entries(l).map(([a,d])=>`${a}:${d}`).join(";")}function s(l){const a=typeof l=="string"?l:o(l);let d=e+Gf(a)+n;return d=i(d),r.has(d)||r.set(d,typeof l=="string"?l:{...l}),d}return{name:"@shikijs/transformers:style-to-class",pre(l){if(!l.properties.style)return;const a=s(l.properties.style);delete l.properties.style,this.addClassToHast(l,a)},tokens(l){for(const a of l)for(const d of a){if(!d.htmlStyle)continue;const c=s(d.htmlStyle);d.htmlStyle={},d.htmlAttrs||={},d.htmlAttrs.class?d.htmlAttrs.class+=` ${c}`:d.htmlAttrs.class=c}},getClassRegistry(){return r},getCSS(){let l="";for(const[a,d]of r.entries())l+=`.${a}{${typeof d=="string"?d:o(d)}}`;return l},clearRegistry(){r.clear()}}}function Gf(t,e=0){let n=3735928559^e,i=1103547991^e;for(let r=0,o;r<t.length;r++)o=t.charCodeAt(r),n=Math.imul(n^o,2654435761),i=Math.imul(i^o,1597334677);return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507),i^=Math.imul(n^n>>>13,3266489909),(4294967296*(2097151&i)+(n>>>0)).toString(36).slice(0,6)}function jf(t=!1,e=!1){const n={lineInfo:[]},i=[{line(r){return delete r.properties.class,r},pre(r){const o=pa(r),s=[];if(o!=null){let l=1;for(const a of o.children)a.type==="element"&&(t&&vs(a),s.push($f(a,l,n)),l++);o.children=s}return r},...t?{tokens(r){for(const o of r){let s=0;for(const l of o){const a=l;a.__lineChar??=s,s+=l.content.length}}},preprocess(r,o){o.mergeWhitespaces="never"},span(r,o,s,l,a){if(a?.offset!=null&&a.content!=null){const d=a.__lineChar;return d!=null&&(r.properties["data-char"]=d),r}return r}}:null}];return e&&i.push(Ff,Pr),{state:n,transformers:i,toClass:Pr}}const Pr=Uf({classPrefix:"hl-"}),Ff={name:"token-style-normalizer",tokens(t){for(const e of t)for(const n of e){if(n.htmlStyle!=null)continue;const i={};n.color!=null&&(i.color=n.color),n.bgColor!=null&&(i["background-color"]=n.bgColor),n.fontStyle!=null&&n.fontStyle!==0&&((n.fontStyle&1)!==0&&(i["font-style"]="italic"),(n.fontStyle&2)!==0&&(i["font-weight"]="bold"),(n.fontStyle&4)!==0&&(i["text-decoration"]="underline")),Object.keys(i).length>0&&(n.htmlStyle=i)}}};function ae(t){return`--${t==="token"?"diffs-token":"diffs"}-`}function Bf({theme:t=ve,highlighter:e,prefix:n}){let i="";if(typeof t=="string"){const r=e.getTheme(t);i+=`color:${r.fg};`,i+=`background-color:${r.bg};`,i+=`${ae("global")}fg:${r.fg};`,i+=`${ae("global")}bg:${r.bg};`,i+=Nn(r,n)}else{let r=e.getTheme(t.dark);i+=`${ae("global")}dark:${r.fg};`,i+=`${ae("global")}dark-bg:${r.bg};`,i+=Nn(r,"dark"),r=e.getTheme(t.light),i+=`${ae("global")}light:${r.fg};`,i+=`${ae("global")}light-bg:${r.bg};`,i+=Nn(r,"light")}return i}function Nn(t,e){e=e!=null?`${e}-`:"";let n="";const i=t.colors?.["gitDecoration.addedResourceForeground"]??t.colors?.["terminal.ansiGreen"];i!=null&&(n+=`${ae("global")}${e}addition-color:${i};`);const r=t.colors?.["gitDecoration.deletedResourceForeground"]??t.colors?.["terminal.ansiRed"];r!=null&&(n+=`${ae("global")}${e}deletion-color:${r};`);const o=t.colors?.["gitDecoration.modifiedResourceForeground"]??t.colors?.["terminal.ansiBlue"];return o!=null&&(n+=`${ae("global")}${e}modified-color:${o};`),n}function Dr(t){let e=t.children[0];for(;e!=null;){if(e.type==="element"&&e.tagName==="code")return e.children;"children"in e?e=e.children[0]:e=null}throw console.error(t),new Error("getLineNodes: Unable to find children")}function zf(t,e){return N({tagName:"div",children:t,properties:{"data-content":"",style:`grid-row: span ${e}`}})}function Wf(t){return t.useTokenTransformer===!0||t.onTokenClick!=null||t.onTokenEnter!=null||t.onTokenLeave!=null}const qf=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
|
|
155
|
-
<symbol id="diffs-icon-arrow-right-short" viewBox="0 0 16 16">
|
|
156
|
-
<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"/>
|
|
157
|
-
</symbol>
|
|
158
|
-
<symbol id="diffs-icon-brand-github" viewBox="0 0 16 16">
|
|
159
|
-
<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"/>
|
|
160
|
-
</symbol>
|
|
161
|
-
<symbol id="diffs-icon-chevron" viewBox="0 0 16 16">
|
|
162
|
-
<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"/>
|
|
163
|
-
</symbol>
|
|
164
|
-
<symbol id="diffs-icon-chevrons-narrow" viewBox="0 0 10 16">
|
|
165
|
-
<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"/>
|
|
166
|
-
</symbol>
|
|
167
|
-
<symbol id="diffs-icon-diff-split" viewBox="0 0 16 16">
|
|
168
|
-
<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"/>
|
|
169
|
-
</symbol>
|
|
170
|
-
<symbol id="diffs-icon-diff-unified" viewBox="0 0 16 16">
|
|
171
|
-
<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"/>
|
|
172
|
-
</symbol>
|
|
173
|
-
<symbol id="diffs-icon-expand" viewBox="0 0 16 16">
|
|
174
|
-
<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"/>
|
|
175
|
-
</symbol>
|
|
176
|
-
<symbol id="diffs-icon-expand-all" viewBox="0 0 16 16">
|
|
177
|
-
<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"/>
|
|
178
|
-
</symbol>
|
|
179
|
-
<symbol id="diffs-icon-file-code" viewBox="0 0 16 16">
|
|
180
|
-
<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"/>
|
|
181
|
-
</symbol>
|
|
182
|
-
<symbol id="diffs-icon-plus" viewBox="0 0 16 16">
|
|
183
|
-
<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"/>
|
|
184
|
-
</symbol>
|
|
185
|
-
<symbol id="diffs-icon-symbol-added" viewBox="0 0 16 16">
|
|
186
|
-
<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"/>
|
|
187
|
-
</symbol>
|
|
188
|
-
<symbol id="diffs-icon-symbol-deleted" viewBox="0 0 16 16">
|
|
189
|
-
<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"/>
|
|
190
|
-
</symbol>
|
|
191
|
-
<symbol id="diffs-icon-symbol-diffstat" viewBox="0 0 16 16">
|
|
192
|
-
<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"/>
|
|
193
|
-
</symbol>
|
|
194
|
-
<symbol id="diffs-icon-symbol-ignored" viewBox="0 0 16 16">
|
|
195
|
-
<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"/>
|
|
196
|
-
</symbol>
|
|
197
|
-
<symbol id="diffs-icon-symbol-modified" viewBox="0 0 16 16">
|
|
198
|
-
<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"/>
|
|
199
|
-
</symbol>
|
|
200
|
-
<symbol id="diffs-icon-symbol-moved" viewBox="0 0 16 16">
|
|
201
|
-
<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"/>
|
|
202
|
-
</symbol>
|
|
203
|
-
<symbol id="diffs-icon-symbol-ref" viewBox="0 0 16 16">
|
|
204
|
-
<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"/>
|
|
205
|
-
</symbol>
|
|
206
|
-
</svg>`;function Nr(t,e){return t?.cacheKey===e?.cacheKey&&t?.contents===e?.contents&&t?.name===e?.name&&t?.lang===e?.lang}function Xf(t,e){return t==null||e==null?t===e:Kf(t.customProperties,e.customProperties)&&t.type===e.type&&t.diffIndicators===e.diffIndicators&&t.disableBackground===e.disableBackground&&t.disableLineNumbers===e.disableLineNumbers&&t.overflow===e.overflow&&t.split===e.split&&t.totalLines===e.totalLines}const Or={};function Kf(t=Or,e=Or){if(t===e)return!0;const n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(const r of n)if(t[r]!==e[r])return!1;return!0}function Qf(t){const e=document.createElement("div");return e.dataset.annotationSlot="",e.slot=t,e.style.whiteSpace="normal",e}function Jf(){const t=document.createElement("div");return t.slot="gutter-utility-slot",t.style.position="absolute",t.style.top="0",t.style.bottom="0",t.style.textAlign="center",t.style.whiteSpace="normal",t}function Yf(){const t=document.createElement("style");return t.setAttribute(eo,""),t}var Zf=`@layer base, theme, rendered, unsafe;
|
|
207
|
-
|
|
208
|
-
@layer base {
|
|
209
|
-
:host {
|
|
210
|
-
--diffs-font-fallback:
|
|
211
|
-
'SF Mono', Monaco, Consolas, 'Ubuntu Mono', 'Liberation Mono',
|
|
212
|
-
'Courier New', monospace;
|
|
213
|
-
--diffs-header-font-fallback:
|
|
214
|
-
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
215
|
-
'Noto Sans', 'Liberation Sans', Arial, sans-serif;
|
|
216
|
-
|
|
217
|
-
--diffs-mixer: light-dark(black, white);
|
|
218
|
-
--diffs-gap-fallback: 8px;
|
|
219
|
-
|
|
220
|
-
--diffs-added-light: #0dbe4e;
|
|
221
|
-
--diffs-added-dark: #5ecc71;
|
|
222
|
-
--diffs-modified-light: #009fff;
|
|
223
|
-
--diffs-modified-dark: #69b1ff;
|
|
224
|
-
--diffs-deleted-light: #ff2e3f;
|
|
225
|
-
--diffs-deleted-dark: #ff6762;
|
|
226
|
-
|
|
227
|
-
/*
|
|
228
|
-
// Available CSS Color Overrides
|
|
229
|
-
--diffs-bg-buffer-override
|
|
230
|
-
--diffs-bg-hover-override
|
|
231
|
-
--diffs-bg-context-override
|
|
232
|
-
--diffs-bg-separator-override
|
|
233
|
-
|
|
234
|
-
--diffs-fg-number-override
|
|
235
|
-
--diffs-fg-number-addition-override
|
|
236
|
-
--diffs-fg-number-deletion-override
|
|
237
|
-
--diffs-fg-conflict-marker-override
|
|
238
|
-
|
|
239
|
-
--diffs-deletion-color-override
|
|
240
|
-
--diffs-addition-color-override
|
|
241
|
-
--diffs-modified-color-override
|
|
242
|
-
|
|
243
|
-
--diffs-bg-deletion-override
|
|
244
|
-
--diffs-bg-deletion-number-override
|
|
245
|
-
--diffs-bg-deletion-hover-override
|
|
246
|
-
--diffs-bg-deletion-emphasis-override
|
|
247
|
-
|
|
248
|
-
--diffs-bg-addition-override
|
|
249
|
-
--diffs-bg-addition-number-override
|
|
250
|
-
--diffs-bg-addition-hover-override
|
|
251
|
-
--diffs-bg-addition-emphasis-override
|
|
252
|
-
|
|
253
|
-
// Line Selection Color Overrides (for enableLineSelection)
|
|
254
|
-
--diffs-selection-color-override
|
|
255
|
-
--diffs-bg-selection-override
|
|
256
|
-
--diffs-bg-selection-number-override
|
|
257
|
-
--diffs-bg-selection-background-override
|
|
258
|
-
--diffs-bg-selection-number-background-override
|
|
259
|
-
|
|
260
|
-
// Available CSS Layout Overrides
|
|
261
|
-
--diffs-gap-inline
|
|
262
|
-
--diffs-gap-block
|
|
263
|
-
--diffs-gap-style
|
|
264
|
-
--diffs-tab-size
|
|
265
|
-
*/
|
|
266
|
-
|
|
267
|
-
color-scheme: light dark;
|
|
268
|
-
display: block;
|
|
269
|
-
font-family: var(
|
|
270
|
-
--diffs-header-font-family,
|
|
271
|
-
var(--diffs-header-font-fallback)
|
|
272
|
-
);
|
|
273
|
-
font-size: var(--diffs-font-size, 13px);
|
|
274
|
-
line-height: var(--diffs-line-height, 20px);
|
|
275
|
-
font-feature-settings: var(--diffs-font-features);
|
|
276
|
-
|
|
277
|
-
/* NOTE(amadeus): we cannot use 'in oklch' because current versions of cursor
|
|
278
|
-
* and vscode use an older build of chrome that appears to have a bug with
|
|
279
|
-
* color-mix and 'in oklch', so use 'in lab' instead */
|
|
280
|
-
--diffs-bg: light-dark(
|
|
281
|
-
var(--diffs-light-bg, #fff),
|
|
282
|
-
var(--diffs-dark-bg, #000)
|
|
283
|
-
);
|
|
284
|
-
--diffs-bg-buffer: var(
|
|
285
|
-
--diffs-bg-buffer-override,
|
|
286
|
-
light-dark(
|
|
287
|
-
color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer)),
|
|
288
|
-
color-mix(in lab, var(--diffs-bg) 92%, var(--diffs-mixer))
|
|
289
|
-
)
|
|
290
|
-
);
|
|
291
|
-
--diffs-bg-hover: var(
|
|
292
|
-
--diffs-bg-hover-override,
|
|
293
|
-
light-dark(
|
|
294
|
-
color-mix(in lab, var(--diffs-bg) 97%, var(--diffs-mixer)),
|
|
295
|
-
color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-mixer))
|
|
296
|
-
)
|
|
297
|
-
);
|
|
298
|
-
|
|
299
|
-
--diffs-bg-context: var(
|
|
300
|
-
--diffs-bg-context-override,
|
|
301
|
-
light-dark(
|
|
302
|
-
color-mix(in lab, var(--diffs-bg) 98.5%, var(--diffs-mixer)),
|
|
303
|
-
color-mix(in lab, var(--diffs-bg) 92.5%, var(--diffs-mixer))
|
|
304
|
-
)
|
|
305
|
-
);
|
|
306
|
-
--diffs-bg-context-number: var(
|
|
307
|
-
--diffs-bg-context-number-override,
|
|
308
|
-
light-dark(
|
|
309
|
-
color-mix(in lab, var(--diffs-bg-context) 80%, var(--diffs-bg)),
|
|
310
|
-
color-mix(in lab, var(--diffs-bg-context) 60%, var(--diffs-bg))
|
|
311
|
-
)
|
|
312
|
-
);
|
|
313
|
-
--diffs-bg-conflict-marker: var(
|
|
314
|
-
--diffs-bg-conflict-marker-override,
|
|
315
|
-
light-dark(
|
|
316
|
-
color-mix(
|
|
317
|
-
in lab,
|
|
318
|
-
var(--diffs-bg-context) 88%,
|
|
319
|
-
var(--diffs-modified-base)
|
|
320
|
-
),
|
|
321
|
-
color-mix(
|
|
322
|
-
in lab,
|
|
323
|
-
var(--diffs-bg-context) 80%,
|
|
324
|
-
var(--diffs-modified-base)
|
|
325
|
-
)
|
|
326
|
-
)
|
|
327
|
-
);
|
|
328
|
-
--diffs-bg-conflict-current: var(
|
|
329
|
-
--diffs-bg-conflict-current-override,
|
|
330
|
-
light-dark(#e5f8ea, #274432)
|
|
331
|
-
);
|
|
332
|
-
--diffs-bg-conflict-base: var(
|
|
333
|
-
--diffs-bg-conflict-base-override,
|
|
334
|
-
light-dark(
|
|
335
|
-
color-mix(
|
|
336
|
-
in lab,
|
|
337
|
-
var(--diffs-bg-context) 90%,
|
|
338
|
-
var(--diffs-modified-base)
|
|
339
|
-
),
|
|
340
|
-
color-mix(
|
|
341
|
-
in lab,
|
|
342
|
-
var(--diffs-bg-context) 82%,
|
|
343
|
-
var(--diffs-modified-base)
|
|
344
|
-
)
|
|
345
|
-
)
|
|
346
|
-
);
|
|
347
|
-
--diffs-bg-conflict-incoming: var(
|
|
348
|
-
--diffs-bg-conflict-incoming-override,
|
|
349
|
-
light-dark(#e6f1ff, #253b5a)
|
|
350
|
-
);
|
|
351
|
-
--diffs-bg-conflict-marker-number: var(
|
|
352
|
-
--diffs-bg-conflict-marker-number-override,
|
|
353
|
-
light-dark(
|
|
354
|
-
color-mix(in lab, var(--diffs-bg-conflict-marker) 72%, var(--diffs-bg)),
|
|
355
|
-
color-mix(in lab, var(--diffs-bg-conflict-marker) 54%, var(--diffs-bg))
|
|
356
|
-
)
|
|
357
|
-
);
|
|
358
|
-
--diffs-bg-conflict-current-number: var(
|
|
359
|
-
--diffs-bg-conflict-current-number-override,
|
|
360
|
-
light-dark(#d7f1de, #30533d)
|
|
361
|
-
);
|
|
362
|
-
--diffs-bg-conflict-base-number: var(
|
|
363
|
-
--diffs-bg-conflict-base-number-override,
|
|
364
|
-
light-dark(
|
|
365
|
-
color-mix(in lab, var(--diffs-bg-conflict-base) 72%, var(--diffs-bg)),
|
|
366
|
-
color-mix(in lab, var(--diffs-bg-conflict-base) 54%, var(--diffs-bg))
|
|
367
|
-
)
|
|
368
|
-
);
|
|
369
|
-
--diffs-bg-conflict-incoming-number: var(
|
|
370
|
-
--diffs-bg-conflict-incoming-number-override,
|
|
371
|
-
light-dark(#d8e8ff, #2f4b73)
|
|
372
|
-
);
|
|
373
|
-
--conflict-bg-current: var(
|
|
374
|
-
--conflict-bg-current-override,
|
|
375
|
-
var(--diffs-bg-addition)
|
|
376
|
-
);
|
|
377
|
-
--conflict-bg-incoming: var(
|
|
378
|
-
--conflict-bg-incoming-override,
|
|
379
|
-
light-dark(
|
|
380
|
-
color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-modified-base)),
|
|
381
|
-
color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-modified-base))
|
|
382
|
-
)
|
|
383
|
-
);
|
|
384
|
-
--conflict-bg-current-number: var(
|
|
385
|
-
--conflict-bg-current-number-override,
|
|
386
|
-
var(--diffs-bg-addition-number)
|
|
387
|
-
);
|
|
388
|
-
--conflict-bg-incoming-number: var(
|
|
389
|
-
--conflict-bg-incoming-number-override,
|
|
390
|
-
light-dark(
|
|
391
|
-
color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-modified-base)),
|
|
392
|
-
color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-modified-base))
|
|
393
|
-
)
|
|
394
|
-
);
|
|
395
|
-
--conflict-bg-current-header: var(
|
|
396
|
-
--conflict-bg-current-header-override,
|
|
397
|
-
light-dark(
|
|
398
|
-
color-mix(in lab, var(--diffs-bg) 78%, var(--diffs-addition-base)),
|
|
399
|
-
color-mix(in lab, var(--diffs-bg) 68%, var(--diffs-addition-base))
|
|
400
|
-
)
|
|
401
|
-
);
|
|
402
|
-
--conflict-bg-incoming-header: var(
|
|
403
|
-
--conflict-bg-incoming-header-override,
|
|
404
|
-
light-dark(
|
|
405
|
-
color-mix(in lab, var(--diffs-bg) 78%, var(--diffs-modified-base)),
|
|
406
|
-
color-mix(in lab, var(--diffs-bg) 68%, var(--diffs-modified-base))
|
|
407
|
-
)
|
|
408
|
-
);
|
|
409
|
-
--conflict-bg-current-header-number: var(
|
|
410
|
-
--conflict-bg-current-header-number-override,
|
|
411
|
-
light-dark(
|
|
412
|
-
color-mix(in lab, var(--diffs-bg) 72%, var(--diffs-addition-base)),
|
|
413
|
-
color-mix(in lab, var(--diffs-bg) 62%, var(--diffs-addition-base))
|
|
414
|
-
)
|
|
415
|
-
);
|
|
416
|
-
--conflict-bg-incoming-header-number: var(
|
|
417
|
-
--conflict-bg-incoming-header-number-override,
|
|
418
|
-
light-dark(
|
|
419
|
-
color-mix(in lab, var(--diffs-bg) 72%, var(--diffs-modified-base)),
|
|
420
|
-
color-mix(in lab, var(--diffs-bg) 62%, var(--diffs-modified-base))
|
|
421
|
-
)
|
|
422
|
-
);
|
|
423
|
-
|
|
424
|
-
--diffs-bg-separator: var(
|
|
425
|
-
--diffs-bg-separator-override,
|
|
426
|
-
light-dark(
|
|
427
|
-
color-mix(in lab, var(--diffs-bg) 96%, var(--diffs-mixer)),
|
|
428
|
-
color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-mixer))
|
|
429
|
-
)
|
|
430
|
-
);
|
|
431
|
-
|
|
432
|
-
--diffs-fg: light-dark(var(--diffs-light, #000), var(--diffs-dark, #fff));
|
|
433
|
-
--diffs-fg-number: var(
|
|
434
|
-
--diffs-fg-number-override,
|
|
435
|
-
light-dark(
|
|
436
|
-
color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg)),
|
|
437
|
-
color-mix(in lab, var(--diffs-fg) 65%, var(--diffs-bg))
|
|
438
|
-
)
|
|
439
|
-
);
|
|
440
|
-
--diffs-fg-conflict-marker: var(
|
|
441
|
-
--diffs-fg-conflict-marker-override,
|
|
442
|
-
var(--diffs-fg-number)
|
|
443
|
-
);
|
|
444
|
-
|
|
445
|
-
--diffs-deletion-base: var(
|
|
446
|
-
--diffs-deletion-color-override,
|
|
447
|
-
light-dark(
|
|
448
|
-
var(
|
|
449
|
-
--diffs-light-deletion-color,
|
|
450
|
-
var(--diffs-deletion-color, var(--diffs-deleted-light))
|
|
451
|
-
),
|
|
452
|
-
var(
|
|
453
|
-
--diffs-dark-deletion-color,
|
|
454
|
-
var(--diffs-deletion-color, var(--diffs-deleted-dark))
|
|
455
|
-
)
|
|
456
|
-
)
|
|
457
|
-
);
|
|
458
|
-
--diffs-addition-base: var(
|
|
459
|
-
--diffs-addition-color-override,
|
|
460
|
-
light-dark(
|
|
461
|
-
var(
|
|
462
|
-
--diffs-light-addition-color,
|
|
463
|
-
var(--diffs-addition-color, var(--diffs-added-light))
|
|
464
|
-
),
|
|
465
|
-
var(
|
|
466
|
-
--diffs-dark-addition-color,
|
|
467
|
-
var(--diffs-addition-color, var(--diffs-added-dark))
|
|
468
|
-
)
|
|
469
|
-
)
|
|
470
|
-
);
|
|
471
|
-
--diffs-modified-base: var(
|
|
472
|
-
--diffs-modified-color-override,
|
|
473
|
-
light-dark(
|
|
474
|
-
var(
|
|
475
|
-
--diffs-light-modified-color,
|
|
476
|
-
var(--diffs-modified-color, var(--diffs-modified-light))
|
|
477
|
-
),
|
|
478
|
-
var(
|
|
479
|
-
--diffs-dark-modified-color,
|
|
480
|
-
var(--diffs-modified-color, var(--diffs-modified-dark))
|
|
481
|
-
)
|
|
482
|
-
)
|
|
483
|
-
);
|
|
484
|
-
|
|
485
|
-
/* NOTE(amadeus): we cannot use 'in oklch' because current versions of cursor
|
|
486
|
-
* and vscode use an older build of chrome that appears to have a bug with
|
|
487
|
-
* color-mix and 'in oklch', so use 'in lab' instead */
|
|
488
|
-
--diffs-bg-deletion: var(
|
|
489
|
-
--diffs-bg-deletion-override,
|
|
490
|
-
light-dark(
|
|
491
|
-
color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-deletion-base)),
|
|
492
|
-
color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-deletion-base))
|
|
493
|
-
)
|
|
494
|
-
);
|
|
495
|
-
--diffs-bg-deletion-number: var(
|
|
496
|
-
--diffs-bg-deletion-number-override,
|
|
497
|
-
light-dark(
|
|
498
|
-
color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-deletion-base)),
|
|
499
|
-
color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-deletion-base))
|
|
500
|
-
)
|
|
501
|
-
);
|
|
502
|
-
--diffs-bg-deletion-hover: var(
|
|
503
|
-
--diffs-bg-deletion-hover-override,
|
|
504
|
-
light-dark(
|
|
505
|
-
color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-deletion-base)),
|
|
506
|
-
color-mix(in lab, var(--diffs-bg) 75%, var(--diffs-deletion-base))
|
|
507
|
-
)
|
|
508
|
-
);
|
|
509
|
-
--diffs-bg-deletion-emphasis: var(
|
|
510
|
-
--diffs-bg-deletion-emphasis-override,
|
|
511
|
-
light-dark(
|
|
512
|
-
rgb(from var(--diffs-deletion-base) r g b / 0.15),
|
|
513
|
-
rgb(from var(--diffs-deletion-base) r g b / 0.2)
|
|
514
|
-
)
|
|
515
|
-
);
|
|
516
|
-
|
|
517
|
-
--diffs-bg-addition: var(
|
|
518
|
-
--diffs-bg-addition-override,
|
|
519
|
-
light-dark(
|
|
520
|
-
color-mix(in lab, var(--diffs-bg) 88%, var(--diffs-addition-base)),
|
|
521
|
-
color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-addition-base))
|
|
522
|
-
)
|
|
523
|
-
);
|
|
524
|
-
--diffs-bg-addition-number: var(
|
|
525
|
-
--diffs-bg-addition-number-override,
|
|
526
|
-
light-dark(
|
|
527
|
-
color-mix(in lab, var(--diffs-bg) 91%, var(--diffs-addition-base)),
|
|
528
|
-
color-mix(in lab, var(--diffs-bg) 85%, var(--diffs-addition-base))
|
|
529
|
-
)
|
|
530
|
-
);
|
|
531
|
-
--diffs-bg-addition-hover: var(
|
|
532
|
-
--diffs-bg-addition-hover-override,
|
|
533
|
-
light-dark(
|
|
534
|
-
color-mix(in lab, var(--diffs-bg) 80%, var(--diffs-addition-base)),
|
|
535
|
-
color-mix(in lab, var(--diffs-bg) 70%, var(--diffs-addition-base))
|
|
536
|
-
)
|
|
537
|
-
);
|
|
538
|
-
--diffs-bg-addition-emphasis: var(
|
|
539
|
-
--diffs-bg-addition-emphasis-override,
|
|
540
|
-
light-dark(
|
|
541
|
-
rgb(from var(--diffs-addition-base) r g b / 0.15),
|
|
542
|
-
rgb(from var(--diffs-addition-base) r g b / 0.2)
|
|
543
|
-
)
|
|
544
|
-
);
|
|
545
|
-
|
|
546
|
-
--diffs-selection-base: var(--diffs-modified-base);
|
|
547
|
-
--diffs-selection-number-fg: light-dark(
|
|
548
|
-
color-mix(in lab, var(--diffs-selection-base) 65%, var(--diffs-mixer)),
|
|
549
|
-
color-mix(in lab, var(--diffs-selection-base) 75%, var(--diffs-mixer))
|
|
550
|
-
);
|
|
551
|
-
--diffs-bg-selection: var(
|
|
552
|
-
--diffs-bg-selection-override,
|
|
553
|
-
light-dark(
|
|
554
|
-
color-mix(in lab, var(--diffs-bg) 82%, var(--diffs-selection-base)),
|
|
555
|
-
color-mix(in lab, var(--diffs-bg) 75%, var(--diffs-selection-base))
|
|
556
|
-
)
|
|
557
|
-
);
|
|
558
|
-
--diffs-bg-selection-number: var(
|
|
559
|
-
--diffs-bg-selection-number-override,
|
|
560
|
-
light-dark(
|
|
561
|
-
color-mix(in lab, var(--diffs-bg) 75%, var(--diffs-selection-base)),
|
|
562
|
-
color-mix(in lab, var(--diffs-bg) 60%, var(--diffs-selection-base))
|
|
563
|
-
)
|
|
564
|
-
);
|
|
565
|
-
|
|
566
|
-
background-color: var(--diffs-bg);
|
|
567
|
-
color: var(--diffs-fg);
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
/* NOTE(mdo): Some semantic HTML elements (e.g. \`pre\`, \`code\`) have default
|
|
571
|
-
* user-agent styles. These must be overridden to use our custom styles. */
|
|
572
|
-
pre,
|
|
573
|
-
code,
|
|
574
|
-
[data-error-wrapper] {
|
|
575
|
-
isolation: isolate;
|
|
576
|
-
margin: 0;
|
|
577
|
-
padding: 0;
|
|
578
|
-
display: block;
|
|
579
|
-
outline: none;
|
|
580
|
-
font-family: var(--diffs-font-family, var(--diffs-font-fallback));
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
pre,
|
|
584
|
-
code {
|
|
585
|
-
background-color: var(--diffs-bg);
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
code {
|
|
589
|
-
contain: content;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
*,
|
|
593
|
-
*::before,
|
|
594
|
-
*::after {
|
|
595
|
-
box-sizing: border-box;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
[data-icon-sprite] {
|
|
599
|
-
display: none;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
/* NOTE(mdo): Headers and separators are within pre/code, so we need to reset
|
|
603
|
-
* their font-family explicitly. */
|
|
604
|
-
[data-diffs-header],
|
|
605
|
-
[data-separator] {
|
|
606
|
-
font-family: var(
|
|
607
|
-
--diffs-header-font-family,
|
|
608
|
-
var(--diffs-header-font-fallback)
|
|
609
|
-
);
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
[data-file-info] {
|
|
613
|
-
padding: 10px;
|
|
614
|
-
font-weight: 700;
|
|
615
|
-
color: var(--fg);
|
|
616
|
-
/* NOTE(amadeus): we cannot use 'in oklch' because current versions of cursor
|
|
617
|
-
* and vscode use an older build of chrome that appears to have a bug with
|
|
618
|
-
* color-mix and 'in oklch', so use 'in lab' instead */
|
|
619
|
-
background-color: color-mix(in lab, var(--bg) 98%, var(--fg));
|
|
620
|
-
border-block: 1px solid color-mix(in lab, var(--bg) 95%, var(--fg));
|
|
621
|
-
}
|
|
622
|
-
|
|
623
|
-
[data-diff],
|
|
624
|
-
[data-file] {
|
|
625
|
-
/* This feels a bit crazy to me... so I need to think about it a bit more... */
|
|
626
|
-
--diffs-grid-number-column-width: minmax(min-content, max-content);
|
|
627
|
-
--diffs-code-grid: var(--diffs-grid-number-column-width) 1fr;
|
|
628
|
-
|
|
629
|
-
&[data-dehydrated] {
|
|
630
|
-
--diffs-code-grid: var(--diffs-grid-number-column-width) minmax(0, 1fr);
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
&:hover [data-code]::-webkit-scrollbar-thumb {
|
|
634
|
-
background-color: var(--diffs-bg-context);
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
[data-line] span {
|
|
639
|
-
color: light-dark(
|
|
640
|
-
var(--diffs-token-light, var(--diffs-light)),
|
|
641
|
-
var(--diffs-token-dark, var(--diffs-dark))
|
|
642
|
-
);
|
|
643
|
-
background-color: light-dark(
|
|
644
|
-
var(--diffs-token-light-bg, inherit),
|
|
645
|
-
var(--diffs-token-dark-bg, inherit)
|
|
646
|
-
);
|
|
647
|
-
font-weight: light-dark(
|
|
648
|
-
var(--diffs-token-light-font-weight, inherit),
|
|
649
|
-
var(--diffs-token-dark-font-weight, inherit)
|
|
650
|
-
);
|
|
651
|
-
font-style: light-dark(
|
|
652
|
-
var(--diffs-token-light-font-style, inherit),
|
|
653
|
-
var(--diffs-token-dark-font-style, inherit)
|
|
654
|
-
);
|
|
655
|
-
-webkit-text-decoration: light-dark(
|
|
656
|
-
var(--diffs-token-light-text-decoration, inherit),
|
|
657
|
-
var(--diffs-token-dark-text-decoration, inherit)
|
|
658
|
-
);
|
|
659
|
-
text-decoration: light-dark(
|
|
660
|
-
var(--diffs-token-light-text-decoration, inherit),
|
|
661
|
-
var(--diffs-token-dark-text-decoration, inherit)
|
|
662
|
-
);
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
[data-line],
|
|
666
|
-
[data-gutter-buffer],
|
|
667
|
-
[data-line-annotation],
|
|
668
|
-
[data-no-newline] {
|
|
669
|
-
color: var(--diffs-fg);
|
|
670
|
-
background-color: var(--diffs-line-bg, var(--diffs-bg));
|
|
671
|
-
}
|
|
672
|
-
|
|
673
|
-
[data-no-newline] {
|
|
674
|
-
-webkit-user-select: none;
|
|
675
|
-
user-select: none;
|
|
676
|
-
|
|
677
|
-
span {
|
|
678
|
-
opacity: 0.6;
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
[data-diff-type='split'][data-overflow='scroll'] {
|
|
683
|
-
display: grid;
|
|
684
|
-
grid-template-columns: 1fr 1fr;
|
|
685
|
-
|
|
686
|
-
[data-additions] {
|
|
687
|
-
border-left: 1px solid var(--diffs-bg);
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
[data-deletions] {
|
|
691
|
-
border-right: 1px solid var(--diffs-bg);
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
[data-code] {
|
|
696
|
-
display: grid;
|
|
697
|
-
grid-auto-flow: dense;
|
|
698
|
-
grid-template-columns: var(--diffs-code-grid);
|
|
699
|
-
overflow: scroll clip;
|
|
700
|
-
overscroll-behavior-x: none;
|
|
701
|
-
tab-size: var(--diffs-tab-size, 2);
|
|
702
|
-
align-self: flex-start;
|
|
703
|
-
padding-top: var(--diffs-gap-block, var(--diffs-gap-fallback));
|
|
704
|
-
padding-bottom: max(
|
|
705
|
-
0px,
|
|
706
|
-
calc(var(--diffs-gap-block, var(--diffs-gap-fallback)) - 6px)
|
|
707
|
-
);
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
[data-container-size] {
|
|
711
|
-
container-type: inline-size;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
[data-code]::-webkit-scrollbar {
|
|
715
|
-
width: 0;
|
|
716
|
-
height: 6px;
|
|
717
|
-
}
|
|
718
|
-
|
|
719
|
-
[data-code]::-webkit-scrollbar-track {
|
|
720
|
-
background: transparent;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
[data-code]::-webkit-scrollbar-thumb {
|
|
724
|
-
background-color: transparent;
|
|
725
|
-
border: 1px solid transparent;
|
|
726
|
-
background-clip: content-box;
|
|
727
|
-
border-radius: 3px;
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
[data-code]::-webkit-scrollbar-corner {
|
|
731
|
-
background-color: transparent;
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
/*
|
|
735
|
-
* If we apply these rules globally it will mean that webkit will opt into the
|
|
736
|
-
* standards compliant version of custom css scrollbars, which we do not want
|
|
737
|
-
* because the custom stuff will look better
|
|
738
|
-
*/
|
|
739
|
-
@supports (-moz-appearance: none) {
|
|
740
|
-
[data-code] {
|
|
741
|
-
scrollbar-width: thin;
|
|
742
|
-
scrollbar-color: var(--diffs-bg-context) transparent;
|
|
743
|
-
padding-bottom: var(--diffs-gap-block, var(--diffs-gap-fallback));
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
|
|
747
|
-
[data-diffs-header] ~ [data-diff],
|
|
748
|
-
[data-diffs-header] ~ [data-file] {
|
|
749
|
-
[data-code],
|
|
750
|
-
&[data-overflow='wrap'] {
|
|
751
|
-
padding-top: 0;
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
[data-gutter] {
|
|
756
|
-
display: grid;
|
|
757
|
-
grid-template-rows: subgrid;
|
|
758
|
-
grid-template-columns: subgrid;
|
|
759
|
-
grid-column: 1;
|
|
760
|
-
z-index: 3;
|
|
761
|
-
position: relative;
|
|
762
|
-
background-color: var(--diffs-bg);
|
|
763
|
-
|
|
764
|
-
[data-gutter-buffer],
|
|
765
|
-
[data-column-number] {
|
|
766
|
-
border-right: var(--diffs-gap-style, 2px solid var(--diffs-bg));
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
[data-content] {
|
|
771
|
-
display: grid;
|
|
772
|
-
grid-template-rows: subgrid;
|
|
773
|
-
grid-template-columns: subgrid;
|
|
774
|
-
grid-column: 2;
|
|
775
|
-
min-width: 0;
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
[data-diff-type='split'][data-overflow='wrap'] {
|
|
779
|
-
display: grid;
|
|
780
|
-
grid-auto-flow: dense;
|
|
781
|
-
grid-template-columns: repeat(2, var(--diffs-code-grid));
|
|
782
|
-
padding-block: var(--diffs-gap-block, var(--diffs-gap-fallback));
|
|
783
|
-
|
|
784
|
-
[data-deletions] {
|
|
785
|
-
display: contents;
|
|
786
|
-
|
|
787
|
-
[data-gutter] {
|
|
788
|
-
grid-column: 1;
|
|
789
|
-
}
|
|
790
|
-
|
|
791
|
-
[data-content] {
|
|
792
|
-
grid-column: 2;
|
|
793
|
-
border-right: 1px solid var(--diffs-bg);
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
[data-additions] {
|
|
798
|
-
display: contents;
|
|
799
|
-
|
|
800
|
-
[data-gutter] {
|
|
801
|
-
grid-column: 3;
|
|
802
|
-
border-left: 1px solid var(--diffs-bg);
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
[data-content] {
|
|
806
|
-
grid-column: 4;
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
[data-overflow='scroll'] [data-gutter] {
|
|
812
|
-
position: sticky;
|
|
813
|
-
left: 0;
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
[data-line-annotation][data-selected-line] {
|
|
817
|
-
background-color: unset;
|
|
818
|
-
|
|
819
|
-
&::before {
|
|
820
|
-
content: '';
|
|
821
|
-
/* FIXME(amadeus): This needs to be audited ... */
|
|
822
|
-
position: sticky;
|
|
823
|
-
top: 0;
|
|
824
|
-
left: 0;
|
|
825
|
-
display: block;
|
|
826
|
-
border-right: var(--diffs-gap-style, 1px solid var(--diffs-bg));
|
|
827
|
-
background-color: var(--diffs-bg-selection-number);
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
[data-annotation-content] {
|
|
831
|
-
background-color: var(--diffs-bg-selection);
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
[data-interactive-lines] [data-line] {
|
|
836
|
-
cursor: pointer;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
[data-content-buffer],
|
|
840
|
-
[data-gutter-buffer] {
|
|
841
|
-
position: relative;
|
|
842
|
-
-webkit-user-select: none;
|
|
843
|
-
user-select: none;
|
|
844
|
-
min-height: 1lh;
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
[data-gutter-buffer='annotation'] {
|
|
848
|
-
min-height: 0;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
[data-gutter-buffer='buffer'] {
|
|
852
|
-
background-size: 8px 8px;
|
|
853
|
-
background-position: 0 0;
|
|
854
|
-
background-origin: border-box;
|
|
855
|
-
background-color: var(--diffs-bg);
|
|
856
|
-
/* This is incredibley expensive... */
|
|
857
|
-
background-image: repeating-linear-gradient(
|
|
858
|
-
-45deg,
|
|
859
|
-
transparent,
|
|
860
|
-
transparent calc(3px * 1.414),
|
|
861
|
-
rgb(from var(--diffs-bg-buffer) r g b / 0.8) calc(3px * 1.414),
|
|
862
|
-
rgb(from var(--diffs-bg-buffer) r g b / 0.8) calc(4px * 1.414)
|
|
863
|
-
);
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
[data-content-buffer] {
|
|
867
|
-
grid-column: 1;
|
|
868
|
-
/* We multiply by 1.414 (√2) to better approximate the diagonal repeat distance */
|
|
869
|
-
background-size: 8px 8px;
|
|
870
|
-
background-position: 5px 0;
|
|
871
|
-
background-origin: border-box;
|
|
872
|
-
background-color: var(--diffs-bg);
|
|
873
|
-
/* This is incredibley expensive... */
|
|
874
|
-
background-image: repeating-linear-gradient(
|
|
875
|
-
-45deg,
|
|
876
|
-
transparent,
|
|
877
|
-
transparent calc(3px * 1.414),
|
|
878
|
-
var(--diffs-bg-buffer) calc(3px * 1.414),
|
|
879
|
-
var(--diffs-bg-buffer) calc(4px * 1.414)
|
|
880
|
-
);
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
[data-separator] {
|
|
884
|
-
box-sizing: content-box;
|
|
885
|
-
background-color: var(--diffs-bg);
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
[data-separator='simple'] {
|
|
889
|
-
min-height: 4px;
|
|
890
|
-
}
|
|
891
|
-
|
|
892
|
-
[data-separator='line-info'],
|
|
893
|
-
[data-separator='line-info-basic'],
|
|
894
|
-
[data-separator='metadata'],
|
|
895
|
-
[data-separator='simple'] {
|
|
896
|
-
background-color: var(--diffs-bg-separator);
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
[data-separator='line-info'],
|
|
900
|
-
[data-separator='line-info-basic'],
|
|
901
|
-
[data-separator='metadata'] {
|
|
902
|
-
height: 32px;
|
|
903
|
-
position: relative;
|
|
904
|
-
}
|
|
905
|
-
|
|
906
|
-
[data-separator-wrapper] {
|
|
907
|
-
-webkit-user-select: none;
|
|
908
|
-
user-select: none;
|
|
909
|
-
fill: currentColor;
|
|
910
|
-
position: absolute;
|
|
911
|
-
inset-inline: 0;
|
|
912
|
-
display: flex;
|
|
913
|
-
align-items: center;
|
|
914
|
-
background-color: var(--diffs-bg);
|
|
915
|
-
height: 100%;
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
[data-content] [data-separator-wrapper] {
|
|
919
|
-
display: none;
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
[data-separator='metadata'] [data-separator-wrapper] {
|
|
923
|
-
inset-inline: 100% auto;
|
|
924
|
-
padding-inline: 1ch;
|
|
925
|
-
height: 100%;
|
|
926
|
-
background-color: var(--diffs-bg-separator);
|
|
927
|
-
color: var(--diffs-fg-number);
|
|
928
|
-
white-space: nowrap;
|
|
929
|
-
overflow: hidden;
|
|
930
|
-
text-overflow: ellipsis;
|
|
931
|
-
min-width: min-content;
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
[data-separator='line-info'] {
|
|
935
|
-
margin-block: var(--diffs-gap-block, var(--diffs-gap-fallback));
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
[data-separator='line-info-basic'],
|
|
939
|
-
[data-separator='metadata'] {
|
|
940
|
-
margin-block: 0;
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
[data-separator='line-info'][data-separator-first] {
|
|
944
|
-
margin-top: 0;
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
[data-separator='line-info'][data-separator-last] {
|
|
948
|
-
margin-bottom: 0;
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
[data-expand-index] [data-separator-wrapper] {
|
|
952
|
-
display: grid;
|
|
953
|
-
grid-template-columns: 32px auto;
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
[data-expand-index] [data-separator-wrapper][data-separator-multi-button] {
|
|
957
|
-
grid-template-columns: 32px 32px auto;
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
[data-expand-button],
|
|
961
|
-
[data-separator-content] {
|
|
962
|
-
display: flex;
|
|
963
|
-
flex: 0 0 auto;
|
|
964
|
-
align-items: center;
|
|
965
|
-
background-color: var(--diffs-bg-separator);
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
[data-expand-index] [data-separator-content]:hover {
|
|
969
|
-
text-decoration: underline;
|
|
970
|
-
cursor: pointer;
|
|
971
|
-
}
|
|
972
|
-
|
|
973
|
-
[data-expand-button] {
|
|
974
|
-
justify-content: center;
|
|
975
|
-
flex-shrink: 0;
|
|
976
|
-
cursor: pointer;
|
|
977
|
-
min-width: 32px;
|
|
978
|
-
align-self: stretch;
|
|
979
|
-
color: var(--diffs-fg-number);
|
|
980
|
-
border-right: 2px solid var(--diffs-bg);
|
|
981
|
-
|
|
982
|
-
&:hover {
|
|
983
|
-
color: var(--diffs-fg);
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
&[data-expand-all-button] {
|
|
987
|
-
display: none;
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
|
|
991
|
-
[data-expand-down] [data-icon] {
|
|
992
|
-
transform: scaleY(-1);
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
[data-separator-content] {
|
|
996
|
-
flex: 1 1 auto;
|
|
997
|
-
padding: 0 1ch;
|
|
998
|
-
height: 100%;
|
|
999
|
-
color: var(--diffs-fg-number);
|
|
1000
|
-
|
|
1001
|
-
overflow: hidden;
|
|
1002
|
-
justify-content: flex-start;
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
[data-separator='line-info'],
|
|
1006
|
-
[data-separator='line-info-basic'] {
|
|
1007
|
-
[data-separator-content] {
|
|
1008
|
-
height: 100%;
|
|
1009
|
-
-webkit-user-select: none;
|
|
1010
|
-
user-select: none;
|
|
1011
|
-
overflow: clip;
|
|
1012
|
-
}
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
@supports (width: 1cqi) {
|
|
1016
|
-
[data-unified] {
|
|
1017
|
-
[data-separator='line-info'] [data-separator-wrapper] {
|
|
1018
|
-
padding-inline: var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
1019
|
-
width: 100cqi;
|
|
1020
|
-
|
|
1021
|
-
[data-separator-content] {
|
|
1022
|
-
border-radius: 6px;
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
[data-separator='line-info'][data-expand-index]
|
|
1027
|
-
[data-separator-wrapper]
|
|
1028
|
-
[data-separator-content] {
|
|
1029
|
-
border-top-left-radius: unset;
|
|
1030
|
-
border-bottom-left-radius: unset;
|
|
1031
|
-
}
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
[data-gutter] {
|
|
1035
|
-
[data-separator='line-info'] [data-separator-wrapper] {
|
|
1036
|
-
padding-left: var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
1037
|
-
}
|
|
1038
|
-
|
|
1039
|
-
[data-separator='line-info'] [data-separator-content] {
|
|
1040
|
-
border-top-left-radius: 6px;
|
|
1041
|
-
border-bottom-left-radius: 6px;
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
[data-separator='line-info'][data-expand-index] [data-separator-content] {
|
|
1045
|
-
border-top-left-radius: unset;
|
|
1046
|
-
border-bottom-left-radius: unset;
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
[data-additions] {
|
|
1051
|
-
[data-content] [data-separator='line-info'] {
|
|
1052
|
-
background-color: var(--diffs-bg);
|
|
1053
|
-
|
|
1054
|
-
[data-separator-wrapper] {
|
|
1055
|
-
display: none;
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
[data-gutter] [data-separator='line-info'] [data-separator-wrapper] {
|
|
1060
|
-
display: block;
|
|
1061
|
-
height: 100%;
|
|
1062
|
-
background-color: var(--diffs-bg-separator);
|
|
1063
|
-
border-top-right-radius: 6px;
|
|
1064
|
-
border-bottom-right-radius: 6px;
|
|
1065
|
-
|
|
1066
|
-
[data-separator-content],
|
|
1067
|
-
[data-expand-button] {
|
|
1068
|
-
display: none;
|
|
1069
|
-
}
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
[data-overflow='scroll']
|
|
1074
|
-
[data-additions]
|
|
1075
|
-
[data-gutter]
|
|
1076
|
-
[data-separator='line-info']
|
|
1077
|
-
[data-separator-wrapper] {
|
|
1078
|
-
width: calc(100cqi - var(--diffs-gap-inline, var(--diffs-gap-fallback)));
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
[data-overflow='wrap']
|
|
1082
|
-
[data-additions]
|
|
1083
|
-
[data-content]
|
|
1084
|
-
[data-separator='line-info']
|
|
1085
|
-
[data-separator-wrapper] {
|
|
1086
|
-
background-color: var(--diffs-bg-separator);
|
|
1087
|
-
display: block;
|
|
1088
|
-
height: 100%;
|
|
1089
|
-
margin-right: var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
1090
|
-
border-top-right-radius: 6px;
|
|
1091
|
-
border-bottom-right-radius: 6px;
|
|
1092
|
-
|
|
1093
|
-
[data-separator-content],
|
|
1094
|
-
[data-expand-button] {
|
|
1095
|
-
display: none;
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
|
-
[data-separator='line-info'] [data-separator-wrapper] {
|
|
1100
|
-
[data-expand-both],
|
|
1101
|
-
[data-expand-down],
|
|
1102
|
-
[data-expand-up] {
|
|
1103
|
-
border-top-left-radius: 6px;
|
|
1104
|
-
border-bottom-left-radius: 6px;
|
|
1105
|
-
}
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
@media (pointer: fine) {
|
|
1109
|
-
[data-separator='line-info'] [data-separator-wrapper] {
|
|
1110
|
-
&[data-separator-multi-button] {
|
|
1111
|
-
[data-expand-up] {
|
|
1112
|
-
border-top-left-radius: 6px;
|
|
1113
|
-
border-bottom-left-radius: unset;
|
|
1114
|
-
}
|
|
1115
|
-
|
|
1116
|
-
[data-expand-down] {
|
|
1117
|
-
border-bottom-left-radius: 6px;
|
|
1118
|
-
border-top-left-radius: unset;
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
}
|
|
1124
|
-
|
|
1125
|
-
@media (pointer: coarse) {
|
|
1126
|
-
[data-separator='line-info-basic']
|
|
1127
|
-
[data-separator-wrapper][data-separator-multi-button] {
|
|
1128
|
-
grid-template-columns: 34px 34px auto;
|
|
1129
|
-
|
|
1130
|
-
[data-separator-content] {
|
|
1131
|
-
grid-column: unset;
|
|
1132
|
-
grid-row: unset;
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
|
|
1136
|
-
@supports (width: 1cqi) {
|
|
1137
|
-
[data-separator='line-info'] [data-separator-wrapper] {
|
|
1138
|
-
[data-expand-both],
|
|
1139
|
-
[data-expand-down],
|
|
1140
|
-
[data-expand-up] {
|
|
1141
|
-
border-top-left-radius: 6px;
|
|
1142
|
-
border-bottom-left-radius: 6px;
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
&[data-separator-multi-button] {
|
|
1146
|
-
[data-expand-up] {
|
|
1147
|
-
border-top-left-radius: 6px;
|
|
1148
|
-
border-bottom-left-radius: 6px;
|
|
1149
|
-
}
|
|
1150
|
-
|
|
1151
|
-
[data-expand-down] {
|
|
1152
|
-
border-bottom-left-radius: unset;
|
|
1153
|
-
border-top-left-radius: unset;
|
|
1154
|
-
}
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
}
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
@media (pointer: fine) {
|
|
1161
|
-
[data-separator-wrapper][data-separator-multi-button] {
|
|
1162
|
-
display: grid;
|
|
1163
|
-
grid-template-rows: 50% 50%;
|
|
1164
|
-
|
|
1165
|
-
[data-separator-content] {
|
|
1166
|
-
grid-column: 2;
|
|
1167
|
-
grid-row: 1 / -1;
|
|
1168
|
-
min-width: min-content;
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
[data-expand-button] {
|
|
1172
|
-
grid-column: 1;
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
[data-separator='line-info'] [data-separator-wrapper],
|
|
1177
|
-
[data-separator='line-info']
|
|
1178
|
-
[data-separator-wrapper][data-separator-multi-button] {
|
|
1179
|
-
grid-template-columns: 34px auto;
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
[data-separator='line-info-basic'][data-expand-index]
|
|
1183
|
-
[data-separator-wrapper] {
|
|
1184
|
-
grid-template-columns: 100% auto;
|
|
1185
|
-
}
|
|
1186
|
-
|
|
1187
|
-
[data-separator='line-info'],
|
|
1188
|
-
[data-separator='line-info-basic'] {
|
|
1189
|
-
[data-separator-multi-button] {
|
|
1190
|
-
[data-expand-up] {
|
|
1191
|
-
border-bottom: 1px solid var(--diffs-bg);
|
|
1192
|
-
border-right: 2px solid var(--diffs-bg);
|
|
1193
|
-
}
|
|
1194
|
-
[data-expand-down] {
|
|
1195
|
-
border-top: 1px solid var(--diffs-bg);
|
|
1196
|
-
border-right: 2px solid var(--diffs-bg);
|
|
1197
|
-
}
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
[data-additions] [data-gutter] [data-separator-wrapper],
|
|
1203
|
-
[data-additions] [data-separator='line-info-basic'] [data-separator-wrapper],
|
|
1204
|
-
[data-content] [data-separator-wrapper] {
|
|
1205
|
-
display: none;
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
[data-line-annotation],
|
|
1209
|
-
[data-gutter-buffer='annotation'] {
|
|
1210
|
-
--diffs-line-bg: var(--diffs-bg-context);
|
|
1211
|
-
}
|
|
1212
|
-
|
|
1213
|
-
[data-merge-conflict-actions],
|
|
1214
|
-
[data-gutter-buffer='merge-conflict-action'] {
|
|
1215
|
-
--diffs-line-bg: var(--diffs-bg-context);
|
|
1216
|
-
}
|
|
1217
|
-
|
|
1218
|
-
[data-has-merge-conflict] [data-line-annotation],
|
|
1219
|
-
[data-has-merge-conflict] [data-gutter-buffer='annotation'] {
|
|
1220
|
-
--diffs-line-bg: var(--diffs-bg);
|
|
1221
|
-
}
|
|
1222
|
-
|
|
1223
|
-
[data-has-merge-conflict] [data-gutter-buffer='merge-conflict-action'] {
|
|
1224
|
-
--diffs-line-bg: var(--diffs-bg);
|
|
1225
|
-
}
|
|
1226
|
-
|
|
1227
|
-
[data-line-annotation] {
|
|
1228
|
-
min-height: var(--diffs-annotation-min-height, 0);
|
|
1229
|
-
z-index: 2;
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
[data-merge-conflict-actions] {
|
|
1233
|
-
z-index: 2;
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
[data-separator='custom'] {
|
|
1237
|
-
display: grid;
|
|
1238
|
-
grid-template-columns: subgrid;
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
[data-line],
|
|
1242
|
-
[data-column-number],
|
|
1243
|
-
[data-no-newline] {
|
|
1244
|
-
position: relative;
|
|
1245
|
-
padding-inline: 1ch;
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
[data-indicators='classic'] [data-line] {
|
|
1249
|
-
padding-inline-start: 2ch;
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
[data-indicators='classic'] {
|
|
1253
|
-
[data-line-type='change-addition'],
|
|
1254
|
-
[data-line-type='change-deletion'] {
|
|
1255
|
-
&[data-no-newline],
|
|
1256
|
-
&[data-line] {
|
|
1257
|
-
&::before {
|
|
1258
|
-
display: inline-block;
|
|
1259
|
-
width: 1ch;
|
|
1260
|
-
height: 1lh;
|
|
1261
|
-
position: absolute;
|
|
1262
|
-
top: 0;
|
|
1263
|
-
left: 0;
|
|
1264
|
-
-webkit-user-select: none;
|
|
1265
|
-
user-select: none;
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
[data-line-type='change-addition'] {
|
|
1271
|
-
&[data-line],
|
|
1272
|
-
&[data-no-newline] {
|
|
1273
|
-
&::before {
|
|
1274
|
-
content: '+';
|
|
1275
|
-
color: var(--diffs-addition-base);
|
|
1276
|
-
}
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
|
|
1280
|
-
[data-line-type='change-deletion'] {
|
|
1281
|
-
&[data-line],
|
|
1282
|
-
&[data-no-newline] {
|
|
1283
|
-
&::before {
|
|
1284
|
-
content: '-';
|
|
1285
|
-
color: var(--diffs-deletion-base);
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
[data-indicators='bars'] {
|
|
1292
|
-
[data-line-type='change-deletion'],
|
|
1293
|
-
[data-line-type='change-addition'] {
|
|
1294
|
-
&[data-column-number] {
|
|
1295
|
-
&::before {
|
|
1296
|
-
content: '';
|
|
1297
|
-
display: block;
|
|
1298
|
-
width: 4px;
|
|
1299
|
-
height: 100%;
|
|
1300
|
-
position: absolute;
|
|
1301
|
-
top: 0;
|
|
1302
|
-
left: 0;
|
|
1303
|
-
-webkit-user-select: none;
|
|
1304
|
-
user-select: none;
|
|
1305
|
-
contain: strict;
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
[data-line-type='change-deletion'] {
|
|
1311
|
-
&[data-column-number] {
|
|
1312
|
-
&::before {
|
|
1313
|
-
background-image: linear-gradient(
|
|
1314
|
-
0deg,
|
|
1315
|
-
var(--diffs-bg-deletion) 50%,
|
|
1316
|
-
var(--diffs-deletion-base) 50%
|
|
1317
|
-
);
|
|
1318
|
-
background-repeat: repeat;
|
|
1319
|
-
background-size: 2px 2px;
|
|
1320
|
-
background-size: calc(1lh / round(1lh / 2px))
|
|
1321
|
-
calc(1lh / round(1lh / 2px));
|
|
1322
|
-
}
|
|
1323
|
-
}
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
[data-line-type='change-addition'] {
|
|
1327
|
-
&[data-column-number] {
|
|
1328
|
-
&::before {
|
|
1329
|
-
background-color: var(--diffs-addition-base);
|
|
1330
|
-
}
|
|
1331
|
-
}
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
[data-overflow='wrap'] {
|
|
1336
|
-
[data-line],
|
|
1337
|
-
[data-annotation-content] {
|
|
1338
|
-
white-space: pre-wrap;
|
|
1339
|
-
word-break: break-word;
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
[data-overflow='scroll'] [data-line] {
|
|
1344
|
-
white-space: pre;
|
|
1345
|
-
min-height: 1lh;
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
[data-column-number] {
|
|
1349
|
-
box-sizing: content-box;
|
|
1350
|
-
text-align: right;
|
|
1351
|
-
-webkit-user-select: none;
|
|
1352
|
-
user-select: none;
|
|
1353
|
-
background-color: var(--diffs-bg);
|
|
1354
|
-
color: var(--diffs-fg-number);
|
|
1355
|
-
padding-left: 2ch;
|
|
1356
|
-
}
|
|
1357
|
-
|
|
1358
|
-
[data-line-number-content] {
|
|
1359
|
-
display: inline-block;
|
|
1360
|
-
min-width: var(
|
|
1361
|
-
--diffs-min-number-column-width,
|
|
1362
|
-
var(--diffs-min-number-column-width-default, 3ch)
|
|
1363
|
-
);
|
|
1364
|
-
}
|
|
1365
|
-
|
|
1366
|
-
[data-disable-line-numbers] {
|
|
1367
|
-
[data-column-number] {
|
|
1368
|
-
min-width: 4px;
|
|
1369
|
-
padding: 0;
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
[data-line-number-content] {
|
|
1373
|
-
display: none;
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
[data-gutter-utility-slot] {
|
|
1377
|
-
right: unset;
|
|
1378
|
-
left: 0;
|
|
1379
|
-
justify-content: flex-start;
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
&[data-indicators='bars'] [data-gutter-utility-slot] {
|
|
1383
|
-
/* Using 5px here because theres a 1px separator after the bar */
|
|
1384
|
-
left: 5px;
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
[data-file][data-disable-line-numbers] {
|
|
1389
|
-
[data-gutter-buffer],
|
|
1390
|
-
[data-column-number] {
|
|
1391
|
-
min-width: 0;
|
|
1392
|
-
border-right: 0;
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
[data-interactive-line-numbers] [data-column-number] {
|
|
1397
|
-
cursor: pointer;
|
|
1398
|
-
}
|
|
1399
|
-
|
|
1400
|
-
[data-diff-span] {
|
|
1401
|
-
border-radius: 3px;
|
|
1402
|
-
-webkit-box-decoration-break: clone;
|
|
1403
|
-
box-decoration-break: clone;
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
|
-
[data-line-type='change-addition'] {
|
|
1407
|
-
&[data-column-number] {
|
|
1408
|
-
color: var(
|
|
1409
|
-
--diffs-fg-number-addition-override,
|
|
1410
|
-
var(--diffs-addition-base)
|
|
1411
|
-
);
|
|
1412
|
-
}
|
|
1413
|
-
|
|
1414
|
-
[data-diff-span] {
|
|
1415
|
-
background-color: var(--diffs-bg-addition-emphasis);
|
|
1416
|
-
}
|
|
1417
|
-
}
|
|
1418
|
-
|
|
1419
|
-
[data-line-type='change-deletion'] {
|
|
1420
|
-
&[data-column-number] {
|
|
1421
|
-
color: var(
|
|
1422
|
-
--diffs-fg-number-deletion-override,
|
|
1423
|
-
var(--diffs-deletion-base)
|
|
1424
|
-
);
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
[data-diff-span] {
|
|
1428
|
-
background-color: var(--diffs-bg-deletion-emphasis);
|
|
1429
|
-
}
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
[data-background] [data-line-type='change-addition'] {
|
|
1433
|
-
--diffs-line-bg: var(--diffs-bg-addition);
|
|
1434
|
-
|
|
1435
|
-
&[data-column-number] {
|
|
1436
|
-
background-color: var(--diffs-bg-addition-number);
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
[data-background] [data-line-type='change-deletion'] {
|
|
1441
|
-
--diffs-line-bg: var(--diffs-bg-deletion);
|
|
1442
|
-
|
|
1443
|
-
&[data-column-number] {
|
|
1444
|
-
background-color: var(--diffs-bg-deletion-number);
|
|
1445
|
-
}
|
|
1446
|
-
}
|
|
1447
|
-
|
|
1448
|
-
[data-merge-conflict='marker-start'],
|
|
1449
|
-
[data-merge-conflict='marker-base'],
|
|
1450
|
-
[data-merge-conflict='marker-separator'],
|
|
1451
|
-
[data-merge-conflict='marker-end'] {
|
|
1452
|
-
padding-left: 1ch;
|
|
1453
|
-
color: var(--diffs-fg);
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
[data-merge-conflict='marker-start'],
|
|
1457
|
-
[data-merge-conflict='marker-end'] {
|
|
1458
|
-
display: flex;
|
|
1459
|
-
align-items: center;
|
|
1460
|
-
|
|
1461
|
-
&::after {
|
|
1462
|
-
color: var(--diffs-fg-conflict-marker);
|
|
1463
|
-
font-style: normal;
|
|
1464
|
-
font-size: 0.75rem;
|
|
1465
|
-
line-height: 1.25rem;
|
|
1466
|
-
padding-left: 1ch;
|
|
1467
|
-
font-family: var(
|
|
1468
|
-
--diffs-header-font-family,
|
|
1469
|
-
var(--diffs-header-font-fallback)
|
|
1470
|
-
);
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
[data-merge-conflict='marker-start']::after {
|
|
1475
|
-
content: '(Current Change)';
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
[data-merge-conflict='marker-end']::after {
|
|
1479
|
-
content: '(Incoming Change)';
|
|
1480
|
-
}
|
|
1481
|
-
|
|
1482
|
-
[data-merge-conflict='marker-base'],
|
|
1483
|
-
[data-merge-conflict='marker-end'] {
|
|
1484
|
-
&[data-line],
|
|
1485
|
-
&[data-no-newline] {
|
|
1486
|
-
background-color: var(--diffs-bg-conflict-marker);
|
|
1487
|
-
}
|
|
1488
|
-
|
|
1489
|
-
&[data-column-number] {
|
|
1490
|
-
background-color: var(--diffs-bg-conflict-marker-number);
|
|
1491
|
-
color: var(--diffs-fg-conflict-marker);
|
|
1492
|
-
|
|
1493
|
-
[data-line-number-content] {
|
|
1494
|
-
color: var(--diffs-fg-conflict-marker);
|
|
1495
|
-
}
|
|
1496
|
-
}
|
|
1497
|
-
}
|
|
1498
|
-
|
|
1499
|
-
[data-merge-conflict='current'] {
|
|
1500
|
-
&[data-line],
|
|
1501
|
-
&[data-no-newline] {
|
|
1502
|
-
background-color: var(--conflict-bg-current);
|
|
1503
|
-
}
|
|
1504
|
-
|
|
1505
|
-
&[data-column-number] {
|
|
1506
|
-
background-color: var(--conflict-bg-current-number);
|
|
1507
|
-
color: var(--diffs-addition-base);
|
|
1508
|
-
}
|
|
1509
|
-
}
|
|
1510
|
-
|
|
1511
|
-
[data-gutter-buffer='merge-conflict-marker-start'],
|
|
1512
|
-
[data-merge-conflict='marker-start'] {
|
|
1513
|
-
background-color: var(--conflict-bg-current-header);
|
|
1514
|
-
}
|
|
1515
|
-
|
|
1516
|
-
[data-gutter-buffer='merge-conflict-marker-end'],
|
|
1517
|
-
[data-merge-conflict='marker-end'] {
|
|
1518
|
-
background-color: var(--conflict-bg-incoming-header);
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
[data-merge-conflict='marker-separator'] {
|
|
1522
|
-
&[data-line],
|
|
1523
|
-
&[data-no-newline] {
|
|
1524
|
-
background-color: var(--diffs-bg);
|
|
1525
|
-
}
|
|
1526
|
-
|
|
1527
|
-
&[data-column-number] {
|
|
1528
|
-
background-color: var(--diffs-bg);
|
|
1529
|
-
}
|
|
1530
|
-
}
|
|
1531
|
-
|
|
1532
|
-
[data-merge-conflict='base'] {
|
|
1533
|
-
&[data-line],
|
|
1534
|
-
&[data-no-newline] {
|
|
1535
|
-
background-color: var(--diffs-bg-conflict-base);
|
|
1536
|
-
}
|
|
1537
|
-
|
|
1538
|
-
&[data-column-number] {
|
|
1539
|
-
background-color: var(--diffs-bg-conflict-base-number);
|
|
1540
|
-
color: var(--diffs-modified-base);
|
|
1541
|
-
}
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
|
-
[data-merge-conflict='incoming'] {
|
|
1545
|
-
&[data-line],
|
|
1546
|
-
&[data-no-newline] {
|
|
1547
|
-
background-color: var(--conflict-bg-incoming);
|
|
1548
|
-
}
|
|
1549
|
-
|
|
1550
|
-
&[data-column-number] {
|
|
1551
|
-
background-color: var(--conflict-bg-incoming-number);
|
|
1552
|
-
color: var(--diffs-modified-base);
|
|
1553
|
-
}
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
@media (pointer: fine) {
|
|
1557
|
-
[data-column-number],
|
|
1558
|
-
[data-line] {
|
|
1559
|
-
&[data-hovered] {
|
|
1560
|
-
background-color: var(--diffs-bg-hover);
|
|
1561
|
-
}
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
[data-background] {
|
|
1565
|
-
[data-column-number],
|
|
1566
|
-
[data-line] {
|
|
1567
|
-
&[data-hovered] {
|
|
1568
|
-
&[data-line-type='change-deletion'] {
|
|
1569
|
-
background-color: var(--diffs-bg-deletion-hover);
|
|
1570
|
-
}
|
|
1571
|
-
|
|
1572
|
-
&[data-line-type='change-addition'] {
|
|
1573
|
-
background-color: var(--diffs-bg-addition-hover);
|
|
1574
|
-
}
|
|
1575
|
-
}
|
|
1576
|
-
}
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
[data-diffs-header='default'] {
|
|
1581
|
-
position: relative;
|
|
1582
|
-
background-color: var(--diffs-bg);
|
|
1583
|
-
display: flex;
|
|
1584
|
-
flex-direction: row;
|
|
1585
|
-
justify-content: space-between;
|
|
1586
|
-
align-items: center;
|
|
1587
|
-
gap: var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
1588
|
-
min-height: calc(
|
|
1589
|
-
1lh + (var(--diffs-gap-block, var(--diffs-gap-fallback)) * 3)
|
|
1590
|
-
);
|
|
1591
|
-
padding-inline: 16px;
|
|
1592
|
-
top: 0;
|
|
1593
|
-
z-index: 2;
|
|
1594
|
-
}
|
|
1595
|
-
|
|
1596
|
-
[data-header-content] {
|
|
1597
|
-
display: flex;
|
|
1598
|
-
flex-direction: row;
|
|
1599
|
-
align-items: center;
|
|
1600
|
-
gap: var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
1601
|
-
min-width: 0;
|
|
1602
|
-
white-space: nowrap;
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1605
|
-
[data-header-content] [data-prev-name],
|
|
1606
|
-
[data-header-content] [data-title] {
|
|
1607
|
-
direction: rtl;
|
|
1608
|
-
overflow: hidden;
|
|
1609
|
-
text-overflow: ellipsis;
|
|
1610
|
-
min-width: 0;
|
|
1611
|
-
white-space: nowrap;
|
|
1612
|
-
}
|
|
1613
|
-
|
|
1614
|
-
[data-prev-name] {
|
|
1615
|
-
opacity: 0.7;
|
|
1616
|
-
}
|
|
1617
|
-
|
|
1618
|
-
[data-rename-icon] {
|
|
1619
|
-
fill: currentColor;
|
|
1620
|
-
flex-shrink: 0;
|
|
1621
|
-
flex-grow: 0;
|
|
1622
|
-
}
|
|
1623
|
-
|
|
1624
|
-
[data-diffs-header='default'] [data-metadata] {
|
|
1625
|
-
display: flex;
|
|
1626
|
-
align-items: center;
|
|
1627
|
-
gap: 1ch;
|
|
1628
|
-
white-space: nowrap;
|
|
1629
|
-
}
|
|
1630
|
-
|
|
1631
|
-
[data-diffs-header='default'] [data-additions-count] {
|
|
1632
|
-
font-family: var(--diffs-font-family, var(--diffs-font-fallback));
|
|
1633
|
-
color: var(--diffs-addition-base);
|
|
1634
|
-
}
|
|
1635
|
-
|
|
1636
|
-
[data-diffs-header='default'] [data-deletions-count] {
|
|
1637
|
-
font-family: var(--diffs-font-family, var(--diffs-font-fallback));
|
|
1638
|
-
color: var(--diffs-deletion-base);
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
|
-
[data-annotation-content] {
|
|
1642
|
-
position: relative;
|
|
1643
|
-
display: flow-root;
|
|
1644
|
-
align-self: flex-start;
|
|
1645
|
-
z-index: 2;
|
|
1646
|
-
min-width: 0;
|
|
1647
|
-
isolation: isolate;
|
|
1648
|
-
}
|
|
1649
|
-
|
|
1650
|
-
[data-merge-conflict-actions-content] {
|
|
1651
|
-
display: flex;
|
|
1652
|
-
align-items: center;
|
|
1653
|
-
gap: 0.25rem;
|
|
1654
|
-
padding-inline: 0.5rem;
|
|
1655
|
-
min-height: 1.75rem;
|
|
1656
|
-
font-family: var(
|
|
1657
|
-
--diffs-header-font-family,
|
|
1658
|
-
var(--diffs-header-font-fallback)
|
|
1659
|
-
);
|
|
1660
|
-
font-size: 0.75rem;
|
|
1661
|
-
line-height: 1.2;
|
|
1662
|
-
color: var(--diffs-fg);
|
|
1663
|
-
}
|
|
1664
|
-
|
|
1665
|
-
[data-merge-conflict-action] {
|
|
1666
|
-
appearance: none;
|
|
1667
|
-
border: 0;
|
|
1668
|
-
background: transparent;
|
|
1669
|
-
color: var(--diffs-fg-number);
|
|
1670
|
-
font: inherit;
|
|
1671
|
-
font-style: normal;
|
|
1672
|
-
cursor: pointer;
|
|
1673
|
-
padding: 0;
|
|
1674
|
-
}
|
|
1675
|
-
|
|
1676
|
-
[data-merge-conflict-action]:hover {
|
|
1677
|
-
color: var(--diffs-fg);
|
|
1678
|
-
}
|
|
1679
|
-
|
|
1680
|
-
[data-merge-conflict-action='current']:hover {
|
|
1681
|
-
color: var(--diffs-addition-base);
|
|
1682
|
-
}
|
|
1683
|
-
|
|
1684
|
-
[data-merge-conflict-action='incoming']:hover {
|
|
1685
|
-
color: var(--diffs-modified-base);
|
|
1686
|
-
}
|
|
1687
|
-
|
|
1688
|
-
[data-merge-conflict-action-separator] {
|
|
1689
|
-
color: var(--diffs-fg-number);
|
|
1690
|
-
opacity: 0.6;
|
|
1691
|
-
-webkit-user-select: none;
|
|
1692
|
-
user-select: none;
|
|
1693
|
-
}
|
|
1694
|
-
|
|
1695
|
-
/* Sticky positioning has a composite costs, so we should _only_ pay it if we
|
|
1696
|
-
* need to */
|
|
1697
|
-
[data-overflow='scroll'] [data-annotation-content] {
|
|
1698
|
-
position: sticky;
|
|
1699
|
-
width: var(--diffs-column-content-width, auto);
|
|
1700
|
-
left: var(--diffs-column-number-width, 0);
|
|
1701
|
-
}
|
|
1702
|
-
|
|
1703
|
-
[data-overflow='scroll'] [data-merge-conflict-actions-content] {
|
|
1704
|
-
position: sticky;
|
|
1705
|
-
width: var(--diffs-column-content-width, auto);
|
|
1706
|
-
left: var(--diffs-column-number-width, 0);
|
|
1707
|
-
}
|
|
1708
|
-
|
|
1709
|
-
/* Undo some of the stuff that the 'pre' tag does */
|
|
1710
|
-
[data-annotation-slot] {
|
|
1711
|
-
text-wrap-mode: wrap;
|
|
1712
|
-
word-break: normal;
|
|
1713
|
-
white-space-collapse: collapse;
|
|
1714
|
-
}
|
|
1715
|
-
|
|
1716
|
-
[data-change-icon] {
|
|
1717
|
-
fill: currentColor;
|
|
1718
|
-
flex-shrink: 0;
|
|
1719
|
-
}
|
|
1720
|
-
|
|
1721
|
-
[data-change-icon='change'],
|
|
1722
|
-
[data-change-icon='rename-pure'],
|
|
1723
|
-
[data-change-icon='rename-changed'] {
|
|
1724
|
-
color: var(--diffs-modified-base);
|
|
1725
|
-
}
|
|
1726
|
-
|
|
1727
|
-
[data-change-icon='new'] {
|
|
1728
|
-
color: var(--diffs-addition-base);
|
|
1729
|
-
}
|
|
1730
|
-
|
|
1731
|
-
[data-change-icon='deleted'] {
|
|
1732
|
-
color: var(--diffs-deletion-base);
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1735
|
-
[data-change-icon='file'] {
|
|
1736
|
-
opacity: 0.6;
|
|
1737
|
-
}
|
|
1738
|
-
|
|
1739
|
-
/* Line selection highlighting */
|
|
1740
|
-
[data-selected-line] {
|
|
1741
|
-
&[data-gutter-buffer='annotation'],
|
|
1742
|
-
&[data-column-number] {
|
|
1743
|
-
color: var(--diffs-selection-number-fg);
|
|
1744
|
-
background-color: var(--diffs-bg-selection-number);
|
|
1745
|
-
}
|
|
1746
|
-
|
|
1747
|
-
&[data-line] {
|
|
1748
|
-
background-color: var(--diffs-bg-selection);
|
|
1749
|
-
}
|
|
1750
|
-
}
|
|
1751
|
-
|
|
1752
|
-
[data-line-type='change-addition'],
|
|
1753
|
-
[data-line-type='change-deletion'] {
|
|
1754
|
-
&[data-selected-line] {
|
|
1755
|
-
&[data-line],
|
|
1756
|
-
&[data-line][data-hovered] {
|
|
1757
|
-
background-color: light-dark(
|
|
1758
|
-
color-mix(
|
|
1759
|
-
in lab,
|
|
1760
|
-
var(--diffs-line-bg, var(--diffs-bg)) 82%,
|
|
1761
|
-
var(--diffs-selection-base)
|
|
1762
|
-
),
|
|
1763
|
-
color-mix(
|
|
1764
|
-
in lab,
|
|
1765
|
-
var(--diffs-line-bg, var(--diffs-bg)) 75%,
|
|
1766
|
-
var(--diffs-selection-base)
|
|
1767
|
-
)
|
|
1768
|
-
);
|
|
1769
|
-
}
|
|
1770
|
-
|
|
1771
|
-
&[data-column-number],
|
|
1772
|
-
&[data-column-number][data-hovered] {
|
|
1773
|
-
color: var(--diffs-selection-number-fg);
|
|
1774
|
-
background-color: light-dark(
|
|
1775
|
-
color-mix(
|
|
1776
|
-
in lab,
|
|
1777
|
-
var(--diffs-line-bg, var(--diffs-bg)) 75%,
|
|
1778
|
-
var(--diffs-selection-base)
|
|
1779
|
-
),
|
|
1780
|
-
color-mix(
|
|
1781
|
-
in lab,
|
|
1782
|
-
var(--diffs-line-bg, var(--diffs-bg)) 60%,
|
|
1783
|
-
var(--diffs-selection-base)
|
|
1784
|
-
)
|
|
1785
|
-
);
|
|
1786
|
-
}
|
|
1787
|
-
}
|
|
1788
|
-
}
|
|
1789
|
-
|
|
1790
|
-
[data-gutter-utility-slot] {
|
|
1791
|
-
position: absolute;
|
|
1792
|
-
top: 0;
|
|
1793
|
-
bottom: 0;
|
|
1794
|
-
right: 0;
|
|
1795
|
-
display: flex;
|
|
1796
|
-
justify-content: flex-end;
|
|
1797
|
-
}
|
|
1798
|
-
|
|
1799
|
-
[data-unmodified-lines] {
|
|
1800
|
-
display: block;
|
|
1801
|
-
overflow: hidden;
|
|
1802
|
-
min-width: 0;
|
|
1803
|
-
text-overflow: ellipsis;
|
|
1804
|
-
white-space: nowrap;
|
|
1805
|
-
flex: 0 1 auto;
|
|
1806
|
-
}
|
|
1807
|
-
|
|
1808
|
-
[data-error-wrapper] {
|
|
1809
|
-
overflow: auto;
|
|
1810
|
-
padding: var(--diffs-gap-block, var(--diffs-gap-fallback))
|
|
1811
|
-
var(--diffs-gap-inline, var(--diffs-gap-fallback));
|
|
1812
|
-
max-height: 400px;
|
|
1813
|
-
scrollbar-width: none;
|
|
1814
|
-
|
|
1815
|
-
[data-error-message] {
|
|
1816
|
-
font-weight: bold;
|
|
1817
|
-
font-size: 18px;
|
|
1818
|
-
color: var(--diffs-deletion-base);
|
|
1819
|
-
}
|
|
1820
|
-
|
|
1821
|
-
[data-error-stack] {
|
|
1822
|
-
color: var(--diffs-fg-number);
|
|
1823
|
-
}
|
|
1824
|
-
}
|
|
1825
|
-
|
|
1826
|
-
[data-placeholder] {
|
|
1827
|
-
contain: strict;
|
|
1828
|
-
}
|
|
1829
|
-
|
|
1830
|
-
[data-utility-button] {
|
|
1831
|
-
display: flex;
|
|
1832
|
-
align-items: center;
|
|
1833
|
-
justify-content: center;
|
|
1834
|
-
border: none;
|
|
1835
|
-
appearance: none;
|
|
1836
|
-
width: 1lh;
|
|
1837
|
-
height: 1lh;
|
|
1838
|
-
margin-right: calc((1lh - 1ch) * -1);
|
|
1839
|
-
padding: 0;
|
|
1840
|
-
cursor: pointer;
|
|
1841
|
-
font-size: var(--diffs-font-size, 13px);
|
|
1842
|
-
line-height: var(--diffs-line-height, 20px);
|
|
1843
|
-
border-radius: 4px;
|
|
1844
|
-
background-color: var(--diffs-modified-base);
|
|
1845
|
-
color: var(--diffs-bg);
|
|
1846
|
-
fill: currentColor;
|
|
1847
|
-
position: relative;
|
|
1848
|
-
z-index: 4;
|
|
1849
|
-
}
|
|
1850
|
-
}
|
|
1851
|
-
`;const _s="@layer base, theme, rendered, unsafe;";function eh(t){return`${_s}
|
|
1852
|
-
@layer unsafe {
|
|
1853
|
-
${t}
|
|
1854
|
-
}`}function th(t,e="system"){return`${_s}
|
|
1855
|
-
@layer rendered {
|
|
1856
|
-
:host {${e==="system"?"":`
|
|
1857
|
-
color-scheme: ${e};`}
|
|
1858
|
-
${t}
|
|
1859
|
-
}
|
|
1860
|
-
}`}function On({code:t,pre:e,columnType:n,rowSpan:i,containerSize:r=!1}={}){return t==null&&(t=document.createElement("code"),t.setAttribute("data-code",""),n!=null&&t.setAttribute(`data-${n}`,""),e?.appendChild(t)),i!=null?t.style.setProperty("grid-row",`span ${i}`):t.style.removeProperty("grid-row"),r?t.setAttribute("data-container-size",""):t.removeAttribute("data-container-size"),t}function nh(t,e){if(e==null)return;const n=t.shadowRoot??t.attachShadow({mode:"open"});n.innerHTML===""&&(n.innerHTML=e)}function ih(t,{type:e,diffIndicators:n,disableBackground:i,disableLineNumbers:r,overflow:o,split:s,totalLines:l,customProperties:a}){if(a!=null)for(const d in a){const c=a[d];c!=null&&t.setAttribute(d,`${c}`)}switch(e==="diff"?(t.setAttribute("data-diff",""),t.removeAttribute("data-file")):(t.setAttribute("data-file",""),t.removeAttribute("data-diff")),n){case"bars":case"classic":t.setAttribute("data-indicators",n);break;case"none":t.removeAttribute("data-indicators");break}return r?t.setAttribute("data-disable-line-numbers",""):t.removeAttribute("data-disable-line-numbers"),i?t.removeAttribute("data-background"):t.setAttribute("data-background",""),e==="diff"?t.setAttribute("data-diff-type",s?"split":"single"):t.removeAttribute("data-diff-type"),t.setAttribute("data-overflow",o),t.tabIndex=0,t.style.setProperty("--diffs-min-number-column-width-default",`${`${l}`.length}ch`),t}function rh({shadowRoot:t,currentNode:e,themeCSS:n}){if(n.trim()===""){e?.remove();return}return e??=oh(),e.textContent=n,e.parentNode!==t&&t.appendChild(e),e}function oh(){const t=document.createElement("style");return t.setAttribute(Zr,""),t}if(typeof HTMLElement<"u"&&customElements.get(Bt)==null){let t;class e extends HTMLElement{constructor(){if(super(),this.shadowRoot!=null)return;const i=this.attachShadow({mode:"open"});t==null&&(t=new CSSStyleSheet,t.replaceSync(Zf)),i.adoptedStyleSheets=[t]}}customElements.define(Bt,e)}const sh=!0;var ah=class{isDeletionsScrolling=!1;isAdditionsScrolling=!1;timeoutId=-1;codeDeletions;codeAdditions;enabled=!1;cleanUp(){this.enabled&&(this.codeDeletions?.removeEventListener("scroll",this.handleDeletionsScroll),this.codeAdditions?.removeEventListener("scroll",this.handleAdditionsScroll),clearTimeout(this.timeoutId),this.codeDeletions=void 0,this.codeAdditions=void 0,this.enabled=!1)}setup(t,e,n){if(e==null||n==null)for(const i of t.children??[])i instanceof HTMLElement&&("deletions"in i.dataset?e=i:"additions"in i.dataset&&(n=i));if(n==null||e==null){this.cleanUp();return}this.codeDeletions!==e&&(this.codeDeletions?.removeEventListener("scroll",this.handleDeletionsScroll),this.codeDeletions=e,e.addEventListener("scroll",this.handleDeletionsScroll,{passive:!0})),this.codeAdditions!==n&&(this.codeAdditions?.removeEventListener("scroll",this.handleAdditionsScroll),this.codeAdditions=n,n.addEventListener("scroll",this.handleAdditionsScroll,{passive:!0})),this.enabled=!0}handleDeletionsScroll=()=>{this.isAdditionsScrolling||(this.isDeletionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isDeletionsScrolling=!1},300),this.codeAdditions?.scrollTo({left:this.codeDeletions?.scrollLeft}))};handleAdditionsScroll=()=>{this.isDeletionsScrolling||(this.isAdditionsScrolling=!0,clearTimeout(this.timeoutId),this.timeoutId=setTimeout(()=>{this.isAdditionsScrolling=!1},300),this.codeDeletions?.scrollTo({left:this.codeAdditions?.scrollLeft}))}};function Mn(t,e){return bs(t.theme,e.theme)&&t.useTokenTransformer===e.useTokenTransformer&&t.tokenizeMaxLineLength===e.tokenizeMaxLineLength&&t.lineDiffType===e.lineDiffType&&t.maxLineDiffLength===e.maxLineDiffLength}function Dt(t){return N({tagName:"div",properties:{"data-content-buffer":"","data-buffer-size":t,style:`grid-row: span ${t};min-height:calc(${t} * 1lh)`}})}function Nt(t){return N({tagName:"div",children:[N({tagName:"span",children:[_e("No newline at end of file")]})],properties:{"data-no-newline":"","data-line-type":t,"data-column-content":""}})}function $n(t){return N({tagName:"div",children:[zt({name:t==="both"?"diffs-icon-expand-all":"diffs-icon-expand",properties:{"data-icon":""}})],properties:{role:"button","data-expand-button":"","data-expand-both":t==="both"?"":void 0,"data-expand-up":t==="up"?"":void 0,"data-expand-down":t==="down"?"":void 0}})}function ze({type:t,content:e,expandIndex:n,chunked:i=!1,slotName:r,isFirstHunk:o,isLastHunk:s}){let l=0;const a=[];if(t==="metadata"&&e!=null&&a.push(N({tagName:"div",children:[_e(e)],properties:{"data-separator-wrapper":""}})),(t==="line-info"||t==="line-info-basic")&&e!=null){const d=[];n!=null&&(i?(o||(d.push($n("up")),l++),s||(d.push($n("down")),l++)):(d.push($n(!o&&!s?"both":o?"down":"up")),l++)),d.push(N({tagName:"div",children:[N({tagName:"span",children:[_e(e)],properties:{"data-unmodified-lines":""}})],properties:{"data-separator-content":""}})),i&&n!=null&&d.push(N({tagName:"div",children:[_e("Expand all")],properties:{role:"button","data-expand-button":"","data-expand-all-button":""}})),a.push(N({tagName:"div",children:d,properties:{"data-separator-wrapper":"","data-separator-multi-button":l>1?"":void 0}}))}return t==="custom"&&r!=null&&a.push(N({tagName:"slot",properties:{name:r}})),N({tagName:"div",children:a,properties:{"data-separator":a.length===0?"simple":t,"data-expand-index":n,"data-separator-first":o?"":void 0,"data-separator-last":s?"":void 0}})}function lh(t,e){return`hunk-separator-${t}-${e}`}function dh(t){const e=t.at(-1);return e==null?0:Math.max(e.additionStart+e.additionCount,e.deletionStart+e.deletionCount)}function ch(t){return t.startingLine===0&&t.totalLines===1/0&&t.bufferBefore===0&&t.bufferAfter===0}class Pi{diff(e,n,i={}){let r;typeof i=="function"?(r=i,i={}):"callback"in i&&(r=i.callback);const o=this.castInput(e,i),s=this.castInput(n,i),l=this.removeEmpty(this.tokenize(o,i)),a=this.removeEmpty(this.tokenize(s,i));return this.diffWithOptionsObj(l,a,i,r)}diffWithOptionsObj(e,n,i,r){var o;const s=g=>{if(g=this.postProcess(g,i),r){setTimeout(function(){r(g)},0);return}else return g},l=n.length,a=e.length;let d=1,c=l+a;i.maxEditLength!=null&&(c=Math.min(c,i.maxEditLength));const u=(o=i.timeout)!==null&&o!==void 0?o:1/0,f=Date.now()+u,h=[{oldPos:-1,lastComponent:void 0}];let p=this.extractCommon(h[0],n,e,0,i);if(h[0].oldPos+1>=a&&p+1>=l)return s(this.buildValues(h[0].lastComponent,n,e));let b=-1/0,y=1/0;const _=()=>{for(let g=Math.max(b,-d);g<=Math.min(y,d);g+=2){let v;const k=h[g-1],C=h[g+1];k&&(h[g-1]=void 0);let w=!1;if(C){const L=C.oldPos-g;w=C&&0<=L&&L<l}const E=k&&k.oldPos+1<a;if(!w&&!E){h[g]=void 0;continue}if(!E||w&&k.oldPos<C.oldPos?v=this.addToPath(C,!0,!1,0,i):v=this.addToPath(k,!1,!0,1,i),p=this.extractCommon(v,n,e,g,i),v.oldPos+1>=a&&p+1>=l)return s(this.buildValues(v.lastComponent,n,e))||!0;h[g]=v,v.oldPos+1>=a&&(y=Math.min(y,g-1)),p+1>=l&&(b=Math.max(b,g+1))}d++};if(r)(function g(){setTimeout(function(){if(d>c||Date.now()>f)return r(void 0);_()||g()},0)})();else for(;d<=c&&Date.now()<=f;){const g=_();if(g)return g}}addToPath(e,n,i,r,o){const s=e.lastComponent;return s&&!o.oneChangePerToken&&s.added===n&&s.removed===i?{oldPos:e.oldPos+r,lastComponent:{count:s.count+1,added:n,removed:i,previousComponent:s.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:n,removed:i,previousComponent:s}}}extractCommon(e,n,i,r,o){const s=n.length,l=i.length;let a=e.oldPos,d=a-r,c=0;for(;d+1<s&&a+1<l&&this.equals(i[a+1],n[d+1],o);)d++,a++,c++,o.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return c&&!o.oneChangePerToken&&(e.lastComponent={count:c,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=a,d}equals(e,n,i){return i.comparator?i.comparator(e,n):e===n||!!i.ignoreCase&&e.toLowerCase()===n.toLowerCase()}removeEmpty(e){const n=[];for(let i=0;i<e.length;i++)e[i]&&n.push(e[i]);return n}castInput(e,n){return e}tokenize(e,n){return Array.from(e)}join(e){return e.join("")}postProcess(e,n){return e}get useLongestToken(){return!1}buildValues(e,n,i){const r=[];let o;for(;e;)r.push(e),o=e.previousComponent,delete e.previousComponent,e=o;r.reverse();const s=r.length;let l=0,a=0,d=0;for(;l<s;l++){const c=r[l];if(c.removed)c.value=this.join(i.slice(d,d+c.count)),d+=c.count;else{if(!c.added&&this.useLongestToken){let u=n.slice(a,a+c.count);u=u.map(function(f,h){const p=i[d+h];return p.length>f.length?p:f}),c.value=this.join(u)}else c.value=this.join(n.slice(a,a+c.count));a+=c.count,c.added||(d+=c.count)}}return r}}class uh extends Pi{}const fh=new uh;function hh(t,e,n){return fh.diff(t,e,n)}const Mr="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 ph extends Pi{tokenize(e){const n=new RegExp(`(\\r?\\n)|[${Mr}]+|[^\\S\\n\\r]+|[^${Mr}]`,"ug");return e.match(n)||[]}}const mh=new ph;function gh(t,e,n){return mh.diff(t,e,n)}class bh extends Pi{constructor(){super(...arguments),this.tokenize=_h}equals(e,n,i){return i.ignoreWhitespace?((!i.newlineIsToken||!e.includes(`
|
|
1861
|
-
`))&&(e=e.trim()),(!i.newlineIsToken||!n.includes(`
|
|
1862
|
-
`))&&(n=n.trim())):i.ignoreNewlineAtEof&&!i.newlineIsToken&&(e.endsWith(`
|
|
1863
|
-
`)&&(e=e.slice(0,-1)),n.endsWith(`
|
|
1864
|
-
`)&&(n=n.slice(0,-1))),super.equals(e,n,i)}}const vh=new bh;function $r(t,e,n){return vh.diff(t,e,n)}function _h(t,e){e.stripTrailingCr&&(t=t.replace(/\r\n/g,`
|
|
1865
|
-
`));const n=[],i=t.split(/(\n|\r\n)/);i[i.length-1]||i.pop();for(let r=0;r<i.length;r++){const o=i[r];r%2&&!e.newlineIsToken?n[n.length-1]+=o:n.push(o)}return n}const yh={includeIndex:!0,includeUnderline:!0,includeFileHeaders:!0};function Vr(t,e,n,i,r,o,s){let l;s?typeof s=="function"?l={callback:s}:l=s:l={},typeof l.context>"u"&&(l.context=4);const a=l.context;if(l.newlineIsToken)throw new Error("newlineIsToken may not be used with patch-generation functions, only with diffing functions");if(l.callback){const{callback:c}=l;$r(n,i,Object.assign(Object.assign({},l),{callback:u=>{const f=d(u);c(f)}}))}else return d($r(n,i,l));function d(c){if(!c)return;c.push({value:"",lines:[]});function u(g){return g.map(function(v){return" "+v})}const f=[];let h=0,p=0,b=[],y=1,_=1;for(let g=0;g<c.length;g++){const v=c[g],k=v.lines||kh(v.value);if(v.lines=k,v.added||v.removed){if(!h){const C=c[g-1];h=y,p=_,C&&(b=a>0?u(C.lines.slice(-a)):[],h-=b.length,p-=b.length)}for(const C of k)b.push((v.added?"+":"-")+C);v.added?_+=k.length:y+=k.length}else{if(h)if(k.length<=a*2&&g<c.length-2)for(const C of u(k))b.push(C);else{const C=Math.min(k.length,a);for(const E of u(k.slice(0,C)))b.push(E);const w={oldStart:h,oldLines:y-h+C,newStart:p,newLines:_-p+C,lines:b};f.push(w),h=0,p=0,b=[]}y+=k.length,_+=k.length}}for(const g of f)for(let v=0;v<g.lines.length;v++)g.lines[v].endsWith(`
|
|
1866
|
-
`)?g.lines[v]=g.lines[v].slice(0,-1):(g.lines.splice(v+1,0,"\"),v++);return{oldFileName:t,newFileName:e,oldHeader:r,newHeader:o,hunks:f}}}function ui(t,e){if(e||(e=yh),Array.isArray(t)){if(t.length>1&&!e.includeFileHeaders)throw new Error("Cannot omit file headers on a multi-file patch. (The result would be unparseable; how would a tool trying to apply the patch know which changes are to which file?)");return t.map(i=>ui(i,e)).join(`
|
|
1867
|
-
`)}const n=[];e.includeIndex&&t.oldFileName==t.newFileName&&n.push("Index: "+t.oldFileName),e.includeUnderline&&n.push("==================================================================="),e.includeFileHeaders&&(n.push("--- "+t.oldFileName+(typeof t.oldHeader>"u"?"":" "+t.oldHeader)),n.push("+++ "+t.newFileName+(typeof t.newHeader>"u"?"":" "+t.newHeader)));for(let i=0;i<t.hunks.length;i++){const r=t.hunks[i];r.oldLines===0&&(r.oldStart-=1),r.newLines===0&&(r.newStart-=1),n.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@");for(const o of r.lines)n.push(o)}return n.join(`
|
|
1868
|
-
`)+`
|
|
1869
|
-
`}function wh(t,e,n,i,r,o,s){if(typeof s=="function"&&(s={callback:s}),s?.callback){const{callback:l}=s;Vr(t,e,n,i,r,o,Object.assign(Object.assign({},s),{callback:a=>{l(a?ui(a,s.headerOptions):void 0)}}))}else{const l=Vr(t,e,n,i,r,o,s);return l?ui(l,s?.headerOptions):void 0}}function kh(t){const e=t.endsWith(`
|
|
1870
|
-
`),n=t.split(`
|
|
1871
|
-
`).map(i=>i+`
|
|
1872
|
-
`);return e?n.pop():n.push(n.pop().slice(0,-1)),n}function Hr({line:t,spanStart:e,spanLength:n}){return{start:{line:t,character:e},end:{line:t,character:e+n},properties:{"data-diff-span":""},alwaysWrap:!0}}function Ot({item:t,arr:e,enableJoin:n,isNeutral:i=!1,isLastItem:r=!1}){const o=e[e.length-1];if(o==null||r||!n){e.push([i?0:1,t.value]);return}const s=o[0]===0;if(i===s||i&&t.value.length===1&&!s){o[1]+=t.value;return}e.push([i?0:1,t.value])}function rn({diff:t,diffStyle:e,startingLine:n=0,totalLines:i=1/0,expandedHunks:r,collapsedContextThreshold:o=Ke,callback:s}){const l={finalHunk:t.hunks.at(-1),viewportStart:n,viewportEnd:n+i,isWindowedHighlight:n>0||i<1/0,splitCount:0,unifiedCount:0,shouldBreak(){if(!l.isWindowedHighlight)return!1;const a=l.unifiedCount>=n+i,d=l.splitCount>=n+i;return e==="unified"?a:(e==="split"||a)&&d},shouldSkip(a,d){if(!l.isWindowedHighlight)return!1;const c=l.unifiedCount+a<n,u=l.splitCount+d<n;return e==="unified"?c:(e==="split"||c)&&u},incrementCounts(a,d){(e==="unified"||e==="both")&&(l.unifiedCount+=a),(e==="split"||e==="both")&&(l.splitCount+=d)},isInWindow(a,d){if(!l.isWindowedHighlight)return!0;const c=l.isInUnifiedWindow(a),u=l.isInSplitWindow(d);return e==="unified"?c:e==="split"?u:c||u},isInUnifiedWindow(a){return!l.isWindowedHighlight||l.unifiedCount>=n-a&&l.unifiedCount<n+i},isInSplitWindow(a){return!l.isWindowedHighlight||l.splitCount>=n-a&&l.splitCount<n+i},emit(a,d=!1){return d||(e==="unified"?l.incrementCounts(1,0):e==="split"?l.incrementCounts(0,1):l.incrementCounts(1,1)),s(a)??!1}};e:for(const[a,d]of t.hunks.entries()){let h=function(w,E){return u==null||u.collapsedLines<=0||u.fromStart+u.fromEnd>0?0:e==="unified"?w===d.unifiedLineStart+d.unifiedLineCount-1?u.collapsedLines:0:E===d.splitLineStart+d.splitLineCount-1?u.collapsedLines:0},p=function(){if(c.collapsedLines===0)return 0;const w=c.collapsedLines;return c.collapsedLines=0,w};if(l.shouldBreak())break;const c=Ur(t.isPartial,d.collapsedBefore,r,a,o),u=(()=>{if(d!==l.finalHunk||!Ch(t))return;const w=t.additionLines.length-(d.additionLineIndex+d.additionCount),E=t.deletionLines.length-(d.deletionLineIndex+d.deletionCount);if(w!==E)throw new Error(`iterateOverDiff: trailing context mismatch (additions=${w}, deletions=${E}) for ${t.name}`);const L=Math.min(w,E);return Ur(t.isPartial,L,r,t.hunks.length,o)})(),f=c.fromStart+c.fromEnd;if(l.shouldSkip(f,f))l.incrementCounts(f,f),p();else{let w=d.unifiedLineStart-c.rangeSize,E=d.splitLineStart-c.rangeSize,L=d.deletionLineIndex-c.rangeSize,A=d.additionLineIndex-c.rangeSize,I=d.deletionStart-c.rangeSize,P=d.additionStart-c.rangeSize,D=0;for(;D<c.fromStart;){if(l.isInWindow(0,0)){if(l.emit({hunkIndex:a,hunk:d,collapsedBefore:0,collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:I+D,lineIndex:L+D,noEOFCR:!1,unifiedLineIndex:w+D,splitLineIndex:E+D},additionLine:{unifiedLineIndex:w+D,splitLineIndex:E+D,lineIndex:A+D,lineNumber:P+D,noEOFCR:!1}}))break e}else l.incrementCounts(1,1);D++}for(w=d.unifiedLineStart-c.fromEnd,E=d.splitLineStart-c.fromEnd,L=d.deletionLineIndex-c.fromEnd,A=d.additionLineIndex-c.fromEnd,I=d.deletionStart-c.fromEnd,P=d.additionStart-c.fromEnd,D=0;D<c.fromEnd;){if(l.isInWindow(0,0)){if(l.emit({hunkIndex:a,hunk:d,collapsedBefore:p(),collapsedAfter:0,type:"context-expanded",deletionLine:{lineNumber:I+D,lineIndex:L+D,noEOFCR:!1,unifiedLineIndex:w+D,splitLineIndex:E+D},additionLine:{unifiedLineIndex:w+D,splitLineIndex:E+D,lineIndex:A+D,lineNumber:P+D,noEOFCR:!1}}))break e}else l.incrementCounts(1,1);D++}}let b=d.unifiedLineStart,y=d.splitLineStart,_=d.deletionLineIndex,g=d.additionLineIndex,v=d.deletionStart,k=d.additionStart;const C=d.hunkContent.at(-1);for(const w of d.hunkContent){if(l.shouldBreak())break e;const E=w===C;if(w.type==="context"){if(l.shouldSkip(w.lines,w.lines))l.incrementCounts(w.lines,w.lines),p();else{let L=0;for(;L<w.lines;){if(l.isInWindow(0,0)){const A=E&&L===w.lines-1,I=b+L,P=y+L;if(l.emit({hunkIndex:a,hunk:d,collapsedBefore:p(),collapsedAfter:h(I,P),type:"context",deletionLine:{lineNumber:v+L,lineIndex:_+L,noEOFCR:A&&d.noEOFCRDeletions,unifiedLineIndex:I,splitLineIndex:P},additionLine:{unifiedLineIndex:I,splitLineIndex:P,lineIndex:g+L,lineNumber:k+L,noEOFCR:A&&d.noEOFCRAdditions}}))break e}else l.incrementCounts(1,1);L++}}b+=w.lines,y+=w.lines,_+=w.lines,g+=w.lines,v+=w.lines,k+=w.lines}else{const L=Math.max(w.deletions,w.additions),A=w.deletions+w.additions;if(!l.shouldSkip(A,L)){const I=Eh(l,w,e);for(const[P,D]of I)for(let O=P;O<D;O++){const $=h(b+O,e==="unified"?y+(O<w.deletions?O:O-w.deletions):y+O);if(l.emit(Sh({hunkIndex:a,hunk:d,collapsedBefore:p(),collapsedAfter:$,diffStyle:e,index:O,unifiedLineIndex:b,splitLineIndex:y,additionLineIndex:g,deletionLineIndex:_,additionLineNumber:k,deletionLineNumber:v,content:w,isLastContent:E,unifiedCount:A,splitCount:L}),!0))break e}}p(),l.incrementCounts(A,L),b+=A,y+=L,_+=w.deletions,g+=w.additions,v+=w.deletions,k+=w.additions}}if(u!=null){const{collapsedLines:w,fromStart:E,fromEnd:L}=u,A=E+L;let I=0;for(;I<A;){if(l.shouldBreak())break e;if(l.isInWindow(0,0)){const P=I===A-1;if(l.emit({hunkIndex:t.hunks.length,hunk:void 0,collapsedBefore:0,collapsedAfter:P?w:0,type:"context-expanded",deletionLine:{lineNumber:v+I,lineIndex:_+I,noEOFCR:!1,unifiedLineIndex:b+I,splitLineIndex:y+I},additionLine:{unifiedLineIndex:b+I,splitLineIndex:y+I,lineIndex:g+I,lineNumber:k+I,noEOFCR:!1}}))break e}else l.incrementCounts(1,1);I++}}}}function Ur(t,e,n,i,r){if(e=Math.max(e,0),e===0||t)return{fromStart:0,fromEnd:0,rangeSize:e,collapsedLines:Math.max(e,0)};if(n===!0||e<=r)return{fromStart:e,fromEnd:0,rangeSize:e,collapsedLines:0};const o=n?.get(i),s=Math.min(Math.max(o?.fromStart??0,0),e),l=Math.min(Math.max(o?.fromEnd??0,0),e),a=s+l,d=a>=e;return{fromStart:d?e:s,fromEnd:d?0:l,rangeSize:e,collapsedLines:Math.max(e-a,0)}}function Ch(t){const e=t.hunks.at(-1);return e==null||t.isPartial||t.additionLines.length===0||t.deletionLines.length===0?!1:e.additionLineIndex+e.additionCount<t.additionLines.length||e.deletionLineIndex+e.deletionCount<t.deletionLines.length}function Eh(t,e,n){if(!t.isWindowedHighlight)return[[0,n==="unified"?e.deletions+e.additions:Math.max(e.deletions,e.additions)]];const i=n!=="split",r=n!=="unified",o=n==="unified"?"unified":"split",s=[];function l(u,f){if(u+f<=t.viewportStart||u>=t.viewportEnd)return;const h=Math.max(0,t.viewportStart-u),p=Math.min(f,t.viewportEnd-u);return p>h?[h,p]:void 0}function a(u,f){return o==="split"?u:f==="additions"?[u[0]+e.deletions,u[1]+e.deletions]:u}function d(u,f){if(u==null)return;const[h,p]=a(u,f);p>h&&s.push([h,p])}if(i&&(d(l(t.unifiedCount,e.deletions),"deletions"),d(l(t.unifiedCount+e.deletions,e.additions),"additions")),r&&(d(l(t.splitCount,e.deletions),"deletions"),d(l(t.splitCount,e.additions),"additions")),s.length===0)return s;s.sort((u,f)=>u[0]-f[0]);const c=[s[0]];for(const[u,f]of s.slice(1)){const h=c[c.length-1];u<=h[1]?h[1]=Math.max(h[1],f):c.push([u,f])}return c}function Sh({hunkIndex:t,hunk:e,collapsedAfter:n,collapsedBefore:i,diffStyle:r,index:o,unifiedLineIndex:s,splitLineIndex:l,additionLineIndex:a,deletionLineIndex:d,additionLineNumber:c,deletionLineNumber:u,content:f,isLastContent:h,unifiedCount:p,splitCount:b}){const y=o<f.deletions?s+o:void 0,_=r==="unified"?o>=f.deletions?s+o:void 0:o<f.additions?s+f.deletions+o:void 0,g=r==="unified"?l+(o<f.deletions?o:o-f.deletions):l+o,v=o<f.deletions?d+o:void 0,k=o<f.deletions?u+o:void 0,C=r==="unified"?o>=f.deletions?a+(o-f.deletions):void 0:o<f.additions?a+o:void 0,w=r==="unified"?o>=f.deletions?c+(o-f.deletions):void 0:o<f.additions?c+o:void 0,E=r==="unified"?h&&o===f.deletions-1&&e.noEOFCRDeletions:h&&o===b-1&&e.noEOFCRDeletions,L=r==="unified"?h&&o===p-1&&e.noEOFCRAdditions:h&&o===b-1&&e.noEOFCRAdditions,A=v!=null&&k!=null&&y!=null?{lineNumber:k,lineIndex:v,noEOFCR:E,unifiedLineIndex:y,splitLineIndex:g}:void 0,I=C!=null&&w!=null&&_!=null?{unifiedLineIndex:_,splitLineIndex:g,lineIndex:C,lineNumber:w,noEOFCR:L}:void 0;if(A==null&&I!=null)return{type:"change",hunkIndex:t,hunk:e,collapsedAfter:n,collapsedBefore:i,deletionLine:void 0,additionLine:I};if(A!=null&&I==null)return{type:"change",hunkIndex:t,hunk:e,collapsedAfter:n,collapsedBefore:i,deletionLine:A,additionLine:void 0};if(A==null||I==null)throw new Error("iterateOverDiff: missing change line data");return{type:"change",hunkIndex:t,hunk:e,collapsedAfter:n,collapsedBefore:i,deletionLine:A,additionLine:I}}const xh={forcePlainText:!1};function Lh(t,e,n,{forcePlainText:i,startingLine:r,totalLines:o,expandedHunks:s,collapsedContextThreshold:l=Ke}=xh){i?(r??=0,o??=1/0):(r=0,o=1/0);const a=r>0||o<1/0,d=typeof n.theme=="string"?e.getTheme(n.theme).type:void 0,c=Bf({theme:n.theme,highlighter:e}),u=i&&!a&&(t.unifiedLineCount>1e3||t.splitLineCount>1e3)?"none":n.lineDiffType,f={deletionLines:[],additionLines:[]},{maxLineDiffLength:h}=n,p=!i&&!t.isPartial,b=i?s:void 0,y=new Map;function _(v){const k=p?0:v,C=y.get(k)??Ih();return y.set(k,C),C}function g(v,k,C,w){if(a){let E=C.at(-1);(E==null||E.targetIndex+E.count!==k)&&(E={targetIndex:k,originalOffset:w.length,count:0},C.push(E)),E.count++}w.push(v)}rn({diff:t,diffStyle:"both",startingLine:r,totalLines:o,expandedHunks:a?b:!0,collapsedContextThreshold:l,callback:({hunkIndex:v,additionLine:k,deletionLine:C,type:w})=>{const E=_(v),L=k!=null?k.splitLineIndex:C.splitLineIndex;w==="change"&&k!=null&&C!=null&&Ah({additionLine:t.additionLines[k.lineIndex],deletionLine:t.deletionLines[C.lineIndex],deletionLineIndex:E.deletionContent.length,additionLineIndex:E.additionContent.length,deletionDecorations:E.deletionDecorations,additionDecorations:E.additionDecorations,lineDiffType:u,maxLineDiffLength:h}),C!=null&&(g(t.deletionLines[C.lineIndex],C.lineIndex,E.deletionSegments,E.deletionContent),E.deletionInfo.push({type:w==="change"?"change-deletion":w,lineNumber:C.lineNumber,altLineNumber:w==="change"?void 0:k.lineNumber??void 0,lineIndex:`${C.unifiedLineIndex},${L}`})),k!=null&&(g(t.additionLines[k.lineIndex],k.lineIndex,E.additionSegments,E.additionContent),E.additionInfo.push({type:w==="change"?"change-addition":w,lineNumber:k.lineNumber,altLineNumber:w==="change"?void 0:C.lineNumber??void 0,lineIndex:`${k.unifiedLineIndex},${L}`}))}});for(const v of y.values()){if(v.deletionContent.length===0&&v.additionContent.length===0)continue;const k={name:t.prevName??t.name,contents:v.deletionContent.value},C={name:t.name,contents:v.additionContent.value},{deletionLines:w,additionLines:E}=Th({deletionFile:k,deletionInfo:v.deletionInfo,deletionDecorations:v.deletionDecorations,additionFile:C,additionInfo:v.additionInfo,additionDecorations:v.additionDecorations,highlighter:e,options:n,languageOverride:i?"text":t.lang});if(p){f.deletionLines=w,f.additionLines=E;continue}if(v.deletionSegments.length>0)for(const L of v.deletionSegments)for(let A=0;A<L.count;A++)f.deletionLines[L.targetIndex+A]=w[L.originalOffset+A];else f.deletionLines.push(...w);if(v.additionSegments.length>0)for(const L of v.additionSegments)for(let A=0;A<L.count;A++)f.additionLines[L.targetIndex+A]=E[L.originalOffset+A];else f.additionLines.push(...E)}return{code:f,themeStyles:c,baseThemeType:d}}function Ah({deletionLine:t,additionLine:e,deletionLineIndex:n,additionLineIndex:i,deletionDecorations:r,additionDecorations:o,lineDiffType:s,maxLineDiffLength:l}){if(t==null||e==null||s==="none"||(t=et(t),e=et(e),t.length>l||e.length>l))return;const a=s==="char"?hh(t,e):gh(t,e),d=[],c=[],u=s==="word-alt",f=a.at(-1);for(const p of a){const b=p===f;!p.added&&!p.removed?(Ot({item:p,arr:d,enableJoin:u,isNeutral:!0,isLastItem:b}),Ot({item:p,arr:c,enableJoin:u,isNeutral:!0,isLastItem:b})):p.removed?Ot({item:p,arr:d,enableJoin:u,isLastItem:b}):Ot({item:p,arr:c,enableJoin:u,isLastItem:b})}let h=0;for(const p of d)p[0]===1&&r.push(Hr({line:n,spanStart:h,spanLength:p[1].length})),h+=p[1].length;h=0;for(const p of c)p[0]===1&&o.push(Hr({line:i,spanStart:h,spanLength:p[1].length})),h+=p[1].length}function Ih(){return{deletionContent:{push(t){this.value+=t,this.length++},value:"",length:0},additionContent:{push(t){this.value+=t,this.length++},value:"",length:0},deletionInfo:[],additionInfo:[],deletionDecorations:[],additionDecorations:[],deletionSegments:[],additionSegments:[]}}function Th({deletionFile:t,additionFile:e,deletionInfo:n,additionInfo:i,highlighter:r,deletionDecorations:o,additionDecorations:s,languageOverride:l,options:{theme:a=ve,...d}}){const c=l??Ve(t.name),u=l??Ve(e.name),{state:f,transformers:h}=jf(d.useTokenTransformer),p=typeof a=="string"?{...d,lang:"text",theme:a,transformers:h,decorations:void 0,defaultColor:!1,cssVariablePrefix:ae("token")}:{...d,lang:"text",themes:a,transformers:h,decorations:void 0,defaultColor:!1,cssVariablePrefix:ae("token")};return{deletionLines:t.contents===""?[]:(p.lang=c,f.lineInfo=n,p.decorations=o,Dr(r.codeToHast(et(t.contents),p))),additionLines:e.contents===""?[]:(p.lang=u,p.decorations=s,f.lineInfo=i,Dr(r.codeToHast(et(e.contents),p)))}}function Rh(t){const e=t.lang??Ve(t.name),n=t.lang??(t.prevName!=null?Ve(t.prevName):"text");return e==="text"&&n==="text"}let Ph=-1;var Dh=class{__id=`diff-hunks-renderer:${++Ph}`;highlighter;diff;expandedHunks=new Map;deletionAnnotations={};additionAnnotations={};computedLang="text";renderCache;constructor(t={theme:ve},e,n){this.options=t,this.onRenderUpdate=e,this.workerManager=n,n?.isWorkingPool()!==!0&&(this.highlighter=Pn(t.theme??ve)?Lf():void 0)}cleanUp(){this.highlighter=void 0,this.diff=void 0,this.renderCache=void 0,this.workerManager?.cleanUpPendingTasks(this),this.workerManager=void 0,this.onRenderUpdate=void 0}recycle(){this.highlighter=void 0,this.diff=void 0,this.renderCache=void 0,this.workerManager?.cleanUpPendingTasks(this)}setOptions(t){this.options=t}mergeOptions(t){this.options={...this.options,...t}}expandHunk(t,e,n=this.getOptionsWithDefaults().expansionLineCount){const i={...this.expandedHunks.get(t)??{fromStart:0,fromEnd:0}};(e==="up"||e==="both")&&(i.fromStart+=n),(e==="down"||e==="both")&&(i.fromEnd+=n),this.renderCache?.highlighted!==!0&&(this.renderCache=void 0),this.expandedHunks.set(t,i)}getExpandedHunk(t){return this.expandedHunks.get(t)??fa}getExpandedHunksMap(){return this.expandedHunks}setLineAnnotations(t){this.additionAnnotations={},this.deletionAnnotations={};for(const e of t){const n=(()=>{switch(e.side){case"deletions":return this.deletionAnnotations;case"additions":return this.additionAnnotations}})(),i=n[e.lineNumber]??[];n[e.lineNumber]=i,i.push(e)}}getUnifiedLineDecoration({lineType:t}){return{gutterLineType:t}}getSplitLineDecoration({side:t,type:e}){return e!=="change"?{gutterLineType:e}:{gutterLineType:t==="deletions"?"change-deletion":"change-addition"}}createAnnotationElement(t){return If(t)}getOptionsWithDefaults(){const{diffIndicators:t="bars",diffStyle:e="split",disableBackground:n=!1,disableFileHeader:i=!1,disableLineNumbers:r=!1,disableVirtualizationBuffers:o=!1,collapsed:s=!1,expandUnchanged:l=!1,collapsedContextThreshold:a=Ke,expansionLineCount:d=100,hunkSeparators:c="line-info",lineDiffType:u="word-alt",maxLineDiffLength:f=1e3,overflow:h="scroll",theme:p=ve,headerRenderMode:b="default",tokenizeMaxLineLength:y=1e3,useTokenTransformer:_=!1,useCSSClasses:g=!1}=this.options;return{diffIndicators:t,diffStyle:e,disableBackground:n,disableFileHeader:i,disableLineNumbers:r,disableVirtualizationBuffers:o,collapsed:s,expandUnchanged:l,collapsedContextThreshold:a,expansionLineCount:d,hunkSeparators:c,lineDiffType:u,maxLineDiffLength:f,overflow:h,theme:this.workerManager?.getDiffRenderOptions().theme??p,headerRenderMode:b,tokenizeMaxLineLength:y,useTokenTransformer:_,useCSSClasses:g}}async initializeHighlighter(){return this.highlighter=await xf(Mf(this.computedLang,this.options)),this.highlighter}hydrate(t){if(t==null)return;this.diff=t;const{options:e}=this.getRenderOptions(t);let n=this.workerManager?.getDiffResultCache(t);n!=null&&!Mn(e,n.options)&&(n=void 0),this.renderCache??={diff:t,highlighted:!Rh(t),options:e,result:n?.result,renderRange:void 0},this.workerManager?.isWorkingPool()===!0?this.renderCache.result==null&&this.workerManager.highlightDiffAST(this,this.diff):this.highlighter==null&&(this.computedLang=t.lang??Ve(t.name),this.initializeHighlighter())}getRenderOptions(t){const e=(()=>{if(this.workerManager?.isWorkingPool()===!0)return this.workerManager.getDiffRenderOptions();const{theme:i,tokenizeMaxLineLength:r,lineDiffType:o,maxLineDiffLength:s}=this.getOptionsWithDefaults();return{theme:i,useTokenTransformer:Wf(this.options),tokenizeMaxLineLength:r,lineDiffType:o,maxLineDiffLength:s}})();this.getOptionsWithDefaults();const{renderCache:n}=this;return n?.result==null?{options:e,forceRender:!0}:t!==n.diff||!Mn(e,n.options)?{options:e,forceRender:!0}:{options:e,forceRender:!1}}renderDiff(t=this.renderCache?.diff,e=Ni){if(t==null)return;const{expandUnchanged:n=!1,collapsedContextThreshold:i}=this.getOptionsWithDefaults(),r=this.workerManager?.getDiffResultCache(t);r!=null&&this.renderCache==null&&(this.renderCache={diff:t,highlighted:!0,renderRange:void 0,...r});const{options:o,forceRender:s}=this.getRenderOptions(t);if(this.renderCache??={diff:t,highlighted:!1,options:o,result:void 0,renderRange:void 0},this.workerManager?.isWorkingPool()===!0)(this.renderCache.result==null||!this.renderCache.highlighted&&(t!==this.renderCache.diff||!gs(this.renderCache.renderRange,e)))&&(this.renderCache.diff=t,this.renderCache.result=this.workerManager.getPlainDiffAST(t,e.startingLine,e.totalLines,ch(e)||n?!0:this.expandedHunks,i),this.renderCache.renderRange=e),e.totalLines>0&&(!this.renderCache.highlighted||s)&&this.workerManager.highlightDiffAST(this,t);else{this.computedLang=t.lang??Ve(t.name);const l=this.highlighter!=null&&Pn(o.theme),a=this.highlighter!=null&&Ki(this.computedLang);if(this.highlighter!=null&&l&&(s||!this.renderCache.highlighted&&a||this.renderCache.result==null)){const{result:d,options:c}=this.renderDiffWithHighlighter(t,this.highlighter,!a);this.renderCache={diff:t,options:c,highlighted:a,result:d,renderRange:void 0}}(!l||!a)&&this.asyncHighlight(t).then(({result:d,options:c})=>{this.renderCache!=null&&(this.renderCache.highlighted=!1),this.onHighlightSuccess(t,d,c)})}return this.renderCache.result!=null?this.processDiffResult(this.renderCache.diff,e,this.renderCache.result):void 0}async asyncRender(t,e=Ni){const{result:n}=await this.asyncHighlight(t);return this.processDiffResult(t,e,n)}createPreElement(t,e,n){const{diffIndicators:i,disableBackground:r,disableLineNumbers:o,overflow:s}=this.getOptionsWithDefaults();return Nf({type:"diff",diffIndicators:i,disableBackground:r,disableLineNumbers:o,overflow:s,split:t,totalLines:e,customProperties:n})}async asyncHighlight(t){this.computedLang=t.lang??Ve(t.name);const e=this.highlighter!=null&&Pn(this.options.theme??ve),n=this.highlighter!=null&&Ki(this.computedLang);return(this.highlighter==null||!e||!n)&&(this.highlighter=await this.initializeHighlighter()),this.renderDiffWithHighlighter(t,this.highlighter)}renderDiffWithHighlighter(t,e,n=!1){const{options:i}=this.getRenderOptions(t),{collapsedContextThreshold:r}=this.getOptionsWithDefaults();return{result:Lh(t,e,i,{forcePlainText:n,expandedHunks:n?!0:void 0,collapsedContextThreshold:r}),options:i}}onHighlightSuccess(t,e,n){if(this.renderCache==null)return;const i=!this.renderCache.highlighted||!Mn(this.renderCache.options,n)||this.renderCache.diff!==t;this.renderCache={diff:t,options:n,highlighted:!0,result:e,renderRange:void 0},i&&this.onRenderUpdate?.()}onHighlightError(t){console.error(t)}processDiffResult(t,e,{code:n,themeStyles:i,baseThemeType:r}){const{diffStyle:o,disableFileHeader:s,expandUnchanged:l,expansionLineCount:a,collapsedContextThreshold:d,hunkSeparators:c}=this.getOptionsWithDefaults();this.diff=t;const u=o==="unified";let f=[],h=[],p=[];const b=[],{additionLines:y,deletionLines:_}=n,g={rowCount:0,hunkSeparators:c,additionsContentAST:f,deletionsContentAST:h,unifiedContentAST:p,unifiedGutterAST:Et(),deletionsGutterAST:Et(),additionsGutterAST:Et(),expansionLineCount:a,hunkData:b,incrementRowCount(O=1){g.rowCount+=O},pushToGutter(O,$){switch(O){case"unified":g.unifiedGutterAST.children.push($);break;case"deletions":g.deletionsGutterAST.children.push($);break;case"additions":g.additionsGutterAST.children.push($);break}}},v=Nh(t),k={size:0,side:void 0,increment(){this.size+=1},flush(){if(o!=="unified"){if(this.size<=0||this.side==null){this.side=void 0,this.size=0;return}this.side==="additions"?(g.pushToGutter("additions",ue(void 0,"buffer",this.size)),f?.push(Dt(this.size))):(g.pushToGutter("deletions",ue(void 0,"buffer",this.size)),h?.push(Dt(this.size))),this.size=0,this.side=void 0}}},C=(O,$,Z,re,V)=>{g.pushToGutter(O,ma($,Z,re,V))};function w(O){k.flush(),o==="unified"?Vn("unified",O,g):(Vn("deletions",O,g),Vn("additions",O,g))}rn({diff:t,diffStyle:o,startingLine:e.startingLine,totalLines:e.totalLines,expandedHunks:l?!0:this.expandedHunks,collapsedContextThreshold:d,callback:({hunkIndex:O,hunk:$,collapsedBefore:Z,collapsedAfter:re,additionLine:V,deletionLine:G,type:B})=>{const Le=G!=null?G.splitLineIndex:V.splitLineIndex,Ge=V!=null?V.unifiedLineIndex:G.unifiedLineIndex;o==="split"&&B!=="change"&&k.flush(),Z>0&&w({hunkIndex:O,collapsedLines:Z,rangeSize:Math.max($?.collapsedBefore??0,0),hunkSpecs:$?.hunkSpecs,isFirstHunk:O===0,isLastHunk:!1,isExpandable:!t.isPartial});const ot=o==="unified"?Ge:Le,kt={type:B,hunkIndex:O,lineIndex:ot,unifiedLineIndex:Ge,splitLineIndex:Le,deletionLine:G,additionLine:V};if(o==="unified"){const H=this.getUnifiedInjectedRowsForLine?.(kt);H?.before!=null&&jr(H.before,g);let ee=G!=null?_[G.lineIndex]:void 0,te=V!=null?y[V.lineIndex]:void 0;if(ee==null&&te==null){const oe="DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong";throw console.error(oe,{file:t.name}),new Error(oe)}const we=B==="change"?V!=null?"change-addition":"change-deletion":B,ce=this.getUnifiedLineDecoration({type:B,lineType:we,additionLineIndex:V?.lineIndex,deletionLineIndex:G?.lineIndex});C("unified",ce.gutterLineType,V!=null?V.lineNumber:G.lineNumber,`${Ge},${Le}`,ce.gutterProperties),te!=null?te=Mt(te,ce.contentProperties):ee!=null&&(ee=Mt(ee,ce.contentProperties)),Br({diffStyle:"unified",type:B,deletionLine:ee,additionLine:te,unifiedSpan:this.getAnnotations("unified",G?.lineNumber,V?.lineNumber,O,ot),createAnnotationElement:oe=>this.createAnnotationElement(oe),context:g}),H?.after!=null&&jr(H.after,g)}else{const H=this.getSplitInjectedRowsForLine?.(kt);H?.before!=null&&Fr(H.before,g,k);let ee=G!=null?_[G.lineIndex]:void 0,te=V!=null?y[V.lineIndex]:void 0;const we=this.getSplitLineDecoration({side:"deletions",type:B,lineIndex:G?.lineIndex}),ce=this.getSplitLineDecoration({side:"additions",type:B,lineIndex:V?.lineIndex});if(ee==null&&te==null){const pe="DiffHunksRenderer.processDiffResult: deletionLine and additionLine are null, something is wrong";throw console.error(pe,{file:t.name}),new Error(pe)}const oe=(()=>{if(B==="change"){if(te==null)return"additions";if(ee==null)return"deletions"}})();if(oe!=null){if(k.side!=null&&k.side!==oe)throw new Error("DiffHunksRenderer.processDiffResult: iterateOverDiff, invalid pending splits");k.side=oe,k.increment()}const st=this.getAnnotations("split",G?.lineNumber,V?.lineNumber,O,ot);if(st!=null&&k.size>0&&k.flush(),G!=null){const pe=Mt(ee,we.contentProperties);C("deletions",we.gutterLineType,G.lineNumber,`${G.unifiedLineIndex},${Le}`,we.gutterProperties),pe!=null&&(ee=pe)}if(V!=null){const pe=Mt(te,ce.contentProperties);C("additions",ce.gutterLineType,V.lineNumber,`${V.unifiedLineIndex},${Le}`,ce.gutterProperties),pe!=null&&(te=pe)}Br({diffStyle:"split",type:B,additionLine:te,deletionLine:ee,...st,createAnnotationElement:pe=>this.createAnnotationElement(pe),context:g}),H?.after!=null&&Fr(H.after,g,k)}const Re=G?.noEOFCR??!1,ye=V?.noEOFCR??!1;if(ye||Re){if(Re){const H=B==="context"||B==="context-expanded"?B:"change-deletion";o==="unified"?(g.unifiedContentAST.push(Nt(H)),g.pushToGutter("unified",ue(H,"metadata",1))):(g.deletionsContentAST.push(Nt(H)),g.pushToGutter("deletions",ue(H,"metadata",1)),ye||(g.pushToGutter("additions",ue(void 0,"buffer",1)),g.additionsContentAST.push(Dt(1))))}if(ye){const H=B==="context"||B==="context-expanded"?B:"change-addition";o==="unified"?(g.unifiedContentAST.push(Nt(H)),g.pushToGutter("unified",ue(H,"metadata",1))):(g.additionsContentAST.push(Nt(H)),g.pushToGutter("additions",ue(H,"metadata",1)),Re||(g.pushToGutter("deletions",ue(void 0,"buffer",1)),g.deletionsContentAST.push(Dt(1))))}g.incrementRowCount(1)}re>0&&c!=="simple"&&w({hunkIndex:B==="context-expanded"?O:O+1,collapsedLines:re,rangeSize:v,hunkSpecs:void 0,isFirstHunk:!1,isLastHunk:!0,isExpandable:!t.isPartial}),g.incrementRowCount(1)}}),o==="split"&&k.flush();const E=Math.max(dh(t.hunks),t.additionLines.length??0,t.deletionLines.length??0),L=e.bufferBefore>0||e.bufferAfter>0,A=!u&&t.type!=="deleted",I=!u&&t.type!=="new",P=g.rowCount>0||L;f=A&&P?f:void 0,h=I&&P?h:void 0,p=u&&P?p:void 0;const D=this.createPreElement(h!=null&&f!=null,E);return{unifiedGutterAST:u&&P?g.unifiedGutterAST.children:void 0,unifiedContentAST:p,deletionsGutterAST:I&&P?g.deletionsGutterAST.children:void 0,deletionsContentAST:h,additionsGutterAST:A&&P?g.additionsGutterAST.children:void 0,additionsContentAST:f,hunkData:b,preNode:D,themeStyles:i,baseThemeType:r,headerElement:s?void 0:this.renderHeader(this.diff),totalLines:E,rowCount:g.rowCount,bufferBefore:e.bufferBefore,bufferAfter:e.bufferAfter,css:""}}renderCodeAST(t,e){const n=t==="unified"?e.unifiedGutterAST:t==="deletions"?e.deletionsGutterAST:e.additionsGutterAST,i=t==="unified"?e.unifiedContentAST:t==="deletions"?e.deletionsContentAST:e.additionsContentAST;if(n==null||i==null)return;const r=Et(n);return r.properties.style=`grid-row: span ${e.rowCount}`,[r,zf(i,e.rowCount)]}renderFullAST(t,e=[]){const n=this.getOptionsWithDefaults().hunkSeparators==="line-info",i=this.renderCodeAST("unified",t);if(i!=null)return e.push(N({tagName:"code",children:i,properties:{"data-code":"","data-container-size":n?"":void 0,"data-unified":""}})),{...t.preNode,children:e};const r=this.renderCodeAST("deletions",t);r!=null&&e.push(N({tagName:"code",children:r,properties:{"data-code":"","data-container-size":n?"":void 0,"data-deletions":""}}));const o=this.renderCodeAST("additions",t);return o!=null&&e.push(N({tagName:"code",children:o,properties:{"data-code":"","data-container-size":n?"":void 0,"data-additions":""}})),{...t.preNode,children:e}}renderFullHTML(t,e=[]){return Ye(this.renderFullAST(t,e))}renderPartialHTML(t,e){return e==null?Ye(t):Ye(N({tagName:"code",children:t,properties:{"data-code":"","data-container-size":this.getOptionsWithDefaults().hunkSeparators==="line-info"?"":void 0,[`data-${e}`]:""}}))}getAnnotations(t,e,n,i,r){const o={type:"annotation",hunkIndex:i,lineIndex:r,annotations:[]};if(e!=null)for(const l of this.deletionAnnotations[e]??[])o.annotations.push(vt(l));const s={type:"annotation",hunkIndex:i,lineIndex:r,annotations:[]};if(n!=null)for(const l of this.additionAnnotations[n]??[])(t==="unified"?o:s).annotations.push(vt(l));if(t==="unified")return o.annotations.length>0?o:void 0;if(!(s.annotations.length===0&&o.annotations.length===0))return{deletionSpan:o,additionSpan:s}}renderHeader(t){const{headerRenderMode:e}=this.getOptionsWithDefaults();return Rf({fileOrDiff:t,mode:e})}};function Gr(t){return`${t} unmodified line${t>1?"s":""}`}function jr(t,e){for(const n of t)e.unifiedContentAST.push(n.content),e.pushToGutter("unified",n.gutter),e.incrementRowCount(1)}function Fr(t,e,n){for(const{deletion:i,addition:r}of t){if(i==null&&r==null)continue;const o=i!=null&&r!=null?void 0:i==null?"deletions":"additions";(o==null||n.side!==o)&&n.flush(),i!=null&&(e.deletionsContentAST.push(i.content),e.pushToGutter("deletions",i.gutter)),r!=null&&(e.additionsContentAST.push(r.content),e.pushToGutter("additions",r.gutter)),o!=null&&(n.side=o,n.increment()),e.incrementRowCount(1)}}function Br({diffStyle:t,type:e,deletionLine:n,additionLine:i,unifiedSpan:r,deletionSpan:o,additionSpan:s,createAnnotationElement:l,context:a}){let d=!1;if(t==="unified"){if(i!=null?a.unifiedContentAST.push(i):n!=null&&a.unifiedContentAST.push(n),r!=null){const c=e==="change"?n!=null?"change-deletion":"change-addition":e;a.unifiedContentAST.push(l(r)),a.pushToGutter("unified",ue(c,"annotation",1)),d=!0}}else if(t==="split"){if(n!=null&&a.deletionsContentAST.push(n),i!=null&&a.additionsContentAST.push(i),o!=null){const c=e==="change"?n!=null?"change-deletion":"context":e;a.deletionsContentAST.push(l(o)),a.pushToGutter("deletions",ue(c,"annotation",1)),d=!0}if(s!=null){const c=e==="change"?i!=null?"change-addition":"context":e;a.additionsContentAST.push(l(s)),a.pushToGutter("additions",ue(c,"annotation",1)),d=!0}}d&&a.incrementRowCount(1)}function Vn(t,{hunkIndex:e,collapsedLines:n,rangeSize:i,hunkSpecs:r,isFirstHunk:o,isLastHunk:s,isExpandable:l},a){if(n<=0)return;const d=t==="unified"?a.unifiedContentAST:t==="deletions"?a.deletionsContentAST:a.additionsContentAST;if(a.hunkSeparators==="metadata"){r!=null&&(a.pushToGutter(t,ze({type:"metadata",content:r,isFirstHunk:o,isLastHunk:s})),d.push(ze({type:"metadata",content:r,isFirstHunk:o,isLastHunk:s})),t!=="additions"&&a.incrementRowCount(1));return}if(a.hunkSeparators==="simple"){e>0&&(a.pushToGutter(t,ze({type:"simple",isFirstHunk:o,isLastHunk:!1})),d.push(ze({type:"simple",isFirstHunk:o,isLastHunk:!1})),t!=="additions"&&a.incrementRowCount(1));return}const c=lh(t,e),u=i>a.expansionLineCount,f=l?e:void 0;a.pushToGutter(t,ze({type:a.hunkSeparators,content:Gr(n),expandIndex:f,chunked:u,slotName:c,isFirstHunk:o,isLastHunk:s})),d.push(ze({type:a.hunkSeparators,content:Gr(n),expandIndex:f,chunked:u,slotName:c,isFirstHunk:o,isLastHunk:s})),t!=="additions"&&a.incrementRowCount(1),a.hunkData.push({slotName:c,hunkIndex:e,lines:n,type:t,expandable:l?{up:!o,down:!s,chunked:u}:void 0})}function Mt(t,e){return t==null||t.type!=="element"||e==null?t:{...t,properties:{...t.properties,...e}}}function Nh(t){const e=t.hunks.at(-1);if(e==null||t.isPartial||t.additionLines.length===0||t.deletionLines.length===0)return 0;const n=t.additionLines.length-(e.additionLineIndex+e.additionCount),i=t.deletionLines.length-(e.deletionLineIndex+e.deletionCount);if(n!==i)throw new Error(`DiffHunksRenderer.processDiffResult: trailing context mismatch (additions=${n}, deletions=${i}) for ${t.name}`);return Math.min(n,i)}function Oh(t,e){return t.lineNumber===e.lineNumber&&t.side===e.side&&t.metadata===e.metadata}function Mh(t,e){return t.slotName===e.slotName&&t.hunkIndex===e.hunkIndex&&t.lines===e.lines&&t.type===e.type&&t.expandable?.chunked===e.expandable?.chunked&&t.expandable?.up===e.expandable?.up&&t.expandable?.down===e.expandable?.down}function $h(t){const e=t[0];if(e!=="+"&&e!=="-"&&e!==" "&&e!=="\\"){console.error(`parseLineType: Invalid firstChar: "${e}", full line: "${t}"`);return}const n=t.substring(1);return{line:n===""?`
|
|
1873
|
-
`:n,type:e===" "?"context":e==="\\"?"metadata":e==="+"?"addition":"deletion"}}function Vh(t,e,n=!1){const i=$t.test(t),r=t.split(i?$t:Di);let o;const s=[];for(const l of r){if(i&&!$t.test(l)){if(o==null)o=l;else{if(n)throw Error("parsePatchContent: unknown file blob");console.error("parsePatchContent: unknown file blob:",l)}continue}else if(!i&&!Di.test(l)){if(o==null)o=l;else{if(n)throw Error("parsePatchContent: unknown file blob");console.error("parsePatchContent: unknown file blob:",l)}continue}const a=ys(l,{cacheKey:void 0,isGitDiff:i,throwOnError:n});a!=null&&s.push(a)}return{patchMetadata:o,files:s}}function ys(t,{cacheKey:e,isGitDiff:n=$t.test(t),oldFile:i,newFile:r,throwOnError:o=!1}={}){let s=0;const l=t.split(oa);let a;const d=i==null||r==null;let c=0,u=0;for(const f of l){const h=f.split(hn),p=h.shift();if(p==null){if(o)throw Error("parsePatchContent: invalid hunk");console.error("parsePatchContent: invalid hunk",f);continue}const b=p.match(sa);let y=0,_=0;if(b==null||a==null){if(a!=null){if(o)throw Error("parsePatchContent: Invalid hunk");console.error("parsePatchContent: Invalid hunk",f);continue}a={name:"",type:"change",hunks:[],splitLineCount:0,unifiedLineCount:0,isPartial:d,additionLines:!d&&i!=null&&r!=null?r.contents.split(hn):[],deletionLines:!d&&i!=null&&r!=null?i.contents.split(hn):[],cacheKey:e},a.additionLines.length===1&&r?.contents===""&&(a.additionLines.length=0),a.deletionLines.length===1&&i?.contents===""&&(a.deletionLines.length=0),h.unshift(p);for(const E of h){const L=E.match(n?la:aa);if(E.startsWith("diff --git")){const[,,A,,I]=E.trim().match(da)??[];a.name=I.trim(),A!==I&&(a.prevName=A.trim())}else if(L!=null){const[,A,I]=L;A==="---"&&I!=="/dev/null"?(a.prevName=I.trim(),a.name=I.trim()):A==="+++"&&I!=="/dev/null"&&(a.name=I.trim())}else if(n){if(E.startsWith("new mode ")&&(a.mode=E.replace("new mode","").trim()),E.startsWith("old mode ")&&(a.prevMode=E.replace("old mode","").trim()),E.startsWith("new file mode")&&(a.type="new",a.mode=E.replace("new file mode","").trim()),E.startsWith("deleted file mode")&&(a.type="deleted",a.mode=E.replace("deleted file mode","").trim()),E.startsWith("similarity index")&&(E.startsWith("similarity index 100%")?a.type="rename-pure":a.type="rename-changed"),E.startsWith("index ")){const[,A,I,P]=E.trim().match(ca)??[];A!=null&&(a.prevObjectId=A),I!=null&&(a.newObjectId=I),P!=null&&(a.mode=P)}E.startsWith("rename from ")&&(a.prevName=E.replace("rename from ","").trim()),E.startsWith("rename to ")&&(a.name=E.replace("rename to ","").trim())}}continue}let g,v;for(;h.length>0&&(h[h.length-1]===`
|
|
1874
|
-
`||h[h.length-1]==="\r"||h[h.length-1]===`\r
|
|
1875
|
-
`||h[h.length-1]==="");)h.pop();const k=parseInt(b[3]),C=parseInt(b[1]);c=d?c:C-1,u=d?u:k-1;const w={collapsedBefore:0,splitLineCount:0,splitLineStart:0,unifiedLineCount:0,unifiedLineStart:0,additionCount:parseInt(b[4]??"1"),additionStart:k,additionLines:y,deletionCount:parseInt(b[2]??"1"),deletionStart:C,deletionLines:_,deletionLineIndex:c,additionLineIndex:u,hunkContent:[],hunkContext:b[5],hunkSpecs:p,noEOFCRAdditions:!1,noEOFCRDeletions:!1};if(isNaN(w.additionCount)||isNaN(w.deletionCount)||isNaN(w.additionStart)||isNaN(w.deletionStart)){if(o)throw Error("parsePatchContent: invalid hunk metadata");console.error("parsePatchContent: invalid hunk metadata",w);continue}for(const E of h){const L=$h(E);if(L==null){console.error("processFile: invalid rawLine:",E);continue}const{type:A,line:I}=L;if(A==="addition")(g==null||g.type!=="change")&&(g=Hn("change",c,u),w.hunkContent.push(g)),u++,d&&a.additionLines.push(I),g.additions++,y++,v="addition";else if(A==="deletion")(g==null||g.type!=="change")&&(g=Hn("change",c,u),w.hunkContent.push(g)),c++,d&&a.deletionLines.push(I),g.deletions++,_++,v="deletion";else if(A==="context")(g==null||g.type!=="context")&&(g=Hn("context",c,u),w.hunkContent.push(g)),u++,c++,d&&(a.deletionLines.push(I),a.additionLines.push(I)),g.lines++,v="context";else if(A==="metadata"&&g!=null){if(g.type==="context"?(w.noEOFCRAdditions=!0,w.noEOFCRDeletions=!0):v==="deletion"?w.noEOFCRDeletions=!0:v==="addition"&&(w.noEOFCRAdditions=!0),d&&(v==="addition"||v==="context")){const P=a.additionLines.length-1;P>=0&&(a.additionLines[P]=et(a.additionLines[P]))}if(d&&(v==="deletion"||v==="context")){const P=a.deletionLines.length-1;P>=0&&(a.deletionLines[P]=et(a.deletionLines[P]))}}}w.additionLines=y,w.deletionLines=_,w.collapsedBefore=Math.max(w.additionStart-1-s,0),a.hunks.push(w),s=w.additionStart+w.additionCount-1;for(const E of w.hunkContent)E.type==="context"?(w.splitLineCount+=E.lines,w.unifiedLineCount+=E.lines):(w.splitLineCount+=Math.max(E.additions,E.deletions),w.unifiedLineCount+=E.deletions+E.additions);w.splitLineStart=a.splitLineCount+w.collapsedBefore,w.unifiedLineStart=a.unifiedLineCount+w.collapsedBefore,a.splitLineCount+=w.collapsedBefore+w.splitLineCount,a.unifiedLineCount+=w.collapsedBefore+w.unifiedLineCount}if(a!=null){if(a.hunks.length>0&&!d&&a.additionLines.length>0&&a.deletionLines.length>0){const f=a.hunks[a.hunks.length-1],h=f.additionStart+f.additionCount-1,p=a.additionLines.length,b=Math.max(p-h,0);a.splitLineCount+=b,a.unifiedLineCount+=b}return n||(a.prevName!=null&&a.name!==a.prevName?a.hunks.length>0?a.type="rename-changed":a.type="rename-pure":r!=null&&r.contents===""?a.type="deleted":i!=null&&i.contents===""&&(a.type="new")),a.type!=="rename-pure"&&a.type!=="rename-changed"&&(a.prevName=void 0),a}}function Hh(t,e,n=!1){const i=[];for(const r of t.split(ra))try{i.push(Vh(r,e!=null?`${e}-${i.length}`:void 0,n))}catch(o){if(n)throw o;console.error(o)}return i}function Hn(t,e,n){return t==="change"?{type:"change",additions:0,deletions:0,additionLineIndex:n,deletionLineIndex:e}:{type:"context",lines:0,additionLineIndex:n,deletionLineIndex:e}}function fi(t,e,n,i=!1){const r=ys(wh(t.name,e.name,t.contents,e.contents,t.header,e.header,n),{cacheKey:(()=>{if(t.cacheKey!=null&&e.cacheKey!=null)return`${t.cacheKey}:${e.cacheKey}`})(),oldFile:t,newFile:e,throwOnError:i});if(r==null)throw new Error("parseDiffFrom: FileInvalid diff -- probably need to fix something -- if the files are the same maybe?");return e.lang!=null&&(r.lang=e.lang),r}let Uh=-1;var ws=class{static LoadedCustomComponent=sh;__id=`file-diff:${++Uh}`;fileContainer;spriteSVG;pre;codeUnified;codeDeletions;codeAdditions;bufferBefore;bufferAfter;themeCSSStyle;appliedThemeCSS;unsafeCSSStyle;appliedUnsafeCSS;gutterUtilityContent;headerElement;headerPrefix;headerMetadata;headerCustom;separatorCache=new Map;errorWrapper;placeHolder;hunksRenderer;resizeManager;scrollSyncManager;interactionManager;annotationCache=new Map;lineAnnotations=[];deletionFile;additionFile;fileDiff;renderRange;appliedPreAttributes;lastRenderedHeaderHTML;lastRowCount;enabled=!0;constructor(e={theme:ve},n,i=!1){this.options=e,this.workerManager=n,this.isContainerManaged=i,this.hunksRenderer=this.createHunksRenderer(e),this.resizeManager=new Vl,this.scrollSyncManager=new ah,this.interactionManager=new Dl("diff",Bi(e,typeof e.hunkSeparators=="function"||(e.hunkSeparators??"line-info")==="line-info"||e.hunkSeparators==="line-info-basic"?this.handleExpandHunk:void 0,this.getLineIndex)),this.workerManager?.subscribeToThemeChanges(this),this.enabled=!0}handleHighlightRender=()=>{this.rerender()};getHunksRendererOptions(e){return{...e,headerRenderMode:e.renderCustomHeader!=null?"custom":"default",hunkSeparators:typeof e.hunkSeparators=="function"?"custom":e.hunkSeparators}}createHunksRenderer(e){return new Dh(this.getHunksRendererOptions(e),this.handleHighlightRender,this.workerManager)}getLineIndex=(e,n="additions")=>{if(this.fileDiff==null)return;const i=this.fileDiff.hunks.at(-1);let r,o;e:for(const s of this.fileDiff.hunks){let l=n==="deletions"?s.deletionStart:s.additionStart;const a=n==="deletions"?s.deletionCount:s.additionCount;let d=s.splitLineStart,c=s.unifiedLineStart;if(e<l){const u=l-e;r=Math.max(c-u,0),o=Math.max(d-u,0);break e}if(e>=l+a){if(s===i){const u=e-(l+a);r=c+s.unifiedLineCount+u,o=d+s.splitLineCount+u;break e}continue}for(const u of s.hunkContent)if(u.type==="context")if(e<l+u.lines){const f=e-l;o=d+f,r=c+f;break e}else l+=u.lines,d+=u.lines,c+=u.lines;else{const f=n==="deletions"?u.deletions:u.additions;if(e<l+f){const h=e-l;r=c+(n==="additions"?u.deletions:0)+h,o=d+h;break e}else l+=f,d+=Math.max(u.deletions,u.additions),c+=u.deletions+u.additions}break e}if(!(r==null||o==null))return[r,o]};setOptions(e){e!=null&&(this.options=e,this.hunksRenderer.setOptions(this.getHunksRendererOptions(e)),this.interactionManager.setOptions(Bi(e,typeof e.hunkSeparators=="function"||(e.hunkSeparators??"line-info")==="line-info"||e.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}),!(typeof this.options.theme=="string"||this.fileContainer==null||this.appliedThemeCSS==null)&&this.applyThemeState(this.fileContainer,this.appliedThemeCSS.themeStyles,e,this.appliedThemeCSS.baseThemeType))}getHoveredLine=()=>this.interactionManager.getHoveredLine();setLineAnnotations(e){this.lineAnnotations=e}canPartiallyRender(e,n,i){return!(e||n||i||typeof this.options.hunkSeparators=="function")}setSelectedLines(e){this.interactionManager.setSelection(e)}cleanUp(e=!1){this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.workerManager?.unsubscribeToThemeChanges(this),this.renderRange=void 0,this.isContainerManaged||this.fileContainer?.remove(),this.fileContainer?.shadowRoot!=null&&(this.fileContainer.shadowRoot.innerHTML=""),this.fileContainer=void 0,this.pre!=null&&(this.pre.innerHTML="",this.pre=void 0),this.codeUnified=void 0,this.codeDeletions=void 0,this.codeAdditions=void 0,this.bufferBefore=void 0,this.bufferAfter=void 0,this.appliedPreAttributes=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.lastRenderedHeaderHTML=void 0,this.errorWrapper=void 0,this.spriteSVG=void 0,this.lastRowCount=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,e?this.hunksRenderer.recycle():(this.hunksRenderer.cleanUp(),this.workerManager=void 0,this.fileDiff=void 0,this.deletionFile=void 0,this.additionFile=void 0),this.enabled=!1}virtualizedSetup(){this.enabled=!0,this.workerManager?.subscribeToThemeChanges(this)}hydrate(e){const{fileContainer:n,prerenderedHTML:i,preventEmit:r=!1,lineAnnotations:o,oldFile:s,newFile:l,fileDiff:a}=e;this.hydrateElements(n,i),Fh(this.pre,Gh({fileDiff:a,oldFile:s,newFile:l}),this.options.collapsed)||Bh(this.headerElement,jh({fileDiff:a,oldFile:s,newFile:l}),this.options.disableFileHeader)?this.render({...e,preventEmit:!0}):this.hydrationSetup({fileDiff:a,oldFile:s,newFile:l,lineAnnotations:o}),r||this.emitPostRender()}hydrateElements(e,n){nh(e,n);for(const i of e.shadowRoot?.children??[]){if(i instanceof SVGElement){this.spriteSVG=i;continue}if(i instanceof HTMLElement){if(i instanceof HTMLPreElement){this.pre=i;for(const r of i.children)!(r instanceof HTMLElement)||r.tagName.toLowerCase()!=="code"||("deletions"in r.dataset&&(this.codeDeletions=r),"additions"in r.dataset&&(this.codeAdditions=r),"unified"in r.dataset&&(this.codeUnified=r));continue}if("diffsHeader"in i.dataset){this.headerElement=i;continue}if(i instanceof HTMLStyleElement&&i.hasAttribute(Zr)){this.themeCSSStyle=i;continue}if(i instanceof HTMLStyleElement&&i.hasAttribute(eo)){this.unsafeCSSStyle=i,this.appliedUnsafeCSS=i.textContent;continue}}}this.pre!=null&&(this.syncCodeNodesFromPre(this.pre),this.pre.removeAttribute("data-dehydrated")),this.fileContainer=e}hydrationSetup({fileDiff:e,oldFile:n,newFile:i,lineAnnotations:r}){const{diffStyle:o="split",overflow:s="scroll"}=this.options;this.lineAnnotations=r??this.lineAnnotations,this.additionFile=i,this.deletionFile=n,this.fileDiff=e??(n!=null&&i!=null?fi(n,i,this.options.parseDiffOptions):void 0),this.pre!=null&&(this.hunksRenderer.hydrate(this.fileDiff),this.renderAnnotations(),this.renderGutterUtility(),this.injectUnsafeCSS(),this.interactionManager.setup(this.pre),this.resizeManager.setup(this.pre,s==="wrap"),s==="scroll"&&o==="split"&&this.scrollSyncManager.setup(this.pre,this.codeDeletions,this.codeAdditions))}rerender(){!this.enabled||this.fileDiff==null&&this.additionFile==null&&this.deletionFile==null||this.render({forceRender:!0,renderRange:this.renderRange})}handleExpandHunk=(e,n,i)=>{this.expandHunk(e,n,i)};expandHunk=(e,n,i)=>{this.hunksRenderer.expandHunk(e,n,i),this.rerender()};render({oldFile:e,newFile:n,fileDiff:i,forceRender:r=!1,preventEmit:o=!1,lineAnnotations:s,fileContainer:l,containerWrapper:a,renderRange:d}){if(!this.enabled)throw new Error("FileDiff.render: attempting to call render after cleaned up");const{collapsed:c=!1}=this.options,u=c?void 0:d,f=e!=null&&n!=null&&(!Nr(e,this.deletionFile)||!Nr(n,this.additionFile));let h=i!=null&&i!==this.fileDiff;const p=s!=null&&(s.length>0||this.lineAnnotations.length>0)?s!==this.lineAnnotations:!1;if(!c&&gs(u,this.renderRange)&&!r&&!p&&(i!=null&&i===this.fileDiff||i==null&&!f))return!1;const{renderRange:b}=this;if(this.renderRange=u,this.deletionFile=e,this.additionFile=n,i!=null?this.fileDiff=i:e!=null&&n!=null&&f&&(h=!0,this.fileDiff=fi(e,n,this.options.parseDiffOptions)),s!=null&&this.setLineAnnotations(s),this.fileDiff==null)return!1;this.hunksRenderer.setOptions(this.getHunksRendererOptions(this.options)),this.hunksRenderer.setLineAnnotations(this.lineAnnotations);const{diffStyle:y="split",disableErrorHandling:_=!1,disableFileHeader:g=!1,overflow:v="scroll",themeType:k="system"}=this.options;if(g&&(this.headerElement!=null&&(this.headerElement.remove(),this.headerElement=void 0,this.lastRenderedHeaderHTML=void 0),this.clearHeaderSlots()),l=this.getOrCreateFileContainer(l,a),c){this.removeRenderedCode(),this.clearAuxiliaryNodes();try{const C=this.hunksRenderer.renderDiff(this.fileDiff,ha);C!=null&&this.applyThemeState(l,C.themeStyles,k,C.baseThemeType),C?.headerElement!=null&&this.applyHeaderToDOM(C.headerElement,l),this.renderSeparators([]),this.injectUnsafeCSS()}catch(C){if(_)throw C;console.error(C),C instanceof Error&&this.applyErrorToDOM(C,l)}return o||this.emitPostRender(),!0}try{const C=this.getOrCreatePreNode(l);if(!(this.canPartiallyRender(r,p,f||h)&&this.applyPartialRender({previousRenderRange:b,renderRange:u}))){const w=this.hunksRenderer.renderDiff(this.fileDiff,u);if(w==null)return this.workerManager?.isInitialized()===!1&&this.workerManager.initialize().then(()=>this.rerender()),!1;this.applyThemeState(l,w.themeStyles,k,w.baseThemeType),w.headerElement!=null&&this.applyHeaderToDOM(w.headerElement,l),w.additionsContentAST!=null||w.deletionsContentAST!=null||w.unifiedContentAST!=null?this.applyHunksToDOM(C,w):this.pre!=null&&(this.pre.remove(),this.pre=void 0),this.renderSeparators(w.hunkData)}this.applyBuffers(C,u),this.injectUnsafeCSS(),this.renderAnnotations(),this.renderGutterUtility(),this.interactionManager.setup(C),this.resizeManager.setup(C,v==="wrap"),v==="scroll"&&y==="split"?this.scrollSyncManager.setup(C,this.codeDeletions,this.codeAdditions):this.scrollSyncManager.cleanUp()}catch(C){if(_)throw C;console.error(C),C instanceof Error&&this.applyErrorToDOM(C,l)}return o||this.emitPostRender(),!0}emitPostRender(){this.fileContainer!=null&&this.options.onPostRender?.(this.fileContainer,this)}removeRenderedCode(){this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferBefore?.remove(),this.bufferBefore=void 0,this.bufferAfter?.remove(),this.bufferAfter=void 0,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0,this.pre?.remove(),this.pre=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0}clearAuxiliaryNodes(){for(const{element:e}of this.separatorCache.values())e.remove();this.separatorCache.clear();for(const{element:e}of this.annotationCache.values())e.remove();this.annotationCache.clear(),this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0}renderPlaceholder(e){if(this.fileContainer==null)return!1;if(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.placeHolder.style.setProperty("height",`${e}px`),!0}cleanChildNodes(){this.resizeManager.cleanUp(),this.scrollSyncManager.cleanUp(),this.interactionManager.cleanUp(),this.bufferAfter?.remove(),this.bufferBefore?.remove(),this.codeAdditions?.remove(),this.codeDeletions?.remove(),this.codeUnified?.remove(),this.errorWrapper?.remove(),this.headerElement?.remove(),this.gutterUtilityContent?.remove(),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.pre?.remove(),this.spriteSVG?.remove(),this.themeCSSStyle?.remove(),this.unsafeCSSStyle?.remove(),this.bufferAfter=void 0,this.bufferBefore=void 0,this.codeAdditions=void 0,this.codeDeletions=void 0,this.codeUnified=void 0,this.errorWrapper=void 0,this.headerElement=void 0,this.gutterUtilityContent=void 0,this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.pre=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.lastRenderedHeaderHTML=void 0,this.lastRowCount=void 0}renderSeparators(e){const{hunkSeparators:n}=this.options;if(this.isContainerManaged||this.fileContainer==null||typeof n!="function"){for(const{element:r}of this.separatorCache.values())r.remove();this.separatorCache.clear();return}const i=new Map(this.separatorCache);for(const r of e){const o=r.slotName;let s=this.separatorCache.get(o);if(s==null||!Mh(r,s.hunkData)){s?.element.remove();const l=document.createElement("div");l.style.display="contents",l.slot=r.slotName;const a=n(r,this);a!=null&&l.appendChild(a),this.fileContainer.appendChild(l),s={element:l,hunkData:r},this.separatorCache.set(o,s)}i.delete(o)}for(const[r,{element:o}]of i.entries())this.separatorCache.delete(r),o.remove()}renderAnnotations(){if(this.isContainerManaged||this.fileContainer==null){for(const{element:i}of this.annotationCache.values())i.remove();this.annotationCache.clear();return}const e=new Map(this.annotationCache),{renderAnnotation:n}=this.options;if(n!=null&&this.lineAnnotations.length>0)for(const[i,r]of this.lineAnnotations.entries()){const o=`${i}-${vt(r)}`;let s=this.annotationCache.get(o);if(s==null||!Oh(r,s.annotation)){s?.element.remove();const l=n(r);if(l==null)continue;s={element:Qf(vt(r)),annotation:r},s.element.appendChild(l),this.fileContainer.appendChild(s.element),this.annotationCache.set(o,s)}e.delete(o)}for(const[i,{element:r}]of e.entries())this.annotationCache.delete(i),r.remove()}renderGutterUtility(){const e=this.options.renderGutterUtility??this.options.renderHoverUtility;if(this.fileContainer==null||e==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}const n=e(this.interactionManager.getHoveredLine);if(n!=null&&this.gutterUtilityContent!=null)return;if(n==null){this.gutterUtilityContent?.remove(),this.gutterUtilityContent=void 0;return}const i=Jf();i.appendChild(n),this.fileContainer.appendChild(i),this.gutterUtilityContent=i}getOrCreateFileContainer(e,n){const i=this.fileContainer;if(this.fileContainer=e??this.fileContainer??document.createElement(Bt),i!=null&&i!==this.fileContainer&&(this.lastRenderedHeaderHTML=void 0,this.headerElement=void 0),n!=null&&this.fileContainer.parentNode!==n&&n.appendChild(this.fileContainer),this.spriteSVG==null){const r=document.createElement("div");r.innerHTML=qf;const o=r.firstChild;o instanceof SVGElement&&(this.spriteSVG=o,this.fileContainer.shadowRoot?.appendChild(this.spriteSVG))}return this.fileContainer}getFileContainer(){return this.fileContainer}getOrCreatePreNode(e){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&&(n.appendChild(this.pre),this.appliedPreAttributes=void 0),this.placeHolder?.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){this.cleanupErrorWrapper(),this.placeHolder?.remove(),this.placeHolder=void 0;const{fileDiff:i}=this,r=Ye(e);if(r!==this.lastRenderedHeaderHTML){const c=document.createElement("div");c.innerHTML=r;const u=c.firstElementChild;if(!(u instanceof HTMLElement))return;this.headerElement!=null?n.shadowRoot?.replaceChild(u,this.headerElement):n.shadowRoot?.prepend(u),this.headerElement=u,this.lastRenderedHeaderHTML=r}if(this.isContainerManaged||i==null)return;const{renderCustomHeader:o,renderHeaderPrefix:s,renderHeaderMetadata:l}=this.options;if(o!=null){const c=o(i)??void 0;this.headerCustom=this.upsertHeaderSlotElement(n,this.headerCustom,mi,c),this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0;return}const a=s?.(i)??void 0,d=l?.(i)??void 0;this.headerPrefix=this.upsertHeaderSlotElement(n,this.headerPrefix,hi,a),this.headerMetadata=this.upsertHeaderSlotElement(n,this.headerMetadata,pi,d),this.headerCustom?.remove(),this.headerCustom=void 0}clearHeaderSlots(){this.headerPrefix?.remove(),this.headerMetadata?.remove(),this.headerCustom?.remove(),this.headerPrefix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0}upsertHeaderSlotElement(e,n,i,r){if(r==null){n?.remove();return}const o=n??this.createHeaderSlotElement(i);return n==null&&e.appendChild(o),this.replaceHeaderSlotContent(o,r),o}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(){const{unsafeCSS:e}=this.options,n=this.fileContainer?.shadowRoot;if(n!=null){if(e==null||e===""){this.unsafeCSSStyle!=null&&(this.unsafeCSSStyle.remove(),this.unsafeCSSStyle=void 0),this.appliedUnsafeCSS=void 0;return}this.unsafeCSSStyle?.parentNode===n&&this.appliedUnsafeCSS===e||(this.unsafeCSSStyle??=Yf(),this.unsafeCSSStyle.parentNode!==n&&n.appendChild(this.unsafeCSSStyle),this.unsafeCSSStyle.textContent=eh(e),this.appliedUnsafeCSS=e)}}applyThemeState(e,n,i,r){const o=e.shadowRoot??e.attachShadow({mode:"open"}),s=r??i;this.themeCSSStyle?.parentNode===o&&this.appliedThemeCSS?.themeStyles===n&&this.appliedThemeCSS.themeType===s||(this.themeCSSStyle=rh({shadowRoot:o,currentNode:this.themeCSSStyle,themeCSS:th(n,s)}),this.appliedThemeCSS=this.themeCSSStyle!=null?{themeStyles:n,themeType:s,baseThemeType:r}:void 0)}applyHunksToDOM(e,n){const{overflow:i="scroll"}=this.options,r=(this.options.hunkSeparators??"line-info")==="line-info",o=i==="wrap"?n.rowCount:void 0;this.cleanupErrorWrapper(),this.applyPreNodeAttributes(e,n);let s=!1;const l=[],a=this.hunksRenderer.renderCodeAST("unified",n),d=this.hunksRenderer.renderCodeAST("deletions",n),c=this.hunksRenderer.renderCodeAST("additions",n);a!=null?(s=this.codeUnified==null||this.codeAdditions!=null||this.codeDeletions!=null,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0,this.codeUnified=On({code:this.codeUnified,columnType:"unified",rowSpan:o,containerSize:r}),this.codeUnified.innerHTML=this.hunksRenderer.renderPartialHTML(a),l.push(this.codeUnified)):d!=null||c!=null?(d!=null?(s=this.codeDeletions==null||this.codeUnified!=null,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions=On({code:this.codeDeletions,columnType:"deletions",rowSpan:o,containerSize:r}),this.codeDeletions.innerHTML=this.hunksRenderer.renderPartialHTML(d),l.push(this.codeDeletions)):(this.codeDeletions?.remove(),this.codeDeletions=void 0),c!=null?(s=s||this.codeAdditions==null||this.codeUnified!=null,this.codeUnified?.remove(),this.codeUnified=void 0,this.codeAdditions=On({code:this.codeAdditions,columnType:"additions",rowSpan:o,containerSize:r}),this.codeAdditions.innerHTML=this.hunksRenderer.renderPartialHTML(c),l.push(this.codeAdditions)):(this.codeAdditions?.remove(),this.codeAdditions=void 0)):(this.codeUnified?.remove(),this.codeUnified=void 0,this.codeDeletions?.remove(),this.codeDeletions=void 0,this.codeAdditions?.remove(),this.codeAdditions=void 0),l.length===0?e.textContent="":s&&e.replaceChildren(...l),this.lastRowCount=n.rowCount}applyPartialRender({previousRenderRange:e,renderRange:n}){const{pre:i,codeUnified:r,codeAdditions:o,codeDeletions:s,options:{diffStyle:l="split"}}=this;if(i==null||e==null||n==null||!Number.isFinite(e.totalLines)||!Number.isFinite(n.totalLines)||this.lastRowCount==null)return!1;const a=this.getCodeColumns(l,r,s,o);if(a==null)return!1;const d=e.startingLine,c=n.startingLine,u=d+e.totalLines,f=c+n.totalLines,h=Math.max(d,c),p=Math.min(u,f);if(p<=h)return!1;const b=Math.max(0,h-d),y=Math.max(0,u-p),_=this.trimColumns({columns:a,trimStart:b,trimEnd:y,previousStart:d,overlapStart:h,overlapEnd:p,diffStyle:l});if(_<0)throw new Error("applyPartialRender: failed to trim to overlap");if(this.lastRowCount<_)throw new Error("applyPartialRender: trimmed beyond DOM row count");let g=this.lastRowCount-_;const v=(E,L)=>{if(!(L<=0||this.fileDiff==null))return this.hunksRenderer.renderDiff(this.fileDiff,{startingLine:E,totalLines:L,bufferBefore:0,bufferAfter:0})},k=v(c,Math.max(h-c,0));if(k==null&&c<h)return!1;const C=v(p,Math.max(f-p,0));if(C==null&&f>p)return!1;const w=(E,L)=>{if(E!=null){if(l==="unified"&&!Array.isArray(a))this.insertPartialHTML(l,a,E,L);else if(l==="split"&&Array.isArray(a))this.insertPartialHTML(l,a,E,L);else throw new Error("FileDiff.applyPartialRender.applyChunk: invalid chunk application");g+=E.rowCount}};return this.cleanupErrorWrapper(),w(k,"afterbegin"),w(C,"beforeend"),this.lastRowCount!==g&&(this.applyRowSpan(l,a,g),this.lastRowCount=g),!0}insertPartialHTML(e,n,i,r){if(e==="unified"&&!Array.isArray(n)){const o=this.hunksRenderer.renderCodeAST("unified",i);this.renderPartialColumn(n,o,r)}else if(e==="split"&&Array.isArray(n)){const o=this.hunksRenderer.renderCodeAST("deletions",i),s=this.hunksRenderer.renderCodeAST("additions",i);this.renderPartialColumn(n[0],o,r),this.renderPartialColumn(n[1],s,r)}else throw new Error("FileDiff.insertPartialHTML: Invalid argument composition")}renderPartialColumn(e,n,i){if(e==null||n==null)return;const r=zr(n[0]),o=zr(n[1]);if(r==null||o==null)throw new Error("FileDiff.insertPartialHTML: Unexpected AST structure");const s=o.at(0);i==="beforeend"&&s?.type==="element"&&typeof s.properties["data-buffer-size"]=="number"&&this.mergeBuffersIfNecessary(s.properties["data-buffer-size"],e.content.children[e.content.children.length-1],e.gutter.children[e.gutter.children.length-1],r,o,!0);const l=o.at(-1);i==="afterbegin"&&l?.type==="element"&&typeof l.properties["data-buffer-size"]=="number"&&this.mergeBuffersIfNecessary(l.properties["data-buffer-size"],e.content.children[0],e.gutter.children[0],r,o,!1),e.gutter.insertAdjacentHTML(i,this.hunksRenderer.renderPartialHTML(r)),e.content.insertAdjacentHTML(i,this.hunksRenderer.renderPartialHTML(o))}mergeBuffersIfNecessary(e,n,i,r,o,s){if(!(n instanceof HTMLElement)||!(i instanceof HTMLElement))return;const l=this.getBufferSize(n.dataset);l!=null&&(s?(r.shift(),o.shift()):(r.pop(),o.pop()),this.updateBufferSize(n,l+e),this.updateBufferSize(i,l+e))}applyRowSpan(e,n,i){const r=o=>{o!=null&&(o.gutter.style.setProperty("grid-row",`span ${i}`),o.content.style.setProperty("grid-row",`span ${i}`))};if(e==="unified"&&!Array.isArray(n))r(n);else if(e==="split"&&Array.isArray(n))r(n[0]),r(n[1]);else throw new Error("dun fuuuuked up")}trimColumnRows(e,n,i){let r=0,o=0,s=0,l=!1;const a=i>=0;if(e==null)return 0;const d=Array.from(e.content.children),c=Array.from(e.gutter.children);if(d.length!==c.length)throw new Error("FileDiff.trimColumnRows: columns do not match");for(;s<d.length&&!(n<=0&&!a&&!l);){const u=c[s],f=d[s];if(s++,!(u instanceof HTMLElement)||!(f instanceof HTMLElement))throw console.error({gutterElement:u,contentElement:f}),new Error("FileDiff.trimColumnRows: invalid row elements");if(l&&(l=!1,u.dataset.gutterBuffer==="annotation"&&"lineAnnotation"in f.dataset||u.dataset.gutterBuffer==="metadata"&&"noNewline"in f.dataset)){u.remove(),f.remove(),o++;continue}if("lineIndex"in u.dataset&&"lineIndex"in f.dataset){(n>0||a&&r>=i)&&(u.remove(),f.remove(),n>0&&(n--,n===0&&(l=!0)),o++),r++;continue}if("separator"in u.dataset&&"separator"in f.dataset){(n>0||a&&r>=i)&&(u.remove(),f.remove(),o++);continue}if(u.dataset.gutterBuffer==="annotation"&&"lineAnnotation"in f.dataset){(n>0||a&&r>=i)&&(u.remove(),f.remove(),o++);continue}if(u.dataset.gutterBuffer==="metadata"&&"noNewline"in f.dataset){(n>0||a&&r>=i)&&(u.remove(),f.remove(),o++);continue}if(u.dataset.gutterBuffer==="buffer"&&"contentBuffer"in f.dataset){const h=this.getBufferSize(f.dataset);if(h==null)throw new Error("FileDiff.trimColumnRows: invalid element");if(n>0){const p=Math.min(n,h),b=h-p;b>0?(this.updateBufferSize(u,b),this.updateBufferSize(f,b),o+=p):(u.remove(),f.remove(),o+=h),n-=p}else if(a){const p=r,b=r+h-1;if(i<=p)u.remove(),f.remove(),o+=h;else if(i<=b){const y=b-i+1,_=h-y;this.updateBufferSize(u,_),this.updateBufferSize(f,_),o+=y}}r+=h;continue}throw console.error({gutterElement:u,contentElement:f}),new Error("FileDiff.trimColumnRows: unknown row elements")}return o}trimColumns({columns:e,diffStyle:n,overlapEnd:i,overlapStart:r,previousStart:o,trimEnd:s,trimStart:l}){const a=Math.max(0,r-o),d=i-o;if(d<0)throw new Error("FileDiff.trimColumns: overlap ends before previous");const c=l>0,u=s>0;if(!c&&!u)return 0;const f=c?a:0,h=u?d:-1;if(n==="unified"&&!Array.isArray(e))return this.trimColumnRows(e,f,h);if(n==="split"&&Array.isArray(e)){const p=this.trimColumnRows(e[0],f,h),b=this.trimColumnRows(e[1],f,h);if(e[0]!=null&&e[1]!=null&&p!==b)throw new Error("FileDiff.trimColumns: split columns out of sync");return e[0]!=null?p:b}else throw console.error({diffStyle:n,columns:e}),new Error("FileDiff.trimColumns: Invalid columns for diffType")}getBufferSize(e){const n=Number.parseInt(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)`)}getCodeColumns(e,n,i,r){function o(s){if(s==null)return;const l=s.children[0],a=s.children[1];if(!(!(l instanceof HTMLElement)||!(a instanceof HTMLElement)||l.dataset.gutter==null||a.dataset.content==null))return{gutter:l,content:a}}if(e==="unified")return o(n);{const s=o(i),l=o(r);return s!=null||l!=null?[s,l]:void 0}}applyBuffers(e,n){const{disableVirtualizationBuffers:i=!1}=this.options;if(i||n==null){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)}applyPreNodeAttributes(e,{additionsContentAST:n,deletionsContentAST:i,totalLines:r},o){const{diffIndicators:s="bars",disableBackground:l=!1,disableLineNumbers:a=!1,overflow:d="scroll",diffStyle:c="split"}=this.options,u={type:"diff",diffIndicators:s,disableBackground:l,disableLineNumbers:a,overflow:d,split:c==="unified"?!1:n!=null&&i!=null,totalLines:r,customProperties:o};Xf(u,this.appliedPreAttributes)||(ih(e,u),this.appliedPreAttributes=u)}applyErrorToDOM(e,n){this.cleanupErrorWrapper();const i=this.getOrCreatePreNode(n);i.innerHTML="",i.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;const r=n.shadowRoot??n.attachShadow({mode:"open"});this.errorWrapper??=document.createElement("div"),this.errorWrapper.dataset.errorWrapper="",this.errorWrapper.innerHTML="",r.appendChild(this.errorWrapper);const o=document.createElement("div");o.dataset.errorMessage="",o.innerText=e.message,this.errorWrapper.appendChild(o);const s=document.createElement("pre");s.dataset.errorStack="",s.innerText=e.stack??"No Error Stack",this.errorWrapper.appendChild(s)}cleanupErrorWrapper(){this.errorWrapper?.remove(),this.errorWrapper=void 0}};function Gh({fileDiff:t,oldFile:e,newFile:n}){return t!=null&&t.hunks.length>0||e!=null||n!=null}function jh({fileDiff:t,oldFile:e,newFile:n}){return t!=null||e!=null||n!=null}function Fh(t,e,n=!1){return!n&&t==null&&e}function Bh(t,e,n=!1){return t==null&&e&&!n}function zr(t){if(!(t==null||t.type!=="element"))return t.children??[]}function zh({hunkIndex:t,lineIndex:e,conflictIndex:n}){return`merge-conflict-action-${t}-${e}-${n}`}function Wh(t,e){const n=e.hunks[t.hunkIndex];if(n!=null)return{hunkIndex:t.hunkIndex,lineIndex:qh(n,t.startContentIndex)}}function qh(t,e){let n=t.unifiedLineStart;for(let i=0;i<e;i++){const r=t.hunkContent[i];n+=r.type==="context"?r.lines:r.deletions+r.additions}return n}function Xh(t,e){const n={...ua,...e};return n.hunkSeparatorHeight=Kh(t,e?.hunkSeparatorHeight),n}function Kh(t,e){if(e!=null)return e;switch(t){case"simple":return 4;case"metadata":case"line-info":case"line-info-basic":case"custom":return 32}}let Qh=-1;var Jh=class extends ws{__id=`little-virtualized-file-diff:${++Qh}`;top;height=0;metrics;heightCache=new Map;isVisible=!1;isSetup=!1;virtualizer;constructor(t,e,n,i,r=!1){super(t,i,r);const{hunkSeparators:o="line-info"}=this.options;this.virtualizer=e,this.metrics=Xh(typeof o=="function"?"custom":o,n)}getLineHeight(t,e=!1){const n=this.heightCache.get(t);if(n!=null)return n;const i=e?2:1;return this.metrics.lineHeight*i}setOptions(t){if(t==null)return;const e=this.options.diffStyle,n=this.options.overflow,i=this.options.collapsed;super.setOptions(t),(e!==this.options.diffStyle||n!==this.options.overflow||i!==this.options.collapsed)&&(this.heightCache.clear(),this.computeApproximateSize(),this.renderRange=void 0),this.virtualizer.instanceChanged(this)}reconcileHeights(){const{overflow:t="scroll"}=this.options;if(this.fileContainer!=null&&(this.top=this.virtualizer.getOffsetInScrollContainer(this.fileContainer)),this.fileContainer==null||this.fileDiff==null){this.height=0;return}if(t==="scroll"&&this.lineAnnotations.length===0&&!this.virtualizer.config.resizeDebugging)return;const e=this.getDiffStyle();let n=!1;const i=e==="split"?[this.codeDeletions,this.codeAdditions]:[this.codeUnified];for(const r of i){if(r==null)continue;const o=r.children[1];if(o instanceof HTMLElement)for(const s of o.children){if(!(s instanceof HTMLElement))continue;const l=s.dataset.lineIndex;if(l==null)continue;const a=Zh(l,e);let d=s.getBoundingClientRect().height,c=!1;s.nextElementSibling instanceof HTMLElement&&("lineAnnotation"in s.nextElementSibling.dataset||"noNewline"in s.nextElementSibling.dataset)&&("noNewline"in s.nextElementSibling.dataset&&(c=!0),d+=s.nextElementSibling.getBoundingClientRect().height);const u=this.getLineHeight(a,c);d!==u&&(n=!0,d===this.metrics.lineHeight*(c?2:1)?this.heightCache.delete(a):this.heightCache.set(a,d))}}(n||this.virtualizer.config.resizeDebugging)&&this.computeApproximateSize()}onRender=t=>this.fileContainer==null?!1:(t&&(this.top=this.virtualizer.getOffsetInScrollContainer(this.fileContainer)),this.render());cleanUp(){this.fileContainer!=null&&this.virtualizer.disconnect(this.fileContainer),this.isSetup=!1,super.cleanUp()}expandHunk=(t,e,n)=>{this.hunksRenderer.expandHunk(t,e,n),this.computeApproximateSize(),this.renderRange=void 0,this.virtualizer.instanceChanged(this)};setVisibility(t){this.fileContainer!=null&&(this.renderRange=void 0,t&&!this.isVisible?(this.top=this.virtualizer.getOffsetInScrollContainer(this.fileContainer),this.isVisible=!0):!t&&this.isVisible&&(this.isVisible=!1,this.rerender()))}computeApproximateSize(){const t=this.height===0;if(this.height=0,this.fileDiff==null)return;const{disableFileHeader:e=!1,expandUnchanged:n=!1,collapsed:i=!1,collapsedContextThreshold:r=Ke,hunkSeparators:o="line-info"}=this.options,{diffHeaderHeight:s,fileGap:l,hunkSeparatorHeight:a}=this.metrics,d=this.getDiffStyle(),c=o!=="simple"&&o!=="metadata"&&o!=="line-info-basic"?l:0;if(e?o!=="simple"&&o!=="metadata"&&(this.height+=l):this.height+=s,!i&&(rn({diff:this.fileDiff,diffStyle:d,expandedHunks:n?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:r,callback:({hunkIndex:u,collapsedBefore:f,collapsedAfter:h,deletionLine:p,additionLine:b})=>{const y=b!=null?b.splitLineIndex:p.splitLineIndex,_=b!=null?b.unifiedLineIndex:p.unifiedLineIndex,g=(b?.noEOFCR??!1)||(p?.noEOFCR??!1);f>0&&(u>0&&(this.height+=c),this.height+=a+c),this.height+=this.getLineHeight(d==="split"?y:_,g),h>0&&o!=="simple"&&(this.height+=c+a)}}),this.fileDiff.hunks.length>0&&(this.height+=l),this.fileContainer!=null&&this.virtualizer.config.resizeDebugging&&!t)){const u=this.fileContainer.getBoundingClientRect();u.height!==this.height?console.log("VirtualizedFileDiff.computeApproximateSize: computed height doesnt match",{name:this.fileDiff.name,elementHeight:u.height,computedHeight:this.height}):console.log("VirtualizedFileDiff.computeApproximateSize: computed height IS CORRECT")}}render({fileContainer:t,oldFile:e,newFile:n,fileDiff:i,...r}={}){const{isSetup:o}=this;if(this.fileDiff??=i??(e!=null&&n!=null?fi(e,n,this.options.parseDiffOptions):void 0),t=this.getOrCreateFileContainer(t),this.fileDiff==null)return console.error("VirtualizedFileDiff.render: attempting to virtually render when we dont have the correct data"),!1;if(o?this.top??=this.virtualizer.getOffsetInScrollContainer(t):(this.computeApproximateSize(),this.virtualizer.connect(t,this),this.top??=this.virtualizer.getOffsetInScrollContainer(t),this.isVisible=this.virtualizer.isInstanceVisible(this.top,this.height),this.isSetup=!0),!this.isVisible)return this.renderPlaceholder(this.height);const s=this.virtualizer.getWindowSpecs(),l=this.computeRenderRangeFromWindow(this.fileDiff,this.top,s);return super.render({fileDiff:this.fileDiff,fileContainer:t,renderRange:l,oldFile:e,newFile:n,...r})}getDiffStyle(){return this.options.diffStyle??"split"}getExpandedRegion(t,e,n){if(n<=0||t)return{fromStart:0,fromEnd:0,collapsedLines:Math.max(n,0),renderAll:!1};const{expandUnchanged:i=!1,collapsedContextThreshold:r=Ke}=this.options;if(i||n<=r)return{fromStart:n,fromEnd:0,collapsedLines:0,renderAll:!0};const o=this.hunksRenderer.getExpandedHunk(e),s=Math.min(Math.max(o.fromStart,0),n),l=Math.min(Math.max(o.fromEnd,0),n),a=s+l,d=a>=n;return{fromStart:s,fromEnd:l,collapsedLines:Math.max(n-a,0),renderAll:d}}getExpandedLineCount(t,e){let n=0;if(t.isPartial){for(const r of t.hunks)n+=e==="split"?r.splitLineCount:r.unifiedLineCount;return n}for(const[r,o]of t.hunks.entries()){const s=e==="split"?o.splitLineCount:o.unifiedLineCount;n+=s;const l=Math.max(o.collapsedBefore,0),{fromStart:a,fromEnd:d,renderAll:c}=this.getExpandedRegion(t.isPartial,r,l);l>0&&(n+=c?l:a+d)}const i=t.hunks.at(-1);if(i!=null&&Yh(t)){const r=t.additionLines.length-(i.additionLineIndex+i.additionCount),o=t.deletionLines.length-(i.deletionLineIndex+i.deletionCount);if(i!=null&&r!==o)throw new Error(`VirtualizedFileDiff: trailing context mismatch (additions=${r}, deletions=${o}) for ${t.name}`);const s=Math.min(r,o);if(i!=null&&s>0){const{fromStart:l,renderAll:a}=this.getExpandedRegion(t.isPartial,t.hunks.length,s);n+=a?s:l}}return n}computeRenderRangeFromWindow(t,e,{top:n,bottom:i}){const{disableFileHeader:r=!1,expandUnchanged:o=!1,collapsedContextThreshold:s=Ke,hunkSeparators:l="line-info"}=this.options,{diffHeaderHeight:a,fileGap:d,hunkLineCount:c,hunkSeparatorHeight:u,lineHeight:f}=this.metrics,h=this.getDiffStyle(),p=this.height,b=this.getExpandedLineCount(t,h),y=r?d:a;if(e<n-p||e>i)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:p-y-d};if(b<=c||t.hunks.length===0)return{startingLine:0,totalLines:c,bufferBefore:0,bufferAfter:0};const _=Math.ceil(Math.max(i-n,0)/f),g=Math.ceil(_/c)*c+c,v=g/c,k=v,C=[],w=(n+i)/2,E=l==="simple"||l==="metadata"||l==="line-info-basic"?0:d;let L=e+y,A=0,I,P,D;if(rn({diff:t,diffStyle:h,expandedHunks:o?!0:this.hunksRenderer.getExpandedHunksMap(),collapsedContextThreshold:s,callback:({hunkIndex:Ge,collapsedBefore:ot,collapsedAfter:kt,deletionLine:Re,additionLine:ye})=>{const H=ye!=null?ye.splitLineIndex:Re.splitLineIndex,ee=ye!=null?ye.unifiedLineIndex:Re.unifiedLineIndex,te=(ye?.noEOFCR??!1)||(Re?.noEOFCR??!1);let we=ot>0?u+E+(Ge>0?E:0):0;Ge===0&&l==="simple"&&(we=0),L+=we;const ce=A%c===0;if(ce&&(C.push(L-(e+y+we)),D!=null)){if(D<=0)return!0;D--}const oe=this.getLineHeight(h==="split"?H:ee,te),st=Math.floor(A/c);return L>n-oe&&L<i&&(I??=st),P==null&&L+oe>w&&(P=st),D==null&&L>=i&&ce&&(D=k),A++,L+=oe,kt>0&&l!=="simple"&&(L+=u+E),!1}}),I==null)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:p-y-d};const O=C.length;P??=I;const $=Math.round(P-v/2),Z=Math.max(0,O-v),re=Math.max(0,Math.min($,Z)),V=re*c,G=$<0?g+$*c:g,B=C[re]??0,Le=re+G/c;return{startingLine:V,totalLines:G,bufferBefore:B,bufferAfter:Le<C.length?p-y-C[Le]-d:p-(L-e)-d}}};function Yh(t){const e=t.hunks.at(-1);return e==null||t.isPartial||t.additionLines.length===0||t.deletionLines.length===0?!1:e.additionLineIndex+e.additionCount<t.additionLines.length||e.deletionLineIndex+e.deletionCount<t.deletionLines.length}function Zh(t,e){const[n,i]=t.split(",").map(Number);return e==="split"?i:n}function ks(t,e,n=!1){const i=hc({name:t,variablePrefix:ae("global"),variableDefaults:e,fontStyle:n});Ri(t,()=>Promise.resolve(i))}function Wr(t,e,n){if(t===e||t==null||e==null)return t===e;const i=new Set(n),r=Object.keys(t),o=new Set(Object.keys(e));for(const s of r)if(o.delete(s),!i.has(s)&&(!(s in e)||t[s]!==e[s]))return!1;for(const s of Array.from(o))if(!i.has(s))return!1;return!0}function ep(t,e){const n=t?.theme??ve,i=e?.theme??ve,r=qr(t),o=qr(e);return bs(n,i)&&Wr(t,e,["theme","parseDiffOptions"])&&Wr(r,o)}function qr(t){if(t!=null&&"parseDiffOptions"in t)return t.parseDiffOptions}const tp={position:"absolute",top:0,bottom:0,textAlign:"center"},np={display:"contents"};function Xr(){return null}function ip(t,e){return typeof window>"u"&&e!=null?S.jsxs(S.Fragment,{children:[S.jsx("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:e}}),t]}):S.jsx(S.Fragment,{children:t})}const rp=ie.createContext(void 0);function op(){return ie.useContext(rp)}const sp=ie.createContext(void 0);function ap(t){const e=ie.useRef(t);return ie.useInsertionEffect(()=>void(e.current=t)),ie.useCallback((...n)=>e.current(...n),[])}function lp({fileDiff:t,actions:e,renderCustomHeader:n,renderHeaderPrefix:i,renderHeaderMetadata:r,renderAnnotation:o,renderGutterUtility:s,renderHoverUtility:l,renderMergeConflictUtility:a,lineAnnotations:d,getHoveredLine:c,getInstance:u}){const f=s??l,h=n?.(t),p=i?.(t),b=r?.(t);return S.jsxs(S.Fragment,{children:[h!=null?S.jsx("div",{slot:mi,children:h}):S.jsxs(S.Fragment,{children:[p!=null&&S.jsx("div",{slot:hi,children:p}),b!=null&&S.jsx("div",{slot:pi,children:b})]}),o!=null&&d?.map((y,_)=>S.jsx("div",{slot:vt(y),children:o(y)},_)),e!=null&&a!=null&&u!=null&&e.map(y=>{if(y==null)return;const _=dp(y,t);return S.jsx("div",{slot:_,style:np,children:a(y,u)},_)}),f!=null&&S.jsx("div",{slot:"gutter-utility-slot",style:tp,children:f(c)})]})}function dp(t,e){const n=Wh(t,e);return n!=null?zh({hunkIndex:n.hunkIndex,lineIndex:n.lineIndex,conflictIndex:t.conflictIndex}):void 0}const cp=typeof window>"u"?ie.useEffect:ie.useLayoutEffect;function up({fileDiff:t,options:e,lineAnnotations:n,selectedLines:i,prerenderedHTML:r,metrics:o,hasGutterRenderUtility:s,hasCustomHeader:l,disableWorkerPool:a}){const d=op(),c=ie.useContext(sp),u=ie.useRef(null),f=ap(h=>{if(h!=null){if(u.current!=null)throw new Error("useFileDiffInstance: An instance should not already exist when a node is created");d!=null?u.current=new Jh(Un({hasCustomHeader:l,hasGutterRenderUtility:s,options:e}),d,o,a?void 0:c,!0):u.current=new ws(Un({hasCustomHeader:l,hasGutterRenderUtility:s,options:e}),a?void 0:c,!0),u.current.hydrate({fileDiff:t,fileContainer:h,lineAnnotations:n,prerenderedHTML:r})}else{if(u.current==null)throw new Error("useFileDiffInstance: A FileDiff instance should exist when unmounting");u.current.cleanUp(),u.current=null}});return cp(()=>{const{current:h}=u;if(h==null)return;const p=Un({hasCustomHeader:l,hasGutterRenderUtility:s,options:e}),b=!ep(h.options,p);h.setOptions(p),h.render({forceRender:b,fileDiff:t,lineAnnotations:n}),i!==void 0&&h.setSelectedLines(i)}),{ref:f,getHoveredLine:ie.useCallback(()=>u.current?.getHoveredLine(),[])}}function Un({options:t,hasCustomHeader:e,hasGutterRenderUtility:n}){return n||e?{...t,renderCustomHeader:e?Xr:void 0,renderGutterUtility:n?Xr:void 0}:t}function fp({fileDiff:t,options:e,metrics:n,lineAnnotations:i,selectedLines:r,className:o,style:s,prerenderedHTML:l,renderAnnotation:a,renderCustomHeader:d,renderHeaderPrefix:c,renderHeaderMetadata:u,renderGutterUtility:f,renderHoverUtility:h,disableWorkerPool:p=!1}){const{ref:b,getHoveredLine:y}=up({fileDiff:t,options:e,metrics:n,lineAnnotations:i,selectedLines:r,prerenderedHTML:l,hasGutterRenderUtility:f!=null||h!=null,hasCustomHeader:d!=null,disableWorkerPool:p});return S.jsx(Bt,{ref:b,className:o,style:s,children:ip(lp({fileDiff:t,renderCustomHeader:d,renderHeaderPrefix:c,renderHeaderMetadata:u,renderAnnotation:a,renderGutterUtility:f,lineAnnotations:i,renderHoverUtility:h,getHoveredLine:y}),l)})}const Cs="epic-base16-light",Es="epic-base16-dark",hp=`
|
|
1876
|
-
[data-line-type='change-addition'] [data-column-content]::selection,
|
|
1877
|
-
[data-line-type='change-addition'] [data-column-content] *::selection {
|
|
1878
|
-
background: var(--highlight-added-selection);
|
|
1879
|
-
}
|
|
1880
|
-
|
|
1881
|
-
[data-line-type='change-deletion'] [data-column-content]::selection,
|
|
1882
|
-
[data-line-type='change-deletion'] [data-column-content] *::selection {
|
|
1883
|
-
background: var(--highlight-removed-selection);
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1886
|
-
[data-line-type='context'] [data-column-content]::selection,
|
|
1887
|
-
[data-line-type='context'] [data-column-content] *::selection,
|
|
1888
|
-
[data-line-type='context-expanded'] [data-column-content]::selection,
|
|
1889
|
-
[data-line-type='context-expanded'] [data-column-content] *::selection {
|
|
1890
|
-
background: var(--diffs-bg-selection);
|
|
1891
|
-
}
|
|
1892
|
-
`,Ss={foreground:"var(--base05)",background:"var(--base00)","token-link":"var(--base0D)","token-string":"var(--base0B)","token-comment":"var(--base03)","token-constant":"var(--base08)","token-keyword":"var(--base0A)","token-parameter":"var(--base08)","token-function":"var(--base0D)","token-string-expression":"var(--base0C)","token-punctuation":"var(--base0E)","token-inserted":"var(--diff-color-added)","token-deleted":"var(--diff-color-deleted)","token-changed":"var(--diff-color-modified)","ansi-green":"var(--diff-color-added)","ansi-red":"var(--diff-color-deleted)","ansi-blue":"var(--diff-color-modified)"};ks(Cs,Ss);ks(Es,Ss);function pp(t){return`${t.prevName??""}::${t.name}`}function mp(t){return t.prevName&&t.prevName!==t.name?`${t.prevName} -> ${t.name}`:t.name}function xs(t){switch(t.type){case"new":return"added";case"deleted":return"deleted";case"rename-pure":case"rename-changed":return"renamed";default:return"changed"}}function gp(t){switch(xs(t)){case"added":return"Added";case"deleted":return"Deleted";case"renamed":return"Renamed";default:return"Modified"}}function bp(t){switch(xs(t)){case"added":return"text-[var(--diff-color-added)]";case"deleted":return"text-[var(--diff-color-deleted)]";case"renamed":return"text-[var(--diff-color-renamed)]";case"changed":default:return"text-[var(--diff-color-modified)]"}}function vp(t){return t.hunks.reduce((e,n)=>({added:e.added+n.additionCount,deleted:e.deleted+n.deletionCount}),{added:0,deleted:0})}function Kr(t){return!t||t==="/dev/null"?void 0:t.replace(/^["']|["']$/g,"").replace(/^[ab]\//,"")}function _p(t){return{app1Path:Kr(t.prevName??t.name),app2Path:Kr(t.name??t.prevName)}}function yp(t){const e=t.hunks[0];return{app1Line:e?.deletionStart||e?.splitLineStart||1,app2Line:e?.additionStart||e?.splitLineStart||1}}function wp({fileDiff:t,app1Name:e,app2Name:n}){if(!e||!n)return null;const{app1Path:i,app2Path:r}=_p(t);if(!i||!r)return null;const{app1Line:o,app2Line:s}=yp(t),l="bg-background/80 border-border/80 hover:bg-background inline-flex h-6 cursor-pointer items-center justify-center rounded border",a=Ft(l,"w-11 px-1.5 font-mono text-[10px] leading-none uppercase"),d=Ft(l,"text-foreground w-6");return S.jsxs("div",{className:"flex items-center gap-1",onClick:c=>c.stopPropagation(),onPointerDown:c=>c.stopPropagation(),children:[S.jsx(Ct,{appFile:`${i},${o},1`,appName:e,className:a,children:"App 1"}),S.jsxs("div",{className:"display-alt-down flex items-center gap-1",children:[S.jsx(Ct,{appFile:i,appName:e,syncTo:{appFile:r,appName:n},className:d,children:S.jsx(he,{name:"ArrowLeft",title:"Copy app 2 file to app 1 (Option+Command to sync without opening)"})}),S.jsx(Ct,{appFile:r,appName:n,syncTo:{appFile:i,appName:e},className:d,children:S.jsx(he,{name:"ArrowRight",title:"Copy app 1 file to app 2 (Option+Command to sync without opening)"})})]}),S.jsx(Ct,{appFile:`${r},${s},1`,appName:n,className:a,children:"App 2"})]})}function kp({app1:t,app2:e}){const n=ta(),i=n.find(o=>o.name===t),r=n.find(o=>o.name===e);return ia({watchPaths:[i?.fullPath,r?.fullPath].filter(Boolean)}),null}function jp({userHasAccessPromise:t,diff:e,allApps:n}){return S.jsx(Ls,{fallbackRender:()=>S.jsx("div",{className:"w-full p-12",children:S.jsxs("div",{className:"flex w-full flex-col gap-4 text-center",children:[S.jsx("p",{className:"text-2xl font-bold",children:"Error"}),S.jsx("p",{className:"text-lg",children:"There was an error loading the user access."})]})}),children:S.jsx(ie.Suspense,{fallback:S.jsx("div",{className:"flex items-center justify-center p-8",children:S.jsx(Gn,{content:"Loading user access",children:S.jsx(he,{name:"Refresh",className:"animate-spin"})})}),children:S.jsx(Yr,{resolve:t,children:i=>i?S.jsx(Cp,{diff:e,allApps:n}):S.jsxs("div",{className:"w-full p-12",children:[S.jsxs("div",{className:"flex w-full flex-col gap-4 text-center",children:[S.jsx("p",{className:"text-2xl font-bold",children:"Access Denied"}),S.jsx("p",{className:"text-lg",children:"You must login or register for the workshop to view the diff."})]}),S.jsx("div",{className:"h-16"}),S.jsx("p",{className:"pb-4",children:"Check out this video to see how the diff tab works."}),S.jsx(na,{url:"https://www.epicweb.dev/tips/epic-workshop-diff-tab-demo"})]})})})})}function Cp({diff:t,allApps:e}){const n=Ks(),[i]=Qs(),r=new URLSearchParams(i);r.set("forceFresh","diff");const o=Js(),s=Xs.useSpinDelay(o.state!=="idle",{delay:0,minDuration:1e3}),[l,a]=Ds.useState([]),d=ea(),c={theme:{light:Cs,dark:Es},themeType:d,diffStyle:"unified",hunkSeparators:"line-info",overflow:"scroll",disableFileHeader:!0,unsafeCSS:hp},u=[];for(const[f,h]of i.entries())f==="app1"||f==="app2"||u.push(S.jsx("input",{type:"hidden",name:f,value:h},f));return S.jsx(ie.Suspense,{fallback:S.jsx("div",{className:"flex items-center justify-center p-8",children:S.jsx(Gn,{content:"Loading diff",children:S.jsx(he,{name:"Refresh",className:"animate-spin"})})}),children:S.jsx(Yr,{resolve:t,errorElement:S.jsx("p",{className:"text-foreground-destructive p-6",children:"There was an error calculating the diff. Sorry."}),children:f=>{let h=[],p=!1;if(f.diffPatch)try{h=Hh(f.diffPatch).flatMap(b=>b.files)}catch{p=!0}return S.jsxs("div",{className:"flex h-full w-full flex-col",children:[S.jsxs("div",{className:"flex h-14 min-h-14 w-full overflow-x-hidden border-b",children:[S.jsx("div",{className:"border-r",children:S.jsx(Gn,{content:"Reload diff",children:S.jsx(Ys,{to:`.?${r}`,className:"flex h-full w-14 items-center justify-center",children:S.jsx(he,{name:"Refresh",className:Ft({"animate-spin":s})})})})}),S.jsxs(Zs,{onChange:b=>n(b.currentTarget),className:"scrollbar-thin scrollbar-thumb-scrollbar flex h-full flex-1 items-center overflow-x-auto",children:[u,S.jsx(Qr,{name:"app1",label:"App 1",className:"border-r",allApps:e,defaultValue:f.app1}),S.jsx(Qr,{name:"app2",label:"App 2",allApps:e,defaultValue:f.app2})]},`${f.app1}${f.app2}`)]}),S.jsx("div",{className:"scrollbar-thin scrollbar-thumb-scrollbar grow overflow-y-scroll",children:p?S.jsx("p",{className:"bg-foreground text-background m-5 inline-flex items-center justify-center px-1 py-0.5 font-mono text-sm uppercase",children:"There was a problem rendering the diff"}):h.length?S.jsx(As,{type:"multiple",value:l,onValueChange:a,className:"w-full",children:h.map((b,y)=>{const _=pp(b),g=vp(b);return S.jsxs(Is,{value:_,children:[S.jsxs(Ts,{className:"bg-background/95 hover:bg-background/90 supports-[backdrop-filter]:bg-background/80 supports-[backdrop-filter]:hover:bg-background/70 border-border/70 sticky top-0 z-10 flex w-full items-center gap-3 border-b backdrop-blur",children:[S.jsxs(Rs,{className:"group flex min-w-0 flex-1 items-center justify-between gap-3 px-4 py-2 pr-38 text-left",children:[S.jsxs("span",{className:"flex min-w-0 items-center gap-2 font-mono text-sm",children:[S.jsx(he,{name:gp(b),className:Ft("shrink-0",bp(b))}),S.jsx("span",{className:"truncate",children:mp(b)})]}),S.jsxs("span",{className:"text-muted-foreground flex shrink-0 items-center gap-2 font-mono text-xs",children:[S.jsxs("span",{className:"text-(--diff-color-deleted)",children:["-",g.deleted]}),S.jsxs("span",{className:"text-(--diff-color-added)",children:["+",g.added]}),S.jsx(he,{name:"TriangleDownSmall",className:"group-radix-state-open:rotate-180 transition","aria-hidden":!0})]})]}),S.jsx("div",{className:"absolute top-1/2 right-4 -translate-y-1/2",children:S.jsx(wp,{fileDiff:b,app1Name:f.app1,app2Name:f.app2})})]}),S.jsx(Ps,{className:"radix-state-closed:hidden border-b",children:S.jsx(fp,{fileDiff:b,options:c})})]},`${_}:${y}`)})}):f.diffPatch===""?S.jsx("p",{className:"bg-foreground text-background m-5 inline-flex items-center justify-center px-1 py-0.5 font-mono text-sm uppercase",children:"No changes"}):f.app1&&f.app2?S.jsx("p",{className:"bg-foreground text-background m-5 inline-flex items-center justify-center px-1 py-0.5 font-mono text-sm uppercase",children:"There was a problem generating the diff"}):S.jsx("p",{className:"bg-foreground text-background m-5 inline-flex items-center justify-center px-1 py-0.5 font-mono text-sm uppercase",children:"Select two apps to compare"})}),S.jsx(kp,{app1:f.app1,app2:f.app2})]})}})})}function Qr({name:t,label:e,className:n,allApps:i,defaultValue:r}){return S.jsxs(Ns,{name:t,defaultValue:r,children:[S.jsxs(Os,{className:Jr("radix-placeholder:text-muted-foreground flex h-full w-full max-w-[50%] items-center justify-between px-3 text-left focus-visible:outline-none",n),"aria-label":`Select ${e} for git Diff`,children:[S.jsxs("span",{className:"truncate",children:[e,":"," ",S.jsx(Ms,{placeholder:`Select ${e}`,className:"inline-block w-40 truncate"})]}),S.jsx($s,{className:"",children:S.jsx(he,{name:"TriangleDownSmall"})})]}),S.jsx(Vs,{children:S.jsxs(Hs,{position:"popper",align:"start",className:"bg-popover text-popover-foreground z-20 max-h-[50vh] lg:max-h-[70vh]",children:[S.jsx(Us,{className:"flex h-5 cursor-default items-center justify-center",children:S.jsx(he,{name:"ChevronUp"})}),S.jsx(Gs,{className:"p-3",children:S.jsxs(js,{children:[S.jsx(Fs,{className:"px-5 pb-3 font-mono uppercase",children:e}),i.map(o=>S.jsx(Ep,{value:o.name,children:o.displayName},o.name))]})}),S.jsx(Bs,{className:"flex h-5 cursor-default items-center justify-center",children:S.jsx(he,{name:"ChevronDown"})})]})})]})}const Ep=({ref:t,children:e,className:n,...i})=>S.jsxs(zs,{className:Jr("radix-disabled:text-muted-foreground radix-highlighted:opacity-100 radix-highlighted:outline-none radix-state-checked:opacity-100 relative flex cursor-pointer items-center rounded px-10 py-2 leading-none opacity-80 select-none",n),...i,ref:t,children:[S.jsx(Ws,{children:e}),S.jsx(qs,{className:"absolute left-0 inline-flex w-[25px] items-center justify-center",children:S.jsx(he,{name:"CheckSmall"})})]});export{jp as U};
|
|
1893
|
-
//# sourceMappingURL=diff-BwuP6Nso.js.map
|