@openspecui/web 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (463) hide show
  1. package/dist/assets/abap-BdImnpbu.js +1 -0
  2. package/dist/assets/actionscript-3-CfeIJUat.js +1 -0
  3. package/dist/assets/ada-bCR0ucgS.js +1 -0
  4. package/dist/assets/andromeeda-C-Jbm3Hp.js +1 -0
  5. package/dist/assets/angular-html-CU67Zn6k.js +1 -0
  6. package/dist/assets/angular-ts-BwZT4LLn.js +1 -0
  7. package/dist/assets/apache-Pmp26Uib.js +1 -0
  8. package/dist/assets/apex-DDbsPZ6N.js +1 -0
  9. package/dist/assets/apl-B4CMkyY2.js +1 -0
  10. package/dist/assets/apl-dKokRX4l.js +1 -0
  11. package/dist/assets/applescript-Co6uUVPk.js +1 -0
  12. package/dist/assets/ara-BRHolxvo.js +1 -0
  13. package/dist/assets/asciiarmor-Df11BRmG.js +1 -0
  14. package/dist/assets/asciidoc-Dv7Oe6Be.js +1 -0
  15. package/dist/assets/asm-D_Q5rh1f.js +1 -0
  16. package/dist/assets/asn1-EdZsLKOL.js +1 -0
  17. package/dist/assets/asterisk-B-8jnY81.js +1 -0
  18. package/dist/assets/astro-CbQHKStN.js +1 -0
  19. package/dist/assets/aurora-x-D-2ljcwZ.js +1 -0
  20. package/dist/assets/awk-DMzUqQB5.js +1 -0
  21. package/dist/assets/ayu-dark-Cv9koXgw.js +1 -0
  22. package/dist/assets/ballerina-BFfxhgS-.js +1 -0
  23. package/dist/assets/bat-BkioyH1T.js +1 -0
  24. package/dist/assets/beancount-k_qm7-4y.js +1 -0
  25. package/dist/assets/berry-uYugtg8r.js +1 -0
  26. package/dist/assets/bibtex-CHM0blh-.js +1 -0
  27. package/dist/assets/bicep-Bmn6On1c.js +1 -0
  28. package/dist/assets/blade-DVc8C-J4.js +1 -0
  29. package/dist/assets/brainfuck-C4LP7Hcl.js +1 -0
  30. package/dist/assets/bsl-BO_Y6i37.js +1 -0
  31. package/dist/assets/c-BIGW1oBm.js +1 -0
  32. package/dist/assets/cadence-Bv_4Rxtq.js +1 -0
  33. package/dist/assets/cairo-KRGpt6FW.js +1 -0
  34. package/dist/assets/catppuccin-frappe-DFWUc33u.js +1 -0
  35. package/dist/assets/catppuccin-latte-C9dUb6Cb.js +1 -0
  36. package/dist/assets/catppuccin-macchiato-DQyhUUbL.js +1 -0
  37. package/dist/assets/catppuccin-mocha-D87Tk5Gz.js +1 -0
  38. package/dist/assets/clarity-D53aC0YG.js +1 -0
  39. package/dist/assets/clike-B9uivgTg.js +1 -0
  40. package/dist/assets/clojure-BMjYHr_A.js +1 -0
  41. package/dist/assets/clojure-P80f7IUj.js +1 -0
  42. package/dist/assets/cmake-BQqOBYOt.js +1 -0
  43. package/dist/assets/cmake-D1j8_8rp.js +1 -0
  44. package/dist/assets/cobol-CWcv1MsR.js +1 -0
  45. package/dist/assets/cobol-nwyudZeR.js +1 -0
  46. package/dist/assets/codeowners-Bp6g37R7.js +1 -0
  47. package/dist/assets/codeql-DsOJ9woJ.js +1 -0
  48. package/dist/assets/coffee-Ch7k5sss.js +1 -0
  49. package/dist/assets/coffeescript-S37ZYGWr.js +1 -0
  50. package/dist/assets/common-lisp-Cg-RD9OK.js +1 -0
  51. package/dist/assets/commonlisp-DBKNyK5s.js +1 -0
  52. package/dist/assets/coq-DkFqJrB1.js +1 -0
  53. package/dist/assets/cpp-CofmeUqb.js +1 -0
  54. package/dist/assets/crystal-SjHAIU92.js +1 -0
  55. package/dist/assets/crystal-tKQVLTB8.js +1 -0
  56. package/dist/assets/csharp-K5feNrxe.js +1 -0
  57. package/dist/assets/css-BnMrqG3P.js +1 -0
  58. package/dist/assets/css-DPfMkruS.js +1 -0
  59. package/dist/assets/csv-fuZLfV_i.js +1 -0
  60. package/dist/assets/cue-D82EKSYY.js +1 -0
  61. package/dist/assets/cypher-COkxafJQ.js +1 -0
  62. package/dist/assets/cypher-C_CwsFkJ.js +1 -0
  63. package/dist/assets/d-85-TOEBH.js +1 -0
  64. package/dist/assets/d-pRatUO7H.js +1 -0
  65. package/dist/assets/dark-plus-C3mMm8J8.js +1 -0
  66. package/dist/assets/dart-CF10PKvl.js +1 -0
  67. package/dist/assets/dax-CEL-wOlO.js +1 -0
  68. package/dist/assets/desktop-BmXAJ9_W.js +1 -0
  69. package/dist/assets/diff-D97Zzqfu.js +1 -0
  70. package/dist/assets/diff-DbItnlRl.js +1 -0
  71. package/dist/assets/docker-BcOcwvcX.js +1 -0
  72. package/dist/assets/dockerfile-BKs6k2Af.js +1 -0
  73. package/dist/assets/dotenv-Da5cRb03.js +1 -0
  74. package/dist/assets/dracula-BzJJZx-M.js +1 -0
  75. package/dist/assets/dracula-soft-BXkSAIEj.js +1 -0
  76. package/dist/assets/dream-maker-BtqSS_iP.js +1 -0
  77. package/dist/assets/dtd-DF_7sFjM.js +1 -0
  78. package/dist/assets/dylan-DwRh75JA.js +1 -0
  79. package/dist/assets/ebnf-CDyGwa7X.js +1 -0
  80. package/dist/assets/ecl-Cabwm37j.js +1 -0
  81. package/dist/assets/edge-BkV0erSs.js +1 -0
  82. package/dist/assets/eiffel-CnydiIhH.js +1 -0
  83. package/dist/assets/elixir-CDX3lj18.js +1 -0
  84. package/dist/assets/elm-DbKCFpqz.js +1 -0
  85. package/dist/assets/elm-vLlmbW-K.js +1 -0
  86. package/dist/assets/emacs-lisp-C9XAeP06.js +1 -0
  87. package/dist/assets/erb-BOJIQeun.js +1 -0
  88. package/dist/assets/erlang-BNw1qcRV.js +1 -0
  89. package/dist/assets/erlang-DsQrWhSR.js +1 -0
  90. package/dist/assets/everforest-dark-BgDCqdQA.js +1 -0
  91. package/dist/assets/everforest-light-C8M2exoo.js +1 -0
  92. package/dist/assets/factor-kuTfRLto.js +1 -0
  93. package/dist/assets/fcl-Kvtd6kyn.js +1 -0
  94. package/dist/assets/fennel-BYunw83y.js +1 -0
  95. package/dist/assets/fish-BvzEVeQv.js +1 -0
  96. package/dist/assets/fluent-C4IJs8-o.js +1 -0
  97. package/dist/assets/forth-Ffai-XNe.js +1 -0
  98. package/dist/assets/fortran-DYz_wnZ1.js +1 -0
  99. package/dist/assets/fortran-fixed-form-BZjJHVRy.js +1 -0
  100. package/dist/assets/fortran-free-form-D22FLkUw.js +1 -0
  101. package/dist/assets/fsharp-CXgrBDvD.js +1 -0
  102. package/dist/assets/gas-Bneqetm1.js +1 -0
  103. package/dist/assets/gdresource-B7Tvp0Sc.js +1 -0
  104. package/dist/assets/gdscript-DTMYz4Jt.js +1 -0
  105. package/dist/assets/gdshader-DkwncUOv.js +1 -0
  106. package/dist/assets/genie-D0YGMca9.js +1 -0
  107. package/dist/assets/gherkin-DyxjwDmM.js +1 -0
  108. package/dist/assets/gherkin-heZmZLOM.js +1 -0
  109. package/dist/assets/git-commit-F4YmCXRG.js +1 -0
  110. package/dist/assets/git-rebase-r7XF79zn.js +1 -0
  111. package/dist/assets/github-dark-DHJKELXO.js +1 -0
  112. package/dist/assets/github-dark-default-Cuk6v7N8.js +1 -0
  113. package/dist/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
  114. package/dist/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
  115. package/dist/assets/github-light-DAi9KRSo.js +1 -0
  116. package/dist/assets/github-light-default-D7oLnXFd.js +1 -0
  117. package/dist/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
  118. package/dist/assets/gleam-BspZqrRM.js +1 -0
  119. package/dist/assets/glimmer-js-Rg0-pVw9.js +1 -0
  120. package/dist/assets/glimmer-ts-U6CK756n.js +1 -0
  121. package/dist/assets/glsl-DplSGwfg.js +1 -0
  122. package/dist/assets/gnuplot-DdkO51Og.js +1 -0
  123. package/dist/assets/go-Dn2_MT6a.js +1 -0
  124. package/dist/assets/graphql-ChdNCCLP.js +1 -0
  125. package/dist/assets/groovy-D9Dt4D0W.js +1 -0
  126. package/dist/assets/groovy-gcz8RCvz.js +1 -0
  127. package/dist/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
  128. package/dist/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
  129. package/dist/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
  130. package/dist/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
  131. package/dist/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
  132. package/dist/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
  133. package/dist/assets/hack-CaT9iCJl.js +1 -0
  134. package/dist/assets/haml-B8DHNrY2.js +1 -0
  135. package/dist/assets/handlebars-BL8al0AC.js +1 -0
  136. package/dist/assets/haskell-Cw1EW3IL.js +1 -0
  137. package/dist/assets/haskell-Df6bDoY_.js +1 -0
  138. package/dist/assets/haxe-CzTSHFRz.js +1 -0
  139. package/dist/assets/haxe-H-WmDvRZ.js +1 -0
  140. package/dist/assets/hcl-BWvSN4gD.js +1 -0
  141. package/dist/assets/hjson-D5-asLiD.js +1 -0
  142. package/dist/assets/hlsl-D3lLCCz7.js +1 -0
  143. package/dist/assets/houston-DnULxvSX.js +1 -0
  144. package/dist/assets/html-GMplVEZG.js +1 -0
  145. package/dist/assets/html-derivative-BFtXZ54Q.js +1 -0
  146. package/dist/assets/http-DBlCnlav.js +1 -0
  147. package/dist/assets/http-jrhK8wxY.js +1 -0
  148. package/dist/assets/hurl-irOxFIW8.js +1 -0
  149. package/dist/assets/hxml-Bvhsp5Yf.js +1 -0
  150. package/dist/assets/hy-DFXneXwc.js +1 -0
  151. package/dist/assets/idl-BEugSyMb.js +1 -0
  152. package/dist/assets/imba-DGztddWO.js +1 -0
  153. package/dist/assets/index-8c6bEJ99.js +1 -0
  154. package/dist/assets/index-AbWe21oh.js +2 -0
  155. package/dist/assets/index-ArhptQw0.js +1 -0
  156. package/dist/assets/index-B1hpa--1.js +3 -0
  157. package/dist/assets/index-Bafja8o4.js +1 -0
  158. package/dist/assets/index-Bp00uZNc.js +1 -0
  159. package/dist/assets/index-BsTieXqQ.js +1 -0
  160. package/dist/assets/index-BvGAWAqS.js +1 -0
  161. package/dist/assets/index-CCfVkFzN.js +1 -0
  162. package/dist/assets/index-D-Urq2hl.css +1 -0
  163. package/dist/assets/index-D3mXuuih.js +1 -0
  164. package/dist/assets/index-DFOLYN6W.js +1 -0
  165. package/dist/assets/index-DpxkOmNJ.js +7 -0
  166. package/dist/assets/index-YZ-iXB95.js +309 -0
  167. package/dist/assets/index-eA_XNQ_L.js +1 -0
  168. package/dist/assets/index-ftYom_wU.js +1 -0
  169. package/dist/assets/index-gvPT4BlL.js +1 -0
  170. package/dist/assets/ini-BEwlwnbL.js +1 -0
  171. package/dist/assets/java-CylS5w8V.js +1 -0
  172. package/dist/assets/javascript-iXu5QeM3.js +1 -0
  173. package/dist/assets/javascript-wDzz0qaB.js +1 -0
  174. package/dist/assets/jinja-4LBKfQ-Z.js +1 -0
  175. package/dist/assets/jison-wvAkD_A8.js +1 -0
  176. package/dist/assets/json-Cp-IABpG.js +1 -0
  177. package/dist/assets/json5-C9tS-k6U.js +1 -0
  178. package/dist/assets/jsonc-Des-eS-w.js +1 -0
  179. package/dist/assets/jsonl-DcaNXYhu.js +1 -0
  180. package/dist/assets/jsonnet-DFQXde-d.js +1 -0
  181. package/dist/assets/jssm-C2t-YnRu.js +1 -0
  182. package/dist/assets/jsx-g9-lgVsj.js +1 -0
  183. package/dist/assets/julia-C8NyazO9.js +1 -0
  184. package/dist/assets/julia-DuME0IfC.js +1 -0
  185. package/dist/assets/kanagawa-dragon-CkXjmgJE.js +1 -0
  186. package/dist/assets/kanagawa-lotus-CfQXZHmo.js +1 -0
  187. package/dist/assets/kanagawa-wave-DWedfzmr.js +1 -0
  188. package/dist/assets/kdl-DV7GczEv.js +1 -0
  189. package/dist/assets/kotlin-BdnUsdx6.js +1 -0
  190. package/dist/assets/kusto-BvAqAH-y.js +1 -0
  191. package/dist/assets/laserwave-DUszq2jm.js +1 -0
  192. package/dist/assets/latex-BdAV_C_H.js +1 -0
  193. package/dist/assets/lean-Bc6EcWN3.js +1 -0
  194. package/dist/assets/less-B1dDrJ26.js +1 -0
  195. package/dist/assets/light-plus-B7mTdjB0.js +1 -0
  196. package/dist/assets/liquid-DYVedYrR.js +1 -0
  197. package/dist/assets/livescript-BwQOo05w.js +1 -0
  198. package/dist/assets/llvm-BtvRca6l.js +1 -0
  199. package/dist/assets/log-2UxHyX5q.js +1 -0
  200. package/dist/assets/logo-BtOb2qkB.js +1 -0
  201. package/dist/assets/lua-BbnMAYS6.js +1 -0
  202. package/dist/assets/lua-BgMRiT3U.js +1 -0
  203. package/dist/assets/luau-CXu1NL6O.js +1 -0
  204. package/dist/assets/make-CHLpvVh8.js +1 -0
  205. package/dist/assets/markdown-Cvjx9yec.js +1 -0
  206. package/dist/assets/marko-CPi9NSCl.js +1 -0
  207. package/dist/assets/material-theme-D5KoaKCx.js +1 -0
  208. package/dist/assets/material-theme-darker-BfHTSMKl.js +1 -0
  209. package/dist/assets/material-theme-lighter-B0m2ddpp.js +1 -0
  210. package/dist/assets/material-theme-ocean-CyktbL80.js +1 -0
  211. package/dist/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
  212. package/dist/assets/mathematica-DTrFuWx2.js +1 -0
  213. package/dist/assets/matlab-D7o27uSR.js +1 -0
  214. package/dist/assets/mbox-CNhZ1qSd.js +1 -0
  215. package/dist/assets/mdc-DUICxH0z.js +1 -0
  216. package/dist/assets/mdx-Cmh6b_Ma.js +1 -0
  217. package/dist/assets/mermaid-DKYwYmdq.js +1 -0
  218. package/dist/assets/min-dark-CafNBF8u.js +1 -0
  219. package/dist/assets/min-light-CTRr51gU.js +1 -0
  220. package/dist/assets/mipsasm-CKIfxQSi.js +1 -0
  221. package/dist/assets/mirc-CjQqDB4T.js +1 -0
  222. package/dist/assets/mllike-CXdrOF99.js +1 -0
  223. package/dist/assets/modelica-Dc1JOy9r.js +1 -0
  224. package/dist/assets/mojo-1DNp92w6.js +1 -0
  225. package/dist/assets/monokai-D4h5O-jR.js +1 -0
  226. package/dist/assets/move-Bu9oaDYs.js +1 -0
  227. package/dist/assets/mscgen-BA5vi2Kp.js +1 -0
  228. package/dist/assets/mumps-BT43cFF4.js +1 -0
  229. package/dist/assets/narrat-DRg8JJMk.js +1 -0
  230. package/dist/assets/nextflow-BrzmwbiE.js +1 -0
  231. package/dist/assets/nginx-DdIZxoE0.js +1 -0
  232. package/dist/assets/nginx-DknmC5AR.js +1 -0
  233. package/dist/assets/night-owl-C39BiMTA.js +1 -0
  234. package/dist/assets/nim-CVrawwO9.js +1 -0
  235. package/dist/assets/nix-c8nO5XWb.js +1 -0
  236. package/dist/assets/nord-Ddv68eIx.js +1 -0
  237. package/dist/assets/nsis-LdVXkNf5.js +1 -0
  238. package/dist/assets/ntriples-BfvgReVJ.js +1 -0
  239. package/dist/assets/nushell-C-sUppwS.js +1 -0
  240. package/dist/assets/objective-c-DXmwc3jG.js +1 -0
  241. package/dist/assets/objective-cpp-CLxacb5B.js +1 -0
  242. package/dist/assets/ocaml-C0hk2d4L.js +1 -0
  243. package/dist/assets/octave-Ck1zUtKM.js +1 -0
  244. package/dist/assets/one-dark-pro-DVMEJ2y_.js +1 -0
  245. package/dist/assets/one-light-PoHY5YXO.js +1 -0
  246. package/dist/assets/openscad-C4EeE6gA.js +1 -0
  247. package/dist/assets/oz-BzwKVEFT.js +1 -0
  248. package/dist/assets/pascal--L3eBynH.js +1 -0
  249. package/dist/assets/pascal-D93ZcfNL.js +1 -0
  250. package/dist/assets/perl-C0TMdlhV.js +1 -0
  251. package/dist/assets/perl-CdXCOZ3F.js +1 -0
  252. package/dist/assets/php-CDn_0X-4.js +1 -0
  253. package/dist/assets/pig-CevX1Tat.js +1 -0
  254. package/dist/assets/pkl-u5AG7uiY.js +1 -0
  255. package/dist/assets/plastic-3e1v2bzS.js +1 -0
  256. package/dist/assets/plsql-ChMvpjG-.js +1 -0
  257. package/dist/assets/po-BTJTHyun.js +1 -0
  258. package/dist/assets/poimandres-CS3Unz2-.js +1 -0
  259. package/dist/assets/polar-C0HS_06l.js +1 -0
  260. package/dist/assets/postcss-CXtECtnM.js +1 -0
  261. package/dist/assets/powerquery-CEu0bR-o.js +1 -0
  262. package/dist/assets/powershell-CFHJl5sT.js +1 -0
  263. package/dist/assets/powershell-Dpen1YoG.js +1 -0
  264. package/dist/assets/prisma-Dd19v3D-.js +1 -0
  265. package/dist/assets/prolog-CbFg5uaA.js +1 -0
  266. package/dist/assets/properties-C78fOPTZ.js +1 -0
  267. package/dist/assets/proto-DyJlTyXw.js +1 -0
  268. package/dist/assets/protobuf-ChK-085T.js +1 -0
  269. package/dist/assets/pug-CGlum2m_.js +1 -0
  270. package/dist/assets/pug-DeIclll2.js +1 -0
  271. package/dist/assets/puppet-BMWR74SV.js +1 -0
  272. package/dist/assets/puppet-DMA9R1ak.js +1 -0
  273. package/dist/assets/purescript-CklMAg4u.js +1 -0
  274. package/dist/assets/python-B6aJPvgy.js +1 -0
  275. package/dist/assets/python-BuPzkPfP.js +1 -0
  276. package/dist/assets/q-pXgVlZs6.js +1 -0
  277. package/dist/assets/qml-3beO22l8.js +1 -0
  278. package/dist/assets/qmldir-C8lEn-DE.js +1 -0
  279. package/dist/assets/qss-IeuSbFQv.js +1 -0
  280. package/dist/assets/r-B6wPVr8A.js +1 -0
  281. package/dist/assets/r-DiinP2Uv.js +1 -0
  282. package/dist/assets/racket-BqYA7rlc.js +1 -0
  283. package/dist/assets/raku-DXvB9xmW.js +1 -0
  284. package/dist/assets/razor-CE9lU5zL.js +1 -0
  285. package/dist/assets/red-bN70gL4F.js +1 -0
  286. package/dist/assets/reg-C-SQnVFl.js +1 -0
  287. package/dist/assets/regexp-CDVJQ6XC.js +1 -0
  288. package/dist/assets/rel-C3B-1QV4.js +1 -0
  289. package/dist/assets/riscv-BM1_JUlF.js +1 -0
  290. package/dist/assets/rose-pine-dawn-DHQR4-dF.js +1 -0
  291. package/dist/assets/rose-pine-moon-D4_iv3hh.js +1 -0
  292. package/dist/assets/rose-pine-qdsjHGoJ.js +1 -0
  293. package/dist/assets/rosmsg-BJDFO7_C.js +1 -0
  294. package/dist/assets/rpm-CTu-6PCP.js +1 -0
  295. package/dist/assets/rst-B0xPkSld.js +1 -0
  296. package/dist/assets/ruby-B2Rjki9n.js +1 -0
  297. package/dist/assets/ruby-BvKwtOVI.js +1 -0
  298. package/dist/assets/rust-B1yitclQ.js +1 -0
  299. package/dist/assets/sas-B4kiWyti.js +1 -0
  300. package/dist/assets/sas-cz2c8ADy.js +1 -0
  301. package/dist/assets/sass-Cj5Yp3dK.js +1 -0
  302. package/dist/assets/scala-C151Ov-r.js +1 -0
  303. package/dist/assets/scheme-C41bIUwD.js +1 -0
  304. package/dist/assets/scheme-C98Dy4si.js +1 -0
  305. package/dist/assets/scss-OYdSNvt2.js +1 -0
  306. package/dist/assets/sdbl-DVxCFoDh.js +1 -0
  307. package/dist/assets/shaderlab-Dg9Lc6iA.js +1 -0
  308. package/dist/assets/shell-CjFT_Tl9.js +1 -0
  309. package/dist/assets/shellscript-Yzrsuije.js +1 -0
  310. package/dist/assets/shellsession-BADoaaVG.js +1 -0
  311. package/dist/assets/sieve-C3Gn_uJK.js +1 -0
  312. package/dist/assets/simple-mode-GW_nhZxv.js +1 -0
  313. package/dist/assets/slack-dark-BthQWCQV.js +1 -0
  314. package/dist/assets/slack-ochin-DqwNpetd.js +1 -0
  315. package/dist/assets/smalltalk-BERRCDM3.js +1 -0
  316. package/dist/assets/smalltalk-CnHTOXQT.js +1 -0
  317. package/dist/assets/snazzy-light-Bw305WKR.js +1 -0
  318. package/dist/assets/solarized-dark-DXbdFlpD.js +1 -0
  319. package/dist/assets/solarized-light-L9t79GZl.js +1 -0
  320. package/dist/assets/solidity-rGO070M0.js +1 -0
  321. package/dist/assets/solr-DehyRSwq.js +1 -0
  322. package/dist/assets/soy-Brmx7dQM.js +1 -0
  323. package/dist/assets/sparql-DkYu6x3z.js +1 -0
  324. package/dist/assets/sparql-rVzFXLq3.js +1 -0
  325. package/dist/assets/splunk-BtCnVYZw.js +1 -0
  326. package/dist/assets/spreadsheet-BCZA_wO0.js +1 -0
  327. package/dist/assets/sql-BLtJtn59.js +1 -0
  328. package/dist/assets/sql-D0XecflT.js +1 -0
  329. package/dist/assets/ssh-config-_ykCGR6B.js +1 -0
  330. package/dist/assets/stata-BH5u7GGu.js +1 -0
  331. package/dist/assets/stex-C3f8Ysf7.js +1 -0
  332. package/dist/assets/stylus-B533Al4x.js +1 -0
  333. package/dist/assets/stylus-BEDo0Tqx.js +1 -0
  334. package/dist/assets/svelte-3Dk4HxPD.js +1 -0
  335. package/dist/assets/swift-BzpIVaGY.js +1 -0
  336. package/dist/assets/swift-Dg5xB15N.js +1 -0
  337. package/dist/assets/synthwave-84-CbfX1IO0.js +1 -0
  338. package/dist/assets/system-verilog-CnnmHF94.js +1 -0
  339. package/dist/assets/systemd-4A_iFExJ.js +1 -0
  340. package/dist/assets/talonscript-CkByrt1z.js +1 -0
  341. package/dist/assets/tasl-QIJgUcNo.js +1 -0
  342. package/dist/assets/tcl-DVfN8rqt.js +1 -0
  343. package/dist/assets/tcl-dwOrl1Do.js +1 -0
  344. package/dist/assets/templ-W15q3VgB.js +1 -0
  345. package/dist/assets/terraform-BETggiCN.js +1 -0
  346. package/dist/assets/tex-CxkMU7Pf.js +1 -0
  347. package/dist/assets/textile-CnDTJFAw.js +1 -0
  348. package/dist/assets/tiddlywiki-DO-Gjzrf.js +1 -0
  349. package/dist/assets/tiki-DGYXhP31.js +1 -0
  350. package/dist/assets/tokyo-night-hegEt444.js +1 -0
  351. package/dist/assets/toml-Bm5Em-hy.js +1 -0
  352. package/dist/assets/toml-vGWfd6FD.js +1 -0
  353. package/dist/assets/troff-wAsdV37c.js +1 -0
  354. package/dist/assets/ts-tags-zn1MmPIZ.js +1 -0
  355. package/dist/assets/tsv-B_m7g4N7.js +1 -0
  356. package/dist/assets/tsx-COt5Ahok.js +1 -0
  357. package/dist/assets/ttcn-CfJYG6tj.js +1 -0
  358. package/dist/assets/ttcn-cfg-B9xdYoR4.js +1 -0
  359. package/dist/assets/turtle-B1tBg_DP.js +1 -0
  360. package/dist/assets/turtle-BsS91CYL.js +1 -0
  361. package/dist/assets/twig-CO9l9SDP.js +1 -0
  362. package/dist/assets/typescript-BPQ3VLAy.js +1 -0
  363. package/dist/assets/typespec-BGHnOYBU.js +1 -0
  364. package/dist/assets/typst-DHCkPAjA.js +1 -0
  365. package/dist/assets/v-BcVCzyr7.js +1 -0
  366. package/dist/assets/vala-CsfeWuGM.js +1 -0
  367. package/dist/assets/vb-CmGdzxic.js +1 -0
  368. package/dist/assets/vb-D17OF-Vu.js +1 -0
  369. package/dist/assets/vbscript-BuJXcnF6.js +1 -0
  370. package/dist/assets/velocity-D8B20fx6.js +1 -0
  371. package/dist/assets/verilog-BQ8w6xss.js +1 -0
  372. package/dist/assets/verilog-C6RDOZhf.js +1 -0
  373. package/dist/assets/vesper-DU1UobuO.js +1 -0
  374. package/dist/assets/vhdl-CeAyd5Ju.js +1 -0
  375. package/dist/assets/vhdl-lSbBsy5d.js +1 -0
  376. package/dist/assets/viml-CJc9bBzg.js +1 -0
  377. package/dist/assets/vitesse-black-Bkuqu6BP.js +1 -0
  378. package/dist/assets/vitesse-dark-D0r3Knsf.js +1 -0
  379. package/dist/assets/vitesse-light-CVO1_9PV.js +1 -0
  380. package/dist/assets/vue-DnHKYNfI.js +1 -0
  381. package/dist/assets/vue-html-CChd_i61.js +1 -0
  382. package/dist/assets/vue-vine-8moa0y9V.js +1 -0
  383. package/dist/assets/vyper-CDx5xZoG.js +1 -0
  384. package/dist/assets/wasm-CG6Dc4jp.js +1 -0
  385. package/dist/assets/wasm-MzD3tlZU.js +1 -0
  386. package/dist/assets/webidl-ZXfAyPTL.js +1 -0
  387. package/dist/assets/wenyan-BV7otONQ.js +1 -0
  388. package/dist/assets/wgsl-Dx-B1_4e.js +1 -0
  389. package/dist/assets/wikitext-BhOHFoWU.js +1 -0
  390. package/dist/assets/wit-5i3qLPDT.js +1 -0
  391. package/dist/assets/wolfram-lXgVvXCa.js +1 -0
  392. package/dist/assets/xml-sdJ4AIDG.js +1 -0
  393. package/dist/assets/xquery-DzFWVndE.js +1 -0
  394. package/dist/assets/xsl-CtQFsRM5.js +1 -0
  395. package/dist/assets/yacas-BJ4BC0dw.js +1 -0
  396. package/dist/assets/yaml-Buea-lGh.js +1 -0
  397. package/dist/assets/z80-Hz9HOZM7.js +1 -0
  398. package/dist/assets/zenscript-DVFEvuxE.js +1 -0
  399. package/dist/assets/zig-VOosw3JB.js +1 -0
  400. package/dist/index.html +47 -0
  401. package/dist/logo.svg +8 -0
  402. package/dist/openspec_pixel_dark.svg +89 -0
  403. package/dist/openspec_pixel_light.svg +89 -0
  404. package/index.html +46 -0
  405. package/package.json +66 -0
  406. package/src/App.tsx +124 -0
  407. package/src/components/StaticModeBanner.tsx +46 -0
  408. package/src/components/change-overview.tsx +156 -0
  409. package/src/components/cli-terminal.tsx +93 -0
  410. package/src/components/code-editor.tsx +232 -0
  411. package/src/components/copyable-path.tsx +44 -0
  412. package/src/components/dialog.tsx +193 -0
  413. package/src/components/folder-editor-viewer.tsx +411 -0
  414. package/src/components/global-archive-modal.tsx +205 -0
  415. package/src/components/layout/desktop-sidebar.tsx +48 -0
  416. package/src/components/layout/index.ts +6 -0
  417. package/src/components/layout/mobile-header.tsx +91 -0
  418. package/src/components/layout/mobile-tabbar.tsx +20 -0
  419. package/src/components/layout/nav-items.ts +33 -0
  420. package/src/components/layout/root-layout.tsx +67 -0
  421. package/src/components/layout/status-bar.tsx +69 -0
  422. package/src/components/markdown-content.tsx +104 -0
  423. package/src/components/markdown-viewer.tsx +415 -0
  424. package/src/components/path-marquee.tsx +104 -0
  425. package/src/components/tabs.tsx +151 -0
  426. package/src/components/tasks-view.test.tsx +45 -0
  427. package/src/components/tasks-view.tsx +209 -0
  428. package/src/components/toc-context.tsx +177 -0
  429. package/src/components/toc.tsx +290 -0
  430. package/src/entry-client.tsx +47 -0
  431. package/src/index.css +481 -0
  432. package/src/lib/api-config.ts +72 -0
  433. package/src/lib/archive-modal-context.tsx +45 -0
  434. package/src/lib/codemirror-markdown-preview.ts +494 -0
  435. package/src/lib/format-time.ts +51 -0
  436. package/src/lib/shiki-highlighter.ts +47 -0
  437. package/src/lib/static-data-provider.ts +386 -0
  438. package/src/lib/static-mode.ts +158 -0
  439. package/src/lib/trpc.ts +107 -0
  440. package/src/lib/use-cli-runner.tsx +433 -0
  441. package/src/lib/use-dark-mode.ts +28 -0
  442. package/src/lib/use-server-status.ts +208 -0
  443. package/src/lib/use-subscription.ts +375 -0
  444. package/src/lib/use-tabs-status-by-query.ts +78 -0
  445. package/src/main.tsx +9 -0
  446. package/src/routes/archive-list.tsx +65 -0
  447. package/src/routes/archive-view.tsx +116 -0
  448. package/src/routes/change-list.tsx +63 -0
  449. package/src/routes/change-view.tsx +188 -0
  450. package/src/routes/dashboard.tsx +204 -0
  451. package/src/routes/project.tsx +272 -0
  452. package/src/routes/settings.tsx +816 -0
  453. package/src/routes/spec-list.tsx +49 -0
  454. package/src/routes/spec-view.tsx +164 -0
  455. package/src/ssg/entry-server.tsx +111 -0
  456. package/src/ssg/index.ts +6 -0
  457. package/src/ssg/prerender.ts +111 -0
  458. package/src/ssg/static-data-context.tsx +49 -0
  459. package/src/ssg/types.ts +5 -0
  460. package/src/test/setup.ts +1 -0
  461. package/src/vite-env.d.ts +6 -0
  462. package/tsconfig.json +18 -0
  463. package/vite.config.ts +58 -0
@@ -0,0 +1,309 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-DVc8C-J4.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-BOJIQeun.js","assets/ruby-BvKwtOVI.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-BZjJHVRy.js","assets/fortran-free-form-D22FLkUw.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-C8NyazO9.js","assets/r-DiinP2Uv.js","assets/latex-BdAV_C_H.js","assets/tex-CxkMU7Pf.js","assets/liquid-DYVedYrR.js","assets/marko-CPi9NSCl.js","assets/less-B1dDrJ26.js","assets/mdc-DUICxH0z.js","assets/nginx-DknmC5AR.js","assets/nim-CVrawwO9.js","assets/perl-C0TMdlhV.js","assets/php-CDn_0X-4.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-CE9lU5zL.js","assets/csharp-K5feNrxe.js","assets/rst-B0xPkSld.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-3Dk4HxPD.js","assets/templ-W15q3VgB.js","assets/go-Dn2_MT6a.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-CO9l9SDP.js","assets/vue-DnHKYNfI.js","assets/vue-html-CChd_i61.js","assets/vue-vine-8moa0y9V.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js","assets/dockerfile-BKs6k2Af.js","assets/simple-mode-GW_nhZxv.js","assets/factor-kuTfRLto.js","assets/nsis-LdVXkNf5.js","assets/pug-DeIclll2.js","assets/javascript-iXu5QeM3.js"])))=>i.map(i=>d[i]);
2
+ (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerPolicy&&(s.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?s.credentials="include":r.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=n(r);fetch(r.href,s)}})();function cv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Q0={exports:{}},au={};var iP;function A3(){if(iP)return au;iP=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(i,r,s){var o=null;if(s!==void 0&&(o=""+s),r.key!==void 0&&(o=""+r.key),"key"in r){s={};for(var l in r)l!=="key"&&(s[l]=r[l])}else s=r;return r=s.ref,{$$typeof:t,type:i,key:o,ref:r!==void 0?r:null,props:s}}return au.Fragment=e,au.jsx=n,au.jsxs=n,au}var rP;function R3(){return rP||(rP=1,Q0.exports=A3()),Q0.exports}var v=R3(),E0={exports:{}},lu={},A0={exports:{}},R0={};var sP;function L3(){return sP||(sP=1,(function(t){function e(Z,J){var ce=Z.length;Z.push(J);e:for(;0<ce;){var Oe=ce-1>>>1,L=Z[Oe];if(0<r(L,J))Z[Oe]=J,Z[ce]=L,ce=Oe;else break e}}function n(Z){return Z.length===0?null:Z[0]}function i(Z){if(Z.length===0)return null;var J=Z[0],ce=Z.pop();if(ce!==J){Z[0]=ce;e:for(var Oe=0,L=Z.length,N=L>>>1;Oe<N;){var te=2*(Oe+1)-1,R=Z[te],fe=te+1,_e=Z[fe];if(0>r(R,ce))fe<L&&0>r(_e,R)?(Z[Oe]=_e,Z[fe]=ce,Oe=fe):(Z[Oe]=R,Z[te]=ce,Oe=te);else if(fe<L&&0>r(_e,ce))Z[Oe]=_e,Z[fe]=ce,Oe=fe;else break e}}return J}function r(Z,J){var ce=Z.sortIndex-J.sortIndex;return ce!==0?ce:Z.id-J.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var c=[],h=[],d=1,p=null,g=3,O=!1,x=!1,S=!1,k=!1,_=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function D(Z){for(var J=n(h);J!==null;){if(J.callback===null)i(h);else if(J.startTime<=Z)i(h),J.sortIndex=J.expirationTime,e(c,J);else break;J=n(h)}}function j(Z){if(S=!1,D(Z),!x)if(n(c)!==null)x=!0,A||(A=!0,H());else{var J=n(h);J!==null&&Y(j,J.startTime-Z)}}var A=!1,M=-1,I=5,B=-1;function $(){return k?!0:!(t.unstable_now()-B<I)}function U(){if(k=!1,A){var Z=t.unstable_now();B=Z;var J=!0;try{e:{x=!1,S&&(S=!1,T(M),M=-1),O=!0;var ce=g;try{t:{for(D(Z),p=n(c);p!==null&&!(p.expirationTime>Z&&$());){var Oe=p.callback;if(typeof Oe=="function"){p.callback=null,g=p.priorityLevel;var L=Oe(p.expirationTime<=Z);if(Z=t.unstable_now(),typeof L=="function"){p.callback=L,D(Z),J=!0;break t}p===n(c)&&i(c),D(Z)}else i(c);p=n(c)}if(p!==null)J=!0;else{var N=n(h);N!==null&&Y(j,N.startTime-Z),J=!1}}break e}finally{p=null,g=ce,O=!1}J=void 0}}finally{J?H():A=!1}}}var H;if(typeof C=="function")H=function(){C(U)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,F=oe.port2;oe.port1.onmessage=U,H=function(){F.postMessage(null)}}else H=function(){_(U,0)};function Y(Z,J){M=_(function(){Z(t.unstable_now())},J)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(Z){Z.callback=null},t.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<Z?Math.floor(1e3/Z):5},t.unstable_getCurrentPriorityLevel=function(){return g},t.unstable_next=function(Z){switch(g){case 1:case 2:case 3:var J=3;break;default:J=g}var ce=g;g=J;try{return Z()}finally{g=ce}},t.unstable_requestPaint=function(){k=!0},t.unstable_runWithPriority=function(Z,J){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var ce=g;g=Z;try{return J()}finally{g=ce}},t.unstable_scheduleCallback=function(Z,J,ce){var Oe=t.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?Oe+ce:Oe):ce=Oe,Z){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=ce+L,Z={id:d++,callback:J,priorityLevel:Z,startTime:ce,expirationTime:L,sortIndex:-1},ce>Oe?(Z.sortIndex=ce,e(h,Z),n(c)===null&&Z===n(h)&&(S?(T(M),M=-1):S=!0,Y(j,ce-Oe))):(Z.sortIndex=L,e(c,Z),x||O||(x=!0,A||(A=!0,H()))),Z},t.unstable_shouldYield=$,t.unstable_wrapCallback=function(Z){var J=g;return function(){var ce=g;g=J;try{return Z.apply(this,arguments)}finally{g=ce}}}})(R0)),R0}var oP;function $3(){return oP||(oP=1,A0.exports=L3()),A0.exports}var L0={exports:{}},De={};var aP;function M3(){if(aP)return De;aP=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function O(N){return N===null||typeof N!="object"?null:(N=g&&N[g]||N["@@iterator"],typeof N=="function"?N:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,k={};function _(N,te,R){this.props=N,this.context=te,this.refs=k,this.updater=R||x}_.prototype.isReactComponent={},_.prototype.setState=function(N,te){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,te,"setState")},_.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function T(){}T.prototype=_.prototype;function C(N,te,R){this.props=N,this.context=te,this.refs=k,this.updater=R||x}var D=C.prototype=new T;D.constructor=C,S(D,_.prototype),D.isPureReactComponent=!0;var j=Array.isArray;function A(){}var M={H:null,A:null,T:null,S:null},I=Object.prototype.hasOwnProperty;function B(N,te,R){var fe=R.ref;return{$$typeof:t,type:N,key:te,ref:fe!==void 0?fe:null,props:R}}function $(N,te){return B(N.type,te,N.props)}function U(N){return typeof N=="object"&&N!==null&&N.$$typeof===t}function H(N){var te={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(R){return te[R]})}var oe=/\/+/g;function F(N,te){return typeof N=="object"&&N!==null&&N.key!=null?H(""+N.key):te.toString(36)}function Y(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(A,A):(N.status="pending",N.then(function(te){N.status==="pending"&&(N.status="fulfilled",N.value=te)},function(te){N.status==="pending"&&(N.status="rejected",N.reason=te)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function Z(N,te,R,fe,_e){var xe=typeof N;(xe==="undefined"||xe==="boolean")&&(N=null);var Re=!1;if(N===null)Re=!0;else switch(xe){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(N.$$typeof){case t:case e:Re=!0;break;case d:return Re=N._init,Z(Re(N._payload),te,R,fe,_e)}}if(Re)return _e=_e(N),Re=fe===""?"."+F(N,0):fe,j(_e)?(R="",Re!=null&&(R=Re.replace(oe,"$&/")+"/"),Z(_e,te,R,"",function(Ht){return Ht})):_e!=null&&(U(_e)&&(_e=$(_e,R+(_e.key==null||N&&N.key===_e.key?"":(""+_e.key).replace(oe,"$&/")+"/")+Re)),te.push(_e)),1;Re=0;var et=fe===""?".":fe+":";if(j(N))for(var $e=0;$e<N.length;$e++)fe=N[$e],xe=et+F(fe,$e),Re+=Z(fe,te,R,xe,_e);else if($e=O(N),typeof $e=="function")for(N=$e.call(N),$e=0;!(fe=N.next()).done;)fe=fe.value,xe=et+F(fe,$e++),Re+=Z(fe,te,R,xe,_e);else if(xe==="object"){if(typeof N.then=="function")return Z(Y(N),te,R,fe,_e);throw te=String(N),Error("Objects are not valid as a React child (found: "+(te==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":te)+"). If you meant to render a collection of children, use an array instead.")}return Re}function J(N,te,R){if(N==null)return N;var fe=[],_e=0;return Z(N,fe,"","",function(xe){return te.call(R,xe,_e++)}),fe}function ce(N){if(N._status===-1){var te=N._result;te=te(),te.then(function(R){(N._status===0||N._status===-1)&&(N._status=1,N._result=R)},function(R){(N._status===0||N._status===-1)&&(N._status=2,N._result=R)}),N._status===-1&&(N._status=0,N._result=te)}if(N._status===1)return N._result.default;throw N._result}var Oe=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var te=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(te))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},L={map:J,forEach:function(N,te,R){J(N,function(){te.apply(this,arguments)},R)},count:function(N){var te=0;return J(N,function(){te++}),te},toArray:function(N){return J(N,function(te){return te})||[]},only:function(N){if(!U(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return De.Activity=p,De.Children=L,De.Component=_,De.Fragment=n,De.Profiler=r,De.PureComponent=C,De.StrictMode=i,De.Suspense=c,De.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,De.__COMPILER_RUNTIME={__proto__:null,c:function(N){return M.H.useMemoCache(N)}},De.cache=function(N){return function(){return N.apply(null,arguments)}},De.cacheSignal=function(){return null},De.cloneElement=function(N,te,R){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var fe=S({},N.props),_e=N.key;if(te!=null)for(xe in te.key!==void 0&&(_e=""+te.key),te)!I.call(te,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&te.ref===void 0||(fe[xe]=te[xe]);var xe=arguments.length-2;if(xe===1)fe.children=R;else if(1<xe){for(var Re=Array(xe),et=0;et<xe;et++)Re[et]=arguments[et+2];fe.children=Re}return B(N.type,_e,fe)},De.createContext=function(N){return N={$$typeof:o,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:s,_context:N},N},De.createElement=function(N,te,R){var fe,_e={},xe=null;if(te!=null)for(fe in te.key!==void 0&&(xe=""+te.key),te)I.call(te,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(_e[fe]=te[fe]);var Re=arguments.length-2;if(Re===1)_e.children=R;else if(1<Re){for(var et=Array(Re),$e=0;$e<Re;$e++)et[$e]=arguments[$e+2];_e.children=et}if(N&&N.defaultProps)for(fe in Re=N.defaultProps,Re)_e[fe]===void 0&&(_e[fe]=Re[fe]);return B(N,xe,_e)},De.createRef=function(){return{current:null}},De.forwardRef=function(N){return{$$typeof:l,render:N}},De.isValidElement=U,De.lazy=function(N){return{$$typeof:d,_payload:{_status:-1,_result:N},_init:ce}},De.memo=function(N,te){return{$$typeof:h,type:N,compare:te===void 0?null:te}},De.startTransition=function(N){var te=M.T,R={};M.T=R;try{var fe=N(),_e=M.S;_e!==null&&_e(R,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(A,Oe)}catch(xe){Oe(xe)}finally{te!==null&&R.types!==null&&(te.types=R.types),M.T=te}},De.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},De.use=function(N){return M.H.use(N)},De.useActionState=function(N,te,R){return M.H.useActionState(N,te,R)},De.useCallback=function(N,te){return M.H.useCallback(N,te)},De.useContext=function(N){return M.H.useContext(N)},De.useDebugValue=function(){},De.useDeferredValue=function(N,te){return M.H.useDeferredValue(N,te)},De.useEffect=function(N,te){return M.H.useEffect(N,te)},De.useEffectEvent=function(N){return M.H.useEffectEvent(N)},De.useId=function(){return M.H.useId()},De.useImperativeHandle=function(N,te,R){return M.H.useImperativeHandle(N,te,R)},De.useInsertionEffect=function(N,te){return M.H.useInsertionEffect(N,te)},De.useLayoutEffect=function(N,te){return M.H.useLayoutEffect(N,te)},De.useMemo=function(N,te){return M.H.useMemo(N,te)},De.useOptimistic=function(N,te){return M.H.useOptimistic(N,te)},De.useReducer=function(N,te,R){return M.H.useReducer(N,te,R)},De.useRef=function(N){return M.H.useRef(N)},De.useState=function(N){return M.H.useState(N)},De.useSyncExternalStore=function(N,te,R){return M.H.useSyncExternalStore(N,te,R)},De.useTransition=function(){return M.H.useTransition()},De.version="19.2.0",De}var lP;function Dh(){return lP||(lP=1,L0.exports=M3()),L0.exports}var $0={exports:{}},pn={};var cP;function D3(){if(cP)return pn;cP=1;var t=Dh();function e(c){var h="https://react.dev/errors/"+c;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)h+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+c+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},r=Symbol.for("react.portal");function s(c,h,d){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:p==null?null:""+p,children:c,containerInfo:h,implementation:d}}var o=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(c,h){if(c==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return pn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,pn.createPortal=function(c,h){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(e(299));return s(c,h,null,d)},pn.flushSync=function(c){var h=o.T,d=i.p;try{if(o.T=null,i.p=2,c)return c()}finally{o.T=h,i.p=d,i.d.f()}},pn.preconnect=function(c,h){typeof c=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(c,h))},pn.prefetchDNS=function(c){typeof c=="string"&&i.d.D(c)},pn.preinit=function(c,h){if(typeof c=="string"&&h&&typeof h.as=="string"){var d=h.as,p=l(d,h.crossOrigin),g=typeof h.integrity=="string"?h.integrity:void 0,O=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;d==="style"?i.d.S(c,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:O}):d==="script"&&i.d.X(c,{crossOrigin:p,integrity:g,fetchPriority:O,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},pn.preinitModule=function(c,h){if(typeof c=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var d=l(h.as,h.crossOrigin);i.d.M(c,{crossOrigin:d,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(c)},pn.preload=function(c,h){if(typeof c=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var d=h.as,p=l(d,h.crossOrigin);i.d.L(c,d,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},pn.preloadModule=function(c,h){if(typeof c=="string")if(h){var d=l(h.as,h.crossOrigin);i.d.m(c,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:d,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(c)},pn.requestFormReset=function(c){i.d.r(c)},pn.unstable_batchedUpdates=function(c,h){return c(h)},pn.useFormState=function(c,h,d){return o.H.useFormState(c,h,d)},pn.useFormStatus=function(){return o.H.useHostTransitionStatus()},pn.version="19.2.0",pn}var uP;function p2(){if(uP)return $0.exports;uP=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),$0.exports=D3(),$0.exports}var hP;function j3(){if(hP)return lu;hP=1;var t=$3(),e=Dh(),n=p2();function i(a){var u="https://react.dev/errors/"+a;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)u+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+a+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function s(a){var u=a,f=a;if(a.alternate)for(;u.return;)u=u.return;else{a=u;do u=a,(u.flags&4098)!==0&&(f=u.return),a=u.return;while(a)}return u.tag===3?f:null}function o(a){if(a.tag===13){var u=a.memoizedState;if(u===null&&(a=a.alternate,a!==null&&(u=a.memoizedState)),u!==null)return u.dehydrated}return null}function l(a){if(a.tag===31){var u=a.memoizedState;if(u===null&&(a=a.alternate,a!==null&&(u=a.memoizedState)),u!==null)return u.dehydrated}return null}function c(a){if(s(a)!==a)throw Error(i(188))}function h(a){var u=a.alternate;if(!u){if(u=s(a),u===null)throw Error(i(188));return u!==a?null:a}for(var f=a,m=u;;){var y=f.return;if(y===null)break;var b=y.alternate;if(b===null){if(m=y.return,m!==null){f=m;continue}break}if(y.child===b.child){for(b=y.child;b;){if(b===f)return c(y),a;if(b===m)return c(y),u;b=b.sibling}throw Error(i(188))}if(f.return!==m.return)f=y,m=b;else{for(var w=!1,Q=y.child;Q;){if(Q===f){w=!0,f=y,m=b;break}if(Q===m){w=!0,m=y,f=b;break}Q=Q.sibling}if(!w){for(Q=b.child;Q;){if(Q===f){w=!0,f=b,m=y;break}if(Q===m){w=!0,m=b,f=y;break}Q=Q.sibling}if(!w)throw Error(i(189))}}if(f.alternate!==m)throw Error(i(190))}if(f.tag!==3)throw Error(i(188));return f.stateNode.current===f?a:u}function d(a){var u=a.tag;if(u===5||u===26||u===27||u===6)return a;for(a=a.child;a!==null;){if(u=d(a),u!==null)return u;a=a.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),O=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),C=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),U=Symbol.iterator;function H(a){return a===null||typeof a!="object"?null:(a=U&&a[U]||a["@@iterator"],typeof a=="function"?a:null)}var oe=Symbol.for("react.client.reference");function F(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===oe?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case S:return"Fragment";case _:return"Profiler";case k:return"StrictMode";case j:return"Suspense";case A:return"SuspenseList";case B:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case x:return"Portal";case C:return a.displayName||"Context";case T:return(a._context.displayName||"Context")+".Consumer";case D:var u=a.render;return a=a.displayName,a||(a=u.displayName||u.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case M:return u=a.displayName||null,u!==null?u:F(a.type)||"Memo";case I:u=a._payload,a=a._init;try{return F(a(u))}catch{}}return null}var Y=Array.isArray,Z=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},Oe=[],L=-1;function N(a){return{current:a}}function te(a){0>L||(a.current=Oe[L],Oe[L]=null,L--)}function R(a,u){L++,Oe[L]=a.current,a.current=u}var fe=N(null),_e=N(null),xe=N(null),Re=N(null);function et(a,u){switch(R(xe,u),R(_e,a),R(fe,null),u.nodeType){case 9:case 11:a=(a=u.documentElement)&&(a=a.namespaceURI)?Pw(a):0;break;default:if(a=u.tagName,u=u.namespaceURI)u=Pw(u),a=Tw(u,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}te(fe),R(fe,a)}function $e(){te(fe),te(_e),te(xe)}function Ht(a){a.memoizedState!==null&&R(Re,a);var u=fe.current,f=Tw(u,a.type);u!==f&&(R(_e,a),R(fe,f))}function _n(a){_e.current===a&&(te(fe),te(_e)),Re.current===a&&(te(Re),iu._currentValue=ce)}var dn,xi;function Mn(a){if(dn===void 0)try{throw Error()}catch(f){var u=f.stack.trim().match(/\n( *(at )?)/);dn=u&&u[1]||"",xi=-1<f.stack.indexOf(`
3
+ at`)?" (<anonymous>)":-1<f.stack.indexOf("@")?"@unknown:0:0":""}return`
4
+ `+dn+a+xi}var Ui=!1;function vi(a,u){if(!a||Ui)return"";Ui=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(u){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch(ne){var K=ne}Reflect.construct(a,[],le)}else{try{le.call()}catch(ne){K=ne}a.call(le.prototype)}}else{try{throw Error()}catch(ne){K=ne}(le=a())&&typeof le.catch=="function"&&le.catch(function(){})}}catch(ne){if(ne&&K&&typeof ne.stack=="string")return[ne.stack,K.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=m.DetermineComponentFrameRoot(),w=b[0],Q=b[1];if(w&&Q){var X=w.split(`
5
+ `),W=Q.split(`
6
+ `);for(y=m=0;m<X.length&&!X[m].includes("DetermineComponentFrameRoot");)m++;for(;y<W.length&&!W[y].includes("DetermineComponentFrameRoot");)y++;if(m===X.length||y===W.length)for(m=X.length-1,y=W.length-1;1<=m&&0<=y&&X[m]!==W[y];)y--;for(;1<=m&&0<=y;m--,y--)if(X[m]!==W[y]){if(m!==1||y!==1)do if(m--,y--,0>y||X[m]!==W[y]){var re=`
7
+ `+X[m].replace(" at new "," at ");return a.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",a.displayName)),re}while(1<=m&&0<=y);break}}}finally{Ui=!1,Error.prepareStackTrace=f}return(f=a?a.displayName||a.name:"")?Mn(f):""}function Mr(a,u){switch(a.tag){case 26:case 27:case 5:return Mn(a.type);case 16:return Mn("Lazy");case 13:return a.child!==u&&u!==null?Mn("Suspense Fallback"):Mn("Suspense");case 19:return Mn("SuspenseList");case 0:case 15:return vi(a.type,!1);case 11:return vi(a.type.render,!1);case 1:return vi(a.type,!0);case 31:return Mn("Activity");default:return""}}function sr(a){try{var u="",f=null;do u+=Mr(a,f),f=a,a=a.return;while(a);return u}catch(m){return`
8
+ Error generating stack: `+m.message+`
9
+ `+m.stack}}var kn=Object.prototype.hasOwnProperty,Kn=t.unstable_scheduleCallback,or=t.unstable_cancelCallback,Ss=t.unstable_shouldYield,he=t.unstable_requestPaint,Pe=t.unstable_now,ft=t.unstable_getCurrentPriorityLevel,ie=t.unstable_ImmediatePriority,me=t.unstable_UserBlockingPriority,Ae=t.unstable_NormalPriority,Xe=t.unstable_LowPriority,rt=t.unstable_IdlePriority,Jn=t.log,Dr=t.unstable_setDisableYieldValue,wn=null,Zt=null;function Dn(a){if(typeof Jn=="function"&&Dr(a),Zt&&typeof Zt.setStrictMode=="function")try{Zt.setStrictMode(wn,a)}catch{}}var dt=Math.clz32?Math.clz32:O5,_s=Math.log,Yi=Math.LN2;function O5(a){return a>>>=0,a===0?32:31-(_s(a)/Yi|0)|0}var Jh=256,ef=262144,tf=4194304;function ko(a){var u=a&42;if(u!==0)return u;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function nf(a,u,f){var m=a.pendingLanes;if(m===0)return 0;var y=0,b=a.suspendedLanes,w=a.pingedLanes;a=a.warmLanes;var Q=m&134217727;return Q!==0?(m=Q&~b,m!==0?y=ko(m):(w&=Q,w!==0?y=ko(w):f||(f=Q&~a,f!==0&&(y=ko(f))))):(Q=m&~b,Q!==0?y=ko(Q):w!==0?y=ko(w):f||(f=m&~a,f!==0&&(y=ko(f)))),y===0?0:u!==0&&u!==y&&(u&b)===0&&(b=y&-y,f=u&-u,b>=f||b===32&&(f&4194048)!==0)?u:y}function gc(a,u){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&u)===0}function y5(a,u){switch(a){case 1:case 2:case 4:case 8:case 64:return u+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function aS(){var a=tf;return tf<<=1,(tf&62914560)===0&&(tf=4194304),a}function Og(a){for(var u=[],f=0;31>f;f++)u.push(a);return u}function Oc(a,u){a.pendingLanes|=u,u!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function b5(a,u,f,m,y,b){var w=a.pendingLanes;a.pendingLanes=f,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=f,a.entangledLanes&=f,a.errorRecoveryDisabledLanes&=f,a.shellSuspendCounter=0;var Q=a.entanglements,X=a.expirationTimes,W=a.hiddenUpdates;for(f=w&~f;0<f;){var re=31-dt(f),le=1<<re;Q[re]=0,X[re]=-1;var K=W[re];if(K!==null)for(W[re]=null,re=0;re<K.length;re++){var ne=K[re];ne!==null&&(ne.lane&=-536870913)}f&=~le}m!==0&&lS(a,m,0),b!==0&&y===0&&a.tag!==0&&(a.suspendedLanes|=b&~(w&~u))}function lS(a,u,f){a.pendingLanes|=u,a.suspendedLanes&=~u;var m=31-dt(u);a.entangledLanes|=u,a.entanglements[m]=a.entanglements[m]|1073741824|f&261930}function cS(a,u){var f=a.entangledLanes|=u;for(a=a.entanglements;f;){var m=31-dt(f),y=1<<m;y&u|a[m]&u&&(a[m]|=u),f&=~y}}function uS(a,u){var f=u&-u;return f=(f&42)!==0?1:yg(f),(f&(a.suspendedLanes|u))!==0?0:f}function yg(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function bg(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function hS(){var a=J.p;return a!==0?a:(a=window.event,a===void 0?32:Hw(a.type))}function fS(a,u){var f=J.p;try{return J.p=a,u()}finally{J.p=f}}var ks=Math.random().toString(36).slice(2),nn="__reactFiber$"+ks,jn="__reactProps$"+ks,Ta="__reactContainer$"+ks,xg="__reactEvents$"+ks,x5="__reactListeners$"+ks,v5="__reactHandles$"+ks,dS="__reactResources$"+ks,yc="__reactMarker$"+ks;function vg(a){delete a[nn],delete a[jn],delete a[xg],delete a[x5],delete a[v5]}function Ca(a){var u=a[nn];if(u)return u;for(var f=a.parentNode;f;){if(u=f[Ta]||f[nn]){if(f=u.alternate,u.child!==null||f!==null&&f.child!==null)for(a=$w(a);a!==null;){if(f=a[nn])return f;a=$w(a)}return u}a=f,f=a.parentNode}return null}function Qa(a){if(a=a[nn]||a[Ta]){var u=a.tag;if(u===5||u===6||u===13||u===31||u===26||u===27||u===3)return a}return null}function bc(a){var u=a.tag;if(u===5||u===26||u===27||u===6)return a.stateNode;throw Error(i(33))}function Ea(a){var u=a[dS];return u||(u=a[dS]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function Ft(a){a[yc]=!0}var pS=new Set,mS={};function wo(a,u){Aa(a,u),Aa(a+"Capture",u)}function Aa(a,u){for(mS[a]=u,a=0;a<u.length;a++)pS.add(u[a])}var S5=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),gS={},OS={};function _5(a){return kn.call(OS,a)?!0:kn.call(gS,a)?!1:S5.test(a)?OS[a]=!0:(gS[a]=!0,!1)}function rf(a,u,f){if(_5(u))if(f===null)a.removeAttribute(u);else{switch(typeof f){case"undefined":case"function":case"symbol":a.removeAttribute(u);return;case"boolean":var m=u.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){a.removeAttribute(u);return}}a.setAttribute(u,""+f)}}function sf(a,u,f){if(f===null)a.removeAttribute(u);else{switch(typeof f){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(u);return}a.setAttribute(u,""+f)}}function jr(a,u,f,m){if(m===null)a.removeAttribute(f);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(f);return}a.setAttributeNS(u,f,""+m)}}function Si(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function yS(a){var u=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function k5(a,u,f){var m=Object.getOwnPropertyDescriptor(a.constructor.prototype,u);if(!a.hasOwnProperty(u)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var y=m.get,b=m.set;return Object.defineProperty(a,u,{configurable:!0,get:function(){return y.call(this)},set:function(w){f=""+w,b.call(this,w)}}),Object.defineProperty(a,u,{enumerable:m.enumerable}),{getValue:function(){return f},setValue:function(w){f=""+w},stopTracking:function(){a._valueTracker=null,delete a[u]}}}}function Sg(a){if(!a._valueTracker){var u=yS(a)?"checked":"value";a._valueTracker=k5(a,u,""+a[u])}}function bS(a){if(!a)return!1;var u=a._valueTracker;if(!u)return!0;var f=u.getValue(),m="";return a&&(m=yS(a)?a.checked?"true":"false":a.value),a=m,a!==f?(u.setValue(a),!0):!1}function of(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var w5=/[\n"\\]/g;function _i(a){return a.replace(w5,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function _g(a,u,f,m,y,b,w,Q){a.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?a.type=w:a.removeAttribute("type"),u!=null?w==="number"?(u===0&&a.value===""||a.value!=u)&&(a.value=""+Si(u)):a.value!==""+Si(u)&&(a.value=""+Si(u)):w!=="submit"&&w!=="reset"||a.removeAttribute("value"),u!=null?kg(a,w,Si(u)):f!=null?kg(a,w,Si(f)):m!=null&&a.removeAttribute("value"),y==null&&b!=null&&(a.defaultChecked=!!b),y!=null&&(a.checked=y&&typeof y!="function"&&typeof y!="symbol"),Q!=null&&typeof Q!="function"&&typeof Q!="symbol"&&typeof Q!="boolean"?a.name=""+Si(Q):a.removeAttribute("name")}function xS(a,u,f,m,y,b,w,Q){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(a.type=b),u!=null||f!=null){if(!(b!=="submit"&&b!=="reset"||u!=null)){Sg(a);return}f=f!=null?""+Si(f):"",u=u!=null?""+Si(u):f,Q||u===a.value||(a.value=u),a.defaultValue=u}m=m??y,m=typeof m!="function"&&typeof m!="symbol"&&!!m,a.checked=Q?a.checked:!!m,a.defaultChecked=!!m,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(a.name=w),Sg(a)}function kg(a,u,f){u==="number"&&of(a.ownerDocument)===a||a.defaultValue===""+f||(a.defaultValue=""+f)}function Ra(a,u,f,m){if(a=a.options,u){u={};for(var y=0;y<f.length;y++)u["$"+f[y]]=!0;for(f=0;f<a.length;f++)y=u.hasOwnProperty("$"+a[f].value),a[f].selected!==y&&(a[f].selected=y),y&&m&&(a[f].defaultSelected=!0)}else{for(f=""+Si(f),u=null,y=0;y<a.length;y++){if(a[y].value===f){a[y].selected=!0,m&&(a[y].defaultSelected=!0);return}u!==null||a[y].disabled||(u=a[y])}u!==null&&(u.selected=!0)}}function vS(a,u,f){if(u!=null&&(u=""+Si(u),u!==a.value&&(a.value=u),f==null)){a.defaultValue!==u&&(a.defaultValue=u);return}a.defaultValue=f!=null?""+Si(f):""}function SS(a,u,f,m){if(u==null){if(m!=null){if(f!=null)throw Error(i(92));if(Y(m)){if(1<m.length)throw Error(i(93));m=m[0]}f=m}f==null&&(f=""),u=f}f=Si(u),a.defaultValue=f,m=a.textContent,m===f&&m!==""&&m!==null&&(a.value=m),Sg(a)}function La(a,u){if(u){var f=a.firstChild;if(f&&f===a.lastChild&&f.nodeType===3){f.nodeValue=u;return}}a.textContent=u}var P5=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function _S(a,u,f){var m=u.indexOf("--")===0;f==null||typeof f=="boolean"||f===""?m?a.setProperty(u,""):u==="float"?a.cssFloat="":a[u]="":m?a.setProperty(u,f):typeof f!="number"||f===0||P5.has(u)?u==="float"?a.cssFloat=f:a[u]=(""+f).trim():a[u]=f+"px"}function kS(a,u,f){if(u!=null&&typeof u!="object")throw Error(i(62));if(a=a.style,f!=null){for(var m in f)!f.hasOwnProperty(m)||u!=null&&u.hasOwnProperty(m)||(m.indexOf("--")===0?a.setProperty(m,""):m==="float"?a.cssFloat="":a[m]="");for(var y in u)m=u[y],u.hasOwnProperty(y)&&f[y]!==m&&_S(a,y,m)}else for(var b in u)u.hasOwnProperty(b)&&_S(a,b,u[b])}function wg(a){if(a.indexOf("-")===-1)return!1;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var T5=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),C5=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function af(a){return C5.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Nr(){}var Pg=null;function Tg(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var $a=null,Ma=null;function wS(a){var u=Qa(a);if(u&&(a=u.stateNode)){var f=a[jn]||null;e:switch(a=u.stateNode,u.type){case"input":if(_g(a,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name),u=f.name,f.type==="radio"&&u!=null){for(f=a;f.parentNode;)f=f.parentNode;for(f=f.querySelectorAll('input[name="'+_i(""+u)+'"][type="radio"]'),u=0;u<f.length;u++){var m=f[u];if(m!==a&&m.form===a.form){var y=m[jn]||null;if(!y)throw Error(i(90));_g(m,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(u=0;u<f.length;u++)m=f[u],m.form===a.form&&bS(m)}break e;case"textarea":vS(a,f.value,f.defaultValue);break e;case"select":u=f.value,u!=null&&Ra(a,!!f.multiple,u,!1)}}}var Cg=!1;function PS(a,u,f){if(Cg)return a(u,f);Cg=!0;try{var m=a(u);return m}finally{if(Cg=!1,($a!==null||Ma!==null)&&(Gf(),$a&&(u=$a,a=Ma,Ma=$a=null,wS(u),a)))for(u=0;u<a.length;u++)wS(a[u])}}function xc(a,u){var f=a.stateNode;if(f===null)return null;var m=f[jn]||null;if(m===null)return null;f=m[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(a=a.type,m=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!m;break e;default:a=!1}if(a)return null;if(f&&typeof f!="function")throw Error(i(231,u,typeof f));return f}var zr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qg=!1;if(zr)try{var vc={};Object.defineProperty(vc,"passive",{get:function(){Qg=!0}}),window.addEventListener("test",vc,vc),window.removeEventListener("test",vc,vc)}catch{Qg=!1}var ws=null,Eg=null,lf=null;function TS(){if(lf)return lf;var a,u=Eg,f=u.length,m,y="value"in ws?ws.value:ws.textContent,b=y.length;for(a=0;a<f&&u[a]===y[a];a++);var w=f-a;for(m=1;m<=w&&u[f-m]===y[b-m];m++);return lf=y.slice(a,1<m?1-m:void 0)}function cf(a){var u=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&u===13&&(a=13)):a=u,a===10&&(a=13),32<=a||a===13?a:0}function uf(){return!0}function CS(){return!1}function Nn(a){function u(f,m,y,b,w){this._reactName=f,this._targetInst=y,this.type=m,this.nativeEvent=b,this.target=w,this.currentTarget=null;for(var Q in a)a.hasOwnProperty(Q)&&(f=a[Q],this[Q]=f?f(b):b[Q]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?uf:CS,this.isPropagationStopped=CS,this}return p(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var f=this.nativeEvent;f&&(f.preventDefault?f.preventDefault():typeof f.returnValue!="unknown"&&(f.returnValue=!1),this.isDefaultPrevented=uf)},stopPropagation:function(){var f=this.nativeEvent;f&&(f.stopPropagation?f.stopPropagation():typeof f.cancelBubble!="unknown"&&(f.cancelBubble=!0),this.isPropagationStopped=uf)},persist:function(){},isPersistent:uf}),u}var Po={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hf=Nn(Po),Sc=p({},Po,{view:0,detail:0}),Q5=Nn(Sc),Ag,Rg,_c,ff=p({},Sc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$g,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==_c&&(_c&&a.type==="mousemove"?(Ag=a.screenX-_c.screenX,Rg=a.screenY-_c.screenY):Rg=Ag=0,_c=a),Ag)},movementY:function(a){return"movementY"in a?a.movementY:Rg}}),QS=Nn(ff),E5=p({},ff,{dataTransfer:0}),A5=Nn(E5),R5=p({},Sc,{relatedTarget:0}),Lg=Nn(R5),L5=p({},Po,{animationName:0,elapsedTime:0,pseudoElement:0}),$5=Nn(L5),M5=p({},Po,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),D5=Nn(M5),j5=p({},Po,{data:0}),ES=Nn(j5),N5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},z5={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},I5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function X5(a){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(a):(a=I5[a])?!!u[a]:!1}function $g(){return X5}var V5=p({},Sc,{key:function(a){if(a.key){var u=N5[a.key]||a.key;if(u!=="Unidentified")return u}return a.type==="keypress"?(a=cf(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?z5[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$g,charCode:function(a){return a.type==="keypress"?cf(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?cf(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),B5=Nn(V5),Z5=p({},ff,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),AS=Nn(Z5),q5=p({},Sc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$g}),U5=Nn(q5),Y5=p({},Po,{propertyName:0,elapsedTime:0,pseudoElement:0}),G5=Nn(Y5),W5=p({},ff,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),H5=Nn(W5),F5=p({},Po,{newState:0,oldState:0}),K5=Nn(F5),J5=[9,13,27,32],Mg=zr&&"CompositionEvent"in window,kc=null;zr&&"documentMode"in document&&(kc=document.documentMode);var eN=zr&&"TextEvent"in window&&!kc,RS=zr&&(!Mg||kc&&8<kc&&11>=kc),LS=" ",$S=!1;function MS(a,u){switch(a){case"keyup":return J5.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function DS(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Da=!1;function tN(a,u){switch(a){case"compositionend":return DS(u);case"keypress":return u.which!==32?null:($S=!0,LS);case"textInput":return a=u.data,a===LS&&$S?null:a;default:return null}}function nN(a,u){if(Da)return a==="compositionend"||!Mg&&MS(a,u)?(a=TS(),lf=Eg=ws=null,Da=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return RS&&u.locale!=="ko"?null:u.data;default:return null}}var iN={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function jS(a){var u=a&&a.nodeName&&a.nodeName.toLowerCase();return u==="input"?!!iN[a.type]:u==="textarea"}function NS(a,u,f,m){$a?Ma?Ma.push(m):Ma=[m]:$a=m,u=td(u,"onChange"),0<u.length&&(f=new hf("onChange","change",null,f,m),a.push({event:f,listeners:u}))}var wc=null,Pc=null;function rN(a){xw(a,0)}function df(a){var u=bc(a);if(bS(u))return a}function zS(a,u){if(a==="change")return u}var IS=!1;if(zr){var Dg;if(zr){var jg="oninput"in document;if(!jg){var XS=document.createElement("div");XS.setAttribute("oninput","return;"),jg=typeof XS.oninput=="function"}Dg=jg}else Dg=!1;IS=Dg&&(!document.documentMode||9<document.documentMode)}function VS(){wc&&(wc.detachEvent("onpropertychange",BS),Pc=wc=null)}function BS(a){if(a.propertyName==="value"&&df(Pc)){var u=[];NS(u,Pc,a,Tg(a)),PS(rN,u)}}function sN(a,u,f){a==="focusin"?(VS(),wc=u,Pc=f,wc.attachEvent("onpropertychange",BS)):a==="focusout"&&VS()}function oN(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return df(Pc)}function aN(a,u){if(a==="click")return df(u)}function lN(a,u){if(a==="input"||a==="change")return df(u)}function cN(a,u){return a===u&&(a!==0||1/a===1/u)||a!==a&&u!==u}var ei=typeof Object.is=="function"?Object.is:cN;function Tc(a,u){if(ei(a,u))return!0;if(typeof a!="object"||a===null||typeof u!="object"||u===null)return!1;var f=Object.keys(a),m=Object.keys(u);if(f.length!==m.length)return!1;for(m=0;m<f.length;m++){var y=f[m];if(!kn.call(u,y)||!ei(a[y],u[y]))return!1}return!0}function ZS(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function qS(a,u){var f=ZS(a);a=0;for(var m;f;){if(f.nodeType===3){if(m=a+f.textContent.length,a<=u&&m>=u)return{node:f,offset:u-a};a=m}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=ZS(f)}}function US(a,u){return a&&u?a===u?!0:a&&a.nodeType===3?!1:u&&u.nodeType===3?US(a,u.parentNode):"contains"in a?a.contains(u):a.compareDocumentPosition?!!(a.compareDocumentPosition(u)&16):!1:!1}function YS(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var u=of(a.document);u instanceof a.HTMLIFrameElement;){try{var f=typeof u.contentWindow.location.href=="string"}catch{f=!1}if(f)a=u.contentWindow;else break;u=of(a.document)}return u}function Ng(a){var u=a&&a.nodeName&&a.nodeName.toLowerCase();return u&&(u==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||u==="textarea"||a.contentEditable==="true")}var uN=zr&&"documentMode"in document&&11>=document.documentMode,ja=null,zg=null,Cc=null,Ig=!1;function GS(a,u,f){var m=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;Ig||ja==null||ja!==of(m)||(m=ja,"selectionStart"in m&&Ng(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Cc&&Tc(Cc,m)||(Cc=m,m=td(zg,"onSelect"),0<m.length&&(u=new hf("onSelect","select",null,u,f),a.push({event:u,listeners:m}),u.target=ja)))}function To(a,u){var f={};return f[a.toLowerCase()]=u.toLowerCase(),f["Webkit"+a]="webkit"+u,f["Moz"+a]="moz"+u,f}var Na={animationend:To("Animation","AnimationEnd"),animationiteration:To("Animation","AnimationIteration"),animationstart:To("Animation","AnimationStart"),transitionrun:To("Transition","TransitionRun"),transitionstart:To("Transition","TransitionStart"),transitioncancel:To("Transition","TransitionCancel"),transitionend:To("Transition","TransitionEnd")},Xg={},WS={};zr&&(WS=document.createElement("div").style,"AnimationEvent"in window||(delete Na.animationend.animation,delete Na.animationiteration.animation,delete Na.animationstart.animation),"TransitionEvent"in window||delete Na.transitionend.transition);function Co(a){if(Xg[a])return Xg[a];if(!Na[a])return a;var u=Na[a],f;for(f in u)if(u.hasOwnProperty(f)&&f in WS)return Xg[a]=u[f];return a}var HS=Co("animationend"),FS=Co("animationiteration"),KS=Co("animationstart"),hN=Co("transitionrun"),fN=Co("transitionstart"),dN=Co("transitioncancel"),JS=Co("transitionend"),e_=new Map,Vg="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Vg.push("scrollEnd");function Gi(a,u){e_.set(a,u),wo(u,[a])}var pf=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},ki=[],za=0,Bg=0;function mf(){for(var a=za,u=Bg=za=0;u<a;){var f=ki[u];ki[u++]=null;var m=ki[u];ki[u++]=null;var y=ki[u];ki[u++]=null;var b=ki[u];if(ki[u++]=null,m!==null&&y!==null){var w=m.pending;w===null?y.next=y:(y.next=w.next,w.next=y),m.pending=y}b!==0&&t_(f,y,b)}}function gf(a,u,f,m){ki[za++]=a,ki[za++]=u,ki[za++]=f,ki[za++]=m,Bg|=m,a.lanes|=m,a=a.alternate,a!==null&&(a.lanes|=m)}function Zg(a,u,f,m){return gf(a,u,f,m),Of(a)}function Qo(a,u){return gf(a,null,null,u),Of(a)}function t_(a,u,f){a.lanes|=f;var m=a.alternate;m!==null&&(m.lanes|=f);for(var y=!1,b=a.return;b!==null;)b.childLanes|=f,m=b.alternate,m!==null&&(m.childLanes|=f),b.tag===22&&(a=b.stateNode,a===null||a._visibility&1||(y=!0)),a=b,b=b.return;return a.tag===3?(b=a.stateNode,y&&u!==null&&(y=31-dt(f),a=b.hiddenUpdates,m=a[y],m===null?a[y]=[u]:m.push(u),u.lane=f|536870912),b):null}function Of(a){if(50<Hc)throw Hc=0,JO=null,Error(i(185));for(var u=a.return;u!==null;)a=u,u=a.return;return a.tag===3?a.stateNode:null}var Ia={};function pN(a,u,f,m){this.tag=a,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ti(a,u,f,m){return new pN(a,u,f,m)}function qg(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Ir(a,u){var f=a.alternate;return f===null?(f=ti(a.tag,u,a.key,a.mode),f.elementType=a.elementType,f.type=a.type,f.stateNode=a.stateNode,f.alternate=a,a.alternate=f):(f.pendingProps=u,f.type=a.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=a.flags&65011712,f.childLanes=a.childLanes,f.lanes=a.lanes,f.child=a.child,f.memoizedProps=a.memoizedProps,f.memoizedState=a.memoizedState,f.updateQueue=a.updateQueue,u=a.dependencies,f.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},f.sibling=a.sibling,f.index=a.index,f.ref=a.ref,f.refCleanup=a.refCleanup,f}function n_(a,u){a.flags&=65011714;var f=a.alternate;return f===null?(a.childLanes=0,a.lanes=u,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=f.childLanes,a.lanes=f.lanes,a.child=f.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=f.memoizedProps,a.memoizedState=f.memoizedState,a.updateQueue=f.updateQueue,a.type=f.type,u=f.dependencies,a.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),a}function yf(a,u,f,m,y,b){var w=0;if(m=a,typeof a=="function")qg(a)&&(w=1);else if(typeof a=="string")w=b3(a,f,fe.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case B:return a=ti(31,f,u,y),a.elementType=B,a.lanes=b,a;case S:return Eo(f.children,y,b,u);case k:w=8,y|=24;break;case _:return a=ti(12,f,u,y|2),a.elementType=_,a.lanes=b,a;case j:return a=ti(13,f,u,y),a.elementType=j,a.lanes=b,a;case A:return a=ti(19,f,u,y),a.elementType=A,a.lanes=b,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case C:w=10;break e;case T:w=9;break e;case D:w=11;break e;case M:w=14;break e;case I:w=16,m=null;break e}w=29,f=Error(i(130,a===null?"null":typeof a,"")),m=null}return u=ti(w,f,u,y),u.elementType=a,u.type=m,u.lanes=b,u}function Eo(a,u,f,m){return a=ti(7,a,m,u),a.lanes=f,a}function Ug(a,u,f){return a=ti(6,a,null,u),a.lanes=f,a}function i_(a){var u=ti(18,null,null,0);return u.stateNode=a,u}function Yg(a,u,f){return u=ti(4,a.children!==null?a.children:[],a.key,u),u.lanes=f,u.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},u}var r_=new WeakMap;function wi(a,u){if(typeof a=="object"&&a!==null){var f=r_.get(a);return f!==void 0?f:(u={value:a,source:u,stack:sr(u)},r_.set(a,u),u)}return{value:a,source:u,stack:sr(u)}}var Xa=[],Va=0,bf=null,Qc=0,Pi=[],Ti=0,Ps=null,ar=1,lr="";function Xr(a,u){Xa[Va++]=Qc,Xa[Va++]=bf,bf=a,Qc=u}function s_(a,u,f){Pi[Ti++]=ar,Pi[Ti++]=lr,Pi[Ti++]=Ps,Ps=a;var m=ar;a=lr;var y=32-dt(m)-1;m&=~(1<<y),f+=1;var b=32-dt(u)+y;if(30<b){var w=y-y%5;b=(m&(1<<w)-1).toString(32),m>>=w,y-=w,ar=1<<32-dt(u)+y|f<<y|m,lr=b+a}else ar=1<<b|f<<y|m,lr=a}function Gg(a){a.return!==null&&(Xr(a,1),s_(a,1,0))}function Wg(a){for(;a===bf;)bf=Xa[--Va],Xa[Va]=null,Qc=Xa[--Va],Xa[Va]=null;for(;a===Ps;)Ps=Pi[--Ti],Pi[Ti]=null,lr=Pi[--Ti],Pi[Ti]=null,ar=Pi[--Ti],Pi[Ti]=null}function o_(a,u){Pi[Ti++]=ar,Pi[Ti++]=lr,Pi[Ti++]=Ps,ar=u.id,lr=u.overflow,Ps=a}var rn=null,xt=null,We=!1,Ts=null,Ci=!1,Hg=Error(i(519));function Cs(a){var u=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ec(wi(u,a)),Hg}function a_(a){var u=a.stateNode,f=a.type,m=a.memoizedProps;switch(u[nn]=a,u[jn]=m,f){case"dialog":Be("cancel",u),Be("close",u);break;case"iframe":case"object":case"embed":Be("load",u);break;case"video":case"audio":for(f=0;f<Kc.length;f++)Be(Kc[f],u);break;case"source":Be("error",u);break;case"img":case"image":case"link":Be("error",u),Be("load",u);break;case"details":Be("toggle",u);break;case"input":Be("invalid",u),xS(u,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":Be("invalid",u);break;case"textarea":Be("invalid",u),SS(u,m.value,m.defaultValue,m.children)}f=m.children,typeof f!="string"&&typeof f!="number"&&typeof f!="bigint"||u.textContent===""+f||m.suppressHydrationWarning===!0||kw(u.textContent,f)?(m.popover!=null&&(Be("beforetoggle",u),Be("toggle",u)),m.onScroll!=null&&Be("scroll",u),m.onScrollEnd!=null&&Be("scrollend",u),m.onClick!=null&&(u.onclick=Nr),u=!0):u=!1,u||Cs(a,!0)}function l_(a){for(rn=a.return;rn;)switch(rn.tag){case 5:case 31:case 13:Ci=!1;return;case 27:case 3:Ci=!0;return;default:rn=rn.return}}function Ba(a){if(a!==rn)return!1;if(!We)return l_(a),We=!0,!1;var u=a.tag,f;if((f=u!==3&&u!==27)&&((f=u===5)&&(f=a.type,f=!(f!=="form"&&f!=="button")||p0(a.type,a.memoizedProps)),f=!f),f&&xt&&Cs(a),l_(a),u===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(317));xt=Lw(a)}else if(u===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(317));xt=Lw(a)}else u===27?(u=xt,Vs(a.type)?(a=b0,b0=null,xt=a):xt=u):xt=rn?Ei(a.stateNode.nextSibling):null;return!0}function Ao(){xt=rn=null,We=!1}function Fg(){var a=Ts;return a!==null&&(Vn===null?Vn=a:Vn.push.apply(Vn,a),Ts=null),a}function Ec(a){Ts===null?Ts=[a]:Ts.push(a)}var Kg=N(null),Ro=null,Vr=null;function Qs(a,u,f){R(Kg,u._currentValue),u._currentValue=f}function Br(a){a._currentValue=Kg.current,te(Kg)}function Jg(a,u,f){for(;a!==null;){var m=a.alternate;if((a.childLanes&u)!==u?(a.childLanes|=u,m!==null&&(m.childLanes|=u)):m!==null&&(m.childLanes&u)!==u&&(m.childLanes|=u),a===f)break;a=a.return}}function eO(a,u,f,m){var y=a.child;for(y!==null&&(y.return=a);y!==null;){var b=y.dependencies;if(b!==null){var w=y.child;b=b.firstContext;e:for(;b!==null;){var Q=b;b=y;for(var X=0;X<u.length;X++)if(Q.context===u[X]){b.lanes|=f,Q=b.alternate,Q!==null&&(Q.lanes|=f),Jg(b.return,f,a),m||(w=null);break e}b=Q.next}}else if(y.tag===18){if(w=y.return,w===null)throw Error(i(341));w.lanes|=f,b=w.alternate,b!==null&&(b.lanes|=f),Jg(w,f,a),w=null}else w=y.child;if(w!==null)w.return=y;else for(w=y;w!==null;){if(w===a){w=null;break}if(y=w.sibling,y!==null){y.return=w.return,w=y;break}w=w.return}y=w}}function Za(a,u,f,m){a=null;for(var y=u,b=!1;y!==null;){if(!b){if((y.flags&524288)!==0)b=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var w=y.alternate;if(w===null)throw Error(i(387));if(w=w.memoizedProps,w!==null){var Q=y.type;ei(y.pendingProps.value,w.value)||(a!==null?a.push(Q):a=[Q])}}else if(y===Re.current){if(w=y.alternate,w===null)throw Error(i(387));w.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(a!==null?a.push(iu):a=[iu])}y=y.return}a!==null&&eO(u,a,f,m),u.flags|=262144}function xf(a){for(a=a.firstContext;a!==null;){if(!ei(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Lo(a){Ro=a,Vr=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function sn(a){return c_(Ro,a)}function vf(a,u){return Ro===null&&Lo(a),c_(a,u)}function c_(a,u){var f=u._currentValue;if(u={context:u,memoizedValue:f,next:null},Vr===null){if(a===null)throw Error(i(308));Vr=u,a.dependencies={lanes:0,firstContext:u},a.flags|=524288}else Vr=Vr.next=u;return f}var mN=typeof AbortController<"u"?AbortController:function(){var a=[],u=this.signal={aborted:!1,addEventListener:function(f,m){a.push(m)}};this.abort=function(){u.aborted=!0,a.forEach(function(f){return f()})}},gN=t.unstable_scheduleCallback,ON=t.unstable_NormalPriority,$t={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tO(){return{controller:new mN,data:new Map,refCount:0}}function Ac(a){a.refCount--,a.refCount===0&&gN(ON,function(){a.controller.abort()})}var Rc=null,nO=0,qa=0,Ua=null;function yN(a,u){if(Rc===null){var f=Rc=[];nO=0,qa=s0(),Ua={status:"pending",value:void 0,then:function(m){f.push(m)}}}return nO++,u.then(u_,u_),u}function u_(){if(--nO===0&&Rc!==null){Ua!==null&&(Ua.status="fulfilled");var a=Rc;Rc=null,qa=0,Ua=null;for(var u=0;u<a.length;u++)(0,a[u])()}}function bN(a,u){var f=[],m={status:"pending",value:null,reason:null,then:function(y){f.push(y)}};return a.then(function(){m.status="fulfilled",m.value=u;for(var y=0;y<f.length;y++)(0,f[y])(u)},function(y){for(m.status="rejected",m.reason=y,y=0;y<f.length;y++)(0,f[y])(void 0)}),m}var h_=Z.S;Z.S=function(a,u){Gk=Pe(),typeof u=="object"&&u!==null&&typeof u.then=="function"&&yN(a,u),h_!==null&&h_(a,u)};var $o=N(null);function iO(){var a=$o.current;return a!==null?a:pt.pooledCache}function Sf(a,u){u===null?R($o,$o.current):R($o,u.pool)}function f_(){var a=iO();return a===null?null:{parent:$t._currentValue,pool:a}}var Ya=Error(i(460)),rO=Error(i(474)),_f=Error(i(542)),kf={then:function(){}};function d_(a){return a=a.status,a==="fulfilled"||a==="rejected"}function p_(a,u,f){switch(f=a[f],f===void 0?a.push(u):f!==u&&(u.then(Nr,Nr),u=f),u.status){case"fulfilled":return u.value;case"rejected":throw a=u.reason,g_(a),a;default:if(typeof u.status=="string")u.then(Nr,Nr);else{if(a=pt,a!==null&&100<a.shellSuspendCounter)throw Error(i(482));a=u,a.status="pending",a.then(function(m){if(u.status==="pending"){var y=u;y.status="fulfilled",y.value=m}},function(m){if(u.status==="pending"){var y=u;y.status="rejected",y.reason=m}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw a=u.reason,g_(a),a}throw Do=u,Ya}}function Mo(a){try{var u=a._init;return u(a._payload)}catch(f){throw f!==null&&typeof f=="object"&&typeof f.then=="function"?(Do=f,Ya):f}}var Do=null;function m_(){if(Do===null)throw Error(i(459));var a=Do;return Do=null,a}function g_(a){if(a===Ya||a===_f)throw Error(i(483))}var Ga=null,Lc=0;function wf(a){var u=Lc;return Lc+=1,Ga===null&&(Ga=[]),p_(Ga,a,u)}function $c(a,u){u=u.props.ref,a.ref=u!==void 0?u:null}function Pf(a,u){throw u.$$typeof===g?Error(i(525)):(a=Object.prototype.toString.call(u),Error(i(31,a==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":a)))}function O_(a){function u(q,V){if(a){var G=q.deletions;G===null?(q.deletions=[V],q.flags|=16):G.push(V)}}function f(q,V){if(!a)return null;for(;V!==null;)u(q,V),V=V.sibling;return null}function m(q){for(var V=new Map;q!==null;)q.key!==null?V.set(q.key,q):V.set(q.index,q),q=q.sibling;return V}function y(q,V){return q=Ir(q,V),q.index=0,q.sibling=null,q}function b(q,V,G){return q.index=G,a?(G=q.alternate,G!==null?(G=G.index,G<V?(q.flags|=67108866,V):G):(q.flags|=67108866,V)):(q.flags|=1048576,V)}function w(q){return a&&q.alternate===null&&(q.flags|=67108866),q}function Q(q,V,G,ae){return V===null||V.tag!==6?(V=Ug(G,q.mode,ae),V.return=q,V):(V=y(V,G),V.return=q,V)}function X(q,V,G,ae){var Ce=G.type;return Ce===S?re(q,V,G.props.children,ae,G.key):V!==null&&(V.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===I&&Mo(Ce)===V.type)?(V=y(V,G.props),$c(V,G),V.return=q,V):(V=yf(G.type,G.key,G.props,null,q.mode,ae),$c(V,G),V.return=q,V)}function W(q,V,G,ae){return V===null||V.tag!==4||V.stateNode.containerInfo!==G.containerInfo||V.stateNode.implementation!==G.implementation?(V=Yg(G,q.mode,ae),V.return=q,V):(V=y(V,G.children||[]),V.return=q,V)}function re(q,V,G,ae,Ce){return V===null||V.tag!==7?(V=Eo(G,q.mode,ae,Ce),V.return=q,V):(V=y(V,G),V.return=q,V)}function le(q,V,G){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=Ug(""+V,q.mode,G),V.return=q,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case O:return G=yf(V.type,V.key,V.props,null,q.mode,G),$c(G,V),G.return=q,G;case x:return V=Yg(V,q.mode,G),V.return=q,V;case I:return V=Mo(V),le(q,V,G)}if(Y(V)||H(V))return V=Eo(V,q.mode,G,null),V.return=q,V;if(typeof V.then=="function")return le(q,wf(V),G);if(V.$$typeof===C)return le(q,vf(q,V),G);Pf(q,V)}return null}function K(q,V,G,ae){var Ce=V!==null?V.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Ce!==null?null:Q(q,V,""+G,ae);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case O:return G.key===Ce?X(q,V,G,ae):null;case x:return G.key===Ce?W(q,V,G,ae):null;case I:return G=Mo(G),K(q,V,G,ae)}if(Y(G)||H(G))return Ce!==null?null:re(q,V,G,ae,null);if(typeof G.then=="function")return K(q,V,wf(G),ae);if(G.$$typeof===C)return K(q,V,vf(q,G),ae);Pf(q,G)}return null}function ne(q,V,G,ae,Ce){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return q=q.get(G)||null,Q(V,q,""+ae,Ce);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case O:return q=q.get(ae.key===null?G:ae.key)||null,X(V,q,ae,Ce);case x:return q=q.get(ae.key===null?G:ae.key)||null,W(V,q,ae,Ce);case I:return ae=Mo(ae),ne(q,V,G,ae,Ce)}if(Y(ae)||H(ae))return q=q.get(G)||null,re(V,q,ae,Ce,null);if(typeof ae.then=="function")return ne(q,V,G,wf(ae),Ce);if(ae.$$typeof===C)return ne(q,V,G,vf(V,ae),Ce);Pf(V,ae)}return null}function ke(q,V,G,ae){for(var Ce=null,tt=null,we=V,Ne=V=0,Ge=null;we!==null&&Ne<G.length;Ne++){we.index>Ne?(Ge=we,we=null):Ge=we.sibling;var nt=K(q,we,G[Ne],ae);if(nt===null){we===null&&(we=Ge);break}a&&we&&nt.alternate===null&&u(q,we),V=b(nt,V,Ne),tt===null?Ce=nt:tt.sibling=nt,tt=nt,we=Ge}if(Ne===G.length)return f(q,we),We&&Xr(q,Ne),Ce;if(we===null){for(;Ne<G.length;Ne++)we=le(q,G[Ne],ae),we!==null&&(V=b(we,V,Ne),tt===null?Ce=we:tt.sibling=we,tt=we);return We&&Xr(q,Ne),Ce}for(we=m(we);Ne<G.length;Ne++)Ge=ne(we,q,Ne,G[Ne],ae),Ge!==null&&(a&&Ge.alternate!==null&&we.delete(Ge.key===null?Ne:Ge.key),V=b(Ge,V,Ne),tt===null?Ce=Ge:tt.sibling=Ge,tt=Ge);return a&&we.forEach(function(Ys){return u(q,Ys)}),We&&Xr(q,Ne),Ce}function Ee(q,V,G,ae){if(G==null)throw Error(i(151));for(var Ce=null,tt=null,we=V,Ne=V=0,Ge=null,nt=G.next();we!==null&&!nt.done;Ne++,nt=G.next()){we.index>Ne?(Ge=we,we=null):Ge=we.sibling;var Ys=K(q,we,nt.value,ae);if(Ys===null){we===null&&(we=Ge);break}a&&we&&Ys.alternate===null&&u(q,we),V=b(Ys,V,Ne),tt===null?Ce=Ys:tt.sibling=Ys,tt=Ys,we=Ge}if(nt.done)return f(q,we),We&&Xr(q,Ne),Ce;if(we===null){for(;!nt.done;Ne++,nt=G.next())nt=le(q,nt.value,ae),nt!==null&&(V=b(nt,V,Ne),tt===null?Ce=nt:tt.sibling=nt,tt=nt);return We&&Xr(q,Ne),Ce}for(we=m(we);!nt.done;Ne++,nt=G.next())nt=ne(we,q,Ne,nt.value,ae),nt!==null&&(a&&nt.alternate!==null&&we.delete(nt.key===null?Ne:nt.key),V=b(nt,V,Ne),tt===null?Ce=nt:tt.sibling=nt,tt=nt);return a&&we.forEach(function(E3){return u(q,E3)}),We&&Xr(q,Ne),Ce}function ut(q,V,G,ae){if(typeof G=="object"&&G!==null&&G.type===S&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case O:e:{for(var Ce=G.key;V!==null;){if(V.key===Ce){if(Ce=G.type,Ce===S){if(V.tag===7){f(q,V.sibling),ae=y(V,G.props.children),ae.return=q,q=ae;break e}}else if(V.elementType===Ce||typeof Ce=="object"&&Ce!==null&&Ce.$$typeof===I&&Mo(Ce)===V.type){f(q,V.sibling),ae=y(V,G.props),$c(ae,G),ae.return=q,q=ae;break e}f(q,V);break}else u(q,V);V=V.sibling}G.type===S?(ae=Eo(G.props.children,q.mode,ae,G.key),ae.return=q,q=ae):(ae=yf(G.type,G.key,G.props,null,q.mode,ae),$c(ae,G),ae.return=q,q=ae)}return w(q);case x:e:{for(Ce=G.key;V!==null;){if(V.key===Ce)if(V.tag===4&&V.stateNode.containerInfo===G.containerInfo&&V.stateNode.implementation===G.implementation){f(q,V.sibling),ae=y(V,G.children||[]),ae.return=q,q=ae;break e}else{f(q,V);break}else u(q,V);V=V.sibling}ae=Yg(G,q.mode,ae),ae.return=q,q=ae}return w(q);case I:return G=Mo(G),ut(q,V,G,ae)}if(Y(G))return ke(q,V,G,ae);if(H(G)){if(Ce=H(G),typeof Ce!="function")throw Error(i(150));return G=Ce.call(G),Ee(q,V,G,ae)}if(typeof G.then=="function")return ut(q,V,wf(G),ae);if(G.$$typeof===C)return ut(q,V,vf(q,G),ae);Pf(q,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,V!==null&&V.tag===6?(f(q,V.sibling),ae=y(V,G),ae.return=q,q=ae):(f(q,V),ae=Ug(G,q.mode,ae),ae.return=q,q=ae),w(q)):f(q,V)}return function(q,V,G,ae){try{Lc=0;var Ce=ut(q,V,G,ae);return Ga=null,Ce}catch(we){if(we===Ya||we===_f)throw we;var tt=ti(29,we,null,q.mode);return tt.lanes=ae,tt.return=q,tt}}}var jo=O_(!0),y_=O_(!1),Es=!1;function sO(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function oO(a,u){a=a.updateQueue,u.updateQueue===a&&(u.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function As(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Rs(a,u,f){var m=a.updateQueue;if(m===null)return null;if(m=m.shared,(it&2)!==0){var y=m.pending;return y===null?u.next=u:(u.next=y.next,y.next=u),m.pending=u,u=Of(a),t_(a,null,f),u}return gf(a,m,u,f),Of(a)}function Mc(a,u,f){if(u=u.updateQueue,u!==null&&(u=u.shared,(f&4194048)!==0)){var m=u.lanes;m&=a.pendingLanes,f|=m,u.lanes=f,cS(a,f)}}function aO(a,u){var f=a.updateQueue,m=a.alternate;if(m!==null&&(m=m.updateQueue,f===m)){var y=null,b=null;if(f=f.firstBaseUpdate,f!==null){do{var w={lane:f.lane,tag:f.tag,payload:f.payload,callback:null,next:null};b===null?y=b=w:b=b.next=w,f=f.next}while(f!==null);b===null?y=b=u:b=b.next=u}else y=b=u;f={baseState:m.baseState,firstBaseUpdate:y,lastBaseUpdate:b,shared:m.shared,callbacks:m.callbacks},a.updateQueue=f;return}a=f.lastBaseUpdate,a===null?f.firstBaseUpdate=u:a.next=u,f.lastBaseUpdate=u}var lO=!1;function Dc(){if(lO){var a=Ua;if(a!==null)throw a}}function jc(a,u,f,m){lO=!1;var y=a.updateQueue;Es=!1;var b=y.firstBaseUpdate,w=y.lastBaseUpdate,Q=y.shared.pending;if(Q!==null){y.shared.pending=null;var X=Q,W=X.next;X.next=null,w===null?b=W:w.next=W,w=X;var re=a.alternate;re!==null&&(re=re.updateQueue,Q=re.lastBaseUpdate,Q!==w&&(Q===null?re.firstBaseUpdate=W:Q.next=W,re.lastBaseUpdate=X))}if(b!==null){var le=y.baseState;w=0,re=W=X=null,Q=b;do{var K=Q.lane&-536870913,ne=K!==Q.lane;if(ne?(Ye&K)===K:(m&K)===K){K!==0&&K===qa&&(lO=!0),re!==null&&(re=re.next={lane:0,tag:Q.tag,payload:Q.payload,callback:null,next:null});e:{var ke=a,Ee=Q;K=u;var ut=f;switch(Ee.tag){case 1:if(ke=Ee.payload,typeof ke=="function"){le=ke.call(ut,le,K);break e}le=ke;break e;case 3:ke.flags=ke.flags&-65537|128;case 0:if(ke=Ee.payload,K=typeof ke=="function"?ke.call(ut,le,K):ke,K==null)break e;le=p({},le,K);break e;case 2:Es=!0}}K=Q.callback,K!==null&&(a.flags|=64,ne&&(a.flags|=8192),ne=y.callbacks,ne===null?y.callbacks=[K]:ne.push(K))}else ne={lane:K,tag:Q.tag,payload:Q.payload,callback:Q.callback,next:null},re===null?(W=re=ne,X=le):re=re.next=ne,w|=K;if(Q=Q.next,Q===null){if(Q=y.shared.pending,Q===null)break;ne=Q,Q=ne.next,ne.next=null,y.lastBaseUpdate=ne,y.shared.pending=null}}while(!0);re===null&&(X=le),y.baseState=X,y.firstBaseUpdate=W,y.lastBaseUpdate=re,b===null&&(y.shared.lanes=0),js|=w,a.lanes=w,a.memoizedState=le}}function b_(a,u){if(typeof a!="function")throw Error(i(191,a));a.call(u)}function x_(a,u){var f=a.callbacks;if(f!==null)for(a.callbacks=null,a=0;a<f.length;a++)b_(f[a],u)}var Wa=N(null),Tf=N(0);function v_(a,u){a=Kr,R(Tf,a),R(Wa,u),Kr=a|u.baseLanes}function cO(){R(Tf,Kr),R(Wa,Wa.current)}function uO(){Kr=Tf.current,te(Wa),te(Tf)}var ni=N(null),Qi=null;function Ls(a){var u=a.alternate;R(Qt,Qt.current&1),R(ni,a),Qi===null&&(u===null||Wa.current!==null||u.memoizedState!==null)&&(Qi=a)}function hO(a){R(Qt,Qt.current),R(ni,a),Qi===null&&(Qi=a)}function S_(a){a.tag===22?(R(Qt,Qt.current),R(ni,a),Qi===null&&(Qi=a)):$s()}function $s(){R(Qt,Qt.current),R(ni,ni.current)}function ii(a){te(ni),Qi===a&&(Qi=null),te(Qt)}var Qt=N(0);function Cf(a){for(var u=a;u!==null;){if(u.tag===13){var f=u.memoizedState;if(f!==null&&(f=f.dehydrated,f===null||O0(f)||y0(f)))return u}else if(u.tag===19&&(u.memoizedProps.revealOrder==="forwards"||u.memoizedProps.revealOrder==="backwards"||u.memoizedProps.revealOrder==="unstable_legacy-backwards"||u.memoizedProps.revealOrder==="together")){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break;for(;u.sibling===null;){if(u.return===null||u.return===a)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}var Zr=0,je=null,lt=null,Mt=null,Qf=!1,Ha=!1,No=!1,Ef=0,Nc=0,Fa=null,xN=0;function Pt(){throw Error(i(321))}function fO(a,u){if(u===null)return!1;for(var f=0;f<u.length&&f<a.length;f++)if(!ei(a[f],u[f]))return!1;return!0}function dO(a,u,f,m,y,b){return Zr=b,je=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,Z.H=a===null||a.memoizedState===null?sk:CO,No=!1,b=f(m,y),No=!1,Ha&&(b=k_(u,f,m,y)),__(a),b}function __(a){Z.H=Xc;var u=lt!==null&&lt.next!==null;if(Zr=0,Mt=lt=je=null,Qf=!1,Nc=0,Fa=null,u)throw Error(i(300));a===null||Dt||(a=a.dependencies,a!==null&&xf(a)&&(Dt=!0))}function k_(a,u,f,m){je=a;var y=0;do{if(Ha&&(Fa=null),Nc=0,Ha=!1,25<=y)throw Error(i(301));if(y+=1,Mt=lt=null,a.updateQueue!=null){var b=a.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}Z.H=ok,b=u(f,m)}while(Ha);return b}function vN(){var a=Z.H,u=a.useState()[0];return u=typeof u.then=="function"?zc(u):u,a=a.useState()[0],(lt!==null?lt.memoizedState:null)!==a&&(je.flags|=1024),u}function pO(){var a=Ef!==0;return Ef=0,a}function mO(a,u,f){u.updateQueue=a.updateQueue,u.flags&=-2053,a.lanes&=~f}function gO(a){if(Qf){for(a=a.memoizedState;a!==null;){var u=a.queue;u!==null&&(u.pending=null),a=a.next}Qf=!1}Zr=0,Mt=lt=je=null,Ha=!1,Nc=Ef=0,Fa=null}function Pn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?je.memoizedState=Mt=a:Mt=Mt.next=a,Mt}function Et(){if(lt===null){var a=je.alternate;a=a!==null?a.memoizedState:null}else a=lt.next;var u=Mt===null?je.memoizedState:Mt.next;if(u!==null)Mt=u,lt=a;else{if(a===null)throw je.alternate===null?Error(i(467)):Error(i(310));lt=a,a={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},Mt===null?je.memoizedState=Mt=a:Mt=Mt.next=a}return Mt}function Af(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function zc(a){var u=Nc;return Nc+=1,Fa===null&&(Fa=[]),a=p_(Fa,a,u),u=je,(Mt===null?u.memoizedState:Mt.next)===null&&(u=u.alternate,Z.H=u===null||u.memoizedState===null?sk:CO),a}function Rf(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return zc(a);if(a.$$typeof===C)return sn(a)}throw Error(i(438,String(a)))}function OO(a){var u=null,f=je.updateQueue;if(f!==null&&(u=f.memoCache),u==null){var m=je.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(u={data:m.data.map(function(y){return y.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),f===null&&(f=Af(),je.updateQueue=f),f.memoCache=u,f=u.data[u.index],f===void 0)for(f=u.data[u.index]=Array(a),m=0;m<a;m++)f[m]=$;return u.index++,f}function qr(a,u){return typeof u=="function"?u(a):u}function Lf(a){var u=Et();return yO(u,lt,a)}function yO(a,u,f){var m=a.queue;if(m===null)throw Error(i(311));m.lastRenderedReducer=f;var y=a.baseQueue,b=m.pending;if(b!==null){if(y!==null){var w=y.next;y.next=b.next,b.next=w}u.baseQueue=y=b,m.pending=null}if(b=a.baseState,y===null)a.memoizedState=b;else{u=y.next;var Q=w=null,X=null,W=u,re=!1;do{var le=W.lane&-536870913;if(le!==W.lane?(Ye&le)===le:(Zr&le)===le){var K=W.revertLane;if(K===0)X!==null&&(X=X.next={lane:0,revertLane:0,gesture:null,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),le===qa&&(re=!0);else if((Zr&K)===K){W=W.next,K===qa&&(re=!0);continue}else le={lane:0,revertLane:W.revertLane,gesture:null,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},X===null?(Q=X=le,w=b):X=X.next=le,je.lanes|=K,js|=K;le=W.action,No&&f(b,le),b=W.hasEagerState?W.eagerState:f(b,le)}else K={lane:le,revertLane:W.revertLane,gesture:W.gesture,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null},X===null?(Q=X=K,w=b):X=X.next=K,je.lanes|=le,js|=le;W=W.next}while(W!==null&&W!==u);if(X===null?w=b:X.next=Q,!ei(b,a.memoizedState)&&(Dt=!0,re&&(f=Ua,f!==null)))throw f;a.memoizedState=b,a.baseState=w,a.baseQueue=X,m.lastRenderedState=b}return y===null&&(m.lanes=0),[a.memoizedState,m.dispatch]}function bO(a){var u=Et(),f=u.queue;if(f===null)throw Error(i(311));f.lastRenderedReducer=a;var m=f.dispatch,y=f.pending,b=u.memoizedState;if(y!==null){f.pending=null;var w=y=y.next;do b=a(b,w.action),w=w.next;while(w!==y);ei(b,u.memoizedState)||(Dt=!0),u.memoizedState=b,u.baseQueue===null&&(u.baseState=b),f.lastRenderedState=b}return[b,m]}function w_(a,u,f){var m=je,y=Et(),b=We;if(b){if(f===void 0)throw Error(i(407));f=f()}else f=u();var w=!ei((lt||y).memoizedState,f);if(w&&(y.memoizedState=f,Dt=!0),y=y.queue,SO(C_.bind(null,m,y,a),[a]),y.getSnapshot!==u||w||Mt!==null&&Mt.memoizedState.tag&1){if(m.flags|=2048,Ka(9,{destroy:void 0},T_.bind(null,m,y,f,u),null),pt===null)throw Error(i(349));b||(Zr&127)!==0||P_(m,u,f)}return f}function P_(a,u,f){a.flags|=16384,a={getSnapshot:u,value:f},u=je.updateQueue,u===null?(u=Af(),je.updateQueue=u,u.stores=[a]):(f=u.stores,f===null?u.stores=[a]:f.push(a))}function T_(a,u,f,m){u.value=f,u.getSnapshot=m,Q_(u)&&E_(a)}function C_(a,u,f){return f(function(){Q_(u)&&E_(a)})}function Q_(a){var u=a.getSnapshot;a=a.value;try{var f=u();return!ei(a,f)}catch{return!0}}function E_(a){var u=Qo(a,2);u!==null&&Bn(u,a,2)}function xO(a){var u=Pn();if(typeof a=="function"){var f=a;if(a=f(),No){Dn(!0);try{f()}finally{Dn(!1)}}}return u.memoizedState=u.baseState=a,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qr,lastRenderedState:a},u}function A_(a,u,f,m){return a.baseState=f,yO(a,lt,typeof m=="function"?m:qr)}function SN(a,u,f,m,y){if(Df(a))throw Error(i(485));if(a=u.action,a!==null){var b={payload:y,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){b.listeners.push(w)}};Z.T!==null?f(!0):b.isTransition=!1,m(b),f=u.pending,f===null?(b.next=u.pending=b,R_(u,b)):(b.next=f.next,u.pending=f.next=b)}}function R_(a,u){var f=u.action,m=u.payload,y=a.state;if(u.isTransition){var b=Z.T,w={};Z.T=w;try{var Q=f(y,m),X=Z.S;X!==null&&X(w,Q),L_(a,u,Q)}catch(W){vO(a,u,W)}finally{b!==null&&w.types!==null&&(b.types=w.types),Z.T=b}}else try{b=f(y,m),L_(a,u,b)}catch(W){vO(a,u,W)}}function L_(a,u,f){f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(function(m){$_(a,u,m)},function(m){return vO(a,u,m)}):$_(a,u,f)}function $_(a,u,f){u.status="fulfilled",u.value=f,M_(u),a.state=f,u=a.pending,u!==null&&(f=u.next,f===u?a.pending=null:(f=f.next,u.next=f,R_(a,f)))}function vO(a,u,f){var m=a.pending;if(a.pending=null,m!==null){m=m.next;do u.status="rejected",u.reason=f,M_(u),u=u.next;while(u!==m)}a.action=null}function M_(a){a=a.listeners;for(var u=0;u<a.length;u++)(0,a[u])()}function D_(a,u){return u}function j_(a,u){if(We){var f=pt.formState;if(f!==null){e:{var m=je;if(We){if(xt){t:{for(var y=xt,b=Ci;y.nodeType!==8;){if(!b){y=null;break t}if(y=Ei(y.nextSibling),y===null){y=null;break t}}b=y.data,y=b==="F!"||b==="F"?y:null}if(y){xt=Ei(y.nextSibling),m=y.data==="F!";break e}}Cs(m)}m=!1}m&&(u=f[0])}}return f=Pn(),f.memoizedState=f.baseState=u,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:D_,lastRenderedState:u},f.queue=m,f=nk.bind(null,je,m),m.dispatch=f,m=xO(!1),b=TO.bind(null,je,!1,m.queue),m=Pn(),y={state:u,dispatch:null,action:a,pending:null},m.queue=y,f=SN.bind(null,je,y,b,f),y.dispatch=f,m.memoizedState=a,[u,f,!1]}function N_(a){var u=Et();return z_(u,lt,a)}function z_(a,u,f){if(u=yO(a,u,D_)[0],a=Lf(qr)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var m=zc(u)}catch(w){throw w===Ya?_f:w}else m=u;u=Et();var y=u.queue,b=y.dispatch;return f!==u.memoizedState&&(je.flags|=2048,Ka(9,{destroy:void 0},_N.bind(null,y,f),null)),[m,b,a]}function _N(a,u){a.action=u}function I_(a){var u=Et(),f=lt;if(f!==null)return z_(u,f,a);Et(),u=u.memoizedState,f=Et();var m=f.queue.dispatch;return f.memoizedState=a,[u,m,!1]}function Ka(a,u,f,m){return a={tag:a,create:f,deps:m,inst:u,next:null},u=je.updateQueue,u===null&&(u=Af(),je.updateQueue=u),f=u.lastEffect,f===null?u.lastEffect=a.next=a:(m=f.next,f.next=a,a.next=m,u.lastEffect=a),a}function X_(){return Et().memoizedState}function $f(a,u,f,m){var y=Pn();je.flags|=a,y.memoizedState=Ka(1|u,{destroy:void 0},f,m===void 0?null:m)}function Mf(a,u,f,m){var y=Et();m=m===void 0?null:m;var b=y.memoizedState.inst;lt!==null&&m!==null&&fO(m,lt.memoizedState.deps)?y.memoizedState=Ka(u,b,f,m):(je.flags|=a,y.memoizedState=Ka(1|u,b,f,m))}function V_(a,u){$f(8390656,8,a,u)}function SO(a,u){Mf(2048,8,a,u)}function kN(a){je.flags|=4;var u=je.updateQueue;if(u===null)u=Af(),je.updateQueue=u,u.events=[a];else{var f=u.events;f===null?u.events=[a]:f.push(a)}}function B_(a){var u=Et().memoizedState;return kN({ref:u,nextImpl:a}),function(){if((it&2)!==0)throw Error(i(440));return u.impl.apply(void 0,arguments)}}function Z_(a,u){return Mf(4,2,a,u)}function q_(a,u){return Mf(4,4,a,u)}function U_(a,u){if(typeof u=="function"){a=a();var f=u(a);return function(){typeof f=="function"?f():u(null)}}if(u!=null)return a=a(),u.current=a,function(){u.current=null}}function Y_(a,u,f){f=f!=null?f.concat([a]):null,Mf(4,4,U_.bind(null,u,a),f)}function _O(){}function G_(a,u){var f=Et();u=u===void 0?null:u;var m=f.memoizedState;return u!==null&&fO(u,m[1])?m[0]:(f.memoizedState=[a,u],a)}function W_(a,u){var f=Et();u=u===void 0?null:u;var m=f.memoizedState;if(u!==null&&fO(u,m[1]))return m[0];if(m=a(),No){Dn(!0);try{a()}finally{Dn(!1)}}return f.memoizedState=[m,u],m}function kO(a,u,f){return f===void 0||(Zr&1073741824)!==0&&(Ye&261930)===0?a.memoizedState=u:(a.memoizedState=f,a=Hk(),je.lanes|=a,js|=a,f)}function H_(a,u,f,m){return ei(f,u)?f:Wa.current!==null?(a=kO(a,f,m),ei(a,u)||(Dt=!0),a):(Zr&42)===0||(Zr&1073741824)!==0&&(Ye&261930)===0?(Dt=!0,a.memoizedState=f):(a=Hk(),je.lanes|=a,js|=a,u)}function F_(a,u,f,m,y){var b=J.p;J.p=b!==0&&8>b?b:8;var w=Z.T,Q={};Z.T=Q,TO(a,!1,u,f);try{var X=y(),W=Z.S;if(W!==null&&W(Q,X),X!==null&&typeof X=="object"&&typeof X.then=="function"){var re=bN(X,m);Ic(a,u,re,oi(a))}else Ic(a,u,m,oi(a))}catch(le){Ic(a,u,{then:function(){},status:"rejected",reason:le},oi())}finally{J.p=b,w!==null&&Q.types!==null&&(w.types=Q.types),Z.T=w}}function wN(){}function wO(a,u,f,m){if(a.tag!==5)throw Error(i(476));var y=K_(a).queue;F_(a,y,u,ce,f===null?wN:function(){return J_(a),f(m)})}function K_(a){var u=a.memoizedState;if(u!==null)return u;u={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qr,lastRenderedState:ce},next:null};var f={};return u.next={memoizedState:f,baseState:f,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qr,lastRenderedState:f},next:null},a.memoizedState=u,a=a.alternate,a!==null&&(a.memoizedState=u),u}function J_(a){var u=K_(a);u.next===null&&(u=a.alternate.memoizedState),Ic(a,u.next.queue,{},oi())}function PO(){return sn(iu)}function ek(){return Et().memoizedState}function tk(){return Et().memoizedState}function PN(a){for(var u=a.return;u!==null;){switch(u.tag){case 24:case 3:var f=oi();a=As(f);var m=Rs(u,a,f);m!==null&&(Bn(m,u,f),Mc(m,u,f)),u={cache:tO()},a.payload=u;return}u=u.return}}function TN(a,u,f){var m=oi();f={lane:m,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null},Df(a)?ik(u,f):(f=Zg(a,u,f,m),f!==null&&(Bn(f,a,m),rk(f,u,m)))}function nk(a,u,f){var m=oi();Ic(a,u,f,m)}function Ic(a,u,f,m){var y={lane:m,revertLane:0,gesture:null,action:f,hasEagerState:!1,eagerState:null,next:null};if(Df(a))ik(u,y);else{var b=a.alternate;if(a.lanes===0&&(b===null||b.lanes===0)&&(b=u.lastRenderedReducer,b!==null))try{var w=u.lastRenderedState,Q=b(w,f);if(y.hasEagerState=!0,y.eagerState=Q,ei(Q,w))return gf(a,u,y,0),pt===null&&mf(),!1}catch{}if(f=Zg(a,u,y,m),f!==null)return Bn(f,a,m),rk(f,u,m),!0}return!1}function TO(a,u,f,m){if(m={lane:2,revertLane:s0(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Df(a)){if(u)throw Error(i(479))}else u=Zg(a,f,m,2),u!==null&&Bn(u,a,2)}function Df(a){var u=a.alternate;return a===je||u!==null&&u===je}function ik(a,u){Ha=Qf=!0;var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}function rk(a,u,f){if((f&4194048)!==0){var m=u.lanes;m&=a.pendingLanes,f|=m,u.lanes=f,cS(a,f)}}var Xc={readContext:sn,use:Rf,useCallback:Pt,useContext:Pt,useEffect:Pt,useImperativeHandle:Pt,useLayoutEffect:Pt,useInsertionEffect:Pt,useMemo:Pt,useReducer:Pt,useRef:Pt,useState:Pt,useDebugValue:Pt,useDeferredValue:Pt,useTransition:Pt,useSyncExternalStore:Pt,useId:Pt,useHostTransitionStatus:Pt,useFormState:Pt,useActionState:Pt,useOptimistic:Pt,useMemoCache:Pt,useCacheRefresh:Pt};Xc.useEffectEvent=Pt;var sk={readContext:sn,use:Rf,useCallback:function(a,u){return Pn().memoizedState=[a,u===void 0?null:u],a},useContext:sn,useEffect:V_,useImperativeHandle:function(a,u,f){f=f!=null?f.concat([a]):null,$f(4194308,4,U_.bind(null,u,a),f)},useLayoutEffect:function(a,u){return $f(4194308,4,a,u)},useInsertionEffect:function(a,u){$f(4,2,a,u)},useMemo:function(a,u){var f=Pn();u=u===void 0?null:u;var m=a();if(No){Dn(!0);try{a()}finally{Dn(!1)}}return f.memoizedState=[m,u],m},useReducer:function(a,u,f){var m=Pn();if(f!==void 0){var y=f(u);if(No){Dn(!0);try{f(u)}finally{Dn(!1)}}}else y=u;return m.memoizedState=m.baseState=y,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:y},m.queue=a,a=a.dispatch=TN.bind(null,je,a),[m.memoizedState,a]},useRef:function(a){var u=Pn();return a={current:a},u.memoizedState=a},useState:function(a){a=xO(a);var u=a.queue,f=nk.bind(null,je,u);return u.dispatch=f,[a.memoizedState,f]},useDebugValue:_O,useDeferredValue:function(a,u){var f=Pn();return kO(f,a,u)},useTransition:function(){var a=xO(!1);return a=F_.bind(null,je,a.queue,!0,!1),Pn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,u,f){var m=je,y=Pn();if(We){if(f===void 0)throw Error(i(407));f=f()}else{if(f=u(),pt===null)throw Error(i(349));(Ye&127)!==0||P_(m,u,f)}y.memoizedState=f;var b={value:f,getSnapshot:u};return y.queue=b,V_(C_.bind(null,m,b,a),[a]),m.flags|=2048,Ka(9,{destroy:void 0},T_.bind(null,m,b,f,u),null),f},useId:function(){var a=Pn(),u=pt.identifierPrefix;if(We){var f=lr,m=ar;f=(m&~(1<<32-dt(m)-1)).toString(32)+f,u="_"+u+"R_"+f,f=Ef++,0<f&&(u+="H"+f.toString(32)),u+="_"}else f=xN++,u="_"+u+"r_"+f.toString(32)+"_";return a.memoizedState=u},useHostTransitionStatus:PO,useFormState:j_,useActionState:j_,useOptimistic:function(a){var u=Pn();u.memoizedState=u.baseState=a;var f={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=f,u=TO.bind(null,je,!0,f),f.dispatch=u,[a,u]},useMemoCache:OO,useCacheRefresh:function(){return Pn().memoizedState=PN.bind(null,je)},useEffectEvent:function(a){var u=Pn(),f={impl:a};return u.memoizedState=f,function(){if((it&2)!==0)throw Error(i(440));return f.impl.apply(void 0,arguments)}}},CO={readContext:sn,use:Rf,useCallback:G_,useContext:sn,useEffect:SO,useImperativeHandle:Y_,useInsertionEffect:Z_,useLayoutEffect:q_,useMemo:W_,useReducer:Lf,useRef:X_,useState:function(){return Lf(qr)},useDebugValue:_O,useDeferredValue:function(a,u){var f=Et();return H_(f,lt.memoizedState,a,u)},useTransition:function(){var a=Lf(qr)[0],u=Et().memoizedState;return[typeof a=="boolean"?a:zc(a),u]},useSyncExternalStore:w_,useId:ek,useHostTransitionStatus:PO,useFormState:N_,useActionState:N_,useOptimistic:function(a,u){var f=Et();return A_(f,lt,a,u)},useMemoCache:OO,useCacheRefresh:tk};CO.useEffectEvent=B_;var ok={readContext:sn,use:Rf,useCallback:G_,useContext:sn,useEffect:SO,useImperativeHandle:Y_,useInsertionEffect:Z_,useLayoutEffect:q_,useMemo:W_,useReducer:bO,useRef:X_,useState:function(){return bO(qr)},useDebugValue:_O,useDeferredValue:function(a,u){var f=Et();return lt===null?kO(f,a,u):H_(f,lt.memoizedState,a,u)},useTransition:function(){var a=bO(qr)[0],u=Et().memoizedState;return[typeof a=="boolean"?a:zc(a),u]},useSyncExternalStore:w_,useId:ek,useHostTransitionStatus:PO,useFormState:I_,useActionState:I_,useOptimistic:function(a,u){var f=Et();return lt!==null?A_(f,lt,a,u):(f.baseState=a,[a,f.queue.dispatch])},useMemoCache:OO,useCacheRefresh:tk};ok.useEffectEvent=B_;function QO(a,u,f,m){u=a.memoizedState,f=f(m,u),f=f==null?u:p({},u,f),a.memoizedState=f,a.lanes===0&&(a.updateQueue.baseState=f)}var EO={enqueueSetState:function(a,u,f){a=a._reactInternals;var m=oi(),y=As(m);y.payload=u,f!=null&&(y.callback=f),u=Rs(a,y,m),u!==null&&(Bn(u,a,m),Mc(u,a,m))},enqueueReplaceState:function(a,u,f){a=a._reactInternals;var m=oi(),y=As(m);y.tag=1,y.payload=u,f!=null&&(y.callback=f),u=Rs(a,y,m),u!==null&&(Bn(u,a,m),Mc(u,a,m))},enqueueForceUpdate:function(a,u){a=a._reactInternals;var f=oi(),m=As(f);m.tag=2,u!=null&&(m.callback=u),u=Rs(a,m,f),u!==null&&(Bn(u,a,f),Mc(u,a,f))}};function ak(a,u,f,m,y,b,w){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(m,b,w):u.prototype&&u.prototype.isPureReactComponent?!Tc(f,m)||!Tc(y,b):!0}function lk(a,u,f,m){a=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(f,m),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(f,m),u.state!==a&&EO.enqueueReplaceState(u,u.state,null)}function zo(a,u){var f=u;if("ref"in u){f={};for(var m in u)m!=="ref"&&(f[m]=u[m])}if(a=a.defaultProps){f===u&&(f=p({},f));for(var y in a)f[y]===void 0&&(f[y]=a[y])}return f}function ck(a){pf(a)}function uk(a){console.error(a)}function hk(a){pf(a)}function jf(a,u){try{var f=a.onUncaughtError;f(u.value,{componentStack:u.stack})}catch(m){setTimeout(function(){throw m})}}function fk(a,u,f){try{var m=a.onCaughtError;m(f.value,{componentStack:f.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function AO(a,u,f){return f=As(f),f.tag=3,f.payload={element:null},f.callback=function(){jf(a,u)},f}function dk(a){return a=As(a),a.tag=3,a}function pk(a,u,f,m){var y=f.type.getDerivedStateFromError;if(typeof y=="function"){var b=m.value;a.payload=function(){return y(b)},a.callback=function(){fk(u,f,m)}}var w=f.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(a.callback=function(){fk(u,f,m),typeof y!="function"&&(Ns===null?Ns=new Set([this]):Ns.add(this));var Q=m.stack;this.componentDidCatch(m.value,{componentStack:Q!==null?Q:""})})}function CN(a,u,f,m,y){if(f.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(u=f.alternate,u!==null&&Za(u,f,y,!0),f=ni.current,f!==null){switch(f.tag){case 31:case 13:return Qi===null?Wf():f.alternate===null&&Tt===0&&(Tt=3),f.flags&=-257,f.flags|=65536,f.lanes=y,m===kf?f.flags|=16384:(u=f.updateQueue,u===null?f.updateQueue=new Set([m]):u.add(m),n0(a,m,y)),!1;case 22:return f.flags|=65536,m===kf?f.flags|=16384:(u=f.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([m])},f.updateQueue=u):(f=u.retryQueue,f===null?u.retryQueue=new Set([m]):f.add(m)),n0(a,m,y)),!1}throw Error(i(435,f.tag))}return n0(a,m,y),Wf(),!1}if(We)return u=ni.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=y,m!==Hg&&(a=Error(i(422),{cause:m}),Ec(wi(a,f)))):(m!==Hg&&(u=Error(i(423),{cause:m}),Ec(wi(u,f))),a=a.current.alternate,a.flags|=65536,y&=-y,a.lanes|=y,m=wi(m,f),y=AO(a.stateNode,m,y),aO(a,y),Tt!==4&&(Tt=2)),!1;var b=Error(i(520),{cause:m});if(b=wi(b,f),Wc===null?Wc=[b]:Wc.push(b),Tt!==4&&(Tt=2),u===null)return!0;m=wi(m,f),f=u;do{switch(f.tag){case 3:return f.flags|=65536,a=y&-y,f.lanes|=a,a=AO(f.stateNode,m,a),aO(f,a),!1;case 1:if(u=f.type,b=f.stateNode,(f.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(Ns===null||!Ns.has(b))))return f.flags|=65536,y&=-y,f.lanes|=y,y=dk(y),pk(y,a,f,m),aO(f,y),!1}f=f.return}while(f!==null);return!1}var RO=Error(i(461)),Dt=!1;function on(a,u,f,m){u.child=a===null?y_(u,null,f,m):jo(u,a.child,f,m)}function mk(a,u,f,m,y){f=f.render;var b=u.ref;if("ref"in m){var w={};for(var Q in m)Q!=="ref"&&(w[Q]=m[Q])}else w=m;return Lo(u),m=dO(a,u,f,w,b,y),Q=pO(),a!==null&&!Dt?(mO(a,u,y),Ur(a,u,y)):(We&&Q&&Gg(u),u.flags|=1,on(a,u,m,y),u.child)}function gk(a,u,f,m,y){if(a===null){var b=f.type;return typeof b=="function"&&!qg(b)&&b.defaultProps===void 0&&f.compare===null?(u.tag=15,u.type=b,Ok(a,u,b,m,y)):(a=yf(f.type,null,m,u,u.mode,y),a.ref=u.ref,a.return=u,u.child=a)}if(b=a.child,!IO(a,y)){var w=b.memoizedProps;if(f=f.compare,f=f!==null?f:Tc,f(w,m)&&a.ref===u.ref)return Ur(a,u,y)}return u.flags|=1,a=Ir(b,m),a.ref=u.ref,a.return=u,u.child=a}function Ok(a,u,f,m,y){if(a!==null){var b=a.memoizedProps;if(Tc(b,m)&&a.ref===u.ref)if(Dt=!1,u.pendingProps=m=b,IO(a,y))(a.flags&131072)!==0&&(Dt=!0);else return u.lanes=a.lanes,Ur(a,u,y)}return LO(a,u,f,m,y)}function yk(a,u,f,m){var y=m.children,b=a!==null?a.memoizedState:null;if(a===null&&u.stateNode===null&&(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((u.flags&128)!==0){if(b=b!==null?b.baseLanes|f:f,a!==null){for(m=u.child=a.child,y=0;m!==null;)y=y|m.lanes|m.childLanes,m=m.sibling;m=y&~b}else m=0,u.child=null;return bk(a,u,b,f,m)}if((f&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},a!==null&&Sf(u,b!==null?b.cachePool:null),b!==null?v_(u,b):cO(),S_(u);else return m=u.lanes=536870912,bk(a,u,b!==null?b.baseLanes|f:f,f,m)}else b!==null?(Sf(u,b.cachePool),v_(u,b),$s(),u.memoizedState=null):(a!==null&&Sf(u,null),cO(),$s());return on(a,u,y,f),u.child}function Vc(a,u){return a!==null&&a.tag===22||u.stateNode!==null||(u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.sibling}function bk(a,u,f,m,y){var b=iO();return b=b===null?null:{parent:$t._currentValue,pool:b},u.memoizedState={baseLanes:f,cachePool:b},a!==null&&Sf(u,null),cO(),S_(u),a!==null&&Za(a,u,m,!0),u.childLanes=y,null}function Nf(a,u){return u=If({mode:u.mode,children:u.children},a.mode),u.ref=a.ref,a.child=u,u.return=a,u}function xk(a,u,f){return jo(u,a.child,null,f),a=Nf(u,u.pendingProps),a.flags|=2,ii(u),u.memoizedState=null,a}function QN(a,u,f){var m=u.pendingProps,y=(u.flags&128)!==0;if(u.flags&=-129,a===null){if(We){if(m.mode==="hidden")return a=Nf(u,m),u.lanes=536870912,Vc(null,a);if(hO(u),(a=xt)?(a=Rw(a,Ci),a=a!==null&&a.data==="&"?a:null,a!==null&&(u.memoizedState={dehydrated:a,treeContext:Ps!==null?{id:ar,overflow:lr}:null,retryLane:536870912,hydrationErrors:null},f=i_(a),f.return=u,u.child=f,rn=u,xt=null)):a=null,a===null)throw Cs(u);return u.lanes=536870912,null}return Nf(u,m)}var b=a.memoizedState;if(b!==null){var w=b.dehydrated;if(hO(u),y)if(u.flags&256)u.flags&=-257,u=xk(a,u,f);else if(u.memoizedState!==null)u.child=a.child,u.flags|=128,u=null;else throw Error(i(558));else if(Dt||Za(a,u,f,!1),y=(f&a.childLanes)!==0,Dt||y){if(m=pt,m!==null&&(w=uS(m,f),w!==0&&w!==b.retryLane))throw b.retryLane=w,Qo(a,w),Bn(m,a,w),RO;Wf(),u=xk(a,u,f)}else a=b.treeContext,xt=Ei(w.nextSibling),rn=u,We=!0,Ts=null,Ci=!1,a!==null&&o_(u,a),u=Nf(u,m),u.flags|=4096;return u}return a=Ir(a.child,{mode:m.mode,children:m.children}),a.ref=u.ref,u.child=a,a.return=u,a}function zf(a,u){var f=u.ref;if(f===null)a!==null&&a.ref!==null&&(u.flags|=4194816);else{if(typeof f!="function"&&typeof f!="object")throw Error(i(284));(a===null||a.ref!==f)&&(u.flags|=4194816)}}function LO(a,u,f,m,y){return Lo(u),f=dO(a,u,f,m,void 0,y),m=pO(),a!==null&&!Dt?(mO(a,u,y),Ur(a,u,y)):(We&&m&&Gg(u),u.flags|=1,on(a,u,f,y),u.child)}function vk(a,u,f,m,y,b){return Lo(u),u.updateQueue=null,f=k_(u,m,f,y),__(a),m=pO(),a!==null&&!Dt?(mO(a,u,b),Ur(a,u,b)):(We&&m&&Gg(u),u.flags|=1,on(a,u,f,b),u.child)}function Sk(a,u,f,m,y){if(Lo(u),u.stateNode===null){var b=Ia,w=f.contextType;typeof w=="object"&&w!==null&&(b=sn(w)),b=new f(m,b),u.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=EO,u.stateNode=b,b._reactInternals=u,b=u.stateNode,b.props=m,b.state=u.memoizedState,b.refs={},sO(u),w=f.contextType,b.context=typeof w=="object"&&w!==null?sn(w):Ia,b.state=u.memoizedState,w=f.getDerivedStateFromProps,typeof w=="function"&&(QO(u,f,w,m),b.state=u.memoizedState),typeof f.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(w=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),w!==b.state&&EO.enqueueReplaceState(b,b.state,null),jc(u,m,b,y),Dc(),b.state=u.memoizedState),typeof b.componentDidMount=="function"&&(u.flags|=4194308),m=!0}else if(a===null){b=u.stateNode;var Q=u.memoizedProps,X=zo(f,Q);b.props=X;var W=b.context,re=f.contextType;w=Ia,typeof re=="object"&&re!==null&&(w=sn(re));var le=f.getDerivedStateFromProps;re=typeof le=="function"||typeof b.getSnapshotBeforeUpdate=="function",Q=u.pendingProps!==Q,re||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(Q||W!==w)&&lk(u,b,m,w),Es=!1;var K=u.memoizedState;b.state=K,jc(u,m,b,y),Dc(),W=u.memoizedState,Q||K!==W||Es?(typeof le=="function"&&(QO(u,f,le,m),W=u.memoizedState),(X=Es||ak(u,f,X,m,K,W,w))?(re||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(u.flags|=4194308)):(typeof b.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=m,u.memoizedState=W),b.props=m,b.state=W,b.context=w,m=X):(typeof b.componentDidMount=="function"&&(u.flags|=4194308),m=!1)}else{b=u.stateNode,oO(a,u),w=u.memoizedProps,re=zo(f,w),b.props=re,le=u.pendingProps,K=b.context,W=f.contextType,X=Ia,typeof W=="object"&&W!==null&&(X=sn(W)),Q=f.getDerivedStateFromProps,(W=typeof Q=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(w!==le||K!==X)&&lk(u,b,m,X),Es=!1,K=u.memoizedState,b.state=K,jc(u,m,b,y),Dc();var ne=u.memoizedState;w!==le||K!==ne||Es||a!==null&&a.dependencies!==null&&xf(a.dependencies)?(typeof Q=="function"&&(QO(u,f,Q,m),ne=u.memoizedState),(re=Es||ak(u,f,re,m,K,ne,X)||a!==null&&a.dependencies!==null&&xf(a.dependencies))?(W||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(m,ne,X),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(m,ne,X)),typeof b.componentDidUpdate=="function"&&(u.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof b.componentDidUpdate!="function"||w===a.memoizedProps&&K===a.memoizedState||(u.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||w===a.memoizedProps&&K===a.memoizedState||(u.flags|=1024),u.memoizedProps=m,u.memoizedState=ne),b.props=m,b.state=ne,b.context=X,m=re):(typeof b.componentDidUpdate!="function"||w===a.memoizedProps&&K===a.memoizedState||(u.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||w===a.memoizedProps&&K===a.memoizedState||(u.flags|=1024),m=!1)}return b=m,zf(a,u),m=(u.flags&128)!==0,b||m?(b=u.stateNode,f=m&&typeof f.getDerivedStateFromError!="function"?null:b.render(),u.flags|=1,a!==null&&m?(u.child=jo(u,a.child,null,y),u.child=jo(u,null,f,y)):on(a,u,f,y),u.memoizedState=b.state,a=u.child):a=Ur(a,u,y),a}function _k(a,u,f,m){return Ao(),u.flags|=256,on(a,u,f,m),u.child}var $O={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function MO(a){return{baseLanes:a,cachePool:f_()}}function DO(a,u,f){return a=a!==null?a.childLanes&~f:0,u&&(a|=si),a}function kk(a,u,f){var m=u.pendingProps,y=!1,b=(u.flags&128)!==0,w;if((w=b)||(w=a!==null&&a.memoizedState===null?!1:(Qt.current&2)!==0),w&&(y=!0,u.flags&=-129),w=(u.flags&32)!==0,u.flags&=-33,a===null){if(We){if(y?Ls(u):$s(),(a=xt)?(a=Rw(a,Ci),a=a!==null&&a.data!=="&"?a:null,a!==null&&(u.memoizedState={dehydrated:a,treeContext:Ps!==null?{id:ar,overflow:lr}:null,retryLane:536870912,hydrationErrors:null},f=i_(a),f.return=u,u.child=f,rn=u,xt=null)):a=null,a===null)throw Cs(u);return y0(a)?u.lanes=32:u.lanes=536870912,null}var Q=m.children;return m=m.fallback,y?($s(),y=u.mode,Q=If({mode:"hidden",children:Q},y),m=Eo(m,y,f,null),Q.return=u,m.return=u,Q.sibling=m,u.child=Q,m=u.child,m.memoizedState=MO(f),m.childLanes=DO(a,w,f),u.memoizedState=$O,Vc(null,m)):(Ls(u),jO(u,Q))}var X=a.memoizedState;if(X!==null&&(Q=X.dehydrated,Q!==null)){if(b)u.flags&256?(Ls(u),u.flags&=-257,u=NO(a,u,f)):u.memoizedState!==null?($s(),u.child=a.child,u.flags|=128,u=null):($s(),Q=m.fallback,y=u.mode,m=If({mode:"visible",children:m.children},y),Q=Eo(Q,y,f,null),Q.flags|=2,m.return=u,Q.return=u,m.sibling=Q,u.child=m,jo(u,a.child,null,f),m=u.child,m.memoizedState=MO(f),m.childLanes=DO(a,w,f),u.memoizedState=$O,u=Vc(null,m));else if(Ls(u),y0(Q)){if(w=Q.nextSibling&&Q.nextSibling.dataset,w)var W=w.dgst;w=W,m=Error(i(419)),m.stack="",m.digest=w,Ec({value:m,source:null,stack:null}),u=NO(a,u,f)}else if(Dt||Za(a,u,f,!1),w=(f&a.childLanes)!==0,Dt||w){if(w=pt,w!==null&&(m=uS(w,f),m!==0&&m!==X.retryLane))throw X.retryLane=m,Qo(a,m),Bn(w,a,m),RO;O0(Q)||Wf(),u=NO(a,u,f)}else O0(Q)?(u.flags|=192,u.child=a.child,u=null):(a=X.treeContext,xt=Ei(Q.nextSibling),rn=u,We=!0,Ts=null,Ci=!1,a!==null&&o_(u,a),u=jO(u,m.children),u.flags|=4096);return u}return y?($s(),Q=m.fallback,y=u.mode,X=a.child,W=X.sibling,m=Ir(X,{mode:"hidden",children:m.children}),m.subtreeFlags=X.subtreeFlags&65011712,W!==null?Q=Ir(W,Q):(Q=Eo(Q,y,f,null),Q.flags|=2),Q.return=u,m.return=u,m.sibling=Q,u.child=m,Vc(null,m),m=u.child,Q=a.child.memoizedState,Q===null?Q=MO(f):(y=Q.cachePool,y!==null?(X=$t._currentValue,y=y.parent!==X?{parent:X,pool:X}:y):y=f_(),Q={baseLanes:Q.baseLanes|f,cachePool:y}),m.memoizedState=Q,m.childLanes=DO(a,w,f),u.memoizedState=$O,Vc(a.child,m)):(Ls(u),f=a.child,a=f.sibling,f=Ir(f,{mode:"visible",children:m.children}),f.return=u,f.sibling=null,a!==null&&(w=u.deletions,w===null?(u.deletions=[a],u.flags|=16):w.push(a)),u.child=f,u.memoizedState=null,f)}function jO(a,u){return u=If({mode:"visible",children:u},a.mode),u.return=a,a.child=u}function If(a,u){return a=ti(22,a,null,u),a.lanes=0,a}function NO(a,u,f){return jo(u,a.child,null,f),a=jO(u,u.pendingProps.children),a.flags|=2,u.memoizedState=null,a}function wk(a,u,f){a.lanes|=u;var m=a.alternate;m!==null&&(m.lanes|=u),Jg(a.return,u,f)}function zO(a,u,f,m,y,b){var w=a.memoizedState;w===null?a.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:m,tail:f,tailMode:y,treeForkCount:b}:(w.isBackwards=u,w.rendering=null,w.renderingStartTime=0,w.last=m,w.tail=f,w.tailMode=y,w.treeForkCount=b)}function Pk(a,u,f){var m=u.pendingProps,y=m.revealOrder,b=m.tail;m=m.children;var w=Qt.current,Q=(w&2)!==0;if(Q?(w=w&1|2,u.flags|=128):w&=1,R(Qt,w),on(a,u,m,f),m=We?Qc:0,!Q&&a!==null&&(a.flags&128)!==0)e:for(a=u.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&wk(a,f,u);else if(a.tag===19)wk(a,f,u);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===u)break e;for(;a.sibling===null;){if(a.return===null||a.return===u)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(y){case"forwards":for(f=u.child,y=null;f!==null;)a=f.alternate,a!==null&&Cf(a)===null&&(y=f),f=f.sibling;f=y,f===null?(y=u.child,u.child=null):(y=f.sibling,f.sibling=null),zO(u,!1,y,f,b,m);break;case"backwards":case"unstable_legacy-backwards":for(f=null,y=u.child,u.child=null;y!==null;){if(a=y.alternate,a!==null&&Cf(a)===null){u.child=y;break}a=y.sibling,y.sibling=f,f=y,y=a}zO(u,!0,f,null,b,m);break;case"together":zO(u,!1,null,null,void 0,m);break;default:u.memoizedState=null}return u.child}function Ur(a,u,f){if(a!==null&&(u.dependencies=a.dependencies),js|=u.lanes,(f&u.childLanes)===0)if(a!==null){if(Za(a,u,f,!1),(f&u.childLanes)===0)return null}else return null;if(a!==null&&u.child!==a.child)throw Error(i(153));if(u.child!==null){for(a=u.child,f=Ir(a,a.pendingProps),u.child=f,f.return=u;a.sibling!==null;)a=a.sibling,f=f.sibling=Ir(a,a.pendingProps),f.return=u;f.sibling=null}return u.child}function IO(a,u){return(a.lanes&u)!==0?!0:(a=a.dependencies,!!(a!==null&&xf(a)))}function EN(a,u,f){switch(u.tag){case 3:et(u,u.stateNode.containerInfo),Qs(u,$t,a.memoizedState.cache),Ao();break;case 27:case 5:Ht(u);break;case 4:et(u,u.stateNode.containerInfo);break;case 10:Qs(u,u.type,u.memoizedProps.value);break;case 31:if(u.memoizedState!==null)return u.flags|=128,hO(u),null;break;case 13:var m=u.memoizedState;if(m!==null)return m.dehydrated!==null?(Ls(u),u.flags|=128,null):(f&u.child.childLanes)!==0?kk(a,u,f):(Ls(u),a=Ur(a,u,f),a!==null?a.sibling:null);Ls(u);break;case 19:var y=(a.flags&128)!==0;if(m=(f&u.childLanes)!==0,m||(Za(a,u,f,!1),m=(f&u.childLanes)!==0),y){if(m)return Pk(a,u,f);u.flags|=128}if(y=u.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),R(Qt,Qt.current),m)break;return null;case 22:return u.lanes=0,yk(a,u,f,u.pendingProps);case 24:Qs(u,$t,a.memoizedState.cache)}return Ur(a,u,f)}function Tk(a,u,f){if(a!==null)if(a.memoizedProps!==u.pendingProps)Dt=!0;else{if(!IO(a,f)&&(u.flags&128)===0)return Dt=!1,EN(a,u,f);Dt=(a.flags&131072)!==0}else Dt=!1,We&&(u.flags&1048576)!==0&&s_(u,Qc,u.index);switch(u.lanes=0,u.tag){case 16:e:{var m=u.pendingProps;if(a=Mo(u.elementType),u.type=a,typeof a=="function")qg(a)?(m=zo(a,m),u.tag=1,u=Sk(null,u,a,m,f)):(u.tag=0,u=LO(null,u,a,m,f));else{if(a!=null){var y=a.$$typeof;if(y===D){u.tag=11,u=mk(null,u,a,m,f);break e}else if(y===M){u.tag=14,u=gk(null,u,a,m,f);break e}}throw u=F(a)||a,Error(i(306,u,""))}}return u;case 0:return LO(a,u,u.type,u.pendingProps,f);case 1:return m=u.type,y=zo(m,u.pendingProps),Sk(a,u,m,y,f);case 3:e:{if(et(u,u.stateNode.containerInfo),a===null)throw Error(i(387));m=u.pendingProps;var b=u.memoizedState;y=b.element,oO(a,u),jc(u,m,null,f);var w=u.memoizedState;if(m=w.cache,Qs(u,$t,m),m!==b.cache&&eO(u,[$t],f,!0),Dc(),m=w.element,b.isDehydrated)if(b={element:m,isDehydrated:!1,cache:w.cache},u.updateQueue.baseState=b,u.memoizedState=b,u.flags&256){u=_k(a,u,m,f);break e}else if(m!==y){y=wi(Error(i(424)),u),Ec(y),u=_k(a,u,m,f);break e}else for(a=u.stateNode.containerInfo,a.nodeType===9?a=a.body:a=a.nodeName==="HTML"?a.ownerDocument.body:a,xt=Ei(a.firstChild),rn=u,We=!0,Ts=null,Ci=!0,f=y_(u,null,m,f),u.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(Ao(),m===y){u=Ur(a,u,f);break e}on(a,u,m,f)}u=u.child}return u;case 26:return zf(a,u),a===null?(f=Nw(u.type,null,u.pendingProps,null))?u.memoizedState=f:We||(f=u.type,a=u.pendingProps,m=nd(xe.current).createElement(f),m[nn]=u,m[jn]=a,an(m,f,a),Ft(m),u.stateNode=m):u.memoizedState=Nw(u.type,a.memoizedProps,u.pendingProps,a.memoizedState),null;case 27:return Ht(u),a===null&&We&&(m=u.stateNode=Mw(u.type,u.pendingProps,xe.current),rn=u,Ci=!0,y=xt,Vs(u.type)?(b0=y,xt=Ei(m.firstChild)):xt=y),on(a,u,u.pendingProps.children,f),zf(a,u),a===null&&(u.flags|=4194304),u.child;case 5:return a===null&&We&&((y=m=xt)&&(m=o3(m,u.type,u.pendingProps,Ci),m!==null?(u.stateNode=m,rn=u,xt=Ei(m.firstChild),Ci=!1,y=!0):y=!1),y||Cs(u)),Ht(u),y=u.type,b=u.pendingProps,w=a!==null?a.memoizedProps:null,m=b.children,p0(y,b)?m=null:w!==null&&p0(y,w)&&(u.flags|=32),u.memoizedState!==null&&(y=dO(a,u,vN,null,null,f),iu._currentValue=y),zf(a,u),on(a,u,m,f),u.child;case 6:return a===null&&We&&((a=f=xt)&&(f=a3(f,u.pendingProps,Ci),f!==null?(u.stateNode=f,rn=u,xt=null,a=!0):a=!1),a||Cs(u)),null;case 13:return kk(a,u,f);case 4:return et(u,u.stateNode.containerInfo),m=u.pendingProps,a===null?u.child=jo(u,null,m,f):on(a,u,m,f),u.child;case 11:return mk(a,u,u.type,u.pendingProps,f);case 7:return on(a,u,u.pendingProps,f),u.child;case 8:return on(a,u,u.pendingProps.children,f),u.child;case 12:return on(a,u,u.pendingProps.children,f),u.child;case 10:return m=u.pendingProps,Qs(u,u.type,m.value),on(a,u,m.children,f),u.child;case 9:return y=u.type._context,m=u.pendingProps.children,Lo(u),y=sn(y),m=m(y),u.flags|=1,on(a,u,m,f),u.child;case 14:return gk(a,u,u.type,u.pendingProps,f);case 15:return Ok(a,u,u.type,u.pendingProps,f);case 19:return Pk(a,u,f);case 31:return QN(a,u,f);case 22:return yk(a,u,f,u.pendingProps);case 24:return Lo(u),m=sn($t),a===null?(y=iO(),y===null&&(y=pt,b=tO(),y.pooledCache=b,b.refCount++,b!==null&&(y.pooledCacheLanes|=f),y=b),u.memoizedState={parent:m,cache:y},sO(u),Qs(u,$t,y)):((a.lanes&f)!==0&&(oO(a,u),jc(u,null,null,f),Dc()),y=a.memoizedState,b=u.memoizedState,y.parent!==m?(y={parent:m,cache:m},u.memoizedState=y,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=y),Qs(u,$t,m)):(m=b.cache,Qs(u,$t,m),m!==y.cache&&eO(u,[$t],f,!0))),on(a,u,u.pendingProps.children,f),u.child;case 29:throw u.pendingProps}throw Error(i(156,u.tag))}function Yr(a){a.flags|=4}function XO(a,u,f,m,y){if((u=(a.mode&32)!==0)&&(u=!1),u){if(a.flags|=16777216,(y&335544128)===y)if(a.stateNode.complete)a.flags|=8192;else if(ew())a.flags|=8192;else throw Do=kf,rO}else a.flags&=-16777217}function Ck(a,u){if(u.type!=="stylesheet"||(u.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!Bw(u))if(ew())a.flags|=8192;else throw Do=kf,rO}function Xf(a,u){u!==null&&(a.flags|=4),a.flags&16384&&(u=a.tag!==22?aS():536870912,a.lanes|=u,nl|=u)}function Bc(a,u){if(!We)switch(a.tailMode){case"hidden":u=a.tail;for(var f=null;u!==null;)u.alternate!==null&&(f=u),u=u.sibling;f===null?a.tail=null:f.sibling=null;break;case"collapsed":f=a.tail;for(var m=null;f!==null;)f.alternate!==null&&(m=f),f=f.sibling;m===null?u||a.tail===null?a.tail=null:a.tail.sibling=null:m.sibling=null}}function vt(a){var u=a.alternate!==null&&a.alternate.child===a.child,f=0,m=0;if(u)for(var y=a.child;y!==null;)f|=y.lanes|y.childLanes,m|=y.subtreeFlags&65011712,m|=y.flags&65011712,y.return=a,y=y.sibling;else for(y=a.child;y!==null;)f|=y.lanes|y.childLanes,m|=y.subtreeFlags,m|=y.flags,y.return=a,y=y.sibling;return a.subtreeFlags|=m,a.childLanes=f,u}function AN(a,u,f){var m=u.pendingProps;switch(Wg(u),u.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(u),null;case 1:return vt(u),null;case 3:return f=u.stateNode,m=null,a!==null&&(m=a.memoizedState.cache),u.memoizedState.cache!==m&&(u.flags|=2048),Br($t),$e(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(a===null||a.child===null)&&(Ba(u)?Yr(u):a===null||a.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,Fg())),vt(u),null;case 26:var y=u.type,b=u.memoizedState;return a===null?(Yr(u),b!==null?(vt(u),Ck(u,b)):(vt(u),XO(u,y,null,m,f))):b?b!==a.memoizedState?(Yr(u),vt(u),Ck(u,b)):(vt(u),u.flags&=-16777217):(a=a.memoizedProps,a!==m&&Yr(u),vt(u),XO(u,y,a,m,f)),null;case 27:if(_n(u),f=xe.current,y=u.type,a!==null&&u.stateNode!=null)a.memoizedProps!==m&&Yr(u);else{if(!m){if(u.stateNode===null)throw Error(i(166));return vt(u),null}a=fe.current,Ba(u)?a_(u):(a=Mw(y,m,f),u.stateNode=a,Yr(u))}return vt(u),null;case 5:if(_n(u),y=u.type,a!==null&&u.stateNode!=null)a.memoizedProps!==m&&Yr(u);else{if(!m){if(u.stateNode===null)throw Error(i(166));return vt(u),null}if(b=fe.current,Ba(u))a_(u);else{var w=nd(xe.current);switch(b){case 1:b=w.createElementNS("http://www.w3.org/2000/svg",y);break;case 2:b=w.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;default:switch(y){case"svg":b=w.createElementNS("http://www.w3.org/2000/svg",y);break;case"math":b=w.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;case"script":b=w.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof m.is=="string"?w.createElement("select",{is:m.is}):w.createElement("select"),m.multiple?b.multiple=!0:m.size&&(b.size=m.size);break;default:b=typeof m.is=="string"?w.createElement(y,{is:m.is}):w.createElement(y)}}b[nn]=u,b[jn]=m;e:for(w=u.child;w!==null;){if(w.tag===5||w.tag===6)b.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===u)break e;for(;w.sibling===null;){if(w.return===null||w.return===u)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}u.stateNode=b;e:switch(an(b,y,m),y){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&Yr(u)}}return vt(u),XO(u,u.type,a===null?null:a.memoizedProps,u.pendingProps,f),null;case 6:if(a&&u.stateNode!=null)a.memoizedProps!==m&&Yr(u);else{if(typeof m!="string"&&u.stateNode===null)throw Error(i(166));if(a=xe.current,Ba(u)){if(a=u.stateNode,f=u.memoizedProps,m=null,y=rn,y!==null)switch(y.tag){case 27:case 5:m=y.memoizedProps}a[nn]=u,a=!!(a.nodeValue===f||m!==null&&m.suppressHydrationWarning===!0||kw(a.nodeValue,f)),a||Cs(u,!0)}else a=nd(a).createTextNode(m),a[nn]=u,u.stateNode=a}return vt(u),null;case 31:if(f=u.memoizedState,a===null||a.memoizedState!==null){if(m=Ba(u),f!==null){if(a===null){if(!m)throw Error(i(318));if(a=u.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(i(557));a[nn]=u}else Ao(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;vt(u),a=!1}else f=Fg(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=f),a=!0;if(!a)return u.flags&256?(ii(u),u):(ii(u),null);if((u.flags&128)!==0)throw Error(i(558))}return vt(u),null;case 13:if(m=u.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(y=Ba(u),m!==null&&m.dehydrated!==null){if(a===null){if(!y)throw Error(i(318));if(y=u.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(i(317));y[nn]=u}else Ao(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;vt(u),y=!1}else y=Fg(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=y),y=!0;if(!y)return u.flags&256?(ii(u),u):(ii(u),null)}return ii(u),(u.flags&128)!==0?(u.lanes=f,u):(f=m!==null,a=a!==null&&a.memoizedState!==null,f&&(m=u.child,y=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(y=m.alternate.memoizedState.cachePool.pool),b=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(b=m.memoizedState.cachePool.pool),b!==y&&(m.flags|=2048)),f!==a&&f&&(u.child.flags|=8192),Xf(u,u.updateQueue),vt(u),null);case 4:return $e(),a===null&&c0(u.stateNode.containerInfo),vt(u),null;case 10:return Br(u.type),vt(u),null;case 19:if(te(Qt),m=u.memoizedState,m===null)return vt(u),null;if(y=(u.flags&128)!==0,b=m.rendering,b===null)if(y)Bc(m,!1);else{if(Tt!==0||a!==null&&(a.flags&128)!==0)for(a=u.child;a!==null;){if(b=Cf(a),b!==null){for(u.flags|=128,Bc(m,!1),a=b.updateQueue,u.updateQueue=a,Xf(u,a),u.subtreeFlags=0,a=f,f=u.child;f!==null;)n_(f,a),f=f.sibling;return R(Qt,Qt.current&1|2),We&&Xr(u,m.treeForkCount),u.child}a=a.sibling}m.tail!==null&&Pe()>Uf&&(u.flags|=128,y=!0,Bc(m,!1),u.lanes=4194304)}else{if(!y)if(a=Cf(b),a!==null){if(u.flags|=128,y=!0,a=a.updateQueue,u.updateQueue=a,Xf(u,a),Bc(m,!0),m.tail===null&&m.tailMode==="hidden"&&!b.alternate&&!We)return vt(u),null}else 2*Pe()-m.renderingStartTime>Uf&&f!==536870912&&(u.flags|=128,y=!0,Bc(m,!1),u.lanes=4194304);m.isBackwards?(b.sibling=u.child,u.child=b):(a=m.last,a!==null?a.sibling=b:u.child=b,m.last=b)}return m.tail!==null?(a=m.tail,m.rendering=a,m.tail=a.sibling,m.renderingStartTime=Pe(),a.sibling=null,f=Qt.current,R(Qt,y?f&1|2:f&1),We&&Xr(u,m.treeForkCount),a):(vt(u),null);case 22:case 23:return ii(u),uO(),m=u.memoizedState!==null,a!==null?a.memoizedState!==null!==m&&(u.flags|=8192):m&&(u.flags|=8192),m?(f&536870912)!==0&&(u.flags&128)===0&&(vt(u),u.subtreeFlags&6&&(u.flags|=8192)):vt(u),f=u.updateQueue,f!==null&&Xf(u,f.retryQueue),f=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),m=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==f&&(u.flags|=2048),a!==null&&te($o),null;case 24:return f=null,a!==null&&(f=a.memoizedState.cache),u.memoizedState.cache!==f&&(u.flags|=2048),Br($t),vt(u),null;case 25:return null;case 30:return null}throw Error(i(156,u.tag))}function RN(a,u){switch(Wg(u),u.tag){case 1:return a=u.flags,a&65536?(u.flags=a&-65537|128,u):null;case 3:return Br($t),$e(),a=u.flags,(a&65536)!==0&&(a&128)===0?(u.flags=a&-65537|128,u):null;case 26:case 27:case 5:return _n(u),null;case 31:if(u.memoizedState!==null){if(ii(u),u.alternate===null)throw Error(i(340));Ao()}return a=u.flags,a&65536?(u.flags=a&-65537|128,u):null;case 13:if(ii(u),a=u.memoizedState,a!==null&&a.dehydrated!==null){if(u.alternate===null)throw Error(i(340));Ao()}return a=u.flags,a&65536?(u.flags=a&-65537|128,u):null;case 19:return te(Qt),null;case 4:return $e(),null;case 10:return Br(u.type),null;case 22:case 23:return ii(u),uO(),a!==null&&te($o),a=u.flags,a&65536?(u.flags=a&-65537|128,u):null;case 24:return Br($t),null;case 25:return null;default:return null}}function Qk(a,u){switch(Wg(u),u.tag){case 3:Br($t),$e();break;case 26:case 27:case 5:_n(u);break;case 4:$e();break;case 31:u.memoizedState!==null&&ii(u);break;case 13:ii(u);break;case 19:te(Qt);break;case 10:Br(u.type);break;case 22:case 23:ii(u),uO(),a!==null&&te($o);break;case 24:Br($t)}}function Zc(a,u){try{var f=u.updateQueue,m=f!==null?f.lastEffect:null;if(m!==null){var y=m.next;f=y;do{if((f.tag&a)===a){m=void 0;var b=f.create,w=f.inst;m=b(),w.destroy=m}f=f.next}while(f!==y)}}catch(Q){ot(u,u.return,Q)}}function Ms(a,u,f){try{var m=u.updateQueue,y=m!==null?m.lastEffect:null;if(y!==null){var b=y.next;m=b;do{if((m.tag&a)===a){var w=m.inst,Q=w.destroy;if(Q!==void 0){w.destroy=void 0,y=u;var X=f,W=Q;try{W()}catch(re){ot(y,X,re)}}}m=m.next}while(m!==b)}}catch(re){ot(u,u.return,re)}}function Ek(a){var u=a.updateQueue;if(u!==null){var f=a.stateNode;try{x_(u,f)}catch(m){ot(a,a.return,m)}}}function Ak(a,u,f){f.props=zo(a.type,a.memoizedProps),f.state=a.memoizedState;try{f.componentWillUnmount()}catch(m){ot(a,u,m)}}function qc(a,u){try{var f=a.ref;if(f!==null){switch(a.tag){case 26:case 27:case 5:var m=a.stateNode;break;case 30:m=a.stateNode;break;default:m=a.stateNode}typeof f=="function"?a.refCleanup=f(m):f.current=m}}catch(y){ot(a,u,y)}}function cr(a,u){var f=a.ref,m=a.refCleanup;if(f!==null)if(typeof m=="function")try{m()}catch(y){ot(a,u,y)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof f=="function")try{f(null)}catch(y){ot(a,u,y)}else f.current=null}function Rk(a){var u=a.type,f=a.memoizedProps,m=a.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":f.autoFocus&&m.focus();break e;case"img":f.src?m.src=f.src:f.srcSet&&(m.srcset=f.srcSet)}}catch(y){ot(a,a.return,y)}}function VO(a,u,f){try{var m=a.stateNode;e3(m,a.type,f,u),m[jn]=u}catch(y){ot(a,a.return,y)}}function Lk(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Vs(a.type)||a.tag===4}function BO(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Lk(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Vs(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function ZO(a,u,f){var m=a.tag;if(m===5||m===6)a=a.stateNode,u?(f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f).insertBefore(a,u):(u=f.nodeType===9?f.body:f.nodeName==="HTML"?f.ownerDocument.body:f,u.appendChild(a),f=f._reactRootContainer,f!=null||u.onclick!==null||(u.onclick=Nr));else if(m!==4&&(m===27&&Vs(a.type)&&(f=a.stateNode,u=null),a=a.child,a!==null))for(ZO(a,u,f),a=a.sibling;a!==null;)ZO(a,u,f),a=a.sibling}function Vf(a,u,f){var m=a.tag;if(m===5||m===6)a=a.stateNode,u?f.insertBefore(a,u):f.appendChild(a);else if(m!==4&&(m===27&&Vs(a.type)&&(f=a.stateNode),a=a.child,a!==null))for(Vf(a,u,f),a=a.sibling;a!==null;)Vf(a,u,f),a=a.sibling}function $k(a){var u=a.stateNode,f=a.memoizedProps;try{for(var m=a.type,y=u.attributes;y.length;)u.removeAttributeNode(y[0]);an(u,m,f),u[nn]=a,u[jn]=f}catch(b){ot(a,a.return,b)}}var Gr=!1,jt=!1,qO=!1,Mk=typeof WeakSet=="function"?WeakSet:Set,Kt=null;function LN(a,u){if(a=a.containerInfo,f0=cd,a=YS(a),Ng(a)){if("selectionStart"in a)var f={start:a.selectionStart,end:a.selectionEnd};else e:{f=(f=a.ownerDocument)&&f.defaultView||window;var m=f.getSelection&&f.getSelection();if(m&&m.rangeCount!==0){f=m.anchorNode;var y=m.anchorOffset,b=m.focusNode;m=m.focusOffset;try{f.nodeType,b.nodeType}catch{f=null;break e}var w=0,Q=-1,X=-1,W=0,re=0,le=a,K=null;t:for(;;){for(var ne;le!==f||y!==0&&le.nodeType!==3||(Q=w+y),le!==b||m!==0&&le.nodeType!==3||(X=w+m),le.nodeType===3&&(w+=le.nodeValue.length),(ne=le.firstChild)!==null;)K=le,le=ne;for(;;){if(le===a)break t;if(K===f&&++W===y&&(Q=w),K===b&&++re===m&&(X=w),(ne=le.nextSibling)!==null)break;le=K,K=le.parentNode}le=ne}f=Q===-1||X===-1?null:{start:Q,end:X}}else f=null}f=f||{start:0,end:0}}else f=null;for(d0={focusedElem:a,selectionRange:f},cd=!1,Kt=u;Kt!==null;)if(u=Kt,a=u.child,(u.subtreeFlags&1028)!==0&&a!==null)a.return=u,Kt=a;else for(;Kt!==null;){switch(u=Kt,b=u.alternate,a=u.flags,u.tag){case 0:if((a&4)!==0&&(a=u.updateQueue,a=a!==null?a.events:null,a!==null))for(f=0;f<a.length;f++)y=a[f],y.ref.impl=y.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&b!==null){a=void 0,f=u,y=b.memoizedProps,b=b.memoizedState,m=f.stateNode;try{var ke=zo(f.type,y);a=m.getSnapshotBeforeUpdate(ke,b),m.__reactInternalSnapshotBeforeUpdate=a}catch(Ee){ot(f,f.return,Ee)}}break;case 3:if((a&1024)!==0){if(a=u.stateNode.containerInfo,f=a.nodeType,f===9)g0(a);else if(f===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":g0(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(i(163))}if(a=u.sibling,a!==null){a.return=u.return,Kt=a;break}Kt=u.return}}function Dk(a,u,f){var m=f.flags;switch(f.tag){case 0:case 11:case 15:Hr(a,f),m&4&&Zc(5,f);break;case 1:if(Hr(a,f),m&4)if(a=f.stateNode,u===null)try{a.componentDidMount()}catch(w){ot(f,f.return,w)}else{var y=zo(f.type,u.memoizedProps);u=u.memoizedState;try{a.componentDidUpdate(y,u,a.__reactInternalSnapshotBeforeUpdate)}catch(w){ot(f,f.return,w)}}m&64&&Ek(f),m&512&&qc(f,f.return);break;case 3:if(Hr(a,f),m&64&&(a=f.updateQueue,a!==null)){if(u=null,f.child!==null)switch(f.child.tag){case 27:case 5:u=f.child.stateNode;break;case 1:u=f.child.stateNode}try{x_(a,u)}catch(w){ot(f,f.return,w)}}break;case 27:u===null&&m&4&&$k(f);case 26:case 5:Hr(a,f),u===null&&m&4&&Rk(f),m&512&&qc(f,f.return);break;case 12:Hr(a,f);break;case 31:Hr(a,f),m&4&&zk(a,f);break;case 13:Hr(a,f),m&4&&Ik(a,f),m&64&&(a=f.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(f=VN.bind(null,f),l3(a,f))));break;case 22:if(m=f.memoizedState!==null||Gr,!m){u=u!==null&&u.memoizedState!==null||jt,y=Gr;var b=jt;Gr=m,(jt=u)&&!b?Fr(a,f,(f.subtreeFlags&8772)!==0):Hr(a,f),Gr=y,jt=b}break;case 30:break;default:Hr(a,f)}}function jk(a){var u=a.alternate;u!==null&&(a.alternate=null,jk(u)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(u=a.stateNode,u!==null&&vg(u)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var kt=null,zn=!1;function Wr(a,u,f){for(f=f.child;f!==null;)Nk(a,u,f),f=f.sibling}function Nk(a,u,f){if(Zt&&typeof Zt.onCommitFiberUnmount=="function")try{Zt.onCommitFiberUnmount(wn,f)}catch{}switch(f.tag){case 26:jt||cr(f,u),Wr(a,u,f),f.memoizedState?f.memoizedState.count--:f.stateNode&&(f=f.stateNode,f.parentNode.removeChild(f));break;case 27:jt||cr(f,u);var m=kt,y=zn;Vs(f.type)&&(kt=f.stateNode,zn=!1),Wr(a,u,f),eu(f.stateNode),kt=m,zn=y;break;case 5:jt||cr(f,u);case 6:if(m=kt,y=zn,kt=null,Wr(a,u,f),kt=m,zn=y,kt!==null)if(zn)try{(kt.nodeType===9?kt.body:kt.nodeName==="HTML"?kt.ownerDocument.body:kt).removeChild(f.stateNode)}catch(b){ot(f,u,b)}else try{kt.removeChild(f.stateNode)}catch(b){ot(f,u,b)}break;case 18:kt!==null&&(zn?(a=kt,Ew(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,f.stateNode),ul(a)):Ew(kt,f.stateNode));break;case 4:m=kt,y=zn,kt=f.stateNode.containerInfo,zn=!0,Wr(a,u,f),kt=m,zn=y;break;case 0:case 11:case 14:case 15:Ms(2,f,u),jt||Ms(4,f,u),Wr(a,u,f);break;case 1:jt||(cr(f,u),m=f.stateNode,typeof m.componentWillUnmount=="function"&&Ak(f,u,m)),Wr(a,u,f);break;case 21:Wr(a,u,f);break;case 22:jt=(m=jt)||f.memoizedState!==null,Wr(a,u,f),jt=m;break;default:Wr(a,u,f)}}function zk(a,u){if(u.memoizedState===null&&(a=u.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{ul(a)}catch(f){ot(u,u.return,f)}}}function Ik(a,u){if(u.memoizedState===null&&(a=u.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{ul(a)}catch(f){ot(u,u.return,f)}}function $N(a){switch(a.tag){case 31:case 13:case 19:var u=a.stateNode;return u===null&&(u=a.stateNode=new Mk),u;case 22:return a=a.stateNode,u=a._retryCache,u===null&&(u=a._retryCache=new Mk),u;default:throw Error(i(435,a.tag))}}function Bf(a,u){var f=$N(a);u.forEach(function(m){if(!f.has(m)){f.add(m);var y=BN.bind(null,a,m);m.then(y,y)}})}function In(a,u){var f=u.deletions;if(f!==null)for(var m=0;m<f.length;m++){var y=f[m],b=a,w=u,Q=w;e:for(;Q!==null;){switch(Q.tag){case 27:if(Vs(Q.type)){kt=Q.stateNode,zn=!1;break e}break;case 5:kt=Q.stateNode,zn=!1;break e;case 3:case 4:kt=Q.stateNode.containerInfo,zn=!0;break e}Q=Q.return}if(kt===null)throw Error(i(160));Nk(b,w,y),kt=null,zn=!1,b=y.alternate,b!==null&&(b.return=null),y.return=null}if(u.subtreeFlags&13886)for(u=u.child;u!==null;)Xk(u,a),u=u.sibling}var Wi=null;function Xk(a,u){var f=a.alternate,m=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:In(u,a),Xn(a),m&4&&(Ms(3,a,a.return),Zc(3,a),Ms(5,a,a.return));break;case 1:In(u,a),Xn(a),m&512&&(jt||f===null||cr(f,f.return)),m&64&&Gr&&(a=a.updateQueue,a!==null&&(m=a.callbacks,m!==null&&(f=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=f===null?m:f.concat(m))));break;case 26:var y=Wi;if(In(u,a),Xn(a),m&512&&(jt||f===null||cr(f,f.return)),m&4){var b=f!==null?f.memoizedState:null;if(m=a.memoizedState,f===null)if(m===null)if(a.stateNode===null){e:{m=a.type,f=a.memoizedProps,y=y.ownerDocument||y;t:switch(m){case"title":b=y.getElementsByTagName("title")[0],(!b||b[yc]||b[nn]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=y.createElement(m),y.head.insertBefore(b,y.querySelector("head > title"))),an(b,m,f),b[nn]=a,Ft(b),m=b;break e;case"link":var w=Xw("link","href",y).get(m+(f.href||""));if(w){for(var Q=0;Q<w.length;Q++)if(b=w[Q],b.getAttribute("href")===(f.href==null||f.href===""?null:f.href)&&b.getAttribute("rel")===(f.rel==null?null:f.rel)&&b.getAttribute("title")===(f.title==null?null:f.title)&&b.getAttribute("crossorigin")===(f.crossOrigin==null?null:f.crossOrigin)){w.splice(Q,1);break t}}b=y.createElement(m),an(b,m,f),y.head.appendChild(b);break;case"meta":if(w=Xw("meta","content",y).get(m+(f.content||""))){for(Q=0;Q<w.length;Q++)if(b=w[Q],b.getAttribute("content")===(f.content==null?null:""+f.content)&&b.getAttribute("name")===(f.name==null?null:f.name)&&b.getAttribute("property")===(f.property==null?null:f.property)&&b.getAttribute("http-equiv")===(f.httpEquiv==null?null:f.httpEquiv)&&b.getAttribute("charset")===(f.charSet==null?null:f.charSet)){w.splice(Q,1);break t}}b=y.createElement(m),an(b,m,f),y.head.appendChild(b);break;default:throw Error(i(468,m))}b[nn]=a,Ft(b),m=b}a.stateNode=m}else Vw(y,a.type,a.stateNode);else a.stateNode=Iw(y,m,a.memoizedProps);else b!==m?(b===null?f.stateNode!==null&&(f=f.stateNode,f.parentNode.removeChild(f)):b.count--,m===null?Vw(y,a.type,a.stateNode):Iw(y,m,a.memoizedProps)):m===null&&a.stateNode!==null&&VO(a,a.memoizedProps,f.memoizedProps)}break;case 27:In(u,a),Xn(a),m&512&&(jt||f===null||cr(f,f.return)),f!==null&&m&4&&VO(a,a.memoizedProps,f.memoizedProps);break;case 5:if(In(u,a),Xn(a),m&512&&(jt||f===null||cr(f,f.return)),a.flags&32){y=a.stateNode;try{La(y,"")}catch(ke){ot(a,a.return,ke)}}m&4&&a.stateNode!=null&&(y=a.memoizedProps,VO(a,y,f!==null?f.memoizedProps:y)),m&1024&&(qO=!0);break;case 6:if(In(u,a),Xn(a),m&4){if(a.stateNode===null)throw Error(i(162));m=a.memoizedProps,f=a.stateNode;try{f.nodeValue=m}catch(ke){ot(a,a.return,ke)}}break;case 3:if(sd=null,y=Wi,Wi=id(u.containerInfo),In(u,a),Wi=y,Xn(a),m&4&&f!==null&&f.memoizedState.isDehydrated)try{ul(u.containerInfo)}catch(ke){ot(a,a.return,ke)}qO&&(qO=!1,Vk(a));break;case 4:m=Wi,Wi=id(a.stateNode.containerInfo),In(u,a),Xn(a),Wi=m;break;case 12:In(u,a),Xn(a);break;case 31:In(u,a),Xn(a),m&4&&(m=a.updateQueue,m!==null&&(a.updateQueue=null,Bf(a,m)));break;case 13:In(u,a),Xn(a),a.child.flags&8192&&a.memoizedState!==null!=(f!==null&&f.memoizedState!==null)&&(qf=Pe()),m&4&&(m=a.updateQueue,m!==null&&(a.updateQueue=null,Bf(a,m)));break;case 22:y=a.memoizedState!==null;var X=f!==null&&f.memoizedState!==null,W=Gr,re=jt;if(Gr=W||y,jt=re||X,In(u,a),jt=re,Gr=W,Xn(a),m&8192)e:for(u=a.stateNode,u._visibility=y?u._visibility&-2:u._visibility|1,y&&(f===null||X||Gr||jt||Io(a)),f=null,u=a;;){if(u.tag===5||u.tag===26){if(f===null){X=f=u;try{if(b=X.stateNode,y)w=b.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{Q=X.stateNode;var le=X.memoizedProps.style,K=le!=null&&le.hasOwnProperty("display")?le.display:null;Q.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(ke){ot(X,X.return,ke)}}}else if(u.tag===6){if(f===null){X=u;try{X.stateNode.nodeValue=y?"":X.memoizedProps}catch(ke){ot(X,X.return,ke)}}}else if(u.tag===18){if(f===null){X=u;try{var ne=X.stateNode;y?Aw(ne,!0):Aw(X.stateNode,!1)}catch(ke){ot(X,X.return,ke)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===a)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break e;for(;u.sibling===null;){if(u.return===null||u.return===a)break e;f===u&&(f=null),u=u.return}f===u&&(f=null),u.sibling.return=u.return,u=u.sibling}m&4&&(m=a.updateQueue,m!==null&&(f=m.retryQueue,f!==null&&(m.retryQueue=null,Bf(a,f))));break;case 19:In(u,a),Xn(a),m&4&&(m=a.updateQueue,m!==null&&(a.updateQueue=null,Bf(a,m)));break;case 30:break;case 21:break;default:In(u,a),Xn(a)}}function Xn(a){var u=a.flags;if(u&2){try{for(var f,m=a.return;m!==null;){if(Lk(m)){f=m;break}m=m.return}if(f==null)throw Error(i(160));switch(f.tag){case 27:var y=f.stateNode,b=BO(a);Vf(a,b,y);break;case 5:var w=f.stateNode;f.flags&32&&(La(w,""),f.flags&=-33);var Q=BO(a);Vf(a,Q,w);break;case 3:case 4:var X=f.stateNode.containerInfo,W=BO(a);ZO(a,W,X);break;default:throw Error(i(161))}}catch(re){ot(a,a.return,re)}a.flags&=-3}u&4096&&(a.flags&=-4097)}function Vk(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var u=a;Vk(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),a=a.sibling}}function Hr(a,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)Dk(a,u.alternate,u),u=u.sibling}function Io(a){for(a=a.child;a!==null;){var u=a;switch(u.tag){case 0:case 11:case 14:case 15:Ms(4,u,u.return),Io(u);break;case 1:cr(u,u.return);var f=u.stateNode;typeof f.componentWillUnmount=="function"&&Ak(u,u.return,f),Io(u);break;case 27:eu(u.stateNode);case 26:case 5:cr(u,u.return),Io(u);break;case 22:u.memoizedState===null&&Io(u);break;case 30:Io(u);break;default:Io(u)}a=a.sibling}}function Fr(a,u,f){for(f=f&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;){var m=u.alternate,y=a,b=u,w=b.flags;switch(b.tag){case 0:case 11:case 15:Fr(y,b,f),Zc(4,b);break;case 1:if(Fr(y,b,f),m=b,y=m.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(W){ot(m,m.return,W)}if(m=b,y=m.updateQueue,y!==null){var Q=m.stateNode;try{var X=y.shared.hiddenCallbacks;if(X!==null)for(y.shared.hiddenCallbacks=null,y=0;y<X.length;y++)b_(X[y],Q)}catch(W){ot(m,m.return,W)}}f&&w&64&&Ek(b),qc(b,b.return);break;case 27:$k(b);case 26:case 5:Fr(y,b,f),f&&m===null&&w&4&&Rk(b),qc(b,b.return);break;case 12:Fr(y,b,f);break;case 31:Fr(y,b,f),f&&w&4&&zk(y,b);break;case 13:Fr(y,b,f),f&&w&4&&Ik(y,b);break;case 22:b.memoizedState===null&&Fr(y,b,f),qc(b,b.return);break;case 30:break;default:Fr(y,b,f)}u=u.sibling}}function UO(a,u){var f=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(f=a.memoizedState.cachePool.pool),a=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(a=u.memoizedState.cachePool.pool),a!==f&&(a!=null&&a.refCount++,f!=null&&Ac(f))}function YO(a,u){a=null,u.alternate!==null&&(a=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==a&&(u.refCount++,a!=null&&Ac(a))}function Hi(a,u,f,m){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)Bk(a,u,f,m),u=u.sibling}function Bk(a,u,f,m){var y=u.flags;switch(u.tag){case 0:case 11:case 15:Hi(a,u,f,m),y&2048&&Zc(9,u);break;case 1:Hi(a,u,f,m);break;case 3:Hi(a,u,f,m),y&2048&&(a=null,u.alternate!==null&&(a=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==a&&(u.refCount++,a!=null&&Ac(a)));break;case 12:if(y&2048){Hi(a,u,f,m),a=u.stateNode;try{var b=u.memoizedProps,w=b.id,Q=b.onPostCommit;typeof Q=="function"&&Q(w,u.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(X){ot(u,u.return,X)}}else Hi(a,u,f,m);break;case 31:Hi(a,u,f,m);break;case 13:Hi(a,u,f,m);break;case 23:break;case 22:b=u.stateNode,w=u.alternate,u.memoizedState!==null?b._visibility&2?Hi(a,u,f,m):Uc(a,u):b._visibility&2?Hi(a,u,f,m):(b._visibility|=2,Ja(a,u,f,m,(u.subtreeFlags&10256)!==0||!1)),y&2048&&UO(w,u);break;case 24:Hi(a,u,f,m),y&2048&&YO(u.alternate,u);break;default:Hi(a,u,f,m)}}function Ja(a,u,f,m,y){for(y=y&&((u.subtreeFlags&10256)!==0||!1),u=u.child;u!==null;){var b=a,w=u,Q=f,X=m,W=w.flags;switch(w.tag){case 0:case 11:case 15:Ja(b,w,Q,X,y),Zc(8,w);break;case 23:break;case 22:var re=w.stateNode;w.memoizedState!==null?re._visibility&2?Ja(b,w,Q,X,y):Uc(b,w):(re._visibility|=2,Ja(b,w,Q,X,y)),y&&W&2048&&UO(w.alternate,w);break;case 24:Ja(b,w,Q,X,y),y&&W&2048&&YO(w.alternate,w);break;default:Ja(b,w,Q,X,y)}u=u.sibling}}function Uc(a,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var f=a,m=u,y=m.flags;switch(m.tag){case 22:Uc(f,m),y&2048&&UO(m.alternate,m);break;case 24:Uc(f,m),y&2048&&YO(m.alternate,m);break;default:Uc(f,m)}u=u.sibling}}var Yc=8192;function el(a,u,f){if(a.subtreeFlags&Yc)for(a=a.child;a!==null;)Zk(a,u,f),a=a.sibling}function Zk(a,u,f){switch(a.tag){case 26:el(a,u,f),a.flags&Yc&&a.memoizedState!==null&&x3(f,Wi,a.memoizedState,a.memoizedProps);break;case 5:el(a,u,f);break;case 3:case 4:var m=Wi;Wi=id(a.stateNode.containerInfo),el(a,u,f),Wi=m;break;case 22:a.memoizedState===null&&(m=a.alternate,m!==null&&m.memoizedState!==null?(m=Yc,Yc=16777216,el(a,u,f),Yc=m):el(a,u,f));break;default:el(a,u,f)}}function qk(a){var u=a.alternate;if(u!==null&&(a=u.child,a!==null)){u.child=null;do u=a.sibling,a.sibling=null,a=u;while(a!==null)}}function Gc(a){var u=a.deletions;if((a.flags&16)!==0){if(u!==null)for(var f=0;f<u.length;f++){var m=u[f];Kt=m,Yk(m,a)}qk(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Uk(a),a=a.sibling}function Uk(a){switch(a.tag){case 0:case 11:case 15:Gc(a),a.flags&2048&&Ms(9,a,a.return);break;case 3:Gc(a);break;case 12:Gc(a);break;case 22:var u=a.stateNode;a.memoizedState!==null&&u._visibility&2&&(a.return===null||a.return.tag!==13)?(u._visibility&=-3,Zf(a)):Gc(a);break;default:Gc(a)}}function Zf(a){var u=a.deletions;if((a.flags&16)!==0){if(u!==null)for(var f=0;f<u.length;f++){var m=u[f];Kt=m,Yk(m,a)}qk(a)}for(a=a.child;a!==null;){switch(u=a,u.tag){case 0:case 11:case 15:Ms(8,u,u.return),Zf(u);break;case 22:f=u.stateNode,f._visibility&2&&(f._visibility&=-3,Zf(u));break;default:Zf(u)}a=a.sibling}}function Yk(a,u){for(;Kt!==null;){var f=Kt;switch(f.tag){case 0:case 11:case 15:Ms(8,f,u);break;case 23:case 22:if(f.memoizedState!==null&&f.memoizedState.cachePool!==null){var m=f.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:Ac(f.memoizedState.cache)}if(m=f.child,m!==null)m.return=f,Kt=m;else e:for(f=a;Kt!==null;){m=Kt;var y=m.sibling,b=m.return;if(jk(m),m===f){Kt=null;break e}if(y!==null){y.return=b,Kt=y;break e}Kt=b}}}var MN={getCacheForType:function(a){var u=sn($t),f=u.data.get(a);return f===void 0&&(f=a(),u.data.set(a,f)),f},cacheSignal:function(){return sn($t).controller.signal}},DN=typeof WeakMap=="function"?WeakMap:Map,it=0,pt=null,Ve=null,Ye=0,st=0,ri=null,Ds=!1,tl=!1,GO=!1,Kr=0,Tt=0,js=0,Xo=0,WO=0,si=0,nl=0,Wc=null,Vn=null,HO=!1,qf=0,Gk=0,Uf=1/0,Yf=null,Ns=null,qt=0,zs=null,il=null,Jr=0,FO=0,KO=null,Wk=null,Hc=0,JO=null;function oi(){return(it&2)!==0&&Ye!==0?Ye&-Ye:Z.T!==null?s0():hS()}function Hk(){if(si===0)if((Ye&536870912)===0||We){var a=ef;ef<<=1,(ef&3932160)===0&&(ef=262144),si=a}else si=536870912;return a=ni.current,a!==null&&(a.flags|=32),si}function Bn(a,u,f){(a===pt&&(st===2||st===9)||a.cancelPendingCommit!==null)&&(rl(a,0),Is(a,Ye,si,!1)),Oc(a,f),((it&2)===0||a!==pt)&&(a===pt&&((it&2)===0&&(Xo|=f),Tt===4&&Is(a,Ye,si,!1)),ur(a))}function Fk(a,u,f){if((it&6)!==0)throw Error(i(327));var m=!f&&(u&127)===0&&(u&a.expiredLanes)===0||gc(a,u),y=m?zN(a,u):t0(a,u,!0),b=m;do{if(y===0){tl&&!m&&Is(a,u,0,!1);break}else{if(f=a.current.alternate,b&&!jN(f)){y=t0(a,u,!1),b=!1;continue}if(y===2){if(b=u,a.errorRecoveryDisabledLanes&b)var w=0;else w=a.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){u=w;e:{var Q=a;y=Wc;var X=Q.current.memoizedState.isDehydrated;if(X&&(rl(Q,w).flags|=256),w=t0(Q,w,!1),w!==2){if(GO&&!X){Q.errorRecoveryDisabledLanes|=b,Xo|=b,y=4;break e}b=Vn,Vn=y,b!==null&&(Vn===null?Vn=b:Vn.push.apply(Vn,b))}y=w}if(b=!1,y!==2)continue}}if(y===1){rl(a,0),Is(a,u,0,!0);break}e:{switch(m=a,b=y,b){case 0:case 1:throw Error(i(345));case 4:if((u&4194048)!==u)break;case 6:Is(m,u,si,!Ds);break e;case 2:Vn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((u&62914560)===u&&(y=qf+300-Pe(),10<y)){if(Is(m,u,si,!Ds),nf(m,0,!0)!==0)break e;Jr=u,m.timeoutHandle=Cw(Kk.bind(null,m,f,Vn,Yf,HO,u,si,Xo,nl,Ds,b,"Throttled",-0,0),y);break e}Kk(m,f,Vn,Yf,HO,u,si,Xo,nl,Ds,b,null,-0,0)}}break}while(!0);ur(a)}function Kk(a,u,f,m,y,b,w,Q,X,W,re,le,K,ne){if(a.timeoutHandle=-1,le=u.subtreeFlags,le&8192||(le&16785408)===16785408){le={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Nr},Zk(u,b,le);var ke=(b&62914560)===b?qf-Pe():(b&4194048)===b?Gk-Pe():0;if(ke=v3(le,ke),ke!==null){Jr=b,a.cancelPendingCommit=ke(ow.bind(null,a,u,b,f,m,y,w,Q,X,re,le,null,K,ne)),Is(a,b,w,!W);return}}ow(a,u,b,f,m,y,w,Q,X)}function jN(a){for(var u=a;;){var f=u.tag;if((f===0||f===11||f===15)&&u.flags&16384&&(f=u.updateQueue,f!==null&&(f=f.stores,f!==null)))for(var m=0;m<f.length;m++){var y=f[m],b=y.getSnapshot;y=y.value;try{if(!ei(b(),y))return!1}catch{return!1}}if(f=u.child,u.subtreeFlags&16384&&f!==null)f.return=u,u=f;else{if(u===a)break;for(;u.sibling===null;){if(u.return===null||u.return===a)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function Is(a,u,f,m){u&=~WO,u&=~Xo,a.suspendedLanes|=u,a.pingedLanes&=~u,m&&(a.warmLanes|=u),m=a.expirationTimes;for(var y=u;0<y;){var b=31-dt(y),w=1<<b;m[b]=-1,y&=~w}f!==0&&lS(a,f,u)}function Gf(){return(it&6)===0?(Fc(0),!1):!0}function e0(){if(Ve!==null){if(st===0)var a=Ve.return;else a=Ve,Vr=Ro=null,gO(a),Ga=null,Lc=0,a=Ve;for(;a!==null;)Qk(a.alternate,a),a=a.return;Ve=null}}function rl(a,u){var f=a.timeoutHandle;f!==-1&&(a.timeoutHandle=-1,i3(f)),f=a.cancelPendingCommit,f!==null&&(a.cancelPendingCommit=null,f()),Jr=0,e0(),pt=a,Ve=f=Ir(a.current,null),Ye=u,st=0,ri=null,Ds=!1,tl=gc(a,u),GO=!1,nl=si=WO=Xo=js=Tt=0,Vn=Wc=null,HO=!1,(u&8)!==0&&(u|=u&32);var m=a.entangledLanes;if(m!==0)for(a=a.entanglements,m&=u;0<m;){var y=31-dt(m),b=1<<y;u|=a[y],m&=~b}return Kr=u,mf(),f}function Jk(a,u){je=null,Z.H=Xc,u===Ya||u===_f?(u=m_(),st=3):u===rO?(u=m_(),st=4):st=u===RO?8:u!==null&&typeof u=="object"&&typeof u.then=="function"?6:1,ri=u,Ve===null&&(Tt=1,jf(a,wi(u,a.current)))}function ew(){var a=ni.current;return a===null?!0:(Ye&4194048)===Ye?Qi===null:(Ye&62914560)===Ye||(Ye&536870912)!==0?a===Qi:!1}function tw(){var a=Z.H;return Z.H=Xc,a===null?Xc:a}function nw(){var a=Z.A;return Z.A=MN,a}function Wf(){Tt=4,Ds||(Ye&4194048)!==Ye&&ni.current!==null||(tl=!0),(js&134217727)===0&&(Xo&134217727)===0||pt===null||Is(pt,Ye,si,!1)}function t0(a,u,f){var m=it;it|=2;var y=tw(),b=nw();(pt!==a||Ye!==u)&&(Yf=null,rl(a,u)),u=!1;var w=Tt;e:do try{if(st!==0&&Ve!==null){var Q=Ve,X=ri;switch(st){case 8:e0(),w=6;break e;case 3:case 2:case 9:case 6:ni.current===null&&(u=!0);var W=st;if(st=0,ri=null,sl(a,Q,X,W),f&&tl){w=0;break e}break;default:W=st,st=0,ri=null,sl(a,Q,X,W)}}NN(),w=Tt;break}catch(re){Jk(a,re)}while(!0);return u&&a.shellSuspendCounter++,Vr=Ro=null,it=m,Z.H=y,Z.A=b,Ve===null&&(pt=null,Ye=0,mf()),w}function NN(){for(;Ve!==null;)iw(Ve)}function zN(a,u){var f=it;it|=2;var m=tw(),y=nw();pt!==a||Ye!==u?(Yf=null,Uf=Pe()+500,rl(a,u)):tl=gc(a,u);e:do try{if(st!==0&&Ve!==null){u=Ve;var b=ri;t:switch(st){case 1:st=0,ri=null,sl(a,u,b,1);break;case 2:case 9:if(d_(b)){st=0,ri=null,rw(u);break}u=function(){st!==2&&st!==9||pt!==a||(st=7),ur(a)},b.then(u,u);break e;case 3:st=7;break e;case 4:st=5;break e;case 7:d_(b)?(st=0,ri=null,rw(u)):(st=0,ri=null,sl(a,u,b,7));break;case 5:var w=null;switch(Ve.tag){case 26:w=Ve.memoizedState;case 5:case 27:var Q=Ve;if(w?Bw(w):Q.stateNode.complete){st=0,ri=null;var X=Q.sibling;if(X!==null)Ve=X;else{var W=Q.return;W!==null?(Ve=W,Hf(W)):Ve=null}break t}}st=0,ri=null,sl(a,u,b,5);break;case 6:st=0,ri=null,sl(a,u,b,6);break;case 8:e0(),Tt=6;break e;default:throw Error(i(462))}}IN();break}catch(re){Jk(a,re)}while(!0);return Vr=Ro=null,Z.H=m,Z.A=y,it=f,Ve!==null?0:(pt=null,Ye=0,mf(),Tt)}function IN(){for(;Ve!==null&&!Ss();)iw(Ve)}function iw(a){var u=Tk(a.alternate,a,Kr);a.memoizedProps=a.pendingProps,u===null?Hf(a):Ve=u}function rw(a){var u=a,f=u.alternate;switch(u.tag){case 15:case 0:u=vk(f,u,u.pendingProps,u.type,void 0,Ye);break;case 11:u=vk(f,u,u.pendingProps,u.type.render,u.ref,Ye);break;case 5:gO(u);default:Qk(f,u),u=Ve=n_(u,Kr),u=Tk(f,u,Kr)}a.memoizedProps=a.pendingProps,u===null?Hf(a):Ve=u}function sl(a,u,f,m){Vr=Ro=null,gO(u),Ga=null,Lc=0;var y=u.return;try{if(CN(a,y,u,f,Ye)){Tt=1,jf(a,wi(f,a.current)),Ve=null;return}}catch(b){if(y!==null)throw Ve=y,b;Tt=1,jf(a,wi(f,a.current)),Ve=null;return}u.flags&32768?(We||m===1?a=!0:tl||(Ye&536870912)!==0?a=!1:(Ds=a=!0,(m===2||m===9||m===3||m===6)&&(m=ni.current,m!==null&&m.tag===13&&(m.flags|=16384))),sw(u,a)):Hf(u)}function Hf(a){var u=a;do{if((u.flags&32768)!==0){sw(u,Ds);return}a=u.return;var f=AN(u.alternate,u,Kr);if(f!==null){Ve=f;return}if(u=u.sibling,u!==null){Ve=u;return}Ve=u=a}while(u!==null);Tt===0&&(Tt=5)}function sw(a,u){do{var f=RN(a.alternate,a);if(f!==null){f.flags&=32767,Ve=f;return}if(f=a.return,f!==null&&(f.flags|=32768,f.subtreeFlags=0,f.deletions=null),!u&&(a=a.sibling,a!==null)){Ve=a;return}Ve=a=f}while(a!==null);Tt=6,Ve=null}function ow(a,u,f,m,y,b,w,Q,X){a.cancelPendingCommit=null;do Ff();while(qt!==0);if((it&6)!==0)throw Error(i(327));if(u!==null){if(u===a.current)throw Error(i(177));if(b=u.lanes|u.childLanes,b|=Bg,b5(a,f,b,w,Q,X),a===pt&&(Ve=pt=null,Ye=0),il=u,zs=a,Jr=f,FO=b,KO=y,Wk=m,(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,ZN(Ae,function(){return hw(),null})):(a.callbackNode=null,a.callbackPriority=0),m=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||m){m=Z.T,Z.T=null,y=J.p,J.p=2,w=it,it|=4;try{LN(a,u,f)}finally{it=w,J.p=y,Z.T=m}}qt=1,aw(),lw(),cw()}}function aw(){if(qt===1){qt=0;var a=zs,u=il,f=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||f){f=Z.T,Z.T=null;var m=J.p;J.p=2;var y=it;it|=4;try{Xk(u,a);var b=d0,w=YS(a.containerInfo),Q=b.focusedElem,X=b.selectionRange;if(w!==Q&&Q&&Q.ownerDocument&&US(Q.ownerDocument.documentElement,Q)){if(X!==null&&Ng(Q)){var W=X.start,re=X.end;if(re===void 0&&(re=W),"selectionStart"in Q)Q.selectionStart=W,Q.selectionEnd=Math.min(re,Q.value.length);else{var le=Q.ownerDocument||document,K=le&&le.defaultView||window;if(K.getSelection){var ne=K.getSelection(),ke=Q.textContent.length,Ee=Math.min(X.start,ke),ut=X.end===void 0?Ee:Math.min(X.end,ke);!ne.extend&&Ee>ut&&(w=ut,ut=Ee,Ee=w);var q=qS(Q,Ee),V=qS(Q,ut);if(q&&V&&(ne.rangeCount!==1||ne.anchorNode!==q.node||ne.anchorOffset!==q.offset||ne.focusNode!==V.node||ne.focusOffset!==V.offset)){var G=le.createRange();G.setStart(q.node,q.offset),ne.removeAllRanges(),Ee>ut?(ne.addRange(G),ne.extend(V.node,V.offset)):(G.setEnd(V.node,V.offset),ne.addRange(G))}}}}for(le=[],ne=Q;ne=ne.parentNode;)ne.nodeType===1&&le.push({element:ne,left:ne.scrollLeft,top:ne.scrollTop});for(typeof Q.focus=="function"&&Q.focus(),Q=0;Q<le.length;Q++){var ae=le[Q];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}cd=!!f0,d0=f0=null}finally{it=y,J.p=m,Z.T=f}}a.current=u,qt=2}}function lw(){if(qt===2){qt=0;var a=zs,u=il,f=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||f){f=Z.T,Z.T=null;var m=J.p;J.p=2;var y=it;it|=4;try{Dk(a,u.alternate,u)}finally{it=y,J.p=m,Z.T=f}}qt=3}}function cw(){if(qt===4||qt===3){qt=0,he();var a=zs,u=il,f=Jr,m=Wk;(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?qt=5:(qt=0,il=zs=null,uw(a,a.pendingLanes));var y=a.pendingLanes;if(y===0&&(Ns=null),bg(f),u=u.stateNode,Zt&&typeof Zt.onCommitFiberRoot=="function")try{Zt.onCommitFiberRoot(wn,u,void 0,(u.current.flags&128)===128)}catch{}if(m!==null){u=Z.T,y=J.p,J.p=2,Z.T=null;try{for(var b=a.onRecoverableError,w=0;w<m.length;w++){var Q=m[w];b(Q.value,{componentStack:Q.stack})}}finally{Z.T=u,J.p=y}}(Jr&3)!==0&&Ff(),ur(a),y=a.pendingLanes,(f&261930)!==0&&(y&42)!==0?a===JO?Hc++:(Hc=0,JO=a):Hc=0,Fc(0)}}function uw(a,u){(a.pooledCacheLanes&=u)===0&&(u=a.pooledCache,u!=null&&(a.pooledCache=null,Ac(u)))}function Ff(){return aw(),lw(),cw(),hw()}function hw(){if(qt!==5)return!1;var a=zs,u=FO;FO=0;var f=bg(Jr),m=Z.T,y=J.p;try{J.p=32>f?32:f,Z.T=null,f=KO,KO=null;var b=zs,w=Jr;if(qt=0,il=zs=null,Jr=0,(it&6)!==0)throw Error(i(331));var Q=it;if(it|=4,Uk(b.current),Bk(b,b.current,w,f),it=Q,Fc(0,!1),Zt&&typeof Zt.onPostCommitFiberRoot=="function")try{Zt.onPostCommitFiberRoot(wn,b)}catch{}return!0}finally{J.p=y,Z.T=m,uw(a,u)}}function fw(a,u,f){u=wi(f,u),u=AO(a.stateNode,u,2),a=Rs(a,u,2),a!==null&&(Oc(a,2),ur(a))}function ot(a,u,f){if(a.tag===3)fw(a,a,f);else for(;u!==null;){if(u.tag===3){fw(u,a,f);break}else if(u.tag===1){var m=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Ns===null||!Ns.has(m))){a=wi(f,a),f=dk(2),m=Rs(u,f,2),m!==null&&(pk(f,m,u,a),Oc(m,2),ur(m));break}}u=u.return}}function n0(a,u,f){var m=a.pingCache;if(m===null){m=a.pingCache=new DN;var y=new Set;m.set(u,y)}else y=m.get(u),y===void 0&&(y=new Set,m.set(u,y));y.has(f)||(GO=!0,y.add(f),a=XN.bind(null,a,u,f),u.then(a,a))}function XN(a,u,f){var m=a.pingCache;m!==null&&m.delete(u),a.pingedLanes|=a.suspendedLanes&f,a.warmLanes&=~f,pt===a&&(Ye&f)===f&&(Tt===4||Tt===3&&(Ye&62914560)===Ye&&300>Pe()-qf?(it&2)===0&&rl(a,0):WO|=f,nl===Ye&&(nl=0)),ur(a)}function dw(a,u){u===0&&(u=aS()),a=Qo(a,u),a!==null&&(Oc(a,u),ur(a))}function VN(a){var u=a.memoizedState,f=0;u!==null&&(f=u.retryLane),dw(a,f)}function BN(a,u){var f=0;switch(a.tag){case 31:case 13:var m=a.stateNode,y=a.memoizedState;y!==null&&(f=y.retryLane);break;case 19:m=a.stateNode;break;case 22:m=a.stateNode._retryCache;break;default:throw Error(i(314))}m!==null&&m.delete(u),dw(a,f)}function ZN(a,u){return Kn(a,u)}var Kf=null,ol=null,i0=!1,Jf=!1,r0=!1,Xs=0;function ur(a){a!==ol&&a.next===null&&(ol===null?Kf=ol=a:ol=ol.next=a),Jf=!0,i0||(i0=!0,UN())}function Fc(a,u){if(!r0&&Jf){r0=!0;do for(var f=!1,m=Kf;m!==null;){if(a!==0){var y=m.pendingLanes;if(y===0)var b=0;else{var w=m.suspendedLanes,Q=m.pingedLanes;b=(1<<31-dt(42|a)+1)-1,b&=y&~(w&~Q),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(f=!0,Ow(m,b))}else b=Ye,b=nf(m,m===pt?b:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(b&3)===0||gc(m,b)||(f=!0,Ow(m,b));m=m.next}while(f);r0=!1}}function qN(){pw()}function pw(){Jf=i0=!1;var a=0;Xs!==0&&n3()&&(a=Xs);for(var u=Pe(),f=null,m=Kf;m!==null;){var y=m.next,b=mw(m,u);b===0?(m.next=null,f===null?Kf=y:f.next=y,y===null&&(ol=f)):(f=m,(a!==0||(b&3)!==0)&&(Jf=!0)),m=y}qt!==0&&qt!==5||Fc(a),Xs!==0&&(Xs=0)}function mw(a,u){for(var f=a.suspendedLanes,m=a.pingedLanes,y=a.expirationTimes,b=a.pendingLanes&-62914561;0<b;){var w=31-dt(b),Q=1<<w,X=y[w];X===-1?((Q&f)===0||(Q&m)!==0)&&(y[w]=y5(Q,u)):X<=u&&(a.expiredLanes|=Q),b&=~Q}if(u=pt,f=Ye,f=nf(a,a===u?f:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),m=a.callbackNode,f===0||a===u&&(st===2||st===9)||a.cancelPendingCommit!==null)return m!==null&&m!==null&&or(m),a.callbackNode=null,a.callbackPriority=0;if((f&3)===0||gc(a,f)){if(u=f&-f,u===a.callbackPriority)return u;switch(m!==null&&or(m),bg(f)){case 2:case 8:f=me;break;case 32:f=Ae;break;case 268435456:f=rt;break;default:f=Ae}return m=gw.bind(null,a),f=Kn(f,m),a.callbackPriority=u,a.callbackNode=f,u}return m!==null&&m!==null&&or(m),a.callbackPriority=2,a.callbackNode=null,2}function gw(a,u){if(qt!==0&&qt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var f=a.callbackNode;if(Ff()&&a.callbackNode!==f)return null;var m=Ye;return m=nf(a,a===pt?m:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),m===0?null:(Fk(a,m,u),mw(a,Pe()),a.callbackNode!=null&&a.callbackNode===f?gw.bind(null,a):null)}function Ow(a,u){if(Ff())return null;Fk(a,u,!0)}function UN(){r3(function(){(it&6)!==0?Kn(ie,qN):pw()})}function s0(){if(Xs===0){var a=qa;a===0&&(a=Jh,Jh<<=1,(Jh&261888)===0&&(Jh=256)),Xs=a}return Xs}function yw(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:af(""+a)}function bw(a,u){var f=u.ownerDocument.createElement("input");return f.name=u.name,f.value=u.value,a.id&&f.setAttribute("form",a.id),u.parentNode.insertBefore(f,u),a=new FormData(a),f.parentNode.removeChild(f),a}function YN(a,u,f,m,y){if(u==="submit"&&f&&f.stateNode===y){var b=yw((y[jn]||null).action),w=m.submitter;w&&(u=(u=w[jn]||null)?yw(u.formAction):w.getAttribute("formAction"),u!==null&&(b=u,w=null));var Q=new hf("action","action",null,m,y);a.push({event:Q,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(Xs!==0){var X=w?bw(y,w):new FormData(y);wO(f,{pending:!0,data:X,method:y.method,action:b},null,X)}}else typeof b=="function"&&(Q.preventDefault(),X=w?bw(y,w):new FormData(y),wO(f,{pending:!0,data:X,method:y.method,action:b},b,X))},currentTarget:y}]})}}for(var o0=0;o0<Vg.length;o0++){var a0=Vg[o0],GN=a0.toLowerCase(),WN=a0[0].toUpperCase()+a0.slice(1);Gi(GN,"on"+WN)}Gi(HS,"onAnimationEnd"),Gi(FS,"onAnimationIteration"),Gi(KS,"onAnimationStart"),Gi("dblclick","onDoubleClick"),Gi("focusin","onFocus"),Gi("focusout","onBlur"),Gi(hN,"onTransitionRun"),Gi(fN,"onTransitionStart"),Gi(dN,"onTransitionCancel"),Gi(JS,"onTransitionEnd"),Aa("onMouseEnter",["mouseout","mouseover"]),Aa("onMouseLeave",["mouseout","mouseover"]),Aa("onPointerEnter",["pointerout","pointerover"]),Aa("onPointerLeave",["pointerout","pointerover"]),wo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),wo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),wo("onBeforeInput",["compositionend","keypress","textInput","paste"]),wo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),wo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),wo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),HN=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kc));function xw(a,u){u=(u&4)!==0;for(var f=0;f<a.length;f++){var m=a[f],y=m.event;m=m.listeners;e:{var b=void 0;if(u)for(var w=m.length-1;0<=w;w--){var Q=m[w],X=Q.instance,W=Q.currentTarget;if(Q=Q.listener,X!==b&&y.isPropagationStopped())break e;b=Q,y.currentTarget=W;try{b(y)}catch(re){pf(re)}y.currentTarget=null,b=X}else for(w=0;w<m.length;w++){if(Q=m[w],X=Q.instance,W=Q.currentTarget,Q=Q.listener,X!==b&&y.isPropagationStopped())break e;b=Q,y.currentTarget=W;try{b(y)}catch(re){pf(re)}y.currentTarget=null,b=X}}}}function Be(a,u){var f=u[xg];f===void 0&&(f=u[xg]=new Set);var m=a+"__bubble";f.has(m)||(vw(u,a,2,!1),f.add(m))}function l0(a,u,f){var m=0;u&&(m|=4),vw(f,a,m,u)}var ed="_reactListening"+Math.random().toString(36).slice(2);function c0(a){if(!a[ed]){a[ed]=!0,pS.forEach(function(f){f!=="selectionchange"&&(HN.has(f)||l0(f,!1,a),l0(f,!0,a))});var u=a.nodeType===9?a:a.ownerDocument;u===null||u[ed]||(u[ed]=!0,l0("selectionchange",!1,u))}}function vw(a,u,f,m){switch(Hw(u)){case 2:var y=k3;break;case 8:y=w3;break;default:y=k0}f=y.bind(null,u,f,a),y=void 0,!Qg||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(y=!0),m?y!==void 0?a.addEventListener(u,f,{capture:!0,passive:y}):a.addEventListener(u,f,!0):y!==void 0?a.addEventListener(u,f,{passive:y}):a.addEventListener(u,f,!1)}function u0(a,u,f,m,y){var b=m;if((u&1)===0&&(u&2)===0&&m!==null)e:for(;;){if(m===null)return;var w=m.tag;if(w===3||w===4){var Q=m.stateNode.containerInfo;if(Q===y)break;if(w===4)for(w=m.return;w!==null;){var X=w.tag;if((X===3||X===4)&&w.stateNode.containerInfo===y)return;w=w.return}for(;Q!==null;){if(w=Ca(Q),w===null)return;if(X=w.tag,X===5||X===6||X===26||X===27){m=b=w;continue e}Q=Q.parentNode}}m=m.return}PS(function(){var W=b,re=Tg(f),le=[];e:{var K=e_.get(a);if(K!==void 0){var ne=hf,ke=a;switch(a){case"keypress":if(cf(f)===0)break e;case"keydown":case"keyup":ne=B5;break;case"focusin":ke="focus",ne=Lg;break;case"focusout":ke="blur",ne=Lg;break;case"beforeblur":case"afterblur":ne=Lg;break;case"click":if(f.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=QS;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=A5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=U5;break;case HS:case FS:case KS:ne=$5;break;case JS:ne=G5;break;case"scroll":case"scrollend":ne=Q5;break;case"wheel":ne=H5;break;case"copy":case"cut":case"paste":ne=D5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=AS;break;case"toggle":case"beforetoggle":ne=K5}var Ee=(u&4)!==0,ut=!Ee&&(a==="scroll"||a==="scrollend"),q=Ee?K!==null?K+"Capture":null:K;Ee=[];for(var V=W,G;V!==null;){var ae=V;if(G=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||G===null||q===null||(ae=xc(V,q),ae!=null&&Ee.push(Jc(V,ae,G))),ut)break;V=V.return}0<Ee.length&&(K=new ne(K,ke,null,f,re),le.push({event:K,listeners:Ee}))}}if((u&7)===0){e:{if(K=a==="mouseover"||a==="pointerover",ne=a==="mouseout"||a==="pointerout",K&&f!==Pg&&(ke=f.relatedTarget||f.fromElement)&&(Ca(ke)||ke[Ta]))break e;if((ne||K)&&(K=re.window===re?re:(K=re.ownerDocument)?K.defaultView||K.parentWindow:window,ne?(ke=f.relatedTarget||f.toElement,ne=W,ke=ke?Ca(ke):null,ke!==null&&(ut=s(ke),Ee=ke.tag,ke!==ut||Ee!==5&&Ee!==27&&Ee!==6)&&(ke=null)):(ne=null,ke=W),ne!==ke)){if(Ee=QS,ae="onMouseLeave",q="onMouseEnter",V="mouse",(a==="pointerout"||a==="pointerover")&&(Ee=AS,ae="onPointerLeave",q="onPointerEnter",V="pointer"),ut=ne==null?K:bc(ne),G=ke==null?K:bc(ke),K=new Ee(ae,V+"leave",ne,f,re),K.target=ut,K.relatedTarget=G,ae=null,Ca(re)===W&&(Ee=new Ee(q,V+"enter",ke,f,re),Ee.target=G,Ee.relatedTarget=ut,ae=Ee),ut=ae,ne&&ke)t:{for(Ee=FN,q=ne,V=ke,G=0,ae=q;ae;ae=Ee(ae))G++;ae=0;for(var Ce=V;Ce;Ce=Ee(Ce))ae++;for(;0<G-ae;)q=Ee(q),G--;for(;0<ae-G;)V=Ee(V),ae--;for(;G--;){if(q===V||V!==null&&q===V.alternate){Ee=q;break t}q=Ee(q),V=Ee(V)}Ee=null}else Ee=null;ne!==null&&Sw(le,K,ne,Ee,!1),ke!==null&&ut!==null&&Sw(le,ut,ke,Ee,!0)}}e:{if(K=W?bc(W):window,ne=K.nodeName&&K.nodeName.toLowerCase(),ne==="select"||ne==="input"&&K.type==="file")var tt=zS;else if(jS(K))if(IS)tt=lN;else{tt=oN;var we=sN}else ne=K.nodeName,!ne||ne.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?W&&wg(W.elementType)&&(tt=zS):tt=aN;if(tt&&(tt=tt(a,W))){NS(le,tt,f,re);break e}we&&we(a,K,W),a==="focusout"&&W&&K.type==="number"&&W.memoizedProps.value!=null&&kg(K,"number",K.value)}switch(we=W?bc(W):window,a){case"focusin":(jS(we)||we.contentEditable==="true")&&(ja=we,zg=W,Cc=null);break;case"focusout":Cc=zg=ja=null;break;case"mousedown":Ig=!0;break;case"contextmenu":case"mouseup":case"dragend":Ig=!1,GS(le,f,re);break;case"selectionchange":if(uN)break;case"keydown":case"keyup":GS(le,f,re)}var Ne;if(Mg)e:{switch(a){case"compositionstart":var Ge="onCompositionStart";break e;case"compositionend":Ge="onCompositionEnd";break e;case"compositionupdate":Ge="onCompositionUpdate";break e}Ge=void 0}else Da?MS(a,f)&&(Ge="onCompositionEnd"):a==="keydown"&&f.keyCode===229&&(Ge="onCompositionStart");Ge&&(RS&&f.locale!=="ko"&&(Da||Ge!=="onCompositionStart"?Ge==="onCompositionEnd"&&Da&&(Ne=TS()):(ws=re,Eg="value"in ws?ws.value:ws.textContent,Da=!0)),we=td(W,Ge),0<we.length&&(Ge=new ES(Ge,a,null,f,re),le.push({event:Ge,listeners:we}),Ne?Ge.data=Ne:(Ne=DS(f),Ne!==null&&(Ge.data=Ne)))),(Ne=eN?tN(a,f):nN(a,f))&&(Ge=td(W,"onBeforeInput"),0<Ge.length&&(we=new ES("onBeforeInput","beforeinput",null,f,re),le.push({event:we,listeners:Ge}),we.data=Ne)),YN(le,a,W,f,re)}xw(le,u)})}function Jc(a,u,f){return{instance:a,listener:u,currentTarget:f}}function td(a,u){for(var f=u+"Capture",m=[];a!==null;){var y=a,b=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||b===null||(y=xc(a,f),y!=null&&m.unshift(Jc(a,y,b)),y=xc(a,u),y!=null&&m.push(Jc(a,y,b))),a.tag===3)return m;a=a.return}return[]}function FN(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function Sw(a,u,f,m,y){for(var b=u._reactName,w=[];f!==null&&f!==m;){var Q=f,X=Q.alternate,W=Q.stateNode;if(Q=Q.tag,X!==null&&X===m)break;Q!==5&&Q!==26&&Q!==27||W===null||(X=W,y?(W=xc(f,b),W!=null&&w.unshift(Jc(f,W,X))):y||(W=xc(f,b),W!=null&&w.push(Jc(f,W,X)))),f=f.return}w.length!==0&&a.push({event:u,listeners:w})}var KN=/\r\n?/g,JN=/\u0000|\uFFFD/g;function _w(a){return(typeof a=="string"?a:""+a).replace(KN,`
10
+ `).replace(JN,"")}function kw(a,u){return u=_w(u),_w(a)===u}function ct(a,u,f,m,y,b){switch(f){case"children":typeof m=="string"?u==="body"||u==="textarea"&&m===""||La(a,m):(typeof m=="number"||typeof m=="bigint")&&u!=="body"&&La(a,""+m);break;case"className":sf(a,"class",m);break;case"tabIndex":sf(a,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":sf(a,f,m);break;case"style":kS(a,m,b);break;case"data":if(u!=="object"){sf(a,"data",m);break}case"src":case"href":if(m===""&&(u!=="a"||f!=="href")){a.removeAttribute(f);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){a.removeAttribute(f);break}m=af(""+m),a.setAttribute(f,m);break;case"action":case"formAction":if(typeof m=="function"){a.setAttribute(f,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof b=="function"&&(f==="formAction"?(u!=="input"&&ct(a,u,"name",y.name,y,null),ct(a,u,"formEncType",y.formEncType,y,null),ct(a,u,"formMethod",y.formMethod,y,null),ct(a,u,"formTarget",y.formTarget,y,null)):(ct(a,u,"encType",y.encType,y,null),ct(a,u,"method",y.method,y,null),ct(a,u,"target",y.target,y,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){a.removeAttribute(f);break}m=af(""+m),a.setAttribute(f,m);break;case"onClick":m!=null&&(a.onclick=Nr);break;case"onScroll":m!=null&&Be("scroll",a);break;case"onScrollEnd":m!=null&&Be("scrollend",a);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(i(61));if(f=m.__html,f!=null){if(y.children!=null)throw Error(i(60));a.innerHTML=f}}break;case"multiple":a.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":a.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){a.removeAttribute("xlink:href");break}f=af(""+m),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",f);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?a.setAttribute(f,""+m):a.removeAttribute(f);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?a.setAttribute(f,""):a.removeAttribute(f);break;case"capture":case"download":m===!0?a.setAttribute(f,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?a.setAttribute(f,m):a.removeAttribute(f);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?a.setAttribute(f,m):a.removeAttribute(f);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?a.removeAttribute(f):a.setAttribute(f,m);break;case"popover":Be("beforetoggle",a),Be("toggle",a),rf(a,"popover",m);break;case"xlinkActuate":jr(a,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":jr(a,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":jr(a,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":jr(a,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":jr(a,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":jr(a,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":jr(a,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":jr(a,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":jr(a,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":rf(a,"is",m);break;case"innerText":case"textContent":break;default:(!(2<f.length)||f[0]!=="o"&&f[0]!=="O"||f[1]!=="n"&&f[1]!=="N")&&(f=T5.get(f)||f,rf(a,f,m))}}function h0(a,u,f,m,y,b){switch(f){case"style":kS(a,m,b);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(i(61));if(f=m.__html,f!=null){if(y.children!=null)throw Error(i(60));a.innerHTML=f}}break;case"children":typeof m=="string"?La(a,m):(typeof m=="number"||typeof m=="bigint")&&La(a,""+m);break;case"onScroll":m!=null&&Be("scroll",a);break;case"onScrollEnd":m!=null&&Be("scrollend",a);break;case"onClick":m!=null&&(a.onclick=Nr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mS.hasOwnProperty(f))e:{if(f[0]==="o"&&f[1]==="n"&&(y=f.endsWith("Capture"),u=f.slice(2,y?f.length-7:void 0),b=a[jn]||null,b=b!=null?b[f]:null,typeof b=="function"&&a.removeEventListener(u,b,y),typeof m=="function")){typeof b!="function"&&b!==null&&(f in a?a[f]=null:a.hasAttribute(f)&&a.removeAttribute(f)),a.addEventListener(u,m,y);break e}f in a?a[f]=m:m===!0?a.setAttribute(f,""):rf(a,f,m)}}}function an(a,u,f){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Be("error",a),Be("load",a);var m=!1,y=!1,b;for(b in f)if(f.hasOwnProperty(b)){var w=f[b];if(w!=null)switch(b){case"src":m=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,u));default:ct(a,u,b,w,f,null)}}y&&ct(a,u,"srcSet",f.srcSet,f,null),m&&ct(a,u,"src",f.src,f,null);return;case"input":Be("invalid",a);var Q=b=w=y=null,X=null,W=null;for(m in f)if(f.hasOwnProperty(m)){var re=f[m];if(re!=null)switch(m){case"name":y=re;break;case"type":w=re;break;case"checked":X=re;break;case"defaultChecked":W=re;break;case"value":b=re;break;case"defaultValue":Q=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,u));break;default:ct(a,u,m,re,f,null)}}xS(a,b,Q,X,W,w,y,!1);return;case"select":Be("invalid",a),m=w=b=null;for(y in f)if(f.hasOwnProperty(y)&&(Q=f[y],Q!=null))switch(y){case"value":b=Q;break;case"defaultValue":w=Q;break;case"multiple":m=Q;default:ct(a,u,y,Q,f,null)}u=b,f=w,a.multiple=!!m,u!=null?Ra(a,!!m,u,!1):f!=null&&Ra(a,!!m,f,!0);return;case"textarea":Be("invalid",a),b=y=m=null;for(w in f)if(f.hasOwnProperty(w)&&(Q=f[w],Q!=null))switch(w){case"value":m=Q;break;case"defaultValue":y=Q;break;case"children":b=Q;break;case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(91));break;default:ct(a,u,w,Q,f,null)}SS(a,m,y,b);return;case"option":for(X in f)f.hasOwnProperty(X)&&(m=f[X],m!=null)&&(X==="selected"?a.selected=m&&typeof m!="function"&&typeof m!="symbol":ct(a,u,X,m,f,null));return;case"dialog":Be("beforetoggle",a),Be("toggle",a),Be("cancel",a),Be("close",a);break;case"iframe":case"object":Be("load",a);break;case"video":case"audio":for(m=0;m<Kc.length;m++)Be(Kc[m],a);break;case"image":Be("error",a),Be("load",a);break;case"details":Be("toggle",a);break;case"embed":case"source":case"link":Be("error",a),Be("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(W in f)if(f.hasOwnProperty(W)&&(m=f[W],m!=null))switch(W){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,u));default:ct(a,u,W,m,f,null)}return;default:if(wg(u)){for(re in f)f.hasOwnProperty(re)&&(m=f[re],m!==void 0&&h0(a,u,re,m,f,void 0));return}}for(Q in f)f.hasOwnProperty(Q)&&(m=f[Q],m!=null&&ct(a,u,Q,m,f,null))}function e3(a,u,f,m){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,b=null,w=null,Q=null,X=null,W=null,re=null;for(ne in f){var le=f[ne];if(f.hasOwnProperty(ne)&&le!=null)switch(ne){case"checked":break;case"value":break;case"defaultValue":X=le;default:m.hasOwnProperty(ne)||ct(a,u,ne,null,m,le)}}for(var K in m){var ne=m[K];if(le=f[K],m.hasOwnProperty(K)&&(ne!=null||le!=null))switch(K){case"type":b=ne;break;case"name":y=ne;break;case"checked":W=ne;break;case"defaultChecked":re=ne;break;case"value":w=ne;break;case"defaultValue":Q=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,u));break;default:ne!==le&&ct(a,u,K,ne,m,le)}}_g(a,w,Q,X,W,re,b,y);return;case"select":ne=w=Q=K=null;for(b in f)if(X=f[b],f.hasOwnProperty(b)&&X!=null)switch(b){case"value":break;case"multiple":ne=X;default:m.hasOwnProperty(b)||ct(a,u,b,null,m,X)}for(y in m)if(b=m[y],X=f[y],m.hasOwnProperty(y)&&(b!=null||X!=null))switch(y){case"value":K=b;break;case"defaultValue":Q=b;break;case"multiple":w=b;default:b!==X&&ct(a,u,y,b,m,X)}u=Q,f=w,m=ne,K!=null?Ra(a,!!f,K,!1):!!m!=!!f&&(u!=null?Ra(a,!!f,u,!0):Ra(a,!!f,f?[]:"",!1));return;case"textarea":ne=K=null;for(Q in f)if(y=f[Q],f.hasOwnProperty(Q)&&y!=null&&!m.hasOwnProperty(Q))switch(Q){case"value":break;case"children":break;default:ct(a,u,Q,null,m,y)}for(w in m)if(y=m[w],b=f[w],m.hasOwnProperty(w)&&(y!=null||b!=null))switch(w){case"value":K=y;break;case"defaultValue":ne=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(i(91));break;default:y!==b&&ct(a,u,w,y,m,b)}vS(a,K,ne);return;case"option":for(var ke in f)K=f[ke],f.hasOwnProperty(ke)&&K!=null&&!m.hasOwnProperty(ke)&&(ke==="selected"?a.selected=!1:ct(a,u,ke,null,m,K));for(X in m)K=m[X],ne=f[X],m.hasOwnProperty(X)&&K!==ne&&(K!=null||ne!=null)&&(X==="selected"?a.selected=K&&typeof K!="function"&&typeof K!="symbol":ct(a,u,X,K,m,ne));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ee in f)K=f[Ee],f.hasOwnProperty(Ee)&&K!=null&&!m.hasOwnProperty(Ee)&&ct(a,u,Ee,null,m,K);for(W in m)if(K=m[W],ne=f[W],m.hasOwnProperty(W)&&K!==ne&&(K!=null||ne!=null))switch(W){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,u));break;default:ct(a,u,W,K,m,ne)}return;default:if(wg(u)){for(var ut in f)K=f[ut],f.hasOwnProperty(ut)&&K!==void 0&&!m.hasOwnProperty(ut)&&h0(a,u,ut,void 0,m,K);for(re in m)K=m[re],ne=f[re],!m.hasOwnProperty(re)||K===ne||K===void 0&&ne===void 0||h0(a,u,re,K,m,ne);return}}for(var q in f)K=f[q],f.hasOwnProperty(q)&&K!=null&&!m.hasOwnProperty(q)&&ct(a,u,q,null,m,K);for(le in m)K=m[le],ne=f[le],!m.hasOwnProperty(le)||K===ne||K==null&&ne==null||ct(a,u,le,K,m,ne)}function ww(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function t3(){if(typeof performance.getEntriesByType=="function"){for(var a=0,u=0,f=performance.getEntriesByType("resource"),m=0;m<f.length;m++){var y=f[m],b=y.transferSize,w=y.initiatorType,Q=y.duration;if(b&&Q&&ww(w)){for(w=0,Q=y.responseEnd,m+=1;m<f.length;m++){var X=f[m],W=X.startTime;if(W>Q)break;var re=X.transferSize,le=X.initiatorType;re&&ww(le)&&(X=X.responseEnd,w+=re*(X<Q?1:(Q-W)/(X-W)))}if(--m,u+=8*(b+w)/(y.duration/1e3),a++,10<a)break}}if(0<a)return u/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var f0=null,d0=null;function nd(a){return a.nodeType===9?a:a.ownerDocument}function Pw(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Tw(a,u){if(a===0)switch(u){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&u==="foreignObject"?0:a}function p0(a,u){return a==="textarea"||a==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var m0=null;function n3(){var a=window.event;return a&&a.type==="popstate"?a===m0?!1:(m0=a,!0):(m0=null,!1)}var Cw=typeof setTimeout=="function"?setTimeout:void 0,i3=typeof clearTimeout=="function"?clearTimeout:void 0,Qw=typeof Promise=="function"?Promise:void 0,r3=typeof queueMicrotask=="function"?queueMicrotask:typeof Qw<"u"?function(a){return Qw.resolve(null).then(a).catch(s3)}:Cw;function s3(a){setTimeout(function(){throw a})}function Vs(a){return a==="head"}function Ew(a,u){var f=u,m=0;do{var y=f.nextSibling;if(a.removeChild(f),y&&y.nodeType===8)if(f=y.data,f==="/$"||f==="/&"){if(m===0){a.removeChild(y),ul(u);return}m--}else if(f==="$"||f==="$?"||f==="$~"||f==="$!"||f==="&")m++;else if(f==="html")eu(a.ownerDocument.documentElement);else if(f==="head"){f=a.ownerDocument.head,eu(f);for(var b=f.firstChild;b;){var w=b.nextSibling,Q=b.nodeName;b[yc]||Q==="SCRIPT"||Q==="STYLE"||Q==="LINK"&&b.rel.toLowerCase()==="stylesheet"||f.removeChild(b),b=w}}else f==="body"&&eu(a.ownerDocument.body);f=y}while(f);ul(u)}function Aw(a,u){var f=a;a=0;do{var m=f.nextSibling;if(f.nodeType===1?u?(f._stashedDisplay=f.style.display,f.style.display="none"):(f.style.display=f._stashedDisplay||"",f.getAttribute("style")===""&&f.removeAttribute("style")):f.nodeType===3&&(u?(f._stashedText=f.nodeValue,f.nodeValue=""):f.nodeValue=f._stashedText||""),m&&m.nodeType===8)if(f=m.data,f==="/$"){if(a===0)break;a--}else f!=="$"&&f!=="$?"&&f!=="$~"&&f!=="$!"||a++;f=m}while(f)}function g0(a){var u=a.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var f=u;switch(u=u.nextSibling,f.nodeName){case"HTML":case"HEAD":case"BODY":g0(f),vg(f);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(f.rel.toLowerCase()==="stylesheet")continue}a.removeChild(f)}}function o3(a,u,f,m){for(;a.nodeType===1;){var y=f;if(a.nodeName.toLowerCase()!==u.toLowerCase()){if(!m&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(m){if(!a[yc])switch(u){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(b=a.getAttribute("rel"),b==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(b!==y.rel||a.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||a.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||a.getAttribute("title")!==(y.title==null?null:y.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(b=a.getAttribute("src"),(b!==(y.src==null?null:y.src)||a.getAttribute("type")!==(y.type==null?null:y.type)||a.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&b&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(u==="input"&&a.type==="hidden"){var b=y.name==null?null:""+y.name;if(y.type==="hidden"&&a.getAttribute("name")===b)return a}else return a;if(a=Ei(a.nextSibling),a===null)break}return null}function a3(a,u,f){if(u==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!f||(a=Ei(a.nextSibling),a===null))return null;return a}function Rw(a,u){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=Ei(a.nextSibling),a===null))return null;return a}function O0(a){return a.data==="$?"||a.data==="$~"}function y0(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function l3(a,u){var f=a.ownerDocument;if(a.data==="$~")a._reactRetry=u;else if(a.data!=="$?"||f.readyState!=="loading")u();else{var m=function(){u(),f.removeEventListener("DOMContentLoaded",m)};f.addEventListener("DOMContentLoaded",m),a._reactRetry=m}}function Ei(a){for(;a!=null;a=a.nextSibling){var u=a.nodeType;if(u===1||u===3)break;if(u===8){if(u=a.data,u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"||u==="F!"||u==="F")break;if(u==="/$"||u==="/&")return null}}return a}var b0=null;function Lw(a){a=a.nextSibling;for(var u=0;a;){if(a.nodeType===8){var f=a.data;if(f==="/$"||f==="/&"){if(u===0)return Ei(a.nextSibling);u--}else f!=="$"&&f!=="$!"&&f!=="$?"&&f!=="$~"&&f!=="&"||u++}a=a.nextSibling}return null}function $w(a){a=a.previousSibling;for(var u=0;a;){if(a.nodeType===8){var f=a.data;if(f==="$"||f==="$!"||f==="$?"||f==="$~"||f==="&"){if(u===0)return a;u--}else f!=="/$"&&f!=="/&"||u++}a=a.previousSibling}return null}function Mw(a,u,f){switch(u=nd(f),a){case"html":if(a=u.documentElement,!a)throw Error(i(452));return a;case"head":if(a=u.head,!a)throw Error(i(453));return a;case"body":if(a=u.body,!a)throw Error(i(454));return a;default:throw Error(i(451))}}function eu(a){for(var u=a.attributes;u.length;)a.removeAttributeNode(u[0]);vg(a)}var Ai=new Map,Dw=new Set;function id(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var es=J.d;J.d={f:c3,r:u3,D:h3,C:f3,L:d3,m:p3,X:g3,S:m3,M:O3};function c3(){var a=es.f(),u=Gf();return a||u}function u3(a){var u=Qa(a);u!==null&&u.tag===5&&u.type==="form"?J_(u):es.r(a)}var al=typeof document>"u"?null:document;function jw(a,u,f){var m=al;if(m&&typeof u=="string"&&u){var y=_i(u);y='link[rel="'+a+'"][href="'+y+'"]',typeof f=="string"&&(y+='[crossorigin="'+f+'"]'),Dw.has(y)||(Dw.add(y),a={rel:a,crossOrigin:f,href:u},m.querySelector(y)===null&&(u=m.createElement("link"),an(u,"link",a),Ft(u),m.head.appendChild(u)))}}function h3(a){es.D(a),jw("dns-prefetch",a,null)}function f3(a,u){es.C(a,u),jw("preconnect",a,u)}function d3(a,u,f){es.L(a,u,f);var m=al;if(m&&a&&u){var y='link[rel="preload"][as="'+_i(u)+'"]';u==="image"&&f&&f.imageSrcSet?(y+='[imagesrcset="'+_i(f.imageSrcSet)+'"]',typeof f.imageSizes=="string"&&(y+='[imagesizes="'+_i(f.imageSizes)+'"]')):y+='[href="'+_i(a)+'"]';var b=y;switch(u){case"style":b=ll(a);break;case"script":b=cl(a)}Ai.has(b)||(a=p({rel:"preload",href:u==="image"&&f&&f.imageSrcSet?void 0:a,as:u},f),Ai.set(b,a),m.querySelector(y)!==null||u==="style"&&m.querySelector(tu(b))||u==="script"&&m.querySelector(nu(b))||(u=m.createElement("link"),an(u,"link",a),Ft(u),m.head.appendChild(u)))}}function p3(a,u){es.m(a,u);var f=al;if(f&&a){var m=u&&typeof u.as=="string"?u.as:"script",y='link[rel="modulepreload"][as="'+_i(m)+'"][href="'+_i(a)+'"]',b=y;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=cl(a)}if(!Ai.has(b)&&(a=p({rel:"modulepreload",href:a},u),Ai.set(b,a),f.querySelector(y)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(f.querySelector(nu(b)))return}m=f.createElement("link"),an(m,"link",a),Ft(m),f.head.appendChild(m)}}}function m3(a,u,f){es.S(a,u,f);var m=al;if(m&&a){var y=Ea(m).hoistableStyles,b=ll(a);u=u||"default";var w=y.get(b);if(!w){var Q={loading:0,preload:null};if(w=m.querySelector(tu(b)))Q.loading=5;else{a=p({rel:"stylesheet",href:a,"data-precedence":u},f),(f=Ai.get(b))&&x0(a,f);var X=w=m.createElement("link");Ft(X),an(X,"link",a),X._p=new Promise(function(W,re){X.onload=W,X.onerror=re}),X.addEventListener("load",function(){Q.loading|=1}),X.addEventListener("error",function(){Q.loading|=2}),Q.loading|=4,rd(w,u,m)}w={type:"stylesheet",instance:w,count:1,state:Q},y.set(b,w)}}}function g3(a,u){es.X(a,u);var f=al;if(f&&a){var m=Ea(f).hoistableScripts,y=cl(a),b=m.get(y);b||(b=f.querySelector(nu(y)),b||(a=p({src:a,async:!0},u),(u=Ai.get(y))&&v0(a,u),b=f.createElement("script"),Ft(b),an(b,"link",a),f.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},m.set(y,b))}}function O3(a,u){es.M(a,u);var f=al;if(f&&a){var m=Ea(f).hoistableScripts,y=cl(a),b=m.get(y);b||(b=f.querySelector(nu(y)),b||(a=p({src:a,async:!0,type:"module"},u),(u=Ai.get(y))&&v0(a,u),b=f.createElement("script"),Ft(b),an(b,"link",a),f.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},m.set(y,b))}}function Nw(a,u,f,m){var y=(y=xe.current)?id(y):null;if(!y)throw Error(i(446));switch(a){case"meta":case"title":return null;case"style":return typeof f.precedence=="string"&&typeof f.href=="string"?(u=ll(f.href),f=Ea(y).hoistableStyles,m=f.get(u),m||(m={type:"style",instance:null,count:0,state:null},f.set(u,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(f.rel==="stylesheet"&&typeof f.href=="string"&&typeof f.precedence=="string"){a=ll(f.href);var b=Ea(y).hoistableStyles,w=b.get(a);if(w||(y=y.ownerDocument||y,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(a,w),(b=y.querySelector(tu(a)))&&!b._p&&(w.instance=b,w.state.loading=5),Ai.has(a)||(f={rel:"preload",as:"style",href:f.href,crossOrigin:f.crossOrigin,integrity:f.integrity,media:f.media,hrefLang:f.hrefLang,referrerPolicy:f.referrerPolicy},Ai.set(a,f),b||y3(y,a,f,w.state))),u&&m===null)throw Error(i(528,""));return w}if(u&&m!==null)throw Error(i(529,""));return null;case"script":return u=f.async,f=f.src,typeof f=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=cl(f),f=Ea(y).hoistableScripts,m=f.get(u),m||(m={type:"script",instance:null,count:0,state:null},f.set(u,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,a))}}function ll(a){return'href="'+_i(a)+'"'}function tu(a){return'link[rel="stylesheet"]['+a+"]"}function zw(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function y3(a,u,f,m){a.querySelector('link[rel="preload"][as="style"]['+u+"]")?m.loading=1:(u=a.createElement("link"),m.preload=u,u.addEventListener("load",function(){return m.loading|=1}),u.addEventListener("error",function(){return m.loading|=2}),an(u,"link",f),Ft(u),a.head.appendChild(u))}function cl(a){return'[src="'+_i(a)+'"]'}function nu(a){return"script[async]"+a}function Iw(a,u,f){if(u.count++,u.instance===null)switch(u.type){case"style":var m=a.querySelector('style[data-href~="'+_i(f.href)+'"]');if(m)return u.instance=m,Ft(m),m;var y=p({},f,{"data-href":f.href,"data-precedence":f.precedence,href:null,precedence:null});return m=(a.ownerDocument||a).createElement("style"),Ft(m),an(m,"style",y),rd(m,f.precedence,a),u.instance=m;case"stylesheet":y=ll(f.href);var b=a.querySelector(tu(y));if(b)return u.state.loading|=4,u.instance=b,Ft(b),b;m=zw(f),(y=Ai.get(y))&&x0(m,y),b=(a.ownerDocument||a).createElement("link"),Ft(b);var w=b;return w._p=new Promise(function(Q,X){w.onload=Q,w.onerror=X}),an(b,"link",m),u.state.loading|=4,rd(b,f.precedence,a),u.instance=b;case"script":return b=cl(f.src),(y=a.querySelector(nu(b)))?(u.instance=y,Ft(y),y):(m=f,(y=Ai.get(b))&&(m=p({},f),v0(m,y)),a=a.ownerDocument||a,y=a.createElement("script"),Ft(y),an(y,"link",m),a.head.appendChild(y),u.instance=y);case"void":return null;default:throw Error(i(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(m=u.instance,u.state.loading|=4,rd(m,f.precedence,a));return u.instance}function rd(a,u,f){for(var m=f.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=m.length?m[m.length-1]:null,b=y,w=0;w<m.length;w++){var Q=m[w];if(Q.dataset.precedence===u)b=Q;else if(b!==y)break}b?b.parentNode.insertBefore(a,b.nextSibling):(u=f.nodeType===9?f.head:f,u.insertBefore(a,u.firstChild))}function x0(a,u){a.crossOrigin==null&&(a.crossOrigin=u.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=u.referrerPolicy),a.title==null&&(a.title=u.title)}function v0(a,u){a.crossOrigin==null&&(a.crossOrigin=u.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=u.referrerPolicy),a.integrity==null&&(a.integrity=u.integrity)}var sd=null;function Xw(a,u,f){if(sd===null){var m=new Map,y=sd=new Map;y.set(f,m)}else y=sd,m=y.get(f),m||(m=new Map,y.set(f,m));if(m.has(a))return m;for(m.set(a,null),f=f.getElementsByTagName(a),y=0;y<f.length;y++){var b=f[y];if(!(b[yc]||b[nn]||a==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var w=b.getAttribute(u)||"";w=a+w;var Q=m.get(w);Q?Q.push(b):m.set(w,[b])}}return m}function Vw(a,u,f){a=a.ownerDocument||a,a.head.insertBefore(f,u==="title"?a.querySelector("head > title"):null)}function b3(a,u,f){if(f===1||u.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;return u.rel==="stylesheet"?(a=u.disabled,typeof u.precedence=="string"&&a==null):!0;case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function Bw(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function x3(a,u,f,m){if(f.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(f.state.loading&4)===0){if(f.instance===null){var y=ll(m.href),b=u.querySelector(tu(y));if(b){u=b._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(a.count++,a=od.bind(a),u.then(a,a)),f.state.loading|=4,f.instance=b,Ft(b);return}b=u.ownerDocument||u,m=zw(m),(y=Ai.get(y))&&x0(m,y),b=b.createElement("link"),Ft(b);var w=b;w._p=new Promise(function(Q,X){w.onload=Q,w.onerror=X}),an(b,"link",m),f.instance=b}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(f,u),(u=f.state.preload)&&(f.state.loading&3)===0&&(a.count++,f=od.bind(a),u.addEventListener("load",f),u.addEventListener("error",f))}}var S0=0;function v3(a,u){return a.stylesheets&&a.count===0&&ld(a,a.stylesheets),0<a.count||0<a.imgCount?function(f){var m=setTimeout(function(){if(a.stylesheets&&ld(a,a.stylesheets),a.unsuspend){var b=a.unsuspend;a.unsuspend=null,b()}},6e4+u);0<a.imgBytes&&S0===0&&(S0=62500*t3());var y=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&ld(a,a.stylesheets),a.unsuspend)){var b=a.unsuspend;a.unsuspend=null,b()}},(a.imgBytes>S0?50:800)+u);return a.unsuspend=f,function(){a.unsuspend=null,clearTimeout(m),clearTimeout(y)}}:null}function od(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ld(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var ad=null;function ld(a,u){a.stylesheets=null,a.unsuspend!==null&&(a.count++,ad=new Map,u.forEach(S3,a),ad=null,od.call(a))}function S3(a,u){if(!(u.state.loading&4)){var f=ad.get(a);if(f)var m=f.get(null);else{f=new Map,ad.set(a,f);for(var y=a.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<y.length;b++){var w=y[b];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(f.set(w.dataset.precedence,w),m=w)}m&&f.set(null,m)}y=u.instance,w=y.getAttribute("data-precedence"),b=f.get(w)||m,b===m&&f.set(null,y),f.set(w,y),this.count++,m=od.bind(this),y.addEventListener("load",m),y.addEventListener("error",m),b?b.parentNode.insertBefore(y,b.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(y,a.firstChild)),u.state.loading|=4}}var iu={$$typeof:C,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function _3(a,u,f,m,y,b,w,Q,X){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Og(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Og(0),this.hiddenUpdates=Og(null),this.identifierPrefix=m,this.onUncaughtError=y,this.onCaughtError=b,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=X,this.incompleteTransitions=new Map}function Zw(a,u,f,m,y,b,w,Q,X,W,re,le){return a=new _3(a,u,f,w,X,W,re,le,Q),u=1,b===!0&&(u|=24),b=ti(3,null,null,u),a.current=b,b.stateNode=a,u=tO(),u.refCount++,a.pooledCache=u,u.refCount++,b.memoizedState={element:m,isDehydrated:f,cache:u},sO(b),a}function qw(a){return a?(a=Ia,a):Ia}function Uw(a,u,f,m,y,b){y=qw(y),m.context===null?m.context=y:m.pendingContext=y,m=As(u),m.payload={element:f},b=b===void 0?null:b,b!==null&&(m.callback=b),f=Rs(a,m,u),f!==null&&(Bn(f,a,u),Mc(f,a,u))}function Yw(a,u){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var f=a.retryLane;a.retryLane=f!==0&&f<u?f:u}}function _0(a,u){Yw(a,u),(a=a.alternate)&&Yw(a,u)}function Gw(a){if(a.tag===13||a.tag===31){var u=Qo(a,67108864);u!==null&&Bn(u,a,67108864),_0(a,67108864)}}function Ww(a){if(a.tag===13||a.tag===31){var u=oi();u=yg(u);var f=Qo(a,u);f!==null&&Bn(f,a,u),_0(a,u)}}var cd=!0;function k3(a,u,f,m){var y=Z.T;Z.T=null;var b=J.p;try{J.p=2,k0(a,u,f,m)}finally{J.p=b,Z.T=y}}function w3(a,u,f,m){var y=Z.T;Z.T=null;var b=J.p;try{J.p=8,k0(a,u,f,m)}finally{J.p=b,Z.T=y}}function k0(a,u,f,m){if(cd){var y=w0(m);if(y===null)u0(a,u,m,ud,f),Fw(a,m);else if(T3(y,a,u,f,m))m.stopPropagation();else if(Fw(a,m),u&4&&-1<P3.indexOf(a)){for(;y!==null;){var b=Qa(y);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var w=ko(b.pendingLanes);if(w!==0){var Q=b;for(Q.pendingLanes|=2,Q.entangledLanes|=2;w;){var X=1<<31-dt(w);Q.entanglements[1]|=X,w&=~X}ur(b),(it&6)===0&&(Uf=Pe()+500,Fc(0))}}break;case 31:case 13:Q=Qo(b,2),Q!==null&&Bn(Q,b,2),Gf(),_0(b,2)}if(b=w0(m),b===null&&u0(a,u,m,ud,f),b===y)break;y=b}y!==null&&m.stopPropagation()}else u0(a,u,m,null,f)}}function w0(a){return a=Tg(a),P0(a)}var ud=null;function P0(a){if(ud=null,a=Ca(a),a!==null){var u=s(a);if(u===null)a=null;else{var f=u.tag;if(f===13){if(a=o(u),a!==null)return a;a=null}else if(f===31){if(a=l(u),a!==null)return a;a=null}else if(f===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;a=null}else u!==a&&(a=null)}}return ud=a,null}function Hw(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ft()){case ie:return 2;case me:return 8;case Ae:case Xe:return 32;case rt:return 268435456;default:return 32}default:return 32}}var T0=!1,Bs=null,Zs=null,qs=null,ru=new Map,su=new Map,Us=[],P3="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Fw(a,u){switch(a){case"focusin":case"focusout":Bs=null;break;case"dragenter":case"dragleave":Zs=null;break;case"mouseover":case"mouseout":qs=null;break;case"pointerover":case"pointerout":ru.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":su.delete(u.pointerId)}}function ou(a,u,f,m,y,b){return a===null||a.nativeEvent!==b?(a={blockedOn:u,domEventName:f,eventSystemFlags:m,nativeEvent:b,targetContainers:[y]},u!==null&&(u=Qa(u),u!==null&&Gw(u)),a):(a.eventSystemFlags|=m,u=a.targetContainers,y!==null&&u.indexOf(y)===-1&&u.push(y),a)}function T3(a,u,f,m,y){switch(u){case"focusin":return Bs=ou(Bs,a,u,f,m,y),!0;case"dragenter":return Zs=ou(Zs,a,u,f,m,y),!0;case"mouseover":return qs=ou(qs,a,u,f,m,y),!0;case"pointerover":var b=y.pointerId;return ru.set(b,ou(ru.get(b)||null,a,u,f,m,y)),!0;case"gotpointercapture":return b=y.pointerId,su.set(b,ou(su.get(b)||null,a,u,f,m,y)),!0}return!1}function Kw(a){var u=Ca(a.target);if(u!==null){var f=s(u);if(f!==null){if(u=f.tag,u===13){if(u=o(f),u!==null){a.blockedOn=u,fS(a.priority,function(){Ww(f)});return}}else if(u===31){if(u=l(f),u!==null){a.blockedOn=u,fS(a.priority,function(){Ww(f)});return}}else if(u===3&&f.stateNode.current.memoizedState.isDehydrated){a.blockedOn=f.tag===3?f.stateNode.containerInfo:null;return}}}a.blockedOn=null}function hd(a){if(a.blockedOn!==null)return!1;for(var u=a.targetContainers;0<u.length;){var f=w0(a.nativeEvent);if(f===null){f=a.nativeEvent;var m=new f.constructor(f.type,f);Pg=m,f.target.dispatchEvent(m),Pg=null}else return u=Qa(f),u!==null&&Gw(u),a.blockedOn=f,!1;u.shift()}return!0}function Jw(a,u,f){hd(a)&&f.delete(u)}function C3(){T0=!1,Bs!==null&&hd(Bs)&&(Bs=null),Zs!==null&&hd(Zs)&&(Zs=null),qs!==null&&hd(qs)&&(qs=null),ru.forEach(Jw),su.forEach(Jw)}function fd(a,u){a.blockedOn===u&&(a.blockedOn=null,T0||(T0=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,C3)))}var dd=null;function eP(a){dd!==a&&(dd=a,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){dd===a&&(dd=null);for(var u=0;u<a.length;u+=3){var f=a[u],m=a[u+1],y=a[u+2];if(typeof m!="function"){if(P0(m||f)===null)continue;break}var b=Qa(f);b!==null&&(a.splice(u,3),u-=3,wO(b,{pending:!0,data:y,method:f.method,action:m},m,y))}}))}function ul(a){function u(X){return fd(X,a)}Bs!==null&&fd(Bs,a),Zs!==null&&fd(Zs,a),qs!==null&&fd(qs,a),ru.forEach(u),su.forEach(u);for(var f=0;f<Us.length;f++){var m=Us[f];m.blockedOn===a&&(m.blockedOn=null)}for(;0<Us.length&&(f=Us[0],f.blockedOn===null);)Kw(f),f.blockedOn===null&&Us.shift();if(f=(a.ownerDocument||a).$$reactFormReplay,f!=null)for(m=0;m<f.length;m+=3){var y=f[m],b=f[m+1],w=y[jn]||null;if(typeof b=="function")w||eP(f);else if(w){var Q=null;if(b&&b.hasAttribute("formAction")){if(y=b,w=b[jn]||null)Q=w.formAction;else if(P0(y)!==null)continue}else Q=w.action;typeof Q=="function"?f[m+1]=Q:(f.splice(m,3),m-=3),eP(f)}}}function tP(){function a(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(w){return y=w})},focusReset:"manual",scroll:"manual"})}function u(){y!==null&&(y(),y=null),m||setTimeout(f,20)}function f(){if(!m&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,y=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",u),navigation.addEventListener("navigateerror",u),setTimeout(f,100),function(){m=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",u),navigation.removeEventListener("navigateerror",u),y!==null&&(y(),y=null)}}}function C0(a){this._internalRoot=a}pd.prototype.render=C0.prototype.render=function(a){var u=this._internalRoot;if(u===null)throw Error(i(409));var f=u.current,m=oi();Uw(f,m,a,u,null,null)},pd.prototype.unmount=C0.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var u=a.containerInfo;Uw(a.current,2,null,a,null,null),Gf(),u[Ta]=null}};function pd(a){this._internalRoot=a}pd.prototype.unstable_scheduleHydration=function(a){if(a){var u=hS();a={blockedOn:null,target:a,priority:u};for(var f=0;f<Us.length&&u!==0&&u<Us[f].priority;f++);Us.splice(f,0,a),f===0&&Kw(a)}};var nP=e.version;if(nP!=="19.2.0")throw Error(i(527,nP,"19.2.0"));J.findDOMNode=function(a){var u=a._reactInternals;if(u===void 0)throw typeof a.render=="function"?Error(i(188)):(a=Object.keys(a).join(","),Error(i(268,a)));return a=h(u),a=a!==null?d(a):null,a=a===null?null:a.stateNode,a};var Q3={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:Z,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var md=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!md.isDisabled&&md.supportsFiber)try{wn=md.inject(Q3),Zt=md}catch{}}return lu.createRoot=function(a,u){if(!r(a))throw Error(i(299));var f=!1,m="",y=ck,b=uk,w=hk;return u!=null&&(u.unstable_strictMode===!0&&(f=!0),u.identifierPrefix!==void 0&&(m=u.identifierPrefix),u.onUncaughtError!==void 0&&(y=u.onUncaughtError),u.onCaughtError!==void 0&&(b=u.onCaughtError),u.onRecoverableError!==void 0&&(w=u.onRecoverableError)),u=Zw(a,1,!1,null,null,f,m,null,y,b,w,tP),a[Ta]=u.current,c0(a),new C0(u)},lu.hydrateRoot=function(a,u,f){if(!r(a))throw Error(i(299));var m=!1,y="",b=ck,w=uk,Q=hk,X=null;return f!=null&&(f.unstable_strictMode===!0&&(m=!0),f.identifierPrefix!==void 0&&(y=f.identifierPrefix),f.onUncaughtError!==void 0&&(b=f.onUncaughtError),f.onCaughtError!==void 0&&(w=f.onCaughtError),f.onRecoverableError!==void 0&&(Q=f.onRecoverableError),f.formState!==void 0&&(X=f.formState)),u=Zw(a,1,!0,u,f??null,m,y,X,b,w,Q,tP),u.context=qw(null),f=u.current,m=oi(),m=yg(m),y=As(m),y.callback=null,Rs(f,y,m),f=m,u.current.lanes=f,Oc(u,f),ur(u),a[Ta]=u.current,c0(a),new pd(u)},lu.version="19.2.0",lu}var fP;function N3(){if(fP)return E0.exports;fP=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),E0.exports=j3(),E0.exports}var dP=N3(),rc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},z3={setTimeout:(t,e)=>setTimeout(t,e),clearTimeout:t=>clearTimeout(t),setInterval:(t,e)=>setInterval(t,e),clearInterval:t=>clearInterval(t)},I3=class{#e=z3;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,e){return this.#e.setTimeout(t,e)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,e){return this.#e.setInterval(t,e)}clearInterval(t){this.#e.clearInterval(t)}},ea=new I3;function X3(t){setTimeout(t,0)}var ua=typeof window>"u"||"Deno"in globalThis;function Tn(){}function V3(t,e){return typeof t=="function"?t(e):t}function db(t){return typeof t=="number"&&t>=0&&t!==1/0}function m2(t,e){return Math.max(t+(e||0)-Date.now(),0)}function ro(t,e){return typeof t=="function"?t(e):t}function $i(t,e){return typeof t=="function"?t(e):t}function pP(t,e){const{type:n="all",exact:i,fetchStatus:r,predicate:s,queryKey:o,stale:l}=t;if(o){if(i){if(e.queryHash!==uv(o,e.options))return!1}else if(!Ju(e.queryKey,o))return!1}if(n!=="all"){const c=e.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&e.isStale()!==l||r&&r!==e.state.fetchStatus||s&&!s(e))}function mP(t,e){const{exact:n,status:i,predicate:r,mutationKey:s}=t;if(s){if(!e.options.mutationKey)return!1;if(n){if(ha(e.options.mutationKey)!==ha(s))return!1}else if(!Ju(e.options.mutationKey,s))return!1}return!(i&&e.state.status!==i||r&&!r(e))}function uv(t,e){return(e?.queryKeyHashFn||ha)(t)}function ha(t){return JSON.stringify(t,(e,n)=>pb(n)?Object.keys(n).sort().reduce((i,r)=>(i[r]=n[r],i),{}):n)}function Ju(t,e){return t===e?!0:typeof t!=typeof e?!1:t&&e&&typeof t=="object"&&typeof e=="object"?Object.keys(e).every(n=>Ju(t[n],e[n])):!1}var B3=Object.prototype.hasOwnProperty;function g2(t,e){if(t===e)return t;const n=gP(t)&&gP(e);if(!n&&!(pb(t)&&pb(e)))return e;const r=(n?t:Object.keys(t)).length,s=n?e:Object.keys(e),o=s.length,l=n?new Array(o):{};let c=0;for(let h=0;h<o;h++){const d=n?h:s[h],p=t[d],g=e[d];if(p===g){l[d]=p,(n?h<r:B3.call(t,d))&&c++;continue}if(p===null||g===null||typeof p!="object"||typeof g!="object"){l[d]=g;continue}const O=g2(p,g);l[d]=O,O===p&&c++}return r===o&&c===r?t:l}function Cp(t,e){if(!e||Object.keys(t).length!==Object.keys(e).length)return!1;for(const n in t)if(t[n]!==e[n])return!1;return!0}function gP(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function pb(t){if(!OP(t))return!1;const e=t.constructor;if(e===void 0)return!0;const n=e.prototype;return!(!OP(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function OP(t){return Object.prototype.toString.call(t)==="[object Object]"}function Z3(t){return new Promise(e=>{ea.setTimeout(e,t)})}function mb(t,e,n){return typeof n.structuralSharing=="function"?n.structuralSharing(t,e):n.structuralSharing!==!1?g2(t,e):e}function q3(t,e,n=0){const i=[...t,e];return n&&i.length>n?i.slice(1):i}function U3(t,e,n=0){const i=[e,...t];return n&&i.length>n?i.slice(0,-1):i}var hs=Symbol();function O2(t,e){return!t.queryFn&&e?.initialPromise?()=>e.initialPromise:!t.queryFn||t.queryFn===hs?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function y2(t,e){return typeof t=="function"?t(...e):!!t}var Y3=class extends rc{#e;#t;#n;constructor(){super(),this.#n=t=>{if(!ua&&window.addEventListener){const e=()=>t();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(e=>{e(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},hv=new Y3;function gb(){let t,e;const n=new Promise((r,s)=>{t=r,e=s});n.status="pending",n.catch(()=>{});function i(r){Object.assign(n,r),delete n.resolve,delete n.reject}return n.resolve=r=>{i({status:"fulfilled",value:r}),t(r)},n.reject=r=>{i({status:"rejected",reason:r}),e(r)},n}var G3=X3;function W3(){let t=[],e=0,n=l=>{l()},i=l=>{l()},r=G3;const s=l=>{e?t.push(l):r(()=>{n(l)})},o=()=>{const l=t;t=[],l.length&&r(()=>{i(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;e++;try{c=l()}finally{e--,e||o()}return c},batchCalls:l=>(...c)=>{s(()=>{l(...c)})},schedule:s,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{i=l},setScheduler:l=>{r=l}}}var Gt=W3(),H3=class extends rc{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(!ua&&window.addEventListener){const e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(n=>{n(t)}))}isOnline(){return this.#e}},Qp=new H3;function F3(t){return Math.min(1e3*2**t,3e4)}function b2(t){return(t??"online")==="online"?Qp.isOnline():!0}var Ob=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function x2(t){let e=!1,n=0,i;const r=gb(),s=()=>r.status!=="pending",o=S=>{if(!s()){const k=new Ob(S);g(k),t.onCancel?.(k)}},l=()=>{e=!0},c=()=>{e=!1},h=()=>hv.isFocused()&&(t.networkMode==="always"||Qp.isOnline())&&t.canRun(),d=()=>b2(t.networkMode)&&t.canRun(),p=S=>{s()||(i?.(),r.resolve(S))},g=S=>{s()||(i?.(),r.reject(S))},O=()=>new Promise(S=>{i=k=>{(s()||h())&&S(k)},t.onPause?.()}).then(()=>{i=void 0,s()||t.onContinue?.()}),x=()=>{if(s())return;let S;const k=n===0?t.initialPromise:void 0;try{S=k??t.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(p).catch(_=>{if(s())return;const T=t.retry??(ua?0:3),C=t.retryDelay??F3,D=typeof C=="function"?C(n,_):C,j=T===!0||typeof T=="number"&&n<T||typeof T=="function"&&T(n,_);if(e||!j){g(_);return}n++,t.onFail?.(n,_),Z3(D).then(()=>h()?void 0:O()).then(()=>{e?g(_):x()})})};return{promise:r,status:()=>r.status,cancel:o,continue:()=>(i?.(),r),cancelRetry:l,continueRetry:c,canStart:d,start:()=>(d()?x():O().then(x),r)}}var v2=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),db(this.gcTime)&&(this.#e=ea.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(ua?1/0:300*1e3))}clearGcTimeout(){this.#e&&(ea.clearTimeout(this.#e),this.#e=void 0)}},K3=class extends v2{#e;#t;#n;#r;#i;#o;#a;constructor(t){super(),this.#a=!1,this.#o=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#r=t.client,this.#n=this.#r.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#e=bP(this.options),this.state=t.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(t){if(this.options={...this.#o,...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const e=bP(this.options);e.data!==void 0&&(this.setState(yP(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(t,e){const n=mb(this.state.data,t,this.options);return this.#s({data:n,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),n}setState(t,e){this.#s({type:"setState",state:t,setStateOptions:e})}cancel(t){const e=this.#i?.promise;return this.#i?.cancel(t),e?e.then(Tn).catch(Tn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(t=>$i(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===hs||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ro(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!m2(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(e=>e!==t),this.observers.length||(this.#i&&(this.#a?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(t,e){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(t&&this.setOptions(t),!this.options.queryFn){const l=this.observers.find(c=>c.options.queryFn);l&&this.setOptions(l.options)}const n=new AbortController,i=l=>{Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(this.#a=!0,n.signal)})},r=()=>{const l=O2(this.options,e),h=(()=>{const d={client:this.#r,queryKey:this.queryKey,meta:this.meta};return i(d),d})();return this.#a=!1,this.options.persister?this.options.persister(l,h,this):l(h)},o=(()=>{const l={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:r};return i(l),l})();this.options.behavior?.onFetch(o,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==o.fetchOptions?.meta)&&this.#s({type:"fetch",meta:o.fetchOptions?.meta}),this.#i=x2({initialPromise:e?.initialPromise,fn:o.fetchFn,onCancel:l=>{l instanceof Ob&&l.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(l,c)=>{this.#s({type:"failed",failureCount:l,error:c})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const l=await this.#i.start();if(l===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(l),this.#n.config.onSuccess?.(l,this),this.#n.config.onSettled?.(l,this.state.error,this),l}catch(l){if(l instanceof Ob){if(l.silent)return this.#i.promise;if(l.revert){if(this.state.data===void 0)throw l;return this.state.data}}throw this.#s({type:"error",error:l}),this.#n.config.onError?.(l,this),this.#n.config.onSettled?.(this.state.data,l,this),l}finally{this.scheduleGc()}}#s(t){const e=n=>{switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...S2(n.data,this.options),fetchMeta:t.meta??null};case"success":const i={...n,...yP(t.data,t.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=t.manual?i:void 0,i;case"error":const r=t.error;return{...n,error:r,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=e(this.state),Gt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:t})})}};function S2(t,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:b2(e.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function yP(t,e){return{data:t,dataUpdatedAt:e??Date.now(),error:null,isInvalidated:!1,status:"success"}}function bP(t){const e=typeof t.initialData=="function"?t.initialData():t.initialData,n=e!==void 0,i=n?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var J3=class extends rc{constructor(t,e){super(),this.options=e,this.#e=t,this.#s=null,this.#a=gb(),this.bindMethods(),this.setOptions(e)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#o;#a;#s;#m;#f;#d;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),xP(this.#t,this.options)?this.#h():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yb(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yb(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#v(),this.#t.removeObserver(this)}setOptions(t){const e=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof $i(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),e._defaulted&&!Cp(this.options,e)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&vP(this.#t,n,this.options,e)&&this.#h(),this.updateResult(),i&&(this.#t!==n||$i(this.options.enabled,this.#t)!==$i(e.enabled,this.#t)||ro(this.options.staleTime,this.#t)!==ro(e.staleTime,this.#t))&&this.#g();const r=this.#O();i&&(this.#t!==n||$i(this.options.enabled,this.#t)!==$i(e.enabled,this.#t)||r!==this.#l)&&this.#y(r)}getOptimisticResult(t){const e=this.#e.getQueryCache().build(this.#e,t),n=this.createResult(e,t);return tz(this,n)&&(this.#r=n,this.#o=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(t,e){return new Proxy(t,{get:(n,i)=>(this.trackProp(i),e?.(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}trackProp(t){this.#p.add(t)}getCurrentQuery(){return this.#t}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const e=this.#e.defaultQueryOptions(t),n=this.#e.getQueryCache().build(this.#e,e);return n.fetch().then(()=>this.createResult(n,e))}fetch(t){return this.#h({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(t){this.#S();let e=this.#t.fetch(this.options,t);return t?.throwOnError||(e=e.catch(Tn)),e}#g(){this.#x();const t=ro(this.options.staleTime,this.#t);if(ua||this.#r.isStale||!db(t))return;const n=m2(this.#r.dataUpdatedAt,t)+1;this.#c=ea.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#O(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(t){this.#v(),this.#l=t,!(ua||$i(this.options.enabled,this.#t)===!1||!db(this.#l)||this.#l===0)&&(this.#u=ea.setInterval(()=>{(this.options.refetchIntervalInBackground||hv.isFocused())&&this.#h()},this.#l))}#b(){this.#g(),this.#y(this.#O())}#x(){this.#c&&(ea.clearTimeout(this.#c),this.#c=void 0)}#v(){this.#u&&(ea.clearInterval(this.#u),this.#u=void 0)}createResult(t,e){const n=this.#t,i=this.options,r=this.#r,s=this.#i,o=this.#o,c=t!==n?t.state:this.#n,{state:h}=t;let d={...h},p=!1,g;if(e._optimisticResults){const I=this.hasListeners(),B=!I&&xP(t,e),$=I&&vP(t,n,e,i);(B||$)&&(d={...d,...S2(h.data,t.options)}),e._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:O,errorUpdatedAt:x,status:S}=d;g=d.data;let k=!1;if(e.placeholderData!==void 0&&g===void 0&&S==="pending"){let I;r?.isPlaceholderData&&e.placeholderData===o?.placeholderData?(I=r.data,k=!0):I=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,I!==void 0&&(S="success",g=mb(r?.data,I,e),p=!0)}if(e.select&&g!==void 0&&!k)if(r&&g===s?.data&&e.select===this.#m)g=this.#f;else try{this.#m=e.select,g=e.select(g),g=mb(r?.data,g,e),this.#f=g,this.#s=null}catch(I){this.#s=I}this.#s&&(O=this.#s,g=this.#f,x=Date.now(),S="error");const _=d.fetchStatus==="fetching",T=S==="pending",C=S==="error",D=T&&_,j=g!==void 0,M={status:S,fetchStatus:d.fetchStatus,isPending:T,isSuccess:S==="success",isError:C,isInitialLoading:D,isLoading:D,data:g,dataUpdatedAt:d.dataUpdatedAt,error:O,errorUpdatedAt:x,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:_,isRefetching:_&&!T,isLoadingError:C&&!j,isPaused:d.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:C&&j,isStale:fv(t,e),refetch:this.refetch,promise:this.#a,isEnabled:$i(e.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const I=U=>{M.status==="error"?U.reject(M.error):M.data!==void 0&&U.resolve(M.data)},B=()=>{const U=this.#a=M.promise=gb();I(U)},$=this.#a;switch($.status){case"pending":t.queryHash===n.queryHash&&I($);break;case"fulfilled":(M.status==="error"||M.data!==$.value)&&B();break;case"rejected":(M.status!=="error"||M.error!==$.reason)&&B();break}}return M}updateResult(){const t=this.#r,e=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#o=this.options,this.#i.data!==void 0&&(this.#d=this.#t),Cp(e,t))return;this.#r=e;const n=()=>{if(!t)return!0;const{notifyOnChangeProps:i}=this.options,r=typeof i=="function"?i():i;if(r==="all"||!r&&!this.#p.size)return!0;const s=new Set(r??this.#p);return this.options.throwOnError&&s.add("error"),Object.keys(this.#r).some(o=>{const l=o;return this.#r[l]!==t[l]&&s.has(l)})};this.#_({listeners:n()})}#S(){const t=this.#e.getQueryCache().build(this.#e,this.options);if(t===this.#t)return;const e=this.#t;this.#t=t,this.#n=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(t){Gt.batch(()=>{t.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function ez(t,e){return $i(e.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&e.retryOnMount===!1)}function xP(t,e){return ez(t,e)||t.state.data!==void 0&&yb(t,e,e.refetchOnMount)}function yb(t,e,n){if($i(e.enabled,t)!==!1&&ro(e.staleTime,t)!=="static"){const i=typeof n=="function"?n(t):n;return i==="always"||i!==!1&&fv(t,e)}return!1}function vP(t,e,n,i){return(t!==e||$i(i.enabled,t)===!1)&&(!n.suspense||t.state.status!=="error")&&fv(t,n)}function fv(t,e){return $i(e.enabled,t)!==!1&&t.isStaleByTime(ro(e.staleTime,t))}function tz(t,e){return!Cp(t.getCurrentResult(),e)}function SP(t){return{onFetch:(e,n)=>{const i=e.options,r=e.fetchOptions?.meta?.fetchMore?.direction,s=e.state.data?.pages||[],o=e.state.data?.pageParams||[];let l={pages:[],pageParams:[]},c=0;const h=async()=>{let d=!1;const p=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(e.signal.aborted?d=!0:e.signal.addEventListener("abort",()=>{d=!0}),e.signal)})},g=O2(e.options,e.fetchOptions),O=async(x,S,k)=>{if(d)return Promise.reject();if(S==null&&x.pages.length)return Promise.resolve(x);const T=(()=>{const A={client:e.client,queryKey:e.queryKey,pageParam:S,direction:k?"backward":"forward",meta:e.options.meta};return p(A),A})(),C=await g(T),{maxPages:D}=e.options,j=k?U3:q3;return{pages:j(x.pages,C,D),pageParams:j(x.pageParams,S,D)}};if(r&&s.length){const x=r==="backward",S=x?nz:_P,k={pages:s,pageParams:o},_=S(i,k);l=await O(k,_,x)}else{const x=t??s.length;do{const S=c===0?o[0]??i.initialPageParam:_P(i,l);if(c>0&&S==null)break;l=await O(l,S),c++}while(c<x)}return l};e.options.persister?e.fetchFn=()=>e.options.persister?.(h,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=h}}}function _P(t,{pages:e,pageParams:n}){const i=e.length-1;return e.length>0?t.getNextPageParam(e[i],e,n[i],n):void 0}function nz(t,{pages:e,pageParams:n}){return e.length>0?t.getPreviousPageParam?.(e[0],e,n[0],n):void 0}var iz=class extends v2{#e;#t;#n;#r;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||_2(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(e=>e!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(t){const e=()=>{this.#i({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=x2({fn:()=>this.options.mutationFn?this.options.mutationFn(t,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,o)=>{this.#i({type:"failed",failureCount:s,error:o})},onPause:()=>{this.#i({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const i=this.state.status==="pending",r=!this.#r.canStart();try{if(i)e();else{this.#i({type:"pending",variables:t,isPaused:r}),await this.#n.config.onMutate?.(t,this,n);const o=await this.options.onMutate?.(t,n);o!==this.state.context&&this.#i({type:"pending",context:o,variables:t,isPaused:r})}const s=await this.#r.start();return await this.#n.config.onSuccess?.(s,t,this.state.context,this,n),await this.options.onSuccess?.(s,t,this.state.context,n),await this.#n.config.onSettled?.(s,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(s,null,t,this.state.context,n),this.#i({type:"success",data:s}),s}catch(s){try{throw await this.#n.config.onError?.(s,t,this.state.context,this,n),await this.options.onError?.(s,t,this.state.context,n),await this.#n.config.onSettled?.(void 0,s,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(void 0,s,t,this.state.context,n),s}finally{this.#i({type:"error",error:s})}}finally{this.#n.runNext(this)}}#i(t){const e=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=e(this.state),Gt.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function _2(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var rz=class extends rc{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,e,n){const i=new iz({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(e),state:n});return this.add(i),i}add(t){this.#e.add(t);const e=gd(t);if(typeof e=="string"){const n=this.#t.get(e);n?n.push(t):this.#t.set(e,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const e=gd(t);if(typeof e=="string"){const n=this.#t.get(e);if(n)if(n.length>1){const i=n.indexOf(t);i!==-1&&n.splice(i,1)}else n[0]===t&&this.#t.delete(e)}}this.notify({type:"removed",mutation:t})}canRun(t){const e=gd(t);if(typeof e=="string"){const i=this.#t.get(e)?.find(r=>r.state.status==="pending");return!i||i===t}else return!0}runNext(t){const e=gd(t);return typeof e=="string"?this.#t.get(e)?.find(i=>i!==t&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Gt.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const e={exact:!0,...t};return this.getAll().find(n=>mP(e,n))}findAll(t={}){return this.getAll().filter(e=>mP(t,e))}notify(t){Gt.batch(()=>{this.listeners.forEach(e=>{e(t)})})}resumePausedMutations(){const t=this.getAll().filter(e=>e.state.isPaused);return Gt.batch(()=>Promise.all(t.map(e=>e.continue().catch(Tn))))}};function gd(t){return t.options.scope?.id}var sz=class extends rc{#e;#t=void 0;#n;#r;constructor(e,n){super(),this.#e=e,this.setOptions(n),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const n=this.options;this.options=this.#e.defaultMutationOptions(e),Cp(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&ha(n.mutationKey)!==ha(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#o(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#o()}mutate(e,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){const e=this.#n?.state??_2();this.#t={...e,isPending:e.status==="pending",isSuccess:e.status==="success",isError:e.status==="error",isIdle:e.status==="idle",mutate:this.mutate,reset:this.reset}}#o(e){Gt.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#t.variables,i=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};e?.type==="success"?(this.#r.onSuccess?.(e.data,n,i,r),this.#r.onSettled?.(e.data,null,n,i,r)):e?.type==="error"&&(this.#r.onError?.(e.error,n,i,r),this.#r.onSettled?.(void 0,e.error,n,i,r))}this.listeners.forEach(n=>{n(this.#t)})})}},oz=class extends rc{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,e,n){const i=e.queryKey,r=e.queryHash??uv(i,e);let s=this.get(r);return s||(s=new K3({client:t,queryKey:i,queryHash:r,options:t.defaultQueryOptions(e),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const e=this.#e.get(t.queryHash);e&&(t.destroy(),e===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Gt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const e={exact:!0,...t};return this.getAll().find(n=>pP(e,n))}findAll(t={}){const e=this.getAll();return Object.keys(t).length>0?e.filter(n=>pP(t,n)):e}notify(t){Gt.batch(()=>{this.listeners.forEach(e=>{e(t)})})}onFocus(){Gt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Gt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},az=class{#e;#t;#n;#r;#i;#o;#a;#s;constructor(t={}){this.#e=t.queryCache||new oz,this.#t=t.mutationCache||new rz,this.#n=t.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#a=hv.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Qp.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#a?.(),this.#a=void 0,this.#s?.(),this.#s=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state.data}ensureQueryData(t){const e=this.defaultQueryOptions(t),n=this.#e.build(this,e),i=n.state.data;return i===void 0?this.fetchQuery(t):(t.revalidateIfStale&&n.isStaleByTime(ro(e.staleTime,n))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:e,state:n})=>{const i=n.data;return[e,i]})}setQueryData(t,e,n){const i=this.defaultQueryOptions({queryKey:t}),s=this.#e.get(i.queryHash)?.state.data,o=V3(e,s);if(o!==void 0)return this.#e.build(this,i).setData(o,{...n,manual:!0})}setQueriesData(t,e,n){return Gt.batch(()=>this.#e.findAll(t).map(({queryKey:i})=>[i,this.setQueryData(i,e,n)]))}getQueryState(t){const e=this.defaultQueryOptions({queryKey:t});return this.#e.get(e.queryHash)?.state}removeQueries(t){const e=this.#e;Gt.batch(()=>{e.findAll(t).forEach(n=>{e.remove(n)})})}resetQueries(t,e){const n=this.#e;return Gt.batch(()=>(n.findAll(t).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...t},e)))}cancelQueries(t,e={}){const n={revert:!0,...e},i=Gt.batch(()=>this.#e.findAll(t).map(r=>r.cancel(n)));return Promise.all(i).then(Tn).catch(Tn)}invalidateQueries(t,e={}){return Gt.batch(()=>(this.#e.findAll(t).forEach(n=>{n.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},e)))}refetchQueries(t,e={}){const n={...e,cancelRefetch:e.cancelRefetch??!0},i=Gt.batch(()=>this.#e.findAll(t).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let s=r.fetch(void 0,n);return n.throwOnError||(s=s.catch(Tn)),r.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(i).then(Tn)}fetchQuery(t){const e=this.defaultQueryOptions(t);e.retry===void 0&&(e.retry=!1);const n=this.#e.build(this,e);return n.isStaleByTime(ro(e.staleTime,n))?n.fetch(e):Promise.resolve(n.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(Tn).catch(Tn)}fetchInfiniteQuery(t){return t.behavior=SP(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(Tn).catch(Tn)}ensureInfiniteQueryData(t){return t.behavior=SP(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return Qp.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,e){this.#r.set(ha(t),{queryKey:t,defaultOptions:e})}getQueryDefaults(t){const e=[...this.#r.values()],n={};return e.forEach(i=>{Ju(t,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(t,e){this.#i.set(ha(t),{mutationKey:t,defaultOptions:e})}getMutationDefaults(t){const e=[...this.#i.values()],n={};return e.forEach(i=>{Ju(t,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(t){if(t._defaulted)return t;const e={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return e.queryHash||(e.queryHash=uv(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===hs&&(e.enabled=!1),e}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},z=Dh();const Il=cv(z);var k2=z.createContext(void 0),w2=t=>{const e=z.useContext(k2);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},lz=({client:t,children:e})=>(z.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),v.jsx(k2.Provider,{value:t,children:e})),P2=z.createContext(!1),cz=()=>z.useContext(P2);P2.Provider;function uz(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var hz=z.createContext(uz()),fz=()=>z.useContext(hz),dz=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&(e.isReset()||(t.retryOnMount=!1))},pz=t=>{z.useEffect(()=>{t.clearReset()},[t])},mz=({result:t,errorResetBoundary:e,throwOnError:n,query:i,suspense:r})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(r&&t.data===void 0||y2(n,[t.error,i])),gz=t=>{if(t.suspense){const n=r=>r==="static"?r:Math.max(r??1e3,1e3),i=t.staleTime;t.staleTime=typeof i=="function"?(...r)=>n(i(...r)):n(i),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},Oz=(t,e)=>t.isLoading&&t.isFetching&&!e,yz=(t,e)=>t?.suspense&&e.isPending,kP=(t,e,n)=>e.fetchOptimistic(t).catch(()=>{n.clearReset()});function bz(t,e,n){const i=cz(),r=fz(),s=w2(),o=s.defaultQueryOptions(t);s.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=i?"isRestoring":"optimistic",gz(o),dz(o,r),pz(r);const l=!s.getQueryCache().get(o.queryHash),[c]=z.useState(()=>new e(s,o)),h=c.getOptimisticResult(o),d=!i&&t.subscribed!==!1;if(z.useSyncExternalStore(z.useCallback(p=>{const g=d?c.subscribe(Gt.batchCalls(p)):Tn;return c.updateResult(),g},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),z.useEffect(()=>{c.setOptions(o)},[o,c]),yz(o,h))throw kP(o,c,r);if(mz({result:h,errorResetBoundary:r,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw h.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(o,h),o.experimental_prefetchInRender&&!ua&&Oz(h,i)&&(l?kP(o,c,r):s.getQueryCache().get(o.queryHash)?.promise)?.catch(Tn).finally(()=>{c.updateResult()}),o.notifyOnChangeProps?h:c.trackResult(h)}function M0(t,e){return bz(t,J3)}function Ep(t,e){const n=w2(),[i]=z.useState(()=>new sz(n,t));z.useEffect(()=>{i.setOptions(t)},[i,t]);const r=z.useSyncExternalStore(z.useCallback(o=>i.subscribe(Gt.batchCalls(o)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=z.useCallback((o,l)=>{i.mutate(o,l).catch(Tn)},[i]);if(r.error&&y2(i.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:s,mutateAsync:r.mutate}}const bb=new WeakMap,xz=new WeakMap,Ap={current:[]};let D0=!1,Lu=0;const Pu=new Set,Od=new Map;function T2(t){for(const e of t){if(Ap.current.includes(e))continue;Ap.current.push(e),e.recompute();const n=xz.get(e);if(n)for(const i of n){const r=bb.get(i);r?.length&&T2(r)}}}function vz(t){const e={prevVal:t.prevState,currentVal:t.state};for(const n of t.listeners)n(e)}function Sz(t){const e={prevVal:t.prevState,currentVal:t.state};for(const n of t.listeners)n(e)}function C2(t){if(Lu>0&&!Od.has(t)&&Od.set(t,t.prevState),Pu.add(t),!(Lu>0)&&!D0)try{for(D0=!0;Pu.size>0;){const e=Array.from(Pu);Pu.clear();for(const n of e){const i=Od.get(n)??n.prevState;n.prevState=i,vz(n)}for(const n of e){const i=bb.get(n);i&&(Ap.current.push(n),T2(i))}for(const n of e){const i=bb.get(n);if(i)for(const r of i)Sz(r)}}}finally{D0=!1,Ap.current=[],Od.clear()}}function $u(t){Lu++;try{t()}finally{if(Lu--,Lu===0){const e=Pu.values().next().value;e&&C2(e)}}}function _z(t){return typeof t=="function"}class kz{constructor(e,n){this.listeners=new Set,this.subscribe=i=>{var r,s;this.listeners.add(i);const o=(s=(r=this.options)==null?void 0:r.onSubscribe)==null?void 0:s.call(r,i,this);return()=>{this.listeners.delete(i),o?.()}},this.prevState=e,this.state=e,this.options=n}setState(e){var n,i,r;this.prevState=this.state,(n=this.options)!=null&&n.updateFn?this.state=this.options.updateFn(this.prevState)(e):_z(e)?this.state=e(this.prevState):this.state=e,(r=(i=this.options)==null?void 0:i.onUpdate)==null||r.call(i),C2(this)}}const so="__TSR_index",wP="popstate",PP="beforeunload";function wz(t){let e=t.getLocation();const n=new Set,i=o=>{e=t.getLocation(),n.forEach(l=>l({location:e,action:o}))},r=o=>{t.notifyOnIndexChange??!0?i(o):e=t.getLocation()},s=async({task:o,navigateOpts:l,...c})=>{if(l?.ignoreBlocker??!1){o();return}const d=t.getBlockers?.()??[],p=c.type==="PUSH"||c.type==="REPLACE";if(typeof document<"u"&&d.length&&p)for(const g of d){const O=Rp(c.path,c.state);if(await g.blockerFn({currentLocation:e,nextLocation:O,action:c.type})){t.onBlocked?.();return}}o()};return{get location(){return e},get length(){return t.getLength()},subscribers:n,subscribe:o=>(n.add(o),()=>{n.delete(o)}),push:(o,l,c)=>{const h=e.state[so];l=TP(h+1,l),s({task:()=>{t.pushState(o,l),i({type:"PUSH"})},navigateOpts:c,type:"PUSH",path:o,state:l})},replace:(o,l,c)=>{const h=e.state[so];l=TP(h,l),s({task:()=>{t.replaceState(o,l),i({type:"REPLACE"})},navigateOpts:c,type:"REPLACE",path:o,state:l})},go:(o,l)=>{s({task:()=>{t.go(o),r({type:"GO",index:o})},navigateOpts:l,type:"GO"})},back:o=>{s({task:()=>{t.back(o?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:o,type:"BACK"})},forward:o=>{s({task:()=>{t.forward(o?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:o,type:"FORWARD"})},canGoBack:()=>e.state[so]!==0,createHref:o=>t.createHref(o),block:o=>{if(!t.setBlockers)return()=>{};const l=t.getBlockers?.()??[];return t.setBlockers([...l,o]),()=>{const c=t.getBlockers?.()??[];t.setBlockers?.(c.filter(h=>h!==o))}},flush:()=>t.flush?.(),destroy:()=>t.destroy?.(),notify:i}}function TP(t,e){e||(e={});const n=dv();return{...e,key:n,__TSR_key:n,[so]:t}}function Pz(t){const e=typeof document<"u"?window:void 0,n=e.history.pushState,i=e.history.replaceState;let r=[];const s=()=>r,o=I=>r=I,l=(I=>I),c=(()=>Rp(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));if(!e.history.state?.__TSR_key&&!e.history.state?.key){const I=dv();e.history.replaceState({[so]:0,key:I,__TSR_key:I},"")}let h=c(),d,p=!1,g=!1,O=!1,x=!1;const S=()=>h;let k,_;const T=()=>{k&&(M._ignoreSubscribers=!0,(k.isPush?e.history.pushState:e.history.replaceState)(k.state,"",k.href),M._ignoreSubscribers=!1,k=void 0,_=void 0,d=void 0)},C=(I,B,$)=>{const U=l(B);_||(d=h),h=Rp(B,$),k={href:U,state:$,isPush:k?.isPush||I==="push"},_||(_=Promise.resolve().then(()=>T()))},D=I=>{h=c(),M.notify({type:I})},j=async()=>{if(g){g=!1;return}const I=c(),B=I.state[so]-h.state[so],$=B===1,U=B===-1,H=!$&&!U||p;p=!1;const oe=H?"GO":U?"BACK":"FORWARD",F=H?{type:"GO",index:B}:{type:U?"BACK":"FORWARD"};if(O)O=!1;else{const Y=s();if(typeof document<"u"&&Y.length){for(const Z of Y)if(await Z.blockerFn({currentLocation:h,nextLocation:I,action:oe})){g=!0,e.history.go(1),M.notify(F);return}}}h=c(),M.notify(F)},A=I=>{if(x){x=!1;return}let B=!1;const $=s();if(typeof document<"u"&&$.length)for(const U of $){const H=U.enableBeforeUnload??!0;if(H===!0){B=!0;break}if(typeof H=="function"&&H()===!0){B=!0;break}}if(B)return I.preventDefault(),I.returnValue=""},M=wz({getLocation:S,getLength:()=>e.history.length,pushState:(I,B)=>C("push",I,B),replaceState:(I,B)=>C("replace",I,B),back:I=>(I&&(O=!0),x=!0,e.history.back()),forward:I=>{I&&(O=!0),x=!0,e.history.forward()},go:I=>{p=!0,e.history.go(I)},createHref:I=>l(I),flush:T,destroy:()=>{e.history.pushState=n,e.history.replaceState=i,e.removeEventListener(PP,A,{capture:!0}),e.removeEventListener(wP,j)},onBlocked:()=>{d&&h!==d&&(h=d)},getBlockers:s,setBlockers:o,notifyOnIndexChange:!1});return e.addEventListener(PP,A,{capture:!0}),e.addEventListener(wP,j),e.history.pushState=function(...I){const B=n.apply(e.history,I);return M._ignoreSubscribers||D("PUSH"),B},e.history.replaceState=function(...I){const B=i.apply(e.history,I);return M._ignoreSubscribers||D("REPLACE"),B},M}function Rp(t,e){const n=t.indexOf("#"),i=t.indexOf("?"),r=dv();return{href:t,pathname:t.substring(0,n>0?i>0?Math.min(n,i):n:i>0?i:t.length),hash:n>-1?t.substring(n):"",search:i>-1?t.slice(i,n===-1?void 0:n):"",state:e||{[so]:0,key:r,__TSR_key:r}}}function dv(){return(Math.random()+1).toString(36).substring(7)}function Lp(t){return t[t.length-1]}function Tz(t){return typeof t=="function"}function sa(t,e){return Tz(t)?t(e):t}const Cz=Object.prototype.hasOwnProperty;function Li(t,e){if(t===e)return t;const n=e,i=EP(t)&&EP(n);if(!i&&!($p(t)&&$p(n)))return n;const r=i?t:CP(t);if(!r)return n;const s=i?n:CP(n);if(!s)return n;const o=r.length,l=s.length,c=i?new Array(l):{};let h=0;for(let d=0;d<l;d++){const p=i?d:s[d],g=t[p],O=n[p];if(g===O){c[p]=g,(i?d<o:Cz.call(t,p))&&h++;continue}if(g===null||O===null||typeof g!="object"||typeof O!="object"){c[p]=O;continue}const x=Li(g,O);c[p]=x,x===g&&h++}return o===l&&h===o?t:c}function CP(t){const e=[],n=Object.getOwnPropertyNames(t);for(const r of n){if(!Object.prototype.propertyIsEnumerable.call(t,r))return!1;e.push(r)}const i=Object.getOwnPropertySymbols(t);for(const r of i){if(!Object.prototype.propertyIsEnumerable.call(t,r))return!1;e.push(r)}return e}function $p(t){if(!QP(t))return!1;const e=t.constructor;if(typeof e>"u")return!0;const n=e.prototype;return!(!QP(n)||!n.hasOwnProperty("isPrototypeOf"))}function QP(t){return Object.prototype.toString.call(t)==="[object Object]"}function EP(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function oa(t,e,n){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let i=0,r=t.length;i<r;i++)if(!oa(t[i],e[i],n))return!1;return!0}if($p(t)&&$p(e)){const i=n?.ignoreUndefined??!0;if(n?.partial){for(const o in e)if((!i||e[o]!==void 0)&&!oa(t[o],e[o],n))return!1;return!0}let r=0;if(!i)r=Object.keys(t).length;else for(const o in t)t[o]!==void 0&&r++;let s=0;for(const o in e)if((!i||e[o]!==void 0)&&(s++,s>r||!oa(t[o],e[o],n)))return!1;return r===s}return!1}function Xl(t){let e,n;const i=new Promise((r,s)=>{e=r,n=s});return i.status="pending",i.resolve=r=>{i.status="resolved",i.value=r,e(r),t?.(r)},i.reject=r=>{i.status="rejected",n(r)},i}function oo(t){return!!(t&&typeof t=="object"&&typeof t.then=="function")}function AP(t){try{return decodeURI(t)}catch{return t.replaceAll(/%[0-9A-F]{2}/gi,e=>{try{return decodeURI(e)}catch{return e}})}}function RP(t,e){if(!t)return t;const n=/%25|%5C/gi;let i=0,r="",s;for(;(s=n.exec(t))!==null;)r+=AP(t.slice(i,s.index))+s[0],i=n.lastIndex;return r+AP(i?t.slice(i):t)}var Qz="Invariant failed";function fs(t,e){if(!t)throw new Error(Qz)}function Mp(t){const e=new Map;let n,i;const r=s=>{s.next&&(s.prev?(s.prev.next=s.next,s.next.prev=s.prev,s.next=void 0,i&&(i.next=s,s.prev=i)):(s.next.prev=void 0,n=s.next,s.next=void 0,i&&(s.prev=i,i.next=s)),i=s)};return{get(s){const o=e.get(s);if(o)return r(o),o.value},set(s,o){if(e.size>=t&&n){const c=n;e.delete(c.key),c.next&&(n=c.next,c.next.prev=void 0),c===i&&(i=void 0)}const l=e.get(s);if(l)l.value=o,r(l);else{const c={key:s,value:o,prev:i};i&&(i.next=c),i=c,n||(n=c),e.set(s,c)}},clear(){e.clear(),n=void 0,i=void 0}}}const Vl=0,fa=1,da=2,eh=3,Ez=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,Az=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,Rz=/^([^{]*)\{\$\}([^}]*)$/;function pv(t,e,n=new Uint16Array(6)){const i=t.indexOf("/",e),r=i===-1?t.length:i,s=t.substring(e,r);if(!s||!s.includes("$"))return n[0]=Vl,n[1]=e,n[2]=e,n[3]=r,n[4]=r,n[5]=r,n;if(s==="$"){const h=t.length;return n[0]=da,n[1]=e,n[2]=e,n[3]=h,n[4]=h,n[5]=h,n}if(s.charCodeAt(0)===36)return n[0]=fa,n[1]=e,n[2]=e+1,n[3]=r,n[4]=r,n[5]=r,n;const o=s.match(Rz);if(o){const d=o[1].length;return n[0]=da,n[1]=e+d,n[2]=e+d+1,n[3]=e+d+2,n[4]=e+d+3,n[5]=t.length,n}const l=s.match(Az);if(l){const h=l[1],d=l[2],p=l[3],g=h.length;return n[0]=eh,n[1]=e+g,n[2]=e+g+3,n[3]=e+g+3+d.length,n[4]=r-p.length,n[5]=r,n}const c=s.match(Ez);if(c){const h=c[1],d=c[2],p=c[3],g=h.length;return n[0]=fa,n[1]=e+g,n[2]=e+g+2,n[3]=e+g+2+d.length,n[4]=r-p.length,n[5]=r,n}return n[0]=Vl,n[1]=e,n[2]=e,n[3]=r,n[4]=r,n[5]=r,n}function Rm(t,e,n,i,r,s,o){o?.(n);let l=i;{const c=n.fullPath??n.from,h=c.length,d=n.options?.caseSensitive??t;for(;l<h;){const p=pv(c,l,e);let g;const O=l,x=p[5];switch(l=x+1,s++,p[0]){case Vl:{const k=c.substring(p[2],p[3]);if(d){const _=r.static?.get(k);if(_)g=_;else{r.static??=new Map;const T=th(n.fullPath??n.from);T.parent=r,T.depth=s,g=T,r.static.set(k,T)}}else{const _=k.toLowerCase(),T=r.staticInsensitive?.get(_);if(T)g=T;else{r.staticInsensitive??=new Map;const C=th(n.fullPath??n.from);C.parent=r,C.depth=s,g=C,r.staticInsensitive.set(_,C)}}break}case fa:{const k=c.substring(O,p[1]),_=c.substring(p[4],x),T=d&&!!(k||_),C=k?T?k:k.toLowerCase():void 0,D=_?T?_:_.toLowerCase():void 0,j=r.dynamic?.find(A=>A.caseSensitive===T&&A.prefix===C&&A.suffix===D);if(j)g=j;else{const A=N0(fa,n.fullPath??n.from,T,C,D);g=A,A.depth=s,A.parent=r,r.dynamic??=[],r.dynamic.push(A)}break}case eh:{const k=c.substring(O,p[1]),_=c.substring(p[4],x),T=d&&!!(k||_),C=k?T?k:k.toLowerCase():void 0,D=_?T?_:_.toLowerCase():void 0,j=r.optional?.find(A=>A.caseSensitive===T&&A.prefix===C&&A.suffix===D);if(j)g=j;else{const A=N0(eh,n.fullPath??n.from,T,C,D);g=A,A.parent=r,A.depth=s,r.optional??=[],r.optional.push(A)}break}case da:{const k=c.substring(O,p[1]),_=c.substring(p[4],x),T=d&&!!(k||_),C=k?T?k:k.toLowerCase():void 0,D=_?T?_:_.toLowerCase():void 0,j=N0(da,n.fullPath??n.from,T,C,D);g=j,j.parent=r,j.depth=s,r.wildcard??=[],r.wildcard.push(j)}}r=g}if((n.path||!n.children)&&!n.isRoot){const p=c.endsWith("/");p||(r.notFound=n),(!r.route||!r.isIndex&&p)&&(r.route=n),r.isIndex||=p}}if(n.children)for(const c of n.children)Rm(t,e,c,l,r,s,o)}function j0(t,e){if(t.prefix&&e.prefix&&t.prefix!==e.prefix){if(t.prefix.startsWith(e.prefix))return-1;if(e.prefix.startsWith(t.prefix))return 1}if(t.suffix&&e.suffix&&t.suffix!==e.suffix){if(t.suffix.endsWith(e.suffix))return-1;if(e.suffix.endsWith(t.suffix))return 1}return t.prefix&&!e.prefix?-1:!t.prefix&&e.prefix?1:t.suffix&&!e.suffix?-1:!t.suffix&&e.suffix?1:t.caseSensitive&&!e.caseSensitive?-1:!t.caseSensitive&&e.caseSensitive?1:0}function Wo(t){if(t.static)for(const e of t.static.values())Wo(e);if(t.staticInsensitive)for(const e of t.staticInsensitive.values())Wo(e);if(t.dynamic?.length){t.dynamic.sort(j0);for(const e of t.dynamic)Wo(e)}if(t.optional?.length){t.optional.sort(j0);for(const e of t.optional)Wo(e)}if(t.wildcard?.length){t.wildcard.sort(j0);for(const e of t.wildcard)Wo(e)}}function th(t){return{kind:Vl,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,isIndex:!1,notFound:null}}function N0(t,e,n,i,r){return{kind:t,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,isIndex:!1,notFound:null,caseSensitive:n,prefix:i,suffix:r}}function Lz(t,e){const n=th("/"),i=new Uint16Array(6);for(const r of t)Rm(!1,i,r,1,n,0);Wo(n),e.masksTree=n,e.flatCache=Mp(1e3)}function $z(t,e){t||="/";const n=e.flatCache.get(t);if(n)return n;const i=mv(t,e.masksTree);return e.flatCache.set(t,i),i}function Mz(t,e,n,i,r){t||="/",i||="/";const s=e?`case\0${t}`:t;let o=r.singleCache.get(s);if(!o){o=th("/");const l=new Uint16Array(6);Rm(e,l,{from:t},1,o,0),r.singleCache.set(s,o)}return mv(i,o,n)}function Dz(t,e,n=!1){const i=n?t:`nofuzz\0${t}`,r=e.matchCache.get(i);if(r!==void 0)return r;t||="/";const s=mv(t,e.segmentTree,n);return s&&(s.branch=Iz(s.route)),e.matchCache.set(i,s),s}function jz(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}function Nz(t,e=!1,n){const i=th(t.fullPath),r=new Uint16Array(6),s={},o={};let l=0;return Rm(e,r,t,1,i,0,h=>{if(n?.(h,l),fs(!(h.id in s),`Duplicate routes found with id: ${String(h.id)}`),s[h.id]=h,l!==0&&h.path){const d=jz(h.fullPath);(!o[d]||h.fullPath.endsWith("/"))&&(o[d]=h)}l++}),Wo(i),{processedTree:{segmentTree:i,singleCache:Mp(1e3),matchCache:Mp(1e3),flatCache:null,masksTree:null},routesById:s,routesByPath:o}}function mv(t,e,n=!1){const i=t.split("/"),r=Vz(t,i,e,n);if(!r)return null;const s=zz(t,i,r),o="**"in r;return o&&(s["**"]=r["**"]),{route:o?r.node.notFound??r.node.route:r.node.route,params:s}}function zz(t,e,n){const i=Xz(n.node);let r=null;const s={};for(let o=0,l=0,c=0;l<i.length;o++,l++,c++){const h=i[l],d=e[o],p=c;if(d&&(c+=d.length),h.kind===fa){r??=n.node.fullPath.split("/");const g=r[l],O=h.prefix?.length??0;if(g.charCodeAt(O)===123){const S=h.suffix?.length??0,k=g.substring(O+2,g.length-S-1),_=d.substring(O,d.length-S);s[k]=decodeURIComponent(_)}else{const S=g.substring(1);s[S]=decodeURIComponent(d)}}else if(h.kind===eh){if(n.skipped&1<<l){o--;continue}r??=n.node.fullPath.split("/");const g=r[l],O=h.prefix?.length??0,x=h.suffix?.length??0,S=g.substring(O+3,g.length-x-1),k=h.suffix||h.prefix?d.substring(O,d.length-x):d;k&&(s[S]=decodeURIComponent(k))}else if(h.kind===da){const g=h,O=t.substring(p+(g.prefix?.length??0),t.length-(g.suffix?.length??0)),x=decodeURIComponent(O);s["*"]=x,s._splat=x;break}}return s}function Iz(t){const e=[t];for(;t.parentRoute;)t=t.parentRoute,e.push(t);return e.reverse(),e}function Xz(t){const e=Array(t.depth+1);do e[t.depth]=t,t=t.parent;while(t);return e}function Vz(t,e,n,i){const r=!Lp(e),s=r&&t!=="/",o=e.length-(r?1:0),l=[{node:n,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let c=null,h=null,d=null;for(;l.length;){const p=l.pop();let{node:g,index:O,skipped:x,depth:S,statics:k,dynamics:_,optionals:T}=p;i&&g.notFound&&z0(h,p)&&(h=p);const C=O===o;if(C){if(g.route&&(!s||g.isIndex)&&(z0(d,p)&&(d=p),k===o&&g.isIndex))return d;if(!g.optional&&!g.wildcard)continue}const D=C?void 0:e[O];let j;if(g.wildcard&&z0(c,p))for(const A of g.wildcard){const{prefix:M,suffix:I}=A;if(!(M&&(C||!(A.caseSensitive?D:j??=D.toLowerCase()).startsWith(M)))){if(I){if(C)continue;const B=e.slice(O).join("/").slice(-I.length);if((A.caseSensitive?B:B.toLowerCase())!==I)continue}c={node:A,index:O,skipped:x,depth:S,statics:k,dynamics:_,optionals:T};break}}if(g.optional){const A=x|1<<S,M=S+1;for(let I=g.optional.length-1;I>=0;I--){const B=g.optional[I];l.push({node:B,index:O,skipped:A,depth:M,statics:k,dynamics:_,optionals:T})}if(!C)for(let I=g.optional.length-1;I>=0;I--){const B=g.optional[I],{prefix:$,suffix:U}=B;if($||U){const H=B.caseSensitive?D:j??=D.toLowerCase();if($&&!H.startsWith($)||U&&!H.endsWith(U))continue}l.push({node:B,index:O+1,skipped:x,depth:M,statics:k,dynamics:_,optionals:T+1})}}if(!C&&g.dynamic&&D)for(let A=g.dynamic.length-1;A>=0;A--){const M=g.dynamic[A],{prefix:I,suffix:B}=M;if(I||B){const $=M.caseSensitive?D:j??=D.toLowerCase();if(I&&!$.startsWith(I)||B&&!$.endsWith(B))continue}l.push({node:M,index:O+1,skipped:x,depth:S+1,statics:k,dynamics:_+1,optionals:T})}if(!C&&g.staticInsensitive){const A=g.staticInsensitive.get(j??=D.toLowerCase());A&&l.push({node:A,index:O+1,skipped:x,depth:S+1,statics:k+1,dynamics:_,optionals:T})}if(!C&&g.static){const A=g.static.get(D);A&&l.push({node:A,index:O+1,skipped:x,depth:S+1,statics:k+1,dynamics:_,optionals:T})}}if(d)return d;if(c)return c;if(i&&h){let p=h.index;for(let O=0;O<h.index;O++)p+=e[O].length;const g=p===t.length?"/":t.slice(p);return{node:h.node,skipped:h.skipped,"**":decodeURIComponent(g)}}return null}function z0(t,e){return t?e.statics>t.statics||e.statics===t.statics&&(e.dynamics>t.dynamics||e.dynamics===t.dynamics&&(e.optionals>t.optionals||e.optionals===t.optionals&&(e.node.isIndex>t.node.isIndex||e.node.isIndex===t.node.isIndex&&e.depth>t.depth))):!0}function lp(t){return gv(t.filter(e=>e!==void 0).join("/"))}function gv(t){return t.replace(/\/{2,}/g,"/")}function Q2(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}function aa(t){const e=t.length;return e>1&&t[e-1]==="/"?t.replace(/\/{1,}$/,""):t}function cp(t){return aa(Q2(t))}function Dp(t,e){return t?.endsWith("/")&&t!=="/"&&t!==`${e}/`?t.slice(0,-1):t}function Bz(t,e,n){return Dp(t,n)===Dp(e,n)}function Zz({base:t,to:e,trailingSlash:n="never",cache:i}){const r=e.startsWith("/"),s=!r&&e===".";let o;if(i){o=r?e:s?t:t+"\0"+e;const p=i.get(o);if(p)return p}let l;if(s)l=t.split("/");else if(r)l=e.split("/");else{for(l=t.split("/");l.length>1&&Lp(l)==="";)l.pop();const p=e.split("/");for(let g=0,O=p.length;g<O;g++){const x=p[g];x===""?g?g===O-1&&l.push(x):l=[x]:x===".."?l.pop():x==="."||l.push(x)}}l.length>1&&(Lp(l)===""?n==="never"&&l.pop():n==="always"&&l.push(""));let c,h="";for(let p=0;p<l.length;p++){p>0&&(h+="/");const g=l[p];if(!g)continue;c=pv(g,0,c);const O=c[0];if(O===Vl){h+=g;continue}const x=c[5],S=g.substring(0,c[1]),k=g.substring(c[4],x),_=g.substring(c[2],c[3]);O===fa?h+=S||k?`${S}{$${_}}${k}`:`$${_}`:O===da?h+=S||k?`${S}{$}${k}`:"$":h+=`${S}{-$${_}}${k}`}h=gv(h);const d=h||"/";return o&&i&&i.set(o,d),d}function I0(t,e,n){const i=e[t];return typeof i!="string"?i:t==="_splat"?encodeURI(i):qz(i,n)}function X0({path:t,params:e,decodeCharMap:n}){let i=!1;const r={};if(!t||t==="/")return{interpolatedPath:"/",usedParams:r,isMissingParams:i};if(!t.includes("$"))return{interpolatedPath:t,usedParams:r,isMissingParams:i};const s=t.length;let o=0,l,c="";for(;o<s;){const d=o;l=pv(t,d,l);const p=l[5];if(o=p+1,d===p)continue;const g=l[0];if(g===Vl){c+="/"+t.substring(d,p);continue}if(g===da){const O=e._splat;r._splat=O,r["*"]=O;const x=t.substring(d,l[1]),S=t.substring(l[4],p);if(!O){i=!0,(x||S)&&(c+="/"+x+S);continue}const k=I0("_splat",e,n);c+="/"+x+k+S;continue}if(g===fa){const O=t.substring(l[2],l[3]);!i&&!(O in e)&&(i=!0),r[O]=e[O];const x=t.substring(d,l[1]),S=t.substring(l[4],p),k=I0(O,e,n)??"undefined";c+="/"+x+k+S;continue}if(g===eh){const O=t.substring(l[2],l[3]),x=e[O];if(x==null)continue;r[O]=x;const S=t.substring(d,l[1]),k=t.substring(l[4],p),_=I0(O,e,n)??"";c+="/"+S+_+k;continue}}return t.endsWith("/")&&(c+="/"),{usedParams:r,interpolatedPath:c||"/",isMissingParams:i}}function qz(t,e){let n=encodeURIComponent(t);if(e)for(const[i,r]of e)n=n.replaceAll(i,r);return n}function E2(t={}){if(t.isNotFound=!0,t.throw)throw t;return t}function zi(t){return!!t?.isNotFound}function Uz(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const jp="tsr-scroll-restoration-v1_3",Yz=(t,e)=>{let n;return(...i)=>{n||(n=setTimeout(()=>{t(...i),n=null},e))}};function Gz(){const t=Uz();if(!t)return null;const e=t.getItem(jp);let n=e?JSON.parse(e):{};return{state:n,set:i=>(n=sa(i,n)||n,t.setItem(jp,JSON.stringify(n)))}}const yd=Gz(),xb=t=>t.state.__TSR_key||t.href;function Wz(t){const e=[];let n;for(;n=t.parentNode;)e.push(`${t.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,t)+1})`),t=n;return`${e.reverse().join(" > ")}`.toLowerCase()}let Np=!1;function A2({storageKey:t,key:e,behavior:n,shouldScrollRestoration:i,scrollToTopSelectors:r,location:s}){let o;try{o=JSON.parse(sessionStorage.getItem(t)||"{}")}catch(h){console.error(h);return}const l=e||window.history.state?.__TSR_key,c=o[l];Np=!0;e:{if(i&&c&&Object.keys(c).length>0){for(const p in c){const g=c[p];if(p==="window")window.scrollTo({top:g.scrollY,left:g.scrollX,behavior:n});else if(p){const O=document.querySelector(p);O&&(O.scrollLeft=g.scrollX,O.scrollTop=g.scrollY)}}break e}const h=(s??window.location).hash.split("#",2)[1];if(h){const p=window.history.state?.__hashScrollIntoViewOptions??!0;if(p){const g=document.getElementById(h);g&&g.scrollIntoView(p)}break e}const d={top:0,left:0,behavior:n};if(window.scrollTo(d),r)for(const p of r){if(p==="window")continue;const g=typeof p=="function"?p():document.querySelector(p);g&&g.scrollTo(d)}}Np=!1}function Hz(t,e){if(!yd&&!t.isServer||((t.options.scrollRestoration??!1)&&(t.isScrollRestoring=!0),t.isServer||t.isScrollRestorationSetup||!yd))return;t.isScrollRestorationSetup=!0,Np=!1;const i=t.options.getScrollRestorationKey||xb;window.history.scrollRestoration="manual";const r=s=>{if(Np||!t.isScrollRestoring)return;let o="";if(s.target===document||s.target===window)o="window";else{const c=s.target.getAttribute("data-scroll-restoration-id");c?o=`[data-scroll-restoration-id="${c}"]`:o=Wz(s.target)}const l=i(t.state.location);yd.set(c=>{const h=c[l]||={},d=h[o]||={};if(o==="window")d.scrollX=window.scrollX||0,d.scrollY=window.scrollY||0;else if(o){const p=document.querySelector(o);p&&(d.scrollX=p.scrollLeft||0,d.scrollY=p.scrollTop||0)}return c})};typeof document<"u"&&document.addEventListener("scroll",Yz(r,100),!0),t.subscribe("onRendered",s=>{const o=i(s.toLocation);if(!t.resetNextScroll){t.resetNextScroll=!0;return}typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation})||(A2({storageKey:jp,key:o,behavior:t.options.scrollRestorationBehavior,shouldScrollRestoration:t.isScrollRestoring,scrollToTopSelectors:t.options.scrollToTopSelectors,location:t.history.location}),t.isScrollRestoring&&yd.set(l=>(l[o]||={},l)))})}function Fz(t){if(typeof document<"u"&&document.querySelector){const e=t.state.location.state.__hashScrollIntoViewOptions??!0;if(e&&t.state.location.hash!==""){const n=document.getElementById(t.state.location.hash);n&&n.scrollIntoView(e)}}}function Kz(t,e=String){const n=new URLSearchParams;for(const i in t){const r=t[i];r!==void 0&&n.set(i,e(r))}return n.toString()}function V0(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function Jz(t){const e=new URLSearchParams(t),n={};for(const[i,r]of e.entries()){const s=n[i];s==null?n[i]=V0(r):Array.isArray(s)?s.push(V0(r)):n[i]=[s,V0(r)]}return n}const eI=nI(JSON.parse),tI=iI(JSON.stringify,JSON.parse);function nI(t){return e=>{e[0]==="?"&&(e=e.substring(1));const n=Jz(e);for(const i in n){const r=n[i];if(typeof r=="string")try{n[i]=t(r)}catch{}}return n}}function iI(t,e){const n=typeof e=="function";function i(r){if(typeof r=="object"&&r!==null)try{return t(r)}catch{}else if(n&&typeof r=="string")try{return e(r),t(r)}catch{}return r}return r=>{const s=Kz(r,i);return s?`?${s}`:""}}const di="__root__";function rI(t){if(t.statusCode=t.statusCode||t.code||307,!t.reloadDocument&&typeof t.href=="string")try{new URL(t.href),t.reloadDocument=!0}catch{}const e=new Headers(t.headers);t.href&&e.get("Location")===null&&e.set("Location",t.href);const n=new Response(null,{status:t.statusCode,headers:e});if(n.options=t,t.throw)throw n;return n}function Fi(t){return t instanceof Response&&!!t.options}const up=t=>{if(!t.rendered)return t.rendered=!0,t.onReady?.()},Lm=(t,e)=>!!(t.preload&&!t.router.state.matches.some(n=>n.id===e)),R2=(t,e)=>{const n=t.router.routesById[e.routeId??""]??t.router.routeTree;!n.options.notFoundComponent&&t.router.options?.defaultNotFoundComponent&&(n.options.notFoundComponent=t.router.options.defaultNotFoundComponent),fs(n.options.notFoundComponent);const i=t.matches.find(r=>r.routeId===n.id);fs(i,"Could not find match for route: "+n.id),t.updateMatch(i.id,r=>({...r,status:"notFound",error:e,isFetching:!1})),e.routerCode==="BEFORE_LOAD"&&n.parentRoute&&(e.routeId=n.parentRoute.id,R2(t,e))},eo=(t,e,n)=>{if(!(!Fi(n)&&!zi(n))){if(Fi(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(e){e._nonReactive.beforeLoadPromise?.resolve(),e._nonReactive.loaderPromise?.resolve(),e._nonReactive.beforeLoadPromise=void 0,e._nonReactive.loaderPromise=void 0;const i=Fi(n)?"redirected":"notFound";e._nonReactive.error=n,t.updateMatch(e.id,r=>({...r,status:i,isFetching:!1,error:n})),zi(n)&&!n.routeId&&(n.routeId=e.routeId),e._nonReactive.loadPromise?.resolve()}throw Fi(n)?(t.rendered=!0,n.options._fromLocation=t.location,n.redirectHandled=!0,n=t.router.resolveRedirect(n),n):(R2(t,n),n)}},L2=(t,e)=>{const n=t.router.getMatch(e);return!!(!t.router.isServer&&n._nonReactive.dehydrated||t.router.isServer&&n.ssr===!1)},cu=(t,e,n,i)=>{const{id:r,routeId:s}=t.matches[e],o=t.router.looseRoutesById[s];if(n instanceof Promise)throw n;n.routerCode=i,t.firstBadMatchIndex??=e,eo(t,t.router.getMatch(r),n);try{o.options.onError?.(n)}catch(l){n=l,eo(t,t.router.getMatch(r),n)}t.updateMatch(r,l=>(l._nonReactive.beforeLoadPromise?.resolve(),l._nonReactive.beforeLoadPromise=void 0,l._nonReactive.loadPromise?.resolve(),{...l,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},sI=(t,e,n,i)=>{const r=t.router.getMatch(e),s=t.matches[n-1]?.id,o=s?t.router.getMatch(s):void 0;if(t.router.isShell()){r.ssr=i.id===di;return}if(o?.ssr===!1){r.ssr=!1;return}const l=O=>O===!0&&o?.ssr==="data-only"?"data-only":O,c=t.router.options.defaultSsr??!0;if(i.options.ssr===void 0){r.ssr=l(c);return}if(typeof i.options.ssr!="function"){r.ssr=l(i.options.ssr);return}const{search:h,params:d}=r,p={search:bd(h,r.searchError),params:bd(d,r.paramsError),location:t.location,matches:t.matches.map(O=>({index:O.index,pathname:O.pathname,fullPath:O.fullPath,staticData:O.staticData,id:O.id,routeId:O.routeId,search:bd(O.search,O.searchError),params:bd(O.params,O.paramsError),ssr:O.ssr}))},g=i.options.ssr(p);if(oo(g))return g.then(O=>{r.ssr=l(O??c)});r.ssr=l(g??c)},$2=(t,e,n,i)=>{if(i._nonReactive.pendingTimeout!==void 0)return;const r=n.options.pendingMs??t.router.options.defaultPendingMs;if(!!(t.onReady&&!t.router.isServer&&!Lm(t,e)&&(n.options.loader||n.options.beforeLoad||j2(n))&&typeof r=="number"&&r!==1/0&&(n.options.pendingComponent??t.router.options?.defaultPendingComponent))){const o=setTimeout(()=>{up(t)},r);i._nonReactive.pendingTimeout=o}},oI=(t,e,n)=>{const i=t.router.getMatch(e);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;$2(t,e,n,i);const r=()=>{const s=t.router.getMatch(e);s.preload&&(s.status==="redirected"||s.status==="notFound")&&eo(t,s,s.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(r):r()},aI=(t,e,n,i)=>{const r=t.router.getMatch(e),s=r._nonReactive.loadPromise;r._nonReactive.loadPromise=Xl(()=>{s?.resolve()});const{paramsError:o,searchError:l}=r;o&&cu(t,n,o,"PARSE_PARAMS"),l&&cu(t,n,l,"VALIDATE_SEARCH"),$2(t,e,i,r);const c=new AbortController,h=t.matches[n-1]?.id,g={...(h?t.router.getMatch(h):void 0)?.context??t.router.options.context??void 0,...r.__routeContext};let O=!1;const x=()=>{O||(O=!0,t.updateMatch(e,M=>({...M,isFetching:"beforeLoad",fetchCount:M.fetchCount+1,abortController:c,context:g})))},S=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,t.updateMatch(e,M=>({...M,isFetching:!1}))};if(!i.options.beforeLoad){$u(()=>{x(),S()});return}r._nonReactive.beforeLoadPromise=Xl();const{search:k,params:_,cause:T}=r,C=Lm(t,e),D={search:k,abortController:c,params:_,preload:C,context:g,location:t.location,navigate:M=>t.router.navigate({...M,_fromLocation:t.location}),buildLocation:t.router.buildLocation,cause:C?"preload":T,matches:t.matches,...t.router.options.additionalContext},j=M=>{if(M===void 0){$u(()=>{x(),S()});return}(Fi(M)||zi(M))&&(x(),cu(t,n,M,"BEFORE_LOAD")),$u(()=>{x(),t.updateMatch(e,I=>({...I,__beforeLoadContext:M,context:{...I.context,...M}})),S()})};let A;try{if(A=i.options.beforeLoad(D),oo(A))return x(),A.catch(M=>{cu(t,n,M,"BEFORE_LOAD")}).then(j)}catch(M){x(),cu(t,n,M,"BEFORE_LOAD")}j(A)},lI=(t,e)=>{const{id:n,routeId:i}=t.matches[e],r=t.router.looseRoutesById[i],s=()=>{if(t.router.isServer){const c=sI(t,n,e,r);if(oo(c))return c.then(l)}return l()},o=()=>aI(t,n,e,r),l=()=>{if(L2(t,n))return;const c=oI(t,n,r);return oo(c)?c.then(o):o()};return s()},Mu=(t,e,n)=>{const i=t.router.getMatch(e);if(!i||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const r={matches:t.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([n.options.head?.(r),n.options.scripts?.(r),n.options.headers?.(r)]).then(([s,o,l])=>{const c=s?.meta,h=s?.links,d=s?.scripts,p=s?.styles;return{meta:c,links:h,headScripts:d,headers:l,scripts:o,styles:p}})},M2=(t,e,n,i)=>{const r=t.matchPromises[n-1],{params:s,loaderDeps:o,abortController:l,cause:c}=t.router.getMatch(e);let h=t.router.options.context??{};for(let p=0;p<=n;p++){const g=t.matches[p];if(!g)continue;const O=t.router.getMatch(g.id);O&&(h={...h,...O.__routeContext??{},...O.__beforeLoadContext??{}})}const d=Lm(t,e);return{params:s,deps:o,preload:!!d,parentMatchPromise:r,abortController:l,context:h,location:t.location,navigate:p=>t.router.navigate({...p,_fromLocation:t.location}),cause:d?"preload":c,route:i,...t.router.options.additionalContext}},LP=async(t,e,n,i)=>{try{const r=t.router.getMatch(e);try{(!t.router.isServer||r.ssr===!0)&&D2(i);const s=i.options.loader?.(M2(t,e,n,i)),o=i.options.loader&&oo(s);if((o||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||r._nonReactive.minPendingPromise)&&t.updateMatch(e,p=>({...p,isFetching:"loader"})),i.options.loader){const p=o?await s:s;eo(t,t.router.getMatch(e),p),p!==void 0&&t.updateMatch(e,g=>({...g,loaderData:p}))}i._lazyPromise&&await i._lazyPromise;const c=Mu(t,e,i),h=c?await c:void 0,d=r._nonReactive.minPendingPromise;d&&await d,i._componentsPromise&&await i._componentsPromise,t.updateMatch(e,p=>({...p,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...h}))}catch(s){let o=s;const l=r._nonReactive.minPendingPromise;l&&await l,zi(s)&&await i.options.notFoundComponent?.preload?.(),eo(t,t.router.getMatch(e),s);try{i.options.onError?.(s)}catch(d){o=d,eo(t,t.router.getMatch(e),d)}const c=Mu(t,e,i),h=c?await c:void 0;t.updateMatch(e,d=>({...d,error:o,status:"error",isFetching:!1,...h}))}}catch(r){const s=t.router.getMatch(e);if(s){const o=Mu(t,e,i);if(o){const l=await o;t.updateMatch(e,c=>({...c,...l}))}s._nonReactive.loaderPromise=void 0}eo(t,s,r)}},cI=async(t,e)=>{const{id:n,routeId:i}=t.matches[e];let r=!1,s=!1;const o=t.router.looseRoutesById[i];if(L2(t,n)){if(t.router.isServer){const h=Mu(t,n,o);if(h){const d=await h;t.updateMatch(n,p=>({...p,...d}))}return t.router.getMatch(n)}}else{const h=t.router.getMatch(n);if(h._nonReactive.loaderPromise){if(h.status==="success"&&!t.sync&&!h.preload)return h;await h._nonReactive.loaderPromise;const d=t.router.getMatch(n),p=d._nonReactive.error||d.error;p&&eo(t,d,p)}else{const d=Date.now()-h.updatedAt,p=Lm(t,n),g=p?o.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:o.options.staleTime??t.router.options.defaultStaleTime??0,O=o.options.shouldReload,x=typeof O=="function"?O(M2(t,n,e,o)):O,S=!!p&&!t.router.state.matches.some(C=>C.id===n),k=t.router.getMatch(n);k._nonReactive.loaderPromise=Xl(),S!==k.preload&&t.updateMatch(n,C=>({...C,preload:S}));const{status:_,invalid:T}=k;if(r=_==="success"&&(T||(x??d>g)),!(p&&o.options.preload===!1))if(r&&!t.sync)s=!0,(async()=>{try{await LP(t,n,e,o);const C=t.router.getMatch(n);C._nonReactive.loaderPromise?.resolve(),C._nonReactive.loadPromise?.resolve(),C._nonReactive.loaderPromise=void 0}catch(C){Fi(C)&&await t.router.navigate(C.options)}})();else if(_!=="success"||r&&t.sync)await LP(t,n,e,o);else{const C=Mu(t,n,o);if(C){const D=await C;t.updateMatch(n,j=>({...j,...D}))}}}}const l=t.router.getMatch(n);s||(l._nonReactive.loaderPromise?.resolve(),l._nonReactive.loadPromise?.resolve()),clearTimeout(l._nonReactive.pendingTimeout),l._nonReactive.pendingTimeout=void 0,s||(l._nonReactive.loaderPromise=void 0),l._nonReactive.dehydrated=void 0;const c=s?l.isFetching:!1;return c!==l.isFetching||l.invalid!==!1?(t.updateMatch(n,h=>({...h,isFetching:c,invalid:!1})),t.router.getMatch(n)):l};async function $P(t){const e=Object.assign(t,{matchPromises:[]});!e.router.isServer&&e.router.state.matches.some(n=>n._forcePending)&&up(e);try{for(let r=0;r<e.matches.length;r++){const s=lI(e,r);oo(s)&&await s}const n=e.firstBadMatchIndex??e.matches.length;for(let r=0;r<n;r++)e.matchPromises.push(cI(e,r));await Promise.all(e.matchPromises);const i=up(e);oo(i)&&await i}catch(n){if(zi(n)&&!e.preload){const i=up(e);throw oo(i)&&await i,n}if(Fi(n))throw n}return e.matches}async function D2(t){if(!t._lazyLoaded&&t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(e=>{const{id:n,...i}=e.options;Object.assign(t.options,i),t._lazyLoaded=!0,t._lazyPromise=void 0}):t._lazyLoaded=!0),!t._componentsLoaded&&t._componentsPromise===void 0){const e=()=>{const n=[];for(const i of N2){const r=t.options[i]?.preload;r&&n.push(r())}if(n.length)return Promise.all(n).then(()=>{t._componentsLoaded=!0,t._componentsPromise=void 0});t._componentsLoaded=!0,t._componentsPromise=void 0};t._componentsPromise=t._lazyPromise?t._lazyPromise.then(e):e()}return t._componentsPromise}function bd(t,e){return e?{status:"error",error:e}:{status:"success",value:t}}function j2(t){for(const e of N2)if(t.options[e]?.preload)return!0;return!1}const N2=["component","errorComponent","pendingComponent","notFoundComponent"];function uI(t){return{input:({url:e})=>{for(const n of t)e=z2(n,e);return e},output:({url:e})=>{for(let n=t.length-1;n>=0;n--)e=I2(t[n],e);return e}}}function hI(t){const e=cp(t.basepath),n=`/${e}`,i=`${n}/`,r=t.caseSensitive?n:n.toLowerCase(),s=t.caseSensitive?i:i.toLowerCase();return{input:({url:o})=>{const l=t.caseSensitive?o.pathname:o.pathname.toLowerCase();return l===r?o.pathname="/":l.startsWith(s)&&(o.pathname=o.pathname.slice(n.length)),o},output:({url:o})=>(o.pathname=lp(["/",e,o.pathname]),o)}}function z2(t,e){const n=t?.input?.({url:e});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return e}function I2(t,e){const n=t?.output?.({url:e});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return e}function la(t){const e=t.resolvedLocation,n=t.location,i=e?.pathname!==n.pathname,r=e?.href!==n.href,s=e?.hash!==n.hash;return{fromLocation:e,toLocation:n,pathChanged:i,hrefChanged:r,hashChanged:s}}class fI{constructor(e){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=n=>n(),this.update=n=>{n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const i=this.options,r=this.basepath??i?.basepath??"/",s=this.basepath===void 0,o=i?.rewrite;this.options={...i,...n},this.isServer=this.options.isServer??typeof document>"u",this.pathParamsDecodeCharMap=this.options.pathParamsAllowedCharacters?new Map(this.options.pathParamsAllowedCharacters.map(g=>[encodeURIComponent(g),g])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=Pz())),this.origin=this.options.origin,this.origin||(!this.isServer&&window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),!this.__store&&this.latestLocation&&(this.__store=new kz(pI(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(g=>!["redirected"].includes(g.status))}}}),Hz(this));let l=!1;const c=this.options.basepath??"/",h=this.options.rewrite;if(s||r!==c||o!==h){this.basepath=c;const g=[];cp(c)!==""&&g.push(hI({basepath:c})),h&&g.push(h),this.rewrite=g.length===0?void 0:g.length===1?g[0]:uI(g),this.history&&this.updateLatestLocation(),l=!0}l&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const{routesById:n,routesByPath:i,processedTree:r}=Nz(this.routeTree,this.options.caseSensitive,(o,l)=>{o.init({originalIndex:l})});this.options.routeMasks&&Lz(this.options.routeMasks,r),this.routesById=n,this.routesByPath=i,this.processedTree=r;const s=this.options.notFoundRoute;s&&(s.init({originalIndex:99999999999}),this.routesById[s.id]=s)},this.subscribe=(n,i)=>{const r={eventType:n,fn:i};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=n=>{this.subscribers.forEach(i=>{i.eventType===n.type&&i.fn(n)})},this.parseLocation=(n,i)=>{const r=({href:c,state:h})=>{const d=new URL(c,this.origin),p=z2(this.rewrite,d),g=this.options.parseSearch(p.search),O=this.options.stringifySearch(g);p.search=O;const x=p.href.replace(p.origin,""),{pathname:S,hash:k}=p;return{href:x,publicHref:c,url:p.href,pathname:RP(S),searchStr:O,search:Li(i?.search,g),hash:k.split("#").reverse()[0]??"",state:Li(i?.state,h)}},s=r(n),{__tempLocation:o,__tempKey:l}=s.state;if(o&&(!l||l===this.tempLocationKey)){const c=r(o);return c.state.key=s.state.key,c.state.__TSR_key=s.state.__TSR_key,delete c.state.__tempLocation,{...c,maskedLocation:s}}return s},this.resolvePathCache=Mp(1e3),this.resolvePathWithBase=(n,i)=>Zz({base:n,to:gv(i),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,i,r)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:i},r):this.matchRoutesInternal(n,i),this.getMatchedRoutes=n=>mI({pathname:n,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=n=>{const i=this.getMatch(n);i&&(i.abortController.abort(),clearTimeout(i._nonReactive.pendingTimeout),i._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const n=this.state.matches.filter(s=>s.status==="pending"),i=this.state.matches.filter(s=>s.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...i]).forEach(s=>{this.cancelMatch(s.id)})},this.buildLocation=n=>{const i=(s={})=>{const o=s._fromLocation||this.pendingBuiltLocation||this.latestLocation,l=this.matchRoutes(o,{_buildLocation:!0}),c=Lp(l);s.from;const h=s.unsafeRelative==="path"?o.pathname:s.from??c.fullPath,d=this.resolvePathWithBase(h,"."),p=c.search,g={...c.params},O=s.to?this.resolvePathWithBase(d,`${s.to}`):this.resolvePathWithBase(d,"."),x=s.params===!1||s.params===null?{}:(s.params??!0)===!0?g:Object.assign(g,sa(s.params,g)),S=X0({path:O,params:x}).interpolatedPath,k=this.matchRoutes(S,void 0,{_buildLocation:!0}).map($=>this.looseRoutesById[$.routeId]);if(Object.keys(x).length>0)for(const $ of k){const U=$.options.params?.stringify??$.options.stringifyParams;U&&Object.assign(x,U(x))}const _=n.leaveParams?O:RP(X0({path:O,params:x,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let T=p;if(n._includeValidateSearch&&this.options.search?.strict){const $={};k.forEach(U=>{if(U.options.validateSearch)try{Object.assign($,vb(U.options.validateSearch,{...$,...T}))}catch{}}),T=$}T=gI({search:T,dest:s,destRoutes:k,_includeValidateSearch:n._includeValidateSearch}),T=Li(p,T);const C=this.options.stringifySearch(T),D=s.hash===!0?o.hash:s.hash?sa(s.hash,o.hash):void 0,j=D?`#${D}`:"";let A=s.state===!0?o.state:s.state?sa(s.state,o.state):{};A=Li(o.state,A);const M=`${_}${C}${j}`,I=new URL(M,this.origin),B=I2(this.rewrite,I);return{publicHref:B.pathname+B.search+B.hash,href:M,url:B.href,pathname:_,search:T,searchStr:C,state:A,hash:D??"",unmaskOnReload:s.unmaskOnReload}},r=(s={},o)=>{const l=i(s);let c=o?i(o):void 0;if(!c){const h={};if(this.options.routeMasks){const d=$z(l.pathname,this.processedTree);if(d){Object.assign(h,d.params);const{from:p,...g}=d.route;o={from:n.from,...g,params:h},c=i(o)}}}return c&&(l.maskedLocation=c),l};return n.mask?r(n,{from:n.from,...n.mask}):r(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:i,...r})=>{const s=()=>{const c=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];c.forEach(d=>{r.state[d]=this.latestLocation.state[d]});const h=oa(r.state,this.latestLocation.state);return c.forEach(d=>{delete r.state[d]}),h},o=aa(this.latestLocation.href)===aa(r.href),l=this.commitLocationPromise;if(this.commitLocationPromise=Xl(()=>{l?.resolve()}),o&&s())this.load();else{let{maskedLocation:c,hashScrollIntoView:h,...d}=r;c&&(d={...c,state:{...c.state,__tempKey:void 0,__tempLocation:{...d,search:d.searchStr,state:{...d.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(d.unmaskOnReload??this.options.unmaskOnReload??!1)&&(d.state.__tempKey=this.tempLocationKey)),d.state.__hashScrollIntoViewOptions=h??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[r.replace?"replace":"push"](d.publicHref,d.state,{ignoreBlocker:i})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:i,hashScrollIntoView:r,viewTransition:s,ignoreBlocker:o,href:l,...c}={})=>{if(l){const p=this.history.location.state.__TSR_index,g=Rp(l,{__TSR_index:n?p:p+1});c.to=g.pathname,c.search=this.options.parseSearch(g.search),c.hash=g.hash.slice(1)}const h=this.buildLocation({...c,_includeValidateSearch:!0});this.pendingBuiltLocation=h;const d=this.commitLocation({...h,viewTransition:s,replace:n,resetScroll:i,hashScrollIntoView:r,ignoreBlocker:o});return Promise.resolve().then(()=>{this.pendingBuiltLocation===h&&(this.pendingBuiltLocation=void 0)}),d},this.navigate=async({to:n,reloadDocument:i,href:r,...s})=>{if(!i&&r)try{new URL(`${r}`),i=!0}catch{}if(i){if(r||(r=this.buildLocation({to:n,...s}).url),!s.ignoreBlocker){const l=this.history.getBlockers?.()??[];for(const c of l)if(c?.blockerFn&&await c.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return s.replace?window.location.replace(r):window.location.href=r,Promise.resolve()}return this.buildAndCommitLocation({...s,href:r,to:n,_isNavigate:!0})},this.beforeLoad=()=>{if(this.cancelMatches(),this.updateLatestLocation(),this.isServer){const i=this.buildLocation({to:this.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0}),r=s=>{try{return encodeURI(decodeURI(s))}catch{return s}};if(cp(r(this.latestLocation.href))!==cp(r(i.href))){let s=i.url;throw this.origin&&s.startsWith(this.origin)&&(s=s.replace(this.origin,"")||"/"),rI({href:s})}}const n=this.matchRoutes(this.latestLocation);this.__store.setState(i=>({...i,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:n,cachedMatches:i.cachedMatches.filter(r=>!n.some(s=>s.id===r.id))}))},this.load=async n=>{let i,r,s;for(s=new Promise(l=>{this.startTransition(async()=>{try{this.beforeLoad();const c=this.latestLocation,h=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...la({resolvedLocation:h,location:c})}),this.emit({type:"onBeforeLoad",...la({resolvedLocation:h,location:c})}),await $P({router:this,sync:n?.sync,matches:this.state.pendingMatches,location:c,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let d=[],p=[],g=[];$u(()=>{this.__store.setState(O=>{const x=O.matches,S=O.pendingMatches||O.matches;return d=x.filter(k=>!S.some(_=>_.id===k.id)),p=S.filter(k=>!x.some(_=>_.id===k.id)),g=S.filter(k=>x.some(_=>_.id===k.id)),{...O,isLoading:!1,loadedAt:Date.now(),matches:S,pendingMatches:void 0,cachedMatches:[...O.cachedMatches,...d.filter(k=>k.status!=="error"&&k.status!=="notFound")]}}),this.clearExpiredCache()}),[[d,"onLeave"],[p,"onEnter"],[g,"onStay"]].forEach(([O,x])=>{O.forEach(S=>{this.looseRoutesById[S.routeId].options[x]?.(S)})})})})}})}catch(c){Fi(c)?(i=c,this.isServer||this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):zi(c)&&(r=c),this.__store.setState(h=>({...h,statusCode:i?i.status:r?404:h.matches.some(d=>d.status==="error")?500:200,redirect:i}))}this.latestLoadPromise===s&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),l()})}),this.latestLoadPromise=s,await s;this.latestLoadPromise&&s!==this.latestLoadPromise;)await this.latestLoadPromise;let o;this.hasNotFoundMatch()?o=404:this.__store.state.matches.some(l=>l.status==="error")&&(o=500),o!==void 0&&this.__store.setState(l=>({...l,statusCode:o}))},this.startViewTransition=n=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;if(delete this.shouldViewTransition,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const s=this.latestLocation,o=this.state.resolvedLocation,l=typeof i.types=="function"?i.types(la({resolvedLocation:o,location:s})):i.types;if(l===!1){n();return}r={update:n,types:l}}else r=n;document.startViewTransition(r)}else n()},this.updateMatch=(n,i)=>{this.startTransition(()=>{const r=this.state.pendingMatches?.some(s=>s.id===n)?"pendingMatches":this.state.matches.some(s=>s.id===n)?"matches":this.state.cachedMatches.some(s=>s.id===n)?"cachedMatches":"";r&&this.__store.setState(s=>({...s,[r]:s[r]?.map(o=>o.id===n?i(o):o)}))})},this.getMatch=n=>{const i=r=>r.id===n;return this.state.cachedMatches.find(i)??this.state.pendingMatches?.find(i)??this.state.matches.find(i)},this.invalidate=n=>{const i=r=>n?.filter?.(r)??!0?{...r,invalid:!0,...n?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.__store.setState(r=>({...r,matches:r.matches.map(i),cachedMatches:r.cachedMatches.map(i),pendingMatches:r.pendingMatches?.map(i)})),this.shouldViewTransition=!1,this.load({sync:n?.sync})},this.resolveRedirect=n=>{if(!n.options.href){const i=this.buildLocation(n.options);let r=i.url;this.origin&&r.startsWith(this.origin)&&(r=r.replace(this.origin,"")||"/"),n.options.href=i.href,n.headers.set("Location",r)}return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const i=n?.filter;i!==void 0?this.__store.setState(r=>({...r,cachedMatches:r.cachedMatches.filter(s=>!i(s))})):this.__store.setState(r=>({...r,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=i=>{const r=this.looseRoutesById[i.routeId];if(!r.options.loader)return!0;const s=(i.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return i.status==="error"?!0:Date.now()-i.updatedAt>=s};this.clearCache({filter:n})},this.loadRouteChunk=D2,this.preloadRoute=async n=>{const i=this.buildLocation(n);let r=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:n});const s=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(l=>l.id)),o=new Set([...s,...this.state.cachedMatches.map(l=>l.id)]);$u(()=>{r.forEach(l=>{o.has(l.id)||this.__store.setState(c=>({...c,cachedMatches:[...c.cachedMatches,l]}))})});try{return r=await $P({router:this,matches:r,location:i,preload:!0,updateMatch:(l,c)=>{s.has(l)?r=r.map(h=>h.id===l?c(h):h):this.updateMatch(l,c)}}),r}catch(l){if(Fi(l))return l.options.reloadDocument?void 0:await this.preloadRoute({...l.options,_fromLocation:i});zi(l)||console.error(l);return}},this.matchRoute=(n,i)=>{const r={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},s=this.buildLocation(r);if(i?.pending&&this.state.status!=="pending")return!1;const l=(i?.pending===void 0?!this.state.isLoading:i.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,c=Mz(s.pathname,i?.caseSensitive??!1,i?.fuzzy??!1,l.pathname,this.processedTree);return!c||n.params&&!oa(c.params,n.params,{partial:!0})?!1:i?.includeSearch??!0?oa(l.search,s.search,{partial:!0})?c.params:!1:c.params},this.hasNotFoundMatch=()=>this.__store.state.matches.some(n=>n.status==="notFound"||n.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...e,caseSensitive:e.caseSensitive??!1,notFoundMode:e.notFoundMode??"fuzzy",stringifySearch:e.stringifySearch??tI,parseSearch:e.parseSearch??eI}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}get looseRoutesById(){return this.routesById}matchRoutesInternal(e,n){const i=this.getMatchedRoutes(e.pathname),{foundRoute:r,routeParams:s}=i;let{matchedRoutes:o}=i,l=!1;(r?r.path!=="/"&&s["**"]:aa(e.pathname))&&(this.options.notFoundRoute?o=[...o,this.options.notFoundRoute]:l=!0);const c=(()=>{if(l){if(this.options.notFoundMode!=="root")for(let p=o.length-1;p>=0;p--){const g=o[p];if(g.children)return g.id}return di}})(),h=[],d=p=>p?.id?p.context??this.options.context??void 0:this.options.context??void 0;return o.forEach((p,g)=>{const O=h[g-1],[x,S,k]=(()=>{const oe=O?.search??e.search,F=O?._strictSearch??void 0;try{const Y=vb(p.options.validateSearch,{...oe})??void 0;return[{...oe,...Y},{...F,...Y},void 0]}catch(Y){let Z=Y;if(Y instanceof zp||(Z=new zp(Y.message,{cause:Y})),n?.throwOnError)throw Z;return[oe,{},Z]}})(),_=p.options.loaderDeps?.({search:x})??"",T=_?JSON.stringify(_):"",{interpolatedPath:C,usedParams:D}=X0({path:p.fullPath,params:s,decodeCharMap:this.pathParamsDecodeCharMap}),j=p.id+C+T,A=this.getMatch(j),M=this.state.matches.find(oe=>oe.routeId===p.id),I=A?._strictParams??D;let B;if(!A){const oe=p.options.params?.parse??p.options.parseParams;if(oe)try{Object.assign(I,oe(I))}catch(F){if(zi(F)||Fi(F)?B=F:B=new dI(F.message,{cause:F}),n?.throwOnError)throw B}}Object.assign(s,I);const $=M?"stay":"enter";let U;if(A)U={...A,cause:$,params:M?Li(M.params,s):s,_strictParams:I,search:Li(M?M.search:A.search,x),_strictSearch:S};else{const oe=p.options.loader||p.options.beforeLoad||p.lazyFn||j2(p)?"pending":"success";U={id:j,index:g,routeId:p.id,params:M?Li(M.params,s):s,_strictParams:I,pathname:C,updatedAt:Date.now(),search:M?Li(M.search,x):x,_strictSearch:S,searchError:void 0,status:oe,isFetching:!1,error:void 0,paramsError:B,__routeContext:void 0,_nonReactive:{loadPromise:Xl()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:$,loaderDeps:M?Li(M.loaderDeps,_):_,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:p.options.staticData||{},fullPath:p.fullPath}}n?.preload||(U.globalNotFound=c===p.id),U.searchError=k;const H=d(O);U.context={...H,...U.__routeContext,...U.__beforeLoadContext},h.push(U)}),h.forEach((p,g)=>{const O=this.looseRoutesById[p.routeId];if(!this.getMatch(p.id)&&n?._buildLocation!==!0){const S=h[g-1],k=d(S);if(O.options.context){const _={deps:p.loaderDeps,params:p.params,context:k??{},location:e,navigate:T=>this.navigate({...T,_fromLocation:e}),buildLocation:this.buildLocation,cause:p.cause,abortController:p.abortController,preload:!!p.preload,matches:h};p.__routeContext=O.options.context(_)??void 0}p.context={...k,...p.__routeContext,...p.__beforeLoadContext}}}),h}}class zp extends Error{}class dI extends Error{}function pI(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function vb(t,e){if(t==null)return{};if("~standard"in t){const n=t["~standard"].validate(e);if(n instanceof Promise)throw new zp("Async validation not supported");if(n.issues)throw new zp(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in t?t.parse(e):typeof t=="function"?t(e):{}}function mI({pathname:t,routesById:e,processedTree:n}){const i={},r=aa(t);let s;const o=Dz(r,n,!0);return o&&(s=o.route,Object.assign(i,o.params)),{matchedRoutes:o?.branch||[e[di]],routeParams:i,foundRoute:s}}function gI({search:t,dest:e,destRoutes:n,_includeValidateSearch:i}){const r=n.reduce((l,c)=>{const h=[];if("search"in c.options)c.options.search?.middlewares&&h.push(...c.options.search.middlewares);else if(c.options.preSearchFilters||c.options.postSearchFilters){const d=({search:p,next:g})=>{let O=p;"preSearchFilters"in c.options&&c.options.preSearchFilters&&(O=c.options.preSearchFilters.reduce((S,k)=>k(S),p));const x=g(O);return"postSearchFilters"in c.options&&c.options.postSearchFilters?c.options.postSearchFilters.reduce((S,k)=>k(S),x):x};h.push(d)}if(i&&c.options.validateSearch){const d=({search:p,next:g})=>{const O=g(p);try{return{...O,...vb(c.options.validateSearch,O)??void 0}}catch{return O}};h.push(d)}return l.concat(h)},[])??[],s=({search:l})=>e.search?e.search===!0?l:sa(e.search,l):{};r.push(s);const o=(l,c)=>{if(l>=r.length)return c;const h=r[l];return h({search:c,next:p=>o(l+1,p)})};return o(0,t)}const OI="Error preloading route! ☝️";class X2{constructor(e){if(this.init=n=>{this.originalIndex=n.originalIndex;const i=this.options,r=!i?.path&&!i?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=di:this.parentRoute||fs(!1);let s=r?di:i?.path;s&&s!=="/"&&(s=Q2(s));const o=i?.id||s;let l=r?di:lp([this.parentRoute.id===di?"":this.parentRoute.id,o]);s===di&&(s="/"),l!==di&&(l=lp(["/",l]));const c=l===di?"/":lp([this.parentRoute.fullPath,s]);this._path=s,this._id=l,this._fullPath=c,this._to=c},this.addChildren=n=>this._addFileChildren(n),this._addFileChildren=n=>(Array.isArray(n)&&(this.children=n),typeof n=="object"&&n!==null&&(this.children=Object.values(n)),this),this._addFileTypes=()=>this,this.updateLoader=n=>(Object.assign(this.options,n),this),this.update=n=>(Object.assign(this.options,n),this),this.lazy=n=>(this.lazyFn=n,this),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class yI{constructor({id:e}){this.notFound=n=>E2({routeId:this.id,...n}),this.id=e}}class bI extends X2{constructor(e){super(e)}}function Ov(t){const e=t.errorComponent??$m;return v.jsx(xI,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:n,reset:i})=>n?z.createElement(e,{error:n,reset:i}):t.children})}class xI extends z.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(e){return{resetKey:e.getResetKey()}}static getDerivedStateFromError(e){return{error:e}}reset(){this.setState({error:null})}componentDidUpdate(e,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(e,n){this.props.onCatch&&this.props.onCatch(e,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function $m({error:t}){const[e,n]=z.useState(!1);return v.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[v.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),v.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(i=>!i),children:e?"Hide Error":"Show Error"})]}),v.jsx("div",{style:{height:".25rem"}}),e?v.jsx("div",{children:v.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?v.jsx("code",{children:t.message}):null})}):null]})}function vI({children:t,fallback:e=null}){return SI()?v.jsx(Il.Fragment,{children:t}):v.jsx(Il.Fragment,{children:e})}function SI(){return Il.useSyncExternalStore(_I,()=>!0,()=>!1)}function _I(){return()=>{}}var B0={exports:{}},Z0={},q0={exports:{}},U0={};var MP;function kI(){if(MP)return U0;MP=1;var t=Dh();function e(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var n=typeof Object.is=="function"?Object.is:e,i=t.useState,r=t.useEffect,s=t.useLayoutEffect,o=t.useDebugValue;function l(p,g){var O=g(),x=i({inst:{value:O,getSnapshot:g}}),S=x[0].inst,k=x[1];return s(function(){S.value=O,S.getSnapshot=g,c(S)&&k({inst:S})},[p,O,g]),r(function(){return c(S)&&k({inst:S}),p(function(){c(S)&&k({inst:S})})},[p]),o(O),O}function c(p){var g=p.getSnapshot;p=p.value;try{var O=g();return!n(p,O)}catch{return!0}}function h(p,g){return g()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:l;return U0.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:d,U0}var DP;function wI(){return DP||(DP=1,q0.exports=kI()),q0.exports}var jP;function PI(){if(jP)return Z0;jP=1;var t=Dh(),e=wI();function n(h,d){return h===d&&(h!==0||1/h===1/d)||h!==h&&d!==d}var i=typeof Object.is=="function"?Object.is:n,r=e.useSyncExternalStore,s=t.useRef,o=t.useEffect,l=t.useMemo,c=t.useDebugValue;return Z0.useSyncExternalStoreWithSelector=function(h,d,p,g,O){var x=s(null);if(x.current===null){var S={hasValue:!1,value:null};x.current=S}else S=x.current;x=l(function(){function _(A){if(!T){if(T=!0,C=A,A=g(A),O!==void 0&&S.hasValue){var M=S.value;if(O(M,A))return D=M}return D=A}if(M=D,i(C,A))return M;var I=g(A);return O!==void 0&&O(M,I)?(C=A,M):(C=A,D=I)}var T=!1,C,D,j=p===void 0?null:p;return[function(){return _(d())},j===null?void 0:function(){return _(j())}]},[d,p,g,O]);var k=r(h,x[0],x[1]);return o(function(){S.hasValue=!0,S.value=k},[k]),c(k),k},Z0}var NP;function TI(){return NP||(NP=1,B0.exports=PI()),B0.exports}var CI=TI();function QI(t,e=i=>i,n={}){const i=n.equal??EI;return CI.useSyncExternalStoreWithSelector(t.subscribe,()=>t.state,()=>t.state,e,i)}function EI(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(const[i,r]of t)if(!e.has(i)||!Object.is(r,e.get(i)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();const n=zP(t);if(n.length!==zP(e).length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(e,n[i])||!Object.is(t[n[i]],e[n[i]]))return!1;return!0}function zP(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}const Y0=z.createContext(null);function V2(){return typeof document>"u"?Y0:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Y0,Y0)}function $n(t){const e=z.useContext(V2());return t?.warn,e}function En(t){const e=$n({warn:t?.router===void 0}),n=t?.router||e,i=z.useRef(void 0);return QI(n.__store,r=>{if(t?.select){if(t.structuralSharing??n.options.defaultStructuralSharing){const s=Li(i.current,t.select(r));return i.current=s,s}return t.select(r)}return r})}const Mm=z.createContext(void 0),AI=z.createContext(void 0);function Vi(t){const e=z.useContext(t.from?AI:Mm);return En({select:i=>{const r=i.matches.find(s=>t.from?t.from===s.routeId:s.id===e);if(fs(!((t.shouldThrow??!0)&&!r),`Could not find ${t.from?`an active match from "${t.from}"`:"a nearest match!"}`),r!==void 0)return t.select?t.select(r):r},structuralSharing:t.structuralSharing})}function Dm(t){return Vi({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.loaderData):e.loaderData})}function jm(t){const{select:e,...n}=t;return Vi({...n,select:i=>e?e(i.loaderDeps):i.loaderDeps})}function sc(t){return Vi({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:e=>{const n=t.strict===!1?e.params:e._strictParams;return t.select?t.select(n):n}})}function Nm(t){return Vi({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:e=>t.select?t.select(e.search):e.search})}const xd=typeof window<"u"?z.useLayoutEffect:z.useEffect;function G0(t){const e=z.useRef({value:t,prev:null}),n=e.current.value;return t!==n&&(e.current={value:t,prev:n}),e.current.prev}function RI(t,e,n={},i={}){z.useEffect(()=>{if(!t.current||i.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([s])=>{e(s)},n);return r.observe(t.current),()=>{r.disconnect()}},[e,n,i.disabled,t])}function LI(t){const e=z.useRef(null);return z.useImperativeHandle(t,()=>e.current,[]),e}function oc(t){const e=$n();return z.useCallback(n=>e.navigate({...n,from:n.from??t?.from}),[t?.from,e])}var B2=p2();function $I(t,e){const n=$n(),[i,r]=z.useState(!1),s=z.useRef(!1),o=LI(e),{activeProps:l,inactiveProps:c,activeOptions:h,to:d,preload:p,preloadDelay:g,hashScrollIntoView:O,replace:x,startTransition:S,resetScroll:k,viewTransition:_,children:T,target:C,disabled:D,style:j,className:A,onClick:M,onFocus:I,onMouseEnter:B,onMouseLeave:$,onTouchStart:U,ignoreBlocker:H,params:oe,search:F,hash:Y,state:Z,mask:J,reloadDocument:ce,unsafeRelative:Oe,from:L,_fromLocation:N,...te}=t,R=En({select:he=>he.location.search,structuralSharing:!0}),fe=t.from,_e=z.useMemo(()=>({...t,from:fe}),[n,R,fe,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),xe=z.useMemo(()=>n.buildLocation({..._e}),[n,_e]),Re=z.useMemo(()=>{if(D)return;let he=xe.maskedLocation?xe.maskedLocation.url:xe.url,Pe=!1;return n.origin&&(he.startsWith(n.origin)?he=n.history.createHref(he.replace(n.origin,""))||"/":Pe=!0),{href:he,external:Pe}},[D,xe.maskedLocation,xe.url,n.origin,n.history]),et=z.useMemo(()=>{if(Re?.external)return Re.href;try{return new URL(d),d}catch{}},[d,Re]),$e=t.reloadDocument||et?!1:p??n.options.defaultPreload,Ht=g??n.options.defaultPreloadDelay??0,_n=En({select:he=>{if(et)return!1;if(h?.exact){if(!Bz(he.location.pathname,xe.pathname,n.basepath))return!1}else{const Pe=Dp(he.location.pathname,n.basepath),ft=Dp(xe.pathname,n.basepath);if(!(Pe.startsWith(ft)&&(Pe.length===ft.length||Pe[ft.length]==="/")))return!1}return(h?.includeSearch??!0)&&!oa(he.location.search,xe.search,{partial:!h?.exact,ignoreUndefined:!h?.explicitUndefined})?!1:h?.includeHash?he.location.hash===xe.hash:!0}}),dn=z.useCallback(()=>{n.preloadRoute({..._e}).catch(he=>{console.warn(he),console.warn(OI)})},[n,_e]),xi=z.useCallback(he=>{he?.isIntersecting&&dn()},[dn]);RI(o,xi,zI,{disabled:!!D||$e!=="viewport"}),z.useEffect(()=>{s.current||!D&&$e==="render"&&(dn(),s.current=!0)},[D,dn,$e]);const Mn=he=>{const Pe=he.currentTarget.getAttribute("target"),ft=C!==void 0?C:Pe;if(!D&&!II(he)&&!he.defaultPrevented&&(!ft||ft==="_self")&&he.button===0){he.preventDefault(),B2.flushSync(()=>{r(!0)});const ie=n.subscribe("onResolved",()=>{ie(),r(!1)});n.navigate({..._e,replace:x,resetScroll:k,hashScrollIntoView:O,startTransition:S,viewTransition:_,ignoreBlocker:H})}};if(et)return{...te,ref:o,href:et,...T&&{children:T},...C&&{target:C},...D&&{disabled:D},...j&&{style:j},...A&&{className:A},...M&&{onClick:M},...I&&{onFocus:I},...B&&{onMouseEnter:B},...$&&{onMouseLeave:$},...U&&{onTouchStart:U}};const Ui=he=>{D||$e&&dn()},vi=Ui,Mr=he=>{if(!(D||!$e))if(!Ht)dn();else{const Pe=he.target;if(uu.has(Pe))return;const ft=setTimeout(()=>{uu.delete(Pe),dn()},Ht);uu.set(Pe,ft)}},sr=he=>{if(D||!$e||!Ht)return;const Pe=he.target,ft=uu.get(Pe);ft&&(clearTimeout(ft),uu.delete(Pe))},kn=_n?sa(l,{})??MI:W0,Kn=_n?W0:sa(c,{})??W0,or=[A,kn.className,Kn.className].filter(Boolean).join(" "),Ss=(j||kn.style||Kn.style)&&{...j,...kn.style,...Kn.style};return{...te,...kn,...Kn,href:Re?.href,ref:o,onClick:hu([M,Mn]),onFocus:hu([I,Ui]),onMouseEnter:hu([B,Mr]),onMouseLeave:hu([$,sr]),onTouchStart:hu([U,vi]),disabled:!!D,target:C,...Ss&&{style:Ss},...or&&{className:or},...D&&DI,..._n&&jI,...i&&NI}}const W0={},MI={className:"active"},DI={role:"link","aria-disabled":!0},jI={"data-status":"active","aria-current":"page"},NI={"data-transitioning":"transitioning"},uu=new WeakMap,zI={rootMargin:"100px"},hu=t=>e=>{for(const n of t)if(n){if(e.defaultPrevented)return;n(e)}},Rt=z.forwardRef((t,e)=>{const{_asChild:n,...i}=t,{type:r,ref:s,...o}=$I(i,e),l=typeof i.children=="function"?i.children({isActive:o["data-status"]==="active"}):i.children;return n===void 0&&delete o.disabled,z.createElement(n||"a",{...o,ref:s},l)});function II(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function XI(t){return new VI({id:t})}class VI extends yI{constructor({id:e}){super({id:e}),this.useMatch=n=>Vi({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Vi({from:this.id,select:i=>n?.select?n.select(i.context):i.context}),this.useSearch=n=>Nm({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>sc({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>jm({...n,from:this.id,strict:!1}),this.useLoaderData=n=>Dm({...n,from:this.id,strict:!1}),this.useNavigate=()=>{const n=$n();return oc({from:n.routesById[this.id].fullPath})},this.notFound=n=>E2({routeId:this.id,...n}),this.Link=Il.forwardRef((n,i)=>{const s=$n().routesById[this.id].fullPath;return v.jsx(Rt,{ref:i,from:s,...n})})}}class BI extends X2{constructor(e){super(e),this.useMatch=n=>Vi({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Vi({...n,from:this.id,select:i=>n?.select?n.select(i.context):i.context}),this.useSearch=n=>Nm({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>sc({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>jm({...n,from:this.id}),this.useLoaderData=n=>Dm({...n,from:this.id}),this.useNavigate=()=>oc({from:this.fullPath}),this.Link=Il.forwardRef((n,i)=>v.jsx(Rt,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function Qr(t){return new BI(t)}class ZI extends bI{constructor(e){super(e),this.useMatch=n=>Vi({select:n?.select,from:this.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Vi({...n,from:this.id,select:i=>n?.select?n.select(i.context):i.context}),this.useSearch=n=>Nm({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useParams=n=>sc({select:n?.select,structuralSharing:n?.structuralSharing,from:this.id}),this.useLoaderDeps=n=>jm({...n,from:this.id}),this.useLoaderData=n=>Dm({...n,from:this.id}),this.useNavigate=()=>oc({from:this.fullPath}),this.Link=Il.forwardRef((n,i)=>v.jsx(Rt,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function qI(t){return new ZI(t)}function IP(t){return typeof t=="object"?new XP(t,{silent:!0}).createRoute(t):new XP(t,{silent:!0}).createRoute}class XP{constructor(e,n){this.path=e,this.createRoute=i=>{this.silent;const r=Qr(i);return r.isRoot=!1,r},this.silent=n?.silent}}class VP{constructor(e){this.useMatch=n=>Vi({select:n?.select,from:this.options.id,structuralSharing:n?.structuralSharing}),this.useRouteContext=n=>Vi({from:this.options.id,select:i=>n?.select?n.select(i.context):i.context}),this.useSearch=n=>Nm({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useParams=n=>sc({select:n?.select,structuralSharing:n?.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>jm({...n,from:this.options.id}),this.useLoaderData=n=>Dm({...n,from:this.options.id}),this.useNavigate=()=>{const n=$n();return oc({from:n.routesById[this.options.id].fullPath})},this.options=e,this.$$typeof=Symbol.for("react.memo")}}function BP(t){return typeof t=="object"?new VP(t):e=>new VP({id:t,...e})}function UI(){const t=$n(),e=z.useRef({router:t,mounted:!1}),[n,i]=z.useState(!1),{hasPendingMatches:r,isLoading:s}=En({select:p=>({isLoading:p.isLoading,hasPendingMatches:p.matches.some(g=>g.status==="pending")}),structuralSharing:!0}),o=G0(s),l=s||n||r,c=G0(l),h=s||r,d=G0(h);return t.startTransition=p=>{i(!0),z.startTransition(()=>{p(),i(!1)})},z.useEffect(()=>{const p=t.history.subscribe(t.load),g=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return aa(t.latestLocation.href)!==aa(g.href)&&t.commitLocation({...g,replace:!0}),()=>{p()}},[t,t.history]),xd(()=>{if(typeof window<"u"&&t.ssr||e.current.router===t&&e.current.mounted)return;e.current={router:t,mounted:!0},(async()=>{try{await t.load()}catch(g){console.error(g)}})()},[t]),xd(()=>{o&&!s&&t.emit({type:"onLoad",...la(t.state)})},[o,t,s]),xd(()=>{d&&!h&&t.emit({type:"onBeforeRouteMount",...la(t.state)})},[h,d,t]),xd(()=>{if(c&&!l){const p=la(t.state);t.emit({type:"onResolved",...p}),t.__store.setState(g=>({...g,status:"idle",resolvedLocation:g.location})),p.hrefChanged&&Fz(t)}},[l,c,t]),null}function YI(t){const e=En({select:n=>`not-found-${n.location.pathname}-${n.status}`});return v.jsx(Ov,{getResetKey:()=>e,onCatch:(n,i)=>{if(zi(n))t.onCatch?.(n,i);else throw n},errorComponent:({error:n})=>{if(zi(n))return t.fallback?.(n);throw n},children:t.children})}function GI(){return v.jsx("p",{children:"Not Found"})}function bl(t){return v.jsx(v.Fragment,{children:t.children})}function Z2(t,e,n){return e.options.notFoundComponent?v.jsx(e.options.notFoundComponent,{...n}):t.options.defaultNotFoundComponent?v.jsx(t.options.defaultNotFoundComponent,{...n}):v.jsx(GI,{})}function WI({children:t}){const e=$n();return e.isServer?v.jsx("script",{nonce:e.options.ssr?.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:t+';typeof $_TSR !== "undefined" && $_TSR.c()'}}):null}function HI(){const t=$n();if(!t.isScrollRestoring||!t.isServer||typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))return null;const n=(t.options.getScrollRestorationKey||xb)(t.latestLocation),i=n!==xb(t.latestLocation)?n:void 0,r={storageKey:jp,shouldScrollRestoration:!0};return i&&(r.key=i),v.jsx(WI,{children:`(${A2.toString()})(${JSON.stringify(r)})`})}const q2=z.memo(function({matchId:e}){const n=$n(),i=En({select:_=>{const T=_.matches.find(C=>C.id===e);return fs(T),{routeId:T.routeId,ssr:T.ssr,_displayPending:T._displayPending}},structuralSharing:!0}),r=n.routesById[i.routeId],s=r.options.pendingComponent??n.options.defaultPendingComponent,o=s?v.jsx(s,{}):null,l=r.options.errorComponent??n.options.defaultErrorComponent,c=r.options.onCatch??n.options.defaultOnCatch,h=r.isRoot?r.options.notFoundComponent??n.options.notFoundRoute?.options.component:r.options.notFoundComponent,d=i.ssr===!1||i.ssr==="data-only",p=(!r.isRoot||r.options.wrapInSuspense||d)&&(r.options.wrapInSuspense??s??(r.options.errorComponent?.preload||d))?z.Suspense:bl,g=l?Ov:bl,O=h?YI:bl,x=En({select:_=>_.loadedAt}),S=En({select:_=>{const T=_.matches.findIndex(C=>C.id===e);return _.matches[T-1]?.routeId}}),k=r.isRoot?r.options.shellComponent??bl:bl;return v.jsxs(k,{children:[v.jsx(Mm.Provider,{value:e,children:v.jsx(p,{fallback:o,children:v.jsx(g,{getResetKey:()=>x,errorComponent:l||$m,onCatch:(_,T)=>{if(zi(_))throw _;c?.(_,T)},children:v.jsx(O,{fallback:_=>{if(!h||_.routeId&&_.routeId!==i.routeId||!_.routeId&&!r.isRoot)throw _;return z.createElement(h,_)},children:d||i._displayPending?v.jsx(vI,{fallback:o,children:v.jsx(ZP,{matchId:e})}):v.jsx(ZP,{matchId:e})})})})}),S===di&&n.options.scrollRestoration?v.jsxs(v.Fragment,{children:[v.jsx(FI,{}),v.jsx(HI,{})]}):null]})});function FI(){const t=$n(),e=z.useRef(void 0);return v.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(e.current===void 0||e.current.href!==t.latestLocation.href)&&(t.emit({type:"onRendered",...la(t.state)}),e.current=t.latestLocation)}},t.latestLocation.state.__TSR_key)}const ZP=z.memo(function({matchId:e}){const n=$n(),{match:i,key:r,routeId:s}=En({select:c=>{const h=c.matches.find(x=>x.id===e),d=h.routeId,g=(n.routesById[d].options.remountDeps??n.options.defaultRemountDeps)?.({routeId:d,loaderDeps:h.loaderDeps,params:h._strictParams,search:h._strictSearch});return{key:g?JSON.stringify(g):void 0,routeId:d,match:{id:h.id,status:h.status,error:h.error,_forcePending:h._forcePending,_displayPending:h._displayPending}}},structuralSharing:!0}),o=n.routesById[s],l=z.useMemo(()=>{const c=o.options.component??n.options.defaultComponent;return c?v.jsx(c,{},r):v.jsx(U2,{})},[r,o.options.component,n.options.defaultComponent]);if(i._displayPending)throw n.getMatch(i.id)?._nonReactive.displayPendingPromise;if(i._forcePending)throw n.getMatch(i.id)?._nonReactive.minPendingPromise;if(i.status==="pending"){const c=o.options.pendingMinMs??n.options.defaultPendingMinMs;if(c){const h=n.getMatch(i.id);if(h&&!h._nonReactive.minPendingPromise&&!n.isServer){const d=Xl();h._nonReactive.minPendingPromise=d,setTimeout(()=>{d.resolve(),h._nonReactive.minPendingPromise=void 0},c)}}throw n.getMatch(i.id)?._nonReactive.loadPromise}if(i.status==="notFound")return fs(zi(i.error)),Z2(n,o,i.error);if(i.status==="redirected")throw fs(Fi(i.error)),n.getMatch(i.id)?._nonReactive.loadPromise;if(i.status==="error"){if(n.isServer){const c=(o.options.errorComponent??n.options.defaultErrorComponent)||$m;return v.jsx(c,{error:i.error,reset:void 0,info:{componentStack:""}})}throw i.error}return l}),U2=z.memo(function(){const e=$n(),n=z.useContext(Mm),i=En({select:h=>h.matches.find(d=>d.id===n)?.routeId}),r=e.routesById[i],s=En({select:h=>{const p=h.matches.find(g=>g.id===n);return fs(p),p.globalNotFound}}),o=En({select:h=>{const d=h.matches,p=d.findIndex(g=>g.id===n);return d[p+1]?.id}}),l=e.options.defaultPendingComponent?v.jsx(e.options.defaultPendingComponent,{}):null;if(s)return Z2(e,r,void 0);if(!o)return null;const c=v.jsx(q2,{matchId:o});return i===di?v.jsx(z.Suspense,{fallback:l,children:c}):c});function KI(){const t=$n(),n=t.routesById[di].options.pendingComponent??t.options.defaultPendingComponent,i=n?v.jsx(n,{}):null,r=t.isServer||typeof document<"u"&&t.ssr?bl:z.Suspense,s=v.jsxs(r,{fallback:i,children:[!t.isServer&&v.jsx(UI,{}),v.jsx(JI,{})]});return t.options.InnerWrap?v.jsx(t.options.InnerWrap,{children:s}):s}function JI(){const t=$n(),e=En({select:r=>r.matches[0]?.id}),n=En({select:r=>r.loadedAt}),i=e?v.jsx(q2,{matchId:e}):null;return v.jsx(Mm.Provider,{value:e,children:t.options.disableGlobalCatchBoundary?i:v.jsx(Ov,{getResetKey:()=>n,errorComponent:$m,onCatch:r=>{r.message||r.toString()},children:i})})}const e4=t=>new t4(t);class t4 extends fI{constructor(e){super(e)}}typeof globalThis<"u"?(globalThis.createFileRoute=IP,globalThis.createLazyFileRoute=BP):typeof window<"u"&&(window.createFileRoute=IP,window.createLazyFileRoute=BP);function n4({router:t,children:e,...n}){Object.keys(n).length>0&&t.update({...t.options,...n,context:{...t.options.context,...n.context}});const i=V2(),r=v.jsx(i.Provider,{value:t,children:e});return t.options.Wrap?v.jsx(t.options.Wrap,{children:r}):r}function i4({router:t,...e}){return v.jsx(n4,{router:t,...e,children:v.jsx(KI,{})})}let Ks=null;typeof window<"u"&&window.__OPENSPEC_STATIC_MODE__===!0&&(Ks=!0,console.log("[static-mode] Detected static export mode (via flag)"));async function r4(){if(Ks!==null)return Ks;try{const e=`${jh()}data.json`.replace("//","/");Ks=(await fetch(e,{method:"HEAD"})).ok}catch{Ks=!1}return Ks}function An(){return Ks===!0}function s4(t){Ks=t}function jh(){return typeof window<"u"&&window.__OPENSPEC_BASE_PATH__||"./"}function o4(){return typeof window<"u"&&window.__INITIAL_DATA__?window.__INITIAL_DATA__:null}function a4(t){const e=new MutationObserver(n=>{for(const i of n)i.attributeName==="class"&&t()});return e.observe(document.documentElement,{attributes:!0}),()=>e.disconnect()}function l4(){return document.documentElement.classList.contains("dark")}function c4(){return!1}function Y2(){return z.useSyncExternalStore(a4,l4,c4)}const u4=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),G2=(...t)=>t.filter((e,n,i)=>!!e&&e.trim()!==""&&i.indexOf(e)===n).join(" ").trim();var h4={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const f4=z.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:r="",children:s,iconNode:o,...l},c)=>z.createElement("svg",{ref:c,...h4,width:e,height:e,stroke:t,strokeWidth:i?Number(n)*24/Number(e):n,className:G2("lucide",r),...l},[...o.map(([h,d])=>z.createElement(h,d)),...Array.isArray(s)?s:[s]]));const Ie=(t,e)=>{const n=z.forwardRef(({className:i,...r},s)=>z.createElement(f4,{ref:s,iconNode:e,className:G2(`lucide-${u4(t)}`,i),...r}));return n.displayName=`${t}`,n};const d4=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],ls=Ie("Archive",d4);const p4=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],yv=Ie("ArrowLeft",p4);const m4=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],qP=Ie("ArrowUp",m4);const g4=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],O4=Ie("Bot",g4);const y4=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],nh=Ie("Check",y4);const b4=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],x4=Ie("ChevronDown",b4);const v4=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],zm=Ie("ChevronRight",v4);const S4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],Sb=Ie("CircleAlert",S4);const _4=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],ao=Ie("CircleCheckBig",_4);const k4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],_b=Ie("CircleX",k4);const w4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],P4=Ie("Circle",w4);const T4=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],W2=Ie("Copy",T4);const C4=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]],UP=Ie("Download",C4);const Q4=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Oi=Ie("FileText",Q4);const E4=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]],bv=Ie("File",E4);const A4=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],H2=Ie("FolderOpen",A4);const R4=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],L4=Ie("FolderPlus",R4);const $4=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],F2=Ie("FolderTree",$4);const M4=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Cl=Ie("Folder",M4);const D4=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],ih=Ie("GitBranch",D4);const j4=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],N4=Ie("Info",j4);const z4=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],kb=Ie("LayoutDashboard",z4);const I4=[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],K2=Ie("ListChecks",I4);const X4=[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]],YP=Ie("List",X4);const V4=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],lo=Ie("LoaderCircle",V4);const B4=[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]],Z4=Ie("Menu",B4);const q4=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],U4=Ie("Monitor",q4);const Y4=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],G4=Ie("Moon",Y4);const W4=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],H4=Ie("Pen",W4);const F4=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],K4=Ie("RefreshCw",F4);const J4=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],eX=Ie("Save",J4);const tX=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],J2=Ie("Settings",tX);const nX=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],iX=Ie("Sparkles",nX);const rX=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],sX=Ie("Sun",rX);const oX=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],GP=Ie("Terminal",oX);const aX=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],lX=Ie("TriangleAlert",aX);const cX=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],eA=Ie("WifiOff",cX);const uX=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],tA=Ie("Wifi",uX);const hX=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],nA=Ie("X",hX),xv=[{to:"/",icon:kb,label:"Dashboard"},{to:"/project",icon:Cl,label:"Project"},{to:"/specs",icon:Oi,label:"Specs"},{to:"/changes",icon:ih,label:"Changes"},{to:"/archive",icon:ls,label:"Archive"}],Ql={to:"/settings",icon:J2,label:"Settings"};function fX(){const t=Y2(),e=jh();return v.jsxs("nav",{className:"desktop-sidebar border-border bg-muted/30 flex w-64 shrink-0 flex-col border-r p-4",children:[v.jsx("div",{className:"mb-6",children:v.jsx("img",{src:t?`${e}openspec_pixel_dark.svg`:`${e}openspec_pixel_light.svg`,alt:"OpenSpec",className:"h-6"})}),v.jsx("ul",{className:"flex-1 space-y-1",children:xv.map(n=>v.jsx("li",{children:v.jsxs(Rt,{to:n.to,className:"hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground flex items-center gap-2 rounded-md px-3 py-2",children:[v.jsx(n.icon,{className:"h-4 w-4 shrink-0"}),v.jsx("span",{className:"font-nav text-base tracking-[0.04em]",children:n.label})]})},n.to))}),v.jsx("div",{className:"border-border border-t pt-4",children:v.jsxs(Rt,{to:Ql.to,className:"hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground flex items-center gap-2 rounded-md px-3 py-2",children:[v.jsx(Ql.icon,{className:"h-4 w-4 shrink-0"}),v.jsx("span",{className:"font-nav text-base tracking-[0.04em]",children:Ql.label})]})})]})}function iA(){return typeof window<"u"&&typeof window.location<"u"}function El(){if(!iA())return"";const e=new URLSearchParams(window.location.search).get("api");return e?e.replace(/\/$/,""):""}function dX(){if(!iA())return"";const t=El();if(t){const n=new URL(t);return`${n.protocol==="https:"?"wss:":"ws:"}//${n.host}/trpc`}return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/trpc`}function WP(){const t=El();return t?`${t}/trpc`:"/trpc"}function pX(){const t=El();return t?`${t}/api/health`:"/api/health"}var mX=Object.create,rA=Object.defineProperty,gX=Object.getOwnPropertyDescriptor,sA=Object.getOwnPropertyNames,OX=Object.getPrototypeOf,yX=Object.prototype.hasOwnProperty,Er=(t,e)=>function(){return e||(0,t[sA(t)[0]])((e={exports:{}}).exports,e),e.exports},bX=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(var r=sA(e),s=0,o=r.length,l;s<o;s++)l=r[s],!yX.call(t,l)&&l!==n&&rA(t,l,{get:(c=>e[c]).bind(null,l),enumerable:!(i=gX(e,l))||i.enumerable});return t},Lt=(t,e,n)=>(n=t!=null?mX(OX(t)):{},bX(rA(n,"default",{value:t,enumerable:!0}),t)),oA=Er({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(t,e){function n(i){"@babel/helpers - typeof";return e.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,n(i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}}),xX=Er({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(t,e){var n=oA().default;function i(r,s){if(n(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var l=o.call(r,s||"default");if(n(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(r)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}}),vX=Er({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(t,e){var n=oA().default,i=xX();function r(s){var o=i(s,"string");return n(o)=="symbol"?o:o+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}}),Sa=Er({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(t,e){var n=vX();function i(r,s,o){return(s=n(s))in r?Object.defineProperty(r,s,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[s]=o,r}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}}),nr=Er({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(t,e){var n=Sa();function i(s,o){var l=Object.keys(s);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);o&&(c=c.filter(function(h){return Object.getOwnPropertyDescriptor(s,h).enumerable})),l.push.apply(l,c)}return l}function r(s){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{};o%2?i(Object(l),!0).forEach(function(c){n(s,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(l)):i(Object(l)).forEach(function(c){Object.defineProperty(s,c,Object.getOwnPropertyDescriptor(l,c))})}return s}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}});function _a(t){const e={subscribe(n){let i=null,r=!1,s=!1,o=!1;function l(){if(i===null){o=!0;return}s||(s=!0,typeof i=="function"?i():i&&i.unsubscribe())}return i=t({next(c){var h;r||(h=n.next)===null||h===void 0||h.call(n,c)},error(c){var h;r||(r=!0,(h=n.error)===null||h===void 0||h.call(n,c),l())},complete(){var c;r||(r=!0,(c=n.complete)===null||c===void 0||c.call(n),l())}}),o&&l(),{unsubscribe:l}},pipe(...n){return n.reduce(SX,e)}};return e}function SX(t,e){return e(t)}function _X(t){const e=new AbortController;return new Promise((i,r)=>{let s=!1;function o(){s||(s=!0,l.unsubscribe())}e.signal.addEventListener("abort",()=>{r(e.signal.reason)});const l=t.subscribe({next(c){s=!0,i(c),o()},error(c){r(c)},complete(){e.abort(),o()}})})}function kX(t){return e=>{let n=0,i=null;const r=[];function s(){i||(i=e.subscribe({next(l){for(const h of r){var c;(c=h.next)===null||c===void 0||c.call(h,l)}},error(l){for(const h of r){var c;(c=h.error)===null||c===void 0||c.call(h,l)}},complete(){for(const c of r){var l;(l=c.complete)===null||l===void 0||l.call(c)}}}))}function o(){if(n===0&&i){const l=i;i=null,l.unsubscribe()}}return _a(l=>(n++,r.push(l),s(),{unsubscribe(){n--,o();const c=r.findIndex(h=>h===l);c>-1&&r.splice(c,1)}}))}}function aA(t){let e=t;const n=[],i=o=>{e!==void 0&&o.next(e),n.push(o)},r=o=>{n.splice(n.indexOf(o),1)},s=_a(o=>(i(o),()=>{r(o)}));return s.next=o=>{if(e!==o){e=o;for(const l of n)l.next(o)}},s.get=()=>e,s}function lA(t){return _a(e=>{function n(r=0,s=t.op){const o=t.links[r];if(!o)throw new Error("No more links to execute - did you forget to add an ending link?");return o({op:s,next(c){return n(r+1,c)}})}return n().subscribe(e)})}function HP(t){return Array.isArray(t)?t:[t]}function wX(t){return e=>{const n=HP(t.true).map(r=>r(e)),i=HP(t.false).map(r=>r(e));return r=>_a(s=>{const o=t.condition(r.op)?n:i;return lA({op:r.op,links:o}).subscribe(s)})}}function ho(t){return!!t&&!Array.isArray(t)&&typeof t=="object"}function PX(t){return typeof t=="function"}const TX=typeof Symbol=="function"&&!!Symbol.asyncIterator;function CX(t){return TX&&ho(t)&&Symbol.asyncIterator in t}const wb=t=>t();function FP(t=0){return new Promise(e=>setTimeout(e,t))}var QX=Object.create,cA=Object.defineProperty,EX=Object.getOwnPropertyDescriptor,uA=Object.getOwnPropertyNames,AX=Object.getPrototypeOf,RX=Object.prototype.hasOwnProperty,Nh=(t,e)=>function(){return e||(0,t[uA(t)[0]])((e={exports:{}}).exports,e),e.exports},LX=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(var r=uA(e),s=0,o=r.length,l;s<o;s++)l=r[s],!RX.call(t,l)&&l!==n&&cA(t,l,{get:(c=>e[c]).bind(null,l),enumerable:!(i=EX(e,l))||i.enumerable});return t},Im=(t,e,n)=>(n=t!=null?QX(AX(t)):{},LX(cA(n,"default",{value:t,enumerable:!0}),t));const hA=()=>{},KP=t=>{Object.freeze&&Object.freeze(t)};function fA(t,e,n){var i;const r=e.join(".");return(i=n[r])!==null&&i!==void 0||(n[r]=new Proxy(hA,{get(s,o){if(!(typeof o!="string"||o==="then"))return fA(t,[...e,o],n)},apply(s,o,l){const c=e[e.length-1];let h={args:l,path:e};return c==="call"?h={args:l.length>=2?[l[1]]:[],path:e.slice(0,-1)}:c==="apply"&&(h={args:l.length>=2?l[1]:[],path:e.slice(0,-1)}),KP(h.args),KP(h.path),t(h)}})),n[r]}const dA=t=>fA(t,[],Object.create(null)),$X=t=>new Proxy(hA,{get(e,n){if(n!=="then")return t(n)}});var pA=Nh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(t,e){function n(i){"@babel/helpers - typeof";return e.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,n(i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}}),MX=Nh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(t,e){var n=pA().default;function i(r,s){if(n(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var l=o.call(r,s||"default");if(n(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(r)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}}),DX=Nh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(t,e){var n=pA().default,i=MX();function r(s){var o=i(s,"string");return n(o)=="symbol"?o:o+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}}),mA=Nh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(t,e){var n=DX();function i(r,s,o){return(s=n(s))in r?Object.defineProperty(r,s,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[s]=o,r}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}}),vv=Nh({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(t,e){var n=mA();function i(s,o){var l=Object.keys(s);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);o&&(c=c.filter(function(h){return Object.getOwnPropertyDescriptor(s,h).enumerable})),l.push.apply(l,c)}return l}function r(s){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{};o%2?i(Object(l),!0).forEach(function(c){n(s,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(l)):i(Object(l)).forEach(function(c){Object.defineProperty(s,c,Object.getOwnPropertyDescriptor(l,c))})}return s}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}});Im(vv());var JP=Im(mA()),jX=class extends Error{};function NX(t){if(t instanceof Error)return t;const e=typeof t;if(!(e==="undefined"||e==="function"||t===null)){if(e!=="object")return new Error(String(t));if(ho(t))return Object.assign(new jX,t)}}var eT=class extends Error{constructor(t){var e,n,i;const r=NX(t.cause),s=(e=(n=t.message)!==null&&n!==void 0?n:r?.message)!==null&&e!==void 0?e:t.code;super(s,{cause:r}),(0,JP.default)(this,"cause",void 0),(0,JP.default)(this,"code",void 0),this.code=t.code,this.name="TRPCError",(i=this.cause)!==null&&i!==void 0||(this.cause=r)}},vd=Im(vv());function zX(t,e){if("error"in t){const i=e.deserialize(t.error);return{ok:!1,error:(0,vd.default)((0,vd.default)({},t),{},{error:i})}}return{ok:!0,result:(0,vd.default)((0,vd.default)({},t.result),(!t.result.type||t.result.type==="data")&&{type:"data",data:e.deserialize(t.result.data)})}}var H0=class extends Error{constructor(){super("Unable to transform response from server")}};function gA(t,e){let n;try{n=zX(t,e)}catch{throw new H0}if(!n.ok&&(!ho(n.error.error)||typeof n.error.error.code!="number"))throw new H0;if(n.ok&&!ho(n.result))throw new H0;return n}Im(vv());function IX(t){return typeof t=="function"}async function XX(t,e){const{_def:n}=t;let i=n.procedures[e];for(;!i;){const r=Object.keys(n.lazy).find(o=>e.startsWith(o));if(!r)return null;await n.lazy[r].load(),i=n.procedures[e]}return i}async function VX(t){const{type:e,path:n}=t,i=await XX(t.router,n);if(!i||!IX(i)||i._def.type!==e&&!t.allowMethodOverride)throw new eT({code:"NOT_FOUND",message:`No "${e}"-procedure on path "${n}"`});if(i._def.type!==e&&t.allowMethodOverride&&i._def.type==="subscription")throw new eT({code:"METHOD_NOT_SUPPORTED",message:"Method override is not supported for subscriptions"});return i(t)}var Sd=Lt(Sa()),hl=Lt(nr());function BX(t){return t instanceof ss}function ZX(t){return ho(t)&&ho(t.error)&&typeof t.error.code=="number"&&typeof t.error.message=="string"}function qX(t,e){return typeof t=="string"?t:ho(t)&&typeof t.message=="string"?t.message:e}var ss=class hp extends Error{constructor(e,n){var i,r;const s=n?.cause;super(e,{cause:s}),(0,Sd.default)(this,"cause",void 0),(0,Sd.default)(this,"shape",void 0),(0,Sd.default)(this,"data",void 0),(0,Sd.default)(this,"meta",void 0),this.meta=n?.meta,this.cause=s,this.shape=n==null||(i=n.result)===null||i===void 0?void 0:i.error,this.data=n==null||(r=n.result)===null||r===void 0?void 0:r.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,hp.prototype)}static from(e,n={}){const i=e;return BX(i)?(n.meta&&(i.meta=(0,hl.default)((0,hl.default)({},i.meta),n.meta)),i):ZX(i)?new hp(i.error.message,(0,hl.default)((0,hl.default)({},n),{},{result:i})):new hp(qX(i,"Unknown error"),(0,hl.default)((0,hl.default)({},n),{},{cause:i}))}};function OA(t){const e=t;return e?"input"in e?e:{input:e,output:e}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const tT=t=>typeof t=="function";function UX(t){if(t)return t;if(typeof window<"u"&&tT(window.fetch))return window.fetch;if(typeof globalThis<"u"&&tT(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Du=Lt(nr());function YX(t){return{url:t.url.toString(),fetch:t.fetch,transformer:OA(t.transformer),methodOverride:t.methodOverride}}function GX(t){const e={};for(let n=0;n<t.length;n++){const i=t[n];e[n]=i}return e}const WX={query:"GET",mutation:"POST",subscription:"PATCH"};function yA(t){return"input"in t?t.transformer.input.serialize(t.input):GX(t.inputs.map(e=>t.transformer.input.serialize(e)))}const bA=t=>{const e=t.url.split("?");let i=e[0].replace(/\/$/,"")+"/"+t.path;const r=[];if(e[1]&&r.push(e[1]),"inputs"in t&&r.push("batch=1"),t.type==="query"||t.type==="subscription"){const s=yA(t);s!==void 0&&t.methodOverride!=="POST"&&r.push(`input=${encodeURIComponent(JSON.stringify(s))}`)}return r.length&&(i+="?"+r.join("&")),i},HX=t=>{if(t.type==="query"&&t.methodOverride!=="POST")return;const e=yA(t);return e!==void 0?JSON.stringify(e):void 0},FX=t=>tV((0,Du.default)((0,Du.default)({},t),{},{contentTypeHeader:"application/json",getUrl:bA,getBody:HX}));var KX=class extends Error{constructor(){const t="AbortError";super(t),this.name=t,this.message=t}};const JX=t=>{var e;if(t?.aborted)throw(e=t.throwIfAborted)===null||e===void 0||e.call(t),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new KX};async function eV(t){var e;JX(t.signal);const n=t.getUrl(t),i=t.getBody(t),r=(e=t.methodOverride)!==null&&e!==void 0?e:WX[t.type],s=await(async()=>{const l=await t.headers();return Symbol.iterator in l?Object.fromEntries(l):l})(),o=(0,Du.default)((0,Du.default)((0,Du.default)({},t.contentTypeHeader&&r!=="GET"?{"content-type":t.contentTypeHeader}:{}),t.trpcAcceptHeader?{"trpc-accept":t.trpcAcceptHeader}:void 0),s);return UX(t.fetch)(n,{method:r,signal:t.signal,body:i,headers:o})}async function tV(t){const e={},n=await eV(t);e.response=n;const i=await n.json();return e.responseJSON=i,{json:i,meta:e}}Lt(nr());const nT=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function iT(t){let e=null,n=null;const i=()=>{clearTimeout(n),n=null,e=null};function r(l){const c=[[]];let h=0;for(;;){const g=l[h];if(!g)break;const O=c[c.length-1];if(g.aborted){var d;(d=g.reject)===null||d===void 0||d.call(g,new Error("Aborted")),h++;continue}if(t.validate(O.concat(g).map(S=>S.key))){O.push(g),h++;continue}if(O.length===0){var p;(p=g.reject)===null||p===void 0||p.call(g,new Error("Input is too big for a single dispatch")),h++;continue}c.push([])}return c}function s(){const l=r(e);i();for(const c of l){if(!c.length)continue;const h={items:c};for(const p of c)p.batch=h;t.fetch(h.items.map(p=>p.key)).then(async p=>{await Promise.all(p.map(async(O,x)=>{const S=h.items[x];try{var k;const T=await Promise.resolve(O);(k=S.resolve)===null||k===void 0||k.call(S,T)}catch(T){var _;(_=S.reject)===null||_===void 0||_.call(S,T)}S.batch=null,S.reject=null,S.resolve=null}));for(const O of h.items){var g;(g=O.reject)===null||g===void 0||g.call(O,new Error("Missing result")),O.batch=null}}).catch(p=>{for(const O of h.items){var g;(g=O.reject)===null||g===void 0||g.call(O,p),O.batch=null}})}}function o(l){var c;const h={aborted:!1,key:l,batch:null,resolve:nT,reject:nT},d=new Promise((p,g)=>{var O;h.reject=g,h.resolve=p,(O=e)!==null&&O!==void 0||(e=[]),e.push(h)});return(c=n)!==null&&c!==void 0||(n=setTimeout(s)),d}return{load:o}}function nV(...t){const e=new AbortController,n=t.length;let i=0;const r=()=>{++i===n&&e.abort()};for(const s of t)s?.aborted?r():s?.addEventListener("abort",r,{once:!0});return e.signal}var _d=Lt(nr());function rT(t){var e,n;const i=YX(t),r=(e=t.maxURLLength)!==null&&e!==void 0?e:1/0,s=(n=t.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const o=d=>({validate(p){if(r===1/0&&s===1/0)return!0;if(p.length>s)return!1;const g=p.map(S=>S.path).join(","),O=p.map(S=>S.input);return bA((0,_d.default)((0,_d.default)({},i),{},{type:d,path:g,inputs:O,signal:null})).length<=r},async fetch(p){const g=p.map(T=>T.path).join(","),O=p.map(T=>T.input),x=nV(...p.map(T=>T.signal)),S=await FX((0,_d.default)((0,_d.default)({},i),{},{path:g,inputs:O,type:d,headers(){return t.headers?typeof t.headers=="function"?t.headers({opList:p}):t.headers:{}},signal:x}));return(Array.isArray(S.json)?S.json:p.map(()=>S.json)).map(T=>({meta:S.meta,json:T}))}}),l=iT(o("query")),c=iT(o("mutation")),h={query:l,mutation:c};return({op:d})=>_a(p=>{if(d.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const O=h[d.type].load(d);let x;return O.then(S=>{x=S;const k=gA(S.json,i.transformer.output);if(!k.ok){p.error(ss.from(k.error,{meta:S.meta}));return}p.next({context:S.meta,result:k.result}),p.complete()}).catch(S=>{p.error(ss.from(S,{meta:x?.meta}))}),()=>{}})}}Lt(nr());const iV={enabled:!1,closeMs:0},rV={enabled:!1,pongTimeoutMs:1e3,intervalMs:5e3},sV=t=>t===0?0:Math.min(1e3*2**t,3e4),xA=(t,...e)=>typeof t=="function"?t(...e):t;var oV=Lt(Sa()),fl=class vA extends Error{constructor(e){super(e.message,{cause:e.cause}),this.name="TRPCWebSocketClosedError",Object.setPrototypeOf(this,vA.prototype)}},aV=class{constructor(t,e){this.onTimeout=t,this.timeoutMs=e,(0,oV.default)(this,"timeout",void 0)}reset(){this.timeout&&(clearTimeout(this.timeout),this.timeout=setTimeout(this.onTimeout,this.timeoutMs))}start(){clearTimeout(this.timeout),this.timeout=setTimeout(this.onTimeout,this.timeoutMs)}stop(){clearTimeout(this.timeout),this.timeout=void 0}};function SA(){let t,e;return{promise:new Promise((i,r)=>{t=i,e=r}),resolve:t,reject:e}}async function lV(t){const e=await xA(t.url);if(!t.connectionParams)return e;const i=`${e.includes("?")?"&":"?"}connectionParams=1`;return e+i}async function cV(t){const e={method:"connectionParams",data:await xA(t)};return JSON.stringify(e)}var sT=Lt(Sa()),uV=class{constructor(){(0,sT.default)(this,"outgoingRequests",new Array),(0,sT.default)(this,"pendingRequests",{})}register(t,e){const{promise:n,resolve:i}=SA();return this.outgoingRequests.push({id:String(t.id),message:t,end:n,callbacks:{next:e.next,complete:()=>{e.complete(),i()},error:r=>{e.error(r),i()}}}),()=>{this.delete(t.id),e.complete(),i()}}delete(t){t!==null&&(this.outgoingRequests=this.outgoingRequests.filter(({id:e})=>e!==String(t)),delete this.pendingRequests[String(t)])}flush(){const t=this.outgoingRequests;this.outgoingRequests=[];for(const e of t)this.pendingRequests[e.id]=e;return t}getPendingRequests(){return Object.values(this.pendingRequests)}getPendingRequest(t){return t===null?null:this.pendingRequests[String(t)]}getOutgoingRequests(){return this.outgoingRequests}getRequests(){return[...this.getOutgoingRequests().map(t=>({state:"outgoing",message:t.message,end:t.end,callbacks:t.callbacks})),...this.getPendingRequests().map(t=>({state:"pending",message:t.message,end:t.end,callbacks:t.callbacks}))]}hasPendingRequests(){return this.getPendingRequests().length>0}hasPendingSubscriptions(){return this.getPendingRequests().some(t=>t.message.method==="subscription")}hasOutgoingRequests(){return this.outgoingRequests.length>0}},Uo=Lt(Sa());function hV(t){const{promise:e,resolve:n,reject:i}=SA();return t.addEventListener("open",()=>{t.removeEventListener("error",i),n()}),t.addEventListener("error",i),e}function fV(t,{intervalMs:e,pongTimeoutMs:n}){let i,r;function s(){i=setTimeout(()=>{t.send("PING"),r=setTimeout(()=>{t.close()},n)},e)}function o(){clearTimeout(i),s()}function l(){clearTimeout(r),o()}t.addEventListener("open",s),t.addEventListener("message",({data:c})=>{clearTimeout(i),s(),c==="PONG"&&l()}),t.addEventListener("close",()=>{clearTimeout(i),clearTimeout(r)})}var _A=class Pb{constructor(e){var n;if((0,Uo.default)(this,"id",++Pb.connectCount),(0,Uo.default)(this,"WebSocketPonyfill",void 0),(0,Uo.default)(this,"urlOptions",void 0),(0,Uo.default)(this,"keepAliveOpts",void 0),(0,Uo.default)(this,"wsObservable",aA(null)),(0,Uo.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=e.WebSocketPonyfill)!==null&&n!==void 0?n:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=e.urlOptions,this.keepAliveOpts=e.keepAlive}get ws(){return this.wsObservable.get()}set ws(e){this.wsObservable.next(e)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var e=this;if(e.openPromise)return e.openPromise;e.id=++Pb.connectCount;const n=lV(e.urlOptions).then(i=>new e.WebSocketPonyfill(i));e.openPromise=n.then(async i=>{e.ws=i,i.addEventListener("message",function({data:r}){r==="PING"&&this.send("PONG")}),e.keepAliveOpts.enabled&&fV(i,e.keepAliveOpts),i.addEventListener("close",()=>{e.ws===i&&(e.ws=null)}),await hV(i),e.urlOptions.connectionParams&&i.send(await cV(e.urlOptions.connectionParams))});try{await e.openPromise}finally{e.openPromise=null}}async close(){var e=this;try{await e.openPromise}finally{var n;(n=e.ws)===null||n===void 0||n.close()}}};(0,Uo.default)(_A,"connectCount",0);function dV(t){return t.isOpen()?{id:t.id,state:"open",ws:t.ws}:t.isClosed()?{id:t.id,state:"closed",ws:t.ws}:t.ws?{id:t.id,state:"connecting",ws:t.ws}:null}var ts=Lt(Sa()),dl=Lt(nr()),pV=class{constructor(t){var e;(0,ts.default)(this,"connectionState",void 0),(0,ts.default)(this,"allowReconnect",!1),(0,ts.default)(this,"requestManager",new uV),(0,ts.default)(this,"activeConnection",void 0),(0,ts.default)(this,"reconnectRetryDelay",void 0),(0,ts.default)(this,"inactivityTimeout",void 0),(0,ts.default)(this,"callbacks",void 0),(0,ts.default)(this,"lazyMode",void 0),(0,ts.default)(this,"reconnecting",null),this.callbacks={onOpen:t.onOpen,onClose:t.onClose,onError:t.onError};const n=(0,dl.default)((0,dl.default)({},iV),t.lazy);this.inactivityTimeout=new aV(()=>{if(this.requestManager.hasOutgoingRequests()||this.requestManager.hasPendingRequests()){this.inactivityTimeout.reset();return}this.close().catch(()=>null)},n.closeMs),this.activeConnection=new _A({WebSocketPonyfill:t.WebSocket,urlOptions:t,keepAlive:(0,dl.default)((0,dl.default)({},rV),t.keepAlive)}),this.activeConnection.wsObservable.subscribe({next:i=>{i&&this.setupWebSocketListeners(i)}}),this.reconnectRetryDelay=(e=t.retryDelayMs)!==null&&e!==void 0?e:sV,this.lazyMode=n.enabled,this.connectionState=aA({type:"state",state:n.enabled?"idle":"connecting",error:null}),this.lazyMode||this.open().catch(()=>null)}async open(){var t=this;t.allowReconnect=!0,t.connectionState.get().state==="idle"&&t.connectionState.next({type:"state",state:"connecting",error:null});try{await t.activeConnection.open()}catch(e){return t.reconnect(new fl({message:"Initialization error",cause:e})),t.reconnecting}}async close(){var t=this;t.allowReconnect=!1,t.inactivityTimeout.stop();const e=[];for(const n of t.requestManager.getRequests())n.message.method==="subscription"?n.callbacks.complete():n.state==="outgoing"?n.callbacks.error(ss.from(new fl({message:"Closed before connection was established"}))):e.push(n.end);await Promise.all(e).catch(()=>null),await t.activeConnection.close().catch(()=>null),t.connectionState.next({type:"state",state:"idle",error:null})}request({op:{id:t,type:e,path:n,input:i,signal:r},transformer:s,lastEventId:o}){return _a(l=>{const c=this.batchSend({id:t,method:e,params:{input:s.input.serialize(i),path:n,lastEventId:o}},(0,dl.default)((0,dl.default)({},l),{},{next(h){const d=gA(h,s.output);if(!d.ok){l.error(ss.from(d.error));return}l.next({result:d.result})}}));return()=>{c(),e==="subscription"&&this.activeConnection.isOpen()&&this.send({id:t,method:"subscription.stop"}),r?.removeEventListener("abort",c)}})}get connection(){return dV(this.activeConnection)}reconnect(t){var e=this;if(this.connectionState.next({type:"state",state:"connecting",error:ss.from(t)}),this.reconnecting)return;const n=async i=>{try{await FP(e.reconnectRetryDelay(i)),e.allowReconnect&&(await e.activeConnection.close(),await e.activeConnection.open(),e.requestManager.hasPendingRequests()&&e.send(e.requestManager.getPendingRequests().map(({message:r})=>r))),e.reconnecting=null}catch{await n(i+1)}};this.reconnecting=n(0)}setupWebSocketListeners(t){var e=this;const n=i=>{const r=this.requestManager.getPendingRequests();for(const{message:s,callbacks:o}of r)s.method!=="subscription"&&(o.error(ss.from(i??new fl({message:"WebSocket closed",cause:i}))),this.requestManager.delete(s.id))};t.addEventListener("open",()=>{wb(async()=>{var i,r;e.lazyMode&&e.inactivityTimeout.start(),(i=(r=e.callbacks).onOpen)===null||i===void 0||i.call(r),e.connectionState.next({type:"state",state:"pending",error:null})}).catch(i=>{t.close(3e3),n(i)})}),t.addEventListener("message",({data:i})=>{if(this.inactivityTimeout.reset(),typeof i!="string"||["PING","PONG"].includes(i))return;const r=JSON.parse(i);if("method"in r){this.handleIncomingRequest(r);return}this.handleResponseMessage(r)}),t.addEventListener("close",i=>{var r,s;n(i),(r=(s=this.callbacks).onClose)===null||r===void 0||r.call(s,i),(!this.lazyMode||this.requestManager.hasPendingSubscriptions())&&this.reconnect(new fl({message:"WebSocket closed",cause:i}))}),t.addEventListener("error",i=>{var r,s;n(i),(r=(s=this.callbacks).onError)===null||r===void 0||r.call(s,i),this.reconnect(new fl({message:"WebSocket closed",cause:i}))})}handleResponseMessage(t){const e=this.requestManager.getPendingRequest(t.id);if(!e)return;e.callbacks.next(t);let n=!0;"result"in t&&e.message.method==="subscription"&&(t.result.type==="data"&&(e.message.params.lastEventId=t.result.id),t.result.type!=="stopped"&&(n=!1)),n&&(e.callbacks.complete(),this.requestManager.delete(t.id))}handleIncomingRequest(t){t.method==="reconnect"&&this.reconnect(new fl({message:"Server requested reconnect"}))}send(t){if(!this.activeConnection.isOpen())throw new Error("Active connection is not open");const e=t instanceof Array?t:[t];this.activeConnection.ws.send(JSON.stringify(e.length===1?e[0]:e))}batchSend(t,e){var n=this;return this.inactivityTimeout.reset(),wb(async()=>{n.activeConnection.isOpen()||await n.open(),await FP(0),n.requestManager.hasOutgoingRequests()&&n.send(n.requestManager.flush().map(({message:i})=>i))}).catch(i=>{this.requestManager.delete(t.id),e.error(ss.from(i))}),this.requestManager.register(t,e)}};function mV(t){return new pV(t)}function gV(t){const{client:e}=t,n=OA(t.transformer);return()=>({op:i})=>_a(r=>{const s=i.type==="subscription"?e.connectionState.subscribe({next(l){r.next({result:l,context:i.context})}}):null,o=e.request({op:i,transformer:n}).subscribe(r);return()=>{o.unsubscribe(),s?.unsubscribe()}})}var F0=Lt(Sa()),oT=Lt(nr()),kA=class{constructor(t){(0,F0.default)(this,"links",void 0),(0,F0.default)(this,"runtime",void 0),(0,F0.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=t.links.map(e=>e(this.runtime))}$request(t){var e;return lA({links:this.links,op:(0,oT.default)((0,oT.default)({},t),{},{context:(e=t.context)!==null&&e!==void 0?e:{},id:++this.requestId})}).pipe(kX())}async requestAsPromise(t){var e=this;try{const n=e.$request(t);return(await _X(n)).result.data}catch(n){throw ss.from(n)}}query(t,e,n){return this.requestAsPromise({type:"query",path:t,input:e,context:n?.context,signal:n?.signal})}mutation(t,e,n){return this.requestAsPromise({type:"mutation",path:t,input:e,context:n?.context,signal:n?.signal})}subscription(t,e,n){return this.$request({type:"subscription",path:t,input:e,context:n.context,signal:n.signal}).subscribe({next(r){switch(r.result.type){case"state":{var s;(s=n.onConnectionStateChange)===null||s===void 0||s.call(n,r.result);break}case"started":{var o;(o=n.onStarted)===null||o===void 0||o.call(n,{context:r.context});break}case"stopped":{var l;(l=n.onStopped)===null||l===void 0||l.call(n);break}case"data":case void 0:{var c;(c=n.onData)===null||c===void 0||c.call(n,r.result.data);break}}},error(r){var s;(s=n.onError)===null||s===void 0||s.call(n,r)},complete(){var r;(r=n.onComplete)===null||r===void 0||r.call(n)}})}};const wA=Symbol.for("trpc_untypedClient"),OV={query:"query",mutate:"mutation",subscribe:"subscription"},yV=t=>OV[t];function bV(t){const e=dA(({path:n,args:i})=>{const r=[...n],s=yV(r.pop()),o=r.join(".");return t[s](o,...i)});return $X(n=>n===wA?t:e[n])}function xV(t){const e=new kA(t);return bV(e)}function vV(t){return t[wA]}Lt(nr());Lt(nr());var SV=Er({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(t,e){function n(r){var s,o,l,c=2;for(typeof Symbol<"u"&&(o=Symbol.asyncIterator,l=Symbol.iterator);c--;){if(o&&(s=r[o])!=null)return s.call(r);if(l&&(s=r[l])!=null)return new i(s.call(r));o="@@asyncIterator",l="@@iterator"}throw new TypeError("Object is not async iterable")}function i(r){function s(o){if(Object(o)!==o)return Promise.reject(new TypeError(o+" is not an object."));var l=o.done;return Promise.resolve(o.value).then(function(c){return{value:c,done:l}})}return i=function(l){this.s=l,this.n=l.next},i.prototype={s:null,n:null,next:function(){return s(this.n.apply(this.s,arguments))},return:function(l){var c=this.s.return;return c===void 0?Promise.resolve({value:l,done:!0}):s(c.apply(this.s,arguments))},throw:function(l){var c=this.s.return;return c===void 0?Promise.reject(l):s(c.apply(this.s,arguments))}},new i(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}});Lt(SV());Lt(nr());var _V=Er({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(t,e){function n(){var i=typeof SuppressedError=="function"?SuppressedError:function(l,c){var h=Error();return h.name="SuppressedError",h.error=l,h.suppressed=c,h},r={},s=[];function o(l,c){if(c!=null){if(Object(c)!==c)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(l)var h=c[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(h===void 0&&(h=c[Symbol.dispose||Symbol.for("Symbol.dispose")],l))var d=h;if(typeof h!="function")throw new TypeError("Object is not disposable.");d&&(h=function(){try{d.call(c)}catch(g){return Promise.reject(g)}}),s.push({v:c,d:h,a:l})}else l&&s.push({d:c,a:l});return c}return{e:r,u:o.bind(null,!1),a:o.bind(null,!0),d:function(){var c,h=this.e,d=0;function p(){for(;c=s.pop();)try{if(!c.a&&d===1)return d=0,s.push(c),Promise.resolve().then(p);if(c.d){var O=c.d.call(c.v);if(c.a)return d|=2,Promise.resolve(O).then(p,g)}else d|=1}catch(x){return g(x)}if(d===1)return h!==r?Promise.reject(h):Promise.resolve();if(h!==r)throw h}function g(O){return h=h!==r?new i(O,h):O,p()}return p()}}}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}}),PA=Er({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(t,e){function n(i,r){this.v=i,this.k=r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}}),kV=Er({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(t,e){var n=PA();function i(r){return new n(r,0)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}}),wV=Er({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(t,e){var n=PA();function i(s){return function(){return new r(s.apply(this,arguments))}}function r(s){var o,l;function c(d,p){try{var g=s[d](p),O=g.value,x=O instanceof n;Promise.resolve(x?O.v:O).then(function(S){if(x){var k=d==="return"?"return":"next";if(!O.k||S.done)return c(k,S);S=s[k](S).value}h(g.done?"return":"normal",S)},function(S){c("throw",S)})}catch(S){h("throw",S)}}function h(d,p){switch(d){case"return":o.resolve({value:p,done:!0});break;case"throw":o.reject(p);break;default:o.resolve({value:p,done:!1})}(o=o.next)?c(o.key,o.arg):l=null}this._invoke=function(d,p){return new Promise(function(g,O){var x={key:d,arg:p,resolve:g,reject:O,next:null};l?l=l.next=x:(o=l=x,c(d,p))})},typeof s.return!="function"&&(this.return=void 0)}r.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},r.prototype.next=function(s){return this._invoke("next",s)},r.prototype.throw=function(s){return this._invoke("throw",s)},r.prototype.return=function(s){return this._invoke("return",s)},e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}});Lt(_V());Lt(kV());Lt(wV());Lt(nr());var PV=Object.create,TA=Object.defineProperty,TV=Object.getOwnPropertyDescriptor,CA=Object.getOwnPropertyNames,CV=Object.getPrototypeOf,QV=Object.prototype.hasOwnProperty,yo=(t,e)=>function(){return e||(0,t[CA(t)[0]])((e={exports:{}}).exports,e),e.exports},EV=(t,e,n,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(var r=CA(e),s=0,o=r.length,l;s<o;s++)l=r[s],!QV.call(t,l)&&l!==n&&TA(t,l,{get:(c=>e[c]).bind(null,l),enumerable:!(i=TV(e,l))||i.enumerable});return t},bo=(t,e,n)=>(n=t!=null?PV(CV(t)):{},EV(e||!t||!t.__esModule?TA(n,"default",{value:t,enumerable:!0}):n,t)),QA=yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(t,e){function n(i){"@babel/helpers - typeof";return e.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},e.exports.__esModule=!0,e.exports.default=e.exports,n(i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}}),AV=yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(t,e){var n=QA().default;function i(r,s){if(n(r)!="object"||!r)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var l=o.call(r,s||"default");if(n(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(r)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}}),RV=yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(t,e){var n=QA().default,i=AV();function r(s){var o=i(s,"string");return n(o)=="symbol"?o:o+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}}),LV=yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(t,e){var n=RV();function i(r,s,o){return(s=n(s))in r?Object.defineProperty(r,s,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[s]=o,r}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}}),ac=yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(t,e){var n=LV();function i(s,o){var l=Object.keys(s);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(s);o&&(c=c.filter(function(h){return Object.getOwnPropertyDescriptor(s,h).enumerable})),l.push.apply(l,c)}return l}function r(s){for(var o=1;o<arguments.length;o++){var l=arguments[o]!=null?arguments[o]:{};o%2?i(Object(l),!0).forEach(function(c){n(s,c,l[c])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(l)):i(Object(l)).forEach(function(c){Object.defineProperty(s,c,Object.getOwnPropertyDescriptor(l,c))})}return s}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}}),$V=yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(t,e){function n(r){var s,o,l,c=2;for(typeof Symbol<"u"&&(o=Symbol.asyncIterator,l=Symbol.iterator);c--;){if(o&&(s=r[o])!=null)return s.call(r);if(l&&(s=r[l])!=null)return new i(s.call(r));o="@@asyncIterator",l="@@iterator"}throw new TypeError("Object is not async iterable")}function i(r){function s(o){if(Object(o)!==o)return Promise.reject(new TypeError(o+" is not an object."));var l=o.done;return Promise.resolve(o.value).then(function(c){return{value:c,done:l}})}return i=function(l){this.s=l,this.n=l.next},i.prototype={s:null,n:null,next:function(){return s(this.n.apply(this.s,arguments))},return:function(l){var c=this.s.return;return c===void 0?Promise.resolve({value:l,done:!0}):s(c.apply(this.s,arguments))},throw:function(l){var c=this.s.return;return c===void 0?Promise.reject(l):s(c.apply(this.s,arguments))}},new i(r)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}}),MV=yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(t,e){function n(i,r){if(i==null)return{};var s={};for(var o in i)if({}.hasOwnProperty.call(i,o)){if(r.includes(o))continue;s[o]=i[o]}return s}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}}),DV=yo({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(t,e){var n=MV();function i(r,s){if(r==null)return{};var o,l,c=n(r,s);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(r);for(l=0;l<h.length;l++)o=h[l],s.includes(o)||{}.propertyIsEnumerable.call(r,o)&&(c[o]=r[o])}return c}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}}),ju=bo(ac(),1),jV=bo($V(),1),NV=bo(DV(),1);const zV=["cursor","direction"];function Xm(t){return{path:t.path.join(".")}}function IV(t){return t.length>=3}function EA(t){return IV(t)?{type:"prefixed",prefix:t[0],path:t[1],args:t[2]}:{type:"unprefixed",prefix:void 0,path:t[0],args:t[1]}}function Sv(t,e,n){var i;const r=EA(t);let s=(i=r.args)===null||i===void 0?void 0:i.input;if(n){var o,l;s=(0,ju.default)((0,ju.default)((0,ju.default)({},(o=(l=r.args)===null||l===void 0?void 0:l.input)!==null&&o!==void 0?o:{}),n.pageParam!==void 0?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[r.path.join("."),s,e?.trpc]}async function XV(t,e,n){const r=e.getQueryCache().build(e,{queryKey:n});r.setState({data:[],status:"success"});const s=[];var o=!1,l=!1,c;try{for(var h=(0,jV.default)(t),d;o=!(d=await h.next()).done;o=!1){const p=d.value;s.push(p),r.setState({data:[...s]})}}catch(p){l=!0,c=p}finally{try{o&&h.return!=null&&await h.return()}finally{if(l)throw c}}return s}function ns(t){const e=wb(()=>{const{input:n,type:i}=t,r=t.path.flatMap(s=>s.split("."));if(!n&&i==="any")return r.length?[r]:[];if(i==="infinite"&&ho(n)&&("direction"in n||"cursor"in n)){const{cursor:s,direction:o}=n,l=(0,NV.default)(n,zV);return[r,{input:l,type:"infinite"}]}return[r,(0,ju.default)((0,ju.default)({},typeof n<"u"&&n!==hs&&{input:n}),i&&i!=="any"&&{type:i})]});return t.prefix&&e.unshift([t.prefix]),e}function AA(t){const e=[t.path.flatMap(n=>n.split("."))];return t.prefix&&e.unshift([t.prefix]),e}function _v(t){return PX(t)?t():t}var pl=bo(ac());function VV(t){var e;const{input:n,query:i,path:r,queryKey:s,opts:o}=t,l=n===hs,c=async h=>{var d;const p=(0,pl.default)((0,pl.default)({},o),{},{trpc:(0,pl.default)((0,pl.default)({},o?.trpc),!(o==null||(d=o.trpc)===null||d===void 0)&&d.abortOnUnmount?{signal:h.signal}:{signal:null})});return await i(...Sv(s,p,{direction:h.direction,pageParam:h.pageParam}))};return Object.assign((0,pl.default)((0,pl.default)({},o??{}),{},{queryKey:s,queryFn:l?hs:c,initialPageParam:(e=o?.initialCursor)!==null&&e!==void 0?e:n?.cursor}),{trpc:Xm({path:r})})}var aT=bo(ac());function BV(t){var e;const{mutate:n,path:i,opts:r,overrides:s}=t,o=_v(t.queryClient),l=AA({path:i,prefix:r?.keyPrefix}),c=o.defaultMutationOptions(o.getMutationDefaults(l)),h=(e=s?.onSuccess)!==null&&e!==void 0?e:p=>p.originalFn(),d=async p=>await n(...Sv([...l,{input:p}],r));return(0,aT.default)((0,aT.default)({},r),{},{mutationKey:l,mutationFn:d,onSuccess(...p){var g,O;return h({originalFn:()=>{var S,k,_;return(S=r==null||(k=r.onSuccess)===null||k===void 0?void 0:k.call(r,...p))!==null&&S!==void 0?S:c==null||(_=c.onSuccess)===null||_===void 0?void 0:_.call(c,...p)},queryClient:o,meta:(g=(O=r?.meta)!==null&&O!==void 0?O:c?.meta)!==null&&g!==void 0?g:{}})},trpc:Xm({path:i})})}var ml=bo(ac());function ZV(t){const{input:e,query:n,path:i,queryKey:r,opts:s}=t,o=_v(t.queryClient),l=e===hs,c=async h=>{var d;const p=(0,ml.default)((0,ml.default)({},s),{},{trpc:(0,ml.default)((0,ml.default)({},s?.trpc),!(s==null||(d=s.trpc)===null||d===void 0)&&d.abortOnUnmount?{signal:h.signal}:{signal:null})}),g=h.queryKey,O=await n(...Sv(g,p));return CX(O)?XV(O,o,g):O};return Object.assign((0,ml.default)((0,ml.default)({},s),{},{queryKey:r,queryFn:l?hs:c}),{trpc:Xm({path:i})})}var lT=bo(ac(),1);const qV=t=>{var e;const{subscribe:n,path:i,queryKey:r,opts:s={}}=t,o=(e=EA(r))===null||e===void 0||(e=e.args)===null||e===void 0?void 0:e.input,l="enabled"in s?!!s.enabled:o!==hs,c=h=>n(i.join("."),o??void 0,h);return(0,lT.default)((0,lT.default)({},s),{},{enabled:l,subscribe:c,queryKey:r,trpc:Xm({path:i})})};var gl=bo(ac(),1);function UV(t){const e=t.keyPrefix,n=i=>(r,s,o)=>"router"in t?Promise.resolve(_v(t.ctx)).then(c=>VX({router:t.router,path:r,getRawInput:async()=>s,ctx:c,type:i,signal:void 0})):(t.client instanceof kA?t.client:vV(t.client))[i](r,s,o);return dA(({args:i,path:r})=>{const s=[...r],o=s.pop(),[l,c]=i;return{"~types":void 0,pathKey:()=>ns({path:s,type:"any",prefix:e}),pathFilter:()=>(0,gl.default)((0,gl.default)({},l),{},{queryKey:ns({path:s,type:"any",prefix:e})}),queryOptions:()=>ZV({input:l,opts:c,path:s,queryClient:t.queryClient,queryKey:ns({path:s,input:l,type:"query",prefix:e}),query:n("query")}),queryKey:()=>ns({path:s,input:l,type:"query",prefix:e}),queryFilter:()=>(0,gl.default)((0,gl.default)({},c),{},{queryKey:ns({path:s,input:l,type:"query",prefix:e})}),infiniteQueryOptions:()=>VV({input:l,opts:c,path:s,queryKey:ns({path:s,input:l,type:"infinite",prefix:e}),query:n("query")}),infiniteQueryKey:()=>ns({path:s,input:l,type:"infinite",prefix:e}),infiniteQueryFilter:()=>(0,gl.default)((0,gl.default)({},c),{},{queryKey:ns({path:s,input:l,type:"infinite",prefix:e})}),mutationOptions:()=>{var d;return BV({opts:l,path:s,queryClient:t.queryClient,mutate:n("mutation"),overrides:(d=t.overrides)===null||d===void 0?void 0:d.mutations})},mutationKey:()=>AA({path:s,prefix:e}),subscriptionOptions:()=>qV({opts:c,path:s,queryKey:ns({path:s,input:l,type:"any",prefix:e}),subscribe:n("subscription")})}[o]()})}const kv=typeof window<"u",RA=new az({defaultOptions:{queries:{staleTime:60*1e3}}}),Tb=3e3;let fp=null;function YV(){if(!kv||An())return null;if(!fp)try{fp=mV({url:dX(),retryDelayMs:()=>Tb,onOpen:()=>{},onClose:t=>{An()||console.log("WebSocket closed:",t)}})}catch(t){return An()||console.error("Failed to create WebSocket client:",t),null}return fp}function GV(){return fp}function WV(){return kv?xV({links:[wX({condition:t=>t.type==="subscription"&&!An(),true:(t=>{const e=YV();return e?gV({client:e})(t):rT({url:WP()})(t)}),false:rT({url:WP()})})]}):null}const Vt=WV(),K0=kv?UV({client:Vt,queryClient:RA}):null;function Vm(){const[t,e]=z.useState({connected:!1,projectDir:null,dirName:null,watcherEnabled:!1,error:null,wsState:"idle",reconnectCountdown:null}),n=z.useRef(null),i=z.useRef(null),r=z.useCallback(()=>{i.current=Date.now(),n.current&&clearInterval(n.current),e(o=>({...o,reconnectCountdown:Math.ceil(Tb/1e3)})),n.current=setInterval(()=>{if(i.current===null)return;const o=Date.now()-i.current,l=Math.max(0,Math.ceil((Tb-o)/1e3));e(c=>({...c,reconnectCountdown:l>0?l:null})),l<=0&&n.current&&(clearInterval(n.current),n.current=null,i.current=null)},200)},[]),s=z.useCallback(()=>{n.current&&(clearInterval(n.current),n.current=null),i.current=null,e(o=>({...o,reconnectCountdown:null}))},[]);return z.useEffect(()=>{if(An())return;const o=GV();if(!o)return;const l=o.connectionState.subscribe({next:c=>{e(h=>({...h,wsState:c.state})),c.state==="connecting"&&c.error?r():s()}});return()=>{l.unsubscribe(),s()}},[r,s]),z.useEffect(()=>{if(An()){e(d=>({...d,connected:!0,projectDir:"Static Export",dirName:"Static Export",watcherEnabled:!1,error:null})),document.title="OpenSpec UI (Static)";return}let o=!0,l;async function c(){try{const d=await fetch(pX());if(!d.ok)throw new Error(`HTTP ${d.status}`);const p=await d.json();if(o){const g=p.projectDir,O=g.split("/").pop()||g;e(x=>({...x,connected:!0,projectDir:g,dirName:O,watcherEnabled:p.watcherEnabled,error:null})),document.title=`${O} - OpenSpec UI`}}catch(d){o&&(e(p=>({...p,connected:!1,error:d instanceof Error?d.message:"Connection failed"})),document.title="OpenSpec UI (Disconnected)",l=setTimeout(c,3e3))}}c();const h=setInterval(()=>{o&&c()},3e4);return()=>{o=!1,clearInterval(h),clearTimeout(l)}},[]),t}function HV(){return z.useCallback(()=>{window.location.reload()},[])}function FV({children:t,maxWidth:e=300,duration:n=10,gap:i=20,className:r=""}){const[s,o]=z.useState(!1),[l,c]=z.useState(!1),h=z.useRef(null),d=z.useRef(null);z.useEffect(()=>{const O=()=>{if(h.current&&d.current){const x=h.current.offsetWidth,S=d.current.scrollWidth;c(S>x)}};return O(),window.addEventListener("resize",O),()=>window.removeEventListener("resize",O)},[t]);const p=z.useCallback(async()=>{try{await navigator.clipboard.writeText(t),o(!0),setTimeout(()=>o(!1),2e3)}catch(O){console.error("Failed to copy path:",O)}},[t]),g=typeof e=="number"?`${e}px`:e;return v.jsxs("button",{onClick:p,className:`hover:bg-muted/50 group flex cursor-pointer items-center gap-1.5 rounded transition-colors ${r}`,title:`${t}
11
+
12
+ Click to copy`,children:[v.jsx("div",{ref:h,className:"relative overflow-hidden whitespace-nowrap",style:{maxWidth:g},children:v.jsx("div",{ref:d,"data-content":t,className:`relative inline-block ${l?"animate-marquee group-hover:[animation-play-state:paused]!":""}`,style:l?{"--marquee-duration":`${n}s`,"--marquee-gap":`${i}px`}:void 0,children:t})}),v.jsx("span",{className:"text-muted-foreground group-hover:text-foreground shrink-0 transition-colors",children:s?v.jsx(nh,{className:"h-3.5 w-3.5 text-green-500"}):v.jsx(W2,{className:"h-3.5 w-3.5"})})]})}function LA(){const t=Vm(),e=HV();return t.connected?v.jsxs("div",{className:"status-indicator flex items-center gap-1.5 text-xs",children:[v.jsx(tA,{className:"h-3.5 w-3.5 text-green-500"}),v.jsx("span",{className:"status-text text-green-600",children:"Live"})]}):v.jsxs("div",{className:"status-indicator flex items-center gap-1.5 text-xs",children:[v.jsx(eA,{className:"h-3.5 w-3.5 text-red-500"}),v.jsx("span",{className:"status-text text-red-600",children:"Offline"}),t.reconnectCountdown!==null&&v.jsxs("button",{onClick:e,className:"text-muted-foreground hover:text-foreground flex cursor-pointer items-center gap-1 transition-colors",title:"Click to reconnect now",children:[v.jsxs("span",{className:"text-xs",children:["(",t.reconnectCountdown,"s)"]}),v.jsx(K4,{className:"h-3 w-3"})]})]})}function KV(){const t=Vm();return v.jsxs("div",{className:"desktop-status border-border bg-muted/30 text-muted-foreground flex h-8 items-center justify-between gap-4 border-t px-4 text-xs",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(LA,{}),t.projectDir&&v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsx(H2,{className:"h-3.5 w-3.5 shrink-0"}),v.jsx(FV,{children:t.projectDir,maxWidth:300,duration:12,className:"text-xs"})]})]}),t.connected&&v.jsx("div",{className:"flex items-center gap-1.5",children:t.watcherEnabled?v.jsx("span",{className:"text-green-600",children:"Watching for changes"}):v.jsx("span",{className:"text-yellow-600",children:"File watcher disabled"})})]})}function JV(){const[t,e]=z.useState(!1),n=Y2(),r=Vm().dirName??"OpenSpec",s=jh();return v.jsxs(v.Fragment,{children:[v.jsxs("header",{className:"mobile-header border-border bg-background flex h-12 items-center justify-between border-b px-4",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("button",{onClick:()=>e(!0),className:"hover:bg-muted -ml-1.5 rounded-md p-1.5","aria-label":"Open menu",children:v.jsx(Z4,{className:"h-5 w-5"})}),v.jsx("span",{className:"font-nav text-[12px] tracking-[0.04em]",children:r})]}),v.jsx(LA,{})]}),t&&v.jsxs("div",{className:"fixed inset-0 z-50 flex",children:[v.jsx("div",{className:"animate-in fade-in absolute inset-0 bg-black/50 duration-200",onClick:()=>e(!1)}),v.jsxs("nav",{className:"bg-background border-border animate-in slide-in-from-left relative flex w-64 max-w-[80vw] flex-col border-r p-4 duration-200",children:[v.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[v.jsx("img",{src:n?`${s}openspec_pixel_dark.svg`:`${s}openspec_pixel_light.svg`,alt:"OpenSpec",className:"h-5"}),v.jsx("button",{onClick:()=>e(!1),className:"hover:bg-muted rounded-md p-1.5","aria-label":"Close menu",children:v.jsx(nA,{className:"h-5 w-5"})})]}),v.jsx("ul",{className:"flex-1 space-y-1",children:xv.map(o=>v.jsx("li",{children:v.jsxs(Rt,{to:o.to,onClick:()=>e(!1),className:"hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground flex items-center gap-2 rounded-md px-3 py-2",children:[v.jsx(o.icon,{className:"h-4 w-4 shrink-0"}),v.jsx("span",{className:"font-nav text-[12px] tracking-[0.04em]",children:o.label})]})},o.to))}),v.jsx("div",{className:"border-border border-t pt-4",children:v.jsxs(Rt,{to:Ql.to,onClick:()=>e(!1),className:"hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground flex items-center gap-2 rounded-md px-3 py-2",children:[v.jsx(Ql.icon,{className:"h-4 w-4 shrink-0"}),v.jsx("span",{className:"font-nav text-[12px] tracking-[0.04em]",children:Ql.label})]})})]})]})]})}function eB(){return v.jsx("nav",{className:"mobile-tabbar h-14 border-t border-border bg-background flex items-stretch",children:xv.slice(0,5).map(t=>v.jsxs(Rt,{to:t.to,className:"flex-1 flex flex-col items-center justify-center gap-0.5 text-muted-foreground hover:text-foreground [&.active]:text-primary",children:[v.jsx(t.icon,{className:"w-5 h-5 shrink-0"}),v.jsx("span",{className:"text-[10px] font-nav tracking-[0.03em]",children:t.label})]},t.to))})}const $A=z.createContext(null);function tB({children:t}){const[e,n]=z.useState({open:!1,changeId:"",changeName:""}),i=z.useCallback((s,o)=>{n({open:!0,changeId:s,changeName:o})},[]),r=z.useCallback(()=>{n(s=>({...s,open:!1}))},[]);return v.jsx($A.Provider,{value:{state:e,openArchiveModal:i,closeArchiveModal:r},children:t})}function MA(){const t=z.useContext($A);if(!t)throw new Error("useArchiveModal must be used within ArchiveModalProvider");return t}function Vo(){return typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2)}function cT(t,e){const n=e.length>0?` ${e.join(" ")}`:"";return`${t}${n}`}function nB(t){return t.some(e=>e.status==="loading"||e.status==="running")?"running":t.some(e=>e.status==="error")?"error":t.length>0&&t.every(e=>e.status==="success")?"success":"idle"}function Cb(t={}){const[e,n]=z.useState([]),[i,r]=z.useState([]),[s,o]=z.useState(null),l=z.useRef(null),c=z.useRef(null),h=z.useRef([]),d=z.useRef(t);z.useEffect(()=>{d.current=t},[t]);const p=z.useCallback(I=>{n(B=>{const $=I(B);return h.current=$,$})},[]);z.useEffect(()=>{h.current=e},[e]);const g=z.useCallback(()=>{l.current?.unsubscribe?.(),l.current=null,c.current=null,h.current=[],n([]),r([]),o(null)},[]),O=z.useCallback(()=>{l.current?.unsubscribe?.(),l.current=null;const I=c.current;I&&(p(B=>B.map($=>$.id===I?{...$,status:"error",exitCode:null}:$)),r(B=>[...B,{id:Vo(),commandId:I,kind:"meta",text:"Process cancelled by user",tone:"error"}])),c.current=null},[p]),x=z.useCallback((I,B=[],$=-1)=>{const U=Vo();return p(H=>{const oe=[...H],F={id:U,command:I,args:B,status:"idle",exitCode:null};return $>=0&&$<oe.length?oe.splice($,0,F):oe.push(F),oe}),U},[]),S=z.useCallback(I=>{p(B=>B.filter($=>$.id!==I)),r(B=>B.filter($=>$.commandId!==I)),c.current===I&&O()},[O,p]),k=z.useCallback(I=>{l.current?.unsubscribe?.(),l.current=null,c.current=null,r([]),o(null),p(()=>I.map(B=>({id:Vo(),command:B.command,args:B.args??[],status:"idle",exitCode:null})))},[p]),_=z.useCallback(()=>[...h.current],[]),T=z.useCallback(I=>{r(B=>[...B,I])},[]),C=z.useCallback(async I=>{if(An())return console.warn("CLI runner is disabled in static mode"),null;const B=I??h.current.find(J=>J.status==="idle")?.id,$=h.current.find(J=>J.id===B);if(!$)return null;l.current?.unsubscribe?.(),c.current=$.id,p(J=>J.map(ce=>ce.id===$.id?{...ce,status:"loading",exitCode:null}:ce));let U=()=>{};const H=new Promise(J=>{U=J}),oe={data:new Set,error:new Set,close:new Set,exit:new Set},F=(J,ce)=>{oe[J].forEach(Oe=>Oe(ce))},Y={id:$.id,command:$.command,args:$.args,status:"loading",exitCode:null,done:H,on:(J,ce)=>(oe[J].add(ce),()=>oe[J].delete(ce)),cancel:()=>{O()}};d.current.onCreateProcess?.(Y);const Z=Vt.cli.runCommandStream.subscribe({command:$.command,args:$.args},{onData:J=>{if(J.type==="command"){p(ce=>ce.map(Oe=>Oe.id===$.id?{...Oe,status:"running"}:Oe)),Y.status="running",F("data",J.data??"");return}if(J.type==="stdout"&&J.data){T({id:Vo(),commandId:$.id,kind:"stdout",text:J.data}),F("data",J.data);return}if(J.type==="stderr"&&J.data){T({id:Vo(),commandId:$.id,kind:"stderr",text:J.data,tone:"error"}),F("error",J.data);return}if(J.type==="exit"){const ce=J.exitCode??null;o(ce);const Oe=ce===0?"success":"error";p(L=>L.map(N=>N.id===$.id?{...N,status:Oe,exitCode:ce}:N)),Y.status=Oe,Y.exitCode=ce,T({id:Vo(),commandId:$.id,kind:"meta",text:`Process exited with code ${ce??"unknown"}`,tone:ce===0?"success":"error"}),F("close",ce),F("exit",ce),U(ce),l.current?.unsubscribe?.(),l.current=null,c.current=null}},onError:J=>{const ce=J instanceof Error?J.message:String(J);p(Oe=>Oe.map(L=>L.id===$.id?{...L,status:"error",exitCode:null}:L)),Y.status="error",T({id:Vo(),commandId:$.id,kind:"meta",text:`Error: ${ce}`,tone:"error"}),F("error",ce),U(null),l.current?.unsubscribe?.(),l.current=null,c.current=null}});return Y.status="running",l.current=Z,Y},[T,O,p]),D=z.useCallback(async()=>{let I=h.current.find(B=>B.status==="idle");for(;I;){const B=await C(I.id);if(!B||await B.done!==0)break;I=h.current.find(U=>U.status==="idle")}},[C]);z.useEffect(()=>()=>{O()},[O]);const j=z.useMemo(()=>e.flatMap(I=>{const B=I.status==="loading"?v.jsx(lo,{className:"h-3 w-3 animate-spin text-sky-300"}):I.status==="running"?v.jsxs("div",{className:"flex items-center gap-1 text-amber-200",children:[v.jsx(iX,{className:"h-3 w-3 animate-pulse"}),v.jsx(lo,{className:"h-3 w-3 animate-spin"})]}):I.status==="success"?v.jsx(nh,{className:"h-3 w-3 text-green-400"}):I.status==="error"?v.jsx(_b,{className:"h-3 w-3 text-red-400"}):null,$=I.status==="idle"?`# ${cT(I.command,I.args)}`:`$ ${cT(I.command,I.args)}`,U=[{id:`cmd-${I.id}`,kind:"html",node:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:I.status==="running"?"terminal-shimmer":I.status==="loading"?"animate-pulse text-blue-200":I.status==="success"?"text-green-300":I.status==="error"?"text-red-300":"text-zinc-200",children:$}),B]})}],H=i.filter(oe=>oe.commandId===I.id).map(oe=>({id:oe.id,kind:"ascii",text:oe.text,tone:oe.tone}));return[...U,...H]}),[e,i]),A=z.useMemo(()=>nB(e),[e]),M=z.useMemo(()=>e.some(I=>I.status!=="idle"),[e]);return{lines:j,status:A,exitCode:s,hasStarted:M,commands:z.useMemo(()=>({add:x,remove:S,list:_,replaceAll:k,run:C,runAll:D}),[x,_,S,k,C,D]),reset:g,cancel:O}}function Qb({open:t,title:e,onClose:n,children:i,footer:r,className:s="",bodyClassName:o="",maxHeight:l="86vh",borderVariant:c="default"}){const h=z.useRef(null);z.useEffect(()=>{const g=h.current;g&&(t&&!g.open?g.showModal():!t&&g.open&&g.close())},[t]),z.useEffect(()=>{const g=h.current;if(!g)return;const O=S=>{S.preventDefault(),n()},x=S=>{const k=g.getBoundingClientRect();S.clientX>=k.left&&S.clientX<=k.right&&S.clientY>=k.top&&S.clientY<=k.bottom||n()};return g.addEventListener("cancel",O),g.addEventListener("click",x),()=>{g.removeEventListener("cancel",O),g.removeEventListener("click",x)}},[n]);const d=c==="error"?"border-red-500/60":c==="success"?"border-green-500/50":"border-border",p=z.useMemo(()=>{const g=String.raw;return v.jsx("style",{children:g`
13
+ /* 1. 对话框的基础状态(关闭状态) */
14
+ dialog.openspec-dialog {
15
+ margin: auto;
16
+ opacity: 0.6;
17
+ transform: translateY(12px);
18
+ /* 必须把 overlay 也加入过渡,否则关闭时会瞬间消失 */
19
+ transition:
20
+ opacity 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
21
+ transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
22
+ overlay 320ms allow-discrete,
23
+ display 260ms allow-discrete;
24
+ }
25
+
26
+ /* 2. 对话框的打开状态 */
27
+ dialog.openspec-dialog[open] {
28
+ opacity: 1;
29
+ transform: translateY(0);
30
+ }
31
+
32
+ /* 3. 对话框打开瞬间的起始帧 */
33
+ @starting-style {
34
+ dialog.openspec-dialog[open] {
35
+ opacity: 0.6;
36
+ transform: translateY(12px);
37
+ }
38
+ }
39
+
40
+ /* --- 下面是 Backdrop (背景遮罩) 的动画 --- */
41
+
42
+ /* 4. 背景遮罩的基础状态 */
43
+ dialog.openspec-dialog::backdrop {
44
+ background-color: rgba(0, 0, 0, 0); /* 初始透明 */
45
+ backdrop-filter: grayscale(0.5);
46
+ transition:
47
+ display 0.35s allow-discrete,
48
+ overlay 0.35s allow-discrete,
49
+ background-color 0.35s ease,
50
+ backdrop-filter 0.35s ease;
51
+ }
52
+
53
+ /* 5. 背景遮罩的打开状态 */
54
+ dialog.openspec-dialog[open]::backdrop {
55
+ background-color: rgba(0, 0, 0, 0.5);
56
+ backdrop-filter: grayscale(1);
57
+ }
58
+
59
+ /* 6. 背景遮罩的起始帧 */
60
+ @starting-style {
61
+ dialog.openspec-dialog[open]::backdrop {
62
+ background-color: rgba(0, 0, 0, 0);
63
+ backdrop-filter: grayscale(0.5);
64
+ }
65
+ }
66
+
67
+ `})},[]);return v.jsxs(v.Fragment,{children:[p,v.jsx("dialog",{ref:h,className:"openspec-dialog w-[calc(100%-2rem)] max-w-2xl border-0 bg-transparent p-0",children:v.jsxs("div",{className:`bg-background relative flex w-full flex-col overflow-hidden rounded-lg border shadow-xl ${d} ${s}`,style:{maxHeight:l},children:[v.jsxs("div",{className:"border-border flex flex-none shrink-0 items-center justify-between border-b px-4 py-3",children:[v.jsx("div",{className:"flex items-center gap-2",children:e}),v.jsx("button",{onClick:n,className:"hover:bg-muted rounded p-1","aria-label":"Close dialog",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:"h-4 w-4",stroke:"currentColor",fill:"none",strokeWidth:"2",children:v.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 6l12 12M6 18L18 6"})})})]}),v.jsx("div",{className:`min-h-0 flex-1 overflow-auto px-4 py-3 ${o}`,children:i}),r&&v.jsx("div",{className:"border-border flex flex-none shrink-0 items-center justify-end gap-2 border-t px-4 py-3",children:r})]})})]})}const Eb=z.forwardRef(function({lines:e,maxHeight:n="60vh",scrollRef:i},r){const s=i??r;return v.jsxs("div",{ref:s,className:"scrollbar-thin scrollbar-track-transparent scrollbar-thumb-zinc-700 overflow-auto bg-zinc-900 p-4 font-mono text-sm text-zinc-100",style:{maxHeight:n},children:[e.length===0&&v.jsx("span",{className:"text-zinc-500",children:"Waiting to start…"}),e.map(o=>{if(o.kind==="html")return v.jsx("div",{className:"whitespace-pre-wrap break-all",children:o.node},o.id);const l=o.tone==="success"?"text-green-400":o.tone==="error"?"text-red-400":o.tone==="info"?"text-blue-300":void 0;return v.jsx("div",{className:"whitespace-pre-wrap break-all",children:v.jsx("span",{className:l,children:iB(o.text)})},o.id)})]})});function iB(t){const e=[];let n=0,i=null;const r=/\x1b\[(\d+)m/g;let s;for(;(s=r.exec(t))!==null;){if(s.index>n){const l=t.slice(n,s.index);e.push(i?v.jsx("span",{className:i,children:l},n):l)}const o=parseInt(s[1],10);o===0?i=null:o===31?i="text-red-400":o===32?i="text-green-400":o===33?i="text-yellow-400":o===34?i="text-blue-400":o===35?i="text-fuchsia-300":o===36?i="text-cyan-300":(o===37||o===90)&&(i="text-zinc-400"),n=s.index+s[0].length}if(n<t.length){const o=t.slice(n);e.push(i?v.jsx("span",{className:i,children:o},n):o)}return e.length>0?e:t}function rB(){const t=oc(),{state:e,closeArchiveModal:n}=MA(),{open:i,changeId:r,changeName:s}=e,[o,l]=z.useState(!1),[c,h]=z.useState(!1),[d,p]=z.useState(null),g=Cb({onCreateProcess:F=>{F.on("data",Y=>{const Z=/Change ['"](.+?)['"] archived as ['"](.+?)['"]/.exec(String(Y));Z?.[2]&&p(Z[2])})}}),{lines:O,status:x,hasStarted:S,commands:k,reset:_,cancel:T}=g;z.useEffect(()=>{i&&(l(!1),h(!1),p(null))},[i]);const C=()=>{T(),_(),l(!1),h(!1),p(null),n()},D=z.useCallback(()=>{if(!r)return[];const F=[];c||F.push({command:"openspec",args:["validate",r]});const Y=["archive","-y",r];return o&&Y.push("--skip-specs"),Y.push("--no-validate"),F.push({command:"openspec",args:Y}),F},[r,c,o]),j=x==="running",A=x==="success"&&!!d,M=x==="success"&&!d,I=A?"success":M?"error":x,B=d??"",$=()=>{r&&k.runAll()},U=()=>{_(),l(!1),h(!1),p(null)};if(z.useEffect(()=>{if(!i||!r||S)return;const F=D();k.replaceAll(F)},[D,r,k,S,i]),!i||!r)return null;const H=I==="error"?"error":I==="success"?"success":"default",oe=I==="success"&&B?v.jsxs("div",{className:"flex w-full items-center justify-between gap-3",children:[v.jsxs("div",{className:"text-sm text-green-600",children:["Archived as ",B]}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("button",{onClick:C,className:"bg-muted hover:bg-muted/80 rounded-md px-4 py-2",children:"Close"}),v.jsx("button",{onClick:()=>{C(),t({to:"/archive/$changeId",params:{changeId:B}})},className:"bg-primary text-primary-foreground rounded-md px-4 py-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:!B,children:"View Archive"})]})]}):v.jsxs(v.Fragment,{children:[v.jsx("button",{onClick:U,className:"bg-muted hover:bg-muted/80 rounded-md px-4 py-2",children:I==="error"?"Reset & Retry":"Reset"}),v.jsx("button",{onClick:C,className:"bg-muted hover:bg-muted/80 rounded-md px-4 py-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:j,children:"Close"}),v.jsxs("button",{onClick:I==="error"?U:$,disabled:j,className:"flex items-center gap-2 rounded-md bg-red-600 px-4 py-2 text-white hover:bg-red-700 disabled:cursor-not-allowed disabled:opacity-50",children:[j?v.jsx(lo,{className:"h-4 w-4 animate-spin"}):v.jsx(ls,{className:"h-4 w-4"}),I==="error"?"Reset before Archive":"Archive"]})]});return v.jsx(Qb,{open:i,onClose:C,title:v.jsxs("div",{className:"flex items-center gap-2",children:[I==="success"?v.jsx(ao,{className:"h-5 w-5 text-green-500"}):v.jsx(ls,{className:"h-5 w-5 text-red-500"}),v.jsxs("span",{className:"font-semibold",children:["Archive: ",s]})]}),footer:oe,borderVariant:H,children:v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{className:"bg-muted/50 rounded-lg p-3",children:[v.jsx("p",{className:"text-muted-foreground text-sm",children:"Change to archive:"}),v.jsx("p",{className:"font-medium",children:s}),v.jsxs("p",{className:"text-muted-foreground mt-1 text-xs",children:["ID: ",r]})]}),v.jsx(Eb,{lines:O,maxHeight:"50vh"}),M&&v.jsx("div",{className:"border-amber-200 bg-amber-100 text-amber-900 rounded-md border px-3 py-2 text-sm",children:"Archive output did not include the archived change name. Treating archive as failed."}),v.jsxs("div",{className:"space-y-3",children:[v.jsx("p",{className:"text-sm font-medium",children:"Options"}),v.jsxs("label",{className:"flex cursor-pointer items-start gap-3",children:[v.jsx("input",{type:"checkbox",checked:o,onChange:F=>l(F.target.checked),className:"border-border mt-1 h-4 w-4 rounded",disabled:S}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-medium",children:"Skip specs update"}),v.jsx("p",{className:"text-muted-foreground text-xs",children:"Don't update spec files with delta changes (--skip-specs)"})]})]}),v.jsxs("label",{className:"flex cursor-pointer items-start gap-3",children:[v.jsx("input",{type:"checkbox",checked:c,onChange:F=>h(F.target.checked),className:"border-border mt-1 h-4 w-4 rounded",disabled:S}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-medium",children:"Skip validation"}),v.jsx("p",{className:"text-muted-foreground text-xs",children:"Don't validate the change before archiving (--no-validate)"})]})]})]})]})})}let kd=null,wd=null;async function yi(){if(kd)return kd;const t=o4();return t?(kd=t,t):wd||(wd=(async()=>{try{const n=`${jh()}data.json`.replace("//","/"),i=await fetch(n);if(!i.ok)return console.error("Failed to load data snapshot:",i.statusText),null;const r=await i.json();return kd=r,r}catch(e){return console.error("Error loading static snapshot:",e),null}})(),wd)}function DA(t){return{id:t.id,name:t.name,overview:t.overview,requirements:t.requirements,metadata:{version:"1.0",format:"openspec"}}}function jA(t){return{id:t.id,name:t.name,why:t.why,whatChanges:t.whatChanges,design:t.design,deltas:[],tasks:t.parsedTasks,progress:t.progress}}async function sB(){const t=await yi();if(!t)return null;const e=t.specs.map(DA),n=t.changes.map(jA),i=t.archives,r=e.length,s=0,o=n.length,l=i.length;let c=0,h=0;for(const p of t.changes)c+=p.progress.total,h+=p.progress.completed;const d=c>0?Math.round(h/c*100):0;return{specs:e,changes:n,archivedCount:l,summary:{specCount:r,requirementCount:s,activeChangeCount:o,archivedChangeCount:l,totalTasks:c,completedTasks:h,progressPercent:d}}}async function oB(){return await yi()!==null}async function aB(){const t=await yi();return t?t.specs.map(e=>({id:e.id,name:e.name,createdAt:e.createdAt,updatedAt:e.updatedAt})):[]}async function lB(t){const e=await yi();if(!e)return null;const n=e.specs.find(i=>i.id===t);return n?DA(n):null}async function cB(){const t=await yi();return t?t.changes.map(e=>({id:e.id,name:e.name,progress:e.progress,createdAt:e.createdAt,updatedAt:e.updatedAt})):[]}async function uB(t){const e=await yi();if(!e)return null;const n=e.changes.find(i=>i.id===t);return n?jA(n):null}async function hB(t){const e=await yi();if(!e)return[];const n=e.changes.find(r=>r.id===t);if(!n)return[];const i=[];return i.push({path:"proposal.md",type:"file",content:n.proposal}),n.tasks&&i.push({path:"tasks.md",type:"file",content:n.tasks}),n.design&&i.push({path:"design.md",type:"file",content:n.design}),n.deltas.forEach(r=>{i.push({path:`specs/${r.capability}/spec.md`,type:"file",content:r.content})}),i}async function fB(){const t=await yi();return t?t.archives.map(e=>({id:e.id,name:e.name,createdAt:e.createdAt,updatedAt:e.updatedAt})):[]}async function dB(t){const e=await yi();if(!e)return null;const n=e.archives.find(i=>i.id===t);return n?{id:n.id,name:n.name,why:n.why,whatChanges:n.whatChanges,design:n.design,deltas:[],tasks:n.parsedTasks,progress:{total:0,completed:0}}:null}async function pB(t){const e=await yi();if(!e)return[];const n=e.archives.find(r=>r.id===t);if(!n)return[];const i=[];return i.push({path:"proposal.md",type:"file",content:n.proposal}),n.tasks&&i.push({path:"tasks.md",type:"file",content:n.tasks}),n.design&&i.push({path:"design.md",type:"file",content:n.design}),i}async function mB(){return(await yi())?.projectMd||null}async function gB(){return(await yi())?.agentsMd||null}async function OB(){return{cli:{command:"openspecui"},ui:{theme:"system"}}}async function yB(){return[]}function bB(){const[t,e]=z.useState("Loading...");return z.useEffect(()=>{An()&&yi().then(n=>{console.log("[StaticModeBanner] Snapshot loaded:",n),console.log("[StaticModeBanner] Meta:",n?.meta),console.log("[StaticModeBanner] Timestamp:",n?.meta?.timestamp),n?.meta?.timestamp?e(new Date(n.meta.timestamp).toLocaleString()):e("Unknown")}).catch(n=>{console.error("[StaticModeBanner] Error loading snapshot:",n),e("Unknown")})},[]),An()?v.jsx("div",{className:"static-mode-banner border-border bg-primary/5 border-b-2 px-6 py-3 text-sm",children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"font-mono font-bold",children:"📸 Static Snapshot"}),v.jsxs("span",{className:"text-muted-foreground",children:["Generated: ",t]})]}),v.jsx("div",{className:"text-muted-foreground",children:"Live features disabled (no file watching, task toggling, or AI integration)"})]})}):null}function xB(){const t=En({select:i=>`${i.location.pathname}${i.location.search}`}),[e,n]=z.useState(t);return z.useLayoutEffect(()=>{if(t===e)return;const i=document,r=()=>n(t);typeof i.startViewTransition=="function"?(document.documentElement.dataset.vtRunning="1",i.startViewTransition(()=>{B2.flushSync(r)}).finished.catch(()=>{}).finally(()=>{delete document.documentElement.dataset.vtRunning})):r()},[t,e]),v.jsx(U2,{},e)}function vB(){return v.jsxs("div",{className:"fixed inset-0 @container/app",style:{containerName:"app"},children:[v.jsxs("div",{className:"app-layout h-full",children:[v.jsx(fX,{}),v.jsxs("div",{className:"app-body flex flex-col flex-1 min-h-0",children:[v.jsx(bB,{}),v.jsx(JV,{}),v.jsx("main",{className:"main-content flex flex-col view-transition-route",children:v.jsx(xB,{})}),v.jsx(eB,{}),v.jsx(KV,{})]})]}),v.jsx(rB,{})]})}function wv(t){if(!t)return"";const n=Date.now()-t,i=Math.floor(n/1e3),r=Math.floor(i/60),s=Math.floor(r/60),o=Math.floor(s/24),l=Math.floor(o/7),c=Math.floor(o/30),h=Math.floor(o/365);return i<60?"just now":r<60?`${r}m ago`:s<24?`${s}h ago`:o<7?`${o}d ago`:l<4?`${l}w ago`:c<12?`${c}mo ago`:`${h}y ago`}function Hn(t,e,n=[]){const[i,r]=z.useState({data:void 0,isLoading:!0,error:null}),s=z.useRef(null),o=An();return z.useEffect(()=>{if(s.current?.unsubscribe(),r(c=>({...c,isLoading:!0,error:null})),o){e?e().then(c=>{r({data:c,isLoading:!1,error:null})}).catch(c=>{console.error("Static data loading error:",c),r(h=>({...h,isLoading:!1,error:c}))}):(console.warn("No static loader provided for subscription in static mode"),r(c=>({...c,isLoading:!1,error:new Error("Static loader not available")})));return}const l=t({onData:c=>{r({data:c,isLoading:!1,error:null})},onError:c=>{console.error("Subscription error:",c),r(h=>({...h,isLoading:!1,error:c}))}});return s.current=l,()=>{l.unsubscribe()}},[o,...n]),i}function SB(){return Hn(t=>Vt.dashboard.subscribe.subscribe(void 0,{onData:t.onData,onError:t.onError}),async()=>{const t=await sB();if(!t)throw new Error("Failed to load dashboard data");return t},[])}function _B(){return Hn(t=>Vt.dashboard.subscribeInitialized.subscribe(void 0,{onData:t.onData,onError:t.onError}),oB,[])}function kB(){return Hn(t=>Vt.spec.subscribe.subscribe(void 0,{onData:t.onData,onError:t.onError}),aB,[])}function wB(t){return Hn(e=>Vt.spec.subscribeOne.subscribe({id:t},{onData:e.onData,onError:e.onError}),()=>lB(t),[t])}function PB(){return Hn(t=>Vt.change.subscribe.subscribe(void 0,{onData:t.onData,onError:t.onError}),cB,[])}function TB(t){return Hn(e=>Vt.change.subscribeOne.subscribe({id:t},{onData:e.onData,onError:e.onError}),()=>uB(t),[t])}function CB(t){return Hn(e=>Vt.change.subscribeFiles.subscribe({id:t},{onData:e.onData,onError:e.onError}),()=>hB(t),[t])}function QB(){return Hn(t=>Vt.archive.subscribe.subscribe(void 0,{onData:t.onData,onError:t.onError}),fB,[])}function EB(t){return Hn(e=>Vt.archive.subscribeOne.subscribe({id:t},{onData:e.onData,onError:e.onError}),()=>dB(t),[t])}function AB(t){return Hn(e=>Vt.archive.subscribeFiles.subscribe({id:t},{onData:e.onData,onError:e.onError}),()=>pB(t),[t])}function RB(){return Hn(t=>Vt.project.subscribeProjectMd.subscribe(void 0,{onData:t.onData,onError:t.onError}),mB,[])}function LB(){return Hn(t=>Vt.project.subscribeAgentsMd.subscribe(void 0,{onData:t.onData,onError:t.onError}),gB,[])}function $B(){return Hn(t=>Vt.config.subscribe.subscribe(void 0,{onData:t.onData,onError:t.onError}),OB,[])}function MB(){return Hn(t=>Vt.cli.subscribeConfiguredTools.subscribe(void 0,{onData:t.onData,onError:t.onError}),yB,[])}function DB(){const{data:t,isLoading:e}=QB(),[n,i]=z.useState(!0);return z.useEffect(()=>{const r=requestAnimationFrame(()=>i(!1));return()=>cancelAnimationFrame(r)},[]),n||e&&!t?v.jsx("div",{className:"route-loading animate-pulse",children:"Loading archived changes..."}):v.jsxs("div",{className:"space-y-6",children:[v.jsxs("h1",{className:"font-nav flex items-center gap-2 text-2xl font-bold",children:[v.jsx(ls,{className:"h-6 w-6 shrink-0"}),"Archive"]}),v.jsx("p",{className:"text-muted-foreground",children:"Completed changes that have been archived after implementation."}),v.jsxs("div",{className:"border-border divide-border divide-y rounded-lg border",children:[t?.map(r=>v.jsxs(Rt,{to:"/archive/$changeId",params:{changeId:r.id},className:"hover:bg-muted/50 flex items-center justify-between p-4",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx(ls,{className:"text-muted-foreground h-5 w-5"}),v.jsxs("div",{children:[v.jsx("div",{className:"font-medium",children:r.name}),v.jsxs("div",{className:"text-muted-foreground text-sm",children:[r.id,r.updatedAt>0&&v.jsxs(v.Fragment,{children:[" · ",wv(r.updatedAt)]})]})]})]}),v.jsx(zm,{className:"text-muted-foreground h-4 w-4"})]},r.id)),t?.length===0&&v.jsxs("div",{className:"text-muted-foreground p-8 text-center",children:[v.jsx(ls,{className:"mx-auto mb-4 h-12 w-12 opacity-50"}),v.jsx("p",{children:"No archived changes yet."}),v.jsxs("p",{className:"mt-2 text-sm",children:["Changes are archived after implementation using"," ",v.jsx("code",{className:"bg-muted rounded px-1",children:"openspec archive"})]})]})]})]})}function NA(t,e){const n=e||{};return(t[t.length-1]===""?[...t,""]:t).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const jB=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,NB=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zB={};function uT(t,e){return(zB.jsx?NB:jB).test(t)}const IB=/[ \t\n\f\r]/g;function Bm(t){return typeof t=="object"?t.type==="text"?hT(t.value):!1:hT(t)}function hT(t){return t.replace(IB,"")===""}let zh=class{constructor(e,n,i){this.normal=n,this.property=e,i&&(this.space=i)}};zh.prototype.normal={};zh.prototype.property={};zh.prototype.space=void 0;function zA(t,e){const n={},i={};for(const r of t)Object.assign(n,r.property),Object.assign(i,r.normal);return new zh(n,i,e)}function Ab(t){return t.toLowerCase()}class Fn{constructor(e,n){this.attribute=n,this.property=e}}Fn.prototype.attribute="";Fn.prototype.booleanish=!1;Fn.prototype.boolean=!1;Fn.prototype.commaOrSpaceSeparated=!1;Fn.prototype.commaSeparated=!1;Fn.prototype.defined=!1;Fn.prototype.mustUseProperty=!1;Fn.prototype.number=!1;Fn.prototype.overloadedBoolean=!1;Fn.prototype.property="";Fn.prototype.spaceSeparated=!1;Fn.prototype.space=void 0;let XB=0;const ze=ka(),Nt=ka(),Rb=ka(),de=ka(),yt=ka(),Al=ka(),ui=ka();function ka(){return 2**++XB}const Lb=Object.freeze(Object.defineProperty({__proto__:null,boolean:ze,booleanish:Nt,commaOrSpaceSeparated:ui,commaSeparated:Al,number:de,overloadedBoolean:Rb,spaceSeparated:yt},Symbol.toStringTag,{value:"Module"})),J0=Object.keys(Lb);class Pv extends Fn{constructor(e,n,i,r){let s=-1;if(super(e,n),fT(this,"space",r),typeof i=="number")for(;++s<J0.length;){const o=J0[s];fT(this,J0[s],(i&Lb[o])===Lb[o])}}}Pv.prototype.defined=!0;function fT(t,e,n){n&&(t[e]=n)}function lc(t){const e={},n={};for(const[i,r]of Object.entries(t.properties)){const s=new Pv(i,t.transform(t.attributes||{},i),r,t.space);t.mustUseProperty&&t.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),e[i]=s,n[Ab(i)]=i,n[Ab(s.attribute)]=i}return new zh(e,n,t.space)}const IA=lc({properties:{ariaActiveDescendant:null,ariaAtomic:Nt,ariaAutoComplete:null,ariaBusy:Nt,ariaChecked:Nt,ariaColCount:de,ariaColIndex:de,ariaColSpan:de,ariaControls:yt,ariaCurrent:null,ariaDescribedBy:yt,ariaDetails:null,ariaDisabled:Nt,ariaDropEffect:yt,ariaErrorMessage:null,ariaExpanded:Nt,ariaFlowTo:yt,ariaGrabbed:Nt,ariaHasPopup:null,ariaHidden:Nt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:yt,ariaLevel:de,ariaLive:null,ariaModal:Nt,ariaMultiLine:Nt,ariaMultiSelectable:Nt,ariaOrientation:null,ariaOwns:yt,ariaPlaceholder:null,ariaPosInSet:de,ariaPressed:Nt,ariaReadOnly:Nt,ariaRelevant:null,ariaRequired:Nt,ariaRoleDescription:yt,ariaRowCount:de,ariaRowIndex:de,ariaRowSpan:de,ariaSelected:Nt,ariaSetSize:de,ariaSort:null,ariaValueMax:de,ariaValueMin:de,ariaValueNow:de,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function XA(t,e){return e in t?t[e]:e}function VA(t,e){return XA(t,e.toLowerCase())}const VB=lc({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Al,acceptCharset:yt,accessKey:yt,action:null,allow:null,allowFullScreen:ze,allowPaymentRequest:ze,allowUserMedia:ze,alt:null,as:null,async:ze,autoCapitalize:null,autoComplete:yt,autoFocus:ze,autoPlay:ze,blocking:yt,capture:null,charSet:null,checked:ze,cite:null,className:yt,cols:de,colSpan:null,content:null,contentEditable:Nt,controls:ze,controlsList:yt,coords:de|Al,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ze,defer:ze,dir:null,dirName:null,disabled:ze,download:Rb,draggable:Nt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ze,formTarget:null,headers:yt,height:de,hidden:Rb,high:de,href:null,hrefLang:null,htmlFor:yt,httpEquiv:yt,id:null,imageSizes:null,imageSrcSet:null,inert:ze,inputMode:null,integrity:null,is:null,isMap:ze,itemId:null,itemProp:yt,itemRef:yt,itemScope:ze,itemType:yt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ze,low:de,manifest:null,max:null,maxLength:de,media:null,method:null,min:null,minLength:de,multiple:ze,muted:ze,name:null,nonce:null,noModule:ze,noValidate:ze,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ze,optimum:de,pattern:null,ping:yt,placeholder:null,playsInline:ze,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ze,referrerPolicy:null,rel:yt,required:ze,reversed:ze,rows:de,rowSpan:de,sandbox:yt,scope:null,scoped:ze,seamless:ze,selected:ze,shadowRootClonable:ze,shadowRootDelegatesFocus:ze,shadowRootMode:null,shape:null,size:de,sizes:null,slot:null,span:de,spellCheck:Nt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:de,step:null,style:null,tabIndex:de,target:null,title:null,translate:null,type:null,typeMustMatch:ze,useMap:null,value:Nt,width:de,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:yt,axis:null,background:null,bgColor:null,border:de,borderColor:null,bottomMargin:de,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ze,declare:ze,event:null,face:null,frame:null,frameBorder:null,hSpace:de,leftMargin:de,link:null,longDesc:null,lowSrc:null,marginHeight:de,marginWidth:de,noResize:ze,noHref:ze,noShade:ze,noWrap:ze,object:null,profile:null,prompt:null,rev:null,rightMargin:de,rules:null,scheme:null,scrolling:Nt,standby:null,summary:null,text:null,topMargin:de,valueType:null,version:null,vAlign:null,vLink:null,vSpace:de,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ze,disableRemotePlayback:ze,prefix:null,property:null,results:de,security:null,unselectable:null},space:"html",transform:VA}),BB=lc({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ui,accentHeight:de,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:de,amplitude:de,arabicForm:null,ascent:de,attributeName:null,attributeType:null,azimuth:de,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:de,by:null,calcMode:null,capHeight:de,className:yt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:de,diffuseConstant:de,direction:null,display:null,dur:null,divisor:de,dominantBaseline:null,download:ze,dx:null,dy:null,edgeMode:null,editable:null,elevation:de,enableBackground:null,end:null,event:null,exponent:de,externalResourcesRequired:null,fill:null,fillOpacity:de,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Al,g2:Al,glyphName:Al,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:de,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:de,horizOriginX:de,horizOriginY:de,id:null,ideographic:de,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:de,k:de,k1:de,k2:de,k3:de,k4:de,kernelMatrix:ui,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:de,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:de,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:de,overlineThickness:de,paintOrder:null,panose1:null,path:null,pathLength:de,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:yt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:de,pointsAtY:de,pointsAtZ:de,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ui,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ui,rev:ui,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ui,requiredFeatures:ui,requiredFonts:ui,requiredFormats:ui,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:de,specularExponent:de,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:de,strikethroughThickness:de,string:null,stroke:null,strokeDashArray:ui,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:de,strokeOpacity:de,strokeWidth:null,style:null,surfaceScale:de,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ui,tabIndex:de,tableValues:null,target:null,targetX:de,targetY:de,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ui,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:de,underlineThickness:de,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:de,values:null,vAlphabetic:de,vMathematical:de,vectorEffect:null,vHanging:de,vIdeographic:de,version:null,vertAdvY:de,vertOriginX:de,vertOriginY:de,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:de,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:XA}),BA=lc({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),ZA=lc({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:VA}),qA=lc({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),ZB={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},qB=/[A-Z]/g,dT=/-[a-z]/g,UB=/^data[-\w.:]+$/i;function UA(t,e){const n=Ab(e);let i=e,r=Fn;if(n in t.normal)return t.property[t.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&UB.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(dT,GB);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!dT.test(s)){let o=s.replace(qB,YB);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}r=Pv}return new r(i,e)}function YB(t){return"-"+t.toLowerCase()}function GB(t){return t.charAt(1).toUpperCase()}const YA=zA([IA,VB,BA,ZA,qA],"html"),Ih=zA([IA,BB,BA,ZA,qA],"svg");function GA(t){return t.join(" ").trim()}var Ol={},ey,pT;function WB(){if(pT)return ey;pT=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,c=`
68
+ `,h="/",d="*",p="",g="comment",O="declaration";function x(k,_){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];_=_||{};var T=1,C=1;function D(F){var Y=F.match(e);Y&&(T+=Y.length);var Z=F.lastIndexOf(c);C=~Z?F.length-Z:C+F.length}function j(){var F={line:T,column:C};return function(Y){return Y.position=new A(F),B(),Y}}function A(F){this.start=F,this.end={line:T,column:C},this.source=_.source}A.prototype.content=k;function M(F){var Y=new Error(_.source+":"+T+":"+C+": "+F);if(Y.reason=F,Y.filename=_.source,Y.line=T,Y.column=C,Y.source=k,!_.silent)throw Y}function I(F){var Y=F.exec(k);if(Y){var Z=Y[0];return D(Z),k=k.slice(Z.length),Y}}function B(){I(n)}function $(F){var Y;for(F=F||[];Y=U();)Y!==!1&&F.push(Y);return F}function U(){var F=j();if(!(h!=k.charAt(0)||d!=k.charAt(1))){for(var Y=2;p!=k.charAt(Y)&&(d!=k.charAt(Y)||h!=k.charAt(Y+1));)++Y;if(Y+=2,p===k.charAt(Y-1))return M("End of comment missing");var Z=k.slice(2,Y-2);return C+=2,D(Z),k=k.slice(Y),C+=2,F({type:g,comment:Z})}}function H(){var F=j(),Y=I(i);if(Y){if(U(),!I(r))return M("property missing ':'");var Z=I(s),J=F({type:O,property:S(Y[0].replace(t,p)),value:Z?S(Z[0].replace(t,p)):p});return I(o),J}}function oe(){var F=[];$(F);for(var Y;Y=H();)Y!==!1&&(F.push(Y),$(F));return F}return B(),oe()}function S(k){return k?k.replace(l,p):p}return ey=x,ey}var mT;function HB(){if(mT)return Ol;mT=1;var t=Ol&&Ol.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Ol,"__esModule",{value:!0}),Ol.default=n;const e=t(WB());function n(i,r){let s=null;if(!i||typeof i!="string")return s;const o=(0,e.default)(i),l=typeof r=="function";return o.forEach(c=>{if(c.type!=="declaration")return;const{property:h,value:d}=c;l?r(h,d,c):d&&(s=s||{},s[h]=d)}),s}return Ol}var fu={},gT;function FB(){if(gT)return fu;gT=1,Object.defineProperty(fu,"__esModule",{value:!0}),fu.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,s=function(h){return!h||n.test(h)||t.test(h)},o=function(h,d){return d.toUpperCase()},l=function(h,d){return"".concat(d,"-")},c=function(h,d){return d===void 0&&(d={}),s(h)?h:(h=h.toLowerCase(),d.reactCompat?h=h.replace(r,l):h=h.replace(i,l),h.replace(e,o))};return fu.camelCase=c,fu}var du,OT;function KB(){if(OT)return du;OT=1;var t=du&&du.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},e=t(HB()),n=FB();function i(r,s){var o={};return!r||typeof r!="string"||(0,e.default)(r,function(l,c){l&&c&&(o[(0,n.camelCase)(l,s)]=c)}),o}return i.default=i,du=i,du}var JB=KB();const eZ=cv(JB),WA=HA("end"),Tv=HA("start");function HA(t){return e;function e(n){const i=n&&n.position&&n.position[t]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function tZ(t){const e=Tv(t),n=WA(t);if(e&&n)return{start:e,end:n}}function Nu(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?yT(t.position):"start"in t||"end"in t?yT(t):"line"in t||"column"in t?$b(t):""}function $b(t){return bT(t&&t.line)+":"+bT(t&&t.column)}function yT(t){return $b(t&&t.start)+"-"+$b(t&&t.end)}function bT(t){return t&&typeof t=="number"?t:1}class vn extends Error{constructor(e,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof e=="string"?r=e:!s.cause&&e&&(o=!0,r=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof i=="string"){const c=i.indexOf(":");c===-1?s.ruleId=i:(s.source=i.slice(0,c),s.ruleId=i.slice(c+1))}if(!s.place&&s.ancestors&&s.ancestors){const c=s.ancestors[s.ancestors.length-1];c&&(s.place=c.position)}const l=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=Nu(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}vn.prototype.file="";vn.prototype.name="";vn.prototype.reason="";vn.prototype.message="";vn.prototype.stack="";vn.prototype.column=void 0;vn.prototype.line=void 0;vn.prototype.ancestors=void 0;vn.prototype.cause=void 0;vn.prototype.fatal=void 0;vn.prototype.place=void 0;vn.prototype.ruleId=void 0;vn.prototype.source=void 0;const Cv={}.hasOwnProperty,nZ=new Map,iZ=/[A-Z]/g,rZ=new Set(["table","tbody","thead","tfoot","tr"]),sZ=new Set(["td","th"]),FA="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function oZ(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=e.filePath||void 0;let i;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=pZ(n,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=dZ(n,e.jsx,e.jsxs)}const r={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:i,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Ih:YA,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},s=KA(r,t,void 0);return s&&typeof s!="string"?s:r.create(t,r.Fragment,{children:s||void 0},void 0)}function KA(t,e,n){if(e.type==="element")return aZ(t,e,n);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return lZ(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return uZ(t,e,n);if(e.type==="mdxjsEsm")return cZ(t,e);if(e.type==="root")return hZ(t,e,n);if(e.type==="text")return fZ(t,e)}function aZ(t,e,n){const i=t.schema;let r=i;e.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=Ih,t.schema=r),t.ancestors.push(e);const s=eR(t,e.tagName,!1),o=mZ(t,e);let l=Ev(t,e);return rZ.has(e.tagName)&&(l=l.filter(function(c){return typeof c=="string"?!Bm(c):!0})),JA(t,o,s,e),Qv(o,l),t.ancestors.pop(),t.schema=i,t.create(e,s,o,n)}function lZ(t,e){if(e.data&&e.data.estree&&t.evaluater){const i=e.data.estree.body[0];return i.type,t.evaluater.evaluateExpression(i.expression)}rh(t,e.position)}function cZ(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);rh(t,e.position)}function uZ(t,e,n){const i=t.schema;let r=i;e.name==="svg"&&i.space==="html"&&(r=Ih,t.schema=r),t.ancestors.push(e);const s=e.name===null?t.Fragment:eR(t,e.name,!0),o=gZ(t,e),l=Ev(t,e);return JA(t,o,s,e),Qv(o,l),t.ancestors.pop(),t.schema=i,t.create(e,s,o,n)}function hZ(t,e,n){const i={};return Qv(i,Ev(t,e)),t.create(e,t.Fragment,i,n)}function fZ(t,e){return e.value}function JA(t,e,n,i){typeof n!="string"&&n!==t.Fragment&&t.passNode&&(e.node=i)}function Qv(t,e){if(e.length>0){const n=e.length>1?e:e[0];n&&(t.children=n)}}function dZ(t,e,n){return i;function i(r,s,o,l){const h=Array.isArray(o.children)?n:e;return l?h(s,o,l):h(s,o)}}function pZ(t,e){return n;function n(i,r,s,o){const l=Array.isArray(s.children),c=Tv(i);return e(r,s,o,l,{columnNumber:c?c.column-1:void 0,fileName:t,lineNumber:c?c.line:void 0},void 0)}}function mZ(t,e){const n={};let i,r;for(r in e.properties)if(r!=="children"&&Cv.call(e.properties,r)){const s=OZ(t,r,e.properties[r]);if(s){const[o,l]=s;t.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&sZ.has(e.tagName)?i=l:n[o]=l}}if(i){const s=n.style||(n.style={});s[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function gZ(t,e){const n={};for(const i of e.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&t.evaluater){const s=i.data.estree.body[0];s.type;const o=s.expression;o.type;const l=o.properties[0];l.type,Object.assign(n,t.evaluater.evaluateExpression(l.argument))}else rh(t,e.position);else{const r=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&t.evaluater){const l=i.value.data.estree.body[0];l.type,s=t.evaluater.evaluateExpression(l.expression)}else rh(t,e.position);else s=i.value===null?!0:i.value;n[r]=s}return n}function Ev(t,e){const n=[];let i=-1;const r=t.passKeys?new Map:nZ;for(;++i<e.children.length;){const s=e.children[i];let o;if(t.passKeys){const c=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(c){const h=r.get(c)||0;o=c+"-"+h,r.set(c,h+1)}}const l=KA(t,s,o);l!==void 0&&n.push(l)}return n}function OZ(t,e,n){const i=UA(t.schema,e);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?NA(n):GA(n)),i.property==="style"){let r=typeof n=="object"?n:yZ(t,String(n));return t.stylePropertyNameCase==="css"&&(r=bZ(r)),["style",r]}return[t.elementAttributeNameCase==="react"&&i.space?ZB[i.property]||i.property:i.attribute,n]}}function yZ(t,e){try{return eZ(e,{reactCompat:!0})}catch(n){if(t.ignoreInvalidStyle)return{};const i=n,r=new vn("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=FA+"#cannot-parse-style-attribute",r}}function eR(t,e,n){let i;if(!n)i={type:"Literal",value:e};else if(e.includes(".")){const r=e.split(".");let s=-1,o;for(;++s<r.length;){const l=uT(r[s])?{type:"Identifier",name:r[s]}:{type:"Literal",value:r[s]};o=o?{type:"MemberExpression",object:o,property:l,computed:!!(s&&l.type==="Literal"),optional:!1}:l}i=o}else i=uT(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(i.type==="Literal"){const r=i.value;return Cv.call(t.components,r)?t.components[r]:r}if(t.evaluater)return t.evaluater.evaluateExpression(i);rh(t)}function rh(t,e){const n=new vn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=t.filePath||void 0,n.url=FA+"#cannot-handle-mdx-estrees-without-createevaluater",n}function bZ(t){const e={};let n;for(n in t)Cv.call(t,n)&&(e[xZ(n)]=t[n]);return e}function xZ(t){let e=t.replace(iZ,vZ);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function vZ(t){return"-"+t.toLowerCase()}const ty={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},SZ={};function Av(t,e){const n=SZ,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return tR(t,i,r)}function tR(t,e,n){if(_Z(t)){if("value"in t)return t.type==="html"&&!n?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return xT(t.children,e,n)}return Array.isArray(t)?xT(t,e,n):""}function xT(t,e,n){const i=[];let r=-1;for(;++r<t.length;)i[r]=tR(t[r],e,n);return i.join("")}function _Z(t){return!!(t&&typeof t=="object")}const vT=document.createElement("i");function Rv(t){const e="&"+t+";";vT.innerHTML=e;const n=vT.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function gi(t,e,n,i){const r=t.length;let s=0,o;if(e<0?e=-e>r?0:r+e:e=e>r?r:e,n=n>0?n:0,i.length<1e4)o=Array.from(i),o.unshift(e,n),t.splice(...o);else for(n&&t.splice(e,n);s<i.length;)o=i.slice(s,s+1e4),o.unshift(e,0),t.splice(...o),s+=1e4,e+=1e4}function Mi(t,e){return t.length>0?(gi(t,t.length,0,e),t):e}const ST={}.hasOwnProperty;function nR(t){const e={};let n=-1;for(;++n<t.length;)kZ(e,t[n]);return e}function kZ(t,e){let n;for(n in e){const r=(ST.call(t,n)?t[n]:void 0)||(t[n]={}),s=e[n];let o;if(s)for(o in s){ST.call(r,o)||(r[o]=[]);const l=s[o];wZ(r[o],Array.isArray(l)?l:l?[l]:[])}}}function wZ(t,e){let n=-1;const i=[];for(;++n<e.length;)(e[n].add==="after"?t:i).push(e[n]);gi(t,0,0,i)}function iR(t,e){const n=Number.parseInt(t,e);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ki(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qn=xo(/[A-Za-z]/),bn=xo(/[\dA-Za-z]/),PZ=xo(/[#-'*+\--9=?A-Z^-~]/);function Ip(t){return t!==null&&(t<32||t===127)}const Mb=xo(/\d/),TZ=xo(/[\dA-Fa-f]/),CZ=xo(/[!-/:-@[-`{-~]/);function Qe(t){return t!==null&&t<-2}function Ot(t){return t!==null&&(t<0||t===32)}function qe(t){return t===-2||t===-1||t===32}const Zm=xo(new RegExp("\\p{P}|\\p{S}","u")),pa=xo(/\s/);function xo(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function cc(t){const e=[];let n=-1,i=0,r=0;for(;++n<t.length;){const s=t.charCodeAt(n);let o="";if(s===37&&bn(t.charCodeAt(n+1))&&bn(t.charCodeAt(n+2)))r=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const l=t.charCodeAt(n+1);s<56320&&l>56319&&l<57344?(o=String.fromCharCode(s,l),r=1):o="�"}else o=String.fromCharCode(s);o&&(e.push(t.slice(i,n),encodeURIComponent(o)),i=n+r+1,o=""),r&&(n+=r,r=0)}return e.join("")+t.slice(i)}function Ke(t,e,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(c){return qe(c)?(t.enter(n),l(c)):e(c)}function l(c){return qe(c)&&s++<r?(t.consume(c),l):(t.exit(n),e(c))}}const QZ={tokenize:EZ};function EZ(t){const e=t.attempt(this.parser.constructs.contentInitial,i,r);let n;return e;function i(l){if(l===null){t.consume(l);return}return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),Ke(t,e,"linePrefix")}function r(l){return t.enter("paragraph"),s(l)}function s(l){const c=t.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,o(l)}function o(l){if(l===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(l);return}return Qe(l)?(t.consume(l),t.exit("chunkText"),s):(t.consume(l),o)}}const AZ={tokenize:RZ},_T={tokenize:LZ};function RZ(t){const e=this,n=[];let i=0,r,s,o;return l;function l(C){if(i<n.length){const D=n[i];return e.containerState=D[1],t.attempt(D[0].continuation,c,h)(C)}return h(C)}function c(C){if(i++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,r&&T();const D=e.events.length;let j=D,A;for(;j--;)if(e.events[j][0]==="exit"&&e.events[j][1].type==="chunkFlow"){A=e.events[j][1].end;break}_(i);let M=D;for(;M<e.events.length;)e.events[M][1].end={...A},M++;return gi(e.events,j+1,0,e.events.slice(D)),e.events.length=M,h(C)}return l(C)}function h(C){if(i===n.length){if(!r)return g(C);if(r.currentConstruct&&r.currentConstruct.concrete)return x(C);e.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(_T,d,p)(C)}function d(C){return r&&T(),_(i),g(C)}function p(C){return e.parser.lazy[e.now().line]=i!==n.length,o=e.now().offset,x(C)}function g(C){return e.containerState={},t.attempt(_T,O,x)(C)}function O(C){return i++,n.push([e.currentConstruct,e.containerState]),g(C)}function x(C){if(C===null){r&&T(),_(0),t.consume(C);return}return r=r||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:s}),S(C)}function S(C){if(C===null){k(t.exit("chunkFlow"),!0),_(0),t.consume(C);return}return Qe(C)?(t.consume(C),k(t.exit("chunkFlow")),i=0,e.interrupt=void 0,l):(t.consume(C),S)}function k(C,D){const j=e.sliceStream(C);if(D&&j.push(null),C.previous=s,s&&(s.next=C),s=C,r.defineSkip(C.start),r.write(j),e.parser.lazy[C.start.line]){let A=r.events.length;for(;A--;)if(r.events[A][1].start.offset<o&&(!r.events[A][1].end||r.events[A][1].end.offset>o))return;const M=e.events.length;let I=M,B,$;for(;I--;)if(e.events[I][0]==="exit"&&e.events[I][1].type==="chunkFlow"){if(B){$=e.events[I][1].end;break}B=!0}for(_(i),A=M;A<e.events.length;)e.events[A][1].end={...$},A++;gi(e.events,I+1,0,e.events.slice(M)),e.events.length=A}}function _(C){let D=n.length;for(;D-- >C;){const j=n[D];e.containerState=j[1],j[0].exit.call(e,t)}n.length=C}function T(){r.write([null]),s=void 0,r=void 0,e.containerState._closeFlow=void 0}}function LZ(t,e,n){return Ke(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Bl(t){if(t===null||Ot(t)||pa(t))return 1;if(Zm(t))return 2}function qm(t,e,n){const i=[];let r=-1;for(;++r<t.length;){const s=t[r].resolveAll;s&&!i.includes(s)&&(e=s(e,n),i.push(s))}return e}const Db={name:"attention",resolveAll:$Z,tokenize:MZ};function $Z(t,e){let n=-1,i,r,s,o,l,c,h,d;for(;++n<t.length;)if(t[n][0]==="enter"&&t[n][1].type==="attentionSequence"&&t[n][1]._close){for(i=n;i--;)if(t[i][0]==="exit"&&t[i][1].type==="attentionSequence"&&t[i][1]._open&&e.sliceSerialize(t[i][1]).charCodeAt(0)===e.sliceSerialize(t[n][1]).charCodeAt(0)){if((t[i][1]._close||t[n][1]._open)&&(t[n][1].end.offset-t[n][1].start.offset)%3&&!((t[i][1].end.offset-t[i][1].start.offset+t[n][1].end.offset-t[n][1].start.offset)%3))continue;c=t[i][1].end.offset-t[i][1].start.offset>1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const p={...t[i][1].end},g={...t[n][1].start};kT(p,-c),kT(g,c),o={type:c>1?"strongSequence":"emphasisSequence",start:p,end:{...t[i][1].end}},l={type:c>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:g},s={type:c>1?"strongText":"emphasisText",start:{...t[i][1].end},end:{...t[n][1].start}},r={type:c>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},t[i][1].end={...o.start},t[n][1].start={...l.end},h=[],t[i][1].end.offset-t[i][1].start.offset&&(h=Mi(h,[["enter",t[i][1],e],["exit",t[i][1],e]])),h=Mi(h,[["enter",r,e],["enter",o,e],["exit",o,e],["enter",s,e]]),h=Mi(h,qm(e.parser.constructs.insideSpan.null,t.slice(i+1,n),e)),h=Mi(h,[["exit",s,e],["enter",l,e],["exit",l,e],["exit",r,e]]),t[n][1].end.offset-t[n][1].start.offset?(d=2,h=Mi(h,[["enter",t[n][1],e],["exit",t[n][1],e]])):d=0,gi(t,i-1,n-i+3,h),n=i+h.length-d-2;break}}for(n=-1;++n<t.length;)t[n][1].type==="attentionSequence"&&(t[n][1].type="data");return t}function MZ(t,e){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=Bl(i);let s;return o;function o(c){return s=c,t.enter("attentionSequence"),l(c)}function l(c){if(c===s)return t.consume(c),l;const h=t.exit("attentionSequence"),d=Bl(c),p=!d||d===2&&r||n.includes(c),g=!r||r===2&&d||n.includes(i);return h._open=!!(s===42?p:p&&(r||!g)),h._close=!!(s===42?g:g&&(d||!p)),e(c)}}function kT(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const DZ={name:"autolink",tokenize:jZ};function jZ(t,e,n){let i=0;return r;function r(O){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(O),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(O){return Qn(O)?(t.consume(O),o):O===64?n(O):h(O)}function o(O){return O===43||O===45||O===46||bn(O)?(i=1,l(O)):h(O)}function l(O){return O===58?(t.consume(O),i=0,c):(O===43||O===45||O===46||bn(O))&&i++<32?(t.consume(O),l):(i=0,h(O))}function c(O){return O===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(O),t.exit("autolinkMarker"),t.exit("autolink"),e):O===null||O===32||O===60||Ip(O)?n(O):(t.consume(O),c)}function h(O){return O===64?(t.consume(O),d):PZ(O)?(t.consume(O),h):n(O)}function d(O){return bn(O)?p(O):n(O)}function p(O){return O===46?(t.consume(O),i=0,d):O===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(O),t.exit("autolinkMarker"),t.exit("autolink"),e):g(O)}function g(O){if((O===45||bn(O))&&i++<63){const x=O===45?g:p;return t.consume(O),x}return n(O)}}const Xh={partial:!0,tokenize:NZ};function NZ(t,e,n){return i;function i(s){return qe(s)?Ke(t,r,"linePrefix")(s):r(s)}function r(s){return s===null||Qe(s)?e(s):n(s)}}const rR={continuation:{tokenize:IZ},exit:XZ,name:"blockQuote",tokenize:zZ};function zZ(t,e,n){const i=this;return r;function r(o){if(o===62){const l=i.containerState;return l.open||(t.enter("blockQuote",{_container:!0}),l.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(o),t.exit("blockQuoteMarker"),s}return n(o)}function s(o){return qe(o)?(t.enter("blockQuotePrefixWhitespace"),t.consume(o),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(o))}}function IZ(t,e,n){const i=this;return r;function r(o){return qe(o)?Ke(t,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return t.attempt(rR,e,n)(o)}}function XZ(t){t.exit("blockQuote")}const sR={name:"characterEscape",tokenize:VZ};function VZ(t,e,n){return i;function i(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),r}function r(s){return CZ(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):n(s)}}const oR={name:"characterReference",tokenize:BZ};function BZ(t,e,n){const i=this;let r=0,s,o;return l;function l(p){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),c}function c(p){return p===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(p),t.exit("characterReferenceMarkerNumeric"),h):(t.enter("characterReferenceValue"),s=31,o=bn,d(p))}function h(p){return p===88||p===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(p),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,o=TZ,d):(t.enter("characterReferenceValue"),s=7,o=Mb,d(p))}function d(p){if(p===59&&r){const g=t.exit("characterReferenceValue");return o===bn&&!Rv(i.sliceSerialize(g))?n(p):(t.enter("characterReferenceMarker"),t.consume(p),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return o(p)&&r++<s?(t.consume(p),d):n(p)}}const wT={partial:!0,tokenize:qZ},PT={concrete:!0,name:"codeFenced",tokenize:ZZ};function ZZ(t,e,n){const i=this,r={partial:!0,tokenize:j};let s=0,o=0,l;return c;function c(A){return h(A)}function h(A){const M=i.events[i.events.length-1];return s=M&&M[1].type==="linePrefix"?M[2].sliceSerialize(M[1],!0).length:0,l=A,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),d(A)}function d(A){return A===l?(o++,t.consume(A),d):o<3?n(A):(t.exit("codeFencedFenceSequence"),qe(A)?Ke(t,p,"whitespace")(A):p(A))}function p(A){return A===null||Qe(A)?(t.exit("codeFencedFence"),i.interrupt?e(A):t.check(wT,S,D)(A)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),g(A))}function g(A){return A===null||Qe(A)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),p(A)):qe(A)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Ke(t,O,"whitespace")(A)):A===96&&A===l?n(A):(t.consume(A),g)}function O(A){return A===null||Qe(A)?p(A):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),x(A))}function x(A){return A===null||Qe(A)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),p(A)):A===96&&A===l?n(A):(t.consume(A),x)}function S(A){return t.attempt(r,D,k)(A)}function k(A){return t.enter("lineEnding"),t.consume(A),t.exit("lineEnding"),_}function _(A){return s>0&&qe(A)?Ke(t,T,"linePrefix",s+1)(A):T(A)}function T(A){return A===null||Qe(A)?t.check(wT,S,D)(A):(t.enter("codeFlowValue"),C(A))}function C(A){return A===null||Qe(A)?(t.exit("codeFlowValue"),T(A)):(t.consume(A),C)}function D(A){return t.exit("codeFenced"),e(A)}function j(A,M,I){let B=0;return $;function $(Y){return A.enter("lineEnding"),A.consume(Y),A.exit("lineEnding"),U}function U(Y){return A.enter("codeFencedFence"),qe(Y)?Ke(A,H,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y):H(Y)}function H(Y){return Y===l?(A.enter("codeFencedFenceSequence"),oe(Y)):I(Y)}function oe(Y){return Y===l?(B++,A.consume(Y),oe):B>=o?(A.exit("codeFencedFenceSequence"),qe(Y)?Ke(A,F,"whitespace")(Y):F(Y)):I(Y)}function F(Y){return Y===null||Qe(Y)?(A.exit("codeFencedFence"),M(Y)):I(Y)}}}function qZ(t,e,n){const i=this;return r;function r(o){return o===null?n(o):(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s)}function s(o){return i.parser.lazy[i.now().line]?n(o):e(o)}}const ny={name:"codeIndented",tokenize:YZ},UZ={partial:!0,tokenize:GZ};function YZ(t,e,n){const i=this;return r;function r(h){return t.enter("codeIndented"),Ke(t,s,"linePrefix",5)(h)}function s(h){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(h):n(h)}function o(h){return h===null?c(h):Qe(h)?t.attempt(UZ,o,c)(h):(t.enter("codeFlowValue"),l(h))}function l(h){return h===null||Qe(h)?(t.exit("codeFlowValue"),o(h)):(t.consume(h),l)}function c(h){return t.exit("codeIndented"),e(h)}}function GZ(t,e,n){const i=this;return r;function r(o){return i.parser.lazy[i.now().line]?n(o):Qe(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),r):Ke(t,s,"linePrefix",5)(o)}function s(o){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?e(o):Qe(o)?r(o):n(o)}}const WZ={name:"codeText",previous:FZ,resolve:HZ,tokenize:KZ};function HZ(t){let e=t.length-4,n=3,i,r;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(i=n;++i<e;)if(t[i][1].type==="codeTextData"){t[n][1].type="codeTextPadding",t[e][1].type="codeTextPadding",n+=2,e-=2;break}}for(i=n-1,e++;++i<=e;)r===void 0?i!==e&&t[i][1].type!=="lineEnding"&&(r=i):(i===e||t[i][1].type==="lineEnding")&&(t[r][1].type="codeTextData",i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),e-=i-r-2,i=r+2),r=void 0);return t}function FZ(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function KZ(t,e,n){let i=0,r,s;return o;function o(p){return t.enter("codeText"),t.enter("codeTextSequence"),l(p)}function l(p){return p===96?(t.consume(p),i++,l):(t.exit("codeTextSequence"),c(p))}function c(p){return p===null?n(p):p===32?(t.enter("space"),t.consume(p),t.exit("space"),c):p===96?(s=t.enter("codeTextSequence"),r=0,d(p)):Qe(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),c):(t.enter("codeTextData"),h(p))}function h(p){return p===null||p===32||p===96||Qe(p)?(t.exit("codeTextData"),c(p)):(t.consume(p),h)}function d(p){return p===96?(t.consume(p),r++,d):r===i?(t.exit("codeTextSequence"),t.exit("codeText"),e(p)):(s.type="codeTextData",h(p))}}class JZ{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(e,i):e>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(e,n,i){const r=n||0;this.setCursor(Math.trunc(e));const s=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&pu(this.left,i),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),pu(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),pu(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){const n=this.left.splice(e,Number.POSITIVE_INFINITY);pu(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);pu(this.left,n.reverse())}}}function pu(t,e){let n=0;if(e.length<1e4)t.push(...e);else for(;n<e.length;)t.push(...e.slice(n,n+1e4)),n+=1e4}function aR(t){const e={};let n=-1,i,r,s,o,l,c,h;const d=new JZ(t);for(;++n<d.length;){for(;n in e;)n=e[n];if(i=d.get(n),n&&i[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(c=i[1]._tokenizer.events,s=0,s<c.length&&c[s][1].type==="lineEndingBlank"&&(s+=2),s<c.length&&c[s][1].type==="content"))for(;++s<c.length&&c[s][1].type!=="content";)c[s][1].type==="chunkText"&&(c[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(e,eq(d,n)),n=e[n],h=!0);else if(i[1]._container){for(s=n,r=void 0;s--;)if(o=d.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(r&&(d.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;r&&(i[1].end={...d.get(r)[1].start},l=d.slice(r,n),l.unshift(i),d.splice(r,n-r+1,l))}}return gi(t,0,Number.POSITIVE_INFINITY,d.slice(0)),!h}function eq(t,e){const n=t.get(e)[1],i=t.get(e)[2];let r=e-1;const s=[];let o=n._tokenizer;o||(o=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const l=o.events,c=[],h={};let d,p,g=-1,O=n,x=0,S=0;const k=[S];for(;O;){for(;t.get(++r)[1]!==O;);s.push(r),O._tokenizer||(d=i.sliceStream(O),O.next||d.push(null),p&&o.defineSkip(O.start),O._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),O._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),p=O,O=O.next}for(O=n;++g<l.length;)l[g][0]==="exit"&&l[g-1][0]==="enter"&&l[g][1].type===l[g-1][1].type&&l[g][1].start.line!==l[g][1].end.line&&(S=g+1,k.push(S),O._tokenizer=void 0,O.previous=void 0,O=O.next);for(o.events=[],O?(O._tokenizer=void 0,O.previous=void 0):k.pop(),g=k.length;g--;){const _=l.slice(k[g],k[g+1]),T=s.pop();c.push([T,T+_.length-1]),t.splice(T,2,_)}for(c.reverse(),g=-1;++g<c.length;)h[x+c[g][0]]=x+c[g][1],x+=c[g][1]-c[g][0]-1;return h}const tq={resolve:iq,tokenize:rq},nq={partial:!0,tokenize:sq};function iq(t){return aR(t),t}function rq(t,e){let n;return i;function i(l){return t.enter("content"),n=t.enter("chunkContent",{contentType:"content"}),r(l)}function r(l){return l===null?s(l):Qe(l)?t.check(nq,o,s)(l):(t.consume(l),r)}function s(l){return t.exit("chunkContent"),t.exit("content"),e(l)}function o(l){return t.consume(l),t.exit("chunkContent"),n.next=t.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function sq(t,e,n){const i=this;return r;function r(o){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),Ke(t,s,"linePrefix")}function s(o){if(o===null||Qe(o))return n(o);const l=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?e(o):t.interrupt(i.parser.constructs.flow,n,e)(o)}}function lR(t,e,n,i,r,s,o,l,c){const h=c||Number.POSITIVE_INFINITY;let d=0;return p;function p(_){return _===60?(t.enter(i),t.enter(r),t.enter(s),t.consume(_),t.exit(s),g):_===null||_===32||_===41||Ip(_)?n(_):(t.enter(i),t.enter(o),t.enter(l),t.enter("chunkString",{contentType:"string"}),S(_))}function g(_){return _===62?(t.enter(s),t.consume(_),t.exit(s),t.exit(r),t.exit(i),e):(t.enter(l),t.enter("chunkString",{contentType:"string"}),O(_))}function O(_){return _===62?(t.exit("chunkString"),t.exit(l),g(_)):_===null||_===60||Qe(_)?n(_):(t.consume(_),_===92?x:O)}function x(_){return _===60||_===62||_===92?(t.consume(_),O):O(_)}function S(_){return!d&&(_===null||_===41||Ot(_))?(t.exit("chunkString"),t.exit(l),t.exit(o),t.exit(i),e(_)):d<h&&_===40?(t.consume(_),d++,S):_===41?(t.consume(_),d--,S):_===null||_===32||_===40||Ip(_)?n(_):(t.consume(_),_===92?k:S)}function k(_){return _===40||_===41||_===92?(t.consume(_),S):S(_)}}function cR(t,e,n,i,r,s){const o=this;let l=0,c;return h;function h(O){return t.enter(i),t.enter(r),t.consume(O),t.exit(r),t.enter(s),d}function d(O){return l>999||O===null||O===91||O===93&&!c||O===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(O):O===93?(t.exit(s),t.enter(r),t.consume(O),t.exit(r),t.exit(i),e):Qe(O)?(t.enter("lineEnding"),t.consume(O),t.exit("lineEnding"),d):(t.enter("chunkString",{contentType:"string"}),p(O))}function p(O){return O===null||O===91||O===93||Qe(O)||l++>999?(t.exit("chunkString"),d(O)):(t.consume(O),c||(c=!qe(O)),O===92?g:p)}function g(O){return O===91||O===92||O===93?(t.consume(O),l++,p):p(O)}}function uR(t,e,n,i,r,s){let o;return l;function l(g){return g===34||g===39||g===40?(t.enter(i),t.enter(r),t.consume(g),t.exit(r),o=g===40?41:g,c):n(g)}function c(g){return g===o?(t.enter(r),t.consume(g),t.exit(r),t.exit(i),e):(t.enter(s),h(g))}function h(g){return g===o?(t.exit(s),c(o)):g===null?n(g):Qe(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),Ke(t,h,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===o||g===null||Qe(g)?(t.exit("chunkString"),h(g)):(t.consume(g),g===92?p:d)}function p(g){return g===o||g===92?(t.consume(g),d):d(g)}}function zu(t,e){let n;return i;function i(r){return Qe(r)?(t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),n=!0,i):qe(r)?Ke(t,i,n?"linePrefix":"lineSuffix")(r):e(r)}}const oq={name:"definition",tokenize:lq},aq={partial:!0,tokenize:cq};function lq(t,e,n){const i=this;let r;return s;function s(O){return t.enter("definition"),o(O)}function o(O){return cR.call(i,t,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(O)}function l(O){return r=Ki(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),O===58?(t.enter("definitionMarker"),t.consume(O),t.exit("definitionMarker"),c):n(O)}function c(O){return Ot(O)?zu(t,h)(O):h(O)}function h(O){return lR(t,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(O)}function d(O){return t.attempt(aq,p,p)(O)}function p(O){return qe(O)?Ke(t,g,"whitespace")(O):g(O)}function g(O){return O===null||Qe(O)?(t.exit("definition"),i.parser.defined.push(r),e(O)):n(O)}}function cq(t,e,n){return i;function i(l){return Ot(l)?zu(t,r)(l):n(l)}function r(l){return uR(t,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function s(l){return qe(l)?Ke(t,o,"whitespace")(l):o(l)}function o(l){return l===null||Qe(l)?e(l):n(l)}}const uq={name:"hardBreakEscape",tokenize:hq};function hq(t,e,n){return i;function i(s){return t.enter("hardBreakEscape"),t.consume(s),r}function r(s){return Qe(s)?(t.exit("hardBreakEscape"),e(s)):n(s)}}const fq={name:"headingAtx",resolve:dq,tokenize:pq};function dq(t,e){let n=t.length-2,i=3,r,s;return t[i][1].type==="whitespace"&&(i+=2),n-2>i&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&t[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:t[i][1].start,end:t[n][1].end},s={type:"chunkText",start:t[i][1].start,end:t[n][1].end,contentType:"text"},gi(t,i,n-i+1,[["enter",r,e],["enter",s,e],["exit",s,e],["exit",r,e]])),t}function pq(t,e,n){let i=0;return r;function r(d){return t.enter("atxHeading"),s(d)}function s(d){return t.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&i++<6?(t.consume(d),o):d===null||Ot(d)?(t.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(t.enter("atxHeadingSequence"),c(d)):d===null||Qe(d)?(t.exit("atxHeading"),e(d)):qe(d)?Ke(t,l,"whitespace")(d):(t.enter("atxHeadingText"),h(d))}function c(d){return d===35?(t.consume(d),c):(t.exit("atxHeadingSequence"),l(d))}function h(d){return d===null||d===35||Ot(d)?(t.exit("atxHeadingText"),l(d)):(t.consume(d),h)}}const mq=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],TT=["pre","script","style","textarea"],gq={concrete:!0,name:"htmlFlow",resolveTo:bq,tokenize:xq},Oq={partial:!0,tokenize:Sq},yq={partial:!0,tokenize:vq};function bq(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function xq(t,e,n){const i=this;let r,s,o,l,c;return h;function h(R){return d(R)}function d(R){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(R),p}function p(R){return R===33?(t.consume(R),g):R===47?(t.consume(R),s=!0,S):R===63?(t.consume(R),r=3,i.interrupt?e:L):Qn(R)?(t.consume(R),o=String.fromCharCode(R),k):n(R)}function g(R){return R===45?(t.consume(R),r=2,O):R===91?(t.consume(R),r=5,l=0,x):Qn(R)?(t.consume(R),r=4,i.interrupt?e:L):n(R)}function O(R){return R===45?(t.consume(R),i.interrupt?e:L):n(R)}function x(R){const fe="CDATA[";return R===fe.charCodeAt(l++)?(t.consume(R),l===fe.length?i.interrupt?e:H:x):n(R)}function S(R){return Qn(R)?(t.consume(R),o=String.fromCharCode(R),k):n(R)}function k(R){if(R===null||R===47||R===62||Ot(R)){const fe=R===47,_e=o.toLowerCase();return!fe&&!s&&TT.includes(_e)?(r=1,i.interrupt?e(R):H(R)):mq.includes(o.toLowerCase())?(r=6,fe?(t.consume(R),_):i.interrupt?e(R):H(R)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(R):s?T(R):C(R))}return R===45||bn(R)?(t.consume(R),o+=String.fromCharCode(R),k):n(R)}function _(R){return R===62?(t.consume(R),i.interrupt?e:H):n(R)}function T(R){return qe(R)?(t.consume(R),T):$(R)}function C(R){return R===47?(t.consume(R),$):R===58||R===95||Qn(R)?(t.consume(R),D):qe(R)?(t.consume(R),C):$(R)}function D(R){return R===45||R===46||R===58||R===95||bn(R)?(t.consume(R),D):j(R)}function j(R){return R===61?(t.consume(R),A):qe(R)?(t.consume(R),j):C(R)}function A(R){return R===null||R===60||R===61||R===62||R===96?n(R):R===34||R===39?(t.consume(R),c=R,M):qe(R)?(t.consume(R),A):I(R)}function M(R){return R===c?(t.consume(R),c=null,B):R===null||Qe(R)?n(R):(t.consume(R),M)}function I(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||Ot(R)?j(R):(t.consume(R),I)}function B(R){return R===47||R===62||qe(R)?C(R):n(R)}function $(R){return R===62?(t.consume(R),U):n(R)}function U(R){return R===null||Qe(R)?H(R):qe(R)?(t.consume(R),U):n(R)}function H(R){return R===45&&r===2?(t.consume(R),Z):R===60&&r===1?(t.consume(R),J):R===62&&r===4?(t.consume(R),N):R===63&&r===3?(t.consume(R),L):R===93&&r===5?(t.consume(R),Oe):Qe(R)&&(r===6||r===7)?(t.exit("htmlFlowData"),t.check(Oq,te,oe)(R)):R===null||Qe(R)?(t.exit("htmlFlowData"),oe(R)):(t.consume(R),H)}function oe(R){return t.check(yq,F,te)(R)}function F(R){return t.enter("lineEnding"),t.consume(R),t.exit("lineEnding"),Y}function Y(R){return R===null||Qe(R)?oe(R):(t.enter("htmlFlowData"),H(R))}function Z(R){return R===45?(t.consume(R),L):H(R)}function J(R){return R===47?(t.consume(R),o="",ce):H(R)}function ce(R){if(R===62){const fe=o.toLowerCase();return TT.includes(fe)?(t.consume(R),N):H(R)}return Qn(R)&&o.length<8?(t.consume(R),o+=String.fromCharCode(R),ce):H(R)}function Oe(R){return R===93?(t.consume(R),L):H(R)}function L(R){return R===62?(t.consume(R),N):R===45&&r===2?(t.consume(R),L):H(R)}function N(R){return R===null||Qe(R)?(t.exit("htmlFlowData"),te(R)):(t.consume(R),N)}function te(R){return t.exit("htmlFlow"),e(R)}}function vq(t,e,n){const i=this;return r;function r(o){return Qe(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),s):n(o)}function s(o){return i.parser.lazy[i.now().line]?n(o):e(o)}}function Sq(t,e,n){return i;function i(r){return t.enter("lineEnding"),t.consume(r),t.exit("lineEnding"),t.attempt(Xh,e,n)}}const _q={name:"htmlText",tokenize:kq};function kq(t,e,n){const i=this;let r,s,o;return l;function l(L){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(L),c}function c(L){return L===33?(t.consume(L),h):L===47?(t.consume(L),j):L===63?(t.consume(L),C):Qn(L)?(t.consume(L),I):n(L)}function h(L){return L===45?(t.consume(L),d):L===91?(t.consume(L),s=0,x):Qn(L)?(t.consume(L),T):n(L)}function d(L){return L===45?(t.consume(L),O):n(L)}function p(L){return L===null?n(L):L===45?(t.consume(L),g):Qe(L)?(o=p,J(L)):(t.consume(L),p)}function g(L){return L===45?(t.consume(L),O):p(L)}function O(L){return L===62?Z(L):L===45?g(L):p(L)}function x(L){const N="CDATA[";return L===N.charCodeAt(s++)?(t.consume(L),s===N.length?S:x):n(L)}function S(L){return L===null?n(L):L===93?(t.consume(L),k):Qe(L)?(o=S,J(L)):(t.consume(L),S)}function k(L){return L===93?(t.consume(L),_):S(L)}function _(L){return L===62?Z(L):L===93?(t.consume(L),_):S(L)}function T(L){return L===null||L===62?Z(L):Qe(L)?(o=T,J(L)):(t.consume(L),T)}function C(L){return L===null?n(L):L===63?(t.consume(L),D):Qe(L)?(o=C,J(L)):(t.consume(L),C)}function D(L){return L===62?Z(L):C(L)}function j(L){return Qn(L)?(t.consume(L),A):n(L)}function A(L){return L===45||bn(L)?(t.consume(L),A):M(L)}function M(L){return Qe(L)?(o=M,J(L)):qe(L)?(t.consume(L),M):Z(L)}function I(L){return L===45||bn(L)?(t.consume(L),I):L===47||L===62||Ot(L)?B(L):n(L)}function B(L){return L===47?(t.consume(L),Z):L===58||L===95||Qn(L)?(t.consume(L),$):Qe(L)?(o=B,J(L)):qe(L)?(t.consume(L),B):Z(L)}function $(L){return L===45||L===46||L===58||L===95||bn(L)?(t.consume(L),$):U(L)}function U(L){return L===61?(t.consume(L),H):Qe(L)?(o=U,J(L)):qe(L)?(t.consume(L),U):B(L)}function H(L){return L===null||L===60||L===61||L===62||L===96?n(L):L===34||L===39?(t.consume(L),r=L,oe):Qe(L)?(o=H,J(L)):qe(L)?(t.consume(L),H):(t.consume(L),F)}function oe(L){return L===r?(t.consume(L),r=void 0,Y):L===null?n(L):Qe(L)?(o=oe,J(L)):(t.consume(L),oe)}function F(L){return L===null||L===34||L===39||L===60||L===61||L===96?n(L):L===47||L===62||Ot(L)?B(L):(t.consume(L),F)}function Y(L){return L===47||L===62||Ot(L)?B(L):n(L)}function Z(L){return L===62?(t.consume(L),t.exit("htmlTextData"),t.exit("htmlText"),e):n(L)}function J(L){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(L),t.exit("lineEnding"),ce}function ce(L){return qe(L)?Ke(t,Oe,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):Oe(L)}function Oe(L){return t.enter("htmlTextData"),o(L)}}const Lv={name:"labelEnd",resolveAll:Cq,resolveTo:Qq,tokenize:Eq},wq={tokenize:Aq},Pq={tokenize:Rq},Tq={tokenize:Lq};function Cq(t){let e=-1;const n=[];for(;++e<t.length;){const i=t[e][1];if(n.push(t[e]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",e+=r}}return t.length!==n.length&&gi(t,0,t.length,n),t}function Qq(t,e){let n=t.length,i=0,r,s,o,l;for(;n--;)if(r=t[n][1],s){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;t[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(o){if(t[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(s=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(o=n);const c={type:t[s][1].type==="labelLink"?"link":"image",start:{...t[s][1].start},end:{...t[t.length-1][1].end}},h={type:"label",start:{...t[s][1].start},end:{...t[o][1].end}},d={type:"labelText",start:{...t[s+i+2][1].end},end:{...t[o-2][1].start}};return l=[["enter",c,e],["enter",h,e]],l=Mi(l,t.slice(s+1,s+i+3)),l=Mi(l,[["enter",d,e]]),l=Mi(l,qm(e.parser.constructs.insideSpan.null,t.slice(s+i+4,o-3),e)),l=Mi(l,[["exit",d,e],t[o-2],t[o-1],["exit",h,e]]),l=Mi(l,t.slice(o+1)),l=Mi(l,[["exit",c,e]]),gi(t,s,t.length,l),t}function Eq(t,e,n){const i=this;let r=i.events.length,s,o;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){s=i.events[r][1];break}return l;function l(g){return s?s._inactive?p(g):(o=i.parser.defined.includes(Ki(i.sliceSerialize({start:s.end,end:i.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(g),t.exit("labelMarker"),t.exit("labelEnd"),c):n(g)}function c(g){return g===40?t.attempt(wq,d,o?d:p)(g):g===91?t.attempt(Pq,d,o?h:p)(g):o?d(g):p(g)}function h(g){return t.attempt(Tq,d,p)(g)}function d(g){return e(g)}function p(g){return s._balanced=!0,n(g)}}function Aq(t,e,n){return i;function i(p){return t.enter("resource"),t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),r}function r(p){return Ot(p)?zu(t,s)(p):s(p)}function s(p){return p===41?d(p):lR(t,o,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function o(p){return Ot(p)?zu(t,c)(p):d(p)}function l(p){return n(p)}function c(p){return p===34||p===39||p===40?uR(t,h,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):d(p)}function h(p){return Ot(p)?zu(t,d)(p):d(p)}function d(p){return p===41?(t.enter("resourceMarker"),t.consume(p),t.exit("resourceMarker"),t.exit("resource"),e):n(p)}}function Rq(t,e,n){const i=this;return r;function r(l){return cR.call(i,t,s,o,"reference","referenceMarker","referenceString")(l)}function s(l){return i.parser.defined.includes(Ki(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?e(l):n(l)}function o(l){return n(l)}}function Lq(t,e,n){return i;function i(s){return t.enter("reference"),t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),r}function r(s){return s===93?(t.enter("referenceMarker"),t.consume(s),t.exit("referenceMarker"),t.exit("reference"),e):n(s)}}const $q={name:"labelStartImage",resolveAll:Lv.resolveAll,tokenize:Mq};function Mq(t,e,n){const i=this;return r;function r(l){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(l),t.exit("labelImageMarker"),s}function s(l){return l===91?(t.enter("labelMarker"),t.consume(l),t.exit("labelMarker"),t.exit("labelImage"),o):n(l)}function o(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(l):e(l)}}const Dq={name:"labelStartLink",resolveAll:Lv.resolveAll,tokenize:jq};function jq(t,e,n){const i=this;return r;function r(o){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(o),t.exit("labelMarker"),t.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(o):e(o)}}const iy={name:"lineEnding",tokenize:Nq};function Nq(t,e){return n;function n(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),Ke(t,e,"linePrefix")}}const dp={name:"thematicBreak",tokenize:zq};function zq(t,e,n){let i=0,r;return s;function s(h){return t.enter("thematicBreak"),o(h)}function o(h){return r=h,l(h)}function l(h){return h===r?(t.enter("thematicBreakSequence"),c(h)):i>=3&&(h===null||Qe(h))?(t.exit("thematicBreak"),e(h)):n(h)}function c(h){return h===r?(t.consume(h),i++,c):(t.exit("thematicBreakSequence"),qe(h)?Ke(t,l,"whitespace")(h):l(h))}}const Zn={continuation:{tokenize:Bq},exit:qq,name:"list",tokenize:Vq},Iq={partial:!0,tokenize:Uq},Xq={partial:!0,tokenize:Zq};function Vq(t,e,n){const i=this,r=i.events[i.events.length-1];let s=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,o=0;return l;function l(O){const x=i.containerState.type||(O===42||O===43||O===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!i.containerState.marker||O===i.containerState.marker:Mb(O)){if(i.containerState.type||(i.containerState.type=x,t.enter(x,{_container:!0})),x==="listUnordered")return t.enter("listItemPrefix"),O===42||O===45?t.check(dp,n,h)(O):h(O);if(!i.interrupt||O===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),c(O)}return n(O)}function c(O){return Mb(O)&&++o<10?(t.consume(O),c):(!i.interrupt||o<2)&&(i.containerState.marker?O===i.containerState.marker:O===41||O===46)?(t.exit("listItemValue"),h(O)):n(O)}function h(O){return t.enter("listItemMarker"),t.consume(O),t.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||O,t.check(Xh,i.interrupt?n:d,t.attempt(Iq,g,p))}function d(O){return i.containerState.initialBlankLine=!0,s++,g(O)}function p(O){return qe(O)?(t.enter("listItemPrefixWhitespace"),t.consume(O),t.exit("listItemPrefixWhitespace"),g):n(O)}function g(O){return i.containerState.size=s+i.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(O)}}function Bq(t,e,n){const i=this;return i.containerState._closeFlow=void 0,t.check(Xh,r,s);function r(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Ke(t,e,"listItemIndent",i.containerState.size+1)(l)}function s(l){return i.containerState.furtherBlankLines||!qe(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,t.attempt(Xq,e,o)(l))}function o(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,Ke(t,t.attempt(Zn,e,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Zq(t,e,n){const i=this;return Ke(t,r,"listItemIndent",i.containerState.size+1);function r(s){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?e(s):n(s)}}function qq(t){t.exit(this.containerState.type)}function Uq(t,e,n){const i=this;return Ke(t,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(s){const o=i.events[i.events.length-1];return!qe(s)&&o&&o[1].type==="listItemPrefixWhitespace"?e(s):n(s)}}const CT={name:"setextUnderline",resolveTo:Yq,tokenize:Gq};function Yq(t,e){let n=t.length,i,r,s;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){i=n;break}t[n][1].type==="paragraph"&&(r=n)}else t[n][1].type==="content"&&t.splice(n,1),!s&&t[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:{...t[i][1].start},end:{...t[t.length-1][1].end}};return t[r][1].type="setextHeadingText",s?(t.splice(r,0,["enter",o,e]),t.splice(s+1,0,["exit",t[i][1],e]),t[i][1].end={...t[s][1].end}):t[i][1]=o,t.push(["exit",o,e]),t}function Gq(t,e,n){const i=this;let r;return s;function s(h){let d=i.events.length,p;for(;d--;)if(i.events[d][1].type!=="lineEnding"&&i.events[d][1].type!=="linePrefix"&&i.events[d][1].type!=="content"){p=i.events[d][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(t.enter("setextHeadingLine"),r=h,o(h)):n(h)}function o(h){return t.enter("setextHeadingLineSequence"),l(h)}function l(h){return h===r?(t.consume(h),l):(t.exit("setextHeadingLineSequence"),qe(h)?Ke(t,c,"lineSuffix")(h):c(h))}function c(h){return h===null||Qe(h)?(t.exit("setextHeadingLine"),e(h)):n(h)}}const Wq={tokenize:Hq};function Hq(t){const e=this,n=t.attempt(Xh,i,t.attempt(this.parser.constructs.flowInitial,r,Ke(t,t.attempt(this.parser.constructs.flow,r,t.attempt(tq,r)),"linePrefix")));return n;function i(s){if(s===null){t.consume(s);return}return t.enter("lineEndingBlank"),t.consume(s),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function r(s){if(s===null){t.consume(s);return}return t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),e.currentConstruct=void 0,n}}const Fq={resolveAll:fR()},Kq=hR("string"),Jq=hR("text");function hR(t){return{resolveAll:fR(t==="text"?e6:void 0),tokenize:e};function e(n){const i=this,r=this.parser.constructs[t],s=n.attempt(r,o,l);return o;function o(d){return h(d)?s(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return h(d)?(n.exit("data"),s(d)):(n.consume(d),c)}function h(d){if(d===null)return!0;const p=r[d];let g=-1;if(p)for(;++g<p.length;){const O=p[g];if(!O.previous||O.previous.call(i,i.previous))return!0}return!1}}}function fR(t){return e;function e(n,i){let r=-1,s;for(;++r<=n.length;)s===void 0?n[r]&&n[r][1].type==="data"&&(s=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==s+2&&(n[s][1].end=n[r-1][1].end,n.splice(s+2,r-s-2),r=s+2),s=void 0);return t?t(n,i):n}}function e6(t,e){let n=0;for(;++n<=t.length;)if((n===t.length||t[n][1].type==="lineEnding")&&t[n-1][1].type==="data"){const i=t[n-1][1],r=e.sliceStream(i);let s=r.length,o=-1,l=0,c;for(;s--;){const h=r[s];if(typeof h=="string"){for(o=h.length;h.charCodeAt(o-1)===32;)l++,o--;if(o)break;o=-1}else if(h===-2)c=!0,l++;else if(h!==-1){s++;break}}if(e._contentTypeTextTrailing&&n===t.length&&(l=0),l){const h={type:n===t.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:i.start._bufferIndex+o,_index:i.start._index+s,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...h.start},i.start.offset===i.end.offset?Object.assign(i,h):(t.splice(n,0,["enter",h,e],["exit",h,e]),n+=2)}n++}return t}const t6={42:Zn,43:Zn,45:Zn,48:Zn,49:Zn,50:Zn,51:Zn,52:Zn,53:Zn,54:Zn,55:Zn,56:Zn,57:Zn,62:rR},n6={91:oq},i6={[-2]:ny,[-1]:ny,32:ny},r6={35:fq,42:dp,45:[CT,dp],60:gq,61:CT,95:dp,96:PT,126:PT},s6={38:oR,92:sR},o6={[-5]:iy,[-4]:iy,[-3]:iy,33:$q,38:oR,42:Db,60:[DZ,_q],91:Dq,92:[uq,sR],93:Lv,95:Db,96:WZ},a6={null:[Db,Fq]},l6={null:[42,95]},c6={null:[]},u6=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:l6,contentInitial:n6,disable:c6,document:t6,flow:r6,flowInitial:i6,insideSpan:a6,string:s6,text:o6},Symbol.toStringTag,{value:"Module"}));function h6(t,e,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},s=[];let o=[],l=[];const c={attempt:M(j),check:M(A),consume:T,enter:C,exit:D,interrupt:M(A,{interrupt:!0})},h={code:null,containerState:{},defineSkip:S,events:[],now:x,parser:t,previous:null,sliceSerialize:g,sliceStream:O,write:p};let d=e.tokenize.call(h,c);return e.resolveAll&&s.push(e),h;function p(U){return o=Mi(o,U),k(),o[o.length-1]!==null?[]:(I(e,0),h.events=qm(s,h.events,h),h.events)}function g(U,H){return d6(O(U),H)}function O(U){return f6(o,U)}function x(){const{_bufferIndex:U,_index:H,line:oe,column:F,offset:Y}=i;return{_bufferIndex:U,_index:H,line:oe,column:F,offset:Y}}function S(U){r[U.line]=U.column,$()}function k(){let U;for(;i._index<o.length;){const H=o[i._index];if(typeof H=="string")for(U=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===U&&i._bufferIndex<H.length;)_(H.charCodeAt(i._bufferIndex));else _(H)}}function _(U){d=d(U)}function T(U){Qe(U)?(i.line++,i.column=1,i.offset+=U===-3?2:1,$()):U!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===o[i._index].length&&(i._bufferIndex=-1,i._index++)),h.previous=U}function C(U,H){const oe=H||{};return oe.type=U,oe.start=x(),h.events.push(["enter",oe,h]),l.push(oe),oe}function D(U){const H=l.pop();return H.end=x(),h.events.push(["exit",H,h]),H}function j(U,H){I(U,H.from)}function A(U,H){H.restore()}function M(U,H){return oe;function oe(F,Y,Z){let J,ce,Oe,L;return Array.isArray(F)?te(F):"tokenize"in F?te([F]):N(F);function N(xe){return Re;function Re(et){const $e=et!==null&&xe[et],Ht=et!==null&&xe.null,_n=[...Array.isArray($e)?$e:$e?[$e]:[],...Array.isArray(Ht)?Ht:Ht?[Ht]:[]];return te(_n)(et)}}function te(xe){return J=xe,ce=0,xe.length===0?Z:R(xe[ce])}function R(xe){return Re;function Re(et){return L=B(),Oe=xe,xe.partial||(h.currentConstruct=xe),xe.name&&h.parser.constructs.disable.null.includes(xe.name)?_e():xe.tokenize.call(H?Object.assign(Object.create(h),H):h,c,fe,_e)(et)}}function fe(xe){return U(Oe,L),Y}function _e(xe){return L.restore(),++ce<J.length?R(J[ce]):Z}}}function I(U,H){U.resolveAll&&!s.includes(U)&&s.push(U),U.resolve&&gi(h.events,H,h.events.length-H,U.resolve(h.events.slice(H),h)),U.resolveTo&&(h.events=U.resolveTo(h.events,h))}function B(){const U=x(),H=h.previous,oe=h.currentConstruct,F=h.events.length,Y=Array.from(l);return{from:F,restore:Z};function Z(){i=U,h.previous=H,h.currentConstruct=oe,h.events.length=F,l=Y,$()}}function $(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function f6(t,e){const n=e.start._index,i=e.start._bufferIndex,r=e.end._index,s=e.end._bufferIndex;let o;if(n===r)o=[t[n].slice(i,s)];else{if(o=t.slice(n,r),i>-1){const l=o[0];typeof l=="string"?o[0]=l.slice(i):o.shift()}s>0&&o.push(t[r].slice(0,s))}return o}function d6(t,e){let n=-1;const i=[];let r;for(;++n<t.length;){const s=t[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
69
+ `;break}case-3:{o=`\r
70
+ `;break}case-2:{o=e?" ":" ";break}case-1:{if(!e&&r)continue;o=" ";break}default:o=String.fromCharCode(s)}r=s===-2,i.push(o)}return i.join("")}function p6(t){const i={constructs:nR([u6,...(t||{}).extensions||[]]),content:r(QZ),defined:[],document:r(AZ),flow:r(Wq),lazy:{},string:r(Kq),text:r(Jq)};return i;function r(s){return o;function o(l){return h6(i,s,l)}}}function m6(t){for(;!aR(t););return t}const QT=/[\0\t\n\r]/g;function g6(){let t=1,e="",n=!0,i;return r;function r(s,o,l){const c=[];let h,d,p,g,O;for(s=e+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),p=0,e="",n&&(s.charCodeAt(0)===65279&&p++,n=void 0);p<s.length;){if(QT.lastIndex=p,h=QT.exec(s),g=h&&h.index!==void 0?h.index:s.length,O=s.charCodeAt(g),!h){e=s.slice(p);break}if(O===10&&p===g&&i)c.push(-3),i=void 0;else switch(i&&(c.push(-5),i=void 0),p<g&&(c.push(s.slice(p,g)),t+=g-p),O){case 0:{c.push(65533),t++;break}case 9:{for(d=Math.ceil(t/4)*4,c.push(-2);t++<d;)c.push(-1);break}case 10:{c.push(-4),t=1;break}default:i=!0,t=1}p=g+1}return l&&(i&&c.push(-5),e&&c.push(e),c.push(null)),c}}const O6=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function y6(t){return t.replace(O6,b6)}function b6(t,e,n){if(e)return e;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),s=r===120||r===88;return iR(n.slice(s?2:1),s?16:10)}return Rv(n)||t}const dR={}.hasOwnProperty;function x6(t,e,n){return typeof e!="string"&&(n=e,e=void 0),v6(n)(m6(p6(n).document().write(g6()(t,e,!0))))}function v6(t){const e={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(kn),autolinkProtocol:B,autolinkEmail:B,atxHeading:s(Ui),blockQuote:s(Ht),characterEscape:B,characterReference:B,codeFenced:s(_n),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(_n,o),codeText:s(dn,o),codeTextData:B,data:B,codeFlowValue:B,definition:s(xi),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(Mn),hardBreakEscape:s(vi),hardBreakTrailing:s(vi),htmlFlow:s(Mr,o),htmlFlowData:B,htmlText:s(Mr,o),htmlTextData:B,image:s(sr),label:o,link:s(kn),listItem:s(or),listItemValue:g,listOrdered:s(Kn,p),listUnordered:s(Kn),paragraph:s(Ss),reference:R,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(Ui),strong:s(he),thematicBreak:s(ft)},exit:{atxHeading:c(),atxHeadingSequence:j,autolink:c(),autolinkEmail:$e,autolinkProtocol:et,blockQuote:c(),characterEscapeValue:$,characterReferenceMarkerHexadecimal:_e,characterReferenceMarkerNumeric:_e,characterReferenceValue:xe,characterReference:Re,codeFenced:c(k),codeFencedFence:S,codeFencedFenceInfo:O,codeFencedFenceMeta:x,codeFlowValue:$,codeIndented:c(_),codeText:c(Y),codeTextData:$,data:$,definition:c(),definitionDestinationString:D,definitionLabelString:T,definitionTitleString:C,emphasis:c(),hardBreakEscape:c(H),hardBreakTrailing:c(H),htmlFlow:c(oe),htmlFlowData:$,htmlText:c(F),htmlTextData:$,image:c(J),label:Oe,labelText:ce,lineEnding:U,link:c(Z),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:fe,resourceDestinationString:L,resourceTitleString:N,resource:te,setextHeading:c(I),setextHeadingLineSequence:M,setextHeadingText:A,strong:c(),thematicBreak:c()}};pR(e,(t||{}).mdastExtensions||[]);const n={};return i;function i(ie){let me={type:"root",children:[]};const Ae={stack:[me],tokenStack:[],config:e,enter:l,exit:h,buffer:o,resume:d,data:n},Xe=[];let rt=-1;for(;++rt<ie.length;)if(ie[rt][1].type==="listOrdered"||ie[rt][1].type==="listUnordered")if(ie[rt][0]==="enter")Xe.push(rt);else{const Jn=Xe.pop();rt=r(ie,Jn,rt)}for(rt=-1;++rt<ie.length;){const Jn=e[ie[rt][0]];dR.call(Jn,ie[rt][1].type)&&Jn[ie[rt][1].type].call(Object.assign({sliceSerialize:ie[rt][2].sliceSerialize},Ae),ie[rt][1])}if(Ae.tokenStack.length>0){const Jn=Ae.tokenStack[Ae.tokenStack.length-1];(Jn[1]||ET).call(Ae,void 0,Jn[0])}for(me.position={start:Gs(ie.length>0?ie[0][1].start:{line:1,column:1,offset:0}),end:Gs(ie.length>0?ie[ie.length-2][1].end:{line:1,column:1,offset:0})},rt=-1;++rt<e.transforms.length;)me=e.transforms[rt](me)||me;return me}function r(ie,me,Ae){let Xe=me-1,rt=-1,Jn=!1,Dr,wn,Zt,Dn;for(;++Xe<=Ae;){const dt=ie[Xe];switch(dt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{dt[0]==="enter"?rt++:rt--,Dn=void 0;break}case"lineEndingBlank":{dt[0]==="enter"&&(Dr&&!Dn&&!rt&&!Zt&&(Zt=Xe),Dn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Dn=void 0}if(!rt&&dt[0]==="enter"&&dt[1].type==="listItemPrefix"||rt===-1&&dt[0]==="exit"&&(dt[1].type==="listUnordered"||dt[1].type==="listOrdered")){if(Dr){let _s=Xe;for(wn=void 0;_s--;){const Yi=ie[_s];if(Yi[1].type==="lineEnding"||Yi[1].type==="lineEndingBlank"){if(Yi[0]==="exit")continue;wn&&(ie[wn][1].type="lineEndingBlank",Jn=!0),Yi[1].type="lineEnding",wn=_s}else if(!(Yi[1].type==="linePrefix"||Yi[1].type==="blockQuotePrefix"||Yi[1].type==="blockQuotePrefixWhitespace"||Yi[1].type==="blockQuoteMarker"||Yi[1].type==="listItemIndent"))break}Zt&&(!wn||Zt<wn)&&(Dr._spread=!0),Dr.end=Object.assign({},wn?ie[wn][1].start:dt[1].end),ie.splice(wn||Xe,0,["exit",Dr,dt[2]]),Xe++,Ae++}if(dt[1].type==="listItemPrefix"){const _s={type:"listItem",_spread:!1,start:Object.assign({},dt[1].start),end:void 0};Dr=_s,ie.splice(Xe,0,["enter",_s,dt[2]]),Xe++,Ae++,Zt=void 0,Dn=!0}}}return ie[me][1]._spread=Jn,Ae}function s(ie,me){return Ae;function Ae(Xe){l.call(this,ie(Xe),Xe),me&&me.call(this,Xe)}}function o(){this.stack.push({type:"fragment",children:[]})}function l(ie,me,Ae){this.stack[this.stack.length-1].children.push(ie),this.stack.push(ie),this.tokenStack.push([me,Ae||void 0]),ie.position={start:Gs(me.start),end:void 0}}function c(ie){return me;function me(Ae){ie&&ie.call(this,Ae),h.call(this,Ae)}}function h(ie,me){const Ae=this.stack.pop(),Xe=this.tokenStack.pop();if(Xe)Xe[0].type!==ie.type&&(me?me.call(this,ie,Xe[0]):(Xe[1]||ET).call(this,ie,Xe[0]));else throw new Error("Cannot close `"+ie.type+"` ("+Nu({start:ie.start,end:ie.end})+"): it’s not open");Ae.position.end=Gs(ie.end)}function d(){return Av(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function g(ie){if(this.data.expectingFirstListItemValue){const me=this.stack[this.stack.length-2];me.start=Number.parseInt(this.sliceSerialize(ie),10),this.data.expectingFirstListItemValue=void 0}}function O(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.lang=ie}function x(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.meta=ie}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.value=ie.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.value=ie.replace(/(\r?\n|\r)$/g,"")}function T(ie){const me=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=me,Ae.identifier=Ki(this.sliceSerialize(ie)).toLowerCase()}function C(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.title=ie}function D(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.url=ie}function j(ie){const me=this.stack[this.stack.length-1];if(!me.depth){const Ae=this.sliceSerialize(ie).length;me.depth=Ae}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function M(ie){const me=this.stack[this.stack.length-1];me.depth=this.sliceSerialize(ie).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function B(ie){const Ae=this.stack[this.stack.length-1].children;let Xe=Ae[Ae.length-1];(!Xe||Xe.type!=="text")&&(Xe=Pe(),Xe.position={start:Gs(ie.start),end:void 0},Ae.push(Xe)),this.stack.push(Xe)}function $(ie){const me=this.stack.pop();me.value+=this.sliceSerialize(ie),me.position.end=Gs(ie.end)}function U(ie){const me=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ae=me.children[me.children.length-1];Ae.position.end=Gs(ie.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&e.canContainEols.includes(me.type)&&(B.call(this,ie),$.call(this,ie))}function H(){this.data.atHardBreak=!0}function oe(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.value=ie}function F(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.value=ie}function Y(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.value=ie}function Z(){const ie=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";ie.type+="Reference",ie.referenceType=me,delete ie.url,delete ie.title}else delete ie.identifier,delete ie.label;this.data.referenceType=void 0}function J(){const ie=this.stack[this.stack.length-1];if(this.data.inReference){const me=this.data.referenceType||"shortcut";ie.type+="Reference",ie.referenceType=me,delete ie.url,delete ie.title}else delete ie.identifier,delete ie.label;this.data.referenceType=void 0}function ce(ie){const me=this.sliceSerialize(ie),Ae=this.stack[this.stack.length-2];Ae.label=y6(me),Ae.identifier=Ki(me).toLowerCase()}function Oe(){const ie=this.stack[this.stack.length-1],me=this.resume(),Ae=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ae.type==="link"){const Xe=ie.children;Ae.children=Xe}else Ae.alt=me}function L(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.url=ie}function N(){const ie=this.resume(),me=this.stack[this.stack.length-1];me.title=ie}function te(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function fe(ie){const me=this.resume(),Ae=this.stack[this.stack.length-1];Ae.label=me,Ae.identifier=Ki(this.sliceSerialize(ie)).toLowerCase(),this.data.referenceType="full"}function _e(ie){this.data.characterReferenceType=ie.type}function xe(ie){const me=this.sliceSerialize(ie),Ae=this.data.characterReferenceType;let Xe;Ae?(Xe=iR(me,Ae==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Xe=Rv(me);const rt=this.stack[this.stack.length-1];rt.value+=Xe}function Re(ie){const me=this.stack.pop();me.position.end=Gs(ie.end)}function et(ie){$.call(this,ie);const me=this.stack[this.stack.length-1];me.url=this.sliceSerialize(ie)}function $e(ie){$.call(this,ie);const me=this.stack[this.stack.length-1];me.url="mailto:"+this.sliceSerialize(ie)}function Ht(){return{type:"blockquote",children:[]}}function _n(){return{type:"code",lang:null,meta:null,value:""}}function dn(){return{type:"inlineCode",value:""}}function xi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Mn(){return{type:"emphasis",children:[]}}function Ui(){return{type:"heading",depth:0,children:[]}}function vi(){return{type:"break"}}function Mr(){return{type:"html",value:""}}function sr(){return{type:"image",title:null,url:"",alt:null}}function kn(){return{type:"link",title:null,url:"",children:[]}}function Kn(ie){return{type:"list",ordered:ie.type==="listOrdered",start:null,spread:ie._spread,children:[]}}function or(ie){return{type:"listItem",spread:ie._spread,checked:null,children:[]}}function Ss(){return{type:"paragraph",children:[]}}function he(){return{type:"strong",children:[]}}function Pe(){return{type:"text",value:""}}function ft(){return{type:"thematicBreak"}}}function Gs(t){return{line:t.line,column:t.column,offset:t.offset}}function pR(t,e){let n=-1;for(;++n<e.length;){const i=e[n];Array.isArray(i)?pR(t,i):S6(t,i)}}function S6(t,e){let n;for(n in e)if(dR.call(e,n))switch(n){case"canContainEols":{const i=e[n];i&&t[n].push(...i);break}case"transforms":{const i=e[n];i&&t[n].push(...i);break}case"enter":case"exit":{const i=e[n];i&&Object.assign(t[n],i);break}}}function ET(t,e){throw t?new Error("Cannot close `"+t.type+"` ("+Nu({start:t.start,end:t.end})+"): a different token (`"+e.type+"`, "+Nu({start:e.start,end:e.end})+") is open"):new Error("Cannot close document, a token (`"+e.type+"`, "+Nu({start:e.start,end:e.end})+") is still open")}function _6(t){const e=this;e.parser=n;function n(i){return x6(i,{...e.data("settings"),...t,extensions:e.data("micromarkExtensions")||[],mdastExtensions:e.data("fromMarkdownExtensions")||[]})}}function k6(t,e){const n={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(e),!0)};return t.patch(e,n),t.applyData(e,n)}function w6(t,e){const n={type:"element",tagName:"br",properties:{},children:[]};return t.patch(e,n),[t.applyData(e,n),{type:"text",value:`
71
+ `}]}function P6(t,e){const n=e.value?e.value+`
72
+ `:"",i={},r=e.lang?e.lang.split(/\s+/):[];r.length>0&&(i.className=["language-"+r[0]]);let s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return e.meta&&(s.data={meta:e.meta}),t.patch(e,s),s=t.applyData(e,s),s={type:"element",tagName:"pre",properties:{},children:[s]},t.patch(e,s),s}function T6(t,e){const n={type:"element",tagName:"del",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function C6(t,e){const n={type:"element",tagName:"em",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function Q6(t,e){const n=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=String(e.identifier).toUpperCase(),r=cc(i.toLowerCase()),s=t.footnoteOrder.indexOf(i);let o,l=t.footnoteCounts.get(i);l===void 0?(l=0,t.footnoteOrder.push(i),o=t.footnoteOrder.length):o=s+1,l+=1,t.footnoteCounts.set(i,l);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};t.patch(e,c);const h={type:"element",tagName:"sup",properties:{},children:[c]};return t.patch(e,h),t.applyData(e,h)}function E6(t,e){const n={type:"element",tagName:"h"+e.depth,properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function A6(t,e){if(t.options.allowDangerousHtml){const n={type:"raw",value:e.value};return t.patch(e,n),t.applyData(e,n)}}function mR(t,e){const n=e.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+i}];const r=t.all(e),s=r[0];s&&s.type==="text"?s.value="["+s.value:r.unshift({type:"text",value:"["});const o=r[r.length-1];return o&&o.type==="text"?o.value+=i:r.push({type:"text",value:i}),r}function R6(t,e){const n=String(e.identifier).toUpperCase(),i=t.definitionById.get(n);if(!i)return mR(t,e);const r={src:cc(i.url||""),alt:e.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const s={type:"element",tagName:"img",properties:r,children:[]};return t.patch(e,s),t.applyData(e,s)}function L6(t,e){const n={src:cc(e.url)};e.alt!==null&&e.alt!==void 0&&(n.alt=e.alt),e.title!==null&&e.title!==void 0&&(n.title=e.title);const i={type:"element",tagName:"img",properties:n,children:[]};return t.patch(e,i),t.applyData(e,i)}function $6(t,e){const n={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};t.patch(e,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return t.patch(e,i),t.applyData(e,i)}function M6(t,e){const n=String(e.identifier).toUpperCase(),i=t.definitionById.get(n);if(!i)return mR(t,e);const r={href:cc(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const s={type:"element",tagName:"a",properties:r,children:t.all(e)};return t.patch(e,s),t.applyData(e,s)}function D6(t,e){const n={href:cc(e.url)};e.title!==null&&e.title!==void 0&&(n.title=e.title);const i={type:"element",tagName:"a",properties:n,children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function j6(t,e,n){const i=t.all(e),r=n?N6(n):gR(e),s={},o=[];if(typeof e.checked=="boolean"){const d=i[0];let p;d&&d.type==="element"&&d.tagName==="p"?p=d:(p={type:"element",tagName:"p",properties:{},children:[]},i.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let l=-1;for(;++l<i.length;){const d=i[l];(r||l!==0||d.type!=="element"||d.tagName!=="p")&&o.push({type:"text",value:`
73
+ `}),d.type==="element"&&d.tagName==="p"&&!r?o.push(...d.children):o.push(d)}const c=i[i.length-1];c&&(r||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
74
+ `});const h={type:"element",tagName:"li",properties:s,children:o};return t.patch(e,h),t.applyData(e,h)}function N6(t){let e=!1;if(t.type==="list"){e=t.spread||!1;const n=t.children;let i=-1;for(;!e&&++i<n.length;)e=gR(n[i])}return e}function gR(t){const e=t.spread;return e??t.children.length>1}function z6(t,e){const n={},i=t.all(e);let r=-1;for(typeof e.start=="number"&&e.start!==1&&(n.start=e.start);++r<i.length;){const o=i[r];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:e.ordered?"ol":"ul",properties:n,children:t.wrap(i,!0)};return t.patch(e,s),t.applyData(e,s)}function I6(t,e){const n={type:"element",tagName:"p",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function X6(t,e){const n={type:"root",children:t.wrap(t.all(e))};return t.patch(e,n),t.applyData(e,n)}function V6(t,e){const n={type:"element",tagName:"strong",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}function B6(t,e){const n=t.all(e),i=n.shift(),r=[];if(i){const o={type:"element",tagName:"thead",properties:{},children:t.wrap([i],!0)};t.patch(e.children[0],o),r.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:t.wrap(n,!0)},l=Tv(e.children[1]),c=WA(e.children[e.children.length-1]);l&&c&&(o.position={start:l,end:c}),r.push(o)}const s={type:"element",tagName:"table",properties:{},children:t.wrap(r,!0)};return t.patch(e,s),t.applyData(e,s)}function Z6(t,e,n){const i=n?n.children:void 0,s=(i?i.indexOf(e):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:e.children.length;let c=-1;const h=[];for(;++c<l;){const p=e.children[c],g={},O=o?o[c]:void 0;O&&(g.align=O);let x={type:"element",tagName:s,properties:g,children:[]};p&&(x.children=t.all(p),t.patch(p,x),x=t.applyData(p,x)),h.push(x)}const d={type:"element",tagName:"tr",properties:{},children:t.wrap(h,!0)};return t.patch(e,d),t.applyData(e,d)}function q6(t,e){const n={type:"element",tagName:"td",properties:{},children:t.all(e)};return t.patch(e,n),t.applyData(e,n)}const AT=9,RT=32;function U6(t){const e=String(t),n=/\r?\n|\r/g;let i=n.exec(e),r=0;const s=[];for(;i;)s.push(LT(e.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=n.exec(e);return s.push(LT(e.slice(r),r>0,!1)),s.join("")}function LT(t,e,n){let i=0,r=t.length;if(e){let s=t.codePointAt(i);for(;s===AT||s===RT;)i++,s=t.codePointAt(i)}if(n){let s=t.codePointAt(r-1);for(;s===AT||s===RT;)r--,s=t.codePointAt(r-1)}return r>i?t.slice(i,r):""}function Y6(t,e){const n={type:"text",value:U6(String(e.value))};return t.patch(e,n),t.applyData(e,n)}function G6(t,e){const n={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(e,n),t.applyData(e,n)}const W6={blockquote:k6,break:w6,code:P6,delete:T6,emphasis:C6,footnoteReference:Q6,heading:E6,html:A6,imageReference:R6,image:L6,inlineCode:$6,linkReference:M6,link:D6,listItem:j6,list:z6,paragraph:I6,root:X6,strong:V6,table:B6,tableCell:q6,tableRow:Z6,text:Y6,thematicBreak:G6,toml:Pd,yaml:Pd,definition:Pd,footnoteDefinition:Pd};function Pd(){}const OR=-1,Um=0,Iu=1,Xp=2,$v=3,Mv=4,Dv=5,jv=6,yR=7,bR=8,$T=typeof self=="object"?self:globalThis,H6=(t,e)=>{const n=(r,s)=>(t.set(s,r),r),i=r=>{if(t.has(r))return t.get(r);const[s,o]=e[r];switch(s){case Um:case OR:return n(o,r);case Iu:{const l=n([],r);for(const c of o)l.push(i(c));return l}case Xp:{const l=n({},r);for(const[c,h]of o)l[i(c)]=i(h);return l}case $v:return n(new Date(o),r);case Mv:{const{source:l,flags:c}=o;return n(new RegExp(l,c),r)}case Dv:{const l=n(new Map,r);for(const[c,h]of o)l.set(i(c),i(h));return l}case jv:{const l=n(new Set,r);for(const c of o)l.add(i(c));return l}case yR:{const{name:l,message:c}=o;return n(new $T[l](c),r)}case bR:return n(BigInt(o),r);case"BigInt":return n(Object(BigInt(o)),r);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:l}=new Uint8Array(o);return n(new DataView(l),o)}}return n(new $T[s](o),r)};return i},MT=t=>H6(new Map,t)(0),yl="",{toString:F6}={},{keys:K6}=Object,mu=t=>{const e=typeof t;if(e!=="object"||!t)return[Um,e];const n=F6.call(t).slice(8,-1);switch(n){case"Array":return[Iu,yl];case"Object":return[Xp,yl];case"Date":return[$v,yl];case"RegExp":return[Mv,yl];case"Map":return[Dv,yl];case"Set":return[jv,yl];case"DataView":return[Iu,n]}return n.includes("Array")?[Iu,n]:n.includes("Error")?[yR,n]:[Xp,n]},Td=([t,e])=>t===Um&&(e==="function"||e==="symbol"),J6=(t,e,n,i)=>{const r=(o,l)=>{const c=i.push(o)-1;return n.set(l,c),c},s=o=>{if(n.has(o))return n.get(o);let[l,c]=mu(o);switch(l){case Um:{let d=o;switch(c){case"bigint":l=bR,d=o.toString();break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return r([OR],o)}return r([l,d],o)}case Iu:{if(c){let g=o;return c==="DataView"?g=new Uint8Array(o.buffer):c==="ArrayBuffer"&&(g=new Uint8Array(o)),r([c,[...g]],o)}const d=[],p=r([l,d],o);for(const g of o)d.push(s(g));return p}case Xp:{if(c)switch(c){case"BigInt":return r([c,o.toString()],o);case"Boolean":case"Number":case"String":return r([c,o.valueOf()],o)}if(e&&"toJSON"in o)return s(o.toJSON());const d=[],p=r([l,d],o);for(const g of K6(o))(t||!Td(mu(o[g])))&&d.push([s(g),s(o[g])]);return p}case $v:return r([l,o.toISOString()],o);case Mv:{const{source:d,flags:p}=o;return r([l,{source:d,flags:p}],o)}case Dv:{const d=[],p=r([l,d],o);for(const[g,O]of o)(t||!(Td(mu(g))||Td(mu(O))))&&d.push([s(g),s(O)]);return p}case jv:{const d=[],p=r([l,d],o);for(const g of o)(t||!Td(mu(g)))&&d.push(s(g));return p}}const{message:h}=o;return r([l,{name:c,message:h}],o)};return s},DT=(t,{json:e,lossy:n}={})=>{const i=[];return J6(!(e||n),!!e,new Map,i)(t),i},Vp=typeof structuredClone=="function"?(t,e)=>e&&("json"in e||"lossy"in e)?MT(DT(t,e)):structuredClone(t):(t,e)=>MT(DT(t,e));function e9(t,e){const n=[{type:"text",value:"↩"}];return e>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),n}function t9(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function n9(t){const e=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",n=t.options.footnoteBackContent||e9,i=t.options.footnoteBackLabel||t9,r=t.options.footnoteLabel||"Footnotes",s=t.options.footnoteLabelTagName||"h2",o=t.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<t.footnoteOrder.length;){const h=t.footnoteById.get(t.footnoteOrder[c]);if(!h)continue;const d=t.all(h),p=String(h.identifier).toUpperCase(),g=cc(p.toLowerCase());let O=0;const x=[],S=t.footnoteCounts.get(p);for(;S!==void 0&&++O<=S;){x.length>0&&x.push({type:"text",value:" "});let T=typeof n=="string"?n:n(c,O);typeof T=="string"&&(T={type:"text",value:T}),x.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+g+(O>1?"-"+O:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(c,O),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const k=d[d.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const T=k.children[k.children.length-1];T&&T.type==="text"?T.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...x)}else d.push(...x);const _={type:"element",tagName:"li",properties:{id:e+"fn-"+g},children:t.wrap(d,!0)};t.patch(h,_),l.push(_)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Vp(o),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
75
+ `},{type:"element",tagName:"ol",properties:{},children:t.wrap(l,!0)},{type:"text",value:`
76
+ `}]}}const Ym=(function(t){if(t==null)return o9;if(typeof t=="function")return Gm(t);if(typeof t=="object")return Array.isArray(t)?i9(t):r9(t);if(typeof t=="string")return s9(t);throw new Error("Expected function, string, or object as test")});function i9(t){const e=[];let n=-1;for(;++n<t.length;)e[n]=Ym(t[n]);return Gm(i);function i(...r){let s=-1;for(;++s<e.length;)if(e[s].apply(this,r))return!0;return!1}}function r9(t){const e=t;return Gm(n);function n(i){const r=i;let s;for(s in t)if(r[s]!==e[s])return!1;return!0}}function s9(t){return Gm(e);function e(n){return n&&n.type===t}}function Gm(t){return e;function e(n,i,r){return!!(a9(n)&&t.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function o9(){return!0}function a9(t){return t!==null&&typeof t=="object"&&"type"in t}const xR=[],l9=!0,jb=!1,c9="skip";function vR(t,e,n,i){let r;typeof e=="function"&&typeof n!="function"?(i=n,n=e):r=e;const s=Ym(r),o=i?-1:1;l(t,void 0,[])();function l(c,h,d){const p=c&&typeof c=="object"?c:{};if(typeof p.type=="string"){const O=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(g,"name",{value:"node ("+(c.type+(O?"<"+O+">":""))+")"})}return g;function g(){let O=xR,x,S,k;if((!e||s(c,h,d[d.length-1]||void 0))&&(O=u9(n(c,d)),O[0]===jb))return O;if("children"in c&&c.children){const _=c;if(_.children&&O[0]!==c9)for(S=(i?_.children.length:-1)+o,k=d.concat(_);S>-1&&S<_.children.length;){const T=_.children[S];if(x=l(T,S,k)(),x[0]===jb)return x;S=typeof x[1]=="number"?x[1]:S+o}}return O}}}function u9(t){return Array.isArray(t)?t:typeof t=="number"?[l9,t]:t==null?xR:[t]}function Nv(t,e,n,i){let r,s,o;typeof e=="function"&&typeof n!="function"?(s=void 0,o=e,r=n):(s=e,o=n,r=i),vR(t,s,l,r);function l(c,h){const d=h[h.length-1],p=d?d.children.indexOf(c):void 0;return o(c,p,d)}}const Nb={}.hasOwnProperty,h9={};function f9(t,e){const n=e||h9,i=new Map,r=new Map,s=new Map,o={...W6,...n.handlers},l={all:h,applyData:p9,definitionById:i,footnoteById:r,footnoteCounts:s,footnoteOrder:[],handlers:o,one:c,options:n,patch:d9,wrap:g9};return Nv(t,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const p=d.type==="definition"?i:r,g=String(d.identifier).toUpperCase();p.has(g)||p.set(g,d)}}),l;function c(d,p){const g=d.type,O=l.handlers[g];if(Nb.call(l.handlers,g)&&O)return O(l,d,p);if(l.options.passThrough&&l.options.passThrough.includes(g)){if("children"in d){const{children:S,...k}=d,_=Vp(k);return _.children=l.all(d),_}return Vp(d)}return(l.options.unknownHandler||m9)(l,d,p)}function h(d){const p=[];if("children"in d){const g=d.children;let O=-1;for(;++O<g.length;){const x=l.one(g[O],d);if(x){if(O&&g[O-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=jT(x.value)),!Array.isArray(x)&&x.type==="element")){const S=x.children[0];S&&S.type==="text"&&(S.value=jT(S.value))}Array.isArray(x)?p.push(...x):p.push(x)}}}return p}}function d9(t,e){t.position&&(e.position=tZ(t))}function p9(t,e){let n=e;if(t&&t.data){const i=t.data.hName,r=t.data.hChildren,s=t.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const o="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:o}}n.type==="element"&&s&&Object.assign(n.properties,Vp(s)),"children"in n&&n.children&&r!==null&&r!==void 0&&(n.children=r)}return n}function m9(t,e){const n=e.data||{},i="value"in e&&!(Nb.call(n,"hProperties")||Nb.call(n,"hChildren"))?{type:"text",value:e.value}:{type:"element",tagName:"div",properties:{},children:t.all(e)};return t.patch(e,i),t.applyData(e,i)}function g9(t,e){const n=[];let i=-1;for(e&&n.push({type:"text",value:`
77
+ `});++i<t.length;)i&&n.push({type:"text",value:`
78
+ `}),n.push(t[i]);return e&&t.length>0&&n.push({type:"text",value:`
79
+ `}),n}function jT(t){let e=0,n=t.charCodeAt(e);for(;n===9||n===32;)e++,n=t.charCodeAt(e);return t.slice(e)}function NT(t,e){const n=f9(t,e),i=n.one(t,void 0),r=n9(n),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&s.children.push({type:"text",value:`
80
+ `},r),s}function O9(t,e){return t&&"run"in t?async function(n,i){const r=NT(n,{file:i,...e});await t.run(r,i)}:function(n,i){return NT(n,{file:i,...t||e})}}function zT(t){if(t)throw t}var ry,IT;function y9(){if(IT)return ry;IT=1;var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(h){return typeof Array.isArray=="function"?Array.isArray(h):e.call(h)==="[object Array]"},s=function(h){if(!h||e.call(h)!=="[object Object]")return!1;var d=t.call(h,"constructor"),p=h.constructor&&h.constructor.prototype&&t.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!d&&!p)return!1;var g;for(g in h);return typeof g>"u"||t.call(h,g)},o=function(h,d){n&&d.name==="__proto__"?n(h,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):h[d.name]=d.newValue},l=function(h,d){if(d==="__proto__")if(t.call(h,d)){if(i)return i(h,d).value}else return;return h[d]};return ry=function c(){var h,d,p,g,O,x,S=arguments[0],k=1,_=arguments.length,T=!1;for(typeof S=="boolean"&&(T=S,S=arguments[1]||{},k=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});k<_;++k)if(h=arguments[k],h!=null)for(d in h)p=l(S,d),g=l(h,d),S!==g&&(T&&g&&(s(g)||(O=r(g)))?(O?(O=!1,x=p&&r(p)?p:[]):x=p&&s(p)?p:{},o(S,{name:d,newValue:c(T,x,g)})):typeof g<"u"&&o(S,{name:d,newValue:g}));return S},ry}var b9=y9();const sy=cv(b9);function zb(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function x9(){const t=[],e={run:n,use:i};return e;function n(...r){let s=-1;const o=r.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...r);function l(c,...h){const d=t[++s];let p=-1;if(c){o(c);return}for(;++p<r.length;)(h[p]===null||h[p]===void 0)&&(h[p]=r[p]);r=h,d?v9(d,l)(...h):o(null,...h)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return t.push(r),e}}function v9(t,e){let n;return i;function i(...o){const l=t.length>o.length;let c;l&&o.push(r);try{c=t.apply(this,o)}catch(h){const d=h;if(l&&n)throw d;return r(d)}l||(c&&c.then&&typeof c.then=="function"?c.then(s,r):c instanceof Error?r(c):s(c))}function r(o,...l){n||(n=!0,e(o,...l))}function s(o){r(null,o)}}const Or={basename:S9,dirname:_9,extname:k9,join:w9,sep:"/"};function S9(t,e){if(e!==void 0&&typeof e!="string")throw new TypeError('"ext" argument must be a string');Vh(t);let n=0,i=-1,r=t.length,s;if(e===void 0||e.length===0||e.length>t.length){for(;r--;)if(t.codePointAt(r)===47){if(s){n=r+1;break}}else i<0&&(s=!0,i=r+1);return i<0?"":t.slice(n,i)}if(e===t)return"";let o=-1,l=e.length-1;for(;r--;)if(t.codePointAt(r)===47){if(s){n=r+1;break}}else o<0&&(s=!0,o=r+1),l>-1&&(t.codePointAt(r)===e.codePointAt(l--)?l<0&&(i=r):(l=-1,i=o));return n===i?i=o:i<0&&(i=t.length),t.slice(n,i)}function _9(t){if(Vh(t),t.length===0)return".";let e=-1,n=t.length,i;for(;--n;)if(t.codePointAt(n)===47){if(i){e=n;break}}else i||(i=!0);return e<0?t.codePointAt(0)===47?"/":".":e===1&&t.codePointAt(0)===47?"//":t.slice(0,e)}function k9(t){Vh(t);let e=t.length,n=-1,i=0,r=-1,s=0,o;for(;e--;){const l=t.codePointAt(e);if(l===47){if(o){i=e+1;break}continue}n<0&&(o=!0,n=e+1),l===46?r<0?r=e:s!==1&&(s=1):r>-1&&(s=-1)}return r<0||n<0||s===0||s===1&&r===n-1&&r===i+1?"":t.slice(r,n)}function w9(...t){let e=-1,n;for(;++e<t.length;)Vh(t[e]),t[e]&&(n=n===void 0?t[e]:n+"/"+t[e]);return n===void 0?".":P9(n)}function P9(t){Vh(t);const e=t.codePointAt(0)===47;let n=T9(t,!e);return n.length===0&&!e&&(n="."),n.length>0&&t.codePointAt(t.length-1)===47&&(n+="/"),e?"/"+n:n}function T9(t,e){let n="",i=0,r=-1,s=0,o=-1,l,c;for(;++o<=t.length;){if(o<t.length)l=t.codePointAt(o);else{if(l===47)break;l=47}if(l===47){if(!(r===o-1||s===1))if(r!==o-1&&s===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",i=0):(n=n.slice(0,c),i=n.length-1-n.lastIndexOf("/")),r=o,s=0;continue}}else if(n.length>0){n="",i=0,r=o,s=0;continue}}e&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+t.slice(r+1,o):n=t.slice(r+1,o),i=o-r-1;r=o,s=0}else l===46&&s>-1?s++:s=-1}return n}function Vh(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const C9={cwd:Q9};function Q9(){return"/"}function Ib(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function E9(t){if(typeof t=="string")t=new URL(t);else if(!Ib(t)){const e=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw e.code="ERR_INVALID_ARG_TYPE",e}if(t.protocol!=="file:"){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return A9(t)}function A9(t){if(t.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const e=t.pathname;let n=-1;for(;++n<e.length;)if(e.codePointAt(n)===37&&e.codePointAt(n+1)===50){const i=e.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(e)}const oy=["history","path","basename","stem","extname","dirname"];class SR{constructor(e){let n;e?Ib(e)?n={path:e}:typeof e=="string"||R9(e)?n={value:e}:n=e:n={},this.cwd="cwd"in n?"":C9.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<oy.length;){const s=oy[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let r;for(r in n)oy.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?Or.basename(this.path):void 0}set basename(e){ly(e,"basename"),ay(e,"basename"),this.path=Or.join(this.dirname||"",e)}get dirname(){return typeof this.path=="string"?Or.dirname(this.path):void 0}set dirname(e){XT(this.basename,"dirname"),this.path=Or.join(e||"",this.basename)}get extname(){return typeof this.path=="string"?Or.extname(this.path):void 0}set extname(e){if(ay(e,"extname"),XT(this.dirname,"extname"),e){if(e.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Or.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){Ib(e)&&(e=E9(e)),ly(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path=="string"?Or.basename(this.path,this.extname):void 0}set stem(e){ly(e,"stem"),ay(e,"stem"),this.path=Or.join(this.dirname||"",e+(this.extname||""))}fail(e,n,i){const r=this.message(e,n,i);throw r.fatal=!0,r}info(e,n,i){const r=this.message(e,n,i);return r.fatal=void 0,r}message(e,n,i){const r=new vn(e,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(e||void 0).decode(this.value)}}function ay(t,e){if(t&&t.includes(Or.sep))throw new Error("`"+e+"` cannot be a path: did not expect `"+Or.sep+"`")}function ly(t,e){if(!t)throw new Error("`"+e+"` cannot be empty")}function XT(t,e){if(!t)throw new Error("Setting `"+e+"` requires `path` to be set too")}function R9(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const L9=(function(t){const i=this.constructor.prototype,r=i[t],s=function(){return r.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),$9={}.hasOwnProperty;class zv extends L9{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=x9()}copy(){const e=new zv;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];e.use(...i)}return e.data(sy(!0,{},this.namespace)),e}data(e,n){return typeof e=="string"?arguments.length===2?(hy("data",this.frozen),this.namespace[e]=n,this):$9.call(this.namespace,e)&&this.namespace[e]||void 0:e?(hy("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(e,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const n=Cd(e),i=this.parser||this.Parser;return cy("parse",i),i(String(n),n)}process(e,n){const i=this;return this.freeze(),cy("process",this.parser||this.Parser),uy("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(s,o){const l=Cd(e),c=i.parse(l);i.run(c,l,function(d,p,g){if(d||!p||!g)return h(d);const O=p,x=i.stringify(O,g);j9(x)?g.value=x:g.result=x,h(d,g)});function h(d,p){d||!p?o(d):s?s(p):n(void 0,p)}}}processSync(e){let n=!1,i;return this.freeze(),cy("processSync",this.parser||this.Parser),uy("processSync",this.compiler||this.Compiler),this.process(e,r),BT("processSync","process",n),i;function r(s,o){n=!0,zT(s),i=o}}run(e,n,i){VT(e),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?s(void 0,i):new Promise(s);function s(o,l){const c=Cd(n);r.run(e,c,h);function h(d,p,g){const O=p||e;d?l(d):o?o(O):i(void 0,O,g)}}}runSync(e,n){let i=!1,r;return this.run(e,n,s),BT("runSync","run",i),r;function s(o,l){zT(o),r=l,i=!0}}stringify(e,n){this.freeze();const i=Cd(n),r=this.compiler||this.Compiler;return uy("stringify",r),VT(e),r(e,i)}use(e,...n){const i=this.attachers,r=this.namespace;if(hy("use",this.frozen),e!=null)if(typeof e=="function")c(e,n);else if(typeof e=="object")Array.isArray(e)?l(e):o(e);else throw new TypeError("Expected usable value, not `"+e+"`");return this;function s(h){if(typeof h=="function")c(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[d,...p]=h;c(d,p)}else o(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function o(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(h.plugins),h.settings&&(r.settings=sy(!0,r.settings,h.settings))}function l(h){let d=-1;if(h!=null)if(Array.isArray(h))for(;++d<h.length;){const p=h[d];s(p)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function c(h,d){let p=-1,g=-1;for(;++p<i.length;)if(i[p][0]===h){g=p;break}if(g===-1)i.push([h,...d]);else if(d.length>0){let[O,...x]=d;const S=i[g][1];zb(S)&&zb(O)&&(O=sy(!0,S,O)),i[g]=[h,O,...x]}}}}const M9=new zv().freeze();function cy(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function uy(t,e){if(typeof e!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function hy(t,e){if(e)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function VT(t){if(!zb(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function BT(t,e,n){if(!n)throw new Error("`"+t+"` finished async. Use `"+e+"` instead")}function Cd(t){return D9(t)?t:new SR(t)}function D9(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function j9(t){return typeof t=="string"||N9(t)}function N9(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const z9="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",ZT=[],qT={allowDangerousHtml:!0},I9=/^(https?|ircs?|mailto|xmpp)$/i,X9=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function V9(t){const e=B9(t),n=Z9(t);return q9(e.runSync(e.parse(n),n),t)}function B9(t){const e=t.rehypePlugins||ZT,n=t.remarkPlugins||ZT,i=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...qT}:qT;return M9().use(_6).use(n).use(O9,i).use(e)}function Z9(t){const e=t.children||"",n=new SR;return typeof e=="string"&&(n.value=e),n}function q9(t,e){const n=e.allowedElements,i=e.allowElement,r=e.components,s=e.disallowedElements,o=e.skipHtml,l=e.unwrapDisallowed,c=e.urlTransform||U9;for(const d of X9)Object.hasOwn(e,d.from)&&(""+d.from+(d.to?"use `"+d.to+"` instead":"remove it")+z9+d.id,void 0);return Nv(t,h),oZ(t,{Fragment:v.Fragment,components:r,ignoreInvalidStyle:!0,jsx:v.jsx,jsxs:v.jsxs,passKeys:!0,passNode:!0});function h(d,p,g){if(d.type==="raw"&&g&&typeof p=="number")return o?g.children.splice(p,1):g.children[p]={type:"text",value:d.value},p;if(d.type==="element"){let O;for(O in ty)if(Object.hasOwn(ty,O)&&Object.hasOwn(d.properties,O)){const x=d.properties[O],S=ty[O];(S===null||S.includes(d.tagName))&&(d.properties[O]=c(String(x||""),O,d))}}if(d.type==="element"){let O=n?!n.includes(d.tagName):s?s.includes(d.tagName):!1;if(!O&&i&&typeof p=="number"&&(O=!i(d,p,g)),O&&g&&typeof p=="number")return l&&d.children?g.children.splice(p,1,...d.children):g.children.splice(p,1),p}}}function U9(t){const e=t.indexOf(":"),n=t.indexOf("?"),i=t.indexOf("#"),r=t.indexOf("/");return e===-1||r!==-1&&e>r||n!==-1&&e>n||i!==-1&&e>i||I9.test(t.slice(0,e))?t:""}function Bp(t,e){const n=String(t);if(typeof e!="string")throw new TypeError("Expected character");let i=0,r=n.indexOf(e);for(;r!==-1;)i++,r=n.indexOf(e,r+e.length);return i}function Y9(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function G9(t,e,n){const r=Ym((n||{}).ignore||[]),s=W9(e);let o=-1;for(;++o<s.length;)vR(t,"text",l);function l(h,d){let p=-1,g;for(;++p<d.length;){const O=d[p],x=g?g.children:void 0;if(r(O,x?x.indexOf(O):void 0,g))return;g=O}if(g)return c(h,d)}function c(h,d){const p=d[d.length-1],g=s[o][0],O=s[o][1];let x=0;const k=p.children.indexOf(h);let _=!1,T=[];g.lastIndex=0;let C=g.exec(h.value);for(;C;){const D=C.index,j={index:C.index,input:C.input,stack:[...d,h]};let A=O(...C,j);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?g.lastIndex=D+1:(x!==D&&T.push({type:"text",value:h.value.slice(x,D)}),Array.isArray(A)?T.push(...A):A&&T.push(A),x=D+C[0].length,_=!0),!g.global)break;C=g.exec(h.value)}return _?(x<h.value.length&&T.push({type:"text",value:h.value.slice(x)}),p.children.splice(k,1,...T)):T=[h],k+T.length}}function W9(t){const e=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!t[0]||Array.isArray(t[0])?t:[t];let i=-1;for(;++i<n.length;){const r=n[i];e.push([H9(r[0]),F9(r[1])])}return e}function H9(t){return typeof t=="string"?new RegExp(Y9(t),"g"):t}function F9(t){return typeof t=="function"?t:function(){return t}}const fy="phrasing",dy=["autolink","link","image","label"];function K9(){return{transforms:[s8],enter:{literalAutolink:e8,literalAutolinkEmail:py,literalAutolinkHttp:py,literalAutolinkWww:py},exit:{literalAutolink:r8,literalAutolinkEmail:i8,literalAutolinkHttp:t8,literalAutolinkWww:n8}}}function J9(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:fy,notInConstruct:dy},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:fy,notInConstruct:dy},{character:":",before:"[ps]",after:"\\/",inConstruct:fy,notInConstruct:dy}]}}function e8(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function py(t){this.config.enter.autolinkProtocol.call(this,t)}function t8(t){this.config.exit.autolinkProtocol.call(this,t)}function n8(t){this.config.exit.data.call(this,t);const e=this.stack[this.stack.length-1];e.type,e.url="http://"+this.sliceSerialize(t)}function i8(t){this.config.exit.autolinkEmail.call(this,t)}function r8(t){this.exit(t)}function s8(t){G9(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,o8],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),a8]],{ignore:["link","linkReference"]})}function o8(t,e,n,i,r){let s="";if(!_R(r)||(/^w/i.test(e)&&(n=e+n,e="",s="http://"),!l8(n)))return!1;const o=c8(n+i);if(!o[0])return!1;const l={type:"link",title:null,url:s+e+o[0],children:[{type:"text",value:e+o[0]}]};return o[1]?[l,{type:"text",value:o[1]}]:l}function a8(t,e,n,i){return!_R(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+e+"@"+n,children:[{type:"text",value:e+"@"+n}]}}function l8(t){const e=t.split(".");return!(e.length<2||e[e.length-1]&&(/_/.test(e[e.length-1])||!/[a-zA-Z\d]/.test(e[e.length-1]))||e[e.length-2]&&(/_/.test(e[e.length-2])||!/[a-zA-Z\d]/.test(e[e.length-2])))}function c8(t){const e=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!e)return[t,void 0];t=t.slice(0,e.index);let n=e[0],i=n.indexOf(")");const r=Bp(t,"(");let s=Bp(t,")");for(;i!==-1&&r>s;)t+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),s++;return[t,n]}function _R(t,e){const n=t.input.charCodeAt(t.index-1);return(t.index===0||pa(n)||Zm(n))&&(!e||n!==47)}kR.peek=y8;function u8(){this.buffer()}function h8(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function f8(){this.buffer()}function d8(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function p8(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ki(this.sliceSerialize(t)).toLowerCase(),n.label=e}function m8(t){this.exit(t)}function g8(t){const e=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ki(this.sliceSerialize(t)).toLowerCase(),n.label=e}function O8(t){this.exit(t)}function y8(){return"["}function kR(t,e,n,i){const r=n.createTracker(i);let s=r.move("[^");const o=n.enter("footnoteReference"),l=n.enter("reference");return s+=r.move(n.safe(n.associationId(t),{after:"]",before:s})),l(),o(),s+=r.move("]"),s}function b8(){return{enter:{gfmFootnoteCallString:u8,gfmFootnoteCall:h8,gfmFootnoteDefinitionLabelString:f8,gfmFootnoteDefinition:d8},exit:{gfmFootnoteCallString:p8,gfmFootnoteCall:m8,gfmFootnoteDefinitionLabelString:g8,gfmFootnoteDefinition:O8}}}function x8(t){let e=!1;return t&&t.firstLineBlank&&(e=!0),{handlers:{footnoteDefinition:n,footnoteReference:kR},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,r,s,o){const l=s.createTracker(o);let c=l.move("[^");const h=s.enter("footnoteDefinition"),d=s.enter("label");return c+=l.move(s.safe(s.associationId(i),{before:c,after:"]"})),d(),c+=l.move("]:"),i.children&&i.children.length>0&&(l.shift(4),c+=l.move((e?`
81
+ `:" ")+s.indentLines(s.containerFlow(i,l.current()),e?wR:v8))),h(),c}}function v8(t,e,n){return e===0?t:wR(t,e,n)}function wR(t,e,n){return(n?"":" ")+t}const S8=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];PR.peek=T8;function _8(){return{canContainEols:["delete"],enter:{strikethrough:w8},exit:{strikethrough:P8}}}function k8(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:S8}],handlers:{delete:PR}}}function w8(t){this.enter({type:"delete",children:[]},t)}function P8(t){this.exit(t)}function PR(t,e,n,i){const r=n.createTracker(i),s=n.enter("strikethrough");let o=r.move("~~");return o+=n.containerPhrasing(t,{...r.current(),before:o,after:"~"}),o+=r.move("~~"),s(),o}function T8(){return"~"}function C8(t){return t.length}function Q8(t,e){const n=e||{},i=(n.align||[]).concat(),r=n.stringLength||C8,s=[],o=[],l=[],c=[];let h=0,d=-1;for(;++d<t.length;){const S=[],k=[];let _=-1;for(t[d].length>h&&(h=t[d].length);++_<t[d].length;){const T=E8(t[d][_]);if(n.alignDelimiters!==!1){const C=r(T);k[_]=C,(c[_]===void 0||C>c[_])&&(c[_]=C)}S.push(T)}o[d]=S,l[d]=k}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<h;)s[p]=UT(i[p]);else{const S=UT(i);for(;++p<h;)s[p]=S}p=-1;const g=[],O=[];for(;++p<h;){const S=s[p];let k="",_="";S===99?(k=":",_=":"):S===108?k=":":S===114&&(_=":");let T=n.alignDelimiters===!1?1:Math.max(1,c[p]-k.length-_.length);const C=k+"-".repeat(T)+_;n.alignDelimiters!==!1&&(T=k.length+T+_.length,T>c[p]&&(c[p]=T),O[p]=T),g[p]=C}o.splice(1,0,g),l.splice(1,0,O),d=-1;const x=[];for(;++d<o.length;){const S=o[d],k=l[d];p=-1;const _=[];for(;++p<h;){const T=S[p]||"";let C="",D="";if(n.alignDelimiters!==!1){const j=c[p]-(k[p]||0),A=s[p];A===114?C=" ".repeat(j):A===99?j%2?(C=" ".repeat(j/2+.5),D=" ".repeat(j/2-.5)):(C=" ".repeat(j/2),D=C):D=" ".repeat(j)}n.delimiterStart!==!1&&!p&&_.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&T==="")&&(n.delimiterStart!==!1||p)&&_.push(" "),n.alignDelimiters!==!1&&_.push(C),_.push(T),n.alignDelimiters!==!1&&_.push(D),n.padding!==!1&&_.push(" "),(n.delimiterEnd!==!1||p!==h-1)&&_.push("|")}x.push(n.delimiterEnd===!1?_.join("").replace(/ +$/,""):_.join(""))}return x.join(`
82
+ `)}function E8(t){return t==null?"":String(t)}function UT(t){const e=typeof t=="string"?t.codePointAt(0):0;return e===67||e===99?99:e===76||e===108?108:e===82||e===114?114:0}const YT={}.hasOwnProperty;function A8(t,e){const n=e||{};function i(r,...s){let o=i.invalid;const l=i.handlers;if(r&&YT.call(r,t)){const c=String(r[t]);o=YT.call(l,c)?l[c]:i.unknown}if(o)return o.call(this,r,...s)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}function R8(t,e,n,i){const r=n.enter("blockquote"),s=n.createTracker(i);s.move("> "),s.shift(2);const o=n.indentLines(n.containerFlow(t,s.current()),L8);return r(),o}function L8(t,e,n){return">"+(n?"":" ")+t}function $8(t,e){return GT(t,e.inConstruct,!0)&&!GT(t,e.notInConstruct,!1)}function GT(t,e,n){if(typeof e=="string"&&(e=[e]),!e||e.length===0)return n;let i=-1;for(;++i<e.length;)if(t.includes(e[i]))return!0;return!1}function WT(t,e,n,i){let r=-1;for(;++r<n.unsafe.length;)if(n.unsafe[r].character===`
83
+ `&&$8(n.stack,n.unsafe[r]))return/[ \t]/.test(i.before)?"":" ";return`\\
84
+ `}function M8(t,e){const n=String(t);let i=n.indexOf(e),r=i,s=0,o=0;if(typeof e!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===r?++s>o&&(o=s):s=1,r=i+e.length,i=n.indexOf(e,r);return o}function D8(t,e){return!!(e.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function j8(t){const e=t.options.fence||"`";if(e!=="`"&&e!=="~")throw new Error("Cannot serialize code with `"+e+"` for `options.fence`, expected `` ` `` or `~`");return e}function N8(t,e,n,i){const r=j8(n),s=t.value||"",o=r==="`"?"GraveAccent":"Tilde";if(D8(t,n)){const p=n.enter("codeIndented"),g=n.indentLines(s,z8);return p(),g}const l=n.createTracker(i),c=r.repeat(Math.max(M8(s,r)+1,3)),h=n.enter("codeFenced");let d=l.move(c);if(t.lang){const p=n.enter(`codeFencedLang${o}`);d+=l.move(n.safe(t.lang,{before:d,after:" ",encode:["`"],...l.current()})),p()}if(t.lang&&t.meta){const p=n.enter(`codeFencedMeta${o}`);d+=l.move(" "),d+=l.move(n.safe(t.meta,{before:d,after:`
85
+ `,encode:["`"],...l.current()})),p()}return d+=l.move(`
86
+ `),s&&(d+=l.move(s+`
87
+ `)),d+=l.move(c),h(),d}function z8(t,e,n){return(n?"":" ")+t}function Iv(t){const e=t.options.quote||'"';if(e!=='"'&&e!=="'")throw new Error("Cannot serialize title with `"+e+"` for `options.quote`, expected `\"`, or `'`");return e}function I8(t,e,n,i){const r=Iv(n),s=r==='"'?"Quote":"Apostrophe",o=n.enter("definition");let l=n.enter("label");const c=n.createTracker(i);let h=c.move("[");return h+=c.move(n.safe(n.associationId(t),{before:h,after:"]",...c.current()})),h+=c.move("]: "),l(),!t.url||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(n.safe(t.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(l=n.enter("destinationRaw"),h+=c.move(n.safe(t.url,{before:h,after:t.title?" ":`
88
+ `,...c.current()}))),l(),t.title&&(l=n.enter(`title${s}`),h+=c.move(" "+r),h+=c.move(n.safe(t.title,{before:h,after:r,...c.current()})),h+=c.move(r),l()),o(),h}function X8(t){const e=t.options.emphasis||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize emphasis with `"+e+"` for `options.emphasis`, expected `*`, or `_`");return e}function sh(t){return"&#x"+t.toString(16).toUpperCase()+";"}function Zp(t,e,n){const i=Bl(t),r=Bl(e);return i===void 0?r===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}TR.peek=V8;function TR(t,e,n,i){const r=X8(n),s=n.enter("emphasis"),o=n.createTracker(i),l=o.move(r);let c=o.move(n.containerPhrasing(t,{after:r,before:l,...o.current()}));const h=c.charCodeAt(0),d=Zp(i.before.charCodeAt(i.before.length-1),h,r);d.inside&&(c=sh(h)+c.slice(1));const p=c.charCodeAt(c.length-1),g=Zp(i.after.charCodeAt(0),p,r);g.inside&&(c=c.slice(0,-1)+sh(p));const O=o.move(r);return s(),n.attentionEncodeSurroundingInfo={after:g.outside,before:d.outside},l+c+O}function V8(t,e,n){return n.options.emphasis||"*"}function B8(t,e){let n=!1;return Nv(t,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,jb}),!!((!t.depth||t.depth<3)&&Av(t)&&(e.options.setext||n))}function Z8(t,e,n,i){const r=Math.max(Math.min(6,t.depth||1),1),s=n.createTracker(i);if(B8(t,n)){const d=n.enter("headingSetext"),p=n.enter("phrasing"),g=n.containerPhrasing(t,{...s.current(),before:`
89
+ `,after:`
90
+ `});return p(),d(),g+`
91
+ `+(r===1?"=":"-").repeat(g.length-(Math.max(g.lastIndexOf("\r"),g.lastIndexOf(`
92
+ `))+1))}const o="#".repeat(r),l=n.enter("headingAtx"),c=n.enter("phrasing");s.move(o+" ");let h=n.containerPhrasing(t,{before:"# ",after:`
93
+ `,...s.current()});return/^[\t ]/.test(h)&&(h=sh(h.charCodeAt(0))+h.slice(1)),h=h?o+" "+h:o,n.options.closeAtx&&(h+=" "+o),c(),l(),h}CR.peek=q8;function CR(t){return t.value||""}function q8(){return"<"}QR.peek=U8;function QR(t,e,n,i){const r=Iv(n),s=r==='"'?"Quote":"Apostrophe",o=n.enter("image");let l=n.enter("label");const c=n.createTracker(i);let h=c.move("![");return h+=c.move(n.safe(t.alt,{before:h,after:"]",...c.current()})),h+=c.move("]("),l(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(l=n.enter("destinationLiteral"),h+=c.move("<"),h+=c.move(n.safe(t.url,{before:h,after:">",...c.current()})),h+=c.move(">")):(l=n.enter("destinationRaw"),h+=c.move(n.safe(t.url,{before:h,after:t.title?" ":")",...c.current()}))),l(),t.title&&(l=n.enter(`title${s}`),h+=c.move(" "+r),h+=c.move(n.safe(t.title,{before:h,after:r,...c.current()})),h+=c.move(r),l()),h+=c.move(")"),o(),h}function U8(){return"!"}ER.peek=Y8;function ER(t,e,n,i){const r=t.referenceType,s=n.enter("imageReference");let o=n.enter("label");const l=n.createTracker(i);let c=l.move("![");const h=n.safe(t.alt,{before:c,after:"]",...l.current()});c+=l.move(h+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(t),{before:c,after:"]",...l.current()});return o(),n.stack=d,s(),r==="full"||!h||h!==p?c+=l.move(p+"]"):r==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function Y8(){return"!"}AR.peek=G8;function AR(t,e,n){let i=t.value||"",r="`",s=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<n.unsafe.length;){const o=n.unsafe[s],l=n.compilePattern(o);let c;if(o.atBreak)for(;c=l.exec(i);){let h=c.index;i.charCodeAt(h)===10&&i.charCodeAt(h-1)===13&&h--,i=i.slice(0,h)+" "+i.slice(c.index+1)}}return r+i+r}function G8(){return"`"}function RR(t,e){const n=Av(t);return!!(!e.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(n===t.url||"mailto:"+n===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}LR.peek=W8;function LR(t,e,n,i){const r=Iv(n),s=r==='"'?"Quote":"Apostrophe",o=n.createTracker(i);let l,c;if(RR(t,n)){const d=n.stack;n.stack=[],l=n.enter("autolink");let p=o.move("<");return p+=o.move(n.containerPhrasing(t,{before:p,after:">",...o.current()})),p+=o.move(">"),l(),n.stack=d,p}l=n.enter("link"),c=n.enter("label");let h=o.move("[");return h+=o.move(n.containerPhrasing(t,{before:h,after:"](",...o.current()})),h+=o.move("]("),c(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(c=n.enter("destinationLiteral"),h+=o.move("<"),h+=o.move(n.safe(t.url,{before:h,after:">",...o.current()})),h+=o.move(">")):(c=n.enter("destinationRaw"),h+=o.move(n.safe(t.url,{before:h,after:t.title?" ":")",...o.current()}))),c(),t.title&&(c=n.enter(`title${s}`),h+=o.move(" "+r),h+=o.move(n.safe(t.title,{before:h,after:r,...o.current()})),h+=o.move(r),c()),h+=o.move(")"),l(),h}function W8(t,e,n){return RR(t,n)?"<":"["}$R.peek=H8;function $R(t,e,n,i){const r=t.referenceType,s=n.enter("linkReference");let o=n.enter("label");const l=n.createTracker(i);let c=l.move("[");const h=n.containerPhrasing(t,{before:c,after:"]",...l.current()});c+=l.move(h+"]["),o();const d=n.stack;n.stack=[],o=n.enter("reference");const p=n.safe(n.associationId(t),{before:c,after:"]",...l.current()});return o(),n.stack=d,s(),r==="full"||!h||h!==p?c+=l.move(p+"]"):r==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function H8(){return"["}function Xv(t){const e=t.options.bullet||"*";if(e!=="*"&&e!=="+"&&e!=="-")throw new Error("Cannot serialize items with `"+e+"` for `options.bullet`, expected `*`, `+`, or `-`");return e}function F8(t){const e=Xv(t),n=t.options.bulletOther;if(!n)return e==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===e)throw new Error("Expected `bullet` (`"+e+"`) and `bulletOther` (`"+n+"`) to be different");return n}function K8(t){const e=t.options.bulletOrdered||".";if(e!=="."&&e!==")")throw new Error("Cannot serialize items with `"+e+"` for `options.bulletOrdered`, expected `.` or `)`");return e}function MR(t){const e=t.options.rule||"*";if(e!=="*"&&e!=="-"&&e!=="_")throw new Error("Cannot serialize rules with `"+e+"` for `options.rule`, expected `*`, `-`, or `_`");return e}function J8(t,e,n,i){const r=n.enter("list"),s=n.bulletCurrent;let o=t.ordered?K8(n):Xv(n);const l=t.ordered?o==="."?")":".":F8(n);let c=e&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!t.ordered){const d=t.children?t.children[0]:void 0;if((o==="*"||o==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),MR(n)===o&&d){let p=-1;for(;++p<t.children.length;){const g=t.children[p];if(g&&g.type==="listItem"&&g.children&&g.children[0]&&g.children[0].type==="thematicBreak"){c=!0;break}}}}c&&(o=l),n.bulletCurrent=o;const h=n.containerFlow(t,i);return n.bulletLastUsed=o,n.bulletCurrent=s,r(),h}function e7(t){const e=t.options.listItemIndent||"one";if(e!=="tab"&&e!=="one"&&e!=="mixed")throw new Error("Cannot serialize items with `"+e+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return e}function t7(t,e,n,i){const r=e7(n);let s=n.bulletCurrent||Xv(n);e&&e.type==="list"&&e.ordered&&(s=(typeof e.start=="number"&&e.start>-1?e.start:1)+(n.options.incrementListMarker===!1?0:e.children.indexOf(t))+s);let o=s.length+1;(r==="tab"||r==="mixed"&&(e&&e.type==="list"&&e.spread||t.spread))&&(o=Math.ceil(o/4)*4);const l=n.createTracker(i);l.move(s+" ".repeat(o-s.length)),l.shift(o);const c=n.enter("listItem"),h=n.indentLines(n.containerFlow(t,l.current()),d);return c(),h;function d(p,g,O){return g?(O?"":" ".repeat(o))+p:(O?s:s+" ".repeat(o-s.length))+p}}function n7(t,e,n,i){const r=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(t,i);return s(),r(),o}const i7=Ym(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function r7(t,e,n,i){return(t.children.some(function(o){return i7(o)})?n.containerPhrasing:n.containerFlow).call(n,t,i)}function s7(t){const e=t.options.strong||"*";if(e!=="*"&&e!=="_")throw new Error("Cannot serialize strong with `"+e+"` for `options.strong`, expected `*`, or `_`");return e}DR.peek=o7;function DR(t,e,n,i){const r=s7(n),s=n.enter("strong"),o=n.createTracker(i),l=o.move(r+r);let c=o.move(n.containerPhrasing(t,{after:r,before:l,...o.current()}));const h=c.charCodeAt(0),d=Zp(i.before.charCodeAt(i.before.length-1),h,r);d.inside&&(c=sh(h)+c.slice(1));const p=c.charCodeAt(c.length-1),g=Zp(i.after.charCodeAt(0),p,r);g.inside&&(c=c.slice(0,-1)+sh(p));const O=o.move(r+r);return s(),n.attentionEncodeSurroundingInfo={after:g.outside,before:d.outside},l+c+O}function o7(t,e,n){return n.options.strong||"*"}function a7(t,e,n,i){return n.safe(t.value,i)}function l7(t){const e=t.options.ruleRepetition||3;if(e<3)throw new Error("Cannot serialize rules with repetition `"+e+"` for `options.ruleRepetition`, expected `3` or more");return e}function c7(t,e,n){const i=(MR(n)+(n.options.ruleSpaces?" ":"")).repeat(l7(n));return n.options.ruleSpaces?i.slice(0,-1):i}const jR={blockquote:R8,break:WT,code:N8,definition:I8,emphasis:TR,hardBreak:WT,heading:Z8,html:CR,image:QR,imageReference:ER,inlineCode:AR,link:LR,linkReference:$R,list:J8,listItem:t7,paragraph:n7,root:r7,strong:DR,text:a7,thematicBreak:c7};function u7(){return{enter:{table:h7,tableData:HT,tableHeader:HT,tableRow:d7},exit:{codeText:p7,table:f7,tableData:my,tableHeader:my,tableRow:my}}}function h7(t){const e=t._align;this.enter({type:"table",align:e.map(function(n){return n==="none"?null:n}),children:[]},t),this.data.inTable=!0}function f7(t){this.exit(t),this.data.inTable=void 0}function d7(t){this.enter({type:"tableRow",children:[]},t)}function my(t){this.exit(t)}function HT(t){this.enter({type:"tableCell",children:[]},t)}function p7(t){let e=this.resume();this.data.inTable&&(e=e.replace(/\\([\\|])/g,m7));const n=this.stack[this.stack.length-1];n.type,n.value=e,this.exit(t)}function m7(t,e){return e==="|"?e:t}function g7(t){const e=t||{},n=e.tableCellPadding,i=e.tablePipeAlign,r=e.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
94
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:g,table:o,tableCell:c,tableRow:l}};function o(O,x,S,k){return h(d(O,S,k),O.align)}function l(O,x,S,k){const _=p(O,S,k),T=h([_]);return T.slice(0,T.indexOf(`
95
+ `))}function c(O,x,S,k){const _=S.enter("tableCell"),T=S.enter("phrasing"),C=S.containerPhrasing(O,{...k,before:s,after:s});return T(),_(),C}function h(O,x){return Q8(O,{align:x,alignDelimiters:i,padding:n,stringLength:r})}function d(O,x,S){const k=O.children;let _=-1;const T=[],C=x.enter("table");for(;++_<k.length;)T[_]=p(k[_],x,S);return C(),T}function p(O,x,S){const k=O.children;let _=-1;const T=[],C=x.enter("tableRow");for(;++_<k.length;)T[_]=c(k[_],O,x,S);return C(),T}function g(O,x,S){let k=jR.inlineCode(O,x,S);return S.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function O7(){return{exit:{taskListCheckValueChecked:FT,taskListCheckValueUnchecked:FT,paragraph:b7}}}function y7(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:x7}}}function FT(t){const e=this.stack[this.stack.length-2];e.type,e.checked=t.type==="taskListCheckValueChecked"}function b7(t){const e=this.stack[this.stack.length-2];if(e&&e.type==="listItem"&&typeof e.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const r=e.children;let s=-1,o;for(;++s<r.length;){const l=r[s];if(l.type==="paragraph"){o=l;break}}o===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(t)}function x7(t,e,n,i){const r=t.children[0],s=typeof t.checked=="boolean"&&r&&r.type==="paragraph",o="["+(t.checked?"x":" ")+"] ",l=n.createTracker(i);s&&l.move(o);let c=jR.listItem(t,e,n,{...i,...l.current()});return s&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,h)),c;function h(d){return d+o}}function v7(){return[K9(),b8(),_8(),u7(),O7()]}function S7(t){return{extensions:[J9(),x8(t),k8(),g7(t),y7()]}}const _7={tokenize:Q7,partial:!0},NR={tokenize:E7,partial:!0},zR={tokenize:A7,partial:!0},IR={tokenize:R7,partial:!0},k7={tokenize:L7,partial:!0},XR={name:"wwwAutolink",tokenize:T7,previous:BR},VR={name:"protocolAutolink",tokenize:C7,previous:ZR},bs={name:"emailAutolink",tokenize:P7,previous:qR},Ar={};function w7(){return{text:Ar}}let Bo=48;for(;Bo<123;)Ar[Bo]=bs,Bo++,Bo===58?Bo=65:Bo===91&&(Bo=97);Ar[43]=bs;Ar[45]=bs;Ar[46]=bs;Ar[95]=bs;Ar[72]=[bs,VR];Ar[104]=[bs,VR];Ar[87]=[bs,XR];Ar[119]=[bs,XR];function P7(t,e,n){const i=this;let r,s;return o;function o(p){return!Xb(p)||!qR.call(i,i.previous)||Vv(i.events)?n(p):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),l(p))}function l(p){return Xb(p)?(t.consume(p),l):p===64?(t.consume(p),c):n(p)}function c(p){return p===46?t.check(k7,d,h)(p):p===45||p===95||bn(p)?(s=!0,t.consume(p),c):d(p)}function h(p){return t.consume(p),r=!0,c}function d(p){return s&&r&&Qn(i.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),e(p)):n(p)}}function T7(t,e,n){const i=this;return r;function r(o){return o!==87&&o!==119||!BR.call(i,i.previous)||Vv(i.events)?n(o):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(_7,t.attempt(NR,t.attempt(zR,s),n),n)(o))}function s(o){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),e(o)}}function C7(t,e,n){const i=this;let r="",s=!1;return o;function o(p){return(p===72||p===104)&&ZR.call(i,i.previous)&&!Vv(i.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),r+=String.fromCodePoint(p),t.consume(p),l):n(p)}function l(p){if(Qn(p)&&r.length<5)return r+=String.fromCodePoint(p),t.consume(p),l;if(p===58){const g=r.toLowerCase();if(g==="http"||g==="https")return t.consume(p),c}return n(p)}function c(p){return p===47?(t.consume(p),s?h:(s=!0,c)):n(p)}function h(p){return p===null||Ip(p)||Ot(p)||pa(p)||Zm(p)?n(p):t.attempt(NR,t.attempt(zR,d),n)(p)}function d(p){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),e(p)}}function Q7(t,e,n){let i=0;return r;function r(o){return(o===87||o===119)&&i<3?(i++,t.consume(o),r):o===46&&i===3?(t.consume(o),s):n(o)}function s(o){return o===null?n(o):e(o)}}function E7(t,e,n){let i,r,s;return o;function o(h){return h===46||h===95?t.check(IR,c,l)(h):h===null||Ot(h)||pa(h)||h!==45&&Zm(h)?c(h):(s=!0,t.consume(h),o)}function l(h){return h===95?i=!0:(r=i,i=void 0),t.consume(h),o}function c(h){return r||i||!s?n(h):e(h)}}function A7(t,e){let n=0,i=0;return r;function r(o){return o===40?(n++,t.consume(o),r):o===41&&i<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?t.check(IR,e,s)(o):o===null||Ot(o)||pa(o)?e(o):(t.consume(o),r)}function s(o){return o===41&&i++,t.consume(o),r}}function R7(t,e,n){return i;function i(l){return l===33||l===34||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===63||l===95||l===126?(t.consume(l),i):l===38?(t.consume(l),s):l===93?(t.consume(l),r):l===60||l===null||Ot(l)||pa(l)?e(l):n(l)}function r(l){return l===null||l===40||l===91||Ot(l)||pa(l)?e(l):i(l)}function s(l){return Qn(l)?o(l):n(l)}function o(l){return l===59?(t.consume(l),i):Qn(l)?(t.consume(l),o):n(l)}}function L7(t,e,n){return i;function i(s){return t.consume(s),r}function r(s){return bn(s)?n(s):e(s)}}function BR(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Ot(t)}function ZR(t){return!Qn(t)}function qR(t){return!(t===47||Xb(t))}function Xb(t){return t===43||t===45||t===46||t===95||bn(t)}function Vv(t){let e=t.length,n=!1;for(;e--;){const i=t[e][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return t.length>0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const $7={tokenize:V7,partial:!0};function M7(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:z7,continuation:{tokenize:I7},exit:X7}},text:{91:{name:"gfmFootnoteCall",tokenize:N7},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:D7,resolveTo:j7}}}}function D7(t,e,n){const i=this;let r=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;r--;){const c=i.events[r][1];if(c.type==="labelImage"){o=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!o||!o._balanced)return n(c);const h=Ki(i.sliceSerialize({start:o.end,end:i.now()}));return h.codePointAt(0)!==94||!s.includes(h.slice(1))?n(c):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(c),t.exit("gfmFootnoteCallLabelMarker"),e(c))}}function j7(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},t[t.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[t[n+1],t[n+2],["enter",i,e],t[n+3],t[n+4],["enter",r,e],["exit",r,e],["enter",s,e],["enter",o,e],["exit",o,e],["exit",s,e],t[t.length-2],t[t.length-1],["exit",i,e]];return t.splice(n,t.length-n+1,...l),t}function N7(t,e,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,o;return l;function l(p){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),c}function c(p){return p!==94?n(p):(t.enter("gfmFootnoteCallMarker"),t.consume(p),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",h)}function h(p){if(s>999||p===93&&!o||p===null||p===91||Ot(p))return n(p);if(p===93){t.exit("chunkString");const g=t.exit("gfmFootnoteCallString");return r.includes(Ki(i.sliceSerialize(g)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(p),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(p)}return Ot(p)||(o=!0),s++,t.consume(p),p===92?d:h}function d(p){return p===91||p===92||p===93?(t.consume(p),s++,h):h(p)}}function z7(t,e,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,o=0,l;return c;function c(x){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(x),t.exit("gfmFootnoteDefinitionLabelMarker"),h}function h(x){return x===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(x),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",d):n(x)}function d(x){if(o>999||x===93&&!l||x===null||x===91||Ot(x))return n(x);if(x===93){t.exit("chunkString");const S=t.exit("gfmFootnoteDefinitionLabelString");return s=Ki(i.sliceSerialize(S)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(x),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),g}return Ot(x)||(l=!0),o++,t.consume(x),x===92?p:d}function p(x){return x===91||x===92||x===93?(t.consume(x),o++,d):d(x)}function g(x){return x===58?(t.enter("definitionMarker"),t.consume(x),t.exit("definitionMarker"),r.includes(s)||r.push(s),Ke(t,O,"gfmFootnoteDefinitionWhitespace")):n(x)}function O(x){return e(x)}}function I7(t,e,n){return t.check(Xh,e,t.attempt($7,e,n))}function X7(t){t.exit("gfmFootnoteDefinition")}function V7(t,e,n){const i=this;return Ke(t,r,"gfmFootnoteDefinitionIndent",5);function r(s){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?e(s):n(s)}}function B7(t){let n=(t||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:r};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(o,l){let c=-1;for(;++c<o.length;)if(o[c][0]==="enter"&&o[c][1].type==="strikethroughSequenceTemporary"&&o[c][1]._close){let h=c;for(;h--;)if(o[h][0]==="exit"&&o[h][1].type==="strikethroughSequenceTemporary"&&o[h][1]._open&&o[c][1].end.offset-o[c][1].start.offset===o[h][1].end.offset-o[h][1].start.offset){o[c][1].type="strikethroughSequence",o[h][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},o[h][1].start),end:Object.assign({},o[c][1].end)},p={type:"strikethroughText",start:Object.assign({},o[h][1].end),end:Object.assign({},o[c][1].start)},g=[["enter",d,l],["enter",o[h][1],l],["exit",o[h][1],l],["enter",p,l]],O=l.parser.constructs.insideSpan.null;O&&gi(g,g.length,0,qm(O,o.slice(h+1,c),l)),gi(g,g.length,0,[["exit",p,l],["enter",o[c][1],l],["exit",o[c][1],l],["exit",d,l]]),gi(o,h-1,c-h+3,g),c=h+g.length-2;break}}for(c=-1;++c<o.length;)o[c][1].type==="strikethroughSequenceTemporary"&&(o[c][1].type="data");return o}function s(o,l,c){const h=this.previous,d=this.events;let p=0;return g;function g(x){return h===126&&d[d.length-1][1].type!=="characterEscape"?c(x):(o.enter("strikethroughSequenceTemporary"),O(x))}function O(x){const S=Bl(h);if(x===126)return p>1?c(x):(o.consume(x),p++,O);if(p<2&&!n)return c(x);const k=o.exit("strikethroughSequenceTemporary"),_=Bl(x);return k._open=!_||_===2&&!!S,k._close=!S||S===2&&!!_,l(x)}}}class Z7{constructor(){this.map=[]}add(e,n,i){q7(this,e,n,i)}consume(e){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];i.push(e.slice()),e.length=0;let r=i.pop();for(;r;){for(const s of r)e.push(s);r=i.pop()}this.map.length=0}}function q7(t,e,n,i){let r=0;if(!(n===0&&i.length===0)){for(;r<t.map.length;){if(t.map[r][0]===e){t.map[r][1]+=n,t.map[r][2].push(...i);return}r+=1}t.map.push([e,n,i])}}function U7(t,e){let n=!1;const i=[];for(;e<t.length;){const r=t[e];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&i.push(t[e+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(t[e-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);e+=1}return i}function Y7(){return{flow:{null:{name:"table",tokenize:G7,resolveAll:W7}}}}function G7(t,e,n){const i=this;let r=0,s=0,o;return l;function l($){let U=i.events.length-1;for(;U>-1;){const F=i.events[U][1].type;if(F==="lineEnding"||F==="linePrefix")U--;else break}const H=U>-1?i.events[U][1].type:null,oe=H==="tableHead"||H==="tableRow"?A:c;return oe===A&&i.parser.lazy[i.now().line]?n($):oe($)}function c($){return t.enter("tableHead"),t.enter("tableRow"),h($)}function h($){return $===124||(o=!0,s+=1),d($)}function d($){return $===null?n($):Qe($)?s>1?(s=0,i.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume($),t.exit("lineEnding"),O):n($):qe($)?Ke(t,d,"whitespace")($):(s+=1,o&&(o=!1,r+=1),$===124?(t.enter("tableCellDivider"),t.consume($),t.exit("tableCellDivider"),o=!0,d):(t.enter("data"),p($)))}function p($){return $===null||$===124||Ot($)?(t.exit("data"),d($)):(t.consume($),$===92?g:p)}function g($){return $===92||$===124?(t.consume($),p):p($)}function O($){return i.interrupt=!1,i.parser.lazy[i.now().line]?n($):(t.enter("tableDelimiterRow"),o=!1,qe($)?Ke(t,x,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):x($))}function x($){return $===45||$===58?k($):$===124?(o=!0,t.enter("tableCellDivider"),t.consume($),t.exit("tableCellDivider"),S):j($)}function S($){return qe($)?Ke(t,k,"whitespace")($):k($)}function k($){return $===58?(s+=1,o=!0,t.enter("tableDelimiterMarker"),t.consume($),t.exit("tableDelimiterMarker"),_):$===45?(s+=1,_($)):$===null||Qe($)?D($):j($)}function _($){return $===45?(t.enter("tableDelimiterFiller"),T($)):j($)}function T($){return $===45?(t.consume($),T):$===58?(o=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume($),t.exit("tableDelimiterMarker"),C):(t.exit("tableDelimiterFiller"),C($))}function C($){return qe($)?Ke(t,D,"whitespace")($):D($)}function D($){return $===124?x($):$===null||Qe($)?!o||r!==s?j($):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e($)):j($)}function j($){return n($)}function A($){return t.enter("tableRow"),M($)}function M($){return $===124?(t.enter("tableCellDivider"),t.consume($),t.exit("tableCellDivider"),M):$===null||Qe($)?(t.exit("tableRow"),e($)):qe($)?Ke(t,M,"whitespace")($):(t.enter("data"),I($))}function I($){return $===null||$===124||Ot($)?(t.exit("data"),M($)):(t.consume($),$===92?B:I)}function B($){return $===92||$===124?(t.consume($),I):I($)}}function W7(t,e){let n=-1,i=!0,r=0,s=[0,0,0,0],o=[0,0,0,0],l=!1,c=0,h,d,p;const g=new Z7;for(;++n<t.length;){const O=t[n],x=O[1];O[0]==="enter"?x.type==="tableHead"?(l=!1,c!==0&&(KT(g,e,c,h,d),d=void 0,c=0),h={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},g.add(n,0,[["enter",h,e]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(i=!0,p=void 0,s=[0,0,0,0],o=[0,n+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},g.add(n,0,[["enter",d,e]])),r=x.type==="tableDelimiterRow"?2:d?3:1):r&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(i=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],p=Qd(g,e,s,r,void 0,p),s=[0,0,0,0]),o[2]=n)):x.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(o[0]=o[1],p=Qd(g,e,s,r,void 0,p)),s=o,o=[s[1],n,0,0])):x.type==="tableHead"?(l=!0,c=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(c=n,s[1]!==0?(o[0]=o[1],p=Qd(g,e,s,r,n,p)):o[1]!==0&&(p=Qd(g,e,o,r,n,p)),r=0):r&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(o[3]=n)}for(c!==0&&KT(g,e,c,h,d),g.consume(e.events),n=-1;++n<e.events.length;){const O=e.events[n];O[0]==="enter"&&O[1].type==="table"&&(O[1]._align=U7(e.events,n))}return t}function Qd(t,e,n,i,r,s){const o=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",l="tableContent";n[0]!==0&&(s.end=Object.assign({},xl(e.events,n[0])),t.add(n[0],0,[["exit",s,e]]));const c=xl(e.events,n[1]);if(s={type:o,start:Object.assign({},c),end:Object.assign({},c)},t.add(n[1],0,[["enter",s,e]]),n[2]!==0){const h=xl(e.events,n[2]),d=xl(e.events,n[3]),p={type:l,start:Object.assign({},h),end:Object.assign({},d)};if(t.add(n[2],0,[["enter",p,e]]),i!==2){const g=e.events[n[2]],O=e.events[n[3]];if(g[1].end=Object.assign({},O[1].end),g[1].type="chunkText",g[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,S=n[3]-n[2]-1;t.add(x,S,[])}}t.add(n[3]+1,0,[["exit",p,e]])}return r!==void 0&&(s.end=Object.assign({},xl(e.events,r)),t.add(r,0,[["exit",s,e]]),s=void 0),s}function KT(t,e,n,i,r){const s=[],o=xl(e.events,n);r&&(r.end=Object.assign({},o),s.push(["exit",r,e])),i.end=Object.assign({},o),s.push(["exit",i,e]),t.add(n+1,0,s)}function xl(t,e){const n=t[e],i=n[0]==="enter"?"start":"end";return n[1][i]}const H7={name:"tasklistCheck",tokenize:K7};function F7(){return{text:{91:H7}}}function K7(t,e,n){const i=this;return r;function r(c){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(c):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),s)}function s(c){return Ot(c)?(t.enter("taskListCheckValueUnchecked"),t.consume(c),t.exit("taskListCheckValueUnchecked"),o):c===88||c===120?(t.enter("taskListCheckValueChecked"),t.consume(c),t.exit("taskListCheckValueChecked"),o):n(c)}function o(c){return c===93?(t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),l):n(c)}function l(c){return Qe(c)?e(c):qe(c)?t.check({tokenize:J7},e,n)(c):n(c)}}function J7(t,e,n){return Ke(t,i,"whitespace");function i(r){return r===null?n(r):e(r)}}function eU(t){return nR([w7(),M7(),B7(t),Y7(),F7()])}const tU={};function nU(t){const e=this,n=t||tU,i=e.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(eU(n)),s.push(v7()),o.push(S7(n))}const iU="modulepreload",rU=function(t){return"/"+t},JT={},P=function(e,n,i){let r=Promise.resolve();if(n&&n.length>0){let c=function(h){return Promise.all(h.map(d=>Promise.resolve(d).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),l=o?.nonce||o?.getAttribute("nonce");r=c(n.map(h=>{if(h=rU(h),h in JT)return;JT[h]=!0;const d=h.endsWith(".css"),p=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${p}`))return;const g=document.createElement("link");if(g.rel=d?"stylesheet":iU,d||(g.as="script"),g.crossOrigin="",g.href=h,l&&g.setAttribute("nonce",l),document.head.appendChild(g),d)return new Promise((O,x)=>{g.addEventListener("load",O),g.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return r.then(o=>{for(const l of o||[])l.status==="rejected"&&s(l.reason);return e().catch(s)})};let It=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function sU(t){return Bv(t)}function Bv(t){return Array.isArray(t)?oU(t):t instanceof RegExp?t:typeof t=="object"?aU(t):t}function oU(t){let e=[];for(let n=0,i=t.length;n<i;n++)e[n]=Bv(t[n]);return e}function aU(t){let e={};for(let n in t)e[n]=Bv(t[n]);return e}function UR(t,...e){return e.forEach(n=>{for(let i in n)t[i]=n[i]}),t}function YR(t){const e=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return e===0?t:~e===t.length-1?YR(t.substring(0,t.length-1)):t.substr(~e+1)}var gy=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Ed=class{static hasCaptures(t){return t===null?!1:(gy.lastIndex=0,gy.test(t))}static replaceCaptures(t,e,n){return t.replace(gy,(i,r,s,o)=>{let l=n[parseInt(r||s,10)];if(l){let c=e.substring(l.start,l.end);for(;c[0]===".";)c=c.substring(1);switch(o){case"downcase":return c.toLowerCase();case"upcase":return c.toUpperCase();default:return c}}else return i})}};function GR(t,e){return t<e?-1:t>e?1:0}function WR(t,e){if(t===null&&e===null)return 0;if(!t)return-1;if(!e)return 1;let n=t.length,i=e.length;if(n===i){for(let r=0;r<n;r++){let s=GR(t[r],e[r]);if(s!==0)return s}return 0}return n-i}function eC(t){return!!(/^#[0-9a-f]{6}$/i.test(t)||/^#[0-9a-f]{8}$/i.test(t)||/^#[0-9a-f]{3}$/i.test(t)||/^#[0-9a-f]{4}$/i.test(t))}function HR(t){return t.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var FR=class{constructor(t){this.fn=t}cache=new Map;get(t){if(this.cache.has(t))return this.cache.get(t);const e=this.fn(t);return this.cache.set(t,e),e}},qp=class{constructor(t,e,n){this._colorMap=t,this._defaults=e,this._root=n}static createFromRawTheme(t,e){return this.createFromParsedTheme(uU(t),e)}static createFromParsedTheme(t,e){return fU(t,e)}_cachedMatchRoot=new FR(t=>this._root.match(t));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(t){if(t===null)return this._defaults;const e=t.scopeName,i=this._cachedMatchRoot.get(e).find(r=>lU(t.parent,r.parentScopes));return i?new KR(i.fontStyle,i.foreground,i.background):null}},Oy=class pp{constructor(e,n){this.parent=e,this.scopeName=n}static push(e,n){for(const i of n)e=new pp(e,i);return e}static from(...e){let n=null;for(let i=0;i<e.length;i++)n=new pp(n,e[i]);return n}push(e){return new pp(this,e)}getSegments(){let e=this;const n=[];for(;e;)n.push(e.scopeName),e=e.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const n=[];let i=this;for(;i&&i!==e;)n.push(i.scopeName),i=i.parent;return i===e?n.reverse():void 0}};function lU(t,e){if(e.length===0)return!0;for(let n=0;n<e.length;n++){let i=e[n],r=!1;if(i===">"){if(n===e.length-1)return!1;i=e[++n],r=!0}for(;t&&!cU(t.scopeName,i);){if(r)return!1;t=t.parent}if(!t)return!1;t=t.parent}return!0}function cU(t,e){return e===t||t.startsWith(e)&&t[e.length]==="."}var KR=class{constructor(t,e,n){this.fontStyle=t,this.foregroundId=e,this.backgroundId=n}};function uU(t){if(!t)return[];if(!t.settings||!Array.isArray(t.settings))return[];let e=t.settings,n=[],i=0;for(let r=0,s=e.length;r<s;r++){let o=e[r];if(!o.settings)continue;let l;if(typeof o.scope=="string"){let p=o.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),l=p.split(",")}else Array.isArray(o.scope)?l=o.scope:l=[""];let c=-1;if(typeof o.settings.fontStyle=="string"){c=0;let p=o.settings.fontStyle.split(" ");for(let g=0,O=p.length;g<O;g++)switch(p[g]){case"italic":c=c|1;break;case"bold":c=c|2;break;case"underline":c=c|4;break;case"strikethrough":c=c|8;break}}let h=null;typeof o.settings.foreground=="string"&&eC(o.settings.foreground)&&(h=o.settings.foreground);let d=null;typeof o.settings.background=="string"&&eC(o.settings.background)&&(d=o.settings.background);for(let p=0,g=l.length;p<g;p++){let x=l[p].trim().split(" "),S=x[x.length-1],k=null;x.length>1&&(k=x.slice(0,x.length-1),k.reverse()),n[i++]=new hU(S,k,r,c,h,d)}}return n}var hU=class{constructor(t,e,n,i,r,s){this.scope=t,this.parentScopes=e,this.index=n,this.fontStyle=i,this.foreground=r,this.background=s}},On=(t=>(t[t.NotSet=-1]="NotSet",t[t.None=0]="None",t[t.Italic=1]="Italic",t[t.Bold=2]="Bold",t[t.Underline=4]="Underline",t[t.Strikethrough=8]="Strikethrough",t))(On||{});function fU(t,e){t.sort((c,h)=>{let d=GR(c.scope,h.scope);return d!==0||(d=WR(c.parentScopes,h.parentScopes),d!==0)?d:c.index-h.index});let n=0,i="#000000",r="#ffffff";for(;t.length>=1&&t[0].scope==="";){let c=t.shift();c.fontStyle!==-1&&(n=c.fontStyle),c.foreground!==null&&(i=c.foreground),c.background!==null&&(r=c.background)}let s=new dU(e),o=new KR(n,s.getId(i),s.getId(r)),l=new mU(new Vb(0,null,-1,0,0),[]);for(let c=0,h=t.length;c<h;c++){let d=t[c];l.insert(0,d.scope,d.parentScopes,d.fontStyle,s.getId(d.foreground),s.getId(d.background))}return new qp(s,o,l)}var dU=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(t){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(t)){this._isFrozen=!0;for(let e=0,n=t.length;e<n;e++)this._color2id[t[e]]=e,this._id2color[e]=t[e]}else this._isFrozen=!1}getId(t){if(t===null)return 0;t=t.toUpperCase();let e=this._color2id[t];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${t}`);return e=++this._lastColorId,this._color2id[t]=e,this._id2color[e]=t,e}getColorMap(){return this._id2color.slice(0)}},pU=Object.freeze([]),Vb=class JR{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,n,i,r,s){this.scopeDepth=e,this.parentScopes=n||pU,this.fontStyle=i,this.foreground=r,this.background=s}clone(){return new JR(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let n=[];for(let i=0,r=e.length;i<r;i++)n[i]=e[i].clone();return n}acceptOverwrite(e,n,i,r){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,n!==-1&&(this.fontStyle=n),i!==0&&(this.foreground=i),r!==0&&(this.background=r)}},mU=class Bb{constructor(e,n=[],i={}){this._mainRule=e,this._children=i,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(e,n){if(e.scopeDepth!==n.scopeDepth)return n.scopeDepth-e.scopeDepth;let i=0,r=0;for(;e.parentScopes[i]===">"&&i++,n.parentScopes[r]===">"&&r++,!(i>=e.parentScopes.length||r>=n.parentScopes.length);){const s=n.parentScopes[r].length-e.parentScopes[i].length;if(s!==0)return s;i++,r++}return n.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let i=e.indexOf("."),r,s;if(i===-1?(r=e,s=""):(r=e.substring(0,i),s=e.substring(i+1)),this._children.hasOwnProperty(r))return this._children[r].match(s)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Bb._cmpBySpecificity),n}insert(e,n,i,r,s,o){if(n===""){this._doInsertHere(e,i,r,s,o);return}let l=n.indexOf("."),c,h;l===-1?(c=n,h=""):(c=n.substring(0,l),h=n.substring(l+1));let d;this._children.hasOwnProperty(c)?d=this._children[c]:(d=new Bb(this._mainRule.clone(),Vb.cloneArr(this._rulesWithParentScopes)),this._children[c]=d),d.insert(e+1,h,i,r,s,o)}_doInsertHere(e,n,i,r,s){if(n===null){this._mainRule.acceptOverwrite(e,i,r,s);return}for(let o=0,l=this._rulesWithParentScopes.length;o<l;o++){let c=this._rulesWithParentScopes[o];if(WR(c.parentScopes,n)===0){c.acceptOverwrite(e,i,r,s);return}}i===-1&&(i=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new Vb(e,n,i,r,s))}},Zl=class Ri{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const n=Ri.getLanguageId(e),i=Ri.getTokenType(e),r=Ri.getFontStyle(e),s=Ri.getForeground(e),o=Ri.getBackground(e);console.log({languageId:n,tokenType:i,fontStyle:r,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,n,i,r,s,o,l){let c=Ri.getLanguageId(e),h=Ri.getTokenType(e),d=Ri.containsBalancedBrackets(e)?1:0,p=Ri.getFontStyle(e),g=Ri.getForeground(e),O=Ri.getBackground(e);return n!==0&&(c=n),i!==8&&(h=i),r!==null&&(d=r?1:0),s!==-1&&(p=s),o!==0&&(g=o),l!==0&&(O=l),(c<<0|h<<8|d<<10|p<<11|g<<15|O<<24)>>>0}};function Up(t,e){const n=[],i=gU(t);let r=i.next();for(;r!==null;){let c=0;if(r.length===2&&r.charAt(1)===":"){switch(r.charAt(0)){case"R":c=1;break;case"L":c=-1;break;default:console.log(`Unknown priority ${r} in scope selector`)}r=i.next()}let h=o();if(n.push({matcher:h,priority:c}),r!==",")break;r=i.next()}return n;function s(){if(r==="-"){r=i.next();const c=s();return h=>!!c&&!c(h)}if(r==="("){r=i.next();const c=l();return r===")"&&(r=i.next()),c}if(tC(r)){const c=[];do c.push(r),r=i.next();while(tC(r));return h=>e(c,h)}return null}function o(){const c=[];let h=s();for(;h;)c.push(h),h=s();return d=>c.every(p=>p(d))}function l(){const c=[];let h=o();for(;h&&(c.push(h),r==="|"||r===",");){do r=i.next();while(r==="|"||r===",");h=o()}return d=>c.some(p=>p(d))}}function tC(t){return!!t&&!!t.match(/[\w\.:]+/)}function gU(t){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=e.exec(t);return{next:()=>{if(!n)return null;const i=n[0];return n=e.exec(t),i}}}function eL(t){typeof t.dispose=="function"&&t.dispose()}var oh=class{constructor(t){this.scopeName=t}toKey(){return this.scopeName}},OU=class{constructor(t,e){this.scopeName=t,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},yU=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(t){const e=t.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(t))}},bU=class{constructor(t,e){this.repo=t,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new oh(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const t=this.Q;this.Q=[];const e=new yU;for(const n of t)xU(n,this.initialScopeName,this.repo,e);for(const n of e.references)if(n instanceof oh){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function xU(t,e,n,i){const r=n.lookup(t.scopeName);if(!r){if(t.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=n.lookup(e);t instanceof oh?mp({baseGrammar:s,selfGrammar:r},i):Zb(t.ruleName,{baseGrammar:s,selfGrammar:r,repository:r.repository},i);const o=n.injections(t.scopeName);if(o)for(const l of o)i.add(new oh(l))}function Zb(t,e,n){if(e.repository&&e.repository[t]){const i=e.repository[t];Yp([i],e,n)}}function mp(t,e){t.selfGrammar.patterns&&Array.isArray(t.selfGrammar.patterns)&&Yp(t.selfGrammar.patterns,{...t,repository:t.selfGrammar.repository},e),t.selfGrammar.injections&&Yp(Object.values(t.selfGrammar.injections),{...t,repository:t.selfGrammar.repository},e)}function Yp(t,e,n){for(const i of t){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);const r=i.repository?UR({},e.repository,i.repository):e.repository;Array.isArray(i.patterns)&&Yp(i.patterns,{...e,repository:r},n);const s=i.include;if(!s)continue;const o=tL(s);switch(o.kind){case 0:mp({...e,selfGrammar:e.baseGrammar},n);break;case 1:mp(e,n);break;case 2:Zb(o.ruleName,{...e,repository:r},n);break;case 3:case 4:const l=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const c={baseGrammar:e.baseGrammar,selfGrammar:l,repository:r};o.kind===4?Zb(o.ruleName,c,n):mp(c,n)}else o.kind===4?n.add(new OU(o.scopeName,o.ruleName)):n.add(new oh(o.scopeName));break}}}var vU=class{kind=0},SU=class{kind=1},_U=class{constructor(t){this.ruleName=t}kind=2},kU=class{constructor(t){this.scopeName=t}kind=3},wU=class{constructor(t,e){this.scopeName=t,this.ruleName=e}kind=4};function tL(t){if(t==="$base")return new vU;if(t==="$self")return new SU;const e=t.indexOf("#");if(e===-1)return new kU(t);if(e===0)return new _U(t.substring(1));{const n=t.substring(0,e),i=t.substring(e+1);return new wU(n,i)}}var PU=/\\(\d+)/,nC=/\\(\d+)/g,TU=-1,nL=-2;var Bh=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,n,i,r){this.$location=e,this.id=n,this._name=i||null,this._nameIsCapturing=Ed.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Ed.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${YR(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,n){return!this._nameIsCapturing||this._name===null||e===null||n===null?this._name:Ed.replaceCaptures(this._name,e,n)}getContentName(e,n){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Ed.replaceCaptures(this._contentName,e,n)}},CU=class extends Bh{retokenizeCapturedWithRuleId;constructor(t,e,n,i,r){super(t,e,n,i),this.retokenizeCapturedWithRuleId=r}dispose(){}collectPatterns(t,e){throw new Error("Not supported!")}compile(t,e){throw new Error("Not supported!")}compileAG(t,e,n,i){throw new Error("Not supported!")}},QU=class extends Bh{_match;captures;_cachedCompiledPatterns;constructor(t,e,n,i,r){super(t,e,n,null),this._match=new ah(i,this.id),this.captures=r,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,e){e.push(this._match)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new lh,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},iC=class extends Bh{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,i,r){super(t,e,n,i),this.patterns=r.patterns,this.hasMissingPatterns=r.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,e){for(const n of this.patterns)t.getRule(n).collectPatterns(t,e)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new lh,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},qb=class extends Bh{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(t,e,n,i,r,s,o,l,c,h){super(t,e,n,i),this._begin=new ah(r,this.id),this.beginCaptures=s,this._end=new ah(o||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=c||!1,this.patterns=h.patterns,this.hasMissingPatterns=h.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(t,e){return this._end.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t,e).compile(t)}compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t,e).compileAG(t,n,i)}_getCachedCompiledPatterns(t,e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new lh;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,e):this._cachedCompiledPatterns.setSource(0,e)),this._cachedCompiledPatterns}},Gp=class extends Bh{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(t,e,n,i,r,s,o,l,c){super(t,e,n,i),this._begin=new ah(r,this.id),this.beginCaptures=s,this.whileCaptures=l,this._while=new ah(o,nL),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(t,e){return this._while.resolveBackReferences(t,e)}collectPatterns(t,e){e.push(this._begin)}compile(t,e){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,e,n,i){return this._getCachedCompiledPatterns(t).compileAG(t,n,i)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new lh;for(const e of this.patterns)t.getRule(e).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,e){return this._getCachedCompiledWhilePatterns(t,e).compile(t)}compileWhileAG(t,e,n,i){return this._getCachedCompiledWhilePatterns(t,e).compileAG(t,n,i)}_getCachedCompiledWhilePatterns(t,e){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new lh,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,e||"￿"),this._cachedCompiledWhilePatterns}},iL=class mn{static createCaptureRule(e,n,i,r,s){return e.registerRule(o=>new CU(n,o,i,r,s))}static getCompiledRuleId(e,n,i){return e.id||n.registerRule(r=>{if(e.id=r,e.match)return new QU(e.$vscodeTextmateLocation,e.id,e.name,e.match,mn._compileCaptures(e.captures,n,i));if(typeof e.begin>"u"){e.repository&&(i=UR({},i,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new iC(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,mn._compilePatterns(s,n,i))}return e.while?new Gp(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,mn._compileCaptures(e.beginCaptures||e.captures,n,i),e.while,mn._compileCaptures(e.whileCaptures||e.captures,n,i),mn._compilePatterns(e.patterns,n,i)):new qb(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,mn._compileCaptures(e.beginCaptures||e.captures,n,i),e.end,mn._compileCaptures(e.endCaptures||e.captures,n,i),e.applyEndPatternLast,mn._compilePatterns(e.patterns,n,i))}),e.id}static _compileCaptures(e,n,i){let r=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);l>s&&(s=l)}for(let o=0;o<=s;o++)r[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);let c=0;e[o].patterns&&(c=mn.getCompiledRuleId(e[o],n,i)),r[l]=mn.createCaptureRule(n,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,c)}}return r}static _compilePatterns(e,n,i){let r=[];if(e)for(let s=0,o=e.length;s<o;s++){const l=e[s];let c=-1;if(l.include){const h=tL(l.include);switch(h.kind){case 0:case 1:c=mn.getCompiledRuleId(i[l.include],n,i);break;case 2:let d=i[h.ruleName];d&&(c=mn.getCompiledRuleId(d,n,i));break;case 3:case 4:const p=h.scopeName,g=h.kind===4?h.ruleName:null,O=n.getExternalGrammar(p,i);if(O)if(g){let x=O.repository[g];x&&(c=mn.getCompiledRuleId(x,n,O.repository))}else c=mn.getCompiledRuleId(O.repository.$self,n,O.repository);break}}else c=mn.getCompiledRuleId(l,n,i);if(c!==-1){const h=n.getRule(c);let d=!1;if((h instanceof iC||h instanceof qb||h instanceof Gp)&&h.hasMissingPatterns&&h.patterns.length===0&&(d=!0),d)continue;r.push(c)}}return{patterns:r,hasMissingPatterns:(e?e.length:0)!==r.length}}},ah=class rL{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,n){if(e&&typeof e=="string"){const i=e.length;let r=0,s=[],o=!1;for(let l=0;l<i;l++)if(e.charAt(l)==="\\"&&l+1<i){const h=e.charAt(l+1);h==="z"?(s.push(e.substring(r,l)),s.push("$(?!\\n)(?<!\\n)"),r=l+2):(h==="A"||h==="G")&&(o=!0),l++}this.hasAnchor=o,r===0?this.source=e:(s.push(e.substring(r,i)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=PU.test(this.source):this.hasBackReferences=!1}clone(){return new rL(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let i=n.map(r=>e.substring(r.start,r.end));return nC.lastIndex=0,this.source.replace(nC,(r,s)=>HR(i[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],n=[],i=[],r=[],s,o,l,c;for(s=0,o=this.source.length;s<o;s++)l=this.source.charAt(s),e[s]=l,n[s]=l,i[s]=l,r[s]=l,l==="\\"&&s+1<o&&(c=this.source.charAt(s+1),c==="A"?(e[s+1]="￿",n[s+1]="￿",i[s+1]="A",r[s+1]="A"):c==="G"?(e[s+1]="￿",n[s+1]="G",i[s+1]="￿",r[s+1]="G"):(e[s+1]=c,n[s+1]=c,i[s+1]=c,r[s+1]=c),s++);return{A0_G0:e.join(""),A0_G1:n.join(""),A1_G0:i.join(""),A1_G1:r.join("")}}resolveAnchors(e,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},lh=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(t){this._items.push(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}unshift(t){this._items.unshift(t),this._hasAnchors=this._hasAnchors||t.hasAnchor}length(){return this._items.length}setSource(t,e){this._items[t].source!==e&&(this._disposeCaches(),this._items[t].setSource(e))}compile(t){if(!this._cached){let e=this._items.map(n=>n.source);this._cached=new rC(t,e,this._items.map(n=>n.ruleId))}return this._cached}compileAG(t,e,n){return this._hasAnchors?e?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(t,e,n)),this._anchorCache.A0_G0):this.compile(t)}_resolveAnchors(t,e,n){let i=this._items.map(r=>r.resolveAnchors(e,n));return new rC(t,i,this._items.map(r=>r.ruleId))}},rC=class{constructor(t,e,n){this.regExps=e,this.rules=n,this.scanner=t.createOnigScanner(e)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const t=[];for(let e=0,n=this.rules.length;e<n;e++)t.push(" - "+this.rules[e]+": "+this.regExps[e]);return t.join(`
96
+ `)}findNextMatchSync(t,e,n){const i=this.scanner.findNextMatchSync(t,e,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},yy=class{constructor(t,e){this.languageId=t,this.tokenType=e}},EU=class Ub{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,n){this._defaultAttributes=new yy(e,8),this._embeddedLanguagesMatcher=new AU(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?Ub._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}static _NULL_SCOPE_METADATA=new yy(0,0);_getBasicScopeAttributes=new FR(e=>{const n=this._scopeToLanguage(e),i=this._toStandardTokenType(e);return new yy(n,i)});_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const n=e.match(Ub.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},AU=class{values;scopesRegExp;constructor(t){if(t.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(t);const e=t.map(([n,i])=>HR(n));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(t){if(!this.scopesRegExp)return;const e=t.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},sC=class{constructor(t,e){this.stack=t,this.stoppedEarly=e}};function sL(t,e,n,i,r,s,o,l){const c=e.content.length;let h=!1,d=-1;if(o){const O=RU(t,e,n,i,r,s);r=O.stack,i=O.linePos,n=O.isFirstLine,d=O.anchorPosition}const p=Date.now();for(;!h;){if(l!==0&&Date.now()-p>l)return new sC(r,!0);g()}return new sC(r,!1);function g(){const O=LU(t,e,n,i,r,d);if(!O){s.produce(r,c),h=!0;return}const x=O.captureIndices,S=O.matchedRuleId,k=x&&x.length>0?x[0].end>i:!1;if(S===TU){const _=r.getRule(t);s.produce(r,x[0].start),r=r.withContentNameScopesList(r.nameScopesList),Tu(t,e,n,r,s,_.endCaptures,x),s.produce(r,x[0].end);const T=r;if(r=r.parent,d=T.getAnchorPos(),!k&&T.getEnterPos()===i){r=T,s.produce(r,c),h=!0;return}}else{const _=t.getRule(S);s.produce(r,x[0].start);const T=r,C=_.getName(e.content,x),D=r.contentNameScopesList.pushAttributed(C,t);if(r=r.push(S,i,d,x[0].end===c,null,D,D),_ instanceof qb){const j=_;Tu(t,e,n,r,s,j.beginCaptures,x),s.produce(r,x[0].end),d=x[0].end;const A=j.getContentName(e.content,x),M=D.pushAttributed(A,t);if(r=r.withContentNameScopesList(M),j.endHasBackReferences&&(r=r.withEndRule(j.getEndWithResolvedBackReferences(e.content,x))),!k&&T.hasSameRuleAs(r)){r=r.pop(),s.produce(r,c),h=!0;return}}else if(_ instanceof Gp){const j=_;Tu(t,e,n,r,s,j.beginCaptures,x),s.produce(r,x[0].end),d=x[0].end;const A=j.getContentName(e.content,x),M=D.pushAttributed(A,t);if(r=r.withContentNameScopesList(M),j.whileHasBackReferences&&(r=r.withEndRule(j.getWhileWithResolvedBackReferences(e.content,x))),!k&&T.hasSameRuleAs(r)){r=r.pop(),s.produce(r,c),h=!0;return}}else if(Tu(t,e,n,r,s,_.captures,x),s.produce(r,x[0].end),r=r.pop(),!k){r=r.safePop(),s.produce(r,c),h=!0;return}}x[0].end>i&&(i=x[0].end,n=!1)}}function RU(t,e,n,i,r,s){let o=r.beginRuleCapturedEOL?0:-1;const l=[];for(let c=r;c;c=c.pop()){const h=c.getRule(t);h instanceof Gp&&l.push({rule:h,stack:c})}for(let c=l.pop();c;c=l.pop()){const{ruleScanner:h,findOptions:d}=DU(c.rule,t,c.stack.endRule,n,i===o),p=h.findNextMatchSync(e,i,d);if(p){if(p.ruleId!==nL){r=c.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(s.produce(c.stack,p.captureIndices[0].start),Tu(t,e,n,c.stack,s,c.rule.whileCaptures,p.captureIndices),s.produce(c.stack,p.captureIndices[0].end),o=p.captureIndices[0].end,p.captureIndices[0].end>i&&(i=p.captureIndices[0].end,n=!1))}else{r=c.stack.pop();break}}return{stack:r,linePos:i,anchorPosition:o,isFirstLine:n}}function LU(t,e,n,i,r,s){const o=$U(t,e,n,i,r,s),l=t.getInjections();if(l.length===0)return o;const c=MU(l,t,e,n,i,r,s);if(!c)return o;if(!o)return c;const h=o.captureIndices[0].start,d=c.captureIndices[0].start;return d<h||c.priorityMatch&&d===h?c:o}function $U(t,e,n,i,r,s){const o=r.getRule(t),{ruleScanner:l,findOptions:c}=oL(o,t,r.endRule,n,i===s),h=l.findNextMatchSync(e,i,c);return h?{captureIndices:h.captureIndices,matchedRuleId:h.ruleId}:null}function MU(t,e,n,i,r,s,o){let l=Number.MAX_VALUE,c=null,h,d=0;const p=s.contentNameScopesList.getScopeNames();for(let g=0,O=t.length;g<O;g++){const x=t[g];if(!x.matcher(p))continue;const S=e.getRule(x.ruleId),{ruleScanner:k,findOptions:_}=oL(S,e,null,i,r===o),T=k.findNextMatchSync(n,r,_);if(!T)continue;const C=T.captureIndices[0].start;if(!(C>=l)&&(l=C,c=T.captureIndices,h=T.ruleId,d=x.priority,l===r))break}return c?{priorityMatch:d===-1,captureIndices:c,matchedRuleId:h}:null}function oL(t,e,n,i,r){return{ruleScanner:t.compileAG(e,n,i,r),findOptions:0}}function DU(t,e,n,i,r){return{ruleScanner:t.compileWhileAG(e,n,i,r),findOptions:0}}function Tu(t,e,n,i,r,s,o){if(s.length===0)return;const l=e.content,c=Math.min(s.length,o.length),h=[],d=o[0].end;for(let p=0;p<c;p++){const g=s[p];if(g===null)continue;const O=o[p];if(O.length===0)continue;if(O.start>d)break;for(;h.length>0&&h[h.length-1].endPos<=O.start;)r.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop();if(h.length>0?r.produceFromScopes(h[h.length-1].scopes,O.start):r.produce(i,O.start),g.retokenizeCapturedWithRuleId){const S=g.getName(l,o),k=i.contentNameScopesList.pushAttributed(S,t),_=g.getContentName(l,o),T=k.pushAttributed(_,t),C=i.push(g.retokenizeCapturedWithRuleId,O.start,-1,!1,null,k,T),D=t.createOnigString(l.substring(0,O.end));sL(t,D,n&&O.start===0,O.start,C,r,!1,0),eL(D);continue}const x=g.getName(l,o);if(x!==null){const k=(h.length>0?h[h.length-1].scopes:i.contentNameScopesList).pushAttributed(x,t);h.push(new jU(k,O.end))}}for(;h.length>0;)r.produceFromScopes(h[h.length-1].scopes,h[h.length-1].endPos),h.pop()}var jU=class{scopes;endPos;constructor(t,e){this.scopes=t,this.endPos=e}};function NU(t,e,n,i,r,s,o,l){return new IU(t,e,n,i,r,s,o,l)}function oC(t,e,n,i,r){const s=Up(e,Wp),o=iL.getCompiledRuleId(n,i,r.repository);for(const l of s)t.push({debugSelector:e,matcher:l.matcher,ruleId:o,grammar:r,priority:l.priority})}function Wp(t,e){if(e.length<t.length)return!1;let n=0;return t.every(i=>{for(let r=n;r<e.length;r++)if(zU(e[r],i))return n=r+1,!0;return!1})}function zU(t,e){if(!t)return!1;if(t===e)return!0;const n=e.length;return t.length>n&&t.substr(0,n)===e&&t[n]==="."}var IU=class{constructor(t,e,n,i,r,s,o,l){if(this._rootScopeName=t,this.balancedBracketSelectors=s,this._onigLib=l,this._basicScopeAttributesProvider=new EU(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=aC(e,null),this._injections=null,this._tokenTypeMatchers=[],r)for(const c of Object.keys(r)){const h=Up(c,Wp);for(const d of h)this._tokenTypeMatchers.push({matcher:d.matcher,type:r[c]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const t of this._ruleId2desc)t&&t.dispose()}createOnigScanner(t){return this._onigLib.createOnigScanner(t)}createOnigString(t){return this._onigLib.createOnigString(t)}getMetadataForScope(t){return this._basicScopeAttributesProvider.getBasicScopeAttributes(t)}_collectInjections(){const t={lookup:r=>r===this._rootScopeName?this._grammar:this.getExternalGrammar(r),injections:r=>this._grammarRepository.injections(r)},e=[],n=this._rootScopeName,i=t.lookup(n);if(i){const r=i.injections;if(r)for(let o in r)oC(e,o,r[o],this,i);const s=this._grammarRepository.injections(n);s&&s.forEach(o=>{const l=this.getExternalGrammar(o);if(l){const c=l.injectionSelector;c&&oC(e,c,l,this,l)}})}return e.sort((r,s)=>r.priority-s.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(t){const e=++this._lastRuleId,n=t(e);return this._ruleId2desc[e]=n,n}getRule(t){return this._ruleId2desc[t]}getExternalGrammar(t,e){if(this._includedGrammars[t])return this._includedGrammars[t];if(this._grammarRepository){const n=this._grammarRepository.lookup(t);if(n)return this._includedGrammars[t]=aC(n,e&&e.$base),this._includedGrammars[t]}}tokenizeLine(t,e,n=0){const i=this._tokenize(t,e,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(t,e,n=0){const i=this._tokenize(t,e,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(t,e,n,i){this._rootId===-1&&(this._rootId=iL.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let r;if(!e||e===Yb.NULL){r=!0;const h=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),p=Zl.set(0,h.languageId,h.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),g=this.getRule(this._rootId).getName(null,null);let O;g?O=Xu.createRootAndLookUpScopeName(g,p,this):O=Xu.createRoot("unknown",p),e=new Yb(null,this._rootId,-1,-1,!1,null,O,O)}else r=!1,e.reset();t=t+`
97
+ `;const s=this.createOnigString(t),o=s.content.length,l=new VU(n,t,this._tokenTypeMatchers,this.balancedBracketSelectors),c=sL(this,s,r,0,e,l,!0,i);return eL(s),{lineLength:o,lineTokens:l,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function aC(t,e){return t=sU(t),t.repository=t.repository||{},t.repository.$self={$vscodeTextmateLocation:t.$vscodeTextmateLocation,patterns:t.patterns,name:t.scopeName},t.repository.$base=e||t.repository.$self,t}var Xu=class pr{constructor(e,n,i){this.parent=e,this.scopePath=n,this.tokenAttributes=i}static fromExtension(e,n){let i=e,r=e?.scopePath??null;for(const s of n)r=Oy.push(r,s.scopeNames),i=new pr(i,r,s.encodedTokenAttributes);return i}static createRoot(e,n){return new pr(null,new Oy(null,e),n)}static createRootAndLookUpScopeName(e,n,i){const r=i.getMetadataForScope(e),s=new Oy(null,e),o=i.themeProvider.themeMatch(s),l=pr.mergeAttributes(n,r,o);return new pr(null,s,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return pr.equals(this,e)}static equals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.scopeName!==n.scopeName||e.tokenAttributes!==n.tokenAttributes)return!1;e=e.parent,n=n.parent}while(!0)}static mergeAttributes(e,n,i){let r=-1,s=0,o=0;return i!==null&&(r=i.fontStyle,s=i.foregroundId,o=i.backgroundId),Zl.set(e,n.languageId,n.tokenType,null,r,s,o)}pushAttributed(e,n){if(e===null)return this;if(e.indexOf(" ")===-1)return pr._pushAttributed(this,e,n);const i=e.split(/ /g);let r=this;for(const s of i)r=pr._pushAttributed(r,s,n);return r}static _pushAttributed(e,n,i){const r=i.getMetadataForScope(n),s=e.scopePath.push(n),o=i.themeProvider.themeMatch(s),l=pr.mergeAttributes(e.tokenAttributes,r,o);return new pr(e,s,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){const n=[];let i=this;for(;i&&i!==e;)n.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(i.parent?.scopePath??null)}),i=i.parent;return i===e?n.reverse():void 0}},Yb=class Yo{constructor(e,n,i,r,s,o,l,c){this.parent=e,this.ruleId=n,this.beginRuleCapturedEOL=s,this.endRule=o,this.nameScopesList=l,this.contentNameScopesList=c,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new Yo(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(e){return e===null?!1:Yo._equals(this,e)}static _equals(e,n){return e===n?!0:this._structuralEquals(e,n)?Xu.equals(e.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(e,n){do{if(e===n||!e&&!n)return!0;if(!e||!n||e.depth!==n.depth||e.ruleId!==n.ruleId||e.endRule!==n.endRule)return!1;e=e.parent,n=n.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){Yo._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,n,i,r,s,o,l){return new Yo(this,e,n,i,r,s,o,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,n){return this.parent&&(n=this.parent._writeString(e,n)),e[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new Yo(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let n=this;for(;n&&n._enterPos===e._enterPos;){if(n.ruleId===e.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(e,n){const i=Xu.fromExtension(e?.nameScopesList??null,n.nameScopesList);return new Yo(e,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,i,Xu.fromExtension(i,n.contentNameScopesList))}},XU=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(t,e){this.balancedBracketScopes=t.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Up(n,Wp).map(i=>i.matcher)),this.unbalancedBracketScopes=e.flatMap(n=>Up(n,Wp).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(t){for(const e of this.unbalancedBracketScopes)if(e(t))return!1;for(const e of this.balancedBracketScopes)if(e(t))return!0;return this.allowAny}},VU=class{constructor(t,e,n,i){this.balancedBracketSelectors=i,this._emitBinaryTokens=t,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(t,e){this.produceFromScopes(t.contentNameScopesList,e)}produceFromScopes(t,e){if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let i=t?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const s=t?.getScopeNames()??[];for(const o of this._tokenTypeOverrides)o.matcher(s)&&(i=Zl.set(i,0,o.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(s))}if(r&&(i=Zl.set(i,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=e;return}const n=t?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:n}),this._lastTokenEndIndex=e}getResult(t,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(t,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(t,e),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let i=0,r=this._binaryTokens.length;i<r;i++)n[i]=this._binaryTokens[i];return n}},BU=class{constructor(t,e){this._onigLib=e,this._theme=t}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const t of this._grammars.values())t.dispose()}setTheme(t){this._theme=t}getColorMap(){return this._theme.getColorMap()}addGrammar(t,e){this._rawGrammars.set(t.scopeName,t),e&&this._injectionGrammars.set(t.scopeName,e)}lookup(t){return this._rawGrammars.get(t)}injections(t){return this._injectionGrammars.get(t)}getDefaults(){return this._theme.getDefaults()}themeMatch(t){return this._theme.match(t)}grammarForScopeName(t,e,n,i,r){if(!this._grammars.has(t)){let s=this._rawGrammars.get(t);if(!s)return null;this._grammars.set(t,NU(t,s,e,n,i,r,this,this._onigLib))}return this._grammars.get(t)}},ZU=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new BU(qp.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,n){this._syncRegistry.setTheme(qp.createFromRawTheme(e,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,n,i){return this.loadGrammarWithConfiguration(e,n,{embeddedLanguages:i})}loadGrammarWithConfiguration(e,n,i){return this._loadGrammar(e,n,i.embeddedLanguages,i.tokenTypes,new XU(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,n,i,r,s){const o=new bU(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(l=>this._loadSingleGrammar(l.scopeName)),o.processQueue();return this._grammarForScopeName(e,n,i,r,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const n=this._options.loadGrammar(e);if(n){const i=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(n,i)}}addGrammar(e,n=[],i=0,r=null){return this._syncRegistry.addGrammar(e,n),this._grammarForScopeName(e.scopeName,i,r)}_grammarForScopeName(e,n=0,i=null,r=null,s=null){return this._syncRegistry.grammarForScopeName(e,n,i,r,s)}},Gb=Yb.NULL;const qU=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],UU=/["&'<>`]/g,YU=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,GU=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,WU=/[|\\{}()[\]^$+*?.]/g,lC=new WeakMap;function HU(t,e){if(t=t.replace(e.subset?FU(e.subset):UU,i),e.subset||e.escapeOnly)return t;return t.replace(YU,n).replace(GU,i);function n(r,s,o){return e.format((r.charCodeAt(0)-55296)*1024+r.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function i(r,s,o){return e.format(r.charCodeAt(0),o.charCodeAt(s+1),e)}}function FU(t){let e=lC.get(t);return e||(e=KU(t),lC.set(t,e)),e}function KU(t){const e=[];let n=-1;for(;++n<t.length;)e.push(t[n].replace(WU,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const JU=/[\dA-Fa-f]/;function eY(t,e,n){const i="&#x"+t.toString(16).toUpperCase();return n&&e&&!JU.test(String.fromCharCode(e))?i:i+";"}const tY=/\d/;function nY(t,e,n){const i="&#"+String(t);return n&&e&&!tY.test(String.fromCharCode(e))?i:i+";"}const iY=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],by={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},rY=["cent","copy","divide","gt","lt","not","para","times"],aL={}.hasOwnProperty,Wb={};let Ad;for(Ad in by)aL.call(by,Ad)&&(Wb[by[Ad]]=Ad);const sY=/[^\dA-Za-z]/;function oY(t,e,n,i){const r=String.fromCharCode(t);if(aL.call(Wb,r)){const s=Wb[r],o="&"+s;return n&&iY.includes(s)&&!rY.includes(s)&&(!i||e&&e!==61&&sY.test(String.fromCharCode(e)))?o:o+";"}return""}function aY(t,e,n){let i=eY(t,e,n.omitOptionalSemicolons),r;if((n.useNamedReferences||n.useShortestReferences)&&(r=oY(t,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){const s=nY(t,e,n.omitOptionalSemicolons);s.length<i.length&&(i=s)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function Rl(t,e){return HU(t,Object.assign({format:aY},e))}const lY=/^>|^->|<!--|-->|--!>|<!-$/g,cY=[">"],uY=["<",">"];function hY(t,e,n,i){return i.settings.bogusComments?"<?"+Rl(t.value,Object.assign({},i.settings.characterReferences,{subset:cY}))+">":"<!--"+t.value.replace(lY,r)+"-->";function r(s){return Rl(s,Object.assign({},i.settings.characterReferences,{subset:uY}))}}function fY(t,e,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}const Wt=cL(1),lL=cL(-1),dY=[];function cL(t){return e;function e(n,i,r){const s=n?n.children:dY;let o=(i||0)+t,l=s[o];if(!r)for(;l&&Bm(l);)o+=t,l=s[o];return l}}const pY={}.hasOwnProperty;function uL(t){return e;function e(n,i,r){return pY.call(t,n.tagName)&&t[n.tagName](n,i,r)}}const Zv=uL({body:gY,caption:xy,colgroup:xy,dd:xY,dt:bY,head:xy,html:mY,li:yY,optgroup:vY,option:SY,p:OY,rp:cC,rt:cC,tbody:kY,td:uC,tfoot:wY,th:uC,thead:_Y,tr:PY});function xy(t,e,n){const i=Wt(n,e,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&Bm(i.value.charAt(0)))}function mY(t,e,n){const i=Wt(n,e);return!i||i.type!=="comment"}function gY(t,e,n){const i=Wt(n,e);return!i||i.type!=="comment"}function OY(t,e,n){const i=Wt(n,e);return i?i.type==="element"&&(i.tagName==="address"||i.tagName==="article"||i.tagName==="aside"||i.tagName==="blockquote"||i.tagName==="details"||i.tagName==="div"||i.tagName==="dl"||i.tagName==="fieldset"||i.tagName==="figcaption"||i.tagName==="figure"||i.tagName==="footer"||i.tagName==="form"||i.tagName==="h1"||i.tagName==="h2"||i.tagName==="h3"||i.tagName==="h4"||i.tagName==="h5"||i.tagName==="h6"||i.tagName==="header"||i.tagName==="hgroup"||i.tagName==="hr"||i.tagName==="main"||i.tagName==="menu"||i.tagName==="nav"||i.tagName==="ol"||i.tagName==="p"||i.tagName==="pre"||i.tagName==="section"||i.tagName==="table"||i.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function yY(t,e,n){const i=Wt(n,e);return!i||i.type==="element"&&i.tagName==="li"}function bY(t,e,n){const i=Wt(n,e);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function xY(t,e,n){const i=Wt(n,e);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function cC(t,e,n){const i=Wt(n,e);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function vY(t,e,n){const i=Wt(n,e);return!i||i.type==="element"&&i.tagName==="optgroup"}function SY(t,e,n){const i=Wt(n,e);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function _Y(t,e,n){const i=Wt(n,e);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function kY(t,e,n){const i=Wt(n,e);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function wY(t,e,n){return!Wt(n,e)}function PY(t,e,n){const i=Wt(n,e);return!i||i.type==="element"&&i.tagName==="tr"}function uC(t,e,n){const i=Wt(n,e);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const TY=uL({body:EY,colgroup:AY,head:QY,html:CY,tbody:RY});function CY(t){const e=Wt(t,-1);return!e||e.type!=="comment"}function QY(t){const e=new Set;for(const i of t.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(e.has(i.tagName))return!1;e.add(i.tagName)}const n=t.children[0];return!n||n.type==="element"}function EY(t){const e=Wt(t,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Bm(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function AY(t,e,n){const i=lL(n,e),r=Wt(t,-1,!0);return n&&i&&i.type==="element"&&i.tagName==="colgroup"&&Zv(i,n.children.indexOf(i),n)?!1:!!(r&&r.type==="element"&&r.tagName==="col")}function RY(t,e,n){const i=lL(n,e),r=Wt(t,-1);return n&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&Zv(i,n.children.indexOf(i),n)?!1:!!(r&&r.type==="element"&&r.tagName==="tr")}const Rd={name:[[`
98
+ \f\r &/=>`.split(""),`
99
+ \f\r "&'/=>\``.split("")],[`\0
100
+ \f\r "&'/<=>`.split(""),`\0
101
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
102
+ \f\r &>`.split(""),`\0
103
+ \f\r "&'<=>\``.split("")],[`\0
104
+ \f\r "&'<=>\``.split(""),`\0
105
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function LY(t,e,n,i){const r=i.schema,s=r.space==="svg"?!1:i.settings.omitOptionalTags;let o=r.space==="svg"?i.settings.closeEmptyElements:i.settings.voids.includes(t.tagName.toLowerCase());const l=[];let c;r.space==="html"&&t.tagName==="svg"&&(i.schema=Ih);const h=$Y(i,t.properties),d=i.all(r.space==="html"&&t.tagName==="template"?t.content:t);return i.schema=r,d&&(o=!1),(h||!s||!TY(t,e,n))&&(l.push("<",t.tagName,h?" "+h:""),o&&(r.space==="svg"||i.settings.closeSelfClosing)&&(c=h.charAt(h.length-1),(!i.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(d),!o&&(!s||!Zv(t,e,n))&&l.push("</"+t.tagName+">"),l.join("")}function $Y(t,e){const n=[];let i=-1,r;if(e){for(r in e)if(e[r]!==null&&e[r]!==void 0){const s=MY(t,r,e[r]);s&&n.push(s)}}for(;++i<n.length;){const s=t.settings.tightAttributes?n[i].charAt(n[i].length-1):void 0;i!==n.length-1&&s!=='"'&&s!=="'"&&(n[i]+=" ")}return n.join("")}function MY(t,e,n){const i=UA(t.schema,e),r=t.settings.allowParseErrors&&t.schema.space==="html"?0:1,s=t.settings.allowDangerousCharacters?0:1;let o=t.quote,l;if(i.overloadedBoolean&&(n===i.attribute||n==="")?n=!0:(i.boolean||i.overloadedBoolean)&&(typeof n!="string"||n===i.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const c=Rl(i.attribute,Object.assign({},t.settings.characterReferences,{subset:Rd.name[r][s]}));return n===!0||(n=Array.isArray(n)?(i.commaSeparated?NA:GA)(n,{padLeft:!t.settings.tightCommaSeparatedLists}):String(n),t.settings.collapseEmptyAttributes&&!n)?c:(t.settings.preferUnquoted&&(l=Rl(n,Object.assign({},t.settings.characterReferences,{attribute:!0,subset:Rd.unquoted[r][s]}))),l!==n&&(t.settings.quoteSmart&&Bp(n,o)>Bp(n,t.alternative)&&(o=t.alternative),l=o+Rl(n,Object.assign({},t.settings.characterReferences,{subset:(o==="'"?Rd.single:Rd.double)[r][s],attribute:!0}))+o),c+(l&&"="+l))}const DY=["<","&"];function hL(t,e,n,i){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?t.value:Rl(t.value,Object.assign({},i.settings.characterReferences,{subset:DY}))}function jY(t,e,n,i){return i.settings.allowDangerousHtml?t.value:hL(t,e,n,i)}function NY(t,e,n,i){return i.all(t)}const zY=A8("type",{invalid:IY,unknown:XY,handlers:{comment:hY,doctype:fY,element:LY,raw:jY,root:NY,text:hL}});function IY(t){throw new Error("Expected node, not `"+t+"`")}function XY(t){const e=t;throw new Error("Cannot compile unknown node `"+e.type+"`")}const VY={},BY={},ZY=[];function qY(t,e){const n=e||VY,i=n.quote||'"',r=i==='"'?"'":'"';if(i!=='"'&&i!=="'")throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:UY,all:YY,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||qU,characterReferences:n.characterReferences||BY,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Ih:YA,quote:i,alternative:r}.one(Array.isArray(t)?{type:"root",children:t}:t,void 0,void 0)}function UY(t,e,n){return zY(t,e,n,this)}function YY(t){const e=[],n=t&&t.children||ZY;let i=-1;for(;++i<n.length;)e[i]=this.one(n[i],i,t);return e.join("")}function Hp(t,e){const n=typeof t=="string"?{}:{...t.colorReplacements},i=typeof t=="string"?t:t.name;for(const[r,s]of Object.entries(e?.colorReplacements||{}))typeof s=="string"?n[r]=s:r===i&&Object.assign(n,s);return n}function co(t,e){return t&&(e?.[t?.toLowerCase()]||t)}function GY(t){return Array.isArray(t)?t:[t]}async function fL(t){return Promise.resolve(typeof t=="function"?t():t).then(e=>e.default||e)}function qv(t){return!t||["plaintext","txt","text","plain"].includes(t)}function dL(t){return t==="ansi"||qv(t)}function Uv(t){return t==="none"}function pL(t){return Uv(t)}function mL(t,e){if(!e)return t;t.properties||={},t.properties.class||=[],typeof t.properties.class=="string"&&(t.properties.class=t.properties.class.split(/\s+/g)),Array.isArray(t.properties.class)||(t.properties.class=[]);const n=Array.isArray(e)?e:e.split(/\s+/g);for(const i of n)i&&!t.properties.class.includes(i)&&t.properties.class.push(i);return t}function Wm(t,e=!1){const n=t.split(/(\r?\n)/g);let i=0;const r=[];for(let s=0;s<n.length;s+=2){const o=e?n[s]+(n[s+1]||""):n[s];r.push([o,i]),i+=n[s].length,i+=n[s+1]?.length||0}return r}function WY(t){const e=Wm(t,!0).map(([r])=>r);function n(r){if(r===t.length)return{line:e.length-1,character:e[e.length-1].length};let s=r,o=0;for(const l of e){if(s<l.length)break;s-=l.length,o++}return{line:o,character:s}}function i(r,s){let o=0;for(let l=0;l<r;l++)o+=e[l].length;return o+=s,o}return{lines:e,indexToPos:n,posToIndex:i}}function HY(t,e,n){const i=new Set;for(const s of t.matchAll(/lang=["']([\w-]+)["']/g))i.add(s[1]);for(const s of t.matchAll(/(?:```|~~~)([\w-]+)/g))i.add(s[1]);for(const s of t.matchAll(/\\begin\{([\w-]+)\}/g))i.add(s[1]);if(!n)return Array.from(i);const r=n.getBundledLanguages();return Array.from(i).filter(s=>s&&r[s])}const Yv="light-dark()",FY=["color","background-color"];function KY(t,e){let n=0;const i=[];for(const r of e)r>n&&i.push({...t,content:t.content.slice(n,r),offset:t.offset+n}),n=r;return n<t.content.length&&i.push({...t,content:t.content.slice(n),offset:t.offset+n}),i}function JY(t,e){const n=Array.from(e instanceof Set?e:new Set(e)).sort((i,r)=>i-r);return n.length?t.map(i=>i.flatMap(r=>{const s=n.filter(o=>r.offset<o&&o<r.offset+r.content.length).map(o=>o-r.offset).sort((o,l)=>o-l);return s.length?KY(r,s):r})):t}function eG(t,e,n,i,r="css-vars"){const s={content:t.content,explanation:t.explanation,offset:t.offset},o=e.map(d=>Fp(t.variants[d])),l=new Set(o.flatMap(d=>Object.keys(d))),c={},h=(d,p)=>{const g=p==="color"?"":p==="background-color"?"-bg":`-${p}`;return n+e[d]+(p==="color"?"":g)};return o.forEach((d,p)=>{for(const g of l){const O=d[g]||"inherit";if(p===0&&i&&FY.includes(g))if(i===Yv&&o.length>1){const x=e.findIndex(T=>T==="light"),S=e.findIndex(T=>T==="dark");if(x===-1||S===-1)throw new It('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const k=o[x][g]||"inherit",_=o[S][g]||"inherit";c[g]=`light-dark(${k}, ${_})`,r==="css-vars"&&(c[h(p,g)]=O)}else c[g]=O;else r==="css-vars"&&(c[h(p,g)]=O)}}),s.htmlStyle=c,s}function Fp(t){const e={};if(t.color&&(e.color=t.color),t.bgColor&&(e["background-color"]=t.bgColor),t.fontStyle){t.fontStyle&On.Italic&&(e["font-style"]="italic"),t.fontStyle&On.Bold&&(e["font-weight"]="bold");const n=[];t.fontStyle&On.Underline&&n.push("underline"),t.fontStyle&On.Strikethrough&&n.push("line-through"),n.length&&(e["text-decoration"]=n.join(" "))}return e}function Hb(t){return typeof t=="string"?t:Object.entries(t).map(([e,n])=>`${e}:${n}`).join(";")}const gL=new WeakMap;function Hm(t,e){gL.set(t,e)}function ch(t){return gL.get(t)}class uc{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,n){return new uc(Object.fromEntries(GY(n).map(i=>[i,Gb])),e)}constructor(...e){if(e.length===2){const[n,i]=e;this.lang=i,this._stacks=n}else{const[n,i,r]=e;this.lang=i,this._stacks={[r]:n}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return tG(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function tG(t){const e=[],n=new Set;function i(r){if(n.has(r))return;n.add(r);const s=r?.nameScopesList?.scopeName;s&&e.push(s),r.parent&&i(r.parent)}return i(t),e}function nG(t,e){if(!(t instanceof uc))throw new It("Invalid grammar state");return t.getInternalStack(e)}function iG(){const t=new WeakMap;function e(n){if(!t.has(n.meta)){let i=function(o){if(typeof o=="number"){if(o<0||o>n.source.length)throw new It(`Invalid decoration offset: ${o}. Code length: ${n.source.length}`);return{...r.indexToPos(o),offset:o}}else{const l=r.lines[o.line];if(l===void 0)throw new It(`Invalid decoration position ${JSON.stringify(o)}. Lines length: ${r.lines.length}`);let c=o.character;if(c<0&&(c=l.length+c),c<0||c>l.length)throw new It(`Invalid decoration position ${JSON.stringify(o)}. Line ${o.line} length: ${l.length}`);return{...o,character:c,offset:r.posToIndex(o.line,c)}}};const r=WY(n.source),s=(n.options.decorations||[]).map(o=>({...o,start:i(o.start),end:i(o.end)}));rG(s),t.set(n.meta,{decorations:s,converter:r,source:n.source})}return t.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const r=e(this).decorations.flatMap(o=>[o.start.offset,o.end.offset]);return JY(n,r)},code(n){if(!this.options.decorations?.length)return;const i=e(this),r=Array.from(n.children).filter(d=>d.type==="element"&&d.tagName==="span");if(r.length!==i.converter.lines.length)throw new It(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function s(d,p,g,O){const x=r[d];let S="",k=-1,_=-1;if(p===0&&(k=0),g===0&&(_=0),g===Number.POSITIVE_INFINITY&&(_=x.children.length),k===-1||_===-1)for(let C=0;C<x.children.length;C++)S+=OL(x.children[C]),k===-1&&S.length===p&&(k=C+1),_===-1&&S.length===g&&(_=C+1);if(k===-1)throw new It(`Failed to find start index for decoration ${JSON.stringify(O.start)}`);if(_===-1)throw new It(`Failed to find end index for decoration ${JSON.stringify(O.end)}`);const T=x.children.slice(k,_);if(!O.alwaysWrap&&T.length===x.children.length)l(x,O,"line");else if(!O.alwaysWrap&&T.length===1&&T[0].type==="element")l(T[0],O,"token");else{const C={type:"element",tagName:"span",properties:{},children:T};l(C,O,"wrapper"),x.children.splice(k,T.length,C)}}function o(d,p){r[d]=l(r[d],p,"line")}function l(d,p,g){const O=p.properties||{},x=p.transform||(S=>S);return d.tagName=p.tagName||"span",d.properties={...d.properties,...O,class:d.properties.class},p.properties?.class&&mL(d,p.properties.class),d=x(d,g)||d,d}const c=[],h=i.decorations.sort((d,p)=>p.start.offset-d.start.offset||d.end.offset-p.end.offset);for(const d of h){const{start:p,end:g}=d;if(p.line===g.line)s(p.line,p.character,g.character,d);else if(p.line<g.line){s(p.line,p.character,Number.POSITIVE_INFINITY,d);for(let O=p.line+1;O<g.line;O++)c.unshift(()=>o(O,d));s(g.line,0,g.character,d)}}c.forEach(d=>d())}}}function rG(t){for(let e=0;e<t.length;e++){const n=t[e];if(n.start.offset>n.end.offset)throw new It(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=e+1;i<t.length;i++){const r=t[i],s=n.start.offset<=r.start.offset&&r.start.offset<n.end.offset,o=n.start.offset<r.end.offset&&r.end.offset<=n.end.offset,l=r.start.offset<=n.start.offset&&n.start.offset<r.end.offset,c=r.start.offset<n.end.offset&&n.end.offset<=r.end.offset;if(s||o||l||c){if(s&&o||l&&c||l&&n.start.offset===n.end.offset||o&&r.start.offset===r.end.offset)continue;throw new It(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(r.start)} intersect.`)}}}}function OL(t){return t.type==="text"?t.value:t.type==="element"?t.children.map(OL).join(""):""}const sG=[iG()];function Kp(t){const e=oG(t.transformers||[]);return[...e.pre,...e.normal,...e.post,...sG]}function oG(t){const e=[],n=[],i=[];for(const r of t)switch(r.enforce){case"pre":e.push(r);break;case"post":n.push(r);break;default:i.push(r)}return{pre:e,post:n,normal:i}}var ta=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],vy={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function aG(t,e){const n=t.indexOf("\x1B",e);if(n!==-1&&t[n+1]==="["){const i=t.indexOf("m",n);if(i!==-1)return{sequence:t.substring(n+2,i).split(";"),startPosition:n,position:i+1}}return{position:t.length}}function hC(t){const e=t.shift();if(e==="2"){const n=t.splice(0,3).map(i=>Number.parseInt(i));return n.length!==3||n.some(i=>Number.isNaN(i))?void 0:{type:"rgb",rgb:n}}else if(e==="5"){const n=t.shift();if(n)return{type:"table",index:Number(n)}}}function lG(t){const e=[];for(;t.length>0;){const n=t.shift();if(!n)continue;const i=Number.parseInt(n);if(!Number.isNaN(i))if(i===0)e.push({type:"resetAll"});else if(i<=9)vy[i]&&e.push({type:"setDecoration",value:vy[i]});else if(i<=29){const r=vy[i-20];r&&(e.push({type:"resetDecoration",value:r}),r==="dim"&&e.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)e.push({type:"setForegroundColor",value:{type:"named",name:ta[i-30]}});else if(i===38){const r=hC(t);r&&e.push({type:"setForegroundColor",value:r})}else if(i===39)e.push({type:"resetForegroundColor"});else if(i<=47)e.push({type:"setBackgroundColor",value:{type:"named",name:ta[i-40]}});else if(i===48){const r=hC(t);r&&e.push({type:"setBackgroundColor",value:r})}else i===49?e.push({type:"resetBackgroundColor"}):i===53?e.push({type:"setDecoration",value:"overline"}):i===55?e.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?e.push({type:"setForegroundColor",value:{type:"named",name:ta[i-90+8]}}):i>=100&&i<=107&&e.push({type:"setBackgroundColor",value:{type:"named",name:ta[i-100+8]}})}return e}function cG(){let t=null,e=null,n=new Set;return{parse(i){const r=[];let s=0;do{const o=aG(i,s),l=o.sequence?i.substring(s,o.startPosition):i.substring(s);if(l.length>0&&r.push({value:l,foreground:t,background:e,decorations:new Set(n)}),o.sequence){const c=lG(o.sequence);for(const h of c)h.type==="resetAll"?(t=null,e=null,n.clear()):h.type==="resetForegroundColor"?t=null:h.type==="resetBackgroundColor"?e=null:h.type==="resetDecoration"&&n.delete(h.value);for(const h of c)h.type==="setForegroundColor"?t=h.value:h.type==="setBackgroundColor"?e=h.value:h.type==="setDecoration"&&n.add(h.value)}s=o.position}while(s<i.length);return r}}}var uG={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function hG(t=uG){function e(l){return t[l]}function n(l){return`#${l.map(c=>Math.max(0,Math.min(c,255)).toString(16).padStart(2,"0")).join("")}`}let i;function r(){if(i)return i;i=[];for(let h=0;h<ta.length;h++)i.push(e(ta[h]));let l=[0,95,135,175,215,255];for(let h=0;h<6;h++)for(let d=0;d<6;d++)for(let p=0;p<6;p++)i.push(n([l[h],l[d],l[p]]));let c=8;for(let h=0;h<24;h++,c+=10)i.push(n([c,c,c]));return i}function s(l){return r()[l]}function o(l){switch(l.type){case"named":return e(l.name);case"rgb":return n(l.rgb);case"table":return s(l.index)}}return{value:o}}const fG={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function dG(t,e,n){const i=Hp(t,n),r=Wm(e),s=Object.fromEntries(ta.map(c=>{const h=`terminal.ansi${c[0].toUpperCase()}${c.substring(1)}`,d=t.colors?.[h];return[c,d||fG[c]]})),o=hG(s),l=cG();return r.map(c=>l.parse(c[0]).map(h=>{let d,p;h.decorations.has("reverse")?(d=h.background?o.value(h.background):t.bg,p=h.foreground?o.value(h.foreground):t.fg):(d=h.foreground?o.value(h.foreground):t.fg,p=h.background?o.value(h.background):void 0),d=co(d,i),p=co(p,i),h.decorations.has("dim")&&(d=pG(d));let g=On.None;return h.decorations.has("bold")&&(g|=On.Bold),h.decorations.has("italic")&&(g|=On.Italic),h.decorations.has("underline")&&(g|=On.Underline),h.decorations.has("strikethrough")&&(g|=On.Strikethrough),{content:h.value,offset:c[1],color:d,bgColor:p,fontStyle:g}}))}function pG(t){const e=t.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/i);if(e)if(e[3]){const i=Math.round(Number.parseInt(e[3],16)/2).toString(16).padStart(2,"0");return`#${e[1]}${e[2]}${i}`}else return e[2]?`#${e[1]}${e[2]}80`:`#${Array.from(e[1]).map(i=>`${i}${i}`).join("")}80`;const n=t.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:t}function Gv(t,e,n={}){const{lang:i="text",theme:r=t.getLoadedThemes()[0]}=n;if(qv(i)||Uv(r))return Wm(e).map(c=>[{content:c[0],offset:c[1]}]);const{theme:s,colorMap:o}=t.setTheme(r);if(i==="ansi")return dG(s,e,n);const l=t.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==l.name)throw new It(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(s.name))throw new It(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${s.name}"`)}return gG(e,l,s,o,n)}function mG(...t){if(t.length===2)return ch(t[1]);const[e,n,i={}]=t,{lang:r="text",theme:s=e.getLoadedThemes()[0]}=i;if(qv(r)||Uv(s))throw new It("Plain language does not have grammar state");if(r==="ansi")throw new It("ANSI language does not have grammar state");const{theme:o,colorMap:l}=e.setTheme(s),c=e.getLanguage(r);return new uc(Jp(n,c,o,l,i).stateStack,c.name,o.name)}function gG(t,e,n,i,r){const s=Jp(t,e,n,i,r),o=new uc(Jp(t,e,n,i,r).stateStack,e.name,n.name);return Hm(s.tokens,o),s.tokens}function Jp(t,e,n,i,r){const s=Hp(n,r),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:l=500}=r,c=Wm(t);let h=r.grammarState?nG(r.grammarState,n.name)??Gb:r.grammarContextCode!=null?Jp(r.grammarContextCode,e,n,i,{...r,grammarState:void 0,grammarContextCode:void 0}).stateStack:Gb,d=[];const p=[];for(let g=0,O=c.length;g<O;g++){const[x,S]=c[g];if(x===""){d=[],p.push([]);continue}if(o>0&&x.length>=o){d=[],p.push([{content:x,offset:S,color:"",fontStyle:0}]);continue}let k,_,T;r.includeExplanation&&(k=e.tokenizeLine(x,h,l),_=k.tokens,T=0);const C=e.tokenizeLine2(x,h,l),D=C.tokens.length/2;for(let j=0;j<D;j++){const A=C.tokens[2*j],M=j+1<D?C.tokens[2*j+2]:x.length;if(A===M)continue;const I=C.tokens[2*j+1],B=co(i[Zl.getForeground(I)],s),$=Zl.getFontStyle(I),U={content:x.substring(A,M),offset:S+A,color:B,fontStyle:$};if(r.includeExplanation){const H=[];if(r.includeExplanation!=="scopeName")for(const F of n.settings){let Y;switch(typeof F.scope){case"string":Y=F.scope.split(/,/).map(Z=>Z.trim());break;case"object":Y=F.scope;break;default:continue}H.push({settings:F,selectors:Y.map(Z=>Z.split(/ /))})}U.explanation=[];let oe=0;for(;A+oe<M;){const F=_[T],Y=x.substring(F.startIndex,F.endIndex);oe+=Y.length,U.explanation.push({content:Y,scopes:r.includeExplanation==="scopeName"?OG(F.scopes):yG(H,F.scopes)}),T+=1}}d.push(U)}p.push(d),d=[],h=C.ruleStack}return{tokens:p,stateStack:h}}function OG(t){return t.map(e=>({scopeName:e}))}function yG(t,e){const n=[];for(let i=0,r=e.length;i<r;i++){const s=e[i];n[i]={scopeName:s,themeMatches:xG(t,s,e.slice(0,i))}}return n}function fC(t,e){return t===e||e.substring(0,t.length)===t&&e[t.length]==="."}function bG(t,e,n){if(!fC(t[t.length-1],e))return!1;let i=t.length-2,r=n.length-1;for(;i>=0&&r>=0;)fC(t[i],n[r])&&(i-=1),r-=1;return i===-1}function xG(t,e,n){const i=[];for(const{selectors:r,settings:s}of t)for(const o of r)if(bG(o,e,n)){i.push(s);break}return i}function yL(t,e,n){const i=Object.entries(n.themes).filter(c=>c[1]).map(c=>({color:c[0],theme:c[1]})),r=i.map(c=>{const h=Gv(t,e,{...n,theme:c.theme}),d=ch(h),p=typeof c.theme=="string"?c.theme:c.theme.name;return{tokens:h,state:d,theme:p}}),s=vG(...r.map(c=>c.tokens)),o=s[0].map((c,h)=>c.map((d,p)=>{const g={content:d.content,variants:{},offset:d.offset};return"includeExplanation"in n&&n.includeExplanation&&(g.explanation=d.explanation),s.forEach((O,x)=>{const{content:S,explanation:k,offset:_,...T}=O[h][p];g.variants[i[x].color]=T}),g})),l=r[0].state?new uc(Object.fromEntries(r.map(c=>[c.theme,c.state?.getInternalStack(c.theme)])),r[0].state.lang):void 0;return l&&Hm(o,l),o}function vG(...t){const e=t.map(()=>[]),n=t.length;for(let i=0;i<t[0].length;i++){const r=t.map(c=>c[i]),s=e.map(()=>[]);e.forEach((c,h)=>c.push(s[h]));const o=r.map(()=>0),l=r.map(c=>c[0]);for(;l.every(c=>c);){const c=Math.min(...l.map(h=>h.content.length));for(let h=0;h<n;h++){const d=l[h];d.content.length===c?(s[h].push(d),o[h]+=1,l[h]=r[h][o[h]]):(s[h].push({...d,content:d.content.slice(0,c)}),l[h]={...d,content:d.content.slice(c),offset:d.offset+c})}}}return e}function em(t,e,n){let i,r,s,o,l,c;if("themes"in n){const{defaultColor:h="light",cssVariablePrefix:d="--shiki-",colorsRendering:p="css-vars"}=n,g=Object.entries(n.themes).filter(_=>_[1]).map(_=>({color:_[0],theme:_[1]})).sort((_,T)=>_.color===h?-1:T.color===h?1:0);if(g.length===0)throw new It("`themes` option must not be empty");const O=yL(t,e,n);if(c=ch(O),h&&Yv!==h&&!g.find(_=>_.color===h))throw new It(`\`themes\` option must contain the defaultColor key \`${h}\``);const x=g.map(_=>t.getTheme(_.theme)),S=g.map(_=>_.color);s=O.map(_=>_.map(T=>eG(T,S,d,h,p))),c&&Hm(s,c);const k=g.map(_=>Hp(_.theme,n));r=dC(g,x,k,d,h,"fg",p),i=dC(g,x,k,d,h,"bg",p),o=`shiki-themes ${x.map(_=>_.name).join(" ")}`,l=h?void 0:[r,i].join(";")}else if("theme"in n){const h=Hp(n.theme,n);s=Gv(t,e,n);const d=t.getTheme(n.theme);i=co(d.bg,h),r=co(d.fg,h),o=d.name,c=ch(s)}else throw new It("Invalid options, either `theme` or `themes` must be provided");return{tokens:s,fg:r,bg:i,themeName:o,rootStyle:l,grammarState:c}}function dC(t,e,n,i,r,s,o){return t.map((l,c)=>{const h=co(e[c][s],n[c])||"inherit",d=`${i+l.color}${s==="bg"?"-bg":""}:${h}`;if(c===0&&r){if(r===Yv&&t.length>1){const p=t.findIndex(S=>S.color==="light"),g=t.findIndex(S=>S.color==="dark");if(p===-1||g===-1)throw new It('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const O=co(e[p][s],n[p])||"inherit",x=co(e[g][s],n[g])||"inherit";return`light-dark(${O}, ${x});${d}`}return h}return o==="css-vars"?d:null}).filter(l=>!!l).join(";")}function tm(t,e,n,i={meta:{},options:n,codeToHast:(r,s)=>tm(t,r,s),codeToTokens:(r,s)=>em(t,r,s)}){let r=e;for(const x of Kp(n))r=x.preprocess?.call(i,r,n)||r;let{tokens:s,fg:o,bg:l,themeName:c,rootStyle:h,grammarState:d}=em(t,r,n);const{mergeWhitespaces:p=!0,mergeSameStyleTokens:g=!1}=n;p===!0?s=_G(s):p==="never"&&(s=kG(s)),g&&(s=wG(s));const O={...i,get source(){return r}};for(const x of Kp(n))s=x.tokens?.call(O,s)||s;return SG(s,{...n,fg:o,bg:l,themeName:c,rootStyle:h},O,d)}function SG(t,e,n,i=ch(t)){const r=Kp(e),s=[],o={type:"root",children:[]},{structure:l="classic",tabindex:c="0"}=e;let h={type:"element",tagName:"pre",properties:{class:`shiki ${e.themeName||""}`,style:e.rootStyle||`background-color:${e.bg};color:${e.fg}`,...c!==!1&&c!=null?{tabindex:c.toString()}:{},...Object.fromEntries(Array.from(Object.entries(e.meta||{})).filter(([x])=>!x.startsWith("_")))},children:[]},d={type:"element",tagName:"code",properties:{},children:s};const p=[],g={...n,structure:l,addClassToHast:mL,get source(){return n.source},get tokens(){return t},get options(){return e},get root(){return o},get pre(){return h},get code(){return d},get lines(){return p}};if(t.forEach((x,S)=>{S&&(l==="inline"?o.children.push({type:"element",tagName:"br",properties:{},children:[]}):l==="classic"&&s.push({type:"text",value:`
106
+ `}));let k={type:"element",tagName:"span",properties:{class:"line"},children:[]},_=0;for(const T of x){let C={type:"element",tagName:"span",properties:{...T.htmlAttrs},children:[{type:"text",value:T.content}]};const D=Hb(T.htmlStyle||Fp(T));D&&(C.properties.style=D);for(const j of r)C=j?.span?.call(g,C,S+1,_,k,T)||C;l==="inline"?o.children.push(C):l==="classic"&&k.children.push(C),_+=T.content.length}if(l==="classic"){for(const T of r)k=T?.line?.call(g,k,S+1)||k;p.push(k),s.push(k)}else l==="inline"&&p.push(k)}),l==="classic"){for(const x of r)d=x?.code?.call(g,d)||d;h.children.push(d);for(const x of r)h=x?.pre?.call(g,h)||h;o.children.push(h)}else if(l==="inline"){const x=[];let S={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const T of o.children)T.type==="element"&&T.tagName==="br"?(x.push(S),S={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(T.type==="element"||T.type==="text")&&S.children.push(T);x.push(S);let _={type:"element",tagName:"code",properties:{},children:x};for(const T of r)_=T?.code?.call(g,_)||_;o.children=[];for(let T=0;T<_.children.length;T++){T>0&&o.children.push({type:"element",tagName:"br",properties:{},children:[]});const C=_.children[T];C.type==="element"&&o.children.push(...C.children)}}let O=o;for(const x of r)O=x?.root?.call(g,O)||O;return i&&Hm(O,i),O}function _G(t){return t.map(e=>{const n=[];let i="",r=0;return e.forEach((s,o)=>{const c=!(s.fontStyle&&(s.fontStyle&On.Underline||s.fontStyle&On.Strikethrough));c&&s.content.match(/^\s+$/)&&e[o+1]?(r||(r=s.offset),i+=s.content):i?(c?n.push({...s,offset:r,content:i+s.content}):n.push({content:i,offset:r},s),r=0,i=""):n.push(s)}),n})}function kG(t){return t.map(e=>e.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const i=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!i)return n;const[,r,s,o]=i;if(!r&&!o)return n;const l=[{...n,offset:n.offset+r.length,content:s}];return r&&l.unshift({content:r,offset:n.offset}),o&&l.push({content:o,offset:n.offset+r.length+s.length}),l}))}function wG(t){return t.map(e=>{const n=[];for(const i of e){if(n.length===0){n.push({...i});continue}const r=n[n.length-1],s=Hb(r.htmlStyle||Fp(r)),o=Hb(i.htmlStyle||Fp(i)),l=r.fontStyle&&(r.fontStyle&On.Underline||r.fontStyle&On.Strikethrough),c=i.fontStyle&&(i.fontStyle&On.Underline||i.fontStyle&On.Strikethrough);!l&&!c&&s===o?r.content+=i.content:n.push({...i})}return n})}const PG=qY;function TG(t,e,n){const i={meta:{},options:n,codeToHast:(s,o)=>tm(t,s,o),codeToTokens:(s,o)=>em(t,s,o)};let r=PG(tm(t,e,n,i));for(const s of Kp(n))r=s.postprocess?.call(i,r,n)||r;return r}const pC={light:"#333333",dark:"#bbbbbb"},mC={light:"#fffffe",dark:"#1e1e1e"},gC="__shiki_resolved";function Wv(t){if(t?.[gC])return t;const e={...t};e.tokenColors&&!e.settings&&(e.settings=e.tokenColors,delete e.tokenColors),e.type||="dark",e.colorReplacements={...e.colorReplacements},e.settings||=[];let{bg:n,fg:i}=e;if(!n||!i){const l=e.settings?e.settings.find(c=>!c.name&&!c.scope):void 0;l?.settings?.foreground&&(i=l.settings.foreground),l?.settings?.background&&(n=l.settings.background),!i&&e?.colors?.["editor.foreground"]&&(i=e.colors["editor.foreground"]),!n&&e?.colors?.["editor.background"]&&(n=e.colors["editor.background"]),i||(i=e.type==="light"?pC.light:pC.dark),n||(n=e.type==="light"?mC.light:mC.dark),e.fg=i,e.bg=n}e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope||e.settings.unshift({settings:{foreground:e.fg,background:e.bg}});let r=0;const s=new Map;function o(l){if(s.has(l))return s.get(l);r+=1;const c=`#${r.toString(16).padStart(8,"0").toLowerCase()}`;return e.colorReplacements?.[`#${c}`]?o(l):(s.set(l,c),c)}e.settings=e.settings.map(l=>{const c=l.settings?.foreground&&!l.settings.foreground.startsWith("#"),h=l.settings?.background&&!l.settings.background.startsWith("#");if(!c&&!h)return l;const d={...l,settings:{...l.settings}};if(c){const p=o(l.settings.foreground);e.colorReplacements[p]=l.settings.foreground,d.settings.foreground=p}if(h){const p=o(l.settings.background);e.colorReplacements[p]=l.settings.background,d.settings.background=p}return d});for(const l of Object.keys(e.colors||{}))if((l==="editor.foreground"||l==="editor.background"||l.startsWith("terminal.ansi"))&&!e.colors[l]?.startsWith("#")){const c=o(e.colors[l]);e.colorReplacements[c]=e.colors[l],e.colors[l]=c}return Object.defineProperty(e,gC,{enumerable:!1,writable:!1,value:!0}),e}async function bL(t){return Array.from(new Set((await Promise.all(t.filter(e=>!dL(e)).map(async e=>await fL(e).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function xL(t){return(await Promise.all(t.map(async n=>pL(n)?null:Wv(await fL(n))))).filter(n=>!!n)}let CG=3;function QG(t,e=3){e>CG||console.trace(`[SHIKI DEPRECATE]: ${t}`)}let kl=class extends Error{constructor(e){super(e),this.name="ShikiError"}};class EG extends ZU{constructor(e,n,i,r={}){super(e),this._resolver=e,this._themes=n,this._langs=i,this._alias=r,this._themes.map(s=>this.loadTheme(s)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(e){return typeof e=="string"?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){const n=Wv(e);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let n=this._textmateThemeCache.get(e);n||(n=qp.createFromRawTheme(e),this._textmateThemeCache.set(e,n)),this._syncRegistry.setTheme(n)}getGrammar(e){if(this._alias[e]){const n=new Set([e]);for(;this._alias[e];){if(e=this._alias[e],n.has(e))throw new kl(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;const n=new Set([...this._langMap.values()].filter(s=>s.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);const i={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);const r=this.loadGrammarWithConfiguration(e.scopeName,1,i);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(s=>{this._alias[s]=e.name}),this._loadedLanguagesCache=null,n.size)for(const s of n)this._resolvedGrammars.delete(s.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(s.scopeName),this._syncRegistry?._grammars?.delete(s.scopeName),this.loadLanguage(this._langMap.get(s.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(const r of e)this.resolveEmbeddedLanguages(r);const n=Array.from(this._langGraph.entries()),i=n.filter(([r,s])=>!s);if(i.length){const r=n.filter(([s,o])=>o&&o.embeddedLangs?.some(l=>i.map(([c])=>c).includes(l))).filter(s=>!i.includes(s));throw new kl(`Missing languages ${i.map(([s])=>`\`${s}\``).join(", ")}, required by ${r.map(([s])=>`\`${s}\``).join(", ")}`)}for(const[r,s]of n)this._resolver.addLanguage(s);for(const[r,s]of n)this.loadLanguage(s)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);const n=e.embeddedLanguages??e.embeddedLangs;if(n)for(const i of n)this._langGraph.set(i,this._langMap.get(i))}}class AG{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,n){this._onigLib={createOnigScanner:i=>e.createScanner(i),createOnigString:i=>e.createString(i)},n.forEach(i=>this.addLanguage(i))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(n=>{this._langs.set(n,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(e.scopeName)})}getInjections(e){const n=e.split(".");let i=[];for(let r=1;r<=n.length;r++){const s=n.slice(0,r).join(".");i=[...i,...this._injections.get(s)||[]]}return i}}let gu=0;function RG(t){gu+=1,t.warnings!==!1&&gu>=10&&gu%10===0&&console.warn(`[Shiki] ${gu} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let e=!1;if(!t.engine)throw new kl("`engine` option is required for synchronous mode");const n=(t.langs||[]).flat(1),i=(t.themes||[]).flat(1).map(Wv),r=new AG(t.engine,n),s=new EG(r,i,n,t.langAlias);let o;function l(T){k();const C=s.getGrammar(typeof T=="string"?T:T.name);if(!C)throw new kl(`Language \`${T}\` not found, you may need to load it first`);return C}function c(T){if(T==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};k();const C=s.getTheme(T);if(!C)throw new kl(`Theme \`${T}\` not found, you may need to load it first`);return C}function h(T){k();const C=c(T);o!==T&&(s.setTheme(C),o=T);const D=s.getColorMap();return{theme:C,colorMap:D}}function d(){return k(),s.getLoadedThemes()}function p(){return k(),s.getLoadedLanguages()}function g(...T){k(),s.loadLanguages(T.flat(1))}async function O(...T){return g(await bL(T))}function x(...T){k();for(const C of T.flat(1))s.loadTheme(C)}async function S(...T){return k(),x(await xL(T))}function k(){if(e)throw new kl("Shiki instance has been disposed")}function _(){e||(e=!0,s.dispose(),gu-=1)}return{setTheme:h,getTheme:c,getLanguage:l,getLoadedThemes:d,getLoadedLanguages:p,loadLanguage:O,loadLanguageSync:g,loadTheme:S,loadThemeSync:x,dispose:_,[Symbol.dispose]:_}}async function LG(t){t.engine||QG("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[e,n,i]=await Promise.all([xL(t.themes||[]),bL(t.langs||[]),t.engine]);return RG({...t,themes:e,langs:n,engine:i})}async function $G(t){const e=await LG(t);return{getLastGrammarState:(...n)=>mG(e,...n),codeToTokensBase:(n,i)=>Gv(e,n,i),codeToTokensWithThemes:(n,i)=>yL(e,n,i),codeToTokens:(n,i)=>em(e,n,i),codeToHast:(n,i)=>tm(e,n,i),codeToHtml:(n,i)=>TG(e,n,i),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...e,getInternalContext:()=>e}}function MG(t){const e=t.langs,n=t.themes,i=t.engine;async function r(s){function o(p){if(typeof p=="string"){if(dL(p))return[];p=s.langAlias?.[p]||p;const g=e[p];if(!g)throw new It(`Language \`${p}\` is not included in this bundle. You may want to load it from external source.`);return g}return p}function l(p){if(pL(p))return"none";if(typeof p=="string"){const g=n[p];if(!g)throw new It(`Theme \`${p}\` is not included in this bundle. You may want to load it from external source.`);return g}return p}const c=(s.themes??[]).map(p=>l(p)),h=(s.langs??[]).map(p=>o(p)),d=await $G({engine:s.engine??i(),...s,themes:c,langs:h});return{...d,loadLanguage(...p){return d.loadLanguage(...p.map(o))},loadTheme(...p){return d.loadTheme(...p.map(l))},getBundledLanguages(){return e},getBundledThemes(){return n}}}return r}function DG(t){let e;async function n(i={}){if(e){const r=await e;return await Promise.all([r.loadTheme(...i.themes||[]),r.loadLanguage(...i.langs||[])]),r}else{e=t({...i,themes:[],langs:[]});const r=await e;return await Promise.all([r.loadTheme(...i.themes||[]),r.loadLanguage(...i.langs||[])]),r}}return n}function jG(t,e){const n=DG(t);async function i(r,s){const o=await n({langs:[s.lang],themes:"theme"in s?[s.theme]:Object.values(s.themes)}),l=await e?.guessEmbeddedLanguages?.(r,s.lang,o);return l&&await o.loadLanguage(...l),o}return{getSingletonHighlighter(r){return n(r)},async codeToHtml(r,s){return(await i(r,s)).codeToHtml(r,s)},async codeToHast(r,s){return(await i(r,s)).codeToHast(r,s)},async codeToTokens(r,s){return(await i(r,s)).codeToTokens(r,s)},async codeToTokensBase(r,s){return(await i(r,s)).codeToTokensBase(r,s)},async codeToTokensWithThemes(r,s){return(await i(r,s)).codeToTokensWithThemes(r,s)},async getLastGrammarState(r,s){return(await n({langs:[s.lang],themes:[s.theme]})).getLastGrammarState(r,s)}}}const vL=[{id:"abap",name:"ABAP",import:(()=>P(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>P(()=>import("./actionscript-3-CfeIJUat.js"),[]))},{id:"ada",name:"Ada",import:(()=>P(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>P(()=>import("./angular-html-CU67Zn6k.js").then(t=>t.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>P(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>P(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>P(()=>import("./apex-DDbsPZ6N.js"),[]))},{id:"apl",name:"APL",import:(()=>P(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>P(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>P(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>P(()=>import("./asciidoc-Dv7Oe6Be.js"),[]))},{id:"asm",name:"Assembly",import:(()=>P(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>P(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>P(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>P(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>P(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>P(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>P(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>P(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>P(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"blade",name:"Blade",import:(()=>P(()=>import("./blade-DVc8C-J4.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>P(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>P(()=>import("./c-BIGW1oBm.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>P(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>P(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>P(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>P(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>P(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>P(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>P(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>P(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>P(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>P(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>P(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>P(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>P(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>P(()=>import("./csharp-K5feNrxe.js"),[]))},{id:"css",name:"CSS",import:(()=>P(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>P(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>P(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>P(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>P(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>P(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>P(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>P(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>P(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>P(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>P(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>P(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>P(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>P(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>P(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>P(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>P(()=>import("./erb-BOJIQeun.js"),__vite__mapDeps([32,1,2,3,33,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"erlang",name:"Erlang",aliases:["erl"],import:(()=>P(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>P(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>P(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>P(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>P(()=>import("./fortran-fixed-form-BZjJHVRy.js"),__vite__mapDeps([41,42])))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:(()=>P(()=>import("./fortran-free-form-D22FLkUw.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>P(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",import:(()=>P(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",import:(()=>P(()=>import("./gdscript-DTMYz4Jt.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>P(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>P(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>P(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>P(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>P(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>P(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>P(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>P(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>P(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gnuplot",name:"Gnuplot",import:(()=>P(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>P(()=>import("./go-Dn2_MT6a.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>P(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>P(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>P(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>P(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>P(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>P(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>P(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>P(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>P(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>P(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>P(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>P(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>P(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>P(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>P(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>P(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>P(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>P(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>P(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>P(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>P(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>P(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>P(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>P(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>P(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>P(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>P(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>P(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>P(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>P(()=>import("./julia-C8NyazO9.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"kdl",name:"KDL",import:(()=>P(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>P(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>P(()=>import("./kusto-BvAqAH-y.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>P(()=>import("./latex-BdAV_C_H.js"),__vite__mapDeps([63,64,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>P(()=>import("./lean-Bc6EcWN3.js"),[]))},{id:"less",name:"Less",import:(()=>P(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>P(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([65,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>P(()=>import("./llvm-BtvRca6l.js"),[]))},{id:"log",name:"Log file",import:(()=>P(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>P(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>P(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>P(()=>import("./luau-CXu1NL6O.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>P(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>P(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>P(()=>import("./marko-CPi9NSCl.js"),__vite__mapDeps([66,3,67,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>P(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>P(()=>import("./mdc-DUICxH0z.js"),__vite__mapDeps([68,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>P(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>P(()=>import("./mermaid-DKYwYmdq.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>P(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>P(()=>import("./mojo-1DNp92w6.js"),[]))},{id:"move",name:"Move",import:(()=>P(()=>import("./move-Bu9oaDYs.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>P(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>P(()=>import("./nextflow-BrzmwbiE.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>P(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([69,37,26])))},{id:"nim",name:"Nim",import:(()=>P(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>P(()=>import("./nix-c8nO5XWb.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>P(()=>import("./nushell-C-sUppwS.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>P(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>P(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>P(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>P(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>P(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>P(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([71,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>P(()=>import("./php-CDn_0X-4.js"),__vite__mapDeps([72,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>P(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>P(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>P(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>P(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>P(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>P(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>P(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>P(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>P(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>P(()=>import("./proto-DyJlTyXw.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>P(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([73,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>P(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>P(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>P(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>P(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([74,2])))},{id:"qmldir",name:"QML Directory",import:(()=>P(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>P(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>P(()=>import("./r-DiinP2Uv.js"),[]))},{id:"racket",name:"Racket",import:(()=>P(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>P(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>P(()=>import("./razor-CE9lU5zL.js"),__vite__mapDeps([75,1,2,3,76])))},{id:"reg",name:"Windows Registry Script",import:(()=>P(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>P(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>P(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>P(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>P(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>P(()=>import("./rst-B0xPkSld.js"),__vite__mapDeps([77,15,1,2,3,23,24,25,26,16,20,28,38,78,33,34,7,8,35,11,36,13,37])))},{id:"ruby",name:"Ruby",aliases:["rb"],import:(()=>P(()=>import("./ruby-BvKwtOVI.js"),__vite__mapDeps([33,1,2,3,34,7,8,16,35,11,36,13,23,24,25,26,28,37,38])))},{id:"rust",name:"Rust",aliases:["rs"],import:(()=>P(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>P(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([79,16])))},{id:"sass",name:"Sass",import:(()=>P(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>P(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>P(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>P(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>P(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>P(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([80,81])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>P(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>P(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([82,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>P(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>P(()=>import("./solidity-rGO070M0.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>P(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([83,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>P(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([84,85])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>P(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>P(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>P(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>P(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([86,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>P(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"svelte",name:"Svelte",import:(()=>P(()=>import("./svelte-3Dk4HxPD.js"),__vite__mapDeps([87,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>P(()=>import("./swift-Dg5xB15N.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>P(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>P(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>P(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>P(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>P(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>P(()=>import("./templ-W15q3VgB.js"),__vite__mapDeps([88,89,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>P(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>P(()=>import("./tex-CxkMU7Pf.js"),__vite__mapDeps([64,62])))},{id:"toml",name:"TOML",import:(()=>P(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>P(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([90,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>P(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>P(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>P(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>P(()=>import("./twig-CO9l9SDP.js"),__vite__mapDeps([91,3,2,5,72,1,7,8,16,9,20,33,34,35,11,36,13,23,24,25,26,28,37,38])))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:(()=>P(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>P(()=>import("./typespec-BGHnOYBU.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>P(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>P(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>P(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>P(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>P(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>P(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>P(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>P(()=>import("./vue-DnHKYNfI.js"),__vite__mapDeps([92,3,2,11,9,15,1])))},{id:"vue-html",name:"Vue HTML",import:(()=>P(()=>import("./vue-html-CChd_i61.js"),__vite__mapDeps([93,92,3,2,11,9,15,1])))},{id:"vue-vine",name:"Vue Vine",import:(()=>P(()=>import("./vue-vine-8moa0y9V.js"),__vite__mapDeps([94,3,5,67,95,12,92,2,11,9,15,1])))},{id:"vyper",name:"Vyper",aliases:["vy"],import:(()=>P(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>P(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>P(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>P(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>P(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>P(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>P(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>P(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>P(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([96,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>P(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>P(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>P(()=>import("./zig-VOosw3JB.js"),[]))}],NG=Object.fromEntries(vL.map(t=>[t.id,t.import])),zG=Object.fromEntries(vL.flatMap(t=>t.aliases?.map(e=>[e,t.import])||[])),IG={...NG,...zG},XG=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>P(()=>import("./andromeeda-C-Jbm3Hp.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>P(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>P(()=>import("./ayu-dark-Cv9koXgw.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>P(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>P(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>P(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>P(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>P(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>P(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>P(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>P(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>P(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>P(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>P(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>P(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>P(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>P(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>P(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>P(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>P(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>P(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>P(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>P(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>P(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>P(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>P(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>P(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>P(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>P(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>P(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>P(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>P(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>P(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>P(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>P(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>P(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>P(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>P(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>P(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>P(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>P(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>P(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>P(()=>import("./one-light-PoHY5YXO.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>P(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>P(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>P(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>P(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>P(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>P(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>P(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>P(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>P(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>P(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>P(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>P(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>P(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>P(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>P(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>P(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>P(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],VG=Object.fromEntries(XG.map(t=>[t.id,t.import]));class Hv extends Error{constructor(e){super(e),this.name="ShikiError"}}function BG(){return 2147483648}function ZG(){return typeof performance<"u"?performance.now():Date.now()}const qG=(t,e)=>t+(e-t%e)%e;async function UG(t){let e,n;const i={};function r(O){n=O,i.HEAPU8=new Uint8Array(O),i.HEAPU32=new Uint32Array(O)}function s(O,x,S){i.HEAPU8.copyWithin(O,x,x+S)}function o(O){try{return e.grow(O-n.byteLength+65535>>>16),r(e.buffer),1}catch{}}function l(O){const x=i.HEAPU8.length;O=O>>>0;const S=BG();if(O>S)return!1;for(let k=1;k<=4;k*=2){let _=x*(1+.2/k);_=Math.min(_,O+100663296);const T=Math.min(S,qG(Math.max(O,_),65536));if(o(T))return!0}return!1}const c=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function h(O,x,S=1024){const k=x+S;let _=x;for(;O[_]&&!(_>=k);)++_;if(_-x>16&&O.buffer&&c)return c.decode(O.subarray(x,_));let T="";for(;x<_;){let C=O[x++];if(!(C&128)){T+=String.fromCharCode(C);continue}const D=O[x++]&63;if((C&224)===192){T+=String.fromCharCode((C&31)<<6|D);continue}const j=O[x++]&63;if((C&240)===224?C=(C&15)<<12|D<<6|j:C=(C&7)<<18|D<<12|j<<6|O[x++]&63,C<65536)T+=String.fromCharCode(C);else{const A=C-65536;T+=String.fromCharCode(55296|A>>10,56320|A&1023)}}return T}function d(O,x){return O?h(i.HEAPU8,O,x):""}const p={emscripten_get_now:ZG,emscripten_memcpy_big:s,emscripten_resize_heap:l,fd_write:()=>0};async function g(){const x=await t({env:p,wasi_snapshot_preview1:p});e=x.memory,r(e.buffer),Object.assign(i,x),i.UTF8ToString=d}return await g(),i}var YG=Object.defineProperty,GG=(t,e,n)=>e in t?YG(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ut=(t,e,n)=>GG(t,typeof e!="symbol"?e+"":e,n);let Jt=null;function WG(t){throw new Hv(t.UTF8ToString(t.getLastOnigError()))}class Fm{constructor(e){Ut(this,"utf16Length"),Ut(this,"utf8Length"),Ut(this,"utf16Value"),Ut(this,"utf8Value"),Ut(this,"utf16OffsetToUtf8"),Ut(this,"utf8OffsetToUtf16");const n=e.length,i=Fm._utf8ByteLength(e),r=i!==n,s=r?new Uint32Array(n+1):null;r&&(s[n]=i);const o=r?new Uint32Array(i+1):null;r&&(o[i]=n);const l=new Uint8Array(i);let c=0;for(let h=0;h<n;h++){const d=e.charCodeAt(h);let p=d,g=!1;if(d>=55296&&d<=56319&&h+1<n){const O=e.charCodeAt(h+1);O>=56320&&O<=57343&&(p=(d-55296<<10)+65536|O-56320,g=!0)}r&&(s[h]=c,g&&(s[h+1]=c),p<=127?o[c+0]=h:p<=2047?(o[c+0]=h,o[c+1]=h):p<=65535?(o[c+0]=h,o[c+1]=h,o[c+2]=h):(o[c+0]=h,o[c+1]=h,o[c+2]=h,o[c+3]=h)),p<=127?l[c++]=p:p<=2047?(l[c++]=192|(p&1984)>>>6,l[c++]=128|(p&63)>>>0):p<=65535?(l[c++]=224|(p&61440)>>>12,l[c++]=128|(p&4032)>>>6,l[c++]=128|(p&63)>>>0):(l[c++]=240|(p&1835008)>>>18,l[c++]=128|(p&258048)>>>12,l[c++]=128|(p&4032)>>>6,l[c++]=128|(p&63)>>>0),g&&h++}this.utf16Length=n,this.utf8Length=i,this.utf16Value=e,this.utf8Value=l,this.utf16OffsetToUtf8=s,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let n=0;for(let i=0,r=e.length;i<r;i++){const s=e.charCodeAt(i);let o=s,l=!1;if(s>=55296&&s<=56319&&i+1<r){const c=e.charCodeAt(i+1);c>=56320&&c<=57343&&(o=(s-55296<<10)+65536|c-56320,l=!0)}o<=127?n+=1:o<=2047?n+=2:o<=65535?n+=3:n+=4,l&&i++}return n}createString(e){const n=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,n),n}}const Km=class mr{constructor(e){if(Ut(this,"id",++mr.LAST_ID),Ut(this,"_onigBinding"),Ut(this,"content"),Ut(this,"utf16Length"),Ut(this,"utf8Length"),Ut(this,"utf16OffsetToUtf8"),Ut(this,"utf8OffsetToUtf16"),Ut(this,"ptr"),!Jt)throw new Hv("Must invoke loadWasm first.");this._onigBinding=Jt,this.content=e;const n=new Fm(e);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!mr._sharedPtrInUse?(mr._sharedPtr||(mr._sharedPtr=Jt.omalloc(1e4)),mr._sharedPtrInUse=!0,Jt.HEAPU8.set(n.utf8Value,mr._sharedPtr),this.ptr=mr._sharedPtr):this.ptr=n.createString(Jt)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===mr._sharedPtr?mr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};Ut(Km,"LAST_ID",0);Ut(Km,"_sharedPtr",0);Ut(Km,"_sharedPtrInUse",!1);let SL=Km;class HG{constructor(e){if(Ut(this,"_onigBinding"),Ut(this,"_ptr"),!Jt)throw new Hv("Must invoke loadWasm first.");const n=[],i=[];for(let l=0,c=e.length;l<c;l++){const h=new Fm(e[l]);n[l]=h.createString(Jt),i[l]=h.utf8Length}const r=Jt.omalloc(4*e.length);Jt.HEAPU32.set(n,r/4);const s=Jt.omalloc(4*e.length);Jt.HEAPU32.set(i,s/4);const o=Jt.createOnigScanner(r,s,e.length);for(let l=0,c=e.length;l<c;l++)Jt.ofree(n[l]);Jt.ofree(s),Jt.ofree(r),o===0&&WG(Jt),this._onigBinding=Jt,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,n,i){let r=0;if(typeof i=="number"&&(r=i),typeof e=="string"){e=new SL(e);const s=this._findNextMatchSync(e,n,!1,r);return e.dispose(),s}return this._findNextMatchSync(e,n,!1,r)}_findNextMatchSync(e,n,i,r){const s=this._onigBinding,o=s.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(n),r);if(o===0)return null;const l=s.HEAPU32;let c=o/4;const h=l[c++],d=l[c++],p=[];for(let g=0;g<d;g++){const O=e.convertUtf8OffsetToUtf16(l[c++]),x=e.convertUtf8OffsetToUtf16(l[c++]);p[g]={start:O,end:x,length:x-O}}return{index:h,captureIndices:p}}}function FG(t){return typeof t.instantiator=="function"}function KG(t){return typeof t.default=="function"}function JG(t){return typeof t.data<"u"}function eW(t){return typeof Response<"u"&&t instanceof Response}function tW(t){return typeof ArrayBuffer<"u"&&(t instanceof ArrayBuffer||ArrayBuffer.isView(t))||typeof Buffer<"u"&&Buffer.isBuffer?.(t)||typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&t instanceof Uint32Array}let Ld;function nW(t){if(Ld)return Ld;async function e(){Jt=await UG(async n=>{let i=t;return i=await i,typeof i=="function"&&(i=await i(n)),typeof i=="function"&&(i=await i(n)),FG(i)?i=await i.instantiator(n):KG(i)?i=await i.default(n):(JG(i)&&(i=i.data),eW(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await iW(i)(n):i=await rW(i)(n):tW(i)?i=await Sy(i)(n):i instanceof WebAssembly.Module?i=await Sy(i)(n):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await Sy(i.default)(n))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return Ld=e(),Ld}function Sy(t){return e=>WebAssembly.instantiate(t,e)}function iW(t){return e=>WebAssembly.instantiateStreaming(t,e)}function rW(t){return async e=>{const n=await t.arrayBuffer();return WebAssembly.instantiate(n,e)}}async function sW(t){return t&&await nW(t),{createScanner(e){return new HG(e.map(n=>typeof n=="string"?n:n.source))},createString(e){return new SL(e)}}}const oW=MG({langs:IG,themes:VG,engine:()=>sW(P(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:OC}=jG(oW,{guessEmbeddedLanguages:HY});function aW({children:t,className:e="",components:n}){return v.jsx("div",{className:`markdown-content ${e}`,children:v.jsx(V9,{remarkPlugins:[nU],components:{code:lW,pre:({children:i})=>v.jsx(v.Fragment,{children:i}),...n},children:t})})}function lW({children:t,className:e}){const[n,i]=z.useState(null),r=String(t).replace(/\n$/,""),s=/language-(\w+)/.exec(e||""),o=s?s[1]:void 0,l=!o&&!r.includes(`
107
+ `);return z.useEffect(()=>{if(l)return;let c=!0;return(async()=>{try{const d=await OC(r,{lang:o||"text",themes:{light:"github-light",dark:"github-dark"}});c&&i(d)}catch{const d=await OC(r,{lang:"text",themes:{light:"github-light",dark:"github-dark"}});c&&i(d)}})(),()=>{c=!1}},[r,o,l]),l?v.jsx("code",{className:"bg-muted text-foreground rounded px-1.5 py-0.5 font-mono text-sm",children:r}):n?v.jsx("div",{className:"shiki-wrapper overflow-x-auto rounded-md text-sm [&_pre]:m-0 [&_pre]:bg-transparent [&_pre]:p-4",dangerouslySetInnerHTML:{__html:n}}):v.jsx("pre",{className:"bg-muted/50 border-border overflow-x-auto rounded-md border p-4",children:v.jsx("code",{className:"text-foreground font-mono text-sm",children:r})})}function cW(t){const e=[],n=[];return t.forEach((i,r)=>{const s={item:i,index:r,children:[]},o=i.level??1;for(;n.length>0;){const l=n[n.length-1];if((l.item.level??1)<o){l.children.push(s),n.push(s);return}n.pop()}e.push(s),n.push(s)}),e}function uW({items:t,defaultCollapsed:e=!0,className:n=""}){const[i,r]=z.useState(e),s=z.useMemo(()=>cW(t),[t]);return t.length===0?v.jsx("aside",{className:`hidden ${n}`}):v.jsxs("aside",{className:`toc-root scrollbar-none sticky top-0 z-10 max-h-[calc(100cqh-3rem)] self-start overflow-y-auto ${n}`,children:[v.jsx("style",{children:pW}),v.jsxs("div",{className:"toc-narrow border-border bg-background overflow-hidden rounded border",children:[v.jsxs("button",{onClick:()=>r(!i),className:`text-foreground flex w-full items-center gap-2 px-3 py-2 ${i?"":"border-border border-b"}`,"aria-label":i?"Show table of contents":"Hide table of contents",children:[v.jsx(YP,{className:"h-4 w-4"}),v.jsx("span",{className:"text-sm",children:"Contents"}),v.jsx(x4,{className:`ml-auto h-4 w-4 transition-transform ${i?"":"rotate-180"}`})]}),!i&&v.jsx(Fb,{nodes:s})]}),v.jsxs("nav",{className:"toc-wide flex flex-col",children:[v.jsxs("div",{className:"text-muted-foreground flex items-center gap-2 px-3 py-2 text-xs font-medium uppercase tracking-wide",children:[v.jsx(YP,{className:"h-3.5 w-3.5"}),v.jsx("span",{children:"On this page"})]}),v.jsx("div",{className:"scrollbar-thin scrollbar-track-transparent min-h-0 flex-1 overflow-y-auto p-2",children:v.jsx(Fb,{nodes:s})})]})]})}function hW(t){return t.closest(".toc-root")}function fW(t){const e=hW(t);if(!e)return;const n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),r=n.top-i.top,s=n.bottom-i.top;r<0?e.scrollTo({top:e.scrollTop+r,behavior:"smooth"}):s>i.height&&e.scrollTo({top:e.scrollTop+s-i.height,behavior:"smooth"})}function Fb({nodes:t,depth:e=0}){const n=z.useCallback(i=>{i.animationName==="toc-activate"&&fW(i.currentTarget)},[]);return t.length===0?null:v.jsx("ul",{className:"toc-list",children:t.map(i=>v.jsxs("li",{className:"toc-item",children:[v.jsx("a",{href:`#${i.item.id}`,className:`toc-link text-muted-foreground hover:text-foreground block overflow-hidden text-ellipsis whitespace-nowrap border-l-2 border-transparent py-1 pr-3 ${e===0?"text-[13px]":e===1?"text-[12px]":e===2?"text-[11px]":"text-[10px]"}`,style:{"--target":`--toc-${i.index}`,paddingLeft:`${.75+e*.5}rem`},title:i.item.label,onAnimationStart:n,children:i.item.label}),i.children.length>0&&v.jsx(Fb,{nodes:i.children,depth:e+1})]},i.item.id))})}const dW=String.raw,pW=dW`
108
+ /* Default: narrow mode (collapsible) */
109
+ .toc-narrow {
110
+ display: block;
111
+ }
112
+ .toc-wide {
113
+ display: none;
114
+ }
115
+
116
+ /* Wide container: show sidebar mode */
117
+ @container (min-width: 768px) {
118
+ .toc-narrow {
119
+ display: none;
120
+ }
121
+ .toc-wide {
122
+ display: block;
123
+ }
124
+ }
125
+
126
+ /* Tree structure styling */
127
+ .toc-list {
128
+ list-style: none;
129
+ margin: 0;
130
+ padding: 0;
131
+ }
132
+
133
+ /* Scroll-driven ToC highlighting animation */
134
+ @keyframes toc-activate {
135
+ 0%,
136
+ 100% {
137
+ color: var(--muted-foreground);
138
+ border-left-color: transparent;
139
+ }
140
+ 1%,
141
+ 99% {
142
+ color: var(--foreground);
143
+ border-left-color: var(--primary);
144
+ }
145
+ }
146
+ .toc-link {
147
+ animation-timeline: var(--target);
148
+ animation-name: toc-activate;
149
+ animation-fill-mode: both;
150
+ animation-range: cover 0% cover 100%;
151
+ }
152
+ `;function mW(t){return t.map((e,n)=>`--toc-${n}`).join(", ")}function yC({id:t,index:e,children:n,className:i="",as:r="section"}){return v.jsx(r,{id:t,className:i,style:{viewTimelineName:`--toc-${e}`},children:n})}class Fv{items=[];slugCount=new Map;levelOffset;constructor(e=0){this.levelOffset=e}add(e,n,i){const r=Math.min(n+this.levelOffset,6),s=i??(Kv(e)||"heading"),o=this.slugCount.get(s)??0;this.slugCount.set(s,o+1);const l=o>0?`${s}-${o+1}`:s,c=this.items.length;return this.items.push({id:l,label:e,level:r}),{id:l,index:c}}addAll(e){const n=this.items.length;for(const i of e){const r=Math.min((i.level??1)+this.levelOffset,6);this.items.push({...i,level:r})}return n}getItems(){return[...this.items]}getNextIndex(){return this.items.length}reset(){this.items=[],this.slugCount.clear()}createChild(e=1){return new Fv(this.levelOffset+e)}}function Kv(t){return t.toLowerCase().replace(/[^a-z0-9\u4e00-\u9fa5]+/g,"-").replace(/^-+|-+$/g,"")}const Jv=z.createContext(null);function Jm(){return z.useContext(Jv)}function gW({children:t,collector:e,levelOffset:n=0,isRoot:i=!0}){const r=z.useMemo(()=>({collector:e,levelOffset:n,isRoot:i}),[e,n,i]);return v.jsx(Jv.Provider,{value:r,children:t})}function OW({children:t,additionalOffset:e=1}){const n=Jm();if(!n)return v.jsx(v.Fragment,{children:t});const i=z.useMemo(()=>({collector:n.collector,levelOffset:n.levelOffset+e,isRoot:!1}),[n,e]);return v.jsx(Jv.Provider,{value:i,children:t})}function Sr({markdown:t,className:e="",onReady:n}){return Jm()?v.jsx(bW,{markdown:t,className:e}):v.jsx(yW,{markdown:t,className:e,onReady:n})}function yW({markdown:t,className:e,onReady:n}){const[i,r]=z.useState([]),s=z.useRef(null),o=z.useRef(!1);s.current=new Fv;const l=s.current;z.useLayoutEffect(()=>{const d=s.current.getItems();r(p=>vW(p,d)?p:d)}),z.useEffect(()=>{o.current||(o.current=!0,n?.())},[n,i]);const c=z.useMemo(()=>mW(i),[i]),h=typeof t=="string"?v.jsx(_L,{markdown:t,collector:l,levelOffset:0}):v.jsx(kL,{builder:t,collector:l,levelOffset:0});return v.jsx(gW,{collector:l,levelOffset:0,isRoot:!0,children:v.jsxs("div",{className:`@container-[size] h-full ${e}`,children:[v.jsx("style",{children:_W}),v.jsxs(xW,{className:"viewer-layout gap-6",timelineScope:c,children:[v.jsx(uW,{items:i,className:"viewer-toc"}),v.jsx("div",{className:"viewer-content min-w-0",children:h})]})]})})}function bW({markdown:t,className:e}){const n=Jm(),{collector:i,levelOffset:r}=n;return typeof t=="string"?v.jsx(_L,{markdown:t,className:e,collector:i,levelOffset:r}):v.jsx(kL,{builder:t,className:e,collector:i,levelOffset:r})}function _L({markdown:t,collector:e,levelOffset:n,className:i}){const r=z.useMemo(()=>{const s=new Map,o=l=>function({children:h}){const d=nm(h),p=Kv(d)||"heading",g=s.get(p)??0;s.set(p,g+1);const O=g>0?`${p}-${g+1}`:p,x=Math.min(l+n,6),{index:S}=e.add(d,x,O);return v.jsx(wL,{level:x,id:O,index:S,children:h})};return{h1:o(1),h2:o(2),h3:o(3),h4:o(4),h5:o(5),h6:o(6)}},[e,n]);return v.jsx(aW,{className:i,components:r,children:t})}function kL({builder:t,collector:e,levelOffset:n,className:i}){const r=z.useMemo(()=>{const s=new Map,o=c=>function({id:d,className:p,children:g}){const x=Jm()?.levelOffset??n,S=nm(g),k=d??(Kv(S)||"heading"),_=s.get(k)??0;s.set(k,_+1);const T=_>0?`${k}-${_+1}`:k,C=Math.min(c+x,6),{index:D}=e.add(S,C,T);return v.jsx(wL,{level:C,id:T,index:D,className:p,children:g})},l=({children:c,className:h})=>v.jsx(OW,{additionalOffset:1,children:v.jsx("section",{className:`markdown-section ${h}`,children:c})});return{H1:o(1),H2:o(2),H3:o(3),H4:o(4),H5:o(5),H6:o(6),Section:l}},[e,n]);return v.jsx("div",{className:`markdown-content ${i}`,children:t(r)})}function wL({level:t,id:e,index:n,children:i,className:r}){const s={viewTimelineName:`--toc-${n}`};switch(t){case 1:return v.jsx("h1",{id:e,className:r,style:s,children:i});case 2:return v.jsx("h2",{id:e,className:r,style:s,children:i});case 3:return v.jsx("h3",{id:e,className:r,style:s,children:i});case 4:return v.jsx("h4",{id:e,className:r,style:s,children:i});case 5:return v.jsx("h5",{id:e,className:r,style:s,children:i});case 6:return v.jsx("h6",{id:e,className:r,style:s,children:i})}}function xW({children:t,className:e="",timelineScope:n}){return v.jsx("div",{className:`scrollbar-thin scrollbar-track-transparent h-full overflow-auto scroll-smooth p-4 ${e}`,style:n?{timelineScope:n}:void 0,children:t})}function nm(t){return t==null||typeof t=="boolean"?"":typeof t=="string"||typeof t=="number"?String(t):Array.isArray(t)?t.map(nm).join(""):typeof t=="object"&&"props"in t?nm(t.props?.children):""}function vW(t,e){return t.length!==e.length?!1:t.every((n,i)=>n.id===e[i].id&&n.label===e[i].label&&n.level===e[i].level)}const SW=String.raw,_W=SW`
153
+ /* Container query based layout */
154
+ .viewer-layout {
155
+ display: block;
156
+ }
157
+ .viewer-toc {
158
+ margin-bottom: 1rem;
159
+ }
160
+
161
+ /* Wide container: grid layout with ToC on right */
162
+ @container (min-width: 768px) {
163
+ .viewer-layout {
164
+ display: grid;
165
+ grid-template-columns: 1fr 180px;
166
+ }
167
+ .viewer-toc {
168
+ order: 2;
169
+ margin-bottom: 0;
170
+ }
171
+ .viewer-content {
172
+ order: 1;
173
+ }
174
+ }
175
+ `,kW=t=>{const e=String.raw,n=`--tabs-button-${t}`;return v.jsx("style",{children:e`
176
+ #${t} {
177
+ .tabs-button {
178
+ anchor-name: ${n};
179
+ }
180
+ .tabs-button::scroll-button(*) {
181
+ position-anchor: ${n};
182
+ }
183
+ }
184
+ `+e`
185
+ #${t} {
186
+ .tabs-button {
187
+ overflow-x: auto;
188
+ scroll-behavior: smooth;
189
+ overscroll-behavior-x: contain;
190
+ scroll-snap-type: x mandatory;
191
+ position: relative;
192
+ background-image: linear-gradient(
193
+ to bottom,
194
+ transparent,
195
+ transparent calc(100% - 1px),
196
+ var(--border) calc(100% - 1px),
197
+ var(--border)
198
+ );
199
+ & > button {
200
+ scroll-snap-align: start;
201
+ text-align: center;
202
+ &.tab-selected {
203
+ background-image: linear-gradient(
204
+ to bottom,
205
+ transparent,
206
+ transparent calc(100% - 2px),
207
+ var(--primary) calc(100% - 2px),
208
+ var(--primary)
209
+ );
210
+ }
211
+ }
212
+ }
213
+ .tabs-button::scroll-button(*) {
214
+ position: absolute;
215
+ align-self: anchor-center;
216
+ border: 0;
217
+ font-size: 1.2rem;
218
+ background: none;
219
+ z-index: 2;
220
+ }
221
+ .tabs-button::scroll-button(*):disabled {
222
+ opacity: 0;
223
+ }
224
+ .tabs-button::scroll-button(left) {
225
+ content: '◄';
226
+ right: calc(anchor(left) - 0.5rem);
227
+ transform: scaleX(0.5);
228
+ }
229
+
230
+ .tabs-button::scroll-button(right) {
231
+ content: '►';
232
+ left: calc(anchor(right) - 0.5rem);
233
+ transform: scaleX(0.5);
234
+ }
235
+ }
236
+ `})};function eg({tabs:t,selectedTab:e,onTabChange:n,className:i=""}){const[r,s]=z.useState(t[0]?.id??""),o=e??r,l=d=>{e||s(d),n?.(d)};if(t.length===0)return null;const c=z.useId(),h=z.useMemo(()=>kW(c),[c]);return v.jsxs("div",{id:c,className:`flex min-h-0 flex-1 flex-col ${i}`,children:[h,v.jsx("div",{className:"tabs-button z-2 bg-background oveflow-x-auto scrollbar-none sticky top-0 flex gap-1",children:t.map(d=>v.jsxs("button",{onClick:()=>l(d.id),className:`m-0 flex h-full shrink-0 items-center gap-2 px-4 py-2 text-sm font-medium transition-colors ${o===d.id?"tab-selected text-foreground":"text-muted-foreground hover:text-foreground"}`,children:[d.icon,d.label]},d.id))}),t.map(d=>d.unmountOnHide?o===d.id&&v.jsx("div",{className:"min-h-0 flex-1",children:d.content},d.id):v.jsx(z.Activity,{mode:o===d.id?"visible":"hidden",children:v.jsx("div",{className:"min-h-0 flex-1",children:d.content})},d.id))]})}function wW(t){switch(t){case"ADDED":return"border border-emerald-200 bg-emerald-100 text-emerald-700";case"MODIFIED":return"border border-amber-200 bg-amber-100 text-amber-800";case"REMOVED":return"border border-rose-200 bg-rose-100 text-rose-700";case"RENAMED":return"border border-sky-200 bg-sky-100 text-sky-700";default:return"border border-muted bg-muted text-foreground"}}function PL({change:t}){const e=t.deltaSpecs??[],[n,i]=z.useState(e[0]?.specId??"");z.useEffect(()=>{e.some(s=>s.specId===n)||i(e[0]?.specId??"")},[e,n]);const r=z.useMemo(()=>{const s=new Map;return t.deltas.forEach(o=>{const l=s.get(o.spec)??new Set;l.add(o.operation),s.set(o.spec,l)}),Array.from(s.entries()).map(([o,l])=>({spec:o,operation:l.size===1?Array.from(l)[0]:"MIXED"}))},[t.deltas]);return v.jsx(Sr,{className:"h-full",markdown:({H1:s,Section:o})=>v.jsxs("div",{className:"space-y-6",children:[v.jsxs(o,{children:[v.jsx(s,{id:"why",children:"Why"}),v.jsx("div",{className:"bg-muted/30 mt-2 rounded-lg p-4 [zoom:0.86]",children:v.jsx(Sr,{markdown:t.why})})]}),v.jsxs(o,{children:[v.jsx(s,{id:"what-changes",children:"What Changes"}),v.jsx("div",{className:"bg-muted/30 mt-2 rounded-lg p-4 [zoom:0.86]",children:v.jsx(Sr,{markdown:t.whatChanges})})]}),t.design&&v.jsxs(v.Fragment,{children:[v.jsx(s,{id:"design",children:"Design"}),v.jsx(o,{className:"bg-muted/30 mt-2 rounded-lg p-4 [zoom:0.86]",children:v.jsx(Sr,{markdown:t.design})})]}),r.length>0&&v.jsxs(v.Fragment,{children:[v.jsxs(s,{id:"affected-specs",children:["Affected Specs (",r.length,")"]}),v.jsx("div",{className:"divide-border border-border mt-3 divide-y rounded-lg border",children:r.map(({spec:l,operation:c})=>v.jsxs("div",{className:"flex items-center justify-between px-3 py-2",children:[v.jsx("span",{className:"font-medium",children:l}),v.jsx("span",{className:`rounded px-2 py-1 text-xs font-medium ${wW(c)}`,children:c})]},l))})]}),e.length>0&&v.jsxs(v.Fragment,{children:[v.jsxs(s,{id:"delta-specs",children:["Delta Specs (",e.length,")"]}),v.jsx(o,{className:"[zoom:0.86]",children:v.jsx(PW,{deltaSpecs:e,activeId:n,onActiveChange:i})})]})]})})}function PW({deltaSpecs:t,activeId:e,onActiveChange:n}){if(t.length===1){const r=t[0];return v.jsx("div",{className:"bg-muted/20 rounded-lg p-4",children:v.jsx(Sr,{markdown:r.content})})}const i=t.map(r=>({id:r.specId,label:r.specId,icon:v.jsx(Oi,{className:"h-4 w-4"}),content:v.jsx("div",{className:"bg-muted/20 h-full rounded-lg p-4",children:v.jsx(Sr,{markdown:r.content})}),unmountOnHide:!0}));return v.jsx(eg,{tabs:i,selectedTab:e,onTabChange:n,className:"min-h-80"})}const TL=1024;let TW=0,Di=class{constructor(e,n){this.from=e,this.to=n}};class Le{constructor(e={}){this.id=TW++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Bt.match(e)),n=>{let i=e(n);return i===void 0?null:[this,i]}}}Le.closedBy=new Le({deserialize:t=>t.split(" ")});Le.openedBy=new Le({deserialize:t=>t.split(" ")});Le.group=new Le({deserialize:t=>t.split(" ")});Le.isolate=new Le({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});Le.contextHash=new Le({perNode:!0});Le.lookAhead=new Le({perNode:!0});Le.mounted=new Le({perNode:!0});class uh{constructor(e,n,i){this.tree=e,this.overlay=n,this.parser=i}static get(e){return e&&e.props&&e.props[Le.mounted.id]}}const CW=Object.create(null);class Bt{constructor(e,n,i,r=0){this.name=e,this.props=n,this.id=i,this.flags=r}static define(e){let n=e.props&&e.props.length?Object.create(null):CW,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),r=new Bt(e.name||"",n,e.id,i);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(r)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[s[0].id]=s[1]}}return r}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop(Le.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let i in e)for(let r of i.split(" "))n[r]=e[i];return i=>{for(let r=i.prop(Le.group),s=-1;s<(r?r.length:0);s++){let o=n[s<0?i.name:r[s]];if(o)return o}}}}Bt.none=new Bt("",Object.create(null),0,8);class hc{constructor(e){this.types=e;for(let n=0;n<e.length;n++)if(e[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let n=[];for(let i of this.types){let r=null;for(let s of e){let o=s(i);if(o){r||(r=Object.assign({},i.props));let l=o[1],c=o[0];c.combine&&c.id in r&&(l=c.combine(r[c.id],l)),r[c.id]=l}}n.push(r?new Bt(i.name,r,i.id,i.flags):i)}return new hc(n)}}const $d=new WeakMap,bC=new WeakMap;var bt;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(bt||(bt={}));class Ue{constructor(e,n,i,r,s){if(this.type=e,this.children=n,this.positions=i,this.length=r,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,l]of s)this.props[typeof o=="number"?o:o.id]=l}}toString(){let e=uh.get(this);if(e&&!e.overlay)return e.tree.toString();let n="";for(let i of this.children){let r=i.toString();r&&(n&&(n+=","),n+=r)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(e=0){return new im(this.topNode,e)}cursorAt(e,n=0,i=0){let r=$d.get(this)||this.topNode,s=new im(r);return s.moveTo(e,n),$d.set(this,s._tree),s}get topNode(){return new xn(this,0,0,null)}resolve(e,n=0){let i=hh($d.get(this)||this.topNode,e,n,!1);return $d.set(this,i),i}resolveInner(e,n=0){let i=hh(bC.get(this)||this.topNode,e,n,!0);return bC.set(this,i),i}resolveStack(e,n=0){return AW(this,e,n)}iterate(e){let{enter:n,leave:i,from:r=0,to:s=this.length}=e,o=e.mode||0,l=(o&bt.IncludeAnonymous)>0;for(let c=this.cursor(o|bt.IncludeAnonymous);;){let h=!1;if(c.from<=s&&c.to>=r&&(!l&&c.type.isAnonymous||n(c)!==!1)){if(c.firstChild())continue;h=!0}for(;h&&i&&(l||!c.type.isAnonymous)&&i(c),!c.nextSibling();){if(!c.parent())return;h=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:n1(Bt.none,this.children,this.positions,0,this.children.length,0,this.length,(n,i,r)=>new Ue(this.type,n,i,r,this.propValues),e.makeTree||((n,i,r)=>new Ue(Bt.none,n,i,r)))}static build(e){return RW(e)}}Ue.empty=new Ue(Bt.none,[],[],0);class e1{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new e1(this.buffer,this.index)}}class fo{constructor(e,n,i){this.buffer=e,this.length=n,this.set=i}get type(){return Bt.none}toString(){let e=[];for(let n=0;n<this.buffer.length;)e.push(this.childString(n)),n=this.buffer[n+3];return e.join(",")}childString(e){let n=this.buffer[e],i=this.buffer[e+3],r=this.set.types[n],s=r.name;if(/\W/.test(s)&&!r.isError&&(s=JSON.stringify(s)),e+=4,i==e)return s;let o=[];for(;e<i;)o.push(this.childString(e)),e=this.buffer[e+3];return s+"("+o.join(",")+")"}findChild(e,n,i,r,s){let{buffer:o}=this,l=-1;for(let c=e;c!=n&&!(CL(s,r,o[c+1],o[c+2])&&(l=c,i>0));c=o[c+3]);return l}slice(e,n,i){let r=this.buffer,s=new Uint16Array(n-e),o=0;for(let l=e,c=0;l<n;){s[c++]=r[l++],s[c++]=r[l++]-i;let h=s[c++]=r[l++]-i;s[c++]=r[l++]-e,o=Math.max(o,h)}return new fo(s,o,this.set)}}function CL(t,e,n,i){switch(t){case-2:return n<e;case-1:return i>=e&&n<e;case 0:return n<e&&i>e;case 1:return n<=e&&i>e;case 2:return i>e;case 4:return!0}}function hh(t,e,n,i){for(var r;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let o=!i&&t instanceof xn&&t.index<0?null:t.parent;if(!o)return t;t=o}let s=i?0:bt.IgnoreOverlays;if(i)for(let o=t,l=o.parent;l;o=l,l=o.parent)o instanceof xn&&o.index<0&&((r=l.enter(e,n,s))===null||r===void 0?void 0:r.from)!=o.from&&(t=l);for(;;){let o=t.enter(e,n,s);if(!o)return t;t=o}}class QL{cursor(e=0){return new im(this,e)}getChild(e,n=null,i=null){let r=xC(this,e,n,i);return r.length?r[0]:null}getChildren(e,n=null,i=null){return xC(this,e,n,i)}resolve(e,n=0){return hh(this,e,n,!1)}resolveInner(e,n=0){return hh(this,e,n,!0)}matchContext(e){return Kb(this.parent,e)}enterUnfinishedNodesBefore(e){let n=this.childBefore(e),i=this;for(;n;){let r=n.lastChild;if(!r||r.to!=n.to)break;r.type.isError&&r.from==r.to?(i=n,n=r.prevSibling):n=r}return i}get node(){return this}get next(){return this.parent}}class xn extends QL{constructor(e,n,i,r){super(),this._tree=e,this.from=n,this.index=i,this._parent=r}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,n,i,r,s=0){for(let o=this;;){for(let{children:l,positions:c}=o._tree,h=n>0?l.length:-1;e!=h;e+=n){let d=l[e],p=c[e]+o.from;if(CL(r,i,p,p+d.length)){if(d instanceof fo){if(s&bt.ExcludeBuffers)continue;let g=d.findChild(0,d.buffer.length,n,i-p,r);if(g>-1)return new _r(new QW(o,d,e,p),null,g)}else if(s&bt.IncludeAnonymous||!d.type.isAnonymous||t1(d)){let g;if(!(s&bt.IgnoreMounts)&&(g=uh.get(d))&&!g.overlay)return new xn(g.tree,p,e,o);let O=new xn(d,p,e,o);return s&bt.IncludeAnonymous||!O.type.isAnonymous?O:O.nextChild(n<0?d.children.length-1:0,n,i,r)}}}if(s&bt.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+n:e=n<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,n,i=0){let r;if(!(i&bt.IgnoreOverlays)&&(r=uh.get(this._tree))&&r.overlay){let s=e-this.from;for(let{from:o,to:l}of r.overlay)if((n>0?o<=s:o<s)&&(n<0?l>=s:l>s))return new xn(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function xC(t,e,n,i){let r=t.cursor(),s=[];if(!r.firstChild())return s;if(n!=null){for(let o=!1;!o;)if(o=r.type.is(n),!r.nextSibling())return s}for(;;){if(i!=null&&r.type.is(i))return s;if(r.type.is(e)&&s.push(r.node),!r.nextSibling())return i==null?s:[]}}function Kb(t,e,n=e.length-1){for(let i=t;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[n]&&e[n]!=i.name)return!1;n--}}return!0}class QW{constructor(e,n,i,r){this.parent=e,this.buffer=n,this.index=i,this.start=r}}class _r extends QL{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,i){super(),this.context=e,this._parent=n,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,n,i){let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],e,n-this.context.start,i);return s<0?null:new _r(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,n,i=0){if(i&bt.ExcludeBuffers)return null;let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return s<0?null:new _r(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new _r(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new _r(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:i}=this.context,r=this.index+4,s=i.buffer[this.index+3];if(s>r){let o=i.buffer[this.index+1];e.push(i.slice(r,s,o)),n.push(0)}return new Ue(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function EL(t){if(!t.length)return null;let e=0,n=t[0];for(let s=1;s<t.length;s++){let o=t[s];(o.from>n.from||o.to<n.to)&&(n=o,e=s)}let i=n instanceof xn&&n.index<0?null:n.parent,r=t.slice();return i?r[e]=i:r.splice(e,1),new EW(r,n)}class EW{constructor(e,n){this.heads=e,this.node=n}get next(){return EL(this.heads)}}function AW(t,e,n){let i=t.resolveInner(e,n),r=null;for(let s=i instanceof xn?i:i.context.parent;s;s=s.parent)if(s.index<0){let o=s.parent;(r||(r=[i])).push(o.resolve(e,n)),s=o}else{let o=uh.get(s.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let l=new xn(o.tree,o.overlay[0].from+s.from,-1,s);(r||(r=[i])).push(hh(l,e,n,!1))}}return r?EL(r):i}class im{get name(){return this.type.name}constructor(e,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof xn)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,n){this.index=e;let{start:i,buffer:r}=this.buffer;return this.type=n||r.set.types[r.buffer[e]],this.from=i+r.buffer[e+1],this.to=i+r.buffer[e+2],!0}yield(e){return e?e instanceof xn?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,n,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,n,i,this.mode));let{buffer:r}=this.buffer,s=r.findChild(this.index+4,r.buffer[this.index+3],e,n-this.buffer.start,i);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,n,i=this.mode){return this.buffer?i&bt.ExcludeBuffers?!1:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&bt.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&bt.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:n}=this.buffer,i=this.stack.length-1;if(e<0){let r=i<0?0:this.stack[i]+4;if(this.index!=r)return this.yieldBuf(n.findChild(r,this.index,-1,0,4))}else{let r=n.buffer[this.index+3];if(r<(i<0?n.buffer.length:n.buffer[this.stack[i]+3]))return this.yieldBuf(r)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let n,i,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(r.buffer.buffer[s+3]<this.index)return!1;({index:n,parent:i}=r)}else({index:n,_parent:i}=this._tree);for(;i;{index:n,_parent:i}=i)if(n>-1)for(let s=n+e,o=e<0?-1:i._tree.children.length;s!=o;s+=e){let l=i._tree.children[s];if(this.mode&bt.IncludeAnonymous||l instanceof fo||!l.type.isAnonymous||t1(l))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,n););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,n=null,i=0;if(e&&e.context==this.buffer)e:for(let r=this.index,s=this.stack.length;s>=0;){for(let o=e;o;o=o._parent)if(o.index==r){if(r==this.index)return o;n=o,i=s+1;break e}r=this.stack[--s]}for(let r=i;r<this.stack.length;r++)n=new _r(this.buffer,n,this.stack[r]);return this.bufferNode=new _r(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,n){for(let i=0;;){let r=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){i++;continue}this.type.isAnonymous||(r=!0)}for(;;){if(r&&n&&n(this),r=this.type.isAnonymous,!i)return;if(this.nextSibling())break;this.parent(),i--,r=!0}}}matchContext(e){if(!this.buffer)return Kb(this.node.parent,e);let{buffer:n}=this.buffer,{types:i}=n.set;for(let r=e.length-1,s=this.stack.length-1;r>=0;s--){if(s<0)return Kb(this._tree,e,r);let o=i[n.buffer[this.stack[s]]];if(!o.isAnonymous){if(e[r]&&e[r]!=o.name)return!1;r--}}return!0}}function t1(t){return t.children.some(e=>e instanceof fo||!e.type.isAnonymous||t1(e))}function RW(t){var e;let{buffer:n,nodeSet:i,maxBufferLength:r=TL,reused:s=[],minRepeatType:o=i.types.length}=t,l=Array.isArray(n)?new e1(n,n.length):n,c=i.types,h=0,d=0;function p(j,A,M,I,B,$){let{id:U,start:H,end:oe,size:F}=l,Y=d,Z=h;if(F<0)if(l.next(),F==-1){let N=s[U];M.push(N),I.push(H-j);return}else if(F==-3){h=U;return}else if(F==-4){d=U;return}else throw new RangeError(`Unrecognized record size: ${F}`);let J=c[U],ce,Oe,L=H-j;if(oe-H<=r&&(Oe=k(l.pos-A,B))){let N=new Uint16Array(Oe.size-Oe.skip),te=l.pos-Oe.size,R=N.length;for(;l.pos>te;)R=_(Oe.start,N,R);ce=new fo(N,oe-Oe.start,i),L=Oe.start-j}else{let N=l.pos-F;l.next();let te=[],R=[],fe=U>=o?U:-1,_e=0,xe=oe;for(;l.pos>N;)fe>=0&&l.id==fe&&l.size>=0?(l.end<=xe-r&&(x(te,R,H,_e,l.end,xe,fe,Y,Z),_e=te.length,xe=l.end),l.next()):$>2500?g(H,N,te,R):p(H,N,te,R,fe,$+1);if(fe>=0&&_e>0&&_e<te.length&&x(te,R,H,_e,H,xe,fe,Y,Z),te.reverse(),R.reverse(),fe>-1&&_e>0){let Re=O(J,Z);ce=n1(J,te,R,0,te.length,0,oe-H,Re,Re)}else ce=S(J,te,R,oe-H,Y-oe,Z)}M.push(ce),I.push(L)}function g(j,A,M,I){let B=[],$=0,U=-1;for(;l.pos>A;){let{id:H,start:oe,end:F,size:Y}=l;if(Y>4)l.next();else{if(U>-1&&oe<U)break;U<0&&(U=F-r),B.push(H,oe,F),$++,l.next()}}if($){let H=new Uint16Array($*4),oe=B[B.length-2];for(let F=B.length-3,Y=0;F>=0;F-=3)H[Y++]=B[F],H[Y++]=B[F+1]-oe,H[Y++]=B[F+2]-oe,H[Y++]=Y;M.push(new fo(H,B[2]-oe,i)),I.push(oe-j)}}function O(j,A){return(M,I,B)=>{let $=0,U=M.length-1,H,oe;if(U>=0&&(H=M[U])instanceof Ue){if(!U&&H.type==j&&H.length==B)return H;(oe=H.prop(Le.lookAhead))&&($=I[U]+H.length+oe)}return S(j,M,I,B,$,A)}}function x(j,A,M,I,B,$,U,H,oe){let F=[],Y=[];for(;j.length>I;)F.push(j.pop()),Y.push(A.pop()+M-B);j.push(S(i.types[U],F,Y,$-B,H-$,oe)),A.push(B-M)}function S(j,A,M,I,B,$,U){if($){let H=[Le.contextHash,$];U=U?[H].concat(U):[H]}if(B>25){let H=[Le.lookAhead,B];U=U?[H].concat(U):[H]}return new Ue(j,A,M,I,U)}function k(j,A){let M=l.fork(),I=0,B=0,$=0,U=M.end-r,H={size:0,start:0,skip:0};e:for(let oe=M.pos-j;M.pos>oe;){let F=M.size;if(M.id==A&&F>=0){H.size=I,H.start=B,H.skip=$,$+=4,I+=4,M.next();continue}let Y=M.pos-F;if(F<0||Y<oe||M.start<U)break;let Z=M.id>=o?4:0,J=M.start;for(M.next();M.pos>Y;){if(M.size<0)if(M.size==-3||M.size==-4)Z+=4;else break e;else M.id>=o&&(Z+=4);M.next()}B=J,I+=F,$+=Z}return(A<0||I==j)&&(H.size=I,H.start=B,H.skip=$),H.size>4?H:void 0}function _(j,A,M){let{id:I,start:B,end:$,size:U}=l;if(l.next(),U>=0&&I<o){let H=M;if(U>4){let oe=l.pos-(U-4);for(;l.pos>oe;)M=_(j,A,M)}A[--M]=H,A[--M]=$-j,A[--M]=B-j,A[--M]=I}else U==-3?h=I:U==-4&&(d=I);return M}let T=[],C=[];for(;l.pos>0;)p(t.start||0,t.bufferStart||0,T,C,-1,0);let D=(e=t.length)!==null&&e!==void 0?e:T.length?C[0]+T[0].length:0;return new Ue(c[t.topID],T.reverse(),C.reverse(),D)}const vC=new WeakMap;function gp(t,e){if(!t.isAnonymous||e instanceof fo||e.type!=t)return 1;let n=vC.get(e);if(n==null){n=1;for(let i of e.children){if(i.type!=t||!(i instanceof Ue)){n=1;break}n+=gp(t,i)}vC.set(e,n)}return n}function n1(t,e,n,i,r,s,o,l,c){let h=0;for(let x=i;x<r;x++)h+=gp(t,e[x]);let d=Math.ceil(h*1.5/8),p=[],g=[];function O(x,S,k,_,T){for(let C=k;C<_;){let D=C,j=S[C],A=gp(t,x[C]);for(C++;C<_;C++){let M=gp(t,x[C]);if(A+M>=d)break;A+=M}if(C==D+1){if(A>d){let M=x[D];O(M.children,M.positions,0,M.children.length,S[D]+T);continue}p.push(x[D])}else{let M=S[C-1]+x[C-1].length-j;p.push(n1(t,x,S,D,C,j,M,null,c))}g.push(j+T-s)}}return O(e,n,i,r,0),(l||c)(p,g,o)}class AL{constructor(){this.map=new WeakMap}setBuffer(e,n,i){let r=this.map.get(e);r||this.map.set(e,r=new Map),r.set(n,i)}getBuffer(e,n){let i=this.map.get(e);return i&&i.get(n)}set(e,n){e instanceof _r?this.setBuffer(e.context.buffer,e.index,n):e instanceof xn&&this.map.set(e.tree,n)}get(e){return e instanceof _r?this.getBuffer(e.context.buffer,e.index):e instanceof xn?this.map.get(e.tree):void 0}cursorSet(e,n){e.buffer?this.setBuffer(e.buffer.buffer,e.index,n):this.map.set(e.tree,n)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class cs{constructor(e,n,i,r,s=!1,o=!1){this.from=e,this.to=n,this.tree=i,this.offset=r,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,n=[],i=!1){let r=[new cs(0,e.length,e,0,!1,i)];for(let s of n)s.to>e.length&&r.push(s);return r}static applyChanges(e,n,i=128){if(!n.length)return e;let r=[],s=1,o=e.length?e[0]:null;for(let l=0,c=0,h=0;;l++){let d=l<n.length?n[l]:null,p=d?d.fromA:1e9;if(p-c>=i)for(;o&&o.from<p;){let g=o;if(c>=g.from||p<=g.to||h){let O=Math.max(g.from,c)-h,x=Math.min(g.to,p)-h;g=O>=x?null:new cs(O,x,g.tree,g.offset+h,l>0,!!d)}if(g&&r.push(g),o.to>p)break;o=s<e.length?e[s++]:null}if(!d)break;c=d.toA,h=d.toA-d.toB}return r}}class tg{startParse(e,n,i){return typeof e=="string"&&(e=new LW(e)),i=i?i.length?i.map(r=>new Di(r.from,r.to)):[new Di(0,0)]:[new Di(0,e.length)],this.createParse(e,n||[],i)}parse(e,n,i){let r=this.startParse(e,n,i);for(;;){let s=r.advance();if(s)return s}}}class LW{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}}function i1(t){return(e,n,i,r)=>new MW(e,t,n,i,r)}class SC{constructor(e,n,i,r,s){this.parser=e,this.parse=n,this.overlay=i,this.target=r,this.from=s}}function _C(t){if(!t.length||t.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class $W{constructor(e,n,i,r,s,o,l){this.parser=e,this.predicate=n,this.mounts=i,this.index=r,this.start=s,this.target=o,this.prev=l,this.depth=0,this.ranges=[]}}const Jb=new Le({perNode:!0});class MW{constructor(e,n,i,r,s){this.nest=n,this.input=i,this.fragments=r,this.ranges=s,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let i=this.baseParse.advance();if(!i)return null;if(this.baseParse=null,this.baseTree=i,this.startInner(),this.stoppedAt!=null)for(let r of this.inner)r.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let i=this.baseTree;return this.stoppedAt!=null&&(i=new Ue(i.type,i.children,i.positions,i.length,i.propValues.concat([[Jb,this.stoppedAt]]))),i}let e=this.inner[this.innerDone],n=e.parse.advance();if(n){this.innerDone++;let i=Object.assign(Object.create(null),e.target.props);i[Le.mounted.id]=new uh(n,e.overlay,e.parser),e.target.props=i}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].from<e&&(e=Math.min(e,this.inner[n].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let n=this.innerDone;n<this.inner.length;n++)this.inner[n].parse.stopAt(e)}startInner(){let e=new NW(this.fragments),n=null,i=null,r=new im(new xn(this.baseTree,this.ranges[0].from,0,null),bt.IncludeAnonymous|bt.IgnoreMounts);e:for(let s,o;;){let l=!0,c;if(this.stoppedAt!=null&&r.from>=this.stoppedAt)l=!1;else if(e.hasNode(r)){if(n){let h=n.mounts.find(d=>d.frag.from<=r.from&&d.frag.to>=r.to&&d.mount.overlay);if(h)for(let d of h.mount.overlay){let p=d.from+h.pos,g=d.to+h.pos;p>=r.from&&g<=r.to&&!n.ranges.some(O=>O.from<g&&O.to>p)&&n.ranges.push({from:p,to:g})}}l=!1}else if(i&&(o=DW(i.ranges,r.from,r.to)))l=o!=2;else if(!r.type.isAnonymous&&(s=this.nest(r,this.input))&&(r.from<r.to||!s.overlay)){r.tree||(jW(r),n&&n.depth++,i&&i.depth++);let h=e.findMounts(r.from,s.parser);if(typeof s.overlay=="function")n=new $W(s.parser,s.overlay,h,this.inner.length,r.from,r.tree,n);else{let d=PC(this.ranges,s.overlay||(r.from<r.to?[new Di(r.from,r.to)]:[]));d.length&&_C(d),(d.length||!s.overlay)&&this.inner.push(new SC(s.parser,d.length?s.parser.startParse(this.input,TC(h,d),d):s.parser.startParse(""),s.overlay?s.overlay.map(p=>new Di(p.from-r.from,p.to-r.from)):null,r.tree,d.length?d[0].from:r.from)),s.overlay?d.length&&(i={ranges:d,depth:0,prev:i}):l=!1}}else if(n&&(c=n.predicate(r))&&(c===!0&&(c=new Di(r.from,r.to)),c.from<c.to)){let h=n.ranges.length-1;h>=0&&n.ranges[h].to==c.from?n.ranges[h]={from:n.ranges[h].from,to:c.to}:n.ranges.push(c)}if(l&&r.firstChild())n&&n.depth++,i&&i.depth++;else for(;!r.nextSibling();){if(!r.parent())break e;if(n&&!--n.depth){let h=PC(this.ranges,n.ranges);h.length&&(_C(h),this.inner.splice(n.index,0,new SC(n.parser,n.parser.startParse(this.input,TC(n.mounts,h),h),n.ranges.map(d=>new Di(d.from-n.start,d.to-n.start)),n.target,h[0].from))),n=n.prev}i&&!--i.depth&&(i=i.prev)}}}}function DW(t,e,n){for(let i of t){if(i.from>=n)break;if(i.to>e)return i.from<=e&&i.to>=n?2:1}return 0}function kC(t,e,n,i,r,s){if(e<n){let o=t.buffer[e+1];i.push(t.slice(e,n,o)),r.push(o-s)}}function jW(t){let{node:e}=t,n=[],i=e.context.buffer;do n.push(t.index),t.parent();while(!t.tree);let r=t.tree,s=r.children.indexOf(i),o=r.children[s],l=o.buffer,c=[s];function h(d,p,g,O,x,S){let k=n[S],_=[],T=[];kC(o,d,k,_,T,O);let C=l[k+1],D=l[k+2];c.push(_.length);let j=S?h(k+4,l[k+3],o.set.types[l[k]],C,D-C,S-1):e.toTree();return _.push(j),T.push(C-O),kC(o,l[k+3],p,_,T,O),new Ue(g,_,T,x)}r.children[s]=h(0,l.length,Bt.none,0,o.length,n.length-1);for(let d of c){let p=t.tree.children[d],g=t.tree.positions[d];t.yield(new xn(p,g+t.from,d,t._tree))}}class wC{constructor(e,n){this.offset=n,this.done=!1,this.cursor=e.cursor(bt.IncludeAnonymous|bt.IgnoreMounts)}moveTo(e){let{cursor:n}=this,i=e-this.offset;for(;!this.done&&n.from<i;)n.to>=e&&n.enter(i,1,bt.IgnoreOverlays|bt.ExcludeBuffers)||n.next(!1)||(this.done=!0)}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==e.tree)return!0;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof Ue)n=n.children[0];else break}return!1}}let NW=class{constructor(e){var n;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let i=this.curFrag=e[0];this.curTo=(n=i.tree.prop(Jb))!==null&&n!==void 0?n:i.to,this.inner=new wC(i.tree,-i.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let n=this.curFrag=this.fragments[this.fragI];this.curTo=(e=n.tree.prop(Jb))!==null&&e!==void 0?e:n.to,this.inner=new wC(n.tree,-n.offset)}}findMounts(e,n){var i;let r=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let s=this.inner.cursor.node;s;s=s.parent){let o=(i=s.tree)===null||i===void 0?void 0:i.prop(Le.mounted);if(o&&o.parser==n)for(let l=this.fragI;l<this.fragments.length;l++){let c=this.fragments[l];if(c.from>=s.to)break;c.tree==this.curFrag.tree&&r.push({frag:c,pos:s.from-c.offset,mount:o})}}}return r}};function PC(t,e){let n=null,i=e;for(let r=1,s=0;r<t.length;r++){let o=t[r-1].to,l=t[r].from;for(;s<i.length;s++){let c=i[s];if(c.from>=l)break;c.to<=o||(n||(i=n=e.slice()),c.from<o?(n[s]=new Di(c.from,o),c.to>l&&n.splice(s+1,0,new Di(l,c.to))):c.to>l?n[s--]=new Di(l,c.to):n.splice(s--,1))}}return i}function zW(t,e,n,i){let r=0,s=0,o=!1,l=!1,c=-1e9,h=[];for(;;){let d=r==t.length?1e9:o?t[r].to:t[r].from,p=s==e.length?1e9:l?e[s].to:e[s].from;if(o!=l){let g=Math.max(c,n),O=Math.min(d,p,i);g<O&&h.push(new Di(g,O))}if(c=Math.min(d,p),c==1e9)break;d==c&&(o?(o=!1,r++):o=!0),p==c&&(l?(l=!1,s++):l=!0)}return h}function TC(t,e){let n=[];for(let{pos:i,mount:r,frag:s}of t){let o=i+(r.overlay?r.overlay[0].from:0),l=o+r.tree.length,c=Math.max(s.from,o),h=Math.min(s.to,l);if(r.overlay){let d=r.overlay.map(g=>new Di(g.from+i,g.to+i)),p=zW(e,d,c,h);for(let g=0,O=c;;g++){let x=g==p.length,S=x?h:p[g].from;if(S>O&&n.push(new cs(O,S,r.tree,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3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,n=0;e<t.length;e++)(e%2?RL:ex).push(n=n+t[e])})();function IW(t){if(t<768)return!1;for(let e=0,n=ex.length;;){let i=e+n>>1;if(t<ex[i])n=i;else if(t>=RL[i])e=i+1;else return!0;if(e==n)return!1}}function CC(t){return t>=127462&&t<=127487}const QC=8205;function XW(t,e,n=!0,i=!0){return(n?LL:VW)(t,e,i)}function LL(t,e,n){if(e==t.length)return e;e&&$L(t.charCodeAt(e))&&ML(t.charCodeAt(e-1))&&e--;let i=_y(t,e);for(e+=EC(i);e<t.length;){let r=_y(t,e);if(i==QC||r==QC||n&&IW(r))e+=EC(r),i=r;else if(CC(r)){let s=0,o=e-2;for(;o>=0&&CC(_y(t,o));)s++,o-=2;if(s%2==0)break;e+=2}else break}return e}function VW(t,e,n){for(;e>0;){let i=LL(t,e-2,n);if(i<e)return i;e--}return 0}function _y(t,e){let n=t.charCodeAt(e);if(!ML(n)||e+1==t.length)return n;let i=t.charCodeAt(e+1);return $L(i)?(n-55296<<10)+(i-56320)+65536:n}function $L(t){return t>=56320&&t<57344}function ML(t){return t>=55296&&t<56320}function EC(t){return t<65536?1:2}class Fe{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,i){[e,n]=ql(this,e,n);let r=[];return this.decompose(0,e,r,2),i.length&&i.decompose(0,i.length,r,3),this.decompose(n,this.length,r,1),br.from(r,this.length-(n-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=ql(this,e,n);let i=[];return this.decompose(e,n,i,0),br.from(i,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),r=new Vu(this),s=new Vu(e);for(let o=n,l=n;;){if(r.next(o),s.next(o),o=0,r.lineBreak!=s.lineBreak||r.done!=s.done||r.value!=s.value)return!1;if(l+=r.value.length,r.done||l>=i)return!0}}iter(e=1){return new Vu(this,e)}iterRange(e,n=this.length){return new DL(this,e,n)}iterLines(e,n){let i;if(e==null)i=this.iter();else{n==null&&(n=this.lines+1);let r=this.line(e).from;i=this.iterRange(r,Math.max(r,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new jL(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Fe.empty:e.length<=32?new At(e):br.from(At.split(e,[]))}}class At extends Fe{constructor(e,n=BW(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,i,r){for(let s=0;;s++){let o=this.text[s],l=r+o.length;if((n?i:l)>=e)return new ZW(r,l,i,o);r=l+1,i++}}decompose(e,n,i,r){let s=e<=0&&n>=this.length?this:new At(AC(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(r&1){let o=i.pop(),l=Op(s.text,o.text.slice(),0,s.length);if(l.length<=32)i.push(new At(l,o.length+s.length));else{let c=l.length>>1;i.push(new At(l.slice(0,c)),new At(l.slice(c)))}}else i.push(s)}replace(e,n,i){if(!(i instanceof At))return super.replace(e,n,i);[e,n]=ql(this,e,n);let r=Op(this.text,Op(i.text,AC(this.text,0,e)),n),s=this.length+i.length-(n-e);return r.length<=32?new At(r,s):br.from(At.split(r,[]),s)}sliceString(e,n=this.length,i=`
237
+ `){[e,n]=ql(this,e,n);let r="";for(let s=0,o=0;s<=n&&o<this.text.length;o++){let l=this.text[o],c=s+l.length;s>e&&o&&(r+=i),e<c&&n>s&&(r+=l.slice(Math.max(0,e-s),n-s)),s=c+1}return r}flatten(e){for(let n of this.text)e.push(n)}scanIdentical(){return 0}static split(e,n){let i=[],r=-1;for(let s of e)i.push(s),r+=s.length+1,i.length==32&&(n.push(new At(i,r)),i=[],r=-1);return r>-1&&n.push(new At(i,r)),n}}class br extends Fe{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,n,i,r){for(let s=0;;s++){let o=this.children[s],l=r+o.length,c=i+o.lines-1;if((n?c:l)>=e)return o.lineInner(e,n,i,r);r=l+1,i=c+1}}decompose(e,n,i,r){for(let s=0,o=0;o<=n&&s<this.children.length;s++){let l=this.children[s],c=o+l.length;if(e<=c&&n>=o){let h=r&((o<=e?1:0)|(c>=n?2:0));o>=e&&c<=n&&!h?i.push(l):l.decompose(e-o,n-o,i,h)}o=c+1}}replace(e,n,i){if([e,n]=ql(this,e,n),i.lines<this.lines)for(let r=0,s=0;r<this.children.length;r++){let o=this.children[r],l=s+o.length;if(e>=s&&n<=l){let c=o.replace(e-s,n-s,i),h=this.lines-o.lines+c.lines;if(c.lines<h>>4&&c.lines>h>>6){let d=this.children.slice();return d[r]=c,new br(d,this.length-(n-e)+i.length)}return super.replace(s,l,c)}s=l+1}return super.replace(e,n,i)}sliceString(e,n=this.length,i=`
238
+ `){[e,n]=ql(this,e,n);let r="";for(let s=0,o=0;s<this.children.length&&o<=n;s++){let l=this.children[s],c=o+l.length;o>e&&s&&(r+=i),e<c&&n>o&&(r+=l.sliceString(e-o,n-o,i)),o=c+1}return r}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof br))return 0;let i=0,[r,s,o,l]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=n,s+=n){if(r==o||s==l)return i;let c=this.children[r],h=e.children[s];if(c!=h)return i+c.scanIdentical(h,n);i+=c.length+1}}static from(e,n=e.reduce((i,r)=>i+r.length+1,-1)){let i=0;for(let O of e)i+=O.lines;if(i<32){let O=[];for(let x of e)x.flatten(O);return new At(O,n)}let r=Math.max(32,i>>5),s=r<<1,o=r>>1,l=[],c=0,h=-1,d=[];function p(O){let x;if(O.lines>s&&O instanceof br)for(let S of O.children)p(S);else O.lines>o&&(c>o||!c)?(g(),l.push(O)):O instanceof At&&c&&(x=d[d.length-1])instanceof At&&O.lines+x.lines<=32?(c+=O.lines,h+=O.length+1,d[d.length-1]=new At(x.text.concat(O.text),x.length+1+O.length)):(c+O.lines>r&&g(),c+=O.lines,h+=O.length+1,d.push(O))}function g(){c!=0&&(l.push(d.length==1?d[0]:br.from(d,h)),h=-1,c=d.length=0)}for(let O of e)p(O);return g(),l.length==1?l[0]:new br(l,n)}}Fe.empty=new At([""],0);function BW(t){let e=-1;for(let n of t)e+=n.length+1;return e}function Op(t,e,n=0,i=1e9){for(let r=0,s=0,o=!0;s<t.length&&r<=i;s++){let l=t[s],c=r+l.length;c>=n&&(c>i&&(l=l.slice(0,i-r)),r<n&&(l=l.slice(n-r)),o?(e[e.length-1]+=l,o=!1):e.push(l)),r=c+1}return e}function AC(t,e,n){return Op(t,[""],e,n)}class Vu{constructor(e,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[n>0?1:(e instanceof At?e.text.length:e.children.length)<<1]}nextInner(e,n){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,r=this.nodes[i],s=this.offsets[i],o=s>>1,l=r instanceof At?r.text.length:r.children.length;if(o==(n>0?l:0)){if(i==0)return this.done=!0,this.value="",this;n>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(n>0?0:1)){if(this.offsets[i]+=n,e==0)return this.lineBreak=!0,this.value=`
239
+ `,this;e--}else if(r instanceof At){let c=r.text[o+(n<0?-1:0)];if(this.offsets[i]+=n,c.length>Math.max(0,e))return this.value=e==0?c:n>0?c.slice(e):c.slice(0,c.length-e),this;e-=c.length}else{let c=r.children[o+(n<0?-1:0)];e>c.length?(e-=c.length,this.offsets[i]+=n):(n<0&&this.offsets[i]--,this.nodes.push(c),this.offsets.push(n>0?1:(c instanceof At?c.text.length:c.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class DL{constructor(e,n,i){this.value="",this.done=!1,this.cursor=new Vu(e,n>i?-1:1),this.pos=n>i?e.length:0,this.from=Math.min(n,i),this.to=Math.max(n,i)}nextInner(e,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let i=n<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*n,this.value=r.length<=i?r:n<0?r.slice(r.length-i):r.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class jL{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:n,lineBreak:i,value:r}=this.inner.next(e);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Fe.prototype[Symbol.iterator]=function(){return this.iter()},Vu.prototype[Symbol.iterator]=DL.prototype[Symbol.iterator]=jL.prototype[Symbol.iterator]=function(){return this});let ZW=class{constructor(e,n,i,r){this.from=e,this.to=n,this.number=i,this.text=r}get length(){return this.to-this.from}};function ql(t,e,n){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,n))]}function hn(t,e,n=!0,i=!0){return XW(t,e,n,i)}function qW(t){return t>=56320&&t<57344}function UW(t){return t>=55296&&t<56320}function Un(t,e){let n=t.charCodeAt(e);if(!UW(n)||e+1==t.length)return n;let i=t.charCodeAt(e+1);return qW(i)?(n-55296<<10)+(i-56320)+65536:n}function r1(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function xr(t){return t<65536?1:2}const tx=/\r\n?|\n/;var un=(function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t})(un||(un={}));class Pr{constructor(e){this.sections=e}get length(){let e=0;for(let n=0;n<this.sections.length;n+=2)e+=this.sections[n];return e}get newLength(){let e=0;for(let n=0;n<this.sections.length;n+=2){let i=this.sections[n+1];e+=i<0?this.sections[n]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let n=0,i=0,r=0;n<this.sections.length;){let s=this.sections[n++],o=this.sections[n++];o<0?(e(i,r,s),r+=s):r+=o,i+=s}}iterChangedRanges(e,n=!1){nx(this,e,n)}get invertedDesc(){let e=[];for(let n=0;n<this.sections.length;){let i=this.sections[n++],r=this.sections[n++];r<0?e.push(i,r):e.push(r,i)}return new Pr(e)}composeDesc(e){return this.empty?e:e.empty?this:NL(this,e)}mapDesc(e,n=!1){return e.empty?this:ix(this,e,n)}mapPos(e,n=-1,i=un.Simple){let r=0,s=0;for(let o=0;o<this.sections.length;){let l=this.sections[o++],c=this.sections[o++],h=r+l;if(c<0){if(h>e)return s+(e-r);s+=l}else{if(i!=un.Simple&&h>=e&&(i==un.TrackDel&&r<e&&h>e||i==un.TrackBefore&&r<e||i==un.TrackAfter&&h>e))return null;if(h>e||h==e&&n<0&&!l)return e==r||n<0?s:s+c;s+=c}r=h}if(e>r)throw new RangeError(`Position ${e} is out of range for changeset of length ${r}`);return s}touchesRange(e,n=e){for(let i=0,r=0;i<this.sections.length&&r<=n;){let s=this.sections[i++],o=this.sections[i++],l=r+s;if(o>=0&&r<=n&&l>=e)return r<e&&l>n?"cover":!0;r=l}return!1}toString(){let e="";for(let n=0;n<this.sections.length;){let i=this.sections[n++],r=this.sections[n++];e+=(e?" ":"")+i+(r>=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Pr(e)}static create(e){return new Pr(e)}}class Yt extends Pr{constructor(e,n){super(e),this.inserted=n}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return nx(this,(n,i,r,s,o)=>e=e.replace(r,r+(i-n),o),!1),e}mapDesc(e,n=!1){return ix(this,e,n,!0)}invert(e){let n=this.sections.slice(),i=[];for(let r=0,s=0;r<n.length;r+=2){let o=n[r],l=n[r+1];if(l>=0){n[r]=l,n[r+1]=o;let c=r>>1;for(;i.length<c;)i.push(Fe.empty);i.push(o?e.slice(s,s+o):Fe.empty)}s+=o}return new Yt(n,i)}compose(e){return this.empty?e:e.empty?this:NL(this,e,!0)}map(e,n=!1){return e.empty?this:ix(this,e,n,!0)}iterChanges(e,n=!1){nx(this,e,n)}get desc(){return Pr.create(this.sections)}filter(e){let n=[],i=[],r=[],s=new fh(this);e:for(let o=0,l=0;;){let c=o==e.length?1e9:e[o++];for(;l<c||l==c&&s.len==0;){if(s.done)break e;let d=Math.min(s.len,c-l);gn(r,d,-1);let p=s.ins==-1?-1:s.off==0?s.ins:0;gn(n,d,p),p>0&&to(i,n,s.text),s.forward(d),l+=d}let h=e[o++];for(;l<h;){if(s.done)break e;let d=Math.min(s.len,h-l);gn(n,d,-1),gn(r,d,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(d),l+=d}}return{changes:new Yt(n,i),filtered:Pr.create(r)}}toJSON(){let e=[];for(let n=0;n<this.sections.length;n+=2){let i=this.sections[n],r=this.sections[n+1];r<0?e.push(i):r==0?e.push([i]):e.push([i].concat(this.inserted[n>>1].toJSON()))}return e}static of(e,n,i){let r=[],s=[],o=0,l=null;function c(d=!1){if(!d&&!r.length)return;o<n&&gn(r,n-o,-1);let p=new Yt(r,s);l=l?l.compose(p.map(l)):p,r=[],s=[],o=0}function h(d){if(Array.isArray(d))for(let p of d)h(p);else if(d instanceof Yt){if(d.length!=n)throw new RangeError(`Mismatched change set length (got ${d.length}, expected ${n})`);c(),l=l?l.compose(d.map(l)):d}else{let{from:p,to:g=p,insert:O}=d;if(p>g||p<0||g>n)throw new RangeError(`Invalid change range ${p} to ${g} (in doc of length ${n})`);let x=O?typeof O=="string"?Fe.of(O.split(i||tx)):O:Fe.empty,S=x.length;if(p==g&&S==0)return;p<o&&c(),p>o&&gn(r,p-o,-1),gn(r,g-p,S),to(s,r,x),o=g}}return h(e),c(!l),l}static empty(e){return new Yt(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],i=[];for(let r=0;r<e.length;r++){let s=e[r];if(typeof s=="number")n.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((o,l)=>l&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)n.push(s[0],0);else{for(;i.length<r;)i.push(Fe.empty);i[r]=Fe.of(s.slice(1)),n.push(s[0],i[r].length)}}}return new Yt(n,i)}static createSet(e,n){return new Yt(e,n)}}function gn(t,e,n,i=!1){if(e==0&&n<=0)return;let r=t.length-2;r>=0&&n<=0&&n==t[r+1]?t[r]+=e:r>=0&&e==0&&t[r]==0?t[r+1]+=n:i?(t[r]+=e,t[r+1]+=n):t.push(e,n)}function to(t,e,n){if(n.length==0)return;let i=e.length-2>>1;if(i<t.length)t[t.length-1]=t[t.length-1].append(n);else{for(;t.length<i;)t.push(Fe.empty);t.push(n)}}function nx(t,e,n){let i=t.inserted;for(let r=0,s=0,o=0;o<t.sections.length;){let l=t.sections[o++],c=t.sections[o++];if(c<0)r+=l,s+=l;else{let h=r,d=s,p=Fe.empty;for(;h+=l,d+=c,c&&i&&(p=p.append(i[o-2>>1])),!(n||o==t.sections.length||t.sections[o+1]<0);)l=t.sections[o++],c=t.sections[o++];e(r,h,s,d,p),r=h,s=d}}}function ix(t,e,n,i=!1){let r=[],s=i?[]:null,o=new fh(t),l=new fh(e);for(let c=-1;;){if(o.done&&l.len||l.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&l.ins==-1){let h=Math.min(o.len,l.len);gn(r,h,-1),o.forward(h),l.forward(h)}else if(l.ins>=0&&(o.ins<0||c==o.i||o.off==0&&(l.len<o.len||l.len==o.len&&!n))){let h=l.len;for(gn(r,l.ins,-1);h;){let d=Math.min(o.len,h);o.ins>=0&&c<o.i&&o.len<=d&&(gn(r,0,o.ins),s&&to(s,r,o.text),c=o.i),o.forward(d),h-=d}l.next()}else if(o.ins>=0){let h=0,d=o.len;for(;d;)if(l.ins==-1){let p=Math.min(d,l.len);h+=p,d-=p,l.forward(p)}else if(l.ins==0&&l.len<d)d-=l.len,l.next();else break;gn(r,h,c<o.i?o.ins:0),s&&c<o.i&&to(s,r,o.text),c=o.i,o.forward(o.len-d)}else{if(o.done&&l.done)return s?Yt.createSet(r,s):Pr.create(r);throw new Error("Mismatched change set lengths")}}}function NL(t,e,n=!1){let i=[],r=n?[]:null,s=new fh(t),o=new fh(e);for(let l=!1;;){if(s.done&&o.done)return r?Yt.createSet(i,r):Pr.create(i);if(s.ins==0)gn(i,s.len,0,l),s.next();else if(o.len==0&&!o.done)gn(i,0,o.ins,l),r&&to(r,i,o.text),o.next();else{if(s.done||o.done)throw new Error("Mismatched change set lengths");{let c=Math.min(s.len2,o.len),h=i.length;if(s.ins==-1){let d=o.ins==-1?-1:o.off?0:o.ins;gn(i,c,d,l),r&&d&&to(r,i,o.text)}else o.ins==-1?(gn(i,s.off?0:s.len,c,l),r&&to(r,i,s.textBit(c))):(gn(i,s.off?0:s.len,o.off?0:o.ins,l),r&&!o.off&&to(r,i,o.text));l=(s.ins>c||o.ins>=0&&o.len>c)&&(l||i.length>h),s.forward2(c),o.forward(c)}}}}class fh{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length?Fe.empty:e[n]}textBit(e){let{inserted:n}=this.set,i=this.i-2>>1;return i>=n.length&&!e?Fe.empty:n[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class na{constructor(e,n,i){this.from=e,this.to=n,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,n=-1){let i,r;return this.empty?i=r=e.mapPos(this.from,n):(i=e.mapPos(this.from,1),r=e.mapPos(this.to,-1)),i==this.from&&r==this.to?this:new na(i,r,this.flags)}extend(e,n=e){if(e<=this.anchor&&n>=this.anchor)return se.range(e,n);let i=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return se.range(this.anchor,i)}eq(e,n=!1){return this.anchor==e.anchor&&this.head==e.head&&(!n||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return se.range(e.anchor,e.head)}static create(e,n,i){return new na(e,n,i)}}class se{constructor(e,n){this.ranges=e,this.mainIndex=n}map(e,n=-1){return e.empty?this:se.create(this.ranges.map(i=>i.map(e,n)),this.mainIndex)}eq(e,n=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],n))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new se([this.main],0)}addRange(e,n=!0){return se.create([e].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(e,n=this.mainIndex){let i=this.ranges.slice();return i[n]=e,se.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new se(e.ranges.map(n=>na.fromJSON(n)),e.main)}static single(e,n=e){return new se([se.range(e,n)],0)}static create(e,n=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,r=0;r<e.length;r++){let s=e[r];if(s.empty?s.from<=i:s.from<i)return se.normalized(e.slice(),n);i=s.to}return new se(e,n)}static cursor(e,n=0,i,r){return na.create(e,e,(n==0?0:n<0?8:16)|(i==null?7:Math.min(6,i))|(r??16777215)<<6)}static range(e,n,i,r){let s=(i??16777215)<<6|(r==null?7:Math.min(6,r));return n<e?na.create(n,e,48|s):na.create(e,n,(n>e?8:0)|s)}static normalized(e,n=0){let i=e[n];e.sort((r,s)=>r.from-s.from),n=e.indexOf(i);for(let r=1;r<e.length;r++){let s=e[r],o=e[r-1];if(s.empty?s.from<=o.to:s.from<o.to){let l=o.from,c=Math.max(s.to,o.to);r<=n&&n--,e.splice(--r,2,s.anchor>s.head?se.range(c,l):se.range(l,c))}}return new se(e,n)}}function zL(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let s1=0;class Se{constructor(e,n,i,r,s){this.combine=e,this.compareInput=n,this.compare=i,this.isStatic=r,this.id=s1++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new Se(e.combine||(n=>n),e.compareInput||((n,i)=>n===i),e.compare||(e.combine?(n,i)=>n===i:o1),!!e.static,e.enables)}of(e){return new yp([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new yp(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new yp(e,this,2,n)}from(e,n){return n||(n=i=>i),this.compute([e],i=>n(i.field(e)))}}function o1(t,e){return t==e||t.length==e.length&&t.every((n,i)=>n===e[i])}class yp{constructor(e,n,i,r){this.dependencies=e,this.facet=n,this.type=i,this.value=r,this.id=s1++}dynamicSlot(e){var n;let i=this.value,r=this.facet.compareInput,s=this.id,o=e[s]>>1,l=this.type==2,c=!1,h=!1,d=[];for(let p of this.dependencies)p=="doc"?c=!0:p=="selection"?h=!0:(((n=e[p.id])!==null&&n!==void 0?n:1)&1)==0&&d.push(e[p.id]);return{create(p){return p.values[o]=i(p),1},update(p,g){if(c&&g.docChanged||h&&(g.docChanged||g.selection)||rx(p,d)){let O=i(p);if(l?!RC(O,p.values[o],r):!r(O,p.values[o]))return p.values[o]=O,1}return 0},reconfigure:(p,g)=>{let O,x=g.config.address[s];if(x!=null){let S=sm(g,x);if(this.dependencies.every(k=>k instanceof Se?g.facet(k)===p.facet(k):k instanceof tn?g.field(k,!1)==p.field(k,!1):!0)||(l?RC(O=i(p),S,r):r(O=i(p),S)))return p.values[o]=S,0}else O=i(p);return p.values[o]=O,1}}}}function RC(t,e,n){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++)if(!n(t[i],e[i]))return!1;return!0}function rx(t,e){let n=!1;for(let i of e)Bu(t,i)&1&&(n=!0);return n}function YW(t,e,n){let i=n.map(c=>t[c.id]),r=n.map(c=>c.type),s=i.filter(c=>!(c&1)),o=t[e.id]>>1;function l(c){let h=[];for(let d=0;d<i.length;d++){let p=sm(c,i[d]);if(r[d]==2)for(let g of p)h.push(g);else h.push(p)}return e.combine(h)}return{create(c){for(let h of i)Bu(c,h);return c.values[o]=l(c),1},update(c,h){if(!rx(c,s))return 0;let d=l(c);return e.compare(d,c.values[o])?0:(c.values[o]=d,1)},reconfigure(c,h){let d=rx(c,i),p=h.config.facets[e.id],g=h.facet(e);if(p&&!d&&o1(n,p))return c.values[o]=g,0;let O=l(c);return e.compare(O,g)?(c.values[o]=g,0):(c.values[o]=O,1)}}}const Md=Se.define({static:!0});class tn{constructor(e,n,i,r,s){this.id=e,this.createF=n,this.updateF=i,this.compareF=r,this.spec=s,this.provides=void 0}static define(e){let n=new tn(s1++,e.create,e.update,e.compare||((i,r)=>i===r),e);return e.provide&&(n.provides=e.provide(n)),n}create(e){let n=e.facet(Md).find(i=>i.field==this);return(n?.create||this.createF)(e)}slot(e){let n=e[this.id]>>1;return{create:i=>(i.values[n]=this.create(i),1),update:(i,r)=>{let s=i.values[n],o=this.updateF(s,r);return this.compareF(s,o)?0:(i.values[n]=o,1)},reconfigure:(i,r)=>{let s=i.facet(Md),o=r.facet(Md),l;return(l=s.find(c=>c.field==this))&&l!=o.find(c=>c.field==this)?(i.values[n]=l.create(i),1):r.config.address[this.id]!=null?(i.values[n]=r.field(this),0):(i.values[n]=this.create(i),1)}}}init(e){return[this,Md.of({field:this,create:e})]}get extension(){return this}}const Ho={lowest:4,low:3,default:2,high:1,highest:0};function Ou(t){return e=>new IL(e,t)}const xs={highest:Ou(Ho.highest),high:Ou(Ho.high),default:Ou(Ho.default),low:Ou(Ho.low),lowest:Ou(Ho.lowest)};class IL{constructor(e,n){this.inner=e,this.prec=n}}class ng{of(e){return new sx(this,e)}reconfigure(e){return ng.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class sx{constructor(e,n){this.compartment=e,this.inner=n}}class rm{constructor(e,n,i,r,s,o){for(this.base=e,this.compartments=n,this.dynamicSlots=i,this.address=r,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let n=this.address[e.id];return n==null?e.default:this.staticValues[n>>1]}static resolve(e,n,i){let r=[],s=Object.create(null),o=new Map;for(let g of GW(e,n,o))g instanceof tn?r.push(g):(s[g.facet.id]||(s[g.facet.id]=[])).push(g);let l=Object.create(null),c=[],h=[];for(let g of r)l[g.id]=h.length<<1,h.push(O=>g.slot(O));let d=i?.config.facets;for(let g in s){let O=s[g],x=O[0].facet,S=d&&d[g]||[];if(O.every(k=>k.type==0))if(l[x.id]=c.length<<1|1,o1(S,O))c.push(i.facet(x));else{let k=x.combine(O.map(_=>_.value));c.push(i&&x.compare(k,i.facet(x))?i.facet(x):k)}else{for(let k of O)k.type==0?(l[k.id]=c.length<<1|1,c.push(k.value)):(l[k.id]=h.length<<1,h.push(_=>k.dynamicSlot(_)));l[x.id]=h.length<<1,h.push(k=>YW(k,x,O))}}let p=h.map(g=>g(l));return new rm(e,o,p,l,c,s)}}function GW(t,e,n){let i=[[],[],[],[],[]],r=new Map;function s(o,l){let c=r.get(o);if(c!=null){if(c<=l)return;let h=i[c].indexOf(o);h>-1&&i[c].splice(h,1),o instanceof sx&&n.delete(o.compartment)}if(r.set(o,l),Array.isArray(o))for(let h of o)s(h,l);else if(o instanceof sx){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(o.compartment)||o.inner;n.set(o.compartment,h),s(h,l)}else if(o instanceof IL)s(o.inner,o.prec);else if(o instanceof tn)i[l].push(o),o.provides&&s(o.provides,l);else if(o instanceof yp)i[l].push(o),o.facet.extensions&&s(o.facet.extensions,Ho.default);else{let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(h,l)}}return s(t,Ho.default),i.reduce((o,l)=>o.concat(l))}function Bu(t,e){if(e&1)return 2;let n=e>>1,i=t.status[n];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;t.status[n]=4;let r=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|r}function sm(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const XL=Se.define(),ox=Se.define({combine:t=>t.some(e=>e),static:!0}),VL=Se.define({combine:t=>t.length?t[0]:void 0,static:!0}),BL=Se.define(),ZL=Se.define(),qL=Se.define(),UL=Se.define({combine:t=>t.length?t[0]:!1});class Rr{constructor(e,n){this.type=e,this.value=n}static define(){return new WW}}class WW{of(e){return new Rr(this,e)}}class HW{constructor(e){this.map=e}of(e){return new Me(this,e)}}class Me{constructor(e,n){this.type=e,this.value=n}map(e){let n=this.type.map(this.value,e);return n===void 0?void 0:n==this.value?this:new Me(this.type,n)}is(e){return this.type==e}static define(e={}){return new HW(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let i=[];for(let r of e){let s=r.map(n);s&&i.push(s)}return i}}Me.reconfigure=Me.define();Me.appendConfig=Me.define();class Xt{constructor(e,n,i,r,s,o){this.startState=e,this.changes=n,this.selection=i,this.effects=r,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,i&&zL(i,n.newLength),s.some(l=>l.type==Xt.time)||(this.annotations=s.concat(Xt.time.of(Date.now())))}static create(e,n,i,r,s,o){return new Xt(e,n,i,r,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let n of this.annotations)if(n.type==e)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let n=this.annotation(Xt.userEvent);return!!(n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&n[e.length]=="."))}}Xt.time=Rr.define();Xt.userEvent=Rr.define();Xt.addToHistory=Rr.define();Xt.remote=Rr.define();function FW(t,e){let n=[];for(let i=0,r=0;;){let s,o;if(i<t.length&&(r==e.length||e[r]>=t[i]))s=t[i++],o=t[i++];else if(r<e.length)s=e[r++],o=e[r++];else return n;!n.length||n[n.length-1]<s?n.push(s,o):n[n.length-1]<o&&(n[n.length-1]=o)}}function YL(t,e,n){var i;let r,s,o;return n?(r=e.changes,s=Yt.empty(e.changes.length),o=t.changes.compose(e.changes)):(r=e.changes.map(t.changes),s=t.changes.mapDesc(e.changes,!0),o=t.changes.compose(r)),{changes:o,selection:e.selection?e.selection.map(s):(i=t.selection)===null||i===void 0?void 0:i.map(r),effects:Me.mapEffects(t.effects,r).concat(Me.mapEffects(e.effects,s)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function ax(t,e,n){let i=e.selection,r=Ll(e.annotations);return e.userEvent&&(r=r.concat(Xt.userEvent.of(e.userEvent))),{changes:e.changes instanceof Yt?e.changes:Yt.of(e.changes||[],n,t.facet(VL)),selection:i&&(i instanceof se?i:se.single(i.anchor,i.head)),effects:Ll(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}function GL(t,e,n){let i=ax(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===!1&&(n=!1);for(let s=1;s<e.length;s++){e[s].filter===!1&&(n=!1);let o=!!e[s].sequential;i=YL(i,ax(t,e[s],o?i.changes.newLength:t.doc.length),o)}let r=Xt.create(t,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return JW(n?KW(r):r)}function KW(t){let e=t.startState,n=!0;for(let r of e.facet(BL)){let s=r(t);if(s===!1){n=!1;break}Array.isArray(s)&&(n=n===!0?s:FW(n,s))}if(n!==!0){let r,s;if(n===!1)s=t.changes.invertedDesc,r=Yt.empty(e.doc.length);else{let o=t.changes.filter(n);r=o.changes,s=o.filtered.mapDesc(o.changes).invertedDesc}t=Xt.create(e,r,t.selection&&t.selection.map(s),Me.mapEffects(t.effects,s),t.annotations,t.scrollIntoView)}let i=e.facet(ZL);for(let r=i.length-1;r>=0;r--){let s=i[r](t);s instanceof Xt?t=s:Array.isArray(s)&&s.length==1&&s[0]instanceof Xt?t=s[0]:t=GL(e,Ll(s),!1)}return t}function JW(t){let e=t.startState,n=e.facet(qL),i=t;for(let r=n.length-1;r>=0;r--){let s=n[r](t);s&&Object.keys(s).length&&(i=YL(i,ax(e,s,t.changes.newLength),!0))}return i==t?t:Xt.create(e,t.changes,t.selection,i.effects,i.annotations,i.scrollIntoView)}const eH=[];function Ll(t){return t==null?eH:Array.isArray(t)?t:[t]}var wt=(function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t})(wt||(wt={}));const tH=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let lx;try{lx=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function nH(t){if(lx)return lx.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||tH.test(n)))return!0}return!1}function iH(t){return e=>{if(!/\S/.test(e))return wt.Space;if(nH(e))return wt.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return wt.Word;return wt.Other}}class Ze{constructor(e,n,i,r,s,o){this.config=e,this.doc=n,this.selection=i,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let l=0;l<this.config.dynamicSlots.length;l++)Bu(this,l<<1);this.computeSlot=null}field(e,n=!0){let i=this.config.address[e.id];if(i==null){if(n)throw new RangeError("Field is not present in this state");return}return Bu(this,i),sm(this,i)}update(...e){return GL(this,e,!0)}applyTransaction(e){let n=this.config,{base:i,compartments:r}=n;for(let l of e.effects)l.is(ng.reconfigure)?(n&&(r=new Map,n.compartments.forEach((c,h)=>r.set(h,c)),n=null),r.set(l.value.compartment,l.value.extension)):l.is(Me.reconfigure)?(n=null,i=l.value):l.is(Me.appendConfig)&&(n=null,i=Ll(i).concat(l.value));let s;n?s=e.startState.values.slice():(n=rm.resolve(i,r,this),s=new Ze(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(c,h)=>h.reconfigure(c,this),null).values);let o=e.startState.facet(ox)?e.newSelection:e.newSelection.asSingle();new Ze(n,e.newDoc,o,s,(l,c)=>c.update(l,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:e},range:se.cursor(n.from+e.length)}))}changeByRange(e){let n=this.selection,i=e(n.ranges[0]),r=this.changes(i.changes),s=[i.range],o=Ll(i.effects);for(let l=1;l<n.ranges.length;l++){let c=e(n.ranges[l]),h=this.changes(c.changes),d=h.map(r);for(let g=0;g<l;g++)s[g]=s[g].map(d);let p=r.mapDesc(h,!0);s.push(c.range.map(p)),r=r.compose(d),o=Me.mapEffects(o,d).concat(Me.mapEffects(Ll(c.effects),p))}return{changes:r,selection:se.create(s,n.mainIndex),effects:o}}changes(e=[]){return e instanceof Yt?e:Yt.of(e,this.doc.length,this.facet(Ze.lineSeparator))}toText(e){return Fe.of(e.split(this.facet(Ze.lineSeparator)||tx))}sliceDoc(e=0,n=this.doc.length){return this.doc.sliceString(e,n,this.lineBreak)}facet(e){let n=this.config.address[e.id];return n==null?e.default:(Bu(this,n),sm(this,n))}toJSON(e){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let r=e[i];r instanceof tn&&this.config.address[r.id]!=null&&(n[i]=r.spec.toJSON(this.field(e[i]),this))}return n}static fromJSON(e,n={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(i){for(let s in i)if(Object.prototype.hasOwnProperty.call(e,s)){let o=i[s],l=e[s];r.push(o.init(c=>o.spec.fromJSON(l,c)))}}return Ze.create({doc:e.doc,selection:se.fromJSON(e.selection),extensions:n.extensions?r.concat([n.extensions]):r})}static create(e={}){let n=rm.resolve(e.extensions||[],new Map),i=e.doc instanceof Fe?e.doc:Fe.of((e.doc||"").split(n.staticFacet(Ze.lineSeparator)||tx)),r=e.selection?e.selection instanceof se?e.selection:se.single(e.selection.anchor,e.selection.head):se.single(0);return zL(r,i.length),n.staticFacet(ox)||(r=r.asSingle()),new Ze(n,i,r,n.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(Ze.tabSize)}get lineBreak(){return this.facet(Ze.lineSeparator)||`
240
+ `}get readOnly(){return this.facet(UL)}phrase(e,...n){for(let i of this.facet(Ze.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(i,r)=>{if(r=="$")return"$";let s=+(r||1);return!s||s>n.length?i:n[s-1]})),e}languageDataAt(e,n,i=-1){let r=[];for(let s of this.facet(XL))for(let o of s(this,n,i))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){return iH(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:n,from:i,length:r}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-i,l=e-i;for(;o>0;){let c=hn(n,o,!1);if(s(n.slice(c,o))!=wt.Word)break;o=c}for(;l<r;){let c=hn(n,l);if(s(n.slice(l,c))!=wt.Word)break;l=c}return o==l?null:se.range(o+i,l+i)}}Ze.allowMultipleSelections=ox;Ze.tabSize=Se.define({combine:t=>t.length?t[0]:4});Ze.lineSeparator=VL;Ze.readOnly=UL;Ze.phrases=Se.define({compare(t,e){let n=Object.keys(t),i=Object.keys(e);return n.length==i.length&&n.every(r=>t[r]==e[r])}});Ze.languageData=XL;Ze.changeFilter=BL;Ze.transactionFilter=ZL;Ze.transactionExtender=qL;ng.reconfigure=Me.define();function Lr(t,e,n={}){let i={};for(let r of t)for(let s of Object.keys(r)){let o=r[s],l=i[s];if(l===void 0)i[s]=o;else if(!(l===o||o===void 0))if(Object.hasOwnProperty.call(n,s))i[s]=n[s](l,o);else throw new Error("Config merge conflict for field "+s)}for(let r in e)i[r]===void 0&&(i[r]=e[r]);return i}class ma{eq(e){return this==e}range(e,n=e){return dh.create(e,n,this)}}ma.prototype.startSide=ma.prototype.endSide=0;ma.prototype.point=!1;ma.prototype.mapMode=un.TrackDel;class dh{constructor(e,n,i){this.from=e,this.to=n,this.value=i}static create(e,n,i){return new dh(e,n,i)}}function cx(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class a1{constructor(e,n,i,r){this.from=e,this.to=n,this.value=i,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,n,i,r=0){let s=i?this.to:this.from;for(let o=r,l=s.length;;){if(o==l)return o;let c=o+l>>1,h=s[c]-e||(i?this.value[c].endSide:this.value[c].startSide)-n;if(c==o)return h>=0?o:l;h>=0?l=c:o=c+1}}between(e,n,i,r){for(let s=this.findIndex(n,-1e9,!0),o=this.findIndex(i,1e9,!1,s);s<o;s++)if(r(this.from[s]+e,this.to[s]+e,this.value[s])===!1)return!1}map(e,n){let i=[],r=[],s=[],o=-1,l=-1;for(let c=0;c<this.value.length;c++){let h=this.value[c],d=this.from[c]+e,p=this.to[c]+e,g,O;if(d==p){let x=n.mapPos(d,h.startSide,h.mapMode);if(x==null||(g=O=x,h.startSide!=h.endSide&&(O=n.mapPos(d,h.endSide),O<g)))continue}else if(g=n.mapPos(d,h.startSide),O=n.mapPos(p,h.endSide),g>O||g==O&&h.startSide>0&&h.endSide<=0)continue;(O-g||h.endSide-h.startSide)<0||(o<0&&(o=g),h.point&&(l=Math.max(l,O-g)),i.push(h),r.push(g-o),s.push(O-o))}return{mapped:i.length?new a1(r,s,i,l):null,pos:o}}}class Je{constructor(e,n,i,r){this.chunkPos=e,this.chunk=n,this.nextLayer=i,this.maxPoint=r}static create(e,n,i,r){return new Je(e,n,i,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let n of this.chunk)e+=n.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:n=[],sort:i=!1,filterFrom:r=0,filterTo:s=this.length}=e,o=e.filter;if(n.length==0&&!o)return this;if(i&&(n=n.slice().sort(cx)),this.isEmpty)return n.length?Je.of(n):this;let l=new WL(this,null,-1).goto(0),c=0,h=[],d=new ds;for(;l.value||c<n.length;)if(c<n.length&&(l.from-n[c].from||l.startSide-n[c].value.startSide)>=0){let p=n[c++];d.addInner(p.from,p.to,p.value)||h.push(p)}else l.rangeIndex==1&&l.chunkIndex<this.chunk.length&&(c==n.length||this.chunkEnd(l.chunkIndex)<n[c].from)&&(!o||r>this.chunkEnd(l.chunkIndex)||s<this.chunkPos[l.chunkIndex])&&d.addChunk(this.chunkPos[l.chunkIndex],this.chunk[l.chunkIndex])?l.nextChunk():((!o||r>l.to||s<l.from||o(l.from,l.to,l.value))&&(d.addInner(l.from,l.to,l.value)||h.push(dh.create(l.from,l.to,l.value))),l.next());return d.finishInner(this.nextLayer.isEmpty&&!h.length?Je.empty:this.nextLayer.update({add:h,filter:o,filterFrom:r,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let n=[],i=[],r=-1;for(let o=0;o<this.chunk.length;o++){let l=this.chunkPos[o],c=this.chunk[o],h=e.touchesRange(l,l+c.length);if(h===!1)r=Math.max(r,c.maxPoint),n.push(c),i.push(e.mapPos(l));else if(h===!0){let{mapped:d,pos:p}=c.map(l,e);d&&(r=Math.max(r,d.maxPoint),n.push(d),i.push(p))}}let s=this.nextLayer.map(e);return n.length==0?s:new Je(i,n,s||Je.empty,r)}between(e,n,i){if(!this.isEmpty){for(let r=0;r<this.chunk.length;r++){let s=this.chunkPos[r],o=this.chunk[r];if(n>=s&&e<=s+o.length&&o.between(s,e-s,n-s,i)===!1)return}this.nextLayer.between(e,n,i)}}iter(e=0){return ph.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return ph.from(e).goto(n)}static compare(e,n,i,r,s=-1){let o=e.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=s),l=n.filter(p=>p.maxPoint>0||!p.isEmpty&&p.maxPoint>=s),c=LC(o,l,i),h=new yu(o,c,s),d=new yu(l,c,s);i.iterGaps((p,g,O)=>$C(h,p,d,g,O,r)),i.empty&&i.length==0&&$C(h,0,d,0,0,r)}static eq(e,n,i=0,r){r==null&&(r=999999999);let s=e.filter(d=>!d.isEmpty&&n.indexOf(d)<0),o=n.filter(d=>!d.isEmpty&&e.indexOf(d)<0);if(s.length!=o.length)return!1;if(!s.length)return!0;let l=LC(s,o),c=new yu(s,l,0).goto(i),h=new yu(o,l,0).goto(i);for(;;){if(c.to!=h.to||!ux(c.active,h.active)||c.point&&(!h.point||!c.point.eq(h.point)))return!1;if(c.to>r)return!0;c.next(),h.next()}}static spans(e,n,i,r,s=-1){let o=new yu(e,null,s).goto(n),l=n,c=o.openStart;for(;;){let h=Math.min(o.to,i);if(o.point){let d=o.activeForPoint(o.to),p=o.pointFrom<n?d.length+1:o.point.startSide<0?d.length:Math.min(d.length,c);r.point(l,h,o.point,d,p,o.pointRank),c=Math.min(o.openEnd(h),d.length)}else h>l&&(r.span(l,h,o.active,c),c=o.openEnd(h));if(o.to>i)return c+(o.point&&o.to>i?1:0);l=o.to,o.next()}}static of(e,n=!1){let i=new ds;for(let r of e instanceof dh?[e]:n?rH(e):e)i.add(r.from,r.to,r.value);return i.finish()}static join(e){if(!e.length)return Je.empty;let n=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let r=e[i];r!=Je.empty;r=r.nextLayer)n=new Je(r.chunkPos,r.chunk,n,Math.max(r.maxPoint,n.maxPoint));return n}}Je.empty=new Je([],[],null,-1);function rH(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let i=t[n];if(cx(e,i)>0)return t.slice().sort(cx);e=i}return t}Je.empty.nextLayer=Je.empty;class ds{finishChunk(e){this.chunks.push(new a1(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,n,i){this.addInner(e,n,i)||(this.nextLayer||(this.nextLayer=new ds)).add(e,n,i)}addInner(e,n,i){let r=e-this.lastTo||i.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return r<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(n-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=n,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,n-e)),!0)}addChunk(e,n){if((e-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(e);let i=n.value.length-1;return this.last=n.value[i],this.lastFrom=n.from[i]+e,this.lastTo=n.to[i]+e,!0}finish(){return this.finishInner(Je.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let n=Je.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function LC(t,e,n){let i=new Map;for(let s of t)for(let o=0;o<s.chunk.length;o++)s.chunk[o].maxPoint<=0&&i.set(s.chunk[o],s.chunkPos[o]);let r=new Set;for(let s of e)for(let o=0;o<s.chunk.length;o++){let l=i.get(s.chunk[o]);l!=null&&(n?n.mapPos(l):l)==s.chunkPos[o]&&!n?.touchesRange(l,l+s.chunk[o].length)&&r.add(s.chunk[o])}return r}class WL{constructor(e,n,i,r=0){this.layer=e,this.skip=n,this.minPoint=i,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,n=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,n,!1),this}gotoInner(e,n,i){for(;this.chunkIndex<this.layer.chunk.length;){let r=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(r)||this.layer.chunkEnd(this.chunkIndex)<e||r.maxPoint<this.minPoint))break;this.chunkIndex++,i=!1}if(this.chunkIndex<this.layer.chunk.length){let r=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],n,!0);(!i||this.rangeIndex<r)&&this.setRangeIndex(r)}this.next()}forward(e,n){(this.to-e||this.endSide-n)<0&&this.gotoInner(e,n,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],n=this.layer.chunk[this.chunkIndex],i=e+n.from[this.rangeIndex];if(this.from=i,this.to=e+n.to[this.rangeIndex],this.value=n.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class ph{constructor(e){this.heap=e}static from(e,n=null,i=-1){let r=[];for(let s=0;s<e.length;s++)for(let o=e[s];!o.isEmpty;o=o.nextLayer)o.maxPoint>=i&&r.push(new WL(o,n,i,s));return r.length==1?r[0]:new ph(r)}get startSide(){return this.value?this.value.startSide:0}goto(e,n=-1e9){for(let i of this.heap)i.goto(e,n);for(let i=this.heap.length>>1;i>=0;i--)ky(this.heap,i);return this.next(),this}forward(e,n){for(let i of this.heap)i.forward(e,n);for(let i=this.heap.length>>1;i>=0;i--)ky(this.heap,i);(this.to-e||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),ky(this.heap,0)}}}function ky(t,e){for(let n=t[e];;){let i=(e<<1)+1;if(i>=t.length)break;let r=t[i];if(i+1<t.length&&r.compare(t[i+1])>=0&&(r=t[i+1],i++),n.compare(r)<0)break;t[i]=n,t[e]=r,e=i}}class yu{constructor(e,n,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=ph.from(e,n,i)}goto(e,n=-1e9){return this.cursor.goto(e,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=n,this.openStart=-1,this.next(),this}forward(e,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(e,n)}removeActive(e){Dd(this.active,e),Dd(this.activeTo,e),Dd(this.activeRank,e),this.minActive=MC(this.active,this.activeTo)}addActive(e){let n=0,{value:i,to:r,rank:s}=this.cursor;for(;n<this.activeRank.length&&(s-this.activeRank[n]||r-this.activeTo[n])>0;)n++;jd(this.active,n,i),jd(this.activeTo,n,r),jd(this.activeRank,n,s),e&&jd(e,n,this.cursor.from),this.minActive=MC(this.active,this.activeTo)}next(){let e=this.to,n=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let r=this.minActive;if(r>-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),i&&Dd(i,r)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let s=this.cursor.value;if(!s.point)this.addActive(i),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=s,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=s.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(i){this.openStart=0;for(let r=i.length-1;r>=0&&i[r]<e;r--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let n=[];for(let i=this.active.length-1;i>=0&&!(this.activeRank[i]<this.pointRank);i--)(this.activeTo[i]>e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&n.push(this.active[i]);return n.reverse()}openEnd(e){let n=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)n++;return n}}function $C(t,e,n,i,r,s){t.goto(e),n.goto(i);let o=i+r,l=i,c=i-e;for(;;){let h=t.to+c-n.to,d=h||t.endSide-n.endSide,p=d<0?t.to+c:n.to,g=Math.min(p,o);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&ux(t.activeForPoint(t.to),n.activeForPoint(n.to))||s.comparePoint(l,g,t.point,n.point):g>l&&!ux(t.active,n.active)&&s.compareRange(l,g,t.active,n.active),p>o)break;(h||t.openEnd!=n.openEnd)&&s.boundChange&&s.boundChange(p),l=p,d<=0&&t.next(),d>=0&&n.next()}}function ux(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n]&&!t[n].eq(e[n]))return!1;return!0}function Dd(t,e){for(let n=e,i=t.length-1;n<i;n++)t[n]=t[n+1];t.pop()}function jd(t,e,n){for(let i=t.length-1;i>=e;i--)t[i+1]=t[i];t[e]=n}function MC(t,e){let n=-1,i=1e9;for(let r=0;r<e.length;r++)(e[r]-i||t[r].endSide-t[n].endSide)<0&&(n=r,i=e[r]);return n}function Ji(t,e,n=t.length){let i=0;for(let r=0;r<n&&r<t.length;)t.charCodeAt(r)==9?(i+=e-i%e,r++):(i++,r=hn(t,r));return i}function hx(t,e,n,i){for(let r=0,s=0;;){if(s>=e)return r;if(r==t.length)break;s+=t.charCodeAt(r)==9?n-s%n:1,r=hn(t,r)}return i===!0?-1:t.length}const fx="ͼ",DC=typeof Symbol>"u"?"__"+fx:Symbol.for(fx),dx=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),jC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class po{constructor(e,n){this.rules=[];let{finish:i}=n||{};function r(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function s(o,l,c,h){let d=[],p=/^@(\w+)\b/.exec(o[0]),g=p&&p[1]=="keyframes";if(p&&l==null)return c.push(o[0]+";");for(let O in l){let x=l[O];if(/&/.test(O))s(O.split(/,\s*/).map(S=>o.map(k=>S.replace(/&/,k))).reduce((S,k)=>S.concat(k)),x,c);else if(x&&typeof x=="object"){if(!p)throw new RangeError("The value of a property ("+O+") should be a primitive value.");s(r(O),x,d,g)}else x!=null&&d.push(O.replace(/_.*/,"").replace(/[A-Z]/g,S=>"-"+S.toLowerCase())+": "+x+";")}(d.length||g)&&c.push((i&&!p&&!h?o.map(i):o).join(", ")+" {"+d.join(" ")+"}")}for(let o in e)s(r(o),e[o],this.rules)}getRules(){return this.rules.join(`
241
+ `)}static newName(){let e=jC[DC]||1;return jC[DC]=e+1,fx+e.toString(36)}static mount(e,n,i){let r=e[dx],s=i&&i.nonce;r?s&&r.setNonce(s):r=new sH(e,s),r.mount(Array.isArray(n)?n:[n],e)}}let NC=new Map;class sH{constructor(e,n){let i=e.ownerDocument||e,r=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&r.CSSStyleSheet){let s=NC.get(i);if(s)return e[dx]=s;this.sheet=new r.CSSStyleSheet,NC.set(i,this)}else this.styleTag=i.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],e[dx]=this}mount(e,n){let i=this.sheet,r=0,s=0;for(let o=0;o<e.length;o++){let l=e[o],c=this.modules.indexOf(l);if(c<s&&c>-1&&(this.modules.splice(c,1),s--,c=-1),c==-1){if(this.modules.splice(s++,0,l),i)for(let h=0;h<l.rules.length;h++)i.insertRule(l.rules[h],r++)}else{for(;s<c;)r+=this.modules[s++].rules.length;r+=l.rules.length,s++}}if(i)n.adoptedStyleSheets.indexOf(this.sheet)<0&&(n.adoptedStyleSheets=[this.sheet,...n.adoptedStyleSheets]);else{let o="";for(let c=0;c<this.modules.length;c++)o+=this.modules[c].getRules()+`
242
+ `;this.styleTag.textContent=o;let l=n.head||n;this.styleTag.parentNode!=l&&l.insertBefore(this.styleTag,l.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var mo={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},mh={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},oH=typeof navigator<"u"&&/Mac/.test(navigator.platform),aH=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var cn=0;cn<10;cn++)mo[48+cn]=mo[96+cn]=String(cn);for(var cn=1;cn<=24;cn++)mo[cn+111]="F"+cn;for(var cn=65;cn<=90;cn++)mo[cn]=String.fromCharCode(cn+32),mh[cn]=String.fromCharCode(cn);for(var wy in mo)mh.hasOwnProperty(wy)||(mh[wy]=mo[wy]);function lH(t){var e=oH&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||aH&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?mh:mo)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function mt(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i];typeof r=="string"?t.setAttribute(i,r):r!=null&&(t[i]=r)}e++}for(;e<arguments.length;e++)HL(t,arguments[e]);return t}function HL(t,e){if(typeof e=="string")t.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)t.appendChild(e);else if(Array.isArray(e))for(var n=0;n<e.length;n++)HL(t,e[n]);else throw new RangeError("Unsupported child node: "+e)}let Cn=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},px=typeof document<"u"?document:{documentElement:{style:{}}};const mx=/Edge\/(\d+)/.exec(Cn.userAgent),FL=/MSIE \d/.test(Cn.userAgent),gx=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Cn.userAgent),ig=!!(FL||gx||mx),zC=!ig&&/gecko\/(\d+)/i.test(Cn.userAgent),Py=!ig&&/Chrome\/(\d+)/.exec(Cn.userAgent),cH="webkitFontSmoothing"in px.documentElement.style,Ox=!ig&&/Apple Computer/.test(Cn.vendor),IC=Ox&&(/Mobile\/\w+/.test(Cn.userAgent)||Cn.maxTouchPoints>2);var be={mac:IC||/Mac/.test(Cn.platform),windows:/Win/.test(Cn.platform),linux:/Linux|X11/.test(Cn.platform),ie:ig,ie_version:FL?px.documentMode||6:gx?+gx[1]:mx?+mx[1]:0,gecko:zC,gecko_version:zC?+(/Firefox\/(\d+)/.exec(Cn.userAgent)||[0,0])[1]:0,chrome:!!Py,chrome_version:Py?+Py[1]:0,ios:IC,android:/Android\b/.test(Cn.userAgent),webkit_version:cH?+(/\bAppleWebKit\/(\d+)/.exec(Cn.userAgent)||[0,0])[1]:0,safari:Ox,safari_version:Ox?+(/\bVersion\/(\d+(\.\d+)?)/.exec(Cn.userAgent)||[0,0])[1]:0,tabSize:px.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function gh(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function yx(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function bp(t,e){if(!e.anchorNode)return!1;try{return yx(t,e.anchorNode)}catch{return!1}}function Ul(t){return t.nodeType==3?Oa(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function Zu(t,e,n,i){return n?XC(t,e,n,i,-1)||XC(t,e,n,i,1):!1}function ga(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function om(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function XC(t,e,n,i,r){for(;;){if(t==n&&e==i)return!0;if(e==(r<0?0:Tr(t))){if(t.nodeName=="DIV")return!1;let s=t.parentNode;if(!s||s.nodeType!=1)return!1;e=ga(t)+(r<0?0:1),t=s}else if(t.nodeType==1){if(t=t.childNodes[e+(r<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=r<0?Tr(t):0}else return!1}}function Tr(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function Zh(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function uH(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function KL(t,e){let n=e.width/t.offsetWidth,i=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-t.offsetHeight)<1)&&(i=1),{scaleX:n,scaleY:i}}function hH(t,e,n,i,r,s,o,l){let c=t.ownerDocument,h=c.defaultView||window;for(let d=t,p=!1;d&&!p;)if(d.nodeType==1){let g,O=d==c.body,x=1,S=1;if(O)g=uH(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(d).position)&&(p=!0),d.scrollHeight<=d.clientHeight&&d.scrollWidth<=d.clientWidth){d=d.assignedSlot||d.parentNode;continue}let T=d.getBoundingClientRect();({scaleX:x,scaleY:S}=KL(d,T)),g={left:T.left,right:T.left+d.clientWidth*x,top:T.top,bottom:T.top+d.clientHeight*S}}let k=0,_=0;if(r=="nearest")e.top<g.top?(_=e.top-(g.top+o),n>0&&e.bottom>g.bottom+_&&(_=e.bottom-g.bottom+o)):e.bottom>g.bottom&&(_=e.bottom-g.bottom+o,n<0&&e.top-_<g.top&&(_=e.top-(g.top+o)));else{let T=e.bottom-e.top,C=g.bottom-g.top;_=(r=="center"&&T<=C?e.top+T/2-C/2:r=="start"||r=="center"&&n<0?e.top-o:e.bottom-C+o)-g.top}if(i=="nearest"?e.left<g.left?(k=e.left-(g.left+s),n>0&&e.right>g.right+k&&(k=e.right-g.right+s)):e.right>g.right&&(k=e.right-g.right+s,n<0&&e.left<g.left+k&&(k=e.left-(g.left+s))):k=(i=="center"?e.left+(e.right-e.left)/2-(g.right-g.left)/2:i=="start"==l?e.left-s:e.right-(g.right-g.left)+s)-g.left,k||_)if(O)h.scrollBy(k,_);else{let T=0,C=0;if(_){let D=d.scrollTop;d.scrollTop+=_/S,C=(d.scrollTop-D)*S}if(k){let D=d.scrollLeft;d.scrollLeft+=k/x,T=(d.scrollLeft-D)*x}e={left:e.left-T,top:e.top-C,right:e.right-T,bottom:e.bottom-C},T&&Math.abs(T-k)<1&&(i="nearest"),C&&Math.abs(C-_)<1&&(r="nearest")}if(O)break;(e.top<g.top||e.bottom>g.bottom||e.left<g.left||e.right>g.right)&&(e={left:Math.max(e.left,g.left),right:Math.min(e.right,g.right),top:Math.max(e.top,g.top),bottom:Math.min(e.bottom,g.bottom)}),d=d.assignedSlot||d.parentNode}else if(d.nodeType==11)d=d.host;else break}function fH(t){let e=t.ownerDocument,n,i;for(let r=t.parentNode;r&&!(r==e.body||n&&i);)if(r.nodeType==1)!i&&r.scrollHeight>r.clientHeight&&(i=r),!n&&r.scrollWidth>r.clientWidth&&(n=r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;return{x:n,y:i}}class dH{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:i}=e;this.set(n,Math.min(e.anchorOffset,n?Tr(n):0),i,Math.min(e.focusOffset,i?Tr(i):0))}set(e,n,i,r){this.anchorNode=e,this.anchorOffset=n,this.focusNode=i,this.focusOffset=r}}let Go=null;be.safari&&be.safari_version>=26&&(Go=!1);function JL(t){if(t.setActive)return t.setActive();if(Go)return t.focus(Go);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(Go==null?{get preventScroll(){return Go={preventScroll:!0},!0}}:void 0),!Go){Go=!1;for(let n=0;n<e.length;){let i=e[n++],r=e[n++],s=e[n++];i.scrollTop!=r&&(i.scrollTop=r),i.scrollLeft!=s&&(i.scrollLeft=s)}}}let VC;function Oa(t,e,n=e){let i=VC||(VC=document.createRange());return i.setEnd(t,n),i.setStart(t,e),i}function $l(t,e,n,i){let r={key:e,code:e,keyCode:n,which:n,cancelable:!0};i&&({altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey}=i);let s=new KeyboardEvent("keydown",r);s.synthetic=!0,t.dispatchEvent(s);let o=new KeyboardEvent("keyup",r);return o.synthetic=!0,t.dispatchEvent(o),s.defaultPrevented||o.defaultPrevented}function pH(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function e$(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}function mH(t,e){let n=e.focusNode,i=e.focusOffset;if(!n||e.anchorNode!=n||e.anchorOffset!=i)return!1;for(i=Math.min(i,Tr(n));;)if(i){if(n.nodeType!=1)return!1;let r=n.childNodes[i-1];r.contentEditable=="false"?i--:(n=r,i=Tr(n))}else{if(n==t)return!0;i=ga(n),n=n.parentNode}}function t$(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function n$(t,e){for(let n=t,i=e;;){if(n.nodeType==3&&i>0)return{node:n,offset:i};if(n.nodeType==1&&i>0){if(n.contentEditable=="false")return null;n=n.childNodes[i-1],i=Tr(n)}else if(n.parentNode&&!om(n))i=ga(n),n=n.parentNode;else return null}}function i$(t,e){for(let n=t,i=e;;){if(n.nodeType==3&&i<n.nodeValue.length)return{node:n,offset:i};if(n.nodeType==1&&i<n.childNodes.length){if(n.contentEditable=="false")return null;n=n.childNodes[i],i=0}else if(n.parentNode&&!om(n))i=ga(n)+1,n=n.parentNode;else return null}}class yn{constructor(e,n,i=!0){this.node=e,this.offset=n,this.precise=i}static before(e,n){return new yn(e.parentNode,ga(e),n)}static after(e,n){return new yn(e.parentNode,ga(e)+1,n)}}const l1=[];class ht{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let n=this.posAtStart;for(let i of this.children){if(i==e)return n;n+=i.length+i.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,n){if(this.flags&2){let i=this.dom,r=null,s;for(let o of this.children){if(o.flags&7){if(!o.dom&&(s=r?r.nextSibling:i.firstChild)){let l=ht.get(s);(!l||!l.parent&&l.canReuseDOM(o))&&o.reuseDOM(s)}o.sync(e,n),o.flags&=-8}if(s=r?r.nextSibling:i.firstChild,n&&!n.written&&n.node==i&&s!=o.dom&&(n.written=!0),o.dom.parentNode==i)for(;s&&s!=o.dom;)s=BC(s);else i.insertBefore(o.dom,s);r=o.dom}for(s=r?r.nextSibling:i.firstChild,s&&n&&n.node==i&&(n.written=!0);s;)s=BC(s)}else if(this.flags&1)for(let i of this.children)i.flags&7&&(i.sync(e,n),i.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,n){let i;if(e==this.dom)i=this.dom.childNodes[n];else{let r=Tr(e)==0?0:n==0?-1:1;for(;;){let s=e.parentNode;if(s==this.dom)break;r==0&&s.firstChild!=s.lastChild&&(e==s.firstChild?r=-1:r=1),e=s}r<0?i=e:i=e.nextSibling}if(i==this.dom.firstChild)return 0;for(;i&&!ht.get(i);)i=i.nextSibling;if(!i)return this.length;for(let r=0,s=0;;r++){let o=this.children[r];if(o.dom==i)return s;s+=o.length+o.breakAfter}}domBoundsAround(e,n,i=0){let r=-1,s=-1,o=-1,l=-1;for(let c=0,h=i,d=i;c<this.children.length;c++){let p=this.children[c],g=h+p.length;if(h<e&&g>n)return p.domBoundsAround(e,n,h);if(g>=e&&r==-1&&(r=c,s=h),h>n&&p.dom.parentNode==this.dom){o=c,l=d;break}d=g,h=g+p.breakAfter}return{from:s,to:l<0?i+this.length:l,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let n=this.parent;n;n=n.parent){if(e&&(n.flags|=2),n.flags&1)return;n.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let n=e.parent;if(!n)return e;e=n}}replaceChildren(e,n,i=l1){this.markDirty();for(let r=e;r<n;r++){let s=this.children[r];s.parent==this&&i.indexOf(s)<0&&s.destroy()}i.length<250?this.children.splice(e,n-e,...i):this.children=[].concat(this.children.slice(0,e),i,this.children.slice(n));for(let r=0;r<i.length;r++)i[r].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new r$(this.children,e,this.children.length)}childPos(e,n=1){return this.childCursor().findPos(e,n)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,n,i,r,s,o){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}ht.prototype.breakAfter=0;function BC(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class r${constructor(e,n,i){this.children=e,this.pos=n,this.i=i,this.off=0}findPos(e,n=1){for(;;){if(e>this.pos||e==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function s$(t,e,n,i,r,s,o,l,c){let{children:h}=t,d=h.length?h[e]:null,p=s.length?s[s.length-1]:null,g=p?p.breakAfter:o;if(!(e==i&&d&&!o&&!g&&s.length<2&&d.merge(n,r,s.length?p:null,n==0,l,c))){if(i<h.length){let O=h[i];O&&(r<O.length||O.breakAfter&&p?.breakAfter)?(e==i&&(O=O.split(r),r=0),!g&&p&&O.merge(0,r,p,!0,0,c)?s[s.length-1]=O:((r||O.children.length&&!O.children[0].length)&&O.merge(0,r,null,!1,0,c),s.push(O))):O?.breakAfter&&(p?p.breakAfter=1:o=1),i++}for(d&&(d.breakAfter=o,n>0&&(!o&&s.length&&d.merge(n,d.length,s[0],!1,l,0)?d.breakAfter=s.shift().breakAfter:(n<d.length||d.children.length&&d.children[d.children.length-1].length==0)&&d.merge(n,d.length,null,!1,l,0),e++));e<i&&s.length;)if(h[i-1].become(s[s.length-1]))i--,s.pop(),c=s.length?0:l;else if(h[e].become(s[0]))e++,s.shift(),l=s.length?0:c;else break;!s.length&&e&&i<h.length&&!h[e-1].breakAfter&&h[i].merge(0,0,h[e-1],!1,l,c)&&e--,(e<i||s.length)&&t.replaceChildren(e,i,s)}}function o$(t,e,n,i,r,s){let o=t.childCursor(),{i:l,off:c}=o.findPos(n,1),{i:h,off:d}=o.findPos(e,-1),p=e-n;for(let g of i)p+=g.length;t.length+=p,s$(t,h,d,l,c,i,0,r,s)}const gH=256;class er extends ht{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,n,i){return this.flags&8||i&&(!(i instanceof er)||this.length-(n-e)+i.length>gH||i.flags&8)?!1:(this.text=this.text.slice(0,e)+(i?i.text:"")+this.text.slice(n),this.markDirty(),!0)}split(e){let n=new er(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(e,n){return e==this.dom?n:n?this.text.length:0}domAtPos(e){return new yn(this.dom,e)}domBoundsAround(e,n,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,n){return OH(this.dom,e,n)}}class ps extends ht{constructor(e,n=[],i=0){super(),this.mark=e,this.children=n,this.length=i;for(let r of n)r.setParent(this)}setAttrs(e){if(e$(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)e.setAttribute(n,this.mark.attrs[n]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,n)}merge(e,n,i,r,s,o){return i&&(!(i instanceof ps&&i.mark.eq(this.mark))||e&&s<=0||n<this.length&&o<=0)?!1:(o$(this,e,n,i?i.children.slice():[],s-1,o-1),this.markDirty(),!0)}split(e){let n=[],i=0,r=-1,s=0;for(let l of this.children){let c=i+l.length;c>e&&n.push(i<e?l.split(e-i):l),r<0&&i>=e&&(r=s),i=c,s++}let o=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new ps(this.mark,n,o)}domAtPos(e){return a$(this,e)}coordsAt(e,n){return c$(this,e,n)}}function OH(t,e,n){let i=t.nodeValue.length;e>i&&(e=i);let r=e,s=e,o=0;e==0&&n<0||e==i&&n>=0?be.chrome||be.gecko||(e?(r--,o=1):s<i&&(s++,o=-1)):n<0?r--:s<i&&s++;let l=Oa(t,r,s).getClientRects();if(!l.length)return null;let c=l[(o?o<0:n>=0)?0:l.length-1];return be.safari&&!o&&c.width==0&&(c=Array.prototype.find.call(l,h=>h.width)||c),o?Zh(c,o<0):c||null}class as extends ht{static create(e,n,i){return new as(e,n,i)}constructor(e,n,i){super(),this.widget=e,this.length=n,this.side=i,this.prevWidget=null}split(e){let n=as.create(this.widget,this.length-e,this.side);return this.length-=e,n}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,n,i,r,s,o){return i&&(!(i instanceof as)||!this.widget.compare(i.widget)||e>0&&s<=0||n<this.length&&o<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-n),!0)}become(e){return e instanceof as&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return Fe.empty;let e=this;for(;e.parent;)e=e.parent;let{view:n}=e,i=n&&n.state.doc,r=this.posAtStart;return i?i.slice(r,r+this.length):Fe.empty}domAtPos(e){return(this.length?e==0:this.side>0)?yn.before(this.dom):yn.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,n){let i=this.widget.coordsAt(this.dom,e,n);if(i)return i;let r=this.dom.getClientRects(),s=null;if(!r.length)return null;let o=this.side?this.side<0:e>0;for(let l=o?r.length-1:0;s=r[l],!(e>0?l==0:l==r.length-1||s.top<s.bottom);l+=o?-1:1);return Zh(s,!o)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class Yl extends ht{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof Yl&&e.side==this.side}split(){return new Yl(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?yn.before(this.dom):yn.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Fe.empty}get isHidden(){return!0}}er.prototype.children=as.prototype.children=Yl.prototype.children=l1;function a$(t,e){let n=t.dom,{children:i}=t,r=0;for(let s=0;r<i.length;r++){let o=i[r],l=s+o.length;if(!(l==s&&o.getSide()<=0)){if(e>s&&e<l&&o.dom.parentNode==n)return o.domAtPos(e-s);if(e<=s)break;s=l}}for(let s=r;s>0;s--){let o=i[s-1];if(o.dom.parentNode==n)return o.domAtPos(o.length)}for(let s=r;s<i.length;s++){let o=i[s];if(o.dom.parentNode==n)return o.domAtPos(0)}return new yn(n,0)}function l$(t,e,n){let i,{children:r}=t;n>0&&e instanceof ps&&r.length&&(i=r[r.length-1])instanceof ps&&i.mark.eq(e.mark)?l$(i,e.children[0],n-1):(r.push(e),e.setParent(t)),t.length+=e.length}function c$(t,e,n){let i=null,r=-1,s=null,o=-1;function l(h,d){for(let p=0,g=0;p<h.children.length&&g<=d;p++){let O=h.children[p],x=g+O.length;x>=d&&(O.children.length?l(O,d-g):(!s||s.isHidden&&(n>0||bH(s,O)))&&(x>d||g==x&&O.getSide()>0)?(s=O,o=d-g):(g<d||g==x&&O.getSide()<0&&!O.isHidden)&&(i=O,r=d-g)),g=x}}l(t,e);let c=(n<0?i:s)||i||s;return c?c.coordsAt(Math.max(0,c==i?r:o),n):yH(t)}function yH(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=Ul(e);return n[n.length-1]||null}function bH(t,e){let n=t.coordsAt(0,1),i=e.coordsAt(0,1);return n&&i&&i.top<n.bottom}function bx(t,e){for(let n in t)n=="class"&&e.class?e.class+=" "+t.class:n=="style"&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}const ZC=Object.create(null);function am(t,e,n){if(t==e)return!0;t||(t=ZC),e||(e=ZC);let i=Object.keys(t),r=Object.keys(e);if(i.length-(n&&i.indexOf(n)>-1?1:0)!=r.length-(n&&r.indexOf(n)>-1?1:0))return!1;for(let s of i)if(s!=n&&(r.indexOf(s)==-1||t[s]!==e[s]))return!1;return!0}function xx(t,e,n){let i=!1;if(e)for(let r in e)n&&r in n||(i=!0,r=="style"?t.style.cssText="":t.removeAttribute(r));if(n)for(let r in n)e&&e[r]==n[r]||(i=!0,r=="style"?t.style.cssText=n[r]:t.setAttribute(r,n[r]));return i}function xH(t){let e=Object.create(null);for(let n=0;n<t.attributes.length;n++){let i=t.attributes[n];e[i.name]=i.value}return e}class bi{eq(e){return!1}updateDOM(e,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,n,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Rn=(function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t})(Rn||(Rn={}));class ve extends ma{constructor(e,n,i,r){super(),this.startSide=e,this.endSide=n,this.widget=i,this.spec=r}get heightRelevant(){return!1}static mark(e){return new qh(e)}static widget(e){let n=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return n+=i&&!e.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new go(e,n,n,i,e.widget||null,!1)}static replace(e){let n=!!e.block,i,r;if(e.isBlockGap)i=-5e8,r=4e8;else{let{start:s,end:o}=u$(e,n);i=(s?n?-3e8:-1:5e8)-1,r=(o?n?2e8:1:-6e8)+1}return new go(e,i,r,n,e.widget||null,!0)}static line(e){return new Uh(e)}static set(e,n=!1){return Je.of(e,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}ve.none=Je.empty;class qh extends ve{constructor(e){let{start:n,end:i}=u$(e);super(n?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var n,i;return this==e||e instanceof qh&&this.tagName==e.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(e.class||((i=e.attrs)===null||i===void 0?void 0:i.class))&&am(this.attrs,e.attrs,"class")}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}}qh.prototype.point=!1;class Uh extends ve{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Uh&&this.spec.class==e.spec.class&&am(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}}Uh.prototype.mapMode=un.TrackBefore;Uh.prototype.point=!0;class go extends ve{constructor(e,n,i,r,s,o){super(n,i,s,e),this.block=r,this.isReplace=o,this.mapMode=r?n<=0?un.TrackBefore:un.TrackAfter:un.TrackDel}get type(){return this.startSide!=this.endSide?Rn.WidgetRange:this.startSide<=0?Rn.WidgetBefore:Rn.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof go&&vH(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}}go.prototype.point=!0;function u$(t,e=!1){let{inclusiveStart:n,inclusiveEnd:i}=t;return n==null&&(n=t.inclusive),i==null&&(i=t.inclusive),{start:n??e,end:i??e}}function vH(t,e){return t==e||!!(t&&e&&t.compare(e))}function xp(t,e,n,i=0){let r=n.length-1;r>=0&&n[r]+i>=t?n[r]=Math.max(n[r],e):n.push(t,e)}class zt extends ht{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,n,i,r,s,o){if(i){if(!(i instanceof zt))return!1;this.dom||i.transferDOM(this)}return r&&this.setDeco(i?i.attrs:null),o$(this,e,n,i?i.children.slice():[],s,o),!0}split(e){let n=new zt;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i,off:r}=this.childPos(e);r&&(n.append(this.children[i].split(r),0),this.children[i].merge(r,this.children[i].length,null,!1,0,0),i++);for(let s=i;s<this.children.length;s++)n.append(this.children[s],0);for(;i>0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=e,n}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){am(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,n){l$(this,e,n)}addLineDeco(e){let n=e.spec.attributes,i=e.spec.class;n&&(this.attrs=bx(n,this.attrs||{})),i&&(this.attrs=bx({class:i},this.attrs||{}))}domAtPos(e){return a$(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,n){var i;this.dom?this.flags&4&&(e$(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(xx(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,n);let r=this.dom.lastChild;for(;r&&ht.get(r)instanceof ps;)r=r.lastChild;if(!r||!this.length||r.nodeName!="BR"&&((i=ht.get(r))===null||i===void 0?void 0:i.isEditable)==!1&&(!be.ios||!this.children.some(s=>s instanceof er))){let s=document.createElement("BR");s.cmIgnore=!0,this.dom.appendChild(s)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,n;for(let i of this.children){if(!(i instanceof er)||/[^ -~]/.test(i.text))return null;let r=Ul(i.dom);if(r.length!=1)return null;e+=r[0].width,n=r[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:n}:null}coordsAt(e,n){let i=c$(this,e,n);if(!this.children.length&&i&&this.parent){let{heightOracle:r}=this.parent.view.viewState,s=i.bottom-i.top;if(Math.abs(s-r.lineHeight)<2&&r.textHeight<s){let o=(s-r.textHeight)/2;return{top:i.top+o,bottom:i.bottom-o,left:i.left,right:i.left}}}return i}become(e){return e instanceof zt&&this.children.length==0&&e.children.length==0&&am(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,n){for(let i=0,r=0;i<e.children.length;i++){let s=e.children[i],o=r+s.length;if(o>=n){if(s instanceof zt)return s;if(o>n)break}r=o+s.breakAfter}return null}}class us extends ht{constructor(e,n,i){super(),this.widget=e,this.length=n,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(e,n,i,r,s,o){return i&&(!(i instanceof us)||!this.widget.compare(i.widget)||e>0&&s<=0||n<this.length&&o<=0)?!1:(this.length=e+(i?i.length:0)+(this.length-n),!0)}domAtPos(e){return e==0?yn.before(this.dom):yn.after(this.dom,e==this.length)}split(e){let n=this.length-e;this.length=e;let i=new us(this.widget,n,this.deco);return i.breakAfter=this.breakAfter,i}get children(){return l1}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):Fe.empty}domBoundsAround(){return null}become(e){return e instanceof us&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,n){let i=this.widget.coordsAt(this.dom,e,n);return i||(this.widget instanceof vx?null:Zh(this.dom.getBoundingClientRect(),this.length?e==0:n<=0))}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:n,endSide:i}=this.deco;return n==i?!1:e<0?n<0:i>0}}class vx extends bi{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class qu{constructor(e,n,i,r){this.doc=e,this.pos=n,this.end=i,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof us&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new zt),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Nd(new Yl(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof us)&&this.getLine()}buildText(e,n,i){for(;e>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:l,done:c}=this.cursor.next(this.skip);if(this.skip=0,c)throw new Error("Ran out of text content when drawing inline views");if(l){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=o,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e),s=Math.min(r,512);this.flushBuffer(n.slice(n.length-i)),this.getLine().append(Nd(new er(this.text.slice(this.textOff,this.textOff+s)),n),i),this.atCursorPos=!0,this.textOff+=s,e-=s,i=r<=s?0:n.length}}span(e,n,i,r){this.buildText(n-e,i,r),this.pos=n,this.openStart<0&&(this.openStart=r)}point(e,n,i,r,s,o){if(this.disallowBlockEffectsFor[o]&&i instanceof go){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=n-e;if(i instanceof go)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new us(i.widget||Gl.block,l,i));else{let c=as.create(i.widget||Gl.inline,l,l?0:i.startSide),h=this.atCursorPos&&!c.isEditable&&s<=r.length&&(e<n||i.startSide>0),d=!c.isEditable&&(e<n||s>r.length||i.startSide<=0),p=this.getLine();this.pendingBuffer==2&&!h&&!c.isEditable&&(this.pendingBuffer=0),this.flushBuffer(r),h&&(p.append(Nd(new Yl(1),r),s),s=r.length+Math.max(0,s-r.length)),p.append(Nd(c,r),s),this.atCursorPos=d,this.pendingBuffer=d?e<n||s>r.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=s)}static build(e,n,i,r,s){let o=new qu(e,n,i,s);return o.openEnd=Je.spans(r,n,i,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function Nd(t,e){for(let n of e)t=new ps(n,[t],t.length);return t}class Gl extends bi{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Gl.inline=new Gl("span");Gl.block=new Gl("div");var _t=(function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t})(_t||(_t={}));const ya=_t.LTR,c1=_t.RTL;function h$(t){let e=[];for(let n=0;n<t.length;n++)e.push(1<<+t[n]);return e}const SH=h$("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),_H=h$("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),Sx=Object.create(null),hr=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),n=t.charCodeAt(1);Sx[e]=n,Sx[n]=-e}function f$(t){return t<=247?SH[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?_H[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}const kH=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class no{get dir(){return this.level%2?c1:ya}constructor(e,n,i){this.from=e,this.to=n,this.level=i}side(e,n){return this.dir==n==e?this.to:this.from}forward(e,n){return e==(this.dir==n)}static find(e,n,i,r){let s=-1;for(let o=0;o<e.length;o++){let l=e[o];if(l.from<=n&&l.to>=n){if(l.level==i)return o;(s<0||(r!=0?r<0?l.from<n:l.to>n:e[s].level>l.level))&&(s=o)}}if(s<0)throw new RangeError("Index out of range");return s}}function d$(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++){let i=t[n],r=e[n];if(i.from!=r.from||i.to!=r.to||i.direction!=r.direction||!d$(i.inner,r.inner))return!1}return!0}const gt=[];function wH(t,e,n,i,r){for(let s=0;s<=i.length;s++){let o=s?i[s-1].to:e,l=s<i.length?i[s].from:n,c=s?256:r;for(let h=o,d=c,p=c;h<l;h++){let g=f$(t.charCodeAt(h));g==512?g=d:g==8&&p==4&&(g=16),gt[h]=g==4?2:g,g&7&&(p=g),d=g}for(let h=o,d=c,p=c;h<l;h++){let g=gt[h];if(g==128)h<l-1&&d==gt[h+1]&&d&24?g=gt[h]=d:gt[h]=256;else if(g==64){let O=h+1;for(;O<l&&gt[O]==64;)O++;let x=h&&d==8||O<n&&gt[O]==8?p==1?1:8:256;for(let S=h;S<O;S++)gt[S]=x;h=O-1}else g==8&&p==1&&(gt[h]=1);d=g,g&7&&(p=g)}}}function PH(t,e,n,i,r){let s=r==1?2:1;for(let o=0,l=0,c=0;o<=i.length;o++){let h=o?i[o-1].to:e,d=o<i.length?i[o].from:n;for(let p=h,g,O,x;p<d;p++)if(O=Sx[g=t.charCodeAt(p)])if(O<0){for(let S=l-3;S>=0;S-=3)if(hr[S+1]==-O){let k=hr[S+2],_=k&2?r:k&4?k&1?s:r:0;_&&(gt[p]=gt[hr[S]]=_),l=S;break}}else{if(hr.length==189)break;hr[l++]=p,hr[l++]=g,hr[l++]=c}else if((x=gt[p])==2||x==1){let S=x==r;c=S?0:1;for(let k=l-3;k>=0;k-=3){let _=hr[k+2];if(_&2)break;if(S)hr[k+2]|=2;else{if(_&4)break;hr[k+2]|=4}}}}}function TH(t,e,n,i){for(let r=0,s=i;r<=n.length;r++){let o=r?n[r-1].to:t,l=r<n.length?n[r].from:e;for(let c=o;c<l;){let h=gt[c];if(h==256){let d=c+1;for(;;)if(d==l){if(r==n.length)break;d=n[r++].to,l=r<n.length?n[r].from:e}else if(gt[d]==256)d++;else break;let p=s==1,g=(d<e?gt[d]:i)==1,O=p==g?p?1:2:i;for(let x=d,S=r,k=S?n[S-1].to:t;x>c;)x==k&&(x=n[--S].from,k=S?n[S-1].to:t),gt[--x]=O;c=d}else s=h,c++}}}function _x(t,e,n,i,r,s,o){let l=i%2?2:1;if(i%2==r%2)for(let c=e,h=0;c<n;){let d=!0,p=!1;if(h==s.length||c<s[h].from){let S=gt[c];S!=l&&(d=!1,p=S==16)}let g=!d&&l==1?[]:null,O=d?i:i+1,x=c;e:for(;;)if(h<s.length&&x==s[h].from){if(p)break e;let S=s[h];if(!d)for(let k=S.to,_=h+1;;){if(k==n)break e;if(_<s.length&&s[_].from==k)k=s[_++].to;else{if(gt[k]==l)break e;break}}if(h++,g)g.push(S);else{S.from>c&&o.push(new no(c,S.from,O));let k=S.direction==ya!=!(O%2);kx(t,k?i+1:i,r,S.inner,S.from,S.to,o),c=S.to}x=S.to}else{if(x==n||(d?gt[x]!=l:gt[x]==l))break;x++}g?_x(t,c,x,i+1,r,g,o):c<x&&o.push(new no(c,x,O)),c=x}else for(let c=n,h=s.length;c>e;){let d=!0,p=!1;if(!h||c>s[h-1].to){let S=gt[c-1];S!=l&&(d=!1,p=S==16)}let g=!d&&l==1?[]:null,O=d?i:i+1,x=c;e:for(;;)if(h&&x==s[h-1].to){if(p)break e;let S=s[--h];if(!d)for(let k=S.from,_=h;;){if(k==e)break e;if(_&&s[_-1].to==k)k=s[--_].from;else{if(gt[k-1]==l)break e;break}}if(g)g.push(S);else{S.to<c&&o.push(new no(S.to,c,O));let k=S.direction==ya!=!(O%2);kx(t,k?i+1:i,r,S.inner,S.from,S.to,o),c=S.from}x=S.from}else{if(x==e||(d?gt[x-1]!=l:gt[x-1]==l))break;x--}g?_x(t,x,c,i+1,r,g,o):x<c&&o.push(new no(x,c,O)),c=x}}function kx(t,e,n,i,r,s,o){let l=e%2?2:1;wH(t,r,s,i,l),PH(t,r,s,i,l),TH(r,s,i,l),_x(t,r,s,e,n,i,o)}function CH(t,e,n){if(!t)return[new no(0,0,e==c1?1:0)];if(e==ya&&!n.length&&!kH.test(t))return p$(t.length);if(n.length)for(;t.length>gt.length;)gt[gt.length]=256;let i=[],r=e==ya?0:1;return kx(t,r,r,n,0,t.length,i),i}function p$(t){return[new no(0,t,0)]}let m$="";function QH(t,e,n,i,r){var s;let o=i.head-t.from,l=no.find(e,o,(s=i.bidiLevel)!==null&&s!==void 0?s:-1,i.assoc),c=e[l],h=c.side(r,n);if(o==h){let g=l+=r?1:-1;if(g<0||g>=e.length)return null;c=e[l=g],o=c.side(!r,n),h=c.side(r,n)}let d=hn(t.text,o,c.forward(r,n));(d<c.from||d>c.to)&&(d=h),m$=t.text.slice(Math.min(o,d),Math.max(o,d));let p=l==(r?e.length-1:0)?null:e[l+(r?1:-1)];return p&&d==h&&p.level+(r?0:1)<c.level?se.cursor(p.side(!r,n)+t.from,p.forward(r,n)?1:-1,p.level):se.cursor(d+t.from,c.forward(r,n)?-1:1,c.level)}function EH(t,e,n){for(let i=e;i<n;i++){let r=f$(t.charCodeAt(i));if(r==1)return ya;if(r==2||r==4)return c1}return ya}const g$=Se.define(),O$=Se.define(),y$=Se.define(),b$=Se.define(),wx=Se.define(),x$=Se.define(),v$=Se.define(),u1=Se.define(),h1=Se.define(),S$=Se.define({combine:t=>t.some(e=>e)}),_$=Se.define({combine:t=>t.some(e=>e)}),k$=Se.define();class Ml{constructor(e,n="nearest",i="nearest",r=5,s=5,o=!1){this.range=e,this.y=n,this.x=i,this.yMargin=r,this.xMargin=s,this.isSnapshot=o}map(e){return e.empty?this:new Ml(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Ml(se.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const zd=Me.define({map:(t,e)=>t.map(e)}),w$=Me.define();function Gn(t,e,n){let i=t.facet(b$);i.length?i[0](e):window.onerror&&window.onerror(String(e),n,void 0,void 0,e)||(n?console.error(n+":",e):console.error(e))}const os=Se.define({combine:t=>t.length?t[0]:!0});let AH=0;const wl=Se.define({combine(t){return t.filter((e,n)=>{for(let i=0;i<n;i++)if(t[i].plugin==e.plugin)return!1;return!0})}});class Ct{constructor(e,n,i,r,s){this.id=e,this.create=n,this.domEventHandlers=i,this.domEventObservers=r,this.baseExtensions=s(this),this.extension=this.baseExtensions.concat(wl.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(wl.of({plugin:this,arg:e}))}static define(e,n){const{eventHandlers:i,eventObservers:r,provide:s,decorations:o}=n||{};return new Ct(AH++,e,i,r,l=>{let c=[];return o&&c.push(Oh.of(h=>{let d=h.plugin(l);return d?o(d):ve.none})),s&&c.push(s(l)),c})}static fromClass(e,n){return Ct.define((i,r)=>new e(i,r),n)}}class Ty{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(i){if(Gn(n.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(n){Gn(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(i){Gn(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const P$=Se.define(),f1=Se.define(),Oh=Se.define(),T$=Se.define(),Yh=Se.define(),C$=Se.define();function qC(t,e){let n=t.state.facet(C$);if(!n.length)return n;let i=n.map(s=>s instanceof Function?s(t):s),r=[];return Je.spans(i,e.from,e.to,{point(){},span(s,o,l,c){let h=s-e.from,d=o-e.from,p=r;for(let g=l.length-1;g>=0;g--,c--){let O=l[g].spec.bidiIsolate,x;if(O==null&&(O=EH(e.text,h,d)),c>0&&p.length&&(x=p[p.length-1]).to==h&&x.direction==O)x.to=d,p=x.inner;else{let S={from:h,to:d,direction:O,inner:[]};p.push(S),p=S.inner}}}}),r}const Q$=Se.define();function d1(t){let e=0,n=0,i=0,r=0;for(let s of t.state.facet(Q$)){let o=s(t);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(n=Math.max(n,o.right)),o.top!=null&&(i=Math.max(i,o.top)),o.bottom!=null&&(r=Math.max(r,o.bottom)))}return{left:e,right:n,top:i,bottom:r}}const Cu=Se.define();class Ii{constructor(e,n,i,r){this.fromA=e,this.toA=n,this.fromB=i,this.toB=r}join(e){return new Ii(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,i=this;for(;n>0;n--){let r=e[n-1];if(!(r.fromA>i.toA)){if(r.toA<i.fromA)break;i=i.join(r),e.splice(n-1,1)}}return e.splice(n,0,i),e}static extendWithRanges(e,n){if(n.length==0)return e;let i=[];for(let r=0,s=0,o=0,l=0;;r++){let c=r==e.length?null:e[r],h=o-l,d=c?c.fromB:1e9;for(;s<n.length&&n[s]<d;){let p=n[s],g=n[s+1],O=Math.max(l,p),x=Math.min(d,g);if(O<=x&&new Ii(O+h,x+h,O,x).addToSet(i),g>d)break;s+=2}if(!c)return i;new Ii(c.fromA,c.toA,c.fromB,c.toB).addToSet(i),o=c.toA,l=c.toB}}}class lm{constructor(e,n,i){this.view=e,this.state=n,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=Yt.empty(this.startState.doc.length);for(let s of i)this.changes=this.changes.compose(s.changes);let r=[];this.changes.iterChangedRanges((s,o,l,c)=>r.push(new Ii(s,o,l,c))),this.changedRanges=r}static create(e,n,i){return new lm(e,n,i)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class UC extends ht{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=ve.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new zt],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Ii(0,0,0,e.state.doc.length)],0,null)}update(e){var n;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:h,toA:d})=>d<this.minWidthFrom||h>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let r=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?r=this.domChanged.newSel.head:!NH(e.changes,this.hasComposition)&&!e.selectionSet&&(r=e.state.selection.main.head));let s=r>-1?LH(this.view,e.changes,r):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:h,to:d}=this.hasComposition;i=new Ii(h,d,e.changes.mapPos(h,-1),e.changes.mapPos(d,1)).addToSet(i.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(be.ie||be.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,l=this.updateDeco(),c=DH(o,l,e.changes);return i=Ii.extendWithRanges(i,c),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,e.startState.doc.length,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,n,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,n,i);let{observer:r}=this.view;r.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=be.chrome||be.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||r.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let o of this.children)o instanceof us&&o.widget instanceof vx&&s.push(o.dom);r.updateGaps(s)}updateChildren(e,n,i){let r=i?i.range.addToSet(e.slice()):e,s=this.childCursor(n);for(let o=r.length-1;;o--){let l=o>=0?r[o]:null;if(!l)break;let{fromA:c,toA:h,fromB:d,toB:p}=l,g,O,x,S;if(i&&i.range.fromB<p&&i.range.toB>d){let D=qu.build(this.view.state.doc,d,i.range.fromB,this.decorations,this.dynamicDecorationMap),j=qu.build(this.view.state.doc,i.range.toB,p,this.decorations,this.dynamicDecorationMap);O=D.breakAtStart,x=D.openStart,S=j.openEnd;let A=this.compositionView(i);j.breakAtStart?A.breakAfter=1:j.content.length&&A.merge(A.length,A.length,j.content[0],!1,j.openStart,0)&&(A.breakAfter=j.content[0].breakAfter,j.content.shift()),D.content.length&&A.merge(0,0,D.content[D.content.length-1],!0,0,D.openEnd)&&D.content.pop(),g=D.content.concat(A).concat(j.content)}else({content:g,breakAtStart:O,openStart:x,openEnd:S}=qu.build(this.view.state.doc,d,p,this.decorations,this.dynamicDecorationMap));let{i:k,off:_}=s.findPos(h,1),{i:T,off:C}=s.findPos(c,-1);s$(this,T,C,k,_,g,O,x,S)}i&&this.fixCompositionDOM(i)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let n of e.transactions)for(let i of n.effects)i.is(w$)&&(this.editContextFormatting=i.value)}compositionView(e){let n=new er(e.text.nodeValue);n.flags|=8;for(let{deco:r}of e.marks)n=new ps(r,[n],n.length);let i=new zt;return i.append(n,0),i}fixCompositionDOM(e){let n=(s,o)=>{o.flags|=8|(o.children.some(c=>c.flags&7)?1:0),this.markedForComposition.add(o);let l=ht.get(s);l&&l!=o&&(l.dom=null),o.setDOM(s)},i=this.childPos(e.range.fromB,1),r=this.children[i.i];n(e.line,r);for(let s=e.marks.length-1;s>=-1;s--)i=r.childPos(i.off,1),r=r.children[i.i],n(s>=0?e.marks[s].node:e.text,r)}updateSelection(e=!1,n=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,r=i==this.dom,s=!r&&!(this.view.state.facet(os)||this.dom.tabIndex>-1)&&bp(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(r||n||s))return;let o=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,c=this.moveToLine(this.domAtPos(l.anchor)),h=l.empty?c:this.moveToLine(this.domAtPos(l.head));if(be.gecko&&l.empty&&!this.hasComposition&&RH(c)){let p=document.createTextNode("");this.view.observer.ignore(()=>c.node.insertBefore(p,c.node.childNodes[c.offset]||null)),c=h=new yn(p,0),o=!0}let d=this.view.observer.selectionRange;(o||!d.focusNode||(!Zu(c.node,c.offset,d.anchorNode,d.anchorOffset)||!Zu(h.node,h.offset,d.focusNode,d.focusOffset))&&!this.suppressWidgetCursorChange(d,l))&&(this.view.observer.ignore(()=>{be.android&&be.chrome&&this.dom.contains(d.focusNode)&&jH(d.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let p=gh(this.view.root);if(p)if(l.empty){if(be.gecko){let g=$H(c.node,c.offset);if(g&&g!=3){let O=(g==1?n$:i$)(c.node,c.offset);O&&(c=new yn(O.node,O.offset))}}p.collapse(c.node,c.offset),l.bidiLevel!=null&&p.caretBidiLevel!==void 0&&(p.caretBidiLevel=l.bidiLevel)}else if(p.extend){p.collapse(c.node,c.offset);try{p.extend(h.node,h.offset)}catch{}}else{let g=document.createRange();l.anchor>l.head&&([c,h]=[h,c]),g.setEnd(h.node,h.offset),g.setStart(c.node,c.offset),p.removeAllRanges(),p.addRange(g)}s&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(c,h)),this.impreciseAnchor=c.precise?null:new yn(d.anchorNode,d.anchorOffset),this.impreciseHead=h.precise?null:new yn(d.focusNode,d.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&Zu(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,n=e.state.selection.main,i=gh(e.root),{anchorNode:r,anchorOffset:s}=e.observer.selectionRange;if(!i||!n.empty||!n.assoc||!i.modify)return;let o=zt.find(this,n.head);if(!o)return;let l=o.posAtStart;if(n.head==l||n.head==l+o.length)return;let c=this.coordsAt(n.head,-1),h=this.coordsAt(n.head,1);if(!c||!h||c.bottom>h.top)return;let d=this.domAtPos(n.head+n.assoc);i.collapse(d.node,d.offset),i.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let p=e.observer.selectionRange;e.docView.posFromDOM(p.anchorNode,p.anchorOffset)!=n.from&&i.collapse(r,s)}moveToLine(e){let n=this.dom,i;if(e.node!=n)return e;for(let r=e.offset;!i&&r<n.childNodes.length;r++){let s=ht.get(n.childNodes[r]);s instanceof zt&&(i=s.domAtPos(0))}for(let r=e.offset-1;!i&&r>=0;r--){let s=ht.get(n.childNodes[r]);s instanceof zt&&(i=s.domAtPos(s.length))}return i?new yn(i.node,i.offset,!0):e}nearest(e){for(let n=e;n;){let i=ht.get(n);if(i&&i.rootView==this)return i;n=n.parentNode}return null}posFromDOM(e,n){let i=this.nearest(e);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(e,n)+i.posAtStart}domAtPos(e){let{i:n,off:i}=this.childCursor().findPos(e,-1);for(;n<this.children.length-1;){let r=this.children[n];if(i<r.length||r instanceof zt)break;n++,i=0}return this.children[n].domAtPos(i)}coordsAt(e,n){let i=null,r=0;for(let s=this.length,o=this.children.length-1;o>=0;o--){let l=this.children[o],c=s-l.breakAfter,h=c-l.length;if(c<e)break;if(h<=e&&(h<e||l.covers(-1))&&(c>e||l.covers(1))&&(!i||l instanceof zt&&!(i instanceof zt&&n>=0)))i=l,r=h;else if(i&&h==e&&c==e&&l instanceof us&&Math.abs(n)<2){if(l.deco.startSide<0)break;o&&(i=null)}s=h}return i?i.coordsAt(e-r,n):null}coordsForChar(e){let{i:n,off:i}=this.childPos(e,1),r=this.children[n];if(!(r instanceof zt))return null;for(;r.children.length;){let{i:l,off:c}=r.childPos(i,1);for(;;l++){if(l==r.children.length)return null;if((r=r.children[l]).length)break}i=c}if(!(r instanceof er))return null;let s=hn(r.text,i);if(s==i)return null;let o=Oa(r.dom,i,s).getClientRects();for(let l=0;l<o.length;l++){let c=o[l];if(l==o.length-1||c.top<c.bottom&&c.left<c.right)return c}return null}measureVisibleLineHeights(e){let n=[],{from:i,to:r}=e,s=this.view.contentDOM.clientWidth,o=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,c=this.view.textDirection==_t.LTR;for(let h=0,d=0;d<this.children.length;d++){let p=this.children[d],g=h+p.length;if(g>r)break;if(h>=i){let O=p.dom.getBoundingClientRect();if(n.push(O.height),o){let x=p.dom.lastChild,S=x?Ul(x):[];if(S.length){let k=S[S.length-1],_=c?k.right-O.left:O.right-k.left;_>l&&(l=_,this.minWidth=s,this.minWidthFrom=h,this.minWidthTo=g)}}}h=g+p.breakAfter}return n}textDirectionAt(e){let{i:n}=this.childPos(e,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?_t.RTL:_t.LTR}measureTextSize(){for(let s of this.children)if(s instanceof zt){let o=s.measureTextSize();if(o)return o}let e=document.createElement("div"),n,i,r;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let s=Ul(e.firstChild)[0];n=e.getBoundingClientRect().height,i=s?s.width/27:7,r=s?s.height:n,e.remove()}),{lineHeight:n,charWidth:i,textHeight:r}}childCursor(e=this.length){let n=this.children.length;return n&&(e-=this.children[--n].length),new r$(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let i=0,r=0;;r++){let s=r==n.viewports.length?null:n.viewports[r],o=s?s.from-1:this.length;if(o>i){let l=(n.lineBlockAt(o).bottom-n.lineBlockAt(i).top)/this.view.scaleY;e.push(ve.replace({widget:new vx(l),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!s)break;i=s.to+1}return ve.set(e)}updateDeco(){let e=1,n=this.view.state.facet(Oh).map(s=>(this.dynamicDecorationMap[e++]=typeof s=="function")?s(this.view):s),i=!1,r=this.view.state.facet(T$).map((s,o)=>{let l=typeof s=="function";return l&&(i=!0),l?s(this.view):s});for(r.length&&(this.dynamicDecorationMap[e++]=i,n.push(Je.join(r))),this.decorations=[this.editContextFormatting,...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let h=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=h.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let h of this.view.state.facet(k$))try{if(h(this.view,e.range,e))return!0}catch(d){Gn(this.view.state,d,"scroll handler")}let{range:n}=e,i=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),r;if(!i)return;!n.empty&&(r=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(i={left:Math.min(i.left,r.left),top:Math.min(i.top,r.top),right:Math.max(i.right,r.right),bottom:Math.max(i.bottom,r.bottom)});let s=d1(this.view),o={left:i.left-s.left,top:i.top-s.top,right:i.right+s.right,bottom:i.bottom+s.bottom},{offsetWidth:l,offsetHeight:c}=this.view.scrollDOM;hH(this.view.scrollDOM,o,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,l),-l),Math.max(Math.min(e.yMargin,c),-c),this.view.textDirection==_t.LTR)}lineHasWidget(e){let{i:n}=this.childCursor().findPos(e);if(n==this.children.length)return!1;let i=r=>r instanceof as||r.children.some(i);return i(this.children[n])}}function RH(t){return t.node.nodeType==1&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}function E$(t,e){let n=t.observer.selectionRange;if(!n.focusNode)return null;let i=n$(n.focusNode,n.focusOffset),r=i$(n.focusNode,n.focusOffset),s=i||r;if(r&&i&&r.node!=i.node){let l=ht.get(r.node);if(!l||l instanceof er&&l.text!=r.node.nodeValue)s=r;else if(t.docView.lastCompositionAfterCursor){let c=ht.get(i.node);!c||c instanceof er&&c.text!=i.node.nodeValue||(s=r)}}if(t.docView.lastCompositionAfterCursor=s!=i,!s)return null;let o=e-s.offset;return{from:o,to:o+s.node.nodeValue.length,node:s.node}}function LH(t,e,n){let i=E$(t,n);if(!i)return null;let{node:r,from:s,to:o}=i,l=r.nodeValue;if(/[\n\r]/.test(l)||t.state.doc.sliceString(i.from,i.to)!=l)return null;let c=e.invertedDesc,h=new Ii(c.mapPos(s),c.mapPos(o),s,o),d=[];for(let p=r.parentNode;;p=p.parentNode){let g=ht.get(p);if(g instanceof ps)d.push({node:p,deco:g.mark});else{if(g instanceof zt||p.nodeName=="DIV"&&p.parentNode==t.contentDOM)return{range:h,text:r,marks:d,line:p};if(p!=t.contentDOM)d.push({node:p,deco:new qh({inclusive:!0,attributes:xH(p),tagName:p.tagName.toLowerCase()})});else return null}}}function $H(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0)}let MH=class{constructor(){this.changes=[]}compareRange(e,n){xp(e,n,this.changes)}comparePoint(e,n){xp(e,n,this.changes)}boundChange(e){xp(e,e,this.changes)}};function DH(t,e,n){let i=new MH;return Je.compare(t,e,n,i),i.changes}function jH(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(n.nodeType==1&&n.contentEditable=="false")return!0;return!1}function NH(t,e){let n=!1;return e&&t.iterChangedRanges((i,r)=>{i<e.to&&r>e.from&&(n=!0)}),n}function zH(t,e,n=1){let i=t.charCategorizer(e),r=t.doc.lineAt(e),s=e-r.from;if(r.length==0)return se.cursor(e);s==0?n=1:s==r.length&&(n=-1);let o=s,l=s;n<0?o=hn(r.text,s,!1):l=hn(r.text,s);let c=i(r.text.slice(o,l));for(;o>0;){let h=hn(r.text,o,!1);if(i(r.text.slice(h,o))!=c)break;o=h}for(;l<r.length;){let h=hn(r.text,l);if(i(r.text.slice(l,h))!=c)break;l=h}return se.range(o+r.from,l+r.from)}function IH(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function XH(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function Cy(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function YC(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function GC(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function Px(t,e,n){let i,r,s,o,l=!1,c,h,d,p;for(let x=t.firstChild;x;x=x.nextSibling){let S=Ul(x);for(let k=0;k<S.length;k++){let _=S[k];r&&Cy(r,_)&&(_=YC(GC(_,r.bottom),r.top));let T=IH(e,_),C=XH(n,_);if(T==0&&C==0)return x.nodeType==3?WC(x,e,n):Px(x,e,n);(!i||o>C||o==C&&s>T)&&(i=x,r=_,s=T,o=C,l=T?e<_.left?k>0:k<S.length-1:!0),T==0?n>_.bottom&&(!d||d.bottom<_.bottom)?(c=x,d=_):n<_.top&&(!p||p.top>_.top)&&(h=x,p=_):d&&Cy(d,_)?d=GC(d,_.bottom):p&&Cy(p,_)&&(p=YC(p,_.top))}}if(d&&d.bottom>=n?(i=c,r=d):p&&p.top<=n&&(i=h,r=p),!i)return{node:t,offset:0};let g=Math.max(r.left,Math.min(r.right,e));if(i.nodeType==3)return WC(i,g,n);if(l&&i.contentEditable!="false")return Px(i,g,n);let O=Array.prototype.indexOf.call(t.childNodes,i)+(e>=(r.left+r.right)/2?1:0);return{node:t,offset:O}}function WC(t,e,n){let i=t.nodeValue.length,r=-1,s=1e9,o=0;for(let l=0;l<i;l++){let c=Oa(t,l,l+1).getClientRects();for(let h=0;h<c.length;h++){let d=c[h];if(d.top==d.bottom)continue;o||(o=e-d.left);let p=(d.top>n?d.top-n:n-d.bottom)-1;if(d.left-1<=e&&d.right+1>=e&&p<s){let g=e>=(d.left+d.right)/2,O=g;if(be.chrome||be.gecko){let x=Oa(t,l).getBoundingClientRect();Math.abs(x.left-d.right)<.1&&(O=!g)}if(p<=0)return{node:t,offset:l+(O?1:0)};r=l+(O?1:0),s=p}}}return{node:t,offset:r>-1?r:o>0?t.nodeValue.length:0}}function A$(t,e,n,i=-1){var r,s;let o=t.contentDOM.getBoundingClientRect(),l=o.top+t.viewState.paddingTop,c,{docHeight:h}=t.viewState,{x:d,y:p}=e,g=p-l;if(g<0)return 0;if(g>h)return t.state.doc.length;for(let D=t.viewState.heightOracle.textHeight/2,j=!1;c=t.elementAtHeight(g),c.type!=Rn.Text;)for(;g=i>0?c.bottom+D:c.top-D,!(g>=0&&g<=h);){if(j)return n?null:0;j=!0,i=-i}p=l+g;let O=c.from;if(O<t.viewport.from)return t.viewport.from==0?0:n?null:HC(t,o,c,d,p);if(O>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:HC(t,o,c,d,p);let x=t.dom.ownerDocument,S=t.root.elementFromPoint?t.root:x,k=S.elementFromPoint(d,p);k&&!t.contentDOM.contains(k)&&(k=null),k||(d=Math.max(o.left+1,Math.min(o.right-1,d)),k=S.elementFromPoint(d,p),k&&!t.contentDOM.contains(k)&&(k=null));let _,T=-1;if(k&&((r=t.docView.nearest(k))===null||r===void 0?void 0:r.isEditable)!=!1){if(x.caretPositionFromPoint){let D=x.caretPositionFromPoint(d,p);D&&({offsetNode:_,offset:T}=D)}else if(x.caretRangeFromPoint){let D=x.caretRangeFromPoint(d,p);D&&({startContainer:_,startOffset:T}=D)}_&&(!t.contentDOM.contains(_)||be.safari&&VH(_,T,d)||be.chrome&&BH(_,T,d))&&(_=void 0),_&&(T=Math.min(Tr(_),T))}if(!_||!t.docView.dom.contains(_)){let D=zt.find(t.docView,O);if(!D)return g>c.top+c.height/2?c.to:c.from;({node:_,offset:T}=Px(D.dom,d,p))}let C=t.docView.nearest(_);if(!C)return null;if(C.isWidget&&((s=C.dom)===null||s===void 0?void 0:s.nodeType)==1){let D=C.dom.getBoundingClientRect();return e.y<D.top||e.y<=D.bottom&&e.x<=(D.left+D.right)/2?C.posAtStart:C.posAtEnd}else return C.localPosFromDOM(_,T)+C.posAtStart}function HC(t,e,n,i,r){let s=Math.round((i-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&n.height>t.defaultLineHeight*1.5){let l=t.viewState.heightOracle.textHeight,c=Math.floor((r-n.top-(t.defaultLineHeight-l)*.5)/l);s+=c*t.viewState.heightOracle.lineLength}let o=t.state.sliceDoc(n.from,n.to);return n.from+hx(o,s,t.state.tabSize)}function R$(t,e,n){let i,r=t;if(t.nodeType!=3||e!=(i=t.nodeValue.length))return!1;for(;;){let s=r.nextSibling;if(s){if(s.nodeName=="BR")break;return!1}else{let o=r.parentNode;if(!o||o.nodeName=="DIV")break;r=o}}return Oa(t,i-1,i).getBoundingClientRect().right>n}function VH(t,e,n){return R$(t,e,n)}function BH(t,e,n){if(e!=0)return R$(t,e,n);for(let r=t;;){let s=r.parentNode;if(!s||s.nodeType!=1||s.firstChild!=r)return!1;if(s.classList.contains("cm-line"))break;r=s}let i=t.nodeType==1?t.getBoundingClientRect():Oa(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-i.left>5}function Tx(t,e,n){let i=t.lineBlockAt(e);if(Array.isArray(i.type)){let r;for(let s of i.type){if(s.from>e)break;if(!(s.to<e)){if(s.from<e&&s.to>e)return s;(!r||s.type==Rn.Text&&(r.type!=s.type||(n<0?s.from<e:s.to>e)))&&(r=s)}}return r||i}return i}function ZH(t,e,n,i){let r=Tx(t,e.head,e.assoc||-1),s=!i||r.type!=Rn.Text||!(t.lineWrapping||r.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head);if(s){let o=t.dom.getBoundingClientRect(),l=t.textDirectionAt(r.from),c=t.posAtCoords({x:n==(l==_t.LTR)?o.right-1:o.left+1,y:(s.top+s.bottom)/2});if(c!=null)return se.cursor(c,n?-1:1)}return se.cursor(n?r.to:r.from,n?-1:1)}function FC(t,e,n,i){let r=t.state.doc.lineAt(e.head),s=t.bidiSpans(r),o=t.textDirectionAt(r.from);for(let l=e,c=null;;){let h=QH(r,s,o,l,n),d=m$;if(!h){if(r.number==(n?t.state.doc.lines:1))return l;d=`
243
+ `,r=t.state.doc.line(r.number+(n?1:-1)),s=t.bidiSpans(r),h=t.visualLineSide(r,!n)}if(c){if(!c(d))return l}else{if(!i)return h;c=i(d)}l=h}}function qH(t,e,n){let i=t.state.charCategorizer(e),r=i(n);return s=>{let o=i(s);return r==wt.Space&&(r=o),r==o}}function UH(t,e,n,i){let r=e.head,s=n?1:-1;if(r==(n?t.state.doc.length:0))return se.cursor(r,e.assoc);let o=e.goalColumn,l,c=t.contentDOM.getBoundingClientRect(),h=t.coordsAtPos(r,e.assoc||-1),d=t.documentTop;if(h)o==null&&(o=h.left-c.left),l=s<0?h.top:h.bottom;else{let O=t.viewState.lineBlockAt(r);o==null&&(o=Math.min(c.right-c.left,t.defaultCharacterWidth*(r-O.from))),l=(s<0?O.top:O.bottom)+d}let p=c.left+o,g=i??t.viewState.heightOracle.textHeight>>1;for(let O=0;;O+=10){let x=l+(g+O)*s,S=A$(t,{x:p,y:x},!1,s);if(x<c.top||x>c.bottom||(s<0?S<r:S>r)){let k=t.docView.coordsForChar(S),_=!k||x<k.top?-1:1;return se.cursor(S,_,void 0,o)}}}function Uu(t,e,n){for(;;){let i=0;for(let r of t)r.between(e-1,e+1,(s,o,l)=>{if(e>s&&e<o){let c=i||n||(e-s<o-e?-1:1);e=c<0?s:o,i=c}});if(!i)return e}}function L$(t,e){let n=null;for(let i=0;i<e.ranges.length;i++){let r=e.ranges[i],s=null;if(r.empty){let o=Uu(t,r.from,0);o!=r.from&&(s=se.cursor(o,-1))}else{let o=Uu(t,r.from,-1),l=Uu(t,r.to,1);(o!=r.from||l!=r.to)&&(s=se.range(r.from==r.anchor?o:l,r.from==r.head?o:l))}s&&(n||(n=e.ranges.slice()),n[i]=s)}return n?se.create(n,e.mainIndex):e}function Qy(t,e,n){let i=Uu(t.state.facet(Yh).map(r=>r(t)),n.from,e.head>n.from?-1:1);return i==n.from?n:se.cursor(i,i<n.from?1:-1)}const Qu="￿";class YH{constructor(e,n){this.points=e,this.text="",this.lineSeparator=n.facet(Ze.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Qu}readRange(e,n){if(!e)return this;let i=e.parentNode;for(let r=e;;){this.findPointBefore(i,r);let s=this.text.length;this.readNode(r);let o=r.nextSibling;if(o==n)break;let l=ht.get(r),c=ht.get(o);(l&&c?l.breakAfter:(l?l.breakAfter:om(r))||om(o)&&(r.nodeName!="BR"||r.cmIgnore)&&this.text.length>s)&&!WH(o,n)&&this.lineBreak(),r=o}return this.findPointBefore(i,n),this}readTextNode(e){let n=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,n.length));for(let i=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,o=1,l;if(this.lineSeparator?(s=n.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(l=r.exec(n))&&(s=l.index,o=l[0].length),this.append(n.slice(i,s<0?n.length:s)),s<0)break;if(this.lineBreak(),o>1)for(let c of this.points)c.node==e&&c.pos>this.text.length&&(c.pos-=o-1);i=s+o}}readNode(e){if(e.cmIgnore)return;let n=ht.get(e),i=n&&n.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let r=i.iter();!r.next().done;)r.lineBreak?this.lineBreak():this.append(r.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,n){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==n&&(i.pos=this.text.length)}findPointInside(e,n){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(GH(e,i.node,i.offset)?n:0))}}function GH(t,e,n){for(;;){if(!e||n<Tr(e))return!1;if(e==t)return!0;n=ga(e)+1,e=e.parentNode}}function WH(t,e){let n;for(;!(t==e||!t);t=t.nextSibling){let i=ht.get(t);if(!(i?.isWidget||t.cmIgnore))return!1;i&&(n||(n=[])).push(i)}if(n)for(let i of n){let r=i.overrideDOMText;if(r?.length)return!1}return!0}class KC{constructor(e,n){this.node=e,this.offset=n,this.pos=-1}}class HH{constructor(e,n,i,r){this.typeOver=r,this.bounds=null,this.text="",this.domChanged=n>-1;let{impreciseHead:s,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=e.docView.domBoundsAround(n,i,0))){let l=s||o?[]:KH(e),c=new YH(l,e.state);c.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=c.text,this.newSel=JH(l,this.bounds.from)}else{let l=e.observer.selectionRange,c=s&&s.node==l.focusNode&&s.offset==l.focusOffset||!yx(e.contentDOM,l.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(l.focusNode,l.focusOffset),h=o&&o.node==l.anchorNode&&o.offset==l.anchorOffset||!yx(e.contentDOM,l.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(l.anchorNode,l.anchorOffset),d=e.viewport;if((be.ios||be.chrome)&&e.state.selection.main.empty&&c!=h&&(d.from>0||d.to<e.state.doc.length)){let p=Math.min(c,h),g=Math.max(c,h),O=d.from-p,x=d.to-g;(O==0||O==1||p==0)&&(x==0||x==-1||g==e.state.doc.length)&&(c=0,h=e.state.doc.length)}e.inputState.composing>-1&&e.state.selection.ranges.length>1?this.newSel=e.state.selection.replaceRange(se.range(h,c)):this.newSel=se.single(h,c)}}}function $$(t,e){let n,{newSel:i}=e,r=t.state.selection.main,s=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:l}=e.bounds,c=r.from,h=null;(s===8||be.android&&e.text.length<l-o)&&(c=r.to,h="end");let d=M$(t.state.doc.sliceString(o,l,Qu),e.text,c-o,h);d&&(be.chrome&&s==13&&d.toB==d.from+2&&e.text.slice(d.from,d.toB)==Qu+Qu&&d.toB--,n={from:o+d.from,to:o+d.toA,insert:Fe.of(e.text.slice(d.from,d.toB).split(Qu))})}else i&&(!t.hasFocus&&t.state.facet(os)||i.main.eq(r))&&(i=null);if(!n&&!i)return!1;if(!n&&e.typeOver&&!r.empty&&i&&i.main.empty?n={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,r.to)}:(be.mac||be.android)&&n&&n.from==n.to&&n.from==r.head-1&&/^\. ?$/.test(n.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(i&&n.insert.length==2&&(i=se.single(i.main.anchor-1,i.main.head-1)),n={from:n.from,to:n.to,insert:Fe.of([n.insert.toString().replace("."," ")])}):n&&n.from>=r.from&&n.to<=r.to&&(n.from!=r.from||n.to!=r.to)&&r.to-r.from-(n.to-n.from)<=4?n={from:r.from,to:r.to,insert:t.state.doc.slice(r.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,r.to))}:t.state.doc.lineAt(r.from).to<r.to&&t.docView.lineHasWidget(r.to)&&t.inputState.insertingTextAt>Date.now()-50?n={from:r.from,to:r.to,insert:t.state.toText(t.inputState.insertingText)}:be.chrome&&n&&n.from==n.to&&n.from==r.head&&n.insert.toString()==`
244
+ `&&t.lineWrapping&&(i&&(i=se.single(i.main.anchor-1,i.main.head-1)),n={from:r.from,to:r.to,insert:Fe.of([" "])}),n)return p1(t,n,i,s);if(i&&!i.main.eq(r)){let o=!1,l="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(o=!0),l=t.inputState.lastSelectionOrigin,l=="select.pointer"&&(i=L$(t.state.facet(Yh).map(c=>c(t)),i))),t.dispatch({selection:i,scrollIntoView:o,userEvent:l}),!0}else return!1}function p1(t,e,n,i=-1){if(be.ios&&t.inputState.flushIOSKey(e))return!0;let r=t.state.selection.main;if(be.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&t.state.sliceDoc(e.from,r.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&$l(t.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>r.head)&&$l(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&e.insert.length==0&&$l(t.contentDOM,"Delete",46)))return!0;let s=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let o,l=()=>o||(o=FH(t,e,n));return t.state.facet(x$).some(c=>c(t,e.from,e.to,s,l))||t.dispatch(l()),!0}function FH(t,e,n){let i,r=t.state,s=r.selection.main,o=-1;if(e.from==e.to&&e.from<s.from||e.from>s.to){let c=e.from<s.from?-1:1,h=c<0?s.from:s.to,d=Uu(r.facet(Yh).map(p=>p(t)),h,c);e.from==d&&(o=d)}if(o>-1)i={changes:e,selection:se.cursor(e.from+e.insert.length,-1)};else if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let c=s.from<e.from?r.sliceDoc(s.from,e.from):"",h=s.to>e.to?r.sliceDoc(e.to,s.to):"";i=r.replaceSelection(t.state.toText(c+e.insert.sliceString(0,void 0,t.state.lineBreak)+h))}else{let c=r.changes(e),h=n&&n.main.to<=c.newLength?n.main:void 0;if(r.selection.ranges.length>1&&(t.inputState.composing>=0||t.inputState.compositionPendingChange)&&e.to<=s.to+10&&e.to>=s.to-10){let d=t.state.sliceDoc(e.from,e.to),p,g=n&&E$(t,n.main.head);if(g){let x=e.insert.length-(e.to-e.from);p={from:g.from,to:g.to-x}}else p=t.state.doc.lineAt(s.head);let O=s.to-e.to;i=r.changeByRange(x=>{if(x.from==s.from&&x.to==s.to)return{changes:c,range:h||x.map(c)};let S=x.to-O,k=S-d.length;if(t.state.sliceDoc(k,S)!=d||S>=p.from&&k<=p.to)return{range:x};let _=r.changes({from:k,to:S,insert:e.insert}),T=x.to-s.to;return{changes:_,range:h?se.range(Math.max(0,h.anchor+T),Math.max(0,h.head+T)):x.map(_)}})}else i={changes:c,selection:h&&r.selection.replaceRange(h)}}let l="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,l+=".compose",t.inputState.compositionFirstChange&&(l+=".start",t.inputState.compositionFirstChange=!1)),r.update(i,{userEvent:l,scrollIntoView:!0})}function M$(t,e,n,i){let r=Math.min(t.length,e.length),s=0;for(;s<r&&t.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==r&&t.length==e.length)return null;let o=t.length,l=e.length;for(;o>0&&l>0&&t.charCodeAt(o-1)==e.charCodeAt(l-1);)o--,l--;if(i=="end"){let c=Math.max(0,s-Math.min(o,l));n-=o+c-s}if(o<s&&t.length<e.length){let c=n<=s&&n>=o?s-n:0;s-=c,l=s+(l-o),o=s}else if(l<s){let c=n<=s&&n>=l?s-n:0;s-=c,o=s+(o-l),l=s}return{from:s,toA:o,toB:l}}function KH(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:s}=t.observer.selectionRange;return n&&(e.push(new KC(n,i)),(r!=n||s!=i)&&e.push(new KC(r,s))),e}function JH(t,e){if(t.length==0)return null;let n=t[0].pos,i=t.length==2?t[1].pos:n;return n>-1&&i>-1?se.single(n+e,i+e):null}class eF{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,be.safari&&e.contentDOM.addEventListener("input",()=>null),be.gecko&&gF(e.contentDOM.ownerDocument)}handleEvent(e){!lF(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,n){let i=this.handlers[e];if(i){for(let r of i.observers)r(this.view,n);for(let r of i.handlers){if(n.defaultPrevented)break;if(r(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=tF(e),i=this.handlers,r=this.view.contentDOM;for(let s in n)if(s!="scroll"){let o=!n[s].handlers.length,l=i[s];l&&o!=!l.handlers.length&&(r.removeEventListener(s,this.handleEvent),l=null),l||r.addEventListener(s,this.handleEvent,{passive:o})}for(let s in i)s!="scroll"&&!n[s]&&r.removeEventListener(s,this.handleEvent);this.handlers=n}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&j$.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),be.android&&be.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let n;return be.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((n=D$.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||nF.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=n||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let n=this.pendingIOSKey;return!n||n.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,$l(this.view.contentDOM,n.key,n.keyCode,n instanceof KeyboardEvent?n:void 0))}ignoreDuringComposition(e){return!/^key/.test(e.type)||e.synthetic?!1:this.composing>0?!0:be.safari&&!be.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function JC(t,e){return(n,i)=>{try{return e.call(t,i,n)}catch(r){Gn(n.state,r)}}}function tF(t){let e=Object.create(null);function n(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of t){let r=i.spec,s=r&&r.plugin.domEventHandlers,o=r&&r.plugin.domEventObservers;if(s)for(let l in s){let c=s[l];c&&n(l).handlers.push(JC(i.value,c))}if(o)for(let l in o){let c=o[l];c&&n(l).observers.push(JC(i.value,c))}}for(let i in tr)n(i).handlers.push(tr[i]);for(let i in Bi)n(i).observers.push(Bi[i]);return e}const D$=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],nF="dthko",j$=[16,17,18,20,91,92,224,225],Id=6;function Xd(t){return Math.max(0,t)*.7+8}function iF(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class rF{constructor(e,n,i,r){this.view=e,this.startEvent=n,this.style=i,this.mustSelect=r,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParents=fH(e.contentDOM),this.atoms=e.state.facet(Yh).map(o=>o(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(Ze.allowMultipleSelections)&&sF(e,n),this.dragging=aF(e,n)&&I$(n)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&iF(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let n=0,i=0,r=0,s=0,o=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:r,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:s,bottom:l}=this.scrollParents.y.getBoundingClientRect());let c=d1(this.view);e.clientX-c.left<=r+Id?n=-Xd(r-e.clientX):e.clientX+c.right>=o-Id&&(n=Xd(e.clientX-o)),e.clientY-c.top<=s+Id?i=-Xd(s-e.clientY):e.clientY+c.bottom>=l-Id&&(i=Xd(e.clientY-l)),this.setScrollSpeed(n,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:n}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),n&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=n,n=0),(e||n)&&this.view.win.scrollBy(e,n),this.dragging===!1&&this.select(this.lastEvent)}select(e){let{view:n}=this,i=L$(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!i.eq(n.state.selection,this.dragging===!1))&&this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(n=>n.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function sF(t,e){let n=t.state.facet(g$);return n.length?n[0](e):be.mac?e.metaKey:e.ctrlKey}function oF(t,e){let n=t.state.facet(O$);return n.length?n[0](e):be.mac?!e.altKey:!e.ctrlKey}function aF(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let i=gh(t.root);if(!i||i.rangeCount==0)return!0;let r=i.getRangeAt(0).getClientRects();for(let s=0;s<r.length;s++){let o=r[s];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function lF(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target,i;n!=t.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(i=ht.get(n))&&i.ignoreEvent(e))return!1;return!0}const tr=Object.create(null),Bi=Object.create(null),N$=be.ie&&be.ie_version<15||be.ios&&be.webkit_version<604;function cF(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),z$(t,n.value)},50)}function rg(t,e,n){for(let i of t.facet(e))n=i(n,t);return n}function z$(t,e){e=rg(t.state,u1,e);let{state:n}=t,i,r=1,s=n.toText(e),o=s.lines==n.selection.ranges.length;if(Cx!=null&&n.selection.ranges.every(c=>c.empty)&&Cx==s.toString()){let c=-1;i=n.changeByRange(h=>{let d=n.doc.lineAt(h.from);if(d.from==c)return{range:h};c=d.from;let p=n.toText((o?s.line(r++).text:e)+n.lineBreak);return{changes:{from:d.from,insert:p},range:se.cursor(h.from+p.length)}})}else o?i=n.changeByRange(c=>{let h=s.line(r++);return{changes:{from:c.from,to:c.to,insert:h.text},range:se.cursor(c.from+h.length)}}):i=n.replaceSelection(s);t.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}Bi.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};tr.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1);Bi.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};Bi.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};tr.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let i of t.state.facet(y$))if(n=i(t,e),n)break;if(!n&&e.button==0&&(n=fF(t,e)),n){let i=!t.hasFocus;t.inputState.startMouseSelection(new rF(t,e,n,i)),i&&t.observer.ignore(()=>{JL(t.contentDOM);let s=t.root.activeElement;s&&!s.contains(t.contentDOM)&&s.blur()});let r=t.inputState.mouseSelection;if(r)return r.start(e),r.dragging===!1}else t.inputState.setSelectionOrigin("select.pointer");return!1};function eQ(t,e,n,i){if(i==1)return se.cursor(e,n);if(i==2)return zH(t.state,e,n);{let r=zt.find(t.docView,e),s=t.state.doc.lineAt(r?r.posAtEnd:e),o=r?r.posAtStart:s.from,l=r?r.posAtEnd:s.to;return l<t.state.doc.length&&l==s.to&&l++,se.range(o,l)}}let tQ=(t,e,n)=>e>=n.top&&e<=n.bottom&&t>=n.left&&t<=n.right;function uF(t,e,n,i){let r=zt.find(t.docView,e);if(!r)return 1;let s=e-r.posAtStart;if(s==0)return 1;if(s==r.length)return-1;let o=r.coordsAt(s,-1);if(o&&tQ(n,i,o))return-1;let l=r.coordsAt(s,1);return l&&tQ(n,i,l)?1:o&&o.bottom>=i?-1:1}function nQ(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:uF(t,n,e.clientX,e.clientY)}}const hF=be.ie&&be.ie_version<=11;let iQ=null,rQ=0,sQ=0;function I$(t){if(!hF)return t.detail;let e=iQ,n=sQ;return iQ=t,sQ=Date.now(),rQ=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(rQ+1)%3:1}function fF(t,e){let n=nQ(t,e),i=I$(e),r=t.state.selection;return{update(s){s.docChanged&&(n.pos=s.changes.mapPos(n.pos),r=r.map(s.changes))},get(s,o,l){let c=nQ(t,s),h,d=eQ(t,c.pos,c.bias,i);if(n.pos!=c.pos&&!o){let p=eQ(t,n.pos,n.bias,i),g=Math.min(p.from,d.from),O=Math.max(p.to,d.to);d=g<d.from?se.range(g,O):se.range(O,g)}return o?r.replaceRange(r.main.extend(d.from,d.to)):l&&i==1&&r.ranges.length>1&&(h=dF(r,c.pos))?h:l?r.addRange(d):se.create([d])}}}function dF(t,e){for(let n=0;n<t.ranges.length;n++){let{from:i,to:r}=t.ranges[n];if(i<=e&&r>=e)return se.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}tr.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let r=t.docView.nearest(e.target);if(r&&r.isWidget){let s=r.posAtStart,o=s+r.length;(s>=n.to||o<=n.from)&&(n=se.range(s,o))}}let{inputState:i}=t;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",rg(t.state,h1,t.state.sliceDoc(n.from,n.to))),e.dataTransfer.effectAllowed="copyMove"),!1};tr.dragend=t=>(t.inputState.draggedContent=null,!1);function oQ(t,e,n,i){if(n=rg(t.state,u1,n),!n)return;let r=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=t.inputState,o=i&&s&&oF(t,e)?{from:s.from,to:s.to}:null,l={from:r,insert:n},c=t.state.changes(o?[o,l]:l);t.focus(),t.dispatch({changes:c,selection:{anchor:c.mapPos(r,-1),head:c.mapPos(r,1)},userEvent:o?"move.drop":"input.drop"}),t.inputState.draggedContent=null}tr.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let i=Array(n.length),r=0,s=()=>{++r==n.length&&oQ(t,e,i.filter(o=>o!=null).join(t.state.lineBreak),!1)};for(let o=0;o<n.length;o++){let l=new FileReader;l.onerror=s,l.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(i[o]=l.result),s()},l.readAsText(n[o])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return oQ(t,e,i,!0),!0}return!1};tr.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=N$?null:e.clipboardData;return n?(z$(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(cF(t),!1)};function pF(t,e){let n=t.dom.parentNode;if(!n)return;let i=n.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),t.focus()},50)}function mF(t){let e=[],n=[],i=!1;for(let r of t.selection.ranges)r.empty||(e.push(t.sliceDoc(r.from,r.to)),n.push(r));if(!e.length){let r=-1;for(let{from:s}of t.selection.ranges){let o=t.doc.lineAt(s);o.number>r&&(e.push(o.text),n.push({from:o.from,to:Math.min(t.doc.length,o.to+1)})),r=o.number}i=!0}return{text:rg(t,h1,e.join(t.lineBreak)),ranges:n,linewise:i}}let Cx=null;tr.copy=tr.cut=(t,e)=>{let{text:n,ranges:i,linewise:r}=mF(t.state);if(!n&&!r)return!1;Cx=r?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let s=N$?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",n),!0):(pF(t,n),!1)};const X$=Rr.define();function V$(t,e){let n=[];for(let i of t.facet(v$)){let r=i(t,e);r&&n.push(r)}return n.length?t.update({effects:n,annotations:X$.of(!0)}):null}function B$(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=V$(t.state,e);n?t.dispatch(n):t.update([])}},10)}Bi.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),B$(t)};Bi.blur=t=>{t.observer.clearSelectionRange(),B$(t)};Bi.compositionstart=Bi.compositionupdate=t=>{t.observer.editContext||(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))};Bi.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,be.chrome&&be.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))};Bi.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};tr.beforeinput=(t,e)=>{var n,i;if((e.inputType=="insertText"||e.inputType=="insertCompositionText")&&(t.inputState.insertingText=e.data,t.inputState.insertingTextAt=Date.now()),e.inputType=="insertReplacementText"&&t.observer.editContext){let s=(n=e.dataTransfer)===null||n===void 0?void 0:n.getData("text/plain"),o=e.getTargetRanges();if(s&&o.length){let l=o[0],c=t.posAtDOM(l.startContainer,l.startOffset),h=t.posAtDOM(l.endContainer,l.endOffset);return p1(t,{from:c,to:h,insert:t.state.toText(s)},null),!0}}let r;if(be.chrome&&be.android&&(r=D$.find(s=>s.inputType==e.inputType))&&(t.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let s=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>s+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return be.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),be.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>Bi.compositionend(t,e),20),!1};const aQ=new Set;function gF(t){aQ.has(t)||(aQ.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const lQ=["pre-wrap","normal","pre-line","break-spaces"];let Wl=!1;function cQ(){Wl=!1}class OF{constructor(e){this.lineWrapping=e,this.doc=Fe.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,n){let i=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((n-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return lQ.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=!1;for(let i=0;i<e.length;i++){let r=e[i];r<0?i++:this.heightSamples[Math.floor(r*10)]||(n=!0,this.heightSamples[Math.floor(r*10)]=!0)}return n}refresh(e,n,i,r,s,o){let l=lQ.indexOf(e)>-1,c=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=n,this.charWidth=i,this.textHeight=r,this.lineLength=s,c){this.heightSamples={};for(let h=0;h<o.length;h++){let d=o[h];d<0?h++:this.heightSamples[Math.floor(d*10)]=!0}}return c}}class yF{constructor(e,n){this.from=e,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class vr{constructor(e,n,i,r,s){this.from=e,this.length=n,this.top=i,this.height=r,this._content=s}get type(){return typeof this._content=="number"?Rn.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof go?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new vr(this.from,this.length+e.length,this.top,this.height+e.height,n)}}var St=(function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t})(St||(St={}));const vp=.001;class Ln{constructor(e,n,i=2){this.length=e,this.height=n,this.flags=i}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>vp&&(Wl=!0),this.height=e)}replace(e,n,i){return Ln.of(i)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,i,r){let s=this,o=i.doc;for(let l=r.length-1;l>=0;l--){let{fromA:c,toA:h,fromB:d,toB:p}=r[l],g=s.lineAt(c,St.ByPosNoHeight,i.setDoc(n),0,0),O=g.to>=h?g:s.lineAt(h,St.ByPosNoHeight,i,0,0);for(p+=O.to-h,h=O.to;l>0&&g.from<=r[l-1].toA;)c=r[l-1].fromA,d=r[l-1].fromB,l--,c<g.from&&(g=s.lineAt(c,St.ByPosNoHeight,i,0,0));d+=g.from-c,c=g.from;let x=m1.build(i.setDoc(o),e,d,p);s=cm(s,s.replace(c,h,x))}return s.updateHeight(i,0)}static empty(){return new hi(0,0)}static of(e){if(e.length==1)return e[0];let n=0,i=e.length,r=0,s=0;for(;;)if(n==i)if(r>s*2){let l=e[n-1];l.break?e.splice(--n,1,l.left,null,l.right):e.splice(--n,1,l.left,l.right),i+=1+l.break,r-=l.size}else if(s>r*2){let l=e[i];l.break?e.splice(i,1,l.left,null,l.right):e.splice(i,1,l.left,l.right),i+=2+l.break,s-=l.size}else break;else if(r<s){let l=e[n++];l&&(r+=l.size)}else{let l=e[--i];l&&(s+=l.size)}let o=0;return e[n-1]==null?(o=1,n--):e[n]==null&&(o=1,i++),new bF(Ln.of(e.slice(0,n)),o,Ln.of(e.slice(i)))}}function cm(t,e){return t==e?t:(t.constructor!=e.constructor&&(Wl=!0),e)}Ln.prototype.size=1;class Z$ extends Ln{constructor(e,n,i){super(e,n),this.deco=i}blockAt(e,n,i,r){return new vr(r,this.length,i,this.height,this.deco||0)}lineAt(e,n,i,r,s){return this.blockAt(0,i,r,s)}forEachLine(e,n,i,r,s,o){e<=s+this.length&&n>=s&&o(this.blockAt(0,i,r,s))}updateHeight(e,n=0,i=!1,r){return r&&r.from<=n&&r.more&&this.setHeight(r.heights[r.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class hi extends Z${constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,n,i,r){return new vr(r,this.length,i,this.height,this.breaks)}replace(e,n,i){let r=i[0];return i.length==1&&(r instanceof hi||r instanceof ln&&r.flags&4)&&Math.abs(this.length-r.length)<10?(r instanceof ln?r=new hi(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):Ln.of(i)}updateHeight(e,n=0,i=!1,r){return r&&r.from<=n&&r.more?this.setHeight(r.heights[r.index++]):(i||this.outdated)&&this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ln extends Ln{constructor(e){super(e,0)}heightMetrics(e,n){let i=e.doc.lineAt(n).number,r=e.doc.lineAt(n+this.length).number,s=r-i+1,o,l=0;if(e.lineWrapping){let c=Math.min(this.height,e.lineHeight*s);o=c/s,this.length>s+1&&(l=(this.height-c)/(this.length-s-1))}else o=this.height/s;return{firstLine:i,lastLine:r,perLine:o,perChar:l}}blockAt(e,n,i,r){let{firstLine:s,lastLine:o,perLine:l,perChar:c}=this.heightMetrics(n,r);if(n.lineWrapping){let h=r+(e<n.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-i)/this.height))*this.length)),d=n.doc.lineAt(h),p=l+d.length*c,g=Math.max(i,e-p/2);return new vr(d.from,d.length,g,p,0)}else{let h=Math.max(0,Math.min(o-s,Math.floor((e-i)/l))),{from:d,length:p}=n.doc.line(s+h);return new vr(d,p,i+l*h,l,0)}}lineAt(e,n,i,r,s){if(n==St.ByHeight)return this.blockAt(e,i,r,s);if(n==St.ByPosNoHeight){let{from:O,to:x}=i.doc.lineAt(e);return new vr(O,x-O,0,0,0)}let{firstLine:o,perLine:l,perChar:c}=this.heightMetrics(i,s),h=i.doc.lineAt(e),d=l+h.length*c,p=h.number-o,g=r+l*p+c*(h.from-s-p);return new vr(h.from,h.length,Math.max(r,Math.min(g,r+this.height-d)),d,0)}forEachLine(e,n,i,r,s,o){e=Math.max(e,s),n=Math.min(n,s+this.length);let{firstLine:l,perLine:c,perChar:h}=this.heightMetrics(i,s);for(let d=e,p=r;d<=n;){let g=i.doc.lineAt(d);if(d==e){let x=g.number-l;p+=c*x+h*(e-s-x)}let O=c+h*g.length;o(new vr(g.from,g.length,p,O,0)),p+=O,d=g.to+1}}replace(e,n,i){let r=this.length-n;if(r>0){let s=i[i.length-1];s instanceof ln?i[i.length-1]=new ln(s.length+r):i.push(null,new ln(r-1))}if(e>0){let s=i[0];s instanceof ln?i[0]=new ln(e+s.length):i.unshift(new ln(e-1),null)}return Ln.of(i)}decomposeLeft(e,n){n.push(new ln(e-1),null)}decomposeRight(e,n){n.push(null,new ln(this.length-e-1))}updateHeight(e,n=0,i=!1,r){let s=n+this.length;if(r&&r.from<=n+this.length&&r.more){let o=[],l=Math.max(n,r.from),c=-1;for(r.from>n&&o.push(new ln(r.from-n-1).updateHeight(e,n));l<=s&&r.more;){let d=e.doc.lineAt(l).length;o.length&&o.push(null);let p=r.heights[r.index++];c==-1?c=p:Math.abs(p-c)>=vp&&(c=-2);let g=new hi(d,p);g.outdated=!1,o.push(g),l+=d+1}l<=s&&o.push(null,new ln(s-l).updateHeight(e,l));let h=Ln.of(o);return(c<0||Math.abs(h.height-this.height)>=vp||Math.abs(c-this.heightMetrics(e,n).perLine)>=vp)&&(Wl=!0),cm(this,h)}else(i||this.outdated)&&(this.setHeight(e.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class bF extends Ln{constructor(e,n,i){super(e.length+n+i.length,e.height+i.height,n|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,n,i,r){let s=i+this.left.height;return e<s?this.left.blockAt(e,n,i,r):this.right.blockAt(e,n,s,r+this.left.length+this.break)}lineAt(e,n,i,r,s){let o=r+this.left.height,l=s+this.left.length+this.break,c=n==St.ByHeight?e<o:e<l,h=c?this.left.lineAt(e,n,i,r,s):this.right.lineAt(e,n,i,o,l);if(this.break||(c?h.to<l:h.from>l))return h;let d=n==St.ByPosNoHeight?St.ByPosNoHeight:St.ByPos;return c?h.join(this.right.lineAt(l,d,i,o,l)):this.left.lineAt(l,d,i,r,s).join(h)}forEachLine(e,n,i,r,s,o){let l=r+this.left.height,c=s+this.left.length+this.break;if(this.break)e<c&&this.left.forEachLine(e,n,i,r,s,o),n>=c&&this.right.forEachLine(e,n,i,l,c,o);else{let h=this.lineAt(c,St.ByPos,i,r,s);e<h.from&&this.left.forEachLine(e,h.from-1,i,r,s,o),h.to>=e&&h.from<=n&&o(h),n>h.to&&this.right.forEachLine(h.to+1,n,i,l,c,o)}}replace(e,n,i){let r=this.left.length+this.break;if(n<r)return this.balanced(this.left.replace(e,n,i),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-r,n-r,i));let s=[];e>0&&this.decomposeLeft(e,s);let o=s.length;for(let l of i)s.push(l);if(e>0&&uQ(s,o-1),n<this.length){let l=s.length;this.decomposeRight(n,s),uQ(s,l)}return Ln.of(s)}decomposeLeft(e,n){let i=this.left.length;if(e<=i)return this.left.decomposeLeft(e,n);n.push(this.left),this.break&&(i++,e>=i&&n.push(null)),e>i&&this.right.decomposeLeft(e-i,n)}decomposeRight(e,n){let i=this.left.length,r=i+this.break;if(e>=r)return this.right.decomposeRight(e-r,n);e<i&&this.left.decomposeRight(e,n),this.break&&e<r&&n.push(null),n.push(this.right)}balanced(e,n){return e.size>2*n.size||n.size>2*e.size?Ln.of(this.break?[e,null,n]:[e,n]):(this.left=cm(this.left,e),this.right=cm(this.right,n),this.setHeight(e.height+n.height),this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,i=!1,r){let{left:s,right:o}=this,l=n+s.length+this.break,c=null;return r&&r.from<=n+s.length&&r.more?c=s=s.updateHeight(e,n,i,r):s.updateHeight(e,n,i),r&&r.from<=l+o.length&&r.more?c=o=o.updateHeight(e,l,i,r):o.updateHeight(e,l,i),c?this.balanced(s,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function uQ(t,e){let n,i;t[e]==null&&(n=t[e-1])instanceof ln&&(i=t[e+1])instanceof ln&&t.splice(e-1,3,new ln(n.length+1+i.length))}const xF=5;class m1{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let i=Math.min(n,this.lineEnd),r=this.nodes[this.nodes.length-1];r instanceof hi?r.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new hi(i-this.pos,-1)),this.writtenTo=i,n>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(e,n,i){if(e<n||i.heightRelevant){let r=i.widget?i.widget.estimatedHeight:0,s=i.widget?i.widget.lineBreaks:0;r<0&&(r=this.oracle.lineHeight);let o=n-e;i.block?this.addBlock(new Z$(o,r,i)):(o||s||r>=xF)&&this.addLineDeco(r,s,o)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new hi(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,n){let i=new ln(n-e);return this.oracle.doc.lineAt(e).to==n&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof hi)return e;let n=new hi(0,-1);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e)}addLineDeco(e,n,i){let r=this.ensureLine();r.length+=i,r.collapsed+=i,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=n,this.writtenTo=this.pos=this.pos+i}finish(e){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof hi)&&!this.isCovered?this.nodes.push(new hi(0,-1)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let i=e;for(let r of this.nodes)r instanceof hi&&r.updateHeight(this.oracle,i),i+=r?r.length:1;return this.nodes}static build(e,n,i,r){let s=new m1(i,e);return Je.spans(n,i,r,s,0),s.finish(i)}}function vF(t,e,n){let i=new SF;return Je.compare(t,e,n,i,0),i.changes}class SF{constructor(){this.changes=[]}compareRange(){}comparePoint(e,n,i,r){(e<n||i&&i.heightRelevant||r&&r.heightRelevant)&&xp(e,n,this.changes,5)}}function _F(t,e){let n=t.getBoundingClientRect(),i=t.ownerDocument,r=i.defaultView||window,s=Math.max(0,n.left),o=Math.min(r.innerWidth,n.right),l=Math.max(0,n.top),c=Math.min(r.innerHeight,n.bottom);for(let h=t.parentNode;h&&h!=i.body;)if(h.nodeType==1){let d=h,p=window.getComputedStyle(d);if((d.scrollHeight>d.clientHeight||d.scrollWidth>d.clientWidth)&&p.overflow!="visible"){let g=d.getBoundingClientRect();s=Math.max(s,g.left),o=Math.min(o,g.right),l=Math.max(l,g.top),c=Math.min(h==t.parentNode?r.innerHeight:c,g.bottom)}h=p.position=="absolute"||p.position=="fixed"?d.offsetParent:d.parentNode}else if(h.nodeType==11)h=h.host;else break;return{left:s-n.left,right:Math.max(s,o)-n.left,top:l-(n.top+e),bottom:Math.max(l,c)-(n.top+e)}}function kF(t){let e=t.getBoundingClientRect(),n=t.ownerDocument.defaultView||window;return e.left<n.innerWidth&&e.right>0&&e.top<n.innerHeight&&e.bottom>0}function wF(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class Ey{constructor(e,n,i,r){this.from=e,this.to=n,this.size=i,this.displaySize=r}static same(e,n){if(e.length!=n.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],s=n[i];if(r.from!=s.from||r.to!=s.to||r.size!=s.size)return!1}return!0}draw(e,n){return ve.replace({widget:new PF(this.displaySize*(n?e.scaleY:e.scaleX),n)}).range(this.from,this.to)}}class PF extends bi{constructor(e,n){super(),this.size=e,this.vertical=n}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class hQ{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=fQ,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=_t.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=e.facet(f1).some(i=>typeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new OF(n),this.stateDeco=e.facet(Oh).filter(i=>typeof i!="function"),this.heightMap=Ln.empty().applyChanges(this.stateDeco,Fe.empty,this.heightOracle.setDoc(e.doc),[new Ii(0,0,0,e.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=ve.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let i=0;i<=1;i++){let r=i?n.head:n.anchor;if(!e.some(({from:s,to:o})=>r>=s&&r<=o)){let{from:s,to:o}=this.lineBlockAt(r);e.push(new Vd(s,o))}}return this.viewports=e.sort((i,r)=>i.from-r.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?fQ:new g1(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(Eu(e,this.scaler))})}update(e,n=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=this.state.facet(Oh).filter(d=>typeof d!="function");let r=e.changedRanges,s=Ii.extendWithRanges(r,vF(i,this.stateDeco,e?e.changes:Yt.empty(this.state.doc.length))),o=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);cQ(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),(this.heightMap.height!=o||Wl)&&(e.flags|=2),l?(this.scrollAnchorPos=e.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let c=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.head<c.from||n.range.head>c.to)||!this.viewportIsAppropriate(c))&&(c=this.getViewport(0,n));let h=c.from!=this.viewport.from||c.to!=this.viewport.to;this.viewport=c,e.flags|=this.updateForViewport(),(h||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(_$)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let n=e.contentDOM,i=window.getComputedStyle(n),r=this.heightOracle,s=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?_t.RTL:_t.LTR;let o=this.heightOracle.mustRefreshForWrapping(s),l=n.getBoundingClientRect(),c=o||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let h=0,d=0;if(l.width&&l.height){let{scaleX:D,scaleY:j}=KL(n,l);(D>.005&&Math.abs(this.scaleX-D)>.005||j>.005&&Math.abs(this.scaleY-j)>.005)&&(this.scaleX=D,this.scaleY=j,h|=16,o=c=!0)}let p=(parseInt(i.paddingTop)||0)*this.scaleY,g=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=p||this.paddingBottom!=g)&&(this.paddingTop=p,this.paddingBottom=g,h|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(r.lineWrapping&&(c=!0),this.editorWidth=e.scrollDOM.clientWidth,h|=16);let O=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=O&&(this.scrollAnchorHeight=-1,this.scrollTop=O),this.scrolledToBottom=t$(e.scrollDOM);let x=(this.printing?wF:_F)(n,this.paddingTop),S=x.top-this.pixelViewport.top,k=x.bottom-this.pixelViewport.bottom;this.pixelViewport=x;let _=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(_!=this.inView&&(this.inView=_,_&&(c=!0)),!this.inView&&!this.scrollTarget&&!kF(e.dom))return 0;let T=l.width;if((this.contentDOMWidth!=T||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=e.scrollDOM.clientHeight,h|=16),c){let D=e.docView.measureVisibleLineHeights(this.viewport);if(r.mustRefreshForHeights(D)&&(o=!0),o||r.lineWrapping&&Math.abs(T-this.contentDOMWidth)>r.charWidth){let{lineHeight:j,charWidth:A,textHeight:M}=e.docView.measureTextSize();o=j>0&&r.refresh(s,j,A,M,Math.max(5,T/A),D),o&&(e.docView.minWidth=0,h|=16)}S>0&&k>0?d=Math.max(S,k):S<0&&k<0&&(d=Math.min(S,k)),cQ();for(let j of this.viewports){let A=j.from==this.viewport.from?D:e.docView.measureVisibleLineHeights(j);this.heightMap=(o?Ln.empty().applyChanges(this.stateDeco,Fe.empty,this.heightOracle,[new Ii(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(r,0,o,new yF(j.from,A))}Wl&&(h|=2)}let C=!this.viewportIsAppropriate(this.viewport,d)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return C&&(h&2&&(h|=this.updateScaler()),this.viewport=this.getViewport(d,this.scrollTarget),h|=this.updateForViewport()),(h&2||C)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),h|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),h}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,s=this.heightOracle,{visibleTop:o,visibleBottom:l}=this,c=new Vd(r.lineAt(o-i*1e3,St.ByHeight,s,0,0).from,r.lineAt(l+(1-i)*1e3,St.ByHeight,s,0,0).to);if(n){let{head:h}=n.range;if(h<c.from||h>c.to){let d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),p=r.lineAt(h,St.ByPos,s,0,0),g;n.y=="center"?g=(p.top+p.bottom)/2-d/2:n.y=="start"||n.y=="nearest"&&h<c.from?g=p.top:g=p.bottom-d,c=new Vd(r.lineAt(g-1e3/2,St.ByHeight,s,0,0).from,r.lineAt(g+d+1e3/2,St.ByHeight,s,0,0).to)}}return c}mapViewport(e,n){let i=n.mapPos(e.from,-1),r=n.mapPos(e.to,1);return new Vd(this.heightMap.lineAt(i,St.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(r,St.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:n},i=0){if(!this.inView)return!0;let{top:r}=this.heightMap.lineAt(e,St.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(n,St.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:l}=this;return(e==0||r<=o-Math.max(10,Math.min(-i,250)))&&(n==this.state.doc.length||s>=l+Math.max(10,Math.min(i,250)))&&r>o-2*1e3&&s<l+2*1e3}mapLineGaps(e,n){if(!e.length||n.empty)return e;let i=[];for(let r of e)n.touchesRange(r.from,r.to)||i.push(new Ey(n.mapPos(r.from),n.mapPos(r.to),r.size,r.displaySize));return i}ensureLineGaps(e,n){let i=this.heightOracle.lineWrapping,r=i?1e4:2e3,s=r>>1,o=r<<1;if(this.defaultTextDirection!=_t.LTR&&!i)return[];let l=[],c=(d,p,g,O)=>{if(p-d<s)return;let x=this.state.selection.main,S=[x.from];x.empty||S.push(x.to);for(let _ of S)if(_>d&&_<p){c(d,_-10,g,O),c(_+10,p,g,O);return}let k=CF(e,_=>_.from>=g.from&&_.to<=g.to&&Math.abs(_.from-d)<s&&Math.abs(_.to-p)<s&&!S.some(T=>_.from<T&&_.to>T));if(!k){if(p<g.to&&n&&i&&n.visibleRanges.some(C=>C.from<=p&&C.to>=p)){let C=n.moveToLineBoundary(se.cursor(p),!1,!0).head;C>d&&(p=C)}let _=this.gapSize(g,d,p,O),T=i||_<2e6?_:2e6;k=new Ey(d,p,_,T)}l.push(k)},h=d=>{if(d.length<o||d.type!=Rn.Text)return;let p=TF(d.from,d.to,this.stateDeco);if(p.total<o)return;let g=this.scrollTarget?this.scrollTarget.range.head:null,O,x;if(i){let S=r/this.heightOracle.lineLength*this.heightOracle.lineHeight,k,_;if(g!=null){let T=Zd(p,g),C=((this.visibleBottom-this.visibleTop)/2+S)/d.height;k=T-C,_=T+C}else k=(this.visibleTop-d.top-S)/d.height,_=(this.visibleBottom-d.top+S)/d.height;O=Bd(p,k),x=Bd(p,_)}else{let S=p.total*this.heightOracle.charWidth,k=r*this.heightOracle.charWidth,_=0;if(S>2e6)for(let A of e)A.from>=d.from&&A.from<d.to&&A.size!=A.displaySize&&A.from*this.heightOracle.charWidth+_<this.pixelViewport.left&&(_=A.size-A.displaySize);let T=this.pixelViewport.left+_,C=this.pixelViewport.right+_,D,j;if(g!=null){let A=Zd(p,g),M=((C-T)/2+k)/S;D=A-M,j=A+M}else D=(T-k)/S,j=(C+k)/S;O=Bd(p,D),x=Bd(p,j)}O>d.from&&c(d.from,O,d,p),x<d.to&&c(x,d.to,d,p)};for(let d of this.viewportLines)Array.isArray(d.type)?d.type.forEach(h):h(d);return l}gapSize(e,n,i,r){let s=Zd(r,i)-Zd(r,n);return this.heightOracle.lineWrapping?e.height*s:r.total*this.heightOracle.charWidth*s}updateLineGaps(e){Ey.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=ve.set(e.map(n=>n.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let n=this.stateDeco;this.lineGaps.length&&(n=n.concat(this.lineGapDeco));let i=[];Je.spans(n,this.viewport.from,this.viewport.to,{span(s,o){i.push({from:s,to:o})},point(){}},20);let r=0;if(i.length!=this.visibleRanges.length)r=12;else for(let s=0;s<i.length&&!(r&8);s++){let o=this.visibleRanges[s],l=i[s];(o.from!=l.from||o.to!=l.to)&&(r|=4,e&&e.mapPos(o.from,-1)==l.from&&e.mapPos(o.to,1)==l.to||(r|=8))}return this.visibleRanges=i,r}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||Eu(this.heightMap.lineAt(e,St.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=e&&n.bottom>=e)||Eu(this.heightMap.lineAt(this.scaler.fromDOM(e),St.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+8);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return Eu(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Vd{constructor(e,n){this.from=e,this.to=n}}function TF(t,e,n){let i=[],r=t,s=0;return Je.spans(n,t,e,{span(){},point(o,l){o>r&&(i.push({from:r,to:o}),s+=o-r),r=l}},20),r<e&&(i.push({from:r,to:e}),s+=e-r),{total:s,ranges:i}}function Bd({total:t,ranges:e},n){if(n<=0)return e[0].from;if(n>=1)return e[e.length-1].to;let i=Math.floor(t*n);for(let r=0;;r++){let{from:s,to:o}=e[r],l=o-s;if(i<=l)return s+i;i-=l}}function Zd(t,e){let n=0;for(let{from:i,to:r}of t.ranges){if(e<=r){n+=e-i;break}n+=r-i}return n/t.total}function CF(t,e){for(let n of t)if(e(n))return n}const fQ={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};class g1{constructor(e,n,i){let r=0,s=0,o=0;this.viewports=i.map(({from:l,to:c})=>{let h=n.lineAt(l,St.ByPos,e,0,0).top,d=n.lineAt(c,St.ByPos,e,0,0).bottom;return r+=d-h,{from:l,to:c,top:h,bottom:d,domTop:0,domBottom:0}}),this.scale=(7e6-r)/(n.height-r);for(let l of this.viewports)l.domTop=o+(l.top-s)*this.scale,o=l.domBottom=l.domTop+(l.bottom-l.top),s=l.bottom}toDOM(e){for(let n=0,i=0,r=0;;n++){let s=n<this.viewports.length?this.viewports[n]:null;if(!s||e<s.top)return r+(e-i)*this.scale;if(e<=s.bottom)return s.domTop+(e-s.top);i=s.bottom,r=s.domBottom}}fromDOM(e){for(let n=0,i=0,r=0;;n++){let s=n<this.viewports.length?this.viewports[n]:null;if(!s||e<s.domTop)return i+(e-r)/this.scale;if(e<=s.domBottom)return s.top+(e-s.domTop);i=s.bottom,r=s.domBottom}}eq(e){return e instanceof g1?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((n,i)=>n.from==e.viewports[i].from&&n.to==e.viewports[i].to):!1}}function Eu(t,e){if(e.scale==1)return t;let n=e.toDOM(t.top),i=e.toDOM(t.bottom);return new vr(t.from,t.length,n,i-n,Array.isArray(t._content)?t._content.map(r=>Eu(r,e)):t._content)}const qd=Se.define({combine:t=>t.join(" ")}),Qx=Se.define({combine:t=>t.indexOf(!0)>-1}),Ex=po.newName(),q$=po.newName(),U$=po.newName(),Y$={"&light":"."+q$,"&dark":"."+U$};function Ax(t,e,n){return new po(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,r=>{if(r=="&")return t;if(!n||!n[r])throw new RangeError(`Unsupported selector: ${r}`);return n[r]}):t+" "+i}})}const QF=Ax("."+Ex,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Y$),EF={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Ay=be.ie&&be.ie_version<=11;class AF{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new dH,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let i of n)this.queue.push(i);(be.ie&&be.ie_version<=11||be.ios&&e.composing)&&n.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&be.android&&e.constructor.EDIT_CONTEXT!==!1&&!(be.chrome&&be.chrome_version<126)&&(this.editContext=new LF(e),e.state.facet(os)&&(e.contentDOM.editContext=this.editContext.editContext)),Ay&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,i)=>n!=e[i]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,r=this.selectionRange;if(i.state.facet(os)?i.root.activeElement!=this.dom:!bp(this.dom,r))return;let s=r.anchorNode&&i.docView.nearest(r.anchorNode);if(s&&s.ignoreEvent(e)){n||(this.selectionChanged=!1);return}(be.ie&&be.ie_version<=11||be.android&&be.chrome)&&!i.state.selection.main.empty&&r.focusNode&&Zu(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=gh(e.root);if(!n)return!1;let i=be.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&RF(this.view,n)||n;if(!i||this.selectionRange.eq(i))return!1;let r=bp(this.dom,i);return r&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&mH(this.dom,i)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(i),r&&(this.selectionChanged=!0),!0)}setSelectionRange(e,n){this.selectionRange.set(e.node,e.offset,n.node,n.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,n=null;for(let i=this.dom;i;)if(i.nodeType==1)!n&&e<this.scrollTargets.length&&this.scrollTargets[e]==i?e++:n||(n=this.scrollTargets.slice(0,e)),n&&n.push(i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;if(e<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,e)),n){for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);for(let i of this.scrollTargets=n)i.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,EF),Ay&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Ay&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,n){var i;if(!this.delayedAndroidKey){let r=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&$l(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(r)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((i=this.delayedAndroidKey)===null||i===void 0)&&i.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,i=-1,r=!1;for(let s of e){let o=this.readMutation(s);o&&(o.typeOver&&(r=!0),n==-1?{from:n,to:i}=o:(n=Math.min(o.from,n),i=Math.max(o.to,i)))}return{from:n,to:i,typeOver:r}}readChange(){let{from:e,to:n,typeOver:i}=this.processRecords(),r=this.selectionChanged&&bp(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new HH(this.view,e,n,i);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let i=this.view.state,r=$$(this.view,n);return this.view.state==i&&(n.domChanged||n.newSel&&!n.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),r}readMutation(e){let n=this.view.docView.nearest(e.target);if(!n||n.ignoreMutation(e))return null;if(n.markDirty(e.type=="attributes"),e.type=="attributes"&&(n.flags|=4),e.type=="childList"){let i=dQ(n,e.previousSibling||e.target.previousSibling,-1),r=dQ(n,e.nextSibling||e.target.nextSibling,1);return{from:i?n.posAfter(i):n.posAtStart,to:r?n.posBefore(r):n.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(os)!=e.state.facet(os)&&(e.view.contentDOM.editContext=e.state.facet(os)?this.editContext.editContext:null))}destroy(){var e,n,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function dQ(t,e,n){for(;e;){let i=ht.get(e);if(i&&i.parent==t)return i;let r=e.parentNode;e=r!=t.dom?r:n>0?e.nextSibling:e.previousSibling}return null}function pQ(t,e){let n=e.startContainer,i=e.startOffset,r=e.endContainer,s=e.endOffset,o=t.docView.domAtPos(t.state.selection.main.anchor);return Zu(o.node,o.offset,r,s)&&([n,i,r,s]=[r,s,n,i]),{anchorNode:n,anchorOffset:i,focusNode:r,focusOffset:s}}function RF(t,e){if(e.getComposedRanges){let r=e.getComposedRanges(t.root)[0];if(r)return pQ(t,r)}let n=null;function i(r){r.preventDefault(),r.stopImmediatePropagation(),n=r.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",i,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",i,!0),n?pQ(t,n):null}class LF{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let n=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let r=e.state.selection.main,{anchor:s,head:o}=r,l=this.toEditorPos(i.updateRangeStart),c=this.toEditorPos(i.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:i.updateRangeStart,editorBase:l,drifted:!1});let h=c-l>i.text.length;l==this.from&&s<this.from?l=s:c==this.to&&s>this.to&&(c=s);let d=M$(e.state.sliceDoc(l,c),i.text,(h?r.from:r.to)-l,h?"end":null);if(!d){let g=se.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));g.main.eq(r)||e.dispatch({selection:g,userEvent:"select"});return}let p={from:d.from+l,to:d.toA+l,insert:Fe.of(i.text.slice(d.from,d.toB).split(`
245
+ `))};if((be.mac||be.android)&&p.from==o-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(p={from:l,to:c,insert:Fe.of([i.text.replace("."," ")])}),this.pendingContextChange=p,!e.state.readOnly){let g=this.to-this.from+(p.to-p.from+p.insert.length);p1(e,p,se.single(this.toEditorPos(i.selectionStart,g),this.toEditorPos(i.selectionEnd,g)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),p.from<p.to&&!p.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(n.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(n.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let r=[],s=null;for(let o=this.toEditorPos(i.rangeStart),l=this.toEditorPos(i.rangeEnd);o<l;o++){let c=e.coordsForChar(o);s=c&&new DOMRect(c.left,c.top,c.right-c.left,c.bottom-c.top)||s||new DOMRect,r.push(s)}n.updateCharacterBounds(i.rangeStart,r)},this.handlers.textformatupdate=i=>{let r=[];for(let s of i.getTextFormats()){let o=s.underlineStyle,l=s.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(l)){let c=this.toEditorPos(s.rangeStart),h=this.toEditorPos(s.rangeEnd);if(c<h){let d=`text-decoration: underline ${/^[a-z]/.test(o)?o+" ":o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${/thin/i.test(l)?1:2}px`;r.push(ve.mark({attributes:{style:d}}).range(c,h))}}}e.dispatch({effects:w$.of(ve.set(r))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)n.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let r=gh(i.root);r&&r.rangeCount&&this.editContext.updateSelectionBounds(r.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let n=0,i=!1,r=this.pendingContextChange;return e.changes.iterChanges((s,o,l,c,h)=>{if(i)return;let d=h.length-(o-s);if(r&&o>=r.to)if(r.from==s&&r.to==o&&r.insert.eq(h)){r=this.pendingContextChange=null,n+=d,this.to+=d;return}else r=null,this.revertPending(e.state);if(s+=n,o+=n,o<=this.from)this.from+=d,this.to+=d;else if(s<this.to){if(s<this.from||o>this.to||this.to-this.from+h.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(s),this.toContextPos(o),h.toString()),this.to+=d}n+=d}),r&&!i&&this.revertPending(e.state),!i}update(e){let n=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(r=>!r.isUserEvent("input.type")&&r.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||n)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:n}=e.selection.main;this.from=Math.max(0,n-1e4),this.to=Math.min(e.doc.length,n+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let n=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(n.from),this.toContextPos(n.from+n.insert.length),e.doc.sliceString(n.from,n.to))}setSelection(e){let{main:n}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,n.anchor))),r=this.toContextPos(n.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=r)&&this.editContext.updateSelection(i,r)}rangeIsValid(e){let{head:n}=e.selection.main;return!(this.from>0&&n-this.from<500||this.to<e.doc.length&&this.to-n<500||this.to-this.from>1e4*3)}toEditorPos(e,n=this.to-this.from){e=Math.min(e,n);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let n=this.composing;return n&&n.drifted?n.contextBase+(e-n.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class ge{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var n;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(r=>r.forEach(s=>i(s,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=e.root||pH(e.parent)||document,this.viewState=new hQ(e.state||Ze.create(e)),e.scrollTo&&e.scrollTo.is(zd)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(wl).map(r=>new Ty(r));for(let r of this.plugins)r.update(this);this.observer=new AF(this),this.inputState=new eF(this),this.inputState.ensureHandlers(this.plugins),this.docView=new UC(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((n=document.fonts)===null||n===void 0)&&n.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let n=e.length==1&&e[0]instanceof Xt?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,i=!1,r,s=this.state;for(let g of e){if(g.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=g.state}if(this.destroyed){this.viewState.state=s;return}let o=this.hasFocus,l=0,c=null;e.some(g=>g.annotation(X$))?(this.inputState.notifiedFocused=o,l=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,c=V$(s,o),c||(l=1));let h=this.observer.delayedAndroidKey,d=null;if(h?(this.observer.clearDelayedAndroidKey(),d=this.observer.readChange(),(d&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(d=null)):this.observer.clear(),s.facet(Ze.phrases)!=this.state.facet(Ze.phrases))return this.setState(s);r=lm.create(this,s,e),r.flags|=l;let p=this.viewState.scrollTarget;try{this.updateState=2;for(let g of e){if(p&&(p=p.map(g.changes)),g.scrollIntoView){let{main:O}=g.state.selection;p=new Ml(O.empty?O:se.cursor(O.head,O.head>O.anchor?-1:1))}for(let O of g.effects)O.is(zd)&&(p=O.value.clip(this.state))}this.viewState.update(r,p),this.bidiCache=um.update(this.bidiCache,r.changes),r.empty||(this.updatePlugins(r),this.inputState.update(r)),n=this.docView.update(r),this.state.facet(Cu)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(g=>g.isUserEvent("select.pointer")))}finally{this.updateState=0}if(r.startState.facet(qd)!=r.state.facet(qd)&&(this.viewState.mustMeasureContent=!0),(n||i||p||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!r.empty)for(let g of this.state.facet(wx))try{g(r)}catch(O){Gn(this.state,O,"update listener")}(c||d)&&Promise.resolve().then(()=>{c&&this.state==c.startState&&this.dispatch(c),d&&!$$(this,d)&&h.force&&$l(this.contentDOM,h.key,h.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let n=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new hQ(e),this.plugins=e.facet(wl).map(i=>new Ty(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new UC(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(e){let n=e.startState.facet(wl),i=e.state.facet(wl);if(n!=i){let r=[];for(let s of i){let o=n.indexOf(s);if(o<0)r.push(new Ty(s));else{let l=this.plugins[o];l.mustUpdate=e,r.push(l)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r<this.plugins.length;r++)this.plugins[r].update(this);n!=i&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let n=e.value;if(n&&n.docViewUpdate)try{n.docViewUpdate(this)}catch(i){Gn(this.state,i,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,i=this.scrollDOM,r=i.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(o<0)if(t$(i))s=-1,o=this.viewState.heightMap.height;else{let O=this.viewState.scrollAnchorAt(r);s=O.from,o=O.top}this.updateState=1;let c=this.viewState.measure(this);if(!c&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let h=[];c&4||([this.measureRequests,h]=[h,this.measureRequests]);let d=h.map(O=>{try{return O.read(this)}catch(x){return Gn(this.state,x),mQ}}),p=lm.create(this,this.state,[]),g=!1;p.flags|=c,n?n.flags|=c:n=p,this.updateState=2,p.empty||(this.updatePlugins(p),this.inputState.update(p),this.updateAttrs(),g=this.docView.update(p),g&&this.docViewUpdate());for(let O=0;O<h.length;O++)if(d[O]!=mQ)try{let x=h[O];x.write&&x.write(d[O],this)}catch(x){Gn(this.state,x)}if(g&&this.docView.updateSelection(!0),!p.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let x=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-o;if(x>1||x<-1){r=r+x,i.scrollTop=r/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let l of this.state.facet(wx))l(n)}get themeClasses(){return Ex+" "+(this.state.facet(Qx)?U$:q$)+" "+this.state.facet(qd)}updateAttrs(){let e=gQ(this,P$,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(os)?"true":"false",class:"cm-content",style:`${be.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),gQ(this,f1,n);let i=this.observer.ignore(()=>{let r=xx(this.contentDOM,this.contentAttrs,n),s=xx(this.dom,this.editorAttrs,e);return r||s});return this.editorAttrs=e,this.contentAttrs=n,i}showAnnouncements(e){let n=!0;for(let i of e)for(let r of i.effects)if(r.is(ge.announce)){n&&(this.announceDOM.textContent=""),n=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=r.value}}mountStyles(){this.styleModules=this.state.facet(Cu);let e=this.state.facet(ge.cspNonce);po.mount(this.root,this.styleModules.concat(QF).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===e.key){this.measureRequests[n]=e;return}}this.measureRequests.push(e)}}plugin(e){let n=this.pluginMap.get(e);return(n===void 0||n&&n.plugin!=e)&&this.pluginMap.set(e,n=this.plugins.find(i=>i.plugin==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,i){return Qy(this,e,FC(this,e,n,i))}moveByGroup(e,n){return Qy(this,e,FC(this,e,n,i=>qH(this,e.head,i)))}visualLineSide(e,n){let i=this.bidiSpans(e),r=this.textDirectionAt(e.from),s=i[n?i.length-1:0];return se.cursor(s.side(n,r)+e.from,s.forward(!n,r)?1:-1)}moveToLineBoundary(e,n,i=!0){return ZH(this,e,n,i)}moveVertically(e,n,i){return Qy(this,e,UH(this,e,n,i))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,n=0){return this.docView.posFromDOM(e,n)}posAtCoords(e,n=!0){return this.readMeasured(),A$(this,e,n)}coordsAtPos(e,n=1){this.readMeasured();let i=this.docView.coordsAt(e,n);if(!i||i.left==i.right)return i;let r=this.state.doc.lineAt(e),s=this.bidiSpans(r),o=s[no.find(s,e-r.from,-1,n)];return Zh(i,o.dir==_t.LTR==n>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(S$)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>$F)return p$(e.length);let n=this.textDirectionAt(e.from),i;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==n&&(s.fresh||d$(s.isolates,i=qC(this,e))))return s.order;i||(i=qC(this,e));let r=CH(e.text,n,i);return this.bidiCache.push(new um(e.from,e.to,n,i,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||be.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{JL(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,n={}){return zd.of(new Ml(typeof e=="number"?se.cursor(e):e,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:n}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return zd.of(new Ml(se.cursor(i.from),"start","start",i.top-e,n,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return Ct.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Ct.define(()=>({}),{eventObservers:e})}static theme(e,n){let i=po.newName(),r=[qd.of(i),Cu.of(Ax(`.${i}`,e))];return n&&n.dark&&r.push(Qx.of(!0)),r}static baseTheme(e){return xs.lowest(Cu.of(Ax("."+Ex,e,Y$)))}static findFromDOM(e){var n;let i=e.querySelector(".cm-content"),r=i&&ht.get(i)||ht.get(e);return((n=r?.rootView)===null||n===void 0?void 0:n.view)||null}}ge.styleModule=Cu;ge.inputHandler=x$;ge.clipboardInputFilter=u1;ge.clipboardOutputFilter=h1;ge.scrollHandler=k$;ge.focusChangeEffect=v$;ge.perLineTextDirection=S$;ge.exceptionSink=b$;ge.updateListener=wx;ge.editable=os;ge.mouseSelectionStyle=y$;ge.dragMovesSelection=O$;ge.clickAddsSelectionRange=g$;ge.decorations=Oh;ge.outerDecorations=T$;ge.atomicRanges=Yh;ge.bidiIsolatedRanges=C$;ge.scrollMargins=Q$;ge.darkTheme=Qx;ge.cspNonce=Se.define({combine:t=>t.length?t[0]:""});ge.contentAttributes=f1;ge.editorAttributes=P$;ge.lineWrapping=ge.contentAttributes.of({class:"cm-lineWrapping"});ge.announce=Me.define();const $F=4096,mQ={};class um{constructor(e,n,i,r,s,o){this.from=e,this.to=n,this.dir=i,this.isolates=r,this.fresh=s,this.order=o}static update(e,n){if(n.empty&&!e.some(s=>s.fresh))return e;let i=[],r=e.length?e[e.length-1].dir:_t.LTR;for(let s=Math.max(0,e.length-10);s<e.length;s++){let o=e[s];o.dir==r&&!n.touchesRange(o.from,o.to)&&i.push(new um(n.mapPos(o.from,1),n.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return i}}function gQ(t,e,n){for(let i=t.state.facet(e),r=i.length-1;r>=0;r--){let s=i[r],o=typeof s=="function"?s(t):s;o&&bx(o,n)}return n}const MF=be.mac?"mac":be.windows?"win":be.linux?"linux":"key";function DF(t,e){const n=t.split(/-(?!$)/);let i=n[n.length-1];i=="Space"&&(i=" ");let r,s,o,l;for(let c=0;c<n.length-1;++c){const h=n[c];if(/^(cmd|meta|m)$/i.test(h))l=!0;else if(/^a(lt)?$/i.test(h))r=!0;else if(/^(c|ctrl|control)$/i.test(h))s=!0;else if(/^s(hift)?$/i.test(h))o=!0;else if(/^mod$/i.test(h))e=="mac"?l=!0:s=!0;else throw new Error("Unrecognized modifier name: "+h)}return r&&(i="Alt-"+i),s&&(i="Ctrl-"+i),l&&(i="Meta-"+i),o&&(i="Shift-"+i),i}function Ud(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n!==!1&&e.shiftKey&&(t="Shift-"+t),t}const jF=xs.default(ge.domEventHandlers({keydown(t,e){return W$(G$(e.state),t,e,"editor")}})),wa=Se.define({enables:jF}),OQ=new WeakMap;function G$(t){let e=t.facet(wa),n=OQ.get(e);return n||OQ.set(e,n=IF(e.reduce((i,r)=>i.concat(r),[]))),n}function NF(t,e,n){return W$(G$(t.state),e,t,n)}let Js=null;const zF=4e3;function IF(t,e=MF){let n=Object.create(null),i=Object.create(null),r=(o,l)=>{let c=i[o];if(c==null)i[o]=l;else if(c!=l)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},s=(o,l,c,h,d)=>{var p,g;let O=n[o]||(n[o]=Object.create(null)),x=l.split(/ (?!$)/).map(_=>DF(_,e));for(let _=1;_<x.length;_++){let T=x.slice(0,_).join(" ");r(T,!0),O[T]||(O[T]={preventDefault:!0,stopPropagation:!1,run:[C=>{let D=Js={view:C,prefix:T,scope:o};return setTimeout(()=>{Js==D&&(Js=null)},zF),!0}]})}let S=x.join(" ");r(S,!1);let k=O[S]||(O[S]={preventDefault:!1,stopPropagation:!1,run:((g=(p=O._any)===null||p===void 0?void 0:p.run)===null||g===void 0?void 0:g.slice())||[]});c&&k.run.push(c),h&&(k.preventDefault=!0),d&&(k.stopPropagation=!0)};for(let o of t){let l=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let h of l){let d=n[h]||(n[h]=Object.create(null));d._any||(d._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:p}=o;for(let g in d)d[g].run.push(O=>p(O,Rx))}let c=o[e]||o.key;if(c)for(let h of l)s(h,c,o.run,o.preventDefault,o.stopPropagation),o.shift&&s(h,"Shift-"+c,o.shift,o.preventDefault,o.stopPropagation)}return n}let Rx=null;function W$(t,e,n,i){Rx=e;let r=lH(e),s=Un(r,0),o=xr(s)==r.length&&r!=" ",l="",c=!1,h=!1,d=!1;Js&&Js.view==n&&Js.scope==i&&(l=Js.prefix+" ",j$.indexOf(e.keyCode)<0&&(h=!0,Js=null));let p=new Set,g=k=>{if(k){for(let _ of k.run)if(!p.has(_)&&(p.add(_),_(n)))return k.stopPropagation&&(d=!0),!0;k.preventDefault&&(k.stopPropagation&&(d=!0),h=!0)}return!1},O=t[i],x,S;return O&&(g(O[l+Ud(r,e,!o)])?c=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(be.windows&&e.ctrlKey&&e.altKey)&&!(be.mac&&e.altKey&&!(e.ctrlKey||e.metaKey))&&(x=mo[e.keyCode])&&x!=r?(g(O[l+Ud(x,e,!0)])||e.shiftKey&&(S=mh[e.keyCode])!=r&&S!=x&&g(O[l+Ud(S,e,!1)]))&&(c=!0):o&&e.shiftKey&&g(O[l+Ud(r,e,!0)])&&(c=!0),!c&&g(O._any)&&(c=!0)),h&&(c=!0),c&&d&&e.stopPropagation(),Rx=null,c}class Gh{constructor(e,n,i,r,s){this.className=e,this.left=n,this.top=i,this.width=r,this.height=s}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,n){return n.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,n,i){if(i.empty){let r=e.coordsAtPos(i.head,i.assoc||1);if(!r)return[];let s=H$(e);return[new Gh(n,r.left-s.left,r.top-s.top,null,r.bottom-r.top)]}else return XF(e,n,i)}}function H$(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==_t.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function yQ(t,e,n,i){let r=t.coordsAtPos(e,n*2);if(!r)return i;let s=t.dom.getBoundingClientRect(),o=(r.top+r.bottom)/2,l=t.posAtCoords({x:s.left+1,y:o}),c=t.posAtCoords({x:s.right-1,y:o});return l==null||c==null?i:{from:Math.max(i.from,Math.min(l,c)),to:Math.min(i.to,Math.max(l,c))}}function XF(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let i=Math.max(n.from,t.viewport.from),r=Math.min(n.to,t.viewport.to),s=t.textDirection==_t.LTR,o=t.contentDOM,l=o.getBoundingClientRect(),c=H$(t),h=o.querySelector(".cm-line"),d=h&&window.getComputedStyle(h),p=l.left+(d?parseInt(d.paddingLeft)+Math.min(0,parseInt(d.textIndent)):0),g=l.right-(d?parseInt(d.paddingRight):0),O=Tx(t,i,1),x=Tx(t,r,-1),S=O.type==Rn.Text?O:null,k=x.type==Rn.Text?x:null;if(S&&(t.lineWrapping||O.widgetLineBreaks)&&(S=yQ(t,i,1,S)),k&&(t.lineWrapping||x.widgetLineBreaks)&&(k=yQ(t,r,-1,k)),S&&k&&S.from==k.from&&S.to==k.to)return T(C(n.from,n.to,S));{let j=S?C(n.from,null,S):D(O,!1),A=k?C(null,n.to,k):D(x,!0),M=[];return(S||O).to<(k||x).from-(S&&k?1:0)||O.widgetLineBreaks>1&&j.bottom+t.defaultLineHeight/2<A.top?M.push(_(p,j.bottom,g,A.top)):j.bottom<A.top&&t.elementAtHeight((j.bottom+A.top)/2).type==Rn.Text&&(j.bottom=A.top=(j.bottom+A.top)/2),T(j).concat(M).concat(T(A))}function _(j,A,M,I){return new Gh(e,j-c.left,A-c.top,M-j,I-A)}function T({top:j,bottom:A,horizontal:M}){let I=[];for(let B=0;B<M.length;B+=2)I.push(_(M[B],j,M[B+1],A));return I}function C(j,A,M){let I=1e9,B=-1e9,$=[];function U(F,Y,Z,J,ce){let Oe=t.coordsAtPos(F,F==M.to?-2:2),L=t.coordsAtPos(Z,Z==M.from?2:-2);!Oe||!L||(I=Math.min(Oe.top,L.top,I),B=Math.max(Oe.bottom,L.bottom,B),ce==_t.LTR?$.push(s&&Y?p:Oe.left,s&&J?g:L.right):$.push(!s&&J?p:L.left,!s&&Y?g:Oe.right))}let H=j??M.from,oe=A??M.to;for(let F of t.visibleRanges)if(F.to>H&&F.from<oe)for(let Y=Math.max(F.from,H),Z=Math.min(F.to,oe);;){let J=t.state.doc.lineAt(Y);for(let ce of t.bidiSpans(J)){let Oe=ce.from+J.from,L=ce.to+J.from;if(Oe>=Z)break;L>Y&&U(Math.max(Oe,Y),j==null&&Oe<=H,Math.min(L,Z),A==null&&L>=oe,ce.dir)}if(Y=J.to+1,Y>=Z)break}return $.length==0&&U(H,j==null,oe,A==null,t.textDirection),{top:I,bottom:B,horizontal:$}}function D(j,A){let M=l.top+(A?j.top:j.bottom);return{top:M,bottom:M,horizontal:[]}}}function VF(t,e){return t.constructor==e.constructor&&t.eq(e)}class BF{constructor(e,n){this.view=e,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,e)}update(e){e.startState.facet(Sp)!=e.state.facet(Sp)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let n=0,i=e.facet(Sp);for(;n<i.length&&i[n]!=this.layer;)n++;this.dom.style.zIndex=String((this.layer.above?150:-1)-n)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:n}=this.view;(e!=this.scaleX||n!=this.scaleY)&&(this.scaleX=e,this.scaleY=n,this.dom.style.transform=`scale(${1/e}, ${1/n})`)}draw(e){if(e.length!=this.drawn.length||e.some((n,i)=>!VF(n,this.drawn[i]))){let n=this.dom.firstChild,i=0;for(let r of e)r.update&&n&&r.constructor&&this.drawn[i].constructor&&r.update(n,this.drawn[i])?(n=n.nextSibling,i++):this.dom.insertBefore(r.draw(),n);for(;n;){let r=n.nextSibling;n.remove(),n=r}this.drawn=e,be.safari&&be.safari_version>=26&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Sp=Se.define();function F$(t){return[Ct.define(e=>new BF(e,t)),Sp.of(t)]}const yh=Se.define({combine(t){return Lr(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,n)=>Math.min(e,n),drawRangeCursor:(e,n)=>e||n})}});function ZF(t={}){return[yh.of(t),qF,UF,YF,_$.of(!0)]}function K$(t){return t.startState.facet(yh)!=t.state.facet(yh)}const qF=F$({above:!0,markers(t){let{state:e}=t,n=e.facet(yh),i=[];for(let r of e.selection.ranges){let s=r==e.selection.main;if(r.empty||n.drawRangeCursor){let o=s?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",l=r.empty?r:se.cursor(r.head,r.head>r.anchor?-1:1);for(let c of Gh.forRange(t,o,l))i.push(c)}}return i},update(t,e){t.transactions.some(i=>i.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=K$(t);return n&&bQ(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){bQ(e.state,t)},class:"cm-cursorLayer"});function bQ(t,e){e.style.animationDuration=t.facet(yh).cursorBlinkRate+"ms"}const UF=F$({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:Gh.forRange(t,"cm-selectionBackground",e)).reduce((e,n)=>e.concat(n))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||K$(t)},class:"cm-selectionLayer"}),YF=xs.highest(ge.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}})),J$=Me.define({map(t,e){return t==null?null:e.mapPos(t)}}),Au=tn.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((n,i)=>i.is(J$)?i.value:n,t)}}),GF=Ct.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(Au);n==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(Au)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(Au),n=e!=null&&t.coordsAtPos(e);if(!n)return null;let i=t.scrollDOM.getBoundingClientRect();return{left:n.left-i.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-i.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(Au)!=t&&this.view.dispatch({effects:J$.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function WF(){return[Au,GF]}function xQ(t,e,n,i,r){e.lastIndex=0;for(let s=t.iterRange(n,i),o=n,l;!s.next().done;o+=s.value.length)if(!s.lineBreak)for(;l=e.exec(s.value);)r(o+l.index,l)}function HF(t,e){let n=t.visibleRanges;if(n.length==1&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let i=[];for(let{from:r,to:s}of n)r=Math.max(t.state.doc.lineAt(r).from,r-e),s=Math.min(t.state.doc.lineAt(s).to,s+e),i.length&&i[i.length-1].to>=r?i[i.length-1].to=s:i.push({from:r,to:s});return i}class FF{constructor(e){const{regexp:n,decoration:i,decorate:r,boundary:s,maxLength:o=1e3}=e;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,r)this.addMatch=(l,c,h,d)=>r(d,h,h+l[0].length,l,c);else if(typeof i=="function")this.addMatch=(l,c,h,d)=>{let p=i(l,c,h);p&&d(h,h+l[0].length,p)};else if(i)this.addMatch=(l,c,h,d)=>d(h,h+l[0].length,i);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=s,this.maxLength=o}createDeco(e){let n=new ds,i=n.add.bind(n);for(let{from:r,to:s}of HF(e,this.maxLength))xQ(e.state.doc,this.regexp,r,s,(o,l)=>this.addMatch(l,e,o,i));return n.finish()}updateDeco(e,n){let i=1e9,r=-1;return e.docChanged&&e.changes.iterChanges((s,o,l,c)=>{c>=e.view.viewport.from&&l<=e.view.viewport.to&&(i=Math.min(l,i),r=Math.max(c,r))}),e.viewportMoved||r-i>1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,n.map(e.changes),i,r):n}updateRange(e,n,i,r){for(let s of e.visibleRanges){let o=Math.max(s.from,i),l=Math.min(s.to,r);if(l>=o){let c=e.state.doc.lineAt(o),h=c.to<l?e.state.doc.lineAt(l):c,d=Math.max(s.from,c.from),p=Math.min(s.to,h.to);if(this.boundary){for(;o>c.from;o--)if(this.boundary.test(c.text[o-1-c.from])){d=o;break}for(;l<h.to;l++)if(this.boundary.test(h.text[l-h.from])){p=l;break}}let g=[],O,x=(S,k,_)=>g.push(_.range(S,k));if(c==h)for(this.regexp.lastIndex=d-c.from;(O=this.regexp.exec(c.text))&&O.index<p-c.from;)this.addMatch(O,e,O.index+c.from,x);else xQ(e.state.doc,this.regexp,d,p,(S,k)=>this.addMatch(k,e,S,x));n=n.update({filterFrom:d,filterTo:p,filter:(S,k)=>S<d||k>p,add:g})}}return n}}const Lx=/x/.unicode!=null?"gu":"g",KF=new RegExp(`[\0-\b
246
+ --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,Lx),JF={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Ry=null;function eK(){var t;if(Ry==null&&typeof document<"u"&&document.body){let e=document.body.style;Ry=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return Ry||!1}const _p=Se.define({combine(t){let e=Lr(t,{render:null,specialChars:KF,addSpecialChars:null});return(e.replaceTabs=!eK())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,Lx)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Lx)),e}});function tK(t={}){return[_p.of(t),nK()]}let vQ=null;function nK(){return vQ||(vQ=Ct.fromClass(class{constructor(t){this.view=t,this.decorations=ve.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(_p)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new FF({regexp:t.specialChars,decoration:(e,n,i)=>{let{doc:r}=n.state,s=Un(e[0],0);if(s==9){let o=r.lineAt(i),l=n.state.tabSize,c=Ji(o.text,l,i-o.from);return ve.replace({widget:new oK((l-c%l)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[s]||(this.decorationCache[s]=ve.replace({widget:new sK(t,s)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(_p);t.startState.facet(_p)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const iK="•";function rK(t){return t>=32?iK:t==10?"␤":String.fromCharCode(9216+t)}class sK extends bi{constructor(e,n){super(),this.options=e,this.code=n}eq(e){return e.code==this.code}toDOM(e){let n=rK(this.code),i=e.state.phrase("Control character")+" "+(JF[this.code]||"0x"+this.code.toString(16)),r=this.options.render&&this.options.render(this.code,i,n);if(r)return r;let s=document.createElement("span");return s.textContent=n,s.title=i,s.setAttribute("aria-label",i),s.className="cm-specialChar",s}ignoreEvent(){return!1}}class oK extends bi{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function aK(){return cK}const lK=ve.line({class:"cm-activeLine"}),cK=Ct.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let i of t.state.selection.ranges){let r=t.lineBlockAt(i.head);r.from>e&&(n.push(lK.range(r.from)),e=r.from)}return ve.set(n)}},{decorations:t=>t.decorations});class uK extends bi{constructor(e){super(),this.content=e}toDOM(e){let n=document.createElement("span");return n.className="cm-placeholder",n.style.pointerEvents="none",n.appendChild(typeof this.content=="string"?document.createTextNode(this.content):typeof this.content=="function"?this.content(e):this.content.cloneNode(!0)),n.setAttribute("aria-hidden","true"),n}coordsAt(e){let n=e.firstChild?Ul(e.firstChild):[];if(!n.length)return null;let i=window.getComputedStyle(e.parentNode),r=Zh(n[0],i.direction!="rtl"),s=parseInt(i.lineHeight);return r.bottom-r.top>s*1.5?{left:r.left,right:r.right,top:r.top,bottom:r.top+s}:r}ignoreEvent(){return!1}}function hK(t){let e=Ct.fromClass(class{constructor(n){this.view=n,this.placeholder=t?ve.set([ve.widget({widget:new uK(t),side:1}).range(0)]):ve.none}get decorations(){return this.view.state.doc.length?ve.none:this.placeholder}},{decorations:n=>n.decorations});return typeof t=="string"?[e,ge.contentAttributes.of({"aria-placeholder":t})]:e}const $x=2e3;function fK(t,e,n){let i=Math.min(e.line,n.line),r=Math.max(e.line,n.line),s=[];if(e.off>$x||n.off>$x||e.col<0||n.col<0){let o=Math.min(e.off,n.off),l=Math.max(e.off,n.off);for(let c=i;c<=r;c++){let h=t.doc.line(c);h.length<=l&&s.push(se.range(h.from+o,h.to+l))}}else{let o=Math.min(e.col,n.col),l=Math.max(e.col,n.col);for(let c=i;c<=r;c++){let h=t.doc.line(c),d=hx(h.text,o,t.tabSize,!0);if(d<0)s.push(se.cursor(h.to));else{let p=hx(h.text,l,t.tabSize);s.push(se.range(h.from+d,h.from+p))}}}return s}function dK(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}function SQ(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),i=t.state.doc.lineAt(n),r=n-i.from,s=r>$x?-1:r==i.length?dK(t,e.clientX):Ji(i.text,t.state.tabSize,n-i.from);return{line:i.number,col:s,off:r}}function pK(t,e){let n=SQ(t,e),i=t.state.selection;return n?{update(r){if(r.docChanged){let s=r.changes.mapPos(r.startState.doc.line(n.line).from),o=r.state.doc.lineAt(s);n={line:o.number,col:n.col,off:Math.min(n.off,o.length)},i=i.map(r.changes)}},get(r,s,o){let l=SQ(t,r);if(!l)return i;let c=fK(t.state,n,l);return c.length?o?se.create(c.concat(i.ranges)):se.create(c):i}}:null}function mK(t){let e=(n=>n.altKey&&n.button==0);return ge.mouseSelectionStyle.of((n,i)=>e(i)?pK(n,i):null)}const gK={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},OK={style:"cursor: crosshair"};function yK(t={}){let[e,n]=gK[t.key||"Alt"],i=Ct.fromClass(class{constructor(r){this.view=r,this.isDown=!1}set(r){this.isDown!=r&&(this.isDown=r,this.view.update([]))}},{eventObservers:{keydown(r){this.set(r.keyCode==e||n(r))},keyup(r){(r.keyCode==e||!n(r))&&this.set(!1)},mousemove(r){this.set(n(r))}}});return[i,ge.contentAttributes.of(r=>{var s;return!((s=r.plugin(i))===null||s===void 0)&&s.isDown?OK:null})]}const Yd="-10000px";class eM{constructor(e,n,i,r){this.facet=n,this.createTooltipView=i,this.removeTooltipView=r,this.input=e.state.facet(n),this.tooltips=this.input.filter(o=>o);let s=null;this.tooltipViews=this.tooltips.map(o=>s=i(o,s))}update(e,n){var i;let r=e.state.facet(this.facet),s=r.filter(c=>c);if(r===this.input){for(let c of this.tooltipViews)c.update&&c.update(e);return!1}let o=[],l=n?[]:null;for(let c=0;c<s.length;c++){let h=s[c],d=-1;if(h){for(let p=0;p<this.tooltips.length;p++){let g=this.tooltips[p];g&&g.create==h.create&&(d=p)}if(d<0)o[c]=this.createTooltipView(h,c?o[c-1]:null),l&&(l[c]=!!h.above);else{let p=o[c]=this.tooltipViews[d];l&&(l[c]=n[d]),p.update&&p.update(e)}}}for(let c of this.tooltipViews)o.indexOf(c)<0&&(this.removeTooltipView(c),(i=c.destroy)===null||i===void 0||i.call(c));return n&&(l.forEach((c,h)=>n[h]=c),n.length=l.length),this.input=r,this.tooltips=s,this.tooltipViews=o,!0}}function bK(t){let e=t.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}const Ly=Se.define({combine:t=>{var e,n,i;return{position:be.ios?"absolute":((e=t.find(r=>r.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((n=t.find(r=>r.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((i=t.find(r=>r.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||bK}}}),_Q=new WeakMap,O1=Ct.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(Ly);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new eM(t,y1,(n,i)=>this.createTooltip(n,i),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,i=t.state.facet(Ly);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let r of this.manager.tooltipViews)r.dom.style.position=this.position;n=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let r of this.manager.tooltipViews)this.container.appendChild(r.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t,e){let n=t.create(this.view),i=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let r=document.createElement("div");r.className="cm-tooltip-arrow",n.dom.appendChild(r)}return n.dom.style.position=this.position,n.dom.style.top=Yd,n.dom.style.left="0px",this.container.insertBefore(n.dom,i),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var t,e,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(t=i.destroy)===null||t===void 0||t.call(i);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=1,e=1,n=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:s}=this.manager.tooltipViews[0];if(be.safari){let o=s.getBoundingClientRect();n=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}else n=!!s.offsetParent&&s.offsetParent!=this.container.ownerDocument.body}if(n||this.position=="absolute")if(this.parent){let s=this.parent.getBoundingClientRect();s.width&&s.height&&(t=s.width/this.parent.offsetWidth,e=s.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:e}=this.view.viewState);let i=this.view.scrollDOM.getBoundingClientRect(),r=d1(this.view);return{visible:{left:i.left+r.left,top:i.top+r.top,right:i.right-r.right,bottom:i.bottom-r.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((s,o)=>{let l=this.manager.tooltipViews[o];return l.getCoords?l.getCoords(s.pos):this.view.coordsAtPos(s.pos)}),size:this.manager.tooltipViews.map(({dom:s})=>s.getBoundingClientRect()),space:this.view.state.facet(Ly).tooltipSpace(this.view),scaleX:t,scaleY:e,makeAbsolute:n}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{visible:n,space:i,scaleX:r,scaleY:s}=t,o=[];for(let l=0;l<this.manager.tooltips.length;l++){let c=this.manager.tooltips[l],h=this.manager.tooltipViews[l],{dom:d}=h,p=t.pos[l],g=t.size[l];if(!p||c.clip!==!1&&(p.bottom<=Math.max(n.top,i.top)||p.top>=Math.min(n.bottom,i.bottom)||p.right<Math.max(n.left,i.left)-.1||p.left>Math.min(n.right,i.right)+.1)){d.style.top=Yd;continue}let O=c.arrow?h.dom.querySelector(".cm-tooltip-arrow"):null,x=O?7:0,S=g.right-g.left,k=(e=_Q.get(h))!==null&&e!==void 0?e:g.bottom-g.top,_=h.offset||vK,T=this.view.textDirection==_t.LTR,C=g.width>i.right-i.left?T?i.left:i.right-g.width:T?Math.max(i.left,Math.min(p.left-(O?14:0)+_.x,i.right-S)):Math.min(Math.max(i.left,p.left-S+(O?14:0)-_.x),i.right-S),D=this.above[l];!c.strictSide&&(D?p.top-k-x-_.y<i.top:p.bottom+k+x+_.y>i.bottom)&&D==i.bottom-p.bottom>p.top-i.top&&(D=this.above[l]=!D);let j=(D?p.top-i.top:i.bottom-p.bottom)-x;if(j<k&&h.resize!==!1){if(j<this.view.defaultLineHeight){d.style.top=Yd;continue}_Q.set(h,k),d.style.height=(k=j)/s+"px"}else d.style.height&&(d.style.height="");let A=D?p.top-k-x-_.y:p.bottom+x+_.y,M=C+S;if(h.overlap!==!0)for(let I of o)I.left<M&&I.right>C&&I.top<A+k&&I.bottom>A&&(A=D?I.top-k-2-x:I.bottom+x+2);if(this.position=="absolute"?(d.style.top=(A-t.parent.top)/s+"px",kQ(d,(C-t.parent.left)/r)):(d.style.top=A/s+"px",kQ(d,C/r)),O){let I=p.left+(T?_.x:-_.x)-(C+14-7);O.style.left=I/r+"px"}h.overlap!==!0&&o.push({left:C,top:A,right:M,bottom:A+k}),d.classList.toggle("cm-tooltip-above",D),d.classList.toggle("cm-tooltip-below",!D),h.positioned&&h.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=Yd}},{eventObservers:{scroll(){this.maybeMeasure()}}});function kQ(t,e){let n=parseInt(t.style.left,10);(isNaN(n)||Math.abs(e-n)>1)&&(t.style.left=e+"px")}const xK=ge.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:"14px",position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),vK={x:0,y:0},y1=Se.define({enables:[O1,xK]}),hm=Se.define({combine:t=>t.reduce((e,n)=>e.concat(n),[])});class sg{static create(e){return new sg(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new eM(e,hm,(n,i)=>this.createHostedView(n,i),n=>n.dom.remove())}createHostedView(e,n){let i=e.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(i.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&i.mount&&i.mount(this.view),i}mount(e){for(let n of this.manager.tooltipViews)n.mount&&n.mount(e);this.mounted=!0}positioned(e){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let n of this.manager.tooltipViews)(e=n.destroy)===null||e===void 0||e.call(n)}passProp(e){let n;for(let i of this.manager.tooltipViews){let r=i[e];if(r!==void 0){if(n===void 0)n=r;else if(n!==r)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const SK=y1.compute([hm],t=>{let e=t.facet(hm);return e.length===0?null:{pos:Math.min(...e.map(n=>n.pos)),end:Math.max(...e.map(n=>{var i;return(i=n.end)!==null&&i!==void 0?i:n.pos})),create:sg.create,above:e[0].above,arrow:e.some(n=>n.arrow)}});class _K{constructor(e,n,i,r,s){this.view=e,this.source=n,this.field=i,this.setHover=r,this.hoverTime=s,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:n}=this,i=e.docView.nearest(n.target);if(!i)return;let r,s=1;if(i instanceof as)r=i.posAtStart;else{if(r=e.posAtCoords(n),r==null)return;let l=e.coordsAtPos(r);if(!l||n.y<l.top||n.y>l.bottom||n.x<l.left-e.defaultCharacterWidth||n.x>l.right+e.defaultCharacterWidth)return;let c=e.bidiSpans(e.state.doc.lineAt(r)).find(d=>d.from<=r&&d.to>=r),h=c&&c.dir==_t.RTL?-1:1;s=n.x<l.left?-h:h}let o=this.source(e,r,s);if(o?.then){let l=this.pending={pos:r};o.then(c=>{this.pending==l&&(this.pending=null,c&&!(Array.isArray(c)&&!c.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(c)?c:[c])}))},c=>Gn(e.state,c,"hover tooltip"))}else o&&!(Array.isArray(o)&&!o.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])})}get tooltip(){let e=this.view.plugin(O1),n=e?e.manager.tooltips.findIndex(i=>i.create==sg.create):-1;return n>-1?e.manager.tooltipViews[n]:null}mousemove(e){var n,i;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:s}=this;if(r.length&&s&&!kK(s.dom,e)||this.pending){let{pos:o}=r[0]||this.pending,l=(i=(n=r[0])===null||n===void 0?void 0:n.end)!==null&&i!==void 0?i:o;(o==l?this.view.posAtCoords(this.lastMove)!=o:!wK(this.view,o,l,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:i}=this;i&&i.dom.contains(e.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let n=i=>{e.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Gd=4;function kK(t,e){let{left:n,right:i,top:r,bottom:s}=t.getBoundingClientRect(),o;if(o=t.querySelector(".cm-tooltip-arrow")){let l=o.getBoundingClientRect();r=Math.min(l.top,r),s=Math.max(l.bottom,s)}return e.clientX>=n-Gd&&e.clientX<=i+Gd&&e.clientY>=r-Gd&&e.clientY<=s+Gd}function wK(t,e,n,i,r,s){let o=t.scrollDOM.getBoundingClientRect(),l=t.documentTop+t.documentPadding.top+t.contentHeight;if(o.left>i||o.right<i||o.top>r||Math.min(o.bottom,l)<r)return!1;let c=t.posAtCoords({x:i,y:r},!1);return c>=e&&c<=n}function PK(t,e={}){let n=Me.define(),i=tn.define({create(){return[]},update(r,s){if(r.length&&(e.hideOnChange&&(s.docChanged||s.selection)?r=[]:e.hideOn&&(r=r.filter(o=>!e.hideOn(s,o))),s.docChanged)){let o=[];for(let l of r){let c=s.changes.mapPos(l.pos,-1,un.TrackDel);if(c!=null){let h=Object.assign(Object.create(null),l);h.pos=c,h.end!=null&&(h.end=s.changes.mapPos(h.end)),o.push(h)}}r=o}for(let o of s.effects)o.is(n)&&(r=o.value),o.is(TK)&&(r=[]);return r},provide:r=>hm.from(r)});return{active:i,extension:[i,Ct.define(r=>new _K(r,t,i,n,e.hoverTime||300)),SK]}}function tM(t,e){let n=t.plugin(O1);if(!n)return null;let i=n.manager.tooltips.indexOf(e);return i<0?null:n.manager.tooltipViews[i]}const TK=Me.define(),wQ=Se.define({combine(t){let e,n;for(let i of t)e=e||i.topContainer,n=n||i.bottomContainer;return{topContainer:e,bottomContainer:n}}});function bh(t,e){let n=t.plugin(nM),i=n?n.specs.indexOf(e):-1;return i>-1?n.panels[i]:null}const nM=Ct.fromClass(class{constructor(t){this.input=t.state.facet(xh),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(wQ);this.top=new Wd(t,!0,e.topContainer),this.bottom=new Wd(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(wQ);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Wd(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Wd(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(xh);if(n!=this.input){let i=n.filter(c=>c),r=[],s=[],o=[],l=[];for(let c of i){let h=this.specs.indexOf(c),d;h<0?(d=c(t.view),l.push(d)):(d=this.panels[h],d.update&&d.update(t)),r.push(d),(d.top?s:o).push(d)}this.specs=i,this.panels=r,this.top.sync(s),this.bottom.sync(o);for(let c of l)c.dom.classList.add("cm-panel"),c.mount&&c.mount()}else for(let i of this.panels)i.update&&i.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>ge.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Wd{constructor(e,n,i){this.view=e,this.top=n,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let n of this.panels)n.destroy&&e.indexOf(n)<0&&n.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let e=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;e!=n.dom;)e=PQ(e);e=e.nextSibling}else this.dom.insertBefore(n.dom,e);for(;e;)e=PQ(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function PQ(t){let e=t.nextSibling;return t.remove(),e}const xh=Se.define({enables:nM});class ms extends ma{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}ms.prototype.elementClass="";ms.prototype.toDOM=void 0;ms.prototype.mapMode=un.TrackBefore;ms.prototype.startSide=ms.prototype.endSide=-1;ms.prototype.point=!0;const kp=Se.define(),CK=Se.define(),QK={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Je.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{},side:"before"},Yu=Se.define();function EK(t){return[iM(),Yu.of({...QK,...t})]}const TQ=Se.define({combine:t=>t.some(e=>e)});function iM(t){return[AK]}const AK=Ct.fromClass(class{constructor(t){this.view=t,this.domAfter=null,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(Yu).map(e=>new QQ(t,e)),this.fixed=!t.state.facet(TQ);for(let e of this.gutters)e.config.side=="after"?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,i=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(i<(n.to-n.from)*.8)}if(t.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(TQ)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let n=Je.iter(this.view.state.facet(kp),this.view.viewport.from),i=[],r=this.gutters.map(s=>new RK(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(s.type)){let o=!0;for(let l of s.type)if(l.type==Rn.Text&&o){Mx(n,i,l.from);for(let c of r)c.line(this.view,l,i);o=!1}else if(l.widget)for(let c of r)c.widget(this.view,l)}else if(s.type==Rn.Text){Mx(n,i,s.from);for(let o of r)o.line(this.view,s,i)}else if(s.widget)for(let o of r)o.widget(this.view,s);for(let s of r)s.finish();t&&(this.view.scrollDOM.insertBefore(this.dom,e),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(t){let e=t.startState.facet(Yu),n=t.state.facet(Yu),i=t.docChanged||t.heightChanged||t.viewportChanged||!Je.eq(t.startState.facet(kp),t.state.facet(kp),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let r of this.gutters)r.update(t)&&(i=!0);else{i=!0;let r=[];for(let s of n){let o=e.indexOf(s);o<0?r.push(new QQ(this.view,s)):(this.gutters[o].update(t),r.push(this.gutters[o]))}for(let s of this.gutters)s.dom.remove(),r.indexOf(s)<0&&s.destroy();for(let s of r)s.config.side=="after"?this.getDOMAfter().appendChild(s.dom):this.dom.appendChild(s.dom);this.gutters=r}return i}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:t=>ge.scrollMargins.of(e=>{let n=e.plugin(t);if(!n||n.gutters.length==0||!n.fixed)return null;let i=n.dom.offsetWidth*e.scaleX,r=n.domAfter?n.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==_t.LTR?{left:i,right:r}:{right:i,left:r}})});function CQ(t){return Array.isArray(t)?t:[t]}function Mx(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class RK{constructor(e,n,i){this.gutter=e,this.height=i,this.i=0,this.cursor=Je.iter(e.markers,n.from)}addElement(e,n,i){let{gutter:r}=this,s=(n.top-this.height)/e.scaleY,o=n.height/e.scaleY;if(this.i==r.elements.length){let l=new rM(e,o,s,i);r.elements.push(l),r.dom.appendChild(l.dom)}else r.elements[this.i].update(e,o,s,i);this.height=n.bottom,this.i++}line(e,n,i){let r=[];Mx(this.cursor,r,n.from),i.length&&(r=r.concat(i));let s=this.gutter.config.lineMarker(e,n,r);s&&r.unshift(s);let o=this.gutter;r.length==0&&!o.config.renderEmptyElements||this.addElement(e,n,r)}widget(e,n){let i=this.gutter.config.widgetMarker(e,n.widget,n),r=i?[i]:null;for(let s of e.state.facet(CK)){let o=s(e,n.widget,n);o&&(r||(r=[])).push(o)}r&&this.addElement(e,n,r)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let n=e.elements.pop();e.dom.removeChild(n.dom),n.destroy()}}}class QQ{constructor(e,n){this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in n.domEventHandlers)this.dom.addEventListener(i,r=>{let s=r.target,o;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let c=s.getBoundingClientRect();o=(c.top+c.bottom)/2}else o=r.clientY;let l=e.lineBlockAtHeight(o-e.documentTop);n.domEventHandlers[i](e,l,r)&&r.preventDefault()});this.markers=CQ(n.markers(e)),n.initialSpacer&&(this.spacer=new rM(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let n=this.markers;if(this.markers=CQ(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let r=this.config.updateSpacer(this.spacer.markers[0],e);r!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[r])}let i=e.view.viewport;return!Je.eq(this.markers,n,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class rM{constructor(e,n,i,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,n,i,r)}update(e,n,i,r){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),LK(this.markers,r)||this.setMarkers(e,r)}setMarkers(e,n){let i="cm-gutterElement",r=this.dom.firstChild;for(let s=0,o=0;;){let l=o,c=s<n.length?n[s++]:null,h=!1;if(c){let d=c.elementClass;d&&(i+=" "+d);for(let p=o;p<this.markers.length;p++)if(this.markers[p].compare(c)){l=p,h=!0;break}}else l=this.markers.length;for(;o<l;){let d=this.markers[o++];if(d.toDOM){d.destroy(r);let p=r.nextSibling;r.remove(),r=p}}if(!c)break;c.toDOM&&(h?r=r.nextSibling:this.dom.insertBefore(c.toDOM(e),r)),h&&o++}this.dom.className=i,this.markers=n}destroy(){this.setMarkers(null,[])}}function LK(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].compare(e[n]))return!1;return!0}const $K=Se.define(),MK=Se.define(),Pl=Se.define({combine(t){return Lr(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,n){let i=Object.assign({},e);for(let r in n){let s=i[r],o=n[r];i[r]=s?(l,c,h)=>s(l,c,h)||o(l,c,h):o}return i}})}});class $y extends ms{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function My(t,e){return t.state.facet(Pl).formatNumber(e,t.state)}const DK=Yu.compute([Pl],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet($K)},lineMarker(e,n,i){return i.some(r=>r.toDOM)?null:new $y(My(e,e.state.doc.lineAt(n.from).number))},widgetMarker:(e,n,i)=>{for(let r of e.state.facet(MK)){let s=r(e,n,i);if(s)return s}return null},lineMarkerChange:e=>e.startState.facet(Pl)!=e.state.facet(Pl),initialSpacer(e){return new $y(My(e,EQ(e.state.doc.lines)))},updateSpacer(e,n){let i=My(n.view,EQ(n.view.state.doc.lines));return i==e.number?e:new $y(i)},domEventHandlers:t.facet(Pl).domEventHandlers,side:"before"}));function jK(t={}){return[Pl.of(t),iM(),DK]}function EQ(t){let e=9;for(;e<t;)e=e*10+9;return e}const NK=new class extends ms{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},zK=kp.compute(["selection"],t=>{let e=[],n=-1;for(let i of t.selection.ranges){let r=t.doc.lineAt(i.head).from;r>n&&(n=r,e.push(NK.range(r)))}return Je.of(e)});function IK(){return zK}let XK=0,yr=class Dx{constructor(e,n,i,r){this.name=e,this.set=n,this.base=i,this.modified=r,this.id=XK++}toString(){let{name:e}=this;for(let n of this.modified)n.name&&(e=`${n.name}(${e})`);return e}static define(e,n){let i=typeof e=="string"?e:"?";if(e instanceof Dx&&(n=e),n?.base)throw new Error("Can not derive from a modified tag");let r=new Dx(i,[],null,[]);if(r.set.push(r),n)for(let s of n.set)r.set.push(s);return r}static defineModifier(e){let n=new fm(e);return i=>i.modified.indexOf(n)>-1?i:fm.get(i.base||i,i.modified.concat(n).sort((r,s)=>r.id-s.id))}},VK=0;class fm{constructor(e){this.name=e,this.instances=[],this.id=VK++}static get(e,n){if(!n.length)return e;let i=n[0].instances.find(l=>l.base==e&&BK(n,l.modified));if(i)return i;let r=[],s=new yr(e.name,r,e,n);for(let l of n)l.instances.push(s);let o=ZK(n);for(let l of e.set)if(!l.modified.length)for(let c of o)r.push(fm.get(l,c));return s}}function BK(t,e){return t.length==e.length&&t.every((n,i)=>n==e[i])}function ZK(t){let e=[[]];for(let n=0;n<t.length;n++)for(let i=0,r=e.length;i<r;i++)e.push(e[i].concat(t[n]));return e.sort((n,i)=>i.length-n.length)}function vs(t){let e=Object.create(null);for(let n in t){let i=t[n];Array.isArray(i)||(i=[i]);for(let r of n.split(" "))if(r){let s=[],o=2,l=r;for(let p=0;;){if(l=="..."&&p>0&&p+3==r.length){o=1;break}let g=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!g)throw new RangeError("Invalid path: "+r);if(s.push(g[0]=="*"?"":g[0][0]=='"'?JSON.parse(g[0]):g[0]),p+=g[0].length,p==r.length)break;let O=r[p++];if(p==r.length&&O=="!"){o=0;break}if(O!="/")throw new RangeError("Invalid path: "+r);l=r.slice(p)}let c=s.length-1,h=s[c];if(!h)throw new RangeError("Invalid path: "+r);let d=new vh(i,o,c>0?s.slice(0,c):null);e[h]=d.sort(e[h])}}return sM.add(e)}const sM=new Le({combine(t,e){let n,i,r;for(;t||e;){if(!t||e&&t.depth>=e.depth?(r=e,e=e.next):(r=t,t=t.next),n&&n.mode==r.mode&&!r.context&&!n.context)continue;let s=new vh(r.tags,r.mode,r.context);n?n.next=s:i=s,n=s}return i}});class vh{constructor(e,n,i,r){this.tags=e,this.mode=n,this.context=i,this.next=r}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}vh.empty=new vh([],2,null);function oM(t,e){let n=Object.create(null);for(let s of t)if(!Array.isArray(s.tag))n[s.tag.id]=s.class;else for(let o of s.tag)n[o.id]=s.class;let{scope:i,all:r=null}=e||{};return{style:s=>{let o=r;for(let l of s)for(let c of l.set){let h=n[c.id];if(h){o=o?o+" "+h:h;break}}return o},scope:i}}function qK(t,e){let n=null;for(let i of t){let r=i.style(e);r&&(n=n?n+" "+r:r)}return n}function UK(t,e,n,i=0,r=t.length){let s=new YK(i,Array.isArray(e)?e:[e],n);s.highlightRange(t.cursor(),i,r,"",s.highlighters),s.flush(r)}class YK{constructor(e,n,i){this.at=e,this.highlighters=n,this.span=i,this.class=""}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,n,i,r,s){let{type:o,from:l,to:c}=e;if(l>=i||c<=n)return;o.isTop&&(s=this.highlighters.filter(O=>!O.scope||O.scope(o)));let h=r,d=GK(e)||vh.empty,p=qK(s,d.tags);if(p&&(h&&(h+=" "),h+=p,d.mode==1&&(r+=(r?" ":"")+p)),this.startSpan(Math.max(n,l),h),d.opaque)return;let g=e.tree&&e.tree.prop(Le.mounted);if(g&&g.overlay){let O=e.node.enter(g.overlay[0].from+l,1),x=this.highlighters.filter(k=>!k.scope||k.scope(g.tree.type)),S=e.firstChild();for(let k=0,_=l;;k++){let T=k<g.overlay.length?g.overlay[k]:null,C=T?T.from+l:c,D=Math.max(n,_),j=Math.min(i,C);if(D<j&&S)for(;e.from<j&&(this.highlightRange(e,D,j,r,s),this.startSpan(Math.min(j,e.to),h),!(e.to>=C||!e.nextSibling())););if(!T||C>i)break;_=T.to+l,_>n&&(this.highlightRange(O.cursor(),Math.max(n,T.from+l),Math.min(i,_),"",x),this.startSpan(Math.min(i,_),h))}S&&e.parent()}else if(e.firstChild()){g&&(r="");do if(!(e.to<=n)){if(e.from>=i)break;this.highlightRange(e,n,i,r,s),this.startSpan(Math.min(i,e.to),h)}while(e.nextSibling());e.parent()}}}function GK(t){let e=t.type.prop(sM);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const ye=yr.define,Hd=ye(),Hs=ye(),AQ=ye(Hs),RQ=ye(Hs),Fs=ye(),Fd=ye(Fs),Dy=ye(Fs),gr=ye(),Zo=ye(gr),fr=ye(),dr=ye(),jx=ye(),bu=ye(jx),Kd=ye(),E={comment:Hd,lineComment:ye(Hd),blockComment:ye(Hd),docComment:ye(Hd),name:Hs,variableName:ye(Hs),typeName:AQ,tagName:ye(AQ),propertyName:RQ,attributeName:ye(RQ),className:ye(Hs),labelName:ye(Hs),namespace:ye(Hs),macroName:ye(Hs),literal:Fs,string:Fd,docString:ye(Fd),character:ye(Fd),attributeValue:ye(Fd),number:Dy,integer:ye(Dy),float:ye(Dy),bool:ye(Fs),regexp:ye(Fs),escape:ye(Fs),color:ye(Fs),url:ye(Fs),keyword:fr,self:ye(fr),null:ye(fr),atom:ye(fr),unit:ye(fr),modifier:ye(fr),operatorKeyword:ye(fr),controlKeyword:ye(fr),definitionKeyword:ye(fr),moduleKeyword:ye(fr),operator:dr,derefOperator:ye(dr),arithmeticOperator:ye(dr),logicOperator:ye(dr),bitwiseOperator:ye(dr),compareOperator:ye(dr),updateOperator:ye(dr),definitionOperator:ye(dr),typeOperator:ye(dr),controlOperator:ye(dr),punctuation:jx,separator:ye(jx),bracket:bu,angleBracket:ye(bu),squareBracket:ye(bu),paren:ye(bu),brace:ye(bu),content:gr,heading:Zo,heading1:ye(Zo),heading2:ye(Zo),heading3:ye(Zo),heading4:ye(Zo),heading5:ye(Zo),heading6:ye(Zo),contentSeparator:ye(gr),list:ye(gr),quote:ye(gr),emphasis:ye(gr),strong:ye(gr),link:ye(gr),monospace:ye(gr),strikethrough:ye(gr),inserted:ye(),deleted:ye(),changed:ye(),invalid:ye(),meta:Kd,documentMeta:ye(Kd),annotation:ye(Kd),processingInstruction:ye(Kd),definition:yr.defineModifier("definition"),constant:yr.defineModifier("constant"),function:yr.defineModifier("function"),standard:yr.defineModifier("standard"),local:yr.defineModifier("local"),special:yr.defineModifier("special")};for(let t in E){let e=E[t];e instanceof yr&&(e.name=t)}oM([{tag:E.link,class:"tok-link"},{tag:E.heading,class:"tok-heading"},{tag:E.emphasis,class:"tok-emphasis"},{tag:E.strong,class:"tok-strong"},{tag:E.keyword,class:"tok-keyword"},{tag:E.atom,class:"tok-atom"},{tag:E.bool,class:"tok-bool"},{tag:E.url,class:"tok-url"},{tag:E.labelName,class:"tok-labelName"},{tag:E.inserted,class:"tok-inserted"},{tag:E.deleted,class:"tok-deleted"},{tag:E.literal,class:"tok-literal"},{tag:E.string,class:"tok-string"},{tag:E.number,class:"tok-number"},{tag:[E.regexp,E.escape,E.special(E.string)],class:"tok-string2"},{tag:E.variableName,class:"tok-variableName"},{tag:E.local(E.variableName),class:"tok-variableName tok-local"},{tag:E.definition(E.variableName),class:"tok-variableName tok-definition"},{tag:E.special(E.variableName),class:"tok-variableName2"},{tag:E.definition(E.propertyName),class:"tok-propertyName tok-definition"},{tag:E.typeName,class:"tok-typeName"},{tag:E.namespace,class:"tok-namespace"},{tag:E.className,class:"tok-className"},{tag:E.macroName,class:"tok-macroName"},{tag:E.propertyName,class:"tok-propertyName"},{tag:E.operator,class:"tok-operator"},{tag:E.comment,class:"tok-comment"},{tag:E.meta,class:"tok-meta"},{tag:E.invalid,class:"tok-invalid"},{tag:E.punctuation,class:"tok-punctuation"}]);var jy;const io=new Le;function og(t){return Se.define({combine:t?e=>e.concat(t):void 0})}const b1=new Le;class pi{constructor(e,n,i=[],r=""){this.data=e,this.name=r,Ze.prototype.hasOwnProperty("tree")||Object.defineProperty(Ze.prototype,"tree",{get(){return at(this)}}),this.parser=n,this.extension=[Oo.of(this),Ze.languageData.of((s,o,l)=>{let c=LQ(s,o,l),h=c.type.prop(io);if(!h)return[];let d=s.facet(h),p=c.type.prop(b1);if(p){let g=c.resolve(o-c.from,l);for(let O of p)if(O.test(g,s)){let x=s.facet(O.facet);return O.type=="replace"?x:x.concat(d)}}return d})].concat(i)}isActiveAt(e,n,i=-1){return LQ(e,n,i).type.prop(io)==this.data}findRegions(e){let n=e.facet(Oo);if(n?.data==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];let i=[],r=(s,o)=>{if(s.prop(io)==this.data){i.push({from:o,to:o+s.length});return}let l=s.prop(Le.mounted);if(l){if(l.tree.prop(io)==this.data){if(l.overlay)for(let c of l.overlay)i.push({from:c.from+o,to:c.to+o});else i.push({from:o,to:o+s.length});return}else if(l.overlay){let c=i.length;if(r(l.tree,l.overlay[0].from+o),i.length>c)return}}for(let c=0;c<s.children.length;c++){let h=s.children[c];h instanceof Ue&&r(h,s.positions[c]+o)}};return r(at(e),0),i}get allowsNesting(){return!0}}pi.setState=Me.define();function LQ(t,e,n){let i=t.facet(Oo),r=at(t).topNode;if(!i||i.allowsNesting)for(let s=r;s;s=s.enter(e,n,bt.ExcludeBuffers))s.type.isTop&&(r=s);return r}class gs extends pi{constructor(e,n,i){super(e,n,[],i),this.parser=n}static define(e){let n=og(e.languageData);return new gs(n,e.parser.configure({props:[io.add(i=>i.isTop?n:void 0)]}),e.name)}configure(e,n){return new gs(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function at(t){let e=t.field(pi.state,!1);return e?e.tree:Ue.empty}class WK{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,n){let i=this.cursorPos-this.string.length;return e<i||n>=this.cursorPos?this.doc.sliceString(e,n):this.string.slice(e-i,n-i)}}let xu=null;class ba{constructor(e,n,i=[],r,s,o,l,c){this.parser=e,this.state=n,this.fragments=i,this.tree=r,this.treeLen=s,this.viewport=o,this.skipped=l,this.scheduleOn=c,this.parse=null,this.tempSkipped=[]}static create(e,n,i){return new ba(e,n,[],Ue.empty,0,i,[],null)}startParse(){return this.parser.startParse(new WK(this.state.doc),this.fragments)}work(e,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=Ue.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let r=Date.now()+e;e=()=>Date.now()>r}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let r=this.parse.advance();if(r)if(this.fragments=this.withoutTempSkipped(cs.addTree(r,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(i=this.parse.stoppedAt)!==null&&i!==void 0?i:this.state.doc.length,this.tree=r,this.parse=null,this.treeLen<(n??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,n;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=e,this.tree=n,this.fragments=this.withoutTempSkipped(cs.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let n=xu;xu=this;try{return e()}finally{xu=n}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=$Q(e,n.from,n.to);return e}changes(e,n){let{fragments:i,tree:r,treeLen:s,viewport:o,skipped:l}=this;if(this.takeTree(),!e.empty){let c=[];if(e.iterChangedRanges((h,d,p,g)=>c.push({fromA:h,toA:d,fromB:p,toB:g})),i=cs.applyChanges(i,c),r=Ue.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){l=[];for(let h of this.skipped){let d=e.mapPos(h.from,1),p=e.mapPos(h.to,-1);d<p&&l.push({from:d,to:p})}}}return new ba(this.parser,n,i,r,s,o,l,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let n=this.skipped.length;for(let i=0;i<this.skipped.length;i++){let{from:r,to:s}=this.skipped[i];r<e.to&&s>e.from&&(this.fragments=$Q(this.fragments,r,s),this.skipped.splice(i--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,n){this.skipped.push({from:e,to:n})}static getSkippingParser(e){return new class extends tg{createParse(n,i,r){let s=r[0].from,o=r[r.length-1].to;return{parsedPos:s,advance(){let c=xu;if(c){for(let h of r)c.tempSkipped.push(h);e&&(c.scheduleOn=c.scheduleOn?Promise.all([c.scheduleOn,e]):e)}return this.parsedPos=o,new Ue(Bt.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let n=this.fragments;return this.treeLen>=e&&n.length&&n[0].from==0&&n[0].to>=e}static get(){return xu}}function $Q(t,e,n){return cs.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class Hl{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,i)||n.takeTree(),new Hl(n)}static init(e){let n=Math.min(3e3,e.doc.length),i=ba.create(e.facet(Oo).parser,e,{from:0,to:n});return i.work(20,n)||i.takeTree(),new Hl(i)}}pi.state=tn.define({create:Hl.init,update(t,e){for(let n of e.effects)if(n.is(pi.setState))return n.value;return e.startState.facet(Oo)!=e.state.facet(Oo)?Hl.init(e.state):t.apply(e)}});let aM=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(aM=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const Ny=typeof navigator<"u"&&(!((jy=navigator.scheduling)===null||jy===void 0)&&jy.isInputPending)?()=>navigator.scheduling.isInputPending():null,HK=Ct.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let n=this.view.state.field(pi.state).context;(n.updateViewport(e.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:e}=this.view,n=e.field(pi.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=aM(this.work))}work(e){this.working=null;let n=Date.now();if(this.chunkEnd<n&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=n+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:i,viewport:{to:r}}=this.view,s=i.field(pi.state);if(s.tree==s.context.tree&&s.context.isDone(r+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!Ny?Math.max(25,e.timeRemaining()-5):1e9),l=s.context.treeLen<r&&i.doc.length>r+1e3,c=s.context.work(()=>Ny&&Ny()||Date.now()>o,r+(l?0:1e5));this.chunkBudget-=Date.now()-n,(c||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:pi.setState.of(new Hl(s.context))})),this.chunkBudget>0&&!(c&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>Gn(this.view.state,n)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Oo=Se.define({combine(t){return t.length?t[0]:null},enables:t=>[pi.state,HK,ge.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class Cr{constructor(e,n=[]){this.language=e,this.support=n,this.extension=[e,n]}}class ee{constructor(e,n,i,r,s,o=void 0){this.name=e,this.alias=n,this.extensions=i,this.filename=r,this.loadFunc=s,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(e=>this.support=e,e=>{throw this.loading=null,e}))}static of(e){let{load:n,support:i}=e;if(!n){if(!i)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");n=()=>Promise.resolve(i)}return new ee(e.name,(e.alias||[]).concat(e.name).map(r=>r.toLowerCase()),e.extensions||[],e.filename,n,i)}static matchFilename(e,n){for(let r of e)if(r.filename&&r.filename.test(n))return r;let i=/\.([^.]+)$/.exec(n);if(i){for(let r of e)if(r.extensions.indexOf(i[1])>-1)return r}return null}static matchLanguageName(e,n,i=!0){n=n.toLowerCase();for(let r of e)if(r.alias.some(s=>s==n))return r;if(i)for(let r of e)for(let s of r.alias){let o=n.indexOf(s);if(o>-1&&(s.length>2||!/\w/.test(n[o-1])&&!/\w/.test(n[o+s.length])))return r}return null}}const FK=Se.define(),fc=Se.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(n=>n!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function xa(t){let e=t.facet(fc);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function Sh(t,e){let n="",i=t.tabSize,r=t.facet(fc)[0];if(r==" "){for(;e>=i;)n+=" ",e-=i;r=" "}for(let s=0;s<e;s++)n+=r;return n}function x1(t,e){t instanceof Ze&&(t=new ag(t));for(let i of t.state.facet(FK)){let r=i(t,e);if(r!==void 0)return r}let n=at(t.state);return n.length>=e?KK(t,n,e):null}class ag{constructor(e,n={}){this.state=e,this.options=n,this.unit=xa(e)}lineAt(e,n=1){let i=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:s}=this.options;return r!=null&&r>=i.from&&r<=i.to?s&&r==e?{text:"",from:e}:(n<0?r<e:r<=e)?{text:i.text.slice(r-i.from),from:r}:{text:i.text.slice(0,r-i.from),from:i.from}:i}textAfterPos(e,n=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:i,from:r}=this.lineAt(e,n);return i.slice(e-r,Math.min(i.length,e+100-r))}column(e,n=1){let{text:i,from:r}=this.lineAt(e,n),s=this.countColumn(i,e-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(s+=o-this.countColumn(i,i.search(/\S|$/))),s}countColumn(e,n=e.length){return Ji(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:i,from:r}=this.lineAt(e,n),s=this.options.overrideIndentation;if(s){let o=s(r);if(o>-1)return o}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const vo=new Le;function KK(t,e,n){let i=e.resolveStack(n),r=e.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(r!=i.node){let s=[];for(let o=r;o&&!(o.from<i.node.from||o.to>i.node.to||o.from==i.node.from&&o.type==i.node.type);o=o.parent)s.push(o);for(let o=s.length-1;o>=0;o--)i={node:s[o],next:i}}return lM(i,t,n)}function lM(t,e,n){for(let i=t;i;i=i.next){let r=eJ(i.node);if(r)return r(v1.create(e,n,i))}return 0}function JK(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function eJ(t){let e=t.type.prop(vo);if(e)return e;let n=t.firstChild,i;if(n&&(i=n.type.prop(Le.closedBy))){let r=t.lastChild,s=r&&i.indexOf(r.name)>-1;return o=>cM(o,!0,1,void 0,s&&!JK(o)?r.from:void 0)}return t.parent==null?tJ:null}function tJ(){return 0}class v1 extends ag{constructor(e,n,i){super(e.state,e.options),this.base=e,this.pos=n,this.context=i}get node(){return this.context.node}static create(e,n,i){return new v1(e,n,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let n=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(n.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(nJ(i,e))break;n=this.state.doc.lineAt(i.from)}return this.lineIndent(n.from)}continue(){return lM(this.context.next,this.base,this.pos)}}function nJ(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}function iJ(t){let e=t.node,n=e.childAfter(e.from),i=e.lastChild;if(!n)return null;let r=t.options.simulateBreak,s=t.state.doc.lineAt(n.from),o=r==null||r<=s.from?s.to:Math.min(s.to,r);for(let l=n.to;;){let c=e.childAfter(l);if(!c||c==i)return null;if(!c.type.isSkipped){if(c.from>=o)return null;let h=/^ */.exec(s.text.slice(n.to-s.from))[0].length;return{from:n.from,to:n.to+h}}l=c.to}}function Nx({closing:t,align:e=!0,units:n=1}){return i=>cM(i,e,n,t)}function cM(t,e,n,i,r){let s=t.textAfter,o=s.match(/^\s*/)[0].length,l=i&&s.slice(o,o+i.length)==i||r==t.pos+o,c=e?iJ(t):null;return c?l?t.column(c.from):t.column(c.to):t.baseIndent+(l?0:t.unit*n)}const rJ=t=>t.baseIndent;function Dl({except:t,units:e=1}={}){return n=>{let i=t&&t.test(n.textAfter);return n.baseIndent+(i?0:e*n.unit)}}const sJ=200;function oJ(){return Ze.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:i}=t.newSelection.main,r=n.lineAt(i);if(i>r.from+sJ)return t;let s=n.sliceString(r.from,i);if(!e.some(h=>h.test(s)))return t;let{state:o}=t,l=-1,c=[];for(let{head:h}of o.selection.ranges){let d=o.doc.lineAt(h);if(d.from==l)continue;l=d.from;let p=x1(o,d.from);if(p==null)continue;let g=/^\s*/.exec(d.text)[0],O=Sh(o,p);g!=O&&c.push({from:d.from,to:d.from+g.length,insert:O})}return c.length?[t,{changes:c,sequential:!0}]:t})}const uM=Se.define(),So=new Le;function lg(t){let e=t.firstChild,n=t.lastChild;return e&&e.to<n.from?{from:e.to,to:n.type.isError?t.to:n.from}:null}function aJ(t,e,n){let i=at(t);if(i.length<n)return null;let r=i.resolveStack(n,1),s=null;for(let o=r;o;o=o.next){let l=o.node;if(l.to<=n||l.from>n)continue;if(s&&l.from<e)break;let c=l.type.prop(So);if(c&&(l.to<i.length-50||i.length==t.doc.length||!lJ(l))){let h=c(l,t);h&&h.from<=n&&h.from>=e&&h.to>n&&(s=h)}}return s}function lJ(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function dm(t,e,n){for(let i of t.facet(uM)){let r=i(t,e,n);if(r)return r}return aJ(t,e,n)}function hM(t,e){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);return n>=i?void 0:{from:n,to:i}}const cg=Me.define({map:hM}),Wh=Me.define({map:hM});function fM(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(i=>i.from<=n&&i.to>=n)||e.push(t.lineBlockAt(n));return e}const va=tn.define({create(){return ve.none},update(t,e){e.isUserEvent("delete")&&e.changes.iterChangedRanges((n,i)=>t=MQ(t,n,i)),t=t.map(e.changes);for(let n of e.effects)if(n.is(cg)&&!cJ(t,n.value.from,n.value.to)){let{preparePlaceholder:i}=e.state.facet(mM),r=i?ve.replace({widget:new gJ(i(e.state,n.value))}):DQ;t=t.update({add:[r.range(n.value.from,n.value.to)]})}else n.is(Wh)&&(t=t.update({filter:(i,r)=>n.value.from!=i||n.value.to!=r,filterFrom:n.value.from,filterTo:n.value.to}));return e.selection&&(t=MQ(t,e.selection.main.head)),t},provide:t=>ge.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(i,r)=>{n.push(i,r)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let i=t[n++],r=t[n++];if(typeof i!="number"||typeof r!="number")throw new RangeError("Invalid JSON for fold state");e.push(DQ.range(i,r))}return ve.set(e,!0)}});function MQ(t,e,n=e){let i=!1;return t.between(e,n,(r,s)=>{r<n&&s>e&&(i=!0)}),i?t.update({filterFrom:e,filterTo:n,filter:(r,s)=>r>=n||s<=e}):t}function pm(t,e,n){var i;let r=null;return(i=t.field(va,!1))===null||i===void 0||i.between(e,n,(s,o)=>{(!r||r.from>s)&&(r={from:s,to:o})}),r}function cJ(t,e,n){let i=!1;return t.between(e,e,(r,s)=>{r==e&&s==n&&(i=!0)}),i}function dM(t,e){return t.field(va,!1)?e:e.concat(Me.appendConfig.of(gM()))}const uJ=t=>{for(let e of fM(t)){let n=dm(t.state,e.from,e.to);if(n)return t.dispatch({effects:dM(t.state,[cg.of(n),pM(t,n)])}),!0}return!1},hJ=t=>{if(!t.state.field(va,!1))return!1;let e=[];for(let n of fM(t)){let i=pm(t.state,n.from,n.to);i&&e.push(Wh.of(i),pM(t,i,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function pM(t,e,n=!0){let i=t.state.doc.lineAt(e.from).number,r=t.state.doc.lineAt(e.to).number;return ge.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${i} ${t.state.phrase("to")} ${r}.`)}const fJ=t=>{let{state:e}=t,n=[];for(let i=0;i<e.doc.length;){let r=t.lineBlockAt(i),s=dm(e,r.from,r.to);s&&n.push(cg.of(s)),i=(s?t.lineBlockAt(s.to):r).to+1}return n.length&&t.dispatch({effects:dM(t.state,n)}),!!n.length},dJ=t=>{let e=t.state.field(va,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(i,r)=>{n.push(Wh.of({from:i,to:r}))}),t.dispatch({effects:n}),!0},pJ=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:uJ},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:hJ},{key:"Ctrl-Alt-[",run:fJ},{key:"Ctrl-Alt-]",run:dJ}],mJ={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},mM=Se.define({combine(t){return Lr(t,mJ)}});function gM(t){return[va,bJ]}function OM(t,e){let{state:n}=t,i=n.facet(mM),r=o=>{let l=t.lineBlockAt(t.posAtDOM(o.target)),c=pm(t.state,l.from,l.to);c&&t.dispatch({effects:Wh.of(c)}),o.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(t,r,e);let s=document.createElement("span");return s.textContent=i.placeholderText,s.setAttribute("aria-label",n.phrase("folded code")),s.title=n.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=r,s}const DQ=ve.replace({widget:new class extends bi{toDOM(t){return OM(t,null)}}});class gJ extends bi{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return OM(e,this.value)}}const OJ={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class zy extends ms{constructor(e,n){super(),this.config=e,this.open=n}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=e.state.phrase(this.open?"Fold line":"Unfold line"),n}}function yJ(t={}){let e={...OJ,...t},n=new zy(e,!0),i=new zy(e,!1),r=Ct.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(Oo)!=o.state.facet(Oo)||o.startState.field(va,!1)!=o.state.field(va,!1)||at(o.startState)!=at(o.state)||e.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let l=new ds;for(let c of o.viewportLineBlocks){let h=pm(o.state,c.from,c.to)?i:dm(o.state,c.from,c.to)?n:null;h&&l.add(c.from,c.from,h)}return l.finish()}}),{domEventHandlers:s}=e;return[r,EK({class:"cm-foldGutter",markers(o){var l;return((l=o.plugin(r))===null||l===void 0?void 0:l.markers)||Je.empty},initialSpacer(){return new zy(e,!1)},domEventHandlers:{...s,click:(o,l,c)=>{if(s.click&&s.click(o,l,c))return!0;let h=pm(o.state,l.from,l.to);if(h)return o.dispatch({effects:Wh.of(h)}),!0;let d=dm(o.state,l.from,l.to);return d?(o.dispatch({effects:cg.of(d)}),!0):!1}}}),gM()]}const bJ=ge.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Pa{constructor(e,n){this.specs=e;let i;function r(l){let c=po.newName();return(i||(i=Object.create(null)))["."+c]=l,c}const s=typeof n.all=="string"?n.all:n.all?r(n.all):void 0,o=n.scope;this.scope=o instanceof pi?l=>l.prop(io)==o.data:o?l=>l==o:void 0,this.style=oM(e.map(l=>({tag:l.tag,class:l.class||r(Object.assign({},l,{tag:null}))})),{all:s}).style,this.module=i?new po(i):null,this.themeType=n.themeType}static define(e,n){return new Pa(e,n||{})}}const zx=Se.define(),yM=Se.define({combine(t){return t.length?[t[0]]:null}});function Iy(t){let e=t.facet(zx);return e.length?e:t.facet(yM)}function ug(t,e){let n=[vJ],i;return t instanceof Pa&&(t.module&&n.push(ge.styleModule.of(t.module)),i=t.themeType),e?.fallback?n.push(yM.of(t)):i?n.push(zx.computeN([ge.darkTheme],r=>r.facet(ge.darkTheme)==(i=="dark")?[t]:[])):n.push(zx.of(t)),n}class xJ{constructor(e){this.markCache=Object.create(null),this.tree=at(e.state),this.decorations=this.buildDeco(e,Iy(e.state)),this.decoratedTo=e.viewport.to}update(e){let n=at(e.state),i=Iy(e.state),r=i!=Iy(e.startState),{viewport:s}=e.view,o=e.changes.mapPos(this.decoratedTo,1);n.length<s.to&&!r&&n.type==this.tree.type&&o>=s.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(n!=this.tree||e.viewportChanged||r)&&(this.tree=n,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=s.to)}buildDeco(e,n){if(!n||!this.tree.length)return ve.none;let i=new ds;for(let{from:r,to:s}of e.visibleRanges)UK(this.tree,n,(o,l,c)=>{i.add(o,l,this.markCache[c]||(this.markCache[c]=ve.mark({class:c})))},r,s);return i.finish()}}const vJ=xs.high(Ct.fromClass(xJ,{decorations:t=>t.decorations})),SJ=Pa.define([{tag:E.meta,color:"#404740"},{tag:E.link,textDecoration:"underline"},{tag:E.heading,textDecoration:"underline",fontWeight:"bold"},{tag:E.emphasis,fontStyle:"italic"},{tag:E.strong,fontWeight:"bold"},{tag:E.strikethrough,textDecoration:"line-through"},{tag:E.keyword,color:"#708"},{tag:[E.atom,E.bool,E.url,E.contentSeparator,E.labelName],color:"#219"},{tag:[E.literal,E.inserted],color:"#164"},{tag:[E.string,E.deleted],color:"#a11"},{tag:[E.regexp,E.escape,E.special(E.string)],color:"#e40"},{tag:E.definition(E.variableName),color:"#00f"},{tag:E.local(E.variableName),color:"#30a"},{tag:[E.typeName,E.namespace],color:"#085"},{tag:E.className,color:"#167"},{tag:[E.special(E.variableName),E.macroName],color:"#256"},{tag:E.definition(E.propertyName),color:"#00c"},{tag:E.comment,color:"#940"},{tag:E.invalid,color:"#f00"}]),_J=ge.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),bM=1e4,xM="()[]{}",vM=Se.define({combine(t){return Lr(t,{afterCursor:!0,brackets:xM,maxScanDistance:bM,renderMatch:PJ})}}),kJ=ve.mark({class:"cm-matchingBracket"}),wJ=ve.mark({class:"cm-nonmatchingBracket"});function PJ(t){let e=[],n=t.matched?kJ:wJ;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const TJ=tn.define({create(){return ve.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],i=e.state.facet(vM);for(let r of e.state.selection.ranges){if(!r.empty)continue;let s=kr(e.state,r.head,-1,i)||r.head>0&&kr(e.state,r.head-1,1,i)||i.afterCursor&&(kr(e.state,r.head,1,i)||r.head<e.state.doc.length&&kr(e.state,r.head+1,-1,i));s&&(n=n.concat(i.renderMatch(s,e.state)))}return ve.set(n,!0)},provide:t=>ge.decorations.from(t)}),CJ=[TJ,_J];function QJ(t={}){return[vM.of(t),CJ]}const SM=new Le;function Ix(t,e,n){let i=t.prop(e<0?Le.openedBy:Le.closedBy);if(i)return i;if(t.name.length==1){let r=n.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[n[r+e]]}return null}function Xx(t){let e=t.type.prop(SM);return e?e(t.node):t}function kr(t,e,n,i={}){let r=i.maxScanDistance||bM,s=i.brackets||xM,o=at(t),l=o.resolveInner(e,n);for(let c=l;c;c=c.parent){let h=Ix(c.type,n,s);if(h&&c.from<c.to){let d=Xx(c);if(d&&(n>0?e>=d.from&&e<d.to:e>d.from&&e<=d.to))return EJ(t,e,n,c,d,h,s)}}return AJ(t,e,n,o,l.type,r,s)}function EJ(t,e,n,i,r,s,o){let l=i.parent,c={from:r.from,to:r.to},h=0,d=l?.cursor();if(d&&(n<0?d.childBefore(i.from):d.childAfter(i.to)))do if(n<0?d.to<=i.from:d.from>=i.to){if(h==0&&s.indexOf(d.type.name)>-1&&d.from<d.to){let p=Xx(d);return{start:c,end:p?{from:p.from,to:p.to}:void 0,matched:!0}}else if(Ix(d.type,n,o))h++;else if(Ix(d.type,-n,o)){if(h==0){let p=Xx(d);return{start:c,end:p&&p.from<p.to?{from:p.from,to:p.to}:void 0,matched:!1}}h--}}while(n<0?d.prevSibling():d.nextSibling());return{start:c,matched:!1}}function AJ(t,e,n,i,r,s,o){let l=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),c=o.indexOf(l);if(c<0||c%2==0!=n>0)return null;let h={from:n<0?e-1:e,to:n>0?e+1:e},d=t.doc.iterRange(e,n>0?t.doc.length:0),p=0;for(let g=0;!d.next().done&&g<=s;){let O=d.value;n<0&&(g+=O.length);let x=e+g*n;for(let S=n>0?0:O.length-1,k=n>0?O.length:-1;S!=k;S+=n){let _=o.indexOf(O[S]);if(!(_<0||i.resolveInner(x+S,1).type!=r))if(_%2==0==n>0)p++;else{if(p==1)return{start:h,end:{from:x+S,to:x+S+1},matched:_>>1==c>>1};p--}}n>0&&(g+=O.length)}return d.done?{start:h,matched:!1}:null}function jQ(t,e,n,i=0,r=0){e==null&&(e=t.search(/[^\s\u00a0]/),e==-1&&(e=t.length));let s=r;for(let o=i;o<e;o++)t.charCodeAt(o)==9?s+=n-s%n:s++;return s}class _M{constructor(e,n,i,r){this.string=e,this.tabSize=n,this.indentUnit=i,this.overrideIndent=r,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(e){let n=this.string.charAt(this.pos),i;if(typeof e=="string"?i=n==e:i=n&&(e instanceof RegExp?e.test(n):e(n)),i)return++this.pos,n}eatWhile(e){let n=this.pos;for(;this.eat(e););return this.pos>n}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=jQ(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var e;return(e=this.overrideIndent)!==null&&e!==void 0?e:jQ(this.string,null,this.tabSize)}match(e,n,i){if(typeof e=="string"){let r=o=>i?o.toLowerCase():o,s=this.string.substr(this.pos,e.length);return r(s)==r(e)?(n!==!1&&(this.pos+=e.length),!0):null}else{let r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&n!==!1&&(this.pos+=r[0].length),r)}}current(){return this.string.slice(this.start,this.pos)}}function RJ(t){return{name:t.name||"",token:t.token,blankLine:t.blankLine||(()=>{}),startState:t.startState||(()=>!0),copyState:t.copyState||LJ,indent:t.indent||(()=>null),languageData:t.languageData||{},tokenTable:t.tokenTable||k1,mergeTokens:t.mergeTokens!==!1}}function LJ(t){if(typeof t!="object")return t;let e={};for(let n in t){let i=t[n];e[n]=i instanceof Array?i.slice():i}return e}const NQ=new WeakMap;class S1 extends pi{constructor(e){let n=og(e.languageData),i=RJ(e),r,s=new class extends tg{createParse(o,l,c){return new MJ(r,o,l,c)}};super(n,s,[],e.name),this.topNode=NJ(n,this),r=this,this.streamParser=i,this.stateAfter=new Le({perNode:!0}),this.tokenTable=e.tokenTable?new TM(i.tokenTable):jJ}static define(e){return new S1(e)}getIndent(e){let n,{overrideIndentation:i}=e.options;i&&(n=NQ.get(e.state),n!=null&&n<e.pos-1e4&&(n=void 0));let r=_1(this,e.node.tree,e.node.from,e.node.from,n??e.pos),s,o;if(r?(o=r.state,s=r.pos+1):(o=this.streamParser.startState(e.unit),s=e.node.from),e.pos-s>1e4)return null;for(;s<e.pos;){let c=e.state.doc.lineAt(s),h=Math.min(e.pos,c.to);if(c.length){let d=i?i(c.from):-1,p=new _M(c.text,e.state.tabSize,e.unit,d<0?void 0:d);for(;p.pos<h-c.from;)wM(this.streamParser.token,p,o)}else this.streamParser.blankLine(o,e.unit);if(h==e.pos)break;s=c.to+1}let l=e.lineAt(e.pos);return i&&n==null&&NQ.set(e.state,l.from),this.streamParser.indent(o,/^\s*(.*)/.exec(l.text)[1],e)}get allowsNesting(){return!1}}function _1(t,e,n,i,r){let s=n>=i&&n+e.length<=r&&e.prop(t.stateAfter);if(s)return{state:t.streamParser.copyState(s),pos:n+e.length};for(let o=e.children.length-1;o>=0;o--){let l=e.children[o],c=n+e.positions[o],h=l instanceof Ue&&c<r&&_1(t,l,c,i,r);if(h)return h}return null}function kM(t,e,n,i,r){if(r&&n<=0&&i>=e.length)return e;!r&&n==0&&e.type==t.topNode&&(r=!0);for(let s=e.children.length-1;s>=0;s--){let o=e.positions[s],l=e.children[s],c;if(o<i&&l instanceof Ue){if(!(c=kM(t,l,n-o,i-o,r)))break;return r?new Ue(e.type,e.children.slice(0,s).concat(c),e.positions.slice(0,s+1),o+c.length):c}}return null}function $J(t,e,n,i,r){for(let s of e){let o=s.from+(s.openStart?25:0),l=s.to-(s.openEnd?25:0),c=o<=n&&l>n&&_1(t,s.tree,0-s.offset,n,l),h;if(c&&c.pos<=i&&(h=kM(t,s.tree,n+s.offset,c.pos+s.offset,!1)))return{state:c.state,tree:h}}return{state:t.streamParser.startState(r?xa(r):4),tree:Ue.empty}}let MJ=class{constructor(e,n,i,r){this.lang=e,this.input=n,this.fragments=i,this.ranges=r,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=r[r.length-1].to;let s=ba.get(),o=r[0].from,{state:l,tree:c}=$J(e,i,o,this.to,s?.state);this.state=l,this.parsedPos=this.chunkStart=o+c.length;for(let h=0;h<c.children.length;h++)this.chunks.push(c.children[h]),this.chunkPos.push(c.positions[h]);s&&this.parsedPos<s.viewport.from-1e5&&r.some(h=>h.from<=s.viewport.from&&h.to>=s.viewport.from)&&(this.state=this.lang.streamParser.startState(xa(s.state)),s.skipUntilInView(this.parsedPos,s.viewport.from),this.parsedPos=s.viewport.from),this.moveRangeIndex()}advance(){let e=ba.get(),n=this.stoppedAt==null?this.to:Math.min(this.to,this.stoppedAt),i=Math.min(n,this.chunkStart+512);for(e&&(i=Math.min(i,e.viewport.to));this.parsedPos<i;)this.parseLine(e);return this.chunkStart<this.parsedPos&&this.finishChunk(),this.parsedPos>=n?this.finish():e&&this.parsedPos>=e.viewport.to?(e.skipUntilInView(this.parsedPos,n),this.finish()):null}stopAt(e){this.stoppedAt=e}lineAfter(e){let n=this.input.chunk(e);if(this.input.lineChunks)n==`
247
+ `&&(n="");else{let i=n.indexOf(`
248
+ `);i>-1&&(n=n.slice(0,i))}return e+n.length<=this.to?n:n.slice(0,this.to-e)}nextLine(){let e=this.parsedPos,n=this.lineAfter(e),i=e+n.length;for(let r=this.rangeIndex;;){let s=this.ranges[r].to;if(s>=i||(n=n.slice(0,s-(i-n.length)),r++,r==this.ranges.length))break;let o=this.ranges[r].from,l=this.lineAfter(o);n+=l,i=o+l.length}return{line:n,end:i}}skipGapsTo(e,n,i){for(;;){let r=this.ranges[this.rangeIndex].to,s=e+n;if(i>0?r>s:r>=s)break;let o=this.ranges[++this.rangeIndex].from;n+=o-r}return n}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to<this.parsedPos;)this.rangeIndex++}emitToken(e,n,i,r){let s=4;if(this.ranges.length>1){r=this.skipGapsTo(n,r,1),n+=r;let l=this.chunk.length;r=this.skipGapsTo(i,r,-1),i+=r,s+=this.chunk.length-l}let o=this.chunk.length-4;return this.lang.streamParser.mergeTokens&&s==4&&o>=0&&this.chunk[o]==e&&this.chunk[o+2]==n?this.chunk[o+2]=i:this.chunk.push(e,n,i,s),r}parseLine(e){let{line:n,end:i}=this.nextLine(),r=0,{streamParser:s}=this.lang,o=new _M(n,e?e.state.tabSize:4,e?xa(e.state):2);if(o.eol())s.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let l=wM(s.token,o,this.state);if(l&&(r=this.emitToken(this.lang.tokenTable.resolve(l),this.parsedPos+o.start,this.parsedPos+o.pos,r)),o.start>1e4)break}this.parsedPos=i,this.moveRangeIndex(),this.parsedPos<this.to&&this.parsedPos++}finishChunk(){let e=Ue.build({buffer:this.chunk,start:this.chunkStart,length:this.parsedPos-this.chunkStart,nodeSet:DJ,topID:0,maxBufferLength:512,reused:this.chunkReused});e=new Ue(e.type,e.children,e.positions,e.length,[[this.lang.stateAfter,this.lang.streamParser.copyState(this.state)]]),this.chunks.push(e),this.chunkPos.push(this.chunkStart-this.ranges[0].from),this.chunk=[],this.chunkReused=void 0,this.chunkStart=this.parsedPos}finish(){return new Ue(this.lang.topNode,this.chunks,this.chunkPos,this.parsedPos-this.ranges[0].from).balance()}};function wM(t,e,n){e.start=e.pos;for(let i=0;i<10;i++){let r=t(e,n);if(e.pos>e.start)return r}throw new Error("Stream parser failed to advance stream.")}const k1=Object.create(null),_h=[Bt.none],DJ=new hc(_h),zQ=[],IQ=Object.create(null),PM=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])PM[t]=CM(k1,e);class TM{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),PM)}resolve(e){return e?this.table[e]||(this.table[e]=CM(this.extra,e)):0}}const jJ=new TM(k1);function Xy(t,e){zQ.indexOf(t)>-1||(zQ.push(t),console.warn(e))}function CM(t,e){let n=[];for(let l of e.split(" ")){let c=[];for(let h of l.split(".")){let d=t[h]||E[h];d?typeof d=="function"?c.length?c=c.map(d):Xy(h,`Modifier ${h} used at start of tag`):c.length?Xy(h,`Tag ${h} used as modifier`):c=Array.isArray(d)?d:[d]:Xy(h,`Unknown highlighting tag ${h}`)}for(let h of c)n.push(h)}if(!n.length)return 0;let i=e.replace(/ /g,"_"),r=i+" "+n.map(l=>l.id),s=IQ[r];if(s)return s.id;let o=IQ[r]=Bt.define({id:_h.length,name:i,props:[vs({[i]:n})]});return _h.push(o),o.id}function NJ(t,e){let n=Bt.define({id:_h.length,name:"Document",props:[io.add(()=>t),vo.add(()=>i=>e.getIndent(i))],top:!0});return _h.push(n),n}_t.RTL,_t.LTR;const zJ=["HeaderMark","EmphasisMark","LinkMark","URL","HardBreak","QuoteMark","ListMark"],XQ=ve.mark({class:"cm-md-hidden"}),IJ=ve.line({class:"cm-md-codeblock-line"}),XJ=ve.line({class:"cm-md-codeblock-line-start"}),VJ=ve.line({class:"cm-md-codeblock-line-end"}),BJ=ve.line({class:"cm-md-codeblock-inactive"}),ZJ=ve.mark({class:"cm-md-link"}),qJ=ve.mark({class:"cm-md-image"}),vu=ve.mark({class:"cm-md-faded"}),UJ=ve.mark({class:"cm-md-task-faded"}),YJ=ve.mark({class:"cm-md-fence"}),GJ=(t,e)=>ve.replace({widget:new WJ(t,e),inclusive:!1});class WJ extends bi{constructor(e,n){super(),this.label=e,this.faded=n}eq(e){return this.label===e.label&&this.faded===e.faded}toDOM(){const e=document.createElement("span");return e.textContent=`${this.label}.`,e.className=`cm-md-olist${this.faded?" cm-md-olist-faded":""}`,e}}class HJ extends bi{constructor(e){super(),this.faded=e}eq(e){return this.faded===e.faded}toDOM(){const e=document.createElement("span");return e.textContent="•",e.className=`cm-md-ulmark${this.faded?" cm-md-olist-faded":""}`,e}}class FJ extends bi{constructor(e){super(),this.checked=e}eq(e){return this.checked===e.checked}toDOM(){const e=document.createElement("span");return e.className=`cm-md-task ${this.checked?"cm-md-task-checked":""}`,e.ariaHidden="true",e}}function KJ(t,e,n,i){const r=t.state.doc.lineAt(e.from).number,s=t.state.doc.lineAt(e.to).number,o=e.to-e.from>3&&t.state.doc.sliceString(e.to-3,e.to)==="```";for(let l=r;l<=s;l++){const c=t.state.doc.line(l);n.push({from:c.from,to:c.from,decoration:IJ}),l===r&&(n.push({from:c.from,to:c.from,decoration:XJ}),!i&&o&&n.push({from:c.from,to:c.from,decoration:BJ})),l===s&&n.push({from:c.from,to:c.from,decoration:VJ})}}class JJ{decorations;constructor(e){this.decorations=this.buildDecorations(e)}update(e){(e.docChanged||e.viewportChanged||e.selectionSet)&&(this.decorations=this.buildDecorations(e.view))}buildDecorations(e){const n=[],r=e.state.selection.ranges.map(o=>{const l=e.state.doc.lineAt(o.from),c=e.state.doc.lineAt(o.to);return{from:Math.min(l.from,c.from),to:Math.max(l.to,c.to)}}),s=[];for(const{from:o,to:l}of e.visibleRanges)at(e.state).iterate({from:o,to:l,enter(c){const{name:h}=c.type,d=r.some(S=>c.from<S.to&&c.to>S.from),p=c.node.parent?.name??"",g=c.node.parent?.parent?.name??"",O=p.includes("OrderedList")||g.includes("OrderedList"),x=e.state.doc.sliceString(c.from,c.to);if(h==="OrderedList"){s.push(1);return}if(h==="FencedCode"){const S=r.some(k=>c.from<k.to&&c.to>k.from);return KJ(e,c,n,S),!1}if(h==="Link"){const S=c.node.getChild("LinkLabel");S&&n.push({from:S.from,to:S.to,decoration:ZJ})}if(h==="Image"&&n.push({from:c.from,to:c.to,decoration:qJ}),h==="ListMark"){if(O){const S=s[s.length-1]??1;d?n.push({from:c.from,to:c.to,decoration:vu}):n.push({from:c.from,to:c.to,decoration:GJ(S,!1)}),s.length&&(s[s.length-1]=S+1);return}d?n.push({from:c.from,to:c.to,decoration:vu}):n.push({from:c.from,to:c.to,decoration:ve.replace({widget:new HJ(!1),inclusive:!1})});return}if(h==="TaskMarker"){const S=/\[[xX]\]/.test(x);d?n.push({from:c.from,to:c.to,decoration:UJ}):n.push({from:c.from,to:c.to,decoration:ve.replace({widget:new FJ(S),inclusive:!1})});return}if(h==="CodeMark"||h==="CodeInfo"){const S=d?vu:YJ;n.push({from:c.from,to:c.to,decoration:S});return}if(h==="HeaderMark"){const S=d?vu:XQ;n.push({from:c.from,to:c.to+1,decoration:S});return}if(zJ.includes(h)){if(d){n.push({from:c.from,to:c.to,decoration:vu});return}n.push({from:c.from,to:c.to,decoration:XQ})}},leave(c){c.name==="OrderedList"&&s.pop()}});return n.sort((o,l)=>o.from-l.from||o.to-l.to),ve.set(n.map(o=>o.decoration.range(o.from,o.to)))}}const eee=Ct.fromClass(JJ,{decorations:t=>t.decorations}),tee=Pa.define([{tag:E.heading1,fontWeight:"bold",fontSize:"1.75em",lineHeight:"1.3"},{tag:E.heading2,fontWeight:"bold",fontSize:"1.5em",lineHeight:"1.3"},{tag:E.heading3,fontWeight:"bold",fontSize:"1.25em",lineHeight:"1.3"},{tag:E.heading4,fontWeight:"bold",fontSize:"1.1em"},{tag:E.heading5,fontWeight:"bold",fontSize:"1em"},{tag:E.heading6,fontWeight:"bold",fontSize:"0.9em",color:"var(--color-muted-foreground)"},{tag:E.strong,fontWeight:"bold"},{tag:E.emphasis,fontStyle:"italic"},{tag:E.link,color:"var(--color-primary, #3b82f6)",textDecoration:"underline"},{tag:E.monospace,fontFamily:"var(--font-mono)",padding:"1px 4px"},{tag:E.quote,color:"var(--color-muted-foreground)",fontStyle:"italic"},{tag:E.strikethrough,textDecoration:"line-through"}]),nee=ge.baseTheme({".cm-md-hidden":{display:"none"},".cm-line":{position:"relative"},".cm-md-codeblock":{backgroundColor:"color-mix(in srgb, currentColor 5%, transparent)",borderRadius:"10px",display:"block",padding:"12px",fontFamily:"ui-monospace, monospace",fontSize:"0.9em",border:"1px solid color-mix(in srgb, currentColor 12%, transparent)"},".cm-md-codeblock-line":{backgroundColor:"color-mix(in srgb, currentColor 4%, transparent)",paddingInline:"4px",marginBottom:0,marginInlineStart:"4px"},".cm-md-codeblock-line-start":{borderTopLeftRadius:"8px",borderTopRightRadius:"8px"},".cm-md-codeblock-line-end":{borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px",marginBottom:"6px"},".cm-md-codeblock-inactive":{opacity:.6},".cm-md-fence":{color:"color-mix(in srgb, currentColor 55%, transparent)",letterSpacing:"0.03em",fontWeight:600},".cm-md-link":{color:"var(--color-primary, #3b82f6)",textDecoration:"underline",cursor:"pointer"},".cm-md-image":{display:"inline-block"},".cm-md-olist":{color:"var(--color-muted-foreground)",paddingRight:"0.35em",fontVariantNumeric:"tabular-nums"},".cm-md-olist.cm-md-olist-faded":{color:"color-mix(in srgb, currentColor 45%, transparent)"},".cm-md-faded":{color:"color-mix(in srgb, currentColor 40%, transparent)",opacity:.55},".cm-md-task":{display:"inline-block",width:"0.95em",height:"0.95em",borderRadius:"3px",border:"1px solid color-mix(in srgb, currentColor 30%, transparent)",marginRight:"0.35em",background:"color-mix(in srgb, var(--background) 80%, transparent)"},".cm-md-task-checked":{background:"color-mix(in srgb, var(--primary) 35%, transparent)",borderColor:"color-mix(in srgb, var(--primary) 60%, transparent)",position:"relative"},".cm-md-task-checked::after":{content:'""',position:"absolute",inset:"0.6px 3px 2.4px 3px",borderBottom:"2px solid var(--background)",borderRight:"2px solid var(--background)",transform:"rotate(35deg)",opacity:.9},".cm-md-task-faded":{opacity:.55},".cm-md-ulmark":{color:"oklch(0.18 0 0)",fontWeight:700,paddingRight:"0.2em"},".cm-line:has(.tok-quote)":{borderLeft:"3px solid color-mix(in srgb, currentColor 30%, transparent)",paddingLeft:"12px"}});function iee(){return[eee,ug(tee),nee]}const ree=t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),i=P1(t.state,n.from);return i.line?see(t):i.block?aee(t):!1};function w1(t,e){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let r=t(e,n);return r?(i(n.update(r)),!0):!1}}const see=w1(uee,0),oee=w1(QM,0),aee=w1((t,e)=>QM(t,e,cee(e)),0);function P1(t,e){let n=t.languageDataAt("commentTokens",e,1);return n.length?n[0]:{}}const Su=50;function lee(t,{open:e,close:n},i,r){let s=t.sliceDoc(i-Su,i),o=t.sliceDoc(r,r+Su),l=/\s*$/.exec(s)[0].length,c=/^\s*/.exec(o)[0].length,h=s.length-l;if(s.slice(h-e.length,h)==e&&o.slice(c,c+n.length)==n)return{open:{pos:i-l,margin:l&&1},close:{pos:r+c,margin:c&&1}};let d,p;r-i<=2*Su?d=p=t.sliceDoc(i,r):(d=t.sliceDoc(i,i+Su),p=t.sliceDoc(r-Su,r));let g=/^\s*/.exec(d)[0].length,O=/\s*$/.exec(p)[0].length,x=p.length-O-n.length;return d.slice(g,g+e.length)==e&&p.slice(x,x+n.length)==n?{open:{pos:i+g+e.length,margin:/\s/.test(d.charAt(g+e.length))?1:0},close:{pos:r-O-n.length,margin:/\s/.test(p.charAt(x-1))?1:0}}:null}function cee(t){let e=[];for(let n of t.selection.ranges){let i=t.doc.lineAt(n.from),r=n.to<=i.to?i:t.doc.lineAt(n.to);r.from>i.from&&r.from==n.to&&(r=n.to==i.to+1?i:t.doc.lineAt(n.to-1));let s=e.length-1;s>=0&&e[s].to>i.from?e[s].to=r.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:r.to})}return e}function QM(t,e,n=e.selection.ranges){let i=n.map(s=>P1(e,s.from).block);if(!i.every(s=>s))return null;let r=n.map((s,o)=>lee(e,i[o],s.from,s.to));if(t!=2&&!r.every(s=>s))return{changes:e.changes(n.map((s,o)=>r[o]?[]:[{from:s.from,insert:i[o].open+" "},{from:s.to,insert:" "+i[o].close}]))};if(t!=1&&r.some(s=>s)){let s=[];for(let o=0,l;o<r.length;o++)if(l=r[o]){let c=i[o],{open:h,close:d}=l;s.push({from:h.pos-c.open.length,to:h.pos+h.margin},{from:d.pos-d.margin,to:d.pos+c.close.length})}return{changes:s}}return null}function uee(t,e,n=e.selection.ranges){let i=[],r=-1;for(let{from:s,to:o}of n){let l=i.length,c=1e9,h=P1(e,s).line;if(h){for(let d=s;d<=o;){let p=e.doc.lineAt(d);if(p.from>r&&(s==o||o>p.from)){r=p.from;let g=/^\s*/.exec(p.text)[0].length,O=g==p.length,x=p.text.slice(g,g+h.length)==h?g:-1;g<p.text.length&&g<c&&(c=g),i.push({line:p,comment:x,token:h,indent:g,empty:O,single:!1})}d=p.to+1}if(c<1e9)for(let d=l;d<i.length;d++)i[d].indent<i[d].line.text.length&&(i[d].indent=c);i.length==l+1&&(i[l].single=!0)}}if(t!=2&&i.some(s=>s.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:l,token:c,indent:h,empty:d,single:p}of i)(p||!d)&&s.push({from:l.from+h,insert:c+" "});let o=e.changes(s);return{changes:o,selection:e.selection.map(o,1)}}else if(t!=1&&i.some(s=>s.comment>=0)){let s=[];for(let{line:o,comment:l,token:c}of i)if(l>=0){let h=o.from+l,d=h+c.length;o.text[d-o.from]==" "&&d++,s.push({from:h,to:d})}return{changes:s}}return null}const Vx=Rr.define(),hee=Rr.define(),fee=Se.define(),EM=Se.define({combine(t){return Lr(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,n)=>(i,r)=>e(i,r)||n(i,r)})}}),AM=tn.define({create(){return wr.empty},update(t,e){let n=e.state.facet(EM),i=e.annotation(Vx);if(i){let c=Wn.fromTransaction(e,i.selection),h=i.side,d=h==0?t.undone:t.done;return c?d=mm(d,d.length,n.minDepth,c):d=$M(d,e.startState.selection),new wr(h==0?i.rest:d,h==0?d:i.rest)}let r=e.annotation(hee);if((r=="full"||r=="before")&&(t=t.isolate()),e.annotation(Xt.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let s=Wn.fromTransaction(e),o=e.annotation(Xt.time),l=e.annotation(Xt.userEvent);return s?t=t.addChanges(s,o,l,n,e):e.selection&&(t=t.addSelection(e.startState.selection,o,l,n.newGroupDelay)),(r=="full"||r=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new wr(t.done.map(Wn.fromJSON),t.undone.map(Wn.fromJSON))}});function dee(t={}){return[AM,EM.of(t),ge.domEventHandlers({beforeinput(e,n){let i=e.inputType=="historyUndo"?RM:e.inputType=="historyRedo"?Bx:null;return i?(e.preventDefault(),i(n)):!1}})]}function hg(t,e){return function({state:n,dispatch:i}){if(!e&&n.readOnly)return!1;let r=n.field(AM,!1);if(!r)return!1;let s=r.pop(t,n,e);return s?(i(s),!0):!1}}const RM=hg(0,!1),Bx=hg(1,!1),pee=hg(0,!0),mee=hg(1,!0);class Wn{constructor(e,n,i,r,s){this.changes=e,this.effects=n,this.mapped=i,this.startSelection=r,this.selectionsAfter=s}setSelAfter(e){return new Wn(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,n,i;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(r=>r.toJSON())}}static fromJSON(e){return new Wn(e.changes&&Yt.fromJSON(e.changes),[],e.mapped&&Pr.fromJSON(e.mapped),e.startSelection&&se.fromJSON(e.startSelection),e.selectionsAfter.map(se.fromJSON))}static fromTransaction(e,n){let i=ji;for(let r of e.startState.facet(fee)){let s=r(e);s.length&&(i=i.concat(s))}return!i.length&&e.changes.empty?null:new Wn(e.changes.invert(e.startState.doc),i,void 0,n||e.startState.selection,ji)}static selection(e){return new Wn(void 0,ji,void 0,void 0,e)}}function mm(t,e,n,i){let r=e+1>n+20?e-n-1:0,s=t.slice(r,e);return s.push(i),s}function gee(t,e){let n=[],i=!1;return t.iterChangedRanges((r,s)=>n.push(r,s)),e.iterChangedRanges((r,s,o,l)=>{for(let c=0;c<n.length;){let h=n[c++],d=n[c++];l>=h&&o<=d&&(i=!0)}}),i}function Oee(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((n,i)=>n.empty!=e.ranges[i].empty).length===0}function LM(t,e){return t.length?e.length?t.concat(e):t:e}const ji=[],yee=200;function $M(t,e){if(t.length){let n=t[t.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-yee));return i.length&&i[i.length-1].eq(e)?t:(i.push(e),mm(t,t.length-1,1e9,n.setSelAfter(i)))}else return[Wn.selection([e])]}function bee(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function Vy(t,e){if(!t.length)return t;let n=t.length,i=ji;for(;n;){let r=xee(t[n-1],e,i);if(r.changes&&!r.changes.empty||r.effects.length){let s=t.slice(0,n);return s[n-1]=r,s}else e=r.mapped,n--,i=r.selectionsAfter}return i.length?[Wn.selection(i)]:ji}function xee(t,e,n){let i=LM(t.selectionsAfter.length?t.selectionsAfter.map(l=>l.map(e)):ji,n);if(!t.changes)return Wn.selection(i);let r=t.changes.map(e),s=e.mapDesc(t.changes,!0),o=t.mapped?t.mapped.composeDesc(s):s;return new Wn(r,Me.mapEffects(t.effects,e),o,t.startSelection.map(s),i)}const vee=/^(input\.type|delete)($|\.)/;class wr{constructor(e,n,i=0,r=void 0){this.done=e,this.undone=n,this.prevTime=i,this.prevUserEvent=r}isolate(){return this.prevTime?new wr(this.done,this.undone):this}addChanges(e,n,i,r,s){let o=this.done,l=o[o.length-1];return l&&l.changes&&!l.changes.empty&&e.changes&&(!i||vee.test(i))&&(!l.selectionsAfter.length&&n-this.prevTime<r.newGroupDelay&&r.joinToEvent(s,gee(l.changes,e.changes))||i=="input.type.compose")?o=mm(o,o.length-1,r.minDepth,new Wn(e.changes.compose(l.changes),LM(Me.mapEffects(e.effects,l.changes),l.effects),l.mapped,l.startSelection,ji)):o=mm(o,o.length,r.minDepth,e),new wr(o,ji,n,i)}addSelection(e,n,i,r){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:ji;return s.length>0&&n-this.prevTime<r&&i==this.prevUserEvent&&i&&/^select($|\.)/.test(i)&&Oee(s[s.length-1],e)?this:new wr($M(this.done,e),this.undone,n,i)}addMapping(e){return new wr(Vy(this.done,e),Vy(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,n,i){let r=e==0?this.done:this.undone;if(r.length==0)return null;let s=r[r.length-1],o=s.selectionsAfter[0]||n.selection;if(i&&s.selectionsAfter.length)return n.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:Vx.of({side:e,rest:bee(r),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let l=r.length==1?ji:r.slice(0,r.length-1);return s.mapped&&(l=Vy(l,s.mapped)),n.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:Vx.of({side:e,rest:l,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}wr.empty=new wr(ji,ji);const See=[{key:"Mod-z",run:RM,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Bx,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Bx,preventDefault:!0},{key:"Mod-u",run:pee,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:mee,preventDefault:!0}];function dc(t,e){return se.create(t.ranges.map(e),t.mainIndex)}function ir(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function rr({state:t,dispatch:e},n){let i=dc(t.selection,n);return i.eq(t.selection,!0)?!1:(e(ir(t,i)),!0)}function fg(t,e){return se.cursor(e?t.to:t.from)}function MM(t,e){return rr(t,n=>n.empty?t.moveByChar(n,e):fg(n,e))}function Sn(t){return t.textDirectionAt(t.state.selection.main.head)==_t.LTR}const DM=t=>MM(t,!Sn(t)),jM=t=>MM(t,Sn(t));function NM(t,e){return rr(t,n=>n.empty?t.moveByGroup(n,e):fg(n,e))}const _ee=t=>NM(t,!Sn(t)),kee=t=>NM(t,Sn(t));function wee(t,e,n){if(e.type.prop(n))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function dg(t,e,n){let i=at(t).resolveInner(e.head),r=n?Le.closedBy:Le.openedBy;for(let c=e.head;;){let h=n?i.childAfter(c):i.childBefore(c);if(!h)break;wee(t,h,r)?i=h:c=n?h.to:h.from}let s=i.type.prop(r),o,l;return s&&(o=n?kr(t,i.from,1):kr(t,i.to,-1))&&o.matched?l=n?o.end.to:o.end.from:l=n?i.to:i.from,se.cursor(l,n?-1:1)}const Pee=t=>rr(t,e=>dg(t.state,e,!Sn(t))),Tee=t=>rr(t,e=>dg(t.state,e,Sn(t)));function zM(t,e){return rr(t,n=>{if(!n.empty)return fg(n,e);let i=t.moveVertically(n,e);return i.head!=n.head?i:t.moveToLineBoundary(n,e)})}const IM=t=>zM(t,!1),XM=t=>zM(t,!0);function VM(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,n=0,i=0,r;if(e){for(let s of t.state.facet(ge.scrollMargins)){let o=s(t);o?.top&&(n=Math.max(o?.top,n)),o?.bottom&&(i=Math.max(o?.bottom,i))}r=t.scrollDOM.clientHeight-n-i}else r=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:i,selfScroll:e,height:Math.max(t.defaultLineHeight,r-5)}}function BM(t,e){let n=VM(t),{state:i}=t,r=dc(i.selection,o=>o.empty?t.moveVertically(o,e,n.height):fg(o,e));if(r.eq(i.selection))return!1;let s;if(n.selfScroll){let o=t.coordsAtPos(i.selection.main.head),l=t.scrollDOM.getBoundingClientRect(),c=l.top+n.marginTop,h=l.bottom-n.marginBottom;o&&o.top>c&&o.bottom<h&&(s=ge.scrollIntoView(r.main.head,{y:"start",yMargin:o.top-c}))}return t.dispatch(ir(i,r),{effects:s}),!0}const VQ=t=>BM(t,!1),Zx=t=>BM(t,!0);function _o(t,e,n){let i=t.lineBlockAt(e.head),r=t.moveToLineBoundary(e,n);if(r.head==e.head&&r.head!=(n?i.to:i.from)&&(r=t.moveToLineBoundary(e,n,!1)),!n&&r.head==i.from&&i.length){let s=/^\s*/.exec(t.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;s&&e.head!=i.from+s&&(r=se.cursor(i.from+s))}return r}const Cee=t=>rr(t,e=>_o(t,e,!0)),Qee=t=>rr(t,e=>_o(t,e,!1)),Eee=t=>rr(t,e=>_o(t,e,!Sn(t))),Aee=t=>rr(t,e=>_o(t,e,Sn(t))),Ree=t=>rr(t,e=>se.cursor(t.lineBlockAt(e.head).from,1)),Lee=t=>rr(t,e=>se.cursor(t.lineBlockAt(e.head).to,-1));function $ee(t,e,n){let i=!1,r=dc(t.selection,s=>{let o=kr(t,s.head,-1)||kr(t,s.head,1)||s.head>0&&kr(t,s.head-1,1)||s.head<t.doc.length&&kr(t,s.head+1,-1);if(!o||!o.end)return s;i=!0;let l=o.start.from==s.head?o.end.to:o.end.from;return se.cursor(l)});return i?(e(ir(t,r)),!0):!1}const Mee=({state:t,dispatch:e})=>$ee(t,e);function Zi(t,e){let n=dc(t.state.selection,i=>{let r=e(i);return se.range(i.anchor,r.head,r.goalColumn,r.bidiLevel||void 0)});return n.eq(t.state.selection)?!1:(t.dispatch(ir(t.state,n)),!0)}function ZM(t,e){return Zi(t,n=>t.moveByChar(n,e))}const qM=t=>ZM(t,!Sn(t)),UM=t=>ZM(t,Sn(t));function YM(t,e){return Zi(t,n=>t.moveByGroup(n,e))}const Dee=t=>YM(t,!Sn(t)),jee=t=>YM(t,Sn(t)),Nee=t=>Zi(t,e=>dg(t.state,e,!Sn(t))),zee=t=>Zi(t,e=>dg(t.state,e,Sn(t)));function GM(t,e){return Zi(t,n=>t.moveVertically(n,e))}const WM=t=>GM(t,!1),HM=t=>GM(t,!0);function FM(t,e){return Zi(t,n=>t.moveVertically(n,e,VM(t).height))}const BQ=t=>FM(t,!1),ZQ=t=>FM(t,!0),Iee=t=>Zi(t,e=>_o(t,e,!0)),Xee=t=>Zi(t,e=>_o(t,e,!1)),Vee=t=>Zi(t,e=>_o(t,e,!Sn(t))),Bee=t=>Zi(t,e=>_o(t,e,Sn(t))),Zee=t=>Zi(t,e=>se.cursor(t.lineBlockAt(e.head).from)),qee=t=>Zi(t,e=>se.cursor(t.lineBlockAt(e.head).to)),qQ=({state:t,dispatch:e})=>(e(ir(t,{anchor:0})),!0),UQ=({state:t,dispatch:e})=>(e(ir(t,{anchor:t.doc.length})),!0),YQ=({state:t,dispatch:e})=>(e(ir(t,{anchor:t.selection.main.anchor,head:0})),!0),GQ=({state:t,dispatch:e})=>(e(ir(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),KM=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),Uee=({state:t,dispatch:e})=>{let n=pg(t).map(({from:i,to:r})=>se.range(i,Math.min(r+1,t.doc.length)));return e(t.update({selection:se.create(n),userEvent:"select"})),!0},Yee=({state:t,dispatch:e})=>{let n=dc(t.selection,i=>{let r=at(t),s=r.resolveStack(i.from,1);if(i.empty){let o=r.resolveStack(i.from,-1);o.node.from>=s.node.from&&o.node.to<=s.node.to&&(s=o)}for(let o=s;o;o=o.next){let{node:l}=o;if((l.from<i.from&&l.to>=i.to||l.to>i.to&&l.from<=i.from)&&o.next)return se.range(l.to,l.from)}return i});return n.eq(t.selection)?!1:(e(ir(t,n)),!0)};function JM(t,e){let{state:n}=t,i=n.selection,r=n.selection.ranges.slice();for(let s of n.selection.ranges){let o=n.doc.lineAt(s.head);if(e?o.to<t.state.doc.length:o.from>0)for(let l=s;;){let c=t.moveVertically(l,e);if(c.head<o.from||c.head>o.to){r.some(h=>h.head==c.head)||r.push(c);break}else{if(c.head==l.head)break;l=c}}}return r.length==i.ranges.length?!1:(t.dispatch(ir(n,se.create(r,r.length-1))),!0)}const Gee=t=>JM(t,!1),Wee=t=>JM(t,!0),Hee=({state:t,dispatch:e})=>{let n=t.selection,i=null;return n.ranges.length>1?i=se.create([n.main]):n.main.empty||(i=se.create([se.cursor(n.main.head)])),i?(e(ir(t,i)),!0):!1};function Hh(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:i}=t,r=i.changeByRange(s=>{let{from:o,to:l}=s;if(o==l){let c=e(s);c<o?(n="delete.backward",c=Jd(t,c,!1)):c>o&&(n="delete.forward",c=Jd(t,c,!0)),o=Math.min(o,c),l=Math.max(l,c)}else o=Jd(t,o,!1),l=Jd(t,l,!0);return o==l?{range:s}:{changes:{from:o,to:l},range:se.cursor(o,o<s.head?-1:1)}});return r.changes.empty?!1:(t.dispatch(i.update(r,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?ge.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function Jd(t,e,n){if(t instanceof ge)for(let i of t.state.facet(ge.atomicRanges).map(r=>r(t)))i.between(e,e,(r,s)=>{r<e&&s>e&&(e=n?s:r)});return e}const eD=(t,e,n)=>Hh(t,i=>{let r=i.from,{state:s}=t,o=s.doc.lineAt(r),l,c;if(n&&!e&&r>o.from&&r<o.from+200&&!/[^ \t]/.test(l=o.text.slice(0,r-o.from))){if(l[l.length-1]==" ")return r-1;let h=Ji(l,s.tabSize),d=h%xa(s)||xa(s);for(let p=0;p<d&&l[l.length-1-p]==" ";p++)r--;c=r}else c=hn(o.text,r-o.from,e,e)+o.from,c==r&&o.number!=(e?s.doc.lines:1)?c+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(c-o.from,r-o.from))&&(c=hn(o.text,c-o.from,!1,!1)+o.from);return c}),qx=t=>eD(t,!1,!0),tD=t=>eD(t,!0,!1),nD=(t,e)=>Hh(t,n=>{let i=n.head,{state:r}=t,s=r.doc.lineAt(i),o=r.charCategorizer(i);for(let l=null;;){if(i==(e?s.to:s.from)){i==n.head&&s.number!=(e?r.doc.lines:1)&&(i+=e?1:-1);break}let c=hn(s.text,i-s.from,e)+s.from,h=s.text.slice(Math.min(i,c)-s.from,Math.max(i,c)-s.from),d=o(h);if(l!=null&&d!=l)break;(h!=" "||i!=n.head)&&(l=d),i=c}return i}),iD=t=>nD(t,!1),Fee=t=>nD(t,!0),Kee=t=>Hh(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),Jee=t=>Hh(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}),ete=t=>Hh(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),tte=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:Fe.of(["",""])},range:se.cursor(i.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},nte=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(i=>{if(!i.empty||i.from==0||i.from==t.doc.length)return{range:i};let r=i.from,s=t.doc.lineAt(r),o=r==s.from?r-1:hn(s.text,r-s.from,!1)+s.from,l=r==s.to?r+1:hn(s.text,r-s.from,!0)+s.from;return{changes:{from:o,to:l,insert:t.doc.slice(r,l).append(t.doc.slice(o,r))},range:se.cursor(l)}});return n.changes.empty?!1:(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function pg(t){let e=[],n=-1;for(let i of t.selection.ranges){let r=t.doc.lineAt(i.from),s=t.doc.lineAt(i.to);if(!i.empty&&i.to==s.from&&(s=t.doc.lineAt(i.to-1)),n>=r.number){let o=e[e.length-1];o.to=s.to,o.ranges.push(i)}else e.push({from:r.from,to:s.to,ranges:[i]});n=s.number+1}return e}function rD(t,e,n){if(t.readOnly)return!1;let i=[],r=[];for(let s of pg(t)){if(n?s.to==t.doc.length:s.from==0)continue;let o=t.doc.lineAt(n?s.to+1:s.from-1),l=o.length+1;if(n){i.push({from:s.to,to:o.to},{from:s.from,insert:o.text+t.lineBreak});for(let c of s.ranges)r.push(se.range(Math.min(t.doc.length,c.anchor+l),Math.min(t.doc.length,c.head+l)))}else{i.push({from:o.from,to:s.from},{from:s.to,insert:t.lineBreak+o.text});for(let c of s.ranges)r.push(se.range(c.anchor-l,c.head-l))}}return i.length?(e(t.update({changes:i,scrollIntoView:!0,selection:se.create(r,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const ite=({state:t,dispatch:e})=>rD(t,e,!1),rte=({state:t,dispatch:e})=>rD(t,e,!0);function sD(t,e,n){if(t.readOnly)return!1;let i=[];for(let r of pg(t))n?i.push({from:r.from,insert:t.doc.slice(r.from,r.to)+t.lineBreak}):i.push({from:r.to,insert:t.lineBreak+t.doc.slice(r.from,r.to)});return e(t.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const ste=({state:t,dispatch:e})=>sD(t,e,!1),ote=({state:t,dispatch:e})=>sD(t,e,!0),ate=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(pg(e).map(({from:r,to:s})=>(r>0?r--:s<e.doc.length&&s++,{from:r,to:s}))),i=dc(e.selection,r=>{let s;if(t.lineWrapping){let o=t.lineBlockAt(r.head),l=t.coordsAtPos(r.head,r.assoc||1);l&&(s=o.bottom+t.documentTop-l.bottom+t.defaultLineHeight/2)}return t.moveVertically(r,!0,s)}).map(n);return t.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function lte(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=at(t).resolveInner(e),i=n.childBefore(e),r=n.childAfter(e),s;return i&&r&&i.to<=e&&r.from>=e&&(s=i.type.prop(Le.closedBy))&&s.indexOf(r.name)>-1&&t.doc.lineAt(i.to).from==t.doc.lineAt(r.from).from&&!/\S/.test(t.sliceDoc(i.to,r.from))?{from:i.to,to:r.from}:null}const WQ=oD(!1),cte=oD(!0);function oD(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let i=e.changeByRange(r=>{let{from:s,to:o}=r,l=e.doc.lineAt(s),c=!t&&s==o&&lte(e,s);t&&(s=o=(o<=l.to?l:e.doc.lineAt(o)).to);let h=new ag(e,{simulateBreak:s,simulateDoubleBreak:!!c}),d=x1(h,s);for(d==null&&(d=Ji(/^\s*/.exec(e.doc.lineAt(s).text)[0],e.tabSize));o<l.to&&/\s/.test(l.text[o-l.from]);)o++;c?{from:s,to:o}=c:s>l.from&&s<l.from+100&&!/\S/.test(l.text.slice(0,s))&&(s=l.from);let p=["",Sh(e,d)];return c&&p.push(Sh(e,h.lineIndent(l.from,-1))),{changes:{from:s,to:o,insert:Fe.of(p)},range:se.cursor(s+1+p[1].length)}});return n(e.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function T1(t,e){let n=-1;return t.changeByRange(i=>{let r=[];for(let o=i.from;o<=i.to;){let l=t.doc.lineAt(o);l.number>n&&(i.empty||i.to>l.from)&&(e(l,r,i),n=l.number),o=l.to+1}let s=t.changes(r);return{changes:r,range:se.range(s.mapPos(i.anchor,1),s.mapPos(i.head,1))}})}const ute=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),i=new ag(t,{overrideIndentation:s=>{let o=n[s];return o??-1}}),r=T1(t,(s,o,l)=>{let c=x1(i,s.from);if(c==null)return;/\S/.test(s.text)||(c=0);let h=/^\s*/.exec(s.text)[0],d=Sh(t,c);(h!=d||l.from<s.from+h.length)&&(n[s.from]=c,o.push({from:s.from,to:s.from+h.length,insert:d}))});return r.changes.empty||e(t.update(r,{userEvent:"indent"})),!0},aD=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(T1(t,(n,i)=>{i.push({from:n.from,insert:t.facet(fc)})}),{userEvent:"input.indent"})),!0),lD=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(T1(t,(n,i)=>{let r=/^\s*/.exec(n.text)[0];if(!r)return;let s=Ji(r,t.tabSize),o=0,l=Sh(t,Math.max(0,s-xa(t)));for(;o<r.length&&o<l.length&&r.charCodeAt(o)==l.charCodeAt(o);)o++;i.push({from:n.from+o,to:n.from+r.length,insert:l.slice(o)})}),{userEvent:"delete.dedent"})),!0),hte=t=>(t.setTabFocusMode(),!0),fte=[{key:"Ctrl-b",run:DM,shift:qM,preventDefault:!0},{key:"Ctrl-f",run:jM,shift:UM},{key:"Ctrl-p",run:IM,shift:WM},{key:"Ctrl-n",run:XM,shift:HM},{key:"Ctrl-a",run:Ree,shift:Zee},{key:"Ctrl-e",run:Lee,shift:qee},{key:"Ctrl-d",run:tD},{key:"Ctrl-h",run:qx},{key:"Ctrl-k",run:Kee},{key:"Ctrl-Alt-h",run:iD},{key:"Ctrl-o",run:tte},{key:"Ctrl-t",run:nte},{key:"Ctrl-v",run:Zx}],dte=[{key:"ArrowLeft",run:DM,shift:qM,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:_ee,shift:Dee,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Eee,shift:Vee,preventDefault:!0},{key:"ArrowRight",run:jM,shift:UM,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:kee,shift:jee,preventDefault:!0},{mac:"Cmd-ArrowRight",run:Aee,shift:Bee,preventDefault:!0},{key:"ArrowUp",run:IM,shift:WM,preventDefault:!0},{mac:"Cmd-ArrowUp",run:qQ,shift:YQ},{mac:"Ctrl-ArrowUp",run:VQ,shift:BQ},{key:"ArrowDown",run:XM,shift:HM,preventDefault:!0},{mac:"Cmd-ArrowDown",run:UQ,shift:GQ},{mac:"Ctrl-ArrowDown",run:Zx,shift:ZQ},{key:"PageUp",run:VQ,shift:BQ},{key:"PageDown",run:Zx,shift:ZQ},{key:"Home",run:Qee,shift:Xee,preventDefault:!0},{key:"Mod-Home",run:qQ,shift:YQ},{key:"End",run:Cee,shift:Iee,preventDefault:!0},{key:"Mod-End",run:UQ,shift:GQ},{key:"Enter",run:WQ,shift:WQ},{key:"Mod-a",run:KM},{key:"Backspace",run:qx,shift:qx,preventDefault:!0},{key:"Delete",run:tD,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:iD,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:Fee,preventDefault:!0},{mac:"Mod-Backspace",run:Jee,preventDefault:!0},{mac:"Mod-Delete",run:ete,preventDefault:!0}].concat(fte.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),pte=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Pee,shift:Nee},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Tee,shift:zee},{key:"Alt-ArrowUp",run:ite},{key:"Shift-Alt-ArrowUp",run:ste},{key:"Alt-ArrowDown",run:rte},{key:"Shift-Alt-ArrowDown",run:ote},{key:"Mod-Alt-ArrowUp",run:Gee},{key:"Mod-Alt-ArrowDown",run:Wee},{key:"Escape",run:Hee},{key:"Mod-Enter",run:cte},{key:"Alt-l",mac:"Ctrl-l",run:Uee},{key:"Mod-i",run:Yee,preventDefault:!0},{key:"Mod-[",run:lD},{key:"Mod-]",run:aD},{key:"Mod-Alt-\\",run:ute},{key:"Shift-Mod-k",run:ate},{key:"Shift-Mod-\\",run:Mee},{key:"Mod-/",run:ree},{key:"Alt-A",run:oee},{key:"Ctrl-m",mac:"Shift-Alt-m",run:hte}].concat(dte),mte={key:"Tab",run:aD,shift:lD};var HQ={};class gm{constructor(e,n,i,r,s,o,l,c,h,d=0,p){this.p=e,this.stack=n,this.state=i,this.reducePos=r,this.pos=s,this.score=o,this.buffer=l,this.bufferBase=c,this.curContext=h,this.lookAhead=d,this.parent=p}toString(){return`[${this.stack.filter((e,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,n,i=0){let r=e.parser.context;return new gm(e,[],n,i,i,0,[],0,r?new FQ(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var n;let i=e>>19,r=e&65535,{parser:s}=this.p,o=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),l=s.dynamicPrecedence(r);if(l&&(this.score+=l),i==0){this.pushState(s.getGoto(this.state,r,!0),this.reducePos),r<s.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,o?8:4,!0),this.reduceContext(r,this.reducePos);return}let c=this.stack.length-(i-1)*3-(e&262144?6:0),h=c?this.stack[c-2]:this.p.ranges[0].from,d=this.reducePos-h;d>=2e3&&!(!((n=this.p.parser.nodeSet.types[r])===null||n===void 0)&&n.isAnonymous)&&(h==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=d):this.p.lastBigReductionSize<d&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=h,this.p.lastBigReductionSize=d));let p=c?this.stack[c-1]:0,g=this.bufferBase+this.buffer.length-p;if(r<s.minRepeatTerm||e&131072){let O=s.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,h,O,g+4,!0)}if(e&262144)this.state=this.stack[c];else{let O=this.stack[c-3];this.state=s.getGoto(O,r,!0)}for(;this.stack.length>c;)this.stack.pop();this.reduceContext(r,h)}storeNode(e,n,i,r=4,s=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,l=this.buffer.length;if(l==0&&o.parent&&(l=o.bufferBase-o.parent.bufferBase,o=o.parent),l>0&&o.buffer[l-4]==0&&o.buffer[l-1]>-1){if(n==i)return;if(o.buffer[l-2]>=n){o.buffer[l-2]=i;return}}}if(!s||this.pos==i)this.buffer.push(e,n,i,r);else{let o=this.buffer.length;if(o>0&&(this.buffer[o-4]!=0||this.buffer[o-1]<0)){let l=!1;for(let c=o;c>0&&this.buffer[c-2]>i;c-=4)if(this.buffer[c-1]>=0){l=!0;break}if(l)for(;o>0&&this.buffer[o-2]>i;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,r>4&&(r-=4)}this.buffer[o]=e,this.buffer[o+1]=n,this.buffer[o+2]=i,this.buffer[o+3]=r}}shift(e,n,i,r){if(e&131072)this.pushState(e&65535,this.pos);else if((e&262144)==0){let s=e,{parser:o}=this.p;(r>this.pos||n<=o.maxNode)&&(this.pos=r,o.stateFlag(s,1)||(this.reducePos=r)),this.pushState(s,i),this.shiftContext(n,i),n<=o.maxNode&&this.buffer.push(n,i,r,4)}else this.pos=r,this.shiftContext(n,i),n<=this.p.parser.maxNode&&this.buffer.push(n,i,r,4)}apply(e,n,i,r){e&65536?this.reduce(e):this.shift(e,n,i,r)}useNode(e,n){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(n,r),this.buffer.push(i,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,n=e.buffer.length;for(;n>0&&e.buffer[n-2]>e.reducePos;)n-=4;let i=e.buffer.slice(n),r=e.bufferBase+n;for(;e&&r==e.bufferBase;)e=e.parent;return new gm(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,n){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,n,4),this.storeNode(0,this.pos,n,i?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(e){for(let n=new gte(this);;){let i=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,e);if(i==0)return!1;if((i&65536)==0)return!0;n.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let r=[];for(let s=0,o;s<n.length;s+=2)(o=n[s+1])!=this.state&&this.p.parser.hasAction(o,e)&&r.push(n[s],o);if(this.stack.length<120)for(let s=0;r.length<8&&s<n.length;s+=2){let o=n[s+1];r.some((l,c)=>c&1&&l==o)||r.push(n[s],o)}n=r}let i=[];for(let r=0;r<n.length&&i.length<4;r+=2){let s=n[r+1];if(s==this.state)continue;let o=this.split();o.pushState(s,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(n[r],this.pos),o.reducePos=this.pos,o.score-=200,i.push(o)}return i}forceReduce(){let{parser:e}=this.p,n=e.stateSlot(this.state,5);if((n&65536)==0)return!1;if(!e.validAction(this.state,n)){let i=n>>19,r=n&65535,s=this.stack.length-i*3;if(s<0||e.getGoto(this.stack[s],r,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;n=o}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:e}=this.p,n=[],i=(r,s)=>{if(!n.includes(r))return n.push(r),e.allActions(r,o=>{if(!(o&393216))if(o&65536){let l=(o>>19)-s;if(l>1){let c=o&65535,h=this.stack.length-l*3;if(h>=0&&e.getGoto(this.stack[h],c,!1)>=0)return l<<19|65536|c}}else{let l=i(o,s+1);if(l!=null)return l}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=e.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(n)))}reduceContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(n)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let n=new FQ(this.curContext.tracker,e);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(e){return e<=this.lookAhead?!1:(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class FQ{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class gte{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let n=e&65535,i=e>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let r=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=r}}class Om{constructor(e,n,i){this.stack=e,this.pos=n,this.index=i,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,n=e.bufferBase+e.buffer.length){return new Om(e,n,n-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new Om(this.stack,this.pos,this.index)}}function Ru(t,e=Uint16Array){if(typeof t!="string")return t;let n=null;for(let i=0,r=0;i<t.length;){let s=0;for(;;){let o=t.charCodeAt(i++),l=!1;if(o==126){s=65535;break}o>=92&&o--,o>=34&&o--;let c=o-32;if(c>=46&&(c-=46,l=!0),s+=c,l)break;s*=46}n?n[r++]=s:n=new e(s)}return n}class wp{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const KQ=new wp;class Ote{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=KQ,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(e,n){let i=this.range,r=this.rangeIndex,s=this.pos+e;for(;s<i.from;){if(!r)return null;let o=this.ranges[--r];s-=i.from-o.to,i=o}for(;n<0?s>i.to:s>=i.to;){if(r==this.ranges.length-1)return null;let o=this.ranges[++r];s+=o.from-i.to,i=o}return s}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let n of this.ranges)if(n.to>e)return Math.max(e,n.from);return this.end}peek(e){let n=this.chunkOff+e,i,r;if(n>=0&&n<this.chunk.length)i=this.pos+e,r=this.chunk.charCodeAt(n);else{let s=this.resolveOffset(e,1);if(s==null)return-1;if(i=s,i>=this.chunk2Pos&&i<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(i-this.chunk2Pos);else{let o=this.rangeIndex,l=this.range;for(;l.to<=i;)l=this.ranges[++o];this.chunk2=this.input.chunk(this.chunk2Pos=i),i+this.chunk2.length>l.to&&(this.chunk2=this.chunk2.slice(0,l.to-i)),r=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),r}acceptToken(e,n=0){let i=n?this.resolveOffset(n,-1):this.pos;if(i==null||i<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=i}acceptTokenTo(e,n){this.token.value=e,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),n=this.pos+e.length;this.chunk=n>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,n){if(n?(this.token=n,n.start=e,n.lookAhead=e+1,n.value=n.extended=-1):this.token=KQ,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,n){if(e>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,n-this.chunkPos);if(e>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,n-this.chunk2Pos);if(e>=this.range.from&&n<=this.range.to)return this.input.read(e,n);let i="";for(let r of this.ranges){if(r.from>=n)break;r.to>e&&(i+=this.input.read(Math.max(r.from,e),Math.min(r.to,n)))}return i}}class jl{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:i}=n.p;cD(this.data,e,n,this.id,i.data,i.tokenPrecTable)}}jl.prototype.contextual=jl.prototype.fallback=jl.prototype.extend=!1;class ym{constructor(e,n,i){this.precTable=n,this.elseToken=i,this.data=typeof e=="string"?Ru(e):e}token(e,n){let i=e.pos,r=0;for(;;){let s=e.next<0,o=e.resolveOffset(1,1);if(cD(this.data,e,n,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(s||r++,o==null)break;e.reset(o,e.token)}r&&(e.reset(i,e.token),e.acceptToken(this.elseToken,r))}}ym.prototype.contextual=jl.prototype.fallback=jl.prototype.extend=!1;class fn{constructor(e,n={}){this.token=e,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function cD(t,e,n,i,r,s){let o=0,l=1<<i,{dialect:c}=n.p.parser;e:for(;(l&t[o])!=0;){let h=t[o+1];for(let O=o+3;O<h;O+=2)if((t[O+1]&l)>0){let x=t[O];if(c.allows(x)&&(e.token.value==-1||e.token.value==x||yte(x,e.token.value,r,s))){e.acceptToken(x);break}}let d=e.next,p=0,g=t[o+2];if(e.next<0&&g>p&&t[h+g*3-3]==65535){o=t[h+g*3-1];continue e}for(;p<g;){let O=p+g>>1,x=h+O+(O<<1),S=t[x],k=t[x+1]||65536;if(d<S)g=O;else if(d>=k)p=O+1;else{o=t[x+2],e.advance();continue e}}break}}function JQ(t,e,n){for(let i=e,r;(r=t[i])!=65535;i++)if(r==n)return i-e;return-1}function yte(t,e,n,i){let r=JQ(n,i,e);return r<0||JQ(n,i,t)<r}const ai=typeof process<"u"&&HQ&&/\bparse\b/.test(HQ.LOG);let By=null;function eE(t,e,n){let i=t.cursor(bt.IncludeAnonymous);for(i.moveTo(e);;)if(!(n<0?i.childBefore(e):i.childAfter(e)))for(;;){if((n<0?i.to<e:i.from>e)&&!i.type.isError)return n<0?Math.max(0,Math.min(i.to-1,e-25)):Math.min(t.length,Math.max(i.from+1,e+25));if(n<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return n<0?0:t.length}}let bte=class{constructor(e,n){this.fragments=e,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?eE(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?eE(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let i=this.trees[n],r=this.index[n];if(r==i.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=i.children[r],o=this.start[n]+i.positions[r];if(o>e)return this.nextStart=o,null;if(s instanceof Ue){if(o==e){if(o<this.safeFrom)return null;let l=o+s.length;if(l<=this.safeTo){let c=s.prop(Le.lookAhead);if(!c||l+c<this.fragment.to)return s}}this.index[n]++,o+s.length>=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[n]++,this.nextStart=o+s.length}}};class xte{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(i=>new wp)}getActions(e){let n=0,i=null,{parser:r}=e.p,{tokenizers:s}=r,o=r.stateSlot(e.state,3),l=e.curContext?e.curContext.hash:0,c=0;for(let h=0;h<s.length;h++){if((1<<h&o)==0)continue;let d=s[h],p=this.tokens[h];if(!(i&&!d.fallback)&&((d.contextual||p.start!=e.pos||p.mask!=o||p.context!=l)&&(this.updateCachedToken(p,d,e),p.mask=o,p.context=l),p.lookAhead>p.end+25&&(c=Math.max(p.lookAhead,c)),p.value!=0)){let g=n;if(p.extended>-1&&(n=this.addActions(e,p.extended,p.end,n)),n=this.addActions(e,p.value,p.end,n),!d.extend&&(i=p,n>g))break}}for(;this.actions.length>n;)this.actions.pop();return c&&e.setLookAhead(c),!i&&e.pos==this.stream.end&&(i=new wp,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,n=this.addActions(e,i.value,i.end,n)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let n=new wp,{pos:i,p:r}=e;return n.start=i,n.end=Math.min(i+1,r.stream.end),n.value=i==r.stream.end?r.parser.eofTerm:0,n}updateCachedToken(e,n,i){let r=this.stream.clipPos(i.pos);if(n.token(this.stream.reset(r,e),i),e.value>-1){let{parser:s}=i.p;for(let o=0;o<s.specialized.length;o++)if(s.specialized[o]==e.value){let l=s.specializers[o](this.stream.read(e.start,e.end),i);if(l>=0&&i.p.parser.dialect.allows(l>>1)){(l&1)==0?e.value=l>>1:e.extended=l>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,n,i,r){for(let s=0;s<r;s+=3)if(this.actions[s]==e)return r;return this.actions[r++]=e,this.actions[r++]=n,this.actions[r++]=i,r}addActions(e,n,i,r){let{state:s}=e,{parser:o}=e.p,{data:l}=o;for(let c=0;c<2;c++)for(let h=o.stateSlot(s,c?2:1);;h+=3){if(l[h]==65535)if(l[h+1]==1)h=rs(l,h+2);else{r==0&&l[h+1]==2&&(r=this.putAction(rs(l,h+2),n,i,r));break}l[h]==n&&(r=this.putAction(rs(l,h+1),n,i,r))}return r}}class vte{constructor(e,n,i,r){this.parser=e,this.input=n,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Ote(n,r),this.tokens=new xte(e,this.stream),this.topTerm=e.top[1];let{from:s}=r[0];this.stacks=[gm.start(this,e.top[0],s)],this.fragments=i.length&&this.stream.end-s>e.bufferLength*4?new bte(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,n=this.minStackPos,i=this.stacks=[],r,s;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<e.length;o++){let l=e[o];for(;;){if(this.tokens.mainToken=null,l.pos>n)i.push(l);else{if(this.advanceStack(l,i,e))continue;{r||(r=[],s=[]),r.push(l);let c=this.tokens.getMainToken(l);s.push(c.value,c.end)}}break}}if(!i.length){let o=r&&_te(r);if(o)return ai&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw ai&&r&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&r){let o=this.stoppedAt!=null&&r[0].pos>this.stoppedAt?r[0]:this.runRecovery(r,s,i);if(o)return ai&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(i.length>o)for(i.sort((l,c)=>c.score-l.score);i.length>o;)i.pop();i.some(l=>l.reducePos>n)&&this.recovering--}else if(i.length>1){e:for(let o=0;o<i.length-1;o++){let l=i[o];for(let c=o+1;c<i.length;c++){let h=i[c];if(l.sameState(h)||l.buffer.length>500&&h.buffer.length>500)if((l.score-h.score||l.buffer.length-h.buffer.length)>0)i.splice(c--,1);else{i.splice(o--,1);continue e}}}i.length>12&&i.splice(12,i.length-12)}this.minStackPos=i[0].pos;for(let o=1;o<i.length;o++)i[o].pos<this.minStackPos&&(this.minStackPos=i[o].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,n,i){let r=e.pos,{parser:s}=this,o=ai?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let h=e.curContext&&e.curContext.tracker.strict,d=h?e.curContext.hash:0;for(let p=this.fragments.nodeAt(r);p;){let g=this.parser.nodeSet.types[p.type.id]==p.type?s.getGoto(e.state,p.type.id):-1;if(g>-1&&p.length&&(!h||(p.prop(Le.contextHash)||0)==d))return e.useNode(p,g),ai&&console.log(o+this.stackID(e)+` (via reuse of ${s.getName(p.type.id)})`),!0;if(!(p instanceof Ue)||p.children.length==0||p.positions[0]>0)break;let O=p.children[0];if(O instanceof Ue&&p.positions[0]==0)p=O;else break}}let l=s.stateSlot(e.state,4);if(l>0)return e.reduce(l),ai&&console.log(o+this.stackID(e)+` (via always-reduce ${s.getName(l&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let c=this.tokens.getActions(e);for(let h=0;h<c.length;){let d=c[h++],p=c[h++],g=c[h++],O=h==c.length||!i,x=O?e:e.split(),S=this.tokens.mainToken;if(x.apply(d,p,S?S.start:x.pos,g),ai&&console.log(o+this.stackID(x)+` (via ${(d&65536)==0?"shift":`reduce of ${s.getName(d&65535)}`} for ${s.getName(p)} @ ${r}${x==e?"":", split"})`),O)return!0;x.pos>r?n.push(x):i.push(x)}return!1}advanceFully(e,n){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return tE(e,n),!0}}runRecovery(e,n,i){let r=null,s=!1;for(let o=0;o<e.length;o++){let l=e[o],c=n[o<<1],h=n[(o<<1)+1],d=ai?this.stackID(l)+" -> ":"";if(l.deadEnd&&(s||(s=!0,l.restart(),ai&&console.log(d+this.stackID(l)+" (restarted)"),this.advanceFully(l,i))))continue;let p=l.split(),g=d;for(let O=0;O<10&&p.forceReduce()&&(ai&&console.log(g+this.stackID(p)+" (via force-reduce)"),!this.advanceFully(p,i));O++)ai&&(g=this.stackID(p)+" -> ");for(let O of l.recoverByInsert(c))ai&&console.log(d+this.stackID(O)+" (via recover-insert)"),this.advanceFully(O,i);this.stream.end>l.pos?(h==l.pos&&(h++,c=0),l.recoverByDelete(c,h),ai&&console.log(d+this.stackID(l)+` (via recover-delete ${this.parser.getName(c)})`),tE(l,i)):(!r||r.score<l.score)&&(r=l)}return r}stackToTree(e){return e.close(),Ue.build({buffer:Om.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let n=(By||(By=new WeakMap)).get(e);return n||By.set(e,n=String.fromCodePoint(this.nextStackID++)),n+e}}function tE(t,e){for(let n=0;n<e.length;n++){let i=e[n];if(i.pos==t.pos&&i.sameState(t)){e[n].score<t.score&&(e[n]=t);return}}e.push(t)}class Ste{constructor(e,n,i){this.source=e,this.flags=n,this.disabled=i}allows(e){return!this.disabled||this.disabled[e]==0}}const Zy=t=>t;class C1{constructor(e){this.start=e.start,this.shift=e.shift||Zy,this.reduce=e.reduce||Zy,this.reuse=e.reuse||Zy,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Os extends tg{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let n=e.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let l=0;l<e.repeatNodeCount;l++)n.push("");let i=Object.keys(e.topRules).map(l=>e.topRules[l][1]),r=[];for(let l=0;l<n.length;l++)r.push([]);function s(l,c,h){r[l].push([c,c.deserialize(String(h))])}if(e.nodeProps)for(let l of e.nodeProps){let c=l[0];typeof c=="string"&&(c=Le[c]);for(let h=1;h<l.length;){let d=l[h++];if(d>=0)s(d,c,l[h++]);else{let p=l[h+-d];for(let g=-d;g>0;g--)s(l[h++],c,p);h++}}}this.nodeSet=new hc(n.map((l,c)=>Bt.define({name:c>=this.minRepeatTerm?void 0:l,id:c,props:r[c],top:i.indexOf(c)>-1,error:c==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(c)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=TL;let o=Ru(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;l<this.specializerSpecs.length;l++)this.specialized[l]=this.specializerSpecs[l].term;this.specializers=this.specializerSpecs.map(nE),this.states=Ru(e.states,Uint32Array),this.data=Ru(e.stateData),this.goto=Ru(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(l=>typeof l=="number"?new jl(o,l):l),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,n,i){let r=new vte(this,e,n,i);for(let s of this.wrappers)r=s(r,e,n,i);return r}getGoto(e,n,i=!1){let r=this.goto;if(n>=r[0])return-1;for(let s=r[n+1];;){let o=r[s++],l=o&1,c=r[s++];if(l&&i)return c;for(let h=s+(o>>1);s<h;s++)if(r[s]==e)return c;if(l)return-1}}hasAction(e,n){let i=this.data;for(let r=0;r<2;r++)for(let s=this.stateSlot(e,r?2:1),o;;s+=3){if((o=i[s])==65535)if(i[s+1]==1)o=i[s=rs(i,s+2)];else{if(i[s+1]==2)return rs(i,s+2);break}if(o==n||o==0)return rs(i,s+1)}return 0}stateSlot(e,n){return this.states[e*6+n]}stateFlag(e,n){return(this.stateSlot(e,0)&n)>0}validAction(e,n){return!!this.allActions(e,i=>i==n?!0:null)}allActions(e,n){let i=this.stateSlot(e,4),r=i?n(i):void 0;for(let s=this.stateSlot(e,1);r==null;s+=3){if(this.data[s]==65535)if(this.data[s+1]==1)s=rs(this.data,s+2);else break;r=n(rs(this.data,s+1))}return r}nextStates(e){let n=[];for(let i=this.stateSlot(e,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=rs(this.data,i+2);else break;if((this.data[i+2]&1)==0){let r=this.data[i+1];n.some((s,o)=>o&1&&s==r)||n.push(this.data[i],r)}}return n}configure(e){let n=Object.assign(Object.create(Os.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);n.top=i}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(i=>{let r=e.tokenizers.find(s=>s.from==i);return r?r.to:i})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((i,r)=>{let s=e.specializers.find(l=>l.from==i.external);if(!s)return i;let o=Object.assign(Object.assign({},i),{external:s.to});return n.specializers[r]=nE(o),o})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),e.bufferLength!=null&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let n=this.dynamicPrecedences;return n==null?0:n[e]||0}parseDialect(e){let n=Object.keys(this.dialects),i=n.map(()=>!1);if(e)for(let s of e.split(" ")){let o=n.indexOf(s);o>=0&&(i[o]=!0)}let r=null;for(let s=0;s<n.length;s++)if(!i[s])for(let o=this.dialects[n[s]],l;(l=this.data[o++])!=65535;)(r||(r=new Uint8Array(this.maxTerm+1)))[l]=1;return new Ste(e,i,r)}static deserialize(e){return new Os(e)}}function rs(t,e){return t[e]|t[e+1]<<16}function _te(t){let e=null;for(let n of t){let i=n.p.stoppedAt;(n.pos==n.p.stream.end||i!=null&&n.pos>i)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.score<n.score)&&(e=n)}return e}function nE(t){if(t.external){let e=t.extend?1:0;return(n,i)=>t.external(n,i)<<1|e}return t.get}const kte=316,wte=317,iE=1,Pte=2,Tte=3,Cte=4,Qte=318,Ete=320,Ate=321,Rte=5,Lte=6,$te=0,Ux=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],uD=125,Mte=59,Yx=47,Dte=42,jte=43,Nte=45,zte=60,Ite=44,Xte=63,Vte=46,Bte=91,Zte=new C1({start:!1,shift(t,e){return e==Rte||e==Lte||e==Ete?t:e==Ate},strict:!1}),qte=new fn((t,e)=>{let{next:n}=t;(n==uD||n==-1||e.context)&&t.acceptToken(Qte)},{contextual:!0,fallback:!0}),Ute=new fn((t,e)=>{let{next:n}=t,i;Ux.indexOf(n)>-1||n==Yx&&((i=t.peek(1))==Yx||i==Dte)||n!=uD&&n!=Mte&&n!=-1&&!e.context&&t.acceptToken(kte)},{contextual:!0}),Yte=new fn((t,e)=>{t.next==Bte&&!e.context&&t.acceptToken(wte)},{contextual:!0}),Gte=new fn((t,e)=>{let{next:n}=t;if(n==jte||n==Nte){if(t.advance(),n==t.next){t.advance();let i=!e.context&&e.canShift(iE);t.acceptToken(i?iE:Pte)}}else n==Xte&&t.peek(1)==Vte&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(Tte))},{contextual:!0});function qy(t,e){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!e&&t>=48&&t<=57}const Wte=new fn((t,e)=>{if(t.next!=zte||!e.dialectEnabled($te)||(t.advance(),t.next==Yx))return;let n=0;for(;Ux.indexOf(t.next)>-1;)t.advance(),n++;if(qy(t.next,!0)){for(t.advance(),n++;qy(t.next,!1);)t.advance(),n++;for(;Ux.indexOf(t.next)>-1;)t.advance(),n++;if(t.next==Ite)return;for(let i=0;;i++){if(i==7){if(!qy(t.next,!0))return;break}if(t.next!="extends".charCodeAt(i))break;t.advance(),n++}}t.acceptToken(Cte,-n)}),Hte=vs({"get set async static":E.modifier,"for while do if else switch try catch finally return throw break continue default case defer":E.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":E.operatorKeyword,"let var const using function class extends":E.definitionKeyword,"import export from":E.moduleKeyword,"with debugger new":E.keyword,TemplateString:E.special(E.string),super:E.atom,BooleanLiteral:E.bool,this:E.self,null:E.null,Star:E.modifier,VariableName:E.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":E.function(E.variableName),VariableDefinition:E.definition(E.variableName),Label:E.labelName,PropertyName:E.propertyName,PrivatePropertyName:E.special(E.propertyName),"CallExpression/MemberExpression/PropertyName":E.function(E.propertyName),"FunctionDeclaration/VariableDefinition":E.function(E.definition(E.variableName)),"ClassDeclaration/VariableDefinition":E.definition(E.className),"NewExpression/VariableName":E.className,PropertyDefinition:E.definition(E.propertyName),PrivatePropertyDefinition:E.definition(E.special(E.propertyName)),UpdateOp:E.updateOperator,"LineComment Hashbang":E.lineComment,BlockComment:E.blockComment,Number:E.number,String:E.string,Escape:E.escape,ArithOp:E.arithmeticOperator,LogicOp:E.logicOperator,BitOp:E.bitwiseOperator,CompareOp:E.compareOperator,RegExp:E.regexp,Equals:E.definitionOperator,Arrow:E.function(E.punctuation),": Spread":E.punctuation,"( )":E.paren,"[ ]":E.squareBracket,"{ }":E.brace,"InterpolationStart InterpolationEnd":E.special(E.brace),".":E.derefOperator,", ;":E.separator,"@":E.meta,TypeName:E.typeName,TypeDefinition:E.definition(E.typeName),"type enum interface implements namespace module declare":E.definitionKeyword,"abstract global Privacy readonly override":E.modifier,"is keyof unique infer asserts":E.operatorKeyword,JSXAttributeValue:E.attributeValue,JSXText:E.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":E.angleBracket,"JSXIdentifier JSXNameSpacedName":E.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":E.attributeName,"JSXBuiltin/JSXIdentifier":E.standard(E.tagName)}),Fte={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},Kte={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},Jte={__proto__:null,"<":193},ene=Os.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO'#F|O9`Q`O'#F{OOQ!0Lf'#Js'#JsOOQ!0Lb'#Jr'#JrO9eQ`O'#GwOOQ['#K_'#K_O9pQ`O'#IYO9uQ!0LrO'#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ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:Zte,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[Hte],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$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#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$i&j(Wp(Z!b'}0/l$]#t(T,2j(e$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[Ute,Yte,Gte,Wte,2,3,4,5,6,7,8,9,10,11,12,13,14,qte,new ym("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new ym("j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~",25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:t=>Fte[t]||-1},{term:343,get:t=>Kte[t]||-1},{term:95,get:t=>Jte[t]||-1}],tokenPrec:15201});class Q1{constructor(e,n,i,r){this.state=e,this.pos=n,this.explicit=i,this.view=r,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let n=at(this.state).resolveInner(this.pos,-1);for(;n&&e.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(e){let n=this.state.doc.lineAt(this.pos),i=Math.max(n.from,this.pos-250),r=n.text.slice(i-n.from,this.pos-n.from),s=r.search(fD(e,!1));return s<0?null:{from:i+s,to:this.pos,text:r.slice(s)}}get aborted(){return this.abortListeners==null}addEventListener(e,n,i){e=="abort"&&this.abortListeners&&(this.abortListeners.push(n),i&&i.onDocChange&&(this.abortOnDocChange=!0))}}function rE(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function tne(t){let e=Object.create(null),n=Object.create(null);for(let{label:r}of t){e[r[0]]=!0;for(let s=1;s<r.length;s++)n[r[s]]=!0}let i=rE(e)+rE(n)+"*$";return[new RegExp("^"+i),new RegExp(i)]}function hD(t){let e=t.map(r=>typeof r=="string"?{label:r}:r),[n,i]=e.every(r=>/^\w+$/.test(r.label))?[/\w*$/,/\w+$/]:tne(e);return r=>{let s=r.matchBefore(i);return s||r.explicit?{from:s?s.from:r.pos,options:e,validFor:n}:null}}function nne(t,e){return n=>{for(let i=at(n.state).resolveInner(n.pos,-1);i;i=i.parent){if(t.indexOf(i.name)>-1)return null;if(i.type.isTop)break}return e(n)}}class sE{constructor(e,n,i,r){this.completion=e,this.source=n,this.match=i,this.score=r}}function ca(t){return t.selection.main.from}function fD(t,e){var n;let{source:i}=t,r=e&&i[0]!="^",s=i[i.length-1]!="$";return!r&&!s?t:new RegExp(`${r?"^":""}(?:${i})${s?"$":""}`,(n=t.flags)!==null&&n!==void 0?n:t.ignoreCase?"i":"")}const E1=Rr.define();function ine(t,e,n,i){let{main:r}=t.selection,s=n-r.from,o=i-r.from;return{...t.changeByRange(l=>{if(l!=r&&n!=i&&t.sliceDoc(l.from+s,l.from+o)!=t.sliceDoc(n,i))return{range:l};let c=t.toText(e);return{changes:{from:l.from+s,to:i==r.from?l.to:l.from+o,insert:c},range:se.cursor(l.from+s+c.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}const oE=new WeakMap;function rne(t){if(!Array.isArray(t))return t;let e=oE.get(t);return e||oE.set(t,e=hD(t)),e}const bm=Me.define(),kh=Me.define();class sne{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n<e.length;){let i=Un(e,n),r=xr(i);this.chars.push(i);let s=e.slice(n,n+r),o=s.toUpperCase();this.folded.push(Un(o==s?s.toLowerCase():o,0)),n+=r}this.astral=e.length!=this.chars.length}ret(e,n){return this.score=e,this.matched=n,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:n,folded:i,any:r,precise:s,byWord:o}=this;if(n.length==1){let T=Un(e,0),C=xr(T),D=C==e.length?0:-100;if(T!=n[0])if(T==i[0])D+=-200;else return null;return this.ret(D,[0,C])}let l=e.indexOf(this.pattern);if(l==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let c=n.length,h=0;if(l<0){for(let T=0,C=Math.min(e.length,200);T<C&&h<c;){let D=Un(e,T);(D==n[h]||D==i[h])&&(r[h++]=T),T+=xr(D)}if(h<c)return null}let d=0,p=0,g=!1,O=0,x=-1,S=-1,k=/[a-z]/.test(e),_=!0;for(let T=0,C=Math.min(e.length,200),D=0;T<C&&p<c;){let j=Un(e,T);l<0&&(d<c&&j==n[d]&&(s[d++]=T),O<c&&(j==n[O]||j==i[O]?(O==0&&(x=T),S=T+1,O++):O=0));let A,M=j<255?j>=48&&j<=57||j>=97&&j<=122?2:j>=65&&j<=90?1:0:(A=r1(j))!=A.toLowerCase()?1:A!=A.toUpperCase()?2:0;(!T||M==1&&k||D==0&&M!=0)&&(n[p]==j||i[p]==j&&(g=!0)?o[p++]=T:o.length&&(_=!1)),D=M,T+=xr(j)}return p==c&&o[0]==0&&_?this.result(-100+(g?-200:0),o,e):O==c&&x==0?this.ret(-200-e.length+(S==e.length?0:-100),[0,S]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):O==c?this.ret(-900-e.length,[x,S]):p==c?this.result(-100+(g?-200:0)+-700+(_?0:-1100),o,e):n.length==2?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,n,i){let r=[],s=0;for(let o of n){let l=o+(this.astral?xr(Un(i,o)):1);s&&r[s-1]==o?r[s-1]=l:(r[s++]=o,r[s++]=l)}return this.ret(e-i.length,r)}}class one{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let n=e.slice(0,this.pattern.length),i=n==this.pattern?0:n.toLowerCase()==this.folded?-200:null;return i==null?null:(this.matched=[0,n.length],this.score=i+(e.length==this.pattern.length?0:-100),this)}}const en=Se.define({combine(t){return Lr(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:ane,filterStrict:!1,compareCompletions:(e,n)=>(e.sortText||e.label).localeCompare(n.sortText||n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,n)=>e&&n,closeOnBlur:(e,n)=>e&&n,icons:(e,n)=>e&&n,tooltipClass:(e,n)=>i=>aE(e(i),n(i)),optionClass:(e,n)=>i=>aE(e(i),n(i)),addToOptions:(e,n)=>e.concat(n),filterStrict:(e,n)=>e||n})}});function aE(t,e){return t?e?t+" "+e:t:e}function ane(t,e,n,i,r,s){let o=t.textDirection==_t.RTL,l=o,c=!1,h="top",d,p,g=e.left-r.left,O=r.right-e.right,x=i.right-i.left,S=i.bottom-i.top;if(l&&g<Math.min(x,O)?l=!1:!l&&O<Math.min(x,g)&&(l=!0),x<=(l?g:O))d=Math.max(r.top,Math.min(n.top,r.bottom-S))-e.top,p=Math.min(400,l?g:O);else{c=!0,p=Math.min(400,(o?e.right:r.right-e.left)-30);let T=r.bottom-e.bottom;T>=S||T>e.top?d=n.bottom-e.top:(h="bottom",d=e.bottom-n.top)}let k=(e.bottom-e.top)/s.offsetHeight,_=(e.right-e.left)/s.offsetWidth;return{style:`${h}: ${d/k}px; max-width: ${p/_}px`,class:"cm-completionInfo-"+(c?o?"left-narrow":"right-narrow":l?"left":"right")}}function lne(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(n){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),n.type&&i.classList.add(...n.type.split(/\s+/g).map(r=>"cm-completionIcon-"+r)),i.setAttribute("aria-hidden","true"),i},position:20}),e.push({render(n,i,r,s){let o=document.createElement("span");o.className="cm-completionLabel";let l=n.displayLabel||n.label,c=0;for(let h=0;h<s.length;){let d=s[h++],p=s[h++];d>c&&o.appendChild(document.createTextNode(l.slice(c,d)));let g=o.appendChild(document.createElement("span"));g.appendChild(document.createTextNode(l.slice(d,p))),g.className="cm-completionMatchedText",c=p}return c<l.length&&o.appendChild(document.createTextNode(l.slice(c))),o},position:50},{render(n){if(!n.detail)return null;let i=document.createElement("span");return i.className="cm-completionDetail",i.textContent=n.detail,i},position:80}),e.sort((n,i)=>n.position-i.position).map(n=>n.render)}function Uy(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let r=Math.floor(e/n);return{from:r*n,to:(r+1)*n}}let i=Math.floor((t-e)/n);return{from:t-(i+1)*n,to:t-i*n}}class cne{constructor(e,n,i){this.view=e,this.stateField=n,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:c=>this.placeInfo(c),key:this},this.space=null,this.currentClass="";let r=e.state.field(n),{options:s,selected:o}=r.open,l=e.state.facet(en);this.optionContent=lne(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=Uy(s.length,o,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",c=>{let{options:h}=e.state.field(n).open;for(let d=c.target,p;d&&d!=this.dom;d=d.parentNode)if(d.nodeName=="LI"&&(p=/-(\d+)$/.exec(d.id))&&+p[1]<h.length){this.applyCompletion(e,h[+p[1]]),c.preventDefault();return}}),this.dom.addEventListener("focusout",c=>{let h=e.state.field(this.stateField,!1);h&&h.tooltip&&e.state.facet(en).closeOnBlur&&c.relatedTarget!=e.contentDOM&&e.dispatch({effects:kh.of(null)})}),this.showOptions(s,r.id)}mount(){this.updateSel()}showOptions(e,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var n;let i=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),i!=r){let{options:s,selected:o,disabled:l}=i.open;(!r.open||r.open.options!=s)&&(this.range=Uy(s.length,o,e.state.facet(en).maxRenderedOptions),this.showOptions(s,i.id)),this.updateSel(),l!=((n=r.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(e){let n=this.tooltipClass(e);if(n!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of n.split(" "))i&&this.dom.classList.add(i);this.currentClass=n}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),n=e.open;(n.selected>-1&&n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=Uy(n.options.length,n.selected,this.view.state.facet(en).maxRenderedOptions),this.showOptions(n.options,e.id));let i=this.updateSelectedOption(n.selected);if(i){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:s}=r;if(!s)return;let o=typeof s=="string"?document.createTextNode(s):s(r);if(!o)return;"then"in o?o.then(l=>{l&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(l,r)}).catch(l=>Gn(this.view.state,l,"completion info")):(this.addInfoPane(o,r),i.setAttribute("aria-describedby",this.info.id))}}addInfoPane(e,n){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",i.id="cm-completionInfo-"+Math.floor(Math.random()*65535).toString(16),e.nodeType!=null)i.appendChild(e),this.infoDestroy=null;else{let{dom:r,destroy:s}=e;i.appendChild(r),this.infoDestroy=s||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let n=null;for(let i=this.list.firstChild,r=this.range.from;i;i=i.nextSibling,r++)i.nodeName!="LI"||!i.id?r--:r==e?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),n=i):i.hasAttribute("aria-selected")&&(i.removeAttribute("aria-selected"),i.removeAttribute("aria-describedby"));return n&&hne(this.list,n),n}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let n=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),s=this.space;if(!s){let o=this.dom.ownerDocument.documentElement;s={left:0,top:0,right:o.clientWidth,bottom:o.clientHeight}}return r.top>Math.min(s.bottom,n.bottom)-10||r.bottom<Math.max(s.top,n.top)+10?null:this.view.state.facet(en).positionInfo(this.view,n,r,i,s,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,n,i){const r=document.createElement("ul");r.id=n,r.setAttribute("role","listbox"),r.setAttribute("aria-expanded","true"),r.setAttribute("aria-label",this.view.state.phrase("Completions")),r.addEventListener("mousedown",o=>{o.target==r&&o.preventDefault()});let s=null;for(let o=i.from;o<i.to;o++){let{completion:l,match:c}=e[o],{section:h}=l;if(h){let g=typeof h=="string"?h:h.name;if(g!=s&&(o>i.from||i.from==0))if(s=g,typeof h!="string"&&h.header)r.appendChild(h.header(h));else{let O=r.appendChild(document.createElement("completion-section"));O.textContent=g}}const d=r.appendChild(document.createElement("li"));d.id=n+"-"+o,d.setAttribute("role","option");let p=this.optionClass(l);p&&(d.className=p);for(let g of this.optionContent){let O=g(l,this.view.state,this.view,c);O&&d.appendChild(O)}}return i.from&&r.classList.add("cm-completionListIncompleteTop"),i.to<e.length&&r.classList.add("cm-completionListIncompleteBottom"),r}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function une(t,e){return n=>new cne(n,t,e)}function hne(t,e){let n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),r=n.height/t.offsetHeight;i.top<n.top?t.scrollTop-=(n.top-i.top)/r:i.bottom>n.bottom&&(t.scrollTop+=(i.bottom-n.bottom)/r)}function lE(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function fne(t,e){let n=[],i=null,r=null,s=d=>{n.push(d);let{section:p}=d.completion;if(p){i||(i=[]);let g=typeof p=="string"?p:p.name;i.some(O=>O.name==g)||i.push(typeof p=="string"?{name:g}:p)}},o=e.facet(en);for(let d of t)if(d.hasResult()){let p=d.result.getMatch;if(d.result.filter===!1)for(let g of d.result.options)s(new sE(g,d.source,p?p(g):[],1e9-n.length));else{let g=e.sliceDoc(d.from,d.to),O,x=o.filterStrict?new one(g):new sne(g);for(let S of d.result.options)if(O=x.match(S.label)){let k=S.displayLabel?p?p(S,O.matched):[]:O.matched,_=O.score+(S.boost||0);if(s(new sE(S,d.source,k,_)),typeof S.section=="object"&&S.section.rank==="dynamic"){let{name:T}=S.section;r||(r=Object.create(null)),r[T]=Math.max(_,r[T]||-1e9)}}}}if(i){let d=Object.create(null),p=0,g=(O,x)=>(O.rank==="dynamic"&&x.rank==="dynamic"?r[x.name]-r[O.name]:0)||(typeof O.rank=="number"?O.rank:1e9)-(typeof x.rank=="number"?x.rank:1e9)||(O.name<x.name?-1:1);for(let O of i.sort(g))p-=1e5,d[O.name]=p;for(let O of n){let{section:x}=O.completion;x&&(O.score+=d[typeof x=="string"?x:x.name])}}let l=[],c=null,h=o.compareCompletions;for(let d of n.sort((p,g)=>g.score-p.score||h(p.completion,g.completion))){let p=d.completion;!c||c.label!=p.label||c.detail!=p.detail||c.type!=null&&p.type!=null&&c.type!=p.type||c.apply!=p.apply||c.boost!=p.boost?l.push(d):lE(d.completion)>lE(c)&&(l[l.length-1]=d),c=d.completion}return l}class Tl{constructor(e,n,i,r,s,o){this.options=e,this.attrs=n,this.tooltip=i,this.timestamp=r,this.selected=s,this.disabled=o}setSelected(e,n){return e==this.selected||e>=this.options.length?this:new Tl(this.options,cE(n,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,n,i,r,s,o){if(r&&!o&&e.some(h=>h.isPending))return r.setDisabled();let l=fne(e,n);if(!l.length)return r&&e.some(h=>h.isPending)?r.setDisabled():null;let c=n.facet(en).selectOnOpen?0:-1;if(r&&r.selected!=c&&r.selected!=-1){let h=r.options[r.selected].completion;for(let d=0;d<l.length;d++)if(l[d].completion==h){c=d;break}}return new Tl(l,cE(i,c),{pos:e.reduce((h,d)=>d.hasResult()?Math.min(h,d.from):h,1e8),create:yne,above:s.aboveCursor},r?r.timestamp:Date.now(),c,!1)}map(e){return new Tl(this.options,this.attrs,{...this.tooltip,pos:e.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new Tl(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class xm{constructor(e,n,i){this.active=e,this.id=n,this.open=i}static start(){return new xm(gne,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:n}=e,i=n.facet(en),s=(i.override||n.languageDataAt("autocomplete",ca(n)).map(rne)).map(c=>(this.active.find(d=>d.source==c)||new Ni(c,this.active.some(d=>d.state!=0)?1:0)).update(e,i));s.length==this.active.length&&s.every((c,h)=>c==this.active[h])&&(s=this.active);let o=this.open,l=e.effects.some(c=>c.is(A1));o&&e.docChanged&&(o=o.map(e.changes)),e.selection||s.some(c=>c.hasResult()&&e.changes.touchesRange(c.from,c.to))||!dne(s,this.active)||l?o=Tl.build(s,n,this.id,o,i,l):o&&o.disabled&&!s.some(c=>c.isPending)&&(o=null),!o&&s.every(c=>!c.isPending)&&s.some(c=>c.hasResult())&&(s=s.map(c=>c.hasResult()?new Ni(c.source,0):c));for(let c of e.effects)c.is(pD)&&(o=o&&o.setSelected(c.value,this.id));return s==this.active&&o==this.open?this:new xm(s,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?pne:mne}}function dne(t,e){if(t==e)return!0;for(let n=0,i=0;;){for(;n<t.length&&!t[n].hasResult();)n++;for(;i<e.length&&!e[i].hasResult();)i++;let r=n==t.length,s=i==e.length;if(r||s)return r==s;if(t[n++].result!=e[i++].result)return!1}}const pne={"aria-autocomplete":"list"},mne={};function cE(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const gne=[];function dD(t,e){if(t.isUserEvent("input.complete")){let i=t.annotation(E1);if(i&&e.activateOnCompletion(i))return 12}let n=t.isUserEvent("input.type");return n&&e.activateOnTyping?5:n?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class Ni{constructor(e,n,i=!1){this.source=e,this.state=n,this.explicit=i}hasResult(){return!1}get isPending(){return this.state==1}update(e,n){let i=dD(e,n),r=this;(i&8||i&16&&this.touches(e))&&(r=new Ni(r.source,0)),i&4&&r.state==0&&(r=new Ni(this.source,1)),r=r.updateFor(e,i);for(let s of e.effects)if(s.is(bm))r=new Ni(r.source,1,s.value);else if(s.is(kh))r=new Ni(r.source,0);else if(s.is(A1))for(let o of s.value)o.source==r.source&&(r=o);return r}updateFor(e,n){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(ca(e.state))}}class Nl extends Ni{constructor(e,n,i,r,s,o){super(e,3,n),this.limit=i,this.result=r,this.from=s,this.to=o}hasResult(){return!0}updateFor(e,n){var i;if(!(n&3))return this.map(e.changes);let r=this.result;r.map&&!e.changes.empty&&(r=r.map(r,e.changes));let s=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),l=ca(e.state);if(l>o||!r||n&2&&(ca(e.startState)==this.from||l<this.limit))return new Ni(this.source,n&4?1:0);let c=e.changes.mapPos(this.limit);return One(r.validFor,e.state,s,o)?new Nl(this.source,this.explicit,c,r,s,o):r.update&&(r=r.update(r,s,o,new Q1(e.state,l,!1)))?new Nl(this.source,this.explicit,c,r,r.from,(i=r.to)!==null&&i!==void 0?i:ca(e.state)):new Ni(this.source,1,this.explicit)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new Nl(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Ni(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function One(t,e,n,i){if(!t)return!1;let r=e.sliceDoc(n,i);return typeof t=="function"?t(r,n,i,e):fD(t,!0).test(r)}const A1=Me.define({map(t,e){return t.map(n=>n.map(e))}}),pD=Me.define(),Yn=tn.define({create(){return xm.start()},update(t,e){return t.update(e)},provide:t=>[y1.from(t,e=>e.tooltip),ge.contentAttributes.from(t,e=>e.attrs)]});function R1(t,e){const n=e.completion.apply||e.completion.label;let i=t.state.field(Yn).active.find(r=>r.source==e.source);return i instanceof Nl?(typeof n=="string"?t.dispatch({...ine(t.state,n,i.from,i.to),annotations:E1.of(e.completion)}):n(t,e.completion,i.from,i.to),!0):!1}const yne=une(Yn,R1);function ep(t,e="option"){return n=>{let i=n.state.field(Yn,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp<n.state.facet(en).interactionDelay)return!1;let r=1,s;e=="page"&&(s=tM(n,i.open.tooltip))&&(r=Math.max(2,Math.floor(s.dom.offsetHeight/s.dom.querySelector("li").offsetHeight)-1));let{length:o}=i.open.options,l=i.open.selected>-1?i.open.selected+r*(t?1:-1):t?0:o-1;return l<0?l=e=="page"?0:o-1:l>=o&&(l=e=="page"?o-1:0),n.dispatch({effects:pD.of(l)}),!0}}const bne=t=>{let e=t.state.field(Yn,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(en).interactionDelay?!1:R1(t,e.open.options[e.open.selected])},Yy=t=>t.state.field(Yn,!1)?(t.dispatch({effects:bm.of(!0)}),!0):!1,xne=t=>{let e=t.state.field(Yn,!1);return!e||!e.active.some(n=>n.state!=0)?!1:(t.dispatch({effects:kh.of(null)}),!0)};class vne{constructor(e,n){this.active=e,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const Sne=50,_ne=1e3,kne=Ct.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(Yn).active)e.isPending&&this.startQuery(e)}update(t){let e=t.state.field(Yn),n=t.state.facet(en);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Yn)==e)return;let i=t.transactions.some(s=>{let o=dD(s,n);return o&8||(s.selection||s.docChanged)&&!(o&3)});for(let s=0;s<this.running.length;s++){let o=this.running[s];if(i||o.context.abortOnDocChange&&t.docChanged||o.updates.length+t.transactions.length>Sne&&Date.now()-o.time>_ne){for(let l of o.context.abortListeners)try{l()}catch(c){Gn(this.view.state,c)}o.context.abortListeners=null,this.running.splice(s--,1)}else o.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(s=>s.effects.some(o=>o.is(bm)))&&(this.pendingStart=!0);let r=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(s=>s.isPending&&!this.running.some(o=>o.active.source==s.source))?setTimeout(()=>this.startUpdate(),r):-1,this.composing!=0)for(let s of t.transactions)s.isUserEvent("input.type")?this.composing=2:this.composing==2&&s.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(Yn);for(let n of e.active)n.isPending&&!this.running.some(i=>i.active.source==n.source)&&this.startQuery(n);this.running.length&&e.open&&e.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(en).updateSyncTime))}startQuery(t){let{state:e}=this.view,n=ca(e),i=new Q1(e,n,t.explicit,this.view),r=new vne(t,i);this.running.push(r),Promise.resolve(t.source(i)).then(s=>{r.context.aborted||(r.done=s||null,this.scheduleAccept())},s=>{this.view.dispatch({effects:kh.of(null)}),Gn(this.view.state,s)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(en).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(en),i=this.view.state.field(Yn);for(let r=0;r<this.running.length;r++){let s=this.running[r];if(s.done===void 0)continue;if(this.running.splice(r--,1),s.done){let l=ca(s.updates.length?s.updates[0].startState:this.view.state),c=Math.min(l,s.done.from+(s.active.explicit?0:1)),h=new Nl(s.active.source,s.active.explicit,c,s.done,s.done.from,(t=s.done.to)!==null&&t!==void 0?t:l);for(let d of s.updates)h=h.update(d,n);if(h.hasResult()){e.push(h);continue}}let o=i.active.find(l=>l.source==s.active.source);if(o&&o.isPending)if(s.done==null){let l=new Ni(s.active.source,0);for(let c of s.updates)l=l.update(c,n);l.isPending||e.push(l)}else this.startQuery(o)}(e.length||i.open&&i.open.disabled)&&this.view.dispatch({effects:A1.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Yn,!1);if(e&&e.tooltip&&this.view.state.facet(en).closeOnBlur){let n=e.open&&tM(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:kh.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:bm.of(!1)}),20),this.composing=0}}}),wne=typeof navigator=="object"&&/Win/.test(navigator.platform),Pne=xs.highest(ge.domEventHandlers({keydown(t,e){let n=e.state.field(Yn,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&!(wne&&t.altKey)||t.metaKey)return!1;let i=n.open.options[n.open.selected],r=n.active.find(o=>o.source==i.source),s=i.completion.commitCharacters||r.result.commitCharacters;return s&&s.indexOf(t.key)>-1&&R1(e,i),!1}})),mD=ge.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Tne{constructor(e,n,i,r){this.field=e,this.line=n,this.from=i,this.to=r}}class L1{constructor(e,n,i){this.field=e,this.from=n,this.to=i}map(e){let n=e.mapPos(this.from,-1,un.TrackDel),i=e.mapPos(this.to,1,un.TrackDel);return n==null||i==null?null:new L1(this.field,n,i)}}class $1{constructor(e,n){this.lines=e,this.fieldPositions=n}instantiate(e,n){let i=[],r=[n],s=e.doc.lineAt(n),o=/^\s*/.exec(s.text)[0];for(let c of this.lines){if(i.length){let h=o,d=/^\t*/.exec(c)[0].length;for(let p=0;p<d;p++)h+=e.facet(fc);r.push(n+h.length-d),c=h+c.slice(d)}i.push(c),n+=c.length+1}let l=this.fieldPositions.map(c=>new L1(c.field,r[c.line]+c.from,r[c.line]+c.to));return{text:i,ranges:l}}static parse(e){let n=[],i=[],r=[],s;for(let o of e.split(/\r\n?|\n/)){for(;s=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(o);){let l=s[1]?+s[1]:null,c=s[2]||s[3]||"",h=-1,d=c.replace(/\\[{}]/g,p=>p[1]);for(let p=0;p<n.length;p++)(l!=null?n[p].seq==l:d&&n[p].name==d)&&(h=p);if(h<0){let p=0;for(;p<n.length&&(l==null||n[p].seq!=null&&n[p].seq<l);)p++;n.splice(p,0,{seq:l,name:d}),h=p;for(let g of r)g.field>=h&&g.field++}for(let p of r)if(p.line==i.length&&p.from>s.index){let g=s[2]?3+(s[1]||"").length:2;p.from-=g,p.to-=g}r.push(new Tne(h,i.length,s.index,s.index+d.length)),o=o.slice(0,s.index)+c+o.slice(s.index+s[0].length)}o=o.replace(/\\([{}])/g,(l,c,h)=>{for(let d of r)d.line==i.length&&d.from>h&&(d.from--,d.to--);return c}),i.push(o)}return new $1(i,r)}}let Cne=ve.widget({widget:new class extends bi{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),Qne=ve.mark({class:"cm-snippetField"});class pc{constructor(e,n){this.ranges=e,this.active=n,this.deco=ve.set(e.map(i=>(i.from==i.to?Cne:Qne).range(i.from,i.to)),!0)}map(e){let n=[];for(let i of this.ranges){let r=i.map(e);if(!r)return null;n.push(r)}return new pc(n,this.active)}selectionInsideField(e){return e.ranges.every(n=>this.ranges.some(i=>i.field==this.active&&i.from<=n.from&&i.to>=n.to))}}const Fh=Me.define({map(t,e){return t&&t.map(e)}}),Ene=Me.define(),wh=tn.define({create(){return null},update(t,e){for(let n of e.effects){if(n.is(Fh))return n.value;if(n.is(Ene)&&t)return new pc(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>ge.decorations.from(t,e=>e?e.deco:ve.none)});function M1(t,e){return se.create(t.filter(n=>n.field==e).map(n=>se.range(n.from,n.to)))}function Ane(t){let e=$1.parse(t);return(n,i,r,s)=>{let{text:o,ranges:l}=e.instantiate(n.state,r),{main:c}=n.state.selection,h={changes:{from:r,to:s==c.from?c.to:s,insert:Fe.of(o)},scrollIntoView:!0,annotations:i?[E1.of(i),Xt.userEvent.of("input.complete")]:void 0};if(l.length&&(h.selection=M1(l,0)),l.some(d=>d.field>0)){let d=new pc(l,0),p=h.effects=[Fh.of(d)];n.state.field(wh,!1)===void 0&&p.push(Me.appendConfig.of([wh,Dne,jne,mD]))}n.dispatch(n.state.update(h))}}function gD(t){return({state:e,dispatch:n})=>{let i=e.field(wh,!1);if(!i||t<0&&i.active==0)return!1;let r=i.active+t,s=t>0&&!i.ranges.some(o=>o.field==r+t);return n(e.update({selection:M1(i.ranges,r),effects:Fh.of(s?null:new pc(i.ranges,r)),scrollIntoView:!0})),!0}}const Rne=({state:t,dispatch:e})=>t.field(wh,!1)?(e(t.update({effects:Fh.of(null)})),!0):!1,Lne=gD(1),$ne=gD(-1),Mne=[{key:"Tab",run:Lne,shift:$ne},{key:"Escape",run:Rne}],uE=Se.define({combine(t){return t.length?t[0]:Mne}}),Dne=xs.highest(wa.compute([uE],t=>t.facet(uE)));function qn(t,e){return{...e,apply:Ane(t)}}const jne=ge.domEventHandlers({mousedown(t,e){let n=e.state.field(wh,!1),i;if(!n||(i=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let r=n.ranges.find(s=>s.from<=i&&s.to>=i);return!r||r.field==n.active?!1:(e.dispatch({selection:M1(n.ranges,r.field),effects:Fh.of(n.ranges.some(s=>s.field>r.field)?new pc(n.ranges,r.field):null),scrollIntoView:!0}),!0)}}),Ph={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ia=Me.define({map(t,e){let n=e.mapPos(t,-1,un.TrackAfter);return n??void 0}}),D1=new class extends ma{};D1.startSide=1;D1.endSide=-1;const OD=tn.define({create(){return Je.empty},update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:i=>i>=n.from&&i<=n.to})}for(let n of e.effects)n.is(ia)&&(t=t.update({add:[D1.range(n.value,n.value+1)]}));return t}});function Nne(){return[Ine,OD]}const Gy="()[]{}<>«»»«[]{}";function yD(t){for(let e=0;e<Gy.length;e+=2)if(Gy.charCodeAt(e)==t)return Gy.charAt(e+1);return r1(t<128?t:t+1)}function bD(t,e){return t.languageDataAt("closeBrackets",e)[0]||Ph}const zne=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Ine=ge.inputHandler.of((t,e,n,i)=>{if((zne?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let r=t.state.selection.main;if(i.length>2||i.length==2&&xr(Un(i,0))==1||e!=r.from||n!=r.to)return!1;let s=Bne(t.state,i);return s?(t.dispatch(s),!0):!1}),Xne=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=bD(t,t.selection.main.head).brackets||Ph.brackets,r=null,s=t.changeByRange(o=>{if(o.empty){let l=Zne(t.doc,o.head);for(let c of i)if(c==l&&mg(t.doc,o.head)==yD(Un(c,0)))return{changes:{from:o.head-c.length,to:o.head+c.length},range:se.cursor(o.head-c.length)}}return{range:r=o}});return r||e(t.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!r},Vne=[{key:"Backspace",run:Xne}];function Bne(t,e){let n=bD(t,t.selection.main.head),i=n.brackets||Ph.brackets;for(let r of i){let s=yD(Un(r,0));if(e==r)return s==r?Yne(t,r,i.indexOf(r+r+r)>-1,n):qne(t,r,s,n.before||Ph.before);if(e==s&&xD(t,t.selection.main.from))return Une(t,r,s)}return null}function xD(t,e){let n=!1;return t.field(OD).between(0,t.doc.length,i=>{i==e&&(n=!0)}),n}function mg(t,e){let n=t.sliceString(e,e+2);return n.slice(0,xr(Un(n,0)))}function Zne(t,e){let n=t.sliceString(e-2,e);return xr(Un(n,0))==n.length?n:n.slice(1)}function qne(t,e,n,i){let r=null,s=t.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:n,from:o.to}],effects:ia.of(o.to+e.length),range:se.range(o.anchor+e.length,o.head+e.length)};let l=mg(t.doc,o.head);return!l||/\s/.test(l)||i.indexOf(l)>-1?{changes:{insert:e+n,from:o.head},effects:ia.of(o.head+e.length),range:se.cursor(o.head+e.length)}:{range:r=o}});return r?null:t.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function Une(t,e,n){let i=null,r=t.changeByRange(s=>s.empty&&mg(t.doc,s.head)==n?{changes:{from:s.head,to:s.head+n.length,insert:n},range:se.cursor(s.head+n.length)}:i={range:s});return i?null:t.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function Yne(t,e,n,i){let r=i.stringPrefixes||Ph.stringPrefixes,s=null,o=t.changeByRange(l=>{if(!l.empty)return{changes:[{insert:e,from:l.from},{insert:e,from:l.to}],effects:ia.of(l.to+e.length),range:se.range(l.anchor+e.length,l.head+e.length)};let c=l.head,h=mg(t.doc,c),d;if(h==e){if(hE(t,c))return{changes:{insert:e+e,from:c},effects:ia.of(c+e.length),range:se.cursor(c+e.length)};if(xD(t,c)){let g=n&&t.sliceDoc(c,c+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:c,to:c+g.length,insert:g},range:se.cursor(c+g.length)}}}else{if(n&&t.sliceDoc(c-2*e.length,c)==e+e&&(d=fE(t,c-2*e.length,r))>-1&&hE(t,d))return{changes:{insert:e+e+e+e,from:c},effects:ia.of(c+e.length),range:se.cursor(c+e.length)};if(t.charCategorizer(c)(h)!=wt.Word&&fE(t,c,r)>-1&&!Gne(t,c,e,r))return{changes:{insert:e+e,from:c},effects:ia.of(c+e.length),range:se.cursor(c+e.length)}}return{range:s=l}});return s?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function hE(t,e){let n=at(t).resolveInner(e+1);return n.parent&&n.from==e}function Gne(t,e,n,i){let r=at(t).resolveInner(e,-1),s=i.reduce((o,l)=>Math.max(o,l.length),0);for(let o=0;o<5;o++){let l=t.sliceDoc(r.from,Math.min(r.to,r.from+n.length+s)),c=l.indexOf(n);if(!c||c>-1&&i.indexOf(l.slice(0,c))>-1){let d=r.firstChild;for(;d&&d.from==r.from&&d.to-d.from>n.length+c;){if(t.sliceDoc(d.to-n.length,d.to)==n)return!1;d=d.firstChild}return!0}let h=r.to==e&&r.parent;if(!h)break;r=h}return!1}function fE(t,e,n){let i=t.charCategorizer(e);if(i(t.sliceDoc(e-1,e))!=wt.Word)return e;for(let r of n){let s=e-r.length;if(t.sliceDoc(s,e)==r&&i(t.sliceDoc(s-1,s))!=wt.Word)return s}return-1}function Wne(t={}){return[Pne,Yn,en.of(t),kne,Hne,mD]}const vD=[{key:"Ctrl-Space",run:Yy},{mac:"Alt-`",run:Yy},{mac:"Alt-i",run:Yy},{key:"Escape",run:xne},{key:"ArrowDown",run:ep(!0)},{key:"ArrowUp",run:ep(!1)},{key:"PageDown",run:ep(!0,"page")},{key:"PageUp",run:ep(!1,"page")},{key:"Enter",run:bne}],Hne=xs.highest(wa.computeN([en],t=>t.facet(en).defaultKeymap?[vD]:[])),j1=[qn("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),qn("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),qn("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),qn("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),qn("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),qn(`try {
249
+ \${}
250
+ } catch (\${error}) {
251
+ \${}
252
+ }`,{label:"try",detail:"/ catch block",type:"keyword"}),qn("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),qn(`if (\${}) {
253
+ \${}
254
+ } else {
255
+ \${}
256
+ }`,{label:"if",detail:"/ else block",type:"keyword"}),qn(`class \${name} {
257
+ constructor(\${params}) {
258
+ \${}
259
+ }
260
+ }`,{label:"class",detail:"definition",type:"keyword"}),qn('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),qn('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],SD=j1.concat([qn("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),qn("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),qn("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),dE=new AL,_D=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function _u(t){return(e,n)=>{let i=e.node.getChild("VariableDefinition");return i&&n(i,t),!0}}const Fne=["FunctionDeclaration"],Kne={FunctionDeclaration:_u("function"),ClassDeclaration:_u("class"),ClassExpression:()=>!0,EnumDeclaration:_u("constant"),TypeAliasDeclaration:_u("type"),NamespaceDeclaration:_u("namespace"),VariableDefinition(t,e){t.matchContext(Fne)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function kD(t,e){let n=dE.get(e);if(n)return n;let i=[],r=!0;function s(o,l){let c=t.sliceString(o.from,o.to);i.push({label:c,type:l})}return e.cursor(bt.IncludeAnonymous).iterate(o=>{if(r)r=!1;else if(o.name){let l=Kne[o.name];if(l&&l(o,s)||_D.has(o.name))return!1}else if(o.to-o.from>8192){for(let l of kD(t,o.node))i.push(l);return!1}}),dE.set(e,i),i}const vm=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,N1=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function wD(t){let e=at(t.state).resolveInner(t.pos,-1);if(N1.indexOf(e.name)>-1)return null;let n=e.name=="VariableName"||e.to-e.from<20&&vm.test(t.state.sliceDoc(e.from,e.to));if(!n&&!t.explicit)return null;let i=[];for(let r=e;r;r=r.parent)_D.has(r.name)&&(i=i.concat(kD(t.state.doc,r)));return{options:i,from:n?e.from:t.pos,validFor:vm}}function Wy(t,e,n){var i;let r=[];for(;;){let s=e.firstChild,o;if(s?.name=="VariableName")return r.push(t(s)),{path:r.reverse(),name:n};if(s?.name=="MemberExpression"&&((i=o=s.lastChild)===null||i===void 0?void 0:i.name)=="PropertyName")r.push(t(o)),e=s;else return null}}function PD(t){let e=i=>t.state.doc.sliceString(i.from,i.to),n=at(t.state).resolveInner(t.pos,-1);return n.name=="PropertyName"?Wy(e,n.parent,e(n)):(n.name=="."||n.name=="?.")&&n.parent.name=="MemberExpression"?Wy(e,n.parent,""):N1.indexOf(n.name)>-1?null:n.name=="VariableName"||n.to-n.from<20&&vm.test(e(n))?{path:[],name:e(n)}:n.name=="MemberExpression"?Wy(e,n,""):t.explicit?{path:[],name:""}:null}function Jne(t,e){let n=[],i=new Set;for(let r=0;;r++){for(let o of(Object.getOwnPropertyNames||Object.keys)(t)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(o)||i.has(o))continue;i.add(o);let l;try{l=t[o]}catch{continue}n.push({label:o,type:typeof l=="function"?/^[A-Z]/.test(o)?"class":e?"function":"method":e?"variable":"property",boost:-r})}let s=Object.getPrototypeOf(t);if(!s)return n;t=s}}function eie(t){let e=new Map;return n=>{let i=PD(n);if(!i)return null;let r=t;for(let o of i.path)if(r=r[o],!r)return null;let s=e.get(r);return s||e.set(r,s=Jne(r,!i.path.length)),{from:n.pos-i.name.length,options:s,validFor:vm}}}const Xi=gs.define({name:"javascript",parser:ene.configure({props:[vo.add({IfStatement:Dl({except:/^\s*({|else\b)/}),TryStatement:Dl({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:rJ,SwitchBody:t=>{let e=t.textAfter,n=/^\s*\}/.test(e),i=/^\s*(case|default)\b/.test(e);return t.baseIndent+(n?0:i?1:2)*t.unit},Block:Nx({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":Dl({except:/^\s*{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),So.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":lg,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),TD={test:t=>/^JSX/.test(t.name),facet:og({commentTokens:{block:{open:"{/*",close:"*/}"}}})},z1=Xi.configure({dialect:"ts"},"typescript"),I1=Xi.configure({dialect:"jsx",props:[b1.add(t=>t.isTop?[TD]:void 0)]}),X1=Xi.configure({dialect:"jsx ts",props:[b1.add(t=>t.isTop?[TD]:void 0)]},"typescript");let CD=t=>({label:t,type:"keyword"});const QD="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(CD),tie=QD.concat(["declare","implements","private","protected","public"].map(CD));function Sm(t={}){let e=t.jsx?t.typescript?X1:I1:t.typescript?z1:Xi,n=t.typescript?SD.concat(tie):j1.concat(QD);return new Cr(e,[Xi.data.of({autocomplete:nne(N1,hD(n))}),Xi.data.of({autocomplete:wD}),t.jsx?ED:[]])}function nie(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function pE(t,e,n=t.length){for(let i=e?.firstChild;i;i=i.nextSibling)if(i.name=="JSXIdentifier"||i.name=="JSXBuiltin"||i.name=="JSXNamespacedName"||i.name=="JSXMemberExpression")return t.sliceString(i.from,Math.min(i.to,n));return""}const iie=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),ED=ge.inputHandler.of((t,e,n,i,r)=>{if((iie?t.composing:t.compositionStarted)||t.state.readOnly||e!=n||i!=">"&&i!="/"||!Xi.isActiveAt(t.state,e,-1))return!1;let s=r(),{state:o}=s,l=o.changeByRange(c=>{var h;let{head:d}=c,p=at(o).resolveInner(d-1,-1),g;if(p.name=="JSXStartTag"&&(p=p.parent),!(o.doc.sliceString(d-1,d)!=i||p.name=="JSXAttributeValue"&&p.to>d)){if(i==">"&&p.name=="JSXFragmentTag")return{range:c,changes:{from:d,insert:"</>"}};if(i=="/"&&p.name=="JSXStartCloseTag"){let O=p.parent,x=O.parent;if(x&&O.from==d-2&&((g=pE(o.doc,x.firstChild,d))||((h=x.firstChild)===null||h===void 0?void 0:h.name)=="JSXFragmentTag")){let S=`${g}>`;return{range:se.cursor(d+S.length,-1),changes:{from:d,insert:S}}}}else if(i==">"){let O=nie(p);if(O&&O.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(d,d+2))&&(g=pE(o.doc,O,d)))return{range:c,changes:{from:d,insert:`</${g}>`}}}}return{range:c}});return l.changes.empty?!1:(t.dispatch([s,o.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});function rie(t,e){return e||(e={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},t.getRules().forEach((n,i)=>{var r;!((r=n.meta.docs)===null||r===void 0)&&r.recommended&&(e.rules[i]=2)})),n=>{let{state:i}=n,r=[];for(let{from:s,to:o}of Xi.findRegions(i)){let l=i.doc.lineAt(s),c={line:l.number-1,col:s-l.from,pos:s};for(let h of t.verify(i.sliceDoc(s,o),e))r.push(sie(h,i.doc,c))}return r}}function mE(t,e,n,i){return n.line(t+i.line).from+e+(t==1?i.col-1:-1)}function sie(t,e,n){let i=mE(t.line,t.column,e,n),r={from:i,to:t.endLine!=null&&t.endColumn!=1?mE(t.endLine,t.endColumn,e,n):i,message:t.message,source:t.ruleId?"eslint:"+t.ruleId:"eslint",severity:t.severity==1?"warning":"error"};if(t.fix){let{range:s,text:o}=t.fix,l=s[0]+n.pos-i,c=s[1]+n.pos-i;r.actions=[{name:"fix",apply(h,d){h.dispatch({changes:{from:d+l,to:d+c,insert:o},scrollIntoView:!0})}}]}return r}const tp=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:ED,completionPath:PD,esLint:rie,javascript:Sm,javascriptLanguage:Xi,jsxLanguage:I1,localCompletionSource:wD,scopeCompletionSource:eie,snippets:j1,tsxLanguage:X1,typescriptLanguage:z1,typescriptSnippets:SD},Symbol.toStringTag,{value:"Module"})),oie=vs({String:E.string,Number:E.number,"True False":E.bool,PropertyName:E.propertyName,Null:E.null,", :":E.separator,"[ ]":E.squareBracket,"{ }":E.brace}),aie=Os.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[oie],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),lie=()=>t=>{try{JSON.parse(t.state.doc.toString())}catch(e){if(!(e instanceof SyntaxError))throw e;const n=cie(e,t.state.doc);return[{from:n,message:e.message,severity:"error",to:n}]}return[]};function cie(t,e){let n;return(n=t.message.match(/at position (\d+)/))?Math.min(+n[1],e.length):(n=t.message.match(/at line (\d+) column (\d+)/))?Math.min(e.line(+n[1]).from+ +n[2]-1,e.length):0}const AD=gs.define({name:"json",parser:aie.configure({props:[vo.add({Object:Dl({except:/^\s*\}/}),Array:Dl({except:/^\s*\]/})}),So.add({"Object Array":lg})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function RD(){return new Cr(AD)}const uie=Object.freeze(Object.defineProperty({__proto__:null,json:RD,jsonLanguage:AD,jsonParseLinter:lie},Symbol.toStringTag,{value:"Module"}));class _m{static create(e,n,i,r,s){let o=r+(r<<8)+e+(n<<4)|0;return new _m(e,n,i,o,s,[],[])}constructor(e,n,i,r,s,o,l){this.type=e,this.value=n,this.from=i,this.hash=r,this.end=s,this.children=o,this.positions=l,this.hashProp=[[Le.contextHash,r]]}addChild(e,n){e.prop(Le.contextHash)!=this.hash&&(e=new Ue(e.type,e.children,e.positions,e.length,this.hashProp)),this.children.push(e),this.positions.push(n)}toTree(e,n=this.end){let i=this.children.length-1;return i>=0&&(n=Math.max(n,this.positions[i]+this.children[i].length+this.from)),new Ue(e.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(r,s,o)=>new Ue(Bt.none,r,s,o,this.hashProp)})}}var pe;(function(t){t[t.Document=1]="Document",t[t.CodeBlock=2]="CodeBlock",t[t.FencedCode=3]="FencedCode",t[t.Blockquote=4]="Blockquote",t[t.HorizontalRule=5]="HorizontalRule",t[t.BulletList=6]="BulletList",t[t.OrderedList=7]="OrderedList",t[t.ListItem=8]="ListItem",t[t.ATXHeading1=9]="ATXHeading1",t[t.ATXHeading2=10]="ATXHeading2",t[t.ATXHeading3=11]="ATXHeading3",t[t.ATXHeading4=12]="ATXHeading4",t[t.ATXHeading5=13]="ATXHeading5",t[t.ATXHeading6=14]="ATXHeading6",t[t.SetextHeading1=15]="SetextHeading1",t[t.SetextHeading2=16]="SetextHeading2",t[t.HTMLBlock=17]="HTMLBlock",t[t.LinkReference=18]="LinkReference",t[t.Paragraph=19]="Paragraph",t[t.CommentBlock=20]="CommentBlock",t[t.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",t[t.Escape=22]="Escape",t[t.Entity=23]="Entity",t[t.HardBreak=24]="HardBreak",t[t.Emphasis=25]="Emphasis",t[t.StrongEmphasis=26]="StrongEmphasis",t[t.Link=27]="Link",t[t.Image=28]="Image",t[t.InlineCode=29]="InlineCode",t[t.HTMLTag=30]="HTMLTag",t[t.Comment=31]="Comment",t[t.ProcessingInstruction=32]="ProcessingInstruction",t[t.Autolink=33]="Autolink",t[t.HeaderMark=34]="HeaderMark",t[t.QuoteMark=35]="QuoteMark",t[t.ListMark=36]="ListMark",t[t.LinkMark=37]="LinkMark",t[t.EmphasisMark=38]="EmphasisMark",t[t.CodeMark=39]="CodeMark",t[t.CodeText=40]="CodeText",t[t.CodeInfo=41]="CodeInfo",t[t.LinkTitle=42]="LinkTitle",t[t.LinkLabel=43]="LinkLabel",t[t.URL=44]="URL"})(pe||(pe={}));class hie{constructor(e,n){this.start=e,this.content=n,this.marks=[],this.parsers=[]}}class fie{constructor(){this.text="",this.baseIndent=0,this.basePos=0,this.depth=0,this.markers=[],this.pos=0,this.indent=0,this.next=-1}forward(){this.basePos>this.pos&&this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent),this.pos=e,this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return Gu(this.text,e)}reset(e){for(this.text=e,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(e){this.basePos=e,this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e,this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,n=0,i=0){for(let r=n;r<e;r++)i+=this.text.charCodeAt(r)==9?4-i%4:1;return i}findColumn(e){let n=0;for(let i=0;n<this.text.length&&i<e;n++)i+=this.text.charCodeAt(n)==9?4-i%4:1;return n}scrub(){if(!this.baseIndent)return this.text;let e="";for(let n=0;n<this.basePos;n++)e+=" ";return e+this.text.slice(this.basePos)}}function gE(t,e,n){if(n.pos==n.text.length||t!=e.block&&n.indent>=e.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let i=(t.type==pe.OrderedList?Z1:B1)(n,e,!1);return i>0&&(t.type!=pe.BulletList||V1(n,e,!1)<0)&&n.text.charCodeAt(n.pos+i-1)==t.value}const LD={[pe.Blockquote](t,e,n){return n.next!=62?!1:(n.markers.push(He(pe.QuoteMark,e.lineStart+n.pos,e.lineStart+n.pos+1)),n.moveBase(n.pos+(qi(n.text.charCodeAt(n.pos+1))?2:1)),t.end=e.lineStart+n.text.length,!0)},[pe.ListItem](t,e,n){return n.indent<n.baseIndent+t.value&&n.next>-1?!1:(n.moveBaseColumn(n.baseIndent+t.value),!0)},[pe.OrderedList]:gE,[pe.BulletList]:gE,[pe.Document](){return!0}};function qi(t){return t==32||t==9||t==10||t==13}function Gu(t,e=0){for(;e<t.length&&qi(t.charCodeAt(e));)e++;return e}function OE(t,e,n){for(;e>n&&qi(t.charCodeAt(e-1));)e--;return e}function $D(t){if(t.next!=96&&t.next!=126)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;if(e<t.pos+3)return-1;if(t.next==96){for(let n=e;n<t.text.length;n++)if(t.text.charCodeAt(n)==96)return-1}return e}function MD(t){return t.next!=62?-1:t.text.charCodeAt(t.pos+1)==32?2:1}function V1(t,e,n){if(t.next!=42&&t.next!=45&&t.next!=95)return-1;let i=1;for(let r=t.pos+1;r<t.text.length;r++){let s=t.text.charCodeAt(r);if(s==t.next)i++;else if(!qi(s))return-1}return n&&t.next==45&&ND(t)>-1&&t.depth==e.stack.length&&e.parser.leafBlockParsers.indexOf(VD.SetextHeading)>-1||i<3?-1:1}function DD(t,e){for(let n=t.stack.length-1;n>=0;n--)if(t.stack[n].type==e)return!0;return!1}function B1(t,e,n){return(t.next==45||t.next==43||t.next==42)&&(t.pos==t.text.length-1||qi(t.text.charCodeAt(t.pos+1)))&&(!n||DD(e,pe.BulletList)||t.skipSpace(t.pos+2)<t.text.length)?1:-1}function Z1(t,e,n){let i=t.pos,r=t.next;for(;r>=48&&r<=57;){i++;if(i==t.text.length)return-1;r=t.text.charCodeAt(i)}return i==t.pos||i>t.pos+9||r!=46&&r!=41||i<t.text.length-1&&!qi(t.text.charCodeAt(i+1))||n&&!DD(e,pe.OrderedList)&&(t.skipSpace(i+1)==t.text.length||i>t.pos+1||t.next!=49)?-1:i+1-t.pos}function jD(t){if(t.next!=35)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==35;)e++;if(e<t.text.length&&t.text.charCodeAt(e)!=32)return-1;let n=e-t.pos;return n>6?-1:n}function ND(t){if(t.next!=45&&t.next!=61||t.indent>=t.baseIndent+4)return-1;let e=t.pos+1;for(;e<t.text.length&&t.text.charCodeAt(e)==t.next;)e++;let n=e;for(;e<t.text.length&&qi(t.text.charCodeAt(e));)e++;return e==t.text.length?n:-1}const Gx=/^[ \t]*$/,zD=/-->/,ID=/\?>/,Wx=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*<!--/,zD],[/^\s*<\?/,ID],[/^\s*<![A-Z]/,/>/],[/^\s*<!\[CDATA\[/,/\]\]>/],[/^\s*<\/?(?: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|h1|h2|h3|h4|h5|h6|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|\/?>|$)/i,Gx],[/^\s*(?:<\/[a-z][\w-]*\s*>|<[a-z][\w-]*(\s+[a-z:_][\w-.]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*>)\s*$/i,Gx]];function XD(t,e,n){if(t.next!=60)return-1;let i=t.text.slice(t.pos);for(let r=0,s=Wx.length-(n?1:0);r<s;r++)if(Wx[r][0].test(i))return r;return-1}function yE(t,e){let n=t.countIndent(e,t.pos,t.indent),i=t.countIndent(t.skipSpace(e),e,n);return i>=n+5?n+1:i}function qo(t,e,n){let i=t.length-1;i>=0&&t[i].to==e&&t[i].type==pe.CodeText?t[i].to=n:t.push(He(pe.CodeText,e,n))}const np={LinkReference:void 0,IndentedCode(t,e){let n=e.baseIndent+4;if(e.indent<n)return!1;let i=e.findColumn(n),r=t.lineStart+i,s=t.lineStart+e.text.length,o=[],l=[];for(qo(o,r,s);t.nextLine()&&e.depth>=t.stack.length;)if(e.pos==e.text.length){qo(l,t.lineStart-1,t.lineStart);for(let c of e.markers)l.push(c)}else{if(e.indent<n)break;{if(l.length){for(let h of l)h.type==pe.CodeText?qo(o,h.from,h.to):o.push(h);l=[]}qo(o,t.lineStart-1,t.lineStart);for(let h of e.markers)o.push(h);s=t.lineStart+e.text.length;let c=t.lineStart+e.findColumn(e.baseIndent+4);c<s&&qo(o,c,s)}}return l.length&&(l=l.filter(c=>c.type!=pe.CodeText),l.length&&(e.markers=l.concat(e.markers))),t.addNode(t.buffer.writeElements(o,-r).finish(pe.CodeBlock,s-r),r),!0},FencedCode(t,e){let n=$D(e);if(n<0)return!1;let i=t.lineStart+e.pos,r=e.next,s=n-e.pos,o=e.skipSpace(n),l=OE(e.text,e.text.length,o),c=[He(pe.CodeMark,i,i+s)];o<l&&c.push(He(pe.CodeInfo,t.lineStart+o,t.lineStart+l));for(let h=!0;t.nextLine()&&e.depth>=t.stack.length;h=!1){let d=e.pos;if(e.indent-e.baseIndent<4)for(;d<e.text.length&&e.text.charCodeAt(d)==r;)d++;if(d-e.pos>=s&&e.skipSpace(d)==e.text.length){for(let p of e.markers)c.push(p);c.push(He(pe.CodeMark,t.lineStart+e.pos,t.lineStart+d)),t.nextLine();break}else{h||qo(c,t.lineStart-1,t.lineStart);for(let O of e.markers)c.push(O);let p=t.lineStart+e.basePos,g=t.lineStart+e.text.length;p<g&&qo(c,p,g)}}return t.addNode(t.buffer.writeElements(c,-i).finish(pe.FencedCode,t.prevLineEnd()-i),i),!0},Blockquote(t,e){let n=MD(e);return n<0?!1:(t.startContext(pe.Blockquote,e.pos),t.addNode(pe.QuoteMark,t.lineStart+e.pos,t.lineStart+e.pos+1),e.moveBase(e.pos+n),null)},HorizontalRule(t,e){if(V1(e,t,!1)<0)return!1;let n=t.lineStart+e.pos;return t.nextLine(),t.addNode(pe.HorizontalRule,n),!0},BulletList(t,e){let n=B1(e,t,!1);if(n<0)return!1;t.block.type!=pe.BulletList&&t.startContext(pe.BulletList,e.basePos,e.next);let i=yE(e,e.pos+1);return t.startContext(pe.ListItem,e.basePos,i-e.baseIndent),t.addNode(pe.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+n),e.moveBaseColumn(i),null},OrderedList(t,e){let n=Z1(e,t,!1);if(n<0)return!1;t.block.type!=pe.OrderedList&&t.startContext(pe.OrderedList,e.basePos,e.text.charCodeAt(e.pos+n-1));let i=yE(e,e.pos+n);return t.startContext(pe.ListItem,e.basePos,i-e.baseIndent),t.addNode(pe.ListMark,t.lineStart+e.pos,t.lineStart+e.pos+n),e.moveBaseColumn(i),null},ATXHeading(t,e){let n=jD(e);if(n<0)return!1;let i=e.pos,r=t.lineStart+i,s=OE(e.text,e.text.length,i),o=s;for(;o>i&&e.text.charCodeAt(o-1)==e.next;)o--;(o==s||o==i||!qi(e.text.charCodeAt(o-1)))&&(o=e.text.length);let l=t.buffer.write(pe.HeaderMark,0,n).writeElements(t.parser.parseInline(e.text.slice(i+n+1,o),r+n+1),-r);o<e.text.length&&l.write(pe.HeaderMark,o-i,s-i);let c=l.finish(pe.ATXHeading1-1+n,e.text.length-i);return t.nextLine(),t.addNode(c,r),!0},HTMLBlock(t,e){let n=XD(e,t,!1);if(n<0)return!1;let i=t.lineStart+e.pos,r=Wx[n][1],s=[],o=r!=Gx;for(;!r.test(e.text)&&t.nextLine();){if(e.depth<t.stack.length){o=!1;break}for(let h of e.markers)s.push(h)}o&&t.nextLine();let l=r==zD?pe.CommentBlock:r==ID?pe.ProcessingInstructionBlock:pe.HTMLBlock,c=t.prevLineEnd();return t.addNode(t.buffer.writeElements(s,-i).finish(l,c-i),i),!0},SetextHeading:void 0};class die{constructor(e){this.stage=0,this.elts=[],this.pos=0,this.start=e.start,this.advance(e.content)}nextLine(e,n,i){if(this.stage==-1)return!1;let r=i.content+`
261
+ `+n.scrub(),s=this.advance(r);return s>-1&&s<r.length?this.complete(e,i,s):!1}finish(e,n){return(this.stage==2||this.stage==3)&&Gu(n.content,this.pos)==n.content.length?this.complete(e,n,n.content.length):!1}complete(e,n,i){return e.addLeafElement(n,He(pe.LinkReference,this.start,this.start+i,this.elts)),!0}nextStage(e){return e?(this.pos=e.to-this.start,this.elts.push(e),this.stage++,!0):(e===!1&&(this.stage=-1),!1)}advance(e){for(;;){if(this.stage==-1)return-1;if(this.stage==0){if(!this.nextStage(FD(e,this.pos,this.start,!0)))return-1;if(e.charCodeAt(this.pos)!=58)return this.stage=-1;this.elts.push(He(pe.LinkMark,this.pos+this.start,this.pos+this.start+1)),this.pos++}else if(this.stage==1){if(!this.nextStage(WD(e,Gu(e,this.pos),this.start)))return-1}else if(this.stage==2){let n=Gu(e,this.pos),i=0;if(n>this.pos){let r=HD(e,n,this.start);if(r){let s=Hy(e,r.to-this.start);s>0&&(this.nextStage(r),i=s)}}return i||(i=Hy(e,this.pos)),i>0&&i<e.length?i:-1}else return Hy(e,this.pos)}}}function Hy(t,e){for(;e<t.length;e++){let n=t.charCodeAt(e);if(n==10)break;if(!qi(n))return-1}return e}class pie{nextLine(e,n,i){let r=n.depth<e.stack.length?-1:ND(n),s=n.next;if(r<0)return!1;let o=He(pe.HeaderMark,e.lineStart+n.pos,e.lineStart+r);return e.nextLine(),e.addLeafElement(i,He(s==61?pe.SetextHeading1:pe.SetextHeading2,i.start,e.prevLineEnd(),[...e.parser.parseInline(i.content,i.start),o])),!0}finish(){return!1}}const VD={LinkReference(t,e){return e.content.charCodeAt(0)==91?new die(e):null},SetextHeading(){return new pie}},mie=[(t,e)=>jD(e)>=0,(t,e)=>$D(e)>=0,(t,e)=>MD(e)>=0,(t,e)=>B1(e,t,!0)>=0,(t,e)=>Z1(e,t,!0)>=0,(t,e)=>V1(e,t,!0)>=0,(t,e)=>XD(e,t,!0)>=0],gie={text:"",end:0};class Oie{constructor(e,n,i,r){this.parser=e,this.input=n,this.ranges=r,this.line=new fie,this.atEnd=!1,this.reusePlaceholders=new Map,this.stoppedAt=null,this.rangeI=0,this.to=r[r.length-1].to,this.lineStart=this.absoluteLineStart=this.absoluteLineEnd=r[0].from,this.block=_m.create(pe.Document,0,this.lineStart,0,0),this.stack=[this.block],this.fragments=i.length?new xie(i,n):null,this.readLine()}get parsedPos(){return this.absoluteLineStart}advance(){if(this.stoppedAt!=null&&this.absoluteLineStart>this.stoppedAt)return this.finish();let{line:e}=this;for(;;){for(let i=0;;){let r=e.depth<this.stack.length?this.stack[this.stack.length-1]:null;for(;i<e.markers.length&&(!r||e.markers[i].from<r.end);){let s=e.markers[i++];this.addNode(s.type,s.from,s.to)}if(!r)break;this.finishContext()}if(e.pos<e.text.length)break;if(!this.nextLine())return this.finish()}if(this.fragments&&this.reuseFragment(e.basePos))return null;e:for(;;){for(let i of this.parser.blockParsers)if(i){let r=i(this,e);if(r!=!1){if(r==!0)return null;e.forward();continue e}}break}let n=new hie(this.lineStart+e.pos,e.text.slice(e.pos));for(let i of this.parser.leafBlockParsers)if(i){let r=i(this,n);r&&n.parsers.push(r)}e:for(;this.nextLine()&&e.pos!=e.text.length;){if(e.indent<e.baseIndent+4){for(let i of this.parser.endLeafBlock)if(i(this,e,n))break e}for(let i of n.parsers)if(i.nextLine(this,e,n))return null;n.content+=`
262
+ `+e.scrub();for(let i of e.markers)n.marks.push(i)}return this.finishLeaf(n),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let n=this.fragments.takeNodes(this);return n?(this.absoluteLineStart+=n,this.lineStart=KD(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let n=gie;if(n.end=e,e>=this.to)n.text="";else if(n.text=this.lineChunkAt(e),n.end+=n.text.length,this.ranges.length>1){let i=this.absoluteLineStart,r=this.rangeI;for(;this.ranges[r].to<n.end;){r++;let s=this.ranges[r].from,o=this.lineChunkAt(s);n.end=s+o.length,n.text=n.text.slice(0,this.ranges[r-1].to-i)+o,i=n.end-n.text.length}}return n}readLine(){let{line:e}=this,{text:n,end:i}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=i,e.reset(n);e.depth<this.stack.length;e.depth++){let r=this.stack[e.depth],s=this.parser.skipContextMarkup[r.type];if(!s)throw new Error("Unhandled block context "+pe[r.type]);let o=this.line.markers.length;if(!s(r,this,e)){this.line.markers.length>o&&(r.end=this.line.markers[this.line.markers.length-1].to);break}e.forward()}}lineChunkAt(e){let n=this.input.chunk(e),i;if(this.input.lineChunks)i=n==`
263
+ `?"":n;else{let r=n.indexOf(`
264
+ `);i=r<0?n:n.slice(0,r)}return e+i.length>this.to?i.slice(0,this.to-e):i}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,n,i=0){this.block=_m.create(e,i,this.lineStart+n,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,n,i=0){this.startContext(this.parser.getNodeType(e),n,i)}addNode(e,n,i){typeof e=="number"&&(e=new Ue(this.parser.nodeSet.types[e],Fl,Fl,(i??this.prevLineEnd())-n)),this.block.addChild(e,n-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,n){this.addNode(this.buffer.writeElements(Fx(n.children,e.marks),-n.from).finish(n.type,n.to-n.from),n.from)}finishContext(){let e=this.stack.pop(),n=this.stack[this.stack.length-1];n.addChild(e.toTree(this.parser.nodeSet),e.from-n.from),this.block=n}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?BD(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let i of e.parsers)if(i.finish(this,e))return;let n=Fx(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(n,-e.start).finish(pe.Paragraph,e.content.length),e.start)}elt(e,n,i,r){return typeof e=="string"?He(this.parser.getNodeType(e),n,i,r):new UD(e,n)}get buffer(){return new qD(this.parser.nodeSet)}}function BD(t,e,n,i,r){let s=t[e].to,o=[],l=[],c=n.from+i;function h(d,p){for(;p?d>=s:d>s;){let g=t[e+1].from-s;i+=g,d+=g,e++,s=t[e].to}}for(let d=n.firstChild;d;d=d.nextSibling){h(d.from+i,!0);let p=d.from+i,g,O=r.get(d.tree);O?g=O:d.to+i>s?(g=BD(t,e,d,i,r),h(d.to+i,!1)):g=d.toTree(),o.push(g),l.push(p-c)}return h(n.to+i,!1),new Ue(n.type,o,l,n.to+i-c,n.tree?n.tree.propValues:void 0)}class gg extends tg{constructor(e,n,i,r,s,o,l,c,h){super(),this.nodeSet=e,this.blockParsers=n,this.leafBlockParsers=i,this.blockNames=r,this.endLeafBlock=s,this.skipContextMarkup=o,this.inlineParsers=l,this.inlineNames=c,this.wrappers=h,this.nodeTypes=Object.create(null);for(let d of e.types)this.nodeTypes[d.name]=d.id}createParse(e,n,i){let r=new Oie(this,e,n,i);for(let s of this.wrappers)r=s(r,e,n,i);return r}configure(e){let n=Hx(e);if(!n)return this;let{nodeSet:i,skipContextMarkup:r}=this,s=this.blockParsers.slice(),o=this.leafBlockParsers.slice(),l=this.blockNames.slice(),c=this.inlineParsers.slice(),h=this.inlineNames.slice(),d=this.endLeafBlock.slice(),p=this.wrappers;if(ku(n.defineNodes)){r=Object.assign({},r);let g=i.types.slice(),O;for(let x of n.defineNodes){let{name:S,block:k,composite:_,style:T}=typeof x=="string"?{name:x}:x;if(g.some(j=>j.name==S))continue;_&&(r[g.length]=(j,A,M)=>_(A,M,j.value));let C=g.length,D=_?["Block","BlockContext"]:k?C>=pe.ATXHeading1&&C<=pe.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;g.push(Bt.define({id:C,name:S,props:D&&[[Le.group,D]]})),T&&(O||(O={}),Array.isArray(T)||T instanceof yr?O[S]=T:Object.assign(O,T))}i=new hc(g),O&&(i=i.extend(vs(O)))}if(ku(n.props)&&(i=i.extend(...n.props)),ku(n.remove))for(let g of n.remove){let O=this.blockNames.indexOf(g),x=this.inlineNames.indexOf(g);O>-1&&(s[O]=o[O]=void 0),x>-1&&(c[x]=void 0)}if(ku(n.parseBlock))for(let g of n.parseBlock){let O=l.indexOf(g.name);if(O>-1)s[O]=g.parse,o[O]=g.leaf;else{let x=g.before?ip(l,g.before):g.after?ip(l,g.after)+1:l.length-1;s.splice(x,0,g.parse),o.splice(x,0,g.leaf),l.splice(x,0,g.name)}g.endLeaf&&d.push(g.endLeaf)}if(ku(n.parseInline))for(let g of n.parseInline){let O=h.indexOf(g.name);if(O>-1)c[O]=g.parse;else{let x=g.before?ip(h,g.before):g.after?ip(h,g.after)+1:h.length-1;c.splice(x,0,g.parse),h.splice(x,0,g.name)}}return n.wrap&&(p=p.concat(n.wrap)),new gg(i,s,o,l,d,r,c,h,p)}getNodeType(e){let n=this.nodeTypes[e];if(n==null)throw new RangeError(`Unknown node type '${e}'`);return n}parseInline(e,n){let i=new q1(this,e,n);e:for(let r=n;r<i.end;){let s=i.char(r);for(let o of this.inlineParsers)if(o){let l=o(i,s,r);if(l>=0){r=l;continue e}}r++}return i.resolveMarkers(0)}}function ku(t){return t!=null&&t.length>0}function Hx(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let e=Hx(t[0]);if(t.length==1)return e;let n=Hx(t.slice(1));if(!n||!e)return e||n;let i=(o,l)=>(o||Fl).concat(l||Fl),r=e.wrap,s=n.wrap;return{props:i(e.props,n.props),defineNodes:i(e.defineNodes,n.defineNodes),parseBlock:i(e.parseBlock,n.parseBlock),parseInline:i(e.parseInline,n.parseInline),remove:i(e.remove,n.remove),wrap:r?s?(o,l,c,h)=>r(s(o,l,c,h),l,c,h):r:s}}function ip(t,e){let n=t.indexOf(e);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return n}let ZD=[Bt.none];for(let t=1,e;e=pe[t];t++)ZD[t]=Bt.define({id:t,name:e,props:t>=pe.Escape?[]:[[Le.group,t in LD?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});const Fl=[];let qD=class{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,n,i,r=0){return this.content.push(e,n,i,4+r*4),this}writeElements(e,n=0){for(let i of e)i.writeTo(this,n);return this}finish(e,n){return Ue.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:n})}},Th=class{constructor(e,n,i,r=Fl){this.type=e,this.from=n,this.to=i,this.children=r}writeTo(e,n){let i=e.content.length;e.writeElements(this.children,n),e.content.push(this.type,this.from+n,this.to+n,e.content.length+4-i)}toTree(e){return new qD(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class UD{constructor(e,n){this.tree=e,this.from=n}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return Fl}writeTo(e,n){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+n,this.to+n,-1)}toTree(){return this.tree}}function He(t,e,n,i){return new Th(t,e,n,i)}const YD={resolve:"Emphasis",mark:"EmphasisMark"},GD={resolve:"Emphasis",mark:"EmphasisMark"},Fo={},km={};class fi{constructor(e,n,i,r){this.type=e,this.from=n,this.to=i,this.side=r}}const bE="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let Ch=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{Ch=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}const Fy={Escape(t,e,n){if(e!=92||n==t.end-1)return-1;let i=t.char(n+1);for(let r=0;r<bE.length;r++)if(bE.charCodeAt(r)==i)return t.append(He(pe.Escape,n,n+2));return-1},Entity(t,e,n){if(e!=38)return-1;let i=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(n+1,n+31));return i?t.append(He(pe.Entity,n,n+1+i[0].length)):-1},InlineCode(t,e,n){if(e!=96||n&&t.char(n-1)==96)return-1;let i=n+1;for(;i<t.end&&t.char(i)==96;)i++;let r=i-n,s=0;for(;i<t.end;i++)if(t.char(i)==96){if(s++,s==r&&t.char(i+1)!=96)return t.append(He(pe.InlineCode,n,i+1,[He(pe.CodeMark,n,n+r),He(pe.CodeMark,i+1-r,i+1)]))}else s=0;return-1},HTMLTag(t,e,n){if(e!=60||n==t.end-1)return-1;let i=t.slice(n+1,t.end),r=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(i);if(r)return t.append(He(pe.Autolink,n,n+1+r[0].length,[He(pe.LinkMark,n,n+1),He(pe.URL,n+1,n+r[0].length),He(pe.LinkMark,n+r[0].length,n+1+r[0].length)]));let s=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(i);if(s)return t.append(He(pe.Comment,n,n+1+s[0].length));let o=/^\?[^]*?\?>/.exec(i);if(o)return t.append(He(pe.ProcessingInstruction,n,n+1+o[0].length));let l=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(i);return l?t.append(He(pe.HTMLTag,n,n+1+l[0].length)):-1},Emphasis(t,e,n){if(e!=95&&e!=42)return-1;let i=n+1;for(;t.char(i)==e;)i++;let r=t.slice(n-1,n),s=t.slice(i,i+1),o=Ch.test(r),l=Ch.test(s),c=/\s|^$/.test(r),h=/\s|^$/.test(s),d=!h&&(!l||c||o),p=!c&&(!o||h||l),g=d&&(e==42||!p||o),O=p&&(e==42||!d||l);return t.append(new fi(e==95?YD:GD,n,i,(g?1:0)|(O?2:0)))},HardBreak(t,e,n){if(e==92&&t.char(n+1)==10)return t.append(He(pe.HardBreak,n,n+2));if(e==32){let i=n+1;for(;t.char(i)==32;)i++;if(t.char(i)==10&&i>=n+2)return t.append(He(pe.HardBreak,n,i+1))}return-1},Link(t,e,n){return e==91?t.append(new fi(Fo,n,n+1,1)):-1},Image(t,e,n){return e==33&&t.char(n+1)==91?t.append(new fi(km,n,n+2,1)):-1},LinkEnd(t,e,n){if(e!=93)return-1;for(let i=t.parts.length-1;i>=0;i--){let r=t.parts[i];if(r instanceof fi&&(r.type==Fo||r.type==km)){if(!r.side||t.skipSpace(r.to)==n&&!/[(\[]/.test(t.slice(n+1,n+2)))return t.parts[i]=null,-1;let s=t.takeContent(i),o=t.parts[i]=yie(t,s,r.type==Fo?pe.Link:pe.Image,r.from,n+1);if(r.type==Fo)for(let l=0;l<i;l++){let c=t.parts[l];c instanceof fi&&c.type==Fo&&(c.side=0)}return o.to}}return-1}};function yie(t,e,n,i,r){let{text:s}=t,o=t.char(r),l=r;if(e.unshift(He(pe.LinkMark,i,i+(n==pe.Image?2:1))),e.push(He(pe.LinkMark,r-1,r)),o==40){let c=t.skipSpace(r+1),h=WD(s,c-t.offset,t.offset),d;h&&(c=t.skipSpace(h.to),c!=h.to&&(d=HD(s,c-t.offset,t.offset),d&&(c=t.skipSpace(d.to)))),t.char(c)==41&&(e.push(He(pe.LinkMark,r,r+1)),l=c+1,h&&e.push(h),d&&e.push(d),e.push(He(pe.LinkMark,c,l)))}else if(o==91){let c=FD(s,r-t.offset,t.offset,!1);c&&(e.push(c),l=c.to)}return He(n,i,l,e)}function WD(t,e,n){if(t.charCodeAt(e)==60){for(let r=e+1;r<t.length;r++){let s=t.charCodeAt(r);if(s==62)return He(pe.URL,e+n,r+1+n);if(s==60||s==10)return!1}return null}else{let r=0,s=e;for(let o=!1;s<t.length;s++){let l=t.charCodeAt(s);if(qi(l))break;if(o)o=!1;else if(l==40)r++;else if(l==41){if(!r)break;r--}else l==92&&(o=!0)}return s>e?He(pe.URL,e+n,s+n):s==t.length?null:!1}}function HD(t,e,n){let i=t.charCodeAt(e);if(i!=39&&i!=34&&i!=40)return!1;let r=i==40?41:i;for(let s=e+1,o=!1;s<t.length;s++){let l=t.charCodeAt(s);if(o)o=!1;else{if(l==r)return He(pe.LinkTitle,e+n,s+1+n);l==92&&(o=!0)}}return null}function FD(t,e,n,i){for(let r=!1,s=e+1,o=Math.min(t.length,s+999);s<o;s++){let l=t.charCodeAt(s);if(r)r=!1;else{if(l==93)return i?!1:He(pe.LinkLabel,e+n,s+1+n);if(i&&!qi(l)&&(i=!1),l==91)return!1;l==92&&(r=!0)}}return null}class q1{constructor(e,n,i){this.parser=e,this.text=n,this.offset=i,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,n){return this.text.slice(e-this.offset,n-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,n,i,r,s){return this.append(new fi(e,n,i,(r?1:0)|(s?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let n=this.parts[e];if(n instanceof fi&&(n.type==Fo||n.type==km))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let i=e;i<this.parts.length;i++){let r=this.parts[i];if(!(r instanceof fi&&r.type.resolve&&r.side&2))continue;let s=r.type==YD||r.type==GD,o=r.to-r.from,l,c=i-1;for(;c>=e;c--){let S=this.parts[c];if(S instanceof fi&&S.side&1&&S.type==r.type&&!(s&&(r.side&1||S.side&2)&&(S.to-S.from+o)%3==0&&((S.to-S.from)%3||o%3))){l=S;break}}if(!l)continue;let h=r.type.resolve,d=[],p=l.from,g=r.to;if(s){let S=Math.min(2,l.to-l.from,o);p=l.to-S,g=r.from+S,h=S==1?"Emphasis":"StrongEmphasis"}l.type.mark&&d.push(this.elt(l.type.mark,p,l.to));for(let S=c+1;S<i;S++)this.parts[S]instanceof Th&&d.push(this.parts[S]),this.parts[S]=null;r.type.mark&&d.push(this.elt(r.type.mark,r.from,g));let O=this.elt(h,p,g,d);this.parts[c]=s&&l.from!=p?new fi(l.type,l.from,p,l.side):null,(this.parts[i]=s&&r.to!=g?new fi(r.type,g,r.to,r.side):null)?this.parts.splice(i,0,O):this.parts[i]=O}let n=[];for(let i=e;i<this.parts.length;i++){let r=this.parts[i];r instanceof Th&&n.push(r)}return n}findOpeningDelimiter(e){for(let n=this.parts.length-1;n>=0;n--){let i=this.parts[n];if(i instanceof fi&&i.type==e&&i.side&1)return n}return null}takeContent(e){let n=this.resolveMarkers(e);return this.parts.length=e,n}getDelimiterAt(e){let n=this.parts[e];return n instanceof fi?n:null}skipSpace(e){return Gu(this.text,e-this.offset)+this.offset}elt(e,n,i,r){return typeof e=="string"?He(this.parser.getNodeType(e),n,i,r):new UD(e,n)}}q1.linkStart=Fo;q1.imageStart=km;function Fx(t,e){if(!e.length)return t;if(!t.length)return e;let n=t.slice(),i=0;for(let r of e){for(;i<n.length&&n[i].to<r.to;)i++;if(i<n.length&&n[i].from<r.from){let s=n[i];s instanceof Th&&(n[i]=new Th(s.type,s.from,s.to,Fx(s.children,[r])))}else n.splice(i++,0,r)}return n}const bie=[pe.CodeBlock,pe.ListItem,pe.OrderedList,pe.BulletList];class xie{constructor(e,n){this.fragments=e,this.input=n,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,n){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let s=this.fragment.to;for(;s>0&&this.input.read(s-1,s)!=`
265
+ `;)s--;this.fragmentEnd=s?s-1:0}let i=this.cursor;i||(i=this.cursor=this.fragment.tree.cursor(),i.firstChild());let r=e+this.fragment.offset;for(;i.to<=r;)if(!i.parent())return!1;for(;;){if(i.from>=r)return this.fragment.from<=n;if(!i.childAfter(r))return!1}}matches(e){let n=this.cursor.tree;return n&&n.prop(Le.contextHash)==e}takeNodes(e){let n=this.cursor,i=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),s=e.absoluteLineStart,o=s,l=e.block.children.length,c=o,h=l;for(;;){if(n.to-i>r){if(n.type.isAnonymous&&n.firstChild())continue;break}let d=KD(n.from-i,e.ranges);if(n.to-i<=e.ranges[e.rangeI].to)e.addNode(n.tree,d);else{let p=new Ue(e.parser.nodeSet.types[pe.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(p,n.tree),e.addNode(p,d)}if(n.type.is("Block")&&(bie.indexOf(n.type.id)<0?(o=n.to-i,l=e.block.children.length):(o=c,l=h,c=n.to-i,h=e.block.children.length)),!n.nextSibling())break}for(;e.block.children.length>l;)e.block.children.pop(),e.block.positions.pop();return o-s}}function KD(t,e){let n=t;for(let i=1;i<e.length;i++){let r=e[i-1].to,s=e[i].from;r<t&&(n-=s-r)}return n}const vie=vs({"Blockquote/...":E.quote,HorizontalRule:E.contentSeparator,"ATXHeading1/... SetextHeading1/...":E.heading1,"ATXHeading2/... SetextHeading2/...":E.heading2,"ATXHeading3/...":E.heading3,"ATXHeading4/...":E.heading4,"ATXHeading5/...":E.heading5,"ATXHeading6/...":E.heading6,"Comment CommentBlock":E.comment,Escape:E.escape,Entity:E.character,"Emphasis/...":E.emphasis,"StrongEmphasis/...":E.strong,"Link/... Image/...":E.link,"OrderedList/... BulletList/...":E.list,"BlockQuote/...":E.quote,"InlineCode CodeText":E.monospace,"URL Autolink":E.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":E.processingInstruction,"CodeInfo LinkLabel":E.labelName,LinkTitle:E.string,Paragraph:E.content}),Sie=new gg(new hc(ZD).extend(vie),Object.keys(np).map(t=>np[t]),Object.keys(np).map(t=>VD[t]),Object.keys(np),mie,LD,Object.keys(Fy).map(t=>Fy[t]),Object.keys(Fy),[]);function _ie(t,e,n){let i=[];for(let r=t.firstChild,s=e;;r=r.nextSibling){let o=r?r.from:n;if(o>s&&i.push({from:s,to:o}),!r)break;s=r.to}return i}function kie(t){let{codeParser:e,htmlParser:n}=t;return{wrap:i1((r,s)=>{let o=r.type.id;if(e&&(o==pe.CodeBlock||o==pe.FencedCode)){let l="";if(o==pe.FencedCode){let h=r.node.getChild(pe.CodeInfo);h&&(l=s.read(h.from,h.to))}let c=e(l);if(c)return{parser:c,overlay:h=>h.type.id==pe.CodeText}}else if(n&&(o==pe.HTMLBlock||o==pe.HTMLTag||o==pe.CommentBlock))return{parser:n,overlay:_ie(r.node,r.from,r.to)};return null})}}const wie={resolve:"Strikethrough",mark:"StrikethroughMark"},Pie={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":E.strikethrough}},{name:"StrikethroughMark",style:E.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,n){if(e!=126||t.char(n+1)!=126||t.char(n+2)==126)return-1;let i=t.slice(n-1,n),r=t.slice(n+2,n+3),s=/\s|^$/.test(i),o=/\s|^$/.test(r),l=Ch.test(i),c=Ch.test(r);return t.addDelimiter(wie,n,n+2,!o&&(!c||s||l),!s&&(!l||o||c))},after:"Emphasis"}]};function Wu(t,e,n=0,i,r=0){let s=0,o=!0,l=-1,c=-1,h=!1,d=()=>{i.push(t.elt("TableCell",r+l,r+c,t.parser.parseInline(e.slice(l,c),r+l)))};for(let p=n;p<e.length;p++){let g=e.charCodeAt(p);g==124&&!h?((!o||l>-1)&&s++,o=!1,i&&(l>-1&&d(),i.push(t.elt("TableDelimiter",p+r,p+r+1))),l=c=-1):(h||g!=32&&g!=9)&&(l<0&&(l=p),c=p+1),h=!h&&g==92}return l>-1&&(s++,i&&d()),s}function xE(t,e){for(let n=e;n<t.length;n++){let i=t.charCodeAt(n);if(i==124)return!0;i==92&&n++}return!1}const JD=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class vE{constructor(){this.rows=null}nextLine(e,n,i){if(this.rows==null){this.rows=!1;let r;if((n.next==45||n.next==58||n.next==124)&&JD.test(r=n.text.slice(n.pos))){let s=[];Wu(e,i.content,0,s,i.start)==Wu(e,r,n.pos)&&(this.rows=[e.elt("TableHeader",i.start,i.start+i.content.length,s),e.elt("TableDelimiter",e.lineStart+n.pos,e.lineStart+n.text.length)])}}else if(this.rows){let r=[];Wu(e,n.text,n.pos,r,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+n.pos,e.lineStart+n.text.length,r))}return!1}finish(e,n){return this.rows?(e.addLeafElement(n,e.elt("Table",n.start,n.start+n.content.length,this.rows)),!0):!1}}const Tie={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":E.heading}},"TableRow",{name:"TableCell",style:E.content},{name:"TableDelimiter",style:E.processingInstruction}],parseBlock:[{name:"Table",leaf(t,e){return xE(e.content,0)?new vE:null},endLeaf(t,e,n){if(n.parsers.some(r=>r instanceof vE)||!xE(e.text,e.basePos))return!1;let i=t.peekLine();return JD.test(i)&&Wu(t,e.text,e.basePos)==Wu(t,i,e.basePos)},before:"SetextHeading"}]};class Cie{nextLine(){return!1}finish(e,n){return e.addLeafElement(n,e.elt("Task",n.start,n.start+n.content.length,[e.elt("TaskMarker",n.start,n.start+3),...e.parser.parseInline(n.content.slice(3),n.start+3)])),!0}}const Qie={defineNodes:[{name:"Task",block:!0,style:E.list},{name:"TaskMarker",style:E.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new Cie:null},after:"SetextHeading"}]},SE=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,_E=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,Eie=/[\w-]+\.[\w-]+($|\/)/,kE=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,wE=/\/[a-zA-Z\d@.]+/gy;function PE(t,e,n,i){let r=0;for(let s=e;s<n;s++)t[s]==i&&r++;return r}function Aie(t,e){_E.lastIndex=e;let n=_E.exec(t);if(!n||Eie.exec(n[0])[0].indexOf("_")>-1)return-1;let i=e+n[0].length;for(;;){let r=t[i-1],s;if(/[?!.,:*_~]/.test(r)||r==")"&&PE(t,e,i,")")>PE(t,e,i,"("))i--;else if(r==";"&&(s=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,i))))i=e+s.index;else break}return i}function TE(t,e){kE.lastIndex=e;let n=kE.exec(t);if(!n)return-1;let i=n[0][n[0].length-1];return i=="_"||i=="-"?-1:e+n[0].length-(i=="."?1:0)}const Rie={parseInline:[{name:"Autolink",parse(t,e,n){let i=n-t.offset;if(i&&/\w/.test(t.text[i-1]))return-1;SE.lastIndex=i;let r=SE.exec(t.text),s=-1;if(!r)return-1;if(r[1]||r[2]){if(s=Aie(t.text,i+r[0].length),s>-1&&t.hasOpenLink){let o=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(i,s));s=i+o[0].length}}else r[3]?s=TE(t.text,i):(s=TE(t.text,i+r[0].length),s>-1&&r[0]=="xmpp:"&&(wE.lastIndex=s,r=wE.exec(t.text),r&&(s=r.index+r[0].length)));return s<0?-1:(t.addElement(t.elt("URL",n,s+t.offset)),s+t.offset)}}]},Lie=[Tie,Qie,Pie,Rie];function ej(t,e,n){return(i,r,s)=>{if(r!=t||i.char(s+1)==t)return-1;let o=[i.elt(n,s,s+1)];for(let l=s+1;l<i.end;l++){let c=i.char(l);if(c==t)return i.addElement(i.elt(e,s,l+1,o.concat(i.elt(n,l,l+1))));if(c==92&&o.push(i.elt("Escape",l,l+++2)),qi(c))break}return-1}}const $ie={defineNodes:[{name:"Superscript",style:E.special(E.content)},{name:"SuperscriptMark",style:E.processingInstruction}],parseInline:[{name:"Superscript",parse:ej(94,"Superscript","SuperscriptMark")}]},Mie={defineNodes:[{name:"Subscript",style:E.special(E.content)},{name:"SubscriptMark",style:E.processingInstruction}],parseInline:[{name:"Subscript",parse:ej(126,"Subscript","SubscriptMark")}]},Die={defineNodes:[{name:"Emoji",style:E.character}],parseInline:[{name:"Emoji",parse(t,e,n){let i;return e!=58||!(i=/^[a-zA-Z_0-9]+:/.exec(t.slice(n+1,t.end)))?-1:t.addElement(t.elt("Emoji",n,n+1+i[0].length))}}]},jie=55,Nie=1,zie=56,Iie=2,Xie=57,Vie=3,CE=4,Bie=5,U1=6,tj=7,nj=8,ij=9,rj=10,Zie=11,qie=12,Uie=13,Ky=58,Yie=14,Gie=15,QE=59,sj=21,Wie=23,oj=24,Hie=25,Kx=27,aj=28,Fie=29,Kie=32,Jie=35,ere=37,tre=38,nre=0,ire=1,rre={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},sre={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},EE={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function ore(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}let AE=null,RE=null,LE=0;function Jx(t,e){let n=t.pos+e;if(LE==n&&RE==t)return AE;let i=t.peek(e),r="";for(;ore(i);)r+=String.fromCharCode(i),i=t.peek(++e);return RE=t,LE=n,AE=r?r.toLowerCase():i==are||i==lre?void 0:null}const lj=60,wm=62,Y1=47,are=63,lre=33,cre=45;function $E(t,e){this.name=t,this.parent=e}const ure=[U1,rj,tj,nj,ij],hre=new C1({start:null,shift(t,e,n,i){return ure.indexOf(e)>-1?new $E(Jx(i,1)||"",t):t},reduce(t,e){return e==sj&&t?t.parent:t},reuse(t,e,n,i){let r=e.type.id;return r==U1||r==ere?new $E(Jx(i,1)||"",t):t},strict:!1}),fre=new fn((t,e)=>{if(t.next!=lj){t.next<0&&e.context&&t.acceptToken(Ky);return}t.advance();let n=t.next==Y1;n&&t.advance();let i=Jx(t,0);if(i===void 0)return;if(!i)return t.acceptToken(n?Gie:Yie);let r=e.context?e.context.name:null;if(n){if(i==r)return t.acceptToken(Zie);if(r&&sre[r])return t.acceptToken(Ky,-2);if(e.dialectEnabled(nre))return t.acceptToken(qie);for(let s=e.context;s;s=s.parent)if(s.name==i)return;t.acceptToken(Uie)}else{if(i=="script")return t.acceptToken(tj);if(i=="style")return t.acceptToken(nj);if(i=="textarea")return t.acceptToken(ij);if(rre.hasOwnProperty(i))return t.acceptToken(rj);r&&EE[r]&&EE[r][i]?t.acceptToken(Ky,-1):t.acceptToken(U1)}},{contextual:!0}),dre=new fn(t=>{for(let e=0,n=0;;n++){if(t.next<0){n&&t.acceptToken(QE);break}if(t.next==cre)e++;else if(t.next==wm&&e>=2){n>=3&&t.acceptToken(QE,-2);break}else e=0;t.advance()}});function pre(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const mre=new fn((t,e)=>{if(t.next==Y1&&t.peek(1)==wm){let n=e.dialectEnabled(ire)||pre(e.context);t.acceptToken(n?Bie:CE,2)}else t.next==wm&&t.acceptToken(CE,1)});function G1(t,e,n){let i=2+t.length;return new fn(r=>{for(let s=0,o=0,l=0;;l++){if(r.next<0){l&&r.acceptToken(e);break}if(s==0&&r.next==lj||s==1&&r.next==Y1||s>=2&&s<i&&r.next==t.charCodeAt(s-2))s++,o++;else if(s==i&&r.next==wm){l>o?r.acceptToken(e,-o):r.acceptToken(n,-(o-2));break}else if((r.next==10||r.next==13)&&l){r.acceptToken(e,1);break}else s=o=0;r.advance()}})}const gre=G1("script",jie,Nie),Ore=G1("style",zie,Iie),yre=G1("textarea",Xie,Vie),bre=vs({"Text RawText IncompleteTag IncompleteCloseTag":E.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":E.angleBracket,TagName:E.tagName,"MismatchedCloseTag/TagName":[E.tagName,E.invalid],AttributeName:E.attributeName,"AttributeValue UnquotedAttributeValue":E.attributeValue,Is:E.definitionOperator,"EntityReference CharacterReference":E.character,Comment:E.blockComment,ProcessingInst:E.processingInstruction,DoctypeDecl:E.documentMeta}),xre=Os.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO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uO~OgvO~OgwO~OS|OT}OiyO~OS!POT}OiyO~OS!ROT}OiyO~OS!TOT}OiyO~OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:hre,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[bre],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bXaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UVaP!dpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pTaPOv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!dpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({WaP!b`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!b`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;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S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[gre,Ore,yre,mre,fre,dre,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function cj(t,e){let n=Object.create(null);for(let i of t.getChildren(oj)){let r=i.getChild(Hie),s=i.getChild(Kx)||i.getChild(aj);r&&(n[e.read(r.from,r.to)]=s?s.type.id==Kx?e.read(s.from+1,s.to-1):e.read(s.from,s.to):"")}return n}function ME(t,e){let n=t.getChild(Wie);return n?e.read(n.from,n.to):" "}function Jy(t,e,n){let i;for(let r of n)if(!r.attrs||r.attrs(i||(i=cj(t.node.parent.firstChild,e))))return{parser:r.parser};return null}function uj(t=[],e=[]){let n=[],i=[],r=[],s=[];for(let l of t)(l.tag=="script"?n:l.tag=="style"?i:l.tag=="textarea"?r:s).push(l);let o=e.length?Object.create(null):null;for(let l of e)(o[l.name]||(o[l.name]=[])).push(l);return i1((l,c)=>{let h=l.type.id;if(h==Fie)return Jy(l,c,n);if(h==Kie)return Jy(l,c,i);if(h==Jie)return Jy(l,c,r);if(h==sj&&s.length){let d=l.node,p=d.firstChild,g=p&&ME(p,c),O;if(g){for(let x of s)if(x.tag==g&&(!x.attrs||x.attrs(O||(O=cj(p,c))))){let S=d.lastChild,k=S.type.id==tre?S.from:d.to;if(k>p.to)return{parser:x.parser,overlay:[{from:p.to,to:k}]}}}}if(o&&h==oj){let d=l.node,p;if(p=d.firstChild){let g=o[c.read(p.from,p.to)];if(g)for(let O of g){if(O.tagName&&O.tagName!=ME(d.parent,c))continue;let x=d.lastChild;if(x.type.id==Kx){let S=x.from+1,k=x.lastChild,_=x.to-(k&&k.isError?0:1);if(_>S)return{parser:O.parser,overlay:[{from:S,to:_}]}}else if(x.type.id==aj)return{parser:O.parser,overlay:[{from:x.from,to:x.to}]}}}}return null})}const vre=122,DE=1,Sre=123,_re=124,hj=2,kre=125,wre=3,Pre=4,fj=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Tre=58,Cre=40,dj=95,Qre=91,Pp=45,Ere=46,Are=35,Rre=37,Lre=38,$re=92,Mre=10,Dre=42;function Qh(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function W1(t){return t>=48&&t<=57}function jE(t){return W1(t)||t>=97&&t<=102||t>=65&&t<=70}const pj=(t,e,n)=>(i,r)=>{for(let s=!1,o=0,l=0;;l++){let{next:c}=i;if(Qh(c)||c==Pp||c==dj||s&&W1(c))!s&&(c!=Pp||l>0)&&(s=!0),o===l&&c==Pp&&o++,i.advance();else if(c==$re&&i.peek(1)!=Mre){if(i.advance(),jE(i.next)){do i.advance();while(jE(i.next));i.next==32&&i.advance()}else i.next>-1&&i.advance();s=!0}else{s&&i.acceptToken(o==2&&r.canShift(hj)?e:c==Cre?n:t);break}}},jre=new fn(pj(Sre,hj,_re)),Nre=new fn(pj(kre,wre,Pre)),zre=new fn(t=>{if(fj.includes(t.peek(-1))){let{next:e}=t;(Qh(e)||e==dj||e==Are||e==Ere||e==Dre||e==Qre||e==Tre&&Qh(t.peek(1))||e==Pp||e==Lre)&&t.acceptToken(vre)}}),Ire=new fn(t=>{if(!fj.includes(t.peek(-1))){let{next:e}=t;if(e==Rre&&(t.advance(),t.acceptToken(DE)),Qh(e)){do t.advance();while(Qh(t.next)||W1(t.next));t.acceptToken(DE)}}}),Xre=vs({"AtKeyword import charset namespace keyframes media supports":E.definitionKeyword,"from to selector":E.keyword,NamespaceName:E.namespace,KeyframeName:E.labelName,KeyframeRangeName:E.operatorKeyword,TagName:E.tagName,ClassName:E.className,PseudoClassName:E.constant(E.className),IdName:E.labelName,"FeatureName PropertyName":E.propertyName,AttributeName:E.attributeName,NumberLiteral:E.number,KeywordQuery:E.keyword,UnaryQueryOp:E.operatorKeyword,"CallTag ValueName":E.atom,VariableName:E.variableName,Callee:E.operatorKeyword,Unit:E.unit,"UniversalSelector NestingSelector":E.definitionOperator,"MatchOp CompareOp":E.compareOperator,"ChildOp SiblingOp, LogicOp":E.logicOperator,BinOp:E.arithmeticOperator,Important:E.modifier,Comment:E.blockComment,ColorLiteral:E.color,"ParenthesizedContent StringLiteral":E.string,":":E.punctuation,"PseudoOp #":E.derefOperator,"; ,":E.separator,"( )":E.paren,"[ ]":E.squareBracket,"{ }":E.brace}),Vre={__proto__:null,lang:38,"nth-child":38,"nth-last-child":38,"nth-of-type":38,"nth-last-of-type":38,dir:38,"host-context":38,if:84,url:124,"url-prefix":124,domain:124,regexp:124},Bre={__proto__:null,or:98,and:98,not:106,only:106,layer:170},Zre={__proto__:null,selector:112,layer:166},qre={__proto__:null,"@import":162,"@media":174,"@charset":178,"@namespace":182,"@keyframes":188,"@supports":200,"@scope":204},Ure={__proto__:null,to:207},Yre=Os.deserialize({version:14,states:"EbQYQdOOO#qQdOOP#xO`OOOOQP'#Cf'#CfOOQP'#Ce'#CeO#}QdO'#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Selector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to AtRule Styles",maxTerm:143,nodeProps:[["isolate",-2,5,36,""],["openedBy",20,"(",28,"[",31,"{"],["closedBy",21,")",29,"]",32,"}"]],propSources:[Xre],skippedNodes:[0,5,106],repeatNodeCount:15,tokenData:"JQ~R!YOX$qX^%i^p$qpq%iqr({rs-ust/itu6Wuv$qvw7Qwx7cxy9Qyz9cz{9h{|:R|}>t}!O?V!O!P?t!P!Q@]!Q![AU![!]BP!]!^B{!^!_C^!_!`DY!`!aDm!a!b$q!b!cEn!c!}$q!}#OG{#O#P$q#P#QH^#Q#R6W#R#o$q#o#pHo#p#q6W#q#rIQ#r#sIc#s#y$q#y#z%i#z$f$q$f$g%i$g#BY$q#BY#BZ%i#BZ$IS$q$IS$I_%i$I_$I|$q$I|$JO%i$JO$JT$q$JT$JU%i$JU$KV$q$KV$KW%i$KW&FU$q&FU&FV%i&FV;'S$q;'S;=`Iz<%lO$q`$tSOy%Qz;'S%Q;'S;=`%c<%lO%Q`%VS!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Q`%fP;=`<%l%Q~%nh#s~OX%QX^'Y^p%Qpq'Yqy%Qz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!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjFfW!a`Oy%Qz!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjGV[iY!a`Oy%Qz}%Q}!OGO!O!Q%Q!Q![GO![!c%Q!c!}GO!}#T%Q#T#oGO#o;'S%Q;'S;=`%c<%lO%QjHQSmYOy%Qz;'S%Q;'S;=`%c<%lO%QnHcSl^Oy%Qz;'S%Q;'S;=`%c<%lO%QjHtSpYOy%Qz;'S%Q;'S;=`%c<%lO%QjIVSoYOy%Qz;'S%Q;'S;=`%c<%lO%QfIhU!mQOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Q`I}P;=`<%l$q",tokenizers:[zre,Ire,jre,Nre,1,2,3,4,new ym("m~RRYZ[z{a~~g~aO#v~~dP!P!Qg~lO#w~~",28,129)],topRules:{StyleSheet:[0,6],Styles:[1,105]},specialized:[{term:124,get:t=>Vre[t]||-1},{term:125,get:t=>Bre[t]||-1},{term:4,get:t=>Zre[t]||-1},{term:25,get:t=>qre[t]||-1},{term:123,get:t=>Ure[t]||-1}],tokenPrec:1963});let eb=null;function tb(){if(!eb&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],n=new Set;for(let i in t)i!="cssText"&&i!="cssFloat"&&typeof t[i]=="string"&&(/[A-Z]/.test(i)&&(i=i.replace(/[A-Z]/g,r=>"-"+r.toLowerCase())),n.has(i)||(e.push(i),n.add(i)));eb=e.sort().map(i=>({type:"property",label:i,apply:i+": "}))}return eb||[]}const NE=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),zE=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),Gre=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),Wre=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(t=>({type:"keyword",label:t})),is=/^(\w[\w-]*|-\w[\w-]*|)$/,Hre=/^-(-[\w-]*)?$/;function Fre(t,e){var n;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let i=(n=t.parent)===null||n===void 0?void 0:n.firstChild;return i?.name!="Callee"?!1:e.sliceString(i.from,i.to)=="var"}const IE=new AL,Kre=["Declaration"];function Jre(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function mj(t,e,n){if(e.to-e.from>4096){let i=IE.get(e);if(i)return i;let r=[],s=new Set,o=e.cursor(bt.IncludeAnonymous);if(o.firstChild())do for(let l of mj(t,o.node,n))s.has(l.label)||(s.add(l.label),r.push(l));while(o.nextSibling());return IE.set(e,r),r}else{let i=[],r=new Set;return e.cursor().iterate(s=>{var o;if(n(s)&&s.matchContext(Kre)&&((o=s.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let l=t.sliceString(s.from,s.to);r.has(l)||(r.add(l),i.push({label:l,type:"variable"}))}}),i}}const gj=t=>e=>{let{state:n,pos:i}=e,r=at(n).resolveInner(i,-1),s=r.type.isError&&r.from==r.to-1&&n.doc.sliceString(r.from,r.to)=="-";if(r.name=="PropertyName"||(s||r.name=="TagName")&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:tb(),validFor:is};if(r.name=="ValueName")return{from:r.from,options:zE,validFor:is};if(r.name=="PseudoClassName")return{from:r.from,options:NE,validFor:is};if(t(r)||(e.explicit||s)&&Fre(r,n.doc))return{from:t(r)||s?r.from:i,options:mj(n.doc,Jre(r),t),validFor:Hre};if(r.name=="TagName"){for(let{parent:c}=r;c;c=c.parent)if(c.name=="Block")return{from:r.from,options:tb(),validFor:is};return{from:r.from,options:Gre,validFor:is}}if(r.name=="AtKeyword")return{from:r.from,options:Wre,validFor:is};if(!e.explicit)return null;let o=r.resolve(i),l=o.childBefore(i);return l&&l.name==":"&&o.name=="PseudoClassSelector"?{from:i,options:NE,validFor:is}:l&&l.name==":"&&o.name=="Declaration"||o.name=="ArgList"?{from:i,options:zE,validFor:is}:o.name=="Block"||o.name=="Styles"?{from:i,options:tb(),validFor:is}:null},Oj=gj(t=>t.name=="VariableName"),Eh=gs.define({name:"css",parser:Yre.configure({props:[vo.add({Declaration:Dl()}),So.add({"Block KeyframeList":lg})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function yj(){return new Cr(Eh,Eh.data.of({autocomplete:Oj}))}const ese=Object.freeze(Object.defineProperty({__proto__:null,css:yj,cssCompletionSource:Oj,cssLanguage:Eh,defineCSSCompletionSource:gj},Symbol.toStringTag,{value:"Module"})),wu=["_blank","_self","_top","_parent"],nb=["ascii","utf-8","utf-16","latin1","latin1"],ib=["get","post","put","delete"],rb=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],li=["true","false"],Te={},tse={a:{attrs:{href:null,ping:null,type:null,media:null,target:wu,hreflang:null}},abbr:Te,address:Te,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Te,aside:Te,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Te,base:{attrs:{href:null,target:wu}},bdi:Te,bdo:Te,blockquote:{attrs:{cite:null}},body:Te,br:Te,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:rb,formmethod:ib,formnovalidate:["novalidate"],formtarget:wu,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Te,center:Te,cite:Te,code:Te,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Te,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Te,div:Te,dl:Te,dt:Te,em:Te,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Te,figure:Te,footer:Te,form:{attrs:{action:null,name:null,"accept-charset":nb,autocomplete:["on","off"],enctype:rb,method:ib,novalidate:["novalidate"],target:wu}},h1:Te,h2:Te,h3:Te,h4:Te,h5:Te,h6:Te,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Te,hgroup:Te,hr:Te,html:{attrs:{manifest:null}},i:Te,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:rb,formmethod:ib,formnovalidate:["novalidate"],formtarget:wu,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Te,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Te,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Te,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:nb,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Te,noscript:Te,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Te,param:{attrs:{name:null,value:null}},pre:Te,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Te,rt:Te,ruby:Te,samp:Te,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:nb}},section:Te,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Te,source:{attrs:{src:null,type:null,media:null}},span:Te,strong:Te,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Te,summary:Te,sup:Te,table:Te,tbody:Te,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Te,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Te,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Te,time:{attrs:{datetime:null}},title:Te,tr:Te,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Te,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Te},bj={accesskey:null,class:null,contenteditable:li,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:li,autocorrect:li,autocapitalize:li,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":li,"aria-autocomplete":["inline","list","both","none"],"aria-busy":li,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":li,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":li,"aria-hidden":li,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":li,"aria-multiselectable":li,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":li,"aria-relevant":null,"aria-required":li,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},xj="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of xj)bj[t]=null;class Ah{constructor(e,n){this.tags={...tse,...e},this.globalAttrs={...bj,...n},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}Ah.default=new Ah;function Kl(t,e,n=t.length){if(!e)return"";let i=e.firstChild,r=i&&i.getChild("TagName");return r?t.sliceString(r.from,Math.min(r.to,n)):""}function Jl(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function vj(t,e,n){let i=n.tags[Kl(t,Jl(e))];return i?.children||n.allTags}function H1(t,e){let n=[];for(let i=Jl(e);i&&!i.type.isTop;i=Jl(i.parent)){let r=Kl(t,i);if(r&&i.lastChild.name=="CloseTag")break;r&&n.indexOf(r)<0&&(e.name=="EndTag"||e.from>=i.firstChild.to)&&n.push(r)}return n}const Sj=/^[:\-\.\w\u00b7-\uffff]*$/;function XE(t,e,n,i,r){let s=/\s*>/.test(t.sliceDoc(r,r+5))?"":">",o=Jl(n,n.name=="StartTag"||n.name=="TagName");return{from:i,to:r,options:vj(t.doc,o,e).map(l=>({label:l,type:"type"})).concat(H1(t.doc,n).map((l,c)=>({label:"/"+l,apply:"/"+l+s,type:"type",boost:99-c}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function VE(t,e,n,i){let r=/\s*>/.test(t.sliceDoc(i,i+5))?"":">";return{from:n,to:i,options:H1(t.doc,e).map((s,o)=>({label:s,apply:s+r,type:"type",boost:99-o})),validFor:Sj}}function nse(t,e,n,i){let r=[],s=0;for(let o of vj(t.doc,n,e))r.push({label:"<"+o,type:"type"});for(let o of H1(t.doc,n))r.push({label:"</"+o+">",type:"type",boost:99-s++});return{from:i,to:i,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function ise(t,e,n,i,r){let s=Jl(n),o=s?e.tags[Kl(t.doc,s)]:null,l=o&&o.attrs?Object.keys(o.attrs):[],c=o&&o.globalAttrs===!1?l:l.length?l.concat(e.globalAttrNames):e.globalAttrNames;return{from:i,to:r,options:c.map(h=>({label:h,type:"property"})),validFor:Sj}}function rse(t,e,n,i,r){var s;let o=(s=n.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),l=[],c;if(o){let h=t.sliceDoc(o.from,o.to),d=e.globalAttrs[h];if(!d){let p=Jl(n),g=p?e.tags[Kl(t.doc,p)]:null;d=g?.attrs&&g.attrs[h]}if(d){let p=t.sliceDoc(i,r).toLowerCase(),g='"',O='"';/^['"]/.test(p)?(c=p[0]=='"'?/^[^"]*$/:/^[^']*$/,g="",O=t.sliceDoc(r,r+1)==p[0]?"":p[0],p=p.slice(1),i++):c=/^[^\s<>='"]*$/;for(let x of d)l.push({label:x,apply:g+x+O,type:"constant"})}}return{from:i,to:r,options:l,validFor:c}}function _j(t,e){let{state:n,pos:i}=e,r=at(n).resolveInner(i,-1),s=r.resolve(i);for(let o=i,l;s==r&&(l=r.childBefore(o));){let c=l.lastChild;if(!c||!c.type.isError||c.from<c.to)break;s=r=l,o=c.from}return r.name=="TagName"?r.parent&&/CloseTag$/.test(r.parent.name)?VE(n,r,r.from,i):XE(n,t,r,r.from,i):r.name=="StartTag"||r.name=="IncompleteTag"?XE(n,t,r,i,i):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?VE(n,r,i,i):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?ise(n,t,r,r.name=="AttributeName"?r.from:i,i):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?rse(n,t,r,r.name=="Is"?i:r.from,i):e.explicit&&(s.name=="Element"||s.name=="Text"||s.name=="Document")?nse(n,t,r,i):null}function kj(t){return _j(Ah.default,t)}function wj(t){let{extraTags:e,extraGlobalAttributes:n}=t,i=n||e?new Ah(e,n):Ah.default;return r=>_j(i,r)}const sse=Xi.parser.configure({top:"SingleExpression"}),Pj=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:z1.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:I1.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:X1.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:sse},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:Xi.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:Eh.parser}],Tj=[{name:"style",parser:Eh.parser.configure({top:"Styles"})}].concat(xj.map(t=>({name:t,parser:Xi.parser}))),Cj=gs.define({name:"html",parser:xre.configure({props:[vo.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let e=null,n;for(let i=t.node;;){let r=i.lastChild;if(!r||r.name!="Element"||r.to!=i.to)break;e=i=r}return e&&!((n=e.lastChild)&&(n.name=="CloseTag"||n.name=="SelfClosingTag"))?t.lineIndent(e.from)+t.unit:null}}),So.add({Element(t){let e=t.firstChild,n=t.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:n.name=="CloseTag"?n.from:t.to}}}),SM.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),Hu=Cj.configure({wrap:uj(Pj,Tj)});function Qj(t={}){let e="",n;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(n=uj((t.nestedLanguages||[]).concat(Pj),(t.nestedAttributes||[]).concat(Tj)));let i=n?Cj.configure({wrap:n,dialect:e}):e?Hu.configure({dialect:e}):Hu;return new Cr(i,[Hu.data.of({autocomplete:wj(t)}),t.autoCloseTags!==!1?Ej:[],Sm().support,yj().support])}const BE=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Ej=ge.inputHandler.of((t,e,n,i,r)=>{if(t.composing||t.state.readOnly||e!=n||i!=">"&&i!="/"||!Hu.isActiveAt(t.state,e,-1))return!1;let s=r(),{state:o}=s,l=o.changeByRange(c=>{var h,d,p;let g=o.doc.sliceString(c.from-1,c.to)==i,{head:O}=c,x=at(o).resolveInner(O,-1),S;if(g&&i==">"&&x.name=="EndTag"){let k=x.parent;if(((d=(h=k.parent)===null||h===void 0?void 0:h.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(S=Kl(o.doc,k.parent,O))&&!BE.has(S)){let _=O+(o.doc.sliceString(O,O+1)===">"?1:0),T=`</${S}>`;return{range:c,changes:{from:O,to:_,insert:T}}}}else if(g&&i=="/"&&x.name=="IncompleteCloseTag"){let k=x.parent;if(x.from==O-2&&((p=k.lastChild)===null||p===void 0?void 0:p.name)!="CloseTag"&&(S=Kl(o.doc,k,O))&&!BE.has(S)){let _=O+(o.doc.sliceString(O,O+1)===">"?1:0),T=`${S}>`;return{range:se.cursor(O+T.length,-1),changes:{from:O,to:_,insert:T}}}}return{range:c}});return l.changes.empty?!1:(t.dispatch([s,o.update(l,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),ose=Object.freeze(Object.defineProperty({__proto__:null,autoCloseTags:Ej,html:Qj,htmlCompletionSource:kj,htmlCompletionSourceWith:wj,htmlLanguage:Hu},Symbol.toStringTag,{value:"Module"})),Aj=og({commentTokens:{block:{open:"<!--",close:"-->"}}}),Rj=new Le,Lj=Sie.configure({props:[So.add(t=>!t.is("Block")||t.is("Document")||ev(t)!=null||ase(t)?void 0:(e,n)=>({from:n.doc.lineAt(e.from).to,to:e.to})),Rj.add(ev),vo.add({Document:()=>null}),io.add({Document:Aj})]});function ev(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function ase(t){return t.name=="OrderedList"||t.name=="BulletList"}function lse(t,e){let n=t;for(;;){let i=n.nextSibling,r;if(!i||(r=ev(i.type))!=null&&r<=e)break;n=i}return n.to}const cse=uM.of((t,e,n)=>{for(let i=at(t).resolveInner(n,-1);i&&!(i.from<e);i=i.parent){let r=i.type.prop(Rj);if(r==null)continue;let s=lse(i,r);if(s>n)return{from:n,to:s}}return null});function F1(t){return new pi(Aj,t,[],"markdown")}const $j=F1(Lj),use=Lj.configure([Lie,Mie,$ie,Die,{props:[So.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),ec=F1(use);function hse(t,e){return n=>{if(n&&t){let i=null;if(n=/\S*/.exec(n)[0],typeof t=="function"?i=t(n):i=ee.matchLanguageName(t,n,!0),i instanceof ee)return i.support?i.support.language.parser:ba.getSkippingParser(i.load());if(i)return i.parser}return e?e.parser:null}}let sb=class{constructor(e,n,i,r,s,o,l){this.node=e,this.from=n,this.to=i,this.spaceBefore=r,this.spaceAfter=s,this.type=o,this.item=l}blank(e,n=!0){let i=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;i.length<e;)i+=" ";return i}else{for(let r=this.to-this.from-i.length-this.spaceAfter.length;r>0;r--)i+=" ";return i+(n?this.spaceAfter:"")}}marker(e,n){let i=this.node.name=="OrderedList"?String(+Dj(this.item,e)[2]+n):"";return this.spaceBefore+i+this.type+this.spaceAfter}};function Mj(t,e){let n=[],i=[];for(let r=t;r;r=r.parent){if(r.name=="FencedCode")return i;(r.name=="ListItem"||r.name=="Blockquote")&&n.push(r)}for(let r=n.length-1;r>=0;r--){let s=n[r],o,l=e.lineAt(s.from),c=s.from-l.from;if(s.name=="Blockquote"&&(o=/^ *>( ?)/.exec(l.text.slice(c))))i.push(new sb(s,c,c+o[0].length,"",o[1],">",null));else if(s.name=="ListItem"&&s.parent.name=="OrderedList"&&(o=/^( *)\d+([.)])( *)/.exec(l.text.slice(c)))){let h=o[3],d=o[0].length;h.length>=4&&(h=h.slice(0,h.length-4),d-=4),i.push(new sb(s.parent,c,c+d,o[1],h,o[2],s))}else if(s.name=="ListItem"&&s.parent.name=="BulletList"&&(o=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(l.text.slice(c)))){let h=o[4],d=o[0].length;h.length>4&&(h=h.slice(0,h.length-4),d-=4);let p=o[2];o[3]&&(p+=o[3].replace(/[xX]/," ")),i.push(new sb(s.parent,c,c+d,o[1],h,p,s))}}return i}function Dj(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function ob(t,e,n,i=0){for(let r=-1,s=t;;){if(s.name=="ListItem"){let l=Dj(s,e),c=+l[2];if(r>=0){if(c!=r+1)return;n.push({from:s.from+l[1].length,to:s.from+l[0].length,insert:String(r+2+i)})}r=c}let o=s.nextSibling;if(!o)break;s=o}}function K1(t,e){let n=/^[ \t]*/.exec(t)[0].length;if(!n||e.facet(fc)!=" ")return t;let i=Ji(t,4,n),r="";for(let s=i;s>0;)s>=4?(r+=" ",s-=4):(r+=" ",s--);return r+t.slice(n)}const jj=(t={})=>({state:e,dispatch:n})=>{let i=at(e),{doc:r}=e,s=null,o=e.changeByRange(l=>{if(!l.empty||!ec.isActiveAt(e,l.from,-1)&&!ec.isActiveAt(e,l.from,1))return s={range:l};let c=l.from,h=r.lineAt(c),d=Mj(i.resolveInner(c,-1),r);for(;d.length&&d[d.length-1].from>c-h.from;)d.pop();if(!d.length)return s={range:l};let p=d[d.length-1];if(p.to-p.spaceAfter.length>c-h.from)return s={range:l};let g=c>=p.to-p.spaceAfter.length&&!/\S/.test(h.text.slice(p.to));if(p.item&&g){let _=p.node.firstChild,T=p.node.getChild("ListItem","ListItem");if(_.to>=c||T&&T.to<c||h.from>0&&!/[^\s>]/.test(r.lineAt(h.from-1).text)||t.nonTightLists===!1){let C=d.length>1?d[d.length-2]:null,D,j="";C&&C.item?(D=h.from+C.from,j=C.marker(r,1)):D=h.from+(C?C.to:0);let A=[{from:D,to:c,insert:j}];return p.node.name=="OrderedList"&&ob(p.item,r,A,-2),C&&C.node.name=="OrderedList"&&ob(C.item,r,A),{range:se.cursor(D+j.length),changes:A}}else{let C=qE(d,e,h);return{range:se.cursor(c+C.length+1),changes:{from:h.from,insert:C+e.lineBreak}}}}if(p.node.name=="Blockquote"&&g&&h.from){let _=r.lineAt(h.from-1),T=/>\s*$/.exec(_.text);if(T&&T.index==p.from){let C=e.changes([{from:_.from+T.index,to:_.to},{from:h.from+p.from,to:h.to}]);return{range:l.map(C),changes:C}}}let O=[];p.node.name=="OrderedList"&&ob(p.item,r,O);let x=p.item&&p.item.from<h.from,S="";if(!x||/^[\s\d.)\-+*>]*/.exec(h.text)[0].length>=p.to)for(let _=0,T=d.length-1;_<=T;_++)S+=_==T&&!x?d[_].marker(r,1):d[_].blank(_<T?Ji(h.text,4,d[_+1].from)-S.length:null);let k=c;for(;k>h.from&&/\s/.test(h.text.charAt(k-h.from-1));)k--;return S=K1(S,e),fse(p.node,e.doc)&&(S=qE(d,e,h)+e.lineBreak+S),O.push({from:k,to:c,insert:e.lineBreak+S}),{range:se.cursor(k+S.length+1),changes:O}});return s?!1:(n(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0)},Nj=jj();function ZE(t){return t.name=="QuoteMark"||t.name=="ListMark"}function fse(t,e){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let n=t.firstChild,i=t.getChild("ListItem","ListItem");if(!i)return!1;let r=e.lineAt(n.to),s=e.lineAt(i.from),o=/^[\s>]*$/.test(r.text);return r.number+(o?0:1)<s.number}function qE(t,e,n){let i="";for(let r=0,s=t.length-2;r<=s;r++)i+=t[r].blank(r<s?Ji(n.text,4,t[r+1].from)-i.length:null,r<s);return K1(i,e)}function dse(t,e){let n=t.resolveInner(e,-1),i=e;ZE(n)&&(i=n.from,n=n.parent);for(let r;r=n.childBefore(i);)if(ZE(r))i=r.from;else if(r.name=="OrderedList"||r.name=="BulletList")n=r.lastChild,i=n.to;else break;return n}const zj=({state:t,dispatch:e})=>{let n=at(t),i=null,r=t.changeByRange(s=>{let o=s.from,{doc:l}=t;if(s.empty&&ec.isActiveAt(t,s.from)){let c=l.lineAt(o),h=Mj(dse(n,o),l);if(h.length){let d=h[h.length-1],p=d.to-d.spaceAfter.length+(d.spaceAfter?1:0);if(o-c.from>p&&!/\S/.test(c.text.slice(p,o-c.from)))return{range:se.cursor(c.from+p),changes:{from:c.from+p,to:o}};if(o-c.from==p&&(!d.item||c.from<=d.item.from||!/\S/.test(c.text.slice(0,d.to)))){let g=c.from+d.from;if(d.item&&d.node.from<d.item.from&&/\S/.test(c.text.slice(d.from,d.to))){let O=d.blank(Ji(c.text,4,d.to)-Ji(c.text,4,d.from));return g==c.from&&(O=K1(O,t)),{range:se.cursor(g+O.length),changes:{from:g,to:c.from+d.to,insert:O}}}if(g<o)return{range:se.cursor(g),changes:{from:g,to:o}}}}}return i={range:s}});return i?!1:(e(t.update(r,{scrollIntoView:!0,userEvent:"delete"})),!0)},Ij=[{key:"Enter",run:Nj},{key:"Backspace",run:zj}],Xj=Qj({matchClosingTags:!1});function Vj(t={}){let{codeLanguages:e,defaultCodeLanguage:n,addKeymap:i=!0,base:{parser:r}=$j,completeHTMLTags:s=!0,pasteURLAsLink:o=!0,htmlTagLanguage:l=Xj}=t;if(!(r instanceof gg))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let c=t.extensions?[t.extensions]:[],h=[l.support,cse],d;o&&h.push(Bj),n instanceof Cr?(h.push(n.support),d=n.language):n&&(d=n);let p=e||d?hse(e,d):void 0;c.push(kie({codeParser:p,htmlParser:l.language.parser})),i&&h.push(xs.high(wa.of(Ij)));let g=F1(r.configure(c));return s&&h.push(g.data.of({autocomplete:pse})),new Cr(g,h)}function pse(t){let{state:e,pos:n}=t,i=/<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(n-25,n));if(!i)return null;let r=at(e).resolveInner(n,-1);for(;r&&!r.type.isTop;){if(r.name=="CodeBlock"||r.name=="FencedCode"||r.name=="ProcessingInstructionBlock"||r.name=="CommentBlock"||r.name=="Link"||r.name=="Image")return null;r=r.parent}return{from:n-i[0].length,to:n,options:mse(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let ab=null;function mse(){if(ab)return ab;let t=kj(new Q1(Ze.create({extensions:Xj}),0,!0));return ab=t?t.options:[]}const gse=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,Bj=ge.domEventHandlers({paste:(t,e)=>{var n;let{main:i}=e.state.selection;if(i.empty)return!1;let r=(n=t.clipboardData)===null||n===void 0?void 0:n.getData("text/plain");if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r="https://"+r),!ec.isActiveAt(e.state,i.from,1)))return!1;let s=at(e.state),o=!1;return s.iterate({from:i.from,to:i.to,enter:l=>{(l.from>i.from||gse.test(l.name))&&(o=!0)},leave:l=>{l.to<i.to&&(o=!0)}}),o?!1:(e.dispatch({changes:[{from:i.from,insert:"["},{from:i.to,insert:`](${r})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),Ose=Object.freeze(Object.defineProperty({__proto__:null,commonmarkLanguage:$j,deleteMarkupBackward:zj,insertNewlineContinueMarkup:Nj,insertNewlineContinueMarkupCommand:jj,markdown:Vj,markdownKeymap:Ij,markdownLanguage:ec,pasteURLAsLink:Bj},Symbol.toStringTag,{value:"Module"})),vl=63,UE=64,yse=1,bse=2,Zj=3,xse=4,qj=5,vse=6,Sse=7,Uj=65,_se=66,kse=8,wse=9,Pse=10,Tse=11,Cse=12,Yj=13,Qse=19,Ese=20,Ase=29,Rse=33,Lse=34,$se=47,Mse=0,J1=1,tv=2,Rh=3,nv=4;class Ko{constructor(e,n,i){this.parent=e,this.depth=n,this.type=i,this.hash=(e?e.hash+e.hash<<8:0)+n+(n<<4)+i}}Ko.top=new Ko(null,-1,Mse);function Fu(t,e){for(let n=0,i=e-t.pos-1;;i--,n++){let r=t.peek(i);if(ys(r)||r==-1)return n}}function iv(t){return t==32||t==9}function ys(t){return t==10||t==13}function Gj(t){return iv(t)||ys(t)}function ra(t){return t<0||Gj(t)}const Dse=new C1({start:Ko.top,reduce(t,e){return t.type==Rh&&(e==Ese||e==Lse)?t.parent:t},shift(t,e,n,i){if(e==Zj)return new Ko(t,Fu(i,i.pos),J1);if(e==Uj||e==qj)return new Ko(t,Fu(i,i.pos),tv);if(e==vl)return t.parent;if(e==Qse||e==Rse)return new Ko(t,0,Rh);if(e==Yj&&t.type==nv)return t.parent;if(e==$se){let r=/[1-9]/.exec(i.read(i.pos,n.pos));if(r)return new Ko(t,t.depth+ +r[0],nv)}return t},hash(t){return t.hash}});function tc(t,e,n=0){return t.peek(n)==e&&t.peek(n+1)==e&&t.peek(n+2)==e&&ra(t.peek(n+3))}const jse=new fn((t,e)=>{if(t.next==-1&&e.canShift(UE))return t.acceptToken(UE);let n=t.peek(-1);if((ys(n)||n<0)&&e.context.type!=Rh){if(tc(t,45))if(e.canShift(vl))t.acceptToken(vl);else return t.acceptToken(yse,3);if(tc(t,46))if(e.canShift(vl))t.acceptToken(vl);else return t.acceptToken(bse,3);let i=0;for(;t.next==32;)i++,t.advance();(i<e.context.depth||i==e.context.depth&&e.context.type==J1&&(t.next!=45||!ra(t.peek(1))))&&t.next!=-1&&!ys(t.next)&&t.next!=35&&t.acceptToken(vl,-i)}},{contextual:!0}),Nse=new fn((t,e)=>{if(e.context.type==Rh){t.next==63&&(t.advance(),ra(t.next)&&t.acceptToken(Sse));return}if(t.next==45)t.advance(),ra(t.next)&&t.acceptToken(e.context.type==J1&&e.context.depth==Fu(t,t.pos-1)?xse:Zj);else if(t.next==63)t.advance(),ra(t.next)&&t.acceptToken(e.context.type==tv&&e.context.depth==Fu(t,t.pos-1)?vse:qj);else{let n=t.pos;for(;;)if(iv(t.next)){if(t.pos==n)return;t.advance()}else if(t.next==33)Wj(t);else if(t.next==38)rv(t);else if(t.next==42){rv(t);break}else if(t.next==39||t.next==34){if(eS(t,!0))break;return}else if(t.next==91||t.next==123){if(!Ise(t))return;break}else{Hj(t,!0,!1,0);break}for(;iv(t.next);)t.advance();if(t.next==58){if(t.pos==n&&e.canShift(Ase))return;let i=t.peek(1);ra(i)&&t.acceptTokenTo(e.context.type==tv&&e.context.depth==Fu(t,n)?_se:Uj,n)}}},{contextual:!0});function zse(t){return t>32&&t<127&&t!=34&&t!=37&&t!=44&&t!=60&&t!=62&&t!=92&&t!=94&&t!=96&&t!=123&&t!=124&&t!=125}function YE(t){return t>=48&&t<=57||t>=97&&t<=102||t>=65&&t<=70}function GE(t,e){return t.next==37?(t.advance(),YE(t.next)&&t.advance(),YE(t.next)&&t.advance(),!0):zse(t.next)||e&&t.next==44?(t.advance(),!0):!1}function Wj(t){if(t.advance(),t.next==60){for(t.advance();;)if(!GE(t,!0)){t.next==62&&t.advance();break}}else for(;GE(t,!1););}function rv(t){for(t.advance();!ra(t.next)&&Pm(t.tag)!="f";)t.advance()}function eS(t,e){let n=t.next,i=!1,r=t.pos;for(t.advance();;){let s=t.next;if(s<0)break;if(t.advance(),s==n)if(s==39)if(t.next==39)t.advance();else break;else break;else if(s==92&&n==34)t.next>=0&&t.advance();else if(ys(s)){if(e)return!1;i=!0}else if(e&&t.pos>=r+1024)return!1}return!i}function Ise(t){for(let e=[],n=t.pos+1024;;)if(t.next==91||t.next==123)e.push(t.next),t.advance();else if(t.next==39||t.next==34){if(!eS(t,!0))return!1}else if(t.next==93||t.next==125){if(e[e.length-1]!=t.next-2)return!1;if(e.pop(),t.advance(),!e.length)return!0}else{if(t.next<0||t.pos>n||ys(t.next))return!1;t.advance()}}const Xse="iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif";function Pm(t){return t<33?"u":t>125?"s":Xse[t-33]}function lb(t,e){let n=Pm(t);return n!="u"&&!(e&&n=="f")}function Hj(t,e,n,i){if(Pm(t.next)=="s"||(t.next==63||t.next==58||t.next==45)&&lb(t.peek(1),n))t.advance();else return!1;let r=t.pos;for(;;){let s=t.next,o=0,l=i+1;for(;Gj(s);){if(ys(s)){if(e)return!1;l=0}else l++;s=t.peek(++o)}if(!(s>=0&&(s==58?lb(t.peek(o+1),n):s==35?t.peek(o-1)!=32:lb(s,n)))||!n&&l<=i||l==0&&!n&&(tc(t,45,o)||tc(t,46,o)))break;if(e&&Pm(s)=="f")return!1;for(let h=o;h>=0;h--)t.advance();if(e&&t.pos>r+1024)return!1}return!0}const Vse=new fn((t,e)=>{if(t.next==33)Wj(t),t.acceptToken(Cse);else if(t.next==38||t.next==42){let n=t.next==38?Pse:Tse;rv(t),t.acceptToken(n)}else t.next==39||t.next==34?(eS(t,!1),t.acceptToken(wse)):Hj(t,!1,e.context.type==Rh,e.context.depth)&&t.acceptToken(kse)}),Bse=new fn((t,e)=>{let n=e.context.type==nv?e.context.depth:-1,i=t.pos;e:for(;;){let r=0,s=t.next;for(;s==32;)s=t.peek(++r);if(!r&&(tc(t,45,r)||tc(t,46,r))||!ys(s)&&(n<0&&(n=Math.max(e.context.depth+1,r)),r<n))break;for(;;){if(t.next<0)break e;let o=ys(t.next);if(t.advance(),o)continue e;i=t.pos}}t.acceptTokenTo(Yj,i)}),Zse=vs({DirectiveName:E.keyword,DirectiveContent:E.attributeValue,"DirectiveEnd DocEnd":E.meta,QuotedLiteral:E.string,BlockLiteralHeader:E.special(E.string),BlockLiteralContent:E.content,Literal:E.content,"Key/Literal Key/QuotedLiteral":E.definition(E.propertyName),"Anchor Alias":E.labelName,Tag:E.typeName,Comment:E.lineComment,": , -":E.separator,"?":E.punctuation,"[ ]":E.squareBracket,"{ }":E.brace}),qse=Os.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#Cw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#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"⚠ DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:Dse,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[Zse],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#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PO,58xOOOO-E6a-E6aOOOO-E6`-E6`OOOO'#C_'#C_OOOO1G.d1G.d",stateData:"!h~OXPOYROWTP~OWVXXRXYRX~OYVOXSP~OXROYROWTX~OXROYROWTP~OYVOXSX~OX[O~OXY~",goto:"vWPPX[beioRUOQQOR]XRXQTTOUQWQRZWSSOURYS",nodeNames:"⚠ Document Frontmatter DashLine FrontmatterContent Body",maxTerm:10,skippedNodes:[0],repeatNodeCount:2,tokenData:"$z~RXOYnYZ!^Z]n]^!^^}n}!O!i!O;'Sn;'S;=`!c<%lOn~qXOYnYZ!^Z]n]^!^^;'Sn;'S;=`!c<%l~n~On~~!^~!cOY~~!fP;=`<%ln~!lZOYnYZ!^Z]n]^!^^}n}!O#_!O;'Sn;'S;=`!c<%l~n~On~~!^~#bZOYnYZ!^Z]n]^!^^}n}!O$T!O;'Sn;'S;=`!c<%l~n~On~~!^~$WXOYnYZ$sZ]n]^$s^;'Sn;'S;=`!c<%l~n~On~~$s~$zOX~Y~",tokenizers:[0],topRules:{Document:[0,1]},tokenPrec:67}),tS=gs.define({name:"yaml",parser:qse.configure({props:[vo.add({Stream:t=>{for(let e=t.node.resolve(t.pos,-1);e&&e.to>=t.pos;e=e.parent){if(e.name=="BlockLiteralContent"&&e.from<e.to)return t.baseIndentFor(e);if(e.name=="BlockLiteral")return t.baseIndentFor(e)+t.unit;if(e.name=="BlockSequence"||e.name=="BlockMapping")return t.column(e.from,1);if(e.name=="QuotedLiteral")return null;if(e.name=="Literal"){let n=t.column(e.from,1);if(n==t.lineIndent(e.from,1))return n;if(e.to>t.pos)return null}}return null},FlowMapping:Nx({closing:"}"}),FlowSequence:Nx({closing:"]"})}),So.add({"FlowMapping FlowSequence":lg,"Item Pair BlockLiteral":(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function Fj(){return new Cr(tS)}const Yse=gs.define({name:"yaml-frontmatter",parser:Use.configure({props:[vs({DashLine:E.meta})]})});function Gse(t){let{language:e,support:n}=t.content instanceof Cr?t.content:{language:t.content,support:[]};return new Cr(Yse.configure({wrap:i1(i=>i.name=="FrontmatterContent"?{parser:tS.parser}:i.name=="Body"?{parser:e.parser}:null)}),n)}const Wse=Object.freeze(Object.defineProperty({__proto__:null,yaml:Fj,yamlFrontmatter:Gse,yamlLanguage:tS},Symbol.toStringTag,{value:"Module"}));function ue(t){return new Cr(S1.define(t))}function Ws(t){return P(()=>import("./index-AbWe21oh.js"),[]).then(e=>e.sql({dialect:e[t]}))}const Hse=[ee.of({name:"C",extensions:["c","h","ino"],load(){return P(()=>import("./index-8c6bEJ99.js"),[]).then(t=>t.cpp())}}),ee.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load(){return P(()=>import("./index-8c6bEJ99.js"),[]).then(t=>t.cpp())}}),ee.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load(){return Ws("Cassandra")}}),ee.of({name:"CSS",extensions:["css"],load(){return P(()=>Promise.resolve().then(()=>ese),void 0).then(t=>t.css())}}),ee.of({name:"Go",extensions:["go"],load(){return P(()=>import("./index-DpxkOmNJ.js"),[]).then(t=>t.go())}}),ee.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load(){return P(()=>Promise.resolve().then(()=>ose),void 0).then(t=>t.html())}}),ee.of({name:"Java",extensions:["java"],load(){return P(()=>import("./index-BvGAWAqS.js"),[]).then(t=>t.java())}}),ee.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load(){return P(()=>Promise.resolve().then(()=>tp),void 0).then(t=>t.javascript())}}),ee.of({name:"Jinja",extensions:["j2","jinja","jinja2"],load(){return P(()=>import("./index-Bafja8o4.js"),[]).then(t=>t.jinja())}}),ee.of({name:"JSON",alias:["json5"],extensions:["json","map"],load(){return P(()=>Promise.resolve().then(()=>uie),void 0).then(t=>t.json())}}),ee.of({name:"JSX",extensions:["jsx"],load(){return P(()=>Promise.resolve().then(()=>tp),void 0).then(t=>t.javascript({jsx:!0}))}}),ee.of({name:"LESS",extensions:["less"],load(){return P(()=>import("./index-ArhptQw0.js"),[]).then(t=>t.less())}}),ee.of({name:"Liquid",extensions:["liquid"],load(){return P(()=>import("./index-CCfVkFzN.js"),[]).then(t=>t.liquid())}}),ee.of({name:"MariaDB SQL",load(){return Ws("MariaSQL")}}),ee.of({name:"Markdown",extensions:["md","markdown","mkd"],load(){return P(()=>Promise.resolve().then(()=>Ose),void 0).then(t=>t.markdown())}}),ee.of({name:"MS SQL",load(){return Ws("MSSQL")}}),ee.of({name:"MySQL",load(){return Ws("MySQL")}}),ee.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load(){return P(()=>import("./index-DFOLYN6W.js"),[]).then(t=>t.php())}}),ee.of({name:"PLSQL",extensions:["pls"],load(){return Ws("PLSQL")}}),ee.of({name:"PostgreSQL",load(){return Ws("PostgreSQL")}}),ee.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load(){return P(()=>import("./index-B1hpa--1.js"),[]).then(t=>t.python())}}),ee.of({name:"Rust",extensions:["rs"],load(){return P(()=>import("./index-ftYom_wU.js"),[]).then(t=>t.rust())}}),ee.of({name:"Sass",extensions:["sass"],load(){return P(()=>import("./index-D3mXuuih.js"),[]).then(t=>t.sass({indented:!0}))}}),ee.of({name:"SCSS",extensions:["scss"],load(){return P(()=>import("./index-D3mXuuih.js"),[]).then(t=>t.sass())}}),ee.of({name:"SQL",extensions:["sql"],load(){return Ws("StandardSQL")}}),ee.of({name:"SQLite",load(){return Ws("SQLite")}}),ee.of({name:"TSX",extensions:["tsx"],load(){return P(()=>Promise.resolve().then(()=>tp),void 0).then(t=>t.javascript({jsx:!0,typescript:!0}))}}),ee.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load(){return P(()=>Promise.resolve().then(()=>tp),void 0).then(t=>t.javascript({typescript:!0}))}}),ee.of({name:"WebAssembly",extensions:["wat","wast"],load(){return P(()=>import("./index-Bp00uZNc.js"),[]).then(t=>t.wast())}}),ee.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load(){return P(()=>import("./index-gvPT4BlL.js"),[]).then(t=>t.xml())}}),ee.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load(){return P(()=>Promise.resolve().then(()=>Wse),void 0).then(t=>t.yaml())}}),ee.of({name:"APL",extensions:["dyalog","apl"],load(){return P(()=>import("./apl-B4CMkyY2.js"),[]).then(t=>ue(t.apl))}}),ee.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load(){return P(()=>import("./asciiarmor-Df11BRmG.js"),[]).then(t=>ue(t.asciiArmor))}}),ee.of({name:"ASN.1",extensions:["asn","asn1"],load(){return P(()=>import("./asn1-EdZsLKOL.js"),[]).then(t=>ue(t.asn1({})))}}),ee.of({name:"Asterisk",filename:/^extensions\.conf$/i,load(){return P(()=>import("./asterisk-B-8jnY81.js"),[]).then(t=>ue(t.asterisk))}}),ee.of({name:"Brainfuck",extensions:["b","bf"],load(){return P(()=>import("./brainfuck-C4LP7Hcl.js"),[]).then(t=>ue(t.brainfuck))}}),ee.of({name:"Cobol",extensions:["cob","cpy"],load(){return P(()=>import("./cobol-CWcv1MsR.js"),[]).then(t=>ue(t.cobol))}}),ee.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load(){return P(()=>import("./clike-B9uivgTg.js"),[]).then(t=>ue(t.csharp))}}),ee.of({name:"Clojure",extensions:["clj","cljc","cljx"],load(){return P(()=>import("./clojure-BMjYHr_A.js"),[]).then(t=>ue(t.clojure))}}),ee.of({name:"ClojureScript",extensions:["cljs"],load(){return P(()=>import("./clojure-BMjYHr_A.js"),[]).then(t=>ue(t.clojure))}}),ee.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load(){return P(()=>import("./css-BnMrqG3P.js"),[]).then(t=>ue(t.gss))}}),ee.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load(){return P(()=>import("./cmake-BQqOBYOt.js"),[]).then(t=>ue(t.cmake))}}),ee.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load(){return P(()=>import("./coffeescript-S37ZYGWr.js"),[]).then(t=>ue(t.coffeeScript))}}),ee.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load(){return P(()=>import("./commonlisp-DBKNyK5s.js"),[]).then(t=>ue(t.commonLisp))}}),ee.of({name:"Cypher",extensions:["cyp","cypher"],load(){return P(()=>import("./cypher-C_CwsFkJ.js"),[]).then(t=>ue(t.cypher))}}),ee.of({name:"Cython",extensions:["pyx","pxd","pxi"],load(){return P(()=>import("./python-BuPzkPfP.js"),[]).then(t=>ue(t.cython))}}),ee.of({name:"Crystal",extensions:["cr"],load(){return P(()=>import("./crystal-SjHAIU92.js"),[]).then(t=>ue(t.crystal))}}),ee.of({name:"D",extensions:["d"],load(){return P(()=>import("./d-pRatUO7H.js"),[]).then(t=>ue(t.d))}}),ee.of({name:"Dart",extensions:["dart"],load(){return P(()=>import("./clike-B9uivgTg.js"),[]).then(t=>ue(t.dart))}}),ee.of({name:"diff",extensions:["diff","patch"],load(){return P(()=>import("./diff-DbItnlRl.js"),[]).then(t=>ue(t.diff))}}),ee.of({name:"Dockerfile",filename:/^Dockerfile$/,load(){return P(()=>import("./dockerfile-BKs6k2Af.js"),__vite__mapDeps([97,98])).then(t=>ue(t.dockerFile))}}),ee.of({name:"DTD",extensions:["dtd"],load(){return P(()=>import("./dtd-DF_7sFjM.js"),[]).then(t=>ue(t.dtd))}}),ee.of({name:"Dylan",extensions:["dylan","dyl","intr"],load(){return P(()=>import("./dylan-DwRh75JA.js"),[]).then(t=>ue(t.dylan))}}),ee.of({name:"EBNF",load(){return P(()=>import("./ebnf-CDyGwa7X.js"),[]).then(t=>ue(t.ebnf))}}),ee.of({name:"ECL",extensions:["ecl"],load(){return P(()=>import("./ecl-Cabwm37j.js"),[]).then(t=>ue(t.ecl))}}),ee.of({name:"edn",extensions:["edn"],load(){return P(()=>import("./clojure-BMjYHr_A.js"),[]).then(t=>ue(t.clojure))}}),ee.of({name:"Eiffel",extensions:["e"],load(){return P(()=>import("./eiffel-CnydiIhH.js"),[]).then(t=>ue(t.eiffel))}}),ee.of({name:"Elm",extensions:["elm"],load(){return P(()=>import("./elm-vLlmbW-K.js"),[]).then(t=>ue(t.elm))}}),ee.of({name:"Erlang",extensions:["erl"],load(){return P(()=>import("./erlang-BNw1qcRV.js"),[]).then(t=>ue(t.erlang))}}),ee.of({name:"Esper",load(){return P(()=>import("./sql-D0XecflT.js"),[]).then(t=>ue(t.esper))}}),ee.of({name:"Factor",extensions:["factor"],load(){return P(()=>import("./factor-kuTfRLto.js"),__vite__mapDeps([99,98])).then(t=>ue(t.factor))}}),ee.of({name:"FCL",load(){return P(()=>import("./fcl-Kvtd6kyn.js"),[]).then(t=>ue(t.fcl))}}),ee.of({name:"Forth",extensions:["forth","fth","4th"],load(){return P(()=>import("./forth-Ffai-XNe.js"),[]).then(t=>ue(t.forth))}}),ee.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load(){return P(()=>import("./fortran-DYz_wnZ1.js"),[]).then(t=>ue(t.fortran))}}),ee.of({name:"F#",alias:["fsharp"],extensions:["fs"],load(){return P(()=>import("./mllike-CXdrOF99.js"),[]).then(t=>ue(t.fSharp))}}),ee.of({name:"Gas",extensions:["s"],load(){return P(()=>import("./gas-Bneqetm1.js"),[]).then(t=>ue(t.gas))}}),ee.of({name:"Gherkin",extensions:["feature"],load(){return P(()=>import("./gherkin-heZmZLOM.js"),[]).then(t=>ue(t.gherkin))}}),ee.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load(){return P(()=>import("./groovy-D9Dt4D0W.js"),[]).then(t=>ue(t.groovy))}}),ee.of({name:"Haskell",extensions:["hs"],load(){return P(()=>import("./haskell-Cw1EW3IL.js"),[]).then(t=>ue(t.haskell))}}),ee.of({name:"Haxe",extensions:["hx"],load(){return P(()=>import("./haxe-H-WmDvRZ.js"),[]).then(t=>ue(t.haxe))}}),ee.of({name:"HXML",extensions:["hxml"],load(){return P(()=>import("./haxe-H-WmDvRZ.js"),[]).then(t=>ue(t.hxml))}}),ee.of({name:"HTTP",load(){return P(()=>import("./http-DBlCnlav.js"),[]).then(t=>ue(t.http))}}),ee.of({name:"IDL",extensions:["pro"],load(){return P(()=>import("./idl-BEugSyMb.js"),[]).then(t=>ue(t.idl))}}),ee.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load(){return P(()=>import("./javascript-iXu5QeM3.js"),[]).then(t=>ue(t.jsonld))}}),ee.of({name:"Julia",extensions:["jl"],load(){return P(()=>import("./julia-DuME0IfC.js"),[]).then(t=>ue(t.julia))}}),ee.of({name:"Kotlin",extensions:["kt","kts"],load(){return P(()=>import("./clike-B9uivgTg.js"),[]).then(t=>ue(t.kotlin))}}),ee.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load(){return P(()=>import("./livescript-BwQOo05w.js"),[]).then(t=>ue(t.liveScript))}}),ee.of({name:"Lua",extensions:["lua"],load(){return P(()=>import("./lua-BgMRiT3U.js"),[]).then(t=>ue(t.lua))}}),ee.of({name:"mIRC",extensions:["mrc"],load(){return P(()=>import("./mirc-CjQqDB4T.js"),[]).then(t=>ue(t.mirc))}}),ee.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load(){return P(()=>import("./mathematica-DTrFuWx2.js"),[]).then(t=>ue(t.mathematica))}}),ee.of({name:"Modelica",extensions:["mo"],load(){return P(()=>import("./modelica-Dc1JOy9r.js"),[]).then(t=>ue(t.modelica))}}),ee.of({name:"MUMPS",extensions:["mps"],load(){return P(()=>import("./mumps-BT43cFF4.js"),[]).then(t=>ue(t.mumps))}}),ee.of({name:"Mbox",extensions:["mbox"],load(){return P(()=>import("./mbox-CNhZ1qSd.js"),[]).then(t=>ue(t.mbox))}}),ee.of({name:"Nginx",filename:/nginx.*\.conf$/i,load(){return P(()=>import("./nginx-DdIZxoE0.js"),[]).then(t=>ue(t.nginx))}}),ee.of({name:"NSIS",extensions:["nsh","nsi"],load(){return P(()=>import("./nsis-LdVXkNf5.js"),__vite__mapDeps([100,98])).then(t=>ue(t.nsis))}}),ee.of({name:"NTriples",extensions:["nt","nq"],load(){return P(()=>import("./ntriples-BfvgReVJ.js"),[]).then(t=>ue(t.ntriples))}}),ee.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load(){return P(()=>import("./clike-B9uivgTg.js"),[]).then(t=>ue(t.objectiveC))}}),ee.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load(){return P(()=>import("./clike-B9uivgTg.js"),[]).then(t=>ue(t.objectiveCpp))}}),ee.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load(){return P(()=>import("./mllike-CXdrOF99.js"),[]).then(t=>ue(t.oCaml))}}),ee.of({name:"Octave",extensions:["m"],load(){return P(()=>import("./octave-Ck1zUtKM.js"),[]).then(t=>ue(t.octave))}}),ee.of({name:"Oz",extensions:["oz"],load(){return P(()=>import("./oz-BzwKVEFT.js"),[]).then(t=>ue(t.oz))}}),ee.of({name:"Pascal",extensions:["p","pas"],load(){return P(()=>import("./pascal--L3eBynH.js"),[]).then(t=>ue(t.pascal))}}),ee.of({name:"Perl",extensions:["pl","pm"],load(){return P(()=>import("./perl-CdXCOZ3F.js"),[]).then(t=>ue(t.perl))}}),ee.of({name:"Pig",extensions:["pig"],load(){return P(()=>import("./pig-CevX1Tat.js"),[]).then(t=>ue(t.pig))}}),ee.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load(){return P(()=>import("./powershell-CFHJl5sT.js"),[]).then(t=>ue(t.powerShell))}}),ee.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load(){return P(()=>import("./properties-C78fOPTZ.js"),[]).then(t=>ue(t.properties))}}),ee.of({name:"ProtoBuf",extensions:["proto"],load(){return P(()=>import("./protobuf-ChK-085T.js"),[]).then(t=>ue(t.protobuf))}}),ee.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load(){return P(()=>import("./pug-DeIclll2.js"),__vite__mapDeps([101,102])).then(t=>ue(t.pug))}}),ee.of({name:"Puppet",extensions:["pp"],load(){return P(()=>import("./puppet-DMA9R1ak.js"),[]).then(t=>ue(t.puppet))}}),ee.of({name:"Q",extensions:["q"],load(){return P(()=>import("./q-pXgVlZs6.js"),[]).then(t=>ue(t.q))}}),ee.of({name:"R",alias:["rscript"],extensions:["r","R"],load(){return P(()=>import("./r-B6wPVr8A.js"),[]).then(t=>ue(t.r))}}),ee.of({name:"RPM Changes",load(){return P(()=>import("./rpm-CTu-6PCP.js"),[]).then(t=>ue(t.rpmChanges))}}),ee.of({name:"RPM Spec",extensions:["spec"],load(){return P(()=>import("./rpm-CTu-6PCP.js"),[]).then(t=>ue(t.rpmSpec))}}),ee.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load(){return P(()=>import("./ruby-B2Rjki9n.js"),[]).then(t=>ue(t.ruby))}}),ee.of({name:"SAS",extensions:["sas"],load(){return P(()=>import("./sas-B4kiWyti.js"),[]).then(t=>ue(t.sas))}}),ee.of({name:"Scala",extensions:["scala"],load(){return P(()=>import("./clike-B9uivgTg.js"),[]).then(t=>ue(t.scala))}}),ee.of({name:"Scheme",extensions:["scm","ss"],load(){return P(()=>import("./scheme-C41bIUwD.js"),[]).then(t=>ue(t.scheme))}}),ee.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load(){return P(()=>import("./shell-CjFT_Tl9.js"),[]).then(t=>ue(t.shell))}}),ee.of({name:"Sieve",extensions:["siv","sieve"],load(){return P(()=>import("./sieve-C3Gn_uJK.js"),[]).then(t=>ue(t.sieve))}}),ee.of({name:"Smalltalk",extensions:["st"],load(){return P(()=>import("./smalltalk-CnHTOXQT.js"),[]).then(t=>ue(t.smalltalk))}}),ee.of({name:"Solr",load(){return P(()=>import("./solr-DehyRSwq.js"),[]).then(t=>ue(t.solr))}}),ee.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load(){return P(()=>import("./mllike-CXdrOF99.js"),[]).then(t=>ue(t.sml))}}),ee.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load(){return P(()=>import("./sparql-DkYu6x3z.js"),[]).then(t=>ue(t.sparql))}}),ee.of({name:"Spreadsheet",alias:["excel","formula"],load(){return P(()=>import("./spreadsheet-BCZA_wO0.js"),[]).then(t=>ue(t.spreadsheet))}}),ee.of({name:"Squirrel",extensions:["nut"],load(){return P(()=>import("./clike-B9uivgTg.js"),[]).then(t=>ue(t.squirrel))}}),ee.of({name:"Stylus",extensions:["styl"],load(){return P(()=>import("./stylus-B533Al4x.js"),[]).then(t=>ue(t.stylus))}}),ee.of({name:"Swift",extensions:["swift"],load(){return P(()=>import("./swift-BzpIVaGY.js"),[]).then(t=>ue(t.swift))}}),ee.of({name:"sTeX",load(){return P(()=>import("./stex-C3f8Ysf7.js"),[]).then(t=>ue(t.stex))}}),ee.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load(){return P(()=>import("./stex-C3f8Ysf7.js"),[]).then(t=>ue(t.stex))}}),ee.of({name:"SystemVerilog",extensions:["v","sv","svh"],load(){return P(()=>import("./verilog-C6RDOZhf.js"),[]).then(t=>ue(t.verilog))}}),ee.of({name:"Tcl",extensions:["tcl"],load(){return P(()=>import("./tcl-DVfN8rqt.js"),[]).then(t=>ue(t.tcl))}}),ee.of({name:"Textile",extensions:["textile"],load(){return P(()=>import("./textile-CnDTJFAw.js"),[]).then(t=>ue(t.textile))}}),ee.of({name:"TiddlyWiki",load(){return P(()=>import("./tiddlywiki-DO-Gjzrf.js"),[]).then(t=>ue(t.tiddlyWiki))}}),ee.of({name:"Tiki wiki",load(){return P(()=>import("./tiki-DGYXhP31.js"),[]).then(t=>ue(t.tiki))}}),ee.of({name:"TOML",extensions:["toml"],load(){return P(()=>import("./toml-Bm5Em-hy.js"),[]).then(t=>ue(t.toml))}}),ee.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load(){return P(()=>import("./troff-wAsdV37c.js"),[]).then(t=>ue(t.troff))}}),ee.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load(){return P(()=>import("./ttcn-CfJYG6tj.js"),[]).then(t=>ue(t.ttcn))}}),ee.of({name:"TTCN_CFG",extensions:["cfg"],load(){return P(()=>import("./ttcn-cfg-B9xdYoR4.js"),[]).then(t=>ue(t.ttcnCfg))}}),ee.of({name:"Turtle",extensions:["ttl"],load(){return P(()=>import("./turtle-B1tBg_DP.js"),[]).then(t=>ue(t.turtle))}}),ee.of({name:"Web IDL",extensions:["webidl"],load(){return P(()=>import("./webidl-ZXfAyPTL.js"),[]).then(t=>ue(t.webIDL))}}),ee.of({name:"VB.NET",extensions:["vb"],load(){return P(()=>import("./vb-CmGdzxic.js"),[]).then(t=>ue(t.vb))}}),ee.of({name:"VBScript",extensions:["vbs"],load(){return P(()=>import("./vbscript-BuJXcnF6.js"),[]).then(t=>ue(t.vbScript))}}),ee.of({name:"Velocity",extensions:["vtl"],load(){return P(()=>import("./velocity-D8B20fx6.js"),[]).then(t=>ue(t.velocity))}}),ee.of({name:"Verilog",extensions:["v"],load(){return P(()=>import("./verilog-C6RDOZhf.js"),[]).then(t=>ue(t.verilog))}}),ee.of({name:"VHDL",extensions:["vhd","vhdl"],load(){return P(()=>import("./vhdl-lSbBsy5d.js"),[]).then(t=>ue(t.vhdl))}}),ee.of({name:"XQuery",extensions:["xy","xquery","xq","xqm","xqy"],load(){return P(()=>import("./xquery-DzFWVndE.js"),[]).then(t=>ue(t.xQuery))}}),ee.of({name:"Yacas",extensions:["ys"],load(){return P(()=>import("./yacas-BJ4BC0dw.js"),[]).then(t=>ue(t.yacas))}}),ee.of({name:"Z80",extensions:["z80"],load(){return P(()=>import("./z80-Hz9HOZM7.js"),[]).then(t=>ue(t.z80))}}),ee.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load(){return P(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(t=>ue(t.mscgen))}}),ee.of({name:"Xù",extensions:["xu"],load(){return P(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(t=>ue(t.xu))}}),ee.of({name:"MsGenny",extensions:["msgenny"],load(){return P(()=>import("./mscgen-BA5vi2Kp.js"),[]).then(t=>ue(t.msgenny))}}),ee.of({name:"Vue",extensions:["vue"],load(){return P(()=>import("./index-BsTieXqQ.js"),[]).then(t=>t.vue())}}),ee.of({name:"Angular Template",load(){return P(()=>import("./index-eA_XNQ_L.js"),[]).then(t=>t.angular())}})];function sv(){return sv=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},sv.apply(null,arguments)}function Fse(t,e){if(t==null)return{};var n={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(e.indexOf(i)!==-1)continue;n[i]=t[i]}return n}const WE=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class nc{constructor(e,n,i=0,r=e.length,s,o){this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,r),this.bufferStart=i,this.normalize=s?l=>s(WE(l)):WE,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Un(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=r1(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=xr(e);let r=this.normalize(n);if(r.length)for(let s=0,o=i;;s++){let l=r.charCodeAt(s),c=this.match(l,o,this.bufferPos+this.bufferStart);if(s==r.length-1){if(c)return this.value=c,this;break}o==i&&s<n.length&&n.charCodeAt(s)==l&&o++}}}match(e,n,i){let r=null;for(let s=0;s<this.matches.length;s+=2){let o=this.matches[s],l=!1;this.query.charCodeAt(o)==e&&(o==this.query.length-1?r={from:this.matches[s+1],to:i}:(this.matches[s]++,l=!0)),l||(this.matches.splice(s,2),s-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?r={from:n,to:i}:this.matches.push(1,n)),r&&this.test&&!this.test(r.from,r.to,this.buffer,this.bufferStart)&&(r=null),r}}typeof Symbol<"u"&&(nc.prototype[Symbol.iterator]=function(){return this});const Kj={from:-1,to:-1,match:/.*/.exec("")},nS="gm"+(/x/.unicode==null?"":"u");class Jj{constructor(e,n,i,r=0,s=e.length){if(this.text=e,this.to=s,this.curLine="",this.done=!1,this.value=Kj,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new e5(e,n,i,r,s);this.re=new RegExp(n,nS+(i?.ignoreCase?"i":"")),this.test=i?.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=Tm(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let i=this.curLineStart+n.index,r=i+n[0].length;if(this.matchPos=Tm(this.text,r+(i==r?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(i<r||i>this.value.to)&&(!this.test||this.test(i,r,n)))return this.value={from:i,to:r,match:n},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const cb=new WeakMap;class zl{constructor(e,n){this.from=e,this.text=n}get to(){return this.from+this.text.length}static get(e,n,i){let r=cb.get(e);if(!r||r.from>=i||r.to<=n){let l=new zl(n,e.sliceString(n,i));return cb.set(e,l),l}if(r.from==n&&r.to==i)return r;let{text:s,from:o}=r;return o>n&&(s=e.sliceString(n,o)+s,o=n),r.to<i&&(s+=e.sliceString(r.to,i)),cb.set(e,new zl(o,s)),new zl(n,s.slice(n-o,i-o))}}class e5{constructor(e,n,i,r,s){this.text=e,this.to=s,this.done=!1,this.value=Kj,this.matchPos=Tm(e,r),this.re=new RegExp(n,nS+(i?.ignoreCase?"i":"")),this.test=i?.test,this.flat=zl.get(e,r,this.chunkEnd(r+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let i=this.flat.from+n.index,r=i+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(i,r,n)))return this.value={from:i,to:r,match:n},this.matchPos=Tm(this.text,r+(i==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=zl.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Jj.prototype[Symbol.iterator]=e5.prototype[Symbol.iterator]=function(){return this});function Kse(t){try{return new RegExp(t,nS),!0}catch{return!1}}function Tm(t,e){if(e>=t.length)return e;let n=t.lineAt(e),i;for(;e<n.to&&(i=n.text.charCodeAt(e-n.from))>=56320&&i<57344;)e++;return e}function ov(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),n=mt("input",{class:"cm-textfield",name:"line",value:e}),i=mt("form",{class:"cm-gotoLine",onkeydown:s=>{s.keyCode==27?(s.preventDefault(),t.dispatch({effects:Ku.of(!1)}),t.focus()):s.keyCode==13&&(s.preventDefault(),r())},onsubmit:s=>{s.preventDefault(),r()}},mt("label",t.state.phrase("Go to line"),": ",n)," ",mt("button",{class:"cm-button",type:"submit"},t.state.phrase("go")),mt("button",{name:"close",onclick:()=>{t.dispatch({effects:Ku.of(!1)}),t.focus()},"aria-label":t.state.phrase("close"),type:"button"},["×"]));function r(){let s=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!s)return;let{state:o}=t,l=o.doc.lineAt(o.selection.main.head),[,c,h,d,p]=s,g=d?+d.slice(1):0,O=h?+h:l.number;if(h&&p){let k=O/100;c&&(k=k*(c=="-"?-1:1)+l.number/o.doc.lines),O=Math.round(o.doc.lines*k)}else h&&c&&(O=O*(c=="-"?-1:1)+l.number);let x=o.doc.line(Math.max(1,Math.min(o.doc.lines,O))),S=se.cursor(x.from+Math.max(0,Math.min(g,x.length)));t.dispatch({effects:[Ku.of(!1),ge.scrollIntoView(S.from,{y:"center"})],selection:S}),t.focus()}return{dom:i}}const Ku=Me.define(),HE=tn.define({create(){return!0},update(t,e){for(let n of e.effects)n.is(Ku)&&(t=n.value);return t},provide:t=>xh.from(t,e=>e?ov:null)}),Jse=t=>{let e=bh(t,ov);if(!e){let n=[Ku.of(!0)];t.state.field(HE,!1)==null&&n.push(Me.appendConfig.of([HE,eoe])),t.dispatch({effects:n}),e=bh(t,ov)}return e&&e.dom.querySelector("input").select(),!0},eoe=ge.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px",position:"relative","& label":{fontSize:"80%"},"& [name=close]":{position:"absolute",top:"0",bottom:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:"0"}}}),toe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},noe=Se.define({combine(t){return Lr(t,toe,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function ioe(t){return[loe,aoe]}const roe=ve.mark({class:"cm-selectionMatch"}),soe=ve.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function FE(t,e,n,i){return(n==0||t(e.sliceDoc(n-1,n))!=wt.Word)&&(i==e.doc.length||t(e.sliceDoc(i,i+1))!=wt.Word)}function ooe(t,e,n,i){return t(e.sliceDoc(n,n+1))==wt.Word&&t(e.sliceDoc(i-1,i))==wt.Word}const aoe=Ct.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(noe),{state:n}=t,i=n.selection;if(i.ranges.length>1)return ve.none;let r=i.main,s,o=null;if(r.empty){if(!e.highlightWordAroundCursor)return ve.none;let c=n.wordAt(r.head);if(!c)return ve.none;o=n.charCategorizer(r.head),s=n.sliceDoc(c.from,c.to)}else{let c=r.to-r.from;if(c<e.minSelectionLength||c>200)return ve.none;if(e.wholeWords){if(s=n.sliceDoc(r.from,r.to),o=n.charCategorizer(r.head),!(FE(o,n,r.from,r.to)&&ooe(o,n,r.from,r.to)))return ve.none}else if(s=n.sliceDoc(r.from,r.to),!s)return ve.none}let l=[];for(let c of t.visibleRanges){let h=new nc(n.doc,s,c.from,c.to);for(;!h.next().done;){let{from:d,to:p}=h.value;if((!o||FE(o,n,d,p))&&(r.empty&&d<=r.from&&p>=r.to?l.push(soe.range(d,p)):(d>=r.to||p<=r.from)&&l.push(roe.range(d,p)),l.length>e.maxMatches))return ve.none}}return ve.set(l)}},{decorations:t=>t.decorations}),loe=ge.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),coe=({state:t,dispatch:e})=>{let{selection:n}=t,i=se.create(n.ranges.map(r=>t.wordAt(r.head)||se.cursor(r.head)),n.mainIndex);return i.eq(n)?!1:(e(t.update({selection:i})),!0)};function uoe(t,e){let{main:n,ranges:i}=t.selection,r=t.wordAt(n.head),s=r&&r.from==n.from&&r.to==n.to;for(let o=!1,l=new nc(t.doc,e,i[i.length-1].to);;)if(l.next(),l.done){if(o)return null;l=new nc(t.doc,e,0,Math.max(0,i[i.length-1].from-1)),o=!0}else{if(o&&i.some(c=>c.from==l.value.from))continue;if(s){let c=t.wordAt(l.value.from);if(!c||c.from!=l.value.from||c.to!=l.value.to)continue}return l.value}}const hoe=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(s=>s.from===s.to))return coe({state:t,dispatch:e});let i=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(s=>t.sliceDoc(s.from,s.to)!=i))return!1;let r=uoe(t,i);return r?(e(t.update({selection:t.selection.addRange(se.range(r.from,r.to),!1),effects:ge.scrollIntoView(r.to)})),!0):!1},mc=Se.define({combine(t){return Lr(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new _oe(e),scrollToMatch:e=>ge.scrollIntoView(e)})}});class t5{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||Kse(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,i)=>i=="n"?`
266
+ `:i=="r"?"\r":i=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new moe(this):new doe(this)}getCursor(e,n=0,i){let r=e.doc?e:Ze.create({doc:e});return i==null&&(i=r.doc.length),this.regexp?_l(this,r,n,i):Sl(this,r,n,i)}}class n5{constructor(e){this.spec=e}}function Sl(t,e,n,i){return new nc(e.doc,t.unquoted,n,i,t.caseSensitive?void 0:r=>r.toLowerCase(),t.wholeWord?foe(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function foe(t,e){return(n,i,r,s)=>((s>n||s+r.length<i)&&(s=Math.max(0,n-2),r=t.sliceString(s,Math.min(t.length,i+2))),(e(Cm(r,n-s))!=wt.Word||e(Qm(r,n-s))!=wt.Word)&&(e(Qm(r,i-s))!=wt.Word||e(Cm(r,i-s))!=wt.Word))}class doe extends n5{constructor(e){super(e)}nextMatch(e,n,i){let r=Sl(this.spec,e,i,e.doc.length).nextOverlapping();if(r.done){let s=Math.min(e.doc.length,n+this.spec.unquoted.length);r=Sl(this.spec,e,0,s).nextOverlapping()}return r.done||r.value.from==n&&r.value.to==i?null:r.value}prevMatchInRange(e,n,i){for(let r=i;;){let s=Math.max(n,r-1e4-this.spec.unquoted.length),o=Sl(this.spec,e,s,r),l=null;for(;!o.nextOverlapping().done;)l=o.value;if(l)return l;if(s==n)return null;r-=1e4}}prevMatch(e,n,i){let r=this.prevMatchInRange(e,0,n);return r||(r=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),r&&(r.from!=n||r.to!=i)?r:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,n){let i=Sl(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=n)return null;r.push(i.value)}return r}highlight(e,n,i,r){let s=Sl(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}function _l(t,e,n,i){return new Jj(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?poe(e.charCategorizer(e.selection.main.head)):void 0},n,i)}function Cm(t,e){return t.slice(hn(t,e,!1),e)}function Qm(t,e){return t.slice(e,hn(t,e))}function poe(t){return(e,n,i)=>!i[0].length||(t(Cm(i.input,i.index))!=wt.Word||t(Qm(i.input,i.index))!=wt.Word)&&(t(Qm(i.input,i.index+i[0].length))!=wt.Word||t(Cm(i.input,i.index+i[0].length))!=wt.Word)}class moe extends n5{nextMatch(e,n,i){let r=_l(this.spec,e,i,e.doc.length).next();return r.done&&(r=_l(this.spec,e,0,n).next()),r.done?null:r.value}prevMatchInRange(e,n,i){for(let r=1;;r++){let s=Math.max(n,i-r*1e4),o=_l(this.spec,e,s,i),l=null;for(;!o.next().done;)l=o.value;if(l&&(s==n||l.from>s+10))return l;if(s==n)return null}}prevMatch(e,n,i){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(n,i)=>{if(i=="&")return e.match[0];if(i=="$")return"$";for(let r=i.length;r>0;r--){let s=+i.slice(0,r);if(s>0&&s<e.match.length)return e.match[s]+i.slice(r)}return n})}matchAll(e,n){let i=_l(this.spec,e,0,e.doc.length),r=[];for(;!i.next().done;){if(r.length>=n)return null;r.push(i.value)}return r}highlight(e,n,i,r){let s=_l(this.spec,e,Math.max(0,n-250),Math.min(i+250,e.doc.length));for(;!s.next().done;)r(s.value.from,s.value.to)}}const Lh=Me.define(),iS=Me.define(),uo=tn.define({create(t){return new ub(av(t).create(),null)},update(t,e){for(let n of e.effects)n.is(Lh)?t=new ub(n.value.create(),t.panel):n.is(iS)&&(t=new ub(t.query,n.value?rS:null));return t},provide:t=>xh.from(t,e=>e.panel)});class ub{constructor(e,n){this.query=e,this.panel=n}}const goe=ve.mark({class:"cm-searchMatch"}),Ooe=ve.mark({class:"cm-searchMatch cm-searchMatch-selected"}),yoe=Ct.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(uo))}update(t){let e=t.state.field(uo);(e!=t.startState.field(uo)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return ve.none;let{view:n}=this,i=new ds;for(let r=0,s=n.visibleRanges,o=s.length;r<o;r++){let{from:l,to:c}=s[r];for(;r<o-1&&c>s[r+1].from-500;)c=s[++r].to;t.highlight(n.state,l,c,(h,d)=>{let p=n.state.selection.ranges.some(g=>g.from==h&&g.to==d);i.add(h,d,p?Ooe:goe)})}return i.finish()}},{decorations:t=>t.decorations});function Kh(t){return e=>{let n=e.state.field(uo,!1);return n&&n.query.spec.valid?t(e,n):s5(e)}}const Em=Kh((t,{query:e})=>{let{to:n}=t.state.selection.main,i=e.nextMatch(t.state,n,n);if(!i)return!1;let r=se.single(i.from,i.to),s=t.state.facet(mc);return t.dispatch({selection:r,effects:[sS(t,i),s.scrollToMatch(r.main,t)],userEvent:"select.search"}),r5(t),!0}),Am=Kh((t,{query:e})=>{let{state:n}=t,{from:i}=n.selection.main,r=e.prevMatch(n,i,i);if(!r)return!1;let s=se.single(r.from,r.to),o=t.state.facet(mc);return t.dispatch({selection:s,effects:[sS(t,r),o.scrollToMatch(s.main,t)],userEvent:"select.search"}),r5(t),!0}),boe=Kh((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!n||!n.length?!1:(t.dispatch({selection:se.create(n.map(i=>se.range(i.from,i.to))),userEvent:"select.search.matches"}),!0)}),xoe=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:i,to:r}=n.main,s=[],o=0;for(let l=new nc(t.doc,t.sliceDoc(i,r));!l.next().done;){if(s.length>1e3)return!1;l.value.from==i&&(o=s.length),s.push(se.range(l.value.from,l.value.to))}return e(t.update({selection:se.create(s,o),userEvent:"select.search.matches"})),!0},KE=Kh((t,{query:e})=>{let{state:n}=t,{from:i,to:r}=n.selection.main;if(n.readOnly)return!1;let s=e.nextMatch(n,i,i);if(!s)return!1;let o=s,l=[],c,h,d=[];o.from==i&&o.to==r&&(h=n.toText(e.getReplacement(o)),l.push({from:o.from,to:o.to,insert:h}),o=e.nextMatch(n,o.from,o.to),d.push(ge.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(i).number)+".")));let p=t.state.changes(l);return o&&(c=se.single(o.from,o.to).map(p),d.push(sS(t,o)),d.push(n.facet(mc).scrollToMatch(c.main,t))),t.dispatch({changes:p,selection:c,effects:d,userEvent:"input.replace"}),!0}),voe=Kh((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(r=>{let{from:s,to:o}=r;return{from:s,to:o,insert:e.getReplacement(r)}});if(!n.length)return!1;let i=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:ge.announce.of(i),userEvent:"input.replace.all"}),!0});function rS(t){return t.state.facet(mc).createPanel(t)}function av(t,e){var n,i,r,s,o;let l=t.selection.main,c=l.empty||l.to>l.from+100?"":t.sliceDoc(l.from,l.to);if(e&&!c)return e;let h=t.facet(mc);return new t5({search:((n=e?.literal)!==null&&n!==void 0?n:h.literal)?c:c.replace(/\n/g,"\\n"),caseSensitive:(i=e?.caseSensitive)!==null&&i!==void 0?i:h.caseSensitive,literal:(r=e?.literal)!==null&&r!==void 0?r:h.literal,regexp:(s=e?.regexp)!==null&&s!==void 0?s:h.regexp,wholeWord:(o=e?.wholeWord)!==null&&o!==void 0?o:h.wholeWord})}function i5(t){let e=bh(t,rS);return e&&e.dom.querySelector("[main-field]")}function r5(t){let e=i5(t);e&&e==t.root.activeElement&&e.select()}const s5=t=>{let e=t.state.field(uo,!1);if(e&&e.panel){let n=i5(t);if(n&&n!=t.root.activeElement){let i=av(t.state,e.query.spec);i.valid&&t.dispatch({effects:Lh.of(i)}),n.focus(),n.select()}}else t.dispatch({effects:[iS.of(!0),e?Lh.of(av(t.state,e.query.spec)):Me.appendConfig.of(woe)]});return!0},o5=t=>{let e=t.state.field(uo,!1);if(!e||!e.panel)return!1;let n=bh(t,rS);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:iS.of(!1)}),!0},Soe=[{key:"Mod-f",run:s5,scope:"editor search-panel"},{key:"F3",run:Em,shift:Am,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Em,shift:Am,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:o5,scope:"editor search-panel"},{key:"Mod-Shift-l",run:xoe},{key:"Mod-Alt-g",run:Jse},{key:"Mod-d",run:hoe,preventDefault:!0}];class _oe{constructor(e){this.view=e;let n=this.query=e.state.field(uo).query.spec;this.commit=this.commit.bind(this),this.searchField=mt("input",{value:n.search,placeholder:ci(e,"Find"),"aria-label":ci(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=mt("input",{value:n.replace,placeholder:ci(e,"Replace"),"aria-label":ci(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=mt("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=mt("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=mt("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function i(r,s,o){return mt("button",{class:"cm-button",name:r,onclick:s,type:"button"},o)}this.dom=mt("div",{onkeydown:r=>this.keydown(r),class:"cm-search"},[this.searchField,i("next",()=>Em(e),[ci(e,"next")]),i("prev",()=>Am(e),[ci(e,"previous")]),i("select",()=>boe(e),[ci(e,"all")]),mt("label",null,[this.caseField,ci(e,"match case")]),mt("label",null,[this.reField,ci(e,"regexp")]),mt("label",null,[this.wordField,ci(e,"by word")]),...e.state.readOnly?[]:[mt("br"),this.replaceField,i("replace",()=>KE(e),[ci(e,"replace")]),i("replaceAll",()=>voe(e),[ci(e,"replace all")])],mt("button",{name:"close",onclick:()=>o5(e),"aria-label":ci(e,"close"),type:"button"},["×"])])}commit(){let e=new t5({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Lh.of(e)}))}keydown(e){NF(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Am:Em)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),KE(this.view))}update(e){for(let n of e.transactions)for(let i of n.effects)i.is(Lh)&&!i.value.eq(this.query)&&this.setQuery(i.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(mc).top}}function ci(t,e){return t.state.phrase(e)}const rp=30,sp=/[\s\.,:;?!]/;function sS(t,{from:e,to:n}){let i=t.state.doc.lineAt(e),r=t.state.doc.lineAt(n).to,s=Math.max(i.from,e-rp),o=Math.min(r,n+rp),l=t.state.sliceDoc(s,o);if(s!=i.from){for(let c=0;c<rp;c++)if(!sp.test(l[c+1])&&sp.test(l[c])){l=l.slice(c);break}}if(o!=r){for(let c=l.length-1;c>l.length-rp;c--)if(!sp.test(l[c-1])&&sp.test(l[c])){l=l.slice(0,c);break}}return ge.announce.of(`${t.state.phrase("current match")}. ${l} ${t.state.phrase("on line")} ${i.number}.`)}const koe=ge.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),woe=[uo,xs.low(yoe),koe];class JE{constructor(e,n,i){this.from=e,this.to=n,this.diagnostic=i}}class Jo{constructor(e,n,i){this.diagnostics=e,this.panel=n,this.selected=i}static init(e,n,i){let r=i.facet($h).markerFilter;r&&(e=r(e,i));let s=e.slice().sort((O,x)=>O.from-x.from||O.to-x.to),o=new ds,l=[],c=0,h=i.doc.iter(),d=0,p=i.doc.length;for(let O=0;;){let x=O==s.length?null:s[O];if(!x&&!l.length)break;let S,k;if(l.length)S=c,k=l.reduce((C,D)=>Math.min(C,D.to),x&&x.from>S?x.from:1e8);else{if(S=x.from,S>p)break;k=x.to,l.push(x),O++}for(;O<s.length;){let C=s[O];if(C.from==S&&(C.to>C.from||C.to==S))l.push(C),O++,k=Math.min(C.to,k);else{k=Math.min(C.from,k);break}}k=Math.min(k,p);let _=!1;if(l.some(C=>C.from==S&&(C.to==k||k==p))&&(_=S==k,!_&&k-S<10)){let C=S-(d+h.value.length);C>0&&(h.next(C),d=S);for(let D=S;;){if(D>=k){_=!0;break}if(!h.lineBreak&&d+h.value.length>D)break;D=d+h.value.length,d+=h.value.length,h.next()}}let T=Noe(l);if(_)o.add(S,S,ve.widget({widget:new $oe(T),diagnostics:l.slice()}));else{let C=l.reduce((D,j)=>j.markClass?D+" "+j.markClass:D,"");o.add(S,k,ve.mark({class:"cm-lintRange cm-lintRange-"+T+C,diagnostics:l.slice(),inclusiveEnd:l.some(D=>D.to>k)}))}if(c=k,c==p)break;for(let C=0;C<l.length;C++)l[C].to<=c&&l.splice(C--,1)}let g=o.finish();return new Jo(g,n,ic(g))}}function ic(t,e=null,n=0){let i=null;return t.between(n,1e9,(r,s,{spec:o})=>{if(!(e&&o.diagnostics.indexOf(e)<0))if(!i)i=new JE(r,s,e||o.diagnostics[0]);else{if(o.diagnostics.indexOf(i.diagnostic)<0)return!1;i=new JE(i.from,s,i.diagnostic)}}),i}function Poe(t,e){let n=e.pos,i=e.end||n,r=t.state.facet($h).hideOn(t,n,i);if(r!=null)return r;let s=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(o=>o.is(a5))||t.changes.touchesRange(s.from,Math.max(s.to,i)))}function Toe(t,e){return t.field(mi,!1)?e:e.concat(Me.appendConfig.of(zoe))}const a5=Me.define(),oS=Me.define(),l5=Me.define(),mi=tn.define({create(){return new Jo(ve.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let n=t.diagnostics.map(e.changes),i=null,r=t.panel;if(t.selected){let s=e.changes.mapPos(t.selected.from,1);i=ic(n,t.selected.diagnostic,s)||ic(n,null,s)}!n.size&&r&&e.state.facet($h).autoPanel&&(r=null),t=new Jo(n,r,i)}for(let n of e.effects)if(n.is(a5)){let i=e.state.facet($h).autoPanel?n.value.length?Mh.open:null:t.panel;t=Jo.init(n.value,i,e.state)}else n.is(oS)?t=new Jo(t.diagnostics,n.value?Mh.open:null,t.selected):n.is(l5)&&(t=new Jo(t.diagnostics,t.panel,n.value));return t},provide:t=>[xh.from(t,e=>e.panel),ge.decorations.from(t,e=>e.diagnostics)]}),Coe=ve.mark({class:"cm-lintRange cm-lintRange-active"});function Qoe(t,e,n){let{diagnostics:i}=t.state.field(mi),r,s=-1,o=-1;i.between(e-(n<0?1:0),e+(n>0?1:0),(c,h,{spec:d})=>{if(e>=c&&e<=h&&(c==h||(e>c||n>0)&&(e<h||n<0)))return r=d.diagnostics,s=c,o=h,!1});let l=t.state.facet($h).tooltipFilter;return r&&l&&(r=l(r,t.state)),r?{pos:s,end:o,above:t.state.doc.lineAt(s).to<o,create(){return{dom:Eoe(t,r)}}}:null}function Eoe(t,e){return mt("ul",{class:"cm-tooltip-lint"},e.map(n=>u5(t,n,!1)))}const Aoe=t=>{let e=t.state.field(mi,!1);(!e||!e.panel)&&t.dispatch({effects:Toe(t.state,[oS.of(!0)])});let n=bh(t,Mh.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},e2=t=>{let e=t.state.field(mi,!1);return!e||!e.panel?!1:(t.dispatch({effects:oS.of(!1)}),!0)},Roe=t=>{let e=t.state.field(mi,!1);if(!e)return!1;let n=t.state.selection.main,i=e.diagnostics.iter(n.to+1);return!i.value&&(i=e.diagnostics.iter(0),!i.value||i.from==n.from&&i.to==n.to)?!1:(t.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)},Loe=[{key:"Mod-Shift-m",run:Aoe,preventDefault:!0},{key:"F8",run:Roe}],$h=Se.define({combine(t){return{sources:t.map(e=>e.source).filter(e=>e!=null),...Lr(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:t2,tooltipFilter:t2,needsRefresh:(e,n)=>e?n?i=>e(i)||n(i):e:n,hideOn:(e,n)=>e?n?(i,r,s)=>e(i,r,s)||n(i,r,s):e:n,autoPanel:(e,n)=>e||n})}}});function t2(t,e){return t?e?(n,i)=>e(t(n,i),i):t:e}function c5(t){let e=[];if(t)e:for(let{name:n}of t){for(let i=0;i<n.length;i++){let r=n[i];if(/[a-zA-Z]/.test(r)&&!e.some(s=>s.toLowerCase()==r.toLowerCase())){e.push(r);continue e}}e.push("")}return e}function u5(t,e,n){var i;let r=n?c5(e.actions):[];return mt("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},mt("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(i=e.actions)===null||i===void 0?void 0:i.map((s,o)=>{let l=!1,c=O=>{if(O.preventDefault(),l)return;l=!0;let x=ic(t.state.field(mi).diagnostics,e);x&&s.apply(t,x.from,x.to)},{name:h}=s,d=r[o]?h.indexOf(r[o]):-1,p=d<0?h:[h.slice(0,d),mt("u",h.slice(d,d+1)),h.slice(d+1)],g=s.markClass?" "+s.markClass:"";return mt("button",{type:"button",class:"cm-diagnosticAction"+g,onclick:c,onmousedown:c,"aria-label":` Action: ${h}${d<0?"":` (access key "${r[o]})"`}.`},p)}),e.source&&mt("div",{class:"cm-diagnosticSource"},e.source))}class $oe extends bi{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return mt("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class n2{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=u5(e,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Mh{constructor(e){this.view=e,this.items=[];let n=r=>{if(r.keyCode==27)e2(this.view),this.view.focus();else if(r.keyCode==38||r.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(r.keyCode==40||r.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(r.keyCode==36)this.moveSelection(0);else if(r.keyCode==35)this.moveSelection(this.items.length-1);else if(r.keyCode==13)this.view.focus();else if(r.keyCode>=65&&r.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:s}=this.items[this.selectedIndex],o=c5(s.actions);for(let l=0;l<o.length;l++)if(o[l].toUpperCase().charCodeAt(0)==r.keyCode){let c=ic(this.view.state.field(mi).diagnostics,s);c&&s.actions[l].apply(e,c.from,c.to)}}else return;r.preventDefault()},i=r=>{for(let s=0;s<this.items.length;s++)this.items[s].dom.contains(r.target)&&this.moveSelection(s)};this.list=mt("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:n,onclick:i}),this.dom=mt("div",{class:"cm-panel-lint"},this.list,mt("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>e2(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(mi).selected;if(!e)return-1;for(let n=0;n<this.items.length;n++)if(this.items[n].diagnostic==e.diagnostic)return n;return-1}update(){let{diagnostics:e,selected:n}=this.view.state.field(mi),i=0,r=!1,s=null,o=new Set;for(e.between(0,this.view.state.doc.length,(l,c,{spec:h})=>{for(let d of h.diagnostics){if(o.has(d))continue;o.add(d);let p=-1,g;for(let O=i;O<this.items.length;O++)if(this.items[O].diagnostic==d){p=O;break}p<0?(g=new n2(this.view,d),this.items.splice(i,0,g),r=!0):(g=this.items[p],p>i&&(this.items.splice(i,p-i),r=!0)),n&&g.diagnostic==n.diagnostic?g.dom.hasAttribute("aria-selected")||(g.dom.setAttribute("aria-selected","true"),s=g):g.dom.hasAttribute("aria-selected")&&g.dom.removeAttribute("aria-selected"),i++}});i<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)r=!0,this.items.pop();this.items.length==0&&(this.items.push(new n2(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),r=!0),s?(this.list.setAttribute("aria-activedescendant",s.id),this.view.requestMeasure({key:this,read:()=>({sel:s.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:l,panel:c})=>{let h=c.height/this.list.offsetHeight;l.top<c.top?this.list.scrollTop-=(c.top-l.top)/h:l.bottom>c.bottom&&(this.list.scrollTop+=(l.bottom-c.bottom)/h)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function n(){let i=e;e=i.nextSibling,i.remove()}for(let i of this.items)if(i.dom.parentNode==this.list){for(;e!=i.dom;)n();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e);for(;e;)n()}moveSelection(e){if(this.selectedIndex<0)return;let n=this.view.state.field(mi),i=ic(n.diagnostics,this.items[e].diagnostic);i&&this.view.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:l5.of(i)})}static open(e){return new Mh(e)}}function Moe(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`}function op(t){return Moe(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const Doe=ge.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:op("#d11")},".cm-lintRange-warning":{backgroundImage:op("orange")},".cm-lintRange-info":{backgroundImage:op("#999")},".cm-lintRange-hint":{backgroundImage:op("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});function joe(t){return t=="error"?4:t=="warning"?3:t=="info"?2:1}function Noe(t){let e="hint",n=1;for(let i of t){let r=joe(i.severity);r>n&&(n=r,e=i.severity)}return e}const zoe=[mi,ge.decorations.compute([mi],t=>{let{selected:e,panel:n}=t.field(mi);return!e||!n||e.from==e.to?ve.none:ve.set([Coe.range(e.from,e.to)])}),PK(Qoe,{hideOn:Poe}),Doe];var i2=function(e){e===void 0&&(e={});var{crosshairCursor:n=!1}=e,i=[];e.closeBracketsKeymap!==!1&&(i=i.concat(Vne)),e.defaultKeymap!==!1&&(i=i.concat(pte)),e.searchKeymap!==!1&&(i=i.concat(Soe)),e.historyKeymap!==!1&&(i=i.concat(See)),e.foldKeymap!==!1&&(i=i.concat(pJ)),e.completionKeymap!==!1&&(i=i.concat(vD)),e.lintKeymap!==!1&&(i=i.concat(Loe));var r=[];return e.lineNumbers!==!1&&r.push(jK()),e.highlightActiveLineGutter!==!1&&r.push(IK()),e.highlightSpecialChars!==!1&&r.push(tK()),e.history!==!1&&r.push(dee()),e.foldGutter!==!1&&r.push(yJ()),e.drawSelection!==!1&&r.push(ZF()),e.dropCursor!==!1&&r.push(WF()),e.allowMultipleSelections!==!1&&r.push(Ze.allowMultipleSelections.of(!0)),e.indentOnInput!==!1&&r.push(oJ()),e.syntaxHighlighting!==!1&&r.push(ug(SJ,{fallback:!0})),e.bracketMatching!==!1&&r.push(QJ()),e.closeBrackets!==!1&&r.push(Nne()),e.autocompletion!==!1&&r.push(Wne()),e.rectangularSelection!==!1&&r.push(mK()),n!==!1&&r.push(yK()),e.highlightActiveLine!==!1&&r.push(aK()),e.highlightSelectionMatches!==!1&&r.push(ioe()),e.tabSize&&typeof e.tabSize=="number"&&r.push(fc.of(" ".repeat(e.tabSize))),r.concat([wa.of(i.flat())]).filter(Boolean)};const Ioe="#e5c07b",r2="#e06c75",Xoe="#56b6c2",Voe="#ffffff",Tp="#abb2bf",lv="#7d8799",Boe="#61afef",Zoe="#98c379",s2="#d19a66",qoe="#c678dd",Uoe="#21252b",o2="#2c313a",a2="#282c34",hb="#353a42",Yoe="#3E4451",l2="#528bff",Goe=ge.theme({"&":{color:Tp,backgroundColor:a2},".cm-content":{caretColor:l2},".cm-cursor, .cm-dropCursor":{borderLeftColor:l2},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Yoe},".cm-panels":{backgroundColor:Uoe,color:Tp},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:a2,color:lv,border:"none"},".cm-activeLineGutter":{backgroundColor:o2},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:hb},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:hb,borderBottomColor:hb},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:o2,color:Tp}}},{dark:!0}),Woe=Pa.define([{tag:E.keyword,color:qoe},{tag:[E.name,E.deleted,E.character,E.propertyName,E.macroName],color:r2},{tag:[E.function(E.variableName),E.labelName],color:Boe},{tag:[E.color,E.constant(E.name),E.standard(E.name)],color:s2},{tag:[E.definition(E.name),E.separator],color:Tp},{tag:[E.typeName,E.className,E.number,E.changed,E.annotation,E.modifier,E.self,E.namespace],color:Ioe},{tag:[E.operator,E.operatorKeyword,E.url,E.escape,E.regexp,E.link,E.special(E.string)],color:Xoe},{tag:[E.meta,E.comment],color:lv},{tag:E.strong,fontWeight:"bold"},{tag:E.emphasis,fontStyle:"italic"},{tag:E.strikethrough,textDecoration:"line-through"},{tag:E.link,color:lv,textDecoration:"underline"},{tag:E.heading,fontWeight:"bold",color:r2},{tag:[E.atom,E.bool,E.special(E.variableName)],color:s2},{tag:[E.processingInstruction,E.string,E.inserted],color:Zoe},{tag:E.invalid,color:Voe}]),Hoe=[Goe,ug(Woe)];var Foe=ge.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),Koe=function(e){e===void 0&&(e={});var{indentWithTab:n=!0,editable:i=!0,readOnly:r=!1,theme:s="light",placeholder:o="",basicSetup:l=!0}=e,c=[];switch(n&&c.unshift(wa.of([mte])),l&&(typeof l=="boolean"?c.unshift(i2()):c.unshift(i2(l))),o&&c.unshift(hK(o)),s){case"light":c.push(Foe);break;case"dark":c.push(Hoe);break;case"none":break;default:c.push(s);break}return i===!1&&c.push(ge.editable.of(!1)),r&&c.push(Ze.readOnly.of(!0)),[...c]},Joe=t=>({line:t.state.doc.lineAt(t.state.selection.main.from),lineCount:t.state.doc.lines,lineBreak:t.state.lineBreak,length:t.state.doc.length,readOnly:t.state.readOnly,tabSize:t.state.tabSize,selection:t.state.selection,selectionAsSingle:t.state.selection.asSingle().main,ranges:t.state.selection.ranges,selectionCode:t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to),selections:t.state.selection.ranges.map(e=>t.state.sliceDoc(e.from,e.to)),selectedText:t.state.selection.ranges.some(e=>!e.empty)});class eae{constructor(e,n){this.timeLeftMS=void 0,this.timeoutMS=void 0,this.isCancelled=!1,this.isTimeExhausted=!1,this.callbacks=[],this.timeLeftMS=n,this.timeoutMS=n,this.callbacks.push(e)}tick(){if(!this.isCancelled&&!this.isTimeExhausted&&(this.timeLeftMS--,this.timeLeftMS<=0)){this.isTimeExhausted=!0;var e=this.callbacks.slice();this.callbacks.length=0,e.forEach(n=>{try{n()}catch(i){console.error("TimeoutLatch callback error:",i)}})}}cancel(){this.isCancelled=!0,this.callbacks.length=0}reset(){this.timeLeftMS=this.timeoutMS,this.isCancelled=!1,this.isTimeExhausted=!1}get isDone(){return this.isCancelled||this.isTimeExhausted}}class c2{constructor(){this.interval=null,this.latches=new Set}add(e){this.latches.add(e),this.start()}remove(e){this.latches.delete(e),this.latches.size===0&&this.stop()}start(){this.interval===null&&(this.interval=setInterval(()=>{this.latches.forEach(e=>{e.tick(),e.isDone&&this.remove(e)})},1))}stop(){this.interval!==null&&(clearInterval(this.interval),this.interval=null)}}var fb=null,tae=()=>typeof window>"u"?new c2:(fb||(fb=new c2),fb),u2=Rr.define(),nae=200,iae=[];function rae(t){var{value:e,selection:n,onChange:i,onStatistics:r,onCreateEditor:s,onUpdate:o,extensions:l=iae,autoFocus:c,theme:h="light",height:d=null,minHeight:p=null,maxHeight:g=null,width:O=null,minWidth:x=null,maxWidth:S=null,placeholder:k="",editable:_=!0,readOnly:T=!1,indentWithTab:C=!0,basicSetup:D=!0,root:j,initialState:A}=t,[M,I]=z.useState(),[B,$]=z.useState(),[U,H]=z.useState(),oe=z.useState(()=>({current:null}))[0],F=z.useState(()=>({current:null}))[0],Y=ge.theme({"&":{height:d,minHeight:p,maxHeight:g,width:O,minWidth:x,maxWidth:S},"& .cm-scroller":{height:"100% !important"}}),Z=ge.updateListener.of(Oe=>{if(Oe.docChanged&&typeof i=="function"&&!Oe.transactions.some(te=>te.annotation(u2))){oe.current?oe.current.reset():(oe.current=new eae(()=>{if(F.current){var te=F.current;F.current=null,te()}oe.current=null},nae),tae().add(oe.current));var L=Oe.state.doc,N=L.toString();i(N,Oe)}r&&r(Joe(Oe))}),J=Koe({theme:h,editable:_,readOnly:T,placeholder:k,indentWithTab:C,basicSetup:D}),ce=[Z,Y,...J];return o&&typeof o=="function"&&ce.push(ge.updateListener.of(o)),ce=ce.concat(l),z.useLayoutEffect(()=>{if(M&&!U){var Oe={doc:e,selection:n,extensions:ce},L=A?Ze.fromJSON(A.json,Oe,A.fields):Ze.create(Oe);if(H(L),!B){var N=new ge({state:L,parent:M,root:j});$(N),s&&s(N,L)}}return()=>{B&&(H(void 0),$(void 0))}},[M,U]),z.useEffect(()=>{t.container&&I(t.container)},[t.container]),z.useEffect(()=>()=>{B&&(B.destroy(),$(void 0)),oe.current&&(oe.current.cancel(),oe.current=null)},[B]),z.useEffect(()=>{c&&B&&B.focus()},[c,B]),z.useEffect(()=>{B&&B.dispatch({effects:Me.reconfigure.of(ce)})},[h,l,d,p,g,O,x,S,k,_,T,C,D,i,o]),z.useEffect(()=>{if(e!==void 0){var Oe=B?B.state.doc.toString():"";if(B&&e!==Oe){var L=oe.current&&!oe.current.isDone,N=()=>{B&&e!==B.state.doc.toString()&&B.dispatch({changes:{from:0,to:B.state.doc.toString().length,insert:e||""},annotations:[u2.of(!0)]})};L?F.current=N:N()}}},[e,B]),{state:U,setState:H,view:B,setView:$,container:M,setContainer:I}}var sae=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],h5=z.forwardRef((t,e)=>{var{className:n,value:i="",selection:r,extensions:s=[],onChange:o,onStatistics:l,onCreateEditor:c,onUpdate:h,autoFocus:d,theme:p="light",height:g,minHeight:O,maxHeight:x,width:S,minWidth:k,maxWidth:_,basicSetup:T,placeholder:C,indentWithTab:D,editable:j,readOnly:A,root:M,initialState:I}=t,B=Fse(t,sae),$=z.useRef(null),{state:U,view:H,container:oe,setContainer:F}=rae({root:M,value:i,autoFocus:d,theme:p,height:g,minHeight:O,maxHeight:x,width:S,minWidth:k,maxWidth:_,basicSetup:T,placeholder:C,indentWithTab:D,editable:j,readOnly:A,selection:r,onChange:o,onStatistics:l,onCreateEditor:c,onUpdate:h,extensions:s,initialState:I});z.useImperativeHandle(e,()=>({editor:$.current,state:U,view:H}),[$,oe,U,H]);var Y=z.useCallback(J=>{$.current=J,F(J)},[F]);if(typeof i!="string")throw new Error("value must be typeof string but got "+typeof i);var Z=typeof p=="string"?"cm-theme-"+p:"cm-theme";return v.jsx("div",sv({ref:Y,className:""+Z+(n?" "+n:"")},B))});h5.displayName="CodeMirror";function oae(t){if(!t)return"plain";const e=t.toLowerCase();return e.endsWith(".md")?"markdown":e.endsWith(".ts")||e.endsWith(".tsx")?"typescript":e.endsWith(".js")||e.endsWith(".jsx")?"javascript":e.endsWith(".json")?"json":e.endsWith(".yml")||e.endsWith(".yaml")?"yaml":"plain"}function aae(t,e){switch(t){case"markdown":return[Vj({base:ec,codeLanguages:Hse}),iee()];case"typescript":return[Sm({typescript:!0,jsx:e?.endsWith(".tsx")})];case"javascript":return[Sm({jsx:e?.endsWith(".jsx")})];case"json":return[RD()];case"yaml":return[Fj()];default:return[]}}const lae=Pa.define([{tag:[E.keyword,E.operatorKeyword,E.modifier],color:"var(--primary)"},{tag:[E.string,E.special(E.string)],color:"var(--secondary)"},{tag:[E.number,E.integer,E.float],color:"var(--chart-4)"},{tag:[E.bool,E.null,E.atom],color:"var(--accent)"},{tag:[E.typeName,E.className],color:"var(--chart-3)"},{tag:[E.function(E.variableName),E.propertyName],color:"var(--chart-5)"},{tag:[E.variableName],color:"var(--foreground)"},{tag:[E.comment,E.lineComment,E.blockComment],color:"color-mix(in srgb, var(--muted-foreground) 80%, transparent)"},{tag:E.punctuation,color:"color-mix(in srgb, var(--foreground) 70%, transparent)"}]);function f5({value:t,onChange:e,readOnly:n=!1,language:i,filename:r,lineNumbers:s=!0,lineWrapping:o=!0,fontSize:l=13,className:c="",style:h,placeholder:d}){const p=i??oae(r),g=z.useMemo(()=>{const O=[Ze.readOnly.of(n),...aae(p,r),ug(lae,{fallback:!0})];return O.push(ge.theme({".cm-line":{lineHeight:"21px"},".cm-editor":{backgroundColor:"var(--card)",color:"var(--foreground)",borderRadius:"6px",border:"1px solid color-mix(in srgb, var(--border) 80%, transparent)",height:"100%",minHeight:"240px"},".cm-content":{fontFamily:"var(--font-mono)",backgroundColor:"transparent"},".cm-gutters":{fontFamily:"var(--font-mono)",backgroundColor:"var(--card)",color:"color-mix(in srgb, var(--foreground) 60%, transparent)",borderRight:"1px solid color-mix(in srgb, var(--border) 80%, transparent)"},".cm-scroller":{fontFamily:"var(--font-mono)",overflow:"auto"},".cm-activeLine":{backgroundColor:"color-mix(in srgb, var(--primary) 6%, transparent)"},".cm-activeLineGutter":{backgroundColor:"color-mix(in srgb, var(--primary) 6%, transparent)",color:"var(--foreground)"},".cm-selectionBackground, .cm-content ::selection":{backgroundColor:"color-mix(in srgb, var(--primary) 24%, transparent)"},"&.cm-editor .cm-cursor":{borderLeftColor:"var(--foreground)"},".cm-matchingBracket, .cm-nonmatchingBracket":{backgroundColor:"color-mix(in srgb, var(--primary) 10%, transparent)",outline:"1px solid color-mix(in srgb, var(--primary) 30%, transparent)"},".cm-tooltip":{backgroundColor:"var(--popover)",color:"var(--popover-foreground)",border:"1px solid color-mix(in srgb, var(--border) 80%, transparent)"},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{background:"color-mix(in srgb, var(--primary) 10%, transparent)",color:"var(--foreground)"}},".cm-searchMatch":{backgroundColor:"color-mix(in srgb, var(--primary) 18%, transparent)",outline:"1px solid color-mix(in srgb, var(--primary) 35%, transparent)"},".cm-md-codeblock":{padding:"0",borderRadius:0}})),O.push(wa.of([{key:"Mod-a",run:KM}])),o&&O.push(ge.lineWrapping),O},[p,r,n,o]);return v.jsx(h5,{value:t,onChange:e,placeholder:d,theme:"none",basicSetup:{lineNumbers:s,foldGutter:!n,highlightActiveLine:!n,highlightActiveLineGutter:!n,autocompletion:!n,closeBrackets:!n,bracketMatching:!n},extensions:g,className:`scrollbar-thin scrollbar-track-transparent overflow-auto ${c}`,style:{fontSize:l,...h}})}function cae(t,e){const n=t.path.split("/"),i=e.path.split("/"),r=Math.min(n.length,i.length);for(let s=0;s<r;s++){const o=s===n.length-1,l=s===i.length-1;if(n[s]!==i[s]){if(o&&l){if(t.type!==e.type)return t.type==="directory"?-1:1}else{if(o&&!l)return t.type==="directory"?n[s].localeCompare(i[s]):1;if(!o&&l)return e.type==="directory"?n[s].localeCompare(i[s]):-1}return n[s].localeCompare(i[s])}}return n.length-i.length}function d5(t){return t.split("/").pop()??t}function uae(t){return t.split("/").slice(0,-1).join("/")}const hae=String.raw,fae=hae`
267
+ /* 窄屏:单列布局 */
268
+ .fev-layout {
269
+ display: flex;
270
+ flex-direction: column;
271
+ height: 100%;
272
+ gap: 0.75rem;
273
+ }
274
+ .fev-sidebar-tabs {
275
+ flex-shrink: 0;
276
+ }
277
+ .fev-sidebar-tree {
278
+ display: none;
279
+ }
280
+ .fev-editor-wrapper {
281
+ display: flex;
282
+ flex-direction: column;
283
+ flex: 1;
284
+ min-height: 320px;
285
+ }
286
+
287
+ /* 宽屏:grid 布局,文件列表在右侧 */
288
+ @container (min-width: 768px) {
289
+ .fev-layout {
290
+ display: grid;
291
+ grid-template-columns: 1fr 220px;
292
+ gap: 1rem;
293
+ }
294
+ .fev-sidebar-tabs {
295
+ display: none;
296
+ }
297
+ .fev-sidebar-tree {
298
+ display: block;
299
+ order: 2;
300
+ }
301
+ .fev-editor-wrapper {
302
+ order: 1;
303
+ min-height: 480px;
304
+ }
305
+ }
306
+ .CodeMirror {
307
+ line-height: 21px;
308
+ }
309
+ `;function dae({path:t,entries:e,onNavigate:n}){const i=t.split("/"),r=t.endsWith(".md"),s=[];for(let o=0;o<i.length;o++){const l=i.slice(0,o+1).join("/"),c=o===i.length-1;s.push({name:i[o],path:l,isFile:c})}return v.jsx("div",{className:"border-border/50 bg-muted/20 flex items-center gap-1 overflow-x-auto border-b px-3 py-2 text-xs",children:s.map((o,l)=>{const c=l===s.length-1,h=!c&&e.some(d=>d.type==="file"&&d.path.startsWith(o.path+"/"));return v.jsxs("span",{className:"flex items-center gap-1",children:[l>0&&v.jsx(zm,{className:"text-muted-foreground/50 h-3 w-3"}),c?v.jsxs("span",{className:"text-foreground flex items-center gap-1.5",children:[o.isFile?r?v.jsx(Oi,{className:"h-3.5 w-3.5"}):v.jsx(bv,{className:"h-3.5 w-3.5"}):v.jsx(Cl,{className:"h-3.5 w-3.5"}),o.name]}):h?v.jsxs("button",{onClick:()=>{const d=e.find(p=>p.type==="file"&&p.path.startsWith(o.path+"/"));d&&n(d.path)},className:"text-muted-foreground hover:text-foreground flex items-center gap-1.5 transition-colors",children:[v.jsx(Cl,{className:"h-3.5 w-3.5"}),o.name]}):v.jsxs("span",{className:"text-muted-foreground flex items-center gap-1.5",children:[v.jsx(Cl,{className:"h-3.5 w-3.5"}),o.name]})]},o.path)})})}function pae({entries:t,selectedPath:e,onSelect:n}){const i=t.filter(r=>r.type==="file");return v.jsx("div",{className:"scrollbar-thin scrollbar-track-transparent border-border bg-muted/30 flex gap-1 overflow-x-auto rounded-md border p-1",children:i.map(r=>{const s=r.path===e,o=r.path.endsWith(".md");return v.jsxs("button",{onClick:()=>n(r.path),title:r.path,className:`flex shrink-0 items-center gap-1.5 rounded px-2.5 py-1.5 text-xs transition-colors ${s?"bg-background text-foreground shadow-sm":"text-muted-foreground hover:bg-background/50 hover:text-foreground"}`,children:[o?v.jsx(Oi,{className:"h-3.5 w-3.5"}):v.jsx(bv,{className:"h-3.5 w-3.5"}),v.jsx("span",{className:"max-w-[120px] truncate",children:d5(r.path)})]},r.path)})})}function mae({entries:t,selectedPath:e,onSelect:n}){const i=r=>{const s=uae(r.path);if(!s)return 0;if(t.some(l=>l.type==="directory"&&l.path===s)){const l=t.find(c=>c.path===s);return i(l)+1}return r.path.split("/").length-1};return v.jsxs("div",{className:"border-border bg-muted/30 flex h-full flex-col rounded-md border",children:[v.jsx("div",{className:"border-border/50 text-muted-foreground border-b px-3 py-2 text-xs font-medium uppercase",children:"Files"}),v.jsx("div",{className:"scrollbar-thin scrollbar-track-transparent flex-1 overflow-y-auto",children:t.map(r=>{const s=i(r),o=r.path===e,l=r.type==="file",c=l?r.path.endsWith(".md")?v.jsx(Oi,{className:"h-4 w-4 shrink-0"}):v.jsx(bv,{className:"h-4 w-4 shrink-0"}):v.jsx(Cl,{className:"h-4 w-4 shrink-0"});return v.jsxs("button",{disabled:!l,onClick:()=>l&&n(r.path),className:`flex w-full items-center gap-2 px-3 py-1.5 text-sm transition-colors ${o?"bg-primary/10 text-foreground":l?"text-muted-foreground hover:bg-muted/50 hover:text-foreground":"text-muted-foreground cursor-default"}`,style:{paddingLeft:12+s*14},children:[c,v.jsx("span",{className:`truncate ${l?"":"text-foreground font-medium"}`,children:d5(r.path)})]},r.path)})})]})}function p5({changeId:t,archived:e=!1}){const{data:n,isLoading:i,error:r}=e?AB(t):CB(t),[s,o]=z.useState(null),l=z.useMemo(()=>n?[...n].sort(cae):[],[n]);z.useEffect(()=>{if(!l.length){o(null);return}if(!l.find(d=>d.path===s&&d.type==="file")){const d=l.find(p=>p.type==="file");o(d?.path??null)}},[l,s]);const c=z.useMemo(()=>!l.length||!s?null:l.find(h=>h.path===s&&h.type==="file")??null,[l,s]);return i?v.jsx("div",{className:"border-border bg-muted/20 flex h-[400px] items-center justify-center rounded-md border",children:v.jsx(lo,{className:"text-muted-foreground h-6 w-6 animate-spin"})}):r?v.jsxs("div",{className:"border-destructive/50 bg-destructive/10 text-destructive rounded-md border p-4 text-sm",children:["Failed to load files: ",r.message]}):l.length?v.jsxs("div",{className:"@container-[size] h-full",children:[v.jsx("style",{children:fae}),v.jsxs("div",{className:"fev-layout",children:[v.jsx("div",{className:"fev-sidebar-tabs",children:v.jsx(pae,{entries:l,selectedPath:s,onSelect:o})}),v.jsx("div",{className:"fev-sidebar-tree",children:v.jsx(mae,{entries:l,selectedPath:s,onSelect:o})}),v.jsx("div",{className:"fev-editor-wrapper border-border bg-background overflow-hidden rounded-md border shadow-sm",children:c?v.jsxs(v.Fragment,{children:[v.jsx(dae,{path:c.path,entries:l,onNavigate:o}),v.jsx(f5,{value:c.content??"",filename:c.path,readOnly:!0,className:"min-h-0 flex-1"},c.path)]}):v.jsx("div",{className:"text-muted-foreground flex h-full items-center justify-center",children:"Select a file to view"})})]})]}):v.jsx("div",{className:"bg-muted/20 text-muted-foreground rounded-md p-4 text-sm",children:"No files found for this change."})}function m5({tabsId:t,tabs:e,initialTab:n}){const i=z.useMemo(()=>new Set(e.map(d=>d.id)),[e]),r=z.useCallback(()=>{if(typeof window>"u")return null;const p=new URLSearchParams(window.location.search).get(t);return p&&i.has(p)?p:null},[t,i]),s=z.useCallback(()=>r()??n??e[0]?.id??"",[r,n,e]),[o,l]=z.useState(s),c=z.useCallback(d=>{if(typeof window>"u")return;const p=new URL(window.location.href);p.searchParams.set(t,d),window.history.replaceState(null,"",p.toString())},[t]),h=z.useCallback(d=>{i.has(d)&&(l(d),c(d))},[i,c]);return z.useEffect(()=>{const p=r()??n??e[0]?.id??"";(p&&p!==o&&i.has(p)||!i.has(o)&&p)&&l(p)},[r,n,e,o,i]),z.useEffect(()=>{if(typeof window>"u")return;const d=()=>{const p=r();p&&i.has(p)&&l(g=>g===p?g:p)};return window.addEventListener("popstate",d),()=>window.removeEventListener("popstate",d)},[r,i]),z.useEffect(()=>{!i.has(o)||typeof window>"u"||r()===o||c(o)},[o,i,c,r]),{selectedTab:o,setSelectedTab:h}}function gae(t){const e=new Map;for(const n of t){const i=n.section||"General",r=e.get(i)||[];r.push(n),e.set(i,r)}return Array.from(e.entries()).map(([n,i])=>({section:n,tasks:i,completed:i.filter(r=>r.completed).length,total:i.length}))}function Oae(t){return`section-${t.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}`}const yae=z.memo(function({task:e,taskIndex:n,isToggling:i,onToggle:r,readonly:s}){const o=v.jsxs(v.Fragment,{children:[i?v.jsx(lo,{className:"text-primary h-5 w-5 shrink-0 animate-spin"}):e.completed?v.jsx(ao,{className:"h-5 w-5 shrink-0 text-green-500"}):v.jsx(P4,{className:"text-muted-foreground group-hover:text-primary h-5 w-5 shrink-0"}),v.jsx("span",{className:`text-sm ${e.completed?"text-muted-foreground line-through":""}`,children:e.text})]});return s||!r?v.jsx("div",{className:"flex w-full items-center gap-3 p-3 text-left",children:o}):v.jsx("button",{onClick:()=>r(n,!e.completed),className:"hover:bg-muted/50 group flex w-full items-center gap-3 p-3 text-left transition-colors",children:o})},(t,e)=>t.task.id===e.task.id&&t.task.text===e.task.text&&t.task.completed===e.task.completed&&t.isToggling===e.isToggling&&t.readonly===e.readonly);function g5({tasks:t,progress:e,onToggleTask:n,togglingIndex:i=null,tocBaseIndex:r=0,readonly:s=!1}){const o=z.useMemo(()=>gae(t),[t]),l=e.total>0?Math.round(e.completed/e.total*100):0,c=(h,d)=>{let p=0;for(let g=0;g<h;g++)p+=o[g].tasks.length;return p+d+1};return v.jsxs(yC,{id:"tasks",index:r,children:[v.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[v.jsxs("h2",{className:"text-lg font-semibold",children:["Tasks (",e.completed,"/",e.total,")"]}),v.jsxs("span",{className:"text-muted-foreground text-sm",children:[l,"%"]})]}),v.jsx("div",{className:"bg-muted mb-4 h-2 w-full rounded-full",children:v.jsx("div",{className:"bg-primary h-2 rounded-full transition-all",style:{width:`${l}%`}})}),v.jsxs("div",{className:"space-y-6",children:[o.map((h,d)=>{const p=Oae(h.section),g=h.total>0?Math.round(h.completed/h.total*100):0;return v.jsxs(yC,{id:p,index:r+1+d,as:"div",children:[v.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[v.jsx("h3",{className:"text-foreground font-medium",children:h.section}),v.jsxs("span",{className:"text-muted-foreground text-xs",children:[h.completed,"/",h.total," (",g,"%)"]})]}),v.jsx("div",{className:"border-border divide-border divide-y rounded-lg border",children:h.tasks.map((O,x)=>{const S=c(d,x);return v.jsx(yae,{task:O,taskIndex:S,isToggling:i===S,onToggle:n,readonly:s},O.id)})})]},h.section)}),o.length===0&&v.jsx("div",{className:"text-muted-foreground border-border rounded-lg border p-4 text-center",children:"No tasks defined"})]})]})}const bae=XI("/archive/$changeId");function xae(){const{changeId:t}=bae.useParams(),{data:e}=EB(t),[n,i]=z.useState(!0);z.useEffect(()=>{const l=requestAnimationFrame(()=>i(!1));return()=>cancelAnimationFrame(l)},[]);const r=z.useMemo(()=>{if(!e)return[];const l=[{id:"overview",label:"Overview",icon:v.jsx(Oi,{className:"h-4 w-4"}),content:v.jsx(PL,{change:e})}];return e.tasks.length>0&&l.push({id:"tasks",label:`Tasks (${e.progress.completed}/${e.progress.total})`,icon:v.jsx(K2,{className:"h-4 w-4"}),content:v.jsx("div",{className:"border-border h-full overflow-auto rounded-lg border p-4",children:v.jsx(g5,{tasks:e.tasks,progress:e.progress,readonly:!0})})}),l.push({id:"folder",label:"Folder",icon:v.jsx(F2,{className:"h-4 w-4"}),content:v.jsx(p5,{changeId:t,archived:!0})}),l},[e,t]),{selectedTab:s,setSelectedTab:o}=m5({tabsId:"archiveTab",tabs:r,initialTab:r[0]?.id});return n?v.jsx("div",{className:"route-loading animate-pulse",children:"Loading archived change..."}):e?v.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(Rt,{to:"/archive",className:"hover:bg-muted rounded-md p-2 transition-colors",title:"Back to Archive",children:v.jsx(yv,{className:"h-5 w-5"})}),v.jsxs("div",{children:[v.jsxs("h1",{className:"font-nav flex items-center gap-2 text-2xl font-bold",children:[v.jsx(ls,{className:"h-6 w-6 shrink-0"}),e.name]}),v.jsx("p",{className:"text-muted-foreground text-sm",children:t})]})]}),v.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[v.jsx(ao,{className:"h-4 w-4 text-green-500"}),v.jsxs("span",{className:"text-green-600",children:["Completed: ",e.progress.completed,"/",e.progress.total," tasks"]})]}),v.jsx(eg,{tabs:r,selectedTab:s,onTabChange:o,className:"min-h-0 flex-1 gap-6"})]}):v.jsxs("div",{className:"py-12 text-center",children:[v.jsxs("p",{className:"text-muted-foreground",children:["Archived change not found: ",t]}),v.jsx(Rt,{to:"/archive",className:"text-primary mt-4 inline-block hover:underline",children:"Back to Archive"})]})}function vae(){const{data:t,isLoading:e}=PB(),[n,i]=z.useState(!0);return z.useEffect(()=>{const r=requestAnimationFrame(()=>i(!1));return()=>cancelAnimationFrame(r)},[]),n||e&&!t?v.jsx("div",{className:"route-loading animate-pulse",children:"Loading changes..."}):v.jsxs("div",{className:"space-y-6",children:[v.jsxs("h1",{className:"font-nav flex items-center gap-2 text-2xl font-bold",children:[v.jsx(ih,{className:"h-6 w-6 shrink-0"}),"Changes"]}),v.jsxs("p",{className:"text-muted-foreground",children:["Active change proposals. Completed changes are moved to"," ",v.jsx(Rt,{to:"/archive",className:"text-primary hover:underline",children:"Archive"}),"."]}),v.jsxs("div",{className:"border-border divide-border divide-y rounded-lg border",children:[t?.map(r=>v.jsxs(Rt,{to:"/changes/$changeId",params:{changeId:r.id},className:"hover:bg-muted/50 flex items-center justify-between p-4",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx(ih,{className:"text-muted-foreground h-5 w-5"}),v.jsxs("div",{children:[v.jsx("div",{className:"font-medium",children:r.name}),v.jsxs("div",{className:"text-muted-foreground text-sm",children:[r.progress.completed,"/",r.progress.total," tasks",r.updatedAt>0&&v.jsxs(v.Fragment,{children:[" · ",wv(r.updatedAt)]})]})]})]}),v.jsx(zm,{className:"text-muted-foreground h-4 w-4"})]},r.id)),t?.length===0&&v.jsxs("div",{className:"text-muted-foreground p-4 text-center",children:["No active changes. Create one in ",v.jsx("code",{children:"openspec/changes/"})]})]})]})}function Sae(){const{changeId:t}=sc({from:"/changes/$changeId"}),e=oc(),{openArchiveModal:n,state:i}=MA(),{data:r,isLoading:s}=TB(t),[o,l]=z.useState(!0);z.useEffect(()=>{const _=requestAnimationFrame(()=>l(!1));return()=>cancelAnimationFrame(_)},[]);const c=z.useRef(r?.name??t);r?.name&&(c.current=r.name),z.useEffect(()=>{!s&&!r&&i.open&&e({to:"/changes"})},[s,r,i.open,e]);const h=null,d=Ep({mutationFn:_=>Vt.change.toggleTask.mutate({changeId:t,taskIndex:_.taskIndex,completed:_.completed})}),p=z.useCallback((_,T)=>{d.mutate({taskIndex:_,completed:T})},[d]),g=d.isPending?d.variables?.taskIndex??null:null,O=z.useCallback(()=>{n(t,c.current)},[t,n]),x=z.useMemo(()=>r?[{id:"overview",label:"Overview",icon:v.jsx(Oi,{className:"h-4 w-4"}),content:v.jsx(PL,{change:r})},{id:"tasks",label:`Tasks (${r.progress.completed}/${r.progress.total})`,icon:v.jsx(K2,{className:"h-4 w-4"}),content:v.jsx(g5,{tasks:r.tasks,progress:r.progress,onToggleTask:An()?void 0:p,togglingIndex:g})},{id:"folder",label:"Folder",icon:v.jsx(F2,{className:"h-4 w-4"}),content:v.jsx(p5,{changeId:t})}]:[],[r,t,p,g]),{selectedTab:S,setSelectedTab:k}=m5({tabsId:"changeTab",tabs:x,initialTab:x[0]?.id});return o||s&&!r?v.jsx("div",{className:"route-loading animate-pulse",children:"Loading change..."}):r?v.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[v.jsxs("div",{className:"change-header @container flex items-center justify-between gap-3",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(Rt,{to:"/changes",className:"hover:bg-muted rounded-md p-2",children:v.jsx(yv,{className:"h-5 w-5"})}),v.jsxs("div",{className:"flex flex-col gap-1",children:[v.jsxs("h1",{className:"font-nav flex items-center gap-2 font-bold",style:{fontSize:"clamp(1rem, 3cqi, 1.75rem)"},children:[v.jsx(ih,{className:"h-6 w-6 shrink-0"}),r.name]}),v.jsxs("p",{className:"text-muted-foreground",style:{fontSize:"clamp(0.7rem, 2cqi, 1rem)"},children:["ID: ",r.id]})]})]}),!An()&&v.jsxs("button",{onClick:O,className:"change-archive-button @sm:gap-2 @sm:px-4 flex h-10 items-center gap-1.5 rounded-md bg-red-600 px-3 py-2 text-white hover:bg-red-700",children:[v.jsx(ls,{className:"h-4 w-4"}),v.jsx("span",{className:"change-archive-text @sm:inline hidden",style:{fontSize:"clamp(0.85rem, 2cqi, 1rem)"},children:"Archive"})]})]}),h,v.jsx(eg,{tabs:x,selectedTab:S,onTabChange:k,className:"min-h-0 flex-1 gap-6"})]}):null}function _ae(){const{data:t,isLoading:e,error:n}=SB(),{data:i}=_B(),r=z.useMemo(()=>t?.specs?[...t.specs].sort((o,l)=>l.requirements.length-o.requirements.length):[],[t?.specs]);if(e&&!t)return v.jsx("div",{className:"route-loading animate-pulse",children:"Loading dashboard..."});if(n)return v.jsxs("div",{className:"text-destructive flex items-center gap-2",children:[v.jsx(Sb,{className:"h-5 w-5"}),"Error loading dashboard: ",n.message]});if(!i)return v.jsxs("div",{className:"py-12 text-center",children:[v.jsxs("h2",{className:"font-nav mb-4 flex items-center justify-center gap-2 text-2xl font-bold",children:[v.jsx(kb,{className:"h-6 w-6 shrink-0"}),"OpenSpec Not Initialized"]}),v.jsx("p",{className:"text-muted-foreground mb-6",children:"This project doesn't have an OpenSpec directory yet."}),v.jsx(Rt,{to:"/settings",className:"bg-primary text-primary-foreground inline-flex items-center gap-2 rounded-md px-4 py-2 hover:opacity-90",children:"Initialize OpenSpec"})]});if(!t)return null;const{summary:s}=t;return v.jsxs("div",{className:"space-y-6",children:[v.jsxs("h1",{className:"font-nav flex items-center gap-2 text-2xl font-bold",children:[v.jsx(kb,{className:"h-6 w-6 shrink-0"}),"Dashboard"]}),v.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4",children:[v.jsx(ap,{icon:v.jsx(Oi,{className:"h-5 w-5"}),label:"Specifications",value:s.specCount,sublabel:`${s.requirementCount} requirements`}),v.jsx(ap,{icon:v.jsx(ih,{className:"h-5 w-5"}),label:"Active Changes",value:s.activeChangeCount,sublabel:"in progress"}),v.jsx(ap,{icon:v.jsx(ls,{className:"h-5 w-5"}),label:"Completed",value:s.archivedChangeCount,sublabel:"archived"}),v.jsx(ap,{icon:v.jsx(ao,{className:"h-5 w-5"}),label:"Task Progress",value:`${s.completedTasks}/${s.totalTasks}`,sublabel:`${s.progressPercent}% complete`})]}),v.jsxs("section",{children:[v.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[v.jsx("h2",{className:"text-lg font-semibold",children:"Active Changes"}),t.changes.length>0&&v.jsx(Rt,{to:"/changes",className:"text-primary text-sm hover:underline",children:"View all"})]}),v.jsxs("div",{className:"border-border divide-border divide-y rounded-lg border",children:[t.changes.map(o=>{const l=o.progress.total>0?Math.round(o.progress.completed/o.progress.total*100):0;return v.jsxs(Rt,{to:"/changes/$changeId",params:{changeId:o.id},className:"hover:bg-muted/50 block p-4",children:[v.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[v.jsx("div",{className:"font-medium",children:o.name}),v.jsxs("span",{className:"text-muted-foreground text-sm",children:[o.progress.completed,"/",o.progress.total," tasks"]})]}),v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("div",{className:"bg-muted h-2 flex-1 rounded-full",children:v.jsx("div",{className:"bg-primary h-2 rounded-full transition-all",style:{width:`${l}%`}})}),v.jsxs("span",{className:"w-12 text-right text-sm font-medium",children:[l,"%"]})]})]},o.id)}),t.changes.length===0&&v.jsxs("div",{className:"text-muted-foreground p-4 text-center",children:["No active changes. Create one in"," ",v.jsx("code",{className:"bg-muted rounded px-1",children:"openspec/changes/"})]})]})]}),v.jsxs("section",{children:[v.jsxs("div",{className:"mb-3 flex items-center justify-between",children:[v.jsx("h2",{className:"text-lg font-semibold",children:"Specifications"}),r.length>0&&v.jsx(Rt,{to:"/specs",className:"text-primary text-sm hover:underline",children:"View all"})]}),v.jsxs("div",{className:"border-border divide-border divide-y rounded-lg border",children:[r.map(o=>v.jsxs(Rt,{to:"/specs/$specId",params:{specId:o.id},className:"hover:bg-muted/50 flex items-center justify-between p-3",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx(Oi,{className:"text-muted-foreground h-4 w-4"}),v.jsx("span",{className:"font-medium",children:o.name})]}),v.jsxs("span",{className:"text-muted-foreground text-sm",children:[o.requirements.length," requirement",o.requirements.length!==1?"s":""]})]},o.id)),r.length===0&&v.jsxs("div",{className:"text-muted-foreground p-4 text-center",children:["No specs yet. Create one in"," ",v.jsx("code",{className:"bg-muted rounded px-1",children:"openspec/specs/"})]})]})]})]})}function ap({icon:t,label:e,value:n,sublabel:i}){return v.jsxs("div",{className:"border-border rounded-lg border p-4",children:[v.jsxs("div",{className:"text-muted-foreground mb-2 flex items-center gap-2",children:[t,v.jsx("span",{className:"text-sm",children:e})]}),v.jsx("div",{className:"text-2xl font-bold",children:n}),v.jsx("div",{className:"text-muted-foreground text-sm",children:i})]})}function kae(){const[t,e]=z.useState(!0),[n,i]=z.useState("project"),[r,s]=z.useState(null),[o,l]=z.useState("");z.useEffect(()=>{const A=requestAnimationFrame(()=>e(!1));return()=>cancelAnimationFrame(A)},[]);const{data:c,isLoading:h}=RB(),{data:d,isLoading:p}=LB(),g=Ep({mutationFn:A=>Vt.project.saveProjectMd.mutate({content:A}),onSuccess:()=>{s(null)}}),O=Ep({mutationFn:A=>Vt.project.saveAgentsMd.mutate({content:A}),onSuccess:()=>{s(null)}}),x=n==="project"?c:d,S=n==="project"?g:O,k=r===n,_=()=>{l(x||""),s(n)},T=()=>{S.mutate(o)},C=()=>{s(null),l("")},D=z.useMemo(()=>[{id:"project",label:"project.md",icon:v.jsx(Oi,{className:"h-4 w-4"}),content:v.jsx("div",{className:"border-border h-full min-h-0 flex-1 overflow-hidden rounded-lg border",children:v.jsx(h2,{content:c,isLoading:h,isEditing:r==="project",editContent:o,setEditContent:l,onCancel:C,onSave:T,savePending:g.isPending,tabName:"project.md",defaultContent:"# Project Context\\n\\n## Purpose\\n\\n## Tech Stack\\n\\n## Conventions\\n",onStartEdit:()=>{l(c||""),s("project")}})})},{id:"agents",label:"AGENTS.md",icon:v.jsx(O4,{className:"h-4 w-4"}),content:v.jsx("div",{className:"border-border h-full min-h-0 flex-1 overflow-hidden rounded-lg border",children:v.jsx(h2,{content:d,isLoading:p,isEditing:r==="agents",editContent:o,setEditContent:l,onCancel:C,onSave:T,savePending:O.isPending,tabName:"AGENTS.md",defaultContent:"# AI Agent Instructions\\n\\n## Workflow\\n\\n## Commands\\n",onStartEdit:()=>{l(d||""),s("agents")}})})}],[p,d,o,r,C,T,h,c,O.isPending,g.isPending]),j=z.useMemo(()=>({project:v.jsxs("p",{children:[v.jsx("strong",{children:"project.md"})," defines project context, tech stack, and conventions for AI assistants."]}),agents:v.jsxs("p",{children:[v.jsx("strong",{children:"AGENTS.md"})," provides workflow instructions for AI coding assistants using OpenSpec."]})}),[]);return h||p?v.jsx("div",{className:"route-loading animate-pulse",children:"Loading..."}):t?v.jsx("div",{className:"route-loading animate-pulse",children:"Loading project..."}):v.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("h1",{className:"font-nav flex items-center gap-2 text-2xl font-bold",children:[v.jsx(Cl,{className:"h-6 w-6 shrink-0"}),"Project"]}),!An()&&!k&&x&&v.jsxs("button",{onClick:_,className:"border-border hover:bg-muted flex items-center gap-2 rounded-md border px-3 py-1.5 text-sm",children:[v.jsx(H4,{className:"h-4 w-4"}),"Edit"]})]}),v.jsx(eg,{tabs:D,selectedTab:n,onTabChange:A=>i(A),className:"min-h-0 flex-1 gap-4"}),v.jsx("div",{className:"text-muted-foreground text-sm",children:j[n]})]})}function h2({content:t,isLoading:e,isEditing:n,editContent:i,setEditContent:r,onCancel:s,onSave:o,savePending:l,tabName:c,defaultContent:h,onStartEdit:d}){return e&&!t?v.jsx("div",{className:"route-loading animate-pulse",children:"Loading..."}):t?n?v.jsxs("div",{className:"flex h-full flex-col",children:[v.jsxs("div",{className:"border-border bg-muted/30 flex items-center justify-between border-b p-2",children:[v.jsxs("span",{className:"px-2 text-sm font-medium",children:["Editing ",c]}),v.jsxs("div",{className:"flex gap-2",children:[v.jsxs("button",{onClick:s,className:"border-border hover:bg-muted flex items-center gap-1 rounded border px-3 py-1 text-sm",children:[v.jsx(nA,{className:"h-3 w-3"}),"Cancel"]}),v.jsxs("button",{onClick:o,disabled:l,className:"bg-primary text-primary-foreground flex items-center gap-1 rounded px-3 py-1 text-sm hover:opacity-90 disabled:opacity-50",children:[v.jsx(eX,{className:"h-3 w-3"}),l?"Saving...":"Save"]})]})]}),v.jsx(f5,{value:i,onChange:r,filename:c,className:"min-h-0 flex-1"})]}):v.jsx(Sr,{markdown:t}):v.jsxs("div",{className:"text-muted-foreground p-8 text-center",children:[v.jsxs("p",{className:"mb-4",children:[c," not found."]}),!An()&&v.jsxs("button",{onClick:()=>{r(h),d()},className:"bg-primary text-primary-foreground rounded-md px-4 py-2 hover:opacity-90",children:["Create ",c]})]})}function wae({path:t,className:e=""}){const[n,i]=z.useState(!1),r=z.useCallback(async()=>{try{await navigator.clipboard.writeText(t),i(!0),setTimeout(()=>i(!1),2e3)}catch(s){console.error("Failed to copy path:",s)}},[t]);return v.jsxs("button",{onClick:r,className:`hover:bg-muted/50 group -m-2 flex cursor-pointer items-start gap-2 rounded p-2 text-left transition-colors ${e}`,title:"Click to copy",children:[v.jsx("code",{className:"bg-muted h-7 flex-1 break-all rounded px-2 py-1 font-mono text-sm",children:t}),v.jsx("span",{className:"text-muted-foreground group-hover:text-foreground mt-1 shrink-0 transition-colors",children:n?v.jsx(nh,{className:"h-4 w-4 text-green-500"}):v.jsx(W2,{className:"h-4 w-4"})})]})}function Pae(){const t=localStorage.getItem("theme");return t==="light"||t==="dark"||t==="system"?t:"system"}function f2(t){const e=document.documentElement;if(t==="system"){const n=window.matchMedia("(prefers-color-scheme: dark)").matches;e.classList.toggle("dark",n)}else e.classList.toggle("dark",t==="dark")}function Tae(){const[t,e]=z.useState(Pae),[n,i]=z.useState(El()||""),[r,s]=z.useState(""),[o,l]=z.useState([]),[c,h]=z.useState(!1),[d,p]=z.useState(!1),[g,O]=z.useState("none"),x=Cb(),S=Cb(),{lines:k,status:_,commands:T,cancel:C,reset:D}=x,j=_==="error"?"error":_==="success"?"success":"default",{lines:A,status:M,commands:I,cancel:B,reset:$}=S,U=M==="error"?"error":M==="success"?"success":"default",H=Vm(),oe=An(),{data:F}=$B(),{data:Y,isLoading:Z,refetch:J}=M0({...K0.cli.sniffGlobalCli.queryOptions(),staleTime:0,gcTime:0,enabled:!oe}),{data:ce,isLoading:Oe,refetch:L}=M0({...K0.cli.checkAvailability.queryOptions(),enabled:!oe}),{data:N}=M0({...K0.cli.getAllTools.queryOptions(),enabled:!oe}),te=z.useMemo(()=>N?.filter(he=>he.available)??[],[N]),R=z.useMemo(()=>N?.filter(he=>!he.available)??[],[N]),fe=z.useMemo(()=>te.map(he=>he.value),[te]),_e=z.useMemo(()=>new Set(fe),[fe]),xe=fe,Re=z.useMemo(()=>fe.join("|"),[fe]),et=z.useRef(""),{data:$e}=MB();z.useEffect(()=>{F?.cli?.command?s(F.cli.command):s("")},[F?.cli?.command]);const Ht=z.useCallback(()=>{J(),L(),p(!1)},[J,L]),_n=Y?.hasGlobal?`openspec (v${Y.version||"detected"})`:"npx @fission-ai/openspec";z.useEffect(()=>{if(!$e||$e.length===0)return;const he=[...$e.filter(ft=>_e.has(ft))].sort(),Pe=`${Re}|${he.join(",")}`;Pe!==et.current&&(et.current=Pe,l(he))},[$e,Re]);const dn=he=>{O(he),h(!0)};z.useEffect(()=>{c||(C(),D())},[c,C,D]),z.useEffect(()=>{if(!c)return;const he=g,Pe=Array.isArray(he)?he.join(","):he;T.replaceAll([{command:"openspec",args:["init","--tools",Pe]}])},[T,g,c]),z.useEffect(()=>{d?(I.replaceAll([{command:"npm",args:["install","-g","@fission-ai/openspec"]}]),I.runAll()):(B(),$())},[d,I,B,$]);const xi=he=>$e?.includes(he)??!1,Mn=he=>{_e.has(he)&&(xi(he)||l(Pe=>Pe.includes(he)?Pe.filter(ft=>ft!==he):[...Pe,he]))},Ui=()=>{if(!N)return;const he=N.filter(ie=>ie.available).map(ie=>ie.value),ft=he.filter(ie=>!xi(ie)).every(ie=>o.includes(ie));l(ft?$e??[]:[...he])},vi=o.filter(he=>_e.has(he)&&!xi(he)).length,Mr=()=>{h(!1),C(),D()},sr=()=>{p(!1),B(),$()},kn=Ep({mutationFn:he=>Vt.config.setCliCommand.mutate({command:he}),onSuccess:()=>{L()}});z.useEffect(()=>{f2(t),localStorage.setItem("theme",t)},[t]),z.useEffect(()=>{if(t!=="system")return;const he=window.matchMedia("(prefers-color-scheme: dark)"),Pe=()=>f2("system");return he.addEventListener("change",Pe),()=>he.removeEventListener("change",Pe)},[t]);const Kn=()=>{const he=new URL(window.location.href);n?he.searchParams.set("api",n):he.searchParams.delete("api"),window.location.href=he.toString()},[or,Ss]=z.useState(!0);return z.useEffect(()=>{Ss(!1)},[]),or?v.jsx("div",{className:"route-loading animate-pulse",children:"Loading settings..."}):v.jsxs("div",{className:"max-w-2xl space-y-8",children:[v.jsxs("h1",{className:"font-nav flex items-center gap-2 text-2xl font-bold",children:[v.jsx(J2,{className:"h-6 w-6 shrink-0"}),"Settings"]}),v.jsxs("section",{className:"space-y-4",children:[v.jsx("h2",{className:"text-lg font-semibold",children:"Appearance"}),v.jsxs("div",{className:"border-border rounded-lg border p-4",children:[v.jsx("label",{className:"mb-3 block text-sm font-medium",children:"Theme"}),v.jsxs("div",{className:"flex gap-2",children:[v.jsxs("button",{onClick:()=>e("light"),className:`flex items-center gap-2 rounded-md border px-4 py-2 transition-colors ${t==="light"?"border-primary bg-primary text-primary-foreground":"border-border hover:bg-muted"}`,children:[v.jsx(sX,{className:"h-4 w-4"}),"Light"]}),v.jsxs("button",{onClick:()=>e("dark"),className:`flex items-center gap-2 rounded-md border px-4 py-2 transition-colors ${t==="dark"?"border-primary bg-primary text-primary-foreground":"border-border hover:bg-muted"}`,children:[v.jsx(G4,{className:"h-4 w-4"}),"Dark"]}),v.jsxs("button",{onClick:()=>e("system"),className:`flex items-center gap-2 rounded-md border px-4 py-2 transition-colors ${t==="system"?"border-primary bg-primary text-primary-foreground":"border-border hover:bg-muted"}`,children:[v.jsx(U4,{className:"h-4 w-4"}),"System"]})]})]})]}),!oe&&v.jsxs(v.Fragment,{children:[v.jsxs("section",{className:"space-y-4",children:[v.jsx("h2",{className:"text-lg font-semibold",children:"Project Directory"}),v.jsx("div",{className:"border-border rounded-lg border p-4",children:v.jsxs("div",{className:"flex items-start gap-2",children:[v.jsx(H2,{className:"text-muted-foreground mt-1 h-4 w-4 shrink-0"}),H.projectDir?v.jsx(wae,{path:H.projectDir,className:"flex-1"}):v.jsx("span",{className:"text-muted-foreground text-sm",children:"Loading..."})]})})]}),v.jsxs("section",{className:"space-y-4",children:[v.jsx("h2",{className:"text-lg font-semibold",children:"CLI Configuration"}),v.jsxs("div",{className:"border-border space-y-4 rounded-lg border p-4",children:[v.jsxs("div",{children:[v.jsx("label",{className:"mb-2 block text-sm font-medium",children:"Global CLI Detection"}),v.jsx("div",{className:"mb-2 flex items-center gap-2",children:Z?v.jsxs("span",{className:"text-muted-foreground flex items-center gap-2 text-sm",children:[v.jsx(lo,{className:"h-4 w-4 animate-spin"}),"Detecting global openspec command..."]}):Y?.hasGlobal?v.jsxs("div",{className:"flex flex-col gap-1",children:[v.jsxs("span",{className:"flex items-center gap-2 text-sm text-green-600",children:[v.jsx(ao,{className:"h-4 w-4"}),"Global CLI installed:"," ",v.jsxs("code",{className:"bg-muted rounded px-1",children:["openspec ",Y.version]})]}),Y.hasUpdate&&Y.latestVersion&&v.jsxs("span",{className:"flex items-center gap-2 text-sm text-amber-600",children:[v.jsx(qP,{className:"h-4 w-4"}),"Update available:"," ",v.jsxs("code",{className:"bg-muted rounded px-1",children:["v",Y.latestVersion]})]})]}):v.jsxs("div",{className:"flex flex-col gap-1",children:[v.jsxs("span",{className:"flex items-center gap-2 text-sm text-yellow-600",children:[v.jsx(_b,{className:"h-4 w-4"}),"Global CLI not found"]}),Y?.latestVersion&&v.jsxs("span",{className:"text-muted-foreground text-xs",children:["Latest version:"," ",v.jsxs("code",{className:"bg-muted rounded px-1",children:["v",Y.latestVersion]})]})]})}),!Z&&(!Y?.hasGlobal||Y?.hasUpdate)&&v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("button",{onClick:()=>p(!0),className:"bg-primary text-primary-foreground flex items-center gap-2 rounded-md px-3 py-1.5 text-sm hover:opacity-90",children:Y?.hasUpdate?v.jsxs(v.Fragment,{children:[v.jsx(qP,{className:"h-4 w-4"}),"Update to v",Y.latestVersion]}):v.jsxs(v.Fragment,{children:[v.jsx(UP,{className:"h-4 w-4"}),"Install Globally"]})}),v.jsxs("span",{className:"text-muted-foreground text-xs",children:["Run:"," ",v.jsx("code",{className:"bg-muted rounded px-1",children:"npm install -g @fission-ai/openspec"})]})]}),Y?.error&&v.jsxs("p",{className:"mt-1 text-sm text-red-500",children:["Detection error: ",Y.error]})]}),v.jsxs("div",{className:"border-border border-t pt-3",children:[v.jsx("label",{className:"mb-2 block text-sm font-medium",children:"Custom CLI Command (Optional)"}),v.jsx("p",{className:"text-muted-foreground mb-3 text-sm",children:"Override the auto-detected CLI command. Leave empty to use the detected default."}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx("input",{type:"text",value:r,onChange:he=>s(he.target.value),placeholder:_n,className:"border-border bg-background text-foreground flex-1 rounded-md border px-3 py-2 font-mono text-sm"}),v.jsx("button",{onClick:()=>kn.mutate(r),disabled:kn.isPending||r===(F?.cli?.command??""),className:"bg-primary text-primary-foreground rounded-md px-4 py-2 hover:opacity-90 disabled:opacity-50",children:kn.isPending?"Saving...":"Save"})]}),F?.cli?.command&&v.jsxs("p",{className:"text-muted-foreground mt-2 text-xs",children:["Currently using custom command:"," ",v.jsx("code",{className:"bg-muted rounded px-1",children:F.cli.command})]})]}),v.jsxs("div",{className:"border-border border-t pt-3",children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(GP,{className:"text-muted-foreground h-4 w-4"}),v.jsx("span",{className:"text-sm font-medium",children:"CLI Status:"}),Oe?v.jsxs("span",{className:"text-muted-foreground flex items-center gap-1 text-sm",children:[v.jsx(lo,{className:"h-4 w-4 animate-spin"}),"Checking..."]}):ce?.available?v.jsxs("span",{className:"flex items-center gap-1 text-sm text-green-600",children:[v.jsx(ao,{className:"h-4 w-4"}),"Available ",ce.version&&`(${ce.version})`]}):v.jsxs("span",{className:"flex items-center gap-1 text-sm text-red-600",children:[v.jsx(_b,{className:"h-4 w-4"}),"Not available"]})]}),ce&&!ce.available&&ce.error&&v.jsx("p",{className:"text-muted-foreground ml-6 mt-1 text-sm",children:ce.error})]})]})]}),v.jsxs("section",{className:"space-y-4",children:[v.jsx("h2",{className:"text-lg font-semibold",children:"API Configuration"}),v.jsx("div",{className:"border-border space-y-4 rounded-lg border p-4",children:v.jsxs("div",{children:[v.jsx("label",{className:"mb-2 block text-sm font-medium",children:"API Server URL"}),v.jsx("p",{className:"text-muted-foreground mb-3 text-sm",children:"Leave empty for same-origin requests. Set a custom URL to connect to a different server."}),v.jsxs("div",{className:"flex gap-2",children:[v.jsx("input",{type:"text",value:n,onChange:he=>i(he.target.value),placeholder:window.location.origin,className:"border-border bg-background text-foreground flex-1 rounded-md border px-3 py-2"}),v.jsx("button",{onClick:Kn,className:"bg-primary text-primary-foreground rounded-md px-4 py-2 hover:opacity-90",children:"Apply"})]}),El()&&v.jsxs("p",{className:"text-muted-foreground mt-2 text-sm",children:["Current: ",v.jsx("code",{className:"bg-muted rounded px-1",children:El()})]})]})})]}),v.jsxs("section",{className:"space-y-4",children:[v.jsx("h2",{className:"text-lg font-semibold",children:"File Watcher"}),v.jsxs("div",{className:"border-border rounded-lg border p-4",children:[v.jsx("p",{className:"text-muted-foreground mb-3 text-sm",children:"File watcher is configured on the server side. Check the status bar at the bottom of the page to see if file watching is enabled."}),v.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[v.jsx(tA,{className:"h-4 w-4 text-green-500"}),v.jsx("span",{children:"Enabled: Real-time updates when files change"})]}),v.jsxs("div",{className:"mt-2 flex items-center gap-2 text-sm",children:[v.jsx(eA,{className:"h-4 w-4 text-yellow-500"}),v.jsx("span",{children:"Disabled: Manual refresh required"})]}),v.jsxs("p",{className:"text-muted-foreground mt-3 text-sm",children:["To disable file watching, restart the server with"," ",v.jsx("code",{className:"bg-muted rounded px-1",children:"--no-watch"})," flag."]})]})]}),v.jsxs("section",{className:"space-y-4",children:[v.jsx("h2",{className:"text-lg font-semibold",children:"Initialize OpenSpec"}),v.jsxs("div",{className:"border-border space-y-4 rounded-lg border p-4",children:[v.jsxs("p",{className:"text-muted-foreground text-sm",children:["Create the OpenSpec directory structure in the current project. This will create"," ",v.jsx("code",{className:"bg-muted rounded px-1",children:"openspec/"})," with specs, changes, and archive directories."]}),v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("label",{className:"text-sm font-medium",children:"AI Tools Configuration"}),v.jsx("button",{onClick:Ui,className:"text-primary text-xs hover:underline",children:o.filter(he=>xe.includes(he)).length===xe.length?"Deselect All":"Select All"})]}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Select which AI tools to configure. Already configured tools cannot be deselected."}),v.jsxs("div",{children:[v.jsx("p",{className:"text-muted-foreground mb-2 text-xs font-medium",children:"Natively supported providers (✔ OpenSpec custom slash commands available)"}),v.jsx("div",{className:"grid grid-cols-2 gap-2 sm:grid-cols-3 md:grid-cols-4",children:te.map(he=>{const Pe=xi(he.value),ft=o.includes(he.value);return v.jsxs("button",{onClick:()=>Mn(he.value),disabled:Pe,title:Pe?"Already configured":he.name,className:`flex items-center gap-1.5 rounded border px-2.5 py-1.5 text-left text-xs transition-colors ${Pe?"cursor-not-allowed border-green-500/50 bg-green-500/10 text-green-600":ft?"border-primary bg-primary/10 text-primary":"border-border hover:bg-muted"}`,children:[(Pe||ft)&&v.jsx(nh,{className:`h-3 w-3 shrink-0 ${Pe?"text-green-600":""}`}),v.jsx("span",{className:"truncate",children:he.name})]},he.value)})})]}),R.length>0&&v.jsxs("div",{children:[v.jsx("p",{className:"text-muted-foreground mb-2 text-xs font-medium",children:"Other tools (use Universal AGENTS.md for Amp, VS Code, GitHub Copilot, …)"}),v.jsx("div",{className:"flex flex-wrap gap-2",children:R.map(he=>{const Pe=xi(he.value),ft=o.includes(he.value),ie=he.value==="agents"?"Universal AGENTS.md":he.name,me=he.value==="agents"?"always available":void 0;return v.jsxs("button",{onClick:()=>Mn(he.value),disabled:Pe||!he.available,title:Pe?"Already configured":he.available?he.name:"This helper is auto-detected via AGENTS.md (no init needed)",className:`flex items-center gap-1.5 rounded border px-2.5 py-1.5 text-xs transition-colors ${Pe?"cursor-not-allowed border-green-500/50 bg-green-500/10 text-green-600":he.available?ft?"border-primary bg-primary/10 text-primary":"border-border hover:bg-muted":"border-border text-muted-foreground cursor-not-allowed border-dashed"}`,children:[(Pe||ft)&&v.jsx(nh,{className:`h-3 w-3 shrink-0 ${Pe?"text-green-600":""}`}),v.jsx("span",{children:ie}),me&&v.jsxs("span",{className:"text-muted-foreground",children:["(",me,")"]})]},he.value)})})]}),$e&&$e.length>0&&v.jsx("p",{className:"text-muted-foreground text-xs",children:v.jsxs("span",{className:"inline-flex items-center gap-1",children:[v.jsx("span",{className:"h-2 w-2 rounded-full bg-green-500/50"}),$e.length," tool",$e.length>1?"s":""," already configured"]})})]}),v.jsxs("div",{className:"border-border flex flex-wrap gap-2 border-t pt-2",children:[v.jsxs("button",{onClick:()=>{const he=o.filter(Pe=>_e.has(Pe));dn(he.length>0?he:"none")},className:"bg-primary text-primary-foreground flex items-center gap-2 rounded-md px-4 py-2 hover:opacity-90",children:[v.jsx(L4,{className:"h-4 w-4"}),vi>0?`Add ${vi} new tool${vi>1?"s":""}`:o.length>0?"Refresh configuration":"Initialize (no tools)"]}),v.jsx("button",{onClick:()=>dn("all"),className:"border-border hover:bg-muted rounded-md border px-4 py-2",children:"Initialize with All Tools"})]})]})]})]}),!oe&&v.jsxs(v.Fragment,{children:[v.jsx(Qb,{open:c,onClose:Mr,bodyClassName:"max-h-[70vh]",borderVariant:j,title:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(GP,{className:"h-4 w-4"}),v.jsx("span",{className:"font-semibold",children:"Initialize OpenSpec"})]}),footer:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("button",{onClick:Mr,className:"bg-muted hover:bg-muted/80 rounded-md px-4 py-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:_==="running",children:"Close"}),_!=="success"&&v.jsx("button",{onClick:()=>T.runAll(),className:"bg-primary text-primary-foreground rounded-md px-4 py-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:_==="running",children:_==="running"?v.jsx(lo,{className:"h-4 w-4 animate-spin"}):"Run init"})]}),children:v.jsx(Eb,{lines:k})}),v.jsxs(Qb,{open:d,onClose:sr,bodyClassName:"max-h-[70vh]",borderVariant:U,title:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(UP,{className:"h-4 w-4"}),v.jsx("span",{className:"font-semibold",children:Y?.hasUpdate?"Update OpenSpec CLI":"Install OpenSpec CLI Globally"})]}),footer:v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("button",{onClick:sr,className:"bg-muted hover:bg-muted/80 rounded-md px-4 py-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:M==="running",children:"Close"}),v.jsx("button",{onClick:()=>{sr(),Ht()},className:"bg-primary text-primary-foreground rounded-md px-4 py-2 disabled:cursor-not-allowed disabled:opacity-50",disabled:M!=="success",children:"Re-detect CLI"})]}),children:[v.jsx(Eb,{lines:A}),M==="success"&&v.jsxs("div",{className:"border-border bg-muted/40 mt-3 rounded border px-3 py-2 text-sm",children:[v.jsxs("div",{className:"flex items-center gap-2 text-green-600",children:[v.jsx(ao,{className:"h-4 w-4"}),Y?.hasUpdate?`OpenSpec CLI updated to v${Y?.latestVersion??""}`:"OpenSpec CLI installed globally"]}),v.jsx("p",{className:"text-muted-foreground text-xs",children:'You can now run the "openspec" command directly. Click "Re-detect CLI" to refresh status.'})]})]})]})]})}function Cae(){const{data:t,isLoading:e}=kB();return e&&!t?v.jsx("div",{className:"route-loading animate-pulse",children:"Loading specs..."}):v.jsxs("div",{className:"space-y-6",children:[v.jsxs("h1",{className:"font-nav flex items-center gap-2 text-2xl font-bold",children:[v.jsx(Oi,{className:"h-6 w-6 shrink-0"}),"Specifications"]}),v.jsxs("div",{className:"border-border divide-border divide-y rounded-lg border",children:[t?.map(n=>v.jsxs(Rt,{to:"/specs/$specId",params:{specId:n.id},className:"hover:bg-muted/50 flex items-center justify-between p-4",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx(Oi,{className:"text-muted-foreground h-5 w-5"}),v.jsxs("div",{children:[v.jsx("div",{className:"font-medium",children:n.name}),v.jsxs("div",{className:"text-muted-foreground text-sm",children:[n.id,n.updatedAt>0&&v.jsxs(v.Fragment,{children:[" · ",wv(n.updatedAt)]})]})]})]}),v.jsx(zm,{className:"text-muted-foreground h-4 w-4"})]},n.id)),t?.length===0&&v.jsxs("div",{className:"text-muted-foreground p-4 text-center",children:["No specs found. Create a spec in ",v.jsx("code",{children:"openspec/specs/"})]})]})]})}function Qae(){const{specId:t}=sc({from:"/specs/$specId"}),{data:e,isLoading:n}=wB(t),i=null;return n&&!e?v.jsx("div",{className:"route-loading animate-pulse",children:"Loading spec..."}):e?v.jsx(Eae,{spec:e,validation:i}):v.jsx("div",{className:"text-red-600",children:"Spec not found"})}function Eae({spec:t,validation:e}){return v.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[v.jsxs("div",{className:"flex items-center gap-4",children:[v.jsx(Rt,{to:"/specs",className:"hover:bg-muted rounded-md p-2",children:v.jsx(yv,{className:"h-5 w-5"})}),v.jsxs("div",{children:[v.jsxs("h1",{className:"font-nav flex items-center gap-2 text-2xl font-bold",children:[v.jsx(Oi,{className:"h-6 w-6 shrink-0"}),t.name]}),v.jsxs("p",{className:"text-muted-foreground",children:["ID: ",t.id]})]})]}),e&&v.jsx(Aae,{validation:e}),v.jsx(Sr,{className:"min-h-0 flex-1",markdown:({H1:n,H2:i,Section:r})=>v.jsxs("div",{className:"space-y-6",children:[v.jsxs(r,{children:[v.jsx(n,{id:"overview",children:"Overview"}),v.jsx("div",{className:"bg-muted/30 mt-2 rounded-lg p-4",children:t.overview?v.jsx(Sr,{markdown:t.overview}):v.jsx("span",{className:"text-muted-foreground",children:"No overview"})})]}),v.jsxs(r,{children:[v.jsxs(n,{id:"requirements",children:["Requirements (",t.requirements.length,")"]}),v.jsxs("div",{className:"mt-3 space-y-4",children:[t.requirements.map(s=>v.jsxs(r,{className:"border-border rounded-lg border p-4",children:[v.jsx(i,{className:"text-base",id:`req-${s.id}`,children:s.text}),s.scenarios.length>0&&v.jsxs("div",{className:"mt-3",children:[v.jsxs("div",{className:"text-muted-foreground mb-2 text-sm font-medium",children:["Scenarios (",s.scenarios.length,")"]}),s.scenarios.map((o,l)=>{const c=o.rawText.replace(/^---\n?/,"").replace(/\n?---$/,"").trim();return v.jsx("div",{className:"bg-muted/50 rounded-md p-3",children:v.jsx(Sr,{markdown:c})},l)})]})]},s.id)),t.requirements.length===0&&v.jsx("div",{className:"text-muted-foreground",children:"No requirements defined"})]})]})]})})]})}function Aae({validation:t}){const e=t.issues.filter(r=>r.severity==="ERROR"),n=t.issues.filter(r=>r.severity==="WARNING"),i=t.issues.filter(r=>r.severity==="INFO");return v.jsxs("div",{className:`flex rounded-lg border p-4 ${t.valid?"border-green-500 bg-green-500/10":"border-red-500 bg-red-500/10"}`,children:[v.jsxs("div",{className:"align-content flex gap-2",children:[t.valid?v.jsx(ao,{className:"h-5 w-5 text-green-500"}):v.jsx(Sb,{className:"h-5 w-5 text-red-500"}),v.jsx("span",{className:`font-medium ${t.valid?"text-green-600":"text-red-600"}`,children:t.valid?"Validation Passed":"Validation Failed"})]}),t.issues.length>0&&v.jsxs("div",{className:"space-y-1 text-sm",children:[e.map((r,s)=>v.jsxs("div",{className:"flex items-start gap-2 text-red-600",children:[v.jsx(Sb,{className:"mt-0.5 h-4 w-4 shrink-0"}),v.jsx("span",{children:r.message})]},s)),n.map((r,s)=>v.jsxs("div",{className:"flex items-start gap-2 text-yellow-600",children:[v.jsx(lX,{className:"mt-0.5 h-4 w-4 shrink-0"}),v.jsx("span",{children:r.message})]},s)),i.map((r,s)=>v.jsxs("div",{className:"text-muted-foreground flex items-start gap-2",children:[v.jsx(N4,{className:"mt-0.5 h-4 w-4 shrink-0"}),v.jsx("span",{children:r.message})]},s))]})]})}const $r=qI({component:vB,pendingComponent:()=>v.jsx("div",{className:"route-loading text-muted-foreground animate-pulse p-6 text-center text-sm",children:"Loading..."})}),Rae=Qr({getParentRoute:()=>$r,path:"/",component:_ae}),Lae=Qr({getParentRoute:()=>$r,path:"/project",component:kae}),$ae=Qr({getParentRoute:()=>$r,path:"/specs",component:Cae}),Mae=Qr({getParentRoute:()=>$r,path:"/specs/$specId",component:Qae}),Dae=Qr({getParentRoute:()=>$r,path:"/changes",component:vae}),jae=Qr({getParentRoute:()=>$r,path:"/changes/$changeId",component:Sae}),Nae=Qr({getParentRoute:()=>$r,path:"/archive",component:DB}),zae=Qr({getParentRoute:()=>$r,path:"/archive/$changeId",component:xae}),Iae=Qr({getParentRoute:()=>$r,path:"/settings",component:Tae}),Xae=$r.addChildren([Rae,Lae,$ae,Mae,Dae,jae,Nae,zae,Iae]),Vae=jh(),Bae=e4({routeTree:Xae,basepath:Vae});function d2(){return v.jsx(lz,{client:RA,children:v.jsx(tB,{children:v.jsx(i4,{router:Bae})})})}const Zae=()=>{const t=document.getElementById("root");return t&&t.innerHTML.trim().length>0},qae=()=>typeof window<"u"&&window.__OPENSPEC_STATIC_MODE__===!0;async function Uae(){const t=document.getElementById("root"),e=qae()||await r4();s4(e),e&&console.log("[OpenSpec UI] Running in static mode"),Zae()&&e?(console.log("[OpenSpec UI] Hydrating pre-rendered content"),dP.hydrateRoot(t,v.jsx(d2,{}))):(console.log("[OpenSpec UI] Fresh render"),dP.createRoot(t).render(v.jsx(d2,{})))}Uae();export{C1 as C,fn as E,bt as I,gs as L,AL as N,Os as a,Cr as b,Dl as c,nne as d,hD as e,So as f,at as g,Nx as h,vo as i,rJ as j,lg as k,ym as l,qn as m,ge as n,se as o,Qj as p,i1 as q,gj as r,vs as s,E as t,SM as u,Xi as v};