@imenam/mcp-feature-analyzer 1.0.8 → 1.0.9

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.
Files changed (84) hide show
  1. package/README.md +350 -350
  2. package/dist/shared/reindent.d.ts +26 -0
  3. package/dist/shared/reindent.js +83 -0
  4. package/dist/src/version.d.ts +1 -1
  5. package/dist/src/version.js +1 -1
  6. package/gui/dist/assets/{angular-html-C2R3hRD7.js → angular-html-C803cuWd.js} +1 -1
  7. package/gui/dist/assets/{angular-ts-BCxzN3EZ.js → angular-ts-CvT6keay.js} +1 -1
  8. package/gui/dist/assets/{apl-BfLiwgkh.js → apl-BvfOmnA0.js} +1 -1
  9. package/gui/dist/assets/{astro-CpVQO1Pe.js → astro-BewkfgzR.js} +1 -1
  10. package/gui/dist/assets/{blade-DbKxA1nV.js → blade-D9BPuilJ.js} +1 -1
  11. package/gui/dist/assets/{c-eUEKSmkG.js → c-Bt2Wt4Hi.js} +1 -1
  12. package/gui/dist/assets/{chapel-bNREAWj3.js → chapel-CfZ6A-f4.js} +1 -1
  13. package/gui/dist/assets/{cobol-CKVyOjj2.js → cobol-DAJsUO2X.js} +1 -1
  14. package/gui/dist/assets/{coffee-CCZuc_2n.js → coffee-1RFHpyYJ.js} +1 -1
  15. package/gui/dist/assets/{cpp-BWuOzisK.js → cpp-DyK2AfZ-.js} +1 -1
  16. package/gui/dist/assets/{crystal-SHUiMXbU.js → crystal-yGa7SJEl.js} +1 -1
  17. package/gui/dist/assets/{css-BQINXaX2.js → css-DYaCl1On.js} +1 -1
  18. package/gui/dist/assets/{edge-Kw07bGHu.js → edge-DSJ7vFgm.js} +1 -1
  19. package/gui/dist/assets/{elixir-C-eRuXkX.js → elixir-BswHDqIq.js} +1 -1
  20. package/gui/dist/assets/{elm-D-e3gB2j.js → elm-C76oHKwE.js} +1 -1
  21. package/gui/dist/assets/{erb-C8xjhJii.js → erb-B9lT1-jn.js} +1 -1
  22. package/gui/dist/assets/{git-rebase-BMzqBmMX.js → git-rebase-CFJfxIKd.js} +1 -1
  23. package/gui/dist/assets/{glimmer-js-CfYrbyY1.js → glimmer-js-CuKOOPgF.js} +1 -1
  24. package/gui/dist/assets/{glimmer-ts-Dyfca7lv.js → glimmer-ts-Bv6mYabs.js} +1 -1
  25. package/gui/dist/assets/{glsl-COY5vYTU.js → glsl-DqkL4ruz.js} +1 -1
  26. package/gui/dist/assets/{graphql-Byb01sNe.js → graphql-DCyxuKz9.js} +1 -1
  27. package/gui/dist/assets/{hack-ddU5pTaD.js → hack-7eeyFCb_.js} +1 -1
  28. package/gui/dist/assets/{haml-CAquuPYS.js → haml-QyW3NmJt.js} +1 -1
  29. package/gui/dist/assets/{handlebars-tvRXMEpW.js → handlebars-DUR5ijvu.js} +1 -1
  30. package/gui/dist/assets/{html-aEb8HZVi.js → html-D0dPWQId.js} +1 -1
  31. package/gui/dist/assets/{html-derivative-D8644HNz.js → html-derivative-BJvYR3eT.js} +1 -1
  32. package/gui/dist/assets/{http-D-n-mc6H.js → http-v9oNQgxb.js} +1 -1
  33. package/gui/dist/assets/{hurl-VlSgWqRc.js → hurl-DJKedJX0.js} +1 -1
  34. package/gui/dist/assets/{index-DJlhJlKP.js → index-BvQEC36q.js} +9 -9
  35. package/gui/dist/assets/{index-uBhcwqMP.css → index-DsbLoC6w.css} +1 -1
  36. package/gui/dist/assets/{java-DVq4jL7v.js → java-6WvxoSVi.js} +1 -1
  37. package/gui/dist/assets/{javascript-Dhbty6OL.js → javascript-EzL_Tbrw.js} +1 -1
  38. package/gui/dist/assets/{jinja-BuGLwpKg.js → jinja-8uVAxRwt.js} +1 -1
  39. package/gui/dist/assets/{jison-DexeMC1a.js → jison-qhKXV24I.js} +1 -1
  40. package/gui/dist/assets/{json-DokpxVrH.js → json-Dc0z8uAY.js} +1 -1
  41. package/gui/dist/assets/{jsx-4pi3R3E5.js → jsx-BcAYKWnG.js} +1 -1
  42. package/gui/dist/assets/{julia-DAHru734.js → julia-BWweihLf.js} +1 -1
  43. package/gui/dist/assets/{just-D4icYPCX.js → just-BJW5J7-5.js} +1 -1
  44. package/gui/dist/assets/{latex-D7gIVkz9.js → latex-D4PMSy_9.js} +1 -1
  45. package/gui/dist/assets/{liquid-CCBMq9L5.js → liquid-DPHzxv1d.js} +1 -1
  46. package/gui/dist/assets/{lua-BmKHNWoL.js → lua-CXDfM5fE.js} +1 -1
  47. package/gui/dist/assets/{marko-XJVcMuhE.js → marko-BDaj_Ukt.js} +1 -1
  48. package/gui/dist/assets/{mdc-CggWCAuD.js → mdc-_eBanByb.js} +1 -1
  49. package/gui/dist/assets/{nginx-2HmYA6Zg.js → nginx-BU-LmpTn.js} +1 -1
  50. package/gui/dist/assets/{nim-f4HlgVQ6.js → nim--YfQmvKw.js} +1 -1
  51. package/gui/dist/assets/{org-DTHhZRyr.js → org-CrYbJtCH.js} +1 -1
  52. package/gui/dist/assets/{perl-Si_h0zXD.js → perl-eVOyYGxc.js} +1 -1
  53. package/gui/dist/assets/{php-lV--JYV2.js → php-BOobhCHC.js} +1 -1
  54. package/gui/dist/assets/{pug-DQsGYgr8.js → pug-BkJ5AC85.js} +1 -1
  55. package/gui/dist/assets/{qml-aOpHbSEo.js → qml-DDkTGMRr.js} +1 -1
  56. package/gui/dist/assets/{r-CnftDQmo.js → r-D2q_TRg_.js} +1 -1
  57. package/gui/dist/assets/{razor-BuPfeQJW.js → razor-0IgMrSqO.js} +1 -1
  58. package/gui/dist/assets/{regexp-FdI0Di6_.js → regexp-Do986jdB.js} +1 -1
  59. package/gui/dist/assets/{rst-DTOVQcNW.js → rst-CVLXVWCA.js} +1 -1
  60. package/gui/dist/assets/{ruby-C9jMp3g5.js → ruby-DHKkQKGc.js} +1 -1
  61. package/gui/dist/assets/{sas-CZNv0sbQ.js → sas-CiHOBbWn.js} +1 -1
  62. package/gui/dist/assets/{scss-CgBtiwwX.js → scss-Z_uLQVDp.js} +1 -1
  63. package/gui/dist/assets/{shellscript-BX4qmBbn.js → shellscript-BuVmUWqA.js} +1 -1
  64. package/gui/dist/assets/{shellsession-QeB-Drd1.js → shellsession-A-I3nisu.js} +1 -1
  65. package/gui/dist/assets/{soy-tCnsdqeW.js → soy-C6yTdr30.js} +1 -1
  66. package/gui/dist/assets/{sql-DUB0KZGO.js → sql-BIKi__0n.js} +1 -1
  67. package/gui/dist/assets/{stata-DJm29ea1.js → stata-mi7Mr07J.js} +1 -1
  68. package/gui/dist/assets/{surrealql-C0DfQshk.js → surrealql-BMrqzIzO.js} +1 -1
  69. package/gui/dist/assets/{svelte-fzHSAOsO.js → svelte-DKga702k.js} +1 -1
  70. package/gui/dist/assets/{templ-DpeWk6q9.js → templ-CHEzvkbM.js} +1 -1
  71. package/gui/dist/assets/{tex-B3a-2pHT.js → tex-C2F2bDqU.js} +1 -1
  72. package/gui/dist/assets/{ts-tags-ET5K_vOb.js → ts-tags-Drr0KQD5.js} +1 -1
  73. package/gui/dist/assets/{tsx-iT4TbDG6.js → tsx-DzNsC1nx.js} +1 -1
  74. package/gui/dist/assets/{twig-k28si_Lb.js → twig-DxlnE1mU.js} +1 -1
  75. package/gui/dist/assets/{typescript-CQH469JO.js → typescript-BP73YOLI.js} +1 -1
  76. package/gui/dist/assets/{typst-DJ1IDlsS.js → typst-CJQorTdx.js} +1 -1
  77. package/gui/dist/assets/{vue-B6kdgUfh.js → vue-BtstEY8l.js} +1 -1
  78. package/gui/dist/assets/{vue-html-Drn6bjns.js → vue-html-CPzooE-G.js} +1 -1
  79. package/gui/dist/assets/{vue-vine-DoSToyMP.js → vue-vine-tHQVTFsT.js} +1 -1
  80. package/gui/dist/assets/{xml-56uPvJd-.js → xml-CaiLyf9Y.js} +1 -1
  81. package/gui/dist/assets/{xsl-rMxh05gW.js → xsl-D3auBxiz.js} +1 -1
  82. package/gui/dist/assets/{yaml-DoyGvywZ.js → yaml-D4sD_vcV.js} +1 -1
  83. package/gui/dist/index.html +2 -2
  84. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./angular-html-C2R3hRD7.js","./html-aEb8HZVi.js","./javascript-Dhbty6OL.js","./css-BQINXaX2.js","./angular-ts-BCxzN3EZ.js","./scss-CgBtiwwX.js","./apl-BfLiwgkh.js","./xml-56uPvJd-.js","./java-DVq4jL7v.js","./json-DokpxVrH.js","./astro-CpVQO1Pe.js","./typescript-CQH469JO.js","./postcss-BXeXVLqQ.js","./tsx-iT4TbDG6.js","./blade-DbKxA1nV.js","./html-derivative-D8644HNz.js","./sql-DUB0KZGO.js","./bsl-_VjlB9mv.js","./sdbl-bTVj8UrX.js","./cairo-DLTphjLi.js","./python-gzcpVVnB.js","./chapel-bNREAWj3.js","./c-eUEKSmkG.js","./cobol-CKVyOjj2.js","./coffee-CCZuc_2n.js","./cpp-BWuOzisK.js","./regexp-FdI0Di6_.js","./glsl-COY5vYTU.js","./crystal-SHUiMXbU.js","./shellscript-BX4qmBbn.js","./edge-Kw07bGHu.js","./elixir-C-eRuXkX.js","./elm-D-e3gB2j.js","./erb-C8xjhJii.js","./ruby-C9jMp3g5.js","./haml-CAquuPYS.js","./graphql-Byb01sNe.js","./jsx-4pi3R3E5.js","./lua-BmKHNWoL.js","./yaml-DoyGvywZ.js","./erlang-Cphh6RMH.js","./markdown-BYOwaDjH.js","./fortran-fixed-form-DEKoE2YW.js","./fortran-free-form-CYNrtFtB.js","./fsharp-D13ZGOAj.js","./gdresource-xMC7jr7x.js","./gdshader-CBce3t8t.js","./gdscript-DYvRD3hg.js","./git-commit-BSykSTBG.js","./diff-woXpYk--.js","./git-rebase-BMzqBmMX.js","./glimmer-js-CfYrbyY1.js","./glimmer-ts-Dyfca7lv.js","./hack-ddU5pTaD.js","./handlebars-tvRXMEpW.js","./http-D-n-mc6H.js","./hurl-VlSgWqRc.js","./csv-Dx-8-gkx.js","./hxml-Dcm88srW.js","./haxe-C8oCnwJJ.js","./jinja-BuGLwpKg.js","./jison-DexeMC1a.js","./julia-DAHru734.js","./r-CnftDQmo.js","./just-D4icYPCX.js","./perl-Si_h0zXD.js","./latex-D7gIVkz9.js","./tex-B3a-2pHT.js","./liquid-CCBMq9L5.js","./marko-XJVcMuhE.js","./less-DVTAwKKz.js","./mdc-CggWCAuD.js","./nextflow-CSgcYZcx.js","./nextflow-groovy-D7IRt6Pp.js","./nginx-2HmYA6Zg.js","./nim-f4HlgVQ6.js","./org-DTHhZRyr.js","./clojure-DqKBuwfJ.js","./csharp-dmMxLVLW.js","./dart-CHZY9Xhz.js","./docker-IyjqRm3v.js","./go-rLFTqkRN.js","./groovy-CacY0gHj.js","./ini-B5eOa1yu.js","./make-Dixweg8N.js","./objective-c-D1A_Heim.js","./ocaml-O90oeIOV.js","./php-lV--JYV2.js","./vb-DOwzaHZ0.js","./raku-B3gFvitq.js","./rust-DpiIf5JO.js","./scala-BiFt_7mu.js","./zig-CMLA9XwU.js","./xsl-rMxh05gW.js","./pug-DQsGYgr8.js","./qml-aOpHbSEo.js","./razor-BuPfeQJW.js","./rst-DTOVQcNW.js","./cmake-Bj61d0ZC.js","./sas-CZNv0sbQ.js","./shaderlab-TOUzSsQk.js","./hlsl-Cvrh5tZx.js","./shellsession-QeB-Drd1.js","./soy-tCnsdqeW.js","./sparql-D_iOobhT.js","./turtle-ByJddavk.js","./stata-DJm29ea1.js","./surrealql-C0DfQshk.js","./svelte-fzHSAOsO.js","./templ-DpeWk6q9.js","./ts-tags-ET5K_vOb.js","./twig-k28si_Lb.js","./typst-DJ1IDlsS.js","./bat-qdxAdBWQ.js","./bibtex-Ci_nEsc7.js","./jsonc-CYpm1nAK.js","./log-BNLmms1o.js","./powershell-QtSnmXcu.js","./swift-CyEgAFGc.js","./system-verilog-Dh5ihWbf.js","./verilog-B2gwz-sJ.js","./vue-B6kdgUfh.js","./vue-html-Drn6bjns.js","./vue-vine-DoSToyMP.js","./stylus-B6D30XZt.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./angular-html-C803cuWd.js","./html-D0dPWQId.js","./javascript-EzL_Tbrw.js","./css-DYaCl1On.js","./angular-ts-CvT6keay.js","./scss-Z_uLQVDp.js","./apl-BvfOmnA0.js","./xml-CaiLyf9Y.js","./java-6WvxoSVi.js","./json-Dc0z8uAY.js","./astro-BewkfgzR.js","./typescript-BP73YOLI.js","./postcss-BXeXVLqQ.js","./tsx-DzNsC1nx.js","./blade-D9BPuilJ.js","./html-derivative-BJvYR3eT.js","./sql-BIKi__0n.js","./bsl-_VjlB9mv.js","./sdbl-bTVj8UrX.js","./cairo-DLTphjLi.js","./python-gzcpVVnB.js","./chapel-CfZ6A-f4.js","./c-Bt2Wt4Hi.js","./cobol-DAJsUO2X.js","./coffee-1RFHpyYJ.js","./cpp-DyK2AfZ-.js","./regexp-Do986jdB.js","./glsl-DqkL4ruz.js","./crystal-yGa7SJEl.js","./shellscript-BuVmUWqA.js","./edge-DSJ7vFgm.js","./elixir-BswHDqIq.js","./elm-C76oHKwE.js","./erb-B9lT1-jn.js","./ruby-DHKkQKGc.js","./haml-QyW3NmJt.js","./graphql-DCyxuKz9.js","./jsx-BcAYKWnG.js","./lua-CXDfM5fE.js","./yaml-D4sD_vcV.js","./erlang-Cphh6RMH.js","./markdown-BYOwaDjH.js","./fortran-fixed-form-DEKoE2YW.js","./fortran-free-form-CYNrtFtB.js","./fsharp-D13ZGOAj.js","./gdresource-xMC7jr7x.js","./gdshader-CBce3t8t.js","./gdscript-DYvRD3hg.js","./git-commit-BSykSTBG.js","./diff-woXpYk--.js","./git-rebase-CFJfxIKd.js","./glimmer-js-CuKOOPgF.js","./glimmer-ts-Bv6mYabs.js","./hack-7eeyFCb_.js","./handlebars-DUR5ijvu.js","./http-v9oNQgxb.js","./hurl-DJKedJX0.js","./csv-Dx-8-gkx.js","./hxml-Dcm88srW.js","./haxe-C8oCnwJJ.js","./jinja-8uVAxRwt.js","./jison-qhKXV24I.js","./julia-BWweihLf.js","./r-D2q_TRg_.js","./just-BJW5J7-5.js","./perl-eVOyYGxc.js","./latex-D4PMSy_9.js","./tex-C2F2bDqU.js","./liquid-DPHzxv1d.js","./marko-BDaj_Ukt.js","./less-DVTAwKKz.js","./mdc-_eBanByb.js","./nextflow-CSgcYZcx.js","./nextflow-groovy-D7IRt6Pp.js","./nginx-BU-LmpTn.js","./nim--YfQmvKw.js","./org-CrYbJtCH.js","./clojure-DqKBuwfJ.js","./csharp-dmMxLVLW.js","./dart-CHZY9Xhz.js","./docker-IyjqRm3v.js","./go-rLFTqkRN.js","./groovy-CacY0gHj.js","./ini-B5eOa1yu.js","./make-Dixweg8N.js","./objective-c-D1A_Heim.js","./ocaml-O90oeIOV.js","./php-BOobhCHC.js","./vb-DOwzaHZ0.js","./raku-B3gFvitq.js","./rust-DpiIf5JO.js","./scala-BiFt_7mu.js","./zig-CMLA9XwU.js","./xsl-D3auBxiz.js","./pug-BkJ5AC85.js","./qml-DDkTGMRr.js","./razor-0IgMrSqO.js","./rst-CVLXVWCA.js","./cmake-Bj61d0ZC.js","./sas-CiHOBbWn.js","./shaderlab-TOUzSsQk.js","./hlsl-Cvrh5tZx.js","./shellsession-A-I3nisu.js","./soy-C6yTdr30.js","./sparql-D_iOobhT.js","./turtle-ByJddavk.js","./stata-mi7Mr07J.js","./surrealql-BMrqzIzO.js","./svelte-DKga702k.js","./templ-CHEzvkbM.js","./ts-tags-Drr0KQD5.js","./twig-DxlnE1mU.js","./typst-CJQorTdx.js","./bat-qdxAdBWQ.js","./bibtex-Ci_nEsc7.js","./jsonc-CYpm1nAK.js","./log-BNLmms1o.js","./powershell-QtSnmXcu.js","./swift-CyEgAFGc.js","./system-verilog-Dh5ihWbf.js","./verilog-B2gwz-sJ.js","./vue-BtstEY8l.js","./vue-html-CPzooE-G.js","./vue-vine-tHQVTFsT.js","./stylus-B6D30XZt.js"])))=>i.map(i=>d[i]);
