@akadotsh/local-diff 0.0.0-stage → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1117) hide show
  1. package/LICENSE +17 -0
  2. package/README.md +92 -2
  3. package/THIRD_PARTY_NOTICES/agent-icons-NOTICE.txt +14 -0
  4. package/THIRD_PARTY_NOTICES/material-icon-theme-MIT.txt +8 -0
  5. package/THIRD_PARTY_NOTICES/pierre-diffs-Apache-2.0.txt +189 -0
  6. package/THIRD_PARTY_NOTICES/pierre-highlights-Apache-2.0.txt +189 -0
  7. package/THIRD_PARTY_NOTICES/pierre-highlights-NOTICE.txt +157 -0
  8. package/THIRD_PARTY_NOTICES/pierre-theme-Apache-2.0.txt +189 -0
  9. package/THIRD_PARTY_NOTICES/pierre-theme-NOTICE.txt +32 -0
  10. package/THIRD_PARTY_NOTICES/pierre-theming-Apache-2.0.txt +189 -0
  11. package/THIRD_PARTY_NOTICES/pierre-trees-Apache-2.0.txt +189 -0
  12. package/THIRD_PARTY_NOTICES/pierre-trees-NOTICE.txt +35 -0
  13. package/THIRD_PARTY_NOTICES/preact-MIT.txt +21 -0
  14. package/THIRD_PARTY_NOTICES/react-MIT.txt +21 -0
  15. package/THIRD_PARTY_NOTICES/react-dom-MIT.txt +21 -0
  16. package/THIRD_PARTY_NOTICES/shiki-MIT.txt +22 -0
  17. package/dist/assets/3d-D7X6X7Qy.js +1 -0
  18. package/dist/assets/Explorer-C98lOZcC.js +1359 -0
  19. package/dist/assets/abap-BdImnpbu.js +1 -0
  20. package/dist/assets/abap-CcJBIOrj.js +1 -0
  21. package/dist/assets/abc-CCeclbK7.js +1 -0
  22. package/dist/assets/actionscript-3-B3316cI-.js +1 -0
  23. package/dist/assets/actionscript-9FDQ1Rks.js +1 -0
  24. package/dist/assets/ada-BIOnG6TC.js +1 -0
  25. package/dist/assets/ada-DMaoiERx.js +1 -0
  26. package/dist/assets/adobe-illustrator-BGKGzc0H.js +1 -0
  27. package/dist/assets/adobe-illustrator_light-BOAYnYmR.js +1 -0
  28. package/dist/assets/adobe-photoshop-D0HKrqEl.js +1 -0
  29. package/dist/assets/adobe-photoshop_light-DUZqNSG5.js +1 -0
  30. package/dist/assets/adobe-swc-DGfHZ-jC.js +1 -0
  31. package/dist/assets/adonis-C7RN5Izl.js +1 -0
  32. package/dist/assets/advpl-BH7NWq88.js +1 -0
  33. package/dist/assets/advpl-include.clone-D22P3_Ti.js +1 -0
  34. package/dist/assets/advpl-ptm.clone-CWoEqwdH.js +1 -0
  35. package/dist/assets/advpl-tlpp.clone-TXXmcOUH.js +1 -0
  36. package/dist/assets/agent-DUH2djGl.js +1 -0
  37. package/dist/assets/ahk-BrbAagtO.js +1 -0
  38. package/dist/assets/ahk2-8Zs4aa1G.js +1 -0
  39. package/dist/assets/ahk2.clone-DP8Yi_xU.js +1 -0
  40. package/dist/assets/amplify-BJv4w1dK.js +1 -0
  41. package/dist/assets/android-Dt3bacyd.js +1 -0
  42. package/dist/assets/andromeeda-C4gqWexZ.js +1 -0
  43. package/dist/assets/andromeeda-dzT1arR_.js +1 -0
  44. package/dist/assets/angular-9Ef6bkvi.js +1 -0
  45. package/dist/assets/angular-component.clone-CLLjn73h.js +1 -0
  46. package/dist/assets/angular-directive.clone-oP1YAUpf.js +1 -0
  47. package/dist/assets/angular-guard.clone-CGkWyUhE.js +1 -0
  48. package/dist/assets/angular-html-D_SYSyRt.js +1 -0
  49. package/dist/assets/angular-interceptor.clone-DqQKnRjE.js +1 -0
  50. package/dist/assets/angular-pipe.clone-DtTYipUr.js +1 -0
  51. package/dist/assets/angular-resolver.clone-CGkWyUhE.js +1 -0
  52. package/dist/assets/angular-service.clone-D8psbH0r.js +1 -0
  53. package/dist/assets/angular-ts-DGq0tZX5.js +1 -0
  54. package/dist/assets/antlr-7EOjMBbT.js +1 -0
  55. package/dist/assets/apache-Pmp26Uib.js +1 -0
  56. package/dist/assets/apex-DhZFqWV2.js +1 -0
  57. package/dist/assets/apiblueprint-cJwpxiqX.js +1 -0
  58. package/dist/assets/apl-ChzvTHjC.js +1 -0
  59. package/dist/assets/apollo-DVLsdWEo.js +1 -0
  60. package/dist/assets/applescript-Co6uUVPk.js +1 -0
  61. package/dist/assets/applescript-N-_1CErH.js +1 -0
  62. package/dist/assets/apps-script-BJqbefxc.js +1 -0
  63. package/dist/assets/appveyor-D-Cnhmez.js +1 -0
  64. package/dist/assets/appwrite-vdYGYl0j.js +1 -0
  65. package/dist/assets/ara-BRHolxvo.js +1 -0
  66. package/dist/assets/architecture-Bo2hGzCM.js +1 -0
  67. package/dist/assets/arduino-DObVG_ug.js +1 -0
  68. package/dist/assets/asciidoc-CSVQ5wI8.js +1 -0
  69. package/dist/assets/asciidoc-YGPb1rVx.js +1 -0
  70. package/dist/assets/asm-D_Q5rh1f.js +1 -0
  71. package/dist/assets/assembly-BHIkKwjh.js +1 -0
  72. package/dist/assets/astro-CC4vlZQC.js +1 -0
  73. package/dist/assets/astro-DTjqU0_L.js +1 -0
  74. package/dist/assets/astro-config-w12hcW_1.js +1 -0
  75. package/dist/assets/astyle-BKPTrycv.js +1 -0
  76. package/dist/assets/audio-Bf0bJU0H.js +1 -0
  77. package/dist/assets/aurelia-Chs1CGbQ.js +1 -0
  78. package/dist/assets/aurora-x-B7pmKBD2.js +1 -0
  79. package/dist/assets/aurora-x-D-2ljcwZ.js +1 -0
  80. package/dist/assets/authors-cqEXTiTm.js +1 -0
  81. package/dist/assets/auto-COJQtYR9.js +1 -0
  82. package/dist/assets/auto_light-D-hC_HZG.js +1 -0
  83. package/dist/assets/autohotkey-BFC4EBU9.js +1 -0
  84. package/dist/assets/autoit-CoDMTrMW.js +1 -0
  85. package/dist/assets/awk-DMzUqQB5.js +1 -0
  86. package/dist/assets/ayu-dark-BBURKmLH.js +1 -0
  87. package/dist/assets/ayu-dark-DYE7WIF3.js +1 -0
  88. package/dist/assets/ayu-light-BA47KaF1.js +1 -0
  89. package/dist/assets/ayu-light-DwHC-by_.js +1 -0
  90. package/dist/assets/ayu-mirage-32ctXXKs.js +1 -0
  91. package/dist/assets/ayu-mirage-DKqT1wVu.js +1 -0
  92. package/dist/assets/azure-BVA_Zyq9.js +1 -0
  93. package/dist/assets/azure-pipelines-4p_6vtkK.js +1 -0
  94. package/dist/assets/babel-7fe2qDhk.js +1 -0
  95. package/dist/assets/ballerina-BFfxhgS-.js +1 -0
  96. package/dist/assets/ballerina-BKk_dait.js +1 -0
  97. package/dist/assets/bashly-BNIjb7AL.js +1 -0
  98. package/dist/assets/bashly-hook-AwykSu0X.js +1 -0
  99. package/dist/assets/bashly-settings.clone-CuzeVkcu.js +1 -0
  100. package/dist/assets/bashly-settings_light.clone-hHi2zhtp.js +1 -0
  101. package/dist/assets/bashly-strings.clone-Bs7vBRXg.js +1 -0
  102. package/dist/assets/bashly-strings_light.clone-HXJK81_9.js +1 -0
  103. package/dist/assets/bat-CickPsom.js +1 -0
  104. package/dist/assets/bazel-D595_UAw.js +1 -0
  105. package/dist/assets/bbx-B6gIRtmg.js +1 -0
  106. package/dist/assets/beancount-BgSHGh8x.js +1 -0
  107. package/dist/assets/beancount-D1Pecjtt.js +1 -0
  108. package/dist/assets/bench-js-BKQhTQOV.js +1 -0
  109. package/dist/assets/bench-jsx-kE35Fs4w.js +1 -0
  110. package/dist/assets/bench-ts-hkFIlWVo.js +1 -0
  111. package/dist/assets/berry-uYugtg8r.js +1 -0
  112. package/dist/assets/bibliography-DKX27pHe.js +1 -0
  113. package/dist/assets/bibtex-CHM0blh-.js +1 -0
  114. package/dist/assets/bibtex-style-Cmjo0BP5.js +1 -0
  115. package/dist/assets/bicep-B3HjUczq.js +1 -0
  116. package/dist/assets/bicep-Bmn6On1c.js +1 -0
  117. package/dist/assets/biome-BItitEOn.js +1 -0
  118. package/dist/assets/bird2-Bx8U0n9b.js +1 -0
  119. package/dist/assets/bitbucket-D2EO9iEC.js +1 -0
  120. package/dist/assets/bithound-rVghSUU-.js +1 -0
  121. package/dist/assets/blade-k33SngOZ.js +1 -0
  122. package/dist/assets/blender-CdjZ5Uk8.js +1 -0
  123. package/dist/assets/blink-4WPWCPrP.js +1 -0
  124. package/dist/assets/blink_light-Yrmstnbz.js +1 -0
  125. package/dist/assets/blitz-BQEGC2zV.js +1 -0
  126. package/dist/assets/bower-CM0g8q1d.js +1 -0
  127. package/dist/assets/brainfuck-e4k4SHEy.js +1 -0
  128. package/dist/assets/browserlist-CnMr5O-6.js +1 -0
  129. package/dist/assets/browserlist_light-C5QYA9k4.js +1 -0
  130. package/dist/assets/bruno-Bveko2Yx.js +1 -0
  131. package/dist/assets/bsl-DlhNcFeZ.js +1 -0
  132. package/dist/assets/buck-Cr3CXnt6.js +1 -0
  133. package/dist/assets/bucklescript-BxkwGxWu.js +1 -0
  134. package/dist/assets/buildkite-DZYT4S_W.js +1 -0
  135. package/dist/assets/bun-H0SbYlRi.js +1 -0
  136. package/dist/assets/bun_light-D5rwApr4.js +1 -0
  137. package/dist/assets/c-BIGW1oBm.js +1 -0
  138. package/dist/assets/c-CCHPdB01.js +1 -0
  139. package/dist/assets/c3-C2jiP-0y.js +1 -0
  140. package/dist/assets/c3-Dp5svz6Z.js +1 -0
  141. package/dist/assets/cabal-CkpJHm6g.js +1 -0
  142. package/dist/assets/caddy-BZbMJWen.js +1 -0
  143. package/dist/assets/cadence-BLYOHCE8.js +1 -0
  144. package/dist/assets/cadence-Bv_4Rxtq.js +1 -0
  145. package/dist/assets/cairo-KRGpt6FW.js +1 -0
  146. package/dist/assets/cairo-whe9SJ59.js +1 -0
  147. package/dist/assets/cake-B5eKa_9X.js +1 -0
  148. package/dist/assets/capacitor-BPwKbqUI.js +1 -0
  149. package/dist/assets/capnp-DDp19NlB.js +1 -0
  150. package/dist/assets/catppuccin-frappe-B24fvTzB.js +1 -0
  151. package/dist/assets/catppuccin-frappe-CZL1YF0i.js +1 -0
  152. package/dist/assets/catppuccin-latte-CdPbmwTc.js +1 -0
  153. package/dist/assets/catppuccin-latte-DH-8KZSZ.js +1 -0
  154. package/dist/assets/catppuccin-macchiato-B7yYVSCf.js +1 -0
  155. package/dist/assets/catppuccin-macchiato-BDHlNkT6.js +1 -0
  156. package/dist/assets/catppuccin-mocha-Byn9ySyY.js +1 -0
  157. package/dist/assets/catppuccin-mocha-Ct7hS0mc.js +1 -0
  158. package/dist/assets/cbx-ik1J4CfG.js +1 -0
  159. package/dist/assets/cds-B2EyhH7T.js +1 -0
  160. package/dist/assets/certificate-SDJ2LD4A.js +1 -0
  161. package/dist/assets/changelog-DZEGJfHs.js +1 -0
  162. package/dist/assets/chapel-DTp_pixX.js +1 -0
  163. package/dist/assets/chess-CXChVqd1.js +1 -0
  164. package/dist/assets/chess_light-DHas6CLZ.js +1 -0
  165. package/dist/assets/chromatic-6NifbLd4.js +1 -0
  166. package/dist/assets/chrome-g4Vw2QCA.js +1 -0
  167. package/dist/assets/circleci-JgxRHE0v.js +1 -0
  168. package/dist/assets/circleci_light-DpWz-GPl.js +1 -0
  169. package/dist/assets/citation-DG5npvPc.js +1 -0
  170. package/dist/assets/clangd-5dVU-NKL.js +1 -0
  171. package/dist/assets/clarity-Dn5IMItf.js +1 -0
  172. package/dist/assets/claude-BZdhVhG0.js +1 -0
  173. package/dist/assets/cline-B5R398Uc.js +1 -0
  174. package/dist/assets/clojure-DNP0h8SB.js +1 -0
  175. package/dist/assets/clojure-P80f7IUj.js +1 -0
  176. package/dist/assets/cloudfoundry-QGqY1-MV.js +1 -0
  177. package/dist/assets/cmake-BB6BaeoW.js +1 -0
  178. package/dist/assets/cmake-D1j8_8rp.js +1 -0
  179. package/dist/assets/coala-tD8EGg0r.js +1 -0
  180. package/dist/assets/cobol-BBKr1ja6.js +1 -0
  181. package/dist/assets/cobol-Cf2hWkq6.js +1 -0
  182. package/dist/assets/coconut-EyWUjd-u.js +1 -0
  183. package/dist/assets/code-climate-dLE9She4.js +1 -0
  184. package/dist/assets/code-climate_light-Bhduqbz6.js +1 -0
  185. package/dist/assets/codecov-BQKC_jDP.js +1 -0
  186. package/dist/assets/codeowners-603tSmFI.js +1 -0
  187. package/dist/assets/codeowners-Bp6g37R7.js +1 -0
  188. package/dist/assets/codeql-DsOJ9woJ.js +1 -0
  189. package/dist/assets/coderabbit-ai-DQ3vCyvU.js +1 -0
  190. package/dist/assets/coffee-Ch7k5sss.js +1 -0
  191. package/dist/assets/coffee-DZEGvAg_.js +1 -0
  192. package/dist/assets/coldfusion-B6KzLHX5.js +1 -0
  193. package/dist/assets/coloredpetrinets-DejoV7vq.js +1 -0
  194. package/dist/assets/command-BneemDx1.js +1 -0
  195. package/dist/assets/commitizen-CkrpxCG3.js +1 -0
  196. package/dist/assets/commitlint-Drx8CSZj.js +1 -0
  197. package/dist/assets/common-lisp-Cg-RD9OK.js +1 -0
  198. package/dist/assets/concourse-B0OIgoHj.js +1 -0
  199. package/dist/assets/conduct-BtjtsLzU.js +1 -0
  200. package/dist/assets/console-C3BlRMAT.js +1 -0
  201. package/dist/assets/container.clone-tmERjYin.js +1 -0
  202. package/dist/assets/contentlayer-B274i3BW.js +1 -0
  203. package/dist/assets/context-B4OOTwdX.js +1 -0
  204. package/dist/assets/contributing-CHdjtKOt.js +1 -0
  205. package/dist/assets/controller-DGl35B_B.js +1 -0
  206. package/dist/assets/copilot-CQu1dByK.js +1 -0
  207. package/dist/assets/copilot_light-BAch-mwt.js +1 -0
  208. package/dist/assets/coq-BqXF5kFF.js +1 -0
  209. package/dist/assets/core-CNrdLTJr.js +12 -0
  210. package/dist/assets/cpp-BMRokrvK.js +1 -0
  211. package/dist/assets/cpp-DPIZaD7x.js +1 -0
  212. package/dist/assets/craco-Lqm8rVXB.js +1 -0
  213. package/dist/assets/credits-C8LxFMG9.js +1 -0
  214. package/dist/assets/crystal-LUwhHfY5.js +1 -0
  215. package/dist/assets/crystal-fxw7DKx1.js +1 -0
  216. package/dist/assets/crystal_light-BdVhh3Zr.js +1 -0
  217. package/dist/assets/csharp-B-HRK_Kq.js +1 -0
  218. package/dist/assets/csharp-B_TYUkTI.js +1 -0
  219. package/dist/assets/css-22mNA08O.js +1 -0
  220. package/dist/assets/css-Z72CF80r.js +1 -0
  221. package/dist/assets/css-map-DH4ZuEjY.js +1 -0
  222. package/dist/assets/csv-fuZLfV_i.js +1 -0
  223. package/dist/assets/cucumber-CN5YXlt1.js +1 -0
  224. package/dist/assets/cuda--AvYgoLa.js +1 -0
  225. package/dist/assets/cue-D82EKSYY.js +1 -0
  226. package/dist/assets/cue-aa60xtx5.js +1 -0
  227. package/dist/assets/cursor-BpxV_quT.js +1 -0
  228. package/dist/assets/cursor_light-CHINQG_i.js +1 -0
  229. package/dist/assets/cypher-COkxafJQ.js +1 -0
  230. package/dist/assets/cypress-dOqShmwP.js +1 -0
  231. package/dist/assets/d-85-TOEBH.js +1 -0
  232. package/dist/assets/d-DRO2nLBO.js +1 -0
  233. package/dist/assets/dark-plus-C3mMm8J8.js +1 -0
  234. package/dist/assets/dark-plus-CvX4Ty3s.js +1 -0
  235. package/dist/assets/dart-CtKP3W-j.js +1 -0
  236. package/dist/assets/dart-DW00-ud_.js +1 -0
  237. package/dist/assets/dart_generated-oEiL54bg.js +1 -0
  238. package/dist/assets/database-CRAWg-A_.js +1 -0
  239. package/dist/assets/dax-CEL-wOlO.js +1 -0
  240. package/dist/assets/deepsource-D9eAOREN.js +1 -0
  241. package/dist/assets/denizenscript-CWrf_2ou.js +1 -0
  242. package/dist/assets/deno-C-VtxdJW.js +1 -0
  243. package/dist/assets/deno_light-Bropdi8a.js +1 -0
  244. package/dist/assets/dependabot-CBrw_lYc.js +1 -0
  245. package/dist/assets/dependencies-update-R84LnhYb.js +1 -0
  246. package/dist/assets/desktop-BmXAJ9_W.js +1 -0
  247. package/dist/assets/dhall-BEme1oKN.js +1 -0
  248. package/dist/assets/diff-Bv3Jqfnf.js +1 -0
  249. package/dist/assets/diff-D97Zzqfu.js +1 -0
  250. package/dist/assets/dinophp-BQXzqGxL.js +1 -0
  251. package/dist/assets/disc-mNHnAEq7.js +1 -0
  252. package/dist/assets/django-CMZqDwzR.js +1 -0
  253. package/dist/assets/dll-2DRjuHfk.js +1 -0
  254. package/dist/assets/docker-2cFELkmq.js +1 -0
  255. package/dist/assets/docker-BcOcwvcX.js +1 -0
  256. package/dist/assets/doctex-installer-DJk8kwLA.js +1 -0
  257. package/dist/assets/doctex.clone-XT7Rl3MF.js +1 -0
  258. package/dist/assets/document-DuBkMdes.js +1 -0
  259. package/dist/assets/dotenv-De0Btta0.js +1 -0
  260. package/dist/assets/dotjs-CrQhsKtn.js +1 -0
  261. package/dist/assets/dracula-BzJJZx-M.js +1 -0
  262. package/dist/assets/dracula-DmZ-8HRb.js +1 -0
  263. package/dist/assets/dracula-soft-B2_S_wA_.js +1 -0
  264. package/dist/assets/dracula-soft-BXkSAIEj.js +1 -0
  265. package/dist/assets/drawio-Dw5L-M06.js +1 -0
  266. package/dist/assets/dream-maker-BtqSS_iP.js +1 -0
  267. package/dist/assets/drizzle-D-ukoGQq.js +1 -0
  268. package/dist/assets/drone-C8IOUB1b.js +1 -0
  269. package/dist/assets/drone_light-CxflkCgw.js +1 -0
  270. package/dist/assets/dtx.clone-XT7Rl3MF.js +1 -0
  271. package/dist/assets/duc-BFe_vTaW.js +1 -0
  272. package/dist/assets/dune-DZiMf1tI.js +1 -0
  273. package/dist/assets/edge-CJaD-t2L.js +1 -0
  274. package/dist/assets/edge-CiTuFZAO.js +1 -0
  275. package/dist/assets/editorconfig-C8fKSH6u.js +1 -0
  276. package/dist/assets/ejs-3sWnUNxL.js +1 -0
  277. package/dist/assets/elixir-CZzC62Ls.js +1 -0
  278. package/dist/assets/elixir-DkJLSxtU.js +1 -0
  279. package/dist/assets/elm-DbKCFpqz.js +1 -0
  280. package/dist/assets/elm-jSnAZ8HC.js +1 -0
  281. package/dist/assets/emacs-lisp-DaIrSCgJ.js +1 -0
  282. package/dist/assets/email-Cmc_qS2I.js +1 -0
  283. package/dist/assets/ember-DhcFZmmt.js +1 -0
  284. package/dist/assets/engine-javascript-BHPwbUfN.js +141 -0
  285. package/dist/assets/engine-oniguruma-lcJJ6yRs.js +1 -0
  286. package/dist/assets/epub-CIRIUWfz.js +1 -0
  287. package/dist/assets/erb-CSMaCouu.js +1 -0
  288. package/dist/assets/erlang-CQuXNzZ4.js +1 -0
  289. package/dist/assets/erlang-DsQrWhSR.js +1 -0
  290. package/dist/assets/esbuild-BeW_0a0_.js +1 -0
  291. package/dist/assets/eslint-BZx2RSUO.js +1 -0
  292. package/dist/assets/everforest-dark-0rLcFJpw.js +1 -0
  293. package/dist/assets/everforest-dark-BgDCqdQA.js +1 -0
  294. package/dist/assets/everforest-light-BTfPW4aP.js +1 -0
  295. package/dist/assets/everforest-light-C8M2exoo.js +1 -0
  296. package/dist/assets/excalidraw-D5_asqPS.js +1 -0
  297. package/dist/assets/exe-BQh6UOKc.js +1 -0
  298. package/dist/assets/expo-aTx0xTBV.js +1 -0
  299. package/dist/assets/expo_light-BlG8mpaf.js +1 -0
  300. package/dist/assets/fastlane-CnbJw1BG.js +1 -0
  301. package/dist/assets/favicon-V8xoG_nA.js +1 -0
  302. package/dist/assets/fennel-BYunw83y.js +1 -0
  303. package/dist/assets/figma-BaIbS8lC.js +1 -0
  304. package/dist/assets/file-B3G9HEZv.js +1 -0
  305. package/dist/assets/firebase-CbdCDLws.js +1 -0
  306. package/dist/assets/fish-BvzEVeQv.js +1 -0
  307. package/dist/assets/flash-DprLyML0.js +1 -0
  308. package/dist/assets/flow-DFliQA6p.js +1 -0
  309. package/dist/assets/fluent-C4IJs8-o.js +1 -0
  310. package/dist/assets/font-lpf1Xq8-.js +1 -0
  311. package/dist/assets/forth-Bkv6CzRO.js +1 -0
  312. package/dist/assets/fortran-CrbR7tec.js +1 -0
  313. package/dist/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
  314. package/dist/assets/fortran-free-form-BxgE0vQu.js +1 -0
  315. package/dist/assets/foxpro-CkENsKtP.js +1 -0
  316. package/dist/assets/freemarker-CPjxA8Jd.js +1 -0
  317. package/dist/assets/fsharp-CXgrBDvD.js +1 -0
  318. package/dist/assets/fsharp-CqtCj-4k.js +1 -0
  319. package/dist/assets/fusebox-Du0WTisa.js +1 -0
  320. package/dist/assets/gamemaker-BXJrqpEE.js +1 -0
  321. package/dist/assets/garden-B2CQNu4W.js +1 -0
  322. package/dist/assets/gatsby-KB27TuKn.js +1 -0
  323. package/dist/assets/gcp-DUAHL8qk.js +1 -0
  324. package/dist/assets/gdresource-TyuKm33G.js +1 -0
  325. package/dist/assets/gdscript-DqcFQ5yU.js +1 -0
  326. package/dist/assets/gdshader-DkwncUOv.js +1 -0
  327. package/dist/assets/gemfile-CuQEnTD7.js +1 -0
  328. package/dist/assets/gemini-CXtpQta5.js +1 -0
  329. package/dist/assets/gemini-ai-DJjDW0d5.js +1 -0
  330. package/dist/assets/genie-D0YGMca9.js +1 -0
  331. package/dist/assets/gherkin-DyxjwDmM.js +1 -0
  332. package/dist/assets/git-BNU6vY_m.js +1 -0
  333. package/dist/assets/git-commit-F4YmCXRG.js +1 -0
  334. package/dist/assets/git-rebase-r7XF79zn.js +1 -0
  335. package/dist/assets/github-actions-workflow-CvEp15DX.js +1 -0
  336. package/dist/assets/github-dark-BVmx9f8d.js +1 -0
  337. package/dist/assets/github-dark-DHJKELXO.js +1 -0
  338. package/dist/assets/github-dark-default-Cobl_g8l.js +1 -0
  339. package/dist/assets/github-dark-default-Cuk6v7N8.js +1 -0
  340. package/dist/assets/github-dark-dimmed-Bqq4Z-hR.js +1 -0
  341. package/dist/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
  342. package/dist/assets/github-dark-high-contrast-CC6_60ke.js +1 -0
  343. package/dist/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
  344. package/dist/assets/github-light-DAi9KRSo.js +1 -0
  345. package/dist/assets/github-light-DJPhTNJ5.js +1 -0
  346. package/dist/assets/github-light-default-D7oLnXFd.js +1 -0
  347. package/dist/assets/github-light-default-DqR1o2IW.js +1 -0
  348. package/dist/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
  349. package/dist/assets/github-light-high-contrast-D_1gu_AN.js +1 -0
  350. package/dist/assets/github-sponsors-DSKL6a59.js +1 -0
  351. package/dist/assets/gitlab-CoWx61cR.js +1 -0
  352. package/dist/assets/gitpod-CVWiBvVH.js +1 -0
  353. package/dist/assets/gleam-BEtGKIrl.js +1 -0
  354. package/dist/assets/gleam-BspZqrRM.js +1 -0
  355. package/dist/assets/glimmer-js-Drrc9bTt.js +1 -0
  356. package/dist/assets/glimmer-ts-zeybXsvi.js +1 -0
  357. package/dist/assets/glsl-DplSGwfg.js +1 -0
  358. package/dist/assets/gn-8iBmfbXw.js +1 -0
  359. package/dist/assets/gnuplot-B86xWijP.js +1 -0
  360. package/dist/assets/gnuplot-DdkO51Og.js +1 -0
  361. package/dist/assets/go-C27-OAKa.js +1 -0
  362. package/dist/assets/go-DSKdXPgj.js +1 -0
  363. package/dist/assets/go-mod-Cc2yyArJ.js +1 -0
  364. package/dist/assets/go_gopher-B9byxVX2.js +1 -0
  365. package/dist/assets/godot-CI43lgSv.js +1 -0
  366. package/dist/assets/godot-assets-Dd_MGPnF.js +1 -0
  367. package/dist/assets/google-Duy56YEG.js +1 -0
  368. package/dist/assets/gradle-B4FvLR69.js +1 -0
  369. package/dist/assets/grafana-alloy-8SDgGDzY.js +1 -0
  370. package/dist/assets/grain-BNz5D0P6.js +1 -0
  371. package/dist/assets/graphcool-Dj9HEFDF.js +1 -0
  372. package/dist/assets/graphql-BYrWaW5J.js +1 -0
  373. package/dist/assets/graphql-ChdNCCLP.js +1 -0
  374. package/dist/assets/gridsome-hwBOauwt.js +1 -0
  375. package/dist/assets/groovy-D-30FpLk.js +1 -0
  376. package/dist/assets/groovy-gcz8RCvz.js +1 -0
  377. package/dist/assets/grunt-BlGBhcib.js +1 -0
  378. package/dist/assets/gruvbox-dark-hard-C9F1V87v.js +1 -0
  379. package/dist/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
  380. package/dist/assets/gruvbox-dark-medium-C1_GCade.js +1 -0
  381. package/dist/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
  382. package/dist/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
  383. package/dist/assets/gruvbox-dark-soft-D3ZqCmv2.js +1 -0
  384. package/dist/assets/gruvbox-light-hard-BRlNxIYS.js +1 -0
  385. package/dist/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
  386. package/dist/assets/gruvbox-light-medium-BHRQ01Wa.js +1 -0
  387. package/dist/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
  388. package/dist/assets/gruvbox-light-soft-CRV2jOqR.js +1 -0
  389. package/dist/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
  390. package/dist/assets/gulp-DhxRE-UG.js +1 -0
  391. package/dist/assets/h-Ww50o4e2.js +1 -0
  392. package/dist/assets/hack-Ck6-gGSS.js +1 -0
  393. package/dist/assets/hack-LdfQ8cGz.js +1 -0
  394. package/dist/assets/hadolint-drt7BAwx.js +1 -0
  395. package/dist/assets/haml-BmpTwSHe.js +1 -0
  396. package/dist/assets/haml-GN_XdMnF.js +1 -0
  397. package/dist/assets/handlebars-C9KakZTY.js +1 -0
  398. package/dist/assets/handlebars-DPT5vKgj.js +1 -0
  399. package/dist/assets/happo-Bzcd09wR.js +1 -0
  400. package/dist/assets/hardhat-Cd0MICD7.js +1 -0
  401. package/dist/assets/harmonix-BokA6NgR.js +1 -0
  402. package/dist/assets/haskell-Ct8xdmez.js +1 -0
  403. package/dist/assets/haskell-Df6bDoY_.js +1 -0
  404. package/dist/assets/haxe-CfZj7gIn.js +1 -0
  405. package/dist/assets/haxe-DJh8BmEl.js +1 -0
  406. package/dist/assets/hcl-BWvSN4gD.js +1 -0
  407. package/dist/assets/hcl-Ca6J5aKw.js +1 -0
  408. package/dist/assets/hcl_light-DJlEq3RF.js +1 -0
  409. package/dist/assets/helm-DiB4ol5l.js +1 -0
  410. package/dist/assets/heroku-KLgT-_6d.js +1 -0
  411. package/dist/assets/hex-CBkGFW5i.js +1 -0
  412. package/dist/assets/highlights-CpYWOIDl.js +8 -0
  413. package/dist/assets/hip-Dm_KjXkK.js +1 -0
  414. package/dist/assets/histoire-DnJlzQx1.js +1 -0
  415. package/dist/assets/hjson-B7PDJLzT.js +1 -0
  416. package/dist/assets/hjson-D5-asLiD.js +1 -0
  417. package/dist/assets/hlsl-D3lLCCz7.js +1 -0
  418. package/dist/assets/horizon-4OJY8TlL.js +1 -0
  419. package/dist/assets/horizon-BUw7H-hv.js +1 -0
  420. package/dist/assets/horizon-bright-CUuTKBJd.js +1 -0
  421. package/dist/assets/horizon-bright-DKG-69X0.js +1 -0
  422. package/dist/assets/horusec-UiTNfPsX.js +1 -0
  423. package/dist/assets/hosts-YHrlRgMX.js +1 -0
  424. package/dist/assets/hosts_light-CWULAhjM.js +1 -0
  425. package/dist/assets/houston-DI9CDuY-.js +1 -0
  426. package/dist/assets/houston-DnULxvSX.js +1 -0
  427. package/dist/assets/hpp-C3_KsTmX.js +1 -0
  428. package/dist/assets/html-BlS82ilI.js +1 -0
  429. package/dist/assets/html-DwTvPm5V.js +1 -0
  430. package/dist/assets/html-derivative-DZhk3IEZ.js +1 -0
  431. package/dist/assets/http-BLZCee8E.js +1 -0
  432. package/dist/assets/http-jrhK8wxY.js +1 -0
  433. package/dist/assets/huff-DaexSZAr.js +1 -0
  434. package/dist/assets/huff_light-DksXJKTO.js +1 -0
  435. package/dist/assets/hurl-ByFivTHC.js +1 -0
  436. package/dist/assets/hurl-irOxFIW8.js +1 -0
  437. package/dist/assets/husky-CtVr_dzJ.js +1 -0
  438. package/dist/assets/hxml-2-FPmUDs.js +1 -0
  439. package/dist/assets/hy-DFXneXwc.js +1 -0
  440. package/dist/assets/i18n-BX2aowDt.js +1 -0
  441. package/dist/assets/idris-Co_5Bhau.js +1 -0
  442. package/dist/assets/ifanr-cloud-aC9N_7gy.js +1 -0
  443. package/dist/assets/image-CaINOXHA.js +1 -0
  444. package/dist/assets/imba-DGztddWO.js +1 -0
  445. package/dist/assets/imba-DgX6cmRy.js +1 -0
  446. package/dist/assets/index-2LWb-8Wc.css +1168 -0
  447. package/dist/assets/index-B8iDgboq.js +228 -0
  448. package/dist/assets/ini-BEwlwnbL.js +1 -0
  449. package/dist/assets/installation-D3HRSkg3.js +1 -0
  450. package/dist/assets/instructions.clone-BLrISQGs.js +1 -0
  451. package/dist/assets/ionic-Bn_7mKRQ.js +1 -0
  452. package/dist/assets/istanbul-BswzHdp2.js +1 -0
  453. package/dist/assets/jar-DgJQIODp.js +1 -0
  454. package/dist/assets/java-BnEGJunY.js +1 -0
  455. package/dist/assets/java-CylS5w8V.js +1 -0
  456. package/dist/assets/javaclass-DFmpWxcQ.js +1 -0
  457. package/dist/assets/javascript-DV9k-cQm.js +1 -0
  458. package/dist/assets/javascript-map-BxqahBN9.js +1 -0
  459. package/dist/assets/javascript-wDzz0qaB.js +1 -0
  460. package/dist/assets/jenkins-CXedXf-m.js +1 -0
  461. package/dist/assets/jest-D8jCVwot.js +1 -0
  462. package/dist/assets/jinja-CVZvbRD2.js +1 -0
  463. package/dist/assets/jinja-DFQZVq3b.js +1 -0
  464. package/dist/assets/jinja_light-rFtjtL8U.js +1 -0
  465. package/dist/assets/jison-wvAkD_A8.js +1 -0
  466. package/dist/assets/jsconfig-OInNBcL8.js +1 -0
  467. package/dist/assets/json-BWVDHY9B.js +1 -0
  468. package/dist/assets/json-Cp-IABpG.js +1 -0
  469. package/dist/assets/json5-C9tS-k6U.js +1 -0
  470. package/dist/assets/json_schema-D-EC84Qd.js +1 -0
  471. package/dist/assets/jsonc-Des-eS-w.js +1 -0
  472. package/dist/assets/jsonl-DcaNXYhu.js +1 -0
  473. package/dist/assets/jsonnet-DFQXde-d.js +1 -0
  474. package/dist/assets/jsr-S0sOXQzR.js +1 -0
  475. package/dist/assets/jsr_light-DFnachKS.js +1 -0
  476. package/dist/assets/jssm-C2t-YnRu.js +1 -0
  477. package/dist/assets/jsx-g9-lgVsj.js +1 -0
  478. package/dist/assets/julia-Cu79e8SL.js +1 -0
  479. package/dist/assets/julia-D6QIKrHj.js +1 -0
  480. package/dist/assets/jupyter-hXwxEmRE.js +1 -0
  481. package/dist/assets/just-BdRS3Ksm.js +1 -0
  482. package/dist/assets/just-CMxyWJJc.js +1 -0
  483. package/dist/assets/kanagawa-dragon-BuwD2xS4.js +1 -0
  484. package/dist/assets/kanagawa-dragon-D-96pmLZ.js +1 -0
  485. package/dist/assets/kanagawa-lotus-Bh8QPcxh.js +1 -0
  486. package/dist/assets/kanagawa-lotus-C3DzagqV.js +1 -0
  487. package/dist/assets/kanagawa-wave-CtcU2r-L.js +1 -0
  488. package/dist/assets/kanagawa-wave-DFGoQZhC.js +1 -0
  489. package/dist/assets/karma-1V4kfCVz.js +1 -0
  490. package/dist/assets/kcl-BJLyEiry.js +1 -0
  491. package/dist/assets/kdl-DV7GczEv.js +1 -0
  492. package/dist/assets/key-BZezo_nV.js +1 -0
  493. package/dist/assets/keystatic-D1ezd3V8.js +1 -0
  494. package/dist/assets/kivy-BZWGZsS8.js +1 -0
  495. package/dist/assets/kl-DCGrQ-p3.js +1 -0
  496. package/dist/assets/knip-AOhuR91w.js +1 -0
  497. package/dist/assets/kotlin-BdnUsdx6.js +1 -0
  498. package/dist/assets/kotlin-CtYDe6aL.js +1 -0
  499. package/dist/assets/kubernetes-BR3e4ZQa.js +1 -0
  500. package/dist/assets/kusto-BBfifqgC.js +1 -0
  501. package/dist/assets/kusto-wEQ09or8.js +1 -0
  502. package/dist/assets/label-cxKX-fIA.js +1 -0
  503. package/dist/assets/langs-DwaaGRZ6.js +2 -0
  504. package/dist/assets/laravel-DAcpaTu9.js +1 -0
  505. package/dist/assets/laserwave-CyPsI7TV.js +1 -0
  506. package/dist/assets/laserwave-DUszq2jm.js +1 -0
  507. package/dist/assets/latex-DJVikpzR.js +1 -0
  508. package/dist/assets/latex-class.clone-DB4yf78z.js +1 -0
  509. package/dist/assets/latex-package.clone-tqrgl0Hj.js +1 -0
  510. package/dist/assets/latex.clone-Z8Yh5B8w.js +1 -0
  511. package/dist/assets/latexmk-DzY21sqL.js +1 -0
  512. package/dist/assets/lbx-DRep4c5c.js +1 -0
  513. package/dist/assets/lean-BZvkOJ9d.js +1 -0
  514. package/dist/assets/lean-CMsyC3Lj.js +1 -0
  515. package/dist/assets/lefthook-D36WyXz7.js +1 -0
  516. package/dist/assets/lerna-DSD2nNAJ.js +1 -0
  517. package/dist/assets/less-B1dDrJ26.js +1 -0
  518. package/dist/assets/less-BmLSMnNj.js +1 -0
  519. package/dist/assets/liara-C72gP0JH.js +1 -0
  520. package/dist/assets/lib-CHRl5WXN.js +1 -0
  521. package/dist/assets/license-42K760dt.js +1 -0
  522. package/dist/assets/light-plus-B7mTdjB0.js +1 -0
  523. package/dist/assets/light-plus-DLxye2Gs.js +1 -0
  524. package/dist/assets/lighthouse-BtMovQpG.js +1 -0
  525. package/dist/assets/lilypond-BXAlY1wF.js +1 -0
  526. package/dist/assets/lintstaged-Deo9XMqk.js +1 -0
  527. package/dist/assets/liquid-B-duXHXw.js +1 -0
  528. package/dist/assets/liquid-B3StN7sa.js +1 -0
  529. package/dist/assets/lisp-CWs19g9P.js +1 -0
  530. package/dist/assets/livescript-E_j94S7V.js +1 -0
  531. package/dist/assets/llvm-BZoOZj88.js +1 -0
  532. package/dist/assets/loader-CTWdTgVc.js +1 -0
  533. package/dist/assets/lock-BPbIAUIR.js +1 -0
  534. package/dist/assets/log-2UxHyX5q.js +1 -0
  535. package/dist/assets/log-DSJb7Xlo.js +1 -0
  536. package/dist/assets/logo-BtOb2qkB.js +1 -0
  537. package/dist/assets/lolcode-De6Da_vS.js +1 -0
  538. package/dist/assets/lottie-D3CFhRnK.js +1 -0
  539. package/dist/assets/lua-BLEceKjG.js +1 -0
  540. package/dist/assets/lua-BaeVxFsk.js +1 -0
  541. package/dist/assets/luau-CqTuKfPE.js +1 -0
  542. package/dist/assets/luau-nOZpfvQi.js +1 -0
  543. package/dist/assets/lynx-CcrsIghE.js +1 -0
  544. package/dist/assets/lyric-DweM0Rgq.js +1 -0
  545. package/dist/assets/macaulay2-D2DVPofG.js +1 -0
  546. package/dist/assets/make-CHLpvVh8.js +1 -0
  547. package/dist/assets/makefile-S4WmaxNO.js +1 -0
  548. package/dist/assets/markdoc-Cxu-POcO.js +1 -0
  549. package/dist/assets/markdoc-config-GPOqjcOE.js +1 -0
  550. package/dist/assets/markdown-CabRC04b.js +1 -0
  551. package/dist/assets/markdown-Cvjx9yec.js +1 -0
  552. package/dist/assets/markdownlint-BNO4ZK-j.js +1 -0
  553. package/dist/assets/marko-BYgDmDgU.js +1 -0
  554. package/dist/assets/markojs-CJYZA8Q3.js +1 -0
  555. package/dist/assets/material-theme-CJcwlkxy.js +1 -0
  556. package/dist/assets/material-theme-D5KoaKCx.js +1 -0
  557. package/dist/assets/material-theme-darker-BGZ_5sXo.js +1 -0
  558. package/dist/assets/material-theme-darker-BfHTSMKl.js +1 -0
  559. package/dist/assets/material-theme-lighter-B0m2ddpp.js +1 -0
  560. package/dist/assets/material-theme-lighter-CjcM5chE.js +1 -0
  561. package/dist/assets/material-theme-ocean-CyktbL80.js +1 -0
  562. package/dist/assets/material-theme-ocean-bB53CPUr.js +1 -0
  563. package/dist/assets/material-theme-palenight-CEO02sJ-.js +1 -0
  564. package/dist/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
  565. package/dist/assets/materialIcons-0T6AU0ht.js +1 -0
  566. package/dist/assets/mathematica-D0SR_HGi.js +1 -0
  567. package/dist/assets/matlab-D7o27uSR.js +1 -0
  568. package/dist/assets/matlab-djWd4WI9.js +1 -0
  569. package/dist/assets/maven-CPH6dq1p.js +1 -0
  570. package/dist/assets/mdc-DF4WjDMn.js +1 -0
  571. package/dist/assets/mdsvex-CvWHUZ1A.js +1 -0
  572. package/dist/assets/mdx-Cmh6b_Ma.js +1 -0
  573. package/dist/assets/mdx-DMvzLKOV.js +1 -0
  574. package/dist/assets/mercurial-BHMCHi9I.js +1 -0
  575. package/dist/assets/merlin-BzvthGX7.js +1 -0
  576. package/dist/assets/mermaid-BM4pEB5k.js +1 -0
  577. package/dist/assets/mermaid-CQcHuHx7.js +1 -0
  578. package/dist/assets/meson-CY_m_Wss.js +1 -0
  579. package/dist/assets/metro-DN39KaT8.js +1 -0
  580. package/dist/assets/min-dark-BMCe6Sa9.js +1 -0
  581. package/dist/assets/min-dark-CafNBF8u.js +1 -0
  582. package/dist/assets/min-light-Bm6kkJDi.js +1 -0
  583. package/dist/assets/min-light-CTRr51gU.js +1 -0
  584. package/dist/assets/minecraft-BLz0P1ea.js +1 -0
  585. package/dist/assets/minecraft-fabric-D-emLktJ.js +1 -0
  586. package/dist/assets/mint-PuNatAHr.js +1 -0
  587. package/dist/assets/mipsasm-CKIfxQSi.js +1 -0
  588. package/dist/assets/mist.clone-DQuBpEEb.js +1 -0
  589. package/dist/assets/mjml-Bbi7XZZF.js +1 -0
  590. package/dist/assets/mocha-BO86r4Le.js +1 -0
  591. package/dist/assets/modernizr-DEK392x1.js +1 -0
  592. package/dist/assets/mojo-DJz3ZmWd.js +1 -0
  593. package/dist/assets/mojo-DxAXKlI8.js +1 -0
  594. package/dist/assets/monokai-CR4piiQ-.js +1 -0
  595. package/dist/assets/monokai-Dk2XPowy.js +1 -0
  596. package/dist/assets/moon-DGh_UE2g.js +1 -0
  597. package/dist/assets/moonbit-Bag4Rp_g.js +1 -0
  598. package/dist/assets/moonscript-CLAdO0ad.js +1 -0
  599. package/dist/assets/move-el3G9tDJ.js +1 -0
  600. package/dist/assets/mrpack-BbseLjOl.js +1 -0
  601. package/dist/assets/mxml-CmmOijJq.js +1 -0
  602. package/dist/assets/nano-staged-BVYMwZz0.js +1 -0
  603. package/dist/assets/nano-staged_light-CHxVZ_EK.js +1 -0
  604. package/dist/assets/narrat-DRg8JJMk.js +1 -0
  605. package/dist/assets/ndst-Cdpg_rEM.js +1 -0
  606. package/dist/assets/nest-controller.clone-qkEcLtHQ.js +1 -0
  607. package/dist/assets/nest-decorator.clone-Cf6DoeGO.js +1 -0
  608. package/dist/assets/nest-filter.clone-B2IUt143.js +1 -0
  609. package/dist/assets/nest-gateway.clone-DHvThHSZ.js +1 -0
  610. package/dist/assets/nest-guard.clone-DtnqBfcd.js +1 -0
  611. package/dist/assets/nest-interceptor.clone-BZjLr0zU.js +1 -0
  612. package/dist/assets/nest-middleware.clone-D_IV7lm_.js +1 -0
  613. package/dist/assets/nest-module.clone-a1YvMq_J.js +1 -0
  614. package/dist/assets/nest-pipe.clone-CtgJNIiv.js +1 -0
  615. package/dist/assets/nest-resolver.clone-Bu0CYLLp.js +1 -0
  616. package/dist/assets/nest-service.clone-DJVtC5ky.js +1 -0
  617. package/dist/assets/nest-uii31yoZ.js +1 -0
  618. package/dist/assets/netlify-CXpnmdMk.js +1 -0
  619. package/dist/assets/netlify_light-DUisGvWs.js +1 -0
  620. package/dist/assets/next-NlbmrkTR.js +1 -0
  621. package/dist/assets/next_light-Dov2Aag3.js +1 -0
  622. package/dist/assets/nextflow-BCxp2Aob.js +1 -0
  623. package/dist/assets/nextflow-CRJCa3-W.js +1 -0
  624. package/dist/assets/nextflow-groovy-CedDknKX.js +1 -0
  625. package/dist/assets/nginx-BpAMiNFr.js +1 -0
  626. package/dist/assets/nginx-CBltZhA0.js +1 -0
  627. package/dist/assets/ngrx-actions-CiiRBqoq.js +1 -0
  628. package/dist/assets/ngrx-effects-ht9wWEAp.js +1 -0
  629. package/dist/assets/ngrx-entity-CKMwrgVK.js +1 -0
  630. package/dist/assets/ngrx-reducer-CVvK_f1O.js +1 -0
  631. package/dist/assets/ngrx-selectors-DKYAQ07_.js +1 -0
  632. package/dist/assets/ngrx-state-Cjy9-4Gw.js +1 -0
  633. package/dist/assets/night-owl-C39BiMTA.js +1 -0
  634. package/dist/assets/night-owl-han1E7M5.js +1 -0
  635. package/dist/assets/night-owl-light-CMTm3GFP.js +1 -0
  636. package/dist/assets/night-owl-light-Cl1yPzT6.js +1 -0
  637. package/dist/assets/nim-nV83PyhX.js +1 -0
  638. package/dist/assets/nim-p7Wbc7ed.js +1 -0
  639. package/dist/assets/nix-BfV8uZRs.js +1 -0
  640. package/dist/assets/nix-CwoSXNpI.js +1 -0
  641. package/dist/assets/nodejs-DOyp0OwK.js +1 -0
  642. package/dist/assets/nodejs_alt-DM5GXuAE.js +1 -0
  643. package/dist/assets/nodemon-CBY1885z.js +1 -0
  644. package/dist/assets/nord-DDTeIukr.js +1 -0
  645. package/dist/assets/nord-Ddv68eIx.js +1 -0
  646. package/dist/assets/npm-Oj4J4caC.js +1 -0
  647. package/dist/assets/nsis-BlV79W_Q.js +1 -0
  648. package/dist/assets/nuget-3ofUwiRl.js +1 -0
  649. package/dist/assets/nunjucks-CcVFhSH6.js +1 -0
  650. package/dist/assets/nushell-BXD5iret.js +1 -0
  651. package/dist/assets/nuxt-s4rhqNb7.js +1 -0
  652. package/dist/assets/nx-CBxAqste.js +1 -0
  653. package/dist/assets/objective-c-DXmwc3jG.js +1 -0
  654. package/dist/assets/objective-c-ICVFUWS1.js +1 -0
  655. package/dist/assets/objective-cpp-CLxacb5B.js +1 -0
  656. package/dist/assets/objective-cpp-h3exWqBv.js +1 -0
  657. package/dist/assets/ocaml-C0hk2d4L.js +1 -0
  658. package/dist/assets/ocaml-DLgJ70Hh.js +1 -0
  659. package/dist/assets/odin-BBf5iR-q.js +1 -0
  660. package/dist/assets/odin-BczFO4iC.js +1 -0
  661. package/dist/assets/one-dark-pro-CxGP3dtY.js +1 -0
  662. package/dist/assets/one-dark-pro-DF6Wh4HV.js +1 -0
  663. package/dist/assets/one-light-C3Wv6jpd.js +1 -0
  664. package/dist/assets/one-light-DtuA6F_V.js +1 -0
  665. package/dist/assets/onnx-DH06GS8e.js +1 -0
  666. package/dist/assets/opa-BrETCzD9.js +1 -0
  667. package/dist/assets/opam-DUhEBMwc.js +1 -0
  668. package/dist/assets/openapi-Bn1BFbGY.js +1 -0
  669. package/dist/assets/openapi_light-uBtMDaia.js +1 -0
  670. package/dist/assets/opencode-C_xA0H3L.js +1 -0
  671. package/dist/assets/opencode_light-Bj9lx7qv.js +1 -0
  672. package/dist/assets/openscad-C4EeE6gA.js +1 -0
  673. package/dist/assets/opentofu-CC1Gwtld.js +1 -0
  674. package/dist/assets/opentofu_light-1ZDaXg_1.js +1 -0
  675. package/dist/assets/org-6a7ccXN_.js +1 -0
  676. package/dist/assets/otne-CrKxdKJ0.js +1 -0
  677. package/dist/assets/oxc-Cl9acx50.js +1 -0
  678. package/dist/assets/packship-C8dbKG9V.js +1 -0
  679. package/dist/assets/palette-D-hShjKh.js +1 -0
  680. package/dist/assets/panda-BXxE5r4M.js +1 -0
  681. package/dist/assets/parcel-DBEtLb0p.js +1 -0
  682. package/dist/assets/pascal-D93ZcfNL.js +1 -0
  683. package/dist/assets/pascal-NAYd3dN7.js +1 -0
  684. package/dist/assets/pawn-jrMhrT-2.js +1 -0
  685. package/dist/assets/payload-BAksMG7o.js +1 -0
  686. package/dist/assets/payload_light-D1yG1_qw.js +1 -0
  687. package/dist/assets/pdf-BwtV9HbE.js +1 -0
  688. package/dist/assets/pdm-CsgspJoW.js +1 -0
  689. package/dist/assets/peg-Ctk__vtj.js +1 -0
  690. package/dist/assets/percy-CMYv3jvb.js +1 -0
  691. package/dist/assets/perl-5klg-GXX.js +1 -0
  692. package/dist/assets/perl-Cws6Mxvh.js +1 -0
  693. package/dist/assets/php-DoruYMF0.js +1 -0
  694. package/dist/assets/php-PqrjLTra.js +1 -0
  695. package/dist/assets/php-cs-fixer-CkAAKYuV.js +1 -0
  696. package/dist/assets/php_elephant-DleVhMq8.js +1 -0
  697. package/dist/assets/php_elephant_pink-CZMRWVUe.js +1 -0
  698. package/dist/assets/phpstan-CsvmweRy.js +1 -0
  699. package/dist/assets/phpunit-XgaNEp-g.js +1 -0
  700. package/dist/assets/pierre-dark-CyvmCCZW.js +1 -0
  701. package/dist/assets/pierre-dark-DF50kJRQ.js +1 -0
  702. package/dist/assets/pierre-dark-protanopia-deuteranopia-Cgqy1jHS.js +1 -0
  703. package/dist/assets/pierre-dark-protanopia-deuteranopia-Rgc0TwpF.js +1 -0
  704. package/dist/assets/pierre-dark-soft-BCUYmEtF.js +1 -0
  705. package/dist/assets/pierre-dark-soft-BHGpRqa4.js +1 -0
  706. package/dist/assets/pierre-dark-tritanopia-Beq2gCRQ.js +1 -0
  707. package/dist/assets/pierre-dark-tritanopia-CncZof3Q.js +1 -0
  708. package/dist/assets/pierre-dark-vibrant-BI1wPMzu.js +1 -0
  709. package/dist/assets/pierre-dark-vibrant-BWBVywrn.js +1 -0
  710. package/dist/assets/pierre-light-480U9XYS.js +1 -0
  711. package/dist/assets/pierre-light-DXZG9etP.js +1 -0
  712. package/dist/assets/pierre-light-protanopia-deuteranopia-BTq7x1tZ.js +1 -0
  713. package/dist/assets/pierre-light-protanopia-deuteranopia-CaVOBURG.js +1 -0
  714. package/dist/assets/pierre-light-soft-BwL5JwZL.js +1 -0
  715. package/dist/assets/pierre-light-soft-CVdyfjmI.js +1 -0
  716. package/dist/assets/pierre-light-tritanopia-B4_gpKOM.js +1 -0
  717. package/dist/assets/pierre-light-tritanopia-sLHrbAeH.js +1 -0
  718. package/dist/assets/pierre-light-vibrant-D99YW89A.js +1 -0
  719. package/dist/assets/pierre-light-vibrant-DdTDNdfJ.js +1 -0
  720. package/dist/assets/pinejs-BPAJakmu.js +1 -0
  721. package/dist/assets/pipeline-CwrV8nZC.js +1 -0
  722. package/dist/assets/pkl-DTxaHUNp.js +1 -0
  723. package/dist/assets/pkl-u5AG7uiY.js +1 -0
  724. package/dist/assets/plastic-3e1v2bzS.js +1 -0
  725. package/dist/assets/plastic-BA_LeTlt.js +1 -0
  726. package/dist/assets/plastic-DjVpnBcv.js +1 -0
  727. package/dist/assets/playwright-BylxXmhp.js +1 -0
  728. package/dist/assets/plop-BQm9FggE.js +1 -0
  729. package/dist/assets/plsql-ChMvpjG-.js +1 -0
  730. package/dist/assets/pm2-ecosystem-DYFEqz_z.js +1 -0
  731. package/dist/assets/pnpm-rshl54qO.js +1 -0
  732. package/dist/assets/pnpm_light-l7P1Ucdu.js +1 -0
  733. package/dist/assets/po-BTJTHyun.js +1 -0
  734. package/dist/assets/poetry-CKdflkUz.js +1 -0
  735. package/dist/assets/poimandres-CS3Unz2-.js +1 -0
  736. package/dist/assets/poimandres-oP3Jw5ph.js +1 -0
  737. package/dist/assets/polar-C0HS_06l.js +1 -0
  738. package/dist/assets/postcss-CXtECtnM.js +1 -0
  739. package/dist/assets/postcss-ObvIYTXC.js +1 -0
  740. package/dist/assets/posthtml-DkteXM5p.js +1 -0
  741. package/dist/assets/powerpoint-CVI0vzNd.js +1 -0
  742. package/dist/assets/powerquery-CEu0bR-o.js +1 -0
  743. package/dist/assets/powershell-C-k0nzcV.js +1 -0
  744. package/dist/assets/powershell-Dd0kTxKP.js +1 -0
  745. package/dist/assets/pre-commit-B1FPNo8f.js +1 -0
  746. package/dist/assets/prettier-CaXOPeKv.js +1 -0
  747. package/dist/assets/prisma-BW16hXHe.js +1 -0
  748. package/dist/assets/prisma-Vru482bI.js +1 -0
  749. package/dist/assets/processing-DhPlSPZD.js +1 -0
  750. package/dist/assets/prolog-CbFg5uaA.js +1 -0
  751. package/dist/assets/prolog-M2GkMSTj.js +1 -0
  752. package/dist/assets/prompt-BMIsQ84q.js +1 -0
  753. package/dist/assets/proto-C7zT0LnQ.js +1 -0
  754. package/dist/assets/proto-oYNETYCE.js +1 -0
  755. package/dist/assets/protractor-DD2cS-B_.js +1 -0
  756. package/dist/assets/pug-0xpiwmWo.js +1 -0
  757. package/dist/assets/pug-BtYPkAgq.js +1 -0
  758. package/dist/assets/puppet-BMWR74SV.js +1 -0
  759. package/dist/assets/puppet-D_SIwXnB.js +1 -0
  760. package/dist/assets/puppeteer-DDTyfVif.js +1 -0
  761. package/dist/assets/purescript-C_roa20T.js +1 -0
  762. package/dist/assets/purescript-CklMAg4u.js +1 -0
  763. package/dist/assets/python-B6aJPvgy.js +1 -0
  764. package/dist/assets/python-CPht1dA4.js +1 -0
  765. package/dist/assets/python-misc-BnZOtqQ4.js +1 -0
  766. package/dist/assets/pytorch-C_fsrIn2.js +1 -0
  767. package/dist/assets/qml-3beO22l8.js +1 -0
  768. package/dist/assets/qmldir-C8lEn-DE.js +1 -0
  769. package/dist/assets/qsharp-Ckg8x_Jk.js +1 -0
  770. package/dist/assets/qss-IeuSbFQv.js +1 -0
  771. package/dist/assets/quarto-DZnVPUAt.js +1 -0
  772. package/dist/assets/quasar-BGuAWqse.js +1 -0
  773. package/dist/assets/quokka-DSBakkez.js +1 -0
  774. package/dist/assets/qwik-BOx6TvdJ.js +1 -0
  775. package/dist/assets/r-Br9B07-f.js +1 -0
  776. package/dist/assets/r-Cf5RLm7j.js +1 -0
  777. package/dist/assets/racket-BqYA7rlc.js +1 -0
  778. package/dist/assets/racket-DBrjbYY7.js +1 -0
  779. package/dist/assets/raku-DXvB9xmW.js +1 -0
  780. package/dist/assets/raml-BdMSRVzU.js +1 -0
  781. package/dist/assets/razor-4CAYO4Tr.js +1 -0
  782. package/dist/assets/razor-CyjPwjZj.js +1 -0
  783. package/dist/assets/rbs-CpoqiR4B.js +1 -0
  784. package/dist/assets/rbxmk-B1VQQQcF.js +1 -0
  785. package/dist/assets/rc-BaV0qTgr.js +1 -0
  786. package/dist/assets/react-Brdo9u0l.js +1 -0
  787. package/dist/assets/react_ts-JJzuChyH.js +1 -0
  788. package/dist/assets/readme-NiTwsv1m.js +1 -0
  789. package/dist/assets/reason-ledw0kzM.js +1 -0
  790. package/dist/assets/red-C7ljw3yD.js +1 -0
  791. package/dist/assets/red-D9F8Rgpn.js +1 -0
  792. package/dist/assets/red-DMbB5_pp.js +1 -0
  793. package/dist/assets/redux-action-BkouwOD2.js +1 -0
  794. package/dist/assets/redux-reducer-pQEjKULb.js +1 -0
  795. package/dist/assets/redux-selector-B7ZVFuNx.js +1 -0
  796. package/dist/assets/redux-store-BPlZDwV2.js +1 -0
  797. package/dist/assets/reg-C-SQnVFl.js +1 -0
  798. package/dist/assets/regedit-Cwlri74t.js +1 -0
  799. package/dist/assets/regexp-CDVJQ6XC.js +1 -0
  800. package/dist/assets/rel-C3B-1QV4.js +1 -0
  801. package/dist/assets/remark-DmX5zJY3.js +1 -0
  802. package/dist/assets/remix-DihcwMAj.js +1 -0
  803. package/dist/assets/remix_light-BiPVtUV2.js +1 -0
  804. package/dist/assets/renovate-DMs0am5J.js +1 -0
  805. package/dist/assets/replit-BQ-LSwO8.js +1 -0
  806. package/dist/assets/rescript-Dba5nlf2.js +1 -0
  807. package/dist/assets/rescript-interface-Cyu8vEEP.js +1 -0
  808. package/dist/assets/restql-BHztKuYv.js +1 -0
  809. package/dist/assets/riot-mLyZqv-x.js +1 -0
  810. package/dist/assets/riscv-BM1_JUlF.js +1 -0
  811. package/dist/assets/roadmap-CU9G6rQC.js +1 -0
  812. package/dist/assets/roblox-B2mt9e_t.js +1 -0
  813. package/dist/assets/robot-D5kUnLHT.js +1 -0
  814. package/dist/assets/robots-B7hUW-I0.js +1 -0
  815. package/dist/assets/rocket-B7w628pK.js +1 -0
  816. package/dist/assets/rojo-Cri0oX02.js +1 -0
  817. package/dist/assets/rolldown-CnHJsn0r.js +1 -0
  818. package/dist/assets/rollup-D9x5UXJA.js +1 -0
  819. package/dist/assets/rome-BOZg-CWb.js +1 -0
  820. package/dist/assets/ron-D8l8udqQ.js +1 -0
  821. package/dist/assets/rose-pine-5qJOZa0Y.js +1 -0
  822. package/dist/assets/rose-pine-N6Nc_Qgp.js +1 -0
  823. package/dist/assets/rose-pine-dawn-CjcyLH22.js +1 -0
  824. package/dist/assets/rose-pine-dawn-zx0QlTCp.js +1 -0
  825. package/dist/assets/rose-pine-moon-C9pEdX9L.js +1 -0
  826. package/dist/assets/rose-pine-moon-XvifxlJo.js +1 -0
  827. package/dist/assets/rosmsg-BJDFO7_C.js +1 -0
  828. package/dist/assets/routing-Dg9AsLka.js +1 -0
  829. package/dist/assets/rspec-IG2Hi06i.js +1 -0
  830. package/dist/assets/rst-CVOjT0e7.js +1 -0
  831. package/dist/assets/rstack-arV2gVn0.js +1 -0
  832. package/dist/assets/rubocop-CTySkbZa.js +1 -0
  833. package/dist/assets/rubocop_light-Cd87GreZ.js +1 -0
  834. package/dist/assets/ruby-C8rp0wew.js +1 -0
  835. package/dist/assets/ruby-lpPi_X4f.js +1 -0
  836. package/dist/assets/ruff-Ddf6XOKK.js +1 -0
  837. package/dist/assets/rust-DPvrY3IQ.js +1 -0
  838. package/dist/assets/rust-i3okWXug.js +1 -0
  839. package/dist/assets/salesforce-B-Fce8eC.js +1 -0
  840. package/dist/assets/salt-DCEWvBDg.js +1 -0
  841. package/dist/assets/san-CrGbP2-_.js +1 -0
  842. package/dist/assets/sas-BGn39htG.js +1 -0
  843. package/dist/assets/sas-Cx3HD76h.js +1 -0
  844. package/dist/assets/sass-Cj5Yp3dK.js +1 -0
  845. package/dist/assets/sass-N_dxGZbH.js +1 -0
  846. package/dist/assets/sbt-C6q1KyFY.js +1 -0
  847. package/dist/assets/scala-BVJCocpq.js +1 -0
  848. package/dist/assets/scala-CqE71os6.js +1 -0
  849. package/dist/assets/scheme-BaSIepFx.js +1 -0
  850. package/dist/assets/scheme-C98Dy4si.js +1 -0
  851. package/dist/assets/scons-Dw9W0Ntp.js +1 -0
  852. package/dist/assets/scons_light-CotAcxPH.js +1 -0
  853. package/dist/assets/screwdriver-DT_9c0UR.js +1 -0
  854. package/dist/assets/scss-Cw6XMfVs.js +1 -0
  855. package/dist/assets/sdbl-DVxCFoDh.js +1 -0
  856. package/dist/assets/search-Djs6iCSP.js +1 -0
  857. package/dist/assets/semantic-release-daYO61SS.js +1 -0
  858. package/dist/assets/semantic-release_light-ofAEQiJJ.js +1 -0
  859. package/dist/assets/semgrep-CuPPssA7.js +1 -0
  860. package/dist/assets/sentry-Ch81Q6ob.js +1 -0
  861. package/dist/assets/sequelize-D6-xOJ8I.js +1 -0
  862. package/dist/assets/serverless-LruNk77b.js +1 -0
  863. package/dist/assets/settings-BK68kowf.js +1 -0
  864. package/dist/assets/shader-C04GDJRz.js +1 -0
  865. package/dist/assets/shaderlab-Dg9Lc6iA.js +1 -0
  866. package/dist/assets/shellcheck-hjFdSEn4.js +1 -0
  867. package/dist/assets/shellcheck_light-CB69M8s4.js +1 -0
  868. package/dist/assets/shellscript-Yzrsuije.js +1 -0
  869. package/dist/assets/shellsession-BADoaaVG.js +1 -0
  870. package/dist/assets/shiki-CpXFjX6z.js +2 -0
  871. package/dist/assets/silverstripe-CxkQuvq1.js +1 -0
  872. package/dist/assets/simulink-B19FsZaj.js +1 -0
  873. package/dist/assets/siyuan-DTlGzTI5.js +1 -0
  874. package/dist/assets/sketch-D7bUgSkt.js +1 -0
  875. package/dist/assets/skill-CsyAdCOD.js +1 -0
  876. package/dist/assets/slack-dark-BthQWCQV.js +1 -0
  877. package/dist/assets/slack-dark-CXWcruur.js +1 -0
  878. package/dist/assets/slack-ochin-DqwNpetd.js +1 -0
  879. package/dist/assets/slack-ochin-j9-5xOqG.js +1 -0
  880. package/dist/assets/slim-DKANlMS4.js +1 -0
  881. package/dist/assets/slint-BXt2_SOj.js +1 -0
  882. package/dist/assets/slug-BXnojXrC.js +1 -0
  883. package/dist/assets/smalltalk-BOQMe2GC.js +1 -0
  884. package/dist/assets/smarty-B4p8Lfte.js +1 -0
  885. package/dist/assets/smithy-cds9vsN8.js +1 -0
  886. package/dist/assets/sml-BSw6Tf80.js +1 -0
  887. package/dist/assets/snakemake-DpgMTFY0.js +1 -0
  888. package/dist/assets/snapcraft-DYMQuluP.js +1 -0
  889. package/dist/assets/snazzy-light-Bw305WKR.js +1 -0
  890. package/dist/assets/snazzy-light-NrfPMqkH.js +1 -0
  891. package/dist/assets/snowpack-Q_deJg00.js +1 -0
  892. package/dist/assets/snowpack_light-BkA3F4N6.js +1 -0
  893. package/dist/assets/snyk-BV-5ZNtb.js +1 -0
  894. package/dist/assets/solarized-dark-CYqaUSYq.js +1 -0
  895. package/dist/assets/solarized-dark-UcubFVte.js +1 -0
  896. package/dist/assets/solarized-light-DCG28T6R.js +1 -0
  897. package/dist/assets/solarized-light-Ws7Bvbxh.js +1 -0
  898. package/dist/assets/solidity-B_KMDset.js +1 -0
  899. package/dist/assets/solidity-DijEV5ha.js +1 -0
  900. package/dist/assets/sonarcloud-DxoMV2hS.js +1 -0
  901. package/dist/assets/soy-zscZBeg6.js +1 -0
  902. package/dist/assets/sparql-rVzFXLq3.js +1 -0
  903. package/dist/assets/splunk-BtCnVYZw.js +1 -0
  904. package/dist/assets/spwn-ChqHVlhP.js +1 -0
  905. package/dist/assets/sql-DkvoVjww.js +1 -0
  906. package/dist/assets/ssh-config-_ykCGR6B.js +1 -0
  907. package/dist/assets/stackblitz-BHYKXqXF.js +1 -0
  908. package/dist/assets/stan-CpzMxJUj.js +1 -0
  909. package/dist/assets/stata-DACIj5bg.js +1 -0
  910. package/dist/assets/steadybit-CK_eei0J.js +1 -0
  911. package/dist/assets/stencil-C5eQxaDp.js +1 -0
  912. package/dist/assets/stitches-BY2h7a5O.js +1 -0
  913. package/dist/assets/stitches_light-DdHJP6h4.js +1 -0
  914. package/dist/assets/storybook-B754zdik.js +1 -0
  915. package/dist/assets/stream-tokenizer-Dc3o0eG9.js +4 -0
  916. package/dist/assets/stryker-Cj1I5_1L.js +1 -0
  917. package/dist/assets/sty.clone-tqrgl0Hj.js +1 -0
  918. package/dist/assets/stylable-qbtfJ7sI.js +1 -0
  919. package/dist/assets/stylelint-C3863dqQ.js +1 -0
  920. package/dist/assets/stylelint_light-DVLZoY7i.js +1 -0
  921. package/dist/assets/stylus-BEDo0Tqx.js +1 -0
  922. package/dist/assets/stylus-Yp7Xapjy.js +1 -0
  923. package/dist/assets/sublime-RfQDH_Tu.js +1 -0
  924. package/dist/assets/subtitles-DKlLGo0M.js +1 -0
  925. package/dist/assets/supabase-DBO-wtXT.js +1 -0
  926. package/dist/assets/surrealql-Cjom0U5J.js +1 -0
  927. package/dist/assets/svelte-BgtSWe3d.js +1 -0
  928. package/dist/assets/svelte-D84K1R2Q.js +1 -0
  929. package/dist/assets/svelte_js.clone-CxZfMMn2.js +1 -0
  930. package/dist/assets/svelte_ts.clone-DgMrQqzV.js +1 -0
  931. package/dist/assets/svg-D6fjmjLF.js +1 -0
  932. package/dist/assets/svgo-hrvgRN9o.js +1 -0
  933. package/dist/assets/svgr-COVc6cMM.js +1 -0
  934. package/dist/assets/swagger-CUB922QX.js +1 -0
  935. package/dist/assets/sway-CB5XO7mn.js +1 -0
  936. package/dist/assets/swc-Dv_1_4br.js +1 -0
  937. package/dist/assets/swift-C2oV4EkX.js +1 -0
  938. package/dist/assets/swift-CyGnHAZU.js +1 -0
  939. package/dist/assets/syncpack-BqZjSqMS.js +1 -0
  940. package/dist/assets/synthwave-84-CbfX1IO0.js +1 -0
  941. package/dist/assets/synthwave-84-ev3Pj0YU.js +1 -0
  942. package/dist/assets/system-verilog-0hqHdDBg.js +1 -0
  943. package/dist/assets/systemd-4A_iFExJ.js +1 -0
  944. package/dist/assets/systemd-DC0XsdEU.js +1 -0
  945. package/dist/assets/systemd_light-BhVcT-ql.js +1 -0
  946. package/dist/assets/table-Dl1fc6za.js +1 -0
  947. package/dist/assets/tailwindcss-DE61wxOw.js +1 -0
  948. package/dist/assets/talonscript-CkByrt1z.js +1 -0
  949. package/dist/assets/tape.clone-OvCAHPed.js +1 -0
  950. package/dist/assets/taskfile-v1ltlz-5.js +1 -0
  951. package/dist/assets/tasl-QIJgUcNo.js +1 -0
  952. package/dist/assets/tauri-Zb7fGdff.js +1 -0
  953. package/dist/assets/taze-C-mZVf0u.js +1 -0
  954. package/dist/assets/tcl-dwOrl1Do.js +1 -0
  955. package/dist/assets/tcl-fqvbdO0z.js +1 -0
  956. package/dist/assets/teal-BPHgXqrp.js +1 -0
  957. package/dist/assets/templ-UY18XKVU.js +1 -0
  958. package/dist/assets/templ-Vpw5XpSW.js +1 -0
  959. package/dist/assets/template-BJJInZ08.js +1 -0
  960. package/dist/assets/terraform-BETggiCN.js +1 -0
  961. package/dist/assets/terraform-De5D-xGd.js +1 -0
  962. package/dist/assets/test-js-Cosvu7KF.js +1 -0
  963. package/dist/assets/test-jsx-DIeuTZbc.js +1 -0
  964. package/dist/assets/test-ts-CJ9xpU8Z.js +1 -0
  965. package/dist/assets/tex-ChN9Nw-_.js +1 -0
  966. package/dist/assets/tex-D96PA37w.js +1 -0
  967. package/dist/assets/textlint-Cs6rt1Cu.js +1 -0
  968. package/dist/assets/themes-ChlupUkw.js +2 -0
  969. package/dist/assets/tilt-Dt5ulhxI.js +1 -0
  970. package/dist/assets/tldraw-D8yQecJk.js +1 -0
  971. package/dist/assets/tldraw_light-BdrBJGAk.js +1 -0
  972. package/dist/assets/tobi-hAB3KK-d.js +1 -0
  973. package/dist/assets/tobimake-BheJY94H.js +1 -0
  974. package/dist/assets/toc-BVHyreHx.js +1 -0
  975. package/dist/assets/todo-NIRmF9Nt.js +1 -0
  976. package/dist/assets/tokyo-night-DcOUfspC.js +1 -0
  977. package/dist/assets/tokyo-night-hegEt444.js +1 -0
  978. package/dist/assets/toml-CYN-E9Ic.js +1 -0
  979. package/dist/assets/toml-vGWfd6FD.js +1 -0
  980. package/dist/assets/toml_light-DoZW7ed-.js +1 -0
  981. package/dist/assets/toon-h9zLBx21.js +1 -0
  982. package/dist/assets/travis-BfBYRnAI.js +1 -0
  983. package/dist/assets/tree-v5yd1eDo.js +1 -0
  984. package/dist/assets/trigger-CbdSCxnV.js +1 -0
  985. package/dist/assets/ts-tags-Ls60c9xG.js +1 -0
  986. package/dist/assets/tsconfig-jwHGvwHS.js +1 -0
  987. package/dist/assets/tsdoc-CqriZ9N4.js +1 -0
  988. package/dist/assets/tsdown-4tEsNANt.js +1 -0
  989. package/dist/assets/tsil-D5schsrZ.js +1 -0
  990. package/dist/assets/tsv-B_m7g4N7.js +1 -0
  991. package/dist/assets/tsx-COt5Ahok.js +1 -0
  992. package/dist/assets/tune-C1VMPtEW.js +1 -0
  993. package/dist/assets/turborepo-Drq_phrM.js +1 -0
  994. package/dist/assets/turborepo_light-CTxmbjOn.js +1 -0
  995. package/dist/assets/turtle-BsS91CYL.js +1 -0
  996. package/dist/assets/twig-C8vTwqwl.js +1 -0
  997. package/dist/assets/twig-D9-LOF2p.js +1 -0
  998. package/dist/assets/twine-gjlCnxRH.js +1 -0
  999. package/dist/assets/typedoc-BiFaaYDw.js +1 -0
  1000. package/dist/assets/typescript-BPQ3VLAy.js +1 -0
  1001. package/dist/assets/typescript-C99txOYA.js +1 -0
  1002. package/dist/assets/typescript-def-C_qwM6Wa.js +1 -0
  1003. package/dist/assets/typespec-ClX509-Q.js +1 -0
  1004. package/dist/assets/typst-DCU_PP9B.js +1 -0
  1005. package/dist/assets/typst-DamkJZ1Q.js +1 -0
  1006. package/dist/assets/uiua-BCeEt6b_.js +1 -0
  1007. package/dist/assets/umi-B3GUBNcT.js +1 -0
  1008. package/dist/assets/uml-Bs9XQ0yV.js +1 -0
  1009. package/dist/assets/uml_light-CEYnIVKN.js +1 -0
  1010. package/dist/assets/unity-DNfup6lc.js +1 -0
  1011. package/dist/assets/unlicense-C_cIySJj.js +1 -0
  1012. package/dist/assets/unocss-DMv89nsZ.js +1 -0
  1013. package/dist/assets/url-CTZST4-Z.js +1 -0
  1014. package/dist/assets/uv-BzCA5Piy.js +1 -0
  1015. package/dist/assets/v-BGw2Nkan.js +1 -0
  1016. package/dist/assets/vagrant-BTikYs9I.js +1 -0
  1017. package/dist/assets/vala-CRcDP5UV.js +1 -0
  1018. package/dist/assets/vala-CsfeWuGM.js +1 -0
  1019. package/dist/assets/vanilla-extract-DTxT8YYu.js +1 -0
  1020. package/dist/assets/varnish-BcGfeU0p.js +1 -0
  1021. package/dist/assets/vb-Cu-pLBUe.js +1 -0
  1022. package/dist/assets/vedic-D5QDaQ71.js +1 -0
  1023. package/dist/assets/velite-TnCAItFD.js +1 -0
  1024. package/dist/assets/velocity-CwKWeOGl.js +1 -0
  1025. package/dist/assets/vercel-nnWdWFuX.js +1 -0
  1026. package/dist/assets/vercel_light-CAzzCX1W.js +1 -0
  1027. package/dist/assets/verdaccio-BnlaHIwR.js +1 -0
  1028. package/dist/assets/verified-DAXBuqS_.js +1 -0
  1029. package/dist/assets/verilog-BYNPrH-T.js +1 -0
  1030. package/dist/assets/verilog-nZwndyjY.js +1 -0
  1031. package/dist/assets/verse-D9Jaw3ic.js +1 -0
  1032. package/dist/assets/verse_light-CbLNSu3V.js +1 -0
  1033. package/dist/assets/vesper-DRje8inN.js +1 -0
  1034. package/dist/assets/vesper-XBdv8qqG.js +1 -0
  1035. package/dist/assets/vfl-CJAbpw4G.js +1 -0
  1036. package/dist/assets/vhdl-CeAyd5Ju.js +1 -0
  1037. package/dist/assets/video-DLhvWfNd.js +1 -0
  1038. package/dist/assets/vim-BHrTFrqL.js +1 -0
  1039. package/dist/assets/viml-CJc9bBzg.js +1 -0
  1040. package/dist/assets/virtual-TqA3dcaa.js +1 -0
  1041. package/dist/assets/visualstudio-CTvLVY4z.js +1 -0
  1042. package/dist/assets/vite-DY0w42jz.js +1 -0
  1043. package/dist/assets/vitesse-black-Bkuqu6BP.js +1 -0
  1044. package/dist/assets/vitesse-black-Dax7f9LR.js +1 -0
  1045. package/dist/assets/vitesse-dark-CC8sM7O4.js +1 -0
  1046. package/dist/assets/vitesse-dark-D0r3Knsf.js +1 -0
  1047. package/dist/assets/vitesse-light-CVO1_9PV.js +1 -0
  1048. package/dist/assets/vitesse-light-DngnB9Ap.js +1 -0
  1049. package/dist/assets/vitest-i44Gcf_F.js +1 -0
  1050. package/dist/assets/vlang-K_acwrKH.js +1 -0
  1051. package/dist/assets/vscode-CPfgSJNd.js +1 -0
  1052. package/dist/assets/vue-Bzkmc0oY.js +1 -0
  1053. package/dist/assets/vue-DSqPwMUe.js +1 -0
  1054. package/dist/assets/vue-config-CtYpjv8n.js +1 -0
  1055. package/dist/assets/vue-html-AaS7Mt5G.js +1 -0
  1056. package/dist/assets/vue-vine-C0RcJ6UU.js +1 -0
  1057. package/dist/assets/vuex-store-DCQ47Xpg.js +1 -0
  1058. package/dist/assets/vyper-CDx5xZoG.js +1 -0
  1059. package/dist/assets/wakatime-D32aN5Nj.js +1 -0
  1060. package/dist/assets/wakatime_light-DYHDf_Fb.js +1 -0
  1061. package/dist/assets/wallaby-DmtRLjTC.js +1 -0
  1062. package/dist/assets/wally-Czk2cVHi.js +1 -0
  1063. package/dist/assets/warp-bCChRRcb.js +1 -0
  1064. package/dist/assets/warp_light-3C5QL5Jh.js +1 -0
  1065. package/dist/assets/wasm-Cey7Y6ql.js +1 -0
  1066. package/dist/assets/wasm-MzD3tlZU.js +1 -0
  1067. package/dist/assets/watchman-BBzhvW7q.js +1 -0
  1068. package/dist/assets/webassembly-DKWgsl-1.js +1 -0
  1069. package/dist/assets/webhint-e2wxeSzF.js +1 -0
  1070. package/dist/assets/webpack-BokQqAJA.js +1 -0
  1071. package/dist/assets/wenyan-BV7otONQ.js +1 -0
  1072. package/dist/assets/wepy-pzrt869D.js +1 -0
  1073. package/dist/assets/werf-BvdCQyOw.js +1 -0
  1074. package/dist/assets/wgsl-Dx-B1_4e.js +1 -0
  1075. package/dist/assets/wikitext-BhOHFoWU.js +1 -0
  1076. package/dist/assets/windicss-CpPbDU-_.js +1 -0
  1077. package/dist/assets/wit-5i3qLPDT.js +1 -0
  1078. package/dist/assets/wolfram-lXgVvXCa.js +1 -0
  1079. package/dist/assets/wolframlanguage-wsq5kDAa.js +1 -0
  1080. package/dist/assets/word-BtZ7qxXr.js +1 -0
  1081. package/dist/assets/wrangler-D5ad_QWA.js +1 -0
  1082. package/dist/assets/wxt-zGERCYAl.js +1 -0
  1083. package/dist/assets/xaml-P0xVLetJ.js +1 -0
  1084. package/dist/assets/xmake-BWREnQt2.js +1 -0
  1085. package/dist/assets/xml-sdJ4AIDG.js +1 -0
  1086. package/dist/assets/xml-yoWXa9Oi.js +1 -0
  1087. package/dist/assets/xsl-CtQFsRM5.js +1 -0
  1088. package/dist/assets/yaml-Buea-lGh.js +1 -0
  1089. package/dist/assets/yaml-CUsJXjy0.js +1 -0
  1090. package/dist/assets/yang-BM1tXpSV.js +1 -0
  1091. package/dist/assets/yarn-DVjHNA2t.js +1 -0
  1092. package/dist/assets/zeabur-ptXTs61B.js +1 -0
  1093. package/dist/assets/zeabur_light-BCvG35Tq.js +1 -0
  1094. package/dist/assets/zenscript-DVFEvuxE.js +1 -0
  1095. package/dist/assets/zig-CFfxTC_v.js +1 -0
  1096. package/dist/assets/zig-VOosw3JB.js +1 -0
  1097. package/dist/assets/zip-DKctXltq.js +1 -0
  1098. package/dist/assets/zizmor-ChQkApnp.js +1 -0
  1099. package/dist/index.html +14 -0
  1100. package/dist-node/agentSetup.js +45 -0
  1101. package/dist-node/cli.js +167 -0
  1102. package/dist-node/pixel.js +14 -0
  1103. package/dist-node/rexPane.js +38 -0
  1104. package/dist-node/rexTarget.js +43 -0
  1105. package/dist-node/server.js +544 -0
  1106. package/dist-node/shared/cliArgs.js +40 -0
  1107. package/dist-node/shared/review.js +59 -0
  1108. package/dist-node/upgrade.js +157 -0
  1109. package/hosts/pixel/README.md +28 -0
  1110. package/hosts/pixel/dist/main.js +62 -0
  1111. package/hosts/pixel/dist/terminal.js +8 -0
  1112. package/hosts/pixel/dist/tree-compat.js +18 -0
  1113. package/hosts/pixel/dist/url.js +8 -0
  1114. package/hosts/pixel/dist/zoom.js +8 -0
  1115. package/local-diff.lua +41 -0
  1116. package/package.json +70 -4
  1117. package/skills/local-diff/SKILL.md +32 -0
@@ -0,0 +1,1359 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/materialIcons-0T6AU0ht.js","assets/index-B8iDgboq.js","assets/index-2LWb-8Wc.css"])))=>i.map(i=>d[i]);
2
+ var rp=Object.defineProperty;var Ec=t=>{throw TypeError(t)};var ip=(t,e,n)=>e in t?rp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var D=(t,e,n)=>ip(t,typeof e!="symbol"?e+"":e,n),Ll=(t,e,n)=>e.has(t)||Ec("Cannot "+n);var c=(t,e,n)=>(Ll(t,e,"read from private field"),n?n.call(t):e.get(t)),H=(t,e,n)=>e.has(t)?Ec("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),E=(t,e,n,r)=>(Ll(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),x=(t,e,n)=>(Ll(t,e,"access private method"),n);import{j as q,C as jd,k as si,G as op,l as qd,m as ji,n as sp,r as lp,o as ap,e as cp,D as sl,p as $e,q as zi,H as Jl,s as up,t as Ac,v as Ud,w as dp,x as Rc,y as Pc,z as Wd,B as hp,E as Mc,F as Dc,I as fp,J as pp,h as qi,K as Lc,L as gp,M as Gd,N as mp,O as Kd,P as bp,Q as Nc,S as yp,T as Yd,U as vp,V as Sp,W as Fc,X as xp,Y as zc,Z as wp,$ as Cp,a0 as Ip,a1 as kp,a2 as _p,a3 as Tp,a4 as Ep,a5 as Ap,a6 as Rp,a7 as Oc,a8 as Pp,a9 as Mp,aa as Dp,ab as Lp,ac as Np,ad as Fp,ae as zp,af as Op,ag as Hp,ah as Hc,ai as Vp,aj as Bp,ak as $p,al as jp,am as qp,an as Up,ao as Xd,ap as Vc,aq as Rs,ar as Bc,as as Wp,at as Gp,au as Kp,av as Y,aw as Yp,ax as Xp,ay as Ps,az as Zp,aA as Qp,aB as $c,aC as Jp,aD as eg,_ as tg,aE as ng,aF as We,aG as rg,aH as Ge,aI as ig}from"./index-B8iDgboq.js";function og({file:t,renderCustomHeader:e,renderHeaderPrefix:n,renderHeaderFilenameSuffix:r,renderHeaderMetadata:i,renderAnnotation:o,lineAnnotations:s,renderGutterUtility:l,getHoveredLine:a,getAnnotationSlotName:d=si}){const u=e==null?void 0:e(t),h=n==null?void 0:n(t),g=r==null?void 0:r(t),f=i==null?void 0:i(t);return q.jsxs(q.Fragment,{children:[u!=null?q.jsx("div",{slot:jd,children:u}):q.jsxs(q.Fragment,{children:[h!=null&&q.jsx("div",{slot:"header-prefix",children:h}),g!=null&&q.jsx("div",{slot:"header-filename-suffix",children:g}),f!=null&&q.jsx("div",{slot:"header-metadata",children:f})]}),o!=null&&(s==null?void 0:s.map((m,y)=>q.jsx("div",{slot:d(m),children:o(m,t)},y))),l!=null&&q.jsx("div",{slot:"gutter-utility-slot",style:op,children:l(a)})]})}function Sr(t,e){return qd(t.theme,e.theme)&&t.useTokenTransformer===e.useTokenTransformer&&t.tokenizeMaxLineLength===e.tokenizeMaxLineLength}function qs(t){return(t.lang??ji(t.name))==="text"}const jc=10,qc=13,sg=4,lg=40;function ag(t){const e=[0];let n=t.indexOf("\r"),r=t.indexOf(`
3
+ `),i=0,o=0;for(;n!==-1||r!==-1;){let s;if(n!==-1&&(r===-1||n<r)?r===n+1?(s=r+1,n=t.indexOf("\r",s),r=t.indexOf(`
4
+ `,s)):(s=n+1,n=t.indexOf("\r",s)):(s=r+1,r=t.indexOf(`
5
+ `,s)),e.push(s),++o===sg){if(s-i<=lg){for(let l=s;l<t.length;l++){const a=t.charCodeAt(l);(a===jc||a===qc)&&(a===qc&&l+1<t.length&&t.charCodeAt(l+1)===jc&&l++,e.push(l+1))}return e}i=s,o=0}}return e}function Oo(t){const e=ag(t);return Array.from({length:e.length},(n,r)=>{const i=e[r],o=e[r+1]??t.length;return t.slice(i,o)})}const cg={forcePlainText:!1};function ug(t,e,{theme:n,tokenizeMaxLineLength:r,useTokenTransformer:i},{forcePlainText:o,lazyLineAST:s=!1,startingLine:l,totalLines:a,lines:d}=cg){o?(l??(l=0),a??(a=1/0)):(l=0,a=1/0);const u=l>0||a<1/0,h={lineInfo:[]},g=o?"text":t.lang??ji(t.name),f=typeof n=="string"?e.getTheme(n).type:void 0,m=sp({theme:n,highlighter:e});h.lineInfo=C=>({type:"context",lineIndex:C-1+l,lineNumber:C+l});const y=lp(e.codeToTokens(dg(u?hg(d??Oo(t.contents),l,a):t.contents),ap(g,n,r)).tokens,{state:h,useTokenTransformer:i,lazyLineAST:s&&!o&&!i,cacheHtmlStyles:e.name==="highlights"}),v=u?new Array(l):y;return u&&cp(v,y),{code:v,themeStyles:m,baseThemeType:f}}function dg(t){return t.replace(/\r(?!\n)/g,`
6
+ `)}function hg(t,e,n){if(t.length===0)return"";const r=Math.min(e+n,t.length);return t.slice(e,r).join("")}function Ms(t,e){return e.cacheKey==null?t.file===e&&t.sourceContents===e.contents:t.cacheKey===e.cacheKey}let fg=-1;var pg=class{constructor(t={theme:sl},e=si,n,r){D(this,"options");D(this,"annotationSlotName");D(this,"onRenderUpdate");D(this,"workerManager");D(this,"__id",`file-renderer:${++fg}`);D(this,"file");D(this,"renderCache");D(this,"pendingHighlightResult");D(this,"computedLang","text");D(this,"lineAnnotations",{});D(this,"lineCache");D(this,"pendingStructuralRows");D(this,"textDocumentCache",new WeakMap);D(this,"ownedRows",new WeakSet);D(this,"editSessionActive",!1);this.options=t,this.annotationSlotName=e,this.onRenderUpdate=n,this.workerManager=r}get fileCache(){var t;return(t=this.renderCache)==null?void 0:t.file}setOptions(t){this.options=t}mergeOptions(t){this.options={...this.options,...t}}setLineAnnotations(t){this.lineAnnotations={};for(const e of t){const n=this.lineAnnotations[e.lineNumber]??[];this.lineAnnotations[e.lineNumber]=n,n.push(e)}}cleanUp(){this.endEditSession(),this.recycle(),this.workerManager=void 0,this.onRenderUpdate=void 0}beginEditSession(t,e){const{editSessionActive:n,renderCache:r}=this;if(this.editSessionActive=!0,n||(this.pendingHighlightResult=void 0),this.file=t,r==null||n&&r.file===t)return;if(n){this.clearRenderCache(),this.lineCache=void 0,this.textDocumentCache=new WeakMap;return}const{options:i}=this.getRenderOptions(t),o=r.file===t,s=e!=null&&$e(r.file,e),{result:l}=r;if(!r.highlighted||l==null||!Sr(r.options,i)||!o&&!s){this.clearRenderCache(),this.lineCache=void 0,this.textDocumentCache=new WeakMap;return}if(o)return;this.renderCache={...r,file:t,result:{...l,code:[...l.code]}};const{lineCache:a}=this;a!=null&&e!=null&&Ms(a,e)?this.lineCache={cacheKey:void 0,file:t,sourceContents:t.contents,lines:a.lines}:this.lineCache=void 0}endEditSession(t){if(this.editSessionActive=!1,this.pendingHighlightResult=void 0,this.file==null){this.clearRenderCache(),this.lineCache=void 0,this.textDocumentCache=new WeakMap;return}const{renderCache:e}=this;t==null||e==null||e.file===t||!$e(e.file,t)||(e.file=t)}editorRenderReady(){var t;return((t=this.renderCache)==null?void 0:t.options.useTokenTransformer)===!0&&this.renderCache.highlighted&&this.renderCache.result!=null}recycle(){var t;this.editSessionActive?(this.renderCache!=null&&(this.renderCache.renderRange=void 0),this.pendingHighlightResult=void 0,this.pendingStructuralRows=void 0):(this.clearRenderCache(),this.lineCache=void 0,this.textDocumentCache=new WeakMap),(t=this.workerManager)==null||t.cleanUpTasks(this),this.file=void 0}clearRenderCache(){this.pendingStructuralRows=void 0,this.renderCache=void 0,this.pendingHighlightResult=void 0}hydrate(t){var o;this.file=t;const{options:e}=this.getRenderOptions(t),n=Ds(this.getOrCreateLineCache(t).length,this.getTokenizeMaxLength());let r=(o=this.workerManager)==null?void 0:o.getFileResultCache(t);r!=null&&!Sr(e,r.options)&&(r=void 0),this.renderCache??(this.renderCache={file:t,hydrated:!0,options:e,highlighted:!n&&!qs(t),result:n||r==null?void 0:r.result,renderRange:void 0});const i=this.getHighlightWorkerManager(t);i!=null?this.renderCache.result==null&&!n&&i.highlightFileAST(this,t):zi({theme:this.getLocalHighlightTheme()})==null&&(this.computedLang=t.lang??ji(t.name),this.initializeHighlighter().catch(s=>{s instanceof Jl||this.onHighlightError(s)}))}getHighlightWorkerManager(t){const{editSessionActive:e,workerManager:n}=this;return!e&&(n==null?void 0:n.isWorkingPool())===!0&&!n.shouldHighlightOnMainThread(t)?n:void 0}cacheHighlightResult(t,e){const{editSessionActive:n,workerManager:r}=this;!n&&(r==null?void 0:r.isWorkingPool())===!0&&r.setFileResultCache(t.cacheKey,e)}getLocalHighlightTheme(){var t;return((t=this.workerManager)==null?void 0:t.getFileRenderOptions().theme)??this.options.theme??sl}getEffectiveCodeOptions(){var e;const t=((e=this.workerManager)==null?void 0:e.isWorkingPool())===!0?this.workerManager.getFileRenderOptions():void 0;return{theme:this.getLocalHighlightTheme(),tokenizeMaxLineLength:(t==null?void 0:t.tokenizeMaxLineLength)??this.options.tokenizeMaxLineLength}}getRenderOptions(t){const e=(()=>{var i;if(((i=this.workerManager)==null?void 0:i.isWorkingPool())===!0){const o=this.workerManager.getFileRenderOptions();return this.editSessionActive&&o.useTokenTransformer!==!0?{...o,useTokenTransformer:!0}:o}const{tokenizeMaxLineLength:r=1e3}=this.options;return{theme:this.getLocalHighlightTheme(),useTokenTransformer:this.editSessionActive||this.options.useTokenTransformer===!0,tokenizeMaxLineLength:r}})(),{renderCache:n}=this;return(n==null?void 0:n.result)==null?{options:e,forceHighlight:!0}:!$e(t,n.file)||!Sr(e,n.options)?{options:e,forceHighlight:!0}:{options:e,forceHighlight:!1}}getFileForNextRender(t){const{options:e}=this.getRenderOptions(t);if(this.getReadyRenderResult(t,e)!=null)return t;const{renderCache:n}=this;if(n==null)return t;if($e(n.file,t))return n.file;const r=Oo(t.contents),i=t.contents.length===0||qs(t)||Ds(r.length,this.getTokenizeMaxLength());return this.canRenderFile(t,e,i)?t:n.file}canRenderFile(t,e,n){var i;const{renderCache:r}=this;return r==null||$e(r.file,t)?!0:n?r.result==null&&r.hydrated!==!0||((i=this.workerManager)==null?void 0:i.isWorkingPool())===!0&&!this.workerManager.shouldHighlightOnMainThread(t)||zi({theme:e.theme})!=null:r.result==null&&r.hydrated!==!0?!0:this.getHighlightWorkerManager(t)!=null?!r.highlighted:zi({theme:e.theme})!=null}getOrCreateLineCache(t){let{lineCache:e}=this;return(e==null||!Ms(e,t))&&(e={cacheKey:t.cacheKey,file:t,sourceContents:t.contents,lines:Oo(t.contents)}),this.lineCache=e,e.lines}getLineCount(t){var n;const e=this.getOrCreateLineCache(t);return((n=this.textDocumentCache.get(t))==null?void 0:n.lineCount)??e.length}updateRenderCache(t,e,n=!1){this.pendingStructuralRows=void 0;const{renderCache:r}=this;if(r==null)return;const{file:i,result:o}=r;if(o==null)return;const s=n?new Map:void 0;this.pendingStructuralRows=s;const l=this.lineCache!=null&&Ms(this.lineCache,i)?this.lineCache:void 0;for(const[a,d]of t){if(s==null&&l!=null&&a<l.lines.length){const h=d.map(g=>g[2]).join("");l.lines[a]=up(l.lines[a]??"",h)}const u={type:"element",tagName:"div",properties:{"data-line":a+1,"data-line-type":"context","data-line-index":a},children:d.map(([h,g,f])=>h===0&&g===""?f===""?{type:"element",tagName:"br",properties:{},children:[]}:{type:"text",value:f}:{type:"element",tagName:"span",properties:{"data-char":h,style:`color:${g};`},children:[{type:"text",value:f}]})};this.ownedRows.add(u),s!=null?s.set(a,u):o.code[a]=u}o.baseThemeType=e,r.isDirty=!0,s==null&&l!=null&&(i.contents=l.lines.join(""),l.sourceContents=i.contents)}applyDocumentChange(t){var a;const{pendingStructuralRows:e,renderCache:n}=this;this.pendingStructuralRows=void 0;const r=this.file??(n==null?void 0:n.file);if(r==null)return;const i=n==null?void 0:n.result,o=this.lineCache!=null&&Ms(this.lineCache,r)?this.lineCache.lines:Oo(r.contents),s=Oo(t.getText());if(i!=null&&o.length!==s.length){const d=Math.min(o.length,s.length);let u=0;for(;u<d&&o[u]===s[u];)u++;let h=0;for(;h<d-u&&o[o.length-1-h]===s[s.length-1-h];)h++;const g=i.code;i.code=new Array(s.length);for(let f=0;f<u;f++)i.code[f]=g[f];for(let f=0;f<h;f++)i.code[s.length-1-f]=g[o.length-1-f];if(e!==void 0)for(const[f,m]of e)f<s.length&&(i.code[f]=m);for(let f=u;f<s.length-h;f++)(a=i.code)[f]??(a[f]=this.ownRow({type:"element",tagName:"div",properties:{"data-line":f+1,"data-line-type":"context","data-line-index":f},children:[{type:"element",tagName:"span",properties:{"data-char":0},children:[{type:"text",value:t.getLineText(f)}]}]}));for(let f=0;f<i.code.length;f++){const m=i.code[f];if((m==null?void 0:m.type)==="element"&&(m.properties["data-line"]!==f+1||m.properties["data-line-index"]!==f)){const y=this.ownedRows.has(m)?m:this.ownRow({...m,properties:{...m.properties}});y.properties["data-line"]=f+1,y.properties["data-line-index"]=f,i.code[f]=y}}n!=null&&(n.isDirty=!0)}const l=t.getText();this.lineCache={cacheKey:r.cacheKey,file:r,sourceContents:l,lines:s},this.textDocumentCache.set(r,t),r.contents=l}ownRow(t){return this.ownedRows.add(t),t}renderFile(t=this.file,e=Ac){if(this.file=t,t==null){this.pendingHighlightResult=void 0;return}let{options:n,forceHighlight:r}=this.getRenderOptions(t);const i=this.getReadyRenderResult(t,n);this.pendingHighlightResult=void 0,i!=null&&(this.renderCache={...i,file:t,renderRange:void 0},r=!1),this.renderCache??(this.renderCache={file:t,highlighted:!1,options:n,result:void 0,renderRange:void 0});const o=this.getOrCreateLineCache(t),s=t.contents.length>0,l=!s||qs(t)||Ds(o.length,this.getTokenizeMaxLength()),a=this.canRenderFile(t,n,l),d=!$e(t,this.renderCache.file),u=!Ud(this.renderCache.renderRange,e),h=this.getHighlightWorkerManager(t);if(h!=null){const g=this.renderCache.result==null&&this.renderCache.highlighted&&!l&&!d&&dp(e);a&&!g&&(l||this.renderCache.result==null||!this.renderCache.highlighted&&(d||u))&&(this.renderCache.file=t,this.renderCache.options=n,this.renderCache.highlighted=!1,(this.renderCache.result==null||d||u||r)&&(this.renderCache.result=h.getPlainFileAST(t,e.startingLine,e.totalLines,o)),this.renderCache.renderRange=e),!l&&s&&(!this.renderCache.highlighted||r)&&h.highlightFileAST(this,t)}else{this.computedLang=t.lang??ji(t.name);const g=zi(),f=g!=null&&Rc(n.theme,g),m=g!=null&&Pc(this.computedLang,g),y=!l&&m,v=Number.isFinite(e.totalLines);if(a&&g!=null&&f&&(r||l||!this.renderCache.highlighted&&y||this.renderCache.result==null)){const{result:C,options:I}=this.renderFileWithHighlighter(t,g,l||!m,v);this.renderCache={file:t,options:I,highlighted:y,result:C,renderRange:void 0},y&&this.cacheHighlightResult(t,{result:C,options:I})}(!f||!l&&!m)&&this.asyncHighlight(t,v).then(({result:C,options:I})=>{l||this.cacheHighlightResult(t,{result:C,options:I}),this.applyHighlightResult(t,C,I,!l)}).catch(C=>{C instanceof Jl||this.onHighlightError(C)})}return this.renderCache.result!=null?this.processFileResult(this.renderCache.file,e,this.renderCache.result):void 0}async asyncRender(t,e=Ac){this.file=t;const{result:n}=await this.asyncHighlight(t,Number.isFinite(e.totalLines));return this.processFileResult(t,e,n)}async asyncHighlight(t,e=!1){const n=Ds(this.getOrCreateLineCache(t).length,this.getTokenizeMaxLength());this.computedLang=n?"text":t.lang??ji(t.name);let r=zi();const i=r!=null&&Rc(this.getLocalHighlightTheme(),r),o=n||r!=null&&Pc(this.computedLang,r);return(r==null||!i||!o)&&(r=await this.initializeHighlighter()),this.renderFileWithHighlighter(t,r,n,e)}renderFileWithHighlighter(t,e,n=!1,r=!1){const{options:i}=this.getRenderOptions(t);return{result:ug(t,e,i,{forcePlainText:n,lazyLineAST:r}),options:i}}processFileResult(t,e,{code:n,themeStyles:r,baseThemeType:i}){const o=this.getLineCount(t),{disableFileHeader:s=!1}=this.options,l=[],a=Nc(),d=Math.min(e.startingLine+e.totalLines,o);let u=0;const h=Wd(e)?hp(this.lineAnnotations):void 0;h!=null&&(a.children.push(Mc("context","annotation",1)),l.push(Dc({hunkIndex:-1,lineIndex:-1,annotations:h.map(g=>this.annotationSlotName(g))})),u++);for(let g=e.startingLine;g<d;g++){const f=g+1,m=n[g];if(m==null){const v="FileRenderer.processFileResult: Line doesnt exist";throw console.error(v,{name:t.name,lineIndex:g,lineNumber:f}),new Error(v)}a.children.push(fp("context",f,`${g}`)),l.push(m),u++;const y=this.lineAnnotations[f];y!=null&&(a.children.push(Mc("context","annotation",1)),l.push(Dc({hunkIndex:0,lineIndex:f,annotations:y.map(v=>this.annotationSlotName(v))})),u++)}return a.properties.style=`grid-row: span ${u}`,{file:t,gutterAST:a.children??[],contentAST:l,preAST:this.createPreElement(o),headerAST:s?void 0:this.renderHeader(t),totalLines:o,rowCount:u,themeStyles:r,baseThemeType:i,bufferBefore:e.bufferBefore,bufferAfter:e.bufferAfter,css:""}}renderHeader(t){const{headerRenderMode:e="default",stickyHeader:n=!1}=this.options;return pp({fileOrDiff:t,mode:e,stickyHeader:n})}renderFullHTML(t){return qi(this.renderFullAST(t))}renderFullAST(t,e=[]){return e.push(Lc({tagName:"code",children:this.renderCodeAST(t),properties:{"data-code":""}})),{...t.preAST,children:e}}renderCodeAST(t){const e=Nc();return e.children=t.gutterAST,e.properties.style=`grid-row: span ${t.rowCount}`,[e,gp(t.contentAST,t.rowCount)]}renderPartialHTML(t,e=!1){return e?qi(Lc({tagName:"code",children:t,properties:{"data-code":""}})):qi(t)}initializeHighlighter(){return Gd(mp(this.computedLang,{theme:this.getLocalHighlightTheme(),preferredHighlighter:Kd(this.workerManager,this.options)}))}onHighlightSuccess(t,e,n,r=!0){this.editSessionActive||this.applyHighlightResult(t,e,n,r)}applyHighlightResult(t,e,n,r=!0){var s;const{file:i,renderCache:o}=this;i==null||o==null||!$e(t,i)||!Sr(n,this.getRenderOptions(i).options)||(o.result==null||!o.highlighted||!Sr(o.options,n)||!$e(o.file,i))&&(this.pendingHighlightResult={file:i,options:n,highlighted:r,result:e},(s=this.onRenderUpdate)==null||s.call(this))}getMatchingWorkerResultCache(t,e){var r;if(this.editSessionActive)return;const n=(r=this.workerManager)==null?void 0:r.getFileResultCache(t);if(!(n==null||!Sr(e,n.options)))return n}getReadyRenderResult(t,e){const{pendingHighlightResult:n}=this;if(n!=null&&$e(n.file,t)&&Sr(n.options,e))return n;const r=this.getMatchingWorkerResultCache(t,e);if(!(r==null||this.hasHighlightedRenderCache(t,e)))return{file:t,highlighted:!0,...r}}hasHighlightedRenderCache(t,e){const{renderCache:n}=this;return(n==null?void 0:n.result)!=null&&n.highlighted&&$e(t,n.file)&&Sr(e,n.options)}onHighlightError(t){console.error(t)}getTokenizeMaxLength(){return this.options.tokenizeMaxLength??1e5}createPreElement(t){const{disableLineNumbers:e=!1,overflow:n="scroll"}=this.options;return bp({type:"file",diffIndicators:"none",disableBackground:!0,disableLineNumbers:e,overflow:n,split:!1,totalLines:t})}};function Ds(t,e){return t>e}function gg(t,e){return t.lineNumber===e.lineNumber&&t.metadata===e.metadata}function Uc(t){return{theme:t==null?void 0:t.theme,disableLineNumbers:t==null?void 0:t.disableLineNumbers,overflow:t==null?void 0:t.overflow,themeType:t==null?void 0:t.themeType,collapsed:t==null?void 0:t.collapsed,disableFileHeader:t==null?void 0:t.disableFileHeader,disableVirtualizationBuffers:t==null?void 0:t.disableVirtualizationBuffers,stickyHeader:t==null?void 0:t.stickyHeader,preferredHighlighter:t==null?void 0:t.preferredHighlighter,useCSSClasses:t==null?void 0:t.useCSSClasses,useTokenTransformer:yp(t),tokenizeMaxLineLength:t==null?void 0:t.tokenizeMaxLineLength,tokenizeMaxLength:t==null?void 0:t.tokenizeMaxLength,unsafeCSS:t==null?void 0:t.unsafeCSS,headerRenderMode:(t==null?void 0:t.renderCustomHeader)!=null?"custom":"default"}}const mg=[""];function bg(t){const e={...t};return delete e.cacheKey,e}let yg=-1;var Zl,Zd=(Zl=class{constructor(e={theme:sl},n,r){D(this,"options");D(this,"workerManager");D(this,"requestOwnerRender");D(this,"__id",`file:${++yg}`);D(this,"type","file");D(this,"fileContainer");D(this,"spriteSVG");D(this,"pre");D(this,"code");D(this,"bufferBefore");D(this,"bufferAfter");D(this,"themeCSSStyle");D(this,"appliedThemeCSS");D(this,"hasAdoptedThemeCSS",!1);D(this,"unsafeCSSStyle");D(this,"appliedUnsafeCSS");D(this,"gutterUtilityContent");D(this,"errorWrapper");D(this,"placeHolder");D(this,"lastRenderedHeaderHTML");D(this,"cachedHeaderHTML");D(this,"appliedPreAttributes");D(this,"lastRowCount");D(this,"mounted",!1);D(this,"headerElement");D(this,"headerCustom");D(this,"headerPrefix");D(this,"headerFilenameSuffix");D(this,"headerMetadata");D(this,"fileRenderer");D(this,"resizeManager");D(this,"interactionManager");D(this,"annotationCache",new Map);D(this,"managersDirty",!1);D(this,"file");D(this,"editSession");D(this,"renderedData");D(this,"pendingData");D(this,"forceRenderOverride");D(this,"renderRange");D(this,"enabled",!0);D(this,"editor");D(this,"getAnnotationSlotName",e=>{var n;return xp((n=this.editSession)==null?void 0:n.annotations,e,si)});D(this,"handleHighlightRender",()=>{this.rerender()});D(this,"getHoveredLine",()=>this.interactionManager.getHoveredLine());var i;this.options=e,this.workerManager=n,this.requestOwnerRender=r,this.fileRenderer=new pg(e,this.getAnnotationSlotName,this.handleHighlightRender,this.workerManager),this.resizeManager=new vp,this.interactionManager=new Sp("file",Fc(e)),(i=this.workerManager)==null||i.subscribeToThemeChanges(this)}get lineAnnotations(){var e;return((e=this.renderedData)==null?void 0:e.lineAnnotations)??Yd}rerender(){const e=this.getInputFile();!this.enabled||e==null||this.requestRender()||this.render({file:e,forceRender:!0,renderRange:this.renderRange})}requestRender(){const{requestOwnerRender:e}=this;return this.editSession!=null||e==null?!1:(this.forceRenderOverride=!0,e(),!0)}get isComponentManaged(){return this.requestOwnerRender!=null}getTheme(){var e;return((e=this.workerManager)==null?void 0:e.getFileRenderOptions().theme)??this.options.theme??sl}getInputFile(){return this.file}getWorkingFile(e=this.file){var n;return((n=this.editSession)==null?void 0:n.file)??e}getRenderedFile(){var e;return(e=this.renderedData)==null?void 0:e.file}__getNextRenderData({file:e,lineAnnotations:n}){var s;const r=(s=this.editSession)==null?void 0:s.annotations;if(r!=null)return{file:e,lineAnnotations:n!=null&&this.isNewAnnotations(n)?n:r.provided};const i=this.getWorkingFile(e)??e,o=this.fileRenderer.getFileForNextRender(i);return{file:o,lineAnnotations:n!=null&&$e(o,i)?n:this.getAnnotationsForFile(o)}}getLatestAnnotations(){var e,n,r;return((e=this.pendingData)==null?void 0:e.lineAnnotations)??((r=(n=this.editSession)==null?void 0:n.annotations)==null?void 0:r.current)??this.lineAnnotations}getAnnotationsForFile(e){const{pendingData:n}=this;return n!=null&&$e(e,n.file)?n.lineAnnotations:this.lineAnnotations}adoptRenderData(e){const{pendingData:n}=this,r=n!=null&&$e(e,n.file);this.renderedData={file:e,lineAnnotations:r?n.lineAnnotations:this.lineAnnotations},r&&(this.pendingData=void 0)}isNewAnnotations(e){var r;const n=(r=this.editSession)==null?void 0:r.annotations;return e===this.getLatestAnnotations()?!1:n==null||e!==n.provided&&e!==n.current}updateInputFile(e,n){var o,s,l,a,d;if($e(this.getInputFile(),e))return!1;const r=this.editSession!=null,i=this.getLatestAnnotations();return this.file=e,r||this.editor!=null?this.installEditSession(e,r||(o=this.editor)==null?void 0:o.__getDocumentContents(e),!0):this.editSession=void 0,((s=this.editSession)==null?void 0:s.annotations)!=null&&n!=null&&(this.editSession.annotations=zc(n,si,this.editSession.annotations)),this.pendingData={file:((l=this.editSession)==null?void 0:l.file)??e,lineAnnotations:((d=(a=this.editSession)==null?void 0:a.annotations)==null?void 0:d.current)??n??i},!0}installEditSession(e,n,r=!1){var l;const i=n==null||n.name===e.name&&n.lang===e.lang&&n.contents===e.contents,o=bg(n??e),s=((l=this.editSession)==null?void 0:l.annotations)??zc(this.getLatestAnnotations(),si);this.editSession={file:o,inputFile:e,externalReplacement:r&&i,annotations:s},this.pendingData={file:o,lineAnnotations:s.current},this.fileRenderer.beginEditSession(o,i?e:void 0)}onThemeChange(){this.fileRenderer.clearRenderCache(),this.rerender()}setOptions(e){e!=null&&(this.options=e,this.cachedHeaderHTML=void 0,this.syncInteractionOptions())}syncInteractionOptions(){this.interactionManager.setOptions(Fc(this.options))}mergeOptions(e){this.options={...this.options,...e}}setThemeType(e){(this.options.themeType??"system")!==e&&(this.mergeOptions({themeType:e}),this.applyCachedThemeState(e))}applyCachedThemeState(e){if(typeof this.options.theme=="string"||this.fileContainer==null||this.appliedThemeCSS==null)return!1;const n=this.appliedThemeCSS.baseThemeType??e;return this.appliedThemeCSS.themeType===n?!1:(this.applyThemeState(this.fileContainer,this.appliedThemeCSS.themeStyles,e,this.appliedThemeCSS.baseThemeType),!0)}hasThemeChanged(){return this.appliedThemeCSS!=null&&!qd(this.appliedThemeCSS.theme,this.getTheme())}setLineAnnotations(e){var i;const n=(i=this.editSession)==null?void 0:i.annotations;if(n!=null){if(!this.isNewAnnotations(e))return;wp(n,e,si)}const r=this.getWorkingFile();r!=null&&(this.pendingData={file:r,lineAnnotations:e})}syncEditSessionAnnotationsFromEditor(e){var r;const n=(r=this.editSession)==null?void 0:r.annotations;return n==null||e===n.current?!1:(n.current=e,this.renderedData!=null&&(this.renderedData.lineAnnotations=e),this.pendingData=void 0,this.fileRenderer.setLineAnnotations(e),this.renderAnnotations(),!0)}setSelectedLines(e,n){this.interactionManager.setSelection(e,n)}setEditorActiveLine(e,n){this.interactionManager.setEditorActiveLine(e,{lineNumberOnly:n==null?void 0:n.lineNumberOnly,side:(n==null?void 0:n.side)??"additions"})}getCodeScrollLeft(){var e;return((e=this.code)==null?void 0:e.scrollLeft)??0}setCodeScrollLeft(e){this.code!=null&&(this.code.scrollLeft=e)}__getEffectiveCodeOptions(){return{...this.options,...this.fileRenderer.getEffectiveCodeOptions()}}flushManagers(){if(!this.managersDirty||this.pre==null){this.managersDirty=!1;return}const{overflow:e="scroll"}=this.options;this.interactionManager.setup(this.pre),this.resizeManager.setup(this.pre,{disableAnnotations:e==="wrap",columnVariables:this.shouldApplyColumnVariables(e)?"apply":"measure"}),this.managersDirty=!1}shouldApplyColumnVariables(e){return e==="scroll"&&this.lineAnnotations.length>0}cleanUp(e=!1){var r,i,o,s,l,a,d,u;const n=this.editor;this.emitPostRender(!0),n==null||n.cleanUp(e?"recycle":"discard"),e||(this.editor=void 0),this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.managersDirty=!1,(r=this.workerManager)==null||r.unsubscribeToThemeChanges(this),this.renderRange=void 0,this.isComponentManaged||(i=this.fileContainer)==null||i.remove(),this.fileContainer=void 0,this.mounted=!1,e||(this.renderedData=void 0,this.pendingData=void 0),this.clearAuxiliaryNodes(),(o=this.pre)==null||o.remove(),this.pre=void 0,this.code=void 0,(s=this.bufferBefore)==null||s.remove(),this.bufferBefore=void 0,(l=this.bufferAfter)==null||l.remove(),this.bufferAfter=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0,(a=this.headerElement)==null||a.remove(),this.headerElement=void 0,this.clearHeaderSlots(),this.lastRenderedHeaderHTML=void 0,e||(this.cachedHeaderHTML=void 0),(d=this.errorWrapper)==null||d.remove(),this.errorWrapper=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,(u=this.placeHolder)==null||u.remove(),this.placeHolder=void 0,e?this.fileRenderer.recycle():(this.fileRenderer.cleanUp(),this.workerManager=void 0,this.file=void 0,this.editSession=void 0),this.enabled=!1}virtualizedSetup(){var e;this.enabled=!0,(e=this.workerManager)==null||e.subscribeToThemeChanges(this)}hydrate(e){const{fileContainer:n,prerenderedHTML:r,preventEmit:i=!1,file:o,lineAnnotations:s}=e;if(!this.enabled)throw new Error("File.hydrate: attempting to call hydrate after cleaned up");if(this.fileContainer!=null)throw new Error("File.hydrate: hydrate can only be called before the instance has rendered or hydrated");this.hydrateElements(n,r);const l=this.editor!=null;l||vg(this.pre,o,this.options.collapsed)||Sg(this.headerElement,o,this.options.disableFileHeader)?this.render({...e,forceRender:l||e.forceRender,preventEmit:!0}):this.hydrationSetup({file:o,lineAnnotations:s}),i||this.emitPostRender()}hydrateElements(e,n){var r;this.fileContainer!==e&&this.emitPostRender(!0),Cp(e,n);for(const i of Array.from(((r=e.shadowRoot)==null?void 0:r.children)??[])){if(i instanceof SVGElement){this.spriteSVG=i;continue}if(i instanceof HTMLElement){if(i instanceof HTMLPreElement){this.pre=i,this.appliedPreAttributes=void 0;continue}if(i instanceof HTMLStyleElement&&i.hasAttribute("data-theme-css")){this.themeCSSStyle=i;continue}if(i instanceof HTMLStyleElement&&i.hasAttribute("data-unsafe-css")){this.unsafeCSSStyle=i,this.appliedUnsafeCSS=i.textContent;continue}if("diffsHeader"in i.dataset){this.headerElement=i,this.lastRenderedHeaderHTML=void 0;continue}}}this.pre!=null&&(this.syncCodeNodeFromPre(this.pre),this.pre.removeAttribute("data-dehydrated")),this.fileContainer=e,this.hydrateMeasuredScrollbar()}hydrationSetup({file:e,lineAnnotations:n}){this.renderedData={file:e,lineAnnotations:n??this.getLatestAnnotations()},this.pendingData=void 0,this.file=e,this.fileRenderer.setOptions(Uc(this.options)),this.syncInteractionOptions(),this.pre!=null&&(this.fileRenderer.hydrate(e),this.renderAnnotations(),this.renderGutterUtility(),this.injectUnsafeCSS(),this.managersDirty=!0,this.flushManagers())}getOrCreateLineCache(e=this.getWorkingFile()){return e!=null?this.fileRenderer.getOrCreateLineCache(e):mg}updateBuffers(e){this.pre!=null&&this.applyBuffers(this.pre,e)}syncRenderViewToEditor(){const{editor:e,fileContainer:n,renderRange:r}=this,i=this.getLatestAnnotations(),o=this.getWorkingFile();if(e==null||n==null||o==null)return;const s=u=>{var h;!this.enabled||this.editor!==e||this.fileContainer!==n||this.getWorkingFile()!==o||e.__syncRenderView({highlighter:u,fileContainer:n,file:o,lineAnnotations:i,renderRange:r,externalDocument:((h=this.editSession)==null?void 0:h.externalReplacement)===!0})},l=this.getTheme(),a=o.lang??ji(o.name),d=zi({theme:l,lang:a});d!=null?s(d):Gd({themes:Ip(l),langs:Array.from(new Set(["text",a])),preferredHighlighter:Kd(this.workerManager,this.options)}).then(s).catch(u=>{u instanceof Jl||console.error(u)})}__acknowledgeDocumentUpdate(){this.editSession!=null&&(this.editSession.externalReplacement=!1)}__acceptEditorChange(e){const{lineAnnotations:n}=e;n!=null&&this.syncEditSessionAnnotationsFromEditor(n)}emitEditChange(e){const{onEditChange:n}=this.options;n==null||n(e)}__captureDocumentSessionState(){}__attachEditor(e){if(this.editor!=null)throw new Error("File.__attachEditor: an editor is already attached");this.editor=e;const n=()=>{this.editor=void 0,this.fileRenderer.endEditSession()};try{return this.resumeEditorRendering(e),n}catch(r){throw n(),r}}__resumeEditor(e){if(this.editor!==e)throw new Error("File.__resumeEditor: editor association changed");this.resumeEditorRendering(e)}resumeEditorRendering(e){var r;if(this.editSession!=null)this.fileRenderer.beginEditSession(this.editSession.file);else{const i=this.getInputFile();i!=null&&this.installEditSession(i,e.__getDocumentContents(i))}const n=(r=this.editSession)==null?void 0:r.file;this.fileRenderer.editorRenderReady()?(n!=null&&this.fileRenderer.fileCache===n&&this.adoptRenderData(n),this.syncRenderViewToEditor()):this.rerender()}__completeEditSession(e,n){this.settleEditSession(n==="install",e)}settleEditSession(e,n){var v,C;const{editSession:r}=this;if(r==null)return;const{file:i,inputFile:o,annotations:s}=r,l=(s==null?void 0:s.provided)??this.lineAnnotations;if(this.editor!=null)throw new Error("File.__completeEditSession: detach the editor before completing the session");const a=s==null?void 0:s.current;let d,u=!1,h;if(n==null)throw new Error("File.__completeEditSession: editor is required for completion");const g={...i},f={file:g,editor:n,originalFile:o,lineAnnotations:a,originalLineAnnotations:l};Object.freeze(f);try{if(n.__emitEditComplete(f),((C=(v=this.options).onEditComplete)==null?void 0:C.call(v,f))==="accept"){if(g.cacheKey!=null&&g.cacheKey===o.cacheKey)throw new Error("File.__completeEditSession: an accepted file must not reuse the replaced file cacheKey");d=g}}catch(I){u=!0,h=I}const m=e&&d!=null?d:o,y=e&&d!=null?a??l:l;if(this.editSession=void 0,this.file=m,this.pendingData={file:m,lineAnnotations:y},this.fileRenderer.endEditSession(m),$e(this.getRenderedFile(),m)&&this.adoptRenderData(m),e&&this.fileContainer!=null&&this.rerender(),u)throw h}applyDocumentChange(e,n){var i;const r=(i=this.editSession)==null?void 0:i.file;if(r==null)throw new Error("File.applyDocumentChange: requires an active edit session");this.fileRenderer.beginEditSession(r),this.fileRenderer.applyDocumentChange(e),n!=null&&this.syncEditSessionAnnotationsFromEditor(n)}applySuspendedDocumentChange(e,n){this.editSession!=null&&(this.applyDocumentChange(e,n),this.fileRenderer.clearRenderCache())}updateRenderCache(e,n,r){var o;const i=(o=this.editSession)==null?void 0:o.file;if(i==null)throw new Error("File.updateRenderCache: requires an active edit session");this.fileRenderer.beginEditSession(i),this.fileRenderer.updateRenderCache(e,n,r==null?void 0:r.lineCountChangeInFlight)}render({file:e,fileContainer:n,forceRender:r=!1,preventEmit:i=!1,containerWrapper:o,deferManagers:s=!1,lineAnnotations:l,renderRange:a}){var _,P;if(!this.enabled)throw new Error("File.render: attempting to call render after cleaned up");r=this.forceRenderOverride??r,this.forceRenderOverride=void 0,(_=this.editor)==null||_.__postponeBgTokenizeToNextFrame();const{collapsed:d=!1,themeType:u="system"}=this.options,h=d?void 0:a,g=this.renderRange,f=this.hasThemeChanged(),m=l!=null&&(l.length>0||this.getLatestAnnotations().length>0)?this.isNewAnnotations(l):!1,y=!$e(this.getInputFile(),e);y&&this.updateInputFile(e,l);const v=this.getWorkingFile(e)??e;if(!d&&!r&&Ud(h,this.renderRange)&&!y&&!m&&!f){const L=this.applyCachedThemeState(u);return L&&this.finalizeRender(),L}this.renderRange=h,y&&(this.cachedHeaderHTML=void 0),this.fileRenderer.setOptions(Uc(this.options)),this.syncInteractionOptions(),l!=null&&this.setLineAnnotations(l);const C=this.fileRenderer.getFileForNextRender(v);this.fileRenderer.setLineAnnotations(this.getAnnotationsForFile(C));const{disableErrorHandling:I=!1,disableFileHeader:k=!1}=this.options;if(k&&(this.headerElement!=null&&(this.headerElement.remove(),this.headerElement=void 0,this.lastRenderedHeaderHTML=void 0),this.clearHeaderSlots()),n=this.getOrCreateFileContainerNode(n,o),this.applyCachedThemeState(u),d){this.removeRenderedCode(),this.clearAuxiliaryNodes();try{const L=this.fileRenderer.renderFile(v,kp);L!=null&&this.applyThemeState(n,L.themeStyles,u,L.baseThemeType),(L==null?void 0:L.headerAST)!=null&&this.applyHeaderToDOM(L.headerAST,n,L.file),this.adoptRenderData((L==null?void 0:L.file)??v),this.injectUnsafeCSS()}catch(L){if(I)throw L;console.error(L),L instanceof Error&&this.applyErrorToDOM(L,n)}return this.finalizeRender(),i||this.emitPostRender(),!0}try{const L=this.getOrCreatePreNode(n);let z=this.getRenderedFile();if(!this.canPartiallyRender(r,m,y||f||!$e(this.getRenderedFile(),v))||!this.applyPartialRender(v,g,h)){const V=this.fileRenderer.renderFile(v,h);if(V==null)return((P=this.workerManager)==null?void 0:P.isInitialized())===!1&&this.workerManager.isWorkingPool()&&this.workerManager.initialize().catch(()=>{}).then(()=>this.rerender()),!1;this.applyThemeState(n,V.themeStyles,u,V.baseThemeType),V.headerAST!=null&&this.applyHeaderToDOM(V.headerAST,n,V.file),this.applyFullRender(V,L),z=V.file}this.applyBuffers(L,h),this.injectUnsafeCSS(),z!=null&&this.adoptRenderData(z),this.renderAnnotations(),this.renderGutterUtility(),this.managersDirty=!0,s||this.flushManagers(),this.finalizeRender(),this.editor!=null&&this.syncRenderViewToEditor()}catch(L){if(I)throw L;console.error(L),L instanceof Error&&this.applyErrorToDOM(L,n)}return i||this.emitPostRender(),!0}finalizeRender(){}emitPostRender(e=!1){const{fileContainer:n,options:{onPostRender:r}}=this;if(e){if(!this.mounted||(this.mounted=!1,n==null))return;r==null||r(n,this,"unmount");return}if(n==null)return;const i=this.mounted?"update":"mount";this.mounted=!0,r==null||r(n,this,i)}removeRenderedCode(){var e,n,r,i;this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),(e=this.bufferBefore)==null||e.remove(),this.bufferBefore=void 0,(n=this.bufferAfter)==null||n.remove(),this.bufferAfter=void 0,(r=this.code)==null||r.remove(),this.code=void 0,(i=this.pre)==null||i.remove(),this.pre=void 0,this.appliedPreAttributes=void 0,this.lastRowCount=void 0}clearAuxiliaryNodes(){var e;for(const{element:n}of this.annotationCache.values())n.remove();this.annotationCache.clear(),(e=this.gutterUtilityContent)==null||e.remove(),this.gutterUtilityContent=void 0}canPartiallyRender(e,n,r){return!(e||n||r)}renderPlaceholder(e){if(this.fileContainer==null)return!1;if(this.emitPostRender(!0),this.cleanChildNodes(),this.placeHolder==null){const n=this.fileContainer.shadowRoot??this.fileContainer.attachShadow({mode:"open"});this.placeHolder=document.createElement("div"),this.placeHolder.dataset.placeholder="",n.appendChild(this.placeHolder)}return this.setPlaceholderHeight(e)}setPlaceholderHeight(e){return this.placeHolder==null?!1:(this.placeHolder.style.setProperty("height",`${e}px`),!0)}async primeHighlightCache(e=this.getInputFile()){const{workerManager:n}=this;if(e==null||n==null||!n.isWorkingPool()||e.cacheKey==null||qs(e))return;const r=this.options.tokenizeMaxLength??1e5;this.fileRenderer.getOrCreateLineCache(e).length>r||await n.primeFileHighlightCache(e).catch(i=>{_p(i)||console.error(i)})}cleanChildNodes(){var e,n,r,i,o,s,l,a,d,u,h,g,f;this.resizeManager.cleanUp(),this.interactionManager.cleanUp(),this.clearAuxiliaryNodes(),(e=this.bufferAfter)==null||e.remove(),(n=this.bufferBefore)==null||n.remove(),(r=this.code)==null||r.remove(),(i=this.errorWrapper)==null||i.remove(),(o=this.headerElement)==null||o.remove(),(s=this.headerPrefix)==null||s.remove(),(l=this.headerFilenameSuffix)==null||l.remove(),(a=this.headerMetadata)==null||a.remove(),(d=this.headerCustom)==null||d.remove(),(u=this.pre)==null||u.remove(),(h=this.spriteSVG)==null||h.remove(),(g=this.themeCSSStyle)==null||g.remove(),(f=this.unsafeCSSStyle)==null||f.remove(),this.bufferAfter=void 0,this.bufferBefore=void 0,this.code=void 0,this.errorWrapper=void 0,this.headerElement=void 0,this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0,this.pre=void 0,this.spriteSVG=void 0,this.themeCSSStyle=void 0,this.appliedThemeCSS=void 0,this.hasAdoptedThemeCSS=!1,this.unsafeCSSStyle=void 0,this.appliedUnsafeCSS=void 0,this.lastRenderedHeaderHTML=void 0,this.lastRowCount=void 0,this.mounted=!1}renderAnnotations(){if(this.isComponentManaged||this.fileContainer==null){for(const{element:i}of this.annotationCache.values())i.remove();this.annotationCache.clear();return}const e=new Map(this.annotationCache),{renderAnnotation:n}=this.options,{renderedData:r}=this;if(n!=null&&r!=null){const{file:i,lineAnnotations:o}=r;for(const[s,l]of o.entries()){const a=this.getAnnotationSlotName(l),d=`${s}-${a}`;let u=this.annotationCache.get(d);if(u==null||u.file!==i||!gg(l,u.annotation)){u==null||u.element.remove();const h=n(l,i);if(h==null)continue;u={element:Tp(a),annotation:l,file:i},u.element.appendChild(h),this.fileContainer.appendChild(u.element),this.annotationCache.set(d,u)}e.delete(d)}}for(const[i,{element:o}]of e.entries())this.annotationCache.delete(i),o.remove()}renderGutterUtility(){var i,o;const{renderGutterUtility:e}=this.options;if(this.fileContainer==null||e==null){(i=this.gutterUtilityContent)==null||i.remove(),this.gutterUtilityContent=void 0;return}const n=e(this.interactionManager.getHoveredLine);if(n!=null&&this.gutterUtilityContent!=null)return;if(n==null){(o=this.gutterUtilityContent)==null||o.remove(),this.gutterUtilityContent=void 0;return}const r=Ep();r.appendChild(n),this.fileContainer.appendChild(r),this.gutterUtilityContent=r}injectUnsafeCSS(){var r,i,o;const{unsafeCSS:e}=this.options;(r=this.pre)==null||r.toggleAttribute("data-custom-styles",!!e);const n=(i=this.fileContainer)==null?void 0:i.shadowRoot;if(n!=null){if(e==null||e===""){this.unsafeCSSStyle!=null&&(this.unsafeCSSStyle.remove(),this.unsafeCSSStyle=void 0),this.appliedUnsafeCSS=void 0;return}((o=this.unsafeCSSStyle)==null?void 0:o.parentNode)===n&&this.appliedUnsafeCSS===e||(this.unsafeCSSStyle??(this.unsafeCSSStyle=Ap()),this.unsafeCSSStyle.parentNode!==n&&n.appendChild(this.unsafeCSSStyle),this.unsafeCSSStyle.textContent=Rp(e),this.appliedUnsafeCSS=e)}}applyThemeState(e,n,r,i){var u,h,g;const o=e.shadowRoot??e.attachShadow({mode:"open"}),s=i??r,l=this.getTheme(),a=typeof l=="string"?l:{...l},d=Oc(o);if(((u=this.themeCSSStyle)==null?void 0:u.parentNode)===o&&((h=this.appliedThemeCSS)==null?void 0:h.themeStyles)===n&&this.appliedThemeCSS.themeType===s&&this.appliedThemeCSS.scrollbarGutter===d){this.appliedThemeCSS.theme=a;return}if(this.hasAdoptedThemeCSS&&((g=this.themeCSSStyle)==null?void 0:g.parentNode)===o){this.hasAdoptedThemeCSS=!1,this.appliedThemeCSS={theme:a,themeStyles:n,themeType:s,baseThemeType:i,scrollbarGutter:d};return}this.themeCSSStyle=Pp({shadowRoot:o,currentNode:this.themeCSSStyle,themeCSS:Mp(n,s,d)}),this.appliedThemeCSS=this.themeCSSStyle!=null?{theme:a,themeStyles:n,themeType:s,baseThemeType:i,scrollbarGutter:d}:void 0}hydrateMeasuredScrollbar(){var n;const e=(n=this.fileContainer)==null?void 0:n.shadowRoot;e==null||this.themeCSSStyle==null||(this.themeCSSStyle.textContent=Dp(this.themeCSSStyle.textContent??"",Oc(e)))}shouldGuardRebuildScroll(){return this.editor!=null&&Lp()}applyFullRender(e,n){var s;this.cleanupErrorWrapper(),this.applyPreNodeAttributes(n,e);const r=this.code=Np({code:this.code}),i=this.fileRenderer.renderCodeAST(e);(s=this.editor)==null||s.__captureFocusForDOMReplacement();const o=()=>{if(r.childElementCount>=2)for(let l=0;l<2;l++){const a=r.children[l],d=i[l];a.innerHTML=qi(d.children),a.style.cssText=d.properties.style}else r.innerHTML=qi(i);n.contains(r)||n.replaceChildren(r)};this.shouldGuardRebuildScroll()?Fp(n,o):o(),this.lastRowCount=e.rowCount}applyPartialRender(e,n,r){if(n==null||r==null)return!1;const{code:i}=this,o=i!=null?this.getColumns(i):void 0;if(i==null||o==null)return!1;const s=n.startingLine,l=r.startingLine,a=n.totalLines===1/0?Number.POSITIVE_INFINITY:s+n.totalLines,d=r.totalLines===1/0?Number.POSITIVE_INFINITY:l+r.totalLines,u=Math.max(s,l),h=Math.min(a,d);if(h<=u)return!1;if(!this.trimDOMToOverlap(o.gutter,u,h)||!this.trimDOMToOverlap(o.content,u,h))throw new Error("File.applyPartialRender: failed to trim to overlap");let{length:g}=o.content.children;const f=(C,I)=>{if(!(I<=0))return this.fileRenderer.renderFile(e,{startingLine:C,totalLines:I,bufferBefore:0,bufferAfter:0})},m=l<u?f(l,u-l):void 0;if(m===void 0&&l<u)return!1;const y=d===Number.POSITIVE_INFINITY?Number.POSITIVE_INFINITY:Math.max(0,d-h),v=d>h?f(h,y):void 0;return v===void 0&&d>h?!1:(this.cleanupErrorWrapper(),m!=null&&(o.gutter.insertAdjacentHTML("afterbegin",this.fileRenderer.renderPartialHTML(m.gutterAST)),o.content.insertAdjacentHTML("afterbegin",this.fileRenderer.renderPartialHTML(m.contentAST)),g+=m.rowCount),v!=null&&(o.gutter.insertAdjacentHTML("beforeend",this.fileRenderer.renderPartialHTML(v.gutterAST)),o.content.insertAdjacentHTML("beforeend",this.fileRenderer.renderPartialHTML(v.contentAST)),g+=v.rowCount),this.lastRowCount!==g&&(o.gutter.style.setProperty("grid-row",`span ${g}`),o.content.style.setProperty("grid-row",`span ${g}`),this.lastRowCount=g),!0)}getColumns(e){const n=e.children[0],r=e.children[1];if(!(!(n instanceof HTMLElement)||!(r instanceof HTMLElement)||n.dataset.gutter==null||r.dataset.content==null))return{gutter:n,content:r}}trimDOMToOverlap(e,n,r){var l,a;const i=this.getDOMBoundaryIndices(e,[n,r]),o=i.get(n)??e.children.length,s=i.get(r)??e.children.length;if(o>s)return!1;for(let d=e.children.length-1;d>=s;d-=1)(l=e.children[d])==null||l.remove();for(let d=o-1;d>=0;d-=1)(a=e.children[d])==null||a.remove();return!0}getDOMBoundaryIndices(e,n){const r=[...new Set(n)].sort((a,d)=>a-d),i=new Map;if(r.length===0)return i;let o=0,s=r[o];const{children:l}=e;s===0&&(i.set(0,0),o+=1,s=r[o]);for(let a=0;a<l.length;a+=1){const d=l[a];if(!(d instanceof HTMLElement))continue;const u=this.getLineIndexFromDOMNode(d);if(u!=null){for(;s!=null&&u>=s;)i.set(s,a),o+=1,s=r[o];if(o>=r.length)break}}for(const a of r)i.has(a)||i.set(a,l.length);return i}getLineIndexFromDOMNode(e){const n=e.dataset.lineIndex;if(n==null)return;const r=Number(n);return Number.isNaN(r)?void 0:r}applyBuffers(e,n){if(n==null||this.shouldDisableVirtualizationBuffers()){this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0);return}n.bufferBefore>0?(this.bufferBefore==null&&(this.bufferBefore=document.createElement("div"),this.bufferBefore.dataset.virtualizerBuffer="before",e.before(this.bufferBefore)),this.bufferBefore.style.setProperty("height",`${n.bufferBefore}px`),this.bufferBefore.style.setProperty("contain","strict")):this.bufferBefore!=null&&(this.bufferBefore.remove(),this.bufferBefore=void 0),n.bufferAfter>0?(this.bufferAfter==null&&(this.bufferAfter=document.createElement("div"),this.bufferAfter.dataset.virtualizerBuffer="after",e.after(this.bufferAfter)),this.bufferAfter.style.setProperty("height",`${n.bufferAfter}px`),this.bufferAfter.style.setProperty("contain","strict")):this.bufferAfter!=null&&(this.bufferAfter.remove(),this.bufferAfter=void 0)}shouldDisableVirtualizationBuffers(){return this.options.disableVirtualizationBuffers??!1}applyHeaderToDOM(e,n,r){var d,u,h,g,f,m,y;this.cleanupErrorWrapper(),(d=this.placeHolder)==null||d.remove(),this.placeHolder=void 0;const i=this.cachedHeaderHTML??qi(e);if(this.cachedHeaderHTML=i,i!==this.lastRenderedHeaderHTML){const v=document.createElement("div");v.innerHTML=i;const C=v.firstElementChild;if(!(C instanceof HTMLElement))return;this.headerElement!=null?(u=n.shadowRoot)==null||u.replaceChild(C,this.headerElement):(h=n.shadowRoot)==null||h.prepend(C),this.headerElement=C,this.lastRenderedHeaderHTML=i}if(this.isComponentManaged)return;const{renderHeaderPrefix:o,renderHeaderFilenameSuffix:s,renderCustomHeader:l,renderHeaderMetadata:a}=this.options;if(l!=null){const v=l(r)??void 0;this.headerCustom=this.upsertHeaderSlotElement(n,this.headerCustom,jd,v),(g=this.headerPrefix)==null||g.remove(),(f=this.headerFilenameSuffix)==null||f.remove(),(m=this.headerMetadata)==null||m.remove(),this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0}else{const v=(o==null?void 0:o(r))??void 0,C=(s==null?void 0:s(r))??void 0,I=(a==null?void 0:a(r))??void 0;this.headerPrefix=this.upsertHeaderSlotElement(n,this.headerPrefix,zp,v),this.headerFilenameSuffix=this.upsertHeaderSlotElement(n,this.headerFilenameSuffix,Op,C),this.headerMetadata=this.upsertHeaderSlotElement(n,this.headerMetadata,Hp,I),(y=this.headerCustom)==null||y.remove(),this.headerCustom=void 0}}clearHeaderSlots(){var e,n,r,i;(e=this.headerPrefix)==null||e.remove(),(n=this.headerFilenameSuffix)==null||n.remove(),(r=this.headerMetadata)==null||r.remove(),(i=this.headerCustom)==null||i.remove(),this.headerPrefix=void 0,this.headerFilenameSuffix=void 0,this.headerMetadata=void 0,this.headerCustom=void 0}upsertHeaderSlotElement(e,n,r,i){if(i==null){n==null||n.remove();return}const o=n??this.createHeaderSlotElement(r);return n==null&&e.appendChild(o),this.replaceHeaderSlotContent(o,i),o}replaceHeaderSlotContent(e,n){e.replaceChildren(),n instanceof Element?e.appendChild(n):e.innerText=`${n}`}createHeaderSlotElement(e){const n=document.createElement("div");return n.slot=e,n}getOrCreateFileContainerNode(e,n){var s;const{fileContainer:r}=this,i=e??r??document.createElement("diffs-container"),o=r!==i;return r!=null&&o&&((s=this.editor)==null||s.__captureFocusForDOMReplacement()),o&&this.emitPostRender(!0),this.fileContainer=i,r!=null&&o&&(this.lastRenderedHeaderHTML=void 0,this.headerElement=void 0),n!=null&&this.fileContainer.parentNode!==n&&n.appendChild(this.fileContainer),o&&this.adoptReusableShellElements(this.fileContainer),this.ensureSpriteSVG(this.fileContainer),this.fileContainer}adoptReusableShellElements(e){const{shadowRoot:n}=e;if(n!=null)for(const r of n.children)r instanceof SVGElement?this.spriteSVG??(this.spriteSVG=r):Hc(r)&&r.hasAttribute("data-theme-css")?(this.themeCSSStyle??(this.themeCSSStyle=r),this.hasAdoptedThemeCSS=!0):Hc(r)&&r.hasAttribute("data-unsafe-css")&&(this.unsafeCSSStyle??(this.unsafeCSSStyle=r),this.appliedUnsafeCSS??(this.appliedUnsafeCSS=this.options.unsafeCSS??void 0))}ensureSpriteSVG(e){const n=e.shadowRoot??e.attachShadow({mode:"open"});if(this.spriteSVG==null){const r=document.createElement("div");r.innerHTML=Vp;const i=r.firstChild;i instanceof SVGElement&&(this.spriteSVG=i)}this.spriteSVG!=null&&this.spriteSVG.parentNode!==n&&n.appendChild(this.spriteSVG)}getOrCreatePreNode(e){var r,i,o;const n=e.shadowRoot??e.attachShadow({mode:"open"});return this.pre==null?(this.pre=document.createElement("pre"),this.appliedPreAttributes=void 0,this.code=void 0,n.appendChild(this.pre)):this.pre.parentNode!==n&&((r=this.editor)==null||r.__captureFocusForDOMReplacement(),(i=e.shadowRoot)==null||i.appendChild(this.pre),this.appliedPreAttributes=void 0),(o=this.placeHolder)==null||o.remove(),this.placeHolder=void 0,this.pre}syncCodeNodeFromPre(e){this.code=void 0;for(const n of Array.from(e.children))if(n instanceof HTMLElement&&n.hasAttribute("data-code")){this.code=n;return}}applyPreNodeAttributes(e,{totalLines:n}){const{overflow:r="scroll",disableLineNumbers:i=!1}=this.options,o={type:"file",split:!1,overflow:r,disableLineNumbers:i,diffIndicators:"none",disableBackground:!0,totalLines:n};Bp(o,this.appliedPreAttributes)||($p(e,o),this.appliedPreAttributes=o)}applyErrorToDOM(e,n){var s;this.cleanupErrorWrapper(),(s=this.pre)==null||s.remove(),this.pre=void 0,this.appliedPreAttributes=void 0;const r=n.shadowRoot??n.attachShadow({mode:"open"});this.errorWrapper??(this.errorWrapper=document.createElement("div")),this.errorWrapper.dataset.errorWrapper="",this.errorWrapper.textContent="",r.appendChild(this.errorWrapper);const i=document.createElement("div");i.dataset.errorMessage="",i.innerText=e.message,this.errorWrapper.appendChild(i);const o=document.createElement("pre");o.dataset.errorStack="",o.innerText=e.stack??"No Error Stack",this.errorWrapper.appendChild(o)}cleanupErrorWrapper(){var e;(e=this.errorWrapper)==null||e.remove(),this.errorWrapper=void 0}},D(Zl,"LoadedCustomComponent",!0),Zl);function vg(t,e,n=!1){return!n&&t==null&&e!=null}function Sg(t,e,n=!1){return t==null&&e!=null&&!n}const xg=5e3,Ls=new Map;let wg=-1;function Cg(t,e){return(t.overflow??"scroll")!==(e.overflow??"scroll")||(t.collapsed??!1)!==(e.collapsed??!1)||(t.disableLineNumbers??!1)!==(e.disableLineNumbers??!1)||(t.disableFileHeader??!1)!==(e.disableFileHeader??!1)||t.unsafeCSS!==e.unsafeCSS}var Ig=class extends Zd{constructor(e,n,r=jp,i,o){super(e,i,o);D(this,"virtualizer");D(this,"metrics");D(this,"__id",`virtualized-file:${++wg}`);D(this,"renderType","virtualized");D(this,"top");D(this,"height",0);D(this,"cache",{heights:new Map,checkpoints:[],fileAnnotationHeight:0,ghostTextRows:Ls});D(this,"pendingRender");D(this,"isVisible",!1);D(this,"isSetup",!1);D(this,"layoutDirty",!0);D(this,"currentCollapsed");D(this,"onRender",e=>{const n=this.getInputFile();return this.fileContainer==null||n==null?!1:(e&&(this.top=this.getVirtualizedTop()),this.render({file:n}))});this.virtualizer=n,this.metrics=r}setMetrics(e,n=!1){const r=qp(e);!n&&Up(this.metrics,r)||(this.metrics=r,this.resetLayoutCache())}setLineAnnotations(e){this.syncLineAnnotations(e)&&(this.forceRenderOverride=!0)}syncLineAnnotations(e){return e==null||!this.isNewAnnotations(e)||e.length===0&&this.getLatestAnnotations().length===0?!1:(super.setLineAnnotations(e),!0)}syncEditSessionAnnotationsFromEditor(e){return super.syncEditSessionAnnotationsFromEditor(e)?(this.forceRenderOverride=!0,!0):!1}hasLineAnnotations(){return this.getLayoutAnnotations().some(e=>e.lineNumber>0)}hasUniformLineHeights(){const{overflow:e="scroll"}=this.options;return e==="scroll"&&!this.hasLineAnnotations()&&this.cache.heights.size===0}getLineHeight(e,n=!1){const r=this.cache.heights.get(e);if(r!=null)return r;const i=n?2:1;return this.metrics.lineHeight*i}setOptions(e){if(this.isAdvancedMode())throw new Error("VirtualizedFile.setOptions cannot be used inside CodeView. Update CodeView options instead.");if(e==null)return;const{options:n}=this,r=!Xd(n,e),i=Cg(n,e);super.setOptions(e),i&&this.resetLayoutCache(!0),r&&(this.forceRenderOverride=!0),r&&this.virtualizer.instanceChanged(this,i)}setThemeType(e){if(this.isAdvancedMode())throw new Error("VirtualizedFile.setThemeType cannot be used inside CodeView. Update CodeView options instead.");super.setThemeType(e)}resetLayoutCache(e=!1,n=!0){this.layoutDirty=!0,this.cache.fileAnnotationHeight=0,this.cache.heights.size>0&&this.cache.heights.clear(),this.cache.checkpoints.length>0&&(this.cache.checkpoints.length=0),this.cache.ghostTextRows=Ls,this.renderRange!=null&&n&&(this.renderRange=void 0),e&&this.isSimpleMode()&&this.computeApproximateSize()}applyGhostTextRows(e){const{heights:n,ghostTextRows:r}=this.cache;if(r===e)return!1;const{lineHeight:i}=this.metrics;let o=!1;for(const s of new Set([...r.keys(),...e.keys()])){const l=r.get(s)??0,a=e.get(s)??0;if(a===l)continue;const d=(n.get(s)??i)-l*i+a*i;d===i?n.delete(s):n.set(s,d),o=!0}return this.cache.ghostTextRows=e,o}reconcileHeights(){var l;let e=!1;if(this.fileContainer==null||this.getLayoutFile()==null)return this.height!==0&&(e=!0),this.height=0,e;const{overflow:n="scroll"}=this.options;this.top=this.getVirtualizedTop();const r=((l=this.editor)==null?void 0:l.__getGhostTextRows())??Ls;e=this.applyGhostTextRows(r);const i=n!=="scroll"||this.lineAnnotations.length>0||this.isResizeDebuggingEnabled();if(this.placeHolder!=null||!i&&this.cache.heights.size===0&&this.cache.fileAnnotationHeight===0)return e&&(this.computeApproximateSize(!0),this.setPlaceholderHeight(this.height)),e;const{lineHeight:o}=this.metrics;if(this.code==null)return e;const s=this.code.children[1];if(!(s instanceof HTMLElement))return e;if(this.renderRange!=null&&Wd(this.renderRange)){const a=kg(s)??0;a!==this.cache.fileAnnotationHeight&&(this.cache.fileAnnotationHeight=a,e=!0)}for(const a of s.children){if(!(a instanceof HTMLElement))continue;const d=a.dataset.lineIndex;if(d==null)continue;const u=Number(d),h=(r.get(u)??0)*o,g=this.cache.heights.get(u);if(!i&&(g==null||g===o+h))continue;let f=a.getBoundingClientRect().height+h,m=!1;a.nextElementSibling instanceof HTMLElement&&("lineAnnotation"in a.nextElementSibling.dataset||"noNewline"in a.nextElementSibling.dataset)&&("noNewline"in a.nextElementSibling.dataset&&(m=!0),f+=a.nextElementSibling.getBoundingClientRect().height);const y=this.getLineHeight(u,m);f!==y&&(e=!0,f===this.metrics.lineHeight*(m?2:1)?this.cache.heights.delete(u):this.cache.heights.set(u,f))}return(e||this.isResizeDebuggingEnabled())&&this.computeApproximateSize(!0),e}updateCodeViewLayout(e,n,r,i){const o=!$e(this.getInputFile(),e);o&&this.updateInputFile(e,i);const{pendingRenderFile:s,layoutFileChanged:l,renderedFileChanged:a,annotationsChanged:d}=this.updatePendingRender(e,i);let u=(r==null?void 0:r.resetFileLayoutCache)===!0||l;(r==null?void 0:r.metrics)!=null&&(this.metrics=r.metrics,u=!0);const{collapsed:h=!1}=this.options;return this.currentCollapsed!==h&&(this.currentCollapsed=h,u=!0),u&&this.resetLayoutCache(),o&&(this.layoutDirty=!0),!this.forceRenderOverride&&(o||a||d)&&(this.forceRenderOverride=!0),this.top=n,this.computeApproximateSize(!1,s),this.height}getLayoutFile(){var e;return((e=this.pendingRender)==null?void 0:e.file)??this.getRenderedFile()}getLayoutAnnotations(){const{pendingRender:e}=this;return e!=null?this.getAnnotationsForFile(e.file):this.lineAnnotations}getLinePosition(e){const n=this.getLayoutFile();if(n==null||e<1)return;const{disableFileHeader:r=!1,collapsed:i=!1}=this.options,o=this.fileRenderer.getLineCount(n)-1;if(i)return{top:Vc(this.metrics,r),height:0};let s=Rs(this.metrics,r);if(o<0)return{top:s,height:0};const l=Math.min(Math.max(e-1,0),o),{lineHeight:a}=this.metrics;if(s+=this.cache.fileAnnotationHeight,this.hasUniformLineHeights())return{top:s+l*a,height:a};const d=this.getLayoutCheckpointBeforeLineIndex(l);s=(d==null?void 0:d.top)??s;for(let u=(d==null?void 0:d.lineIndex)??0;u<l;u++)s+=this.getLineHeight(u,!1);return{top:s,height:this.getLineHeight(l,!1)}}getEditorViewport(){return this.virtualizer.type==="simple"?this.virtualizer.getRoot():this.virtualizer.getContainerElement()}getNumericScrollAnchor(e){const n=this.getLayoutFile();if(n==null||this.renderRange==null)return;const{disableFileHeader:r=!1,collapsed:i=!1}=this.options;if(i||this.renderRange.totalLines<=0)return;const o=this.fileRenderer.getLineCount(n)-1;if(o<0)return;const s=Rs(this.metrics,r),l=Math.min(this.renderRange.startingLine,o),a=Math.min(l+this.renderRange.totalLines-1,o);if(a<l)return;const{fileAnnotationHeight:d}=this.cache;if(this.hasUniformLineHeights()){const{lineHeight:h}=this.metrics,g=s+(l===0?d:this.renderRange.bufferBefore),f=l+Math.max(Math.ceil((e-g)/h),0);return f>a?void 0:{lineNumber:f+1,top:s+d+f*h}}let u=s+(l===0?d:this.renderRange.bufferBefore);for(let h=l;h<=a;h++){if(u>=e)return{lineNumber:h+1,top:u};u+=this.getLineHeight(h)}}getVirtualizedHeight(){return this.height}getAdvancedStickySpecs(e){const n=this.getLayoutFile();if(this.top==null||n==null)return;if(this.options.collapsed===!0)return{topOffset:this.top,height:this.height};const r=e!=null?this.computeRenderRangeFromWindow(n,this.top,e):this.renderRange;if(r==null)return;const{bufferBefore:i,bufferAfter:o,totalLines:s}=r;let l=0;if(s===0){const a=e??this.virtualizer.getWindowSpecs();this.top<a.top&&(l=o)}return{topOffset:this.top+i+l,height:this.height-(i+o)}}cleanUp(e=!1){var i;const n=this.cache.ghostTextRows.size>0;n&&(this.layoutDirty=!0);const r=e&&this.isAdvancedMode()&&this.fileContainer!=null&&(n||!$e(this.getRenderedFile(),this.getWorkingFile()));this.fileContainer!=null&&this.isSimpleMode()&&((i=this.getSimpleVirtualizer())==null||i.disconnect(this.fileContainer)),e||this.resetLayoutCache(),this.pendingRender=void 0,this.isSetup=!1,super.cleanUp(e),r&&this.virtualizer.instanceChanged(this,!0)}computeApproximateSize(e=!1,n=this.getLayoutFile()){var h;const r=this.isResizeDebuggingEnabled();if(!e&&!this.layoutDirty&&!r)return;const i=this.height===0;if(this.height=0,this.cache.checkpoints=[],n==null){this.layoutDirty=!1;return}this.applyGhostTextRows(((h=this.editor)==null?void 0:h.__getGhostTextRows())??Ls);const{disableFileHeader:o=!1,collapsed:s=!1}=this.options,{lineHeight:l}=this.metrics,a=this.fileRenderer.getLineCount(n);if(s){this.height+=Vc(this.metrics,o),this.layoutDirty=!1;return}const d=Rs(this.metrics,o),u=Bc(this.metrics);if(this.height+=d,this.height+=this.cache.fileAnnotationHeight,this.hasUniformLineHeights())this.height+=a*l;else for(let g=0;g<a;g++)this.addLayoutCheckpoint(g,this.height),this.height+=this.getLineHeight(g,!1);if(a>0&&(this.height+=u),this.fileContainer!=null&&r&&!i){const g=this.fileContainer.getBoundingClientRect();g.height!==this.height?console.log("VirtualizedFile.computeApproximateSize: computed height doesnt match",{name:n.name,elementHeight:g.height,computedHeight:this.height}):console.log("VirtualizedFile.computeApproximateSize: computed height IS CORRECT")}this.layoutDirty=!1}setVisibility(e){this.isAdvancedMode()||this.fileContainer==null||(this.renderRange=void 0,e&&!this.isVisible?(this.top=this.getVirtualizedTop(),this.isVisible=!0):!e&&this.isVisible&&(this.isVisible=!1,this.rerender()))}rerender(){if(!this.enabled||this.getInputFile()==null)return;const e=this.getWorkingFile(),n=e==null?void 0:this.fileRenderer.getFileForNextRender(e);this.isSimpleMode()&&(this.pendingRender=void 0),this.forceRenderOverride=!0,!(this.isSimpleMode()&&this.requestRender())&&this.virtualizer.instanceChanged(this,!$e(this.getRenderedFile(),n))}get isComponentManaged(){var e;return((e=this.getAdvancedVirtualizer())==null?void 0:e.isComponentManaged)??super.isComponentManaged}syncGhostTextRows(){var n;const e=this.getAdvancedVirtualizer();e!=null?(e.capturePendingLayoutAnchor(),this.layoutDirty=!0,e.instanceChanged(this,!0)):(n=this.getSimpleVirtualizer())==null||n.requestHeightReconcile(this)}applyDocumentChange(e,n,r=!1){var s,l;const{renderRange:i}=this;(s=this.getAdvancedVirtualizer())==null||s.capturePendingLayoutAnchor(),super.applyDocumentChange(e,n),(l=this.getSimpleVirtualizer())==null||l.markDOMDirty(),this.resetLayoutCache(this.isSimpleMode(),!1);const o=this.getRenderedFile();if(!this.isSimpleMode())this.computeApproximateSize(!0);else if(r&&i!=null&&o!=null){const a=this.virtualizer.getWindowSpecs(),d=this.computeRenderRangeFromWindow(o,this.top??0,a);d.bufferAfter!==i.bufferAfter&&this.updateBuffers(d)}this.forceRenderOverride=!0,this.virtualizer.instanceChanged(this,!0)}render({fileContainer:e,file:n,forceRender:r=!1,lineAnnotations:i,...o}){var v;const s=!$e(this.getInputFile(),n);s&&(this.updateInputFile(n,i),this.cachedHeaderHTML=void 0);const{pendingRenderFile:l,layoutFileChanged:a,renderedFileChanged:d,annotationsChanged:u}=this.pendingRender!=null&&this.pendingRender.workingFile===(this.getWorkingFile(n)??n)?{pendingRenderFile:this.pendingRender.file,layoutFileChanged:!1,renderedFileChanged:!1,annotationsChanged:this.syncLineAnnotations(i)}:this.updatePendingRender(n,i),{forceRenderOverride:h,isSetup:g}=this;if(this.forceRenderOverride=void 0,a&&this.resetLayoutCache(),e=this.getOrCreateFileContainerNode(e),g)this.top??(this.top=this.getVirtualizedTop()),this.layoutDirty&&this.isSimpleMode()&&((v=this.getSimpleVirtualizer())==null||v.markDOMDirty(),this.computeApproximateSize(!1,l));else{this.computeApproximateSize(!1,l);const C=this.getSimpleVirtualizer();if(this.top??(this.top=this.getVirtualizedTop()),this.isAdvancedMode())this.isVisible=!0;else{if(C==null)throw new Error("VirtualizedFile.render: simple virtualizer is not available");C.connect(e,this),this.isVisible=C.isInstanceVisible(this.top??0,this.height)}this.isSetup=!0}if(!this.isVisible&&this.isSimpleMode()&&(!s||!g))return this.renderPlaceholder(this.height);const f=this.virtualizer.getWindowSpecs(),m=this.top??0,y=this.computeRenderRangeFromWindow(l,m,f);return super.render({file:n,fileContainer:e,renderRange:y,lineAnnotations:i,forceRender:(h??r)||u||d||s,...o})}finalizeRender(){var e,n;if(this.getRenderedFile()!==((e=this.pendingRender)==null?void 0:e.file))throw new Error("VirtualizedFile.render: rendered a different file than its prepared layout");this.pendingRender=void 0,this.isSimpleMode()&&((n=this.getSimpleVirtualizer())==null||n.requestHeightReconcile(this))}updatePendingRender(e,n){var l;const r=this.getWorkingFile(e)??e,i=this.getRenderedFile(),o=((l=this.pendingRender)==null?void 0:l.file)??i,s=this.fileRenderer.getFileForNextRender(r);return this.pendingRender={workingFile:r,file:s},{pendingRenderFile:s,annotationsChanged:this.syncLineAnnotations(n),layoutFileChanged:!$e(o,s),renderedFileChanged:!$e(i,s)}}syncVirtualizedTop(){this.top=this.getVirtualizedTop()}shouldDisableVirtualizationBuffers(){return this.isAdvancedMode()||super.shouldDisableVirtualizationBuffers()}shouldGuardRebuildScroll(){return!1}isSimpleMode(){return this.virtualizer.type==="simple"}isAdvancedMode(){return this.virtualizer.type==="advanced"}addLayoutCheckpoint(e,n){e%xg===0&&this.cache.checkpoints.push({lineIndex:e,top:n})}getLayoutCheckpointBeforeLineIndex(e){if(e<=0||this.cache.checkpoints.length===0)return;let n=0,r=this.cache.checkpoints.length-1,i;for(;n<=r;){const o=n+r>>1,s=this.cache.checkpoints[o];if(s==null)throw new Error("VirtualizedFile: invalid checkpoint index");s.lineIndex<=e?(i=s,n=o+1):r=o-1}return i}getLayoutCheckpointBeforeTop(e,n){let r=0,i=this.cache.checkpoints.length-1,o=-1;for(;r<=i;){const s=r+i>>1,l=this.cache.checkpoints[s];if(l==null)throw new Error("VirtualizedFile: invalid checkpoint index");l.top<=e?(o=s,r=s+1):i=s-1}if(n==null)return o>=0?this.cache.checkpoints[o]:void 0;for(let s=o;s>=0;s--){const l=this.cache.checkpoints[s];if(l==null)throw new Error("VirtualizedFile: invalid checkpoint index");if(l.lineIndex%n===0)return l}}getVirtualizedTop(){return this.virtualizer.type==="advanced"?this.virtualizer.getLocalTopForInstance(this):this.fileContainer!=null?this.virtualizer.getOffsetInScrollContainer(this.fileContainer):0}getSimpleVirtualizer(){return this.virtualizer.type==="simple"?this.virtualizer:void 0}getAdvancedVirtualizer(){return this.virtualizer.type==="advanced"?this.virtualizer:void 0}isResizeDebuggingEnabled(){var e;return((e=this.getSimpleVirtualizer())==null?void 0:e.config.resizeDebugging)??!1}computeRenderRangeFromWindow(e,n,{top:r,bottom:i}){const{disableFileHeader:o=!1}=this.options,{hunkLineCount:s,lineHeight:l}=this.metrics,a=this.fileRenderer.getLineCount(e),d=this.height,u=Rs(this.metrics,o),h=a>0?Bc(this.metrics):0,{fileAnnotationHeight:g}=this.cache,f=u+g,m=Math.max(0,d-u-g-h),y=Wp(this.getLayoutAnnotations()),v=n+u,C=g>0&&y&&v<i&&v+g>r;if(n<r-d||n>i)return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:d-u-h};if(a<=s)return{startingLine:0,totalLines:s,bufferBefore:0,bufferAfter:0};const I=Math.ceil(Math.max(i-r,0)/l),k=Math.ceil(I/s)*s+s,_=k/s,P=(r+i)/2;if(this.hasUniformLineHeights()){const Ke=n+f,Ye=Ke+m;if(!C&&!(Ke<i&&Ye>r))return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:d-u-h};const ot=Math.floor(C&&P<n+f?0:(P-(n+f))/l),st=Math.floor(ot/s)-Math.floor(_/2),Ae=Math.ceil(a/s),ge=Math.max(0,Math.min(st,Ae))*s,It=st<0?k+st*s:k,lt=ge===0?0:g+ge*l,Ht=Math.min(It,a-ge);return{startingLine:ge,totalLines:It,bufferBefore:lt,bufferAfter:Math.max(0,(a-ge-Ht)*l)}}const L=_,z=[],V=this.getLayoutCheckpointBeforeTop(Math.max(0,r-n-k*l*2),s);let J=n+((V==null?void 0:V.top)??f),be=(V==null?void 0:V.lineIndex)??0,se,le,oe;const Se=(V==null?void 0:V.lineIndex)??0;for(let Ke=Se;Ke<a;Ke++){const Ye=be%s===0,ot=Math.floor(be/s);if(Ye&&(z[ot]=J-(n+f),oe!=null)){if(oe<=0)break;oe--}const st=this.getLineHeight(Ke,!1);J>r-st&&J<i&&(se??(se=ot)),J+st>P&&(le??(le=ot)),oe==null&&J>=i&&Ye&&(oe=L),be++,J+=st}if(se==null)if(C)se=0,le=0;else return{startingLine:0,totalLines:0,bufferBefore:0,bufferAfter:d-u-h};le??(le=se);const Ce=Math.round(le-_/2),K=Math.max(0,Math.ceil(a/s)-_),ue=Math.max(0,Math.min(Ce,K)),_e=ue*s,xe=Ce<0?k+Ce*s:k,Je=z[ue]??0,At=_e===0?0:g+Je,tt=ue+xe/s,ht=tt<z.length?m-z[tt]:m-(J-n-f);return{startingLine:_e,totalLines:xe,bufferBefore:At,bufferAfter:Math.max(0,ht)}}};function kg(t){let e;for(const n of t.children)n instanceof HTMLElement&&n.dataset.lineAnnotation===Gp&&(e=Math.max(e??0,n.getBoundingClientRect().height));return e}const _g=typeof window>"u"?Y.useEffect:Y.useLayoutEffect;function Tg({file:t,options:e,editorOptions:n,editStateKey:r,lineAnnotations:i,selectedLines:o,prerenderedHTML:s,metrics:l,hasGutterRenderUtility:a,hasCustomHeader:d,disableWorkerPool:u,edit:h,onEditChange:g,onEditComplete:f}){const m=Kp(),y=o!==void 0,v=Y.useContext(Yp),C=Xp(),I=Ps(K=>g==null?void 0:g(K)),k=g!=null?I:void 0,_=Y.useRef(null),P=Ps(K=>{const ue=(f==null?void 0:f(K))??"reject";return ue==="accept"&&(_.current={file:{installed:K.file,stale:K.originalFile},annotations:{installed:K.lineAnnotations,stale:K.originalLineAnnotations}}),ue}),L=f!=null?P:void 0,z=Y.useRef(null),V=Zp(),J=Eg(_,t,i),be=Qp(z,J)??{file:t,lineAnnotations:i??Yd},se=Y.useRef(null),le=Ps(()=>{if(C==null)throw new Error("File: EditContext is not attached");return C("file",n??{},r)}),oe=Ps(K=>{if(K!=null){if(z.current!=null)throw new Error("File: An instance should not already exist when a node is created");m!=null?z.current=new Ig(Nl({controlledSelection:y,hasCustomHeader:d,hasGutterRenderUtility:a,onEditChange:k,onEditComplete:L,options:e}),m,l,u?void 0:v,V):z.current=new Zd(Nl({controlledSelection:y,hasCustomHeader:d,hasGutterRenderUtility:a,onEditChange:k,onEditComplete:L,options:e}),u?void 0:v,V),h&&se.current==null&&(se.current=Wc(z.current,le)),z.current.hydrate({file:t,fileContainer:K,lineAnnotations:i,prerenderedHTML:s})}else{if(z.current==null)throw new Error("File: A File instance should exist when unmounting");z.current.cleanUp(),z.current=null,se.current=null}});_g(()=>{const{current:K}=z;if(K==null)return;const ue=Nl({controlledSelection:y,hasCustomHeader:d,hasGutterRenderUtility:a,onEditChange:k,onEditComplete:L,options:e}),_e=!Xd(K.options,ue);if(K.setOptions(ue),!h&&se.current!=null){const{current:Je}=se;se.current=null,Je()}const xe=Ag(t,i,_);K.render({file:xe.file,lineAnnotations:xe.lineAnnotations,forceRender:_e}),o!==void 0&&K.setSelectedLines(o),h&&se.current==null&&(se.current=Wc(K,le),V())});const Se=Y.useCallback(()=>{var K;return(K=z.current)==null?void 0:K.getHoveredLine()},[]),Ce=Y.useCallback(K=>{var ue;return((ue=z.current)==null?void 0:ue.getAnnotationSlotName(K))??si(K)},[]);return{...be,ref:oe,getHoveredLine:Se,getAnnotationSlotName:Ce}}function Eg(t,e,n){"use no memo";return Qd(e,n,t.current)}function Qd(t,e,n){return{file:(n==null?void 0:n.file)!=null&&$e(t,n.file.stale)?n.file.installed:t,lineAnnotations:(n==null?void 0:n.annotations)!=null&&e===n.annotations.stale?n.annotations.installed:e}}function Ag(t,e,n){var o;const{current:r}=n,i=Qd(t,e,r);return r==null||(r.file!=null&&!$e(t,r.file.stale)&&(r.file=null),e!==((o=r.annotations)==null?void 0:o.stale)&&(r.annotations=null),r.file==null&&r.annotations==null&&(n.current=null)),i}function Nl({options:t,controlledSelection:e,hasCustomHeader:n,hasGutterRenderUtility:r,onEditChange:i,onEditComplete:o}){return{...t,controlledSelection:e,renderCustomHeader:n?$c:t==null?void 0:t.renderCustomHeader,renderGutterUtility:r?$c:t==null?void 0:t.renderGutterUtility,onEditChange:i,onEditComplete:o}}function Wc(t,e){const n=e();try{return n.edit(t)}catch(r){throw n.cleanUp(),r}}function Rg({file:t,lineAnnotations:e,selectedLines:n,options:r,editorOptions:i,editStateKey:o,metrics:s,className:l,style:a,renderAnnotation:d,renderCustomHeader:u,renderHeaderPrefix:h,renderHeaderFilenameSuffix:g,renderHeaderMetadata:f,prerenderedHTML:m,renderGutterUtility:y,disableWorkerPool:v=!1,edit:C=!1,onEditChange:I,onEditComplete:k}){const{ref:_,getHoveredLine:P,getAnnotationSlotName:L,file:z,lineAnnotations:V}=Tg({file:t,options:r,editorOptions:i,editStateKey:o,metrics:s,lineAnnotations:e,selectedLines:n,prerenderedHTML:m,hasGutterRenderUtility:y!=null,hasCustomHeader:u!=null,disableWorkerPool:v,edit:C,onEditChange:I,onEditComplete:k}),J=og({file:z,renderAnnotation:d,renderCustomHeader:u,renderHeaderPrefix:h,renderHeaderFilenameSuffix:g,renderHeaderMetadata:f,renderGutterUtility:y,lineAnnotations:V,getHoveredLine:P,getAnnotationSlotName:L});return q.jsx(Jp,{ref:_,className:l,style:a,children:eg(J,m)})}function qa(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var mi=qa();function Jd(t){mi=t}var ii={exec:()=>null};function ri(t){let e=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),i=e[r];return i||(i=t(r),e[r]=i),i}}function fe(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(i,o)=>{let s=typeof o=="string"?o:o.source;return s=s.replace(mt.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,e)};return r}var eh=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),mt={codeRemoveIndent:/^(?: {0,3}\t| {1,4})/gm,listInterruptsParagraph:/^ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,endingSpaceTabChar:/[ \t]$/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,leadingSpaceTab:/^[ \t]+/,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+)[ \t]*)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,blockquoteMarkerWhitespace:/^( {0,3}>)(\t[ \t]*)/gm,nestedBlockMarker:/^ {0,3}(?:(?:[*+-]|\d{1,9}[.)])(?: |$)|> ?)/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\][ \t]+\S/,listReplaceTask:/^\[[ xX]\][ \t]+/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,numericCharacterReference:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));/,numericCharacterReferenceOrAmpersand:/&#(?:(\d{1,7})|[Xx]([A-Fa-f0-9]{1,6}));|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:ri(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:ri(t=>new RegExp(`^ {0,${t}}((?:-[ ]*){3,}|(?:_[ ]*){3,}|(?:\\*[ ]*){3,})(?:\\n+|$)`)),fencesBeginRegex:ri(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:ri(t=>new RegExp(`^ {0,${t}}#{1,6}(?:\\s|$)`)),pedanticHeadingBeginRegex:ri(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:ri(t=>new RegExp(`^ {0,${t}}(?:</?(?:${Wa})(?:[ \\t]+|$|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)`,"i")),blockquoteBeginRegex:ri(t=>new RegExp(`^ {0,${t}}>`)),nestedContainerMarkers:/^(?: {0,3}(?:(?:[*+-]|\d{1,9}[.)])[ \t]+|>[ \t]?))+/},Pg=/^(?:[ \t]*(?:\n|$))+/,Mg=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Dg=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}(?:(?=`)\1`*|(?=~)\1~*) *(?=\n|$)|$)/,ds=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Lg=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ua=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Wa="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",hs=fe(" {0,3}(?:</?(?:tag)(?:[ \\t]+|\\n|/?>)|<(?:(?:script|pre|style|textarea)(?:[\\s>]|$)|!--)|<\\?|<![A-Za-z]|<!\\[CDATA\\[)").replace("tag",Wa).getRegex(),th=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |fences|blockquote|heading|hr|html|table))+?)\n {0,3}(=+|-+)[ \t]*(?:\n+|$)/,nh=fe(th).replace(/bull/g,Ua).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/\|table/g,"").replace(/html/g,hs).getRegex(),Ng=fe(th).replace(/bull/g,Ua).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/hr/g,/ {0,3}(?:(?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).replace(/html/g,hs).getRegex(),Ga=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Fg=/^[^\n]+/,Ka=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\\n]|\n(?![ \t]*\n))+/,zg=fe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<(?:\\.|[^\n<>\\])*>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Ka).replace("title",/(?:"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\\n]|\n(?!\n))*'|\((?:\\[\s\S]|[^()\\])*\))/).getRegex(),Og=fe(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Ua).getRegex(),Ya=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Hg=fe("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?:[ \\t]+|\\n|/?>|$)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!(?:script|pre|style|textarea)(?![a-z0-9-]))([a-z][a-z0-9-]*)(?:attribute)*?[ \\t]*/?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</[a-z][a-z0-9-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Ya).replace("tag",Wa).replace("attribute",/[ \t]+[a-zA-Z:_][\w.:-]*(?:[ \t]*=[ \t]*"[^"\n]*"|[ \t]*=[ \t]*'[^'\n]*'|[ \t]*=[ \t]*[^\s"'=<>`]+)?/).getRegex(),rh=t=>fe(Ga).replace("hr",ds).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html",hs).getRegex(),Vg=rh(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Bg=rh(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),$g=fe(/^( {0,3}> ?(?:(?![ \t]*(?:\n|$))(paragraph)|[^\n]*)(?:\n|$))+/).replace("paragraph",Bg).getRegex(),Xa={blockquote:$g,code:Mg,def:zg,fences:Dg,heading:Lg,hr:ds,html:Hg,lheading:nh,list:Og,newline:Pg,paragraph:Vg,table:ii,text:Fg},Gc=fe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ds).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html",hs).getRegex(),jg={...Xa,lheading:Ng,table:Gc,paragraph:fe(Ga).replace("hr",ds).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Gc).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html",hs).getRegex()},qg={...Xa,html:fe(`^ *(?:comment(?: *\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1>(?: *\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?>(?: *\\n{2,}|\\s*$))`).replace("comment",Ya).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:ii,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:fe(Ga).replace("hr",ds).replace("heading",` *#{1,6} *[^
7
+ ]`).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").replace("lheading",nh).getRegex()},Ug=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Wg=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ih=/^( {2,}|\\)\n(?!\s*$)[ \t]*/,Gg=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Hn=/[\p{P}\p{S}]/u,po=/[\s\p{P}\p{S}]/u,fs=/[^\s\p{P}\p{S}]/u,Kg=fe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,po).getRegex(),Yg=/[\p{Pi}\p{Ps}"']/u,oh=/(?!~)[\p{P}\p{S}]/u,Xg=/(?!~)[\s\p{P}\p{S}]/u,Zg=/(?:[^\s\p{P}\p{S}]|~)/u,Qg=fe(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",eh?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),sh=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Jg=fe(sh,"u").replace(/punct/g,Hn).getRegex(),e1=fe(sh,"u").replace(/punct/g,oh).getRegex(),t1=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,n1=fe(t1,"u").replace(/openQuote/g,Yg).replace(/punct/g,Hn).getRegex(),lh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",r1=fe(lh,"gu").replace(/notPunctSpace/g,fs).replace(/punctSpace/g,po).replace(/punct/g,Hn).getRegex(),i1=fe(lh,"gu").replace(/notPunctSpace/g,Zg).replace(/punctSpace/g,Xg).replace(/punct/g,oh).getRegex(),o1="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",s1=fe(o1,"gu").replace(/notPunctSpace/g,fs).replace(/punctSpace/g,po).replace(/punct/g,Hn).getRegex(),l1=fe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,fs).replace(/punctSpace/g,po).replace(/punct/g,Hn).getRegex(),a1="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",c1=fe(a1,"gu").replace(/notPunctSpace/g,fs).replace(/punctSpace/g,po).replace(/punct/g,Hn).getRegex(),u1=fe(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Hn).getRegex(),d1="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",h1=fe(d1,"gu").replace(/notPunctSpace/g,fs).replace(/punctSpace/g,po).replace(/punct/g,Hn).getRegex(),f1=fe(/\\(punct)/,"gu").replace(/punct/g,Hn).getRegex(),p1=fe(/(`+)(?:[^`]|[^`][\s\S]*?[^`])\1(?!`)|`+|\\(punct)/,"gu").replace(/punct/g,Hn).getRegex(),g1=fe(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),m1=fe(Ya).replace("(?:-->|$)","-->").getRegex(),b1=fe("^comment|^</[a-zA-Z][a-zA-Z0-9-]*\\s*>|^<[a-zA-Z][a-zA-Z0-9-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",m1).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ah=/\[(?:\\[\s\S]|[^\[\]\\])*\]/,ll=fe(/(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/).replace("brackets",ah).getRegex(),y1=fe(/^!?\[(label)\]\([ \t\n]*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?[ \t\n]*\)/).replace("label",ll).replace("href",/<(?:\\.|[^\n<>\\])*>|(?!<)[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\[\s\S]|[^"\\])*"|'(?:\\[\s\S]|[^'\\])*'|\((?:\\[\s\S]|[^)\\])*\)/).getRegex(),v1=fe(/^!?\[(label)\]\[(ref)\]/).replace("label",ll).replace("ref",Ka).getRegex(),S1=fe(/^!?\[(ref)\](?:\[\])?/).replace("ref",Ka).getRegex(),Kc=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\]){1,999}/,x1=fe(/(?:[^\[\]\\`]*(?:\[(?:brackets|\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\]))){0,999}?[^\[\]\\`]*?/).replace("brackets",ah).getRegex(),w1=fe("reflink|nolink(?!\\()","g").replace("reflink",fe(/^!?\[(label)\]\[(ref)\]/).replace("label",x1).replace("ref",Kc).getRegex()).replace("nolink",fe(/^!?\[(ref)\](?:\[\])?/).replace("ref",Kc).getRegex()).getRegex(),Yc=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,C1=/[A-Za-z0-9._+-]+@[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/,I1=fe(/(?:mailto:email|xmpp:email(?:\/[A-Za-z0-9@.]+)?)/).replace(/email/g,C1).getRegex(),Za={_backpedal:ii,anyPunctuation:f1,anyPunctuationOutsideCode:p1,autolink:g1,blockSkip:Qg,br:ih,code:Wg,del:ii,delLDelim:ii,delRDelim:ii,emStrongLDelim:Jg,emStrongRDelimAst:r1,emStrongRDelimUnd:l1,escape:Ug,link:y1,nolink:S1,punctuation:Kg,reflink:v1,reflinkSearch:w1,tag:b1,text:Gg,url:ii},k1={...Za,emStrongLDelim:n1,emStrongRDelimAst:s1,emStrongRDelimUnd:c1,link:fe(/^!?\[(label)\]\((.*?)\)/).replace("label",ll).getRegex(),reflink:fe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ll).getRegex()},ea={...Za,emStrongRDelimAst:i1,emStrongLDelim:e1,delLDelim:u1,delRDelim:h1,url:fe(/^emailProtocol|^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("emailProtocol",I1).replace("protocol",Yc).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![\w-])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:fe(/^(?:[^a-zA-Z0-9](?=emailProtocol)|(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|wwwStart|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9](?=emailProtocol)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))))/).replace("protocol",Yc).replace(/emailProtocol/g,/(?:mailto|xmpp):/).replace("wwwStart",eh?"(?<![^\\s*_~(])www\\.":"www\\.").getRegex()},_1={...ea,br:fe(ih).replace("{2,}","*").getRegex(),text:fe(ea.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ns={normal:Xa,gfm:jg,pedantic:qg},Ro={normal:Za,gfm:ea,breaks:_1,pedantic:k1},T1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Xc=t=>T1[t];function Gt(t,e){if(e){if(mt.escapeTest.test(t))return t.replace(mt.escapeReplace,Xc)}else if(mt.escapeTestNoEncode.test(t))return t.replace(mt.escapeReplaceNoEncode,Xc);return t}function E1(t){return mt.numericCharacterReference.test(t)?t.replace(mt.numericCharacterReferenceOrAmpersand,(e,n,r)=>{if(n===void 0&&r===void 0)return"&amp;";let i=n===void 0?Number.parseInt(r,16):Number.parseInt(n,10);return i===0||i>1114111||i>=55296&&i<=57343?"�":i===38?"&amp;":String.fromCodePoint(i)}):t}function Zc(t){try{t=encodeURI(t).replace(mt.percentDecode,"%")}catch{return null}return t}function Qc(t,e){var o;let n=t.replace(mt.findPipe,(s,l,a)=>{let d=!1,u=l;for(;--u>=0&&a[u]==="\\";)d=!d;return d?"|":" |"}),r=n.split(mt.splitPipe),i=0;if(r[0].trim()||r.shift(),r.length>0&&!((o=r.at(-1))!=null&&o.trim())&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(mt.slashPipe,"|");return r}function Xn(t,e,n){let r=t.length;if(r===0)return"";let i=0;for(;i<r&&t.charAt(r-i-1)===e;)i++;return t.slice(0,r-i)}function Jc(t){let e=t.split(`
8
+ `),n=e.length-1;for(;n>=0&&mt.blankLine.test(e[n]);)n--;return e.length-n<=2?t:e.slice(0,n+1).join(`
9
+ `)}function al(t){return t.trim().replace(mt.multipleSpaceGlobal," ").toLowerCase().toUpperCase().toLowerCase()}function eu(t,e){if(t.indexOf(e[0])===-1&&t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}var ao=new WeakMap;function Qa(t){let e={"*":-1,_:-1},n=-1,r=t.length;for(let i=0;i<r;i++){let o=t[i];if(o!=="*"&&o!=="_"&&o!=="~")continue;let s=i===0?`
10
+ `:t[i-1],l=i+1;for(;l<r&&t[l]===o;)l++;s!==" "&&s!==" "&&s!==`
11
+ `&&s!=="\r"&&s!=="\f"&&(o==="~"?n=i:e[o]=i),i=l-1}return{maskedSrc:t,lastPossibleEmStrongCloserIndex:e,lastPossibleDelCloserIndex:n}}function A1(t,e){let n=Qa(e),r=ao.get(t);r?r.push(n):ao.set(t,[n])}function R1(t){let e=ao.get(t);e&&(e.pop(),e.length===0&&ao.delete(t))}function ch(t,e,n){var i;let r=(i=ao.get(t))==null?void 0:i.at(-1);return r&&r.maskedSrc===e?r.lastPossibleEmStrongCloserIndex[n]:Qa(e).lastPossibleEmStrongCloserIndex[n]}function uh(t,e){var r;let n=(r=ao.get(t))==null?void 0:r.at(-1);return n&&n.maskedSrc===e?n.lastPossibleDelCloserIndex:Qa(e).lastPossibleDelCloserIndex}function Fs(t,e=0){let n=e,r="";for(let i of t)if(i===" "){let o=4-n%4;r+=" ".repeat(o),n+=o}else r+=i,n++;return r}function P1(t,e){let n="";for(let r=0;r<t.length;r++){if(t[r]==="`"){let i=e.inline.code.exec(t.slice(r));if(i){n+=i[0],r+=i[0].length-1;continue}}if(t[r]==="\\"&&(t[r+1]==="["||t[r+1]==="]")){n+=t[r+1],r++;continue}n+=t[r]}return n}function tu(t,e,n,r,i){let o=e.href,s=e.title||null,l=P1(t[1],i),a=t[0].charAt(0)==="!",d=r.state.inLink,u=r.state.linkEmitted,h=r.state.inRawBlock;r.state.inLink=!0,r.state.linkEmitted=!1;let g=r.inlineTokens(l),f=r.state.linkEmitted;if(r.state.linkEmitted=u,r.state.inLink=d,!a){if(f){r.state.inRawBlock=h;return}r.state.linkEmitted=!0}return{type:a?"image":"link",raw:n,href:o,title:s,text:l,tokens:g}}function M1(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let i=r[1];return e.split(`
12
+ `).map(o=>{let s=o.match(n.other.beginningSpace);if(s===null)return o;let[l]=s;return o.slice(Math.min(l.length,i.length))}).join(`
13
+ `)}function nu(t,e,n,r){if(!e.includes("<"))return!1;for(let i=0;i<e.length;i++){if(e[i]==="\\"){i++;continue}if(e[i]==="`"){let l=r.inline.code.exec(e.slice(i));if(l){i+=l[0].length-1;continue}}if(e[i]!=="<")continue;let o=t.slice(n+i),s=r.inline.tag.exec(o)||r.inline.autolink.exec(o);if(s){if(s[0].length>e.length-i)return!0;i+=s[0].length-1}}return!1}var li=class{constructor(e){D(this,"options");D(this,"rules");D(this,"lexer");this.options=e||mi}space(e){let n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){let n=this.rules.block.code.exec(e);if(n){let r=this.options.pedantic?n[0]:Jc(n[0]),i=r.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r,codeBlockStyle:"indented",text:i}}}fences(e){let n=this.rules.block.fences.exec(e);if(n){let r=n[0],i=M1(r,n[3]||"",this.rules);return n[3]!==void 0&&(i===""||i.endsWith(`
14
+ `))&&(i+=`
15
+ `),{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(e){let n=this.rules.block.heading.exec(e);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){let i=Xn(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceTabChar.test(i))&&(r=i.trim())}return{type:"heading",raw:Xn(n[0],`
16
+ `),depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){let n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:Xn(n[0],`
17
+ `)}}blockquote(e){let n=this.rules.block.blockquote.exec(e);if(n){let r=Xn(n[0],`
18
+ `).split(`
19
+ `),i="",o="",s=[];for(;r.length>0;){let l=!1,a=[],d;for(d=0;d<r.length;d++)if(this.rules.other.blockquoteStart.test(r[d]))a.push(r[d]),l=!0;else if(!l)a.push(r[d]);else break;r=r.slice(d);let u=a.join(`
20
+ `),h=u.replace(this.rules.other.blockquoteMarkerWhitespace,(m,y,v)=>v.startsWith(" ")?y+" "+v.slice(1):y+Fs(v,y.length)).replace(this.rules.other.blockquoteSetextReplace,`
21
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");i=i?`${i}
22
+ ${u}`:u,o=o?`${o}
23
+ ${h}`:h;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,s,!0),this.lexer.state.top=g,r.length===0)break;let f=s.at(-1);if((f==null?void 0:f.type)==="code"||(f==null?void 0:f.type)==="heading"||(f==null?void 0:f.type)==="hr"||(f==null?void 0:f.type)==="html"||(f==null?void 0:f.type)==="table")break;if((f==null?void 0:f.type)==="blockquote"){let m=f,y=r.join(`
24
+ `),v=m.raw+`
25
+ `+y.replace(this.rules.other.blockquoteSetextReplace2,""),C=this.blockquote(v);s[s.length-1]=C;let I=v.substring(C.raw.length).replace(/^\n/,""),k=I?I.split(`
26
+ `).length:0,_=k?r.slice(0,-k):r;if(_.length>0&&(i=`${i}
27
+ ${_.join(`
28
+ `)}`),o=o.substring(0,o.length-m.text.length)+C.text,r=r.slice(_.length),r.length>0&&this.rules.other.blockquoteStart.test(r[0]))continue;break}else if((f==null?void 0:f.type)==="list"){let m=f,y=m.raw+`
29
+ `+r.join(`
30
+ `),v=this.list(y);s[s.length-1]=v;let C=v.raw.length>m.raw.length?y.slice(m.raw.length+1,v.raw.length).split(`
31
+ `).length:0;if(C>0){let I=r.slice(0,C).join(`
32
+ `);i=`${i}
33
+ ${I}`,o=`${o}
34
+ ${I}`}if(r=r.slice(C),r.length>0&&!this.rules.other.blockquoteStart.test(r[0]))break;continue}}return{type:"blockquote",raw:i,tokens:s,text:o}}}list(e){var r;let n=this.rules.block.list.exec(e);if(n){if(!this.options.pedantic&&((r=this.lexer.state.lastToken)==null?void 0:r.type)==="text"&&!this.rules.other.listInterruptsParagraph.test(e))return;let i=e,o=()=>i.length-e.length,s=n[1].trim(),l=s.length>1,a={type:"list",raw:"",ordered:l,start:l?+s.slice(0,-1):"",loose:!1,items:[]};s=l?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=l?s:"[*+-]");let d=this.rules.other.listItemRegex(s),u=!1;for(;e;){let f=!1,m="";if(!(n=d.exec(e))||this.rules.block.hr.test(e))break;let y=o();e=e.substring(n[0].length);let v=n[2].split(`
35
+ `,1)[0],C=n[1].length,I=this.options.pedantic?Fs(v,C):v.replace(this.rules.other.leadingSpaceTab,z=>Fs(z,C)),k=e.split(`
36
+ `,1)[0],_=!I.trim(),P=0;if(this.options.pedantic?(P=2,m=I.trimStart()):_?P=C+1:(P=I.search(this.rules.other.nonSpaceChar),P=P>4?1:P,m=I.slice(P),P+=C),_&&this.rules.other.blankLine.test(k)&&(e=e.substring(k.length+1),f=!0),!f){let z=this.rules.other.nextBulletRegex(P),V=this.rules.other.hrRegex(P),J=this.rules.other.fencesBeginRegex(P),be=this.options.pedantic?this.rules.other.pedanticHeadingBeginRegex(P):this.rules.other.headingBeginRegex(P),se=this.rules.other.htmlBeginRegex(P),le=this.rules.other.blockquoteBeginRegex(P),oe=!1;for(;e;){let Se=e.split(`
37
+ `,1)[0],Ce;if(k=Se,this.options.pedantic?(k=k.replace(this.rules.other.listReplaceNesting," "),Ce=k):Ce=k.replace(this.rules.other.leadingSpaceTab,K=>Fs(K)),J.test(k)||be.test(k)||se.test(k)||le.test(k)||z.test(k)||V.test(k))break;if(Ce.search(this.rules.other.nonSpaceChar)>=P||!k.trim())m+=`
38
+ `+Ce.slice(P),oe=!1;else{if(_)break;let K=I;if(!this.options.pedantic&&!m.includes(`
39
+ `)&&!I.includes(" ")){let _e;for(;!V.test(K)&&(_e=this.rules.other.nestedBlockMarker.exec(K));)K=K.slice(_e[0].length);if(!K.trim())break}if(K.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||J.test(K)||be.test(K)||se.test(K)||V.test(K))break;if(!this.options.pedantic&&!oe){let _e=I.replace(this.rules.other.nestedContainerMarkers,"");if(this.rules.block.fences.test(_e)||this.rules.block.heading.test(_e)||this.rules.block.hr.test(_e))break}let ue=!this.options.pedantic&&/^ {0,3}(?:=+|-+) *$/.test(k)&&this.rules.block.lheading.test(`${I}
40
+ ${k}`)?` ${Ce.replace(/^ {0,3}/,"")}`:k;m+=`
41
+ `+ue,oe=!0}_=!k.trim(),e=e.substring(Se.length+1),I=Ce.slice(P)}}let L=i.slice(y,o());a.loose||(u?a.loose=!0:this.rules.other.doubleBlankLine.test(L)&&(u=!0)),a.items.push({type:"list_item",raw:L,task:!!this.options.gfm&&this.rules.other.listIsTask.test(m),loose:!1,text:m,tokens:[]})}let h=a.items.at(-1);if(h)h.raw=h.raw.trimEnd(),h.text=h.text.trimEnd();else return;a.raw=i.slice(0,o()).trimEnd();let g=[];for(let f of a.items)if(this.lexer.state.top=!1,g.push(this.lexer.inlineQueue.length),f.tokens=this.lexer.blockTokens(f.text,[]),!a.loose){let m=f.tokens.filter(v=>v.type==="space"),y=m.length>0&&m.some(v=>this.rules.other.anyLine.test(v.raw));a.loose=y}for(let f=0;f<a.items.length;f++){let m=a.items[f],y=m.tokens[0];if(m.task&&((y==null?void 0:y.type)==="text"||(y==null?void 0:y.type)==="paragraph")){m.text=m.text.replace(this.rules.other.listReplaceTask,""),y.raw=y.raw.replace(this.rules.other.listReplaceTask,""),y.text=y.text.replace(this.rules.other.listReplaceTask,"");let v=this.lexer.inlineQueue;for(let I=g[f];I<v.length;I++)if(v[I].tokens===y.tokens){v[I].src=v[I].src.replace(this.rules.other.listReplaceTask,"");break}let C=this.rules.other.listTaskCheckbox.exec(m.raw);if(C){let I={type:"checkbox",raw:C[0]+" ",checked:C[0]!=="[ ]"};m.checked=I.checked,a.loose?m.tokens[0]&&["paragraph","text"].includes(m.tokens[0].type)&&"tokens"in m.tokens[0]&&m.tokens[0].tokens?(m.tokens[0].raw=I.raw+m.tokens[0].raw,m.tokens[0].text=I.raw+m.tokens[0].text,m.tokens[0].tokens.unshift(I)):m.tokens.unshift({type:"paragraph",raw:I.raw,text:I.raw,tokens:[I]}):m.tokens.unshift(I)}}else m.task&&(m.task=!1)}if(a.loose)for(let f of a.items){f.loose=!0;for(let m of f.tokens)m.type==="text"&&(m.type="paragraph")}return a}}html(e){var r;let n=this.rules.block.html.exec(e);if(n){if(((r=this.lexer.state.lastToken)==null?void 0:r.type)==="paragraph"&&!this.rules.other.htmlBeginRegex(4).test(e))return;let i=Jc(n[0]);return{type:"html",block:!0,raw:i,pre:n[1]==="pre"||n[1]==="script"||n[1]==="style",text:i}}}def(e){let n=this.rules.block.def.exec(e);if(n){if(!this.rules.other.startAngleBracket.test(n[2])&&eu(n[2],"()")!==-1)return;let r=al(n[1]),i=n[2]?n[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",o=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):n[3];return{type:"def",tag:r,raw:Xn(n[0],`
42
+ `),href:i,title:o}}}table(e){var l;let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let r=Qc(n[1]),i=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=(l=n[3])!=null&&l.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
43
+ `):[],s={type:"table",raw:Xn(n[0],`
44
+ `),header:[],align:[],rows:[]};if(r.length===i.length){for(let a of i)this.rules.other.tableAlignRight.test(a)?s.align.push("right"):this.rules.other.tableAlignCenter.test(a)?s.align.push("center"):this.rules.other.tableAlignLeft.test(a)?s.align.push("left"):s.align.push(null);for(let a=0;a<r.length;a++)s.header.push({text:r[a],tokens:this.lexer.inline(r[a]),header:!0,align:s.align[a]});for(let a of o)s.rows.push(Qc(a,s.header.length).map((d,u)=>({text:d,tokens:this.lexer.inline(d),header:!1,align:s.align[u]})));return s}}lheading(e){let n=this.rules.block.lheading.exec(e);if(n){let r=n[1].trim();return{type:"heading",raw:Xn(n[0],`
45
+ `),depth:n[2].charAt(0)==="="?1:2,text:r,tokens:this.lexer.inline(r)}}}paragraph(e){let n=this.rules.block.paragraph.exec(e);if(n){let r=n[1].charAt(n[1].length-1)===`
46
+ `?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(e){let n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){if(e.charCodeAt(0)!==92)return;let n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(e){if(e.charCodeAt(0)!==60)return;let n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(e){if(this.lexer.state.linkParenPossible===!1)return;let n=e.charCodeAt(0);if(n!==91&&n!==33)return;let r=this.rules.inline.link.exec(e);if(r){let i=r[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&nu(e,r[1],i,this.rules))return;let o=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(o)){if(!this.rules.other.endAngleBracket.test(o))return;let d=Xn(o.slice(0,-1),"\\");if((o.length-d.length)%2===0)return}else{let d=eu(r[2],"()");if(d===-2)return;if(d>-1){let u=(r[0].indexOf("!")===0?5:4)+r[1].length+d;r[2]=r[2].substring(0,d),r[0]=r[0].substring(0,u).trim(),r[3]=""}}let s=Xn(r[0].slice(0,-1),"\\");if((r[0].length-s.length)%2===0)return;let l=r[2],a="";if(this.options.pedantic){let d=this.rules.other.pedanticHrefTitle.exec(l);d&&(l=d[1],a=d[3])}else a=r[3]?r[3].slice(1,-1):"";return l=l.trim(),this.rules.other.startAngleBracket.test(l)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(o)?l=l.slice(1):l=l.slice(1,-1)),tu(r,{href:l&&l.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(e,n){let r=e.charCodeAt(0);if(r!==91&&r!==33)return;let i;if((i=this.rules.inline.reflink.exec(e))||(i=this.rules.inline.nolink.exec(e))){let o=i[0].charAt(0)==="!"?2:1;if(!this.options.pedantic&&nu(e,i[1],o,this.rules))return;let s=n[al(i[2]||i[1])];if(!s){let l=i[0].charAt(0);return{type:"text",raw:l,text:l}}return tu(i,s,i[0],this.lexer,this.rules)}}emStrong(e,n,r=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!i||!i[1]&&!i[2]&&!i[3]&&!i[4])return;let o=i[0][0],s=r===o,l=n.length-e.length,a=l;for(;!this.options.pedantic&&a>0&&n[a-1]===o;)a--;let d=[...n.slice(Math.max(0,a-2),a)].at(-1)??"",u=d==="*"||d==="_"||!!this.rules.inline.punctuation.exec(d);a<l&&(r=d);let h=a<l?u:r==="*"||r==="_"||!!this.rules.inline.punctuation.exec(r);if(i[4]&&r.match(this.rules.other.unicodeAlphaNumeric))return;let g=i[1]||i[3]||"";if(!g||!r||h){let f=[...i[0]].length-1,m,y,v=f,C=0,I=l-a+f,k=!this.options.pedantic&&!!d.trim()&&(!!g||o==="*"&&!u);if(o!=="*"&&o!=="_")return;let _=o==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd,P=ch(this,n,o),L=n.length-e.length+f;if(P<L)return;n=n.slice(-1*e.length+f);let z=P-L;for(_.lastIndex=0;(i=_.exec(n))!==null&&!(i.index>z);){if(m=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!m)continue;if(y=[...m].length,i[3]||i[4]){v+=y;continue}else if((i[5]||i[6]||k)&&I%3&&!((I+y)%3)){if(s&&(i[5]||i[6]))break;C+=y;continue}if(v-=y,v>0)continue;y=Math.min(y,y+v+C);let V=[...i[0]][0].length,J=e.slice(0,f+i.index+V+y);if(Math.min(f,y)%2){let se=J.slice(1,-1);return{type:"em",raw:J,text:se,tokens:this.lexer.inlineTokens(se)}}let be=J.slice(2,-2);return{type:"strong",raw:J,text:be,tokens:this.lexer.inlineTokens(be)}}}}codespan(e){if(e.charCodeAt(0)!==96)return;let n=this.rules.inline.code.exec(e);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(r),o=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&o&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(e){let n=e.charCodeAt(0);if(n!==32&&n!==92&&n!==10)return;let r=this.rules.inline.br.exec(e);if(r)return{type:"br",raw:r[0]}}del(e,n,r=""){if(e.charCodeAt(0)!==126)return;let i=this.rules.inline.delLDelim.exec(e);if(i&&(!i[1]||!r||this.rules.inline.punctuation.exec(r))){let o=[...i[0]].length-1,s,l,a=o,d=this.rules.inline.delRDelim,u=uh(this,n),h=n.length-e.length+o;if(u<h)return;n=n.slice(-1*e.length+o);let g=u-h;for(d.lastIndex=0;(i=d.exec(n))!==null&&!(i.index>g);){if(s=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!s||(l=[...s].length,l!==o))continue;if(i[3]||i[4]){a+=l;continue}if(a-=l,a>0)continue;l=Math.min(l,l+a);let f=[...i[0]][0].length,m=e.slice(0,o+i.index+f+l),y=m.slice(o,-o);return{type:"del",raw:m,text:y,tokens:this.lexer.inlineTokens(y)}}}}autolink(e){if(e.charCodeAt(0)!==60)return;let n=this.rules.inline.autolink.exec(e);if(n){let r,i;return n[2]==="@"?(r=n[1],i="mailto:"+r):(r=n[1],i=r),{type:"link",raw:n[0],text:r,href:i,autolink:!0,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let n;if(n=this.rules.inline.url.exec(e)){let i,o;if(n[2]==="@")i=n[0],o="mailto:"+i;else{let s;do s=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(s!==n[0]);i=n[0],n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:i,href:o,autolink:!0,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e){let n=this.rules.inline.text.exec(e);if(n){let r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:r?n[0]:E1(n[0]),escaped:r}}}},kn,dh,ta,hh,fh,hi,wn=(hi=class{constructor(e){H(this,kn);D(this,"tokens");D(this,"options");D(this,"state");D(this,"inlineQueue");D(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||mi,this.options.tokenizer=this.options.tokenizer||new li,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,linkEmitted:!1,linkParenPossible:!0,top:!0};let n={other:mt,block:Ns.normal,inline:Ro.normal};this.options.pedantic?(n.block=Ns.pedantic,n.inline=Ro.pedantic):this.options.gfm&&(n.block=Ns.gfm,this.options.breaks?n.inline=Ro.breaks:n.inline=Ro.gfm),this.tokenizer.rules=n}static get rules(){return{block:Ns,inline:Ro}}static lex(e,n){return new hi(n).lex(e)}static lexInline(e,n){return new hi(n).inlineTokens(e)}lex(e){e=e.replace(mt.carriageReturn,`
47
+ `),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.state.inRawBlock=!1,this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],r=!1){var a,d,u;this.tokenizer.lexer=this;let i=this.state.lastToken;this.options.pedantic&&(e=e.replace(mt.tabCharGlobal," ").replace(mt.spaceLine,""));let o=1/0,s,l=this.options.gfm&&!this.options.pedantic&&this.tokenizer.paragraph===li.prototype.paragraph;for(;e;){if(e.length<o)o=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}this.state.lastToken=n.at(-1);let h;if((d=(a=this.options.extensions)==null?void 0:a.block)!=null&&d.some(f=>(h=f.call({lexer:this},e,n))?(e=e.substring(h.raw.length),n.push(h),!0):!1))continue;if(h=this.tokenizer.space(e)){e=e.substring(h.raw.length);let f=n.at(-1);h.raw.length===1&&f!==void 0?f.raw+=`
48
+ `:n.push(h);continue}if(h=this.tokenizer.code(e)){e=e.substring(h.raw.length);let f=n.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
49
+ `)?"":`
50
+ `)+h.raw,f.text+=`
51
+ `+h.text,this.inlineQueue.at(-1).src=f.text):n.push(h);continue}if(h=this.tokenizer.fences(e)){e=e.substring(h.raw.length),n.push(h);continue}if(h=this.tokenizer.heading(e)){e=e.substring(h.raw.length),n.push(h);continue}if(h=this.tokenizer.hr(e)){e=e.substring(h.raw.length),n.push(h);continue}if(h=this.tokenizer.blockquote(e)){e=e.substring(h.raw.length),n.push(h);continue}if(h=this.tokenizer.list(e)){e=e.substring(h.raw.length),n.push(h);continue}if(h=this.tokenizer.html(e)){e=e.substring(h.raw.length),n.push(h);continue}if(h=this.tokenizer.def(e)){e=e.substring(h.raw.length);let f=n.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
52
+ `)?"":`
53
+ `)+h.raw,f.text+=`
54
+ `+h.raw,this.inlineQueue.at(-1).src=f.text):(this.tokens.links[h.tag]||(this.tokens.links[h.tag]={href:h.href,title:h.title}),n.push(h));continue}if(h=this.tokenizer.table(e)){e=e.substring(h.raw.length),n.push(h);continue}if(h=this.tokenizer.lheading(e)){e=e.substring(h.raw.length),n.push(h);continue}let g=e;if((u=this.options.extensions)!=null&&u.startBlock){let f=1/0,m=e.slice(1),y;this.options.extensions.startBlock.forEach(v=>{y=v.call({lexer:this},m),typeof y=="number"&&y>=0&&(f=Math.min(f,y))}),f<1/0&&f>=0&&(g=e.substring(0,f+1))}if(this.state.top&&(h=this.tokenizer.paragraph(g))){let f=n.at(-1);(r||f===s&&l)&&(f==null?void 0:f.type)==="paragraph"?(f.raw+=(f.raw.endsWith(`
55
+ `)?"":`
56
+ `)+h.raw,f.text+=`
57
+ `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text,s=f):(n.push(h),s=h),r=g.length!==e.length,e=e.substring(h.raw.length);continue}if(h=this.tokenizer.text(e)){e=e.substring(h.raw.length);let f=n.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
58
+ `)?"":`
59
+ `)+h.raw,f.text+=`
60
+ `+h.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):n.push(h);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,this.state.lastToken=i,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}linkInText(e){if(!e.includes("["))return!1;let n=this.tokenizer.rules.inline.link;for(let r of e.matchAll(this.tokenizer.rules.inline.blockSkip))if(n.test(r[0])&&e.charAt(r.index-1)!=="!")return!0;for(let r of e.matchAll(this.tokenizer.rules.inline.reflinkSearch)){let i=r[0],o=i.lastIndexOf("[");if(!(i.charAt(0)==="!"||!Object.hasOwn(this.tokens.links,al(i.slice(o+1,-1))))&&!(o>1&&this.linkInText(i.slice(1,o-1))))return!0}return!1}inlineTokens(e,n=[]){this.tokenizer.lexer=this;let r=this.state.linkParenPossible;this.state.linkParenPossible=e.includes(")");try{return x(this,kn,dh).call(this,e,n)}finally{this.state.linkParenPossible=r}}infiniteLoopError(e){let n="Infinite loop on byte: "+e;if(this.options.silent)console.error(n);else throw new Error(n)}},kn=new WeakSet,dh=function(e,n){var o;let r=e.includes("*")||e.includes("_")||e.includes("~"),i=r||(o=this.options.hooks)!=null&&o.emStrongMask||this.tokenizer.emStrong!==li.prototype.emStrong||this.tokenizer.del!==li.prototype.del?x(this,kn,fh).call(this,e):e;if(!r)return x(this,kn,ta).call(this,e,i,n);A1(this.tokenizer,i);try{return x(this,kn,ta).call(this,e,i,n)}finally{R1(this.tokenizer)}},ta=function(e,n,r){var l,a,d;let i=!1,o="",s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}i||(o=""),i=!1;let u;if((a=(l=this.options.extensions)==null?void 0:l.inline)!=null&&a.some(f=>(u=f.call({lexer:this},e,r))?(e=e.substring(u.raw.length),r.push(u),!0):!1))continue;if(u=this.tokenizer.escape(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.tag(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.link(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(u.raw.length);let f=r.at(-1);u.type==="text"&&(f==null?void 0:f.type)==="text"?(f.raw+=u.raw,f.text+=u.text):r.push(u);continue}let h=e[0];if(h==="*"||h==="_"){let f=n.length-e.length;if(ch(this.tokenizer,n,h)<=f){let m=1;for(;m<e.length&&e.charCodeAt(m)===h.charCodeAt(0);)m++;let y=e.substring(0,m),v=r.at(-1);(v==null?void 0:v.type)==="text"&&!v.escaped?(v.raw+=y,v.text+=y):r.push({type:"text",raw:y,text:y,escaped:!1}),e=e.substring(m),o=h,i=!0;continue}}else if(h==="~"){let f=n.length-e.length;if(uh(this.tokenizer,n)<=f){let m=1;for(;m<e.length&&e.charCodeAt(m)===126;)m++;let y=e.substring(0,m),v=r.at(-1);(v==null?void 0:v.type)==="text"&&!v.escaped?(v.raw+=y,v.text+=y):r.push({type:"text",raw:y,text:y,escaped:!1}),e=e.substring(m),o=h,i=!0;continue}}if(u=this.tokenizer.emStrong(e,n,o)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.codespan(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.br(e)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.del(e,n,o)){e=e.substring(u.raw.length),r.push(u);continue}if(u=this.tokenizer.autolink(e)){e=e.substring(u.raw.length),r.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(e))){e=e.substring(u.raw.length),r.push(u);continue}let g=e;if((d=this.options.extensions)!=null&&d.startInline){let f=1/0,m=e.slice(1),y;this.options.extensions.startInline.forEach(v=>{y=v.call({lexer:this},m),typeof y=="number"&&y>=0&&(f=Math.min(f,y))}),f<1/0&&f>=0&&(g=e.substring(0,f+1))}if(u=this.tokenizer.inlineText(g)){e=e.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(o=u.raw.slice(-1)),i=!0;let f=r.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=u.raw,f.text+=u.text):r.push(u);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return r},hh=function(e){let{blockSkip:n,tag:r,autolink:i}=this.tokenizer.rules.inline,o="",s=0,l;for(n.lastIndex=0;l=n.exec(e);){let a=l.index+(l[2]?l[2].length:0),d=l.index+l[0].length;if(e.charAt(a)==="<"){let u=e.slice(a),h=r.exec(u)||i.exec(u);if(!h){n.lastIndex=a+1;continue}d=a+h[0].length,n.lastIndex=d}o+=e.slice(s,a)+"["+"a".repeat(d-a-2)+"]",s=d}return o+e.slice(s)},fh=function(e){var r,i;let n=e;if(this.tokens.links&&e.includes("[")){let o=this.tokenizer.rules.inline.reflinkSearch,s=l=>{let a=l.lastIndexOf("[");if(!Object.hasOwn(this.tokens.links,al(l.slice(a+1,-1))))return l;if(a>1&&l.charAt(0)!=="!"){let d=l.slice(1,a-1);if(this.linkInText(d))return"["+d.replace(o,s)+"]["+"a".repeat(l.length-a-2)+"]"}return"["+"a".repeat(l.length-2)+"]"};n=n.replace(o,s)}return n=n.replace(this.tokenizer.rules.inline.anyPunctuationOutsideCode,(o,s,l)=>l?"+".repeat(o.length):s?s+o.slice(s.length,-s.length).replace(/`/g,"+")+s:o),n=x(this,kn,hh).call(this,n),n=((i=(r=this.options.hooks)==null?void 0:r.emStrongMask)==null?void 0:i.call({lexer:this},n))??n,n},hi),cl=class{constructor(e){D(this,"options");D(this,"parser");this.options=e||mi}space(e){return""}code({text:e,lang:n,escaped:r}){var s;let i=(s=(n||"").match(mt.notSpaceStart))==null?void 0:s[0],o=e?e.replace(mt.endingNewline,"")+`
61
+ `:"";return i?'<pre><code class="language-'+Gt(i)+'">'+(r?o:Gt(o,!0))+`</code></pre>
62
+ `:"<pre><code>"+(r?o:Gt(o,!0))+`</code></pre>
63
+ `}blockquote({tokens:e}){return`<blockquote>
64
+ ${this.parser.parse(e)}</blockquote>
65
+ `}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:n}){return`<h${n}>${this.parser.parseInline(e)}</h${n}>
66
+ `}hr(e){return`<hr>
67
+ `}list(e){let n=e.ordered,r=e.start,i="";for(let l=0;l<e.items.length;l++){let a=e.items[l];i+=this.listitem(a)}let o=n?"ol":"ul",s=n&&r!==1?' start="'+r+'"':"";return"<"+o+s+`>
68
+ `+i+"</"+o+`>
69
+ `}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
70
+ `}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
71
+ `}table(e){let n="",r="";for(let o=0;o<e.header.length;o++)r+=this.tablecell(e.header[o]);n+=this.tablerow({text:r});let i="";for(let o=0;o<e.rows.length;o++){let s=e.rows[o];r="";for(let l=0;l<s.length;l++)r+=this.tablecell(s[l]);i+=this.tablerow({text:r})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
72
+ <thead>
73
+ `+n+`</thead>
74
+ `+i+`</table>
75
+ `}tablerow({text:e}){return`<tr>
76
+ ${e}</tr>
77
+ `}tablecell(e){let n=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+n+`</${r}>
78
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Gt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:n,text:r,tokens:i,autolink:o}){let s=o?Gt(r,!0):this.parser.parseInline(i),l=Zc(e);if(l===null)return s;e=Gt(l,o);let a='<a href="'+e+'"';return n&&(a+=' title="'+Gt(n)+'"'),a+=">"+s+"</a>",a}image({href:e,title:n,text:r,tokens:i}){i&&(r=this.parser.parseInline(i,this.parser.textRenderer));let o=Zc(e);if(o===null)return Gt(r);e=o;let s=`<img src="${Gt(e)}" alt="${Gt(r)}"`;return n&&(s+=` title="${Gt(n)}"`),s+=">",s}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Gt(e.text)}},Ja=class{constructor(){D(this,"parser")}strong({text:e,tokens:n}){return n?this.parser.parseInline(n,this):e}em({text:e,tokens:n}){return n?this.parser.parseInline(n,this):e}codespan({text:e}){return e}del({text:e,tokens:n}){return n?this.parser.parseInline(n,this):e}html({text:e}){return e}text({text:e}){return e}link({text:e,tokens:n}){return n?this.parser.parseInline(n,this):e}image({text:e,tokens:n}){return n?this.parser.parseInline(n,this):e}br(){return`
79
+ `}checkbox({raw:e}){return e}},Cn=class na{constructor(e){D(this,"options");D(this,"renderer");D(this,"textRenderer");this.options=e||mi,this.options.renderer=this.options.renderer||new cl,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ja,this.textRenderer.parser=this}static parse(e,n){return new na(n).parse(e)}static parseInline(e,n){return new na(n).parseInline(e)}parse(e){var r,i;this.renderer.parser=this;let n="";for(let o=0;o<e.length;o++){let s=e[o];if((i=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&i[s.type]){let a=s,d=this.options.extensions.renderers[a.type].call({parser:this},a);if(d!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(a.type)){n+=d===!1?"":d??"";continue}}let l=s;switch(l.type){case"space":{n+=this.renderer.space(l);break}case"hr":{n+=this.renderer.hr(l);break}case"heading":{n+=this.renderer.heading(l);break}case"code":{n+=this.renderer.code(l);break}case"table":{n+=this.renderer.table(l);break}case"blockquote":{n+=this.renderer.blockquote(l);break}case"list":{n+=this.renderer.list(l);break}case"checkbox":{n+=this.renderer.checkbox(l);break}case"html":{n+=this.renderer.html(l);break}case"def":{n+=this.renderer.def(l);break}case"paragraph":{n+=this.renderer.paragraph(l);break}case"text":{n+=this.renderer.text(l);break}default:{let a='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(a),"";throw new Error(a)}}}return n}parseInline(e,n=this.renderer){var i,o;this.renderer.parser=this;let r="";for(let s=0;s<e.length;s++){let l=e[s];if((o=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&o[l.type]){let d=this.options.extensions.renderers[l.type].call({parser:this},l);if(d!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(l.type)){r+=d===!1?"":d??"";continue}}let a=l;switch(a.type){case"escape":{r+=n.text(a);break}case"html":{r+=n.html(a);break}case"link":{r+=n.link(a);break}case"image":{r+=n.image(a);break}case"checkbox":{r+=n.checkbox(a);break}case"strong":{r+=n.strong(a);break}case"em":{r+=n.em(a);break}case"codespan":{r+=n.codespan(a);break}case"br":{r+=n.br(a);break}case"del":{r+=n.del(a);break}case"text":{r+=n.text(a);break}default:{let d='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(d),"";throw new Error(d)}}}return r}},js,Ho=(js=class{constructor(e){D(this,"options");D(this,"block");this.options=e||mi}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?wn.lex:wn.lexInline}provideParser(e=this.block){return e?Cn.parse:Cn.parseInline}},D(js,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),D(js,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),js);function xr(t,e){if(Array.isArray(e))for(let n=0;n<e.length;n++)t.push(e[n]);else t.push(e)}var D1=class{constructor(...t){D(this,"defaults",qa());D(this,"options",this.setOptions);D(this,"parse",this.parseMarkdown(!0));D(this,"parseInline",this.parseMarkdown(!1));D(this,"Parser",Cn);D(this,"Renderer",cl);D(this,"TextRenderer",Ja);D(this,"Lexer",wn);D(this,"Tokenizer",li);D(this,"Hooks",Ho);this.use(...t)}walkTokens(t,e){var r,i;let n=[];for(let o of t)switch(xr(n,e.call(this,o)),o.type){case"table":{let s=o;for(let l of s.header)xr(n,this.walkTokens(l.tokens,e));for(let l of s.rows)for(let a of l)xr(n,this.walkTokens(a.tokens,e));break}case"list":{let s=o;xr(n,this.walkTokens(s.items,e));break}default:{let s=o;(i=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&i[s.type]?this.defaults.extensions.childTokens[s.type].forEach(l=>{let a=s[l].flat(1/0);xr(n,this.walkTokens(a,e))}):s.tokens&&xr(n,this.walkTokens(s.tokens,e))}}return n}use(...t){let e=this.defaults.extensions||{renderers:Object.create(null),childTokens:Object.create(null)};return t.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let o=e.renderers[i.name];o?e.renderers[i.name]=function(...s){let l=i.renderer.apply(this,s);return l===!1&&(l=o.apply(this,s)),l}:e.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=e[i.level];o?o.unshift(i.tokenizer):e[i.level]=[i.tokenizer],i.start&&(i.level==="block"?e.startBlock?e.startBlock.push(i.start):e.startBlock=[i.start]:i.level==="inline"&&(e.startInline?e.startInline.push(i.start):e.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(e.childTokens[i.name]=i.childTokens)}),r.extensions=e),n.renderer){let i=this.defaults.renderer||new cl(this.defaults);for(let o in n.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let s=o,l=n.renderer[s],a=i[s];i[s]=(...d)=>{let u=l.apply(i,d);return u===!1&&(u=a.apply(i,d)),u===!1?"":u??""}}r.renderer=i}if(n.tokenizer){let i=this.defaults.tokenizer||new li(this.defaults);for(let o in n.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let s=o,l=n.tokenizer[s],a=i[s];i[s]=(...d)=>{let u=l.apply(i,d);return u===!1&&(u=a.apply(i,d)),u}}r.tokenizer=i}if(n.hooks){let i=this.defaults.hooks||new Ho;for(let o in n.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let s=o,l=n.hooks[s],a=i[s];Ho.passThroughHooks.has(o)?i[s]=d=>{if(i.options.async&&Ho.passThroughHooksRespectAsync.has(o))return(async()=>{let h=await l.call(i,d);return a.call(i,h)})();let u=l.call(i,d);return a.call(i,u)}:i[s]=(...d)=>{if(i.options.async)return(async()=>{let h=await l.apply(i,d);return h===!1&&(h=await a.apply(i,d)),h})();let u=l.apply(i,d);return u===!1&&(u=a.apply(i,d)),u}}r.hooks=i}if(n.walkTokens){let i=this.defaults.walkTokens,o=n.walkTokens;r.walkTokens=function(s){let l=[];return xr(l,o.call(this,s)),i&&xr(l,i.call(this,s)),l}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return wn.lex(t,e??this.defaults)}parser(t,e){return Cn.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let r={...n},i={...this.defaults,...r},o=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=t),i.async)return(async()=>{let s=i.hooks?await i.hooks.preprocess(e):e,l=await(i.hooks?await i.hooks.provideLexer(t):t?wn.lex:wn.lexInline)(s,i),a=i.hooks?await i.hooks.processAllTokens(l):l;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let d=await(i.hooks?await i.hooks.provideParser(t):t?Cn.parse:Cn.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(d):d})().catch(o);try{i.hooks&&(e=i.hooks.preprocess(e));let s=(i.hooks?i.hooks.provideLexer(t):t?wn.lex:wn.lexInline)(e,i);i.hooks&&(s=i.hooks.processAllTokens(s)),i.walkTokens&&this.walkTokens(s,i.walkTokens);let l=(i.hooks?i.hooks.provideParser(t):t?Cn.parse:Cn.parseInline)(s,i);return i.hooks&&(l=i.hooks.postprocess(l)),l}catch(s){return o(s)}}}onError(t,e){return n=>{if(n.message+=`
80
+ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error occurred:</p><pre>"+Gt(n.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(n);throw n}}},fi=new D1;function Me(t,e){return fi.parse(t,e)}Me.options=Me.setOptions=function(t){return fi.setOptions(t),Me.defaults=fi.defaults,Jd(Me.defaults),Me};Me.getDefaults=qa;Me.defaults=mi;function L1(...t){return fi.use(...t),Me.defaults=fi.defaults,Jd(Me.defaults),Me}Me.use=L1;Me.walkTokens=function(t,e){return fi.walkTokens(t,e)};Me.parseInline=fi.parseInline;Me.Parser=Cn;Me.parser=Cn.parse;Me.Renderer=cl;Me.TextRenderer=Ja;Me.Lexer=wn;Me.lexer=wn.lex;Me.Tokenizer=li;Me.Hooks=Ho;Me.parse=Me;Me.options;Me.setOptions;Me.walkTokens;Me.parseInline;Cn.parse;wn.lex;/*! @license DOMPurify 3.5.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.5.0/LICENSE */function ru(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function N1(t){if(Array.isArray(t))return t}function F1(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,i,o,s,l=[],a=!0,d=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(a=(r=o.call(n)).done)&&(l.push(r.value),l.length!==e);a=!0);}catch(u){d=!0,i=u}finally{try{if(!a&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return l}}function z1(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
81
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */function O1(t,e){return N1(t)||F1(t,e)||H1(t,e)||z1()}function H1(t,e){if(t){if(typeof t=="string")return ru(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ru(t,e):void 0}}const ph=Object.entries,V1=Object.keys,iu=Object.setPrototypeOf,B1=Object.isFrozen,gh=Object.getPrototypeOf,mh=Object.getOwnPropertyDescriptor;let dt=Object.freeze,Qe=Object.seal,_r=Object.create,bh=typeof Reflect<"u"&&Reflect,ul=bh.apply,ra=bh.construct;dt||(dt=function(e){return e});Qe||(Qe=function(e){return e});ul||(ul=function(e,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];return e.apply(n,i)});ra||(ra=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return new e(...r)});const yn=Ve(Array.prototype.forEach),$1=Ve(Array.prototype.lastIndexOf),ou=Ve(Array.prototype.pop),Po=Ve(Array.prototype.push),su=Ve(Array.prototype.slice),j1=Ve(Array.prototype.splice),Ui=Array.isArray,Fl=ec(Set),zl=Ve(Set.prototype.add),Mo=Ve(Set.prototype.has),q1=Ve(Set.prototype.delete),U1=ec(Map),lu=Ve(Map.prototype.get),au=Ve(Map.prototype.set),Zn=Ve(String.prototype.toLowerCase),Ol=Ve(String.prototype.toString),W1=Ve(String.prototype.match),Do=Ve(String.prototype.replace),Hl=Ve(String.prototype.indexOf),G1=Ve(String.prototype.trim),K1=Ve(Number.prototype.toString),Y1=Ve(Boolean.prototype.toString),cu=typeof BigInt>"u"?null:Ve(BigInt.prototype.toString),uu=typeof Symbol>"u"?null:Ve(Symbol.prototype.toString),Et=Ve(Object.prototype.hasOwnProperty),Lo=Ve(Object.prototype.toString),X1=RegExp.prototype.test,rt=function(e,n){return e instanceof RegExp&&(e.lastIndex=0),ul(X1,e,[n])},Mn=ec(TypeError);function Ve(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return ul(t,e,r)}}function ec(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return ra(t,n)}}function ke(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Zn;if(iu&&iu(t,null),!Ui(e))return t;let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const o=n(i);o!==i&&(B1(e)||(e[r]=o),i=o)}t[i]=!0}return t}function Z1(t){for(let e=0;e<t.length;e++)Et(t,e)||(t[e]=null);return t}function dl(t){const e=_r(null);for(const r of ph(t)){var n=O1(r,2);const i=n[0],o=n[1];Et(t,i)&&(Ui(o)?e[i]=Z1(o):o&&typeof o=="object"&&o.constructor===Object?e[i]=dl(o):e[i]=o)}return e}function Vo(t){const e=_r(null),n=V1(t);let r=n.length;for(;r--;)e[n[r]]=t[n[r]];return e}function Q1(t){switch(typeof t){case"string":return t;case"number":return K1(t);case"boolean":return Y1(t);case"bigint":return cu?cu(t):"0";case"symbol":return uu?uu(t):"Symbol()";case"undefined":return Lo(t);case"function":case"object":{if(t===null)return Lo(t);const e=t,n=Kt(e,"toString");if(typeof n=="function"){const r=n(e);return typeof r=="string"?r:Lo(r)}return Lo(t)}default:return Lo(t)}}function Kt(t,e){for(;t!==null;){const r=mh(t,e);if(r){if(r.get)return Ve(r.get);if(typeof r.value=="function")return Ve(r.value)}t=gh(t)}function n(){return null}return n}function J1(t,e){for(;t!==null;){const n=mh(t,e);if(n)return n.get?Ve(n.get):null;t=gh(t)}return null}function e0(t){if(!t)return!1;try{return rt(t,""),!0}catch{return!1}}const du=dt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Vl=dt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Bl=dt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),t0=dt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$l=dt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),n0=dt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),hu=dt(["#text"]),fu=dt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),jl=dt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),pu=dt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zs=dt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),r0=Qe(/{{[\w\W]*|^[\w\W]*}}/g),i0=Qe(/<%[\w\W]*|^[\w\W]*%>/g),o0=Qe(/\${[\w\W]*/g),gu=Qe(/{{|}}|\${|<%|%>/),s0=Qe(/[^\t\n\f\r ]/),mu=Qe(/\u0000/g),l0=Qe(/^data-[\-\w.\u00B7-\uFFFF]+$/),a0=Qe(/^aria-[\-\w]+$/),bu=Qe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),c0=Qe(/^(?:\w+script|data):/i),u0=Qe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),d0=Qe(/^html$/i),h0=Qe(/^[a-z][.\w]*(-[.\w]+)+$/i),ql=Qe(/<[/\w!]/g),f0=Qe(/<[/\w]/g),p0=Qe(/<[/\w]|^-?>|--!?>|<!-$/g),g0=Qe(/<\/no(script|embed|frames)/i),yu=Qe(/\/>/i),m0=Qe(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i),b0=Qe(/^[\r\n\t ]+/),Be={element:1,text:3,processingInstruction:7,comment:8,document:9,documentFragment:11},y0=dt(ke({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),v0=dt(ke({},["textarea","title"])),S0=dt(ke({},["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","meta","param","source","track","wbr"])),x0=function(){return typeof window>"u"?null:window},w0=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},vu=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},wr=function(e,n,r,i){return Et(e,n)&&Ui(e[n])?ke(i.base?Vo(i.base):{},e[n],i.transform):r},Ul=function(e,n,r){const i=Et(e,n)?e[n]:void 0;return i&&typeof i=="object"?dl(i):r};function yh(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x0();const e=N=>yh(N);if(e.version="3.5.0",e.removed=[],!t||!t.document||t.document.nodeType!==Be.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const r=n,i=r.currentScript,o=t.HTMLTemplateElement,s=t.Node,l=t.Element,a=t.NodeFilter,d=t.DOMParser,u=t.trustedTypes,h=l.prototype,g=Kt(h,"cloneNode"),f=Kt(h,"remove"),m=Kt(h,"removeChild"),y=Kt(h,"removeAttributeNode"),v=Kt(h,"nextSibling"),C=Kt(h,"childNodes"),I=Kt(h,"parentNode"),k=Kt(h,"shadowRoot"),_=Kt(h,"attributes"),P=s&&s.prototype?Kt(s.prototype,"nodeType"):null,L=s&&s.prototype?Kt(s.prototype,"nodeName"):null,z=s&&s.prototype?Kt(s.prototype,"ownerDocument"):null,V=function(p){return P?P(p):p.nodeType},J=function(p){return L?L(p):p.nodeName},be=J1(h,"namespaceURI"),se=function(p){return be?be(p):p.namespaceURI},le=function(p){return V(p)===Be.element?_(p):null};if(typeof o=="function"){const N=n.createElement("template");N.content&&N.content.ownerDocument&&(n=N.content.ownerDocument)}let oe,Se="",Ce,K=!1,ue=0;const _e=function(){if(ue>0)throw Mn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},xe=function(p){_e(),ue++;try{return oe.createHTML(p)}finally{ue--}},Je=function(p){return oe&&bo?xe(p):p},At=function(p){_e(),ue++;try{return oe.createScriptURL(p)}finally{ue--}},tt=function(){return K||(Ce=w0(u,i),K=!0),Ce},ht=n,Ke=ht.implementation,Ye=ht.createNodeIterator,ot=ht.createDocumentFragment,st=ht.getElementsByTagName,Ae=r.importNode;let ge=vu();e.isSupported=typeof ph=="function"&&typeof I=="function"&&Ke&&Ke.createHTMLDocument!==void 0;const It=r0,lt=i0,Ht=o0,Rt=l0,Vn=a0,Vt=c0,F=u0,ne=h0;let pe=bu,re=null;const at=ke({},[...du,...Vl,...Bl,...$l,...hu]);let we=null;const cr=ke({},[...fu,...jl,...pu,...zs]);let nn=null,Bt=null,gs=null;const _n=Object.seal(_r(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ye=!0,qr=!0,Bn=!1,yi=!0,$t=!1,rn=!0,jt=!1,Tn=!1,En=null,Ur=null,ur=!1,dr=!1,hr=!1,bo=!1,yo=!0,ms=!1;const vo="user-content-";let vi=!0,Wr=!1,dn=null,$n=null,fr=!1,jn=null;const vt=ke({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let qn=null;const Un=ke({},["audio","video","img","source","image","track"]);let So=null;const bs=ke({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Si="http://www.w3.org/1998/Math/MathML",xi="http://www.w3.org/2000/svg",on="http://www.w3.org/1999/xhtml";let sn=on,wi=!1,xo=null;const Gr=ke({},[Si,xi,on],Ol),pr=dt(ke({},["mi","mo","mn","ms","mtext"]));let Kr=null;const hn=dt(ke({},["annotation-xml"]));let wo=null;const ve=dt(_r(null)),De=ke({},["title","style","font","a","script"]);let Lt=null;const fn=["application/xhtml+xml","text/html"],pn="text/html";let Xe=null,Yr=null,An=null;const ys=n.createElement("form"),vs=function(p){return p instanceof RegExp||p instanceof Function},Ci=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};(!p||typeof p!="object")&&(p={}),p=dl(p),Lt=fn.indexOf(p.PARSER_MEDIA_TYPE)===-1?pn:p.PARSER_MEDIA_TYPE,Xe=Lt==="application/xhtml+xml"?Ol:Zn,re=wr(p,"ALLOWED_TAGS",at,{transform:Xe}),we=wr(p,"ALLOWED_ATTR",cr,{transform:Xe}),xo=wr(p,"ALLOWED_NAMESPACES",Gr,{transform:Ol}),So=wr(p,"ADD_URI_SAFE_ATTR",bs,{transform:Xe,base:bs}),qn=wr(p,"ADD_DATA_URI_TAGS",Un,{transform:Xe,base:Un}),jn=wr(p,"FORBID_CONTENTS",vt,{transform:Xe}),Bt=wr(p,"FORBID_TAGS",_r(null),{transform:Xe}),gs=wr(p,"FORBID_ATTR",_r(null),{transform:Xe}),fr=Et(p,"USE_PROFILES")?p.USE_PROFILES&&typeof p.USE_PROFILES=="object"?dl(p.USE_PROFILES):p.USE_PROFILES:!1,ye=p.ALLOW_ARIA_ATTR!==!1,qr=p.ALLOW_DATA_ATTR!==!1,Bn=p.ALLOW_UNKNOWN_PROTOCOLS||!1,yi=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$t=p.SAFE_FOR_TEMPLATES||!1,rn=p.SAFE_FOR_XML!==!1,jt=p.WHOLE_DOCUMENT||!1,dr=p.RETURN_DOM||!1,hr=p.RETURN_DOM_FRAGMENT||!1,bo=p.RETURN_TRUSTED_TYPE||!1,ur=p.FORCE_BODY||!1,yo=p.SANITIZE_DOM!==!1,ms=p.SANITIZE_NAMED_PROPS||!1,vi=p.KEEP_CONTENT!==!1,Wr=p.IN_PLACE||!1,pe=e0(p.ALLOWED_URI_REGEXP)?p.ALLOWED_URI_REGEXP:bu,sn=typeof p.NAMESPACE=="string"?p.NAMESPACE:on,Kr=Ul(p,"MATHML_TEXT_INTEGRATION_POINTS",pr),wo=Ul(p,"HTML_INTEGRATION_POINTS",hn);const w=Ul(p,"CUSTOM_ELEMENT_HANDLING",ve);if(nn=_r(null),Et(w,"tagNameCheck")&&vs(w.tagNameCheck)&&(nn.tagNameCheck=w.tagNameCheck),Et(w,"attributeNameCheck")&&vs(w.attributeNameCheck)&&(nn.attributeNameCheck=w.attributeNameCheck),Et(w,"allowCustomizedBuiltInElements")&&typeof w.allowCustomizedBuiltInElements=="boolean"&&(nn.allowCustomizedBuiltInElements=w.allowCustomizedBuiltInElements),Qe(nn),$t&&(qr=!1),hr&&(dr=!0),fr&&((Et(p,"ALLOWED_TAGS")||Et(p,"ALLOWED_ATTR"))&&typeof console<"u"&&typeof console.warn=="function"&&console.warn("DOMPurify: USE_PROFILES overrides ALLOWED_TAGS and ALLOWED_ATTR. Do not use these options together."),re=ke({},hu),we=_r(null),fr.html===!0&&(ke(re,du),ke(we,fu)),fr.svg===!0&&(ke(re,Vl),ke(we,jl),ke(we,zs)),fr.svgFilters===!0&&(ke(re,Bl),ke(we,jl),ke(we,zs)),fr.mathMl===!0&&(ke(re,$l),ke(we,pu),ke(we,zs))),_n.tagCheck=null,_n.attributeCheck=null,Et(p,"ADD_TAGS")&&(typeof p.ADD_TAGS=="function"?_n.tagCheck=p.ADD_TAGS:Ui(p.ADD_TAGS)&&(re===at&&(re=Vo(re)),ke(re,p.ADD_TAGS,Xe))),Et(p,"ADD_ATTR")&&(typeof p.ADD_ATTR=="function"?_n.attributeCheck=p.ADD_ATTR:Ui(p.ADD_ATTR)&&(we===cr&&(we=Vo(we)),ke(we,p.ADD_ATTR,Xe))),Et(p,"ADD_FORBID_CONTENTS")&&Ui(p.ADD_FORBID_CONTENTS)&&(jn===vt&&(jn=Vo(jn)),ke(jn,p.ADD_FORBID_CONTENTS,Xe)),vi&&(re["#text"]=!0),jt&&ke(re,["html","head","body"]),re.table&&(re.tbody=!0,delete Bt.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Mn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Mn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const T=oe;oe=p.TRUSTED_TYPES_POLICY;try{Se=xe("")}catch(M){throw oe=T,M}}else p.TRUSTED_TYPES_POLICY===null?(oe=void 0,Se=""):(oe===void 0&&(oe=tt()),oe&&typeof Se=="string"&&(Se=xe("")));Yr=dt(p)},nt=ke({},[...Vl,...Bl,...t0]),Xr=ke({},[...$l,...n0]),bt=function(p,w,T){return w===on?p==="svg":w===Si?p==="svg"&&(T==="annotation-xml"||Kr[T]):!!nt[p]},qt=function(p,w,T){return w===on?p==="math":w===xi?p==="math"&&wo[T]:!!Xr[p]},Zr=function(p,w,T){return w===xi&&!wo[T]||w===Si&&!Kr[T]?!1:!Xr[p]&&(De[p]||!nt[p])},Ss=function(p){const w=se(p),T=Zn(J(p)),M=I(p);let j=sn,Z="template";return M&&V(M)===Be.element&&(j=se(M),Z=Zn(J(M))),xo[w]?w===xi?bt(T,j,Z):w===Si?qt(T,j,Z):w===on?Zr(T,j,Z):Lt==="application/xhtml+xml":!1},kt=function(p){Po(e.removed,{element:p}),ws(p);try{I(p).removeChild(p)}catch{if(f(p),!I(p))throw Mn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Wn=function(p,w,T){try{y(p,w)}catch{try{p.removeAttribute(T)}catch{}}},Ii=function(p){gr(p);const w=C(p);w&&yn(su(w),T=>{try{m(p,T)}catch{}}),V(p)===Be.element&&Co(p,!1)},Rn=function(p,w,T){if(!T)try{T=w.getAttributeNode(p)}catch{T=null}if(Po(e.removed,{attribute:T||null,from:w}),T)Wn(w,T,p);else try{w.removeAttribute(p)}catch{}if(p==="is")if(dr||hr)try{kt(w)}catch{}else try{w.setAttribute(p,"")}catch{}},Co=function(p,w){const T=_(p);if(T)for(let M=T.length-1;M>=0;--M){const j=T[M],Z=j&&j.name;typeof Z=="string"&&!(w&&we[Xe(Z)])&&Wn(p,j,Z)}},ki=function(p,w){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const M=[p];for(;M.length>0;){const j=M.pop();if(w(j)===!1)continue;if(T&&V(j)===Be.element){const ee=k(j);yr(ee)&&M.push(ee)}const Z=C(j);if(Z)for(let ee=Z.length-1;ee>=0;--ee)M.push(Z[ee])}},gr=function(p){ki(p,w=>{V(w)===Be.element&&Co(w,!0)})},_i=function(p){const w=[];return ki(p,T=>{w.push(T)},!0),w},mr=function(p,w){const T=Fl();yn(_i(p),M=>{V(M)===Be.element&&zl(T,M)}),yn(w,M=>{V(M)===Be.element&&!Mo(T,M)&&Co(M,!0)})},Ti=function(p,w){let T=!1;return yn(e.removed,M=>{M.element&&(T=T||M.element===p,gr(M.element))}),mr(p,w),T},_t=function(p,w){Ii(p),Ti(p,w)},br=8,xs=function(p,w){const T=dn;let M=null;const j=()=>(M||(M=Fl(),yn(w,Z=>{zl(M,Z)})),M);for(let Z=0;;Z++){const ee=_i(p),Re=[p];let mn=!1;if(yn(ee,Tt=>{V(Tt)===Be.documentFragment?Po(Re,Tt):!mn&&!Mo(T,Tt)&&(mn=Mo(j(),Tt))}),!mn)return;if(Z>=br)throw Mn("the tree kept changing during in-place sanitization; refusing to return it");yn(Re,(Tt,Nt)=>{kl(Tt,Nt>0,p,j())})}},kl=function(p,w,T,M){const j=Gn(p);let Z;for(;Z=j.nextNode();)!Mo(M,Z)||Mo(dn,Z)||(w&&Ut(ge.uponSanitizeShadowNode,Z,null),To(Z,T))},Ei=function(p){if(!dn)return;zl(dn,p);const w=lu($n,p);if(w!==void 0){if(w>=br)throw Mn("the tree kept changing during in-place sanitization; refusing to return it");au($n,p,w+1)}},ws=function(p){dn&&(q1(dn,p),lu($n,p)===void 0&&au($n,p,0))},Io=function(p,w){return rn?p==="patchsrc"?!0:p==="for"&&w!=="label"&&w!=="output":!1},_l=function(p){rn&&ki(p,w=>{const T=V(w);if(T===Be.processingInstruction||T===Be.comment&&rt(f0,w.data)){try{f(w)}catch{}return!1}if(T===Be.element){const M=w,j=Xe(J(w));try{M.hasAttribute&&M.hasAttribute("patchsrc")&&M.removeAttribute("patchsrc"),M.hasAttribute&&M.hasAttribute("for")&&Io("for",j)&&M.removeAttribute("for")}catch{}}return!0})},gn=function(p){let w=null,T=null;if(ur)p="<remove></remove>"+p;else{const Z=W1(p,b0);T=Z&&Z[0]}Lt==="application/xhtml+xml"&&sn===on&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const M=oe?xe(p):p;if(sn===on)try{w=new d().parseFromString(M,Lt)}catch{}if(!w||!w.documentElement){w=Ke.createDocument(sn,"template",null);try{w.documentElement.innerHTML=wi?Se:M}catch{}}const j=w.body||w.documentElement;return p&&T&&j.insertBefore(n.createTextNode(T),j.childNodes[0]||null),sn===on?st.call(w,jt?"html":"body")[0]:jt?w.documentElement:j},Gn=function(p){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const T=z?z(p):p.ownerDocument;return Ye.call(T||p,p,(w?0:a.SHOW_ELEMENT)|a.SHOW_COMMENT|a.SHOW_TEXT|a.SHOW_PROCESSING_INSTRUCTION|a.SHOW_CDATA_SECTION,null)},Pn=function(p){return p=Do(p,It," "),p=Do(p,lt," "),p=Do(p,Ht," "),p},Ai=function(p){var w;Pi(p);const T=(w=p.querySelectorAll)===null||w===void 0?void 0:w.call(p,"template");T&&yn(T,M=>{yr(M.content)&&Ai(M.content)})},Qr="table,tbody,thead,tfoot,tr,colgroup",Ri=ke({},["caption","colgroup","col","thead","tbody","tfoot","tr","td","th","style","script","template"]),ko=function(p){var w;if(Lt==="application/xhtml+xml")return;const T=(w=p.querySelectorAll)===null||w===void 0?void 0:w.call(p,Qr);!T||T.length===0||yn(T,M=>{yn(su(C(M)),j=>{const Z=V(j);if(!(Z===Be.text?rt(s0,j.data):Z===Be.element&&!Ri[Zn(J(j))]))return;let ee=M;for(;ee&&Zn(J(ee))!=="table";)ee=ee===p?null:I(ee);const Re=ee&&ee!==p?I(ee):null;if(Re)try{Re.insertBefore(j,ee)}catch{}})})},Pi=function(p){ko(p),p.normalize();const w=Gn(p,!0);let T=null,M=w.nextNode();for(;M;){let j=M.data;if(rt(mu,j)&&(j=Do(j,mu,""),M.data=j),rt(gu,j)&&(j=Pn(j),M.data=j),j&&V(M)===Be.text){if(T){const Z=T.data,ee=Z[Z.length-1]+j[0];rt(gu,ee)&&(T.data=Pn(Z+j[0]))}T=M}M=w.nextNode()}},Jr=function(p){const w=L?L(p):null;return typeof w!="string"||Xe(w)!=="form"?!1:typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||p.attributes!==_(p)||typeof p.removeAttribute!="function"||typeof p.removeAttributeNode!="function"||typeof p.getAttributeNode!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function"||p.nodeType!==P(p)||p.childNodes!==C(p)},Cs=function(p){if(!P||typeof p!="object"||p===null)return null;try{const w=P(p);return typeof w=="number"?w:null}catch{return null}},yr=function(p){return Cs(p)===Be.documentFragment},ei=function(p){return Cs(p)!==null};function Ut(N,p,w){N.length!==0&&yn(N,T=>{T.call(e,p,w,Yr)})}const Is=function(p,w){const T=!!S0[w],M=!!y0[w];return!T&&!M&&!v0[w]||se(p)!==on?!1:T?p.hasChildNodes():ei(p.firstElementChild)?!0:M&&typeof p.textContent=="string"&&rt(ql,p.textContent)},Tl=function(p,w,T){return!!(rn&&T===Be.element&&p.hasChildNodes()&&!ei(p.firstElementChild)&&rt(ql,p.textContent)&&rt(ql,p.innerHTML)||rn&&T===Be.element&&Is(p,w)||T===Be.processingInstruction||rn&&T===Be.comment&&rt(p0,p.data))},Mi=function(p,w){if(p instanceof RegExp)return rt(p,w);if(p instanceof Function){for(var T=arguments.length,M=new Array(T>2?T-2:0),j=2;j<T;j++)M[j-2]=arguments[j];return!!p(w,...M)}return!1},El=function(p,w,T){if(!Bt[w]&&_s(w)&&Mi(nn.tagNameCheck,w))return!1;if(vi&&!jn[w]&&!jn[Zn(w)]){const M=I(p),j=C(p);if(j&&M){const Z=j.length;for(let ee=Z-1;ee>=0;--ee){const Re=p===T?g(j[ee],!0):j[ee];M.insertBefore(Re,v(p))}}}return kt(p),!0},ks=function(p,w,T,M){return p.length===0?w:w===T||w===M?Vo(w):w},ti=function(p,w){return p===w||I(p)!==null?!1:(Wr&&gr(p),ws(p),!0)},Kn=function(p,w){if(Ei(p),Ut(ge.beforeSanitizeElements,p,null),ti(p,w))return!0;if(Jr(p))return kt(p),!0;const T=Xe(J(p)),M=V(p);if(re=ks(ge.uponSanitizeElement,re,at,En),Ut(ge.uponSanitizeElement,p,{tagName:T,allowedTags:re}),ti(p,w))return!0;if(Tl(p,T,M))return kt(p),!0;if((Bt[T]||!(_n.tagCheck instanceof Function&&_n.tagCheck(T))&&!re[T])&&El(p,T,w))return!0;if(M===Be.element&&!Ss(p)||(T==="noscript"||T==="noembed"||T==="noframes")&&rt(g0,p.innerHTML))return kt(p),!0;if($t&&M===Be.text){const j=p.textContent,Z=Pn(j);j!==Z&&(Po(e.removed,{element:p.cloneNode()}),p.textContent=Z)}return Ut(ge.afterSanitizeElements,p,null),ti(p,w)},_o=function(p,w,T){if(gs[w]||Io(w,p)||yo&&(w==="id"||w==="name")&&(T in n||T in ys))return!1;const M=we[w]||_n.attributeCheck instanceof Function&&_n.attributeCheck(w,p);if(qr&&rt(Rt,w)||ye&&rt(Vn,w))return!0;if(!M)return _s(p)&&Mi(nn.tagNameCheck,p)&&Mi(nn.attributeNameCheck,w,p)||w==="is"&&nn.allowCustomizedBuiltInElements&&Mi(nn.tagNameCheck,T);if(So[w])return!0;const j=Do(T,F,"");return rt(pe,j)||(w==="src"||w==="xlink:href"||w==="href")&&p!=="script"&&Hl(T,"data:")===0&&qn[p]||Bn&&!rt(Vt,j)?!0:!T},Al=ke({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),_s=function(p){return!Al[Zn(p)]&&rt(ne,p)},Rl=function(p,w,T,M){if(oe&&typeof u=="object"&&typeof u.getAttributeType=="function"&&!T)switch(u.getAttributeType(p,w)){case"TrustedHTML":return xe(M);case"TrustedScriptURL":return At(M)}return M},Pl=function(p,w,T,M){try{return T?p.setAttributeNS(T,w,M):p.setAttribute(w,M),Jr(p)?(kt(p),!1):!0}catch{return Rn(w,p),!1}},Ts=function(p,w){return rn&&rt(m0,w)?!0:Zn(p)==="attributename"&&Hl(w,"href")!==-1},ni=function(p,w){if(Ut(ge.beforeSanitizeAttributes,p,null),ti(p,w))return;const T=le(p);if(!T||Jr(p))return;we=ks(ge.uponSanitizeAttribute,we,cr,Ur);const M={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0};let j=T.length;const Z=Xe(J(p));for(;j--;){const ee=T[j];if(!ee)continue;const Re=ee.name,mn=ee.namespaceURI,Tt=ee.value,Nt=Xe(Re),Yn=Tt;let ze=Re==="value"?Yn:G1(Yn),vr=!1;if(M.attrName=Nt,M.attrValue=ze,M.keepAttr=!0,M.forceKeepAttr=void 0,Ut(ge.uponSanitizeAttribute,p,M),ze=M.attrValue,ms&&(Nt==="id"||Nt==="name")&&Hl(ze,vo)!==0&&(Rn(Re,p,ee),ze=vo+ze,vr=!0),Ts(Re,ze)){Rn(Re,p,ee);continue}if(!M.forceKeepAttr){if(!M.keepAttr){Rn(Re,p,ee);continue}if(!yi&&rt(yu,ze)){Rn(Re,p,ee);continue}if($t&&(ze=Pn(ze)),!_o(Z,Nt,ze)){Rn(Re,p,ee);continue}ze=Rl(Z,Nt,mn,ze),ze!==Yn&&Pl(p,Re,mn,ze)&&vr&&ou(e.removed)}}Ut(ge.afterSanitizeAttributes,p,null),ti(p,w)},To=function(p,w){Kn(p,w),ni(p,w),yr(p.content)&&Eo(p.content)},Eo=function(p){let w=null;const T=Gn(p);for(Ut(ge.beforeSanitizeShadowDOM,p,null);w=T.nextNode();)if(Ut(ge.uponSanitizeShadowNode,w,null),To(w,p),V(w)===Be.element){const M=k(w);yr(M)&&(Ao(M),Eo(M))}$t&&Pi(p),Ut(ge.afterSanitizeShadowDOM,p,null)},Ao=function(p){const w=[{node:p,shadow:null}];for(;w.length>0;){const T=w.pop();if(T.shadow){Eo(T.shadow);continue}const M=T.node,j=V(M)===Be.element,Z=C(M);if(Z)for(let ee=Z.length-1;ee>=0;--ee)w.push({node:Z[ee],shadow:null});if(j){const ee=L?L(M):null;if(typeof ee=="string"&&Xe(ee)==="template"){const Re=M.content;yr(Re)&&w.push({node:Re,shadow:null})}}if(j){const ee=k(M);yr(ee)&&w.push({node:null,shadow:ee},{node:ee,shadow:null})}}},Ml=function(p){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=null,M=null,j=null,Z=null;if(wi=!p,wi&&(p="<!-->"),typeof p!="string"&&!ei(p)&&(p=Q1(p),typeof p!="string"))throw Mn("dirty is not a string, aborting");if(!e.isSupported)return p;Tn?(re=En,we=Ur):Ci(w),An=Yr,e.removed=[];const ee=Wr&&typeof p!="string"&&ei(p);let Re=[];const mn=dn,Tt=$n;if(ee){_l(p),Re=_i(p);const ze=J(p);if(typeof ze=="string"){const vr=Xe(ze);if(!re[vr]||Bt[vr])throw _t(p,Re),Mn("root node is forbidden and cannot be sanitized in-place")}if(Jr(p))throw _t(p,Re),Mn("root node is clobbered and cannot be sanitized in-place");dn=Fl(),$n=U1()}else if(ei(p))T=gn("<!---->"),M=T.ownerDocument.importNode(p,!0),M.nodeType===Be.element&&M.nodeName==="BODY"||M.nodeName==="HTML"?T=M:T.appendChild(M),Ao(T);else{if(!dr&&!$t&&!jt&&p.indexOf("<")===-1)return Je(p);if(T=gn(p),!T)return dr?null:bo?Se:""}T&&ur&&kt(T.firstChild);const Nt=ee?p:T;try{ee&&Ao(p);const ze=Gn(Nt);for(;j=ze.nextNode();)To(j,Nt);ee&&xs(p,Re)}catch(ze){throw ee&&_t(p,Re),ze}finally{dn=mn,$n=Tt}if(ee){if(Ti(p,Re))throw Mn("a node selected for removal could not be safely returned; refusing to sanitize in place");return $t&&Ai(p),p}if(dr){if($t&&Ai(T),hr)for(Z=ot.call(T.ownerDocument);T.firstChild;)Z.appendChild(T.firstChild);else Z=T;return(we.shadowroot||we.shadowrootmode)&&(Z=Ae.call(r,Z,!0)),Z}$t&&Pi(T);let Yn=jt?T.outerHTML:T.innerHTML;return jt&&re["!doctype"]&&T.ownerDocument&&T.ownerDocument.doctype&&T.ownerDocument.doctype.name&&rt(d0,T.ownerDocument.doctype.name)&&(Yn="<!DOCTYPE "+T.ownerDocument.doctype.name+`>
82
+ `+Yn),Je(Yn)};return e.sanitize=function(N){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const w=An,T=re,M=we,j=e.removed;An=null;try{return Ml(N,p)}finally{An=w,w&&(Tn||Ci(w),re=T,we=M,e.removed=j)}},e.setConfig=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ci(N),Tn=!0,En=re,Ur=we},e.clearConfig=function(){Yr=null,Tn=!1,En=null,Ur=null,oe=Ce,Se=""},e.isValidAttribute=function(N,p,w){Yr||Ci({});const T=Xe(N),M=Xe(p);return typeof w=="string"&&(Ts(p,w)||!yi&&rt(yu,w))?!1:_o(T,M,w)},e.addHook=function(N,p){typeof p=="function"&&Et(ge,N)&&Po(ge[N],p)},e.removeHook=function(N,p){if(Et(ge,N)){if(p!==void 0){const w=$1(ge[N],p);return w===-1?void 0:j1(ge[N],w,1)[0]}return ou(ge[N])}},e.removeHooks=function(N){Et(ge,N)&&(ge[N]=[])},e.removeAllHooks=function(){ge=vu()},e}var C0=yh();const vh=`<svg data-icon-sprite aria-hidden="true" width="0" height="0">
83
+ <symbol id="file-tree-icon-chevron" viewBox="0 0 16 16">
84
+ <path d="M12.4697 5.46973C12.7626 5.17684 13.2374 5.17684 13.5303 5.46973C13.8232 5.76262 13.8232 6.23738 13.5303 6.53028L8.53028 11.5303C8.23738 11.8232 7.76262 11.8232 7.46973 11.5303L2.46973 6.53028C2.17684 6.23738 2.17684 5.76262 2.46973 5.46973C2.76262 5.17684 3.23738 5.17684 3.53028 5.46973L8 9.93946L12.4697 5.46973Z" fill="currentcolor"/>
85
+ </symbol>
86
+ <symbol id="file-tree-icon-dot" viewBox="0 0 6 6">
87
+ <circle cx="3" cy="3" r="3" />
88
+ </symbol>
89
+ <symbol id="file-tree-icon-file" viewBox="0 0 16 16">
90
+ <path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".5"/>
91
+ <path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
92
+ </symbol>
93
+ <symbol id="file-tree-icon-lock" viewBox="0 0 16 16">
94
+ <path fill="currentcolor" d="M4 5.336V4a4 4 0 1 1 8 0v1.336c1.586.54 2 1.843 2 4.664v1c0 4.118-.883 5-5 5H7c-4.117 0-5-.883-5-5v-1c0-2.821.414-4.124 2-4.664M5.5 4v1.054Q6.166 4.998 7 5h2q.834-.002 1.5.054V4a2.5 2.5 0 0 0-5 0m-2 6v1c0 .995.055 1.692.167 2.193.107.483.246.686.35.79s.307.243.79.35c.5.112 1.198.167 2.193.167h2c.995 0 1.692-.055 2.193-.166.483-.108.686-.247.79-.35.104-.105.243-.308.35-.791.112-.5.167-1.198.167-2.193v-1c0-.995-.055-1.692-.166-2.193-.108-.483-.247-.686-.35-.79-.105-.104-.308-.243-.791-.35C10.693 6.555 9.995 6.5 9 6.5H7c-.995 0-1.692.055-2.193.167-.483.107-.686.246-.79.35s-.243.307-.35.79C3.555 8.307 3.5 9.005 3.5 10" />
95
+ </symbol>
96
+ <symbol id="file-tree-icon-ellipsis" viewBox="0 0 16 16">
97
+ <path d="M5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M9.5 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M14 8.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" />
98
+ </symbol>
99
+ </svg>`,I0=`<symbol id="file-tree-builtin-astro" viewBox="0 0 16 16">
100
+ <path fill="currentColor" d="M6.08 13.92c-.63-.57-.81-1.79-.55-2.67.45.56 1.08.73 1.73.83 1 .15 1.99.1 2.92-.37l.32-.19q.13.38.08.78a2.1 2.1 0 0 1-.9 1.5q-.3.24-.61.43c-.64.44-.81.95-.57 1.69l.02.08a1.7 1.7 0 0 1-.74-.64 2 2 0 0 1-.3-.98q0-.27-.02-.52-.07-.61-.61-.62a.7.7 0 0 0-.75.6z" class="bg" opacity=".6"/>
101
+ <path fill="currentColor" d="M2.5 11.1s1.86-.9 3.72-.9l1.4-4.39c.05-.21.2-.36.38-.36s.33.15.38.36l1.4 4.38c2.2 0 3.72.92 3.72.92l-3.16-8.69q-.13-.4-.45-.42H6.11q-.3.02-.45.42z" class="fg"/>
102
+ </symbol>`,k0=`<symbol id="file-tree-builtin-babel" viewBox="0 0 16 16">
103
+ <path fill="currentColor" fill-rule="evenodd" d="M9.49.5q1.92.05 2.66.54 1.27.6 1.35 1.52v.23a4 4 0 0 1-.53 1.9l-1.38 1.24q-.74.38-.72.63c.77.82 1.33 1.29.85 2.42q-.47 1.1-2.04 2.28c-.5.32-1.88 1.35-2.96 1.86-1.64.77-3.1 1.4-4.65 1.89-.51.16-1.5.16-1.5.16L.5 15A76 76 0 0 0 5.76 3.49q-.1-.08-.1-.2.1 0 .32-.35l-.03-.09q-1.17.39-2.38 1.3l-.13.03q0-.1-.21-.16-.46.31-.82.7l-.13-.19.16-.06-.03-.16-.34.29L2 4.5q.36-.48.72-.54l.04-.1V3.8q.16 0 .15-.06l.13-.06a6 6 0 0 0 1.13-.9v-.03H4.1l-.12.07q0-.1-.1-.1l-.15.07-.04-.1q.93-.52 1.63-1.05Q7.89.65 9.5.5M8.46 7.83l-.32.04c-1.31.54-2.31.82-2.91.88a71 71 0 0 0-2.2 4.54h.07q.58-.04 3.04-1.42.13 0 1.66-1.05L9.18 9.7v.03q.45-.2.81-1.3v-.2q-.5-.46-1.53-.4m.28-5.75c-.5.1-.75.19-.72.38l-1.16 2.6q-.17.1-.34.95-.3.48-.25.77v.1l.22.05A15 15 0 0 1 8.86 6c1.1-.71 2.12-1.38 2.8-2.54q.24-.33.21-.54-.02-.33-.4-.54c-.54 0-1.07-.34-1.63-.28l-.94-.03z" clip-rule="evenodd"/>
104
+ </symbol>`,_0=`<symbol id="file-tree-builtin-bash" viewBox="0 0 16 16">
105
+ <path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
106
+ <path fill="currentColor" d="M11.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zM7 6.75C7 6.42 6.64 6 6 6s-1 .42-1 .75q-.01.25.22.41.26.21.89.35.74.14 1.28.53c.37.29.61.7.61 1.21 0 .87-.68 1.5-1.5 1.7v.55a.5.5 0 0 1-1 0v-.56c-.82-.18-1.5-.82-1.5-1.69a.5.5 0 0 1 1 0c0 .33.36.75 1 .75s1-.42 1-.75q.01-.25-.22-.41a2 2 0 0 0-.89-.35q-.74-.14-1.28-.53A1.5 1.5 0 0 1 4 6.75c0-.87.68-1.5 1.5-1.7V4.5a.5.5 0 0 1 1 0v.56c.82.18 1.5.82 1.5 1.69a.5.5 0 0 1-1 0" class="fg-stroke"/>
107
+ </symbol>`,T0=`<symbol id="file-tree-builtin-biome" viewBox="0 0 16 16">
108
+ <path fill="currentColor" d="M8 2 4.88 7.35a7 7 0 0 1 3.7-.13l1.04.25-.99 4.16-1.05-.25a2.7 2.7 0 0 0-3.07 1.45l-.98-.47a4 4 0 0 1 1.07-1.31 3.8 3.8 0 0 1 3.23-.71l.5-2.08a6 6 0 0 0-5.07 1.12A5.9 5.9 0 0 0 1 14h14z"/>
109
+ </symbol>`,E0=`<symbol id="file-tree-builtin-bootstrap" viewBox="0 0 16 16">
110
+ <path fill="currentColor" fill-rule="evenodd" d="M11.72 1.5A2.5 2.5 0 0 1 14.2 4q.02 1.08.3 2.09c.22.73.56 1.24 1.08 1.45.22.08.4.27.4.5s-.18.43-.4.51q-.76.34-1.08 1.45c-.2.65-.27 1.32-.3 2a2.5 2.5 0 0 1-2.48 2.5H4.25A2.6 2.6 0 0 1 1.7 12c-.04-.85-.1-1.68-.22-2.04C1.26 9.23.92 8.7.4 8.5.18 8.42 0 8.23 0 8s.18-.42.4-.5q.77-.35 1.09-1.46c.1-.36.17-1.19.2-2.04a2.6 2.6 0 0 1 2.56-2.5z" class="bg" clip-rule="evenodd" opacity=".2"/>
111
+ <path fill="currentColor" fill-rule="evenodd" d="M8.47 4.54c1.23 0 2.04.68 2.04 1.73 0 .73-.55 1.39-1.24 1.5v.04c.94.1 1.58.77 1.58 1.7 0 1.2-.9 1.95-2.37 1.95H5.97a.3.3 0 0 1-.2-.08.3.3 0 0 1-.08-.2V4.82a.3.3 0 0 1 .08-.2.3.3 0 0 1 .2-.08zm-1.7 6.04h1.49q1.47-.01 1.49-1.15Q9.74 8.31 8.2 8.3H6.77zm0-5.16v2.06h1.21c.93 0 1.45-.38 1.45-1.06 0-.65-.44-1-1.22-1z" class="fg" clip-rule="evenodd"/>
112
+ </symbol>`,A0=`<symbol id="file-tree-builtin-browserslist" viewBox="0 0 16 16">
113
+ <path fill="currentColor" d="M8.88 6.96c0 3.82 3.72 4.7 5.7 3.74-.23.9-1.04 1.67-2.35 1.93-.02.4.42 1.28.82 1.63-.9.35-1.94-.12-2.51-.48a5 5 0 0 0-.32 1.87c-.68 0-1.57-1-1.8-1.37-.3.18-.85 1.15-.96 1.72a2.4 2.4 0 0 1-.81-.86 2.4 2.4 0 0 1-.3-1.15c-.38.27-1.48.95-1.99 1.18-.25-.58-.15-1.3 0-2.06-.21.12-1.8.27-2.43.12.32-.36.75-1.19.94-1.57A4.5 4.5 0 0 1 .44 10.6c.48-.22.97-.53 1.49-1.06C1.26 9.17.24 8.64 0 7.7a6 6 0 0 0 1.79-.32C1.28 7.08.44 6.15.6 5.01c.42.21 1.3.37 1.73.3a3.4 3.4 0 0 1-.25-2.75 5 5 0 0 0 1.48 1c-.08-.8.3-2.31.8-2.71.2.46.73 1.21 1.08 1.4.09-.61.87-2.06 1.57-2.25 0 .5.27 1.4.5 1.67.51-.54 2.25-1.44 3.64-1.13-.43.45-.75.61-.86.98 1.05 0 2.78.34 4.27 1.93-2.34-.89-5.69.56-5.69 3.5" class="bg" opacity=".5"/>
114
+ <path fill="currentColor" d="M11.21 3.59a4.1 4.1 0 0 0 2.47 2.89c.24-.22.61-.38.95-.19.76.44.2 1.26-.34 1.66l-.07.06a13 13 0 0 1-4.49 1.61l-.3-.43a10.5 10.5 0 0 0 4.13-1.31 1 1 0 0 0 .23-.25.5.5 0 0 0-.21-.69l-.15-.06a4.5 4.5 0 0 1-1.77-1.31 4.5 4.5 0 0 1-.88-1.77q.2-.12.43-.21"/>
115
+ <path fill="currentColor" d="M10.36 5.18a.4.4 0 0 0-.03.38c.09.2.3.3.46.23s.24-.3.15-.5l-.01-.02q.23.13.34.39a.83.83 0 0 1-.43 1.08.8.8 0 0 1-1.08-.43.83.83 0 0 1 .6-1.13"/>
116
+ </symbol>`,R0=`<symbol id="file-tree-builtin-bun" viewBox="0 0 16 16">
117
+ <path fill="currentColor" d="M8 14c3.87 0 7-2.46 7-5.49 0-1.88-1.2-3.53-3.04-4.52q-1.1-.61-1.84-1.07C9.2 2.35 8.64 2 8 2s-1.36.45-2.31 1.03A29 29 0 0 1 4.04 4C2.2 4.98 1 6.63 1 8.51 1 11.54 4.13 14 8 14M7.18 3.88q.3-.66.3-1.37c0-.08.11-.1.13-.01.38 1.57-.53 2.35-1.2 2.61-.08.03-.12-.07-.06-.12a3 3 0 0 0 .83-1.12m1.2-.05a3 3 0 0 0-.45-1.3V2.5c-.04-.07.05-.15.1-.1 1.15 1.2.77 2.3.33 2.87-.05.05-.13 0-.11-.08q.21-.67.13-1.37m1.04-.32a3 3 0 0 0-.94-1.02v-.01c-.06-.05-.01-.16.07-.12 1.51.61 1.61 1.8 1.43 2.5l-.03.03a.07.07 0 0 1-.1-.06 3 3 0 0 0-.43-1.32m-2.97.32c-.36.3-.74.43-1.2.56q-.11 0-.1-.1a3.5 3.5 0 0 0 1.76-1.57s.09-.07.1.04c0 .18-.2.76-.56 1.07m2.89 6.36q-.13.52-.55.88a1.3 1.3 0 0 1-.75.35 1.3 1.3 0 0 1-.77-.35 1.7 1.7 0 0 1-.54-.88.13.13 0 0 1 .15-.15h2.31a.14.14 0 0 1 .15.15M6.15 8.95a1.1 1.1 0 0 1-1.39-.14A1.1 1.1 0 0 1 5.12 7a1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1-.17 1.69m4.96 0a1.1 1.1 0 0 1-1.4-.14 1.1 1.1 0 0 1 .37-1.8 1.1 1.1 0 0 1 1.2.25 1.1 1.1 0 0 1 .24 1.2 1 1 0 0 1-.41.5"/>
118
+ </symbol>`,P0=`<symbol id="file-tree-builtin-c" viewBox="0 0 16 16">
119
+ <path fill="currentColor" fill-rule="evenodd" d="M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z" clip-rule="evenodd"/>
120
+ </symbol>`,M0=`<symbol id="file-tree-builtin-claude" viewBox="0 0 16 16">
121
+ <path fill="currentColor" d="M3.75 10.31 6.5 8.77l.04-.14-.04-.07h-.14l-.46-.03-1.57-.04-1.38-.07-1.33-.07-.34-.07L1 7.86l.03-.21.28-.18.4.03.89.07 1.33.08.97.06 1.43.16h.22l.03-.1-.07-.05-.06-.06-1.39-.92-1.48-.98-.79-.57-.42-.28-.2-.28-.1-.6.39-.41.52.04.12.03.52.4 1.12.86L6.2 6.04l.2.17.09-.06.01-.04-.1-.15-.76-1.46-.85-1.46-.37-.6-.1-.36a1 1 0 0 1-.06-.42l.42-.59.25-.07.6.08.22.2.36.84.58 1.3.9 1.77.29.53.14.47.04.14h.1v-.07l.07-1 .14-1.22.14-1.57.04-.45.23-.53.42-.28.36.15.28.41-.04.25-.16 1.08-.36 1.7-.21 1.14h.12l.14-.15.58-.76.97-1.2.42-.5.5-.51.32-.25h.6l.44.66-.2.68-.61.79-.52.65-.74 1-.45.8.04.05h.1l1.68-.36.9-.16 1.06-.18.5.23.05.22-.2.48-1.15.28-1.34.28-2 .46-.04.01.03.04.9.09.4.03h.94l1.77.14.46.28.27.37-.04.28-.72.37-.95-.23-2.24-.53-.76-.18h-.11v.06l.64.63L12 10.86l1.48 1.35.07.34-.18.28-.2-.03-1.29-.98-.5-.42-1.12-.95h-.07v.1l.25.38 1.37 2.05.07.63-.1.2-.36.14-.38-.08-.8-1.12-.85-1.26-.66-1.15-.07.05-.4 4.23-.19.21-.42.17-.35-.28-.2-.42.2-.87.23-1.12.18-.9.17-1.1.1-.36v-.03h-.1l-.84 1.16-1.27 1.72-1 1.07-.24.1-.42-.22.04-.39.22-.32 1.4-1.8.84-1.1.57-.64-.02-.07h-.04l-3.7 2.4-.66.09-.28-.28.03-.42.14-.14 1.12-.77z"/>
122
+ </symbol>`,D0=`<symbol id="file-tree-builtin-cpp" viewBox="0 0 16 16">
123
+ <path fill="currentColor" fill-rule="evenodd" d="M8 1q.084 0 .166.021.098.023.186.075c1.055.624 4.22 2.486 5.277 3.11.085.05.15.112.209.192h-.002l.028.037a.5.5 0 0 1 .103.21q.031.102.033.21v6.29a.71.71 0 0 1-.347.616l-5.307 3.144a.68.68 0 0 1-.693 0l-5.307-3.144A.72.72 0 0 1 2 11.145V4.832a.71.71 0 0 1 .346-.612l5.288-3.126A.7.7 0 0 1 7.992 1zm2.901 4.349a3.75 3.75 0 1 0 0 5.302l-1.06-1.06a2.25 2.25 0 1 1 0-3.182z" clip-rule="evenodd"/>
124
+ </symbol>`,L0=`<symbol id="file-tree-builtin-css" viewBox="0 0 16 16">
125
+ <path fill="currentColor" d="M8 15c-5.76 0-7-1.24-7-7V2a1 1 0 0 1 1-1h6c5.77 0 7 1.24 7 7s-1.24 7-7 7" class="vector" opacity=".2"/>
126
+ <path fill="currentColor" d="M10.1 9.19h.73c.03.49.22.6 1 .6.76 0 .93-.12.93-.68 0-.52-.17-.67-.94-.85-1.38-.3-1.68-.56-1.68-1.47 0-1.05.3-1.29 1.67-1.29 1.29 0 1.57.2 1.6 1.13h-.74c-.01-.34-.17-.42-.85-.42-.77 0-.94.1-.94.58 0 .42.17.55.96.73 1.36.3 1.66.58 1.66 1.59 0 1.14-.31 1.39-1.73 1.39-1.39 0-1.69-.24-1.67-1.31m-3.9 0h.74c.03.49.21.6.99.6.76 0 .93-.12.93-.68 0-.52-.17-.67-.93-.85-1.39-.3-1.69-.56-1.69-1.47 0-1.05.3-1.29 1.67-1.29 1.3 0 1.58.2 1.6 1.13h-.73c-.02-.34-.18-.42-.85-.42-.78 0-.95.1-.95.58 0 .42.17.55.96.73 1.37.3 1.67.58 1.67 1.59 0 1.14-.32 1.39-1.74 1.39-1.38 0-1.68-.24-1.66-1.31m-1.22 0h.75c-.09 1.07-.37 1.31-1.56 1.31-1.37 0-1.68-.45-1.68-2.5 0-1.96.36-2.5 1.68-2.5 1.16 0 1.44.25 1.52 1.35h-.76c-.08-.52-.22-.64-.76-.64-.74 0-.9.33-.9 1.78 0 1.47.16 1.8.9 1.8.58 0 .74-.11.8-.6"/>
127
+ </symbol>`,N0=`<symbol id="file-tree-builtin-database" viewBox="0 0 16 16">
128
+ <path fill="currentColor" d="M14.953 9.733a12.4 12.4 0 0 1-.244 1.936c-.207.933-.532 1.58-.996 2.044s-1.11.789-2.044.996C10.73 14.918 9.533 15 8 15s-2.73-.082-3.669-.291c-.933-.207-1.58-.532-2.044-.996s-.789-1.11-.996-2.044c-.122-.547-.2-1.182-.244-1.92q.23.364.532.667c.64.639 1.482 1.031 2.533 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265a4 4 0 0 0 .541-.683"/>
129
+ <path fill="currentColor" d="M14.93 5.924c-.046.663-.118 1.24-.23 1.743-.207.932-.532 1.579-.995 2.042s-1.11.789-2.042.996c-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997s-.789-1.11-.996-2.042a12 12 0 0 1-.227-1.683l.016-.188a4 4 0 0 0 .5.62c.638.639 1.48 1.031 2.532 1.265 1.046.232 2.33.315 3.884.315 1.555 0 2.838-.083 3.884-.315 1.051-.234 1.893-.626 2.532-1.265.192-.192.357-.404.506-.633z"/>
130
+ <path fill="currentColor" d="M8 1c1.533 0 2.73.082 3.669.291.933.207 1.58.533 2.044.996.403.404.904.944.91 1.695.004.764-.509 1.318-.918 1.727-.463.463-1.11.789-2.042.996-.938.209-2.135.291-3.667.291-1.531 0-2.729-.082-3.667-.29-.932-.208-1.579-.534-2.042-.997-.406-.406-.915-.953-.915-1.71 0-.758.509-1.305.915-1.712.464-.463 1.11-.789 2.044-.996C5.27 1.082 6.467 1 8 1"/>
131
+ </symbol>`,F0=`<symbol id="file-tree-builtin-default" viewBox="0 0 16 16">
132
+ <path fill="currentColor" d="M8 1v3a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1z" class="bg" opacity=".4"/>
133
+ <path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
134
+ </symbol>`,z0=`<symbol id="file-tree-builtin-docker" viewBox="0 0 16 16">
135
+ <path fill="currentColor" d="M15.85 6.54c-.05-.04-.45-.36-1.31-.36q-.34 0-.68.06a2.7 2.7 0 0 0-1.14-1.79l-.23-.14-.15.23a3 3 0 0 0-.4 1q-.24 1.01.26 1.84c-.4.24-1.03.3-1.17.3H.5a.5.5 0 0 0-.5.52q-.01 1.46.46 2.83.55 1.5 1.6 2.18c.79.5 2.08.79 3.54.79q.96 0 1.94-.18a8 8 0 0 0 2.55-.97 7 7 0 0 0 1.73-1.5 10 10 0 0 0 1.7-3.06h.15a2.4 2.4 0 0 0 1.8-.7 2 2 0 0 0 .47-.74l.06-.2z"/>
136
+ <path fill="currentColor" d="M1.48 7.36h1.4a.14.14 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H1.48a.13.13 0 0 0-.13.14v1.32q.02.13.13.13m1.94 0h1.41a.14.14 0 0 0 .13-.13V5.91q-.01-.12-.13-.14h-1.4a.13.13 0 0 0-.13.14v1.32q0 .13.12.13m1.98 0h1.4q.13 0 .14-.13V5.91a.13.13 0 0 0-.14-.14H5.4q-.1.01-.12.14v1.32q0 .13.12.13m1.95 0h1.42q.1 0 .12-.13V5.91q0-.12-.12-.14H7.35q-.1.01-.12.14v1.32q.01.13.12.13M3.42 5.5h1.41c.07 0 .13-.08.13-.15V4.03a.13.13 0 0 0-.13-.14h-1.4q-.12 0-.13.14v1.31q0 .13.12.15m1.98 0h1.4c.08 0 .14-.08.14-.15V4.03q0-.13-.14-.14H5.4q-.1 0-.12.14v1.31q0 .13.12.15m1.95 0h1.42c.06 0 .12-.08.12-.15V4.03q-.01-.13-.12-.14H7.35q-.1 0-.12.14v1.31q.01.13.12.15m0-1.9h1.42q.1-.02.12-.14v-1.3Q8.88 2 8.77 2H7.35q-.1 0-.12.14v1.3q.01.13.12.14m1.97 3.78h1.4a.13.13 0 0 0 .14-.13V5.91q-.01-.12-.13-.14H9.32q-.1.01-.12.14v1.32q.01.13.12.13" opacity=".5"/>
137
+ </symbol>`,O0=`<symbol id="file-tree-builtin-eslint" viewBox="0 0 16 16">
138
+ <path fill="currentColor" d="M11.16 6.1 8.12 4.35a.3.3 0 0 0-.24 0L4.84 6.1a.3.3 0 0 0-.12.2v3.5q0 .14.12.22l3.04 1.74q.12.08.24 0l3.04-1.74a.2.2 0 0 0 .13-.22V6.3a.3.3 0 0 0-.13-.2" opacity=".5"/>
139
+ <path fill="currentColor" d="m.1 7.69 3.63-6.3A.8.8 0 0 1 4.37 1h7.26c.26 0 .5.17.64.4l3.63 6.27a.8.8 0 0 1 0 .75l-3.63 6.24a.7.7 0 0 1-.64.34H4.37a.7.7 0 0 1-.64-.34L.1 8.41a.7.7 0 0 1 0-.72m3 3.02q.01.15.14.23l4.63 2.66q.13.06.26 0l4.63-2.66a.3.3 0 0 0 .14-.23V5.4a.3.3 0 0 0-.14-.23L8.13 2.52a.3.3 0 0 0-.26 0L3.24 5.17a.3.3 0 0 0-.14.23z"/>
140
+ </symbol>`,H0=`<symbol id="file-tree-builtin-font" viewBox="0 0 16 16">
141
+ <path fill="currentColor" d="M12.3 13c-1.59 0-2.68-.99-2.68-2.5 0-1.43 1-2.34 2.88-2.35h2.16v-.83c0-1.08-.62-1.68-1.73-1.68-1.05 0-1.66.54-1.73 1.36H9.93c.09-1.43 1.06-2.48 3.05-2.48 1.75 0 3.02.95 3.02 2.68v5.66h-1.29v-1.02h-.04c-.41.66-1.16 1.16-2.37 1.16m.36-1.12c1.14 0 2-.72 2-1.74v-.96H12.6c-1.12 0-1.6.54-1.6 1.28 0 .97.8 1.42 1.66 1.42m-11.24.98H0L3.8 2h1.39l3.8 10.86H7.54l-1.08-3.2H2.5zm3.09-9.25h-.04l-1.6 4.95H6.1z"/>
142
+ </symbol>`,V0=`<symbol id="file-tree-builtin-git" viewBox="0 0 16 16">
143
+ <path fill="currentColor" d="M14.74 7.38 8.62 1.26a.9.9 0 0 0-1.27 0L6.08 2.53l1.61 1.61a1.07 1.07 0 0 1 1.36 1.37l1.55 1.55a1.07 1.07 0 0 1 1.1 1.77 1.07 1.07 0 0 1-1.74-1.16L8.5 6.22v3.8a1.07 1.07 0 1 1-.89-.02V6.15a1.07 1.07 0 0 1-.58-1.4l-1.58-1.6-4.2 4.2a.9.9 0 0 0 0 1.27l6.12 6.12a.9.9 0 0 0 1.27 0l6.09-6.09a.9.9 0 0 0 0-1.27"/>
144
+ </symbol>`,B0=`<symbol id="file-tree-builtin-go" viewBox="0 0 16 16">
145
+ <path fill="currentColor" fill-rule="evenodd" d="M4.41 4.57A3.2 3.2 0 0 1 6.87 5q.74.49 1.08 1.29.08.12-.1.16l-1.55.4c-.14.03-.15.04-.27-.1a1 1 0 0 0-.44-.34 1.6 1.6 0 0 0-1.68.14q-.95.61-.94 1.73c0 .73.52 1.33 1.25 1.43q.95.1 1.58-.6l.25-.34h-1.8c-.19 0-.24-.12-.17-.27.12-.28.34-.76.47-1a.3.3 0 0 1 .24-.14h2.98a4 4 0 0 1 .64-1.19 4 4 0 0 1 2.6-1.52 3.5 3.5 0 0 1 2.64.46q1.13.73 1.31 2.04a3.5 3.5 0 0 1-1.06 3.09q-.93.92-2.23 1.17l-.74.08a3.5 3.5 0 0 1-2.27-.8 3 3 0 0 1-.93-1.42 4 4 0 0 1-.39.61 4 4 0 0 1-2.64 1.56 3.3 3.3 0 0 1-2.5-.6 3 3 0 0 1-1.18-2.03 3.5 3.5 0 0 1 .8-2.67 4 4 0 0 1 2.6-1.58M13.1 7.5a1.53 1.53 0 0 0-1.9-1.21q-1.3.3-1.62 1.59a1.5 1.5 0 0 0 .85 1.72q.77.33 1.52-.05a2 2 0 0 0 1.18-1.74q0-.17-.03-.3" clip-rule="evenodd"/>
146
+ </symbol>`,$0=`<symbol id="file-tree-builtin-graphql" viewBox="0 0 16 16">
147
+ <path fill="currentColor" fill-rule="evenodd" d="M8 1a1.25 1.25 0 0 1 1.18 1.65l2.8 1.61q.33-.25.77-.26a1.25 1.25 0 0 1 .48 2.4v3.2a1.25 1.25 0 1 1-1.25 2.13l-2.8 1.62A1.25 1.25 0 0 1 8 15a1.25 1.25 0 0 1-1.18-1.65l-2.8-1.62q-.33.26-.77.27a1.25 1.25 0 0 1-.48-2.4V6.4a1.25 1.25 0 1 1 1.25-2.14l2.8-1.61A1.25 1.25 0 0 1 8 1M4.44 11.14l-.06.13 2.75 1.58a1.25 1.25 0 0 1 1.74 0l2.74-1.58-.05-.13zm3.89-7.68a1.3 1.3 0 0 1-.66 0L4.03 9.77q.37.3.45.78h7.04q.08-.48.45-.78zM4.38 4.73a1.24 1.24 0 0 1-1.02 1.76v3.02l.13.01 3.67-6.35-.03-.02zm4.46-1.56 3.67 6.35.13-.01V6.49a1.25 1.25 0 0 1-1.03-1.76L8.87 3.15z" clip-rule="evenodd"/>
148
+ </symbol>`,j0=`<symbol id="file-tree-builtin-html" viewBox="0 0 16 16">
149
+ <path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
150
+ <path fill="currentColor" d="M10.48 3.76a.5.5 0 0 1 .4.58L10.6 5.8h1.14a.5.5 0 0 1 0 1h-1.32L10 9.2h1.08a.5.5 0 0 1 0 1H9.8l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H6.4l-.3 1.64a.5.5 0 1 1-.98-.18l.27-1.46H4.25a.5.5 0 0 1 0-1h1.32L6 6.8H4.93a.5.5 0 0 1 0-1H6.2l.3-1.64a.5.5 0 1 1 .98.18L7.2 5.8h2.4l.3-1.64a.5.5 0 0 1 .58-.4M6.58 9.2h2.4l.44-2.4h-2.4z" class="fg"/>
151
+ </symbol>`,q0=`<symbol id="file-tree-builtin-image" viewBox="0 0 16 16">
152
+ <path fill="currentColor" d="M12.5 2A2.5 2.5 0 0 1 15 4.5v4.67l-4.05-3.54-4.08 4.08-3-2L1 10.6V4.5A2.5 2.5 0 0 1 3.5 2z" opacity=".3"/>
153
+ <path fill="currentColor" d="M15 10.5v1a2.5 2.5 0 0 1-2.5 2.5h-9a2.5 2.5 0 0 1-2.46-2.04L4 9l3 2 4-4zm-7-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"/>
154
+ </symbol>`,U0=`<symbol id="file-tree-builtin-javascript" viewBox="0 0 16 16">
155
+ <path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
156
+ <path fill="currentColor" d="M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66M3.5 9.5h.98c0 .76.15.92.85.92.77 0 .94-.18.94-1.02V5.1h1v4.34c0 1.54-.35 1.87-1.92 1.87-1.55 0-1.89-.32-1.86-1.8"/>
157
+ </symbol>`,W0=`<symbol id="file-tree-builtin-json" viewBox="0 0 16 16">
158
+ <path fill="currentColor" d="M13.25 11.5V9.75a.5.5 0 0 1 .36-.48l.55-.15a1.16 1.16 0 0 0 0-2.24l-.55-.15a.5.5 0 0 1-.36-.48V4.5a2.5 2.5 0 0 0-2.5-2.5h-.25a.5.5 0 0 0 0 1h.25a1.5 1.5 0 0 1 1.5 1.5v1.75a1.5 1.5 0 0 0 1.09 1.44l.54.15a.16.16 0 0 1 0 .32l-.54.15a1.5 1.5 0 0 0-1.09 1.44v1.75a1.5 1.5 0 0 1-1.5 1.5h-.25a.5.5 0 0 0 0 1h.25a2.5 2.5 0 0 0 2.5-2.5m-10.5 0V9.75a.5.5 0 0 0-.36-.48l-.55-.15a1.16 1.16 0 0 1 0-2.24l.55-.15a.5.5 0 0 0 .36-.48V4.5A2.5 2.5 0 0 1 5.25 2h.25a.5.5 0 0 1 0 1h-.25a1.5 1.5 0 0 0-1.5 1.5v1.75a1.5 1.5 0 0 1-1.09 1.44l-.54.15a.16.16 0 0 0 0 .32l.54.15a1.5 1.5 0 0 1 1.09 1.45v1.74a1.5 1.5 0 0 0 1.5 1.5h.25a.5.5 0 0 1 0 1h-.25a2.5 2.5 0 0 1-2.5-2.5"/>
159
+ </symbol>`,G0=`<symbol id="file-tree-builtin-markdown" viewBox="0 0 16 16">
160
+ <path fill="currentColor" d="M1 12V4h2l2 2.5L7 4h2v8H7V7.5l-2 2-2-2V12zm9-3 3 3.5L16 9h-2V4h-2v5z"/>
161
+ </symbol>`,K0=`<symbol id="file-tree-builtin-mcp" viewBox="0 0 16 16">
162
+ <path fill="currentColor" d="M9.26-.04a3 3 0 0 1 2 .82 2.8 2.8 0 0 1 .8 2.35 2.9 2.9 0 0 1 2.41.8l.03.02a2.74 2.74 0 0 1 0 3.94l-5.8 5.69-.04.06-.02.07q0 .04.02.07.01.04.04.06l1.2 1.17a.55.55 0 0 1 0 .79.6.6 0 0 1-.81 0l-1.2-1.17a1.3 1.3 0 0 1 0-1.84L13.7 7.1a1.65 1.65 0 0 0 .37-1.82 2 2 0 0 0-.37-.54l-.03-.03a1.73 1.73 0 0 0-2.4 0L6.47 9.4l-.07.06a.58.58 0 0 1-.92-.18.6.6 0 0 1 .12-.6l4.85-4.76a1.65 1.65 0 0 0 0-2.36 1.73 1.73 0 0 0-2.4 0l-6.43 6.3a.6.6 0 0 1-.8 0 .55.55 0 0 1 0-.8L7.25.79a3 3 0 0 1 2-.82"/>
163
+ <path fill="currentColor" d="M9.26 2.19a.6.6 0 0 1 .52.34.6.6 0 0 1 0 .43l-.12.18L4.9 7.79a1.65 1.65 0 0 0 0 2.36 1.73 1.73 0 0 0 2.4 0l4.75-4.66a.58.58 0 0 1 .93.18.6.6 0 0 1-.12.61l-4.75 4.66a2.9 2.9 0 0 1-4.01 0 2.75 2.75 0 0 1-.62-3.04A3 3 0 0 1 4.1 7l4.74-4.65a.6.6 0 0 1 .4-.16"/>
164
+ </symbol>`,Y0=`<symbol id="file-tree-builtin-nextjs" viewBox="0 0 16 16">
165
+ <defs>
166
+ <linearGradient id="a" x1="4.522" x2="14" y1="3.943" y2="16" gradientUnits="userSpaceOnUse">
167
+ <stop stop-color="currentColor"/>
168
+ <stop offset="1" stop-color="currentColor" stop-opacity="0"/>
169
+ </linearGradient>
170
+ </defs>
171
+ <path fill="currentColor" d="M3 2h1.522v9.09H3z"/>
172
+ <path fill="url(#a)" d="M4.903 2 15 15.075q-.565.5-1.195.925L4.522 3.943z"/>
173
+ <path fill="currentColor" d="M12.172 2h-1.508v9.094h1.508z"/>
174
+ </symbol>`,X0=`<symbol id="file-tree-builtin-npm" viewBox="0 0 16 16">
175
+ <path fill="currentColor" d="M2 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1z" class="vector" opacity=".2"/>
176
+ <path fill="currentColor" d="M10.5 13H13V3H3v10h5V5.5h2.5z"/>
177
+ </symbol>`,Z0=`<symbol id="file-tree-builtin-oxc" viewBox="0 0 16 16">
178
+ <path fill="currentColor" d="M9.5 1a.5.5 0 0 1 .5.5V3h3.5a.5.5 0 0 1 .38.83L10.5 7.69v1.44q.41.04.95-.16a4 4 0 0 0 .72-.35l.04-.03h.01a.5.5 0 0 1 .67.1l2 2.5a.5.5 0 0 1 0 .62c-.76.96-3.14 2.69-6.89 2.69s-6.13-1.73-6.89-2.69a.5.5 0 0 1 0-.62l2-2.5a.5.5 0 0 1 .67-.1l.05.03.16.09q.22.13.56.26.54.2.95.16V7.69L2.12 3.83A.5.5 0 0 1 2.5 3H6V1.5a.5.5 0 0 1 .5-.5zM7 3.5a.5.5 0 0 1-.5.5H3.6l2.78 3.17a.5.5 0 0 1 .12.33v2a.5.5 0 0 1-.28.45c-.7.35-1.5.15-2.02-.05a5 5 0 0 1-.58-.26l-1.46 1.84c.82.78 2.8 2.02 5.84 2.02s5.02-1.24 5.84-2.02l-1.46-1.83a5 5 0 0 1-.58.26c-.52.2-1.33.39-2.02.04a.5.5 0 0 1-.28-.45v-2a.5.5 0 0 1 .12-.33L12.4 4H9.5a.5.5 0 0 1-.5-.5V2H7z"/>
179
+ </symbol>`,Q0=`<symbol id="file-tree-builtin-postcss" viewBox="0 0 16 16">
180
+ <path fill="currentColor" d="M14.5 8a6.5 6.5 0 0 0-5.9-6.47l5.42 8.93A7 7 0 0 0 14.5 8M2.88 12A6.5 6.5 0 0 0 8 14.5c2.08 0 3.93-.98 5.12-2.5zm8.62-1h1.68L11.5 8.24zm-1-.55a4 4 0 0 1-.7.55h.7zM8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M5.5 11h.7a4 4 0 0 1-.7-.55zm-2.68 0H4.5V8.24zm3.76-6.2A4 4 0 0 1 8 4.5q.76 0 1.42.3L8 2.46zM1.5 8q0 1.31.48 2.46L7.4 1.53A6.5 6.5 0 0 0 1.5 8m14 0a7.5 7.5 0 0 1-.99 3.72l-.01.03-.02.03A7.5 7.5 0 0 1 8 15.5a7.5 7.5 0 0 1-6.5-3.75l-.01-.03A7.5 7.5 0 1 1 15.5 8"/>
181
+ </symbol>`,J0=`<symbol id="file-tree-builtin-prettier" viewBox="0 0 16 16">
182
+ <path fill="currentColor" d="M6 12v1H4.93v-1zm1-2v1H2v-1zm6-4v1h-3V6zm-1-4v1H9V2z"/>
183
+ <path fill="currentColor" d="M11.5 10v1H8v-1zM5 6v1H2V6zm5-2v1H9V4z" opacity=".8"/>
184
+ <path fill="currentColor" d="M6 14v1H2v-1zm-.5-6v1H2V8zM13 4v1h-3V4zM4.93 2v1H2V2z" opacity=".6"/>
185
+ <path fill="currentColor" d="M4.93 12v1H2v-1zM13 8v1H9V8zM5.5 4v1H2V4zM9 2v1H4.93V2z" opacity=".4"/>
186
+ </symbol>`,em=`<symbol id="file-tree-builtin-python" viewBox="0 0 16 16">
187
+ <path fill="currentColor" d="M8.33 8.4H10c1.16 0 1.9-.73 1.9-1.86V5.08q0-.24.25-.24h.74c.75 0 1.33.32 1.66.97q.4.73.41 1.46c.09.9.09 1.78-.24 2.67-.25.73-.75 1.3-1.58 1.46h-4.8c-.08 0-.25 0-.25.08v.4s.17.09.25.09h2.82q.34-.02.33.32v1.06c0 .56-.25.97-.75 1.13-.41.16-.83.33-1.24.4a7 7 0 0 1-2.98-.07 3 3 0 0 1-1.16-.49c-.33-.32-.58-.65-.5-1.14v-2.91c0-1.13.67-1.78 1.82-1.78q.89-.1 1.66-.08m2.32 4.86a.65.65 0 0 0-.66-.65c-.34 0-.67.33-.67.65s.33.57.67.65a.65.65 0 0 0 .66-.65" class="bg" opacity=".8"/>
188
+ <path fill="currentColor" d="M7.67 7.6H6c-1.16 0-1.9.73-1.9 1.86v1.46q0 .24-.25.24h-.74c-.75 0-1.33-.32-1.66-.97a3 3 0 0 1-.41-1.46 6 6 0 0 1 .24-2.67c.25-.73.75-1.3 1.58-1.46h4.8c.08 0 .25 0 .25-.08v-.4s-.17-.09-.25-.09H4.85c-.24 0-.33-.08-.33-.32V2.65c0-.56.25-.97.75-1.13.41-.16.83-.33 1.24-.4a7 7 0 0 1 2.98.07c.41.09.83.25 1.16.49.33.32.58.65.5 1.13v2.92c0 1.14-.67 1.78-1.82 1.78-.58.08-1.16.08-1.66.08M5.35 2.73c0 .33.25.65.66.65.33 0 .66-.32.66-.65 0-.32-.33-.56-.66-.64a.65.65 0 0 0-.66.64" class="fg"/>
189
+ </symbol>`,tm=`<symbol id="file-tree-builtin-react" viewBox="0 0 16 16">
190
+ <path fill="currentColor" d="M8 6.65c.73 0 1.31.6 1.31 1.35S8.73 9.35 8 9.35 6.69 8.75 6.69 8 7.27 6.65 8 6.65"/>
191
+ <path fill="currentColor" fill-rule="evenodd" d="M8 2.55c1.3-.99 2.59-1.34 3.5-.8.92.55 1.27 1.87 1.08 3.53C14.06 5.94 15 6.9 15 8s-.94 2.06-2.42 2.72c.19 1.65-.16 2.98-1.08 3.52-.91.55-2.2.2-3.5-.8-1.3 1-2.58 1.35-3.5.8-.91-.54-1.27-1.87-1.08-3.52C1.94 10.06 1 9.1 1 8s.94-2.06 2.42-2.72c-.19-1.66.17-2.98 1.08-3.52s2.2-.2 3.5.8M4.26 11.2c-.08 1.34.28 2.03.68 2.26s1.15.22 2.25-.52l.11-.09a12 12 0 0 1-1.24-1.39 11 11 0 0 1-1.8-.41zm7.47-.15q-.83.27-1.79.41-.6.8-1.24 1.4l.11.08c1.1.74 1.86.76 2.25.52.4-.23.76-.92.68-2.26zm-3.04.54a14 14 0 0 1-1.38 0q.34.38.69.7.35-.32.7-.7M8 5.29q-.76 0-1.47.1A13 13 0 0 0 5.07 8a14 14 0 0 0 1.46 2.62 13 13 0 0 0 2.94 0A13 13 0 0 0 10.93 8a14 14 0 0 0-1.46-2.62A13 13 0 0 0 8 5.3M4.64 9.18q-.15.5-.25.96.44.16.94.27a15 15 0 0 1-.7-1.23m6.73 0a15 15 0 0 1-.7 1.23q.5-.11.95-.27a10 10 0 0 0-.25-.96M3.44 6.26C2.27 6.86 1.87 7.53 1.87 8s.4 1.14 1.57 1.74l.13.07q.18-.88.55-1.81a12 12 0 0 1-.55-1.8q-.07.02-.13.06m8.99-.07A12 12 0 0 1 11.88 8q.36.94.55 1.8l.13-.06c1.17-.6 1.56-1.27 1.56-1.74s-.39-1.14-1.56-1.74zm-7.1-.6q-.5.11-.94.27.1.46.25.96a15 15 0 0 1 .69-1.23m5.34 0a15 15 0 0 1 .7 1.23q.14-.5.24-.96-.44-.15-.94-.27M7.18 3.06c-1.09-.74-1.85-.76-2.24-.52s-.76.92-.69 2.26l.01.15a11 11 0 0 1 1.8-.41q.6-.8 1.24-1.4zm3.88-.52c-.4-.24-1.15-.22-2.25.52l-.12.08q.65.6 1.25 1.4.96.15 1.8.41v-.14c.08-1.35-.28-2.04-.68-2.27M8 3.7a10 10 0 0 0-.7.7 14 14 0 0 1 1.4 0 10 10 0 0 0-.7-.7" clip-rule="evenodd"/>
192
+ </symbol>`,nm=`<symbol id="file-tree-builtin-ruby" viewBox="0 0 16 16">
193
+ <path fill="currentColor" fill-rule="evenodd" d="M11.04 2c.48 0 .92.23 1.18.6l2.54 3.65c.37.52.3 1.23-.15 1.69l-5.58 5.64a1.47 1.47 0 0 1-2.06 0L1.39 7.94a1.3 1.3 0 0 1-.15-1.7l2.54-3.63q.2-.3.5-.45.33-.16.68-.16zm.84 2.17a.5.5 0 0 0-.7-.05L8 6.84 4.83 4.12a.5.5 0 0 0-.65.76L6.65 7H3.5a.5.5 0 0 0 0 1h9a.5.5 0 0 0 0-1H9.35l2.48-2.12a.5.5 0 0 0 .05-.7" clip-rule="evenodd"/>
194
+ </symbol>`,rm=`<symbol id="file-tree-builtin-rust" viewBox="0 0 16 16">
195
+ <path fill="currentColor" fill-rule="evenodd" d="M8 .8a.2.2 0 0 1 .18.1l.38.6.16.02.5-.53.01-.01a.2.2 0 0 1 .33.08l.25.68.16.05.59-.43h.02a.2.2 0 0 1 .3.14l.12.71.15.08.65-.3a.2.2 0 0 1 .2.02.2.2 0 0 1 .1.18l-.03.72.12.1.71-.16a.2.2 0 0 1 .25.25l-.17.7q.06.06.1.13l.73-.03A.2.2 0 0 1 14 4a.2.2 0 0 1 .02.2l-.3.66.08.14.71.12a.2.2 0 0 1 .14.32l-.43.59.05.16.68.25a.2.2 0 0 1 .07.35l-.53.49.01.16.62.38a.2.2 0 0 1 0 .36l-.62.38-.01.16.53.5a.2.2 0 0 1-.07.34l-.68.25-.05.16.43.59a.2.2 0 0 1-.14.32l-.72.12-.07.15.3.65a.2.2 0 0 1-.02.2.2.2 0 0 1-.18.1l-.72-.03-.1.13.16.7a.2.2 0 0 1-.25.25l-.7-.17-.13.1.03.73a.2.2 0 0 1-.1.18.2.2 0 0 1-.2.02l-.66-.3-.14.08-.12.71a.2.2 0 0 1-.32.14l-.59-.43-.16.05-.25.68a.2.2 0 0 1-.34.07l-.5-.53-.16.01-.38.62a.2.2 0 0 1-.36 0l-.38-.62-.16-.01-.5.53a.2.2 0 0 1-.34-.07l-.25-.68-.16-.05-.59.43a.2.2 0 0 1-.32-.14L5 13.78l-.15-.07-.65.3a.2.2 0 0 1-.2-.02.2.2 0 0 1-.1-.18l.03-.72-.13-.1-.7.16a.2.2 0 0 1-.25-.25l.17-.7-.1-.13-.73.03a.2.2 0 0 1-.2-.3l.3-.66-.08-.14-.71-.12a.2.2 0 0 1-.14-.32l.43-.59-.05-.16-.68-.25A.2.2 0 0 1 1 9.22l.53-.5-.02-.16-.6-.38A.2.2 0 0 1 .8 8a.2.2 0 0 1 .1-.18l.6-.38.02-.16-.53-.5a.2.2 0 0 1 .07-.34l.68-.25.05-.16-.43-.59a.2.2 0 0 1 .14-.32L2.2 5l.08-.15L2 4.2a.2.2 0 0 1 .2-.3l.72.03.1-.13-.16-.7a.2.2 0 0 1 .25-.25l.7.16.13-.1-.03-.72A.2.2 0 0 1 4 2a.2.2 0 0 1 .2-.02l.65.3L5 2.2l.12-.71v-.03a.2.2 0 0 1 .32-.1l.59.41.16-.04.25-.68.01-.02A.2.2 0 0 1 6.8.99l.49.53.16-.02.38-.61.02-.02A.2.2 0 0 1 8 .79M6.8 9.45h1.26l.06.01q.03.01.03.05v1.52q0 .07-.09.06h-4.5A5.4 5.4 0 0 0 8 13.42a5.4 5.4 0 0 0 4.45-2.33h-2.42c-.36 0-.68-.5-.77-.75-.08-.22-.2-.91-.25-1.12-.15-.61-.59-.71-.78-.73H6.8zM8 2.58a5.4 5.4 0 0 0-4.07 1.85h5.74l.17.02c.23.03.6.12.96.35.34.23.83.68.83 1.4 0 .66-.55 1.16-1.08 1.5.42.33.7.53.86 1.44.04.17.34.32.62.29.29-.03.62-.16.62-.75v-.24q0-.1.07-.1h.68A5.43 5.43 0 0 0 8 2.59M2.96 6.03a5.4 5.4 0 0 0-.19 3.37h1.66V6.03zM6.8 7.06h1.66c.35 0 .77-.12.77-.47 0-.42-.55-.53-.65-.53H6.8z" clip-rule="evenodd"/>
196
+ </symbol>`,im=`<symbol id="file-tree-builtin-sass" viewBox="0 0 16 16">
197
+ <path fill="currentColor" fill-rule="evenodd" d="M8.08 1.44c2.41-.91 4.96-.37 5.35 1.27.39 1.62-.92 3.56-2.6 4.25a5 5 0 0 1-3.26.35c-.58-.2-.92-.62-1-.85-.03-.09-.09-.24 0-.3.05-.03.08-.02.22.15s.7.6 1.75.48c2.78-.34 4.45-2.64 3.92-3.88-.37-.87-2.5-1.26-5.18.16C4.03 4.81 3.85 6.24 3.82 6.8c-.08 1.5 1.73 2.28 2.7 3.4q.04.03.07.08c.3-.12.7-.19 1.35-.2 1.58-.03 2.47 1.08 2.43 2.08-.03.78-.7 1.1-.82 1.13-.1.01-.14.02-.15-.06q-.03-.06.13-.15c.16-.09.42-.3.48-.72.05-.43-.24-1.44-1.76-1.63a3 3 0 0 0-1.33.08c.27.62.32 1.87-.29 2.83-.63 1-1.8 1.61-2.93 1.27-.37-.1-.93-.92-.45-2.05.46-1.07 2.4-2.12 2.66-2.26-.9-.83-3.08-1.95-3.4-3.65-.08-.49.13-1.65 1.46-2.98a12 12 0 0 1 4.11-2.52m-1.88 9.7c-.01.01-.9.47-1.52 1.17-.59.66-.75 1.48-.43 1.69.3.18 1-.04 1.51-.62a3 3 0 0 0 .5-.9q.2-.64.02-1.39z" clip-rule="evenodd"/>
198
+ </symbol>`,om=`<symbol id="file-tree-builtin-stylelint" viewBox="0 0 16 16">
199
+ <path fill="currentColor" d="M4 3v3.5l1.5-1L7 15 .5 6l1-1.5L0 3l2.5-2h1zm12 0-1.5 1.5 1 1.5L9 15l1.5-9.5 1.5 1V3l.5-2h1zm-8 8.5a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1m0-3a.5.5 0 1 1 0 1 .5.5 0 0 1 0-1"/>
200
+ <path fill="currentColor" d="M6.5 2.5V4l-2 1.5v-4zm5 3L9.5 4V2.5l2-1zM9 4H7V2.5h2z"/>
201
+ </symbol>`,sm=`<symbol id="file-tree-builtin-svelte" viewBox="0 0 16 16">
202
+ <path fill="currentColor" d="m3.98 3.7 3.36-2.08a4.5 4.5 0 0 1 5.9 1.23 4 4 0 0 1 .7 3.02q-.16.75-.58 1.4c.42.77.56 1.66.4 2.52a3.7 3.7 0 0 1-1.57 2.4l-.17.1-3.36 2.09a4.5 4.5 0 0 1-5.9-1.23 4 4 0 0 1-.66-1.44 4 4 0 0 1-.04-1.58 4 4 0 0 1 .58-1.4 4 4 0 0 1-.4-2.52 3.7 3.7 0 0 1 1.57-2.4zl3.36-2.08zm7.87 0a2.7 2.7 0 0 0-1.26-.95 2.7 2.7 0 0 0-1.6-.07 3 3 0 0 0-.52.2l-.16.09-3.36 2.08a2 2 0 0 0-.69.64 2 2 0 0 0-.36.86 2.3 2.3 0 0 0 .42 1.81A2.7 2.7 0 0 0 7.18 9.4q.28-.06.53-.2l.16-.09 1.28-.79.2-.09a.8.8 0 0 1 .87.31.7.7 0 0 1 .13.55.7.7 0 0 1-.24.4l-.08.05-3.36 2.08-.2.09a1 1 0 0 1-.49-.02 1 1 0 0 1-.38-.3 1 1 0 0 1-.13-.37v-.1l.01-.13-.13-.03a4 4 0 0 1-1.1-.5l-.2-.14-.18-.12-.07.18-.08.3a2.3 2.3 0 0 0 .43 1.82q.45.64 1.19.93.73.28 1.51.14l.16-.04q.27-.07.52-.2l.16-.09 3.36-2.08q.4-.25.69-.64.27-.4.36-.86a2.3 2.3 0 0 0-.42-1.82 2.7 2.7 0 0 0-1.27-.95 2.7 2.7 0 0 0-1.6-.08q-.27.07-.52.2l-.16.1-1.28.79-.2.09a1 1 0 0 1-.49-.03 1 1 0 0 1-.38-.29.7.7 0 0 1-.13-.54.7.7 0 0 1 .24-.4l.08-.06L9.33 4.4l.2-.1a.8.8 0 0 1 .87.32 1 1 0 0 1 .13.38v.22l.11.04q.6.18 1.12.5l.2.14.17.12.06-.19.08-.3a2.3 2.3 0 0 0-.42-1.81z"/>
203
+ </symbol>`,lm=`<symbol id="file-tree-builtin-svg" viewBox="0 0 16 16">
204
+ <path fill="currentColor" d="M5 7a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2z"/>
205
+ <path fill="currentColor" d="M6 1a5 5 0 0 1 4.58 3H7a3 3 0 0 0-3 3v3.58A5 5 0 0 1 6 1" opacity=".5"/>
206
+ </symbol>`,am=`<symbol id="file-tree-builtin-svgo" viewBox="0 0 16 16">
207
+ <path fill="currentColor" d="M9.43 4.8A.6.6 0 1 1 9.19 6l-.56.96a1.2 1.2 0 0 1 .32 1.58l.7.53a.89.89 0 1 1-.17.22l-.7-.52a1.2 1.2 0 0 1-1.4.25l-.56.87a.75.75 0 1 1-.57-.2 1 1 0 0 1 .32.05l.56-.87a1.2 1.2 0 0 1-.4-1.24l-1.2-.47a.56.56 0 1 1 .1-.28v.02l1.2.47a1.2 1.2 0 0 1 1.56-.55l.56-.97a.6.6 0 0 1-.15-.64.6.6 0 0 1 .63-.4"/>
208
+ <path fill="currentColor" fill-rule="evenodd" d="M9.17 1q.16.63.27 1.26a6 6 0 0 1 1.61.67q.52-.38 1.08-.71l1.65 1.64q-.32.56-.68 1.05.48.78.72 1.67.6.09 1.18.25v2.32q-.55.15-1.11.24a6 6 0 0 1-.7 1.82q.31.44.59.91l-1.65 1.65-.85-.55a6 6 0 0 1-1.9.83q-.08.47-.2.95H6.84q-.12-.46-.2-.93a6 6 0 0 1-1.96-.81q-.39.27-.8.51l-1.65-1.65q.25-.43.53-.84a6 6 0 0 1-.75-1.9L1 9.16V6.83q.54-.14 1.09-.24a6 6 0 0 1 .77-1.74q-.33-.47-.63-.98l1.65-1.65q.54.32 1.03.68a6 6 0 0 1 1.66-.66q.1-.61.26-1.24zM7.96 3.73a4 4 0 0 0-1.74.36 4.5 4.5 0 0 0-2.3 2.3 4.4 4.4 0 0 0-.1 3.29l.03.06a4.4 4.4 0 0 0 2.4 2.47 4.4 4.4 0 0 0 3.48-.02l.03-.02a4.4 4.4 0 0 0 2.3-2.42l.06-.14a4.4 4.4 0 0 0-.2-3.4 4.4 4.4 0 0 0-2.13-2.07L9.47 4a4 4 0 0 0-1.51-.27" clip-rule="evenodd"/>
209
+ </symbol>`,cm=`<symbol id="file-tree-builtin-swift" viewBox="0 0 16 16">
210
+ <path fill="currentColor" d="M9.63 1c6.15 4.35 4.16 9.15 4.16 9.15s1.75 2.05 1.04 3.85c0 0-.72-1.26-1.93-1.26-1.17 0-1.85 1.26-4.2 1.26C3.47 14 1 9.46 1 9.46c4.71 3.22 7.93.94 7.93.94C6.8 9.12 2.29 3 2.29 3c3.93 3.47 5.63 4.39 5.63 4.39-1.01-.87-3.86-5.13-3.86-5.13C6.34 4.66 10.86 8 10.86 8c1.28-3.7-1.23-7-1.23-7"/>
211
+ </symbol>`,um=`<symbol id="file-tree-builtin-table" viewBox="0 0 16 16">
212
+ <path fill="currentColor" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" opacity=".4"/>
213
+ <path fill="currentColor" d="M11.5 8a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-7a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5zM5 12h2.5v-1H5zm3.5 0H11v-1H8.5zM5 10h2.5V9H5zm3.5 0H11V9H8.5zm1-9a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z" class="fg"/>
214
+ </symbol>`,dm=`<symbol id="file-tree-builtin-tailwind" viewBox="0 0 16 16">
215
+ <path fill="currentColor" fill-rule="evenodd" d="M8 4Q5.2 4 4.5 6.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C8.98 7.23 9.77 8 11.5 8q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C10.52 4.77 9.73 4 8 4M4.5 8Q1.7 8 1 10.67q1.05-1.34 2.45-1c.53.12.91.5 1.33.9C5.48 11.23 6.26 12 8 12q2.8 0 3.5-2.67-1.05 1.34-2.45 1c-.53-.12-.91-.5-1.33-.9C7.02 8.77 6.24 8 4.5 8" clip-rule="evenodd"/>
216
+ </symbol>`,hm=`<symbol id="file-tree-builtin-terraform" viewBox="0 0 16 16">
217
+ <path fill="currentColor" d="M1 0v5.05l4.35 2.53V2.53zm9.18 5.34L5.83 2.82v5.05l4.35 2.53zm.47 5.06V5.34L15 2.82v5.05zm-.48 5.6-4.35-2.53V8.42l4.35 2.53z"/>
218
+ </symbol>`,fm=`<symbol id="file-tree-builtin-text" viewBox="0 0 16 16">
219
+ <path fill="currentColor" fill-rule="evenodd" d="M8 4a3 3 0 0 0 3 3h3v5.5a2.5 2.5 0 0 1-2.5 2.5h-7A2.5 2.5 0 0 1 2 12.5v-9A2.5 2.5 0 0 1 4.5 1H8z" class="bg" clip-rule="evenodd" opacity=".4"/>
220
+ <path fill="currentColor" d="M8.5 11a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1zm2-2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1zm-1-8a.5.5 0 0 1 .354.146l4 4A.5.5 0 0 1 14 5.5V6h-3a2 2 0 0 1-2-2V1z"/>
221
+ </symbol>`,pm=`<symbol id="file-tree-builtin-typescript" viewBox="0 0 16 16">
222
+ <path fill="currentColor" d="M8 1C2.24 1 1 2.24 1 8s1.24 7 7 7 7-1.24 7-7-1.24-7-7-7" class="bg" opacity=".2"/>
223
+ <path fill="currentColor" d="M8.1 9.64h.95c.04.62.28.76 1.28.76s1.2-.14 1.2-.85c0-.66-.2-.85-1.2-1.07-1.79-.38-2.18-.7-2.18-1.86C8.15 5.3 8.54 5 10.31 5c1.67 0 2.04.26 2.07 1.42h-.95c-.02-.43-.23-.53-1.1-.53-1 0-1.22.14-1.22.74 0 .52.22.7 1.24.92 1.76.38 2.15.73 2.15 2 0 1.44-.4 1.75-2.24 1.75-1.8 0-2.18-.3-2.15-1.66m-3 1.57V5.99H3.5v-.9h4.21v.9H6.1v5.22z"/>
224
+ </symbol>`,gm=`<symbol id="file-tree-builtin-vite" viewBox="0 0 16 16">
225
+ <path fill="currentColor" d="M8.57 14.87c-.18.26-.55.11-.55-.22v-3.18l-.05-.27-.13-.22-.2-.15-.24-.06H4.29c-.26 0-.4-.32-.26-.55L6.08 7c.3-.46 0-1.1-.5-1.1H1.8c-.25 0-.4-.32-.25-.56l2.65-4.2A.3.3 0 0 1 4.46 1h7.9c.26 0 .4.32.26.55l-2.05 3.23c-.29.46 0 1.1.5 1.1h3.12c.26 0 .4.34.24.57z"/>
226
+ </symbol>`,mm=`<symbol id="file-tree-builtin-vscode" viewBox="0 0 16 16">
227
+ <path fill="currentColor" d="m5.11 9.68-2.4 1.84a.6.6 0 0 1-.75-.04l-.77-.7a.6.6 0 0 1 0-.87L3.28 8zm5.52-8.42a.51.51 0 0 1 .87.36V4.8L7.32 8 5.1 6.32z" opacity=".75"/>
228
+ <path fill="currentColor" d="M11.1 14.99h.03zM1.96 4.52a.6.6 0 0 1 .75-.04l8.8 6.71v3.19a.51.51 0 0 1-.88.36L1.19 6.1a.6.6 0 0 1 0-.87z" opacity=".65"/>
229
+ <path fill="currentColor" d="M11.62 14.91a.9.9 0 0 1-1-.17.51.51 0 0 0 .88-.36V1.62a.51.51 0 0 0-.87-.36.9.9 0 0 1 1-.17l2.87 1.39a.9.9 0 0 1 .5.8v9.44a.9.9 0 0 1-.5.8z"/>
230
+ </symbol>`,bm=`<symbol id="file-tree-builtin-vue" viewBox="0 0 16 16">
231
+ <path fill="currentColor" d="M9.62 2.25 8 5.02 6.38 2.25H1l7 12 7-12z" opacity=".5"/>
232
+ <path fill="currentColor" d="M9.54 2.25 8 4.95l-1.54-2.7H4l4 7 4-7z"/>
233
+ </symbol>`,ym=`<symbol id="file-tree-builtin-wasm" viewBox="0 0 16 16">
234
+ <path fill="currentColor" d="M13 1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h3a2 2 0 1 0 4 0z" class="subtract" opacity=".2"/>
235
+ <path fill="currentColor" d="M4.64 11.4h.02l.8-3.4h.91l.73 3.45L7.88 8h.96l-1.25 5h-.97L5.9 9.6 5.1 13h-1L3 8h.98z"/>
236
+ <path fill="currentColor" fill-rule="evenodd" d="M13 13h-1.02l-.33-1.11H9.9L9.64 13h-.97l1.26-5h1.54zm-2.49-3.77-.42 1.84h1.32l-.49-1.84z" clip-rule="evenodd"/>
237
+ </symbol>`,vm=`<symbol id="file-tree-builtin-webpack" viewBox="0 0 16 16">
238
+ <path fill="currentColor" d="M14.1 11.79 8.26 15v-2.5l3.64-1.94zm.4-.35V4.73l-2.14 1.2v4.3zm-12.6.35L7.74 15v-2.5L4.1 10.56zm-.4-.35V4.73l2.14 1.2v4.3zm.25-7.15 6-3.29v2.42L3.9 5.47l-.03.01zm12.5 0L8.25 1v2.42l3.85 2.05.03.01z" class="bg" opacity=".4"/>
239
+ <path fill="currentColor" d="m7.74 11.93-3.59-1.92v-3.8l3.6 2.02zm.52 0 3.59-1.92v-3.8l-3.6 2.02zM4.4 5.77 8 3.85l3.6 1.93L8 7.8z" class="fg"/>
240
+ </symbol>`,Sm=`<symbol id="file-tree-builtin-yml" viewBox="0 0 16 16">
241
+ <path fill="currentColor" d="M7.5 2A1.5 1.5 0 0 1 9 3.5v3A1.5 1.5 0 0 1 7.5 8h-2v2A1.5 1.5 0 0 0 7 11.5v-1A1.5 1.5 0 0 1 8.5 9h5a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-5A1.5 1.5 0 0 1 7 13.5v-1A2.5 2.5 0 0 1 4.5 10V8h-2A1.5 1.5 0 0 1 1 6.5v-3A1.5 1.5 0 0 1 2.5 2zm1 8a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zm-6-7a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5z"/>
242
+ </symbol>`,xm=`<symbol id="file-tree-builtin-zig" viewBox="0 0 16 16">
243
+ <path fill="currentColor" d="m14.73 1.5-7.29 8.82h4.17l-1.73 2.04H5.76L1.27 14.5l7.3-8.91H4.39l1.73-2.05h4.12z"/>
244
+ <path fill="currentColor" d="M5.21 3.54 3.56 5.6h-.55v4.73h.83L2.1 12.36H1V3.54zm9.79 0v8.82h-4.3l1.74-2.04h.55V5.68h-.83l1.74-2.14z"/>
245
+ </symbol>`,wm=[_0,P0,D0,L0,N0,F0,H0,V0,B0,j0,q0,U0,W0,G0,K0,em,nm,rm,cm,um,fm,pm,`<symbol id="file-tree-builtin-zip" viewBox="0 0 16 16">
246
+ <path fill="currentColor" d="M4.585 2a2 2 0 0 1 1.028.285l1.788 1.072a1 1 0 0 0 .514.143H12A2 2 0 0 1 13.935 5H0V4a2 2 0 0 1 2-2z" class="bg" opacity=".5"/>
247
+ <path fill="currentColor" fill-rule="evenodd" d="M14 12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-1.25h1v-1H0V6h14zM9.9 8.25c-.883 0-1.9.5-1.9.5H7v1h1v1s1.017.5 1.9.5c.884 0 1.6-.672 1.6-1.5s-.716-1.5-1.6-1.5M2 9.75v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1zm-5-1v1h1v-1zm2 0v1h1v-1zm2 0v1h1v-1z" class="fg" clip-rule="evenodd"/>
248
+ </symbol>`],Cm=[I0,k0,T0,E0,A0,R0,M0,z0,O0,$0,Y0,X0,Z0,Q0,J0,tm,im,om,sm,lm,am,dm,hm,gm,mm,bm,ym,vm,Sm,xm];function Sh(t,e){return e.length===0?t:t.replace("</svg>",`
249
+ ${e.join(`
250
+ `)}
251
+ </svg>`)}const Su=Sh(vh,wm),Im={minimal:vh,standard:Su,complete:Sh(Su,Cm)},km={".babelrc":"babel",".babelrc.json":"babel",".bash_profile":"bash",".bashrc":"bash",".browserslistrc":"browserslist",".dockerignore":"docker",".eslintignore":"eslint",".eslintrc":"eslint",".eslintrc.cjs":"eslint",".eslintrc.js":"eslint",".eslintrc.json":"eslint",".eslintrc.yaml":"eslint",".eslintrc.yml":"eslint",".gitattributes":"git",".gitignore":"git",".gitkeep":"git",".gitmodules":"git",".oxlintrc.json":"oxc",".postcssrc":"postcss",".postcssrc.json":"postcss",".postcssrc.yaml":"postcss",".postcssrc.yml":"postcss",".prettierignore":"prettier",".prettierrc":"prettier",".prettierrc.cjs":"prettier",".prettierrc.js":"prettier",".prettierrc.json":"prettier",".prettierrc.mjs":"prettier",".prettierrc.toml":"prettier",".prettierrc.yaml":"prettier",".prettierrc.yml":"prettier",".stylelintignore":"stylelint",".stylelintrc":"stylelint",".stylelintrc.cjs":"stylelint",".stylelintrc.js":"stylelint",".stylelintrc.json":"stylelint",".stylelintrc.mjs":"stylelint",".stylelintrc.yaml":"stylelint",".stylelintrc.yml":"stylelint",".terraform.lock.hcl":"terraform",".zprofile":"bash",".zshenv":"bash",".zshrc":"bash","babel.config.cjs":"babel","babel.config.js":"babel","babel.config.json":"babel","babel.config.mjs":"babel","biome.json":"biome","biome.jsonc":"biome","bootstrap.bundle.js":"bootstrap","bootstrap.bundle.min.js":"bootstrap","bootstrap.css":"bootstrap","bootstrap.js":"bootstrap","bootstrap.min.css":"bootstrap","bootstrap.min.js":"bootstrap","bun.lock":"bun","bun.lockb":"bun","bunfig.toml":"bun","claude.md":"claude","compose.yaml":"docker","compose.yml":"docker","docker-compose.override.yml":"docker","docker-compose.yaml":"docker","docker-compose.yml":"docker",dockerfile:"docker","eslint.config.cjs":"eslint","eslint.config.js":"eslint","eslint.config.mjs":"eslint","eslint.config.mts":"eslint","eslint.config.ts":"eslint",gemfile:"ruby","next.config.js":"nextjs","next.config.mjs":"nextjs","next.config.mts":"nextjs","next.config.ts":"nextjs","postcss.config.cjs":"postcss","postcss.config.js":"postcss","postcss.config.mjs":"postcss","postcss.config.ts":"postcss","prettier.config.cjs":"prettier","prettier.config.js":"prettier","prettier.config.mjs":"prettier",rakefile:"ruby","readme.md":"markdown","stylelint.config.cjs":"stylelint","stylelint.config.js":"stylelint","stylelint.config.mjs":"stylelint","svgo.config.cjs":"svgo","svgo.config.js":"svgo","svgo.config.mjs":"svgo","svgo.config.ts":"svgo","tailwind.config.cjs":"tailwind","tailwind.config.js":"tailwind","tailwind.config.mjs":"tailwind","tailwind.config.ts":"tailwind","vite.config.js":"vite","vite.config.mjs":"vite","vite.config.mts":"vite","vite.config.ts":"vite","webpack.config.babel.js":"webpack","webpack.config.cjs":"webpack","webpack.config.js":"webpack","webpack.config.mjs":"webpack","webpack.config.ts":"webpack"},_m={"7z":"zip",astro:"astro",AUTHORS:"text",avif:"image",bash:"bash",bmp:"image",bz2:"zip",c:"c",cc:"cpp",cfg:"text",CHANGELOG:"text",cjs:"javascript","code-workspace":"vscode",conf:"text",CONTRIBUTORS:"text",cpp:"cpp",csh:"bash",css:"css",csv:"table",cts:"typescript",cxx:"cpp",db:"database",editorconfig:"text",env:"text","env.development":"text","env.local":"text","env.production":"text",eot:"font",erb:"ruby",fish:"bash",gemspec:"ruby",gif:"image",go:"go",gql:"graphql",graphql:"graphql",gz:"zip",h:"c",hh:"cpp",hpp:"cpp",htm:"html",html:"html",hxx:"cpp",icns:"image",ico:"image",ini:"text",inl:"cpp",jar:"zip",jpeg:"image",jpg:"image",js:"javascript",json:"json",json5:"json",jsonc:"json",jsonl:"json",jsx:"javascript",ksh:"bash",less:"css",LICENSE:"text",log:"text",markdown:"markdown",mcp:"mcp",md:"markdown",mdx:"markdown","mdx.tsx":"markdown",mjs:"javascript",mm:"cpp",mts:"typescript",ods:"table",otf:"font",png:"image",postcss:"css",py:"python",pyi:"python",pyw:"python",pyx:"python",rake:"ruby",rar:"zip",rb:"ruby",rs:"rust",rst:"text",rtf:"text",sass:"css",scss:"css",sh:"bash",sql:"database",sqlite:"database",sqlite3:"database",styl:"css",svelte:"svelte",svg:"svg",swift:"swift",tar:"zip",tf:"terraform",tfstate:"terraform",tfvars:"terraform",tgz:"zip",tif:"image",tiff:"image",ts:"typescript",tsv:"table",tsx:"typescript",ttf:"font",txt:"text",vue:"vue",war:"zip",wasm:"wasm",wast:"wasm",wat:"wasm",webp:"image",woff:"font",woff2:"font",xhtml:"html",xls:"table",xlsx:"table",xz:"zip",yaml:"yml",yml:"yml",zig:"zig",zip:"zip",zsh:"bash"},Tm={jsx:"react",sass:"sass",scss:"sass",tsx:"react"},xu=new Set(["bash","c","cpp","css","database","default","font","git","go","html","image","javascript","json","markdown","mcp","python","ruby","rust","swift","table","text","typescript","zip"]),Em=new Set(["complete"]);function Am(t){return Im[t==="none"?"minimal":t]}function Rm(t){return`file-tree-builtin-${t}`}function Pm(t){return t!=="none"&&Em.has(t)}function Mm(t,e,n){if(t==="minimal"||t==="none")return;const r=t==="complete",i=e.toLowerCase(),o=km[i];if(o!=null&&(r||xu.has(o)))return o;for(const s of n){if(r){const a=Tm[s];if(a!=null)return a}const l=_m[s];if(l!=null&&(r||xu.has(l)))return l}return"default"}const ia="file-tree-container",wu="data-file-tree-style",Cu="data-file-tree-unsafe-css",Dm="data-file-tree-scrollbar-measure",Iu="data-file-tree-scrollbar-gutter-measured",Lm="--trees-scrollbar-gutter-measured",hl="header",Bo="context-menu",Nm="context-menu-trigger";function Fm(t){return t.spriteSheet!=null||t.remap!=null||t.byFileName!=null||t.byFileExtension!=null||t.byFileNameContains!=null}function Us(t){return t==null?{set:"complete",colored:!0}:typeof t=="string"?{set:t,colored:!0}:{...t,set:t.set??(Fm(t)?"none":"complete"),colored:t.colored??!0}}const zm=t=>t.trim().toLowerCase(),Om=t=>t.split("/").at(-1)??t,Hm=t=>{const e=t.toLowerCase().split("."),n=[];for(let r=1;r<e.length;r+=1)n.push(e.slice(r).join("."));return n};function No(t,e){return typeof t=="string"?{name:t,remappedFrom:e}:{...t,remappedFrom:e}}function Vm(t){const e=Us(t),n=e.remap,r=new Map;for(const[l,a]of Object.entries(e.byFileName??{}))r.set(l.toLowerCase(),a);const i=new Map;for(const[l,a]of Object.entries(e.byFileExtension??{}))i.set(zm(l),a);const o=Object.entries(e.byFileNameContains??{}).map(([l,a])=>[l.toLowerCase(),a]);return{resolveIcon:(l,a)=>{if(l==="file-tree-icon-file"&&a!=null){const u=Om(a),h=u.toLowerCase(),g=r.get(h);if(g!=null)return No(g,l);for(const[y,v]of o)if(h.includes(y))return No(v,l);const f=Hm(u);for(const y of f){const v=i.get(y);if(v!=null)return No(v,l)}const m=Mm(e.set,u,f);if(m!=null&&e.set!=="none"){if(m==="default"){const y=n==null?void 0:n[l];if(y!=null)return No(y,l)}return{name:Rm(m),remappedFrom:l,token:m}}}const d=n==null?void 0:n[l];return d==null?{name:l}:No(d,l)}}}const oa=Object.freeze({searchPlaceholder:"Search…",contextMenuTrigger:"Options",renameItem:t=>`Rename ${t}`,gitStatusTitles:Object.freeze({added:"Git status: added",deleted:"Git status: deleted",ignored:"Git status: ignored",modified:"Git status: modified",renamed:"Git status: renamed",untracked:"Git status: untracked"}),containsGitStatusTitle:"Contains git status items"});function ku(t){if(t==null)return oa;const e=oa,n=t.gitStatusTitles;return{searchPlaceholder:t.searchPlaceholder??e.searchPlaceholder,contextMenuTrigger:t.contextMenuTrigger??e.contextMenuTrigger,renameItem:t.renameItem??e.renameItem,gitStatusTitles:n==null?e.gitStatusTitles:{added:n.added??e.gitStatusTitles.added,deleted:n.deleted??e.gitStatusTitles.deleted,ignored:n.ignored??e.gitStatusTitles.ignored,modified:n.modified??e.gitStatusTitles.modified,renamed:n.renamed??e.gitStatusTitles.renamed,untracked:n.untracked??e.gitStatusTitles.untracked},containsGitStatusTitle:t.containsGitStatusTitle??e.containsGitStatusTitle}}const fl=5,tc=32,Bm=128;function $o(){return{childIdByNameId:new Map,childIds:[],childPositionById:new Map,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function _u(){return{childIdByNameId:null,childIds:[],childPositionById:null,childVisibleChunkSums:null,totalChildSubtreeNodeCount:0,totalChildVisibleSubtreeCount:0}}function bi(t,e){if(e.childIdByNameId!=null)return e.childIdByNameId;const n=new Map;for(const r of e.childIds){const i=t[r];i!=null&&n.set(i.nameId,r)}return e.childIdByNameId=n,n}function Sl(t){if(t.childPositionById!=null)return t.childPositionById;const e=new Map;for(let n=0;n<t.childIds.length;n++){const r=t.childIds[n];r!=null&&e.set(r,n)}return t.childPositionById=e,e}function Fo(t,e){t.childPositionById!=null&&t.childPositionById.set(e,t.childIds.length),t.childIds.push(e)}function xh(t,e){if(t.childPositionById!=null)for(let n=e;n<t.childIds.length;n++){const r=t.childIds[n];r!=null&&t.childPositionById.set(r,n)}}function pl(t,e){let n=0,r=0;for(const i of e.childIds){const o=t[i];o!=null&&(n+=o.subtreeNodeCount,r+=o.visibleSubtreeCount)}e.totalChildSubtreeNodeCount=n,e.totalChildVisibleSubtreeCount=r,co(t,e)}function nc(t,e,n,r){if(t.totalChildSubtreeNodeCount+=n,t.totalChildVisibleSubtreeCount+=r,t.childVisibleChunkSums==null||r===0)return;const i=Sl(t).get(e);if(i===void 0)return;const o=i>>fl;t.childVisibleChunkSums[o]+=r}function sa(t,e,n){const r=e.childVisibleChunkSums;if(r!=null){let o=n,s=0;for(const l of r){if(o<l){const a=jm(t,e,s,o);return{...a,childVisibleIndex:n-a.localVisibleIndex}}o-=l,s+=tc}throw new Error(`Visible child index ${String(n)} is out of range`)}let i=n;for(let o=0;o<e.childIds.length;o++){const s=e.childIds[o];if(s==null)continue;const l=t[s];if(l!=null){if(i<l.visibleSubtreeCount)return{childIndex:o,childVisibleIndex:n-i,localVisibleIndex:i};i-=l.visibleSubtreeCount}}throw new Error(`Visible child index ${String(n)} is out of range`)}function $m(t,e,n){let r=0;const i=e.childVisibleChunkSums;let o=0;if(i!=null){const s=n>>fl;for(let l=0;l<s;l+=1)r+=i[l]??0;o=s<<fl}for(let s=o;s<n;s+=1){const l=e.childIds[s];if(l==null)continue;const a=t[l];a!=null&&(r+=a.visibleSubtreeCount)}return r}function co(t,e){if(e.childIds.length<Bm){e.childVisibleChunkSums=null;return}const n=Math.ceil(e.childIds.length/tc),r=new Int32Array(n);for(let i=0;i<e.childIds.length;i++){const o=e.childIds[i];if(o==null)continue;const s=t[o];s!=null&&(r[i>>fl]+=s.visibleSubtreeCount)}e.childVisibleChunkSums=r}function jm(t,e,n,r){const i=Math.min(e.childIds.length,n+tc);let o=r;for(let s=n;s<i;s++){const l=e.childIds[s];if(l==null)continue;const a=t[l];if(a!=null){if(o<a.visibleSubtreeCount)return{childIndex:s,localVisibleIndex:o};o-=a.visibleSubtreeCount}}throw new Error(`Visible child index ${String(r)} is out of range`)}const qm=7,wh=3,Ch=8,Ih=4;function en(t,e,n=0){return t<<Ih|n<<wh|e}function zn(t){return t.depthAndFlags>>>Ih}function xl(t){return(t.depthAndFlags&Ch)>>wh}function te(t){return(t.depthAndFlags&Ch)!==0}function kh(t){return t.depthAndFlags&qm}function ut(t,e){return(kh(t)&e)!==0}function wl(t,e){t.depthAndFlags|=e}function Um(t,e){t.depthAndFlags=en(e,kh(t),xl(t))}const _h=Symbol("benchmarkInstrumentation");function Wm(t,e){return e==null||Object.defineProperty(t,_h,{configurable:!0,enumerable:!1,value:e,writable:!1}),t}function rc(t){return t==null?null:t[_h]??null}function G(t,e,n){return t==null?n():t.measurePhase(e,n)}function Ws(t,e,n){!Number.isFinite(n)||t==null||t.setCounter(e,n)}function Tu(t){return t>=48&&t<=57}function Gm(t){const e=[];let n=0,r=0;for(;r<t.length;){for(;r<t.length&&!Tu(t.charCodeAt(r));)r+=1;if(r>=t.length)break;r>n&&e.push(t.slice(n,r));let i=0;for(;r<t.length&&Tu(t.charCodeAt(r));)i=i*10+(t.charCodeAt(r)-48),r+=1;e.push(i),n=r}return(n<t.length||e.length===0)&&e.push(t.slice(n)),e}function ps(t){const e=t.toLowerCase();return{lowerValue:e,tokens:Gm(e)}}function Km(t,e){const n=Math.min(t.length,e.length);for(let r=0;r<n;r++){const i=t[r],o=e[r];if(i===o)continue;if(typeof i=="number"&&typeof o=="number")return i<o?-1:1;const s=String(i),l=String(o);if(s!==l)return s<l?-1:1}return t.length!==e.length?t.length<e.length?-1:1:0}function ic(t,e){if(t.tokens.length===1&&e.tokens.length===1&&typeof t.tokens[0]=="string"&&typeof e.tokens[0]=="string")return t.lowerValue===e.lowerValue?0:t.lowerValue<e.lowerValue?-1:1;const n=Km(t.tokens,e.tokens);return n!==0?n:t.lowerValue!==e.lowerValue?t.lowerValue<e.lowerValue?-1:1:0}function Th(t,e,n){const r=ic(n(t),n(e));return r!==0?r:t===e?0:t<e?-1:1}function Ym(t,e){return Th(t,e,ps)}function gl(t,e){return e!==t.segments.length-1||t.isDirectory?1:0}function Xm(t,e){const n=Math.min(t.segments.length,e.segments.length);for(let r=0;r<n;r++){const i=t.segments[r],o=e.segments[r];if(i===o)continue;const s=gl(t,r);return s!==gl(e,r)?s===1?-1:1:Ym(i,o)}return t.segments.length!==e.segments.length?t.segments.length<e.segments.length?-1:1:t.isDirectory===e.isDirectory?0:t.isDirectory?-1:1}function Zm(t,e){return Xm(t,e)}function Qm(t,e,n){const r=o=>{const s=n.get(o);if(s!=null)return s;const l=ps(o);return n.set(o,l),l},i=Math.min(t.segments.length,e.segments.length);for(let o=0;o<i;o++){const s=t.segments[o],l=e.segments[o];if(s===l)continue;const a=gl(t,o);return a!==gl(e,o)?a===1?-1:1:Th(s,l,r)}return t.segments.length!==e.segments.length?t.segments.length<e.segments.length?-1:1:t.isDirectory===e.isDirectory?0:t.isDirectory?-1:1}function la(t,e){const n=t.sortKeyById[e];if(n!==void 0)return n;const r=t.valueById[e],i=ps(r);return t.sortKeyById[e]=i,i}function Eh(t={}){return{flattenEmptyDirectories:t.flattenEmptyDirectories!==!1,sort:t.sort??"default"}}function Ah(t){const e=t.length>0&&t.charCodeAt(t.length-1)===47,n=e?t.length-1:t.length,r=[];let i=0;for(let o=0;o<n;o++)t.charCodeAt(o)===47&&(r.push(t.slice(i,o)),i=o+1);return r.push(t.slice(i,n)),{hasTrailingSlash:e,segments:r}}function Wo(t){const{hasTrailingSlash:e,segments:n}=Ah(t);return{basename:n[n.length-1]??"",isDirectory:e,path:t,segments:n}}function aa(t){if(t.length===0)return{requiresDirectory:!1,segments:[]};const{hasTrailingSlash:e,segments:n}=Ah(t);return{requiresDirectory:e,segments:n}}function Rh(){const t=new Map;return t.set("",0),{idByValue:t,valueById:[""],sortKeyById:[ps("")]}}function Br(t,e){const n=t.idByValue.get(e);if(n!==void 0)return n;const r=t.valueById.length;return t.idByValue.set(e,r),t.valueById.push(e),r}function On(t,e){const n=t.valueById[e];if(n===void 0)throw new Error(`Unknown segment ID: ${String(e)}`);return n}const oc=Symbol("pathStorePreparedInputKind");function Ph(t,e){return t[oc]=e,t}function Eu(t){return{basename:t.basename,depth:t.segments.length,isDirectory:t.isDirectory,path:t.path,segments:t.segments}}function Mh(t,e,n){return n==="default"?Zm(t,e):n(Eu(t),Eu(e))}function Jm(){return{depthAndFlags:en(0,3,1),nameId:0,parentId:0,subtreeNodeCount:1,visibleSubtreeCount:1}}function eb(t,e){const n=Math.min(t.length,e.length);for(let r=0;r<n;r++)if(t[r]!==e[r])return r;return n}function Au(t){return t.isDirectory?t.segments.length:t.segments.length-1}function tb(t){return Array.isArray(t)&&t.every(e=>e!=null&&typeof e=="object"&&typeof e.path=="string"&&Array.isArray(e.segments)&&typeof e.basename=="string"&&typeof e.isDirectory=="boolean")}function nb(t){return Array.isArray(t)&&t.every(e=>typeof e=="string")}function rb(t,e={}){return sc(t,e).map(n=>n.path)}function ib(t,e={}){const n=sc(t,e);return Ph({paths:n.map(r=>r.path),preparedPaths:n},"prepared")}function ob(t){const e=t.length;let n=!1;for(let r=0;r<e;r+=1){const i=t[r];if(i.length>0&&i.charCodeAt(i.length-1)===47){n=!0;break}}return Ph({paths:t,presortedPaths:t,presortedPathsContainDirectories:n},"presorted")}function sb(t){const e=t,n=e.preparedPaths;if(e[oc]==="prepared"&&n!=null)return n;if(!tb(n))throw new Error("preparedInput must come from PathStore.prepareInput()");return n}function lb(t){const e=t;return e[oc]==="presorted"&&e.presortedPaths!=null||nb(e.presortedPaths)?e.presortedPaths:null}function ab(t){const e=t;return typeof e.presortedPathsContainDirectories=="boolean"?e.presortedPathsContainDirectories:null}function sc(t,e={}){const n=Eh(e),r=rc(e);Ws(r,"workload.inputFiles",t.length);const i=G(r,"store.preparePathEntries.parse",()=>t.map(o=>Wo(o)));return G(r,"store.preparePathEntries.sort",()=>i.sort((o,s)=>Mh(o,s,n.sort))),i}var Dh=class{constructor(t={}){D(this,"directories",new Map);D(this,"directoryStack",[0]);D(this,"presortedDirectoryNodeIds",[]);D(this,"initialExpandedPathSet");D(this,"createdDirectoriesAllExpanded",!1);D(this,"createdDirectoryCount",0);D(this,"lastPreparedPath",null);D(this,"nodes",[Jm()]);D(this,"options");D(this,"instrumentation");D(this,"segmentSortKeyCache",new Map);D(this,"segmentTable",Rh());D(this,"hasDeferredDirectoryIndexes",!1);this.instrumentation=rc(t),this.options=Eh(t);const e=t.initialExpandedPaths??null;if(e==null||e.length===0)this.initialExpandedPathSet=null;else{const n=new Set,r=e.length;for(let i=0;i<r;i+=1){const o=e[i],s=o.length;n.add(s>0&&o.charCodeAt(s-1)===47?o.slice(0,s-1):o)}this.initialExpandedPathSet=n,this.createdDirectoriesAllExpanded=!0}this.directories.set(0,$o())}appendPaths(t){return G(this.instrumentation,"store.builder.appendPaths.parse",()=>this.appendPreparedPaths(t.map(e=>Wo(e))))}appendPreparedPaths(t,e=!0){return this.createdDirectoriesAllExpanded=!1,G(this.instrumentation,"store.builder.appendPreparedPaths",()=>{for(const n of t)this.appendPreparedPath(n,e)}),this}appendPresortedPaths(t,e=null){return G(this.instrumentation,"store.builder.appendPresortedPaths",()=>{if(e===!1){this.appendPresortedFilePaths(t);return}this.createdDirectoriesAllExpanded=!1;let n=null,r=0;const i=this.nodes,o=this.segmentTable,s=o.idByValue,l=o.valueById,a=this.directoryStack;let d=0,u="",h=0;for(const g of t){if(n===g)throw new Error(`Duplicate path: "${g}"`);const f=g.length>0&&g.charCodeAt(g.length-1)===47,m=f?g.length-1:g.length;let y=0,v=0;if(n!=null)if(u.length>0&&g.length>u.length&&g.startsWith(u))y=h,v=u.length;else{const k=Math.min(m,n.length);let _=!0;for(let P=0;P<k;P++){const L=g.charCodeAt(P);if(L!==n.charCodeAt(P)){_=!1;break}L===47&&(y++,v=P+1)}_&&f&&k===m&&n.length>m&&n.charCodeAt(m)===47&&(y++,v=m+1)}d=y,r=y;let C=v,I=g.indexOf("/",C);for(;I>=0&&I<m;){const k=a[d];if(k===void 0)throw new Error("Directory stack underflow while building the path store");r++;const _=g.slice(C,I);let P=s.get(_);P===void 0&&(P=l.length,s.set(_,P),l.push(_));const L=i.length;i.push({depthAndFlags:en(r,0,1),nameId:P,parentId:k,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(g.slice(0,I)),d++,a[d]=L,C=I+1,I=g.indexOf("/",C)}if(f){if(C<m){const _=a[d];if(_===void 0)throw new Error(`Unable to resolve directory parent for "${g}"`);r++;const P=g.slice(C,m);let L=s.get(P);L===void 0&&(L=l.length,s.set(P,L),l.push(P));const z=i.length;i.push({depthAndFlags:en(r,0,1),nameId:L,parentId:_,subtreeNodeCount:1,visibleSubtreeCount:1}),d++,a[d]=z,C=m+1}const k=a[d];if(k===void 0)throw new Error(`Unable to resolve directory node for "${g}"`);this.promoteDirectoryToExplicit(k,g)}else{const k=a[d];if(k===void 0)throw new Error(`Unable to resolve file parent for "${g}"`);const _=g.slice(C);let P=s.get(_);P===void 0&&(P=l.length,s.set(_,P),l.push(_)),i.push({depthAndFlags:en(r+1,0),nameId:P,parentId:k,subtreeNodeCount:1,visibleSubtreeCount:1})}C!==u.length&&(u=g.substring(0,C),h=r),n=g}a.length=d+1,n!=null&&(this.lastPreparedPath=Wo(n)),this.hasDeferredDirectoryIndexes=!0}),this}appendPresortedFilePaths(t){let e=null,n=0;const r=this.nodes,i=this.segmentTable,o=i.idByValue,s=i.valueById,l=this.directoryStack;let a=0,d="",u=0;for(const h of t){if(e===h)throw new Error(`Duplicate path: "${h}"`);const g=h.length;let f=0,m=0;if(e!=null)if(d.length>0&&h.length>d.length&&h.startsWith(d))f=u,m=d.length;else{const _=Math.min(g,e.length);for(let P=0;P<_;P++){const L=h.charCodeAt(P);if(L!==e.charCodeAt(P))break;L===47&&(f++,m=P+1)}}a=f,n=f;let y=m,v=h.indexOf("/",y);for(;v>=0;){const _=l[a];if(_===void 0)throw new Error("Directory stack underflow while building the path store");n++;const P=h.slice(y,v);let L=o.get(P);L===void 0&&(L=s.length,o.set(P,L),s.push(P));const z=r.length;r.push({depthAndFlags:en(n,0,1),nameId:L,parentId:_,subtreeNodeCount:1,visibleSubtreeCount:1}),this.recordCreatedDirectoryPath(h.slice(0,v)),this.presortedDirectoryNodeIds.push(z),a++,l[a]=z,y=v+1,v=h.indexOf("/",y)}const C=l[a];if(C===void 0)throw new Error(`Unable to resolve file parent for "${h}"`);const I=h.slice(y);let k=o.get(I);k===void 0&&(k=s.length,o.set(I,k),s.push(I)),r.push({depthAndFlags:en(n+1,0),nameId:k,parentId:C,subtreeNodeCount:1,visibleSubtreeCount:1}),y!==d.length&&(d=h.substring(0,y),u=n),e=h}l.length=a+1,e!=null&&(this.lastPreparedPath=Wo(e)),this.hasDeferredDirectoryIndexes=!0}finish(t={}){const e=t.skipSubtreeCountPass===!0;return this.hasDeferredDirectoryIndexes?(G(this.instrumentation,"store.builder.buildDirectoryIndexes",()=>this.buildPresortedFinish(e)),this.hasDeferredDirectoryIndexes=!1):e||G(this.instrumentation,"store.builder.computeSubtreeCounts",()=>this.computeSubtreeCounts(0)),{directories:this.directories,nodes:this.nodes,options:this.options,rootId:0,segmentTable:this.segmentTable,presortedDirectoryNodeIds:this.presortedDirectoryNodeIds.length>0?this.presortedDirectoryNodeIds:null}}didMatchAllInitialExpandedPaths(){return this.createdDirectoriesAllExpanded&&this.initialExpandedPathSet!=null&&this.createdDirectoryCount===this.initialExpandedPathSet.size}appendPreparedPath(t,e){if(this.hasDeferredDirectoryIndexes&&(this.buildDirectoryIndexes(),this.hasDeferredDirectoryIndexes=!1),this.lastPreparedPath!=null){if(t.path===this.lastPreparedPath.path)throw new Error(`Duplicate path: "${t.path}"`);if(e&&(this.options.sort==="default"?Qm(this.lastPreparedPath,t,this.segmentSortKeyCache):Mh(this.lastPreparedPath,t,this.options.sort))>0)throw new Error(`Builder input must be sorted before appendPaths(): "${t.path}"`)}const n=this.lastPreparedPath,r=Au(t),i=n==null?0:Au(n),o=n==null?0:eb(n.segments,t.segments),s=Math.min(o,r,i);this.directoryStack.length=s+1;for(let a=s;a<r;a++){const d=this.directoryStack[this.directoryStack.length-1];if(d===void 0)throw new Error("Directory stack underflow while building the path store");const u=e?this.getOrCreateDirectoryChild(d,t.segments[a]):this.createDirectoryChild(d,t.segments[a]);this.directoryStack.push(u)}if(t.isDirectory){const a=this.directoryStack[this.directoryStack.length-1];if(a===void 0)throw new Error(`Unable to resolve directory node for "${t.path}"`);this.promoteDirectoryToExplicit(a,t.path),this.lastPreparedPath=t;return}const l=this.directoryStack[this.directoryStack.length-1];if(l===void 0)throw new Error(`Unable to resolve file parent for "${t.path}"`);e?this.createFileChild(l,t.basename,t.path):this.createFileChildUnchecked(l,t.basename),this.lastPreparedPath=t}recordCreatedDirectoryPath(t){!this.createdDirectoriesAllExpanded||this.initialExpandedPathSet==null||(this.createdDirectoryCount+=1,this.initialExpandedPathSet.has(t)||(this.createdDirectoriesAllExpanded=!1))}createFileChild(t,e,n){const r=Br(this.segmentTable,e),i=this.getDirectoryIndex(t),o=i.childIdByNameId;if(o!=null&&o.get(r)!==void 0)throw new Error(`Path collides with an existing entry: "${n}"`);const s=this.nodes[t];if(s===void 0)throw new Error(`Unknown parent node ID: ${String(t)}`);const l=this.nodes.length;return this.nodes.push({depthAndFlags:en(zn(s)+1,0),nameId:r,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),o!=null&&o.set(r,l),Fo(i,l),l}createFileChildUnchecked(t,e){const n=Br(this.segmentTable,e),r=this.getDirectoryIndex(t),i=this.nodes[t];if(i===void 0)throw new Error(`Unknown parent node ID: ${String(t)}`);const o=this.nodes.length;return this.nodes.push({depthAndFlags:en(zn(i)+1,0),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,o),Fo(r,o),o}getOrCreateDirectoryChild(t,e){const n=Br(this.segmentTable,e),r=this.getDirectoryIndex(t);if(r.childIdByNameId!=null){const s=r.childIdByNameId.get(n);if(s!==void 0){const l=this.nodes[s];if(l!=null&&!te(l))throw new Error(`Path collides with an existing file while creating directory "${e}"`);return s}}const i=this.nodes[t];if(i===void 0)throw new Error(`Unknown parent node ID: ${String(t)}`);const o=this.nodes.length;return this.nodes.push({depthAndFlags:en(zn(i)+1,0,1),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,o),Fo(r,o),this.directories.set(o,$o()),o}createDirectoryChild(t,e){const n=Br(this.segmentTable,e),r=this.getDirectoryIndex(t),i=this.nodes[t];if(i===void 0)throw new Error(`Unknown parent node ID: ${String(t)}`);const o=this.nodes.length;return this.nodes.push({depthAndFlags:en(zn(i)+1,0,1),nameId:n,parentId:t,subtreeNodeCount:1,visibleSubtreeCount:1}),r.childIdByNameId!=null&&r.childIdByNameId.set(n,o),Fo(r,o),this.directories.set(o,$o()),o}promoteDirectoryToExplicit(t,e){const n=this.nodes[t];if(n===void 0)throw new Error(`Unknown directory node ID: ${String(t)}`);if(!te(n))throw new Error(`Path is not a directory: "${e}"`);if(ut(n,1))throw new Error(`Duplicate path: "${e}"`);wl(n,1)}getDirectoryIndex(t){const e=this.directories.get(t);if(e!==void 0)return e;throw new Error(`Unknown directory child index for node ${String(t)}`)}buildPresortedFinish(t){const e=this.nodes,n=this.directories;n.set(0,_u());let r=-1,i=null;for(let o=1;o<e.length;o++){const s=e[o];if(s==null)continue;if(te(s)){const a=_u();n.set(o,a),r=o,i=a}let l;s.parentId===r?l=i:(l=n.get(s.parentId),r=s.parentId,i=l??null),l!=null&&l.childIds.push(o)}if(!t)for(let o=e.length-1;o>=1;o--){const s=e[o];if(s==null)continue;const l=e[s.parentId];l!=null&&(l.subtreeNodeCount+=s.subtreeNodeCount,l.visibleSubtreeCount+=s.visibleSubtreeCount)}}buildDirectoryIndexes(){const t=this.nodes;for(let e=1;e<t.length;e++){const n=t[e];if(n==null)continue;te(n)&&this.directories.set(e,$o());const r=this.directories.get(n.parentId);r!=null&&(r.childIdByNameId!=null&&r.childIdByNameId.set(n.nameId,e),Fo(r,e))}}computeSubtreeCounts(t){const e=this.nodes[t];if(e===void 0)throw new Error(`Unknown node ID: ${String(t)}`);if(!te(e))return e.subtreeNodeCount=1,e.visibleSubtreeCount=1,1;const n=this.getDirectoryIndex(t);let r=1;for(const i of n.childIds)r+=this.computeSubtreeCounts(i);return pl(this.nodes,n),e.subtreeNodeCount=r,e.visibleSubtreeCount=r,r}};function cb(t,e="closed",n=null){const r=db(e);return{activeNodeCount:t.nodes.length-1,collapsedDirectoryIds:new Set,collapseNewDirectoriesByDefault:!1,defaultExpansion:r,directoriesOpenByDefault:r==="open",hasCollapsedDirectoryOverrides:!1,directoryLoadInfoById:new Map,expandedDirectoryIds:new Set,instrumentation:n,listeners:new Map,pathCacheByNodeId:new Map([[t.rootId,{path:"",version:0}]]),pathCacheVersion:0,snapshot:t,transactionStack:[]}}function ub(){return{affectedAncestorIds:new Set,affectedNodeIds:new Set,events:[]}}function db(t){if(typeof t!="number")return t;if(!Number.isInteger(t)||t<0)throw new Error(`initialExpansion must be "open", "closed", or a non-negative integer depth. Received: ${String(t)}`);return t}function Lh(t,e){return ut(e,2)||t.defaultExpansion==="open"?!0:t.defaultExpansion==="closed"?!1:zn(e)<=t.defaultExpansion}function Dt(t,e,n=t.snapshot.nodes[e]){return n==null||!te(n)?!1:t.directoriesOpenByDefault&&!t.hasCollapsedDirectoryOverrides?!0:t.collapsedDirectoryIds.has(e)?!1:t.expandedDirectoryIds.has(e)?!0:Lh(t,n)}function Ko(t,e,n,r=t.snapshot.nodes[e]){if(r==null||!te(r))return;const i=Lh(t,r);if(n){if(i){t.collapsedDirectoryIds.delete(e),t.hasCollapsedDirectoryOverrides=t.collapsedDirectoryIds.size>0;return}t.expandedDirectoryIds.add(e);return}if(i){t.collapsedDirectoryIds.add(e),t.hasCollapsedDirectoryOverrides=!0;return}t.expandedDirectoryIds.delete(e)}function Nh(t,e){const n=t.directoryLoadInfoById.get(e);if(n!=null)return n;const r={activeAttemptId:null,errorMessage:null,nextAttemptId:1,state:"loaded"};return t.directoryLoadInfoById.set(e,r),r}function Yo(t,e){var n;return((n=t.directoryLoadInfoById.get(e))==null?void 0:n.state)??"loaded"}function hb(t,e){const n=Nh(t,e);if(n.state==="loading"&&n.activeAttemptId!=null)return{attemptId:n.activeAttemptId,nodeId:e,reused:!0};const r=n.nextAttemptId;return n.activeAttemptId=r,n.errorMessage=null,n.nextAttemptId+=1,n.state="loading",{attemptId:r,nodeId:e,reused:!1}}function fb(t,e){const n=Nh(t,e);n.activeAttemptId=null,n.errorMessage=null,n.state="unloaded"}function pb(t,e,n){const r=t.directoryLoadInfoById.get(e);return r==null||r.activeAttemptId!==n?!1:(r.activeAttemptId=null,r.errorMessage=null,r.state="loaded",!0)}function gb(t,e,n){var r;return((r=t.directoryLoadInfoById.get(e))==null?void 0:r.activeAttemptId)===n}function mb(t,e,n,r){const i=t.directoryLoadInfoById.get(e);return i==null||i.activeAttemptId!==n?!1:(i.activeAttemptId=null,i.errorMessage=r??null,i.state="error",!0)}function bb(t,e){t.directoryLoadInfoById.delete(e)}function yb(t,e,n){const r=n,i=t.listeners.get(e);return i!=null?i.add(r):t.listeners.set(e,new Set([r])),()=>{const o=t.listeners.get(e);o!=null&&(o.delete(r),o.size===0&&t.listeners.delete(e))}}function vb(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!0,operation:"add",path:t.path,projectionChanged:t.projectionChanged,visibleCountDelta:null}}function Sb(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!0,operation:"remove",path:t.path,projectionChanged:t.projectionChanged,recursive:t.recursive,visibleCountDelta:null}}function xb(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!0,from:t.from,operation:"move",projectionChanged:t.projectionChanged,to:t.to,visibleCountDelta:null}}function wb(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!1,operation:"expand",path:t.path,projectionChanged:!0,visibleCountDelta:null}}function Cb(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!1,operation:"collapse",path:t.path,projectionChanged:!0,visibleCountDelta:null}}function Ib(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],canonicalChanged:!1,operation:"mark-directory-unloaded",path:t.path,projectionChanged:t.projectionChanged,visibleCountDelta:null}}function kb(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:!1,operation:"begin-child-load",path:t.path,projectionChanged:t.projectionChanged,reused:t.reused,visibleCountDelta:null}}function _b(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:t.childEvents.some(e=>e.canonicalChanged),childEvents:t.childEvents,operation:"apply-child-patch",path:t.path,projectionChanged:t.projectionChanged,visibleCountDelta:null}}function Tb(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:!1,operation:"complete-child-load",path:t.path,projectionChanged:t.projectionChanged,stale:t.stale,visibleCountDelta:null}}function Eb(t){return{affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],attemptId:t.attemptId,canonicalChanged:!1,errorMessage:t.errorMessage,operation:"fail-child-load",path:t.path,projectionChanged:t.projectionChanged,stale:t.stale,visibleCountDelta:null}}function Ab(t){return{activeNodeCountAfter:t.activeNodeCountAfter,activeNodeCountBefore:t.activeNodeCountBefore,affectedAncestorIds:t.affectedAncestorIds??[],affectedNodeIds:t.affectedNodeIds??[],cachedPathEntryCountAfter:t.cachedPathEntryCountAfter,cachedPathEntryCountBefore:t.cachedPathEntryCountBefore,canonicalChanged:!1,idsPreserved:t.idsPreserved,loadInfoEntryCountAfter:t.loadInfoEntryCountAfter,loadInfoEntryCountBefore:t.loadInfoEntryCountBefore,mode:t.mode,operation:"cleanup",projectionChanged:t.projectionChanged,reclaimedCachedPathEntryCount:t.reclaimedCachedPathEntryCount,reclaimedLoadInfoEntryCount:t.reclaimedLoadInfoEntryCount,reclaimedNodeSlotCount:t.reclaimedNodeSlotCount,reclaimedSegmentCount:t.reclaimedSegmentCount,segmentCountAfter:t.segmentCountAfter,segmentCountBefore:t.segmentCountBefore,totalNodeSlotCountAfter:t.totalNodeSlotCountAfter,totalNodeSlotCountBefore:t.totalNodeSlotCountBefore,visibleCountDelta:null}}function Ft(t,e,n){return{...n,visibleCountDelta:ua(t)-e}}function Rb(t,e){const n=ua(t),r=ub();t.transactionStack.push(r);try{e()}catch(i){throw Pu(t,r,!1),i}Pu(t,r,!0,ua(t)-n)}function vn(t,e){const n=t.instrumentation;if(n==null){Ru(t,e);return}G(n,"store.events.record",()=>Ru(t,e))}function Ru(t,e){const n=t.transactionStack[t.transactionStack.length-1]??null;if(n==null){ca(t,e);return}n.events.push(e),Db(n,e)}function Pu(t,e,n,r=null){if(t.transactionStack.pop()!==e)throw new Error("Transaction stack underflow");if(!n)return;const i=t.transactionStack[t.transactionStack.length-1]??null;if(i!=null){const l=t.instrumentation;l==null?Mu(i,e):G(l,"store.events.batch.merge",()=>Mu(i,e));return}const o=Pb(e,r),s=t.instrumentation;if(s==null){ca(t,o);return}G(s,"store.events.batch.commit",()=>ca(t,o))}function Pb(t,e){return{affectedAncestorIds:[...t.affectedAncestorIds],affectedNodeIds:[...t.affectedNodeIds],canonicalChanged:t.events.some(n=>n.canonicalChanged),events:[...t.events],operation:"batch",projectionChanged:t.events.some(n=>n.projectionChanged),visibleCountDelta:e}}function Mb(t,e){for(const n of e.affectedAncestorIds)t.affectedAncestorIds.add(n);for(const n of e.affectedNodeIds)t.affectedNodeIds.add(n)}function Mu(t,e){for(const n of e.events)t.events.push(n);Mb(t,e)}function Db(t,e){for(const n of e.affectedNodeIds)t.affectedNodeIds.add(n);for(const n of e.affectedAncestorIds)t.affectedAncestorIds.add(n)}function ca(t,e){const n=t.instrumentation;if(n==null){Du(t,e);return}G(n,"store.events.emit",()=>Du(t,e))}function Du(t,e){var n,r;(n=t.listeners.get(e.operation))==null||n.forEach(i=>i(e)),(r=t.listeners.get("*"))==null||r.forEach(i=>i(e))}function ua(t){var e;return((e=t.snapshot.nodes[t.snapshot.rootId])==null?void 0:e.visibleSubtreeCount)??0}function go(t,e){if(t.snapshot.options.flattenEmptyDirectories!==!0)return null;const n=t.snapshot.nodes[e];if(n==null||!te(n)||ut(n,2))return null;const r=t.snapshot.directories.get(e);if(r==null||r.childIds.length!==1)return null;const i=r.childIds[0];if(i==null)return null;const o=t.snapshot.nodes[i];return o==null||!te(o)?null:i}function pi(t,e){let n=e;for(;;){const r=go(t,n);if(r==null)return n;n=r}}function ml(t,e){const n=[e];let r=e;for(;;){const i=go(t,r);if(i==null)return n;n.push(i),r=i}}function Fh(t,e){const n=e==null?t.snapshot.rootId:un(t,e);return n==null?[]:Nb(t,n)}function Lu(t,e){const n=Wo(e),r=n.isDirectory?n.segments:n.segments.slice(0,-1),i=$r(t,qb(t,r)),{createdNodeIds:o,directoryId:s}=Fb(t,r),l=new Set(o);let a=s;if(n.isDirectory){const u=Q(t,s);if(ut(u,1))throw new Error(`Path already exists: "${e}"`);wl(u,1),t.pathCacheByNodeId.set(s,{path:e,version:t.pathCacheVersion}),l.add(s)}else a=Ob(t,s,n.basename),l.add(a);gi(t,s);const d=$r(t,s);return vb({affectedAncestorIds:In(t,a),affectedNodeIds:[...l],path:e,projectionChanged:Hh(i,d)})}function Nu(t,e,n){const r=un(t,e);if(r==null)throw new Error(`Path does not exist: "${e}"`);const i=Q(t,r);if(ut(i,2))throw new Error("The root node cannot be removed");if(te(i)&&qe(t,r).childIds.length>0&&n.recursive!==!0)throw new Error(`Cannot remove a non-empty directory without recursive: "${e}"`);const o=i.parentId,s=$r(t,o),l=Oh(t,r);cc(t,o,r,i.nameId),uc(t,o),gi(t,o);const a=$r(t,o);return Sb({affectedAncestorIds:In(t,o),affectedNodeIds:l,path:e,projectionChanged:Hh(s,a),recursive:n.recursive===!0})}function Fu(t,e,n,r){const i=un(t,e);if(i==null)throw new Error(`Source path does not exist: "${e}"`);const o=Q(t,i);if(ut(o,2))throw new Error("The root node cannot be moved");const s=r.collision??"error",l=$b(t,i,n),a=$r(t,o.parentId),d=$r(t,l.parentId),u=On(t.snapshot.segmentTable,o.nameId),h=Br(t.snapshot.segmentTable,l.basename);if(l.parentId===o.parentId&&u===l.basename)return null;if(te(o)&&Wb(t,i,l.parentId))throw new Error("Cannot move a directory into one of its descendants");const g=bi(t.snapshot.nodes,qe(t,l.parentId)).get(h),f=l.existingNodeId??g??null;if(f!=null&&f!==i&&jb(t,f,s,xl(o))==="skip")return null;const m=o.parentId;cc(t,m,i,o.nameId),o.parentId=l.parentId,o.nameId=h,t.pathCacheByNodeId.delete(i),Bh(t,i),ac(t,l.parentId,i),uc(t,m),t.pathCacheVersion++,gi(t,m),l.parentId!==m&&gi(t,l.parentId);const y=$r(t,m),v=$r(t,l.parentId);return xb({affectedAncestorIds:[...new Set([...In(t,m),...In(t,l.parentId)])],affectedNodeIds:[i],from:e,projectionChanged:Vh([a,d],[y,v]),to:je(t,i)})}function Lb(t,e){const n=t.pathCacheByNodeId.get(e);return n!=null&&n.version===t.pathCacheVersion?n.path:null}function zu(t,e,n){return t.pathCacheByNodeId.set(e,{path:n,version:t.pathCacheVersion}),n}function je(t,e){const n=Q(t,e),r=Lb(t,e);if(r!=null)return r;if(ut(n,2))return zu(t,e,"");const i=je(t,n.parentId),o=On(t.snapshot.segmentTable,n.nameId),s=i.length===0?o:`${i}${o}`;return zu(t,e,te(n)?`${s}/`:s)}function gi(t,e){const n=t.instrumentation;if(n==null){Hu(t,e);return}G(n,"store.recomputeCountsUpwardFrom",()=>Hu(t,e))}function lc(t,e){const n=[[e,0]],{nodes:r,directories:i}=t.snapshot;for(;n.length>0;){const o=n[n.length-1],s=o[0],l=r[s];if(l==null||!te(l)){da(t,s,l,!0),n.pop();continue}const a=i.get(s);if(a==null||o[1]>=a.childIds.length){da(t,s,l,!0),n.pop();continue}const d=a.childIds[o[1]++];n.push([d,0])}}function In(t,e){const n=[];let r=e;for(;r!=null;){const i=Q(t,r);if(n.push(r),r===t.snapshot.rootId)break;r=i.parentId}return n}function un(t,e){if(e.length===0)return t.snapshot.rootId;const n=aa(e);return zh(t,n.segments,n.requiresDirectory)}function zh(t,e,n){let r=t.snapshot.rootId;for(const o of e){const s=t.snapshot.segmentTable.idByValue.get(o);if(s===void 0)return null;const l=qe(t,r),a=bi(t.snapshot.nodes,l).get(s);if(a===void 0)return null;r=a}const i=Q(t,r);return n&&!te(i)?null:r}function qe(t,e){const n=t.snapshot.directories.get(e);if(n===void 0)throw new Error(`Unknown directory child index for node ${String(e)}`);return n}function Q(t,e){const n=t.snapshot.nodes[e];if(n===void 0||ut(n,4))throw new Error(`Unknown node ID: ${String(e)}`);return n}function Nb(t,e){const n=t.snapshot.nodes[e];if(n===void 0||ut(n,4))return[];if(!te(n))return[je(t,e)];if(qe(t,e).childIds.length===0)return ut(n,1)&&!ut(n,2)?[je(t,e)]:[];const r=[],i=[{childIndex:0,nodeId:e}];for(;i.length>0;){const o=i[i.length-1];if(o==null)break;const s=t.snapshot.nodes[o.nodeId];if(s===void 0||ut(s,4)){i.pop();continue}if(!te(s)){r.push(je(t,o.nodeId)),i.pop();continue}const l=qe(t,o.nodeId);if(l.childIds.length===0){ut(s,1)&&!ut(s,2)&&r.push(je(t,o.nodeId)),i.pop();continue}const a=l.childIds[o.childIndex];if(a==null){i.pop();continue}o.childIndex++,i.push({childIndex:0,nodeId:a})}return r}function Fb(t,e){const n=[];let r=t.snapshot.rootId;for(const i of e){const o=Br(t.snapshot.segmentTable,i),s=qe(t,r),l=bi(t.snapshot.nodes,s).get(o);if(l!==void 0){const a=Q(t,l);if(!te(a))throw new Error(`Cannot create a directory that collides with an existing file: "${i}"`);r=l;continue}r=zb(t,r,o),n.push(r)}return{createdNodeIds:n,directoryId:r}}function zb(t,e,n){const r=Q(t,e),i=t.snapshot.nodes.length;return t.snapshot.nodes.push({depthAndFlags:en(zn(r)+1,0,1),nameId:n,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),t.snapshot.directories.set(i,$o()),ac(t,e,i),t.collapseNewDirectoriesByDefault&&(t.collapsedDirectoryIds.add(i),t.hasCollapsedDirectoryOverrides=!0),t.activeNodeCount++,i}function Ob(t,e,n){const r=Br(t.snapshot.segmentTable,n),i=qe(t,e);if(bi(t.snapshot.nodes,i).has(r))throw new Error(`Path already exists: "${Gb(t,e,n)}"`);const o=Q(t,e),s=t.snapshot.nodes.length;return t.snapshot.nodes.push({depthAndFlags:en(zn(o)+1,0),nameId:r,parentId:e,subtreeNodeCount:1,visibleSubtreeCount:1}),ac(t,e,s),t.activeNodeCount++,s}function Hb(t,e,n){let r=0,i=e.childIds.length;for(;r<i;){const o=r+i>>>1,s=e.childIds[o];if(s==null){i=o;continue}Vb(t,n,s)<0?i=o:r=o+1}return r}function ac(t,e,n){const r=qe(t,e),i=Q(t,n);bi(t.snapshot.nodes,r).set(i.nameId,n),nc(r,n,i.subtreeNodeCount,i.visibleSubtreeCount);const o=Hb(t,r,n);r.childIds.splice(o,0,n),xh(r,o),co(t.snapshot.nodes,r)}function cc(t,e,n,r){const i=qe(t,e),o=Sl(i),s=o.get(n)??-1;bi(t.snapshot.nodes,i).delete(r),o.delete(n);const l=t.snapshot.nodes[n];l!=null&&nc(i,n,-l.subtreeNodeCount,-l.visibleSubtreeCount),s>=0&&(i.childIds.splice(s,1),xh(i,s),co(t.snapshot.nodes,i))}function Vb(t,e,n){const r=t.snapshot.options.sort;return r==="default"?Bb(t,e,n):r(Ou(t,e),Ou(t,n))}function Bb(t,e,n){const r=Q(t,e),i=Q(t,n),o=te(r);if(o!==te(i))return o?-1:1;const s=la(t.snapshot.segmentTable,r.nameId),l=la(t.snapshot.segmentTable,i.nameId),a=ic(s,l);if(a!==0)return a;const d=On(t.snapshot.segmentTable,r.nameId),u=On(t.snapshot.segmentTable,i.nameId);return d!==u?d<u?-1:1:e<n?-1:1}function Ou(t,e){const n=Q(t,e),r=je(t,e),i=te(n),o=i?r.slice(0,-1):r;return{basename:On(t.snapshot.segmentTable,n.nameId),depth:zn(n),isDirectory:i,path:r,segments:o.length===0?[]:o.split("/")}}function $b(t,e,n){const r=Q(t,e),i=un(t,n);if(i!=null){const d=Q(t,i);if(te(d))return{basename:On(t.snapshot.segmentTable,r.nameId),existingNodeId:null,parentId:i};const u=aa(n).segments;return{basename:u[u.length-1]??"",existingNodeId:i,parentId:d.parentId}}const o=aa(n),s=o.segments[o.segments.length-1]??"",l=o.segments.slice(0,-1),a=l.length===0?t.snapshot.rootId:zh(t,l,!0);if(a==null)throw new Error(`Destination parent does not exist: "${n}"`);return{basename:s,existingNodeId:null,parentId:a}}function jb(t,e,n,r){if(n==="skip")return"skip";if(n==="error")throw new Error(`Destination already exists: "${je(t,e)}"`);const i=Q(t,e);if(xl(i)!==r)throw new Error("replace collision requires the same source and destination kinds");if(te(i)&&qe(t,e).childIds.length>0)throw new Error("replace collision does not support non-empty directories");const o=i.parentId,s=i.nameId;return Oh(t,e),cc(t,o,e,s),uc(t,o),gi(t,o),"handled"}function Oh(t,e){const n=[],r=[{nodeId:e,visitedChildren:!1}];for(;r.length>0;){const i=r.pop();if(i==null)break;const o=Q(t,i.nodeId);if(i.visitedChildren||!te(o)){te(o)&&t.snapshot.directories.delete(i.nodeId),wl(o,4),t.pathCacheByNodeId.delete(i.nodeId),t.collapsedDirectoryIds.delete(i.nodeId)&&(t.hasCollapsedDirectoryOverrides=t.collapsedDirectoryIds.size>0),t.expandedDirectoryIds.delete(i.nodeId),bb(t,i.nodeId),t.activeNodeCount--,n.push(i.nodeId);continue}r.push({nodeId:i.nodeId,visitedChildren:!0});const s=qe(t,i.nodeId);for(let l=s.childIds.length-1;l>=0;l--){const a=s.childIds[l];a!=null&&r.push({nodeId:a,visitedChildren:!1})}}return n}function uc(t,e){let n=e;for(;n!=null;){const r=Q(t,n);if(!te(r)||ut(r,2)||qe(t,n).childIds.length>0)return;wl(r,1),n=r.parentId===n?null:r.parentId}}function qb(t,e){let n=t.snapshot.rootId;for(const r of e){const i=t.snapshot.segmentTable.idByValue.get(r);if(i==null)break;const o=bi(t.snapshot.nodes,qe(t,n)).get(i);if(o==null)break;const s=Q(t,o);if(!te(s))break;n=o}return n}function $r(t,e){const n=Ub(t,e);if(n==null)return null;const r=pi(t,n),i=Q(t,r),o=n===r?null:ml(t,n).map(s=>je(t,s));return JSON.stringify({flattenedSegmentPaths:o,hasChildren:qe(t,r).childIds.length>0,path:je(t,r),terminalKind:xl(i)})}function Hh(t,e){return Vh([t],[e])}function Vh(t,e){for(let n=0;n<t.length;n+=1){const r=t[n],i=e[n];if(r==null||i==null||r!==i)return!0}return!1}function Ub(t,e){let n=e;for(;n!=null;){const r=Q(t,n);if(!te(r)||ut(r,2))return null;if(!Dt(t,n,r))return n;n=r.parentId}return null}function Bh(t,e){const n=Q(t,e),r=e===t.snapshot.rootId?-1:zn(Q(t,n.parentId));if(Um(n,r+1),!te(n))return;const i=qe(t,e);for(const o of i.childIds)Bh(t,o)}function Wb(t,e,n){let r=n;for(;r!=null;){if(r===e)return!0;const i=Q(t,r);if(r===t.snapshot.rootId)return!1;r=i.parentId}return!1}function da(t,e,n=Q(t,e),r=!1){const i=t.instrumentation;if(i==null){Vu(t,e,n,r);return}G(i,"store.recomputeNodeCounts",()=>Vu(t,e,n,r))}function Hu(t,e){let n=e;for(;n!=null;){const r=Q(t,n),i=r.subtreeNodeCount,o=r.visibleSubtreeCount;if(da(t,n,r),n===t.snapshot.rootId)return;const s=r.subtreeNodeCount-i,l=r.visibleSubtreeCount-o,a=r.parentId;(s!==0||l!==0)&&nc(qe(t,a),n,s,l),n=a}}function Vu(t,e,n,r){if(!te(n)){n.subtreeNodeCount=1,n.visibleSubtreeCount=1;return}const i=qe(t,e);if(r){const l=t.instrumentation;l==null?pl(t.snapshot.nodes,i):G(l,"store.recomputeNodeCounts.rebuildChildAggregates",()=>pl(t.snapshot.nodes,i))}const o=1+i.totalChildSubtreeNodeCount,s=i.totalChildVisibleSubtreeCount;if(n.subtreeNodeCount=o,ut(n,2)){n.visibleSubtreeCount=s;return}n.visibleSubtreeCount=go(t,e)!=null?s:Dt(t,e,n)?1+s:1}function Gb(t,e,n){const r=je(t,e);return r.length===0?n:`${r}${n}`}function uo(t){return t!=null&&!ut(t,4)}function bl(t,e){const n=t.snapshot.nodes[e];return!uo(n)||!te(n)||ut(n,2)?null:n}function Kb(t){let e=0;for(const[n,r]of t.pathCacheByNodeId)r.version===t.pathCacheVersion&&uo(t.snapshot.nodes[n])&&(e+=1);return e}function Yb(t){return Math.max(0,t.valueById.length-1)}function Bu(t){return{activeNodeCount:t.activeNodeCount,cachedPathEntryCount:Kb(t),loadInfoEntryCount:t.directoryLoadInfoById.size,segmentCount:Yb(t.snapshot.segmentTable),totalNodeSlotCount:Math.max(0,t.snapshot.nodes.length-1)}}function Xb(t,e,n,r){return{activeNodeCountAfter:r.activeNodeCount,activeNodeCountBefore:n.activeNodeCount,cachedPathEntryCountAfter:r.cachedPathEntryCount,cachedPathEntryCountBefore:n.cachedPathEntryCount,idsPreserved:e,loadInfoEntryCountAfter:r.loadInfoEntryCount,loadInfoEntryCountBefore:n.loadInfoEntryCount,mode:t,reclaimedCachedPathEntryCount:n.cachedPathEntryCount-r.cachedPathEntryCount,reclaimedLoadInfoEntryCount:n.loadInfoEntryCount-r.loadInfoEntryCount,reclaimedNodeSlotCount:n.totalNodeSlotCount-r.totalNodeSlotCount,reclaimedSegmentCount:n.segmentCount-r.segmentCount,segmentCountAfter:r.segmentCount,segmentCountBefore:n.segmentCount,totalNodeSlotCountAfter:r.totalNodeSlotCount,totalNodeSlotCountBefore:n.totalNodeSlotCount}}function $h(t){const e=[],n=[];for(const r of t.collapsedDirectoryIds)bl(t,r)!=null&&e.push(je(t,r));for(const r of t.expandedDirectoryIds)bl(t,r)!=null&&n.push(je(t,r));return{collapsedPaths:e,expandedPaths:n}}function jh(t){const e=[];for(const[n,r]of t.directoryLoadInfoById)bl(t,n)==null||Yo(t,n)==="loaded"||e.push({info:{activeAttemptId:null,errorMessage:r.errorMessage,nextAttemptId:r.nextAttemptId,state:r.state},path:je(t,n)});return e}function qh(t,e){t.collapsedDirectoryIds.clear(),t.hasCollapsedDirectoryOverrides=!1,t.expandedDirectoryIds.clear();for(const n of e.expandedPaths){const r=un(t,n);r!=null&&Ko(t,r,!0,Q(t,r))}for(const n of e.collapsedPaths){const r=un(t,n);r!=null&&Ko(t,r,!1,Q(t,r))}}function Uh(t,e){t.directoryLoadInfoById.clear();for(const n of e){const r=un(t,n.path);r!=null&&bl(t,r)!=null&&t.directoryLoadInfoById.set(r,{activeAttemptId:null,errorMessage:n.info.errorMessage,nextAttemptId:n.info.nextAttemptId,state:n.info.state})}}function Zb(t){t.pathCacheVersion+=1,t.pathCacheByNodeId.clear(),t.pathCacheByNodeId.set(t.snapshot.rootId,{path:"",version:t.pathCacheVersion})}function Qb(t){const e=t.snapshot.segmentTable,n=Rh();for(const r of t.snapshot.nodes)if(uo(r)){if(ut(r,2)){r.nameId=0;continue}r.nameId=Br(n,On(e,r.nameId))}t.snapshot.segmentTable=n}function Jb(t){for(const[e,n]of t.snapshot.directories){const r=t.snapshot.nodes[e];if(!uo(r)||!te(r)){t.snapshot.directories.delete(e);continue}const i=n.childIds.filter(o=>{const s=t.snapshot.nodes[o];return uo(s)&&s.parentId===e});n.childIds=i,n.childIdByNameId=new Map(i.map(o=>[Q(t,o).nameId,o])),n.childPositionById=new Map(i.map((o,s)=>[o,s])),pl(t.snapshot.nodes,n)}}function ey(t){let e=t.snapshot.nodes.length-1;for(;e>t.snapshot.rootId;){const n=t.snapshot.nodes[e];if(uo(n))break;e-=1}t.snapshot.nodes.length=e+1}function ty(t){const e=$h(t),n=jh(t);G(t.instrumentation,"store.cleanup.stable.clearPathCaches",()=>Zb(t)),G(t.instrumentation,"store.cleanup.stable.rebuildSegmentTable",()=>Qb(t)),G(t.instrumentation,"store.cleanup.stable.rebuildDirectoryIndexes",()=>Jb(t)),G(t.instrumentation,"store.cleanup.stable.trimTrailingRemovedNodeSlots",()=>ey(t)),G(t.instrumentation,"store.cleanup.stable.restoreExpansionOverrides",()=>qh(t,e)),G(t.instrumentation,"store.cleanup.stable.restoreDirectoryLoadInfos",()=>Uh(t,n)),G(t.instrumentation,"store.cleanup.stable.recomputeCounts",()=>lc(t,t.snapshot.rootId))}function ny(t){const e=$h(t),n=jh(t),r=G(t.instrumentation,"store.cleanup.aggressive.listPaths",()=>Fh(t)),i=Wm({...t.snapshot.options},t.instrumentation),o=G(t.instrumentation,"store.cleanup.aggressive.rebuildSnapshot",()=>{const s=new Dh(i);return s.appendPaths(r),s.finish()});t.snapshot=o,t.activeNodeCount=o.nodes.length-1,t.pathCacheByNodeId=new Map([[o.rootId,{path:"",version:0}]]),t.pathCacheVersion=0,G(t.instrumentation,"store.cleanup.aggressive.restoreExpansionOverrides",()=>qh(t,e)),G(t.instrumentation,"store.cleanup.aggressive.restoreDirectoryLoadInfos",()=>Uh(t,n)),G(t.instrumentation,"store.cleanup.aggressive.recomputeCounts",()=>lc(t,t.snapshot.rootId))}function ry(t){for(const e of t.directoryLoadInfoById.values())if(e.state==="loading"&&e.activeAttemptId!=null)return!0;return!1}function iy(t,e){const n=Bu(t);e==="stable"?G(t.instrumentation,"store.cleanup.stable",()=>ty(t)):G(t.instrumentation,"store.cleanup.aggressive",()=>ny(t));const r=Bu(t);return Xb(e,e==="stable",n,r)}const oy=64;function sy(t,e){const n=e+2;if(n<=t.length)return t;let r=t.length;for(;r<n;)r*=2;const i=new Int32Array(r);return i.fill(-1),i.set(t),i}function Ct(t){return Q(t,t.snapshot.rootId).visibleSubtreeCount}function Wh(t,e,n,r){const i=Q(t,e.terminalNodeId),o=Math.max(1,i.visibleSubtreeCount);return Math.min(r-1,n+o-1)}function ly(t,e,n,r){return{ancestorPaths:r,index:e.index,posInSet:e.posInSet,row:Xo(t,e.cursor),setSize:e.setSize,subtreeEndIndex:Wh(t,e.cursor,e.index,n)}}function Gh(t,e,n,r,i,o){const s=qe(t,e),{childIndex:l,childVisibleIndex:a,localVisibleIndex:d}=sa(t.snapshot.nodes,s,n),u=s.childIds[l];if(u==null)throw new Error(`Visible index ${String(n)} is out of range`);return ay(t,u,d,r+a,i+1,l,s.childIds.length,o)}function ay(t,e,n,r,i,o,s,l){const a=Q(t,e);if(!te(a)){if(n===0)return{ancestors:l,cursor:{headNodeId:e,terminalNodeId:e,visibleDepth:i},index:r,posInSet:o,setSize:s};throw new Error(`Visible index ${String(n)} is out of range for file`)}const d=Xh(t,e,i);if(n===0)return{ancestors:l,cursor:d,index:r,posInSet:o,setSize:s};const u=Q(t,d.terminalNodeId);if(!te(u)||!Dt(t,d.terminalNodeId,u))throw new Error(`Visible index ${String(n)} is out of range for collapsed directory`);return Gh(t,d.terminalNodeId,n-1,r+1,d.visibleDepth,[...l,{cursor:d,index:r,posInSet:o,setSize:s}])}function cy(t,e){const n=Ct(t);if(e<0||e>=n)return null;const r=Gh(t,t.snapshot.rootId,e,0,-1,[]),i=r.ancestors.map(s=>je(t,s.cursor.terminalNodeId));let o=null;return{ancestorPaths:i,get ancestorRows(){if(o!=null)return o;const s=[],l=[];for(const a of r.ancestors){const d=ly(t,a,n,[...l]);s.push(d),l.push(d.row.path)}return o=s,o},index:r.index,posInSet:r.posInSet,row:Xo(t,r.cursor),setSize:r.setSize,subtreeEndIndex:Wh(t,r.cursor,r.index,n)}}function uy(t,e,n){var h;const r=t.instrumentation,i=Ct(t);if(i<=0||n<e)return[];const o=Math.max(0,Math.min(e,i-1)),s=Math.max(o,Math.min(n,i-1));if(r==null){if(o===0)return by(t,s+1);const g=[];let f=$u(t,o);for(let m=o;m<=s&&f!=null;m++){const y=Xo(t,f);g.push(y),f=ju(t,f)}return g}const l=[];let a=0,d=0,u=G(r,"store.getVisibleSlice.selectFirstRow",()=>$u(t,o));for(let g=o;g<=s&&u!=null;g++){const f=G(r,"store.getVisibleSlice.materializeRow",()=>Xo(t,u));l.push(f),f.isFlattened&&(a++,d+=((h=f.flattenedSegments)==null?void 0:h.length)??0),u=G(r,"store.getVisibleSlice.advanceCursor",()=>ju(t,u))}return Ws(r,"workload.visibleRowsRead",l.length),Ws(r,"workload.flattenedRowsRead",a),Ws(r,"workload.flattenedSegmentsRead",d),l}function Kh(t,e=Ct(t)){const n=t.instrumentation;return n==null?qu(t,e):G(n,"store.getVisibleTreeProjection",()=>qu(t,e))}function dy(t){return my(Kh(t))}function hy(t,e){const n=un(t,e);if(n==null||n===t.snapshot.rootId)return null;const r=Q(t,n);if(te(r)&&pi(t,n)!==n)return null;let i=0,o=n;const{nodes:s,rootId:l}=t.snapshot;for(;o!==l;){const a=Q(t,o).parentId,d=qe(t,a),u=Sl(d).get(o);if(u==null)throw new Error(`Child ${String(o)} was not found in its parent index`);if(i+=$m(s,d,u),a!==l){const h=Q(t,a),g=go(t,a);if(!Dt(t,a,h)&&g!==o)return null;pi(t,a)===a&&(i+=1)}o=a}return i}function fy(t,e){const n=un(t,e);if(n==null)throw new Error(`Path does not exist: "${e}"`);const r=Q(t,n);if(!te(r))throw new Error(`Path is not a directory: "${e}"`);return Dt(t,n,r)?null:(Ko(t,n,!0,r),gi(t,n),wb({affectedAncestorIds:In(t,n),affectedNodeIds:[n],path:e}))}function py(t,e){const n=un(t,e);if(n==null)throw new Error(`Path does not exist: "${e}"`);const r=Q(t,n);if(!te(r))throw new Error(`Path is not a directory: "${e}"`);return Dt(t,n,r)?(Ko(t,n,!1,r),gi(t,n),Cb({affectedAncestorIds:In(t,n),affectedNodeIds:[n],path:e})):null}function $u(t,e){return e<0||e>=Ct(t)?null:Yh(t,t.snapshot.rootId,e,-1)}function Yh(t,e,n,r){const i=qe(t,e),o=t.instrumentation,{childIndex:s,localVisibleIndex:l}=o==null?sa(t.snapshot.nodes,i,n):G(o,"store.getVisibleSlice.selectChildIndex",()=>sa(t.snapshot.nodes,i,n)),a=i.childIds[s];if(a!=null)return ha(t,a,l,r+1);throw new Error(`Visible index ${String(n)} is out of range`)}function ha(t,e,n,r){const i=Q(t,e);if(!te(i)){if(n===0)return{headNodeId:e,terminalNodeId:e,visibleDepth:r};throw new Error(`Visible index ${String(n)} is out of range for file`)}const o=Xh(t,e,r);if(n===0)return o;const s=Q(t,o.terminalNodeId);if(!te(s)||!Dt(t,o.terminalNodeId,s))throw new Error(`Visible index ${String(n)} is out of range for collapsed directory`);return Yh(t,o.terminalNodeId,n-1,o.visibleDepth)}function Xh(t,e,n){const r=Q(t,e);return te(r)?t.instrumentation==null?{headNodeId:e,terminalNodeId:pi(t,e),visibleDepth:n}:{headNodeId:e,terminalNodeId:G(t.instrumentation,"store.getVisibleSlice.flatten.resolveTerminalDirectory",()=>pi(t,e)),visibleDepth:n}:{headNodeId:e,terminalNodeId:e,visibleDepth:n}}function gy(t,e){const n=Q(t,e);if(!te(n))return!0;const r=n.parentId;return r===t.snapshot.rootId?!0:go(t,r)!==e}function ju(t,e){const n=Q(t,e.terminalNodeId);if(te(n)){const o=qe(t,e.terminalNodeId);if(Dt(t,e.terminalNodeId,n)&&o.childIds.length>0){const s=o.childIds[0];return s==null?null:ha(t,s,0,e.visibleDepth+1)}}let r=e.terminalNodeId,i=e.visibleDepth;for(;;){const o=Q(t,r);if(r===t.snapshot.rootId)return null;const s=o.parentId,l=qe(t,s),a=Sl(l).get(r)??-1;if(a<0)throw new Error(`Child ${String(r)} was not found in its parent index`);const d=l.childIds[a+1]??null;if(d!=null)return ha(t,d,0,i);gy(t,r)&&i--,r=s}}function my(t){const e=t.paths.length,n=new Array(e);for(let r=0;r<e;r+=1){const i=t.getParentIndex(r);n[r]={index:r,parentPath:i>=0?t.paths[i]??null:null,path:t.paths[r]??"",posInSet:t.posInSetByIndex[r]??0,setSize:t.setSizeByIndex[r]??0}}return{getParentIndex:t.getParentIndex,rows:n,get visibleIndexByPath(){return t.visibleIndexByPath}}}function qu(t,e){const n=new Array(e),r=new Int32Array(e),i=new Int32Array(e),o=new Int32Array(e);let s=new Int32Array(oy);s.fill(-1);let l=0;const{nodes:a,directories:d,segmentTable:u}=t.snapshot,h=[[d.get(t.snapshot.rootId),0,-1,""]],g=t.snapshot.options.flattenEmptyDirectories,f=t.pathCacheByNodeId,m=t.pathCacheVersion,y=u.valueById;for(;h.length>0&&l<e;){const _=h[h.length-1],P=_[0];if(_[1]>=P.childIds.length){h.pop();continue}const L=_[1],z=P.childIds[_[1]++],V=a[z],J=_[2]+1,be=_[3];s=sy(s,J);let se,le=z;if(te(V))le=g?pi(t,z):z,se=le===z?`${be}${y[V.nameId]}/`:je(t,le);else{const Ce=f.get(z);se=Ce!=null&&Ce.version===m?Ce.path:`${be}${y[V.nameId]}`}const oe=s[J];r[l]=oe,n[l]=se,i[l]=L,o[l]=P.childIds.length,s[J+1]=l,l+=1;const Se=a[le];Se!=null&&te(Se)&&Dt(t,le,Se)&&h.push([d.get(le),0,J,se])}l<e&&(n.length=l);const v=r.subarray(0,l),C=i.subarray(0,l),I=o.subarray(0,l);let k=null;return{getParentIndex(_){return _<0||_>=l?-1:v[_]??-1},paths:n,posInSetByIndex:C,setSizeByIndex:I,get visibleIndexByPath(){if(k==null){k=new Map;for(let _=0;_<l;_+=1)k.set(n[_]??"",_)}return k}}}function by(t,e){const n=new Array(e);let r=0;const{nodes:i,directories:o,segmentTable:s}=t.snapshot,l=[[o.get(t.snapshot.rootId),0,-1]],a=s.valueById,d=t.snapshot.options.flattenEmptyDirectories,u=t.pathCacheByNodeId,h=t.pathCacheVersion;for(;l.length>0&&r<e;){const g=l[l.length-1],f=g[0];if(g[1]>=f.childIds.length){l.pop();continue}const m=f.childIds[g[1]++],y=i[m],v=g[2]+1;if(!te(y)){const _=u.get(m);n[r++]={depth:v,flattenedSegments:void 0,hasChildren:!1,id:m,isExpanded:!1,isFlattened:!1,isLoading:!1,kind:"file",loadState:void 0,name:a[y.nameId],path:_!=null&&_.version===h?_.path:je(t,m)};continue}const C=d?pi(t,m):m,I={headNodeId:m,terminalNodeId:C,visibleDepth:v};n[r++]=Xo(t,I);const k=i[C];k!=null&&te(k)&&Dt(t,C,k)&&l.push([o.get(C),0,v])}return r<e&&(n.length=r),n}function Xo(t,e){const n=Q(t,e.terminalNodeId),r=te(n)?yy(t,e):null,i=je(t,e.terminalNodeId),o=On(t.snapshot.segmentTable,n.nameId),s=te(n)&&qe(t,e.terminalNodeId).childIds.length>0,l=e.headNodeId!==e.terminalNodeId,a=t.instrumentation,d=l?a==null?ml(t,e.headNodeId).map(u=>{const h=Q(t,u);return{isTerminal:u===e.terminalNodeId,name:On(t.snapshot.segmentTable,h.nameId),nodeId:u,path:je(t,u)}}):G(a,"store.getVisibleSlice.flatten.collectSegments",()=>ml(t,e.headNodeId).map(u=>{const h=Q(t,u);return{isTerminal:u===e.terminalNodeId,name:On(t.snapshot.segmentTable,h.nameId),nodeId:u,path:je(t,u)}})):void 0;return{depth:e.visibleDepth,flattenedSegments:d,hasChildren:s,id:e.terminalNodeId,isExpanded:te(n)&&Dt(t,e.terminalNodeId,n),isFlattened:l,isLoading:r==="loading",kind:te(n)?"directory":"file",loadState:r==null||r==="loaded"?void 0:r,name:o,path:i}}function yy(t,e){if(e.headNodeId===e.terminalNodeId)return Yo(t,e.terminalNodeId);const n=ml(t,e.headNodeId);let r=!1,i=!1;for(const o of n){const s=Yo(t,o);if(s==="loading")return"loading";if(s==="error"){i=!0;continue}s==="unloaded"&&(r=!0)}return i?"error":r?"unloaded":"loaded"}const Uu=8;function vy(t){const{nodes:e,directories:n,rootId:r,options:i}=t,o=e.length,s=new Int32Array(o),l=new Int32Array(o),a=new Int32Array(o),d=new Int32Array(o),u=new Int32Array(o),h=new Int32Array(o),g=new Int32Array(o);for(let v=0;v<o;v+=1){const C=e[v];C!=null&&(s[v]=C.parentId,l[v]=C.nameId,a[v]=C.depthAndFlags,d[v]=C.subtreeNodeCount,u[v]=C.visibleSubtreeCount)}let f=0;for(const v of n.values())f+=v.childIds.length;const m=new Int32Array(f);let y=0;for(const[v,C]of n){const I=C.childIds;h[v]=y,g[v]=I.length;for(let k=0;k<I.length;k+=1)m[y]=I[k],y+=1}return{nodeCount:o,rootId:r,flattenEmptyDirectories:i.flattenEmptyDirectories===!0,parentId:s,nameId:l,depthAndFlags:a,subtreeNodeCount:d,visibleSubtreeCount:u,childStart:h,childCount:g,childIdsFlat:m}}function Sy(t){const{nodeCount:e,rootId:n,flattenEmptyDirectories:r,depthAndFlags:i,subtreeNodeCount:o,visibleSubtreeCount:s,childStart:l,childCount:a,childIdsFlat:d}=t;for(let m=e-1;m>=1;m-=1){if((i[m]&Uu)===0)continue;const y=l[m],v=a[m];let C=0,I=0;for(let _=0;_<v;_+=1){const P=d[y+_];C+=o[P],I+=s[P]}o[m]=1+C;let k;r&&v===1?k=(i[d[y]]&Uu)!==0?I:1+I:k=1+I,s[m]=k}const u=l[n],h=a[n];let g=0,f=0;for(let m=0;m<h;m+=1){const y=d[u+m];g+=o[y],f+=s[y]}o[n]=1+g,s[n]=f}function xy(t){const{directories:e,nodes:n,options:r,rootId:i,presortedDirectoryNodeIds:o}=t.snapshot,s=r.flattenEmptyDirectories===!0,l=f=>{const m=n[f];if(m==null||!te(m))return;const y=e.get(f);if(y==null)throw new Error(`Unknown directory child index for node ${String(f)}`);const v=y.childIds,C=v.length;let I=0,k=0;for(let P=0;P<C;P++){const L=v[P];if(L==null)continue;const z=n[L];I+=z.subtreeNodeCount,k+=z.visibleSubtreeCount}y.totalChildSubtreeNodeCount=I,y.totalChildVisibleSubtreeCount=k,C>=128&&co(n,y),m.subtreeNodeCount=1+I;let _;if(s&&C===1){const P=n[v[0]];_=P!=null&&te(P)?k:1+k}else _=1+k;m.visibleSubtreeCount=_};if(o!=null)for(let f=o.length-1;f>=0;f--)l(o[f]);else for(let f=n.length-1;f>=1;f--)l(f);const a=n[i],d=e.get(i);if(a==null||d==null)return;const u=d.childIds;let h=0,g=0;for(let f=0;f<u.length;f++){const m=u[f];if(m==null)continue;const y=n[m];h+=y.subtreeNodeCount,g+=y.visibleSubtreeCount}d.totalChildSubtreeNodeCount=h,d.totalChildVisibleSubtreeCount=g,co(n,d),a.subtreeNodeCount=1+h,a.visibleSubtreeCount=g}function wy(t){const{directories:e,nodes:n,rootId:r}=t.snapshot,i=vy(t.snapshot);Sy(i);const o=i.subtreeNodeCount,s=i.visibleSubtreeCount;for(let l=0;l<n.length;l+=1){const a=n[l];a!=null&&(a.subtreeNodeCount=o[l],a.visibleSubtreeCount=s[l])}for(const[l,a]of e){const d=a.childIds,u=d.length;let h=0,g=0;for(let f=0;f<u;f++){const m=d[f];if(m==null)continue;const y=n[m];h+=y.subtreeNodeCount,g+=y.visibleSubtreeCount}a.totalChildSubtreeNodeCount=h,a.totalChildVisibleSubtreeCount=g,(l===r||u>=128)&&co(n,a)}}function Cy(t){return t.initialExpansion==="open"&&(t.initialExpandedPaths==null||t.initialExpandedPaths.length===0)}var R,Gi,dc=(Gi=class{constructor(e={}){H(this,R);var l;const n=rc(e),r=G(n,"store.builder.create",()=>new Dh(e));if(e.preparedInput!=null){const a=lb(e.preparedInput);a!=null?r.appendPresortedPaths(a,ab(e.preparedInput)):r.appendPreparedPaths(sb(e.preparedInput),!1)}else{const a=e.paths??[];e.presorted===!0?r.appendPaths(a):r.appendPreparedPaths(G(n,"store.preparePathEntries",()=>sc(a,e)))}const i=G(n,"store.builder.finish",()=>r.finish({skipSubtreeCountPass:!0})),o=G(n,"store.state.detectAllDirectoriesExpanded",()=>(e.initialExpansion??"closed")==="closed"&&r.didMatchAllInitialExpandedPaths());E(this,R,G(n,"store.state.create",()=>cb(i,o?"open":e.initialExpansion??"closed",n))),o&&(c(this,R).collapseNewDirectoriesByDefault=!0);const s=o?c(this,R).snapshot.directories.size-1:G(n,"store.state.initializeExpandedPaths",()=>this.initializeExpandedPaths(e.initialExpandedPaths));o||Cy(e)||(e.initialExpansion??"closed")==="closed"&&s===c(this,R).snapshot.directories.size-1||(((l=e.initialExpandedPaths)==null?void 0:l.length)??0)>0&&G(n,"store.state.checkAllDirectoriesExpanded",()=>this.hasAllDirectoriesExpanded())?e.useSoaCountSweep===!0?G(n,"store.state.initializeOpenVisibleCountsViaSoa",()=>wy(c(this,R))):G(n,"store.state.initializeOpenVisibleCounts",()=>xy(c(this,R))):G(n,"store.state.recomputeCounts",()=>lc(c(this,R),c(this,R).snapshot.rootId))}static preparePaths(e,n={}){return rb(e,n)}static prepareInput(e,n={}){return ib(e,n)}static preparePresortedInput(e){return ob(e)}list(e){return G(c(this,R).instrumentation,"store.list",()=>Fh(c(this,R),e))}add(e){G(c(this,R).instrumentation,"store.add",()=>{const n=Ct(c(this,R));vn(c(this,R),Ft(c(this,R),n,Lu(c(this,R),e)))})}remove(e,n={}){G(c(this,R).instrumentation,"store.remove",()=>{const r=Ct(c(this,R));vn(c(this,R),Ft(c(this,R),r,Nu(c(this,R),e,n)))})}move(e,n,r={}){G(c(this,R).instrumentation,"store.move",()=>{const i=Ct(c(this,R)),o=Fu(c(this,R),e,n,r);o!=null&&vn(c(this,R),Ft(c(this,R),i,o))})}batch(e){Rb(c(this,R),()=>{if(typeof e=="function"){e(this);return}for(const n of e)switch(n.type){case"add":this.add(n.path);break;case"remove":this.remove(n.path,{recursive:n.recursive});break;case"move":this.move(n.from,n.to,{collision:n.collision})}})}getVisibleCount(){return G(c(this,R).instrumentation,"store.getVisibleCount",()=>Ct(c(this,R)))}getVisibleSlice(e,n){return G(c(this,R).instrumentation,"store.getVisibleSlice",()=>uy(c(this,R),e,n))}getVisibleRowContext(e){return G(c(this,R).instrumentation,"store.getVisibleRowContext",()=>cy(c(this,R),e))}getVisibleTreeProjection(){return dy(c(this,R))}getVisibleTreeProjectionData(e){return Kh(c(this,R),e)}getVisibleIndex(e){return G(c(this,R).instrumentation,"store.getVisibleIndex",()=>hy(c(this,R),e))}getPathInfo(e){return G(c(this,R).instrumentation,"store.getPathInfo",()=>{const n=un(c(this,R),e);if(n==null)return null;const r=Q(c(this,R),n);return{depth:zn(r),kind:te(r)?"directory":"file",path:je(c(this,R),n)}})}isExpanded(e){return G(c(this,R).instrumentation,"store.isExpanded",()=>{const n=this.requireDirectoryNodeId(e),r=Q(c(this,R),n);return Dt(c(this,R),n,r)})}expand(e){G(c(this,R).instrumentation,"store.expand",()=>{const n=Ct(c(this,R)),r=fy(c(this,R),e);r!=null&&vn(c(this,R),Ft(c(this,R),n,r))})}collapse(e){G(c(this,R).instrumentation,"store.collapse",()=>{const n=Ct(c(this,R)),r=py(c(this,R),e);r!=null&&vn(c(this,R),Ft(c(this,R),n,r))})}on(e,n){return yb(c(this,R),e,n)}getDirectoryLoadState(e){const n=this.requireDirectoryNodeId(e);return Yo(c(this,R),n)}markDirectoryUnloaded(e){G(c(this,R).instrumentation,"store.markDirectoryUnloaded",()=>{const n=this.requireDirectoryNodeId(e);if(qe(c(this,R),n).childIds.length>0)throw new Error(`Cannot mark a directory with known children as unloaded: "${e}"`);const r=Ct(c(this,R));fb(c(this,R),n),vn(c(this,R),Ft(c(this,R),r,Ib({affectedAncestorIds:In(c(this,R),n),affectedNodeIds:[n],path:e,projectionChanged:this.isDirectoryProjectionVisible(n)})))})}beginChildLoad(e){return G(c(this,R).instrumentation,"store.beginChildLoad",()=>{const n=this.requireDirectoryNodeId(e),r=Ct(c(this,R)),i=hb(c(this,R),n);return vn(c(this,R),Ft(c(this,R),r,kb({affectedAncestorIds:In(c(this,R),n),affectedNodeIds:[n],attemptId:i.attemptId,path:e,projectionChanged:this.isDirectoryProjectionVisible(n),reused:i.reused}))),i})}applyChildPatch(e,n){return G(c(this,R).instrumentation,"store.applyChildPatch",()=>{const r=this.resolveActiveDirectoryNodeId(e.nodeId);if(r==null||Yo(c(this,R),r)!=="loading"||!gb(c(this,R),r,e.attemptId))return!1;const i=je(c(this,R),r);this.validateChildPatch(i,n);const o=Ct(c(this,R)),s=[];for(const a of n.operations){Iy(i,a);const d=Ct(c(this,R));switch(a.type){case"add":s.push(Ft(c(this,R),d,Lu(c(this,R),a.path)));break;case"remove":s.push(Ft(c(this,R),d,Nu(c(this,R),a.path,{recursive:a.recursive})));break;case"move":{const u=Fu(c(this,R),a.from,a.to,{collision:a.collision});u!=null&&s.push(Ft(c(this,R),d,u));break}}}const l=s.some(a=>a.projectionChanged)||this.isDirectoryProjectionVisible(r);return vn(c(this,R),Ft(c(this,R),o,_b({affectedAncestorIds:In(c(this,R),r),affectedNodeIds:[r],attemptId:e.attemptId,childEvents:s,path:je(c(this,R),r),projectionChanged:l}))),!0})}completeChildLoad(e){return G(c(this,R).instrumentation,"store.completeChildLoad",()=>{const n=this.resolveActiveDirectoryNodeId(e.nodeId);if(n==null)return!1;const r=Ct(c(this,R)),i=pb(c(this,R),n,e.attemptId);return vn(c(this,R),Ft(c(this,R),r,Tb({affectedAncestorIds:In(c(this,R),n),affectedNodeIds:[n],attemptId:e.attemptId,path:je(c(this,R),n),projectionChanged:this.isDirectoryProjectionVisible(n),stale:!i}))),i})}failChildLoad(e,n){return G(c(this,R).instrumentation,"store.failChildLoad",()=>{const r=this.resolveActiveDirectoryNodeId(e.nodeId);if(r==null)return!1;const i=Ct(c(this,R)),o=mb(c(this,R),r,e.attemptId,n);return vn(c(this,R),Ft(c(this,R),i,Eb({affectedAncestorIds:In(c(this,R),r),affectedNodeIds:[r],attemptId:e.attemptId,errorMessage:n,path:je(c(this,R),r),projectionChanged:this.isDirectoryProjectionVisible(r),stale:!o}))),o})}cleanup(e={}){return G(c(this,R).instrumentation,"store.cleanup",()=>{if(c(this,R).transactionStack.length>0)throw new Error("Cleanup cannot run during an open batch or transaction.");if(ry(c(this,R)))throw new Error("Cleanup cannot run while directory loads are active.");const n=Ct(c(this,R)),r=iy(c(this,R),e.mode??"stable");return vn(c(this,R),Ft(c(this,R),n,Ab({...r,affectedAncestorIds:[],affectedNodeIds:[],projectionChanged:r.idsPreserved===!1}))),r})}getNodeCount(){return c(this,R).activeNodeCount}initializeExpandedPaths(e){if(e==null||e.length===0)return 0;let n=0;const r=[],i=[];let o=0,s=null;const l=c(this,R).snapshot.segmentTable,a=l.valueById,d=c(this,R).snapshot.nodes,u=new Map;for(const h of e){s!=null&&h<s&&(s=null,o=0,r.length=0,i.length=0);const g=h.length>0&&h.charCodeAt(h.length-1)===47?h.length-1:h.length;if(g===0){s=h,o=g,r.length=0,i.length=0;continue}let f=0,m=0;if(s!=null){const k=Math.min(g,o);let _=!0;for(let P=0;P<k;P+=1){const L=h.charCodeAt(P);if(L!==s.charCodeAt(P)){_=!1;break}L===47&&(f+=1,m=P+1)}_&&(k===o&&g>k&&h.charCodeAt(k)===47?(f+=1,m=k+1):k===g&&o>k&&s.charCodeAt(k)===47&&(f+=1,m=g+1)),f=Math.min(f,i.length)}let y=f===0?c(this,R).snapshot.rootId:i[f-1]??c(this,R).snapshot.rootId,v=f,C=!0,I=m;for(;I<=g;){const k=h.indexOf("/",I),_=k===-1||k>g?g:k,P=h.slice(I,_),L=qe(c(this,R),y).childIds,z=v===f?r[v]??0:0;let V=z,J;const be=u.get(P)??ps(P);u.set(P,be);const se=(oe,Se)=>{for(V=oe;V<Se;V+=1){const Ce=L[V],K=d[Ce],ue=a[K.nameId];if(ue===P)return J=Ce,!0;const _e=ic(la(l,K.nameId),be);if(_e>0||_e===0&&ue>P)return!1}return!1};if(!se(z,L.length)&&z>0&&se(0,z),J===void 0){C=!1;break}const le=Q(c(this,R),J);if(!te(le)){C=!1;break}if(r[v]=V,i[v]=J,y=J,v+=1,_===g)break;I=_+1}if(s=h,o=g,r.length=v,i.length=v,!C){s=null,o=0,r.length=0,i.length=0;continue}for(let k=f;k<v;k+=1){const _=i[k];if(_==null)continue;const P=Q(c(this,R),_);Dt(c(this,R),_,P)||(Ko(c(this,R),_,!0,P),n+=1)}}return n}hasAllDirectoriesExpanded(){for(const e of c(this,R).snapshot.directories.keys()){if(e===c(this,R).snapshot.rootId)continue;const n=Q(c(this,R),e);if(!Dt(c(this,R),e,n))return!1}return!0}requireDirectoryNodeId(e){const n=un(c(this,R),e);if(n==null)throw new Error(`Path does not exist: "${e}"`);const r=Q(c(this,R),n);if(!te(r))throw new Error(`Path is not a directory: "${e}"`);return n}resolveActiveDirectoryNodeId(e){try{const n=Q(c(this,R),e);if(!te(n))throw new Error(`Node is not a directory: ${String(e)}`);return e}catch{return null}}isDirectoryProjectionVisible(e){let n=e;for(;n!==c(this,R).snapshot.rootId;){const r=Q(c(this,R),n).parentId;if(r!==c(this,R).snapshot.rootId){const i=Q(c(this,R),r),o=go(c(this,R),r);if(!Dt(c(this,R),r,i)&&o!==n)return!1}n=r}return!0}validateChildPatch(e,n){new Gi({paths:this.list(e),presorted:!0,sort:c(this,R).snapshot.options.sort}).batch(n.operations)}},R=new WeakMap,Gi);function Iy(t,e){switch(e.type){case"add":case"remove":if(!e.path.startsWith(t)||e.path===t)throw new Error(`Child patch operation must stay within ${t}: "${e.path}"`);break;case"move":if(!e.from.startsWith(t)||!e.to.startsWith(t)||e.from===t||e.to===t)throw new Error(`Child patch move must stay within ${t}: "${e.from}" -> "${e.to}"`)}}function ky(t,e={}){return dc.prepareInput(t,e)}const fa={compact:{itemHeight:24,factor:.8},default:{itemHeight:30,factor:1},relaxed:{itemHeight:36,factor:1.2}};function _y(t,e){if(typeof t=="number")return{itemHeight:e??fa.default.itemHeight,factor:t};const n=fa[t??"default"];return{itemHeight:e??n.itemHeight,factor:n.factor}}const Zh=fa.default.itemHeight;var Wu=`@layer base {
252
+ :host {
253
+ --trees-accent: var(--trees-accent-override, #009fff);
254
+ --trees-fg: var(--trees-fg-override, var(--trees-theme-sidebar-fg, light-dark(#6c6c71, #adadb1)));
255
+ --trees-fg-muted: var(--trees-fg-muted-override, var(--trees-theme-sidebar-header-fg, #84848a));
256
+ --trees-bg: var(--trees-bg-override, var(--trees-theme-sidebar-bg, light-dark(#f8f8f8, #141415)));
257
+ --trees-bg-muted: var(--trees-bg-muted-override, var(--trees-theme-list-hover-bg, light-dark(color-mix(in lab,
258
+ var(--trees-accent) var(--trees-bg-alpha-light, 8%),
259
+ var(--trees-bg)), color-mix(in lab,
260
+ var(--trees-accent) var(--trees-bg-alpha-dark, 10%),
261
+ var(--trees-bg)))));
262
+ --trees-input-bg: var(--trees-input-bg-override, light-dark(#f8f8f8, #070707));
263
+ --trees-added-light: #16a994;
264
+ --trees-added-dark: #00cab1;
265
+ --trees-ignored-light: #adadb1;
266
+ --trees-ignored-dark: #4a4a4e;
267
+ --trees-modified-light: #1ca1c7;
268
+ --trees-modified-dark: #08c0ef;
269
+ --trees-renamed-light: #d5a910;
270
+ --trees-renamed-dark: #ffd452;
271
+ --trees-untracked-light: #16a994;
272
+ --trees-untracked-dark: #00cab1;
273
+ --trees-deleted-light: #ff2e3f;
274
+ --trees-deleted-dark: #ff6762;
275
+ --trees-border-color: var(--trees-border-color-override, var(--trees-theme-sidebar-border, light-dark(#eeeeef, #070707)));
276
+ --trees-indent-guide-bg: var(--trees-indent-guide-bg-override, color-mix(in lab, var(--trees-fg-muted) 25%, transparent));
277
+ --trees-density: var(--trees-density-override, 1);
278
+ --trees-border-radius: var(--trees-border-radius-override, calc(6px * var(--trees-density)));
279
+ --trees-font-family: var(--trees-font-family-override, system-ui);
280
+ --trees-font-size: var(--trees-font-size-override, 13px);
281
+ --trees-font-weight-regular: var(--trees-font-weight-regular-override, 400);
282
+ --trees-font-weight-semibold: var(--trees-font-weight-semibold-override, 600);
283
+ --trees-focus-ring-color: var(--trees-focus-ring-color-override, var(--trees-theme-focus-ring, var(--trees-accent)));
284
+ --trees-focus-ring-width: var(--trees-focus-ring-width-override, 1px);
285
+ --trees-focus-ring-offset: var(--trees-focus-ring-offset-override, -1px);
286
+ --trees-search-fg: var(--trees-search-fg-override, var(--trees-theme-input-fg, var(--trees-fg)));
287
+ --trees-search-font-weight: var(--trees-search-font-weight-override, 600);
288
+ --trees-search-bg: var(--trees-search-bg-override, var(--trees-theme-input-bg, var(--trees-input-bg)));
289
+ --trees-scrollbar-thumb: var(--trees-scrollbar-thumb-override, var(--trees-theme-scrollbar-thumb, color-mix(in lab, var(--trees-fg) 25%, var(--trees-bg))));
290
+ --trees-selected-fg: var(--trees-selected-fg-override, var(--trees-theme-list-active-selection-fg, var(--trees-fg)));
291
+ --trees-selected-bg: var(--trees-selected-bg-override, var(--trees-theme-list-active-selection-bg, light-dark(color-mix(in lab, var(--trees-accent) 12%, var(--trees-bg)), color-mix(in lab, var(--trees-accent) 15%, var(--trees-bg)))));
292
+ --trees-selected-focused-border-color: var(--trees-selected-focused-border-color-override, var(--trees-theme-focus-ring, var(--trees-accent)));
293
+ --trees-status-added: var(--trees-status-added-override, var(--trees-theme-git-added-fg, light-dark(var(--trees-added-light), var(--trees-added-dark))));
294
+ --trees-status-ignored: var(--trees-status-ignored-override, var(--trees-theme-git-ignored-fg, light-dark(var(--trees-ignored-light), var(--trees-ignored-dark))));
295
+ --trees-status-modified: var(--trees-status-modified-override, var(--trees-theme-git-modified-fg, light-dark(var(--trees-modified-light), var(--trees-modified-dark))));
296
+ --trees-status-renamed: var(--trees-status-renamed-override, var(--trees-theme-git-renamed-fg, light-dark(var(--trees-renamed-light), var(--trees-renamed-dark))));
297
+ --trees-status-untracked: var(--trees-status-untracked-override, var(--trees-theme-git-untracked-fg, light-dark(var(--trees-untracked-light), var(--trees-untracked-dark))));
298
+ --trees-status-deleted: var(--trees-status-deleted-override, var(--trees-theme-git-deleted-fg, light-dark(var(--trees-deleted-light), var(--trees-deleted-dark))));
299
+ --trees-git-modified-color: var(--trees-git-modified-color-override, var(--trees-status-modified));
300
+ --trees-git-added-color: var(--trees-git-added-color-override, var(--trees-status-added));
301
+ --trees-git-ignored-color: var(--trees-git-ignored-color-override, var(--trees-status-ignored));
302
+ --trees-git-deleted-color: var(--trees-git-deleted-color-override, var(--trees-status-deleted));
303
+ --trees-git-renamed-color: var(--trees-git-renamed-color-override, var(--trees-status-renamed));
304
+ --trees-git-untracked-color: var(--trees-git-untracked-color-override, var(--trees-status-untracked));
305
+ --trees-icon-gray: light-dark(#84848a, #adadb1);
306
+ --trees-icon-red: light-dark(#d52c36, #ff6762);
307
+ --trees-icon-vermilion: light-dark(#ff8c5b, #d5512f);
308
+ --trees-icon-orange: light-dark(#d47628, #ffa359);
309
+ --trees-icon-yellow: light-dark(#d5a910, #ffd452);
310
+ --trees-icon-green: light-dark(#199f43, #5ecc71);
311
+ --trees-icon-teal: light-dark(#17a5af, #64d1db);
312
+ --trees-icon-cyan: light-dark(#1ca1c7, #68cdf2);
313
+ --trees-icon-blue: light-dark(#1a85d4, #69b1ff);
314
+ --trees-icon-indigo: light-dark(#693acf, #9d6afb);
315
+ --trees-icon-purple: light-dark(#a631be, #d568ea);
316
+ --trees-icon-pink: light-dark(#d32a61, #ff678d);
317
+ --trees-icon-mauve: light-dark(#594c5b, #79697b);
318
+ --trees-file-icon-color-default: var(--trees-file-icon-color, var(--trees-icon-gray));
319
+ --trees-file-icon-color-astro: var(--trees-file-icon-color, var(--trees-icon-purple));
320
+ --trees-file-icon-color-babel: var(--trees-file-icon-color, var(--trees-icon-yellow));
321
+ --trees-file-icon-color-bash: var(--trees-file-icon-color, var(--trees-icon-green));
322
+ --trees-file-icon-color-biome: var(--trees-file-icon-color, var(--trees-icon-blue));
323
+ --trees-file-icon-color-bootstrap: var(--trees-file-icon-color, var(--trees-icon-indigo));
324
+ --trees-file-icon-color-browserslist: var(--trees-file-icon-color, var(--trees-icon-yellow));
325
+ --trees-file-icon-color-bun: var(--trees-file-icon-color, var(--trees-icon-mauve));
326
+ --trees-file-icon-color-c: var(--trees-file-icon-color, var(--trees-icon-blue));
327
+ --trees-file-icon-color-cpp: var(--trees-file-icon-color, var(--trees-icon-blue));
328
+ --trees-file-icon-color-claude: var(--trees-file-icon-color, var(--trees-icon-orange));
329
+ --trees-file-icon-color-css: var(--trees-file-icon-color, var(--trees-icon-indigo));
330
+ --trees-file-icon-color-database: var(--trees-file-icon-color, var(--trees-icon-purple));
331
+ --trees-file-icon-color-docker: var(--trees-file-icon-color, var(--trees-icon-blue));
332
+ --trees-file-icon-color-eslint: var(--trees-file-icon-color, var(--trees-icon-indigo));
333
+ --trees-file-icon-color-git: var(--trees-file-icon-vermilion, var(--trees-icon-vermilion));
334
+ --trees-file-icon-color-go: var(--trees-file-icon-color, var(--trees-icon-cyan));
335
+ --trees-file-icon-color-graphql: var(--trees-file-icon-color, var(--trees-icon-pink));
336
+ --trees-file-icon-color-html: var(--trees-file-icon-color, var(--trees-icon-orange));
337
+ --trees-file-icon-color-image: var(--trees-file-icon-color, var(--trees-icon-pink));
338
+ --trees-file-icon-color-javascript: var(--trees-file-icon-color, var(--trees-icon-yellow));
339
+ --trees-file-icon-color-json: var(--trees-file-icon-color, var(--trees-icon-orange));
340
+ --trees-file-icon-color-markdown: var(--trees-file-icon-color, var(--trees-icon-green));
341
+ --trees-file-icon-color-mcp: var(--trees-file-icon-color, var(--trees-icon-teal));
342
+ --trees-file-icon-color-npm: var(--trees-file-icon-color, var(--trees-icon-red));
343
+ --trees-file-icon-color-oxc: var(--trees-file-icon-cyan, var(--trees-icon-cyan));
344
+ --trees-file-icon-color-postcss: var(--trees-file-icon-color, var(--trees-icon-red));
345
+ --trees-file-icon-color-prettier: var(--trees-file-icon-color, var(--trees-icon-teal));
346
+ --trees-file-icon-color-python: var(--trees-file-icon-color, var(--trees-icon-blue));
347
+ --trees-file-icon-color-react: var(--trees-file-icon-color, var(--trees-icon-cyan));
348
+ --trees-file-icon-color-ruby: var(--trees-file-icon-color, var(--trees-icon-red));
349
+ --trees-file-icon-color-rust: var(--trees-file-icon-color, var(--trees-icon-orange));
350
+ --trees-file-icon-color-sass: var(--trees-file-icon-color, var(--trees-icon-pink));
351
+ --trees-file-icon-color-svg: var(--trees-file-icon-color, var(--trees-icon-orange));
352
+ --trees-file-icon-color-svelte: var(--trees-file-icon-color, var(--trees-icon-red));
353
+ --trees-file-icon-color-svgo: var(--trees-file-icon-color, var(--trees-icon-green));
354
+ --trees-file-icon-color-swift: var(--trees-file-icon-color, var(--trees-icon-orange));
355
+ --trees-file-icon-color-table: var(--trees-file-icon-color, var(--trees-icon-teal));
356
+ --trees-file-icon-color-text: var(--trees-file-icon-color, var(--trees-icon-gray));
357
+ --trees-file-icon-color-tailwind: var(--trees-file-icon-color, var(--trees-icon-cyan));
358
+ --trees-file-icon-color-terraform: var(--trees-file-icon-color, var(--trees-icon-indigo));
359
+ --trees-file-icon-color-typescript: var(--trees-file-icon-color, var(--trees-icon-blue));
360
+ --trees-file-icon-color-vite: var(--trees-file-icon-color, var(--trees-icon-purple));
361
+ --trees-file-icon-color-vscode: var(--trees-file-icon-color, var(--trees-icon-blue));
362
+ --trees-file-icon-color-vue: var(--trees-file-icon-color, var(--trees-icon-green));
363
+ --trees-file-icon-color-wasm: var(--trees-file-icon-color, var(--trees-icon-indigo));
364
+ --trees-file-icon-color-webpack: var(--trees-file-icon-color, var(--trees-icon-blue));
365
+ --trees-file-icon-color-yml: var(--trees-file-icon-color, var(--trees-icon-red));
366
+ --trees-file-icon-color-zig: var(--trees-file-icon-color, var(--trees-icon-orange));
367
+ --trees-file-icon-color-zip: var(--trees-file-icon-color, var(--trees-icon-orange));
368
+ --trees-level-gap: var(--trees-level-gap-override, calc(8px * var(--trees-density)));
369
+ --trees-item-padding-x: var(--trees-item-padding-x-override, calc(8px * var(--trees-density)));
370
+ --trees-item-margin-x: var(--trees-item-margin-x-override, calc(2px * var(--trees-density)));
371
+ --trees-item-row-gap: var(--trees-item-row-gap-override, calc(6px * var(--trees-density)));
372
+ --trees-icon-width: var(--trees-icon-width-override, 16px);
373
+ --trees-icon-nudge: var(--trees-icon-nudge-override, calc(1px * var(--trees-density)));
374
+ --trees-row-height: var(--trees-item-height, 30px);
375
+ --trees-git-lane-width: var(--trees-git-lane-width-override, 12px);
376
+ --trees-action-lane-width: var(--trees-action-lane-width-override, calc(var(--trees-icon-width) + 2px));
377
+ --trees-context-menu-trigger-inline-offset: calc(var(--trees-padding-inline) + var(--trees-item-padding-x) -
378
+ var(--trees-focus-ring-width));
379
+ --trees-scrollbar-gutter: var(--trees-scrollbar-gutter-override, 6px);
380
+ --trees-padding-inline: var(--trees-padding-inline-override, 16px);
381
+ color-scheme: light dark;
382
+ font-size: var(--trees-font-size);
383
+ color: var(--trees-fg);
384
+ background-color: var(--trees-bg);
385
+ --truncate-marker-background-color: var(--trees-bg);
386
+ --truncate-marker-background-overlay-color: transparent;
387
+ font-family: var(--trees-font-family);
388
+ font-weight: var(--trees-font-weight-regular);
389
+ flex-direction: column;
390
+ display: flex;
391
+ }
392
+
393
+ :host([data-file-tree-virtualized="true"]) {
394
+ height: 100%;
395
+ overflow: hidden;
396
+ }
397
+
398
+ [data-file-tree-virtualized-wrapper="true"], [data-file-tree-virtualized-root="true"] {
399
+ flex-direction: column;
400
+ height: 100%;
401
+ display: flex;
402
+ overflow: hidden;
403
+ }
404
+
405
+ [data-file-tree-virtualized-scroll="true"], [data-file-tree-scrollbar-measure="true"] {
406
+ --trees-scrollbar-thumb-current: transparent;
407
+ scrollbar-gutter: stable;
408
+ overflow-y: auto;
409
+
410
+ &:hover {
411
+ --trees-scrollbar-thumb-current: var(--trees-scrollbar-thumb);
412
+ }
413
+
414
+ &::-webkit-scrollbar {
415
+ width: var(--trees-scrollbar-gutter);
416
+ height: var(--trees-scrollbar-gutter);
417
+ }
418
+
419
+ &::-webkit-scrollbar-track {
420
+ background: none;
421
+ }
422
+
423
+ &::-webkit-scrollbar-thumb {
424
+ background-color: var(--trees-scrollbar-thumb-current);
425
+ border-radius: calc(var(--trees-scrollbar-gutter) / 2);
426
+ background-clip: content-box;
427
+ border: 1px solid #0000;
428
+ }
429
+
430
+ &::-webkit-scrollbar-corner {
431
+ background-color: #0000;
432
+ }
433
+ }
434
+
435
+ [data-file-tree-scrollbar-measure="true"] {
436
+ visibility: hidden;
437
+ pointer-events: none;
438
+ width: 100px;
439
+ height: 100px;
440
+ position: absolute;
441
+ top: 0;
442
+ left: 0;
443
+ }
444
+
445
+ @supports ((-moz-appearance: none)) {
446
+ [data-file-tree-virtualized-scroll="true"], [data-file-tree-scrollbar-measure="true"] {
447
+ scrollbar-width: thin;
448
+ scrollbar-color: var(--trees-scrollbar-thumb-current) transparent;
449
+ }
450
+ }
451
+
452
+ [data-file-tree-virtualized-scroll="true"] {
453
+ min-height: 0;
454
+ padding-inline: max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),
455
+ 0px)
456
+ /* NOTE(amadeus): We can assume that all Webkit based browser gutters
457
+ * will align to the value of '--trees-scrollbar-gutter', however if not, then
458
+ * \`--trees-scrollbar-gutter-measured\` should correct it. Mostly we are
459
+ * hoping to avoid SSR alignment jumps if possible. In non-SSR'd environments
460
+ * \`--trees-scrollbar-gutter-measured\` should always be immediately available.
461
+ */
462
+ max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x) -
463
+ var(--trees-scrollbar-gutter-measured, var(--trees-scrollbar-gutter))),
464
+ 0px);
465
+ flex: 1 1 0;
466
+ position: relative;
467
+ overflow-y: auto;
468
+ }
469
+
470
+ @supports ((-moz-appearance: none)) {
471
+ [data-file-tree-virtualized-scroll="true"] {
472
+ padding-inline: max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x)),
473
+ 0px)
474
+ /* NOTE(amadeus): However on Firefox it can vary a little bit, but most
475
+ * likely the majority of cases will default to a 0px width scrollbar lets
476
+ * inherit that first to avoid SSR jumps. In non-SSR'd environments
477
+ * \`--trees-scrollbar-gutter-measured\` should always be immediately available.
478
+ */
479
+ max(calc(var(--trees-padding-inline) - var(--trees-item-margin-x) -
480
+ var(--trees-scrollbar-gutter-measured, 0px)),
481
+ 0px);
482
+ }
483
+ }
484
+
485
+ [data-file-tree-sticky-overlay="true"] {
486
+ z-index: 4;
487
+ pointer-events: none;
488
+ height: 0;
489
+ position: sticky;
490
+ top: 0;
491
+ overflow: visible;
492
+ }
493
+
494
+ [data-file-tree-virtualized-root="true"][data-scroll-at-top="true"]:not([data-overlay-reveal]) [data-file-tree-sticky-overlay="true"] {
495
+ visibility: hidden;
496
+ }
497
+
498
+ [data-file-tree-sticky-overlay-content="true"] {
499
+ background-color: var(--trees-bg);
500
+ pointer-events: none;
501
+ position: relative;
502
+ }
503
+
504
+ [data-file-tree-virtualized-list="true"] {
505
+ background-color: var(--trees-bg);
506
+ overflow-anchor: none;
507
+ width: 100%;
508
+ min-height: 100%;
509
+ position: relative;
510
+
511
+ &[data-is-scrolling] {
512
+ pointer-events: none;
513
+ }
514
+ }
515
+
516
+ [data-file-tree-virtualized-sticky-offset="true"] {
517
+ contain: layout size;
518
+ }
519
+
520
+ [data-file-tree-virtualized-sticky="true"] {
521
+ isolation: isolate;
522
+ will-change: transform;
523
+ flex-direction: column;
524
+ width: 100%;
525
+ display: flex;
526
+ position: sticky;
527
+ top: 0;
528
+ }
529
+
530
+ [data-file-tree-search-container] {
531
+ padding: 0;
532
+ padding-inline: var(--trees-padding-inline);
533
+ margin-bottom: var(--trees-item-row-gap);
534
+ display: flex;
535
+ }
536
+
537
+ [data-file-tree-search-input] {
538
+ --trees-focus-ring-width: 2px;
539
+ font-family: var(--trees-font-family);
540
+ font-size: var(--trees-font-size);
541
+ height: var(--trees-row-height);
542
+ padding-inline: var(--trees-item-padding-x);
543
+ line-height: var(--trees-row-height);
544
+ color: var(--trees-search-fg);
545
+ background-color: var(--trees-search-bg);
546
+ border: 1px solid var(--trees-border-color);
547
+ border-radius: var(--trees-border-radius);
548
+ outline: none;
549
+ flex: 1;
550
+ margin-block: 1px;
551
+
552
+ &::placeholder {
553
+ color: color-mix(in lab,
554
+ var(--trees-search-fg) 65%,
555
+ var(--trees-search-bg));
556
+ }
557
+
558
+ &:focus-visible, &[data-file-tree-search-input-fake-focus="true"] {
559
+ outline: var(--trees-focus-ring-width) solid var(--trees-focus-ring-color);
560
+ outline-offset: var(--trees-focus-ring-offset);
561
+ }
562
+ }
563
+
564
+ [role="tree"] {
565
+ gap: var(--trees-gap-override, 0);
566
+ flex-direction: column;
567
+ display: flex;
568
+ position: relative;
569
+ }
570
+
571
+ [data-type="item"] {
572
+ color: inherit;
573
+ font-family: var(--trees-font-family);
574
+ font-size: var(--trees-font-size);
575
+ text-align: start;
576
+ background-color: var(--trees-bg);
577
+ padding: 0 var(--trees-item-padding-x);
578
+ margin: 0 var(--trees-item-margin-x);
579
+ cursor: pointer;
580
+ user-select: none;
581
+ -webkit-touch-callout: none;
582
+ touch-action: manipulation;
583
+ flex: 0 0 var(--trees-row-height);
584
+ height: var(--trees-row-height);
585
+ line-height: var(--trees-row-height);
586
+ align-items: center;
587
+ gap: var(--trees-item-row-gap);
588
+ border-radius: var(--trees-border-radius);
589
+ --truncate-marker-background-color: var(--trees-bg);
590
+ --truncate-marker-background-overlay-color: transparent;
591
+ --truncate-marker-block-inset: 0px;
592
+ border: none;
593
+ outline: none;
594
+ display: flex;
595
+ position: relative;
596
+
597
+ &:hover, &[data-item-context-hover="true"] {
598
+ background-color: var(--trees-bg-muted);
599
+ --truncate-marker-background-overlay-color: var(--trees-bg-muted);
600
+ }
601
+
602
+ &[data-item-focused="true"], &:focus-visible {
603
+ z-index: 2;
604
+
605
+ & [data-item-flattened-subitems] {
606
+ --truncate-marker-block-inset: var(--trees-focus-ring-width);
607
+ }
608
+
609
+ &:before {
610
+ content: "";
611
+ border-radius: var(--trees-border-radius);
612
+ outline: var(--trees-focus-ring-width) solid
613
+ var(--trees-focus-ring-color);
614
+ outline-offset: var(--trees-focus-ring-offset);
615
+ pointer-events: none;
616
+ display: block;
617
+ position: absolute;
618
+ inset: 0;
619
+ }
620
+
621
+ &[data-item-selected="true"]:before {
622
+ outline-color: var(--trees-selected-focused-border-color);
623
+ }
624
+ }
625
+
626
+ &[data-item-selected="true"] {
627
+ color: var(--trees-selected-fg);
628
+ background-color: var(--trees-selected-bg);
629
+ --truncate-marker-background-overlay-color: var(--trees-selected-bg);
630
+ z-index: 3;
631
+
632
+ & [data-item-section="icon"] {
633
+ color: var(--trees-selected-fg);
634
+ }
635
+ }
636
+
637
+ &[data-item-search-match="true"] {
638
+ font-weight: var(--trees-search-font-weight);
639
+ }
640
+ }
641
+
642
+ [data-type="item"][data-file-tree-sticky-row="true"] {
643
+ pointer-events: auto;
644
+ }
645
+
646
+ [data-file-tree-virtualized-root="true"][data-is-scrolling] [data-type="item"][data-file-tree-sticky-row="true"] {
647
+ pointer-events: none;
648
+ }
649
+
650
+ [data-file-tree-virtualized-root="true"][data-is-scrolling] [data-type="item"][data-file-tree-sticky-row="true"]:hover:not([data-item-selected="true"]), [data-file-tree-virtualized-root="true"][data-is-scrolling] [data-type="item"][data-file-tree-sticky-row="true"][data-item-context-hover="true"]:not([data-item-selected="true"]) {
651
+ background-color: var(--trees-bg);
652
+ --truncate-marker-background-overlay-color: transparent;
653
+ }
654
+
655
+ [data-item-selected="true"]:has( + [data-item-selected="true"]) {
656
+ border-bottom-right-radius: 0;
657
+ border-bottom-left-radius: 0;
658
+ }
659
+
660
+ [data-item-selected="true"] + [data-item-selected="true"] {
661
+ border-top-left-radius: 0;
662
+ border-top-right-radius: 0;
663
+ }
664
+
665
+ [data-item-flattened-subitems] {
666
+ align-items: center;
667
+ gap: 2px;
668
+ display: inline-flex;
669
+ }
670
+
671
+ [data-item-flattened-subitem]:hover, [data-item-flattened-subitem-drag-target="true"] {
672
+ text-decoration: underline;
673
+ }
674
+
675
+ [data-item-section="icon"] {
676
+ color: var(--trees-fg-muted);
677
+ fill: currentColor;
678
+ width: var(--trees-icon-width);
679
+ flex-shrink: 0;
680
+ justify-content: center;
681
+ align-items: center;
682
+ display: flex;
683
+ }
684
+
685
+ :where([data-item-section="icon"] > [data-icon-token]) {
686
+ color: var(--trees-fg-muted);
687
+ }
688
+
689
+ [data-file-tree-colored-icons="true"] {
690
+ & [data-icon-token="astro"] {
691
+ color: var(--trees-file-icon-color-astro);
692
+ }
693
+
694
+ & [data-icon-token="babel"] {
695
+ color: var(--trees-file-icon-color-babel);
696
+ }
697
+
698
+ & [data-icon-token="bash"] {
699
+ color: var(--trees-file-icon-color-bash);
700
+ }
701
+
702
+ & [data-icon-token="biome"] {
703
+ color: var(--trees-file-icon-color-biome);
704
+ }
705
+
706
+ & [data-icon-token="bootstrap"] {
707
+ color: var(--trees-file-icon-color-bootstrap);
708
+ }
709
+
710
+ & [data-icon-token="browserslist"] {
711
+ color: var(--trees-file-icon-color-browserslist);
712
+ }
713
+
714
+ & [data-icon-token="bun"] {
715
+ color: var(--trees-file-icon-color-bun);
716
+ }
717
+
718
+ & [data-icon-token="c"] {
719
+ color: var(--trees-file-icon-color-c);
720
+ }
721
+
722
+ & [data-icon-token="cpp"] {
723
+ color: var(--trees-file-icon-color-cpp);
724
+ }
725
+
726
+ & [data-icon-token="claude"] {
727
+ color: var(--trees-file-icon-color-claude);
728
+ }
729
+
730
+ & [data-icon-token="css"] {
731
+ color: var(--trees-file-icon-color-css);
732
+ }
733
+
734
+ & [data-icon-token="database"] {
735
+ color: var(--trees-file-icon-color-database);
736
+ }
737
+
738
+ & [data-icon-token="default"] {
739
+ color: var(--trees-file-icon-color-default);
740
+ }
741
+
742
+ & [data-icon-token="docker"] {
743
+ color: var(--trees-file-icon-color-docker);
744
+ }
745
+
746
+ & [data-icon-token="eslint"] {
747
+ color: var(--trees-file-icon-color-eslint);
748
+ }
749
+
750
+ & [data-icon-token="git"] {
751
+ color: var(--trees-file-icon-color-git);
752
+ }
753
+
754
+ & [data-icon-token="go"] {
755
+ color: var(--trees-file-icon-color-go);
756
+ }
757
+
758
+ & [data-icon-token="graphql"] {
759
+ color: var(--trees-file-icon-color-graphql);
760
+ }
761
+
762
+ & [data-icon-token="html"] {
763
+ color: var(--trees-file-icon-color-html);
764
+ }
765
+
766
+ & [data-icon-token="image"] {
767
+ color: var(--trees-file-icon-color-image);
768
+ }
769
+
770
+ & [data-icon-token="javascript"] {
771
+ color: var(--trees-file-icon-color-javascript);
772
+ }
773
+
774
+ & [data-icon-token="json"] {
775
+ color: var(--trees-file-icon-color-json);
776
+ }
777
+
778
+ & [data-icon-token="markdown"] {
779
+ color: var(--trees-file-icon-color-markdown);
780
+ }
781
+
782
+ & [data-icon-token="mcp"] {
783
+ color: var(--trees-file-icon-color-mcp);
784
+ }
785
+
786
+ & [data-icon-token="npm"] {
787
+ color: var(--trees-file-icon-color-npm);
788
+ }
789
+
790
+ & [data-icon-token="oxc"] {
791
+ color: var(--trees-file-icon-color-oxc);
792
+ }
793
+
794
+ & [data-icon-token="postcss"] {
795
+ color: var(--trees-file-icon-color-postcss);
796
+ }
797
+
798
+ & [data-icon-token="prettier"] {
799
+ color: var(--trees-file-icon-color-prettier);
800
+ }
801
+
802
+ & [data-icon-token="python"] {
803
+ color: var(--trees-file-icon-color-python);
804
+ }
805
+
806
+ & [data-icon-token="react"] {
807
+ color: var(--trees-file-icon-color-react);
808
+ }
809
+
810
+ & [data-icon-token="ruby"] {
811
+ color: var(--trees-file-icon-color-ruby);
812
+ }
813
+
814
+ & [data-icon-token="rust"] {
815
+ color: var(--trees-file-icon-color-rust);
816
+ }
817
+
818
+ & [data-icon-token="sass"] {
819
+ color: var(--trees-file-icon-color-sass);
820
+ }
821
+
822
+ & [data-icon-token="svg"] {
823
+ color: var(--trees-file-icon-color-svg);
824
+ }
825
+
826
+ & [data-icon-token="svelte"] {
827
+ color: var(--trees-file-icon-color-svelte);
828
+ }
829
+
830
+ & [data-icon-token="svgo"] {
831
+ color: var(--trees-file-icon-color-svgo);
832
+ }
833
+
834
+ & [data-icon-token="swift"] {
835
+ color: var(--trees-file-icon-color-swift);
836
+ }
837
+
838
+ & [data-icon-token="table"] {
839
+ color: var(--trees-file-icon-color-table);
840
+ }
841
+
842
+ & [data-icon-token="text"] {
843
+ color: var(--trees-file-icon-color-text);
844
+ }
845
+
846
+ & [data-icon-token="tailwind"] {
847
+ color: var(--trees-file-icon-color-tailwind);
848
+ }
849
+
850
+ & [data-icon-token="terraform"] {
851
+ color: var(--trees-file-icon-color-terraform);
852
+ }
853
+
854
+ & [data-icon-token="typescript"] {
855
+ color: var(--trees-file-icon-color-typescript);
856
+ }
857
+
858
+ & [data-icon-token="vite"] {
859
+ color: var(--trees-file-icon-color-vite);
860
+ }
861
+
862
+ & [data-icon-token="vscode"] {
863
+ color: var(--trees-file-icon-color-vscode);
864
+ }
865
+
866
+ & [data-icon-token="vue"] {
867
+ color: var(--trees-file-icon-color-vue);
868
+ }
869
+
870
+ & [data-icon-token="wasm"] {
871
+ color: var(--trees-file-icon-color-wasm);
872
+ }
873
+
874
+ & [data-icon-token="webpack"] {
875
+ color: var(--trees-file-icon-color-webpack);
876
+ }
877
+
878
+ & [data-icon-token="yml"] {
879
+ color: var(--trees-file-icon-color-yml);
880
+ }
881
+
882
+ & [data-icon-token="zig"] {
883
+ color: var(--trees-file-icon-color-zig);
884
+ }
885
+
886
+ & [data-icon-token="zip"] {
887
+ color: var(--trees-file-icon-color-zip);
888
+ }
889
+ }
890
+
891
+ [data-icon-name="file-tree-icon-chevron"] {
892
+ &[data-align-capitals="false"] {
893
+ transform: translate(0, var(--trees-icon-nudge));
894
+ }
895
+
896
+ &[data-align-capitals="true"] {
897
+ transform: translate(0);
898
+ }
899
+ }
900
+
901
+ [data-item-section="content"] {
902
+ text-align: start;
903
+ text-overflow: ellipsis;
904
+ flex: 0 auto;
905
+ min-width: 0;
906
+ max-width: 100%;
907
+ overflow: hidden;
908
+ }
909
+
910
+ [data-item-section="decoration"] {
911
+ text-align: end;
912
+ min-width: 0;
913
+ color: var(--trees-fg-muted);
914
+ flex: 1 1 0;
915
+ justify-content: flex-end;
916
+ display: flex;
917
+ overflow: hidden;
918
+ }
919
+
920
+ [data-item-section="decoration"] > span {
921
+ text-overflow: ellipsis;
922
+ white-space: nowrap;
923
+ justify-content: flex-end;
924
+ align-items: center;
925
+ min-width: 0;
926
+ max-width: 100%;
927
+ display: inline-flex;
928
+ overflow: hidden;
929
+ }
930
+
931
+ [data-item-section="git"], [data-item-section="action"] {
932
+ flex: none;
933
+ justify-content: center;
934
+ align-items: center;
935
+ display: flex;
936
+ }
937
+
938
+ [data-item-section="git"] {
939
+ width: var(--trees-git-lane-width);
940
+ }
941
+
942
+ [data-item-section="action"] {
943
+ width: var(--trees-action-lane-width);
944
+ color: var(--trees-fg-muted);
945
+ fill: currentColor;
946
+ pointer-events: none;
947
+ }
948
+
949
+ [data-item-section="git"] > span, [data-item-section="action"] > span {
950
+ justify-content: center;
951
+ align-items: center;
952
+ width: 100%;
953
+ display: inline-flex;
954
+ }
955
+
956
+ [data-item-action-affordance="decorative"] {
957
+ opacity: .85;
958
+ }
959
+
960
+ [data-item-rename-input] {
961
+ appearance: none;
962
+ width: 100%;
963
+ min-width: 0;
964
+ height: calc(var(--trees-row-height) - 4px);
965
+ font-family: inherit;
966
+ font-size: inherit;
967
+ color: inherit;
968
+ box-sizing: border-box;
969
+ background-color: #0000;
970
+ border: 0;
971
+ outline: none;
972
+ padding-inline: 6px;
973
+ }
974
+
975
+ [data-item-section="content"]:has([data-item-rename-input]) ~ [data-item-section="action"], [data-item-section="content"]:has([data-item-rename-input]) ~ [data-item-section="decoration"] {
976
+ display: none;
977
+ }
978
+
979
+ [aria-expanded="false"][data-item-type="folder"] > [data-item-section="icon"] > [data-icon-name="file-tree-icon-chevron"] {
980
+ &[data-align-capitals="true"] {
981
+ transform: rotate(-90deg)
982
+ translate(calc(var(--trees-icon-nudge) / 2),
983
+ calc(var(--trees-icon-nudge) / 2));
984
+ }
985
+
986
+ &[data-align-capitals="false"] {
987
+ transform: rotate(-90deg)
988
+ translate(calc(var(--trees-icon-nudge) / 2 * -1),
989
+ calc(var(--trees-icon-nudge) / 2));
990
+ }
991
+ }
992
+
993
+ [data-item-section="spacing"] {
994
+ height: var(--trees-row-height);
995
+ padding-left: calc(calc(var(--trees-icon-width) / 2) - .5px);
996
+ flex-direction: row;
997
+ justify-content: center;
998
+ align-items: center;
999
+ display: flex;
1000
+
1001
+ &:empty {
1002
+ padding-left: 0;
1003
+ }
1004
+ }
1005
+
1006
+ [data-item-section="spacing-item"] {
1007
+ border-left: 1px solid var(--trees-indent-guide-bg);
1008
+ height: 100%;
1009
+ margin-right: calc(var(--trees-level-gap) - 1px);
1010
+ opacity: 0;
1011
+ transition: opacity .15s;
1012
+ display: inline-block;
1013
+ transform: translateX(-.25px);
1014
+
1015
+ & + & {
1016
+ margin-left: calc(var(--trees-item-row-gap) + calc(var(--trees-icon-width) / 2) - .5px);
1017
+ }
1018
+ }
1019
+
1020
+ :host(:hover) [data-item-section="spacing-item"] {
1021
+ opacity: .75;
1022
+ }
1023
+
1024
+ [data-item-contains-git-change="true"] > [data-item-section="git"] {
1025
+ color: var(--trees-git-modified-color);
1026
+ opacity: .5;
1027
+ fill: currentColor;
1028
+ }
1029
+
1030
+ [data-item-git-status] {
1031
+ & > :where([data-item-section="icon"]) > :where(:not([data-icon-name="file-tree-icon-chevron"])), & > [data-item-section="content"] {
1032
+ color: var(--trees-item-git-status-color);
1033
+ }
1034
+
1035
+ & > [data-item-section="git"] {
1036
+ color: var(--trees-item-git-status-color);
1037
+ font-weight: var(--trees-font-weight-semibold);
1038
+ }
1039
+ }
1040
+
1041
+ [data-item-git-status="added"] {
1042
+ --trees-item-git-status-color: var(--trees-git-added-color);
1043
+ }
1044
+
1045
+ [data-item-git-status="deleted"] {
1046
+ --trees-item-git-status-color: var(--trees-git-deleted-color);
1047
+ }
1048
+
1049
+ [data-item-git-status="ignored"] {
1050
+ --trees-item-git-status-color: var(--trees-git-ignored-color);
1051
+
1052
+ & > [data-item-section="icon"] {
1053
+ opacity: .5;
1054
+ }
1055
+ }
1056
+
1057
+ [data-item-section="git"] [data-icon-name="file-tree-icon-dot"] {
1058
+ transform: translateY(calc(.65ex - 50%));
1059
+ }
1060
+
1061
+ [data-item-git-status="modified"] {
1062
+ --trees-item-git-status-color: var(--trees-git-modified-color);
1063
+ }
1064
+
1065
+ [data-item-git-status="renamed"] {
1066
+ --trees-item-git-status-color: var(--trees-git-renamed-color);
1067
+ }
1068
+
1069
+ [data-item-git-status="untracked"] {
1070
+ --trees-item-git-status-color: var(--trees-git-untracked-color);
1071
+ }
1072
+
1073
+ [data-item-drag-target="true"] {
1074
+ background-color: var(--trees-selected-bg);
1075
+ }
1076
+
1077
+ [data-item-dragging="true"] {
1078
+ opacity: .5;
1079
+ }
1080
+
1081
+ [data-item-section="lock"] {
1082
+ color: var(--trees-fg-muted);
1083
+ flex: none;
1084
+ align-items: center;
1085
+ margin-left: auto;
1086
+ display: flex;
1087
+ }
1088
+
1089
+ [data-item-section="lock"] svg {
1090
+ display: block;
1091
+ }
1092
+
1093
+ [data-type="header-slot"] {
1094
+ flex: none;
1095
+ display: block;
1096
+ }
1097
+
1098
+ [data-type="context-menu-wash"] {
1099
+ z-index: 3;
1100
+ touch-action: none;
1101
+ background-color: #0000;
1102
+ position: absolute;
1103
+ inset: 0;
1104
+ }
1105
+
1106
+ [data-type="context-menu-anchor"] {
1107
+ top: 0;
1108
+ right: var(--trees-context-menu-trigger-inline-offset);
1109
+ z-index: 4;
1110
+ align-items: center;
1111
+ display: none;
1112
+ position: absolute;
1113
+
1114
+ &[data-visible="true"] {
1115
+ display: flex;
1116
+ }
1117
+ }
1118
+
1119
+ [data-file-tree-virtualized-root="true"][data-is-scrolling] [data-type="context-menu-anchor"] {
1120
+ display: none;
1121
+ }
1122
+
1123
+ [data-type="context-menu-anchor"] > slot[name="context-menu"] {
1124
+ flex: 0 0 0;
1125
+ width: 0;
1126
+ min-width: 0;
1127
+ display: block;
1128
+ overflow: visible;
1129
+ }
1130
+
1131
+ [data-type="context-menu-trigger"] {
1132
+ all: unset;
1133
+ width: var(--trees-action-lane-width);
1134
+ color: var(--trees-fg-muted);
1135
+ fill: currentColor;
1136
+ cursor: pointer;
1137
+ font-family: var(--trees-font-family);
1138
+ font-size: var(--trees-font-size);
1139
+ border-top-right-radius: var(--trees-border-radius);
1140
+ border-bottom-right-radius: var(--trees-border-radius);
1141
+ margin: var(--trees-focus-ring-width);
1142
+ height: calc(var(--trees-row-height) - var(--trees-focus-ring-width) * 2);
1143
+ border-width: 0;
1144
+ justify-content: center;
1145
+ align-items: center;
1146
+ transition: color .12s;
1147
+ display: flex;
1148
+ }
1149
+
1150
+ [data-type="context-menu-trigger"]:hover, [data-type="context-menu-trigger"][aria-expanded="true"] {
1151
+ color: var(--trees-fg);
1152
+ }
1153
+
1154
+ [data-truncate-container] {
1155
+ --truncate-internal-marker-fade-width: var(--truncate-marker-fade-width, 2px);
1156
+ --truncate-internal-marker-gap: var(--truncate-marker-gap, 0px);
1157
+ --truncate-internal-marker-opacity: var(--truncate-marker-opacity, 50%);
1158
+ --truncate-internal-middle-marker-opacity: var(--truncate-middle-marker-opacity, 80%);
1159
+ --truncate-internal-marker-background-color: var(--truncate-marker-background-color, light-dark(#fff, #000));
1160
+ --truncate-internal-marker-background-overlay-color: var(--truncate-marker-background-overlay-color, transparent);
1161
+ --truncate-internal-marker-block-inset: var(--truncate-marker-block-inset, 0px);
1162
+ --truncate-internal-marker-fade-out-duration: var(--truncate-marker-fade-out-duration, 0s);
1163
+ --truncate-internal-marker-fade-in-duration: var(--truncate-marker-fade-in-duration, .1s);
1164
+ --truncate-internal-fade-marker-color: var(--truncate-fade-marker-color, #000);
1165
+ --truncate-internal-fade-marker-width: var(--truncate-fade-marker-width, .2lh);
1166
+ --truncate-internal-single-line-height: 1lh;
1167
+ height: var(--truncate-internal-single-line-height);
1168
+ min-width: 0;
1169
+ margin-top: -1px;
1170
+ margin-bottom: -1px;
1171
+ overflow: hidden;
1172
+ }
1173
+
1174
+ [data-truncate-marker] {
1175
+ height: var(--truncate-internal-single-line-height);
1176
+ padding-block: var(--truncate-internal-marker-block-inset);
1177
+ box-sizing: border-box;
1178
+ z-index: 2;
1179
+ color: color-mix(in srgb,
1180
+ currentColor var(--truncate-internal-marker-opacity),
1181
+ transparent);
1182
+ opacity: 0;
1183
+ transition: opacity var(--truncate-internal-marker-fade-out-duration)
1184
+ ease-in-out;
1185
+ background-clip: content-box;
1186
+ align-items: center;
1187
+ display: flex;
1188
+ position: absolute;
1189
+ }
1190
+
1191
+ @container measure (height > 1lh) {
1192
+ [data-truncate-marker] {
1193
+ opacity: 1;
1194
+ transition: opacity var(--truncate-internal-marker-fade-in-duration)
1195
+ ease-in-out;
1196
+ }
1197
+ }
1198
+
1199
+ [data-truncate-grid] {
1200
+ display: grid;
1201
+ position: relative;
1202
+ }
1203
+
1204
+ [data-truncate-content="visible"] {
1205
+ white-space: nowrap;
1206
+ }
1207
+
1208
+ [data-truncate-content="overflow"] {
1209
+ opacity: 0;
1210
+ pointer-events: none;
1211
+ user-select: none;
1212
+ word-break: break-all;
1213
+ margin-top: calc(-1 * var(--truncate-internal-single-line-height));
1214
+ }
1215
+
1216
+ [data-truncate-marker-cell] {
1217
+ user-select: none;
1218
+ pointer-events: none;
1219
+ overflow: visible;
1220
+ container: measure / size;
1221
+ }
1222
+
1223
+ [data-truncate-container="truncate"] {
1224
+ & [data-truncate-grid] {
1225
+ grid-template-columns: minmax(0, max-content) 0;
1226
+ }
1227
+
1228
+ & [data-truncate-marker] {
1229
+ right: 0;
1230
+ }
1231
+
1232
+ & [data-truncate-fade] {
1233
+ margin-right: calc(-2 * var(--truncate-internal-fade-marker-width));
1234
+ }
1235
+ }
1236
+
1237
+ [data-truncate-container="fruncate"] {
1238
+ & [data-truncate-grid] {
1239
+ grid-template-columns: 0 minmax(0, max-content) auto;
1240
+ }
1241
+
1242
+ & [data-truncate-content] {
1243
+ direction: rtl;
1244
+ }
1245
+
1246
+ & [data-truncate-content] > span {
1247
+ unicode-bidi: plaintext;
1248
+ }
1249
+
1250
+ & [data-truncate-fade] {
1251
+ margin-left: calc(-2 * var(--truncate-internal-fade-marker-width));
1252
+ }
1253
+ }
1254
+
1255
+ [data-truncate-variant="default"] {
1256
+ & [data-truncate-marker] {
1257
+ background-color: var(--truncate-internal-marker-background-color);
1258
+ background-image: linear-gradient(var(--truncate-internal-marker-background-overlay-color),
1259
+ var(--truncate-internal-marker-background-overlay-color));
1260
+ }
1261
+
1262
+ & [data-truncate-marker]:after, & [data-truncate-marker]:before {
1263
+ content: "";
1264
+ width: calc(var(--truncate-internal-marker-fade-width) +
1265
+ var(--truncate-internal-marker-gap));
1266
+ height: max(0px,
1267
+ calc(var(--truncate-internal-single-line-height) -
1268
+ var(--truncate-internal-marker-block-inset) * 2));
1269
+ background-color: var(--truncate-internal-marker-background-color);
1270
+ background-image: linear-gradient(var(--truncate-internal-marker-background-overlay-color),
1271
+ var(--truncate-internal-marker-background-overlay-color));
1272
+ -webkit-mask-image: linear-gradient(var(--truncate-internal-fade-dir),
1273
+ #000 0%,
1274
+ #000 var(--truncate-internal-marker-gap),
1275
+ transparent 100%);
1276
+ mask-image: linear-gradient(var(--truncate-internal-fade-dir),
1277
+ #000 0%,
1278
+ #000 var(--truncate-internal-marker-gap),
1279
+ transparent 100%);
1280
+ position: absolute;
1281
+ inset-block-start: var(--truncate-internal-marker-block-inset);
1282
+ }
1283
+
1284
+ & [data-truncate-marker]:after {
1285
+ --truncate-internal-fade-dir: to right;
1286
+ right: calc(-1 *
1287
+ (
1288
+ var(--truncate-internal-marker-fade-width) +
1289
+ var(--truncate-internal-marker-gap)
1290
+ ));
1291
+ }
1292
+
1293
+ & [data-truncate-marker]:before {
1294
+ --truncate-internal-fade-dir: to left;
1295
+ left: calc(-1 *
1296
+ (
1297
+ var(--truncate-internal-marker-fade-width) +
1298
+ var(--truncate-internal-marker-gap)
1299
+ ));
1300
+ }
1301
+ }
1302
+
1303
+ [data-truncate-variant="fade"] {
1304
+ & [data-truncate-marker] {
1305
+ background: none;
1306
+ }
1307
+ }
1308
+
1309
+ [data-truncate-fade] {
1310
+ box-shadow: 0 0 calc(var(--truncate-internal-fade-marker-width) / 2)
1311
+ var(--truncate-internal-fade-marker-color),
1312
+ 0 0 var(--truncate-internal-fade-marker-width)
1313
+ var(--truncate-internal-fade-marker-color);
1314
+ width: calc(var(--truncate-internal-fade-marker-width) * 2);
1315
+ height: calc(var(--truncate-internal-single-line-height) -
1316
+ (var(--truncate-internal-fade-marker-width) * 2));
1317
+ margin: var(--truncate-internal-fade-marker-width) 0;
1318
+ }
1319
+
1320
+ [data-truncate-group-container="middle"] {
1321
+ & [data-truncate-container] {
1322
+ --truncate-marker-opacity: var(--truncate-internal-middle-marker-opacity);
1323
+ }
1324
+
1325
+ min-width: 0;
1326
+ display: flex;
1327
+
1328
+ & > div {
1329
+ min-width: 0;
1330
+ }
1331
+
1332
+ & > div[data-truncate-segment-priority="1"] {
1333
+ flex: 0 1 max-content;
1334
+ }
1335
+
1336
+ & > div[data-truncate-segment-priority="2"] {
1337
+ flex: 0 999999 max-content;
1338
+ }
1339
+ }
1340
+ }
1341
+
1342
+ @layer theme, unsafe;
1343
+ `;const Qh="@layer base, unsafe;";function Gu(t){return`${Qh}
1344
+ @layer base {
1345
+ ${t}
1346
+ }`}function Ty(t){return`${Qh}
1347
+ @layer unsafe {
1348
+ ${t}
1349
+ }`}const Ku=new WeakMap;function Ey(t){const e=Ku.get(t);if(e!=null)return e;const n=document.createElement("div");n.setAttribute(Dm,"true");const r=document.createElement("div");r.style.position="relative",r.style.height="200%",n.appendChild(r),t.appendChild(n);const i=Math.max(n.offsetWidth-n.clientWidth,0);return n.remove(),Ku.set(t,i),i}function Ay(t,e){if(!t.isConnected)return;const n=Ey(e);if(n==null)return;const r=e.querySelector(`style[${Iu}]`),i=r instanceof HTMLStyleElement?r:document.createElement("style");r instanceof HTMLStyleElement||(i.setAttribute(Iu,""),e.appendChild(i)),i.textContent=`:host { ${Lm}: ${n}px; }`}let Os;function Ry(t){var e;if(typeof CSSStyleSheet<"u"&&typeof CSSStyleSheet.prototype.replaceSync=="function"&&"adoptedStyleSheets"in t){Os==null&&(Os=new CSSStyleSheet,Os.replaceSync(Gu(Wu)));let n=!1;try{t.adoptedStyleSheets=[Os],n=!0}catch{}if(n){(e=t.querySelector(`style[${wu}]`))==null||e.remove();return}}if(t.querySelector("style[data-file-tree-style]")==null){const n=document.createElement("style");n.setAttribute(wu,""),n.textContent=Gu(Wu),t.prepend(n)}}function pa(t,e){Py(t,e),Ry(e),Ay(t,e)}function Py(t,e){const n=t.querySelector('template[shadowrootmode="open"], template[data-file-tree-shadowrootmode="open"]');n instanceof HTMLTemplateElement&&(e.childNodes.length>0||(e.appendChild(n.content.cloneNode(!0)),n.hasAttribute("shadowrootmode")&&n.remove()))}if(typeof HTMLElement<"u"&&customElements.get("file-tree-container")==null){class t extends HTMLElement{constructor(){super()}connectedCallback(){const n=this.shadowRoot??this.attachShadow({mode:"open"});pa(this,n)}}if(customElements.define(ia,t),typeof document<"u")for(const e of Array.from(document.querySelectorAll(ia)))e instanceof HTMLElement&&pa(e,e.shadowRoot??e.attachShadow({mode:"open"}))}const My=t=>t.startsWith("f::")?t.slice(3):t;function Dy(t){const e=t.lastIndexOf("/");return e<0?{parentPath:"",baseName:t}:{parentPath:t.slice(0,e),baseName:t.slice(e+1)}}function Ly(t,e){return t===""?e:`${t}/${e}`}function Ny({files:t,path:e,isFolder:n,nextBasename:r}){const i=My(e),o=r.trim();if(o.length===0)return{error:"Name cannot be empty."};if(o.includes("/"))return{error:'Name cannot include "/".'};const{parentPath:s,baseName:l}=Dy(i);if(o===l)return{nextFiles:t,sourcePath:i,destinationPath:i,isFolder:n};const a=Ly(s,o),d=new Array(t.length),u=new Set;if(!n){const m=`${a}/`;let y=!1;for(let v=0;v<t.length;v++){const C=t[v];if(C!==i&&C.startsWith(m))return{error:`"${a}" already exists.`};const I=C===i?a:C;if(u.has(I))return{error:`"${a}" already exists.`};u.add(I),d[v]=I,C===i&&(y=!0)}return y?{nextFiles:d,sourcePath:i,destinationPath:a,isFolder:n}:{error:"Could not find the selected file to rename."}}const h=`${i}/`,g=`${a}/`;let f=0;for(let m=0;m<t.length;m++){const y=t[m],v=y===i||y.startsWith(h);if(!v&&(y===a||y.startsWith(g)))return{error:`"${a}" already exists.`};const C=v?`${a}${y.slice(i.length)}`:y;if(u.has(C))return{error:`"${a}" already exists.`};u.add(C),d[m]=C,v&&f++}return f===0?{error:"Could not find the selected folder to rename."}:{nextFiles:d,sourcePath:i,destinationPath:a,isFolder:n}}function Fy(t){return t.endsWith("/")}function zy(t){const e=t.endsWith("/")?t.slice(0,-1):t,n=e.lastIndexOf("/"),r=n<0?e:e.slice(n+1);return t.endsWith("/")?`${r}/`:r}function Oy(t){const e=[],n=new Set;for(const i of t)n.has(i)||(n.add(i),e.push(i));const r=new Set;for(const i of e.toSorted((o,s)=>o.length!==s.length?o.length-s.length:o.localeCompare(s))){const o=(i.endsWith("/")?i.slice(0,-1):i).split("/");let s=!1;for(let l=0;l<o.length-1;l+=1){const a=`${o.slice(0,l+1).join("/")}/`;if(r.has(a)){s=!0;break}}s||r.add(i)}return e.filter(i=>r.has(i))}function Hy(t,e){return e.includes(t)?Oy(e):[t]}function Vy(t,e){return t===e?!0:t==null||e==null?!1:t.kind===e.kind&&t.directoryPath===e.directoryPath&&t.flattenedSegmentPath===e.flattenedSegmentPath&&t.hoveredPath===e.hoveredPath}function Yu(t,e){return{draggedPaths:t,target:e}}function Xu(t,e){if(e.kind!=="directory"||e.directoryPath==null)return!1;for(const n of t)if(Fy(n)&&(e.directoryPath===n||e.directoryPath.startsWith(n)))return!0;return!1}function By(t,e){return e.kind==="root"||e.directoryPath==null?zy(t):e.directoryPath}function $y(t,e){const n=t.map(r=>{const i=By(r,e);return i===r?null:{from:r,to:i,type:"move"}}).filter(r=>r!=null);return n.length===0?null:{operations:n,result:{draggedPaths:t,operation:n.length===1?"move":"batch",target:e}}}function jy(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let n=0;n<t.length;n+=1)if(t[n]!==e[n])return!1;return!0}function Zu(t,e,n){const{paths:r,preparedInput:i}=t;if(i==null){if(r==null)throw new Error("FileTree requires paths or preparedInput");return{paths:r,preparedInput:void 0}}const o=i.paths;if(r==null)return{paths:o,preparedInput:i};if(!jy(dc.preparePaths(r,n==null?{}:{sort:n}),o))throw new Error(`FileTree ${e} received paths and preparedInput for different path lists`);return{paths:o,preparedInput:i}}function Qu(t){return t.operation==="add"||t.operation==="remove"||t.operation==="move"||t.operation==="batch"}function qy(t,e,n){if(t===e)return n;const r=e.endsWith("/")?e:`${e}/`;return t.startsWith(r)?`${n.endsWith("/")?n:`${n}/`}${t.slice(r.length)}`:t}function Uy(t,e){if(t===e)return!0;const n=e.endsWith("/")?e:`${e}/`;return t.startsWith(n)}function Oi(t,e,n=!1){if(t==null)return null;switch(e.operation){case"add":case"expand":case"collapse":case"mark-directory-unloaded":case"begin-child-load":case"apply-child-patch":case"complete-child-load":case"fail-child-load":case"cleanup":return t;case"remove":return Uy(t,e.path)?n?t:null:t;case"move":return qy(t,e.from,e.to);case"batch":{let r=t;for(const i of e.events)if(r=Oi(r,i,n),r==null)return null;return r}}}function Gs(t){return{canonicalChanged:t.canonicalChanged,projectionChanged:t.projectionChanged,visibleCountDelta:t.visibleCountDelta}}function Jh(t){switch(t.operation){case"add":return{...Gs(t),operation:"add",path:t.path};case"remove":return{...Gs(t),operation:"remove",path:t.path,recursive:t.recursive};case"move":return{...Gs(t),from:t.from,operation:"move",to:t.to}}}function Wy(t){return{...Gs(t),events:t.events.filter(e=>e.operation==="add"||e.operation==="remove"||e.operation==="move").map(e=>Jh(e)),operation:"batch"}}function Gy(t){switch(t.operation){case"add":case"remove":case"move":return Jh(t);case"batch":return Wy(t);default:return null}}function Wl(t,e){if(t.size!==e.length)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function Jn(t){const e=t.endsWith("/")?t.slice(0,-1):t;if(e.length===0)return[];const n=e.split("/");return n.slice(0,-1).map((r,i)=>`${n.slice(0,i+1).join("/")}/`)}function Gl(t){return Jn(t).at(-1)??null}function Ju(t,e){return e==null?t:t.startsWith(e)?t.slice(e.length):t}function Hs(t){return t.endsWith("/")}const ed=t=>t.toLowerCase();function Ky(t){const e=t.endsWith("/")?t.slice(0,-1):t,n=e.lastIndexOf("/");return n<0?e:e.slice(n+1)}function td(t){return t.endsWith("/")?t.slice(0,-1):t}function nd(t,e){return e&&!t.endsWith("/")?`${t}/`:t}const Yy=t=>{const e=t.trim();return e.length===0?"":(e.includes("\\")?e.replaceAll("\\","/"):e).toLowerCase()},ef=Symbol("FILE_TREE_RENAME_VIEW"),Xy=512,Zy=512;function Qy(t){return t==="top"||t==="center"?t:"nearest"}function Jy(t,e,n){if(t===0)return-1;if(n!=null){const r=e(n);if(r!=null)return r;const i=Jn(n);for(let o=i.length-1;o>=0;o-=1){const s=i[o];if(s==null)continue;const l=e(s);if(l!=null)return l}}return 0}function ev(t,e,n){if(t.paths.length===0)return{focusedIndex:-1,getParentIndex:t.getParentIndex,paths:t.paths,posInSetByIndex:t.posInSetByIndex,setSizeByIndex:t.setSizeByIndex};if(e==null)return{focusedIndex:0,getParentIndex:t.getParentIndex,paths:t.paths,posInSetByIndex:t.posInSetByIndex,setSizeByIndex:t.setSizeByIndex};const r=n??(i=>t.visibleIndexByPath.get(i)??null);return{focusedIndex:Jy(t.paths.length,r,e),getParentIndex:t.getParentIndex,paths:t.paths,posInSetByIndex:t.posInSetByIndex,setSizeByIndex:t.setSizeByIndex}}var Ki,ai,Nn,ln,yt,Yi,Xi,Xt,Ie,er,Jo,Er,Ar,Rr,Pr,Mr,Dr,es,ts,Zi,Zt,ns,rs,is,os,pt,zt,Fn,Pt,Lr,tr,ci,ui,Ze,Nr,Fr,an,zr,di,vl,Mt,Ne,Or,ie,Qi,Ji,gt,Hr,S,tf,nf,rf,of,Cr,ga,Ks,ma,ba,ya,va,Sa,Yt,sf,lf,af,Ys,Xs,cf,uf,jo,df,Zs,hf,xa,wa,ff,Sn,pf,Ca,qo,Ia,Hi,ka,ft,_a,Ta,Ea,Ir,Qs,Qn,Vi,xn,Ln,gf,mf,bf,Aa,Ra,eo,tv=(eo=class{constructor(e){H(this,S);H(this,Ki);H(this,ai,new Set);H(this,Nn,new Map);H(this,ln,null);H(this,yt,null);H(this,Yi,new Map);H(this,Xi,new Map);H(this,Xt,-1);H(this,Ie,null);H(this,er,!1);H(this,Jo,e=>-1);H(this,Er,new Map);H(this,Ar,null);H(this,Rr,null);H(this,Pr,null);H(this,Mr,null);H(this,Dr,null);H(this,es);H(this,ts);H(this,Zi);H(this,Zt,[]);H(this,ns,new Int32Array(0));H(this,rs,new Int32Array(0));H(this,is);H(this,os,!1);H(this,pt,null);H(this,zt,"");H(this,Fn,!1);H(this,Pt,new Set);H(this,Lr,new Set);H(this,tr,[]);H(this,ci);H(this,ui,null);H(this,Ze,null);H(this,Nr,null);H(this,Fr,null);H(this,an,null);H(this,zr,null);H(this,di,null);H(this,vl,0);H(this,Mt,null);H(this,Ne,new Set);H(this,Or,0);H(this,ie);H(this,Qi,0);H(this,Ji,!1);H(this,gt,0);H(this,Hr);const{dragAndDrop:n,fileTreeSearchMode:r,initialSearchQuery:i,initialSelectedPaths:o,renaming:s,onSearchChange:l,paths:a,preparedInput:d,...u}=e,h=Zu({paths:a,preparedInput:d},"constructor",u.sort);E(this,Ki,u),n!=null&&n!==!1&&E(this,ln,n===!0?{}:n),E(this,os,s!=null&&s!==!1),s!=null&&s!==!1&&s!==!0&&(E(this,is,s.canRename),E(this,ts,s.onError),E(this,es,s.onRename)),E(this,Zi,l),E(this,ci,r??"hide-non-matches"),E(this,ie,x(this,S,Ys).call(this,h.paths,h.preparedInput));const g=(o==null?void 0:o.map(m=>x(this,S,Qn).call(this,m)).filter(m=>m!=null))??[],f=g.at(-1)??null;g.length>0&&(E(this,Ne,new Set(g)),E(this,Mt,f),E(this,Or,1)),x(this,S,Ir).call(this,f,!1),i!=null&&x(this,S,Hi).call(this,i,!1),E(this,Hr,x(this,S,Aa).call(this))}destroy(){var e;(e=c(this,Hr))==null||e.call(this),E(this,Hr,null),c(this,Nn).clear(),c(this,ai).clear(),c(this,Er).clear(),E(this,yt,null),x(this,S,Zs).call(this)}focusFirstItem(){x(this,S,Sn).call(this).length>0&&x(this,S,xn).call(this,0)}focusLastItem(){c(this,gt)<=0||(x(this,S,Ln).call(this),x(this,S,xn).call(this,c(this,gt)-1))}focusNextItem(){x(this,S,Ea).call(this,1)}focusParentItem(){if(c(this,Ie)==null)return;const e=Gl(c(this,Ie));if(e==null)return;const n=x(this,S,Cr).call(this,e);n>=0&&x(this,S,xn).call(this,n)}focusPath(e){var i;const n=((i=c(this,ie).getPathInfo(e))==null?void 0:i.path)??null;if(n==null)return;x(this,S,Ln).call(this);const r=x(this,S,Cr).call(this,n);r>=0&&x(this,S,xn).call(this,r)}scrollToPath(e,n){var o;const r=((o=c(this,ie).getPathInfo(e))==null?void 0:o.path)??null;if(r==null)return;x(this,S,Ln).call(this);const i=x(this,S,pf).call(this,r);i<0||x(this,S,Qs).call(this,i)!=null&&((n==null?void 0:n.focus)!==!1&&x(this,S,xn).call(this,i,!1),E(this,di,{id:E(this,vl,c(this,vl)+1),offset:Qy(n==null?void 0:n.offset),visibleIndex:i}),x(this,S,ft).call(this))}focusMountedPathFromInput(e){var i;const n=((i=c(this,ie).getPathInfo(e))==null?void 0:i.path)??null;if(n==null)return;const r=x(this,S,Cr).call(this,n);r>=0&&x(this,S,xn).call(this,r)}focusNearestPath(e){const n=this.resolveNearestVisiblePath(e);if(n==null)return null;const r=x(this,S,Cr).call(this,n);return r>=0?(x(this,S,xn).call(this,r),x(this,S,Sn).call(this)[r]??n):null}focusPreviousItem(){x(this,S,Ea).call(this,-1)}getFocusedIndex(){return c(this,Xt)}getFocusedItem(){return c(this,Ie)==null?null:x(this,S,ga).call(this,c(this,Ie))}getFocusedPath(){return c(this,Ie)}getScrollRequest(){return c(this,di)}clearScrollRequest(e){var n;((n=c(this,di))==null?void 0:n.id)===e&&E(this,di,null)}resolveNearestVisiblePath(e){var s;const n=x(this,S,Sn).call(this);if(c(this,gt)===0)return null;if(e==null)return c(this,Ie)??n[0]??null;const r=((s=c(this,ie).getPathInfo(e))==null?void 0:s.path)??e,i=x(this,S,Cr).call(this,r);if(i>=0)return n[i]??r;const o=x(this,S,of).call(this,r);return o??c(this,Ie)??n[0]??null}getSelectedPaths(){return[...c(this,Ne)]}getSelectionVersion(){return c(this,Or)}getVisibleCount(){return c(this,gt)}getVisibleRows(e,n){if(n<e||c(this,gt)===0)return[];const r=Math.max(0,e),i=Math.min(c(this,gt)-1,n);if(i<r)return[];const o=i-r+1;if(c(this,an)==null&&!c(this,er)&&i>=c(this,Zt).length&&o<=Zy){const s=[];for(let l=r;l<=i;l+=1){const a=c(this,ie).getVisibleRowContext(l);if(a==null)break;s.push(x(this,S,ma).call(this,a))}return s}if(!c(this,er)&&i>=c(this,Zt).length&&x(this,S,Ln).call(this),c(this,an)!=null){const s=Array.from({length:i-r+1},(u,h)=>x(this,S,Ca).call(this,r+h)),l=new Map;let a=s[0]??-1,d=a;for(let u=1;u<=s.length;u+=1){const h=s[u];if(h!=null&&h===d+1){d=h;continue}if(a>=0&&c(this,ie).getVisibleSlice(a,d).forEach((g,f)=>{l.set(a+f,g)}),h==null){a=-1,d=-1;continue}a=h,d=h}return Array.from({length:i-r+1},(u,h)=>{const g=r+h,f=x(this,S,Ca).call(this,g),m=l.get(f),y=c(this,Zt)[f];if(m==null||y==null)throw new Error(`Missing projection row for filtered visible index ${String(g)}`);return x(this,S,Ks).call(this,m,g,f,{ancestorPaths:x(this,S,va).call(this,f),path:y})})}return c(this,ie).getVisibleSlice(r,i).map((s,l)=>{const a=r+l,d=c(this,Zt)[a];if(d==null)throw new Error(`Missing projection path for visible index ${String(a)}`);return x(this,S,Ks).call(this,s,a,a,{ancestorPaths:x(this,S,va).call(this,a),path:d})})}getStickyRowCandidates(e,n){if(c(this,an)!=null)return null;if(c(this,gt)===0||e<=0||n<=0)return[];const r=[];for(let i=0;i<c(this,gt);i+=1){const o=e+i*n,s=Math.min(c(this,gt)-1,Math.floor(o/n)),l=x(this,S,ba).call(this,s,i)??(s>0?x(this,S,ba).call(this,s-1,i):void 0);if(l==null)break;r.push({row:x(this,S,ma).call(this,l),subtreeEndIndex:l.subtreeEndIndex})}return r}getItem(e){const n=c(this,ie).getPathInfo(e);return n==null?null:x(this,S,ga).call(this,n.path,n)}resolveMountedDirectoryPathFromInput(e){const n=c(this,ie).getPathInfo(e);return(n==null?void 0:n.kind)==="directory"?n.path:null}toggleMountedDirectoryFromInput(e){const n=this.resolveMountedDirectoryPathFromInput(e);n!=null&&(c(this,Ze)!=null&&c(this,Ze).length>0&&(c(this,Pt).has(n)?c(this,Pt).delete(n):c(this,ie).isExpanded(n)&&c(this,Pt).add(n)),x(this,S,Ra).call(this,n))}selectAllVisiblePaths(){x(this,S,Ln).call(this);const e=[...x(this,S,Sn).call(this)];x(this,S,Yt).call(this,e,c(this,Ie)??c(this,Mt))}selectOnlyPath(e){const n=x(this,S,Qn).call(this,e);n!=null&&x(this,S,Yt).call(this,[n],n)}selectOnlyMountedPathFromInput(e){x(this,S,Yt).call(this,[e],e)}selectPath(e){const n=x(this,S,Qn).call(this,e);n==null||c(this,Ne).has(n)||x(this,S,Yt).call(this,[...c(this,Ne),n])}deselectPath(e){const n=x(this,S,Qn).call(this,e);n==null||!c(this,Ne).has(n)||x(this,S,Yt).call(this,[...c(this,Ne)].filter(r=>r!==n))}toggleFocusedSelection(){c(this,Ie)!=null&&this.togglePathSelectionFromInput(c(this,Ie))}togglePathSelection(e){const n=x(this,S,Qn).call(this,e);if(n!=null){if(c(this,Ne).has(n)){this.deselectPath(n);return}this.selectPath(n)}}togglePathSelectionFromInput(e){const n=x(this,S,Qn).call(this,e);if(n!=null){if(c(this,Ne).has(n)){x(this,S,Yt).call(this,[...c(this,Ne)].filter(r=>r!==n),n);return}x(this,S,Yt).call(this,[...c(this,Ne),n],n)}}selectPathRange(e,n){const r=x(this,S,Qn).call(this,e);if(r==null)return;x(this,S,Ln).call(this);const i=c(this,Mt),o=i==null?-1:x(this,S,qo).call(this,i),s=x(this,S,qo).call(this,r);if(o===-1||s===-1){const h=n?[...c(this,Ne),r]:[r];x(this,S,Yt).call(this,h,r);return}const[l,a]=o<=s?[o,s]:[s,o],d=x(this,S,Sn).call(this).slice(l,a+1),u=n?[...c(this,Ne),...d]:d;x(this,S,Yt).call(this,u,i)}extendSelectionFromFocused(e){if(c(this,Ie)==null)return;const n=c(this,Xt);if(n===-1)return;const r=Math.min(c(this,gt)-1,Math.max(0,n+e));if(r===n)return;!c(this,er)&&r>=c(this,Zt).length&&x(this,S,Ln).call(this);const i=x(this,S,Sn).call(this),o=i[n]??null,s=i[r]??null;if(o==null||s==null)return;const l=new Set(c(this,Ne));l.has(o)&&l.has(s)?l.delete(o):l.add(s),x(this,S,Yt).call(this,[...l],c(this,Mt)??o,!1),x(this,S,xn).call(this,r)}getDragAndDropConfig(){return c(this,ln)}isDragAndDropEnabled(){return c(this,ln)!=null}getDragSession(){return c(this,yt)==null?null:{draggedPaths:[...c(this,yt).draggedPaths],primaryPath:c(this,yt).primaryPath,target:c(this,yt).target==null?null:{...c(this,yt).target}}}startDrag(e){var o,s;if(c(this,ln)==null)return!1;const n=x(this,S,Qn).call(this,e);if(n==null||c(this,Ze)!=null&&c(this,Ze).length>0)return!1;const r=this.getSelectedPaths(),i=Hy(n,r);return((s=(o=c(this,ln)).canDrag)==null?void 0:s.call(o,i))===!1?!1:(r.includes(n)||x(this,S,Yt).call(this,[n],n,!1),x(this,S,Vi).call(this,n),E(this,yt,{draggedPaths:i,primaryPath:n,target:null}),x(this,S,ft).call(this),!0)}setDragTarget(e){var i,o;const n=c(this,yt);if(n==null)return;let r=e;if(r!=null){const s=Yu(n.draggedPaths,r);(Xu(n.draggedPaths,r)||((o=(i=c(this,ln))==null?void 0:i.canDrop)==null?void 0:o.call(i,s))===!1)&&(r=null)}Vy(n.target,r)||(E(this,yt,{...n,target:r}),x(this,S,ft).call(this))}cancelDrag(){c(this,yt)!=null&&(E(this,yt,null),x(this,S,ft).call(this))}completeDrag(){var o,s,l,a,d,u;const e=c(this,yt);if(e==null)return!1;E(this,yt,null);const n=e.target==null?null:{...e.target};if(n==null)return x(this,S,ft).call(this),!1;const r=Yu(e.draggedPaths,n);if(Xu(e.draggedPaths,n)||((s=(o=c(this,ln))==null?void 0:o.canDrop)==null?void 0:s.call(o,r))===!1)return x(this,S,ft).call(this),!1;const i=$y(e.draggedPaths,n);if(i==null)return x(this,S,ft).call(this),!1;try{if(i.operations.length===1){const h=i.operations[0];if(h==null||h.type!=="move")throw new Error("Expected a single move operation for one-item drops");c(this,ie).move(h.from,h.to,{collision:h.collision})}else x(this,S,af).call(this,i.operations),c(this,ie).batch(i.operations)}catch(h){return x(this,S,ft).call(this),(a=(l=c(this,ln))==null?void 0:l.onDropError)==null||a.call(l,h instanceof Error?h.message:String(h),r),!1}return(u=(d=c(this,ln))==null?void 0:d.onDropComplete)==null||u.call(d,i.result),!0}subscribe(e){return c(this,ai).add(e),e(),()=>{c(this,ai).delete(e)}}add(e){c(this,ie).add(e)}remove(e,n={}){c(this,ie).remove(e,n)}move(e,n,r={}){c(this,ie).move(e,n,r)}batch(e){c(this,ie).batch(e)}onMutation(e,n){const r=e,i=n;let o=c(this,Nn).get(r);return o==null&&(o=new Set,c(this,Nn).set(r,o)),o.add(i),()=>{const s=c(this,Nn).get(r);s==null||s.delete(i),(s==null?void 0:s.size)===0&&c(this,Nn).delete(r)}}setSearch(e){x(this,S,Hi).call(this,e,!0)}openSearch(e=""){x(this,S,Hi).call(this,e,!0)}closeSearch(){x(this,S,Hi).call(this,null,!0)}isSearchOpen(){return c(this,Ze)!==null}getSearchValue(){return c(this,Ze)??""}getSearchMatchingPaths(){return c(this,tr)}focusNextSearchMatch(){x(this,S,Ia).call(this,1)}focusPreviousSearchMatch(){x(this,S,Ia).call(this,-1)}startRenaming(e=c(this,Ie)??"",n={}){var l,a;if(!c(this,os))return!1;const r=c(this,ie).getPathInfo(e);if(r==null)return!1;const i=r.path,o=Hs(i),s=td(i);if(((l=c(this,is))==null?void 0:l.call(this,{isFolder:o,path:s}))===!1)return!1;for(const d of Jn(i))c(this,ie).isExpanded(d)||c(this,ie).expand(d);return x(this,S,Yt).call(this,[i],i,!1),c(this,Ze)!=null&&(x(this,S,Hi).call(this,null,!1),(a=c(this,Zi))==null||a.call(this,c(this,Ze))),x(this,S,Vi).call(this,i),E(this,pt,i),E(this,zt,Ky(i)),E(this,Fn,n.removeIfCanceled??!1),x(this,S,ft).call(this),!0}resetPaths(e,n={}){var v,C,I;const r=!Array.isArray(e),i=r?void 0:e,o=r?e:n,s=c(this,ie).list().length,l=c(this,gt),a=Zu({paths:i,preparedInput:o.preparedInput},"resetPaths",c(this,Ki).sort),d=x(this,S,Ys).call(this,a.paths,a.preparedInput,o.initialExpandedPaths),u=c(this,Ie),h=c(this,pt),g=this.getSelectedPaths(),f=c(this,Mt);(v=c(this,Hr))==null||v.call(this),E(this,ie,d),c(this,Er).clear(),x(this,S,Zs).call(this);const m=g.map(k=>{var _;return((_=d.getPathInfo(k))==null?void 0:_.path)??null}).filter(k=>k!=null),y=!Wl(c(this,Ne),m);E(this,Ne,new Set(m)),y&&E(this,Or,c(this,Or)+1),E(this,Mt,f==null?null:((C=d.getPathInfo(f))==null?void 0:C.path)??null),E(this,pt,h==null?null:((I=d.getPathInfo(h))==null?void 0:I.path)??null),c(this,pt)==null&&(E(this,zt,""),E(this,Fn,!1)),x(this,S,Ir).call(this,u,u!=null||m.length>0||c(this,Mt)!=null),E(this,Hr,x(this,S,Aa).call(this)),x(this,S,ft).call(this),x(this,S,_a).call(this,{canonicalChanged:!0,operation:"reset",pathCountAfter:a.paths.length,pathCountBefore:s,projectionChanged:!0,usedPreparedInput:o.preparedInput!=null,visibleCountDelta:c(this,gt)-l})}},Ki=new WeakMap,ai=new WeakMap,Nn=new WeakMap,ln=new WeakMap,yt=new WeakMap,Yi=new WeakMap,Xi=new WeakMap,Xt=new WeakMap,Ie=new WeakMap,er=new WeakMap,Jo=new WeakMap,Er=new WeakMap,Ar=new WeakMap,Rr=new WeakMap,Pr=new WeakMap,Mr=new WeakMap,Dr=new WeakMap,es=new WeakMap,ts=new WeakMap,Zi=new WeakMap,Zt=new WeakMap,ns=new WeakMap,rs=new WeakMap,is=new WeakMap,os=new WeakMap,pt=new WeakMap,zt=new WeakMap,Fn=new WeakMap,Pt=new WeakMap,Lr=new WeakMap,tr=new WeakMap,ci=new WeakMap,ui=new WeakMap,Ze=new WeakMap,Nr=new WeakMap,Fr=new WeakMap,an=new WeakMap,zr=new WeakMap,di=new WeakMap,vl=new WeakMap,Mt=new WeakMap,Ne=new WeakMap,Or=new WeakMap,ie=new WeakMap,Qi=new WeakMap,Ji=new WeakMap,gt=new WeakMap,Hr=new WeakMap,S=new WeakSet,tf=function(){if(c(this,pt)==null)return;const e=c(this,pt),n=c(this,Fn);if(E(this,pt,null),E(this,zt,""),E(this,Fn,!1),n){this.remove(e,Hs(e)?{recursive:!0}:void 0);return}x(this,S,Vi).call(this,e),x(this,S,ft).call(this)},nf=function(){var i,o;const e=c(this,pt);if(e==null)return;if(c(this,Fn)&&c(this,zt).trim().length===0){E(this,pt,null),E(this,zt,""),E(this,Fn,!1),this.remove(e,Hs(e)?{recursive:!0}:void 0);return}const n=Hs(e),r=Ny({files:c(this,ie).list(),isFolder:n,nextBasename:c(this,zt),path:td(e)});if(E(this,pt,null),E(this,zt,""),E(this,Fn,!1),"error"in r){x(this,S,Vi).call(this,e),(i=c(this,ts))==null||i.call(this,r.error),x(this,S,ft).call(this);return}if(r.sourcePath===r.destinationPath){x(this,S,Vi).call(this,e),x(this,S,ft).call(this);return}(o=c(this,es))==null||o.call(this,{destinationPath:r.destinationPath,isFolder:r.isFolder,sourcePath:r.sourcePath}),this.move(nd(r.sourcePath,n),nd(r.destinationPath,n))},rf=function(e){c(this,pt)==null||c(this,zt)===e||(E(this,zt,e),x(this,S,ft).call(this))},of=function(e){x(this,S,Ln).call(this);const n=Gl(e),r=Ju(e,n);let i=null,o=null;for(const s of x(this,S,Sn).call(this)){if(Gl(s)!==n)continue;const l=Ju(s,n);if(l<r){i=s;continue}if(l>r){o=s;break}}return i??o},Cr=function(e){const n=x(this,S,qo).call(this,e);if(n!==-1)return n;const r=Jn(e);for(let i=r.length-1;i>=0;i-=1){const o=r[i];if(o==null)continue;const s=x(this,S,qo).call(this,o);if(s!==-1)return s}return x(this,S,Sn).call(this).length>0?0:-1},ga=function(e,n){const r=c(this,Er).get(e);if(r!=null)return r;const i=n??c(this,ie).getPathInfo(e);if(i==null)return null;const o=i.kind==="directory"?x(this,S,sf).call(this,i.path):x(this,S,lf).call(this,i.path);return c(this,Er).set(i.path,o),o},Ks=function(e,n,r,i){var o;return{ancestorPaths:i.ancestorPaths,depth:e.depth,flattenedSegments:(o=e.flattenedSegments)==null?void 0:o.map(s=>({isTerminal:s.isTerminal,name:s.name,path:s.path})),hasChildren:e.hasChildren,index:n,isExpanded:e.isExpanded,isFlattened:e.isFlattened,isFocused:i.path===c(this,Ie),isSelected:c(this,Ne).has(i.path),kind:e.kind,level:e.depth,name:e.name,path:i.path,posInSet:i.posInSet??c(this,ns)[r]??0,setSize:i.setSize??c(this,rs)[r]??0}},ma=function(e){return x(this,S,Ks).call(this,e.row,e.index,e.index,{ancestorPaths:e.ancestorPaths,path:e.row.path,posInSet:e.posInSet,setSize:e.setSize})},ba=function(e,n){const r=c(this,ie).getVisibleRowContext(e);if(r==null)return;const i=r.ancestorRows[n];return i??(n===r.ancestorRows.length&&r.row.kind==="directory"&&r.row.isExpanded?r:void 0)},ya=function(e){const n=c(this,Yi).get(e);if(n!=null)return n;const r=c(this,Jo).call(this,e),i=r<0?[]:[...x(this,S,ya).call(this,r),r];return c(this,Yi).set(e,i),i},va=function(e){const n=c(this,Xi).get(e);if(n!=null)return n;const r=x(this,S,ya).call(this,e).map(i=>c(this,Zt)[i]??"").filter(i=>i!=="");return c(this,Xi).set(e,r),r},Sa=function(e){c(this,ie).collapse(e)},Yt=function(e,n=c(this,Mt),r=!0){const i=[...new Set(e)],o=!Wl(c(this,Ne),i),s=c(this,Mt)!==n;!o&&!s||(E(this,Ne,new Set(i)),E(this,Mt,n),o&&E(this,Or,c(this,Or)+1),r&&x(this,S,ft).call(this))},sf=function(e){return{collapse:()=>{x(this,S,Sa).call(this,e)},deselect:()=>{this.deselectPath(e)},expand:()=>{x(this,S,Ta).call(this,e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!0,isExpanded:()=>c(this,ie).isExpanded(e),isFocused:()=>c(this,Ie)===e,isSelected:()=>c(this,Ne).has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)},toggle:()=>{x(this,S,Ra).call(this,e)}}},lf=function(e){return{deselect:()=>{this.deselectPath(e)},focus:()=>{this.focusPath(e)},getPath:()=>e,isDirectory:()=>!1,isFocused:()=>c(this,Ie)===e,isSelected:()=>c(this,Ne).has(e),select:()=>{this.selectPath(e)},toggleSelect:()=>{this.togglePathSelection(e)}}},af=function(e){const n=c(this,ie).list();x(this,S,Ys).call(this,n).batch(e)},Ys=function(e,n,r){return new dc({...c(this,Ki),paths:e,preparedInput:n,...r!==void 0?{initialExpandedPaths:r}:{}})},Xs=function(){return c(this,Mr)!=null?c(this,Mr):(E(this,Mr,c(this,ie).list()),c(this,Mr))},cf=function(){if(c(this,Pr)!=null)return c(this,Pr);const e=new Set;for(const n of x(this,S,Xs).call(this)){e.add(n);for(const r of Jn(n))e.add(r)}return E(this,Pr,[...e].sort()),c(this,Pr)},uf=function(){return c(this,Dr)!=null?c(this,Dr):(E(this,Dr,x(this,S,Xs).call(this).map(ed)),c(this,Dr))},jo=function(){return c(this,Ar)!=null?c(this,Ar):(E(this,Ar,x(this,S,cf).call(this).filter(e=>e.endsWith("/"))),c(this,Ar))},df=function(){return c(this,Rr)!=null?c(this,Rr):(E(this,Rr,x(this,S,jo).call(this).map(ed)),c(this,Rr))},Zs=function(){E(this,Ar,null),E(this,Rr,null),E(this,Pr,null),E(this,Mr,null),E(this,Dr,null)},hf=function(){return x(this,S,jo).call(this).filter(e=>c(this,ie).isExpanded(e))},xa=function(e){const n=new Set(c(this,ui)??[]);if(e)for(const r of c(this,Ne))for(const i of Jn(r))n.add(i);x(this,S,wa).call(this,n)},wa=function(e){E(this,Ji,!0);try{for(const n of x(this,S,jo).call(this)){const r=e.has(n),i=c(this,ie).isExpanded(n);r&&!i?c(this,ie).expand(n):!r&&i&&c(this,ie).collapse(n)}}finally{E(this,Ji,!1)}},ff=function(){if(c(this,Ze)==null||c(this,Ze).length===0){E(this,an,null),E(this,zr,null),E(this,Fr,null),E(this,gt,c(this,Qi));return}const e=c(this,Zt);if(c(this,ci)!=="hide-non-matches"||c(this,Lr).size===0){E(this,an,null),E(this,zr,null),E(this,Fr,null),E(this,gt,c(this,Qi));return}const n=[],r=[],i=new Map,o=c(this,Nr);for(const[s,l]of e.entries())(o==null?void 0:o.has(l))===!0&&(i.set(l,r.length),n.push(s),r.push(l));E(this,an,n),E(this,zr,r),E(this,Fr,i),E(this,gt,r.length)},Sn=function(){return c(this,zr)??c(this,Zt)},pf=function(e){var n;return c(this,zr)!=null?((n=c(this,Fr))==null?void 0:n.get(e))??-1:c(this,ie).getVisibleIndex(e)??-1},Ca=function(e){var n;return((n=c(this,an))==null?void 0:n[e])??e},qo=function(e){var r;const n=(r=c(this,Fr))==null?void 0:r.get(e);return n??c(this,ie).getVisibleIndex(e)??-1},Ia=function(e){const n=c(this,tr);if(n.length===0)return;const r=c(this,Ie),i=r==null?-1:n.indexOf(r),o=n[i<0?e>0?0:n.length-1:Math.min(n.length-1,Math.max(0,i+e))];o!=null&&this.focusPath(o)},Hi=function(e,n){var o;const r=e==null?null:Yy(e),i=c(this,Ze);if(i!==r){if(i==null&&r!=null&&E(this,ui,x(this,S,hf).call(this)),E(this,Ze,r),r==null)c(this,Pt).clear(),x(this,S,xa).call(this,!0),E(this,ui,null),c(this,Lr).clear(),E(this,tr,[]),E(this,Nr,null),x(this,S,Ir).call(this,c(this,Ie),!0);else if(r.length===0)c(this,Pt).clear(),x(this,S,xa).call(this,!1),c(this,Lr).clear(),E(this,tr,[]),E(this,Nr,null),x(this,S,Ir).call(this,c(this,Ie),!0);else{const s=x(this,S,ka).call(this);x(this,S,Ir).call(this,s,!0)}n&&((o=c(this,Zi))==null||o.call(this,c(this,Ze)),x(this,S,ft).call(this))}},ka=function(){if(c(this,Ze)==null||c(this,Ze).length===0)return c(this,Lr).clear(),E(this,tr,[]),c(this,Ie);x(this,S,gf).call(this);const e=c(this,Ze),n=x(this,S,Xs).call(this),r=x(this,S,uf).call(this),i=[],o=new Set;let s=null;for(let h=0;h<n.length;h+=1){if(!r[h].includes(e))continue;const g=n[h];i.push(g),o.add(g),s??(s=g)}const l=x(this,S,jo).call(this),a=x(this,S,df).call(this);for(let h=0;h<l.length;h+=1){if(!a[h].includes(e))continue;const g=l[h];o.has(g)||(i.push(g),o.add(g),s??(s=g))}E(this,Lr,o),E(this,tr,i);const d=c(this,ci)==="hide-non-matches"&&i.length>0?new Set:null;E(this,Nr,d);const u=c(this,ci)==="expand-matches"?new Set(c(this,ui)??[]):new Set;for(const h of i){d!=null&&d.add(h),h.endsWith("/")&&u.add(h);for(const g of Jn(h))u.add(g),d!=null&&d.add(g)}for(const h of c(this,Pt))if(u.delete(h),d!=null){d.add(h);for(const g of Jn(h))d.add(g)}return x(this,S,wa).call(this,u),s??c(this,Ie)},ft=function(){for(const e of c(this,ai))e()},_a=function(e){var n,r;(n=c(this,Nn).get(e.operation))==null||n.forEach(i=>{i(e)}),(r=c(this,Nn).get("*"))==null||r.forEach(i=>{i(e)})},Ta=function(e){for(const n of Jn(e))c(this,ie).isExpanded(n)||c(this,ie).expand(n);c(this,ie).isExpanded(e)||c(this,ie).expand(e)},Ea=function(e){const n=c(this,gt);if(n===0)return;const r=c(this,Xt)===-1?0:c(this,Xt),i=Math.min(n-1,Math.max(0,r+e));(i!==r||c(this,Xt)===-1)&&(!c(this,er)&&c(this,an)==null&&i>=c(this,Zt).length&&x(this,S,Ln).call(this),x(this,S,xn).call(this,i))},Ir=function(e,n=!0){const r=c(this,ie).getVisibleCount();E(this,Qi,r);const i=ev(c(this,ie).getVisibleTreeProjectionData(n?void 0:Math.min(r,Xy)),e,n?o=>c(this,ie).getVisibleIndex(o):void 0);c(this,Yi).clear(),c(this,Xi).clear(),E(this,er,i.paths.length>=r),E(this,Jo,i.getParentIndex),E(this,Zt,i.paths),E(this,ns,i.posInSetByIndex),E(this,rs,i.setSizeByIndex),x(this,S,ff).call(this),E(this,Xt,e==null?x(this,S,Sn).call(this).length>0?0:-1:x(this,S,Cr).call(this,e)),E(this,Ie,c(this,Xt)<0?null:x(this,S,Qs).call(this,c(this,Xt)))},Qs=function(e){var r;const n=x(this,S,Sn).call(this)[e];return n??(c(this,an)!=null?null:((r=c(this,ie).getVisibleRowContext(e))==null?void 0:r.row.path)??null)},Qn=function(e){var n;return((n=c(this,ie).getPathInfo(e))==null?void 0:n.path)??null},Vi=function(e){if(e==null)return;const n=x(this,S,Cr).call(this,e);n>=0&&x(this,S,xn).call(this,n,!1)},xn=function(e,n=!0){const r=x(this,S,Qs).call(this,e);r!=null&&(c(this,Xt)===e&&c(this,Ie)===r||(E(this,Xt,e),E(this,Ie,r),n&&x(this,S,ft).call(this)))},Ln=function(){c(this,er)||x(this,S,Ir).call(this,c(this,Ie),!0)},gf=function(){if(c(this,Pt).size!==0)for(const e of[...c(this,Pt)])this.resolveMountedDirectoryPathFromInput(e)!==e&&c(this,Pt).delete(e)},mf=function(e){var r;if(c(this,Pt).size===0)return;const n=new Set;for(const i of c(this,Pt)){const o=Oi(i,e);if(o==null)continue;const s=((r=c(this,ie).getPathInfo(o))==null?void 0:r.path)??null;s==null||!s.endsWith("/")||n.add(s)}E(this,Pt,n)},bf=function(e){var a;x(this,S,mf).call(this,e);const n=Oi(c(this,pt),e);n==null&&c(this,pt)!=null&&E(this,zt,""),E(this,pt,n);const r=Oi(c(this,Ie),e,!0),i=[...c(this,Ne)].map(d=>Oi(d,e)).filter(d=>d!=null).map(d=>{var u;return((u=c(this,ie).getPathInfo(d))==null?void 0:u.path)??null}).filter(d=>d!=null),o=Oi(c(this,Mt),e),s=o==null?null:((a=c(this,ie).getPathInfo(o))==null?void 0:a.path)??null,l=[...new Set(i)];return Wl(c(this,Ne),l)||(E(this,Ne,new Set(l)),E(this,Or,c(this,Or)+1)),E(this,Mt,s),r},Aa=function(){return c(this,ie).on("*",e=>{var s;if(c(this,Ji))return;e.canonicalChanged&&(c(this,Er).clear(),x(this,S,Zs).call(this)),c(this,yt)!=null&&Qu(e)&&E(this,yt,null);const n=Qu(e)?x(this,S,bf).call(this,e):c(this,Ie);let r;if(c(this,Ze)!=null&&c(this,Ze).length>0){const l=x(this,S,ka).call(this);r=c(this,Ie)!=null&&((s=c(this,Nr))==null?void 0:s.has(c(this,Ie)))===!0?c(this,Ie):l}else c(this,Ze)===""?r=c(this,Ie):r=n;const i=c(this,Ze)!=null||e.operation!=="expand"&&e.operation!=="collapse";x(this,S,Ir).call(this,r,i),x(this,S,ft).call(this);const o=Gy(e);o!=null&&x(this,S,_a).call(this,o)})},Ra=function(e){if(c(this,ie).isExpanded(e)){x(this,S,Sa).call(this,e);return}x(this,S,Ta).call(this,e)},Object.defineProperty(eo.prototype,ef,{configurable:!0,value(){return{cancel:()=>{x(this,S,tf).call(this)},commit:()=>{x(this,S,nf).call(this)},getPath:()=>c(this,pt),getValue:()=>c(this,zt),isActive:()=>c(this,pt)!=null,setValue:e=>{x(this,S,rf).call(this,e)}}},writable:!0}),eo);const nv=t=>{if(t==null||t.length===0)return"0";let e=`${t.length}`;for(const n of t)e+=`\0${n.path}\0${n.status}`;return e};function rv(t){const e=t.endsWith("/");let n="",r=-1;for(let i=0;i<=t.length;i+=1){if(!(t[i]==="/"||i===t.length)){r===-1&&(r=i);continue}r!==-1&&(n!==""&&(n+="/"),n+=t.slice(r,i),r=-1)}return n===""?null:{isDirectory:e,path:n}}function yf(t){const e=t.endsWith("/")?t.slice(0,-1):t;if(e.length===0)return[];const n=[];let r=0;for(;;){const i=e.indexOf("/",r);if(i===-1)break;n.push(e.slice(0,i+1)),r=i+1}return n}function iv(t,e){return e?`${t}/`:t}function rd(t,e=null){const n=nv(t==null?void 0:[...t]);if(n==="0")return null;if((e==null?void 0:e.signature)===n)return e;const r=new Map,i=new Set,o=new Set,s=new Map;for(const l of t??[]){const a=vf(l);a!=null&&xf({canonicalPath:a.canonicalPath,changeCountByDirectoryPath:s,directoriesWithChanges:i,ignoredDirectoryPaths:o,isDirectory:a.isDirectory,status:l.status,statusByPath:r})}return r.size===0?null:{changeCountByDirectoryPath:s,directoriesWithChanges:i,ignoredDirectoryPaths:o,signature:n,statusByPath:r}}function ov(t,e){const n=(e==null?void 0:e.remove)??[],r=(e==null?void 0:e.set)??[];if(n.length===0&&r.length===0)return t;const i=new Map(t==null?void 0:t.statusByPath),o=new Set(t==null?void 0:t.directoriesWithChanges),s=new Set(t==null?void 0:t.ignoredDirectoryPaths),l=new Map(t==null?void 0:t.changeCountByDirectoryPath);let a=!1;for(const d of n){const u=Sf(d);u!=null&&(a=sv({canonicalPath:u.canonicalPath,changeCountByDirectoryPath:l,directoriesWithChanges:o,ignoredDirectoryPaths:s,statusByPath:i})||a)}for(const d of r){const u=vf(d);u!=null&&(a=xf({canonicalPath:u.canonicalPath,changeCountByDirectoryPath:l,directoriesWithChanges:o,ignoredDirectoryPaths:s,isDirectory:u.isDirectory,status:d.status,statusByPath:i})||a)}return a?i.size===0?null:{changeCountByDirectoryPath:l,directoriesWithChanges:o,ignoredDirectoryPaths:s,signature:cv(i),statusByPath:i}:t}function vf(t){return Sf(t.path)}function Sf(t){const e=rv(t);if(e!=null)return{canonicalPath:iv(e.path,e.isDirectory),isDirectory:e.isDirectory}}function sv({canonicalPath:t,changeCountByDirectoryPath:e,directoriesWithChanges:n,ignoredDirectoryPaths:r,statusByPath:i}){const o=i.get(t);return o==null?!1:(i.delete(t),o==="ignored"&&t.endsWith("/")&&r.delete(t),av(e,n,t),!0)}function xf({canonicalPath:t,changeCountByDirectoryPath:e,directoriesWithChanges:n,ignoredDirectoryPaths:r,isDirectory:i,status:o,statusByPath:s}){const l=s.get(t);return l===o?!1:(l==null&&lv(e,n,t),s.set(t,o),o==="ignored"&&i?r.add(t):i&&r.delete(t),!0)}function lv(t,e,n){for(const r of yf(n))t.set(r,(t.get(r)??0)+1),e.add(r)}function av(t,e,n){for(const r of yf(n)){const i=(t.get(r)??0)-1;i>0?t.set(r,i):(t.delete(r),e.delete(r))}}function cv(t){let e=`${t.size}`;for(const[n,r]of t)e+=`\0${n}\0${r}`;return e}var Fe,wf,oi,id,yl,Cf,If,hc,Pa,Ma,Zo={},kf=[],Cl=Array.isArray,fc=kf.slice,jr=Object.assign;function pc(t){t&&t.parentNode&&t.remove()}function Da(t,e,n){var r,i,o,s={};for(o in e)o=="key"?r=e[o]:o=="ref"&&typeof t!="function"?i=e[o]:s[o]=e[o];return arguments.length>2&&(s.children=arguments.length>3?fc.call(arguments,2):n),Js(t,s,r,i,null)}function Js(t,e,n,r,i){var o={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++wf,__i:-1,__u:0};return i==null&&Fe.vnode!=null&&Fe.vnode(o),o}function mo(t){return t.children}function el(t,e){this.props=t,this.context=e,this.__g=0}function ho(t,e){if(e==null)return t.__?ho(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null)return n.__e;return typeof t.type=="function"?ho(t):null}function _f(t){var e,n;if((t=t.__)!=null&&t.__c!=null){for(t.__e=null,e=0;e<t.__k.length;e++)if((n=t.__k[e])!=null&&n.__e!=null){t.__e=n.__e;break}return _f(t)}}function od(t){(8&t.__g||!(t.__g|=8)||!oi.push(t)||yl++)&&id==Fe.debounceRendering||((id=Fe.debounceRendering)||queueMicrotask)(uv)}function uv(){for(var t,e,n,r,i,o,s,l,a=1;oi.length;)oi.length>a&&oi.sort(Cf),t=oi.shift(),a=oi.length,8&t.__g&&(n=void 0,i=(r=(e=t).__v).__e,o=[],s=[],(l=e.__P)&&((n=jr({},r)).__v=r.__v+1,Fe.vnode&&Fe.vnode(n),gc(l,n,r,e.__n,l.namespaceURI,32&r.__u?[i]:null,o,i??ho(r),!!(32&r.__u),s,l.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,Af(o,n,s),n.__e!=i&&_f(n)));yl=0}function Tf(t,e,n,r,i,o,s,l,a,d,u,h){var g,f,m,y,v,C,I,k=r&&r.__k||kf,_=e.length;for(a=dv(n,e,k,a,_),g=0;g<_;g++)(m=n.__k[g])!=null&&(f=m.__i==-1?Zo:k[m.__i]||Zo,m.__i=g,C=gc(t,m,f,i,o,s,l,a,d,u,h),y=m.__e,m.ref&&f.ref!=m.ref&&(f.ref&&mc(f.ref,null,m),u.push(m.ref,m.__c||y,m)),v==null&&y!=null&&(v=y),(I=!!(4&m.__u))||f.__k===m.__k?a=Ef(m,a,t,I):typeof m.type=="function"&&C!==void 0?a=C:y&&(a=y.nextSibling),m.__u&=-7);return n.__e=v,a}function dv(t,e,n,r,i){var o,s,l,a,d,u=n.length,h=u,g=0;for(t.__k=new Array(i),o=0;o<i;o++)(s=e[o])!=null&&typeof s!="boolean"&&typeof s!="function"?(a=o+g,(s=t.__k[o]=typeof s=="string"||typeof s=="number"||typeof s=="bigint"||s.constructor==String?Js(null,s,null,null,null):Cl(s)?Js(mo,{children:s},null,null,null):s.constructor==null&&s.__b>0?Js(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=t,s.__b=t.__b+1,l=null,(d=s.__i=hv(s,n,a,h))!=-1&&(h--,(l=n[d])&&(l.__u|=2)),l==null||l.__v==null?(d==-1&&(i>u?g--:i<u&&g++),typeof s.type!="function"&&(s.__u|=4)):d!=a&&(d==a-1?g--:d==a+1?g++:(d>a?g--:g++,s.__u|=4))):t.__k[o]=null;if(h)for(o=0;o<u;o++)(l=n[o])!=null&&(2&l.__u)==0&&(l.__e==r&&(r=ho(l)),Pf(l,l));return r}function Ef(t,e,n,r){var i,o;if(typeof t.type=="function"){for(i=t.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=t,e=Ef(i[o],e,n,r));return e}t.__e!=e&&(r&&(e&&t.type&&!e.parentNode&&(e=ho(t)),n.insertBefore(t.__e,e||null)),e=t.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType==8);return e}function hv(t,e,n,r){var i,o,s,l=t.key,a=t.type,d=e[n],u=d!=null&&(2&d.__u)==0;if(d===null&&t.key==null||u&&l==d.key&&a==d.type)return n;if(r>(u?1:0)){for(i=n-1,o=n+1;i>=0||o<e.length;)if((d=e[s=i>=0?i--:o++])!=null&&(2&d.__u)==0&&l==d.key&&a==d.type)return s}return-1}function sd(t,e,n){e[0]=="-"?t.setProperty(e,n??""):t[e]=n??""}function Vs(t,e,n,r,i){var o;e:if(e=="style")if(typeof n=="string")t.style.cssText=n;else{if(typeof r=="string"&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||sd(t.style,e,"");if(n)for(e in n)r&&n[e]==r[e]||sd(t.style,e,n[e])}else if(e[0]=="o"&&e[1]=="n")o=e!=(e=e.replace(If,"$1")),(e=e.slice(2))[0].toLowerCase()!=e[0]&&(e=e.toLowerCase()),t.__l||(t.__l={}),t.__l[e+o]=n,n?r?n.l=r.l:(n.l=hc,t.addEventListener(e,o?Ma:Pa,o)):t.removeEventListener(e,o?Ma:Pa,o);else{if(i=="http://www.w3.org/2000/svg")e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!="width"&&e!="height"&&e!="href"&&e!="list"&&e!="form"&&e!="tabIndex"&&e!="download"&&e!="rowSpan"&&e!="colSpan"&&e!="role"&&e!="popover"&&e in t)try{t[e]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&e[4]!="-"?t.removeAttribute(e):t.setAttribute(e,e=="popover"&&n==1?"":n))}}function ld(t){return function(e){if(this.__l){var n=this.__l[e.type+t];if(e.u==null)e.u=hc++;else if(e.u<n.l)return;return n(Fe.event?Fe.event(e):e)}}}function gc(t,e,n,r,i,o,s,l,a,d,u){var h,g,f,m,y,v,C,I,k,_,P,L,z,V,J,be,se,le,oe,Se,Ce,K=e.type;if(e.constructor!=null)return null;128&n.__u&&(a=!!(32&n.__u),n.__c.__z&&(l=e.__e=n.__e=(o=n.__c.__z)[0],n.__c.__z=null)),(h=Fe.__b)&&h(e);e:if(typeof K=="function")try{if(I=e.props,k="prototype"in K&&K.prototype.render,_=(h=K.contextType)&&r[h.__c],P=h?_?_.props.value:h.__:r,n.__c?2&(g=e.__c=n.__c).__g&&(g.__g|=1,C=!0):(k?e.__c=g=new K(I,P):(e.__c=g=new el(I,P),g.constructor=K,g.render=pv),_&&_.sub(g),g.props=I,g.state||(g.state={}),g.context=P,g.__n=r,f=!0,g.__g|=8,g.__h=[],g._sb=[]),k&&g.__s==null&&(g.__s=g.state),k&&K.getDerivedStateFromProps!=null&&(g.__s==g.state&&(g.__s=jr({},g.__s)),jr(g.__s,K.getDerivedStateFromProps(I,g.__s))),m=g.props,y=g.state,g.__v=e,f)k&&K.getDerivedStateFromProps==null&&g.componentWillMount!=null&&g.componentWillMount(),k&&g.componentDidMount!=null&&g.__h.push(g.componentDidMount);else{if(k&&K.getDerivedStateFromProps==null&&I!==m&&g.componentWillReceiveProps!=null&&g.componentWillReceiveProps(I,P),!(4&g.__g)&&g.shouldComponentUpdate!=null&&g.shouldComponentUpdate(I,g.__s,P)===!1||e.__v==n.__v){for(e.__v!=n.__v&&(g.props=I,g.state=g.__s,g.__g&=-9),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(ue){ue&&(ue.__=e)}),L=0;L<g._sb.length;L++)g.__h.push(g._sb[L]);g._sb=[],g.__h.length&&s.push(g);break e}g.componentWillUpdate!=null&&g.componentWillUpdate(I,g.__s,P),k&&g.componentDidUpdate!=null&&g.__h.push(function(){g.componentDidUpdate(m,y,v)})}if(g.context=P,g.props=I,g.__P=t,g.__g&=-5,z=Fe.__r,V=0,k){for(g.state=g.__s,g.__g&=-9,z&&z(e),h=g.render(g.props,g.state,g.context),J=0;J<g._sb.length;J++)g.__h.push(g._sb[J]);g._sb=[]}else do g.__g&=-9,z&&z(e),h=g.render(g.props,g.state,g.context),g.state=g.__s;while(8&g.__g&&++V<25);g.state=g.__s,g.getChildContext!=null&&(r=jr({},r,g.getChildContext())),k&&!f&&g.getSnapshotBeforeUpdate!=null&&(v=g.getSnapshotBeforeUpdate(m,y)),be=h,h!=null&&h.type===mo&&h.key==null&&(be=Rf(h.props.children)),l=Tf(t,Cl(be)?be:[be],e,n,r,i,o,s,l,a,d,u),e.__u&=-161,g.__h.length&&s.push(g),C&&(g.__g&=-4)}catch(ue){if(e.__v=null,a||o!=null)if(ue.then){for(se=0,le=!1,e.__u|=a?160:128,e.__c.__z=[],oe=0;oe<o.length;oe++)(Se=o[oe])==null||le||(Se.nodeType==8&&Se.data=="$s"?(se>0&&e.__c.__z.push(Se),se++,o[oe]=null):Se.nodeType==8&&Se.data=="/$s"?(--se>0&&e.__c.__z.push(Se),le=se===0,l=o[oe],o[oe]=null):se>0&&(e.__c.__z.push(Se),o[oe]=null));if(!le){for(;l&&l.nodeType==8&&l.nextSibling;)l=l.nextSibling;o[o.indexOf(l)]=null,e.__c.__z=[l]}e.__e=l}else{for(Ce=o.length;Ce--;)pc(o[Ce]);La(e)}else e.__e=n.__e,e.__k=n.__k,ue.then||La(e);Fe.__e(ue,e,n)}else l=e.__e=fv(n.__e,e,n,r,i,o,s,a,d,u);return(h=Fe.diffed)&&h(e),128&e.__u?void 0:l}function La(t){t&&t.__c&&(t.__c.__g|=4),t&&t.__k&&t.__k.forEach(La)}function Af(t,e,n){for(var r=0;r<n.length;r++)mc(n[r],n[++r],n[++r]);Fe.__c&&Fe.__c(e,t),t.some(function(i){try{t=i.__h,i.__h=[],t.some(function(o){o.call(i)})}catch(o){Fe.__e(o,i.__v)}})}function Rf(t){return typeof t!="object"||t==null||t.__b&&t.__b>0?t:Cl(t)?t.map(Rf):jr({},t)}function fv(t,e,n,r,i,o,s,l,a,d){var u,h,g,f,m,y,v,C,I=n.props,k=e.props,_=e.type;if(_=="svg"?i="http://www.w3.org/2000/svg":_=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((m=o[u])&&"setAttribute"in m==!!_&&(_?m.localName==_:m.nodeType==3)){t=m,o[u]=null;break}}if(t==null){if(_==null)return d.createTextNode(k);t=d.createElementNS(i,_,k.is&&k),l&&(Fe.__m&&Fe.__m(e,o),l=!1),o=null}if(_==null)I===k||l&&t.data==k||(t.data=k);else{if(o=o&&fc.call(t.childNodes),I=n.props||Zo,!l&&o!=null)for(I={},u=0;u<t.attributes.length;u++)I[(m=t.attributes[u]).name]=m.value;for(u in I)if(m=I[u],u!="children"){if(u=="dangerouslySetInnerHTML")g=m;else if(!(u in k)){if(u=="value"&&"defaultValue"in k||u=="checked"&&"defaultChecked"in k)continue;Vs(t,u,null,m,i)}}for(u in C=1&n.__u,k)m=k[u],u=="children"?f=m:u=="dangerouslySetInnerHTML"?h=m:u=="value"?y=m:u=="checked"?v=m:l&&typeof m!="function"||I[u]===m&&!C||Vs(t,u,m,I[u],i);if(h)l||g&&(h.__html==g.__html||h.__html==t.innerHTML)||(t.innerHTML=h.__html),e.__k=[];else if(g&&(t.innerHTML=""),Tf(_=="template"?t.content:t,Cl(f)?f:[f],e,n,r,_=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&ho(n,0),l,a,d),o!=null)for(u=o.length;u--;)pc(o[u]);l||(u="value",_=="progress"&&y==null?t.removeAttribute("value"):y==null||y===t[u]&&(_!=="progress"||y)||Vs(t,u,y,I[u],i),u="checked",v!=null&&v!=t[u]&&Vs(t,u,v,I[u],i))}return t}function mc(t,e,n){try{if(typeof t=="function"){var r=typeof t.__u=="function";r&&t.__u(),r&&e==null||(t.__u=t(e))}else t.current=e}catch(i){Fe.__e(i,n)}}function Pf(t,e,n){var r,i;if(Fe.unmount&&Fe.unmount(t),(r=t.ref)&&(r.current&&r.current!=t.__e||mc(r,null,e)),(r=t.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){Fe.__e(o,e)}r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&Pf(r[i],e,n||typeof t.type!="function");n||pc(t.__e),t.__e&&t.__e.__l&&(t.__e.__l=null),t.__e=t.__c=t.__=null}function pv(t,e,n){return this.constructor(t,n)}function Na(t,e){var n,r,i,o;e==document&&(e=document.documentElement),Fe.__&&Fe.__(t,e),r=(n=!!(t&&32&t.__u))?null:e.__k,t=e.__k=Da(mo,null,[t]),i=[],o=[],gc(e,t,r||Zo,Zo,e.namespaceURI,r?null:e.firstChild?fc.call(e.childNodes):null,i,r?r.__e:e.firstChild,n,o,e.ownerDocument),Af(i,t,o)}function gv(t,e){t.__u|=32,Na(t,e)}Fe={__e:function(t,e,n,r){for(var i,o,s;e=e.__;)if((i=e.__c)&&!(1&i.__g)){i.__g|=4;try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(t)),s=8&i.__g),i.componentDidCatch!=null&&(i.componentDidCatch(t,r||{}),s=8&i.__g),s)return void(i.__g|=2)}catch(l){t=l}}throw yl=0,t}},wf=0,el.prototype.setState=function(t,e){var n;n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=jr({},this.state),typeof t=="function"&&(t=t(jr({},n),this.props)),t&&jr(n,t),t!=null&&this.__v&&(e&&this._sb.push(e),od(this))},el.prototype.forceUpdate=function(t){this.__v&&(this.__g|=4,t&&this.__h.push(t),od(this))},el.prototype.render=mo,oi=[],yl=0,Cf=function(t,e){return t.__v.__b-e.__v.__b},If=/(PointerCapture)$|Capture$/i,hc=0,Pa=ld(!1),Ma=ld(!0);var mv=0;function U(t,e,n,r,i,o){e||(e={});var s,l,a=e;if("ref"in a&&typeof t!="function")for(l in a={},e)l=="ref"?s=e[l]:a[l]=e[l];var d={type:t,props:a,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--mv,__i:-1,__u:0,__source:i,__self:o};return Fe.vnode&&Fe.vnode(d),d}const bv=16,yv=16,vv={};function Go({name:t,remappedFrom:e,token:n,width:r,height:i,viewBox:o,label:s,alignCapitals:l=!1}){"use no memo";const a=`#${t.replace(/^#/,"")}`,{width:d,height:u,viewBox:h}=vv[t]??{width:bv,height:yv},g=r??d,f=i??u,m=o??h??`0 0 ${d} ${u}`;return U("svg",{"data-icon-name":e??t,"data-icon-token":n,"data-align-capitals":l,...s!=null?{"aria-label":s,role:"img"}:{"aria-hidden":!0},viewBox:m,width:g,height:f,children:U("use",{href:a})})}const ad=t=>t!==void 0&&/\s/.test(t),Sv=(t,e)=>{const n=r=>ad(t[r-1])||ad(t[r]);if(!n(e))return e;for(let r=1;r<t.length;r++){const i=e-r;if(i>0&&!n(i))return i;const o=e+r;if(o<t.length&&!n(o))return o}return e},Mf=t=>Sv(t,Math.ceil(t.length/2)),cd=t=>{if(t.length<2)return[t,""];const e=Mf(t);return[t.slice(0,e),t.slice(e)]},xv=t=>{if(t.length<4)return[t,""];const e=t.lastIndexOf(".")+1,n=t.length-e>10,r=e>=1&&!n?e:Mf(t);return[t.slice(0,r),t.slice(r)]},wv=t=>{if(t.length<4)return[t,""];const e=t.lastIndexOf("/")+1,n=t.length-e>25,r=e>=1&&!n?e:Math.ceil(t.length/2);return[t.slice(0,r),t.slice(r)]},Cv=(t,{splitIndex:e}={})=>{if(typeof e!="number"){const n=Math.ceil(t.length/2);return[t.slice(0,n),t.slice(n)]}return[t.slice(0,e),t.slice(e)]},Iv=(t,{splitOffset:e}={})=>{if(typeof e!="number"||e<=0||e>=t.length){const r=Math.ceil(t.length/2);return[t.slice(0,r),t.slice(r)]}const n=t.length-e;return[t.slice(0,n),t.slice(n)]},kv=(t,{splitOffset:e}={})=>{if(typeof e!="number"||e<=0||e>=t.length){const r=Math.ceil(t.length/2);return[t.slice(0,r),t.slice(r)]}const n=e;return[t.slice(0,n),t.slice(n)]};function _v({children:t,marker:e,variant:n="default"}){"use no memo";return U("div",{"aria-hidden":!0,"data-truncate-marker-cell":!0,children:U("div",{"data-truncate-marker":!0,children:typeof e=="function"?e({children:t}):n==="fade"?U("span",{"data-truncate-fade":!0}):e})})}function Tv(t){"use no memo";const{mode:e,children:n}=t;return U("div",{children:[U("div",{"data-truncate-content":"visible",children:e==="fruncate"?U("span",{children:n}):n}),U("div",{"data-truncate-content":"overflow","aria-hidden":!0,children:e==="fruncate"?U("span",{children:n}):n})]})}function Df({children:t,mode:e="truncate",marker:n="…",variant:r="default",...i}){"use no memo";const o=U(Tv,{mode:e,children:t},"content"),s=U(_v,{marker:n,mode:e,variant:r},"marker");return U("div",{"data-truncate-container":e,"data-truncate-variant":r,...i,children:U("div",{"data-truncate-grid":!0,children:e==="truncate"?[o,s]:[s,o,U("div",{"data-truncate-fill":!0},"fill")]})})}function tl({children:t,...e}){"use no memo";return U(Df,{mode:"truncate",...e,children:t})}function Kl({children:t,...e}){"use no memo";return U(Df,{mode:"fruncate",...e,children:t})}function Ev({children:t,contents:e,priority:n="end",split:r="center",minimumLength:i=12,className:o,style:s,...l}){"use no memo";let a=null,d=null;if(Array.isArray(e)){if(e.length!==2)return console.error("MiddleTruncate: contents must be an array of two items"),null;a=U(tl,{...l,children:e[0]}),d=U(Kl,{...l,children:e[1]})}else{if(typeof t!="string")return console.error("MiddleTruncate: children must be a string"),null;if(t.length===0)return U("div",{className:o,style:s});if(t.length<i)return n==="end"?U(Kl,{...l,className:o,style:s,children:t}):U(tl,{...l,className:o,style:s,children:t});let u=null,h=null,g=null;if(typeof r=="string")r==="center"?u=cd:r==="extension"?u=xv:r==="leaf-path"&&(u=wv);else if(typeof r=="number")u=Cv,h=r;else if(Array.isArray(r)){const[_,P]=r;g=P,_==="last"?u=Iv:_==="first"&&(u=kv)}else typeof r=="function"&&(u=r);u??(u=cd);const[f,m]=u(t,{priority:n,variant:l.variant,splitIndex:typeof h=="number"?h:void 0,splitOffset:typeof g=="number"?g:void 0}),y=f.length>=m.length,v=n==="equal"&&!y,C=n==="equal"&&y,I={},k={};v&&(I.marker=""),C&&(k.marker=""),a=U(tl,{...l,...I,children:f}),d=U(Kl,{...l,...k,children:m})}return U("div",{"data-truncate-group-container":"middle",className:o,style:s,children:[U("div",{"data-truncate-segment-priority":n==="start"||n==="equal"?"1":"2",children:a}),U("div",{"data-truncate-segment-priority":n==="end"||n==="equal"?"1":"2",children:d})]})}const Fa={endIndex:-1,startIndex:-1};function Av(t,e,n){return Math.min(Math.max(t,e),n)}function ud(t,e){return t<0||e<t?Fa:{endIndex:e,startIndex:t}}function za(t){return t.startIndex<0||t.endIndex<t.startIndex}function Rv(t,e){return za(t)?0:(t.endIndex-t.startIndex+1)*e}function dd(t,e,n){if(e<=0)return-1;const r=e*n;return t<=0?0:t>=r?e:Math.floor(t/n)}function Pv(t,e,n){return e<=0||t<=0?-1:t>=e*n?e-1:Math.ceil(t/n)-1}function Mv(t){const e=new Map;return t.forEach((n,r)=>{if(n.kind!=="directory"||!n.isExpanded)return;const i=n.ancestorPaths.length,o=e.get(i);if(o==null){e.set(i,[r]);return}o.push(r)}),e}function Dv(t,e){let n=0,r=t.length-1,i=-1;for(;n<=r;){const o=Math.floor((n+r)/2),s=t[o];if(s==null)break;if(s<=e){i=o,n=o+1;continue}r=o-1}return i}function Lv(t){const e=new Map,n=[];for(let i=0;i<t.length;i+=1){const o=t[i];if(o==null)continue;const s=o.kind==="directory"&&o.isExpanded?[...o.ancestorPaths,o.path]:o.ancestorPaths;let l=0;for(;l<n.length&&l<s.length&&n[l]===s[l];)l+=1;for(let a=n.length-1;a>=l;a-=1){const d=n[a];d!=null&&e.set(d,i-1)}n.length=l;for(let a=l;a<s.length;a+=1){const d=s[a];d!=null&&n.push(d)}}const r=t.length-1;for(const i of n)e.set(i,r);return e}function Lf(t,e,n){var s;if(t.length===0||e<=0)return[];const r=Lv(t),i=Mv(t),o=[];for(let l=0;l<t.length;l+=1){const a=i.get(l);if(a==null||a.length===0)break;const d=e+l*n;let u=Dv(a,Math.min(t.length-1,Math.floor(d/n))),h=null;for(;u>=0;){const g=a[u],f=g==null?null:t[g]??null;if(f!=null&&(l===0||f.ancestorPaths[l-1]===((s=o[l-1])==null?void 0:s.path))){h=f;break}u-=1}if(h==null)break;o.push(h)}return o.map((l,a)=>{const d=a*n,u=(r.get(l.path)??t.length-1)+1;if(u>=t.length)return{row:l,top:d};const h=u*n-e;return{row:l,top:Math.min(d,h-n)}}).filter(l=>l.top+n>0)}function Nv(t,e){const n=e.totalRowCount??t.length,r=n*e.itemHeight,i=Math.max(0,e.viewportHeight),o=Math.max(0,Math.floor(e.overscan)),s=Math.max(0,r-i),l=Av(e.scrollTop,0,s),a=e.stickyRows??Lf(t,l,e.itemHeight),d=a.reduce((L,z)=>Math.max(L,z.top+e.itemHeight),0),u=Math.min(r,l+d),h=Math.max(0,i-d),g=Math.max(0,r-u),f=dd(l,n,e.itemHeight),m=dd(u,n,e.itemHeight),y=d<=0||f<0||f>=n?-1:f,v=y===-1?-1:Math.min(n-1,m-1),C=y===-1||v<y?0:v-y+1,I=h<=0||m>=n?Fa:ud(m,Pv(u+h,n,e.itemHeight)),k=v+1,_=za(I)?Fa:ud(Math.max(k,I.startIndex-o),Math.min(n-1,I.endIndex+o)),P=Rv(_,e.itemHeight);return{occlusion:{firstOccludedIndex:y,lastOccludedIndex:v,occludedCount:C},physical:{itemHeight:e.itemHeight,maxScrollTop:s,overscan:o,scrollTop:l,totalHeight:r,totalRowCount:n,viewportHeight:i},projected:{contentHeight:g,paneHeight:h,paneTop:u},sticky:{height:d,rows:a},visible:I,window:{endIndex:_.endIndex,height:P,offsetTop:za(_)?0:_.startIndex*e.itemHeight,startIndex:_.startIndex}}}const Fv={added:"A",deleted:"D",ignored:null,modified:"M",renamed:"R",untracked:"U"};function zv(t){return t.current?!0:(t.current=!0,!1)}function Nf(t){const{currentScrollTop:e,focusedIndex:n,itemHeight:r,topInset:i=0,viewportHeight:o}=t;if(n<0)return null;const s=Math.max(0,i),l=n*r,a=l+r;if(l<e+s){const d=Math.max(0,l-s);return d===e?null:d}if(a>e+o){const d=a-o;return d===e?null:d}return null}function Ov(t){const{currentScrollTop:e,focusedIndex:n,itemHeight:r,offset:i,topInset:o=0,totalHeight:s,viewportHeight:l}=t;if(i==="nearest")return Nf({currentScrollTop:e,focusedIndex:n,itemHeight:r,topInset:o,viewportHeight:l});if(n<0)return null;const a=Math.max(0,o),d=n*r,u=Math.max(0,l-a),h=i==="center"?a+Math.max(0,(u-r)/2):a,g=Math.max(0,s-l),f=Math.max(0,Math.min(d-h,g));return f===e?null:f}function Hv(t){const{currentScrollTop:e,focusedIndex:n,itemHeight:r,targetViewportOffset:i,totalHeight:o,viewportHeight:s}=t;if(n<0)return null;const l=Math.max(0,i),a=n*r,d=a+r,u=e+l,h=e+s;if(a>=u&&d<=h)return null;const g=Math.max(0,o-s),f=Math.max(0,Math.min(a-l,g));return f===e?null:f}function Bi(t){if(t==null||!t.isConnected||t===document.body||t===document.documentElement)return!1;t.focus({preventScroll:!0});const e=t.getRootNode();return e instanceof ShadowRoot?e.activeElement===t:document.activeElement===t}function Bs(t){const e=t.getRootNode();if(e instanceof ShadowRoot){const r=e.activeElement;return r instanceof HTMLElement?r:null}const n=document.activeElement;return n instanceof HTMLElement&&t.contains(n)?n:null}function $s(t,e){if(t==null)return e;const n=t.getBoundingClientRect().height;return n>0?n:t.clientHeight>0?t.clientHeight:e}function hd(t,e){return t!=null&&t>0?t:e}function Vv(t){const e=t.borderBoxSize,n=Array.isArray(e)?e[0]:e;return n!=null&&Number.isFinite(n.blockSize)&&n.blockSize>0?n.blockSize:t.contentRect.height>0?t.contentRect.height:null}function fd(t,e,n,r,i=0){const o=Nf({currentScrollTop:t.scrollTop,focusedIndex:e,itemHeight:n,topInset:i,viewportHeight:r});return o==null?!1:(t.scrollTop=o,!0)}function Bv(t,e,n,r,i,o,s=0){const l=Ov({currentScrollTop:t.scrollTop,focusedIndex:e,itemHeight:n,offset:o,topInset:s,totalHeight:i,viewportHeight:r});return l==null?!1:(t.scrollTop=l,!0)}function zo(t,e,n,r,i,o){const s=Hv({currentScrollTop:t.scrollTop,focusedIndex:e,itemHeight:n,targetViewportOffset:o,totalHeight:i,viewportHeight:r});return s==null?!1:(t.scrollTop=s,!0)}function pd(t,e,n,r){return n.end<n.start?null:t<n.start?-e:t>n.end?r:null}function $v(t){const{renamingPath:e,previousRenamingPath:n,hasRenderedInput:r}=t;return e==null?"reset":r?n===e?"ignore":"focus-input":"reveal-canonical"}function jv({ariaLabel:t,isFlattened:e=!1,ref:n,value:r,onBlur:i,onInput:o}){return U("input",{ref:n,"data-item-rename-input":!0,...e?{"data-item-flattened-rename-input":!0}:{},"aria-label":t,value:r,onBlur:i,onInput:o,onClick:s=>s.stopPropagation(),onMouseDown:s=>s.stopPropagation(),onPointerDown:s=>s.stopPropagation()})}function qv(t){const{row:e,mode:n,targetPath:r,ariaLabel:i,domId:o,isParked:s,itemHeight:l,features:a,state:d,extraStyle:u}=t,h=n==="sticky",g=e.ancestorPaths.at(-1)??"",f={};return d.isFocusRinged&&(f["data-item-focused"]=!0),e.isSelected&&(f["data-item-selected"]=!0),d.isContextHovered&&(f["data-item-context-hover"]="true"),d.isDragTarget&&(f["data-item-drag-target"]=!0),d.isDragging&&(f["data-item-dragging"]=!0),d.effectiveGitStatus!=null&&(f["data-item-git-status"]=d.effectiveGitStatus),d.containsGitChange&&(f["data-item-contains-git-change"]="true"),{"aria-expanded":!h&&e.kind==="directory"?e.isExpanded:void 0,"aria-haspopup":a.contextMenuEnabled?"menu":void 0,"aria-label":i,"aria-level":h?void 0:e.level+1,"aria-posinset":h?void 0:e.posInSet+1,"aria-selected":h?void 0:e.isSelected?"true":"false","aria-setsize":h?void 0:e.setSize,"data-file-tree-sticky-path":h?r:void 0,"data-file-tree-sticky-row":h?"true":void 0,"data-item-context-menu-button-visibility":a.actionLaneEnabled?a.contextMenuButtonVisibility:void 0,"data-item-context-menu-trigger-mode":a.contextMenuEnabled?a.contextMenuTriggerMode:void 0,"data-item-has-context-menu-action-lane":a.actionLaneEnabled?"true":void 0,"data-item-has-git-lane":a.gitLaneActive?"true":void 0,"data-item-parent-path":g.length>0?g:void 0,"data-item-parked":s?"true":void 0,"data-item-path":r,"data-item-type":e.kind==="directory"?"folder":"file","data-type":"item",id:h?void 0:o,role:h?void 0:"treeitem",style:{minHeight:`${l}px`,...u},tabIndex:!h&&e.isFocused?0:-1,...f}}function Uv(t){const{event:e,mode:n,isDirectory:r}=t,i=e.ctrlKey||e.metaKey,o=e.shiftKey||i,s=e.shiftKey?{additive:i,kind:"range"}:i?{kind:"toggle"}:{kind:"single"};return{closeSearch:!1,revealCanonical:n==="sticky",selection:s,toggleDirectory:!o&&r}}var fo,et,Yl,gd,Oa=Object.is,Qo=0,Ff=[],it=Fe,md=it.__b,bd=it.__r,yd=it.diffed,vd=it.__c,Sd=it.unmount,xd=it.__;function Il(t,e){it.__h&&it.__h(et,t,Qo||e),Qo=0;var n=et.__H||(et.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function Dn(t){return Qo=1,Wv(zf,t)}function Wv(t,e,n){var r=Il(fo++,2);if(r.t=t,!r.__c&&(r.__=[zf(void 0,e),function(l){var a=r.__N?r.__N[0]:r.__[0],d=r.t(a,l);Oa(a,d)||(r.__N=[d,r.__[1]],r.__c.setState({}))}],r.__c=et,!et.__f)){var i=function(l,a,d){if(!r.__c.__H)return!0;var u=r.__c.__H.__.filter(function(g){return!!g.__c});if(u.every(function(g){return!g.__N}))return!o||o.call(this,l,a,d);var h=r.__c.props!==l;return u.forEach(function(g){if(g.__N){var f=g.__[0];g.__=g.__N,g.__N=void 0,Oa(f,g.__[0])||(h=!0)}}),o&&o.call(this,l,a,d)||h};et.__f=!0;var o=et.shouldComponentUpdate,s=et.componentWillUpdate;et.componentWillUpdate=function(l,a,d){if(4&this.__g){var u=o;o=void 0,i(l,a,d),o=u}s&&s.call(this,l,a,d)},et.shouldComponentUpdate=i}return r.__N||r.__}function wd(t,e){var n=Il(fo++,3);!it.__s&&bc(n.__H,e)&&(n.__=t,n.u=e,et.__H.__h.push(n))}function Wt(t,e){var n=Il(fo++,4);!it.__s&&bc(n.__H,e)&&(n.__=t,n.u=e,et.__h.push(n))}function ce(t){return Qo=5,Tr(function(){return{current:t}},[])}function Tr(t,e){var n=Il(fo++,7);return bc(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function xt(t,e){return Qo=8,Tr(function(){return t},e)}function Gv(){for(var t;t=Ff.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(nl),t.__H.__h.forEach(Ha),t.__H.__h=[]}catch(e){t.__H.__h=[],it.__e(e,t.__v)}}it.__b=function(t){et=null,md&&md(t)},it.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),xd&&xd(t,e)},it.__r=function(t){bd&&bd(t),fo=0;var e=(et=t.__c).__H;e&&(Yl===et?(e.__h=[],et.__h=[],e.__.forEach(function(n){n.__N&&(n.__=n.__N),n.u=n.__N=void 0})):(e.__h.forEach(nl),e.__h.forEach(Ha),e.__h=[],fo=0)),Yl=et},it.diffed=function(t){yd&&yd(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(Ff.push(e)!==1&&gd===it.requestAnimationFrame||((gd=it.requestAnimationFrame)||Kv)(Gv)),e.__H.__.forEach(function(n){n.u&&(n.__H=n.u),n.u=void 0})),Yl=et=null},it.__c=function(t,e){e.some(function(n){try{n.__h.forEach(nl),n.__h=n.__h.filter(function(r){return!r.__||Ha(r)})}catch(r){e.some(function(i){i.__h&&(i.__h=[])}),e=[],it.__e(r,n.__v)}}),vd&&vd(t,e)},it.unmount=function(t){Sd&&Sd(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{nl(r)}catch(i){e=i}}),n.__H=void 0,e&&it.__e(e,n.__v))};var Cd=typeof requestAnimationFrame=="function";function Kv(t){var e,n=function(){clearTimeout(r),Cd&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,35);Cd&&(e=requestAnimationFrame(n))}function nl(t){var e=et,n=t.__c;typeof n=="function"&&(t.__c=void 0,n()),et=e}function Ha(t){var e=et;t.__c=t.__(),et=e}function bc(t,e){return!t||t.length!==e.length||e.some(function(n,r){return!Oa(n,t[r])})}function zf(t,e){return typeof e=="function"?e(t):e}function Yv(t,e=null,n=null){"use no memo";const r=t.flattenedSegments;return r==null||r.length===0?e??t.name:U("span",{"data-item-flattened-subitems":!0,children:r.map((i,o)=>{const s=o===r.length-1;return U(mo,{children:[U("span",{"data-item-flattened-subitem":i.path,"data-item-flattened-subitem-drag-target":n===i.path?"true":void 0,children:s&&e!=null?e:U(tl,{children:i.name})}),o<r.length-1?" / ":""]},i.path)})})}function Wi(t){var e,n;return t.isFlattened?((n=(e=t.flattenedSegments)==null?void 0:e.findLast(r=>r.isTerminal))==null?void 0:n.path)??t.path:t.path}function Va(t){const e=t.flattenedSegments;return e==null||e.length===0?t.name:e.map(n=>n.name).join(" / ")}function Id(t,e,n,r){return t.map((i,o)=>{const s=o*n,l=i.subtreeEndIndex+1;if(l>=r)return{row:i.row,top:s};const a=l*n-e;return{row:i.row,top:Math.min(s,a-n)}}).filter(i=>i.top+n>0)}function Xl({controller:t,itemHeight:e,overscan:n,scrollTop:r,stickyFolders:i,viewportHeight:o}){const s=t.getVisibleCount(),l=i&&s>0?t.getStickyRowCandidates(r,e):[],a=l==null&&i&&s>0?t.getVisibleRows(0,s-1):[],d=l==null?void 0:Id(l,r,e,s),u=Nv(a,{itemHeight:e,overscan:n,scrollTop:r,stickyRows:d,totalRowCount:s,viewportHeight:o}),h=i&&r<=0&&s>0?t.getStickyRowCandidates(1,e):[],g=h!=null&&r<=0?Id(h,1,e,s):i&&r<=0&&a.length>0?Lf(a,1,e):u.sticky.rows;return{overlayHeight:g.reduce((f,m)=>Math.max(f,m.top+e),0),overlayRows:g,snapshot:u,visibleRows:a}}const Xv=400,Ni=40,kd=18;function Zv(t,e,n){var s,l;const r=t,i=((s=document.elementFromPoint)==null?void 0:s.bind(document))??null,o=((l=r.elementFromPoint)==null?void 0:l.call(r,e,n))??(i==null?void 0:i(e,n))??null;return t instanceof ShadowRoot&&(o==null||!t.contains(o))?Qv(t,e,n):o instanceof HTMLElement?o:null}function Qv(t,e,n){const r=Array.from(t.querySelectorAll('[data-type="item"], [data-item-flattened-subitem]'));for(let i=r.length-1;i>=0;i--){const o=r[i],s=o.getBoundingClientRect();if(e>=s.left&&e<=s.right&&n>=s.top&&n<=s.bottom)return o}return null}function _d(t){var s,l;const e=(s=t==null?void 0:t.closest)==null?void 0:s.call(t,'[data-type="item"]');if(!(e instanceof HTMLElement))return null;const n=e.dataset.itemPath??null;if(n==null)return null;const r=(l=t==null?void 0:t.closest)==null?void 0:l.call(t,"[data-item-flattened-subitem]"),i=r instanceof HTMLElement?r.getAttribute("data-item-flattened-subitem")??null:null;if(i!=null&&i.endsWith("/"))return{directoryPath:i,flattenedSegmentPath:i,hoveredPath:n,kind:"directory"};if(e.dataset.itemType==="folder")return{directoryPath:n,flattenedSegmentPath:null,hoveredPath:n,kind:"directory"};const o=e.dataset.itemParentPath??null;return o==null||o.length===0?{directoryPath:null,flattenedSegmentPath:null,hoveredPath:n,kind:"root"}:{directoryPath:o,flattenedSegmentPath:null,hoveredPath:n,kind:"directory"}}function Td(t){const e=t.cloneNode(!0);return e.removeAttribute("id"),e.dataset.fileTreeDragPreview="true",e.setAttribute("aria-hidden","true"),e.tabIndex=-1,Object.assign(e.style,{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",left:"0px",margin:"0",pointerEvents:"none",position:"fixed",top:"0px",willChange:"transform",zIndex:"10000"}),e}function Jv(){return navigator.vendor!=="Apple Computer, Inc."}function e2(t,e){const n=t-e.top;if(n<Ni)return-Math.ceil((Ni-Math.max(0,n))/Ni*kd);const r=e.bottom-t;return r<Ni?Math.ceil((Ni-Math.max(0,r))/Ni*kd):0}function t2(t,e,n){if(t!=null){const r=Fv[t];return r==null?null:{text:r,title:n.gitStatusTitles[t]}}return e?{icon:{name:"file-tree-icon-dot",width:6,height:6},title:n.containsGitStatusTitle}:null}function n2(t,e,n){if(e==null||e.size===0)return null;const r=[];for(let i=t.length-1;i>=0;i-=1){const o=t[i],s=n.get(o);if(s!=null){for(const l of r)n.set(l,s);return s?"ignored":null}if(e.has(o)){n.set(o,!0);for(const l of r)n.set(l,!0);return"ignored"}r.push(o)}for(const i of r)n.set(i,!1);return null}function Ed(t){return t!=null&&"toggle"in t}function Of(t){return t.code==="Space"||t.key===" "||t.key==="Spacebar"}function r2(t){return t.key.length===1&&/^[\p{L}\p{N}]$/u.test(t.key)&&!t.ctrlKey&&!t.metaKey&&!t.altKey}function i2(t){return t==null?"":`[data-item-section="spacing-item"][data-ancestor-path="${t.replaceAll("\\","\\\\").replaceAll('"','\\"')}"] { opacity: 1; }`}function Hf(t){return t.shiftKey&&t.key==="F10"||t.key==="ContextMenu"}function o2(t,e){return e&&Hf(t)||(t.ctrlKey||t.metaKey)&&Of(t)?!0:t.key==="ArrowDown"||t.key==="ArrowLeft"||t.key==="ArrowRight"||t.key==="ArrowUp"}const s2=new Set(["ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp"]);function Ad(t){for(const e of t.composedPath())if(e instanceof HTMLElement&&(e.dataset.fileTreeContextMenuRoot==="true"||e.dataset.type==="context-menu-anchor"||e.dataset.type==="context-menu-trigger"||e.getAttribute("slot")==="context-menu"))return!0;return!1}function l2(t){return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width,x:t.x,y:t.y}}function a2(t,e){return{bottom:e,height:0,left:t,right:t,top:e,width:0,x:t,y:e}}function c2(t,e){if(t==null)return e.offsetTop;const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return n.top-r.top}function Rd(t,e,n){if(n==null){t.delete(e);return}t.set(e,n)}function Pd(t,e,n){if(t==null)return null;const r=e.get(t)??null;if(r!=null)return r;const i=n.get(t)??null;return(i==null?void 0:i.dataset.itemParked)==="true"?null:i}function u2(t){if(t==null)return[];const e=[];for(const n of t.querySelectorAll('button[data-file-tree-sticky-row="true"]')){if(!(n instanceof HTMLElement))continue;const r=n.dataset.fileTreeStickyPath;r!=null&&e.push(r)}return e}function d2(t,e){if(t==null||e==null)return null;for(const n of t.querySelectorAll('button[data-item-focused="true"][data-item-parked="true"]'))if(n instanceof HTMLElement&&n.dataset.itemPath===e)return n;return null}function h2(t,e,n,r,i,o,s){const l=Math.max(0,o-i),a=(e==null?void 0:e.getBoundingClientRect())??null,d=a==null||n==null?null:n.getBoundingClientRect().top-a.top,u=d2(t,r),h=a==null||u==null?null:u.getBoundingClientRect().top-a.top;return Math.max(0,Math.min(h??Math.max(d??0,l),Math.max(0,s-i)))}function Md(t,e){return{kind:t.kind,name:Va(t),path:e}}function f2(t){return t==null?void 0:`${t}__tree`}function Vf(t,e,n){if(t!=null)return`${t}__focused-item-${encodeURIComponent(e)}${n?"__parked":""}`}function Dd(t){return t==="file-tree-icon-chevron"||t==="file-tree-icon-dot"||t==="file-tree-icon-file"||t==="file-tree-icon-lock"}function Ld(t,e){if(t==null)return null;if("text"in t)return t.parts!=null?U("span",{title:t.title,children:t.parts.map((r,i)=>U("span",{style:{color:r.color},children:r.text},i))}):U("span",{title:t.title,children:t.text});const n=typeof t.icon=="string"?Dd(t.icon)?e(t.icon):{name:t.icon}:Dd(t.icon.name)?(()=>{const r=e(t.icon.name),{name:i,...o}=t.icon;return{...r,...o}})():t.icon;return U("span",{title:t.title,children:U(Go,{...n})})}function Nd(t){if(t==null)return;const e=t.querySelector(["button:not([disabled])","[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(", "));Bi(e??t)}function p2(t,e,{actionLaneEnabled:n=!1,customDecoration:r=null,decorationLaneEnabled:i=!1,dragTargetFlattenedSegmentPath:o=null,gitDecoration:s=null,gitLaneActive:l=!1,renameInput:a=null,showDecorativeActionAffordance:d=!1}={}){const u=Wi(t);return U(mo,{children:[t.depth>0?U("div",{"data-item-section":"spacing",children:Array.from({length:t.depth}).map((h,g)=>U("div",{"data-item-section":"spacing-item","data-ancestor-path":t.ancestorPaths[g]},g))}):null,U("div",{"data-item-section":"icon",children:t.kind==="directory"?U(Go,{...e("file-tree-icon-chevron")}):U(Go,{...e("file-tree-icon-file",u)})}),U("div",{"data-item-section":"content",children:t.isFlattened?Yv(t,a,o):a??U(Ev,{minimumLength:5,split:"extension",children:t.name})}),i?U("div",{"data-item-section":"decoration",children:r!=null?Ld(r,e):null}):null,l?U("div",{"data-item-section":"git",children:Ld(s,e)}):null,n?U("div",{"data-item-section":"action",children:d?U("span",{"aria-hidden":"true","data-item-action-affordance":"decorative",children:U(Go,{...e("file-tree-icon-ellipsis")})}):null}):null]})}function rl(t,e,n,r={}){const{controller:i,renameView:o,visualFocusPath:s,contextHoverPath:l,draggedPathSet:a,dragTarget:d,dragAndDropEnabled:u,shouldSuppressContextMenu:h,handleRowDragStart:g,handleRowDragEnd:f,handleRowTouchStart:m,instanceId:y,itemHeight:v,gitStatusByPath:C,ignoredGitDirectories:I,ignoredInheritanceCache:k,directoriesWithGitChanges:_,gitLaneActive:P,labels:L,contextMenuEnabled:z,contextMenuTriggerMode:V,contextMenuButtonTriggerEnabled:J,contextMenuButtonVisibility:be,contextMenuRightClickEnabled:se,registerRenameInput:le,registerButton:oe,resolveIcon:Se,renderDecorationForRow:Ce,openContextMenuForRow:K,onRowClick:ue,onKeyDown:_e}=t,xe=Wi(e),{isParked:Je=!1,mode:At="flow",style:tt}=r,ht=At==="sticky",Ke=(C==null?void 0:C.get(xe))??null??n2(e.ancestorPaths,I,k),Ye=e.kind==="directory"&&((_==null?void 0:_.has(xe))??!1),ot=Ce(e,xe),st=t2(Ke,Ye,L),Ae=z&&J,ge=ot!=null||P||Ae,It=Ae&&be==="always",lt=o.getPath()===xe,Ht=lt?o.getValue():"",Rt=ht||!lt?null:U(jv,{ref:le,ariaLabel:L.renameItem(Va(e)),isFlattened:e.isFlattened,value:Ht,onBlur:()=>{o.commit()},onInput:F=>{o.setValue(F.currentTarget.value)}}),Vn=p2(e,Se,{actionLaneEnabled:Ae,customDecoration:ot,decorationLaneEnabled:ge,dragTargetFlattenedSegmentPath:(d==null?void 0:d.flattenedSegmentPath)??null,gitDecoration:st,gitLaneActive:P,renameInput:Rt,showDecorativeActionAffordance:It}),Vt={...qv({ariaLabel:Va(e),domId:e.isFocused?Vf(y,xe,Je):void 0,extraStyle:tt,features:{actionLaneEnabled:Ae,contextMenuButtonVisibility:Ae?be:null,contextMenuEnabled:z,contextMenuTriggerMode:z?V:null,gitLaneActive:P},isParked:Je,itemHeight:v,mode:At,row:e,state:{containsGitChange:Ye,effectiveGitStatus:Ke,isContextHovered:l===xe,isDragTarget:(d==null?void 0:d.kind)==="directory"&&d.directoryPath===xe,isDragging:(a==null?void 0:a.has(xe))===!0,isFocusRinged:e.isFocused&&s===xe},targetPath:xe}),key:n,onContextMenu:z||u?F=>{if(h()){F.preventDefault();return}z&&(F.preventDefault(),se&&(i.focusMountedPathFromInput(xe),K(e,xe,{anchorRect:a2(F.clientX,F.clientY),source:"right-click"})))}:void 0,onFocus:ht?void 0:()=>{i.focusMountedPathFromInput(xe)},onKeyDown:ht?void 0:_e,ref:F=>{oe(xe,F)}};return!ht&&lt?U("div",{...Vt,children:Vn}):U("button",{...Vt,type:"button",draggable:u&&!Je,onDragEnd:u&&!Je?f:void 0,onDragStart:u&&!Je?F=>{g(F,e,xe)}:void 0,onMouseDown:F=>{if(ht){F.preventDefault();return}i.isSearchOpen()&&F.preventDefault()},onTouchStart:u&&!Je?F=>{m(F,e,xe)}:void 0,onClick:F=>{ue(F,e,xe,At)},children:Vn})}function g2(t,e,n){return e.end<e.start?[]:t.controller.getVisibleRows(e.start,e.end).filter(r=>!n.has(Wi(r))).map((r,i)=>rl(t,r,e.start+i))}function Fd({composition:t,controller:e,gitStatusByPath:n,ignoredGitDirectories:r,directoriesWithGitChanges:i,icons:o,instanceId:s,itemHeight:l=Zh,labels:a=oa,overscan:d=10,renamingEnabled:u=!1,renderRowDecoration:h,searchBlurBehavior:g="close",searchEnabled:f=!1,searchFakeFocus:m=!1,slotHost:y,stickyFolders:v=!1,initialViewportHeight:C=420}){"use no memo";var vc,Sc,xc,wc,Cc,Ic,kc;const I=ce(null),k=ce(null),_=ce(!1),P=ce(null),L=ce(null),z=ce(null),V=ce(null),J=ce(null),be=ce(new Map),se=ce(new Map),le=ce(()=>{}),oe=ce(null),Se=ce(0),Ce=ce(!1),K=ce(null);K.current!==e&&(Ce.current=!1,K.current=e);const ue=ce(!1),_e=ce(null),xe=ce(null),Je=ce(!1),At=ce(null),tt=ce(null),ht=ce(null),Ke=ce(null),Ye=ce(null),ot=ce(null),st=ce(null),Ae=ce(null),ge=ce(!1),It=ce(null),lt=ce(null),Ht=ce(null),Rt=ce(null),Vn=Tr(()=>new Map,[]),[,Vt]=Dn(0),F=ce(!1),[ne,pe]=Dn(null),[re,at]=Dn(null),[we,cr]=Dn(null),[nn,Bt]=Dn(null),[gs,_n]=Dn(0),[ye,qr]=Dn(null),Bn=ce(ye);Bn.current=ye;const yi=ce(0),$t=xt((b,A)=>{const $=Bn.current;return $!=null&&$.path===b&&$.source===A?$.token:(yi.current+=1,yi.current)},[]),rn=ce(null),jt=ce(null),Tn=ce(null),En=ce(null),Ur=ce(null),ur=ce(!1),dr=()=>{jt.current=null,Tn.current=null,En.current=null},hr=(b,A)=>{jt.current=b,Tn.current=null,En.current=A==null?null:{path:b,scrollTop:A}},bo=(b,A)=>{jt.current=null,Tn.current={path:b,viewportOffset:A},En.current=null},yo=ce(g==="retain"&&e.isSearchOpen()),[ms,vo]=Dn(m);wd(()=>{m||vo(!1)},[m]);const vi=ce(!1),Wr=xt(()=>{vi.current=!0,vo(b=>b&&!1)},[]),[dn,$n]=Dn(()=>Xl({controller:e,itemHeight:l,overscan:d,scrollTop:0,stickyFolders:v,viewportHeight:C})),[fr,jn]=Dn(!1);wd(()=>{jn(!0)},[]);const vt=((vc=t==null?void 0:t.contextMenu)==null?void 0:vc.enabled)===!0||((Sc=t==null?void 0:t.contextMenu)==null?void 0:Sc.render)!=null||((xc=t==null?void 0:t.contextMenu)==null?void 0:xc.onOpen)!=null||((wc=t==null?void 0:t.contextMenu)==null?void 0:wc.onClose)!=null,qn=((Cc=t==null?void 0:t.contextMenu)==null?void 0:Cc.triggerMode)??(vt?"right-click":"both"),Un=qn==="both"||qn==="button",So=((Ic=t==null?void 0:t.contextMenu)==null?void 0:Ic.buttonVisibility)??"when-needed",bs=qn==="both"||qn==="right-click";Wt(()=>{const b=z.current;if(b==null)return;const A=O=>{var X;if(!(O instanceof CustomEvent))return;const B=((X=O.detail)==null?void 0:X.path)??null;Ur.current=B,at(B),Bt(B==null?null:"pointer")},$=O=>{if(!(O instanceof CustomEvent))return;const B=O.detail;ur.current=(B==null?void 0:B.disabled)===!0};return b.addEventListener("file-tree-debug-set-context-menu-trigger",A),b.addEventListener("file-tree-debug-set-scroll-suppression",$),()=>{b.removeEventListener("file-tree-debug-set-context-menu-trigger",A),b.removeEventListener("file-tree-debug-set-scroll-suppression",$)}},[]);const Si=xt((b,A)=>{Rd(be.current,b,A)},[]),xi=xt((b,A)=>{Rd(se.current,b,A)},[]),on=xt(b=>{L.current=b},[]),sn=xt(b=>Pd(b,se.current,be.current),[]),wi=n!=null||r!=null||i!=null,{resolveIcon:xo}=Tr(()=>Vm(o),[o]),Gr=e[ef](),pr=Gr.getPath(),Kr=pr!=null,hn=e.isSearchOpen(),wo=e.getSearchValue(),ve=e.getFocusedPath(),De=e.getFocusedIndex(),Lt=e.getScrollRequest(),fn=e.isDragAndDropEnabled(),pn=e.getDragSession(),Xe=Tr(()=>pn==null?null:new Set(pn.draggedPaths),[pn]),Yr=(pn==null?void 0:pn.target)??null,An=(pn==null?void 0:pn.primaryPath)??null,ys=f2(s),{overlayHeight:vs,overlayRows:Ci,snapshot:nt,visibleRows:Xr}=dn,bt=nt.physical.viewportHeight,qt=Tr(()=>({end:nt.window.endIndex,start:nt.window.startIndex}),[nt.window.endIndex,nt.window.startIndex]),Zr=Ci,Ss=nt.sticky.rows,kt=nt.physical.totalHeight,Wn=nt.sticky.height,Ii=Tr(()=>new Set(Ss.map(b=>Wi(b.row))),[Ss]),Rn=De>=0&&De>=qt.start&&De<=qt.end,Co=xt((b,A)=>(h==null?void 0:h({item:Md(b,A),row:b}))??null,[h]),ki=xt(b=>{const A=b==null?null:be.current.get(b)??null;return Bi(A)?!0:Bi(z.current)},[]),gr=xt(b=>{const A=e.focusNearestPath(b);ki(A)},[e,ki]),_i=ce(gr);_i.current=gr;const mr=ce(!0),Ti=ce(()=>{}),_t=xt((b=!0,A)=>{var O,B;const $=Bn.current;$!=null&&(A!=null&&A!==$.token||(mr.current=mr.current&&b,qr(null),(B=(O=t==null?void 0:t.contextMenu)==null?void 0:O.onClose)==null||B.call(O),mr.current&&gr($.path)))},[t==null?void 0:t.contextMenu,gr]);Ti.current=_t;const br=xt(b=>{const A=b==null?null:c2(z.current,b);cr($=>$===A?$:A)},[]),xs=xt((b,A,$)=>{const O=e.getItem(A);if(O==null)return;const B=sn(A);if((B==null?void 0:B.dataset.fileTreeStickyRow)==="true"){const ae=V.current;hr(A,(ae==null?void 0:ae.scrollTop)??null),ue.current=!0,pe(W=>W===A?W:A)}O.focus(),br(B),mr.current=!0;const X=($==null?void 0:$.source)??"keyboard";qr({anchorRect:($==null?void 0:$.anchorRect)??null,item:Md(b,A),path:A,source:X,token:$t(A,X)})},[e,sn,$t,br]),kl=xt(b=>{if(u){if(e.isSearchOpen()){const A=V.current,$=$s(A,bt);At.current=De<0||A==null?null:Math.max(0,Math.min(De*l-A.scrollTop,Math.max(0,$-l))),Je.current=!0}e.startRenaming(b)!==!1&&(Bt("focus"),Vt(A=>A+1))}},[e,De,l,u,bt]),Ei=xt((b,{restoreTreeFocus:A=!0,targetOffset:$="live-overlay"}={})=>{const O=V.current;if(O==null)return!1;e.focusPath(b);const B=e.getFocusedIndex();if(B<0)return!1;const X=e.getVisibleRows(B,B)[0]??null;if(X==null)return!1;const ae=$s(O,bt),W=e.getVisibleCount()*l,he=$==="sticky-parents"?X.ancestorPaths.length*l:Xl({controller:e,itemHeight:l,overscan:d,scrollTop:O.scrollTop,stickyFolders:v,viewportHeight:ae}).snapshot.sticky.height;return ue.current=!0,zo(O,B,l,ae,W,he),le.current(),rn.current=A?b:null,!0},[e,l,d,bt,v]),ws=()=>_.current===!0||Rt.current!=null||ge.current===!0,Io=b=>typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(()=>{b()}):window.setTimeout(b,16),_l=b=>{if(b!=null){if(typeof window.cancelAnimationFrame=="function"){window.cancelAnimationFrame(b);return}window.clearTimeout(b)}},gn=()=>{Ke.current!=null&&(clearTimeout(Ke.current),Ke.current=null),ht.current=null},Gn=()=>{var b;(b=ot.current)==null||b.remove(),ot.current=null},Pn=()=>{_l(tt.current),tt.current=null,Ye.current=null},Ai=b=>{var $;const A=($=z.current)==null?void 0:$.getRootNode();if(A instanceof ShadowRoot){A.append(b);return}document.body.append(b)},Qr=()=>{var b;(b=Ae.current)==null||b.call(Ae),Ae.current=null,Rt.current!=null&&(clearTimeout(Rt.current),Rt.current=null),ge.current=!1,It.current=null,Ht.current=null,lt.current!=null&&(lt.current.setAttribute("draggable","true"),lt.current.style.removeProperty("touch-action"),lt.current=null),Gn(),gn(),Pn(),st.current=null},Ri=(b,A)=>{var B,X;const $=(B=z.current)==null?void 0:B.getRootNode(),O=_d(Zv($ instanceof ShadowRoot?$:document,b,A));return e.setDragTarget(O),((X=e.getDragSession())==null?void 0:X.target)??null},ko=b=>{var X;const A=((X=e.getDragAndDropConfig())==null?void 0:X.openOnDropDelay)??800;if(b==null||b.kind!=="directory"||b.directoryPath==null||A<=0){gn();return}const $=e.getItem(b.directoryPath),O=Ed($)?$:null;if(O==null||O.isExpanded()){gn();return}const B=`${b.directoryPath}::${b.flattenedSegmentPath??""}`;ht.current!==B&&(gn(),ht.current=B,Ke.current=setTimeout(()=>{var W;const ae=(W=e.getDragSession())==null?void 0:W.target;(ae==null?void 0:ae.kind)!=="directory"||ae.directoryPath!==b.directoryPath||ae.flattenedSegmentPath!==b.flattenedSegmentPath||O.expand()},A))},Pi=()=>{tt.current=null;const b=Ye.current,A=V.current;if(b==null||A==null||e.getDragSession()==null)return;const $=A.getBoundingClientRect(),O=e2(b.clientY,$);if(O===0)return;const B=Math.max(0,A.scrollHeight-A.clientHeight),X=Math.max(0,Math.min(B,A.scrollTop+O));X!==A.scrollTop&&(A.scrollTop=X,le.current());const ae=Ri(b.clientX,b.clientY);ko(ae),tt.current=Io(Pi)},Jr=(b,A)=>{Ye.current={clientX:b,clientY:A},tt.current??(tt.current=Io(Pi))},Cs=(b,A,$)=>{const O=b.currentTarget;if(O!=null){if(Qr(),Gn(),gn(),Pn(),e.startDrag($)===!1){b.preventDefault();return}if(st.current=A,b.dataTransfer!=null&&(b.dataTransfer.effectAllowed="move",b.dataTransfer.dropEffect="move",b.dataTransfer.setData("text/plain",$),Jv())){const B=Td(O),X=O.getBoundingClientRect();Object.assign(B.style,{height:`${X.height}px`,opacity:"0.85",transform:"translate3d(-9999px, 0px, 0)",width:`${X.width}px`}),Ai(B),ot.current=B,b.dataTransfer.setDragImage(B,Math.max(0,b.clientX-X.left),Math.max(0,b.clientY-X.top))}}},yr=()=>{Gn(),gn(),Pn(),st.current=null,e.cancelDrag()},ei=(b,A,$)=>{if(Rt.current!=null||ge.current)return;const O=b.touches[0],B=b.currentTarget;if(O==null||B==null)return;Ht.current={clientX:O.clientX,clientY:O.clientY},lt.current=B,B.setAttribute("draggable","false");const X=(he={})=>{const Oe=he.restoreNativeDraggable??!ge.current;Rt.current!=null&&(clearTimeout(Rt.current),Rt.current=null),document.removeEventListener("touchmove",ae),document.removeEventListener("touchend",W),document.removeEventListener("touchcancel",W),Ae.current===X&&(Ae.current=null),Oe&&(B.setAttribute("draggable","true"),lt.current===B&&(lt.current=null),Ht.current=null)},ae=he=>{const Oe=he.touches[0],Le=Ht.current;if(Oe==null||Le==null)return;const Pe=Oe.clientX-Le.clientX,ct=Oe.clientY-Le.clientY;Pe*Pe+ct*ct<=100||X()},W=()=>{X()};document.addEventListener("touchmove",ae,{passive:!0}),document.addEventListener("touchend",W),document.addEventListener("touchcancel",W),Ae.current=X,Rt.current=setTimeout(()=>{if(X({restoreNativeDraggable:!1}),e.startDrag($)===!1){B.setAttribute("draggable","true"),lt.current===B&&(lt.current=null),Ht.current=null;return}ge.current=!0,lt.current=B,B.setAttribute("draggable","false"),B.style.setProperty("touch-action","none"),st.current=A;const he=B.getBoundingClientRect(),Oe=Td(B);Object.assign(Oe.style,{height:`${he.height}px`,opacity:"0.85",transform:`translate3d(${he.left}px, ${he.top}px, 0)`,width:`${he.width}px`}),Ai(Oe),ot.current=Oe,It.current={x:O.clientX-he.left,y:O.clientY-he.top};const Le=bn=>{const He=bn.touches[0];if(He==null)return;bn.preventDefault();const Te=It.current;Te!=null&&ot.current!=null&&(ot.current.style.transform=`translate3d(${He.clientX-Te.x}px, ${He.clientY-Te.y}px, 0)`);const Ee=Ri(He.clientX,He.clientY);ko(Ee),Jr(He.clientX,He.clientY)},Pe=bn=>{const He=bn.changedTouches[0];He!=null&&Ri(He.clientX,He.clientY),e.completeDrag(),Qr()},ct=()=>{e.cancelDrag(),Qr()};Ae.current=()=>{document.removeEventListener("touchmove",Le),document.removeEventListener("touchend",Pe),document.removeEventListener("touchcancel",ct)},document.addEventListener("touchmove",Le,{passive:!1}),document.addEventListener("touchend",Pe),document.addEventListener("touchcancel",ct)},Xv)},Ut=b=>{if(ye!=null){if(b.key==="Escape"){_t(),b.preventDefault(),b.stopPropagation();return}s2.has(b.key)&&(b.preventDefault(),b.stopPropagation());return}if(Gr.isActive()){if(b.isComposing||b.keyCode===229)return;if(b.key==="Escape")Gr.cancel();else if(b.key==="Enter")Gr.commit();else return;Bt("focus"),Vt(Ue=>Ue+1),b.preventDefault(),b.stopPropagation();return}if(u&&b.key==="F2"){kl(ve??void 0),b.preventDefault(),b.stopPropagation();return}if(hn){if(b.key==="Escape")Je.current=!1,At.current=null,e.closeSearch();else if(b.key==="Enter"){const Ue=e.getFocusedPath();Ue!=null&&e.selectOnlyPath(Ue)}else if(b.key==="ArrowDown")e.focusNextSearchMatch();else if(b.key==="ArrowUp")e.focusPreviousSearchMatch();else return;Bt("focus"),Vt(Ue=>Ue+1),b.preventDefault(),b.stopPropagation();return}if(f&&r2(b)){e.openSearch(b.key),Vt(Ue=>Ue+1),b.preventDefault(),b.stopPropagation();return}const A=vt&&Hf(b),$=o2(b,vt),O=$&&z.current!=null?Bs(z.current):null,B=$?new Set(u2(z.current)):new Set,X=(O==null?void 0:O.dataset.fileTreeStickyPath)??null,ae=(O==null?void 0:O.dataset.fileTreeStickyRow)==="true"&&X!=null;if(ae&&X!==ve&&B.has(X)){const Ue=V.current;hr(X,(Ue==null?void 0:Ue.scrollTop)??null),e.focusPath(X)}const W=e.getFocusedPath(),he=e.getFocusedIndex(),Oe=e.getFocusedItem();if(Oe==null)return;const Le=Ed(Oe)?Oe:null,Pe=W!=null&&(Ii.has(W)||ae&&X===W&&B.has(W)),ct=b.key==="ArrowDown"||b.key==="ArrowUp"||b.key==="ArrowRight"&&Le!=null&&Le.isExpanded(),bn=b.key==="ArrowLeft"&&Pe&&Le!=null&&Le.isExpanded(),He=V.current;let Te=!0;if(b.shiftKey&&b.key==="ArrowDown")e.extendSelectionFromFocused(1);else if(b.shiftKey&&b.key==="ArrowUp")e.extendSelectionFromFocused(-1);else if(A&&W!=null&&he>=0){const Ue=e.getVisibleRows(he,he)[0]??null,Li=Pd(W,se.current,be.current);Ue==null||Li==null?Te=!1:xs(Ue,W)}else if((b.ctrlKey||b.metaKey)&&Of(b))e.toggleFocusedSelection();else if((b.ctrlKey||b.metaKey)&&b.key.toLowerCase()==="a")e.selectAllVisiblePaths();else switch(b.key){case"ArrowDown":e.focusNextItem();break;case"ArrowUp":e.focusPreviousItem();break;case"ArrowRight":Le==null||Le.isExpanded()?e.focusNextItem():Le.expand();break;case"ArrowLeft":Le!=null&&Le.isExpanded()?Le.collapse():e.focusParentItem();break;case"Home":e.focusFirstItem();break;case"End":e.focusLastItem();break;default:Te=!1}if(!Te)return;Bt("focus");const Ee=e.getFocusedPath(),St=Ee!=null&&(Ii.has(Ee)||B.has(Ee)),Di=ct&&Ee!==W,As=A&&ae&&X===W&&Ee===W;if((Pe||As)&&Ee!=null&&(Di&&St||As))hr(Ee,(He==null?void 0:He.scrollTop)??null),ue.current=!0,pe(Ue=>Ue===Ee?Ue:Ee);else{const Ue=b.key==="ArrowUp"&&Pe&&Ee!==W;Ee!=null&&(Ue||bn&&Ee===W)?(bo(Ee,h2(z.current,He,O,W,l,Wn,bt)),ue.current=!0,pe(Li=>Li===Ee?Li:Ee)):dr()}Vt(Ue=>Ue+1),b.preventDefault(),b.stopPropagation()};Wt(()=>{if(!(!f||!hn)){if(yo.current){yo.current=!1;return}Bi(J.current)}},[hn,f]),Wt(()=>{const b=L.current;switch($v({hasRenderedInput:b!=null,previousRenamingPath:xe.current,renamingPath:pr})){case"reset":xe.current=null;return;case"reveal-canonical":pr!=null&&Ei(pr,{restoreTreeFocus:!1,targetOffset:"live-overlay"});return;case"ignore":return;case"focus-input":b!=null&&(rn.current=null,xe.current=pr,Bi(b),b.select());return}},[qt.end,qt.start,pr,Ei,Ii]),Wt(()=>{const b=z.current;if(b==null)return;let A=null;const $=()=>{A!=null&&(clearTimeout(A),A=null)},O=()=>{var W;const ae=((W=Bs(b))==null?void 0:W.dataset.itemPath)??null;pe(he=>he===ae?he:ae)},B=()=>{$(),ue.current=!0,O()},X=ae=>{const W=ae.relatedTarget;if(W==null){$(),A=setTimeout(()=>{if(A=null,Bs(b)!=null){O();return}ue.current=!1,pe(null)},0);return}if(!(W instanceof Node)||!b.contains(W)){$(),ue.current=!1,pe(null);return}const he=W instanceof HTMLElement?W.dataset.itemPath??null:null;pe(Oe=>Oe===he?Oe:he)};return b.addEventListener("focusin",B),b.addEventListener("focusout",X),()=>{$(),b.removeEventListener("focusin",B),b.removeEventListener("focusout",X)}},[]),Wt(()=>{const b=z.current;b!=null&&(nt.physical.scrollTop<=0?b.dataset.scrollAtTop="true":delete b.dataset.scrollAtTop)},[nt.physical.scrollTop]),Wt(()=>{let b=null;const A=V.current,$=P.current,O=z.current;if(A==null)return;oe.current=$s(A,C);const B=()=>{const Te=e.getVisibleCount(),Ee=hd(oe.current,C),St=Math.max(0,Te*l-Ee);A.scrollTop>St&&(A.scrollTop=St),$n(Xl({controller:e,itemHeight:l,overscan:d,scrollTop:Math.min(A.scrollTop,St),stickyFolders:v,viewportHeight:Ee}))};if(!Ce.current){Ce.current=!0;const Te=e.getFocusedIndex();if(Te>=0){const Ee=hd(oe.current,C),St=e.getVisibleRows(Te,Te)[0]??null,Di=v&&St!=null?Math.max(0,Math.min(St.ancestorPaths.length*l,Math.max(0,Ee-l))):0;fd(A,Te,l,Ee,Di)}}le.current=B;const X=e.subscribe(()=>{zv(F)&&Vt(Te=>Te+1),B()}),ae=()=>{var Te,Ee;ur.current!==!0&&($!=null&&((Te=$.dataset).isScrolling??(Te.isScrolling="")),O!=null&&((Ee=O.dataset).isScrolling??(Ee.isScrolling="")),_.current=!0,b!=null&&clearTimeout(b),b=setTimeout(()=>{$!=null&&delete $.dataset.isScrolling,O!=null&&delete O.dataset.isScrolling,_.current=!1,_n(St=>St+1),b=null},50))};let W=null;const he=()=>{O!=null&&delete O.dataset.overlayReveal,W!=null&&(clearTimeout(W),W=null)},Oe=()=>{O==null||ur.current===!0||A.scrollTop>0||(O.dataset.overlayReveal="true",W!=null&&clearTimeout(W),W=setTimeout(()=>{he()},200))},Le=()=>{if(B(),A.scrollTop>0&&he(),Bn.current!=null&&_.current&&Ti.current(),ur.current===!0){_.current=!1;return}at(Te=>Te==null?Te:null),ae()},Pe=()=>{ae(),Oe()},ct=new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"," ","Spacebar"]),bn=Te=>{ct.has(Te.key)&&Pe()};A.addEventListener("scroll",Le,{passive:!0}),A.addEventListener("wheel",Pe,{passive:!0}),A.addEventListener("touchmove",Pe,{passive:!0}),A.addEventListener("keydown",bn);const He=typeof ResizeObserver<"u"?new ResizeObserver(Te=>{const Ee=Te[0]==null?null:Vv(Te[0]);oe.current=Ee??$s(A,C),B()}):null;return He==null||He.observe(A),()=>{le.current=()=>{},X(),A.removeEventListener("scroll",Le),A.removeEventListener("wheel",Pe),A.removeEventListener("touchmove",Pe),A.removeEventListener("keydown",bn),b!=null&&clearTimeout(b),W!=null&&clearTimeout(W),$!=null&&delete $.dataset.isScrolling,O!=null&&(delete O.dataset.isScrolling,delete O.dataset.overlayReveal),_.current=!1,oe.current=null,He==null||He.disconnect()}},[e,C,l,d,v]),Wt(()=>{vt||ye==null||_t(!1)},[_t,vt,ye]);const Is=Tr(()=>ye==null?null:`${ye.path}::${ye.source}`,[ye]);Wt(()=>{var B,X,ae,W;if(Is==null){y==null||y.clearSlotContent(Bo);return}const b=Bn.current;if(b==null)return;const A=k.current??I.current;if(A==null)return;const $={anchorElement:A,anchorRect:b.anchorRect??l2(A.getBoundingClientRect()),close:he=>{Ti.current((he==null?void 0:he.restoreFocus)??!0,b.token)},restoreFocus:()=>{var he;mr.current&&_i.current(((he=Bn.current)==null?void 0:he.path)??null)}},O=((X=(B=t==null?void 0:t.contextMenu)==null?void 0:B.render)==null?void 0:X.call(B,b.item,$))??null;return y==null||y.setSlotContent(Bo,O),(W=(ae=t==null?void 0:t.contextMenu)==null?void 0:ae.onOpen)==null||W.call(ae,b.item,$),Nd(O),queueMicrotask(()=>{O==null||!O.isConnected||document.activeElement===O&&Nd(O)}),()=>{y==null||y.clearSlotContent(Bo)}},[Is,t==null?void 0:t.contextMenu,y]),Wt(()=>{ye!=null&&e.getItem(ye.path)==null&&_t()},[_t,ye,e]),Wt(()=>{var B;if(ye==null)return;const b=(B=z.current)==null?void 0:B.getRootNode(),A=b instanceof ShadowRoot?b.host:z.current,$=X=>{var W;const ae=X.target;ae instanceof Node&&(Ad(X)||((W=I.current)==null?void 0:W.contains(ae))!==!0&&(A==null?void 0:A.contains(ae))!==!0&&_t())},O=X=>{X.key==="Escape"&&(X.preventDefault(),X.stopPropagation(),_t())};return document.addEventListener("mousedown",$,!0),document.addEventListener("keydown",O,!0),()=>{document.removeEventListener("mousedown",$,!0),document.removeEventListener("keydown",O,!0)}},[_t,ye]),Wt(()=>{const b=V.current,A=z.current;if(b==null||A==null){_e.current=ve;return}const $=ve==null?null:be.current.get(ve)??null,O=Bs(A),B=(O==null?void 0:O.dataset.itemPath)??null,X=Kr&&L.current===O,ae=f&&J.current===O,W=Je.current&&!hn,he=At.current??0,Oe=rn.current,Le=jt.current,Pe=Tn.current,ct=En.current,bn=O!=null,He=ue.current||bn,Te=_e.current!==ve,Ee=Le!=null&&Le===ve&&ve!=null;let St=!1,Di=!1;if(Lt!=null&&Lt.id!==Se.current){Se.current=Lt.id;const Dl=Lt.visibleIndex,Tc=e.getVisibleRows(Dl,Dl)[0]??null;if(Tc!=null){const np=v?Math.max(0,Math.min(Tc.ancestorPaths.length*l,Math.max(0,bt-l))):Wn;St=!0,Di=Bv(b,Dl,l,bt,kt,Lt.offset,np)}e.clearScrollRequest(Lt.id)}const As=!St&&W&&zo(b,De,l,bt,kt,he),Ue=!St&&Oe!=null&&Oe===ve&&zo(b,De,l,bt,kt,Wn),Li=!St&&Pe!=null&&Pe.path===ve&&zo(b,De,l,bt,kt,Pe.viewportOffset),_c=!St&&ct!=null&&ct.path===ve&&b.scrollTop!==ct.scrollTop;if(_c&&(b.scrollTop=ct.scrollTop),(_c||Di||Ue||Li||As||He&&Te&&Oe!==ve&&!Ee&&fd(b,De,l,bt,Wn))&&le.current(),St){_e.current=ve;return}if(!He){_e.current=ve;return}if(X){_e.current=ve;return}if(ae&&!W){_e.current=ve;return}if($==null){W&&De>=0&&(zo(b,De,l,bt,kt,he),le.current()),_e.current=ve;return}(Te||W||Oe===ve||Le===ve||(Pe==null?void 0:Pe.path)===ve||(ct==null?void 0:ct.path)===ve||B==null||B!==ve)&&(Bi($),Oe===ve&&(rn.current=null),Le===ve&&(jt.current=null),(Pe==null?void 0:Pe.path)===ve&&(Tn.current=null),(ct==null?void 0:ct.path)===ve&&(En.current=null),Je.current=!1,At.current=null),_e.current=ve},[e,De,ve,Rn,l,Kr,hn,qt,bt,f,Lt,v,Wn,kt,Xr]);const Tl=De>=0&&De>=nt.visible.startIndex&&De<=nt.visible.endIndex,Mi=ve!=null&&Zr.some(b=>Wi(b.row)===ve),El=Tl||Mi,ks=Un&&ue.current===!0&&El?ve:null,ti=nn==="pointer"?re:null,Kn=(ye==null?void 0:ye.path)??Ur.current??ti??ks??re,_o=(ye==null?void 0:ye.source)==="right-click";Wt(()=>{_.current&&ye==null||br(sn(Kn))},[ye,sn,qt,bt,gs,Zr,Kn,br,Xr]);const Al=xt(b=>{var X,ae,W;if(_.current||Ad(b))return;const A=b.target;if(!(A instanceof HTMLElement)||((X=A.closest)==null?void 0:X.call(A,'[data-type="context-menu-trigger"]'))!=null)return;const $=(ae=A.closest)==null?void 0:ae.call(A,'[data-file-tree-sticky-row="true"]'),O=(W=A.closest)==null?void 0:W.call(A,'[data-type="item"]'),B=$ instanceof HTMLElement?$.dataset.fileTreeStickyPath??null:O instanceof HTMLElement?O.dataset.itemPath??null:null;B!=null&&Bt(he=>he==="pointer"?he:"pointer"),at(he=>he===B?he:B)},[]),_s=xt(()=>{at(null)},[]);Wt(()=>{if(!fn)return;const b=()=>{Qr(),e.cancelDrag()};return window.addEventListener("dragend",b),()=>{window.removeEventListener("dragend",b),Qr(),e.cancelDrag()}},[e,fn]);const Rl=b=>{var O;if(!fn||e.getDragSession()==null||ge.current)return;const A=_d(b.target instanceof HTMLElement?b.target:null);e.setDragTarget(A);const $=((O=e.getDragSession())==null?void 0:O.target)??null;ko($),Jr(b.clientX,b.clientY),b.dataTransfer!=null&&(b.dataTransfer.dropEffect="move"),b.preventDefault()},Pl=b=>{var $;if(!fn||e.getDragSession()==null||ge.current)return;const A=b.relatedTarget;A instanceof Node&&(($=z.current)==null?void 0:$.contains(A))===!0||(gn(),Pn(),e.setDragTarget(null))},Ts=b=>{!fn||e.getDragSession()==null||ge.current||(b.preventDefault(),Ri(b.clientX,b.clientY),e.completeDrag(),Gn(),gn(),Pn(),st.current=null)},ni=nt.window.height,To=nt.window.offsetTop,Eo=Math.min(0,bt-ni),Ao=Math.min(0,bt-ni-Wn),Ml=ne===ve||Je.current,N=ve!=null&&Ml&&!Rn&&De>=0?Xr[De]??e.getVisibleRows(De,De)[0]??null:null,p=N==null?null:pd(De,l,qt,ni),w=st.current,T=An!=null&&w!=null&&w.path===An&&w.index>=qt.start&&w.index<=qt.end,M=An!=null&&w!=null&&w.path===An&&!T&&w.path!==(N==null?void 0:N.path)?w:null,j=M==null?null:pd(M.index,l,qt,ni),Z=i2(((kc=De>=0?Xr[De]??e.getVisibleRows(De,De)[0]??null:null)==null?void 0:kc.ancestorPaths.at(-1))??null),ee=hn&&ve!=null?Vf(s,ve,!Rn):void 0,Re=(ye==null?void 0:ye.path)??(hn?ve:ne),mn=(ye==null?void 0:ye.path)??re,Tt=sn(Kn),Nt=vt&&Un&&!_o&&!Kr&&Tt!=null&&we!=null&&Kn!=null,Yn=vt&&(Nt||ye!=null),ze=ye==null?void 0:ye.anchorRect,vr=ze==null&&Tt!=null&&we!=null&&(ye!=null||Nt)?we:null,Zf=ze!=null?{left:`${ze.left}px`,position:"fixed",right:"auto",top:`${ze.top}px`}:vr!=null?{top:`${vr}px`}:void 0,Qf=_o?{opacity:"0"}:void 0,Jf=xt((b,A,$,O)=>{const B=Uv({event:{ctrlKey:b.ctrlKey,metaKey:b.metaKey,shiftKey:b.shiftKey},isDirectory:A.kind==="directory",mode:O}),X=B.toggleDirectory&&A.kind==="directory",ae=X?e.resolveMountedDirectoryPathFromInput($):null;if(X&&ae==null)return;const W=ae??$;switch(B.selection.kind){case"range":e.selectPathRange(W,B.selection.additive);break;case"toggle":e.togglePathSelectionFromInput(W);break;case"single":e.selectOnlyMountedPathFromInput(W)}const he=b.currentTarget instanceof HTMLElement?b.currentTarget:null,Oe=A.index>=nt.visible.startIndex&&A.index<=nt.visible.endIndex,Le=O==="flow"&&Oe&&he!=null&&he.dataset.itemParked!=="true";e.focusMountedPathFromInput(W),Le&&(ue.current=!0,pe(Pe=>Pe===W?Pe:W),Bt("focus")),X&&e.toggleMountedDirectoryFromInput(W),B.revealCanonical&&Ei(W,{targetOffset:"sticky-parents"})},[e,hn,nt.visible.endIndex,nt.visible.startIndex,Ei]),ep=()=>{if(_.current||!Un||Kn==null||Tt==null)return;const b=e.getItem(Kn);if(b==null)return;br(Tt),mr.current=!0;const A=b.getPath();qr({anchorRect:null,item:{kind:b.isDirectory()?"directory":"file",name:Tt.getAttribute("aria-label")??Kn,path:A},path:A,source:"button",token:$t(A,"button")})},Es={contextHoverPath:mn,contextMenuButtonTriggerEnabled:Un,contextMenuButtonVisibility:So,contextMenuEnabled:vt,contextMenuRightClickEnabled:bs,contextMenuTriggerMode:qn,controller:e,directoriesWithGitChanges:i,dragAndDropEnabled:fn,draggedPathSet:Xe,dragTarget:Yr,gitLaneActive:wi,gitStatusByPath:n,handleRowDragEnd:yr,handleRowDragStart:Cs,handleRowTouchStart:ei,ignoredGitDirectories:r,ignoredInheritanceCache:Vn,instanceId:s,itemHeight:l,labels:a,onKeyDown:Ut,onRowClick:Jf,openContextMenuForRow:xs,registerButton:Si,registerRenameInput:on,renameView:Gr,renderDecorationForRow:Co,resolveIcon:xo,shouldSuppressContextMenu:ws,visualFocusPath:Re},tp={...Es,registerButton:xi};return U("div",{ref:z,id:ys,"data-file-tree-context-menu-button-visibility":vt&&Un?So:void 0,"data-file-tree-context-menu-trigger-mode":vt?qn:void 0,"data-file-tree-has-context-menu-action-lane":vt&&Un?"true":void 0,"data-file-tree-has-git-lane":wi?"true":void 0,"data-file-tree-virtualized-root":"true",onDragLeave:fn?Pl:void 0,onDragOver:fn?Rl:void 0,onDrop:fn?Ts:void 0,onKeyDown:Ut,onPointerLeave:vt?_s:void 0,onPointerOver:vt?Al:void 0,role:"tree",tabIndex:-1,style:{outline:"none",position:"relative"},children:[U("style",{"data-file-tree-guide-style":"true",dangerouslySetInnerHTML:{__html:Z}}),U("slot",{name:hl,"data-type":"header-slot"}),f?U("div",{"data-file-tree-search-container":!0,"data-open":hn?"true":"false",children:U("input",{ref:J,"aria-activedescendant":ee,"aria-controls":ys,placeholder:a.searchPlaceholder,"data-file-tree-search-input":!0,"data-file-tree-search-input-fake-focus":ms?"true":void 0,value:wo,onBlur:()=>{g==="retain"&&!vi.current||e.closeSearch()},onFocus:Wr,onPointerDown:Wr,onInput:b=>{Wr();const A=b.currentTarget;e.setSearch(A.value)}})}):null,U("div",{ref:V,"data-file-tree-virtualized-scroll":"true",children:[v&&fr&&Zr.length>0?U("div",{"aria-hidden":"true","data-file-tree-sticky-overlay":"true",children:U("div",{"data-file-tree-sticky-overlay-content":"true",style:{height:`${vs}px`},children:Zr.map((b,A)=>rl(tp,b.row,`sticky:${Wi(b.row)}`,{mode:"sticky",style:{left:"0",position:"absolute",right:"0",top:`${b.top}px`,zIndex:`${Zr.length-A}`}}))})}):null,U("div",{ref:P,"data-file-tree-virtualized-list":"true",style:{height:`${kt}px`},children:[U("div",{"data-file-tree-virtualized-sticky-offset":"true","aria-hidden":"true",style:{height:`${To}px`}}),U("div",{"data-file-tree-virtualized-sticky":"true",style:{height:`${ni}px`,top:`${Eo}px`,bottom:`${Ao}px`},children:[g2(Es,qt,Ii),N!=null&&p!=null?rl(Es,N,`parked:${N.path}`,{isParked:!0,style:{left:"0",opacity:"0",pointerEvents:An===N.path?"none":void 0,position:"absolute",right:"0",top:`${p}px`}}):null,M!=null&&j!=null?rl(Es,M,`parked-drag:${M.path}`,{isParked:!0,style:{left:"0",opacity:"0",pointerEvents:"none",position:"absolute",right:"0",top:`${j}px`}}):null]})]})]}),vt?U("div",{ref:I,"data-type":"context-menu-anchor","data-visible":Yn?"true":"false",style:Zf,children:[U("button",{ref:k,type:"button","data-type":Nm,"aria-label":a.contextMenuTrigger,"aria-haspopup":"menu","aria-expanded":ye!=null?"true":"false","data-visible":Nt?"true":"false",onMouseDown:b=>{b.preventDefault()},onClick:b=>{if(b.preventDefault(),b.stopPropagation(),ye!=null){_t();return}ep()},tabIndex:-1,style:Qf,children:U(Go,{...xo("file-tree-icon-ellipsis")})}),ye!=null?U("slot",{name:Bo}):null]}):null,ye!=null?U("div",{"data-type":"context-menu-wash","aria-hidden":"true",onMouseDownCapture:b=>{b.preventDefault(),_t()},onTouchStartCapture:b=>{b.preventDefault(),b.stopPropagation(),_t()},onTouchMoveCapture:b=>{b.preventDefault(),b.stopPropagation()},onWheelCapture:b=>{b.preventDefault(),b.stopPropagation()}}):null]})}const yc={hydrateRoot:(t,e)=>{gv(Da(Fd,e),t)},renderRoot:(t,e)=>{Na(Da(Fd,e),t)},unmountRoot:t=>{Na(null,t)}};function Fi(t,e){yc.renderRoot(t,e)}function m2(t,e){yc.hydrateRoot(t,e)}function b2(t){yc.unmountRoot(t)}var Ot,Vr,tn,il,Uo,Bf,$d,y2=($d=class{constructor(){H(this,tn);H(this,Ot,new Map);H(this,Vr,null)}clearAll(){for(const t of c(this,Ot).values())t.remove();c(this,Ot).clear()}clearSlotContent(t){const e=x(this,tn,il).call(this,t);e!=null&&(e.remove(),c(this,Ot).delete(t))}setHost(t){if(E(this,Vr,t),t!=null){x(this,tn,Bf).call(this,t);for(const[e,n]of c(this,Ot))x(this,tn,Uo).call(this,e,n)}}setSlotContent(t,e){const n=x(this,tn,il).call(this,t);if(n===e){e!=null&&(c(this,Ot).set(t,e),x(this,tn,Uo).call(this,t,e));return}if(n==null||n.remove(),e==null){c(this,Ot).delete(t);return}c(this,Ot).set(t,e),x(this,tn,Uo).call(this,t,e)}setSlotHtml(t,e){const n=(e==null?void 0:e.trim())??"";if(n.length===0){this.setSlotContent(t,null);return}const r=x(this,tn,il).call(this,t);if(r!=null&&r.innerHTML===n){c(this,Ot).set(t,r),x(this,tn,Uo).call(this,t,r);return}const i=document.createElement("div");i.innerHTML=n,this.setSlotContent(t,i)}},Ot=new WeakMap,Vr=new WeakMap,tn=new WeakSet,il=function(t){const e=c(this,Ot).get(t)??null;if(e!=null)return e;const n=c(this,Vr);if(n==null)return null;for(const r of Array.from(n.children))if(r instanceof HTMLElement&&r.dataset.fileTreeManagedSlot===t)return r;return null},Uo=function(t,e){e.slot=t,e.dataset.fileTreeManagedSlot=t,c(this,Vr)!=null&&e.parentNode!==c(this,Vr)&&c(this,Vr).appendChild(e)},Bf=function(t){for(const e of Array.from(t.children)){if(!(e instanceof HTMLElement))continue;const n=e.dataset.fileTreeManagedSlot;n==null||c(this,Ot).has(n)||c(this,Ot).set(n,e)}},$d);let zd=0;function v2(t){return t!=null&&t.length>0?t:(zd+=1,`pst_ft_${zd}`)}function S2({initialVisibleRowCount:t,itemHeight:e}){return t==null?420:Math.max(0,t)*(e??Zh)}function Od(t){if(typeof document>"u")return;const e=document.createElement("div");e.innerHTML=t;const n=e.querySelector("svg");return n instanceof SVGElement?n:void 0}function Hd(t){return t.querySelector("#file-tree-icon-chevron")instanceof SVGElement&&t.querySelector("#file-tree-icon-file")instanceof SVGElement&&t.querySelector("#file-tree-icon-dot")instanceof SVGElement&&t.querySelector("#file-tree-icon-lock")instanceof SVGElement}function Vd(t){return Array.from(t.children).filter(e=>e instanceof SVGElement)}var Ql,nr,me,rr,to,ss,ls,as,cs,us,ir,or,sr,cn,Qt,lr,no,ar,Jt,ro,io,oo,wt,so,lo,de,$f,kr,$i,Ba,jf,ol,qf,Uf,Wf,Gf,$a,ja,Kf,Yf,x2=(Ql=class{constructor(e){H(this,de);H(this,nr);H(this,me);H(this,rr);H(this,to);H(this,ss);H(this,ls);H(this,as);H(this,cs);H(this,us);H(this,ir,new y2);H(this,or);H(this,sr);H(this,cn);H(this,Qt);H(this,lr);H(this,no);H(this,ar);H(this,Jt);H(this,ro);H(this,io);H(this,oo,null);H(this,wt);H(this,so,!1);H(this,lo,!1);const{composition:n,density:r,fileTreeSearchMode:i,gitStatus:o,id:s,initialSearchQuery:l,icons:a,itemHeight:d,labels:u,onSearchChange:h,onSelectionChange:g,overscan:f,renderRowDecoration:m,renaming:y,search:v,searchBlurBehavior:C,searchFakeFocus:I,stickyFolders:k,unsafeCSS:_,initialVisibleRowCount:P,...L}=e;E(this,nr,n),E(this,rr,v2(s)),E(this,Qt,rd(o)),E(this,lr,a),E(this,no,ku(u)),E(this,ar,_),E(this,to,g),E(this,ss,m),E(this,ls,y!=null&&y!==!1),E(this,as,C),E(this,cs,v===!0),E(this,us,I===!0),E(this,or,_y(r,d)),E(this,sr,{itemHeight:c(this,or).itemHeight,overscan:f,stickyFolders:k,initialVisibleRowCount:P}),E(this,me,new tv({...L,fileTreeSearchMode:i,initialSearchQuery:l,onSearchChange:h,renaming:y})),E(this,io,c(this,me).getSelectionVersion()),E(this,oo,c(this,to)==null?null:this.subscribe(()=>{x(this,de,jf).call(this)}))}unmount(){c(this,wt)!=null&&(b2(c(this,wt)),delete c(this,wt).dataset.fileTreeVirtualizedWrapper,E(this,wt,void 0)),c(this,ir).clearAll(),c(this,ir).setHost(null),c(this,cn)!=null&&(delete c(this,cn).dataset.fileTreeVirtualized,x(this,de,Yf).call(this,c(this,cn)),E(this,cn,void 0))}cleanUp(){var e;this.unmount(),(e=c(this,oo))==null||e.call(this),E(this,oo,null),c(this,me).destroy()}getFileTreeContainer(){return c(this,cn)}getItem(e){return c(this,me).getItem(e)}getFocusedItem(){return c(this,me).getFocusedItem()}getFocusedPath(){return c(this,me).getFocusedPath()}getFocusedIndex(){return c(this,me).getFocusedIndex()}getVisibleCount(){return c(this,me).getVisibleCount()}getVisibleRows(e,n){return c(this,me).getVisibleRows(e,n)}getSelectedPaths(){return c(this,me).getSelectedPaths()}getComposition(){return c(this,nr)}getItemHeight(){return c(this,or).itemHeight}getDensityFactor(){return c(this,or).factor}subscribe(e){let n=!1;return c(this,me).subscribe(()=>{if(!n){n=!0;return}e()})}focusPath(e){c(this,me).focusPath(e)}focusFirstItem(){c(this,me).focusFirstItem()}focusLastItem(){c(this,me).focusLastItem()}focusNextItem(){c(this,me).focusNextItem()}focusPreviousItem(){c(this,me).focusPreviousItem()}focusParentItem(){c(this,me).focusParentItem()}scrollToPath(e,n){c(this,me).scrollToPath(e,n)}focusNearestPath(e){return c(this,me).focusNearestPath(e)}add(e){c(this,me).add(e)}batch(e){c(this,me).batch(e)}applyGitStatusPatch(e){const n=ov(c(this,Qt),e);if(n===c(this,Qt))return;E(this,Qt,n);const r=x(this,de,$i).call(this);r!=null&&Fi(r.wrapper,x(this,de,kr).call(this))}move(e,n,r){c(this,me).move(e,n,r)}onMutation(e,n){return c(this,me).onMutation(e,n)}setSearch(e){c(this,me).setSearch(e)}openSearch(e){c(this,me).openSearch(e)}closeSearch(){c(this,me).closeSearch()}isSearchOpen(){return c(this,me).isSearchOpen()}getSearchValue(){return c(this,me).getSearchValue()}getSearchMatchingPaths(){return c(this,me).getSearchMatchingPaths()}focusNextSearchMatch(){c(this,me).focusNextSearchMatch()}focusPreviousSearchMatch(){c(this,me).focusPreviousSearchMatch()}startRenaming(e,n){return c(this,me).startRenaming(e,n)}remove(e,n){c(this,me).remove(e,n)}resetPaths(e,n){Array.isArray(e)?c(this,me).resetPaths(e,n):c(this,me).resetPaths(e)}setComposition(e){E(this,nr,e);const n=x(this,de,$i).call(this);n!=null&&(x(this,de,ol).call(this),Fi(n.wrapper,x(this,de,kr).call(this)))}setGitStatus(e){const n=rd(e,c(this,Qt));if(n===c(this,Qt))return;E(this,Qt,n);const r=x(this,de,$i).call(this);r!=null&&Fi(r.wrapper,x(this,de,kr).call(this))}setIcons(e){E(this,lr,e);const n=x(this,de,$i).call(this);n!=null&&(x(this,de,Ba).call(this,n.host,n.wrapper),Fi(n.wrapper,x(this,de,kr).call(this)))}setLabels(e){E(this,no,ku(e));const n=x(this,de,$i).call(this);n!=null&&Fi(n.wrapper,x(this,de,kr).call(this))}hydrate({fileTreeContainer:e}){const n=x(this,de,ja).call(this,e),r=x(this,de,$a).call(this,n);x(this,de,ol).call(this),m2(r,x(this,de,kr).call(this))}render({containerWrapper:e,fileTreeContainer:n}){const r=x(this,de,ja).call(this,n??c(this,cn),e),i=x(this,de,$a).call(this,r);x(this,de,ol).call(this),Fi(i,x(this,de,kr).call(this))}},nr=new WeakMap,me=new WeakMap,rr=new WeakMap,to=new WeakMap,ss=new WeakMap,ls=new WeakMap,as=new WeakMap,cs=new WeakMap,us=new WeakMap,ir=new WeakMap,or=new WeakMap,sr=new WeakMap,cn=new WeakMap,Qt=new WeakMap,lr=new WeakMap,no=new WeakMap,ar=new WeakMap,Jt=new WeakMap,ro=new WeakMap,io=new WeakMap,oo=new WeakMap,wt=new WeakMap,so=new WeakMap,lo=new WeakMap,de=new WeakSet,$f=function(){return{initialViewportHeight:S2({initialVisibleRowCount:c(this,sr).initialVisibleRowCount,itemHeight:c(this,sr).itemHeight}),itemHeight:c(this,sr).itemHeight,overscan:c(this,sr).overscan,stickyFolders:c(this,sr).stickyFolders}},kr=function(){var e,n,r;return{composition:c(this,nr),controller:c(this,me),gitStatusByPath:(e=c(this,Qt))==null?void 0:e.statusByPath,ignoredGitDirectories:(n=c(this,Qt))==null?void 0:n.ignoredDirectoryPaths,directoriesWithGitChanges:(r=c(this,Qt))==null?void 0:r.directoriesWithChanges,icons:c(this,lr),instanceId:c(this,rr),labels:c(this,no),renamingEnabled:c(this,ls),renderRowDecoration:c(this,ss),searchBlurBehavior:c(this,as),searchEnabled:c(this,cs),searchFakeFocus:c(this,us),slotHost:c(this,ir),...x(this,de,$f).call(this)}},$i=function(){const e=c(this,cn),n=c(this,wt);return e==null||n==null?null:{host:e,wrapper:n}},Ba=function(e,n){const r=e.shadowRoot;r!=null&&(x(this,de,qf).call(this,r),x(this,de,Uf).call(this,r)),x(this,de,Wf).call(this,n)},jf=function(){const e=c(this,to);if(e==null)return;const n=c(this,me).getSelectionVersion();n!==c(this,io)&&(E(this,io,n),e(c(this,me).getSelectedPaths()))},ol=function(){var n,r,i,o;const e=(r=(n=c(this,nr))==null?void 0:n.header)==null?void 0:r.render;if(e!=null){c(this,ir).setSlotContent(hl,e());return}c(this,ir).setSlotHtml(hl,((o=(i=c(this,nr))==null?void 0:i.header)==null?void 0:o.html)??null)},qf=function(e){const n=Vd(e).find(i=>Hd(i)),r=Od(Am(Us(c(this,lr)).set));r!=null&&(n!=null&&n.outerHTML===r.outerHTML||(n!=null?n.replaceWith(r):e.prepend(r)))},Uf=function(e){var l;const n=Vd(e),r=n.find(a=>Hd(a)),i=n.filter(a=>a!==r),o=((l=Us(c(this,lr)).spriteSheet)==null?void 0:l.trim())??"";if(o.length===0){for(const a of i)a.remove();return}const s=Od(o);if(s==null){for(const a of i)a.remove();return}if(!(i.length===1&&i[0].outerHTML===s.outerHTML)){for(const a of i)a.remove();e.appendChild(s)}},Wf=function(e){const n=Us(c(this,lr));n.colored&&Pm(n.set)?e.dataset.fileTreeColoredIcons="true":delete e.dataset.fileTreeColoredIcons},Gf=function(e){var r,i;const n=e.querySelector(`style[${Cu}]`);if(c(this,Jt)==null&&n instanceof HTMLStyleElement&&E(this,Jt,n),c(this,ar)==null||c(this,ar)===""){(r=c(this,Jt))==null||r.remove(),E(this,Jt,void 0),E(this,ro,void 0);return}((i=c(this,Jt))==null?void 0:i.parentNode)===e&&c(this,ro)===c(this,ar)||(c(this,Jt)??E(this,Jt,document.createElement("style")),c(this,Jt).setAttribute(Cu,""),c(this,Jt).parentNode!==e&&e.appendChild(c(this,Jt)),c(this,Jt).textContent=Ty(c(this,ar)),E(this,ro,c(this,ar)))},$a=function(e){if(c(this,wt)!=null)return c(this,wt);const n=e.shadowRoot;if(n==null)throw new Error("FileTree requires a shadow root");const r=Array.from(n.children).filter(o=>o instanceof HTMLDivElement&&typeof o.dataset.fileTreeId=="string"&&o.dataset.fileTreeId.length>0),i=r.find(o=>o.dataset.fileTreeId===c(this,rr))??r[0];return i!=null&&E(this,rr,i.dataset.fileTreeId??c(this,rr)),E(this,wt,i??document.createElement("div")),c(this,wt).dataset.fileTreeId=c(this,rr),c(this,wt).dataset.fileTreeVirtualizedWrapper="true",x(this,de,Ba).call(this,e,c(this,wt)),c(this,wt).parentNode!==n&&n.appendChild(c(this,wt)),c(this,wt)},ja=function(e,n){const r=e??c(this,cn)??document.createElement("file-tree-container");n!=null&&r.parentNode!==n&&n.appendChild(r);const i=r.shadowRoot??r.attachShadow({mode:"open"});return pa(r,i),x(this,de,Gf).call(this,i),r.dataset.fileTreeVirtualized="true",r.style.display="flex",x(this,de,Kf).call(this,r),c(this,ir).setHost(r),E(this,cn,r),r},Kf=function(e){e.style.getPropertyValue("--trees-item-height")===""&&(e.style.setProperty("--trees-item-height",`${String(c(this,or).itemHeight)}px`),E(this,so,!0)),e.style.getPropertyValue("--trees-density-override")===""&&(e.style.setProperty("--trees-density-override",String(c(this,or).factor)),E(this,lo,!0))},Yf=function(e){c(this,so)&&(e.style.removeProperty("--trees-item-height"),E(this,so,!1)),c(this,lo)&&(e.style.removeProperty("--trees-density-override"),E(this,lo,!1))},D(Ql,"LoadedCustomComponent",!0),Ql);const Bd=typeof window>"u"?Y.useEffect:Y.useLayoutEffect;function w2(t,e,n){const r=t!=null?q.jsx("div",{slot:hl,children:t}):null,i=e!=null&&n!=null?q.jsx("div",{slot:Bo,children:e(n.item,n.context)}):null;return r==null&&i==null?null:q.jsxs(q.Fragment,{children:[r,i]})}function C2(t,e){return typeof window>"u"&&e!=null?q.jsxs(q.Fragment,{children:[q.jsx("template",{shadowrootmode:"open",dangerouslySetInnerHTML:{__html:e.shadowHtml}}),t]}):q.jsx(q.Fragment,{children:t})}function I2(t){const e=t.shadowRoot;return(e==null?void 0:e.querySelector("[data-file-tree-id]"))instanceof HTMLElement||(e==null?void 0:e.querySelector("[data-file-tree-id]"))instanceof SVGElement?!0:t.querySelector('template[shadowrootmode="open"]')instanceof HTMLTemplateElement}function k2(t,e,n,r,i){const o={...t??{}};if(e!=null&&delete o.header,n){const s=t==null?void 0:t.contextMenu,l=s==null?void 0:s.onClose,a=s==null?void 0:s.onOpen;o.contextMenu={...s??{},enabled:!0,onClose:()=>{l==null||l(),r()},onOpen:(d,u)=>{i(d,u),a==null||a(d,u)}},delete o.contextMenu.render}return o.header!=null||o.contextMenu!=null?o:void 0}function _2(t){const e=Y.useRef(t.getComposition()),n=Y.useRef(t);return n.current!==t&&(n.current=t,e.current=t.getComposition()),e.current}function T2({header:t,id:e,model:n,preloadedData:r,renderContextMenu:i,...o}){const[s,l]=Y.useState(null),[a,d]=Y.useState(null),u=_2(n),h=i!=null,[g,f]=Y.useState(h);g!==h&&(f(h),s!=null&&l(null));const m=Y.useCallback(()=>{l(null)},[]),y=Y.useCallback((P,L)=>{l({context:L,item:P})},[]),v=Y.useMemo(()=>k2(u,t,h,m,y),[u,m,y,h,t]),C=Y.useCallback(P=>{d(P)},[]);Bd(()=>{n.setComposition(v)},[v,n]),Bd(()=>{if(a!=null)return r!=null&&I2(a)?n.hydrate({fileTreeContainer:a}):n.render({fileTreeContainer:a}),()=>{n.unmount(),n.setComposition(u)}},[u,a,n,r]);const I=C2(w2(t,i,s),r),k=e??(r==null?void 0:r.id),_={"--trees-item-height":`${String(n.getItemHeight())}px`,"--trees-density-override":n.getDensityFactor(),...o.style};return q.jsx(ia,{...o,id:k,ref:C,style:_,suppressHydrationWarning:r!=null,children:I})}function E2(t){const[e]=Y.useState(()=>new x2(t)),n=Y.useRef({timeout:null,model:e});return Y.useEffect(()=>{const{current:r}=n;return r.timeout!=null&&(clearTimeout(r.timeout),r.timeout=null),()=>{r.timeout=setTimeout(()=>r.model.cleanUp(),1)}},[]),{model:e}}const A2=[],Xf=t=>t==="light"?"#ffffff":"#19191b",R2=(t,e)=>({theme:t==="light"?"pierre-light":"pierre-dark",themeType:t,overflow:"scroll",onPostRender:e,unsafeCSS:`:host { --diffs-bg: ${Xf(t)}; } [data-code] { scrollbar-width: none; } [data-code]::-webkit-scrollbar { display: none; }`});function P2({selected:t,contents:e,selectedLines:n,token:r,onClose:i}){const[o,s]=Y.useState(""),[l,a]=Y.useState([]),[d,u]=Y.useState(""),[h,g]=Y.useState(""),[f,m]=Y.useState("");Y.useEffect(()=>{const v=new AbortController;return fetch("/api/targets",{signal:v.signal,headers:{"x-review-token":r}}).then(async C=>{const I=await C.json();if(!C.ok)throw new Error(I.error||"Could not find agent panes");return I.blocks}).then(C=>{a(C),u(I=>C.some(k=>k.id===I)?I:"")}).catch(C=>{v.signal.aborted||g(String(C.message))}),()=>v.abort()},[n,r]);async function y(v=!1){if(!v&&!d)return;const C=e.split(`
1350
+ `).slice(n.start-1,n.end).join(`
1351
+ `),I=`Please review this selected code context.
1352
+ File: ${t}
1353
+ Lines: ${n.start}${n.end===n.start?"":`–${n.end}`}
1354
+
1355
+ \`\`\`
1356
+ ${C}
1357
+ \`\`\`${o.trim()?`
1358
+
1359
+ Question: ${o.trim()}`:""}`;if(v){try{await navigator.clipboard.writeText(I),m(""),g("Copied to clipboard. Paste into your agent.")}catch{m(I),g("Clipboard unavailable. Select and copy the context below.")}return}g("Sending…");try{const k=await fetch("/api/send",{method:"POST",headers:{"content-type":"application/json","x-review-token":r},body:JSON.stringify({blockId:d,message:I})}),_=await k.json();if(!k.ok)throw new Error(_.error||"Delivery failed");s(""),i()}catch(k){g(String(k))}}return q.jsxs("div",{className:`inline-composer ${We(Ge.inlineComposer).className}`,role:"region","aria-label":"Ask Agent about selected lines",children:[q.jsxs("div",{className:`composer-heading ${We(Ge.composerHeading).className}`,children:[q.jsxs("strong",{children:["Ask Agent · ",n.start,n.end!==n.start?`–${n.end}`:""]}),q.jsx("button",{className:`composer-close ${We(Ge.composerClose).className}`,"aria-label":"Close composer",onClick:i,children:"×"})]}),q.jsx("textarea",{"aria-label":"Question for agent",value:o,onChange:v=>s(v.target.value),placeholder:"Ask about these lines…",rows:3}),q.jsxs("div",{className:`composer-actions ${We(Ge.composerActions).className}`,children:[l.length>0&&q.jsx(ig,{ariaLabel:"Target Rex pane",placeholder:"Choose agent pane…",value:d,options:l.map(v=>({value:v.id,label:`${v.agent} · ${v.id.slice(-6)}`})),onChange:u,align:"start",variant:"inline"}),q.jsx("button",{className:`ask-agent-button ${We(Ge.askAgentButton).className}`,onClick:()=>void y(!0),children:"Copy for agent"}),l.length>0&&q.jsx("button",{className:`ask-agent-button ${We(Ge.askAgentButton).className}`,disabled:!l.some(v=>v.id===d),onClick:()=>void y(),children:"Ask Agent"})]}),h&&q.jsx("small",{children:h}),f&&q.jsx("textarea",{"aria-label":"Context to copy",readOnly:!0,value:f,rows:6,onFocus:v=>v.currentTarget.select()})]})}const V2=Y.forwardRef(function({sidebar:e,token:n,active:r,theme:i,repoRevision:o,pendingFile:s,onPendingFileHandled:l,onSelect:a},d){const[u,h]=Y.useState(),[g,f]=Y.useState(""),[m,y]=Y.useState({open:[]}),{open:v,active:C}=m,[I,k]=Y.useState(),[_,P]=Y.useState(""),[L,z]=Y.useState(0),[V,J]=Y.useState(null),[be,se]=Y.useState(!0),[le,oe]=Y.useState(null),[Se,Ce]=Y.useState(0),[K,ue]=Y.useState(0),_e=Y.useRef(null),xe=Y.useRef(-1),Je=Y.useCallback(F=>{var ne;oe(((ne=F.shadowRoot)==null?void 0:ne.querySelector("[data-code]"))??null)},[]);Y.useEffect(()=>{const F=_e.current;if(!le||!F)return;const ne=()=>{const we=le.querySelector("[data-gutter]");ue((we==null?void 0:we.getBoundingClientRect().width)??0);const cr=le.scrollWidth-le.clientWidth;Ce(cr>0?cr+F.clientWidth:0)},pe=()=>{F.scrollLeft=le.scrollLeft},re=new ResizeObserver(ne);re.observe(le),re.observe(F);const at=new MutationObserver(ne);return at.observe(le,{childList:!0,subtree:!0,characterData:!0}),le.addEventListener("scroll",pe,{passive:!0}),ne(),pe(),()=>{re.disconnect(),at.disconnect(),le.removeEventListener("scroll",pe)}},[le]);const At=Y.useRef(null),tt=Y.useCallback(F=>{y(ne=>(ne.active!==F&&J(null),{open:ne.open.includes(F)?ne.open:[...ne.open,F],active:F})),a()},[a]);function ht(F){y(ne=>{const pe=ne.open.indexOf(F);if(pe<0)return ne;const re=ne.open.filter(at=>at!==F);return{open:re,active:ne.active===F?re[pe]??re[pe-1]:ne.active}}),C===F&&(J(null),a())}Y.useEffect(()=>{s&&(tt(s),l==null||l())},[s,tt,l]),Y.useImperativeHandle(d,()=>({openFile:tt,cycleTab(F){v.length&&tt(v[(v.indexOf(C??"")+F+v.length)%v.length])},closeTab(){C&&ht(C)}})),Y.useEffect(()=>{var F;(F=At.current)==null||F.scrollIntoView({block:"nearest",inline:"nearest"})},[C]);const Ke=Y.useCallback((F,ne)=>fetch(F,{signal:ne,headers:{"x-review-token":n}}).then(async pe=>{const re=await pe.json();if(!pe.ok)throw new Error(re.error||"Could not load repository");return re}),[n]),{model:Ye}=E2({paths:[],icons:{set:"standard",colored:!1},initialExpansion:"closed",renaming:!1,dragAndDrop:!1,onSelectionChange:F=>{var pe;const ne=F[F.length-1];ne&&((pe=Ye.getItem(ne))==null?void 0:pe.isDirectory())===!1&&tt(ne)},unsafeCSS:":host { font-family: -apple-system, BlinkMacSystemFont, sans-serif; }"}),ot=Y.useRef("");Y.useEffect(()=>{if(!r&&u||xe.current===o&&u)return;const F=new AbortController;return Ke("/api/files",F.signal).then(ne=>{xe.current=o,h(ne),f(""),z(pe=>pe+1)}).catch(ne=>{F.signal.aborted||f(String(ne.message))}),()=>F.abort()},[r,o,u,Ke]),Y.useEffect(()=>{if(!u)return;const F=JSON.stringify(u.paths);if(F!==ot.current){const pe=Ye.getVisibleRows(0,Ye.getVisibleCount()).filter(re=>re.kind==="directory"&&re.isExpanded).map(re=>re.path);Ye.resetPaths({preparedInput:ky(u.paths),initialExpandedPaths:pe}),ot.current=F}const ne=Object.entries(u.statuses).map(([pe,re])=>({path:pe,status:re==="??"?"untracked":re.includes("D")?"deleted":re.includes("R")?"renamed":re.includes("A")?"added":"modified"}));Ye.setGitStatus(ne)},[u,Ye]);const st=Y.useMemo(()=>JSON.stringify(u==null?void 0:u.paths),[u==null?void 0:u.paths]);Y.useEffect(()=>{if(!u)return;let F=!1;return tg(async()=>{const{materialIcons:ne}=await import("./materialIcons-0T6AU0ht.js");return{materialIcons:ne}},__vite__mapDeps([0,1,2])).then(({materialIcons:ne})=>ne(u.paths)).then(ne=>{F||Ye.setIcons(ne)}).catch(()=>{F||f("Could not load Material file icons.")}),()=>{F=!0}},[st,Ye]),Y.useEffect(()=>{if(!C||/\.(png|jpe?g|gif|webp|avif|svg)$/i.test(C)){k(void 0),P("");return}const F=new AbortController;return P(""),Ke("/api/file?path="+encodeURIComponent(C),F.signal).then(ne=>{F.signal.aborted||k(pe=>(pe==null?void 0:pe.name)===ne.name&&(pe==null?void 0:pe.contents)===ne.contents?pe:ne)}).catch(ne=>{F.signal.aborted||(k(void 0),P(ne.message))}),()=>F.abort()},[C,L,Ke]);const Ae=(I==null?void 0:I.name)===C?I:void 0,ge=!!C&&/\.(png|jpe?g|gif|webp|avif|svg)$/i.test(C),It=!!C&&/\.mdx?$/i.test(C),lt=Y.useMemo(()=>Ae&&It&&be?C0.sanitize(Me.parse(Ae.contents)):"",[Ae,It,be]),Ht=Y.useMemo(()=>({...R2(i,Je),enableLineSelection:!0,onLineSelectionEnd:J}),[i,Je]),Rt=Y.useMemo(()=>V?[{lineNumber:V.end}]:A2,[V]),Vn=Y.useCallback(()=>J(null),[]),Vt=Y.useCallback(F=>C&&Ae&&V&&F.lineNumber===V.end?q.jsx(P2,{selected:C,contents:Ae.contents,selectedLines:V,token:n,onClose:Vn}):null,[C,Ae,V,n,Vn]);return q.jsxs(q.Fragment,{children:[ng.createPortal(q.jsxs("div",{className:`explorer-sidebar ${We(Ge.explorerSidebar).className}`,hidden:!r,children:[g&&q.jsx("p",{role:"alert",children:g}),!u&&!g&&q.jsx("p",{role:"status",children:"Loading repository…"}),(u==null?void 0:u.paths.length)===0&&q.jsx("p",{children:"No repository files."}),q.jsx(T2,{model:Ye,class:`repository-tree ${We(Ge.repositoryTree).className}`,"aria-label":"Repository files",style:{colorScheme:i,"--trees-padding-inline-override":"0px","--trees-theme-sidebar-bg":i==="light"?"#ffffff":"#202022","--trees-theme-sidebar-fg":i==="light"?"#4b4b52":"#bdbdc6","--trees-theme-list-active-selection-bg":i==="light"?"#18181b0d":"#ffffff0b","--trees-theme-list-active-selection-fg":i==="light"?"#222225":"#f0f0f3","--trees-theme-list-hover-bg":i==="light"?"#18181b08":"#ffffff08"}})]}),e),q.jsxs("section",{className:`source-content ${We(Ge.sourceContent).className}`,style:{background:Xf(i)},"aria-label":"File preview",hidden:!r,children:[v.length>0&&q.jsx("nav",{className:`explorer-tabs ${We(Ge.explorerTabs).className}`,"aria-label":"Open files",onWheel:F=>{const ne=F.currentTarget;if(F.ctrlKey||F.deltaX!==0||ne.scrollWidth<=ne.clientWidth)return;const pe=F.deltaMode===1?F.deltaY*16:F.deltaMode===2?F.deltaY*ne.clientWidth:F.deltaY;ne.scrollLeft+=pe},children:v.map(F=>{const ne=F.split("/").at(-1)||F,re=v.some(we=>we!==F&&(we.split("/").at(-1)||we)===ne)?F:ne,at=C===F;return q.jsxs("div",{className:`explorer-tab${at?" is-active":""} ${We(Ge.explorerTab).className}${at?` ${We(Ge.explorerTabActive).className}`:""}`,children:[q.jsx("button",{type:"button",className:`explorer-tab-select ${We(Ge.explorerTabSelect).className}${at?` ${We(Ge.explorerTabLabelActive).className}`:""}`,"aria-current":at?"page":void 0,ref:at?At:void 0,title:F,onClick:()=>tt(F),children:re}),q.jsx("button",{type:"button",className:`explorer-tab-close ${We(Ge.explorerTabClose).className}`,"aria-label":`Close ${re}`,style:at?{opacity:1}:void 0,title:`Close ${re}`,onClick:()=>ht(F),children:q.jsx("svg",{viewBox:"0 0 16 16","aria-hidden":"true",children:q.jsx("path",{d:"m4 4 8 8M12 4l-8 8"})})})]},F)})}),q.jsx(rg,{className:`code-scroll ${We(Ge.codeScroll).className}`,contentClassName:We(Ge.codeScrollContent).className,children:C?ge?q.jsx("img",{className:`repository-image-preview ${We(Ge.repositoryImagePreview).className}`,src:"/api/file-asset?path="+encodeURIComponent(C)+"&token="+encodeURIComponent(n),alt:C}):_?q.jsxs("div",{className:`empty-state ${We(Ge.emptyState).className}`,role:"alert",children:[q.jsx("h1",{children:"Could not preview file"}),q.jsx("p",{children:_})]}):Ae?It&&be?q.jsxs(q.Fragment,{children:[q.jsxs("div",{className:`markdown-preview-toolbar ${We(Ge.markdownPreviewToolbar).className}`,children:[q.jsx("span",{children:C}),q.jsx("button",{onClick:()=>se(!1),children:"Source"})]}),q.jsx("article",{className:`markdown-preview ${We(Ge.markdownPreview).className}`,dangerouslySetInnerHTML:{__html:lt}})]}):q.jsxs(q.Fragment,{children:[q.jsx("div",{className:`source-toolbar ${We(Ge.sourceToolbar).className}`,children:It&&q.jsx("button",{onClick:()=>se(!0),children:"Preview"})}),q.jsx(Rg,{file:Ae,options:Ht,selectedLines:V,lineAnnotations:Rt,renderAnnotation:Vt}),!Ae.contents&&q.jsx("p",{className:"source-empty",children:"This file is empty."})]}):q.jsxs("div",{className:`empty-state ${We(Ge.emptyState).className}`,role:"status",children:["Loading ",C,"…"]}):q.jsxs("div",{className:`empty-state ${We(Ge.emptyState).className}`,children:[q.jsx("h1",{children:"Explore your repository"}),q.jsx("p",{children:"Select a file to read its source."})]})}),q.jsx("div",{ref:_e,className:"source-horizontal-scroll","aria-label":"Scroll file horizontally",tabIndex:0,style:{marginLeft:K,height:C&&!ge&&!_&&Ae&&!(It&&be)&&Se>0?12:0},onScroll:F=>{le&&(le.scrollLeft=F.currentTarget.scrollLeft)},children:q.jsx("div",{style:{width:Se,height:1}})})]})]})});export{V2 as Explorer};