2
2
  var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var ee=Array.isArray;function te(){}var C={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function w(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function T(e,t){return w(e.type,t,e.props)}function E(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function D(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var O=/\/+/g;function re(e,t){return typeof e==`object`&&e&&e.key!=null?D(``+e.key):t.toString(36)}function ie(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(te,te):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function ae(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,ae(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+re(e,0):a,ee(o)?(i=``,c!=null&&(i=c.replace(O,`$&/`)+`/`),ae(o,r,i,``,function(e){return e})):o!=null&&(E(o)&&(o=T(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(O,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(ee(e))for(var u=0;u<e.length;u++)a=e[u],s=l+re(a,u),c+=ae(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+re(a,u++),c+=ae(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return ae(ie(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function k(e,t,n){if(e==null)return e;var r=[],i=0;return ae(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function oe(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var A=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)};function se(e){var t=C.T,n={};n.types=t===null?null:t.types,C.T=n;try{var r=e(),i=C.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(te,A)}catch(e){A(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),C.T=t}}function j(e){var t=C.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else se(j.bind(null,e))}var ce={map:k,forEach:function(e,t,n){k(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return k(e,function(){t++}),t},toArray:function(e){return k(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=ce,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return C.H.useMemoCache(e)}},e.addTransitionType=j,e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!ne.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return w(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)ne.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return w(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=E,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:oe}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=se,e.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},e.use=function(e){return C.H.use(e)},e.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},e.useCallback=function(e,t){return C.H.useCallback(e,t)},e.useContext=function(e){return C.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return C.H.useEffect(e,t)},e.useEffectEvent=function(e){return C.H.useEffectEvent(e)},e.useId=function(){return C.H.useId()},e.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return C.H.useMemo(e,t)},e.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},e.useRef=function(e){return C.H.useRef(e)},e.useState=function(e){return C.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return C.H.useTransition()},e.version=`19.3.0`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,T());else{var t=n(l);t!==null&&O(x,t.startTime-e)}}}var S=!1,ee=-1,te=5,C=-1;function ne(){return g?!0:!(e.unstable_now()-C<te)}function w(){if(g=!1,S){var t=e.unstable_now();C=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(ee),ee=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ne());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&O(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?T():S=!1}}}var T;if(typeof y==`function`)T=function(){y(w)};else if(typeof MessageChannel<`u`){var E=new MessageChannel,D=E.port2;E.port1.onmessage=w,T=function(){D.postMessage(null)}}else T=function(){_(w,0)};function O(t,n){ee=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):te=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(ee),ee=-1):h=!0,O(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,T()))),r},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.0`})),h=o(((e,t)=>{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}function m(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&m(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function g(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function _(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function v(e){var t=[null,null],n=g(e);return n===null||y(t,e,n.child,{foundSelf:!1}),t}function y(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&y(e,t,n.child,r))return!0;n=n.sibling}return!1}function b(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var x=null,S=null;function ee(e,t,n){return e===n||e===t&&(x=e,!0)}function te(e,t,n){return e===n?(S=e,!1):e===t&&(S!==null&&(x=e),!0)}function C(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function ne(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var w=Object.assign,T=Symbol.for(`react.element`),E=Symbol.for(`react.transitional.element`),D=Symbol.for(`react.portal`),O=Symbol.for(`react.fragment`),re=Symbol.for(`react.strict_mode`),ie=Symbol.for(`react.profiler`),ae=Symbol.for(`react.consumer`),k=Symbol.for(`react.context`),oe=Symbol.for(`react.forward_ref`),A=Symbol.for(`react.suspense`),se=Symbol.for(`react.suspense_list`),j=Symbol.for(`react.memo`),ce=Symbol.for(`react.lazy`),M=Symbol.for(`react.activity`),le=Symbol.for(`react.legacy_hidden`),ue=Symbol.for(`react.memo_cache_sentinel`),de=Symbol.for(`react.view_transition`),fe=Symbol.for(`react.recoverable`),pe=Symbol.iterator;function me(e){return typeof e!=`object`||!e?null:(e=pe&&e[pe]||e[`@@iterator`],typeof e==`function`?e:null)}var he=Symbol.for(`react.client.reference`);function ge(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case O:return`Fragment`;case ie:return`Profiler`;case re:return`StrictMode`;case A:return`Suspense`;case se:return`SuspenseList`;case M:return`Activity`;case de:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case D:return`Portal`;case k:return e.displayName||`Context`;case ae:return(e._context.displayName||`Context`)+`.Consumer`;case oe:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case j:return t=e.displayName||null,t===null?ge(e.type)||`Memo`:t;case ce:t=e._payload,e=e._init;try{return ge(e(t))}catch{}}return null}var _e=Array.isArray,N=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve={pending:!1,data:null,method:null,action:null},ye=[],be=-1;function xe(e){return{current:e}}function Se(e){0>be||(e.current=ye[be],ye[be]=null,be--)}function Ce(e,t){be++,ye[be]=e.current,e.current=t}var we=xe(null),Te=xe(null),Ee=xe(null),De=xe(null);function Oe(e,t){switch(Ce(Ee,t),Ce(Te,e),Ce(we,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?pp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=pp(t),e=mp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}Se(we),Ce(we,e)}function ke(){Se(we),Se(Te),Se(Ee)}function Ae(e){var t=e.memoizedState;t!==null&&(uh._currentValue=t.memoizedState,Ce(De,e)),t=we.current;var n=mp(t,e.type);t!==n&&(Ce(Te,e),Ce(we,n))}function je(e){Te.current===e&&(Se(we),Se(Te)),De.current===e&&(Se(De),uh._currentValue=ve)}var Me,Ne;function Pe(e){if(Me===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Me=t&&t[1]||``,Ne=-1<e.stack.indexOf(`
3
3
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
4
  `+Me+e+Ne}var Fe=!1;function Ie(e,t){if(!e||Fe)return``;Fe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
@@ -69,9 +69,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
69
69
  `);return[`${e}. [Reviewer note] ${n}${r}`,...i.map(e=>e===``?``:`${gf}${e}`)]}function Sf(e,t,n){let r=new Set(e.map(e=>e.id)),i=t.filter(e=>!r.has(e));if(i.length>0)throw Error(`Unknown ${n} id(s): ${i.join(`, `)}.`);let a=new Set(t);return e.filter(e=>a.has(e.id))}function Cf(e,t){let n=U(Sf(e.findings,t.findingIds,`finding`)),r=Sf(e.notes,t.noteIds,`note`),i=[`Review feedback on "${e.title}" (${vf(e)}).`];if(e.overview!==null&&i.push(`Feature objective: ${e.overview.objective}`),t.decision!==null&&i.push(hf[t.decision]),i.push(``),n.length===0&&r.length===0)return i.push(`No points to address.`),i.join(`
70
70
  `);i.push(`Address the following points:`);let a=1;for(let e of n)i.push(``,...bf(a++,e));for(let e of r)i.push(``,...xf(a++,e));return i.join(`
71
71
  `)}function wf(e){return Cf(e,{findingIds:e.findings.filter(e=>e.status===`open`).map(e=>e.id),noteIds:[],decision:null})}var Tf=5;function Ef({analysis:e}){let t=A(e=>e.copy),n=U(e.findings.filter(e=>e.status===`open`)),r=fl.map(e=>({severity:e,count:n.filter(t=>t.severity===e).length}));return(0,j.jsxs)(j.Fragment,{children:[e.overview&&(0,j.jsxs)(`section`,{className:`card overview-card`,children:[(0,j.jsxs)(`h2`,{className:`card-title`,children:[(0,j.jsx)(M,{name:`focus`,color:`#8b97ff`}),`Vue d'ensemble`]}),(0,j.jsx)(`h3`,{className:`overview-label`,children:`Objectif`}),(0,j.jsx)(`p`,{className:`overview-text`,children:e.overview.objective}),(0,j.jsx)(`h3`,{className:`overview-label`,children:`Approche`}),(0,j.jsx)(`p`,{className:`overview-text`,children:e.overview.approach}),e.overview.attentionPoints.length>0&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`h3`,{className:`overview-label`,children:`Points d'attention`}),(0,j.jsx)(`ul`,{className:`summary-list overview-points`,children:e.overview.attentionPoints.map((e,t)=>(0,j.jsx)(`li`,{children:e},t))})]})]}),(0,j.jsxs)(`section`,{className:`card summary-card`,children:[(0,j.jsxs)(`h2`,{className:`card-title`,children:[(0,j.jsx)(M,{name:`sparkles`,color:`#b18cff`}),`Ce que l'agent a fait`]}),e.summary.length>0?(0,j.jsx)(`ul`,{className:`summary-list`,children:e.summary.map((e,t)=>(0,j.jsx)(`li`,{children:e},t))}):(0,j.jsx)(`p`,{className:`empty-text`,children:`L'agent n'a pas encore rédigé de résumé (outil update_analysis).`})]}),e.request&&(0,j.jsxs)(`section`,{className:`card request-card`,children:[(0,j.jsxs)(`h2`,{className:`card-title`,children:[(0,j.jsx)(M,{name:`message-square`,color:`#9aa1b1`}),`Demande initiale`,e.request.source&&(0,j.jsx)(`span`,{className:`request-source mono`,children:e.request.source})]}),(0,j.jsx)(`p`,{className:`request-text`,children:e.request.text})]}),(0,j.jsxs)(`div`,{className:`section-head`,children:[(0,j.jsx)(`h2`,{className:`section-title`,children:`Constats ouverts`}),(0,j.jsx)(`div`,{className:`pill-row`,title:`Constats ouverts par gravité, exigences manquantes comprises`,children:r.filter(({count:e})=>e>0).map(({severity:e,count:t})=>(0,j.jsx)(`span`,{className:`pill`,style:{color:ue[e].color,background:ue[e].background},children:Ee(e,t)},e))}),(0,j.jsx)(`span`,{className:`spacer`}),(0,j.jsxs)(`button`,{type:`button`,className:`button button-secondary button-medium`,disabled:n.length===0,title:n.length===0?`Aucun constat ouvert à transmettre.`:`Tous les constats ouverts, du plus grave au moins grave.`,onClick:()=>void t(wf(e),`Prompt des constats ouverts copié dans le presse-papiers.`),children:[(0,j.jsx)(M,{name:`bot`,color:`#b18cff`}),`Copier le prompt pour l'agent`]})]}),(0,j.jsxs)(`section`,{className:`card list-card`,children:[n.length===0?(0,j.jsx)(`p`,{className:`list-empty`,children:e.findings.length===0?`L'agent n'a relevé aucun constat.`:`Aucun constat ouvert : tous sont ignorés ou obsolètes.`}):n.slice(0,Tf).map(t=>(0,j.jsx)(df,{analysis:e,finding:t},t.id)),e.findings.length>0&&(0,j.jsxs)(`a`,{className:`list-footer-link`,href:Ve.feature(e.id,`findings`),children:[`Voir les `,e.findings.length,` constats, tous statuts confondus`]})]})]})}var Df={summary:`Résumé`,files:`Fichiers`,findings:`Constats`,diagrams:`Schémas`};function Of(e,t){if(t===`files`)return{count:e.files.length,title:Te(e.files.length,`fichier modifié`,`fichiers modifiés`)};if(t===`findings`){let t=e.findings.filter(e=>e.status===`open`).length;return{count:t,title:`${Te(t,`constat ouvert`,`constats ouverts`)}, exigences manquantes comprises · ${e.findings.length} au total`}}return t===`diagrams`?{count:e.diagrams.length,title:Te(e.diagrams.length,`schéma`)}:null}function kf(e){return e.mode===`branch`?`${he.branch} ${je(e)} vers ${Ae(e.base)}`:`${he.working_tree} par rapport à HEAD`}function Af({analysis:e,tab:t}){let n=Ie(e),r=su(e);return(0,j.jsxs)(`div`,{className:`page`,children:[(0,j.jsxs)(`div`,{className:`page-head`,children:[(0,j.jsxs)(`div`,{className:`page-head-text`,children:[(0,j.jsx)(`h1`,{className:`page-title`,children:e.title}),(0,j.jsxs)(`p`,{className:`page-meta`,children:[(0,j.jsxs)(`span`,{children:[kf(e),` · produite `,Se(e.snapshotAt),` · `,Te(e.files.length,`fichier`)]}),(0,j.jsxs)(`span`,{className:`count-add mono`,children:[`+`,n.additions]}),(0,j.jsxs)(`span`,{className:`count-del mono`,children:[`−`,n.deletions]})]})]}),(0,j.jsx)(`button`,{type:`button`,className:`button button-primary button-large`,disabled:r===null,title:r===null?`L'analyse ne contient aucun fichier modifié.`:void 0,onClick:()=>r&&He(Ve.review(e.id,r)),children:`Commencer la revue`})]}),(0,j.jsx)(`nav`,{className:`tabs`,"aria-label":`Sections de l'analyse`,children:Le.map(n=>{let r=Of(e,n);return(0,j.jsxs)(`a`,{href:Ve.feature(e.id,n),className:`tab${n===t?` is-active`:``}`,title:r?.title,children:[Df[n],r!==null&&(0,j.jsx)(`span`,{className:`tab-count`,children:r.count})]},n)})}),(0,j.jsxs)(`div`,{className:`tab-panel`,children:[t===`summary`&&(0,j.jsx)(Ef,{analysis:e}),t===`files`&&(0,j.jsx)(du,{analysis:e}),t===`findings`&&(0,j.jsx)(pf,{analysis:e}),t===`diagrams`&&(0,j.jsx)(sf,{analysis:e})]})]})}var jf={approve:{icon:`circle-check`,color:`#3fb950`,description:`La feature peut être fusionnée`},request_changes:{icon:`pencil`,color:`#e3a33b`,description:`L'agent reprend son travail`},reject:{icon:`circle-x`,color:`#f0625a`,description:`La feature est abandonnée`}};function Mf(e){let t=U(e.findings.filter(e=>e.status===`open`)).map(e=>({key:`f:${e.id}`,finding:e})),n=e.notes.map(e=>({key:`n:${e.id}`,note:e}));return[...t,...n]}function Nf(e){let t=e.review;if(t.state!==`submitted`)return new Set;let n=new Set([...t.selectedFindingIds.map(e=>`f:${e}`),...t.selectedNoteIds.map(e=>`n:${e}`)]);return new Set(Mf(e).map(e=>e.key).filter(e=>!n.has(e)))}function Pf({analysis:e}){let t=A(e=>e.copy),n=A(e=>e.submitReview),r=A(e=>e.notify),i=A(e=>e.saving),a=Mf(e),[o,s]=(0,v.useState)(()=>e.review.decision??(a.length>0?`request_changes`:`approve`)),[c,l]=(0,v.useState)(()=>Nf(e)),u=a.filter(e=>!c.has(e.key)),d=u.flatMap(e=>e.finding?[e.finding.id]:[]),f=u.flatMap(e=>e.note?[e.note.id]:[]),p=Cf(e,{findingIds:d,noteIds:f,decision:o}),m=e.files.filter(e=>e.reviewed).length,h=e.review,g=e=>{let t=new Set(c);t.has(e)?t.delete(e):t.add(e),l(t)},_=async()=>{await n(o,d,f)&&r(`info`,`Retour enregistré : l'agent le lit avec l'outil get_review_feedback.`)},y=su(e);return(0,j.jsxs)(`div`,{className:`page page-narrow`,children:[(0,j.jsx)(`h1`,{className:`page-title page-title-small`,children:`Terminer la revue`}),(0,j.jsxs)(`p`,{className:`page-meta`,children:[m,` / `,Te(e.files.length,`fichier revu`,`fichiers revus`),` · `,Te(d.length,`constat ouvert`,`constats ouverts`),` et`,` `,Te(f.length,`remarque`),` à transmettre`]}),h.state===`submitted`&&h.submittedAt&&h.decision&&(0,j.jsxs)(`div`,{className:`submitted-banner`,children:[(0,j.jsx)(M,{name:`circle-check`,color:`#3fb950`,size:16}),(0,j.jsxs)(`span`,{children:[`Retour enregistré le `,Ce(h.submittedAt),` · décision « `,ge[h.decision],` ». L'agent le lit avec l'outil get_review_feedback ; un nouvel enregistrement le remplace.`]})]}),(0,j.jsx)(`h2`,{className:`field-label`,children:`Décision`}),(0,j.jsx)(`div`,{className:`decisions`,role:`radiogroup`,"aria-label":`Décision`,children:xl.map(e=>(0,j.jsxs)(`button`,{type:`button`,role:`radio`,"aria-checked":o===e,className:`decision${o===e?` is-selected`:``}`,onClick:()=>s(e),children:[(0,j.jsx)(M,{name:jf[e].icon,color:jf[e].color,size:16}),(0,j.jsxs)(`span`,{className:`decision-text`,children:[(0,j.jsx)(`span`,{className:`decision-title`,children:ge[e]}),(0,j.jsx)(`span`,{className:`decision-description`,children:jf[e].description})]})]},e))}),(0,j.jsxs)(`div`,{className:`field-head`,children:[(0,j.jsx)(`h2`,{className:`field-label`,children:`Points à transmettre`}),(0,j.jsxs)(`span`,{className:`field-meta`,children:[u.length,` sur `,a.length,` sélectionnés`]})]}),(0,j.jsxs)(`div`,{className:`card points`,children:[a.length===0&&(0,j.jsx)(`p`,{className:`list-empty`,children:`Aucun constat ouvert ni remarque : le retour ne contiendra que la décision.`}),a.map(t=>{let n=!c.has(t.key);return(0,j.jsxs)(`label`,{className:`point${n?``:` is-excluded`}`,children:[(0,j.jsx)(`input`,{type:`checkbox`,className:`visually-hidden`,checked:n,onChange:()=>g(t.key)}),(0,j.jsx)(M,{name:n?`square-check`:`square`,color:n?`#8b97ff`:`#646b7b`,size:16}),t.finding?(0,j.jsx)(ql,{severity:t.finding.severity}):(0,j.jsx)(Jl,{}),(0,j.jsx)(`span`,{className:`point-title`,children:t.finding?t.finding.title:t.note.text}),(0,j.jsx)(`span`,{className:`point-location mono`,children:t.finding?Ne(t.finding,e.request):Pe(t.note)})]},t.key)})]}),(0,j.jsx)(`h2`,{className:`field-label`,children:`Prompt pour l'agent`}),(0,j.jsxs)(`div`,{className:`prompt-box`,children:[(0,j.jsx)(`pre`,{className:`prompt-text`,children:p}),(0,j.jsx)(`button`,{type:`button`,className:`icon-button prompt-copy`,title:`Copier le prompt`,"aria-label":`Copier le prompt`,onClick:()=>void t(p,`Prompt copié dans le presse-papiers.`),children:(0,j.jsx)(M,{name:`copy`,color:`#9aa1b1`})})]}),(0,j.jsxs)(`footer`,{className:`finish-footer`,children:[(0,j.jsx)(M,{name:`info`,color:`#646b7b`}),(0,j.jsx)(`span`,{className:`finish-hint`,children:`L'agent récupère ce retour avec l'outil get_review_feedback.`}),(0,j.jsx)(`span`,{className:`spacer`}),(0,j.jsx)(`button`,{type:`button`,className:`button button-secondary button-medium`,onClick:()=>He(y?Ve.review(e.id,y):Ve.feature(e.id)),children:`Retour à la revue`}),(0,j.jsxs)(`button`,{type:`button`,className:`button button-primary button-medium`,disabled:i,onClick:()=>void _(),children:[(0,j.jsx)(M,{name:`save`,color:`#ffffff`}),`Enregistrer le retour`]})]})]})}var Ff=h(),If=250,Lf=6,Rf=120,zf=16,Bf=560;function Vf({text:e,className:t}){let n=(0,v.useRef)(null),r=(0,v.useRef)(void 0),[i,a]=(0,v.useState)(null),o=()=>{window.clearTimeout(r.current),a(null)};return(0,v.useEffect)(()=>{if(i!==null)return window.addEventListener(`scroll`,o,!0),window.addEventListener(`resize`,o),()=>{window.removeEventListener(`scroll`,o,!0),window.removeEventListener(`resize`,o)}},[i]),(0,v.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{ref:n,className:`truncated-text${t?` ${t}`:``}`,onMouseEnter:()=>{window.clearTimeout(r.current),r.current=window.setTimeout(()=>{let e=n.current;if(!e||e.scrollWidth<=e.clientWidth)return;let t=e.getBoundingClientRect(),r={left:t.left,maxWidth:Math.min(Bf,window.innerWidth-t.left-zf)};a(window.innerHeight-t.bottom<Rf?{...r,bottom:window.innerHeight-t.top+Lf}:{...r,top:t.bottom+Lf})},If)},onMouseLeave:o,children:e}),i!==null&&(0,Ff.createPortal)((0,j.jsx)(`span`,{className:`truncated-text-bubble`,role:`tooltip`,style:i,children:e}),document.body)]})}var Hf={to_review:`À relire`,all:`Toutes`};function Uf({analysis:e}){let{reviewedFiles:t,totalFiles:n}=e.progress,r=Gl(e);return(0,j.jsxs)(`a`,{className:`home-row`,href:Ve.feature(e.id),children:[(0,j.jsxs)(`span`,{className:`home-row-text`,children:[(0,j.jsx)(Vf,{className:`home-row-title`,text:e.title}),(0,j.jsxs)(`span`,{className:`home-row-meta`,children:[(0,j.jsx)(`span`,{className:`mono`,children:Me(e)}),(0,j.jsxs)(`span`,{children:[`· `,Se(e.updatedAt)]})]})]}),(0,j.jsxs)(`span`,{className:`home-row-progress`,title:`${t} fichier(s) revu(s) sur ${n}`,children:[(0,j.jsx)(`span`,{className:`home-row-progress-bar`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":n,"aria-valuenow":t,children:(0,j.jsx)(`span`,{className:`progress-fill`,style:{width:`${Kl(e)}%`}})}),(0,j.jsxs)(`span`,{className:`home-row-progress-label mono`,children:[t,`/`,n]})]}),(0,j.jsx)(`span`,{className:`home-row-findings`,children:r.length===0?(0,j.jsx)(`span`,{className:`home-row-none`,children:`Aucun constat ouvert`}):r.map(({severity:e,count:t})=>(0,j.jsx)(Zl,{severity:e,count:t,title:`${Oe(e,t)}, exigences manquantes comprises`},e))}),(0,j.jsx)(`span`,{className:`home-row-state`,children:(0,j.jsx)($l,{progress:e.progress})}),(0,j.jsx)(M,{name:`chevron-right`,color:`#646b7b`})]})}function Wf({group:e}){let t=A(t=>t.collapsedProjects.has(e.project)),n=A(e=>e.toggleProject);return(0,j.jsxs)(`section`,{className:`home-project`,children:[(0,j.jsxs)(`button`,{type:`button`,className:`home-project-head`,"aria-expanded":!t,onClick:()=>n(e.project),children:[(0,j.jsx)(M,{name:t?`chevron-right`:`chevron-down`,color:`#646b7b`}),(0,j.jsx)(M,{name:`folder`,color:`#8b97ff`}),(0,j.jsx)(`span`,{className:`home-project-name`,children:e.project}),(0,j.jsx)(`span`,{className:`home-project-total`,children:Te(e.analyses.length,`analyse`)}),(0,j.jsx)(`span`,{className:`spacer`}),(0,j.jsx)(`span`,{className:`home-project-counts`,children:e.counts.map(({state:e,count:t})=>(0,j.jsxs)(`span`,{className:`pill pill-small`,style:{color:_e[e].color,background:_e[e].background},children:[_e[e].label,` · `,t]},e))})]}),!t&&(0,j.jsx)(`div`,{className:`card list-card home-project-list`,children:e.analyses.map(e=>(0,j.jsx)(Uf,{analysis:e},e.id))})]})}function Y(){let e=A(e=>e.analyses),t=A(e=>e.unreadable),n=A(e=>e.listError),r=A(e=>e.homeFilter),i=A(e=>e.setHomeFilter);if(n)return(0,j.jsx)(`div`,{className:`empty-state`,children:(0,j.jsx)(`div`,{className:`empty-card`,children:(0,j.jsx)(`p`,{className:`error-text`,children:n})})});if(e===null)return(0,j.jsx)(`div`,{className:`empty-state`,children:(0,j.jsx)(`div`,{className:`empty-card`,children:(0,j.jsx)(`p`,{children:`Chargement des analyses…`})})});if(e.length===0&&t.length===0)return(0,j.jsx)(`div`,{className:`empty-state`,children:(0,j.jsxs)(`div`,{className:`empty-card`,children:[(0,j.jsx)(`h1`,{className:`empty-title`,children:`Aucune analyse à revoir`}),(0,j.jsxs)(`p`,{children:[`L'agent crée une analyse avec l'outil `,(0,j.jsx)(`code`,{children:`create_analysis`}),` une fois la feature développée. Elle apparaîtra ici automatiquement.`]})]})});let a=Wl(Ul(e,r)),o=new Set(e.map(e=>e.project)).size,s=Ul(e,`to_review`).length;return(0,j.jsxs)(`div`,{className:`page`,children:[(0,j.jsxs)(`div`,{className:`home-head`,children:[(0,j.jsxs)(`div`,{className:`page-head-text`,children:[(0,j.jsx)(`h1`,{className:`page-title`,children:`Analyses`}),(0,j.jsxs)(`p`,{className:`page-meta`,children:[Te(e.length,`analyse`),` · `,Te(o,`projet`),` · `,s,` à relire`]})]}),(0,j.jsx)(`div`,{className:`segmented`,role:`group`,"aria-label":`Filtrer les analyses`,children:Object.keys(Hf).map(e=>(0,j.jsx)(`button`,{type:`button`,className:`segmented-item${e===r?` is-active`:``}`,"aria-pressed":e===r,onClick:()=>i(e),children:Hf[e]},e))})]}),(0,j.jsxs)(`div`,{className:`home-projects`,children:[a.length===0&&e.length>0&&(0,j.jsxs)(`div`,{className:`card home-empty`,children:[(0,j.jsx)(`p`,{children:`Toutes les revues sont soumises : aucune analyse ne reste à relire.`}),(0,j.jsx)(`button`,{type:`button`,className:`link-button accent`,onClick:()=>i(`all`),children:`Afficher toutes les analyses`})]}),a.map(e=>(0,j.jsx)(Wf,{group:e},e.project)),t.length>0&&(0,j.jsxs)(`section`,{className:`home-project`,children:[(0,j.jsxs)(`h2`,{className:`home-project-head is-static`,children:[(0,j.jsx)(M,{name:`triangle-alert`,color:`#f0625a`}),(0,j.jsx)(`span`,{className:`home-project-name`,children:`Analyses illisibles`})]}),(0,j.jsx)(`div`,{className:`card list-card home-project-list`,children:t.map(e=>(0,j.jsx)(`div`,{className:`home-row is-unreadable`,children:(0,j.jsxs)(`span`,{className:`home-row-text`,children:[(0,j.jsx)(`span`,{className:`home-row-title mono`,children:e.id}),(0,j.jsx)(`span`,{className:`home-row-meta error-text`,children:e.error})]})},e.id))})]})]})]})}var Gf={context:` `,add:`+`,del:`-`};function Kf(e){return e.mode===`branch`?`branch ${e.base}...${e.head}`:`working tree changes against HEAD`}function qf(e,t){return t===0?null:ye(e,e+t-1)}function Jf(e){let t=1;for(let n of e.lines)t=Math.max(t,String(n.oldNo??``).length,String(n.newNo??``).length);let n=e=>String(e??``).padStart(t);return[e.header,...e.lines.map(e=>`${n(e.oldNo)} | ${n(e.newNo)} ${Gf[e.type]} ${e.text}`)]}function Yf(e,t,n){let r=qf(n.newStart,n.newLines),i=qf(n.oldStart,n.oldLines),a=[`- File: ${t.path}${t.oldPath===null?``:` (renamed from ${t.oldPath})`}`,r===null?`- New side: no line (the section only removes code).`:`- New side (code after the feature): lines ${r}`,i===null?`- Old side: no line (the section only adds code).`:`- Old side (code before the feature): lines ${i}`];return[`Explain a section of code in the feature analysis "${e.title}" (analysis_id: "${e.id}", project "${e.project}").`,`Repository: ${e.repoPath} — ${Kf(e)}.`,``,`Section to explain:`,...a,``,`Code of the section, as frozen in the analysis (columns: old line | new line, then + added, - removed, or a space for context):`,"```",...Jf(n),"```",``,`What to do:`,`1. Read this code and what surrounds it (get_diff with analysis_id "${e.id}" and path "${t.path}", and the repository) until you understand what it does and how it works.`,`2. Record your explanations in the feature analyzer with add_explanations (analysis_id "${e.id}", path "${t.path}"): one explanation per meaningful block of the section, covering it from its first to its last line. Use "side": "new" with new-side line numbers for added or kept code, and "side": "old" with old-side line numbers for removed code.`,`3. In each explanation, say what the code does (inputs, outputs, effects), then how it works, step by step in the order of the code; name the key variables and the edge cases it handles. For removed code, say what it did and what replaces it. Describe, do not judge.`,`4. If an explanation of the analysis already covers these lines (see get_analysis), rewrite it with update_explanation instead of adding a duplicate.`,`5. Then tell me in a few lines which explanations you recorded.`].join(`
72
- `)}function Xf(e){return`${e===0?0:1},${e}`}function Zf(e){if(e.newContent===null)return null;let t=ve(e.newContent),n=[],r=1,i=0,a=e=>{for(;r<=e;r++)n.push({type:`context`,oldNo:r+i,newNo:r,text:t[r-1]})};for(let t of e.hunks)a(t.newLines===0?t.newStart:t.newStart-1),n.push(...t.lines),r+=t.newLines,i+=t.oldLines-t.newLines;a(t.length);let o=t.length+i,s={header:`@@ -${Xf(o)} +${Xf(t.length)} @@`,oldStart:o===0?0:1,oldLines:o,newStart:t.length===0?0:1,newLines:t.length,lines:n};return{path:e.path,hunks:[s],newContent:e.newContent}}function Qf({anchorText:e,suggestion:t}){let n=ve(e),r=ve(t);return(0,j.jsxs)(`div`,{className:`fix`,children:[n.map((e,t)=>(0,j.jsxs)(`div`,{className:`fix-line is-del`,children:[(0,j.jsx)(`span`,{className:`fix-marker`,children:`−`}),(0,j.jsx)(`span`,{className:`fix-code`,children:e})]},`del-${t}`)),r.map((e,t)=>(0,j.jsxs)(`div`,{className:`fix-line is-add`,children:[(0,j.jsx)(`span`,{className:`fix-marker`,children:`+`}),(0,j.jsx)(`span`,{className:`fix-code`,children:e})]},`add-${t}`)),r.length===0&&(0,j.jsx)(`div`,{className:`fix-empty`,children:`Les lignes visées sont supprimées.`})]})}function $f({analysis:e,finding:t,onAddNote:n}){let r=A(e=>e.setFindingStatus),i=A(e=>e.copy),a=A(e=>e.saving),o=t.location;return(0,j.jsxs)(`article`,{className:`finding-card is-${t.status}`,id:`finding-${t.id}`,children:[(0,j.jsxs)(`header`,{className:`finding-head`,children:[(0,j.jsx)(ql,{severity:t.severity}),(0,j.jsx)(`h3`,{className:`finding-title`,children:t.title}),(0,j.jsx)(Xl,{kind:t.kind}),(0,j.jsx)(Yl,{status:t.status}),o&&(0,j.jsx)(`span`,{className:`finding-lines mono`,children:Fe(o.startLine,o.endLine)})]}),t.body.trim()!==``&&(0,j.jsx)(`p`,{className:`finding-body`,children:t.body}),t.status===`outdated`&&(0,j.jsx)(`p`,{className:`finding-outdated`,children:`Les lignes visées ont changé depuis la rédaction de ce constat : l'agent doit le réancrer avec update_finding.`}),t.suggestion!==null&&t.anchorText!==null&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`finding-section-title`,children:`Correctif proposé`}),(0,j.jsx)(Qf,{anchorText:t.anchorText,suggestion:t.suggestion})]}),(0,j.jsxs)(`footer`,{className:`finding-actions`,children:[(0,j.jsxs)(`button`,{type:`button`,className:`button button-secondary`,onClick:()=>void i(Cf(e,{findingIds:[t.id],noteIds:[],decision:null}),`Prompt du constat copié dans le presse-papiers.`),children:[(0,j.jsx)(M,{name:`bot`,color:`#b18cff`}),`Copier le prompt pour l'agent`]}),t.status===`open`&&(0,j.jsx)(`button`,{type:`button`,className:`link-button muted`,disabled:a,onClick:()=>void r(t.id,`ignored`),children:`Ignorer`}),t.status===`ignored`&&(0,j.jsx)(`button`,{type:`button`,className:`link-button muted`,disabled:a,onClick:()=>void r(t.id,`open`),children:`Rouvrir`}),(0,j.jsx)(`span`,{className:`spacer`}),n&&(0,j.jsx)(`button`,{type:`button`,className:`link-button accent`,onClick:n,children:`Ajouter une remarque`})]})]})}function ep({entry:e,small:t}){let n=ue[e.finding.severity];return(0,j.jsx)(`span`,{className:`finding-number${t?` is-small`:``}`,style:{color:n.color,background:n.background,borderColor:n.color},"aria-label":`Constat ${e.number}`,children:e.number})}function tp(e,t){return e===`applied`?t?`Correctif appliqué dans le code`:`Appliquer le correctif dans le code`:t?`Correctif affiché dans le code`:`Afficher le correctif dans le code`}function np({analysis:e,entry:t,fix:n,mode:r,onToggleFix:i,onAddNote:a,highlighted:o}){let s=A(e=>e.setFindingStatus),c=A(e=>e.copy),l=A(e=>e.saving),{finding:u}=t,d=ue[u.severity],f=n.state===`shown`,p=r===`off`||n.state===`blocked`;return(0,j.jsxs)(`article`,{className:`margin-card is-${u.status}${f?` is-fix-shown`:``}${o?` is-target`:``}`,id:`finding-${u.id}`,"data-finding-card":u.id,style:{"--severity":d.color},children:[(0,j.jsxs)(`header`,{className:`margin-card-head`,children:[(0,j.jsx)(ep,{entry:t}),(0,j.jsx)(`span`,{className:`pill pill-small margin-card-severity`,style:{color:d.color,background:d.background},children:d.label}),(0,j.jsx)(Xl,{kind:u.kind}),(0,j.jsx)(Yl,{status:u.status}),(0,j.jsxs)(`span`,{className:`margin-card-lines mono`,children:[`l. `,ye(t.startLine,t.endLine,`–`)]})]}),(0,j.jsx)(`h3`,{className:`margin-card-title`,children:u.title}),u.body.trim()!==``&&(0,j.jsx)(`p`,{className:`margin-card-body`,children:u.body}),u.status===`outdated`&&(0,j.jsx)(`p`,{className:`finding-outdated`,children:`Les lignes visées ont changé depuis la rédaction de ce constat : l'agent doit le réancrer avec update_finding.`}),(n.state===`shown`||n.state===`hidden`||n.state===`blocked`)&&(0,j.jsxs)(`label`,{className:`fix-toggle${f?` is-on`:``}${p?` is-disabled`:``}`,children:[(0,j.jsx)(`input`,{type:`checkbox`,className:`visually-hidden`,checked:f,disabled:p,onChange:e=>i(e.target.checked)}),(0,j.jsx)(`span`,{className:`switch`,"aria-hidden":`true`}),tp(r,f)]}),r===`off`&&n.state===`hidden`&&(0,j.jsx)(`p`,{className:`margin-card-hint`,children:`Choisissez « Avant / après » ou « Code corrigé » pour afficher le correctif.`}),n.state===`blocked`&&(0,j.jsx)(`p`,{className:`margin-card-hint`,children:r===`applied`?`Ses lignes recouvrent le correctif du constat ${n.blockedBy} : retirez-le pour appliquer celui-ci dans le code.`:`Ses lignes recouvrent le correctif du constat ${n.blockedBy} : masquez-le pour afficher celui-ci dans le code.`}),n.state===`outside`&&u.suggestion!==null&&u.anchorText!==null&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`p`,{className:`margin-card-hint`,children:`Les lignes visées ne sont pas toutes affichées dans le diff : voici le correctif proposé.`}),(0,j.jsx)(Qf,{anchorText:u.anchorText,suggestion:u.suggestion})]}),(0,j.jsxs)(`footer`,{className:`margin-card-actions`,children:[(0,j.jsxs)(`button`,{type:`button`,className:`margin-button`,onClick:()=>void c(Cf(e,{findingIds:[u.id],noteIds:[],decision:null}),`Prompt du constat copié dans le presse-papiers.`),children:[(0,j.jsx)(M,{name:`bot`,color:`#b18cff`}),`Copier le prompt`]}),u.status===`open`&&(0,j.jsxs)(`button`,{type:`button`,className:`margin-button`,disabled:l,onClick:()=>void s(u.id,`ignored`),children:[(0,j.jsx)(M,{name:`eye-off`,color:`#9aa1b1`}),`Ignorer`]}),u.status===`ignored`&&(0,j.jsxs)(`button`,{type:`button`,className:`margin-button`,disabled:l,onClick:()=>void s(u.id,`open`),children:[(0,j.jsx)(M,{name:`rotate-ccw`,color:`#9aa1b1`}),`Rouvrir`]}),a&&(0,j.jsxs)(`button`,{type:`button`,className:`margin-button`,onClick:a,children:[(0,j.jsx)(M,{name:`message-square`,color:`#9aa1b1`}),`Remarque`]})]})]})}function rp(e,t){let n=e.findings.flatMap(e=>e.location?.path===t?[{finding:e,startLine:e.location.startLine,endLine:e.location.endLine}]:[]);return n.sort((e,t)=>e.startLine-t.startLine||e.endLine-t.endLine),n.map((e,t)=>({...e,number:t+1}))}function X(e){let t=new Set;for(let n of e.hunks)for(let e of n.lines)e.newNo!==null&&t.add(e.newNo);return t}function ip(e,t,n){for(let r=t;r<=n;r++)if(e.has(r))return r;return null}var ap={off:`Sans correctif`,"before-after":`Avant / après`,applied:`Code corrigé`},op={diff:`Diff git`,new:`Nouveau code`},sp={changes:`Modifications`,file:`Fichier entier`};function cp(e,t,n){return e.hunks.some(e=>{let r=e.lines.flatMap(e=>e.newNo===null?[]:[e.newNo]);return r.includes(t)&&r.includes(n)})}function lp(e,t,n,r){let i=new Map,a=[];for(let o of e){let{finding:e}=o;if(e.suggestion===null)i.set(e.id,{state:`none`});else if(!cp(t,o.startLine,o.endLine))i.set(e.id,{state:`outside`});else if(r===`off`||!n(e))i.set(e.id,{state:`hidden`});else{let t=a.find(e=>e.startLine<=o.endLine&&o.startLine<=e.endLine);t?i.set(e.id,{state:`blocked`,blockedBy:t.number}):(a.push(o),i.set(e.id,{state:`shown`}))}}return i}function up(e){return e.kind===`line`?Cp(e.line):Tp(e.entry.finding.id)}function dp(e){return e.kind===`line`?e.line:e.entry.startLine-.5}function fp(e,t){return e===null||t===null?!1:e.kind===`line`?t.kind===`line`&&e.line===t.line:t.kind===`fix`&&e.entry.finding.id===t.entry.finding.id}function pp(e,t,n){let r=new Map;if(n!==`applied`)return r;for(let n of e)if(t.get(n.finding.id)?.state===`shown`)for(let e=n.startLine;e<=n.endLine;e++)r.set(e,n);return r}function mp(e,t){let n=t.get(e);return n?{kind:`fix`,entry:n}:{kind:`line`,line:e}}function hp(e,t,n,r){if(t.get(e.finding.id)?.state===`shown`)return{kind:`fix`,entry:e};for(let t=e.startLine;t<=e.endLine;t++)if(n.has(t)&&!r.has(t))return{kind:`line`,line:t};let i=ip(n,e.startLine,e.endLine);return i===null?null:mp(i,r)}function gp(e){return{severity:e.severity,muted:e.status!==`open`}}function _p(e,t){let n=null;for(let{finding:r,startLine:i,endLine:a}of e)t<i||t>a||(n===null||r.status===`open`&&n.status!==`open`||r.status===`open`==(n.status===`open`)&&ou(r.severity,n.severity)<0)&&(n=r);return n?gp(n):null}function vp(e){return ve(e.finding.suggestion??``).map((t,n)=>({kind:`fix-line`,text:t,index:n,entry:e,bar:gp(e.finding)}))}function yp(e,t){return e.explanations.filter(e=>e.location.path===t).sort((e,t)=>e.location.startLine-t.location.startLine||(e.location.side===t.location.side?0:e.location.side===`old`?-1:1)||e.location.endLine-t.location.endLine)}function bp(e,t){let{side:n,startLine:r,endLine:i}=e.location,a=n===`new`?t.newNo:t.type===`add`?null:t.oldNo;return a!==null&&a>=r&&a<=i}function xp(e,t,n,r){for(let i of e.hunks){let e=i.lines.findIndex(e=>bp(t,e));if(e===-1)continue;let a=i.lines[e];if(a.newNo!==null){let e=mp(a.newNo,n);return{selector:up(e),order:dp(e)}}let o=i.lines.slice(e).find(e=>e.newNo!==null),s=i.lines.slice(0,e).findLast(e=>e.newNo!==null);if(r===`new`){let e=o??s;if(!e)continue;let t=mp(e.newNo,n);return{selector:up(t),order:dp(t)+(o?-.25:.25)}}let c=o?o.newNo-.25:s?s.newNo+.25:i.newStart;return{selector:wp(a.oldNo),order:c}}return null}function Sp(e,t,n,r,i,a){let o=X(e),s=pp(t,n,r),c=t.filter(e=>n.get(e.finding.id)?.state===`shown`),l=new Map,u=new Map;for(let e of t){if(n.get(e.finding.id)?.state===`shown`)continue;let t=hp(e,n,o,s);if(t?.kind===`line`&&l.set(t.line,[...l.get(t.line)??[],e]),t?.kind===`fix`){let n=t.entry.finding.id;u.set(n,[...u.get(n)??[],e])}}let d=e=>({kind:`fix-strip`,entry:e,bar:gp(e.finding),pills:u.get(e.finding.id)??[]});return e.hunks.map(e=>{let n=[];for(let o of e.lines){if(a===`new`&&o.type===`del`)continue;let e=o.newNo,s=e===null?void 0:c.find(t=>e>=t.startLine&&e<=t.endLine);if(r===`applied`&&s){s.startLine===e&&n.push(d(s),...vp(s));continue}s&&s.startLine===e&&n.push(d(s)),n.push({kind:`line`,line:o,replaced:s!==void 0&&o.type!==`del`,explained:i.some(e=>bp(e,o)),bar:s?gp(s.finding):e===null?null:_p(t,e),pills:e===null?[]:l.get(e)??[]}),s&&s.endLine===e&&n.push(...vp(s))}return{hunk:e,rows:n}})}function Cp(e){return`[data-line="${e}"]`}function wp(e){return`[data-old-line="${e}"]`}function Tp(e){return`[data-fix="${e}"]`}function Ep(e,t){return e.notes.filter(e=>e.location?.path===t&&e.location.line!==null).sort((e,t)=>e.location.line-t.location.line)}function Dp(e,t){return e===t?`la ligne ${e}`:`les lignes ${e} à ${t}`}var Op=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function kp(e){return Ap(e)}function Ap(e){return Array.isArray(e)?jp(e):e instanceof RegExp?e:typeof e==`object`?Mp(e):e}function jp(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Ap(e[n]);return t}function Mp(e){let t={};for(let n in e)t[n]=Ap(e[n]);return t}function Np(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function Pp(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?Pp(e.substring(0,e.length-1)):e.substr(~t+1)}var Fp=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ip=class{static hasCaptures(e){return e!==null&&(Fp.lastIndex=0,Fp.test(e))}static replaceCaptures(e,t,n){return e.replace(Fp,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function Lp(e,t){return e<t?-1:+(e>t)}function Rp(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=Lp(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function zp(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Bp(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var Vp=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Hp=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(qp(e),t)}static createFromParsedTheme(e,t){return Xp(e,t)}_cachedMatchRoot=new Vp(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>Wp(e.parent,t.parentScopes));return n?new Kp(n.fontStyle,n.foreground,n.background):null}},Up=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e||this.parent!==null&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function Wp(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Gp(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Gp(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var Kp=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function qp(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8}}let s=null;typeof i.settings.foreground==`string`&&zp(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&zp(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new Jp(l,u,e,o,s,c)}}return n}var Jp=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},Yp=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(Yp||{});function Xp(e,t){e.sort((e,t)=>{let n=Lp(e.scope,t.scope);return n!==0||(n=Rp(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new Zp(t),o=new Kp(n,a.getId(r),a.getId(i)),s=new em(new $p(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new Hp(a,o,s)}var Zp=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Qp=Object.freeze([]),$p=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||Qp,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},em=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),$p.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(Rp(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new $p(e,t,n,r,i))}},tm=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return!!(e&1024)}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=rm(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function nm(e){return e}function rm(e){return e}function im(e,t){let n=[],r=om(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(am(i)){let e=[];do e.push(i),i=r.next();while(am(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function am(e){return!!e&&!!e.match(/[\w\.:]+/)}function om(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function sm(e){typeof e.dispose==`function`&&e.dispose()}var cm=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},lm=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},um=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},dm=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new cm(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new um;for(let n of e)fm(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof cm){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function fm(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof cm?mm({baseGrammar:a,selfGrammar:i},r):pm(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new cm(e))}function pm(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];hm([r],t,n)}}function mm(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&hm(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&hm(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function hm(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?Np({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&hm(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=xm(i);switch(a.kind){case 0:mm({...t,selfGrammar:t.baseGrammar},n);break;case 1:mm(t,n);break;case 2:pm(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?pm(a.ruleName,i,n):mm(i,n)}else a.kind===4?n.add(new lm(a.scopeName,a.ruleName)):n.add(new cm(a.scopeName))}}}var gm=class{kind=0},_m=class{kind=1},vm=class{constructor(e){this.ruleName=e}kind=2},ym=class{constructor(e){this.scopeName=e}kind=3},bm=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function xm(e){if(e===`$base`)return new gm;if(e===`$self`)return new _m;let t=e.indexOf(`#`);return t===-1?new ym(e):t===0?new vm(e.substring(1)):new bm(e.substring(0,t),e.substring(t+1))}var Sm=/\\(\d+)/,Cm=/\\(\d+)/g,wm=-1,Tm=-2;function Em(e){return e}function Dm(e){return e}var Om=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Ip.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Ip.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Pp(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Ip.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ip.replaceCaptures(this._contentName,e,t)}},km=class extends Om{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},Am=class extends Om{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Fm(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Im,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},jm=class extends Om{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Im,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Mm=class extends Om{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new Fm(i,this.id),this.beginCaptures=a,this._end=new Fm(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Im;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Nm=class extends Om{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new Fm(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new Fm(o,Tm),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Im;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Im,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},Pm=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new km(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Am(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=Np({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new jm(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new Nm(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Mm(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=xm(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l){if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof jm||e instanceof Mm||e instanceof Nm)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Fm=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=typeof this.source==`string`&&Sm.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return Cm.lastIndex=0,this.source.replace(Cm,(e,t)=>Bp(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`￿`,t[i+1]=`￿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`￿`,t[i+1]=`G`,n[i+1]=`￿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Im=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(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new Lm(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new Lm(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},Lm=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
73
- `)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Rm=class{constructor(e,t){this.languageId=e,this.tokenType=t}},zm=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new Rm(e,8),this._embeddedLanguagesMatcher=new Bm(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Rm(0,0);_getBasicScopeAttributes=new Vp(e=>new Rm(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.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 Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Bm=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>Bp(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var Vm=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Hm(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=Um(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new Vm(i,!0);f()}return new Vm(i,!1);function f(){let o=Wm(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===wm){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),Ym(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof Mm){let r=o;Ym(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof Nm){let r=o;Ym(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(Ym(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function Um(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof Nm&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=Jm(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==Tm){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),Ym(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function Wm(e,t,n,r,i,a){let o=Gm(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=Km(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function Gm(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=qm(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Km(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=qm(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function qm(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function Jm(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function Ym(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));Hm(e,p,n&&d.start===0,d.start,f,i,!1,0),sm(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new Xm(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var Xm=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function Zm(e,t,n,r,i,a,o,s){return new th(e,t,n,r,i,a,o,s)}function Qm(e,t,n,r,i){let a=im(t,$m),o=Pm.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function $m(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(eh(t[r],e))return n=r+1,!0;return!1})}function eh(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var th=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new zm(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=nh(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=im(e,$m);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)Qm(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&Qm(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(Em(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[Dm(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=nh(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Pm.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===ih.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=tm.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?rh.createRootAndLookUpScopeName(a,r,this):rh.createRoot(`unknown`,r),t=new ih(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
74
- `;let a=this.createOnigString(e),o=a.content.length,s=new oh(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=Hm(this,a,i,0,t,s,!0,r);return sm(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function nh(e,t){return e=kp(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var rh=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=Up.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new Up(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new Up(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(1)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),tm.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},ih=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t!==null&&e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?rh.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(1)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:Dm(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=rh.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,Em(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,rh.fromExtension(r,n.contentNameScopesList))}},ah=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):im(e,$m).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>im(e,$m).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},oh=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=tm.set(n,0,nm(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=tm.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},sh=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,Zm(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},ch=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new sh(Hp.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Hp.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new ah(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new dm(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},lh=ih.NULL;function uh(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function dh(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function fh(e){return Array.isArray(e)?e:[e]}async function ph(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function mh(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function hh(e){return e===`ansi`||mh(e)}function gh(e){return e===`none`}function _h(e){return gh(e)}var vh=/(\r?\n)/g;function yh(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(vh),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}var bh={light:`#333333`,dark:`#bbbbbb`},xh={light:`#fffffe`,dark:`#1e1e1e`},Sh=`__shiki_resolved`;function Ch(e){if(e?.[Sh])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?bh.light:bh.dark,n||=t.type===`light`?xh.light:xh.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,Sh,{enumerable:!1,writable:!1,value:!0}),t}async function wh(e){return[...new Set((await Promise.all(e.filter(e=>!hh(e)).map(async e=>await ph(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function Th(e){return(await Promise.all(e.map(async e=>_h(e)?null:Ch(await ph(e))))).filter(e=>!!e)}function Eh(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Op(`Circular alias \`${[...n].join(` -> `)} -> ${e}\``);n.add(e)}}return e}var Dh=class extends ch{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=Ch(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Hp.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Eh(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._syncRegistry?._grammars?.get(e.scopeName)?.dispose(),this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new Op(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return 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);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},Oh=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}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(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).includes(e.scopeName)||this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},kh=0;function Ah(e){kh+=1,e.warnings!==!1&&kh>=10&&kh%10==0&&console.warn(`[Shiki] ${kh} 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 t=!1;if(!e.engine)throw new Op("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Ch),i=new Dh(new Oh(e.engine,n),r,n,e.langAlias),a;function o(t){return Eh(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new Op(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new Op(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await wh(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await Th(e))}function g(){if(t)throw new Op(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--kh)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function jh(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([Th(e.themes||[]),wh(e.langs||[]),e.engine]);return Ah({...e,themes:t,langs:n,engine:r})}var Mh=new WeakMap;function Nh(e,t){Mh.set(e,t)}function Ph(e){return Mh.get(e)}var Fh=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(fh(n).map(e=>[e,lh])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Ih(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Ih(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function Lh(e,t){if(!(e instanceof Fh))throw new Op(`Invalid grammar state`);return e.getInternalStack(t)}var Rh=/,/,zh=/ /;function Bh(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(mh(e.resolveLangAlias(n.lang||`text`))||gh(r))return yh(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new Op(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new Op(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return Hh(t,o,i,a,n)}function Vh(...e){if(e.length===2)return Ph(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(mh(i)||gh(a))throw new Op(`Plain language does not have grammar state`);if(i===`ansi`)throw new Op(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new Fh(Uh(n,c,o,s,r).stateStack,c.name,o.name)}function Hh(e,t,n,r,i){let a=Uh(e,t,n,r,i),o=new Fh(a.stateStack,t.name,n.name);return Nh(a.tokens,o),a.tokens}function Uh(e,t,n,r,i){let a=uh(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500,includeExplanation:c=!1}=i,l=yh(e),u=i.grammarState?Lh(i.grammarState,n.name)??lh:i.grammarContextCode==null?lh:Uh(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,d=[],f=[];for(let e=0,i=l.length;e<i;e++){let[i,p]=l[e];if(i===``){d=[],f.push([]);continue}if(o>0&&i.length>=o){d=[],f.push([{content:i,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;c&&c!==`tokenType`&&(m=t.tokenizeLine(i,u,s),h=m.tokens,g=0);let _=t.tokenizeLine2(i,u,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:i.length;if(t===o)continue;let s=_.tokens[2*e+1],l=dh(r[tm.getForeground(s)],a),u=tm.getFontStyle(s),f={content:i.substring(t,o),offset:p+t,color:l,fontStyle:u};if(c===`tokenType`)f.type=tm.getTokenType(s);else if(c){let e=[];if(c!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(Rh).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(zh))})}f.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=i.substring(t.startIndex,t.endIndex);r+=n.length,f.explanation.push({content:n,scopes:c===`scopeName`?Wh(t.scopes):Gh(e,t.scopes)}),g+=1}}d.push(f)}f.push(d),d=[],u=_.ruleStack}return{tokens:f,stateStack:u}}function Wh(e){return e.map(e=>({scopeName:e}))}function Gh(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:Jh(e,i,t.slice(0,r))}}return n}function Kh(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function qh(e,t,n){if(!Kh(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)Kh(e[r],n[i])&&--r,--i;return r===-1}function Jh(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(qh(e,t,n)){r.push(a);break}return r}function Yh(e,t,n,r=Bh){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:Ph(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=Xh(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:c,...l}=e[t][r];a.variants[i[n].color]=l}),a})),c=a[0].state?new Fh(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&Nh(s,c),s}function Xh(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}var Zh=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],Qh=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Qh.prototype.normal={},Qh.prototype.property={},Qh.prototype.space=void 0;function $h(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Qh(n,r,t)}function eg(e){return e.toLowerCase()}var tg=class{constructor(e,t){this.attribute=t,this.property=e}};tg.prototype.attribute=``,tg.prototype.booleanish=!1,tg.prototype.boolean=!1,tg.prototype.commaOrSpaceSeparated=!1,tg.prototype.commaSeparated=!1,tg.prototype.defined=!1,tg.prototype.mustUseProperty=!1,tg.prototype.number=!1,tg.prototype.overloadedBoolean=!1,tg.prototype.property=``,tg.prototype.spaceSeparated=!1,tg.prototype.space=void 0;var ng=s({boolean:()=>Z,booleanish:()=>ig,commaOrSpaceSeparated:()=>cg,commaSeparated:()=>sg,number:()=>Q,overloadedBoolean:()=>ag,spaceSeparated:()=>og}),rg=0,Z=lg(),ig=lg(),ag=lg(),Q=lg(),og=lg(),sg=lg(),cg=lg();function lg(){return 2**++rg}var ug=Object.keys(ng),dg=class extends tg{constructor(e,t,n,r){let i=-1;if(super(e,t),fg(this,`space`,r),typeof n==`number`)for(;++i<ug.length;){let e=ug[i];fg(this,ug[i],(n&ng[e])===ng[e])}}};dg.prototype.defined=!0;function fg(e,t,n){n&&(e[t]=n)}function pg(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new dg(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[eg(r)]=r,n[eg(a.attribute)]=r}return new Qh(t,n,e.space)}var mg=pg({properties:{ariaActiveDescendant:null,ariaAtomic:ig,ariaAutoComplete:null,ariaBusy:ig,ariaChecked:ig,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:og,ariaCurrent:null,ariaDescribedBy:og,ariaDetails:null,ariaDisabled:ig,ariaDropEffect:og,ariaErrorMessage:null,ariaExpanded:ig,ariaFlowTo:og,ariaGrabbed:ig,ariaHasPopup:null,ariaHidden:ig,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:og,ariaLevel:Q,ariaLive:null,ariaModal:ig,ariaMultiLine:ig,ariaMultiSelectable:ig,ariaOrientation:null,ariaOwns:og,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:ig,ariaReadOnly:ig,ariaRelevant:null,ariaRequired:ig,ariaRoleDescription:og,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:ig,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function hg(e,t){return t in e?e[t]:t}function gg(e,t){return hg(e,t.toLowerCase())}var _g=pg({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:sg,acceptCharset:og,accessKey:og,action:null,allow:null,allowFullScreen:Z,allowPaymentRequest:Z,allowUserMedia:Z,alpha:Z,alt:null,as:null,async:Z,autoCapitalize:null,autoComplete:og,autoFocus:Z,autoPlay:Z,blocking:og,capture:null,charSet:null,checked:Z,cite:null,className:og,closedBy:null,colorSpace:null,cols:Q,colSpan:Q,command:null,commandFor:null,content:null,contentEditable:ig,controls:Z,controlsList:og,coords:Q|sg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Z,defer:Z,dir:null,dirName:null,disabled:Z,download:ag,draggable:ig,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Z,formTarget:null,headers:og,height:Q,hidden:ag,high:Q,href:null,hrefLang:null,htmlFor:og,httpEquiv:og,id:null,imageSizes:null,imageSrcSet:null,inert:Z,inputMode:null,integrity:null,is:null,isMap:Z,itemId:null,itemProp:og,itemRef:og,itemScope:Z,itemType:og,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Z,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:Z,muted:Z,name:null,nonce:null,noModule:Z,noValidate:Z,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:Z,optimum:Q,pattern:null,ping:og,placeholder:null,playsInline:Z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Z,referrerPolicy:null,rel:og,required:Z,reversed:Z,rows:Q,rowSpan:Q,sandbox:og,scope:null,scoped:Z,seamless:Z,selected:Z,shadowRootClonable:Z,shadowRootCustomElementRegistry:Z,shadowRootDelegatesFocus:Z,shadowRootMode:null,shadowRootSerializable:Z,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:ig,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:Z,useMap:null,value:ig,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:og,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Z,declare:Z,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:Z,noHref:Z,noShade:Z,noWrap:Z,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:ig,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Z,disablePictureInPicture:Z,disableRemotePlayback:Z,exportParts:sg,part:og,prefix:null,property:null,results:Q,security:null,unselectable:null},space:`html`,transform:gg}),vg=pg({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:cg,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:og,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:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:Z,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,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:sg,g2:sg,glyphName:sg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:cg,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Q,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:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:og,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:cg,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:cg,rev:cg,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:cg,requiredFeatures:cg,requiredFonts:cg,requiredFormats:cg,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:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:cg,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:cg,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:cg,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:hg}),yg=pg({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),bg=pg({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:gg}),xg=pg({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Sg=/[A-Z]/g,Cg=/-[a-z]/g,wg=/^data[-\w.:]+$/i;function Tg(e,t){let n=eg(t),r=t,i=tg;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&wg.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(Cg,Dg);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!Cg.test(e)){let n=e.replace(Sg,Eg);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=dg}return new i(r,t)}function Eg(e){return`-`+e.toLowerCase()}function Dg(e){return e.charAt(1).toUpperCase()}var Og=$h([mg,_g,yg,bg,xg],`html`),kg=$h([mg,vg,yg,bg,xg],`svg`),Ag={}.hasOwnProperty;function jg(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&Ag.call(t,e)){let n=String(t[e]);i=Ag.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Mg=/["&'<>`]/g,Ng=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Pg=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Fg=/[|\\{}()[\]^$+*?.]/g,Ig=new WeakMap;function Lg(e,t){return e=e.replace(t.subset?Rg(t.subset):Mg,r),t.subset||t.escapeOnly?e:e.replace(Ng,n).replace(Pg,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function Rg(e){let t=Ig.get(e);return t||(t=zg(e),Ig.set(e,t)),t}function zg(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(Fg,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var Bg=/[\dA-Fa-f]/;function Vg(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!Bg.test(String.fromCharCode(t))?r:r+`;`}var Hg=/\d/;function Ug(e,t,n){let r=`&#`+String(e);return n&&t&&!Hg.test(String.fromCharCode(t))?r:r+`;`}var Wg=`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`.split(`.`),Gg={nbsp:`\xA0`,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:`€`},Kg=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],qg={}.hasOwnProperty,Jg={},Yg;for(Yg in Gg)qg.call(Gg,Yg)&&(Jg[Gg[Yg]]=Yg);var Xg=/[^\dA-Za-z]/;function Zg(e,t,n,r){let i=String.fromCharCode(e);if(qg.call(Jg,i)){let e=Jg[i],a=`&`+e;return n&&Wg.includes(e)&&!Kg.includes(e)&&(!r||t&&t!==61&&Xg.test(String.fromCharCode(t)))?a:a+`;`}return``}function Qg(e,t,n){let r=Vg(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Zg(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=Ug(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function $g(e,t){return Lg(e,Object.assign({format:Qg},t))}var e_=/^>|^->|<!--|-->|--!>|<!-$/g,t_=[`>`],n_=[`<`,`>`];function r_(e,t,n,r){return r.settings.bogusComments?`<?`+$g(e.value,Object.assign({},r.settings.characterReferences,{subset:t_}))+`>`:`<!--`+e.value.replace(e_,i)+`-->`;function i(e){return $g(e,Object.assign({},r.settings.characterReferences,{subset:n_}))}}function i_(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function a_(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function o_(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function s_(e){return e.join(` `).trim()}var c_=/[ \t\n\f\r]/g;function l_(e){return typeof e==`object`?e.type===`text`&&u_(e.value):u_(e)}function u_(e){return e.replace(c_,``)===``}var d_=m_(1),f_=m_(-1),p_=[];function m_(e){return t;function t(t,n,r){let i=t?t.children:p_,a=(n||0)+e,o=i[a];if(!r)for(;o&&l_(o);)a+=e,o=i[a];return o}}var h_={}.hasOwnProperty;function g_(e){return t;function t(t,n,r){return h_.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var __=g_({body:b_,caption:v_,colgroup:v_,dd:w_,dt:C_,head:v_,html:y_,li:S_,optgroup:E_,option:D_,p:x_,rp:T_,rt:T_,tbody:k_,td:M_,tfoot:A_,th:M_,thead:O_,tr:j_});function v_(e,t,n){let r=d_(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&l_(r.value.charAt(0)))}function y_(e,t,n){let r=d_(n,t);return!r||r.type!==`comment`}function b_(e,t,n){let r=d_(n,t);return!r||r.type!==`comment`}function x_(e,t,n){let r=d_(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.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 S_(e,t,n){let r=d_(n,t);return!r||r.type===`element`&&r.tagName===`li`}function C_(e,t,n){let r=d_(n,t);return!(!r||r.type!==`element`||r.tagName!==`dt`&&r.tagName!==`dd`)}function w_(e,t,n){let r=d_(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function T_(e,t,n){let r=d_(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function E_(e,t,n){let r=d_(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function D_(e,t,n){let r=d_(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function O_(e,t,n){let r=d_(n,t);return!(!r||r.type!==`element`||r.tagName!==`tbody`&&r.tagName!==`tfoot`)}function k_(e,t,n){let r=d_(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function A_(e,t,n){return!d_(n,t)}function j_(e,t,n){let r=d_(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function M_(e,t,n){let r=d_(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var N_=g_({body:I_,colgroup:L_,head:F_,html:P_,tbody:R_});function P_(e){let t=d_(e,-1);return!t||t.type!==`comment`}function F_(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function I_(e){let t=d_(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&l_(t.value.charAt(0)))&&(t.type!==`element`||t.tagName!==`meta`&&t.tagName!==`link`&&t.tagName!==`script`&&t.tagName!==`style`&&t.tagName!==`template`)}function L_(e,t,n){let r=f_(n,t),i=d_(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&__(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function R_(e,t,n){let r=f_(n,t),i=d_(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&__(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var z_={name:[[`
72
+ `)}function Xf(e){return`${e===0?0:1},${e}`}function Zf(e){if(e.newContent===null)return null;let t=ve(e.newContent),n=[],r=1,i=0,a=e=>{for(;r<=e;r++)n.push({type:`context`,oldNo:r+i,newNo:r,text:t[r-1]})};for(let t of e.hunks)a(t.newLines===0?t.newStart:t.newStart-1),n.push(...t.lines),r+=t.newLines,i+=t.oldLines-t.newLines;a(t.length);let o=t.length+i,s={header:`@@ -${Xf(o)} +${Xf(t.length)} @@`,oldStart:o===0?0:1,oldLines:o,newStart:t.length===0?0:1,newLines:t.length,lines:n};return{path:e.path,hunks:[s],newContent:e.newContent}}function Qf({anchorText:e,suggestion:t}){let n=ve(e),r=ve(t);return(0,j.jsxs)(`div`,{className:`fix`,children:[n.map((e,t)=>(0,j.jsxs)(`div`,{className:`fix-line is-del`,children:[(0,j.jsx)(`span`,{className:`fix-marker`,children:`−`}),(0,j.jsx)(`span`,{className:`fix-code`,children:e})]},`del-${t}`)),r.map((e,t)=>(0,j.jsxs)(`div`,{className:`fix-line is-add`,children:[(0,j.jsx)(`span`,{className:`fix-marker`,children:`+`}),(0,j.jsx)(`span`,{className:`fix-code`,children:e})]},`add-${t}`)),r.length===0&&(0,j.jsx)(`div`,{className:`fix-empty`,children:`Les lignes visées sont supprimées.`})]})}function $f({analysis:e,finding:t,onAddNote:n}){let r=A(e=>e.setFindingStatus),i=A(e=>e.copy),a=A(e=>e.saving),o=t.location;return(0,j.jsxs)(`article`,{className:`finding-card is-${t.status}`,id:`finding-${t.id}`,children:[(0,j.jsxs)(`header`,{className:`finding-head`,children:[(0,j.jsx)(ql,{severity:t.severity}),(0,j.jsx)(`h3`,{className:`finding-title`,children:t.title}),(0,j.jsx)(Xl,{kind:t.kind}),(0,j.jsx)(Yl,{status:t.status}),o&&(0,j.jsx)(`span`,{className:`finding-lines mono`,children:Fe(o.startLine,o.endLine)})]}),t.body.trim()!==``&&(0,j.jsx)(`p`,{className:`finding-body`,children:t.body}),t.status===`outdated`&&(0,j.jsx)(`p`,{className:`finding-outdated`,children:`Les lignes visées ont changé depuis la rédaction de ce constat : l'agent doit le réancrer avec update_finding.`}),t.suggestion!==null&&t.anchorText!==null&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`div`,{className:`finding-section-title`,children:`Correctif proposé`}),(0,j.jsx)(Qf,{anchorText:t.anchorText,suggestion:t.suggestion})]}),(0,j.jsxs)(`footer`,{className:`finding-actions`,children:[(0,j.jsxs)(`button`,{type:`button`,className:`button button-secondary`,onClick:()=>void i(Cf(e,{findingIds:[t.id],noteIds:[],decision:null}),`Prompt du constat copié dans le presse-papiers.`),children:[(0,j.jsx)(M,{name:`bot`,color:`#b18cff`}),`Copier le prompt pour l'agent`]}),t.status===`open`&&(0,j.jsx)(`button`,{type:`button`,className:`link-button muted`,disabled:a,onClick:()=>void r(t.id,`ignored`),children:`Ignorer`}),t.status===`ignored`&&(0,j.jsx)(`button`,{type:`button`,className:`link-button muted`,disabled:a,onClick:()=>void r(t.id,`open`),children:`Rouvrir`}),(0,j.jsx)(`span`,{className:`spacer`}),n&&(0,j.jsx)(`button`,{type:`button`,className:`link-button accent`,onClick:n,children:`Ajouter une remarque`})]})]})}function ep(e){return e.slice(0,e.length-e.trimStart().length)}function tp(e,t){let n=ep(e),r=ep(t),i=0;for(;i<n.length&&i<r.length&&n[i]===r[i];)i++;return{start:i,oldEnd:n.length,newEnd:r.length}}function np(e,t){let n=e=>e.map(e=>e.text.trimStart()),r=n(e),i=n(t),a=i.length+1,o=new Uint32Array((r.length+1)*a);for(let e=r.length-1;e>=0;e--)for(let t=i.length-1;t>=0;t--)o[e*a+t]=r[e]===i[t]?o[(e+1)*a+t+1]+1:Math.max(o[(e+1)*a+t],o[e*a+t+1]);let s=[],c=0,l=0;for(;c<r.length&&l<i.length;)r[c]===i[l]?s.push([c++,l++]):o[(c+1)*a+l]>=o[c*a+l+1]?c++:l++;return s}function rp(e){let t=[],n=0;for(;n<e.length;){if(e[n].type!==`del`){t.push({line:e[n++],oldLine:null});continue}let r=[],i=[];for(;n<e.length&&e[n].type===`del`;)r.push(e[n++]);for(;n<e.length&&e[n].type===`add`;)i.push(e[n++]);let a=0,o=0,s=(e,n)=>{for(;a<e;a++)t.push({line:r[a],oldLine:null});for(;o<n;o++)t.push({line:i[o],oldLine:null})};for(let[e,n]of np(r,i))s(e,n),t.push({line:i[o++],oldLine:r[a++]});s(r.length,i.length)}return t}function X({entry:e,small:t}){let n=ue[e.finding.severity];return(0,j.jsx)(`span`,{className:`finding-number${t?` is-small`:``}`,style:{color:n.color,background:n.background,borderColor:n.color},"aria-label":`Constat ${e.number}`,children:e.number})}function ip(e,t){return e===`applied`?t?`Correctif appliqué dans le code`:`Appliquer le correctif dans le code`:t?`Correctif affiché dans le code`:`Afficher le correctif dans le code`}function ap({analysis:e,entry:t,fix:n,mode:r,onToggleFix:i,onAddNote:a,highlighted:o}){let s=A(e=>e.setFindingStatus),c=A(e=>e.copy),l=A(e=>e.saving),{finding:u}=t,d=ue[u.severity],f=n.state===`shown`,p=r===`off`||n.state===`blocked`;return(0,j.jsxs)(`article`,{className:`margin-card is-${u.status}${f?` is-fix-shown`:``}${o?` is-target`:``}`,id:`finding-${u.id}`,"data-finding-card":u.id,style:{"--severity":d.color},children:[(0,j.jsxs)(`header`,{className:`margin-card-head`,children:[(0,j.jsx)(X,{entry:t}),(0,j.jsx)(`span`,{className:`pill pill-small margin-card-severity`,style:{color:d.color,background:d.background},children:d.label}),(0,j.jsx)(Xl,{kind:u.kind}),(0,j.jsx)(Yl,{status:u.status}),(0,j.jsxs)(`span`,{className:`margin-card-lines mono`,children:[`l. `,ye(t.startLine,t.endLine,`–`)]})]}),(0,j.jsx)(`h3`,{className:`margin-card-title`,children:u.title}),u.body.trim()!==``&&(0,j.jsx)(`p`,{className:`margin-card-body`,children:u.body}),u.status===`outdated`&&(0,j.jsx)(`p`,{className:`finding-outdated`,children:`Les lignes visées ont changé depuis la rédaction de ce constat : l'agent doit le réancrer avec update_finding.`}),(n.state===`shown`||n.state===`hidden`||n.state===`blocked`)&&(0,j.jsxs)(`label`,{className:`fix-toggle${f?` is-on`:``}${p?` is-disabled`:``}`,children:[(0,j.jsx)(`input`,{type:`checkbox`,className:`visually-hidden`,checked:f,disabled:p,onChange:e=>i(e.target.checked)}),(0,j.jsx)(`span`,{className:`switch`,"aria-hidden":`true`}),ip(r,f)]}),r===`off`&&n.state===`hidden`&&(0,j.jsx)(`p`,{className:`margin-card-hint`,children:`Choisissez « Avant / après » ou « Code corrigé » pour afficher le correctif.`}),n.state===`blocked`&&(0,j.jsx)(`p`,{className:`margin-card-hint`,children:r===`applied`?`Ses lignes recouvrent le correctif du constat ${n.blockedBy} : retirez-le pour appliquer celui-ci dans le code.`:`Ses lignes recouvrent le correctif du constat ${n.blockedBy} : masquez-le pour afficher celui-ci dans le code.`}),n.state===`outside`&&u.suggestion!==null&&u.anchorText!==null&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`p`,{className:`margin-card-hint`,children:`Les lignes visées ne sont pas toutes affichées dans le diff : voici le correctif proposé.`}),(0,j.jsx)(Qf,{anchorText:u.anchorText,suggestion:u.suggestion})]}),(0,j.jsxs)(`footer`,{className:`margin-card-actions`,children:[(0,j.jsxs)(`button`,{type:`button`,className:`margin-button`,onClick:()=>void c(Cf(e,{findingIds:[u.id],noteIds:[],decision:null}),`Prompt du constat copié dans le presse-papiers.`),children:[(0,j.jsx)(M,{name:`bot`,color:`#b18cff`}),`Copier le prompt`]}),u.status===`open`&&(0,j.jsxs)(`button`,{type:`button`,className:`margin-button`,disabled:l,onClick:()=>void s(u.id,`ignored`),children:[(0,j.jsx)(M,{name:`eye-off`,color:`#9aa1b1`}),`Ignorer`]}),u.status===`ignored`&&(0,j.jsxs)(`button`,{type:`button`,className:`margin-button`,disabled:l,onClick:()=>void s(u.id,`open`),children:[(0,j.jsx)(M,{name:`rotate-ccw`,color:`#9aa1b1`}),`Rouvrir`]}),a&&(0,j.jsxs)(`button`,{type:`button`,className:`margin-button`,onClick:a,children:[(0,j.jsx)(M,{name:`message-square`,color:`#9aa1b1`}),`Remarque`]})]})]})}function op(e,t){let n=e.findings.flatMap(e=>e.location?.path===t?[{finding:e,startLine:e.location.startLine,endLine:e.location.endLine}]:[]);return n.sort((e,t)=>e.startLine-t.startLine||e.endLine-t.endLine),n.map((e,t)=>({...e,number:t+1}))}function sp(e){let t=new Set;for(let n of e.hunks)for(let e of n.lines)e.newNo!==null&&t.add(e.newNo);return t}function cp(e,t,n){for(let r=t;r<=n;r++)if(e.has(r))return r;return null}var lp={off:`Sans correctif`,"before-after":`Avant / après`,applied:`Code corrigé`},up={diff:`Unifié`,split:`Côte à côte`,new:`Nouveau code`},dp={changes:`Modifications`,file:`Fichier entier`};function fp(e,t,n){return e.hunks.some(e=>{let r=e.lines.flatMap(e=>e.newNo===null?[]:[e.newNo]);return r.includes(t)&&r.includes(n)})}function pp(e,t,n,r){let i=new Map,a=[];for(let o of e){let{finding:e}=o;if(e.suggestion===null)i.set(e.id,{state:`none`});else if(!fp(t,o.startLine,o.endLine))i.set(e.id,{state:`outside`});else if(r===`off`||!n(e))i.set(e.id,{state:`hidden`});else{let t=a.find(e=>e.startLine<=o.endLine&&o.startLine<=e.endLine);t?i.set(e.id,{state:`blocked`,blockedBy:t.number}):(a.push(o),i.set(e.id,{state:`shown`}))}}return i}function mp(e){return e.kind===`line`?kp(e.line):jp(e.entry.finding.id)}function hp(e){return e.kind===`line`?e.line:e.entry.startLine-.5}function gp(e,t){return e===null||t===null?!1:e.kind===`line`?t.kind===`line`&&e.line===t.line:t.kind===`fix`&&e.entry.finding.id===t.entry.finding.id}function _p(e,t,n){let r=new Map;if(n!==`applied`)return r;for(let n of e)if(t.get(n.finding.id)?.state===`shown`)for(let e=n.startLine;e<=n.endLine;e++)r.set(e,n);return r}function vp(e,t){let n=t.get(e);return n?{kind:`fix`,entry:n}:{kind:`line`,line:e}}function yp(e,t,n,r){if(t.get(e.finding.id)?.state===`shown`)return{kind:`fix`,entry:e};for(let t=e.startLine;t<=e.endLine;t++)if(n.has(t)&&!r.has(t))return{kind:`line`,line:t};let i=cp(n,e.startLine,e.endLine);return i===null?null:vp(i,r)}function bp(e){return{severity:e.severity,muted:e.status!==`open`}}function xp(e,t){let n=null;for(let{finding:r,startLine:i,endLine:a}of e)t<i||t>a||(n===null||r.status===`open`&&n.status!==`open`||r.status===`open`==(n.status===`open`)&&ou(r.severity,n.severity)<0)&&(n=r);return n?bp(n):null}function Sp(e){return ve(e.finding.suggestion??``).map((t,n)=>({kind:`fix-line`,text:t,index:n,entry:e,bar:bp(e.finding)}))}function Cp(e,t){return e.explanations.filter(e=>e.location.path===t).sort((e,t)=>e.location.startLine-t.location.startLine||(e.location.side===t.location.side?0:e.location.side===`old`?-1:1)||e.location.endLine-t.location.endLine)}function wp(e,t){let{side:n,startLine:r,endLine:i}=e.location,a=n===`new`?t.newNo:t.type===`add`?null:t.oldNo;return a!==null&&a>=r&&a<=i}function Tp(e,t,n,r){for(let i of e.hunks){let e=i.lines.findIndex(e=>wp(t,e));if(e===-1)continue;let a=i.lines[e];if(a.newNo!==null){let e=vp(a.newNo,n);return{selector:mp(e),order:hp(e)}}let o=i.lines.slice(e).find(e=>e.newNo!==null),s=i.lines.slice(0,e).findLast(e=>e.newNo!==null);if(r===`new`){let e=o??s;if(!e)continue;let t=vp(e.newNo,n);return{selector:mp(t),order:hp(t)+(o?-.25:.25)}}let c=o?o.newNo-.25:s?s.newNo+.25:i.newStart;return{selector:Ap(a.oldNo),order:c}}return null}function Ep(e,t,n,r,i,a){let o=sp(e),s=_p(t,n,r),c=t.filter(e=>n.get(e.finding.id)?.state===`shown`),l=new Map,u=new Map;for(let e of t){if(n.get(e.finding.id)?.state===`shown`)continue;let t=yp(e,n,o,s);if(t?.kind===`line`&&l.set(t.line,[...l.get(t.line)??[],e]),t?.kind===`fix`){let n=t.entry.finding.id;u.set(n,[...u.get(n)??[],e])}}let d=e=>({kind:`fix-strip`,entry:e,bar:bp(e.finding),pills:u.get(e.finding.id)??[]});return e.hunks.map(e=>{let n=[];for(let{line:o,oldLine:s}of rp(e.lines)){if(a===`new`&&o.type===`del`)continue;let e=o.newNo,u=e===null?void 0:c.find(t=>e>=t.startLine&&e<=t.endLine);if(r===`applied`&&u){u.startLine===e&&n.push(d(u),...Sp(u));continue}u&&u.startLine===e&&n.push(d(u)),n.push({kind:`line`,line:o,oldLine:s,replaced:u!==void 0&&o.type!==`del`,explained:i.some(e=>wp(e,o)||s!==null&&wp(e,s)),bar:u?bp(u.finding):e===null?null:xp(t,e),pills:e===null?[]:l.get(e)??[]}),u&&u.endLine===e&&n.push(...Sp(u))}return{hunk:e,rows:n}})}function Dp(e,t){return e?.kind===`line`&&e.oldLine===null&&e.line.type===t}function Op(e){let t=[],n=0;for(;n<e.length;){let r=e[n];if(r.kind===`fix-strip`)t.push({kind:`full`,row:r}),n++;else if(r.kind===`line`&&r.oldLine!==null)t.push({kind:`pair`,left:r,right:r}),n++;else if(r.kind===`fix-line`||Dp(r,`add`))t.push({kind:`pair`,left:null,right:r}),n++;else if(Dp(r,`context`))t.push({kind:`pair`,left:r,right:r}),n++;else{let r=[],i=[];for(let t=e[n];Dp(t,`del`);t=e[++n])r.push(t);for(let t=e[n];Dp(t,`add`);t=e[++n])i.push(t);for(let e=0;e<Math.max(r.length,i.length);e++)t.push({kind:`pair`,left:r[e]??null,right:i[e]??null})}}return t}function kp(e){return`[data-line="${e}"]`}function Ap(e){return`[data-old-line="${e}"]`}function jp(e){return`[data-fix="${e}"]`}function Mp(e,t){return e.notes.filter(e=>e.location?.path===t&&e.location.line!==null).sort((e,t)=>e.location.line-t.location.line)}function Np(e,t){return e===t?`la ligne ${e}`:`les lignes ${e} à ${t}`}var Pp=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Fp(e){return Ip(e)}function Ip(e){return Array.isArray(e)?Lp(e):e instanceof RegExp?e:typeof e==`object`?Rp(e):e}function Lp(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Ip(e[n]);return t}function Rp(e){let t={};for(let n in e)t[n]=Ip(e[n]);return t}function zp(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function Bp(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?Bp(e.substring(0,e.length-1)):e.substr(~t+1)}var Vp=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Hp=class{static hasCaptures(e){return e!==null&&(Vp.lastIndex=0,Vp.test(e))}static replaceCaptures(e,t,n){return e.replace(Vp,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function Up(e,t){return e<t?-1:+(e>t)}function Wp(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=Up(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function Gp(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Kp(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var qp=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Jp=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme($p(e),t)}static createFromParsedTheme(e,t){return nm(e,t)}_cachedMatchRoot=new qp(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>Xp(e.parent,t.parentScopes));return n?new Qp(n.fontStyle,n.foreground,n.background):null}},Yp=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e||this.parent!==null&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function Xp(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Zp(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Zp(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var Qp=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function $p(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8}}let s=null;typeof i.settings.foreground==`string`&&Gp(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&Gp(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new em(l,u,e,o,s,c)}}return n}var em=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},tm=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(tm||{});function nm(e,t){e.sort((e,t)=>{let n=Up(e.scope,t.scope);return n!==0||(n=Wp(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new rm(t),o=new Qp(n,a.getId(r),a.getId(i)),s=new om(new am(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new Jp(a,o,s)}var rm=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},im=Object.freeze([]),am=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||im,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},om=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),am.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(Wp(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new am(e,t,n,r,i))}},sm=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return!!(e&1024)}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=lm(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function cm(e){return e}function lm(e){return e}function um(e,t){let n=[],r=fm(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(dm(i)){let e=[];do e.push(i),i=r.next();while(dm(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function dm(e){return!!e&&!!e.match(/[\w\.:]+/)}function fm(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function pm(e){typeof e.dispose==`function`&&e.dispose()}var mm=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},hm=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},gm=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},_m=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new mm(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new gm;for(let n of e)vm(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof mm){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function vm(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof mm?bm({baseGrammar:a,selfGrammar:i},r):ym(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new mm(e))}function ym(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];xm([r],t,n)}}function bm(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&xm(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&xm(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function xm(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?zp({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&xm(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Dm(i);switch(a.kind){case 0:bm({...t,selfGrammar:t.baseGrammar},n);break;case 1:bm(t,n);break;case 2:ym(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?ym(a.ruleName,i,n):bm(i,n)}else a.kind===4?n.add(new hm(a.scopeName,a.ruleName)):n.add(new mm(a.scopeName))}}}var Sm=class{kind=0},Cm=class{kind=1},wm=class{constructor(e){this.ruleName=e}kind=2},Tm=class{constructor(e){this.scopeName=e}kind=3},Em=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Dm(e){if(e===`$base`)return new Sm;if(e===`$self`)return new Cm;let t=e.indexOf(`#`);return t===-1?new Tm(e):t===0?new wm(e.substring(1)):new Em(e.substring(0,t),e.substring(t+1))}var Om=/\\(\d+)/,km=/\\(\d+)/g,Am=-1,jm=-2;function Mm(e){return e}function Nm(e){return e}var Pm=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Hp.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Hp.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${Bp(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Hp.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Hp.replaceCaptures(this._contentName,e,t)}},Fm=class extends Pm{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},Im=class extends Pm{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Vm(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Hm,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Lm=class extends Pm{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Hm,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Rm=class extends Pm{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new Vm(i,this.id),this.beginCaptures=a,this._end=new Vm(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Hm;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},zm=class extends Pm{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new Vm(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new Vm(o,jm),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Hm;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Hm,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},Bm=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new Fm(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Im(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=zp({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new Lm(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new zm(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Rm(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=Dm(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l){if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository)}}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof Lm||e instanceof Rm||e instanceof zm)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Vm=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this._anchorCache=this.hasAnchor?this._buildAnchorCache():null,this.ruleId=t,this.hasBackReferences=typeof this.source==`string`&&Om.test(this.source)}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return km.lastIndex=0,this.source.replace(km,(e,t)=>Kp(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`￿`,t[i+1]=`￿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`￿`,t[i+1]=`G`,n[i+1]=`￿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Hm=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(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new Um(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new Um(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},Um=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
73
+ `)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Wm=class{constructor(e,t){this.languageId=e,this.tokenType=t}},Gm=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new Wm(e,8),this._embeddedLanguagesMatcher=new Km(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Wm(0,0);_getBasicScopeAttributes=new qp(e=>new Wm(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.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 Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Km=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>Kp(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var qm=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Jm(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=Ym(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new qm(i,!0);f()}return new qm(i,!1);function f(){let o=Xm(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===Am){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),th(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof Rm){let r=o;th(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof zm){let r=o;th(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(th(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function Ym(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof zm&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=eh(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==jm){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),th(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function Xm(e,t,n,r,i,a){let o=Zm(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=Qm(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function Zm(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=$m(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Qm(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=$m(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function $m(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function eh(e,t,n,r,i){return{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function th(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));Jm(e,p,n&&d.start===0,d.start,f,i,!1,0),pm(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new nh(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var nh=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function rh(e,t,n,r,i,a,o,s){return new sh(e,t,n,r,i,a,o,s)}function ih(e,t,n,r,i){let a=um(t,ah),o=Bm.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function ah(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(oh(t[r],e))return n=r+1,!0;return!1})}function oh(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var sh=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new Gm(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=ch(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=um(e,ah);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)ih(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&ih(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(Mm(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[Nm(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=ch(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Bm.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===uh.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=sm.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?lh.createRootAndLookUpScopeName(a,r,this):lh.createRoot(`unknown`,r),t=new uh(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
74
+ `;let a=this.createOnigString(e),o=a.content.length,s=new fh(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=Jm(this,a,i,0,t,s,!0,r);return pm(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function ch(e,t){return e=Fp(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var lh=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=Yp.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new Yp(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new Yp(null,t),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(n,i,o);return new e(null,a,s)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(1)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),sm.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a),s=e.mergeAttributes(t.tokenAttributes,i,o);return new e(t,a,s)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},uh=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t!==null&&e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?lh.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(1)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:Nm(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=lh.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,Mm(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,lh.fromExtension(r,n.contentNameScopesList))}},dh=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):um(e,ah).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>um(e,ah).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},fh=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=sm.set(n,0,cm(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=sm.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},ph=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,rh(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},mh=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new ph(Jp.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Jp.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new dh(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new _m(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},hh=uh.NULL;function gh(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function _h(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function vh(e){return Array.isArray(e)?e:[e]}async function yh(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function bh(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function xh(e){return e===`ansi`||bh(e)}function Sh(e){return e===`none`}function Ch(e){return Sh(e)}var wh=/(\r?\n)/g;function Th(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(wh),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}var Eh={light:`#333333`,dark:`#bbbbbb`},Dh={light:`#fffffe`,dark:`#1e1e1e`},Oh=`__shiki_resolved`;function kh(e){if(e?.[Oh])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?Eh.light:Eh.dark,n||=t.type===`light`?Dh.light:Dh.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,Oh,{enumerable:!1,writable:!1,value:!0}),t}async function Ah(e){return[...new Set((await Promise.all(e.filter(e=>!xh(e)).map(async e=>await yh(e).then(e=>Array.isArray(e)?e:[e])))).flat())]}async function jh(e){return(await Promise.all(e.map(async e=>Ch(e)?null:kh(await yh(e))))).filter(e=>!!e)}function Mh(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Pp(`Circular alias \`${[...n].join(` -> `)} -> ${e}\``);n.add(e)}}return e}var Nh=class extends mh{_resolver;_themes;_langs;_alias;_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=kh(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Jp.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Mh(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._syncRegistry?._grammars?.get(e.scopeName)?.dispose(),this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=[...this._langGraph.entries()],n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new Pp(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return 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);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},Ph=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}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(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).includes(e.scopeName)||this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},Fh=0;function Ih(e){Fh+=1,e.warnings!==!1&&Fh>=10&&Fh%10==0&&console.warn(`[Shiki] ${Fh} 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 t=!1;if(!e.engine)throw new Pp("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(kh),i=new Nh(new Ph(e.engine,n),r,n,e.langAlias),a;function o(t){return Mh(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new Pp(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new Pp(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await Ah(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await jh(e))}function g(){if(t)throw new Pp(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--Fh)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function Lh(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([jh(e.themes||[]),Ah(e.langs||[]),e.engine]);return Ih({...e,themes:t,langs:n,engine:r})}var Rh=new WeakMap;function zh(e,t){Rh.set(e,t)}function Bh(e){return Rh.get(e)}var Vh=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(vh(n).map(e=>[e,hh])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Hh(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Hh(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function Uh(e,t){if(!(e instanceof Vh))throw new Pp(`Invalid grammar state`);return e.getInternalStack(t)}var Wh=/,/,Gh=/ /;function Kh(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(bh(e.resolveLangAlias(n.lang||`text`))||Sh(r))return Th(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new Pp(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new Pp(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return Jh(t,o,i,a,n)}function qh(...e){if(e.length===2)return Bh(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(bh(i)||Sh(a))throw new Pp(`Plain language does not have grammar state`);if(i===`ansi`)throw new Pp(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new Vh(Yh(n,c,o,s,r).stateStack,c.name,o.name)}function Jh(e,t,n,r,i){let a=Yh(e,t,n,r,i),o=new Vh(a.stateStack,t.name,n.name);return zh(a.tokens,o),a.tokens}function Yh(e,t,n,r,i){let a=gh(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500,includeExplanation:c=!1}=i,l=Th(e),u=i.grammarState?Uh(i.grammarState,n.name)??hh:i.grammarContextCode==null?hh:Yh(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,d=[],f=[];for(let e=0,i=l.length;e<i;e++){let[i,p]=l[e];if(i===``){d=[],f.push([]);continue}if(o>0&&i.length>=o){d=[],f.push([{content:i,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;c&&c!==`tokenType`&&(m=t.tokenizeLine(i,u,s),h=m.tokens,g=0);let _=t.tokenizeLine2(i,u,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:i.length;if(t===o)continue;let s=_.tokens[2*e+1],l=_h(r[sm.getForeground(s)],a),u=sm.getFontStyle(s),f={content:i.substring(t,o),offset:p+t,color:l,fontStyle:u};if(c===`tokenType`)f.type=sm.getTokenType(s);else if(c){let e=[];if(c!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(Wh).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(Gh))})}f.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=i.substring(t.startIndex,t.endIndex);r+=n.length,f.explanation.push({content:n,scopes:c===`scopeName`?Xh(t.scopes):Zh(e,t.scopes)}),g+=1}}d.push(f)}f.push(d),d=[],u=_.ruleStack}return{tokens:f,stateStack:u}}function Xh(e){return e.map(e=>({scopeName:e}))}function Zh(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:eg(e,i,t.slice(0,r))}}return n}function Qh(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function $h(e,t,n){if(!Qh(e.at(-1),t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)Qh(e[r],n[i])&&--r,--i;return r===-1}function eg(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if($h(e,t,n)){r.push(a);break}return r}function tg(e,t,n,r=Kh){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:Bh(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=ng(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:c,...l}=e[t][r];a.variants[i[n].color]=l}),a})),c=a[0].state?new Vh(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&zh(s,c),s}function ng(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}var rg=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],ig=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};ig.prototype.normal={},ig.prototype.property={},ig.prototype.space=void 0;function ag(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ig(n,r,t)}function og(e){return e.toLowerCase()}var sg=class{constructor(e,t){this.attribute=t,this.property=e}};sg.prototype.attribute=``,sg.prototype.booleanish=!1,sg.prototype.boolean=!1,sg.prototype.commaOrSpaceSeparated=!1,sg.prototype.commaSeparated=!1,sg.prototype.defined=!1,sg.prototype.mustUseProperty=!1,sg.prototype.number=!1,sg.prototype.overloadedBoolean=!1,sg.prototype.property=``,sg.prototype.spaceSeparated=!1,sg.prototype.space=void 0;var cg=s({boolean:()=>Z,booleanish:()=>ug,commaOrSpaceSeparated:()=>mg,commaSeparated:()=>pg,number:()=>Q,overloadedBoolean:()=>dg,spaceSeparated:()=>fg}),lg=0,Z=hg(),ug=hg(),dg=hg(),Q=hg(),fg=hg(),pg=hg(),mg=hg();function hg(){return 2**++lg}var gg=Object.keys(cg),_g=class extends sg{constructor(e,t,n,r){let i=-1;if(super(e,t),vg(this,`space`,r),typeof n==`number`)for(;++i<gg.length;){let e=gg[i];vg(this,gg[i],(n&cg[e])===cg[e])}}};_g.prototype.defined=!0;function vg(e,t,n){n&&(e[t]=n)}function yg(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new _g(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[og(r)]=r,n[og(a.attribute)]=r}return new ig(t,n,e.space)}var bg=yg({properties:{ariaActiveDescendant:null,ariaAtomic:ug,ariaAutoComplete:null,ariaBusy:ug,ariaChecked:ug,ariaColCount:Q,ariaColIndex:Q,ariaColSpan:Q,ariaControls:fg,ariaCurrent:null,ariaDescribedBy:fg,ariaDetails:null,ariaDisabled:ug,ariaDropEffect:fg,ariaErrorMessage:null,ariaExpanded:ug,ariaFlowTo:fg,ariaGrabbed:ug,ariaHasPopup:null,ariaHidden:ug,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:fg,ariaLevel:Q,ariaLive:null,ariaModal:ug,ariaMultiLine:ug,ariaMultiSelectable:ug,ariaOrientation:null,ariaOwns:fg,ariaPlaceholder:null,ariaPosInSet:Q,ariaPressed:ug,ariaReadOnly:ug,ariaRelevant:null,ariaRequired:ug,ariaRoleDescription:fg,ariaRowCount:Q,ariaRowIndex:Q,ariaRowSpan:Q,ariaSelected:ug,ariaSetSize:Q,ariaSort:null,ariaValueMax:Q,ariaValueMin:Q,ariaValueNow:Q,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function xg(e,t){return t in e?e[t]:t}function Sg(e,t){return xg(e,t.toLowerCase())}var Cg=yg({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:pg,acceptCharset:fg,accessKey:fg,action:null,allow:null,allowFullScreen:Z,allowPaymentRequest:Z,allowUserMedia:Z,alpha:Z,alt:null,as:null,async:Z,autoCapitalize:null,autoComplete:fg,autoFocus:Z,autoPlay:Z,blocking:fg,capture:null,charSet:null,checked:Z,cite:null,className:fg,closedBy:null,colorSpace:null,cols:Q,colSpan:Q,command:null,commandFor:null,content:null,contentEditable:ug,controls:Z,controlsList:fg,coords:Q|pg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Z,defer:Z,dir:null,dirName:null,disabled:Z,download:dg,draggable:ug,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Z,formTarget:null,headers:fg,height:Q,hidden:dg,high:Q,href:null,hrefLang:null,htmlFor:fg,httpEquiv:fg,id:null,imageSizes:null,imageSrcSet:null,inert:Z,inputMode:null,integrity:null,is:null,isMap:Z,itemId:null,itemProp:fg,itemRef:fg,itemScope:Z,itemType:fg,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Z,low:Q,manifest:null,max:null,maxLength:Q,media:null,method:null,min:null,minLength:Q,multiple:Z,muted:Z,name:null,nonce:null,noModule:Z,noValidate:Z,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:Z,optimum:Q,pattern:null,ping:fg,placeholder:null,playsInline:Z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Z,referrerPolicy:null,rel:fg,required:Z,reversed:Z,rows:Q,rowSpan:Q,sandbox:fg,scope:null,scoped:Z,seamless:Z,selected:Z,shadowRootClonable:Z,shadowRootCustomElementRegistry:Z,shadowRootDelegatesFocus:Z,shadowRootMode:null,shadowRootSerializable:Z,shape:null,size:Q,sizes:null,slot:null,span:Q,spellCheck:ug,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Q,step:null,style:null,tabIndex:Q,target:null,title:null,translate:null,type:null,typeMustMatch:Z,useMap:null,value:ug,width:Q,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:fg,axis:null,background:null,bgColor:null,border:Q,borderColor:null,bottomMargin:Q,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Z,declare:Z,event:null,face:null,frame:null,frameBorder:null,hSpace:Q,leftMargin:Q,link:null,longDesc:null,lowSrc:null,marginHeight:Q,marginWidth:Q,noResize:Z,noHref:Z,noShade:Z,noWrap:Z,object:null,profile:null,prompt:null,rev:null,rightMargin:Q,rules:null,scheme:null,scrolling:ug,standby:null,summary:null,text:null,topMargin:Q,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Q,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Z,disablePictureInPicture:Z,disableRemotePlayback:Z,exportParts:pg,part:fg,prefix:null,property:null,results:Q,security:null,unselectable:null},space:`html`,transform:Sg}),wg=yg({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,maskType:`mask-type`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:mg,accentHeight:Q,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Q,amplitude:Q,arabicForm:null,ascent:Q,attributeName:null,attributeType:null,azimuth:Q,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Q,by:null,calcMode:null,capHeight:Q,className:fg,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:Q,diffuseConstant:Q,direction:null,display:null,dur:null,divisor:Q,dominantBaseline:null,download:Z,dx:null,dy:null,edgeMode:null,editable:null,elevation:Q,enableBackground:null,end:null,event:null,exponent:Q,externalResourcesRequired:null,fill:null,fillOpacity:Q,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:pg,g2:pg,glyphName:pg,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Q,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Q,horizOriginX:Q,horizOriginY:Q,id:null,ideographic:Q,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Q,k:Q,k1:Q,k2:Q,k3:Q,k4:Q,kernelMatrix:mg,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Q,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Q,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:Q,overlineThickness:Q,paintOrder:null,panose1:null,path:null,pathLength:Q,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:fg,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Q,pointsAtY:Q,pointsAtZ:Q,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:mg,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:mg,rev:mg,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:mg,requiredFeatures:mg,requiredFonts:mg,requiredFormats:mg,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:Q,specularExponent:Q,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Q,strikethroughThickness:Q,string:null,stroke:null,strokeDashArray:mg,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Q,strokeOpacity:Q,strokeWidth:null,style:null,surfaceScale:Q,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:mg,tabIndex:Q,tableValues:null,target:null,targetX:Q,targetY:Q,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:mg,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Q,underlineThickness:Q,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Q,values:null,vAlphabetic:Q,vMathematical:Q,vectorEffect:null,vHanging:Q,vIdeographic:Q,version:null,vertAdvY:Q,vertOriginX:Q,vertOriginY:Q,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Q,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:xg}),Tg=yg({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),Eg=yg({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Sg}),Dg=yg({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Og=/[A-Z]/g,kg=/-[a-z]/g,Ag=/^data[-\w.:]+$/i;function jg(e,t){let n=og(t),r=t,i=sg;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Ag.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(kg,Ng);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!kg.test(e)){let n=e.replace(Og,Mg);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=_g}return new i(r,t)}function Mg(e){return`-`+e.toLowerCase()}function Ng(e){return e.charAt(1).toUpperCase()}var Pg=ag([bg,Cg,Tg,Eg,Dg],`html`),Fg=ag([bg,wg,Tg,Eg,Dg],`svg`),Ig={}.hasOwnProperty;function Lg(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&Ig.call(t,e)){let n=String(t[e]);i=Ig.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Rg=/["&'<>`]/g,zg=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Bg=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Vg=/[|\\{}()[\]^$+*?.]/g,Hg=new WeakMap;function Ug(e,t){return e=e.replace(t.subset?Wg(t.subset):Rg,r),t.subset||t.escapeOnly?e:e.replace(zg,n).replace(Bg,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function Wg(e){let t=Hg.get(e);return t||(t=Gg(e),Hg.set(e,t)),t}function Gg(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(Vg,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var Kg=/[\dA-Fa-f]/;function qg(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!Kg.test(String.fromCharCode(t))?r:r+`;`}var Jg=/\d/;function Yg(e,t,n){let r=`&#`+String(e);return n&&t&&!Jg.test(String.fromCharCode(t))?r:r+`;`}var Xg=`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`.split(`.`),Zg={nbsp:`\xA0`,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:`€`},Qg=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],$g={}.hasOwnProperty,e_={},t_;for(t_ in Zg)$g.call(Zg,t_)&&(e_[Zg[t_]]=t_);var n_=/[^\dA-Za-z]/;function r_(e,t,n,r){let i=String.fromCharCode(e);if($g.call(e_,i)){let e=e_[i],a=`&`+e;return n&&Xg.includes(e)&&!Qg.includes(e)&&(!r||t&&t!==61&&n_.test(String.fromCharCode(t)))?a:a+`;`}return``}function i_(e,t,n){let r=qg(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=r_(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=Yg(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function a_(e,t){return Ug(e,Object.assign({format:i_},t))}var o_=/^>|^->|<!--|-->|--!>|<!-$/g,s_=[`>`],c_=[`<`,`>`];function l_(e,t,n,r){return r.settings.bogusComments?`<?`+a_(e.value,Object.assign({},r.settings.characterReferences,{subset:s_}))+`>`:`<!--`+e.value.replace(o_,i)+`-->`;function i(e){return a_(e,Object.assign({},r.settings.characterReferences,{subset:c_}))}}function u_(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function d_(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function f_(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function p_(e){return e.join(` `).trim()}var m_=/[ \t\n\f\r]/g;function h_(e){return typeof e==`object`?e.type===`text`&&g_(e.value):g_(e)}function g_(e){return e.replace(m_,``)===``}var __=b_(1),v_=b_(-1),y_=[];function b_(e){return t;function t(t,n,r){let i=t?t.children:y_,a=(n||0)+e,o=i[a];if(!r)for(;o&&h_(o);)a+=e,o=i[a];return o}}var x_={}.hasOwnProperty;function S_(e){return t;function t(t,n,r){return x_.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var C_=S_({body:E_,caption:w_,colgroup:w_,dd:A_,dt:k_,head:w_,html:T_,li:O_,optgroup:M_,option:N_,p:D_,rp:j_,rt:j_,tbody:F_,td:R_,tfoot:I_,th:R_,thead:P_,tr:L_});function w_(e,t,n){let r=__(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&h_(r.value.charAt(0)))}function T_(e,t,n){let r=__(n,t);return!r||r.type!==`comment`}function E_(e,t,n){let r=__(n,t);return!r||r.type!==`comment`}function D_(e,t,n){let r=__(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.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 O_(e,t,n){let r=__(n,t);return!r||r.type===`element`&&r.tagName===`li`}function k_(e,t,n){let r=__(n,t);return!(!r||r.type!==`element`||r.tagName!==`dt`&&r.tagName!==`dd`)}function A_(e,t,n){let r=__(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function j_(e,t,n){let r=__(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function M_(e,t,n){let r=__(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function N_(e,t,n){let r=__(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function P_(e,t,n){let r=__(n,t);return!(!r||r.type!==`element`||r.tagName!==`tbody`&&r.tagName!==`tfoot`)}function F_(e,t,n){let r=__(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function I_(e,t,n){return!__(n,t)}function L_(e,t,n){let r=__(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function R_(e,t,n){let r=__(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var z_=S_({body:H_,colgroup:U_,head:V_,html:B_,tbody:W_});function B_(e){let t=__(e,-1);return!t||t.type!==`comment`}function V_(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function H_(e){let t=__(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&h_(t.value.charAt(0)))&&(t.type!==`element`||t.tagName!==`meta`&&t.tagName!==`link`&&t.tagName!==`script`&&t.tagName!==`style`&&t.tagName!==`template`)}function U_(e,t,n){let r=v_(n,t),i=__(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&C_(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function W_(e,t,n){let r=v_(n,t),i=__(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&C_(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var G_={name:[[`
75
75
  \f\r &/=>`.split(``),`
76
76
  \f\r "&'/=>\``.split(``)],[`\0
77
77
  \f\r "&'/<=>`.split(``),`\0
@@ -79,9 +79,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
79
79
  \f\r &>`.split(``),`\0
80
80
  \f\r "&'<=>\``.split(``)],[`\0
81
81
  \f\r "&'<=>\``.split(``),`\0
82
- \f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function B_(e,t,n,r){let i=r.schema,a=i.space!==`svg`&&r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=kg);let l=V_(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!N_(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!__(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function V_(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=H_(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function H_(e,t,n){let r=Tg(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=$g(r.attribute,Object.assign({},e.settings.characterReferences,{subset:z_.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?o_:s_)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=$g(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:z_.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&a_(n,o)>a_(n,e.alternative)&&(o=e.alternative),s=o+$g(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?z_.single:z_.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var U_=[`<`,`&`];function W_(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:$g(e.value,Object.assign({},r.settings.characterReferences,{subset:U_}))}function G_(e,t,n,r){return r.settings.allowDangerousHtml?e.value:W_(e,t,n,r)}function K_(e,t,n,r){return r.all(e)}var q_=jg(`type`,{invalid:J_,unknown:Y_,handlers:{comment:r_,doctype:i_,element:B_,raw:G_,root:K_,text:W_}});function J_(e){throw Error("Expected node, not `"+e+"`")}function Y_(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var X_={},Z_={},Q_=[];function $_(e,t){let n=t||X_,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:ev,all:tv,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||Zh,characterReferences:n.characterReferences||Z_,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?kg:Og,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function ev(e,t,n){return q_(e,t,n,this)}function tv(e){let t=[],n=e&&e.children||Q_,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var nv=/\s+/g;function rv(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(nv)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(nv);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function iv(e){let t=yh(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t.at(-1).length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}var av=[`color`,`background-color`];function ov(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function sv(e,t){let n=0,r=e.length;for(;n<r;){let i=n+(r-n>>1);e[i]<=t?n=i+1:r=i}return n}function cv(e,t){let n=[...t instanceof Set?t:new Set(t)].sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=e.offset+e.content.length,r=sv(n,e.offset),i=r;for(;i<n.length&&n[i]<t;)i++;if(r===i)return e;let a=n.slice(r,i);for(let t=0;t<a.length;t++)a[t]-=e.offset;return ov(e,a)})):e}function lv(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>uv(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&av.includes(a)){if(r===`light-dark()`&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new Op('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=o[e][a]||`inherit`,d=o[r][a]||`inherit`;c[a]=`light-dark(${u}, ${d})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s}else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function uv(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&Yp.Italic&&(t[`font-style`]=`italic`),e.fontStyle&Yp.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&Yp.Underline&&n.push(`underline`),e.fontStyle&Yp.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function dv(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function fv(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=iv(t.source);function r(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new Op(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...n.indexToPos(e),offset:e}}{let t=n.lines[e.line];if(t===void 0)throw new Op(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${n.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new Op(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:n.posToIndex(e.line,r)}}}let i=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));pv(i),e.set(t.meta,{decorations:i,converter:n,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return cv(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=[...e.children].filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new Op(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=mv(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new Op(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new Op(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&rv(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>a(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function pv(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new Op(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new Op(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function mv(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(mv).join(``):``}var hv=[fv()];function gv(e){let t=_v(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...hv]}function _v(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var vv=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],yv={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function bv(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function xv(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function Sv(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r)){if(r===0)t.push({type:`resetAll`});else if(r<=9)yv[r]&&t.push({type:`setDecoration`,value:yv[r]});else if(r<=29){let e=yv[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:vv[r-30]}});else if(r===38){let n=xv(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:vv[r-40]}});else if(r===48){let n=xv(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:vv[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:vv[r-100+8]}})}}return t}function Cv(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=bv(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=Sv(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var wv={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 Tv(e=wv){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<vv.length;e++)r.push(t(vv[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var Ev=/#([0-9a-f]{3,8})/i,Dv=/var\((--[\w-]+-ansi-[\w-]+)\)/,Ov={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 kv(e,t,n){let r=uh(e,n),i=yh(t),a=Tv(Object.fromEntries(vv.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||Ov[t]]}))),o=Cv();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=dh(i,r),o=dh(o,r),n.decorations.has(`dim`)&&(i=Av(i));let s=Yp.None;return n.decorations.has(`bold`)&&(s|=Yp.Bold),n.decorations.has(`italic`)&&(s|=Yp.Italic),n.decorations.has(`underline`)&&(s|=Yp.Underline),n.decorations.has(`strikethrough`)&&(s|=Yp.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function Av(e){let t=e.match(Ev);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}if(e.length===6)return`#${e}80`;if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(Dv);return n?`var(${n[1]}-dim)`:e}function jv(e,t,n={}){let r=e.resolveLangAlias(n.lang||`text`),{theme:i=e.getLoadedThemes()[0]}=n;if(!mh(r)&&!gh(i)&&r===`ansi`){let{theme:r}=e.setTheme(i);return kv(r,t,n)}return Bh(e,t,n)}function Mv(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(f.length===0)throw new Op("`themes` option must not be empty");let p=Yh(e,t,n,jv);if(c=Ph(p),l&&l!==`light-dark()`&&!f.some(e=>e.color===l))throw new Op(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>lv(e,h,u,l,d))),c&&Nh(a,c);let g=f.map(e=>uh(e.theme,n));i=Nv(f,m,g,u,l,`fg`,d),r=Nv(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=uh(n.theme,n);a=jv(e,t,n);let l=e.getTheme(n.theme);r=dh(l.bg,s),i=dh(l.fg,s),o=l.name,c=Ph(a)}else throw new Op("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function Nv(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=dh(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===`light-dark()`&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new Op('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${dh(t[r][a],n[r])||`inherit`}, ${dh(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}var Pv=/^\s+$/,Fv=/^(\s*)(.*?)(\s*)$/;function Iv(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>Iv(e,t,n),codeToTokens:(t,n)=>Mv(e,t,n)}){let i=t;for(let e of gv(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=Mv(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=Rv(a):d===`never`&&(a=zv(a)),f&&(a=Bv(a));let p={...r,get source(){return i}};for(let e of gv(n))a=e.tokens?.call(p,a)||a;return Lv(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function Lv(e,t,n,r=Ph(e)){let i=gv(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(l.style=t.rootStyle==null?`background-color:${t.bg};color:${t.fg}`:t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:rv,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
83
- `}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=dv(a.htmlStyle||uv(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&Nh(m,r),m}function Rv(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&Yp.Underline||i.fontStyle&Yp.Strikethrough));o&&Pv.test(i.content)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function zv(e){return e.map(e=>e.flatMap(e=>{if(Pv.test(e.content))return e;let t=e.content.match(Fv);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function Bv(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t.at(-1),r=dv(e.htmlStyle||uv(e)),i=dv(n.htmlStyle||uv(n)),a=e.fontStyle&&(e.fontStyle&Yp.Underline||e.fontStyle&Yp.Strikethrough),o=n.fontStyle&&(n.fontStyle&Yp.Underline||n.fontStyle&Yp.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var Vv=$_;function Hv(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>Iv(e,t,n),codeToTokens:(t,n)=>Mv(e,t,n)},i=Vv(Iv(e,t,n,r));for(let e of gv(n))i=e.postprocess?.call(r,i,n)||i;return i}async function Uv(e){let t=await jh(e);return{getLastGrammarState:(...e)=>Vh(t,...e),codeToTokensBase:(e,n)=>jv(t,e,n),codeToTokensWithThemes:(e,n)=>Yh(t,e,n),codeToTokens:(e,n)=>Mv(t,e,n),codeToHast:(e,n)=>Iv(t,e,n),codeToHtml:(e,n)=>Hv(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}var Wv=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Gv(){return 2147483648}function Kv(){return typeof performance<`u`?performance.now():Date.now()}var qv=(e,t)=>e+(t-e%t)%t;async function Jv(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=Gv();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,qv(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:Kv,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var Yv=Object.defineProperty,Xv=(e,t,n)=>t in e?Yv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Zv=(e,t,n)=>Xv(e,typeof t==`symbol`?t:t+``,n),Qv=null;function $v(e){throw new Wv(e.UTF8ToString(e.getLastOnigError()))}var ey=class e{constructor(t){Zv(this,`utf16Length`),Zv(this,`utf8Length`),Zv(this,`utf16Value`),Zv(this,`utf8Value`),Zv(this,`utf16OffsetToUtf8`),Zv(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},ty=class e{constructor(t){if(Zv(this,`id`,++e.LAST_ID),Zv(this,`_onigBinding`),Zv(this,`content`),Zv(this,`utf16Length`),Zv(this,`utf8Length`),Zv(this,`utf16OffsetToUtf8`),Zv(this,`utf8OffsetToUtf16`),Zv(this,`ptr`),!Qv)throw new Wv(`Must invoke loadWasm first.`);this._onigBinding=Qv,this.content=t;let n=new ey(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=Qv.omalloc(1e4),e._sharedPtrInUse=!0,Qv.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(Qv)}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===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Zv(ty,`LAST_ID`,0),Zv(ty,`_sharedPtr`,0),Zv(ty,`_sharedPtrInUse`,!1);var ny=ty,ry=class{constructor(e){if(Zv(this,`_onigBinding`),Zv(this,`_ptr`),!Qv)throw new Wv(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new ey(e[r]);t[r]=i.createString(Qv),n[r]=i.utf8Length}let r=Qv.omalloc(4*e.length);Qv.HEAPU32.set(t,r/4);let i=Qv.omalloc(4*e.length);Qv.HEAPU32.set(n,i/4);let a=Qv.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)Qv.ofree(t[n]);Qv.ofree(i),Qv.ofree(r),a===0&&$v(Qv),this._onigBinding=Qv,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new ny(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function iy(e){return typeof e.instantiator==`function`}function ay(e){return typeof e.default==`function`}function oy(e){return e.data!==void 0}function sy(e){return typeof Response<`u`&&e instanceof Response}function cy(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var ly;function uy(e){if(ly)return ly;async function t(){Qv=await Jv(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),iy(n)?n=await n.instantiator(t):ay(n)?n=await n.default(t):(oy(n)&&(n=n.data),sy(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await fy(n)(t):await py(n)(t):cy(n)||n instanceof WebAssembly.Module?n=await dy(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await dy(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return ly=t(),ly}function dy(e){return t=>WebAssembly.instantiate(e,t)}function fy(e){return t=>WebAssembly.instantiateStreaming(e,t)}function py(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function my(e){return e&&await uy(e),{createScanner(e){return new ry(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new ny(e)}}}var hy=`modulepreload`,gy=function(e,t){return new URL(e,t).href},_y={},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=gy(t,n),t=s(t),t in _y)return;_y[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:hy,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},vy=[{id:`abap`,name:`ABAP`,import:(()=>$(()=>import(`./abap-CLvhMVsD.js`),[],import.meta.url))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>$(()=>import(`./actionscript-3-Cs6JJXT5.js`),[],import.meta.url))},{id:`ada`,name:`Ada`,import:(()=>$(()=>import(`./ada-X3Y2mlq2.js`),[],import.meta.url))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>$(()=>import(`./ahk-DwADkxyd.js`),[],import.meta.url))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>$(()=>import(`./ahk2-_6rzW9BS.js`),[],import.meta.url))},{id:`angular-html`,name:`Angular HTML`,import:(()=>$(()=>import(`./angular-html-C2R3hRD7.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>$(()=>import(`./angular-ts-BCxzN3EZ.js`),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:`apache`,name:`Apache Conf`,import:(()=>$(()=>import(`./apache-U0d_L8uA.js`),[],import.meta.url))},{id:`apex`,name:`Apex`,import:(()=>$(()=>import(`./apex-KFGFyKwG.js`),[],import.meta.url))},{id:`apl`,name:`APL`,import:(()=>$(()=>import(`./apl-BfLiwgkh.js`),__vite__mapDeps([6,2,3,1,7,8,9]),import.meta.url))},{id:`applescript`,name:`AppleScript`,import:(()=>$(()=>import(`./applescript-CCn79oCD.js`),[],import.meta.url))},{id:`ara`,name:`Ara`,import:(()=>$(()=>import(`./ara-4CJ0cIlV.js`),[],import.meta.url))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>$(()=>import(`./asciidoc-SCjQUq34.js`),[],import.meta.url))},{id:`asm`,name:`Assembly`,import:(()=>$(()=>import(`./asm-Cmm7eHzH.js`),[],import.meta.url))},{id:`astro`,name:`Astro`,import:(()=>$(()=>import(`./astro-CpVQO1Pe.js`),__vite__mapDeps([10,2,3,9,11,12,13]),import.meta.url))},{id:`awk`,name:`AWK`,import:(()=>$(()=>import(`./awk-BWXHIvNe.js`),[],import.meta.url))},{id:`ballerina`,name:`Ballerina`,import:(()=>$(()=>import(`./ballerina-B7ZEbQpA.js`),[],import.meta.url))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>$(()=>import(`./bat-qdxAdBWQ.js`),[],import.meta.url))},{id:`beancount`,name:`Beancount`,import:(()=>$(()=>import(`./beancount-C2IN4Vk8.js`),[],import.meta.url))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>$(()=>import(`./berry-DKpUyyne.js`),[],import.meta.url))},{id:`bibtex`,name:`BibTeX`,import:(()=>$(()=>import(`./bibtex-Ci_nEsc7.js`),[],import.meta.url))},{id:`bicep`,name:`Bicep`,import:(()=>$(()=>import(`./bicep-CUHmPFLl.js`),[],import.meta.url))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>$(()=>import(`./bird2-CYIUgYqB.js`),[],import.meta.url))},{id:`blade`,name:`Blade`,import:(()=>$(()=>import(`./blade-DbKxA1nV.js`),__vite__mapDeps([14,2,3,1,7,8,9,15,16]),import.meta.url))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>$(()=>import(`./bsl-_VjlB9mv.js`),__vite__mapDeps([17,18]),import.meta.url))},{id:`c`,name:`C`,import:(()=>$(()=>import(`./c-eUEKSmkG.js`).then(e=>e.n),[],import.meta.url))},{id:`c3`,name:`C3`,import:(()=>$(()=>import(`./c3-D0apG41V.js`),[],import.meta.url))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>$(()=>import(`./cadence-CQ2zXKGN.js`),[],import.meta.url))},{id:`cairo`,name:`Cairo`,import:(()=>$(()=>import(`./cairo-DLTphjLi.js`),__vite__mapDeps([19,20]),import.meta.url))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>$(()=>import(`./chapel-bNREAWj3.js`),__vite__mapDeps([21,22]),import.meta.url))},{id:`clarity`,name:`Clarity`,import:(()=>$(()=>import(`./clarity-CtfBBspg.js`),[],import.meta.url))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>$(()=>import(`./clojure-DqKBuwfJ.js`),[],import.meta.url))},{id:`cmake`,name:`CMake`,import:(()=>$(()=>import(`./cmake-Bj61d0ZC.js`),[],import.meta.url))},{id:`cobol`,name:`COBOL`,import:(()=>$(()=>import(`./cobol-CKVyOjj2.js`),__vite__mapDeps([23,1,2,3,8]),import.meta.url))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>$(()=>import(`./codeowners-C8r90Shi.js`),[],import.meta.url))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>$(()=>import(`./codeql-oeQT6MSM.js`),[],import.meta.url))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>$(()=>import(`./coffee-CCZuc_2n.js`),__vite__mapDeps([24,2]),import.meta.url))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>$(()=>import(`./common-lisp-Cv5bFMCO.js`),[],import.meta.url))},{id:`coq`,name:`Rocq`,import:(()=>$(()=>import(`./coq-CGaSfhwR.js`),[],import.meta.url))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>$(()=>import(`./cpp-BWuOzisK.js`).then(e=>e.n),__vite__mapDeps([25,26,27,22]),import.meta.url))},{id:`crystal`,name:`Crystal`,import:(()=>$(()=>import(`./crystal-SHUiMXbU.js`),__vite__mapDeps([28,2,3,1,16,22,29]),import.meta.url))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>$(()=>import(`./csharp-dmMxLVLW.js`),[],import.meta.url))},{id:`css`,name:`CSS`,import:(()=>$(()=>import(`./css-BQINXaX2.js`).then(e=>e.n),[],import.meta.url))},{id:`csv`,name:`CSV`,import:(()=>$(()=>import(`./csv-Dx-8-gkx.js`),[],import.meta.url))},{id:`cue`,name:`CUE`,import:(()=>$(()=>import(`./cue-CE9AQfxI.js`),[],import.meta.url))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>$(()=>import(`./cypher-ClKdZ_lG.js`),[],import.meta.url))},{id:`d`,name:`D`,import:(()=>$(()=>import(`./d-qD-0Kul2.js`),[],import.meta.url))},{id:`dart`,name:`Dart`,import:(()=>$(()=>import(`./dart-CHZY9Xhz.js`),[],import.meta.url))},{id:`dax`,name:`DAX`,import:(()=>$(()=>import(`./dax-BkyTk9wS.js`),[],import.meta.url))},{id:`desktop`,name:`Desktop`,import:(()=>$(()=>import(`./desktop-Dlh5hvp9.js`),[],import.meta.url))},{id:`diff`,name:`Diff`,import:(()=>$(()=>import(`./diff-woXpYk--.js`),[],import.meta.url))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>$(()=>import(`./docker-IyjqRm3v.js`),[],import.meta.url))},{id:`dotenv`,name:`dotEnv`,import:(()=>$(()=>import(`./dotenv-CuH5my32.js`),[],import.meta.url))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>$(()=>import(`./dream-maker-DW3nJb8Q.js`),[],import.meta.url))},{id:`edge`,name:`Edge`,import:(()=>$(()=>import(`./edge-Kw07bGHu.js`),__vite__mapDeps([30,1,2,3,11,15]),import.meta.url))},{id:`elixir`,name:`Elixir`,import:(()=>$(()=>import(`./elixir-C-eRuXkX.js`),__vite__mapDeps([31,1,2,3]),import.meta.url))},{id:`elm`,name:`Elm`,import:(()=>$(()=>import(`./elm-D-e3gB2j.js`),__vite__mapDeps([32,27,22]),import.meta.url))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>$(()=>import(`./emacs-lisp-DR2vtWaj.js`),[],import.meta.url))},{id:`erb`,name:`ERB`,import:(()=>$(()=>import(`./erb-C8xjhJii.js`),__vite__mapDeps([33,1,2,3,34,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39]),import.meta.url))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>$(()=>import(`./erlang-Cphh6RMH.js`),__vite__mapDeps([40,41]),import.meta.url))},{id:`fennel`,name:`Fennel`,import:(()=>$(()=>import(`./fennel-DQxkIbk2.js`),[],import.meta.url))},{id:`fish`,name:`Fish`,import:(()=>$(()=>import(`./fish-BJitypiv.js`),[],import.meta.url))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>$(()=>import(`./fluent-C03EYrpw.js`),[],import.meta.url))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>$(()=>import(`./fortran-fixed-form-DEKoE2YW.js`),__vite__mapDeps([42,43]),import.meta.url))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>$(()=>import(`./fortran-free-form-CYNrtFtB.js`),[],import.meta.url))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>$(()=>import(`./fsharp-D13ZGOAj.js`),__vite__mapDeps([44,41]),import.meta.url))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>$(()=>import(`./gdresource-xMC7jr7x.js`),__vite__mapDeps([45,46,47]),import.meta.url))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>$(()=>import(`./gdscript-DYvRD3hg.js`),[],import.meta.url))},{id:`gdshader`,name:`GDShader`,import:(()=>$(()=>import(`./gdshader-CBce3t8t.js`),[],import.meta.url))},{id:`genie`,name:`Genie`,import:(()=>$(()=>import(`./genie-CV2tkWYe.js`),[],import.meta.url))},{id:`gherkin`,name:`Gherkin`,import:(()=>$(()=>import(`./gherkin-DExj1W_8.js`),[],import.meta.url))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>$(()=>import(`./git-commit-BSykSTBG.js`),__vite__mapDeps([48,49]),import.meta.url))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>$(()=>import(`./git-rebase-BMzqBmMX.js`),__vite__mapDeps([50,29]),import.meta.url))},{id:`gleam`,name:`Gleam`,import:(()=>$(()=>import(`./gleam-CSRkHgEL.js`),[],import.meta.url))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>$(()=>import(`./glimmer-js-CfYrbyY1.js`),__vite__mapDeps([51,2,3,1,11]),import.meta.url))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>$(()=>import(`./glimmer-ts-Dyfca7lv.js`),__vite__mapDeps([52,2,3,1,11]),import.meta.url))},{id:`glsl`,name:`GLSL`,import:(()=>$(()=>import(`./glsl-COY5vYTU.js`).then(e=>e.n),__vite__mapDeps([27,22]),import.meta.url))},{id:`gn`,name:`GN`,import:(()=>$(()=>import(`./gn-CAXYAgV-.js`),[],import.meta.url))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>$(()=>import(`./gnuplot-7GGW24-e.js`),[],import.meta.url))},{id:`go`,name:`Go`,import:(()=>$(()=>import(`./go-rLFTqkRN.js`),[],import.meta.url))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>$(()=>import(`./graphql-Byb01sNe.js`).then(e=>e.n),__vite__mapDeps([36,2,11,13,37]),import.meta.url))},{id:`groovy`,name:`Groovy`,import:(()=>$(()=>import(`./groovy-CacY0gHj.js`),[],import.meta.url))},{id:`hack`,name:`Hack`,import:(()=>$(()=>import(`./hack-ddU5pTaD.js`),__vite__mapDeps([53,1,2,3,16]),import.meta.url))},{id:`haml`,name:`Ruby Haml`,import:(()=>$(()=>import(`./haml-CAquuPYS.js`).then(e=>e.n),__vite__mapDeps([35,2,3]),import.meta.url))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>$(()=>import(`./handlebars-tvRXMEpW.js`),__vite__mapDeps([54,2,3,1,39]),import.meta.url))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>$(()=>import(`./haskell-D8IpX4py.js`),[],import.meta.url))},{id:`haxe`,name:`Haxe`,import:(()=>$(()=>import(`./haxe-C8oCnwJJ.js`),[],import.meta.url))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>$(()=>import(`./hcl-Dh228itO.js`),[],import.meta.url))},{id:`hjson`,name:`Hjson`,import:(()=>$(()=>import(`./hjson-CxZEssPk.js`),[],import.meta.url))},{id:`hlsl`,name:`HLSL`,import:(()=>$(()=>import(`./hlsl-Cvrh5tZx.js`),[],import.meta.url))},{id:`html`,name:`HTML`,import:(()=>$(()=>import(`./html-aEb8HZVi.js`).then(e=>e.n),__vite__mapDeps([1,2,3]),import.meta.url))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>$(()=>import(`./html-derivative-D8644HNz.js`),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:`http`,name:`HTTP`,import:(()=>$(()=>import(`./http-D-n-mc6H.js`),__vite__mapDeps([55,7,8,9,29,36,2,11,13,37]),import.meta.url))},{id:`hurl`,name:`Hurl`,import:(()=>$(()=>import(`./hurl-VlSgWqRc.js`),__vite__mapDeps([56,7,8,57,36,2,11,13,37]),import.meta.url))},{id:`hxml`,name:`HXML`,import:(()=>$(()=>import(`./hxml-Dcm88srW.js`),__vite__mapDeps([58,59]),import.meta.url))},{id:`hy`,name:`Hy`,import:(()=>$(()=>import(`./hy-CZbG8q4J.js`),[],import.meta.url))},{id:`imba`,name:`Imba`,import:(()=>$(()=>import(`./imba-DsUTQ-LC.js`),[],import.meta.url))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>$(()=>import(`./ini-B5eOa1yu.js`),[],import.meta.url))},{id:`java`,name:`Java`,import:(()=>$(()=>import(`./java-DVq4jL7v.js`).then(e=>e.n),[],import.meta.url))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>$(()=>import(`./javascript-Dhbty6OL.js`).then(e=>e.n),[],import.meta.url))},{id:`jinja`,name:`Jinja`,import:(()=>$(()=>import(`./jinja-BuGLwpKg.js`),__vite__mapDeps([60,1,2,3]),import.meta.url))},{id:`jison`,name:`Jison`,import:(()=>$(()=>import(`./jison-DexeMC1a.js`),__vite__mapDeps([61,2]),import.meta.url))},{id:`json`,name:`JSON`,import:(()=>$(()=>import(`./json-DokpxVrH.js`).then(e=>e.n),[],import.meta.url))},{id:`json5`,name:`JSON5`,import:(()=>$(()=>import(`./json5-BR5RXkoi.js`),[],import.meta.url))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>$(()=>import(`./jsonc-CYpm1nAK.js`),[],import.meta.url))},{id:`jsonl`,name:`JSON Lines`,import:(()=>$(()=>import(`./jsonl-CmCQp5Yx.js`),[],import.meta.url))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>$(()=>import(`./jsonnet-CJTPZ8u_.js`),[],import.meta.url))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>$(()=>import(`./jssm-DXw9l8Rf.js`),[],import.meta.url))},{id:`jsx`,name:`JSX`,import:(()=>$(()=>import(`./jsx-4pi3R3E5.js`).then(e=>e.n),[],import.meta.url))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>$(()=>import(`./julia-DAHru734.js`),__vite__mapDeps([62,2,16,20,25,26,27,22,63]),import.meta.url))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>$(()=>import(`./just-D4icYPCX.js`),__vite__mapDeps([64,2,11,20,29,34,3,1,7,8,16,22,25,26,27,35,36,13,37,38,39,65]),import.meta.url))},{id:`kdl`,name:`KDL`,import:(()=>$(()=>import(`./kdl-CsD5j6eV.js`),[],import.meta.url))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>$(()=>import(`./kotlin-DhhofPvG.js`),[],import.meta.url))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>$(()=>import(`./kusto-C7mF5XQf.js`),[],import.meta.url))},{id:`latex`,name:`LaTeX`,import:(()=>$(()=>import(`./latex-D7gIVkz9.js`),__vite__mapDeps([66,67,63]),import.meta.url))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>$(()=>import(`./lean-CewbzKMR.js`),[],import.meta.url))},{id:`less`,name:`Less`,import:(()=>$(()=>import(`./less-DVTAwKKz.js`),[],import.meta.url))},{id:`liquid`,name:`Liquid`,import:(()=>$(()=>import(`./liquid-CCBMq9L5.js`),__vite__mapDeps([68,2,3,1,9]),import.meta.url))},{id:`llvm`,name:`LLVM IR`,import:(()=>$(()=>import(`./llvm-DqHOMS-s.js`),[],import.meta.url))},{id:`log`,name:`Log file`,import:(()=>$(()=>import(`./log-BNLmms1o.js`),[],import.meta.url))},{id:`logo`,name:`Logo`,import:(()=>$(()=>import(`./logo-Cluzi2Zq.js`),[],import.meta.url))},{id:`lua`,name:`Lua`,import:(()=>$(()=>import(`./lua-BmKHNWoL.js`).then(e=>e.n),__vite__mapDeps([38,22]),import.meta.url))},{id:`luau`,name:`Luau`,import:(()=>$(()=>import(`./luau-VGWVLoqX.js`),[],import.meta.url))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>$(()=>import(`./make-Dixweg8N.js`),[],import.meta.url))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>$(()=>import(`./markdown-BYOwaDjH.js`),[],import.meta.url))},{id:`marko`,name:`Marko`,import:(()=>$(()=>import(`./marko-XJVcMuhE.js`),__vite__mapDeps([69,3,5,11,70]),import.meta.url))},{id:`matlab`,name:`MATLAB`,import:(()=>$(()=>import(`./matlab-D7qyCx1q.js`),[],import.meta.url))},{id:`mdc`,name:`MDC`,import:(()=>$(()=>import(`./mdc-CggWCAuD.js`),__vite__mapDeps([71,15,1,2,3,39,41]),import.meta.url))},{id:`mdx`,name:`MDX`,import:(()=>$(()=>import(`./mdx-DQZ5AkYe.js`),[],import.meta.url))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>$(()=>import(`./mermaid-BxpfTIzt.js`),[],import.meta.url))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>$(()=>import(`./mipsasm-BMqwQI7S.js`),[],import.meta.url))},{id:`mojo`,name:`Mojo`,import:(()=>$(()=>import(`./mojo-fg40_ntQ.js`),[],import.meta.url))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>$(()=>import(`./moonbit-D9W784E_.js`),[],import.meta.url))},{id:`move`,name:`Move`,import:(()=>$(()=>import(`./move-BYnGhZoM.js`),[],import.meta.url))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>$(()=>import(`./narrat-_X_XdTYD.js`),[],import.meta.url))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>$(()=>import(`./nextflow-CSgcYZcx.js`),__vite__mapDeps([72,73]),import.meta.url))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>$(()=>import(`./nextflow-groovy-D7IRt6Pp.js`),[],import.meta.url))},{id:`nginx`,name:`Nginx`,import:(()=>$(()=>import(`./nginx-2HmYA6Zg.js`),__vite__mapDeps([74,38,22]),import.meta.url))},{id:`nim`,name:`Nim`,import:(()=>$(()=>import(`./nim-f4HlgVQ6.js`),__vite__mapDeps([75,2,3,1,7,8,22,27,41]),import.meta.url))},{id:`nix`,name:`Nix`,import:(()=>$(()=>import(`./nix-IvuFDN5E.js`),[],import.meta.url))},{id:`nsis`,name:`NSIS`,import:(()=>$(()=>import(`./nsis-CjNLYCLg.js`),[],import.meta.url))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>$(()=>import(`./nushell--0fT3PI1.js`),[],import.meta.url))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>$(()=>import(`./objective-c-D1A_Heim.js`),[],import.meta.url))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>$(()=>import(`./objective-cpp-BsSzOQcm.js`),[],import.meta.url))},{id:`ocaml`,name:`OCaml`,import:(()=>$(()=>import(`./ocaml-O90oeIOV.js`),[],import.meta.url))},{id:`odin`,name:`Odin`,import:(()=>$(()=>import(`./odin-B1RWQWA5.js`),[],import.meta.url))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>$(()=>import(`./openscad-BUDT5pXO.js`),[],import.meta.url))},{id:`org`,name:`Org Markup`,import:(()=>$(()=>import(`./org-DTHhZRyr.js`),__vite__mapDeps([76,2,3,1,5,8,7,9,11,13,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,48,50,81,82,83,63,65,66,67,70,84,75,85,86,87,88,89,90,91,92,93]),import.meta.url))},{id:`pascal`,name:`Pascal`,import:(()=>$(()=>import(`./pascal-4ZHwLPI5.js`),[],import.meta.url))},{id:`perl`,name:`Perl`,import:(()=>$(()=>import(`./perl-Si_h0zXD.js`),__vite__mapDeps([65,2,3,1,7,8,16]),import.meta.url))},{id:`php`,name:`PHP`,import:(()=>$(()=>import(`./php-lV--JYV2.js`),__vite__mapDeps([87,2,3,1,7,8,9,16]),import.meta.url))},{id:`pkl`,name:`Pkl`,import:(()=>$(()=>import(`./pkl-ot-7Btpt.js`),[],import.meta.url))},{id:`plsql`,name:`PL/SQL`,import:(()=>$(()=>import(`./plsql-DGHpHOYJ.js`),[],import.meta.url))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>$(()=>import(`./po-BiJDBrnU.js`),[],import.meta.url))},{id:`polar`,name:`Polar`,import:(()=>$(()=>import(`./polar-C7UOKdEL.js`),[],import.meta.url))},{id:`postcss`,name:`PostCSS`,import:(()=>$(()=>import(`./postcss-BXeXVLqQ.js`),[],import.meta.url))},{id:`powerquery`,name:`PowerQuery`,import:(()=>$(()=>import(`./powerquery-DNMTfnFr.js`),[],import.meta.url))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>$(()=>import(`./powershell-QtSnmXcu.js`),[],import.meta.url))},{id:`prisma`,name:`Prisma`,import:(()=>$(()=>import(`./prisma-DMgNhnYS.js`),[],import.meta.url))},{id:`prolog`,name:`Prolog`,import:(()=>$(()=>import(`./prolog-iXnhIJG7.js`),[],import.meta.url))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>$(()=>import(`./proto-DB4EqR-F.js`),[],import.meta.url))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>$(()=>import(`./pug-DQsGYgr8.js`),__vite__mapDeps([94,2,3,1]),import.meta.url))},{id:`puppet`,name:`Puppet`,import:(()=>$(()=>import(`./puppet-CDv2pdJW.js`),[],import.meta.url))},{id:`purescript`,name:`PureScript`,import:(()=>$(()=>import(`./purescript-9MfHhQsQ.js`),[],import.meta.url))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>$(()=>import(`./python-gzcpVVnB.js`),[],import.meta.url))},{id:`qml`,name:`QML`,import:(()=>$(()=>import(`./qml-aOpHbSEo.js`),__vite__mapDeps([95,2]),import.meta.url))},{id:`qmldir`,name:`QML Directory`,import:(()=>$(()=>import(`./qmldir-DCQb3MpD.js`),[],import.meta.url))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>$(()=>import(`./qss-Fe1Jh2GI.js`),[],import.meta.url))},{id:`r`,name:`R`,import:(()=>$(()=>import(`./r-CnftDQmo.js`).then(e=>e.n),[],import.meta.url))},{id:`racket`,name:`Racket`,import:(()=>$(()=>import(`./racket-DcIDlBhZ.js`),[],import.meta.url))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>$(()=>import(`./raku-B3gFvitq.js`),[],import.meta.url))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>$(()=>import(`./razor-BuPfeQJW.js`),__vite__mapDeps([96,1,2,3,78]),import.meta.url))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>$(()=>import(`./rbs-C0MpOrj4.js`),[],import.meta.url))},{id:`reg`,name:`Windows Registry Script`,import:(()=>$(()=>import(`./reg-CRGYupPL.js`),[],import.meta.url))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>$(()=>import(`./regexp-FdI0Di6_.js`).then(e=>e.n),[],import.meta.url))},{id:`rel`,name:`Rel`,import:(()=>$(()=>import(`./rel-BtDbiS_P.js`),[],import.meta.url))},{id:`riscv`,name:`RISC-V`,import:(()=>$(()=>import(`./riscv-Ckw8ddFX.js`),[],import.meta.url))},{id:`ron`,name:`RON`,import:(()=>$(()=>import(`./ron-VUp2lXgN.js`),[],import.meta.url))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>$(()=>import(`./rosmsg-CAekHB0j.js`),[],import.meta.url))},{id:`rst`,name:`reStructuredText`,import:(()=>$(()=>import(`./rst-DTOVQcNW.js`),__vite__mapDeps([97,2,15,1,3,20,98,25,26,27,22,29,39,34,7,8,16,35,36,11,13,37,38]),import.meta.url))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>$(()=>import(`./ruby-C9jMp3g5.js`),__vite__mapDeps([34,2,3,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39]),import.meta.url))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>$(()=>import(`./rust-DpiIf5JO.js`),[],import.meta.url))},{id:`sas`,name:`SAS`,import:(()=>$(()=>import(`./sas-CZNv0sbQ.js`),__vite__mapDeps([99,16]),import.meta.url))},{id:`sass`,name:`Sass`,import:(()=>$(()=>import(`./sass-DXrisJhu.js`),[],import.meta.url))},{id:`scala`,name:`Scala`,import:(()=>$(()=>import(`./scala-BiFt_7mu.js`),[],import.meta.url))},{id:`scheme`,name:`Scheme`,import:(()=>$(()=>import(`./scheme-DQCgrYNe.js`),[],import.meta.url))},{id:`scss`,name:`SCSS`,import:(()=>$(()=>import(`./scss-CgBtiwwX.js`).then(e=>e.n),__vite__mapDeps([5,3]),import.meta.url))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>$(()=>import(`./sdbl-bTVj8UrX.js`),[],import.meta.url))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>$(()=>import(`./shaderlab-TOUzSsQk.js`),__vite__mapDeps([100,101]),import.meta.url))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>$(()=>import(`./shellscript-BX4qmBbn.js`).then(e=>e.n),[],import.meta.url))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>$(()=>import(`./shellsession-QeB-Drd1.js`),__vite__mapDeps([102,29]),import.meta.url))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>$(()=>import(`./smalltalk-BHpQb5nM.js`),[],import.meta.url))},{id:`smithy`,name:`Smithy`,import:(()=>$(()=>import(`./smithy-Dgaz7aur.js`),[],import.meta.url))},{id:`solidity`,name:`Solidity`,import:(()=>$(()=>import(`./solidity-Bj7E1mRn.js`),[],import.meta.url))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>$(()=>import(`./soy-tCnsdqeW.js`),__vite__mapDeps([103,1,2,3]),import.meta.url))},{id:`sparql`,name:`SPARQL`,import:(()=>$(()=>import(`./sparql-D_iOobhT.js`),__vite__mapDeps([104,105]),import.meta.url))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>$(()=>import(`./splunk-BC2Px7Mm.js`),[],import.meta.url))},{id:`sql`,name:`SQL`,import:(()=>$(()=>import(`./sql-DUB0KZGO.js`).then(e=>e.n),[],import.meta.url))},{id:`ssh-config`,name:`SSH Config`,import:(()=>$(()=>import(`./ssh-config-BgfXC-Er.js`),[],import.meta.url))},{id:`stata`,name:`Stata`,import:(()=>$(()=>import(`./stata-DJm29ea1.js`),__vite__mapDeps([106,16]),import.meta.url))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>$(()=>import(`./stylus-B6D30XZt.js`),[],import.meta.url))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>$(()=>import(`./surrealql-C0DfQshk.js`),__vite__mapDeps([107,2]),import.meta.url))},{id:`svelte`,name:`Svelte`,import:(()=>$(()=>import(`./svelte-fzHSAOsO.js`),__vite__mapDeps([108,2,3,11,12]),import.meta.url))},{id:`swift`,name:`Swift`,import:(()=>$(()=>import(`./swift-CyEgAFGc.js`),[],import.meta.url))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>$(()=>import(`./system-verilog-Dh5ihWbf.js`),[],import.meta.url))},{id:`systemd`,name:`Systemd Units`,import:(()=>$(()=>import(`./systemd-BxMlprV5.js`),[],import.meta.url))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>$(()=>import(`./talonscript-CohzipZa.js`),[],import.meta.url))},{id:`tasl`,name:`Tasl`,import:(()=>$(()=>import(`./tasl-DMoTqEGO.js`),[],import.meta.url))},{id:`tcl`,name:`Tcl`,import:(()=>$(()=>import(`./tcl-CZd0xW_V.js`),[],import.meta.url))},{id:`templ`,name:`Templ`,import:(()=>$(()=>import(`./templ-DpeWk6q9.js`),__vite__mapDeps([109,2,3,81]),import.meta.url))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>$(()=>import(`./terraform-DswuEJGm.js`),[],import.meta.url))},{id:`tex`,name:`TeX`,import:(()=>$(()=>import(`./tex-B3a-2pHT.js`).then(e=>e.n),__vite__mapDeps([67,63]),import.meta.url))},{id:`toml`,name:`TOML`,import:(()=>$(()=>import(`./toml-CcmNWLt0.js`),[],import.meta.url))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>$(()=>import(`./ts-tags-ET5K_vOb.js`),__vite__mapDeps([110,2,3,1,7,8,11,16,27,22]),import.meta.url))},{id:`tsv`,name:`TSV`,import:(()=>$(()=>import(`./tsv-sltzmVWM.js`),[],import.meta.url))},{id:`tsx`,name:`TSX`,import:(()=>$(()=>import(`./tsx-iT4TbDG6.js`).then(e=>e.n),[],import.meta.url))},{id:`turtle`,name:`Turtle`,import:(()=>$(()=>import(`./turtle-ByJddavk.js`),[],import.meta.url))},{id:`twig`,name:`Twig`,import:(()=>$(()=>import(`./twig-k28si_Lb.js`),__vite__mapDeps([111,2,3,5,20,34,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39,87,9]),import.meta.url))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>$(()=>import(`./typescript-CQH469JO.js`).then(e=>e.n),[],import.meta.url))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>$(()=>import(`./typespec-BGhR2SqG.js`),[],import.meta.url))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>$(()=>import(`./typst-DJ1IDlsS.js`),__vite__mapDeps([112,2,3,1,5,8,7,9,11,13,113,114,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,44,48,50,81,82,54,83,115,63,62,65,66,67,70,116,84,85,87,88,89,90,91,93,117,94,118,119,111,120]),import.meta.url))},{id:`v`,name:`V`,import:(()=>$(()=>import(`./v-DBj4K9d_.js`),[],import.meta.url))},{id:`vala`,name:`Vala`,import:(()=>$(()=>import(`./vala-zf12oZj6.js`),[],import.meta.url))},{id:`vb`,name:`Visual Basic`,import:(()=>$(()=>import(`./vb-DOwzaHZ0.js`),[],import.meta.url))},{id:`verilog`,name:`Verilog`,import:(()=>$(()=>import(`./verilog-B2gwz-sJ.js`),[],import.meta.url))},{id:`vhdl`,name:`VHDL`,import:(()=>$(()=>import(`./vhdl-BroJfC0k.js`),[],import.meta.url))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>$(()=>import(`./viml-DvXPmvsu.js`),[],import.meta.url))},{id:`vue`,name:`Vue`,import:(()=>$(()=>import(`./vue-B6kdgUfh.js`),__vite__mapDeps([121,2,3,1,9,11,15]),import.meta.url))},{id:`vue-html`,name:`Vue HTML`,import:(()=>$(()=>import(`./vue-html-Drn6bjns.js`),__vite__mapDeps([122,2]),import.meta.url))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>$(()=>import(`./vue-vine-DoSToyMP.js`),__vite__mapDeps([123,2,3,5,12,70,124]),import.meta.url))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>$(()=>import(`./vyper-CgoNMtux.js`),[],import.meta.url))},{id:`wasm`,name:`WebAssembly`,import:(()=>$(()=>import(`./wasm-ByWQv1Qj.js`),[],import.meta.url))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>$(()=>import(`./wenyan-C8pVoKbM.js`),[],import.meta.url))},{id:`wgsl`,name:`WGSL`,import:(()=>$(()=>import(`./wgsl-BsKzXJz4.js`),[],import.meta.url))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>$(()=>import(`./wikitext-ClFFjSW2.js`),[],import.meta.url))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>$(()=>import(`./wit-DdvCle-K.js`),[],import.meta.url))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>$(()=>import(`./wolfram-DLL8P-h_.js`),[],import.meta.url))},{id:`xml`,name:`XML`,import:(()=>$(()=>import(`./xml-56uPvJd-.js`).then(e=>e.n),__vite__mapDeps([7,8]),import.meta.url))},{id:`xsl`,name:`XSL`,import:(()=>$(()=>import(`./xsl-rMxh05gW.js`),__vite__mapDeps([93,7,8]),import.meta.url))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>$(()=>import(`./yaml-DoyGvywZ.js`).then(e=>e.n),[],import.meta.url))},{id:`zenscript`,name:`ZenScript`,import:(()=>$(()=>import(`./zenscript-BnlCZFoB.js`),[],import.meta.url))},{id:`zig`,name:`Zig`,import:(()=>$(()=>import(`./zig-CMLA9XwU.js`),[],import.meta.url))}],yy=Object.fromEntries(vy.map(e=>[e.id,e.import])),by=Object.fromEntries(vy.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),xy={...yy,...by},Sy=`github-dark-default`,Cy={h:`c`,hh:`cpp`,hpp:`cpp`,hxx:`cpp`,cc:`cpp`,cxx:`cpp`,htm:`html`,svg:`xml`,pl:`perl`,ex:`elixir`,exs:`elixir`,makefile:`make`,dockerfile:`dockerfile`},wy=new Map;for(let e of vy)for(let t of[e.id,...e.aliases??[]])wy.set(t.toLowerCase(),e.id);for(let[e,t]of Object.entries(Cy))wy.set(e,t);function Ty(e){let t=e.slice(e.lastIndexOf(`/`)+1).toLowerCase(),n=t.lastIndexOf(`.`),r=n===-1?t:t.slice(n+1);return wy.get(r)??wy.get(t)??null}var Ey=null;function Dy(){return Ey??=Uv({themes:[$(()=>import(`./github-dark-default-DXG-b-1a.js`),[],import.meta.url)],langs:[],engine:my($(()=>import(`./wasm-BnjxR4X6.js`),[],import.meta.url))}),Ey}async function Oy(e){let t=await Dy();return t.getLoadedLanguages().includes(e)||await t.loadLanguage(xy[e]),n=>n.length===0?[]:t.codeToTokensBase(n.join(`
84
- `),{lang:e,theme:Sy})}function ky(e,t){let n=new Map,r=new Map;if(e.newContent!==null){let r=Math.max(0,...e.hunks.flatMap(e=>e.lines.map(e=>e.newNo??0)));t(ve(e.newContent).slice(0,r)).forEach((e,t)=>n.set(t+1,e))}for(let i of e.hunks){let a=i.lines.filter(e=>e.type!==`add`);if(t(a.map(e=>e.text)).forEach((e,t)=>r.set(a[t].oldNo,e)),e.newContent===null){let e=i.lines.filter(e=>e.type!==`del`);t(e.map(e=>e.text)).forEach((t,r)=>n.set(e[r].newNo,t))}}return{newSide:n,oldSide:r}}function Ay(e){let t=Ty(e.path),[n,r]=(0,v.useState)(null);(0,v.useEffect)(()=>{if(t===null)return;let e=!1;return Oy(t).then(n=>!e&&r({lang:t,tokenizer:n}),n=>!e&&r({lang:t,error:n instanceof Error?n.message:String(n)})),()=>{e=!0}},[t]);let i=n!==null&&n.lang===t?n:null,a=i!==null&&`tokenizer`in i?i.tokenizer:null;return(0,v.useMemo)(()=>{if(i!==null&&`error`in i)return{status:`error`,message:i.error};if(a===null)return{status:`none`};let t=new Map;return{status:`ready`,file:ky(e,a),suggestion:e=>{let n=t.get(e);return n||(n=a(ve(e)),t.set(e,n)),n}}},[i,a,e])}var jy={context:` `,add:`+`,del:`−`};function My(e,t){return t===`new`&&e===`add`?`is-new`:`is-${e}`}function Ny({text:e,tokens:t}){return t?(0,j.jsx)(`span`,{className:`diff-code is-highlighted`,children:t.map((e,t)=>(0,j.jsx)(`span`,{style:Py(e),children:e.content},t))}):(0,j.jsx)(`span`,{className:`diff-code`,children:e})}function Py(e){let t=e.fontStyle??0;return{color:e.color,fontStyle:t&1?`italic`:void 0,fontWeight:t&2?600:void 0}}function Fy(e){return e?{"--mark":ue[e.severity].color}:void 0}function Iy(e){return e?e.muted?` has-bar is-bar-muted`:` has-bar`:``}function Ly({entries:e}){return(0,j.jsx)(`span`,{className:`diff-pills`,children:e.map(e=>(0,j.jsx)(`span`,{className:e.finding.status===`open`?void 0:`is-muted`,title:e.finding.title,children:(0,j.jsx)(ep,{entry:e,small:!0})},e.finding.id))})}function Ry({entry:e,bar:t,pills:n,applied:r,isTarget:i,onHide:a}){let o=ve(e.finding.suggestion??``).length===0,s=Dp(e.startLine,e.endLine),c=o?`supprime ${s}`:`remplace ${s}`;return(0,j.jsxs)(`div`,{className:`fix-strip${r?` is-applied`:``}${Iy(t)}${i?` is-target`:``}`,style:Fy(t),"data-fix":e.finding.id,children:[(0,j.jsx)(ep,{entry:e,small:!0}),(0,j.jsx)(M,{name:`sparkles`,color:`#8b97ff`}),(0,j.jsx)(`span`,{className:`fix-strip-text`,children:r?`Correctif ${e.number} appliqué — ${c}`:`Correctif proposé par l'agent — ${c}`}),n.length>0&&(0,j.jsx)(Ly,{entries:n}),(0,j.jsx)(`button`,{type:`button`,className:`fix-strip-hide`,onClick:a,children:r?`Retirer le correctif`:`Masquer le correctif`})]})}function zy({id:e,label:t,labels:n,value:r,onChange:i,disabled:a}){return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`diff-toolbar-label`,id:e,children:t}),(0,j.jsx)(`div`,{className:`segmented segmented-small`,role:`group`,"aria-labelledby":e,children:Object.keys(n).map(e=>(0,j.jsx)(`button`,{type:`button`,className:`segmented-item${e===r?` is-active`:``}`,"aria-pressed":e===r,disabled:a?.[e]!==void 0,title:a?.[e],onClick:()=>i(e),children:n[e]},e))})]})}function By({mode:e,codeView:t,explained:n}){return(0,j.jsxs)(`div`,{className:`diff-legend`,children:[t===`new`?(0,j.jsxs)(`span`,{className:`legend-item`,children:[(0,j.jsx)(`span`,{className:`legend-swatch is-new`}),`Ajouté par la feature`]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(`span`,{className:`legend-item`,children:[(0,j.jsx)(`span`,{className:`legend-swatch is-add`}),`Ajouté par la feature`]}),(0,j.jsxs)(`span`,{className:`legend-item`,children:[(0,j.jsx)(`span`,{className:`legend-swatch is-del`}),`Supprimé par la feature`]})]}),e===`before-after`&&(0,j.jsxs)(`span`,{className:`legend-item`,children:[(0,j.jsx)(`span`,{className:`legend-swatch is-replaced`}),`Lignes remplacées par le correctif`]}),e!==`off`&&(0,j.jsxs)(`span`,{className:`legend-item`,children:[(0,j.jsx)(`span`,{className:`legend-swatch is-proposed`}),e===`applied`?`Correctif appliqué`:`Correctif proposé`]}),n&&(0,j.jsxs)(`span`,{className:`legend-item`,children:[(0,j.jsx)(`span`,{className:`legend-swatch is-explained`}),`Code décrit par une explication`]})]})}function Vy({file:e,fileDiff:t,hunks:n,notedLines:r,mode:i,onModeChange:a,codeView:o,onCodeViewChange:s,scope:c,onScopeChange:l,wholeFileAvailable:u,explained:d,target:f,onLineNote:p,onHideFix:m,onRequestExplanation:h}){let g=e.contentAvailable,_=Ay(t);return(0,j.jsxs)(`div`,{className:`diff`,children:[(0,j.jsxs)(`div`,{className:`diff-toolbar`,children:[_.status===`error`&&(0,j.jsxs)(`span`,{className:`diff-toolbar-error`,children:[`Coloration syntaxique indisponible : `,_.message]}),(0,j.jsx)(zy,{id:`diff-scope-label`,label:`Afficher`,labels:sp,value:c,onChange:l,disabled:u?void 0:{file:`Le contenu de ce fichier n'est pas conservé dans l'analyse.`}}),(0,j.jsx)(`span`,{className:`diff-toolbar-gap`}),(0,j.jsx)(zy,{id:`code-view-label`,label:`Code`,labels:op,value:o,onChange:s}),(0,j.jsx)(`span`,{className:`diff-toolbar-gap`}),(0,j.jsx)(zy,{id:`fix-mode-label`,label:`Correctifs`,labels:ap,value:i,onChange:a})]}),n.map((e,t)=>(0,j.jsxs)(`div`,{className:`hunk`,children:[(0,j.jsxs)(`div`,{className:`hunk-header`,children:[(0,j.jsx)(`span`,{className:`hunk-header-text mono`,children:e.hunk.header}),(0,j.jsxs)(`button`,{type:`button`,className:`hunk-explain`,title:`Copier un prompt qui demande à l'agent d'expliquer ce bloc et d'ajouter ses explications à l'analyse`,onClick:()=>h(e.hunk),children:[(0,j.jsx)(M,{name:`bot`,color:`#3cc4b4`}),`Copier une demande d'explication`]})]}),e.rows.map((e,t)=>{if(e.kind===`fix-strip`)return(0,j.jsx)(Ry,{entry:e.entry,bar:e.bar,pills:e.pills,applied:i===`applied`,isTarget:fp(f,{kind:`fix`,entry:e.entry}),onHide:()=>m(e.entry.finding.id)},t);if(e.kind===`fix-line`)return(0,j.jsxs)(`div`,{className:`diff-line is-proposed${Iy(e.bar)}`,style:Fy(e.bar),children:[(0,j.jsx)(`span`,{className:`diff-num`}),(0,j.jsx)(`span`,{className:`diff-marker`,children:`›`}),(0,j.jsx)(Ny,{text:e.text,tokens:_.status===`ready`?_.suggestion(e.entry.finding.suggestion??``)[e.index]:void 0})]},t);let{line:n}=e,a=n.newNo,s=_.status!==`ready`||e.replaced?void 0:n.type===`del`?_.file.oldSide.get(n.oldNo):_.file.newSide.get(a),c=[`diff-line`,My(n.type,o),e.replaced?`is-replaced`:``,e.explained?`is-explained`:``,Iy(e.bar).trim(),a!==null&&fp(f,{kind:`line`,line:a})?`is-target`:``];return(0,j.jsxs)(`div`,{className:c.filter(Boolean).join(` `),style:Fy(e.bar),"data-line":a??void 0,"data-old-line":n.type===`del`?n.oldNo??void 0:void 0,children:[a!==null&&r.has(a)&&(0,j.jsx)(`span`,{className:`diff-note-dot`,title:`Remarque sur cette ligne`}),a!==null&&g?(0,j.jsx)(`button`,{type:`button`,className:`diff-num`,title:`Ajouter une remarque sur la ligne ${a}`,onClick:()=>p(a),children:a}):(0,j.jsx)(`span`,{className:`diff-num`,children:a??``}),(0,j.jsx)(`span`,{className:`diff-marker`,children:o===`new`?``:jy[n.type]}),(0,j.jsx)(Ny,{text:n.text,tokens:s}),e.pills.length>0&&(0,j.jsx)(Ly,{entries:e.pills})]},t)})]},t)),(0,j.jsx)(By,{mode:i,codeView:o,explained:d})]})}var Hy=8,Uy=600;function Wy({explanation:e}){let[t,n]=(0,v.useState)(!1),{side:r,startLine:i,endLine:a}=e.location,o=e.body.split(`
85
- `).length>Hy||e.body.length>Uy;return(0,j.jsxs)(`article`,{className:`margin-card margin-explanation is-${e.status}`,"data-explanation-card":e.id,children:[(0,j.jsxs)(`header`,{className:`margin-card-head`,children:[(0,j.jsx)(M,{name:`info`,color:`#3cc4b4`}),(0,j.jsx)(`span`,{className:`margin-explanation-kind`,children:`Explication`}),r===`old`&&(0,j.jsx)(`span`,{className:`tag explanation-side`,children:`Code supprimé`}),e.status===`outdated`&&(0,j.jsx)(`span`,{className:`tag explanation-outdated-tag`,children:`Obsolète`}),(0,j.jsxs)(`span`,{className:`margin-card-lines mono`,title:r===`old`?`Numéros de ligne avant la feature`:void 0,children:[`l. `,ye(i,a,`–`)]})]}),(0,j.jsx)(`h3`,{className:`margin-card-title`,children:e.title}),e.status===`outdated`&&(0,j.jsx)(`p`,{className:`explanation-outdated`,children:`Le code décrit a changé depuis la rédaction de cette explication : elle peut ne plus correspondre.`}),(0,j.jsx)(`p`,{className:`margin-explanation-body${o&&!t?` is-folded`:``}`,children:e.body}),o&&(0,j.jsx)(`button`,{type:`button`,className:`margin-explanation-more`,"aria-expanded":t,onClick:()=>n(!t),children:t?`Réduire`:`Lire la suite`})]})}function Gy({note:e}){let t=A(e=>e.updateNote),n=A(e=>e.deleteNote),r=A(e=>e.saving),[i,a]=(0,v.useState)(!1),o=e.location?.line?`ligne ${e.location.line}`:`fichier entier`;return i?(0,j.jsx)(qy,{id:`note-edit-${e.id}`,label:`Modifier la remarque (${o})`,initialText:e.text,submitLabel:`Enregistrer la modification`,onSubmit:n=>n===e.text?Promise.resolve(!0):t(e.id,n),onClose:()=>a(!1)}):(0,j.jsxs)(`div`,{className:`note-card`,children:[(0,j.jsxs)(`div`,{className:`note-head`,children:[(0,j.jsx)(Jl,{fixed:!1}),(0,j.jsxs)(`span`,{className:`note-meta`,title:`${o} · ${Ce(e.createdAt)}`,children:[o,` · `,we(e.createdAt)]}),(0,j.jsxs)(`button`,{type:`button`,className:`link-button muted`,disabled:r,onClick:()=>a(!0),children:[(0,j.jsx)(M,{name:`pencil`,size:13}),`Modifier`]}),(0,j.jsxs)(`button`,{type:`button`,className:`link-button muted`,disabled:r,onClick:()=>void n(e.id),children:[(0,j.jsx)(M,{name:`trash`,size:13}),`Supprimer`]})]}),(0,j.jsx)(`p`,{className:`note-text`,children:e.text})]})}function Ky({path:e,line:t,onClose:n}){let r=A(e=>e.addNote);return(0,j.jsx)(qy,{id:`note-${t??`file`}`,label:t===null?`Remarque sur le fichier`:`Remarque sur la ligne ${t}`,initialText:``,submitLabel:`Enregistrer la remarque`,onSubmit:n=>r(e,t,n),onClose:n})}function qy({id:e,label:t,initialText:n,submitLabel:r,onSubmit:i,onClose:a}){let o=A(e=>e.saving),[s,c]=(0,v.useState)(n),l=(0,v.useRef)(null);(0,v.useEffect)(()=>l.current?.focus(),[]);let u=async()=>{s.trim()!==``&&await i(s.trim())&&a()};return(0,j.jsxs)(`form`,{className:`note-composer`,onSubmit:e=>{e.preventDefault(),u()},children:[(0,j.jsx)(`label`,{className:`note-composer-label`,htmlFor:e,children:t}),(0,j.jsx)(`textarea`,{id:e,ref:l,rows:3,value:s,placeholder:`Ce que l'agent doit revoir…`,onChange:e=>c(e.target.value),onFocus:e=>e.currentTarget.setSelectionRange(e.currentTarget.value.length,e.currentTarget.value.length),onKeyDown:e=>{e.key===`Escape`&&a(),e.key===`Enter`&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),u())}}),(0,j.jsxs)(`div`,{className:`note-composer-actions`,children:[(0,j.jsx)(`span`,{className:`hint`,children:`Ctrl + Entrée pour enregistrer · Échap pour annuler`}),(0,j.jsx)(`button`,{type:`button`,className:`button button-ghost`,onClick:a,children:`Annuler`}),(0,j.jsx)(`button`,{type:`submit`,className:`button button-primary button-small`,disabled:o||s.trim()===``,children:r})]})]})}var Jy=40;function Yy(e,t){let[n,r]=(0,v.useState)([]),i=(0,v.useRef)(()=>{});return(0,v.useLayoutEffect)(()=>{i.current=()=>{let n=e.current,i=t.current;if(!n||!i)return;let a=n.getBoundingClientRect().bottom-Jy,o=[...i.querySelectorAll(`[data-finding-card]`)].map(e=>({id:e.dataset.findingCard,top:e.getBoundingClientRect().top})).filter(e=>e.top>a).sort((e,t)=>e.top-t.top).map(e=>e.id);r(e=>e.join(`
82
+ \f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function K_(e,t,n,r){let i=r.schema,a=i.space!==`svg`&&r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=Fg);let l=q_(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!z_(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!C_(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function q_(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=J_(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function J_(e,t,n){let r=jg(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=a_(r.attribute,Object.assign({},e.settings.characterReferences,{subset:G_.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?f_:p_)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=a_(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:G_.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&d_(n,o)>d_(n,e.alternative)&&(o=e.alternative),s=o+a_(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?G_.single:G_.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var Y_=[`<`,`&`];function X_(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:a_(e.value,Object.assign({},r.settings.characterReferences,{subset:Y_}))}function Z_(e,t,n,r){return r.settings.allowDangerousHtml?e.value:X_(e,t,n,r)}function Q_(e,t,n,r){return r.all(e)}var $_=Lg(`type`,{invalid:ev,unknown:tv,handlers:{comment:l_,doctype:u_,element:K_,raw:Z_,root:Q_,text:X_}});function ev(e){throw Error("Expected node, not `"+e+"`")}function tv(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var nv={},rv={},iv=[];function av(e,t){let n=t||nv,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:ov,all:sv,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||rg,characterReferences:n.characterReferences||rv,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?Fg:Pg,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function ov(e,t,n){return $_(e,t,n,this)}function sv(e){let t=[],n=e&&e.children||iv,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}var cv=/\s+/g;function lv(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(cv)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(cv);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function uv(e){let t=Th(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t.at(-1).length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}var dv=[`color`,`background-color`];function fv(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function pv(e,t){let n=0,r=e.length;for(;n<r;){let i=n+(r-n>>1);e[i]<=t?n=i+1:r=i}return n}function mv(e,t){let n=[...t instanceof Set?t:new Set(t)].sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=e.offset+e.content.length,r=pv(n,e.offset),i=r;for(;i<n.length&&n[i]<t;)i++;if(r===i)return e;let a=n.slice(r,i);for(let t=0;t<a.length;t++)a[t]-=e.offset;return fv(e,a)})):e}function hv(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>gv(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&dv.includes(a)){if(r===`light-dark()`&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new Pp('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let u=o[e][a]||`inherit`,d=o[r][a]||`inherit`;c[a]=`light-dark(${u}, ${d})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s}else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function gv(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&tm.Italic&&(t[`font-style`]=`italic`),e.fontStyle&tm.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&tm.Underline&&n.push(`underline`),e.fontStyle&tm.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function _v(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function vv(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=uv(t.source);function r(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new Pp(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...n.indexToPos(e),offset:e}}{let t=n.lines[e.line];if(t===void 0)throw new Pp(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${n.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new Pp(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:n.posToIndex(e.line,r)}}}let i=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));yv(i),e.set(t.meta,{decorations:i,converter:n,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return mv(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=[...e.children].filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new Pp(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=bv(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new Pp(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new Pp(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&lv(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>a(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function yv(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new Pp(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new Pp(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function bv(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(bv).join(``):``}var xv=[vv()];function Sv(e){let t=Cv(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...xv]}function Cv(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var wv=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],Tv={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function Ev(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function Dv(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function Ov(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r)){if(r===0)t.push({type:`resetAll`});else if(r<=9)Tv[r]&&t.push({type:`setDecoration`,value:Tv[r]});else if(r<=29){let e=Tv[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:wv[r-30]}});else if(r===38){let n=Dv(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:wv[r-40]}});else if(r===48){let n=Dv(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:wv[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:wv[r-100+8]}})}}return t}function kv(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=Ev(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=Ov(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var Av={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 jv(e=Av){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<wv.length;e++)r.push(t(wv[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var Mv=/#([0-9a-f]{3,8})/i,Nv=/var\((--[\w-]+-ansi-[\w-]+)\)/,Pv={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 Fv(e,t,n){let r=gh(e,n),i=Th(t),a=jv(Object.fromEntries(wv.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||Pv[t]]}))),o=kv();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=_h(i,r),o=_h(o,r),n.decorations.has(`dim`)&&(i=Iv(i));let s=tm.None;return n.decorations.has(`bold`)&&(s|=tm.Bold),n.decorations.has(`italic`)&&(s|=tm.Italic),n.decorations.has(`underline`)&&(s|=tm.Underline),n.decorations.has(`strikethrough`)&&(s|=tm.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function Iv(e){let t=e.match(Mv);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}if(e.length===6)return`#${e}80`;if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(Nv);return n?`var(${n[1]}-dim)`:e}function Lv(e,t,n={}){let r=e.resolveLangAlias(n.lang||`text`),{theme:i=e.getLoadedThemes()[0]}=n;if(!bh(r)&&!Sh(i)&&r===`ansi`){let{theme:r}=e.setTheme(i);return Fv(r,t,n)}return Kh(e,t,n)}function Rv(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(f.length===0)throw new Pp("`themes` option must not be empty");let p=tg(e,t,n,Lv);if(c=Bh(p),l&&l!==`light-dark()`&&!f.some(e=>e.color===l))throw new Pp(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>hv(e,h,u,l,d))),c&&zh(a,c);let g=f.map(e=>gh(e.theme,n));i=zv(f,m,g,u,l,`fg`,d),r=zv(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=gh(n.theme,n);a=Lv(e,t,n);let l=e.getTheme(n.theme);r=_h(l.bg,s),i=_h(l.fg,s),o=l.name,c=Bh(a)}else throw new Pp("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function zv(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=_h(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===`light-dark()`&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new Pp('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${_h(t[r][a],n[r])||`inherit`}, ${_h(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}var Bv=/^\s+$/,Vv=/^(\s*)(.*?)(\s*)$/;function Hv(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>Hv(e,t,n),codeToTokens:(t,n)=>Rv(e,t,n)}){let i=t;for(let e of Sv(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=Rv(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=Wv(a):d===`never`&&(a=Gv(a)),f&&(a=Kv(a));let p={...r,get source(){return i}};for(let e of Sv(n))a=e.tokens?.call(p,a)||a;return Uv(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function Uv(e,t,n,r=Bh(e)){let i=Sv(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(l.style=t.rootStyle==null?`background-color:${t.bg};color:${t.fg}`:t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:lv,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
83
+ `}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=_v(a.htmlStyle||gv(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&zh(m,r),m}function Wv(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&tm.Underline||i.fontStyle&tm.Strikethrough));o&&Bv.test(i.content)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function Gv(e){return e.map(e=>e.flatMap(e=>{if(Bv.test(e.content))return e;let t=e.content.match(Vv);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function Kv(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t.at(-1),r=_v(e.htmlStyle||gv(e)),i=_v(n.htmlStyle||gv(n)),a=e.fontStyle&&(e.fontStyle&tm.Underline||e.fontStyle&tm.Strikethrough),o=n.fontStyle&&(n.fontStyle&tm.Underline||n.fontStyle&tm.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var qv=av;function Jv(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>Hv(e,t,n),codeToTokens:(t,n)=>Rv(e,t,n)},i=qv(Hv(e,t,n,r));for(let e of Sv(n))i=e.postprocess?.call(r,i,n)||i;return i}async function Yv(e){let t=await Lh(e);return{getLastGrammarState:(...e)=>qh(t,...e),codeToTokensBase:(e,n)=>Lv(t,e,n),codeToTokensWithThemes:(e,n)=>tg(t,e,n),codeToTokens:(e,n)=>Rv(t,e,n),codeToHast:(e,n)=>Hv(t,e,n),codeToHtml:(e,n)=>Jv(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}var Xv=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Zv(){return 2147483648}function Qv(){return typeof performance<`u`?performance.now():Date.now()}var $v=(e,t)=>e+(t-e%t)%t;async function ey(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=Zv();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,$v(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:Qv,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var ty=Object.defineProperty,ny=(e,t,n)=>t in e?ty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ry=(e,t,n)=>ny(e,typeof t==`symbol`?t:t+``,n),iy=null;function ay(e){throw new Xv(e.UTF8ToString(e.getLastOnigError()))}var oy=class e{constructor(t){ry(this,`utf16Length`),ry(this,`utf8Length`),ry(this,`utf16Value`),ry(this,`utf8Value`),ry(this,`utf16OffsetToUtf8`),ry(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}t+=a<=127?1:a<=2047?2:a<=65535?3:4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},sy=class e{constructor(t){if(ry(this,`id`,++e.LAST_ID),ry(this,`_onigBinding`),ry(this,`content`),ry(this,`utf16Length`),ry(this,`utf8Length`),ry(this,`utf16OffsetToUtf8`),ry(this,`utf8OffsetToUtf16`),ry(this,`ptr`),!iy)throw new Xv(`Must invoke loadWasm first.`);this._onigBinding=iy,this.content=t;let n=new oy(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=iy.omalloc(1e4),e._sharedPtrInUse=!0,iy.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(iy)}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===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};ry(sy,`LAST_ID`,0),ry(sy,`_sharedPtr`,0),ry(sy,`_sharedPtrInUse`,!1);var cy=sy,ly=class{constructor(e){if(ry(this,`_onigBinding`),ry(this,`_ptr`),!iy)throw new Xv(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new oy(e[r]);t[r]=i.createString(iy),n[r]=i.utf8Length}let r=iy.omalloc(4*e.length);iy.HEAPU32.set(t,r/4);let i=iy.omalloc(4*e.length);iy.HEAPU32.set(n,i/4);let a=iy.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)iy.ofree(t[n]);iy.ofree(i),iy.ofree(r),a===0&&ay(iy),this._onigBinding=iy,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new cy(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function uy(e){return typeof e.instantiator==`function`}function dy(e){return typeof e.default==`function`}function fy(e){return e.data!==void 0}function py(e){return typeof Response<`u`&&e instanceof Response}function my(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var hy;function gy(e){if(hy)return hy;async function t(){iy=await ey(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),uy(n)?n=await n.instantiator(t):dy(n)?n=await n.default(t):(fy(n)&&(n=n.data),py(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await vy(n)(t):await yy(n)(t):my(n)||n instanceof WebAssembly.Module?n=await _y(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await _y(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return hy=t(),hy}function _y(e){return t=>WebAssembly.instantiate(e,t)}function vy(e){return t=>WebAssembly.instantiateStreaming(e,t)}function yy(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function by(e){return e&&await gy(e),{createScanner(e){return new ly(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new cy(e)}}}var xy=`modulepreload`,Sy=function(e,t){return new URL(e,t).href},Cy={},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Sy(t,n),t=s(t),t in Cy)return;Cy[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:xy,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},wy=[{id:`abap`,name:`ABAP`,import:(()=>$(()=>import(`./abap-CLvhMVsD.js`),[],import.meta.url))},{id:`actionscript-3`,name:`ActionScript`,aliases:[`actionscript`,`as3`],import:(()=>$(()=>import(`./actionscript-3-Cs6JJXT5.js`),[],import.meta.url))},{id:`ada`,name:`Ada`,import:(()=>$(()=>import(`./ada-X3Y2mlq2.js`),[],import.meta.url))},{id:`ahk`,name:`AutoHotkey`,aliases:[`ahk1`],import:(()=>$(()=>import(`./ahk-DwADkxyd.js`),[],import.meta.url))},{id:`ahk2`,name:`AutoHotkey2`,import:(()=>$(()=>import(`./ahk2-_6rzW9BS.js`),[],import.meta.url))},{id:`angular-html`,name:`Angular HTML`,import:(()=>$(()=>import(`./angular-html-C803cuWd.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3]),import.meta.url))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>$(()=>import(`./angular-ts-CvT6keay.js`),__vite__mapDeps([4,0,1,2,3,5]),import.meta.url))},{id:`apache`,name:`Apache Conf`,import:(()=>$(()=>import(`./apache-U0d_L8uA.js`),[],import.meta.url))},{id:`apex`,name:`Apex`,import:(()=>$(()=>import(`./apex-KFGFyKwG.js`),[],import.meta.url))},{id:`apl`,name:`APL`,import:(()=>$(()=>import(`./apl-BvfOmnA0.js`),__vite__mapDeps([6,2,3,1,7,8,9]),import.meta.url))},{id:`applescript`,name:`AppleScript`,import:(()=>$(()=>import(`./applescript-CCn79oCD.js`),[],import.meta.url))},{id:`ara`,name:`Ara`,import:(()=>$(()=>import(`./ara-4CJ0cIlV.js`),[],import.meta.url))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>$(()=>import(`./asciidoc-SCjQUq34.js`),[],import.meta.url))},{id:`asm`,name:`Assembly`,import:(()=>$(()=>import(`./asm-Cmm7eHzH.js`),[],import.meta.url))},{id:`astro`,name:`Astro`,import:(()=>$(()=>import(`./astro-BewkfgzR.js`),__vite__mapDeps([10,2,3,9,11,12,13]),import.meta.url))},{id:`awk`,name:`AWK`,import:(()=>$(()=>import(`./awk-BWXHIvNe.js`),[],import.meta.url))},{id:`ballerina`,name:`Ballerina`,import:(()=>$(()=>import(`./ballerina-B7ZEbQpA.js`),[],import.meta.url))},{id:`bat`,name:`Batch File`,aliases:[`batch`,`cmd`],import:(()=>$(()=>import(`./bat-qdxAdBWQ.js`),[],import.meta.url))},{id:`beancount`,name:`Beancount`,import:(()=>$(()=>import(`./beancount-C2IN4Vk8.js`),[],import.meta.url))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>$(()=>import(`./berry-DKpUyyne.js`),[],import.meta.url))},{id:`bibtex`,name:`BibTeX`,import:(()=>$(()=>import(`./bibtex-Ci_nEsc7.js`),[],import.meta.url))},{id:`bicep`,name:`Bicep`,import:(()=>$(()=>import(`./bicep-CUHmPFLl.js`),[],import.meta.url))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>$(()=>import(`./bird2-CYIUgYqB.js`),[],import.meta.url))},{id:`blade`,name:`Blade`,import:(()=>$(()=>import(`./blade-D9BPuilJ.js`),__vite__mapDeps([14,2,3,1,7,8,9,15,16]),import.meta.url))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>$(()=>import(`./bsl-_VjlB9mv.js`),__vite__mapDeps([17,18]),import.meta.url))},{id:`c`,name:`C`,import:(()=>$(()=>import(`./c-Bt2Wt4Hi.js`).then(e=>e.n),[],import.meta.url))},{id:`c3`,name:`C3`,import:(()=>$(()=>import(`./c3-D0apG41V.js`),[],import.meta.url))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>$(()=>import(`./cadence-CQ2zXKGN.js`),[],import.meta.url))},{id:`cairo`,name:`Cairo`,import:(()=>$(()=>import(`./cairo-DLTphjLi.js`),__vite__mapDeps([19,20]),import.meta.url))},{id:`chapel`,name:`Chapel`,aliases:[`chpl`],import:(()=>$(()=>import(`./chapel-CfZ6A-f4.js`),__vite__mapDeps([21,22]),import.meta.url))},{id:`clarity`,name:`Clarity`,import:(()=>$(()=>import(`./clarity-CtfBBspg.js`),[],import.meta.url))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>$(()=>import(`./clojure-DqKBuwfJ.js`),[],import.meta.url))},{id:`cmake`,name:`CMake`,import:(()=>$(()=>import(`./cmake-Bj61d0ZC.js`),[],import.meta.url))},{id:`cobol`,name:`COBOL`,import:(()=>$(()=>import(`./cobol-DAJsUO2X.js`),__vite__mapDeps([23,1,2,3,8]),import.meta.url))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>$(()=>import(`./codeowners-C8r90Shi.js`),[],import.meta.url))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>$(()=>import(`./codeql-oeQT6MSM.js`),[],import.meta.url))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>$(()=>import(`./coffee-1RFHpyYJ.js`),__vite__mapDeps([24,2]),import.meta.url))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>$(()=>import(`./common-lisp-Cv5bFMCO.js`),[],import.meta.url))},{id:`coq`,name:`Rocq`,import:(()=>$(()=>import(`./coq-CGaSfhwR.js`),[],import.meta.url))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>$(()=>import(`./cpp-DyK2AfZ-.js`).then(e=>e.n),__vite__mapDeps([25,26,27,22]),import.meta.url))},{id:`crystal`,name:`Crystal`,import:(()=>$(()=>import(`./crystal-yGa7SJEl.js`),__vite__mapDeps([28,2,3,1,16,22,29]),import.meta.url))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>$(()=>import(`./csharp-dmMxLVLW.js`),[],import.meta.url))},{id:`css`,name:`CSS`,import:(()=>$(()=>import(`./css-DYaCl1On.js`).then(e=>e.n),[],import.meta.url))},{id:`csv`,name:`CSV`,import:(()=>$(()=>import(`./csv-Dx-8-gkx.js`),[],import.meta.url))},{id:`cue`,name:`CUE`,import:(()=>$(()=>import(`./cue-CE9AQfxI.js`),[],import.meta.url))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>$(()=>import(`./cypher-ClKdZ_lG.js`),[],import.meta.url))},{id:`d`,name:`D`,import:(()=>$(()=>import(`./d-qD-0Kul2.js`),[],import.meta.url))},{id:`dart`,name:`Dart`,import:(()=>$(()=>import(`./dart-CHZY9Xhz.js`),[],import.meta.url))},{id:`dax`,name:`DAX`,import:(()=>$(()=>import(`./dax-BkyTk9wS.js`),[],import.meta.url))},{id:`desktop`,name:`Desktop`,import:(()=>$(()=>import(`./desktop-Dlh5hvp9.js`),[],import.meta.url))},{id:`diff`,name:`Diff`,import:(()=>$(()=>import(`./diff-woXpYk--.js`),[],import.meta.url))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>$(()=>import(`./docker-IyjqRm3v.js`),[],import.meta.url))},{id:`dotenv`,name:`dotEnv`,import:(()=>$(()=>import(`./dotenv-CuH5my32.js`),[],import.meta.url))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>$(()=>import(`./dream-maker-DW3nJb8Q.js`),[],import.meta.url))},{id:`edge`,name:`Edge`,import:(()=>$(()=>import(`./edge-DSJ7vFgm.js`),__vite__mapDeps([30,1,2,3,11,15]),import.meta.url))},{id:`elixir`,name:`Elixir`,import:(()=>$(()=>import(`./elixir-BswHDqIq.js`),__vite__mapDeps([31,1,2,3]),import.meta.url))},{id:`elm`,name:`Elm`,import:(()=>$(()=>import(`./elm-C76oHKwE.js`),__vite__mapDeps([32,27,22]),import.meta.url))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>$(()=>import(`./emacs-lisp-DR2vtWaj.js`),[],import.meta.url))},{id:`erb`,name:`ERB`,import:(()=>$(()=>import(`./erb-B9lT1-jn.js`),__vite__mapDeps([33,1,2,3,34,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39]),import.meta.url))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>$(()=>import(`./erlang-Cphh6RMH.js`),__vite__mapDeps([40,41]),import.meta.url))},{id:`fennel`,name:`Fennel`,import:(()=>$(()=>import(`./fennel-DQxkIbk2.js`),[],import.meta.url))},{id:`fish`,name:`Fish`,import:(()=>$(()=>import(`./fish-BJitypiv.js`),[],import.meta.url))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>$(()=>import(`./fluent-C03EYrpw.js`),[],import.meta.url))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>$(()=>import(`./fortran-fixed-form-DEKoE2YW.js`),__vite__mapDeps([42,43]),import.meta.url))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>$(()=>import(`./fortran-free-form-CYNrtFtB.js`),[],import.meta.url))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>$(()=>import(`./fsharp-D13ZGOAj.js`),__vite__mapDeps([44,41]),import.meta.url))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>$(()=>import(`./gdresource-xMC7jr7x.js`),__vite__mapDeps([45,46,47]),import.meta.url))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>$(()=>import(`./gdscript-DYvRD3hg.js`),[],import.meta.url))},{id:`gdshader`,name:`GDShader`,import:(()=>$(()=>import(`./gdshader-CBce3t8t.js`),[],import.meta.url))},{id:`genie`,name:`Genie`,import:(()=>$(()=>import(`./genie-CV2tkWYe.js`),[],import.meta.url))},{id:`gherkin`,name:`Gherkin`,import:(()=>$(()=>import(`./gherkin-DExj1W_8.js`),[],import.meta.url))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>$(()=>import(`./git-commit-BSykSTBG.js`),__vite__mapDeps([48,49]),import.meta.url))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>$(()=>import(`./git-rebase-CFJfxIKd.js`),__vite__mapDeps([50,29]),import.meta.url))},{id:`gleam`,name:`Gleam`,import:(()=>$(()=>import(`./gleam-CSRkHgEL.js`),[],import.meta.url))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>$(()=>import(`./glimmer-js-CuKOOPgF.js`),__vite__mapDeps([51,2,3,1,11]),import.meta.url))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>$(()=>import(`./glimmer-ts-Bv6mYabs.js`),__vite__mapDeps([52,2,3,1,11]),import.meta.url))},{id:`glsl`,name:`GLSL`,import:(()=>$(()=>import(`./glsl-DqkL4ruz.js`).then(e=>e.n),__vite__mapDeps([27,22]),import.meta.url))},{id:`gn`,name:`GN`,import:(()=>$(()=>import(`./gn-CAXYAgV-.js`),[],import.meta.url))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>$(()=>import(`./gnuplot-7GGW24-e.js`),[],import.meta.url))},{id:`go`,name:`Go`,import:(()=>$(()=>import(`./go-rLFTqkRN.js`),[],import.meta.url))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>$(()=>import(`./graphql-DCyxuKz9.js`).then(e=>e.n),__vite__mapDeps([36,2,11,13,37]),import.meta.url))},{id:`groovy`,name:`Groovy`,import:(()=>$(()=>import(`./groovy-CacY0gHj.js`),[],import.meta.url))},{id:`hack`,name:`Hack`,import:(()=>$(()=>import(`./hack-7eeyFCb_.js`),__vite__mapDeps([53,1,2,3,16]),import.meta.url))},{id:`haml`,name:`Ruby Haml`,import:(()=>$(()=>import(`./haml-QyW3NmJt.js`).then(e=>e.n),__vite__mapDeps([35,2,3]),import.meta.url))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>$(()=>import(`./handlebars-DUR5ijvu.js`),__vite__mapDeps([54,2,3,1,39]),import.meta.url))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>$(()=>import(`./haskell-D8IpX4py.js`),[],import.meta.url))},{id:`haxe`,name:`Haxe`,import:(()=>$(()=>import(`./haxe-C8oCnwJJ.js`),[],import.meta.url))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>$(()=>import(`./hcl-Dh228itO.js`),[],import.meta.url))},{id:`hjson`,name:`Hjson`,import:(()=>$(()=>import(`./hjson-CxZEssPk.js`),[],import.meta.url))},{id:`hlsl`,name:`HLSL`,import:(()=>$(()=>import(`./hlsl-Cvrh5tZx.js`),[],import.meta.url))},{id:`html`,name:`HTML`,import:(()=>$(()=>import(`./html-D0dPWQId.js`).then(e=>e.n),__vite__mapDeps([1,2,3]),import.meta.url))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>$(()=>import(`./html-derivative-BJvYR3eT.js`),__vite__mapDeps([15,1,2,3]),import.meta.url))},{id:`http`,name:`HTTP`,import:(()=>$(()=>import(`./http-v9oNQgxb.js`),__vite__mapDeps([55,7,8,9,29,36,2,11,13,37]),import.meta.url))},{id:`hurl`,name:`Hurl`,import:(()=>$(()=>import(`./hurl-DJKedJX0.js`),__vite__mapDeps([56,7,8,57,36,2,11,13,37]),import.meta.url))},{id:`hxml`,name:`HXML`,import:(()=>$(()=>import(`./hxml-Dcm88srW.js`),__vite__mapDeps([58,59]),import.meta.url))},{id:`hy`,name:`Hy`,import:(()=>$(()=>import(`./hy-CZbG8q4J.js`),[],import.meta.url))},{id:`imba`,name:`Imba`,import:(()=>$(()=>import(`./imba-DsUTQ-LC.js`),[],import.meta.url))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>$(()=>import(`./ini-B5eOa1yu.js`),[],import.meta.url))},{id:`java`,name:`Java`,import:(()=>$(()=>import(`./java-6WvxoSVi.js`).then(e=>e.n),[],import.meta.url))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>$(()=>import(`./javascript-EzL_Tbrw.js`).then(e=>e.n),[],import.meta.url))},{id:`jinja`,name:`Jinja`,import:(()=>$(()=>import(`./jinja-8uVAxRwt.js`),__vite__mapDeps([60,1,2,3]),import.meta.url))},{id:`jison`,name:`Jison`,import:(()=>$(()=>import(`./jison-qhKXV24I.js`),__vite__mapDeps([61,2]),import.meta.url))},{id:`json`,name:`JSON`,import:(()=>$(()=>import(`./json-Dc0z8uAY.js`).then(e=>e.n),[],import.meta.url))},{id:`json5`,name:`JSON5`,import:(()=>$(()=>import(`./json5-BR5RXkoi.js`),[],import.meta.url))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>$(()=>import(`./jsonc-CYpm1nAK.js`),[],import.meta.url))},{id:`jsonl`,name:`JSON Lines`,import:(()=>$(()=>import(`./jsonl-CmCQp5Yx.js`),[],import.meta.url))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>$(()=>import(`./jsonnet-CJTPZ8u_.js`),[],import.meta.url))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>$(()=>import(`./jssm-DXw9l8Rf.js`),[],import.meta.url))},{id:`jsx`,name:`JSX`,import:(()=>$(()=>import(`./jsx-BcAYKWnG.js`).then(e=>e.n),[],import.meta.url))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>$(()=>import(`./julia-BWweihLf.js`),__vite__mapDeps([62,2,16,20,25,26,27,22,63]),import.meta.url))},{id:`just`,name:`Just`,aliases:[`justfile`],import:(()=>$(()=>import(`./just-BJW5J7-5.js`),__vite__mapDeps([64,2,11,20,29,34,3,1,7,8,16,22,25,26,27,35,36,13,37,38,39,65]),import.meta.url))},{id:`kdl`,name:`KDL`,import:(()=>$(()=>import(`./kdl-CsD5j6eV.js`),[],import.meta.url))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>$(()=>import(`./kotlin-DhhofPvG.js`),[],import.meta.url))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>$(()=>import(`./kusto-C7mF5XQf.js`),[],import.meta.url))},{id:`latex`,name:`LaTeX`,import:(()=>$(()=>import(`./latex-D4PMSy_9.js`),__vite__mapDeps([66,67,63]),import.meta.url))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>$(()=>import(`./lean-CewbzKMR.js`),[],import.meta.url))},{id:`less`,name:`Less`,import:(()=>$(()=>import(`./less-DVTAwKKz.js`),[],import.meta.url))},{id:`liquid`,name:`Liquid`,import:(()=>$(()=>import(`./liquid-DPHzxv1d.js`),__vite__mapDeps([68,2,3,1,9]),import.meta.url))},{id:`llvm`,name:`LLVM IR`,import:(()=>$(()=>import(`./llvm-DqHOMS-s.js`),[],import.meta.url))},{id:`log`,name:`Log file`,import:(()=>$(()=>import(`./log-BNLmms1o.js`),[],import.meta.url))},{id:`logo`,name:`Logo`,import:(()=>$(()=>import(`./logo-Cluzi2Zq.js`),[],import.meta.url))},{id:`lua`,name:`Lua`,import:(()=>$(()=>import(`./lua-CXDfM5fE.js`).then(e=>e.n),__vite__mapDeps([38,22]),import.meta.url))},{id:`luau`,name:`Luau`,import:(()=>$(()=>import(`./luau-VGWVLoqX.js`),[],import.meta.url))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>$(()=>import(`./make-Dixweg8N.js`),[],import.meta.url))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>$(()=>import(`./markdown-BYOwaDjH.js`),[],import.meta.url))},{id:`marko`,name:`Marko`,import:(()=>$(()=>import(`./marko-BDaj_Ukt.js`),__vite__mapDeps([69,3,5,11,70]),import.meta.url))},{id:`matlab`,name:`MATLAB`,import:(()=>$(()=>import(`./matlab-D7qyCx1q.js`),[],import.meta.url))},{id:`mdc`,name:`MDC`,import:(()=>$(()=>import(`./mdc-_eBanByb.js`),__vite__mapDeps([71,15,1,2,3,39,41]),import.meta.url))},{id:`mdx`,name:`MDX`,import:(()=>$(()=>import(`./mdx-DQZ5AkYe.js`),[],import.meta.url))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>$(()=>import(`./mermaid-BxpfTIzt.js`),[],import.meta.url))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>$(()=>import(`./mipsasm-BMqwQI7S.js`),[],import.meta.url))},{id:`mojo`,name:`Mojo`,import:(()=>$(()=>import(`./mojo-fg40_ntQ.js`),[],import.meta.url))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>$(()=>import(`./moonbit-D9W784E_.js`),[],import.meta.url))},{id:`move`,name:`Move`,import:(()=>$(()=>import(`./move-BYnGhZoM.js`),[],import.meta.url))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>$(()=>import(`./narrat-_X_XdTYD.js`),[],import.meta.url))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>$(()=>import(`./nextflow-CSgcYZcx.js`),__vite__mapDeps([72,73]),import.meta.url))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>$(()=>import(`./nextflow-groovy-D7IRt6Pp.js`),[],import.meta.url))},{id:`nginx`,name:`Nginx`,import:(()=>$(()=>import(`./nginx-BU-LmpTn.js`),__vite__mapDeps([74,38,22]),import.meta.url))},{id:`nim`,name:`Nim`,import:(()=>$(()=>import(`./nim--YfQmvKw.js`),__vite__mapDeps([75,2,3,1,7,8,22,27,41]),import.meta.url))},{id:`nix`,name:`Nix`,import:(()=>$(()=>import(`./nix-IvuFDN5E.js`),[],import.meta.url))},{id:`nsis`,name:`NSIS`,import:(()=>$(()=>import(`./nsis-CjNLYCLg.js`),[],import.meta.url))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>$(()=>import(`./nushell--0fT3PI1.js`),[],import.meta.url))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>$(()=>import(`./objective-c-D1A_Heim.js`),[],import.meta.url))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>$(()=>import(`./objective-cpp-BsSzOQcm.js`),[],import.meta.url))},{id:`ocaml`,name:`OCaml`,import:(()=>$(()=>import(`./ocaml-O90oeIOV.js`),[],import.meta.url))},{id:`odin`,name:`Odin`,import:(()=>$(()=>import(`./odin-B1RWQWA5.js`),[],import.meta.url))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>$(()=>import(`./openscad-BUDT5pXO.js`),[],import.meta.url))},{id:`org`,name:`Org Markup`,import:(()=>$(()=>import(`./org-CrYbJtCH.js`),__vite__mapDeps([76,2,3,1,5,8,7,9,11,13,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,48,50,81,82,83,63,65,66,67,70,84,75,85,86,87,88,89,90,91,92,93]),import.meta.url))},{id:`pascal`,name:`Pascal`,import:(()=>$(()=>import(`./pascal-4ZHwLPI5.js`),[],import.meta.url))},{id:`perl`,name:`Perl`,import:(()=>$(()=>import(`./perl-eVOyYGxc.js`),__vite__mapDeps([65,2,3,1,7,8,16]),import.meta.url))},{id:`php`,name:`PHP`,import:(()=>$(()=>import(`./php-BOobhCHC.js`),__vite__mapDeps([87,2,3,1,7,8,9,16]),import.meta.url))},{id:`pkl`,name:`Pkl`,import:(()=>$(()=>import(`./pkl-ot-7Btpt.js`),[],import.meta.url))},{id:`plsql`,name:`PL/SQL`,import:(()=>$(()=>import(`./plsql-DGHpHOYJ.js`),[],import.meta.url))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>$(()=>import(`./po-BiJDBrnU.js`),[],import.meta.url))},{id:`polar`,name:`Polar`,import:(()=>$(()=>import(`./polar-C7UOKdEL.js`),[],import.meta.url))},{id:`postcss`,name:`PostCSS`,import:(()=>$(()=>import(`./postcss-BXeXVLqQ.js`),[],import.meta.url))},{id:`powerquery`,name:`PowerQuery`,import:(()=>$(()=>import(`./powerquery-DNMTfnFr.js`),[],import.meta.url))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`,`pwsh`],import:(()=>$(()=>import(`./powershell-QtSnmXcu.js`),[],import.meta.url))},{id:`prisma`,name:`Prisma`,import:(()=>$(()=>import(`./prisma-DMgNhnYS.js`),[],import.meta.url))},{id:`prolog`,name:`Prolog`,import:(()=>$(()=>import(`./prolog-iXnhIJG7.js`),[],import.meta.url))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>$(()=>import(`./proto-DB4EqR-F.js`),[],import.meta.url))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>$(()=>import(`./pug-BkJ5AC85.js`),__vite__mapDeps([94,2,3,1]),import.meta.url))},{id:`puppet`,name:`Puppet`,import:(()=>$(()=>import(`./puppet-CDv2pdJW.js`),[],import.meta.url))},{id:`purescript`,name:`PureScript`,import:(()=>$(()=>import(`./purescript-9MfHhQsQ.js`),[],import.meta.url))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>$(()=>import(`./python-gzcpVVnB.js`),[],import.meta.url))},{id:`qml`,name:`QML`,import:(()=>$(()=>import(`./qml-DDkTGMRr.js`),__vite__mapDeps([95,2]),import.meta.url))},{id:`qmldir`,name:`QML Directory`,import:(()=>$(()=>import(`./qmldir-DCQb3MpD.js`),[],import.meta.url))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>$(()=>import(`./qss-Fe1Jh2GI.js`),[],import.meta.url))},{id:`r`,name:`R`,import:(()=>$(()=>import(`./r-D2q_TRg_.js`).then(e=>e.n),[],import.meta.url))},{id:`racket`,name:`Racket`,import:(()=>$(()=>import(`./racket-DcIDlBhZ.js`),[],import.meta.url))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>$(()=>import(`./raku-B3gFvitq.js`),[],import.meta.url))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>$(()=>import(`./razor-0IgMrSqO.js`),__vite__mapDeps([96,1,2,3,78]),import.meta.url))},{id:`rbs`,name:`RBS`,aliases:[`ruby-signature`],import:(()=>$(()=>import(`./rbs-C0MpOrj4.js`),[],import.meta.url))},{id:`reg`,name:`Windows Registry Script`,import:(()=>$(()=>import(`./reg-CRGYupPL.js`),[],import.meta.url))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>$(()=>import(`./regexp-Do986jdB.js`).then(e=>e.n),[],import.meta.url))},{id:`rel`,name:`Rel`,import:(()=>$(()=>import(`./rel-BtDbiS_P.js`),[],import.meta.url))},{id:`riscv`,name:`RISC-V`,import:(()=>$(()=>import(`./riscv-Ckw8ddFX.js`),[],import.meta.url))},{id:`ron`,name:`RON`,import:(()=>$(()=>import(`./ron-VUp2lXgN.js`),[],import.meta.url))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>$(()=>import(`./rosmsg-CAekHB0j.js`),[],import.meta.url))},{id:`rst`,name:`reStructuredText`,import:(()=>$(()=>import(`./rst-CVLXVWCA.js`),__vite__mapDeps([97,2,15,1,3,20,98,25,26,27,22,29,39,34,7,8,16,35,36,11,13,37,38]),import.meta.url))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>$(()=>import(`./ruby-DHKkQKGc.js`),__vite__mapDeps([34,2,3,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39]),import.meta.url))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>$(()=>import(`./rust-DpiIf5JO.js`),[],import.meta.url))},{id:`sas`,name:`SAS`,import:(()=>$(()=>import(`./sas-CiHOBbWn.js`),__vite__mapDeps([99,16]),import.meta.url))},{id:`sass`,name:`Sass`,import:(()=>$(()=>import(`./sass-DXrisJhu.js`),[],import.meta.url))},{id:`scala`,name:`Scala`,import:(()=>$(()=>import(`./scala-BiFt_7mu.js`),[],import.meta.url))},{id:`scheme`,name:`Scheme`,import:(()=>$(()=>import(`./scheme-DQCgrYNe.js`),[],import.meta.url))},{id:`scss`,name:`SCSS`,import:(()=>$(()=>import(`./scss-Z_uLQVDp.js`).then(e=>e.n),__vite__mapDeps([5,3]),import.meta.url))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>$(()=>import(`./sdbl-bTVj8UrX.js`),[],import.meta.url))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>$(()=>import(`./shaderlab-TOUzSsQk.js`),__vite__mapDeps([100,101]),import.meta.url))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>$(()=>import(`./shellscript-BuVmUWqA.js`).then(e=>e.n),[],import.meta.url))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>$(()=>import(`./shellsession-A-I3nisu.js`),__vite__mapDeps([102,29]),import.meta.url))},{id:`smalltalk`,name:`GNU Smalltalk`,import:(()=>$(()=>import(`./smalltalk-BHpQb5nM.js`),[],import.meta.url))},{id:`smithy`,name:`Smithy`,import:(()=>$(()=>import(`./smithy-Dgaz7aur.js`),[],import.meta.url))},{id:`solidity`,name:`Solidity`,import:(()=>$(()=>import(`./solidity-Bj7E1mRn.js`),[],import.meta.url))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>$(()=>import(`./soy-C6yTdr30.js`),__vite__mapDeps([103,1,2,3]),import.meta.url))},{id:`sparql`,name:`SPARQL`,import:(()=>$(()=>import(`./sparql-D_iOobhT.js`),__vite__mapDeps([104,105]),import.meta.url))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>$(()=>import(`./splunk-BC2Px7Mm.js`),[],import.meta.url))},{id:`sql`,name:`SQL`,import:(()=>$(()=>import(`./sql-BIKi__0n.js`).then(e=>e.n),[],import.meta.url))},{id:`ssh-config`,name:`SSH Config`,import:(()=>$(()=>import(`./ssh-config-BgfXC-Er.js`),[],import.meta.url))},{id:`stata`,name:`Stata`,import:(()=>$(()=>import(`./stata-mi7Mr07J.js`),__vite__mapDeps([106,16]),import.meta.url))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>$(()=>import(`./stylus-B6D30XZt.js`),[],import.meta.url))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>$(()=>import(`./surrealql-BMrqzIzO.js`),__vite__mapDeps([107,2]),import.meta.url))},{id:`svelte`,name:`Svelte`,import:(()=>$(()=>import(`./svelte-DKga702k.js`),__vite__mapDeps([108,2,3,11,12]),import.meta.url))},{id:`swift`,name:`Swift`,import:(()=>$(()=>import(`./swift-CyEgAFGc.js`),[],import.meta.url))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>$(()=>import(`./system-verilog-Dh5ihWbf.js`),[],import.meta.url))},{id:`systemd`,name:`Systemd Units`,import:(()=>$(()=>import(`./systemd-BxMlprV5.js`),[],import.meta.url))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>$(()=>import(`./talonscript-CohzipZa.js`),[],import.meta.url))},{id:`tasl`,name:`Tasl`,import:(()=>$(()=>import(`./tasl-DMoTqEGO.js`),[],import.meta.url))},{id:`tcl`,name:`Tcl`,import:(()=>$(()=>import(`./tcl-CZd0xW_V.js`),[],import.meta.url))},{id:`templ`,name:`Templ`,import:(()=>$(()=>import(`./templ-CHEzvkbM.js`),__vite__mapDeps([109,2,3,81]),import.meta.url))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>$(()=>import(`./terraform-DswuEJGm.js`),[],import.meta.url))},{id:`tex`,name:`TeX`,import:(()=>$(()=>import(`./tex-C2F2bDqU.js`).then(e=>e.n),__vite__mapDeps([67,63]),import.meta.url))},{id:`toml`,name:`TOML`,import:(()=>$(()=>import(`./toml-CcmNWLt0.js`),[],import.meta.url))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>$(()=>import(`./ts-tags-Drr0KQD5.js`),__vite__mapDeps([110,2,3,1,7,8,11,16,27,22]),import.meta.url))},{id:`tsv`,name:`TSV`,import:(()=>$(()=>import(`./tsv-sltzmVWM.js`),[],import.meta.url))},{id:`tsx`,name:`TSX`,import:(()=>$(()=>import(`./tsx-DzNsC1nx.js`).then(e=>e.n),[],import.meta.url))},{id:`turtle`,name:`Turtle`,import:(()=>$(()=>import(`./turtle-ByJddavk.js`),[],import.meta.url))},{id:`twig`,name:`Twig`,import:(()=>$(()=>import(`./twig-DxlnE1mU.js`),__vite__mapDeps([111,2,3,5,20,34,1,7,8,16,22,25,26,27,29,35,36,11,13,37,38,39,87,9]),import.meta.url))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>$(()=>import(`./typescript-BP73YOLI.js`).then(e=>e.n),[],import.meta.url))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>$(()=>import(`./typespec-BGhR2SqG.js`),[],import.meta.url))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>$(()=>import(`./typst-CJQorTdx.js`),__vite__mapDeps([112,2,3,1,5,8,7,9,11,13,113,114,16,22,20,77,24,26,25,27,29,78,79,49,80,31,38,39,34,35,36,37,41,40,44,48,50,81,82,54,83,115,63,62,65,66,67,70,116,84,85,87,88,89,90,91,93,117,94,118,119,111,120]),import.meta.url))},{id:`v`,name:`V`,import:(()=>$(()=>import(`./v-DBj4K9d_.js`),[],import.meta.url))},{id:`vala`,name:`Vala`,import:(()=>$(()=>import(`./vala-zf12oZj6.js`),[],import.meta.url))},{id:`vb`,name:`Visual Basic`,import:(()=>$(()=>import(`./vb-DOwzaHZ0.js`),[],import.meta.url))},{id:`verilog`,name:`Verilog`,import:(()=>$(()=>import(`./verilog-B2gwz-sJ.js`),[],import.meta.url))},{id:`vhdl`,name:`VHDL`,import:(()=>$(()=>import(`./vhdl-BroJfC0k.js`),[],import.meta.url))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>$(()=>import(`./viml-DvXPmvsu.js`),[],import.meta.url))},{id:`vue`,name:`Vue`,import:(()=>$(()=>import(`./vue-BtstEY8l.js`),__vite__mapDeps([121,2,3,1,9,11,15]),import.meta.url))},{id:`vue-html`,name:`Vue HTML`,import:(()=>$(()=>import(`./vue-html-CPzooE-G.js`),__vite__mapDeps([122,2]),import.meta.url))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>$(()=>import(`./vue-vine-tHQVTFsT.js`),__vite__mapDeps([123,2,3,5,12,70,124]),import.meta.url))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>$(()=>import(`./vyper-CgoNMtux.js`),[],import.meta.url))},{id:`wasm`,name:`WebAssembly`,import:(()=>$(()=>import(`./wasm-ByWQv1Qj.js`),[],import.meta.url))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>$(()=>import(`./wenyan-C8pVoKbM.js`),[],import.meta.url))},{id:`wgsl`,name:`WGSL`,import:(()=>$(()=>import(`./wgsl-BsKzXJz4.js`),[],import.meta.url))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>$(()=>import(`./wikitext-ClFFjSW2.js`),[],import.meta.url))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>$(()=>import(`./wit-DdvCle-K.js`),[],import.meta.url))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>$(()=>import(`./wolfram-DLL8P-h_.js`),[],import.meta.url))},{id:`xml`,name:`XML`,import:(()=>$(()=>import(`./xml-CaiLyf9Y.js`).then(e=>e.n),__vite__mapDeps([7,8]),import.meta.url))},{id:`xsl`,name:`XSL`,import:(()=>$(()=>import(`./xsl-D3auBxiz.js`),__vite__mapDeps([93,7,8]),import.meta.url))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>$(()=>import(`./yaml-D4sD_vcV.js`).then(e=>e.n),[],import.meta.url))},{id:`zenscript`,name:`ZenScript`,import:(()=>$(()=>import(`./zenscript-BnlCZFoB.js`),[],import.meta.url))},{id:`zig`,name:`Zig`,import:(()=>$(()=>import(`./zig-CMLA9XwU.js`),[],import.meta.url))}],Ty=Object.fromEntries(wy.map(e=>[e.id,e.import])),Ey=Object.fromEntries(wy.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),Dy={...Ty,...Ey},Oy=`github-dark-default`,ky={h:`c`,hh:`cpp`,hpp:`cpp`,hxx:`cpp`,cc:`cpp`,cxx:`cpp`,htm:`html`,svg:`xml`,pl:`perl`,ex:`elixir`,exs:`elixir`,makefile:`make`,dockerfile:`dockerfile`},Ay=new Map;for(let e of wy)for(let t of[e.id,...e.aliases??[]])Ay.set(t.toLowerCase(),e.id);for(let[e,t]of Object.entries(ky))Ay.set(e,t);function jy(e){let t=e.slice(e.lastIndexOf(`/`)+1).toLowerCase(),n=t.lastIndexOf(`.`),r=n===-1?t:t.slice(n+1);return Ay.get(r)??Ay.get(t)??null}var My=null;function Ny(){return My??=Yv({themes:[$(()=>import(`./github-dark-default-DXG-b-1a.js`),[],import.meta.url)],langs:[],engine:by($(()=>import(`./wasm-BnjxR4X6.js`),[],import.meta.url))}),My}async function Py(e){let t=await Ny();return t.getLoadedLanguages().includes(e)||await t.loadLanguage(Dy[e]),n=>n.length===0?[]:t.codeToTokensBase(n.join(`
84
+ `),{lang:e,theme:Oy})}function Fy(e,t){let n=new Map,r=new Map;if(e.newContent!==null){let r=Math.max(0,...e.hunks.flatMap(e=>e.lines.map(e=>e.newNo??0)));t(ve(e.newContent).slice(0,r)).forEach((e,t)=>n.set(t+1,e))}for(let i of e.hunks){let a=i.lines.filter(e=>e.type!==`add`);if(t(a.map(e=>e.text)).forEach((e,t)=>r.set(a[t].oldNo,e)),e.newContent===null){let e=i.lines.filter(e=>e.type!==`del`);t(e.map(e=>e.text)).forEach((t,r)=>n.set(e[r].newNo,t))}}return{newSide:n,oldSide:r}}function Iy(e){let t=jy(e.path),[n,r]=(0,v.useState)(null);(0,v.useEffect)(()=>{if(t===null)return;let e=!1;return Py(t).then(n=>!e&&r({lang:t,tokenizer:n}),n=>!e&&r({lang:t,error:n instanceof Error?n.message:String(n)})),()=>{e=!0}},[t]);let i=n!==null&&n.lang===t?n:null,a=i!==null&&`tokenizer`in i?i.tokenizer:null;return(0,v.useMemo)(()=>{if(i!==null&&`error`in i)return{status:`error`,message:i.error};if(a===null)return{status:`none`};let t=new Map;return{status:`ready`,file:Fy(e,a),suggestion:e=>{let n=t.get(e);return n||(n=a(ve(e)),t.set(e,n)),n}}},[i,a,e])}var Ly={context:` `,add:`+`,del:`−`};function Ry(e,t){return t===`new`&&e===`add`?`is-new`:`is-${e}`}function zy(e,t){let n=[],r=0;for(let{text:i,style:a}of e){let e=[0,...t?[t.start,t.end].map(e=>Math.min(Math.max(e-r,0),i.length)):[],i.length];for(let o=0;o<e.length-1;o++){if(e[o+1]<=e[o])continue;let s=i.slice(e[o],e[o+1]),c=r+e[o];n.push({text:s,style:a,marked:t!==null&&c>=t.start&&c<t.end})}r+=i.length}return n}function By({text:e,tokens:t,mark:n=null}){let r=t?t.map(e=>({text:e.content,style:Hy(e)})):[{text:e}];return(0,j.jsx)(`span`,{className:`diff-code${t?` is-highlighted`:``}`,children:zy(r,n).map((e,t)=>(0,j.jsx)(`span`,{style:e.style,className:e.marked?`diff-indent is-${n.kind}`:void 0,children:e.text},t))})}function Vy(e,t){let{oldEnd:n,newEnd:r}=tp(e,t);return r>n?`→`:r<n?`←`:`↔`}function Hy(e){let t=e.fontStyle??0;return{color:e.color,fontStyle:t&1?`italic`:void 0,fontWeight:t&2?600:void 0}}function Uy(e){return e?{"--mark":ue[e.severity].color}:void 0}function Wy(e){return e?e.muted?` has-bar is-bar-muted`:` has-bar`:``}function Gy({entries:e}){return(0,j.jsx)(`span`,{className:`diff-pills`,children:e.map(e=>(0,j.jsx)(`span`,{className:e.finding.status===`open`?void 0:`is-muted`,title:e.finding.title,children:(0,j.jsx)(X,{entry:e,small:!0})},e.finding.id))})}function Ky({entry:e,bar:t,pills:n,applied:r,isTarget:i,onHide:a}){let o=ve(e.finding.suggestion??``).length===0,s=Np(e.startLine,e.endLine),c=o?`supprime ${s}`:`remplace ${s}`;return(0,j.jsxs)(`div`,{className:`fix-strip${r?` is-applied`:``}${Wy(t)}${i?` is-target`:``}`,style:Uy(t),"data-fix":e.finding.id,children:[(0,j.jsx)(X,{entry:e,small:!0}),(0,j.jsx)(M,{name:`sparkles`,color:`#8b97ff`}),(0,j.jsx)(`span`,{className:`fix-strip-text`,children:r?`Correctif ${e.number} appliqué — ${c}`:`Correctif proposé par l'agent — ${c}`}),n.length>0&&(0,j.jsx)(Gy,{entries:n}),(0,j.jsx)(`button`,{type:`button`,className:`fix-strip-hide`,onClick:a,children:r?`Retirer le correctif`:`Masquer le correctif`})]})}function qy({id:e,label:t,labels:n,value:r,onChange:i,disabled:a}){return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(`span`,{className:`diff-toolbar-label`,id:e,children:t}),(0,j.jsx)(`div`,{className:`segmented segmented-small`,role:`group`,"aria-labelledby":e,children:Object.keys(n).map(e=>(0,j.jsx)(`button`,{type:`button`,className:`segmented-item${e===r?` is-active`:``}`,"aria-pressed":e===r,disabled:a?.[e]!==void 0,title:a?.[e],onClick:()=>i(e),children:n[e]},e))})]})}function Jy({mode:e,codeView:t,explained:n,reindented:r}){return(0,j.jsxs)(`div`,{className:`diff-legend`,children:[t===`new`?(0,j.jsxs)(`span`,{className:`legend-item`,children:[(0,j.jsx)(`span`,{className:`legend-swatch is-new`}),`Ajouté par la feature`]}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsxs)(`span`,{className:`legend-item`,children:[(0,j.jsx)(`span`,{className:`legend-swatch is-add`}),`Ajouté par la feature`]}),(0,j.jsxs)(`span`,{className:`legend-item`,children:[(0,j.jsx)(`span`,{className:`legend-swatch is-del`}),`Supprimé par la feature`]})]}),r&&(0,j.jsxs)(`span`,{className:`legend-item`,children:[(0,j.jsx)(`span`,{className:`legend-swatch is-reindent`}),`Indentation modifiée`]}),e===`before-after`&&(0,j.jsxs)(`span`,{className:`legend-item`,children:[(0,j.jsx)(`span`,{className:`legend-swatch is-replaced`}),`Lignes remplacées par le correctif`]}),e!==`off`&&(0,j.jsxs)(`span`,{className:`legend-item`,children:[(0,j.jsx)(`span`,{className:`legend-swatch is-proposed`}),e===`applied`?`Correctif appliqué`:`Correctif proposé`]}),n&&(0,j.jsxs)(`span`,{className:`legend-item`,children:[(0,j.jsx)(`span`,{className:`legend-swatch is-explained`}),`Code décrit par une explication`]})]})}function Yy({file:e,fileDiff:t,hunks:n,notedLines:r,mode:i,onModeChange:a,codeView:o,onCodeViewChange:s,scope:c,onScopeChange:l,wholeFileAvailable:u,explained:d,target:f,onLineNote:p,onHideFix:m,onRequestExplanation:h}){let g=e.contentAvailable,_=Iy(t),v=(e,t)=>(0,j.jsx)(Ky,{entry:e.entry,bar:e.bar,pills:e.pills,applied:i===`applied`,isTarget:gp(f,{kind:`fix`,entry:e.entry}),onHide:()=>m(e.entry.finding.id)},t),y=(e,t,n)=>{if(e.kind===`fix-line`)return(0,j.jsxs)(`div`,{className:`diff-line is-proposed${Wy(e.bar)}`,style:Uy(e.bar),children:[(0,j.jsx)(`span`,{className:`diff-num`}),(0,j.jsx)(`span`,{className:`diff-marker`,children:`›`}),(0,j.jsx)(By,{text:e.text,tokens:_.status===`ready`?_.suggestion(e.entry.finding.suggestion??``)[e.index]:void 0})]},n);let{oldLine:i}=e,a=t===`old`,s=a&&i?i:e.line,c=i??(s.type===`del`?s:null),l=e.replaced&&!a,u=a?null:e.bar,d=a?null:s.newNo,m=_.status!==`ready`||l?void 0:s.type===`del`?_.file.oldSide.get(s.oldNo):_.file.newSide.get(s.newNo),h=i?tp(i.text,e.line.text):null,v=h===null?null:a?{start:h.start,end:h.oldEnd,kind:`del`}:{start:h.start,end:h.newEnd,kind:`add`},y=[`diff-line`,i?`is-reindent`:Ry(s.type,o),l?`is-replaced`:``,e.explained?`is-explained`:``,Wy(u).trim(),d!==null&&gp(f,{kind:`line`,line:d})?`is-target`:``];return(0,j.jsxs)(`div`,{className:y.filter(Boolean).join(` `),style:Uy(u),"data-line":d??void 0,"data-old-line":t===`new`?void 0:c?.oldNo??void 0,children:[d!==null&&r.has(d)&&(0,j.jsx)(`span`,{className:`diff-note-dot`,title:`Remarque sur cette ligne`}),d!==null&&g?(0,j.jsx)(`button`,{type:`button`,className:`diff-num`,title:`Ajouter une remarque sur la ligne ${d}`,onClick:()=>p(d),children:d}):(0,j.jsx)(`span`,{className:`diff-num`,children:(a?s.oldNo:d)??``}),i?(0,j.jsx)(`span`,{className:`diff-marker`,title:`Seule l'indentation de cette ligne change (ligne ${i.oldNo} avant)`,children:Vy(i.text,e.line.text)}):(0,j.jsx)(`span`,{className:`diff-marker`,children:o===`new`?``:Ly[s.type]}),(0,j.jsx)(By,{text:s.text,tokens:m,mark:l?null:v}),!a&&e.pills.length>0&&(0,j.jsx)(Gy,{entries:e.pills})]},n)};return(0,j.jsxs)(`div`,{className:`diff`,children:[(0,j.jsxs)(`div`,{className:`diff-toolbar`,children:[_.status===`error`&&(0,j.jsxs)(`span`,{className:`diff-toolbar-error`,children:[`Coloration syntaxique indisponible : `,_.message]}),(0,j.jsx)(qy,{id:`diff-scope-label`,label:`Afficher`,labels:dp,value:c,onChange:l,disabled:u?void 0:{file:`Le contenu de ce fichier n'est pas conservé dans l'analyse.`}}),(0,j.jsx)(`span`,{className:`diff-toolbar-gap`}),(0,j.jsx)(qy,{id:`code-view-label`,label:`Code`,labels:up,value:o,onChange:s}),(0,j.jsx)(`span`,{className:`diff-toolbar-gap`}),(0,j.jsx)(qy,{id:`fix-mode-label`,label:`Correctifs`,labels:lp,value:i,onChange:a})]}),n.map((e,t)=>(0,j.jsxs)(`div`,{className:`hunk`,children:[(0,j.jsxs)(`div`,{className:`hunk-header`,children:[(0,j.jsx)(`span`,{className:`hunk-header-text mono`,children:e.hunk.header}),(0,j.jsxs)(`button`,{type:`button`,className:`hunk-explain`,title:`Copier un prompt qui demande à l'agent d'expliquer ce bloc et d'ajouter ses explications à l'analyse`,onClick:()=>h(e.hunk),children:[(0,j.jsx)(M,{name:`bot`,color:`#3cc4b4`}),`Copier une demande d'explication`]})]}),o===`split`?Op(e.rows).map((e,t)=>e.kind===`full`?v(e.row,t):(0,j.jsxs)(`div`,{className:`diff-split-row`,children:[e.left?y(e.left,`old`):(0,j.jsx)(`div`,{className:`diff-line is-empty`}),e.right?y(e.right,`new`):(0,j.jsx)(`div`,{className:`diff-line is-empty`})]},t)):e.rows.map((e,t)=>e.kind===`fix-strip`?v(e,t):y(e,`both`,t))]},t)),(0,j.jsx)(Jy,{mode:i,codeView:o,explained:d,reindented:n.some(e=>e.rows.some(e=>e.kind===`line`&&e.oldLine!==null))})]})}var Xy=8,Zy=600;function Qy({explanation:e}){let[t,n]=(0,v.useState)(!1),{side:r,startLine:i,endLine:a}=e.location,o=e.body.split(`
85
+ `).length>Xy||e.body.length>Zy;return(0,j.jsxs)(`article`,{className:`margin-card margin-explanation is-${e.status}`,"data-explanation-card":e.id,children:[(0,j.jsxs)(`header`,{className:`margin-card-head`,children:[(0,j.jsx)(M,{name:`info`,color:`#3cc4b4`}),(0,j.jsx)(`span`,{className:`margin-explanation-kind`,children:`Explication`}),r===`old`&&(0,j.jsx)(`span`,{className:`tag explanation-side`,children:`Code supprimé`}),e.status===`outdated`&&(0,j.jsx)(`span`,{className:`tag explanation-outdated-tag`,children:`Obsolète`}),(0,j.jsxs)(`span`,{className:`margin-card-lines mono`,title:r===`old`?`Numéros de ligne avant la feature`:void 0,children:[`l. `,ye(i,a,`–`)]})]}),(0,j.jsx)(`h3`,{className:`margin-card-title`,children:e.title}),e.status===`outdated`&&(0,j.jsx)(`p`,{className:`explanation-outdated`,children:`Le code décrit a changé depuis la rédaction de cette explication : elle peut ne plus correspondre.`}),(0,j.jsx)(`p`,{className:`margin-explanation-body${o&&!t?` is-folded`:``}`,children:e.body}),o&&(0,j.jsx)(`button`,{type:`button`,className:`margin-explanation-more`,"aria-expanded":t,onClick:()=>n(!t),children:t?`Réduire`:`Lire la suite`})]})}function $y({note:e}){let t=A(e=>e.updateNote),n=A(e=>e.deleteNote),r=A(e=>e.saving),[i,a]=(0,v.useState)(!1),o=e.location?.line?`ligne ${e.location.line}`:`fichier entier`;return i?(0,j.jsx)(tb,{id:`note-edit-${e.id}`,label:`Modifier la remarque (${o})`,initialText:e.text,submitLabel:`Enregistrer la modification`,onSubmit:n=>n===e.text?Promise.resolve(!0):t(e.id,n),onClose:()=>a(!1)}):(0,j.jsxs)(`div`,{className:`note-card`,children:[(0,j.jsxs)(`div`,{className:`note-head`,children:[(0,j.jsx)(Jl,{fixed:!1}),(0,j.jsxs)(`span`,{className:`note-meta`,title:`${o} · ${Ce(e.createdAt)}`,children:[o,` · `,we(e.createdAt)]}),(0,j.jsxs)(`button`,{type:`button`,className:`link-button muted`,disabled:r,onClick:()=>a(!0),children:[(0,j.jsx)(M,{name:`pencil`,size:13}),`Modifier`]}),(0,j.jsxs)(`button`,{type:`button`,className:`link-button muted`,disabled:r,onClick:()=>void n(e.id),children:[(0,j.jsx)(M,{name:`trash`,size:13}),`Supprimer`]})]}),(0,j.jsx)(`p`,{className:`note-text`,children:e.text})]})}function eb({path:e,line:t,onClose:n}){let r=A(e=>e.addNote);return(0,j.jsx)(tb,{id:`note-${t??`file`}`,label:t===null?`Remarque sur le fichier`:`Remarque sur la ligne ${t}`,initialText:``,submitLabel:`Enregistrer la remarque`,onSubmit:n=>r(e,t,n),onClose:n})}function tb({id:e,label:t,initialText:n,submitLabel:r,onSubmit:i,onClose:a}){let o=A(e=>e.saving),[s,c]=(0,v.useState)(n),l=(0,v.useRef)(null);(0,v.useEffect)(()=>l.current?.focus(),[]);let u=async()=>{s.trim()!==``&&await i(s.trim())&&a()};return(0,j.jsxs)(`form`,{className:`note-composer`,onSubmit:e=>{e.preventDefault(),u()},children:[(0,j.jsx)(`label`,{className:`note-composer-label`,htmlFor:e,children:t}),(0,j.jsx)(`textarea`,{id:e,ref:l,rows:3,value:s,placeholder:`Ce que l'agent doit revoir…`,onChange:e=>c(e.target.value),onFocus:e=>e.currentTarget.setSelectionRange(e.currentTarget.value.length,e.currentTarget.value.length),onKeyDown:e=>{e.key===`Escape`&&a(),e.key===`Enter`&&(e.ctrlKey||e.metaKey)&&(e.preventDefault(),u())}}),(0,j.jsxs)(`div`,{className:`note-composer-actions`,children:[(0,j.jsx)(`span`,{className:`hint`,children:`Ctrl + Entrée pour enregistrer · Échap pour annuler`}),(0,j.jsx)(`button`,{type:`button`,className:`button button-ghost`,onClick:a,children:`Annuler`}),(0,j.jsx)(`button`,{type:`submit`,className:`button button-primary button-small`,disabled:o||s.trim()===``,children:r})]})]})}var nb=40;function rb(e,t){let[n,r]=(0,v.useState)([]),i=(0,v.useRef)(()=>{});return(0,v.useLayoutEffect)(()=>{i.current=()=>{let n=e.current,i=t.current;if(!n||!i)return;let a=n.getBoundingClientRect().bottom-nb,o=[...i.querySelectorAll(`[data-finding-card]`)].map(e=>({id:e.dataset.findingCard,top:e.getBoundingClientRect().top})).filter(e=>e.top>a).sort((e,t)=>e.top-t.top).map(e=>e.id);r(e=>e.join(`
86
86
  `)===o.join(`
87
- `)?e:o)},i.current()}),(0,v.useEffect)(()=>{let n=e.current,r=t.current;if(!n||!r)return;let a=()=>i.current();n.addEventListener(`scroll`,a,{passive:!0});let o=new ResizeObserver(a);return o.observe(n),o.observe(r),()=>{n.removeEventListener(`scroll`,a),o.disconnect()}},[e,t]),n}var Xy=12;function Zy(e){let t=[],n=-12;for(let r of e){let e=Math.max(r.anchorTop,n+Xy,0);t.push(e),n=e+r.height}return t}function Qy(e,t){(0,v.useLayoutEffect)(()=>{let n=e.current,r=t.current;if(!n||!r)return;let i=[...n.querySelectorAll(`:scope > [data-anchor]`)],a=()=>{let e=n.getBoundingClientRect().top,t=i.map(t=>{let n=r.querySelector(t.dataset.anchor);if(!n)throw Error(`Ancre introuvable dans le diff : ${t.dataset.anchor}`);return{anchorTop:n.getBoundingClientRect().top-e,height:t.offsetHeight}}),a=Zy(t);i.forEach((e,n)=>{e.style.top=`${a[n]}px`,e.style.setProperty(`--shift`,`${a[n]-t[n].anchorTop}px`)});let o=i.length-1;n.style.minHeight=o<0?``:`${a[o]+t[o].height}px`};a();let o=new ResizeObserver(a);o.observe(r);for(let e of i)o.observe(e);return()=>o.disconnect()})}function $y({filters:e}){let t=[{key:`findings`,label:`Constats`,count:e.findingCount,shown:e.findingsShown,color:`#e3a33b`,onChange:e.onFindingsShownChange},{key:`explanations`,label:`Explications`,count:e.explanationCount,shown:e.explanationsShown,color:`#3cc4b4`,onChange:e.onExplanationsShownChange}];return(0,j.jsx)(`div`,{className:`margin-filters`,role:`group`,"aria-label":`Éléments affichés`,children:t.map(e=>(0,j.jsxs)(`button`,{type:`button`,className:`margin-filter${e.shown?` is-on`:``}`,style:{"--filter":e.color},"aria-pressed":e.shown,title:e.shown?`Masquer les ${e.label.toLowerCase()}`:`Afficher les ${e.label.toLowerCase()}`,onClick:()=>e.onChange(!e.shown),children:[(0,j.jsx)(`span`,{className:`margin-filter-dot`,"aria-hidden":`true`}),e.label,(0,j.jsx)(`span`,{className:`margin-filter-count`,children:e.count})]},e.key))})}function eb({numbered:e,onReveal:t}){return(0,j.jsx)(`nav`,{className:`margin-index`,"aria-label":`Index des constats du fichier`,children:e.map(e=>{let{finding:n}=e,r=n.status===`open`?``:` · ${fe[n.status].toLowerCase()}`;return(0,j.jsxs)(`button`,{type:`button`,className:`margin-index-item${n.status===`open`?``:` is-muted`}`,style:{color:ue[n.severity].color},title:`${n.title} · ${Fe(e.startLine,e.endLine)}${r}`,onClick:()=>t(e),children:[(0,j.jsx)(ep,{entry:e,small:!0}),(0,j.jsxs)(`span`,{className:`mono`,children:[`l.`,e.startLine]})]},n.id)})})}function tb({analysis:e,file:t,numbered:n,explanations:r,filters:i,fileDiff:a,fixes:o,mode:s,codeView:c,removed:l,lineNotes:u,shownLines:d,composer:f,setComposer:p,onToggleFix:m,scopeRef:h,scrollRef:g,onReveal:_,revealedId:y}){let b=(0,v.useRef)(null),x=(0,v.useRef)(null);Qy(x,h);let S=Yy(g,b),ee=S.length===0?void 0:n.find(e=>e.finding.id===S[0]),te=t.contentAvailable,C=d??new Set,ne=e.notes.filter(e=>e.location?.path===t.path&&e.location.line===null),w=(t,n)=>(0,j.jsx)(np,{analysis:e,entry:t,fix:o.get(t.finding.id),mode:s,onToggleFix:e=>m(t.finding.id,e),onAddNote:te?()=>p({line:n}):void 0,highlighted:t.finding.id===y}),T=e=>(0,j.jsx)(Ky,{path:t.path,line:e,onClose:()=>p(null)}),E=[],D=[];for(let e of n){let t=hp(e,o,C,l),n=ip(C,e.startLine,e.endLine);if(t===null||n===null){D.push((0,j.jsx)(`div`,{children:w(e,e.startLine)},e.finding.id));continue}E.push({key:`finding-${e.finding.id}`,anchor:up(t),line:dp(t),rank:e.number,color:e.finding.status===`open`?ue[e.finding.severity].color:`#3a4050`,content:w(e,n)})}for(let e of r){let t=a===null?null:xp(a,e,l,c),n=(0,j.jsx)(Wy,{explanation:e});if(t===null){D.push((0,j.jsx)(`div`,{children:n},`explanation-${e.id}`));continue}E.push({key:`explanation-${e.id}`,anchor:t.selector,line:t.order,rank:0,color:e.status===`current`?`#3cc4b4`:`#3a4050`,content:n})}for(let e of u){if(!C.has(e.location.line)){D.push((0,j.jsx)(Gy,{note:e},e.id));continue}let t=mp(e.location.line,l);E.push({key:`note-${e.id}`,anchor:up(t),line:dp(t),rank:1e3,color:de.color,content:(0,j.jsx)(Gy,{note:e})})}let O=f?.line??null,re=f!==null&&O!==null&&C.has(O);if(re){let e=mp(O,l);E.push({key:`composer`,anchor:up(e),line:dp(e),rank:2e3,color:`#6d7cff`,content:T(O)})}f!==null&&O!==null&&!re&&D.push((0,j.jsx)(`div`,{children:T(O)},`composer`)),E.sort((e,t)=>e.line-t.line||e.rank-t.rank);let ie=n.length===0&&r.length===0&&u.length===0&&ne.length===0&&f===null,ae=(i.findingsShown?0:i.findingCount)+(i.explanationsShown?0:i.explanationCount),k=n.filter(e=>e.finding.status===`open`).length;return(0,j.jsxs)(`aside`,{className:`margin-column`,"aria-label":`Constats et explications de ce fichier`,ref:b,children:[(0,j.jsxs)(`div`,{className:`margin-head`,children:[(0,j.jsxs)(`h2`,{className:`margin-title`,children:[`Constats et explications`,` `,i.findingsShown&&(0,j.jsxs)(`span`,{className:`margin-count`,title:`Constats ouverts de ce fichier ; le total compte aussi les constats ignorés et obsolètes.`,children:[Te(k,`constat ouvert`,`constats ouverts`),n.length!==k&&` · ${n.length} au total`]})]}),(0,j.jsx)($y,{filters:i}),ie&&ae>0?(0,j.jsxs)(`p`,{className:`margin-subtitle`,children:[Te(ae,`élément masqué`,`éléments masqués`),` sur ce fichier : affichez-les avec les boutons ci-dessus.`]}):ie?(0,j.jsx)(`p`,{className:`margin-subtitle`,children:`Aucun constat, explication ni remarque sur ce fichier. Cliquez sur un numéro de ligne pour ajouter une remarque.`}):(0,j.jsx)(`p`,{className:`margin-subtitle is-aligned-hint`,children:`Chaque carte est alignée sur les lignes qu'elle concerne.`}),n.length>0&&(0,j.jsx)(eb,{numbered:n,onReveal:_})]}),(ne.length>0||f?.line===null)&&(0,j.jsxs)(`section`,{className:`margin-section`,children:[(0,j.jsx)(`h3`,{className:`block-title`,children:`Sur le fichier entier`}),ne.map(e=>(0,j.jsx)(Gy,{note:e},e.id)),f?.line===null&&T(null)]}),d!==null&&D.length>0&&(0,j.jsxs)(`section`,{className:`margin-section`,children:[(0,j.jsx)(`h3`,{className:`block-title`,children:`Hors des lignes affichées du diff`}),D]}),(0,j.jsx)(`div`,{className:`margin-track`,ref:x,children:d!==null&&E.map(e=>(0,j.jsxs)(`div`,{className:`margin-item`,"data-anchor":e.anchor,style:{"--link":e.color},children:[(0,j.jsx)(`span`,{className:`margin-link-a`,"aria-hidden":`true`}),(0,j.jsx)(`span`,{className:`margin-link-b`,"aria-hidden":`true`}),e.content]},e.key))}),ee&&(0,j.jsxs)(`button`,{type:`button`,className:`margin-more`,onClick:()=>_(ee),children:[Te(S.length,`constat`),` plus bas ↓`]})]})}function nb({name:e}){let{head:t,tail:n}=ke(e);return(0,j.jsxs)(`span`,{className:`middle-ellipsis`,children:[(0,j.jsx)(`span`,{className:`middle-ellipsis-head`,children:t}),(0,j.jsx)(`span`,{className:`middle-ellipsis-tail`,children:n})]})}function rb({analysis:e,currentPath:t}){let n=e.files.filter(e=>e.reviewed).length,r=e.files.length===0?0:n/e.files.length*100;return(0,j.jsxs)(`aside`,{className:`files-panel`,children:[(0,j.jsxs)(`div`,{className:`files-panel-head`,children:[(0,j.jsx)(`span`,{className:`files-panel-title`,children:`Fichiers`}),(0,j.jsxs)(`span`,{className:`files-panel-count`,children:[n,` / `,e.files.length,` revus`]})]}),(0,j.jsx)(`div`,{className:`progress`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":e.files.length,"aria-valuenow":n,children:(0,j.jsx)(`div`,{className:`progress-fill`,style:{width:`${r}%`}})}),(0,j.jsx)(`nav`,{className:`files-list`,children:e.files.map((n,r)=>{let i=n.path===t,a=n.reviewed?`circle-check`:i?`circle-dot`:`circle`,o=n.reviewed?`#3fb950`:i?`#8b97ff`:`#3a4050`,s=xe(n.path).folder,c=r===0?s!==``:xe(e.files[r-1].path).folder!==s;return(0,j.jsxs)(v.Fragment,{children:[c&&(0,j.jsx)(`span`,{className:`files-group mono`,title:s||`racine du dépôt`,children:s||`./`}),(0,j.jsxs)(`div`,{className:`files-item${i?` is-current`:``}${n.reviewed?` is-reviewed`:``}`,children:[(0,j.jsxs)(`a`,{href:Ve.review(e.id,n.path),className:`files-item-link`,title:n.path,"aria-current":i?`page`:void 0,children:[(0,j.jsx)(M,{name:a,color:o}),(0,j.jsx)(`span`,{className:`files-item-name`,children:(0,j.jsx)(nb,{name:xe(n.path).name})})]}),lu(e,n.path).map(({severity:t,count:r,firstLine:i})=>(0,j.jsx)(Zl,{severity:t,count:r,href:Ve.review(e.id,n.path,i),title:`${Oe(t,r)} — ${r>1?`aller au premier`:`y aller`}`},t))]})]},n.path)})})]})}function ib({analysis:e}){let t=A(e=>e.gapsCollapsed),n=A(e=>e.setGapsCollapsed),r=uu(e);if(r.length===0)return null;let i=r.filter(e=>e.status===`open`).length;return(0,j.jsxs)(`section`,{className:`gap-banner${t?` is-collapsed`:``}`,children:[(0,j.jsxs)(`button`,{type:`button`,className:`gap-banner-toggle block-title`,"aria-expanded":!t,onClick:()=>n(!t),children:[(0,j.jsx)(M,{name:t?`chevron-right`:`chevron-down`,color:`#646b7b`}),(0,j.jsx)(M,{name:`triangle-alert`,color:`#e3a33b`}),Te(r.length,`exigence manquante`,`exigences manquantes`),i!==r.length&&(0,j.jsxs)(`span`,{className:`gap-banner-count`,children:[`· `,Te(i,`ouverte`)]})]}),!t&&r.map(t=>(0,j.jsx)($f,{analysis:e,finding:t},t.id))]})}function ab({file:e}){return e.binary?(0,j.jsxs)(`p`,{className:`diff-message`,children:[`Fichier binaire (`,me[e.status].toLowerCase(),`) : son contenu n'est pas affiché.`]}):e.status===`renamed`?(0,j.jsxs)(`p`,{className:`diff-message`,children:[`Fichier renommé depuis `,e.oldPath,` sans changement de contenu.`]}):(0,j.jsx)(`p`,{className:`diff-message`,children:`Aucune ligne modifiée dans ce fichier (changement de mode ou fichier vide).`})}function ob({analysis:e,file:t,onFileNote:n}){let r=A(e=>e.setFileReviewed),i=A(e=>e.saving),a=e.files.findIndex(e=>e.path===t.path),o=e.files[a-1],s=e.files[a+1],{folder:c,name:l}=xe(t.path);return(0,j.jsxs)(`div`,{className:`file-head`,children:[(0,j.jsxs)(`span`,{className:`file-head-path mono`,title:t.oldPath?`${t.oldPath} → ${t.path}`:t.path,children:[(0,j.jsx)(`span`,{className:`path-folder`,children:c}),(0,j.jsx)(`span`,{className:`file-head-name`,children:l})]}),(0,j.jsxs)(`span`,{className:`count-add mono`,children:[`+`,t.additions]}),(0,j.jsxs)(`span`,{className:`count-del mono`,children:[`−`,t.deletions]}),t.status!==`modified`&&(0,j.jsx)(`span`,{className:`tag tag-file-${t.status}`,children:me[t.status]}),(0,j.jsx)(`span`,{className:`spacer`}),(0,j.jsxs)(`button`,{type:`button`,className:`link-button muted`,onClick:n,children:[(0,j.jsx)(M,{name:`message-square`,size:13}),`Remarque sur le fichier`]}),(0,j.jsxs)(`div`,{className:`icon-button-group`,children:[(0,j.jsx)(`button`,{type:`button`,className:`icon-button`,disabled:!o,title:o?`Fichier précédent : ${o.path}`:`Premier fichier`,onClick:()=>o&&He(Ve.review(e.id,o.path)),children:(0,j.jsx)(M,{name:`arrow-left`,color:`#9aa1b1`})}),(0,j.jsx)(`button`,{type:`button`,className:`icon-button`,disabled:!s,title:s?`Fichier suivant : ${s.path}`:`Dernier fichier`,onClick:()=>s&&He(Ve.review(e.id,s.path)),children:(0,j.jsx)(M,{name:`arrow-right`,color:`#9aa1b1`})})]}),(0,j.jsxs)(`button`,{type:`button`,className:`button button-secondary reviewed-toggle${t.reviewed?` is-on`:``}`,"aria-pressed":t.reviewed,disabled:i,onClick:()=>void r(t.path,!t.reviewed),children:[(0,j.jsx)(M,{name:`square-check`,color:t.reviewed?`#3fb950`:`#9aa1b1`}),t.reviewed?`Revu`:`Marquer comme revu`]})]})}function sb({analysis:e,path:t,line:n}){let r=A(e=>e.diff),i=A(e=>e.diffError),a=A(e=>e.fixMode),o=A(e=>e.setFixMode),s=A(e=>e.codeView),c=A(e=>e.setCodeView),l=A(e=>e.diffScope),u=A(e=>e.setDiffScope),d=A(e=>e.copy),f=A(e=>e.findingsShown),p=A(e=>e.setFindingsShown),m=A(e=>e.explanationsShown),h=A(e=>e.setExplanationsShown),[g,_]=(0,v.useState)(null),y=g&&g.path===t?{line:g.line}:null,b=e=>_(e&&t!==null?{path:t,line:e.line}:null),[x,S]=(0,v.useState)({}),[ee,te]=(0,v.useState)(null),C=(0,v.useRef)(null),ne=(0,v.useRef)(null),w=su(e);(0,v.useEffect)(()=>{t===null&&w!==null&&He(Ve.review(e.id,w),{replace:!0})},[t,w,e.id]);let T=e.files.find(e=>e.path===t)??null,E=r?.id===e.id?r.snapshot.files.find(e=>e.path===t):void 0,D=E!==void 0&&E.newContent!==null,O=D?l:`changes`,re=(0,v.useMemo)(()=>O===`file`&&E?Zf(E)??void 0:E,[O,E]),ie=i!==null&&r?.id!==e.id,ae=t===null?[]:rp(e,t),k=f?ae:[],oe=lp(k,re??{path:t??``,hunks:[],newContent:null},e=>x[e.id]??(e.suggestion!==null&&e.status===`open`),a),se=pp(k,oe,a),ce=n===null?null:mp(n,se),M=ce===null?null:up(ce),le=ee!==null&&ee.path===t&&ee.line===n?ee.findingId:null,ue=ee?.seq??0;if((0,v.useEffect)(()=>{let e=C.current;if(re&&e){if(M===null){e.scrollTo({top:0});return}e.querySelector(M)?.scrollIntoView({block:`center`}),le!==null&&e.querySelector(`[data-finding-card="${CSS.escape(le)}"]`)?.scrollIntoView({block:`nearest`})}},[re,M,t,le,ue]),t===null)return(0,j.jsx)(`div`,{className:`page`,children:(0,j.jsx)(`p`,{className:`empty-text`,children:`L'analyse ne contient aucun fichier modifié : il n'y a rien à revoir.`})});let de=yp(e,t),fe=m?de:[],pe=re?Sp(re,k,oe,a,fe,s):[],me=re?X(re):ie?new Set:null,he=Ep(e,t),ge=new Set(he.map(e=>e.location.line)),_e=(e,t)=>S(n=>({...n,[e]:t}));return(0,j.jsxs)(`div`,{className:`review`,children:[(0,j.jsx)(rb,{analysis:e,currentPath:t}),(0,j.jsx)(`section`,{className:`review-main`,children:T===null?(0,j.jsx)(`div`,{className:`review-body review-body-padded`,children:(0,j.jsxs)(`p`,{className:`diff-message`,children:[`Le fichier « `,t,` » ne fait pas partie de cette analyse. Choisissez un fichier dans la liste.`]})}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(ob,{analysis:e,file:T,onFileNote:()=>b({line:null})}),(0,j.jsx)(`div`,{className:`review-body`,ref:C,children:(0,j.jsxs)(`div`,{className:`review-columns`,children:[(0,j.jsxs)(`div`,{className:`review-center`,ref:ne,children:[f&&(0,j.jsx)(ib,{analysis:e}),!T.contentAvailable&&!T.binary&&T.status!==`deleted`&&(0,j.jsx)(`p`,{className:`diff-notice`,children:`Fichier trop volumineux pour être conservé en entier : les remarques ne peuvent viser que le fichier entier.`}),ie?(0,j.jsx)(`p`,{className:`diff-message is-error`,children:i}):re?E?.hunks.length===0?(0,j.jsx)(ab,{file:T}):(0,j.jsx)(Vy,{file:T,fileDiff:re,hunks:pe,notedLines:ge,mode:a,onModeChange:o,codeView:s,onCodeViewChange:c,scope:O,onScopeChange:u,wholeFileAvailable:D,explained:fe.length>0,target:ce,onLineNote:e=>b({line:e}),onHideFix:e=>_e(e,!1),onRequestExplanation:t=>void d(Yf(e,T,t),`Demande d'explication copiée : collez-la dans la conversation de l'agent.`)}):(0,j.jsx)(`p`,{className:`diff-message`,children:`Chargement du diff…`})]}),(0,j.jsx)(tb,{analysis:e,file:T,numbered:k,explanations:fe,filters:{findingCount:ae.length,explanationCount:de.length,findingsShown:f,explanationsShown:m,onFindingsShownChange:p,onExplanationsShownChange:h},fileDiff:re??null,fixes:oe,mode:a,codeView:s,removed:se,lineNotes:he,shownLines:me,composer:y,setComposer:b,onToggleFix:_e,scopeRef:ne,scrollRef:C,onReveal:n=>{te(e=>({path:t,findingId:n.finding.id,line:n.startLine,seq:(e?.seq??0)+1})),He(Ve.review(e.id,t,n.startLine))},revealedId:le})]})})]})})]})}function cb(e){return e.name===`feature`||e.name===`review`||e.name===`finish`?e.id:null}function lb({children:e}){return(0,j.jsx)(`div`,{className:`empty-state`,children:(0,j.jsx)(`div`,{className:`empty-card`,children:e})})}function ub(){iu();let e=Ge(),t=A(e=>e.current),n=A(e=>e.openAnalysis),r=cb(e);(0,v.useEffect)(()=>{r&&n(r)},[r,n]);let i=t&&t.id===r?t.analysis:null,a=t&&t.id===r?t.error:null,o=e.name===`review`&&i?(0,j.jsx)(`button`,{type:`button`,className:`button button-primary topbar-action`,onClick:()=>He(Ve.finish(i.id)),children:`Terminer la revue`}):null,s;return s=e.name===`home`?(0,j.jsx)(Y,{}):e.name===`not_found`?(0,j.jsx)(lb,{children:(0,j.jsxs)(`p`,{children:[`Adresse inconnue : `,(0,j.jsx)(`code`,{children:e.hash}),`. `,(0,j.jsx)(`a`,{href:Ve.home(),children:`Revenir à l'accueil`}),`.`]})}):a?(0,j.jsxs)(lb,{children:[(0,j.jsxs)(`p`,{className:`error-text`,children:[`Analyse illisible : `,a]}),(0,j.jsx)(`p`,{children:(0,j.jsx)(`a`,{href:Ve.home(),children:`Revenir à l'accueil`})})]}):i?e.name===`feature`?(0,j.jsx)(Af,{analysis:i,tab:e.tab}):e.name===`review`?(0,j.jsx)(sb,{analysis:i,path:e.path,line:e.line}):(0,j.jsx)(Pf,{analysis:i},i.id):(0,j.jsx)(lb,{children:(0,j.jsx)(`p`,{children:`Chargement de l'analyse…`})}),(0,j.jsxs)(`div`,{className:`app`,children:[(0,j.jsx)(tu,{currentId:r,action:o}),(0,j.jsx)(`main`,{className:`main${e.name===`review`?` main-fixed`:``}`,children:s}),(0,j.jsx)(le,{})]})}(0,y.createRoot)(document.getElementById(`root`)).render((0,j.jsx)(v.StrictMode,{children:(0,j.jsx)(ub,{})}));export{s as t};
87
+ `)?e:o)},i.current()}),(0,v.useEffect)(()=>{let n=e.current,r=t.current;if(!n||!r)return;let a=()=>i.current();n.addEventListener(`scroll`,a,{passive:!0});let o=new ResizeObserver(a);return o.observe(n),o.observe(r),()=>{n.removeEventListener(`scroll`,a),o.disconnect()}},[e,t]),n}var ib=12;function ab(e){let t=[],n=-12;for(let r of e){let e=Math.max(r.anchorTop,n+ib,0);t.push(e),n=e+r.height}return t}function ob(e,t){(0,v.useLayoutEffect)(()=>{let n=e.current,r=t.current;if(!n||!r)return;let i=[...n.querySelectorAll(`:scope > [data-anchor]`)],a=()=>{let e=n.getBoundingClientRect().top,t=i.map(t=>{let n=r.querySelector(t.dataset.anchor);if(!n)throw Error(`Ancre introuvable dans le diff : ${t.dataset.anchor}`);return{anchorTop:n.getBoundingClientRect().top-e,height:t.offsetHeight}}),a=ab(t);i.forEach((e,n)=>{e.style.top=`${a[n]}px`,e.style.setProperty(`--shift`,`${a[n]-t[n].anchorTop}px`)});let o=i.length-1;n.style.minHeight=o<0?``:`${a[o]+t[o].height}px`};a();let o=new ResizeObserver(a);o.observe(r);for(let e of i)o.observe(e);return()=>o.disconnect()})}function sb({filters:e}){let t=[{key:`findings`,label:`Constats`,count:e.findingCount,shown:e.findingsShown,color:`#e3a33b`,onChange:e.onFindingsShownChange},{key:`explanations`,label:`Explications`,count:e.explanationCount,shown:e.explanationsShown,color:`#3cc4b4`,onChange:e.onExplanationsShownChange}];return(0,j.jsx)(`div`,{className:`margin-filters`,role:`group`,"aria-label":`Éléments affichés`,children:t.map(e=>(0,j.jsxs)(`button`,{type:`button`,className:`margin-filter${e.shown?` is-on`:``}`,style:{"--filter":e.color},"aria-pressed":e.shown,title:e.shown?`Masquer les ${e.label.toLowerCase()}`:`Afficher les ${e.label.toLowerCase()}`,onClick:()=>e.onChange(!e.shown),children:[(0,j.jsx)(`span`,{className:`margin-filter-dot`,"aria-hidden":`true`}),e.label,(0,j.jsx)(`span`,{className:`margin-filter-count`,children:e.count})]},e.key))})}function cb({numbered:e,onReveal:t}){return(0,j.jsx)(`nav`,{className:`margin-index`,"aria-label":`Index des constats du fichier`,children:e.map(e=>{let{finding:n}=e,r=n.status===`open`?``:` · ${fe[n.status].toLowerCase()}`;return(0,j.jsxs)(`button`,{type:`button`,className:`margin-index-item${n.status===`open`?``:` is-muted`}`,style:{color:ue[n.severity].color},title:`${n.title} · ${Fe(e.startLine,e.endLine)}${r}`,onClick:()=>t(e),children:[(0,j.jsx)(X,{entry:e,small:!0}),(0,j.jsxs)(`span`,{className:`mono`,children:[`l.`,e.startLine]})]},n.id)})})}function lb({analysis:e,file:t,numbered:n,explanations:r,filters:i,fileDiff:a,fixes:o,mode:s,codeView:c,removed:l,lineNotes:u,shownLines:d,composer:f,setComposer:p,onToggleFix:m,scopeRef:h,scrollRef:g,onReveal:_,revealedId:y}){let b=(0,v.useRef)(null),x=(0,v.useRef)(null);ob(x,h);let S=rb(g,b),ee=S.length===0?void 0:n.find(e=>e.finding.id===S[0]),te=t.contentAvailable,C=d??new Set,ne=e.notes.filter(e=>e.location?.path===t.path&&e.location.line===null),w=(t,n)=>(0,j.jsx)(ap,{analysis:e,entry:t,fix:o.get(t.finding.id),mode:s,onToggleFix:e=>m(t.finding.id,e),onAddNote:te?()=>p({line:n}):void 0,highlighted:t.finding.id===y}),T=e=>(0,j.jsx)(eb,{path:t.path,line:e,onClose:()=>p(null)}),E=[],D=[];for(let e of n){let t=yp(e,o,C,l),n=cp(C,e.startLine,e.endLine);if(t===null||n===null){D.push((0,j.jsx)(`div`,{children:w(e,e.startLine)},e.finding.id));continue}E.push({key:`finding-${e.finding.id}`,anchor:mp(t),line:hp(t),rank:e.number,color:e.finding.status===`open`?ue[e.finding.severity].color:`#3a4050`,content:w(e,n)})}for(let e of r){let t=a===null?null:Tp(a,e,l,c),n=(0,j.jsx)(Qy,{explanation:e});if(t===null){D.push((0,j.jsx)(`div`,{children:n},`explanation-${e.id}`));continue}E.push({key:`explanation-${e.id}`,anchor:t.selector,line:t.order,rank:0,color:e.status===`current`?`#3cc4b4`:`#3a4050`,content:n})}for(let e of u){if(!C.has(e.location.line)){D.push((0,j.jsx)($y,{note:e},e.id));continue}let t=vp(e.location.line,l);E.push({key:`note-${e.id}`,anchor:mp(t),line:hp(t),rank:1e3,color:de.color,content:(0,j.jsx)($y,{note:e})})}let O=f?.line??null,re=f!==null&&O!==null&&C.has(O);if(re){let e=vp(O,l);E.push({key:`composer`,anchor:mp(e),line:hp(e),rank:2e3,color:`#6d7cff`,content:T(O)})}f!==null&&O!==null&&!re&&D.push((0,j.jsx)(`div`,{children:T(O)},`composer`)),E.sort((e,t)=>e.line-t.line||e.rank-t.rank);let ie=n.length===0&&r.length===0&&u.length===0&&ne.length===0&&f===null,ae=(i.findingsShown?0:i.findingCount)+(i.explanationsShown?0:i.explanationCount),k=n.filter(e=>e.finding.status===`open`).length;return(0,j.jsxs)(`aside`,{className:`margin-column`,"aria-label":`Constats et explications de ce fichier`,ref:b,children:[(0,j.jsxs)(`div`,{className:`margin-head`,children:[(0,j.jsxs)(`h2`,{className:`margin-title`,children:[`Constats et explications`,` `,i.findingsShown&&(0,j.jsxs)(`span`,{className:`margin-count`,title:`Constats ouverts de ce fichier ; le total compte aussi les constats ignorés et obsolètes.`,children:[Te(k,`constat ouvert`,`constats ouverts`),n.length!==k&&` · ${n.length} au total`]})]}),(0,j.jsx)(sb,{filters:i}),ie&&ae>0?(0,j.jsxs)(`p`,{className:`margin-subtitle`,children:[Te(ae,`élément masqué`,`éléments masqués`),` sur ce fichier : affichez-les avec les boutons ci-dessus.`]}):ie?(0,j.jsx)(`p`,{className:`margin-subtitle`,children:`Aucun constat, explication ni remarque sur ce fichier. Cliquez sur un numéro de ligne pour ajouter une remarque.`}):(0,j.jsx)(`p`,{className:`margin-subtitle is-aligned-hint`,children:`Chaque carte est alignée sur les lignes qu'elle concerne.`}),n.length>0&&(0,j.jsx)(cb,{numbered:n,onReveal:_})]}),(ne.length>0||f?.line===null)&&(0,j.jsxs)(`section`,{className:`margin-section`,children:[(0,j.jsx)(`h3`,{className:`block-title`,children:`Sur le fichier entier`}),ne.map(e=>(0,j.jsx)($y,{note:e},e.id)),f?.line===null&&T(null)]}),d!==null&&D.length>0&&(0,j.jsxs)(`section`,{className:`margin-section`,children:[(0,j.jsx)(`h3`,{className:`block-title`,children:`Hors des lignes affichées du diff`}),D]}),(0,j.jsx)(`div`,{className:`margin-track`,ref:x,children:d!==null&&E.map(e=>(0,j.jsxs)(`div`,{className:`margin-item`,"data-anchor":e.anchor,style:{"--link":e.color},children:[(0,j.jsx)(`span`,{className:`margin-link-a`,"aria-hidden":`true`}),(0,j.jsx)(`span`,{className:`margin-link-b`,"aria-hidden":`true`}),e.content]},e.key))}),ee&&(0,j.jsxs)(`button`,{type:`button`,className:`margin-more`,onClick:()=>_(ee),children:[Te(S.length,`constat`),` plus bas ↓`]})]})}function ub({name:e}){let{head:t,tail:n}=ke(e);return(0,j.jsxs)(`span`,{className:`middle-ellipsis`,children:[(0,j.jsx)(`span`,{className:`middle-ellipsis-head`,children:t}),(0,j.jsx)(`span`,{className:`middle-ellipsis-tail`,children:n})]})}function db({analysis:e,currentPath:t}){let n=e.files.filter(e=>e.reviewed).length,r=e.files.length===0?0:n/e.files.length*100;return(0,j.jsxs)(`aside`,{className:`files-panel`,children:[(0,j.jsxs)(`div`,{className:`files-panel-head`,children:[(0,j.jsx)(`span`,{className:`files-panel-title`,children:`Fichiers`}),(0,j.jsxs)(`span`,{className:`files-panel-count`,children:[n,` / `,e.files.length,` revus`]})]}),(0,j.jsx)(`div`,{className:`progress`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":e.files.length,"aria-valuenow":n,children:(0,j.jsx)(`div`,{className:`progress-fill`,style:{width:`${r}%`}})}),(0,j.jsx)(`nav`,{className:`files-list`,children:e.files.map((n,r)=>{let i=n.path===t,a=n.reviewed?`circle-check`:i?`circle-dot`:`circle`,o=n.reviewed?`#3fb950`:i?`#8b97ff`:`#3a4050`,s=xe(n.path).folder,c=r===0?s!==``:xe(e.files[r-1].path).folder!==s;return(0,j.jsxs)(v.Fragment,{children:[c&&(0,j.jsx)(`span`,{className:`files-group mono`,title:s||`racine du dépôt`,children:s||`./`}),(0,j.jsxs)(`div`,{className:`files-item${i?` is-current`:``}${n.reviewed?` is-reviewed`:``}`,children:[(0,j.jsxs)(`a`,{href:Ve.review(e.id,n.path),className:`files-item-link`,title:n.path,"aria-current":i?`page`:void 0,children:[(0,j.jsx)(M,{name:a,color:o}),(0,j.jsx)(`span`,{className:`files-item-name`,children:(0,j.jsx)(ub,{name:xe(n.path).name})})]}),lu(e,n.path).map(({severity:t,count:r,firstLine:i})=>(0,j.jsx)(Zl,{severity:t,count:r,href:Ve.review(e.id,n.path,i),title:`${Oe(t,r)} — ${r>1?`aller au premier`:`y aller`}`},t))]})]},n.path)})})]})}function fb({analysis:e}){let t=A(e=>e.gapsCollapsed),n=A(e=>e.setGapsCollapsed),r=uu(e);if(r.length===0)return null;let i=r.filter(e=>e.status===`open`).length;return(0,j.jsxs)(`section`,{className:`gap-banner${t?` is-collapsed`:``}`,children:[(0,j.jsxs)(`button`,{type:`button`,className:`gap-banner-toggle block-title`,"aria-expanded":!t,onClick:()=>n(!t),children:[(0,j.jsx)(M,{name:t?`chevron-right`:`chevron-down`,color:`#646b7b`}),(0,j.jsx)(M,{name:`triangle-alert`,color:`#e3a33b`}),Te(r.length,`exigence manquante`,`exigences manquantes`),i!==r.length&&(0,j.jsxs)(`span`,{className:`gap-banner-count`,children:[`· `,Te(i,`ouverte`)]})]}),!t&&r.map(t=>(0,j.jsx)($f,{analysis:e,finding:t},t.id))]})}function pb({file:e}){return e.binary?(0,j.jsxs)(`p`,{className:`diff-message`,children:[`Fichier binaire (`,me[e.status].toLowerCase(),`) : son contenu n'est pas affiché.`]}):e.status===`renamed`?(0,j.jsxs)(`p`,{className:`diff-message`,children:[`Fichier renommé depuis `,e.oldPath,` sans changement de contenu.`]}):(0,j.jsx)(`p`,{className:`diff-message`,children:`Aucune ligne modifiée dans ce fichier (changement de mode ou fichier vide).`})}function mb({analysis:e,file:t,onFileNote:n}){let r=A(e=>e.setFileReviewed),i=A(e=>e.saving),a=e.files.findIndex(e=>e.path===t.path),o=e.files[a-1],s=e.files[a+1],{folder:c,name:l}=xe(t.path);return(0,j.jsxs)(`div`,{className:`file-head`,children:[(0,j.jsxs)(`span`,{className:`file-head-path mono`,title:t.oldPath?`${t.oldPath} → ${t.path}`:t.path,children:[(0,j.jsx)(`span`,{className:`path-folder`,children:c}),(0,j.jsx)(`span`,{className:`file-head-name`,children:l})]}),(0,j.jsxs)(`span`,{className:`count-add mono`,children:[`+`,t.additions]}),(0,j.jsxs)(`span`,{className:`count-del mono`,children:[`−`,t.deletions]}),t.status!==`modified`&&(0,j.jsx)(`span`,{className:`tag tag-file-${t.status}`,children:me[t.status]}),(0,j.jsx)(`span`,{className:`spacer`}),(0,j.jsxs)(`button`,{type:`button`,className:`link-button muted`,onClick:n,children:[(0,j.jsx)(M,{name:`message-square`,size:13}),`Remarque sur le fichier`]}),(0,j.jsxs)(`div`,{className:`icon-button-group`,children:[(0,j.jsx)(`button`,{type:`button`,className:`icon-button`,disabled:!o,title:o?`Fichier précédent : ${o.path}`:`Premier fichier`,onClick:()=>o&&He(Ve.review(e.id,o.path)),children:(0,j.jsx)(M,{name:`arrow-left`,color:`#9aa1b1`})}),(0,j.jsx)(`button`,{type:`button`,className:`icon-button`,disabled:!s,title:s?`Fichier suivant : ${s.path}`:`Dernier fichier`,onClick:()=>s&&He(Ve.review(e.id,s.path)),children:(0,j.jsx)(M,{name:`arrow-right`,color:`#9aa1b1`})})]}),(0,j.jsxs)(`button`,{type:`button`,className:`button button-secondary reviewed-toggle${t.reviewed?` is-on`:``}`,"aria-pressed":t.reviewed,disabled:i,onClick:()=>void r(t.path,!t.reviewed),children:[(0,j.jsx)(M,{name:`square-check`,color:t.reviewed?`#3fb950`:`#9aa1b1`}),t.reviewed?`Revu`:`Marquer comme revu`]})]})}function hb({analysis:e,path:t,line:n}){let r=A(e=>e.diff),i=A(e=>e.diffError),a=A(e=>e.fixMode),o=A(e=>e.setFixMode),s=A(e=>e.codeView),c=A(e=>e.setCodeView),l=A(e=>e.diffScope),u=A(e=>e.setDiffScope),d=A(e=>e.copy),f=A(e=>e.findingsShown),p=A(e=>e.setFindingsShown),m=A(e=>e.explanationsShown),h=A(e=>e.setExplanationsShown),[g,_]=(0,v.useState)(null),y=g&&g.path===t?{line:g.line}:null,b=e=>_(e&&t!==null?{path:t,line:e.line}:null),[x,S]=(0,v.useState)({}),[ee,te]=(0,v.useState)(null),C=(0,v.useRef)(null),ne=(0,v.useRef)(null),w=su(e);(0,v.useEffect)(()=>{t===null&&w!==null&&He(Ve.review(e.id,w),{replace:!0})},[t,w,e.id]);let T=e.files.find(e=>e.path===t)??null,E=r?.id===e.id?r.snapshot.files.find(e=>e.path===t):void 0,D=E!==void 0&&E.newContent!==null,O=D?l:`changes`,re=(0,v.useMemo)(()=>O===`file`&&E?Zf(E)??void 0:E,[O,E]),ie=i!==null&&r?.id!==e.id,ae=t===null?[]:op(e,t),k=f?ae:[],oe=pp(k,re??{path:t??``,hunks:[],newContent:null},e=>x[e.id]??(e.suggestion!==null&&e.status===`open`),a),se=_p(k,oe,a),ce=n===null?null:vp(n,se),M=ce===null?null:mp(ce),le=ee!==null&&ee.path===t&&ee.line===n?ee.findingId:null,ue=ee?.seq??0;if((0,v.useEffect)(()=>{let e=C.current;if(re&&e){if(M===null){e.scrollTo({top:0});return}e.querySelector(M)?.scrollIntoView({block:`center`}),le!==null&&e.querySelector(`[data-finding-card="${CSS.escape(le)}"]`)?.scrollIntoView({block:`nearest`})}},[re,M,t,le,ue]),t===null)return(0,j.jsx)(`div`,{className:`page`,children:(0,j.jsx)(`p`,{className:`empty-text`,children:`L'analyse ne contient aucun fichier modifié : il n'y a rien à revoir.`})});let de=Cp(e,t),fe=m?de:[],pe=re?Ep(re,k,oe,a,fe,s):[],me=re?sp(re):ie?new Set:null,he=Mp(e,t),ge=new Set(he.map(e=>e.location.line)),_e=(e,t)=>S(n=>({...n,[e]:t}));return(0,j.jsxs)(`div`,{className:`review`,children:[(0,j.jsx)(db,{analysis:e,currentPath:t}),(0,j.jsx)(`section`,{className:`review-main`,children:T===null?(0,j.jsx)(`div`,{className:`review-body review-body-padded`,children:(0,j.jsxs)(`p`,{className:`diff-message`,children:[`Le fichier « `,t,` » ne fait pas partie de cette analyse. Choisissez un fichier dans la liste.`]})}):(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(mb,{analysis:e,file:T,onFileNote:()=>b({line:null})}),(0,j.jsx)(`div`,{className:`review-body`,ref:C,children:(0,j.jsxs)(`div`,{className:`review-columns`,children:[(0,j.jsxs)(`div`,{className:`review-center`,ref:ne,children:[f&&(0,j.jsx)(fb,{analysis:e}),!T.contentAvailable&&!T.binary&&T.status!==`deleted`&&(0,j.jsx)(`p`,{className:`diff-notice`,children:`Fichier trop volumineux pour être conservé en entier : les remarques ne peuvent viser que le fichier entier.`}),ie?(0,j.jsx)(`p`,{className:`diff-message is-error`,children:i}):re?E?.hunks.length===0?(0,j.jsx)(pb,{file:T}):(0,j.jsx)(Yy,{file:T,fileDiff:re,hunks:pe,notedLines:ge,mode:a,onModeChange:o,codeView:s,onCodeViewChange:c,scope:O,onScopeChange:u,wholeFileAvailable:D,explained:fe.length>0,target:ce,onLineNote:e=>b({line:e}),onHideFix:e=>_e(e,!1),onRequestExplanation:t=>void d(Yf(e,T,t),`Demande d'explication copiée : collez-la dans la conversation de l'agent.`)}):(0,j.jsx)(`p`,{className:`diff-message`,children:`Chargement du diff…`})]}),(0,j.jsx)(lb,{analysis:e,file:T,numbered:k,explanations:fe,filters:{findingCount:ae.length,explanationCount:de.length,findingsShown:f,explanationsShown:m,onFindingsShownChange:p,onExplanationsShownChange:h},fileDiff:re??null,fixes:oe,mode:a,codeView:s,removed:se,lineNotes:he,shownLines:me,composer:y,setComposer:b,onToggleFix:_e,scopeRef:ne,scrollRef:C,onReveal:n=>{te(e=>({path:t,findingId:n.finding.id,line:n.startLine,seq:(e?.seq??0)+1})),He(Ve.review(e.id,t,n.startLine))},revealedId:le})]})})]})})]})}function gb(e){return e.name===`feature`||e.name===`review`||e.name===`finish`?e.id:null}function _b({children:e}){return(0,j.jsx)(`div`,{className:`empty-state`,children:(0,j.jsx)(`div`,{className:`empty-card`,children:e})})}function vb(){iu();let e=Ge(),t=A(e=>e.current),n=A(e=>e.openAnalysis),r=gb(e);(0,v.useEffect)(()=>{r&&n(r)},[r,n]);let i=t&&t.id===r?t.analysis:null,a=t&&t.id===r?t.error:null,o=e.name===`review`&&i?(0,j.jsx)(`button`,{type:`button`,className:`button button-primary topbar-action`,onClick:()=>He(Ve.finish(i.id)),children:`Terminer la revue`}):null,s;return s=e.name===`home`?(0,j.jsx)(Y,{}):e.name===`not_found`?(0,j.jsx)(_b,{children:(0,j.jsxs)(`p`,{children:[`Adresse inconnue : `,(0,j.jsx)(`code`,{children:e.hash}),`. `,(0,j.jsx)(`a`,{href:Ve.home(),children:`Revenir à l'accueil`}),`.`]})}):a?(0,j.jsxs)(_b,{children:[(0,j.jsxs)(`p`,{className:`error-text`,children:[`Analyse illisible : `,a]}),(0,j.jsx)(`p`,{children:(0,j.jsx)(`a`,{href:Ve.home(),children:`Revenir à l'accueil`})})]}):i?e.name===`feature`?(0,j.jsx)(Af,{analysis:i,tab:e.tab}):e.name===`review`?(0,j.jsx)(hb,{analysis:i,path:e.path,line:e.line}):(0,j.jsx)(Pf,{analysis:i},i.id):(0,j.jsx)(_b,{children:(0,j.jsx)(`p`,{children:`Chargement de l'analyse…`})}),(0,j.jsxs)(`div`,{className:`app`,children:[(0,j.jsx)(tu,{currentId:r,action:o}),(0,j.jsx)(`main`,{className:`main${e.name===`review`?` main-fixed`:``}`,children:s}),(0,j.jsx)(le,{})]})}(0,y.createRoot)(document.getElementById(`root`)).render((0,j.jsx)(v.StrictMode,{children:(0,j.jsx)(vb,{})}));export{s as t};