openspecui 0.2.0 → 0.3.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 (307) hide show
  1. package/dist/cli.mjs +1 -1
  2. package/dist/index.mjs +1 -1
  3. package/dist/{src-Bmm_kaB8.mjs → src-D7s-EgJ2.mjs} +64 -22
  4. package/package.json +4 -3
  5. package/web/{dist/assets/index-l4gcUD8y.js → assets/index-DIHAzyX3.js} +69 -119
  6. package/web/assets/index-DuIo-wPB.css +1 -0
  7. package/web/index.html +4 -4
  8. package/web/logo.svg +8 -0
  9. package/web/openspec_pixel_dark.svg +89 -0
  10. package/web/openspec_pixel_light.svg +89 -0
  11. package/web/assets/index-BhzIZ_eQ.js +0 -150
  12. package/web/assets/index-D6x5Q1lW.css +0 -1
  13. package/web/dist/assets/index-BNmb5C1F.css +0 -1
  14. package/web/dist/assets/index-BhzIZ_eQ.js +0 -150
  15. package/web/dist/assets/index-BxBbLX3V.js +0 -170
  16. package/web/dist/assets/index-C4c5ARU5.css +0 -1
  17. package/web/dist/assets/index-CqKOZnDE.css +0 -1
  18. package/web/dist/assets/index-D6x5Q1lW.css +0 -1
  19. package/web/dist/assets/index-Om_P2_SF.js +0 -155
  20. package/web/dist/index.html +0 -14
  21. /package/web/{dist/assets → assets}/abap-BdImnpbu.js +0 -0
  22. /package/web/{dist/assets → assets}/actionscript-3-CfeIJUat.js +0 -0
  23. /package/web/{dist/assets → assets}/ada-bCR0ucgS.js +0 -0
  24. /package/web/{dist/assets → assets}/andromeeda-C-Jbm3Hp.js +0 -0
  25. /package/web/{dist/assets → assets}/angular-html-CU67Zn6k.js +0 -0
  26. /package/web/{dist/assets → assets}/angular-ts-BwZT4LLn.js +0 -0
  27. /package/web/{dist/assets → assets}/apache-Pmp26Uib.js +0 -0
  28. /package/web/{dist/assets → assets}/apex-DDbsPZ6N.js +0 -0
  29. /package/web/{dist/assets → assets}/apl-dKokRX4l.js +0 -0
  30. /package/web/{dist/assets → assets}/applescript-Co6uUVPk.js +0 -0
  31. /package/web/{dist/assets → assets}/ara-BRHolxvo.js +0 -0
  32. /package/web/{dist/assets → assets}/asciidoc-Dv7Oe6Be.js +0 -0
  33. /package/web/{dist/assets → assets}/asm-D_Q5rh1f.js +0 -0
  34. /package/web/{dist/assets → assets}/astro-CbQHKStN.js +0 -0
  35. /package/web/{dist/assets → assets}/aurora-x-D-2ljcwZ.js +0 -0
  36. /package/web/{dist/assets → assets}/awk-DMzUqQB5.js +0 -0
  37. /package/web/{dist/assets → assets}/ayu-dark-Cv9koXgw.js +0 -0
  38. /package/web/{dist/assets → assets}/ballerina-BFfxhgS-.js +0 -0
  39. /package/web/{dist/assets → assets}/bat-BkioyH1T.js +0 -0
  40. /package/web/{dist/assets → assets}/beancount-k_qm7-4y.js +0 -0
  41. /package/web/{dist/assets → assets}/berry-uYugtg8r.js +0 -0
  42. /package/web/{dist/assets → assets}/bibtex-CHM0blh-.js +0 -0
  43. /package/web/{dist/assets → assets}/bicep-Bmn6On1c.js +0 -0
  44. /package/web/{dist/assets → assets}/blade-DVc8C-J4.js +0 -0
  45. /package/web/{dist/assets → assets}/bsl-BO_Y6i37.js +0 -0
  46. /package/web/{dist/assets → assets}/c-BIGW1oBm.js +0 -0
  47. /package/web/{dist/assets → assets}/cadence-Bv_4Rxtq.js +0 -0
  48. /package/web/{dist/assets → assets}/cairo-KRGpt6FW.js +0 -0
  49. /package/web/{dist/assets → assets}/catppuccin-frappe-DFWUc33u.js +0 -0
  50. /package/web/{dist/assets → assets}/catppuccin-latte-C9dUb6Cb.js +0 -0
  51. /package/web/{dist/assets → assets}/catppuccin-macchiato-DQyhUUbL.js +0 -0
  52. /package/web/{dist/assets → assets}/catppuccin-mocha-D87Tk5Gz.js +0 -0
  53. /package/web/{dist/assets → assets}/clarity-D53aC0YG.js +0 -0
  54. /package/web/{dist/assets → assets}/clojure-P80f7IUj.js +0 -0
  55. /package/web/{dist/assets → assets}/cmake-D1j8_8rp.js +0 -0
  56. /package/web/{dist/assets → assets}/cobol-nwyudZeR.js +0 -0
  57. /package/web/{dist/assets → assets}/codeowners-Bp6g37R7.js +0 -0
  58. /package/web/{dist/assets → assets}/codeql-DsOJ9woJ.js +0 -0
  59. /package/web/{dist/assets → assets}/coffee-Ch7k5sss.js +0 -0
  60. /package/web/{dist/assets → assets}/common-lisp-Cg-RD9OK.js +0 -0
  61. /package/web/{dist/assets → assets}/coq-DkFqJrB1.js +0 -0
  62. /package/web/{dist/assets → assets}/cpp-CofmeUqb.js +0 -0
  63. /package/web/{dist/assets → assets}/crystal-tKQVLTB8.js +0 -0
  64. /package/web/{dist/assets → assets}/csharp-K5feNrxe.js +0 -0
  65. /package/web/{dist/assets → assets}/css-DPfMkruS.js +0 -0
  66. /package/web/{dist/assets → assets}/csv-fuZLfV_i.js +0 -0
  67. /package/web/{dist/assets → assets}/cue-D82EKSYY.js +0 -0
  68. /package/web/{dist/assets → assets}/cypher-COkxafJQ.js +0 -0
  69. /package/web/{dist/assets → assets}/d-85-TOEBH.js +0 -0
  70. /package/web/{dist/assets → assets}/dark-plus-C3mMm8J8.js +0 -0
  71. /package/web/{dist/assets → assets}/dart-CF10PKvl.js +0 -0
  72. /package/web/{dist/assets → assets}/dax-CEL-wOlO.js +0 -0
  73. /package/web/{dist/assets → assets}/desktop-BmXAJ9_W.js +0 -0
  74. /package/web/{dist/assets → assets}/diff-D97Zzqfu.js +0 -0
  75. /package/web/{dist/assets → assets}/docker-BcOcwvcX.js +0 -0
  76. /package/web/{dist/assets → assets}/dotenv-Da5cRb03.js +0 -0
  77. /package/web/{dist/assets → assets}/dracula-BzJJZx-M.js +0 -0
  78. /package/web/{dist/assets → assets}/dracula-soft-BXkSAIEj.js +0 -0
  79. /package/web/{dist/assets → assets}/dream-maker-BtqSS_iP.js +0 -0
  80. /package/web/{dist/assets → assets}/edge-BkV0erSs.js +0 -0
  81. /package/web/{dist/assets → assets}/elixir-CDX3lj18.js +0 -0
  82. /package/web/{dist/assets → assets}/elm-DbKCFpqz.js +0 -0
  83. /package/web/{dist/assets → assets}/emacs-lisp-C9XAeP06.js +0 -0
  84. /package/web/{dist/assets → assets}/erb-BOJIQeun.js +0 -0
  85. /package/web/{dist/assets → assets}/erlang-DsQrWhSR.js +0 -0
  86. /package/web/{dist/assets → assets}/everforest-dark-BgDCqdQA.js +0 -0
  87. /package/web/{dist/assets → assets}/everforest-light-C8M2exoo.js +0 -0
  88. /package/web/{dist/assets → assets}/fennel-BYunw83y.js +0 -0
  89. /package/web/{dist/assets → assets}/fish-BvzEVeQv.js +0 -0
  90. /package/web/{dist/assets → assets}/fluent-C4IJs8-o.js +0 -0
  91. /package/web/{dist/assets → assets}/fortran-fixed-form-BZjJHVRy.js +0 -0
  92. /package/web/{dist/assets → assets}/fortran-free-form-D22FLkUw.js +0 -0
  93. /package/web/{dist/assets → assets}/fsharp-CXgrBDvD.js +0 -0
  94. /package/web/{dist/assets → assets}/gdresource-B7Tvp0Sc.js +0 -0
  95. /package/web/{dist/assets → assets}/gdscript-DTMYz4Jt.js +0 -0
  96. /package/web/{dist/assets → assets}/gdshader-DkwncUOv.js +0 -0
  97. /package/web/{dist/assets → assets}/genie-D0YGMca9.js +0 -0
  98. /package/web/{dist/assets → assets}/gherkin-DyxjwDmM.js +0 -0
  99. /package/web/{dist/assets → assets}/git-commit-F4YmCXRG.js +0 -0
  100. /package/web/{dist/assets → assets}/git-rebase-r7XF79zn.js +0 -0
  101. /package/web/{dist/assets → assets}/github-dark-DHJKELXO.js +0 -0
  102. /package/web/{dist/assets → assets}/github-dark-default-Cuk6v7N8.js +0 -0
  103. /package/web/{dist/assets → assets}/github-dark-dimmed-DH5Ifo-i.js +0 -0
  104. /package/web/{dist/assets → assets}/github-dark-high-contrast-E3gJ1_iC.js +0 -0
  105. /package/web/{dist/assets → assets}/github-light-DAi9KRSo.js +0 -0
  106. /package/web/{dist/assets → assets}/github-light-default-D7oLnXFd.js +0 -0
  107. /package/web/{dist/assets → assets}/github-light-high-contrast-BfjtVDDH.js +0 -0
  108. /package/web/{dist/assets → assets}/gleam-BspZqrRM.js +0 -0
  109. /package/web/{dist/assets → assets}/glimmer-js-Rg0-pVw9.js +0 -0
  110. /package/web/{dist/assets → assets}/glimmer-ts-U6CK756n.js +0 -0
  111. /package/web/{dist/assets → assets}/glsl-DplSGwfg.js +0 -0
  112. /package/web/{dist/assets → assets}/gnuplot-DdkO51Og.js +0 -0
  113. /package/web/{dist/assets → assets}/go-Dn2_MT6a.js +0 -0
  114. /package/web/{dist/assets → assets}/graphql-ChdNCCLP.js +0 -0
  115. /package/web/{dist/assets → assets}/groovy-gcz8RCvz.js +0 -0
  116. /package/web/{dist/assets → assets}/gruvbox-dark-hard-CFHQjOhq.js +0 -0
  117. /package/web/{dist/assets → assets}/gruvbox-dark-medium-GsRaNv29.js +0 -0
  118. /package/web/{dist/assets → assets}/gruvbox-dark-soft-CVdnzihN.js +0 -0
  119. /package/web/{dist/assets → assets}/gruvbox-light-hard-CH1njM8p.js +0 -0
  120. /package/web/{dist/assets → assets}/gruvbox-light-medium-DRw_LuNl.js +0 -0
  121. /package/web/{dist/assets → assets}/gruvbox-light-soft-hJgmCMqR.js +0 -0
  122. /package/web/{dist/assets → assets}/hack-CaT9iCJl.js +0 -0
  123. /package/web/{dist/assets → assets}/haml-B8DHNrY2.js +0 -0
  124. /package/web/{dist/assets → assets}/handlebars-BL8al0AC.js +0 -0
  125. /package/web/{dist/assets → assets}/haskell-Df6bDoY_.js +0 -0
  126. /package/web/{dist/assets → assets}/haxe-CzTSHFRz.js +0 -0
  127. /package/web/{dist/assets → assets}/hcl-BWvSN4gD.js +0 -0
  128. /package/web/{dist/assets → assets}/hjson-D5-asLiD.js +0 -0
  129. /package/web/{dist/assets → assets}/hlsl-D3lLCCz7.js +0 -0
  130. /package/web/{dist/assets → assets}/houston-DnULxvSX.js +0 -0
  131. /package/web/{dist/assets → assets}/html-GMplVEZG.js +0 -0
  132. /package/web/{dist/assets → assets}/html-derivative-BFtXZ54Q.js +0 -0
  133. /package/web/{dist/assets → assets}/http-jrhK8wxY.js +0 -0
  134. /package/web/{dist/assets → assets}/hurl-irOxFIW8.js +0 -0
  135. /package/web/{dist/assets → assets}/hxml-Bvhsp5Yf.js +0 -0
  136. /package/web/{dist/assets → assets}/hy-DFXneXwc.js +0 -0
  137. /package/web/{dist/assets → assets}/imba-DGztddWO.js +0 -0
  138. /package/web/{dist/assets → assets}/ini-BEwlwnbL.js +0 -0
  139. /package/web/{dist/assets → assets}/java-CylS5w8V.js +0 -0
  140. /package/web/{dist/assets → assets}/javascript-wDzz0qaB.js +0 -0
  141. /package/web/{dist/assets → assets}/jinja-4LBKfQ-Z.js +0 -0
  142. /package/web/{dist/assets → assets}/jison-wvAkD_A8.js +0 -0
  143. /package/web/{dist/assets → assets}/json-Cp-IABpG.js +0 -0
  144. /package/web/{dist/assets → assets}/json5-C9tS-k6U.js +0 -0
  145. /package/web/{dist/assets → assets}/jsonc-Des-eS-w.js +0 -0
  146. /package/web/{dist/assets → assets}/jsonl-DcaNXYhu.js +0 -0
  147. /package/web/{dist/assets → assets}/jsonnet-DFQXde-d.js +0 -0
  148. /package/web/{dist/assets → assets}/jssm-C2t-YnRu.js +0 -0
  149. /package/web/{dist/assets → assets}/jsx-g9-lgVsj.js +0 -0
  150. /package/web/{dist/assets → assets}/julia-C8NyazO9.js +0 -0
  151. /package/web/{dist/assets → assets}/kanagawa-dragon-CkXjmgJE.js +0 -0
  152. /package/web/{dist/assets → assets}/kanagawa-lotus-CfQXZHmo.js +0 -0
  153. /package/web/{dist/assets → assets}/kanagawa-wave-DWedfzmr.js +0 -0
  154. /package/web/{dist/assets → assets}/kdl-DV7GczEv.js +0 -0
  155. /package/web/{dist/assets → assets}/kotlin-BdnUsdx6.js +0 -0
  156. /package/web/{dist/assets → assets}/kusto-BvAqAH-y.js +0 -0
  157. /package/web/{dist/assets → assets}/laserwave-DUszq2jm.js +0 -0
  158. /package/web/{dist/assets → assets}/latex-BdAV_C_H.js +0 -0
  159. /package/web/{dist/assets → assets}/lean-Bc6EcWN3.js +0 -0
  160. /package/web/{dist/assets → assets}/less-B1dDrJ26.js +0 -0
  161. /package/web/{dist/assets → assets}/light-plus-B7mTdjB0.js +0 -0
  162. /package/web/{dist/assets → assets}/liquid-DYVedYrR.js +0 -0
  163. /package/web/{dist/assets → assets}/llvm-BtvRca6l.js +0 -0
  164. /package/web/{dist/assets → assets}/log-2UxHyX5q.js +0 -0
  165. /package/web/{dist/assets → assets}/logo-BtOb2qkB.js +0 -0
  166. /package/web/{dist/assets → assets}/lua-BbnMAYS6.js +0 -0
  167. /package/web/{dist/assets → assets}/luau-CXu1NL6O.js +0 -0
  168. /package/web/{dist/assets → assets}/make-CHLpvVh8.js +0 -0
  169. /package/web/{dist/assets → assets}/markdown-Cvjx9yec.js +0 -0
  170. /package/web/{dist/assets → assets}/marko-CPi9NSCl.js +0 -0
  171. /package/web/{dist/assets → assets}/material-theme-D5KoaKCx.js +0 -0
  172. /package/web/{dist/assets → assets}/material-theme-darker-BfHTSMKl.js +0 -0
  173. /package/web/{dist/assets → assets}/material-theme-lighter-B0m2ddpp.js +0 -0
  174. /package/web/{dist/assets → assets}/material-theme-ocean-CyktbL80.js +0 -0
  175. /package/web/{dist/assets → assets}/material-theme-palenight-Csfq5Kiy.js +0 -0
  176. /package/web/{dist/assets → assets}/matlab-D7o27uSR.js +0 -0
  177. /package/web/{dist/assets → assets}/mdc-DUICxH0z.js +0 -0
  178. /package/web/{dist/assets → assets}/mdx-Cmh6b_Ma.js +0 -0
  179. /package/web/{dist/assets → assets}/mermaid-DKYwYmdq.js +0 -0
  180. /package/web/{dist/assets → assets}/min-dark-CafNBF8u.js +0 -0
  181. /package/web/{dist/assets → assets}/min-light-CTRr51gU.js +0 -0
  182. /package/web/{dist/assets → assets}/mipsasm-CKIfxQSi.js +0 -0
  183. /package/web/{dist/assets → assets}/mojo-1DNp92w6.js +0 -0
  184. /package/web/{dist/assets → assets}/monokai-D4h5O-jR.js +0 -0
  185. /package/web/{dist/assets → assets}/move-Bu9oaDYs.js +0 -0
  186. /package/web/{dist/assets → assets}/narrat-DRg8JJMk.js +0 -0
  187. /package/web/{dist/assets → assets}/nextflow-BrzmwbiE.js +0 -0
  188. /package/web/{dist/assets → assets}/nginx-DknmC5AR.js +0 -0
  189. /package/web/{dist/assets → assets}/night-owl-C39BiMTA.js +0 -0
  190. /package/web/{dist/assets → assets}/nim-CVrawwO9.js +0 -0
  191. /package/web/{dist/assets → assets}/nix-c8nO5XWb.js +0 -0
  192. /package/web/{dist/assets → assets}/nord-Ddv68eIx.js +0 -0
  193. /package/web/{dist/assets → assets}/nushell-C-sUppwS.js +0 -0
  194. /package/web/{dist/assets → assets}/objective-c-DXmwc3jG.js +0 -0
  195. /package/web/{dist/assets → assets}/objective-cpp-CLxacb5B.js +0 -0
  196. /package/web/{dist/assets → assets}/ocaml-C0hk2d4L.js +0 -0
  197. /package/web/{dist/assets → assets}/one-dark-pro-DVMEJ2y_.js +0 -0
  198. /package/web/{dist/assets → assets}/one-light-PoHY5YXO.js +0 -0
  199. /package/web/{dist/assets → assets}/openscad-C4EeE6gA.js +0 -0
  200. /package/web/{dist/assets → assets}/pascal-D93ZcfNL.js +0 -0
  201. /package/web/{dist/assets → assets}/perl-C0TMdlhV.js +0 -0
  202. /package/web/{dist/assets → assets}/php-CDn_0X-4.js +0 -0
  203. /package/web/{dist/assets → assets}/pkl-u5AG7uiY.js +0 -0
  204. /package/web/{dist/assets → assets}/plastic-3e1v2bzS.js +0 -0
  205. /package/web/{dist/assets → assets}/plsql-ChMvpjG-.js +0 -0
  206. /package/web/{dist/assets → assets}/po-BTJTHyun.js +0 -0
  207. /package/web/{dist/assets → assets}/poimandres-CS3Unz2-.js +0 -0
  208. /package/web/{dist/assets → assets}/polar-C0HS_06l.js +0 -0
  209. /package/web/{dist/assets → assets}/postcss-CXtECtnM.js +0 -0
  210. /package/web/{dist/assets → assets}/powerquery-CEu0bR-o.js +0 -0
  211. /package/web/{dist/assets → assets}/powershell-Dpen1YoG.js +0 -0
  212. /package/web/{dist/assets → assets}/prisma-Dd19v3D-.js +0 -0
  213. /package/web/{dist/assets → assets}/prolog-CbFg5uaA.js +0 -0
  214. /package/web/{dist/assets → assets}/proto-DyJlTyXw.js +0 -0
  215. /package/web/{dist/assets → assets}/pug-CGlum2m_.js +0 -0
  216. /package/web/{dist/assets → assets}/puppet-BMWR74SV.js +0 -0
  217. /package/web/{dist/assets → assets}/purescript-CklMAg4u.js +0 -0
  218. /package/web/{dist/assets → assets}/python-B6aJPvgy.js +0 -0
  219. /package/web/{dist/assets → assets}/qml-3beO22l8.js +0 -0
  220. /package/web/{dist/assets → assets}/qmldir-C8lEn-DE.js +0 -0
  221. /package/web/{dist/assets → assets}/qss-IeuSbFQv.js +0 -0
  222. /package/web/{dist/assets → assets}/r-DiinP2Uv.js +0 -0
  223. /package/web/{dist/assets → assets}/racket-BqYA7rlc.js +0 -0
  224. /package/web/{dist/assets → assets}/raku-DXvB9xmW.js +0 -0
  225. /package/web/{dist/assets → assets}/razor-CE9lU5zL.js +0 -0
  226. /package/web/{dist/assets → assets}/red-bN70gL4F.js +0 -0
  227. /package/web/{dist/assets → assets}/reg-C-SQnVFl.js +0 -0
  228. /package/web/{dist/assets → assets}/regexp-CDVJQ6XC.js +0 -0
  229. /package/web/{dist/assets → assets}/rel-C3B-1QV4.js +0 -0
  230. /package/web/{dist/assets → assets}/riscv-BM1_JUlF.js +0 -0
  231. /package/web/{dist/assets → assets}/rose-pine-dawn-DHQR4-dF.js +0 -0
  232. /package/web/{dist/assets → assets}/rose-pine-moon-D4_iv3hh.js +0 -0
  233. /package/web/{dist/assets → assets}/rose-pine-qdsjHGoJ.js +0 -0
  234. /package/web/{dist/assets → assets}/rosmsg-BJDFO7_C.js +0 -0
  235. /package/web/{dist/assets → assets}/rst-B0xPkSld.js +0 -0
  236. /package/web/{dist/assets → assets}/ruby-BvKwtOVI.js +0 -0
  237. /package/web/{dist/assets → assets}/rust-B1yitclQ.js +0 -0
  238. /package/web/{dist/assets → assets}/sas-cz2c8ADy.js +0 -0
  239. /package/web/{dist/assets → assets}/sass-Cj5Yp3dK.js +0 -0
  240. /package/web/{dist/assets → assets}/scala-C151Ov-r.js +0 -0
  241. /package/web/{dist/assets → assets}/scheme-C98Dy4si.js +0 -0
  242. /package/web/{dist/assets → assets}/scss-OYdSNvt2.js +0 -0
  243. /package/web/{dist/assets → assets}/sdbl-DVxCFoDh.js +0 -0
  244. /package/web/{dist/assets → assets}/shaderlab-Dg9Lc6iA.js +0 -0
  245. /package/web/{dist/assets → assets}/shellscript-Yzrsuije.js +0 -0
  246. /package/web/{dist/assets → assets}/shellsession-BADoaaVG.js +0 -0
  247. /package/web/{dist/assets → assets}/slack-dark-BthQWCQV.js +0 -0
  248. /package/web/{dist/assets → assets}/slack-ochin-DqwNpetd.js +0 -0
  249. /package/web/{dist/assets → assets}/smalltalk-BERRCDM3.js +0 -0
  250. /package/web/{dist/assets → assets}/snazzy-light-Bw305WKR.js +0 -0
  251. /package/web/{dist/assets → assets}/solarized-dark-DXbdFlpD.js +0 -0
  252. /package/web/{dist/assets → assets}/solarized-light-L9t79GZl.js +0 -0
  253. /package/web/{dist/assets → assets}/solidity-rGO070M0.js +0 -0
  254. /package/web/{dist/assets → assets}/soy-Brmx7dQM.js +0 -0
  255. /package/web/{dist/assets → assets}/sparql-rVzFXLq3.js +0 -0
  256. /package/web/{dist/assets → assets}/splunk-BtCnVYZw.js +0 -0
  257. /package/web/{dist/assets → assets}/sql-BLtJtn59.js +0 -0
  258. /package/web/{dist/assets → assets}/ssh-config-_ykCGR6B.js +0 -0
  259. /package/web/{dist/assets → assets}/stata-BH5u7GGu.js +0 -0
  260. /package/web/{dist/assets → assets}/stylus-BEDo0Tqx.js +0 -0
  261. /package/web/{dist/assets → assets}/svelte-3Dk4HxPD.js +0 -0
  262. /package/web/{dist/assets → assets}/swift-Dg5xB15N.js +0 -0
  263. /package/web/{dist/assets → assets}/synthwave-84-CbfX1IO0.js +0 -0
  264. /package/web/{dist/assets → assets}/system-verilog-CnnmHF94.js +0 -0
  265. /package/web/{dist/assets → assets}/systemd-4A_iFExJ.js +0 -0
  266. /package/web/{dist/assets → assets}/talonscript-CkByrt1z.js +0 -0
  267. /package/web/{dist/assets → assets}/tasl-QIJgUcNo.js +0 -0
  268. /package/web/{dist/assets → assets}/tcl-dwOrl1Do.js +0 -0
  269. /package/web/{dist/assets → assets}/templ-W15q3VgB.js +0 -0
  270. /package/web/{dist/assets → assets}/terraform-BETggiCN.js +0 -0
  271. /package/web/{dist/assets → assets}/tex-CxkMU7Pf.js +0 -0
  272. /package/web/{dist/assets → assets}/tokyo-night-hegEt444.js +0 -0
  273. /package/web/{dist/assets → assets}/toml-vGWfd6FD.js +0 -0
  274. /package/web/{dist/assets → assets}/ts-tags-zn1MmPIZ.js +0 -0
  275. /package/web/{dist/assets → assets}/tsv-B_m7g4N7.js +0 -0
  276. /package/web/{dist/assets → assets}/tsx-COt5Ahok.js +0 -0
  277. /package/web/{dist/assets → assets}/turtle-BsS91CYL.js +0 -0
  278. /package/web/{dist/assets → assets}/twig-CO9l9SDP.js +0 -0
  279. /package/web/{dist/assets → assets}/typescript-BPQ3VLAy.js +0 -0
  280. /package/web/{dist/assets → assets}/typespec-BGHnOYBU.js +0 -0
  281. /package/web/{dist/assets → assets}/typst-DHCkPAjA.js +0 -0
  282. /package/web/{dist/assets → assets}/v-BcVCzyr7.js +0 -0
  283. /package/web/{dist/assets → assets}/vala-CsfeWuGM.js +0 -0
  284. /package/web/{dist/assets → assets}/vb-D17OF-Vu.js +0 -0
  285. /package/web/{dist/assets → assets}/verilog-BQ8w6xss.js +0 -0
  286. /package/web/{dist/assets → assets}/vesper-DU1UobuO.js +0 -0
  287. /package/web/{dist/assets → assets}/vhdl-CeAyd5Ju.js +0 -0
  288. /package/web/{dist/assets → assets}/viml-CJc9bBzg.js +0 -0
  289. /package/web/{dist/assets → assets}/vitesse-black-Bkuqu6BP.js +0 -0
  290. /package/web/{dist/assets → assets}/vitesse-dark-D0r3Knsf.js +0 -0
  291. /package/web/{dist/assets → assets}/vitesse-light-CVO1_9PV.js +0 -0
  292. /package/web/{dist/assets → assets}/vue-DnHKYNfI.js +0 -0
  293. /package/web/{dist/assets → assets}/vue-html-CChd_i61.js +0 -0
  294. /package/web/{dist/assets → assets}/vue-vine-8moa0y9V.js +0 -0
  295. /package/web/{dist/assets → assets}/vyper-CDx5xZoG.js +0 -0
  296. /package/web/{dist/assets → assets}/wasm-CG6Dc4jp.js +0 -0
  297. /package/web/{dist/assets → assets}/wasm-MzD3tlZU.js +0 -0
  298. /package/web/{dist/assets → assets}/wenyan-BV7otONQ.js +0 -0
  299. /package/web/{dist/assets → assets}/wgsl-Dx-B1_4e.js +0 -0
  300. /package/web/{dist/assets → assets}/wikitext-BhOHFoWU.js +0 -0
  301. /package/web/{dist/assets → assets}/wit-5i3qLPDT.js +0 -0
  302. /package/web/{dist/assets → assets}/wolfram-lXgVvXCa.js +0 -0
  303. /package/web/{dist/assets → assets}/xml-sdJ4AIDG.js +0 -0
  304. /package/web/{dist/assets → assets}/xsl-CtQFsRM5.js +0 -0
  305. /package/web/{dist/assets → assets}/yaml-Buea-lGh.js +0 -0
  306. /package/web/{dist/assets → assets}/zenscript-DVFEvuxE.js +0 -0
  307. /package/web/{dist/assets → assets}/zig-VOosw3JB.js +0 -0
@@ -1,5 +1,5 @@
1
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"])))=>i.map(i=>d[i]);
2
- var IT=Object.defineProperty;var n0=e=>{throw TypeError(e)};var BT=(e,t,n)=>t in e?IT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var W=(e,t,n)=>BT(e,typeof t!="symbol"?t+"":t,n),Ud=(e,t,n)=>t.has(e)||n0("Cannot "+n);var M=(e,t,n)=>(Ud(e,t,"read from private field"),n?n.call(e):t.get(e)),ye=(e,t,n)=>t.has(e)?n0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ce=(e,t,n,i)=>(Ud(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Re=(e,t,n)=>(Ud(e,t,"access private method"),n);var sc=(e,t,n,i)=>({set _(s){ce(e,t,s,n)},get _(){return M(e,t,i)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function vp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qd={exports:{}},Xl={};/**
2
+ var VT=Object.defineProperty;var i0=e=>{throw TypeError(e)};var HT=(e,t,n)=>t in e?VT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var W=(e,t,n)=>HT(e,typeof t!="symbol"?t+"":t,n),qd=(e,t,n)=>t.has(e)||i0("Cannot "+n);var M=(e,t,n)=>(qd(e,t,"read from private field"),n?n.call(e):t.get(e)),ye=(e,t,n)=>t.has(e)?i0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ce=(e,t,n,i)=>(qd(e,t,"write to private field"),i?i.call(e,n):t.set(e,n),n),Re=(e,t,n)=>(qd(e,t,"access private method"),n);var sc=(e,t,n,i)=>({set _(s){ce(e,t,s,n)},get _(){return M(e,t,i)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function _p(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vd={exports:{}},Zl={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.js
5
5
  *
@@ -7,7 +7,7 @@ var IT=Object.defineProperty;var n0=e=>{throw TypeError(e)};var BT=(e,t,n)=>t in
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var r0;function UT(){if(r0)return Xl;r0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,s,o){var u=null;if(o!==void 0&&(u=""+o),s.key!==void 0&&(u=""+s.key),"key"in s){o={};for(var f in s)f!=="key"&&(o[f]=s[f])}else o=s;return s=o.ref,{$$typeof:e,type:i,key:u,ref:s!==void 0?s:null,props:o}}return Xl.Fragment=t,Xl.jsx=n,Xl.jsxs=n,Xl}var i0;function qT(){return i0||(i0=1,qd.exports=UT()),qd.exports}var S=qT(),Vd={exports:{}},Zl={},Hd={exports:{}},Gd={};/**
10
+ */var a0;function GT(){if(a0)return Zl;a0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,s,o){var u=null;if(o!==void 0&&(u=""+o),s.key!==void 0&&(u=""+s.key),"key"in s){o={};for(var f in s)f!=="key"&&(o[f]=s[f])}else o=s;return s=o.ref,{$$typeof:e,type:i,key:u,ref:s!==void 0?s:null,props:o}}return Zl.Fragment=t,Zl.jsx=n,Zl.jsxs=n,Zl}var s0;function FT(){return s0||(s0=1,Vd.exports=GT()),Vd.exports}var S=FT(),Hd={exports:{}},Jl={},Gd={exports:{}},Fd={};/**
11
11
  * @license React
12
12
  * scheduler.production.js
13
13
  *
@@ -15,7 +15,7 @@ var IT=Object.defineProperty;var n0=e=>{throw TypeError(e)};var BT=(e,t,n)=>t in
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */var a0;function VT(){return a0||(a0=1,(function(e){function t(V,te){var fe=V.length;V.push(te);e:for(;0<fe;){var Ee=fe-1>>>1,j=V[Ee];if(0<s(j,te))V[Ee]=te,V[fe]=j,fe=Ee;else break e}}function n(V){return V.length===0?null:V[0]}function i(V){if(V.length===0)return null;var te=V[0],fe=V.pop();if(fe!==te){V[0]=fe;e:for(var Ee=0,j=V.length,P=j>>>1;Ee<P;){var X=2*(Ee+1)-1,O=V[X],ue=X+1,ge=V[ue];if(0>s(O,fe))ue<j&&0>s(ge,O)?(V[Ee]=ge,V[ue]=fe,Ee=ue):(V[Ee]=O,V[X]=fe,Ee=X);else if(ue<j&&0>s(ge,fe))V[Ee]=ge,V[ue]=fe,Ee=ue;else break e}}return te}function s(V,te){var fe=V.sortIndex-te.sortIndex;return fe!==0?fe:V.id-te.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],d=[],y=1,p=null,v=3,_=!1,x=!1,E=!1,k=!1,w=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function z(V){for(var te=n(d);te!==null;){if(te.callback===null)i(d);else if(te.startTime<=V)i(d),te.sortIndex=te.expirationTime,t(h,te);else break;te=n(d)}}function B(V){if(E=!1,z(V),!x)if(n(h)!==null)x=!0,A||(A=!0,re());else{var te=n(d);te!==null&&ae(B,te.startTime-V)}}var A=!1,q=-1,$=5,ne=-1;function N(){return k?!0:!(e.unstable_now()-ne<$)}function Q(){if(k=!1,A){var V=e.unstable_now();ne=V;var te=!0;try{e:{x=!1,E&&(E=!1,C(q),q=-1),_=!0;var fe=v;try{t:{for(z(V),p=n(h);p!==null&&!(p.expirationTime>V&&N());){var Ee=p.callback;if(typeof Ee=="function"){p.callback=null,v=p.priorityLevel;var j=Ee(p.expirationTime<=V);if(V=e.unstable_now(),typeof j=="function"){p.callback=j,z(V),te=!0;break t}p===n(h)&&i(h),z(V)}else i(h);p=n(h)}if(p!==null)te=!0;else{var P=n(d);P!==null&&ae(B,P.startTime-V),te=!1}}break e}finally{p=null,v=fe,_=!1}te=void 0}}finally{te?re():A=!1}}}var re;if(typeof L=="function")re=function(){L(Q)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,le=me.port2;me.port1.onmessage=Q,re=function(){le.postMessage(null)}}else re=function(){w(Q,0)};function ae(V,te){q=w(function(){V(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(V){switch(v){case 1:case 2:case 3:var te=3;break;default:te=v}var fe=v;v=te;try{return V()}finally{v=fe}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(V,te){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var fe=v;v=V;try{return te()}finally{v=fe}},e.unstable_scheduleCallback=function(V,te,fe){var Ee=e.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?Ee+fe:Ee):fe=Ee,V){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=fe+j,V={id:y++,callback:te,priorityLevel:V,startTime:fe,expirationTime:j,sortIndex:-1},fe>Ee?(V.sortIndex=fe,t(d,V),n(h)===null&&V===n(d)&&(E?(C(q),q=-1):E=!0,ae(B,fe-Ee))):(V.sortIndex=j,t(h,V),x||_||(x=!0,A||(A=!0,re()))),V},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(V){var te=v;return function(){var fe=v;v=te;try{return V.apply(this,arguments)}finally{v=fe}}}})(Gd)),Gd}var s0;function HT(){return s0||(s0=1,Hd.exports=VT()),Hd.exports}var Fd={exports:{}},we={};/**
18
+ */var l0;function QT(){return l0||(l0=1,(function(e){function t(q,te){var fe=q.length;q.push(te);e:for(;0<fe;){var Ee=fe-1>>>1,j=q[Ee];if(0<s(j,te))q[Ee]=te,q[fe]=j,fe=Ee;else break e}}function n(q){return q.length===0?null:q[0]}function i(q){if(q.length===0)return null;var te=q[0],fe=q.pop();if(fe!==te){q[0]=fe;e:for(var Ee=0,j=q.length,P=j>>>1;Ee<P;){var X=2*(Ee+1)-1,A=q[X],ue=X+1,ge=q[ue];if(0>s(A,fe))ue<j&&0>s(ge,A)?(q[Ee]=ge,q[ue]=fe,Ee=ue):(q[Ee]=A,q[X]=fe,Ee=X);else if(ue<j&&0>s(ge,fe))q[Ee]=ge,q[ue]=fe,Ee=ue;else break e}}return te}function s(q,te){var fe=q.sortIndex-te.sortIndex;return fe!==0?fe:q.id-te.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],d=[],y=1,p=null,v=3,_=!1,b=!1,E=!1,k=!1,T=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function z(q){for(var te=n(d);te!==null;){if(te.callback===null)i(d);else if(te.startTime<=q)i(d),te.sortIndex=te.expirationTime,t(h,te);else break;te=n(d)}}function V(q){if(E=!1,z(q),!b)if(n(h)!==null)b=!0,O||(O=!0,re());else{var te=n(d);te!==null&&ae(V,te.startTime-q)}}var O=!1,U=-1,$=5,ne=-1;function N(){return k?!0:!(e.unstable_now()-ne<$)}function Q(){if(k=!1,O){var q=e.unstable_now();ne=q;var te=!0;try{e:{b=!1,E&&(E=!1,R(U),U=-1),_=!0;var fe=v;try{t:{for(z(q),p=n(h);p!==null&&!(p.expirationTime>q&&N());){var Ee=p.callback;if(typeof Ee=="function"){p.callback=null,v=p.priorityLevel;var j=Ee(p.expirationTime<=q);if(q=e.unstable_now(),typeof j=="function"){p.callback=j,z(q),te=!0;break t}p===n(h)&&i(h),z(q)}else i(h);p=n(h)}if(p!==null)te=!0;else{var P=n(d);P!==null&&ae(V,P.startTime-q),te=!1}}break e}finally{p=null,v=fe,_=!1}te=void 0}}finally{te?re():O=!1}}}var re;if(typeof L=="function")re=function(){L(Q)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,le=me.port2;me.port1.onmessage=Q,re=function(){le.postMessage(null)}}else re=function(){T(Q,0)};function ae(q,te){U=T(function(){q(e.unstable_now())},te)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(q){switch(v){case 1:case 2:case 3:var te=3;break;default:te=v}var fe=v;v=te;try{return q()}finally{v=fe}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(q,te){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var fe=v;v=q;try{return te()}finally{v=fe}},e.unstable_scheduleCallback=function(q,te,fe){var Ee=e.unstable_now();switch(typeof fe=="object"&&fe!==null?(fe=fe.delay,fe=typeof fe=="number"&&0<fe?Ee+fe:Ee):fe=Ee,q){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=fe+j,q={id:y++,callback:te,priorityLevel:q,startTime:fe,expirationTime:j,sortIndex:-1},fe>Ee?(q.sortIndex=fe,t(d,q),n(h)===null&&q===n(d)&&(E?(R(U),U=-1):E=!0,ae(V,fe-Ee))):(q.sortIndex=j,t(h,q),b||_||(b=!0,O||(O=!0,re()))),q},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(q){var te=v;return function(){var fe=v;v=te;try{return q.apply(this,arguments)}finally{v=fe}}}})(Fd)),Fd}var o0;function $T(){return o0||(o0=1,Gd.exports=QT()),Gd.exports}var Qd={exports:{}},we={};/**
19
19
  * @license React
20
20
  * react.production.js
21
21
  *
@@ -23,7 +23,7 @@ var IT=Object.defineProperty;var n0=e=>{throw TypeError(e)};var BT=(e,t,n)=>t in
23
23
  *
24
24
  * This source code is licensed under the MIT license found in the
25
25
  * LICENSE file in the root directory of this source tree.
26
- */var l0;function GT(){if(l0)return we;l0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),v=Symbol.iterator;function _(P){return P===null||typeof P!="object"?null:(P=v&&P[v]||P["@@iterator"],typeof P=="function"?P:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,k={};function w(P,X,O){this.props=P,this.context=X,this.refs=k,this.updater=O||x}w.prototype.isReactComponent={},w.prototype.setState=function(P,X){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,X,"setState")},w.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function C(){}C.prototype=w.prototype;function L(P,X,O){this.props=P,this.context=X,this.refs=k,this.updater=O||x}var z=L.prototype=new C;z.constructor=L,E(z,w.prototype),z.isPureReactComponent=!0;var B=Array.isArray;function A(){}var q={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function ne(P,X,O){var ue=O.ref;return{$$typeof:e,type:P,key:X,ref:ue!==void 0?ue:null,props:O}}function N(P,X){return ne(P.type,X,P.props)}function Q(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function re(P){var X={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(O){return X[O]})}var me=/\/+/g;function le(P,X){return typeof P=="object"&&P!==null&&P.key!=null?re(""+P.key):X.toString(36)}function ae(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(A,A):(P.status="pending",P.then(function(X){P.status==="pending"&&(P.status="fulfilled",P.value=X)},function(X){P.status==="pending"&&(P.status="rejected",P.reason=X)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function V(P,X,O,ue,ge){var he=typeof P;(he==="undefined"||he==="boolean")&&(P=null);var Se=!1;if(P===null)Se=!0;else switch(he){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(P.$$typeof){case e:case t:Se=!0;break;case y:return Se=P._init,V(Se(P._payload),X,O,ue,ge)}}if(Se)return ge=ge(P),Se=ue===""?"."+le(P,0):ue,B(ge)?(O="",Se!=null&&(O=Se.replace(me,"$&/")+"/"),V(ge,X,O,"",function(Dt){return Dt})):ge!=null&&(Q(ge)&&(ge=N(ge,O+(ge.key==null||P&&P.key===ge.key?"":(""+ge.key).replace(me,"$&/")+"/")+Se)),X.push(ge)),1;Se=0;var Qe=ue===""?".":ue+":";if(B(P))for(var Me=0;Me<P.length;Me++)ue=P[Me],he=Qe+le(ue,Me),Se+=V(ue,X,O,he,ge);else if(Me=_(P),typeof Me=="function")for(P=Me.call(P),Me=0;!(ue=P.next()).done;)ue=ue.value,he=Qe+le(ue,Me++),Se+=V(ue,X,O,he,ge);else if(he==="object"){if(typeof P.then=="function")return V(ae(P),X,O,ue,ge);throw X=String(P),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Se}function te(P,X,O){if(P==null)return P;var ue=[],ge=0;return V(P,ue,"","",function(he){return X.call(O,he,ge++)}),ue}function fe(P){if(P._status===-1){var X=P._result;X=X(),X.then(function(O){(P._status===0||P._status===-1)&&(P._status=1,P._result=O)},function(O){(P._status===0||P._status===-1)&&(P._status=2,P._result=O)}),P._status===-1&&(P._status=0,P._result=X)}if(P._status===1)return P._result.default;throw P._result}var Ee=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)},j={map:te,forEach:function(P,X,O){te(P,function(){X.apply(this,arguments)},O)},count:function(P){var X=0;return te(P,function(){X++}),X},toArray:function(P){return te(P,function(X){return X})||[]},only:function(P){if(!Q(P))throw Error("React.Children.only expected to receive a single React element child.");return P}};return we.Activity=p,we.Children=j,we.Component=w,we.Fragment=n,we.Profiler=s,we.PureComponent=L,we.StrictMode=i,we.Suspense=h,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,we.__COMPILER_RUNTIME={__proto__:null,c:function(P){return q.H.useMemoCache(P)}},we.cache=function(P){return function(){return P.apply(null,arguments)}},we.cacheSignal=function(){return null},we.cloneElement=function(P,X,O){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var ue=E({},P.props),ge=P.key;if(X!=null)for(he in X.key!==void 0&&(ge=""+X.key),X)!$.call(X,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&X.ref===void 0||(ue[he]=X[he]);var he=arguments.length-2;if(he===1)ue.children=O;else if(1<he){for(var Se=Array(he),Qe=0;Qe<he;Qe++)Se[Qe]=arguments[Qe+2];ue.children=Se}return ne(P.type,ge,ue)},we.createContext=function(P){return P={$$typeof:u,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:o,_context:P},P},we.createElement=function(P,X,O){var ue,ge={},he=null;if(X!=null)for(ue in X.key!==void 0&&(he=""+X.key),X)$.call(X,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(ge[ue]=X[ue]);var Se=arguments.length-2;if(Se===1)ge.children=O;else if(1<Se){for(var Qe=Array(Se),Me=0;Me<Se;Me++)Qe[Me]=arguments[Me+2];ge.children=Qe}if(P&&P.defaultProps)for(ue in Se=P.defaultProps,Se)ge[ue]===void 0&&(ge[ue]=Se[ue]);return ne(P,he,ge)},we.createRef=function(){return{current:null}},we.forwardRef=function(P){return{$$typeof:f,render:P}},we.isValidElement=Q,we.lazy=function(P){return{$$typeof:y,_payload:{_status:-1,_result:P},_init:fe}},we.memo=function(P,X){return{$$typeof:d,type:P,compare:X===void 0?null:X}},we.startTransition=function(P){var X=q.T,O={};q.T=O;try{var ue=P(),ge=q.S;ge!==null&&ge(O,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(A,Ee)}catch(he){Ee(he)}finally{X!==null&&O.types!==null&&(X.types=O.types),q.T=X}},we.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},we.use=function(P){return q.H.use(P)},we.useActionState=function(P,X,O){return q.H.useActionState(P,X,O)},we.useCallback=function(P,X){return q.H.useCallback(P,X)},we.useContext=function(P){return q.H.useContext(P)},we.useDebugValue=function(){},we.useDeferredValue=function(P,X){return q.H.useDeferredValue(P,X)},we.useEffect=function(P,X){return q.H.useEffect(P,X)},we.useEffectEvent=function(P){return q.H.useEffectEvent(P)},we.useId=function(){return q.H.useId()},we.useImperativeHandle=function(P,X,O){return q.H.useImperativeHandle(P,X,O)},we.useInsertionEffect=function(P,X){return q.H.useInsertionEffect(P,X)},we.useLayoutEffect=function(P,X){return q.H.useLayoutEffect(P,X)},we.useMemo=function(P,X){return q.H.useMemo(P,X)},we.useOptimistic=function(P,X){return q.H.useOptimistic(P,X)},we.useReducer=function(P,X,O){return q.H.useReducer(P,X,O)},we.useRef=function(P){return q.H.useRef(P)},we.useState=function(P){return q.H.useState(P)},we.useSyncExternalStore=function(P,X,O){return q.H.useSyncExternalStore(P,X,O)},we.useTransition=function(){return q.H.useTransition()},we.version="19.2.0",we}var o0;function Po(){return o0||(o0=1,Fd.exports=GT()),Fd.exports}var Qd={exports:{}},Mt={};/**
26
+ */var u0;function YT(){if(u0)return we;u0=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),v=Symbol.iterator;function _(P){return P===null||typeof P!="object"?null:(P=v&&P[v]||P["@@iterator"],typeof P=="function"?P:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,k={};function T(P,X,A){this.props=P,this.context=X,this.refs=k,this.updater=A||b}T.prototype.isReactComponent={},T.prototype.setState=function(P,X){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,X,"setState")},T.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function R(){}R.prototype=T.prototype;function L(P,X,A){this.props=P,this.context=X,this.refs=k,this.updater=A||b}var z=L.prototype=new R;z.constructor=L,E(z,T.prototype),z.isPureReactComponent=!0;var V=Array.isArray;function O(){}var U={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function ne(P,X,A){var ue=A.ref;return{$$typeof:e,type:P,key:X,ref:ue!==void 0?ue:null,props:A}}function N(P,X){return ne(P.type,X,P.props)}function Q(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function re(P){var X={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(A){return X[A]})}var me=/\/+/g;function le(P,X){return typeof P=="object"&&P!==null&&P.key!=null?re(""+P.key):X.toString(36)}function ae(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then(O,O):(P.status="pending",P.then(function(X){P.status==="pending"&&(P.status="fulfilled",P.value=X)},function(X){P.status==="pending"&&(P.status="rejected",P.reason=X)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function q(P,X,A,ue,ge){var he=typeof P;(he==="undefined"||he==="boolean")&&(P=null);var Se=!1;if(P===null)Se=!0;else switch(he){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(P.$$typeof){case e:case t:Se=!0;break;case y:return Se=P._init,q(Se(P._payload),X,A,ue,ge)}}if(Se)return ge=ge(P),Se=ue===""?"."+le(P,0):ue,V(ge)?(A="",Se!=null&&(A=Se.replace(me,"$&/")+"/"),q(ge,X,A,"",function(Dt){return Dt})):ge!=null&&(Q(ge)&&(ge=N(ge,A+(ge.key==null||P&&P.key===ge.key?"":(""+ge.key).replace(me,"$&/")+"/")+Se)),X.push(ge)),1;Se=0;var Qe=ue===""?".":ue+":";if(V(P))for(var Me=0;Me<P.length;Me++)ue=P[Me],he=Qe+le(ue,Me),Se+=q(ue,X,A,he,ge);else if(Me=_(P),typeof Me=="function")for(P=Me.call(P),Me=0;!(ue=P.next()).done;)ue=ue.value,he=Qe+le(ue,Me++),Se+=q(ue,X,A,he,ge);else if(he==="object"){if(typeof P.then=="function")return q(ae(P),X,A,ue,ge);throw X=String(P),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Se}function te(P,X,A){if(P==null)return P;var ue=[],ge=0;return q(P,ue,"","",function(he){return X.call(A,he,ge++)}),ue}function fe(P){if(P._status===-1){var X=P._result;X=X(),X.then(function(A){(P._status===0||P._status===-1)&&(P._status=1,P._result=A)},function(A){(P._status===0||P._status===-1)&&(P._status=2,P._result=A)}),P._status===-1&&(P._status=0,P._result=X)}if(P._status===1)return P._result.default;throw P._result}var Ee=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)},j={map:te,forEach:function(P,X,A){te(P,function(){X.apply(this,arguments)},A)},count:function(P){var X=0;return te(P,function(){X++}),X},toArray:function(P){return te(P,function(X){return X})||[]},only:function(P){if(!Q(P))throw Error("React.Children.only expected to receive a single React element child.");return P}};return we.Activity=p,we.Children=j,we.Component=T,we.Fragment=n,we.Profiler=s,we.PureComponent=L,we.StrictMode=i,we.Suspense=h,we.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,we.__COMPILER_RUNTIME={__proto__:null,c:function(P){return U.H.useMemoCache(P)}},we.cache=function(P){return function(){return P.apply(null,arguments)}},we.cacheSignal=function(){return null},we.cloneElement=function(P,X,A){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var ue=E({},P.props),ge=P.key;if(X!=null)for(he in X.key!==void 0&&(ge=""+X.key),X)!$.call(X,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&X.ref===void 0||(ue[he]=X[he]);var he=arguments.length-2;if(he===1)ue.children=A;else if(1<he){for(var Se=Array(he),Qe=0;Qe<he;Qe++)Se[Qe]=arguments[Qe+2];ue.children=Se}return ne(P.type,ge,ue)},we.createContext=function(P){return P={$$typeof:u,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:o,_context:P},P},we.createElement=function(P,X,A){var ue,ge={},he=null;if(X!=null)for(ue in X.key!==void 0&&(he=""+X.key),X)$.call(X,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(ge[ue]=X[ue]);var Se=arguments.length-2;if(Se===1)ge.children=A;else if(1<Se){for(var Qe=Array(Se),Me=0;Me<Se;Me++)Qe[Me]=arguments[Me+2];ge.children=Qe}if(P&&P.defaultProps)for(ue in Se=P.defaultProps,Se)ge[ue]===void 0&&(ge[ue]=Se[ue]);return ne(P,he,ge)},we.createRef=function(){return{current:null}},we.forwardRef=function(P){return{$$typeof:f,render:P}},we.isValidElement=Q,we.lazy=function(P){return{$$typeof:y,_payload:{_status:-1,_result:P},_init:fe}},we.memo=function(P,X){return{$$typeof:d,type:P,compare:X===void 0?null:X}},we.startTransition=function(P){var X=U.T,A={};U.T=A;try{var ue=P(),ge=U.S;ge!==null&&ge(A,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(O,Ee)}catch(he){Ee(he)}finally{X!==null&&A.types!==null&&(X.types=A.types),U.T=X}},we.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},we.use=function(P){return U.H.use(P)},we.useActionState=function(P,X,A){return U.H.useActionState(P,X,A)},we.useCallback=function(P,X){return U.H.useCallback(P,X)},we.useContext=function(P){return U.H.useContext(P)},we.useDebugValue=function(){},we.useDeferredValue=function(P,X){return U.H.useDeferredValue(P,X)},we.useEffect=function(P,X){return U.H.useEffect(P,X)},we.useEffectEvent=function(P){return U.H.useEffectEvent(P)},we.useId=function(){return U.H.useId()},we.useImperativeHandle=function(P,X,A){return U.H.useImperativeHandle(P,X,A)},we.useInsertionEffect=function(P,X){return U.H.useInsertionEffect(P,X)},we.useLayoutEffect=function(P,X){return U.H.useLayoutEffect(P,X)},we.useMemo=function(P,X){return U.H.useMemo(P,X)},we.useOptimistic=function(P,X){return U.H.useOptimistic(P,X)},we.useReducer=function(P,X,A){return U.H.useReducer(P,X,A)},we.useRef=function(P){return U.H.useRef(P)},we.useState=function(P){return U.H.useState(P)},we.useSyncExternalStore=function(P,X,A){return U.H.useSyncExternalStore(P,X,A)},we.useTransition=function(){return U.H.useTransition()},we.version="19.2.0",we}var c0;function Po(){return c0||(c0=1,Qd.exports=YT()),Qd.exports}var $d={exports:{}},Mt={};/**
27
27
  * @license React
28
28
  * react-dom.production.js
29
29
  *
@@ -31,7 +31,7 @@ var IT=Object.defineProperty;var n0=e=>{throw TypeError(e)};var BT=(e,t,n)=>t in
31
31
  *
32
32
  * This source code is licensed under the MIT license found in the
33
33
  * LICENSE file in the root directory of this source tree.
34
- */var u0;function FT(){if(u0)return Mt;u0=1;var e=Po();function t(h){var d="https://react.dev/errors/"+h;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)d+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+d+" 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(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(h,d,y){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:p==null?null:""+p,children:h,containerInfo:d,implementation:y}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,d){if(h==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Mt.createPortal=function(h,d){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return o(h,d,null,y)},Mt.flushSync=function(h){var d=u.T,y=i.p;try{if(u.T=null,i.p=2,h)return h()}finally{u.T=d,i.p=y,i.d.f()}},Mt.preconnect=function(h,d){typeof h=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,i.d.C(h,d))},Mt.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},Mt.preinit=function(h,d){if(typeof h=="string"&&d&&typeof d.as=="string"){var y=d.as,p=f(y,d.crossOrigin),v=typeof d.integrity=="string"?d.integrity:void 0,_=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;y==="style"?i.d.S(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:v,fetchPriority:_}):y==="script"&&i.d.X(h,{crossOrigin:p,integrity:v,fetchPriority:_,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Mt.preinitModule=function(h,d){if(typeof h=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var y=f(d.as,d.crossOrigin);i.d.M(h,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&i.d.M(h)},Mt.preload=function(h,d){if(typeof h=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var y=d.as,p=f(y,d.crossOrigin);i.d.L(h,y,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Mt.preloadModule=function(h,d){if(typeof h=="string")if(d){var y=f(d.as,d.crossOrigin);i.d.m(h,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else i.d.m(h)},Mt.requestFormReset=function(h){i.d.r(h)},Mt.unstable_batchedUpdates=function(h,d){return h(d)},Mt.useFormState=function(h,d,y){return u.H.useFormState(h,d,y)},Mt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Mt.version="19.2.0",Mt}var c0;function kx(){if(c0)return Qd.exports;c0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Qd.exports=FT(),Qd.exports}/**
34
+ */var f0;function KT(){if(f0)return Mt;f0=1;var e=Po();function t(h){var d="https://react.dev/errors/"+h;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)d+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+d+" 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(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},s=Symbol.for("react.portal");function o(h,d,y){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:p==null?null:""+p,children:h,containerInfo:d,implementation:y}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,d){if(h==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Mt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Mt.createPortal=function(h,d){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return o(h,d,null,y)},Mt.flushSync=function(h){var d=u.T,y=i.p;try{if(u.T=null,i.p=2,h)return h()}finally{u.T=d,i.p=y,i.d.f()}},Mt.preconnect=function(h,d){typeof h=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,i.d.C(h,d))},Mt.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},Mt.preinit=function(h,d){if(typeof h=="string"&&d&&typeof d.as=="string"){var y=d.as,p=f(y,d.crossOrigin),v=typeof d.integrity=="string"?d.integrity:void 0,_=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;y==="style"?i.d.S(h,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:v,fetchPriority:_}):y==="script"&&i.d.X(h,{crossOrigin:p,integrity:v,fetchPriority:_,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Mt.preinitModule=function(h,d){if(typeof h=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var y=f(d.as,d.crossOrigin);i.d.M(h,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&i.d.M(h)},Mt.preload=function(h,d){if(typeof h=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var y=d.as,p=f(y,d.crossOrigin);i.d.L(h,y,{crossOrigin:p,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Mt.preloadModule=function(h,d){if(typeof h=="string")if(d){var y=f(d.as,d.crossOrigin);i.d.m(h,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else i.d.m(h)},Mt.requestFormReset=function(h){i.d.r(h)},Mt.unstable_batchedUpdates=function(h,d){return h(d)},Mt.useFormState=function(h,d,y){return u.H.useFormState(h,d,y)},Mt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Mt.version="19.2.0",Mt}var h0;function Cx(){if(h0)return $d.exports;h0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),$d.exports=KT(),$d.exports}/**
35
35
  * @license React
36
36
  * react-dom-client.production.js
37
37
  *
@@ -39,15 +39,15 @@ var IT=Object.defineProperty;var n0=e=>{throw TypeError(e)};var BT=(e,t,n)=>t in
39
39
  *
40
40
  * This source code is licensed under the MIT license found in the
41
41
  * LICENSE file in the root directory of this source tree.
42
- */var f0;function QT(){if(f0)return Zl;f0=1;var e=HT(),t=Po(),n=kx();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function o(r){var a=r,l=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(l=a.return),r=a.return;while(r)}return a.tag===3?l:null}function u(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function f(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function h(r){if(o(r)!==r)throw Error(i(188))}function d(r){var a=r.alternate;if(!a){if(a=o(r),a===null)throw Error(i(188));return a!==r?null:r}for(var l=r,c=a;;){var m=l.return;if(m===null)break;var g=m.alternate;if(g===null){if(c=m.return,c!==null){l=c;continue}break}if(m.child===g.child){for(g=m.child;g;){if(g===l)return h(m),r;if(g===c)return h(m),a;g=g.sibling}throw Error(i(188))}if(l.return!==c.return)l=m,c=g;else{for(var b=!1,T=m.child;T;){if(T===l){b=!0,l=m,c=g;break}if(T===c){b=!0,c=m,l=g;break}T=T.sibling}if(!b){for(T=g.child;T;){if(T===l){b=!0,l=g,c=m;break}if(T===c){b=!0,c=g,l=m;break}T=T.sibling}if(!b)throw Error(i(189))}}if(l.alternate!==c)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?r:a}function y(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=y(r),a!==null)return a;r=r.sibling}return null}var p=Object.assign,v=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),C=Symbol.for("react.consumer"),L=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),N=Symbol.for("react.memo_cache_sentinel"),Q=Symbol.iterator;function re(r){return r===null||typeof r!="object"?null:(r=Q&&r[Q]||r["@@iterator"],typeof r=="function"?r:null)}var me=Symbol.for("react.client.reference");function le(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===me?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case E:return"Fragment";case w:return"Profiler";case k:return"StrictMode";case B:return"Suspense";case A:return"SuspenseList";case ne:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case x:return"Portal";case L:return r.displayName||"Context";case C:return(r._context.displayName||"Context")+".Consumer";case z:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case q:return a=r.displayName||null,a!==null?a:le(r.type)||"Memo";case $:a=r._payload,r=r._init;try{return le(r(a))}catch{}}return null}var ae=Array.isArray,V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},Ee=[],j=-1;function P(r){return{current:r}}function X(r){0>j||(r.current=Ee[j],Ee[j]=null,j--)}function O(r,a){j++,Ee[j]=r.current,r.current=a}var ue=P(null),ge=P(null),he=P(null),Se=P(null);function Qe(r,a){switch(O(he,a),O(ge,r),O(ue,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?T_(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=T_(a),r=k_(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}X(ue),O(ue,r)}function Me(){X(ue),X(ge),X(he)}function Dt(r){r.memoizedState!==null&&O(Se,r);var a=ue.current,l=k_(a,r.type);a!==l&&(O(ge,r),O(ue,l))}function on(r){ge.current===r&&(X(ue),X(ge)),Se.current===r&&(X(Se),Ql._currentValue=fe)}var un,Na;function qn(r){if(un===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);un=a&&a[1]||"",Na=-1<l.stack.indexOf(`
42
+ */var d0;function XT(){if(d0)return Jl;d0=1;var e=$T(),t=Po(),n=Cx();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function o(r){var a=r,l=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(l=a.return),r=a.return;while(r)}return a.tag===3?l:null}function u(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function f(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function h(r){if(o(r)!==r)throw Error(i(188))}function d(r){var a=r.alternate;if(!a){if(a=o(r),a===null)throw Error(i(188));return a!==r?null:r}for(var l=r,c=a;;){var m=l.return;if(m===null)break;var g=m.alternate;if(g===null){if(c=m.return,c!==null){l=c;continue}break}if(m.child===g.child){for(g=m.child;g;){if(g===l)return h(m),r;if(g===c)return h(m),a;g=g.sibling}throw Error(i(188))}if(l.return!==c.return)l=m,c=g;else{for(var x=!1,w=m.child;w;){if(w===l){x=!0,l=m,c=g;break}if(w===c){x=!0,c=m,l=g;break}w=w.sibling}if(!x){for(w=g.child;w;){if(w===l){x=!0,l=g,c=m;break}if(w===c){x=!0,c=g,l=m;break}w=w.sibling}if(!x)throw Error(i(189))}}if(l.alternate!==c)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?r:a}function y(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=y(r),a!==null)return a;r=r.sibling}return null}var p=Object.assign,v=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),L=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),N=Symbol.for("react.memo_cache_sentinel"),Q=Symbol.iterator;function re(r){return r===null||typeof r!="object"?null:(r=Q&&r[Q]||r["@@iterator"],typeof r=="function"?r:null)}var me=Symbol.for("react.client.reference");function le(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===me?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case E:return"Fragment";case T:return"Profiler";case k:return"StrictMode";case V:return"Suspense";case O:return"SuspenseList";case ne:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case b:return"Portal";case L:return r.displayName||"Context";case R:return(r._context.displayName||"Context")+".Consumer";case z:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case U:return a=r.displayName||null,a!==null?a:le(r.type)||"Memo";case $:a=r._payload,r=r._init;try{return le(r(a))}catch{}}return null}var ae=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},Ee=[],j=-1;function P(r){return{current:r}}function X(r){0>j||(r.current=Ee[j],Ee[j]=null,j--)}function A(r,a){j++,Ee[j]=r.current,r.current=a}var ue=P(null),ge=P(null),he=P(null),Se=P(null);function Qe(r,a){switch(A(he,a),A(ge,r),A(ue,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?C_(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=C_(a),r=R_(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}X(ue),A(ue,r)}function Me(){X(ue),X(ge),X(he)}function Dt(r){r.memoizedState!==null&&A(Se,r);var a=ue.current,l=R_(a,r.type);a!==l&&(A(ge,r),A(ue,l))}function on(r){ge.current===r&&(X(ue),X(ge)),Se.current===r&&(X(Se),$l._currentValue=fe)}var un,Na;function qn(r){if(un===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);un=a&&a[1]||"",Na=-1<l.stack.indexOf(`
43
43
  at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
44
- `+un+r+Na}var dr=!1;function $r(r,a){if(!r||dr)return"";dr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(Y){var F=Y}Reflect.construct(r,[],ee)}else{try{ee.call()}catch(Y){F=Y}r.call(ee.prototype)}}else{try{throw Error()}catch(Y){F=Y}(ee=r())&&typeof ee.catch=="function"&&ee.catch(function(){})}}catch(Y){if(Y&&F&&typeof Y.stack=="string")return[Y.stack,F.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=c.DetermineComponentFrameRoot(),b=g[0],T=g[1];if(b&&T){var D=b.split(`
45
- `),G=T.split(`
44
+ `+un+r+Na}var dr=!1;function $r(r,a){if(!r||dr)return"";dr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(Y){var F=Y}Reflect.construct(r,[],ee)}else{try{ee.call()}catch(Y){F=Y}r.call(ee.prototype)}}else{try{throw Error()}catch(Y){F=Y}(ee=r())&&typeof ee.catch=="function"&&ee.catch(function(){})}}catch(Y){if(Y&&F&&typeof Y.stack=="string")return[Y.stack,F.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=c.DetermineComponentFrameRoot(),x=g[0],w=g[1];if(x&&w){var D=x.split(`
45
+ `),G=w.split(`
46
46
  `);for(m=c=0;c<D.length&&!D[c].includes("DetermineComponentFrameRoot");)c++;for(;m<G.length&&!G[m].includes("DetermineComponentFrameRoot");)m++;if(c===D.length||m===G.length)for(c=D.length-1,m=G.length-1;1<=c&&0<=m&&D[c]!==G[m];)m--;for(;1<=c&&0<=m;c--,m--)if(D[c]!==G[m]){if(c!==1||m!==1)do if(c--,m--,0>m||D[c]!==G[m]){var K=`
47
47
  `+D[c].replace(" at new "," at ");return r.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",r.displayName)),K}while(1<=c&&0<=m);break}}}finally{dr=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?qn(l):""}function ja(r,a){switch(r.tag){case 26:case 27:case 5:return qn(r.type);case 16:return qn("Lazy");case 13:return r.child!==a&&a!==null?qn("Suspense Fallback"):qn("Suspense");case 19:return qn("SuspenseList");case 0:case 15:return $r(r.type,!1);case 11:return $r(r.type.render,!1);case 1:return $r(r.type,!0);case 31:return qn("Activity");default:return""}}function Da(r){try{var a="",l=null;do a+=ja(r,l),l=r,r=r.return;while(r);return a}catch(c){return`
48
48
  Error generating stack: `+c.message+`
49
- `+c.stack}}var Vn=Object.prototype.hasOwnProperty,Hn=e.unstable_scheduleCallback,Yr=e.unstable_cancelCallback,Ma=e.unstable_shouldYield,Ue=e.unstable_requestPaint,Be=e.unstable_now,Ut=e.unstable_getCurrentPriorityLevel,Z=e.unstable_ImmediatePriority,oe=e.unstable_UserBlockingPriority,xe=e.unstable_NormalPriority,Ae=e.unstable_LowPriority,Ge=e.unstable_IdlePriority,cn=e.log,mr=e.unstable_setDisableYieldValue,qt=null,_t=null;function Kt(r){if(typeof cn=="function"&&mr(r),_t&&typeof _t.setStrictMode=="function")try{_t.setStrictMode(qt,r)}catch{}}var We=Math.clz32?Math.clz32:wE,Kr=Math.log,Gn=Math.LN2;function wE(r){return r>>>=0,r===0?32:31-(Kr(r)/Gn|0)|0}var Go=256,Fo=262144,Qo=4194304;function qi(r){var a=r&42;if(a!==0)return a;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function $o(r,a,l){var c=r.pendingLanes;if(c===0)return 0;var m=0,g=r.suspendedLanes,b=r.pingedLanes;r=r.warmLanes;var T=c&134217727;return T!==0?(c=T&~g,c!==0?m=qi(c):(b&=T,b!==0?m=qi(b):l||(l=T&~r,l!==0&&(m=qi(l))))):(T=c&~g,T!==0?m=qi(T):b!==0?m=qi(b):l||(l=c&~r,l!==0&&(m=qi(l)))),m===0?0:a!==0&&a!==m&&(a&g)===0&&(g=m&-m,l=a&-a,g>=l||g===32&&(l&4194048)!==0)?a:m}function al(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function TE(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 sg(){var r=Qo;return Qo<<=1,(Qo&62914560)===0&&(Qo=4194304),r}function Rf(r){for(var a=[],l=0;31>l;l++)a.push(r);return a}function sl(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function kE(r,a,l,c,m,g){var b=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var T=r.entanglements,D=r.expirationTimes,G=r.hiddenUpdates;for(l=b&~l;0<l;){var K=31-We(l),ee=1<<K;T[K]=0,D[K]=-1;var F=G[K];if(F!==null)for(G[K]=null,K=0;K<F.length;K++){var Y=F[K];Y!==null&&(Y.lane&=-536870913)}l&=~ee}c!==0&&lg(r,c,0),g!==0&&m===0&&r.tag!==0&&(r.suspendedLanes|=g&~(b&~a))}function lg(r,a,l){r.pendingLanes|=a,r.suspendedLanes&=~a;var c=31-We(a);r.entangledLanes|=a,r.entanglements[c]=r.entanglements[c]|1073741824|l&261930}function og(r,a){var l=r.entangledLanes|=a;for(r=r.entanglements;l;){var c=31-We(l),m=1<<c;m&a|r[c]&a&&(r[c]|=a),l&=~m}}function ug(r,a){var l=a&-a;return l=(l&42)!==0?1:Af(l),(l&(r.suspendedLanes|a))!==0?0:l}function Af(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Of(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function cg(){var r=te.p;return r!==0?r:(r=window.event,r===void 0?32:K_(r.type))}function fg(r,a){var l=te.p;try{return te.p=r,a()}finally{te.p=l}}var Xr=Math.random().toString(36).slice(2),At="__reactFiber$"+Xr,Xt="__reactProps$"+Xr,Pa="__reactContainer$"+Xr,Lf="__reactEvents$"+Xr,CE="__reactListeners$"+Xr,RE="__reactHandles$"+Xr,hg="__reactResources$"+Xr,ll="__reactMarker$"+Xr;function Nf(r){delete r[At],delete r[Xt],delete r[Lf],delete r[CE],delete r[RE]}function za(r){var a=r[At];if(a)return a;for(var l=r.parentNode;l;){if(a=l[Pa]||l[At]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(r=j_(r);r!==null;){if(l=r[At])return l;r=j_(r)}return a}r=l,l=r.parentNode}return null}function Ia(r){if(r=r[At]||r[Pa]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function ol(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function Ba(r){var a=r[hg];return a||(a=r[hg]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function wt(r){r[ll]=!0}var dg=new Set,mg={};function Vi(r,a){Ua(r,a),Ua(r+"Capture",a)}function Ua(r,a){for(mg[r]=a,r=0;r<a.length;r++)dg.add(a[r])}var AE=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]*$"),pg={},gg={};function OE(r){return Vn.call(gg,r)?!0:Vn.call(pg,r)?!1:AE.test(r)?gg[r]=!0:(pg[r]=!0,!1)}function Yo(r,a,l){if(OE(a))if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+l)}}function Ko(r,a,l){if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+l)}}function pr(r,a,l,c){if(c===null)r.removeAttribute(l);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttributeNS(a,l,""+c)}}function En(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function yg(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function LE(r,a,l){var c=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var m=c.get,g=c.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return m.call(this)},set:function(b){l=""+b,g.call(this,b)}}),Object.defineProperty(r,a,{enumerable:c.enumerable}),{getValue:function(){return l},setValue:function(b){l=""+b},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function jf(r){if(!r._valueTracker){var a=yg(r)?"checked":"value";r._valueTracker=LE(r,a,""+r[a])}}function vg(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var l=a.getValue(),c="";return r&&(c=yg(r)?r.checked?"true":"false":r.value),r=c,r!==l?(a.setValue(r),!0):!1}function Xo(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var NE=/[\n"\\]/g;function wn(r){return r.replace(NE,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Df(r,a,l,c,m,g,b,T){r.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?r.type=b:r.removeAttribute("type"),a!=null?b==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+En(a)):r.value!==""+En(a)&&(r.value=""+En(a)):b!=="submit"&&b!=="reset"||r.removeAttribute("value"),a!=null?Mf(r,b,En(a)):l!=null?Mf(r,b,En(l)):c!=null&&r.removeAttribute("value"),m==null&&g!=null&&(r.defaultChecked=!!g),m!=null&&(r.checked=m&&typeof m!="function"&&typeof m!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?r.name=""+En(T):r.removeAttribute("name")}function _g(r,a,l,c,m,g,b,T){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(r.type=g),a!=null||l!=null){if(!(g!=="submit"&&g!=="reset"||a!=null)){jf(r);return}l=l!=null?""+En(l):"",a=a!=null?""+En(a):l,T||a===r.value||(r.value=a),r.defaultValue=a}c=c??m,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=T?r.checked:!!c,r.defaultChecked=!!c,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(r.name=b),jf(r)}function Mf(r,a,l){a==="number"&&Xo(r.ownerDocument)===r||r.defaultValue===""+l||(r.defaultValue=""+l)}function qa(r,a,l,c){if(r=r.options,a){a={};for(var m=0;m<l.length;m++)a["$"+l[m]]=!0;for(l=0;l<r.length;l++)m=a.hasOwnProperty("$"+r[l].value),r[l].selected!==m&&(r[l].selected=m),m&&c&&(r[l].defaultSelected=!0)}else{for(l=""+En(l),a=null,m=0;m<r.length;m++){if(r[m].value===l){r[m].selected=!0,c&&(r[m].defaultSelected=!0);return}a!==null||r[m].disabled||(a=r[m])}a!==null&&(a.selected=!0)}}function bg(r,a,l){if(a!=null&&(a=""+En(a),a!==r.value&&(r.value=a),l==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=l!=null?""+En(l):""}function xg(r,a,l,c){if(a==null){if(c!=null){if(l!=null)throw Error(i(92));if(ae(c)){if(1<c.length)throw Error(i(93));c=c[0]}l=c}l==null&&(l=""),a=l}l=En(a),r.defaultValue=l,c=r.textContent,c===l&&c!==""&&c!==null&&(r.value=c),jf(r)}function Va(r,a){if(a){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=a;return}}r.textContent=a}var jE=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 Sg(r,a,l){var c=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?c?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":c?r.setProperty(a,l):typeof l!="number"||l===0||jE.has(a)?a==="float"?r.cssFloat=l:r[a]=(""+l).trim():r[a]=l+"px"}function Eg(r,a,l){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,l!=null){for(var c in l)!l.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?r.setProperty(c,""):c==="float"?r.cssFloat="":r[c]="");for(var m in a)c=a[m],a.hasOwnProperty(m)&&l[m]!==c&&Sg(r,m,c)}else for(var g in a)a.hasOwnProperty(g)&&Sg(r,g,a[g])}function Pf(r){if(r.indexOf("-")===-1)return!1;switch(r){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 DE=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"]]),ME=/^[\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 Zo(r){return ME.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function gr(){}var zf=null;function If(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ha=null,Ga=null;function wg(r){var a=Ia(r);if(a&&(r=a.stateNode)){var l=r[Xt]||null;e:switch(r=a.stateNode,a.type){case"input":if(Df(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+wn(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var c=l[a];if(c!==r&&c.form===r.form){var m=c[Xt]||null;if(!m)throw Error(i(90));Df(c,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(a=0;a<l.length;a++)c=l[a],c.form===r.form&&vg(c)}break e;case"textarea":bg(r,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&qa(r,!!l.multiple,a,!1)}}}var Bf=!1;function Tg(r,a,l){if(Bf)return r(a,l);Bf=!0;try{var c=r(a);return c}finally{if(Bf=!1,(Ha!==null||Ga!==null)&&(Iu(),Ha&&(a=Ha,r=Ga,Ga=Ha=null,wg(a),r)))for(a=0;a<r.length;a++)wg(r[a])}}function ul(r,a){var l=r.stateNode;if(l===null)return null;var c=l[Xt]||null;if(c===null)return null;l=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(i(231,a,typeof l));return l}var yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uf=!1;if(yr)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){Uf=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{Uf=!1}var Zr=null,qf=null,Jo=null;function kg(){if(Jo)return Jo;var r,a=qf,l=a.length,c,m="value"in Zr?Zr.value:Zr.textContent,g=m.length;for(r=0;r<l&&a[r]===m[r];r++);var b=l-r;for(c=1;c<=b&&a[l-c]===m[g-c];c++);return Jo=m.slice(r,1<c?1-c:void 0)}function Wo(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function eu(){return!0}function Cg(){return!1}function Zt(r){function a(l,c,m,g,b){this._reactName=l,this._targetInst=m,this.type=c,this.nativeEvent=g,this.target=b,this.currentTarget=null;for(var T in r)r.hasOwnProperty(T)&&(l=r[T],this[T]=l?l(g):g[T]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?eu:Cg,this.isPropagationStopped=Cg,this}return p(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=eu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=eu)},persist:function(){},isPersistent:eu}),a}var Hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tu=Zt(Hi),fl=p({},Hi,{view:0,detail:0}),PE=Zt(fl),Vf,Hf,hl,nu=p({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ff,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==hl&&(hl&&r.type==="mousemove"?(Vf=r.screenX-hl.screenX,Hf=r.screenY-hl.screenY):Hf=Vf=0,hl=r),Vf)},movementY:function(r){return"movementY"in r?r.movementY:Hf}}),Rg=Zt(nu),zE=p({},nu,{dataTransfer:0}),IE=Zt(zE),BE=p({},fl,{relatedTarget:0}),Gf=Zt(BE),UE=p({},Hi,{animationName:0,elapsedTime:0,pseudoElement:0}),qE=Zt(UE),VE=p({},Hi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),HE=Zt(VE),GE=p({},Hi,{data:0}),Ag=Zt(GE),FE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},QE={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"},$E={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function YE(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=$E[r])?!!a[r]:!1}function Ff(){return YE}var KE=p({},fl,{key:function(r){if(r.key){var a=FE[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=Wo(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?QE[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ff,charCode:function(r){return r.type==="keypress"?Wo(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Wo(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),XE=Zt(KE),ZE=p({},nu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Og=Zt(ZE),JE=p({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ff}),WE=Zt(JE),ew=p({},Hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),tw=Zt(ew),nw=p({},nu,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),rw=Zt(nw),iw=p({},Hi,{newState:0,oldState:0}),aw=Zt(iw),sw=[9,13,27,32],Qf=yr&&"CompositionEvent"in window,dl=null;yr&&"documentMode"in document&&(dl=document.documentMode);var lw=yr&&"TextEvent"in window&&!dl,Lg=yr&&(!Qf||dl&&8<dl&&11>=dl),Ng=" ",jg=!1;function Dg(r,a){switch(r){case"keyup":return sw.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Fa=!1;function ow(r,a){switch(r){case"compositionend":return Mg(a);case"keypress":return a.which!==32?null:(jg=!0,Ng);case"textInput":return r=a.data,r===Ng&&jg?null:r;default:return null}}function uw(r,a){if(Fa)return r==="compositionend"||!Qf&&Dg(r,a)?(r=kg(),Jo=qf=Zr=null,Fa=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Lg&&a.locale!=="ko"?null:a.data;default:return null}}var cw={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 Pg(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!cw[r.type]:a==="textarea"}function zg(r,a,l,c){Ha?Ga?Ga.push(c):Ga=[c]:Ha=c,a=Fu(a,"onChange"),0<a.length&&(l=new tu("onChange","change",null,l,c),r.push({event:l,listeners:a}))}var ml=null,pl=null;function fw(r){__(r,0)}function ru(r){var a=ol(r);if(vg(a))return r}function Ig(r,a){if(r==="change")return a}var Bg=!1;if(yr){var $f;if(yr){var Yf="oninput"in document;if(!Yf){var Ug=document.createElement("div");Ug.setAttribute("oninput","return;"),Yf=typeof Ug.oninput=="function"}$f=Yf}else $f=!1;Bg=$f&&(!document.documentMode||9<document.documentMode)}function qg(){ml&&(ml.detachEvent("onpropertychange",Vg),pl=ml=null)}function Vg(r){if(r.propertyName==="value"&&ru(pl)){var a=[];zg(a,pl,r,If(r)),Tg(fw,a)}}function hw(r,a,l){r==="focusin"?(qg(),ml=a,pl=l,ml.attachEvent("onpropertychange",Vg)):r==="focusout"&&qg()}function dw(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ru(pl)}function mw(r,a){if(r==="click")return ru(a)}function pw(r,a){if(r==="input"||r==="change")return ru(a)}function gw(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var fn=typeof Object.is=="function"?Object.is:gw;function gl(r,a){if(fn(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var l=Object.keys(r),c=Object.keys(a);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var m=l[c];if(!Vn.call(a,m)||!fn(r[m],a[m]))return!1}return!0}function Hg(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Gg(r,a){var l=Hg(r);r=0;for(var c;l;){if(l.nodeType===3){if(c=r+l.textContent.length,r<=a&&c>=a)return{node:l,offset:a-r};r=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Hg(l)}}function Fg(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Fg(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Qg(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=Xo(r.document);a instanceof r.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)r=a.contentWindow;else break;a=Xo(r.document)}return a}function Kf(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var yw=yr&&"documentMode"in document&&11>=document.documentMode,Qa=null,Xf=null,yl=null,Zf=!1;function $g(r,a,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Zf||Qa==null||Qa!==Xo(c)||(c=Qa,"selectionStart"in c&&Kf(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),yl&&gl(yl,c)||(yl=c,c=Fu(Xf,"onSelect"),0<c.length&&(a=new tu("onSelect","select",null,a,l),r.push({event:a,listeners:c}),a.target=Qa)))}function Gi(r,a){var l={};return l[r.toLowerCase()]=a.toLowerCase(),l["Webkit"+r]="webkit"+a,l["Moz"+r]="moz"+a,l}var $a={animationend:Gi("Animation","AnimationEnd"),animationiteration:Gi("Animation","AnimationIteration"),animationstart:Gi("Animation","AnimationStart"),transitionrun:Gi("Transition","TransitionRun"),transitionstart:Gi("Transition","TransitionStart"),transitioncancel:Gi("Transition","TransitionCancel"),transitionend:Gi("Transition","TransitionEnd")},Jf={},Yg={};yr&&(Yg=document.createElement("div").style,"AnimationEvent"in window||(delete $a.animationend.animation,delete $a.animationiteration.animation,delete $a.animationstart.animation),"TransitionEvent"in window||delete $a.transitionend.transition);function Fi(r){if(Jf[r])return Jf[r];if(!$a[r])return r;var a=$a[r],l;for(l in a)if(a.hasOwnProperty(l)&&l in Yg)return Jf[r]=a[l];return r}var Kg=Fi("animationend"),Xg=Fi("animationiteration"),Zg=Fi("animationstart"),vw=Fi("transitionrun"),_w=Fi("transitionstart"),bw=Fi("transitioncancel"),Jg=Fi("transitionend"),Wg=new Map,Wf="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(" ");Wf.push("scrollEnd");function Fn(r,a){Wg.set(r,a),Vi(a,[r])}var iu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Tn=[],Ya=0,eh=0;function au(){for(var r=Ya,a=eh=Ya=0;a<r;){var l=Tn[a];Tn[a++]=null;var c=Tn[a];Tn[a++]=null;var m=Tn[a];Tn[a++]=null;var g=Tn[a];if(Tn[a++]=null,c!==null&&m!==null){var b=c.pending;b===null?m.next=m:(m.next=b.next,b.next=m),c.pending=m}g!==0&&ey(l,m,g)}}function su(r,a,l,c){Tn[Ya++]=r,Tn[Ya++]=a,Tn[Ya++]=l,Tn[Ya++]=c,eh|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function th(r,a,l,c){return su(r,a,l,c),lu(r)}function Qi(r,a){return su(r,null,null,a),lu(r)}function ey(r,a,l){r.lanes|=l;var c=r.alternate;c!==null&&(c.lanes|=l);for(var m=!1,g=r.return;g!==null;)g.childLanes|=l,c=g.alternate,c!==null&&(c.childLanes|=l),g.tag===22&&(r=g.stateNode,r===null||r._visibility&1||(m=!0)),r=g,g=g.return;return r.tag===3?(g=r.stateNode,m&&a!==null&&(m=31-We(l),r=g.hiddenUpdates,c=r[m],c===null?r[m]=[a]:c.push(a),a.lane=l|536870912),g):null}function lu(r){if(50<Bl)throw Bl=0,cd=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var Ka={};function xw(r,a,l,c){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hn(r,a,l,c){return new xw(r,a,l,c)}function nh(r){return r=r.prototype,!(!r||!r.isReactComponent)}function vr(r,a){var l=r.alternate;return l===null?(l=hn(r.tag,a,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=a,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&65011712,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,a=r.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.refCleanup=r.refCleanup,l}function ty(r,a){r.flags&=65011714;var l=r.alternate;return l===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,a=l.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function ou(r,a,l,c,m,g){var b=0;if(c=r,typeof r=="function")nh(r)&&(b=1);else if(typeof r=="string")b=kT(r,l,ue.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case ne:return r=hn(31,l,a,m),r.elementType=ne,r.lanes=g,r;case E:return $i(l.children,m,g,a);case k:b=8,m|=24;break;case w:return r=hn(12,l,a,m|2),r.elementType=w,r.lanes=g,r;case B:return r=hn(13,l,a,m),r.elementType=B,r.lanes=g,r;case A:return r=hn(19,l,a,m),r.elementType=A,r.lanes=g,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case L:b=10;break e;case C:b=9;break e;case z:b=11;break e;case q:b=14;break e;case $:b=16,c=null;break e}b=29,l=Error(i(130,r===null?"null":typeof r,"")),c=null}return a=hn(b,l,a,m),a.elementType=r,a.type=c,a.lanes=g,a}function $i(r,a,l,c){return r=hn(7,r,c,a),r.lanes=l,r}function rh(r,a,l){return r=hn(6,r,null,a),r.lanes=l,r}function ny(r){var a=hn(18,null,null,0);return a.stateNode=r,a}function ih(r,a,l){return a=hn(4,r.children!==null?r.children:[],r.key,a),a.lanes=l,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var ry=new WeakMap;function kn(r,a){if(typeof r=="object"&&r!==null){var l=ry.get(r);return l!==void 0?l:(a={value:r,source:a,stack:Da(a)},ry.set(r,a),a)}return{value:r,source:a,stack:Da(a)}}var Xa=[],Za=0,uu=null,vl=0,Cn=[],Rn=0,Jr=null,Wn=1,er="";function _r(r,a){Xa[Za++]=vl,Xa[Za++]=uu,uu=r,vl=a}function iy(r,a,l){Cn[Rn++]=Wn,Cn[Rn++]=er,Cn[Rn++]=Jr,Jr=r;var c=Wn;r=er;var m=32-We(c)-1;c&=~(1<<m),l+=1;var g=32-We(a)+m;if(30<g){var b=m-m%5;g=(c&(1<<b)-1).toString(32),c>>=b,m-=b,Wn=1<<32-We(a)+m|l<<m|c,er=g+r}else Wn=1<<g|l<<m|c,er=r}function ah(r){r.return!==null&&(_r(r,1),iy(r,1,0))}function sh(r){for(;r===uu;)uu=Xa[--Za],Xa[Za]=null,vl=Xa[--Za],Xa[Za]=null;for(;r===Jr;)Jr=Cn[--Rn],Cn[Rn]=null,er=Cn[--Rn],Cn[Rn]=null,Wn=Cn[--Rn],Cn[Rn]=null}function ay(r,a){Cn[Rn++]=Wn,Cn[Rn++]=er,Cn[Rn++]=Jr,Wn=a.id,er=a.overflow,Jr=r}var Ot=null,rt=null,Pe=!1,Wr=null,An=!1,lh=Error(i(519));function ei(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _l(kn(a,r)),lh}function sy(r){var a=r.stateNode,l=r.type,c=r.memoizedProps;switch(a[At]=r,a[Xt]=c,l){case"dialog":Le("cancel",a),Le("close",a);break;case"iframe":case"object":case"embed":Le("load",a);break;case"video":case"audio":for(l=0;l<ql.length;l++)Le(ql[l],a);break;case"source":Le("error",a);break;case"img":case"image":case"link":Le("error",a),Le("load",a);break;case"details":Le("toggle",a);break;case"input":Le("invalid",a),_g(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Le("invalid",a);break;case"textarea":Le("invalid",a),xg(a,c.value,c.defaultValue,c.children)}l=c.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||c.suppressHydrationWarning===!0||E_(a.textContent,l)?(c.popover!=null&&(Le("beforetoggle",a),Le("toggle",a)),c.onScroll!=null&&Le("scroll",a),c.onScrollEnd!=null&&Le("scrollend",a),c.onClick!=null&&(a.onclick=gr),a=!0):a=!1,a||ei(r,!0)}function ly(r){for(Ot=r.return;Ot;)switch(Ot.tag){case 5:case 31:case 13:An=!1;return;case 27:case 3:An=!0;return;default:Ot=Ot.return}}function Ja(r){if(r!==Ot)return!1;if(!Pe)return ly(r),Pe=!0,!1;var a=r.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=r.type,l=!(l!=="form"&&l!=="button")||Td(r.type,r.memoizedProps)),l=!l),l&&rt&&ei(r),ly(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));rt=N_(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));rt=N_(r)}else a===27?(a=rt,mi(r.type)?(r=Od,Od=null,rt=r):rt=a):rt=Ot?Ln(r.stateNode.nextSibling):null;return!0}function Yi(){rt=Ot=null,Pe=!1}function oh(){var r=Wr;return r!==null&&(tn===null?tn=r:tn.push.apply(tn,r),Wr=null),r}function _l(r){Wr===null?Wr=[r]:Wr.push(r)}var uh=P(null),Ki=null,br=null;function ti(r,a,l){O(uh,a._currentValue),a._currentValue=l}function xr(r){r._currentValue=uh.current,X(uh)}function ch(r,a,l){for(;r!==null;){var c=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),r===l)break;r=r.return}}function fh(r,a,l,c){var m=r.child;for(m!==null&&(m.return=r);m!==null;){var g=m.dependencies;if(g!==null){var b=m.child;g=g.firstContext;e:for(;g!==null;){var T=g;g=m;for(var D=0;D<a.length;D++)if(T.context===a[D]){g.lanes|=l,T=g.alternate,T!==null&&(T.lanes|=l),ch(g.return,l,r),c||(b=null);break e}g=T.next}}else if(m.tag===18){if(b=m.return,b===null)throw Error(i(341));b.lanes|=l,g=b.alternate,g!==null&&(g.lanes|=l),ch(b,l,r),b=null}else b=m.child;if(b!==null)b.return=m;else for(b=m;b!==null;){if(b===r){b=null;break}if(m=b.sibling,m!==null){m.return=b.return,b=m;break}b=b.return}m=b}}function Wa(r,a,l,c){r=null;for(var m=a,g=!1;m!==null;){if(!g){if((m.flags&524288)!==0)g=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var b=m.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var T=m.type;fn(m.pendingProps.value,b.value)||(r!==null?r.push(T):r=[T])}}else if(m===Se.current){if(b=m.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(r!==null?r.push(Ql):r=[Ql])}m=m.return}r!==null&&fh(a,r,l,c),a.flags|=262144}function cu(r){for(r=r.firstContext;r!==null;){if(!fn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Xi(r){Ki=r,br=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Lt(r){return oy(Ki,r)}function fu(r,a){return Ki===null&&Xi(r),oy(r,a)}function oy(r,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},br===null){if(r===null)throw Error(i(308));br=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else br=br.next=a;return l}var Sw=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(l,c){r.push(c)}};this.abort=function(){a.aborted=!0,r.forEach(function(l){return l()})}},Ew=e.unstable_scheduleCallback,ww=e.unstable_NormalPriority,dt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hh(){return{controller:new Sw,data:new Map,refCount:0}}function bl(r){r.refCount--,r.refCount===0&&Ew(ww,function(){r.controller.abort()})}var xl=null,dh=0,es=0,ts=null;function Tw(r,a){if(xl===null){var l=xl=[];dh=0,es=gd(),ts={status:"pending",value:void 0,then:function(c){l.push(c)}}}return dh++,a.then(uy,uy),a}function uy(){if(--dh===0&&xl!==null){ts!==null&&(ts.status="fulfilled");var r=xl;xl=null,es=0,ts=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function kw(r,a){var l=[],c={status:"pending",value:null,reason:null,then:function(m){l.push(m)}};return r.then(function(){c.status="fulfilled",c.value=a;for(var m=0;m<l.length;m++)(0,l[m])(a)},function(m){for(c.status="rejected",c.reason=m,m=0;m<l.length;m++)(0,l[m])(void 0)}),c}var cy=V.S;V.S=function(r,a){$v=Be(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&Tw(r,a),cy!==null&&cy(r,a)};var Zi=P(null);function mh(){var r=Zi.current;return r!==null?r:et.pooledCache}function hu(r,a){a===null?O(Zi,Zi.current):O(Zi,a.pool)}function fy(){var r=mh();return r===null?null:{parent:dt._currentValue,pool:r}}var ns=Error(i(460)),ph=Error(i(474)),du=Error(i(542)),mu={then:function(){}};function hy(r){return r=r.status,r==="fulfilled"||r==="rejected"}function dy(r,a,l){switch(l=r[l],l===void 0?r.push(a):l!==a&&(a.then(gr,gr),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,py(r),r;default:if(typeof a.status=="string")a.then(gr,gr);else{if(r=et,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(c){if(a.status==="pending"){var m=a;m.status="fulfilled",m.value=c}},function(c){if(a.status==="pending"){var m=a;m.status="rejected",m.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,py(r),r}throw Wi=a,ns}}function Ji(r){try{var a=r._init;return a(r._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Wi=l,ns):l}}var Wi=null;function my(){if(Wi===null)throw Error(i(459));var r=Wi;return Wi=null,r}function py(r){if(r===ns||r===du)throw Error(i(483))}var rs=null,Sl=0;function pu(r){var a=Sl;return Sl+=1,rs===null&&(rs=[]),dy(rs,r,a)}function El(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function gu(r,a){throw a.$$typeof===v?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function gy(r){function a(U,I){if(r){var H=U.deletions;H===null?(U.deletions=[I],U.flags|=16):H.push(I)}}function l(U,I){if(!r)return null;for(;I!==null;)a(U,I),I=I.sibling;return null}function c(U){for(var I=new Map;U!==null;)U.key!==null?I.set(U.key,U):I.set(U.index,U),U=U.sibling;return I}function m(U,I){return U=vr(U,I),U.index=0,U.sibling=null,U}function g(U,I,H){return U.index=H,r?(H=U.alternate,H!==null?(H=H.index,H<I?(U.flags|=67108866,I):H):(U.flags|=67108866,I)):(U.flags|=1048576,I)}function b(U){return r&&U.alternate===null&&(U.flags|=67108866),U}function T(U,I,H,J){return I===null||I.tag!==6?(I=rh(H,U.mode,J),I.return=U,I):(I=m(I,H),I.return=U,I)}function D(U,I,H,J){var ve=H.type;return ve===E?K(U,I,H.props.children,J,H.key):I!==null&&(I.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===$&&Ji(ve)===I.type)?(I=m(I,H.props),El(I,H),I.return=U,I):(I=ou(H.type,H.key,H.props,null,U.mode,J),El(I,H),I.return=U,I)}function G(U,I,H,J){return I===null||I.tag!==4||I.stateNode.containerInfo!==H.containerInfo||I.stateNode.implementation!==H.implementation?(I=ih(H,U.mode,J),I.return=U,I):(I=m(I,H.children||[]),I.return=U,I)}function K(U,I,H,J,ve){return I===null||I.tag!==7?(I=$i(H,U.mode,J,ve),I.return=U,I):(I=m(I,H),I.return=U,I)}function ee(U,I,H){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=rh(""+I,U.mode,H),I.return=U,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case _:return H=ou(I.type,I.key,I.props,null,U.mode,H),El(H,I),H.return=U,H;case x:return I=ih(I,U.mode,H),I.return=U,I;case $:return I=Ji(I),ee(U,I,H)}if(ae(I)||re(I))return I=$i(I,U.mode,H,null),I.return=U,I;if(typeof I.then=="function")return ee(U,pu(I),H);if(I.$$typeof===L)return ee(U,fu(U,I),H);gu(U,I)}return null}function F(U,I,H,J){var ve=I!==null?I.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return ve!==null?null:T(U,I,""+H,J);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case _:return H.key===ve?D(U,I,H,J):null;case x:return H.key===ve?G(U,I,H,J):null;case $:return H=Ji(H),F(U,I,H,J)}if(ae(H)||re(H))return ve!==null?null:K(U,I,H,J,null);if(typeof H.then=="function")return F(U,I,pu(H),J);if(H.$$typeof===L)return F(U,I,fu(U,H),J);gu(U,H)}return null}function Y(U,I,H,J,ve){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return U=U.get(H)||null,T(I,U,""+J,ve);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case _:return U=U.get(J.key===null?H:J.key)||null,D(I,U,J,ve);case x:return U=U.get(J.key===null?H:J.key)||null,G(I,U,J,ve);case $:return J=Ji(J),Y(U,I,H,J,ve)}if(ae(J)||re(J))return U=U.get(H)||null,K(I,U,J,ve,null);if(typeof J.then=="function")return Y(U,I,H,pu(J),ve);if(J.$$typeof===L)return Y(U,I,H,fu(I,J),ve);gu(I,J)}return null}function de(U,I,H,J){for(var ve=null,qe=null,pe=I,ke=I=0,De=null;pe!==null&&ke<H.length;ke++){pe.index>ke?(De=pe,pe=null):De=pe.sibling;var Ve=F(U,pe,H[ke],J);if(Ve===null){pe===null&&(pe=De);break}r&&pe&&Ve.alternate===null&&a(U,pe),I=g(Ve,I,ke),qe===null?ve=Ve:qe.sibling=Ve,qe=Ve,pe=De}if(ke===H.length)return l(U,pe),Pe&&_r(U,ke),ve;if(pe===null){for(;ke<H.length;ke++)pe=ee(U,H[ke],J),pe!==null&&(I=g(pe,I,ke),qe===null?ve=pe:qe.sibling=pe,qe=pe);return Pe&&_r(U,ke),ve}for(pe=c(pe);ke<H.length;ke++)De=Y(pe,U,ke,H[ke],J),De!==null&&(r&&De.alternate!==null&&pe.delete(De.key===null?ke:De.key),I=g(De,I,ke),qe===null?ve=De:qe.sibling=De,qe=De);return r&&pe.forEach(function(_i){return a(U,_i)}),Pe&&_r(U,ke),ve}function be(U,I,H,J){if(H==null)throw Error(i(151));for(var ve=null,qe=null,pe=I,ke=I=0,De=null,Ve=H.next();pe!==null&&!Ve.done;ke++,Ve=H.next()){pe.index>ke?(De=pe,pe=null):De=pe.sibling;var _i=F(U,pe,Ve.value,J);if(_i===null){pe===null&&(pe=De);break}r&&pe&&_i.alternate===null&&a(U,pe),I=g(_i,I,ke),qe===null?ve=_i:qe.sibling=_i,qe=_i,pe=De}if(Ve.done)return l(U,pe),Pe&&_r(U,ke),ve;if(pe===null){for(;!Ve.done;ke++,Ve=H.next())Ve=ee(U,Ve.value,J),Ve!==null&&(I=g(Ve,I,ke),qe===null?ve=Ve:qe.sibling=Ve,qe=Ve);return Pe&&_r(U,ke),ve}for(pe=c(pe);!Ve.done;ke++,Ve=H.next())Ve=Y(pe,U,ke,Ve.value,J),Ve!==null&&(r&&Ve.alternate!==null&&pe.delete(Ve.key===null?ke:Ve.key),I=g(Ve,I,ke),qe===null?ve=Ve:qe.sibling=Ve,qe=Ve);return r&&pe.forEach(function(zT){return a(U,zT)}),Pe&&_r(U,ke),ve}function Je(U,I,H,J){if(typeof H=="object"&&H!==null&&H.type===E&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case _:e:{for(var ve=H.key;I!==null;){if(I.key===ve){if(ve=H.type,ve===E){if(I.tag===7){l(U,I.sibling),J=m(I,H.props.children),J.return=U,U=J;break e}}else if(I.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===$&&Ji(ve)===I.type){l(U,I.sibling),J=m(I,H.props),El(J,H),J.return=U,U=J;break e}l(U,I);break}else a(U,I);I=I.sibling}H.type===E?(J=$i(H.props.children,U.mode,J,H.key),J.return=U,U=J):(J=ou(H.type,H.key,H.props,null,U.mode,J),El(J,H),J.return=U,U=J)}return b(U);case x:e:{for(ve=H.key;I!==null;){if(I.key===ve)if(I.tag===4&&I.stateNode.containerInfo===H.containerInfo&&I.stateNode.implementation===H.implementation){l(U,I.sibling),J=m(I,H.children||[]),J.return=U,U=J;break e}else{l(U,I);break}else a(U,I);I=I.sibling}J=ih(H,U.mode,J),J.return=U,U=J}return b(U);case $:return H=Ji(H),Je(U,I,H,J)}if(ae(H))return de(U,I,H,J);if(re(H)){if(ve=re(H),typeof ve!="function")throw Error(i(150));return H=ve.call(H),be(U,I,H,J)}if(typeof H.then=="function")return Je(U,I,pu(H),J);if(H.$$typeof===L)return Je(U,I,fu(U,H),J);gu(U,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,I!==null&&I.tag===6?(l(U,I.sibling),J=m(I,H),J.return=U,U=J):(l(U,I),J=rh(H,U.mode,J),J.return=U,U=J),b(U)):l(U,I)}return function(U,I,H,J){try{Sl=0;var ve=Je(U,I,H,J);return rs=null,ve}catch(pe){if(pe===ns||pe===du)throw pe;var qe=hn(29,pe,null,U.mode);return qe.lanes=J,qe.return=U,qe}finally{}}}var ea=gy(!0),yy=gy(!1),ni=!1;function gh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yh(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ri(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function ii(r,a,l){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(He&2)!==0){var m=c.pending;return m===null?a.next=a:(a.next=m.next,m.next=a),c.pending=a,a=lu(r),ey(r,null,l),a}return su(r,c,a,l),lu(r)}function wl(r,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var c=a.lanes;c&=r.pendingLanes,l|=c,a.lanes=l,og(r,l)}}function vh(r,a){var l=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var m=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var b={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};g===null?m=g=b:g=g.next=b,l=l.next}while(l!==null);g===null?m=g=a:g=g.next=a}else m=g=a;l={baseState:c.baseState,firstBaseUpdate:m,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=a:r.next=a,l.lastBaseUpdate=a}var _h=!1;function Tl(){if(_h){var r=ts;if(r!==null)throw r}}function kl(r,a,l,c){_h=!1;var m=r.updateQueue;ni=!1;var g=m.firstBaseUpdate,b=m.lastBaseUpdate,T=m.shared.pending;if(T!==null){m.shared.pending=null;var D=T,G=D.next;D.next=null,b===null?g=G:b.next=G,b=D;var K=r.alternate;K!==null&&(K=K.updateQueue,T=K.lastBaseUpdate,T!==b&&(T===null?K.firstBaseUpdate=G:T.next=G,K.lastBaseUpdate=D))}if(g!==null){var ee=m.baseState;b=0,K=G=D=null,T=g;do{var F=T.lane&-536870913,Y=F!==T.lane;if(Y?(je&F)===F:(c&F)===F){F!==0&&F===es&&(_h=!0),K!==null&&(K=K.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var de=r,be=T;F=a;var Je=l;switch(be.tag){case 1:if(de=be.payload,typeof de=="function"){ee=de.call(Je,ee,F);break e}ee=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=be.payload,F=typeof de=="function"?de.call(Je,ee,F):de,F==null)break e;ee=p({},ee,F);break e;case 2:ni=!0}}F=T.callback,F!==null&&(r.flags|=64,Y&&(r.flags|=8192),Y=m.callbacks,Y===null?m.callbacks=[F]:Y.push(F))}else Y={lane:F,tag:T.tag,payload:T.payload,callback:T.callback,next:null},K===null?(G=K=Y,D=ee):K=K.next=Y,b|=F;if(T=T.next,T===null){if(T=m.shared.pending,T===null)break;Y=T,T=Y.next,Y.next=null,m.lastBaseUpdate=Y,m.shared.pending=null}}while(!0);K===null&&(D=ee),m.baseState=D,m.firstBaseUpdate=G,m.lastBaseUpdate=K,g===null&&(m.shared.lanes=0),ui|=b,r.lanes=b,r.memoizedState=ee}}function vy(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function _y(r,a){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)vy(l[r],a)}var is=P(null),yu=P(0);function by(r,a){r=Or,O(yu,r),O(is,a),Or=r|a.baseLanes}function bh(){O(yu,Or),O(is,is.current)}function xh(){Or=yu.current,X(is),X(yu)}var dn=P(null),On=null;function ai(r){var a=r.alternate;O(ct,ct.current&1),O(dn,r),On===null&&(a===null||is.current!==null||a.memoizedState!==null)&&(On=r)}function Sh(r){O(ct,ct.current),O(dn,r),On===null&&(On=r)}function xy(r){r.tag===22?(O(ct,ct.current),O(dn,r),On===null&&(On=r)):si()}function si(){O(ct,ct.current),O(dn,dn.current)}function mn(r){X(dn),On===r&&(On=null),X(ct)}var ct=P(0);function vu(r){for(var a=r;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Rd(l)||Ad(l)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Sr=0,Te=null,Xe=null,mt=null,_u=!1,as=!1,ta=!1,bu=0,Cl=0,ss=null,Cw=0;function st(){throw Error(i(321))}function Eh(r,a){if(a===null)return!1;for(var l=0;l<a.length&&l<r.length;l++)if(!fn(r[l],a[l]))return!1;return!0}function wh(r,a,l,c,m,g){return Sr=g,Te=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,V.H=r===null||r.memoizedState===null?iv:Bh,ta=!1,g=l(c,m),ta=!1,as&&(g=Ey(a,l,c,m)),Sy(r),g}function Sy(r){V.H=Ol;var a=Xe!==null&&Xe.next!==null;if(Sr=0,mt=Xe=Te=null,_u=!1,Cl=0,ss=null,a)throw Error(i(300));r===null||pt||(r=r.dependencies,r!==null&&cu(r)&&(pt=!0))}function Ey(r,a,l,c){Te=r;var m=0;do{if(as&&(ss=null),Cl=0,as=!1,25<=m)throw Error(i(301));if(m+=1,mt=Xe=null,r.updateQueue!=null){var g=r.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}V.H=av,g=a(l,c)}while(as);return g}function Rw(){var r=V.H,a=r.useState()[0];return a=typeof a.then=="function"?Rl(a):a,r=r.useState()[0],(Xe!==null?Xe.memoizedState:null)!==r&&(Te.flags|=1024),a}function Th(){var r=bu!==0;return bu=0,r}function kh(r,a,l){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~l}function Ch(r){if(_u){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}_u=!1}Sr=0,mt=Xe=Te=null,as=!1,Cl=bu=0,ss=null}function Vt(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?Te.memoizedState=mt=r:mt=mt.next=r,mt}function ft(){if(Xe===null){var r=Te.alternate;r=r!==null?r.memoizedState:null}else r=Xe.next;var a=mt===null?Te.memoizedState:mt.next;if(a!==null)mt=a,Xe=r;else{if(r===null)throw Te.alternate===null?Error(i(467)):Error(i(310));Xe=r,r={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},mt===null?Te.memoizedState=mt=r:mt=mt.next=r}return mt}function xu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rl(r){var a=Cl;return Cl+=1,ss===null&&(ss=[]),r=dy(ss,r,a),a=Te,(mt===null?a.memoizedState:mt.next)===null&&(a=a.alternate,V.H=a===null||a.memoizedState===null?iv:Bh),r}function Su(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Rl(r);if(r.$$typeof===L)return Lt(r)}throw Error(i(438,String(r)))}function Rh(r){var a=null,l=Te.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var c=Te.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(m){return m.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=xu(),Te.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(r),c=0;c<r;c++)l[c]=N;return a.index++,l}function Er(r,a){return typeof a=="function"?a(r):a}function Eu(r){var a=ft();return Ah(a,Xe,r)}function Ah(r,a,l){var c=r.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=l;var m=r.baseQueue,g=c.pending;if(g!==null){if(m!==null){var b=m.next;m.next=g.next,g.next=b}a.baseQueue=m=g,c.pending=null}if(g=r.baseState,m===null)r.memoizedState=g;else{a=m.next;var T=b=null,D=null,G=a,K=!1;do{var ee=G.lane&-536870913;if(ee!==G.lane?(je&ee)===ee:(Sr&ee)===ee){var F=G.revertLane;if(F===0)D!==null&&(D=D.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),ee===es&&(K=!0);else if((Sr&F)===F){G=G.next,F===es&&(K=!0);continue}else ee={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},D===null?(T=D=ee,b=g):D=D.next=ee,Te.lanes|=F,ui|=F;ee=G.action,ta&&l(g,ee),g=G.hasEagerState?G.eagerState:l(g,ee)}else F={lane:ee,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},D===null?(T=D=F,b=g):D=D.next=F,Te.lanes|=ee,ui|=ee;G=G.next}while(G!==null&&G!==a);if(D===null?b=g:D.next=T,!fn(g,r.memoizedState)&&(pt=!0,K&&(l=ts,l!==null)))throw l;r.memoizedState=g,r.baseState=b,r.baseQueue=D,c.lastRenderedState=g}return m===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function Oh(r){var a=ft(),l=a.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var c=l.dispatch,m=l.pending,g=a.memoizedState;if(m!==null){l.pending=null;var b=m=m.next;do g=r(g,b.action),b=b.next;while(b!==m);fn(g,a.memoizedState)||(pt=!0),a.memoizedState=g,a.baseQueue===null&&(a.baseState=g),l.lastRenderedState=g}return[g,c]}function wy(r,a,l){var c=Te,m=ft(),g=Pe;if(g){if(l===void 0)throw Error(i(407));l=l()}else l=a();var b=!fn((Xe||m).memoizedState,l);if(b&&(m.memoizedState=l,pt=!0),m=m.queue,jh(Cy.bind(null,c,m,r),[r]),m.getSnapshot!==a||b||mt!==null&&mt.memoizedState.tag&1){if(c.flags|=2048,ls(9,{destroy:void 0},ky.bind(null,c,m,l,a),null),et===null)throw Error(i(349));g||(Sr&127)!==0||Ty(c,a,l)}return l}function Ty(r,a,l){r.flags|=16384,r={getSnapshot:a,value:l},a=Te.updateQueue,a===null?(a=xu(),Te.updateQueue=a,a.stores=[r]):(l=a.stores,l===null?a.stores=[r]:l.push(r))}function ky(r,a,l,c){a.value=l,a.getSnapshot=c,Ry(a)&&Ay(r)}function Cy(r,a,l){return l(function(){Ry(a)&&Ay(r)})}function Ry(r){var a=r.getSnapshot;r=r.value;try{var l=a();return!fn(r,l)}catch{return!0}}function Ay(r){var a=Qi(r,2);a!==null&&nn(a,r,2)}function Lh(r){var a=Vt();if(typeof r=="function"){var l=r;if(r=l(),ta){Kt(!0);try{l()}finally{Kt(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:r},a}function Oy(r,a,l,c){return r.baseState=l,Ah(r,Xe,typeof c=="function"?c:Er)}function Aw(r,a,l,c,m){if(ku(r))throw Error(i(485));if(r=a.action,r!==null){var g={payload:m,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){g.listeners.push(b)}};V.T!==null?l(!0):g.isTransition=!1,c(g),l=a.pending,l===null?(g.next=a.pending=g,Ly(a,g)):(g.next=l.next,a.pending=l.next=g)}}function Ly(r,a){var l=a.action,c=a.payload,m=r.state;if(a.isTransition){var g=V.T,b={};V.T=b;try{var T=l(m,c),D=V.S;D!==null&&D(b,T),Ny(r,a,T)}catch(G){Nh(r,a,G)}finally{g!==null&&b.types!==null&&(g.types=b.types),V.T=g}}else try{g=l(m,c),Ny(r,a,g)}catch(G){Nh(r,a,G)}}function Ny(r,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(c){jy(r,a,c)},function(c){return Nh(r,a,c)}):jy(r,a,l)}function jy(r,a,l){a.status="fulfilled",a.value=l,Dy(a),r.state=l,a=r.pending,a!==null&&(l=a.next,l===a?r.pending=null:(l=l.next,a.next=l,Ly(r,l)))}function Nh(r,a,l){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=l,Dy(a),a=a.next;while(a!==c)}r.action=null}function Dy(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function My(r,a){return a}function Py(r,a){if(Pe){var l=et.formState;if(l!==null){e:{var c=Te;if(Pe){if(rt){t:{for(var m=rt,g=An;m.nodeType!==8;){if(!g){m=null;break t}if(m=Ln(m.nextSibling),m===null){m=null;break t}}g=m.data,m=g==="F!"||g==="F"?m:null}if(m){rt=Ln(m.nextSibling),c=m.data==="F!";break e}}ei(c)}c=!1}c&&(a=l[0])}}return l=Vt(),l.memoizedState=l.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:My,lastRenderedState:a},l.queue=c,l=tv.bind(null,Te,c),c.dispatch=l,c=Lh(!1),g=Ih.bind(null,Te,!1,c.queue),c=Vt(),m={state:a,dispatch:null,action:r,pending:null},c.queue=m,l=Aw.bind(null,Te,m,g,l),m.dispatch=l,c.memoizedState=r,[a,l,!1]}function zy(r){var a=ft();return Iy(a,Xe,r)}function Iy(r,a,l){if(a=Ah(r,a,My)[0],r=Eu(Er)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=Rl(a)}catch(b){throw b===ns?du:b}else c=a;a=ft();var m=a.queue,g=m.dispatch;return l!==a.memoizedState&&(Te.flags|=2048,ls(9,{destroy:void 0},Ow.bind(null,m,l),null)),[c,g,r]}function Ow(r,a){r.action=a}function By(r){var a=ft(),l=Xe;if(l!==null)return Iy(a,l,r);ft(),a=a.memoizedState,l=ft();var c=l.queue.dispatch;return l.memoizedState=r,[a,c,!1]}function ls(r,a,l,c){return r={tag:r,create:l,deps:c,inst:a,next:null},a=Te.updateQueue,a===null&&(a=xu(),Te.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=r.next=r:(c=l.next,l.next=r,r.next=c,a.lastEffect=r),r}function Uy(){return ft().memoizedState}function wu(r,a,l,c){var m=Vt();Te.flags|=r,m.memoizedState=ls(1|a,{destroy:void 0},l,c===void 0?null:c)}function Tu(r,a,l,c){var m=ft();c=c===void 0?null:c;var g=m.memoizedState.inst;Xe!==null&&c!==null&&Eh(c,Xe.memoizedState.deps)?m.memoizedState=ls(a,g,l,c):(Te.flags|=r,m.memoizedState=ls(1|a,g,l,c))}function qy(r,a){wu(8390656,8,r,a)}function jh(r,a){Tu(2048,8,r,a)}function Lw(r){Te.flags|=4;var a=Te.updateQueue;if(a===null)a=xu(),Te.updateQueue=a,a.events=[r];else{var l=a.events;l===null?a.events=[r]:l.push(r)}}function Vy(r){var a=ft().memoizedState;return Lw({ref:a,nextImpl:r}),function(){if((He&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function Hy(r,a){return Tu(4,2,r,a)}function Gy(r,a){return Tu(4,4,r,a)}function Fy(r,a){if(typeof a=="function"){r=r();var l=a(r);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function Qy(r,a,l){l=l!=null?l.concat([r]):null,Tu(4,4,Fy.bind(null,a,r),l)}function Dh(){}function $y(r,a){var l=ft();a=a===void 0?null:a;var c=l.memoizedState;return a!==null&&Eh(a,c[1])?c[0]:(l.memoizedState=[r,a],r)}function Yy(r,a){var l=ft();a=a===void 0?null:a;var c=l.memoizedState;if(a!==null&&Eh(a,c[1]))return c[0];if(c=r(),ta){Kt(!0);try{r()}finally{Kt(!1)}}return l.memoizedState=[c,a],c}function Mh(r,a,l){return l===void 0||(Sr&1073741824)!==0&&(je&261930)===0?r.memoizedState=a:(r.memoizedState=l,r=Kv(),Te.lanes|=r,ui|=r,l)}function Ky(r,a,l,c){return fn(l,a)?l:is.current!==null?(r=Mh(r,l,c),fn(r,a)||(pt=!0),r):(Sr&42)===0||(Sr&1073741824)!==0&&(je&261930)===0?(pt=!0,r.memoizedState=l):(r=Kv(),Te.lanes|=r,ui|=r,a)}function Xy(r,a,l,c,m){var g=te.p;te.p=g!==0&&8>g?g:8;var b=V.T,T={};V.T=T,Ih(r,!1,a,l);try{var D=m(),G=V.S;if(G!==null&&G(T,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var K=kw(D,c);Al(r,a,K,yn(r))}else Al(r,a,c,yn(r))}catch(ee){Al(r,a,{then:function(){},status:"rejected",reason:ee},yn())}finally{te.p=g,b!==null&&T.types!==null&&(b.types=T.types),V.T=b}}function Nw(){}function Ph(r,a,l,c){if(r.tag!==5)throw Error(i(476));var m=Zy(r).queue;Xy(r,m,a,fe,l===null?Nw:function(){return Jy(r),l(c)})}function Zy(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:fe},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:l},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function Jy(r){var a=Zy(r);a.next===null&&(a=r.alternate.memoizedState),Al(r,a.next.queue,{},yn())}function zh(){return Lt(Ql)}function Wy(){return ft().memoizedState}function ev(){return ft().memoizedState}function jw(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var l=yn();r=ri(l);var c=ii(a,r,l);c!==null&&(nn(c,a,l),wl(c,a,l)),a={cache:hh()},r.payload=a;return}a=a.return}}function Dw(r,a,l){var c=yn();l={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ku(r)?nv(a,l):(l=th(r,a,l,c),l!==null&&(nn(l,r,c),rv(l,a,c)))}function tv(r,a,l){var c=yn();Al(r,a,l,c)}function Al(r,a,l,c){var m={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ku(r))nv(a,m);else{var g=r.alternate;if(r.lanes===0&&(g===null||g.lanes===0)&&(g=a.lastRenderedReducer,g!==null))try{var b=a.lastRenderedState,T=g(b,l);if(m.hasEagerState=!0,m.eagerState=T,fn(T,b))return su(r,a,m,0),et===null&&au(),!1}catch{}finally{}if(l=th(r,a,m,c),l!==null)return nn(l,r,c),rv(l,a,c),!0}return!1}function Ih(r,a,l,c){if(c={lane:2,revertLane:gd(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},ku(r)){if(a)throw Error(i(479))}else a=th(r,l,c,2),a!==null&&nn(a,r,2)}function ku(r){var a=r.alternate;return r===Te||a!==null&&a===Te}function nv(r,a){as=_u=!0;var l=r.pending;l===null?a.next=a:(a.next=l.next,l.next=a),r.pending=a}function rv(r,a,l){if((l&4194048)!==0){var c=a.lanes;c&=r.pendingLanes,l|=c,a.lanes=l,og(r,l)}}var Ol={readContext:Lt,use:Su,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st};Ol.useEffectEvent=st;var iv={readContext:Lt,use:Su,useCallback:function(r,a){return Vt().memoizedState=[r,a===void 0?null:a],r},useContext:Lt,useEffect:qy,useImperativeHandle:function(r,a,l){l=l!=null?l.concat([r]):null,wu(4194308,4,Fy.bind(null,a,r),l)},useLayoutEffect:function(r,a){return wu(4194308,4,r,a)},useInsertionEffect:function(r,a){wu(4,2,r,a)},useMemo:function(r,a){var l=Vt();a=a===void 0?null:a;var c=r();if(ta){Kt(!0);try{r()}finally{Kt(!1)}}return l.memoizedState=[c,a],c},useReducer:function(r,a,l){var c=Vt();if(l!==void 0){var m=l(a);if(ta){Kt(!0);try{l(a)}finally{Kt(!1)}}}else m=a;return c.memoizedState=c.baseState=m,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:m},c.queue=r,r=r.dispatch=Dw.bind(null,Te,r),[c.memoizedState,r]},useRef:function(r){var a=Vt();return r={current:r},a.memoizedState=r},useState:function(r){r=Lh(r);var a=r.queue,l=tv.bind(null,Te,a);return a.dispatch=l,[r.memoizedState,l]},useDebugValue:Dh,useDeferredValue:function(r,a){var l=Vt();return Mh(l,r,a)},useTransition:function(){var r=Lh(!1);return r=Xy.bind(null,Te,r.queue,!0,!1),Vt().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,l){var c=Te,m=Vt();if(Pe){if(l===void 0)throw Error(i(407));l=l()}else{if(l=a(),et===null)throw Error(i(349));(je&127)!==0||Ty(c,a,l)}m.memoizedState=l;var g={value:l,getSnapshot:a};return m.queue=g,qy(Cy.bind(null,c,g,r),[r]),c.flags|=2048,ls(9,{destroy:void 0},ky.bind(null,c,g,l,a),null),l},useId:function(){var r=Vt(),a=et.identifierPrefix;if(Pe){var l=er,c=Wn;l=(c&~(1<<32-We(c)-1)).toString(32)+l,a="_"+a+"R_"+l,l=bu++,0<l&&(a+="H"+l.toString(32)),a+="_"}else l=Cw++,a="_"+a+"r_"+l.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:zh,useFormState:Py,useActionState:Py,useOptimistic:function(r){var a=Vt();a.memoizedState=a.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=Ih.bind(null,Te,!0,l),l.dispatch=a,[r,a]},useMemoCache:Rh,useCacheRefresh:function(){return Vt().memoizedState=jw.bind(null,Te)},useEffectEvent:function(r){var a=Vt(),l={impl:r};return a.memoizedState=l,function(){if((He&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},Bh={readContext:Lt,use:Su,useCallback:$y,useContext:Lt,useEffect:jh,useImperativeHandle:Qy,useInsertionEffect:Hy,useLayoutEffect:Gy,useMemo:Yy,useReducer:Eu,useRef:Uy,useState:function(){return Eu(Er)},useDebugValue:Dh,useDeferredValue:function(r,a){var l=ft();return Ky(l,Xe.memoizedState,r,a)},useTransition:function(){var r=Eu(Er)[0],a=ft().memoizedState;return[typeof r=="boolean"?r:Rl(r),a]},useSyncExternalStore:wy,useId:Wy,useHostTransitionStatus:zh,useFormState:zy,useActionState:zy,useOptimistic:function(r,a){var l=ft();return Oy(l,Xe,r,a)},useMemoCache:Rh,useCacheRefresh:ev};Bh.useEffectEvent=Vy;var av={readContext:Lt,use:Su,useCallback:$y,useContext:Lt,useEffect:jh,useImperativeHandle:Qy,useInsertionEffect:Hy,useLayoutEffect:Gy,useMemo:Yy,useReducer:Oh,useRef:Uy,useState:function(){return Oh(Er)},useDebugValue:Dh,useDeferredValue:function(r,a){var l=ft();return Xe===null?Mh(l,r,a):Ky(l,Xe.memoizedState,r,a)},useTransition:function(){var r=Oh(Er)[0],a=ft().memoizedState;return[typeof r=="boolean"?r:Rl(r),a]},useSyncExternalStore:wy,useId:Wy,useHostTransitionStatus:zh,useFormState:By,useActionState:By,useOptimistic:function(r,a){var l=ft();return Xe!==null?Oy(l,Xe,r,a):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:Rh,useCacheRefresh:ev};av.useEffectEvent=Vy;function Uh(r,a,l,c){a=r.memoizedState,l=l(c,a),l=l==null?a:p({},a,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var qh={enqueueSetState:function(r,a,l){r=r._reactInternals;var c=yn(),m=ri(c);m.payload=a,l!=null&&(m.callback=l),a=ii(r,m,c),a!==null&&(nn(a,r,c),wl(a,r,c))},enqueueReplaceState:function(r,a,l){r=r._reactInternals;var c=yn(),m=ri(c);m.tag=1,m.payload=a,l!=null&&(m.callback=l),a=ii(r,m,c),a!==null&&(nn(a,r,c),wl(a,r,c))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var l=yn(),c=ri(l);c.tag=2,a!=null&&(c.callback=a),a=ii(r,c,l),a!==null&&(nn(a,r,l),wl(a,r,l))}};function sv(r,a,l,c,m,g,b){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,g,b):a.prototype&&a.prototype.isPureReactComponent?!gl(l,c)||!gl(m,g):!0}function lv(r,a,l,c){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,c),a.state!==r&&qh.enqueueReplaceState(a,a.state,null)}function na(r,a){var l=a;if("ref"in a){l={};for(var c in a)c!=="ref"&&(l[c]=a[c])}if(r=r.defaultProps){l===a&&(l=p({},l));for(var m in r)l[m]===void 0&&(l[m]=r[m])}return l}function ov(r){iu(r)}function uv(r){console.error(r)}function cv(r){iu(r)}function Cu(r,a){try{var l=r.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function fv(r,a,l){try{var c=r.onCaughtError;c(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Vh(r,a,l){return l=ri(l),l.tag=3,l.payload={element:null},l.callback=function(){Cu(r,a)},l}function hv(r){return r=ri(r),r.tag=3,r}function dv(r,a,l,c){var m=l.type.getDerivedStateFromError;if(typeof m=="function"){var g=c.value;r.payload=function(){return m(g)},r.callback=function(){fv(a,l,c)}}var b=l.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(r.callback=function(){fv(a,l,c),typeof m!="function"&&(ci===null?ci=new Set([this]):ci.add(this));var T=c.stack;this.componentDidCatch(c.value,{componentStack:T!==null?T:""})})}function Mw(r,a,l,c,m){if(l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=l.alternate,a!==null&&Wa(a,l,m,!0),l=dn.current,l!==null){switch(l.tag){case 31:case 13:return On===null?Bu():l.alternate===null&&lt===0&&(lt=3),l.flags&=-257,l.flags|=65536,l.lanes=m,c===mu?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([c]):a.add(c),dd(r,c,m)),!1;case 22:return l.flags|=65536,c===mu?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([c]):l.add(c)),dd(r,c,m)),!1}throw Error(i(435,l.tag))}return dd(r,c,m),Bu(),!1}if(Pe)return a=dn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=m,c!==lh&&(r=Error(i(422),{cause:c}),_l(kn(r,l)))):(c!==lh&&(a=Error(i(423),{cause:c}),_l(kn(a,l))),r=r.current.alternate,r.flags|=65536,m&=-m,r.lanes|=m,c=kn(c,l),m=Vh(r.stateNode,c,m),vh(r,m),lt!==4&&(lt=2)),!1;var g=Error(i(520),{cause:c});if(g=kn(g,l),Il===null?Il=[g]:Il.push(g),lt!==4&&(lt=2),a===null)return!0;c=kn(c,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,r=m&-m,l.lanes|=r,r=Vh(l.stateNode,c,r),vh(l,r),!1;case 1:if(a=l.type,g=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(ci===null||!ci.has(g))))return l.flags|=65536,m&=-m,l.lanes|=m,m=hv(m),dv(m,r,l,c),vh(l,m),!1}l=l.return}while(l!==null);return!1}var Hh=Error(i(461)),pt=!1;function Nt(r,a,l,c){a.child=r===null?yy(a,null,l,c):ea(a,r.child,l,c)}function mv(r,a,l,c,m){l=l.render;var g=a.ref;if("ref"in c){var b={};for(var T in c)T!=="ref"&&(b[T]=c[T])}else b=c;return Xi(a),c=wh(r,a,l,b,g,m),T=Th(),r!==null&&!pt?(kh(r,a,m),wr(r,a,m)):(Pe&&T&&ah(a),a.flags|=1,Nt(r,a,c,m),a.child)}function pv(r,a,l,c,m){if(r===null){var g=l.type;return typeof g=="function"&&!nh(g)&&g.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=g,gv(r,a,g,c,m)):(r=ou(l.type,null,c,a,a.mode,m),r.ref=a.ref,r.return=a,a.child=r)}if(g=r.child,!Zh(r,m)){var b=g.memoizedProps;if(l=l.compare,l=l!==null?l:gl,l(b,c)&&r.ref===a.ref)return wr(r,a,m)}return a.flags|=1,r=vr(g,c),r.ref=a.ref,r.return=a,a.child=r}function gv(r,a,l,c,m){if(r!==null){var g=r.memoizedProps;if(gl(g,c)&&r.ref===a.ref)if(pt=!1,a.pendingProps=c=g,Zh(r,m))(r.flags&131072)!==0&&(pt=!0);else return a.lanes=r.lanes,wr(r,a,m)}return Gh(r,a,l,c,m)}function yv(r,a,l,c){var m=c.children,g=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((a.flags&128)!==0){if(g=g!==null?g.baseLanes|l:l,r!==null){for(c=a.child=r.child,m=0;c!==null;)m=m|c.lanes|c.childLanes,c=c.sibling;c=m&~g}else c=0,a.child=null;return vv(r,a,g,l,c)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&hu(a,g!==null?g.cachePool:null),g!==null?by(a,g):bh(),xy(a);else return c=a.lanes=536870912,vv(r,a,g!==null?g.baseLanes|l:l,l,c)}else g!==null?(hu(a,g.cachePool),by(a,g),si(),a.memoizedState=null):(r!==null&&hu(a,null),bh(),si());return Nt(r,a,m,l),a.child}function Ll(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function vv(r,a,l,c,m){var g=mh();return g=g===null?null:{parent:dt._currentValue,pool:g},a.memoizedState={baseLanes:l,cachePool:g},r!==null&&hu(a,null),bh(),xy(a),r!==null&&Wa(r,a,c,!0),a.childLanes=m,null}function Ru(r,a){return a=Ou({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function _v(r,a,l){return ea(a,r.child,null,l),r=Ru(a,a.pendingProps),r.flags|=2,mn(a),a.memoizedState=null,r}function Pw(r,a,l){var c=a.pendingProps,m=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(Pe){if(c.mode==="hidden")return r=Ru(a,c),a.lanes=536870912,Ll(null,r);if(Sh(a),(r=rt)?(r=L_(r,An),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Jr!==null?{id:Wn,overflow:er}:null,retryLane:536870912,hydrationErrors:null},l=ny(r),l.return=a,a.child=l,Ot=a,rt=null)):r=null,r===null)throw ei(a);return a.lanes=536870912,null}return Ru(a,c)}var g=r.memoizedState;if(g!==null){var b=g.dehydrated;if(Sh(a),m)if(a.flags&256)a.flags&=-257,a=_v(r,a,l);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(pt||Wa(r,a,l,!1),m=(l&r.childLanes)!==0,pt||m){if(c=et,c!==null&&(b=ug(c,l),b!==0&&b!==g.retryLane))throw g.retryLane=b,Qi(r,b),nn(c,r,b),Hh;Bu(),a=_v(r,a,l)}else r=g.treeContext,rt=Ln(b.nextSibling),Ot=a,Pe=!0,Wr=null,An=!1,r!==null&&ay(a,r),a=Ru(a,c),a.flags|=4096;return a}return r=vr(r.child,{mode:c.mode,children:c.children}),r.ref=a.ref,a.child=r,r.return=a,r}function Au(r,a){var l=a.ref;if(l===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(r===null||r.ref!==l)&&(a.flags|=4194816)}}function Gh(r,a,l,c,m){return Xi(a),l=wh(r,a,l,c,void 0,m),c=Th(),r!==null&&!pt?(kh(r,a,m),wr(r,a,m)):(Pe&&c&&ah(a),a.flags|=1,Nt(r,a,l,m),a.child)}function bv(r,a,l,c,m,g){return Xi(a),a.updateQueue=null,l=Ey(a,c,l,m),Sy(r),c=Th(),r!==null&&!pt?(kh(r,a,g),wr(r,a,g)):(Pe&&c&&ah(a),a.flags|=1,Nt(r,a,l,g),a.child)}function xv(r,a,l,c,m){if(Xi(a),a.stateNode===null){var g=Ka,b=l.contextType;typeof b=="object"&&b!==null&&(g=Lt(b)),g=new l(c,g),a.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=qh,a.stateNode=g,g._reactInternals=a,g=a.stateNode,g.props=c,g.state=a.memoizedState,g.refs={},gh(a),b=l.contextType,g.context=typeof b=="object"&&b!==null?Lt(b):Ka,g.state=a.memoizedState,b=l.getDerivedStateFromProps,typeof b=="function"&&(Uh(a,l,b,c),g.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(b=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),b!==g.state&&qh.enqueueReplaceState(g,g.state,null),kl(a,c,g,m),Tl(),g.state=a.memoizedState),typeof g.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(r===null){g=a.stateNode;var T=a.memoizedProps,D=na(l,T);g.props=D;var G=g.context,K=l.contextType;b=Ka,typeof K=="object"&&K!==null&&(b=Lt(K));var ee=l.getDerivedStateFromProps;K=typeof ee=="function"||typeof g.getSnapshotBeforeUpdate=="function",T=a.pendingProps!==T,K||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(T||G!==b)&&lv(a,g,c,b),ni=!1;var F=a.memoizedState;g.state=F,kl(a,c,g,m),Tl(),G=a.memoizedState,T||F!==G||ni?(typeof ee=="function"&&(Uh(a,l,ee,c),G=a.memoizedState),(D=ni||sv(a,l,D,c,F,G,b))?(K||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(a.flags|=4194308)):(typeof g.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=G),g.props=c,g.state=G,g.context=b,c=D):(typeof g.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{g=a.stateNode,yh(r,a),b=a.memoizedProps,K=na(l,b),g.props=K,ee=a.pendingProps,F=g.context,G=l.contextType,D=Ka,typeof G=="object"&&G!==null&&(D=Lt(G)),T=l.getDerivedStateFromProps,(G=typeof T=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(b!==ee||F!==D)&&lv(a,g,c,D),ni=!1,F=a.memoizedState,g.state=F,kl(a,c,g,m),Tl();var Y=a.memoizedState;b!==ee||F!==Y||ni||r!==null&&r.dependencies!==null&&cu(r.dependencies)?(typeof T=="function"&&(Uh(a,l,T,c),Y=a.memoizedState),(K=ni||sv(a,l,K,c,F,Y,D)||r!==null&&r.dependencies!==null&&cu(r.dependencies))?(G||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,Y,D),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,Y,D)),typeof g.componentDidUpdate=="function"&&(a.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof g.componentDidUpdate!="function"||b===r.memoizedProps&&F===r.memoizedState||(a.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||b===r.memoizedProps&&F===r.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=Y),g.props=c,g.state=Y,g.context=D,c=K):(typeof g.componentDidUpdate!="function"||b===r.memoizedProps&&F===r.memoizedState||(a.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||b===r.memoizedProps&&F===r.memoizedState||(a.flags|=1024),c=!1)}return g=c,Au(r,a),c=(a.flags&128)!==0,g||c?(g=a.stateNode,l=c&&typeof l.getDerivedStateFromError!="function"?null:g.render(),a.flags|=1,r!==null&&c?(a.child=ea(a,r.child,null,m),a.child=ea(a,null,l,m)):Nt(r,a,l,m),a.memoizedState=g.state,r=a.child):r=wr(r,a,m),r}function Sv(r,a,l,c){return Yi(),a.flags|=256,Nt(r,a,l,c),a.child}var Fh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qh(r){return{baseLanes:r,cachePool:fy()}}function $h(r,a,l){return r=r!==null?r.childLanes&~l:0,a&&(r|=gn),r}function Ev(r,a,l){var c=a.pendingProps,m=!1,g=(a.flags&128)!==0,b;if((b=g)||(b=r!==null&&r.memoizedState===null?!1:(ct.current&2)!==0),b&&(m=!0,a.flags&=-129),b=(a.flags&32)!==0,a.flags&=-33,r===null){if(Pe){if(m?ai(a):si(),(r=rt)?(r=L_(r,An),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Jr!==null?{id:Wn,overflow:er}:null,retryLane:536870912,hydrationErrors:null},l=ny(r),l.return=a,a.child=l,Ot=a,rt=null)):r=null,r===null)throw ei(a);return Ad(r)?a.lanes=32:a.lanes=536870912,null}var T=c.children;return c=c.fallback,m?(si(),m=a.mode,T=Ou({mode:"hidden",children:T},m),c=$i(c,m,l,null),T.return=a,c.return=a,T.sibling=c,a.child=T,c=a.child,c.memoizedState=Qh(l),c.childLanes=$h(r,b,l),a.memoizedState=Fh,Ll(null,c)):(ai(a),Yh(a,T))}var D=r.memoizedState;if(D!==null&&(T=D.dehydrated,T!==null)){if(g)a.flags&256?(ai(a),a.flags&=-257,a=Kh(r,a,l)):a.memoizedState!==null?(si(),a.child=r.child,a.flags|=128,a=null):(si(),T=c.fallback,m=a.mode,c=Ou({mode:"visible",children:c.children},m),T=$i(T,m,l,null),T.flags|=2,c.return=a,T.return=a,c.sibling=T,a.child=c,ea(a,r.child,null,l),c=a.child,c.memoizedState=Qh(l),c.childLanes=$h(r,b,l),a.memoizedState=Fh,a=Ll(null,c));else if(ai(a),Ad(T)){if(b=T.nextSibling&&T.nextSibling.dataset,b)var G=b.dgst;b=G,c=Error(i(419)),c.stack="",c.digest=b,_l({value:c,source:null,stack:null}),a=Kh(r,a,l)}else if(pt||Wa(r,a,l,!1),b=(l&r.childLanes)!==0,pt||b){if(b=et,b!==null&&(c=ug(b,l),c!==0&&c!==D.retryLane))throw D.retryLane=c,Qi(r,c),nn(b,r,c),Hh;Rd(T)||Bu(),a=Kh(r,a,l)}else Rd(T)?(a.flags|=192,a.child=r.child,a=null):(r=D.treeContext,rt=Ln(T.nextSibling),Ot=a,Pe=!0,Wr=null,An=!1,r!==null&&ay(a,r),a=Yh(a,c.children),a.flags|=4096);return a}return m?(si(),T=c.fallback,m=a.mode,D=r.child,G=D.sibling,c=vr(D,{mode:"hidden",children:c.children}),c.subtreeFlags=D.subtreeFlags&65011712,G!==null?T=vr(G,T):(T=$i(T,m,l,null),T.flags|=2),T.return=a,c.return=a,c.sibling=T,a.child=c,Ll(null,c),c=a.child,T=r.child.memoizedState,T===null?T=Qh(l):(m=T.cachePool,m!==null?(D=dt._currentValue,m=m.parent!==D?{parent:D,pool:D}:m):m=fy(),T={baseLanes:T.baseLanes|l,cachePool:m}),c.memoizedState=T,c.childLanes=$h(r,b,l),a.memoizedState=Fh,Ll(r.child,c)):(ai(a),l=r.child,r=l.sibling,l=vr(l,{mode:"visible",children:c.children}),l.return=a,l.sibling=null,r!==null&&(b=a.deletions,b===null?(a.deletions=[r],a.flags|=16):b.push(r)),a.child=l,a.memoizedState=null,l)}function Yh(r,a){return a=Ou({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Ou(r,a){return r=hn(22,r,null,a),r.lanes=0,r}function Kh(r,a,l){return ea(a,r.child,null,l),r=Yh(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function wv(r,a,l){r.lanes|=a;var c=r.alternate;c!==null&&(c.lanes|=a),ch(r.return,a,l)}function Xh(r,a,l,c,m,g){var b=r.memoizedState;b===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:m,treeForkCount:g}:(b.isBackwards=a,b.rendering=null,b.renderingStartTime=0,b.last=c,b.tail=l,b.tailMode=m,b.treeForkCount=g)}function Tv(r,a,l){var c=a.pendingProps,m=c.revealOrder,g=c.tail;c=c.children;var b=ct.current,T=(b&2)!==0;if(T?(b=b&1|2,a.flags|=128):b&=1,O(ct,b),Nt(r,a,c,l),c=Pe?vl:0,!T&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&wv(r,l,a);else if(r.tag===19)wv(r,l,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(m){case"forwards":for(l=a.child,m=null;l!==null;)r=l.alternate,r!==null&&vu(r)===null&&(m=l),l=l.sibling;l=m,l===null?(m=a.child,a.child=null):(m=l.sibling,l.sibling=null),Xh(a,!1,m,l,g,c);break;case"backwards":case"unstable_legacy-backwards":for(l=null,m=a.child,a.child=null;m!==null;){if(r=m.alternate,r!==null&&vu(r)===null){a.child=m;break}r=m.sibling,m.sibling=l,l=m,m=r}Xh(a,!0,l,null,g,c);break;case"together":Xh(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function wr(r,a,l){if(r!==null&&(a.dependencies=r.dependencies),ui|=a.lanes,(l&a.childLanes)===0)if(r!==null){if(Wa(r,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,l=vr(r,r.pendingProps),a.child=l,l.return=a;r.sibling!==null;)r=r.sibling,l=l.sibling=vr(r,r.pendingProps),l.return=a;l.sibling=null}return a.child}function Zh(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&cu(r)))}function zw(r,a,l){switch(a.tag){case 3:Qe(a,a.stateNode.containerInfo),ti(a,dt,r.memoizedState.cache),Yi();break;case 27:case 5:Dt(a);break;case 4:Qe(a,a.stateNode.containerInfo);break;case 10:ti(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Sh(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(ai(a),a.flags|=128,null):(l&a.child.childLanes)!==0?Ev(r,a,l):(ai(a),r=wr(r,a,l),r!==null?r.sibling:null);ai(a);break;case 19:var m=(r.flags&128)!==0;if(c=(l&a.childLanes)!==0,c||(Wa(r,a,l,!1),c=(l&a.childLanes)!==0),m){if(c)return Tv(r,a,l);a.flags|=128}if(m=a.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),O(ct,ct.current),c)break;return null;case 22:return a.lanes=0,yv(r,a,l,a.pendingProps);case 24:ti(a,dt,r.memoizedState.cache)}return wr(r,a,l)}function kv(r,a,l){if(r!==null)if(r.memoizedProps!==a.pendingProps)pt=!0;else{if(!Zh(r,l)&&(a.flags&128)===0)return pt=!1,zw(r,a,l);pt=(r.flags&131072)!==0}else pt=!1,Pe&&(a.flags&1048576)!==0&&iy(a,vl,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(r=Ji(a.elementType),a.type=r,typeof r=="function")nh(r)?(c=na(r,c),a.tag=1,a=xv(null,a,r,c,l)):(a.tag=0,a=Gh(null,a,r,c,l));else{if(r!=null){var m=r.$$typeof;if(m===z){a.tag=11,a=mv(null,a,r,c,l);break e}else if(m===q){a.tag=14,a=pv(null,a,r,c,l);break e}}throw a=le(r)||r,Error(i(306,a,""))}}return a;case 0:return Gh(r,a,a.type,a.pendingProps,l);case 1:return c=a.type,m=na(c,a.pendingProps),xv(r,a,c,m,l);case 3:e:{if(Qe(a,a.stateNode.containerInfo),r===null)throw Error(i(387));c=a.pendingProps;var g=a.memoizedState;m=g.element,yh(r,a),kl(a,c,null,l);var b=a.memoizedState;if(c=b.cache,ti(a,dt,c),c!==g.cache&&fh(a,[dt],l,!0),Tl(),c=b.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:b.cache},a.updateQueue.baseState=g,a.memoizedState=g,a.flags&256){a=Sv(r,a,c,l);break e}else if(c!==m){m=kn(Error(i(424)),a),_l(m),a=Sv(r,a,c,l);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(rt=Ln(r.firstChild),Ot=a,Pe=!0,Wr=null,An=!0,l=yy(a,null,c,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Yi(),c===m){a=wr(r,a,l);break e}Nt(r,a,c,l)}a=a.child}return a;case 26:return Au(r,a),r===null?(l=z_(a.type,null,a.pendingProps,null))?a.memoizedState=l:Pe||(l=a.type,r=a.pendingProps,c=Qu(he.current).createElement(l),c[At]=a,c[Xt]=r,jt(c,l,r),wt(c),a.stateNode=c):a.memoizedState=z_(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return Dt(a),r===null&&Pe&&(c=a.stateNode=D_(a.type,a.pendingProps,he.current),Ot=a,An=!0,m=rt,mi(a.type)?(Od=m,rt=Ln(c.firstChild)):rt=m),Nt(r,a,a.pendingProps.children,l),Au(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&Pe&&((m=c=rt)&&(c=dT(c,a.type,a.pendingProps,An),c!==null?(a.stateNode=c,Ot=a,rt=Ln(c.firstChild),An=!1,m=!0):m=!1),m||ei(a)),Dt(a),m=a.type,g=a.pendingProps,b=r!==null?r.memoizedProps:null,c=g.children,Td(m,g)?c=null:b!==null&&Td(m,b)&&(a.flags|=32),a.memoizedState!==null&&(m=wh(r,a,Rw,null,null,l),Ql._currentValue=m),Au(r,a),Nt(r,a,c,l),a.child;case 6:return r===null&&Pe&&((r=l=rt)&&(l=mT(l,a.pendingProps,An),l!==null?(a.stateNode=l,Ot=a,rt=null,r=!0):r=!1),r||ei(a)),null;case 13:return Ev(r,a,l);case 4:return Qe(a,a.stateNode.containerInfo),c=a.pendingProps,r===null?a.child=ea(a,null,c,l):Nt(r,a,c,l),a.child;case 11:return mv(r,a,a.type,a.pendingProps,l);case 7:return Nt(r,a,a.pendingProps,l),a.child;case 8:return Nt(r,a,a.pendingProps.children,l),a.child;case 12:return Nt(r,a,a.pendingProps.children,l),a.child;case 10:return c=a.pendingProps,ti(a,a.type,c.value),Nt(r,a,c.children,l),a.child;case 9:return m=a.type._context,c=a.pendingProps.children,Xi(a),m=Lt(m),c=c(m),a.flags|=1,Nt(r,a,c,l),a.child;case 14:return pv(r,a,a.type,a.pendingProps,l);case 15:return gv(r,a,a.type,a.pendingProps,l);case 19:return Tv(r,a,l);case 31:return Pw(r,a,l);case 22:return yv(r,a,l,a.pendingProps);case 24:return Xi(a),c=Lt(dt),r===null?(m=mh(),m===null&&(m=et,g=hh(),m.pooledCache=g,g.refCount++,g!==null&&(m.pooledCacheLanes|=l),m=g),a.memoizedState={parent:c,cache:m},gh(a),ti(a,dt,m)):((r.lanes&l)!==0&&(yh(r,a),kl(a,null,null,l),Tl()),m=r.memoizedState,g=a.memoizedState,m.parent!==c?(m={parent:c,cache:c},a.memoizedState=m,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=m),ti(a,dt,c)):(c=g.cache,ti(a,dt,c),c!==m.cache&&fh(a,[dt],l,!0))),Nt(r,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function Tr(r){r.flags|=4}function Jh(r,a,l,c,m){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(m&335544128)===m)if(r.stateNode.complete)r.flags|=8192;else if(Wv())r.flags|=8192;else throw Wi=mu,ph}else r.flags&=-16777217}function Cv(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!V_(a))if(Wv())r.flags|=8192;else throw Wi=mu,ph}function Lu(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?sg():536870912,r.lanes|=a,fs|=a)}function Nl(r,a){if(!Pe)switch(r.tailMode){case"hidden":a=r.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function it(r){var a=r.alternate!==null&&r.alternate.child===r.child,l=0,c=0;if(a)for(var m=r.child;m!==null;)l|=m.lanes|m.childLanes,c|=m.subtreeFlags&65011712,c|=m.flags&65011712,m.return=r,m=m.sibling;else for(m=r.child;m!==null;)l|=m.lanes|m.childLanes,c|=m.subtreeFlags,c|=m.flags,m.return=r,m=m.sibling;return r.subtreeFlags|=c,r.childLanes=l,a}function Iw(r,a,l){var c=a.pendingProps;switch(sh(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(a),null;case 1:return it(a),null;case 3:return l=a.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),xr(dt),Me(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(Ja(a)?Tr(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,oh())),it(a),null;case 26:var m=a.type,g=a.memoizedState;return r===null?(Tr(a),g!==null?(it(a),Cv(a,g)):(it(a),Jh(a,m,null,c,l))):g?g!==r.memoizedState?(Tr(a),it(a),Cv(a,g)):(it(a),a.flags&=-16777217):(r=r.memoizedProps,r!==c&&Tr(a),it(a),Jh(a,m,r,c,l)),null;case 27:if(on(a),l=he.current,m=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==c&&Tr(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return it(a),null}r=ue.current,Ja(a)?sy(a):(r=D_(m,c,l),a.stateNode=r,Tr(a))}return it(a),null;case 5:if(on(a),m=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==c&&Tr(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return it(a),null}if(g=ue.current,Ja(a))sy(a);else{var b=Qu(he.current);switch(g){case 1:g=b.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:g=b.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":g=b.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":g=b.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":g=b.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof c.is=="string"?b.createElement("select",{is:c.is}):b.createElement("select"),c.multiple?g.multiple=!0:c.size&&(g.size=c.size);break;default:g=typeof c.is=="string"?b.createElement(m,{is:c.is}):b.createElement(m)}}g[At]=a,g[Xt]=c;e:for(b=a.child;b!==null;){if(b.tag===5||b.tag===6)g.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===a)break e;for(;b.sibling===null;){if(b.return===null||b.return===a)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}a.stateNode=g;e:switch(jt(g,m,c),m){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Tr(a)}}return it(a),Jh(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,l),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==c&&Tr(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(i(166));if(r=he.current,Ja(a)){if(r=a.stateNode,l=a.memoizedProps,c=null,m=Ot,m!==null)switch(m.tag){case 27:case 5:c=m.memoizedProps}r[At]=a,r=!!(r.nodeValue===l||c!==null&&c.suppressHydrationWarning===!0||E_(r.nodeValue,l)),r||ei(a,!0)}else r=Qu(r).createTextNode(c),r[At]=a,a.stateNode=r}return it(a),null;case 31:if(l=a.memoizedState,r===null||r.memoizedState!==null){if(c=Ja(a),l!==null){if(r===null){if(!c)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[At]=a}else Yi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;it(a),r=!1}else l=oh(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=l),r=!0;if(!r)return a.flags&256?(mn(a),a):(mn(a),null);if((a.flags&128)!==0)throw Error(i(558))}return it(a),null;case 13:if(c=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(m=Ja(a),c!==null&&c.dehydrated!==null){if(r===null){if(!m)throw Error(i(318));if(m=a.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[At]=a}else Yi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;it(a),m=!1}else m=oh(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=m),m=!0;if(!m)return a.flags&256?(mn(a),a):(mn(a),null)}return mn(a),(a.flags&128)!==0?(a.lanes=l,a):(l=c!==null,r=r!==null&&r.memoizedState!==null,l&&(c=a.child,m=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(m=c.alternate.memoizedState.cachePool.pool),g=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==m&&(c.flags|=2048)),l!==r&&l&&(a.child.flags|=8192),Lu(a,a.updateQueue),it(a),null);case 4:return Me(),r===null&&bd(a.stateNode.containerInfo),it(a),null;case 10:return xr(a.type),it(a),null;case 19:if(X(ct),c=a.memoizedState,c===null)return it(a),null;if(m=(a.flags&128)!==0,g=c.rendering,g===null)if(m)Nl(c,!1);else{if(lt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(g=vu(r),g!==null){for(a.flags|=128,Nl(c,!1),r=g.updateQueue,a.updateQueue=r,Lu(a,r),a.subtreeFlags=0,r=l,l=a.child;l!==null;)ty(l,r),l=l.sibling;return O(ct,ct.current&1|2),Pe&&_r(a,c.treeForkCount),a.child}r=r.sibling}c.tail!==null&&Be()>Pu&&(a.flags|=128,m=!0,Nl(c,!1),a.lanes=4194304)}else{if(!m)if(r=vu(g),r!==null){if(a.flags|=128,m=!0,r=r.updateQueue,a.updateQueue=r,Lu(a,r),Nl(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!Pe)return it(a),null}else 2*Be()-c.renderingStartTime>Pu&&l!==536870912&&(a.flags|=128,m=!0,Nl(c,!1),a.lanes=4194304);c.isBackwards?(g.sibling=a.child,a.child=g):(r=c.last,r!==null?r.sibling=g:a.child=g,c.last=g)}return c.tail!==null?(r=c.tail,c.rendering=r,c.tail=r.sibling,c.renderingStartTime=Be(),r.sibling=null,l=ct.current,O(ct,m?l&1|2:l&1),Pe&&_r(a,c.treeForkCount),r):(it(a),null);case 22:case 23:return mn(a),xh(),c=a.memoizedState!==null,r!==null?r.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(l&536870912)!==0&&(a.flags&128)===0&&(it(a),a.subtreeFlags&6&&(a.flags|=8192)):it(a),l=a.updateQueue,l!==null&&Lu(a,l.retryQueue),l=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==l&&(a.flags|=2048),r!==null&&X(Zi),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),xr(dt),it(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function Bw(r,a){switch(sh(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return xr(dt),Me(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return on(a),null;case 31:if(a.memoizedState!==null){if(mn(a),a.alternate===null)throw Error(i(340));Yi()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(mn(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Yi()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return X(ct),null;case 4:return Me(),null;case 10:return xr(a.type),null;case 22:case 23:return mn(a),xh(),r!==null&&X(Zi),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return xr(dt),null;case 25:return null;default:return null}}function Rv(r,a){switch(sh(a),a.tag){case 3:xr(dt),Me();break;case 26:case 27:case 5:on(a);break;case 4:Me();break;case 31:a.memoizedState!==null&&mn(a);break;case 13:mn(a);break;case 19:X(ct);break;case 10:xr(a.type);break;case 22:case 23:mn(a),xh(),r!==null&&X(Zi);break;case 24:xr(dt)}}function jl(r,a){try{var l=a.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var m=c.next;l=m;do{if((l.tag&r)===r){c=void 0;var g=l.create,b=l.inst;c=g(),b.destroy=c}l=l.next}while(l!==m)}}catch(T){Ye(a,a.return,T)}}function li(r,a,l){try{var c=a.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var g=m.next;c=g;do{if((c.tag&r)===r){var b=c.inst,T=b.destroy;if(T!==void 0){b.destroy=void 0,m=a;var D=l,G=T;try{G()}catch(K){Ye(m,D,K)}}}c=c.next}while(c!==g)}}catch(K){Ye(a,a.return,K)}}function Av(r){var a=r.updateQueue;if(a!==null){var l=r.stateNode;try{_y(a,l)}catch(c){Ye(r,r.return,c)}}}function Ov(r,a,l){l.props=na(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(c){Ye(r,a,c)}}function Dl(r,a){try{var l=r.ref;if(l!==null){switch(r.tag){case 26:case 27:case 5:var c=r.stateNode;break;case 30:c=r.stateNode;break;default:c=r.stateNode}typeof l=="function"?r.refCleanup=l(c):l.current=c}}catch(m){Ye(r,a,m)}}function tr(r,a){var l=r.ref,c=r.refCleanup;if(l!==null)if(typeof c=="function")try{c()}catch(m){Ye(r,a,m)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(m){Ye(r,a,m)}else l.current=null}function Lv(r){var a=r.type,l=r.memoizedProps,c=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&c.focus();break e;case"img":l.src?c.src=l.src:l.srcSet&&(c.srcset=l.srcSet)}}catch(m){Ye(r,r.return,m)}}function Wh(r,a,l){try{var c=r.stateNode;lT(c,r.type,l,a),c[Xt]=a}catch(m){Ye(r,r.return,m)}}function Nv(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&mi(r.type)||r.tag===4}function ed(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Nv(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&mi(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function td(r,a,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(r,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(r),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=gr));else if(c!==4&&(c===27&&mi(r.type)&&(l=r.stateNode,a=null),r=r.child,r!==null))for(td(r,a,l),r=r.sibling;r!==null;)td(r,a,l),r=r.sibling}function Nu(r,a,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?l.insertBefore(r,a):l.appendChild(r);else if(c!==4&&(c===27&&mi(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(Nu(r,a,l),r=r.sibling;r!==null;)Nu(r,a,l),r=r.sibling}function jv(r){var a=r.stateNode,l=r.memoizedProps;try{for(var c=r.type,m=a.attributes;m.length;)a.removeAttributeNode(m[0]);jt(a,c,l),a[At]=r,a[Xt]=l}catch(g){Ye(r,r.return,g)}}var kr=!1,gt=!1,nd=!1,Dv=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function Uw(r,a){if(r=r.containerInfo,Ed=Wu,r=Qg(r),Kf(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var m=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break e}var b=0,T=-1,D=-1,G=0,K=0,ee=r,F=null;t:for(;;){for(var Y;ee!==l||m!==0&&ee.nodeType!==3||(T=b+m),ee!==g||c!==0&&ee.nodeType!==3||(D=b+c),ee.nodeType===3&&(b+=ee.nodeValue.length),(Y=ee.firstChild)!==null;)F=ee,ee=Y;for(;;){if(ee===r)break t;if(F===l&&++G===m&&(T=b),F===g&&++K===c&&(D=b),(Y=ee.nextSibling)!==null)break;ee=F,F=ee.parentNode}ee=Y}l=T===-1||D===-1?null:{start:T,end:D}}else l=null}l=l||{start:0,end:0}}else l=null;for(wd={focusedElem:r,selectionRange:l},Wu=!1,Tt=a;Tt!==null;)if(a=Tt,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,Tt=r;else for(;Tt!==null;){switch(a=Tt,g=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(l=0;l<r.length;l++)m=r[l],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&g!==null){r=void 0,l=a,m=g.memoizedProps,g=g.memoizedState,c=l.stateNode;try{var de=na(l.type,m);r=c.getSnapshotBeforeUpdate(de,g),c.__reactInternalSnapshotBeforeUpdate=r}catch(be){Ye(l,l.return,be)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,l=r.nodeType,l===9)Cd(r);else if(l===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Cd(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,Tt=r;break}Tt=a.return}}function Mv(r,a,l){var c=l.flags;switch(l.tag){case 0:case 11:case 15:Rr(r,l),c&4&&jl(5,l);break;case 1:if(Rr(r,l),c&4)if(r=l.stateNode,a===null)try{r.componentDidMount()}catch(b){Ye(l,l.return,b)}else{var m=na(l.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(m,a,r.__reactInternalSnapshotBeforeUpdate)}catch(b){Ye(l,l.return,b)}}c&64&&Av(l),c&512&&Dl(l,l.return);break;case 3:if(Rr(r,l),c&64&&(r=l.updateQueue,r!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{_y(r,a)}catch(b){Ye(l,l.return,b)}}break;case 27:a===null&&c&4&&jv(l);case 26:case 5:Rr(r,l),a===null&&c&4&&Lv(l),c&512&&Dl(l,l.return);break;case 12:Rr(r,l);break;case 31:Rr(r,l),c&4&&Iv(r,l);break;case 13:Rr(r,l),c&4&&Bv(r,l),c&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=Kw.bind(null,l),pT(r,l))));break;case 22:if(c=l.memoizedState!==null||kr,!c){a=a!==null&&a.memoizedState!==null||gt,m=kr;var g=gt;kr=c,(gt=a)&&!g?Ar(r,l,(l.subtreeFlags&8772)!==0):Rr(r,l),kr=m,gt=g}break;case 30:break;default:Rr(r,l)}}function Pv(r){var a=r.alternate;a!==null&&(r.alternate=null,Pv(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Nf(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var at=null,Jt=!1;function Cr(r,a,l){for(l=l.child;l!==null;)zv(r,a,l),l=l.sibling}function zv(r,a,l){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(qt,l)}catch{}switch(l.tag){case 26:gt||tr(l,a),Cr(r,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:gt||tr(l,a);var c=at,m=Jt;mi(l.type)&&(at=l.stateNode,Jt=!1),Cr(r,a,l),Hl(l.stateNode),at=c,Jt=m;break;case 5:gt||tr(l,a);case 6:if(c=at,m=Jt,at=null,Cr(r,a,l),at=c,Jt=m,at!==null)if(Jt)try{(at.nodeType===9?at.body:at.nodeName==="HTML"?at.ownerDocument.body:at).removeChild(l.stateNode)}catch(g){Ye(l,a,g)}else try{at.removeChild(l.stateNode)}catch(g){Ye(l,a,g)}break;case 18:at!==null&&(Jt?(r=at,A_(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,l.stateNode),_s(r)):A_(at,l.stateNode));break;case 4:c=at,m=Jt,at=l.stateNode.containerInfo,Jt=!0,Cr(r,a,l),at=c,Jt=m;break;case 0:case 11:case 14:case 15:li(2,l,a),gt||li(4,l,a),Cr(r,a,l);break;case 1:gt||(tr(l,a),c=l.stateNode,typeof c.componentWillUnmount=="function"&&Ov(l,a,c)),Cr(r,a,l);break;case 21:Cr(r,a,l);break;case 22:gt=(c=gt)||l.memoizedState!==null,Cr(r,a,l),gt=c;break;default:Cr(r,a,l)}}function Iv(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{_s(r)}catch(l){Ye(a,a.return,l)}}}function Bv(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{_s(r)}catch(l){Ye(a,a.return,l)}}function qw(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new Dv),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new Dv),a;default:throw Error(i(435,r.tag))}}function ju(r,a){var l=qw(r);a.forEach(function(c){if(!l.has(c)){l.add(c);var m=Xw.bind(null,r,c);c.then(m,m)}})}function Wt(r,a){var l=a.deletions;if(l!==null)for(var c=0;c<l.length;c++){var m=l[c],g=r,b=a,T=b;e:for(;T!==null;){switch(T.tag){case 27:if(mi(T.type)){at=T.stateNode,Jt=!1;break e}break;case 5:at=T.stateNode,Jt=!1;break e;case 3:case 4:at=T.stateNode.containerInfo,Jt=!0;break e}T=T.return}if(at===null)throw Error(i(160));zv(g,b,m),at=null,Jt=!1,g=m.alternate,g!==null&&(g.return=null),m.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Uv(a,r),a=a.sibling}var Qn=null;function Uv(r,a){var l=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Wt(a,r),en(r),c&4&&(li(3,r,r.return),jl(3,r),li(5,r,r.return));break;case 1:Wt(a,r),en(r),c&512&&(gt||l===null||tr(l,l.return)),c&64&&kr&&(r=r.updateQueue,r!==null&&(c=r.callbacks,c!==null&&(l=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=l===null?c:l.concat(c))));break;case 26:var m=Qn;if(Wt(a,r),en(r),c&512&&(gt||l===null||tr(l,l.return)),c&4){var g=l!==null?l.memoizedState:null;if(c=r.memoizedState,l===null)if(c===null)if(r.stateNode===null){e:{c=r.type,l=r.memoizedProps,m=m.ownerDocument||m;t:switch(c){case"title":g=m.getElementsByTagName("title")[0],(!g||g[ll]||g[At]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=m.createElement(c),m.head.insertBefore(g,m.querySelector("head > title"))),jt(g,c,l),g[At]=r,wt(g),c=g;break e;case"link":var b=U_("link","href",m).get(c+(l.href||""));if(b){for(var T=0;T<b.length;T++)if(g=b[T],g.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&g.getAttribute("rel")===(l.rel==null?null:l.rel)&&g.getAttribute("title")===(l.title==null?null:l.title)&&g.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){b.splice(T,1);break t}}g=m.createElement(c),jt(g,c,l),m.head.appendChild(g);break;case"meta":if(b=U_("meta","content",m).get(c+(l.content||""))){for(T=0;T<b.length;T++)if(g=b[T],g.getAttribute("content")===(l.content==null?null:""+l.content)&&g.getAttribute("name")===(l.name==null?null:l.name)&&g.getAttribute("property")===(l.property==null?null:l.property)&&g.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&g.getAttribute("charset")===(l.charSet==null?null:l.charSet)){b.splice(T,1);break t}}g=m.createElement(c),jt(g,c,l),m.head.appendChild(g);break;default:throw Error(i(468,c))}g[At]=r,wt(g),c=g}r.stateNode=c}else q_(m,r.type,r.stateNode);else r.stateNode=B_(m,c,r.memoizedProps);else g!==c?(g===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):g.count--,c===null?q_(m,r.type,r.stateNode):B_(m,c,r.memoizedProps)):c===null&&r.stateNode!==null&&Wh(r,r.memoizedProps,l.memoizedProps)}break;case 27:Wt(a,r),en(r),c&512&&(gt||l===null||tr(l,l.return)),l!==null&&c&4&&Wh(r,r.memoizedProps,l.memoizedProps);break;case 5:if(Wt(a,r),en(r),c&512&&(gt||l===null||tr(l,l.return)),r.flags&32){m=r.stateNode;try{Va(m,"")}catch(de){Ye(r,r.return,de)}}c&4&&r.stateNode!=null&&(m=r.memoizedProps,Wh(r,m,l!==null?l.memoizedProps:m)),c&1024&&(nd=!0);break;case 6:if(Wt(a,r),en(r),c&4){if(r.stateNode===null)throw Error(i(162));c=r.memoizedProps,l=r.stateNode;try{l.nodeValue=c}catch(de){Ye(r,r.return,de)}}break;case 3:if(Ku=null,m=Qn,Qn=$u(a.containerInfo),Wt(a,r),Qn=m,en(r),c&4&&l!==null&&l.memoizedState.isDehydrated)try{_s(a.containerInfo)}catch(de){Ye(r,r.return,de)}nd&&(nd=!1,qv(r));break;case 4:c=Qn,Qn=$u(r.stateNode.containerInfo),Wt(a,r),en(r),Qn=c;break;case 12:Wt(a,r),en(r);break;case 31:Wt(a,r),en(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,ju(r,c)));break;case 13:Wt(a,r),en(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Mu=Be()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,ju(r,c)));break;case 22:m=r.memoizedState!==null;var D=l!==null&&l.memoizedState!==null,G=kr,K=gt;if(kr=G||m,gt=K||D,Wt(a,r),gt=K,kr=G,en(r),c&8192)e:for(a=r.stateNode,a._visibility=m?a._visibility&-2:a._visibility|1,m&&(l===null||D||kr||gt||ra(r)),l=null,a=r;;){if(a.tag===5||a.tag===26){if(l===null){D=l=a;try{if(g=D.stateNode,m)b=g.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{T=D.stateNode;var ee=D.memoizedProps.style,F=ee!=null&&ee.hasOwnProperty("display")?ee.display:null;T.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(de){Ye(D,D.return,de)}}}else if(a.tag===6){if(l===null){D=a;try{D.stateNode.nodeValue=m?"":D.memoizedProps}catch(de){Ye(D,D.return,de)}}}else if(a.tag===18){if(l===null){D=a;try{var Y=D.stateNode;m?O_(Y,!0):O_(D.stateNode,!1)}catch(de){Ye(D,D.return,de)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=r.updateQueue,c!==null&&(l=c.retryQueue,l!==null&&(c.retryQueue=null,ju(r,l))));break;case 19:Wt(a,r),en(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,ju(r,c)));break;case 30:break;case 21:break;default:Wt(a,r),en(r)}}function en(r){var a=r.flags;if(a&2){try{for(var l,c=r.return;c!==null;){if(Nv(c)){l=c;break}c=c.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var m=l.stateNode,g=ed(r);Nu(r,g,m);break;case 5:var b=l.stateNode;l.flags&32&&(Va(b,""),l.flags&=-33);var T=ed(r);Nu(r,T,b);break;case 3:case 4:var D=l.stateNode.containerInfo,G=ed(r);td(r,G,D);break;default:throw Error(i(161))}}catch(K){Ye(r,r.return,K)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function qv(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;qv(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Rr(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Mv(r,a.alternate,a),a=a.sibling}function ra(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:li(4,a,a.return),ra(a);break;case 1:tr(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&Ov(a,a.return,l),ra(a);break;case 27:Hl(a.stateNode);case 26:case 5:tr(a,a.return),ra(a);break;case 22:a.memoizedState===null&&ra(a);break;case 30:ra(a);break;default:ra(a)}r=r.sibling}}function Ar(r,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,m=r,g=a,b=g.flags;switch(g.tag){case 0:case 11:case 15:Ar(m,g,l),jl(4,g);break;case 1:if(Ar(m,g,l),c=g,m=c.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(G){Ye(c,c.return,G)}if(c=g,m=c.updateQueue,m!==null){var T=c.stateNode;try{var D=m.shared.hiddenCallbacks;if(D!==null)for(m.shared.hiddenCallbacks=null,m=0;m<D.length;m++)vy(D[m],T)}catch(G){Ye(c,c.return,G)}}l&&b&64&&Av(g),Dl(g,g.return);break;case 27:jv(g);case 26:case 5:Ar(m,g,l),l&&c===null&&b&4&&Lv(g),Dl(g,g.return);break;case 12:Ar(m,g,l);break;case 31:Ar(m,g,l),l&&b&4&&Iv(m,g);break;case 13:Ar(m,g,l),l&&b&4&&Bv(m,g);break;case 22:g.memoizedState===null&&Ar(m,g,l),Dl(g,g.return);break;case 30:break;default:Ar(m,g,l)}a=a.sibling}}function rd(r,a){var l=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==l&&(r!=null&&r.refCount++,l!=null&&bl(l))}function id(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&bl(r))}function $n(r,a,l,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Vv(r,a,l,c),a=a.sibling}function Vv(r,a,l,c){var m=a.flags;switch(a.tag){case 0:case 11:case 15:$n(r,a,l,c),m&2048&&jl(9,a);break;case 1:$n(r,a,l,c);break;case 3:$n(r,a,l,c),m&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&bl(r)));break;case 12:if(m&2048){$n(r,a,l,c),r=a.stateNode;try{var g=a.memoizedProps,b=g.id,T=g.onPostCommit;typeof T=="function"&&T(b,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(D){Ye(a,a.return,D)}}else $n(r,a,l,c);break;case 31:$n(r,a,l,c);break;case 13:$n(r,a,l,c);break;case 23:break;case 22:g=a.stateNode,b=a.alternate,a.memoizedState!==null?g._visibility&2?$n(r,a,l,c):Ml(r,a):g._visibility&2?$n(r,a,l,c):(g._visibility|=2,os(r,a,l,c,(a.subtreeFlags&10256)!==0||!1)),m&2048&&rd(b,a);break;case 24:$n(r,a,l,c),m&2048&&id(a.alternate,a);break;default:$n(r,a,l,c)}}function os(r,a,l,c,m){for(m=m&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var g=r,b=a,T=l,D=c,G=b.flags;switch(b.tag){case 0:case 11:case 15:os(g,b,T,D,m),jl(8,b);break;case 23:break;case 22:var K=b.stateNode;b.memoizedState!==null?K._visibility&2?os(g,b,T,D,m):Ml(g,b):(K._visibility|=2,os(g,b,T,D,m)),m&&G&2048&&rd(b.alternate,b);break;case 24:os(g,b,T,D,m),m&&G&2048&&id(b.alternate,b);break;default:os(g,b,T,D,m)}a=a.sibling}}function Ml(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=r,c=a,m=c.flags;switch(c.tag){case 22:Ml(l,c),m&2048&&rd(c.alternate,c);break;case 24:Ml(l,c),m&2048&&id(c.alternate,c);break;default:Ml(l,c)}a=a.sibling}}var Pl=8192;function us(r,a,l){if(r.subtreeFlags&Pl)for(r=r.child;r!==null;)Hv(r,a,l),r=r.sibling}function Hv(r,a,l){switch(r.tag){case 26:us(r,a,l),r.flags&Pl&&r.memoizedState!==null&&CT(l,Qn,r.memoizedState,r.memoizedProps);break;case 5:us(r,a,l);break;case 3:case 4:var c=Qn;Qn=$u(r.stateNode.containerInfo),us(r,a,l),Qn=c;break;case 22:r.memoizedState===null&&(c=r.alternate,c!==null&&c.memoizedState!==null?(c=Pl,Pl=16777216,us(r,a,l),Pl=c):us(r,a,l));break;default:us(r,a,l)}}function Gv(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function zl(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var c=a[l];Tt=c,Qv(c,r)}Gv(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Fv(r),r=r.sibling}function Fv(r){switch(r.tag){case 0:case 11:case 15:zl(r),r.flags&2048&&li(9,r,r.return);break;case 3:zl(r);break;case 12:zl(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,Du(r)):zl(r);break;default:zl(r)}}function Du(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var c=a[l];Tt=c,Qv(c,r)}Gv(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:li(8,a,a.return),Du(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,Du(a));break;default:Du(a)}r=r.sibling}}function Qv(r,a){for(;Tt!==null;){var l=Tt;switch(l.tag){case 0:case 11:case 15:li(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var c=l.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:bl(l.memoizedState.cache)}if(c=l.child,c!==null)c.return=l,Tt=c;else e:for(l=r;Tt!==null;){c=Tt;var m=c.sibling,g=c.return;if(Pv(c),c===l){Tt=null;break e}if(m!==null){m.return=g,Tt=m;break e}Tt=g}}}var Vw={getCacheForType:function(r){var a=Lt(dt),l=a.data.get(r);return l===void 0&&(l=r(),a.data.set(r,l)),l},cacheSignal:function(){return Lt(dt).controller.signal}},Hw=typeof WeakMap=="function"?WeakMap:Map,He=0,et=null,Oe=null,je=0,$e=0,pn=null,oi=!1,cs=!1,ad=!1,Or=0,lt=0,ui=0,ia=0,sd=0,gn=0,fs=0,Il=null,tn=null,ld=!1,Mu=0,$v=0,Pu=1/0,zu=null,ci=null,bt=0,fi=null,hs=null,Lr=0,od=0,ud=null,Yv=null,Bl=0,cd=null;function yn(){return(He&2)!==0&&je!==0?je&-je:V.T!==null?gd():cg()}function Kv(){if(gn===0)if((je&536870912)===0||Pe){var r=Fo;Fo<<=1,(Fo&3932160)===0&&(Fo=262144),gn=r}else gn=536870912;return r=dn.current,r!==null&&(r.flags|=32),gn}function nn(r,a,l){(r===et&&($e===2||$e===9)||r.cancelPendingCommit!==null)&&(ds(r,0),hi(r,je,gn,!1)),sl(r,l),((He&2)===0||r!==et)&&(r===et&&((He&2)===0&&(ia|=l),lt===4&&hi(r,je,gn,!1)),nr(r))}function Xv(r,a,l){if((He&6)!==0)throw Error(i(327));var c=!l&&(a&127)===0&&(a&r.expiredLanes)===0||al(r,a),m=c?Qw(r,a):hd(r,a,!0),g=c;do{if(m===0){cs&&!c&&hi(r,a,0,!1);break}else{if(l=r.current.alternate,g&&!Gw(l)){m=hd(r,a,!1),g=!1;continue}if(m===2){if(g=a,r.errorRecoveryDisabledLanes&g)var b=0;else b=r.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){a=b;e:{var T=r;m=Il;var D=T.current.memoizedState.isDehydrated;if(D&&(ds(T,b).flags|=256),b=hd(T,b,!1),b!==2){if(ad&&!D){T.errorRecoveryDisabledLanes|=g,ia|=g,m=4;break e}g=tn,tn=m,g!==null&&(tn===null?tn=g:tn.push.apply(tn,g))}m=b}if(g=!1,m!==2)continue}}if(m===1){ds(r,0),hi(r,a,0,!0);break}e:{switch(c=r,g=m,g){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:hi(c,a,gn,!oi);break e;case 2:tn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(m=Mu+300-Be(),10<m)){if(hi(c,a,gn,!oi),$o(c,0,!0)!==0)break e;Lr=a,c.timeoutHandle=C_(Zv.bind(null,c,l,tn,zu,ld,a,gn,ia,fs,oi,g,"Throttled",-0,0),m);break e}Zv(c,l,tn,zu,ld,a,gn,ia,fs,oi,g,null,-0,0)}}break}while(!0);nr(r)}function Zv(r,a,l,c,m,g,b,T,D,G,K,ee,F,Y){if(r.timeoutHandle=-1,ee=a.subtreeFlags,ee&8192||(ee&16785408)===16785408){ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:gr},Hv(a,g,ee);var de=(g&62914560)===g?Mu-Be():(g&4194048)===g?$v-Be():0;if(de=RT(ee,de),de!==null){Lr=g,r.cancelPendingCommit=de(a_.bind(null,r,a,g,l,c,m,b,T,D,K,ee,null,F,Y)),hi(r,g,b,!G);return}}a_(r,a,g,l,c,m,b,T,D)}function Gw(r){for(var a=r;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var c=0;c<l.length;c++){var m=l[c],g=m.getSnapshot;m=m.value;try{if(!fn(g(),m))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function hi(r,a,l,c){a&=~sd,a&=~ia,r.suspendedLanes|=a,r.pingedLanes&=~a,c&&(r.warmLanes|=a),c=r.expirationTimes;for(var m=a;0<m;){var g=31-We(m),b=1<<g;c[g]=-1,m&=~b}l!==0&&lg(r,l,a)}function Iu(){return(He&6)===0?(Ul(0),!1):!0}function fd(){if(Oe!==null){if($e===0)var r=Oe.return;else r=Oe,br=Ki=null,Ch(r),rs=null,Sl=0,r=Oe;for(;r!==null;)Rv(r.alternate,r),r=r.return;Oe=null}}function ds(r,a){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,cT(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),Lr=0,fd(),et=r,Oe=l=vr(r.current,null),je=a,$e=0,pn=null,oi=!1,cs=al(r,a),ad=!1,fs=gn=sd=ia=ui=lt=0,tn=Il=null,ld=!1,(a&8)!==0&&(a|=a&32);var c=r.entangledLanes;if(c!==0)for(r=r.entanglements,c&=a;0<c;){var m=31-We(c),g=1<<m;a|=r[m],c&=~g}return Or=a,au(),l}function Jv(r,a){Te=null,V.H=Ol,a===ns||a===du?(a=my(),$e=3):a===ph?(a=my(),$e=4):$e=a===Hh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,pn=a,Oe===null&&(lt=1,Cu(r,kn(a,r.current)))}function Wv(){var r=dn.current;return r===null?!0:(je&4194048)===je?On===null:(je&62914560)===je||(je&536870912)!==0?r===On:!1}function e_(){var r=V.H;return V.H=Ol,r===null?Ol:r}function t_(){var r=V.A;return V.A=Vw,r}function Bu(){lt=4,oi||(je&4194048)!==je&&dn.current!==null||(cs=!0),(ui&134217727)===0&&(ia&134217727)===0||et===null||hi(et,je,gn,!1)}function hd(r,a,l){var c=He;He|=2;var m=e_(),g=t_();(et!==r||je!==a)&&(zu=null,ds(r,a)),a=!1;var b=lt;e:do try{if($e!==0&&Oe!==null){var T=Oe,D=pn;switch($e){case 8:fd(),b=6;break e;case 3:case 2:case 9:case 6:dn.current===null&&(a=!0);var G=$e;if($e=0,pn=null,ms(r,T,D,G),l&&cs){b=0;break e}break;default:G=$e,$e=0,pn=null,ms(r,T,D,G)}}Fw(),b=lt;break}catch(K){Jv(r,K)}while(!0);return a&&r.shellSuspendCounter++,br=Ki=null,He=c,V.H=m,V.A=g,Oe===null&&(et=null,je=0,au()),b}function Fw(){for(;Oe!==null;)n_(Oe)}function Qw(r,a){var l=He;He|=2;var c=e_(),m=t_();et!==r||je!==a?(zu=null,Pu=Be()+500,ds(r,a)):cs=al(r,a);e:do try{if($e!==0&&Oe!==null){a=Oe;var g=pn;t:switch($e){case 1:$e=0,pn=null,ms(r,a,g,1);break;case 2:case 9:if(hy(g)){$e=0,pn=null,r_(a);break}a=function(){$e!==2&&$e!==9||et!==r||($e=7),nr(r)},g.then(a,a);break e;case 3:$e=7;break e;case 4:$e=5;break e;case 7:hy(g)?($e=0,pn=null,r_(a)):($e=0,pn=null,ms(r,a,g,7));break;case 5:var b=null;switch(Oe.tag){case 26:b=Oe.memoizedState;case 5:case 27:var T=Oe;if(b?V_(b):T.stateNode.complete){$e=0,pn=null;var D=T.sibling;if(D!==null)Oe=D;else{var G=T.return;G!==null?(Oe=G,Uu(G)):Oe=null}break t}}$e=0,pn=null,ms(r,a,g,5);break;case 6:$e=0,pn=null,ms(r,a,g,6);break;case 8:fd(),lt=6;break e;default:throw Error(i(462))}}$w();break}catch(K){Jv(r,K)}while(!0);return br=Ki=null,V.H=c,V.A=m,He=l,Oe!==null?0:(et=null,je=0,au(),lt)}function $w(){for(;Oe!==null&&!Ma();)n_(Oe)}function n_(r){var a=kv(r.alternate,r,Or);r.memoizedProps=r.pendingProps,a===null?Uu(r):Oe=a}function r_(r){var a=r,l=a.alternate;switch(a.tag){case 15:case 0:a=bv(l,a,a.pendingProps,a.type,void 0,je);break;case 11:a=bv(l,a,a.pendingProps,a.type.render,a.ref,je);break;case 5:Ch(a);default:Rv(l,a),a=Oe=ty(a,Or),a=kv(l,a,Or)}r.memoizedProps=r.pendingProps,a===null?Uu(r):Oe=a}function ms(r,a,l,c){br=Ki=null,Ch(a),rs=null,Sl=0;var m=a.return;try{if(Mw(r,m,a,l,je)){lt=1,Cu(r,kn(l,r.current)),Oe=null;return}}catch(g){if(m!==null)throw Oe=m,g;lt=1,Cu(r,kn(l,r.current)),Oe=null;return}a.flags&32768?(Pe||c===1?r=!0:cs||(je&536870912)!==0?r=!1:(oi=r=!0,(c===2||c===9||c===3||c===6)&&(c=dn.current,c!==null&&c.tag===13&&(c.flags|=16384))),i_(a,r)):Uu(a)}function Uu(r){var a=r;do{if((a.flags&32768)!==0){i_(a,oi);return}r=a.return;var l=Iw(a.alternate,a,Or);if(l!==null){Oe=l;return}if(a=a.sibling,a!==null){Oe=a;return}Oe=a=r}while(a!==null);lt===0&&(lt=5)}function i_(r,a){do{var l=Bw(r.alternate,r);if(l!==null){l.flags&=32767,Oe=l;return}if(l=r.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(r=r.sibling,r!==null)){Oe=r;return}Oe=r=l}while(r!==null);lt=6,Oe=null}function a_(r,a,l,c,m,g,b,T,D){r.cancelPendingCommit=null;do qu();while(bt!==0);if((He&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(g=a.lanes|a.childLanes,g|=eh,kE(r,l,g,b,T,D),r===et&&(Oe=et=null,je=0),hs=a,fi=r,Lr=l,od=g,ud=m,Yv=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,Zw(xe,function(){return c_(),null})):(r.callbackNode=null,r.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=V.T,V.T=null,m=te.p,te.p=2,b=He,He|=4;try{Uw(r,a,l)}finally{He=b,te.p=m,V.T=c}}bt=1,s_(),l_(),o_()}}function s_(){if(bt===1){bt=0;var r=fi,a=hs,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=V.T,V.T=null;var c=te.p;te.p=2;var m=He;He|=4;try{Uv(a,r);var g=wd,b=Qg(r.containerInfo),T=g.focusedElem,D=g.selectionRange;if(b!==T&&T&&T.ownerDocument&&Fg(T.ownerDocument.documentElement,T)){if(D!==null&&Kf(T)){var G=D.start,K=D.end;if(K===void 0&&(K=G),"selectionStart"in T)T.selectionStart=G,T.selectionEnd=Math.min(K,T.value.length);else{var ee=T.ownerDocument||document,F=ee&&ee.defaultView||window;if(F.getSelection){var Y=F.getSelection(),de=T.textContent.length,be=Math.min(D.start,de),Je=D.end===void 0?be:Math.min(D.end,de);!Y.extend&&be>Je&&(b=Je,Je=be,be=b);var U=Gg(T,be),I=Gg(T,Je);if(U&&I&&(Y.rangeCount!==1||Y.anchorNode!==U.node||Y.anchorOffset!==U.offset||Y.focusNode!==I.node||Y.focusOffset!==I.offset)){var H=ee.createRange();H.setStart(U.node,U.offset),Y.removeAllRanges(),be>Je?(Y.addRange(H),Y.extend(I.node,I.offset)):(H.setEnd(I.node,I.offset),Y.addRange(H))}}}}for(ee=[],Y=T;Y=Y.parentNode;)Y.nodeType===1&&ee.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<ee.length;T++){var J=ee[T];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}Wu=!!Ed,wd=Ed=null}finally{He=m,te.p=c,V.T=l}}r.current=a,bt=2}}function l_(){if(bt===2){bt=0;var r=fi,a=hs,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=V.T,V.T=null;var c=te.p;te.p=2;var m=He;He|=4;try{Mv(r,a.alternate,a)}finally{He=m,te.p=c,V.T=l}}bt=3}}function o_(){if(bt===4||bt===3){bt=0,Ue();var r=fi,a=hs,l=Lr,c=Yv;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?bt=5:(bt=0,hs=fi=null,u_(r,r.pendingLanes));var m=r.pendingLanes;if(m===0&&(ci=null),Of(l),a=a.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(qt,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=V.T,m=te.p,te.p=2,V.T=null;try{for(var g=r.onRecoverableError,b=0;b<c.length;b++){var T=c[b];g(T.value,{componentStack:T.stack})}}finally{V.T=a,te.p=m}}(Lr&3)!==0&&qu(),nr(r),m=r.pendingLanes,(l&261930)!==0&&(m&42)!==0?r===cd?Bl++:(Bl=0,cd=r):Bl=0,Ul(0)}}function u_(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,bl(a)))}function qu(){return s_(),l_(),o_(),c_()}function c_(){if(bt!==5)return!1;var r=fi,a=od;od=0;var l=Of(Lr),c=V.T,m=te.p;try{te.p=32>l?32:l,V.T=null,l=ud,ud=null;var g=fi,b=Lr;if(bt=0,hs=fi=null,Lr=0,(He&6)!==0)throw Error(i(331));var T=He;if(He|=4,Fv(g.current),Vv(g,g.current,b,l),He=T,Ul(0,!1),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(qt,g)}catch{}return!0}finally{te.p=m,V.T=c,u_(r,a)}}function f_(r,a,l){a=kn(l,a),a=Vh(r.stateNode,a,2),r=ii(r,a,2),r!==null&&(sl(r,2),nr(r))}function Ye(r,a,l){if(r.tag===3)f_(r,r,l);else for(;a!==null;){if(a.tag===3){f_(a,r,l);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ci===null||!ci.has(c))){r=kn(l,r),l=hv(2),c=ii(a,l,2),c!==null&&(dv(l,c,a,r),sl(c,2),nr(c));break}}a=a.return}}function dd(r,a,l){var c=r.pingCache;if(c===null){c=r.pingCache=new Hw;var m=new Set;c.set(a,m)}else m=c.get(a),m===void 0&&(m=new Set,c.set(a,m));m.has(l)||(ad=!0,m.add(l),r=Yw.bind(null,r,a,l),a.then(r,r))}function Yw(r,a,l){var c=r.pingCache;c!==null&&c.delete(a),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,et===r&&(je&l)===l&&(lt===4||lt===3&&(je&62914560)===je&&300>Be()-Mu?(He&2)===0&&ds(r,0):sd|=l,fs===je&&(fs=0)),nr(r)}function h_(r,a){a===0&&(a=sg()),r=Qi(r,a),r!==null&&(sl(r,a),nr(r))}function Kw(r){var a=r.memoizedState,l=0;a!==null&&(l=a.retryLane),h_(r,l)}function Xw(r,a){var l=0;switch(r.tag){case 31:case 13:var c=r.stateNode,m=r.memoizedState;m!==null&&(l=m.retryLane);break;case 19:c=r.stateNode;break;case 22:c=r.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(a),h_(r,l)}function Zw(r,a){return Hn(r,a)}var Vu=null,ps=null,md=!1,Hu=!1,pd=!1,di=0;function nr(r){r!==ps&&r.next===null&&(ps===null?Vu=ps=r:ps=ps.next=r),Hu=!0,md||(md=!0,Ww())}function Ul(r,a){if(!pd&&Hu){pd=!0;do for(var l=!1,c=Vu;c!==null;){if(r!==0){var m=c.pendingLanes;if(m===0)var g=0;else{var b=c.suspendedLanes,T=c.pingedLanes;g=(1<<31-We(42|r)+1)-1,g&=m&~(b&~T),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(l=!0,g_(c,g))}else g=je,g=$o(c,c===et?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||al(c,g)||(l=!0,g_(c,g));c=c.next}while(l);pd=!1}}function Jw(){d_()}function d_(){Hu=md=!1;var r=0;di!==0&&uT()&&(r=di);for(var a=Be(),l=null,c=Vu;c!==null;){var m=c.next,g=m_(c,a);g===0?(c.next=null,l===null?Vu=m:l.next=m,m===null&&(ps=l)):(l=c,(r!==0||(g&3)!==0)&&(Hu=!0)),c=m}bt!==0&&bt!==5||Ul(r),di!==0&&(di=0)}function m_(r,a){for(var l=r.suspendedLanes,c=r.pingedLanes,m=r.expirationTimes,g=r.pendingLanes&-62914561;0<g;){var b=31-We(g),T=1<<b,D=m[b];D===-1?((T&l)===0||(T&c)!==0)&&(m[b]=TE(T,a)):D<=a&&(r.expiredLanes|=T),g&=~T}if(a=et,l=je,l=$o(r,r===a?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c=r.callbackNode,l===0||r===a&&($e===2||$e===9)||r.cancelPendingCommit!==null)return c!==null&&c!==null&&Yr(c),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||al(r,l)){if(a=l&-l,a===r.callbackPriority)return a;switch(c!==null&&Yr(c),Of(l)){case 2:case 8:l=oe;break;case 32:l=xe;break;case 268435456:l=Ge;break;default:l=xe}return c=p_.bind(null,r),l=Hn(l,c),r.callbackPriority=a,r.callbackNode=l,a}return c!==null&&c!==null&&Yr(c),r.callbackPriority=2,r.callbackNode=null,2}function p_(r,a){if(bt!==0&&bt!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(qu()&&r.callbackNode!==l)return null;var c=je;return c=$o(r,r===et?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c===0?null:(Xv(r,c,a),m_(r,Be()),r.callbackNode!=null&&r.callbackNode===l?p_.bind(null,r):null)}function g_(r,a){if(qu())return null;Xv(r,a,!0)}function Ww(){fT(function(){(He&6)!==0?Hn(Z,Jw):d_()})}function gd(){if(di===0){var r=es;r===0&&(r=Go,Go<<=1,(Go&261888)===0&&(Go=256)),di=r}return di}function y_(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Zo(""+r)}function v_(r,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,r.id&&l.setAttribute("form",r.id),a.parentNode.insertBefore(l,a),r=new FormData(r),l.parentNode.removeChild(l),r}function eT(r,a,l,c,m){if(a==="submit"&&l&&l.stateNode===m){var g=y_((m[Xt]||null).action),b=c.submitter;b&&(a=(a=b[Xt]||null)?y_(a.formAction):b.getAttribute("formAction"),a!==null&&(g=a,b=null));var T=new tu("action","action",null,c,m);r.push({event:T,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(di!==0){var D=b?v_(m,b):new FormData(m);Ph(l,{pending:!0,data:D,method:m.method,action:g},null,D)}}else typeof g=="function"&&(T.preventDefault(),D=b?v_(m,b):new FormData(m),Ph(l,{pending:!0,data:D,method:m.method,action:g},g,D))},currentTarget:m}]})}}for(var yd=0;yd<Wf.length;yd++){var vd=Wf[yd],tT=vd.toLowerCase(),nT=vd[0].toUpperCase()+vd.slice(1);Fn(tT,"on"+nT)}Fn(Kg,"onAnimationEnd"),Fn(Xg,"onAnimationIteration"),Fn(Zg,"onAnimationStart"),Fn("dblclick","onDoubleClick"),Fn("focusin","onFocus"),Fn("focusout","onBlur"),Fn(vw,"onTransitionRun"),Fn(_w,"onTransitionStart"),Fn(bw,"onTransitionCancel"),Fn(Jg,"onTransitionEnd"),Ua("onMouseEnter",["mouseout","mouseover"]),Ua("onMouseLeave",["mouseout","mouseover"]),Ua("onPointerEnter",["pointerout","pointerover"]),Ua("onPointerLeave",["pointerout","pointerover"]),Vi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Vi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Vi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Vi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Vi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Vi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ql="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(" "),rT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ql));function __(r,a){a=(a&4)!==0;for(var l=0;l<r.length;l++){var c=r[l],m=c.event;c=c.listeners;e:{var g=void 0;if(a)for(var b=c.length-1;0<=b;b--){var T=c[b],D=T.instance,G=T.currentTarget;if(T=T.listener,D!==g&&m.isPropagationStopped())break e;g=T,m.currentTarget=G;try{g(m)}catch(K){iu(K)}m.currentTarget=null,g=D}else for(b=0;b<c.length;b++){if(T=c[b],D=T.instance,G=T.currentTarget,T=T.listener,D!==g&&m.isPropagationStopped())break e;g=T,m.currentTarget=G;try{g(m)}catch(K){iu(K)}m.currentTarget=null,g=D}}}}function Le(r,a){var l=a[Lf];l===void 0&&(l=a[Lf]=new Set);var c=r+"__bubble";l.has(c)||(b_(a,r,2,!1),l.add(c))}function _d(r,a,l){var c=0;a&&(c|=4),b_(l,r,c,a)}var Gu="_reactListening"+Math.random().toString(36).slice(2);function bd(r){if(!r[Gu]){r[Gu]=!0,dg.forEach(function(l){l!=="selectionchange"&&(rT.has(l)||_d(l,!1,r),_d(l,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[Gu]||(a[Gu]=!0,_d("selectionchange",!1,a))}}function b_(r,a,l,c){switch(K_(a)){case 2:var m=LT;break;case 8:m=NT;break;default:m=Md}l=m.bind(null,a,l,r),m=void 0,!Uf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(m=!0),c?m!==void 0?r.addEventListener(a,l,{capture:!0,passive:m}):r.addEventListener(a,l,!0):m!==void 0?r.addEventListener(a,l,{passive:m}):r.addEventListener(a,l,!1)}function xd(r,a,l,c,m){var g=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var b=c.tag;if(b===3||b===4){var T=c.stateNode.containerInfo;if(T===m)break;if(b===4)for(b=c.return;b!==null;){var D=b.tag;if((D===3||D===4)&&b.stateNode.containerInfo===m)return;b=b.return}for(;T!==null;){if(b=za(T),b===null)return;if(D=b.tag,D===5||D===6||D===26||D===27){c=g=b;continue e}T=T.parentNode}}c=c.return}Tg(function(){var G=g,K=If(l),ee=[];e:{var F=Wg.get(r);if(F!==void 0){var Y=tu,de=r;switch(r){case"keypress":if(Wo(l)===0)break e;case"keydown":case"keyup":Y=XE;break;case"focusin":de="focus",Y=Gf;break;case"focusout":de="blur",Y=Gf;break;case"beforeblur":case"afterblur":Y=Gf;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Rg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=IE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=WE;break;case Kg:case Xg:case Zg:Y=qE;break;case Jg:Y=tw;break;case"scroll":case"scrollend":Y=PE;break;case"wheel":Y=rw;break;case"copy":case"cut":case"paste":Y=HE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Og;break;case"toggle":case"beforetoggle":Y=aw}var be=(a&4)!==0,Je=!be&&(r==="scroll"||r==="scrollend"),U=be?F!==null?F+"Capture":null:F;be=[];for(var I=G,H;I!==null;){var J=I;if(H=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||H===null||U===null||(J=ul(I,U),J!=null&&be.push(Vl(I,J,H))),Je)break;I=I.return}0<be.length&&(F=new Y(F,de,null,l,K),ee.push({event:F,listeners:be}))}}if((a&7)===0){e:{if(F=r==="mouseover"||r==="pointerover",Y=r==="mouseout"||r==="pointerout",F&&l!==zf&&(de=l.relatedTarget||l.fromElement)&&(za(de)||de[Pa]))break e;if((Y||F)&&(F=K.window===K?K:(F=K.ownerDocument)?F.defaultView||F.parentWindow:window,Y?(de=l.relatedTarget||l.toElement,Y=G,de=de?za(de):null,de!==null&&(Je=o(de),be=de.tag,de!==Je||be!==5&&be!==27&&be!==6)&&(de=null)):(Y=null,de=G),Y!==de)){if(be=Rg,J="onMouseLeave",U="onMouseEnter",I="mouse",(r==="pointerout"||r==="pointerover")&&(be=Og,J="onPointerLeave",U="onPointerEnter",I="pointer"),Je=Y==null?F:ol(Y),H=de==null?F:ol(de),F=new be(J,I+"leave",Y,l,K),F.target=Je,F.relatedTarget=H,J=null,za(K)===G&&(be=new be(U,I+"enter",de,l,K),be.target=H,be.relatedTarget=Je,J=be),Je=J,Y&&de)t:{for(be=iT,U=Y,I=de,H=0,J=U;J;J=be(J))H++;J=0;for(var ve=I;ve;ve=be(ve))J++;for(;0<H-J;)U=be(U),H--;for(;0<J-H;)I=be(I),J--;for(;H--;){if(U===I||I!==null&&U===I.alternate){be=U;break t}U=be(U),I=be(I)}be=null}else be=null;Y!==null&&x_(ee,F,Y,be,!1),de!==null&&Je!==null&&x_(ee,Je,de,be,!0)}}e:{if(F=G?ol(G):window,Y=F.nodeName&&F.nodeName.toLowerCase(),Y==="select"||Y==="input"&&F.type==="file")var qe=Ig;else if(Pg(F))if(Bg)qe=pw;else{qe=dw;var pe=hw}else Y=F.nodeName,!Y||Y.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?G&&Pf(G.elementType)&&(qe=Ig):qe=mw;if(qe&&(qe=qe(r,G))){zg(ee,qe,l,K);break e}pe&&pe(r,F,G),r==="focusout"&&G&&F.type==="number"&&G.memoizedProps.value!=null&&Mf(F,"number",F.value)}switch(pe=G?ol(G):window,r){case"focusin":(Pg(pe)||pe.contentEditable==="true")&&(Qa=pe,Xf=G,yl=null);break;case"focusout":yl=Xf=Qa=null;break;case"mousedown":Zf=!0;break;case"contextmenu":case"mouseup":case"dragend":Zf=!1,$g(ee,l,K);break;case"selectionchange":if(yw)break;case"keydown":case"keyup":$g(ee,l,K)}var ke;if(Qf)e:{switch(r){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else Fa?Dg(r,l)&&(De="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(De="onCompositionStart");De&&(Lg&&l.locale!=="ko"&&(Fa||De!=="onCompositionStart"?De==="onCompositionEnd"&&Fa&&(ke=kg()):(Zr=K,qf="value"in Zr?Zr.value:Zr.textContent,Fa=!0)),pe=Fu(G,De),0<pe.length&&(De=new Ag(De,r,null,l,K),ee.push({event:De,listeners:pe}),ke?De.data=ke:(ke=Mg(l),ke!==null&&(De.data=ke)))),(ke=lw?ow(r,l):uw(r,l))&&(De=Fu(G,"onBeforeInput"),0<De.length&&(pe=new Ag("onBeforeInput","beforeinput",null,l,K),ee.push({event:pe,listeners:De}),pe.data=ke)),eT(ee,r,G,l,K)}__(ee,a)})}function Vl(r,a,l){return{instance:r,listener:a,currentTarget:l}}function Fu(r,a){for(var l=a+"Capture",c=[];r!==null;){var m=r,g=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||g===null||(m=ul(r,l),m!=null&&c.unshift(Vl(r,m,g)),m=ul(r,a),m!=null&&c.push(Vl(r,m,g))),r.tag===3)return c;r=r.return}return[]}function iT(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function x_(r,a,l,c,m){for(var g=a._reactName,b=[];l!==null&&l!==c;){var T=l,D=T.alternate,G=T.stateNode;if(T=T.tag,D!==null&&D===c)break;T!==5&&T!==26&&T!==27||G===null||(D=G,m?(G=ul(l,g),G!=null&&b.unshift(Vl(l,G,D))):m||(G=ul(l,g),G!=null&&b.push(Vl(l,G,D)))),l=l.return}b.length!==0&&r.push({event:a,listeners:b})}var aT=/\r\n?/g,sT=/\u0000|\uFFFD/g;function S_(r){return(typeof r=="string"?r:""+r).replace(aT,`
50
- `).replace(sT,"")}function E_(r,a){return a=S_(a),S_(r)===a}function Ze(r,a,l,c,m,g){switch(l){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||Va(r,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&Va(r,""+c);break;case"className":Ko(r,"class",c);break;case"tabIndex":Ko(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Ko(r,l,c);break;case"style":Eg(r,c,g);break;case"data":if(a!=="object"){Ko(r,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||l!=="href")){r.removeAttribute(l);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(l);break}c=Zo(""+c),r.setAttribute(l,c);break;case"action":case"formAction":if(typeof c=="function"){r.setAttribute(l,"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 g=="function"&&(l==="formAction"?(a!=="input"&&Ze(r,a,"name",m.name,m,null),Ze(r,a,"formEncType",m.formEncType,m,null),Ze(r,a,"formMethod",m.formMethod,m,null),Ze(r,a,"formTarget",m.formTarget,m,null)):(Ze(r,a,"encType",m.encType,m,null),Ze(r,a,"method",m.method,m,null),Ze(r,a,"target",m.target,m,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(l);break}c=Zo(""+c),r.setAttribute(l,c);break;case"onClick":c!=null&&(r.onclick=gr);break;case"onScroll":c!=null&&Le("scroll",r);break;case"onScrollEnd":c!=null&&Le("scrollend",r);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(l=c.__html,l!=null){if(m.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"multiple":r.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":r.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){r.removeAttribute("xlink:href");break}l=Zo(""+c),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(l,""+c):r.removeAttribute(l);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":c&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":c===!0?r.setAttribute(l,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(l,c):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?r.setAttribute(l,c):r.removeAttribute(l);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?r.removeAttribute(l):r.setAttribute(l,c);break;case"popover":Le("beforetoggle",r),Le("toggle",r),Yo(r,"popover",c);break;case"xlinkActuate":pr(r,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":pr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":pr(r,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":pr(r,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":pr(r,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":pr(r,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":pr(r,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":pr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":pr(r,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Yo(r,"is",c);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=DE.get(l)||l,Yo(r,l,c))}}function Sd(r,a,l,c,m,g){switch(l){case"style":Eg(r,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(l=c.__html,l!=null){if(m.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"children":typeof c=="string"?Va(r,c):(typeof c=="number"||typeof c=="bigint")&&Va(r,""+c);break;case"onScroll":c!=null&&Le("scroll",r);break;case"onScrollEnd":c!=null&&Le("scrollend",r);break;case"onClick":c!=null&&(r.onclick=gr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mg.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(m=l.endsWith("Capture"),a=l.slice(2,m?l.length-7:void 0),g=r[Xt]||null,g=g!=null?g[l]:null,typeof g=="function"&&r.removeEventListener(a,g,m),typeof c=="function")){typeof g!="function"&&g!==null&&(l in r?r[l]=null:r.hasAttribute(l)&&r.removeAttribute(l)),r.addEventListener(a,c,m);break e}l in r?r[l]=c:c===!0?r.setAttribute(l,""):Yo(r,l,c)}}}function jt(r,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",r),Le("load",r);var c=!1,m=!1,g;for(g in l)if(l.hasOwnProperty(g)){var b=l[g];if(b!=null)switch(g){case"src":c=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Ze(r,a,g,b,l,null)}}m&&Ze(r,a,"srcSet",l.srcSet,l,null),c&&Ze(r,a,"src",l.src,l,null);return;case"input":Le("invalid",r);var T=g=b=m=null,D=null,G=null;for(c in l)if(l.hasOwnProperty(c)){var K=l[c];if(K!=null)switch(c){case"name":m=K;break;case"type":b=K;break;case"checked":D=K;break;case"defaultChecked":G=K;break;case"value":g=K;break;case"defaultValue":T=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,a));break;default:Ze(r,a,c,K,l,null)}}_g(r,g,T,D,G,b,m,!1);return;case"select":Le("invalid",r),c=b=g=null;for(m in l)if(l.hasOwnProperty(m)&&(T=l[m],T!=null))switch(m){case"value":g=T;break;case"defaultValue":b=T;break;case"multiple":c=T;default:Ze(r,a,m,T,l,null)}a=g,l=b,r.multiple=!!c,a!=null?qa(r,!!c,a,!1):l!=null&&qa(r,!!c,l,!0);return;case"textarea":Le("invalid",r),g=m=c=null;for(b in l)if(l.hasOwnProperty(b)&&(T=l[b],T!=null))switch(b){case"value":c=T;break;case"defaultValue":m=T;break;case"children":g=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(i(91));break;default:Ze(r,a,b,T,l,null)}xg(r,c,m,g);return;case"option":for(D in l)if(l.hasOwnProperty(D)&&(c=l[D],c!=null))switch(D){case"selected":r.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Ze(r,a,D,c,l,null)}return;case"dialog":Le("beforetoggle",r),Le("toggle",r),Le("cancel",r),Le("close",r);break;case"iframe":case"object":Le("load",r);break;case"video":case"audio":for(c=0;c<ql.length;c++)Le(ql[c],r);break;case"image":Le("error",r),Le("load",r);break;case"details":Le("toggle",r);break;case"embed":case"source":case"link":Le("error",r),Le("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(G in l)if(l.hasOwnProperty(G)&&(c=l[G],c!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Ze(r,a,G,c,l,null)}return;default:if(Pf(a)){for(K in l)l.hasOwnProperty(K)&&(c=l[K],c!==void 0&&Sd(r,a,K,c,l,void 0));return}}for(T in l)l.hasOwnProperty(T)&&(c=l[T],c!=null&&Ze(r,a,T,c,l,null))}function lT(r,a,l,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,g=null,b=null,T=null,D=null,G=null,K=null;for(Y in l){var ee=l[Y];if(l.hasOwnProperty(Y)&&ee!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":D=ee;default:c.hasOwnProperty(Y)||Ze(r,a,Y,null,c,ee)}}for(var F in c){var Y=c[F];if(ee=l[F],c.hasOwnProperty(F)&&(Y!=null||ee!=null))switch(F){case"type":g=Y;break;case"name":m=Y;break;case"checked":G=Y;break;case"defaultChecked":K=Y;break;case"value":b=Y;break;case"defaultValue":T=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,a));break;default:Y!==ee&&Ze(r,a,F,Y,c,ee)}}Df(r,b,T,D,G,K,g,m);return;case"select":Y=b=T=F=null;for(g in l)if(D=l[g],l.hasOwnProperty(g)&&D!=null)switch(g){case"value":break;case"multiple":Y=D;default:c.hasOwnProperty(g)||Ze(r,a,g,null,c,D)}for(m in c)if(g=c[m],D=l[m],c.hasOwnProperty(m)&&(g!=null||D!=null))switch(m){case"value":F=g;break;case"defaultValue":T=g;break;case"multiple":b=g;default:g!==D&&Ze(r,a,m,g,c,D)}a=T,l=b,c=Y,F!=null?qa(r,!!l,F,!1):!!c!=!!l&&(a!=null?qa(r,!!l,a,!0):qa(r,!!l,l?[]:"",!1));return;case"textarea":Y=F=null;for(T in l)if(m=l[T],l.hasOwnProperty(T)&&m!=null&&!c.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:Ze(r,a,T,null,c,m)}for(b in c)if(m=c[b],g=l[b],c.hasOwnProperty(b)&&(m!=null||g!=null))switch(b){case"value":F=m;break;case"defaultValue":Y=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(i(91));break;default:m!==g&&Ze(r,a,b,m,c,g)}bg(r,F,Y);return;case"option":for(var de in l)if(F=l[de],l.hasOwnProperty(de)&&F!=null&&!c.hasOwnProperty(de))switch(de){case"selected":r.selected=!1;break;default:Ze(r,a,de,null,c,F)}for(D in c)if(F=c[D],Y=l[D],c.hasOwnProperty(D)&&F!==Y&&(F!=null||Y!=null))switch(D){case"selected":r.selected=F&&typeof F!="function"&&typeof F!="symbol";break;default:Ze(r,a,D,F,c,Y)}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 be in l)F=l[be],l.hasOwnProperty(be)&&F!=null&&!c.hasOwnProperty(be)&&Ze(r,a,be,null,c,F);for(G in c)if(F=c[G],Y=l[G],c.hasOwnProperty(G)&&F!==Y&&(F!=null||Y!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(i(137,a));break;default:Ze(r,a,G,F,c,Y)}return;default:if(Pf(a)){for(var Je in l)F=l[Je],l.hasOwnProperty(Je)&&F!==void 0&&!c.hasOwnProperty(Je)&&Sd(r,a,Je,void 0,c,F);for(K in c)F=c[K],Y=l[K],!c.hasOwnProperty(K)||F===Y||F===void 0&&Y===void 0||Sd(r,a,K,F,c,Y);return}}for(var U in l)F=l[U],l.hasOwnProperty(U)&&F!=null&&!c.hasOwnProperty(U)&&Ze(r,a,U,null,c,F);for(ee in c)F=c[ee],Y=l[ee],!c.hasOwnProperty(ee)||F===Y||F==null&&Y==null||Ze(r,a,ee,F,c,Y)}function w_(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function oT(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,l=performance.getEntriesByType("resource"),c=0;c<l.length;c++){var m=l[c],g=m.transferSize,b=m.initiatorType,T=m.duration;if(g&&T&&w_(b)){for(b=0,T=m.responseEnd,c+=1;c<l.length;c++){var D=l[c],G=D.startTime;if(G>T)break;var K=D.transferSize,ee=D.initiatorType;K&&w_(ee)&&(D=D.responseEnd,b+=K*(D<T?1:(T-G)/(D-G)))}if(--c,a+=8*(g+b)/(m.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Ed=null,wd=null;function Qu(r){return r.nodeType===9?r:r.ownerDocument}function T_(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function k_(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function Td(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var kd=null;function uT(){var r=window.event;return r&&r.type==="popstate"?r===kd?!1:(kd=r,!0):(kd=null,!1)}var C_=typeof setTimeout=="function"?setTimeout:void 0,cT=typeof clearTimeout=="function"?clearTimeout:void 0,R_=typeof Promise=="function"?Promise:void 0,fT=typeof queueMicrotask=="function"?queueMicrotask:typeof R_<"u"?function(r){return R_.resolve(null).then(r).catch(hT)}:C_;function hT(r){setTimeout(function(){throw r})}function mi(r){return r==="head"}function A_(r,a){var l=a,c=0;do{var m=l.nextSibling;if(r.removeChild(l),m&&m.nodeType===8)if(l=m.data,l==="/$"||l==="/&"){if(c===0){r.removeChild(m),_s(a);return}c--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")c++;else if(l==="html")Hl(r.ownerDocument.documentElement);else if(l==="head"){l=r.ownerDocument.head,Hl(l);for(var g=l.firstChild;g;){var b=g.nextSibling,T=g.nodeName;g[ll]||T==="SCRIPT"||T==="STYLE"||T==="LINK"&&g.rel.toLowerCase()==="stylesheet"||l.removeChild(g),g=b}}else l==="body"&&Hl(r.ownerDocument.body);l=m}while(l);_s(a)}function O_(r,a){var l=r;r=0;do{var c=l.nextSibling;if(l.nodeType===1?a?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(a?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),c&&c.nodeType===8)if(l=c.data,l==="/$"){if(r===0)break;r--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||r++;l=c}while(l)}function Cd(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Cd(l),Nf(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}r.removeChild(l)}}function dT(r,a,l,c){for(;r.nodeType===1;){var m=l;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(c){if(!r[ll])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(g=r.getAttribute("rel"),g==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(g!==m.rel||r.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||r.getAttribute("title")!==(m.title==null?null:m.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(g=r.getAttribute("src"),(g!==(m.src==null?null:m.src)||r.getAttribute("type")!==(m.type==null?null:m.type)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&g&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var g=m.name==null?null:""+m.name;if(m.type==="hidden"&&r.getAttribute("name")===g)return r}else return r;if(r=Ln(r.nextSibling),r===null)break}return null}function mT(r,a,l){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=Ln(r.nextSibling),r===null))return null;return r}function L_(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Ln(r.nextSibling),r===null))return null;return r}function Rd(r){return r.data==="$?"||r.data==="$~"}function Ad(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function pT(r,a){var l=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||l.readyState!=="loading")a();else{var c=function(){a(),l.removeEventListener("DOMContentLoaded",c)};l.addEventListener("DOMContentLoaded",c),r._reactRetry=c}}function Ln(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var Od=null;function N_(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"||l==="/&"){if(a===0)return Ln(r.nextSibling);a--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++}r=r.nextSibling}return null}function j_(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(a===0)return r;a--}else l!=="/$"&&l!=="/&"||a++}r=r.previousSibling}return null}function D_(r,a,l){switch(a=Qu(l),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function Hl(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Nf(r)}var Nn=new Map,M_=new Set;function $u(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Nr=te.d;te.d={f:gT,r:yT,D:vT,C:_T,L:bT,m:xT,X:ET,S:ST,M:wT};function gT(){var r=Nr.f(),a=Iu();return r||a}function yT(r){var a=Ia(r);a!==null&&a.tag===5&&a.type==="form"?Jy(a):Nr.r(r)}var gs=typeof document>"u"?null:document;function P_(r,a,l){var c=gs;if(c&&typeof a=="string"&&a){var m=wn(a);m='link[rel="'+r+'"][href="'+m+'"]',typeof l=="string"&&(m+='[crossorigin="'+l+'"]'),M_.has(m)||(M_.add(m),r={rel:r,crossOrigin:l,href:a},c.querySelector(m)===null&&(a=c.createElement("link"),jt(a,"link",r),wt(a),c.head.appendChild(a)))}}function vT(r){Nr.D(r),P_("dns-prefetch",r,null)}function _T(r,a){Nr.C(r,a),P_("preconnect",r,a)}function bT(r,a,l){Nr.L(r,a,l);var c=gs;if(c&&r&&a){var m='link[rel="preload"][as="'+wn(a)+'"]';a==="image"&&l&&l.imageSrcSet?(m+='[imagesrcset="'+wn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(m+='[imagesizes="'+wn(l.imageSizes)+'"]')):m+='[href="'+wn(r)+'"]';var g=m;switch(a){case"style":g=ys(r);break;case"script":g=vs(r)}Nn.has(g)||(r=p({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:r,as:a},l),Nn.set(g,r),c.querySelector(m)!==null||a==="style"&&c.querySelector(Gl(g))||a==="script"&&c.querySelector(Fl(g))||(a=c.createElement("link"),jt(a,"link",r),wt(a),c.head.appendChild(a)))}}function xT(r,a){Nr.m(r,a);var l=gs;if(l&&r){var c=a&&typeof a.as=="string"?a.as:"script",m='link[rel="modulepreload"][as="'+wn(c)+'"][href="'+wn(r)+'"]',g=m;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=vs(r)}if(!Nn.has(g)&&(r=p({rel:"modulepreload",href:r},a),Nn.set(g,r),l.querySelector(m)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Fl(g)))return}c=l.createElement("link"),jt(c,"link",r),wt(c),l.head.appendChild(c)}}}function ST(r,a,l){Nr.S(r,a,l);var c=gs;if(c&&r){var m=Ba(c).hoistableStyles,g=ys(r);a=a||"default";var b=m.get(g);if(!b){var T={loading:0,preload:null};if(b=c.querySelector(Gl(g)))T.loading=5;else{r=p({rel:"stylesheet",href:r,"data-precedence":a},l),(l=Nn.get(g))&&Ld(r,l);var D=b=c.createElement("link");wt(D),jt(D,"link",r),D._p=new Promise(function(G,K){D.onload=G,D.onerror=K}),D.addEventListener("load",function(){T.loading|=1}),D.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Yu(b,a,c)}b={type:"stylesheet",instance:b,count:1,state:T},m.set(g,b)}}}function ET(r,a){Nr.X(r,a);var l=gs;if(l&&r){var c=Ba(l).hoistableScripts,m=vs(r),g=c.get(m);g||(g=l.querySelector(Fl(m)),g||(r=p({src:r,async:!0},a),(a=Nn.get(m))&&Nd(r,a),g=l.createElement("script"),wt(g),jt(g,"link",r),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(m,g))}}function wT(r,a){Nr.M(r,a);var l=gs;if(l&&r){var c=Ba(l).hoistableScripts,m=vs(r),g=c.get(m);g||(g=l.querySelector(Fl(m)),g||(r=p({src:r,async:!0,type:"module"},a),(a=Nn.get(m))&&Nd(r,a),g=l.createElement("script"),wt(g),jt(g,"link",r),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(m,g))}}function z_(r,a,l,c){var m=(m=he.current)?$u(m):null;if(!m)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=ys(l.href),l=Ba(m).hoistableStyles,c=l.get(a),c||(c={type:"style",instance:null,count:0,state:null},l.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){r=ys(l.href);var g=Ba(m).hoistableStyles,b=g.get(r);if(b||(m=m.ownerDocument||m,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(r,b),(g=m.querySelector(Gl(r)))&&!g._p&&(b.instance=g,b.state.loading=5),Nn.has(r)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Nn.set(r,l),g||TT(m,r,l,b.state))),a&&c===null)throw Error(i(528,""));return b}if(a&&c!==null)throw Error(i(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=vs(l),l=Ba(m).hoistableScripts,c=l.get(a),c||(c={type:"script",instance:null,count:0,state:null},l.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function ys(r){return'href="'+wn(r)+'"'}function Gl(r){return'link[rel="stylesheet"]['+r+"]"}function I_(r){return p({},r,{"data-precedence":r.precedence,precedence:null})}function TT(r,a,l,c){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=r.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),jt(a,"link",l),wt(a),r.head.appendChild(a))}function vs(r){return'[src="'+wn(r)+'"]'}function Fl(r){return"script[async]"+r}function B_(r,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var c=r.querySelector('style[data-href~="'+wn(l.href)+'"]');if(c)return a.instance=c,wt(c),c;var m=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return c=(r.ownerDocument||r).createElement("style"),wt(c),jt(c,"style",m),Yu(c,l.precedence,r),a.instance=c;case"stylesheet":m=ys(l.href);var g=r.querySelector(Gl(m));if(g)return a.state.loading|=4,a.instance=g,wt(g),g;c=I_(l),(m=Nn.get(m))&&Ld(c,m),g=(r.ownerDocument||r).createElement("link"),wt(g);var b=g;return b._p=new Promise(function(T,D){b.onload=T,b.onerror=D}),jt(g,"link",c),a.state.loading|=4,Yu(g,l.precedence,r),a.instance=g;case"script":return g=vs(l.src),(m=r.querySelector(Fl(g)))?(a.instance=m,wt(m),m):(c=l,(m=Nn.get(g))&&(c=p({},l),Nd(c,m)),r=r.ownerDocument||r,m=r.createElement("script"),wt(m),jt(m,"link",c),r.head.appendChild(m),a.instance=m);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,Yu(c,l.precedence,r));return a.instance}function Yu(r,a,l){for(var c=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=c.length?c[c.length-1]:null,g=m,b=0;b<c.length;b++){var T=c[b];if(T.dataset.precedence===a)g=T;else if(g!==m)break}g?g.parentNode.insertBefore(r,g.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(r,a.firstChild))}function Ld(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function Nd(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var Ku=null;function U_(r,a,l){if(Ku===null){var c=new Map,m=Ku=new Map;m.set(l,c)}else m=Ku,c=m.get(l),c||(c=new Map,m.set(l,c));if(c.has(r))return c;for(c.set(r,null),l=l.getElementsByTagName(r),m=0;m<l.length;m++){var g=l[m];if(!(g[ll]||g[At]||r==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var b=g.getAttribute(a)||"";b=r+b;var T=c.get(b);T?T.push(g):c.set(b,[g])}}return c}function q_(r,a,l){r=r.ownerDocument||r,r.head.insertBefore(l,a==="title"?r.querySelector("head > title"):null)}function kT(r,a,l){if(l===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return r=a.disabled,typeof a.precedence=="string"&&r==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function V_(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function CT(r,a,l,c){if(l.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var m=ys(c.href),g=a.querySelector(Gl(m));if(g){a=g._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=Xu.bind(r),a.then(r,r)),l.state.loading|=4,l.instance=g,wt(g);return}g=a.ownerDocument||a,c=I_(c),(m=Nn.get(m))&&Ld(c,m),g=g.createElement("link"),wt(g);var b=g;b._p=new Promise(function(T,D){b.onload=T,b.onerror=D}),jt(g,"link",c),l.instance=g}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(r.count++,l=Xu.bind(r),a.addEventListener("load",l),a.addEventListener("error",l))}}var jd=0;function RT(r,a){return r.stylesheets&&r.count===0&&Ju(r,r.stylesheets),0<r.count||0<r.imgCount?function(l){var c=setTimeout(function(){if(r.stylesheets&&Ju(r,r.stylesheets),r.unsuspend){var g=r.unsuspend;r.unsuspend=null,g()}},6e4+a);0<r.imgBytes&&jd===0&&(jd=62500*oT());var m=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Ju(r,r.stylesheets),r.unsuspend)){var g=r.unsuspend;r.unsuspend=null,g()}},(r.imgBytes>jd?50:800)+a);return r.unsuspend=l,function(){r.unsuspend=null,clearTimeout(c),clearTimeout(m)}}:null}function Xu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ju(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Zu=null;function Ju(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Zu=new Map,a.forEach(AT,r),Zu=null,Xu.call(r))}function AT(r,a){if(!(a.state.loading&4)){var l=Zu.get(r);if(l)var c=l.get(null);else{l=new Map,Zu.set(r,l);for(var m=r.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<m.length;g++){var b=m[g];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(l.set(b.dataset.precedence,b),c=b)}c&&l.set(null,c)}m=a.instance,b=m.getAttribute("data-precedence"),g=l.get(b)||c,g===c&&l.set(null,m),l.set(b,m),this.count++,c=Xu.bind(this),m.addEventListener("load",c),m.addEventListener("error",c),g?g.parentNode.insertBefore(m,g.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(m,r.firstChild)),a.state.loading|=4}}var Ql={$$typeof:L,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function OT(r,a,l,c,m,g,b,T,D){this.tag=1,this.containerInfo=r,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=Rf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rf(0),this.hiddenUpdates=Rf(null),this.identifierPrefix=c,this.onUncaughtError=m,this.onCaughtError=g,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function H_(r,a,l,c,m,g,b,T,D,G,K,ee){return r=new OT(r,a,l,b,D,G,K,ee,T),a=1,g===!0&&(a|=24),g=hn(3,null,null,a),r.current=g,g.stateNode=r,a=hh(),a.refCount++,r.pooledCache=a,a.refCount++,g.memoizedState={element:c,isDehydrated:l,cache:a},gh(g),r}function G_(r){return r?(r=Ka,r):Ka}function F_(r,a,l,c,m,g){m=G_(m),c.context===null?c.context=m:c.pendingContext=m,c=ri(a),c.payload={element:l},g=g===void 0?null:g,g!==null&&(c.callback=g),l=ii(r,c,a),l!==null&&(nn(l,r,a),wl(l,r,a))}function Q_(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<a?l:a}}function Dd(r,a){Q_(r,a),(r=r.alternate)&&Q_(r,a)}function $_(r){if(r.tag===13||r.tag===31){var a=Qi(r,67108864);a!==null&&nn(a,r,67108864),Dd(r,67108864)}}function Y_(r){if(r.tag===13||r.tag===31){var a=yn();a=Af(a);var l=Qi(r,a);l!==null&&nn(l,r,a),Dd(r,a)}}var Wu=!0;function LT(r,a,l,c){var m=V.T;V.T=null;var g=te.p;try{te.p=2,Md(r,a,l,c)}finally{te.p=g,V.T=m}}function NT(r,a,l,c){var m=V.T;V.T=null;var g=te.p;try{te.p=8,Md(r,a,l,c)}finally{te.p=g,V.T=m}}function Md(r,a,l,c){if(Wu){var m=Pd(c);if(m===null)xd(r,a,c,ec,l),X_(r,c);else if(DT(m,r,a,l,c))c.stopPropagation();else if(X_(r,c),a&4&&-1<jT.indexOf(r)){for(;m!==null;){var g=Ia(m);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var b=qi(g.pendingLanes);if(b!==0){var T=g;for(T.pendingLanes|=2,T.entangledLanes|=2;b;){var D=1<<31-We(b);T.entanglements[1]|=D,b&=~D}nr(g),(He&6)===0&&(Pu=Be()+500,Ul(0))}}break;case 31:case 13:T=Qi(g,2),T!==null&&nn(T,g,2),Iu(),Dd(g,2)}if(g=Pd(c),g===null&&xd(r,a,c,ec,l),g===m)break;m=g}m!==null&&c.stopPropagation()}else xd(r,a,c,null,l)}}function Pd(r){return r=If(r),zd(r)}var ec=null;function zd(r){if(ec=null,r=za(r),r!==null){var a=o(r);if(a===null)r=null;else{var l=a.tag;if(l===13){if(r=u(a),r!==null)return r;r=null}else if(l===31){if(r=f(a),r!==null)return r;r=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return ec=r,null}function K_(r){switch(r){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(Ut()){case Z:return 2;case oe:return 8;case xe:case Ae:return 32;case Ge:return 268435456;default:return 32}default:return 32}}var Id=!1,pi=null,gi=null,yi=null,$l=new Map,Yl=new Map,vi=[],jT="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 X_(r,a){switch(r){case"focusin":case"focusout":pi=null;break;case"dragenter":case"dragleave":gi=null;break;case"mouseover":case"mouseout":yi=null;break;case"pointerover":case"pointerout":$l.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yl.delete(a.pointerId)}}function Kl(r,a,l,c,m,g){return r===null||r.nativeEvent!==g?(r={blockedOn:a,domEventName:l,eventSystemFlags:c,nativeEvent:g,targetContainers:[m]},a!==null&&(a=Ia(a),a!==null&&$_(a)),r):(r.eventSystemFlags|=c,a=r.targetContainers,m!==null&&a.indexOf(m)===-1&&a.push(m),r)}function DT(r,a,l,c,m){switch(a){case"focusin":return pi=Kl(pi,r,a,l,c,m),!0;case"dragenter":return gi=Kl(gi,r,a,l,c,m),!0;case"mouseover":return yi=Kl(yi,r,a,l,c,m),!0;case"pointerover":var g=m.pointerId;return $l.set(g,Kl($l.get(g)||null,r,a,l,c,m)),!0;case"gotpointercapture":return g=m.pointerId,Yl.set(g,Kl(Yl.get(g)||null,r,a,l,c,m)),!0}return!1}function Z_(r){var a=za(r.target);if(a!==null){var l=o(a);if(l!==null){if(a=l.tag,a===13){if(a=u(l),a!==null){r.blockedOn=a,fg(r.priority,function(){Y_(l)});return}}else if(a===31){if(a=f(l),a!==null){r.blockedOn=a,fg(r.priority,function(){Y_(l)});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function tc(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var l=Pd(r.nativeEvent);if(l===null){l=r.nativeEvent;var c=new l.constructor(l.type,l);zf=c,l.target.dispatchEvent(c),zf=null}else return a=Ia(l),a!==null&&$_(a),r.blockedOn=l,!1;a.shift()}return!0}function J_(r,a,l){tc(r)&&l.delete(a)}function MT(){Id=!1,pi!==null&&tc(pi)&&(pi=null),gi!==null&&tc(gi)&&(gi=null),yi!==null&&tc(yi)&&(yi=null),$l.forEach(J_),Yl.forEach(J_)}function nc(r,a){r.blockedOn===a&&(r.blockedOn=null,Id||(Id=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,MT)))}var rc=null;function W_(r){rc!==r&&(rc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){rc===r&&(rc=null);for(var a=0;a<r.length;a+=3){var l=r[a],c=r[a+1],m=r[a+2];if(typeof c!="function"){if(zd(c||l)===null)continue;break}var g=Ia(l);g!==null&&(r.splice(a,3),a-=3,Ph(g,{pending:!0,data:m,method:l.method,action:c},c,m))}}))}function _s(r){function a(D){return nc(D,r)}pi!==null&&nc(pi,r),gi!==null&&nc(gi,r),yi!==null&&nc(yi,r),$l.forEach(a),Yl.forEach(a);for(var l=0;l<vi.length;l++){var c=vi[l];c.blockedOn===r&&(c.blockedOn=null)}for(;0<vi.length&&(l=vi[0],l.blockedOn===null);)Z_(l),l.blockedOn===null&&vi.shift();if(l=(r.ownerDocument||r).$$reactFormReplay,l!=null)for(c=0;c<l.length;c+=3){var m=l[c],g=l[c+1],b=m[Xt]||null;if(typeof g=="function")b||W_(l);else if(b){var T=null;if(g&&g.hasAttribute("formAction")){if(m=g,b=g[Xt]||null)T=b.formAction;else if(zd(m)!==null)continue}else T=b.action;typeof T=="function"?l[c+1]=T:(l.splice(c,3),c-=3),W_(l)}}}function e0(){function r(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(b){return m=b})},focusReset:"manual",scroll:"manual"})}function a(){m!==null&&(m(),m=null),c||setTimeout(l,20)}function l(){if(!c&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,m=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(l,100),function(){c=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),m!==null&&(m(),m=null)}}}function Bd(r){this._internalRoot=r}ic.prototype.render=Bd.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var l=a.current,c=yn();F_(l,c,r,a,null,null)},ic.prototype.unmount=Bd.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;F_(r.current,2,null,r,null,null),Iu(),a[Pa]=null}};function ic(r){this._internalRoot=r}ic.prototype.unstable_scheduleHydration=function(r){if(r){var a=cg();r={blockedOn:null,target:r,priority:a};for(var l=0;l<vi.length&&a!==0&&a<vi[l].priority;l++);vi.splice(l,0,r),l===0&&Z_(r)}};var t0=t.version;if(t0!=="19.2.0")throw Error(i(527,t0,"19.2.0"));te.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=d(a),r=r!==null?y(r):null,r=r===null?null:r.stateNode,r};var PT={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ac.isDisabled&&ac.supportsFiber)try{qt=ac.inject(PT),_t=ac}catch{}}return Zl.createRoot=function(r,a){if(!s(r))throw Error(i(299));var l=!1,c="",m=ov,g=uv,b=cv;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(b=a.onRecoverableError)),a=H_(r,1,!1,null,null,l,c,null,m,g,b,e0),r[Pa]=a.current,bd(r),new Bd(a)},Zl.hydrateRoot=function(r,a,l){if(!s(r))throw Error(i(299));var c=!1,m="",g=ov,b=uv,T=cv,D=null;return l!=null&&(l.unstable_strictMode===!0&&(c=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(g=l.onUncaughtError),l.onCaughtError!==void 0&&(b=l.onCaughtError),l.onRecoverableError!==void 0&&(T=l.onRecoverableError),l.formState!==void 0&&(D=l.formState)),a=H_(r,1,!0,a,l??null,c,m,D,g,b,T,e0),a.context=G_(null),l=a.current,c=yn(),c=Af(c),m=ri(c),m.callback=null,ii(l,m,c),l=c,a.current.lanes=l,sl(a,l),nr(a),r[Pa]=a.current,bd(r),new ic(a)},Zl.version="19.2.0",Zl}var h0;function $T(){if(h0)return Vd.exports;h0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Vd.exports=QT(),Vd.exports}var YT=$T(),Js=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},KT={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ei,yp,px,XT=(px=class{constructor(){ye(this,Ei,KT);ye(this,yp,!1)}setTimeoutProvider(e){ce(this,Ei,e)}setTimeout(e,t){return M(this,Ei).setTimeout(e,t)}clearTimeout(e){M(this,Ei).clearTimeout(e)}setInterval(e,t){return M(this,Ei).setInterval(e,t)}clearInterval(e){M(this,Ei).clearInterval(e)}},Ei=new WeakMap,yp=new WeakMap,px),oa=new XT;function ZT(e){setTimeout(e,0)}var wa=typeof window>"u"||"Deno"in globalThis;function Ft(){}function JT(e,t){return typeof e=="function"?e(t):e}function jm(e){return typeof e=="number"&&e>=0&&e!==1/0}function Cx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ji(e,t){return typeof e=="function"?e(t):e}function Pn(e,t){return typeof e=="function"?e(t):e}function d0(e,t){const{type:n="all",exact:i,fetchStatus:s,predicate:o,queryKey:u,stale:f}=e;if(u){if(i){if(t.queryHash!==_p(u,t.options))return!1}else if(!_o(t.queryKey,u))return!1}if(n!=="all"){const h=t.isActive();if(n==="active"&&!h||n==="inactive"&&h)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||s&&s!==t.state.fetchStatus||o&&!o(t))}function m0(e,t){const{exact:n,status:i,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Ta(t.options.mutationKey)!==Ta(o))return!1}else if(!_o(t.options.mutationKey,o))return!1}return!(i&&t.state.status!==i||s&&!s(t))}function _p(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ta)(e)}function Ta(e){return JSON.stringify(e,(t,n)=>Dm(n)?Object.keys(n).sort().reduce((i,s)=>(i[s]=n[s],i),{}):n)}function _o(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>_o(e[n],t[n])):!1}var WT=Object.prototype.hasOwnProperty;function Rx(e,t){if(e===t)return e;const n=p0(e)&&p0(t);if(!n&&!(Dm(e)&&Dm(t)))return t;const s=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),u=o.length,f=n?new Array(u):{};let h=0;for(let d=0;d<u;d++){const y=n?d:o[d],p=e[y],v=t[y];if(p===v){f[y]=p,(n?d<s:WT.call(e,y))&&h++;continue}if(p===null||v===null||typeof p!="object"||typeof v!="object"){f[y]=v;continue}const _=Rx(p,v);f[y]=_,_===p&&h++}return s===u&&h===s?e:f}function Nc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function p0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Dm(e){if(!g0(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!g0(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function g0(e){return Object.prototype.toString.call(e)==="[object Object]"}function ek(e){return new Promise(t=>{oa.setTimeout(t,e)})}function Mm(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Rx(e,t):t}function tk(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function nk(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var Hr=Symbol();function Ax(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Hr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ox(e,t){return typeof e=="function"?e(...t):!!e}var ca,wi,Ds,gx,rk=(gx=class extends Js{constructor(){super();ye(this,ca);ye(this,wi);ye(this,Ds);ce(this,Ds,t=>{if(!wa&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){M(this,wi)||this.setEventListener(M(this,Ds))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,wi))==null||t.call(this),ce(this,wi,void 0))}setEventListener(t){var n;ce(this,Ds,t),(n=M(this,wi))==null||n.call(this),ce(this,wi,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){M(this,ca)!==t&&(ce(this,ca,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof M(this,ca)=="boolean"?M(this,ca):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ca=new WeakMap,wi=new WeakMap,Ds=new WeakMap,gx),bp=new rk;function Pm(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function i(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{i({status:"fulfilled",value:s}),e(s)},n.reject=s=>{i({status:"rejected",reason:s}),t(s)},n}var ik=ZT;function ak(){let e=[],t=0,n=f=>{f()},i=f=>{f()},s=ik;const o=f=>{t?e.push(f):s(()=>{n(f)})},u=()=>{const f=e;e=[],f.length&&s(()=>{i(()=>{f.forEach(h=>{n(h)})})})};return{batch:f=>{let h;t++;try{h=f()}finally{t--,t||u()}return h},batchCalls:f=>(...h)=>{o(()=>{f(...h)})},schedule:o,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{s=f}}}var St=ak(),Ms,Ti,Ps,yx,sk=(yx=class extends Js{constructor(){super();ye(this,Ms,!0);ye(this,Ti);ye(this,Ps);ce(this,Ps,t=>{if(!wa&&window.addEventListener){const n=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){M(this,Ti)||this.setEventListener(M(this,Ps))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,Ti))==null||t.call(this),ce(this,Ti,void 0))}setEventListener(t){var n;ce(this,Ps,t),(n=M(this,Ti))==null||n.call(this),ce(this,Ti,t(this.setOnline.bind(this)))}setOnline(t){M(this,Ms)!==t&&(ce(this,Ms,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return M(this,Ms)}},Ms=new WeakMap,Ti=new WeakMap,Ps=new WeakMap,yx),jc=new sk;function lk(e){return Math.min(1e3*2**e,3e4)}function Lx(e){return(e??"online")==="online"?jc.isOnline():!0}var zm=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Nx(e){let t=!1,n=0,i;const s=Pm(),o=()=>s.status!=="pending",u=E=>{var k;if(!o()){const w=new zm(E);v(w),(k=e.onCancel)==null||k.call(e,w)}},f=()=>{t=!0},h=()=>{t=!1},d=()=>bp.isFocused()&&(e.networkMode==="always"||jc.isOnline())&&e.canRun(),y=()=>Lx(e.networkMode)&&e.canRun(),p=E=>{o()||(i==null||i(),s.resolve(E))},v=E=>{o()||(i==null||i(),s.reject(E))},_=()=>new Promise(E=>{var k;i=w=>{(o()||d())&&E(w)},(k=e.onPause)==null||k.call(e)}).then(()=>{var E;i=void 0,o()||(E=e.onContinue)==null||E.call(e)}),x=()=>{if(o())return;let E;const k=n===0?e.initialPromise:void 0;try{E=k??e.fn()}catch(w){E=Promise.reject(w)}Promise.resolve(E).then(p).catch(w=>{var A;if(o())return;const C=e.retry??(wa?0:3),L=e.retryDelay??lk,z=typeof L=="function"?L(n,w):L,B=C===!0||typeof C=="number"&&n<C||typeof C=="function"&&C(n,w);if(t||!B){v(w);return}n++,(A=e.onFail)==null||A.call(e,n,w),ek(z).then(()=>d()?void 0:_()).then(()=>{t?v(w):x()})})};return{promise:s,status:()=>s.status,cancel:u,continue:()=>(i==null||i(),s),cancelRetry:f,continueRetry:h,canStart:y,start:()=>(y()?x():_().then(x),s)}}var fa,vx,jx=(vx=class{constructor(){ye(this,fa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jm(this.gcTime)&&ce(this,fa,oa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(wa?1/0:300*1e3))}clearGcTimeout(){M(this,fa)&&(oa.clearTimeout(M(this,fa)),ce(this,fa,void 0))}},fa=new WeakMap,vx),ha,zs,Mn,da,kt,Lo,ma,Yn,Mr,_x,ok=(_x=class extends jx{constructor(t){super();ye(this,Yn);ye(this,ha);ye(this,zs);ye(this,Mn);ye(this,da);ye(this,kt);ye(this,Lo);ye(this,ma);ce(this,ma,!1),ce(this,Lo,t.defaultOptions),this.setOptions(t.options),this.observers=[],ce(this,da,t.client),ce(this,Mn,M(this,da).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ce(this,ha,v0(this.options)),this.state=t.state??M(this,ha),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=M(this,kt))==null?void 0:t.promise}setOptions(t){if(this.options={...M(this,Lo),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=v0(this.options);n.data!==void 0&&(this.setState(y0(n.data,n.dataUpdatedAt)),ce(this,ha,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,Mn).remove(this)}setData(t,n){const i=Mm(this.state.data,t,this.options);return Re(this,Yn,Mr).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(t,n){Re(this,Yn,Mr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var i,s;const n=(i=M(this,kt))==null?void 0:i.promise;return(s=M(this,kt))==null||s.cancel(t),n?n.then(Ft).catch(Ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,ha))}isActive(){return this.observers.some(t=>Pn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Hr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ji(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:!Cx(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,kt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,kt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),M(this,Mn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(M(this,kt)&&(M(this,ma)?M(this,kt).cancel({revert:!0}):M(this,kt).cancelRetry()),this.scheduleGc()),M(this,Mn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Re(this,Yn,Mr).call(this,{type:"invalidate"})}async fetch(t,n){var h,d,y,p,v,_,x,E,k,w,C,L;if(this.state.fetchStatus!=="idle"&&((h=M(this,kt))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(M(this,kt))return M(this,kt).continueRetry(),M(this,kt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const z=this.observers.find(B=>B.options.queryFn);z&&this.setOptions(z.options)}const i=new AbortController,s=z=>{Object.defineProperty(z,"signal",{enumerable:!0,get:()=>(ce(this,ma,!0),i.signal)})},o=()=>{const z=Ax(this.options,n),A=(()=>{const q={client:M(this,da),queryKey:this.queryKey,meta:this.meta};return s(q),q})();return ce(this,ma,!1),this.options.persister?this.options.persister(z,A,this):z(A)},f=(()=>{const z={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:M(this,da),state:this.state,fetchFn:o};return s(z),z})();(d=this.options.behavior)==null||d.onFetch(f,this),ce(this,zs,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=f.fetchOptions)==null?void 0:y.meta))&&Re(this,Yn,Mr).call(this,{type:"fetch",meta:(p=f.fetchOptions)==null?void 0:p.meta}),ce(this,kt,Nx({initialPromise:n==null?void 0:n.initialPromise,fn:f.fetchFn,onCancel:z=>{z instanceof zm&&z.revert&&this.setState({...M(this,zs),fetchStatus:"idle"}),i.abort()},onFail:(z,B)=>{Re(this,Yn,Mr).call(this,{type:"failed",failureCount:z,error:B})},onPause:()=>{Re(this,Yn,Mr).call(this,{type:"pause"})},onContinue:()=>{Re(this,Yn,Mr).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const z=await M(this,kt).start();if(z===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(z),(_=(v=M(this,Mn).config).onSuccess)==null||_.call(v,z,this),(E=(x=M(this,Mn).config).onSettled)==null||E.call(x,z,this.state.error,this),z}catch(z){if(z instanceof zm){if(z.silent)return M(this,kt).promise;if(z.revert){if(this.state.data===void 0)throw z;return this.state.data}}throw Re(this,Yn,Mr).call(this,{type:"error",error:z}),(w=(k=M(this,Mn).config).onError)==null||w.call(k,z,this),(L=(C=M(this,Mn).config).onSettled)==null||L.call(C,this.state.data,z,this),z}finally{this.scheduleGc()}}},ha=new WeakMap,zs=new WeakMap,Mn=new WeakMap,da=new WeakMap,kt=new WeakMap,Lo=new WeakMap,ma=new WeakMap,Yn=new WeakSet,Mr=function(t){const n=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Dx(i.data,this.options),fetchMeta:t.meta??null};case"success":const s={...i,...y0(t.data,t.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ce(this,zs,t.manual?s:void 0),s;case"error":const o=t.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=n(this.state),St.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),M(this,Mn).notify({query:this,type:"updated",action:t})})},_x);function Dx(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Lx(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function y0(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function v0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,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 an,ze,No,Ht,pa,Is,Pr,ki,jo,Bs,Us,ga,ya,Ci,qs,Fe,so,Im,Bm,Um,qm,Vm,Hm,Gm,Mx,bx,uk=(bx=class extends Js{constructor(t,n){super();ye(this,Fe);ye(this,an);ye(this,ze);ye(this,No);ye(this,Ht);ye(this,pa);ye(this,Is);ye(this,Pr);ye(this,ki);ye(this,jo);ye(this,Bs);ye(this,Us);ye(this,ga);ye(this,ya);ye(this,Ci);ye(this,qs,new Set);this.options=n,ce(this,an,t),ce(this,ki,null),ce(this,Pr,Pm()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(M(this,ze).addObserver(this),_0(M(this,ze),this.options)?Re(this,Fe,so).call(this):this.updateResult(),Re(this,Fe,qm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fm(M(this,ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fm(M(this,ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Re(this,Fe,Vm).call(this),Re(this,Fe,Hm).call(this),M(this,ze).removeObserver(this)}setOptions(t){const n=this.options,i=M(this,ze);if(this.options=M(this,an).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pn(this.options.enabled,M(this,ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Re(this,Fe,Gm).call(this),M(this,ze).setOptions(this.options),n._defaulted&&!Nc(this.options,n)&&M(this,an).getQueryCache().notify({type:"observerOptionsUpdated",query:M(this,ze),observer:this});const s=this.hasListeners();s&&b0(M(this,ze),i,this.options,n)&&Re(this,Fe,so).call(this),this.updateResult(),s&&(M(this,ze)!==i||Pn(this.options.enabled,M(this,ze))!==Pn(n.enabled,M(this,ze))||ji(this.options.staleTime,M(this,ze))!==ji(n.staleTime,M(this,ze)))&&Re(this,Fe,Im).call(this);const o=Re(this,Fe,Bm).call(this);s&&(M(this,ze)!==i||Pn(this.options.enabled,M(this,ze))!==Pn(n.enabled,M(this,ze))||o!==M(this,Ci))&&Re(this,Fe,Um).call(this,o)}getOptimisticResult(t){const n=M(this,an).getQueryCache().build(M(this,an),t),i=this.createResult(n,t);return fk(this,i)&&(ce(this,Ht,i),ce(this,Is,this.options),ce(this,pa,M(this,ze).state)),i}getCurrentResult(){return M(this,Ht)}trackResult(t,n){return new Proxy(t,{get:(i,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&M(this,Pr).status==="pending"&&M(this,Pr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,s))})}trackProp(t){M(this,qs).add(t)}getCurrentQuery(){return M(this,ze)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=M(this,an).defaultQueryOptions(t),i=M(this,an).getQueryCache().build(M(this,an),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(t){return Re(this,Fe,so).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),M(this,Ht)))}createResult(t,n){var ne;const i=M(this,ze),s=this.options,o=M(this,Ht),u=M(this,pa),f=M(this,Is),d=t!==i?t.state:M(this,No),{state:y}=t;let p={...y},v=!1,_;if(n._optimisticResults){const N=this.hasListeners(),Q=!N&&_0(t,n),re=N&&b0(t,i,n,s);(Q||re)&&(p={...p,...Dx(y.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:x,errorUpdatedAt:E,status:k}=p;_=p.data;let w=!1;if(n.placeholderData!==void 0&&_===void 0&&k==="pending"){let N;o!=null&&o.isPlaceholderData&&n.placeholderData===(f==null?void 0:f.placeholderData)?(N=o.data,w=!0):N=typeof n.placeholderData=="function"?n.placeholderData((ne=M(this,Us))==null?void 0:ne.state.data,M(this,Us)):n.placeholderData,N!==void 0&&(k="success",_=Mm(o==null?void 0:o.data,N,n),v=!0)}if(n.select&&_!==void 0&&!w)if(o&&_===(u==null?void 0:u.data)&&n.select===M(this,jo))_=M(this,Bs);else try{ce(this,jo,n.select),_=n.select(_),_=Mm(o==null?void 0:o.data,_,n),ce(this,Bs,_),ce(this,ki,null)}catch(N){ce(this,ki,N)}M(this,ki)&&(x=M(this,ki),_=M(this,Bs),E=Date.now(),k="error");const C=p.fetchStatus==="fetching",L=k==="pending",z=k==="error",B=L&&C,A=_!==void 0,$={status:k,fetchStatus:p.fetchStatus,isPending:L,isSuccess:k==="success",isError:z,isInitialLoading:B,isLoading:B,data:_,dataUpdatedAt:p.dataUpdatedAt,error:x,errorUpdatedAt:E,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:C,isRefetching:C&&!L,isLoadingError:z&&!A,isPaused:p.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:z&&A,isStale:xp(t,n),refetch:this.refetch,promise:M(this,Pr),isEnabled:Pn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=me=>{$.status==="error"?me.reject($.error):$.data!==void 0&&me.resolve($.data)},Q=()=>{const me=ce(this,Pr,$.promise=Pm());N(me)},re=M(this,Pr);switch(re.status){case"pending":t.queryHash===i.queryHash&&N(re);break;case"fulfilled":($.status==="error"||$.data!==re.value)&&Q();break;case"rejected":($.status!=="error"||$.error!==re.reason)&&Q();break}}return $}updateResult(){const t=M(this,Ht),n=this.createResult(M(this,ze),this.options);if(ce(this,pa,M(this,ze).state),ce(this,Is,this.options),M(this,pa).data!==void 0&&ce(this,Us,M(this,ze)),Nc(n,t))return;ce(this,Ht,n);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!M(this,qs).size)return!0;const u=new Set(o??M(this,qs));return this.options.throwOnError&&u.add("error"),Object.keys(M(this,Ht)).some(f=>{const h=f;return M(this,Ht)[h]!==t[h]&&u.has(h)})};Re(this,Fe,Mx).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Re(this,Fe,qm).call(this)}},an=new WeakMap,ze=new WeakMap,No=new WeakMap,Ht=new WeakMap,pa=new WeakMap,Is=new WeakMap,Pr=new WeakMap,ki=new WeakMap,jo=new WeakMap,Bs=new WeakMap,Us=new WeakMap,ga=new WeakMap,ya=new WeakMap,Ci=new WeakMap,qs=new WeakMap,Fe=new WeakSet,so=function(t){Re(this,Fe,Gm).call(this);let n=M(this,ze).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ft)),n},Im=function(){Re(this,Fe,Vm).call(this);const t=ji(this.options.staleTime,M(this,ze));if(wa||M(this,Ht).isStale||!jm(t))return;const i=Cx(M(this,Ht).dataUpdatedAt,t)+1;ce(this,ga,oa.setTimeout(()=>{M(this,Ht).isStale||this.updateResult()},i))},Bm=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(M(this,ze)):this.options.refetchInterval)??!1},Um=function(t){Re(this,Fe,Hm).call(this),ce(this,Ci,t),!(wa||Pn(this.options.enabled,M(this,ze))===!1||!jm(M(this,Ci))||M(this,Ci)===0)&&ce(this,ya,oa.setInterval(()=>{(this.options.refetchIntervalInBackground||bp.isFocused())&&Re(this,Fe,so).call(this)},M(this,Ci)))},qm=function(){Re(this,Fe,Im).call(this),Re(this,Fe,Um).call(this,Re(this,Fe,Bm).call(this))},Vm=function(){M(this,ga)&&(oa.clearTimeout(M(this,ga)),ce(this,ga,void 0))},Hm=function(){M(this,ya)&&(oa.clearInterval(M(this,ya)),ce(this,ya,void 0))},Gm=function(){const t=M(this,an).getQueryCache().build(M(this,an),this.options);if(t===M(this,ze))return;const n=M(this,ze);ce(this,ze,t),ce(this,No,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Mx=function(t){St.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(M(this,Ht))}),M(this,an).getQueryCache().notify({query:M(this,ze),type:"observerResultsUpdated"})})},bx);function ck(e,t){return Pn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function _0(e,t){return ck(e,t)||e.state.data!==void 0&&Fm(e,t,t.refetchOnMount)}function Fm(e,t,n){if(Pn(t.enabled,e)!==!1&&ji(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&xp(e,t)}return!1}function b0(e,t,n,i){return(e!==t||Pn(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&xp(e,n)}function xp(e,t){return Pn(t.enabled,e)!==!1&&e.isStaleByTime(ji(t.staleTime,e))}function fk(e,t){return!Nc(e.getCurrentResult(),t)}function x0(e){return{onFetch:(t,n)=>{var y,p,v,_,x;const i=t.options,s=(v=(p=(y=t.fetchOptions)==null?void 0:y.meta)==null?void 0:p.fetchMore)==null?void 0:v.direction,o=((_=t.state.data)==null?void 0:_.pages)||[],u=((x=t.state.data)==null?void 0:x.pageParams)||[];let f={pages:[],pageParams:[]},h=0;const d=async()=>{let E=!1;const k=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(t.signal.aborted?E=!0:t.signal.addEventListener("abort",()=>{E=!0}),t.signal)})},w=Ax(t.options,t.fetchOptions),C=async(L,z,B)=>{if(E)return Promise.reject();if(z==null&&L.pages.length)return Promise.resolve(L);const q=(()=>{const Q={client:t.client,queryKey:t.queryKey,pageParam:z,direction:B?"backward":"forward",meta:t.options.meta};return k(Q),Q})(),$=await w(q),{maxPages:ne}=t.options,N=B?nk:tk;return{pages:N(L.pages,$,ne),pageParams:N(L.pageParams,z,ne)}};if(s&&o.length){const L=s==="backward",z=L?hk:S0,B={pages:o,pageParams:u},A=z(i,B);f=await C(B,A,L)}else{const L=e??o.length;do{const z=h===0?u[0]??i.initialPageParam:S0(i,f);if(h>0&&z==null)break;f=await C(f,z),h++}while(h<L)}return f};t.options.persister?t.fetchFn=()=>{var E,k;return(k=(E=t.options).persister)==null?void 0:k.call(E,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=d}}}function S0(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function hk(e,{pages:t,pageParams:n}){var i;return t.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n):void 0}var Do,sr,Gt,va,lr,xi,xx,dk=(xx=class extends jx{constructor(t){super();ye(this,lr);ye(this,Do);ye(this,sr);ye(this,Gt);ye(this,va);ce(this,Do,t.client),this.mutationId=t.mutationId,ce(this,Gt,t.mutationCache),ce(this,sr,[]),this.state=t.state||Px(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){M(this,sr).includes(t)||(M(this,sr).push(t),this.clearGcTimeout(),M(this,Gt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ce(this,sr,M(this,sr).filter(n=>n!==t)),this.scheduleGc(),M(this,Gt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){M(this,sr).length||(this.state.status==="pending"?this.scheduleGc():M(this,Gt).remove(this))}continue(){var t;return((t=M(this,va))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var u,f,h,d,y,p,v,_,x,E,k,w,C,L,z,B,A,q,$,ne;const n=()=>{Re(this,lr,xi).call(this,{type:"continue"})},i={client:M(this,Do),meta:this.options.meta,mutationKey:this.options.mutationKey};ce(this,va,Nx({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(N,Q)=>{Re(this,lr,xi).call(this,{type:"failed",failureCount:N,error:Q})},onPause:()=>{Re(this,lr,xi).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,Gt).canRun(this)}));const s=this.state.status==="pending",o=!M(this,va).canStart();try{if(s)n();else{Re(this,lr,xi).call(this,{type:"pending",variables:t,isPaused:o}),await((f=(u=M(this,Gt).config).onMutate)==null?void 0:f.call(u,t,this,i));const Q=await((d=(h=this.options).onMutate)==null?void 0:d.call(h,t,i));Q!==this.state.context&&Re(this,lr,xi).call(this,{type:"pending",context:Q,variables:t,isPaused:o})}const N=await M(this,va).start();return await((p=(y=M(this,Gt).config).onSuccess)==null?void 0:p.call(y,N,t,this.state.context,this,i)),await((_=(v=this.options).onSuccess)==null?void 0:_.call(v,N,t,this.state.context,i)),await((E=(x=M(this,Gt).config).onSettled)==null?void 0:E.call(x,N,null,this.state.variables,this.state.context,this,i)),await((w=(k=this.options).onSettled)==null?void 0:w.call(k,N,null,t,this.state.context,i)),Re(this,lr,xi).call(this,{type:"success",data:N}),N}catch(N){try{throw await((L=(C=M(this,Gt).config).onError)==null?void 0:L.call(C,N,t,this.state.context,this,i)),await((B=(z=this.options).onError)==null?void 0:B.call(z,N,t,this.state.context,i)),await((q=(A=M(this,Gt).config).onSettled)==null?void 0:q.call(A,void 0,N,this.state.variables,this.state.context,this,i)),await((ne=($=this.options).onSettled)==null?void 0:ne.call($,void 0,N,t,this.state.context,i)),N}finally{Re(this,lr,xi).call(this,{type:"error",error:N})}}finally{M(this,Gt).runNext(this)}}},Do=new WeakMap,sr=new WeakMap,Gt=new WeakMap,va=new WeakMap,lr=new WeakSet,xi=function(t){const n=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,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{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),St.batch(()=>{M(this,sr).forEach(i=>{i.onMutationUpdate(t)}),M(this,Gt).notify({mutation:this,type:"updated",action:t})})},xx);function Px(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zr,Kn,Mo,Sx,mk=(Sx=class extends Js{constructor(t={}){super();ye(this,zr);ye(this,Kn);ye(this,Mo);this.config=t,ce(this,zr,new Set),ce(this,Kn,new Map),ce(this,Mo,0)}build(t,n,i){const s=new dk({client:t,mutationCache:this,mutationId:++sc(this,Mo)._,options:t.defaultMutationOptions(n),state:i});return this.add(s),s}add(t){M(this,zr).add(t);const n=lc(t);if(typeof n=="string"){const i=M(this,Kn).get(n);i?i.push(t):M(this,Kn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(M(this,zr).delete(t)){const n=lc(t);if(typeof n=="string"){const i=M(this,Kn).get(n);if(i)if(i.length>1){const s=i.indexOf(t);s!==-1&&i.splice(s,1)}else i[0]===t&&M(this,Kn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=lc(t);if(typeof n=="string"){const i=M(this,Kn).get(n),s=i==null?void 0:i.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var i;const n=lc(t);if(typeof n=="string"){const s=(i=M(this,Kn).get(n))==null?void 0:i.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){St.batch(()=>{M(this,zr).forEach(t=>{this.notify({type:"removed",mutation:t})}),M(this,zr).clear(),M(this,Kn).clear()})}getAll(){return Array.from(M(this,zr))}find(t){const n={exact:!0,...t};return this.getAll().find(i=>m0(n,i))}findAll(t={}){return this.getAll().filter(n=>m0(t,n))}notify(t){St.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return St.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ft))))}},zr=new WeakMap,Kn=new WeakMap,Mo=new WeakMap,Sx);function lc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ir,Ri,sn,Br,Vr,wc,Qm,Ex,pk=(Ex=class extends Js{constructor(n,i){super();ye(this,Vr);ye(this,Ir);ye(this,Ri);ye(this,sn);ye(this,Br);ce(this,Ir,n),this.setOptions(i),this.bindMethods(),Re(this,Vr,wc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const i=this.options;this.options=M(this,Ir).defaultMutationOptions(n),Nc(this.options,i)||M(this,Ir).getMutationCache().notify({type:"observerOptionsUpdated",mutation:M(this,sn),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Ta(i.mutationKey)!==Ta(this.options.mutationKey)?this.reset():((s=M(this,sn))==null?void 0:s.state.status)==="pending"&&M(this,sn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=M(this,sn))==null||n.removeObserver(this)}onMutationUpdate(n){Re(this,Vr,wc).call(this),Re(this,Vr,Qm).call(this,n)}getCurrentResult(){return M(this,Ri)}reset(){var n;(n=M(this,sn))==null||n.removeObserver(this),ce(this,sn,void 0),Re(this,Vr,wc).call(this),Re(this,Vr,Qm).call(this)}mutate(n,i){var s;return ce(this,Br,i),(s=M(this,sn))==null||s.removeObserver(this),ce(this,sn,M(this,Ir).getMutationCache().build(M(this,Ir),this.options)),M(this,sn).addObserver(this),M(this,sn).execute(n)}},Ir=new WeakMap,Ri=new WeakMap,sn=new WeakMap,Br=new WeakMap,Vr=new WeakSet,wc=function(){var i;const n=((i=M(this,sn))==null?void 0:i.state)??Px();ce(this,Ri,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Qm=function(n){St.batch(()=>{var i,s,o,u,f,h,d,y;if(M(this,Br)&&this.hasListeners()){const p=M(this,Ri).variables,v=M(this,Ri).context,_={client:M(this,Ir),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((s=(i=M(this,Br)).onSuccess)==null||s.call(i,n.data,p,v,_),(u=(o=M(this,Br)).onSettled)==null||u.call(o,n.data,null,p,v,_)):(n==null?void 0:n.type)==="error"&&((h=(f=M(this,Br)).onError)==null||h.call(f,n.error,p,v,_),(y=(d=M(this,Br)).onSettled)==null||y.call(d,void 0,n.error,p,v,_))}this.listeners.forEach(p=>{p(M(this,Ri))})})},Ex),or,wx,gk=(wx=class extends Js{constructor(t={}){super();ye(this,or);this.config=t,ce(this,or,new Map)}build(t,n,i){const s=n.queryKey,o=n.queryHash??_p(s,n);let u=this.get(o);return u||(u=new ok({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(u)),u}add(t){M(this,or).has(t.queryHash)||(M(this,or).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=M(this,or).get(t.queryHash);n&&(t.destroy(),n===t&&M(this,or).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){St.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return M(this,or).get(t)}getAll(){return[...M(this,or).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(i=>d0(n,i))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(i=>d0(t,i)):n}notify(t){St.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){St.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){St.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},or=new WeakMap,wx),ot,Ai,Oi,Vs,Hs,Li,Gs,Fs,Tx,yk=(Tx=class{constructor(e={}){ye(this,ot);ye(this,Ai);ye(this,Oi);ye(this,Vs);ye(this,Hs);ye(this,Li);ye(this,Gs);ye(this,Fs);ce(this,ot,e.queryCache||new gk),ce(this,Ai,e.mutationCache||new mk),ce(this,Oi,e.defaultOptions||{}),ce(this,Vs,new Map),ce(this,Hs,new Map),ce(this,Li,0)}mount(){sc(this,Li)._++,M(this,Li)===1&&(ce(this,Gs,bp.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,ot).onFocus())})),ce(this,Fs,jc.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,ot).onOnline())})))}unmount(){var e,t;sc(this,Li)._--,M(this,Li)===0&&((e=M(this,Gs))==null||e.call(this),ce(this,Gs,void 0),(t=M(this,Fs))==null||t.call(this),ce(this,Fs,void 0))}isFetching(e){return M(this,ot).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,Ai).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,ot).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=M(this,ot).build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ji(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return M(this,ot).findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),s=M(this,ot).get(i.queryHash),o=s==null?void 0:s.state.data,u=JT(t,o);if(u!==void 0)return M(this,ot).build(this,i).setData(u,{...n,manual:!0})}setQueriesData(e,t,n){return St.batch(()=>M(this,ot).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,ot).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=M(this,ot);St.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=M(this,ot);return St.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=St.batch(()=>M(this,ot).findAll(e).map(s=>s.cancel(n)));return Promise.all(i).then(Ft).catch(Ft)}invalidateQueries(e,t={}){return St.batch(()=>(M(this,ot).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},i=St.batch(()=>M(this,ot).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ft)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(i).then(Ft)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=M(this,ot).build(this,t);return n.isStaleByTime(ji(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ft).catch(Ft)}fetchInfiniteQuery(e){return e.behavior=x0(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ft).catch(Ft)}ensureInfiniteQueryData(e){return e.behavior=x0(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return jc.isOnline()?M(this,Ai).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,ot)}getMutationCache(){return M(this,Ai)}getDefaultOptions(){return M(this,Oi)}setDefaultOptions(e){ce(this,Oi,e)}setQueryDefaults(e,t){M(this,Vs).set(Ta(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...M(this,Vs).values()],n={};return t.forEach(i=>{_o(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){M(this,Hs).set(Ta(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...M(this,Hs).values()],n={};return t.forEach(i=>{_o(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...M(this,Oi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=_p(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Hr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,Oi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,ot).clear(),M(this,Ai).clear()}},ot=new WeakMap,Ai=new WeakMap,Oi=new WeakMap,Vs=new WeakMap,Hs=new WeakMap,Li=new WeakMap,Gs=new WeakMap,Fs=new WeakMap,Tx),ie=Po();const Qs=vp(ie);var zx=ie.createContext(void 0),Sp=e=>{const t=ie.useContext(zx);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},vk=({client:e,children:t})=>(ie.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(zx.Provider,{value:e,children:t})),Ix=ie.createContext(!1),_k=()=>ie.useContext(Ix);Ix.Provider;function bk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var xk=ie.createContext(bk()),Sk=()=>ie.useContext(xk),Ek=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},wk=e=>{ie.useEffect(()=>{e.clearReset()},[e])},Tk=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||Ox(n,[e.error,i])),kk=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...s)=>n(i(...s)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Ck=(e,t)=>e.isLoading&&e.isFetching&&!t,Rk=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,E0=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Ak(e,t,n){var p,v,_,x,E;const i=_k(),s=Sk(),o=Sp(),u=o.defaultQueryOptions(e);(v=(p=o.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||v.call(p,u),u._optimisticResults=i?"isRestoring":"optimistic",kk(u),Ek(u,s),wk(s);const f=!o.getQueryCache().get(u.queryHash),[h]=ie.useState(()=>new t(o,u)),d=h.getOptimisticResult(u),y=!i&&e.subscribed!==!1;if(ie.useSyncExternalStore(ie.useCallback(k=>{const w=y?h.subscribe(St.batchCalls(k)):Ft;return h.updateResult(),w},[h,y]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),ie.useEffect(()=>{h.setOptions(u)},[u,h]),Rk(u,d))throw E0(u,h,s);if(Tk({result:d,errorResetBoundary:s,throwOnError:u.throwOnError,query:o.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw d.error;if((x=(_=o.getDefaultOptions().queries)==null?void 0:_._experimental_afterQuery)==null||x.call(_,u,d),u.experimental_prefetchInRender&&!wa&&Ck(d,i)){const k=f?E0(u,h,s):(E=o.getQueryCache().get(u.queryHash))==null?void 0:E.promise;k==null||k.catch(Ft).finally(()=>{h.updateResult()})}return u.notifyOnChangeProps?d:h.trackResult(d)}function xn(e,t){return Ak(e,uk)}function bo(e,t){const n=Sp(),[i]=ie.useState(()=>new pk(n,e));ie.useEffect(()=>{i.setOptions(e)},[i,e]);const s=ie.useSyncExternalStore(ie.useCallback(u=>i.subscribe(St.batchCalls(u)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=ie.useCallback((u,f)=>{i.mutate(u,f).catch(Ft)},[i]);if(s.error&&Ox(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:o,mutateAsync:s.mutate}}const $m=new WeakMap,Ok=new WeakMap,Dc={current:[]};let $d=!1,uo=0;const lo=new Set,oc=new Map;function Bx(e){for(const t of e){if(Dc.current.includes(t))continue;Dc.current.push(t),t.recompute();const n=Ok.get(t);if(n)for(const i of n){const s=$m.get(i);s!=null&&s.length&&Bx(s)}}}function Lk(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function Nk(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function Ux(e){if(uo>0&&!oc.has(e)&&oc.set(e,e.prevState),lo.add(e),!(uo>0)&&!$d)try{for($d=!0;lo.size>0;){const t=Array.from(lo);lo.clear();for(const n of t){const i=oc.get(n)??n.prevState;n.prevState=i,Lk(n)}for(const n of t){const i=$m.get(n);i&&(Dc.current.push(n),Bx(i))}for(const n of t){const i=$m.get(n);if(i)for(const s of i)Nk(s)}}}finally{$d=!1,Dc.current=[],oc.clear()}}function co(e){uo++;try{e()}finally{if(uo--,uo===0){const t=lo.values().next().value;t&&Ux(t)}}}function jk(e){return typeof e=="function"}class Dk{constructor(t,n){this.listeners=new Set,this.subscribe=i=>{var s,o;this.listeners.add(i);const u=(o=(s=this.options)==null?void 0:s.onSubscribe)==null?void 0:o.call(s,i,this);return()=>{this.listeners.delete(i),u==null||u()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,i,s;this.prevState=this.state,(n=this.options)!=null&&n.updateFn?this.state=this.options.updateFn(this.prevState)(t):jk(t)?this.state=t(this.prevState):this.state=t,(s=(i=this.options)==null?void 0:i.onUpdate)==null||s.call(i),Ux(this)}}const Di="__TSR_index",w0="popstate",T0="beforeunload";function Mk(e){let t=e.getLocation();const n=new Set,i=u=>{t=e.getLocation(),n.forEach(f=>f({location:t,action:u}))},s=u=>{e.notifyOnIndexChange??!0?i(u):t=e.getLocation()},o=async({task:u,navigateOpts:f,...h})=>{var v,_;if((f==null?void 0:f.ignoreBlocker)??!1){u();return}const y=((v=e.getBlockers)==null?void 0:v.call(e))??[],p=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&y.length&&p)for(const x of y){const E=Mc(h.path,h.state);if(await x.blockerFn({currentLocation:t,nextLocation:E,action:h.type})){(_=e.onBlocked)==null||_.call(e);return}}u()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:u=>(n.add(u),()=>{n.delete(u)}),push:(u,f,h)=>{const d=t.state[Di];f=k0(d+1,f),o({task:()=>{e.pushState(u,f),i({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:u,state:f})},replace:(u,f,h)=>{const d=t.state[Di];f=k0(d,f),o({task:()=>{e.replaceState(u,f),i({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:u,state:f})},go:(u,f)=>{o({task:()=>{e.go(u),s({type:"GO",index:u})},navigateOpts:f,type:"GO"})},back:u=>{o({task:()=>{e.back((u==null?void 0:u.ignoreBlocker)??!1),s({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{o({task:()=>{e.forward((u==null?void 0:u.ignoreBlocker)??!1),s({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>t.state[Di]!==0,createHref:u=>e.createHref(u),block:u=>{var h;if(!e.setBlockers)return()=>{};const f=((h=e.getBlockers)==null?void 0:h.call(e))??[];return e.setBlockers([...f,u]),()=>{var y,p;const d=((y=e.getBlockers)==null?void 0:y.call(e))??[];(p=e.setBlockers)==null||p.call(e,d.filter(v=>v!==u))}},flush:()=>{var u;return(u=e.flush)==null?void 0:u.call(e)},destroy:()=>{var u;return(u=e.destroy)==null?void 0:u.call(e)},notify:i}}function k0(e,t){t||(t={});const n=Ep();return{...t,key:n,__TSR_key:n,[Di]:e}}function Pk(e){var $,ne;const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let s=[];const o=()=>s,u=N=>s=N,f=(N=>N),h=(()=>Mc(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!(($=t.history.state)!=null&&$.__TSR_key)&&!((ne=t.history.state)!=null&&ne.key)){const N=Ep();t.history.replaceState({[Di]:0,key:N,__TSR_key:N},"")}let d=h(),y,p=!1,v=!1,_=!1,x=!1;const E=()=>d;let k,w;const C=()=>{k&&(q._ignoreSubscribers=!0,(k.isPush?t.history.pushState:t.history.replaceState)(k.state,"",k.href),q._ignoreSubscribers=!1,k=void 0,w=void 0,y=void 0)},L=(N,Q,re)=>{const me=f(Q);w||(y=d),d=Mc(Q,re),k={href:me,state:re,isPush:(k==null?void 0:k.isPush)||N==="push"},w||(w=Promise.resolve().then(()=>C()))},z=N=>{d=h(),q.notify({type:N})},B=async()=>{if(v){v=!1;return}const N=h(),Q=N.state[Di]-d.state[Di],re=Q===1,me=Q===-1,le=!re&&!me||p;p=!1;const ae=le?"GO":me?"BACK":"FORWARD",V=le?{type:"GO",index:Q}:{type:me?"BACK":"FORWARD"};if(_)_=!1;else{const te=o();if(typeof document<"u"&&te.length){for(const fe of te)if(await fe.blockerFn({currentLocation:d,nextLocation:N,action:ae})){v=!0,t.history.go(1),q.notify(V);return}}}d=h(),q.notify(V)},A=N=>{if(x){x=!1;return}let Q=!1;const re=o();if(typeof document<"u"&&re.length)for(const me of re){const le=me.enableBeforeUnload??!0;if(le===!0){Q=!0;break}if(typeof le=="function"&&le()===!0){Q=!0;break}}if(Q)return N.preventDefault(),N.returnValue=""},q=Mk({getLocation:E,getLength:()=>t.history.length,pushState:(N,Q)=>L("push",N,Q),replaceState:(N,Q)=>L("replace",N,Q),back:N=>(N&&(_=!0),x=!0,t.history.back()),forward:N=>{N&&(_=!0),x=!0,t.history.forward()},go:N=>{p=!0,t.history.go(N)},createHref:N=>f(N),flush:C,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(T0,A,{capture:!0}),t.removeEventListener(w0,B)},onBlocked:()=>{y&&d!==y&&(d=y)},getBlockers:o,setBlockers:u,notifyOnIndexChange:!1});return t.addEventListener(T0,A,{capture:!0}),t.addEventListener(w0,B),t.history.pushState=function(...N){const Q=n.apply(t.history,N);return q._ignoreSubscribers||z("PUSH"),Q},t.history.replaceState=function(...N){const Q=i.apply(t.history,N);return q._ignoreSubscribers||z("REPLACE"),Q},q}function Mc(e,t){const n=e.indexOf("#"),i=e.indexOf("?"),s=Ep();return{href:e,pathname:e.substring(0,n>0?i>0?Math.min(n,i):n:i>0?i:e.length),hash:n>-1?e.substring(n):"",search:i>-1?e.slice(i,n===-1?void 0:n):"",state:t||{[Di]:0,key:s,__TSR_key:s}}}function Ep(){return(Math.random()+1).toString(36).substring(7)}function Pc(e){return e[e.length-1]}function zk(e){return typeof e=="function"}function _a(e,t){return zk(e)?e(t):e}const Ik=Object.prototype.hasOwnProperty;function Dn(e,t){if(e===t)return e;const n=t,i=A0(e)&&A0(n);if(!i&&!(zc(e)&&zc(n)))return n;const s=i?e:C0(e);if(!s)return n;const o=i?n:C0(n);if(!o)return n;const u=s.length,f=o.length,h=i?new Array(f):{};let d=0;for(let y=0;y<f;y++){const p=i?y:o[y],v=e[p],_=n[p];if(v===_){h[p]=v,(i?y<u:Ik.call(e,p))&&d++;continue}if(v===null||_===null||typeof v!="object"||typeof _!="object"){h[p]=_;continue}const x=Dn(v,_);h[p]=x,x===v&&d++}return u===f&&d===u?e:h}function C0(e){const t=[],n=Object.getOwnPropertyNames(e);for(const s of n){if(!Object.prototype.propertyIsEnumerable.call(e,s))return!1;t.push(s)}const i=Object.getOwnPropertySymbols(e);for(const s of i){if(!Object.prototype.propertyIsEnumerable.call(e,s))return!1;t.push(s)}return t}function zc(e){if(!R0(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!R0(n)||!n.hasOwnProperty("isPrototypeOf"))}function R0(e){return Object.prototype.toString.call(e)==="[object Object]"}function A0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ba(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,s=e.length;i<s;i++)if(!ba(e[i],t[i],n))return!1;return!0}if(zc(e)&&zc(t)){const i=(n==null?void 0:n.ignoreUndefined)??!0;if(n!=null&&n.partial){for(const u in t)if((!i||t[u]!==void 0)&&!ba(e[u],t[u],n))return!1;return!0}let s=0;if(!i)s=Object.keys(e).length;else for(const u in e)e[u]!==void 0&&s++;let o=0;for(const u in t)if((!i||t[u]!==void 0)&&(o++,o>s||!ba(e[u],t[u],n)))return!1;return s===o}return!1}function $s(e){let t,n;const i=new Promise((s,o)=>{t=s,n=o});return i.status="pending",i.resolve=s=>{i.status="resolved",i.value=s,t(s),e==null||e(s)},i.reject=s=>{i.status="rejected",n(s)},i}function Mi(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function O0(e){try{return decodeURI(e)}catch{return e.replaceAll(/%[0-9A-F]{2}/gi,t=>{try{return decodeURI(t)}catch{return t}})}}function L0(e,t){if(!e)return e;const n=/%25|%5C/gi;let i=0,s="",o;for(;(o=n.exec(e))!==null;)s+=O0(e.slice(i,o.index))+o[0],i=n.lastIndex;return s+O0(i?e.slice(i):e)}var Bk="Invariant failed";function Gr(e,t){if(!e)throw new Error(Bk)}function Ic(e){const t=new Map;let n,i;const s=o=>{o.next&&(o.prev?(o.prev.next=o.next,o.next.prev=o.prev,o.next=void 0,i&&(i.next=o,o.prev=i)):(o.next.prev=void 0,n=o.next,o.next=void 0,i&&(o.prev=i,i.next=o)),i=o)};return{get(o){const u=t.get(o);if(u)return s(u),u.value},set(o,u){if(t.size>=e&&n){const h=n;t.delete(h.key),h.next&&(n=h.next,h.next.prev=void 0),h===i&&(i=void 0)}const f=t.get(o);if(f)f.value=u,s(f);else{const h={key:o,value:u,prev:i};i&&(i.next=h),i=h,n||(n=h),t.set(o,h)}},clear(){t.clear(),n=void 0,i=void 0}}}const Ys=0,ka=1,Ca=2,xo=3,Uk=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,qk=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,Vk=/^([^{]*)\{\$\}([^}]*)$/;function wp(e,t,n=new Uint16Array(6)){const i=e.indexOf("/",t),s=i===-1?e.length:i,o=e.substring(t,s);if(!o||!o.includes("$"))return n[0]=Ys,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n;if(o==="$"){const d=e.length;return n[0]=Ca,n[1]=t,n[2]=t,n[3]=d,n[4]=d,n[5]=d,n}if(o.charCodeAt(0)===36)return n[0]=ka,n[1]=t,n[2]=t+1,n[3]=s,n[4]=s,n[5]=s,n;const u=o.match(Vk);if(u){const y=u[1].length;return n[0]=Ca,n[1]=t+y,n[2]=t+y+1,n[3]=t+y+2,n[4]=t+y+3,n[5]=e.length,n}const f=o.match(qk);if(f){const d=f[1],y=f[2],p=f[3],v=d.length;return n[0]=xo,n[1]=t+v,n[2]=t+v+3,n[3]=t+v+3+y.length,n[4]=s-p.length,n[5]=s,n}const h=o.match(Uk);if(h){const d=h[1],y=h[2],p=h[3],v=d.length;return n[0]=ka,n[1]=t+v,n[2]=t+v+2,n[3]=t+v+2+y.length,n[4]=s-p.length,n[5]=s,n}return n[0]=Ys,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n}function of(e,t,n,i,s,o,u){var h,d,y,p,v;u==null||u(n);let f=i;{const _=n.fullPath??n.from,x=_.length,E=((h=n.options)==null?void 0:h.caseSensitive)??e;for(;f<x;){const k=wp(_,f,t);let w;const C=f,L=k[5];switch(f=L+1,o++,k[0]){case Ys:{const B=_.substring(k[2],k[3]);if(E){const A=(d=s.static)==null?void 0:d.get(B);if(A)w=A;else{s.static??(s.static=new Map);const q=So(n.fullPath??n.from);q.parent=s,q.depth=o,w=q,s.static.set(B,q)}}else{const A=B.toLowerCase(),q=(y=s.staticInsensitive)==null?void 0:y.get(A);if(q)w=q;else{s.staticInsensitive??(s.staticInsensitive=new Map);const $=So(n.fullPath??n.from);$.parent=s,$.depth=o,w=$,s.staticInsensitive.set(A,$)}}break}case ka:{const B=_.substring(C,k[1]),A=_.substring(k[4],L),q=E&&!!(B||A),$=B?q?B:B.toLowerCase():void 0,ne=A?q?A:A.toLowerCase():void 0,N=(p=s.dynamic)==null?void 0:p.find(Q=>Q.caseSensitive===q&&Q.prefix===$&&Q.suffix===ne);if(N)w=N;else{const Q=Kd(ka,n.fullPath??n.from,q,$,ne);w=Q,Q.depth=o,Q.parent=s,s.dynamic??(s.dynamic=[]),s.dynamic.push(Q)}break}case xo:{const B=_.substring(C,k[1]),A=_.substring(k[4],L),q=E&&!!(B||A),$=B?q?B:B.toLowerCase():void 0,ne=A?q?A:A.toLowerCase():void 0,N=(v=s.optional)==null?void 0:v.find(Q=>Q.caseSensitive===q&&Q.prefix===$&&Q.suffix===ne);if(N)w=N;else{const Q=Kd(xo,n.fullPath??n.from,q,$,ne);w=Q,Q.parent=s,Q.depth=o,s.optional??(s.optional=[]),s.optional.push(Q)}break}case Ca:{const B=_.substring(C,k[1]),A=_.substring(k[4],L),q=E&&!!(B||A),$=B?q?B:B.toLowerCase():void 0,ne=A?q?A:A.toLowerCase():void 0,N=Kd(Ca,n.fullPath??n.from,q,$,ne);w=N,N.parent=s,N.depth=o,s.wildcard??(s.wildcard=[]),s.wildcard.push(N)}}s=w}if((n.path||!n.children)&&!n.isRoot){const k=_.endsWith("/");k||(s.notFound=n),(!s.route||!s.isIndex&&k)&&(s.route=n),s.isIndex||(s.isIndex=k)}}if(n.children)for(const _ of n.children)of(e,t,_,f,s,o,u)}function Yd(e,t){if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function la(e){var t,n,i;if(e.static)for(const s of e.static.values())la(s);if(e.staticInsensitive)for(const s of e.staticInsensitive.values())la(s);if((t=e.dynamic)!=null&&t.length){e.dynamic.sort(Yd);for(const s of e.dynamic)la(s)}if((n=e.optional)!=null&&n.length){e.optional.sort(Yd);for(const s of e.optional)la(s)}if((i=e.wildcard)!=null&&i.length){e.wildcard.sort(Yd);for(const s of e.wildcard)la(s)}}function So(e){return{kind:Ys,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,isIndex:!1,notFound:null}}function Kd(e,t,n,i,s){return{kind:e,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,isIndex:!1,notFound:null,caseSensitive:n,prefix:i,suffix:s}}function Hk(e,t){const n=So("/"),i=new Uint16Array(6);for(const s of e)of(!1,i,s,1,n,0);la(n),t.masksTree=n,t.flatCache=Ic(1e3)}function Gk(e,t){e||(e="/");const n=t.flatCache.get(e);if(n)return n;const i=Tp(e,t.masksTree);return t.flatCache.set(e,i),i}function Fk(e,t,n,i,s){e||(e="/"),i||(i="/");const o=t?`case\0${e}`:e;let u=s.singleCache.get(o);if(!u){u=So("/");const f=new Uint16Array(6);of(t,f,{from:e},1,u,0),s.singleCache.set(o,u)}return Tp(i,u,n)}function Qk(e,t,n=!1){const i=n?e:`nofuzz\0${e}`,s=t.matchCache.get(i);if(s!==void 0)return s;e||(e="/");const o=Tp(e,t.segmentTree,n);return o&&(o.branch=Xk(o.route)),t.matchCache.set(i,o),o}function $k(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function Yk(e,t=!1,n){const i=So(e.fullPath),s=new Uint16Array(6),o={},u={};let f=0;return of(t,s,e,1,i,0,d=>{if(n==null||n(d,f),Gr(!(d.id in o),`Duplicate routes found with id: ${String(d.id)}`),o[d.id]=d,f!==0&&d.path){const y=$k(d.fullPath);(!u[y]||d.fullPath.endsWith("/"))&&(u[y]=d)}f++}),la(i),{processedTree:{segmentTree:i,singleCache:Ic(1e3),matchCache:Ic(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:u}}function Tp(e,t,n=!1){const i=e.split("/"),s=Jk(e,i,t,n);if(!s)return null;const o=Kk(e,i,s),u="**"in s;return u&&(o["**"]=s["**"]),{route:u?s.node.notFound??s.node.route:s.node.route,params:o}}function Kk(e,t,n){var u,f,h,d,y,p;const i=Zk(n.node);let s=null;const o={};for(let v=0,_=0,x=0;_<i.length;v++,_++,x++){const E=i[_],k=t[v],w=x;if(k&&(x+=k.length),E.kind===ka){s??(s=n.node.fullPath.split("/"));const C=s[_],L=((u=E.prefix)==null?void 0:u.length)??0;if(C.charCodeAt(L)===123){const B=((f=E.suffix)==null?void 0:f.length)??0,A=C.substring(L+2,C.length-B-1),q=k.substring(L,k.length-B);o[A]=decodeURIComponent(q)}else{const B=C.substring(1);o[B]=decodeURIComponent(k)}}else if(E.kind===xo){if(n.skipped&1<<_){v--;continue}s??(s=n.node.fullPath.split("/"));const C=s[_],L=((h=E.prefix)==null?void 0:h.length)??0,z=((d=E.suffix)==null?void 0:d.length)??0,B=C.substring(L+3,C.length-z-1),A=E.suffix||E.prefix?k.substring(L,k.length-z):k;A&&(o[B]=decodeURIComponent(A))}else if(E.kind===Ca){const C=E,L=e.substring(w+(((y=C.prefix)==null?void 0:y.length)??0),e.length-(((p=C.suffix)==null?void 0:p.length)??0)),z=decodeURIComponent(L);o["*"]=z,o._splat=z;break}}return o}function Xk(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function Zk(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function Jk(e,t,n,i){const s=!Pc(t),o=s&&e!=="/",u=t.length-(s?1:0),f=[{node:n,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let h=null,d=null,y=null;for(;f.length;){const p=f.pop();let{node:v,index:_,skipped:x,depth:E,statics:k,dynamics:w,optionals:C}=p;i&&v.notFound&&Xd(d,p)&&(d=p);const L=_===u;if(L){if(v.route&&(!o||v.isIndex)&&(Xd(y,p)&&(y=p),k===u&&v.isIndex))return y;if(!v.optional&&!v.wildcard)continue}const z=L?void 0:t[_];let B;if(v.wildcard&&Xd(h,p))for(const A of v.wildcard){const{prefix:q,suffix:$}=A;if(!(q&&(L||!(A.caseSensitive?z:B??(B=z.toLowerCase())).startsWith(q)))){if($){if(L)continue;const ne=t.slice(_).join("/").slice(-$.length);if((A.caseSensitive?ne:ne.toLowerCase())!==$)continue}h={node:A,index:_,skipped:x,depth:E,statics:k,dynamics:w,optionals:C};break}}if(v.optional){const A=x|1<<E,q=E+1;for(let $=v.optional.length-1;$>=0;$--){const ne=v.optional[$];f.push({node:ne,index:_,skipped:A,depth:q,statics:k,dynamics:w,optionals:C})}if(!L)for(let $=v.optional.length-1;$>=0;$--){const ne=v.optional[$],{prefix:N,suffix:Q}=ne;if(N||Q){const re=ne.caseSensitive?z:B??(B=z.toLowerCase());if(N&&!re.startsWith(N)||Q&&!re.endsWith(Q))continue}f.push({node:ne,index:_+1,skipped:x,depth:q,statics:k,dynamics:w,optionals:C+1})}}if(!L&&v.dynamic&&z)for(let A=v.dynamic.length-1;A>=0;A--){const q=v.dynamic[A],{prefix:$,suffix:ne}=q;if($||ne){const N=q.caseSensitive?z:B??(B=z.toLowerCase());if($&&!N.startsWith($)||ne&&!N.endsWith(ne))continue}f.push({node:q,index:_+1,skipped:x,depth:E+1,statics:k,dynamics:w+1,optionals:C})}if(!L&&v.staticInsensitive){const A=v.staticInsensitive.get(B??(B=z.toLowerCase()));A&&f.push({node:A,index:_+1,skipped:x,depth:E+1,statics:k+1,dynamics:w,optionals:C})}if(!L&&v.static){const A=v.static.get(z);A&&f.push({node:A,index:_+1,skipped:x,depth:E+1,statics:k+1,dynamics:w,optionals:C})}}if(y)return y;if(h)return h;if(i&&d){let p=d.index;for(let _=0;_<d.index;_++)p+=t[_].length;const v=p===e.length?"/":e.slice(p);return{node:d.node,skipped:d.skipped,"**":decodeURIComponent(v)}}return null}function Xd(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&(t.node.isIndex>e.node.isIndex||t.node.isIndex===e.node.isIndex&&t.depth>e.depth))):!0}function Tc(e){return kp(e.filter(t=>t!==void 0).join("/"))}function kp(e){return e.replace(/\/{2,}/g,"/")}function qx(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function xa(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function kc(e){return xa(qx(e))}function Bc(e,t){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function Wk(e,t,n){return Bc(e,n)===Bc(t,n)}function eC({base:e,to:t,trailingSlash:n="never",cache:i}){const s=t.startsWith("/"),o=!s&&t===".";let u;if(i){u=s?t:o?e:e+"\0"+t;const p=i.get(u);if(p)return p}let f;if(o)f=e.split("/");else if(s)f=t.split("/");else{for(f=e.split("/");f.length>1&&Pc(f)==="";)f.pop();const p=t.split("/");for(let v=0,_=p.length;v<_;v++){const x=p[v];x===""?v?v===_-1&&f.push(x):f=[x]:x===".."?f.pop():x==="."||f.push(x)}}f.length>1&&(Pc(f)===""?n==="never"&&f.pop():n==="always"&&f.push(""));let h,d="";for(let p=0;p<f.length;p++){p>0&&(d+="/");const v=f[p];if(!v)continue;h=wp(v,0,h);const _=h[0];if(_===Ys){d+=v;continue}const x=h[5],E=v.substring(0,h[1]),k=v.substring(h[4],x),w=v.substring(h[2],h[3]);_===ka?d+=E||k?`${E}{$${w}}${k}`:`$${w}`:_===Ca?d+=E||k?`${E}{$}${k}`:"$":d+=`${E}{-$${w}}${k}`}d=kp(d);const y=d||"/";return u&&i&&i.set(u,y),y}function Zd(e,t,n){const i=t[e];return typeof i!="string"?i:e==="_splat"?encodeURI(i):tC(i,n)}function Jd({path:e,params:t,decodeCharMap:n}){let i=!1;const s={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:s,isMissingParams:i};if(!e.includes("$"))return{interpolatedPath:e,usedParams:s,isMissingParams:i};const o=e.length;let u=0,f,h="";for(;u<o;){const y=u;f=wp(e,y,f);const p=f[5];if(u=p+1,y===p)continue;const v=f[0];if(v===Ys){h+="/"+e.substring(y,p);continue}if(v===Ca){const _=t._splat;s._splat=_,s["*"]=_;const x=e.substring(y,f[1]),E=e.substring(f[4],p);if(!_){i=!0,(x||E)&&(h+="/"+x+E);continue}const k=Zd("_splat",t,n);h+="/"+x+k+E;continue}if(v===ka){const _=e.substring(f[2],f[3]);!i&&!(_ in t)&&(i=!0),s[_]=t[_];const x=e.substring(y,f[1]),E=e.substring(f[4],p),k=Zd(_,t,n)??"undefined";h+="/"+x+k+E;continue}if(v===xo){const _=e.substring(f[2],f[3]),x=t[_];if(x==null)continue;s[_]=x;const E=e.substring(y,f[1]),k=e.substring(f[4],p),w=Zd(_,t,n)??"";h+="/"+E+w+k;continue}}return e.endsWith("/")&&(h+="/"),{usedParams:s,interpolatedPath:h||"/",isMissingParams:i}}function tC(e,t){let n=encodeURIComponent(e);if(t)for(const[i,s]of t)n=n.replaceAll(i,s);return n}function Vx(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function Bn(e){return!!(e!=null&&e.isNotFound)}function nC(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Uc="tsr-scroll-restoration-v1_3",rC=(e,t)=>{let n;return(...i)=>{n||(n=setTimeout(()=>{e(...i),n=null},t))}};function iC(){const e=nC();if(!e)return null;const t=e.getItem(Uc);let n=t?JSON.parse(t):{};return{state:n,set:i=>(n=_a(i,n)||n,e.setItem(Uc,JSON.stringify(n)))}}const uc=iC(),Ym=e=>e.state.__TSR_key||e.href;function aC(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let qc=!1;function Hx({storageKey:e,key:t,behavior:n,shouldScrollRestoration:i,scrollToTopSelectors:s,location:o}){var d,y;let u;try{u=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(p){console.error(p);return}const f=t||((d=window.history.state)==null?void 0:d.__TSR_key),h=u[f];qc=!0;e:{if(i&&h&&Object.keys(h).length>0){for(const _ in h){const x=h[_];if(_==="window")window.scrollTo({top:x.scrollY,left:x.scrollX,behavior:n});else if(_){const E=document.querySelector(_);E&&(E.scrollLeft=x.scrollX,E.scrollTop=x.scrollY)}}break e}const p=(o??window.location).hash.split("#",2)[1];if(p){const _=((y=window.history.state)==null?void 0:y.__hashScrollIntoViewOptions)??!0;if(_){const x=document.getElementById(p);x&&x.scrollIntoView(_)}break e}const v={top:0,left:0,behavior:n};if(window.scrollTo(v),s)for(const _ of s){if(_==="window")continue;const x=typeof _=="function"?_():document.querySelector(_);x&&x.scrollTo(v)}}qc=!1}function sC(e,t){if(!uc&&!e.isServer||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isServer||e.isScrollRestorationSetup||!uc))return;e.isScrollRestorationSetup=!0,qc=!1;const i=e.options.getScrollRestorationKey||Ym;window.history.scrollRestoration="manual";const s=o=>{if(qc||!e.isScrollRestoring)return;let u="";if(o.target===document||o.target===window)u="window";else{const h=o.target.getAttribute("data-scroll-restoration-id");h?u=`[data-scroll-restoration-id="${h}"]`:u=aC(o.target)}const f=i(e.state.location);uc.set(h=>{const d=h[f]||(h[f]={}),y=d[u]||(d[u]={});if(u==="window")y.scrollX=window.scrollX||0,y.scrollY=window.scrollY||0;else if(u){const p=document.querySelector(u);p&&(y.scrollX=p.scrollLeft||0,y.scrollY=p.scrollTop||0)}return h})};typeof document<"u"&&document.addEventListener("scroll",rC(s,100),!0),e.subscribe("onRendered",o=>{const u=i(o.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(Hx({storageKey:Uc,key:u,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&uc.set(f=>(f[u]||(f[u]={}),f)))})}function lC(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function oC(e,t=String){const n=new URLSearchParams;for(const i in e){const s=e[i];s!==void 0&&n.set(i,t(s))}return n.toString()}function Wd(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function uC(e){const t=new URLSearchParams(e),n={};for(const[i,s]of t.entries()){const o=n[i];o==null?n[i]=Wd(s):Array.isArray(o)?o.push(Wd(s)):n[i]=[o,Wd(s)]}return n}const cC=hC(JSON.parse),fC=dC(JSON.stringify,JSON.parse);function hC(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=uC(t);for(const i in n){const s=n[i];if(typeof s=="string")try{n[i]=e(s)}catch{}}return n}}function dC(e,t){const n=typeof t=="function";function i(s){if(typeof s=="object"&&s!==null)try{return e(s)}catch{}else if(n&&typeof s=="string")try{return t(s),e(s)}catch{}return s}return s=>{const o=oC(s,i);return o?`?${o}`:""}}const _n="__root__";function mC(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Xn(e){return e instanceof Response&&!!e.options}const Cc=e=>{var t;if(!e.rendered)return e.rendered=!0,(t=e.onReady)==null?void 0:t.call(e)},uf=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),Gx=(e,t)=>{var s;const n=e.router.routesById[t.routeId??""]??e.router.routeTree;!n.options.notFoundComponent&&((s=e.router.options)!=null&&s.defaultNotFoundComponent)&&(n.options.notFoundComponent=e.router.options.defaultNotFoundComponent),Gr(n.options.notFoundComponent);const i=e.matches.find(o=>o.routeId===n.id);Gr(i,"Could not find match for route: "+n.id),e.updateMatch(i.id,o=>({...o,status:"notFound",error:t,isFetching:!1})),t.routerCode==="BEFORE_LOAD"&&n.parentRoute&&(t.routeId=n.parentRoute.id,Gx(e,t))},Ni=(e,t,n)=>{var i,s,o;if(!(!Xn(n)&&!Bn(n))){if(Xn(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){(i=t._nonReactive.beforeLoadPromise)==null||i.resolve(),(s=t._nonReactive.loaderPromise)==null||s.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const u=Xn(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,f=>({...f,status:u,isFetching:!1,error:n})),Bn(n)&&!n.routeId&&(n.routeId=t.routeId),(o=t._nonReactive.loadPromise)==null||o.resolve()}throw Xn(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(Gx(e,n),n)}},Fx=(e,t)=>{const n=e.router.getMatch(t);return!!(!e.router.isServer&&n._nonReactive.dehydrated||e.router.isServer&&n.ssr===!1)},Jl=(e,t,n,i)=>{var f,h;const{id:s,routeId:o}=e.matches[t],u=e.router.looseRoutesById[o];if(n instanceof Promise)throw n;n.routerCode=i,e.firstBadMatchIndex??(e.firstBadMatchIndex=t),Ni(e,e.router.getMatch(s),n);try{(h=(f=u.options).onError)==null||h.call(f,n)}catch(d){n=d,Ni(e,e.router.getMatch(s),n)}e.updateMatch(s,d=>{var y,p;return(y=d._nonReactive.beforeLoadPromise)==null||y.resolve(),d._nonReactive.beforeLoadPromise=void 0,(p=d._nonReactive.loadPromise)==null||p.resolve(),{...d,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}})},pC=(e,t,n,i)=>{var _;const s=e.router.getMatch(t),o=(_=e.matches[n-1])==null?void 0:_.id,u=o?e.router.getMatch(o):void 0;if(e.router.isShell()){s.ssr=i.id===_n;return}if((u==null?void 0:u.ssr)===!1){s.ssr=!1;return}const f=x=>x===!0&&(u==null?void 0:u.ssr)==="data-only"?"data-only":x,h=e.router.options.defaultSsr??!0;if(i.options.ssr===void 0){s.ssr=f(h);return}if(typeof i.options.ssr!="function"){s.ssr=f(i.options.ssr);return}const{search:d,params:y}=s,p={search:cc(d,s.searchError),params:cc(y,s.paramsError),location:e.location,matches:e.matches.map(x=>({index:x.index,pathname:x.pathname,fullPath:x.fullPath,staticData:x.staticData,id:x.id,routeId:x.routeId,search:cc(x.search,x.searchError),params:cc(x.params,x.paramsError),ssr:x.ssr}))},v=i.options.ssr(p);if(Mi(v))return v.then(x=>{s.ssr=f(x??h)});s.ssr=f(v??h)},Qx=(e,t,n,i)=>{var u;if(i._nonReactive.pendingTimeout!==void 0)return;const s=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!e.router.isServer&&!uf(e,t)&&(n.options.loader||n.options.beforeLoad||Kx(n))&&typeof s=="number"&&s!==1/0&&(n.options.pendingComponent??((u=e.router.options)==null?void 0:u.defaultPendingComponent)))){const f=setTimeout(()=>{Cc(e)},s);i._nonReactive.pendingTimeout=f}},gC=(e,t,n)=>{const i=e.router.getMatch(t);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;Qx(e,t,n,i);const s=()=>{const o=e.router.getMatch(t);o.preload&&(o.status==="redirected"||o.status==="notFound")&&Ni(e,o,o.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(s):s()},yC=(e,t,n,i)=>{var q;const s=e.router.getMatch(t),o=s._nonReactive.loadPromise;s._nonReactive.loadPromise=$s(()=>{o==null||o.resolve()});const{paramsError:u,searchError:f}=s;u&&Jl(e,n,u,"PARSE_PARAMS"),f&&Jl(e,n,f,"VALIDATE_SEARCH"),Qx(e,t,i,s);const h=new AbortController,d=(q=e.matches[n-1])==null?void 0:q.id,y=d?e.router.getMatch(d):void 0,v={...(y==null?void 0:y.context)??e.router.options.context??void 0,...s.__routeContext};let _=!1;const x=()=>{_||(_=!0,e.updateMatch(t,$=>({...$,isFetching:"beforeLoad",fetchCount:$.fetchCount+1,abortController:h,context:v})))},E=()=>{var $;($=s._nonReactive.beforeLoadPromise)==null||$.resolve(),s._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,ne=>({...ne,isFetching:!1}))};if(!i.options.beforeLoad){co(()=>{x(),E()});return}s._nonReactive.beforeLoadPromise=$s();const{search:k,params:w,cause:C}=s,L=uf(e,t),z={search:k,abortController:h,params:w,preload:L,context:v,location:e.location,navigate:$=>e.router.navigate({...$,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:L?"preload":C,matches:e.matches,...e.router.options.additionalContext},B=$=>{if($===void 0){co(()=>{x(),E()});return}(Xn($)||Bn($))&&(x(),Jl(e,n,$,"BEFORE_LOAD")),co(()=>{x(),e.updateMatch(t,ne=>({...ne,__beforeLoadContext:$,context:{...ne.context,...$}})),E()})};let A;try{if(A=i.options.beforeLoad(z),Mi(A))return x(),A.catch($=>{Jl(e,n,$,"BEFORE_LOAD")}).then(B)}catch($){x(),Jl(e,n,$,"BEFORE_LOAD")}B(A)},vC=(e,t)=>{const{id:n,routeId:i}=e.matches[t],s=e.router.looseRoutesById[i],o=()=>{if(e.router.isServer){const h=pC(e,n,t,s);if(Mi(h))return h.then(f)}return f()},u=()=>yC(e,n,t,s),f=()=>{if(Fx(e,n))return;const h=gC(e,n,s);return Mi(h)?h.then(u):u()};return o()},fo=(e,t,n)=>{var o,u,f,h,d,y;const i=e.router.getMatch(t);if(!i||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const s={matches:e.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([(u=(o=n.options).head)==null?void 0:u.call(o,s),(h=(f=n.options).scripts)==null?void 0:h.call(f,s),(y=(d=n.options).headers)==null?void 0:y.call(d,s)]).then(([p,v,_])=>{const x=p==null?void 0:p.meta,E=p==null?void 0:p.links,k=p==null?void 0:p.scripts,w=p==null?void 0:p.styles;return{meta:x,links:E,headScripts:k,headers:_,scripts:v,styles:w}})},$x=(e,t,n,i)=>{const s=e.matchPromises[n-1],{params:o,loaderDeps:u,abortController:f,cause:h}=e.router.getMatch(t);let d=e.router.options.context??{};for(let p=0;p<=n;p++){const v=e.matches[p];if(!v)continue;const _=e.router.getMatch(v.id);_&&(d={...d,..._.__routeContext??{},..._.__beforeLoadContext??{}})}const y=uf(e,t);return{params:o,deps:u,preload:!!y,parentMatchPromise:s,abortController:f,context:d,location:e.location,navigate:p=>e.router.navigate({...p,_fromLocation:e.location}),cause:y?"preload":h,route:i,...e.router.options.additionalContext}},N0=async(e,t,n,i)=>{var s,o,u,f,h,d;try{const y=e.router.getMatch(t);try{(!e.router.isServer||y.ssr===!0)&&Yx(i);const p=(o=(s=i.options).loader)==null?void 0:o.call(s,$x(e,t,n,i)),v=i.options.loader&&Mi(p);if(!!(v||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||y._nonReactive.minPendingPromise)&&e.updateMatch(t,w=>({...w,isFetching:"loader"})),i.options.loader){const w=v?await p:p;Ni(e,e.router.getMatch(t),w),w!==void 0&&e.updateMatch(t,C=>({...C,loaderData:w}))}i._lazyPromise&&await i._lazyPromise;const x=fo(e,t,i),E=x?await x:void 0,k=y._nonReactive.minPendingPromise;k&&await k,i._componentsPromise&&await i._componentsPromise,e.updateMatch(t,w=>({...w,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...E}))}catch(p){let v=p;const _=y._nonReactive.minPendingPromise;_&&await _,Bn(p)&&await((f=(u=i.options.notFoundComponent)==null?void 0:u.preload)==null?void 0:f.call(u)),Ni(e,e.router.getMatch(t),p);try{(d=(h=i.options).onError)==null||d.call(h,p)}catch(k){v=k,Ni(e,e.router.getMatch(t),k)}const x=fo(e,t,i),E=x?await x:void 0;e.updateMatch(t,k=>({...k,error:v,status:"error",isFetching:!1,...E}))}}catch(y){const p=e.router.getMatch(t);if(p){const v=fo(e,t,i);if(v){const _=await v;e.updateMatch(t,x=>({...x,..._}))}p._nonReactive.loaderPromise=void 0}Ni(e,p,y)}},_C=async(e,t)=>{var d,y;const{id:n,routeId:i}=e.matches[t];let s=!1,o=!1;const u=e.router.looseRoutesById[i];if(Fx(e,n)){if(e.router.isServer){const p=fo(e,n,u);if(p){const v=await p;e.updateMatch(n,_=>({..._,...v}))}return e.router.getMatch(n)}}else{const p=e.router.getMatch(n);if(p._nonReactive.loaderPromise){if(p.status==="success"&&!e.sync&&!p.preload)return p;await p._nonReactive.loaderPromise;const v=e.router.getMatch(n),_=v._nonReactive.error||v.error;_&&Ni(e,v,_)}else{const v=Date.now()-p.updatedAt,_=uf(e,n),x=_?u.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:u.options.staleTime??e.router.options.defaultStaleTime??0,E=u.options.shouldReload,k=typeof E=="function"?E($x(e,n,t,u)):E,w=!!_&&!e.router.state.matches.some(B=>B.id===n),C=e.router.getMatch(n);C._nonReactive.loaderPromise=$s(),w!==C.preload&&e.updateMatch(n,B=>({...B,preload:w}));const{status:L,invalid:z}=C;if(s=L==="success"&&(z||(k??v>x)),!(_&&u.options.preload===!1))if(s&&!e.sync)o=!0,(async()=>{var B,A;try{await N0(e,n,t,u);const q=e.router.getMatch(n);(B=q._nonReactive.loaderPromise)==null||B.resolve(),(A=q._nonReactive.loadPromise)==null||A.resolve(),q._nonReactive.loaderPromise=void 0}catch(q){Xn(q)&&await e.router.navigate(q.options)}})();else if(L!=="success"||s&&e.sync)await N0(e,n,t,u);else{const B=fo(e,n,u);if(B){const A=await B;e.updateMatch(n,q=>({...q,...A}))}}}}const f=e.router.getMatch(n);o||((d=f._nonReactive.loaderPromise)==null||d.resolve(),(y=f._nonReactive.loadPromise)==null||y.resolve()),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,o||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;const h=o?f.isFetching:!1;return h!==f.isFetching||f.invalid!==!1?(e.updateMatch(n,p=>({...p,isFetching:h,invalid:!1})),e.router.getMatch(n)):f};async function j0(e){const t=Object.assign(e,{matchPromises:[]});!t.router.isServer&&t.router.state.matches.some(n=>n._forcePending)&&Cc(t);try{for(let s=0;s<t.matches.length;s++){const o=vC(t,s);Mi(o)&&await o}const n=t.firstBadMatchIndex??t.matches.length;for(let s=0;s<n;s++)t.matchPromises.push(_C(t,s));await Promise.all(t.matchPromises);const i=Cc(t);Mi(i)&&await i}catch(n){if(Bn(n)&&!t.preload){const i=Cc(t);throw Mi(i)&&await i,n}if(Xn(n))throw n}return t.matches}async function Yx(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...i}=t.options;Object.assign(e.options,i),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{var i;const n=[];for(const s of Xx){const o=(i=e.options[s])==null?void 0:i.preload;o&&n.push(o())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function cc(e,t){return t?{status:"error",error:t}:{status:"success",value:e}}function Kx(e){var t;for(const n of Xx)if((t=e.options[n])!=null&&t.preload)return!0;return!1}const Xx=["component","errorComponent","pendingComponent","notFoundComponent"];function bC(e){return{input:({url:t})=>{for(const n of e)t=Zx(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Jx(e[n],t);return t}}}function xC(e){const t=kc(e.basepath),n=`/${t}`,i=`${n}/`,s=e.caseSensitive?n:n.toLowerCase(),o=e.caseSensitive?i:i.toLowerCase();return{input:({url:u})=>{const f=e.caseSensitive?u.pathname:u.pathname.toLowerCase();return f===s?u.pathname="/":f.startsWith(o)&&(u.pathname=u.pathname.slice(n.length)),u},output:({url:u})=>(u.pathname=Tc(["/",t,u.pathname]),u)}}function Zx(e,t){var i;const n=(i=e==null?void 0:e.input)==null?void 0:i.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Jx(e,t){var i;const n=(i=e==null?void 0:e.output)==null?void 0:i.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Sa(e){const t=e.resolvedLocation,n=e.location,i=(t==null?void 0:t.pathname)!==n.pathname,s=(t==null?void 0:t.href)!==n.href,o=(t==null?void 0:t.hash)!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:i,hrefChanged:s,hashChanged:o}}class SC{constructor(t){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=>{var v;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,s=this.basepath??(i==null?void 0:i.basepath)??"/",o=this.basepath===void 0,u=i==null?void 0: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(_=>[encodeURIComponent(_),_])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=Pk())),this.origin=this.options.origin,this.origin||(!this.isServer&&(window!=null&&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 Dk(wC(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(_=>!["redirected"].includes(_.status))}}}),sC(this));let f=!1;const h=this.options.basepath??"/",d=this.options.rewrite;if(o||s!==h||u!==d){this.basepath=h;const _=[];kc(h)!==""&&_.push(xC({basepath:h})),d&&_.push(d),this.rewrite=_.length===0?void 0:_.length===1?_[0]:bC(_),this.history&&this.updateLatestLocation(),f=!0}f&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof((v=window.CSS)==null?void 0:v.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:s}=Yk(this.routeTree,this.options.caseSensitive,(u,f)=>{u.init({originalIndex:f})});this.options.routeMasks&&Hk(this.options.routeMasks,s),this.routesById=n,this.routesByPath=i,this.processedTree=s;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)},this.subscribe=(n,i)=>{const s={eventType:n,fn:i};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=n=>{this.subscribers.forEach(i=>{i.eventType===n.type&&i.fn(n)})},this.parseLocation=(n,i)=>{const s=({href:h,state:d})=>{const y=new URL(h,this.origin),p=Zx(this.rewrite,y),v=this.options.parseSearch(p.search),_=this.options.stringifySearch(v);p.search=_;const x=p.href.replace(p.origin,""),{pathname:E,hash:k}=p;return{href:x,publicHref:h,url:p.href,pathname:L0(E),searchStr:_,search:Dn(i==null?void 0:i.search,v),hash:k.split("#").reverse()[0]??"",state:Dn(i==null?void 0:i.state,d)}},o=s(n),{__tempLocation:u,__tempKey:f}=o.state;if(u&&(!f||f===this.tempLocationKey)){const h=s(u);return h.state.key=o.state.key,h.state.__TSR_key=o.state.__TSR_key,delete h.state.__tempLocation,{...h,maskedLocation:o}}return o},this.resolvePathCache=Ic(1e3),this.resolvePathWithBase=(n,i)=>eC({base:n,to:kp(i),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,i,s)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:i},s):this.matchRoutesInternal(n,i),this.getMatchedRoutes=n=>TC({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(o=>o.status==="pending"),i=this.state.matches.filter(o=>o.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...i]).forEach(o=>{this.cancelMatch(o.id)})},this.buildLocation=n=>{const i=(o={})=>{var N,Q;const u=o._fromLocation||this.pendingBuiltLocation||this.latestLocation,f=this.matchRoutes(u,{_buildLocation:!0}),h=Pc(f);o.from;const d=o.unsafeRelative==="path"?u.pathname:o.from??h.fullPath,y=this.resolvePathWithBase(d,"."),p=h.search,v={...h.params},_=o.to?this.resolvePathWithBase(y,`${o.to}`):this.resolvePathWithBase(y,"."),x=o.params===!1||o.params===null?{}:(o.params??!0)===!0?v:Object.assign(v,_a(o.params,v)),E=Jd({path:_,params:x}).interpolatedPath,k=this.matchRoutes(E,void 0,{_buildLocation:!0}).map(re=>this.looseRoutesById[re.routeId]);if(Object.keys(x).length>0)for(const re of k){const me=((N=re.options.params)==null?void 0:N.stringify)??re.options.stringifyParams;me&&Object.assign(x,me(x))}const w=n.leaveParams?_:L0(Jd({path:_,params:x,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let C=p;if(n._includeValidateSearch&&((Q=this.options.search)!=null&&Q.strict)){const re={};k.forEach(me=>{if(me.options.validateSearch)try{Object.assign(re,Km(me.options.validateSearch,{...re,...C}))}catch{}}),C=re}C=kC({search:C,dest:o,destRoutes:k,_includeValidateSearch:n._includeValidateSearch}),C=Dn(p,C);const L=this.options.stringifySearch(C),z=o.hash===!0?u.hash:o.hash?_a(o.hash,u.hash):void 0,B=z?`#${z}`:"";let A=o.state===!0?u.state:o.state?_a(o.state,u.state):{};A=Dn(u.state,A);const q=`${w}${L}${B}`,$=new URL(q,this.origin),ne=Jx(this.rewrite,$);return{publicHref:ne.pathname+ne.search+ne.hash,href:q,url:ne.href,pathname:w,search:C,searchStr:L,state:A,hash:z??"",unmaskOnReload:o.unmaskOnReload}},s=(o={},u)=>{const f=i(o);let h=u?i(u):void 0;if(!h){const d={};if(this.options.routeMasks){const y=Gk(f.pathname,this.processedTree);if(y){Object.assign(d,y.params);const{from:p,...v}=y.route;u={from:n.from,...v,params:d},h=i(u)}}}return h&&(f.maskedLocation=h),f};return n.mask?s(n,{from:n.from,...n.mask}):s(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:i,...s})=>{const o=()=>{const h=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];h.forEach(y=>{s.state[y]=this.latestLocation.state[y]});const d=ba(s.state,this.latestLocation.state);return h.forEach(y=>{delete s.state[y]}),d},u=xa(this.latestLocation.href)===xa(s.href),f=this.commitLocationPromise;if(this.commitLocationPromise=$s(()=>{f==null||f.resolve()}),u&&o())this.load();else{let{maskedLocation:h,hashScrollIntoView:d,...y}=s;h&&(y={...h,state:{...h.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=d??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[s.replace?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:i})}return this.resetNextScroll=s.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:i,hashScrollIntoView:s,viewTransition:o,ignoreBlocker:u,href:f,...h}={})=>{if(f){const p=this.history.location.state.__TSR_index,v=Mc(f,{__TSR_index:n?p:p+1});h.to=v.pathname,h.search=this.options.parseSearch(v.search),h.hash=v.hash.slice(1)}const d=this.buildLocation({...h,_includeValidateSearch:!0});this.pendingBuiltLocation=d;const y=this.commitLocation({...d,viewTransition:o,replace:n,resetScroll:i,hashScrollIntoView:s,ignoreBlocker:u});return Promise.resolve().then(()=>{this.pendingBuiltLocation===d&&(this.pendingBuiltLocation=void 0)}),y},this.navigate=async({to:n,reloadDocument:i,href:s,...o})=>{var u;if(!i&&s)try{new URL(`${s}`),i=!0}catch{}if(i){if(s||(s=this.buildLocation({to:n,...o}).url),!o.ignoreBlocker){const f=this.history,h=((u=f.getBlockers)==null?void 0:u.call(f))??[];for(const d of h)if(d!=null&&d.blockerFn&&await d.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return o.replace?window.location.replace(s):window.location.href=s,Promise.resolve()}return this.buildAndCommitLocation({...o,href:s,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}),s=o=>{try{return encodeURI(decodeURI(o))}catch{return o}};if(kc(s(this.latestLocation.href))!==kc(s(i.href))){let o=i.url;throw this.origin&&o.startsWith(this.origin)&&(o=o.replace(this.origin,"")||"/"),mC({href:o})}}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(s=>!n.some(o=>o.id===s.id))}))},this.load=async n=>{let i,s,o;for(o=new Promise(f=>{this.startTransition(async()=>{var h;try{this.beforeLoad();const d=this.latestLocation,y=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Sa({resolvedLocation:y,location:d})}),this.emit({type:"onBeforeLoad",...Sa({resolvedLocation:y,location:d})}),await j0({router:this,sync:n==null?void 0:n.sync,matches:this.state.pendingMatches,location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let p=[],v=[],_=[];co(()=>{this.__store.setState(x=>{const E=x.matches,k=x.pendingMatches||x.matches;return p=E.filter(w=>!k.some(C=>C.id===w.id)),v=k.filter(w=>!E.some(C=>C.id===w.id)),_=k.filter(w=>E.some(C=>C.id===w.id)),{...x,isLoading:!1,loadedAt:Date.now(),matches:k,pendingMatches:void 0,cachedMatches:[...x.cachedMatches,...p.filter(w=>w.status!=="error"&&w.status!=="notFound")]}}),this.clearExpiredCache()}),[[p,"onLeave"],[v,"onEnter"],[_,"onStay"]].forEach(([x,E])=>{x.forEach(k=>{var w,C;(C=(w=this.looseRoutesById[k.routeId].options)[E])==null||C.call(w,k)})})})})}})}catch(d){Xn(d)?(i=d,this.isServer||this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):Bn(d)&&(s=d),this.__store.setState(y=>({...y,statusCode:i?i.status:s?404:y.matches.some(p=>p.status==="error")?500:200,redirect:i}))}this.latestLoadPromise===o&&((h=this.commitLocationPromise)==null||h.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),f()})}),this.latestLoadPromise=o,await o;this.latestLoadPromise&&o!==this.latestLoadPromise;)await this.latestLoadPromise;let u;this.hasNotFoundMatch()?u=404:this.__store.state.matches.some(f=>f.status==="error")&&(u=500),u!==void 0&&this.__store.setState(f=>({...f,statusCode:u}))},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 s;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const o=this.latestLocation,u=this.state.resolvedLocation,f=typeof i.types=="function"?i.types(Sa({resolvedLocation:u,location:o})):i.types;if(f===!1){n();return}s={update:n,types:f}}else s=n;document.startViewTransition(s)}else n()},this.updateMatch=(n,i)=>{this.startTransition(()=>{var o;const s=(o=this.state.pendingMatches)!=null&&o.some(u=>u.id===n)?"pendingMatches":this.state.matches.some(u=>u.id===n)?"matches":this.state.cachedMatches.some(u=>u.id===n)?"cachedMatches":"";s&&this.__store.setState(u=>{var f;return{...u,[s]:(f=u[s])==null?void 0:f.map(h=>h.id===n?i(h):h)}})})},this.getMatch=n=>{var s;const i=o=>o.id===n;return this.state.cachedMatches.find(i)??((s=this.state.pendingMatches)==null?void 0:s.find(i))??this.state.matches.find(i)},this.invalidate=n=>{const i=s=>{var o;return((o=n==null?void 0:n.filter)==null?void 0:o.call(n,s))??!0?{...s,invalid:!0,...n!=null&&n.forcePending||s.status==="error"||s.status==="notFound"?{status:"pending",error:void 0}:void 0}:s};return this.__store.setState(s=>{var o;return{...s,matches:s.matches.map(i),cachedMatches:s.cachedMatches.map(i),pendingMatches:(o=s.pendingMatches)==null?void 0:o.map(i)}}),this.shouldViewTransition=!1,this.load({sync:n==null?void 0:n.sync})},this.resolveRedirect=n=>{if(!n.options.href){const i=this.buildLocation(n.options);let s=i.url;this.origin&&s.startsWith(this.origin)&&(s=s.replace(this.origin,"")||"/"),n.options.href=i.href,n.headers.set("Location",s)}return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const i=n==null?void 0:n.filter;i!==void 0?this.__store.setState(s=>({...s,cachedMatches:s.cachedMatches.filter(o=>!i(o))})):this.__store.setState(s=>({...s,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=i=>{const s=this.looseRoutesById[i.routeId];if(!s.options.loader)return!0;const o=(i.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??300*1e3;return i.status==="error"?!0:Date.now()-i.updatedAt>=o};this.clearCache({filter:n})},this.loadRouteChunk=Yx,this.preloadRoute=async n=>{const i=this.buildLocation(n);let s=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:n});const o=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(f=>f.id)),u=new Set([...o,...this.state.cachedMatches.map(f=>f.id)]);co(()=>{s.forEach(f=>{u.has(f.id)||this.__store.setState(h=>({...h,cachedMatches:[...h.cachedMatches,f]}))})});try{return s=await j0({router:this,matches:s,location:i,preload:!0,updateMatch:(f,h)=>{o.has(f)?s=s.map(d=>d.id===f?h(d):d):this.updateMatch(f,h)}}),s}catch(f){if(Xn(f))return f.options.reloadDocument?void 0:await this.preloadRoute({...f.options,_fromLocation:i});Bn(f)||console.error(f);return}},this.matchRoute=(n,i)=>{const s={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},o=this.buildLocation(s);if(i!=null&&i.pending&&this.state.status!=="pending")return!1;const f=((i==null?void 0:i.pending)===void 0?!this.state.isLoading:i.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,h=Fk(o.pathname,(i==null?void 0:i.caseSensitive)??!1,(i==null?void 0:i.fuzzy)??!1,f.pathname,this.processedTree);return!h||n.params&&!ba(h.params,n.params,{partial:!0})?!1:(i==null?void 0:i.includeSearch)??!0?ba(f.search,o.search,{partial:!0})?h.params:!1:h.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,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??fC,parseSearch:t.parseSearch??cC}),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(t,n){const i=this.getMatchedRoutes(t.pathname),{foundRoute:s,routeParams:o}=i;let{matchedRoutes:u}=i,f=!1;(s?s.path!=="/"&&o["**"]:xa(t.pathname))&&(this.options.notFoundRoute?u=[...u,this.options.notFoundRoute]:f=!0);const h=(()=>{if(f){if(this.options.notFoundMode!=="root")for(let p=u.length-1;p>=0;p--){const v=u[p];if(v.children)return v.id}return _n}})(),d=[],y=p=>(p==null?void 0:p.id)?p.context??this.options.context??void 0:this.options.context??void 0;return u.forEach((p,v)=>{var me,le,ae;const _=d[v-1],[x,E,k]=(()=>{const V=(_==null?void 0:_.search)??t.search,te=(_==null?void 0:_._strictSearch)??void 0;try{const fe=Km(p.options.validateSearch,{...V})??void 0;return[{...V,...fe},{...te,...fe},void 0]}catch(fe){let Ee=fe;if(fe instanceof Vc||(Ee=new Vc(fe.message,{cause:fe})),n!=null&&n.throwOnError)throw Ee;return[V,{},Ee]}})(),w=((le=(me=p.options).loaderDeps)==null?void 0:le.call(me,{search:x}))??"",C=w?JSON.stringify(w):"",{interpolatedPath:L,usedParams:z}=Jd({path:p.fullPath,params:o,decodeCharMap:this.pathParamsDecodeCharMap}),B=p.id+L+C,A=this.getMatch(B),q=this.state.matches.find(V=>V.routeId===p.id),$=(A==null?void 0:A._strictParams)??z;let ne;if(!A){const V=((ae=p.options.params)==null?void 0:ae.parse)??p.options.parseParams;if(V)try{Object.assign($,V($))}catch(te){if(Bn(te)||Xn(te)?ne=te:ne=new EC(te.message,{cause:te}),n!=null&&n.throwOnError)throw ne}}Object.assign(o,$);const N=q?"stay":"enter";let Q;if(A)Q={...A,cause:N,params:q?Dn(q.params,o):o,_strictParams:$,search:Dn(q?q.search:A.search,x),_strictSearch:E};else{const V=p.options.loader||p.options.beforeLoad||p.lazyFn||Kx(p)?"pending":"success";Q={id:B,index:v,routeId:p.id,params:q?Dn(q.params,o):o,_strictParams:$,pathname:L,updatedAt:Date.now(),search:q?Dn(q.search,x):x,_strictSearch:E,searchError:void 0,status:V,isFetching:!1,error:void 0,paramsError:ne,__routeContext:void 0,_nonReactive:{loadPromise:$s()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:N,loaderDeps:q?Dn(q.loaderDeps,w):w,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:p.options.staticData||{},fullPath:p.fullPath}}n!=null&&n.preload||(Q.globalNotFound=h===p.id),Q.searchError=k;const re=y(_);Q.context={...re,...Q.__routeContext,...Q.__beforeLoadContext},d.push(Q)}),d.forEach((p,v)=>{const _=this.looseRoutesById[p.routeId];if(!this.getMatch(p.id)&&(n==null?void 0:n._buildLocation)!==!0){const E=d[v-1],k=y(E);if(_.options.context){const w={deps:p.loaderDeps,params:p.params,context:k??{},location:t,navigate:C=>this.navigate({...C,_fromLocation:t}),buildLocation:this.buildLocation,cause:p.cause,abortController:p.abortController,preload:!!p.preload,matches:d};p.__routeContext=_.options.context(w)??void 0}p.context={...k,...p.__routeContext,...p.__beforeLoadContext}}}),d}}class Vc extends Error{}class EC extends Error{}function wC(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Km(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Vc("Async validation not supported");if(n.issues)throw new Vc(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function TC({pathname:e,routesById:t,processedTree:n}){const i={},s=xa(e);let o;const u=Qk(s,n,!0);return u&&(o=u.route,Object.assign(i,u.params)),{matchedRoutes:(u==null?void 0:u.branch)||[t[_n]],routeParams:i,foundRoute:o}}function kC({search:e,dest:t,destRoutes:n,_includeValidateSearch:i}){const s=n.reduce((f,h)=>{var y;const d=[];if("search"in h.options)(y=h.options.search)!=null&&y.middlewares&&d.push(...h.options.search.middlewares);else if(h.options.preSearchFilters||h.options.postSearchFilters){const p=({search:v,next:_})=>{let x=v;"preSearchFilters"in h.options&&h.options.preSearchFilters&&(x=h.options.preSearchFilters.reduce((k,w)=>w(k),v));const E=_(x);return"postSearchFilters"in h.options&&h.options.postSearchFilters?h.options.postSearchFilters.reduce((k,w)=>w(k),E):E};d.push(p)}if(i&&h.options.validateSearch){const p=({search:v,next:_})=>{const x=_(v);try{return{...x,...Km(h.options.validateSearch,x)??void 0}}catch{return x}};d.push(p)}return f.concat(d)},[])??[],o=({search:f})=>t.search?t.search===!0?f:_a(t.search,f):{};s.push(o);const u=(f,h)=>{if(f>=s.length)return h;const d=s[f];return d({search:h,next:p=>u(f+1,p)})};return u(0,e)}const CC="Error preloading route! ☝️";class Wx{constructor(t){if(this.init=n=>{var d,y;this.originalIndex=n.originalIndex;const i=this.options,s=!(i!=null&&i.path)&&!(i!=null&&i.id);this.parentRoute=(y=(d=this.options).getParentRoute)==null?void 0:y.call(d),s?this._path=_n:this.parentRoute||Gr(!1);let o=s?_n:i==null?void 0:i.path;o&&o!=="/"&&(o=qx(o));const u=(i==null?void 0:i.id)||o;let f=s?_n:Tc([this.parentRoute.id===_n?"":this.parentRoute.id,u]);o===_n&&(o="/"),f!==_n&&(f=Tc(["/",f]));const h=f===_n?"/":Tc([this.parentRoute.fullPath,o]);this._path=o,this._id=f,this._fullPath=h,this._to=h},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=t||{},this.isRoot=!(t!=null&&t.getParentRoute),t!=null&&t.id&&(t!=null&&t.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 RC{constructor({id:t}){this.notFound=n=>Vx({routeId:this.id,...n}),this.id=t}}class AC extends Wx{constructor(t){super(t)}}function Cp(e){const t=e.errorComponent??cf;return S.jsx(OC,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:i})=>n?ie.createElement(t,{error:n,reset:i}):e.children})}class OC extends ie.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function cf({error:e}){const[t,n]=ie.useState(!1);return S.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[S.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),S.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(i=>!i),children:t?"Hide Error":"Show Error"})]}),S.jsx("div",{style:{height:".25rem"}}),t?S.jsx("div",{children:S.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?S.jsx("code",{children:e.message}):null})}):null]})}function LC({children:e,fallback:t=null}){return NC()?S.jsx(Qs.Fragment,{children:e}):S.jsx(Qs.Fragment,{children:t})}function NC(){return Qs.useSyncExternalStore(jC,()=>!0,()=>!1)}function jC(){return()=>{}}var em={exports:{}},tm={},nm={exports:{}},rm={};/**
49
+ `+c.stack}}var Vn=Object.prototype.hasOwnProperty,Hn=e.unstable_scheduleCallback,Yr=e.unstable_cancelCallback,Ma=e.unstable_shouldYield,Ue=e.unstable_requestPaint,Be=e.unstable_now,Ut=e.unstable_getCurrentPriorityLevel,Z=e.unstable_ImmediatePriority,oe=e.unstable_UserBlockingPriority,xe=e.unstable_NormalPriority,Ae=e.unstable_LowPriority,Ge=e.unstable_IdlePriority,cn=e.log,mr=e.unstable_setDisableYieldValue,qt=null,_t=null;function Kt(r){if(typeof cn=="function"&&mr(r),_t&&typeof _t.setStrictMode=="function")try{_t.setStrictMode(qt,r)}catch{}}var We=Math.clz32?Math.clz32:RE,Kr=Math.log,Gn=Math.LN2;function RE(r){return r>>>=0,r===0?32:31-(Kr(r)/Gn|0)|0}var Go=256,Fo=262144,Qo=4194304;function qi(r){var a=r&42;if(a!==0)return a;switch(r&-r){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 r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function $o(r,a,l){var c=r.pendingLanes;if(c===0)return 0;var m=0,g=r.suspendedLanes,x=r.pingedLanes;r=r.warmLanes;var w=c&134217727;return w!==0?(c=w&~g,c!==0?m=qi(c):(x&=w,x!==0?m=qi(x):l||(l=w&~r,l!==0&&(m=qi(l))))):(w=c&~g,w!==0?m=qi(w):x!==0?m=qi(x):l||(l=c&~r,l!==0&&(m=qi(l)))),m===0?0:a!==0&&a!==m&&(a&g)===0&&(g=m&-m,l=a&-a,g>=l||g===32&&(l&4194048)!==0)?a:m}function sl(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function AE(r,a){switch(r){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 og(){var r=Qo;return Qo<<=1,(Qo&62914560)===0&&(Qo=4194304),r}function Af(r){for(var a=[],l=0;31>l;l++)a.push(r);return a}function ll(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function OE(r,a,l,c,m,g){var x=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var w=r.entanglements,D=r.expirationTimes,G=r.hiddenUpdates;for(l=x&~l;0<l;){var K=31-We(l),ee=1<<K;w[K]=0,D[K]=-1;var F=G[K];if(F!==null)for(G[K]=null,K=0;K<F.length;K++){var Y=F[K];Y!==null&&(Y.lane&=-536870913)}l&=~ee}c!==0&&ug(r,c,0),g!==0&&m===0&&r.tag!==0&&(r.suspendedLanes|=g&~(x&~a))}function ug(r,a,l){r.pendingLanes|=a,r.suspendedLanes&=~a;var c=31-We(a);r.entangledLanes|=a,r.entanglements[c]=r.entanglements[c]|1073741824|l&261930}function cg(r,a){var l=r.entangledLanes|=a;for(r=r.entanglements;l;){var c=31-We(l),m=1<<c;m&a|r[c]&a&&(r[c]|=a),l&=~m}}function fg(r,a){var l=a&-a;return l=(l&42)!==0?1:Of(l),(l&(r.suspendedLanes|a))!==0?0:l}function Of(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Lf(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function hg(){var r=te.p;return r!==0?r:(r=window.event,r===void 0?32:Z_(r.type))}function dg(r,a){var l=te.p;try{return te.p=r,a()}finally{te.p=l}}var Xr=Math.random().toString(36).slice(2),At="__reactFiber$"+Xr,Xt="__reactProps$"+Xr,Pa="__reactContainer$"+Xr,Nf="__reactEvents$"+Xr,LE="__reactListeners$"+Xr,NE="__reactHandles$"+Xr,mg="__reactResources$"+Xr,ol="__reactMarker$"+Xr;function jf(r){delete r[At],delete r[Xt],delete r[Nf],delete r[LE],delete r[NE]}function za(r){var a=r[At];if(a)return a;for(var l=r.parentNode;l;){if(a=l[Pa]||l[At]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(r=M_(r);r!==null;){if(l=r[At])return l;r=M_(r)}return a}r=l,l=r.parentNode}return null}function Ia(r){if(r=r[At]||r[Pa]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function ul(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function Ba(r){var a=r[mg];return a||(a=r[mg]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function wt(r){r[ol]=!0}var pg=new Set,gg={};function Vi(r,a){Ua(r,a),Ua(r+"Capture",a)}function Ua(r,a){for(gg[r]=a,r=0;r<a.length;r++)pg.add(a[r])}var jE=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]*$"),yg={},vg={};function DE(r){return Vn.call(vg,r)?!0:Vn.call(yg,r)?!1:jE.test(r)?vg[r]=!0:(yg[r]=!0,!1)}function Yo(r,a,l){if(DE(a))if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+l)}}function Ko(r,a,l){if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+l)}}function pr(r,a,l,c){if(c===null)r.removeAttribute(l);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttributeNS(a,l,""+c)}}function En(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function _g(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function ME(r,a,l){var c=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var m=c.get,g=c.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return m.call(this)},set:function(x){l=""+x,g.call(this,x)}}),Object.defineProperty(r,a,{enumerable:c.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function Df(r){if(!r._valueTracker){var a=_g(r)?"checked":"value";r._valueTracker=ME(r,a,""+r[a])}}function bg(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var l=a.getValue(),c="";return r&&(c=_g(r)?r.checked?"true":"false":r.value),r=c,r!==l?(a.setValue(r),!0):!1}function Xo(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var PE=/[\n"\\]/g;function wn(r){return r.replace(PE,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Mf(r,a,l,c,m,g,x,w){r.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?r.type=x:r.removeAttribute("type"),a!=null?x==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+En(a)):r.value!==""+En(a)&&(r.value=""+En(a)):x!=="submit"&&x!=="reset"||r.removeAttribute("value"),a!=null?Pf(r,x,En(a)):l!=null?Pf(r,x,En(l)):c!=null&&r.removeAttribute("value"),m==null&&g!=null&&(r.defaultChecked=!!g),m!=null&&(r.checked=m&&typeof m!="function"&&typeof m!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?r.name=""+En(w):r.removeAttribute("name")}function xg(r,a,l,c,m,g,x,w){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(r.type=g),a!=null||l!=null){if(!(g!=="submit"&&g!=="reset"||a!=null)){Df(r);return}l=l!=null?""+En(l):"",a=a!=null?""+En(a):l,w||a===r.value||(r.value=a),r.defaultValue=a}c=c??m,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=w?r.checked:!!c,r.defaultChecked=!!c,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(r.name=x),Df(r)}function Pf(r,a,l){a==="number"&&Xo(r.ownerDocument)===r||r.defaultValue===""+l||(r.defaultValue=""+l)}function qa(r,a,l,c){if(r=r.options,a){a={};for(var m=0;m<l.length;m++)a["$"+l[m]]=!0;for(l=0;l<r.length;l++)m=a.hasOwnProperty("$"+r[l].value),r[l].selected!==m&&(r[l].selected=m),m&&c&&(r[l].defaultSelected=!0)}else{for(l=""+En(l),a=null,m=0;m<r.length;m++){if(r[m].value===l){r[m].selected=!0,c&&(r[m].defaultSelected=!0);return}a!==null||r[m].disabled||(a=r[m])}a!==null&&(a.selected=!0)}}function Sg(r,a,l){if(a!=null&&(a=""+En(a),a!==r.value&&(r.value=a),l==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=l!=null?""+En(l):""}function Eg(r,a,l,c){if(a==null){if(c!=null){if(l!=null)throw Error(i(92));if(ae(c)){if(1<c.length)throw Error(i(93));c=c[0]}l=c}l==null&&(l=""),a=l}l=En(a),r.defaultValue=l,c=r.textContent,c===l&&c!==""&&c!==null&&(r.value=c),Df(r)}function Va(r,a){if(a){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=a;return}}r.textContent=a}var zE=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 wg(r,a,l){var c=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?c?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":c?r.setProperty(a,l):typeof l!="number"||l===0||zE.has(a)?a==="float"?r.cssFloat=l:r[a]=(""+l).trim():r[a]=l+"px"}function Tg(r,a,l){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,l!=null){for(var c in l)!l.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?r.setProperty(c,""):c==="float"?r.cssFloat="":r[c]="");for(var m in a)c=a[m],a.hasOwnProperty(m)&&l[m]!==c&&wg(r,m,c)}else for(var g in a)a.hasOwnProperty(g)&&wg(r,g,a[g])}function zf(r){if(r.indexOf("-")===-1)return!1;switch(r){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 IE=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"]]),BE=/^[\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 Zo(r){return BE.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function gr(){}var If=null;function Bf(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ha=null,Ga=null;function kg(r){var a=Ia(r);if(a&&(r=a.stateNode)){var l=r[Xt]||null;e:switch(r=a.stateNode,a.type){case"input":if(Mf(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+wn(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var c=l[a];if(c!==r&&c.form===r.form){var m=c[Xt]||null;if(!m)throw Error(i(90));Mf(c,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(a=0;a<l.length;a++)c=l[a],c.form===r.form&&bg(c)}break e;case"textarea":Sg(r,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&qa(r,!!l.multiple,a,!1)}}}var Uf=!1;function Cg(r,a,l){if(Uf)return r(a,l);Uf=!0;try{var c=r(a);return c}finally{if(Uf=!1,(Ha!==null||Ga!==null)&&(Iu(),Ha&&(a=Ha,r=Ga,Ga=Ha=null,kg(a),r)))for(a=0;a<r.length;a++)kg(r[a])}}function cl(r,a){var l=r.stateNode;if(l===null)return null;var c=l[Xt]||null;if(c===null)return null;l=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(i(231,a,typeof l));return l}var yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qf=!1;if(yr)try{var fl={};Object.defineProperty(fl,"passive",{get:function(){qf=!0}}),window.addEventListener("test",fl,fl),window.removeEventListener("test",fl,fl)}catch{qf=!1}var Zr=null,Vf=null,Jo=null;function Rg(){if(Jo)return Jo;var r,a=Vf,l=a.length,c,m="value"in Zr?Zr.value:Zr.textContent,g=m.length;for(r=0;r<l&&a[r]===m[r];r++);var x=l-r;for(c=1;c<=x&&a[l-c]===m[g-c];c++);return Jo=m.slice(r,1<c?1-c:void 0)}function Wo(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function eu(){return!0}function Ag(){return!1}function Zt(r){function a(l,c,m,g,x){this._reactName=l,this._targetInst=m,this.type=c,this.nativeEvent=g,this.target=x,this.currentTarget=null;for(var w in r)r.hasOwnProperty(w)&&(l=r[w],this[w]=l?l(g):g[w]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?eu:Ag,this.isPropagationStopped=Ag,this}return p(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=eu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=eu)},persist:function(){},isPersistent:eu}),a}var Hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tu=Zt(Hi),hl=p({},Hi,{view:0,detail:0}),UE=Zt(hl),Hf,Gf,dl,nu=p({},hl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qf,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==dl&&(dl&&r.type==="mousemove"?(Hf=r.screenX-dl.screenX,Gf=r.screenY-dl.screenY):Gf=Hf=0,dl=r),Hf)},movementY:function(r){return"movementY"in r?r.movementY:Gf}}),Og=Zt(nu),qE=p({},nu,{dataTransfer:0}),VE=Zt(qE),HE=p({},hl,{relatedTarget:0}),Ff=Zt(HE),GE=p({},Hi,{animationName:0,elapsedTime:0,pseudoElement:0}),FE=Zt(GE),QE=p({},Hi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),$E=Zt(QE),YE=p({},Hi,{data:0}),Lg=Zt(YE),KE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},XE={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"},ZE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function JE(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=ZE[r])?!!a[r]:!1}function Qf(){return JE}var WE=p({},hl,{key:function(r){if(r.key){var a=KE[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=Wo(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?XE[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qf,charCode:function(r){return r.type==="keypress"?Wo(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Wo(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),ew=Zt(WE),tw=p({},nu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ng=Zt(tw),nw=p({},hl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qf}),rw=Zt(nw),iw=p({},Hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),aw=Zt(iw),sw=p({},nu,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),lw=Zt(sw),ow=p({},Hi,{newState:0,oldState:0}),uw=Zt(ow),cw=[9,13,27,32],$f=yr&&"CompositionEvent"in window,ml=null;yr&&"documentMode"in document&&(ml=document.documentMode);var fw=yr&&"TextEvent"in window&&!ml,jg=yr&&(!$f||ml&&8<ml&&11>=ml),Dg=" ",Mg=!1;function Pg(r,a){switch(r){case"keyup":return cw.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zg(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Fa=!1;function hw(r,a){switch(r){case"compositionend":return zg(a);case"keypress":return a.which!==32?null:(Mg=!0,Dg);case"textInput":return r=a.data,r===Dg&&Mg?null:r;default:return null}}function dw(r,a){if(Fa)return r==="compositionend"||!$f&&Pg(r,a)?(r=Rg(),Jo=Vf=Zr=null,Fa=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return jg&&a.locale!=="ko"?null:a.data;default:return null}}var mw={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 Ig(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!mw[r.type]:a==="textarea"}function Bg(r,a,l,c){Ha?Ga?Ga.push(c):Ga=[c]:Ha=c,a=Fu(a,"onChange"),0<a.length&&(l=new tu("onChange","change",null,l,c),r.push({event:l,listeners:a}))}var pl=null,gl=null;function pw(r){x_(r,0)}function ru(r){var a=ul(r);if(bg(a))return r}function Ug(r,a){if(r==="change")return a}var qg=!1;if(yr){var Yf;if(yr){var Kf="oninput"in document;if(!Kf){var Vg=document.createElement("div");Vg.setAttribute("oninput","return;"),Kf=typeof Vg.oninput=="function"}Yf=Kf}else Yf=!1;qg=Yf&&(!document.documentMode||9<document.documentMode)}function Hg(){pl&&(pl.detachEvent("onpropertychange",Gg),gl=pl=null)}function Gg(r){if(r.propertyName==="value"&&ru(gl)){var a=[];Bg(a,gl,r,Bf(r)),Cg(pw,a)}}function gw(r,a,l){r==="focusin"?(Hg(),pl=a,gl=l,pl.attachEvent("onpropertychange",Gg)):r==="focusout"&&Hg()}function yw(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ru(gl)}function vw(r,a){if(r==="click")return ru(a)}function _w(r,a){if(r==="input"||r==="change")return ru(a)}function bw(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var fn=typeof Object.is=="function"?Object.is:bw;function yl(r,a){if(fn(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var l=Object.keys(r),c=Object.keys(a);if(l.length!==c.length)return!1;for(c=0;c<l.length;c++){var m=l[c];if(!Vn.call(a,m)||!fn(r[m],a[m]))return!1}return!0}function Fg(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Qg(r,a){var l=Fg(r);r=0;for(var c;l;){if(l.nodeType===3){if(c=r+l.textContent.length,r<=a&&c>=a)return{node:l,offset:a-r};r=c}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Fg(l)}}function $g(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?$g(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function Yg(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=Xo(r.document);a instanceof r.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)r=a.contentWindow;else break;a=Xo(r.document)}return a}function Xf(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var xw=yr&&"documentMode"in document&&11>=document.documentMode,Qa=null,Zf=null,vl=null,Jf=!1;function Kg(r,a,l){var c=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Jf||Qa==null||Qa!==Xo(c)||(c=Qa,"selectionStart"in c&&Xf(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),vl&&yl(vl,c)||(vl=c,c=Fu(Zf,"onSelect"),0<c.length&&(a=new tu("onSelect","select",null,a,l),r.push({event:a,listeners:c}),a.target=Qa)))}function Gi(r,a){var l={};return l[r.toLowerCase()]=a.toLowerCase(),l["Webkit"+r]="webkit"+a,l["Moz"+r]="moz"+a,l}var $a={animationend:Gi("Animation","AnimationEnd"),animationiteration:Gi("Animation","AnimationIteration"),animationstart:Gi("Animation","AnimationStart"),transitionrun:Gi("Transition","TransitionRun"),transitionstart:Gi("Transition","TransitionStart"),transitioncancel:Gi("Transition","TransitionCancel"),transitionend:Gi("Transition","TransitionEnd")},Wf={},Xg={};yr&&(Xg=document.createElement("div").style,"AnimationEvent"in window||(delete $a.animationend.animation,delete $a.animationiteration.animation,delete $a.animationstart.animation),"TransitionEvent"in window||delete $a.transitionend.transition);function Fi(r){if(Wf[r])return Wf[r];if(!$a[r])return r;var a=$a[r],l;for(l in a)if(a.hasOwnProperty(l)&&l in Xg)return Wf[r]=a[l];return r}var Zg=Fi("animationend"),Jg=Fi("animationiteration"),Wg=Fi("animationstart"),Sw=Fi("transitionrun"),Ew=Fi("transitionstart"),ww=Fi("transitioncancel"),ey=Fi("transitionend"),ty=new Map,eh="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(" ");eh.push("scrollEnd");function Fn(r,a){ty.set(r,a),Vi(a,[r])}var iu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Tn=[],Ya=0,th=0;function au(){for(var r=Ya,a=th=Ya=0;a<r;){var l=Tn[a];Tn[a++]=null;var c=Tn[a];Tn[a++]=null;var m=Tn[a];Tn[a++]=null;var g=Tn[a];if(Tn[a++]=null,c!==null&&m!==null){var x=c.pending;x===null?m.next=m:(m.next=x.next,x.next=m),c.pending=m}g!==0&&ny(l,m,g)}}function su(r,a,l,c){Tn[Ya++]=r,Tn[Ya++]=a,Tn[Ya++]=l,Tn[Ya++]=c,th|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function nh(r,a,l,c){return su(r,a,l,c),lu(r)}function Qi(r,a){return su(r,null,null,a),lu(r)}function ny(r,a,l){r.lanes|=l;var c=r.alternate;c!==null&&(c.lanes|=l);for(var m=!1,g=r.return;g!==null;)g.childLanes|=l,c=g.alternate,c!==null&&(c.childLanes|=l),g.tag===22&&(r=g.stateNode,r===null||r._visibility&1||(m=!0)),r=g,g=g.return;return r.tag===3?(g=r.stateNode,m&&a!==null&&(m=31-We(l),r=g.hiddenUpdates,c=r[m],c===null?r[m]=[a]:c.push(a),a.lane=l|536870912),g):null}function lu(r){if(50<Ul)throw Ul=0,fd=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var Ka={};function Tw(r,a,l,c){this.tag=r,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function hn(r,a,l,c){return new Tw(r,a,l,c)}function rh(r){return r=r.prototype,!(!r||!r.isReactComponent)}function vr(r,a){var l=r.alternate;return l===null?(l=hn(r.tag,a,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=a,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&65011712,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,a=r.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.refCleanup=r.refCleanup,l}function ry(r,a){r.flags&=65011714;var l=r.alternate;return l===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,a=l.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function ou(r,a,l,c,m,g){var x=0;if(c=r,typeof r=="function")rh(r)&&(x=1);else if(typeof r=="string")x=OT(r,l,ue.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case ne:return r=hn(31,l,a,m),r.elementType=ne,r.lanes=g,r;case E:return $i(l.children,m,g,a);case k:x=8,m|=24;break;case T:return r=hn(12,l,a,m|2),r.elementType=T,r.lanes=g,r;case V:return r=hn(13,l,a,m),r.elementType=V,r.lanes=g,r;case O:return r=hn(19,l,a,m),r.elementType=O,r.lanes=g,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case L:x=10;break e;case R:x=9;break e;case z:x=11;break e;case U:x=14;break e;case $:x=16,c=null;break e}x=29,l=Error(i(130,r===null?"null":typeof r,"")),c=null}return a=hn(x,l,a,m),a.elementType=r,a.type=c,a.lanes=g,a}function $i(r,a,l,c){return r=hn(7,r,c,a),r.lanes=l,r}function ih(r,a,l){return r=hn(6,r,null,a),r.lanes=l,r}function iy(r){var a=hn(18,null,null,0);return a.stateNode=r,a}function ah(r,a,l){return a=hn(4,r.children!==null?r.children:[],r.key,a),a.lanes=l,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var ay=new WeakMap;function kn(r,a){if(typeof r=="object"&&r!==null){var l=ay.get(r);return l!==void 0?l:(a={value:r,source:a,stack:Da(a)},ay.set(r,a),a)}return{value:r,source:a,stack:Da(a)}}var Xa=[],Za=0,uu=null,_l=0,Cn=[],Rn=0,Jr=null,Wn=1,er="";function _r(r,a){Xa[Za++]=_l,Xa[Za++]=uu,uu=r,_l=a}function sy(r,a,l){Cn[Rn++]=Wn,Cn[Rn++]=er,Cn[Rn++]=Jr,Jr=r;var c=Wn;r=er;var m=32-We(c)-1;c&=~(1<<m),l+=1;var g=32-We(a)+m;if(30<g){var x=m-m%5;g=(c&(1<<x)-1).toString(32),c>>=x,m-=x,Wn=1<<32-We(a)+m|l<<m|c,er=g+r}else Wn=1<<g|l<<m|c,er=r}function sh(r){r.return!==null&&(_r(r,1),sy(r,1,0))}function lh(r){for(;r===uu;)uu=Xa[--Za],Xa[Za]=null,_l=Xa[--Za],Xa[Za]=null;for(;r===Jr;)Jr=Cn[--Rn],Cn[Rn]=null,er=Cn[--Rn],Cn[Rn]=null,Wn=Cn[--Rn],Cn[Rn]=null}function ly(r,a){Cn[Rn++]=Wn,Cn[Rn++]=er,Cn[Rn++]=Jr,Wn=a.id,er=a.overflow,Jr=r}var Ot=null,rt=null,Pe=!1,Wr=null,An=!1,oh=Error(i(519));function ei(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bl(kn(a,r)),oh}function oy(r){var a=r.stateNode,l=r.type,c=r.memoizedProps;switch(a[At]=r,a[Xt]=c,l){case"dialog":Le("cancel",a),Le("close",a);break;case"iframe":case"object":case"embed":Le("load",a);break;case"video":case"audio":for(l=0;l<Vl.length;l++)Le(Vl[l],a);break;case"source":Le("error",a);break;case"img":case"image":case"link":Le("error",a),Le("load",a);break;case"details":Le("toggle",a);break;case"input":Le("invalid",a),xg(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Le("invalid",a);break;case"textarea":Le("invalid",a),Eg(a,c.value,c.defaultValue,c.children)}l=c.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||c.suppressHydrationWarning===!0||T_(a.textContent,l)?(c.popover!=null&&(Le("beforetoggle",a),Le("toggle",a)),c.onScroll!=null&&Le("scroll",a),c.onScrollEnd!=null&&Le("scrollend",a),c.onClick!=null&&(a.onclick=gr),a=!0):a=!1,a||ei(r,!0)}function uy(r){for(Ot=r.return;Ot;)switch(Ot.tag){case 5:case 31:case 13:An=!1;return;case 27:case 3:An=!0;return;default:Ot=Ot.return}}function Ja(r){if(r!==Ot)return!1;if(!Pe)return uy(r),Pe=!0,!1;var a=r.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=r.type,l=!(l!=="form"&&l!=="button")||kd(r.type,r.memoizedProps)),l=!l),l&&rt&&ei(r),uy(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));rt=D_(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));rt=D_(r)}else a===27?(a=rt,mi(r.type)?(r=Ld,Ld=null,rt=r):rt=a):rt=Ot?Ln(r.stateNode.nextSibling):null;return!0}function Yi(){rt=Ot=null,Pe=!1}function uh(){var r=Wr;return r!==null&&(tn===null?tn=r:tn.push.apply(tn,r),Wr=null),r}function bl(r){Wr===null?Wr=[r]:Wr.push(r)}var ch=P(null),Ki=null,br=null;function ti(r,a,l){A(ch,a._currentValue),a._currentValue=l}function xr(r){r._currentValue=ch.current,X(ch)}function fh(r,a,l){for(;r!==null;){var c=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),r===l)break;r=r.return}}function hh(r,a,l,c){var m=r.child;for(m!==null&&(m.return=r);m!==null;){var g=m.dependencies;if(g!==null){var x=m.child;g=g.firstContext;e:for(;g!==null;){var w=g;g=m;for(var D=0;D<a.length;D++)if(w.context===a[D]){g.lanes|=l,w=g.alternate,w!==null&&(w.lanes|=l),fh(g.return,l,r),c||(x=null);break e}g=w.next}}else if(m.tag===18){if(x=m.return,x===null)throw Error(i(341));x.lanes|=l,g=x.alternate,g!==null&&(g.lanes|=l),fh(x,l,r),x=null}else x=m.child;if(x!==null)x.return=m;else for(x=m;x!==null;){if(x===r){x=null;break}if(m=x.sibling,m!==null){m.return=x.return,x=m;break}x=x.return}m=x}}function Wa(r,a,l,c){r=null;for(var m=a,g=!1;m!==null;){if(!g){if((m.flags&524288)!==0)g=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var x=m.alternate;if(x===null)throw Error(i(387));if(x=x.memoizedProps,x!==null){var w=m.type;fn(m.pendingProps.value,x.value)||(r!==null?r.push(w):r=[w])}}else if(m===Se.current){if(x=m.alternate,x===null)throw Error(i(387));x.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(r!==null?r.push($l):r=[$l])}m=m.return}r!==null&&hh(a,r,l,c),a.flags|=262144}function cu(r){for(r=r.firstContext;r!==null;){if(!fn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Xi(r){Ki=r,br=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Lt(r){return cy(Ki,r)}function fu(r,a){return Ki===null&&Xi(r),cy(r,a)}function cy(r,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},br===null){if(r===null)throw Error(i(308));br=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else br=br.next=a;return l}var kw=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(l,c){r.push(c)}};this.abort=function(){a.aborted=!0,r.forEach(function(l){return l()})}},Cw=e.unstable_scheduleCallback,Rw=e.unstable_NormalPriority,dt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function dh(){return{controller:new kw,data:new Map,refCount:0}}function xl(r){r.refCount--,r.refCount===0&&Cw(Rw,function(){r.controller.abort()})}var Sl=null,mh=0,es=0,ts=null;function Aw(r,a){if(Sl===null){var l=Sl=[];mh=0,es=yd(),ts={status:"pending",value:void 0,then:function(c){l.push(c)}}}return mh++,a.then(fy,fy),a}function fy(){if(--mh===0&&Sl!==null){ts!==null&&(ts.status="fulfilled");var r=Sl;Sl=null,es=0,ts=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function Ow(r,a){var l=[],c={status:"pending",value:null,reason:null,then:function(m){l.push(m)}};return r.then(function(){c.status="fulfilled",c.value=a;for(var m=0;m<l.length;m++)(0,l[m])(a)},function(m){for(c.status="rejected",c.reason=m,m=0;m<l.length;m++)(0,l[m])(void 0)}),c}var hy=q.S;q.S=function(r,a){Kv=Be(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&Aw(r,a),hy!==null&&hy(r,a)};var Zi=P(null);function ph(){var r=Zi.current;return r!==null?r:et.pooledCache}function hu(r,a){a===null?A(Zi,Zi.current):A(Zi,a.pool)}function dy(){var r=ph();return r===null?null:{parent:dt._currentValue,pool:r}}var ns=Error(i(460)),gh=Error(i(474)),du=Error(i(542)),mu={then:function(){}};function my(r){return r=r.status,r==="fulfilled"||r==="rejected"}function py(r,a,l){switch(l=r[l],l===void 0?r.push(a):l!==a&&(a.then(gr,gr),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,yy(r),r;default:if(typeof a.status=="string")a.then(gr,gr);else{if(r=et,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(c){if(a.status==="pending"){var m=a;m.status="fulfilled",m.value=c}},function(c){if(a.status==="pending"){var m=a;m.status="rejected",m.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,yy(r),r}throw Wi=a,ns}}function Ji(r){try{var a=r._init;return a(r._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Wi=l,ns):l}}var Wi=null;function gy(){if(Wi===null)throw Error(i(459));var r=Wi;return Wi=null,r}function yy(r){if(r===ns||r===du)throw Error(i(483))}var rs=null,El=0;function pu(r){var a=El;return El+=1,rs===null&&(rs=[]),py(rs,r,a)}function wl(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function gu(r,a){throw a.$$typeof===v?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function vy(r){function a(B,I){if(r){var H=B.deletions;H===null?(B.deletions=[I],B.flags|=16):H.push(I)}}function l(B,I){if(!r)return null;for(;I!==null;)a(B,I),I=I.sibling;return null}function c(B){for(var I=new Map;B!==null;)B.key!==null?I.set(B.key,B):I.set(B.index,B),B=B.sibling;return I}function m(B,I){return B=vr(B,I),B.index=0,B.sibling=null,B}function g(B,I,H){return B.index=H,r?(H=B.alternate,H!==null?(H=H.index,H<I?(B.flags|=67108866,I):H):(B.flags|=67108866,I)):(B.flags|=1048576,I)}function x(B){return r&&B.alternate===null&&(B.flags|=67108866),B}function w(B,I,H,J){return I===null||I.tag!==6?(I=ih(H,B.mode,J),I.return=B,I):(I=m(I,H),I.return=B,I)}function D(B,I,H,J){var ve=H.type;return ve===E?K(B,I,H.props.children,J,H.key):I!==null&&(I.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===$&&Ji(ve)===I.type)?(I=m(I,H.props),wl(I,H),I.return=B,I):(I=ou(H.type,H.key,H.props,null,B.mode,J),wl(I,H),I.return=B,I)}function G(B,I,H,J){return I===null||I.tag!==4||I.stateNode.containerInfo!==H.containerInfo||I.stateNode.implementation!==H.implementation?(I=ah(H,B.mode,J),I.return=B,I):(I=m(I,H.children||[]),I.return=B,I)}function K(B,I,H,J,ve){return I===null||I.tag!==7?(I=$i(H,B.mode,J,ve),I.return=B,I):(I=m(I,H),I.return=B,I)}function ee(B,I,H){if(typeof I=="string"&&I!==""||typeof I=="number"||typeof I=="bigint")return I=ih(""+I,B.mode,H),I.return=B,I;if(typeof I=="object"&&I!==null){switch(I.$$typeof){case _:return H=ou(I.type,I.key,I.props,null,B.mode,H),wl(H,I),H.return=B,H;case b:return I=ah(I,B.mode,H),I.return=B,I;case $:return I=Ji(I),ee(B,I,H)}if(ae(I)||re(I))return I=$i(I,B.mode,H,null),I.return=B,I;if(typeof I.then=="function")return ee(B,pu(I),H);if(I.$$typeof===L)return ee(B,fu(B,I),H);gu(B,I)}return null}function F(B,I,H,J){var ve=I!==null?I.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return ve!==null?null:w(B,I,""+H,J);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case _:return H.key===ve?D(B,I,H,J):null;case b:return H.key===ve?G(B,I,H,J):null;case $:return H=Ji(H),F(B,I,H,J)}if(ae(H)||re(H))return ve!==null?null:K(B,I,H,J,null);if(typeof H.then=="function")return F(B,I,pu(H),J);if(H.$$typeof===L)return F(B,I,fu(B,H),J);gu(B,H)}return null}function Y(B,I,H,J,ve){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return B=B.get(H)||null,w(I,B,""+J,ve);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case _:return B=B.get(J.key===null?H:J.key)||null,D(I,B,J,ve);case b:return B=B.get(J.key===null?H:J.key)||null,G(I,B,J,ve);case $:return J=Ji(J),Y(B,I,H,J,ve)}if(ae(J)||re(J))return B=B.get(H)||null,K(I,B,J,ve,null);if(typeof J.then=="function")return Y(B,I,H,pu(J),ve);if(J.$$typeof===L)return Y(B,I,H,fu(I,J),ve);gu(I,J)}return null}function de(B,I,H,J){for(var ve=null,qe=null,pe=I,ke=I=0,De=null;pe!==null&&ke<H.length;ke++){pe.index>ke?(De=pe,pe=null):De=pe.sibling;var Ve=F(B,pe,H[ke],J);if(Ve===null){pe===null&&(pe=De);break}r&&pe&&Ve.alternate===null&&a(B,pe),I=g(Ve,I,ke),qe===null?ve=Ve:qe.sibling=Ve,qe=Ve,pe=De}if(ke===H.length)return l(B,pe),Pe&&_r(B,ke),ve;if(pe===null){for(;ke<H.length;ke++)pe=ee(B,H[ke],J),pe!==null&&(I=g(pe,I,ke),qe===null?ve=pe:qe.sibling=pe,qe=pe);return Pe&&_r(B,ke),ve}for(pe=c(pe);ke<H.length;ke++)De=Y(pe,B,ke,H[ke],J),De!==null&&(r&&De.alternate!==null&&pe.delete(De.key===null?ke:De.key),I=g(De,I,ke),qe===null?ve=De:qe.sibling=De,qe=De);return r&&pe.forEach(function(_i){return a(B,_i)}),Pe&&_r(B,ke),ve}function be(B,I,H,J){if(H==null)throw Error(i(151));for(var ve=null,qe=null,pe=I,ke=I=0,De=null,Ve=H.next();pe!==null&&!Ve.done;ke++,Ve=H.next()){pe.index>ke?(De=pe,pe=null):De=pe.sibling;var _i=F(B,pe,Ve.value,J);if(_i===null){pe===null&&(pe=De);break}r&&pe&&_i.alternate===null&&a(B,pe),I=g(_i,I,ke),qe===null?ve=_i:qe.sibling=_i,qe=_i,pe=De}if(Ve.done)return l(B,pe),Pe&&_r(B,ke),ve;if(pe===null){for(;!Ve.done;ke++,Ve=H.next())Ve=ee(B,Ve.value,J),Ve!==null&&(I=g(Ve,I,ke),qe===null?ve=Ve:qe.sibling=Ve,qe=Ve);return Pe&&_r(B,ke),ve}for(pe=c(pe);!Ve.done;ke++,Ve=H.next())Ve=Y(pe,B,ke,Ve.value,J),Ve!==null&&(r&&Ve.alternate!==null&&pe.delete(Ve.key===null?ke:Ve.key),I=g(Ve,I,ke),qe===null?ve=Ve:qe.sibling=Ve,qe=Ve);return r&&pe.forEach(function(qT){return a(B,qT)}),Pe&&_r(B,ke),ve}function Je(B,I,H,J){if(typeof H=="object"&&H!==null&&H.type===E&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case _:e:{for(var ve=H.key;I!==null;){if(I.key===ve){if(ve=H.type,ve===E){if(I.tag===7){l(B,I.sibling),J=m(I,H.props.children),J.return=B,B=J;break e}}else if(I.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===$&&Ji(ve)===I.type){l(B,I.sibling),J=m(I,H.props),wl(J,H),J.return=B,B=J;break e}l(B,I);break}else a(B,I);I=I.sibling}H.type===E?(J=$i(H.props.children,B.mode,J,H.key),J.return=B,B=J):(J=ou(H.type,H.key,H.props,null,B.mode,J),wl(J,H),J.return=B,B=J)}return x(B);case b:e:{for(ve=H.key;I!==null;){if(I.key===ve)if(I.tag===4&&I.stateNode.containerInfo===H.containerInfo&&I.stateNode.implementation===H.implementation){l(B,I.sibling),J=m(I,H.children||[]),J.return=B,B=J;break e}else{l(B,I);break}else a(B,I);I=I.sibling}J=ah(H,B.mode,J),J.return=B,B=J}return x(B);case $:return H=Ji(H),Je(B,I,H,J)}if(ae(H))return de(B,I,H,J);if(re(H)){if(ve=re(H),typeof ve!="function")throw Error(i(150));return H=ve.call(H),be(B,I,H,J)}if(typeof H.then=="function")return Je(B,I,pu(H),J);if(H.$$typeof===L)return Je(B,I,fu(B,H),J);gu(B,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,I!==null&&I.tag===6?(l(B,I.sibling),J=m(I,H),J.return=B,B=J):(l(B,I),J=ih(H,B.mode,J),J.return=B,B=J),x(B)):l(B,I)}return function(B,I,H,J){try{El=0;var ve=Je(B,I,H,J);return rs=null,ve}catch(pe){if(pe===ns||pe===du)throw pe;var qe=hn(29,pe,null,B.mode);return qe.lanes=J,qe.return=B,qe}finally{}}}var ea=vy(!0),_y=vy(!1),ni=!1;function yh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vh(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function ri(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function ii(r,a,l){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(He&2)!==0){var m=c.pending;return m===null?a.next=a:(a.next=m.next,m.next=a),c.pending=a,a=lu(r),ny(r,null,l),a}return su(r,c,a,l),lu(r)}function Tl(r,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var c=a.lanes;c&=r.pendingLanes,l|=c,a.lanes=l,cg(r,l)}}function _h(r,a){var l=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,l===c)){var m=null,g=null;if(l=l.firstBaseUpdate,l!==null){do{var x={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};g===null?m=g=x:g=g.next=x,l=l.next}while(l!==null);g===null?m=g=a:g=g.next=a}else m=g=a;l={baseState:c.baseState,firstBaseUpdate:m,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=a:r.next=a,l.lastBaseUpdate=a}var bh=!1;function kl(){if(bh){var r=ts;if(r!==null)throw r}}function Cl(r,a,l,c){bh=!1;var m=r.updateQueue;ni=!1;var g=m.firstBaseUpdate,x=m.lastBaseUpdate,w=m.shared.pending;if(w!==null){m.shared.pending=null;var D=w,G=D.next;D.next=null,x===null?g=G:x.next=G,x=D;var K=r.alternate;K!==null&&(K=K.updateQueue,w=K.lastBaseUpdate,w!==x&&(w===null?K.firstBaseUpdate=G:w.next=G,K.lastBaseUpdate=D))}if(g!==null){var ee=m.baseState;x=0,K=G=D=null,w=g;do{var F=w.lane&-536870913,Y=F!==w.lane;if(Y?(je&F)===F:(c&F)===F){F!==0&&F===es&&(bh=!0),K!==null&&(K=K.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var de=r,be=w;F=a;var Je=l;switch(be.tag){case 1:if(de=be.payload,typeof de=="function"){ee=de.call(Je,ee,F);break e}ee=de;break e;case 3:de.flags=de.flags&-65537|128;case 0:if(de=be.payload,F=typeof de=="function"?de.call(Je,ee,F):de,F==null)break e;ee=p({},ee,F);break e;case 2:ni=!0}}F=w.callback,F!==null&&(r.flags|=64,Y&&(r.flags|=8192),Y=m.callbacks,Y===null?m.callbacks=[F]:Y.push(F))}else Y={lane:F,tag:w.tag,payload:w.payload,callback:w.callback,next:null},K===null?(G=K=Y,D=ee):K=K.next=Y,x|=F;if(w=w.next,w===null){if(w=m.shared.pending,w===null)break;Y=w,w=Y.next,Y.next=null,m.lastBaseUpdate=Y,m.shared.pending=null}}while(!0);K===null&&(D=ee),m.baseState=D,m.firstBaseUpdate=G,m.lastBaseUpdate=K,g===null&&(m.shared.lanes=0),ui|=x,r.lanes=x,r.memoizedState=ee}}function by(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function xy(r,a){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)by(l[r],a)}var is=P(null),yu=P(0);function Sy(r,a){r=Or,A(yu,r),A(is,a),Or=r|a.baseLanes}function xh(){A(yu,Or),A(is,is.current)}function Sh(){Or=yu.current,X(is),X(yu)}var dn=P(null),On=null;function ai(r){var a=r.alternate;A(ct,ct.current&1),A(dn,r),On===null&&(a===null||is.current!==null||a.memoizedState!==null)&&(On=r)}function Eh(r){A(ct,ct.current),A(dn,r),On===null&&(On=r)}function Ey(r){r.tag===22?(A(ct,ct.current),A(dn,r),On===null&&(On=r)):si()}function si(){A(ct,ct.current),A(dn,dn.current)}function mn(r){X(dn),On===r&&(On=null),X(ct)}var ct=P(0);function vu(r){for(var a=r;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ad(l)||Od(l)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Sr=0,Te=null,Xe=null,mt=null,_u=!1,as=!1,ta=!1,bu=0,Rl=0,ss=null,Lw=0;function st(){throw Error(i(321))}function wh(r,a){if(a===null)return!1;for(var l=0;l<a.length&&l<r.length;l++)if(!fn(r[l],a[l]))return!1;return!0}function Th(r,a,l,c,m,g){return Sr=g,Te=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,q.H=r===null||r.memoizedState===null?sv:Uh,ta=!1,g=l(c,m),ta=!1,as&&(g=Ty(a,l,c,m)),wy(r),g}function wy(r){q.H=Ll;var a=Xe!==null&&Xe.next!==null;if(Sr=0,mt=Xe=Te=null,_u=!1,Rl=0,ss=null,a)throw Error(i(300));r===null||pt||(r=r.dependencies,r!==null&&cu(r)&&(pt=!0))}function Ty(r,a,l,c){Te=r;var m=0;do{if(as&&(ss=null),Rl=0,as=!1,25<=m)throw Error(i(301));if(m+=1,mt=Xe=null,r.updateQueue!=null){var g=r.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}q.H=lv,g=a(l,c)}while(as);return g}function Nw(){var r=q.H,a=r.useState()[0];return a=typeof a.then=="function"?Al(a):a,r=r.useState()[0],(Xe!==null?Xe.memoizedState:null)!==r&&(Te.flags|=1024),a}function kh(){var r=bu!==0;return bu=0,r}function Ch(r,a,l){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~l}function Rh(r){if(_u){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}_u=!1}Sr=0,mt=Xe=Te=null,as=!1,Rl=bu=0,ss=null}function Vt(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?Te.memoizedState=mt=r:mt=mt.next=r,mt}function ft(){if(Xe===null){var r=Te.alternate;r=r!==null?r.memoizedState:null}else r=Xe.next;var a=mt===null?Te.memoizedState:mt.next;if(a!==null)mt=a,Xe=r;else{if(r===null)throw Te.alternate===null?Error(i(467)):Error(i(310));Xe=r,r={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},mt===null?Te.memoizedState=mt=r:mt=mt.next=r}return mt}function xu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Al(r){var a=Rl;return Rl+=1,ss===null&&(ss=[]),r=py(ss,r,a),a=Te,(mt===null?a.memoizedState:mt.next)===null&&(a=a.alternate,q.H=a===null||a.memoizedState===null?sv:Uh),r}function Su(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Al(r);if(r.$$typeof===L)return Lt(r)}throw Error(i(438,String(r)))}function Ah(r){var a=null,l=Te.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var c=Te.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(m){return m.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=xu(),Te.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(r),c=0;c<r;c++)l[c]=N;return a.index++,l}function Er(r,a){return typeof a=="function"?a(r):a}function Eu(r){var a=ft();return Oh(a,Xe,r)}function Oh(r,a,l){var c=r.queue;if(c===null)throw Error(i(311));c.lastRenderedReducer=l;var m=r.baseQueue,g=c.pending;if(g!==null){if(m!==null){var x=m.next;m.next=g.next,g.next=x}a.baseQueue=m=g,c.pending=null}if(g=r.baseState,m===null)r.memoizedState=g;else{a=m.next;var w=x=null,D=null,G=a,K=!1;do{var ee=G.lane&-536870913;if(ee!==G.lane?(je&ee)===ee:(Sr&ee)===ee){var F=G.revertLane;if(F===0)D!==null&&(D=D.next={lane:0,revertLane:0,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),ee===es&&(K=!0);else if((Sr&F)===F){G=G.next,F===es&&(K=!0);continue}else ee={lane:0,revertLane:G.revertLane,gesture:null,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},D===null?(w=D=ee,x=g):D=D.next=ee,Te.lanes|=F,ui|=F;ee=G.action,ta&&l(g,ee),g=G.hasEagerState?G.eagerState:l(g,ee)}else F={lane:ee,revertLane:G.revertLane,gesture:G.gesture,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},D===null?(w=D=F,x=g):D=D.next=F,Te.lanes|=ee,ui|=ee;G=G.next}while(G!==null&&G!==a);if(D===null?x=g:D.next=w,!fn(g,r.memoizedState)&&(pt=!0,K&&(l=ts,l!==null)))throw l;r.memoizedState=g,r.baseState=x,r.baseQueue=D,c.lastRenderedState=g}return m===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function Lh(r){var a=ft(),l=a.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var c=l.dispatch,m=l.pending,g=a.memoizedState;if(m!==null){l.pending=null;var x=m=m.next;do g=r(g,x.action),x=x.next;while(x!==m);fn(g,a.memoizedState)||(pt=!0),a.memoizedState=g,a.baseQueue===null&&(a.baseState=g),l.lastRenderedState=g}return[g,c]}function ky(r,a,l){var c=Te,m=ft(),g=Pe;if(g){if(l===void 0)throw Error(i(407));l=l()}else l=a();var x=!fn((Xe||m).memoizedState,l);if(x&&(m.memoizedState=l,pt=!0),m=m.queue,Dh(Ay.bind(null,c,m,r),[r]),m.getSnapshot!==a||x||mt!==null&&mt.memoizedState.tag&1){if(c.flags|=2048,ls(9,{destroy:void 0},Ry.bind(null,c,m,l,a),null),et===null)throw Error(i(349));g||(Sr&127)!==0||Cy(c,a,l)}return l}function Cy(r,a,l){r.flags|=16384,r={getSnapshot:a,value:l},a=Te.updateQueue,a===null?(a=xu(),Te.updateQueue=a,a.stores=[r]):(l=a.stores,l===null?a.stores=[r]:l.push(r))}function Ry(r,a,l,c){a.value=l,a.getSnapshot=c,Oy(a)&&Ly(r)}function Ay(r,a,l){return l(function(){Oy(a)&&Ly(r)})}function Oy(r){var a=r.getSnapshot;r=r.value;try{var l=a();return!fn(r,l)}catch{return!0}}function Ly(r){var a=Qi(r,2);a!==null&&nn(a,r,2)}function Nh(r){var a=Vt();if(typeof r=="function"){var l=r;if(r=l(),ta){Kt(!0);try{l()}finally{Kt(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:r},a}function Ny(r,a,l,c){return r.baseState=l,Oh(r,Xe,typeof c=="function"?c:Er)}function jw(r,a,l,c,m){if(ku(r))throw Error(i(485));if(r=a.action,r!==null){var g={payload:m,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){g.listeners.push(x)}};q.T!==null?l(!0):g.isTransition=!1,c(g),l=a.pending,l===null?(g.next=a.pending=g,jy(a,g)):(g.next=l.next,a.pending=l.next=g)}}function jy(r,a){var l=a.action,c=a.payload,m=r.state;if(a.isTransition){var g=q.T,x={};q.T=x;try{var w=l(m,c),D=q.S;D!==null&&D(x,w),Dy(r,a,w)}catch(G){jh(r,a,G)}finally{g!==null&&x.types!==null&&(g.types=x.types),q.T=g}}else try{g=l(m,c),Dy(r,a,g)}catch(G){jh(r,a,G)}}function Dy(r,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(c){My(r,a,c)},function(c){return jh(r,a,c)}):My(r,a,l)}function My(r,a,l){a.status="fulfilled",a.value=l,Py(a),r.state=l,a=r.pending,a!==null&&(l=a.next,l===a?r.pending=null:(l=l.next,a.next=l,jy(r,l)))}function jh(r,a,l){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=l,Py(a),a=a.next;while(a!==c)}r.action=null}function Py(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function zy(r,a){return a}function Iy(r,a){if(Pe){var l=et.formState;if(l!==null){e:{var c=Te;if(Pe){if(rt){t:{for(var m=rt,g=An;m.nodeType!==8;){if(!g){m=null;break t}if(m=Ln(m.nextSibling),m===null){m=null;break t}}g=m.data,m=g==="F!"||g==="F"?m:null}if(m){rt=Ln(m.nextSibling),c=m.data==="F!";break e}}ei(c)}c=!1}c&&(a=l[0])}}return l=Vt(),l.memoizedState=l.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zy,lastRenderedState:a},l.queue=c,l=rv.bind(null,Te,c),c.dispatch=l,c=Nh(!1),g=Bh.bind(null,Te,!1,c.queue),c=Vt(),m={state:a,dispatch:null,action:r,pending:null},c.queue=m,l=jw.bind(null,Te,m,g,l),m.dispatch=l,c.memoizedState=r,[a,l,!1]}function By(r){var a=ft();return Uy(a,Xe,r)}function Uy(r,a,l){if(a=Oh(r,a,zy)[0],r=Eu(Er)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=Al(a)}catch(x){throw x===ns?du:x}else c=a;a=ft();var m=a.queue,g=m.dispatch;return l!==a.memoizedState&&(Te.flags|=2048,ls(9,{destroy:void 0},Dw.bind(null,m,l),null)),[c,g,r]}function Dw(r,a){r.action=a}function qy(r){var a=ft(),l=Xe;if(l!==null)return Uy(a,l,r);ft(),a=a.memoizedState,l=ft();var c=l.queue.dispatch;return l.memoizedState=r,[a,c,!1]}function ls(r,a,l,c){return r={tag:r,create:l,deps:c,inst:a,next:null},a=Te.updateQueue,a===null&&(a=xu(),Te.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=r.next=r:(c=l.next,l.next=r,r.next=c,a.lastEffect=r),r}function Vy(){return ft().memoizedState}function wu(r,a,l,c){var m=Vt();Te.flags|=r,m.memoizedState=ls(1|a,{destroy:void 0},l,c===void 0?null:c)}function Tu(r,a,l,c){var m=ft();c=c===void 0?null:c;var g=m.memoizedState.inst;Xe!==null&&c!==null&&wh(c,Xe.memoizedState.deps)?m.memoizedState=ls(a,g,l,c):(Te.flags|=r,m.memoizedState=ls(1|a,g,l,c))}function Hy(r,a){wu(8390656,8,r,a)}function Dh(r,a){Tu(2048,8,r,a)}function Mw(r){Te.flags|=4;var a=Te.updateQueue;if(a===null)a=xu(),Te.updateQueue=a,a.events=[r];else{var l=a.events;l===null?a.events=[r]:l.push(r)}}function Gy(r){var a=ft().memoizedState;return Mw({ref:a,nextImpl:r}),function(){if((He&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function Fy(r,a){return Tu(4,2,r,a)}function Qy(r,a){return Tu(4,4,r,a)}function $y(r,a){if(typeof a=="function"){r=r();var l=a(r);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function Yy(r,a,l){l=l!=null?l.concat([r]):null,Tu(4,4,$y.bind(null,a,r),l)}function Mh(){}function Ky(r,a){var l=ft();a=a===void 0?null:a;var c=l.memoizedState;return a!==null&&wh(a,c[1])?c[0]:(l.memoizedState=[r,a],r)}function Xy(r,a){var l=ft();a=a===void 0?null:a;var c=l.memoizedState;if(a!==null&&wh(a,c[1]))return c[0];if(c=r(),ta){Kt(!0);try{r()}finally{Kt(!1)}}return l.memoizedState=[c,a],c}function Ph(r,a,l){return l===void 0||(Sr&1073741824)!==0&&(je&261930)===0?r.memoizedState=a:(r.memoizedState=l,r=Zv(),Te.lanes|=r,ui|=r,l)}function Zy(r,a,l,c){return fn(l,a)?l:is.current!==null?(r=Ph(r,l,c),fn(r,a)||(pt=!0),r):(Sr&42)===0||(Sr&1073741824)!==0&&(je&261930)===0?(pt=!0,r.memoizedState=l):(r=Zv(),Te.lanes|=r,ui|=r,a)}function Jy(r,a,l,c,m){var g=te.p;te.p=g!==0&&8>g?g:8;var x=q.T,w={};q.T=w,Bh(r,!1,a,l);try{var D=m(),G=q.S;if(G!==null&&G(w,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var K=Ow(D,c);Ol(r,a,K,yn(r))}else Ol(r,a,c,yn(r))}catch(ee){Ol(r,a,{then:function(){},status:"rejected",reason:ee},yn())}finally{te.p=g,x!==null&&w.types!==null&&(x.types=w.types),q.T=x}}function Pw(){}function zh(r,a,l,c){if(r.tag!==5)throw Error(i(476));var m=Wy(r).queue;Jy(r,m,a,fe,l===null?Pw:function(){return ev(r),l(c)})}function Wy(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:fe},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Er,lastRenderedState:l},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function ev(r){var a=Wy(r);a.next===null&&(a=r.alternate.memoizedState),Ol(r,a.next.queue,{},yn())}function Ih(){return Lt($l)}function tv(){return ft().memoizedState}function nv(){return ft().memoizedState}function zw(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var l=yn();r=ri(l);var c=ii(a,r,l);c!==null&&(nn(c,a,l),Tl(c,a,l)),a={cache:dh()},r.payload=a;return}a=a.return}}function Iw(r,a,l){var c=yn();l={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ku(r)?iv(a,l):(l=nh(r,a,l,c),l!==null&&(nn(l,r,c),av(l,a,c)))}function rv(r,a,l){var c=yn();Ol(r,a,l,c)}function Ol(r,a,l,c){var m={lane:c,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ku(r))iv(a,m);else{var g=r.alternate;if(r.lanes===0&&(g===null||g.lanes===0)&&(g=a.lastRenderedReducer,g!==null))try{var x=a.lastRenderedState,w=g(x,l);if(m.hasEagerState=!0,m.eagerState=w,fn(w,x))return su(r,a,m,0),et===null&&au(),!1}catch{}finally{}if(l=nh(r,a,m,c),l!==null)return nn(l,r,c),av(l,a,c),!0}return!1}function Bh(r,a,l,c){if(c={lane:2,revertLane:yd(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},ku(r)){if(a)throw Error(i(479))}else a=nh(r,l,c,2),a!==null&&nn(a,r,2)}function ku(r){var a=r.alternate;return r===Te||a!==null&&a===Te}function iv(r,a){as=_u=!0;var l=r.pending;l===null?a.next=a:(a.next=l.next,l.next=a),r.pending=a}function av(r,a,l){if((l&4194048)!==0){var c=a.lanes;c&=r.pendingLanes,l|=c,a.lanes=l,cg(r,l)}}var Ll={readContext:Lt,use:Su,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st};Ll.useEffectEvent=st;var sv={readContext:Lt,use:Su,useCallback:function(r,a){return Vt().memoizedState=[r,a===void 0?null:a],r},useContext:Lt,useEffect:Hy,useImperativeHandle:function(r,a,l){l=l!=null?l.concat([r]):null,wu(4194308,4,$y.bind(null,a,r),l)},useLayoutEffect:function(r,a){return wu(4194308,4,r,a)},useInsertionEffect:function(r,a){wu(4,2,r,a)},useMemo:function(r,a){var l=Vt();a=a===void 0?null:a;var c=r();if(ta){Kt(!0);try{r()}finally{Kt(!1)}}return l.memoizedState=[c,a],c},useReducer:function(r,a,l){var c=Vt();if(l!==void 0){var m=l(a);if(ta){Kt(!0);try{l(a)}finally{Kt(!1)}}}else m=a;return c.memoizedState=c.baseState=m,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:m},c.queue=r,r=r.dispatch=Iw.bind(null,Te,r),[c.memoizedState,r]},useRef:function(r){var a=Vt();return r={current:r},a.memoizedState=r},useState:function(r){r=Nh(r);var a=r.queue,l=rv.bind(null,Te,a);return a.dispatch=l,[r.memoizedState,l]},useDebugValue:Mh,useDeferredValue:function(r,a){var l=Vt();return Ph(l,r,a)},useTransition:function(){var r=Nh(!1);return r=Jy.bind(null,Te,r.queue,!0,!1),Vt().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,l){var c=Te,m=Vt();if(Pe){if(l===void 0)throw Error(i(407));l=l()}else{if(l=a(),et===null)throw Error(i(349));(je&127)!==0||Cy(c,a,l)}m.memoizedState=l;var g={value:l,getSnapshot:a};return m.queue=g,Hy(Ay.bind(null,c,g,r),[r]),c.flags|=2048,ls(9,{destroy:void 0},Ry.bind(null,c,g,l,a),null),l},useId:function(){var r=Vt(),a=et.identifierPrefix;if(Pe){var l=er,c=Wn;l=(c&~(1<<32-We(c)-1)).toString(32)+l,a="_"+a+"R_"+l,l=bu++,0<l&&(a+="H"+l.toString(32)),a+="_"}else l=Lw++,a="_"+a+"r_"+l.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:Ih,useFormState:Iy,useActionState:Iy,useOptimistic:function(r){var a=Vt();a.memoizedState=a.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=Bh.bind(null,Te,!0,l),l.dispatch=a,[r,a]},useMemoCache:Ah,useCacheRefresh:function(){return Vt().memoizedState=zw.bind(null,Te)},useEffectEvent:function(r){var a=Vt(),l={impl:r};return a.memoizedState=l,function(){if((He&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},Uh={readContext:Lt,use:Su,useCallback:Ky,useContext:Lt,useEffect:Dh,useImperativeHandle:Yy,useInsertionEffect:Fy,useLayoutEffect:Qy,useMemo:Xy,useReducer:Eu,useRef:Vy,useState:function(){return Eu(Er)},useDebugValue:Mh,useDeferredValue:function(r,a){var l=ft();return Zy(l,Xe.memoizedState,r,a)},useTransition:function(){var r=Eu(Er)[0],a=ft().memoizedState;return[typeof r=="boolean"?r:Al(r),a]},useSyncExternalStore:ky,useId:tv,useHostTransitionStatus:Ih,useFormState:By,useActionState:By,useOptimistic:function(r,a){var l=ft();return Ny(l,Xe,r,a)},useMemoCache:Ah,useCacheRefresh:nv};Uh.useEffectEvent=Gy;var lv={readContext:Lt,use:Su,useCallback:Ky,useContext:Lt,useEffect:Dh,useImperativeHandle:Yy,useInsertionEffect:Fy,useLayoutEffect:Qy,useMemo:Xy,useReducer:Lh,useRef:Vy,useState:function(){return Lh(Er)},useDebugValue:Mh,useDeferredValue:function(r,a){var l=ft();return Xe===null?Ph(l,r,a):Zy(l,Xe.memoizedState,r,a)},useTransition:function(){var r=Lh(Er)[0],a=ft().memoizedState;return[typeof r=="boolean"?r:Al(r),a]},useSyncExternalStore:ky,useId:tv,useHostTransitionStatus:Ih,useFormState:qy,useActionState:qy,useOptimistic:function(r,a){var l=ft();return Xe!==null?Ny(l,Xe,r,a):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:Ah,useCacheRefresh:nv};lv.useEffectEvent=Gy;function qh(r,a,l,c){a=r.memoizedState,l=l(c,a),l=l==null?a:p({},a,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var Vh={enqueueSetState:function(r,a,l){r=r._reactInternals;var c=yn(),m=ri(c);m.payload=a,l!=null&&(m.callback=l),a=ii(r,m,c),a!==null&&(nn(a,r,c),Tl(a,r,c))},enqueueReplaceState:function(r,a,l){r=r._reactInternals;var c=yn(),m=ri(c);m.tag=1,m.payload=a,l!=null&&(m.callback=l),a=ii(r,m,c),a!==null&&(nn(a,r,c),Tl(a,r,c))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var l=yn(),c=ri(l);c.tag=2,a!=null&&(c.callback=a),a=ii(r,c,l),a!==null&&(nn(a,r,l),Tl(a,r,l))}};function ov(r,a,l,c,m,g,x){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,g,x):a.prototype&&a.prototype.isPureReactComponent?!yl(l,c)||!yl(m,g):!0}function uv(r,a,l,c){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,c),a.state!==r&&Vh.enqueueReplaceState(a,a.state,null)}function na(r,a){var l=a;if("ref"in a){l={};for(var c in a)c!=="ref"&&(l[c]=a[c])}if(r=r.defaultProps){l===a&&(l=p({},l));for(var m in r)l[m]===void 0&&(l[m]=r[m])}return l}function cv(r){iu(r)}function fv(r){console.error(r)}function hv(r){iu(r)}function Cu(r,a){try{var l=r.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function dv(r,a,l){try{var c=r.onCaughtError;c(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Hh(r,a,l){return l=ri(l),l.tag=3,l.payload={element:null},l.callback=function(){Cu(r,a)},l}function mv(r){return r=ri(r),r.tag=3,r}function pv(r,a,l,c){var m=l.type.getDerivedStateFromError;if(typeof m=="function"){var g=c.value;r.payload=function(){return m(g)},r.callback=function(){dv(a,l,c)}}var x=l.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(r.callback=function(){dv(a,l,c),typeof m!="function"&&(ci===null?ci=new Set([this]):ci.add(this));var w=c.stack;this.componentDidCatch(c.value,{componentStack:w!==null?w:""})})}function Bw(r,a,l,c,m){if(l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=l.alternate,a!==null&&Wa(a,l,m,!0),l=dn.current,l!==null){switch(l.tag){case 31:case 13:return On===null?Bu():l.alternate===null&&lt===0&&(lt=3),l.flags&=-257,l.flags|=65536,l.lanes=m,c===mu?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([c]):a.add(c),md(r,c,m)),!1;case 22:return l.flags|=65536,c===mu?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([c]):l.add(c)),md(r,c,m)),!1}throw Error(i(435,l.tag))}return md(r,c,m),Bu(),!1}if(Pe)return a=dn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=m,c!==oh&&(r=Error(i(422),{cause:c}),bl(kn(r,l)))):(c!==oh&&(a=Error(i(423),{cause:c}),bl(kn(a,l))),r=r.current.alternate,r.flags|=65536,m&=-m,r.lanes|=m,c=kn(c,l),m=Hh(r.stateNode,c,m),_h(r,m),lt!==4&&(lt=2)),!1;var g=Error(i(520),{cause:c});if(g=kn(g,l),Bl===null?Bl=[g]:Bl.push(g),lt!==4&&(lt=2),a===null)return!0;c=kn(c,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,r=m&-m,l.lanes|=r,r=Hh(l.stateNode,c,r),_h(l,r),!1;case 1:if(a=l.type,g=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(ci===null||!ci.has(g))))return l.flags|=65536,m&=-m,l.lanes|=m,m=mv(m),pv(m,r,l,c),_h(l,m),!1}l=l.return}while(l!==null);return!1}var Gh=Error(i(461)),pt=!1;function Nt(r,a,l,c){a.child=r===null?_y(a,null,l,c):ea(a,r.child,l,c)}function gv(r,a,l,c,m){l=l.render;var g=a.ref;if("ref"in c){var x={};for(var w in c)w!=="ref"&&(x[w]=c[w])}else x=c;return Xi(a),c=Th(r,a,l,x,g,m),w=kh(),r!==null&&!pt?(Ch(r,a,m),wr(r,a,m)):(Pe&&w&&sh(a),a.flags|=1,Nt(r,a,c,m),a.child)}function yv(r,a,l,c,m){if(r===null){var g=l.type;return typeof g=="function"&&!rh(g)&&g.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=g,vv(r,a,g,c,m)):(r=ou(l.type,null,c,a,a.mode,m),r.ref=a.ref,r.return=a,a.child=r)}if(g=r.child,!Jh(r,m)){var x=g.memoizedProps;if(l=l.compare,l=l!==null?l:yl,l(x,c)&&r.ref===a.ref)return wr(r,a,m)}return a.flags|=1,r=vr(g,c),r.ref=a.ref,r.return=a,a.child=r}function vv(r,a,l,c,m){if(r!==null){var g=r.memoizedProps;if(yl(g,c)&&r.ref===a.ref)if(pt=!1,a.pendingProps=c=g,Jh(r,m))(r.flags&131072)!==0&&(pt=!0);else return a.lanes=r.lanes,wr(r,a,m)}return Fh(r,a,l,c,m)}function _v(r,a,l,c){var m=c.children,g=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((a.flags&128)!==0){if(g=g!==null?g.baseLanes|l:l,r!==null){for(c=a.child=r.child,m=0;c!==null;)m=m|c.lanes|c.childLanes,c=c.sibling;c=m&~g}else c=0,a.child=null;return bv(r,a,g,l,c)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&hu(a,g!==null?g.cachePool:null),g!==null?Sy(a,g):xh(),Ey(a);else return c=a.lanes=536870912,bv(r,a,g!==null?g.baseLanes|l:l,l,c)}else g!==null?(hu(a,g.cachePool),Sy(a,g),si(),a.memoizedState=null):(r!==null&&hu(a,null),xh(),si());return Nt(r,a,m,l),a.child}function Nl(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function bv(r,a,l,c,m){var g=ph();return g=g===null?null:{parent:dt._currentValue,pool:g},a.memoizedState={baseLanes:l,cachePool:g},r!==null&&hu(a,null),xh(),Ey(a),r!==null&&Wa(r,a,c,!0),a.childLanes=m,null}function Ru(r,a){return a=Ou({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function xv(r,a,l){return ea(a,r.child,null,l),r=Ru(a,a.pendingProps),r.flags|=2,mn(a),a.memoizedState=null,r}function Uw(r,a,l){var c=a.pendingProps,m=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(Pe){if(c.mode==="hidden")return r=Ru(a,c),a.lanes=536870912,Nl(null,r);if(Eh(a),(r=rt)?(r=j_(r,An),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Jr!==null?{id:Wn,overflow:er}:null,retryLane:536870912,hydrationErrors:null},l=iy(r),l.return=a,a.child=l,Ot=a,rt=null)):r=null,r===null)throw ei(a);return a.lanes=536870912,null}return Ru(a,c)}var g=r.memoizedState;if(g!==null){var x=g.dehydrated;if(Eh(a),m)if(a.flags&256)a.flags&=-257,a=xv(r,a,l);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(pt||Wa(r,a,l,!1),m=(l&r.childLanes)!==0,pt||m){if(c=et,c!==null&&(x=fg(c,l),x!==0&&x!==g.retryLane))throw g.retryLane=x,Qi(r,x),nn(c,r,x),Gh;Bu(),a=xv(r,a,l)}else r=g.treeContext,rt=Ln(x.nextSibling),Ot=a,Pe=!0,Wr=null,An=!1,r!==null&&ly(a,r),a=Ru(a,c),a.flags|=4096;return a}return r=vr(r.child,{mode:c.mode,children:c.children}),r.ref=a.ref,a.child=r,r.return=a,r}function Au(r,a){var l=a.ref;if(l===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(r===null||r.ref!==l)&&(a.flags|=4194816)}}function Fh(r,a,l,c,m){return Xi(a),l=Th(r,a,l,c,void 0,m),c=kh(),r!==null&&!pt?(Ch(r,a,m),wr(r,a,m)):(Pe&&c&&sh(a),a.flags|=1,Nt(r,a,l,m),a.child)}function Sv(r,a,l,c,m,g){return Xi(a),a.updateQueue=null,l=Ty(a,c,l,m),wy(r),c=kh(),r!==null&&!pt?(Ch(r,a,g),wr(r,a,g)):(Pe&&c&&sh(a),a.flags|=1,Nt(r,a,l,g),a.child)}function Ev(r,a,l,c,m){if(Xi(a),a.stateNode===null){var g=Ka,x=l.contextType;typeof x=="object"&&x!==null&&(g=Lt(x)),g=new l(c,g),a.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Vh,a.stateNode=g,g._reactInternals=a,g=a.stateNode,g.props=c,g.state=a.memoizedState,g.refs={},yh(a),x=l.contextType,g.context=typeof x=="object"&&x!==null?Lt(x):Ka,g.state=a.memoizedState,x=l.getDerivedStateFromProps,typeof x=="function"&&(qh(a,l,x,c),g.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(x=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),x!==g.state&&Vh.enqueueReplaceState(g,g.state,null),Cl(a,c,g,m),kl(),g.state=a.memoizedState),typeof g.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(r===null){g=a.stateNode;var w=a.memoizedProps,D=na(l,w);g.props=D;var G=g.context,K=l.contextType;x=Ka,typeof K=="object"&&K!==null&&(x=Lt(K));var ee=l.getDerivedStateFromProps;K=typeof ee=="function"||typeof g.getSnapshotBeforeUpdate=="function",w=a.pendingProps!==w,K||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(w||G!==x)&&uv(a,g,c,x),ni=!1;var F=a.memoizedState;g.state=F,Cl(a,c,g,m),kl(),G=a.memoizedState,w||F!==G||ni?(typeof ee=="function"&&(qh(a,l,ee,c),G=a.memoizedState),(D=ni||ov(a,l,D,c,F,G,x))?(K||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(a.flags|=4194308)):(typeof g.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=G),g.props=c,g.state=G,g.context=x,c=D):(typeof g.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{g=a.stateNode,vh(r,a),x=a.memoizedProps,K=na(l,x),g.props=K,ee=a.pendingProps,F=g.context,G=l.contextType,D=Ka,typeof G=="object"&&G!==null&&(D=Lt(G)),w=l.getDerivedStateFromProps,(G=typeof w=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(x!==ee||F!==D)&&uv(a,g,c,D),ni=!1,F=a.memoizedState,g.state=F,Cl(a,c,g,m),kl();var Y=a.memoizedState;x!==ee||F!==Y||ni||r!==null&&r.dependencies!==null&&cu(r.dependencies)?(typeof w=="function"&&(qh(a,l,w,c),Y=a.memoizedState),(K=ni||ov(a,l,K,c,F,Y,D)||r!==null&&r.dependencies!==null&&cu(r.dependencies))?(G||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,Y,D),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,Y,D)),typeof g.componentDidUpdate=="function"&&(a.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof g.componentDidUpdate!="function"||x===r.memoizedProps&&F===r.memoizedState||(a.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||x===r.memoizedProps&&F===r.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=Y),g.props=c,g.state=Y,g.context=D,c=K):(typeof g.componentDidUpdate!="function"||x===r.memoizedProps&&F===r.memoizedState||(a.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||x===r.memoizedProps&&F===r.memoizedState||(a.flags|=1024),c=!1)}return g=c,Au(r,a),c=(a.flags&128)!==0,g||c?(g=a.stateNode,l=c&&typeof l.getDerivedStateFromError!="function"?null:g.render(),a.flags|=1,r!==null&&c?(a.child=ea(a,r.child,null,m),a.child=ea(a,null,l,m)):Nt(r,a,l,m),a.memoizedState=g.state,r=a.child):r=wr(r,a,m),r}function wv(r,a,l,c){return Yi(),a.flags|=256,Nt(r,a,l,c),a.child}var Qh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $h(r){return{baseLanes:r,cachePool:dy()}}function Yh(r,a,l){return r=r!==null?r.childLanes&~l:0,a&&(r|=gn),r}function Tv(r,a,l){var c=a.pendingProps,m=!1,g=(a.flags&128)!==0,x;if((x=g)||(x=r!==null&&r.memoizedState===null?!1:(ct.current&2)!==0),x&&(m=!0,a.flags&=-129),x=(a.flags&32)!==0,a.flags&=-33,r===null){if(Pe){if(m?ai(a):si(),(r=rt)?(r=j_(r,An),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Jr!==null?{id:Wn,overflow:er}:null,retryLane:536870912,hydrationErrors:null},l=iy(r),l.return=a,a.child=l,Ot=a,rt=null)):r=null,r===null)throw ei(a);return Od(r)?a.lanes=32:a.lanes=536870912,null}var w=c.children;return c=c.fallback,m?(si(),m=a.mode,w=Ou({mode:"hidden",children:w},m),c=$i(c,m,l,null),w.return=a,c.return=a,w.sibling=c,a.child=w,c=a.child,c.memoizedState=$h(l),c.childLanes=Yh(r,x,l),a.memoizedState=Qh,Nl(null,c)):(ai(a),Kh(a,w))}var D=r.memoizedState;if(D!==null&&(w=D.dehydrated,w!==null)){if(g)a.flags&256?(ai(a),a.flags&=-257,a=Xh(r,a,l)):a.memoizedState!==null?(si(),a.child=r.child,a.flags|=128,a=null):(si(),w=c.fallback,m=a.mode,c=Ou({mode:"visible",children:c.children},m),w=$i(w,m,l,null),w.flags|=2,c.return=a,w.return=a,c.sibling=w,a.child=c,ea(a,r.child,null,l),c=a.child,c.memoizedState=$h(l),c.childLanes=Yh(r,x,l),a.memoizedState=Qh,a=Nl(null,c));else if(ai(a),Od(w)){if(x=w.nextSibling&&w.nextSibling.dataset,x)var G=x.dgst;x=G,c=Error(i(419)),c.stack="",c.digest=x,bl({value:c,source:null,stack:null}),a=Xh(r,a,l)}else if(pt||Wa(r,a,l,!1),x=(l&r.childLanes)!==0,pt||x){if(x=et,x!==null&&(c=fg(x,l),c!==0&&c!==D.retryLane))throw D.retryLane=c,Qi(r,c),nn(x,r,c),Gh;Ad(w)||Bu(),a=Xh(r,a,l)}else Ad(w)?(a.flags|=192,a.child=r.child,a=null):(r=D.treeContext,rt=Ln(w.nextSibling),Ot=a,Pe=!0,Wr=null,An=!1,r!==null&&ly(a,r),a=Kh(a,c.children),a.flags|=4096);return a}return m?(si(),w=c.fallback,m=a.mode,D=r.child,G=D.sibling,c=vr(D,{mode:"hidden",children:c.children}),c.subtreeFlags=D.subtreeFlags&65011712,G!==null?w=vr(G,w):(w=$i(w,m,l,null),w.flags|=2),w.return=a,c.return=a,c.sibling=w,a.child=c,Nl(null,c),c=a.child,w=r.child.memoizedState,w===null?w=$h(l):(m=w.cachePool,m!==null?(D=dt._currentValue,m=m.parent!==D?{parent:D,pool:D}:m):m=dy(),w={baseLanes:w.baseLanes|l,cachePool:m}),c.memoizedState=w,c.childLanes=Yh(r,x,l),a.memoizedState=Qh,Nl(r.child,c)):(ai(a),l=r.child,r=l.sibling,l=vr(l,{mode:"visible",children:c.children}),l.return=a,l.sibling=null,r!==null&&(x=a.deletions,x===null?(a.deletions=[r],a.flags|=16):x.push(r)),a.child=l,a.memoizedState=null,l)}function Kh(r,a){return a=Ou({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Ou(r,a){return r=hn(22,r,null,a),r.lanes=0,r}function Xh(r,a,l){return ea(a,r.child,null,l),r=Kh(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function kv(r,a,l){r.lanes|=a;var c=r.alternate;c!==null&&(c.lanes|=a),fh(r.return,a,l)}function Zh(r,a,l,c,m,g){var x=r.memoizedState;x===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:l,tailMode:m,treeForkCount:g}:(x.isBackwards=a,x.rendering=null,x.renderingStartTime=0,x.last=c,x.tail=l,x.tailMode=m,x.treeForkCount=g)}function Cv(r,a,l){var c=a.pendingProps,m=c.revealOrder,g=c.tail;c=c.children;var x=ct.current,w=(x&2)!==0;if(w?(x=x&1|2,a.flags|=128):x&=1,A(ct,x),Nt(r,a,c,l),c=Pe?_l:0,!w&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&kv(r,l,a);else if(r.tag===19)kv(r,l,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(m){case"forwards":for(l=a.child,m=null;l!==null;)r=l.alternate,r!==null&&vu(r)===null&&(m=l),l=l.sibling;l=m,l===null?(m=a.child,a.child=null):(m=l.sibling,l.sibling=null),Zh(a,!1,m,l,g,c);break;case"backwards":case"unstable_legacy-backwards":for(l=null,m=a.child,a.child=null;m!==null;){if(r=m.alternate,r!==null&&vu(r)===null){a.child=m;break}r=m.sibling,m.sibling=l,l=m,m=r}Zh(a,!0,l,null,g,c);break;case"together":Zh(a,!1,null,null,void 0,c);break;default:a.memoizedState=null}return a.child}function wr(r,a,l){if(r!==null&&(a.dependencies=r.dependencies),ui|=a.lanes,(l&a.childLanes)===0)if(r!==null){if(Wa(r,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,l=vr(r,r.pendingProps),a.child=l,l.return=a;r.sibling!==null;)r=r.sibling,l=l.sibling=vr(r,r.pendingProps),l.return=a;l.sibling=null}return a.child}function Jh(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&cu(r)))}function qw(r,a,l){switch(a.tag){case 3:Qe(a,a.stateNode.containerInfo),ti(a,dt,r.memoizedState.cache),Yi();break;case 27:case 5:Dt(a);break;case 4:Qe(a,a.stateNode.containerInfo);break;case 10:ti(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Eh(a),null;break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(ai(a),a.flags|=128,null):(l&a.child.childLanes)!==0?Tv(r,a,l):(ai(a),r=wr(r,a,l),r!==null?r.sibling:null);ai(a);break;case 19:var m=(r.flags&128)!==0;if(c=(l&a.childLanes)!==0,c||(Wa(r,a,l,!1),c=(l&a.childLanes)!==0),m){if(c)return Cv(r,a,l);a.flags|=128}if(m=a.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),A(ct,ct.current),c)break;return null;case 22:return a.lanes=0,_v(r,a,l,a.pendingProps);case 24:ti(a,dt,r.memoizedState.cache)}return wr(r,a,l)}function Rv(r,a,l){if(r!==null)if(r.memoizedProps!==a.pendingProps)pt=!0;else{if(!Jh(r,l)&&(a.flags&128)===0)return pt=!1,qw(r,a,l);pt=(r.flags&131072)!==0}else pt=!1,Pe&&(a.flags&1048576)!==0&&sy(a,_l,a.index);switch(a.lanes=0,a.tag){case 16:e:{var c=a.pendingProps;if(r=Ji(a.elementType),a.type=r,typeof r=="function")rh(r)?(c=na(r,c),a.tag=1,a=Ev(null,a,r,c,l)):(a.tag=0,a=Fh(null,a,r,c,l));else{if(r!=null){var m=r.$$typeof;if(m===z){a.tag=11,a=gv(null,a,r,c,l);break e}else if(m===U){a.tag=14,a=yv(null,a,r,c,l);break e}}throw a=le(r)||r,Error(i(306,a,""))}}return a;case 0:return Fh(r,a,a.type,a.pendingProps,l);case 1:return c=a.type,m=na(c,a.pendingProps),Ev(r,a,c,m,l);case 3:e:{if(Qe(a,a.stateNode.containerInfo),r===null)throw Error(i(387));c=a.pendingProps;var g=a.memoizedState;m=g.element,vh(r,a),Cl(a,c,null,l);var x=a.memoizedState;if(c=x.cache,ti(a,dt,c),c!==g.cache&&hh(a,[dt],l,!0),kl(),c=x.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:x.cache},a.updateQueue.baseState=g,a.memoizedState=g,a.flags&256){a=wv(r,a,c,l);break e}else if(c!==m){m=kn(Error(i(424)),a),bl(m),a=wv(r,a,c,l);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(rt=Ln(r.firstChild),Ot=a,Pe=!0,Wr=null,An=!0,l=_y(a,null,c,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Yi(),c===m){a=wr(r,a,l);break e}Nt(r,a,c,l)}a=a.child}return a;case 26:return Au(r,a),r===null?(l=B_(a.type,null,a.pendingProps,null))?a.memoizedState=l:Pe||(l=a.type,r=a.pendingProps,c=Qu(he.current).createElement(l),c[At]=a,c[Xt]=r,jt(c,l,r),wt(c),a.stateNode=c):a.memoizedState=B_(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return Dt(a),r===null&&Pe&&(c=a.stateNode=P_(a.type,a.pendingProps,he.current),Ot=a,An=!0,m=rt,mi(a.type)?(Ld=m,rt=Ln(c.firstChild)):rt=m),Nt(r,a,a.pendingProps.children,l),Au(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&Pe&&((m=c=rt)&&(c=yT(c,a.type,a.pendingProps,An),c!==null?(a.stateNode=c,Ot=a,rt=Ln(c.firstChild),An=!1,m=!0):m=!1),m||ei(a)),Dt(a),m=a.type,g=a.pendingProps,x=r!==null?r.memoizedProps:null,c=g.children,kd(m,g)?c=null:x!==null&&kd(m,x)&&(a.flags|=32),a.memoizedState!==null&&(m=Th(r,a,Nw,null,null,l),$l._currentValue=m),Au(r,a),Nt(r,a,c,l),a.child;case 6:return r===null&&Pe&&((r=l=rt)&&(l=vT(l,a.pendingProps,An),l!==null?(a.stateNode=l,Ot=a,rt=null,r=!0):r=!1),r||ei(a)),null;case 13:return Tv(r,a,l);case 4:return Qe(a,a.stateNode.containerInfo),c=a.pendingProps,r===null?a.child=ea(a,null,c,l):Nt(r,a,c,l),a.child;case 11:return gv(r,a,a.type,a.pendingProps,l);case 7:return Nt(r,a,a.pendingProps,l),a.child;case 8:return Nt(r,a,a.pendingProps.children,l),a.child;case 12:return Nt(r,a,a.pendingProps.children,l),a.child;case 10:return c=a.pendingProps,ti(a,a.type,c.value),Nt(r,a,c.children,l),a.child;case 9:return m=a.type._context,c=a.pendingProps.children,Xi(a),m=Lt(m),c=c(m),a.flags|=1,Nt(r,a,c,l),a.child;case 14:return yv(r,a,a.type,a.pendingProps,l);case 15:return vv(r,a,a.type,a.pendingProps,l);case 19:return Cv(r,a,l);case 31:return Uw(r,a,l);case 22:return _v(r,a,l,a.pendingProps);case 24:return Xi(a),c=Lt(dt),r===null?(m=ph(),m===null&&(m=et,g=dh(),m.pooledCache=g,g.refCount++,g!==null&&(m.pooledCacheLanes|=l),m=g),a.memoizedState={parent:c,cache:m},yh(a),ti(a,dt,m)):((r.lanes&l)!==0&&(vh(r,a),Cl(a,null,null,l),kl()),m=r.memoizedState,g=a.memoizedState,m.parent!==c?(m={parent:c,cache:c},a.memoizedState=m,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=m),ti(a,dt,c)):(c=g.cache,ti(a,dt,c),c!==m.cache&&hh(a,[dt],l,!0))),Nt(r,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function Tr(r){r.flags|=4}function Wh(r,a,l,c,m){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(m&335544128)===m)if(r.stateNode.complete)r.flags|=8192;else if(t_())r.flags|=8192;else throw Wi=mu,gh}else r.flags&=-16777217}function Av(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!G_(a))if(t_())r.flags|=8192;else throw Wi=mu,gh}function Lu(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?og():536870912,r.lanes|=a,fs|=a)}function jl(r,a){if(!Pe)switch(r.tailMode){case"hidden":a=r.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var c=null;l!==null;)l.alternate!==null&&(c=l),l=l.sibling;c===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function it(r){var a=r.alternate!==null&&r.alternate.child===r.child,l=0,c=0;if(a)for(var m=r.child;m!==null;)l|=m.lanes|m.childLanes,c|=m.subtreeFlags&65011712,c|=m.flags&65011712,m.return=r,m=m.sibling;else for(m=r.child;m!==null;)l|=m.lanes|m.childLanes,c|=m.subtreeFlags,c|=m.flags,m.return=r,m=m.sibling;return r.subtreeFlags|=c,r.childLanes=l,a}function Vw(r,a,l){var c=a.pendingProps;switch(lh(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(a),null;case 1:return it(a),null;case 3:return l=a.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),xr(dt),Me(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(Ja(a)?Tr(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,uh())),it(a),null;case 26:var m=a.type,g=a.memoizedState;return r===null?(Tr(a),g!==null?(it(a),Av(a,g)):(it(a),Wh(a,m,null,c,l))):g?g!==r.memoizedState?(Tr(a),it(a),Av(a,g)):(it(a),a.flags&=-16777217):(r=r.memoizedProps,r!==c&&Tr(a),it(a),Wh(a,m,r,c,l)),null;case 27:if(on(a),l=he.current,m=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==c&&Tr(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return it(a),null}r=ue.current,Ja(a)?oy(a):(r=P_(m,c,l),a.stateNode=r,Tr(a))}return it(a),null;case 5:if(on(a),m=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==c&&Tr(a);else{if(!c){if(a.stateNode===null)throw Error(i(166));return it(a),null}if(g=ue.current,Ja(a))oy(a);else{var x=Qu(he.current);switch(g){case 1:g=x.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:g=x.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":g=x.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":g=x.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":g=x.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof c.is=="string"?x.createElement("select",{is:c.is}):x.createElement("select"),c.multiple?g.multiple=!0:c.size&&(g.size=c.size);break;default:g=typeof c.is=="string"?x.createElement(m,{is:c.is}):x.createElement(m)}}g[At]=a,g[Xt]=c;e:for(x=a.child;x!==null;){if(x.tag===5||x.tag===6)g.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===a)break e;for(;x.sibling===null;){if(x.return===null||x.return===a)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}a.stateNode=g;e:switch(jt(g,m,c),m){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Tr(a)}}return it(a),Wh(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,l),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==c&&Tr(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(i(166));if(r=he.current,Ja(a)){if(r=a.stateNode,l=a.memoizedProps,c=null,m=Ot,m!==null)switch(m.tag){case 27:case 5:c=m.memoizedProps}r[At]=a,r=!!(r.nodeValue===l||c!==null&&c.suppressHydrationWarning===!0||T_(r.nodeValue,l)),r||ei(a,!0)}else r=Qu(r).createTextNode(c),r[At]=a,a.stateNode=r}return it(a),null;case 31:if(l=a.memoizedState,r===null||r.memoizedState!==null){if(c=Ja(a),l!==null){if(r===null){if(!c)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[At]=a}else Yi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;it(a),r=!1}else l=uh(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=l),r=!0;if(!r)return a.flags&256?(mn(a),a):(mn(a),null);if((a.flags&128)!==0)throw Error(i(558))}return it(a),null;case 13:if(c=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(m=Ja(a),c!==null&&c.dehydrated!==null){if(r===null){if(!m)throw Error(i(318));if(m=a.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[At]=a}else Yi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;it(a),m=!1}else m=uh(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=m),m=!0;if(!m)return a.flags&256?(mn(a),a):(mn(a),null)}return mn(a),(a.flags&128)!==0?(a.lanes=l,a):(l=c!==null,r=r!==null&&r.memoizedState!==null,l&&(c=a.child,m=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(m=c.alternate.memoizedState.cachePool.pool),g=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==m&&(c.flags|=2048)),l!==r&&l&&(a.child.flags|=8192),Lu(a,a.updateQueue),it(a),null);case 4:return Me(),r===null&&xd(a.stateNode.containerInfo),it(a),null;case 10:return xr(a.type),it(a),null;case 19:if(X(ct),c=a.memoizedState,c===null)return it(a),null;if(m=(a.flags&128)!==0,g=c.rendering,g===null)if(m)jl(c,!1);else{if(lt!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(g=vu(r),g!==null){for(a.flags|=128,jl(c,!1),r=g.updateQueue,a.updateQueue=r,Lu(a,r),a.subtreeFlags=0,r=l,l=a.child;l!==null;)ry(l,r),l=l.sibling;return A(ct,ct.current&1|2),Pe&&_r(a,c.treeForkCount),a.child}r=r.sibling}c.tail!==null&&Be()>Pu&&(a.flags|=128,m=!0,jl(c,!1),a.lanes=4194304)}else{if(!m)if(r=vu(g),r!==null){if(a.flags|=128,m=!0,r=r.updateQueue,a.updateQueue=r,Lu(a,r),jl(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!Pe)return it(a),null}else 2*Be()-c.renderingStartTime>Pu&&l!==536870912&&(a.flags|=128,m=!0,jl(c,!1),a.lanes=4194304);c.isBackwards?(g.sibling=a.child,a.child=g):(r=c.last,r!==null?r.sibling=g:a.child=g,c.last=g)}return c.tail!==null?(r=c.tail,c.rendering=r,c.tail=r.sibling,c.renderingStartTime=Be(),r.sibling=null,l=ct.current,A(ct,m?l&1|2:l&1),Pe&&_r(a,c.treeForkCount),r):(it(a),null);case 22:case 23:return mn(a),Sh(),c=a.memoizedState!==null,r!==null?r.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(l&536870912)!==0&&(a.flags&128)===0&&(it(a),a.subtreeFlags&6&&(a.flags|=8192)):it(a),l=a.updateQueue,l!==null&&Lu(a,l.retryQueue),l=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==l&&(a.flags|=2048),r!==null&&X(Zi),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),xr(dt),it(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function Hw(r,a){switch(lh(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return xr(dt),Me(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return on(a),null;case 31:if(a.memoizedState!==null){if(mn(a),a.alternate===null)throw Error(i(340));Yi()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(mn(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Yi()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return X(ct),null;case 4:return Me(),null;case 10:return xr(a.type),null;case 22:case 23:return mn(a),Sh(),r!==null&&X(Zi),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return xr(dt),null;case 25:return null;default:return null}}function Ov(r,a){switch(lh(a),a.tag){case 3:xr(dt),Me();break;case 26:case 27:case 5:on(a);break;case 4:Me();break;case 31:a.memoizedState!==null&&mn(a);break;case 13:mn(a);break;case 19:X(ct);break;case 10:xr(a.type);break;case 22:case 23:mn(a),Sh(),r!==null&&X(Zi);break;case 24:xr(dt)}}function Dl(r,a){try{var l=a.updateQueue,c=l!==null?l.lastEffect:null;if(c!==null){var m=c.next;l=m;do{if((l.tag&r)===r){c=void 0;var g=l.create,x=l.inst;c=g(),x.destroy=c}l=l.next}while(l!==m)}}catch(w){Ye(a,a.return,w)}}function li(r,a,l){try{var c=a.updateQueue,m=c!==null?c.lastEffect:null;if(m!==null){var g=m.next;c=g;do{if((c.tag&r)===r){var x=c.inst,w=x.destroy;if(w!==void 0){x.destroy=void 0,m=a;var D=l,G=w;try{G()}catch(K){Ye(m,D,K)}}}c=c.next}while(c!==g)}}catch(K){Ye(a,a.return,K)}}function Lv(r){var a=r.updateQueue;if(a!==null){var l=r.stateNode;try{xy(a,l)}catch(c){Ye(r,r.return,c)}}}function Nv(r,a,l){l.props=na(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(c){Ye(r,a,c)}}function Ml(r,a){try{var l=r.ref;if(l!==null){switch(r.tag){case 26:case 27:case 5:var c=r.stateNode;break;case 30:c=r.stateNode;break;default:c=r.stateNode}typeof l=="function"?r.refCleanup=l(c):l.current=c}}catch(m){Ye(r,a,m)}}function tr(r,a){var l=r.ref,c=r.refCleanup;if(l!==null)if(typeof c=="function")try{c()}catch(m){Ye(r,a,m)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(m){Ye(r,a,m)}else l.current=null}function jv(r){var a=r.type,l=r.memoizedProps,c=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&c.focus();break e;case"img":l.src?c.src=l.src:l.srcSet&&(c.srcset=l.srcSet)}}catch(m){Ye(r,r.return,m)}}function ed(r,a,l){try{var c=r.stateNode;fT(c,r.type,l,a),c[Xt]=a}catch(m){Ye(r,r.return,m)}}function Dv(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&mi(r.type)||r.tag===4}function td(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Dv(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&mi(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function nd(r,a,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(r,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(r),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=gr));else if(c!==4&&(c===27&&mi(r.type)&&(l=r.stateNode,a=null),r=r.child,r!==null))for(nd(r,a,l),r=r.sibling;r!==null;)nd(r,a,l),r=r.sibling}function Nu(r,a,l){var c=r.tag;if(c===5||c===6)r=r.stateNode,a?l.insertBefore(r,a):l.appendChild(r);else if(c!==4&&(c===27&&mi(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(Nu(r,a,l),r=r.sibling;r!==null;)Nu(r,a,l),r=r.sibling}function Mv(r){var a=r.stateNode,l=r.memoizedProps;try{for(var c=r.type,m=a.attributes;m.length;)a.removeAttributeNode(m[0]);jt(a,c,l),a[At]=r,a[Xt]=l}catch(g){Ye(r,r.return,g)}}var kr=!1,gt=!1,rd=!1,Pv=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function Gw(r,a){if(r=r.containerInfo,wd=Wu,r=Yg(r),Xf(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var c=l.getSelection&&l.getSelection();if(c&&c.rangeCount!==0){l=c.anchorNode;var m=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{l.nodeType,g.nodeType}catch{l=null;break e}var x=0,w=-1,D=-1,G=0,K=0,ee=r,F=null;t:for(;;){for(var Y;ee!==l||m!==0&&ee.nodeType!==3||(w=x+m),ee!==g||c!==0&&ee.nodeType!==3||(D=x+c),ee.nodeType===3&&(x+=ee.nodeValue.length),(Y=ee.firstChild)!==null;)F=ee,ee=Y;for(;;){if(ee===r)break t;if(F===l&&++G===m&&(w=x),F===g&&++K===c&&(D=x),(Y=ee.nextSibling)!==null)break;ee=F,F=ee.parentNode}ee=Y}l=w===-1||D===-1?null:{start:w,end:D}}else l=null}l=l||{start:0,end:0}}else l=null;for(Td={focusedElem:r,selectionRange:l},Wu=!1,Tt=a;Tt!==null;)if(a=Tt,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,Tt=r;else for(;Tt!==null;){switch(a=Tt,g=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(l=0;l<r.length;l++)m=r[l],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&g!==null){r=void 0,l=a,m=g.memoizedProps,g=g.memoizedState,c=l.stateNode;try{var de=na(l.type,m);r=c.getSnapshotBeforeUpdate(de,g),c.__reactInternalSnapshotBeforeUpdate=r}catch(be){Ye(l,l.return,be)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,l=r.nodeType,l===9)Rd(r);else if(l===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Rd(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,Tt=r;break}Tt=a.return}}function zv(r,a,l){var c=l.flags;switch(l.tag){case 0:case 11:case 15:Rr(r,l),c&4&&Dl(5,l);break;case 1:if(Rr(r,l),c&4)if(r=l.stateNode,a===null)try{r.componentDidMount()}catch(x){Ye(l,l.return,x)}else{var m=na(l.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(m,a,r.__reactInternalSnapshotBeforeUpdate)}catch(x){Ye(l,l.return,x)}}c&64&&Lv(l),c&512&&Ml(l,l.return);break;case 3:if(Rr(r,l),c&64&&(r=l.updateQueue,r!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{xy(r,a)}catch(x){Ye(l,l.return,x)}}break;case 27:a===null&&c&4&&Mv(l);case 26:case 5:Rr(r,l),a===null&&c&4&&jv(l),c&512&&Ml(l,l.return);break;case 12:Rr(r,l);break;case 31:Rr(r,l),c&4&&Uv(r,l);break;case 13:Rr(r,l),c&4&&qv(r,l),c&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=Ww.bind(null,l),_T(r,l))));break;case 22:if(c=l.memoizedState!==null||kr,!c){a=a!==null&&a.memoizedState!==null||gt,m=kr;var g=gt;kr=c,(gt=a)&&!g?Ar(r,l,(l.subtreeFlags&8772)!==0):Rr(r,l),kr=m,gt=g}break;case 30:break;default:Rr(r,l)}}function Iv(r){var a=r.alternate;a!==null&&(r.alternate=null,Iv(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&jf(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var at=null,Jt=!1;function Cr(r,a,l){for(l=l.child;l!==null;)Bv(r,a,l),l=l.sibling}function Bv(r,a,l){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(qt,l)}catch{}switch(l.tag){case 26:gt||tr(l,a),Cr(r,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:gt||tr(l,a);var c=at,m=Jt;mi(l.type)&&(at=l.stateNode,Jt=!1),Cr(r,a,l),Gl(l.stateNode),at=c,Jt=m;break;case 5:gt||tr(l,a);case 6:if(c=at,m=Jt,at=null,Cr(r,a,l),at=c,Jt=m,at!==null)if(Jt)try{(at.nodeType===9?at.body:at.nodeName==="HTML"?at.ownerDocument.body:at).removeChild(l.stateNode)}catch(g){Ye(l,a,g)}else try{at.removeChild(l.stateNode)}catch(g){Ye(l,a,g)}break;case 18:at!==null&&(Jt?(r=at,L_(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,l.stateNode),_s(r)):L_(at,l.stateNode));break;case 4:c=at,m=Jt,at=l.stateNode.containerInfo,Jt=!0,Cr(r,a,l),at=c,Jt=m;break;case 0:case 11:case 14:case 15:li(2,l,a),gt||li(4,l,a),Cr(r,a,l);break;case 1:gt||(tr(l,a),c=l.stateNode,typeof c.componentWillUnmount=="function"&&Nv(l,a,c)),Cr(r,a,l);break;case 21:Cr(r,a,l);break;case 22:gt=(c=gt)||l.memoizedState!==null,Cr(r,a,l),gt=c;break;default:Cr(r,a,l)}}function Uv(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{_s(r)}catch(l){Ye(a,a.return,l)}}}function qv(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{_s(r)}catch(l){Ye(a,a.return,l)}}function Fw(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new Pv),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new Pv),a;default:throw Error(i(435,r.tag))}}function ju(r,a){var l=Fw(r);a.forEach(function(c){if(!l.has(c)){l.add(c);var m=eT.bind(null,r,c);c.then(m,m)}})}function Wt(r,a){var l=a.deletions;if(l!==null)for(var c=0;c<l.length;c++){var m=l[c],g=r,x=a,w=x;e:for(;w!==null;){switch(w.tag){case 27:if(mi(w.type)){at=w.stateNode,Jt=!1;break e}break;case 5:at=w.stateNode,Jt=!1;break e;case 3:case 4:at=w.stateNode.containerInfo,Jt=!0;break e}w=w.return}if(at===null)throw Error(i(160));Bv(g,x,m),at=null,Jt=!1,g=m.alternate,g!==null&&(g.return=null),m.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Vv(a,r),a=a.sibling}var Qn=null;function Vv(r,a){var l=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Wt(a,r),en(r),c&4&&(li(3,r,r.return),Dl(3,r),li(5,r,r.return));break;case 1:Wt(a,r),en(r),c&512&&(gt||l===null||tr(l,l.return)),c&64&&kr&&(r=r.updateQueue,r!==null&&(c=r.callbacks,c!==null&&(l=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=l===null?c:l.concat(c))));break;case 26:var m=Qn;if(Wt(a,r),en(r),c&512&&(gt||l===null||tr(l,l.return)),c&4){var g=l!==null?l.memoizedState:null;if(c=r.memoizedState,l===null)if(c===null)if(r.stateNode===null){e:{c=r.type,l=r.memoizedProps,m=m.ownerDocument||m;t:switch(c){case"title":g=m.getElementsByTagName("title")[0],(!g||g[ol]||g[At]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=m.createElement(c),m.head.insertBefore(g,m.querySelector("head > title"))),jt(g,c,l),g[At]=r,wt(g),c=g;break e;case"link":var x=V_("link","href",m).get(c+(l.href||""));if(x){for(var w=0;w<x.length;w++)if(g=x[w],g.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&g.getAttribute("rel")===(l.rel==null?null:l.rel)&&g.getAttribute("title")===(l.title==null?null:l.title)&&g.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){x.splice(w,1);break t}}g=m.createElement(c),jt(g,c,l),m.head.appendChild(g);break;case"meta":if(x=V_("meta","content",m).get(c+(l.content||""))){for(w=0;w<x.length;w++)if(g=x[w],g.getAttribute("content")===(l.content==null?null:""+l.content)&&g.getAttribute("name")===(l.name==null?null:l.name)&&g.getAttribute("property")===(l.property==null?null:l.property)&&g.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&g.getAttribute("charset")===(l.charSet==null?null:l.charSet)){x.splice(w,1);break t}}g=m.createElement(c),jt(g,c,l),m.head.appendChild(g);break;default:throw Error(i(468,c))}g[At]=r,wt(g),c=g}r.stateNode=c}else H_(m,r.type,r.stateNode);else r.stateNode=q_(m,c,r.memoizedProps);else g!==c?(g===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):g.count--,c===null?H_(m,r.type,r.stateNode):q_(m,c,r.memoizedProps)):c===null&&r.stateNode!==null&&ed(r,r.memoizedProps,l.memoizedProps)}break;case 27:Wt(a,r),en(r),c&512&&(gt||l===null||tr(l,l.return)),l!==null&&c&4&&ed(r,r.memoizedProps,l.memoizedProps);break;case 5:if(Wt(a,r),en(r),c&512&&(gt||l===null||tr(l,l.return)),r.flags&32){m=r.stateNode;try{Va(m,"")}catch(de){Ye(r,r.return,de)}}c&4&&r.stateNode!=null&&(m=r.memoizedProps,ed(r,m,l!==null?l.memoizedProps:m)),c&1024&&(rd=!0);break;case 6:if(Wt(a,r),en(r),c&4){if(r.stateNode===null)throw Error(i(162));c=r.memoizedProps,l=r.stateNode;try{l.nodeValue=c}catch(de){Ye(r,r.return,de)}}break;case 3:if(Ku=null,m=Qn,Qn=$u(a.containerInfo),Wt(a,r),Qn=m,en(r),c&4&&l!==null&&l.memoizedState.isDehydrated)try{_s(a.containerInfo)}catch(de){Ye(r,r.return,de)}rd&&(rd=!1,Hv(r));break;case 4:c=Qn,Qn=$u(r.stateNode.containerInfo),Wt(a,r),en(r),Qn=c;break;case 12:Wt(a,r),en(r);break;case 31:Wt(a,r),en(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,ju(r,c)));break;case 13:Wt(a,r),en(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Mu=Be()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,ju(r,c)));break;case 22:m=r.memoizedState!==null;var D=l!==null&&l.memoizedState!==null,G=kr,K=gt;if(kr=G||m,gt=K||D,Wt(a,r),gt=K,kr=G,en(r),c&8192)e:for(a=r.stateNode,a._visibility=m?a._visibility&-2:a._visibility|1,m&&(l===null||D||kr||gt||ra(r)),l=null,a=r;;){if(a.tag===5||a.tag===26){if(l===null){D=l=a;try{if(g=D.stateNode,m)x=g.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{w=D.stateNode;var ee=D.memoizedProps.style,F=ee!=null&&ee.hasOwnProperty("display")?ee.display:null;w.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(de){Ye(D,D.return,de)}}}else if(a.tag===6){if(l===null){D=a;try{D.stateNode.nodeValue=m?"":D.memoizedProps}catch(de){Ye(D,D.return,de)}}}else if(a.tag===18){if(l===null){D=a;try{var Y=D.stateNode;m?N_(Y,!0):N_(D.stateNode,!1)}catch(de){Ye(D,D.return,de)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=r.updateQueue,c!==null&&(l=c.retryQueue,l!==null&&(c.retryQueue=null,ju(r,l))));break;case 19:Wt(a,r),en(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,ju(r,c)));break;case 30:break;case 21:break;default:Wt(a,r),en(r)}}function en(r){var a=r.flags;if(a&2){try{for(var l,c=r.return;c!==null;){if(Dv(c)){l=c;break}c=c.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var m=l.stateNode,g=td(r);Nu(r,g,m);break;case 5:var x=l.stateNode;l.flags&32&&(Va(x,""),l.flags&=-33);var w=td(r);Nu(r,w,x);break;case 3:case 4:var D=l.stateNode.containerInfo,G=td(r);nd(r,G,D);break;default:throw Error(i(161))}}catch(K){Ye(r,r.return,K)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function Hv(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;Hv(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function Rr(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)zv(r,a.alternate,a),a=a.sibling}function ra(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:li(4,a,a.return),ra(a);break;case 1:tr(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&Nv(a,a.return,l),ra(a);break;case 27:Gl(a.stateNode);case 26:case 5:tr(a,a.return),ra(a);break;case 22:a.memoizedState===null&&ra(a);break;case 30:ra(a);break;default:ra(a)}r=r.sibling}}function Ar(r,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,m=r,g=a,x=g.flags;switch(g.tag){case 0:case 11:case 15:Ar(m,g,l),Dl(4,g);break;case 1:if(Ar(m,g,l),c=g,m=c.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(G){Ye(c,c.return,G)}if(c=g,m=c.updateQueue,m!==null){var w=c.stateNode;try{var D=m.shared.hiddenCallbacks;if(D!==null)for(m.shared.hiddenCallbacks=null,m=0;m<D.length;m++)by(D[m],w)}catch(G){Ye(c,c.return,G)}}l&&x&64&&Lv(g),Ml(g,g.return);break;case 27:Mv(g);case 26:case 5:Ar(m,g,l),l&&c===null&&x&4&&jv(g),Ml(g,g.return);break;case 12:Ar(m,g,l);break;case 31:Ar(m,g,l),l&&x&4&&Uv(m,g);break;case 13:Ar(m,g,l),l&&x&4&&qv(m,g);break;case 22:g.memoizedState===null&&Ar(m,g,l),Ml(g,g.return);break;case 30:break;default:Ar(m,g,l)}a=a.sibling}}function id(r,a){var l=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==l&&(r!=null&&r.refCount++,l!=null&&xl(l))}function ad(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&xl(r))}function $n(r,a,l,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Gv(r,a,l,c),a=a.sibling}function Gv(r,a,l,c){var m=a.flags;switch(a.tag){case 0:case 11:case 15:$n(r,a,l,c),m&2048&&Dl(9,a);break;case 1:$n(r,a,l,c);break;case 3:$n(r,a,l,c),m&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&xl(r)));break;case 12:if(m&2048){$n(r,a,l,c),r=a.stateNode;try{var g=a.memoizedProps,x=g.id,w=g.onPostCommit;typeof w=="function"&&w(x,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(D){Ye(a,a.return,D)}}else $n(r,a,l,c);break;case 31:$n(r,a,l,c);break;case 13:$n(r,a,l,c);break;case 23:break;case 22:g=a.stateNode,x=a.alternate,a.memoizedState!==null?g._visibility&2?$n(r,a,l,c):Pl(r,a):g._visibility&2?$n(r,a,l,c):(g._visibility|=2,os(r,a,l,c,(a.subtreeFlags&10256)!==0||!1)),m&2048&&id(x,a);break;case 24:$n(r,a,l,c),m&2048&&ad(a.alternate,a);break;default:$n(r,a,l,c)}}function os(r,a,l,c,m){for(m=m&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var g=r,x=a,w=l,D=c,G=x.flags;switch(x.tag){case 0:case 11:case 15:os(g,x,w,D,m),Dl(8,x);break;case 23:break;case 22:var K=x.stateNode;x.memoizedState!==null?K._visibility&2?os(g,x,w,D,m):Pl(g,x):(K._visibility|=2,os(g,x,w,D,m)),m&&G&2048&&id(x.alternate,x);break;case 24:os(g,x,w,D,m),m&&G&2048&&ad(x.alternate,x);break;default:os(g,x,w,D,m)}a=a.sibling}}function Pl(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=r,c=a,m=c.flags;switch(c.tag){case 22:Pl(l,c),m&2048&&id(c.alternate,c);break;case 24:Pl(l,c),m&2048&&ad(c.alternate,c);break;default:Pl(l,c)}a=a.sibling}}var zl=8192;function us(r,a,l){if(r.subtreeFlags&zl)for(r=r.child;r!==null;)Fv(r,a,l),r=r.sibling}function Fv(r,a,l){switch(r.tag){case 26:us(r,a,l),r.flags&zl&&r.memoizedState!==null&&LT(l,Qn,r.memoizedState,r.memoizedProps);break;case 5:us(r,a,l);break;case 3:case 4:var c=Qn;Qn=$u(r.stateNode.containerInfo),us(r,a,l),Qn=c;break;case 22:r.memoizedState===null&&(c=r.alternate,c!==null&&c.memoizedState!==null?(c=zl,zl=16777216,us(r,a,l),zl=c):us(r,a,l));break;default:us(r,a,l)}}function Qv(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Il(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var c=a[l];Tt=c,Yv(c,r)}Qv(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)$v(r),r=r.sibling}function $v(r){switch(r.tag){case 0:case 11:case 15:Il(r),r.flags&2048&&li(9,r,r.return);break;case 3:Il(r);break;case 12:Il(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,Du(r)):Il(r);break;default:Il(r)}}function Du(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var c=a[l];Tt=c,Yv(c,r)}Qv(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:li(8,a,a.return),Du(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,Du(a));break;default:Du(a)}r=r.sibling}}function Yv(r,a){for(;Tt!==null;){var l=Tt;switch(l.tag){case 0:case 11:case 15:li(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var c=l.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:xl(l.memoizedState.cache)}if(c=l.child,c!==null)c.return=l,Tt=c;else e:for(l=r;Tt!==null;){c=Tt;var m=c.sibling,g=c.return;if(Iv(c),c===l){Tt=null;break e}if(m!==null){m.return=g,Tt=m;break e}Tt=g}}}var Qw={getCacheForType:function(r){var a=Lt(dt),l=a.data.get(r);return l===void 0&&(l=r(),a.data.set(r,l)),l},cacheSignal:function(){return Lt(dt).controller.signal}},$w=typeof WeakMap=="function"?WeakMap:Map,He=0,et=null,Oe=null,je=0,$e=0,pn=null,oi=!1,cs=!1,sd=!1,Or=0,lt=0,ui=0,ia=0,ld=0,gn=0,fs=0,Bl=null,tn=null,od=!1,Mu=0,Kv=0,Pu=1/0,zu=null,ci=null,bt=0,fi=null,hs=null,Lr=0,ud=0,cd=null,Xv=null,Ul=0,fd=null;function yn(){return(He&2)!==0&&je!==0?je&-je:q.T!==null?yd():hg()}function Zv(){if(gn===0)if((je&536870912)===0||Pe){var r=Fo;Fo<<=1,(Fo&3932160)===0&&(Fo=262144),gn=r}else gn=536870912;return r=dn.current,r!==null&&(r.flags|=32),gn}function nn(r,a,l){(r===et&&($e===2||$e===9)||r.cancelPendingCommit!==null)&&(ds(r,0),hi(r,je,gn,!1)),ll(r,l),((He&2)===0||r!==et)&&(r===et&&((He&2)===0&&(ia|=l),lt===4&&hi(r,je,gn,!1)),nr(r))}function Jv(r,a,l){if((He&6)!==0)throw Error(i(327));var c=!l&&(a&127)===0&&(a&r.expiredLanes)===0||sl(r,a),m=c?Xw(r,a):dd(r,a,!0),g=c;do{if(m===0){cs&&!c&&hi(r,a,0,!1);break}else{if(l=r.current.alternate,g&&!Yw(l)){m=dd(r,a,!1),g=!1;continue}if(m===2){if(g=a,r.errorRecoveryDisabledLanes&g)var x=0;else x=r.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){a=x;e:{var w=r;m=Bl;var D=w.current.memoizedState.isDehydrated;if(D&&(ds(w,x).flags|=256),x=dd(w,x,!1),x!==2){if(sd&&!D){w.errorRecoveryDisabledLanes|=g,ia|=g,m=4;break e}g=tn,tn=m,g!==null&&(tn===null?tn=g:tn.push.apply(tn,g))}m=x}if(g=!1,m!==2)continue}}if(m===1){ds(r,0),hi(r,a,0,!0);break}e:{switch(c=r,g=m,g){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:hi(c,a,gn,!oi);break e;case 2:tn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(m=Mu+300-Be(),10<m)){if(hi(c,a,gn,!oi),$o(c,0,!0)!==0)break e;Lr=a,c.timeoutHandle=A_(Wv.bind(null,c,l,tn,zu,od,a,gn,ia,fs,oi,g,"Throttled",-0,0),m);break e}Wv(c,l,tn,zu,od,a,gn,ia,fs,oi,g,null,-0,0)}}break}while(!0);nr(r)}function Wv(r,a,l,c,m,g,x,w,D,G,K,ee,F,Y){if(r.timeoutHandle=-1,ee=a.subtreeFlags,ee&8192||(ee&16785408)===16785408){ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:gr},Fv(a,g,ee);var de=(g&62914560)===g?Mu-Be():(g&4194048)===g?Kv-Be():0;if(de=NT(ee,de),de!==null){Lr=g,r.cancelPendingCommit=de(l_.bind(null,r,a,g,l,c,m,x,w,D,K,ee,null,F,Y)),hi(r,g,x,!G);return}}l_(r,a,g,l,c,m,x,w,D)}function Yw(r){for(var a=r;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var c=0;c<l.length;c++){var m=l[c],g=m.getSnapshot;m=m.value;try{if(!fn(g(),m))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function hi(r,a,l,c){a&=~ld,a&=~ia,r.suspendedLanes|=a,r.pingedLanes&=~a,c&&(r.warmLanes|=a),c=r.expirationTimes;for(var m=a;0<m;){var g=31-We(m),x=1<<g;c[g]=-1,m&=~x}l!==0&&ug(r,l,a)}function Iu(){return(He&6)===0?(ql(0),!1):!0}function hd(){if(Oe!==null){if($e===0)var r=Oe.return;else r=Oe,br=Ki=null,Rh(r),rs=null,El=0,r=Oe;for(;r!==null;)Ov(r.alternate,r),r=r.return;Oe=null}}function ds(r,a){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,mT(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),Lr=0,hd(),et=r,Oe=l=vr(r.current,null),je=a,$e=0,pn=null,oi=!1,cs=sl(r,a),sd=!1,fs=gn=ld=ia=ui=lt=0,tn=Bl=null,od=!1,(a&8)!==0&&(a|=a&32);var c=r.entangledLanes;if(c!==0)for(r=r.entanglements,c&=a;0<c;){var m=31-We(c),g=1<<m;a|=r[m],c&=~g}return Or=a,au(),l}function e_(r,a){Te=null,q.H=Ll,a===ns||a===du?(a=gy(),$e=3):a===gh?(a=gy(),$e=4):$e=a===Gh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,pn=a,Oe===null&&(lt=1,Cu(r,kn(a,r.current)))}function t_(){var r=dn.current;return r===null?!0:(je&4194048)===je?On===null:(je&62914560)===je||(je&536870912)!==0?r===On:!1}function n_(){var r=q.H;return q.H=Ll,r===null?Ll:r}function r_(){var r=q.A;return q.A=Qw,r}function Bu(){lt=4,oi||(je&4194048)!==je&&dn.current!==null||(cs=!0),(ui&134217727)===0&&(ia&134217727)===0||et===null||hi(et,je,gn,!1)}function dd(r,a,l){var c=He;He|=2;var m=n_(),g=r_();(et!==r||je!==a)&&(zu=null,ds(r,a)),a=!1;var x=lt;e:do try{if($e!==0&&Oe!==null){var w=Oe,D=pn;switch($e){case 8:hd(),x=6;break e;case 3:case 2:case 9:case 6:dn.current===null&&(a=!0);var G=$e;if($e=0,pn=null,ms(r,w,D,G),l&&cs){x=0;break e}break;default:G=$e,$e=0,pn=null,ms(r,w,D,G)}}Kw(),x=lt;break}catch(K){e_(r,K)}while(!0);return a&&r.shellSuspendCounter++,br=Ki=null,He=c,q.H=m,q.A=g,Oe===null&&(et=null,je=0,au()),x}function Kw(){for(;Oe!==null;)i_(Oe)}function Xw(r,a){var l=He;He|=2;var c=n_(),m=r_();et!==r||je!==a?(zu=null,Pu=Be()+500,ds(r,a)):cs=sl(r,a);e:do try{if($e!==0&&Oe!==null){a=Oe;var g=pn;t:switch($e){case 1:$e=0,pn=null,ms(r,a,g,1);break;case 2:case 9:if(my(g)){$e=0,pn=null,a_(a);break}a=function(){$e!==2&&$e!==9||et!==r||($e=7),nr(r)},g.then(a,a);break e;case 3:$e=7;break e;case 4:$e=5;break e;case 7:my(g)?($e=0,pn=null,a_(a)):($e=0,pn=null,ms(r,a,g,7));break;case 5:var x=null;switch(Oe.tag){case 26:x=Oe.memoizedState;case 5:case 27:var w=Oe;if(x?G_(x):w.stateNode.complete){$e=0,pn=null;var D=w.sibling;if(D!==null)Oe=D;else{var G=w.return;G!==null?(Oe=G,Uu(G)):Oe=null}break t}}$e=0,pn=null,ms(r,a,g,5);break;case 6:$e=0,pn=null,ms(r,a,g,6);break;case 8:hd(),lt=6;break e;default:throw Error(i(462))}}Zw();break}catch(K){e_(r,K)}while(!0);return br=Ki=null,q.H=c,q.A=m,He=l,Oe!==null?0:(et=null,je=0,au(),lt)}function Zw(){for(;Oe!==null&&!Ma();)i_(Oe)}function i_(r){var a=Rv(r.alternate,r,Or);r.memoizedProps=r.pendingProps,a===null?Uu(r):Oe=a}function a_(r){var a=r,l=a.alternate;switch(a.tag){case 15:case 0:a=Sv(l,a,a.pendingProps,a.type,void 0,je);break;case 11:a=Sv(l,a,a.pendingProps,a.type.render,a.ref,je);break;case 5:Rh(a);default:Ov(l,a),a=Oe=ry(a,Or),a=Rv(l,a,Or)}r.memoizedProps=r.pendingProps,a===null?Uu(r):Oe=a}function ms(r,a,l,c){br=Ki=null,Rh(a),rs=null,El=0;var m=a.return;try{if(Bw(r,m,a,l,je)){lt=1,Cu(r,kn(l,r.current)),Oe=null;return}}catch(g){if(m!==null)throw Oe=m,g;lt=1,Cu(r,kn(l,r.current)),Oe=null;return}a.flags&32768?(Pe||c===1?r=!0:cs||(je&536870912)!==0?r=!1:(oi=r=!0,(c===2||c===9||c===3||c===6)&&(c=dn.current,c!==null&&c.tag===13&&(c.flags|=16384))),s_(a,r)):Uu(a)}function Uu(r){var a=r;do{if((a.flags&32768)!==0){s_(a,oi);return}r=a.return;var l=Vw(a.alternate,a,Or);if(l!==null){Oe=l;return}if(a=a.sibling,a!==null){Oe=a;return}Oe=a=r}while(a!==null);lt===0&&(lt=5)}function s_(r,a){do{var l=Hw(r.alternate,r);if(l!==null){l.flags&=32767,Oe=l;return}if(l=r.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(r=r.sibling,r!==null)){Oe=r;return}Oe=r=l}while(r!==null);lt=6,Oe=null}function l_(r,a,l,c,m,g,x,w,D){r.cancelPendingCommit=null;do qu();while(bt!==0);if((He&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(g=a.lanes|a.childLanes,g|=th,OE(r,l,g,x,w,D),r===et&&(Oe=et=null,je=0),hs=a,fi=r,Lr=l,ud=g,cd=m,Xv=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,tT(xe,function(){return h_(),null})):(r.callbackNode=null,r.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=q.T,q.T=null,m=te.p,te.p=2,x=He,He|=4;try{Gw(r,a,l)}finally{He=x,te.p=m,q.T=c}}bt=1,o_(),u_(),c_()}}function o_(){if(bt===1){bt=0;var r=fi,a=hs,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=q.T,q.T=null;var c=te.p;te.p=2;var m=He;He|=4;try{Vv(a,r);var g=Td,x=Yg(r.containerInfo),w=g.focusedElem,D=g.selectionRange;if(x!==w&&w&&w.ownerDocument&&$g(w.ownerDocument.documentElement,w)){if(D!==null&&Xf(w)){var G=D.start,K=D.end;if(K===void 0&&(K=G),"selectionStart"in w)w.selectionStart=G,w.selectionEnd=Math.min(K,w.value.length);else{var ee=w.ownerDocument||document,F=ee&&ee.defaultView||window;if(F.getSelection){var Y=F.getSelection(),de=w.textContent.length,be=Math.min(D.start,de),Je=D.end===void 0?be:Math.min(D.end,de);!Y.extend&&be>Je&&(x=Je,Je=be,be=x);var B=Qg(w,be),I=Qg(w,Je);if(B&&I&&(Y.rangeCount!==1||Y.anchorNode!==B.node||Y.anchorOffset!==B.offset||Y.focusNode!==I.node||Y.focusOffset!==I.offset)){var H=ee.createRange();H.setStart(B.node,B.offset),Y.removeAllRanges(),be>Je?(Y.addRange(H),Y.extend(I.node,I.offset)):(H.setEnd(I.node,I.offset),Y.addRange(H))}}}}for(ee=[],Y=w;Y=Y.parentNode;)Y.nodeType===1&&ee.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<ee.length;w++){var J=ee[w];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}Wu=!!wd,Td=wd=null}finally{He=m,te.p=c,q.T=l}}r.current=a,bt=2}}function u_(){if(bt===2){bt=0;var r=fi,a=hs,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=q.T,q.T=null;var c=te.p;te.p=2;var m=He;He|=4;try{zv(r,a.alternate,a)}finally{He=m,te.p=c,q.T=l}}bt=3}}function c_(){if(bt===4||bt===3){bt=0,Ue();var r=fi,a=hs,l=Lr,c=Xv;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?bt=5:(bt=0,hs=fi=null,f_(r,r.pendingLanes));var m=r.pendingLanes;if(m===0&&(ci=null),Lf(l),a=a.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(qt,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=q.T,m=te.p,te.p=2,q.T=null;try{for(var g=r.onRecoverableError,x=0;x<c.length;x++){var w=c[x];g(w.value,{componentStack:w.stack})}}finally{q.T=a,te.p=m}}(Lr&3)!==0&&qu(),nr(r),m=r.pendingLanes,(l&261930)!==0&&(m&42)!==0?r===fd?Ul++:(Ul=0,fd=r):Ul=0,ql(0)}}function f_(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,xl(a)))}function qu(){return o_(),u_(),c_(),h_()}function h_(){if(bt!==5)return!1;var r=fi,a=ud;ud=0;var l=Lf(Lr),c=q.T,m=te.p;try{te.p=32>l?32:l,q.T=null,l=cd,cd=null;var g=fi,x=Lr;if(bt=0,hs=fi=null,Lr=0,(He&6)!==0)throw Error(i(331));var w=He;if(He|=4,$v(g.current),Gv(g,g.current,x,l),He=w,ql(0,!1),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(qt,g)}catch{}return!0}finally{te.p=m,q.T=c,f_(r,a)}}function d_(r,a,l){a=kn(l,a),a=Hh(r.stateNode,a,2),r=ii(r,a,2),r!==null&&(ll(r,2),nr(r))}function Ye(r,a,l){if(r.tag===3)d_(r,r,l);else for(;a!==null;){if(a.tag===3){d_(a,r,l);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(ci===null||!ci.has(c))){r=kn(l,r),l=mv(2),c=ii(a,l,2),c!==null&&(pv(l,c,a,r),ll(c,2),nr(c));break}}a=a.return}}function md(r,a,l){var c=r.pingCache;if(c===null){c=r.pingCache=new $w;var m=new Set;c.set(a,m)}else m=c.get(a),m===void 0&&(m=new Set,c.set(a,m));m.has(l)||(sd=!0,m.add(l),r=Jw.bind(null,r,a,l),a.then(r,r))}function Jw(r,a,l){var c=r.pingCache;c!==null&&c.delete(a),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,et===r&&(je&l)===l&&(lt===4||lt===3&&(je&62914560)===je&&300>Be()-Mu?(He&2)===0&&ds(r,0):ld|=l,fs===je&&(fs=0)),nr(r)}function m_(r,a){a===0&&(a=og()),r=Qi(r,a),r!==null&&(ll(r,a),nr(r))}function Ww(r){var a=r.memoizedState,l=0;a!==null&&(l=a.retryLane),m_(r,l)}function eT(r,a){var l=0;switch(r.tag){case 31:case 13:var c=r.stateNode,m=r.memoizedState;m!==null&&(l=m.retryLane);break;case 19:c=r.stateNode;break;case 22:c=r.stateNode._retryCache;break;default:throw Error(i(314))}c!==null&&c.delete(a),m_(r,l)}function tT(r,a){return Hn(r,a)}var Vu=null,ps=null,pd=!1,Hu=!1,gd=!1,di=0;function nr(r){r!==ps&&r.next===null&&(ps===null?Vu=ps=r:ps=ps.next=r),Hu=!0,pd||(pd=!0,rT())}function ql(r,a){if(!gd&&Hu){gd=!0;do for(var l=!1,c=Vu;c!==null;){if(r!==0){var m=c.pendingLanes;if(m===0)var g=0;else{var x=c.suspendedLanes,w=c.pingedLanes;g=(1<<31-We(42|r)+1)-1,g&=m&~(x&~w),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(l=!0,v_(c,g))}else g=je,g=$o(c,c===et?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||sl(c,g)||(l=!0,v_(c,g));c=c.next}while(l);gd=!1}}function nT(){p_()}function p_(){Hu=pd=!1;var r=0;di!==0&&dT()&&(r=di);for(var a=Be(),l=null,c=Vu;c!==null;){var m=c.next,g=g_(c,a);g===0?(c.next=null,l===null?Vu=m:l.next=m,m===null&&(ps=l)):(l=c,(r!==0||(g&3)!==0)&&(Hu=!0)),c=m}bt!==0&&bt!==5||ql(r),di!==0&&(di=0)}function g_(r,a){for(var l=r.suspendedLanes,c=r.pingedLanes,m=r.expirationTimes,g=r.pendingLanes&-62914561;0<g;){var x=31-We(g),w=1<<x,D=m[x];D===-1?((w&l)===0||(w&c)!==0)&&(m[x]=AE(w,a)):D<=a&&(r.expiredLanes|=w),g&=~w}if(a=et,l=je,l=$o(r,r===a?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c=r.callbackNode,l===0||r===a&&($e===2||$e===9)||r.cancelPendingCommit!==null)return c!==null&&c!==null&&Yr(c),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||sl(r,l)){if(a=l&-l,a===r.callbackPriority)return a;switch(c!==null&&Yr(c),Lf(l)){case 2:case 8:l=oe;break;case 32:l=xe;break;case 268435456:l=Ge;break;default:l=xe}return c=y_.bind(null,r),l=Hn(l,c),r.callbackPriority=a,r.callbackNode=l,a}return c!==null&&c!==null&&Yr(c),r.callbackPriority=2,r.callbackNode=null,2}function y_(r,a){if(bt!==0&&bt!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(qu()&&r.callbackNode!==l)return null;var c=je;return c=$o(r,r===et?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c===0?null:(Jv(r,c,a),g_(r,Be()),r.callbackNode!=null&&r.callbackNode===l?y_.bind(null,r):null)}function v_(r,a){if(qu())return null;Jv(r,a,!0)}function rT(){pT(function(){(He&6)!==0?Hn(Z,nT):p_()})}function yd(){if(di===0){var r=es;r===0&&(r=Go,Go<<=1,(Go&261888)===0&&(Go=256)),di=r}return di}function __(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Zo(""+r)}function b_(r,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,r.id&&l.setAttribute("form",r.id),a.parentNode.insertBefore(l,a),r=new FormData(r),l.parentNode.removeChild(l),r}function iT(r,a,l,c,m){if(a==="submit"&&l&&l.stateNode===m){var g=__((m[Xt]||null).action),x=c.submitter;x&&(a=(a=x[Xt]||null)?__(a.formAction):x.getAttribute("formAction"),a!==null&&(g=a,x=null));var w=new tu("action","action",null,c,m);r.push({event:w,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(di!==0){var D=x?b_(m,x):new FormData(m);zh(l,{pending:!0,data:D,method:m.method,action:g},null,D)}}else typeof g=="function"&&(w.preventDefault(),D=x?b_(m,x):new FormData(m),zh(l,{pending:!0,data:D,method:m.method,action:g},g,D))},currentTarget:m}]})}}for(var vd=0;vd<eh.length;vd++){var _d=eh[vd],aT=_d.toLowerCase(),sT=_d[0].toUpperCase()+_d.slice(1);Fn(aT,"on"+sT)}Fn(Zg,"onAnimationEnd"),Fn(Jg,"onAnimationIteration"),Fn(Wg,"onAnimationStart"),Fn("dblclick","onDoubleClick"),Fn("focusin","onFocus"),Fn("focusout","onBlur"),Fn(Sw,"onTransitionRun"),Fn(Ew,"onTransitionStart"),Fn(ww,"onTransitionCancel"),Fn(ey,"onTransitionEnd"),Ua("onMouseEnter",["mouseout","mouseover"]),Ua("onMouseLeave",["mouseout","mouseover"]),Ua("onPointerEnter",["pointerout","pointerover"]),Ua("onPointerLeave",["pointerout","pointerover"]),Vi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Vi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Vi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Vi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Vi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Vi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vl="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(" "),lT=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vl));function x_(r,a){a=(a&4)!==0;for(var l=0;l<r.length;l++){var c=r[l],m=c.event;c=c.listeners;e:{var g=void 0;if(a)for(var x=c.length-1;0<=x;x--){var w=c[x],D=w.instance,G=w.currentTarget;if(w=w.listener,D!==g&&m.isPropagationStopped())break e;g=w,m.currentTarget=G;try{g(m)}catch(K){iu(K)}m.currentTarget=null,g=D}else for(x=0;x<c.length;x++){if(w=c[x],D=w.instance,G=w.currentTarget,w=w.listener,D!==g&&m.isPropagationStopped())break e;g=w,m.currentTarget=G;try{g(m)}catch(K){iu(K)}m.currentTarget=null,g=D}}}}function Le(r,a){var l=a[Nf];l===void 0&&(l=a[Nf]=new Set);var c=r+"__bubble";l.has(c)||(S_(a,r,2,!1),l.add(c))}function bd(r,a,l){var c=0;a&&(c|=4),S_(l,r,c,a)}var Gu="_reactListening"+Math.random().toString(36).slice(2);function xd(r){if(!r[Gu]){r[Gu]=!0,pg.forEach(function(l){l!=="selectionchange"&&(lT.has(l)||bd(l,!1,r),bd(l,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[Gu]||(a[Gu]=!0,bd("selectionchange",!1,a))}}function S_(r,a,l,c){switch(Z_(a)){case 2:var m=MT;break;case 8:m=PT;break;default:m=Pd}l=m.bind(null,a,l,r),m=void 0,!qf||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(m=!0),c?m!==void 0?r.addEventListener(a,l,{capture:!0,passive:m}):r.addEventListener(a,l,!0):m!==void 0?r.addEventListener(a,l,{passive:m}):r.addEventListener(a,l,!1)}function Sd(r,a,l,c,m){var g=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var x=c.tag;if(x===3||x===4){var w=c.stateNode.containerInfo;if(w===m)break;if(x===4)for(x=c.return;x!==null;){var D=x.tag;if((D===3||D===4)&&x.stateNode.containerInfo===m)return;x=x.return}for(;w!==null;){if(x=za(w),x===null)return;if(D=x.tag,D===5||D===6||D===26||D===27){c=g=x;continue e}w=w.parentNode}}c=c.return}Cg(function(){var G=g,K=Bf(l),ee=[];e:{var F=ty.get(r);if(F!==void 0){var Y=tu,de=r;switch(r){case"keypress":if(Wo(l)===0)break e;case"keydown":case"keyup":Y=ew;break;case"focusin":de="focus",Y=Ff;break;case"focusout":de="blur",Y=Ff;break;case"beforeblur":case"afterblur":Y=Ff;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=Og;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=VE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=rw;break;case Zg:case Jg:case Wg:Y=FE;break;case ey:Y=aw;break;case"scroll":case"scrollend":Y=UE;break;case"wheel":Y=lw;break;case"copy":case"cut":case"paste":Y=$E;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Ng;break;case"toggle":case"beforetoggle":Y=uw}var be=(a&4)!==0,Je=!be&&(r==="scroll"||r==="scrollend"),B=be?F!==null?F+"Capture":null:F;be=[];for(var I=G,H;I!==null;){var J=I;if(H=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||H===null||B===null||(J=cl(I,B),J!=null&&be.push(Hl(I,J,H))),Je)break;I=I.return}0<be.length&&(F=new Y(F,de,null,l,K),ee.push({event:F,listeners:be}))}}if((a&7)===0){e:{if(F=r==="mouseover"||r==="pointerover",Y=r==="mouseout"||r==="pointerout",F&&l!==If&&(de=l.relatedTarget||l.fromElement)&&(za(de)||de[Pa]))break e;if((Y||F)&&(F=K.window===K?K:(F=K.ownerDocument)?F.defaultView||F.parentWindow:window,Y?(de=l.relatedTarget||l.toElement,Y=G,de=de?za(de):null,de!==null&&(Je=o(de),be=de.tag,de!==Je||be!==5&&be!==27&&be!==6)&&(de=null)):(Y=null,de=G),Y!==de)){if(be=Og,J="onMouseLeave",B="onMouseEnter",I="mouse",(r==="pointerout"||r==="pointerover")&&(be=Ng,J="onPointerLeave",B="onPointerEnter",I="pointer"),Je=Y==null?F:ul(Y),H=de==null?F:ul(de),F=new be(J,I+"leave",Y,l,K),F.target=Je,F.relatedTarget=H,J=null,za(K)===G&&(be=new be(B,I+"enter",de,l,K),be.target=H,be.relatedTarget=Je,J=be),Je=J,Y&&de)t:{for(be=oT,B=Y,I=de,H=0,J=B;J;J=be(J))H++;J=0;for(var ve=I;ve;ve=be(ve))J++;for(;0<H-J;)B=be(B),H--;for(;0<J-H;)I=be(I),J--;for(;H--;){if(B===I||I!==null&&B===I.alternate){be=B;break t}B=be(B),I=be(I)}be=null}else be=null;Y!==null&&E_(ee,F,Y,be,!1),de!==null&&Je!==null&&E_(ee,Je,de,be,!0)}}e:{if(F=G?ul(G):window,Y=F.nodeName&&F.nodeName.toLowerCase(),Y==="select"||Y==="input"&&F.type==="file")var qe=Ug;else if(Ig(F))if(qg)qe=_w;else{qe=yw;var pe=gw}else Y=F.nodeName,!Y||Y.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?G&&zf(G.elementType)&&(qe=Ug):qe=vw;if(qe&&(qe=qe(r,G))){Bg(ee,qe,l,K);break e}pe&&pe(r,F,G),r==="focusout"&&G&&F.type==="number"&&G.memoizedProps.value!=null&&Pf(F,"number",F.value)}switch(pe=G?ul(G):window,r){case"focusin":(Ig(pe)||pe.contentEditable==="true")&&(Qa=pe,Zf=G,vl=null);break;case"focusout":vl=Zf=Qa=null;break;case"mousedown":Jf=!0;break;case"contextmenu":case"mouseup":case"dragend":Jf=!1,Kg(ee,l,K);break;case"selectionchange":if(xw)break;case"keydown":case"keyup":Kg(ee,l,K)}var ke;if($f)e:{switch(r){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else Fa?Pg(r,l)&&(De="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(De="onCompositionStart");De&&(jg&&l.locale!=="ko"&&(Fa||De!=="onCompositionStart"?De==="onCompositionEnd"&&Fa&&(ke=Rg()):(Zr=K,Vf="value"in Zr?Zr.value:Zr.textContent,Fa=!0)),pe=Fu(G,De),0<pe.length&&(De=new Lg(De,r,null,l,K),ee.push({event:De,listeners:pe}),ke?De.data=ke:(ke=zg(l),ke!==null&&(De.data=ke)))),(ke=fw?hw(r,l):dw(r,l))&&(De=Fu(G,"onBeforeInput"),0<De.length&&(pe=new Lg("onBeforeInput","beforeinput",null,l,K),ee.push({event:pe,listeners:De}),pe.data=ke)),iT(ee,r,G,l,K)}x_(ee,a)})}function Hl(r,a,l){return{instance:r,listener:a,currentTarget:l}}function Fu(r,a){for(var l=a+"Capture",c=[];r!==null;){var m=r,g=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||g===null||(m=cl(r,l),m!=null&&c.unshift(Hl(r,m,g)),m=cl(r,a),m!=null&&c.push(Hl(r,m,g))),r.tag===3)return c;r=r.return}return[]}function oT(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function E_(r,a,l,c,m){for(var g=a._reactName,x=[];l!==null&&l!==c;){var w=l,D=w.alternate,G=w.stateNode;if(w=w.tag,D!==null&&D===c)break;w!==5&&w!==26&&w!==27||G===null||(D=G,m?(G=cl(l,g),G!=null&&x.unshift(Hl(l,G,D))):m||(G=cl(l,g),G!=null&&x.push(Hl(l,G,D)))),l=l.return}x.length!==0&&r.push({event:a,listeners:x})}var uT=/\r\n?/g,cT=/\u0000|\uFFFD/g;function w_(r){return(typeof r=="string"?r:""+r).replace(uT,`
50
+ `).replace(cT,"")}function T_(r,a){return a=w_(a),w_(r)===a}function Ze(r,a,l,c,m,g){switch(l){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||Va(r,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&Va(r,""+c);break;case"className":Ko(r,"class",c);break;case"tabIndex":Ko(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Ko(r,l,c);break;case"style":Tg(r,c,g);break;case"data":if(a!=="object"){Ko(r,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||l!=="href")){r.removeAttribute(l);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(l);break}c=Zo(""+c),r.setAttribute(l,c);break;case"action":case"formAction":if(typeof c=="function"){r.setAttribute(l,"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 g=="function"&&(l==="formAction"?(a!=="input"&&Ze(r,a,"name",m.name,m,null),Ze(r,a,"formEncType",m.formEncType,m,null),Ze(r,a,"formMethod",m.formMethod,m,null),Ze(r,a,"formTarget",m.formTarget,m,null)):(Ze(r,a,"encType",m.encType,m,null),Ze(r,a,"method",m.method,m,null),Ze(r,a,"target",m.target,m,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(l);break}c=Zo(""+c),r.setAttribute(l,c);break;case"onClick":c!=null&&(r.onclick=gr);break;case"onScroll":c!=null&&Le("scroll",r);break;case"onScrollEnd":c!=null&&Le("scrollend",r);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(l=c.__html,l!=null){if(m.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"multiple":r.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":r.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){r.removeAttribute("xlink:href");break}l=Zo(""+c),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(l,""+c):r.removeAttribute(l);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":c&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":c===!0?r.setAttribute(l,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(l,c):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?r.setAttribute(l,c):r.removeAttribute(l);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?r.removeAttribute(l):r.setAttribute(l,c);break;case"popover":Le("beforetoggle",r),Le("toggle",r),Yo(r,"popover",c);break;case"xlinkActuate":pr(r,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":pr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":pr(r,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":pr(r,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":pr(r,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":pr(r,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":pr(r,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":pr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":pr(r,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":Yo(r,"is",c);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=IE.get(l)||l,Yo(r,l,c))}}function Ed(r,a,l,c,m,g){switch(l){case"style":Tg(r,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(i(61));if(l=c.__html,l!=null){if(m.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"children":typeof c=="string"?Va(r,c):(typeof c=="number"||typeof c=="bigint")&&Va(r,""+c);break;case"onScroll":c!=null&&Le("scroll",r);break;case"onScrollEnd":c!=null&&Le("scrollend",r);break;case"onClick":c!=null&&(r.onclick=gr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gg.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(m=l.endsWith("Capture"),a=l.slice(2,m?l.length-7:void 0),g=r[Xt]||null,g=g!=null?g[l]:null,typeof g=="function"&&r.removeEventListener(a,g,m),typeof c=="function")){typeof g!="function"&&g!==null&&(l in r?r[l]=null:r.hasAttribute(l)&&r.removeAttribute(l)),r.addEventListener(a,c,m);break e}l in r?r[l]=c:c===!0?r.setAttribute(l,""):Yo(r,l,c)}}}function jt(r,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",r),Le("load",r);var c=!1,m=!1,g;for(g in l)if(l.hasOwnProperty(g)){var x=l[g];if(x!=null)switch(g){case"src":c=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Ze(r,a,g,x,l,null)}}m&&Ze(r,a,"srcSet",l.srcSet,l,null),c&&Ze(r,a,"src",l.src,l,null);return;case"input":Le("invalid",r);var w=g=x=m=null,D=null,G=null;for(c in l)if(l.hasOwnProperty(c)){var K=l[c];if(K!=null)switch(c){case"name":m=K;break;case"type":x=K;break;case"checked":D=K;break;case"defaultChecked":G=K;break;case"value":g=K;break;case"defaultValue":w=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,a));break;default:Ze(r,a,c,K,l,null)}}xg(r,g,w,D,G,x,m,!1);return;case"select":Le("invalid",r),c=x=g=null;for(m in l)if(l.hasOwnProperty(m)&&(w=l[m],w!=null))switch(m){case"value":g=w;break;case"defaultValue":x=w;break;case"multiple":c=w;default:Ze(r,a,m,w,l,null)}a=g,l=x,r.multiple=!!c,a!=null?qa(r,!!c,a,!1):l!=null&&qa(r,!!c,l,!0);return;case"textarea":Le("invalid",r),g=m=c=null;for(x in l)if(l.hasOwnProperty(x)&&(w=l[x],w!=null))switch(x){case"value":c=w;break;case"defaultValue":m=w;break;case"children":g=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(i(91));break;default:Ze(r,a,x,w,l,null)}Eg(r,c,m,g);return;case"option":for(D in l)if(l.hasOwnProperty(D)&&(c=l[D],c!=null))switch(D){case"selected":r.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:Ze(r,a,D,c,l,null)}return;case"dialog":Le("beforetoggle",r),Le("toggle",r),Le("cancel",r),Le("close",r);break;case"iframe":case"object":Le("load",r);break;case"video":case"audio":for(c=0;c<Vl.length;c++)Le(Vl[c],r);break;case"image":Le("error",r),Le("load",r);break;case"details":Le("toggle",r);break;case"embed":case"source":case"link":Le("error",r),Le("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(G in l)if(l.hasOwnProperty(G)&&(c=l[G],c!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:Ze(r,a,G,c,l,null)}return;default:if(zf(a)){for(K in l)l.hasOwnProperty(K)&&(c=l[K],c!==void 0&&Ed(r,a,K,c,l,void 0));return}}for(w in l)l.hasOwnProperty(w)&&(c=l[w],c!=null&&Ze(r,a,w,c,l,null))}function fT(r,a,l,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,g=null,x=null,w=null,D=null,G=null,K=null;for(Y in l){var ee=l[Y];if(l.hasOwnProperty(Y)&&ee!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":D=ee;default:c.hasOwnProperty(Y)||Ze(r,a,Y,null,c,ee)}}for(var F in c){var Y=c[F];if(ee=l[F],c.hasOwnProperty(F)&&(Y!=null||ee!=null))switch(F){case"type":g=Y;break;case"name":m=Y;break;case"checked":G=Y;break;case"defaultChecked":K=Y;break;case"value":x=Y;break;case"defaultValue":w=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,a));break;default:Y!==ee&&Ze(r,a,F,Y,c,ee)}}Mf(r,x,w,D,G,K,g,m);return;case"select":Y=x=w=F=null;for(g in l)if(D=l[g],l.hasOwnProperty(g)&&D!=null)switch(g){case"value":break;case"multiple":Y=D;default:c.hasOwnProperty(g)||Ze(r,a,g,null,c,D)}for(m in c)if(g=c[m],D=l[m],c.hasOwnProperty(m)&&(g!=null||D!=null))switch(m){case"value":F=g;break;case"defaultValue":w=g;break;case"multiple":x=g;default:g!==D&&Ze(r,a,m,g,c,D)}a=w,l=x,c=Y,F!=null?qa(r,!!l,F,!1):!!c!=!!l&&(a!=null?qa(r,!!l,a,!0):qa(r,!!l,l?[]:"",!1));return;case"textarea":Y=F=null;for(w in l)if(m=l[w],l.hasOwnProperty(w)&&m!=null&&!c.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ze(r,a,w,null,c,m)}for(x in c)if(m=c[x],g=l[x],c.hasOwnProperty(x)&&(m!=null||g!=null))switch(x){case"value":F=m;break;case"defaultValue":Y=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(i(91));break;default:m!==g&&Ze(r,a,x,m,c,g)}Sg(r,F,Y);return;case"option":for(var de in l)if(F=l[de],l.hasOwnProperty(de)&&F!=null&&!c.hasOwnProperty(de))switch(de){case"selected":r.selected=!1;break;default:Ze(r,a,de,null,c,F)}for(D in c)if(F=c[D],Y=l[D],c.hasOwnProperty(D)&&F!==Y&&(F!=null||Y!=null))switch(D){case"selected":r.selected=F&&typeof F!="function"&&typeof F!="symbol";break;default:Ze(r,a,D,F,c,Y)}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 be in l)F=l[be],l.hasOwnProperty(be)&&F!=null&&!c.hasOwnProperty(be)&&Ze(r,a,be,null,c,F);for(G in c)if(F=c[G],Y=l[G],c.hasOwnProperty(G)&&F!==Y&&(F!=null||Y!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(i(137,a));break;default:Ze(r,a,G,F,c,Y)}return;default:if(zf(a)){for(var Je in l)F=l[Je],l.hasOwnProperty(Je)&&F!==void 0&&!c.hasOwnProperty(Je)&&Ed(r,a,Je,void 0,c,F);for(K in c)F=c[K],Y=l[K],!c.hasOwnProperty(K)||F===Y||F===void 0&&Y===void 0||Ed(r,a,K,F,c,Y);return}}for(var B in l)F=l[B],l.hasOwnProperty(B)&&F!=null&&!c.hasOwnProperty(B)&&Ze(r,a,B,null,c,F);for(ee in c)F=c[ee],Y=l[ee],!c.hasOwnProperty(ee)||F===Y||F==null&&Y==null||Ze(r,a,ee,F,c,Y)}function k_(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function hT(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,l=performance.getEntriesByType("resource"),c=0;c<l.length;c++){var m=l[c],g=m.transferSize,x=m.initiatorType,w=m.duration;if(g&&w&&k_(x)){for(x=0,w=m.responseEnd,c+=1;c<l.length;c++){var D=l[c],G=D.startTime;if(G>w)break;var K=D.transferSize,ee=D.initiatorType;K&&k_(ee)&&(D=D.responseEnd,x+=K*(D<w?1:(w-G)/(D-G)))}if(--c,a+=8*(g+x)/(m.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var wd=null,Td=null;function Qu(r){return r.nodeType===9?r:r.ownerDocument}function C_(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function R_(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function kd(r,a){return r==="textarea"||r==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Cd=null;function dT(){var r=window.event;return r&&r.type==="popstate"?r===Cd?!1:(Cd=r,!0):(Cd=null,!1)}var A_=typeof setTimeout=="function"?setTimeout:void 0,mT=typeof clearTimeout=="function"?clearTimeout:void 0,O_=typeof Promise=="function"?Promise:void 0,pT=typeof queueMicrotask=="function"?queueMicrotask:typeof O_<"u"?function(r){return O_.resolve(null).then(r).catch(gT)}:A_;function gT(r){setTimeout(function(){throw r})}function mi(r){return r==="head"}function L_(r,a){var l=a,c=0;do{var m=l.nextSibling;if(r.removeChild(l),m&&m.nodeType===8)if(l=m.data,l==="/$"||l==="/&"){if(c===0){r.removeChild(m),_s(a);return}c--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")c++;else if(l==="html")Gl(r.ownerDocument.documentElement);else if(l==="head"){l=r.ownerDocument.head,Gl(l);for(var g=l.firstChild;g;){var x=g.nextSibling,w=g.nodeName;g[ol]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&g.rel.toLowerCase()==="stylesheet"||l.removeChild(g),g=x}}else l==="body"&&Gl(r.ownerDocument.body);l=m}while(l);_s(a)}function N_(r,a){var l=r;r=0;do{var c=l.nextSibling;if(l.nodeType===1?a?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(a?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),c&&c.nodeType===8)if(l=c.data,l==="/$"){if(r===0)break;r--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||r++;l=c}while(l)}function Rd(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Rd(l),jf(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}r.removeChild(l)}}function yT(r,a,l,c){for(;r.nodeType===1;){var m=l;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(c){if(!r[ol])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(g=r.getAttribute("rel"),g==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(g!==m.rel||r.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||r.getAttribute("title")!==(m.title==null?null:m.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(g=r.getAttribute("src"),(g!==(m.src==null?null:m.src)||r.getAttribute("type")!==(m.type==null?null:m.type)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&g&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var g=m.name==null?null:""+m.name;if(m.type==="hidden"&&r.getAttribute("name")===g)return r}else return r;if(r=Ln(r.nextSibling),r===null)break}return null}function vT(r,a,l){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=Ln(r.nextSibling),r===null))return null;return r}function j_(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Ln(r.nextSibling),r===null))return null;return r}function Ad(r){return r.data==="$?"||r.data==="$~"}function Od(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function _T(r,a){var l=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||l.readyState!=="loading")a();else{var c=function(){a(),l.removeEventListener("DOMContentLoaded",c)};l.addEventListener("DOMContentLoaded",c),r._reactRetry=c}}function Ln(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var Ld=null;function D_(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"||l==="/&"){if(a===0)return Ln(r.nextSibling);a--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++}r=r.nextSibling}return null}function M_(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(a===0)return r;a--}else l!=="/$"&&l!=="/&"||a++}r=r.previousSibling}return null}function P_(r,a,l){switch(a=Qu(l),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function Gl(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);jf(r)}var Nn=new Map,z_=new Set;function $u(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Nr=te.d;te.d={f:bT,r:xT,D:ST,C:ET,L:wT,m:TT,X:CT,S:kT,M:RT};function bT(){var r=Nr.f(),a=Iu();return r||a}function xT(r){var a=Ia(r);a!==null&&a.tag===5&&a.type==="form"?ev(a):Nr.r(r)}var gs=typeof document>"u"?null:document;function I_(r,a,l){var c=gs;if(c&&typeof a=="string"&&a){var m=wn(a);m='link[rel="'+r+'"][href="'+m+'"]',typeof l=="string"&&(m+='[crossorigin="'+l+'"]'),z_.has(m)||(z_.add(m),r={rel:r,crossOrigin:l,href:a},c.querySelector(m)===null&&(a=c.createElement("link"),jt(a,"link",r),wt(a),c.head.appendChild(a)))}}function ST(r){Nr.D(r),I_("dns-prefetch",r,null)}function ET(r,a){Nr.C(r,a),I_("preconnect",r,a)}function wT(r,a,l){Nr.L(r,a,l);var c=gs;if(c&&r&&a){var m='link[rel="preload"][as="'+wn(a)+'"]';a==="image"&&l&&l.imageSrcSet?(m+='[imagesrcset="'+wn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(m+='[imagesizes="'+wn(l.imageSizes)+'"]')):m+='[href="'+wn(r)+'"]';var g=m;switch(a){case"style":g=ys(r);break;case"script":g=vs(r)}Nn.has(g)||(r=p({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:r,as:a},l),Nn.set(g,r),c.querySelector(m)!==null||a==="style"&&c.querySelector(Fl(g))||a==="script"&&c.querySelector(Ql(g))||(a=c.createElement("link"),jt(a,"link",r),wt(a),c.head.appendChild(a)))}}function TT(r,a){Nr.m(r,a);var l=gs;if(l&&r){var c=a&&typeof a.as=="string"?a.as:"script",m='link[rel="modulepreload"][as="'+wn(c)+'"][href="'+wn(r)+'"]',g=m;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=vs(r)}if(!Nn.has(g)&&(r=p({rel:"modulepreload",href:r},a),Nn.set(g,r),l.querySelector(m)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ql(g)))return}c=l.createElement("link"),jt(c,"link",r),wt(c),l.head.appendChild(c)}}}function kT(r,a,l){Nr.S(r,a,l);var c=gs;if(c&&r){var m=Ba(c).hoistableStyles,g=ys(r);a=a||"default";var x=m.get(g);if(!x){var w={loading:0,preload:null};if(x=c.querySelector(Fl(g)))w.loading=5;else{r=p({rel:"stylesheet",href:r,"data-precedence":a},l),(l=Nn.get(g))&&Nd(r,l);var D=x=c.createElement("link");wt(D),jt(D,"link",r),D._p=new Promise(function(G,K){D.onload=G,D.onerror=K}),D.addEventListener("load",function(){w.loading|=1}),D.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Yu(x,a,c)}x={type:"stylesheet",instance:x,count:1,state:w},m.set(g,x)}}}function CT(r,a){Nr.X(r,a);var l=gs;if(l&&r){var c=Ba(l).hoistableScripts,m=vs(r),g=c.get(m);g||(g=l.querySelector(Ql(m)),g||(r=p({src:r,async:!0},a),(a=Nn.get(m))&&jd(r,a),g=l.createElement("script"),wt(g),jt(g,"link",r),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(m,g))}}function RT(r,a){Nr.M(r,a);var l=gs;if(l&&r){var c=Ba(l).hoistableScripts,m=vs(r),g=c.get(m);g||(g=l.querySelector(Ql(m)),g||(r=p({src:r,async:!0,type:"module"},a),(a=Nn.get(m))&&jd(r,a),g=l.createElement("script"),wt(g),jt(g,"link",r),l.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(m,g))}}function B_(r,a,l,c){var m=(m=he.current)?$u(m):null;if(!m)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=ys(l.href),l=Ba(m).hoistableStyles,c=l.get(a),c||(c={type:"style",instance:null,count:0,state:null},l.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){r=ys(l.href);var g=Ba(m).hoistableStyles,x=g.get(r);if(x||(m=m.ownerDocument||m,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(r,x),(g=m.querySelector(Fl(r)))&&!g._p&&(x.instance=g,x.state.loading=5),Nn.has(r)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Nn.set(r,l),g||AT(m,r,l,x.state))),a&&c===null)throw Error(i(528,""));return x}if(a&&c!==null)throw Error(i(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=vs(l),l=Ba(m).hoistableScripts,c=l.get(a),c||(c={type:"script",instance:null,count:0,state:null},l.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function ys(r){return'href="'+wn(r)+'"'}function Fl(r){return'link[rel="stylesheet"]['+r+"]"}function U_(r){return p({},r,{"data-precedence":r.precedence,precedence:null})}function AT(r,a,l,c){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=r.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),jt(a,"link",l),wt(a),r.head.appendChild(a))}function vs(r){return'[src="'+wn(r)+'"]'}function Ql(r){return"script[async]"+r}function q_(r,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var c=r.querySelector('style[data-href~="'+wn(l.href)+'"]');if(c)return a.instance=c,wt(c),c;var m=p({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return c=(r.ownerDocument||r).createElement("style"),wt(c),jt(c,"style",m),Yu(c,l.precedence,r),a.instance=c;case"stylesheet":m=ys(l.href);var g=r.querySelector(Fl(m));if(g)return a.state.loading|=4,a.instance=g,wt(g),g;c=U_(l),(m=Nn.get(m))&&Nd(c,m),g=(r.ownerDocument||r).createElement("link"),wt(g);var x=g;return x._p=new Promise(function(w,D){x.onload=w,x.onerror=D}),jt(g,"link",c),a.state.loading|=4,Yu(g,l.precedence,r),a.instance=g;case"script":return g=vs(l.src),(m=r.querySelector(Ql(g)))?(a.instance=m,wt(m),m):(c=l,(m=Nn.get(g))&&(c=p({},l),jd(c,m)),r=r.ownerDocument||r,m=r.createElement("script"),wt(m),jt(m,"link",c),r.head.appendChild(m),a.instance=m);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,Yu(c,l.precedence,r));return a.instance}function Yu(r,a,l){for(var c=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=c.length?c[c.length-1]:null,g=m,x=0;x<c.length;x++){var w=c[x];if(w.dataset.precedence===a)g=w;else if(g!==m)break}g?g.parentNode.insertBefore(r,g.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(r,a.firstChild))}function Nd(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function jd(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var Ku=null;function V_(r,a,l){if(Ku===null){var c=new Map,m=Ku=new Map;m.set(l,c)}else m=Ku,c=m.get(l),c||(c=new Map,m.set(l,c));if(c.has(r))return c;for(c.set(r,null),l=l.getElementsByTagName(r),m=0;m<l.length;m++){var g=l[m];if(!(g[ol]||g[At]||r==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var x=g.getAttribute(a)||"";x=r+x;var w=c.get(x);w?w.push(g):c.set(x,[g])}}return c}function H_(r,a,l){r=r.ownerDocument||r,r.head.insertBefore(l,a==="title"?r.querySelector("head > title"):null)}function OT(r,a,l){if(l===1||a.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return r=a.disabled,typeof a.precedence=="string"&&r==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function G_(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function LT(r,a,l,c){if(l.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var m=ys(c.href),g=a.querySelector(Fl(m));if(g){a=g._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=Xu.bind(r),a.then(r,r)),l.state.loading|=4,l.instance=g,wt(g);return}g=a.ownerDocument||a,c=U_(c),(m=Nn.get(m))&&Nd(c,m),g=g.createElement("link"),wt(g);var x=g;x._p=new Promise(function(w,D){x.onload=w,x.onerror=D}),jt(g,"link",c),l.instance=g}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(r.count++,l=Xu.bind(r),a.addEventListener("load",l),a.addEventListener("error",l))}}var Dd=0;function NT(r,a){return r.stylesheets&&r.count===0&&Ju(r,r.stylesheets),0<r.count||0<r.imgCount?function(l){var c=setTimeout(function(){if(r.stylesheets&&Ju(r,r.stylesheets),r.unsuspend){var g=r.unsuspend;r.unsuspend=null,g()}},6e4+a);0<r.imgBytes&&Dd===0&&(Dd=62500*hT());var m=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Ju(r,r.stylesheets),r.unsuspend)){var g=r.unsuspend;r.unsuspend=null,g()}},(r.imgBytes>Dd?50:800)+a);return r.unsuspend=l,function(){r.unsuspend=null,clearTimeout(c),clearTimeout(m)}}:null}function Xu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ju(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Zu=null;function Ju(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Zu=new Map,a.forEach(jT,r),Zu=null,Xu.call(r))}function jT(r,a){if(!(a.state.loading&4)){var l=Zu.get(r);if(l)var c=l.get(null);else{l=new Map,Zu.set(r,l);for(var m=r.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<m.length;g++){var x=m[g];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(l.set(x.dataset.precedence,x),c=x)}c&&l.set(null,c)}m=a.instance,x=m.getAttribute("data-precedence"),g=l.get(x)||c,g===c&&l.set(null,m),l.set(x,m),this.count++,c=Xu.bind(this),m.addEventListener("load",c),m.addEventListener("error",c),g?g.parentNode.insertBefore(m,g.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(m,r.firstChild)),a.state.loading|=4}}var $l={$$typeof:L,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function DT(r,a,l,c,m,g,x,w,D){this.tag=1,this.containerInfo=r,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=Af(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Af(0),this.hiddenUpdates=Af(null),this.identifierPrefix=c,this.onUncaughtError=m,this.onCaughtError=g,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=D,this.incompleteTransitions=new Map}function F_(r,a,l,c,m,g,x,w,D,G,K,ee){return r=new DT(r,a,l,x,D,G,K,ee,w),a=1,g===!0&&(a|=24),g=hn(3,null,null,a),r.current=g,g.stateNode=r,a=dh(),a.refCount++,r.pooledCache=a,a.refCount++,g.memoizedState={element:c,isDehydrated:l,cache:a},yh(g),r}function Q_(r){return r?(r=Ka,r):Ka}function $_(r,a,l,c,m,g){m=Q_(m),c.context===null?c.context=m:c.pendingContext=m,c=ri(a),c.payload={element:l},g=g===void 0?null:g,g!==null&&(c.callback=g),l=ii(r,c,a),l!==null&&(nn(l,r,a),Tl(l,r,a))}function Y_(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<a?l:a}}function Md(r,a){Y_(r,a),(r=r.alternate)&&Y_(r,a)}function K_(r){if(r.tag===13||r.tag===31){var a=Qi(r,67108864);a!==null&&nn(a,r,67108864),Md(r,67108864)}}function X_(r){if(r.tag===13||r.tag===31){var a=yn();a=Of(a);var l=Qi(r,a);l!==null&&nn(l,r,a),Md(r,a)}}var Wu=!0;function MT(r,a,l,c){var m=q.T;q.T=null;var g=te.p;try{te.p=2,Pd(r,a,l,c)}finally{te.p=g,q.T=m}}function PT(r,a,l,c){var m=q.T;q.T=null;var g=te.p;try{te.p=8,Pd(r,a,l,c)}finally{te.p=g,q.T=m}}function Pd(r,a,l,c){if(Wu){var m=zd(c);if(m===null)Sd(r,a,c,ec,l),J_(r,c);else if(IT(m,r,a,l,c))c.stopPropagation();else if(J_(r,c),a&4&&-1<zT.indexOf(r)){for(;m!==null;){var g=Ia(m);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var x=qi(g.pendingLanes);if(x!==0){var w=g;for(w.pendingLanes|=2,w.entangledLanes|=2;x;){var D=1<<31-We(x);w.entanglements[1]|=D,x&=~D}nr(g),(He&6)===0&&(Pu=Be()+500,ql(0))}}break;case 31:case 13:w=Qi(g,2),w!==null&&nn(w,g,2),Iu(),Md(g,2)}if(g=zd(c),g===null&&Sd(r,a,c,ec,l),g===m)break;m=g}m!==null&&c.stopPropagation()}else Sd(r,a,c,null,l)}}function zd(r){return r=Bf(r),Id(r)}var ec=null;function Id(r){if(ec=null,r=za(r),r!==null){var a=o(r);if(a===null)r=null;else{var l=a.tag;if(l===13){if(r=u(a),r!==null)return r;r=null}else if(l===31){if(r=f(a),r!==null)return r;r=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return ec=r,null}function Z_(r){switch(r){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(Ut()){case Z:return 2;case oe:return 8;case xe:case Ae:return 32;case Ge:return 268435456;default:return 32}default:return 32}}var Bd=!1,pi=null,gi=null,yi=null,Yl=new Map,Kl=new Map,vi=[],zT="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 J_(r,a){switch(r){case"focusin":case"focusout":pi=null;break;case"dragenter":case"dragleave":gi=null;break;case"mouseover":case"mouseout":yi=null;break;case"pointerover":case"pointerout":Yl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kl.delete(a.pointerId)}}function Xl(r,a,l,c,m,g){return r===null||r.nativeEvent!==g?(r={blockedOn:a,domEventName:l,eventSystemFlags:c,nativeEvent:g,targetContainers:[m]},a!==null&&(a=Ia(a),a!==null&&K_(a)),r):(r.eventSystemFlags|=c,a=r.targetContainers,m!==null&&a.indexOf(m)===-1&&a.push(m),r)}function IT(r,a,l,c,m){switch(a){case"focusin":return pi=Xl(pi,r,a,l,c,m),!0;case"dragenter":return gi=Xl(gi,r,a,l,c,m),!0;case"mouseover":return yi=Xl(yi,r,a,l,c,m),!0;case"pointerover":var g=m.pointerId;return Yl.set(g,Xl(Yl.get(g)||null,r,a,l,c,m)),!0;case"gotpointercapture":return g=m.pointerId,Kl.set(g,Xl(Kl.get(g)||null,r,a,l,c,m)),!0}return!1}function W_(r){var a=za(r.target);if(a!==null){var l=o(a);if(l!==null){if(a=l.tag,a===13){if(a=u(l),a!==null){r.blockedOn=a,dg(r.priority,function(){X_(l)});return}}else if(a===31){if(a=f(l),a!==null){r.blockedOn=a,dg(r.priority,function(){X_(l)});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function tc(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var l=zd(r.nativeEvent);if(l===null){l=r.nativeEvent;var c=new l.constructor(l.type,l);If=c,l.target.dispatchEvent(c),If=null}else return a=Ia(l),a!==null&&K_(a),r.blockedOn=l,!1;a.shift()}return!0}function e0(r,a,l){tc(r)&&l.delete(a)}function BT(){Bd=!1,pi!==null&&tc(pi)&&(pi=null),gi!==null&&tc(gi)&&(gi=null),yi!==null&&tc(yi)&&(yi=null),Yl.forEach(e0),Kl.forEach(e0)}function nc(r,a){r.blockedOn===a&&(r.blockedOn=null,Bd||(Bd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,BT)))}var rc=null;function t0(r){rc!==r&&(rc=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){rc===r&&(rc=null);for(var a=0;a<r.length;a+=3){var l=r[a],c=r[a+1],m=r[a+2];if(typeof c!="function"){if(Id(c||l)===null)continue;break}var g=Ia(l);g!==null&&(r.splice(a,3),a-=3,zh(g,{pending:!0,data:m,method:l.method,action:c},c,m))}}))}function _s(r){function a(D){return nc(D,r)}pi!==null&&nc(pi,r),gi!==null&&nc(gi,r),yi!==null&&nc(yi,r),Yl.forEach(a),Kl.forEach(a);for(var l=0;l<vi.length;l++){var c=vi[l];c.blockedOn===r&&(c.blockedOn=null)}for(;0<vi.length&&(l=vi[0],l.blockedOn===null);)W_(l),l.blockedOn===null&&vi.shift();if(l=(r.ownerDocument||r).$$reactFormReplay,l!=null)for(c=0;c<l.length;c+=3){var m=l[c],g=l[c+1],x=m[Xt]||null;if(typeof g=="function")x||t0(l);else if(x){var w=null;if(g&&g.hasAttribute("formAction")){if(m=g,x=g[Xt]||null)w=x.formAction;else if(Id(m)!==null)continue}else w=x.action;typeof w=="function"?l[c+1]=w:(l.splice(c,3),c-=3),t0(l)}}}function n0(){function r(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(x){return m=x})},focusReset:"manual",scroll:"manual"})}function a(){m!==null&&(m(),m=null),c||setTimeout(l,20)}function l(){if(!c&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,m=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(l,100),function(){c=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),m!==null&&(m(),m=null)}}}function Ud(r){this._internalRoot=r}ic.prototype.render=Ud.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var l=a.current,c=yn();$_(l,c,r,a,null,null)},ic.prototype.unmount=Ud.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;$_(r.current,2,null,r,null,null),Iu(),a[Pa]=null}};function ic(r){this._internalRoot=r}ic.prototype.unstable_scheduleHydration=function(r){if(r){var a=hg();r={blockedOn:null,target:r,priority:a};for(var l=0;l<vi.length&&a!==0&&a<vi[l].priority;l++);vi.splice(l,0,r),l===0&&W_(r)}};var r0=t.version;if(r0!=="19.2.0")throw Error(i(527,r0,"19.2.0"));te.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=d(a),r=r!==null?y(r):null,r=r===null?null:r.stateNode,r};var UT={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:q,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ac.isDisabled&&ac.supportsFiber)try{qt=ac.inject(UT),_t=ac}catch{}}return Jl.createRoot=function(r,a){if(!s(r))throw Error(i(299));var l=!1,c="",m=cv,g=fv,x=hv;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(g=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError)),a=F_(r,1,!1,null,null,l,c,null,m,g,x,n0),r[Pa]=a.current,xd(r),new Ud(a)},Jl.hydrateRoot=function(r,a,l){if(!s(r))throw Error(i(299));var c=!1,m="",g=cv,x=fv,w=hv,D=null;return l!=null&&(l.unstable_strictMode===!0&&(c=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(g=l.onUncaughtError),l.onCaughtError!==void 0&&(x=l.onCaughtError),l.onRecoverableError!==void 0&&(w=l.onRecoverableError),l.formState!==void 0&&(D=l.formState)),a=F_(r,1,!0,a,l??null,c,m,D,g,x,w,n0),a.context=Q_(null),l=a.current,c=yn(),c=Of(c),m=ri(c),m.callback=null,ii(l,m,c),l=c,a.current.lanes=l,ll(a,l),nr(a),r[Pa]=a.current,xd(r),new ic(a)},Jl.version="19.2.0",Jl}var m0;function ZT(){if(m0)return Hd.exports;m0=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Hd.exports=XT(),Hd.exports}var JT=ZT(),Ws=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},WT={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Si,vp,gx,ek=(gx=class{constructor(){ye(this,Si,WT);ye(this,vp,!1)}setTimeoutProvider(e){ce(this,Si,e)}setTimeout(e,t){return M(this,Si).setTimeout(e,t)}clearTimeout(e){M(this,Si).clearTimeout(e)}setInterval(e,t){return M(this,Si).setInterval(e,t)}clearInterval(e){M(this,Si).clearInterval(e)}},Si=new WeakMap,vp=new WeakMap,gx),oa=new ek;function tk(e){setTimeout(e,0)}var wa=typeof window>"u"||"Deno"in globalThis;function Ft(){}function nk(e,t){return typeof e=="function"?e(t):e}function Dm(e){return typeof e=="number"&&e>=0&&e!==1/0}function Rx(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ni(e,t){return typeof e=="function"?e(t):e}function Pn(e,t){return typeof e=="function"?e(t):e}function p0(e,t){const{type:n="all",exact:i,fetchStatus:s,predicate:o,queryKey:u,stale:f}=e;if(u){if(i){if(t.queryHash!==bp(u,t.options))return!1}else if(!bo(t.queryKey,u))return!1}if(n!=="all"){const h=t.isActive();if(n==="active"&&!h||n==="inactive"&&h)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||s&&s!==t.state.fetchStatus||o&&!o(t))}function g0(e,t){const{exact:n,status:i,predicate:s,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Ta(t.options.mutationKey)!==Ta(o))return!1}else if(!bo(t.options.mutationKey,o))return!1}return!(i&&t.state.status!==i||s&&!s(t))}function bp(e,t){return((t==null?void 0:t.queryKeyHashFn)||Ta)(e)}function Ta(e){return JSON.stringify(e,(t,n)=>Mm(n)?Object.keys(n).sort().reduce((i,s)=>(i[s]=n[s],i),{}):n)}function bo(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>bo(e[n],t[n])):!1}var rk=Object.prototype.hasOwnProperty;function Ax(e,t){if(e===t)return e;const n=y0(e)&&y0(t);if(!n&&!(Mm(e)&&Mm(t)))return t;const s=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),u=o.length,f=n?new Array(u):{};let h=0;for(let d=0;d<u;d++){const y=n?d:o[d],p=e[y],v=t[y];if(p===v){f[y]=p,(n?d<s:rk.call(e,y))&&h++;continue}if(p===null||v===null||typeof p!="object"||typeof v!="object"){f[y]=v;continue}const _=Ax(p,v);f[y]=_,_===p&&h++}return s===u&&h===s?e:f}function Nc(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function y0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Mm(e){if(!v0(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!v0(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function v0(e){return Object.prototype.toString.call(e)==="[object Object]"}function ik(e){return new Promise(t=>{oa.setTimeout(t,e)})}function Pm(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ax(e,t):t}function ak(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function sk(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var Hr=Symbol();function Ox(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Hr?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Lx(e,t){return typeof e=="function"?e(...t):!!e}var ca,Ei,Ms,yx,lk=(yx=class extends Ws{constructor(){super();ye(this,ca);ye(this,Ei);ye(this,Ms);ce(this,Ms,t=>{if(!wa&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){M(this,Ei)||this.setEventListener(M(this,Ms))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,Ei))==null||t.call(this),ce(this,Ei,void 0))}setEventListener(t){var n;ce(this,Ms,t),(n=M(this,Ei))==null||n.call(this),ce(this,Ei,t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(t){M(this,ca)!==t&&(ce(this,ca,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof M(this,ca)=="boolean"?M(this,ca):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ca=new WeakMap,Ei=new WeakMap,Ms=new WeakMap,yx),xp=new lk;function zm(){let e,t;const n=new Promise((s,o)=>{e=s,t=o});n.status="pending",n.catch(()=>{});function i(s){Object.assign(n,s),delete n.resolve,delete n.reject}return n.resolve=s=>{i({status:"fulfilled",value:s}),e(s)},n.reject=s=>{i({status:"rejected",reason:s}),t(s)},n}var ok=tk;function uk(){let e=[],t=0,n=f=>{f()},i=f=>{f()},s=ok;const o=f=>{t?e.push(f):s(()=>{n(f)})},u=()=>{const f=e;e=[],f.length&&s(()=>{i(()=>{f.forEach(h=>{n(h)})})})};return{batch:f=>{let h;t++;try{h=f()}finally{t--,t||u()}return h},batchCalls:f=>(...h)=>{o(()=>{f(...h)})},schedule:o,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{i=f},setScheduler:f=>{s=f}}}var St=uk(),Ps,wi,zs,vx,ck=(vx=class extends Ws{constructor(){super();ye(this,Ps,!0);ye(this,wi);ye(this,zs);ce(this,zs,t=>{if(!wa&&window.addEventListener){const n=()=>t(!0),i=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",i)}}})}onSubscribe(){M(this,wi)||this.setEventListener(M(this,zs))}onUnsubscribe(){var t;this.hasListeners()||((t=M(this,wi))==null||t.call(this),ce(this,wi,void 0))}setEventListener(t){var n;ce(this,zs,t),(n=M(this,wi))==null||n.call(this),ce(this,wi,t(this.setOnline.bind(this)))}setOnline(t){M(this,Ps)!==t&&(ce(this,Ps,t),this.listeners.forEach(i=>{i(t)}))}isOnline(){return M(this,Ps)}},Ps=new WeakMap,wi=new WeakMap,zs=new WeakMap,vx),jc=new ck;function fk(e){return Math.min(1e3*2**e,3e4)}function Nx(e){return(e??"online")==="online"?jc.isOnline():!0}var Im=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function jx(e){let t=!1,n=0,i;const s=zm(),o=()=>s.status!=="pending",u=E=>{var k;if(!o()){const T=new Im(E);v(T),(k=e.onCancel)==null||k.call(e,T)}},f=()=>{t=!0},h=()=>{t=!1},d=()=>xp.isFocused()&&(e.networkMode==="always"||jc.isOnline())&&e.canRun(),y=()=>Nx(e.networkMode)&&e.canRun(),p=E=>{o()||(i==null||i(),s.resolve(E))},v=E=>{o()||(i==null||i(),s.reject(E))},_=()=>new Promise(E=>{var k;i=T=>{(o()||d())&&E(T)},(k=e.onPause)==null||k.call(e)}).then(()=>{var E;i=void 0,o()||(E=e.onContinue)==null||E.call(e)}),b=()=>{if(o())return;let E;const k=n===0?e.initialPromise:void 0;try{E=k??e.fn()}catch(T){E=Promise.reject(T)}Promise.resolve(E).then(p).catch(T=>{var O;if(o())return;const R=e.retry??(wa?0:3),L=e.retryDelay??fk,z=typeof L=="function"?L(n,T):L,V=R===!0||typeof R=="number"&&n<R||typeof R=="function"&&R(n,T);if(t||!V){v(T);return}n++,(O=e.onFail)==null||O.call(e,n,T),ik(z).then(()=>d()?void 0:_()).then(()=>{t?v(T):b()})})};return{promise:s,status:()=>s.status,cancel:u,continue:()=>(i==null||i(),s),cancelRetry:f,continueRetry:h,canStart:y,start:()=>(y()?b():_().then(b),s)}}var fa,_x,Dx=(_x=class{constructor(){ye(this,fa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Dm(this.gcTime)&&ce(this,fa,oa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(wa?1/0:300*1e3))}clearGcTimeout(){M(this,fa)&&(oa.clearTimeout(M(this,fa)),ce(this,fa,void 0))}},fa=new WeakMap,_x),ha,Is,Mn,da,kt,Lo,ma,Yn,Mr,bx,hk=(bx=class extends Dx{constructor(t){super();ye(this,Yn);ye(this,ha);ye(this,Is);ye(this,Mn);ye(this,da);ye(this,kt);ye(this,Lo);ye(this,ma);ce(this,ma,!1),ce(this,Lo,t.defaultOptions),this.setOptions(t.options),this.observers=[],ce(this,da,t.client),ce(this,Mn,M(this,da).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ce(this,ha,b0(this.options)),this.state=t.state??M(this,ha),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=M(this,kt))==null?void 0:t.promise}setOptions(t){if(this.options={...M(this,Lo),...t},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=b0(this.options);n.data!==void 0&&(this.setState(_0(n.data,n.dataUpdatedAt)),ce(this,ha,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,Mn).remove(this)}setData(t,n){const i=Pm(this.state.data,t,this.options);return Re(this,Yn,Mr).call(this,{data:i,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),i}setState(t,n){Re(this,Yn,Mr).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var i,s;const n=(i=M(this,kt))==null?void 0:i.promise;return(s=M(this,kt))==null||s.cancel(t),n?n.then(Ft).catch(Ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,ha))}isActive(){return this.observers.some(t=>Pn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Hr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ni(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:!Rx(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(i=>i.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,kt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(i=>i.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=M(this,kt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),M(this,Mn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(M(this,kt)&&(M(this,ma)?M(this,kt).cancel({revert:!0}):M(this,kt).cancelRetry()),this.scheduleGc()),M(this,Mn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Re(this,Yn,Mr).call(this,{type:"invalidate"})}async fetch(t,n){var h,d,y,p,v,_,b,E,k,T,R,L;if(this.state.fetchStatus!=="idle"&&((h=M(this,kt))==null?void 0:h.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(M(this,kt))return M(this,kt).continueRetry(),M(this,kt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const z=this.observers.find(V=>V.options.queryFn);z&&this.setOptions(z.options)}const i=new AbortController,s=z=>{Object.defineProperty(z,"signal",{enumerable:!0,get:()=>(ce(this,ma,!0),i.signal)})},o=()=>{const z=Ox(this.options,n),O=(()=>{const U={client:M(this,da),queryKey:this.queryKey,meta:this.meta};return s(U),U})();return ce(this,ma,!1),this.options.persister?this.options.persister(z,O,this):z(O)},f=(()=>{const z={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:M(this,da),state:this.state,fetchFn:o};return s(z),z})();(d=this.options.behavior)==null||d.onFetch(f,this),ce(this,Is,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=f.fetchOptions)==null?void 0:y.meta))&&Re(this,Yn,Mr).call(this,{type:"fetch",meta:(p=f.fetchOptions)==null?void 0:p.meta}),ce(this,kt,jx({initialPromise:n==null?void 0:n.initialPromise,fn:f.fetchFn,onCancel:z=>{z instanceof Im&&z.revert&&this.setState({...M(this,Is),fetchStatus:"idle"}),i.abort()},onFail:(z,V)=>{Re(this,Yn,Mr).call(this,{type:"failed",failureCount:z,error:V})},onPause:()=>{Re(this,Yn,Mr).call(this,{type:"pause"})},onContinue:()=>{Re(this,Yn,Mr).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0}));try{const z=await M(this,kt).start();if(z===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(z),(_=(v=M(this,Mn).config).onSuccess)==null||_.call(v,z,this),(E=(b=M(this,Mn).config).onSettled)==null||E.call(b,z,this.state.error,this),z}catch(z){if(z instanceof Im){if(z.silent)return M(this,kt).promise;if(z.revert){if(this.state.data===void 0)throw z;return this.state.data}}throw Re(this,Yn,Mr).call(this,{type:"error",error:z}),(T=(k=M(this,Mn).config).onError)==null||T.call(k,z,this),(L=(R=M(this,Mn).config).onSettled)==null||L.call(R,this.state.data,z,this),z}finally{this.scheduleGc()}}},ha=new WeakMap,Is=new WeakMap,Mn=new WeakMap,da=new WeakMap,kt=new WeakMap,Lo=new WeakMap,ma=new WeakMap,Yn=new WeakSet,Mr=function(t){const n=i=>{switch(t.type){case"failed":return{...i,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...Mx(i.data,this.options),fetchMeta:t.meta??null};case"success":const s={...i,..._0(t.data,t.dataUpdatedAt),dataUpdateCount:i.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ce(this,Is,t.manual?s:void 0),s;case"error":const o=t.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...t.state}}};this.state=n(this.state),St.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),M(this,Mn).notify({query:this,type:"updated",action:t})})},bx);function Mx(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Nx(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function _0(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function b0(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,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 an,ze,No,Ht,pa,Bs,Pr,Ti,jo,Us,qs,ga,ya,ki,Vs,Fe,lo,Bm,Um,qm,Vm,Hm,Gm,Fm,Px,xx,dk=(xx=class extends Ws{constructor(t,n){super();ye(this,Fe);ye(this,an);ye(this,ze);ye(this,No);ye(this,Ht);ye(this,pa);ye(this,Bs);ye(this,Pr);ye(this,Ti);ye(this,jo);ye(this,Us);ye(this,qs);ye(this,ga);ye(this,ya);ye(this,ki);ye(this,Vs,new Set);this.options=n,ce(this,an,t),ce(this,Ti,null),ce(this,Pr,zm()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(M(this,ze).addObserver(this),x0(M(this,ze),this.options)?Re(this,Fe,lo).call(this):this.updateResult(),Re(this,Fe,Vm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qm(M(this,ze),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qm(M(this,ze),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Re(this,Fe,Hm).call(this),Re(this,Fe,Gm).call(this),M(this,ze).removeObserver(this)}setOptions(t){const n=this.options,i=M(this,ze);if(this.options=M(this,an).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Pn(this.options.enabled,M(this,ze))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Re(this,Fe,Fm).call(this),M(this,ze).setOptions(this.options),n._defaulted&&!Nc(this.options,n)&&M(this,an).getQueryCache().notify({type:"observerOptionsUpdated",query:M(this,ze),observer:this});const s=this.hasListeners();s&&S0(M(this,ze),i,this.options,n)&&Re(this,Fe,lo).call(this),this.updateResult(),s&&(M(this,ze)!==i||Pn(this.options.enabled,M(this,ze))!==Pn(n.enabled,M(this,ze))||Ni(this.options.staleTime,M(this,ze))!==Ni(n.staleTime,M(this,ze)))&&Re(this,Fe,Bm).call(this);const o=Re(this,Fe,Um).call(this);s&&(M(this,ze)!==i||Pn(this.options.enabled,M(this,ze))!==Pn(n.enabled,M(this,ze))||o!==M(this,ki))&&Re(this,Fe,qm).call(this,o)}getOptimisticResult(t){const n=M(this,an).getQueryCache().build(M(this,an),t),i=this.createResult(n,t);return pk(this,i)&&(ce(this,Ht,i),ce(this,Bs,this.options),ce(this,pa,M(this,ze).state)),i}getCurrentResult(){return M(this,Ht)}trackResult(t,n){return new Proxy(t,{get:(i,s)=>(this.trackProp(s),n==null||n(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&M(this,Pr).status==="pending"&&M(this,Pr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(i,s))})}trackProp(t){M(this,Vs).add(t)}getCurrentQuery(){return M(this,ze)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=M(this,an).defaultQueryOptions(t),i=M(this,an).getQueryCache().build(M(this,an),n);return i.fetch().then(()=>this.createResult(i,n))}fetch(t){return Re(this,Fe,lo).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),M(this,Ht)))}createResult(t,n){var ne;const i=M(this,ze),s=this.options,o=M(this,Ht),u=M(this,pa),f=M(this,Bs),d=t!==i?t.state:M(this,No),{state:y}=t;let p={...y},v=!1,_;if(n._optimisticResults){const N=this.hasListeners(),Q=!N&&x0(t,n),re=N&&S0(t,i,n,s);(Q||re)&&(p={...p,...Mx(y.data,t.options)}),n._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:E,status:k}=p;_=p.data;let T=!1;if(n.placeholderData!==void 0&&_===void 0&&k==="pending"){let N;o!=null&&o.isPlaceholderData&&n.placeholderData===(f==null?void 0:f.placeholderData)?(N=o.data,T=!0):N=typeof n.placeholderData=="function"?n.placeholderData((ne=M(this,qs))==null?void 0:ne.state.data,M(this,qs)):n.placeholderData,N!==void 0&&(k="success",_=Pm(o==null?void 0:o.data,N,n),v=!0)}if(n.select&&_!==void 0&&!T)if(o&&_===(u==null?void 0:u.data)&&n.select===M(this,jo))_=M(this,Us);else try{ce(this,jo,n.select),_=n.select(_),_=Pm(o==null?void 0:o.data,_,n),ce(this,Us,_),ce(this,Ti,null)}catch(N){ce(this,Ti,N)}M(this,Ti)&&(b=M(this,Ti),_=M(this,Us),E=Date.now(),k="error");const R=p.fetchStatus==="fetching",L=k==="pending",z=k==="error",V=L&&R,O=_!==void 0,$={status:k,fetchStatus:p.fetchStatus,isPending:L,isSuccess:k==="success",isError:z,isInitialLoading:V,isLoading:V,data:_,dataUpdatedAt:p.dataUpdatedAt,error:b,errorUpdatedAt:E,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>d.dataUpdateCount||p.errorUpdateCount>d.errorUpdateCount,isFetching:R,isRefetching:R&&!L,isLoadingError:z&&!O,isPaused:p.fetchStatus==="paused",isPlaceholderData:v,isRefetchError:z&&O,isStale:Sp(t,n),refetch:this.refetch,promise:M(this,Pr),isEnabled:Pn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=me=>{$.status==="error"?me.reject($.error):$.data!==void 0&&me.resolve($.data)},Q=()=>{const me=ce(this,Pr,$.promise=zm());N(me)},re=M(this,Pr);switch(re.status){case"pending":t.queryHash===i.queryHash&&N(re);break;case"fulfilled":($.status==="error"||$.data!==re.value)&&Q();break;case"rejected":($.status!=="error"||$.error!==re.reason)&&Q();break}}return $}updateResult(){const t=M(this,Ht),n=this.createResult(M(this,ze),this.options);if(ce(this,pa,M(this,ze).state),ce(this,Bs,this.options),M(this,pa).data!==void 0&&ce(this,qs,M(this,ze)),Nc(n,t))return;ce(this,Ht,n);const i=()=>{if(!t)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!M(this,Vs).size)return!0;const u=new Set(o??M(this,Vs));return this.options.throwOnError&&u.add("error"),Object.keys(M(this,Ht)).some(f=>{const h=f;return M(this,Ht)[h]!==t[h]&&u.has(h)})};Re(this,Fe,Px).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Re(this,Fe,Vm).call(this)}},an=new WeakMap,ze=new WeakMap,No=new WeakMap,Ht=new WeakMap,pa=new WeakMap,Bs=new WeakMap,Pr=new WeakMap,Ti=new WeakMap,jo=new WeakMap,Us=new WeakMap,qs=new WeakMap,ga=new WeakMap,ya=new WeakMap,ki=new WeakMap,Vs=new WeakMap,Fe=new WeakSet,lo=function(t){Re(this,Fe,Fm).call(this);let n=M(this,ze).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Ft)),n},Bm=function(){Re(this,Fe,Hm).call(this);const t=Ni(this.options.staleTime,M(this,ze));if(wa||M(this,Ht).isStale||!Dm(t))return;const i=Rx(M(this,Ht).dataUpdatedAt,t)+1;ce(this,ga,oa.setTimeout(()=>{M(this,Ht).isStale||this.updateResult()},i))},Um=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(M(this,ze)):this.options.refetchInterval)??!1},qm=function(t){Re(this,Fe,Gm).call(this),ce(this,ki,t),!(wa||Pn(this.options.enabled,M(this,ze))===!1||!Dm(M(this,ki))||M(this,ki)===0)&&ce(this,ya,oa.setInterval(()=>{(this.options.refetchIntervalInBackground||xp.isFocused())&&Re(this,Fe,lo).call(this)},M(this,ki)))},Vm=function(){Re(this,Fe,Bm).call(this),Re(this,Fe,qm).call(this,Re(this,Fe,Um).call(this))},Hm=function(){M(this,ga)&&(oa.clearTimeout(M(this,ga)),ce(this,ga,void 0))},Gm=function(){M(this,ya)&&(oa.clearInterval(M(this,ya)),ce(this,ya,void 0))},Fm=function(){const t=M(this,an).getQueryCache().build(M(this,an),this.options);if(t===M(this,ze))return;const n=M(this,ze);ce(this,ze,t),ce(this,No,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Px=function(t){St.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(M(this,Ht))}),M(this,an).getQueryCache().notify({query:M(this,ze),type:"observerResultsUpdated"})})},xx);function mk(e,t){return Pn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function x0(e,t){return mk(e,t)||e.state.data!==void 0&&Qm(e,t,t.refetchOnMount)}function Qm(e,t,n){if(Pn(t.enabled,e)!==!1&&Ni(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&Sp(e,t)}return!1}function S0(e,t,n,i){return(e!==t||Pn(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Sp(e,n)}function Sp(e,t){return Pn(t.enabled,e)!==!1&&e.isStaleByTime(Ni(t.staleTime,e))}function pk(e,t){return!Nc(e.getCurrentResult(),t)}function E0(e){return{onFetch:(t,n)=>{var y,p,v,_,b;const i=t.options,s=(v=(p=(y=t.fetchOptions)==null?void 0:y.meta)==null?void 0:p.fetchMore)==null?void 0:v.direction,o=((_=t.state.data)==null?void 0:_.pages)||[],u=((b=t.state.data)==null?void 0:b.pageParams)||[];let f={pages:[],pageParams:[]},h=0;const d=async()=>{let E=!1;const k=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(t.signal.aborted?E=!0:t.signal.addEventListener("abort",()=>{E=!0}),t.signal)})},T=Ox(t.options,t.fetchOptions),R=async(L,z,V)=>{if(E)return Promise.reject();if(z==null&&L.pages.length)return Promise.resolve(L);const U=(()=>{const Q={client:t.client,queryKey:t.queryKey,pageParam:z,direction:V?"backward":"forward",meta:t.options.meta};return k(Q),Q})(),$=await T(U),{maxPages:ne}=t.options,N=V?sk:ak;return{pages:N(L.pages,$,ne),pageParams:N(L.pageParams,z,ne)}};if(s&&o.length){const L=s==="backward",z=L?gk:w0,V={pages:o,pageParams:u},O=z(i,V);f=await R(V,O,L)}else{const L=e??o.length;do{const z=h===0?u[0]??i.initialPageParam:w0(i,f);if(h>0&&z==null)break;f=await R(f,z),h++}while(h<L)}return f};t.options.persister?t.fetchFn=()=>{var E,k;return(k=(E=t.options).persister)==null?void 0:k.call(E,d,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=d}}}function w0(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function gk(e,{pages:t,pageParams:n}){var i;return t.length>0?(i=e.getPreviousPageParam)==null?void 0:i.call(e,t[0],t,n[0],n):void 0}var Do,sr,Gt,va,lr,xi,Sx,yk=(Sx=class extends Dx{constructor(t){super();ye(this,lr);ye(this,Do);ye(this,sr);ye(this,Gt);ye(this,va);ce(this,Do,t.client),this.mutationId=t.mutationId,ce(this,Gt,t.mutationCache),ce(this,sr,[]),this.state=t.state||zx(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){M(this,sr).includes(t)||(M(this,sr).push(t),this.clearGcTimeout(),M(this,Gt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ce(this,sr,M(this,sr).filter(n=>n!==t)),this.scheduleGc(),M(this,Gt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){M(this,sr).length||(this.state.status==="pending"?this.scheduleGc():M(this,Gt).remove(this))}continue(){var t;return((t=M(this,va))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var u,f,h,d,y,p,v,_,b,E,k,T,R,L,z,V,O,U,$,ne;const n=()=>{Re(this,lr,xi).call(this,{type:"continue"})},i={client:M(this,Do),meta:this.options.meta,mutationKey:this.options.mutationKey};ce(this,va,jx({fn:()=>this.options.mutationFn?this.options.mutationFn(t,i):Promise.reject(new Error("No mutationFn found")),onFail:(N,Q)=>{Re(this,lr,xi).call(this,{type:"failed",failureCount:N,error:Q})},onPause:()=>{Re(this,lr,xi).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,Gt).canRun(this)}));const s=this.state.status==="pending",o=!M(this,va).canStart();try{if(s)n();else{Re(this,lr,xi).call(this,{type:"pending",variables:t,isPaused:o}),await((f=(u=M(this,Gt).config).onMutate)==null?void 0:f.call(u,t,this,i));const Q=await((d=(h=this.options).onMutate)==null?void 0:d.call(h,t,i));Q!==this.state.context&&Re(this,lr,xi).call(this,{type:"pending",context:Q,variables:t,isPaused:o})}const N=await M(this,va).start();return await((p=(y=M(this,Gt).config).onSuccess)==null?void 0:p.call(y,N,t,this.state.context,this,i)),await((_=(v=this.options).onSuccess)==null?void 0:_.call(v,N,t,this.state.context,i)),await((E=(b=M(this,Gt).config).onSettled)==null?void 0:E.call(b,N,null,this.state.variables,this.state.context,this,i)),await((T=(k=this.options).onSettled)==null?void 0:T.call(k,N,null,t,this.state.context,i)),Re(this,lr,xi).call(this,{type:"success",data:N}),N}catch(N){try{throw await((L=(R=M(this,Gt).config).onError)==null?void 0:L.call(R,N,t,this.state.context,this,i)),await((V=(z=this.options).onError)==null?void 0:V.call(z,N,t,this.state.context,i)),await((U=(O=M(this,Gt).config).onSettled)==null?void 0:U.call(O,void 0,N,this.state.variables,this.state.context,this,i)),await((ne=($=this.options).onSettled)==null?void 0:ne.call($,void 0,N,t,this.state.context,i)),N}finally{Re(this,lr,xi).call(this,{type:"error",error:N})}}finally{M(this,Gt).runNext(this)}}},Do=new WeakMap,sr=new WeakMap,Gt=new WeakMap,va=new WeakMap,lr=new WeakSet,xi=function(t){const n=i=>{switch(t.type){case"failed":return{...i,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,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{...i,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:t.error,failureCount:i.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),St.batch(()=>{M(this,sr).forEach(i=>{i.onMutationUpdate(t)}),M(this,Gt).notify({mutation:this,type:"updated",action:t})})},Sx);function zx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zr,Kn,Mo,Ex,vk=(Ex=class extends Ws{constructor(t={}){super();ye(this,zr);ye(this,Kn);ye(this,Mo);this.config=t,ce(this,zr,new Set),ce(this,Kn,new Map),ce(this,Mo,0)}build(t,n,i){const s=new yk({client:t,mutationCache:this,mutationId:++sc(this,Mo)._,options:t.defaultMutationOptions(n),state:i});return this.add(s),s}add(t){M(this,zr).add(t);const n=lc(t);if(typeof n=="string"){const i=M(this,Kn).get(n);i?i.push(t):M(this,Kn).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(M(this,zr).delete(t)){const n=lc(t);if(typeof n=="string"){const i=M(this,Kn).get(n);if(i)if(i.length>1){const s=i.indexOf(t);s!==-1&&i.splice(s,1)}else i[0]===t&&M(this,Kn).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=lc(t);if(typeof n=="string"){const i=M(this,Kn).get(n),s=i==null?void 0:i.find(o=>o.state.status==="pending");return!s||s===t}else return!0}runNext(t){var i;const n=lc(t);if(typeof n=="string"){const s=(i=M(this,Kn).get(n))==null?void 0:i.find(o=>o!==t&&o.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){St.batch(()=>{M(this,zr).forEach(t=>{this.notify({type:"removed",mutation:t})}),M(this,zr).clear(),M(this,Kn).clear()})}getAll(){return Array.from(M(this,zr))}find(t){const n={exact:!0,...t};return this.getAll().find(i=>g0(n,i))}findAll(t={}){return this.getAll().filter(n=>g0(t,n))}notify(t){St.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return St.batch(()=>Promise.all(t.map(n=>n.continue().catch(Ft))))}},zr=new WeakMap,Kn=new WeakMap,Mo=new WeakMap,Ex);function lc(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Ir,Ci,sn,Br,Vr,wc,$m,wx,_k=(wx=class extends Ws{constructor(n,i){super();ye(this,Vr);ye(this,Ir);ye(this,Ci);ye(this,sn);ye(this,Br);ce(this,Ir,n),this.setOptions(i),this.bindMethods(),Re(this,Vr,wc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var s;const i=this.options;this.options=M(this,Ir).defaultMutationOptions(n),Nc(this.options,i)||M(this,Ir).getMutationCache().notify({type:"observerOptionsUpdated",mutation:M(this,sn),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Ta(i.mutationKey)!==Ta(this.options.mutationKey)?this.reset():((s=M(this,sn))==null?void 0:s.state.status)==="pending"&&M(this,sn).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=M(this,sn))==null||n.removeObserver(this)}onMutationUpdate(n){Re(this,Vr,wc).call(this),Re(this,Vr,$m).call(this,n)}getCurrentResult(){return M(this,Ci)}reset(){var n;(n=M(this,sn))==null||n.removeObserver(this),ce(this,sn,void 0),Re(this,Vr,wc).call(this),Re(this,Vr,$m).call(this)}mutate(n,i){var s;return ce(this,Br,i),(s=M(this,sn))==null||s.removeObserver(this),ce(this,sn,M(this,Ir).getMutationCache().build(M(this,Ir),this.options)),M(this,sn).addObserver(this),M(this,sn).execute(n)}},Ir=new WeakMap,Ci=new WeakMap,sn=new WeakMap,Br=new WeakMap,Vr=new WeakSet,wc=function(){var i;const n=((i=M(this,sn))==null?void 0:i.state)??zx();ce(this,Ci,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},$m=function(n){St.batch(()=>{var i,s,o,u,f,h,d,y;if(M(this,Br)&&this.hasListeners()){const p=M(this,Ci).variables,v=M(this,Ci).context,_={client:M(this,Ir),meta:this.options.meta,mutationKey:this.options.mutationKey};(n==null?void 0:n.type)==="success"?((s=(i=M(this,Br)).onSuccess)==null||s.call(i,n.data,p,v,_),(u=(o=M(this,Br)).onSettled)==null||u.call(o,n.data,null,p,v,_)):(n==null?void 0:n.type)==="error"&&((h=(f=M(this,Br)).onError)==null||h.call(f,n.error,p,v,_),(y=(d=M(this,Br)).onSettled)==null||y.call(d,void 0,n.error,p,v,_))}this.listeners.forEach(p=>{p(M(this,Ci))})})},wx),or,Tx,bk=(Tx=class extends Ws{constructor(t={}){super();ye(this,or);this.config=t,ce(this,or,new Map)}build(t,n,i){const s=n.queryKey,o=n.queryHash??bp(s,n);let u=this.get(o);return u||(u=new hk({client:t,queryKey:s,queryHash:o,options:t.defaultQueryOptions(n),state:i,defaultOptions:t.getQueryDefaults(s)}),this.add(u)),u}add(t){M(this,or).has(t.queryHash)||(M(this,or).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=M(this,or).get(t.queryHash);n&&(t.destroy(),n===t&&M(this,or).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){St.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return M(this,or).get(t)}getAll(){return[...M(this,or).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(i=>p0(n,i))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(i=>p0(t,i)):n}notify(t){St.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){St.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){St.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},or=new WeakMap,Tx),ot,Ri,Ai,Hs,Gs,Oi,Fs,Qs,kx,xk=(kx=class{constructor(e={}){ye(this,ot);ye(this,Ri);ye(this,Ai);ye(this,Hs);ye(this,Gs);ye(this,Oi);ye(this,Fs);ye(this,Qs);ce(this,ot,e.queryCache||new bk),ce(this,Ri,e.mutationCache||new vk),ce(this,Ai,e.defaultOptions||{}),ce(this,Hs,new Map),ce(this,Gs,new Map),ce(this,Oi,0)}mount(){sc(this,Oi)._++,M(this,Oi)===1&&(ce(this,Fs,xp.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,ot).onFocus())})),ce(this,Qs,jc.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,ot).onOnline())})))}unmount(){var e,t;sc(this,Oi)._--,M(this,Oi)===0&&((e=M(this,Fs))==null||e.call(this),ce(this,Fs,void 0),(t=M(this,Qs))==null||t.call(this),ce(this,Qs,void 0))}isFetching(e){return M(this,ot).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,Ri).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,ot).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=M(this,ot).build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ni(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return M(this,ot).findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),s=M(this,ot).get(i.queryHash),o=s==null?void 0:s.state.data,u=nk(t,o);if(u!==void 0)return M(this,ot).build(this,i).setData(u,{...n,manual:!0})}setQueriesData(e,t,n){return St.batch(()=>M(this,ot).findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=M(this,ot).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=M(this,ot);St.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=M(this,ot);return St.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=St.batch(()=>M(this,ot).findAll(e).map(s=>s.cancel(n)));return Promise.all(i).then(Ft).catch(Ft)}invalidateQueries(e,t={}){return St.batch(()=>(M(this,ot).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},i=St.batch(()=>M(this,ot).findAll(e).filter(s=>!s.isDisabled()&&!s.isStatic()).map(s=>{let o=s.fetch(void 0,n);return n.throwOnError||(o=o.catch(Ft)),s.state.fetchStatus==="paused"?Promise.resolve():o}));return Promise.all(i).then(Ft)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=M(this,ot).build(this,t);return n.isStaleByTime(Ni(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ft).catch(Ft)}fetchInfiniteQuery(e){return e.behavior=E0(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ft).catch(Ft)}ensureInfiniteQueryData(e){return e.behavior=E0(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return jc.isOnline()?M(this,Ri).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,ot)}getMutationCache(){return M(this,Ri)}getDefaultOptions(){return M(this,Ai)}setDefaultOptions(e){ce(this,Ai,e)}setQueryDefaults(e,t){M(this,Hs).set(Ta(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...M(this,Hs).values()],n={};return t.forEach(i=>{bo(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){M(this,Gs).set(Ta(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...M(this,Gs).values()],n={};return t.forEach(i=>{bo(e,i.mutationKey)&&Object.assign(n,i.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...M(this,Ai).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=bp(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===Hr&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,Ai).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,ot).clear(),M(this,Ri).clear()}},ot=new WeakMap,Ri=new WeakMap,Ai=new WeakMap,Hs=new WeakMap,Gs=new WeakMap,Oi=new WeakMap,Fs=new WeakMap,Qs=new WeakMap,kx),ie=Po();const $s=_p(ie);var Ix=ie.createContext(void 0),Ep=e=>{const t=ie.useContext(Ix);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Sk=({client:e,children:t})=>(ie.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),S.jsx(Ix.Provider,{value:e,children:t})),Bx=ie.createContext(!1),Ek=()=>ie.useContext(Bx);Bx.Provider;function wk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Tk=ie.createContext(wk()),kk=()=>ie.useContext(Tk),Ck=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},Rk=e=>{ie.useEffect(()=>{e.clearReset()},[e])},Ak=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:s})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(s&&e.data===void 0||Lx(n,[e.error,i])),Ok=e=>{if(e.suspense){const n=s=>s==="static"?s:Math.max(s??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...s)=>n(i(...s)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Lk=(e,t)=>e.isLoading&&e.isFetching&&!t,Nk=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,T0=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function jk(e,t,n){var p,v,_,b,E;const i=Ek(),s=kk(),o=Ep(),u=o.defaultQueryOptions(e);(v=(p=o.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||v.call(p,u),u._optimisticResults=i?"isRestoring":"optimistic",Ok(u),Ck(u,s),Rk(s);const f=!o.getQueryCache().get(u.queryHash),[h]=ie.useState(()=>new t(o,u)),d=h.getOptimisticResult(u),y=!i&&e.subscribed!==!1;if(ie.useSyncExternalStore(ie.useCallback(k=>{const T=y?h.subscribe(St.batchCalls(k)):Ft;return h.updateResult(),T},[h,y]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),ie.useEffect(()=>{h.setOptions(u)},[u,h]),Nk(u,d))throw T0(u,h,s);if(Ak({result:d,errorResetBoundary:s,throwOnError:u.throwOnError,query:o.getQueryCache().get(u.queryHash),suspense:u.suspense}))throw d.error;if((b=(_=o.getDefaultOptions().queries)==null?void 0:_._experimental_afterQuery)==null||b.call(_,u,d),u.experimental_prefetchInRender&&!wa&&Lk(d,i)){const k=f?T0(u,h,s):(E=o.getQueryCache().get(u.queryHash))==null?void 0:E.promise;k==null||k.catch(Ft).finally(()=>{h.updateResult()})}return u.notifyOnChangeProps?d:h.trackResult(d)}function xn(e,t){return jk(e,dk)}function xo(e,t){const n=Ep(),[i]=ie.useState(()=>new _k(n,e));ie.useEffect(()=>{i.setOptions(e)},[i,e]);const s=ie.useSyncExternalStore(ie.useCallback(u=>i.subscribe(St.batchCalls(u)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=ie.useCallback((u,f)=>{i.mutate(u,f).catch(Ft)},[i]);if(s.error&&Lx(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:o,mutateAsync:s.mutate}}const Ym=new WeakMap,Dk=new WeakMap,Dc={current:[]};let Yd=!1,co=0;const oo=new Set,oc=new Map;function Ux(e){for(const t of e){if(Dc.current.includes(t))continue;Dc.current.push(t),t.recompute();const n=Dk.get(t);if(n)for(const i of n){const s=Ym.get(i);s!=null&&s.length&&Ux(s)}}}function Mk(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function Pk(e){const t={prevVal:e.prevState,currentVal:e.state};for(const n of e.listeners)n(t)}function qx(e){if(co>0&&!oc.has(e)&&oc.set(e,e.prevState),oo.add(e),!(co>0)&&!Yd)try{for(Yd=!0;oo.size>0;){const t=Array.from(oo);oo.clear();for(const n of t){const i=oc.get(n)??n.prevState;n.prevState=i,Mk(n)}for(const n of t){const i=Ym.get(n);i&&(Dc.current.push(n),Ux(i))}for(const n of t){const i=Ym.get(n);if(i)for(const s of i)Pk(s)}}}finally{Yd=!1,Dc.current=[],oc.clear()}}function fo(e){co++;try{e()}finally{if(co--,co===0){const t=oo.values().next().value;t&&qx(t)}}}function zk(e){return typeof e=="function"}class Ik{constructor(t,n){this.listeners=new Set,this.subscribe=i=>{var s,o;this.listeners.add(i);const u=(o=(s=this.options)==null?void 0:s.onSubscribe)==null?void 0:o.call(s,i,this);return()=>{this.listeners.delete(i),u==null||u()}},this.prevState=t,this.state=t,this.options=n}setState(t){var n,i,s;this.prevState=this.state,(n=this.options)!=null&&n.updateFn?this.state=this.options.updateFn(this.prevState)(t):zk(t)?this.state=t(this.prevState):this.state=t,(s=(i=this.options)==null?void 0:i.onUpdate)==null||s.call(i),qx(this)}}const ji="__TSR_index",k0="popstate",C0="beforeunload";function Bk(e){let t=e.getLocation();const n=new Set,i=u=>{t=e.getLocation(),n.forEach(f=>f({location:t,action:u}))},s=u=>{e.notifyOnIndexChange??!0?i(u):t=e.getLocation()},o=async({task:u,navigateOpts:f,...h})=>{var v,_;if((f==null?void 0:f.ignoreBlocker)??!1){u();return}const y=((v=e.getBlockers)==null?void 0:v.call(e))??[],p=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&y.length&&p)for(const b of y){const E=Mc(h.path,h.state);if(await b.blockerFn({currentLocation:t,nextLocation:E,action:h.type})){(_=e.onBlocked)==null||_.call(e);return}}u()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:u=>(n.add(u),()=>{n.delete(u)}),push:(u,f,h)=>{const d=t.state[ji];f=R0(d+1,f),o({task:()=>{e.pushState(u,f),i({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:u,state:f})},replace:(u,f,h)=>{const d=t.state[ji];f=R0(d,f),o({task:()=>{e.replaceState(u,f),i({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:u,state:f})},go:(u,f)=>{o({task:()=>{e.go(u),s({type:"GO",index:u})},navigateOpts:f,type:"GO"})},back:u=>{o({task:()=>{e.back((u==null?void 0:u.ignoreBlocker)??!1),s({type:"BACK"})},navigateOpts:u,type:"BACK"})},forward:u=>{o({task:()=>{e.forward((u==null?void 0:u.ignoreBlocker)??!1),s({type:"FORWARD"})},navigateOpts:u,type:"FORWARD"})},canGoBack:()=>t.state[ji]!==0,createHref:u=>e.createHref(u),block:u=>{var h;if(!e.setBlockers)return()=>{};const f=((h=e.getBlockers)==null?void 0:h.call(e))??[];return e.setBlockers([...f,u]),()=>{var y,p;const d=((y=e.getBlockers)==null?void 0:y.call(e))??[];(p=e.setBlockers)==null||p.call(e,d.filter(v=>v!==u))}},flush:()=>{var u;return(u=e.flush)==null?void 0:u.call(e)},destroy:()=>{var u;return(u=e.destroy)==null?void 0:u.call(e)},notify:i}}function R0(e,t){t||(t={});const n=wp();return{...t,key:n,__TSR_key:n,[ji]:e}}function Uk(e){var $,ne;const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState;let s=[];const o=()=>s,u=N=>s=N,f=(N=>N),h=(()=>Mc(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state));if(!(($=t.history.state)!=null&&$.__TSR_key)&&!((ne=t.history.state)!=null&&ne.key)){const N=wp();t.history.replaceState({[ji]:0,key:N,__TSR_key:N},"")}let d=h(),y,p=!1,v=!1,_=!1,b=!1;const E=()=>d;let k,T;const R=()=>{k&&(U._ignoreSubscribers=!0,(k.isPush?t.history.pushState:t.history.replaceState)(k.state,"",k.href),U._ignoreSubscribers=!1,k=void 0,T=void 0,y=void 0)},L=(N,Q,re)=>{const me=f(Q);T||(y=d),d=Mc(Q,re),k={href:me,state:re,isPush:(k==null?void 0:k.isPush)||N==="push"},T||(T=Promise.resolve().then(()=>R()))},z=N=>{d=h(),U.notify({type:N})},V=async()=>{if(v){v=!1;return}const N=h(),Q=N.state[ji]-d.state[ji],re=Q===1,me=Q===-1,le=!re&&!me||p;p=!1;const ae=le?"GO":me?"BACK":"FORWARD",q=le?{type:"GO",index:Q}:{type:me?"BACK":"FORWARD"};if(_)_=!1;else{const te=o();if(typeof document<"u"&&te.length){for(const fe of te)if(await fe.blockerFn({currentLocation:d,nextLocation:N,action:ae})){v=!0,t.history.go(1),U.notify(q);return}}}d=h(),U.notify(q)},O=N=>{if(b){b=!1;return}let Q=!1;const re=o();if(typeof document<"u"&&re.length)for(const me of re){const le=me.enableBeforeUnload??!0;if(le===!0){Q=!0;break}if(typeof le=="function"&&le()===!0){Q=!0;break}}if(Q)return N.preventDefault(),N.returnValue=""},U=Bk({getLocation:E,getLength:()=>t.history.length,pushState:(N,Q)=>L("push",N,Q),replaceState:(N,Q)=>L("replace",N,Q),back:N=>(N&&(_=!0),b=!0,t.history.back()),forward:N=>{N&&(_=!0),b=!0,t.history.forward()},go:N=>{p=!0,t.history.go(N)},createHref:N=>f(N),flush:R,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(C0,O,{capture:!0}),t.removeEventListener(k0,V)},onBlocked:()=>{y&&d!==y&&(d=y)},getBlockers:o,setBlockers:u,notifyOnIndexChange:!1});return t.addEventListener(C0,O,{capture:!0}),t.addEventListener(k0,V),t.history.pushState=function(...N){const Q=n.apply(t.history,N);return U._ignoreSubscribers||z("PUSH"),Q},t.history.replaceState=function(...N){const Q=i.apply(t.history,N);return U._ignoreSubscribers||z("REPLACE"),Q},U}function Mc(e,t){const n=e.indexOf("#"),i=e.indexOf("?"),s=wp();return{href:e,pathname:e.substring(0,n>0?i>0?Math.min(n,i):n:i>0?i:e.length),hash:n>-1?e.substring(n):"",search:i>-1?e.slice(i,n===-1?void 0:n):"",state:t||{[ji]:0,key:s,__TSR_key:s}}}function wp(){return(Math.random()+1).toString(36).substring(7)}function Pc(e){return e[e.length-1]}function qk(e){return typeof e=="function"}function _a(e,t){return qk(e)?e(t):e}const Vk=Object.prototype.hasOwnProperty;function Dn(e,t){if(e===t)return e;const n=t,i=L0(e)&&L0(n);if(!i&&!(zc(e)&&zc(n)))return n;const s=i?e:A0(e);if(!s)return n;const o=i?n:A0(n);if(!o)return n;const u=s.length,f=o.length,h=i?new Array(f):{};let d=0;for(let y=0;y<f;y++){const p=i?y:o[y],v=e[p],_=n[p];if(v===_){h[p]=v,(i?y<u:Vk.call(e,p))&&d++;continue}if(v===null||_===null||typeof v!="object"||typeof _!="object"){h[p]=_;continue}const b=Dn(v,_);h[p]=b,b===v&&d++}return u===f&&d===u?e:h}function A0(e){const t=[],n=Object.getOwnPropertyNames(e);for(const s of n){if(!Object.prototype.propertyIsEnumerable.call(e,s))return!1;t.push(s)}const i=Object.getOwnPropertySymbols(e);for(const s of i){if(!Object.prototype.propertyIsEnumerable.call(e,s))return!1;t.push(s)}return t}function zc(e){if(!O0(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!O0(n)||!n.hasOwnProperty("isPrototypeOf"))}function O0(e){return Object.prototype.toString.call(e)==="[object Object]"}function L0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ba(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let i=0,s=e.length;i<s;i++)if(!ba(e[i],t[i],n))return!1;return!0}if(zc(e)&&zc(t)){const i=(n==null?void 0:n.ignoreUndefined)??!0;if(n!=null&&n.partial){for(const u in t)if((!i||t[u]!==void 0)&&!ba(e[u],t[u],n))return!1;return!0}let s=0;if(!i)s=Object.keys(e).length;else for(const u in e)e[u]!==void 0&&s++;let o=0;for(const u in t)if((!i||t[u]!==void 0)&&(o++,o>s||!ba(e[u],t[u],n)))return!1;return s===o}return!1}function Ys(e){let t,n;const i=new Promise((s,o)=>{t=s,n=o});return i.status="pending",i.resolve=s=>{i.status="resolved",i.value=s,t(s),e==null||e(s)},i.reject=s=>{i.status="rejected",n(s)},i}function Di(e){return!!(e&&typeof e=="object"&&typeof e.then=="function")}function N0(e){try{return decodeURI(e)}catch{return e.replaceAll(/%[0-9A-F]{2}/gi,t=>{try{return decodeURI(t)}catch{return t}})}}function j0(e,t){if(!e)return e;const n=/%25|%5C/gi;let i=0,s="",o;for(;(o=n.exec(e))!==null;)s+=N0(e.slice(i,o.index))+o[0],i=n.lastIndex;return s+N0(i?e.slice(i):e)}var Hk="Invariant failed";function Gr(e,t){if(!e)throw new Error(Hk)}function Ic(e){const t=new Map;let n,i;const s=o=>{o.next&&(o.prev?(o.prev.next=o.next,o.next.prev=o.prev,o.next=void 0,i&&(i.next=o,o.prev=i)):(o.next.prev=void 0,n=o.next,o.next=void 0,i&&(o.prev=i,i.next=o)),i=o)};return{get(o){const u=t.get(o);if(u)return s(u),u.value},set(o,u){if(t.size>=e&&n){const h=n;t.delete(h.key),h.next&&(n=h.next,h.next.prev=void 0),h===i&&(i=void 0)}const f=t.get(o);if(f)f.value=u,s(f);else{const h={key:o,value:u,prev:i};i&&(i.next=h),i=h,n||(n=h),t.set(o,h)}},clear(){t.clear(),n=void 0,i=void 0}}}const Ks=0,ka=1,Ca=2,So=3,Gk=/^([^{]*)\{\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,Fk=/^([^{]*)\{-\$([a-zA-Z_$][a-zA-Z0-9_$]*)\}([^}]*)$/,Qk=/^([^{]*)\{\$\}([^}]*)$/;function Tp(e,t,n=new Uint16Array(6)){const i=e.indexOf("/",t),s=i===-1?e.length:i,o=e.substring(t,s);if(!o||!o.includes("$"))return n[0]=Ks,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n;if(o==="$"){const d=e.length;return n[0]=Ca,n[1]=t,n[2]=t,n[3]=d,n[4]=d,n[5]=d,n}if(o.charCodeAt(0)===36)return n[0]=ka,n[1]=t,n[2]=t+1,n[3]=s,n[4]=s,n[5]=s,n;const u=o.match(Qk);if(u){const y=u[1].length;return n[0]=Ca,n[1]=t+y,n[2]=t+y+1,n[3]=t+y+2,n[4]=t+y+3,n[5]=e.length,n}const f=o.match(Fk);if(f){const d=f[1],y=f[2],p=f[3],v=d.length;return n[0]=So,n[1]=t+v,n[2]=t+v+3,n[3]=t+v+3+y.length,n[4]=s-p.length,n[5]=s,n}const h=o.match(Gk);if(h){const d=h[1],y=h[2],p=h[3],v=d.length;return n[0]=ka,n[1]=t+v,n[2]=t+v+2,n[3]=t+v+2+y.length,n[4]=s-p.length,n[5]=s,n}return n[0]=Ks,n[1]=t,n[2]=t,n[3]=s,n[4]=s,n[5]=s,n}function of(e,t,n,i,s,o,u){var h,d,y,p,v;u==null||u(n);let f=i;{const _=n.fullPath??n.from,b=_.length,E=((h=n.options)==null?void 0:h.caseSensitive)??e;for(;f<b;){const k=Tp(_,f,t);let T;const R=f,L=k[5];switch(f=L+1,o++,k[0]){case Ks:{const V=_.substring(k[2],k[3]);if(E){const O=(d=s.static)==null?void 0:d.get(V);if(O)T=O;else{s.static??(s.static=new Map);const U=Eo(n.fullPath??n.from);U.parent=s,U.depth=o,T=U,s.static.set(V,U)}}else{const O=V.toLowerCase(),U=(y=s.staticInsensitive)==null?void 0:y.get(O);if(U)T=U;else{s.staticInsensitive??(s.staticInsensitive=new Map);const $=Eo(n.fullPath??n.from);$.parent=s,$.depth=o,T=$,s.staticInsensitive.set(O,$)}}break}case ka:{const V=_.substring(R,k[1]),O=_.substring(k[4],L),U=E&&!!(V||O),$=V?U?V:V.toLowerCase():void 0,ne=O?U?O:O.toLowerCase():void 0,N=(p=s.dynamic)==null?void 0:p.find(Q=>Q.caseSensitive===U&&Q.prefix===$&&Q.suffix===ne);if(N)T=N;else{const Q=Xd(ka,n.fullPath??n.from,U,$,ne);T=Q,Q.depth=o,Q.parent=s,s.dynamic??(s.dynamic=[]),s.dynamic.push(Q)}break}case So:{const V=_.substring(R,k[1]),O=_.substring(k[4],L),U=E&&!!(V||O),$=V?U?V:V.toLowerCase():void 0,ne=O?U?O:O.toLowerCase():void 0,N=(v=s.optional)==null?void 0:v.find(Q=>Q.caseSensitive===U&&Q.prefix===$&&Q.suffix===ne);if(N)T=N;else{const Q=Xd(So,n.fullPath??n.from,U,$,ne);T=Q,Q.parent=s,Q.depth=o,s.optional??(s.optional=[]),s.optional.push(Q)}break}case Ca:{const V=_.substring(R,k[1]),O=_.substring(k[4],L),U=E&&!!(V||O),$=V?U?V:V.toLowerCase():void 0,ne=O?U?O:O.toLowerCase():void 0,N=Xd(Ca,n.fullPath??n.from,U,$,ne);T=N,N.parent=s,N.depth=o,s.wildcard??(s.wildcard=[]),s.wildcard.push(N)}}s=T}if((n.path||!n.children)&&!n.isRoot){const k=_.endsWith("/");k||(s.notFound=n),(!s.route||!s.isIndex&&k)&&(s.route=n),s.isIndex||(s.isIndex=k)}}if(n.children)for(const _ of n.children)of(e,t,_,f,s,o,u)}function Kd(e,t){if(e.prefix&&t.prefix&&e.prefix!==t.prefix){if(e.prefix.startsWith(t.prefix))return-1;if(t.prefix.startsWith(e.prefix))return 1}if(e.suffix&&t.suffix&&e.suffix!==t.suffix){if(e.suffix.endsWith(t.suffix))return-1;if(t.suffix.endsWith(e.suffix))return 1}return e.prefix&&!t.prefix?-1:!e.prefix&&t.prefix?1:e.suffix&&!t.suffix?-1:!e.suffix&&t.suffix?1:e.caseSensitive&&!t.caseSensitive?-1:!e.caseSensitive&&t.caseSensitive?1:0}function la(e){var t,n,i;if(e.static)for(const s of e.static.values())la(s);if(e.staticInsensitive)for(const s of e.staticInsensitive.values())la(s);if((t=e.dynamic)!=null&&t.length){e.dynamic.sort(Kd);for(const s of e.dynamic)la(s)}if((n=e.optional)!=null&&n.length){e.optional.sort(Kd);for(const s of e.optional)la(s)}if((i=e.wildcard)!=null&&i.length){e.wildcard.sort(Kd);for(const s of e.wildcard)la(s)}}function Eo(e){return{kind:Ks,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:e,parent:null,isIndex:!1,notFound:null}}function Xd(e,t,n,i,s){return{kind:e,depth:0,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,isIndex:!1,notFound:null,caseSensitive:n,prefix:i,suffix:s}}function $k(e,t){const n=Eo("/"),i=new Uint16Array(6);for(const s of e)of(!1,i,s,1,n,0);la(n),t.masksTree=n,t.flatCache=Ic(1e3)}function Yk(e,t){e||(e="/");const n=t.flatCache.get(e);if(n)return n;const i=kp(e,t.masksTree);return t.flatCache.set(e,i),i}function Kk(e,t,n,i,s){e||(e="/"),i||(i="/");const o=t?`case\0${e}`:e;let u=s.singleCache.get(o);if(!u){u=Eo("/");const f=new Uint16Array(6);of(t,f,{from:e},1,u,0),s.singleCache.set(o,u)}return kp(i,u,n)}function Xk(e,t,n=!1){const i=n?e:`nofuzz\0${e}`,s=t.matchCache.get(i);if(s!==void 0)return s;e||(e="/");const o=kp(e,t.segmentTree,n);return o&&(o.branch=eC(o.route)),t.matchCache.set(i,o),o}function Zk(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function Jk(e,t=!1,n){const i=Eo(e.fullPath),s=new Uint16Array(6),o={},u={};let f=0;return of(t,s,e,1,i,0,d=>{if(n==null||n(d,f),Gr(!(d.id in o),`Duplicate routes found with id: ${String(d.id)}`),o[d.id]=d,f!==0&&d.path){const y=Zk(d.fullPath);(!u[y]||d.fullPath.endsWith("/"))&&(u[y]=d)}f++}),la(i),{processedTree:{segmentTree:i,singleCache:Ic(1e3),matchCache:Ic(1e3),flatCache:null,masksTree:null},routesById:o,routesByPath:u}}function kp(e,t,n=!1){const i=e.split("/"),s=nC(e,i,t,n);if(!s)return null;const o=Wk(e,i,s),u="**"in s;return u&&(o["**"]=s["**"]),{route:u?s.node.notFound??s.node.route:s.node.route,params:o}}function Wk(e,t,n){var u,f,h,d,y,p;const i=tC(n.node);let s=null;const o={};for(let v=0,_=0,b=0;_<i.length;v++,_++,b++){const E=i[_],k=t[v],T=b;if(k&&(b+=k.length),E.kind===ka){s??(s=n.node.fullPath.split("/"));const R=s[_],L=((u=E.prefix)==null?void 0:u.length)??0;if(R.charCodeAt(L)===123){const V=((f=E.suffix)==null?void 0:f.length)??0,O=R.substring(L+2,R.length-V-1),U=k.substring(L,k.length-V);o[O]=decodeURIComponent(U)}else{const V=R.substring(1);o[V]=decodeURIComponent(k)}}else if(E.kind===So){if(n.skipped&1<<_){v--;continue}s??(s=n.node.fullPath.split("/"));const R=s[_],L=((h=E.prefix)==null?void 0:h.length)??0,z=((d=E.suffix)==null?void 0:d.length)??0,V=R.substring(L+3,R.length-z-1),O=E.suffix||E.prefix?k.substring(L,k.length-z):k;O&&(o[V]=decodeURIComponent(O))}else if(E.kind===Ca){const R=E,L=e.substring(T+(((y=R.prefix)==null?void 0:y.length)??0),e.length-(((p=R.suffix)==null?void 0:p.length)??0)),z=decodeURIComponent(L);o["*"]=z,o._splat=z;break}}return o}function eC(e){const t=[e];for(;e.parentRoute;)e=e.parentRoute,t.push(e);return t.reverse(),t}function tC(e){const t=Array(e.depth+1);do t[e.depth]=e,e=e.parent;while(e);return t}function nC(e,t,n,i){const s=!Pc(t),o=s&&e!=="/",u=t.length-(s?1:0),f=[{node:n,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let h=null,d=null,y=null;for(;f.length;){const p=f.pop();let{node:v,index:_,skipped:b,depth:E,statics:k,dynamics:T,optionals:R}=p;i&&v.notFound&&Zd(d,p)&&(d=p);const L=_===u;if(L){if(v.route&&(!o||v.isIndex)&&(Zd(y,p)&&(y=p),k===u&&v.isIndex))return y;if(!v.optional&&!v.wildcard)continue}const z=L?void 0:t[_];let V;if(v.wildcard&&Zd(h,p))for(const O of v.wildcard){const{prefix:U,suffix:$}=O;if(!(U&&(L||!(O.caseSensitive?z:V??(V=z.toLowerCase())).startsWith(U)))){if($){if(L)continue;const ne=t.slice(_).join("/").slice(-$.length);if((O.caseSensitive?ne:ne.toLowerCase())!==$)continue}h={node:O,index:_,skipped:b,depth:E,statics:k,dynamics:T,optionals:R};break}}if(v.optional){const O=b|1<<E,U=E+1;for(let $=v.optional.length-1;$>=0;$--){const ne=v.optional[$];f.push({node:ne,index:_,skipped:O,depth:U,statics:k,dynamics:T,optionals:R})}if(!L)for(let $=v.optional.length-1;$>=0;$--){const ne=v.optional[$],{prefix:N,suffix:Q}=ne;if(N||Q){const re=ne.caseSensitive?z:V??(V=z.toLowerCase());if(N&&!re.startsWith(N)||Q&&!re.endsWith(Q))continue}f.push({node:ne,index:_+1,skipped:b,depth:U,statics:k,dynamics:T,optionals:R+1})}}if(!L&&v.dynamic&&z)for(let O=v.dynamic.length-1;O>=0;O--){const U=v.dynamic[O],{prefix:$,suffix:ne}=U;if($||ne){const N=U.caseSensitive?z:V??(V=z.toLowerCase());if($&&!N.startsWith($)||ne&&!N.endsWith(ne))continue}f.push({node:U,index:_+1,skipped:b,depth:E+1,statics:k,dynamics:T+1,optionals:R})}if(!L&&v.staticInsensitive){const O=v.staticInsensitive.get(V??(V=z.toLowerCase()));O&&f.push({node:O,index:_+1,skipped:b,depth:E+1,statics:k+1,dynamics:T,optionals:R})}if(!L&&v.static){const O=v.static.get(z);O&&f.push({node:O,index:_+1,skipped:b,depth:E+1,statics:k+1,dynamics:T,optionals:R})}}if(y)return y;if(h)return h;if(i&&d){let p=d.index;for(let _=0;_<d.index;_++)p+=t[_].length;const v=p===e.length?"/":e.slice(p);return{node:d.node,skipped:d.skipped,"**":decodeURIComponent(v)}}return null}function Zd(e,t){return e?t.statics>e.statics||t.statics===e.statics&&(t.dynamics>e.dynamics||t.dynamics===e.dynamics&&(t.optionals>e.optionals||t.optionals===e.optionals&&(t.node.isIndex>e.node.isIndex||t.node.isIndex===e.node.isIndex&&t.depth>e.depth))):!0}function Tc(e){return Cp(e.filter(t=>t!==void 0).join("/"))}function Cp(e){return e.replace(/\/{2,}/g,"/")}function Vx(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function xa(e){const t=e.length;return t>1&&e[t-1]==="/"?e.replace(/\/{1,}$/,""):e}function kc(e){return xa(Vx(e))}function Bc(e,t){return e!=null&&e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function rC(e,t,n){return Bc(e,n)===Bc(t,n)}function iC({base:e,to:t,trailingSlash:n="never",cache:i}){const s=t.startsWith("/"),o=!s&&t===".";let u;if(i){u=s?t:o?e:e+"\0"+t;const p=i.get(u);if(p)return p}let f;if(o)f=e.split("/");else if(s)f=t.split("/");else{for(f=e.split("/");f.length>1&&Pc(f)==="";)f.pop();const p=t.split("/");for(let v=0,_=p.length;v<_;v++){const b=p[v];b===""?v?v===_-1&&f.push(b):f=[b]:b===".."?f.pop():b==="."||f.push(b)}}f.length>1&&(Pc(f)===""?n==="never"&&f.pop():n==="always"&&f.push(""));let h,d="";for(let p=0;p<f.length;p++){p>0&&(d+="/");const v=f[p];if(!v)continue;h=Tp(v,0,h);const _=h[0];if(_===Ks){d+=v;continue}const b=h[5],E=v.substring(0,h[1]),k=v.substring(h[4],b),T=v.substring(h[2],h[3]);_===ka?d+=E||k?`${E}{$${T}}${k}`:`$${T}`:_===Ca?d+=E||k?`${E}{$}${k}`:"$":d+=`${E}{-$${T}}${k}`}d=Cp(d);const y=d||"/";return u&&i&&i.set(u,y),y}function Jd(e,t,n){const i=t[e];return typeof i!="string"?i:e==="_splat"?encodeURI(i):aC(i,n)}function Wd({path:e,params:t,decodeCharMap:n}){let i=!1;const s={};if(!e||e==="/")return{interpolatedPath:"/",usedParams:s,isMissingParams:i};if(!e.includes("$"))return{interpolatedPath:e,usedParams:s,isMissingParams:i};const o=e.length;let u=0,f,h="";for(;u<o;){const y=u;f=Tp(e,y,f);const p=f[5];if(u=p+1,y===p)continue;const v=f[0];if(v===Ks){h+="/"+e.substring(y,p);continue}if(v===Ca){const _=t._splat;s._splat=_,s["*"]=_;const b=e.substring(y,f[1]),E=e.substring(f[4],p);if(!_){i=!0,(b||E)&&(h+="/"+b+E);continue}const k=Jd("_splat",t,n);h+="/"+b+k+E;continue}if(v===ka){const _=e.substring(f[2],f[3]);!i&&!(_ in t)&&(i=!0),s[_]=t[_];const b=e.substring(y,f[1]),E=e.substring(f[4],p),k=Jd(_,t,n)??"undefined";h+="/"+b+k+E;continue}if(v===So){const _=e.substring(f[2],f[3]),b=t[_];if(b==null)continue;s[_]=b;const E=e.substring(y,f[1]),k=e.substring(f[4],p),T=Jd(_,t,n)??"";h+="/"+E+T+k;continue}}return e.endsWith("/")&&(h+="/"),{usedParams:s,interpolatedPath:h||"/",isMissingParams:i}}function aC(e,t){let n=encodeURIComponent(e);if(t)for(const[i,s]of t)n=n.replaceAll(i,s);return n}function Hx(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function Bn(e){return!!(e!=null&&e.isNotFound)}function sC(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const Uc="tsr-scroll-restoration-v1_3",lC=(e,t)=>{let n;return(...i)=>{n||(n=setTimeout(()=>{e(...i),n=null},t))}};function oC(){const e=sC();if(!e)return null;const t=e.getItem(Uc);let n=t?JSON.parse(t):{};return{state:n,set:i=>(n=_a(i,n)||n,e.setItem(Uc,JSON.stringify(n)))}}const uc=oC(),Km=e=>e.state.__TSR_key||e.href;function uC(e){const t=[];let n;for(;n=e.parentNode;)t.push(`${e.tagName}:nth-child(${Array.prototype.indexOf.call(n.children,e)+1})`),e=n;return`${t.reverse().join(" > ")}`.toLowerCase()}let qc=!1;function Gx({storageKey:e,key:t,behavior:n,shouldScrollRestoration:i,scrollToTopSelectors:s,location:o}){var d,y;let u;try{u=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(p){console.error(p);return}const f=t||((d=window.history.state)==null?void 0:d.__TSR_key),h=u[f];qc=!0;e:{if(i&&h&&Object.keys(h).length>0){for(const _ in h){const b=h[_];if(_==="window")window.scrollTo({top:b.scrollY,left:b.scrollX,behavior:n});else if(_){const E=document.querySelector(_);E&&(E.scrollLeft=b.scrollX,E.scrollTop=b.scrollY)}}break e}const p=(o??window.location).hash.split("#",2)[1];if(p){const _=((y=window.history.state)==null?void 0:y.__hashScrollIntoViewOptions)??!0;if(_){const b=document.getElementById(p);b&&b.scrollIntoView(_)}break e}const v={top:0,left:0,behavior:n};if(window.scrollTo(v),s)for(const _ of s){if(_==="window")continue;const b=typeof _=="function"?_():document.querySelector(_);b&&b.scrollTo(v)}}qc=!1}function cC(e,t){if(!uc&&!e.isServer||((e.options.scrollRestoration??!1)&&(e.isScrollRestoring=!0),e.isServer||e.isScrollRestorationSetup||!uc))return;e.isScrollRestorationSetup=!0,qc=!1;const i=e.options.getScrollRestorationKey||Km;window.history.scrollRestoration="manual";const s=o=>{if(qc||!e.isScrollRestoring)return;let u="";if(o.target===document||o.target===window)u="window";else{const h=o.target.getAttribute("data-scroll-restoration-id");h?u=`[data-scroll-restoration-id="${h}"]`:u=uC(o.target)}const f=i(e.state.location);uc.set(h=>{const d=h[f]||(h[f]={}),y=d[u]||(d[u]={});if(u==="window")y.scrollX=window.scrollX||0,y.scrollY=window.scrollY||0;else if(u){const p=document.querySelector(u);p&&(y.scrollX=p.scrollLeft||0,y.scrollY=p.scrollTop||0)}return h})};typeof document<"u"&&document.addEventListener("scroll",lC(s,100),!0),e.subscribe("onRendered",o=>{const u=i(o.toLocation);if(!e.resetNextScroll){e.resetNextScroll=!0;return}typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation})||(Gx({storageKey:Uc,key:u,behavior:e.options.scrollRestorationBehavior,shouldScrollRestoration:e.isScrollRestoring,scrollToTopSelectors:e.options.scrollToTopSelectors,location:e.history.location}),e.isScrollRestoring&&uc.set(f=>(f[u]||(f[u]={}),f)))})}function fC(e){if(typeof document<"u"&&document.querySelector){const t=e.state.location.state.__hashScrollIntoViewOptions??!0;if(t&&e.state.location.hash!==""){const n=document.getElementById(e.state.location.hash);n&&n.scrollIntoView(t)}}}function hC(e,t=String){const n=new URLSearchParams;for(const i in e){const s=e[i];s!==void 0&&n.set(i,t(s))}return n.toString()}function em(e){return e?e==="false"?!1:e==="true"?!0:+e*0===0&&+e+""===e?+e:e:""}function dC(e){const t=new URLSearchParams(e),n={};for(const[i,s]of t.entries()){const o=n[i];o==null?n[i]=em(s):Array.isArray(o)?o.push(em(s)):n[i]=[o,em(s)]}return n}const mC=gC(JSON.parse),pC=yC(JSON.stringify,JSON.parse);function gC(e){return t=>{t[0]==="?"&&(t=t.substring(1));const n=dC(t);for(const i in n){const s=n[i];if(typeof s=="string")try{n[i]=e(s)}catch{}}return n}}function yC(e,t){const n=typeof t=="function";function i(s){if(typeof s=="object"&&s!==null)try{return e(s)}catch{}else if(n&&typeof s=="string")try{return t(s),e(s)}catch{}return s}return s=>{const o=hC(s,i);return o?`?${o}`:""}}const _n="__root__";function vC(e){if(e.statusCode=e.statusCode||e.code||307,!e.reloadDocument&&typeof e.href=="string")try{new URL(e.href),e.reloadDocument=!0}catch{}const t=new Headers(e.headers);e.href&&t.get("Location")===null&&t.set("Location",e.href);const n=new Response(null,{status:e.statusCode,headers:t});if(n.options=e,e.throw)throw n;return n}function Xn(e){return e instanceof Response&&!!e.options}const Cc=e=>{var t;if(!e.rendered)return e.rendered=!0,(t=e.onReady)==null?void 0:t.call(e)},uf=(e,t)=>!!(e.preload&&!e.router.state.matches.some(n=>n.id===t)),Fx=(e,t)=>{var s;const n=e.router.routesById[t.routeId??""]??e.router.routeTree;!n.options.notFoundComponent&&((s=e.router.options)!=null&&s.defaultNotFoundComponent)&&(n.options.notFoundComponent=e.router.options.defaultNotFoundComponent),Gr(n.options.notFoundComponent);const i=e.matches.find(o=>o.routeId===n.id);Gr(i,"Could not find match for route: "+n.id),e.updateMatch(i.id,o=>({...o,status:"notFound",error:t,isFetching:!1})),t.routerCode==="BEFORE_LOAD"&&n.parentRoute&&(t.routeId=n.parentRoute.id,Fx(e,t))},Li=(e,t,n)=>{var i,s,o;if(!(!Xn(n)&&!Bn(n))){if(Xn(n)&&n.redirectHandled&&!n.options.reloadDocument)throw n;if(t){(i=t._nonReactive.beforeLoadPromise)==null||i.resolve(),(s=t._nonReactive.loaderPromise)==null||s.resolve(),t._nonReactive.beforeLoadPromise=void 0,t._nonReactive.loaderPromise=void 0;const u=Xn(n)?"redirected":"notFound";t._nonReactive.error=n,e.updateMatch(t.id,f=>({...f,status:u,isFetching:!1,error:n})),Bn(n)&&!n.routeId&&(n.routeId=t.routeId),(o=t._nonReactive.loadPromise)==null||o.resolve()}throw Xn(n)?(e.rendered=!0,n.options._fromLocation=e.location,n.redirectHandled=!0,n=e.router.resolveRedirect(n),n):(Fx(e,n),n)}},Qx=(e,t)=>{const n=e.router.getMatch(t);return!!(!e.router.isServer&&n._nonReactive.dehydrated||e.router.isServer&&n.ssr===!1)},Wl=(e,t,n,i)=>{var f,h;const{id:s,routeId:o}=e.matches[t],u=e.router.looseRoutesById[o];if(n instanceof Promise)throw n;n.routerCode=i,e.firstBadMatchIndex??(e.firstBadMatchIndex=t),Li(e,e.router.getMatch(s),n);try{(h=(f=u.options).onError)==null||h.call(f,n)}catch(d){n=d,Li(e,e.router.getMatch(s),n)}e.updateMatch(s,d=>{var y,p;return(y=d._nonReactive.beforeLoadPromise)==null||y.resolve(),d._nonReactive.beforeLoadPromise=void 0,(p=d._nonReactive.loadPromise)==null||p.resolve(),{...d,error:n,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}})},_C=(e,t,n,i)=>{var _;const s=e.router.getMatch(t),o=(_=e.matches[n-1])==null?void 0:_.id,u=o?e.router.getMatch(o):void 0;if(e.router.isShell()){s.ssr=i.id===_n;return}if((u==null?void 0:u.ssr)===!1){s.ssr=!1;return}const f=b=>b===!0&&(u==null?void 0:u.ssr)==="data-only"?"data-only":b,h=e.router.options.defaultSsr??!0;if(i.options.ssr===void 0){s.ssr=f(h);return}if(typeof i.options.ssr!="function"){s.ssr=f(i.options.ssr);return}const{search:d,params:y}=s,p={search:cc(d,s.searchError),params:cc(y,s.paramsError),location:e.location,matches:e.matches.map(b=>({index:b.index,pathname:b.pathname,fullPath:b.fullPath,staticData:b.staticData,id:b.id,routeId:b.routeId,search:cc(b.search,b.searchError),params:cc(b.params,b.paramsError),ssr:b.ssr}))},v=i.options.ssr(p);if(Di(v))return v.then(b=>{s.ssr=f(b??h)});s.ssr=f(v??h)},$x=(e,t,n,i)=>{var u;if(i._nonReactive.pendingTimeout!==void 0)return;const s=n.options.pendingMs??e.router.options.defaultPendingMs;if(!!(e.onReady&&!e.router.isServer&&!uf(e,t)&&(n.options.loader||n.options.beforeLoad||Xx(n))&&typeof s=="number"&&s!==1/0&&(n.options.pendingComponent??((u=e.router.options)==null?void 0:u.defaultPendingComponent)))){const f=setTimeout(()=>{Cc(e)},s);i._nonReactive.pendingTimeout=f}},bC=(e,t,n)=>{const i=e.router.getMatch(t);if(!i._nonReactive.beforeLoadPromise&&!i._nonReactive.loaderPromise)return;$x(e,t,n,i);const s=()=>{const o=e.router.getMatch(t);o.preload&&(o.status==="redirected"||o.status==="notFound")&&Li(e,o,o.error)};return i._nonReactive.beforeLoadPromise?i._nonReactive.beforeLoadPromise.then(s):s()},xC=(e,t,n,i)=>{var U;const s=e.router.getMatch(t),o=s._nonReactive.loadPromise;s._nonReactive.loadPromise=Ys(()=>{o==null||o.resolve()});const{paramsError:u,searchError:f}=s;u&&Wl(e,n,u,"PARSE_PARAMS"),f&&Wl(e,n,f,"VALIDATE_SEARCH"),$x(e,t,i,s);const h=new AbortController,d=(U=e.matches[n-1])==null?void 0:U.id,y=d?e.router.getMatch(d):void 0,v={...(y==null?void 0:y.context)??e.router.options.context??void 0,...s.__routeContext};let _=!1;const b=()=>{_||(_=!0,e.updateMatch(t,$=>({...$,isFetching:"beforeLoad",fetchCount:$.fetchCount+1,abortController:h,context:v})))},E=()=>{var $;($=s._nonReactive.beforeLoadPromise)==null||$.resolve(),s._nonReactive.beforeLoadPromise=void 0,e.updateMatch(t,ne=>({...ne,isFetching:!1}))};if(!i.options.beforeLoad){fo(()=>{b(),E()});return}s._nonReactive.beforeLoadPromise=Ys();const{search:k,params:T,cause:R}=s,L=uf(e,t),z={search:k,abortController:h,params:T,preload:L,context:v,location:e.location,navigate:$=>e.router.navigate({...$,_fromLocation:e.location}),buildLocation:e.router.buildLocation,cause:L?"preload":R,matches:e.matches,...e.router.options.additionalContext},V=$=>{if($===void 0){fo(()=>{b(),E()});return}(Xn($)||Bn($))&&(b(),Wl(e,n,$,"BEFORE_LOAD")),fo(()=>{b(),e.updateMatch(t,ne=>({...ne,__beforeLoadContext:$,context:{...ne.context,...$}})),E()})};let O;try{if(O=i.options.beforeLoad(z),Di(O))return b(),O.catch($=>{Wl(e,n,$,"BEFORE_LOAD")}).then(V)}catch($){b(),Wl(e,n,$,"BEFORE_LOAD")}V(O)},SC=(e,t)=>{const{id:n,routeId:i}=e.matches[t],s=e.router.looseRoutesById[i],o=()=>{if(e.router.isServer){const h=_C(e,n,t,s);if(Di(h))return h.then(f)}return f()},u=()=>xC(e,n,t,s),f=()=>{if(Qx(e,n))return;const h=bC(e,n,s);return Di(h)?h.then(u):u()};return o()},ho=(e,t,n)=>{var o,u,f,h,d,y;const i=e.router.getMatch(t);if(!i||!n.options.head&&!n.options.scripts&&!n.options.headers)return;const s={matches:e.matches,match:i,params:i.params,loaderData:i.loaderData};return Promise.all([(u=(o=n.options).head)==null?void 0:u.call(o,s),(h=(f=n.options).scripts)==null?void 0:h.call(f,s),(y=(d=n.options).headers)==null?void 0:y.call(d,s)]).then(([p,v,_])=>{const b=p==null?void 0:p.meta,E=p==null?void 0:p.links,k=p==null?void 0:p.scripts,T=p==null?void 0:p.styles;return{meta:b,links:E,headScripts:k,headers:_,scripts:v,styles:T}})},Yx=(e,t,n,i)=>{const s=e.matchPromises[n-1],{params:o,loaderDeps:u,abortController:f,cause:h}=e.router.getMatch(t);let d=e.router.options.context??{};for(let p=0;p<=n;p++){const v=e.matches[p];if(!v)continue;const _=e.router.getMatch(v.id);_&&(d={...d,..._.__routeContext??{},..._.__beforeLoadContext??{}})}const y=uf(e,t);return{params:o,deps:u,preload:!!y,parentMatchPromise:s,abortController:f,context:d,location:e.location,navigate:p=>e.router.navigate({...p,_fromLocation:e.location}),cause:y?"preload":h,route:i,...e.router.options.additionalContext}},D0=async(e,t,n,i)=>{var s,o,u,f,h,d;try{const y=e.router.getMatch(t);try{(!e.router.isServer||y.ssr===!0)&&Kx(i);const p=(o=(s=i.options).loader)==null?void 0:o.call(s,Yx(e,t,n,i)),v=i.options.loader&&Di(p);if(!!(v||i._lazyPromise||i._componentsPromise||i.options.head||i.options.scripts||i.options.headers||y._nonReactive.minPendingPromise)&&e.updateMatch(t,T=>({...T,isFetching:"loader"})),i.options.loader){const T=v?await p:p;Li(e,e.router.getMatch(t),T),T!==void 0&&e.updateMatch(t,R=>({...R,loaderData:T}))}i._lazyPromise&&await i._lazyPromise;const b=ho(e,t,i),E=b?await b:void 0,k=y._nonReactive.minPendingPromise;k&&await k,i._componentsPromise&&await i._componentsPromise,e.updateMatch(t,T=>({...T,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),...E}))}catch(p){let v=p;const _=y._nonReactive.minPendingPromise;_&&await _,Bn(p)&&await((f=(u=i.options.notFoundComponent)==null?void 0:u.preload)==null?void 0:f.call(u)),Li(e,e.router.getMatch(t),p);try{(d=(h=i.options).onError)==null||d.call(h,p)}catch(k){v=k,Li(e,e.router.getMatch(t),k)}const b=ho(e,t,i),E=b?await b:void 0;e.updateMatch(t,k=>({...k,error:v,status:"error",isFetching:!1,...E}))}}catch(y){const p=e.router.getMatch(t);if(p){const v=ho(e,t,i);if(v){const _=await v;e.updateMatch(t,b=>({...b,..._}))}p._nonReactive.loaderPromise=void 0}Li(e,p,y)}},EC=async(e,t)=>{var d,y;const{id:n,routeId:i}=e.matches[t];let s=!1,o=!1;const u=e.router.looseRoutesById[i];if(Qx(e,n)){if(e.router.isServer){const p=ho(e,n,u);if(p){const v=await p;e.updateMatch(n,_=>({..._,...v}))}return e.router.getMatch(n)}}else{const p=e.router.getMatch(n);if(p._nonReactive.loaderPromise){if(p.status==="success"&&!e.sync&&!p.preload)return p;await p._nonReactive.loaderPromise;const v=e.router.getMatch(n),_=v._nonReactive.error||v.error;_&&Li(e,v,_)}else{const v=Date.now()-p.updatedAt,_=uf(e,n),b=_?u.options.preloadStaleTime??e.router.options.defaultPreloadStaleTime??3e4:u.options.staleTime??e.router.options.defaultStaleTime??0,E=u.options.shouldReload,k=typeof E=="function"?E(Yx(e,n,t,u)):E,T=!!_&&!e.router.state.matches.some(V=>V.id===n),R=e.router.getMatch(n);R._nonReactive.loaderPromise=Ys(),T!==R.preload&&e.updateMatch(n,V=>({...V,preload:T}));const{status:L,invalid:z}=R;if(s=L==="success"&&(z||(k??v>b)),!(_&&u.options.preload===!1))if(s&&!e.sync)o=!0,(async()=>{var V,O;try{await D0(e,n,t,u);const U=e.router.getMatch(n);(V=U._nonReactive.loaderPromise)==null||V.resolve(),(O=U._nonReactive.loadPromise)==null||O.resolve(),U._nonReactive.loaderPromise=void 0}catch(U){Xn(U)&&await e.router.navigate(U.options)}})();else if(L!=="success"||s&&e.sync)await D0(e,n,t,u);else{const V=ho(e,n,u);if(V){const O=await V;e.updateMatch(n,U=>({...U,...O}))}}}}const f=e.router.getMatch(n);o||((d=f._nonReactive.loaderPromise)==null||d.resolve(),(y=f._nonReactive.loadPromise)==null||y.resolve()),clearTimeout(f._nonReactive.pendingTimeout),f._nonReactive.pendingTimeout=void 0,o||(f._nonReactive.loaderPromise=void 0),f._nonReactive.dehydrated=void 0;const h=o?f.isFetching:!1;return h!==f.isFetching||f.invalid!==!1?(e.updateMatch(n,p=>({...p,isFetching:h,invalid:!1})),e.router.getMatch(n)):f};async function M0(e){const t=Object.assign(e,{matchPromises:[]});!t.router.isServer&&t.router.state.matches.some(n=>n._forcePending)&&Cc(t);try{for(let s=0;s<t.matches.length;s++){const o=SC(t,s);Di(o)&&await o}const n=t.firstBadMatchIndex??t.matches.length;for(let s=0;s<n;s++)t.matchPromises.push(EC(t,s));await Promise.all(t.matchPromises);const i=Cc(t);Di(i)&&await i}catch(n){if(Bn(n)&&!t.preload){const i=Cc(t);throw Di(i)&&await i,n}if(Xn(n))throw n}return t.matches}async function Kx(e){if(!e._lazyLoaded&&e._lazyPromise===void 0&&(e.lazyFn?e._lazyPromise=e.lazyFn().then(t=>{const{id:n,...i}=t.options;Object.assign(e.options,i),e._lazyLoaded=!0,e._lazyPromise=void 0}):e._lazyLoaded=!0),!e._componentsLoaded&&e._componentsPromise===void 0){const t=()=>{var i;const n=[];for(const s of Zx){const o=(i=e.options[s])==null?void 0:i.preload;o&&n.push(o())}if(n.length)return Promise.all(n).then(()=>{e._componentsLoaded=!0,e._componentsPromise=void 0});e._componentsLoaded=!0,e._componentsPromise=void 0};e._componentsPromise=e._lazyPromise?e._lazyPromise.then(t):t()}return e._componentsPromise}function cc(e,t){return t?{status:"error",error:t}:{status:"success",value:e}}function Xx(e){var t;for(const n of Zx)if((t=e.options[n])!=null&&t.preload)return!0;return!1}const Zx=["component","errorComponent","pendingComponent","notFoundComponent"];function wC(e){return{input:({url:t})=>{for(const n of e)t=Jx(n,t);return t},output:({url:t})=>{for(let n=e.length-1;n>=0;n--)t=Wx(e[n],t);return t}}}function TC(e){const t=kc(e.basepath),n=`/${t}`,i=`${n}/`,s=e.caseSensitive?n:n.toLowerCase(),o=e.caseSensitive?i:i.toLowerCase();return{input:({url:u})=>{const f=e.caseSensitive?u.pathname:u.pathname.toLowerCase();return f===s?u.pathname="/":f.startsWith(o)&&(u.pathname=u.pathname.slice(n.length)),u},output:({url:u})=>(u.pathname=Tc(["/",t,u.pathname]),u)}}function Jx(e,t){var i;const n=(i=e==null?void 0:e.input)==null?void 0:i.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Wx(e,t){var i;const n=(i=e==null?void 0:e.output)==null?void 0:i.call(e,{url:t});if(n){if(typeof n=="string")return new URL(n);if(n instanceof URL)return n}return t}function Sa(e){const t=e.resolvedLocation,n=e.location,i=(t==null?void 0:t.pathname)!==n.pathname,s=(t==null?void 0:t.href)!==n.href,o=(t==null?void 0:t.hash)!==n.hash;return{fromLocation:t,toLocation:n,pathChanged:i,hrefChanged:s,hashChanged:o}}class kC{constructor(t){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=>{var v;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,s=this.basepath??(i==null?void 0:i.basepath)??"/",o=this.basepath===void 0,u=i==null?void 0: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(_=>[encodeURIComponent(_),_])):void 0,(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.isServer||(this.history=Uk())),this.origin=this.options.origin,this.origin||(!this.isServer&&(window!=null&&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 Ik(RC(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(_=>!["redirected"].includes(_.status))}}}),cC(this));let f=!1;const h=this.options.basepath??"/",d=this.options.rewrite;if(o||s!==h||u!==d){this.basepath=h;const _=[];kc(h)!==""&&_.push(TC({basepath:h})),d&&_.push(d),this.rewrite=_.length===0?void 0:_.length===1?_[0]:wC(_),this.history&&this.updateLatestLocation(),f=!0}f&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof((v=window.CSS)==null?void 0:v.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:s}=Jk(this.routeTree,this.options.caseSensitive,(u,f)=>{u.init({originalIndex:f})});this.options.routeMasks&&$k(this.options.routeMasks,s),this.routesById=n,this.routesByPath=i,this.processedTree=s;const o=this.options.notFoundRoute;o&&(o.init({originalIndex:99999999999}),this.routesById[o.id]=o)},this.subscribe=(n,i)=>{const s={eventType:n,fn:i};return this.subscribers.add(s),()=>{this.subscribers.delete(s)}},this.emit=n=>{this.subscribers.forEach(i=>{i.eventType===n.type&&i.fn(n)})},this.parseLocation=(n,i)=>{const s=({href:h,state:d})=>{const y=new URL(h,this.origin),p=Jx(this.rewrite,y),v=this.options.parseSearch(p.search),_=this.options.stringifySearch(v);p.search=_;const b=p.href.replace(p.origin,""),{pathname:E,hash:k}=p;return{href:b,publicHref:h,url:p.href,pathname:j0(E),searchStr:_,search:Dn(i==null?void 0:i.search,v),hash:k.split("#").reverse()[0]??"",state:Dn(i==null?void 0:i.state,d)}},o=s(n),{__tempLocation:u,__tempKey:f}=o.state;if(u&&(!f||f===this.tempLocationKey)){const h=s(u);return h.state.key=o.state.key,h.state.__TSR_key=o.state.__TSR_key,delete h.state.__tempLocation,{...h,maskedLocation:o}}return o},this.resolvePathCache=Ic(1e3),this.resolvePathWithBase=(n,i)=>iC({base:n,to:Cp(i),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(n,i,s)=>typeof n=="string"?this.matchRoutesInternal({pathname:n,search:i},s):this.matchRoutesInternal(n,i),this.getMatchedRoutes=n=>AC({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(o=>o.status==="pending"),i=this.state.matches.filter(o=>o.isFetching==="loader");new Set([...this.state.pendingMatches??[],...n,...i]).forEach(o=>{this.cancelMatch(o.id)})},this.buildLocation=n=>{const i=(o={})=>{var N,Q;const u=o._fromLocation||this.pendingBuiltLocation||this.latestLocation,f=this.matchRoutes(u,{_buildLocation:!0}),h=Pc(f);o.from;const d=o.unsafeRelative==="path"?u.pathname:o.from??h.fullPath,y=this.resolvePathWithBase(d,"."),p=h.search,v={...h.params},_=o.to?this.resolvePathWithBase(y,`${o.to}`):this.resolvePathWithBase(y,"."),b=o.params===!1||o.params===null?{}:(o.params??!0)===!0?v:Object.assign(v,_a(o.params,v)),E=Wd({path:_,params:b}).interpolatedPath,k=this.matchRoutes(E,void 0,{_buildLocation:!0}).map(re=>this.looseRoutesById[re.routeId]);if(Object.keys(b).length>0)for(const re of k){const me=((N=re.options.params)==null?void 0:N.stringify)??re.options.stringifyParams;me&&Object.assign(b,me(b))}const T=n.leaveParams?_:j0(Wd({path:_,params:b,decodeCharMap:this.pathParamsDecodeCharMap}).interpolatedPath);let R=p;if(n._includeValidateSearch&&((Q=this.options.search)!=null&&Q.strict)){const re={};k.forEach(me=>{if(me.options.validateSearch)try{Object.assign(re,Xm(me.options.validateSearch,{...re,...R}))}catch{}}),R=re}R=OC({search:R,dest:o,destRoutes:k,_includeValidateSearch:n._includeValidateSearch}),R=Dn(p,R);const L=this.options.stringifySearch(R),z=o.hash===!0?u.hash:o.hash?_a(o.hash,u.hash):void 0,V=z?`#${z}`:"";let O=o.state===!0?u.state:o.state?_a(o.state,u.state):{};O=Dn(u.state,O);const U=`${T}${L}${V}`,$=new URL(U,this.origin),ne=Wx(this.rewrite,$);return{publicHref:ne.pathname+ne.search+ne.hash,href:U,url:ne.href,pathname:T,search:R,searchStr:L,state:O,hash:z??"",unmaskOnReload:o.unmaskOnReload}},s=(o={},u)=>{const f=i(o);let h=u?i(u):void 0;if(!h){const d={};if(this.options.routeMasks){const y=Yk(f.pathname,this.processedTree);if(y){Object.assign(d,y.params);const{from:p,...v}=y.route;u={from:n.from,...v,params:d},h=i(u)}}}return h&&(f.maskedLocation=h),f};return n.mask?s(n,{from:n.from,...n.mask}):s(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:i,...s})=>{const o=()=>{const h=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];h.forEach(y=>{s.state[y]=this.latestLocation.state[y]});const d=ba(s.state,this.latestLocation.state);return h.forEach(y=>{delete s.state[y]}),d},u=xa(this.latestLocation.href)===xa(s.href),f=this.commitLocationPromise;if(this.commitLocationPromise=Ys(()=>{f==null||f.resolve()}),u&&o())this.load();else{let{maskedLocation:h,hashScrollIntoView:d,...y}=s;h&&(y={...h,state:{...h.state,__tempKey:void 0,__tempLocation:{...y,search:y.searchStr,state:{...y.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(y.unmaskOnReload??this.options.unmaskOnReload??!1)&&(y.state.__tempKey=this.tempLocationKey)),y.state.__hashScrollIntoViewOptions=d??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=n,this.history[s.replace?"replace":"push"](y.publicHref,y.state,{ignoreBlocker:i})}return this.resetNextScroll=s.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:i,hashScrollIntoView:s,viewTransition:o,ignoreBlocker:u,href:f,...h}={})=>{if(f){const p=this.history.location.state.__TSR_index,v=Mc(f,{__TSR_index:n?p:p+1});h.to=v.pathname,h.search=this.options.parseSearch(v.search),h.hash=v.hash.slice(1)}const d=this.buildLocation({...h,_includeValidateSearch:!0});this.pendingBuiltLocation=d;const y=this.commitLocation({...d,viewTransition:o,replace:n,resetScroll:i,hashScrollIntoView:s,ignoreBlocker:u});return Promise.resolve().then(()=>{this.pendingBuiltLocation===d&&(this.pendingBuiltLocation=void 0)}),y},this.navigate=async({to:n,reloadDocument:i,href:s,...o})=>{var u;if(!i&&s)try{new URL(`${s}`),i=!0}catch{}if(i){if(s||(s=this.buildLocation({to:n,...o}).url),!o.ignoreBlocker){const f=this.history,h=((u=f.getBlockers)==null?void 0:u.call(f))??[];for(const d of h)if(d!=null&&d.blockerFn&&await d.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return o.replace?window.location.replace(s):window.location.href=s,Promise.resolve()}return this.buildAndCommitLocation({...o,href:s,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}),s=o=>{try{return encodeURI(decodeURI(o))}catch{return o}};if(kc(s(this.latestLocation.href))!==kc(s(i.href))){let o=i.url;throw this.origin&&o.startsWith(this.origin)&&(o=o.replace(this.origin,"")||"/"),vC({href:o})}}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(s=>!n.some(o=>o.id===s.id))}))},this.load=async n=>{let i,s,o;for(o=new Promise(f=>{this.startTransition(async()=>{var h;try{this.beforeLoad();const d=this.latestLocation,y=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Sa({resolvedLocation:y,location:d})}),this.emit({type:"onBeforeLoad",...Sa({resolvedLocation:y,location:d})}),await M0({router:this,sync:n==null?void 0:n.sync,matches:this.state.pendingMatches,location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let p=[],v=[],_=[];fo(()=>{this.__store.setState(b=>{const E=b.matches,k=b.pendingMatches||b.matches;return p=E.filter(T=>!k.some(R=>R.id===T.id)),v=k.filter(T=>!E.some(R=>R.id===T.id)),_=k.filter(T=>E.some(R=>R.id===T.id)),{...b,isLoading:!1,loadedAt:Date.now(),matches:k,pendingMatches:void 0,cachedMatches:[...b.cachedMatches,...p.filter(T=>T.status!=="error"&&T.status!=="notFound")]}}),this.clearExpiredCache()}),[[p,"onLeave"],[v,"onEnter"],[_,"onStay"]].forEach(([b,E])=>{b.forEach(k=>{var T,R;(R=(T=this.looseRoutesById[k.routeId].options)[E])==null||R.call(T,k)})})})})}})}catch(d){Xn(d)?(i=d,this.isServer||this.navigate({...i.options,replace:!0,ignoreBlocker:!0})):Bn(d)&&(s=d),this.__store.setState(y=>({...y,statusCode:i?i.status:s?404:y.matches.some(p=>p.status==="error")?500:200,redirect:i}))}this.latestLoadPromise===o&&((h=this.commitLocationPromise)==null||h.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),f()})}),this.latestLoadPromise=o,await o;this.latestLoadPromise&&o!==this.latestLoadPromise;)await this.latestLoadPromise;let u;this.hasNotFoundMatch()?u=404:this.__store.state.matches.some(f=>f.status==="error")&&(u=500),u!==void 0&&this.__store.setState(f=>({...f,statusCode:u}))},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 s;if(typeof i=="object"&&this.isViewTransitionTypesSupported){const o=this.latestLocation,u=this.state.resolvedLocation,f=typeof i.types=="function"?i.types(Sa({resolvedLocation:u,location:o})):i.types;if(f===!1){n();return}s={update:n,types:f}}else s=n;document.startViewTransition(s)}else n()},this.updateMatch=(n,i)=>{this.startTransition(()=>{var o;const s=(o=this.state.pendingMatches)!=null&&o.some(u=>u.id===n)?"pendingMatches":this.state.matches.some(u=>u.id===n)?"matches":this.state.cachedMatches.some(u=>u.id===n)?"cachedMatches":"";s&&this.__store.setState(u=>{var f;return{...u,[s]:(f=u[s])==null?void 0:f.map(h=>h.id===n?i(h):h)}})})},this.getMatch=n=>{var s;const i=o=>o.id===n;return this.state.cachedMatches.find(i)??((s=this.state.pendingMatches)==null?void 0:s.find(i))??this.state.matches.find(i)},this.invalidate=n=>{const i=s=>{var o;return((o=n==null?void 0:n.filter)==null?void 0:o.call(n,s))??!0?{...s,invalid:!0,...n!=null&&n.forcePending||s.status==="error"||s.status==="notFound"?{status:"pending",error:void 0}:void 0}:s};return this.__store.setState(s=>{var o;return{...s,matches:s.matches.map(i),cachedMatches:s.cachedMatches.map(i),pendingMatches:(o=s.pendingMatches)==null?void 0:o.map(i)}}),this.shouldViewTransition=!1,this.load({sync:n==null?void 0:n.sync})},this.resolveRedirect=n=>{if(!n.options.href){const i=this.buildLocation(n.options);let s=i.url;this.origin&&s.startsWith(this.origin)&&(s=s.replace(this.origin,"")||"/"),n.options.href=i.href,n.headers.set("Location",s)}return n.headers.get("Location")||n.headers.set("Location",n.options.href),n},this.clearCache=n=>{const i=n==null?void 0:n.filter;i!==void 0?this.__store.setState(s=>({...s,cachedMatches:s.cachedMatches.filter(o=>!i(o))})):this.__store.setState(s=>({...s,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=i=>{const s=this.looseRoutesById[i.routeId];if(!s.options.loader)return!0;const o=(i.preload?s.options.preloadGcTime??this.options.defaultPreloadGcTime:s.options.gcTime??this.options.defaultGcTime)??300*1e3;return i.status==="error"?!0:Date.now()-i.updatedAt>=o};this.clearCache({filter:n})},this.loadRouteChunk=Kx,this.preloadRoute=async n=>{const i=this.buildLocation(n);let s=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:n});const o=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(f=>f.id)),u=new Set([...o,...this.state.cachedMatches.map(f=>f.id)]);fo(()=>{s.forEach(f=>{u.has(f.id)||this.__store.setState(h=>({...h,cachedMatches:[...h.cachedMatches,f]}))})});try{return s=await M0({router:this,matches:s,location:i,preload:!0,updateMatch:(f,h)=>{o.has(f)?s=s.map(d=>d.id===f?h(d):d):this.updateMatch(f,h)}}),s}catch(f){if(Xn(f))return f.options.reloadDocument?void 0:await this.preloadRoute({...f.options,_fromLocation:i});Bn(f)||console.error(f);return}},this.matchRoute=(n,i)=>{const s={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},o=this.buildLocation(s);if(i!=null&&i.pending&&this.state.status!=="pending")return!1;const f=((i==null?void 0:i.pending)===void 0?!this.state.isLoading:i.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,h=Kk(o.pathname,(i==null?void 0:i.caseSensitive)??!1,(i==null?void 0:i.fuzzy)??!1,f.pathname,this.processedTree);return!h||n.params&&!ba(h.params,n.params,{partial:!0})?!1:(i==null?void 0:i.includeSearch)??!0?ba(f.search,o.search,{partial:!0})?h.params:!1:h.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,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??pC,parseSearch:t.parseSearch??mC}),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(t,n){const i=this.getMatchedRoutes(t.pathname),{foundRoute:s,routeParams:o}=i;let{matchedRoutes:u}=i,f=!1;(s?s.path!=="/"&&o["**"]:xa(t.pathname))&&(this.options.notFoundRoute?u=[...u,this.options.notFoundRoute]:f=!0);const h=(()=>{if(f){if(this.options.notFoundMode!=="root")for(let p=u.length-1;p>=0;p--){const v=u[p];if(v.children)return v.id}return _n}})(),d=[],y=p=>(p==null?void 0:p.id)?p.context??this.options.context??void 0:this.options.context??void 0;return u.forEach((p,v)=>{var me,le,ae;const _=d[v-1],[b,E,k]=(()=>{const q=(_==null?void 0:_.search)??t.search,te=(_==null?void 0:_._strictSearch)??void 0;try{const fe=Xm(p.options.validateSearch,{...q})??void 0;return[{...q,...fe},{...te,...fe},void 0]}catch(fe){let Ee=fe;if(fe instanceof Vc||(Ee=new Vc(fe.message,{cause:fe})),n!=null&&n.throwOnError)throw Ee;return[q,{},Ee]}})(),T=((le=(me=p.options).loaderDeps)==null?void 0:le.call(me,{search:b}))??"",R=T?JSON.stringify(T):"",{interpolatedPath:L,usedParams:z}=Wd({path:p.fullPath,params:o,decodeCharMap:this.pathParamsDecodeCharMap}),V=p.id+L+R,O=this.getMatch(V),U=this.state.matches.find(q=>q.routeId===p.id),$=(O==null?void 0:O._strictParams)??z;let ne;if(!O){const q=((ae=p.options.params)==null?void 0:ae.parse)??p.options.parseParams;if(q)try{Object.assign($,q($))}catch(te){if(Bn(te)||Xn(te)?ne=te:ne=new CC(te.message,{cause:te}),n!=null&&n.throwOnError)throw ne}}Object.assign(o,$);const N=U?"stay":"enter";let Q;if(O)Q={...O,cause:N,params:U?Dn(U.params,o):o,_strictParams:$,search:Dn(U?U.search:O.search,b),_strictSearch:E};else{const q=p.options.loader||p.options.beforeLoad||p.lazyFn||Xx(p)?"pending":"success";Q={id:V,index:v,routeId:p.id,params:U?Dn(U.params,o):o,_strictParams:$,pathname:L,updatedAt:Date.now(),search:U?Dn(U.search,b):b,_strictSearch:E,searchError:void 0,status:q,isFetching:!1,error:void 0,paramsError:ne,__routeContext:void 0,_nonReactive:{loadPromise:Ys()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:N,loaderDeps:U?Dn(U.loaderDeps,T):T,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:p.options.staticData||{},fullPath:p.fullPath}}n!=null&&n.preload||(Q.globalNotFound=h===p.id),Q.searchError=k;const re=y(_);Q.context={...re,...Q.__routeContext,...Q.__beforeLoadContext},d.push(Q)}),d.forEach((p,v)=>{const _=this.looseRoutesById[p.routeId];if(!this.getMatch(p.id)&&(n==null?void 0:n._buildLocation)!==!0){const E=d[v-1],k=y(E);if(_.options.context){const T={deps:p.loaderDeps,params:p.params,context:k??{},location:t,navigate:R=>this.navigate({...R,_fromLocation:t}),buildLocation:this.buildLocation,cause:p.cause,abortController:p.abortController,preload:!!p.preload,matches:d};p.__routeContext=_.options.context(T)??void 0}p.context={...k,...p.__routeContext,...p.__beforeLoadContext}}}),d}}class Vc extends Error{}class CC extends Error{}function RC(e){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:e,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Xm(e,t){if(e==null)return{};if("~standard"in e){const n=e["~standard"].validate(t);if(n instanceof Promise)throw new Vc("Async validation not supported");if(n.issues)throw new Vc(JSON.stringify(n.issues,void 0,2),{cause:n});return n.value}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function AC({pathname:e,routesById:t,processedTree:n}){const i={},s=xa(e);let o;const u=Xk(s,n,!0);return u&&(o=u.route,Object.assign(i,u.params)),{matchedRoutes:(u==null?void 0:u.branch)||[t[_n]],routeParams:i,foundRoute:o}}function OC({search:e,dest:t,destRoutes:n,_includeValidateSearch:i}){const s=n.reduce((f,h)=>{var y;const d=[];if("search"in h.options)(y=h.options.search)!=null&&y.middlewares&&d.push(...h.options.search.middlewares);else if(h.options.preSearchFilters||h.options.postSearchFilters){const p=({search:v,next:_})=>{let b=v;"preSearchFilters"in h.options&&h.options.preSearchFilters&&(b=h.options.preSearchFilters.reduce((k,T)=>T(k),v));const E=_(b);return"postSearchFilters"in h.options&&h.options.postSearchFilters?h.options.postSearchFilters.reduce((k,T)=>T(k),E):E};d.push(p)}if(i&&h.options.validateSearch){const p=({search:v,next:_})=>{const b=_(v);try{return{...b,...Xm(h.options.validateSearch,b)??void 0}}catch{return b}};d.push(p)}return f.concat(d)},[])??[],o=({search:f})=>t.search?t.search===!0?f:_a(t.search,f):{};s.push(o);const u=(f,h)=>{if(f>=s.length)return h;const d=s[f];return d({search:h,next:p=>u(f+1,p)})};return u(0,e)}const LC="Error preloading route! ☝️";class e1{constructor(t){if(this.init=n=>{var d,y;this.originalIndex=n.originalIndex;const i=this.options,s=!(i!=null&&i.path)&&!(i!=null&&i.id);this.parentRoute=(y=(d=this.options).getParentRoute)==null?void 0:y.call(d),s?this._path=_n:this.parentRoute||Gr(!1);let o=s?_n:i==null?void 0:i.path;o&&o!=="/"&&(o=Vx(o));const u=(i==null?void 0:i.id)||o;let f=s?_n:Tc([this.parentRoute.id===_n?"":this.parentRoute.id,u]);o===_n&&(o="/"),f!==_n&&(f=Tc(["/",f]));const h=f===_n?"/":Tc([this.parentRoute.fullPath,o]);this._path=o,this._id=f,this._fullPath=h,this._to=h},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=t||{},this.isRoot=!(t!=null&&t.getParentRoute),t!=null&&t.id&&(t!=null&&t.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 NC{constructor({id:t}){this.notFound=n=>Hx({routeId:this.id,...n}),this.id=t}}class jC extends e1{constructor(t){super(t)}}function Rp(e){const t=e.errorComponent??cf;return S.jsx(DC,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:i})=>n?ie.createElement(t,{error:n,reset:i}):e.children})}class DC extends ie.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function cf({error:e}){const[t,n]=ie.useState(!1);return S.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[S.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),S.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(i=>!i),children:t?"Hide Error":"Show Error"})]}),S.jsx("div",{style:{height:".25rem"}}),t?S.jsx("div",{children:S.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?S.jsx("code",{children:e.message}):null})}):null]})}function MC({children:e,fallback:t=null}){return PC()?S.jsx($s.Fragment,{children:e}):S.jsx($s.Fragment,{children:t})}function PC(){return $s.useSyncExternalStore(zC,()=>!0,()=>!1)}function zC(){return()=>{}}var tm={exports:{}},nm={},rm={exports:{}},im={};/**
51
51
  * @license React
52
52
  * use-sync-external-store-shim.production.js
53
53
  *
@@ -55,7 +55,7 @@ Error generating stack: `+c.message+`
55
55
  *
56
56
  * This source code is licensed under the MIT license found in the
57
57
  * LICENSE file in the root directory of this source tree.
58
- */var D0;function DC(){if(D0)return rm;D0=1;var e=Po();function t(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,s=e.useEffect,o=e.useLayoutEffect,u=e.useDebugValue;function f(p,v){var _=v(),x=i({inst:{value:_,getSnapshot:v}}),E=x[0].inst,k=x[1];return o(function(){E.value=_,E.getSnapshot=v,h(E)&&k({inst:E})},[p,_,v]),s(function(){return h(E)&&k({inst:E}),p(function(){h(E)&&k({inst:E})})},[p]),u(_),_}function h(p){var v=p.getSnapshot;p=p.value;try{var _=v();return!n(p,_)}catch{return!0}}function d(p,v){return v()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:f;return rm.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,rm}var M0;function MC(){return M0||(M0=1,nm.exports=DC()),nm.exports}/**
58
+ */var P0;function IC(){if(P0)return im;P0=1;var e=Po();function t(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,s=e.useEffect,o=e.useLayoutEffect,u=e.useDebugValue;function f(p,v){var _=v(),b=i({inst:{value:_,getSnapshot:v}}),E=b[0].inst,k=b[1];return o(function(){E.value=_,E.getSnapshot=v,h(E)&&k({inst:E})},[p,_,v]),s(function(){return h(E)&&k({inst:E}),p(function(){h(E)&&k({inst:E})})},[p]),u(_),_}function h(p){var v=p.getSnapshot;p=p.value;try{var _=v();return!n(p,_)}catch{return!0}}function d(p,v){return v()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:f;return im.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,im}var z0;function BC(){return z0||(z0=1,rm.exports=IC()),rm.exports}/**
59
59
  * @license React
60
60
  * use-sync-external-store-shim/with-selector.production.js
61
61
  *
@@ -63,202 +63,202 @@ Error generating stack: `+c.message+`
63
63
  *
64
64
  * This source code is licensed under the MIT license found in the
65
65
  * LICENSE file in the root directory of this source tree.
66
- */var P0;function PC(){if(P0)return tm;P0=1;var e=Po(),t=MC();function n(d,y){return d===y&&(d!==0||1/d===1/y)||d!==d&&y!==y}var i=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,o=e.useRef,u=e.useEffect,f=e.useMemo,h=e.useDebugValue;return tm.useSyncExternalStoreWithSelector=function(d,y,p,v,_){var x=o(null);if(x.current===null){var E={hasValue:!1,value:null};x.current=E}else E=x.current;x=f(function(){function w(A){if(!C){if(C=!0,L=A,A=v(A),_!==void 0&&E.hasValue){var q=E.value;if(_(q,A))return z=q}return z=A}if(q=z,i(L,A))return q;var $=v(A);return _!==void 0&&_(q,$)?(L=A,q):(L=A,z=$)}var C=!1,L,z,B=p===void 0?null:p;return[function(){return w(y())},B===null?void 0:function(){return w(B())}]},[y,p,v,_]);var k=s(d,x[0],x[1]);return u(function(){E.hasValue=!0,E.value=k},[k]),h(k),k},tm}var z0;function zC(){return z0||(z0=1,em.exports=PC()),em.exports}var IC=zC();function BC(e,t=i=>i,n={}){const i=n.equal??UC;return IC.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,i)}function UC(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,s]of e)if(!t.has(i)||!Object.is(s,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const n=I0(e);if(n.length!==I0(t).length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Object.is(e[n[i]],t[n[i]]))return!1;return!0}function I0(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}const im=ie.createContext(null);function e1(){return typeof document>"u"?im:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=im,im)}function Yt(e){const t=ie.useContext(e1());return e==null||e.warn,t}function $t(e){const t=Yt({warn:(e==null?void 0:e.router)===void 0}),n=(e==null?void 0:e.router)||t,i=ie.useRef(void 0);return BC(n.__store,s=>{if(e!=null&&e.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const o=Dn(i.current,e.select(s));return i.current=o,o}return e.select(s)}return s})}const ff=ie.createContext(void 0),qC=ie.createContext(void 0);function Un(e){const t=ie.useContext(e.from?qC:ff);return $t({select:i=>{const s=i.matches.find(o=>e.from?e.from===o.routeId:o.id===t);if(Gr(!((e.shouldThrow??!0)&&!s),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),s!==void 0)return e.select?e.select(s):s},structuralSharing:e.structuralSharing})}function hf(e){return Un({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function df(e){const{select:t,...n}=e;return Un({...n,select:i=>t?t(i.loaderDeps):i.loaderDeps})}function Ws(e){return Un({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function mf(e){return Un({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}const fc=typeof window<"u"?ie.useLayoutEffect:ie.useEffect;function am(e){const t=ie.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function VC(e,t,n={},i={}){ie.useEffect(()=>{if(!e.current||i.disabled||typeof IntersectionObserver!="function")return;const s=new IntersectionObserver(([o])=>{t(o)},n);return s.observe(e.current),()=>{s.disconnect()}},[t,n,i.disabled,e])}function HC(e){const t=ie.useRef(null);return ie.useImperativeHandle(e,()=>t.current,[]),t}function zo(e){const t=Yt();return ie.useCallback(n=>t.navigate({...n,from:n.from??(e==null?void 0:e.from)}),[e==null?void 0:e.from,t])}var GC=kx();function FC(e,t){const n=Yt(),[i,s]=ie.useState(!1),o=ie.useRef(!1),u=HC(t),{activeProps:f,inactiveProps:h,activeOptions:d,to:y,preload:p,preloadDelay:v,hashScrollIntoView:_,replace:x,startTransition:E,resetScroll:k,viewTransition:w,children:C,target:L,disabled:z,style:B,className:A,onClick:q,onFocus:$,onMouseEnter:ne,onMouseLeave:N,onTouchStart:Q,ignoreBlocker:re,params:me,search:le,hash:ae,state:V,mask:te,reloadDocument:fe,unsafeRelative:Ee,from:j,_fromLocation:P,...X}=e,O=$t({select:Ue=>Ue.location.search,structuralSharing:!0}),ue=e.from,ge=ie.useMemo(()=>({...e,from:ue}),[n,O,ue,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),he=ie.useMemo(()=>n.buildLocation({...ge}),[n,ge]),Se=ie.useMemo(()=>{if(z)return;let Ue=he.maskedLocation?he.maskedLocation.url:he.url,Be=!1;return n.origin&&(Ue.startsWith(n.origin)?Ue=n.history.createHref(Ue.replace(n.origin,""))||"/":Be=!0),{href:Ue,external:Be}},[z,he.maskedLocation,he.url,n.origin,n.history]),Qe=ie.useMemo(()=>{if(Se!=null&&Se.external)return Se.href;try{return new URL(y),y}catch{}},[y,Se]),Me=e.reloadDocument||Qe?!1:p??n.options.defaultPreload,Dt=v??n.options.defaultPreloadDelay??0,on=$t({select:Ue=>{if(Qe)return!1;if(d!=null&&d.exact){if(!Wk(Ue.location.pathname,he.pathname,n.basepath))return!1}else{const Be=Bc(Ue.location.pathname,n.basepath),Ut=Bc(he.pathname,n.basepath);if(!(Be.startsWith(Ut)&&(Be.length===Ut.length||Be[Ut.length]==="/")))return!1}return((d==null?void 0:d.includeSearch)??!0)&&!ba(Ue.location.search,he.search,{partial:!(d!=null&&d.exact),ignoreUndefined:!(d!=null&&d.explicitUndefined)})?!1:d!=null&&d.includeHash?Ue.location.hash===he.hash:!0}}),un=ie.useCallback(()=>{n.preloadRoute({...ge}).catch(Ue=>{console.warn(Ue),console.warn(CC)})},[n,ge]),Na=ie.useCallback(Ue=>{Ue!=null&&Ue.isIntersecting&&un()},[un]);VC(u,Na,XC,{disabled:!!z||Me!=="viewport"}),ie.useEffect(()=>{o.current||!z&&Me==="render"&&(un(),o.current=!0)},[z,un,Me]);const qn=Ue=>{const Be=Ue.currentTarget.getAttribute("target"),Ut=L!==void 0?L:Be;if(!z&&!ZC(Ue)&&!Ue.defaultPrevented&&(!Ut||Ut==="_self")&&Ue.button===0){Ue.preventDefault(),GC.flushSync(()=>{s(!0)});const Z=n.subscribe("onResolved",()=>{Z(),s(!1)});n.navigate({...ge,replace:x,resetScroll:k,hashScrollIntoView:_,startTransition:E,viewTransition:w,ignoreBlocker:re})}};if(Qe)return{...X,ref:u,href:Qe,...C&&{children:C},...L&&{target:L},...z&&{disabled:z},...B&&{style:B},...A&&{className:A},...q&&{onClick:q},...$&&{onFocus:$},...ne&&{onMouseEnter:ne},...N&&{onMouseLeave:N},...Q&&{onTouchStart:Q}};const dr=Ue=>{z||Me&&un()},$r=dr,ja=Ue=>{if(!(z||!Me))if(!Dt)un();else{const Be=Ue.target;if(Wl.has(Be))return;const Ut=setTimeout(()=>{Wl.delete(Be),un()},Dt);Wl.set(Be,Ut)}},Da=Ue=>{if(z||!Me||!Dt)return;const Be=Ue.target,Ut=Wl.get(Be);Ut&&(clearTimeout(Ut),Wl.delete(Be))},Vn=on?_a(f,{})??QC:sm,Hn=on?sm:_a(h,{})??sm,Yr=[A,Vn.className,Hn.className].filter(Boolean).join(" "),Ma=(B||Vn.style||Hn.style)&&{...B,...Vn.style,...Hn.style};return{...X,...Vn,...Hn,href:Se==null?void 0:Se.href,ref:u,onClick:eo([q,qn]),onFocus:eo([$,dr]),onMouseEnter:eo([ne,ja]),onMouseLeave:eo([N,Da]),onTouchStart:eo([Q,$r]),disabled:!!z,target:L,...Ma&&{style:Ma},...Yr&&{className:Yr},...z&&$C,...on&&YC,...i&&KC}}const sm={},QC={className:"active"},$C={role:"link","aria-disabled":!0},YC={"data-status":"active","aria-current":"page"},KC={"data-transitioning":"transitioning"},Wl=new WeakMap,XC={rootMargin:"100px"},eo=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}},ut=ie.forwardRef((e,t)=>{const{_asChild:n,...i}=e,{type:s,ref:o,...u}=FC(i,t),f=typeof i.children=="function"?i.children({isActive:u["data-status"]==="active"}):i.children;return n===void 0&&delete u.disabled,ie.createElement(n||"a",{...u,ref:o},f)});function ZC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function JC(e){return new WC({id:e})}class WC extends RC{constructor({id:t}){super({id:t}),this.useMatch=n=>Un({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>Un({from:this.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>mf({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>Ws({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>df({...n,from:this.id,strict:!1}),this.useLoaderData=n=>hf({...n,from:this.id,strict:!1}),this.useNavigate=()=>{const n=Yt();return zo({from:n.routesById[this.id].fullPath})},this.notFound=n=>Vx({routeId:this.id,...n}),this.Link=Qs.forwardRef((n,i)=>{const o=Yt().routesById[this.id].fullPath;return S.jsx(ut,{ref:i,from:o,...n})})}}class eR extends Wx{constructor(t){super(t),this.useMatch=n=>Un({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>Un({...n,from:this.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>mf({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>Ws({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>df({...n,from:this.id}),this.useLoaderData=n=>hf({...n,from:this.id}),this.useNavigate=()=>zo({from:this.fullPath}),this.Link=Qs.forwardRef((n,i)=>S.jsx(ut,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function ur(e){return new eR(e)}class tR extends AC{constructor(t){super(t),this.useMatch=n=>Un({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>Un({...n,from:this.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>mf({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>Ws({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>df({...n,from:this.id}),this.useLoaderData=n=>hf({...n,from:this.id}),this.useNavigate=()=>zo({from:this.fullPath}),this.Link=Qs.forwardRef((n,i)=>S.jsx(ut,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function nR(e){return new tR(e)}function B0(e){return typeof e=="object"?new U0(e,{silent:!0}).createRoute(e):new U0(e,{silent:!0}).createRoute}class U0{constructor(t,n){this.path=t,this.createRoute=i=>{this.silent;const s=ur(i);return s.isRoot=!1,s},this.silent=n==null?void 0:n.silent}}class q0{constructor(t){this.useMatch=n=>Un({select:n==null?void 0:n.select,from:this.options.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>Un({from:this.options.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>mf({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.options.id}),this.useParams=n=>Ws({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>df({...n,from:this.options.id}),this.useLoaderData=n=>hf({...n,from:this.options.id}),this.useNavigate=()=>{const n=Yt();return zo({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function V0(e){return typeof e=="object"?new q0(e):t=>new q0({id:e,...t})}function rR(){const e=Yt(),t=ie.useRef({router:e,mounted:!1}),[n,i]=ie.useState(!1),{hasPendingMatches:s,isLoading:o}=$t({select:p=>({isLoading:p.isLoading,hasPendingMatches:p.matches.some(v=>v.status==="pending")}),structuralSharing:!0}),u=am(o),f=o||n||s,h=am(f),d=o||s,y=am(d);return e.startTransition=p=>{i(!0),ie.startTransition(()=>{p(),i(!1)})},ie.useEffect(()=>{const p=e.history.subscribe(e.load),v=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return xa(e.latestLocation.href)!==xa(v.href)&&e.commitLocation({...v,replace:!0}),()=>{p()}},[e,e.history]),fc(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(v){console.error(v)}})()},[e]),fc(()=>{u&&!o&&e.emit({type:"onLoad",...Sa(e.state)})},[u,e,o]),fc(()=>{y&&!d&&e.emit({type:"onBeforeRouteMount",...Sa(e.state)})},[d,y,e]),fc(()=>{if(h&&!f){const p=Sa(e.state);e.emit({type:"onResolved",...p}),e.__store.setState(v=>({...v,status:"idle",resolvedLocation:v.location})),p.hrefChanged&&lC(e)}},[f,h,e]),null}function iR(e){const t=$t({select:n=>`not-found-${n.location.pathname}-${n.status}`});return S.jsx(Cp,{getResetKey:()=>t,onCatch:(n,i)=>{var s;if(Bn(n))(s=e.onCatch)==null||s.call(e,n,i);else throw n},errorComponent:({error:n})=>{var i;if(Bn(n))return(i=e.fallback)==null?void 0:i.call(e,n);throw n},children:e.children})}function aR(){return S.jsx("p",{children:"Not Found"})}function Rs(e){return S.jsx(S.Fragment,{children:e.children})}function t1(e,t,n){return t.options.notFoundComponent?S.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?S.jsx(e.options.defaultNotFoundComponent,{...n}):S.jsx(aR,{})}function sR({children:e}){var n;const t=Yt();return t.isServer?S.jsx("script",{nonce:(n=t.options.ssr)==null?void 0:n.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:e+';typeof $_TSR !== "undefined" && $_TSR.c()'}}):null}function lR(){const e=Yt();if(!e.isScrollRestoring||!e.isServer||typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return null;const n=(e.options.getScrollRestorationKey||Ym)(e.latestLocation),i=n!==Ym(e.latestLocation)?n:void 0,s={storageKey:Uc,shouldScrollRestoration:!0};return i&&(s.key=i),S.jsx(sR,{children:`(${Hx.toString()})(${JSON.stringify(s)})`})}const n1=ie.memo(function({matchId:t}){var w,C;const n=Yt(),i=$t({select:L=>{const z=L.matches.find(B=>B.id===t);return Gr(z),{routeId:z.routeId,ssr:z.ssr,_displayPending:z._displayPending}},structuralSharing:!0}),s=n.routesById[i.routeId],o=s.options.pendingComponent??n.options.defaultPendingComponent,u=o?S.jsx(o,{}):null,f=s.options.errorComponent??n.options.defaultErrorComponent,h=s.options.onCatch??n.options.defaultOnCatch,d=s.isRoot?s.options.notFoundComponent??((w=n.options.notFoundRoute)==null?void 0:w.options.component):s.options.notFoundComponent,y=i.ssr===!1||i.ssr==="data-only",p=(!s.isRoot||s.options.wrapInSuspense||y)&&(s.options.wrapInSuspense??o??(((C=s.options.errorComponent)==null?void 0:C.preload)||y))?ie.Suspense:Rs,v=f?Cp:Rs,_=d?iR:Rs,x=$t({select:L=>L.loadedAt}),E=$t({select:L=>{var B;const z=L.matches.findIndex(A=>A.id===t);return(B=L.matches[z-1])==null?void 0:B.routeId}}),k=s.isRoot?s.options.shellComponent??Rs:Rs;return S.jsxs(k,{children:[S.jsx(ff.Provider,{value:t,children:S.jsx(p,{fallback:u,children:S.jsx(v,{getResetKey:()=>x,errorComponent:f||cf,onCatch:(L,z)=>{if(Bn(L))throw L;h==null||h(L,z)},children:S.jsx(_,{fallback:L=>{if(!d||L.routeId&&L.routeId!==i.routeId||!L.routeId&&!s.isRoot)throw L;return ie.createElement(d,L)},children:y||i._displayPending?S.jsx(LC,{fallback:u,children:S.jsx(H0,{matchId:t})}):S.jsx(H0,{matchId:t})})})})}),E===_n&&n.options.scrollRestoration?S.jsxs(S.Fragment,{children:[S.jsx(oR,{}),S.jsx(lR,{})]}):null]})});function oR(){const e=Yt(),t=ie.useRef(void 0);return S.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Sa(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const H0=ie.memo(function({matchId:t}){var h,d,y,p;const n=Yt(),{match:i,key:s,routeId:o}=$t({select:v=>{const _=v.matches.find(C=>C.id===t),x=_.routeId,E=n.routesById[x].options.remountDeps??n.options.defaultRemountDeps,k=E==null?void 0:E({routeId:x,loaderDeps:_.loaderDeps,params:_._strictParams,search:_._strictSearch});return{key:k?JSON.stringify(k):void 0,routeId:x,match:{id:_.id,status:_.status,error:_.error,_forcePending:_._forcePending,_displayPending:_._displayPending}}},structuralSharing:!0}),u=n.routesById[o],f=ie.useMemo(()=>{const v=u.options.component??n.options.defaultComponent;return v?S.jsx(v,{},s):S.jsx(r1,{})},[s,u.options.component,n.options.defaultComponent]);if(i._displayPending)throw(h=n.getMatch(i.id))==null?void 0:h._nonReactive.displayPendingPromise;if(i._forcePending)throw(d=n.getMatch(i.id))==null?void 0:d._nonReactive.minPendingPromise;if(i.status==="pending"){const v=u.options.pendingMinMs??n.options.defaultPendingMinMs;if(v){const _=n.getMatch(i.id);if(_&&!_._nonReactive.minPendingPromise&&!n.isServer){const x=$s();_._nonReactive.minPendingPromise=x,setTimeout(()=>{x.resolve(),_._nonReactive.minPendingPromise=void 0},v)}}throw(y=n.getMatch(i.id))==null?void 0:y._nonReactive.loadPromise}if(i.status==="notFound")return Gr(Bn(i.error)),t1(n,u,i.error);if(i.status==="redirected")throw Gr(Xn(i.error)),(p=n.getMatch(i.id))==null?void 0:p._nonReactive.loadPromise;if(i.status==="error"){if(n.isServer){const v=(u.options.errorComponent??n.options.defaultErrorComponent)||cf;return S.jsx(v,{error:i.error,reset:void 0,info:{componentStack:""}})}throw i.error}return f}),r1=ie.memo(function(){const t=Yt(),n=ie.useContext(ff),i=$t({select:d=>{var y;return(y=d.matches.find(p=>p.id===n))==null?void 0:y.routeId}}),s=t.routesById[i],o=$t({select:d=>{const p=d.matches.find(v=>v.id===n);return Gr(p),p.globalNotFound}}),u=$t({select:d=>{var v;const y=d.matches,p=y.findIndex(_=>_.id===n);return(v=y[p+1])==null?void 0:v.id}}),f=t.options.defaultPendingComponent?S.jsx(t.options.defaultPendingComponent,{}):null;if(o)return t1(t,s,void 0);if(!u)return null;const h=S.jsx(n1,{matchId:u});return i===_n?S.jsx(ie.Suspense,{fallback:f,children:h}):h});function uR(){const e=Yt(),n=e.routesById[_n].options.pendingComponent??e.options.defaultPendingComponent,i=n?S.jsx(n,{}):null,s=e.isServer||typeof document<"u"&&e.ssr?Rs:ie.Suspense,o=S.jsxs(s,{fallback:i,children:[!e.isServer&&S.jsx(rR,{}),S.jsx(cR,{})]});return e.options.InnerWrap?S.jsx(e.options.InnerWrap,{children:o}):o}function cR(){const e=Yt(),t=$t({select:s=>{var o;return(o=s.matches[0])==null?void 0:o.id}}),n=$t({select:s=>s.loadedAt}),i=t?S.jsx(n1,{matchId:t}):null;return S.jsx(ff.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?i:S.jsx(Cp,{getResetKey:()=>n,errorComponent:cf,onCatch:s=>{s.message||s.toString()},children:i})})}const fR=e=>new hR(e);class hR extends SC{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=B0,globalThis.createLazyFileRoute=V0):typeof window<"u"&&(window.createFileRoute=B0,window.createLazyFileRoute=V0);function dR({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const i=e1(),s=S.jsx(i.Provider,{value:e,children:t});return e.options.Wrap?S.jsx(e.options.Wrap,{children:s}):s}function mR({router:e,...t}){return S.jsx(dR,{router:e,...t,children:S.jsx(uR,{})})}var pR=Object.create,i1=Object.defineProperty,gR=Object.getOwnPropertyDescriptor,a1=Object.getOwnPropertyNames,yR=Object.getPrototypeOf,vR=Object.prototype.hasOwnProperty,cr=(e,t)=>function(){return t||(0,e[a1(e)[0]])((t={exports:{}}).exports,t),t.exports},_R=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=a1(t),o=0,u=s.length,f;o<u;o++)f=s[o],!vR.call(e,f)&&f!==n&&i1(e,f,{get:(h=>t[h]).bind(null,f),enumerable:!(i=gR(t,f))||i.enumerable});return e},ht=(e,t,n)=>(n=e!=null?pR(yR(e)):{},_R(i1(n,"default",{value:e,enumerable:!0}),e)),s1=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(i){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),bR=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=s1().default;function i(s,o){if(n(s)!="object"||!s)return s;var u=s[Symbol.toPrimitive];if(u!==void 0){var f=u.call(s,o||"default");if(n(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),xR=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=s1().default,i=bR();function s(o){var u=i(o,"string");return n(u)=="symbol"?u:u+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),Aa=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=xR();function i(s,o,u){return(o=n(o))in s?Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[o]=u,s}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),Jn=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Aa();function i(o,u){var f=Object.keys(o);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(o);u&&(h=h.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),f.push.apply(f,h)}return f}function s(o){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?i(Object(f),!0).forEach(function(h){n(o,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(f)):i(Object(f)).forEach(function(h){Object.defineProperty(o,h,Object.getOwnPropertyDescriptor(f,h))})}return o}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}});function Oa(e){const t={subscribe(n){let i=null,s=!1,o=!1,u=!1;function f(){if(i===null){u=!0;return}o||(o=!0,typeof i=="function"?i():i&&i.unsubscribe())}return i=e({next(h){var d;s||(d=n.next)===null||d===void 0||d.call(n,h)},error(h){var d;s||(s=!0,(d=n.error)===null||d===void 0||d.call(n,h),f())},complete(){var h;s||(s=!0,(h=n.complete)===null||h===void 0||h.call(n),f())}}),u&&f(),{unsubscribe:f}},pipe(...n){return n.reduce(SR,t)}};return t}function SR(e,t){return t(e)}function ER(e){const t=new AbortController;return new Promise((i,s)=>{let o=!1;function u(){o||(o=!0,f.unsubscribe())}t.signal.addEventListener("abort",()=>{s(t.signal.reason)});const f=e.subscribe({next(h){o=!0,i(h),u()},error(h){s(h)},complete(){t.abort(),u()}})})}function wR(e){return t=>{let n=0,i=null;const s=[];function o(){i||(i=t.subscribe({next(f){for(const d of s){var h;(h=d.next)===null||h===void 0||h.call(d,f)}},error(f){for(const d of s){var h;(h=d.error)===null||h===void 0||h.call(d,f)}},complete(){for(const h of s){var f;(f=h.complete)===null||f===void 0||f.call(h)}}}))}function u(){if(n===0&&i){const f=i;i=null,f.unsubscribe()}}return Oa(f=>(n++,s.push(f),o(),{unsubscribe(){n--,u();const h=s.findIndex(d=>d===f);h>-1&&s.splice(h,1)}}))}}function l1(e){let t=e;const n=[],i=u=>{t!==void 0&&u.next(t),n.push(u)},s=u=>{n.splice(n.indexOf(u),1)},o=Oa(u=>(i(u),()=>{s(u)}));return o.next=u=>{if(t!==u){t=u;for(const f of n)f.next(u)}},o.get=()=>t,o}function o1(e){return Oa(t=>{function n(s=0,o=e.op){const u=e.links[s];if(!u)throw new Error("No more links to execute - did you forget to add an ending link?");return u({op:o,next(h){return n(s+1,h)}})}return n().subscribe(t)})}function G0(e){return Array.isArray(e)?e:[e]}function TR(e){return t=>{const n=G0(e.true).map(s=>s(t)),i=G0(e.false).map(s=>s(t));return s=>Oa(o=>{const u=e.condition(s.op)?n:i;return o1({op:s.op,links:u}).subscribe(o)})}}function zi(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function kR(e){return typeof e=="function"}const CR=typeof Symbol=="function"&&!!Symbol.asyncIterator;function RR(e){return CR&&zi(e)&&Symbol.asyncIterator in e}const Xm=e=>e();function F0(e=0){return new Promise(t=>setTimeout(t,e))}var AR=Object.create,u1=Object.defineProperty,OR=Object.getOwnPropertyDescriptor,c1=Object.getOwnPropertyNames,LR=Object.getPrototypeOf,NR=Object.prototype.hasOwnProperty,Io=(e,t)=>function(){return t||(0,e[c1(e)[0]])((t={exports:{}}).exports,t),t.exports},jR=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=c1(t),o=0,u=s.length,f;o<u;o++)f=s[o],!NR.call(e,f)&&f!==n&&u1(e,f,{get:(h=>t[h]).bind(null,f),enumerable:!(i=OR(t,f))||i.enumerable});return e},pf=(e,t,n)=>(n=e!=null?AR(LR(e)):{},jR(u1(n,"default",{value:e,enumerable:!0}),e));const f1=()=>{},Q0=e=>{Object.freeze&&Object.freeze(e)};function h1(e,t,n){var i;const s=t.join(".");return(i=n[s])!==null&&i!==void 0||(n[s]=new Proxy(f1,{get(o,u){if(!(typeof u!="string"||u==="then"))return h1(e,[...t,u],n)},apply(o,u,f){const h=t[t.length-1];let d={args:f,path:t};return h==="call"?d={args:f.length>=2?[f[1]]:[],path:t.slice(0,-1)}:h==="apply"&&(d={args:f.length>=2?f[1]:[],path:t.slice(0,-1)}),Q0(d.args),Q0(d.path),e(d)}})),n[s]}const d1=e=>h1(e,[],Object.create(null)),DR=e=>new Proxy(f1,{get(t,n){if(n!=="then")return e(n)}});var m1=Io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(i){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),MR=Io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=m1().default;function i(s,o){if(n(s)!="object"||!s)return s;var u=s[Symbol.toPrimitive];if(u!==void 0){var f=u.call(s,o||"default");if(n(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),PR=Io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=m1().default,i=MR();function s(o){var u=i(o,"string");return n(u)=="symbol"?u:u+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),p1=Io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=PR();function i(s,o,u){return(o=n(o))in s?Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[o]=u,s}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),Rp=Io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=p1();function i(o,u){var f=Object.keys(o);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(o);u&&(h=h.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),f.push.apply(f,h)}return f}function s(o){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?i(Object(f),!0).forEach(function(h){n(o,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(f)):i(Object(f)).forEach(function(h){Object.defineProperty(o,h,Object.getOwnPropertyDescriptor(f,h))})}return o}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}});pf(Rp());var $0=pf(p1()),zR=class extends Error{};function IR(e){if(e instanceof Error)return e;const t=typeof e;if(!(t==="undefined"||t==="function"||e===null)){if(t!=="object")return new Error(String(e));if(zi(e))return Object.assign(new zR,e)}}var Y0=class extends Error{constructor(e){var t,n,i;const s=IR(e.cause),o=(t=(n=e.message)!==null&&n!==void 0?n:s==null?void 0:s.message)!==null&&t!==void 0?t:e.code;super(o,{cause:s}),(0,$0.default)(this,"cause",void 0),(0,$0.default)(this,"code",void 0),this.code=e.code,this.name="TRPCError",(i=this.cause)!==null&&i!==void 0||(this.cause=s)}},hc=pf(Rp());function BR(e,t){if("error"in e){const i=t.deserialize(e.error);return{ok:!1,error:(0,hc.default)((0,hc.default)({},e),{},{error:i})}}return{ok:!0,result:(0,hc.default)((0,hc.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var lm=class extends Error{constructor(){super("Unable to transform response from server")}};function g1(e,t){let n;try{n=BR(e,t)}catch{throw new lm}if(!n.ok&&(!zi(n.error.error)||typeof n.error.error.code!="number"))throw new lm;if(n.ok&&!zi(n.result))throw new lm;return n}pf(Rp());function UR(e){return typeof e=="function"}async function qR(e,t){const{_def:n}=e;let i=n.procedures[t];for(;!i;){const s=Object.keys(n.lazy).find(u=>t.startsWith(u));if(!s)return null;await n.lazy[s].load(),i=n.procedures[t]}return i}async function VR(e){const{type:t,path:n}=e,i=await qR(e.router,n);if(!i||!UR(i)||i._def.type!==t&&!e.allowMethodOverride)throw new Y0({code:"NOT_FOUND",message:`No "${t}"-procedure on path "${n}"`});/* istanbul ignore if -- @preserve */if(i._def.type!==t&&e.allowMethodOverride&&i._def.type==="subscription")throw new Y0({code:"METHOD_NOT_SUPPORTED",message:"Method override is not supported for subscriptions"});return i(e)}var dc=ht(Aa()),bs=ht(Jn());function HR(e){return e instanceof Ur}function GR(e){return zi(e)&&zi(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function FR(e,t){return typeof e=="string"?e:zi(e)&&typeof e.message=="string"?e.message:t}var Ur=class Rc extends Error{constructor(t,n){var i,s;const o=n==null?void 0:n.cause;super(t,{cause:o}),(0,dc.default)(this,"cause",void 0),(0,dc.default)(this,"shape",void 0),(0,dc.default)(this,"data",void 0),(0,dc.default)(this,"meta",void 0),this.meta=n==null?void 0:n.meta,this.cause=o,this.shape=n==null||(i=n.result)===null||i===void 0?void 0:i.error,this.data=n==null||(s=n.result)===null||s===void 0?void 0:s.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Rc.prototype)}static from(t,n={}){const i=t;return HR(i)?(n.meta&&(i.meta=(0,bs.default)((0,bs.default)({},i.meta),n.meta)),i):GR(i)?new Rc(i.error.message,(0,bs.default)((0,bs.default)({},n),{},{result:i})):new Rc(FR(i,"Unknown error"),(0,bs.default)((0,bs.default)({},n),{},{cause:i}))}};function y1(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const K0=e=>typeof e=="function";function QR(e){if(e)return e;if(typeof window<"u"&&K0(window.fetch))return window.fetch;if(typeof globalThis<"u"&&K0(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var ho=ht(Jn());function $R(e){return{url:e.url.toString(),fetch:e.fetch,transformer:y1(e.transformer),methodOverride:e.methodOverride}}function YR(e){const t={};for(let n=0;n<e.length;n++){const i=e[n];t[n]=i}return t}const KR={query:"GET",mutation:"POST",subscription:"PATCH"};function v1(e){return"input"in e?e.transformer.input.serialize(e.input):YR(e.inputs.map(t=>e.transformer.input.serialize(t)))}const _1=e=>{const t=e.url.split("?");let i=t[0].replace(/\/$/,"")+"/"+e.path;const s=[];if(t[1]&&s.push(t[1]),"inputs"in e&&s.push("batch=1"),e.type==="query"||e.type==="subscription"){const o=v1(e);o!==void 0&&e.methodOverride!=="POST"&&s.push(`input=${encodeURIComponent(JSON.stringify(o))}`)}return s.length&&(i+="?"+s.join("&")),i},XR=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=v1(e);return t!==void 0?JSON.stringify(t):void 0},ZR=e=>tA((0,ho.default)((0,ho.default)({},e),{},{contentTypeHeader:"application/json",getUrl:_1,getBody:XR}));var JR=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const WR=e=>{var t;if(e!=null&&e.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new JR};async function eA(e){var t;WR(e.signal);const n=e.getUrl(e),i=e.getBody(e),s=(t=e.methodOverride)!==null&&t!==void 0?t:KR[e.type],o=await(async()=>{const f=await e.headers();return Symbol.iterator in f?Object.fromEntries(f):f})(),u=(0,ho.default)((0,ho.default)((0,ho.default)({},e.contentTypeHeader&&s!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),o);return QR(e.fetch)(n,{method:s,signal:e.signal,body:i,headers:u})}async function tA(e){const t={},n=await eA(e);t.response=n;const i=await n.json();return t.responseJSON=i,{json:i,meta:t}}ht(Jn());const X0=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Z0(e){let t=null,n=null;const i=()=>{clearTimeout(n),n=null,t=null};function s(f){const h=[[]];let d=0;for(;;){const v=f[d];if(!v)break;const _=h[h.length-1];if(v.aborted){var y;(y=v.reject)===null||y===void 0||y.call(v,new Error("Aborted")),d++;continue}if(e.validate(_.concat(v).map(E=>E.key))){_.push(v),d++;continue}if(_.length===0){var p;(p=v.reject)===null||p===void 0||p.call(v,new Error("Input is too big for a single dispatch")),d++;continue}h.push([])}return h}function o(){const f=s(t);i();for(const h of f){if(!h.length)continue;const d={items:h};for(const p of h)p.batch=d;e.fetch(d.items.map(p=>p.key)).then(async p=>{await Promise.all(p.map(async(_,x)=>{const E=d.items[x];try{var k;const C=await Promise.resolve(_);(k=E.resolve)===null||k===void 0||k.call(E,C)}catch(C){var w;(w=E.reject)===null||w===void 0||w.call(E,C)}E.batch=null,E.reject=null,E.resolve=null}));for(const _ of d.items){var v;(v=_.reject)===null||v===void 0||v.call(_,new Error("Missing result")),_.batch=null}}).catch(p=>{for(const _ of d.items){var v;(v=_.reject)===null||v===void 0||v.call(_,p),_.batch=null}})}}function u(f){var h;const d={aborted:!1,key:f,batch:null,resolve:X0,reject:X0},y=new Promise((p,v)=>{var _;d.reject=v,d.resolve=p,(_=t)!==null&&_!==void 0||(t=[]),t.push(d)});return(h=n)!==null&&h!==void 0||(n=setTimeout(o)),y}return{load:u}}function nA(...e){const t=new AbortController,n=e.length;let i=0;const s=()=>{++i===n&&t.abort()};for(const o of e)o!=null&&o.aborted?s():o==null||o.addEventListener("abort",s,{once:!0});return t.signal}var mc=ht(Jn());function rA(e){var t,n;const i=$R(e),s=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,o=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const u=y=>({validate(p){if(s===1/0&&o===1/0)return!0;if(p.length>o)return!1;const v=p.map(E=>E.path).join(","),_=p.map(E=>E.input);return _1((0,mc.default)((0,mc.default)({},i),{},{type:y,path:v,inputs:_,signal:null})).length<=s},async fetch(p){const v=p.map(C=>C.path).join(","),_=p.map(C=>C.input),x=nA(...p.map(C=>C.signal)),E=await ZR((0,mc.default)((0,mc.default)({},i),{},{path:v,inputs:_,type:y,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:p}):e.headers:{}},signal:x}));return(Array.isArray(E.json)?E.json:p.map(()=>E.json)).map(C=>({meta:E.meta,json:C}))}}),f=Z0(u("query")),h=Z0(u("mutation")),d={query:f,mutation:h};return({op:y})=>Oa(p=>{/* istanbul ignore if -- @preserve */if(y.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const _=d[y.type].load(y);let x;return _.then(E=>{x=E;const k=g1(E.json,i.transformer.output);if(!k.ok){p.error(Ur.from(k.error,{meta:E.meta}));return}p.next({context:E.meta,result:k.result}),p.complete()}).catch(E=>{p.error(Ur.from(E,{meta:x==null?void 0:x.meta}))}),()=>{}})}}ht(Jn());const iA={enabled:!1,closeMs:0},aA={enabled:!1,pongTimeoutMs:1e3,intervalMs:5e3},sA=e=>e===0?0:Math.min(1e3*2**e,3e4),b1=(e,...t)=>typeof e=="function"?e(...t):e;var lA=ht(Aa()),xs=class x1 extends Error{constructor(t){super(t.message,{cause:t.cause}),this.name="TRPCWebSocketClosedError",Object.setPrototypeOf(this,x1.prototype)}},oA=class{constructor(e,t){this.onTimeout=e,this.timeoutMs=t,(0,lA.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 S1(){let e,t;return{promise:new Promise((i,s)=>{e=i,t=s}),resolve:e,reject:t}}async function uA(e){const t=await b1(e.url);if(!e.connectionParams)return t;const i=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+i}async function cA(e){const t={method:"connectionParams",data:await b1(e)};return JSON.stringify(t)}var J0=ht(Aa()),fA=class{constructor(){(0,J0.default)(this,"outgoingRequests",new Array),(0,J0.default)(this,"pendingRequests",{})}register(e,t){const{promise:n,resolve:i}=S1();return this.outgoingRequests.push({id:String(e.id),message:e,end:n,callbacks:{next:t.next,complete:()=>{t.complete(),i()},error:s=>{t.error(s),i()}}}),()=>{this.delete(e.id),t.complete(),i()}}delete(e){e!==null&&(this.outgoingRequests=this.outgoingRequests.filter(({id:t})=>t!==String(e)),delete this.pendingRequests[String(e)])}flush(){const e=this.outgoingRequests;this.outgoingRequests=[];for(const t of e)this.pendingRequests[t.id]=t;return e}getPendingRequests(){return Object.values(this.pendingRequests)}getPendingRequest(e){return e===null?null:this.pendingRequests[String(e)]}getOutgoingRequests(){return this.outgoingRequests}getRequests(){return[...this.getOutgoingRequests().map(e=>({state:"outgoing",message:e.message,end:e.end,callbacks:e.callbacks})),...this.getPendingRequests().map(e=>({state:"pending",message:e.message,end:e.end,callbacks:e.callbacks}))]}hasPendingRequests(){return this.getPendingRequests().length>0}hasPendingSubscriptions(){return this.getPendingRequests().some(e=>e.message.method==="subscription")}hasOutgoingRequests(){return this.outgoingRequests.length>0}},sa=ht(Aa());function hA(e){const{promise:t,resolve:n,reject:i}=S1();return e.addEventListener("open",()=>{e.removeEventListener("error",i),n()}),e.addEventListener("error",i),t}function dA(e,{intervalMs:t,pongTimeoutMs:n}){let i,s;function o(){i=setTimeout(()=>{e.send("PING"),s=setTimeout(()=>{e.close()},n)},t)}function u(){clearTimeout(i),o()}function f(){clearTimeout(s),u()}e.addEventListener("open",o),e.addEventListener("message",({data:h})=>{clearTimeout(i),o(),h==="PONG"&&f()}),e.addEventListener("close",()=>{clearTimeout(i),clearTimeout(s)})}var E1=class Zm{constructor(t){var n;if((0,sa.default)(this,"id",++Zm.connectCount),(0,sa.default)(this,"WebSocketPonyfill",void 0),(0,sa.default)(this,"urlOptions",void 0),(0,sa.default)(this,"keepAliveOpts",void 0),(0,sa.default)(this,"wsObservable",l1(null)),(0,sa.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.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=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}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 t=this;if(t.openPromise)return t.openPromise;t.id=++Zm.connectCount;const n=uA(t.urlOptions).then(i=>new t.WebSocketPonyfill(i));t.openPromise=n.then(async i=>{t.ws=i,i.addEventListener("message",function({data:s}){s==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&dA(i,t.keepAliveOpts),i.addEventListener("close",()=>{t.ws===i&&(t.ws=null)}),await hA(i),t.urlOptions.connectionParams&&i.send(await cA(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,sa.default)(E1,"connectCount",0);function mA(e){return e.isOpen()?{id:e.id,state:"open",ws:e.ws}:e.isClosed()?{id:e.id,state:"closed",ws:e.ws}:e.ws?{id:e.id,state:"connecting",ws:e.ws}:null}var jr=ht(Aa()),Ss=ht(Jn()),pA=class{constructor(e){var t;(0,jr.default)(this,"connectionState",void 0),(0,jr.default)(this,"allowReconnect",!1),(0,jr.default)(this,"requestManager",new fA),(0,jr.default)(this,"activeConnection",void 0),(0,jr.default)(this,"reconnectRetryDelay",void 0),(0,jr.default)(this,"inactivityTimeout",void 0),(0,jr.default)(this,"callbacks",void 0),(0,jr.default)(this,"lazyMode",void 0),(0,jr.default)(this,"reconnecting",null),this.callbacks={onOpen:e.onOpen,onClose:e.onClose,onError:e.onError};const n=(0,Ss.default)((0,Ss.default)({},iA),e.lazy);this.inactivityTimeout=new oA(()=>{if(this.requestManager.hasOutgoingRequests()||this.requestManager.hasPendingRequests()){this.inactivityTimeout.reset();return}this.close().catch(()=>null)},n.closeMs),this.activeConnection=new E1({WebSocketPonyfill:e.WebSocket,urlOptions:e,keepAlive:(0,Ss.default)((0,Ss.default)({},aA),e.keepAlive)}),this.activeConnection.wsObservable.subscribe({next:i=>{i&&this.setupWebSocketListeners(i)}}),this.reconnectRetryDelay=(t=e.retryDelayMs)!==null&&t!==void 0?t:sA,this.lazyMode=n.enabled,this.connectionState=l1({type:"state",state:n.enabled?"idle":"connecting",error:null}),this.lazyMode||this.open().catch(()=>null)}async open(){var e=this;e.allowReconnect=!0,e.connectionState.get().state==="idle"&&e.connectionState.next({type:"state",state:"connecting",error:null});try{await e.activeConnection.open()}catch(t){return e.reconnect(new xs({message:"Initialization error",cause:t})),e.reconnecting}}async close(){var e=this;e.allowReconnect=!1,e.inactivityTimeout.stop();const t=[];for(const n of e.requestManager.getRequests())n.message.method==="subscription"?n.callbacks.complete():n.state==="outgoing"?n.callbacks.error(Ur.from(new xs({message:"Closed before connection was established"}))):t.push(n.end);await Promise.all(t).catch(()=>null),await e.activeConnection.close().catch(()=>null),e.connectionState.next({type:"state",state:"idle",error:null})}request({op:{id:e,type:t,path:n,input:i,signal:s},transformer:o,lastEventId:u}){return Oa(f=>{const h=this.batchSend({id:e,method:t,params:{input:o.input.serialize(i),path:n,lastEventId:u}},(0,Ss.default)((0,Ss.default)({},f),{},{next(d){const y=g1(d,o.output);if(!y.ok){f.error(Ur.from(y.error));return}f.next({result:y.result})}}));return()=>{h(),t==="subscription"&&this.activeConnection.isOpen()&&this.send({id:e,method:"subscription.stop"}),s==null||s.removeEventListener("abort",h)}})}get connection(){return mA(this.activeConnection)}reconnect(e){var t=this;if(this.connectionState.next({type:"state",state:"connecting",error:Ur.from(e)}),this.reconnecting)return;const n=async i=>{try{await F0(t.reconnectRetryDelay(i)),t.allowReconnect&&(await t.activeConnection.close(),await t.activeConnection.open(),t.requestManager.hasPendingRequests()&&t.send(t.requestManager.getPendingRequests().map(({message:s})=>s))),t.reconnecting=null}catch{await n(i+1)}};this.reconnecting=n(0)}setupWebSocketListeners(e){var t=this;const n=i=>{const s=this.requestManager.getPendingRequests();for(const{message:o,callbacks:u}of s)o.method!=="subscription"&&(u.error(Ur.from(i??new xs({message:"WebSocket closed",cause:i}))),this.requestManager.delete(o.id))};e.addEventListener("open",()=>{Xm(async()=>{var i,s;t.lazyMode&&t.inactivityTimeout.start(),(i=(s=t.callbacks).onOpen)===null||i===void 0||i.call(s),t.connectionState.next({type:"state",state:"pending",error:null})}).catch(i=>{e.close(3e3),n(i)})}),e.addEventListener("message",({data:i})=>{if(this.inactivityTimeout.reset(),typeof i!="string"||["PING","PONG"].includes(i))return;const s=JSON.parse(i);if("method"in s){this.handleIncomingRequest(s);return}this.handleResponseMessage(s)}),e.addEventListener("close",i=>{var s,o;n(i),(s=(o=this.callbacks).onClose)===null||s===void 0||s.call(o,i),(!this.lazyMode||this.requestManager.hasPendingSubscriptions())&&this.reconnect(new xs({message:"WebSocket closed",cause:i}))}),e.addEventListener("error",i=>{var s,o;n(i),(s=(o=this.callbacks).onError)===null||s===void 0||s.call(o,i),this.reconnect(new xs({message:"WebSocket closed",cause:i}))})}handleResponseMessage(e){const t=this.requestManager.getPendingRequest(e.id);if(!t)return;t.callbacks.next(e);let n=!0;"result"in e&&t.message.method==="subscription"&&(e.result.type==="data"&&(t.message.params.lastEventId=e.result.id),e.result.type!=="stopped"&&(n=!1)),n&&(t.callbacks.complete(),this.requestManager.delete(e.id))}handleIncomingRequest(e){e.method==="reconnect"&&this.reconnect(new xs({message:"Server requested reconnect"}))}send(e){if(!this.activeConnection.isOpen())throw new Error("Active connection is not open");const t=e instanceof Array?e:[e];this.activeConnection.ws.send(JSON.stringify(t.length===1?t[0]:t))}batchSend(e,t){var n=this;return this.inactivityTimeout.reset(),Xm(async()=>{n.activeConnection.isOpen()||await n.open(),await F0(0),n.requestManager.hasOutgoingRequests()&&n.send(n.requestManager.flush().map(({message:i})=>i))}).catch(i=>{this.requestManager.delete(e.id),t.error(Ur.from(i))}),this.requestManager.register(e,t)}};function gA(e){return new pA(e)}function yA(e){const{client:t}=e,n=y1(e.transformer);return()=>({op:i})=>Oa(s=>{const o=i.type==="subscription"?t.connectionState.subscribe({next(f){s.next({result:f,context:i.context})}}):null,u=t.request({op:i,transformer:n}).subscribe(s);return()=>{u.unsubscribe(),o==null||o.unsubscribe()}})}var om=ht(Aa()),W0=ht(Jn()),w1=class{constructor(e){(0,om.default)(this,"links",void 0),(0,om.default)(this,"runtime",void 0),(0,om.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return o1({links:this.links,op:(0,W0.default)((0,W0.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(wR())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await ER(n)).result.data}catch(n){throw Ur.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(s){switch(s.result.type){case"state":{var o;(o=n.onConnectionStateChange)===null||o===void 0||o.call(n,s.result);break}case"started":{var u;(u=n.onStarted)===null||u===void 0||u.call(n,{context:s.context});break}case"stopped":{var f;(f=n.onStopped)===null||f===void 0||f.call(n);break}case"data":case void 0:{var h;(h=n.onData)===null||h===void 0||h.call(n,s.result.data);break}}},error(s){var o;(o=n.onError)===null||o===void 0||o.call(n,s)},complete(){var s;(s=n.onComplete)===null||s===void 0||s.call(n)}})}};const T1=Symbol.for("trpc_untypedClient"),vA={query:"query",mutate:"mutation",subscribe:"subscription"},_A=e=>vA[e];function bA(e){const t=d1(({path:n,args:i})=>{const s=[...n],o=_A(s.pop()),u=s.join(".");return e[o](u,...i)});return DR(n=>n===T1?e:t[n])}function xA(e){const t=new w1(e);return bA(t)}function SA(e){return e[T1]}ht(Jn());ht(Jn());var EA=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(s){var o,u,f,h=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,f=Symbol.iterator);h--;){if(u&&(o=s[u])!=null)return o.call(s);if(f&&(o=s[f])!=null)return new i(o.call(s));u="@@asyncIterator",f="@@iterator"}throw new TypeError("Object is not async iterable")}function i(s){function o(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var f=u.done;return Promise.resolve(u.value).then(function(h){return{value:h,done:f}})}return i=function(f){this.s=f,this.n=f.next},i.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(f){var h=this.s.return;return h===void 0?Promise.resolve({value:f,done:!0}):o(h.apply(this.s,arguments))},throw:function(f){var h=this.s.return;return h===void 0?Promise.reject(f):o(h.apply(this.s,arguments))}},new i(s)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});ht(EA());ht(Jn());var wA=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var i=typeof SuppressedError=="function"?SuppressedError:function(f,h){var d=Error();return d.name="SuppressedError",d.error=f,d.suppressed=h,d},s={},o=[];function u(f,h){if(h!=null){if(Object(h)!==h)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(f)var d=h[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(d===void 0&&(d=h[Symbol.dispose||Symbol.for("Symbol.dispose")],f))var y=d;if(typeof d!="function")throw new TypeError("Object is not disposable.");y&&(d=function(){try{y.call(h)}catch(v){return Promise.reject(v)}}),o.push({v:h,d,a:f})}else f&&o.push({d:h,a:f});return h}return{e:s,u:u.bind(null,!1),a:u.bind(null,!0),d:function(){var h,d=this.e,y=0;function p(){for(;h=o.pop();)try{if(!h.a&&y===1)return y=0,o.push(h),Promise.resolve().then(p);if(h.d){var _=h.d.call(h.v);if(h.a)return y|=2,Promise.resolve(_).then(p,v)}else y|=1}catch(x){return v(x)}if(y===1)return d!==s?Promise.reject(d):Promise.resolve();if(d!==s)throw d}function v(_){return d=d!==s?new i(_,d):_,p()}return p()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),k1=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(i,s){this.v=i,this.k=s}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),TA=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=k1();function i(s){return new n(s,0)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),kA=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=k1();function i(o){return function(){return new s(o.apply(this,arguments))}}function s(o){var u,f;function h(y,p){try{var v=o[y](p),_=v.value,x=_ instanceof n;Promise.resolve(x?_.v:_).then(function(E){if(x){var k=y==="return"?"return":"next";if(!_.k||E.done)return h(k,E);E=o[k](E).value}d(v.done?"return":"normal",E)},function(E){h("throw",E)})}catch(E){d("throw",E)}}function d(y,p){switch(y){case"return":u.resolve({value:p,done:!0});break;case"throw":u.reject(p);break;default:u.resolve({value:p,done:!1})}(u=u.next)?h(u.key,u.arg):f=null}this._invoke=function(y,p){return new Promise(function(v,_){var x={key:y,arg:p,resolve:v,reject:_,next:null};f?f=f.next=x:(u=f=x,h(y,p))})},typeof o.return!="function"&&(this.return=void 0)}s.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},s.prototype.next=function(o){return this._invoke("next",o)},s.prototype.throw=function(o){return this._invoke("throw",o)},s.prototype.return=function(o){return this._invoke("return",o)},t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}});ht(wA());ht(TA());ht(kA());ht(Jn());var CA=Object.create,C1=Object.defineProperty,RA=Object.getOwnPropertyDescriptor,R1=Object.getOwnPropertyNames,AA=Object.getPrototypeOf,OA=Object.prototype.hasOwnProperty,Ii=(e,t)=>function(){return t||(0,e[R1(e)[0]])((t={exports:{}}).exports,t),t.exports},LA=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=R1(t),o=0,u=s.length,f;o<u;o++)f=s[o],!OA.call(e,f)&&f!==n&&C1(e,f,{get:(h=>t[h]).bind(null,f),enumerable:!(i=RA(t,f))||i.enumerable});return e},Bi=(e,t,n)=>(n=e!=null?CA(AA(e)):{},LA(t||!e||!e.__esModule?C1(n,"default",{value:e,enumerable:!0}):n,e)),A1=Ii({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(i){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),NA=Ii({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=A1().default;function i(s,o){if(n(s)!="object"||!s)return s;var u=s[Symbol.toPrimitive];if(u!==void 0){var f=u.call(s,o||"default");if(n(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),jA=Ii({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=A1().default,i=NA();function s(o){var u=i(o,"string");return n(u)=="symbol"?u:u+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),DA=Ii({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=jA();function i(s,o,u){return(o=n(o))in s?Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[o]=u,s}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),el=Ii({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=DA();function i(o,u){var f=Object.keys(o);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(o);u&&(h=h.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),f.push.apply(f,h)}return f}function s(o){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?i(Object(f),!0).forEach(function(h){n(o,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(f)):i(Object(f)).forEach(function(h){Object.defineProperty(o,h,Object.getOwnPropertyDescriptor(f,h))})}return o}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),MA=Ii({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(s){var o,u,f,h=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,f=Symbol.iterator);h--;){if(u&&(o=s[u])!=null)return o.call(s);if(f&&(o=s[f])!=null)return new i(o.call(s));u="@@asyncIterator",f="@@iterator"}throw new TypeError("Object is not async iterable")}function i(s){function o(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var f=u.done;return Promise.resolve(u.value).then(function(h){return{value:h,done:f}})}return i=function(f){this.s=f,this.n=f.next},i.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(f){var h=this.s.return;return h===void 0?Promise.resolve({value:f,done:!0}):o(h.apply(this.s,arguments))},throw:function(f){var h=this.s.return;return h===void 0?Promise.reject(f):o(h.apply(this.s,arguments))}},new i(s)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),PA=Ii({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(i,s){if(i==null)return{};var o={};for(var u in i)if({}.hasOwnProperty.call(i,u)){if(s.includes(u))continue;o[u]=i[u]}return o}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),zA=Ii({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=PA();function i(s,o){if(s==null)return{};var u,f,h=n(s,o);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);for(f=0;f<d.length;f++)u=d[f],o.includes(u)||{}.propertyIsEnumerable.call(s,u)&&(h[u]=s[u])}return h}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),mo=Bi(el(),1),IA=Bi(MA(),1),BA=Bi(zA(),1);const UA=["cursor","direction"];function gf(e){return{path:e.path.join(".")}}function qA(e){return e.length>=3}function O1(e){return qA(e)?{type:"prefixed",prefix:e[0],path:e[1],args:e[2]}:{type:"unprefixed",prefix:void 0,path:e[0],args:e[1]}}function Ap(e,t,n){var i;const s=O1(e);let o=(i=s.args)===null||i===void 0?void 0:i.input;if(n){var u,f;o=(0,mo.default)((0,mo.default)((0,mo.default)({},(u=(f=s.args)===null||f===void 0?void 0:f.input)!==null&&u!==void 0?u:{}),n.pageParam!==void 0?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[s.path.join("."),o,t==null?void 0:t.trpc]}async function VA(e,t,n){const s=t.getQueryCache().build(t,{queryKey:n});s.setState({data:[],status:"success"});const o=[];var u=!1,f=!1,h;try{for(var d=(0,IA.default)(e),y;u=!(y=await d.next()).done;u=!1){const p=y.value;o.push(p),s.setState({data:[...o]})}}catch(p){f=!0,h=p}finally{try{u&&d.return!=null&&await d.return()}finally{if(f)throw h}}return o}function Dr(e){const t=Xm(()=>{const{input:n,type:i}=e,s=e.path.flatMap(o=>o.split("."));if(!n&&i==="any")return s.length?[s]:[];if(i==="infinite"&&zi(n)&&("direction"in n||"cursor"in n)){const{cursor:o,direction:u}=n,f=(0,BA.default)(n,UA);return[s,{input:f,type:"infinite"}]}return[s,(0,mo.default)((0,mo.default)({},typeof n<"u"&&n!==Hr&&{input:n}),i&&i!=="any"&&{type:i})]});return e.prefix&&t.unshift([e.prefix]),t}function L1(e){const t=[e.path.flatMap(n=>n.split("."))];return e.prefix&&t.unshift([e.prefix]),t}function Op(e){return kR(e)?e():e}var Es=Bi(el());function HA(e){var t;const{input:n,query:i,path:s,queryKey:o,opts:u}=e,f=n===Hr,h=async d=>{var y;const p=(0,Es.default)((0,Es.default)({},u),{},{trpc:(0,Es.default)((0,Es.default)({},u==null?void 0:u.trpc),!(u==null||(y=u.trpc)===null||y===void 0)&&y.abortOnUnmount?{signal:d.signal}:{signal:null})});return await i(...Ap(o,p,{direction:d.direction,pageParam:d.pageParam}))};return Object.assign((0,Es.default)((0,Es.default)({},u??{}),{},{queryKey:o,queryFn:f?Hr:h,initialPageParam:(t=u==null?void 0:u.initialCursor)!==null&&t!==void 0?t:n==null?void 0:n.cursor}),{trpc:gf({path:s})})}var eb=Bi(el());function GA(e){var t;const{mutate:n,path:i,opts:s,overrides:o}=e,u=Op(e.queryClient),f=L1({path:i,prefix:s==null?void 0:s.keyPrefix}),h=u.defaultMutationOptions(u.getMutationDefaults(f)),d=(t=o==null?void 0:o.onSuccess)!==null&&t!==void 0?t:p=>p.originalFn(),y=async p=>await n(...Ap([...f,{input:p}],s));return(0,eb.default)((0,eb.default)({},s),{},{mutationKey:f,mutationFn:y,onSuccess(...p){var v,_;return d({originalFn:()=>{var E,k,w;return(E=s==null||(k=s.onSuccess)===null||k===void 0?void 0:k.call(s,...p))!==null&&E!==void 0?E:h==null||(w=h.onSuccess)===null||w===void 0?void 0:w.call(h,...p)},queryClient:u,meta:(v=(_=s==null?void 0:s.meta)!==null&&_!==void 0?_:h==null?void 0:h.meta)!==null&&v!==void 0?v:{}})},trpc:gf({path:i})})}var ws=Bi(el());function FA(e){const{input:t,query:n,path:i,queryKey:s,opts:o}=e,u=Op(e.queryClient),f=t===Hr,h=async d=>{var y;const p=(0,ws.default)((0,ws.default)({},o),{},{trpc:(0,ws.default)((0,ws.default)({},o==null?void 0:o.trpc),!(o==null||(y=o.trpc)===null||y===void 0)&&y.abortOnUnmount?{signal:d.signal}:{signal:null})}),v=d.queryKey,_=await n(...Ap(v,p));return RR(_)?VA(_,u,v):_};return Object.assign((0,ws.default)((0,ws.default)({},o),{},{queryKey:s,queryFn:f?Hr:h}),{trpc:gf({path:i})})}var tb=Bi(el(),1);const QA=e=>{var t;const{subscribe:n,path:i,queryKey:s,opts:o={}}=e,u=(t=O1(s))===null||t===void 0||(t=t.args)===null||t===void 0?void 0:t.input,f="enabled"in o?!!o.enabled:u!==Hr,h=d=>n(i.join("."),u??void 0,d);return(0,tb.default)((0,tb.default)({},o),{},{enabled:f,subscribe:h,queryKey:s,trpc:gf({path:i})})};var Ts=Bi(el(),1);function $A(e){const t=e.keyPrefix,n=i=>(s,o,u)=>"router"in e?Promise.resolve(Op(e.ctx)).then(h=>VR({router:e.router,path:s,getRawInput:async()=>o,ctx:h,type:i,signal:void 0})):(e.client instanceof w1?e.client:SA(e.client))[i](s,o,u);return d1(({args:i,path:s})=>{const o=[...s],u=o.pop(),[f,h]=i;return{"~types":void 0,pathKey:()=>Dr({path:o,type:"any",prefix:t}),pathFilter:()=>(0,Ts.default)((0,Ts.default)({},f),{},{queryKey:Dr({path:o,type:"any",prefix:t})}),queryOptions:()=>FA({input:f,opts:h,path:o,queryClient:e.queryClient,queryKey:Dr({path:o,input:f,type:"query",prefix:t}),query:n("query")}),queryKey:()=>Dr({path:o,input:f,type:"query",prefix:t}),queryFilter:()=>(0,Ts.default)((0,Ts.default)({},h),{},{queryKey:Dr({path:o,input:f,type:"query",prefix:t})}),infiniteQueryOptions:()=>HA({input:f,opts:h,path:o,queryKey:Dr({path:o,input:f,type:"infinite",prefix:t}),query:n("query")}),infiniteQueryKey:()=>Dr({path:o,input:f,type:"infinite",prefix:t}),infiniteQueryFilter:()=>(0,Ts.default)((0,Ts.default)({},h),{},{queryKey:Dr({path:o,input:f,type:"infinite",prefix:t})}),mutationOptions:()=>{var y;return GA({opts:f,path:o,queryClient:e.queryClient,mutate:n("mutation"),overrides:(y=e.overrides)===null||y===void 0?void 0:y.mutations})},mutationKey:()=>L1({path:o,prefix:t}),subscriptionOptions:()=>QA({opts:h,path:o,queryKey:Dr({path:o,input:f,type:"any",prefix:t}),subscribe:n("subscription")})}[u]()})}function Ls(){const t=new URLSearchParams(window.location.search).get("api");return t?t.replace(/\/$/,""):""}function YA(){const e=Ls();if(e){const n=new URL(e);return`${n.protocol==="https:"?"wss:":"ws:"}//${n.host}/trpc`}return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/trpc`}function KA(){const e=Ls();return e?`${e}/trpc`:"/trpc"}function XA(){const e=Ls();return e?`${e}/api/health`:"/api/health"}const Rt=new yk({defaultOptions:{queries:{staleTime:60*1e3}}}),ZA=gA({url:YA(),retryDelayMs:()=>1e3}),Fr=xA({links:[TR({condition:e=>e.type==="subscription",true:yA({client:ZA}),false:rA({url:KA()})})]}),Sn=$A({client:Fr,queryClient:Rt});function N1(){const[e,t]=ie.useState({connected:!1,projectDir:null,dirName:null,watcherEnabled:!1,error:null});return ie.useEffect(()=>{let n=!0,i;async function s(){try{const u=await fetch(XA());if(!u.ok)throw new Error(`HTTP ${u.status}`);const f=await u.json();if(n){const h=f.projectDir,d=h.split("/").pop()||h;t({connected:!0,projectDir:h,dirName:d,watcherEnabled:f.watcherEnabled,error:null}),document.title=`${d} - OpenSpec UI`}}catch(u){n&&(t(f=>({...f,connected:!1,error:u instanceof Error?u.message:"Connection failed"})),document.title="OpenSpec UI (Disconnected)",i=setTimeout(s,3e3))}}s();const o=setInterval(()=>{n&&s()},3e4);return()=>{n=!1,clearInterval(o),clearTimeout(i)}},[]),e}function tl(){const e=ie.useRef(null);ie.useEffect(()=>{const t=Fr.realtime.onFileChange.subscribe(void 0,{onData:n=>{switch(n.type){case"spec":Rt.invalidateQueries({queryKey:["spec"]}),Rt.invalidateQueries({queryKey:["dashboard"]});break;case"change":case"archive":Rt.invalidateQueries({queryKey:["change"]}),Rt.invalidateQueries({queryKey:["dashboard"]});break;case"project":Rt.invalidateQueries({queryKey:["dashboard"]});break}},onError:n=>{console.error("Realtime subscription error:",n)}});return e.current=t,()=>{t.unsubscribe()}},[])}function JA(e){ie.useEffect(()=>{if(!e)return;const t=Fr.realtime.onSpecChange.subscribe({specId:e},{onData:()=>{Rt.invalidateQueries({queryKey:["spec","get",{id:e}]}),Rt.invalidateQueries({queryKey:["spec","getRaw",{id:e}]}),Rt.invalidateQueries({queryKey:["spec","validate",{id:e}]}),Rt.invalidateQueries({queryKey:["spec","list"]}),Rt.invalidateQueries({queryKey:["dashboard"]})},onError:n=>{console.error("Spec realtime subscription error:",n)}});return()=>{t.unsubscribe()}},[e])}function WA(e){ie.useEffect(()=>{if(!e)return;const t=Fr.realtime.onChangeChange.subscribe({changeId:e},{onData:()=>{Rt.invalidateQueries({queryKey:["change","get",{id:e}]}),Rt.invalidateQueries({queryKey:["change","getRaw",{id:e}]}),Rt.invalidateQueries({queryKey:["change","validate",{id:e}]}),Rt.invalidateQueries({queryKey:["change","list"]}),Rt.invalidateQueries({queryKey:["change","listArchived"]}),Rt.invalidateQueries({queryKey:["dashboard"]})},onError:n=>{console.error("Change realtime subscription error:",n)}});return()=>{t.unsubscribe()}},[e])}/**
66
+ */var I0;function UC(){if(I0)return nm;I0=1;var e=Po(),t=BC();function n(d,y){return d===y&&(d!==0||1/d===1/y)||d!==d&&y!==y}var i=typeof Object.is=="function"?Object.is:n,s=t.useSyncExternalStore,o=e.useRef,u=e.useEffect,f=e.useMemo,h=e.useDebugValue;return nm.useSyncExternalStoreWithSelector=function(d,y,p,v,_){var b=o(null);if(b.current===null){var E={hasValue:!1,value:null};b.current=E}else E=b.current;b=f(function(){function T(O){if(!R){if(R=!0,L=O,O=v(O),_!==void 0&&E.hasValue){var U=E.value;if(_(U,O))return z=U}return z=O}if(U=z,i(L,O))return U;var $=v(O);return _!==void 0&&_(U,$)?(L=O,U):(L=O,z=$)}var R=!1,L,z,V=p===void 0?null:p;return[function(){return T(y())},V===null?void 0:function(){return T(V())}]},[y,p,v,_]);var k=s(d,b[0],b[1]);return u(function(){E.hasValue=!0,E.value=k},[k]),h(k),k},nm}var B0;function qC(){return B0||(B0=1,tm.exports=UC()),tm.exports}var VC=qC();function HC(e,t=i=>i,n={}){const i=n.equal??GC;return VC.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,i)}function GC(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,s]of e)if(!t.has(i)||!Object.is(s,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();const n=U0(e);if(n.length!==U0(t).length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!Object.is(e[n[i]],t[n[i]]))return!1;return!0}function U0(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}const am=ie.createContext(null);function t1(){return typeof document>"u"?am:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=am,am)}function Yt(e){const t=ie.useContext(t1());return e==null||e.warn,t}function $t(e){const t=Yt({warn:(e==null?void 0:e.router)===void 0}),n=(e==null?void 0:e.router)||t,i=ie.useRef(void 0);return HC(n.__store,s=>{if(e!=null&&e.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const o=Dn(i.current,e.select(s));return i.current=o,o}return e.select(s)}return s})}const ff=ie.createContext(void 0),FC=ie.createContext(void 0);function Un(e){const t=ie.useContext(e.from?FC:ff);return $t({select:i=>{const s=i.matches.find(o=>e.from?e.from===o.routeId:o.id===t);if(Gr(!((e.shouldThrow??!0)&&!s),`Could not find ${e.from?`an active match from "${e.from}"`:"a nearest match!"}`),s!==void 0)return e.select?e.select(s):s},structuralSharing:e.structuralSharing})}function hf(e){return Un({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function df(e){const{select:t,...n}=e;return Un({...n,select:i=>t?t(i.loaderDeps):i.loaderDeps})}function el(e){return Un({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{const n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function mf(e){return Un({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}const fc=typeof window<"u"?ie.useLayoutEffect:ie.useEffect;function sm(e){const t=ie.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function QC(e,t,n={},i={}){ie.useEffect(()=>{if(!e.current||i.disabled||typeof IntersectionObserver!="function")return;const s=new IntersectionObserver(([o])=>{t(o)},n);return s.observe(e.current),()=>{s.disconnect()}},[t,n,i.disabled,e])}function $C(e){const t=ie.useRef(null);return ie.useImperativeHandle(e,()=>t.current,[]),t}function zo(e){const t=Yt();return ie.useCallback(n=>t.navigate({...n,from:n.from??(e==null?void 0:e.from)}),[e==null?void 0:e.from,t])}var YC=Cx();function KC(e,t){const n=Yt(),[i,s]=ie.useState(!1),o=ie.useRef(!1),u=$C(t),{activeProps:f,inactiveProps:h,activeOptions:d,to:y,preload:p,preloadDelay:v,hashScrollIntoView:_,replace:b,startTransition:E,resetScroll:k,viewTransition:T,children:R,target:L,disabled:z,style:V,className:O,onClick:U,onFocus:$,onMouseEnter:ne,onMouseLeave:N,onTouchStart:Q,ignoreBlocker:re,params:me,search:le,hash:ae,state:q,mask:te,reloadDocument:fe,unsafeRelative:Ee,from:j,_fromLocation:P,...X}=e,A=$t({select:Ue=>Ue.location.search,structuralSharing:!0}),ue=e.from,ge=ie.useMemo(()=>({...e,from:ue}),[n,A,ue,e._fromLocation,e.hash,e.to,e.search,e.params,e.state,e.mask,e.unsafeRelative]),he=ie.useMemo(()=>n.buildLocation({...ge}),[n,ge]),Se=ie.useMemo(()=>{if(z)return;let Ue=he.maskedLocation?he.maskedLocation.url:he.url,Be=!1;return n.origin&&(Ue.startsWith(n.origin)?Ue=n.history.createHref(Ue.replace(n.origin,""))||"/":Be=!0),{href:Ue,external:Be}},[z,he.maskedLocation,he.url,n.origin,n.history]),Qe=ie.useMemo(()=>{if(Se!=null&&Se.external)return Se.href;try{return new URL(y),y}catch{}},[y,Se]),Me=e.reloadDocument||Qe?!1:p??n.options.defaultPreload,Dt=v??n.options.defaultPreloadDelay??0,on=$t({select:Ue=>{if(Qe)return!1;if(d!=null&&d.exact){if(!rC(Ue.location.pathname,he.pathname,n.basepath))return!1}else{const Be=Bc(Ue.location.pathname,n.basepath),Ut=Bc(he.pathname,n.basepath);if(!(Be.startsWith(Ut)&&(Be.length===Ut.length||Be[Ut.length]==="/")))return!1}return((d==null?void 0:d.includeSearch)??!0)&&!ba(Ue.location.search,he.search,{partial:!(d!=null&&d.exact),ignoreUndefined:!(d!=null&&d.explicitUndefined)})?!1:d!=null&&d.includeHash?Ue.location.hash===he.hash:!0}}),un=ie.useCallback(()=>{n.preloadRoute({...ge}).catch(Ue=>{console.warn(Ue),console.warn(LC)})},[n,ge]),Na=ie.useCallback(Ue=>{Ue!=null&&Ue.isIntersecting&&un()},[un]);QC(u,Na,eR,{disabled:!!z||Me!=="viewport"}),ie.useEffect(()=>{o.current||!z&&Me==="render"&&(un(),o.current=!0)},[z,un,Me]);const qn=Ue=>{const Be=Ue.currentTarget.getAttribute("target"),Ut=L!==void 0?L:Be;if(!z&&!tR(Ue)&&!Ue.defaultPrevented&&(!Ut||Ut==="_self")&&Ue.button===0){Ue.preventDefault(),YC.flushSync(()=>{s(!0)});const Z=n.subscribe("onResolved",()=>{Z(),s(!1)});n.navigate({...ge,replace:b,resetScroll:k,hashScrollIntoView:_,startTransition:E,viewTransition:T,ignoreBlocker:re})}};if(Qe)return{...X,ref:u,href:Qe,...R&&{children:R},...L&&{target:L},...z&&{disabled:z},...V&&{style:V},...O&&{className:O},...U&&{onClick:U},...$&&{onFocus:$},...ne&&{onMouseEnter:ne},...N&&{onMouseLeave:N},...Q&&{onTouchStart:Q}};const dr=Ue=>{z||Me&&un()},$r=dr,ja=Ue=>{if(!(z||!Me))if(!Dt)un();else{const Be=Ue.target;if(eo.has(Be))return;const Ut=setTimeout(()=>{eo.delete(Be),un()},Dt);eo.set(Be,Ut)}},Da=Ue=>{if(z||!Me||!Dt)return;const Be=Ue.target,Ut=eo.get(Be);Ut&&(clearTimeout(Ut),eo.delete(Be))},Vn=on?_a(f,{})??XC:lm,Hn=on?lm:_a(h,{})??lm,Yr=[O,Vn.className,Hn.className].filter(Boolean).join(" "),Ma=(V||Vn.style||Hn.style)&&{...V,...Vn.style,...Hn.style};return{...X,...Vn,...Hn,href:Se==null?void 0:Se.href,ref:u,onClick:to([U,qn]),onFocus:to([$,dr]),onMouseEnter:to([ne,ja]),onMouseLeave:to([N,Da]),onTouchStart:to([Q,$r]),disabled:!!z,target:L,...Ma&&{style:Ma},...Yr&&{className:Yr},...z&&ZC,...on&&JC,...i&&WC}}const lm={},XC={className:"active"},ZC={role:"link","aria-disabled":!0},JC={"data-status":"active","aria-current":"page"},WC={"data-transitioning":"transitioning"},eo=new WeakMap,eR={rootMargin:"100px"},to=e=>t=>{for(const n of e)if(n){if(t.defaultPrevented)return;n(t)}},ut=ie.forwardRef((e,t)=>{const{_asChild:n,...i}=e,{type:s,ref:o,...u}=KC(i,t),f=typeof i.children=="function"?i.children({isActive:u["data-status"]==="active"}):i.children;return n===void 0&&delete u.disabled,ie.createElement(n||"a",{...u,ref:o},f)});function tR(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function nR(e){return new rR({id:e})}class rR extends NC{constructor({id:t}){super({id:t}),this.useMatch=n=>Un({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>Un({from:this.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>mf({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>el({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>df({...n,from:this.id,strict:!1}),this.useLoaderData=n=>hf({...n,from:this.id,strict:!1}),this.useNavigate=()=>{const n=Yt();return zo({from:n.routesById[this.id].fullPath})},this.notFound=n=>Hx({routeId:this.id,...n}),this.Link=$s.forwardRef((n,i)=>{const o=Yt().routesById[this.id].fullPath;return S.jsx(ut,{ref:i,from:o,...n})})}}class iR extends e1{constructor(t){super(t),this.useMatch=n=>Un({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>Un({...n,from:this.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>mf({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>el({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>df({...n,from:this.id}),this.useLoaderData=n=>hf({...n,from:this.id}),this.useNavigate=()=>zo({from:this.fullPath}),this.Link=$s.forwardRef((n,i)=>S.jsx(ut,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function ur(e){return new iR(e)}class aR extends jC{constructor(t){super(t),this.useMatch=n=>Un({select:n==null?void 0:n.select,from:this.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>Un({...n,from:this.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>mf({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useParams=n=>el({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.id}),this.useLoaderDeps=n=>df({...n,from:this.id}),this.useLoaderData=n=>hf({...n,from:this.id}),this.useNavigate=()=>zo({from:this.fullPath}),this.Link=$s.forwardRef((n,i)=>S.jsx(ut,{ref:i,from:this.fullPath,...n})),this.$$typeof=Symbol.for("react.memo")}}function sR(e){return new aR(e)}function q0(e){return typeof e=="object"?new V0(e,{silent:!0}).createRoute(e):new V0(e,{silent:!0}).createRoute}class V0{constructor(t,n){this.path=t,this.createRoute=i=>{this.silent;const s=ur(i);return s.isRoot=!1,s},this.silent=n==null?void 0:n.silent}}class H0{constructor(t){this.useMatch=n=>Un({select:n==null?void 0:n.select,from:this.options.id,structuralSharing:n==null?void 0:n.structuralSharing}),this.useRouteContext=n=>Un({from:this.options.id,select:i=>n!=null&&n.select?n.select(i.context):i.context}),this.useSearch=n=>mf({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.options.id}),this.useParams=n=>el({select:n==null?void 0:n.select,structuralSharing:n==null?void 0:n.structuralSharing,from:this.options.id}),this.useLoaderDeps=n=>df({...n,from:this.options.id}),this.useLoaderData=n=>hf({...n,from:this.options.id}),this.useNavigate=()=>{const n=Yt();return zo({from:n.routesById[this.options.id].fullPath})},this.options=t,this.$$typeof=Symbol.for("react.memo")}}function G0(e){return typeof e=="object"?new H0(e):t=>new H0({id:e,...t})}function lR(){const e=Yt(),t=ie.useRef({router:e,mounted:!1}),[n,i]=ie.useState(!1),{hasPendingMatches:s,isLoading:o}=$t({select:p=>({isLoading:p.isLoading,hasPendingMatches:p.matches.some(v=>v.status==="pending")}),structuralSharing:!0}),u=sm(o),f=o||n||s,h=sm(f),d=o||s,y=sm(d);return e.startTransition=p=>{i(!0),ie.startTransition(()=>{p(),i(!1)})},ie.useEffect(()=>{const p=e.history.subscribe(e.load),v=e.buildLocation({to:e.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return xa(e.latestLocation.href)!==xa(v.href)&&e.commitLocation({...v,replace:!0}),()=>{p()}},[e,e.history]),fc(()=>{if(typeof window<"u"&&e.ssr||t.current.router===e&&t.current.mounted)return;t.current={router:e,mounted:!0},(async()=>{try{await e.load()}catch(v){console.error(v)}})()},[e]),fc(()=>{u&&!o&&e.emit({type:"onLoad",...Sa(e.state)})},[u,e,o]),fc(()=>{y&&!d&&e.emit({type:"onBeforeRouteMount",...Sa(e.state)})},[d,y,e]),fc(()=>{if(h&&!f){const p=Sa(e.state);e.emit({type:"onResolved",...p}),e.__store.setState(v=>({...v,status:"idle",resolvedLocation:v.location})),p.hrefChanged&&fC(e)}},[f,h,e]),null}function oR(e){const t=$t({select:n=>`not-found-${n.location.pathname}-${n.status}`});return S.jsx(Rp,{getResetKey:()=>t,onCatch:(n,i)=>{var s;if(Bn(n))(s=e.onCatch)==null||s.call(e,n,i);else throw n},errorComponent:({error:n})=>{var i;if(Bn(n))return(i=e.fallback)==null?void 0:i.call(e,n);throw n},children:e.children})}function uR(){return S.jsx("p",{children:"Not Found"})}function Rs(e){return S.jsx(S.Fragment,{children:e.children})}function n1(e,t,n){return t.options.notFoundComponent?S.jsx(t.options.notFoundComponent,{...n}):e.options.defaultNotFoundComponent?S.jsx(e.options.defaultNotFoundComponent,{...n}):S.jsx(uR,{})}function cR({children:e}){var n;const t=Yt();return t.isServer?S.jsx("script",{nonce:(n=t.options.ssr)==null?void 0:n.nonce,className:"$tsr",dangerouslySetInnerHTML:{__html:e+';typeof $_TSR !== "undefined" && $_TSR.c()'}}):null}function fR(){const e=Yt();if(!e.isScrollRestoring||!e.isServer||typeof e.options.scrollRestoration=="function"&&!e.options.scrollRestoration({location:e.latestLocation}))return null;const n=(e.options.getScrollRestorationKey||Km)(e.latestLocation),i=n!==Km(e.latestLocation)?n:void 0,s={storageKey:Uc,shouldScrollRestoration:!0};return i&&(s.key=i),S.jsx(cR,{children:`(${Gx.toString()})(${JSON.stringify(s)})`})}const r1=ie.memo(function({matchId:t}){var T,R;const n=Yt(),i=$t({select:L=>{const z=L.matches.find(V=>V.id===t);return Gr(z),{routeId:z.routeId,ssr:z.ssr,_displayPending:z._displayPending}},structuralSharing:!0}),s=n.routesById[i.routeId],o=s.options.pendingComponent??n.options.defaultPendingComponent,u=o?S.jsx(o,{}):null,f=s.options.errorComponent??n.options.defaultErrorComponent,h=s.options.onCatch??n.options.defaultOnCatch,d=s.isRoot?s.options.notFoundComponent??((T=n.options.notFoundRoute)==null?void 0:T.options.component):s.options.notFoundComponent,y=i.ssr===!1||i.ssr==="data-only",p=(!s.isRoot||s.options.wrapInSuspense||y)&&(s.options.wrapInSuspense??o??(((R=s.options.errorComponent)==null?void 0:R.preload)||y))?ie.Suspense:Rs,v=f?Rp:Rs,_=d?oR:Rs,b=$t({select:L=>L.loadedAt}),E=$t({select:L=>{var V;const z=L.matches.findIndex(O=>O.id===t);return(V=L.matches[z-1])==null?void 0:V.routeId}}),k=s.isRoot?s.options.shellComponent??Rs:Rs;return S.jsxs(k,{children:[S.jsx(ff.Provider,{value:t,children:S.jsx(p,{fallback:u,children:S.jsx(v,{getResetKey:()=>b,errorComponent:f||cf,onCatch:(L,z)=>{if(Bn(L))throw L;h==null||h(L,z)},children:S.jsx(_,{fallback:L=>{if(!d||L.routeId&&L.routeId!==i.routeId||!L.routeId&&!s.isRoot)throw L;return ie.createElement(d,L)},children:y||i._displayPending?S.jsx(MC,{fallback:u,children:S.jsx(F0,{matchId:t})}):S.jsx(F0,{matchId:t})})})})}),E===_n&&n.options.scrollRestoration?S.jsxs(S.Fragment,{children:[S.jsx(hR,{}),S.jsx(fR,{})]}):null]})});function hR(){const e=Yt(),t=ie.useRef(void 0);return S.jsx("script",{suppressHydrationWarning:!0,ref:n=>{n&&(t.current===void 0||t.current.href!==e.latestLocation.href)&&(e.emit({type:"onRendered",...Sa(e.state)}),t.current=e.latestLocation)}},e.latestLocation.state.__TSR_key)}const F0=ie.memo(function({matchId:t}){var h,d,y,p;const n=Yt(),{match:i,key:s,routeId:o}=$t({select:v=>{const _=v.matches.find(R=>R.id===t),b=_.routeId,E=n.routesById[b].options.remountDeps??n.options.defaultRemountDeps,k=E==null?void 0:E({routeId:b,loaderDeps:_.loaderDeps,params:_._strictParams,search:_._strictSearch});return{key:k?JSON.stringify(k):void 0,routeId:b,match:{id:_.id,status:_.status,error:_.error,_forcePending:_._forcePending,_displayPending:_._displayPending}}},structuralSharing:!0}),u=n.routesById[o],f=ie.useMemo(()=>{const v=u.options.component??n.options.defaultComponent;return v?S.jsx(v,{},s):S.jsx(i1,{})},[s,u.options.component,n.options.defaultComponent]);if(i._displayPending)throw(h=n.getMatch(i.id))==null?void 0:h._nonReactive.displayPendingPromise;if(i._forcePending)throw(d=n.getMatch(i.id))==null?void 0:d._nonReactive.minPendingPromise;if(i.status==="pending"){const v=u.options.pendingMinMs??n.options.defaultPendingMinMs;if(v){const _=n.getMatch(i.id);if(_&&!_._nonReactive.minPendingPromise&&!n.isServer){const b=Ys();_._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),_._nonReactive.minPendingPromise=void 0},v)}}throw(y=n.getMatch(i.id))==null?void 0:y._nonReactive.loadPromise}if(i.status==="notFound")return Gr(Bn(i.error)),n1(n,u,i.error);if(i.status==="redirected")throw Gr(Xn(i.error)),(p=n.getMatch(i.id))==null?void 0:p._nonReactive.loadPromise;if(i.status==="error"){if(n.isServer){const v=(u.options.errorComponent??n.options.defaultErrorComponent)||cf;return S.jsx(v,{error:i.error,reset:void 0,info:{componentStack:""}})}throw i.error}return f}),i1=ie.memo(function(){const t=Yt(),n=ie.useContext(ff),i=$t({select:d=>{var y;return(y=d.matches.find(p=>p.id===n))==null?void 0:y.routeId}}),s=t.routesById[i],o=$t({select:d=>{const p=d.matches.find(v=>v.id===n);return Gr(p),p.globalNotFound}}),u=$t({select:d=>{var v;const y=d.matches,p=y.findIndex(_=>_.id===n);return(v=y[p+1])==null?void 0:v.id}}),f=t.options.defaultPendingComponent?S.jsx(t.options.defaultPendingComponent,{}):null;if(o)return n1(t,s,void 0);if(!u)return null;const h=S.jsx(r1,{matchId:u});return i===_n?S.jsx(ie.Suspense,{fallback:f,children:h}):h});function dR(){const e=Yt(),n=e.routesById[_n].options.pendingComponent??e.options.defaultPendingComponent,i=n?S.jsx(n,{}):null,s=e.isServer||typeof document<"u"&&e.ssr?Rs:ie.Suspense,o=S.jsxs(s,{fallback:i,children:[!e.isServer&&S.jsx(lR,{}),S.jsx(mR,{})]});return e.options.InnerWrap?S.jsx(e.options.InnerWrap,{children:o}):o}function mR(){const e=Yt(),t=$t({select:s=>{var o;return(o=s.matches[0])==null?void 0:o.id}}),n=$t({select:s=>s.loadedAt}),i=t?S.jsx(r1,{matchId:t}):null;return S.jsx(ff.Provider,{value:t,children:e.options.disableGlobalCatchBoundary?i:S.jsx(Rp,{getResetKey:()=>n,errorComponent:cf,onCatch:s=>{s.message||s.toString()},children:i})})}const pR=e=>new gR(e);class gR extends kC{constructor(t){super(t)}}typeof globalThis<"u"?(globalThis.createFileRoute=q0,globalThis.createLazyFileRoute=G0):typeof window<"u"&&(window.createFileRoute=q0,window.createLazyFileRoute=G0);function yR({router:e,children:t,...n}){Object.keys(n).length>0&&e.update({...e.options,...n,context:{...e.options.context,...n.context}});const i=t1(),s=S.jsx(i.Provider,{value:e,children:t});return e.options.Wrap?S.jsx(e.options.Wrap,{children:s}):s}function vR({router:e,...t}){return S.jsx(yR,{router:e,...t,children:S.jsx(dR,{})})}var _R=Object.create,a1=Object.defineProperty,bR=Object.getOwnPropertyDescriptor,s1=Object.getOwnPropertyNames,xR=Object.getPrototypeOf,SR=Object.prototype.hasOwnProperty,cr=(e,t)=>function(){return t||(0,e[s1(e)[0]])((t={exports:{}}).exports,t),t.exports},ER=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=s1(t),o=0,u=s.length,f;o<u;o++)f=s[o],!SR.call(e,f)&&f!==n&&a1(e,f,{get:(h=>t[h]).bind(null,f),enumerable:!(i=bR(t,f))||i.enumerable});return e},ht=(e,t,n)=>(n=e!=null?_R(xR(e)):{},ER(a1(n,"default",{value:e,enumerable:!0}),e)),l1=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(i){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),wR=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=l1().default;function i(s,o){if(n(s)!="object"||!s)return s;var u=s[Symbol.toPrimitive];if(u!==void 0){var f=u.call(s,o||"default");if(n(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),TR=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=l1().default,i=wR();function s(o){var u=i(o,"string");return n(u)=="symbol"?u:u+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),Aa=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=TR();function i(s,o,u){return(o=n(o))in s?Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[o]=u,s}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),Jn=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=Aa();function i(o,u){var f=Object.keys(o);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(o);u&&(h=h.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),f.push.apply(f,h)}return f}function s(o){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?i(Object(f),!0).forEach(function(h){n(o,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(f)):i(Object(f)).forEach(function(h){Object.defineProperty(o,h,Object.getOwnPropertyDescriptor(f,h))})}return o}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}});function Oa(e){const t={subscribe(n){let i=null,s=!1,o=!1,u=!1;function f(){if(i===null){u=!0;return}o||(o=!0,typeof i=="function"?i():i&&i.unsubscribe())}return i=e({next(h){var d;s||(d=n.next)===null||d===void 0||d.call(n,h)},error(h){var d;s||(s=!0,(d=n.error)===null||d===void 0||d.call(n,h),f())},complete(){var h;s||(s=!0,(h=n.complete)===null||h===void 0||h.call(n),f())}}),u&&f(),{unsubscribe:f}},pipe(...n){return n.reduce(kR,t)}};return t}function kR(e,t){return t(e)}function CR(e){const t=new AbortController;return new Promise((i,s)=>{let o=!1;function u(){o||(o=!0,f.unsubscribe())}t.signal.addEventListener("abort",()=>{s(t.signal.reason)});const f=e.subscribe({next(h){o=!0,i(h),u()},error(h){s(h)},complete(){t.abort(),u()}})})}function RR(e){return t=>{let n=0,i=null;const s=[];function o(){i||(i=t.subscribe({next(f){for(const d of s){var h;(h=d.next)===null||h===void 0||h.call(d,f)}},error(f){for(const d of s){var h;(h=d.error)===null||h===void 0||h.call(d,f)}},complete(){for(const h of s){var f;(f=h.complete)===null||f===void 0||f.call(h)}}}))}function u(){if(n===0&&i){const f=i;i=null,f.unsubscribe()}}return Oa(f=>(n++,s.push(f),o(),{unsubscribe(){n--,u();const h=s.findIndex(d=>d===f);h>-1&&s.splice(h,1)}}))}}function o1(e){let t=e;const n=[],i=u=>{t!==void 0&&u.next(t),n.push(u)},s=u=>{n.splice(n.indexOf(u),1)},o=Oa(u=>(i(u),()=>{s(u)}));return o.next=u=>{if(t!==u){t=u;for(const f of n)f.next(u)}},o.get=()=>t,o}function u1(e){return Oa(t=>{function n(s=0,o=e.op){const u=e.links[s];if(!u)throw new Error("No more links to execute - did you forget to add an ending link?");return u({op:o,next(h){return n(s+1,h)}})}return n().subscribe(t)})}function Q0(e){return Array.isArray(e)?e:[e]}function AR(e){return t=>{const n=Q0(e.true).map(s=>s(t)),i=Q0(e.false).map(s=>s(t));return s=>Oa(o=>{const u=e.condition(s.op)?n:i;return u1({op:s.op,links:u}).subscribe(o)})}}function zi(e){return!!e&&!Array.isArray(e)&&typeof e=="object"}function OR(e){return typeof e=="function"}const LR=typeof Symbol=="function"&&!!Symbol.asyncIterator;function NR(e){return LR&&zi(e)&&Symbol.asyncIterator in e}const Zm=e=>e();function $0(e=0){return new Promise(t=>setTimeout(t,e))}var jR=Object.create,c1=Object.defineProperty,DR=Object.getOwnPropertyDescriptor,f1=Object.getOwnPropertyNames,MR=Object.getPrototypeOf,PR=Object.prototype.hasOwnProperty,Io=(e,t)=>function(){return t||(0,e[f1(e)[0]])((t={exports:{}}).exports,t),t.exports},zR=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=f1(t),o=0,u=s.length,f;o<u;o++)f=s[o],!PR.call(e,f)&&f!==n&&c1(e,f,{get:(h=>t[h]).bind(null,f),enumerable:!(i=DR(t,f))||i.enumerable});return e},pf=(e,t,n)=>(n=e!=null?jR(MR(e)):{},zR(c1(n,"default",{value:e,enumerable:!0}),e));const h1=()=>{},Y0=e=>{Object.freeze&&Object.freeze(e)};function d1(e,t,n){var i;const s=t.join(".");return(i=n[s])!==null&&i!==void 0||(n[s]=new Proxy(h1,{get(o,u){if(!(typeof u!="string"||u==="then"))return d1(e,[...t,u],n)},apply(o,u,f){const h=t[t.length-1];let d={args:f,path:t};return h==="call"?d={args:f.length>=2?[f[1]]:[],path:t.slice(0,-1)}:h==="apply"&&(d={args:f.length>=2?f[1]:[],path:t.slice(0,-1)}),Y0(d.args),Y0(d.path),e(d)}})),n[s]}const m1=e=>d1(e,[],Object.create(null)),IR=e=>new Proxy(h1,{get(t,n){if(n!=="then")return e(n)}});var p1=Io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(i){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),BR=Io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=p1().default;function i(s,o){if(n(s)!="object"||!s)return s;var u=s[Symbol.toPrimitive];if(u!==void 0){var f=u.call(s,o||"default");if(n(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),UR=Io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=p1().default,i=BR();function s(o){var u=i(o,"string");return n(u)=="symbol"?u:u+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),g1=Io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=UR();function i(s,o,u){return(o=n(o))in s?Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[o]=u,s}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),Ap=Io({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=g1();function i(o,u){var f=Object.keys(o);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(o);u&&(h=h.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),f.push.apply(f,h)}return f}function s(o){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?i(Object(f),!0).forEach(function(h){n(o,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(f)):i(Object(f)).forEach(function(h){Object.defineProperty(o,h,Object.getOwnPropertyDescriptor(f,h))})}return o}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}});pf(Ap());var K0=pf(g1()),qR=class extends Error{};function VR(e){if(e instanceof Error)return e;const t=typeof e;if(!(t==="undefined"||t==="function"||e===null)){if(t!=="object")return new Error(String(e));if(zi(e))return Object.assign(new qR,e)}}var X0=class extends Error{constructor(e){var t,n,i;const s=VR(e.cause),o=(t=(n=e.message)!==null&&n!==void 0?n:s==null?void 0:s.message)!==null&&t!==void 0?t:e.code;super(o,{cause:s}),(0,K0.default)(this,"cause",void 0),(0,K0.default)(this,"code",void 0),this.code=e.code,this.name="TRPCError",(i=this.cause)!==null&&i!==void 0||(this.cause=s)}},hc=pf(Ap());function HR(e,t){if("error"in e){const i=t.deserialize(e.error);return{ok:!1,error:(0,hc.default)((0,hc.default)({},e),{},{error:i})}}return{ok:!0,result:(0,hc.default)((0,hc.default)({},e.result),(!e.result.type||e.result.type==="data")&&{type:"data",data:t.deserialize(e.result.data)})}}var om=class extends Error{constructor(){super("Unable to transform response from server")}};function y1(e,t){let n;try{n=HR(e,t)}catch{throw new om}if(!n.ok&&(!zi(n.error.error)||typeof n.error.error.code!="number"))throw new om;if(n.ok&&!zi(n.result))throw new om;return n}pf(Ap());function GR(e){return typeof e=="function"}async function FR(e,t){const{_def:n}=e;let i=n.procedures[t];for(;!i;){const s=Object.keys(n.lazy).find(u=>t.startsWith(u));if(!s)return null;await n.lazy[s].load(),i=n.procedures[t]}return i}async function QR(e){const{type:t,path:n}=e,i=await FR(e.router,n);if(!i||!GR(i)||i._def.type!==t&&!e.allowMethodOverride)throw new X0({code:"NOT_FOUND",message:`No "${t}"-procedure on path "${n}"`});/* istanbul ignore if -- @preserve */if(i._def.type!==t&&e.allowMethodOverride&&i._def.type==="subscription")throw new X0({code:"METHOD_NOT_SUPPORTED",message:"Method override is not supported for subscriptions"});return i(e)}var dc=ht(Aa()),bs=ht(Jn());function $R(e){return e instanceof Ur}function YR(e){return zi(e)&&zi(e.error)&&typeof e.error.code=="number"&&typeof e.error.message=="string"}function KR(e,t){return typeof e=="string"?e:zi(e)&&typeof e.message=="string"?e.message:t}var Ur=class Rc extends Error{constructor(t,n){var i,s;const o=n==null?void 0:n.cause;super(t,{cause:o}),(0,dc.default)(this,"cause",void 0),(0,dc.default)(this,"shape",void 0),(0,dc.default)(this,"data",void 0),(0,dc.default)(this,"meta",void 0),this.meta=n==null?void 0:n.meta,this.cause=o,this.shape=n==null||(i=n.result)===null||i===void 0?void 0:i.error,this.data=n==null||(s=n.result)===null||s===void 0?void 0:s.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Rc.prototype)}static from(t,n={}){const i=t;return $R(i)?(n.meta&&(i.meta=(0,bs.default)((0,bs.default)({},i.meta),n.meta)),i):YR(i)?new Rc(i.error.message,(0,bs.default)((0,bs.default)({},n),{},{result:i})):new Rc(KR(i,"Unknown error"),(0,bs.default)((0,bs.default)({},n),{},{cause:i}))}};function v1(e){const t=e;return t?"input"in t?t:{input:t,output:t}:{input:{serialize:n=>n,deserialize:n=>n},output:{serialize:n=>n,deserialize:n=>n}}}const Z0=e=>typeof e=="function";function XR(e){if(e)return e;if(typeof window<"u"&&Z0(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Z0(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var mo=ht(Jn());function ZR(e){return{url:e.url.toString(),fetch:e.fetch,transformer:v1(e.transformer),methodOverride:e.methodOverride}}function JR(e){const t={};for(let n=0;n<e.length;n++){const i=e[n];t[n]=i}return t}const WR={query:"GET",mutation:"POST",subscription:"PATCH"};function _1(e){return"input"in e?e.transformer.input.serialize(e.input):JR(e.inputs.map(t=>e.transformer.input.serialize(t)))}const b1=e=>{const t=e.url.split("?");let i=t[0].replace(/\/$/,"")+"/"+e.path;const s=[];if(t[1]&&s.push(t[1]),"inputs"in e&&s.push("batch=1"),e.type==="query"||e.type==="subscription"){const o=_1(e);o!==void 0&&e.methodOverride!=="POST"&&s.push(`input=${encodeURIComponent(JSON.stringify(o))}`)}return s.length&&(i+="?"+s.join("&")),i},eA=e=>{if(e.type==="query"&&e.methodOverride!=="POST")return;const t=_1(e);return t!==void 0?JSON.stringify(t):void 0},tA=e=>aA((0,mo.default)((0,mo.default)({},e),{},{contentTypeHeader:"application/json",getUrl:b1,getBody:eA}));var nA=class extends Error{constructor(){const e="AbortError";super(e),this.name=e,this.message=e}};const rA=e=>{var t;if(e!=null&&e.aborted)throw(t=e.throwIfAborted)===null||t===void 0||t.call(e),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new nA};async function iA(e){var t;rA(e.signal);const n=e.getUrl(e),i=e.getBody(e),s=(t=e.methodOverride)!==null&&t!==void 0?t:WR[e.type],o=await(async()=>{const f=await e.headers();return Symbol.iterator in f?Object.fromEntries(f):f})(),u=(0,mo.default)((0,mo.default)((0,mo.default)({},e.contentTypeHeader&&s!=="GET"?{"content-type":e.contentTypeHeader}:{}),e.trpcAcceptHeader?{"trpc-accept":e.trpcAcceptHeader}:void 0),o);return XR(e.fetch)(n,{method:s,signal:e.signal,body:i,headers:u})}async function aA(e){const t={},n=await iA(e);t.response=n;const i=await n.json();return t.responseJSON=i,{json:i,meta:t}}ht(Jn());const J0=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function W0(e){let t=null,n=null;const i=()=>{clearTimeout(n),n=null,t=null};function s(f){const h=[[]];let d=0;for(;;){const v=f[d];if(!v)break;const _=h[h.length-1];if(v.aborted){var y;(y=v.reject)===null||y===void 0||y.call(v,new Error("Aborted")),d++;continue}if(e.validate(_.concat(v).map(E=>E.key))){_.push(v),d++;continue}if(_.length===0){var p;(p=v.reject)===null||p===void 0||p.call(v,new Error("Input is too big for a single dispatch")),d++;continue}h.push([])}return h}function o(){const f=s(t);i();for(const h of f){if(!h.length)continue;const d={items:h};for(const p of h)p.batch=d;e.fetch(d.items.map(p=>p.key)).then(async p=>{await Promise.all(p.map(async(_,b)=>{const E=d.items[b];try{var k;const R=await Promise.resolve(_);(k=E.resolve)===null||k===void 0||k.call(E,R)}catch(R){var T;(T=E.reject)===null||T===void 0||T.call(E,R)}E.batch=null,E.reject=null,E.resolve=null}));for(const _ of d.items){var v;(v=_.reject)===null||v===void 0||v.call(_,new Error("Missing result")),_.batch=null}}).catch(p=>{for(const _ of d.items){var v;(v=_.reject)===null||v===void 0||v.call(_,p),_.batch=null}})}}function u(f){var h;const d={aborted:!1,key:f,batch:null,resolve:J0,reject:J0},y=new Promise((p,v)=>{var _;d.reject=v,d.resolve=p,(_=t)!==null&&_!==void 0||(t=[]),t.push(d)});return(h=n)!==null&&h!==void 0||(n=setTimeout(o)),y}return{load:u}}function sA(...e){const t=new AbortController,n=e.length;let i=0;const s=()=>{++i===n&&t.abort()};for(const o of e)o!=null&&o.aborted?s():o==null||o.addEventListener("abort",s,{once:!0});return t.signal}var mc=ht(Jn());function lA(e){var t,n;const i=ZR(e),s=(t=e.maxURLLength)!==null&&t!==void 0?t:1/0,o=(n=e.maxItems)!==null&&n!==void 0?n:1/0;return()=>{const u=y=>({validate(p){if(s===1/0&&o===1/0)return!0;if(p.length>o)return!1;const v=p.map(E=>E.path).join(","),_=p.map(E=>E.input);return b1((0,mc.default)((0,mc.default)({},i),{},{type:y,path:v,inputs:_,signal:null})).length<=s},async fetch(p){const v=p.map(R=>R.path).join(","),_=p.map(R=>R.input),b=sA(...p.map(R=>R.signal)),E=await tA((0,mc.default)((0,mc.default)({},i),{},{path:v,inputs:_,type:y,headers(){return e.headers?typeof e.headers=="function"?e.headers({opList:p}):e.headers:{}},signal:b}));return(Array.isArray(E.json)?E.json:p.map(()=>E.json)).map(R=>({meta:E.meta,json:R}))}}),f=W0(u("query")),h=W0(u("mutation")),d={query:f,mutation:h};return({op:y})=>Oa(p=>{/* istanbul ignore if -- @preserve */if(y.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const _=d[y.type].load(y);let b;return _.then(E=>{b=E;const k=y1(E.json,i.transformer.output);if(!k.ok){p.error(Ur.from(k.error,{meta:E.meta}));return}p.next({context:E.meta,result:k.result}),p.complete()}).catch(E=>{p.error(Ur.from(E,{meta:b==null?void 0:b.meta}))}),()=>{}})}}ht(Jn());const oA={enabled:!1,closeMs:0},uA={enabled:!1,pongTimeoutMs:1e3,intervalMs:5e3},cA=e=>e===0?0:Math.min(1e3*2**e,3e4),x1=(e,...t)=>typeof e=="function"?e(...t):e;var fA=ht(Aa()),xs=class S1 extends Error{constructor(t){super(t.message,{cause:t.cause}),this.name="TRPCWebSocketClosedError",Object.setPrototypeOf(this,S1.prototype)}},hA=class{constructor(e,t){this.onTimeout=e,this.timeoutMs=t,(0,fA.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 E1(){let e,t;return{promise:new Promise((i,s)=>{e=i,t=s}),resolve:e,reject:t}}async function dA(e){const t=await x1(e.url);if(!e.connectionParams)return t;const i=`${t.includes("?")?"&":"?"}connectionParams=1`;return t+i}async function mA(e){const t={method:"connectionParams",data:await x1(e)};return JSON.stringify(t)}var eb=ht(Aa()),pA=class{constructor(){(0,eb.default)(this,"outgoingRequests",new Array),(0,eb.default)(this,"pendingRequests",{})}register(e,t){const{promise:n,resolve:i}=E1();return this.outgoingRequests.push({id:String(e.id),message:e,end:n,callbacks:{next:t.next,complete:()=>{t.complete(),i()},error:s=>{t.error(s),i()}}}),()=>{this.delete(e.id),t.complete(),i()}}delete(e){e!==null&&(this.outgoingRequests=this.outgoingRequests.filter(({id:t})=>t!==String(e)),delete this.pendingRequests[String(e)])}flush(){const e=this.outgoingRequests;this.outgoingRequests=[];for(const t of e)this.pendingRequests[t.id]=t;return e}getPendingRequests(){return Object.values(this.pendingRequests)}getPendingRequest(e){return e===null?null:this.pendingRequests[String(e)]}getOutgoingRequests(){return this.outgoingRequests}getRequests(){return[...this.getOutgoingRequests().map(e=>({state:"outgoing",message:e.message,end:e.end,callbacks:e.callbacks})),...this.getPendingRequests().map(e=>({state:"pending",message:e.message,end:e.end,callbacks:e.callbacks}))]}hasPendingRequests(){return this.getPendingRequests().length>0}hasPendingSubscriptions(){return this.getPendingRequests().some(e=>e.message.method==="subscription")}hasOutgoingRequests(){return this.outgoingRequests.length>0}},sa=ht(Aa());function gA(e){const{promise:t,resolve:n,reject:i}=E1();return e.addEventListener("open",()=>{e.removeEventListener("error",i),n()}),e.addEventListener("error",i),t}function yA(e,{intervalMs:t,pongTimeoutMs:n}){let i,s;function o(){i=setTimeout(()=>{e.send("PING"),s=setTimeout(()=>{e.close()},n)},t)}function u(){clearTimeout(i),o()}function f(){clearTimeout(s),u()}e.addEventListener("open",o),e.addEventListener("message",({data:h})=>{clearTimeout(i),o(),h==="PONG"&&f()}),e.addEventListener("close",()=>{clearTimeout(i),clearTimeout(s)})}var w1=class Jm{constructor(t){var n;if((0,sa.default)(this,"id",++Jm.connectCount),(0,sa.default)(this,"WebSocketPonyfill",void 0),(0,sa.default)(this,"urlOptions",void 0),(0,sa.default)(this,"keepAliveOpts",void 0),(0,sa.default)(this,"wsObservable",o1(null)),(0,sa.default)(this,"openPromise",null),this.WebSocketPonyfill=(n=t.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=t.urlOptions,this.keepAliveOpts=t.keepAlive}get ws(){return this.wsObservable.get()}set ws(t){this.wsObservable.next(t)}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 t=this;if(t.openPromise)return t.openPromise;t.id=++Jm.connectCount;const n=dA(t.urlOptions).then(i=>new t.WebSocketPonyfill(i));t.openPromise=n.then(async i=>{t.ws=i,i.addEventListener("message",function({data:s}){s==="PING"&&this.send("PONG")}),t.keepAliveOpts.enabled&&yA(i,t.keepAliveOpts),i.addEventListener("close",()=>{t.ws===i&&(t.ws=null)}),await gA(i),t.urlOptions.connectionParams&&i.send(await mA(t.urlOptions.connectionParams))});try{await t.openPromise}finally{t.openPromise=null}}async close(){var t=this;try{await t.openPromise}finally{var n;(n=t.ws)===null||n===void 0||n.close()}}};(0,sa.default)(w1,"connectCount",0);function vA(e){return e.isOpen()?{id:e.id,state:"open",ws:e.ws}:e.isClosed()?{id:e.id,state:"closed",ws:e.ws}:e.ws?{id:e.id,state:"connecting",ws:e.ws}:null}var jr=ht(Aa()),Ss=ht(Jn()),_A=class{constructor(e){var t;(0,jr.default)(this,"connectionState",void 0),(0,jr.default)(this,"allowReconnect",!1),(0,jr.default)(this,"requestManager",new pA),(0,jr.default)(this,"activeConnection",void 0),(0,jr.default)(this,"reconnectRetryDelay",void 0),(0,jr.default)(this,"inactivityTimeout",void 0),(0,jr.default)(this,"callbacks",void 0),(0,jr.default)(this,"lazyMode",void 0),(0,jr.default)(this,"reconnecting",null),this.callbacks={onOpen:e.onOpen,onClose:e.onClose,onError:e.onError};const n=(0,Ss.default)((0,Ss.default)({},oA),e.lazy);this.inactivityTimeout=new hA(()=>{if(this.requestManager.hasOutgoingRequests()||this.requestManager.hasPendingRequests()){this.inactivityTimeout.reset();return}this.close().catch(()=>null)},n.closeMs),this.activeConnection=new w1({WebSocketPonyfill:e.WebSocket,urlOptions:e,keepAlive:(0,Ss.default)((0,Ss.default)({},uA),e.keepAlive)}),this.activeConnection.wsObservable.subscribe({next:i=>{i&&this.setupWebSocketListeners(i)}}),this.reconnectRetryDelay=(t=e.retryDelayMs)!==null&&t!==void 0?t:cA,this.lazyMode=n.enabled,this.connectionState=o1({type:"state",state:n.enabled?"idle":"connecting",error:null}),this.lazyMode||this.open().catch(()=>null)}async open(){var e=this;e.allowReconnect=!0,e.connectionState.get().state==="idle"&&e.connectionState.next({type:"state",state:"connecting",error:null});try{await e.activeConnection.open()}catch(t){return e.reconnect(new xs({message:"Initialization error",cause:t})),e.reconnecting}}async close(){var e=this;e.allowReconnect=!1,e.inactivityTimeout.stop();const t=[];for(const n of e.requestManager.getRequests())n.message.method==="subscription"?n.callbacks.complete():n.state==="outgoing"?n.callbacks.error(Ur.from(new xs({message:"Closed before connection was established"}))):t.push(n.end);await Promise.all(t).catch(()=>null),await e.activeConnection.close().catch(()=>null),e.connectionState.next({type:"state",state:"idle",error:null})}request({op:{id:e,type:t,path:n,input:i,signal:s},transformer:o,lastEventId:u}){return Oa(f=>{const h=this.batchSend({id:e,method:t,params:{input:o.input.serialize(i),path:n,lastEventId:u}},(0,Ss.default)((0,Ss.default)({},f),{},{next(d){const y=y1(d,o.output);if(!y.ok){f.error(Ur.from(y.error));return}f.next({result:y.result})}}));return()=>{h(),t==="subscription"&&this.activeConnection.isOpen()&&this.send({id:e,method:"subscription.stop"}),s==null||s.removeEventListener("abort",h)}})}get connection(){return vA(this.activeConnection)}reconnect(e){var t=this;if(this.connectionState.next({type:"state",state:"connecting",error:Ur.from(e)}),this.reconnecting)return;const n=async i=>{try{await $0(t.reconnectRetryDelay(i)),t.allowReconnect&&(await t.activeConnection.close(),await t.activeConnection.open(),t.requestManager.hasPendingRequests()&&t.send(t.requestManager.getPendingRequests().map(({message:s})=>s))),t.reconnecting=null}catch{await n(i+1)}};this.reconnecting=n(0)}setupWebSocketListeners(e){var t=this;const n=i=>{const s=this.requestManager.getPendingRequests();for(const{message:o,callbacks:u}of s)o.method!=="subscription"&&(u.error(Ur.from(i??new xs({message:"WebSocket closed",cause:i}))),this.requestManager.delete(o.id))};e.addEventListener("open",()=>{Zm(async()=>{var i,s;t.lazyMode&&t.inactivityTimeout.start(),(i=(s=t.callbacks).onOpen)===null||i===void 0||i.call(s),t.connectionState.next({type:"state",state:"pending",error:null})}).catch(i=>{e.close(3e3),n(i)})}),e.addEventListener("message",({data:i})=>{if(this.inactivityTimeout.reset(),typeof i!="string"||["PING","PONG"].includes(i))return;const s=JSON.parse(i);if("method"in s){this.handleIncomingRequest(s);return}this.handleResponseMessage(s)}),e.addEventListener("close",i=>{var s,o;n(i),(s=(o=this.callbacks).onClose)===null||s===void 0||s.call(o,i),(!this.lazyMode||this.requestManager.hasPendingSubscriptions())&&this.reconnect(new xs({message:"WebSocket closed",cause:i}))}),e.addEventListener("error",i=>{var s,o;n(i),(s=(o=this.callbacks).onError)===null||s===void 0||s.call(o,i),this.reconnect(new xs({message:"WebSocket closed",cause:i}))})}handleResponseMessage(e){const t=this.requestManager.getPendingRequest(e.id);if(!t)return;t.callbacks.next(e);let n=!0;"result"in e&&t.message.method==="subscription"&&(e.result.type==="data"&&(t.message.params.lastEventId=e.result.id),e.result.type!=="stopped"&&(n=!1)),n&&(t.callbacks.complete(),this.requestManager.delete(e.id))}handleIncomingRequest(e){e.method==="reconnect"&&this.reconnect(new xs({message:"Server requested reconnect"}))}send(e){if(!this.activeConnection.isOpen())throw new Error("Active connection is not open");const t=e instanceof Array?e:[e];this.activeConnection.ws.send(JSON.stringify(t.length===1?t[0]:t))}batchSend(e,t){var n=this;return this.inactivityTimeout.reset(),Zm(async()=>{n.activeConnection.isOpen()||await n.open(),await $0(0),n.requestManager.hasOutgoingRequests()&&n.send(n.requestManager.flush().map(({message:i})=>i))}).catch(i=>{this.requestManager.delete(e.id),t.error(Ur.from(i))}),this.requestManager.register(e,t)}};function bA(e){return new _A(e)}function xA(e){const{client:t}=e,n=v1(e.transformer);return()=>({op:i})=>Oa(s=>{const o=i.type==="subscription"?t.connectionState.subscribe({next(f){s.next({result:f,context:i.context})}}):null,u=t.request({op:i,transformer:n}).subscribe(s);return()=>{u.unsubscribe(),o==null||o.unsubscribe()}})}var um=ht(Aa()),tb=ht(Jn()),T1=class{constructor(e){(0,um.default)(this,"links",void 0),(0,um.default)(this,"runtime",void 0),(0,um.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=e.links.map(t=>t(this.runtime))}$request(e){var t;return u1({links:this.links,op:(0,tb.default)((0,tb.default)({},e),{},{context:(t=e.context)!==null&&t!==void 0?t:{},id:++this.requestId})}).pipe(RR())}async requestAsPromise(e){var t=this;try{const n=t.$request(e);return(await CR(n)).result.data}catch(n){throw Ur.from(n)}}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n==null?void 0:n.context,signal:n==null?void 0:n.signal})}subscription(e,t,n){return this.$request({type:"subscription",path:e,input:t,context:n.context,signal:n.signal}).subscribe({next(s){switch(s.result.type){case"state":{var o;(o=n.onConnectionStateChange)===null||o===void 0||o.call(n,s.result);break}case"started":{var u;(u=n.onStarted)===null||u===void 0||u.call(n,{context:s.context});break}case"stopped":{var f;(f=n.onStopped)===null||f===void 0||f.call(n);break}case"data":case void 0:{var h;(h=n.onData)===null||h===void 0||h.call(n,s.result.data);break}}},error(s){var o;(o=n.onError)===null||o===void 0||o.call(n,s)},complete(){var s;(s=n.onComplete)===null||s===void 0||s.call(n)}})}};const k1=Symbol.for("trpc_untypedClient"),SA={query:"query",mutate:"mutation",subscribe:"subscription"},EA=e=>SA[e];function wA(e){const t=m1(({path:n,args:i})=>{const s=[...n],o=EA(s.pop()),u=s.join(".");return e[o](u,...i)});return IR(n=>n===k1?e:t[n])}function TA(e){const t=new T1(e);return wA(t)}function kA(e){return e[k1]}ht(Jn());ht(Jn());var CA=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(s){var o,u,f,h=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,f=Symbol.iterator);h--;){if(u&&(o=s[u])!=null)return o.call(s);if(f&&(o=s[f])!=null)return new i(o.call(s));u="@@asyncIterator",f="@@iterator"}throw new TypeError("Object is not async iterable")}function i(s){function o(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var f=u.done;return Promise.resolve(u.value).then(function(h){return{value:h,done:f}})}return i=function(f){this.s=f,this.n=f.next},i.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(f){var h=this.s.return;return h===void 0?Promise.resolve({value:f,done:!0}):o(h.apply(this.s,arguments))},throw:function(f){var h=this.s.return;return h===void 0?Promise.reject(f):o(h.apply(this.s,arguments))}},new i(s)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});ht(CA());ht(Jn());var RA=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(e,t){function n(){var i=typeof SuppressedError=="function"?SuppressedError:function(f,h){var d=Error();return d.name="SuppressedError",d.error=f,d.suppressed=h,d},s={},o=[];function u(f,h){if(h!=null){if(Object(h)!==h)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(f)var d=h[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(d===void 0&&(d=h[Symbol.dispose||Symbol.for("Symbol.dispose")],f))var y=d;if(typeof d!="function")throw new TypeError("Object is not disposable.");y&&(d=function(){try{y.call(h)}catch(v){return Promise.reject(v)}}),o.push({v:h,d,a:f})}else f&&o.push({d:h,a:f});return h}return{e:s,u:u.bind(null,!1),a:u.bind(null,!0),d:function(){var h,d=this.e,y=0;function p(){for(;h=o.pop();)try{if(!h.a&&y===1)return y=0,o.push(h),Promise.resolve().then(p);if(h.d){var _=h.d.call(h.v);if(h.a)return y|=2,Promise.resolve(_).then(p,v)}else y|=1}catch(b){return v(b)}if(y===1)return d!==s?Promise.reject(d):Promise.resolve();if(d!==s)throw d}function v(_){return d=d!==s?new i(_,d):_,p()}return p()}}}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),C1=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(e,t){function n(i,s){this.v=i,this.k=s}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),AA=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(e,t){var n=C1();function i(s){return new n(s,0)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),OA=cr({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(e,t){var n=C1();function i(o){return function(){return new s(o.apply(this,arguments))}}function s(o){var u,f;function h(y,p){try{var v=o[y](p),_=v.value,b=_ instanceof n;Promise.resolve(b?_.v:_).then(function(E){if(b){var k=y==="return"?"return":"next";if(!_.k||E.done)return h(k,E);E=o[k](E).value}d(v.done?"return":"normal",E)},function(E){h("throw",E)})}catch(E){d("throw",E)}}function d(y,p){switch(y){case"return":u.resolve({value:p,done:!0});break;case"throw":u.reject(p);break;default:u.resolve({value:p,done:!1})}(u=u.next)?h(u.key,u.arg):f=null}this._invoke=function(y,p){return new Promise(function(v,_){var b={key:y,arg:p,resolve:v,reject:_,next:null};f?f=f.next=b:(u=f=b,h(y,p))})},typeof o.return!="function"&&(this.return=void 0)}s.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},s.prototype.next=function(o){return this._invoke("next",o)},s.prototype.throw=function(o){return this._invoke("throw",o)},s.prototype.return=function(o){return this._invoke("return",o)},t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}});ht(RA());ht(AA());ht(OA());ht(Jn());var LA=Object.create,R1=Object.defineProperty,NA=Object.getOwnPropertyDescriptor,A1=Object.getOwnPropertyNames,jA=Object.getPrototypeOf,DA=Object.prototype.hasOwnProperty,Ii=(e,t)=>function(){return t||(0,e[A1(e)[0]])((t={exports:{}}).exports,t),t.exports},MA=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(var s=A1(t),o=0,u=s.length,f;o<u;o++)f=s[o],!DA.call(e,f)&&f!==n&&R1(e,f,{get:(h=>t[h]).bind(null,f),enumerable:!(i=NA(t,f))||i.enumerable});return e},Bi=(e,t,n)=>(n=e!=null?LA(jA(e)):{},MA(t||!e||!e.__esModule?R1(n,"default",{value:e,enumerable:!0}):n,e)),O1=Ii({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(e,t){function n(i){"@babel/helpers - typeof";return t.exports=n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(s){return typeof s}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t.exports.__esModule=!0,t.exports.default=t.exports,n(i)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),PA=Ii({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(e,t){var n=O1().default;function i(s,o){if(n(s)!="object"||!s)return s;var u=s[Symbol.toPrimitive];if(u!==void 0){var f=u.call(s,o||"default");if(n(f)!="object")return f;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(s)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),zA=Ii({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(e,t){var n=O1().default,i=PA();function s(o){var u=i(o,"string");return n(u)=="symbol"?u:u+""}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),IA=Ii({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(e,t){var n=zA();function i(s,o,u){return(o=n(o))in s?Object.defineProperty(s,o,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[o]=u,s}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),tl=Ii({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(e,t){var n=IA();function i(o,u){var f=Object.keys(o);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(o);u&&(h=h.filter(function(d){return Object.getOwnPropertyDescriptor(o,d).enumerable})),f.push.apply(f,h)}return f}function s(o){for(var u=1;u<arguments.length;u++){var f=arguments[u]!=null?arguments[u]:{};u%2?i(Object(f),!0).forEach(function(h){n(o,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(f)):i(Object(f)).forEach(function(h){Object.defineProperty(o,h,Object.getOwnPropertyDescriptor(f,h))})}return o}t.exports=s,t.exports.__esModule=!0,t.exports.default=t.exports}}),BA=Ii({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(e,t){function n(s){var o,u,f,h=2;for(typeof Symbol<"u"&&(u=Symbol.asyncIterator,f=Symbol.iterator);h--;){if(u&&(o=s[u])!=null)return o.call(s);if(f&&(o=s[f])!=null)return new i(o.call(s));u="@@asyncIterator",f="@@iterator"}throw new TypeError("Object is not async iterable")}function i(s){function o(u){if(Object(u)!==u)return Promise.reject(new TypeError(u+" is not an object."));var f=u.done;return Promise.resolve(u.value).then(function(h){return{value:h,done:f}})}return i=function(f){this.s=f,this.n=f.next},i.prototype={s:null,n:null,next:function(){return o(this.n.apply(this.s,arguments))},return:function(f){var h=this.s.return;return h===void 0?Promise.resolve({value:f,done:!0}):o(h.apply(this.s,arguments))},throw:function(f){var h=this.s.return;return h===void 0?Promise.reject(f):o(h.apply(this.s,arguments))}},new i(s)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),UA=Ii({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(e,t){function n(i,s){if(i==null)return{};var o={};for(var u in i)if({}.hasOwnProperty.call(i,u)){if(s.includes(u))continue;o[u]=i[u]}return o}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}}),qA=Ii({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(e,t){var n=UA();function i(s,o){if(s==null)return{};var u,f,h=n(s,o);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(s);for(f=0;f<d.length;f++)u=d[f],o.includes(u)||{}.propertyIsEnumerable.call(s,u)&&(h[u]=s[u])}return h}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports}}),po=Bi(tl(),1),VA=Bi(BA(),1),HA=Bi(qA(),1);const GA=["cursor","direction"];function gf(e){return{path:e.path.join(".")}}function FA(e){return e.length>=3}function L1(e){return FA(e)?{type:"prefixed",prefix:e[0],path:e[1],args:e[2]}:{type:"unprefixed",prefix:void 0,path:e[0],args:e[1]}}function Op(e,t,n){var i;const s=L1(e);let o=(i=s.args)===null||i===void 0?void 0:i.input;if(n){var u,f;o=(0,po.default)((0,po.default)((0,po.default)({},(u=(f=s.args)===null||f===void 0?void 0:f.input)!==null&&u!==void 0?u:{}),n.pageParam!==void 0?{cursor:n.pageParam}:{}),{},{direction:n.direction})}return[s.path.join("."),o,t==null?void 0:t.trpc]}async function QA(e,t,n){const s=t.getQueryCache().build(t,{queryKey:n});s.setState({data:[],status:"success"});const o=[];var u=!1,f=!1,h;try{for(var d=(0,VA.default)(e),y;u=!(y=await d.next()).done;u=!1){const p=y.value;o.push(p),s.setState({data:[...o]})}}catch(p){f=!0,h=p}finally{try{u&&d.return!=null&&await d.return()}finally{if(f)throw h}}return o}function Dr(e){const t=Zm(()=>{const{input:n,type:i}=e,s=e.path.flatMap(o=>o.split("."));if(!n&&i==="any")return s.length?[s]:[];if(i==="infinite"&&zi(n)&&("direction"in n||"cursor"in n)){const{cursor:o,direction:u}=n,f=(0,HA.default)(n,GA);return[s,{input:f,type:"infinite"}]}return[s,(0,po.default)((0,po.default)({},typeof n<"u"&&n!==Hr&&{input:n}),i&&i!=="any"&&{type:i})]});return e.prefix&&t.unshift([e.prefix]),t}function N1(e){const t=[e.path.flatMap(n=>n.split("."))];return e.prefix&&t.unshift([e.prefix]),t}function Lp(e){return OR(e)?e():e}var Es=Bi(tl());function $A(e){var t;const{input:n,query:i,path:s,queryKey:o,opts:u}=e,f=n===Hr,h=async d=>{var y;const p=(0,Es.default)((0,Es.default)({},u),{},{trpc:(0,Es.default)((0,Es.default)({},u==null?void 0:u.trpc),!(u==null||(y=u.trpc)===null||y===void 0)&&y.abortOnUnmount?{signal:d.signal}:{signal:null})});return await i(...Op(o,p,{direction:d.direction,pageParam:d.pageParam}))};return Object.assign((0,Es.default)((0,Es.default)({},u??{}),{},{queryKey:o,queryFn:f?Hr:h,initialPageParam:(t=u==null?void 0:u.initialCursor)!==null&&t!==void 0?t:n==null?void 0:n.cursor}),{trpc:gf({path:s})})}var nb=Bi(tl());function YA(e){var t;const{mutate:n,path:i,opts:s,overrides:o}=e,u=Lp(e.queryClient),f=N1({path:i,prefix:s==null?void 0:s.keyPrefix}),h=u.defaultMutationOptions(u.getMutationDefaults(f)),d=(t=o==null?void 0:o.onSuccess)!==null&&t!==void 0?t:p=>p.originalFn(),y=async p=>await n(...Op([...f,{input:p}],s));return(0,nb.default)((0,nb.default)({},s),{},{mutationKey:f,mutationFn:y,onSuccess(...p){var v,_;return d({originalFn:()=>{var E,k,T;return(E=s==null||(k=s.onSuccess)===null||k===void 0?void 0:k.call(s,...p))!==null&&E!==void 0?E:h==null||(T=h.onSuccess)===null||T===void 0?void 0:T.call(h,...p)},queryClient:u,meta:(v=(_=s==null?void 0:s.meta)!==null&&_!==void 0?_:h==null?void 0:h.meta)!==null&&v!==void 0?v:{}})},trpc:gf({path:i})})}var ws=Bi(tl());function KA(e){const{input:t,query:n,path:i,queryKey:s,opts:o}=e,u=Lp(e.queryClient),f=t===Hr,h=async d=>{var y;const p=(0,ws.default)((0,ws.default)({},o),{},{trpc:(0,ws.default)((0,ws.default)({},o==null?void 0:o.trpc),!(o==null||(y=o.trpc)===null||y===void 0)&&y.abortOnUnmount?{signal:d.signal}:{signal:null})}),v=d.queryKey,_=await n(...Op(v,p));return NR(_)?QA(_,u,v):_};return Object.assign((0,ws.default)((0,ws.default)({},o),{},{queryKey:s,queryFn:f?Hr:h}),{trpc:gf({path:i})})}var rb=Bi(tl(),1);const XA=e=>{var t;const{subscribe:n,path:i,queryKey:s,opts:o={}}=e,u=(t=L1(s))===null||t===void 0||(t=t.args)===null||t===void 0?void 0:t.input,f="enabled"in o?!!o.enabled:u!==Hr,h=d=>n(i.join("."),u??void 0,d);return(0,rb.default)((0,rb.default)({},o),{},{enabled:f,subscribe:h,queryKey:s,trpc:gf({path:i})})};var Ts=Bi(tl(),1);function ZA(e){const t=e.keyPrefix,n=i=>(s,o,u)=>"router"in e?Promise.resolve(Lp(e.ctx)).then(h=>QR({router:e.router,path:s,getRawInput:async()=>o,ctx:h,type:i,signal:void 0})):(e.client instanceof T1?e.client:kA(e.client))[i](s,o,u);return m1(({args:i,path:s})=>{const o=[...s],u=o.pop(),[f,h]=i;return{"~types":void 0,pathKey:()=>Dr({path:o,type:"any",prefix:t}),pathFilter:()=>(0,Ts.default)((0,Ts.default)({},f),{},{queryKey:Dr({path:o,type:"any",prefix:t})}),queryOptions:()=>KA({input:f,opts:h,path:o,queryClient:e.queryClient,queryKey:Dr({path:o,input:f,type:"query",prefix:t}),query:n("query")}),queryKey:()=>Dr({path:o,input:f,type:"query",prefix:t}),queryFilter:()=>(0,Ts.default)((0,Ts.default)({},h),{},{queryKey:Dr({path:o,input:f,type:"query",prefix:t})}),infiniteQueryOptions:()=>$A({input:f,opts:h,path:o,queryKey:Dr({path:o,input:f,type:"infinite",prefix:t}),query:n("query")}),infiniteQueryKey:()=>Dr({path:o,input:f,type:"infinite",prefix:t}),infiniteQueryFilter:()=>(0,Ts.default)((0,Ts.default)({},h),{},{queryKey:Dr({path:o,input:f,type:"infinite",prefix:t})}),mutationOptions:()=>{var y;return YA({opts:f,path:o,queryClient:e.queryClient,mutate:n("mutation"),overrides:(y=e.overrides)===null||y===void 0?void 0:y.mutations})},mutationKey:()=>N1({path:o,prefix:t}),subscriptionOptions:()=>XA({opts:h,path:o,queryKey:Dr({path:o,input:f,type:"any",prefix:t}),subscribe:n("subscription")})}[u]()})}function Ls(){const t=new URLSearchParams(window.location.search).get("api");return t?t.replace(/\/$/,""):""}function JA(){const e=Ls();if(e){const n=new URL(e);return`${n.protocol==="https:"?"wss:":"ws:"}//${n.host}/trpc`}return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/trpc`}function WA(){const e=Ls();return e?`${e}/trpc`:"/trpc"}function e2(){const e=Ls();return e?`${e}/api/health`:"/api/health"}const Rt=new xk({defaultOptions:{queries:{staleTime:60*1e3}}}),t2=bA({url:JA(),retryDelayMs:()=>1e3}),Fr=TA({links:[AR({condition:e=>e.type==="subscription",true:xA({client:t2}),false:lA({url:WA()})})]}),Sn=ZA({client:Fr,queryClient:Rt});function n2(e){const t=new MutationObserver(n=>{for(const i of n)i.attributeName==="class"&&e()});return t.observe(document.documentElement,{attributes:!0}),()=>t.disconnect()}function r2(){return document.documentElement.classList.contains("dark")}function i2(){return!1}function j1(){return ie.useSyncExternalStore(n2,r2,i2)}/**
67
67
  * @license lucide-react v0.472.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
70
70
  * See the LICENSE file in the root directory of this source tree.
71
- */const e2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),j1=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();/**
71
+ */const a2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),D1=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();/**
72
72
  * @license lucide-react v0.472.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
76
- */var t2={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"};/**
76
+ */var s2={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"};/**
77
77
  * @license lucide-react v0.472.0 - ISC
78
78
  *
79
79
  * This source code is licensed under the ISC license.
80
80
  * See the LICENSE file in the root directory of this source tree.
81
- */const n2=ie.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:o,iconNode:u,...f},h)=>ie.createElement("svg",{ref:h,...t2,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:j1("lucide",s),...f},[...u.map(([d,y])=>ie.createElement(d,y)),...Array.isArray(o)?o:[o]]));/**
81
+ */const l2=ie.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:s="",children:o,iconNode:u,...f},h)=>ie.createElement("svg",{ref:h,...s2,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:D1("lucide",s),...f},[...u.map(([d,y])=>ie.createElement(d,y)),...Array.isArray(o)?o:[o]]));/**
82
82
  * @license lucide-react v0.472.0 - ISC
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
- */const Ke=(e,t)=>{const n=ie.forwardRef(({className:i,...s},o)=>ie.createElement(n2,{ref:o,iconNode:t,className:j1(`lucide-${e2(e)}`,i),...s}));return n.displayName=`${e}`,n};/**
86
+ */const Ke=(e,t)=>{const n=ie.forwardRef(({className:i,...s},o)=>ie.createElement(l2,{ref:o,iconNode:t,className:D1(`lucide-${a2(e)}`,i),...s}));return n.displayName=`${e}`,n};/**
87
87
  * @license lucide-react v0.472.0 - ISC
88
88
  *
89
89
  * This source code is licensed under the ISC license.
90
90
  * See the LICENSE file in the root directory of this source tree.
91
- */const r2=[["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"}]],Ea=Ke("Archive",r2);/**
91
+ */const o2=[["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"}]],Ea=Ke("Archive",o2);/**
92
92
  * @license lucide-react v0.472.0 - ISC
93
93
  *
94
94
  * This source code is licensed under the ISC license.
95
95
  * See the LICENSE file in the root directory of this source tree.
96
- */const i2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Lp=Ke("ArrowLeft",i2);/**
96
+ */const u2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Np=Ke("ArrowLeft",u2);/**
97
97
  * @license lucide-react v0.472.0 - ISC
98
98
  *
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
- */const a2=[["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"}]],s2=Ke("Bot",a2);/**
101
+ */const c2=[["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"}]],f2=Ke("Bot",c2);/**
102
102
  * @license lucide-react v0.472.0 - ISC
103
103
  *
104
104
  * This source code is licensed under the ISC license.
105
105
  * See the LICENSE file in the root directory of this source tree.
106
- */const l2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],o2=Ke("ChevronDown",l2);/**
106
+ */const h2=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],d2=Ke("ChevronDown",h2);/**
107
107
  * @license lucide-react v0.472.0 - ISC
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
- */const u2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Np=Ke("ChevronRight",u2);/**
111
+ */const m2=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],jp=Ke("ChevronRight",m2);/**
112
112
  * @license lucide-react v0.472.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
- */const c2=[["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"}]],Hc=Ke("CircleAlert",c2);/**
116
+ */const p2=[["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"}]],Hc=Ke("CircleAlert",p2);/**
117
117
  * @license lucide-react v0.472.0 - ISC
118
118
  *
119
119
  * This source code is licensed under the ISC license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
- */const f2=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],yf=Ke("CircleCheckBig",f2);/**
121
+ */const g2=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],yf=Ke("CircleCheckBig",g2);/**
122
122
  * @license lucide-react v0.472.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const h2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],d2=Ke("Circle",h2);/**
126
+ */const y2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],v2=Ke("Circle",y2);/**
127
127
  * @license lucide-react v0.472.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */const m2=[["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"}]],Ks=Ke("FileText",m2);/**
131
+ */const _2=[["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"}]],Xs=Ke("FileText",_2);/**
132
132
  * @license lucide-react v0.472.0 - ISC
133
133
  *
134
134
  * This source code is licensed under the ISC license.
135
135
  * See the LICENSE file in the root directory of this source tree.
136
- */const p2=[["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"}]],g2=Ke("FolderOpen",p2);/**
136
+ */const b2=[["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"}]],x2=Ke("FolderOpen",b2);/**
137
137
  * @license lucide-react v0.472.0 - ISC
138
138
  *
139
139
  * This source code is licensed under the ISC license.
140
140
  * See the LICENSE file in the root directory of this source tree.
141
- */const y2=[["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"}]],v2=Ke("FolderPlus",y2);/**
141
+ */const S2=[["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"}]],E2=Ke("FolderPlus",S2);/**
142
142
  * @license lucide-react v0.472.0 - ISC
143
143
  *
144
144
  * This source code is licensed under the ISC license.
145
145
  * See the LICENSE file in the root directory of this source tree.
146
- */const _2=[["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"}]],b2=Ke("Folder",_2);/**
146
+ */const w2=[["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"}]],T2=Ke("Folder",w2);/**
147
147
  * @license lucide-react v0.472.0 - ISC
148
148
  *
149
149
  * This source code is licensed under the ISC license.
150
150
  * See the LICENSE file in the root directory of this source tree.
151
- */const x2=[["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"}]],jp=Ke("GitBranch",x2);/**
151
+ */const k2=[["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"}]],Dp=Ke("GitBranch",k2);/**
152
152
  * @license lucide-react v0.472.0 - ISC
153
153
  *
154
154
  * This source code is licensed under the ISC license.
155
155
  * See the LICENSE file in the root directory of this source tree.
156
- */const S2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],E2=Ke("Info",S2);/**
156
+ */const C2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],R2=Ke("Info",C2);/**
157
157
  * @license lucide-react v0.472.0 - ISC
158
158
  *
159
159
  * This source code is licensed under the ISC license.
160
160
  * See the LICENSE file in the root directory of this source tree.
161
- */const w2=[["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"}]],T2=Ke("LayoutDashboard",w2);/**
161
+ */const A2=[["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"}]],O2=Ke("LayoutDashboard",A2);/**
162
162
  * @license lucide-react v0.472.0 - ISC
163
163
  *
164
164
  * This source code is licensed under the ISC license.
165
165
  * See the LICENSE file in the root directory of this source tree.
166
- */const k2=[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],C2=Ke("ListTodo",k2);/**
166
+ */const L2=[["rect",{x:"3",y:"5",width:"6",height:"6",rx:"1",key:"1defrl"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]],N2=Ke("ListTodo",L2);/**
167
167
  * @license lucide-react v0.472.0 - ISC
168
168
  *
169
169
  * This source code is licensed under the ISC license.
170
170
  * See the LICENSE file in the root directory of this source tree.
171
- */const R2=[["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"}]],nb=Ke("List",R2);/**
171
+ */const j2=[["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"}]],ib=Ke("List",j2);/**
172
172
  * @license lucide-react v0.472.0 - ISC
173
173
  *
174
174
  * This source code is licensed under the ISC license.
175
175
  * See the LICENSE file in the root directory of this source tree.
176
- */const A2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],O2=Ke("LoaderCircle",A2);/**
176
+ */const D2=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],M2=Ke("LoaderCircle",D2);/**
177
177
  * @license lucide-react v0.472.0 - ISC
178
178
  *
179
179
  * This source code is licensed under the ISC license.
180
180
  * See the LICENSE file in the root directory of this source tree.
181
- */const L2=[["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"}]],N2=Ke("Menu",L2);/**
181
+ */const P2=[["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"}]],z2=Ke("Menu",P2);/**
182
182
  * @license lucide-react v0.472.0 - ISC
183
183
  *
184
184
  * This source code is licensed under the ISC license.
185
185
  * See the LICENSE file in the root directory of this source tree.
186
- */const j2=[["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"}]],D2=Ke("Monitor",j2);/**
186
+ */const I2=[["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"}]],B2=Ke("Monitor",I2);/**
187
187
  * @license lucide-react v0.472.0 - ISC
188
188
  *
189
189
  * This source code is licensed under the ISC license.
190
190
  * See the LICENSE file in the root directory of this source tree.
191
- */const M2=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],P2=Ke("Moon",M2);/**
191
+ */const U2=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],q2=Ke("Moon",U2);/**
192
192
  * @license lucide-react v0.472.0 - ISC
193
193
  *
194
194
  * This source code is licensed under the ISC license.
195
195
  * See the LICENSE file in the root directory of this source tree.
196
- */const z2=[["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"}]],I2=Ke("Pen",z2);/**
196
+ */const V2=[["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"}]],H2=Ke("Pen",V2);/**
197
197
  * @license lucide-react v0.472.0 - ISC
198
198
  *
199
199
  * This source code is licensed under the ISC license.
200
200
  * See the LICENSE file in the root directory of this source tree.
201
- */const B2=[["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"}]],U2=Ke("Save",B2);/**
201
+ */const G2=[["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"}]],F2=Ke("Save",G2);/**
202
202
  * @license lucide-react v0.472.0 - ISC
203
203
  *
204
204
  * This source code is licensed under the ISC license.
205
205
  * See the LICENSE file in the root directory of this source tree.
206
- */const q2=[["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"}]],D1=Ke("Settings",q2);/**
206
+ */const Q2=[["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"}]],$2=Ke("Settings",Q2);/**
207
207
  * @license lucide-react v0.472.0 - ISC
208
208
  *
209
209
  * This source code is licensed under the ISC license.
210
210
  * See the LICENSE file in the root directory of this source tree.
211
- */const V2=[["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"}]],H2=Ke("Sun",V2);/**
211
+ */const Y2=[["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"}]],K2=Ke("Sun",Y2);/**
212
212
  * @license lucide-react v0.472.0 - ISC
213
213
  *
214
214
  * This source code is licensed under the ISC license.
215
215
  * See the LICENSE file in the root directory of this source tree.
216
- */const G2=[["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"}]],F2=Ke("TriangleAlert",G2);/**
216
+ */const X2=[["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"}]],Z2=Ke("TriangleAlert",X2);/**
217
217
  * @license lucide-react v0.472.0 - ISC
218
218
  *
219
219
  * This source code is licensed under the ISC license.
220
220
  * See the LICENSE file in the root directory of this source tree.
221
- */const Q2=[["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"}]],M1=Ke("WifiOff",Q2);/**
221
+ */const J2=[["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"}]],M1=Ke("WifiOff",J2);/**
222
222
  * @license lucide-react v0.472.0 - ISC
223
223
  *
224
224
  * This source code is licensed under the ISC license.
225
225
  * See the LICENSE file in the root directory of this source tree.
226
- */const $2=[["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"}]],P1=Ke("Wifi",$2);/**
226
+ */const W2=[["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"}]],P1=Ke("Wifi",W2);/**
227
227
  * @license lucide-react v0.472.0 - ISC
228
228
  *
229
229
  * This source code is licensed under the ISC license.
230
230
  * See the LICENSE file in the root directory of this source tree.
231
- */const Y2=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],z1=Ke("X",Y2);function K2(){tl();const{data:e,isLoading:t,error:n}=xn(Sn.dashboard.getData.queryOptions()),{data:i}=xn(Sn.dashboard.isInitialized.queryOptions()),s=ie.useMemo(()=>e!=null&&e.specs?[...e.specs].sort((u,f)=>f.requirements.length-u.requirements.length):[],[e==null?void 0:e.specs]);if(t)return S.jsx("div",{className:"animate-pulse",children:"Loading dashboard..."});if(n)return S.jsxs("div",{className:"text-destructive flex items-center gap-2",children:[S.jsx(Hc,{className:"w-5 h-5"}),"Error loading dashboard: ",n.message]});if(!i)return S.jsxs("div",{className:"text-center py-12",children:[S.jsx("h2",{className:"text-2xl font-bold mb-4",children:"OpenSpec Not Initialized"}),S.jsx("p",{className:"text-muted-foreground mb-6",children:"This project doesn't have an OpenSpec directory yet."}),S.jsx(ut,{to:"/settings",className:"inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90",children:"Initialize OpenSpec"})]});const{summary:o}=e;return S.jsxs("div",{className:"space-y-6",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Dashboard"}),S.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[S.jsx(pc,{icon:S.jsx(Ks,{className:"w-5 h-5"}),label:"Specifications",value:o.specCount,sublabel:`${o.requirementCount} requirements`}),S.jsx(pc,{icon:S.jsx(jp,{className:"w-5 h-5"}),label:"Active Changes",value:o.activeChangeCount,sublabel:"in progress"}),S.jsx(pc,{icon:S.jsx(Ea,{className:"w-5 h-5"}),label:"Completed",value:o.archivedChangeCount,sublabel:"archived"}),S.jsx(pc,{icon:S.jsx(yf,{className:"w-5 h-5"}),label:"Task Progress",value:`${o.completedTasks}/${o.totalTasks}`,sublabel:`${o.progressPercent}% complete`})]}),S.jsxs("section",{children:[S.jsxs("div",{className:"flex items-center justify-between mb-3",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"Active Changes"}),e.changes.length>0&&S.jsx(ut,{to:"/changes",className:"text-sm text-primary hover:underline",children:"View all"})]}),S.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[e.changes.map(u=>{const f=u.progress.total>0?Math.round(u.progress.completed/u.progress.total*100):0;return S.jsxs(ut,{to:"/changes/$changeId",params:{changeId:u.id},className:"block p-4 hover:bg-muted/50",children:[S.jsxs("div",{className:"flex items-center justify-between mb-2",children:[S.jsx("div",{className:"font-medium",children:u.name}),S.jsxs("span",{className:"text-sm text-muted-foreground",children:[u.progress.completed,"/",u.progress.total," tasks"]})]}),S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx("div",{className:"flex-1 bg-muted rounded-full h-2",children:S.jsx("div",{className:"bg-primary h-2 rounded-full transition-all",style:{width:`${f}%`}})}),S.jsxs("span",{className:"text-sm font-medium w-12 text-right",children:[f,"%"]})]})]},u.id)}),e.changes.length===0&&S.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No active changes. Create one in ",S.jsx("code",{className:"bg-muted px-1 rounded",children:"openspec/changes/"})]})]})]}),S.jsxs("section",{children:[S.jsxs("div",{className:"flex items-center justify-between mb-3",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"Specifications"}),s.length>0&&S.jsx(ut,{to:"/specs",className:"text-sm text-primary hover:underline",children:"View all"})]}),S.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[s.map(u=>S.jsxs(ut,{to:"/specs/$specId",params:{specId:u.id},className:"flex items-center justify-between p-3 hover:bg-muted/50",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(Ks,{className:"w-4 h-4 text-muted-foreground"}),S.jsx("span",{className:"font-medium",children:u.name})]}),S.jsxs("span",{className:"text-sm text-muted-foreground",children:[u.requirements.length," requirement",u.requirements.length!==1?"s":""]})]},u.id)),s.length===0&&S.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No specs yet. Create one in ",S.jsx("code",{className:"bg-muted px-1 rounded",children:"openspec/specs/"})]})]})]})]})}function pc({icon:e,label:t,value:n,sublabel:i}){return S.jsxs("div",{className:"border border-border rounded-lg p-4",children:[S.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground mb-2",children:[e,S.jsx("span",{className:"text-sm",children:t})]}),S.jsx("div",{className:"text-2xl font-bold",children:n}),S.jsx("div",{className:"text-sm text-muted-foreground",children:i})]})}function X2(){tl();const{data:e,isLoading:t}=xn(Sn.spec.listWithMeta.queryOptions());return t?S.jsx("div",{className:"animate-pulse",children:"Loading specs..."}):S.jsxs("div",{className:"space-y-6",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Specifications"}),S.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[e==null?void 0:e.map(n=>S.jsxs(ut,{to:"/specs/$specId",params:{specId:n.id},className:"flex items-center justify-between p-4 hover:bg-muted/50",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(Ks,{className:"w-5 h-5 text-muted-foreground"}),S.jsxs("div",{children:[S.jsx("div",{className:"font-medium",children:n.name}),S.jsx("div",{className:"text-sm text-muted-foreground",children:n.id})]})]}),S.jsx(Np,{className:"w-4 h-4 text-muted-foreground"})]},n.id)),(e==null?void 0:e.length)===0&&S.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No specs found. Create a spec in ",S.jsx("code",{children:"openspec/specs/"})]})]})]})}function I1(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Z2=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,J2=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,W2={};function rb(e,t){return(W2.jsx?J2:Z2).test(e)}const eO=/[ \t\n\f\r]/g;function vf(e){return typeof e=="object"?e.type==="text"?ib(e.value):!1:ib(e)}function ib(e){return e.replace(eO,"")===""}class Bo{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Bo.prototype.normal={};Bo.prototype.property={};Bo.prototype.space=void 0;function B1(e,t){const n={},i={};for(const s of e)Object.assign(n,s.property),Object.assign(i,s.normal);return new Bo(n,i,t)}function Jm(e){return e.toLowerCase()}class ln{constructor(t,n){this.attribute=n,this.property=t}}ln.prototype.attribute="";ln.prototype.booleanish=!1;ln.prototype.boolean=!1;ln.prototype.commaOrSpaceSeparated=!1;ln.prototype.commaSeparated=!1;ln.prototype.defined=!1;ln.prototype.mustUseProperty=!1;ln.prototype.number=!1;ln.prototype.overloadedBoolean=!1;ln.prototype.property="";ln.prototype.spaceSeparated=!1;ln.prototype.space=void 0;let tO=0;const Ce=La(),yt=La(),Wm=La(),se=La(),nt=La(),Ns=La(),vn=La();function La(){return 2**++tO}const ep=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ce,booleanish:yt,commaOrSpaceSeparated:vn,commaSeparated:Ns,number:se,overloadedBoolean:Wm,spaceSeparated:nt},Symbol.toStringTag,{value:"Module"})),um=Object.keys(ep);class Dp extends ln{constructor(t,n,i,s){let o=-1;if(super(t,n),ab(this,"space",s),typeof i=="number")for(;++o<um.length;){const u=um[o];ab(this,um[o],(i&ep[u])===ep[u])}}}Dp.prototype.defined=!0;function ab(e,t,n){n&&(e[t]=n)}function nl(e){const t={},n={};for(const[i,s]of Object.entries(e.properties)){const o=new Dp(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[Jm(i)]=i,n[Jm(o.attribute)]=i}return new Bo(t,n,e.space)}const U1=nl({properties:{ariaActiveDescendant:null,ariaAtomic:yt,ariaAutoComplete:null,ariaBusy:yt,ariaChecked:yt,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:nt,ariaCurrent:null,ariaDescribedBy:nt,ariaDetails:null,ariaDisabled:yt,ariaDropEffect:nt,ariaErrorMessage:null,ariaExpanded:yt,ariaFlowTo:nt,ariaGrabbed:yt,ariaHasPopup:null,ariaHidden:yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nt,ariaLevel:se,ariaLive:null,ariaModal:yt,ariaMultiLine:yt,ariaMultiSelectable:yt,ariaOrientation:null,ariaOwns:nt,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:yt,ariaReadOnly:yt,ariaRelevant:null,ariaRequired:yt,ariaRoleDescription:nt,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:yt,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function q1(e,t){return t in e?e[t]:t}function V1(e,t){return q1(e,t.toLowerCase())}const nO=nl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ns,acceptCharset:nt,accessKey:nt,action:null,allow:null,allowFullScreen:Ce,allowPaymentRequest:Ce,allowUserMedia:Ce,alt:null,as:null,async:Ce,autoCapitalize:null,autoComplete:nt,autoFocus:Ce,autoPlay:Ce,blocking:nt,capture:null,charSet:null,checked:Ce,cite:null,className:nt,cols:se,colSpan:null,content:null,contentEditable:yt,controls:Ce,controlsList:nt,coords:se|Ns,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ce,defer:Ce,dir:null,dirName:null,disabled:Ce,download:Wm,draggable:yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ce,formTarget:null,headers:nt,height:se,hidden:Wm,high:se,href:null,hrefLang:null,htmlFor:nt,httpEquiv:nt,id:null,imageSizes:null,imageSrcSet:null,inert:Ce,inputMode:null,integrity:null,is:null,isMap:Ce,itemId:null,itemProp:nt,itemRef:nt,itemScope:Ce,itemType:nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ce,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:Ce,muted:Ce,name:null,nonce:null,noModule:Ce,noValidate:Ce,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:Ce,optimum:se,pattern:null,ping:nt,placeholder:null,playsInline:Ce,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ce,referrerPolicy:null,rel:nt,required:Ce,reversed:Ce,rows:se,rowSpan:se,sandbox:nt,scope:null,scoped:Ce,seamless:Ce,selected:Ce,shadowRootClonable:Ce,shadowRootDelegatesFocus:Ce,shadowRootMode:null,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:Ce,useMap:null,value:yt,width:se,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nt,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ce,declare:Ce,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:Ce,noHref:Ce,noShade:Ce,noWrap:Ce,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:yt,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ce,disableRemotePlayback:Ce,prefix:null,property:null,results:se,security:null,unselectable:null},space:"html",transform:V1}),rO=nl({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:vn,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:nt,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:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:Ce,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,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:Ns,g2:Ns,glyphName:Ns,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:vn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,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:se,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:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:vn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:vn,rev:vn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:vn,requiredFeatures:vn,requiredFonts:vn,requiredFormats:vn,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:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:vn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:vn,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:vn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:q1}),H1=nl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),G1=nl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:V1}),F1=nl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),iO={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"},aO=/[A-Z]/g,sb=/-[a-z]/g,sO=/^data[-\w.:]+$/i;function Q1(e,t){const n=Jm(t);let i=t,s=ln;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&sO.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(sb,oO);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!sb.test(o)){let u=o.replace(aO,lO);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}s=Dp}return new s(i,t)}function lO(e){return"-"+e.toLowerCase()}function oO(e){return e.charAt(1).toUpperCase()}const $1=B1([U1,nO,H1,G1,F1],"html"),Uo=B1([U1,rO,H1,G1,F1],"svg");function Y1(e){return e.join(" ").trim()}var ks={},cm,lb;function uO(){if(lb)return cm;lb=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
232
- `,d="/",y="*",p="",v="comment",_="declaration";function x(k,w){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];w=w||{};var C=1,L=1;function z(le){var ae=le.match(t);ae&&(C+=ae.length);var V=le.lastIndexOf(h);L=~V?le.length-V:L+le.length}function B(){var le={line:C,column:L};return function(ae){return ae.position=new A(le),ne(),ae}}function A(le){this.start=le,this.end={line:C,column:L},this.source=w.source}A.prototype.content=k;function q(le){var ae=new Error(w.source+":"+C+":"+L+": "+le);if(ae.reason=le,ae.filename=w.source,ae.line=C,ae.column=L,ae.source=k,!w.silent)throw ae}function $(le){var ae=le.exec(k);if(ae){var V=ae[0];return z(V),k=k.slice(V.length),ae}}function ne(){$(n)}function N(le){var ae;for(le=le||[];ae=Q();)ae!==!1&&le.push(ae);return le}function Q(){var le=B();if(!(d!=k.charAt(0)||y!=k.charAt(1))){for(var ae=2;p!=k.charAt(ae)&&(y!=k.charAt(ae)||d!=k.charAt(ae+1));)++ae;if(ae+=2,p===k.charAt(ae-1))return q("End of comment missing");var V=k.slice(2,ae-2);return L+=2,z(V),k=k.slice(ae),L+=2,le({type:v,comment:V})}}function re(){var le=B(),ae=$(i);if(ae){if(Q(),!$(s))return q("property missing ':'");var V=$(o),te=le({type:_,property:E(ae[0].replace(e,p)),value:V?E(V[0].replace(e,p)):p});return $(u),te}}function me(){var le=[];N(le);for(var ae;ae=re();)ae!==!1&&(le.push(ae),N(le));return le}return ne(),me()}function E(k){return k?k.replace(f,p):p}return cm=x,cm}var ob;function cO(){if(ob)return ks;ob=1;var e=ks&&ks.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=n;const t=e(uO());function n(i,s){let o=null;if(!i||typeof i!="string")return o;const u=(0,t.default)(i),f=typeof s=="function";return u.forEach(h=>{if(h.type!=="declaration")return;const{property:d,value:y}=h;f?s(d,y,h):y&&(o=o||{},o[d]=y)}),o}return ks}var to={},ub;function fO(){if(ub)return to;ub=1,Object.defineProperty(to,"__esModule",{value:!0}),to.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(d){return!d||n.test(d)||e.test(d)},u=function(d,y){return y.toUpperCase()},f=function(d,y){return"".concat(y,"-")},h=function(d,y){return y===void 0&&(y={}),o(d)?d:(d=d.toLowerCase(),y.reactCompat?d=d.replace(s,f):d=d.replace(i,f),d.replace(t,u))};return to.camelCase=h,to}var no,cb;function hO(){if(cb)return no;cb=1;var e=no&&no.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(cO()),n=fO();function i(s,o){var u={};return!s||typeof s!="string"||(0,t.default)(s,function(f,h){f&&h&&(u[(0,n.camelCase)(f,o)]=h)}),u}return i.default=i,no=i,no}var dO=hO();const mO=vp(dO),K1=X1("end"),Mp=X1("start");function X1(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};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 pO(e){const t=Mp(e),n=K1(e);if(t&&n)return{start:t,end:n}}function po(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?fb(e.position):"start"in e||"end"in e?fb(e):"line"in e||"column"in e?tp(e):""}function tp(e){return hb(e&&e.line)+":"+hb(e&&e.column)}function fb(e){return tp(e&&e.start)+"-"+tp(e&&e.end)}function hb(e){return e&&typeof e=="number"?e:1}class Bt extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let s="",o={},u=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?s=t:!o.cause&&t&&(u=!0,s=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?o.ruleId=i:(o.source=i.slice(0,h),o.ruleId=i.slice(h+1))}if(!o.place&&o.ancestors&&o.ancestors){const h=o.ancestors[o.ancestors.length-1];h&&(o.place=h.position)}const f=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=po(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=u&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Bt.prototype.file="";Bt.prototype.name="";Bt.prototype.reason="";Bt.prototype.message="";Bt.prototype.stack="";Bt.prototype.column=void 0;Bt.prototype.line=void 0;Bt.prototype.ancestors=void 0;Bt.prototype.cause=void 0;Bt.prototype.fatal=void 0;Bt.prototype.place=void 0;Bt.prototype.ruleId=void 0;Bt.prototype.source=void 0;const Pp={}.hasOwnProperty,gO=new Map,yO=/[A-Z]/g,vO=new Set(["table","tbody","thead","tfoot","tr"]),_O=new Set(["td","th"]),Z1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function bO(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=RO(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=CO(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Uo:$1,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=J1(s,e,void 0);return o&&typeof o!="string"?o:s.create(e,s.Fragment,{children:o||void 0},void 0)}function J1(e,t,n){if(t.type==="element")return xO(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return SO(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return wO(e,t,n);if(t.type==="mdxjsEsm")return EO(e,t);if(t.type==="root")return TO(e,t,n);if(t.type==="text")return kO(e,t)}function xO(e,t,n){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=Uo,e.schema=s),e.ancestors.push(t);const o=eS(e,t.tagName,!1),u=AO(e,t);let f=Ip(e,t);return vO.has(t.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!vf(h):!0})),W1(e,u,o,t),zp(u,f),e.ancestors.pop(),e.schema=i,e.create(t,o,u,n)}function SO(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Eo(e,t.position)}function EO(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Eo(e,t.position)}function wO(e,t,n){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=Uo,e.schema=s),e.ancestors.push(t);const o=t.name===null?e.Fragment:eS(e,t.name,!0),u=OO(e,t),f=Ip(e,t);return W1(e,u,o,t),zp(u,f),e.ancestors.pop(),e.schema=i,e.create(t,o,u,n)}function TO(e,t,n){const i={};return zp(i,Ip(e,t)),e.create(t,e.Fragment,i,n)}function kO(e,t){return t.value}function W1(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function zp(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function CO(e,t,n){return i;function i(s,o,u,f){const d=Array.isArray(u.children)?n:t;return f?d(o,u,f):d(o,u)}}function RO(e,t){return n;function n(i,s,o,u){const f=Array.isArray(o.children),h=Mp(i);return t(s,o,u,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function AO(e,t){const n={};let i,s;for(s in t.properties)if(s!=="children"&&Pp.call(t.properties,s)){const o=LO(e,s,t.properties[s]);if(o){const[u,f]=o;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&_O.has(t.tagName)?i=f:n[u]=f}}if(i){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function OO(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const o=i.data.estree.body[0];o.type;const u=o.expression;u.type;const f=u.properties[0];f.type,Object.assign(n,e.evaluater.evaluateExpression(f.argument))}else Eo(e,t.position);else{const s=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const f=i.value.data.estree.body[0];f.type,o=e.evaluater.evaluateExpression(f.expression)}else Eo(e,t.position);else o=i.value===null?!0:i.value;n[s]=o}return n}function Ip(e,t){const n=[];let i=-1;const s=e.passKeys?new Map:gO;for(;++i<t.children.length;){const o=t.children[i];let u;if(e.passKeys){const h=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(h){const d=s.get(h)||0;u=h+"-"+d,s.set(h,d+1)}}const f=J1(e,o,u);f!==void 0&&n.push(f)}return n}function LO(e,t,n){const i=Q1(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?I1(n):Y1(n)),i.property==="style"){let s=typeof n=="object"?n:NO(e,String(n));return e.stylePropertyNameCase==="css"&&(s=jO(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?iO[i.property]||i.property:i.attribute,n]}}function NO(e,t){try{return mO(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,s=new Bt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=Z1+"#cannot-parse-style-attribute",s}}function eS(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let o=-1,u;for(;++o<s.length;){const f=rb(s[o])?{type:"Identifier",name:s[o]}:{type:"Literal",value:s[o]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(o&&f.type==="Literal"),optional:!1}:f}i=u}else i=rb(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return Pp.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);Eo(e)}function Eo(e,t){const n=new Bt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Z1+"#cannot-handle-mdx-estrees-without-createevaluater",n}function jO(e){const t={};let n;for(n in e)Pp.call(e,n)&&(t[DO(n)]=e[n]);return t}function DO(e){let t=e.replace(yO,MO);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function MO(e){return"-"+e.toLowerCase()}const fm={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"]},PO={};function Bp(e,t){const n=PO,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return tS(e,i,s)}function tS(e,t,n){if(zO(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return db(e.children,t,n)}return Array.isArray(e)?db(e,t,n):""}function db(e,t,n){const i=[];let s=-1;for(;++s<e.length;)i[s]=tS(e[s],t,n);return i.join("")}function zO(e){return!!(e&&typeof e=="object")}const mb=document.createElement("i");function Up(e){const t="&"+e+";";mb.innerHTML=t;const n=mb.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function bn(e,t,n,i){const s=e.length;let o=0,u;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,n=n>0?n:0,i.length<1e4)u=Array.from(i),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);o<i.length;)u=i.slice(o,o+1e4),u.unshift(t,0),e.splice(...u),o+=1e4,t+=1e4}function zn(e,t){return e.length>0?(bn(e,e.length,0,t),e):t}const pb={}.hasOwnProperty;function nS(e){const t={};let n=-1;for(;++n<e.length;)IO(t,e[n]);return t}function IO(e,t){let n;for(n in t){const s=(pb.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let u;if(o)for(u in o){pb.call(s,u)||(s[u]=[]);const f=o[u];BO(s[u],Array.isArray(f)?f:f?[f]:[])}}}function BO(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);bn(e,0,0,i)}function rS(e,t){const n=Number.parseInt(e,t);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 Zn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qt=Ui(/[A-Za-z]/),It=Ui(/[\dA-Za-z]/),UO=Ui(/[#-'*+\--9=?A-Z^-~]/);function Gc(e){return e!==null&&(e<32||e===127)}const np=Ui(/\d/),qO=Ui(/[\dA-Fa-f]/),VO=Ui(/[!-/:-@[-`{-~]/);function _e(e){return e!==null&&e<-2}function tt(e){return e!==null&&(e<0||e===32)}function Ne(e){return e===-2||e===-1||e===32}const _f=Ui(new RegExp("\\p{P}|\\p{S}","u")),Ra=Ui(/\s/);function Ui(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function rl(e){const t=[];let n=-1,i=0,s=0;for(;++n<e.length;){const o=e.charCodeAt(n);let u="";if(o===37&&It(e.charCodeAt(n+1))&&It(e.charCodeAt(n+2)))s=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(u=String.fromCharCode(o));else if(o>55295&&o<57344){const f=e.charCodeAt(n+1);o<56320&&f>56319&&f<57344?(u=String.fromCharCode(o,f),s=1):u="�"}else u=String.fromCharCode(o);u&&(t.push(e.slice(i,n),encodeURIComponent(u)),i=n+s+1,u=""),s&&(n+=s,s=0)}return t.join("")+e.slice(i)}function Ie(e,t,n,i){const s=i?i-1:Number.POSITIVE_INFINITY;let o=0;return u;function u(h){return Ne(h)?(e.enter(n),f(h)):t(h)}function f(h){return Ne(h)&&o++<s?(e.consume(h),f):(e.exit(n),t(h))}}const HO={tokenize:GO};function GO(e){const t=e.attempt(this.parser.constructs.contentInitial,i,s);let n;return t;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ie(e,t,"linePrefix")}function s(f){return e.enter("paragraph"),o(f)}function o(f){const h=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=h),n=h,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return _e(f)?(e.consume(f),e.exit("chunkText"),o):(e.consume(f),u)}}const FO={tokenize:QO},gb={tokenize:$O};function QO(e){const t=this,n=[];let i=0,s,o,u;return f;function f(L){if(i<n.length){const z=n[i];return t.containerState=z[1],e.attempt(z[0].continuation,h,d)(L)}return d(L)}function h(L){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&C();const z=t.events.length;let B=z,A;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){A=t.events[B][1].end;break}w(i);let q=z;for(;q<t.events.length;)t.events[q][1].end={...A},q++;return bn(t.events,B+1,0,t.events.slice(z)),t.events.length=q,d(L)}return f(L)}function d(L){if(i===n.length){if(!s)return v(L);if(s.currentConstruct&&s.currentConstruct.concrete)return x(L);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(gb,y,p)(L)}function y(L){return s&&C(),w(i),v(L)}function p(L){return t.parser.lazy[t.now().line]=i!==n.length,u=t.now().offset,x(L)}function v(L){return t.containerState={},e.attempt(gb,_,x)(L)}function _(L){return i++,n.push([t.currentConstruct,t.containerState]),v(L)}function x(L){if(L===null){s&&C(),w(0),e.consume(L);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:o}),E(L)}function E(L){if(L===null){k(e.exit("chunkFlow"),!0),w(0),e.consume(L);return}return _e(L)?(e.consume(L),k(e.exit("chunkFlow")),i=0,t.interrupt=void 0,f):(e.consume(L),E)}function k(L,z){const B=t.sliceStream(L);if(z&&B.push(null),L.previous=o,o&&(o.next=L),o=L,s.defineSkip(L.start),s.write(B),t.parser.lazy[L.start.line]){let A=s.events.length;for(;A--;)if(s.events[A][1].start.offset<u&&(!s.events[A][1].end||s.events[A][1].end.offset>u))return;const q=t.events.length;let $=q,ne,N;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(ne){N=t.events[$][1].end;break}ne=!0}for(w(i),A=q;A<t.events.length;)t.events[A][1].end={...N},A++;bn(t.events,$+1,0,t.events.slice(q)),t.events.length=A}}function w(L){let z=n.length;for(;z-- >L;){const B=n[z];t.containerState=B[1],B[0].exit.call(t,e)}n.length=L}function C(){s.write([null]),o=void 0,s=void 0,t.containerState._closeFlow=void 0}}function $O(e,t,n){return Ie(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xs(e){if(e===null||tt(e)||Ra(e))return 1;if(_f(e))return 2}function bf(e,t,n){const i=[];let s=-1;for(;++s<e.length;){const o=e[s].resolveAll;o&&!i.includes(o)&&(t=o(t,n),i.push(o))}return t}const rp={name:"attention",resolveAll:YO,tokenize:KO};function YO(e,t){let n=-1,i,s,o,u,f,h,d,y;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;h=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[i][1].end},v={...e[n][1].start};yb(p,-h),yb(v,h),u={type:h>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:v},o={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},s={type:h>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[i][1].end={...u.start},e[n][1].start={...f.end},d=[],e[i][1].end.offset-e[i][1].start.offset&&(d=zn(d,[["enter",e[i][1],t],["exit",e[i][1],t]])),d=zn(d,[["enter",s,t],["enter",u,t],["exit",u,t],["enter",o,t]]),d=zn(d,bf(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),d=zn(d,[["exit",o,t],["enter",f,t],["exit",f,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(y=2,d=zn(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):y=0,bn(e,i-1,n-i+3,d),n=i+d.length-y-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function KO(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,s=Xs(i);let o;return u;function u(h){return o=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===o)return e.consume(h),f;const d=e.exit("attentionSequence"),y=Xs(h),p=!y||y===2&&s||n.includes(h),v=!s||s===2&&y||n.includes(i);return d._open=!!(o===42?p:p&&(s||!v)),d._close=!!(o===42?v:v&&(y||!p)),t(h)}}function yb(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const XO={name:"autolink",tokenize:ZO};function ZO(e,t,n){let i=0;return s;function s(_){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(_){return Qt(_)?(e.consume(_),u):_===64?n(_):d(_)}function u(_){return _===43||_===45||_===46||It(_)?(i=1,f(_)):d(_)}function f(_){return _===58?(e.consume(_),i=0,h):(_===43||_===45||_===46||It(_))&&i++<32?(e.consume(_),f):(i=0,d(_))}function h(_){return _===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.exit("autolink"),t):_===null||_===32||_===60||Gc(_)?n(_):(e.consume(_),h)}function d(_){return _===64?(e.consume(_),y):UO(_)?(e.consume(_),d):n(_)}function y(_){return It(_)?p(_):n(_)}function p(_){return _===46?(e.consume(_),i=0,y):_===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.exit("autolink"),t):v(_)}function v(_){if((_===45||It(_))&&i++<63){const x=_===45?v:p;return e.consume(_),x}return n(_)}}const qo={partial:!0,tokenize:JO};function JO(e,t,n){return i;function i(o){return Ne(o)?Ie(e,s,"linePrefix")(o):s(o)}function s(o){return o===null||_e(o)?t(o):n(o)}}const iS={continuation:{tokenize:eL},exit:tL,name:"blockQuote",tokenize:WO};function WO(e,t,n){const i=this;return s;function s(u){if(u===62){const f=i.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),o}return n(u)}function o(u){return Ne(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function eL(e,t,n){const i=this;return s;function s(u){return Ne(u)?Ie(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):o(u)}function o(u){return e.attempt(iS,t,n)(u)}}function tL(e){e.exit("blockQuote")}const aS={name:"characterEscape",tokenize:nL};function nL(e,t,n){return i;function i(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),s}function s(o){return VO(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const sS={name:"characterReference",tokenize:rL};function rL(e,t,n){const i=this;let s=0,o,u;return f;function f(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),h}function h(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),o=31,u=It,y(p))}function d(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,u=qO,y):(e.enter("characterReferenceValue"),o=7,u=np,y(p))}function y(p){if(p===59&&s){const v=e.exit("characterReferenceValue");return u===It&&!Up(i.sliceSerialize(v))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(p)&&s++<o?(e.consume(p),y):n(p)}}const vb={partial:!0,tokenize:aL},_b={concrete:!0,name:"codeFenced",tokenize:iL};function iL(e,t,n){const i=this,s={partial:!0,tokenize:B};let o=0,u=0,f;return h;function h(A){return d(A)}function d(A){const q=i.events[i.events.length-1];return o=q&&q[1].type==="linePrefix"?q[2].sliceSerialize(q[1],!0).length:0,f=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(A)}function y(A){return A===f?(u++,e.consume(A),y):u<3?n(A):(e.exit("codeFencedFenceSequence"),Ne(A)?Ie(e,p,"whitespace")(A):p(A))}function p(A){return A===null||_e(A)?(e.exit("codeFencedFence"),i.interrupt?t(A):e.check(vb,E,z)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(A))}function v(A){return A===null||_e(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(A)):Ne(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ie(e,_,"whitespace")(A)):A===96&&A===f?n(A):(e.consume(A),v)}function _(A){return A===null||_e(A)?p(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),x(A))}function x(A){return A===null||_e(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(A)):A===96&&A===f?n(A):(e.consume(A),x)}function E(A){return e.attempt(s,z,k)(A)}function k(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),w}function w(A){return o>0&&Ne(A)?Ie(e,C,"linePrefix",o+1)(A):C(A)}function C(A){return A===null||_e(A)?e.check(vb,E,z)(A):(e.enter("codeFlowValue"),L(A))}function L(A){return A===null||_e(A)?(e.exit("codeFlowValue"),C(A)):(e.consume(A),L)}function z(A){return e.exit("codeFenced"),t(A)}function B(A,q,$){let ne=0;return N;function N(ae){return A.enter("lineEnding"),A.consume(ae),A.exit("lineEnding"),Q}function Q(ae){return A.enter("codeFencedFence"),Ne(ae)?Ie(A,re,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ae):re(ae)}function re(ae){return ae===f?(A.enter("codeFencedFenceSequence"),me(ae)):$(ae)}function me(ae){return ae===f?(ne++,A.consume(ae),me):ne>=u?(A.exit("codeFencedFenceSequence"),Ne(ae)?Ie(A,le,"whitespace")(ae):le(ae)):$(ae)}function le(ae){return ae===null||_e(ae)?(A.exit("codeFencedFence"),q(ae)):$(ae)}}}function aL(e,t,n){const i=this;return s;function s(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o)}function o(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}const hm={name:"codeIndented",tokenize:lL},sL={partial:!0,tokenize:oL};function lL(e,t,n){const i=this;return s;function s(d){return e.enter("codeIndented"),Ie(e,o,"linePrefix",5)(d)}function o(d){const y=i.events[i.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?u(d):n(d)}function u(d){return d===null?h(d):_e(d)?e.attempt(sL,u,h)(d):(e.enter("codeFlowValue"),f(d))}function f(d){return d===null||_e(d)?(e.exit("codeFlowValue"),u(d)):(e.consume(d),f)}function h(d){return e.exit("codeIndented"),t(d)}}function oL(e,t,n){const i=this;return s;function s(u){return i.parser.lazy[i.now().line]?n(u):_e(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):Ie(e,o,"linePrefix",5)(u)}function o(u){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):_e(u)?s(u):n(u)}}const uL={name:"codeText",previous:fL,resolve:cL,tokenize:hL};function cL(e){let t=e.length-4,n=3,i,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)s===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(s=i):(i===t||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return e}function fL(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function hL(e,t,n){let i=0,s,o;return u;function u(p){return e.enter("codeText"),e.enter("codeTextSequence"),f(p)}function f(p){return p===96?(e.consume(p),i++,f):(e.exit("codeTextSequence"),h(p))}function h(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),h):p===96?(o=e.enter("codeTextSequence"),s=0,y(p)):_e(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("codeTextData"),d(p))}function d(p){return p===null||p===32||p===96||_e(p)?(e.exit("codeTextData"),h(p)):(e.consume(p),d)}function y(p){return p===96?(e.consume(p),s++,y):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(o.type="codeTextData",d(p))}}class dL{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const s=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&ro(this.left,i),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ro(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ro(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ro(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ro(this.left,n.reverse())}}}function ro(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function lS(e){const t={};let n=-1,i,s,o,u,f,h,d;const y=new dL(e);for(;++n<y.length;){for(;n in t;)n=t[n];if(i=y.get(n),n&&i[1].type==="chunkFlow"&&y.get(n-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,o=0,o<h.length&&h[o][1].type==="lineEndingBlank"&&(o+=2),o<h.length&&h[o][1].type==="content"))for(;++o<h.length&&h[o][1].type!=="content";)h[o][1].type==="chunkText"&&(h[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,mL(y,n)),n=t[n],d=!0);else if(i[1]._container){for(o=n,s=void 0;o--;)if(u=y.get(o),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),u[1].type="lineEnding",s=o);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;s&&(i[1].end={...y.get(s)[1].start},f=y.slice(s,n),f.unshift(i),y.splice(s,n-s+1,f))}}return bn(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!d}function mL(e,t){const n=e.get(t)[1],i=e.get(t)[2];let s=t-1;const o=[];let u=n._tokenizer;u||(u=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,h=[],d={};let y,p,v=-1,_=n,x=0,E=0;const k=[E];for(;_;){for(;e.get(++s)[1]!==_;);o.push(s),_._tokenizer||(y=i.sliceStream(_),_.next||y.push(null),p&&u.defineSkip(_.start),_._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(y),_._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),p=_,_=_.next}for(_=n;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(E=v+1,k.push(E),_._tokenizer=void 0,_.previous=void 0,_=_.next);for(u.events=[],_?(_._tokenizer=void 0,_.previous=void 0):k.pop(),v=k.length;v--;){const w=f.slice(k[v],k[v+1]),C=o.pop();h.push([C,C+w.length-1]),e.splice(C,2,w)}for(h.reverse(),v=-1;++v<h.length;)d[x+h[v][0]]=x+h[v][1],x+=h[v][1]-h[v][0]-1;return d}const pL={resolve:yL,tokenize:vL},gL={partial:!0,tokenize:_L};function yL(e){return lS(e),e}function vL(e,t){let n;return i;function i(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?o(f):_e(f)?e.check(gL,u,o)(f):(e.consume(f),s)}function o(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function u(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}function _L(e,t,n){const i=this;return s;function s(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Ie(e,o,"linePrefix")}function o(u){if(u===null||_e(u))return n(u);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,n,t)(u)}}function oS(e,t,n,i,s,o,u,f,h){const d=h||Number.POSITIVE_INFINITY;let y=0;return p;function p(w){return w===60?(e.enter(i),e.enter(s),e.enter(o),e.consume(w),e.exit(o),v):w===null||w===32||w===41||Gc(w)?n(w):(e.enter(i),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),E(w))}function v(w){return w===62?(e.enter(o),e.consume(w),e.exit(o),e.exit(s),e.exit(i),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),_(w))}function _(w){return w===62?(e.exit("chunkString"),e.exit(f),v(w)):w===null||w===60||_e(w)?n(w):(e.consume(w),w===92?x:_)}function x(w){return w===60||w===62||w===92?(e.consume(w),_):_(w)}function E(w){return!y&&(w===null||w===41||tt(w))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(i),t(w)):y<d&&w===40?(e.consume(w),y++,E):w===41?(e.consume(w),y--,E):w===null||w===32||w===40||Gc(w)?n(w):(e.consume(w),w===92?k:E)}function k(w){return w===40||w===41||w===92?(e.consume(w),E):E(w)}}function uS(e,t,n,i,s,o){const u=this;let f=0,h;return d;function d(_){return e.enter(i),e.enter(s),e.consume(_),e.exit(s),e.enter(o),y}function y(_){return f>999||_===null||_===91||_===93&&!h||_===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?n(_):_===93?(e.exit(o),e.enter(s),e.consume(_),e.exit(s),e.exit(i),t):_e(_)?(e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===null||_===91||_===93||_e(_)||f++>999?(e.exit("chunkString"),y(_)):(e.consume(_),h||(h=!Ne(_)),_===92?v:p)}function v(_){return _===91||_===92||_===93?(e.consume(_),f++,p):p(_)}}function cS(e,t,n,i,s,o){let u;return f;function f(v){return v===34||v===39||v===40?(e.enter(i),e.enter(s),e.consume(v),e.exit(s),u=v===40?41:v,h):n(v)}function h(v){return v===u?(e.enter(s),e.consume(v),e.exit(s),e.exit(i),t):(e.enter(o),d(v))}function d(v){return v===u?(e.exit(o),h(u)):v===null?n(v):_e(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),Ie(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===u||v===null||_e(v)?(e.exit("chunkString"),d(v)):(e.consume(v),v===92?p:y)}function p(v){return v===u||v===92?(e.consume(v),y):y(v)}}function go(e,t){let n;return i;function i(s){return _e(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,i):Ne(s)?Ie(e,i,n?"linePrefix":"lineSuffix")(s):t(s)}}const bL={name:"definition",tokenize:SL},xL={partial:!0,tokenize:EL};function SL(e,t,n){const i=this;let s;return o;function o(_){return e.enter("definition"),u(_)}function u(_){return uS.call(i,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(_)}function f(_){return s=Zn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),_===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),h):n(_)}function h(_){return tt(_)?go(e,d)(_):d(_)}function d(_){return oS(e,y,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(_)}function y(_){return e.attempt(xL,p,p)(_)}function p(_){return Ne(_)?Ie(e,v,"whitespace")(_):v(_)}function v(_){return _===null||_e(_)?(e.exit("definition"),i.parser.defined.push(s),t(_)):n(_)}}function EL(e,t,n){return i;function i(f){return tt(f)?go(e,s)(f):n(f)}function s(f){return cS(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function o(f){return Ne(f)?Ie(e,u,"whitespace")(f):u(f)}function u(f){return f===null||_e(f)?t(f):n(f)}}const wL={name:"hardBreakEscape",tokenize:TL};function TL(e,t,n){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return _e(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const kL={name:"headingAtx",resolve:CL,tokenize:RL};function CL(e,t){let n=e.length-2,i=3,s,o;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},o={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},bn(e,i,n-i+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function RL(e,t,n){let i=0;return s;function s(y){return e.enter("atxHeading"),o(y)}function o(y){return e.enter("atxHeadingSequence"),u(y)}function u(y){return y===35&&i++<6?(e.consume(y),u):y===null||tt(y)?(e.exit("atxHeadingSequence"),f(y)):n(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),h(y)):y===null||_e(y)?(e.exit("atxHeading"),t(y)):Ne(y)?Ie(e,f,"whitespace")(y):(e.enter("atxHeadingText"),d(y))}function h(y){return y===35?(e.consume(y),h):(e.exit("atxHeadingSequence"),f(y))}function d(y){return y===null||y===35||tt(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),d)}}const AL=["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"],bb=["pre","script","style","textarea"],OL={concrete:!0,name:"htmlFlow",resolveTo:jL,tokenize:DL},LL={partial:!0,tokenize:PL},NL={partial:!0,tokenize:ML};function jL(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function DL(e,t,n){const i=this;let s,o,u,f,h;return d;function d(O){return y(O)}function y(O){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(O),p}function p(O){return O===33?(e.consume(O),v):O===47?(e.consume(O),o=!0,E):O===63?(e.consume(O),s=3,i.interrupt?t:j):Qt(O)?(e.consume(O),u=String.fromCharCode(O),k):n(O)}function v(O){return O===45?(e.consume(O),s=2,_):O===91?(e.consume(O),s=5,f=0,x):Qt(O)?(e.consume(O),s=4,i.interrupt?t:j):n(O)}function _(O){return O===45?(e.consume(O),i.interrupt?t:j):n(O)}function x(O){const ue="CDATA[";return O===ue.charCodeAt(f++)?(e.consume(O),f===ue.length?i.interrupt?t:re:x):n(O)}function E(O){return Qt(O)?(e.consume(O),u=String.fromCharCode(O),k):n(O)}function k(O){if(O===null||O===47||O===62||tt(O)){const ue=O===47,ge=u.toLowerCase();return!ue&&!o&&bb.includes(ge)?(s=1,i.interrupt?t(O):re(O)):AL.includes(u.toLowerCase())?(s=6,ue?(e.consume(O),w):i.interrupt?t(O):re(O)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(O):o?C(O):L(O))}return O===45||It(O)?(e.consume(O),u+=String.fromCharCode(O),k):n(O)}function w(O){return O===62?(e.consume(O),i.interrupt?t:re):n(O)}function C(O){return Ne(O)?(e.consume(O),C):N(O)}function L(O){return O===47?(e.consume(O),N):O===58||O===95||Qt(O)?(e.consume(O),z):Ne(O)?(e.consume(O),L):N(O)}function z(O){return O===45||O===46||O===58||O===95||It(O)?(e.consume(O),z):B(O)}function B(O){return O===61?(e.consume(O),A):Ne(O)?(e.consume(O),B):L(O)}function A(O){return O===null||O===60||O===61||O===62||O===96?n(O):O===34||O===39?(e.consume(O),h=O,q):Ne(O)?(e.consume(O),A):$(O)}function q(O){return O===h?(e.consume(O),h=null,ne):O===null||_e(O)?n(O):(e.consume(O),q)}function $(O){return O===null||O===34||O===39||O===47||O===60||O===61||O===62||O===96||tt(O)?B(O):(e.consume(O),$)}function ne(O){return O===47||O===62||Ne(O)?L(O):n(O)}function N(O){return O===62?(e.consume(O),Q):n(O)}function Q(O){return O===null||_e(O)?re(O):Ne(O)?(e.consume(O),Q):n(O)}function re(O){return O===45&&s===2?(e.consume(O),V):O===60&&s===1?(e.consume(O),te):O===62&&s===4?(e.consume(O),P):O===63&&s===3?(e.consume(O),j):O===93&&s===5?(e.consume(O),Ee):_e(O)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(LL,X,me)(O)):O===null||_e(O)?(e.exit("htmlFlowData"),me(O)):(e.consume(O),re)}function me(O){return e.check(NL,le,X)(O)}function le(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),ae}function ae(O){return O===null||_e(O)?me(O):(e.enter("htmlFlowData"),re(O))}function V(O){return O===45?(e.consume(O),j):re(O)}function te(O){return O===47?(e.consume(O),u="",fe):re(O)}function fe(O){if(O===62){const ue=u.toLowerCase();return bb.includes(ue)?(e.consume(O),P):re(O)}return Qt(O)&&u.length<8?(e.consume(O),u+=String.fromCharCode(O),fe):re(O)}function Ee(O){return O===93?(e.consume(O),j):re(O)}function j(O){return O===62?(e.consume(O),P):O===45&&s===2?(e.consume(O),j):re(O)}function P(O){return O===null||_e(O)?(e.exit("htmlFlowData"),X(O)):(e.consume(O),P)}function X(O){return e.exit("htmlFlow"),t(O)}}function ML(e,t,n){const i=this;return s;function s(u){return _e(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):n(u)}function o(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function PL(e,t,n){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(qo,t,n)}}const zL={name:"htmlText",tokenize:IL};function IL(e,t,n){const i=this;let s,o,u;return f;function f(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),h}function h(j){return j===33?(e.consume(j),d):j===47?(e.consume(j),B):j===63?(e.consume(j),L):Qt(j)?(e.consume(j),$):n(j)}function d(j){return j===45?(e.consume(j),y):j===91?(e.consume(j),o=0,x):Qt(j)?(e.consume(j),C):n(j)}function y(j){return j===45?(e.consume(j),_):n(j)}function p(j){return j===null?n(j):j===45?(e.consume(j),v):_e(j)?(u=p,te(j)):(e.consume(j),p)}function v(j){return j===45?(e.consume(j),_):p(j)}function _(j){return j===62?V(j):j===45?v(j):p(j)}function x(j){const P="CDATA[";return j===P.charCodeAt(o++)?(e.consume(j),o===P.length?E:x):n(j)}function E(j){return j===null?n(j):j===93?(e.consume(j),k):_e(j)?(u=E,te(j)):(e.consume(j),E)}function k(j){return j===93?(e.consume(j),w):E(j)}function w(j){return j===62?V(j):j===93?(e.consume(j),w):E(j)}function C(j){return j===null||j===62?V(j):_e(j)?(u=C,te(j)):(e.consume(j),C)}function L(j){return j===null?n(j):j===63?(e.consume(j),z):_e(j)?(u=L,te(j)):(e.consume(j),L)}function z(j){return j===62?V(j):L(j)}function B(j){return Qt(j)?(e.consume(j),A):n(j)}function A(j){return j===45||It(j)?(e.consume(j),A):q(j)}function q(j){return _e(j)?(u=q,te(j)):Ne(j)?(e.consume(j),q):V(j)}function $(j){return j===45||It(j)?(e.consume(j),$):j===47||j===62||tt(j)?ne(j):n(j)}function ne(j){return j===47?(e.consume(j),V):j===58||j===95||Qt(j)?(e.consume(j),N):_e(j)?(u=ne,te(j)):Ne(j)?(e.consume(j),ne):V(j)}function N(j){return j===45||j===46||j===58||j===95||It(j)?(e.consume(j),N):Q(j)}function Q(j){return j===61?(e.consume(j),re):_e(j)?(u=Q,te(j)):Ne(j)?(e.consume(j),Q):ne(j)}function re(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),s=j,me):_e(j)?(u=re,te(j)):Ne(j)?(e.consume(j),re):(e.consume(j),le)}function me(j){return j===s?(e.consume(j),s=void 0,ae):j===null?n(j):_e(j)?(u=me,te(j)):(e.consume(j),me)}function le(j){return j===null||j===34||j===39||j===60||j===61||j===96?n(j):j===47||j===62||tt(j)?ne(j):(e.consume(j),le)}function ae(j){return j===47||j===62||tt(j)?ne(j):n(j)}function V(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),t):n(j)}function te(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),fe}function fe(j){return Ne(j)?Ie(e,Ee,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):Ee(j)}function Ee(j){return e.enter("htmlTextData"),u(j)}}const qp={name:"labelEnd",resolveAll:VL,resolveTo:HL,tokenize:GL},BL={tokenize:FL},UL={tokenize:QL},qL={tokenize:$L};function VL(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return e.length!==n.length&&bn(e,0,e.length,n),e}function HL(e,t){let n=e.length,i=0,s,o,u,f;for(;n--;)if(s=e[n][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=n,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(u=n);const h={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[o][1].start},end:{...e[u][1].end}},y={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",h,t],["enter",d,t]],f=zn(f,e.slice(o+1,o+i+3)),f=zn(f,[["enter",y,t]]),f=zn(f,bf(t.parser.constructs.insideSpan.null,e.slice(o+i+4,u-3),t)),f=zn(f,[["exit",y,t],e[u-2],e[u-1],["exit",d,t]]),f=zn(f,e.slice(u+1)),f=zn(f,[["exit",h,t]]),bn(e,o,e.length,f),e}function GL(e,t,n){const i=this;let s=i.events.length,o,u;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){o=i.events[s][1];break}return f;function f(v){return o?o._inactive?p(v):(u=i.parser.defined.includes(Zn(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),h):n(v)}function h(v){return v===40?e.attempt(BL,y,u?y:p)(v):v===91?e.attempt(UL,y,u?d:p)(v):u?y(v):p(v)}function d(v){return e.attempt(qL,y,p)(v)}function y(v){return t(v)}function p(v){return o._balanced=!0,n(v)}}function FL(e,t,n){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),s}function s(p){return tt(p)?go(e,o)(p):o(p)}function o(p){return p===41?y(p):oS(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function u(p){return tt(p)?go(e,h)(p):y(p)}function f(p){return n(p)}function h(p){return p===34||p===39||p===40?cS(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):y(p)}function d(p){return tt(p)?go(e,y)(p):y(p)}function y(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function QL(e,t,n){const i=this;return s;function s(f){return uS.call(i,e,o,u,"reference","referenceMarker","referenceString")(f)}function o(f){return i.parser.defined.includes(Zn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function u(f){return n(f)}}function $L(e,t,n){return i;function i(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),s}function s(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const YL={name:"labelStartImage",resolveAll:qp.resolveAll,tokenize:KL};function KL(e,t,n){const i=this;return s;function s(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),o}function o(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):n(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):t(f)}}const XL={name:"labelStartLink",resolveAll:qp.resolveAll,tokenize:ZL};function ZL(e,t,n){const i=this;return s;function s(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),o}function o(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const dm={name:"lineEnding",tokenize:JL};function JL(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Ie(e,t,"linePrefix")}}const Ac={name:"thematicBreak",tokenize:WL};function WL(e,t,n){let i=0,s;return o;function o(d){return e.enter("thematicBreak"),u(d)}function u(d){return s=d,f(d)}function f(d){return d===s?(e.enter("thematicBreakSequence"),h(d)):i>=3&&(d===null||_e(d))?(e.exit("thematicBreak"),t(d)):n(d)}function h(d){return d===s?(e.consume(d),i++,h):(e.exit("thematicBreakSequence"),Ne(d)?Ie(e,f,"whitespace")(d):f(d))}}const rn={continuation:{tokenize:rN},exit:aN,name:"list",tokenize:nN},eN={partial:!0,tokenize:sN},tN={partial:!0,tokenize:iN};function nN(e,t,n){const i=this,s=i.events[i.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return f;function f(_){const x=i.containerState.type||(_===42||_===43||_===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!i.containerState.marker||_===i.containerState.marker:np(_)){if(i.containerState.type||(i.containerState.type=x,e.enter(x,{_container:!0})),x==="listUnordered")return e.enter("listItemPrefix"),_===42||_===45?e.check(Ac,n,d)(_):d(_);if(!i.interrupt||_===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(_)}return n(_)}function h(_){return np(_)&&++u<10?(e.consume(_),h):(!i.interrupt||u<2)&&(i.containerState.marker?_===i.containerState.marker:_===41||_===46)?(e.exit("listItemValue"),d(_)):n(_)}function d(_){return e.enter("listItemMarker"),e.consume(_),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||_,e.check(qo,i.interrupt?n:y,e.attempt(eN,v,p))}function y(_){return i.containerState.initialBlankLine=!0,o++,v(_)}function p(_){return Ne(_)?(e.enter("listItemPrefixWhitespace"),e.consume(_),e.exit("listItemPrefixWhitespace"),v):n(_)}function v(_){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(_)}}function rN(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(qo,s,o);function s(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Ie(e,t,"listItemIndent",i.containerState.size+1)(f)}function o(f){return i.containerState.furtherBlankLines||!Ne(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(tN,t,u)(f))}function u(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,Ie(e,e.attempt(rn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function iN(e,t,n){const i=this;return Ie(e,s,"listItemIndent",i.containerState.size+1);function s(o){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(o):n(o)}}function aN(e){e.exit(this.containerState.type)}function sN(e,t,n){const i=this;return Ie(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const u=i.events[i.events.length-1];return!Ne(o)&&u&&u[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const xb={name:"setextUnderline",resolveTo:lN,tokenize:oN};function lN(e,t){let n=e.length,i,s,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",o?(e.splice(s,0,["enter",u,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end={...e[o][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function oN(e,t,n){const i=this;let s;return o;function o(d){let y=i.events.length,p;for(;y--;)if(i.events[y][1].type!=="lineEnding"&&i.events[y][1].type!=="linePrefix"&&i.events[y][1].type!=="content"){p=i.events[y][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),s=d,u(d)):n(d)}function u(d){return e.enter("setextHeadingLineSequence"),f(d)}function f(d){return d===s?(e.consume(d),f):(e.exit("setextHeadingLineSequence"),Ne(d)?Ie(e,h,"lineSuffix")(d):h(d))}function h(d){return d===null||_e(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const uN={tokenize:cN};function cN(e){const t=this,n=e.attempt(qo,i,e.attempt(this.parser.constructs.flowInitial,s,Ie(e,e.attempt(this.parser.constructs.flow,s,e.attempt(pL,s)),"linePrefix")));return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const fN={resolveAll:hS()},hN=fS("string"),dN=fS("text");function fS(e){return{resolveAll:hS(e==="text"?mN:void 0),tokenize:t};function t(n){const i=this,s=this.parser.constructs[e],o=n.attempt(s,u,f);return u;function u(y){return d(y)?o(y):f(y)}function f(y){if(y===null){n.consume(y);return}return n.enter("data"),n.consume(y),h}function h(y){return d(y)?(n.exit("data"),o(y)):(n.consume(y),h)}function d(y){if(y===null)return!0;const p=s[y];let v=-1;if(p)for(;++v<p.length;){const _=p[v];if(!_.previous||_.previous.call(i,i.previous))return!0}return!1}}}function hS(e){return t;function t(n,i){let s=-1,o;for(;++s<=n.length;)o===void 0?n[s]&&n[s][1].type==="data"&&(o=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==o+2&&(n[o][1].end=n[s-1][1].end,n.splice(o+2,s-o-2),s=o+2),o=void 0);return e?e(n,i):n}}function mN(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],s=t.sliceStream(i);let o=s.length,u=-1,f=0,h;for(;o--;){const d=s[o];if(typeof d=="string"){for(u=d.length;d.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(d===-2)h=!0,f++;else if(d!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(f=0),f){const d={type:n===e.length||h||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?u:i.start._bufferIndex+u,_index:i.start._index+o,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...d.start},i.start.offset===i.end.offset?Object.assign(i,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)}n++}return e}const pN={42:rn,43:rn,45:rn,48:rn,49:rn,50:rn,51:rn,52:rn,53:rn,54:rn,55:rn,56:rn,57:rn,62:iS},gN={91:bL},yN={[-2]:hm,[-1]:hm,32:hm},vN={35:kL,42:Ac,45:[xb,Ac],60:OL,61:xb,95:Ac,96:_b,126:_b},_N={38:sS,92:aS},bN={[-5]:dm,[-4]:dm,[-3]:dm,33:YL,38:sS,42:rp,60:[XO,zL],91:XL,92:[wL,aS],93:qp,95:rp,96:uL},xN={null:[rp,fN]},SN={null:[42,95]},EN={null:[]},wN=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:SN,contentInitial:gN,disable:EN,document:pN,flow:vN,flowInitial:yN,insideSpan:xN,string:_N,text:bN},Symbol.toStringTag,{value:"Module"}));function TN(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const s={},o=[];let u=[],f=[];const h={attempt:q(B),check:q(A),consume:C,enter:L,exit:z,interrupt:q(A,{interrupt:!0})},d={code:null,containerState:{},defineSkip:E,events:[],now:x,parser:e,previous:null,sliceSerialize:v,sliceStream:_,write:p};let y=t.tokenize.call(d,h);return t.resolveAll&&o.push(t),d;function p(Q){return u=zn(u,Q),k(),u[u.length-1]!==null?[]:($(t,0),d.events=bf(o,d.events,d),d.events)}function v(Q,re){return CN(_(Q),re)}function _(Q){return kN(u,Q)}function x(){const{_bufferIndex:Q,_index:re,line:me,column:le,offset:ae}=i;return{_bufferIndex:Q,_index:re,line:me,column:le,offset:ae}}function E(Q){s[Q.line]=Q.column,N()}function k(){let Q;for(;i._index<u.length;){const re=u[i._index];if(typeof re=="string")for(Q=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Q&&i._bufferIndex<re.length;)w(re.charCodeAt(i._bufferIndex));else w(re)}}function w(Q){y=y(Q)}function C(Q){_e(Q)?(i.line++,i.column=1,i.offset+=Q===-3?2:1,N()):Q!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),d.previous=Q}function L(Q,re){const me=re||{};return me.type=Q,me.start=x(),d.events.push(["enter",me,d]),f.push(me),me}function z(Q){const re=f.pop();return re.end=x(),d.events.push(["exit",re,d]),re}function B(Q,re){$(Q,re.from)}function A(Q,re){re.restore()}function q(Q,re){return me;function me(le,ae,V){let te,fe,Ee,j;return Array.isArray(le)?X(le):"tokenize"in le?X([le]):P(le);function P(he){return Se;function Se(Qe){const Me=Qe!==null&&he[Qe],Dt=Qe!==null&&he.null,on=[...Array.isArray(Me)?Me:Me?[Me]:[],...Array.isArray(Dt)?Dt:Dt?[Dt]:[]];return X(on)(Qe)}}function X(he){return te=he,fe=0,he.length===0?V:O(he[fe])}function O(he){return Se;function Se(Qe){return j=ne(),Ee=he,he.partial||(d.currentConstruct=he),he.name&&d.parser.constructs.disable.null.includes(he.name)?ge():he.tokenize.call(re?Object.assign(Object.create(d),re):d,h,ue,ge)(Qe)}}function ue(he){return Q(Ee,j),ae}function ge(he){return j.restore(),++fe<te.length?O(te[fe]):V}}}function $(Q,re){Q.resolveAll&&!o.includes(Q)&&o.push(Q),Q.resolve&&bn(d.events,re,d.events.length-re,Q.resolve(d.events.slice(re),d)),Q.resolveTo&&(d.events=Q.resolveTo(d.events,d))}function ne(){const Q=x(),re=d.previous,me=d.currentConstruct,le=d.events.length,ae=Array.from(f);return{from:le,restore:V};function V(){i=Q,d.previous=re,d.currentConstruct=me,d.events.length=le,f=ae,N()}}function N(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function kN(e,t){const n=t.start._index,i=t.start._bufferIndex,s=t.end._index,o=t.end._bufferIndex;let u;if(n===s)u=[e[n].slice(i,o)];else{if(u=e.slice(n,s),i>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(i):u.shift()}o>0&&u.push(e[s].slice(0,o))}return u}function CN(e,t){let n=-1;const i=[];let s;for(;++n<e.length;){const o=e[n];let u;if(typeof o=="string")u=o;else switch(o){case-5:{u="\r";break}case-4:{u=`
231
+ */const eO=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],z1=Ke("X",eO),Gc=[{to:"/",icon:O2,label:"Dashboard"},{to:"/project",icon:T2,label:"Project"},{to:"/specs",icon:Xs,label:"Specs"},{to:"/changes",icon:Dp,label:"Changes"},{to:"/archive",icon:Ea,label:"Archive"}],Ns={to:"/settings",icon:$2,label:"Settings"};function tO(){const e=j1();return S.jsxs("nav",{className:"desktop-sidebar w-64 border-r border-border bg-muted/30 p-4 flex flex-col shrink-0",children:[S.jsx("div",{className:"mb-6",children:S.jsx("img",{src:e?"/openspec_pixel_dark.svg":"/openspec_pixel_light.svg",alt:"OpenSpec",className:"h-6"})}),S.jsx("ul",{className:"space-y-1 flex-1",children:Gc.map(t=>S.jsx("li",{children:S.jsxs(ut,{to:t.to,className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[S.jsx(t.icon,{className:"w-4 h-4"}),t.label]})},t.to))}),S.jsx("div",{className:"pt-4 border-t border-border",children:S.jsxs(ut,{to:Ns.to,className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[S.jsx(Ns.icon,{className:"w-4 h-4"}),Ns.label]})})]})}function I1(){const[e,t]=ie.useState({connected:!1,projectDir:null,dirName:null,watcherEnabled:!1,error:null});return ie.useEffect(()=>{let n=!0,i;async function s(){try{const u=await fetch(e2());if(!u.ok)throw new Error(`HTTP ${u.status}`);const f=await u.json();if(n){const h=f.projectDir,d=h.split("/").pop()||h;t({connected:!0,projectDir:h,dirName:d,watcherEnabled:f.watcherEnabled,error:null}),document.title=`${d} - OpenSpec UI`}}catch(u){n&&(t(f=>({...f,connected:!1,error:u instanceof Error?u.message:"Connection failed"})),document.title="OpenSpec UI (Disconnected)",i=setTimeout(s,3e3))}}s();const o=setInterval(()=>{n&&s()},3e4);return()=>{n=!1,clearInterval(o),clearTimeout(i)}},[]),e}function B1(){const e=I1();return S.jsx("div",{className:"status-indicator flex items-center gap-1.5 text-xs",children:e.connected?S.jsxs(S.Fragment,{children:[S.jsx(P1,{className:"w-3.5 h-3.5 text-green-500"}),S.jsx("span",{className:"status-text text-green-600",children:"Live"})]}):S.jsxs(S.Fragment,{children:[S.jsx(M1,{className:"w-3.5 h-3.5 text-red-500"}),S.jsx("span",{className:"status-text text-red-600",children:"Offline"})]})})}function nO(){const e=I1();return S.jsxs("div",{className:"desktop-status h-8 border-t border-border bg-muted/30 px-4 flex items-center justify-between text-xs text-muted-foreground",children:[S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(B1,{}),e.projectDir&&S.jsxs("div",{className:"flex items-center gap-1.5",title:e.projectDir,children:[S.jsx(x2,{className:"w-3.5 h-3.5"}),S.jsx("span",{className:"max-w-[300px] truncate",children:e.projectDir})]})]}),e.connected&&S.jsx("div",{className:"flex items-center gap-1.5",children:e.watcherEnabled?S.jsx("span",{className:"text-green-600",children:"Watching for changes"}):S.jsx("span",{className:"text-yellow-600",children:"File watcher disabled"})})]})}function rO(){const[e,t]=ie.useState(!1),n=j1(),s=$t().location.pathname,o=Gc.find(f=>f.to==="/"?s==="/":s.startsWith(f.to)),u=(o==null?void 0:o.label)??"OpenSpec";return S.jsxs(S.Fragment,{children:[S.jsxs("header",{className:"mobile-header h-12 border-b border-border bg-background px-4 flex items-center justify-between",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx("button",{onClick:()=>t(!0),className:"p-1.5 -ml-1.5 hover:bg-muted rounded-md","aria-label":"Open menu",children:S.jsx(z2,{className:"w-5 h-5"})}),S.jsx("span",{className:"font-semibold",children:u})]}),S.jsx(B1,{})]}),e&&S.jsxs("div",{className:"fixed inset-0 z-50 flex",children:[S.jsx("div",{className:"absolute inset-0 bg-black/50 animate-in fade-in duration-200",onClick:()=>t(!1)}),S.jsxs("nav",{className:"relative w-64 max-w-[80vw] bg-background border-r border-border p-4 flex flex-col animate-in slide-in-from-left duration-200",children:[S.jsxs("div",{className:"flex items-center justify-between mb-6",children:[S.jsx("img",{src:n?"/openspec_pixel_dark.svg":"/openspec_pixel_light.svg",alt:"OpenSpec",className:"h-5"}),S.jsx("button",{onClick:()=>t(!1),className:"p-1.5 hover:bg-muted rounded-md","aria-label":"Close menu",children:S.jsx(z1,{className:"w-5 h-5"})})]}),S.jsx("ul",{className:"space-y-1 flex-1",children:Gc.map(f=>S.jsx("li",{children:S.jsxs(ut,{to:f.to,onClick:()=>t(!1),className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[S.jsx(f.icon,{className:"w-4 h-4"}),f.label]})},f.to))}),S.jsx("div",{className:"pt-4 border-t border-border",children:S.jsxs(ut,{to:Ns.to,onClick:()=>t(!1),className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[S.jsx(Ns.icon,{className:"w-4 h-4"}),Ns.label]})})]})]})]})}function iO(){return S.jsx("nav",{className:"mobile-tabbar h-14 border-t border-border bg-background flex items-stretch",children:Gc.slice(0,5).map(e=>S.jsxs(ut,{to:e.to,className:"flex-1 flex flex-col items-center justify-center gap-0.5 text-muted-foreground hover:text-foreground [&.active]:text-primary",children:[S.jsx(e.icon,{className:"w-5 h-5"}),S.jsx("span",{className:"text-[10px]",children:e.label})]},e.to))})}function aO(){return S.jsx("div",{className:"fixed inset-0 @container/app",style:{containerName:"app"},children:S.jsxs("div",{className:"app-layout h-full",children:[S.jsx(tO,{}),S.jsxs("div",{className:"app-body flex flex-col flex-1 min-h-0",children:[S.jsx(rO,{}),S.jsx("main",{className:"main-content flex flex-col",children:S.jsx(i1,{})}),S.jsx(iO,{}),S.jsx(nO,{})]})]})})}function nl(){const e=ie.useRef(null);ie.useEffect(()=>{const t=Fr.realtime.onFileChange.subscribe(void 0,{onData:n=>{switch(n.type){case"spec":Rt.invalidateQueries({queryKey:["spec"]}),Rt.invalidateQueries({queryKey:["dashboard"]});break;case"change":case"archive":Rt.invalidateQueries({queryKey:["change"]}),Rt.invalidateQueries({queryKey:["dashboard"]});break;case"project":Rt.invalidateQueries({queryKey:["dashboard"]});break}},onError:n=>{console.error("Realtime subscription error:",n)}});return e.current=t,()=>{t.unsubscribe()}},[])}function sO(e){ie.useEffect(()=>{if(!e)return;const t=Fr.realtime.onSpecChange.subscribe({specId:e},{onData:()=>{Rt.invalidateQueries({queryKey:["spec","get",{id:e}]}),Rt.invalidateQueries({queryKey:["spec","getRaw",{id:e}]}),Rt.invalidateQueries({queryKey:["spec","validate",{id:e}]}),Rt.invalidateQueries({queryKey:["spec","list"]}),Rt.invalidateQueries({queryKey:["dashboard"]})},onError:n=>{console.error("Spec realtime subscription error:",n)}});return()=>{t.unsubscribe()}},[e])}function lO(e){ie.useEffect(()=>{if(!e)return;const t=Fr.realtime.onChangeChange.subscribe({changeId:e},{onData:()=>{Rt.invalidateQueries({queryKey:["change","get",{id:e}]}),Rt.invalidateQueries({queryKey:["change","getRaw",{id:e}]}),Rt.invalidateQueries({queryKey:["change","validate",{id:e}]}),Rt.invalidateQueries({queryKey:["change","list"]}),Rt.invalidateQueries({queryKey:["change","listArchived"]}),Rt.invalidateQueries({queryKey:["dashboard"]})},onError:n=>{console.error("Change realtime subscription error:",n)}});return()=>{t.unsubscribe()}},[e])}function oO(){nl();const{data:e,isLoading:t,error:n}=xn(Sn.dashboard.getData.queryOptions()),{data:i}=xn(Sn.dashboard.isInitialized.queryOptions()),s=ie.useMemo(()=>e!=null&&e.specs?[...e.specs].sort((u,f)=>f.requirements.length-u.requirements.length):[],[e==null?void 0:e.specs]);if(t)return S.jsx("div",{className:"animate-pulse",children:"Loading dashboard..."});if(n)return S.jsxs("div",{className:"text-destructive flex items-center gap-2",children:[S.jsx(Hc,{className:"w-5 h-5"}),"Error loading dashboard: ",n.message]});if(!i)return S.jsxs("div",{className:"text-center py-12",children:[S.jsx("h2",{className:"text-2xl font-bold mb-4",children:"OpenSpec Not Initialized"}),S.jsx("p",{className:"text-muted-foreground mb-6",children:"This project doesn't have an OpenSpec directory yet."}),S.jsx(ut,{to:"/settings",className:"inline-flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90",children:"Initialize OpenSpec"})]});const{summary:o}=e;return S.jsxs("div",{className:"space-y-6",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Dashboard"}),S.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:[S.jsx(pc,{icon:S.jsx(Xs,{className:"w-5 h-5"}),label:"Specifications",value:o.specCount,sublabel:`${o.requirementCount} requirements`}),S.jsx(pc,{icon:S.jsx(Dp,{className:"w-5 h-5"}),label:"Active Changes",value:o.activeChangeCount,sublabel:"in progress"}),S.jsx(pc,{icon:S.jsx(Ea,{className:"w-5 h-5"}),label:"Completed",value:o.archivedChangeCount,sublabel:"archived"}),S.jsx(pc,{icon:S.jsx(yf,{className:"w-5 h-5"}),label:"Task Progress",value:`${o.completedTasks}/${o.totalTasks}`,sublabel:`${o.progressPercent}% complete`})]}),S.jsxs("section",{children:[S.jsxs("div",{className:"flex items-center justify-between mb-3",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"Active Changes"}),e.changes.length>0&&S.jsx(ut,{to:"/changes",className:"text-sm text-primary hover:underline",children:"View all"})]}),S.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[e.changes.map(u=>{const f=u.progress.total>0?Math.round(u.progress.completed/u.progress.total*100):0;return S.jsxs(ut,{to:"/changes/$changeId",params:{changeId:u.id},className:"block p-4 hover:bg-muted/50",children:[S.jsxs("div",{className:"flex items-center justify-between mb-2",children:[S.jsx("div",{className:"font-medium",children:u.name}),S.jsxs("span",{className:"text-sm text-muted-foreground",children:[u.progress.completed,"/",u.progress.total," tasks"]})]}),S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx("div",{className:"flex-1 bg-muted rounded-full h-2",children:S.jsx("div",{className:"bg-primary h-2 rounded-full transition-all",style:{width:`${f}%`}})}),S.jsxs("span",{className:"text-sm font-medium w-12 text-right",children:[f,"%"]})]})]},u.id)}),e.changes.length===0&&S.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No active changes. Create one in ",S.jsx("code",{className:"bg-muted px-1 rounded",children:"openspec/changes/"})]})]})]}),S.jsxs("section",{children:[S.jsxs("div",{className:"flex items-center justify-between mb-3",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"Specifications"}),s.length>0&&S.jsx(ut,{to:"/specs",className:"text-sm text-primary hover:underline",children:"View all"})]}),S.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[s.map(u=>S.jsxs(ut,{to:"/specs/$specId",params:{specId:u.id},className:"flex items-center justify-between p-3 hover:bg-muted/50",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(Xs,{className:"w-4 h-4 text-muted-foreground"}),S.jsx("span",{className:"font-medium",children:u.name})]}),S.jsxs("span",{className:"text-sm text-muted-foreground",children:[u.requirements.length," requirement",u.requirements.length!==1?"s":""]})]},u.id)),s.length===0&&S.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No specs yet. Create one in ",S.jsx("code",{className:"bg-muted px-1 rounded",children:"openspec/specs/"})]})]})]})]})}function pc({icon:e,label:t,value:n,sublabel:i}){return S.jsxs("div",{className:"border border-border rounded-lg p-4",children:[S.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground mb-2",children:[e,S.jsx("span",{className:"text-sm",children:t})]}),S.jsx("div",{className:"text-2xl font-bold",children:n}),S.jsx("div",{className:"text-sm text-muted-foreground",children:i})]})}function Mp(e){if(!e)return"";const n=Date.now()-e,i=Math.floor(n/1e3),s=Math.floor(i/60),o=Math.floor(s/60),u=Math.floor(o/24),f=Math.floor(u/7),h=Math.floor(u/30),d=Math.floor(u/365);return i<60?"just now":s<60?`${s}m ago`:o<24?`${o}h ago`:u<7?`${u}d ago`:f<4?`${f}w ago`:h<12?`${h}mo ago`:`${d}y ago`}function uO(){nl();const{data:e,isLoading:t}=xn(Sn.spec.listWithMeta.queryOptions());return t?S.jsx("div",{className:"animate-pulse",children:"Loading specs..."}):S.jsxs("div",{className:"space-y-6",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Specifications"}),S.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[e==null?void 0:e.map(n=>S.jsxs(ut,{to:"/specs/$specId",params:{specId:n.id},className:"flex items-center justify-between p-4 hover:bg-muted/50",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(Xs,{className:"w-5 h-5 text-muted-foreground"}),S.jsxs("div",{children:[S.jsx("div",{className:"font-medium",children:n.name}),S.jsxs("div",{className:"text-sm text-muted-foreground",children:[n.id,n.updatedAt>0&&S.jsxs(S.Fragment,{children:[" · ",Mp(n.updatedAt)]})]})]})]}),S.jsx(jp,{className:"w-4 h-4 text-muted-foreground"})]},n.id)),(e==null?void 0:e.length)===0&&S.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No specs found. Create a spec in ",S.jsx("code",{children:"openspec/specs/"})]})]})]})}function U1(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const cO=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fO=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,hO={};function ab(e,t){return(hO.jsx?fO:cO).test(e)}const dO=/[ \t\n\f\r]/g;function vf(e){return typeof e=="object"?e.type==="text"?sb(e.value):!1:sb(e)}function sb(e){return e.replace(dO,"")===""}class Bo{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}Bo.prototype.normal={};Bo.prototype.property={};Bo.prototype.space=void 0;function q1(e,t){const n={},i={};for(const s of e)Object.assign(n,s.property),Object.assign(i,s.normal);return new Bo(n,i,t)}function Wm(e){return e.toLowerCase()}class ln{constructor(t,n){this.attribute=n,this.property=t}}ln.prototype.attribute="";ln.prototype.booleanish=!1;ln.prototype.boolean=!1;ln.prototype.commaOrSpaceSeparated=!1;ln.prototype.commaSeparated=!1;ln.prototype.defined=!1;ln.prototype.mustUseProperty=!1;ln.prototype.number=!1;ln.prototype.overloadedBoolean=!1;ln.prototype.property="";ln.prototype.spaceSeparated=!1;ln.prototype.space=void 0;let mO=0;const Ce=La(),yt=La(),ep=La(),se=La(),nt=La(),js=La(),vn=La();function La(){return 2**++mO}const tp=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ce,booleanish:yt,commaOrSpaceSeparated:vn,commaSeparated:js,number:se,overloadedBoolean:ep,spaceSeparated:nt},Symbol.toStringTag,{value:"Module"})),cm=Object.keys(tp);class Pp extends ln{constructor(t,n,i,s){let o=-1;if(super(t,n),lb(this,"space",s),typeof i=="number")for(;++o<cm.length;){const u=cm[o];lb(this,cm[o],(i&tp[u])===tp[u])}}}Pp.prototype.defined=!0;function lb(e,t,n){n&&(e[t]=n)}function rl(e){const t={},n={};for(const[i,s]of Object.entries(e.properties)){const o=new Pp(i,e.transform(e.attributes||{},i),s,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[Wm(i)]=i,n[Wm(o.attribute)]=i}return new Bo(t,n,e.space)}const V1=rl({properties:{ariaActiveDescendant:null,ariaAtomic:yt,ariaAutoComplete:null,ariaBusy:yt,ariaChecked:yt,ariaColCount:se,ariaColIndex:se,ariaColSpan:se,ariaControls:nt,ariaCurrent:null,ariaDescribedBy:nt,ariaDetails:null,ariaDisabled:yt,ariaDropEffect:nt,ariaErrorMessage:null,ariaExpanded:yt,ariaFlowTo:nt,ariaGrabbed:yt,ariaHasPopup:null,ariaHidden:yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nt,ariaLevel:se,ariaLive:null,ariaModal:yt,ariaMultiLine:yt,ariaMultiSelectable:yt,ariaOrientation:null,ariaOwns:nt,ariaPlaceholder:null,ariaPosInSet:se,ariaPressed:yt,ariaReadOnly:yt,ariaRelevant:null,ariaRequired:yt,ariaRoleDescription:nt,ariaRowCount:se,ariaRowIndex:se,ariaRowSpan:se,ariaSelected:yt,ariaSetSize:se,ariaSort:null,ariaValueMax:se,ariaValueMin:se,ariaValueNow:se,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function H1(e,t){return t in e?e[t]:t}function G1(e,t){return H1(e,t.toLowerCase())}const pO=rl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:js,acceptCharset:nt,accessKey:nt,action:null,allow:null,allowFullScreen:Ce,allowPaymentRequest:Ce,allowUserMedia:Ce,alt:null,as:null,async:Ce,autoCapitalize:null,autoComplete:nt,autoFocus:Ce,autoPlay:Ce,blocking:nt,capture:null,charSet:null,checked:Ce,cite:null,className:nt,cols:se,colSpan:null,content:null,contentEditable:yt,controls:Ce,controlsList:nt,coords:se|js,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ce,defer:Ce,dir:null,dirName:null,disabled:Ce,download:ep,draggable:yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ce,formTarget:null,headers:nt,height:se,hidden:ep,high:se,href:null,hrefLang:null,htmlFor:nt,httpEquiv:nt,id:null,imageSizes:null,imageSrcSet:null,inert:Ce,inputMode:null,integrity:null,is:null,isMap:Ce,itemId:null,itemProp:nt,itemRef:nt,itemScope:Ce,itemType:nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ce,low:se,manifest:null,max:null,maxLength:se,media:null,method:null,min:null,minLength:se,multiple:Ce,muted:Ce,name:null,nonce:null,noModule:Ce,noValidate:Ce,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:Ce,optimum:se,pattern:null,ping:nt,placeholder:null,playsInline:Ce,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ce,referrerPolicy:null,rel:nt,required:Ce,reversed:Ce,rows:se,rowSpan:se,sandbox:nt,scope:null,scoped:Ce,seamless:Ce,selected:Ce,shadowRootClonable:Ce,shadowRootDelegatesFocus:Ce,shadowRootMode:null,shape:null,size:se,sizes:null,slot:null,span:se,spellCheck:yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:se,step:null,style:null,tabIndex:se,target:null,title:null,translate:null,type:null,typeMustMatch:Ce,useMap:null,value:yt,width:se,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:nt,axis:null,background:null,bgColor:null,border:se,borderColor:null,bottomMargin:se,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ce,declare:Ce,event:null,face:null,frame:null,frameBorder:null,hSpace:se,leftMargin:se,link:null,longDesc:null,lowSrc:null,marginHeight:se,marginWidth:se,noResize:Ce,noHref:Ce,noShade:Ce,noWrap:Ce,object:null,profile:null,prompt:null,rev:null,rightMargin:se,rules:null,scheme:null,scrolling:yt,standby:null,summary:null,text:null,topMargin:se,valueType:null,version:null,vAlign:null,vLink:null,vSpace:se,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ce,disableRemotePlayback:Ce,prefix:null,property:null,results:se,security:null,unselectable:null},space:"html",transform:G1}),gO=rl({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:vn,accentHeight:se,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:se,amplitude:se,arabicForm:null,ascent:se,attributeName:null,attributeType:null,azimuth:se,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:se,by:null,calcMode:null,capHeight:se,className:nt,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:se,diffuseConstant:se,direction:null,display:null,dur:null,divisor:se,dominantBaseline:null,download:Ce,dx:null,dy:null,edgeMode:null,editable:null,elevation:se,enableBackground:null,end:null,event:null,exponent:se,externalResourcesRequired:null,fill:null,fillOpacity:se,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:js,g2:js,glyphName:js,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:se,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:se,horizOriginX:se,horizOriginY:se,id:null,ideographic:se,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:se,k:se,k1:se,k2:se,k3:se,k4:se,kernelMatrix:vn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:se,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:se,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:se,overlineThickness:se,paintOrder:null,panose1:null,path:null,pathLength:se,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:se,pointsAtY:se,pointsAtZ:se,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:vn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:vn,rev:vn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:vn,requiredFeatures:vn,requiredFonts:vn,requiredFormats:vn,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:se,specularExponent:se,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:se,strikethroughThickness:se,string:null,stroke:null,strokeDashArray:vn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:se,strokeOpacity:se,strokeWidth:null,style:null,surfaceScale:se,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:vn,tabIndex:se,tableValues:null,target:null,targetX:se,targetY:se,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:vn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:se,underlineThickness:se,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:se,values:null,vAlphabetic:se,vMathematical:se,vectorEffect:null,vHanging:se,vIdeographic:se,version:null,vertAdvY:se,vertOriginX:se,vertOriginY:se,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:se,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:H1}),F1=rl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Q1=rl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:G1}),$1=rl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),yO={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"},vO=/[A-Z]/g,ob=/-[a-z]/g,_O=/^data[-\w.:]+$/i;function Y1(e,t){const n=Wm(t);let i=t,s=ln;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&_O.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(ob,xO);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!ob.test(o)){let u=o.replace(vO,bO);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}s=Pp}return new s(i,t)}function bO(e){return"-"+e.toLowerCase()}function xO(e){return e.charAt(1).toUpperCase()}const K1=q1([V1,pO,F1,Q1,$1],"html"),Uo=q1([V1,gO,F1,Q1,$1],"svg");function X1(e){return e.join(" ").trim()}var ks={},fm,ub;function SO(){if(ub)return fm;ub=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,f=/^\s+|\s+$/g,h=`
232
+ `,d="/",y="*",p="",v="comment",_="declaration";function b(k,T){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];T=T||{};var R=1,L=1;function z(le){var ae=le.match(t);ae&&(R+=ae.length);var q=le.lastIndexOf(h);L=~q?le.length-q:L+le.length}function V(){var le={line:R,column:L};return function(ae){return ae.position=new O(le),ne(),ae}}function O(le){this.start=le,this.end={line:R,column:L},this.source=T.source}O.prototype.content=k;function U(le){var ae=new Error(T.source+":"+R+":"+L+": "+le);if(ae.reason=le,ae.filename=T.source,ae.line=R,ae.column=L,ae.source=k,!T.silent)throw ae}function $(le){var ae=le.exec(k);if(ae){var q=ae[0];return z(q),k=k.slice(q.length),ae}}function ne(){$(n)}function N(le){var ae;for(le=le||[];ae=Q();)ae!==!1&&le.push(ae);return le}function Q(){var le=V();if(!(d!=k.charAt(0)||y!=k.charAt(1))){for(var ae=2;p!=k.charAt(ae)&&(y!=k.charAt(ae)||d!=k.charAt(ae+1));)++ae;if(ae+=2,p===k.charAt(ae-1))return U("End of comment missing");var q=k.slice(2,ae-2);return L+=2,z(q),k=k.slice(ae),L+=2,le({type:v,comment:q})}}function re(){var le=V(),ae=$(i);if(ae){if(Q(),!$(s))return U("property missing ':'");var q=$(o),te=le({type:_,property:E(ae[0].replace(e,p)),value:q?E(q[0].replace(e,p)):p});return $(u),te}}function me(){var le=[];N(le);for(var ae;ae=re();)ae!==!1&&(le.push(ae),N(le));return le}return ne(),me()}function E(k){return k?k.replace(f,p):p}return fm=b,fm}var cb;function EO(){if(cb)return ks;cb=1;var e=ks&&ks.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=n;const t=e(SO());function n(i,s){let o=null;if(!i||typeof i!="string")return o;const u=(0,t.default)(i),f=typeof s=="function";return u.forEach(h=>{if(h.type!=="declaration")return;const{property:d,value:y}=h;f?s(d,y,h):y&&(o=o||{},o[d]=y)}),o}return ks}var no={},fb;function wO(){if(fb)return no;fb=1,Object.defineProperty(no,"__esModule",{value:!0}),no.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,o=function(d){return!d||n.test(d)||e.test(d)},u=function(d,y){return y.toUpperCase()},f=function(d,y){return"".concat(y,"-")},h=function(d,y){return y===void 0&&(y={}),o(d)?d:(d=d.toLowerCase(),y.reactCompat?d=d.replace(s,f):d=d.replace(i,f),d.replace(t,u))};return no.camelCase=h,no}var ro,hb;function TO(){if(hb)return ro;hb=1;var e=ro&&ro.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t=e(EO()),n=wO();function i(s,o){var u={};return!s||typeof s!="string"||(0,t.default)(s,function(f,h){f&&h&&(u[(0,n.camelCase)(f,o)]=h)}),u}return i.default=i,ro=i,ro}var kO=TO();const CO=_p(kO),Z1=J1("end"),zp=J1("start");function J1(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};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 RO(e){const t=zp(e),n=Z1(e);if(t&&n)return{start:t,end:n}}function go(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?db(e.position):"start"in e||"end"in e?db(e):"line"in e||"column"in e?np(e):""}function np(e){return mb(e&&e.line)+":"+mb(e&&e.column)}function db(e){return np(e&&e.start)+"-"+np(e&&e.end)}function mb(e){return e&&typeof e=="number"?e:1}class Bt extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let s="",o={},u=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?s=t:!o.cause&&t&&(u=!0,s=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const h=i.indexOf(":");h===-1?o.ruleId=i:(o.source=i.slice(0,h),o.ruleId=i.slice(h+1))}if(!o.place&&o.ancestors&&o.ancestors){const h=o.ancestors[o.ancestors.length-1];h&&(o.place=h.position)}const f=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=f?f.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=f?f.line:void 0,this.name=go(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=u&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Bt.prototype.file="";Bt.prototype.name="";Bt.prototype.reason="";Bt.prototype.message="";Bt.prototype.stack="";Bt.prototype.column=void 0;Bt.prototype.line=void 0;Bt.prototype.ancestors=void 0;Bt.prototype.cause=void 0;Bt.prototype.fatal=void 0;Bt.prototype.place=void 0;Bt.prototype.ruleId=void 0;Bt.prototype.source=void 0;const Ip={}.hasOwnProperty,AO=new Map,OO=/[A-Z]/g,LO=new Set(["table","tbody","thead","tfoot","tr"]),NO=new Set(["td","th"]),W1="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function jO(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=qO(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=UO(n,t.jsx,t.jsxs)}const s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Uo:K1,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=eS(s,e,void 0);return o&&typeof o!="string"?o:s.create(e,s.Fragment,{children:o||void 0},void 0)}function eS(e,t,n){if(t.type==="element")return DO(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return MO(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return zO(e,t,n);if(t.type==="mdxjsEsm")return PO(e,t);if(t.type==="root")return IO(e,t,n);if(t.type==="text")return BO(e,t)}function DO(e,t,n){const i=e.schema;let s=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(s=Uo,e.schema=s),e.ancestors.push(t);const o=nS(e,t.tagName,!1),u=VO(e,t);let f=Up(e,t);return LO.has(t.tagName)&&(f=f.filter(function(h){return typeof h=="string"?!vf(h):!0})),tS(e,u,o,t),Bp(u,f),e.ancestors.pop(),e.schema=i,e.create(t,o,u,n)}function MO(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}wo(e,t.position)}function PO(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);wo(e,t.position)}function zO(e,t,n){const i=e.schema;let s=i;t.name==="svg"&&i.space==="html"&&(s=Uo,e.schema=s),e.ancestors.push(t);const o=t.name===null?e.Fragment:nS(e,t.name,!0),u=HO(e,t),f=Up(e,t);return tS(e,u,o,t),Bp(u,f),e.ancestors.pop(),e.schema=i,e.create(t,o,u,n)}function IO(e,t,n){const i={};return Bp(i,Up(e,t)),e.create(t,e.Fragment,i,n)}function BO(e,t){return t.value}function tS(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function Bp(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function UO(e,t,n){return i;function i(s,o,u,f){const d=Array.isArray(u.children)?n:t;return f?d(o,u,f):d(o,u)}}function qO(e,t){return n;function n(i,s,o,u){const f=Array.isArray(o.children),h=zp(i);return t(s,o,u,f,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function VO(e,t){const n={};let i,s;for(s in t.properties)if(s!=="children"&&Ip.call(t.properties,s)){const o=GO(e,s,t.properties[s]);if(o){const[u,f]=o;e.tableCellAlignToStyle&&u==="align"&&typeof f=="string"&&NO.has(t.tagName)?i=f:n[u]=f}}if(i){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function HO(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const o=i.data.estree.body[0];o.type;const u=o.expression;u.type;const f=u.properties[0];f.type,Object.assign(n,e.evaluater.evaluateExpression(f.argument))}else wo(e,t.position);else{const s=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const f=i.value.data.estree.body[0];f.type,o=e.evaluater.evaluateExpression(f.expression)}else wo(e,t.position);else o=i.value===null?!0:i.value;n[s]=o}return n}function Up(e,t){const n=[];let i=-1;const s=e.passKeys?new Map:AO;for(;++i<t.children.length;){const o=t.children[i];let u;if(e.passKeys){const h=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(h){const d=s.get(h)||0;u=h+"-"+d,s.set(h,d+1)}}const f=eS(e,o,u);f!==void 0&&n.push(f)}return n}function GO(e,t,n){const i=Y1(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?U1(n):X1(n)),i.property==="style"){let s=typeof n=="object"?n:FO(e,String(n));return e.stylePropertyNameCase==="css"&&(s=QO(s)),["style",s]}return[e.elementAttributeNameCase==="react"&&i.space?yO[i.property]||i.property:i.attribute,n]}}function FO(e,t){try{return CO(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,s=new Bt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=e.filePath||void 0,s.url=W1+"#cannot-parse-style-attribute",s}}function nS(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const s=t.split(".");let o=-1,u;for(;++o<s.length;){const f=ab(s[o])?{type:"Identifier",name:s[o]}:{type:"Literal",value:s[o]};u=u?{type:"MemberExpression",object:u,property:f,computed:!!(o&&f.type==="Literal"),optional:!1}:f}i=u}else i=ab(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const s=i.value;return Ip.call(e.components,s)?e.components[s]:s}if(e.evaluater)return e.evaluater.evaluateExpression(i);wo(e)}function wo(e,t){const n=new Bt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=W1+"#cannot-handle-mdx-estrees-without-createevaluater",n}function QO(e){const t={};let n;for(n in e)Ip.call(e,n)&&(t[$O(n)]=e[n]);return t}function $O(e){let t=e.replace(OO,YO);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function YO(e){return"-"+e.toLowerCase()}const hm={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"]},KO={};function qp(e,t){const n=KO,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,s=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return rS(e,i,s)}function rS(e,t,n){if(XO(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return pb(e.children,t,n)}return Array.isArray(e)?pb(e,t,n):""}function pb(e,t,n){const i=[];let s=-1;for(;++s<e.length;)i[s]=rS(e[s],t,n);return i.join("")}function XO(e){return!!(e&&typeof e=="object")}const gb=document.createElement("i");function Vp(e){const t="&"+e+";";gb.innerHTML=t;const n=gb.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function bn(e,t,n,i){const s=e.length;let o=0,u;if(t<0?t=-t>s?0:s+t:t=t>s?s:t,n=n>0?n:0,i.length<1e4)u=Array.from(i),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);o<i.length;)u=i.slice(o,o+1e4),u.unshift(t,0),e.splice(...u),o+=1e4,t+=1e4}function zn(e,t){return e.length>0?(bn(e,e.length,0,t),e):t}const yb={}.hasOwnProperty;function iS(e){const t={};let n=-1;for(;++n<e.length;)ZO(t,e[n]);return t}function ZO(e,t){let n;for(n in t){const s=(yb.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let u;if(o)for(u in o){yb.call(s,u)||(s[u]=[]);const f=o[u];JO(s[u],Array.isArray(f)?f:f?[f]:[])}}}function JO(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);bn(e,0,0,i)}function aS(e,t){const n=Number.parseInt(e,t);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 Zn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qt=Ui(/[A-Za-z]/),It=Ui(/[\dA-Za-z]/),WO=Ui(/[#-'*+\--9=?A-Z^-~]/);function Fc(e){return e!==null&&(e<32||e===127)}const rp=Ui(/\d/),eL=Ui(/[\dA-Fa-f]/),tL=Ui(/[!-/:-@[-`{-~]/);function _e(e){return e!==null&&e<-2}function tt(e){return e!==null&&(e<0||e===32)}function Ne(e){return e===-2||e===-1||e===32}const _f=Ui(new RegExp("\\p{P}|\\p{S}","u")),Ra=Ui(/\s/);function Ui(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function il(e){const t=[];let n=-1,i=0,s=0;for(;++n<e.length;){const o=e.charCodeAt(n);let u="";if(o===37&&It(e.charCodeAt(n+1))&&It(e.charCodeAt(n+2)))s=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(u=String.fromCharCode(o));else if(o>55295&&o<57344){const f=e.charCodeAt(n+1);o<56320&&f>56319&&f<57344?(u=String.fromCharCode(o,f),s=1):u="�"}else u=String.fromCharCode(o);u&&(t.push(e.slice(i,n),encodeURIComponent(u)),i=n+s+1,u=""),s&&(n+=s,s=0)}return t.join("")+e.slice(i)}function Ie(e,t,n,i){const s=i?i-1:Number.POSITIVE_INFINITY;let o=0;return u;function u(h){return Ne(h)?(e.enter(n),f(h)):t(h)}function f(h){return Ne(h)&&o++<s?(e.consume(h),f):(e.exit(n),t(h))}}const nL={tokenize:rL};function rL(e){const t=e.attempt(this.parser.constructs.contentInitial,i,s);let n;return t;function i(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Ie(e,t,"linePrefix")}function s(f){return e.enter("paragraph"),o(f)}function o(f){const h=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=h),n=h,u(f)}function u(f){if(f===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(f);return}return _e(f)?(e.consume(f),e.exit("chunkText"),o):(e.consume(f),u)}}const iL={tokenize:aL},vb={tokenize:sL};function aL(e){const t=this,n=[];let i=0,s,o,u;return f;function f(L){if(i<n.length){const z=n[i];return t.containerState=z[1],e.attempt(z[0].continuation,h,d)(L)}return d(L)}function h(L){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,s&&R();const z=t.events.length;let V=z,O;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){O=t.events[V][1].end;break}T(i);let U=z;for(;U<t.events.length;)t.events[U][1].end={...O},U++;return bn(t.events,V+1,0,t.events.slice(z)),t.events.length=U,d(L)}return f(L)}function d(L){if(i===n.length){if(!s)return v(L);if(s.currentConstruct&&s.currentConstruct.concrete)return b(L);t.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(vb,y,p)(L)}function y(L){return s&&R(),T(i),v(L)}function p(L){return t.parser.lazy[t.now().line]=i!==n.length,u=t.now().offset,b(L)}function v(L){return t.containerState={},e.attempt(vb,_,b)(L)}function _(L){return i++,n.push([t.currentConstruct,t.containerState]),v(L)}function b(L){if(L===null){s&&R(),T(0),e.consume(L);return}return s=s||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:o}),E(L)}function E(L){if(L===null){k(e.exit("chunkFlow"),!0),T(0),e.consume(L);return}return _e(L)?(e.consume(L),k(e.exit("chunkFlow")),i=0,t.interrupt=void 0,f):(e.consume(L),E)}function k(L,z){const V=t.sliceStream(L);if(z&&V.push(null),L.previous=o,o&&(o.next=L),o=L,s.defineSkip(L.start),s.write(V),t.parser.lazy[L.start.line]){let O=s.events.length;for(;O--;)if(s.events[O][1].start.offset<u&&(!s.events[O][1].end||s.events[O][1].end.offset>u))return;const U=t.events.length;let $=U,ne,N;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(ne){N=t.events[$][1].end;break}ne=!0}for(T(i),O=U;O<t.events.length;)t.events[O][1].end={...N},O++;bn(t.events,$+1,0,t.events.slice(U)),t.events.length=O}}function T(L){let z=n.length;for(;z-- >L;){const V=n[z];t.containerState=V[1],V[0].exit.call(t,e)}n.length=L}function R(){s.write([null]),o=void 0,s=void 0,t.containerState._closeFlow=void 0}}function sL(e,t,n){return Ie(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Zs(e){if(e===null||tt(e)||Ra(e))return 1;if(_f(e))return 2}function bf(e,t,n){const i=[];let s=-1;for(;++s<e.length;){const o=e[s].resolveAll;o&&!i.includes(o)&&(t=o(t,n),i.push(o))}return t}const ip={name:"attention",resolveAll:lL,tokenize:oL};function lL(e,t){let n=-1,i,s,o,u,f,h,d,y;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;h=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[i][1].end},v={...e[n][1].start};_b(p,-h),_b(v,h),u={type:h>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},f={type:h>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:v},o={type:h>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},s={type:h>1?"strong":"emphasis",start:{...u.start},end:{...f.end}},e[i][1].end={...u.start},e[n][1].start={...f.end},d=[],e[i][1].end.offset-e[i][1].start.offset&&(d=zn(d,[["enter",e[i][1],t],["exit",e[i][1],t]])),d=zn(d,[["enter",s,t],["enter",u,t],["exit",u,t],["enter",o,t]]),d=zn(d,bf(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),d=zn(d,[["exit",o,t],["enter",f,t],["exit",f,t],["exit",s,t]]),e[n][1].end.offset-e[n][1].start.offset?(y=2,d=zn(d,[["enter",e[n][1],t],["exit",e[n][1],t]])):y=0,bn(e,i-1,n-i+3,d),n=i+d.length-y-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function oL(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,s=Zs(i);let o;return u;function u(h){return o=h,e.enter("attentionSequence"),f(h)}function f(h){if(h===o)return e.consume(h),f;const d=e.exit("attentionSequence"),y=Zs(h),p=!y||y===2&&s||n.includes(h),v=!s||s===2&&y||n.includes(i);return d._open=!!(o===42?p:p&&(s||!v)),d._close=!!(o===42?v:v&&(y||!p)),t(h)}}function _b(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const uL={name:"autolink",tokenize:cL};function cL(e,t,n){let i=0;return s;function s(_){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(_){return Qt(_)?(e.consume(_),u):_===64?n(_):d(_)}function u(_){return _===43||_===45||_===46||It(_)?(i=1,f(_)):d(_)}function f(_){return _===58?(e.consume(_),i=0,h):(_===43||_===45||_===46||It(_))&&i++<32?(e.consume(_),f):(i=0,d(_))}function h(_){return _===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.exit("autolink"),t):_===null||_===32||_===60||Fc(_)?n(_):(e.consume(_),h)}function d(_){return _===64?(e.consume(_),y):WO(_)?(e.consume(_),d):n(_)}function y(_){return It(_)?p(_):n(_)}function p(_){return _===46?(e.consume(_),i=0,y):_===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(_),e.exit("autolinkMarker"),e.exit("autolink"),t):v(_)}function v(_){if((_===45||It(_))&&i++<63){const b=_===45?v:p;return e.consume(_),b}return n(_)}}const qo={partial:!0,tokenize:fL};function fL(e,t,n){return i;function i(o){return Ne(o)?Ie(e,s,"linePrefix")(o):s(o)}function s(o){return o===null||_e(o)?t(o):n(o)}}const sS={continuation:{tokenize:dL},exit:mL,name:"blockQuote",tokenize:hL};function hL(e,t,n){const i=this;return s;function s(u){if(u===62){const f=i.containerState;return f.open||(e.enter("blockQuote",{_container:!0}),f.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),o}return n(u)}function o(u){return Ne(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function dL(e,t,n){const i=this;return s;function s(u){return Ne(u)?Ie(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):o(u)}function o(u){return e.attempt(sS,t,n)(u)}}function mL(e){e.exit("blockQuote")}const lS={name:"characterEscape",tokenize:pL};function pL(e,t,n){return i;function i(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),s}function s(o){return tL(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const oS={name:"characterReference",tokenize:gL};function gL(e,t,n){const i=this;let s=0,o,u;return f;function f(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),h}function h(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),d):(e.enter("characterReferenceValue"),o=31,u=It,y(p))}function d(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,u=eL,y):(e.enter("characterReferenceValue"),o=7,u=rp,y(p))}function y(p){if(p===59&&s){const v=e.exit("characterReferenceValue");return u===It&&!Vp(i.sliceSerialize(v))?n(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(p)&&s++<o?(e.consume(p),y):n(p)}}const bb={partial:!0,tokenize:vL},xb={concrete:!0,name:"codeFenced",tokenize:yL};function yL(e,t,n){const i=this,s={partial:!0,tokenize:V};let o=0,u=0,f;return h;function h(O){return d(O)}function d(O){const U=i.events[i.events.length-1];return o=U&&U[1].type==="linePrefix"?U[2].sliceSerialize(U[1],!0).length:0,f=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),y(O)}function y(O){return O===f?(u++,e.consume(O),y):u<3?n(O):(e.exit("codeFencedFenceSequence"),Ne(O)?Ie(e,p,"whitespace")(O):p(O))}function p(O){return O===null||_e(O)?(e.exit("codeFencedFence"),i.interrupt?t(O):e.check(bb,E,z)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(O))}function v(O){return O===null||_e(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(O)):Ne(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ie(e,_,"whitespace")(O)):O===96&&O===f?n(O):(e.consume(O),v)}function _(O){return O===null||_e(O)?p(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(O))}function b(O){return O===null||_e(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(O)):O===96&&O===f?n(O):(e.consume(O),b)}function E(O){return e.attempt(s,z,k)(O)}function k(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),T}function T(O){return o>0&&Ne(O)?Ie(e,R,"linePrefix",o+1)(O):R(O)}function R(O){return O===null||_e(O)?e.check(bb,E,z)(O):(e.enter("codeFlowValue"),L(O))}function L(O){return O===null||_e(O)?(e.exit("codeFlowValue"),R(O)):(e.consume(O),L)}function z(O){return e.exit("codeFenced"),t(O)}function V(O,U,$){let ne=0;return N;function N(ae){return O.enter("lineEnding"),O.consume(ae),O.exit("lineEnding"),Q}function Q(ae){return O.enter("codeFencedFence"),Ne(ae)?Ie(O,re,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ae):re(ae)}function re(ae){return ae===f?(O.enter("codeFencedFenceSequence"),me(ae)):$(ae)}function me(ae){return ae===f?(ne++,O.consume(ae),me):ne>=u?(O.exit("codeFencedFenceSequence"),Ne(ae)?Ie(O,le,"whitespace")(ae):le(ae)):$(ae)}function le(ae){return ae===null||_e(ae)?(O.exit("codeFencedFence"),U(ae)):$(ae)}}}function vL(e,t,n){const i=this;return s;function s(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o)}function o(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}const dm={name:"codeIndented",tokenize:bL},_L={partial:!0,tokenize:xL};function bL(e,t,n){const i=this;return s;function s(d){return e.enter("codeIndented"),Ie(e,o,"linePrefix",5)(d)}function o(d){const y=i.events[i.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?u(d):n(d)}function u(d){return d===null?h(d):_e(d)?e.attempt(_L,u,h)(d):(e.enter("codeFlowValue"),f(d))}function f(d){return d===null||_e(d)?(e.exit("codeFlowValue"),u(d)):(e.consume(d),f)}function h(d){return e.exit("codeIndented"),t(d)}}function xL(e,t,n){const i=this;return s;function s(u){return i.parser.lazy[i.now().line]?n(u):_e(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):Ie(e,o,"linePrefix",5)(u)}function o(u){const f=i.events[i.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):_e(u)?s(u):n(u)}}const SL={name:"codeText",previous:wL,resolve:EL,tokenize:TL};function EL(e){let t=e.length-4,n=3,i,s;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)s===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(s=i):(i===t||e[i][1].type==="lineEnding")&&(e[s][1].type="codeTextData",i!==s+2&&(e[s][1].end=e[i-1][1].end,e.splice(s+2,i-s-2),t-=i-s-2,i=s+2),s=void 0);return e}function wL(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function TL(e,t,n){let i=0,s,o;return u;function u(p){return e.enter("codeText"),e.enter("codeTextSequence"),f(p)}function f(p){return p===96?(e.consume(p),i++,f):(e.exit("codeTextSequence"),h(p))}function h(p){return p===null?n(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),h):p===96?(o=e.enter("codeTextSequence"),s=0,y(p)):_e(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),h):(e.enter("codeTextData"),d(p))}function d(p){return p===null||p===32||p===96||_e(p)?(e.exit("codeTextData"),h(p)):(e.consume(p),d)}function y(p){return p===96?(e.consume(p),s++,y):s===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(o.type="codeTextData",d(p))}}class kL{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const s=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return i&&io(this.left,i),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),io(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),io(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);io(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);io(this.left,n.reverse())}}}function io(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function uS(e){const t={};let n=-1,i,s,o,u,f,h,d;const y=new kL(e);for(;++n<y.length;){for(;n in t;)n=t[n];if(i=y.get(n),n&&i[1].type==="chunkFlow"&&y.get(n-1)[1].type==="listItemPrefix"&&(h=i[1]._tokenizer.events,o=0,o<h.length&&h[o][1].type==="lineEndingBlank"&&(o+=2),o<h.length&&h[o][1].type==="content"))for(;++o<h.length&&h[o][1].type!=="content";)h[o][1].type==="chunkText"&&(h[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,CL(y,n)),n=t[n],d=!0);else if(i[1]._container){for(o=n,s=void 0;o--;)if(u=y.get(o),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(s&&(y.get(s)[1].type="lineEndingBlank"),u[1].type="lineEnding",s=o);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;s&&(i[1].end={...y.get(s)[1].start},f=y.slice(s,n),f.unshift(i),y.splice(s,n-s+1,f))}}return bn(e,0,Number.POSITIVE_INFINITY,y.slice(0)),!d}function CL(e,t){const n=e.get(t)[1],i=e.get(t)[2];let s=t-1;const o=[];let u=n._tokenizer;u||(u=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const f=u.events,h=[],d={};let y,p,v=-1,_=n,b=0,E=0;const k=[E];for(;_;){for(;e.get(++s)[1]!==_;);o.push(s),_._tokenizer||(y=i.sliceStream(_),_.next||y.push(null),p&&u.defineSkip(_.start),_._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(y),_._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),p=_,_=_.next}for(_=n;++v<f.length;)f[v][0]==="exit"&&f[v-1][0]==="enter"&&f[v][1].type===f[v-1][1].type&&f[v][1].start.line!==f[v][1].end.line&&(E=v+1,k.push(E),_._tokenizer=void 0,_.previous=void 0,_=_.next);for(u.events=[],_?(_._tokenizer=void 0,_.previous=void 0):k.pop(),v=k.length;v--;){const T=f.slice(k[v],k[v+1]),R=o.pop();h.push([R,R+T.length-1]),e.splice(R,2,T)}for(h.reverse(),v=-1;++v<h.length;)d[b+h[v][0]]=b+h[v][1],b+=h[v][1]-h[v][0]-1;return d}const RL={resolve:OL,tokenize:LL},AL={partial:!0,tokenize:NL};function OL(e){return uS(e),e}function LL(e,t){let n;return i;function i(f){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),s(f)}function s(f){return f===null?o(f):_e(f)?e.check(AL,u,o)(f):(e.consume(f),s)}function o(f){return e.exit("chunkContent"),e.exit("content"),t(f)}function u(f){return e.consume(f),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,s}}function NL(e,t,n){const i=this;return s;function s(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Ie(e,o,"linePrefix")}function o(u){if(u===null||_e(u))return n(u);const f=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,n,t)(u)}}function cS(e,t,n,i,s,o,u,f,h){const d=h||Number.POSITIVE_INFINITY;let y=0;return p;function p(T){return T===60?(e.enter(i),e.enter(s),e.enter(o),e.consume(T),e.exit(o),v):T===null||T===32||T===41||Fc(T)?n(T):(e.enter(i),e.enter(u),e.enter(f),e.enter("chunkString",{contentType:"string"}),E(T))}function v(T){return T===62?(e.enter(o),e.consume(T),e.exit(o),e.exit(s),e.exit(i),t):(e.enter(f),e.enter("chunkString",{contentType:"string"}),_(T))}function _(T){return T===62?(e.exit("chunkString"),e.exit(f),v(T)):T===null||T===60||_e(T)?n(T):(e.consume(T),T===92?b:_)}function b(T){return T===60||T===62||T===92?(e.consume(T),_):_(T)}function E(T){return!y&&(T===null||T===41||tt(T))?(e.exit("chunkString"),e.exit(f),e.exit(u),e.exit(i),t(T)):y<d&&T===40?(e.consume(T),y++,E):T===41?(e.consume(T),y--,E):T===null||T===32||T===40||Fc(T)?n(T):(e.consume(T),T===92?k:E)}function k(T){return T===40||T===41||T===92?(e.consume(T),E):E(T)}}function fS(e,t,n,i,s,o){const u=this;let f=0,h;return d;function d(_){return e.enter(i),e.enter(s),e.consume(_),e.exit(s),e.enter(o),y}function y(_){return f>999||_===null||_===91||_===93&&!h||_===94&&!f&&"_hiddenFootnoteSupport"in u.parser.constructs?n(_):_===93?(e.exit(o),e.enter(s),e.consume(_),e.exit(s),e.exit(i),t):_e(_)?(e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),y):(e.enter("chunkString",{contentType:"string"}),p(_))}function p(_){return _===null||_===91||_===93||_e(_)||f++>999?(e.exit("chunkString"),y(_)):(e.consume(_),h||(h=!Ne(_)),_===92?v:p)}function v(_){return _===91||_===92||_===93?(e.consume(_),f++,p):p(_)}}function hS(e,t,n,i,s,o){let u;return f;function f(v){return v===34||v===39||v===40?(e.enter(i),e.enter(s),e.consume(v),e.exit(s),u=v===40?41:v,h):n(v)}function h(v){return v===u?(e.enter(s),e.consume(v),e.exit(s),e.exit(i),t):(e.enter(o),d(v))}function d(v){return v===u?(e.exit(o),h(u)):v===null?n(v):_e(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),Ie(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===u||v===null||_e(v)?(e.exit("chunkString"),d(v)):(e.consume(v),v===92?p:y)}function p(v){return v===u||v===92?(e.consume(v),y):y(v)}}function yo(e,t){let n;return i;function i(s){return _e(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n=!0,i):Ne(s)?Ie(e,i,n?"linePrefix":"lineSuffix")(s):t(s)}}const jL={name:"definition",tokenize:ML},DL={partial:!0,tokenize:PL};function ML(e,t,n){const i=this;let s;return o;function o(_){return e.enter("definition"),u(_)}function u(_){return fS.call(i,e,f,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(_)}function f(_){return s=Zn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),_===58?(e.enter("definitionMarker"),e.consume(_),e.exit("definitionMarker"),h):n(_)}function h(_){return tt(_)?yo(e,d)(_):d(_)}function d(_){return cS(e,y,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(_)}function y(_){return e.attempt(DL,p,p)(_)}function p(_){return Ne(_)?Ie(e,v,"whitespace")(_):v(_)}function v(_){return _===null||_e(_)?(e.exit("definition"),i.parser.defined.push(s),t(_)):n(_)}}function PL(e,t,n){return i;function i(f){return tt(f)?yo(e,s)(f):n(f)}function s(f){return hS(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(f)}function o(f){return Ne(f)?Ie(e,u,"whitespace")(f):u(f)}function u(f){return f===null||_e(f)?t(f):n(f)}}const zL={name:"hardBreakEscape",tokenize:IL};function IL(e,t,n){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),s}function s(o){return _e(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const BL={name:"headingAtx",resolve:UL,tokenize:qL};function UL(e,t){let n=e.length-2,i=3,s,o;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(s={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},o={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},bn(e,i,n-i+1,[["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t]])),e}function qL(e,t,n){let i=0;return s;function s(y){return e.enter("atxHeading"),o(y)}function o(y){return e.enter("atxHeadingSequence"),u(y)}function u(y){return y===35&&i++<6?(e.consume(y),u):y===null||tt(y)?(e.exit("atxHeadingSequence"),f(y)):n(y)}function f(y){return y===35?(e.enter("atxHeadingSequence"),h(y)):y===null||_e(y)?(e.exit("atxHeading"),t(y)):Ne(y)?Ie(e,f,"whitespace")(y):(e.enter("atxHeadingText"),d(y))}function h(y){return y===35?(e.consume(y),h):(e.exit("atxHeadingSequence"),f(y))}function d(y){return y===null||y===35||tt(y)?(e.exit("atxHeadingText"),f(y)):(e.consume(y),d)}}const VL=["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"],Sb=["pre","script","style","textarea"],HL={concrete:!0,name:"htmlFlow",resolveTo:QL,tokenize:$L},GL={partial:!0,tokenize:KL},FL={partial:!0,tokenize:YL};function QL(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function $L(e,t,n){const i=this;let s,o,u,f,h;return d;function d(A){return y(A)}function y(A){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(A),p}function p(A){return A===33?(e.consume(A),v):A===47?(e.consume(A),o=!0,E):A===63?(e.consume(A),s=3,i.interrupt?t:j):Qt(A)?(e.consume(A),u=String.fromCharCode(A),k):n(A)}function v(A){return A===45?(e.consume(A),s=2,_):A===91?(e.consume(A),s=5,f=0,b):Qt(A)?(e.consume(A),s=4,i.interrupt?t:j):n(A)}function _(A){return A===45?(e.consume(A),i.interrupt?t:j):n(A)}function b(A){const ue="CDATA[";return A===ue.charCodeAt(f++)?(e.consume(A),f===ue.length?i.interrupt?t:re:b):n(A)}function E(A){return Qt(A)?(e.consume(A),u=String.fromCharCode(A),k):n(A)}function k(A){if(A===null||A===47||A===62||tt(A)){const ue=A===47,ge=u.toLowerCase();return!ue&&!o&&Sb.includes(ge)?(s=1,i.interrupt?t(A):re(A)):VL.includes(u.toLowerCase())?(s=6,ue?(e.consume(A),T):i.interrupt?t(A):re(A)):(s=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(A):o?R(A):L(A))}return A===45||It(A)?(e.consume(A),u+=String.fromCharCode(A),k):n(A)}function T(A){return A===62?(e.consume(A),i.interrupt?t:re):n(A)}function R(A){return Ne(A)?(e.consume(A),R):N(A)}function L(A){return A===47?(e.consume(A),N):A===58||A===95||Qt(A)?(e.consume(A),z):Ne(A)?(e.consume(A),L):N(A)}function z(A){return A===45||A===46||A===58||A===95||It(A)?(e.consume(A),z):V(A)}function V(A){return A===61?(e.consume(A),O):Ne(A)?(e.consume(A),V):L(A)}function O(A){return A===null||A===60||A===61||A===62||A===96?n(A):A===34||A===39?(e.consume(A),h=A,U):Ne(A)?(e.consume(A),O):$(A)}function U(A){return A===h?(e.consume(A),h=null,ne):A===null||_e(A)?n(A):(e.consume(A),U)}function $(A){return A===null||A===34||A===39||A===47||A===60||A===61||A===62||A===96||tt(A)?V(A):(e.consume(A),$)}function ne(A){return A===47||A===62||Ne(A)?L(A):n(A)}function N(A){return A===62?(e.consume(A),Q):n(A)}function Q(A){return A===null||_e(A)?re(A):Ne(A)?(e.consume(A),Q):n(A)}function re(A){return A===45&&s===2?(e.consume(A),q):A===60&&s===1?(e.consume(A),te):A===62&&s===4?(e.consume(A),P):A===63&&s===3?(e.consume(A),j):A===93&&s===5?(e.consume(A),Ee):_e(A)&&(s===6||s===7)?(e.exit("htmlFlowData"),e.check(GL,X,me)(A)):A===null||_e(A)?(e.exit("htmlFlowData"),me(A)):(e.consume(A),re)}function me(A){return e.check(FL,le,X)(A)}function le(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),ae}function ae(A){return A===null||_e(A)?me(A):(e.enter("htmlFlowData"),re(A))}function q(A){return A===45?(e.consume(A),j):re(A)}function te(A){return A===47?(e.consume(A),u="",fe):re(A)}function fe(A){if(A===62){const ue=u.toLowerCase();return Sb.includes(ue)?(e.consume(A),P):re(A)}return Qt(A)&&u.length<8?(e.consume(A),u+=String.fromCharCode(A),fe):re(A)}function Ee(A){return A===93?(e.consume(A),j):re(A)}function j(A){return A===62?(e.consume(A),P):A===45&&s===2?(e.consume(A),j):re(A)}function P(A){return A===null||_e(A)?(e.exit("htmlFlowData"),X(A)):(e.consume(A),P)}function X(A){return e.exit("htmlFlow"),t(A)}}function YL(e,t,n){const i=this;return s;function s(u){return _e(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):n(u)}function o(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function KL(e,t,n){return i;function i(s){return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),e.attempt(qo,t,n)}}const XL={name:"htmlText",tokenize:ZL};function ZL(e,t,n){const i=this;let s,o,u;return f;function f(j){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(j),h}function h(j){return j===33?(e.consume(j),d):j===47?(e.consume(j),V):j===63?(e.consume(j),L):Qt(j)?(e.consume(j),$):n(j)}function d(j){return j===45?(e.consume(j),y):j===91?(e.consume(j),o=0,b):Qt(j)?(e.consume(j),R):n(j)}function y(j){return j===45?(e.consume(j),_):n(j)}function p(j){return j===null?n(j):j===45?(e.consume(j),v):_e(j)?(u=p,te(j)):(e.consume(j),p)}function v(j){return j===45?(e.consume(j),_):p(j)}function _(j){return j===62?q(j):j===45?v(j):p(j)}function b(j){const P="CDATA[";return j===P.charCodeAt(o++)?(e.consume(j),o===P.length?E:b):n(j)}function E(j){return j===null?n(j):j===93?(e.consume(j),k):_e(j)?(u=E,te(j)):(e.consume(j),E)}function k(j){return j===93?(e.consume(j),T):E(j)}function T(j){return j===62?q(j):j===93?(e.consume(j),T):E(j)}function R(j){return j===null||j===62?q(j):_e(j)?(u=R,te(j)):(e.consume(j),R)}function L(j){return j===null?n(j):j===63?(e.consume(j),z):_e(j)?(u=L,te(j)):(e.consume(j),L)}function z(j){return j===62?q(j):L(j)}function V(j){return Qt(j)?(e.consume(j),O):n(j)}function O(j){return j===45||It(j)?(e.consume(j),O):U(j)}function U(j){return _e(j)?(u=U,te(j)):Ne(j)?(e.consume(j),U):q(j)}function $(j){return j===45||It(j)?(e.consume(j),$):j===47||j===62||tt(j)?ne(j):n(j)}function ne(j){return j===47?(e.consume(j),q):j===58||j===95||Qt(j)?(e.consume(j),N):_e(j)?(u=ne,te(j)):Ne(j)?(e.consume(j),ne):q(j)}function N(j){return j===45||j===46||j===58||j===95||It(j)?(e.consume(j),N):Q(j)}function Q(j){return j===61?(e.consume(j),re):_e(j)?(u=Q,te(j)):Ne(j)?(e.consume(j),Q):ne(j)}function re(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),s=j,me):_e(j)?(u=re,te(j)):Ne(j)?(e.consume(j),re):(e.consume(j),le)}function me(j){return j===s?(e.consume(j),s=void 0,ae):j===null?n(j):_e(j)?(u=me,te(j)):(e.consume(j),me)}function le(j){return j===null||j===34||j===39||j===60||j===61||j===96?n(j):j===47||j===62||tt(j)?ne(j):(e.consume(j),le)}function ae(j){return j===47||j===62||tt(j)?ne(j):n(j)}function q(j){return j===62?(e.consume(j),e.exit("htmlTextData"),e.exit("htmlText"),t):n(j)}function te(j){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),fe}function fe(j){return Ne(j)?Ie(e,Ee,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):Ee(j)}function Ee(j){return e.enter("htmlTextData"),u(j)}}const Hp={name:"labelEnd",resolveAll:tN,resolveTo:nN,tokenize:rN},JL={tokenize:iN},WL={tokenize:aN},eN={tokenize:sN};function tN(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const s=i.type==="labelImage"?4:2;i.type="data",t+=s}}return e.length!==n.length&&bn(e,0,e.length,n),e}function nN(e,t){let n=e.length,i=0,s,o,u,f;for(;n--;)if(s=e[n][1],o){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;e[n][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(o=n,s.type!=="labelLink")){i=2;break}}else s.type==="labelEnd"&&(u=n);const h={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},d={type:"label",start:{...e[o][1].start},end:{...e[u][1].end}},y={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[u-2][1].start}};return f=[["enter",h,t],["enter",d,t]],f=zn(f,e.slice(o+1,o+i+3)),f=zn(f,[["enter",y,t]]),f=zn(f,bf(t.parser.constructs.insideSpan.null,e.slice(o+i+4,u-3),t)),f=zn(f,[["exit",y,t],e[u-2],e[u-1],["exit",d,t]]),f=zn(f,e.slice(u+1)),f=zn(f,[["exit",h,t]]),bn(e,o,e.length,f),e}function rN(e,t,n){const i=this;let s=i.events.length,o,u;for(;s--;)if((i.events[s][1].type==="labelImage"||i.events[s][1].type==="labelLink")&&!i.events[s][1]._balanced){o=i.events[s][1];break}return f;function f(v){return o?o._inactive?p(v):(u=i.parser.defined.includes(Zn(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),h):n(v)}function h(v){return v===40?e.attempt(JL,y,u?y:p)(v):v===91?e.attempt(WL,y,u?d:p)(v):u?y(v):p(v)}function d(v){return e.attempt(eN,y,p)(v)}function y(v){return t(v)}function p(v){return o._balanced=!0,n(v)}}function iN(e,t,n){return i;function i(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),s}function s(p){return tt(p)?yo(e,o)(p):o(p)}function o(p){return p===41?y(p):cS(e,u,f,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function u(p){return tt(p)?yo(e,h)(p):y(p)}function f(p){return n(p)}function h(p){return p===34||p===39||p===40?hS(e,d,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):y(p)}function d(p){return tt(p)?yo(e,y)(p):y(p)}function y(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):n(p)}}function aN(e,t,n){const i=this;return s;function s(f){return fS.call(i,e,o,u,"reference","referenceMarker","referenceString")(f)}function o(f){return i.parser.defined.includes(Zn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(f):n(f)}function u(f){return n(f)}}function sN(e,t,n){return i;function i(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),s}function s(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const lN={name:"labelStartImage",resolveAll:Hp.resolveAll,tokenize:oN};function oN(e,t,n){const i=this;return s;function s(f){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(f),e.exit("labelImageMarker"),o}function o(f){return f===91?(e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelImage"),u):n(f)}function u(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):t(f)}}const uN={name:"labelStartLink",resolveAll:Hp.resolveAll,tokenize:cN};function cN(e,t,n){const i=this;return s;function s(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),o}function o(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const mm={name:"lineEnding",tokenize:fN};function fN(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),Ie(e,t,"linePrefix")}}const Ac={name:"thematicBreak",tokenize:hN};function hN(e,t,n){let i=0,s;return o;function o(d){return e.enter("thematicBreak"),u(d)}function u(d){return s=d,f(d)}function f(d){return d===s?(e.enter("thematicBreakSequence"),h(d)):i>=3&&(d===null||_e(d))?(e.exit("thematicBreak"),t(d)):n(d)}function h(d){return d===s?(e.consume(d),i++,h):(e.exit("thematicBreakSequence"),Ne(d)?Ie(e,f,"whitespace")(d):f(d))}}const rn={continuation:{tokenize:gN},exit:vN,name:"list",tokenize:pN},dN={partial:!0,tokenize:_N},mN={partial:!0,tokenize:yN};function pN(e,t,n){const i=this,s=i.events[i.events.length-1];let o=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,u=0;return f;function f(_){const b=i.containerState.type||(_===42||_===43||_===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!i.containerState.marker||_===i.containerState.marker:rp(_)){if(i.containerState.type||(i.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),_===42||_===45?e.check(Ac,n,d)(_):d(_);if(!i.interrupt||_===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),h(_)}return n(_)}function h(_){return rp(_)&&++u<10?(e.consume(_),h):(!i.interrupt||u<2)&&(i.containerState.marker?_===i.containerState.marker:_===41||_===46)?(e.exit("listItemValue"),d(_)):n(_)}function d(_){return e.enter("listItemMarker"),e.consume(_),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||_,e.check(qo,i.interrupt?n:y,e.attempt(dN,v,p))}function y(_){return i.containerState.initialBlankLine=!0,o++,v(_)}function p(_){return Ne(_)?(e.enter("listItemPrefixWhitespace"),e.consume(_),e.exit("listItemPrefixWhitespace"),v):n(_)}function v(_){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(_)}}function gN(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(qo,s,o);function s(f){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,Ie(e,t,"listItemIndent",i.containerState.size+1)(f)}function o(f){return i.containerState.furtherBlankLines||!Ne(f)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(f)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(mN,t,u)(f))}function u(f){return i.containerState._closeFlow=!0,i.interrupt=void 0,Ie(e,e.attempt(rn,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f)}}function yN(e,t,n){const i=this;return Ie(e,s,"listItemIndent",i.containerState.size+1);function s(o){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(o):n(o)}}function vN(e){e.exit(this.containerState.type)}function _N(e,t,n){const i=this;return Ie(e,s,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(o){const u=i.events[i.events.length-1];return!Ne(o)&&u&&u[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Eb={name:"setextUnderline",resolveTo:bN,tokenize:xN};function bN(e,t){let n=e.length,i,s,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(s=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[s][1].type="setextHeadingText",o?(e.splice(s,0,["enter",u,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end={...e[o][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function xN(e,t,n){const i=this;let s;return o;function o(d){let y=i.events.length,p;for(;y--;)if(i.events[y][1].type!=="lineEnding"&&i.events[y][1].type!=="linePrefix"&&i.events[y][1].type!=="content"){p=i.events[y][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||p)?(e.enter("setextHeadingLine"),s=d,u(d)):n(d)}function u(d){return e.enter("setextHeadingLineSequence"),f(d)}function f(d){return d===s?(e.consume(d),f):(e.exit("setextHeadingLineSequence"),Ne(d)?Ie(e,h,"lineSuffix")(d):h(d))}function h(d){return d===null||_e(d)?(e.exit("setextHeadingLine"),t(d)):n(d)}}const SN={tokenize:EN};function EN(e){const t=this,n=e.attempt(qo,i,e.attempt(this.parser.constructs.flowInitial,s,Ie(e,e.attempt(this.parser.constructs.flow,s,e.attempt(RL,s)),"linePrefix")));return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function s(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const wN={resolveAll:mS()},TN=dS("string"),kN=dS("text");function dS(e){return{resolveAll:mS(e==="text"?CN:void 0),tokenize:t};function t(n){const i=this,s=this.parser.constructs[e],o=n.attempt(s,u,f);return u;function u(y){return d(y)?o(y):f(y)}function f(y){if(y===null){n.consume(y);return}return n.enter("data"),n.consume(y),h}function h(y){return d(y)?(n.exit("data"),o(y)):(n.consume(y),h)}function d(y){if(y===null)return!0;const p=s[y];let v=-1;if(p)for(;++v<p.length;){const _=p[v];if(!_.previous||_.previous.call(i,i.previous))return!0}return!1}}}function mS(e){return t;function t(n,i){let s=-1,o;for(;++s<=n.length;)o===void 0?n[s]&&n[s][1].type==="data"&&(o=s,s++):(!n[s]||n[s][1].type!=="data")&&(s!==o+2&&(n[o][1].end=n[s-1][1].end,n.splice(o+2,s-o-2),s=o+2),o=void 0);return e?e(n,i):n}}function CN(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const i=e[n-1][1],s=t.sliceStream(i);let o=s.length,u=-1,f=0,h;for(;o--;){const d=s[o];if(typeof d=="string"){for(u=d.length;d.charCodeAt(u-1)===32;)f++,u--;if(u)break;u=-1}else if(d===-2)h=!0,f++;else if(d!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(f=0),f){const d={type:n===e.length||h||f<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?u:i.start._bufferIndex+u,_index:i.start._index+o,line:i.end.line,column:i.end.column-f,offset:i.end.offset-f},end:{...i.end}};i.end={...d.start},i.start.offset===i.end.offset?Object.assign(i,d):(e.splice(n,0,["enter",d,t],["exit",d,t]),n+=2)}n++}return e}const RN={42:rn,43:rn,45:rn,48:rn,49:rn,50:rn,51:rn,52:rn,53:rn,54:rn,55:rn,56:rn,57:rn,62:sS},AN={91:jL},ON={[-2]:dm,[-1]:dm,32:dm},LN={35:BL,42:Ac,45:[Eb,Ac],60:HL,61:Eb,95:Ac,96:xb,126:xb},NN={38:oS,92:lS},jN={[-5]:mm,[-4]:mm,[-3]:mm,33:lN,38:oS,42:ip,60:[uL,XL],91:uN,92:[zL,lS],93:Hp,95:ip,96:SL},DN={null:[ip,wN]},MN={null:[42,95]},PN={null:[]},zN=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:MN,contentInitial:AN,disable:PN,document:RN,flow:LN,flowInitial:ON,insideSpan:DN,string:NN,text:jN},Symbol.toStringTag,{value:"Module"}));function IN(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const s={},o=[];let u=[],f=[];const h={attempt:U(V),check:U(O),consume:R,enter:L,exit:z,interrupt:U(O,{interrupt:!0})},d={code:null,containerState:{},defineSkip:E,events:[],now:b,parser:e,previous:null,sliceSerialize:v,sliceStream:_,write:p};let y=t.tokenize.call(d,h);return t.resolveAll&&o.push(t),d;function p(Q){return u=zn(u,Q),k(),u[u.length-1]!==null?[]:($(t,0),d.events=bf(o,d.events,d),d.events)}function v(Q,re){return UN(_(Q),re)}function _(Q){return BN(u,Q)}function b(){const{_bufferIndex:Q,_index:re,line:me,column:le,offset:ae}=i;return{_bufferIndex:Q,_index:re,line:me,column:le,offset:ae}}function E(Q){s[Q.line]=Q.column,N()}function k(){let Q;for(;i._index<u.length;){const re=u[i._index];if(typeof re=="string")for(Q=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===Q&&i._bufferIndex<re.length;)T(re.charCodeAt(i._bufferIndex));else T(re)}}function T(Q){y=y(Q)}function R(Q){_e(Q)?(i.line++,i.column=1,i.offset+=Q===-3?2:1,N()):Q!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),d.previous=Q}function L(Q,re){const me=re||{};return me.type=Q,me.start=b(),d.events.push(["enter",me,d]),f.push(me),me}function z(Q){const re=f.pop();return re.end=b(),d.events.push(["exit",re,d]),re}function V(Q,re){$(Q,re.from)}function O(Q,re){re.restore()}function U(Q,re){return me;function me(le,ae,q){let te,fe,Ee,j;return Array.isArray(le)?X(le):"tokenize"in le?X([le]):P(le);function P(he){return Se;function Se(Qe){const Me=Qe!==null&&he[Qe],Dt=Qe!==null&&he.null,on=[...Array.isArray(Me)?Me:Me?[Me]:[],...Array.isArray(Dt)?Dt:Dt?[Dt]:[]];return X(on)(Qe)}}function X(he){return te=he,fe=0,he.length===0?q:A(he[fe])}function A(he){return Se;function Se(Qe){return j=ne(),Ee=he,he.partial||(d.currentConstruct=he),he.name&&d.parser.constructs.disable.null.includes(he.name)?ge():he.tokenize.call(re?Object.assign(Object.create(d),re):d,h,ue,ge)(Qe)}}function ue(he){return Q(Ee,j),ae}function ge(he){return j.restore(),++fe<te.length?A(te[fe]):q}}}function $(Q,re){Q.resolveAll&&!o.includes(Q)&&o.push(Q),Q.resolve&&bn(d.events,re,d.events.length-re,Q.resolve(d.events.slice(re),d)),Q.resolveTo&&(d.events=Q.resolveTo(d.events,d))}function ne(){const Q=b(),re=d.previous,me=d.currentConstruct,le=d.events.length,ae=Array.from(f);return{from:le,restore:q};function q(){i=Q,d.previous=re,d.currentConstruct=me,d.events.length=le,f=ae,N()}}function N(){i.line in s&&i.column<2&&(i.column=s[i.line],i.offset+=s[i.line]-1)}}function BN(e,t){const n=t.start._index,i=t.start._bufferIndex,s=t.end._index,o=t.end._bufferIndex;let u;if(n===s)u=[e[n].slice(i,o)];else{if(u=e.slice(n,s),i>-1){const f=u[0];typeof f=="string"?u[0]=f.slice(i):u.shift()}o>0&&u.push(e[s].slice(0,o))}return u}function UN(e,t){let n=-1;const i=[];let s;for(;++n<e.length;){const o=e[n];let u;if(typeof o=="string")u=o;else switch(o){case-5:{u="\r";break}case-4:{u=`
233
233
  `;break}case-3:{u=`\r
234
- `;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&s)continue;u=" ";break}default:u=String.fromCharCode(o)}s=o===-2,i.push(u)}return i.join("")}function RN(e){const i={constructs:nS([wN,...(e||{}).extensions||[]]),content:s(HO),defined:[],document:s(FO),flow:s(uN),lazy:{},string:s(hN),text:s(dN)};return i;function s(o){return u;function u(f){return TN(i,o,f)}}}function AN(e){for(;!lS(e););return e}const Sb=/[\0\t\n\r]/g;function ON(){let e=1,t="",n=!0,i;return s;function s(o,u,f){const h=[];let d,y,p,v,_;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(u||void 0).decode(o)),p=0,t="",n&&(o.charCodeAt(0)===65279&&p++,n=void 0);p<o.length;){if(Sb.lastIndex=p,d=Sb.exec(o),v=d&&d.index!==void 0?d.index:o.length,_=o.charCodeAt(v),!d){t=o.slice(p);break}if(_===10&&p===v&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),p<v&&(h.push(o.slice(p,v)),e+=v-p),_){case 0:{h.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,h.push(-2);e++<y;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}p=v+1}return f&&(i&&h.push(-5),t&&h.push(t),h.push(null)),h}}const LN=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function NN(e){return e.replace(LN,jN)}function jN(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),o=s===120||s===88;return rS(n.slice(o?2:1),o?16:10)}return Up(n)||e}const dS={}.hasOwnProperty;function DN(e,t,n){return typeof t!="string"&&(n=t,t=void 0),MN(n)(AN(RN(n).document().write(ON()(e,t,!0))))}function MN(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Vn),autolinkProtocol:ne,autolinkEmail:ne,atxHeading:o(dr),blockQuote:o(Dt),characterEscape:ne,characterReference:ne,codeFenced:o(on),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:o(on,u),codeText:o(un,u),codeTextData:ne,data:ne,codeFlowValue:ne,definition:o(Na),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:o(qn),hardBreakEscape:o($r),hardBreakTrailing:o($r),htmlFlow:o(ja,u),htmlFlowData:ne,htmlText:o(ja,u),htmlTextData:ne,image:o(Da),label:u,link:o(Vn),listItem:o(Yr),listItemValue:v,listOrdered:o(Hn,p),listUnordered:o(Hn),paragraph:o(Ma),reference:O,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:o(dr),strong:o(Ue),thematicBreak:o(Ut)},exit:{atxHeading:h(),atxHeadingSequence:B,autolink:h(),autolinkEmail:Me,autolinkProtocol:Qe,blockQuote:h(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:he,characterReference:Se,codeFenced:h(k),codeFencedFence:E,codeFencedFenceInfo:_,codeFencedFenceMeta:x,codeFlowValue:N,codeIndented:h(w),codeText:h(ae),codeTextData:N,data:N,definition:h(),definitionDestinationString:z,definitionLabelString:C,definitionTitleString:L,emphasis:h(),hardBreakEscape:h(re),hardBreakTrailing:h(re),htmlFlow:h(me),htmlFlowData:N,htmlText:h(le),htmlTextData:N,image:h(te),label:Ee,labelText:fe,lineEnding:Q,link:h(V),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:ue,resourceDestinationString:j,resourceTitleString:P,resource:X,setextHeading:h($),setextHeadingLineSequence:q,setextHeadingText:A,strong:h(),thematicBreak:h()}};mS(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(Z){let oe={type:"root",children:[]};const xe={stack:[oe],tokenStack:[],config:t,enter:f,exit:d,buffer:u,resume:y,data:n},Ae=[];let Ge=-1;for(;++Ge<Z.length;)if(Z[Ge][1].type==="listOrdered"||Z[Ge][1].type==="listUnordered")if(Z[Ge][0]==="enter")Ae.push(Ge);else{const cn=Ae.pop();Ge=s(Z,cn,Ge)}for(Ge=-1;++Ge<Z.length;){const cn=t[Z[Ge][0]];dS.call(cn,Z[Ge][1].type)&&cn[Z[Ge][1].type].call(Object.assign({sliceSerialize:Z[Ge][2].sliceSerialize},xe),Z[Ge][1])}if(xe.tokenStack.length>0){const cn=xe.tokenStack[xe.tokenStack.length-1];(cn[1]||Eb).call(xe,void 0,cn[0])}for(oe.position={start:bi(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:bi(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},Ge=-1;++Ge<t.transforms.length;)oe=t.transforms[Ge](oe)||oe;return oe}function s(Z,oe,xe){let Ae=oe-1,Ge=-1,cn=!1,mr,qt,_t,Kt;for(;++Ae<=xe;){const We=Z[Ae];switch(We[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{We[0]==="enter"?Ge++:Ge--,Kt=void 0;break}case"lineEndingBlank":{We[0]==="enter"&&(mr&&!Kt&&!Ge&&!_t&&(_t=Ae),Kt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Kt=void 0}if(!Ge&&We[0]==="enter"&&We[1].type==="listItemPrefix"||Ge===-1&&We[0]==="exit"&&(We[1].type==="listUnordered"||We[1].type==="listOrdered")){if(mr){let Kr=Ae;for(qt=void 0;Kr--;){const Gn=Z[Kr];if(Gn[1].type==="lineEnding"||Gn[1].type==="lineEndingBlank"){if(Gn[0]==="exit")continue;qt&&(Z[qt][1].type="lineEndingBlank",cn=!0),Gn[1].type="lineEnding",qt=Kr}else if(!(Gn[1].type==="linePrefix"||Gn[1].type==="blockQuotePrefix"||Gn[1].type==="blockQuotePrefixWhitespace"||Gn[1].type==="blockQuoteMarker"||Gn[1].type==="listItemIndent"))break}_t&&(!qt||_t<qt)&&(mr._spread=!0),mr.end=Object.assign({},qt?Z[qt][1].start:We[1].end),Z.splice(qt||Ae,0,["exit",mr,We[2]]),Ae++,xe++}if(We[1].type==="listItemPrefix"){const Kr={type:"listItem",_spread:!1,start:Object.assign({},We[1].start),end:void 0};mr=Kr,Z.splice(Ae,0,["enter",Kr,We[2]]),Ae++,xe++,_t=void 0,Kt=!0}}}return Z[oe][1]._spread=cn,xe}function o(Z,oe){return xe;function xe(Ae){f.call(this,Z(Ae),Ae),oe&&oe.call(this,Ae)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(Z,oe,xe){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([oe,xe||void 0]),Z.position={start:bi(oe.start),end:void 0}}function h(Z){return oe;function oe(xe){Z&&Z.call(this,xe),d.call(this,xe)}}function d(Z,oe){const xe=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==Z.type&&(oe?oe.call(this,Z,Ae[0]):(Ae[1]||Eb).call(this,Z,Ae[0]));else throw new Error("Cannot close `"+Z.type+"` ("+po({start:Z.start,end:Z.end})+"): it’s not open");xe.position.end=bi(Z.end)}function y(){return Bp(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function v(Z){if(this.data.expectingFirstListItemValue){const oe=this.stack[this.stack.length-2];oe.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function _(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.lang=Z}function x(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.meta=Z}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z.replace(/(\r?\n|\r)$/g,"")}function C(Z){const oe=this.resume(),xe=this.stack[this.stack.length-1];xe.label=oe,xe.identifier=Zn(this.sliceSerialize(Z)).toLowerCase()}function L(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.title=Z}function z(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.url=Z}function B(Z){const oe=this.stack[this.stack.length-1];if(!oe.depth){const xe=this.sliceSerialize(Z).length;oe.depth=xe}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function q(Z){const oe=this.stack[this.stack.length-1];oe.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function ne(Z){const xe=this.stack[this.stack.length-1].children;let Ae=xe[xe.length-1];(!Ae||Ae.type!=="text")&&(Ae=Be(),Ae.position={start:bi(Z.start),end:void 0},xe.push(Ae)),this.stack.push(Ae)}function N(Z){const oe=this.stack.pop();oe.value+=this.sliceSerialize(Z),oe.position.end=bi(Z.end)}function Q(Z){const oe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const xe=oe.children[oe.children.length-1];xe.position.end=bi(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(oe.type)&&(ne.call(this,Z),N.call(this,Z))}function re(){this.data.atHardBreak=!0}function me(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z}function le(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z}function ae(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z}function V(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=oe,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function te(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=oe,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function fe(Z){const oe=this.sliceSerialize(Z),xe=this.stack[this.stack.length-2];xe.label=NN(oe),xe.identifier=Zn(oe).toLowerCase()}function Ee(){const Z=this.stack[this.stack.length-1],oe=this.resume(),xe=this.stack[this.stack.length-1];if(this.data.inReference=!0,xe.type==="link"){const Ae=Z.children;xe.children=Ae}else xe.alt=oe}function j(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.url=Z}function P(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.title=Z}function X(){this.data.inReference=void 0}function O(){this.data.referenceType="collapsed"}function ue(Z){const oe=this.resume(),xe=this.stack[this.stack.length-1];xe.label=oe,xe.identifier=Zn(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function ge(Z){this.data.characterReferenceType=Z.type}function he(Z){const oe=this.sliceSerialize(Z),xe=this.data.characterReferenceType;let Ae;xe?(Ae=rS(oe,xe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=Up(oe);const Ge=this.stack[this.stack.length-1];Ge.value+=Ae}function Se(Z){const oe=this.stack.pop();oe.position.end=bi(Z.end)}function Qe(Z){N.call(this,Z);const oe=this.stack[this.stack.length-1];oe.url=this.sliceSerialize(Z)}function Me(Z){N.call(this,Z);const oe=this.stack[this.stack.length-1];oe.url="mailto:"+this.sliceSerialize(Z)}function Dt(){return{type:"blockquote",children:[]}}function on(){return{type:"code",lang:null,meta:null,value:""}}function un(){return{type:"inlineCode",value:""}}function Na(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function qn(){return{type:"emphasis",children:[]}}function dr(){return{type:"heading",depth:0,children:[]}}function $r(){return{type:"break"}}function ja(){return{type:"html",value:""}}function Da(){return{type:"image",title:null,url:"",alt:null}}function Vn(){return{type:"link",title:null,url:"",children:[]}}function Hn(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Yr(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function Ma(){return{type:"paragraph",children:[]}}function Ue(){return{type:"strong",children:[]}}function Be(){return{type:"text",value:""}}function Ut(){return{type:"thematicBreak"}}}function bi(e){return{line:e.line,column:e.column,offset:e.offset}}function mS(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?mS(e,i):PN(e,i)}}function PN(e,t){let n;for(n in t)if(dS.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function Eb(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+po({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+po({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+po({start:t.start,end:t.end})+") is still open")}function zN(e){const t=this;t.parser=n;function n(i){return DN(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function IN(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function BN(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
235
- `}]}function UN(e,t){const n=t.value?t.value+`
236
- `:"",i={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function qN(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function VN(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function HN(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=rl(i.toLowerCase()),o=e.footnoteOrder.indexOf(i);let u,f=e.footnoteCounts.get(i);f===void 0?(f=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=o+1,f+=1,e.footnoteCounts.set(i,f);const h={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,h);const d={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,d),e.applyData(t,d)}function GN(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function FN(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function pS(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const s=e.all(t),o=s[0];o&&o.type==="text"?o.value="["+o.value:s.unshift({type:"text",value:"["});const u=s[s.length-1];return u&&u.type==="text"?u.value+=i:s.push({type:"text",value:i}),s}function QN(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return pS(e,t);const s={src:rl(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const o={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,o),e.applyData(t,o)}function $N(e,t){const n={src:rl(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function YN(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function KN(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return pS(e,t);const s={href:rl(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const o={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function XN(e,t){const n={href:rl(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function ZN(e,t,n){const i=e.all(t),s=n?JN(n):gS(t),o={},u=[];if(typeof t.checked=="boolean"){const y=i[0];let p;y&&y.type==="element"&&y.tagName==="p"?p=y:(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:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const y=i[f];(s||f!==0||y.type!=="element"||y.tagName!=="p")&&u.push({type:"text",value:`
234
+ `;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&s)continue;u=" ";break}default:u=String.fromCharCode(o)}s=o===-2,i.push(u)}return i.join("")}function qN(e){const i={constructs:iS([zN,...(e||{}).extensions||[]]),content:s(nL),defined:[],document:s(iL),flow:s(SN),lazy:{},string:s(TN),text:s(kN)};return i;function s(o){return u;function u(f){return IN(i,o,f)}}}function VN(e){for(;!uS(e););return e}const wb=/[\0\t\n\r]/g;function HN(){let e=1,t="",n=!0,i;return s;function s(o,u,f){const h=[];let d,y,p,v,_;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(u||void 0).decode(o)),p=0,t="",n&&(o.charCodeAt(0)===65279&&p++,n=void 0);p<o.length;){if(wb.lastIndex=p,d=wb.exec(o),v=d&&d.index!==void 0?d.index:o.length,_=o.charCodeAt(v),!d){t=o.slice(p);break}if(_===10&&p===v&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),p<v&&(h.push(o.slice(p,v)),e+=v-p),_){case 0:{h.push(65533),e++;break}case 9:{for(y=Math.ceil(e/4)*4,h.push(-2);e++<y;)h.push(-1);break}case 10:{h.push(-4),e=1;break}default:i=!0,e=1}p=v+1}return f&&(i&&h.push(-5),t&&h.push(t),h.push(null)),h}}const GN=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function FN(e){return e.replace(GN,QN)}function QN(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const s=n.charCodeAt(1),o=s===120||s===88;return aS(n.slice(o?2:1),o?16:10)}return Vp(n)||e}const pS={}.hasOwnProperty;function $N(e,t,n){return typeof t!="string"&&(n=t,t=void 0),YN(n)(VN(qN(n).document().write(HN()(e,t,!0))))}function YN(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Vn),autolinkProtocol:ne,autolinkEmail:ne,atxHeading:o(dr),blockQuote:o(Dt),characterEscape:ne,characterReference:ne,codeFenced:o(on),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:o(on,u),codeText:o(un,u),codeTextData:ne,data:ne,codeFlowValue:ne,definition:o(Na),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:o(qn),hardBreakEscape:o($r),hardBreakTrailing:o($r),htmlFlow:o(ja,u),htmlFlowData:ne,htmlText:o(ja,u),htmlTextData:ne,image:o(Da),label:u,link:o(Vn),listItem:o(Yr),listItemValue:v,listOrdered:o(Hn,p),listUnordered:o(Hn),paragraph:o(Ma),reference:A,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:o(dr),strong:o(Ue),thematicBreak:o(Ut)},exit:{atxHeading:h(),atxHeadingSequence:V,autolink:h(),autolinkEmail:Me,autolinkProtocol:Qe,blockQuote:h(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:he,characterReference:Se,codeFenced:h(k),codeFencedFence:E,codeFencedFenceInfo:_,codeFencedFenceMeta:b,codeFlowValue:N,codeIndented:h(T),codeText:h(ae),codeTextData:N,data:N,definition:h(),definitionDestinationString:z,definitionLabelString:R,definitionTitleString:L,emphasis:h(),hardBreakEscape:h(re),hardBreakTrailing:h(re),htmlFlow:h(me),htmlFlowData:N,htmlText:h(le),htmlTextData:N,image:h(te),label:Ee,labelText:fe,lineEnding:Q,link:h(q),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:ue,resourceDestinationString:j,resourceTitleString:P,resource:X,setextHeading:h($),setextHeadingLineSequence:U,setextHeadingText:O,strong:h(),thematicBreak:h()}};gS(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(Z){let oe={type:"root",children:[]};const xe={stack:[oe],tokenStack:[],config:t,enter:f,exit:d,buffer:u,resume:y,data:n},Ae=[];let Ge=-1;for(;++Ge<Z.length;)if(Z[Ge][1].type==="listOrdered"||Z[Ge][1].type==="listUnordered")if(Z[Ge][0]==="enter")Ae.push(Ge);else{const cn=Ae.pop();Ge=s(Z,cn,Ge)}for(Ge=-1;++Ge<Z.length;){const cn=t[Z[Ge][0]];pS.call(cn,Z[Ge][1].type)&&cn[Z[Ge][1].type].call(Object.assign({sliceSerialize:Z[Ge][2].sliceSerialize},xe),Z[Ge][1])}if(xe.tokenStack.length>0){const cn=xe.tokenStack[xe.tokenStack.length-1];(cn[1]||Tb).call(xe,void 0,cn[0])}for(oe.position={start:bi(Z.length>0?Z[0][1].start:{line:1,column:1,offset:0}),end:bi(Z.length>0?Z[Z.length-2][1].end:{line:1,column:1,offset:0})},Ge=-1;++Ge<t.transforms.length;)oe=t.transforms[Ge](oe)||oe;return oe}function s(Z,oe,xe){let Ae=oe-1,Ge=-1,cn=!1,mr,qt,_t,Kt;for(;++Ae<=xe;){const We=Z[Ae];switch(We[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{We[0]==="enter"?Ge++:Ge--,Kt=void 0;break}case"lineEndingBlank":{We[0]==="enter"&&(mr&&!Kt&&!Ge&&!_t&&(_t=Ae),Kt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Kt=void 0}if(!Ge&&We[0]==="enter"&&We[1].type==="listItemPrefix"||Ge===-1&&We[0]==="exit"&&(We[1].type==="listUnordered"||We[1].type==="listOrdered")){if(mr){let Kr=Ae;for(qt=void 0;Kr--;){const Gn=Z[Kr];if(Gn[1].type==="lineEnding"||Gn[1].type==="lineEndingBlank"){if(Gn[0]==="exit")continue;qt&&(Z[qt][1].type="lineEndingBlank",cn=!0),Gn[1].type="lineEnding",qt=Kr}else if(!(Gn[1].type==="linePrefix"||Gn[1].type==="blockQuotePrefix"||Gn[1].type==="blockQuotePrefixWhitespace"||Gn[1].type==="blockQuoteMarker"||Gn[1].type==="listItemIndent"))break}_t&&(!qt||_t<qt)&&(mr._spread=!0),mr.end=Object.assign({},qt?Z[qt][1].start:We[1].end),Z.splice(qt||Ae,0,["exit",mr,We[2]]),Ae++,xe++}if(We[1].type==="listItemPrefix"){const Kr={type:"listItem",_spread:!1,start:Object.assign({},We[1].start),end:void 0};mr=Kr,Z.splice(Ae,0,["enter",Kr,We[2]]),Ae++,xe++,_t=void 0,Kt=!0}}}return Z[oe][1]._spread=cn,xe}function o(Z,oe){return xe;function xe(Ae){f.call(this,Z(Ae),Ae),oe&&oe.call(this,Ae)}}function u(){this.stack.push({type:"fragment",children:[]})}function f(Z,oe,xe){this.stack[this.stack.length-1].children.push(Z),this.stack.push(Z),this.tokenStack.push([oe,xe||void 0]),Z.position={start:bi(oe.start),end:void 0}}function h(Z){return oe;function oe(xe){Z&&Z.call(this,xe),d.call(this,xe)}}function d(Z,oe){const xe=this.stack.pop(),Ae=this.tokenStack.pop();if(Ae)Ae[0].type!==Z.type&&(oe?oe.call(this,Z,Ae[0]):(Ae[1]||Tb).call(this,Z,Ae[0]));else throw new Error("Cannot close `"+Z.type+"` ("+go({start:Z.start,end:Z.end})+"): it’s not open");xe.position.end=bi(Z.end)}function y(){return qp(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function v(Z){if(this.data.expectingFirstListItemValue){const oe=this.stack[this.stack.length-2];oe.start=Number.parseInt(this.sliceSerialize(Z),10),this.data.expectingFirstListItemValue=void 0}}function _(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.lang=Z}function b(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.meta=Z}function E(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function T(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z.replace(/(\r?\n|\r)$/g,"")}function R(Z){const oe=this.resume(),xe=this.stack[this.stack.length-1];xe.label=oe,xe.identifier=Zn(this.sliceSerialize(Z)).toLowerCase()}function L(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.title=Z}function z(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.url=Z}function V(Z){const oe=this.stack[this.stack.length-1];if(!oe.depth){const xe=this.sliceSerialize(Z).length;oe.depth=xe}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function U(Z){const oe=this.stack[this.stack.length-1];oe.depth=this.sliceSerialize(Z).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function ne(Z){const xe=this.stack[this.stack.length-1].children;let Ae=xe[xe.length-1];(!Ae||Ae.type!=="text")&&(Ae=Be(),Ae.position={start:bi(Z.start),end:void 0},xe.push(Ae)),this.stack.push(Ae)}function N(Z){const oe=this.stack.pop();oe.value+=this.sliceSerialize(Z),oe.position.end=bi(Z.end)}function Q(Z){const oe=this.stack[this.stack.length-1];if(this.data.atHardBreak){const xe=oe.children[oe.children.length-1];xe.position.end=bi(Z.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(oe.type)&&(ne.call(this,Z),N.call(this,Z))}function re(){this.data.atHardBreak=!0}function me(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z}function le(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z}function ae(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.value=Z}function q(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=oe,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function te(){const Z=this.stack[this.stack.length-1];if(this.data.inReference){const oe=this.data.referenceType||"shortcut";Z.type+="Reference",Z.referenceType=oe,delete Z.url,delete Z.title}else delete Z.identifier,delete Z.label;this.data.referenceType=void 0}function fe(Z){const oe=this.sliceSerialize(Z),xe=this.stack[this.stack.length-2];xe.label=FN(oe),xe.identifier=Zn(oe).toLowerCase()}function Ee(){const Z=this.stack[this.stack.length-1],oe=this.resume(),xe=this.stack[this.stack.length-1];if(this.data.inReference=!0,xe.type==="link"){const Ae=Z.children;xe.children=Ae}else xe.alt=oe}function j(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.url=Z}function P(){const Z=this.resume(),oe=this.stack[this.stack.length-1];oe.title=Z}function X(){this.data.inReference=void 0}function A(){this.data.referenceType="collapsed"}function ue(Z){const oe=this.resume(),xe=this.stack[this.stack.length-1];xe.label=oe,xe.identifier=Zn(this.sliceSerialize(Z)).toLowerCase(),this.data.referenceType="full"}function ge(Z){this.data.characterReferenceType=Z.type}function he(Z){const oe=this.sliceSerialize(Z),xe=this.data.characterReferenceType;let Ae;xe?(Ae=aS(oe,xe==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ae=Vp(oe);const Ge=this.stack[this.stack.length-1];Ge.value+=Ae}function Se(Z){const oe=this.stack.pop();oe.position.end=bi(Z.end)}function Qe(Z){N.call(this,Z);const oe=this.stack[this.stack.length-1];oe.url=this.sliceSerialize(Z)}function Me(Z){N.call(this,Z);const oe=this.stack[this.stack.length-1];oe.url="mailto:"+this.sliceSerialize(Z)}function Dt(){return{type:"blockquote",children:[]}}function on(){return{type:"code",lang:null,meta:null,value:""}}function un(){return{type:"inlineCode",value:""}}function Na(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function qn(){return{type:"emphasis",children:[]}}function dr(){return{type:"heading",depth:0,children:[]}}function $r(){return{type:"break"}}function ja(){return{type:"html",value:""}}function Da(){return{type:"image",title:null,url:"",alt:null}}function Vn(){return{type:"link",title:null,url:"",children:[]}}function Hn(Z){return{type:"list",ordered:Z.type==="listOrdered",start:null,spread:Z._spread,children:[]}}function Yr(Z){return{type:"listItem",spread:Z._spread,checked:null,children:[]}}function Ma(){return{type:"paragraph",children:[]}}function Ue(){return{type:"strong",children:[]}}function Be(){return{type:"text",value:""}}function Ut(){return{type:"thematicBreak"}}}function bi(e){return{line:e.line,column:e.column,offset:e.offset}}function gS(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?gS(e,i):KN(e,i)}}function KN(e,t){let n;for(n in t)if(pS.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function Tb(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+go({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+go({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+go({start:t.start,end:t.end})+") is still open")}function XN(e){const t=this;t.parser=n;function n(i){return $N(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ZN(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function JN(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
235
+ `}]}function WN(e,t){const n=t.value?t.value+`
236
+ `:"",i={},s=t.lang?t.lang.split(/\s+/):[];s.length>0&&(i.className=["language-"+s[0]]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function ej(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tj(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function nj(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=il(i.toLowerCase()),o=e.footnoteOrder.indexOf(i);let u,f=e.footnoteCounts.get(i);f===void 0?(f=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=o+1,f+=1,e.footnoteCounts.set(i,f);const h={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+s,id:n+"fnref-"+s+(f>1?"-"+f:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,h);const d={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,d),e.applyData(t,d)}function rj(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ij(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function yS(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const s=e.all(t),o=s[0];o&&o.type==="text"?o.value="["+o.value:s.unshift({type:"text",value:"["});const u=s[s.length-1];return u&&u.type==="text"?u.value+=i:s.push({type:"text",value:i}),s}function aj(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return yS(e,t);const s={src:il(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(s.title=i.title);const o={type:"element",tagName:"img",properties:s,children:[]};return e.patch(t,o),e.applyData(t,o)}function sj(e,t){const n={src:il(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function lj(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function oj(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return yS(e,t);const s={href:il(i.url||"")};i.title!==null&&i.title!==void 0&&(s.title=i.title);const o={type:"element",tagName:"a",properties:s,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function uj(e,t){const n={href:il(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function cj(e,t,n){const i=e.all(t),s=n?fj(n):vS(t),o={},u=[];if(typeof t.checked=="boolean"){const y=i[0];let p;y&&y.type==="element"&&y.tagName==="p"?p=y:(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:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let f=-1;for(;++f<i.length;){const y=i[f];(s||f!==0||y.type!=="element"||y.tagName!=="p")&&u.push({type:"text",value:`
237
237
  `}),y.type==="element"&&y.tagName==="p"&&!s?u.push(...y.children):u.push(y)}const h=i[i.length-1];h&&(s||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:`
238
- `});const d={type:"element",tagName:"li",properties:o,children:u};return e.patch(t,d),e.applyData(t,d)}function JN(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=gS(n[i])}return t}function gS(e){const t=e.spread;return t??e.children.length>1}function WN(e,t){const n={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<i.length;){const u=i[s];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function ej(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function tj(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function nj(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function rj(e,t){const n=e.all(t),i=n.shift(),s=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],u),s.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},f=Mp(t.children[1]),h=K1(t.children[t.children.length-1]);f&&h&&(u.position={start:f,end:h}),s.push(u)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,o),e.applyData(t,o)}function ij(e,t,n){const i=n?n.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,f=u?u.length:t.children.length;let h=-1;const d=[];for(;++h<f;){const p=t.children[h],v={},_=u?u[h]:void 0;_&&(v.align=_);let x={type:"element",tagName:o,properties:v,children:[]};p&&(x.children=e.all(p),e.patch(p,x),x=e.applyData(p,x)),d.push(x)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,y),e.applyData(t,y)}function aj(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const wb=9,Tb=32;function sj(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),s=0;const o=[];for(;i;)o.push(kb(t.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=n.exec(t);return o.push(kb(t.slice(s),s>0,!1)),o.join("")}function kb(e,t,n){let i=0,s=e.length;if(t){let o=e.codePointAt(i);for(;o===wb||o===Tb;)i++,o=e.codePointAt(i)}if(n){let o=e.codePointAt(s-1);for(;o===wb||o===Tb;)s--,o=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function lj(e,t){const n={type:"text",value:sj(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function oj(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const uj={blockquote:IN,break:BN,code:UN,delete:qN,emphasis:VN,footnoteReference:HN,heading:GN,html:FN,imageReference:QN,image:$N,inlineCode:YN,linkReference:KN,link:XN,listItem:ZN,list:WN,paragraph:ej,root:tj,strong:nj,table:rj,tableCell:aj,tableRow:ij,text:lj,thematicBreak:oj,toml:gc,yaml:gc,definition:gc,footnoteDefinition:gc};function gc(){}const yS=-1,xf=0,yo=1,Fc=2,Vp=3,Hp=4,Gp=5,Fp=6,vS=7,_S=8,Cb=typeof self=="object"?self:globalThis,cj=(e,t)=>{const n=(s,o)=>(e.set(o,s),s),i=s=>{if(e.has(s))return e.get(s);const[o,u]=t[s];switch(o){case xf:case yS:return n(u,s);case yo:{const f=n([],s);for(const h of u)f.push(i(h));return f}case Fc:{const f=n({},s);for(const[h,d]of u)f[i(h)]=i(d);return f}case Vp:return n(new Date(u),s);case Hp:{const{source:f,flags:h}=u;return n(new RegExp(f,h),s)}case Gp:{const f=n(new Map,s);for(const[h,d]of u)f.set(i(h),i(d));return f}case Fp:{const f=n(new Set,s);for(const h of u)f.add(i(h));return f}case vS:{const{name:f,message:h}=u;return n(new Cb[f](h),s)}case _S:return n(BigInt(u),s);case"BigInt":return n(Object(BigInt(u)),s);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return n(new DataView(f),u)}}return n(new Cb[o](u),s)};return i},Rb=e=>cj(new Map,e)(0),Cs="",{toString:fj}={},{keys:hj}=Object,io=e=>{const t=typeof e;if(t!=="object"||!e)return[xf,t];const n=fj.call(e).slice(8,-1);switch(n){case"Array":return[yo,Cs];case"Object":return[Fc,Cs];case"Date":return[Vp,Cs];case"RegExp":return[Hp,Cs];case"Map":return[Gp,Cs];case"Set":return[Fp,Cs];case"DataView":return[yo,n]}return n.includes("Array")?[yo,n]:n.includes("Error")?[vS,n]:[Fc,n]},yc=([e,t])=>e===xf&&(t==="function"||t==="symbol"),dj=(e,t,n,i)=>{const s=(u,f)=>{const h=i.push(u)-1;return n.set(f,h),h},o=u=>{if(n.has(u))return n.get(u);let[f,h]=io(u);switch(f){case xf:{let y=u;switch(h){case"bigint":f=_S,y=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);y=null;break;case"undefined":return s([yS],u)}return s([f,y],u)}case yo:{if(h){let v=u;return h==="DataView"?v=new Uint8Array(u.buffer):h==="ArrayBuffer"&&(v=new Uint8Array(u)),s([h,[...v]],u)}const y=[],p=s([f,y],u);for(const v of u)y.push(o(v));return p}case Fc:{if(h)switch(h){case"BigInt":return s([h,u.toString()],u);case"Boolean":case"Number":case"String":return s([h,u.valueOf()],u)}if(t&&"toJSON"in u)return o(u.toJSON());const y=[],p=s([f,y],u);for(const v of hj(u))(e||!yc(io(u[v])))&&y.push([o(v),o(u[v])]);return p}case Vp:return s([f,u.toISOString()],u);case Hp:{const{source:y,flags:p}=u;return s([f,{source:y,flags:p}],u)}case Gp:{const y=[],p=s([f,y],u);for(const[v,_]of u)(e||!(yc(io(v))||yc(io(_))))&&y.push([o(v),o(_)]);return p}case Fp:{const y=[],p=s([f,y],u);for(const v of u)(e||!yc(io(v)))&&y.push(o(v));return p}}const{message:d}=u;return s([f,{name:h,message:d}],u)};return o},Ab=(e,{json:t,lossy:n}={})=>{const i=[];return dj(!(t||n),!!t,new Map,i)(e),i},Qc=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Rb(Ab(e,t)):structuredClone(e):(e,t)=>Rb(Ab(e,t));function mj(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function pj(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function gj(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||mj,i=e.options.footnoteBackLabel||pj,s=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[h]);if(!d)continue;const y=e.all(d),p=String(d.identifier).toUpperCase(),v=rl(p.toLowerCase());let _=0;const x=[],E=e.footnoteCounts.get(p);for(;E!==void 0&&++_<=E;){x.length>0&&x.push({type:"text",value:" "});let C=typeof n=="string"?n:n(h,_);typeof C=="string"&&(C={type:"text",value:C}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(_>1?"-"+_:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(h,_),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const k=y[y.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const C=k.children[k.children.length-1];C&&C.type==="text"?C.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...x)}else y.push(...x);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(y,!0)};e.patch(d,w),f.push(w)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Qc(u),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
238
+ `});const d={type:"element",tagName:"li",properties:o,children:u};return e.patch(t,d),e.applyData(t,d)}function fj(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=vS(n[i])}return t}function vS(e){const t=e.spread;return t??e.children.length>1}function hj(e,t){const n={},i=e.all(t);let s=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++s<i.length;){const u=i[s];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function dj(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function mj(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function pj(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gj(e,t){const n=e.all(t),i=n.shift(),s=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],u),s.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},f=zp(t.children[1]),h=Z1(t.children[t.children.length-1]);f&&h&&(u.position={start:f,end:h}),s.push(u)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(s,!0)};return e.patch(t,o),e.applyData(t,o)}function yj(e,t,n){const i=n?n.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,f=u?u.length:t.children.length;let h=-1;const d=[];for(;++h<f;){const p=t.children[h],v={},_=u?u[h]:void 0;_&&(v.align=_);let b={type:"element",tagName:o,properties:v,children:[]};p&&(b.children=e.all(p),e.patch(p,b),b=e.applyData(p,b)),d.push(b)}const y={type:"element",tagName:"tr",properties:{},children:e.wrap(d,!0)};return e.patch(t,y),e.applyData(t,y)}function vj(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const kb=9,Cb=32;function _j(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),s=0;const o=[];for(;i;)o.push(Rb(t.slice(s,i.index),s>0,!0),i[0]),s=i.index+i[0].length,i=n.exec(t);return o.push(Rb(t.slice(s),s>0,!1)),o.join("")}function Rb(e,t,n){let i=0,s=e.length;if(t){let o=e.codePointAt(i);for(;o===kb||o===Cb;)i++,o=e.codePointAt(i)}if(n){let o=e.codePointAt(s-1);for(;o===kb||o===Cb;)s--,o=e.codePointAt(s-1)}return s>i?e.slice(i,s):""}function bj(e,t){const n={type:"text",value:_j(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function xj(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Sj={blockquote:ZN,break:JN,code:WN,delete:ej,emphasis:tj,footnoteReference:nj,heading:rj,html:ij,imageReference:aj,image:sj,inlineCode:lj,linkReference:oj,link:uj,listItem:cj,list:hj,paragraph:dj,root:mj,strong:pj,table:gj,tableCell:vj,tableRow:yj,text:bj,thematicBreak:xj,toml:gc,yaml:gc,definition:gc,footnoteDefinition:gc};function gc(){}const _S=-1,xf=0,vo=1,Qc=2,Gp=3,Fp=4,Qp=5,$p=6,bS=7,xS=8,Ab=typeof self=="object"?self:globalThis,Ej=(e,t)=>{const n=(s,o)=>(e.set(o,s),s),i=s=>{if(e.has(s))return e.get(s);const[o,u]=t[s];switch(o){case xf:case _S:return n(u,s);case vo:{const f=n([],s);for(const h of u)f.push(i(h));return f}case Qc:{const f=n({},s);for(const[h,d]of u)f[i(h)]=i(d);return f}case Gp:return n(new Date(u),s);case Fp:{const{source:f,flags:h}=u;return n(new RegExp(f,h),s)}case Qp:{const f=n(new Map,s);for(const[h,d]of u)f.set(i(h),i(d));return f}case $p:{const f=n(new Set,s);for(const h of u)f.add(i(h));return f}case bS:{const{name:f,message:h}=u;return n(new Ab[f](h),s)}case xS:return n(BigInt(u),s);case"BigInt":return n(Object(BigInt(u)),s);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:f}=new Uint8Array(u);return n(new DataView(f),u)}}return n(new Ab[o](u),s)};return i},Ob=e=>Ej(new Map,e)(0),Cs="",{toString:wj}={},{keys:Tj}=Object,ao=e=>{const t=typeof e;if(t!=="object"||!e)return[xf,t];const n=wj.call(e).slice(8,-1);switch(n){case"Array":return[vo,Cs];case"Object":return[Qc,Cs];case"Date":return[Gp,Cs];case"RegExp":return[Fp,Cs];case"Map":return[Qp,Cs];case"Set":return[$p,Cs];case"DataView":return[vo,n]}return n.includes("Array")?[vo,n]:n.includes("Error")?[bS,n]:[Qc,n]},yc=([e,t])=>e===xf&&(t==="function"||t==="symbol"),kj=(e,t,n,i)=>{const s=(u,f)=>{const h=i.push(u)-1;return n.set(f,h),h},o=u=>{if(n.has(u))return n.get(u);let[f,h]=ao(u);switch(f){case xf:{let y=u;switch(h){case"bigint":f=xS,y=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);y=null;break;case"undefined":return s([_S],u)}return s([f,y],u)}case vo:{if(h){let v=u;return h==="DataView"?v=new Uint8Array(u.buffer):h==="ArrayBuffer"&&(v=new Uint8Array(u)),s([h,[...v]],u)}const y=[],p=s([f,y],u);for(const v of u)y.push(o(v));return p}case Qc:{if(h)switch(h){case"BigInt":return s([h,u.toString()],u);case"Boolean":case"Number":case"String":return s([h,u.valueOf()],u)}if(t&&"toJSON"in u)return o(u.toJSON());const y=[],p=s([f,y],u);for(const v of Tj(u))(e||!yc(ao(u[v])))&&y.push([o(v),o(u[v])]);return p}case Gp:return s([f,u.toISOString()],u);case Fp:{const{source:y,flags:p}=u;return s([f,{source:y,flags:p}],u)}case Qp:{const y=[],p=s([f,y],u);for(const[v,_]of u)(e||!(yc(ao(v))||yc(ao(_))))&&y.push([o(v),o(_)]);return p}case $p:{const y=[],p=s([f,y],u);for(const v of u)(e||!yc(ao(v)))&&y.push(o(v));return p}}const{message:d}=u;return s([f,{name:h,message:d}],u)};return o},Lb=(e,{json:t,lossy:n}={})=>{const i=[];return kj(!(t||n),!!t,new Map,i)(e),i},$c=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Ob(Lb(e,t)):structuredClone(e):(e,t)=>Ob(Lb(e,t));function Cj(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Rj(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Aj(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Cj,i=e.options.footnoteBackLabel||Rj,s=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},f=[];let h=-1;for(;++h<e.footnoteOrder.length;){const d=e.footnoteById.get(e.footnoteOrder[h]);if(!d)continue;const y=e.all(d),p=String(d.identifier).toUpperCase(),v=il(p.toLowerCase());let _=0;const b=[],E=e.footnoteCounts.get(p);for(;E!==void 0&&++_<=E;){b.length>0&&b.push({type:"text",value:" "});let R=typeof n=="string"?n:n(h,_);typeof R=="string"&&(R={type:"text",value:R}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(_>1?"-"+_:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(h,_),className:["data-footnote-backref"]},children:Array.isArray(R)?R:[R]})}const k=y[y.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const R=k.children[k.children.length-1];R&&R.type==="text"?R.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...b)}else y.push(...b);const T={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(y,!0)};e.patch(d,T),f.push(T)}if(f.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...$c(u),id:"footnote-label"},children:[{type:"text",value:s}]},{type:"text",value:`
239
239
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(f,!0)},{type:"text",value:`
240
- `}]}}const Sf=(function(e){if(e==null)return bj;if(typeof e=="function")return Ef(e);if(typeof e=="object")return Array.isArray(e)?yj(e):vj(e);if(typeof e=="string")return _j(e);throw new Error("Expected function, string, or object as test")});function yj(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Sf(e[n]);return Ef(i);function i(...s){let o=-1;for(;++o<t.length;)if(t[o].apply(this,s))return!0;return!1}}function vj(e){const t=e;return Ef(n);function n(i){const s=i;let o;for(o in e)if(s[o]!==t[o])return!1;return!0}}function _j(e){return Ef(t);function t(n){return n&&n.type===e}}function Ef(e){return t;function t(n,i,s){return!!(xj(n)&&e.call(this,n,typeof i=="number"?i:void 0,s||void 0))}}function bj(){return!0}function xj(e){return e!==null&&typeof e=="object"&&"type"in e}const bS=[],Sj=!0,ip=!1,Ej="skip";function xS(e,t,n,i){let s;typeof t=="function"&&typeof n!="function"?(i=n,n=t):s=t;const o=Sf(s),u=i?-1:1;f(e,void 0,[])();function f(h,d,y){const p=h&&typeof h=="object"?h:{};if(typeof p.type=="string"){const _=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(h.type+(_?"<"+_+">":""))+")"})}return v;function v(){let _=bS,x,E,k;if((!t||o(h,d,y[y.length-1]||void 0))&&(_=wj(n(h,y)),_[0]===ip))return _;if("children"in h&&h.children){const w=h;if(w.children&&_[0]!==Ej)for(E=(i?w.children.length:-1)+u,k=y.concat(w);E>-1&&E<w.children.length;){const C=w.children[E];if(x=f(C,E,k)(),x[0]===ip)return x;E=typeof x[1]=="number"?x[1]:E+u}}return _}}}function wj(e){return Array.isArray(e)?e:typeof e=="number"?[Sj,e]:e==null?bS:[e]}function Qp(e,t,n,i){let s,o,u;typeof t=="function"&&typeof n!="function"?(o=void 0,u=t,s=n):(o=t,u=n,s=i),xS(e,o,f,s);function f(h,d){const y=d[d.length-1],p=y?y.children.indexOf(h):void 0;return u(h,p,y)}}const ap={}.hasOwnProperty,Tj={};function kj(e,t){const n=t||Tj,i=new Map,s=new Map,o=new Map,u={...uj,...n.handlers},f={all:d,applyData:Rj,definitionById:i,footnoteById:s,footnoteCounts:o,footnoteOrder:[],handlers:u,one:h,options:n,patch:Cj,wrap:Oj};return Qp(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const p=y.type==="definition"?i:s,v=String(y.identifier).toUpperCase();p.has(v)||p.set(v,y)}}),f;function h(y,p){const v=y.type,_=f.handlers[v];if(ap.call(f.handlers,v)&&_)return _(f,y,p);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in y){const{children:E,...k}=y,w=Qc(k);return w.children=f.all(y),w}return Qc(y)}return(f.options.unknownHandler||Aj)(f,y,p)}function d(y){const p=[];if("children"in y){const v=y.children;let _=-1;for(;++_<v.length;){const x=f.one(v[_],y);if(x){if(_&&v[_-1].type==="break"&&(!Array.isArray(x)&&x.type==="text"&&(x.value=Ob(x.value)),!Array.isArray(x)&&x.type==="element")){const E=x.children[0];E&&E.type==="text"&&(E.value=Ob(E.value))}Array.isArray(x)?p.push(...x):p.push(x)}}}return p}}function Cj(e,t){e.position&&(t.position=pO(e))}function Rj(e,t){let n=t;if(e&&e.data){const i=e.data.hName,s=e.data.hChildren,o=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const u="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:u}}n.type==="element"&&o&&Object.assign(n.properties,Qc(o)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function Aj(e,t){const n=t.data||{},i="value"in t&&!(ap.call(n,"hProperties")||ap.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Oj(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
240
+ `}]}}const Sf=(function(e){if(e==null)return jj;if(typeof e=="function")return Ef(e);if(typeof e=="object")return Array.isArray(e)?Oj(e):Lj(e);if(typeof e=="string")return Nj(e);throw new Error("Expected function, string, or object as test")});function Oj(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Sf(e[n]);return Ef(i);function i(...s){let o=-1;for(;++o<t.length;)if(t[o].apply(this,s))return!0;return!1}}function Lj(e){const t=e;return Ef(n);function n(i){const s=i;let o;for(o in e)if(s[o]!==t[o])return!1;return!0}}function Nj(e){return Ef(t);function t(n){return n&&n.type===e}}function Ef(e){return t;function t(n,i,s){return!!(Dj(n)&&e.call(this,n,typeof i=="number"?i:void 0,s||void 0))}}function jj(){return!0}function Dj(e){return e!==null&&typeof e=="object"&&"type"in e}const SS=[],Mj=!0,ap=!1,Pj="skip";function ES(e,t,n,i){let s;typeof t=="function"&&typeof n!="function"?(i=n,n=t):s=t;const o=Sf(s),u=i?-1:1;f(e,void 0,[])();function f(h,d,y){const p=h&&typeof h=="object"?h:{};if(typeof p.type=="string"){const _=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(h.type+(_?"<"+_+">":""))+")"})}return v;function v(){let _=SS,b,E,k;if((!t||o(h,d,y[y.length-1]||void 0))&&(_=zj(n(h,y)),_[0]===ap))return _;if("children"in h&&h.children){const T=h;if(T.children&&_[0]!==Pj)for(E=(i?T.children.length:-1)+u,k=y.concat(T);E>-1&&E<T.children.length;){const R=T.children[E];if(b=f(R,E,k)(),b[0]===ap)return b;E=typeof b[1]=="number"?b[1]:E+u}}return _}}}function zj(e){return Array.isArray(e)?e:typeof e=="number"?[Mj,e]:e==null?SS:[e]}function Yp(e,t,n,i){let s,o,u;typeof t=="function"&&typeof n!="function"?(o=void 0,u=t,s=n):(o=t,u=n,s=i),ES(e,o,f,s);function f(h,d){const y=d[d.length-1],p=y?y.children.indexOf(h):void 0;return u(h,p,y)}}const sp={}.hasOwnProperty,Ij={};function Bj(e,t){const n=t||Ij,i=new Map,s=new Map,o=new Map,u={...Sj,...n.handlers},f={all:d,applyData:qj,definitionById:i,footnoteById:s,footnoteCounts:o,footnoteOrder:[],handlers:u,one:h,options:n,patch:Uj,wrap:Hj};return Yp(e,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const p=y.type==="definition"?i:s,v=String(y.identifier).toUpperCase();p.has(v)||p.set(v,y)}}),f;function h(y,p){const v=y.type,_=f.handlers[v];if(sp.call(f.handlers,v)&&_)return _(f,y,p);if(f.options.passThrough&&f.options.passThrough.includes(v)){if("children"in y){const{children:E,...k}=y,T=$c(k);return T.children=f.all(y),T}return $c(y)}return(f.options.unknownHandler||Vj)(f,y,p)}function d(y){const p=[];if("children"in y){const v=y.children;let _=-1;for(;++_<v.length;){const b=f.one(v[_],y);if(b){if(_&&v[_-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=Nb(b.value)),!Array.isArray(b)&&b.type==="element")){const E=b.children[0];E&&E.type==="text"&&(E.value=Nb(E.value))}Array.isArray(b)?p.push(...b):p.push(b)}}}return p}}function Uj(e,t){e.position&&(t.position=RO(e))}function qj(e,t){let n=t;if(e&&e.data){const i=e.data.hName,s=e.data.hChildren,o=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const u="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:u}}n.type==="element"&&o&&Object.assign(n.properties,$c(o)),"children"in n&&n.children&&s!==null&&s!==void 0&&(n.children=s)}return n}function Vj(e,t){const n=t.data||{},i="value"in t&&!(sp.call(n,"hProperties")||sp.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Hj(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
241
241
  `});++i<e.length;)i&&n.push({type:"text",value:`
242
242
  `}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
243
- `}),n}function Ob(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Lb(e,t){const n=kj(e,t),i=n.one(e,void 0),s=gj(n),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&o.children.push({type:"text",value:`
244
- `},s),o}function Lj(e,t){return e&&"run"in e?async function(n,i){const s=Lb(n,{file:i,...t});await e.run(s,i)}:function(n,i){return Lb(n,{file:i,...e||t})}}function Nb(e){if(e)throw e}var mm,jb;function Nj(){if(jb)return mm;jb=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},o=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var y=e.call(d,"constructor"),p=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!y&&!p)return!1;var v;for(v in d);return typeof v>"u"||e.call(d,v)},u=function(d,y){n&&y.name==="__proto__"?n(d,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):d[y.name]=y.newValue},f=function(d,y){if(y==="__proto__")if(e.call(d,y)){if(i)return i(d,y).value}else return;return d[y]};return mm=function h(){var d,y,p,v,_,x,E=arguments[0],k=1,w=arguments.length,C=!1;for(typeof E=="boolean"&&(C=E,E=arguments[1]||{},k=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});k<w;++k)if(d=arguments[k],d!=null)for(y in d)p=f(E,y),v=f(d,y),E!==v&&(C&&v&&(o(v)||(_=s(v)))?(_?(_=!1,x=p&&s(p)?p:[]):x=p&&o(p)?p:{},u(E,{name:y,newValue:h(C,x,v)})):typeof v<"u"&&u(E,{name:y,newValue:v}));return E},mm}var jj=Nj();const pm=vp(jj);function sp(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Dj(){const e=[],t={run:n,use:i};return t;function n(...s){let o=-1;const u=s.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...s);function f(h,...d){const y=e[++o];let p=-1;if(h){u(h);return}for(;++p<s.length;)(d[p]===null||d[p]===void 0)&&(d[p]=s[p]);s=d,y?Mj(y,f)(...d):u(null,...d)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function Mj(e,t){let n;return i;function i(...u){const f=e.length>u.length;let h;f&&u.push(s);try{h=e.apply(this,u)}catch(d){const y=d;if(f&&n)throw y;return s(y)}f||(h&&h.then&&typeof h.then=="function"?h.then(o,s):h instanceof Error?s(h):o(h))}function s(u,...f){n||(n=!0,t(u,...f))}function o(u){s(null,u)}}const ar={basename:Pj,dirname:zj,extname:Ij,join:Bj,sep:"/"};function Pj(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Vo(e);let n=0,i=-1,s=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(o){n=s+1;break}}else i<0&&(o=!0,i=s+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let u=-1,f=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(o){n=s+1;break}}else u<0&&(o=!0,u=s+1),f>-1&&(e.codePointAt(s)===t.codePointAt(f--)?f<0&&(i=s):(f=-1,i=u));return n===i?i=u:i<0&&(i=e.length),e.slice(n,i)}function zj(e){if(Vo(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Ij(e){Vo(e);let t=e.length,n=-1,i=0,s=-1,o=0,u;for(;t--;){const f=e.codePointAt(t);if(f===47){if(u){i=t+1;break}continue}n<0&&(u=!0,n=t+1),f===46?s<0?s=t:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||n<0||o===0||o===1&&s===n-1&&s===i+1?"":e.slice(s,n)}function Bj(...e){let t=-1,n;for(;++t<e.length;)Vo(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Uj(n)}function Uj(e){Vo(e);const t=e.codePointAt(0)===47;let n=qj(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function qj(e,t){let n="",i=0,s=-1,o=0,u=-1,f,h;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(s===u-1||o===1))if(s!==u-1&&o===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(h=n.lastIndexOf("/"),h!==n.length-1){h<0?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),s=u,o=0;continue}}else if(n.length>0){n="",i=0,s=u,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(s+1,u):n=e.slice(s+1,u),i=u-s-1;s=u,o=0}else f===46&&o>-1?o++:o=-1}return n}function Vo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Vj={cwd:Hj};function Hj(){return"/"}function lp(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Gj(e){if(typeof e=="string")e=new URL(e);else if(!lp(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Fj(e)}function Fj(e){if(e.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 t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const gm=["history","path","basename","stem","extname","dirname"];class SS{constructor(t){let n;t?lp(t)?n={path:t}:typeof t=="string"||Qj(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Vj.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<gm.length;){const o=gm[i];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let s;for(s in n)gm.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?ar.basename(this.path):void 0}set basename(t){vm(t,"basename"),ym(t,"basename"),this.path=ar.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ar.dirname(this.path):void 0}set dirname(t){Db(this.basename,"dirname"),this.path=ar.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ar.extname(this.path):void 0}set extname(t){if(ym(t,"extname"),Db(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ar.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){lp(t)&&(t=Gj(t)),vm(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ar.basename(this.path,this.extname):void 0}set stem(t){vm(t,"stem"),ym(t,"stem"),this.path=ar.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const s=this.message(t,n,i);throw s.fatal=!0,s}info(t,n,i){const s=this.message(t,n,i);return s.fatal=void 0,s}message(t,n,i){const s=new Bt(t,n,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ym(e,t){if(e&&e.includes(ar.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ar.sep+"`")}function vm(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Db(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Qj(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $j=(function(e){const i=this.constructor.prototype,s=i[e],o=function(){return s.apply(o,arguments)};return Object.setPrototypeOf(o,i),o}),Yj={}.hasOwnProperty;class $p extends $j{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=Dj()}copy(){const t=new $p;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(pm(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(xm("data",this.frozen),this.namespace[t]=n,this):Yj.call(this.namespace,t)&&this.namespace[t]||void 0:t?(xm("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=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 s=n.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=vc(t),i=this.parser||this.Parser;return _m("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),_m("process",this.parser||this.Parser),bm("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(o,u){const f=vc(t),h=i.parse(f);i.run(h,f,function(y,p,v){if(y||!p||!v)return d(y);const _=p,x=i.stringify(_,v);Zj(x)?v.value=x:v.result=x,d(y,v)});function d(y,p){y||!p?u(y):o?o(p):n(void 0,p)}}}processSync(t){let n=!1,i;return this.freeze(),_m("processSync",this.parser||this.Parser),bm("processSync",this.compiler||this.Compiler),this.process(t,s),Pb("processSync","process",n),i;function s(o,u){n=!0,Nb(o),i=u}}run(t,n,i){Mb(t),this.freeze();const s=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?o(void 0,i):new Promise(o);function o(u,f){const h=vc(n);s.run(t,h,d);function d(y,p,v){const _=p||t;y?f(y):u?u(_):i(void 0,_,v)}}}runSync(t,n){let i=!1,s;return this.run(t,n,o),Pb("runSync","run",i),s;function o(u,f){Nb(u),s=f,i=!0}}stringify(t,n){this.freeze();const i=vc(n),s=this.compiler||this.Compiler;return bm("stringify",s),Mb(t),s(t,i)}use(t,...n){const i=this.attachers,s=this.namespace;if(xm("use",this.frozen),t!=null)if(typeof t=="function")h(t,n);else if(typeof t=="object")Array.isArray(t)?f(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(d){if(typeof d=="function")h(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[y,...p]=d;h(y,p)}else u(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function u(d){if(!("plugins"in d)&&!("settings"in d))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");f(d.plugins),d.settings&&(s.settings=pm(!0,s.settings,d.settings))}function f(d){let y=-1;if(d!=null)if(Array.isArray(d))for(;++y<d.length;){const p=d[y];o(p)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function h(d,y){let p=-1,v=-1;for(;++p<i.length;)if(i[p][0]===d){v=p;break}if(v===-1)i.push([d,...y]);else if(y.length>0){let[_,...x]=y;const E=i[v][1];sp(E)&&sp(_)&&(_=pm(!0,E,_)),i[v]=[d,_,...x]}}}}const Kj=new $p().freeze();function _m(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function bm(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function xm(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Mb(e){if(!sp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Pb(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function vc(e){return Xj(e)?e:new SS(e)}function Xj(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Zj(e){return typeof e=="string"||Jj(e)}function Jj(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Wj="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",zb=[],Ib={allowDangerousHtml:!0},eD=/^(https?|ircs?|mailto|xmpp)$/i,tD=[{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 nD(e){const t=rD(e),n=iD(e);return aD(t.runSync(t.parse(n),n),e)}function rD(e){const t=e.rehypePlugins||zb,n=e.remarkPlugins||zb,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ib}:Ib;return Kj().use(zN).use(n).use(Lj,i).use(t)}function iD(e){const t=e.children||"",n=new SS;return typeof t=="string"&&(n.value=t),n}function aD(e,t){const n=t.allowedElements,i=t.allowElement,s=t.components,o=t.disallowedElements,u=t.skipHtml,f=t.unwrapDisallowed,h=t.urlTransform||sD;for(const y of tD)Object.hasOwn(t,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+Wj+y.id,void 0);return Qp(e,d),bO(e,{Fragment:S.Fragment,components:s,ignoreInvalidStyle:!0,jsx:S.jsx,jsxs:S.jsxs,passKeys:!0,passNode:!0});function d(y,p,v){if(y.type==="raw"&&v&&typeof p=="number")return u?v.children.splice(p,1):v.children[p]={type:"text",value:y.value},p;if(y.type==="element"){let _;for(_ in fm)if(Object.hasOwn(fm,_)&&Object.hasOwn(y.properties,_)){const x=y.properties[_],E=fm[_];(E===null||E.includes(y.tagName))&&(y.properties[_]=h(String(x||""),_,y))}}if(y.type==="element"){let _=n?!n.includes(y.tagName):o?o.includes(y.tagName):!1;if(!_&&i&&typeof p=="number"&&(_=!i(y,p,v)),_&&v&&typeof p=="number")return f&&y.children?v.children.splice(p,1,...y.children):v.children.splice(p,1),p}}}function sD(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||n!==-1&&t>n||i!==-1&&t>i||eD.test(e.slice(0,t))?e:""}function $c(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,s=n.indexOf(t);for(;s!==-1;)i++,s=n.indexOf(t,s+t.length);return i}function lD(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function oD(e,t,n){const s=Sf((n||{}).ignore||[]),o=uD(t);let u=-1;for(;++u<o.length;)xS(e,"text",f);function f(d,y){let p=-1,v;for(;++p<y.length;){const _=y[p],x=v?v.children:void 0;if(s(_,x?x.indexOf(_):void 0,v))return;v=_}if(v)return h(d,y)}function h(d,y){const p=y[y.length-1],v=o[u][0],_=o[u][1];let x=0;const k=p.children.indexOf(d);let w=!1,C=[];v.lastIndex=0;let L=v.exec(d.value);for(;L;){const z=L.index,B={index:L.index,input:L.input,stack:[...y,d]};let A=_(...L,B);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?v.lastIndex=z+1:(x!==z&&C.push({type:"text",value:d.value.slice(x,z)}),Array.isArray(A)?C.push(...A):A&&C.push(A),x=z+L[0].length,w=!0),!v.global)break;L=v.exec(d.value)}return w?(x<d.value.length&&C.push({type:"text",value:d.value.slice(x)}),p.children.splice(k,1,...C)):C=[d],k+C.length}}function uD(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const s=n[i];t.push([cD(s[0]),fD(s[1])])}return t}function cD(e){return typeof e=="string"?new RegExp(lD(e),"g"):e}function fD(e){return typeof e=="function"?e:function(){return e}}const Sm="phrasing",Em=["autolink","link","image","label"];function hD(){return{transforms:[_D],enter:{literalAutolink:mD,literalAutolinkEmail:wm,literalAutolinkHttp:wm,literalAutolinkWww:wm},exit:{literalAutolink:vD,literalAutolinkEmail:yD,literalAutolinkHttp:pD,literalAutolinkWww:gD}}}function dD(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Sm,notInConstruct:Em},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Sm,notInConstruct:Em},{character:":",before:"[ps]",after:"\\/",inConstruct:Sm,notInConstruct:Em}]}}function mD(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function wm(e){this.config.enter.autolinkProtocol.call(this,e)}function pD(e){this.config.exit.autolinkProtocol.call(this,e)}function gD(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function yD(e){this.config.exit.autolinkEmail.call(this,e)}function vD(e){this.exit(e)}function _D(e){oD(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,bD],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),xD]],{ignore:["link","linkReference"]})}function bD(e,t,n,i,s){let o="";if(!ES(s)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!SD(n)))return!1;const u=ED(n+i);if(!u[0])return!1;const f={type:"link",title:null,url:o+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[f,{type:"text",value:u[1]}]:f}function xD(e,t,n,i){return!ES(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function SD(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function ED(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const s=$c(e,"(");let o=$c(e,")");for(;i!==-1&&s>o;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),o++;return[e,n]}function ES(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ra(n)||_f(n))&&(!t||n!==47)}wS.peek=ND;function wD(){this.buffer()}function TD(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function kD(){this.buffer()}function CD(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function RD(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Zn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function AD(e){this.exit(e)}function OD(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Zn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function LD(e){this.exit(e)}function ND(){return"["}function wS(e,t,n,i){const s=n.createTracker(i);let o=s.move("[^");const u=n.enter("footnoteReference"),f=n.enter("reference");return o+=s.move(n.safe(n.associationId(e),{after:"]",before:o})),f(),u(),o+=s.move("]"),o}function jD(){return{enter:{gfmFootnoteCallString:wD,gfmFootnoteCall:TD,gfmFootnoteDefinitionLabelString:kD,gfmFootnoteDefinition:CD},exit:{gfmFootnoteCallString:RD,gfmFootnoteCall:AD,gfmFootnoteDefinitionLabelString:OD,gfmFootnoteDefinition:LD}}}function DD(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:wS},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,s,o,u){const f=o.createTracker(u);let h=f.move("[^");const d=o.enter("footnoteDefinition"),y=o.enter("label");return h+=f.move(o.safe(o.associationId(i),{before:h,after:"]"})),y(),h+=f.move("]:"),i.children&&i.children.length>0&&(f.shift(4),h+=f.move((t?`
245
- `:" ")+o.indentLines(o.containerFlow(i,f.current()),t?TS:MD))),d(),h}}function MD(e,t,n){return t===0?e:TS(e,t,n)}function TS(e,t,n){return(n?"":" ")+e}const PD=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];kS.peek=qD;function zD(){return{canContainEols:["delete"],enter:{strikethrough:BD},exit:{strikethrough:UD}}}function ID(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:PD}],handlers:{delete:kS}}}function BD(e){this.enter({type:"delete",children:[]},e)}function UD(e){this.exit(e)}function kS(e,t,n,i){const s=n.createTracker(i),o=n.enter("strikethrough");let u=s.move("~~");return u+=n.containerPhrasing(e,{...s.current(),before:u,after:"~"}),u+=s.move("~~"),o(),u}function qD(){return"~"}function VD(e){return e.length}function HD(e,t){const n=t||{},i=(n.align||[]).concat(),s=n.stringLength||VD,o=[],u=[],f=[],h=[];let d=0,y=-1;for(;++y<e.length;){const E=[],k=[];let w=-1;for(e[y].length>d&&(d=e[y].length);++w<e[y].length;){const C=GD(e[y][w]);if(n.alignDelimiters!==!1){const L=s(C);k[w]=L,(h[w]===void 0||L>h[w])&&(h[w]=L)}E.push(C)}u[y]=E,f[y]=k}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<d;)o[p]=Bb(i[p]);else{const E=Bb(i);for(;++p<d;)o[p]=E}p=-1;const v=[],_=[];for(;++p<d;){const E=o[p];let k="",w="";E===99?(k=":",w=":"):E===108?k=":":E===114&&(w=":");let C=n.alignDelimiters===!1?1:Math.max(1,h[p]-k.length-w.length);const L=k+"-".repeat(C)+w;n.alignDelimiters!==!1&&(C=k.length+C+w.length,C>h[p]&&(h[p]=C),_[p]=C),v[p]=L}u.splice(1,0,v),f.splice(1,0,_),y=-1;const x=[];for(;++y<u.length;){const E=u[y],k=f[y];p=-1;const w=[];for(;++p<d;){const C=E[p]||"";let L="",z="";if(n.alignDelimiters!==!1){const B=h[p]-(k[p]||0),A=o[p];A===114?L=" ".repeat(B):A===99?B%2?(L=" ".repeat(B/2+.5),z=" ".repeat(B/2-.5)):(L=" ".repeat(B/2),z=L):z=" ".repeat(B)}n.delimiterStart!==!1&&!p&&w.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&C==="")&&(n.delimiterStart!==!1||p)&&w.push(" "),n.alignDelimiters!==!1&&w.push(L),w.push(C),n.alignDelimiters!==!1&&w.push(z),n.padding!==!1&&w.push(" "),(n.delimiterEnd!==!1||p!==d-1)&&w.push("|")}x.push(n.delimiterEnd===!1?w.join("").replace(/ +$/,""):w.join(""))}return x.join(`
246
- `)}function GD(e){return e==null?"":String(e)}function Bb(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const Ub={}.hasOwnProperty;function FD(e,t){const n=t||{};function i(s,...o){let u=i.invalid;const f=i.handlers;if(s&&Ub.call(s,e)){const h=String(s[e]);u=Ub.call(f,h)?f[h]:i.unknown}if(u)return u.call(this,s,...o)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}function QD(e,t,n,i){const s=n.enter("blockquote"),o=n.createTracker(i);o.move("> "),o.shift(2);const u=n.indentLines(n.containerFlow(e,o.current()),$D);return s(),u}function $D(e,t,n){return">"+(n?"":" ")+e}function YD(e,t){return qb(e,t.inConstruct,!0)&&!qb(e,t.notInConstruct,!1)}function qb(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Vb(e,t,n,i){let s=-1;for(;++s<n.unsafe.length;)if(n.unsafe[s].character===`
247
- `&&YD(n.stack,n.unsafe[s]))return/[ \t]/.test(i.before)?"":" ";return`\\
248
- `}function KD(e,t){const n=String(e);let i=n.indexOf(t),s=i,o=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===s?++o>u&&(u=o):o=1,s=i+t.length,i=n.indexOf(t,s);return u}function XD(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function ZD(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function JD(e,t,n,i){const s=ZD(n),o=e.value||"",u=s==="`"?"GraveAccent":"Tilde";if(XD(e,n)){const p=n.enter("codeIndented"),v=n.indentLines(o,WD);return p(),v}const f=n.createTracker(i),h=s.repeat(Math.max(KD(o,s)+1,3)),d=n.enter("codeFenced");let y=f.move(h);if(e.lang){const p=n.enter(`codeFencedLang${u}`);y+=f.move(n.safe(e.lang,{before:y,after:" ",encode:["`"],...f.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${u}`);y+=f.move(" "),y+=f.move(n.safe(e.meta,{before:y,after:`
243
+ `}),n}function Nb(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function jb(e,t){const n=Bj(e,t),i=n.one(e,void 0),s=Aj(n),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return s&&o.children.push({type:"text",value:`
244
+ `},s),o}function Gj(e,t){return e&&"run"in e?async function(n,i){const s=jb(n,{file:i,...t});await e.run(s,i)}:function(n,i){return jb(n,{file:i,...e||t})}}function Db(e){if(e)throw e}var pm,Mb;function Fj(){if(Mb)return pm;Mb=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(d){return typeof Array.isArray=="function"?Array.isArray(d):t.call(d)==="[object Array]"},o=function(d){if(!d||t.call(d)!=="[object Object]")return!1;var y=e.call(d,"constructor"),p=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!y&&!p)return!1;var v;for(v in d);return typeof v>"u"||e.call(d,v)},u=function(d,y){n&&y.name==="__proto__"?n(d,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):d[y.name]=y.newValue},f=function(d,y){if(y==="__proto__")if(e.call(d,y)){if(i)return i(d,y).value}else return;return d[y]};return pm=function h(){var d,y,p,v,_,b,E=arguments[0],k=1,T=arguments.length,R=!1;for(typeof E=="boolean"&&(R=E,E=arguments[1]||{},k=2),(E==null||typeof E!="object"&&typeof E!="function")&&(E={});k<T;++k)if(d=arguments[k],d!=null)for(y in d)p=f(E,y),v=f(d,y),E!==v&&(R&&v&&(o(v)||(_=s(v)))?(_?(_=!1,b=p&&s(p)?p:[]):b=p&&o(p)?p:{},u(E,{name:y,newValue:h(R,b,v)})):typeof v<"u"&&u(E,{name:y,newValue:v}));return E},pm}var Qj=Fj();const gm=_p(Qj);function lp(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function $j(){const e=[],t={run:n,use:i};return t;function n(...s){let o=-1;const u=s.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);f(null,...s);function f(h,...d){const y=e[++o];let p=-1;if(h){u(h);return}for(;++p<s.length;)(d[p]===null||d[p]===void 0)&&(d[p]=s[p]);s=d,y?Yj(y,f)(...d):u(null,...d)}}function i(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return e.push(s),t}}function Yj(e,t){let n;return i;function i(...u){const f=e.length>u.length;let h;f&&u.push(s);try{h=e.apply(this,u)}catch(d){const y=d;if(f&&n)throw y;return s(y)}f||(h&&h.then&&typeof h.then=="function"?h.then(o,s):h instanceof Error?s(h):o(h))}function s(u,...f){n||(n=!0,t(u,...f))}function o(u){s(null,u)}}const ar={basename:Kj,dirname:Xj,extname:Zj,join:Jj,sep:"/"};function Kj(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Vo(e);let n=0,i=-1,s=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;s--;)if(e.codePointAt(s)===47){if(o){n=s+1;break}}else i<0&&(o=!0,i=s+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let u=-1,f=t.length-1;for(;s--;)if(e.codePointAt(s)===47){if(o){n=s+1;break}}else u<0&&(o=!0,u=s+1),f>-1&&(e.codePointAt(s)===t.codePointAt(f--)?f<0&&(i=s):(f=-1,i=u));return n===i?i=u:i<0&&(i=e.length),e.slice(n,i)}function Xj(e){if(Vo(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Zj(e){Vo(e);let t=e.length,n=-1,i=0,s=-1,o=0,u;for(;t--;){const f=e.codePointAt(t);if(f===47){if(u){i=t+1;break}continue}n<0&&(u=!0,n=t+1),f===46?s<0?s=t:o!==1&&(o=1):s>-1&&(o=-1)}return s<0||n<0||o===0||o===1&&s===n-1&&s===i+1?"":e.slice(s,n)}function Jj(...e){let t=-1,n;for(;++t<e.length;)Vo(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Wj(n)}function Wj(e){Vo(e);const t=e.codePointAt(0)===47;let n=eD(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function eD(e,t){let n="",i=0,s=-1,o=0,u=-1,f,h;for(;++u<=e.length;){if(u<e.length)f=e.codePointAt(u);else{if(f===47)break;f=47}if(f===47){if(!(s===u-1||o===1))if(s!==u-1&&o===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(h=n.lastIndexOf("/"),h!==n.length-1){h<0?(n="",i=0):(n=n.slice(0,h),i=n.length-1-n.lastIndexOf("/")),s=u,o=0;continue}}else if(n.length>0){n="",i=0,s=u,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(s+1,u):n=e.slice(s+1,u),i=u-s-1;s=u,o=0}else f===46&&o>-1?o++:o=-1}return n}function Vo(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tD={cwd:nD};function nD(){return"/"}function op(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function rD(e){if(typeof e=="string")e=new URL(e);else if(!op(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return iD(e)}function iD(e){if(e.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 t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(t)}const ym=["history","path","basename","stem","extname","dirname"];class wS{constructor(t){let n;t?op(t)?n={path:t}:typeof t=="string"||aD(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":tD.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<ym.length;){const o=ym[i];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let s;for(s in n)ym.includes(s)||(this[s]=n[s])}get basename(){return typeof this.path=="string"?ar.basename(this.path):void 0}set basename(t){_m(t,"basename"),vm(t,"basename"),this.path=ar.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ar.dirname(this.path):void 0}set dirname(t){Pb(this.basename,"dirname"),this.path=ar.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ar.extname(this.path):void 0}set extname(t){if(vm(t,"extname"),Pb(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ar.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){op(t)&&(t=rD(t)),_m(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ar.basename(this.path,this.extname):void 0}set stem(t){_m(t,"stem"),vm(t,"stem"),this.path=ar.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const s=this.message(t,n,i);throw s.fatal=!0,s}info(t,n,i){const s=this.message(t,n,i);return s.fatal=void 0,s}message(t,n,i){const s=new Bt(t,n,i);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function vm(e,t){if(e&&e.includes(ar.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ar.sep+"`")}function _m(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Pb(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function aD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const sD=(function(e){const i=this.constructor.prototype,s=i[e],o=function(){return s.apply(o,arguments)};return Object.setPrototypeOf(o,i),o}),lD={}.hasOwnProperty;class Kp extends sD{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=$j()}copy(){const t=new Kp;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(gm(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Sm("data",this.frozen),this.namespace[t]=n,this):lD.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Sm("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=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 s=n.call(t,...i);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=vc(t),i=this.parser||this.Parser;return bm("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),bm("process",this.parser||this.Parser),xm("process",this.compiler||this.Compiler),n?s(void 0,n):new Promise(s);function s(o,u){const f=vc(t),h=i.parse(f);i.run(h,f,function(y,p,v){if(y||!p||!v)return d(y);const _=p,b=i.stringify(_,v);cD(b)?v.value=b:v.result=b,d(y,v)});function d(y,p){y||!p?u(y):o?o(p):n(void 0,p)}}}processSync(t){let n=!1,i;return this.freeze(),bm("processSync",this.parser||this.Parser),xm("processSync",this.compiler||this.Compiler),this.process(t,s),Ib("processSync","process",n),i;function s(o,u){n=!0,Db(o),i=u}}run(t,n,i){zb(t),this.freeze();const s=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?o(void 0,i):new Promise(o);function o(u,f){const h=vc(n);s.run(t,h,d);function d(y,p,v){const _=p||t;y?f(y):u?u(_):i(void 0,_,v)}}}runSync(t,n){let i=!1,s;return this.run(t,n,o),Ib("runSync","run",i),s;function o(u,f){Db(u),s=f,i=!0}}stringify(t,n){this.freeze();const i=vc(n),s=this.compiler||this.Compiler;return xm("stringify",s),zb(t),s(t,i)}use(t,...n){const i=this.attachers,s=this.namespace;if(Sm("use",this.frozen),t!=null)if(typeof t=="function")h(t,n);else if(typeof t=="object")Array.isArray(t)?f(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(d){if(typeof d=="function")h(d,[]);else if(typeof d=="object")if(Array.isArray(d)){const[y,...p]=d;h(y,p)}else u(d);else throw new TypeError("Expected usable value, not `"+d+"`")}function u(d){if(!("plugins"in d)&&!("settings"in d))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");f(d.plugins),d.settings&&(s.settings=gm(!0,s.settings,d.settings))}function f(d){let y=-1;if(d!=null)if(Array.isArray(d))for(;++y<d.length;){const p=d[y];o(p)}else throw new TypeError("Expected a list of plugins, not `"+d+"`")}function h(d,y){let p=-1,v=-1;for(;++p<i.length;)if(i[p][0]===d){v=p;break}if(v===-1)i.push([d,...y]);else if(y.length>0){let[_,...b]=y;const E=i[v][1];lp(E)&&lp(_)&&(_=gm(!0,E,_)),i[v]=[d,_,...b]}}}}const oD=new Kp().freeze();function bm(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function xm(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Sm(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function zb(e){if(!lp(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ib(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function vc(e){return uD(e)?e:new wS(e)}function uD(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function cD(e){return typeof e=="string"||fD(e)}function fD(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const hD="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Bb=[],Ub={allowDangerousHtml:!0},dD=/^(https?|ircs?|mailto|xmpp)$/i,mD=[{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 pD(e){const t=gD(e),n=yD(e);return vD(t.runSync(t.parse(n),n),e)}function gD(e){const t=e.rehypePlugins||Bb,n=e.remarkPlugins||Bb,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ub}:Ub;return oD().use(XN).use(n).use(Gj,i).use(t)}function yD(e){const t=e.children||"",n=new wS;return typeof t=="string"&&(n.value=t),n}function vD(e,t){const n=t.allowedElements,i=t.allowElement,s=t.components,o=t.disallowedElements,u=t.skipHtml,f=t.unwrapDisallowed,h=t.urlTransform||_D;for(const y of mD)Object.hasOwn(t,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+hD+y.id,void 0);return Yp(e,d),jO(e,{Fragment:S.Fragment,components:s,ignoreInvalidStyle:!0,jsx:S.jsx,jsxs:S.jsxs,passKeys:!0,passNode:!0});function d(y,p,v){if(y.type==="raw"&&v&&typeof p=="number")return u?v.children.splice(p,1):v.children[p]={type:"text",value:y.value},p;if(y.type==="element"){let _;for(_ in hm)if(Object.hasOwn(hm,_)&&Object.hasOwn(y.properties,_)){const b=y.properties[_],E=hm[_];(E===null||E.includes(y.tagName))&&(y.properties[_]=h(String(b||""),_,y))}}if(y.type==="element"){let _=n?!n.includes(y.tagName):o?o.includes(y.tagName):!1;if(!_&&i&&typeof p=="number"&&(_=!i(y,p,v)),_&&v&&typeof p=="number")return f&&y.children?v.children.splice(p,1,...y.children):v.children.splice(p,1),p}}}function _D(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),s=e.indexOf("/");return t===-1||s!==-1&&t>s||n!==-1&&t>n||i!==-1&&t>i||dD.test(e.slice(0,t))?e:""}function Yc(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,s=n.indexOf(t);for(;s!==-1;)i++,s=n.indexOf(t,s+t.length);return i}function bD(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function xD(e,t,n){const s=Sf((n||{}).ignore||[]),o=SD(t);let u=-1;for(;++u<o.length;)ES(e,"text",f);function f(d,y){let p=-1,v;for(;++p<y.length;){const _=y[p],b=v?v.children:void 0;if(s(_,b?b.indexOf(_):void 0,v))return;v=_}if(v)return h(d,y)}function h(d,y){const p=y[y.length-1],v=o[u][0],_=o[u][1];let b=0;const k=p.children.indexOf(d);let T=!1,R=[];v.lastIndex=0;let L=v.exec(d.value);for(;L;){const z=L.index,V={index:L.index,input:L.input,stack:[...y,d]};let O=_(...L,V);if(typeof O=="string"&&(O=O.length>0?{type:"text",value:O}:void 0),O===!1?v.lastIndex=z+1:(b!==z&&R.push({type:"text",value:d.value.slice(b,z)}),Array.isArray(O)?R.push(...O):O&&R.push(O),b=z+L[0].length,T=!0),!v.global)break;L=v.exec(d.value)}return T?(b<d.value.length&&R.push({type:"text",value:d.value.slice(b)}),p.children.splice(k,1,...R)):R=[d],k+R.length}}function SD(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<n.length;){const s=n[i];t.push([ED(s[0]),wD(s[1])])}return t}function ED(e){return typeof e=="string"?new RegExp(bD(e),"g"):e}function wD(e){return typeof e=="function"?e:function(){return e}}const Em="phrasing",wm=["autolink","link","image","label"];function TD(){return{transforms:[ND],enter:{literalAutolink:CD,literalAutolinkEmail:Tm,literalAutolinkHttp:Tm,literalAutolinkWww:Tm},exit:{literalAutolink:LD,literalAutolinkEmail:OD,literalAutolinkHttp:RD,literalAutolinkWww:AD}}}function kD(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Em,notInConstruct:wm},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Em,notInConstruct:wm},{character:":",before:"[ps]",after:"\\/",inConstruct:Em,notInConstruct:wm}]}}function CD(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Tm(e){this.config.enter.autolinkProtocol.call(this,e)}function RD(e){this.config.exit.autolinkProtocol.call(this,e)}function AD(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function OD(e){this.config.exit.autolinkEmail.call(this,e)}function LD(e){this.exit(e)}function ND(e){xD(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,jD],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),DD]],{ignore:["link","linkReference"]})}function jD(e,t,n,i,s){let o="";if(!TS(s)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!MD(n)))return!1;const u=PD(n+i);if(!u[0])return!1;const f={type:"link",title:null,url:o+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[f,{type:"text",value:u[1]}]:f}function DD(e,t,n,i){return!TS(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function MD(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function PD(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const s=Yc(e,"(");let o=Yc(e,")");for(;i!==-1&&s>o;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),o++;return[e,n]}function TS(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ra(n)||_f(n))&&(!t||n!==47)}kS.peek=FD;function zD(){this.buffer()}function ID(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function BD(){this.buffer()}function UD(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function qD(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Zn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function VD(e){this.exit(e)}function HD(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Zn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function GD(e){this.exit(e)}function FD(){return"["}function kS(e,t,n,i){const s=n.createTracker(i);let o=s.move("[^");const u=n.enter("footnoteReference"),f=n.enter("reference");return o+=s.move(n.safe(n.associationId(e),{after:"]",before:o})),f(),u(),o+=s.move("]"),o}function QD(){return{enter:{gfmFootnoteCallString:zD,gfmFootnoteCall:ID,gfmFootnoteDefinitionLabelString:BD,gfmFootnoteDefinition:UD},exit:{gfmFootnoteCallString:qD,gfmFootnoteCall:VD,gfmFootnoteDefinitionLabelString:HD,gfmFootnoteDefinition:GD}}}function $D(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:kS},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,s,o,u){const f=o.createTracker(u);let h=f.move("[^");const d=o.enter("footnoteDefinition"),y=o.enter("label");return h+=f.move(o.safe(o.associationId(i),{before:h,after:"]"})),y(),h+=f.move("]:"),i.children&&i.children.length>0&&(f.shift(4),h+=f.move((t?`
245
+ `:" ")+o.indentLines(o.containerFlow(i,f.current()),t?CS:YD))),d(),h}}function YD(e,t,n){return t===0?e:CS(e,t,n)}function CS(e,t,n){return(n?"":" ")+e}const KD=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];RS.peek=eM;function XD(){return{canContainEols:["delete"],enter:{strikethrough:JD},exit:{strikethrough:WD}}}function ZD(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:KD}],handlers:{delete:RS}}}function JD(e){this.enter({type:"delete",children:[]},e)}function WD(e){this.exit(e)}function RS(e,t,n,i){const s=n.createTracker(i),o=n.enter("strikethrough");let u=s.move("~~");return u+=n.containerPhrasing(e,{...s.current(),before:u,after:"~"}),u+=s.move("~~"),o(),u}function eM(){return"~"}function tM(e){return e.length}function nM(e,t){const n=t||{},i=(n.align||[]).concat(),s=n.stringLength||tM,o=[],u=[],f=[],h=[];let d=0,y=-1;for(;++y<e.length;){const E=[],k=[];let T=-1;for(e[y].length>d&&(d=e[y].length);++T<e[y].length;){const R=rM(e[y][T]);if(n.alignDelimiters!==!1){const L=s(R);k[T]=L,(h[T]===void 0||L>h[T])&&(h[T]=L)}E.push(R)}u[y]=E,f[y]=k}let p=-1;if(typeof i=="object"&&"length"in i)for(;++p<d;)o[p]=qb(i[p]);else{const E=qb(i);for(;++p<d;)o[p]=E}p=-1;const v=[],_=[];for(;++p<d;){const E=o[p];let k="",T="";E===99?(k=":",T=":"):E===108?k=":":E===114&&(T=":");let R=n.alignDelimiters===!1?1:Math.max(1,h[p]-k.length-T.length);const L=k+"-".repeat(R)+T;n.alignDelimiters!==!1&&(R=k.length+R+T.length,R>h[p]&&(h[p]=R),_[p]=R),v[p]=L}u.splice(1,0,v),f.splice(1,0,_),y=-1;const b=[];for(;++y<u.length;){const E=u[y],k=f[y];p=-1;const T=[];for(;++p<d;){const R=E[p]||"";let L="",z="";if(n.alignDelimiters!==!1){const V=h[p]-(k[p]||0),O=o[p];O===114?L=" ".repeat(V):O===99?V%2?(L=" ".repeat(V/2+.5),z=" ".repeat(V/2-.5)):(L=" ".repeat(V/2),z=L):z=" ".repeat(V)}n.delimiterStart!==!1&&!p&&T.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&R==="")&&(n.delimiterStart!==!1||p)&&T.push(" "),n.alignDelimiters!==!1&&T.push(L),T.push(R),n.alignDelimiters!==!1&&T.push(z),n.padding!==!1&&T.push(" "),(n.delimiterEnd!==!1||p!==d-1)&&T.push("|")}b.push(n.delimiterEnd===!1?T.join("").replace(/ +$/,""):T.join(""))}return b.join(`
246
+ `)}function rM(e){return e==null?"":String(e)}function qb(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const Vb={}.hasOwnProperty;function iM(e,t){const n=t||{};function i(s,...o){let u=i.invalid;const f=i.handlers;if(s&&Vb.call(s,e)){const h=String(s[e]);u=Vb.call(f,h)?f[h]:i.unknown}if(u)return u.call(this,s,...o)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}function aM(e,t,n,i){const s=n.enter("blockquote"),o=n.createTracker(i);o.move("> "),o.shift(2);const u=n.indentLines(n.containerFlow(e,o.current()),sM);return s(),u}function sM(e,t,n){return">"+(n?"":" ")+e}function lM(e,t){return Hb(e,t.inConstruct,!0)&&!Hb(e,t.notInConstruct,!1)}function Hb(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Gb(e,t,n,i){let s=-1;for(;++s<n.unsafe.length;)if(n.unsafe[s].character===`
247
+ `&&lM(n.stack,n.unsafe[s]))return/[ \t]/.test(i.before)?"":" ";return`\\
248
+ `}function oM(e,t){const n=String(e);let i=n.indexOf(t),s=i,o=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===s?++o>u&&(u=o):o=1,s=i+t.length,i=n.indexOf(t,s);return u}function uM(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function cM(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function fM(e,t,n,i){const s=cM(n),o=e.value||"",u=s==="`"?"GraveAccent":"Tilde";if(uM(e,n)){const p=n.enter("codeIndented"),v=n.indentLines(o,hM);return p(),v}const f=n.createTracker(i),h=s.repeat(Math.max(oM(o,s)+1,3)),d=n.enter("codeFenced");let y=f.move(h);if(e.lang){const p=n.enter(`codeFencedLang${u}`);y+=f.move(n.safe(e.lang,{before:y,after:" ",encode:["`"],...f.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${u}`);y+=f.move(" "),y+=f.move(n.safe(e.meta,{before:y,after:`
249
249
  `,encode:["`"],...f.current()})),p()}return y+=f.move(`
250
250
  `),o&&(y+=f.move(o+`
251
- `)),y+=f.move(h),d(),y}function WD(e,t,n){return(n?"":" ")+e}function Yp(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function eM(e,t,n,i){const s=Yp(n),o=s==='"'?"Quote":"Apostrophe",u=n.enter("definition");let f=n.enter("label");const h=n.createTracker(i);let d=h.move("[");return d+=h.move(n.safe(n.associationId(e),{before:d,after:"]",...h.current()})),d+=h.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(n.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=n.enter("destinationRaw"),d+=h.move(n.safe(e.url,{before:d,after:e.title?" ":`
252
- `,...h.current()}))),f(),e.title&&(f=n.enter(`title${o}`),d+=h.move(" "+s),d+=h.move(n.safe(e.title,{before:d,after:s,...h.current()})),d+=h.move(s),f()),u(),d}function tM(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function wo(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Yc(e,t,n){const i=Xs(e),s=Xs(t);return i===void 0?s===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}CS.peek=nM;function CS(e,t,n,i){const s=tM(n),o=n.enter("emphasis"),u=n.createTracker(i),f=u.move(s);let h=u.move(n.containerPhrasing(e,{after:s,before:f,...u.current()}));const d=h.charCodeAt(0),y=Yc(i.before.charCodeAt(i.before.length-1),d,s);y.inside&&(h=wo(d)+h.slice(1));const p=h.charCodeAt(h.length-1),v=Yc(i.after.charCodeAt(0),p,s);v.inside&&(h=h.slice(0,-1)+wo(p));const _=u.move(s);return o(),n.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},f+h+_}function nM(e,t,n){return n.options.emphasis||"*"}function rM(e,t){let n=!1;return Qp(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,ip}),!!((!e.depth||e.depth<3)&&Bp(e)&&(t.options.setext||n))}function iM(e,t,n,i){const s=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(i);if(rM(e,n)){const y=n.enter("headingSetext"),p=n.enter("phrasing"),v=n.containerPhrasing(e,{...o.current(),before:`
251
+ `)),y+=f.move(h),d(),y}function hM(e,t,n){return(n?"":" ")+e}function Xp(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function dM(e,t,n,i){const s=Xp(n),o=s==='"'?"Quote":"Apostrophe",u=n.enter("definition");let f=n.enter("label");const h=n.createTracker(i);let d=h.move("[");return d+=h.move(n.safe(n.associationId(e),{before:d,after:"]",...h.current()})),d+=h.move("]: "),f(),!e.url||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(n.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=n.enter("destinationRaw"),d+=h.move(n.safe(e.url,{before:d,after:e.title?" ":`
252
+ `,...h.current()}))),f(),e.title&&(f=n.enter(`title${o}`),d+=h.move(" "+s),d+=h.move(n.safe(e.title,{before:d,after:s,...h.current()})),d+=h.move(s),f()),u(),d}function mM(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function To(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Kc(e,t,n){const i=Zs(e),s=Zs(t);return i===void 0?s===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:s===void 0?{inside:!1,outside:!1}:s===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}AS.peek=pM;function AS(e,t,n,i){const s=mM(n),o=n.enter("emphasis"),u=n.createTracker(i),f=u.move(s);let h=u.move(n.containerPhrasing(e,{after:s,before:f,...u.current()}));const d=h.charCodeAt(0),y=Kc(i.before.charCodeAt(i.before.length-1),d,s);y.inside&&(h=To(d)+h.slice(1));const p=h.charCodeAt(h.length-1),v=Kc(i.after.charCodeAt(0),p,s);v.inside&&(h=h.slice(0,-1)+To(p));const _=u.move(s);return o(),n.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},f+h+_}function pM(e,t,n){return n.options.emphasis||"*"}function gM(e,t){let n=!1;return Yp(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,ap}),!!((!e.depth||e.depth<3)&&qp(e)&&(t.options.setext||n))}function yM(e,t,n,i){const s=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(i);if(gM(e,n)){const y=n.enter("headingSetext"),p=n.enter("phrasing"),v=n.containerPhrasing(e,{...o.current(),before:`
253
253
  `,after:`
254
254
  `});return p(),y(),v+`
255
255
  `+(s===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
256
256
  `))+1))}const u="#".repeat(s),f=n.enter("headingAtx"),h=n.enter("phrasing");o.move(u+" ");let d=n.containerPhrasing(e,{before:"# ",after:`
257
- `,...o.current()});return/^[\t ]/.test(d)&&(d=wo(d.charCodeAt(0))+d.slice(1)),d=d?u+" "+d:u,n.options.closeAtx&&(d+=" "+u),h(),f(),d}RS.peek=aM;function RS(e){return e.value||""}function aM(){return"<"}AS.peek=sM;function AS(e,t,n,i){const s=Yp(n),o=s==='"'?"Quote":"Apostrophe",u=n.enter("image");let f=n.enter("label");const h=n.createTracker(i);let d=h.move("![");return d+=h.move(n.safe(e.alt,{before:d,after:"]",...h.current()})),d+=h.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(n.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=n.enter("destinationRaw"),d+=h.move(n.safe(e.url,{before:d,after:e.title?" ":")",...h.current()}))),f(),e.title&&(f=n.enter(`title${o}`),d+=h.move(" "+s),d+=h.move(n.safe(e.title,{before:d,after:s,...h.current()})),d+=h.move(s),f()),d+=h.move(")"),u(),d}function sM(){return"!"}OS.peek=lM;function OS(e,t,n,i){const s=e.referenceType,o=n.enter("imageReference");let u=n.enter("label");const f=n.createTracker(i);let h=f.move("![");const d=n.safe(e.alt,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),u();const y=n.stack;n.stack=[],u=n.enter("reference");const p=n.safe(n.associationId(e),{before:h,after:"]",...f.current()});return u(),n.stack=y,o(),s==="full"||!d||d!==p?h+=f.move(p+"]"):s==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function lM(){return"!"}LS.peek=oM;function LS(e,t,n){let i=e.value||"",s="`",o=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(i);)s+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++o<n.unsafe.length;){const u=n.unsafe[o],f=n.compilePattern(u);let h;if(u.atBreak)for(;h=f.exec(i);){let d=h.index;i.charCodeAt(d)===10&&i.charCodeAt(d-1)===13&&d--,i=i.slice(0,d)+" "+i.slice(h.index+1)}}return s+i+s}function oM(){return"`"}function NS(e,t){const n=Bp(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}jS.peek=uM;function jS(e,t,n,i){const s=Yp(n),o=s==='"'?"Quote":"Apostrophe",u=n.createTracker(i);let f,h;if(NS(e,n)){const y=n.stack;n.stack=[],f=n.enter("autolink");let p=u.move("<");return p+=u.move(n.containerPhrasing(e,{before:p,after:">",...u.current()})),p+=u.move(">"),f(),n.stack=y,p}f=n.enter("link"),h=n.enter("label");let d=u.move("[");return d+=u.move(n.containerPhrasing(e,{before:d,after:"](",...u.current()})),d+=u.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(h=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":")",...u.current()}))),h(),e.title&&(h=n.enter(`title${o}`),d+=u.move(" "+s),d+=u.move(n.safe(e.title,{before:d,after:s,...u.current()})),d+=u.move(s),h()),d+=u.move(")"),f(),d}function uM(e,t,n){return NS(e,n)?"<":"["}DS.peek=cM;function DS(e,t,n,i){const s=e.referenceType,o=n.enter("linkReference");let u=n.enter("label");const f=n.createTracker(i);let h=f.move("[");const d=n.containerPhrasing(e,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),u();const y=n.stack;n.stack=[],u=n.enter("reference");const p=n.safe(n.associationId(e),{before:h,after:"]",...f.current()});return u(),n.stack=y,o(),s==="full"||!d||d!==p?h+=f.move(p+"]"):s==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function cM(){return"["}function Kp(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function fM(e){const t=Kp(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function hM(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function MS(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function dM(e,t,n,i){const s=n.enter("list"),o=n.bulletCurrent;let u=e.ordered?hM(n):Kp(n);const f=e.ordered?u==="."?")":".":fM(n);let h=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&y&&(!y.children||!y.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&&(h=!0),MS(n)===u&&y){let p=-1;for(;++p<e.children.length;){const v=e.children[p];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(u=f),n.bulletCurrent=u;const d=n.containerFlow(e,i);return n.bulletLastUsed=u,n.bulletCurrent=o,s(),d}function mM(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function pM(e,t,n,i){const s=mM(n);let o=n.bulletCurrent||Kp(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let u=o.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const f=n.createTracker(i);f.move(o+" ".repeat(u-o.length)),f.shift(u);const h=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,f.current()),y);return h(),d;function y(p,v,_){return v?(_?"":" ".repeat(u))+p:(_?o:o+" ".repeat(u-o.length))+p}}function gM(e,t,n,i){const s=n.enter("paragraph"),o=n.enter("phrasing"),u=n.containerPhrasing(e,i);return o(),s(),u}const yM=Sf(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function vM(e,t,n,i){return(e.children.some(function(u){return yM(u)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function _M(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}PS.peek=bM;function PS(e,t,n,i){const s=_M(n),o=n.enter("strong"),u=n.createTracker(i),f=u.move(s+s);let h=u.move(n.containerPhrasing(e,{after:s,before:f,...u.current()}));const d=h.charCodeAt(0),y=Yc(i.before.charCodeAt(i.before.length-1),d,s);y.inside&&(h=wo(d)+h.slice(1));const p=h.charCodeAt(h.length-1),v=Yc(i.after.charCodeAt(0),p,s);v.inside&&(h=h.slice(0,-1)+wo(p));const _=u.move(s+s);return o(),n.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},f+h+_}function bM(e,t,n){return n.options.strong||"*"}function xM(e,t,n,i){return n.safe(e.value,i)}function SM(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function EM(e,t,n){const i=(MS(n)+(n.options.ruleSpaces?" ":"")).repeat(SM(n));return n.options.ruleSpaces?i.slice(0,-1):i}const zS={blockquote:QD,break:Vb,code:JD,definition:eM,emphasis:CS,hardBreak:Vb,heading:iM,html:RS,image:AS,imageReference:OS,inlineCode:LS,link:jS,linkReference:DS,list:dM,listItem:pM,paragraph:gM,root:vM,strong:PS,text:xM,thematicBreak:EM};function wM(){return{enter:{table:TM,tableData:Hb,tableHeader:Hb,tableRow:CM},exit:{codeText:RM,table:kM,tableData:Tm,tableHeader:Tm,tableRow:Tm}}}function TM(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function kM(e){this.exit(e),this.data.inTable=void 0}function CM(e){this.enter({type:"tableRow",children:[]},e)}function Tm(e){this.exit(e)}function Hb(e){this.enter({type:"tableCell",children:[]},e)}function RM(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,AM));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function AM(e,t){return t==="|"?t:e}function OM(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,s=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
258
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:h,tableRow:f}};function u(_,x,E,k){return d(y(_,E,k),_.align)}function f(_,x,E,k){const w=p(_,E,k),C=d([w]);return C.slice(0,C.indexOf(`
259
- `))}function h(_,x,E,k){const w=E.enter("tableCell"),C=E.enter("phrasing"),L=E.containerPhrasing(_,{...k,before:o,after:o});return C(),w(),L}function d(_,x){return HD(_,{align:x,alignDelimiters:i,padding:n,stringLength:s})}function y(_,x,E){const k=_.children;let w=-1;const C=[],L=x.enter("table");for(;++w<k.length;)C[w]=p(k[w],x,E);return L(),C}function p(_,x,E){const k=_.children;let w=-1;const C=[],L=x.enter("tableRow");for(;++w<k.length;)C[w]=h(k[w],_,x,E);return L(),C}function v(_,x,E){let k=zS.inlineCode(_,x,E);return E.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function LM(){return{exit:{taskListCheckValueChecked:Gb,taskListCheckValueUnchecked:Gb,paragraph:jM}}}function NM(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:DM}}}function Gb(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function jM(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const s=t.children;let o=-1,u;for(;++o<s.length;){const f=s[o];if(f.type==="paragraph"){u=f;break}}u===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(e)}function DM(e,t,n,i){const s=e.children[0],o=typeof e.checked=="boolean"&&s&&s.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",f=n.createTracker(i);o&&f.move(u);let h=zS.listItem(e,t,n,{...i,...f.current()});return o&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),h;function d(y){return y+u}}function MM(){return[hD(),jD(),zD(),wM(),LM()]}function PM(e){return{extensions:[dD(),DD(e),ID(),OM(e),NM()]}}const zM={tokenize:HM,partial:!0},IS={tokenize:GM,partial:!0},BS={tokenize:FM,partial:!0},US={tokenize:QM,partial:!0},IM={tokenize:$M,partial:!0},qS={name:"wwwAutolink",tokenize:qM,previous:HS},VS={name:"protocolAutolink",tokenize:VM,previous:GS},Qr={name:"emailAutolink",tokenize:UM,previous:FS},fr={};function BM(){return{text:fr}}let aa=48;for(;aa<123;)fr[aa]=Qr,aa++,aa===58?aa=65:aa===91&&(aa=97);fr[43]=Qr;fr[45]=Qr;fr[46]=Qr;fr[95]=Qr;fr[72]=[Qr,VS];fr[104]=[Qr,VS];fr[87]=[Qr,qS];fr[119]=[Qr,qS];function UM(e,t,n){const i=this;let s,o;return u;function u(p){return!op(p)||!FS.call(i,i.previous)||Xp(i.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(p))}function f(p){return op(p)?(e.consume(p),f):p===64?(e.consume(p),h):n(p)}function h(p){return p===46?e.check(IM,y,d)(p):p===45||p===95||It(p)?(o=!0,e.consume(p),h):y(p)}function d(p){return e.consume(p),s=!0,h}function y(p){return o&&s&&Qt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function qM(e,t,n){const i=this;return s;function s(u){return u!==87&&u!==119||!HS.call(i,i.previous)||Xp(i.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(zM,e.attempt(IS,e.attempt(BS,o),n),n)(u))}function o(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function VM(e,t,n){const i=this;let s="",o=!1;return u;function u(p){return(p===72||p===104)&&GS.call(i,i.previous)&&!Xp(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(p),e.consume(p),f):n(p)}function f(p){if(Qt(p)&&s.length<5)return s+=String.fromCodePoint(p),e.consume(p),f;if(p===58){const v=s.toLowerCase();if(v==="http"||v==="https")return e.consume(p),h}return n(p)}function h(p){return p===47?(e.consume(p),o?d:(o=!0,h)):n(p)}function d(p){return p===null||Gc(p)||tt(p)||Ra(p)||_f(p)?n(p):e.attempt(IS,e.attempt(BS,y),n)(p)}function y(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function HM(e,t,n){let i=0;return s;function s(u){return(u===87||u===119)&&i<3?(i++,e.consume(u),s):u===46&&i===3?(e.consume(u),o):n(u)}function o(u){return u===null?n(u):t(u)}}function GM(e,t,n){let i,s,o;return u;function u(d){return d===46||d===95?e.check(US,h,f)(d):d===null||tt(d)||Ra(d)||d!==45&&_f(d)?h(d):(o=!0,e.consume(d),u)}function f(d){return d===95?i=!0:(s=i,i=void 0),e.consume(d),u}function h(d){return s||i||!o?n(d):t(d)}}function FM(e,t){let n=0,i=0;return s;function s(u){return u===40?(n++,e.consume(u),s):u===41&&i<n?o(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(US,t,o)(u):u===null||tt(u)||Ra(u)?t(u):(e.consume(u),s)}function o(u){return u===41&&i++,e.consume(u),s}}function QM(e,t,n){return i;function i(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),i):f===38?(e.consume(f),o):f===93?(e.consume(f),s):f===60||f===null||tt(f)||Ra(f)?t(f):n(f)}function s(f){return f===null||f===40||f===91||tt(f)||Ra(f)?t(f):i(f)}function o(f){return Qt(f)?u(f):n(f)}function u(f){return f===59?(e.consume(f),i):Qt(f)?(e.consume(f),u):n(f)}}function $M(e,t,n){return i;function i(o){return e.consume(o),s}function s(o){return It(o)?n(o):t(o)}}function HS(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||tt(e)}function GS(e){return!Qt(e)}function FS(e){return!(e===47||op(e))}function op(e){return e===43||e===45||e===46||e===95||It(e)}function Xp(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const YM={tokenize:nP,partial:!0};function KM(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:WM,continuation:{tokenize:eP},exit:tP}},text:{91:{name:"gfmFootnoteCall",tokenize:JM},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:XM,resolveTo:ZM}}}}function XM(e,t,n){const i=this;let s=i.events.length;const o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u;for(;s--;){const h=i.events[s][1];if(h.type==="labelImage"){u=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!u||!u._balanced)return n(h);const d=Zn(i.sliceSerialize({start:u.end,end:i.now()}));return d.codePointAt(0)!==94||!o.includes(d.slice(1))?n(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function ZM(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},f=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",u,t],["exit",u,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...f),e}function JM(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o=0,u;return f;function f(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),h}function h(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(p){if(o>999||p===93&&!u||p===null||p===91||tt(p))return n(p);if(p===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return s.includes(Zn(i.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return tt(p)||(u=!0),o++,e.consume(p),p===92?y:d}function y(p){return p===91||p===92||p===93?(e.consume(p),o++,d):d(p)}}function WM(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o,u=0,f;return h;function h(x){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(x){return x===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):n(x)}function y(x){if(u>999||x===93&&!f||x===null||x===91||tt(x))return n(x);if(x===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return o=Zn(i.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(x),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return tt(x)||(f=!0),u++,e.consume(x),x===92?p:y}function p(x){return x===91||x===92||x===93?(e.consume(x),u++,y):y(x)}function v(x){return x===58?(e.enter("definitionMarker"),e.consume(x),e.exit("definitionMarker"),s.includes(o)||s.push(o),Ie(e,_,"gfmFootnoteDefinitionWhitespace")):n(x)}function _(x){return t(x)}}function eP(e,t,n){return e.check(qo,t,e.attempt(YM,t,n))}function tP(e){e.exit("gfmFootnoteDefinition")}function nP(e,t,n){const i=this;return Ie(e,s,"gfmFootnoteDefinitionIndent",5);function s(o){const u=i.events[i.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(o):n(o)}}function rP(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:o,resolveAll:s};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function s(u,f){let h=-1;for(;++h<u.length;)if(u[h][0]==="enter"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._close){let d=h;for(;d--;)if(u[d][0]==="exit"&&u[d][1].type==="strikethroughSequenceTemporary"&&u[d][1]._open&&u[h][1].end.offset-u[h][1].start.offset===u[d][1].end.offset-u[d][1].start.offset){u[h][1].type="strikethroughSequence",u[d][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},u[d][1].start),end:Object.assign({},u[h][1].end)},p={type:"strikethroughText",start:Object.assign({},u[d][1].end),end:Object.assign({},u[h][1].start)},v=[["enter",y,f],["enter",u[d][1],f],["exit",u[d][1],f],["enter",p,f]],_=f.parser.constructs.insideSpan.null;_&&bn(v,v.length,0,bf(_,u.slice(d+1,h),f)),bn(v,v.length,0,[["exit",p,f],["enter",u[h][1],f],["exit",u[h][1],f],["exit",y,f]]),bn(u,d-1,h-d+3,v),h=d+v.length-2;break}}for(h=-1;++h<u.length;)u[h][1].type==="strikethroughSequenceTemporary"&&(u[h][1].type="data");return u}function o(u,f,h){const d=this.previous,y=this.events;let p=0;return v;function v(x){return d===126&&y[y.length-1][1].type!=="characterEscape"?h(x):(u.enter("strikethroughSequenceTemporary"),_(x))}function _(x){const E=Xs(d);if(x===126)return p>1?h(x):(u.consume(x),p++,_);if(p<2&&!n)return h(x);const k=u.exit("strikethroughSequenceTemporary"),w=Xs(x);return k._open=!w||w===2&&!!E,k._close=!E||E===2&&!!w,f(x)}}}class iP{constructor(){this.map=[]}add(t,n,i){aP(this,t,n,i)}consume(t){if(this.map.sort(function(o,u){return o[0]-u[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let s=i.pop();for(;s;){for(const o of s)t.push(o);s=i.pop()}this.map.length=0}}function aP(e,t,n,i){let s=0;if(!(n===0&&i.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=n,e.map[s][2].push(...i);return}s+=1}e.map.push([t,n,i])}}function sP(e,t){let n=!1;const i=[];for(;t<e.length;){const s=e[t];if(n){if(s[0]==="enter")s[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=i.length-1;i[o]=i[o]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function lP(){return{flow:{null:{name:"table",tokenize:oP,resolveAll:uP}}}}function oP(e,t,n){const i=this;let s=0,o=0,u;return f;function f(N){let Q=i.events.length-1;for(;Q>-1;){const le=i.events[Q][1].type;if(le==="lineEnding"||le==="linePrefix")Q--;else break}const re=Q>-1?i.events[Q][1].type:null,me=re==="tableHead"||re==="tableRow"?A:h;return me===A&&i.parser.lazy[i.now().line]?n(N):me(N)}function h(N){return e.enter("tableHead"),e.enter("tableRow"),d(N)}function d(N){return N===124||(u=!0,o+=1),y(N)}function y(N){return N===null?n(N):_e(N)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),_):n(N):Ne(N)?Ie(e,y,"whitespace")(N):(o+=1,u&&(u=!1,s+=1),N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),u=!0,y):(e.enter("data"),p(N)))}function p(N){return N===null||N===124||tt(N)?(e.exit("data"),y(N)):(e.consume(N),N===92?v:p)}function v(N){return N===92||N===124?(e.consume(N),p):p(N)}function _(N){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(N):(e.enter("tableDelimiterRow"),u=!1,Ne(N)?Ie(e,x,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):x(N))}function x(N){return N===45||N===58?k(N):N===124?(u=!0,e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),E):B(N)}function E(N){return Ne(N)?Ie(e,k,"whitespace")(N):k(N)}function k(N){return N===58?(o+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),w):N===45?(o+=1,w(N)):N===null||_e(N)?z(N):B(N)}function w(N){return N===45?(e.enter("tableDelimiterFiller"),C(N)):B(N)}function C(N){return N===45?(e.consume(N),C):N===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),L):(e.exit("tableDelimiterFiller"),L(N))}function L(N){return Ne(N)?Ie(e,z,"whitespace")(N):z(N)}function z(N){return N===124?x(N):N===null||_e(N)?!u||s!==o?B(N):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(N)):B(N)}function B(N){return n(N)}function A(N){return e.enter("tableRow"),q(N)}function q(N){return N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),q):N===null||_e(N)?(e.exit("tableRow"),t(N)):Ne(N)?Ie(e,q,"whitespace")(N):(e.enter("data"),$(N))}function $(N){return N===null||N===124||tt(N)?(e.exit("data"),q(N)):(e.consume(N),N===92?ne:$)}function ne(N){return N===92||N===124?(e.consume(N),$):$(N)}}function uP(e,t){let n=-1,i=!0,s=0,o=[0,0,0,0],u=[0,0,0,0],f=!1,h=0,d,y,p;const v=new iP;for(;++n<e.length;){const _=e[n],x=_[1];_[0]==="enter"?x.type==="tableHead"?(f=!1,h!==0&&(Fb(v,t,h,d,y),y=void 0,h=0),d={type:"table",start:Object.assign({},x.start),end:Object.assign({},x.end)},v.add(n,0,[["enter",d,t]])):x.type==="tableRow"||x.type==="tableDelimiterRow"?(i=!0,p=void 0,o=[0,0,0,0],u=[0,n+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},x.start),end:Object.assign({},x.end)},v.add(n,0,[["enter",y,t]])),s=x.type==="tableDelimiterRow"?2:y?3:1):s&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")?(i=!1,u[2]===0&&(o[1]!==0&&(u[0]=u[1],p=_c(v,t,o,s,void 0,p),o=[0,0,0,0]),u[2]=n)):x.type==="tableCellDivider"&&(i?i=!1:(o[1]!==0&&(u[0]=u[1],p=_c(v,t,o,s,void 0,p)),o=u,u=[o[1],n,0,0])):x.type==="tableHead"?(f=!0,h=n):x.type==="tableRow"||x.type==="tableDelimiterRow"?(h=n,o[1]!==0?(u[0]=u[1],p=_c(v,t,o,s,n,p)):u[1]!==0&&(p=_c(v,t,u,s,n,p)),s=0):s&&(x.type==="data"||x.type==="tableDelimiterMarker"||x.type==="tableDelimiterFiller")&&(u[3]=n)}for(h!==0&&Fb(v,t,h,d,y),v.consume(t.events),n=-1;++n<t.events.length;){const _=t.events[n];_[0]==="enter"&&_[1].type==="table"&&(_[1]._align=sP(t.events,n))}return e}function _c(e,t,n,i,s,o){const u=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",f="tableContent";n[0]!==0&&(o.end=Object.assign({},As(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const h=As(t.events,n[1]);if(o={type:u,start:Object.assign({},h),end:Object.assign({},h)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const d=As(t.events,n[2]),y=As(t.events,n[3]),p={type:f,start:Object.assign({},d),end:Object.assign({},y)};if(e.add(n[2],0,[["enter",p,t]]),i!==2){const v=t.events[n[2]],_=t.events[n[3]];if(v[1].end=Object.assign({},_[1].end),v[1].type="chunkText",v[1].contentType="text",n[3]>n[2]+1){const x=n[2]+1,E=n[3]-n[2]-1;e.add(x,E,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return s!==void 0&&(o.end=Object.assign({},As(t.events,s)),e.add(s,0,[["exit",o,t]]),o=void 0),o}function Fb(e,t,n,i,s){const o=[],u=As(t.events,n);s&&(s.end=Object.assign({},u),o.push(["exit",s,t])),i.end=Object.assign({},u),o.push(["exit",i,t]),e.add(n+1,0,o)}function As(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const cP={name:"tasklistCheck",tokenize:hP};function fP(){return{text:{91:cP}}}function hP(e,t,n){const i=this;return s;function s(h){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),o)}function o(h){return tt(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),u):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),u):n(h)}function u(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):n(h)}function f(h){return _e(h)?t(h):Ne(h)?e.check({tokenize:dP},t,n)(h):n(h)}}function dP(e,t,n){return Ie(e,i,"whitespace");function i(s){return s===null?n(s):t(s)}}function mP(e){return nS([BM(),KM(),rP(e),lP(),fP()])}const pP={};function gP(e){const t=this,n=e||pP,i=t.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(mP(n)),o.push(MM()),u.push(PM(n))}const yP="modulepreload",vP=function(e){return"/"+e},Qb={},R=function(t,n,i){let s=Promise.resolve();if(n&&n.length>0){let u=function(d){return Promise.all(d.map(y=>Promise.resolve(y).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),h=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));s=u(n.map(d=>{if(d=vP(d),d in Qb)return;Qb[d]=!0;const y=d.endsWith(".css"),p=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${p}`))return;const v=document.createElement("link");if(v.rel=y?"stylesheet":yP,y||(v.as="script"),v.crossOrigin="",v.href=d,h&&v.setAttribute("nonce",h),document.head.appendChild(v),y)return new Promise((_,x)=>{v.addEventListener("load",_),v.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return s.then(u=>{for(const f of u||[])f.status==="rejected"&&o(f.reason);return t().catch(o)})};let vt=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function _P(e){return Zp(e)}function Zp(e){return Array.isArray(e)?bP(e):e instanceof RegExp?e:typeof e=="object"?xP(e):e}function bP(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=Zp(e[n]);return t}function xP(e){let t={};for(let n in e)t[n]=Zp(e[n]);return t}function QS(e,...t){return t.forEach(n=>{for(let i in n)e[i]=n[i]}),e}function $S(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?$S(e.substring(0,e.length-1)):e.substr(~t+1)}var km=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,bc=class{static hasCaptures(e){return e===null?!1:(km.lastIndex=0,km.test(e))}static replaceCaptures(e,t,n){return e.replace(km,(i,s,o,u)=>{let f=n[parseInt(s||o,10)];if(f){let h=t.substring(f.start,f.end);for(;h[0]===".";)h=h.substring(1);switch(u){case"downcase":return h.toLowerCase();case"upcase":return h.toUpperCase();default:return h}}else return i})}};function YS(e,t){return e<t?-1:e>t?1:0}function KS(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,i=t.length;if(n===i){for(let s=0;s<n;s++){let o=YS(e[s],t[s]);if(o!==0)return o}return 0}return n-i}function $b(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function XS(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var ZS=class{constructor(e){W(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Kc=class{constructor(e,t,n){W(this,"_cachedMatchRoot",new ZS(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(wP(e),t)}static createFromParsedTheme(e,t){return kP(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,i=this._cachedMatchRoot.get(t).find(s=>SP(e.parent,s.parentScopes));return i?new JS(i.fontStyle,i.foreground,i.background):null}},Cm=class Oc{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const i of n)t=new Oc(t,i);return t}static from(...t){let n=null;for(let i=0;i<t.length;i++)n=new Oc(n,t[i]);return n}push(t){return new Oc(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let i=this;for(;i&&i!==t;)n.push(i.scopeName),i=i.parent;return i===t?n.reverse():void 0}};function SP(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let i=t[n],s=!1;if(i===">"){if(n===t.length-1)return!1;i=t[++n],s=!0}for(;e&&!EP(e.scopeName,i);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function EP(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var JS=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function wP(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],i=0;for(let s=0,o=t.length;s<o;s++){let u=t[s];if(!u.settings)continue;let f;if(typeof u.scope=="string"){let p=u.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),f=p.split(",")}else Array.isArray(u.scope)?f=u.scope:f=[""];let h=-1;if(typeof u.settings.fontStyle=="string"){h=0;let p=u.settings.fontStyle.split(" ");for(let v=0,_=p.length;v<_;v++)switch(p[v]){case"italic":h=h|1;break;case"bold":h=h|2;break;case"underline":h=h|4;break;case"strikethrough":h=h|8;break}}let d=null;typeof u.settings.foreground=="string"&&$b(u.settings.foreground)&&(d=u.settings.foreground);let y=null;typeof u.settings.background=="string"&&$b(u.settings.background)&&(y=u.settings.background);for(let p=0,v=f.length;p<v;p++){let x=f[p].trim().split(" "),E=x[x.length-1],k=null;x.length>1&&(k=x.slice(0,x.length-1),k.reverse()),n[i++]=new TP(E,k,s,h,d,y)}}return n}var TP=class{constructor(e,t,n,i,s,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=i,this.foreground=s,this.background=o}},zt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(zt||{});function kP(e,t){e.sort((h,d)=>{let y=YS(h.scope,d.scope);return y!==0||(y=KS(h.parentScopes,d.parentScopes),y!==0)?y:h.index-d.index});let n=0,i="#000000",s="#ffffff";for(;e.length>=1&&e[0].scope==="";){let h=e.shift();h.fontStyle!==-1&&(n=h.fontStyle),h.foreground!==null&&(i=h.foreground),h.background!==null&&(s=h.background)}let o=new CP(t),u=new JS(n,o.getId(i),o.getId(s)),f=new AP(new up(0,null,-1,0,0),[]);for(let h=0,d=e.length;h<d;h++){let y=e[h];f.insert(0,y.scope,y.parentScopes,y.fontStyle,o.getId(y.foreground),o.getId(y.background))}return new Kc(o,u,f)}var CP=class{constructor(e){W(this,"_isFrozen");W(this,"_lastColorId");W(this,"_id2color");W(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},RP=Object.freeze([]),up=class WS{constructor(t,n,i,s,o){W(this,"scopeDepth");W(this,"parentScopes");W(this,"fontStyle");W(this,"foreground");W(this,"background");this.scopeDepth=t,this.parentScopes=n||RP,this.fontStyle=i,this.foreground=s,this.background=o}clone(){return new WS(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let i=0,s=t.length;i<s;i++)n[i]=t[i].clone();return n}acceptOverwrite(t,n,i,s){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),i!==0&&(this.foreground=i),s!==0&&(this.background=s)}},AP=class cp{constructor(t,n=[],i={}){W(this,"_rulesWithParentScopes");this._mainRule=t,this._children=i,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let i=0,s=0;for(;t.parentScopes[i]===">"&&i++,n.parentScopes[s]===">"&&s++,!(i>=t.parentScopes.length||s>=n.parentScopes.length);){const o=n.parentScopes[s].length-t.parentScopes[i].length;if(o!==0)return o;i++,s++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let i=t.indexOf("."),s,o;if(i===-1?(s=t,o=""):(s=t.substring(0,i),o=t.substring(i+1)),this._children.hasOwnProperty(s))return this._children[s].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(cp._cmpBySpecificity),n}insert(t,n,i,s,o,u){if(n===""){this._doInsertHere(t,i,s,o,u);return}let f=n.indexOf("."),h,d;f===-1?(h=n,d=""):(h=n.substring(0,f),d=n.substring(f+1));let y;this._children.hasOwnProperty(h)?y=this._children[h]:(y=new cp(this._mainRule.clone(),up.cloneArr(this._rulesWithParentScopes)),this._children[h]=y),y.insert(t+1,d,i,s,o,u)}_doInsertHere(t,n,i,s,o){if(n===null){this._mainRule.acceptOverwrite(t,i,s,o);return}for(let u=0,f=this._rulesWithParentScopes.length;u<f;u++){let h=this._rulesWithParentScopes[u];if(KS(h.parentScopes,n)===0){h.acceptOverwrite(t,i,s,o);return}}i===-1&&(i=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new up(t,n,i,s,o))}},Zs=class jn{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=jn.getLanguageId(t),i=jn.getTokenType(t),s=jn.getFontStyle(t),o=jn.getForeground(t),u=jn.getBackground(t);console.log({languageId:n,tokenType:i,fontStyle:s,foreground:o,background:u})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,i,s,o,u,f){let h=jn.getLanguageId(t),d=jn.getTokenType(t),y=jn.containsBalancedBrackets(t)?1:0,p=jn.getFontStyle(t),v=jn.getForeground(t),_=jn.getBackground(t);return n!==0&&(h=n),i!==8&&(d=i),s!==null&&(y=s?1:0),o!==-1&&(p=o),u!==0&&(v=u),f!==0&&(_=f),(h<<0|d<<8|y<<10|p<<11|v<<15|_<<24)>>>0}};function Xc(e,t){const n=[],i=OP(e);let s=i.next();for(;s!==null;){let h=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":h=1;break;case"L":h=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=i.next()}let d=u();if(n.push({matcher:d,priority:h}),s!==",")break;s=i.next()}return n;function o(){if(s==="-"){s=i.next();const h=o();return d=>!!h&&!h(d)}if(s==="("){s=i.next();const h=f();return s===")"&&(s=i.next()),h}if(Yb(s)){const h=[];do h.push(s),s=i.next();while(Yb(s));return d=>t(h,d)}return null}function u(){const h=[];let d=o();for(;d;)h.push(d),d=o();return y=>h.every(p=>p(y))}function f(){const h=[];let d=u();for(;d&&(h.push(d),s==="|"||s===",");){do s=i.next();while(s==="|"||s===",");d=u()}return y=>h.some(p=>p(y))}}function Yb(e){return!!e&&!!e.match(/[\w\.:]+/)}function OP(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const i=n[0];return n=t.exec(e),i}}}function eE(e){typeof e.dispose=="function"&&e.dispose()}var To=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},LP=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},NP=class{constructor(){W(this,"_references",[]);W(this,"_seenReferenceKeys",new Set);W(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},jP=class{constructor(e,t){W(this,"seenFullScopeRequests",new Set);W(this,"seenPartialScopeRequests",new Set);W(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new To(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new NP;for(const n of e)DP(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof To){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 DP(e,t,n,i){const s=n.lookup(e.scopeName);if(!s){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof To?Lc({baseGrammar:o,selfGrammar:s},i):fp(e.ruleName,{baseGrammar:o,selfGrammar:s,repository:s.repository},i);const u=n.injections(e.scopeName);if(u)for(const f of u)i.add(new To(f))}function fp(e,t,n){if(t.repository&&t.repository[e]){const i=t.repository[e];Zc([i],t,n)}}function Lc(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Zc(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Zc(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Zc(e,t,n){for(const i of e){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);const s=i.repository?QS({},t.repository,i.repository):t.repository;Array.isArray(i.patterns)&&Zc(i.patterns,{...t,repository:s},n);const o=i.include;if(!o)continue;const u=tE(o);switch(u.kind){case 0:Lc({...t,selfGrammar:t.baseGrammar},n);break;case 1:Lc(t,n);break;case 2:fp(u.ruleName,{...t,repository:s},n);break;case 3:case 4:const f=u.scopeName===t.selfGrammar.scopeName?t.selfGrammar:u.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(f){const h={baseGrammar:t.baseGrammar,selfGrammar:f,repository:s};u.kind===4?fp(u.ruleName,h,n):Lc(h,n)}else u.kind===4?n.add(new LP(u.scopeName,u.ruleName)):n.add(new To(u.scopeName));break}}}var MP=class{constructor(){W(this,"kind",0)}},PP=class{constructor(){W(this,"kind",1)}},zP=class{constructor(e){W(this,"kind",2);this.ruleName=e}},IP=class{constructor(e){W(this,"kind",3);this.scopeName=e}},BP=class{constructor(e,t){W(this,"kind",4);this.scopeName=e,this.ruleName=t}};function tE(e){if(e==="$base")return new MP;if(e==="$self")return new PP;const t=e.indexOf("#");if(t===-1)return new IP(e);if(t===0)return new zP(e.substring(1));{const n=e.substring(0,t),i=e.substring(t+1);return new BP(n,i)}}var UP=/\\(\d+)/,Kb=/\\(\d+)/g,qP=-1,nE=-2;var Ho=class{constructor(e,t,n,i){W(this,"$location");W(this,"id");W(this,"_nameIsCapturing");W(this,"_name");W(this,"_contentNameIsCapturing");W(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=bc.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=bc.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${$S(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:bc.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:bc.replaceCaptures(this._contentName,e,t)}},VP=class extends Ho{constructor(t,n,i,s,o){super(t,n,i,s);W(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,i,s){throw new Error("Not supported!")}},HP=class extends Ho{constructor(t,n,i,s,o){super(t,n,i,null);W(this,"_match");W(this,"captures");W(this,"_cachedCompiledPatterns");this._match=new ko(s,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,i,s){return this._getCachedCompiledPatterns(t).compileAG(t,i,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Co,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Xb=class extends Ho{constructor(t,n,i,s,o){super(t,n,i,s);W(this,"hasMissingPatterns");W(this,"patterns");W(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const i of this.patterns)t.getRule(i).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,i,s){return this._getCachedCompiledPatterns(t).compileAG(t,i,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Co,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},hp=class extends Ho{constructor(t,n,i,s,o,u,f,h,d,y){super(t,n,i,s);W(this,"_begin");W(this,"beginCaptures");W(this,"_end");W(this,"endHasBackReferences");W(this,"endCaptures");W(this,"applyEndPatternLast");W(this,"hasMissingPatterns");W(this,"patterns");W(this,"_cachedCompiledPatterns");this._begin=new ko(o,this.id),this.beginCaptures=u,this._end=new ko(f||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=h,this.applyEndPatternLast=d||!1,this.patterns=y.patterns,this.hasMissingPatterns=y.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,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,i,s){return this._getCachedCompiledPatterns(t,n).compileAG(t,i,s)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Co;for(const i of this.patterns)t.getRule(i).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,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},Jc=class extends Ho{constructor(t,n,i,s,o,u,f,h,d){super(t,n,i,s);W(this,"_begin");W(this,"beginCaptures");W(this,"whileCaptures");W(this,"_while");W(this,"whileHasBackReferences");W(this,"hasMissingPatterns");W(this,"patterns");W(this,"_cachedCompiledPatterns");W(this,"_cachedCompiledWhilePatterns");this._begin=new ko(o,this.id),this.beginCaptures=u,this.whileCaptures=h,this._while=new ko(f,nE),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.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,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,i,s){return this._getCachedCompiledPatterns(t).compileAG(t,i,s)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Co;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,i,s){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,i,s)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Co,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"￿"),this._cachedCompiledWhilePatterns}},rE=class Pt{static createCaptureRule(t,n,i,s,o){return t.registerRule(u=>new VP(n,u,i,s,o))}static getCompiledRuleId(t,n,i){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new HP(t.$vscodeTextmateLocation,t.id,t.name,t.match,Pt._compileCaptures(t.captures,n,i));if(typeof t.begin>"u"){t.repository&&(i=QS({},i,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Xb(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Pt._compilePatterns(o,n,i))}return t.while?new Jc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Pt._compileCaptures(t.beginCaptures||t.captures,n,i),t.while,Pt._compileCaptures(t.whileCaptures||t.captures,n,i),Pt._compilePatterns(t.patterns,n,i)):new hp(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Pt._compileCaptures(t.beginCaptures||t.captures,n,i),t.end,Pt._compileCaptures(t.endCaptures||t.captures,n,i),t.applyEndPatternLast,Pt._compilePatterns(t.patterns,n,i))}),t.id}static _compileCaptures(t,n,i){let s=[];if(t){let o=0;for(const u in t){if(u==="$vscodeTextmateLocation")continue;const f=parseInt(u,10);f>o&&(o=f)}for(let u=0;u<=o;u++)s[u]=null;for(const u in t){if(u==="$vscodeTextmateLocation")continue;const f=parseInt(u,10);let h=0;t[u].patterns&&(h=Pt.getCompiledRuleId(t[u],n,i)),s[f]=Pt.createCaptureRule(n,t[u].$vscodeTextmateLocation,t[u].name,t[u].contentName,h)}}return s}static _compilePatterns(t,n,i){let s=[];if(t)for(let o=0,u=t.length;o<u;o++){const f=t[o];let h=-1;if(f.include){const d=tE(f.include);switch(d.kind){case 0:case 1:h=Pt.getCompiledRuleId(i[f.include],n,i);break;case 2:let y=i[d.ruleName];y&&(h=Pt.getCompiledRuleId(y,n,i));break;case 3:case 4:const p=d.scopeName,v=d.kind===4?d.ruleName:null,_=n.getExternalGrammar(p,i);if(_)if(v){let x=_.repository[v];x&&(h=Pt.getCompiledRuleId(x,n,_.repository))}else h=Pt.getCompiledRuleId(_.repository.$self,n,_.repository);break}}else h=Pt.getCompiledRuleId(f,n,i);if(h!==-1){const d=n.getRule(h);let y=!1;if((d instanceof Xb||d instanceof hp||d instanceof Jc)&&d.hasMissingPatterns&&d.patterns.length===0&&(y=!0),y)continue;s.push(h)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},ko=class iE{constructor(t,n){W(this,"source");W(this,"ruleId");W(this,"hasAnchor");W(this,"hasBackReferences");W(this,"_anchorCache");if(t&&typeof t=="string"){const i=t.length;let s=0,o=[],u=!1;for(let f=0;f<i;f++)if(t.charAt(f)==="\\"&&f+1<i){const d=t.charAt(f+1);d==="z"?(o.push(t.substring(s,f)),o.push("$(?!\\n)(?<!\\n)"),s=f+2):(d==="A"||d==="G")&&(u=!0),f++}this.hasAnchor=u,s===0?this.source=t:(o.push(t.substring(s,i)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=UP.test(this.source):this.hasBackReferences=!1}clone(){return new iE(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,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(s=>t.substring(s.start,s.end));return Kb.lastIndex=0,this.source.replace(Kb,(s,o)=>XS(i[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],i=[],s=[],o,u,f,h;for(o=0,u=this.source.length;o<u;o++)f=this.source.charAt(o),t[o]=f,n[o]=f,i[o]=f,s[o]=f,f==="\\"&&o+1<u&&(h=this.source.charAt(o+1),h==="A"?(t[o+1]="￿",n[o+1]="￿",i[o+1]="A",s[o+1]="A"):h==="G"?(t[o+1]="￿",n[o+1]="G",i[o+1]="￿",s[o+1]="G"):(t[o+1]=h,n[o+1]=h,i[o+1]=h,s[o+1]=h),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:i.join(""),A1_G1:s.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Co=class{constructor(){W(this,"_items");W(this,"_hasAnchors");W(this,"_cached");W(this,"_anchorCache");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(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Zb(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let i=this._items.map(s=>s.resolveAnchors(t,n));return new Zb(e,i,this._items.map(s=>s.ruleId))}},Zb=class{constructor(e,t,n){W(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
260
- `)}findNextMatchSync(e,t,n){const i=this.scanner.findNextMatchSync(e,t,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},Rm=class{constructor(e,t){this.languageId=e,this.tokenType=t}},qr,GP=(qr=class{constructor(t,n){W(this,"_defaultAttributes");W(this,"_embeddedLanguagesMatcher");W(this,"_getBasicScopeAttributes",new ZS(t=>{const n=this._scopeToLanguage(t),i=this._toStandardTokenType(t);return new Rm(n,i)}));this._defaultAttributes=new Rm(t,8),this._embeddedLanguagesMatcher=new FP(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?qr._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(qr.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!")}},W(qr,"_NULL_SCOPE_METADATA",new Rm(0,0)),W(qr,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),qr),FP=class{constructor(e){W(this,"values");W(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,i])=>XS(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},Jb=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function aE(e,t,n,i,s,o,u,f){const h=t.content.length;let d=!1,y=-1;if(u){const _=QP(e,t,n,i,s,o);s=_.stack,i=_.linePos,n=_.isFirstLine,y=_.anchorPosition}const p=Date.now();for(;!d;){if(f!==0&&Date.now()-p>f)return new Jb(s,!0);v()}return new Jb(s,!1);function v(){const _=$P(e,t,n,i,s,y);if(!_){o.produce(s,h),d=!0;return}const x=_.captureIndices,E=_.matchedRuleId,k=x&&x.length>0?x[0].end>i:!1;if(E===qP){const w=s.getRule(e);o.produce(s,x[0].start),s=s.withContentNameScopesList(s.nameScopesList),oo(e,t,n,s,o,w.endCaptures,x),o.produce(s,x[0].end);const C=s;if(s=s.parent,y=C.getAnchorPos(),!k&&C.getEnterPos()===i){s=C,o.produce(s,h),d=!0;return}}else{const w=e.getRule(E);o.produce(s,x[0].start);const C=s,L=w.getName(t.content,x),z=s.contentNameScopesList.pushAttributed(L,e);if(s=s.push(E,i,y,x[0].end===h,null,z,z),w instanceof hp){const B=w;oo(e,t,n,s,o,B.beginCaptures,x),o.produce(s,x[0].end),y=x[0].end;const A=B.getContentName(t.content,x),q=z.pushAttributed(A,e);if(s=s.withContentNameScopesList(q),B.endHasBackReferences&&(s=s.withEndRule(B.getEndWithResolvedBackReferences(t.content,x))),!k&&C.hasSameRuleAs(s)){s=s.pop(),o.produce(s,h),d=!0;return}}else if(w instanceof Jc){const B=w;oo(e,t,n,s,o,B.beginCaptures,x),o.produce(s,x[0].end),y=x[0].end;const A=B.getContentName(t.content,x),q=z.pushAttributed(A,e);if(s=s.withContentNameScopesList(q),B.whileHasBackReferences&&(s=s.withEndRule(B.getWhileWithResolvedBackReferences(t.content,x))),!k&&C.hasSameRuleAs(s)){s=s.pop(),o.produce(s,h),d=!0;return}}else if(oo(e,t,n,s,o,w.captures,x),o.produce(s,x[0].end),s=s.pop(),!k){s=s.safePop(),o.produce(s,h),d=!0;return}}x[0].end>i&&(i=x[0].end,n=!1)}}function QP(e,t,n,i,s,o){let u=s.beginRuleCapturedEOL?0:-1;const f=[];for(let h=s;h;h=h.pop()){const d=h.getRule(e);d instanceof Jc&&f.push({rule:d,stack:h})}for(let h=f.pop();h;h=f.pop()){const{ruleScanner:d,findOptions:y}=XP(h.rule,e,h.stack.endRule,n,i===u),p=d.findNextMatchSync(t,i,y);if(p){if(p.ruleId!==nE){s=h.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(o.produce(h.stack,p.captureIndices[0].start),oo(e,t,n,h.stack,o,h.rule.whileCaptures,p.captureIndices),o.produce(h.stack,p.captureIndices[0].end),u=p.captureIndices[0].end,p.captureIndices[0].end>i&&(i=p.captureIndices[0].end,n=!1))}else{s=h.stack.pop();break}}return{stack:s,linePos:i,anchorPosition:u,isFirstLine:n}}function $P(e,t,n,i,s,o){const u=YP(e,t,n,i,s,o),f=e.getInjections();if(f.length===0)return u;const h=KP(f,e,t,n,i,s,o);if(!h)return u;if(!u)return h;const d=u.captureIndices[0].start,y=h.captureIndices[0].start;return y<d||h.priorityMatch&&y===d?h:u}function YP(e,t,n,i,s,o){const u=s.getRule(e),{ruleScanner:f,findOptions:h}=sE(u,e,s.endRule,n,i===o),d=f.findNextMatchSync(t,i,h);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function KP(e,t,n,i,s,o,u){let f=Number.MAX_VALUE,h=null,d,y=0;const p=o.contentNameScopesList.getScopeNames();for(let v=0,_=e.length;v<_;v++){const x=e[v];if(!x.matcher(p))continue;const E=t.getRule(x.ruleId),{ruleScanner:k,findOptions:w}=sE(E,t,null,i,s===u),C=k.findNextMatchSync(n,s,w);if(!C)continue;const L=C.captureIndices[0].start;if(!(L>=f)&&(f=L,h=C.captureIndices,d=C.ruleId,y=x.priority,f===s))break}return h?{priorityMatch:y===-1,captureIndices:h,matchedRuleId:d}:null}function sE(e,t,n,i,s){return{ruleScanner:e.compileAG(t,n,i,s),findOptions:0}}function XP(e,t,n,i,s){return{ruleScanner:e.compileWhileAG(t,n,i,s),findOptions:0}}function oo(e,t,n,i,s,o,u){if(o.length===0)return;const f=t.content,h=Math.min(o.length,u.length),d=[],y=u[0].end;for(let p=0;p<h;p++){const v=o[p];if(v===null)continue;const _=u[p];if(_.length===0)continue;if(_.start>y)break;for(;d.length>0&&d[d.length-1].endPos<=_.start;)s.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?s.produceFromScopes(d[d.length-1].scopes,_.start):s.produce(i,_.start),v.retokenizeCapturedWithRuleId){const E=v.getName(f,u),k=i.contentNameScopesList.pushAttributed(E,e),w=v.getContentName(f,u),C=k.pushAttributed(w,e),L=i.push(v.retokenizeCapturedWithRuleId,_.start,-1,!1,null,k,C),z=e.createOnigString(f.substring(0,_.end));aE(e,z,n&&_.start===0,_.start,L,s,!1,0),eE(z);continue}const x=v.getName(f,u);if(x!==null){const k=(d.length>0?d[d.length-1].scopes:i.contentNameScopesList).pushAttributed(x,e);d.push(new ZP(k,_.end))}}for(;d.length>0;)s.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var ZP=class{constructor(e,t){W(this,"scopes");W(this,"endPos");this.scopes=e,this.endPos=t}};function JP(e,t,n,i,s,o,u,f){return new e3(e,t,n,i,s,o,u,f)}function Wb(e,t,n,i,s){const o=Xc(t,Wc),u=rE.getCompiledRuleId(n,i,s.repository);for(const f of o)e.push({debugSelector:t,matcher:f.matcher,ruleId:u,grammar:s,priority:f.priority})}function Wc(e,t){if(t.length<e.length)return!1;let n=0;return e.every(i=>{for(let s=n;s<t.length;s++)if(WP(t[s],i))return n=s+1,!0;return!1})}function WP(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var e3=class{constructor(e,t,n,i,s,o,u,f){W(this,"_rootId");W(this,"_lastRuleId");W(this,"_ruleId2desc");W(this,"_includedGrammars");W(this,"_grammarRepository");W(this,"_grammar");W(this,"_injections");W(this,"_basicScopeAttributesProvider");W(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=f,this._basicScopeAttributesProvider=new GP(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=u,this._grammar=ex(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const h of Object.keys(s)){const d=Xc(h,Wc);for(const y of d)this._tokenTypeMatchers.push({matcher:y.matcher,type:s[h]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},t=[],n=this._rootScopeName,i=e.lookup(n);if(i){const s=i.injections;if(s)for(let u in s)Wb(t,u,s[u],this,i);const o=this._grammarRepository.injections(n);o&&o.forEach(u=>{const f=this.getExternalGrammar(u);if(f){const h=f.injectionSelector;h&&Wb(t,h,f,this,f)}})}return t.sort((s,o)=>s.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=ex(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const i=this._tokenize(e,t,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,t,n=0){const i=this._tokenize(e,t,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,t,n,i){this._rootId===-1&&(this._rootId=rE.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===dp.NULL){s=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),y=this.themeProvider.getDefaults(),p=Zs.set(0,d.languageId,d.tokenType,null,y.fontStyle,y.foregroundId,y.backgroundId),v=this.getRule(this._rootId).getName(null,null);let _;v?_=vo.createRootAndLookUpScopeName(v,p,this):_=vo.createRoot("unknown",p),t=new dp(null,this._rootId,-1,-1,!1,null,_,_)}else s=!1,t.reset();e=e+`
261
- `;const o=this.createOnigString(e),u=o.content.length,f=new n3(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=aE(this,o,s,0,t,f,!0,i);return eE(o),{lineLength:u,lineTokens:f,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}};function ex(e,t){return e=_P(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var vo=class rr{constructor(t,n,i){this.parent=t,this.scopePath=n,this.tokenAttributes=i}static fromExtension(t,n){let i=t,s=(t==null?void 0:t.scopePath)??null;for(const o of n)s=Cm.push(s,o.scopeNames),i=new rr(i,s,o.encodedTokenAttributes);return i}static createRoot(t,n){return new rr(null,new Cm(null,t),n)}static createRootAndLookUpScopeName(t,n,i){const s=i.getMetadataForScope(t),o=new Cm(null,t),u=i.themeProvider.themeMatch(o),f=rr.mergeAttributes(n,s,u);return new rr(null,o,f)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return rr.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,i){let s=-1,o=0,u=0;return i!==null&&(s=i.fontStyle,o=i.foregroundId,u=i.backgroundId),Zs.set(t,n.languageId,n.tokenType,null,s,o,u)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return rr._pushAttributed(this,t,n);const i=t.split(/ /g);let s=this;for(const o of i)s=rr._pushAttributed(s,o,n);return s}static _pushAttributed(t,n,i){const s=i.getMetadataForScope(n),o=t.scopePath.push(n),u=i.themeProvider.themeMatch(o),f=rr.mergeAttributes(t.tokenAttributes,s,u);return new rr(t,o,f)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var s;const n=[];let i=this;for(;i&&i!==t;)n.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(((s=i.parent)==null?void 0:s.scopePath)??null)}),i=i.parent;return i===t?n.reverse():void 0}},In,dp=(In=class{constructor(t,n,i,s,o,u,f,h){W(this,"_stackElementBrand");W(this,"_enterPos");W(this,"_anchorPos");W(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=u,this.nameScopesList=f,this.contentNameScopesList=h,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=s}equals(t){return t===null?!1:In._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?vo.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){In._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,i,s,o,u,f){return new In(this,t,n,i,s,o,u,f)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){var i,s;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(i=this.nameScopesList)==null?void 0:i.toString()}, ${(s=this.contentNameScopesList)==null?void 0:s.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new In(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,i;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((i=this.contentNameScopesList)==null?void 0:i.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const i=vo.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new In(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,i,vo.fromExtension(i,n.contentNameScopesList))}},W(In,"NULL",new In(null,0,0,0,!1,null,null,null)),In),t3=class{constructor(e,t){W(this,"balancedBracketScopes");W(this,"unbalancedBracketScopes");W(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Xc(n,Wc).map(i=>i.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Xc(n,Wc).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},n3=class{constructor(e,t,n,i){W(this,"_emitBinaryTokens");W(this,"_lineText");W(this,"_tokens");W(this,"_binaryTokens");W(this,"_lastTokenEndIndex");W(this,"_tokenTypeOverrides");this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var i;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((i=this.balancedBracketSelectors)!=null&&i.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const u=(e==null?void 0:e.getScopeNames())??[];for(const f of this._tokenTypeOverrides)f.matcher(u)&&(s=Zs.set(s,0,f.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(u))}if(o&&(s=Zs.set(s,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let i=0,s=this._binaryTokens.length;i<s;i++)n[i]=this._binaryTokens[i];return n}},r3=class{constructor(e,t){W(this,"_grammars",new Map);W(this,"_rawGrammars",new Map);W(this,"_injectionGrammars",new Map);W(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,i,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,JP(e,o,t,n,i,s,this,this._onigLib))}return this._grammars.get(e)}},i3=class{constructor(t){W(this,"_options");W(this,"_syncRegistry");W(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new r3(Kc.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Kc.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,i){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:i})}loadGrammarWithConfiguration(t,n,i){return this._loadGrammar(t,n,i.embeddedLanguages,i.tokenTypes,new t3(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,i,s,o){const u=new jP(this._syncRegistry,t);for(;u.Q.length>0;)u.Q.map(f=>this._loadSingleGrammar(f.scopeName)),u.processQueue();return this._grammarForScopeName(t,n,i,s,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const i=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,i)}}addGrammar(t,n=[],i=0,s=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,i,s)}_grammarForScopeName(t,n=0,i=null,s=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,i,s,o)}},mp=dp.NULL;const a3=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],s3=/["&'<>`]/g,l3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,o3=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,u3=/[|\\{}()[\]^$+*?.]/g,tx=new WeakMap;function c3(e,t){if(e=e.replace(t.subset?f3(t.subset):s3,i),t.subset||t.escapeOnly)return e;return e.replace(l3,n).replace(o3,i);function n(s,o,u){return t.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,u.charCodeAt(o+2),t)}function i(s,o,u){return t.format(s.charCodeAt(0),u.charCodeAt(o+1),t)}}function f3(e){let t=tx.get(e);return t||(t=h3(e),tx.set(e,t)),t}function h3(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(u3,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const d3=/[\dA-Fa-f]/;function m3(e,t,n){const i="&#x"+e.toString(16).toUpperCase();return n&&t&&!d3.test(String.fromCharCode(t))?i:i+";"}const p3=/\d/;function g3(e,t,n){const i="&#"+String(e);return n&&t&&!p3.test(String.fromCharCode(t))?i:i+";"}const y3=["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"],Am={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:"€"},v3=["cent","copy","divide","gt","lt","not","para","times"],lE={}.hasOwnProperty,pp={};let xc;for(xc in Am)lE.call(Am,xc)&&(pp[Am[xc]]=xc);const _3=/[^\dA-Za-z]/;function b3(e,t,n,i){const s=String.fromCharCode(e);if(lE.call(pp,s)){const o=pp[s],u="&"+o;return n&&y3.includes(o)&&!v3.includes(o)&&(!i||t&&t!==61&&_3.test(String.fromCharCode(t)))?u:u+";"}return""}function x3(e,t,n){let i=m3(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=b3(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=g3(e,t,n.omitOptionalSemicolons);o.length<i.length&&(i=o)}return s&&(!n.useShortestReferences||s.length<i.length)?s:i}function js(e,t){return c3(e,Object.assign({format:x3},t))}const S3=/^>|^->|<!--|-->|--!>|<!-$/g,E3=[">"],w3=["<",">"];function T3(e,t,n,i){return i.settings.bogusComments?"<?"+js(e.value,Object.assign({},i.settings.characterReferences,{subset:E3}))+">":"<!--"+e.value.replace(S3,s)+"-->";function s(o){return js(o,Object.assign({},i.settings.characterReferences,{subset:w3}))}}function k3(e,t,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}const Et=uE(1),oE=uE(-1),C3=[];function uE(e){return t;function t(n,i,s){const o=n?n.children:C3;let u=(i||0)+e,f=o[u];if(!s)for(;f&&vf(f);)u+=e,f=o[u];return f}}const R3={}.hasOwnProperty;function cE(e){return t;function t(n,i,s){return R3.call(e,n.tagName)&&e[n.tagName](n,i,s)}}const Jp=cE({body:O3,caption:Om,colgroup:Om,dd:D3,dt:j3,head:Om,html:A3,li:N3,optgroup:M3,option:P3,p:L3,rp:nx,rt:nx,tbody:I3,td:rx,tfoot:B3,th:rx,thead:z3,tr:U3});function Om(e,t,n){const i=Et(n,t,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&vf(i.value.charAt(0)))}function A3(e,t,n){const i=Et(n,t);return!i||i.type!=="comment"}function O3(e,t,n){const i=Et(n,t);return!i||i.type!=="comment"}function L3(e,t,n){const i=Et(n,t);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 N3(e,t,n){const i=Et(n,t);return!i||i.type==="element"&&i.tagName==="li"}function j3(e,t,n){const i=Et(n,t);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function D3(e,t,n){const i=Et(n,t);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function nx(e,t,n){const i=Et(n,t);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function M3(e,t,n){const i=Et(n,t);return!i||i.type==="element"&&i.tagName==="optgroup"}function P3(e,t,n){const i=Et(n,t);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function z3(e,t,n){const i=Et(n,t);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function I3(e,t,n){const i=Et(n,t);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function B3(e,t,n){return!Et(n,t)}function U3(e,t,n){const i=Et(n,t);return!i||i.type==="element"&&i.tagName==="tr"}function rx(e,t,n){const i=Et(n,t);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const q3=cE({body:G3,colgroup:F3,head:H3,html:V3,tbody:Q3});function V3(e){const t=Et(e,-1);return!t||t.type!=="comment"}function H3(e){const t=new Set;for(const i of e.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(t.has(i.tagName))return!1;t.add(i.tagName)}const n=e.children[0];return!n||n.type==="element"}function G3(e){const t=Et(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&vf(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function F3(e,t,n){const i=oE(n,t),s=Et(e,-1,!0);return n&&i&&i.type==="element"&&i.tagName==="colgroup"&&Jp(i,n.children.indexOf(i),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function Q3(e,t,n){const i=oE(n,t),s=Et(e,-1);return n&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&Jp(i,n.children.indexOf(i),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const Sc={name:[[`
257
+ `,...o.current()});return/^[\t ]/.test(d)&&(d=To(d.charCodeAt(0))+d.slice(1)),d=d?u+" "+d:u,n.options.closeAtx&&(d+=" "+u),h(),f(),d}OS.peek=vM;function OS(e){return e.value||""}function vM(){return"<"}LS.peek=_M;function LS(e,t,n,i){const s=Xp(n),o=s==='"'?"Quote":"Apostrophe",u=n.enter("image");let f=n.enter("label");const h=n.createTracker(i);let d=h.move("![");return d+=h.move(n.safe(e.alt,{before:d,after:"]",...h.current()})),d+=h.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=n.enter("destinationLiteral"),d+=h.move("<"),d+=h.move(n.safe(e.url,{before:d,after:">",...h.current()})),d+=h.move(">")):(f=n.enter("destinationRaw"),d+=h.move(n.safe(e.url,{before:d,after:e.title?" ":")",...h.current()}))),f(),e.title&&(f=n.enter(`title${o}`),d+=h.move(" "+s),d+=h.move(n.safe(e.title,{before:d,after:s,...h.current()})),d+=h.move(s),f()),d+=h.move(")"),u(),d}function _M(){return"!"}NS.peek=bM;function NS(e,t,n,i){const s=e.referenceType,o=n.enter("imageReference");let u=n.enter("label");const f=n.createTracker(i);let h=f.move("![");const d=n.safe(e.alt,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),u();const y=n.stack;n.stack=[],u=n.enter("reference");const p=n.safe(n.associationId(e),{before:h,after:"]",...f.current()});return u(),n.stack=y,o(),s==="full"||!d||d!==p?h+=f.move(p+"]"):s==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function bM(){return"!"}jS.peek=xM;function jS(e,t,n){let i=e.value||"",s="`",o=-1;for(;new RegExp("(^|[^`])"+s+"([^`]|$)").test(i);)s+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++o<n.unsafe.length;){const u=n.unsafe[o],f=n.compilePattern(u);let h;if(u.atBreak)for(;h=f.exec(i);){let d=h.index;i.charCodeAt(d)===10&&i.charCodeAt(d-1)===13&&d--,i=i.slice(0,d)+" "+i.slice(h.index+1)}}return s+i+s}function xM(){return"`"}function DS(e,t){const n=qp(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}MS.peek=SM;function MS(e,t,n,i){const s=Xp(n),o=s==='"'?"Quote":"Apostrophe",u=n.createTracker(i);let f,h;if(DS(e,n)){const y=n.stack;n.stack=[],f=n.enter("autolink");let p=u.move("<");return p+=u.move(n.containerPhrasing(e,{before:p,after:">",...u.current()})),p+=u.move(">"),f(),n.stack=y,p}f=n.enter("link"),h=n.enter("label");let d=u.move("[");return d+=u.move(n.containerPhrasing(e,{before:d,after:"](",...u.current()})),d+=u.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=n.enter("destinationLiteral"),d+=u.move("<"),d+=u.move(n.safe(e.url,{before:d,after:">",...u.current()})),d+=u.move(">")):(h=n.enter("destinationRaw"),d+=u.move(n.safe(e.url,{before:d,after:e.title?" ":")",...u.current()}))),h(),e.title&&(h=n.enter(`title${o}`),d+=u.move(" "+s),d+=u.move(n.safe(e.title,{before:d,after:s,...u.current()})),d+=u.move(s),h()),d+=u.move(")"),f(),d}function SM(e,t,n){return DS(e,n)?"<":"["}PS.peek=EM;function PS(e,t,n,i){const s=e.referenceType,o=n.enter("linkReference");let u=n.enter("label");const f=n.createTracker(i);let h=f.move("[");const d=n.containerPhrasing(e,{before:h,after:"]",...f.current()});h+=f.move(d+"]["),u();const y=n.stack;n.stack=[],u=n.enter("reference");const p=n.safe(n.associationId(e),{before:h,after:"]",...f.current()});return u(),n.stack=y,o(),s==="full"||!d||d!==p?h+=f.move(p+"]"):s==="shortcut"?h=h.slice(0,-1):h+=f.move("]"),h}function EM(){return"["}function Zp(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function wM(e){const t=Zp(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function TM(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function zS(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function kM(e,t,n,i){const s=n.enter("list"),o=n.bulletCurrent;let u=e.ordered?TM(n):Zp(n);const f=e.ordered?u==="."?")":".":wM(n);let h=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){const y=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&y&&(!y.children||!y.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&&(h=!0),zS(n)===u&&y){let p=-1;for(;++p<e.children.length;){const v=e.children[p];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(u=f),n.bulletCurrent=u;const d=n.containerFlow(e,i);return n.bulletLastUsed=u,n.bulletCurrent=o,s(),d}function CM(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function RM(e,t,n,i){const s=CM(n);let o=n.bulletCurrent||Zp(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let u=o.length+1;(s==="tab"||s==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const f=n.createTracker(i);f.move(o+" ".repeat(u-o.length)),f.shift(u);const h=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,f.current()),y);return h(),d;function y(p,v,_){return v?(_?"":" ".repeat(u))+p:(_?o:o+" ".repeat(u-o.length))+p}}function AM(e,t,n,i){const s=n.enter("paragraph"),o=n.enter("phrasing"),u=n.containerPhrasing(e,i);return o(),s(),u}const OM=Sf(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function LM(e,t,n,i){return(e.children.some(function(u){return OM(u)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function NM(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}IS.peek=jM;function IS(e,t,n,i){const s=NM(n),o=n.enter("strong"),u=n.createTracker(i),f=u.move(s+s);let h=u.move(n.containerPhrasing(e,{after:s,before:f,...u.current()}));const d=h.charCodeAt(0),y=Kc(i.before.charCodeAt(i.before.length-1),d,s);y.inside&&(h=To(d)+h.slice(1));const p=h.charCodeAt(h.length-1),v=Kc(i.after.charCodeAt(0),p,s);v.inside&&(h=h.slice(0,-1)+To(p));const _=u.move(s+s);return o(),n.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},f+h+_}function jM(e,t,n){return n.options.strong||"*"}function DM(e,t,n,i){return n.safe(e.value,i)}function MM(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function PM(e,t,n){const i=(zS(n)+(n.options.ruleSpaces?" ":"")).repeat(MM(n));return n.options.ruleSpaces?i.slice(0,-1):i}const BS={blockquote:aM,break:Gb,code:fM,definition:dM,emphasis:AS,hardBreak:Gb,heading:yM,html:OS,image:LS,imageReference:NS,inlineCode:jS,link:MS,linkReference:PS,list:kM,listItem:RM,paragraph:AM,root:LM,strong:IS,text:DM,thematicBreak:PM};function zM(){return{enter:{table:IM,tableData:Fb,tableHeader:Fb,tableRow:UM},exit:{codeText:qM,table:BM,tableData:km,tableHeader:km,tableRow:km}}}function IM(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function BM(e){this.exit(e),this.data.inTable=void 0}function UM(e){this.enter({type:"tableRow",children:[]},e)}function km(e){this.exit(e)}function Fb(e){this.enter({type:"tableCell",children:[]},e)}function qM(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,VM));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function VM(e,t){return t==="|"?t:e}function HM(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,s=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
258
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:h,tableRow:f}};function u(_,b,E,k){return d(y(_,E,k),_.align)}function f(_,b,E,k){const T=p(_,E,k),R=d([T]);return R.slice(0,R.indexOf(`
259
+ `))}function h(_,b,E,k){const T=E.enter("tableCell"),R=E.enter("phrasing"),L=E.containerPhrasing(_,{...k,before:o,after:o});return R(),T(),L}function d(_,b){return nM(_,{align:b,alignDelimiters:i,padding:n,stringLength:s})}function y(_,b,E){const k=_.children;let T=-1;const R=[],L=b.enter("table");for(;++T<k.length;)R[T]=p(k[T],b,E);return L(),R}function p(_,b,E){const k=_.children;let T=-1;const R=[],L=b.enter("tableRow");for(;++T<k.length;)R[T]=h(k[T],_,b,E);return L(),R}function v(_,b,E){let k=BS.inlineCode(_,b,E);return E.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function GM(){return{exit:{taskListCheckValueChecked:Qb,taskListCheckValueUnchecked:Qb,paragraph:QM}}}function FM(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:$M}}}function Qb(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function QM(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const i=n.children[0];if(i&&i.type==="text"){const s=t.children;let o=-1,u;for(;++o<s.length;){const f=s[o];if(f.type==="paragraph"){u=f;break}}u===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(e)}function $M(e,t,n,i){const s=e.children[0],o=typeof e.checked=="boolean"&&s&&s.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",f=n.createTracker(i);o&&f.move(u);let h=BS.listItem(e,t,n,{...i,...f.current()});return o&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,d)),h;function d(y){return y+u}}function YM(){return[TD(),QD(),XD(),zM(),GM()]}function KM(e){return{extensions:[kD(),$D(e),ZD(),HM(e),FM()]}}const XM={tokenize:nP,partial:!0},US={tokenize:rP,partial:!0},qS={tokenize:iP,partial:!0},VS={tokenize:aP,partial:!0},ZM={tokenize:sP,partial:!0},HS={name:"wwwAutolink",tokenize:eP,previous:FS},GS={name:"protocolAutolink",tokenize:tP,previous:QS},Qr={name:"emailAutolink",tokenize:WM,previous:$S},fr={};function JM(){return{text:fr}}let aa=48;for(;aa<123;)fr[aa]=Qr,aa++,aa===58?aa=65:aa===91&&(aa=97);fr[43]=Qr;fr[45]=Qr;fr[46]=Qr;fr[95]=Qr;fr[72]=[Qr,GS];fr[104]=[Qr,GS];fr[87]=[Qr,HS];fr[119]=[Qr,HS];function WM(e,t,n){const i=this;let s,o;return u;function u(p){return!up(p)||!$S.call(i,i.previous)||Jp(i.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),f(p))}function f(p){return up(p)?(e.consume(p),f):p===64?(e.consume(p),h):n(p)}function h(p){return p===46?e.check(ZM,y,d)(p):p===45||p===95||It(p)?(o=!0,e.consume(p),h):y(p)}function d(p){return e.consume(p),s=!0,h}function y(p){return o&&s&&Qt(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(p)):n(p)}}function eP(e,t,n){const i=this;return s;function s(u){return u!==87&&u!==119||!FS.call(i,i.previous)||Jp(i.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(XM,e.attempt(US,e.attempt(qS,o),n),n)(u))}function o(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function tP(e,t,n){const i=this;let s="",o=!1;return u;function u(p){return(p===72||p===104)&&QS.call(i,i.previous)&&!Jp(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),s+=String.fromCodePoint(p),e.consume(p),f):n(p)}function f(p){if(Qt(p)&&s.length<5)return s+=String.fromCodePoint(p),e.consume(p),f;if(p===58){const v=s.toLowerCase();if(v==="http"||v==="https")return e.consume(p),h}return n(p)}function h(p){return p===47?(e.consume(p),o?d:(o=!0,h)):n(p)}function d(p){return p===null||Fc(p)||tt(p)||Ra(p)||_f(p)?n(p):e.attempt(US,e.attempt(qS,y),n)(p)}function y(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(p)}}function nP(e,t,n){let i=0;return s;function s(u){return(u===87||u===119)&&i<3?(i++,e.consume(u),s):u===46&&i===3?(e.consume(u),o):n(u)}function o(u){return u===null?n(u):t(u)}}function rP(e,t,n){let i,s,o;return u;function u(d){return d===46||d===95?e.check(VS,h,f)(d):d===null||tt(d)||Ra(d)||d!==45&&_f(d)?h(d):(o=!0,e.consume(d),u)}function f(d){return d===95?i=!0:(s=i,i=void 0),e.consume(d),u}function h(d){return s||i||!o?n(d):t(d)}}function iP(e,t){let n=0,i=0;return s;function s(u){return u===40?(n++,e.consume(u),s):u===41&&i<n?o(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(VS,t,o)(u):u===null||tt(u)||Ra(u)?t(u):(e.consume(u),s)}function o(u){return u===41&&i++,e.consume(u),s}}function aP(e,t,n){return i;function i(f){return f===33||f===34||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===63||f===95||f===126?(e.consume(f),i):f===38?(e.consume(f),o):f===93?(e.consume(f),s):f===60||f===null||tt(f)||Ra(f)?t(f):n(f)}function s(f){return f===null||f===40||f===91||tt(f)||Ra(f)?t(f):i(f)}function o(f){return Qt(f)?u(f):n(f)}function u(f){return f===59?(e.consume(f),i):Qt(f)?(e.consume(f),u):n(f)}}function sP(e,t,n){return i;function i(o){return e.consume(o),s}function s(o){return It(o)?n(o):t(o)}}function FS(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||tt(e)}function QS(e){return!Qt(e)}function $S(e){return!(e===47||up(e))}function up(e){return e===43||e===45||e===46||e===95||It(e)}function Jp(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const lP={tokenize:pP,partial:!0};function oP(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:hP,continuation:{tokenize:dP},exit:mP}},text:{91:{name:"gfmFootnoteCall",tokenize:fP},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:uP,resolveTo:cP}}}}function uP(e,t,n){const i=this;let s=i.events.length;const o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u;for(;s--;){const h=i.events[s][1];if(h.type==="labelImage"){u=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return f;function f(h){if(!u||!u._balanced)return n(h);const d=Zn(i.sliceSerialize({start:u.end,end:i.now()}));return d.codePointAt(0)!==94||!o.includes(d.slice(1))?n(h):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),t(h))}}function cP(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},s={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};s.end.column++,s.end.offset++,s.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},s.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},f=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",s,t],["exit",s,t],["enter",o,t],["enter",u,t],["exit",u,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...f),e}function fP(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o=0,u;return f;function f(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),h}function h(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(p){if(o>999||p===93&&!u||p===null||p===91||tt(p))return n(p);if(p===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return s.includes(Zn(i.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(p)}return tt(p)||(u=!0),o++,e.consume(p),p===92?y:d}function y(p){return p===91||p===92||p===93?(e.consume(p),o++,d):d(p)}}function hP(e,t,n){const i=this,s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o,u=0,f;return h;function h(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",y):n(b)}function y(b){if(u>999||b===93&&!f||b===null||b===91||tt(b))return n(b);if(b===93){e.exit("chunkString");const E=e.exit("gfmFootnoteDefinitionLabelString");return o=Zn(i.sliceSerialize(E)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return tt(b)||(f=!0),u++,e.consume(b),b===92?p:y}function p(b){return b===91||b===92||b===93?(e.consume(b),u++,y):y(b)}function v(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),s.includes(o)||s.push(o),Ie(e,_,"gfmFootnoteDefinitionWhitespace")):n(b)}function _(b){return t(b)}}function dP(e,t,n){return e.check(qo,t,e.attempt(lP,t,n))}function mP(e){e.exit("gfmFootnoteDefinition")}function pP(e,t,n){const i=this;return Ie(e,s,"gfmFootnoteDefinitionIndent",5);function s(o){const u=i.events[i.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(o):n(o)}}function gP(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:o,resolveAll:s};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function s(u,f){let h=-1;for(;++h<u.length;)if(u[h][0]==="enter"&&u[h][1].type==="strikethroughSequenceTemporary"&&u[h][1]._close){let d=h;for(;d--;)if(u[d][0]==="exit"&&u[d][1].type==="strikethroughSequenceTemporary"&&u[d][1]._open&&u[h][1].end.offset-u[h][1].start.offset===u[d][1].end.offset-u[d][1].start.offset){u[h][1].type="strikethroughSequence",u[d][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},u[d][1].start),end:Object.assign({},u[h][1].end)},p={type:"strikethroughText",start:Object.assign({},u[d][1].end),end:Object.assign({},u[h][1].start)},v=[["enter",y,f],["enter",u[d][1],f],["exit",u[d][1],f],["enter",p,f]],_=f.parser.constructs.insideSpan.null;_&&bn(v,v.length,0,bf(_,u.slice(d+1,h),f)),bn(v,v.length,0,[["exit",p,f],["enter",u[h][1],f],["exit",u[h][1],f],["exit",y,f]]),bn(u,d-1,h-d+3,v),h=d+v.length-2;break}}for(h=-1;++h<u.length;)u[h][1].type==="strikethroughSequenceTemporary"&&(u[h][1].type="data");return u}function o(u,f,h){const d=this.previous,y=this.events;let p=0;return v;function v(b){return d===126&&y[y.length-1][1].type!=="characterEscape"?h(b):(u.enter("strikethroughSequenceTemporary"),_(b))}function _(b){const E=Zs(d);if(b===126)return p>1?h(b):(u.consume(b),p++,_);if(p<2&&!n)return h(b);const k=u.exit("strikethroughSequenceTemporary"),T=Zs(b);return k._open=!T||T===2&&!!E,k._close=!E||E===2&&!!T,f(b)}}}class yP{constructor(){this.map=[]}add(t,n,i){vP(this,t,n,i)}consume(t){if(this.map.sort(function(o,u){return o[0]-u[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let s=i.pop();for(;s;){for(const o of s)t.push(o);s=i.pop()}this.map.length=0}}function vP(e,t,n,i){let s=0;if(!(n===0&&i.length===0)){for(;s<e.map.length;){if(e.map[s][0]===t){e.map[s][1]+=n,e.map[s][2].push(...i);return}s+=1}e.map.push([t,n,i])}}function _P(e,t){let n=!1;const i=[];for(;t<e.length;){const s=e[t];if(n){if(s[0]==="enter")s[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(s[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=i.length-1;i[o]=i[o]==="left"?"center":"right"}}else if(s[1].type==="tableDelimiterRow")break}else s[0]==="enter"&&s[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function bP(){return{flow:{null:{name:"table",tokenize:xP,resolveAll:SP}}}}function xP(e,t,n){const i=this;let s=0,o=0,u;return f;function f(N){let Q=i.events.length-1;for(;Q>-1;){const le=i.events[Q][1].type;if(le==="lineEnding"||le==="linePrefix")Q--;else break}const re=Q>-1?i.events[Q][1].type:null,me=re==="tableHead"||re==="tableRow"?O:h;return me===O&&i.parser.lazy[i.now().line]?n(N):me(N)}function h(N){return e.enter("tableHead"),e.enter("tableRow"),d(N)}function d(N){return N===124||(u=!0,o+=1),y(N)}function y(N){return N===null?n(N):_e(N)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),_):n(N):Ne(N)?Ie(e,y,"whitespace")(N):(o+=1,u&&(u=!1,s+=1),N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),u=!0,y):(e.enter("data"),p(N)))}function p(N){return N===null||N===124||tt(N)?(e.exit("data"),y(N)):(e.consume(N),N===92?v:p)}function v(N){return N===92||N===124?(e.consume(N),p):p(N)}function _(N){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(N):(e.enter("tableDelimiterRow"),u=!1,Ne(N)?Ie(e,b,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):b(N))}function b(N){return N===45||N===58?k(N):N===124?(u=!0,e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),E):V(N)}function E(N){return Ne(N)?Ie(e,k,"whitespace")(N):k(N)}function k(N){return N===58?(o+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),T):N===45?(o+=1,T(N)):N===null||_e(N)?z(N):V(N)}function T(N){return N===45?(e.enter("tableDelimiterFiller"),R(N)):V(N)}function R(N){return N===45?(e.consume(N),R):N===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),L):(e.exit("tableDelimiterFiller"),L(N))}function L(N){return Ne(N)?Ie(e,z,"whitespace")(N):z(N)}function z(N){return N===124?b(N):N===null||_e(N)?!u||s!==o?V(N):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(N)):V(N)}function V(N){return n(N)}function O(N){return e.enter("tableRow"),U(N)}function U(N){return N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),U):N===null||_e(N)?(e.exit("tableRow"),t(N)):Ne(N)?Ie(e,U,"whitespace")(N):(e.enter("data"),$(N))}function $(N){return N===null||N===124||tt(N)?(e.exit("data"),U(N)):(e.consume(N),N===92?ne:$)}function ne(N){return N===92||N===124?(e.consume(N),$):$(N)}}function SP(e,t){let n=-1,i=!0,s=0,o=[0,0,0,0],u=[0,0,0,0],f=!1,h=0,d,y,p;const v=new yP;for(;++n<e.length;){const _=e[n],b=_[1];_[0]==="enter"?b.type==="tableHead"?(f=!1,h!==0&&($b(v,t,h,d,y),y=void 0,h=0),d={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},v.add(n,0,[["enter",d,t]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(i=!0,p=void 0,o=[0,0,0,0],u=[0,n+1,0,0],f&&(f=!1,y={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},v.add(n,0,[["enter",y,t]])),s=b.type==="tableDelimiterRow"?2:y?3:1):s&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(i=!1,u[2]===0&&(o[1]!==0&&(u[0]=u[1],p=_c(v,t,o,s,void 0,p),o=[0,0,0,0]),u[2]=n)):b.type==="tableCellDivider"&&(i?i=!1:(o[1]!==0&&(u[0]=u[1],p=_c(v,t,o,s,void 0,p)),o=u,u=[o[1],n,0,0])):b.type==="tableHead"?(f=!0,h=n):b.type==="tableRow"||b.type==="tableDelimiterRow"?(h=n,o[1]!==0?(u[0]=u[1],p=_c(v,t,o,s,n,p)):u[1]!==0&&(p=_c(v,t,u,s,n,p)),s=0):s&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(u[3]=n)}for(h!==0&&$b(v,t,h,d,y),v.consume(t.events),n=-1;++n<t.events.length;){const _=t.events[n];_[0]==="enter"&&_[1].type==="table"&&(_[1]._align=_P(t.events,n))}return e}function _c(e,t,n,i,s,o){const u=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",f="tableContent";n[0]!==0&&(o.end=Object.assign({},As(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const h=As(t.events,n[1]);if(o={type:u,start:Object.assign({},h),end:Object.assign({},h)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const d=As(t.events,n[2]),y=As(t.events,n[3]),p={type:f,start:Object.assign({},d),end:Object.assign({},y)};if(e.add(n[2],0,[["enter",p,t]]),i!==2){const v=t.events[n[2]],_=t.events[n[3]];if(v[1].end=Object.assign({},_[1].end),v[1].type="chunkText",v[1].contentType="text",n[3]>n[2]+1){const b=n[2]+1,E=n[3]-n[2]-1;e.add(b,E,[])}}e.add(n[3]+1,0,[["exit",p,t]])}return s!==void 0&&(o.end=Object.assign({},As(t.events,s)),e.add(s,0,[["exit",o,t]]),o=void 0),o}function $b(e,t,n,i,s){const o=[],u=As(t.events,n);s&&(s.end=Object.assign({},u),o.push(["exit",s,t])),i.end=Object.assign({},u),o.push(["exit",i,t]),e.add(n+1,0,o)}function As(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const EP={name:"tasklistCheck",tokenize:TP};function wP(){return{text:{91:EP}}}function TP(e,t,n){const i=this;return s;function s(h){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(h):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),o)}function o(h){return tt(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),u):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),u):n(h)}function u(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),f):n(h)}function f(h){return _e(h)?t(h):Ne(h)?e.check({tokenize:kP},t,n)(h):n(h)}}function kP(e,t,n){return Ie(e,i,"whitespace");function i(s){return s===null?n(s):t(s)}}function CP(e){return iS([JM(),oP(),gP(e),bP(),wP()])}const RP={};function AP(e){const t=this,n=e||RP,i=t.data(),s=i.micromarkExtensions||(i.micromarkExtensions=[]),o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);s.push(CP(n)),o.push(YM()),u.push(KM(n))}const OP="modulepreload",LP=function(e){return"/"+e},Yb={},C=function(t,n,i){let s=Promise.resolve();if(n&&n.length>0){let u=function(d){return Promise.all(d.map(y=>Promise.resolve(y).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),h=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));s=u(n.map(d=>{if(d=LP(d),d in Yb)return;Yb[d]=!0;const y=d.endsWith(".css"),p=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${p}`))return;const v=document.createElement("link");if(v.rel=y?"stylesheet":OP,y||(v.as="script"),v.crossOrigin="",v.href=d,h&&v.setAttribute("nonce",h),document.head.appendChild(v),y)return new Promise((_,b)=>{v.addEventListener("load",_),v.addEventListener("error",()=>b(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(u){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=u,window.dispatchEvent(f),!f.defaultPrevented)throw u}return s.then(u=>{for(const f of u||[])f.status==="rejected"&&o(f.reason);return t().catch(o)})};let vt=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function NP(e){return Wp(e)}function Wp(e){return Array.isArray(e)?jP(e):e instanceof RegExp?e:typeof e=="object"?DP(e):e}function jP(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=Wp(e[n]);return t}function DP(e){let t={};for(let n in e)t[n]=Wp(e[n]);return t}function YS(e,...t){return t.forEach(n=>{for(let i in n)e[i]=n[i]}),e}function KS(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?KS(e.substring(0,e.length-1)):e.substr(~t+1)}var Cm=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,bc=class{static hasCaptures(e){return e===null?!1:(Cm.lastIndex=0,Cm.test(e))}static replaceCaptures(e,t,n){return e.replace(Cm,(i,s,o,u)=>{let f=n[parseInt(s||o,10)];if(f){let h=t.substring(f.start,f.end);for(;h[0]===".";)h=h.substring(1);switch(u){case"downcase":return h.toLowerCase();case"upcase":return h.toUpperCase();default:return h}}else return i})}};function XS(e,t){return e<t?-1:e>t?1:0}function ZS(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,i=t.length;if(n===i){for(let s=0;s<n;s++){let o=XS(e[s],t[s]);if(o!==0)return o}return 0}return n-i}function Kb(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function JS(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var WS=class{constructor(e){W(this,"cache",new Map);this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Xc=class{constructor(e,t,n){W(this,"_cachedMatchRoot",new WS(e=>this._root.match(e)));this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(zP(e),t)}static createFromParsedTheme(e,t){return BP(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,i=this._cachedMatchRoot.get(t).find(s=>MP(e.parent,s.parentScopes));return i?new eE(i.fontStyle,i.foreground,i.background):null}},Rm=class Oc{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const i of n)t=new Oc(t,i);return t}static from(...t){let n=null;for(let i=0;i<t.length;i++)n=new Oc(n,t[i]);return n}push(t){return new Oc(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let i=this;for(;i&&i!==t;)n.push(i.scopeName),i=i.parent;return i===t?n.reverse():void 0}};function MP(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let i=t[n],s=!1;if(i===">"){if(n===t.length-1)return!1;i=t[++n],s=!0}for(;e&&!PP(e.scopeName,i);){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function PP(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var eE=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function zP(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],i=0;for(let s=0,o=t.length;s<o;s++){let u=t[s];if(!u.settings)continue;let f;if(typeof u.scope=="string"){let p=u.scope;p=p.replace(/^[,]+/,""),p=p.replace(/[,]+$/,""),f=p.split(",")}else Array.isArray(u.scope)?f=u.scope:f=[""];let h=-1;if(typeof u.settings.fontStyle=="string"){h=0;let p=u.settings.fontStyle.split(" ");for(let v=0,_=p.length;v<_;v++)switch(p[v]){case"italic":h=h|1;break;case"bold":h=h|2;break;case"underline":h=h|4;break;case"strikethrough":h=h|8;break}}let d=null;typeof u.settings.foreground=="string"&&Kb(u.settings.foreground)&&(d=u.settings.foreground);let y=null;typeof u.settings.background=="string"&&Kb(u.settings.background)&&(y=u.settings.background);for(let p=0,v=f.length;p<v;p++){let b=f[p].trim().split(" "),E=b[b.length-1],k=null;b.length>1&&(k=b.slice(0,b.length-1),k.reverse()),n[i++]=new IP(E,k,s,h,d,y)}}return n}var IP=class{constructor(e,t,n,i,s,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=i,this.foreground=s,this.background=o}},zt=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(zt||{});function BP(e,t){e.sort((h,d)=>{let y=XS(h.scope,d.scope);return y!==0||(y=ZS(h.parentScopes,d.parentScopes),y!==0)?y:h.index-d.index});let n=0,i="#000000",s="#ffffff";for(;e.length>=1&&e[0].scope==="";){let h=e.shift();h.fontStyle!==-1&&(n=h.fontStyle),h.foreground!==null&&(i=h.foreground),h.background!==null&&(s=h.background)}let o=new UP(t),u=new eE(n,o.getId(i),o.getId(s)),f=new VP(new cp(0,null,-1,0,0),[]);for(let h=0,d=e.length;h<d;h++){let y=e[h];f.insert(0,y.scope,y.parentScopes,y.fontStyle,o.getId(y.foreground),o.getId(y.background))}return new Xc(o,u,f)}var UP=class{constructor(e){W(this,"_isFrozen");W(this,"_lastColorId");W(this,"_id2color");W(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},qP=Object.freeze([]),cp=class tE{constructor(t,n,i,s,o){W(this,"scopeDepth");W(this,"parentScopes");W(this,"fontStyle");W(this,"foreground");W(this,"background");this.scopeDepth=t,this.parentScopes=n||qP,this.fontStyle=i,this.foreground=s,this.background=o}clone(){return new tE(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let i=0,s=t.length;i<s;i++)n[i]=t[i].clone();return n}acceptOverwrite(t,n,i,s){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),i!==0&&(this.foreground=i),s!==0&&(this.background=s)}},VP=class fp{constructor(t,n=[],i={}){W(this,"_rulesWithParentScopes");this._mainRule=t,this._children=i,this._rulesWithParentScopes=n}static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let i=0,s=0;for(;t.parentScopes[i]===">"&&i++,n.parentScopes[s]===">"&&s++,!(i>=t.parentScopes.length||s>=n.parentScopes.length);){const o=n.parentScopes[s].length-t.parentScopes[i].length;if(o!==0)return o;i++,s++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let i=t.indexOf("."),s,o;if(i===-1?(s=t,o=""):(s=t.substring(0,i),o=t.substring(i+1)),this._children.hasOwnProperty(s))return this._children[s].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(fp._cmpBySpecificity),n}insert(t,n,i,s,o,u){if(n===""){this._doInsertHere(t,i,s,o,u);return}let f=n.indexOf("."),h,d;f===-1?(h=n,d=""):(h=n.substring(0,f),d=n.substring(f+1));let y;this._children.hasOwnProperty(h)?y=this._children[h]:(y=new fp(this._mainRule.clone(),cp.cloneArr(this._rulesWithParentScopes)),this._children[h]=y),y.insert(t+1,d,i,s,o,u)}_doInsertHere(t,n,i,s,o){if(n===null){this._mainRule.acceptOverwrite(t,i,s,o);return}for(let u=0,f=this._rulesWithParentScopes.length;u<f;u++){let h=this._rulesWithParentScopes[u];if(ZS(h.parentScopes,n)===0){h.acceptOverwrite(t,i,s,o);return}}i===-1&&(i=this._mainRule.fontStyle),s===0&&(s=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new cp(t,n,i,s,o))}},Js=class jn{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=jn.getLanguageId(t),i=jn.getTokenType(t),s=jn.getFontStyle(t),o=jn.getForeground(t),u=jn.getBackground(t);console.log({languageId:n,tokenType:i,fontStyle:s,foreground:o,background:u})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,i,s,o,u,f){let h=jn.getLanguageId(t),d=jn.getTokenType(t),y=jn.containsBalancedBrackets(t)?1:0,p=jn.getFontStyle(t),v=jn.getForeground(t),_=jn.getBackground(t);return n!==0&&(h=n),i!==8&&(d=i),s!==null&&(y=s?1:0),o!==-1&&(p=o),u!==0&&(v=u),f!==0&&(_=f),(h<<0|d<<8|y<<10|p<<11|v<<15|_<<24)>>>0}};function Zc(e,t){const n=[],i=HP(e);let s=i.next();for(;s!==null;){let h=0;if(s.length===2&&s.charAt(1)===":"){switch(s.charAt(0)){case"R":h=1;break;case"L":h=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=i.next()}let d=u();if(n.push({matcher:d,priority:h}),s!==",")break;s=i.next()}return n;function o(){if(s==="-"){s=i.next();const h=o();return d=>!!h&&!h(d)}if(s==="("){s=i.next();const h=f();return s===")"&&(s=i.next()),h}if(Xb(s)){const h=[];do h.push(s),s=i.next();while(Xb(s));return d=>t(h,d)}return null}function u(){const h=[];let d=o();for(;d;)h.push(d),d=o();return y=>h.every(p=>p(y))}function f(){const h=[];let d=u();for(;d&&(h.push(d),s==="|"||s===",");){do s=i.next();while(s==="|"||s===",");d=u()}return y=>h.some(p=>p(y))}}function Xb(e){return!!e&&!!e.match(/[\w\.:]+/)}function HP(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const i=n[0];return n=t.exec(e),i}}}function nE(e){typeof e.dispose=="function"&&e.dispose()}var ko=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},GP=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},FP=class{constructor(){W(this,"_references",[]);W(this,"_seenReferenceKeys",new Set);W(this,"visitedRule",new Set)}get references(){return this._references}add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},QP=class{constructor(e,t){W(this,"seenFullScopeRequests",new Set);W(this,"seenPartialScopeRequests",new Set);W(this,"Q");this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ko(this.initialScopeName)]}processQueue(){const e=this.Q;this.Q=[];const t=new FP;for(const n of e)$P(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof ko){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 $P(e,t,n,i){const s=n.lookup(e.scopeName);if(!s){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof ko?Lc({baseGrammar:o,selfGrammar:s},i):hp(e.ruleName,{baseGrammar:o,selfGrammar:s,repository:s.repository},i);const u=n.injections(e.scopeName);if(u)for(const f of u)i.add(new ko(f))}function hp(e,t,n){if(t.repository&&t.repository[e]){const i=t.repository[e];Jc([i],t,n)}}function Lc(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Jc(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Jc(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Jc(e,t,n){for(const i of e){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);const s=i.repository?YS({},t.repository,i.repository):t.repository;Array.isArray(i.patterns)&&Jc(i.patterns,{...t,repository:s},n);const o=i.include;if(!o)continue;const u=rE(o);switch(u.kind){case 0:Lc({...t,selfGrammar:t.baseGrammar},n);break;case 1:Lc(t,n);break;case 2:hp(u.ruleName,{...t,repository:s},n);break;case 3:case 4:const f=u.scopeName===t.selfGrammar.scopeName?t.selfGrammar:u.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(f){const h={baseGrammar:t.baseGrammar,selfGrammar:f,repository:s};u.kind===4?hp(u.ruleName,h,n):Lc(h,n)}else u.kind===4?n.add(new GP(u.scopeName,u.ruleName)):n.add(new ko(u.scopeName));break}}}var YP=class{constructor(){W(this,"kind",0)}},KP=class{constructor(){W(this,"kind",1)}},XP=class{constructor(e){W(this,"kind",2);this.ruleName=e}},ZP=class{constructor(e){W(this,"kind",3);this.scopeName=e}},JP=class{constructor(e,t){W(this,"kind",4);this.scopeName=e,this.ruleName=t}};function rE(e){if(e==="$base")return new YP;if(e==="$self")return new KP;const t=e.indexOf("#");if(t===-1)return new ZP(e);if(t===0)return new XP(e.substring(1));{const n=e.substring(0,t),i=e.substring(t+1);return new JP(n,i)}}var WP=/\\(\d+)/,Zb=/\\(\d+)/g,e3=-1,iE=-2;var Ho=class{constructor(e,t,n,i){W(this,"$location");W(this,"id");W(this,"_nameIsCapturing");W(this,"_name");W(this,"_contentNameIsCapturing");W(this,"_contentName");this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=bc.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=bc.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${KS(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:bc.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:bc.replaceCaptures(this._contentName,e,t)}},t3=class extends Ho{constructor(t,n,i,s,o){super(t,n,i,s);W(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=o}dispose(){}collectPatterns(t,n){throw new Error("Not supported!")}compile(t,n){throw new Error("Not supported!")}compileAG(t,n,i,s){throw new Error("Not supported!")}},n3=class extends Ho{constructor(t,n,i,s,o){super(t,n,i,null);W(this,"_match");W(this,"captures");W(this,"_cachedCompiledPatterns");this._match=new Co(s,this.id),this.captures=o,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(t,n){n.push(this._match)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,i,s){return this._getCachedCompiledPatterns(t).compileAG(t,i,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ro,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Jb=class extends Ho{constructor(t,n,i,s,o){super(t,n,i,s);W(this,"hasMissingPatterns");W(this,"patterns");W(this,"_cachedCompiledPatterns");this.patterns=o.patterns,this.hasMissingPatterns=o.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(t,n){for(const i of this.patterns)t.getRule(i).collectPatterns(t,n)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,i,s){return this._getCachedCompiledPatterns(t).compileAG(t,i,s)}_getCachedCompiledPatterns(t){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ro,this.collectPatterns(t,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},dp=class extends Ho{constructor(t,n,i,s,o,u,f,h,d,y){super(t,n,i,s);W(this,"_begin");W(this,"beginCaptures");W(this,"_end");W(this,"endHasBackReferences");W(this,"endCaptures");W(this,"applyEndPatternLast");W(this,"hasMissingPatterns");W(this,"patterns");W(this,"_cachedCompiledPatterns");this._begin=new Co(o,this.id),this.beginCaptures=u,this._end=new Co(f||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=h,this.applyEndPatternLast=d||!1,this.patterns=y.patterns,this.hasMissingPatterns=y.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,n){return this._end.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t,n).compile(t)}compileAG(t,n,i,s){return this._getCachedCompiledPatterns(t,n).compileAG(t,i,s)}_getCachedCompiledPatterns(t,n){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ro;for(const i of this.patterns)t.getRule(i).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,n):this._cachedCompiledPatterns.setSource(0,n)),this._cachedCompiledPatterns}},Wc=class extends Ho{constructor(t,n,i,s,o,u,f,h,d){super(t,n,i,s);W(this,"_begin");W(this,"beginCaptures");W(this,"whileCaptures");W(this,"_while");W(this,"whileHasBackReferences");W(this,"hasMissingPatterns");W(this,"patterns");W(this,"_cachedCompiledPatterns");W(this,"_cachedCompiledWhilePatterns");this._begin=new Co(o,this.id),this.beginCaptures=u,this.whileCaptures=h,this._while=new Co(f,iE),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=d.patterns,this.hasMissingPatterns=d.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,n){return this._while.resolveBackReferences(t,n)}collectPatterns(t,n){n.push(this._begin)}compile(t,n){return this._getCachedCompiledPatterns(t).compile(t)}compileAG(t,n,i,s){return this._getCachedCompiledPatterns(t).compileAG(t,i,s)}_getCachedCompiledPatterns(t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ro;for(const n of this.patterns)t.getRule(n).collectPatterns(t,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(t,n){return this._getCachedCompiledWhilePatterns(t,n).compile(t)}compileWhileAG(t,n,i,s){return this._getCachedCompiledWhilePatterns(t,n).compileAG(t,i,s)}_getCachedCompiledWhilePatterns(t,n){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ro,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,n||"￿"),this._cachedCompiledWhilePatterns}},aE=class Pt{static createCaptureRule(t,n,i,s,o){return t.registerRule(u=>new t3(n,u,i,s,o))}static getCompiledRuleId(t,n,i){return t.id||n.registerRule(s=>{if(t.id=s,t.match)return new n3(t.$vscodeTextmateLocation,t.id,t.name,t.match,Pt._compileCaptures(t.captures,n,i));if(typeof t.begin>"u"){t.repository&&(i=YS({},i,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Jb(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,Pt._compilePatterns(o,n,i))}return t.while?new Wc(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Pt._compileCaptures(t.beginCaptures||t.captures,n,i),t.while,Pt._compileCaptures(t.whileCaptures||t.captures,n,i),Pt._compilePatterns(t.patterns,n,i)):new dp(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,Pt._compileCaptures(t.beginCaptures||t.captures,n,i),t.end,Pt._compileCaptures(t.endCaptures||t.captures,n,i),t.applyEndPatternLast,Pt._compilePatterns(t.patterns,n,i))}),t.id}static _compileCaptures(t,n,i){let s=[];if(t){let o=0;for(const u in t){if(u==="$vscodeTextmateLocation")continue;const f=parseInt(u,10);f>o&&(o=f)}for(let u=0;u<=o;u++)s[u]=null;for(const u in t){if(u==="$vscodeTextmateLocation")continue;const f=parseInt(u,10);let h=0;t[u].patterns&&(h=Pt.getCompiledRuleId(t[u],n,i)),s[f]=Pt.createCaptureRule(n,t[u].$vscodeTextmateLocation,t[u].name,t[u].contentName,h)}}return s}static _compilePatterns(t,n,i){let s=[];if(t)for(let o=0,u=t.length;o<u;o++){const f=t[o];let h=-1;if(f.include){const d=rE(f.include);switch(d.kind){case 0:case 1:h=Pt.getCompiledRuleId(i[f.include],n,i);break;case 2:let y=i[d.ruleName];y&&(h=Pt.getCompiledRuleId(y,n,i));break;case 3:case 4:const p=d.scopeName,v=d.kind===4?d.ruleName:null,_=n.getExternalGrammar(p,i);if(_)if(v){let b=_.repository[v];b&&(h=Pt.getCompiledRuleId(b,n,_.repository))}else h=Pt.getCompiledRuleId(_.repository.$self,n,_.repository);break}}else h=Pt.getCompiledRuleId(f,n,i);if(h!==-1){const d=n.getRule(h);let y=!1;if((d instanceof Jb||d instanceof dp||d instanceof Wc)&&d.hasMissingPatterns&&d.patterns.length===0&&(y=!0),y)continue;s.push(h)}}return{patterns:s,hasMissingPatterns:(t?t.length:0)!==s.length}}},Co=class sE{constructor(t,n){W(this,"source");W(this,"ruleId");W(this,"hasAnchor");W(this,"hasBackReferences");W(this,"_anchorCache");if(t&&typeof t=="string"){const i=t.length;let s=0,o=[],u=!1;for(let f=0;f<i;f++)if(t.charAt(f)==="\\"&&f+1<i){const d=t.charAt(f+1);d==="z"?(o.push(t.substring(s,f)),o.push("$(?!\\n)(?<!\\n)"),s=f+2):(d==="A"||d==="G")&&(u=!0),f++}this.hasAnchor=u,s===0?this.source=t:(o.push(t.substring(s,i)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=WP.test(this.source):this.hasBackReferences=!1}clone(){return new sE(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,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(s=>t.substring(s.start,s.end));return Zb.lastIndex=0,this.source.replace(Zb,(s,o)=>JS(i[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],i=[],s=[],o,u,f,h;for(o=0,u=this.source.length;o<u;o++)f=this.source.charAt(o),t[o]=f,n[o]=f,i[o]=f,s[o]=f,f==="\\"&&o+1<u&&(h=this.source.charAt(o+1),h==="A"?(t[o+1]="￿",n[o+1]="￿",i[o+1]="A",s[o+1]="A"):h==="G"?(t[o+1]="￿",n[o+1]="G",i[o+1]="￿",s[o+1]="G"):(t[o+1]=h,n[o+1]=h,i[o+1]=h,s[o+1]=h),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:i.join(""),A1_G1:s.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Ro=class{constructor(){W(this,"_items");W(this,"_hasAnchors");W(this,"_cached");W(this,"_anchorCache");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(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Wb(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let i=this._items.map(s=>s.resolveAnchors(t,n));return new Wb(e,i,this._items.map(s=>s.ruleId))}},Wb=class{constructor(e,t,n){W(this,"scanner");this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
260
+ `)}findNextMatchSync(e,t,n){const i=this.scanner.findNextMatchSync(e,t,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},Am=class{constructor(e,t){this.languageId=e,this.tokenType=t}},qr,r3=(qr=class{constructor(t,n){W(this,"_defaultAttributes");W(this,"_embeddedLanguagesMatcher");W(this,"_getBasicScopeAttributes",new WS(t=>{const n=this._scopeToLanguage(t),i=this._toStandardTokenType(t);return new Am(n,i)}));this._defaultAttributes=new Am(t,8),this._embeddedLanguagesMatcher=new i3(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?qr._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(qr.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!")}},W(qr,"_NULL_SCOPE_METADATA",new Am(0,0)),W(qr,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),qr),i3=class{constructor(e){W(this,"values");W(this,"scopesRegExp");if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,i])=>JS(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}},ex=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function lE(e,t,n,i,s,o,u,f){const h=t.content.length;let d=!1,y=-1;if(u){const _=a3(e,t,n,i,s,o);s=_.stack,i=_.linePos,n=_.isFirstLine,y=_.anchorPosition}const p=Date.now();for(;!d;){if(f!==0&&Date.now()-p>f)return new ex(s,!0);v()}return new ex(s,!1);function v(){const _=s3(e,t,n,i,s,y);if(!_){o.produce(s,h),d=!0;return}const b=_.captureIndices,E=_.matchedRuleId,k=b&&b.length>0?b[0].end>i:!1;if(E===e3){const T=s.getRule(e);o.produce(s,b[0].start),s=s.withContentNameScopesList(s.nameScopesList),uo(e,t,n,s,o,T.endCaptures,b),o.produce(s,b[0].end);const R=s;if(s=s.parent,y=R.getAnchorPos(),!k&&R.getEnterPos()===i){s=R,o.produce(s,h),d=!0;return}}else{const T=e.getRule(E);o.produce(s,b[0].start);const R=s,L=T.getName(t.content,b),z=s.contentNameScopesList.pushAttributed(L,e);if(s=s.push(E,i,y,b[0].end===h,null,z,z),T instanceof dp){const V=T;uo(e,t,n,s,o,V.beginCaptures,b),o.produce(s,b[0].end),y=b[0].end;const O=V.getContentName(t.content,b),U=z.pushAttributed(O,e);if(s=s.withContentNameScopesList(U),V.endHasBackReferences&&(s=s.withEndRule(V.getEndWithResolvedBackReferences(t.content,b))),!k&&R.hasSameRuleAs(s)){s=s.pop(),o.produce(s,h),d=!0;return}}else if(T instanceof Wc){const V=T;uo(e,t,n,s,o,V.beginCaptures,b),o.produce(s,b[0].end),y=b[0].end;const O=V.getContentName(t.content,b),U=z.pushAttributed(O,e);if(s=s.withContentNameScopesList(U),V.whileHasBackReferences&&(s=s.withEndRule(V.getWhileWithResolvedBackReferences(t.content,b))),!k&&R.hasSameRuleAs(s)){s=s.pop(),o.produce(s,h),d=!0;return}}else if(uo(e,t,n,s,o,T.captures,b),o.produce(s,b[0].end),s=s.pop(),!k){s=s.safePop(),o.produce(s,h),d=!0;return}}b[0].end>i&&(i=b[0].end,n=!1)}}function a3(e,t,n,i,s,o){let u=s.beginRuleCapturedEOL?0:-1;const f=[];for(let h=s;h;h=h.pop()){const d=h.getRule(e);d instanceof Wc&&f.push({rule:d,stack:h})}for(let h=f.pop();h;h=f.pop()){const{ruleScanner:d,findOptions:y}=u3(h.rule,e,h.stack.endRule,n,i===u),p=d.findNextMatchSync(t,i,y);if(p){if(p.ruleId!==iE){s=h.stack.pop();break}p.captureIndices&&p.captureIndices.length&&(o.produce(h.stack,p.captureIndices[0].start),uo(e,t,n,h.stack,o,h.rule.whileCaptures,p.captureIndices),o.produce(h.stack,p.captureIndices[0].end),u=p.captureIndices[0].end,p.captureIndices[0].end>i&&(i=p.captureIndices[0].end,n=!1))}else{s=h.stack.pop();break}}return{stack:s,linePos:i,anchorPosition:u,isFirstLine:n}}function s3(e,t,n,i,s,o){const u=l3(e,t,n,i,s,o),f=e.getInjections();if(f.length===0)return u;const h=o3(f,e,t,n,i,s,o);if(!h)return u;if(!u)return h;const d=u.captureIndices[0].start,y=h.captureIndices[0].start;return y<d||h.priorityMatch&&y===d?h:u}function l3(e,t,n,i,s,o){const u=s.getRule(e),{ruleScanner:f,findOptions:h}=oE(u,e,s.endRule,n,i===o),d=f.findNextMatchSync(t,i,h);return d?{captureIndices:d.captureIndices,matchedRuleId:d.ruleId}:null}function o3(e,t,n,i,s,o,u){let f=Number.MAX_VALUE,h=null,d,y=0;const p=o.contentNameScopesList.getScopeNames();for(let v=0,_=e.length;v<_;v++){const b=e[v];if(!b.matcher(p))continue;const E=t.getRule(b.ruleId),{ruleScanner:k,findOptions:T}=oE(E,t,null,i,s===u),R=k.findNextMatchSync(n,s,T);if(!R)continue;const L=R.captureIndices[0].start;if(!(L>=f)&&(f=L,h=R.captureIndices,d=R.ruleId,y=b.priority,f===s))break}return h?{priorityMatch:y===-1,captureIndices:h,matchedRuleId:d}:null}function oE(e,t,n,i,s){return{ruleScanner:e.compileAG(t,n,i,s),findOptions:0}}function u3(e,t,n,i,s){return{ruleScanner:e.compileWhileAG(t,n,i,s),findOptions:0}}function uo(e,t,n,i,s,o,u){if(o.length===0)return;const f=t.content,h=Math.min(o.length,u.length),d=[],y=u[0].end;for(let p=0;p<h;p++){const v=o[p];if(v===null)continue;const _=u[p];if(_.length===0)continue;if(_.start>y)break;for(;d.length>0&&d[d.length-1].endPos<=_.start;)s.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop();if(d.length>0?s.produceFromScopes(d[d.length-1].scopes,_.start):s.produce(i,_.start),v.retokenizeCapturedWithRuleId){const E=v.getName(f,u),k=i.contentNameScopesList.pushAttributed(E,e),T=v.getContentName(f,u),R=k.pushAttributed(T,e),L=i.push(v.retokenizeCapturedWithRuleId,_.start,-1,!1,null,k,R),z=e.createOnigString(f.substring(0,_.end));lE(e,z,n&&_.start===0,_.start,L,s,!1,0),nE(z);continue}const b=v.getName(f,u);if(b!==null){const k=(d.length>0?d[d.length-1].scopes:i.contentNameScopesList).pushAttributed(b,e);d.push(new c3(k,_.end))}}for(;d.length>0;)s.produceFromScopes(d[d.length-1].scopes,d[d.length-1].endPos),d.pop()}var c3=class{constructor(e,t){W(this,"scopes");W(this,"endPos");this.scopes=e,this.endPos=t}};function f3(e,t,n,i,s,o,u,f){return new d3(e,t,n,i,s,o,u,f)}function tx(e,t,n,i,s){const o=Zc(t,ef),u=aE.getCompiledRuleId(n,i,s.repository);for(const f of o)e.push({debugSelector:t,matcher:f.matcher,ruleId:u,grammar:s,priority:f.priority})}function ef(e,t){if(t.length<e.length)return!1;let n=0;return e.every(i=>{for(let s=n;s<t.length;s++)if(h3(t[s],i))return n=s+1,!0;return!1})}function h3(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var d3=class{constructor(e,t,n,i,s,o,u,f){W(this,"_rootId");W(this,"_lastRuleId");W(this,"_ruleId2desc");W(this,"_includedGrammars");W(this,"_grammarRepository");W(this,"_grammar");W(this,"_injections");W(this,"_basicScopeAttributesProvider");W(this,"_tokenTypeMatchers");if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=f,this._basicScopeAttributesProvider=new r3(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=u,this._grammar=nx(t,null),this._injections=null,this._tokenTypeMatchers=[],s)for(const h of Object.keys(s)){const d=Zc(h,ef);for(const y of d)this._tokenTypeMatchers.push({matcher:y.matcher,type:s[h]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:s=>s===this._rootScopeName?this._grammar:this.getExternalGrammar(s),injections:s=>this._grammarRepository.injections(s)},t=[],n=this._rootScopeName,i=e.lookup(n);if(i){const s=i.injections;if(s)for(let u in s)tx(t,u,s[u],this,i);const o=this._grammarRepository.injections(n);o&&o.forEach(u=>{const f=this.getExternalGrammar(u);if(f){const h=f.injectionSelector;h&&tx(t,h,f,this,f)}})}return t.sort((s,o)=>s.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=nx(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const i=this._tokenize(e,t,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,t,n=0){const i=this._tokenize(e,t,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,t,n,i){this._rootId===-1&&(this._rootId=aE.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let s;if(!t||t===mp.NULL){s=!0;const d=this._basicScopeAttributesProvider.getDefaultAttributes(),y=this.themeProvider.getDefaults(),p=Js.set(0,d.languageId,d.tokenType,null,y.fontStyle,y.foregroundId,y.backgroundId),v=this.getRule(this._rootId).getName(null,null);let _;v?_=_o.createRootAndLookUpScopeName(v,p,this):_=_o.createRoot("unknown",p),t=new mp(null,this._rootId,-1,-1,!1,null,_,_)}else s=!1,t.reset();e=e+`
261
+ `;const o=this.createOnigString(e),u=o.content.length,f=new p3(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),h=lE(this,o,s,0,t,f,!0,i);return nE(o),{lineLength:u,lineTokens:f,ruleStack:h.stack,stoppedEarly:h.stoppedEarly}}};function nx(e,t){return e=NP(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var _o=class rr{constructor(t,n,i){this.parent=t,this.scopePath=n,this.tokenAttributes=i}static fromExtension(t,n){let i=t,s=(t==null?void 0:t.scopePath)??null;for(const o of n)s=Rm.push(s,o.scopeNames),i=new rr(i,s,o.encodedTokenAttributes);return i}static createRoot(t,n){return new rr(null,new Rm(null,t),n)}static createRootAndLookUpScopeName(t,n,i){const s=i.getMetadataForScope(t),o=new Rm(null,t),u=i.themeProvider.themeMatch(o),f=rr.mergeAttributes(n,s,u);return new rr(null,o,f)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return rr.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,i){let s=-1,o=0,u=0;return i!==null&&(s=i.fontStyle,o=i.foregroundId,u=i.backgroundId),Js.set(t,n.languageId,n.tokenType,null,s,o,u)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return rr._pushAttributed(this,t,n);const i=t.split(/ /g);let s=this;for(const o of i)s=rr._pushAttributed(s,o,n);return s}static _pushAttributed(t,n,i){const s=i.getMetadataForScope(n),o=t.scopePath.push(n),u=i.themeProvider.themeMatch(o),f=rr.mergeAttributes(t.tokenAttributes,s,u);return new rr(t,o,f)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){var s;const n=[];let i=this;for(;i&&i!==t;)n.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined(((s=i.parent)==null?void 0:s.scopePath)??null)}),i=i.parent;return i===t?n.reverse():void 0}},In,mp=(In=class{constructor(t,n,i,s,o,u,f,h){W(this,"_stackElementBrand");W(this,"_enterPos");W(this,"_anchorPos");W(this,"depth");this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=u,this.nameScopesList=f,this.contentNameScopesList=h,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=i,this._anchorPos=s}equals(t){return t===null?!1:In._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?_o.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){In._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,i,s,o,u,f){return new In(this,t,n,i,s,o,u,f)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){var i,s;return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${(i=this.nameScopesList)==null?void 0:i.toString()}, ${(s=this.contentNameScopesList)==null?void 0:s.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new In(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){var t,n,i;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((n=this.nameScopesList)==null?void 0:n.getExtensionIfDefined(((t=this.parent)==null?void 0:t.nameScopesList)??null))??[],contentNameScopesList:((i=this.contentNameScopesList)==null?void 0:i.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(t,n){const i=_o.fromExtension((t==null?void 0:t.nameScopesList)??null,n.nameScopesList);return new In(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,i,_o.fromExtension(i,n.contentNameScopesList))}},W(In,"NULL",new In(null,0,0,0,!1,null,null,null)),In),m3=class{constructor(e,t){W(this,"balancedBracketScopes");W(this,"unbalancedBracketScopes");W(this,"allowAny",!1);this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Zc(n,ef).map(i=>i.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Zc(n,ef).map(i=>i.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},p3=class{constructor(e,t,n,i){W(this,"_emitBinaryTokens");W(this,"_lineText");W(this,"_tokens");W(this,"_binaryTokens");W(this,"_lastTokenEndIndex");W(this,"_tokenTypeOverrides");this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var i;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let s=(e==null?void 0:e.tokenAttributes)??0,o=!1;if((i=this.balancedBracketSelectors)!=null&&i.matchesAlways&&(o=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const u=(e==null?void 0:e.getScopeNames())??[];for(const f of this._tokenTypeOverrides)f.matcher(u)&&(s=Js.set(s,0,f.type,null,-1,0,0));this.balancedBracketSelectors&&(o=this.balancedBracketSelectors.match(u))}if(o&&(s=Js.set(s,0,8,o,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===s){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(s),this._lastTokenEndIndex=t;return}const n=(e==null?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let i=0,s=this._binaryTokens.length;i<s;i++)n[i]=this._binaryTokens[i];return n}},g3=class{constructor(e,t){W(this,"_grammars",new Map);W(this,"_rawGrammars",new Map);W(this,"_injectionGrammars",new Map);W(this,"_theme");this._onigLib=t,this._theme=e}dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,i,s){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,f3(e,o,t,n,i,s,this,this._onigLib))}return this._grammars.get(e)}},y3=class{constructor(t){W(this,"_options");W(this,"_syncRegistry");W(this,"_ensureGrammarCache");this._options=t,this._syncRegistry=new g3(Xc.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Xc.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,i){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:i})}loadGrammarWithConfiguration(t,n,i){return this._loadGrammar(t,n,i.embeddedLanguages,i.tokenTypes,new m3(i.balancedBracketSelectors||[],i.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,i,s,o){const u=new QP(this._syncRegistry,t);for(;u.Q.length>0;)u.Q.map(f=>this._loadSingleGrammar(f.scopeName)),u.processQueue();return this._grammarForScopeName(t,n,i,s,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const i=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,i)}}addGrammar(t,n=[],i=0,s=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,i,s)}_grammarForScopeName(t,n=0,i=null,s=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,i,s,o)}},pp=mp.NULL;const v3=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],_3=/["&'<>`]/g,b3=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,x3=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,S3=/[|\\{}()[\]^$+*?.]/g,rx=new WeakMap;function E3(e,t){if(e=e.replace(t.subset?w3(t.subset):_3,i),t.subset||t.escapeOnly)return e;return e.replace(b3,n).replace(x3,i);function n(s,o,u){return t.format((s.charCodeAt(0)-55296)*1024+s.charCodeAt(1)-56320+65536,u.charCodeAt(o+2),t)}function i(s,o,u){return t.format(s.charCodeAt(0),u.charCodeAt(o+1),t)}}function w3(e){let t=rx.get(e);return t||(t=T3(e),rx.set(e,t)),t}function T3(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(S3,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const k3=/[\dA-Fa-f]/;function C3(e,t,n){const i="&#x"+e.toString(16).toUpperCase();return n&&t&&!k3.test(String.fromCharCode(t))?i:i+";"}const R3=/\d/;function A3(e,t,n){const i="&#"+String(e);return n&&t&&!R3.test(String.fromCharCode(t))?i:i+";"}const O3=["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"],Om={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:"€"},L3=["cent","copy","divide","gt","lt","not","para","times"],uE={}.hasOwnProperty,gp={};let xc;for(xc in Om)uE.call(Om,xc)&&(gp[Om[xc]]=xc);const N3=/[^\dA-Za-z]/;function j3(e,t,n,i){const s=String.fromCharCode(e);if(uE.call(gp,s)){const o=gp[s],u="&"+o;return n&&O3.includes(o)&&!L3.includes(o)&&(!i||t&&t!==61&&N3.test(String.fromCharCode(t)))?u:u+";"}return""}function D3(e,t,n){let i=C3(e,t,n.omitOptionalSemicolons),s;if((n.useNamedReferences||n.useShortestReferences)&&(s=j3(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!s)&&n.useShortestReferences){const o=A3(e,t,n.omitOptionalSemicolons);o.length<i.length&&(i=o)}return s&&(!n.useShortestReferences||s.length<i.length)?s:i}function Ds(e,t){return E3(e,Object.assign({format:D3},t))}const M3=/^>|^->|<!--|-->|--!>|<!-$/g,P3=[">"],z3=["<",">"];function I3(e,t,n,i){return i.settings.bogusComments?"<?"+Ds(e.value,Object.assign({},i.settings.characterReferences,{subset:P3}))+">":"<!--"+e.value.replace(M3,s)+"-->";function s(o){return Ds(o,Object.assign({},i.settings.characterReferences,{subset:z3}))}}function B3(e,t,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"}const Et=fE(1),cE=fE(-1),U3=[];function fE(e){return t;function t(n,i,s){const o=n?n.children:U3;let u=(i||0)+e,f=o[u];if(!s)for(;f&&vf(f);)u+=e,f=o[u];return f}}const q3={}.hasOwnProperty;function hE(e){return t;function t(n,i,s){return q3.call(e,n.tagName)&&e[n.tagName](n,i,s)}}const eg=hE({body:H3,caption:Lm,colgroup:Lm,dd:$3,dt:Q3,head:Lm,html:V3,li:F3,optgroup:Y3,option:K3,p:G3,rp:ix,rt:ix,tbody:Z3,td:ax,tfoot:J3,th:ax,thead:X3,tr:W3});function Lm(e,t,n){const i=Et(n,t,!0);return!i||i.type!=="comment"&&!(i.type==="text"&&vf(i.value.charAt(0)))}function V3(e,t,n){const i=Et(n,t);return!i||i.type!=="comment"}function H3(e,t,n){const i=Et(n,t);return!i||i.type!=="comment"}function G3(e,t,n){const i=Et(n,t);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 F3(e,t,n){const i=Et(n,t);return!i||i.type==="element"&&i.tagName==="li"}function Q3(e,t,n){const i=Et(n,t);return!!(i&&i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd"))}function $3(e,t,n){const i=Et(n,t);return!i||i.type==="element"&&(i.tagName==="dt"||i.tagName==="dd")}function ix(e,t,n){const i=Et(n,t);return!i||i.type==="element"&&(i.tagName==="rp"||i.tagName==="rt")}function Y3(e,t,n){const i=Et(n,t);return!i||i.type==="element"&&i.tagName==="optgroup"}function K3(e,t,n){const i=Et(n,t);return!i||i.type==="element"&&(i.tagName==="option"||i.tagName==="optgroup")}function X3(e,t,n){const i=Et(n,t);return!!(i&&i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot"))}function Z3(e,t,n){const i=Et(n,t);return!i||i.type==="element"&&(i.tagName==="tbody"||i.tagName==="tfoot")}function J3(e,t,n){return!Et(n,t)}function W3(e,t,n){const i=Et(n,t);return!i||i.type==="element"&&i.tagName==="tr"}function ax(e,t,n){const i=Et(n,t);return!i||i.type==="element"&&(i.tagName==="td"||i.tagName==="th")}const e4=hE({body:r4,colgroup:i4,head:n4,html:t4,tbody:a4});function t4(e){const t=Et(e,-1);return!t||t.type!=="comment"}function n4(e){const t=new Set;for(const i of e.children)if(i.type==="element"&&(i.tagName==="base"||i.tagName==="title")){if(t.has(i.tagName))return!1;t.add(i.tagName)}const n=e.children[0];return!n||n.type==="element"}function r4(e){const t=Et(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&vf(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function i4(e,t,n){const i=cE(n,t),s=Et(e,-1,!0);return n&&i&&i.type==="element"&&i.tagName==="colgroup"&&eg(i,n.children.indexOf(i),n)?!1:!!(s&&s.type==="element"&&s.tagName==="col")}function a4(e,t,n){const i=cE(n,t),s=Et(e,-1);return n&&i&&i.type==="element"&&(i.tagName==="thead"||i.tagName==="tbody")&&eg(i,n.children.indexOf(i),n)?!1:!!(s&&s.type==="element"&&s.tagName==="tr")}const Sc={name:[[`
262
262
  \f\r &/=>`.split(""),`
263
263
  \f\r "&'/=>\``.split("")],[`\0
264
264
  \f\r "&'/<=>`.split(""),`\0
@@ -266,9 +266,9 @@ Error generating stack: `+c.message+`
266
266
  \f\r &>`.split(""),`\0
267
267
  \f\r "&'<=>\``.split("")],[`\0
268
268
  \f\r "&'<=>\``.split(""),`\0
269
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function $3(e,t,n,i){const s=i.schema,o=s.space==="svg"?!1:i.settings.omitOptionalTags;let u=s.space==="svg"?i.settings.closeEmptyElements:i.settings.voids.includes(e.tagName.toLowerCase());const f=[];let h;s.space==="html"&&e.tagName==="svg"&&(i.schema=Uo);const d=Y3(i,e.properties),y=i.all(s.space==="html"&&e.tagName==="template"?e.content:e);return i.schema=s,y&&(u=!1),(d||!o||!q3(e,t,n))&&(f.push("<",e.tagName,d?" "+d:""),u&&(s.space==="svg"||i.settings.closeSelfClosing)&&(h=d.charAt(d.length-1),(!i.settings.tightSelfClosing||h==="/"||h&&h!=='"'&&h!=="'")&&f.push(" "),f.push("/")),f.push(">")),f.push(y),!u&&(!o||!Jp(e,t,n))&&f.push("</"+e.tagName+">"),f.join("")}function Y3(e,t){const n=[];let i=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=K3(e,s,t[s]);o&&n.push(o)}}for(;++i<n.length;){const o=e.settings.tightAttributes?n[i].charAt(n[i].length-1):void 0;i!==n.length-1&&o!=='"'&&o!=="'"&&(n[i]+=" ")}return n.join("")}function K3(e,t,n){const i=Q1(e.schema,t),s=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let u=e.quote,f;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 h=js(i.attribute,Object.assign({},e.settings.characterReferences,{subset:Sc.name[s][o]}));return n===!0||(n=Array.isArray(n)?(i.commaSeparated?I1:Y1)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?h:(e.settings.preferUnquoted&&(f=js(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Sc.unquoted[s][o]}))),f!==n&&(e.settings.quoteSmart&&$c(n,u)>$c(n,e.alternative)&&(u=e.alternative),f=u+js(n,Object.assign({},e.settings.characterReferences,{subset:(u==="'"?Sc.single:Sc.double)[s][o],attribute:!0}))+u),h+(f&&"="+f))}const X3=["<","&"];function fE(e,t,n,i){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:js(e.value,Object.assign({},i.settings.characterReferences,{subset:X3}))}function Z3(e,t,n,i){return i.settings.allowDangerousHtml?e.value:fE(e,t,n,i)}function J3(e,t,n,i){return i.all(e)}const W3=FD("type",{invalid:e4,unknown:t4,handlers:{comment:T3,doctype:k3,element:$3,raw:Z3,root:J3,text:fE}});function e4(e){throw new Error("Expected node, not `"+e+"`")}function t4(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const n4={},r4={},i4=[];function a4(e,t){const n=t||n4,i=n.quote||'"',s=i==='"'?"'":'"';if(i!=='"'&&i!=="'")throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:s4,all:l4,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||a3,characterReferences:n.characterReferences||r4,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Uo:$1,quote:i,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function s4(e,t,n){return W3(e,t,n,this)}function l4(e){const t=[],n=e&&e.children||i4;let i=-1;for(;++i<n.length;)t[i]=this.one(n[i],i,e);return t.join("")}function ef(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},i=typeof e=="string"?e:e.name;for(const[s,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[s]=o:s===i&&Object.assign(n,o);return n}function Pi(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function o4(e){return Array.isArray(e)?e:[e]}async function hE(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Wp(e){return!e||["plaintext","txt","text","plain"].includes(e)}function dE(e){return e==="ansi"||Wp(e)}function eg(e){return e==="none"}function mE(e){return eg(e)}function pE(e,t){var i;if(!t)return e;e.properties||(e.properties={}),(i=e.properties).class||(i.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const s of n)s&&!e.properties.class.includes(s)&&e.properties.class.push(s);return e}function wf(e,t=!1){var o;const n=e.split(/(\r?\n)/g);let i=0;const s=[];for(let u=0;u<n.length;u+=2){const f=t?n[u]+(n[u+1]||""):n[u];s.push([f,i]),i+=n[u].length,i+=((o=n[u+1])==null?void 0:o.length)||0}return s}function u4(e){const t=wf(e,!0).map(([s])=>s);function n(s){if(s===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=s,u=0;for(const f of t){if(o<f.length)break;o-=f.length,u++}return{line:u,character:o}}function i(s,o){let u=0;for(let f=0;f<s;f++)u+=t[f].length;return u+=o,u}return{lines:t,indexToPos:n,posToIndex:i}}function c4(e,t,n){const i=new Set;for(const o of e.matchAll(/lang=["']([\w-]+)["']/g))i.add(o[1]);for(const o of e.matchAll(/(?:```|~~~)([\w-]+)/g))i.add(o[1]);for(const o of e.matchAll(/\\begin\{([\w-]+)\}/g))i.add(o[1]);if(!n)return Array.from(i);const s=n.getBundledLanguages();return Array.from(i).filter(o=>o&&s[o])}const tg="light-dark()",f4=["color","background-color"];function h4(e,t){let n=0;const i=[];for(const s of t)s>n&&i.push({...e,content:e.content.slice(n,s),offset:e.offset+n}),n=s;return n<e.content.length&&i.push({...e,content:e.content.slice(n),offset:e.offset+n}),i}function d4(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((i,s)=>i-s);return n.length?e.map(i=>i.flatMap(s=>{const o=n.filter(u=>s.offset<u&&u<s.offset+s.content.length).map(u=>u-s.offset).sort((u,f)=>u-f);return o.length?h4(s,o):s})):e}function m4(e,t,n,i,s="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},u=t.map(y=>tf(e.variants[y])),f=new Set(u.flatMap(y=>Object.keys(y))),h={},d=(y,p)=>{const v=p==="color"?"":p==="background-color"?"-bg":`-${p}`;return n+t[y]+(p==="color"?"":v)};return u.forEach((y,p)=>{for(const v of f){const _=y[v]||"inherit";if(p===0&&i&&f4.includes(v))if(i===tg&&u.length>1){const x=t.findIndex(C=>C==="light"),E=t.findIndex(C=>C==="dark");if(x===-1||E===-1)throw new vt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const k=u[x][v]||"inherit",w=u[E][v]||"inherit";h[v]=`light-dark(${k}, ${w})`,s==="css-vars"&&(h[d(p,v)]=_)}else h[v]=_;else s==="css-vars"&&(h[d(p,v)]=_)}}),o.htmlStyle=h,o}function tf(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&zt.Italic&&(t["font-style"]="italic"),e.fontStyle&zt.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&zt.Underline&&n.push("underline"),e.fontStyle&zt.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function gp(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const gE=new WeakMap;function Tf(e,t){gE.set(e,t)}function Ro(e){return gE.get(e)}class il{constructor(...t){W(this,"_stacks",{});W(this,"lang");if(t.length===2){const[n,i]=t;this.lang=i,this._stacks=n}else{const[n,i,s]=t;this.lang=i,this._stacks={[s]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new il(Object.fromEntries(o4(n).map(i=>[i,mp])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return p4(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function p4(e){const t=[],n=new Set;function i(s){var u;if(n.has(s))return;n.add(s);const o=(u=s==null?void 0:s.nameScopesList)==null?void 0:u.scopeName;o&&t.push(o),s.parent&&i(s.parent)}return i(e),t}function g4(e,t){if(!(e instanceof il))throw new vt("Invalid grammar state");return e.getInternalStack(t)}function y4(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let i=function(u){if(typeof u=="number"){if(u<0||u>n.source.length)throw new vt(`Invalid decoration offset: ${u}. Code length: ${n.source.length}`);return{...s.indexToPos(u),offset:u}}else{const f=s.lines[u.line];if(f===void 0)throw new vt(`Invalid decoration position ${JSON.stringify(u)}. Lines length: ${s.lines.length}`);let h=u.character;if(h<0&&(h=f.length+h),h<0||h>f.length)throw new vt(`Invalid decoration position ${JSON.stringify(u)}. Line ${u.line} length: ${f.length}`);return{...u,character:h,offset:s.posToIndex(u.line,h)}}};const s=u4(n.source),o=(n.options.decorations||[]).map(u=>({...u,start:i(u.start),end:i(u.end)}));v4(o),e.set(n.meta,{decorations:o,converter:s,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var u;if(!((u=this.options.decorations)!=null&&u.length))return;const s=t(this).decorations.flatMap(f=>[f.start.offset,f.end.offset]);return d4(n,s)},code(n){var y;if(!((y=this.options.decorations)!=null&&y.length))return;const i=t(this),s=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(s.length!==i.converter.lines.length)throw new vt(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function o(p,v,_,x){const E=s[p];let k="",w=-1,C=-1;if(v===0&&(w=0),_===0&&(C=0),_===Number.POSITIVE_INFINITY&&(C=E.children.length),w===-1||C===-1)for(let z=0;z<E.children.length;z++)k+=yE(E.children[z]),w===-1&&k.length===v&&(w=z+1),C===-1&&k.length===_&&(C=z+1);if(w===-1)throw new vt(`Failed to find start index for decoration ${JSON.stringify(x.start)}`);if(C===-1)throw new vt(`Failed to find end index for decoration ${JSON.stringify(x.end)}`);const L=E.children.slice(w,C);if(!x.alwaysWrap&&L.length===E.children.length)f(E,x,"line");else if(!x.alwaysWrap&&L.length===1&&L[0].type==="element")f(L[0],x,"token");else{const z={type:"element",tagName:"span",properties:{},children:L};f(z,x,"wrapper"),E.children.splice(w,L.length,z)}}function u(p,v){s[p]=f(s[p],v,"line")}function f(p,v,_){var k;const x=v.properties||{},E=v.transform||(w=>w);return p.tagName=v.tagName||"span",p.properties={...p.properties,...x,class:p.properties.class},(k=v.properties)!=null&&k.class&&pE(p,v.properties.class),p=E(p,_)||p,p}const h=[],d=i.decorations.sort((p,v)=>v.start.offset-p.start.offset||p.end.offset-v.end.offset);for(const p of d){const{start:v,end:_}=p;if(v.line===_.line)o(v.line,v.character,_.character,p);else if(v.line<_.line){o(v.line,v.character,Number.POSITIVE_INFINITY,p);for(let x=v.line+1;x<_.line;x++)h.unshift(()=>u(x,p));o(_.line,0,_.character,p)}}h.forEach(p=>p())}}}function v4(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new vt(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=t+1;i<e.length;i++){const s=e[i],o=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,u=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,f=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,h=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(o||u||f||h){if(o&&u||f&&h||f&&n.start.offset===n.end.offset||u&&s.start.offset===s.end.offset)continue;throw new vt(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function yE(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(yE).join(""):""}const _4=[y4()];function nf(e){const t=b4(e.transformers||[]);return[...t.pre,...t.normal,...t.post,..._4]}function b4(e){const t=[],n=[],i=[];for(const s of e)switch(s.enforce){case"pre":t.push(s);break;case"post":n.push(s);break;default:i.push(s)}return{pre:t,post:n,normal:i}}var ua=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Lm={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function x4(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const i=e.indexOf("m",n);if(i!==-1)return{sequence:e.substring(n+2,i).split(";"),startPosition:n,position:i+1}}return{position:e.length}}function ix(e){const t=e.shift();if(t==="2"){const n=e.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(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function S4(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const i=Number.parseInt(n);if(!Number.isNaN(i))if(i===0)t.push({type:"resetAll"});else if(i<=9)Lm[i]&&t.push({type:"setDecoration",value:Lm[i]});else if(i<=29){const s=Lm[i-20];s&&(t.push({type:"resetDecoration",value:s}),s==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:ua[i-30]}});else if(i===38){const s=ix(e);s&&t.push({type:"setForegroundColor",value:s})}else if(i===39)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:ua[i-40]}});else if(i===48){const s=ix(e);s&&t.push({type:"setBackgroundColor",value:s})}else i===49?t.push({type:"resetBackgroundColor"}):i===53?t.push({type:"setDecoration",value:"overline"}):i===55?t.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:ua[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:ua[i-100+8]}})}return t}function E4(){let e=null,t=null,n=new Set;return{parse(i){const s=[];let o=0;do{const u=x4(i,o),f=u.sequence?i.substring(o,u.startPosition):i.substring(o);if(f.length>0&&s.push({value:f,foreground:e,background:t,decorations:new Set(n)}),u.sequence){const h=S4(u.sequence);for(const d of h)d.type==="resetAll"?(e=null,t=null,n.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of h)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&n.add(d.value)}o=u.position}while(o<i.length);return s}}}var w4={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 T4(e=w4){function t(f){return e[f]}function n(f){return`#${f.map(h=>Math.max(0,Math.min(h,255)).toString(16).padStart(2,"0")).join("")}`}let i;function s(){if(i)return i;i=[];for(let d=0;d<ua.length;d++)i.push(t(ua[d]));let f=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let y=0;y<6;y++)for(let p=0;p<6;p++)i.push(n([f[d],f[y],f[p]]));let h=8;for(let d=0;d<24;d++,h+=10)i.push(n([h,h,h]));return i}function o(f){return s()[f]}function u(f){switch(f.type){case"named":return t(f.name);case"rgb":return n(f.rgb);case"table":return o(f.index)}}return{value:u}}const k4={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 C4(e,t,n){const i=ef(e,n),s=wf(t),o=Object.fromEntries(ua.map(h=>{var p;const d=`terminal.ansi${h[0].toUpperCase()}${h.substring(1)}`,y=(p=e.colors)==null?void 0:p[d];return[h,y||k4[h]]})),u=T4(o),f=E4();return s.map(h=>f.parse(h[0]).map(d=>{let y,p;d.decorations.has("reverse")?(y=d.background?u.value(d.background):e.bg,p=d.foreground?u.value(d.foreground):e.fg):(y=d.foreground?u.value(d.foreground):e.fg,p=d.background?u.value(d.background):void 0),y=Pi(y,i),p=Pi(p,i),d.decorations.has("dim")&&(y=R4(y));let v=zt.None;return d.decorations.has("bold")&&(v|=zt.Bold),d.decorations.has("italic")&&(v|=zt.Italic),d.decorations.has("underline")&&(v|=zt.Underline),d.decorations.has("strikethrough")&&(v|=zt.Strikethrough),{content:d.value,offset:h[1],color:y,bgColor:p,fontStyle:v}}))}function R4(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/i);if(t)if(t[3]){const i=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${i}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(i=>`${i}${i}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function ng(e,t,n={}){const{lang:i="text",theme:s=e.getLoadedThemes()[0]}=n;if(Wp(i)||eg(s))return wf(t).map(h=>[{content:h[0],offset:h[1]}]);const{theme:o,colorMap:u}=e.setTheme(s);if(i==="ansi")return C4(o,t,n);const f=e.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==f.name)throw new vt(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${f.name}"`);if(!n.grammarState.themes.includes(o.name))throw new vt(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return O4(t,f,o,u,n)}function A4(...e){if(e.length===2)return Ro(e[1]);const[t,n,i={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=i;if(Wp(s)||eg(o))throw new vt("Plain language does not have grammar state");if(s==="ansi")throw new vt("ANSI language does not have grammar state");const{theme:u,colorMap:f}=t.setTheme(o),h=t.getLanguage(s);return new il(rf(n,h,u,f,i).stateStack,h.name,u.name)}function O4(e,t,n,i,s){const o=rf(e,t,n,i,s),u=new il(rf(e,t,n,i,s).stateStack,t.name,n.name);return Tf(o.tokens,u),o.tokens}function rf(e,t,n,i,s){const o=ef(n,s),{tokenizeMaxLineLength:u=0,tokenizeTimeLimit:f=500}=s,h=wf(e);let d=s.grammarState?g4(s.grammarState,n.name)??mp:s.grammarContextCode!=null?rf(s.grammarContextCode,t,n,i,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:mp,y=[];const p=[];for(let v=0,_=h.length;v<_;v++){const[x,E]=h[v];if(x===""){y=[],p.push([]);continue}if(u>0&&x.length>=u){y=[],p.push([{content:x,offset:E,color:"",fontStyle:0}]);continue}let k,w,C;s.includeExplanation&&(k=t.tokenizeLine(x,d,f),w=k.tokens,C=0);const L=t.tokenizeLine2(x,d,f),z=L.tokens.length/2;for(let B=0;B<z;B++){const A=L.tokens[2*B],q=B+1<z?L.tokens[2*B+2]:x.length;if(A===q)continue;const $=L.tokens[2*B+1],ne=Pi(i[Zs.getForeground($)],o),N=Zs.getFontStyle($),Q={content:x.substring(A,q),offset:E+A,color:ne,fontStyle:N};if(s.includeExplanation){const re=[];if(s.includeExplanation!=="scopeName")for(const le of n.settings){let ae;switch(typeof le.scope){case"string":ae=le.scope.split(/,/).map(V=>V.trim());break;case"object":ae=le.scope;break;default:continue}re.push({settings:le,selectors:ae.map(V=>V.split(/ /))})}Q.explanation=[];let me=0;for(;A+me<q;){const le=w[C],ae=x.substring(le.startIndex,le.endIndex);me+=ae.length,Q.explanation.push({content:ae,scopes:s.includeExplanation==="scopeName"?L4(le.scopes):N4(re,le.scopes)}),C+=1}}y.push(Q)}p.push(y),y=[],d=L.ruleStack}return{tokens:p,stateStack:d}}function L4(e){return e.map(t=>({scopeName:t}))}function N4(e,t){const n=[];for(let i=0,s=t.length;i<s;i++){const o=t[i];n[i]={scopeName:o,themeMatches:D4(e,o,t.slice(0,i))}}return n}function ax(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function j4(e,t,n){if(!ax(e[e.length-1],t))return!1;let i=e.length-2,s=n.length-1;for(;i>=0&&s>=0;)ax(e[i],n[s])&&(i-=1),s-=1;return i===-1}function D4(e,t,n){const i=[];for(const{selectors:s,settings:o}of e)for(const u of s)if(j4(u,t,n)){i.push(o);break}return i}function vE(e,t,n){const i=Object.entries(n.themes).filter(h=>h[1]).map(h=>({color:h[0],theme:h[1]})),s=i.map(h=>{const d=ng(e,t,{...n,theme:h.theme}),y=Ro(d),p=typeof h.theme=="string"?h.theme:h.theme.name;return{tokens:d,state:y,theme:p}}),o=M4(...s.map(h=>h.tokens)),u=o[0].map((h,d)=>h.map((y,p)=>{const v={content:y.content,variants:{},offset:y.offset};return"includeExplanation"in n&&n.includeExplanation&&(v.explanation=y.explanation),o.forEach((_,x)=>{const{content:E,explanation:k,offset:w,...C}=_[d][p];v.variants[i[x].color]=C}),v})),f=s[0].state?new il(Object.fromEntries(s.map(h=>{var d;return[h.theme,(d=h.state)==null?void 0:d.getInternalStack(h.theme)]})),s[0].state.lang):void 0;return f&&Tf(u,f),u}function M4(...e){const t=e.map(()=>[]),n=e.length;for(let i=0;i<e[0].length;i++){const s=e.map(h=>h[i]),o=t.map(()=>[]);t.forEach((h,d)=>h.push(o[d]));const u=s.map(()=>0),f=s.map(h=>h[0]);for(;f.every(h=>h);){const h=Math.min(...f.map(d=>d.content.length));for(let d=0;d<n;d++){const y=f[d];y.content.length===h?(o[d].push(y),u[d]+=1,f[d]=s[d][u[d]]):(o[d].push({...y,content:y.content.slice(0,h)}),f[d]={...y,content:y.content.slice(h),offset:y.offset+h})}}}return t}function af(e,t,n){let i,s,o,u,f,h;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:y="--shiki-",colorsRendering:p="css-vars"}=n,v=Object.entries(n.themes).filter(w=>w[1]).map(w=>({color:w[0],theme:w[1]})).sort((w,C)=>w.color===d?-1:C.color===d?1:0);if(v.length===0)throw new vt("`themes` option must not be empty");const _=vE(e,t,n);if(h=Ro(_),d&&tg!==d&&!v.find(w=>w.color===d))throw new vt(`\`themes\` option must contain the defaultColor key \`${d}\``);const x=v.map(w=>e.getTheme(w.theme)),E=v.map(w=>w.color);o=_.map(w=>w.map(C=>m4(C,E,y,d,p))),h&&Tf(o,h);const k=v.map(w=>ef(w.theme,n));s=sx(v,x,k,y,d,"fg",p),i=sx(v,x,k,y,d,"bg",p),u=`shiki-themes ${x.map(w=>w.name).join(" ")}`,f=d?void 0:[s,i].join(";")}else if("theme"in n){const d=ef(n.theme,n);o=ng(e,t,n);const y=e.getTheme(n.theme);i=Pi(y.bg,d),s=Pi(y.fg,d),u=y.name,h=Ro(o)}else throw new vt("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:i,themeName:u,rootStyle:f,grammarState:h}}function sx(e,t,n,i,s,o,u){return e.map((f,h)=>{const d=Pi(t[h][o],n[h])||"inherit",y=`${i+f.color}${o==="bg"?"-bg":""}:${d}`;if(h===0&&s){if(s===tg&&e.length>1){const p=e.findIndex(E=>E.color==="light"),v=e.findIndex(E=>E.color==="dark");if(p===-1||v===-1)throw new vt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const _=Pi(t[p][o],n[p])||"inherit",x=Pi(t[v][o],n[v])||"inherit";return`light-dark(${_}, ${x});${y}`}return d}return u==="css-vars"?y:null}).filter(f=>!!f).join(";")}function sf(e,t,n,i={meta:{},options:n,codeToHast:(s,o)=>sf(e,s,o),codeToTokens:(s,o)=>af(e,s,o)}){var x,E;let s=t;for(const k of nf(n))s=((x=k.preprocess)==null?void 0:x.call(i,s,n))||s;let{tokens:o,fg:u,bg:f,themeName:h,rootStyle:d,grammarState:y}=af(e,s,n);const{mergeWhitespaces:p=!0,mergeSameStyleTokens:v=!1}=n;p===!0?o=z4(o):p==="never"&&(o=I4(o)),v&&(o=B4(o));const _={...i,get source(){return s}};for(const k of nf(n))o=((E=k.tokens)==null?void 0:E.call(_,o))||o;return P4(o,{...n,fg:u,bg:f,themeName:h,rootStyle:d},_,y)}function P4(e,t,n,i=Ro(e)){var x,E,k,w;const s=nf(t),o=[],u={type:"root",children:[]},{structure:f="classic",tabindex:h="0"}=t;let d={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...h!==!1&&h!=null?{tabindex:h.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([C])=>!C.startsWith("_")))},children:[]},y={type:"element",tagName:"code",properties:{},children:o};const p=[],v={...n,structure:f,addClassToHast:pE,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return u},get pre(){return d},get code(){return y},get lines(){return p}};if(e.forEach((C,L)=>{var A,q;L&&(f==="inline"?u.children.push({type:"element",tagName:"br",properties:{},children:[]}):f==="classic"&&o.push({type:"text",value:`
270
- `}));let z={type:"element",tagName:"span",properties:{class:"line"},children:[]},B=0;for(const $ of C){let ne={type:"element",tagName:"span",properties:{...$.htmlAttrs},children:[{type:"text",value:$.content}]};const N=gp($.htmlStyle||tf($));N&&(ne.properties.style=N);for(const Q of s)ne=((A=Q==null?void 0:Q.span)==null?void 0:A.call(v,ne,L+1,B,z,$))||ne;f==="inline"?u.children.push(ne):f==="classic"&&z.children.push(ne),B+=$.content.length}if(f==="classic"){for(const $ of s)z=((q=$==null?void 0:$.line)==null?void 0:q.call(v,z,L+1))||z;p.push(z),o.push(z)}else f==="inline"&&p.push(z)}),f==="classic"){for(const C of s)y=((x=C==null?void 0:C.code)==null?void 0:x.call(v,y))||y;d.children.push(y);for(const C of s)d=((E=C==null?void 0:C.pre)==null?void 0:E.call(v,d))||d;u.children.push(d)}else if(f==="inline"){const C=[];let L={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const A of u.children)A.type==="element"&&A.tagName==="br"?(C.push(L),L={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(A.type==="element"||A.type==="text")&&L.children.push(A);C.push(L);let B={type:"element",tagName:"code",properties:{},children:C};for(const A of s)B=((k=A==null?void 0:A.code)==null?void 0:k.call(v,B))||B;u.children=[];for(let A=0;A<B.children.length;A++){A>0&&u.children.push({type:"element",tagName:"br",properties:{},children:[]});const q=B.children[A];q.type==="element"&&u.children.push(...q.children)}}let _=u;for(const C of s)_=((w=C==null?void 0:C.root)==null?void 0:w.call(v,_))||_;return i&&Tf(_,i),_}function z4(e){return e.map(t=>{const n=[];let i="",s=0;return t.forEach((o,u)=>{const h=!(o.fontStyle&&(o.fontStyle&zt.Underline||o.fontStyle&zt.Strikethrough));h&&o.content.match(/^\s+$/)&&t[u+1]?(s||(s=o.offset),i+=o.content):i?(h?n.push({...o,offset:s,content:i+o.content}):n.push({content:i,offset:s},o),s=0,i=""):n.push(o)}),n})}function I4(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const i=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!i)return n;const[,s,o,u]=i;if(!s&&!u)return n;const f=[{...n,offset:n.offset+s.length,content:o}];return s&&f.unshift({content:s,offset:n.offset}),u&&f.push({content:u,offset:n.offset+s.length+o.length}),f}))}function B4(e){return e.map(t=>{const n=[];for(const i of t){if(n.length===0){n.push({...i});continue}const s=n[n.length-1],o=gp(s.htmlStyle||tf(s)),u=gp(i.htmlStyle||tf(i)),f=s.fontStyle&&(s.fontStyle&zt.Underline||s.fontStyle&zt.Strikethrough),h=i.fontStyle&&(i.fontStyle&zt.Underline||i.fontStyle&zt.Strikethrough);!f&&!h&&o===u?s.content+=i.content:n.push({...i})}return n})}const U4=a4;function q4(e,t,n){var o;const i={meta:{},options:n,codeToHast:(u,f)=>sf(e,u,f),codeToTokens:(u,f)=>af(e,u,f)};let s=U4(sf(e,t,n,i));for(const u of nf(n))s=((o=u.postprocess)==null?void 0:o.call(i,s,n))||s;return s}const lx={light:"#333333",dark:"#bbbbbb"},ox={light:"#fffffe",dark:"#1e1e1e"},ux="__shiki_resolved";function rg(e){var f,h,d,y,p;if(e!=null&&e[ux])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:i}=t;if(!n||!i){const v=t.settings?t.settings.find(_=>!_.name&&!_.scope):void 0;(f=v==null?void 0:v.settings)!=null&&f.foreground&&(i=v.settings.foreground),(h=v==null?void 0:v.settings)!=null&&h.background&&(n=v.settings.background),!i&&((d=t==null?void 0:t.colors)!=null&&d["editor.foreground"])&&(i=t.colors["editor.foreground"]),!n&&((y=t==null?void 0:t.colors)!=null&&y["editor.background"])&&(n=t.colors["editor.background"]),i||(i=t.type==="light"?lx.light:lx.dark),n||(n=t.type==="light"?ox.light:ox.dark),t.fg=i,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let s=0;const o=new Map;function u(v){var x;if(o.has(v))return o.get(v);s+=1;const _=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return(x=t.colorReplacements)!=null&&x[`#${_}`]?u(v):(o.set(v,_),_)}t.settings=t.settings.map(v=>{var k,w;const _=((k=v.settings)==null?void 0:k.foreground)&&!v.settings.foreground.startsWith("#"),x=((w=v.settings)==null?void 0:w.background)&&!v.settings.background.startsWith("#");if(!_&&!x)return v;const E={...v,settings:{...v.settings}};if(_){const C=u(v.settings.foreground);t.colorReplacements[C]=v.settings.foreground,E.settings.foreground=C}if(x){const C=u(v.settings.background);t.colorReplacements[C]=v.settings.background,E.settings.background=C}return E});for(const v of Object.keys(t.colors||{}))if((v==="editor.foreground"||v==="editor.background"||v.startsWith("terminal.ansi"))&&!((p=t.colors[v])!=null&&p.startsWith("#"))){const _=u(t.colors[v]);t.colorReplacements[_]=t.colors[v],t.colors[v]=_}return Object.defineProperty(t,ux,{enumerable:!1,writable:!1,value:!0}),t}async function _E(e){return Array.from(new Set((await Promise.all(e.filter(t=>!dE(t)).map(async t=>await hE(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function bE(e){return(await Promise.all(e.map(async n=>mE(n)?null:rg(await hE(n))))).filter(n=>!!n)}let V4=3;function H4(e,t=3){t>V4||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let Os=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class G4 extends i3{constructor(n,i,s,o={}){super(n);W(this,"_resolvedThemes",new Map);W(this,"_resolvedGrammars",new Map);W(this,"_langMap",new Map);W(this,"_langGraph",new Map);W(this,"_textmateThemeCache",new WeakMap);W(this,"_loadedThemesCache",null);W(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=i,this._langs=s,this._alias=o,this._themes.map(u=>this.loadTheme(u)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const i=rg(n);return i.name&&(this._resolvedThemes.set(i.name,i),this._loadedThemesCache=null),i}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let i=this._textmateThemeCache.get(n);i||(i=Kc.createFromRawTheme(n),this._textmateThemeCache.set(n,i)),this._syncRegistry.setTheme(i)}getGrammar(n){if(this._alias[n]){const i=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],i.has(n))throw new Os(`Circular alias \`${Array.from(i).join(" -> ")} -> ${n}\``);i.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var u,f,h,d;if(this.getGrammar(n.name))return;const i=new Set([...this._langMap.values()].filter(y=>{var p;return(p=y.embeddedLangsLazy)==null?void 0:p.includes(n.name)}));this._resolver.addLanguage(n);const s={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,s);if(o.name=n.name,this._resolvedGrammars.set(n.name,o),n.aliases&&n.aliases.forEach(y=>{this._alias[y]=n.name}),this._loadedLanguagesCache=null,i.size)for(const y of i)this._resolvedGrammars.delete(y.name),this._loadedLanguagesCache=null,(f=(u=this._syncRegistry)==null?void 0:u._injectionGrammars)==null||f.delete(y.scopeName),(d=(h=this._syncRegistry)==null?void 0:h._grammars)==null||d.delete(y.scopeName),this.loadLanguage(this._langMap.get(y.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const o of n)this.resolveEmbeddedLanguages(o);const i=Array.from(this._langGraph.entries()),s=i.filter(([o,u])=>!u);if(s.length){const o=i.filter(([u,f])=>{var h;return f&&((h=f.embeddedLangs)==null?void 0:h.some(d=>s.map(([y])=>y).includes(d)))}).filter(u=>!s.includes(u));throw new Os(`Missing languages ${s.map(([u])=>`\`${u}\``).join(", ")}, required by ${o.map(([u])=>`\`${u}\``).join(", ")}`)}for(const[o,u]of i)this._resolver.addLanguage(u);for(const[o,u]of i)this.loadLanguage(u)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){this._langMap.set(n.name,n),this._langGraph.set(n.name,n);const i=n.embeddedLanguages??n.embeddedLangs;if(i)for(const s of i)this._langGraph.set(s,this._langMap.get(s))}}class F4{constructor(t,n){W(this,"_langs",new Map);W(this,"_scopeToLang",new Map);W(this,"_injections",new Map);W(this,"_onigLib");this._onigLib={createOnigScanner:i=>t.createScanner(i),createOnigString:i=>t.createString(i)},n.forEach(i=>this.addLanguage(i))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let i=[];for(let s=1;s<=n.length;s++){const o=n.slice(0,s).join(".");i=[...i,...this._injections.get(o)||[]]}return i}}let ao=0;function Q4(e){ao+=1,e.warnings!==!1&&ao>=10&&ao%10===0&&console.warn(`[Shiki] ${ao} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Os("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(rg),s=new F4(e.engine,n),o=new G4(s,i,n,e.langAlias);let u;function f(C){k();const L=o.getGrammar(typeof C=="string"?C:C.name);if(!L)throw new Os(`Language \`${C}\` not found, you may need to load it first`);return L}function h(C){if(C==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};k();const L=o.getTheme(C);if(!L)throw new Os(`Theme \`${C}\` not found, you may need to load it first`);return L}function d(C){k();const L=h(C);u!==C&&(o.setTheme(L),u=C);const z=o.getColorMap();return{theme:L,colorMap:z}}function y(){return k(),o.getLoadedThemes()}function p(){return k(),o.getLoadedLanguages()}function v(...C){k(),o.loadLanguages(C.flat(1))}async function _(...C){return v(await _E(C))}function x(...C){k();for(const L of C.flat(1))o.loadTheme(L)}async function E(...C){return k(),x(await bE(C))}function k(){if(t)throw new Os("Shiki instance has been disposed")}function w(){t||(t=!0,o.dispose(),ao-=1)}return{setTheme:d,getTheme:h,getLanguage:f,getLoadedThemes:y,getLoadedLanguages:p,loadLanguage:_,loadLanguageSync:v,loadTheme:E,loadThemeSync:x,dispose:w,[Symbol.dispose]:w}}async function $4(e){e.engine||H4("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,i]=await Promise.all([bE(e.themes||[]),_E(e.langs||[]),e.engine]);return Q4({...e,themes:t,langs:n,engine:i})}async function Y4(e){const t=await $4(e);return{getLastGrammarState:(...n)=>A4(t,...n),codeToTokensBase:(n,i)=>ng(t,n,i),codeToTokensWithThemes:(n,i)=>vE(t,n,i),codeToTokens:(n,i)=>af(t,n,i),codeToHast:(n,i)=>sf(t,n,i),codeToHtml:(n,i)=>q4(t,n,i),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function K4(e){const t=e.langs,n=e.themes,i=e.engine;async function s(o){function u(p){var v;if(typeof p=="string"){if(dE(p))return[];p=((v=o.langAlias)==null?void 0:v[p])||p;const _=t[p];if(!_)throw new vt(`Language \`${p}\` is not included in this bundle. You may want to load it from external source.`);return _}return p}function f(p){if(mE(p))return"none";if(typeof p=="string"){const v=n[p];if(!v)throw new vt(`Theme \`${p}\` is not included in this bundle. You may want to load it from external source.`);return v}return p}const h=(o.themes??[]).map(p=>f(p)),d=(o.langs??[]).map(p=>u(p)),y=await Y4({engine:o.engine??i(),...o,themes:h,langs:d});return{...y,loadLanguage(...p){return y.loadLanguage(...p.map(u))},loadTheme(...p){return y.loadTheme(...p.map(f))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return s}function X4(e){let t;async function n(i={}){if(t){const s=await t;return await Promise.all([s.loadTheme(...i.themes||[]),s.loadLanguage(...i.langs||[])]),s}else{t=e({...i,themes:[],langs:[]});const s=await t;return await Promise.all([s.loadTheme(...i.themes||[]),s.loadLanguage(...i.langs||[])]),s}}return n}function Z4(e,t){const n=X4(e);async function i(s,o){var h;const u=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),f=await((h=t==null?void 0:t.guessEmbeddedLanguages)==null?void 0:h.call(t,s,o.lang,u));return f&&await u.loadLanguage(...f),u}return{getSingletonHighlighter(s){return n(s)},async codeToHtml(s,o){return(await i(s,o)).codeToHtml(s,o)},async codeToHast(s,o){return(await i(s,o)).codeToHast(s,o)},async codeToTokens(s,o){return(await i(s,o)).codeToTokens(s,o)},async codeToTokensBase(s,o){return(await i(s,o)).codeToTokensBase(s,o)},async codeToTokensWithThemes(s,o){return(await i(s,o)).codeToTokensWithThemes(s,o)},async getLastGrammarState(s,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(s,o)}}}const xE=[{id:"abap",name:"ABAP",import:(()=>R(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>R(()=>import("./actionscript-3-CfeIJUat.js"),[]))},{id:"ada",name:"Ada",import:(()=>R(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>R(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>R(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>R(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>R(()=>import("./apex-DDbsPZ6N.js"),[]))},{id:"apl",name:"APL",import:(()=>R(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>R(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>R(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>R(()=>import("./asciidoc-Dv7Oe6Be.js"),[]))},{id:"asm",name:"Assembly",import:(()=>R(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>R(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>R(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>R(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>R(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>R(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>R(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>R(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>R(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"blade",name:"Blade",import:(()=>R(()=>import("./blade-DVc8C-J4.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>R(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>R(()=>import("./c-BIGW1oBm.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>R(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>R(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>R(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>R(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>R(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>R(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>R(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>R(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>R(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>R(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>R(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>R(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>R(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>R(()=>import("./csharp-K5feNrxe.js"),[]))},{id:"css",name:"CSS",import:(()=>R(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>R(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>R(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>R(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>R(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>R(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>R(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>R(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>R(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>R(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>R(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>R(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>R(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>R(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>R(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>R(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>R(()=>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:(()=>R(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>R(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>R(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>R(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>R(()=>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:(()=>R(()=>import("./fortran-free-form-D22FLkUw.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>R(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",import:(()=>R(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",import:(()=>R(()=>import("./gdscript-DTMYz4Jt.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>R(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>R(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>R(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>R(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>R(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>R(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>R(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>R(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>R(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gnuplot",name:"Gnuplot",import:(()=>R(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>R(()=>import("./go-Dn2_MT6a.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>R(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>R(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>R(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>R(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>R(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>R(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>R(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>R(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>R(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>R(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>R(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>R(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>R(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>R(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>R(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>R(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>R(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>R(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>R(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>R(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>R(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>R(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>R(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>R(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>R(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>R(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>R(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>R(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>R(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>R(()=>import("./julia-C8NyazO9.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"kdl",name:"KDL",import:(()=>R(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>R(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>R(()=>import("./kusto-BvAqAH-y.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>R(()=>import("./latex-BdAV_C_H.js"),__vite__mapDeps([63,64,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>R(()=>import("./lean-Bc6EcWN3.js"),[]))},{id:"less",name:"Less",import:(()=>R(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>R(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([65,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>R(()=>import("./llvm-BtvRca6l.js"),[]))},{id:"log",name:"Log file",import:(()=>R(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>R(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>R(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>R(()=>import("./luau-CXu1NL6O.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>R(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>R(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>R(()=>import("./marko-CPi9NSCl.js"),__vite__mapDeps([66,3,67,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>R(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>R(()=>import("./mdc-DUICxH0z.js"),__vite__mapDeps([68,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>R(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>R(()=>import("./mermaid-DKYwYmdq.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>R(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>R(()=>import("./mojo-1DNp92w6.js"),[]))},{id:"move",name:"Move",import:(()=>R(()=>import("./move-Bu9oaDYs.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>R(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>R(()=>import("./nextflow-BrzmwbiE.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>R(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([69,37,26])))},{id:"nim",name:"Nim",import:(()=>R(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>R(()=>import("./nix-c8nO5XWb.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>R(()=>import("./nushell-C-sUppwS.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>R(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>R(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>R(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>R(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>R(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>R(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([71,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>R(()=>import("./php-CDn_0X-4.js"),__vite__mapDeps([72,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>R(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>R(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>R(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>R(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>R(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>R(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>R(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>R(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>R(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>R(()=>import("./proto-DyJlTyXw.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>R(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([73,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>R(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>R(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>R(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>R(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([74,2])))},{id:"qmldir",name:"QML Directory",import:(()=>R(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>R(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>R(()=>import("./r-DiinP2Uv.js"),[]))},{id:"racket",name:"Racket",import:(()=>R(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>R(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>R(()=>import("./razor-CE9lU5zL.js"),__vite__mapDeps([75,1,2,3,76])))},{id:"reg",name:"Windows Registry Script",import:(()=>R(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>R(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>R(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>R(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>R(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>R(()=>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:(()=>R(()=>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:(()=>R(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>R(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([79,16])))},{id:"sass",name:"Sass",import:(()=>R(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>R(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>R(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>R(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>R(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>R(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([80,81])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>R(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>R(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([82,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>R(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>R(()=>import("./solidity-rGO070M0.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>R(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([83,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>R(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([84,85])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>R(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>R(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>R(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>R(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([86,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>R(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"svelte",name:"Svelte",import:(()=>R(()=>import("./svelte-3Dk4HxPD.js"),__vite__mapDeps([87,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>R(()=>import("./swift-Dg5xB15N.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>R(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>R(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>R(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>R(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>R(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>R(()=>import("./templ-W15q3VgB.js"),__vite__mapDeps([88,89,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>R(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>R(()=>import("./tex-CxkMU7Pf.js"),__vite__mapDeps([64,62])))},{id:"toml",name:"TOML",import:(()=>R(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>R(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([90,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>R(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>R(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>R(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>R(()=>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:(()=>R(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>R(()=>import("./typespec-BGHnOYBU.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>R(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>R(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>R(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>R(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>R(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>R(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>R(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>R(()=>import("./vue-DnHKYNfI.js"),__vite__mapDeps([92,3,2,11,9,15,1])))},{id:"vue-html",name:"Vue HTML",import:(()=>R(()=>import("./vue-html-CChd_i61.js"),__vite__mapDeps([93,92,3,2,11,9,15,1])))},{id:"vue-vine",name:"Vue Vine",import:(()=>R(()=>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:(()=>R(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>R(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>R(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>R(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>R(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>R(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>R(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>R(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>R(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([96,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>R(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>R(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>R(()=>import("./zig-VOosw3JB.js"),[]))}],J4=Object.fromEntries(xE.map(e=>[e.id,e.import])),W4=Object.fromEntries(xE.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),ez={...J4,...W4},tz=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>R(()=>import("./andromeeda-C-Jbm3Hp.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>R(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>R(()=>import("./ayu-dark-Cv9koXgw.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>R(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>R(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>R(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>R(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>R(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>R(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>R(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>R(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>R(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>R(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>R(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>R(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>R(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>R(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>R(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>R(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>R(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>R(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>R(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>R(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>R(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>R(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>R(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>R(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>R(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>R(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>R(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>R(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>R(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>R(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>R(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>R(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>R(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>R(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>R(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>R(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>R(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>R(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>R(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>R(()=>import("./one-light-PoHY5YXO.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>R(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>R(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>R(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>R(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>R(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>R(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>R(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>R(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>R(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>R(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>R(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>R(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>R(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>R(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>R(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>R(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>R(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],nz=Object.fromEntries(tz.map(e=>[e.id,e.import]));class ig extends Error{constructor(t){super(t),this.name="ShikiError"}}function rz(){return 2147483648}function iz(){return typeof performance<"u"?performance.now():Date.now()}const az=(e,t)=>e+(t-e%t)%t;async function sz(e){let t,n;const i={};function s(_){n=_,i.HEAPU8=new Uint8Array(_),i.HEAPU32=new Uint32Array(_)}function o(_,x,E){i.HEAPU8.copyWithin(_,x,x+E)}function u(_){try{return t.grow(_-n.byteLength+65535>>>16),s(t.buffer),1}catch{}}function f(_){const x=i.HEAPU8.length;_=_>>>0;const E=rz();if(_>E)return!1;for(let k=1;k<=4;k*=2){let w=x*(1+.2/k);w=Math.min(w,_+100663296);const C=Math.min(E,az(Math.max(_,w),65536));if(u(C))return!0}return!1}const h=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(_,x,E=1024){const k=x+E;let w=x;for(;_[w]&&!(w>=k);)++w;if(w-x>16&&_.buffer&&h)return h.decode(_.subarray(x,w));let C="";for(;x<w;){let L=_[x++];if(!(L&128)){C+=String.fromCharCode(L);continue}const z=_[x++]&63;if((L&224)===192){C+=String.fromCharCode((L&31)<<6|z);continue}const B=_[x++]&63;if((L&240)===224?L=(L&15)<<12|z<<6|B:L=(L&7)<<18|z<<12|B<<6|_[x++]&63,L<65536)C+=String.fromCharCode(L);else{const A=L-65536;C+=String.fromCharCode(55296|A>>10,56320|A&1023)}}return C}function y(_,x){return _?d(i.HEAPU8,_,x):""}const p={emscripten_get_now:iz,emscripten_memcpy_big:o,emscripten_resize_heap:f,fd_write:()=>0};async function v(){const x=await e({env:p,wasi_snapshot_preview1:p});t=x.memory,s(t.buffer),Object.assign(i,x),i.UTF8ToString=y}return await v(),i}var lz=Object.defineProperty,oz=(e,t,n)=>t in e?lz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xt=(e,t,n)=>oz(e,typeof t!="symbol"?t+"":t,n);let Ct=null;function uz(e){throw new ig(e.UTF8ToString(e.getLastOnigError()))}class kf{constructor(t){xt(this,"utf16Length"),xt(this,"utf8Length"),xt(this,"utf16Value"),xt(this,"utf8Value"),xt(this,"utf16OffsetToUtf8"),xt(this,"utf8OffsetToUtf16");const n=t.length,i=kf._utf8ByteLength(t),s=i!==n,o=s?new Uint32Array(n+1):null;s&&(o[n]=i);const u=s?new Uint32Array(i+1):null;s&&(u[i]=n);const f=new Uint8Array(i);let h=0;for(let d=0;d<n;d++){const y=t.charCodeAt(d);let p=y,v=!1;if(y>=55296&&y<=56319&&d+1<n){const _=t.charCodeAt(d+1);_>=56320&&_<=57343&&(p=(y-55296<<10)+65536|_-56320,v=!0)}s&&(o[d]=h,v&&(o[d+1]=h),p<=127?u[h+0]=d:p<=2047?(u[h+0]=d,u[h+1]=d):p<=65535?(u[h+0]=d,u[h+1]=d,u[h+2]=d):(u[h+0]=d,u[h+1]=d,u[h+2]=d,u[h+3]=d)),p<=127?f[h++]=p:p<=2047?(f[h++]=192|(p&1984)>>>6,f[h++]=128|(p&63)>>>0):p<=65535?(f[h++]=224|(p&61440)>>>12,f[h++]=128|(p&4032)>>>6,f[h++]=128|(p&63)>>>0):(f[h++]=240|(p&1835008)>>>18,f[h++]=128|(p&258048)>>>12,f[h++]=128|(p&4032)>>>6,f[h++]=128|(p&63)>>>0),v&&d++}this.utf16Length=n,this.utf8Length=i,this.utf16Value=t,this.utf8Value=f,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=u}static _utf8ByteLength(t){let n=0;for(let i=0,s=t.length;i<s;i++){const o=t.charCodeAt(i);let u=o,f=!1;if(o>=55296&&o<=56319&&i+1<s){const h=t.charCodeAt(i+1);h>=56320&&h<=57343&&(u=(o-55296<<10)+65536|h-56320,f=!0)}u<=127?n+=1:u<=2047?n+=2:u<=65535?n+=3:n+=4,f&&i++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const Cf=class ir{constructor(t){if(xt(this,"id",++ir.LAST_ID),xt(this,"_onigBinding"),xt(this,"content"),xt(this,"utf16Length"),xt(this,"utf8Length"),xt(this,"utf16OffsetToUtf8"),xt(this,"utf8OffsetToUtf16"),xt(this,"ptr"),!Ct)throw new ig("Must invoke loadWasm first.");this._onigBinding=Ct,this.content=t;const n=new kf(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!ir._sharedPtrInUse?(ir._sharedPtr||(ir._sharedPtr=Ct.omalloc(1e4)),ir._sharedPtrInUse=!0,Ct.HEAPU8.set(n.utf8Value,ir._sharedPtr),this.ptr=ir._sharedPtr):this.ptr=n.createString(Ct)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===ir._sharedPtr?ir._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};xt(Cf,"LAST_ID",0);xt(Cf,"_sharedPtr",0);xt(Cf,"_sharedPtrInUse",!1);let SE=Cf;class cz{constructor(t){if(xt(this,"_onigBinding"),xt(this,"_ptr"),!Ct)throw new ig("Must invoke loadWasm first.");const n=[],i=[];for(let f=0,h=t.length;f<h;f++){const d=new kf(t[f]);n[f]=d.createString(Ct),i[f]=d.utf8Length}const s=Ct.omalloc(4*t.length);Ct.HEAPU32.set(n,s/4);const o=Ct.omalloc(4*t.length);Ct.HEAPU32.set(i,o/4);const u=Ct.createOnigScanner(s,o,t.length);for(let f=0,h=t.length;f<h;f++)Ct.ofree(n[f]);Ct.ofree(o),Ct.ofree(s),u===0&&uz(Ct),this._onigBinding=Ct,this._ptr=u}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,i){let s=0;if(typeof i=="number"&&(s=i),typeof t=="string"){t=new SE(t);const o=this._findNextMatchSync(t,n,!1,s);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,s)}_findNextMatchSync(t,n,i,s){const o=this._onigBinding,u=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),s);if(u===0)return null;const f=o.HEAPU32;let h=u/4;const d=f[h++],y=f[h++],p=[];for(let v=0;v<y;v++){const _=t.convertUtf8OffsetToUtf16(f[h++]),x=t.convertUtf8OffsetToUtf16(f[h++]);p[v]={start:_,end:x,length:x-_}}return{index:d,captureIndices:p}}}function fz(e){return typeof e.instantiator=="function"}function hz(e){return typeof e.default=="function"}function dz(e){return typeof e.data<"u"}function mz(e){return typeof Response<"u"&&e instanceof Response}function pz(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Ec;function gz(e){if(Ec)return Ec;async function t(){Ct=await sz(async n=>{let i=e;return i=await i,typeof i=="function"&&(i=await i(n)),typeof i=="function"&&(i=await i(n)),fz(i)?i=await i.instantiator(n):hz(i)?i=await i.default(n):(dz(i)&&(i=i.data),mz(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await yz(i)(n):i=await vz(i)(n):pz(i)?i=await Nm(i)(n):i instanceof WebAssembly.Module?i=await Nm(i)(n):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await Nm(i.default)(n))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return Ec=t(),Ec}function Nm(e){return t=>WebAssembly.instantiate(e,t)}function yz(e){return t=>WebAssembly.instantiateStreaming(e,t)}function vz(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function _z(e){return e&&await gz(e),{createScanner(t){return new cz(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new SE(t)}}}const bz=K4({langs:ez,themes:nz,engine:()=>_z(R(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:cx}=Z4(bz,{guessEmbeddedLanguages:c4});function Ao({children:e,className:t="",components:n}){return S.jsx("div",{className:`markdown-content ${t} scroll-smooth`,children:S.jsx(nD,{remarkPlugins:[gP],components:{code:xz,pre:({children:i})=>S.jsx(S.Fragment,{children:i}),...n},children:e})})}function xz({children:e,className:t}){const[n,i]=ie.useState(null),s=String(e).replace(/\n$/,""),o=/language-(\w+)/.exec(t||""),u=o?o[1]:void 0,f=!u&&!s.includes(`
271
- `);return ie.useEffect(()=>{if(f)return;let h=!0;return(async()=>{try{const y=await cx(s,{lang:u||"text",themes:{light:"github-light",dark:"github-dark"}});h&&i(y)}catch{const y=await cx(s,{lang:"text",themes:{light:"github-light",dark:"github-dark"}});h&&i(y)}})(),()=>{h=!1}},[s,u,f]),f?S.jsx("code",{className:"bg-muted text-foreground rounded px-1.5 py-0.5 font-mono text-sm",children:s}):n?S.jsx("div",{className:"shiki-wrapper overflow-x-auto rounded-md text-sm [&_pre]:m-0 [&_pre]:bg-transparent [&_pre]:p-4",dangerouslySetInnerHTML:{__html:n}}):S.jsx("pre",{className:"bg-muted/50 border-border overflow-x-auto rounded-md border p-4",children:S.jsx("code",{className:"text-foreground font-mono text-sm",children:s})})}function ag({items:e,defaultCollapsed:t=!0,className:n=""}){const[i,s]=ie.useState(t);return e.length===0?null:S.jsxs("aside",{className:`toc-root scrollbar-none sticky top-0 z-10 max-h-[calc(100cqh-3rem)] self-start overflow-y-auto ${n}`,children:[S.jsx("style",{children:wz}),S.jsxs("div",{className:"toc-narrow border-border bg-background overflow-hidden rounded border",children:[S.jsxs("button",{onClick:()=>s(!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:[S.jsx(nb,{className:"h-4 w-4"}),S.jsx("span",{className:"text-sm",children:"Contents"}),S.jsx(o2,{className:`ml-auto h-4 w-4 transition-transform ${i?"":"rotate-180"}`})]}),!i&&S.jsx("div",{className:"scrollbar-thin scrollbar-track-transparent max-h-[300px] overflow-y-auto p-2",children:S.jsx(fx,{items:e})})]}),S.jsxs("nav",{className:"toc-wide flex flex-col",children:[S.jsxs("div",{className:"text-muted-foreground flex items-center gap-2 px-3 py-2 text-xs font-medium uppercase tracking-wide",children:[S.jsx(nb,{className:"h-3.5 w-3.5"}),S.jsx("span",{children:"On this page"})]}),S.jsx("div",{className:"scrollbar-thin scrollbar-track-transparent min-h-0 flex-1 overflow-y-auto p-2",children:S.jsx(fx,{items:e})})]})]})}function Sz(e){const t=e.closest(".overflow-y-auto");if(!t)return;const n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=n.top-i.top,o=n.bottom-i.top;s<0?t.scrollTo({top:t.scrollTop+s,behavior:"smooth"}):o>i.height&&t.scrollTo({top:t.scrollTop+o-i.height,behavior:"smooth"})}function fx({items:e}){const t=ie.useCallback(n=>{n.animationName==="toc-activate"&&Sz(n.currentTarget)},[]);return S.jsx(S.Fragment,{children:e.map((n,i)=>S.jsx("a",{href:`#${n.id}`,className:"toc-link text-muted-foreground hover:text-foreground block overflow-hidden text-ellipsis whitespace-nowrap border-l-2 border-transparent px-3 py-1 text-[13px]",style:{"--target":`--toc-${i}`,paddingLeft:n.level===2?"1rem":n.level===3?"1.25rem":"0.75rem",fontSize:(n.level||1)>1?"12px":"13px"},title:n.label,onAnimationStart:t,children:n.label},n.id))})}const Ez=String.raw,wz=Ez`
269
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function s4(e,t,n,i){const s=i.schema,o=s.space==="svg"?!1:i.settings.omitOptionalTags;let u=s.space==="svg"?i.settings.closeEmptyElements:i.settings.voids.includes(e.tagName.toLowerCase());const f=[];let h;s.space==="html"&&e.tagName==="svg"&&(i.schema=Uo);const d=l4(i,e.properties),y=i.all(s.space==="html"&&e.tagName==="template"?e.content:e);return i.schema=s,y&&(u=!1),(d||!o||!e4(e,t,n))&&(f.push("<",e.tagName,d?" "+d:""),u&&(s.space==="svg"||i.settings.closeSelfClosing)&&(h=d.charAt(d.length-1),(!i.settings.tightSelfClosing||h==="/"||h&&h!=='"'&&h!=="'")&&f.push(" "),f.push("/")),f.push(">")),f.push(y),!u&&(!o||!eg(e,t,n))&&f.push("</"+e.tagName+">"),f.join("")}function l4(e,t){const n=[];let i=-1,s;if(t){for(s in t)if(t[s]!==null&&t[s]!==void 0){const o=o4(e,s,t[s]);o&&n.push(o)}}for(;++i<n.length;){const o=e.settings.tightAttributes?n[i].charAt(n[i].length-1):void 0;i!==n.length-1&&o!=='"'&&o!=="'"&&(n[i]+=" ")}return n.join("")}function o4(e,t,n){const i=Y1(e.schema,t),s=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let u=e.quote,f;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 h=Ds(i.attribute,Object.assign({},e.settings.characterReferences,{subset:Sc.name[s][o]}));return n===!0||(n=Array.isArray(n)?(i.commaSeparated?U1:X1)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?h:(e.settings.preferUnquoted&&(f=Ds(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Sc.unquoted[s][o]}))),f!==n&&(e.settings.quoteSmart&&Yc(n,u)>Yc(n,e.alternative)&&(u=e.alternative),f=u+Ds(n,Object.assign({},e.settings.characterReferences,{subset:(u==="'"?Sc.single:Sc.double)[s][o],attribute:!0}))+u),h+(f&&"="+f))}const u4=["<","&"];function dE(e,t,n,i){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Ds(e.value,Object.assign({},i.settings.characterReferences,{subset:u4}))}function c4(e,t,n,i){return i.settings.allowDangerousHtml?e.value:dE(e,t,n,i)}function f4(e,t,n,i){return i.all(e)}const h4=iM("type",{invalid:d4,unknown:m4,handlers:{comment:I3,doctype:B3,element:s4,raw:c4,root:f4,text:dE}});function d4(e){throw new Error("Expected node, not `"+e+"`")}function m4(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const p4={},g4={},y4=[];function v4(e,t){const n=t||p4,i=n.quote||'"',s=i==='"'?"'":'"';if(i!=='"'&&i!=="'")throw new Error("Invalid quote `"+i+"`, expected `'` or `\"`");return{one:_4,all:b4,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||v3,characterReferences:n.characterReferences||g4,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Uo:K1,quote:i,alternative:s}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function _4(e,t,n){return h4(e,t,n,this)}function b4(e){const t=[],n=e&&e.children||y4;let i=-1;for(;++i<n.length;)t[i]=this.one(n[i],i,e);return t.join("")}function tf(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},i=typeof e=="string"?e:e.name;for(const[s,o]of Object.entries((t==null?void 0:t.colorReplacements)||{}))typeof o=="string"?n[s]=o:s===i&&Object.assign(n,o);return n}function Mi(e,t){return e&&((t==null?void 0:t[e==null?void 0:e.toLowerCase()])||e)}function x4(e){return Array.isArray(e)?e:[e]}async function mE(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function tg(e){return!e||["plaintext","txt","text","plain"].includes(e)}function pE(e){return e==="ansi"||tg(e)}function ng(e){return e==="none"}function gE(e){return ng(e)}function yE(e,t){var i;if(!t)return e;e.properties||(e.properties={}),(i=e.properties).class||(i.class=[]),typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const s of n)s&&!e.properties.class.includes(s)&&e.properties.class.push(s);return e}function wf(e,t=!1){var o;const n=e.split(/(\r?\n)/g);let i=0;const s=[];for(let u=0;u<n.length;u+=2){const f=t?n[u]+(n[u+1]||""):n[u];s.push([f,i]),i+=n[u].length,i+=((o=n[u+1])==null?void 0:o.length)||0}return s}function S4(e){const t=wf(e,!0).map(([s])=>s);function n(s){if(s===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=s,u=0;for(const f of t){if(o<f.length)break;o-=f.length,u++}return{line:u,character:o}}function i(s,o){let u=0;for(let f=0;f<s;f++)u+=t[f].length;return u+=o,u}return{lines:t,indexToPos:n,posToIndex:i}}function E4(e,t,n){const i=new Set;for(const o of e.matchAll(/lang=["']([\w-]+)["']/g))i.add(o[1]);for(const o of e.matchAll(/(?:```|~~~)([\w-]+)/g))i.add(o[1]);for(const o of e.matchAll(/\\begin\{([\w-]+)\}/g))i.add(o[1]);if(!n)return Array.from(i);const s=n.getBundledLanguages();return Array.from(i).filter(o=>o&&s[o])}const rg="light-dark()",w4=["color","background-color"];function T4(e,t){let n=0;const i=[];for(const s of t)s>n&&i.push({...e,content:e.content.slice(n,s),offset:e.offset+n}),n=s;return n<e.content.length&&i.push({...e,content:e.content.slice(n),offset:e.offset+n}),i}function k4(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((i,s)=>i-s);return n.length?e.map(i=>i.flatMap(s=>{const o=n.filter(u=>s.offset<u&&u<s.offset+s.content.length).map(u=>u-s.offset).sort((u,f)=>u-f);return o.length?T4(s,o):s})):e}function C4(e,t,n,i,s="css-vars"){const o={content:e.content,explanation:e.explanation,offset:e.offset},u=t.map(y=>nf(e.variants[y])),f=new Set(u.flatMap(y=>Object.keys(y))),h={},d=(y,p)=>{const v=p==="color"?"":p==="background-color"?"-bg":`-${p}`;return n+t[y]+(p==="color"?"":v)};return u.forEach((y,p)=>{for(const v of f){const _=y[v]||"inherit";if(p===0&&i&&w4.includes(v))if(i===rg&&u.length>1){const b=t.findIndex(R=>R==="light"),E=t.findIndex(R=>R==="dark");if(b===-1||E===-1)throw new vt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const k=u[b][v]||"inherit",T=u[E][v]||"inherit";h[v]=`light-dark(${k}, ${T})`,s==="css-vars"&&(h[d(p,v)]=_)}else h[v]=_;else s==="css-vars"&&(h[d(p,v)]=_)}}),o.htmlStyle=h,o}function nf(e){const t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&zt.Italic&&(t["font-style"]="italic"),e.fontStyle&zt.Bold&&(t["font-weight"]="bold");const n=[];e.fontStyle&zt.Underline&&n.push("underline"),e.fontStyle&zt.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function yp(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}const vE=new WeakMap;function Tf(e,t){vE.set(e,t)}function Ao(e){return vE.get(e)}class al{constructor(...t){W(this,"_stacks",{});W(this,"lang");if(t.length===2){const[n,i]=t;this.lang=i,this._stacks=n}else{const[n,i,s]=t;this.lang=i,this._stacks={[s]:n}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new al(Object.fromEntries(x4(n).map(i=>[i,pp])),t)}getInternalStack(t=this.theme){return this._stacks[t]}getScopes(t=this.theme){return R4(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}function R4(e){const t=[],n=new Set;function i(s){var u;if(n.has(s))return;n.add(s);const o=(u=s==null?void 0:s.nameScopesList)==null?void 0:u.scopeName;o&&t.push(o),s.parent&&i(s.parent)}return i(e),t}function A4(e,t){if(!(e instanceof al))throw new vt("Invalid grammar state");return e.getInternalStack(t)}function O4(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let i=function(u){if(typeof u=="number"){if(u<0||u>n.source.length)throw new vt(`Invalid decoration offset: ${u}. Code length: ${n.source.length}`);return{...s.indexToPos(u),offset:u}}else{const f=s.lines[u.line];if(f===void 0)throw new vt(`Invalid decoration position ${JSON.stringify(u)}. Lines length: ${s.lines.length}`);let h=u.character;if(h<0&&(h=f.length+h),h<0||h>f.length)throw new vt(`Invalid decoration position ${JSON.stringify(u)}. Line ${u.line} length: ${f.length}`);return{...u,character:h,offset:s.posToIndex(u.line,h)}}};const s=S4(n.source),o=(n.options.decorations||[]).map(u=>({...u,start:i(u.start),end:i(u.end)}));L4(o),e.set(n.meta,{decorations:o,converter:s,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){var u;if(!((u=this.options.decorations)!=null&&u.length))return;const s=t(this).decorations.flatMap(f=>[f.start.offset,f.end.offset]);return k4(n,s)},code(n){var y;if(!((y=this.options.decorations)!=null&&y.length))return;const i=t(this),s=Array.from(n.children).filter(p=>p.type==="element"&&p.tagName==="span");if(s.length!==i.converter.lines.length)throw new vt(`Number of lines in code element (${s.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function o(p,v,_,b){const E=s[p];let k="",T=-1,R=-1;if(v===0&&(T=0),_===0&&(R=0),_===Number.POSITIVE_INFINITY&&(R=E.children.length),T===-1||R===-1)for(let z=0;z<E.children.length;z++)k+=_E(E.children[z]),T===-1&&k.length===v&&(T=z+1),R===-1&&k.length===_&&(R=z+1);if(T===-1)throw new vt(`Failed to find start index for decoration ${JSON.stringify(b.start)}`);if(R===-1)throw new vt(`Failed to find end index for decoration ${JSON.stringify(b.end)}`);const L=E.children.slice(T,R);if(!b.alwaysWrap&&L.length===E.children.length)f(E,b,"line");else if(!b.alwaysWrap&&L.length===1&&L[0].type==="element")f(L[0],b,"token");else{const z={type:"element",tagName:"span",properties:{},children:L};f(z,b,"wrapper"),E.children.splice(T,L.length,z)}}function u(p,v){s[p]=f(s[p],v,"line")}function f(p,v,_){var k;const b=v.properties||{},E=v.transform||(T=>T);return p.tagName=v.tagName||"span",p.properties={...p.properties,...b,class:p.properties.class},(k=v.properties)!=null&&k.class&&yE(p,v.properties.class),p=E(p,_)||p,p}const h=[],d=i.decorations.sort((p,v)=>v.start.offset-p.start.offset||p.end.offset-v.end.offset);for(const p of d){const{start:v,end:_}=p;if(v.line===_.line)o(v.line,v.character,_.character,p);else if(v.line<_.line){o(v.line,v.character,Number.POSITIVE_INFINITY,p);for(let b=v.line+1;b<_.line;b++)h.unshift(()=>u(b,p));o(_.line,0,_.character,p)}}h.forEach(p=>p())}}}function L4(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new vt(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=t+1;i<e.length;i++){const s=e[i],o=n.start.offset<=s.start.offset&&s.start.offset<n.end.offset,u=n.start.offset<s.end.offset&&s.end.offset<=n.end.offset,f=s.start.offset<=n.start.offset&&n.start.offset<s.end.offset,h=s.start.offset<n.end.offset&&n.end.offset<=s.end.offset;if(o||u||f||h){if(o&&u||f&&h||f&&n.start.offset===n.end.offset||u&&s.start.offset===s.end.offset)continue;throw new vt(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(s.start)} intersect.`)}}}}function _E(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(_E).join(""):""}const N4=[O4()];function rf(e){const t=j4(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...N4]}function j4(e){const t=[],n=[],i=[];for(const s of e)switch(s.enforce){case"pre":t.push(s);break;case"post":n.push(s);break;default:i.push(s)}return{pre:t,post:n,normal:i}}var ua=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Nm={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function D4(e,t){const n=e.indexOf("\x1B",t);if(n!==-1&&e[n+1]==="["){const i=e.indexOf("m",n);if(i!==-1)return{sequence:e.substring(n+2,i).split(";"),startPosition:n,position:i+1}}return{position:e.length}}function sx(e){const t=e.shift();if(t==="2"){const n=e.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(t==="5"){const n=e.shift();if(n)return{type:"table",index:Number(n)}}}function M4(e){const t=[];for(;e.length>0;){const n=e.shift();if(!n)continue;const i=Number.parseInt(n);if(!Number.isNaN(i))if(i===0)t.push({type:"resetAll"});else if(i<=9)Nm[i]&&t.push({type:"setDecoration",value:Nm[i]});else if(i<=29){const s=Nm[i-20];s&&(t.push({type:"resetDecoration",value:s}),s==="dim"&&t.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:ua[i-30]}});else if(i===38){const s=sx(e);s&&t.push({type:"setForegroundColor",value:s})}else if(i===39)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:ua[i-40]}});else if(i===48){const s=sx(e);s&&t.push({type:"setBackgroundColor",value:s})}else i===49?t.push({type:"resetBackgroundColor"}):i===53?t.push({type:"setDecoration",value:"overline"}):i===55?t.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:ua[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:ua[i-100+8]}})}return t}function P4(){let e=null,t=null,n=new Set;return{parse(i){const s=[];let o=0;do{const u=D4(i,o),f=u.sequence?i.substring(o,u.startPosition):i.substring(o);if(f.length>0&&s.push({value:f,foreground:e,background:t,decorations:new Set(n)}),u.sequence){const h=M4(u.sequence);for(const d of h)d.type==="resetAll"?(e=null,t=null,n.clear()):d.type==="resetForegroundColor"?e=null:d.type==="resetBackgroundColor"?t=null:d.type==="resetDecoration"&&n.delete(d.value);for(const d of h)d.type==="setForegroundColor"?e=d.value:d.type==="setBackgroundColor"?t=d.value:d.type==="setDecoration"&&n.add(d.value)}o=u.position}while(o<i.length);return s}}}var z4={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 I4(e=z4){function t(f){return e[f]}function n(f){return`#${f.map(h=>Math.max(0,Math.min(h,255)).toString(16).padStart(2,"0")).join("")}`}let i;function s(){if(i)return i;i=[];for(let d=0;d<ua.length;d++)i.push(t(ua[d]));let f=[0,95,135,175,215,255];for(let d=0;d<6;d++)for(let y=0;y<6;y++)for(let p=0;p<6;p++)i.push(n([f[d],f[y],f[p]]));let h=8;for(let d=0;d<24;d++,h+=10)i.push(n([h,h,h]));return i}function o(f){return s()[f]}function u(f){switch(f.type){case"named":return t(f.name);case"rgb":return n(f.rgb);case"table":return o(f.index)}}return{value:u}}const B4={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 U4(e,t,n){const i=tf(e,n),s=wf(t),o=Object.fromEntries(ua.map(h=>{var p;const d=`terminal.ansi${h[0].toUpperCase()}${h.substring(1)}`,y=(p=e.colors)==null?void 0:p[d];return[h,y||B4[h]]})),u=I4(o),f=P4();return s.map(h=>f.parse(h[0]).map(d=>{let y,p;d.decorations.has("reverse")?(y=d.background?u.value(d.background):e.bg,p=d.foreground?u.value(d.foreground):e.fg):(y=d.foreground?u.value(d.foreground):e.fg,p=d.background?u.value(d.background):void 0),y=Mi(y,i),p=Mi(p,i),d.decorations.has("dim")&&(y=q4(y));let v=zt.None;return d.decorations.has("bold")&&(v|=zt.Bold),d.decorations.has("italic")&&(v|=zt.Italic),d.decorations.has("underline")&&(v|=zt.Underline),d.decorations.has("strikethrough")&&(v|=zt.Strikethrough),{content:d.value,offset:h[1],color:y,bgColor:p,fontStyle:v}}))}function q4(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/i);if(t)if(t[3]){const i=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${i}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(i=>`${i}${i}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function ig(e,t,n={}){const{lang:i="text",theme:s=e.getLoadedThemes()[0]}=n;if(tg(i)||ng(s))return wf(t).map(h=>[{content:h[0],offset:h[1]}]);const{theme:o,colorMap:u}=e.setTheme(s);if(i==="ansi")return U4(o,t,n);const f=e.getLanguage(i);if(n.grammarState){if(n.grammarState.lang!==f.name)throw new vt(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${f.name}"`);if(!n.grammarState.themes.includes(o.name))throw new vt(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return H4(t,f,o,u,n)}function V4(...e){if(e.length===2)return Ao(e[1]);const[t,n,i={}]=e,{lang:s="text",theme:o=t.getLoadedThemes()[0]}=i;if(tg(s)||ng(o))throw new vt("Plain language does not have grammar state");if(s==="ansi")throw new vt("ANSI language does not have grammar state");const{theme:u,colorMap:f}=t.setTheme(o),h=t.getLanguage(s);return new al(af(n,h,u,f,i).stateStack,h.name,u.name)}function H4(e,t,n,i,s){const o=af(e,t,n,i,s),u=new al(af(e,t,n,i,s).stateStack,t.name,n.name);return Tf(o.tokens,u),o.tokens}function af(e,t,n,i,s){const o=tf(n,s),{tokenizeMaxLineLength:u=0,tokenizeTimeLimit:f=500}=s,h=wf(e);let d=s.grammarState?A4(s.grammarState,n.name)??pp:s.grammarContextCode!=null?af(s.grammarContextCode,t,n,i,{...s,grammarState:void 0,grammarContextCode:void 0}).stateStack:pp,y=[];const p=[];for(let v=0,_=h.length;v<_;v++){const[b,E]=h[v];if(b===""){y=[],p.push([]);continue}if(u>0&&b.length>=u){y=[],p.push([{content:b,offset:E,color:"",fontStyle:0}]);continue}let k,T,R;s.includeExplanation&&(k=t.tokenizeLine(b,d,f),T=k.tokens,R=0);const L=t.tokenizeLine2(b,d,f),z=L.tokens.length/2;for(let V=0;V<z;V++){const O=L.tokens[2*V],U=V+1<z?L.tokens[2*V+2]:b.length;if(O===U)continue;const $=L.tokens[2*V+1],ne=Mi(i[Js.getForeground($)],o),N=Js.getFontStyle($),Q={content:b.substring(O,U),offset:E+O,color:ne,fontStyle:N};if(s.includeExplanation){const re=[];if(s.includeExplanation!=="scopeName")for(const le of n.settings){let ae;switch(typeof le.scope){case"string":ae=le.scope.split(/,/).map(q=>q.trim());break;case"object":ae=le.scope;break;default:continue}re.push({settings:le,selectors:ae.map(q=>q.split(/ /))})}Q.explanation=[];let me=0;for(;O+me<U;){const le=T[R],ae=b.substring(le.startIndex,le.endIndex);me+=ae.length,Q.explanation.push({content:ae,scopes:s.includeExplanation==="scopeName"?G4(le.scopes):F4(re,le.scopes)}),R+=1}}y.push(Q)}p.push(y),y=[],d=L.ruleStack}return{tokens:p,stateStack:d}}function G4(e){return e.map(t=>({scopeName:t}))}function F4(e,t){const n=[];for(let i=0,s=t.length;i<s;i++){const o=t[i];n[i]={scopeName:o,themeMatches:$4(e,o,t.slice(0,i))}}return n}function lx(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function Q4(e,t,n){if(!lx(e[e.length-1],t))return!1;let i=e.length-2,s=n.length-1;for(;i>=0&&s>=0;)lx(e[i],n[s])&&(i-=1),s-=1;return i===-1}function $4(e,t,n){const i=[];for(const{selectors:s,settings:o}of e)for(const u of s)if(Q4(u,t,n)){i.push(o);break}return i}function bE(e,t,n){const i=Object.entries(n.themes).filter(h=>h[1]).map(h=>({color:h[0],theme:h[1]})),s=i.map(h=>{const d=ig(e,t,{...n,theme:h.theme}),y=Ao(d),p=typeof h.theme=="string"?h.theme:h.theme.name;return{tokens:d,state:y,theme:p}}),o=Y4(...s.map(h=>h.tokens)),u=o[0].map((h,d)=>h.map((y,p)=>{const v={content:y.content,variants:{},offset:y.offset};return"includeExplanation"in n&&n.includeExplanation&&(v.explanation=y.explanation),o.forEach((_,b)=>{const{content:E,explanation:k,offset:T,...R}=_[d][p];v.variants[i[b].color]=R}),v})),f=s[0].state?new al(Object.fromEntries(s.map(h=>{var d;return[h.theme,(d=h.state)==null?void 0:d.getInternalStack(h.theme)]})),s[0].state.lang):void 0;return f&&Tf(u,f),u}function Y4(...e){const t=e.map(()=>[]),n=e.length;for(let i=0;i<e[0].length;i++){const s=e.map(h=>h[i]),o=t.map(()=>[]);t.forEach((h,d)=>h.push(o[d]));const u=s.map(()=>0),f=s.map(h=>h[0]);for(;f.every(h=>h);){const h=Math.min(...f.map(d=>d.content.length));for(let d=0;d<n;d++){const y=f[d];y.content.length===h?(o[d].push(y),u[d]+=1,f[d]=s[d][u[d]]):(o[d].push({...y,content:y.content.slice(0,h)}),f[d]={...y,content:y.content.slice(h),offset:y.offset+h})}}}return t}function sf(e,t,n){let i,s,o,u,f,h;if("themes"in n){const{defaultColor:d="light",cssVariablePrefix:y="--shiki-",colorsRendering:p="css-vars"}=n,v=Object.entries(n.themes).filter(T=>T[1]).map(T=>({color:T[0],theme:T[1]})).sort((T,R)=>T.color===d?-1:R.color===d?1:0);if(v.length===0)throw new vt("`themes` option must not be empty");const _=bE(e,t,n);if(h=Ao(_),d&&rg!==d&&!v.find(T=>T.color===d))throw new vt(`\`themes\` option must contain the defaultColor key \`${d}\``);const b=v.map(T=>e.getTheme(T.theme)),E=v.map(T=>T.color);o=_.map(T=>T.map(R=>C4(R,E,y,d,p))),h&&Tf(o,h);const k=v.map(T=>tf(T.theme,n));s=ox(v,b,k,y,d,"fg",p),i=ox(v,b,k,y,d,"bg",p),u=`shiki-themes ${b.map(T=>T.name).join(" ")}`,f=d?void 0:[s,i].join(";")}else if("theme"in n){const d=tf(n.theme,n);o=ig(e,t,n);const y=e.getTheme(n.theme);i=Mi(y.bg,d),s=Mi(y.fg,d),u=y.name,h=Ao(o)}else throw new vt("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:s,bg:i,themeName:u,rootStyle:f,grammarState:h}}function ox(e,t,n,i,s,o,u){return e.map((f,h)=>{const d=Mi(t[h][o],n[h])||"inherit",y=`${i+f.color}${o==="bg"?"-bg":""}:${d}`;if(h===0&&s){if(s===rg&&e.length>1){const p=e.findIndex(E=>E.color==="light"),v=e.findIndex(E=>E.color==="dark");if(p===-1||v===-1)throw new vt('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');const _=Mi(t[p][o],n[p])||"inherit",b=Mi(t[v][o],n[v])||"inherit";return`light-dark(${_}, ${b});${y}`}return d}return u==="css-vars"?y:null}).filter(f=>!!f).join(";")}function lf(e,t,n,i={meta:{},options:n,codeToHast:(s,o)=>lf(e,s,o),codeToTokens:(s,o)=>sf(e,s,o)}){var b,E;let s=t;for(const k of rf(n))s=((b=k.preprocess)==null?void 0:b.call(i,s,n))||s;let{tokens:o,fg:u,bg:f,themeName:h,rootStyle:d,grammarState:y}=sf(e,s,n);const{mergeWhitespaces:p=!0,mergeSameStyleTokens:v=!1}=n;p===!0?o=X4(o):p==="never"&&(o=Z4(o)),v&&(o=J4(o));const _={...i,get source(){return s}};for(const k of rf(n))o=((E=k.tokens)==null?void 0:E.call(_,o))||o;return K4(o,{...n,fg:u,bg:f,themeName:h,rootStyle:d},_,y)}function K4(e,t,n,i=Ao(e)){var b,E,k,T;const s=rf(t),o=[],u={type:"root",children:[]},{structure:f="classic",tabindex:h="0"}=t;let d={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...h!==!1&&h!=null?{tabindex:h.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([R])=>!R.startsWith("_")))},children:[]},y={type:"element",tagName:"code",properties:{},children:o};const p=[],v={...n,structure:f,addClassToHast:yE,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return u},get pre(){return d},get code(){return y},get lines(){return p}};if(e.forEach((R,L)=>{var O,U;L&&(f==="inline"?u.children.push({type:"element",tagName:"br",properties:{},children:[]}):f==="classic"&&o.push({type:"text",value:`
270
+ `}));let z={type:"element",tagName:"span",properties:{class:"line"},children:[]},V=0;for(const $ of R){let ne={type:"element",tagName:"span",properties:{...$.htmlAttrs},children:[{type:"text",value:$.content}]};const N=yp($.htmlStyle||nf($));N&&(ne.properties.style=N);for(const Q of s)ne=((O=Q==null?void 0:Q.span)==null?void 0:O.call(v,ne,L+1,V,z,$))||ne;f==="inline"?u.children.push(ne):f==="classic"&&z.children.push(ne),V+=$.content.length}if(f==="classic"){for(const $ of s)z=((U=$==null?void 0:$.line)==null?void 0:U.call(v,z,L+1))||z;p.push(z),o.push(z)}else f==="inline"&&p.push(z)}),f==="classic"){for(const R of s)y=((b=R==null?void 0:R.code)==null?void 0:b.call(v,y))||y;d.children.push(y);for(const R of s)d=((E=R==null?void 0:R.pre)==null?void 0:E.call(v,d))||d;u.children.push(d)}else if(f==="inline"){const R=[];let L={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(const O of u.children)O.type==="element"&&O.tagName==="br"?(R.push(L),L={type:"element",tagName:"span",properties:{class:"line"},children:[]}):(O.type==="element"||O.type==="text")&&L.children.push(O);R.push(L);let V={type:"element",tagName:"code",properties:{},children:R};for(const O of s)V=((k=O==null?void 0:O.code)==null?void 0:k.call(v,V))||V;u.children=[];for(let O=0;O<V.children.length;O++){O>0&&u.children.push({type:"element",tagName:"br",properties:{},children:[]});const U=V.children[O];U.type==="element"&&u.children.push(...U.children)}}let _=u;for(const R of s)_=((T=R==null?void 0:R.root)==null?void 0:T.call(v,_))||_;return i&&Tf(_,i),_}function X4(e){return e.map(t=>{const n=[];let i="",s=0;return t.forEach((o,u)=>{const h=!(o.fontStyle&&(o.fontStyle&zt.Underline||o.fontStyle&zt.Strikethrough));h&&o.content.match(/^\s+$/)&&t[u+1]?(s||(s=o.offset),i+=o.content):i?(h?n.push({...o,offset:s,content:i+o.content}):n.push({content:i,offset:s},o),s=0,i=""):n.push(o)}),n})}function Z4(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const i=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!i)return n;const[,s,o,u]=i;if(!s&&!u)return n;const f=[{...n,offset:n.offset+s.length,content:o}];return s&&f.unshift({content:s,offset:n.offset}),u&&f.push({content:u,offset:n.offset+s.length+o.length}),f}))}function J4(e){return e.map(t=>{const n=[];for(const i of t){if(n.length===0){n.push({...i});continue}const s=n[n.length-1],o=yp(s.htmlStyle||nf(s)),u=yp(i.htmlStyle||nf(i)),f=s.fontStyle&&(s.fontStyle&zt.Underline||s.fontStyle&zt.Strikethrough),h=i.fontStyle&&(i.fontStyle&zt.Underline||i.fontStyle&zt.Strikethrough);!f&&!h&&o===u?s.content+=i.content:n.push({...i})}return n})}const W4=v4;function ez(e,t,n){var o;const i={meta:{},options:n,codeToHast:(u,f)=>lf(e,u,f),codeToTokens:(u,f)=>sf(e,u,f)};let s=W4(lf(e,t,n,i));for(const u of rf(n))s=((o=u.postprocess)==null?void 0:o.call(i,s,n))||s;return s}const ux={light:"#333333",dark:"#bbbbbb"},cx={light:"#fffffe",dark:"#1e1e1e"},fx="__shiki_resolved";function ag(e){var f,h,d,y,p;if(e!=null&&e[fx])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||(t.type="dark"),t.colorReplacements={...t.colorReplacements},t.settings||(t.settings=[]);let{bg:n,fg:i}=t;if(!n||!i){const v=t.settings?t.settings.find(_=>!_.name&&!_.scope):void 0;(f=v==null?void 0:v.settings)!=null&&f.foreground&&(i=v.settings.foreground),(h=v==null?void 0:v.settings)!=null&&h.background&&(n=v.settings.background),!i&&((d=t==null?void 0:t.colors)!=null&&d["editor.foreground"])&&(i=t.colors["editor.foreground"]),!n&&((y=t==null?void 0:t.colors)!=null&&y["editor.background"])&&(n=t.colors["editor.background"]),i||(i=t.type==="light"?ux.light:ux.dark),n||(n=t.type==="light"?cx.light:cx.dark),t.fg=i,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let s=0;const o=new Map;function u(v){var b;if(o.has(v))return o.get(v);s+=1;const _=`#${s.toString(16).padStart(8,"0").toLowerCase()}`;return(b=t.colorReplacements)!=null&&b[`#${_}`]?u(v):(o.set(v,_),_)}t.settings=t.settings.map(v=>{var k,T;const _=((k=v.settings)==null?void 0:k.foreground)&&!v.settings.foreground.startsWith("#"),b=((T=v.settings)==null?void 0:T.background)&&!v.settings.background.startsWith("#");if(!_&&!b)return v;const E={...v,settings:{...v.settings}};if(_){const R=u(v.settings.foreground);t.colorReplacements[R]=v.settings.foreground,E.settings.foreground=R}if(b){const R=u(v.settings.background);t.colorReplacements[R]=v.settings.background,E.settings.background=R}return E});for(const v of Object.keys(t.colors||{}))if((v==="editor.foreground"||v==="editor.background"||v.startsWith("terminal.ansi"))&&!((p=t.colors[v])!=null&&p.startsWith("#"))){const _=u(t.colors[v]);t.colorReplacements[_]=t.colors[v],t.colors[v]=_}return Object.defineProperty(t,fx,{enumerable:!1,writable:!1,value:!0}),t}async function xE(e){return Array.from(new Set((await Promise.all(e.filter(t=>!pE(t)).map(async t=>await mE(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function SE(e){return(await Promise.all(e.map(async n=>gE(n)?null:ag(await mE(n))))).filter(n=>!!n)}let tz=3;function nz(e,t=3){t>tz||console.trace(`[SHIKI DEPRECATE]: ${e}`)}let Os=class extends Error{constructor(t){super(t),this.name="ShikiError"}};class rz extends y3{constructor(n,i,s,o={}){super(n);W(this,"_resolvedThemes",new Map);W(this,"_resolvedGrammars",new Map);W(this,"_langMap",new Map);W(this,"_langGraph",new Map);W(this,"_textmateThemeCache",new WeakMap);W(this,"_loadedThemesCache",null);W(this,"_loadedLanguagesCache",null);this._resolver=n,this._themes=i,this._langs=s,this._alias=o,this._themes.map(u=>this.loadTheme(u)),this.loadLanguages(this._langs)}getTheme(n){return typeof n=="string"?this._resolvedThemes.get(n):this.loadTheme(n)}loadTheme(n){const i=ag(n);return i.name&&(this._resolvedThemes.set(i.name,i),this._loadedThemesCache=null),i}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(n){let i=this._textmateThemeCache.get(n);i||(i=Xc.createFromRawTheme(n),this._textmateThemeCache.set(n,i)),this._syncRegistry.setTheme(i)}getGrammar(n){if(this._alias[n]){const i=new Set([n]);for(;this._alias[n];){if(n=this._alias[n],i.has(n))throw new Os(`Circular alias \`${Array.from(i).join(" -> ")} -> ${n}\``);i.add(n)}}return this._resolvedGrammars.get(n)}loadLanguage(n){var u,f,h,d;if(this.getGrammar(n.name))return;const i=new Set([...this._langMap.values()].filter(y=>{var p;return(p=y.embeddedLangsLazy)==null?void 0:p.includes(n.name)}));this._resolver.addLanguage(n);const s={balancedBracketSelectors:n.balancedBracketSelectors||["*"],unbalancedBracketSelectors:n.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(n.scopeName,n);const o=this.loadGrammarWithConfiguration(n.scopeName,1,s);if(o.name=n.name,this._resolvedGrammars.set(n.name,o),n.aliases&&n.aliases.forEach(y=>{this._alias[y]=n.name}),this._loadedLanguagesCache=null,i.size)for(const y of i)this._resolvedGrammars.delete(y.name),this._loadedLanguagesCache=null,(f=(u=this._syncRegistry)==null?void 0:u._injectionGrammars)==null||f.delete(y.scopeName),(d=(h=this._syncRegistry)==null?void 0:h._grammars)==null||d.delete(y.scopeName),this.loadLanguage(this._langMap.get(y.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(n){for(const o of n)this.resolveEmbeddedLanguages(o);const i=Array.from(this._langGraph.entries()),s=i.filter(([o,u])=>!u);if(s.length){const o=i.filter(([u,f])=>{var h;return f&&((h=f.embeddedLangs)==null?void 0:h.some(d=>s.map(([y])=>y).includes(d)))}).filter(u=>!s.includes(u));throw new Os(`Missing languages ${s.map(([u])=>`\`${u}\``).join(", ")}, required by ${o.map(([u])=>`\`${u}\``).join(", ")}`)}for(const[o,u]of i)this._resolver.addLanguage(u);for(const[o,u]of i)this.loadLanguage(u)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(n){this._langMap.set(n.name,n),this._langGraph.set(n.name,n);const i=n.embeddedLanguages??n.embeddedLangs;if(i)for(const s of i)this._langGraph.set(s,this._langMap.get(s))}}class iz{constructor(t,n){W(this,"_langs",new Map);W(this,"_scopeToLang",new Map);W(this,"_injections",new Map);W(this,"_onigLib");this._onigLib={createOnigScanner:i=>t.createScanner(i),createOnigString:i=>t.createString(i)},n.forEach(i=>this.addLanguage(i))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let i=[];for(let s=1;s<=n.length;s++){const o=n.slice(0,s).join(".");i=[...i,...this._injections.get(o)||[]]}return i}}let so=0;function az(e){so+=1,e.warnings!==!1&&so>=10&&so%10===0&&console.warn(`[Shiki] ${so} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Os("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(ag),s=new iz(e.engine,n),o=new rz(s,i,n,e.langAlias);let u;function f(R){k();const L=o.getGrammar(typeof R=="string"?R:R.name);if(!L)throw new Os(`Language \`${R}\` not found, you may need to load it first`);return L}function h(R){if(R==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};k();const L=o.getTheme(R);if(!L)throw new Os(`Theme \`${R}\` not found, you may need to load it first`);return L}function d(R){k();const L=h(R);u!==R&&(o.setTheme(L),u=R);const z=o.getColorMap();return{theme:L,colorMap:z}}function y(){return k(),o.getLoadedThemes()}function p(){return k(),o.getLoadedLanguages()}function v(...R){k(),o.loadLanguages(R.flat(1))}async function _(...R){return v(await xE(R))}function b(...R){k();for(const L of R.flat(1))o.loadTheme(L)}async function E(...R){return k(),b(await SE(R))}function k(){if(t)throw new Os("Shiki instance has been disposed")}function T(){t||(t=!0,o.dispose(),so-=1)}return{setTheme:d,getTheme:h,getLanguage:f,getLoadedThemes:y,getLoadedLanguages:p,loadLanguage:_,loadLanguageSync:v,loadTheme:E,loadThemeSync:b,dispose:T,[Symbol.dispose]:T}}async function sz(e){e.engine||nz("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");const[t,n,i]=await Promise.all([SE(e.themes||[]),xE(e.langs||[]),e.engine]);return az({...e,themes:t,langs:n,engine:i})}async function lz(e){const t=await sz(e);return{getLastGrammarState:(...n)=>V4(t,...n),codeToTokensBase:(n,i)=>ig(t,n,i),codeToTokensWithThemes:(n,i)=>bE(t,n,i),codeToTokens:(n,i)=>sf(t,n,i),codeToHast:(n,i)=>lf(t,n,i),codeToHtml:(n,i)=>ez(t,n,i),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function oz(e){const t=e.langs,n=e.themes,i=e.engine;async function s(o){function u(p){var v;if(typeof p=="string"){if(pE(p))return[];p=((v=o.langAlias)==null?void 0:v[p])||p;const _=t[p];if(!_)throw new vt(`Language \`${p}\` is not included in this bundle. You may want to load it from external source.`);return _}return p}function f(p){if(gE(p))return"none";if(typeof p=="string"){const v=n[p];if(!v)throw new vt(`Theme \`${p}\` is not included in this bundle. You may want to load it from external source.`);return v}return p}const h=(o.themes??[]).map(p=>f(p)),d=(o.langs??[]).map(p=>u(p)),y=await lz({engine:o.engine??i(),...o,themes:h,langs:d});return{...y,loadLanguage(...p){return y.loadLanguage(...p.map(u))},loadTheme(...p){return y.loadTheme(...p.map(f))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return s}function uz(e){let t;async function n(i={}){if(t){const s=await t;return await Promise.all([s.loadTheme(...i.themes||[]),s.loadLanguage(...i.langs||[])]),s}else{t=e({...i,themes:[],langs:[]});const s=await t;return await Promise.all([s.loadTheme(...i.themes||[]),s.loadLanguage(...i.langs||[])]),s}}return n}function cz(e,t){const n=uz(e);async function i(s,o){var h;const u=await n({langs:[o.lang],themes:"theme"in o?[o.theme]:Object.values(o.themes)}),f=await((h=t==null?void 0:t.guessEmbeddedLanguages)==null?void 0:h.call(t,s,o.lang,u));return f&&await u.loadLanguage(...f),u}return{getSingletonHighlighter(s){return n(s)},async codeToHtml(s,o){return(await i(s,o)).codeToHtml(s,o)},async codeToHast(s,o){return(await i(s,o)).codeToHast(s,o)},async codeToTokens(s,o){return(await i(s,o)).codeToTokens(s,o)},async codeToTokensBase(s,o){return(await i(s,o)).codeToTokensBase(s,o)},async codeToTokensWithThemes(s,o){return(await i(s,o)).codeToTokensWithThemes(s,o)},async getLastGrammarState(s,o){return(await n({langs:[o.lang],themes:[o.theme]})).getLastGrammarState(s,o)}}}const EE=[{id:"abap",name:"ABAP",import:(()=>C(()=>import("./abap-BdImnpbu.js"),[]))},{id:"actionscript-3",name:"ActionScript",import:(()=>C(()=>import("./actionscript-3-CfeIJUat.js"),[]))},{id:"ada",name:"Ada",import:(()=>C(()=>import("./ada-bCR0ucgS.js"),[]))},{id:"angular-html",name:"Angular HTML",import:(()=>C(()=>import("./angular-html-CU67Zn6k.js").then(e=>e.f),__vite__mapDeps([0,1,2,3])))},{id:"angular-ts",name:"Angular TypeScript",import:(()=>C(()=>import("./angular-ts-BwZT4LLn.js"),__vite__mapDeps([4,0,1,2,3,5])))},{id:"apache",name:"Apache Conf",import:(()=>C(()=>import("./apache-Pmp26Uib.js"),[]))},{id:"apex",name:"Apex",import:(()=>C(()=>import("./apex-DDbsPZ6N.js"),[]))},{id:"apl",name:"APL",import:(()=>C(()=>import("./apl-dKokRX4l.js"),__vite__mapDeps([6,1,2,3,7,8,9])))},{id:"applescript",name:"AppleScript",import:(()=>C(()=>import("./applescript-Co6uUVPk.js"),[]))},{id:"ara",name:"Ara",import:(()=>C(()=>import("./ara-BRHolxvo.js"),[]))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:(()=>C(()=>import("./asciidoc-Dv7Oe6Be.js"),[]))},{id:"asm",name:"Assembly",import:(()=>C(()=>import("./asm-D_Q5rh1f.js"),[]))},{id:"astro",name:"Astro",import:(()=>C(()=>import("./astro-CbQHKStN.js"),__vite__mapDeps([10,9,2,11,3,12,13])))},{id:"awk",name:"AWK",import:(()=>C(()=>import("./awk-DMzUqQB5.js"),[]))},{id:"ballerina",name:"Ballerina",import:(()=>C(()=>import("./ballerina-BFfxhgS-.js"),[]))},{id:"bat",name:"Batch File",aliases:["batch"],import:(()=>C(()=>import("./bat-BkioyH1T.js"),[]))},{id:"beancount",name:"Beancount",import:(()=>C(()=>import("./beancount-k_qm7-4y.js"),[]))},{id:"berry",name:"Berry",aliases:["be"],import:(()=>C(()=>import("./berry-uYugtg8r.js"),[]))},{id:"bibtex",name:"BibTeX",import:(()=>C(()=>import("./bibtex-CHM0blh-.js"),[]))},{id:"bicep",name:"Bicep",import:(()=>C(()=>import("./bicep-Bmn6On1c.js"),[]))},{id:"blade",name:"Blade",import:(()=>C(()=>import("./blade-DVc8C-J4.js"),__vite__mapDeps([14,15,1,2,3,7,8,16,9])))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:(()=>C(()=>import("./bsl-BO_Y6i37.js"),__vite__mapDeps([17,18])))},{id:"c",name:"C",import:(()=>C(()=>import("./c-BIGW1oBm.js"),[]))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:(()=>C(()=>import("./cadence-Bv_4Rxtq.js"),[]))},{id:"cairo",name:"Cairo",import:(()=>C(()=>import("./cairo-KRGpt6FW.js"),__vite__mapDeps([19,20])))},{id:"clarity",name:"Clarity",import:(()=>C(()=>import("./clarity-D53aC0YG.js"),[]))},{id:"clojure",name:"Clojure",aliases:["clj"],import:(()=>C(()=>import("./clojure-P80f7IUj.js"),[]))},{id:"cmake",name:"CMake",import:(()=>C(()=>import("./cmake-D1j8_8rp.js"),[]))},{id:"cobol",name:"COBOL",import:(()=>C(()=>import("./cobol-nwyudZeR.js"),__vite__mapDeps([21,1,2,3,8])))},{id:"codeowners",name:"CODEOWNERS",import:(()=>C(()=>import("./codeowners-Bp6g37R7.js"),[]))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:(()=>C(()=>import("./codeql-DsOJ9woJ.js"),[]))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:(()=>C(()=>import("./coffee-Ch7k5sss.js"),__vite__mapDeps([22,2])))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:(()=>C(()=>import("./common-lisp-Cg-RD9OK.js"),[]))},{id:"coq",name:"Coq",import:(()=>C(()=>import("./coq-DkFqJrB1.js"),[]))},{id:"cpp",name:"C++",aliases:["c++"],import:(()=>C(()=>import("./cpp-CofmeUqb.js"),__vite__mapDeps([23,24,25,26,16])))},{id:"crystal",name:"Crystal",import:(()=>C(()=>import("./crystal-tKQVLTB8.js"),__vite__mapDeps([27,1,2,3,16,26,28])))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:(()=>C(()=>import("./csharp-K5feNrxe.js"),[]))},{id:"css",name:"CSS",import:(()=>C(()=>import("./css-DPfMkruS.js"),[]))},{id:"csv",name:"CSV",import:(()=>C(()=>import("./csv-fuZLfV_i.js"),[]))},{id:"cue",name:"CUE",import:(()=>C(()=>import("./cue-D82EKSYY.js"),[]))},{id:"cypher",name:"Cypher",aliases:["cql"],import:(()=>C(()=>import("./cypher-COkxafJQ.js"),[]))},{id:"d",name:"D",import:(()=>C(()=>import("./d-85-TOEBH.js"),[]))},{id:"dart",name:"Dart",import:(()=>C(()=>import("./dart-CF10PKvl.js"),[]))},{id:"dax",name:"DAX",import:(()=>C(()=>import("./dax-CEL-wOlO.js"),[]))},{id:"desktop",name:"Desktop",import:(()=>C(()=>import("./desktop-BmXAJ9_W.js"),[]))},{id:"diff",name:"Diff",import:(()=>C(()=>import("./diff-D97Zzqfu.js"),[]))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:(()=>C(()=>import("./docker-BcOcwvcX.js"),[]))},{id:"dotenv",name:"dotEnv",import:(()=>C(()=>import("./dotenv-Da5cRb03.js"),[]))},{id:"dream-maker",name:"Dream Maker",import:(()=>C(()=>import("./dream-maker-BtqSS_iP.js"),[]))},{id:"edge",name:"Edge",import:(()=>C(()=>import("./edge-BkV0erSs.js"),__vite__mapDeps([29,11,1,2,3,15])))},{id:"elixir",name:"Elixir",import:(()=>C(()=>import("./elixir-CDX3lj18.js"),__vite__mapDeps([30,1,2,3])))},{id:"elm",name:"Elm",import:(()=>C(()=>import("./elm-DbKCFpqz.js"),__vite__mapDeps([31,25,26])))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:(()=>C(()=>import("./emacs-lisp-C9XAeP06.js"),[]))},{id:"erb",name:"ERB",import:(()=>C(()=>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:(()=>C(()=>import("./erlang-DsQrWhSR.js"),__vite__mapDeps([39,40])))},{id:"fennel",name:"Fennel",import:(()=>C(()=>import("./fennel-BYunw83y.js"),[]))},{id:"fish",name:"Fish",import:(()=>C(()=>import("./fish-BvzEVeQv.js"),[]))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:(()=>C(()=>import("./fluent-C4IJs8-o.js"),[]))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:(()=>C(()=>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:(()=>C(()=>import("./fortran-free-form-D22FLkUw.js"),[]))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:(()=>C(()=>import("./fsharp-CXgrBDvD.js"),__vite__mapDeps([43,40])))},{id:"gdresource",name:"GDResource",import:(()=>C(()=>import("./gdresource-B7Tvp0Sc.js"),__vite__mapDeps([44,45,46])))},{id:"gdscript",name:"GDScript",import:(()=>C(()=>import("./gdscript-DTMYz4Jt.js"),[]))},{id:"gdshader",name:"GDShader",import:(()=>C(()=>import("./gdshader-DkwncUOv.js"),[]))},{id:"genie",name:"Genie",import:(()=>C(()=>import("./genie-D0YGMca9.js"),[]))},{id:"gherkin",name:"Gherkin",import:(()=>C(()=>import("./gherkin-DyxjwDmM.js"),[]))},{id:"git-commit",name:"Git Commit Message",import:(()=>C(()=>import("./git-commit-F4YmCXRG.js"),__vite__mapDeps([47,48])))},{id:"git-rebase",name:"Git Rebase Message",import:(()=>C(()=>import("./git-rebase-r7XF79zn.js"),__vite__mapDeps([49,28])))},{id:"gleam",name:"Gleam",import:(()=>C(()=>import("./gleam-BspZqrRM.js"),[]))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:(()=>C(()=>import("./glimmer-js-Rg0-pVw9.js"),__vite__mapDeps([50,2,11,3,1])))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:(()=>C(()=>import("./glimmer-ts-U6CK756n.js"),__vite__mapDeps([51,11,3,2,1])))},{id:"glsl",name:"GLSL",import:(()=>C(()=>import("./glsl-DplSGwfg.js"),__vite__mapDeps([25,26])))},{id:"gnuplot",name:"Gnuplot",import:(()=>C(()=>import("./gnuplot-DdkO51Og.js"),[]))},{id:"go",name:"Go",import:(()=>C(()=>import("./go-Dn2_MT6a.js"),[]))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:(()=>C(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([35,2,11,36,13])))},{id:"groovy",name:"Groovy",import:(()=>C(()=>import("./groovy-gcz8RCvz.js"),[]))},{id:"hack",name:"Hack",import:(()=>C(()=>import("./hack-CaT9iCJl.js"),__vite__mapDeps([52,1,2,3,16])))},{id:"haml",name:"Ruby Haml",import:(()=>C(()=>import("./haml-B8DHNrY2.js"),__vite__mapDeps([34,2,3])))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:(()=>C(()=>import("./handlebars-BL8al0AC.js"),__vite__mapDeps([53,1,2,3,38])))},{id:"haskell",name:"Haskell",aliases:["hs"],import:(()=>C(()=>import("./haskell-Df6bDoY_.js"),[]))},{id:"haxe",name:"Haxe",import:(()=>C(()=>import("./haxe-CzTSHFRz.js"),[]))},{id:"hcl",name:"HashiCorp HCL",import:(()=>C(()=>import("./hcl-BWvSN4gD.js"),[]))},{id:"hjson",name:"Hjson",import:(()=>C(()=>import("./hjson-D5-asLiD.js"),[]))},{id:"hlsl",name:"HLSL",import:(()=>C(()=>import("./hlsl-D3lLCCz7.js"),[]))},{id:"html",name:"HTML",import:(()=>C(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([1,2,3])))},{id:"html-derivative",name:"HTML (Derivative)",import:(()=>C(()=>import("./html-derivative-BFtXZ54Q.js"),__vite__mapDeps([15,1,2,3])))},{id:"http",name:"HTTP",import:(()=>C(()=>import("./http-jrhK8wxY.js"),__vite__mapDeps([54,28,9,7,8,35,2,11,36,13])))},{id:"hurl",name:"Hurl",import:(()=>C(()=>import("./hurl-irOxFIW8.js"),__vite__mapDeps([55,35,2,11,36,13,7,8,56])))},{id:"hxml",name:"HXML",import:(()=>C(()=>import("./hxml-Bvhsp5Yf.js"),__vite__mapDeps([57,58])))},{id:"hy",name:"Hy",import:(()=>C(()=>import("./hy-DFXneXwc.js"),[]))},{id:"imba",name:"Imba",import:(()=>C(()=>import("./imba-DGztddWO.js"),[]))},{id:"ini",name:"INI",aliases:["properties"],import:(()=>C(()=>import("./ini-BEwlwnbL.js"),[]))},{id:"java",name:"Java",import:(()=>C(()=>import("./java-CylS5w8V.js"),[]))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:(()=>C(()=>import("./javascript-wDzz0qaB.js"),[]))},{id:"jinja",name:"Jinja",import:(()=>C(()=>import("./jinja-4LBKfQ-Z.js"),__vite__mapDeps([59,1,2,3])))},{id:"jison",name:"Jison",import:(()=>C(()=>import("./jison-wvAkD_A8.js"),__vite__mapDeps([60,2])))},{id:"json",name:"JSON",import:(()=>C(()=>import("./json-Cp-IABpG.js"),[]))},{id:"json5",name:"JSON5",import:(()=>C(()=>import("./json5-C9tS-k6U.js"),[]))},{id:"jsonc",name:"JSON with Comments",import:(()=>C(()=>import("./jsonc-Des-eS-w.js"),[]))},{id:"jsonl",name:"JSON Lines",import:(()=>C(()=>import("./jsonl-DcaNXYhu.js"),[]))},{id:"jsonnet",name:"Jsonnet",import:(()=>C(()=>import("./jsonnet-DFQXde-d.js"),[]))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:(()=>C(()=>import("./jssm-C2t-YnRu.js"),[]))},{id:"jsx",name:"JSX",import:(()=>C(()=>import("./jsx-g9-lgVsj.js"),[]))},{id:"julia",name:"Julia",aliases:["jl"],import:(()=>C(()=>import("./julia-C8NyazO9.js"),__vite__mapDeps([61,23,24,25,26,16,20,2,62])))},{id:"kdl",name:"KDL",import:(()=>C(()=>import("./kdl-DV7GczEv.js"),[]))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:(()=>C(()=>import("./kotlin-BdnUsdx6.js"),[]))},{id:"kusto",name:"Kusto",aliases:["kql"],import:(()=>C(()=>import("./kusto-BvAqAH-y.js"),[]))},{id:"latex",name:"LaTeX",import:(()=>C(()=>import("./latex-BdAV_C_H.js"),__vite__mapDeps([63,64,62])))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:(()=>C(()=>import("./lean-Bc6EcWN3.js"),[]))},{id:"less",name:"Less",import:(()=>C(()=>import("./less-B1dDrJ26.js"),[]))},{id:"liquid",name:"Liquid",import:(()=>C(()=>import("./liquid-DYVedYrR.js"),__vite__mapDeps([65,1,2,3,9])))},{id:"llvm",name:"LLVM IR",import:(()=>C(()=>import("./llvm-BtvRca6l.js"),[]))},{id:"log",name:"Log file",import:(()=>C(()=>import("./log-2UxHyX5q.js"),[]))},{id:"logo",name:"Logo",import:(()=>C(()=>import("./logo-BtOb2qkB.js"),[]))},{id:"lua",name:"Lua",import:(()=>C(()=>import("./lua-BbnMAYS6.js"),__vite__mapDeps([37,26])))},{id:"luau",name:"Luau",import:(()=>C(()=>import("./luau-CXu1NL6O.js"),[]))},{id:"make",name:"Makefile",aliases:["makefile"],import:(()=>C(()=>import("./make-CHLpvVh8.js"),[]))},{id:"markdown",name:"Markdown",aliases:["md"],import:(()=>C(()=>import("./markdown-Cvjx9yec.js"),[]))},{id:"marko",name:"Marko",import:(()=>C(()=>import("./marko-CPi9NSCl.js"),__vite__mapDeps([66,3,67,5,11])))},{id:"matlab",name:"MATLAB",import:(()=>C(()=>import("./matlab-D7o27uSR.js"),[]))},{id:"mdc",name:"MDC",import:(()=>C(()=>import("./mdc-DUICxH0z.js"),__vite__mapDeps([68,40,38,15,1,2,3])))},{id:"mdx",name:"MDX",import:(()=>C(()=>import("./mdx-Cmh6b_Ma.js"),[]))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:(()=>C(()=>import("./mermaid-DKYwYmdq.js"),[]))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:(()=>C(()=>import("./mipsasm-CKIfxQSi.js"),[]))},{id:"mojo",name:"Mojo",import:(()=>C(()=>import("./mojo-1DNp92w6.js"),[]))},{id:"move",name:"Move",import:(()=>C(()=>import("./move-Bu9oaDYs.js"),[]))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:(()=>C(()=>import("./narrat-DRg8JJMk.js"),[]))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:(()=>C(()=>import("./nextflow-BrzmwbiE.js"),[]))},{id:"nginx",name:"Nginx",import:(()=>C(()=>import("./nginx-DknmC5AR.js"),__vite__mapDeps([69,37,26])))},{id:"nim",name:"Nim",import:(()=>C(()=>import("./nim-CVrawwO9.js"),__vite__mapDeps([70,26,1,2,3,7,8,25,40])))},{id:"nix",name:"Nix",import:(()=>C(()=>import("./nix-c8nO5XWb.js"),[]))},{id:"nushell",name:"nushell",aliases:["nu"],import:(()=>C(()=>import("./nushell-C-sUppwS.js"),[]))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:(()=>C(()=>import("./objective-c-DXmwc3jG.js"),[]))},{id:"objective-cpp",name:"Objective-C++",import:(()=>C(()=>import("./objective-cpp-CLxacb5B.js"),[]))},{id:"ocaml",name:"OCaml",import:(()=>C(()=>import("./ocaml-C0hk2d4L.js"),[]))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:(()=>C(()=>import("./openscad-C4EeE6gA.js"),[]))},{id:"pascal",name:"Pascal",import:(()=>C(()=>import("./pascal-D93ZcfNL.js"),[]))},{id:"perl",name:"Perl",import:(()=>C(()=>import("./perl-C0TMdlhV.js"),__vite__mapDeps([71,1,2,3,7,8,16])))},{id:"php",name:"PHP",import:(()=>C(()=>import("./php-CDn_0X-4.js"),__vite__mapDeps([72,1,2,3,7,8,16,9])))},{id:"pkl",name:"Pkl",import:(()=>C(()=>import("./pkl-u5AG7uiY.js"),[]))},{id:"plsql",name:"PL/SQL",import:(()=>C(()=>import("./plsql-ChMvpjG-.js"),[]))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:(()=>C(()=>import("./po-BTJTHyun.js"),[]))},{id:"polar",name:"Polar",import:(()=>C(()=>import("./polar-C0HS_06l.js"),[]))},{id:"postcss",name:"PostCSS",import:(()=>C(()=>import("./postcss-CXtECtnM.js"),[]))},{id:"powerquery",name:"PowerQuery",import:(()=>C(()=>import("./powerquery-CEu0bR-o.js"),[]))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:(()=>C(()=>import("./powershell-Dpen1YoG.js"),[]))},{id:"prisma",name:"Prisma",import:(()=>C(()=>import("./prisma-Dd19v3D-.js"),[]))},{id:"prolog",name:"Prolog",import:(()=>C(()=>import("./prolog-CbFg5uaA.js"),[]))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:(()=>C(()=>import("./proto-DyJlTyXw.js"),[]))},{id:"pug",name:"Pug",aliases:["jade"],import:(()=>C(()=>import("./pug-CGlum2m_.js"),__vite__mapDeps([73,2,3,1])))},{id:"puppet",name:"Puppet",import:(()=>C(()=>import("./puppet-BMWR74SV.js"),[]))},{id:"purescript",name:"PureScript",import:(()=>C(()=>import("./purescript-CklMAg4u.js"),[]))},{id:"python",name:"Python",aliases:["py"],import:(()=>C(()=>import("./python-B6aJPvgy.js"),[]))},{id:"qml",name:"QML",import:(()=>C(()=>import("./qml-3beO22l8.js"),__vite__mapDeps([74,2])))},{id:"qmldir",name:"QML Directory",import:(()=>C(()=>import("./qmldir-C8lEn-DE.js"),[]))},{id:"qss",name:"Qt Style Sheets",import:(()=>C(()=>import("./qss-IeuSbFQv.js"),[]))},{id:"r",name:"R",import:(()=>C(()=>import("./r-DiinP2Uv.js"),[]))},{id:"racket",name:"Racket",import:(()=>C(()=>import("./racket-BqYA7rlc.js"),[]))},{id:"raku",name:"Raku",aliases:["perl6"],import:(()=>C(()=>import("./raku-DXvB9xmW.js"),[]))},{id:"razor",name:"ASP.NET Razor",import:(()=>C(()=>import("./razor-CE9lU5zL.js"),__vite__mapDeps([75,1,2,3,76])))},{id:"reg",name:"Windows Registry Script",import:(()=>C(()=>import("./reg-C-SQnVFl.js"),[]))},{id:"regexp",name:"RegExp",aliases:["regex"],import:(()=>C(()=>import("./regexp-CDVJQ6XC.js"),[]))},{id:"rel",name:"Rel",import:(()=>C(()=>import("./rel-C3B-1QV4.js"),[]))},{id:"riscv",name:"RISC-V",import:(()=>C(()=>import("./riscv-BM1_JUlF.js"),[]))},{id:"rosmsg",name:"ROS Interface",import:(()=>C(()=>import("./rosmsg-BJDFO7_C.js"),[]))},{id:"rst",name:"reStructuredText",import:(()=>C(()=>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:(()=>C(()=>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:(()=>C(()=>import("./rust-B1yitclQ.js"),[]))},{id:"sas",name:"SAS",import:(()=>C(()=>import("./sas-cz2c8ADy.js"),__vite__mapDeps([79,16])))},{id:"sass",name:"Sass",import:(()=>C(()=>import("./sass-Cj5Yp3dK.js"),[]))},{id:"scala",name:"Scala",import:(()=>C(()=>import("./scala-C151Ov-r.js"),[]))},{id:"scheme",name:"Scheme",import:(()=>C(()=>import("./scheme-C98Dy4si.js"),[]))},{id:"scss",name:"SCSS",import:(()=>C(()=>import("./scss-OYdSNvt2.js"),__vite__mapDeps([5,3])))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:(()=>C(()=>import("./sdbl-DVxCFoDh.js"),[]))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:(()=>C(()=>import("./shaderlab-Dg9Lc6iA.js"),__vite__mapDeps([80,81])))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:(()=>C(()=>import("./shellscript-Yzrsuije.js"),[]))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:(()=>C(()=>import("./shellsession-BADoaaVG.js"),__vite__mapDeps([82,28])))},{id:"smalltalk",name:"Smalltalk",import:(()=>C(()=>import("./smalltalk-BERRCDM3.js"),[]))},{id:"solidity",name:"Solidity",import:(()=>C(()=>import("./solidity-rGO070M0.js"),[]))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:(()=>C(()=>import("./soy-Brmx7dQM.js"),__vite__mapDeps([83,1,2,3])))},{id:"sparql",name:"SPARQL",import:(()=>C(()=>import("./sparql-rVzFXLq3.js"),__vite__mapDeps([84,85])))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:(()=>C(()=>import("./splunk-BtCnVYZw.js"),[]))},{id:"sql",name:"SQL",import:(()=>C(()=>import("./sql-BLtJtn59.js"),[]))},{id:"ssh-config",name:"SSH Config",import:(()=>C(()=>import("./ssh-config-_ykCGR6B.js"),[]))},{id:"stata",name:"Stata",import:(()=>C(()=>import("./stata-BH5u7GGu.js"),__vite__mapDeps([86,16])))},{id:"stylus",name:"Stylus",aliases:["styl"],import:(()=>C(()=>import("./stylus-BEDo0Tqx.js"),[]))},{id:"svelte",name:"Svelte",import:(()=>C(()=>import("./svelte-3Dk4HxPD.js"),__vite__mapDeps([87,2,11,3,12])))},{id:"swift",name:"Swift",import:(()=>C(()=>import("./swift-Dg5xB15N.js"),[]))},{id:"system-verilog",name:"SystemVerilog",import:(()=>C(()=>import("./system-verilog-CnnmHF94.js"),[]))},{id:"systemd",name:"Systemd Units",import:(()=>C(()=>import("./systemd-4A_iFExJ.js"),[]))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:(()=>C(()=>import("./talonscript-CkByrt1z.js"),[]))},{id:"tasl",name:"Tasl",import:(()=>C(()=>import("./tasl-QIJgUcNo.js"),[]))},{id:"tcl",name:"Tcl",import:(()=>C(()=>import("./tcl-dwOrl1Do.js"),[]))},{id:"templ",name:"Templ",import:(()=>C(()=>import("./templ-W15q3VgB.js"),__vite__mapDeps([88,89,2,3])))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:(()=>C(()=>import("./terraform-BETggiCN.js"),[]))},{id:"tex",name:"TeX",import:(()=>C(()=>import("./tex-CxkMU7Pf.js"),__vite__mapDeps([64,62])))},{id:"toml",name:"TOML",import:(()=>C(()=>import("./toml-vGWfd6FD.js"),[]))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:(()=>C(()=>import("./ts-tags-zn1MmPIZ.js"),__vite__mapDeps([90,11,3,2,25,26,1,16,7,8])))},{id:"tsv",name:"TSV",import:(()=>C(()=>import("./tsv-B_m7g4N7.js"),[]))},{id:"tsx",name:"TSX",import:(()=>C(()=>import("./tsx-COt5Ahok.js"),[]))},{id:"turtle",name:"Turtle",import:(()=>C(()=>import("./turtle-BsS91CYL.js"),[]))},{id:"twig",name:"Twig",import:(()=>C(()=>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:(()=>C(()=>import("./typescript-BPQ3VLAy.js"),[]))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:(()=>C(()=>import("./typespec-BGHnOYBU.js"),[]))},{id:"typst",name:"Typst",aliases:["typ"],import:(()=>C(()=>import("./typst-DHCkPAjA.js"),[]))},{id:"v",name:"V",import:(()=>C(()=>import("./v-BcVCzyr7.js"),[]))},{id:"vala",name:"Vala",import:(()=>C(()=>import("./vala-CsfeWuGM.js"),[]))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:(()=>C(()=>import("./vb-D17OF-Vu.js"),[]))},{id:"verilog",name:"Verilog",import:(()=>C(()=>import("./verilog-BQ8w6xss.js"),[]))},{id:"vhdl",name:"VHDL",import:(()=>C(()=>import("./vhdl-CeAyd5Ju.js"),[]))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:(()=>C(()=>import("./viml-CJc9bBzg.js"),[]))},{id:"vue",name:"Vue",import:(()=>C(()=>import("./vue-DnHKYNfI.js"),__vite__mapDeps([92,3,2,11,9,15,1])))},{id:"vue-html",name:"Vue HTML",import:(()=>C(()=>import("./vue-html-CChd_i61.js"),__vite__mapDeps([93,92,3,2,11,9,15,1])))},{id:"vue-vine",name:"Vue Vine",import:(()=>C(()=>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:(()=>C(()=>import("./vyper-CDx5xZoG.js"),[]))},{id:"wasm",name:"WebAssembly",import:(()=>C(()=>import("./wasm-MzD3tlZU.js"),[]))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:(()=>C(()=>import("./wenyan-BV7otONQ.js"),[]))},{id:"wgsl",name:"WGSL",import:(()=>C(()=>import("./wgsl-Dx-B1_4e.js"),[]))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:(()=>C(()=>import("./wikitext-BhOHFoWU.js"),[]))},{id:"wit",name:"WebAssembly Interface Types",import:(()=>C(()=>import("./wit-5i3qLPDT.js"),[]))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:(()=>C(()=>import("./wolfram-lXgVvXCa.js"),[]))},{id:"xml",name:"XML",import:(()=>C(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([7,8])))},{id:"xsl",name:"XSL",import:(()=>C(()=>import("./xsl-CtQFsRM5.js"),__vite__mapDeps([96,7,8])))},{id:"yaml",name:"YAML",aliases:["yml"],import:(()=>C(()=>import("./yaml-Buea-lGh.js"),[]))},{id:"zenscript",name:"ZenScript",import:(()=>C(()=>import("./zenscript-DVFEvuxE.js"),[]))},{id:"zig",name:"Zig",import:(()=>C(()=>import("./zig-VOosw3JB.js"),[]))}],fz=Object.fromEntries(EE.map(e=>[e.id,e.import])),hz=Object.fromEntries(EE.flatMap(e=>{var t;return((t=e.aliases)==null?void 0:t.map(n=>[n,e.import]))||[]})),dz={...fz,...hz},mz=[{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:(()=>C(()=>import("./andromeeda-C-Jbm3Hp.js"),[]))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:(()=>C(()=>import("./aurora-x-D-2ljcwZ.js"),[]))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:(()=>C(()=>import("./ayu-dark-Cv9koXgw.js"),[]))},{id:"catppuccin-frappe",displayName:"Catppuccin Frappé",type:"dark",import:(()=>C(()=>import("./catppuccin-frappe-DFWUc33u.js"),[]))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:(()=>C(()=>import("./catppuccin-latte-C9dUb6Cb.js"),[]))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:(()=>C(()=>import("./catppuccin-macchiato-DQyhUUbL.js"),[]))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:(()=>C(()=>import("./catppuccin-mocha-D87Tk5Gz.js"),[]))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:(()=>C(()=>import("./dark-plus-C3mMm8J8.js"),[]))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:(()=>C(()=>import("./dracula-BzJJZx-M.js"),[]))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:(()=>C(()=>import("./dracula-soft-BXkSAIEj.js"),[]))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:(()=>C(()=>import("./everforest-dark-BgDCqdQA.js"),[]))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:(()=>C(()=>import("./everforest-light-C8M2exoo.js"),[]))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:(()=>C(()=>import("./github-dark-DHJKELXO.js"),[]))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:(()=>C(()=>import("./github-dark-default-Cuk6v7N8.js"),[]))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:(()=>C(()=>import("./github-dark-dimmed-DH5Ifo-i.js"),[]))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:(()=>C(()=>import("./github-dark-high-contrast-E3gJ1_iC.js"),[]))},{id:"github-light",displayName:"GitHub Light",type:"light",import:(()=>C(()=>import("./github-light-DAi9KRSo.js"),[]))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:(()=>C(()=>import("./github-light-default-D7oLnXFd.js"),[]))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:(()=>C(()=>import("./github-light-high-contrast-BfjtVDDH.js"),[]))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:(()=>C(()=>import("./gruvbox-dark-hard-CFHQjOhq.js"),[]))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:(()=>C(()=>import("./gruvbox-dark-medium-GsRaNv29.js"),[]))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:(()=>C(()=>import("./gruvbox-dark-soft-CVdnzihN.js"),[]))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:(()=>C(()=>import("./gruvbox-light-hard-CH1njM8p.js"),[]))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:(()=>C(()=>import("./gruvbox-light-medium-DRw_LuNl.js"),[]))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:(()=>C(()=>import("./gruvbox-light-soft-hJgmCMqR.js"),[]))},{id:"houston",displayName:"Houston",type:"dark",import:(()=>C(()=>import("./houston-DnULxvSX.js"),[]))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:(()=>C(()=>import("./kanagawa-dragon-CkXjmgJE.js"),[]))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:(()=>C(()=>import("./kanagawa-lotus-CfQXZHmo.js"),[]))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:(()=>C(()=>import("./kanagawa-wave-DWedfzmr.js"),[]))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:(()=>C(()=>import("./laserwave-DUszq2jm.js"),[]))},{id:"light-plus",displayName:"Light Plus",type:"light",import:(()=>C(()=>import("./light-plus-B7mTdjB0.js"),[]))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:(()=>C(()=>import("./material-theme-D5KoaKCx.js"),[]))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:(()=>C(()=>import("./material-theme-darker-BfHTSMKl.js"),[]))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:(()=>C(()=>import("./material-theme-lighter-B0m2ddpp.js"),[]))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:(()=>C(()=>import("./material-theme-ocean-CyktbL80.js"),[]))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:(()=>C(()=>import("./material-theme-palenight-Csfq5Kiy.js"),[]))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:(()=>C(()=>import("./min-dark-CafNBF8u.js"),[]))},{id:"min-light",displayName:"Min Light",type:"light",import:(()=>C(()=>import("./min-light-CTRr51gU.js"),[]))},{id:"monokai",displayName:"Monokai",type:"dark",import:(()=>C(()=>import("./monokai-D4h5O-jR.js"),[]))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:(()=>C(()=>import("./night-owl-C39BiMTA.js"),[]))},{id:"nord",displayName:"Nord",type:"dark",import:(()=>C(()=>import("./nord-Ddv68eIx.js"),[]))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:(()=>C(()=>import("./one-dark-pro-DVMEJ2y_.js"),[]))},{id:"one-light",displayName:"One Light",type:"light",import:(()=>C(()=>import("./one-light-PoHY5YXO.js"),[]))},{id:"plastic",displayName:"Plastic",type:"dark",import:(()=>C(()=>import("./plastic-3e1v2bzS.js"),[]))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:(()=>C(()=>import("./poimandres-CS3Unz2-.js"),[]))},{id:"red",displayName:"Red",type:"dark",import:(()=>C(()=>import("./red-bN70gL4F.js"),[]))},{id:"rose-pine",displayName:"Rosé Pine",type:"dark",import:(()=>C(()=>import("./rose-pine-qdsjHGoJ.js"),[]))},{id:"rose-pine-dawn",displayName:"Rosé Pine Dawn",type:"light",import:(()=>C(()=>import("./rose-pine-dawn-DHQR4-dF.js"),[]))},{id:"rose-pine-moon",displayName:"Rosé Pine Moon",type:"dark",import:(()=>C(()=>import("./rose-pine-moon-D4_iv3hh.js"),[]))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:(()=>C(()=>import("./slack-dark-BthQWCQV.js"),[]))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:(()=>C(()=>import("./slack-ochin-DqwNpetd.js"),[]))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:(()=>C(()=>import("./snazzy-light-Bw305WKR.js"),[]))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:(()=>C(()=>import("./solarized-dark-DXbdFlpD.js"),[]))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:(()=>C(()=>import("./solarized-light-L9t79GZl.js"),[]))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:(()=>C(()=>import("./synthwave-84-CbfX1IO0.js"),[]))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:(()=>C(()=>import("./tokyo-night-hegEt444.js"),[]))},{id:"vesper",displayName:"Vesper",type:"dark",import:(()=>C(()=>import("./vesper-DU1UobuO.js"),[]))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:(()=>C(()=>import("./vitesse-black-Bkuqu6BP.js"),[]))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:(()=>C(()=>import("./vitesse-dark-D0r3Knsf.js"),[]))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:(()=>C(()=>import("./vitesse-light-CVO1_9PV.js"),[]))}],pz=Object.fromEntries(mz.map(e=>[e.id,e.import]));class sg extends Error{constructor(t){super(t),this.name="ShikiError"}}function gz(){return 2147483648}function yz(){return typeof performance<"u"?performance.now():Date.now()}const vz=(e,t)=>e+(t-e%t)%t;async function _z(e){let t,n;const i={};function s(_){n=_,i.HEAPU8=new Uint8Array(_),i.HEAPU32=new Uint32Array(_)}function o(_,b,E){i.HEAPU8.copyWithin(_,b,b+E)}function u(_){try{return t.grow(_-n.byteLength+65535>>>16),s(t.buffer),1}catch{}}function f(_){const b=i.HEAPU8.length;_=_>>>0;const E=gz();if(_>E)return!1;for(let k=1;k<=4;k*=2){let T=b*(1+.2/k);T=Math.min(T,_+100663296);const R=Math.min(E,vz(Math.max(_,T),65536));if(u(R))return!0}return!1}const h=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function d(_,b,E=1024){const k=b+E;let T=b;for(;_[T]&&!(T>=k);)++T;if(T-b>16&&_.buffer&&h)return h.decode(_.subarray(b,T));let R="";for(;b<T;){let L=_[b++];if(!(L&128)){R+=String.fromCharCode(L);continue}const z=_[b++]&63;if((L&224)===192){R+=String.fromCharCode((L&31)<<6|z);continue}const V=_[b++]&63;if((L&240)===224?L=(L&15)<<12|z<<6|V:L=(L&7)<<18|z<<12|V<<6|_[b++]&63,L<65536)R+=String.fromCharCode(L);else{const O=L-65536;R+=String.fromCharCode(55296|O>>10,56320|O&1023)}}return R}function y(_,b){return _?d(i.HEAPU8,_,b):""}const p={emscripten_get_now:yz,emscripten_memcpy_big:o,emscripten_resize_heap:f,fd_write:()=>0};async function v(){const b=await e({env:p,wasi_snapshot_preview1:p});t=b.memory,s(t.buffer),Object.assign(i,b),i.UTF8ToString=y}return await v(),i}var bz=Object.defineProperty,xz=(e,t,n)=>t in e?bz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xt=(e,t,n)=>xz(e,typeof t!="symbol"?t+"":t,n);let Ct=null;function Sz(e){throw new sg(e.UTF8ToString(e.getLastOnigError()))}class kf{constructor(t){xt(this,"utf16Length"),xt(this,"utf8Length"),xt(this,"utf16Value"),xt(this,"utf8Value"),xt(this,"utf16OffsetToUtf8"),xt(this,"utf8OffsetToUtf16");const n=t.length,i=kf._utf8ByteLength(t),s=i!==n,o=s?new Uint32Array(n+1):null;s&&(o[n]=i);const u=s?new Uint32Array(i+1):null;s&&(u[i]=n);const f=new Uint8Array(i);let h=0;for(let d=0;d<n;d++){const y=t.charCodeAt(d);let p=y,v=!1;if(y>=55296&&y<=56319&&d+1<n){const _=t.charCodeAt(d+1);_>=56320&&_<=57343&&(p=(y-55296<<10)+65536|_-56320,v=!0)}s&&(o[d]=h,v&&(o[d+1]=h),p<=127?u[h+0]=d:p<=2047?(u[h+0]=d,u[h+1]=d):p<=65535?(u[h+0]=d,u[h+1]=d,u[h+2]=d):(u[h+0]=d,u[h+1]=d,u[h+2]=d,u[h+3]=d)),p<=127?f[h++]=p:p<=2047?(f[h++]=192|(p&1984)>>>6,f[h++]=128|(p&63)>>>0):p<=65535?(f[h++]=224|(p&61440)>>>12,f[h++]=128|(p&4032)>>>6,f[h++]=128|(p&63)>>>0):(f[h++]=240|(p&1835008)>>>18,f[h++]=128|(p&258048)>>>12,f[h++]=128|(p&4032)>>>6,f[h++]=128|(p&63)>>>0),v&&d++}this.utf16Length=n,this.utf8Length=i,this.utf16Value=t,this.utf8Value=f,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=u}static _utf8ByteLength(t){let n=0;for(let i=0,s=t.length;i<s;i++){const o=t.charCodeAt(i);let u=o,f=!1;if(o>=55296&&o<=56319&&i+1<s){const h=t.charCodeAt(i+1);h>=56320&&h<=57343&&(u=(o-55296<<10)+65536|h-56320,f=!0)}u<=127?n+=1:u<=2047?n+=2:u<=65535?n+=3:n+=4,f&&i++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const Cf=class ir{constructor(t){if(xt(this,"id",++ir.LAST_ID),xt(this,"_onigBinding"),xt(this,"content"),xt(this,"utf16Length"),xt(this,"utf8Length"),xt(this,"utf16OffsetToUtf8"),xt(this,"utf8OffsetToUtf16"),xt(this,"ptr"),!Ct)throw new sg("Must invoke loadWasm first.");this._onigBinding=Ct,this.content=t;const n=new kf(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!ir._sharedPtrInUse?(ir._sharedPtr||(ir._sharedPtr=Ct.omalloc(1e4)),ir._sharedPtrInUse=!0,Ct.HEAPU8.set(n.utf8Value,ir._sharedPtr),this.ptr=ir._sharedPtr):this.ptr=n.createString(Ct)}convertUtf8OffsetToUtf16(t){return this.utf8OffsetToUtf16?t<0?0:t>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[t]:t}convertUtf16OffsetToUtf8(t){return this.utf16OffsetToUtf8?t<0?0:t>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[t]:t}dispose(){this.ptr===ir._sharedPtr?ir._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};xt(Cf,"LAST_ID",0);xt(Cf,"_sharedPtr",0);xt(Cf,"_sharedPtrInUse",!1);let wE=Cf;class Ez{constructor(t){if(xt(this,"_onigBinding"),xt(this,"_ptr"),!Ct)throw new sg("Must invoke loadWasm first.");const n=[],i=[];for(let f=0,h=t.length;f<h;f++){const d=new kf(t[f]);n[f]=d.createString(Ct),i[f]=d.utf8Length}const s=Ct.omalloc(4*t.length);Ct.HEAPU32.set(n,s/4);const o=Ct.omalloc(4*t.length);Ct.HEAPU32.set(i,o/4);const u=Ct.createOnigScanner(s,o,t.length);for(let f=0,h=t.length;f<h;f++)Ct.ofree(n[f]);Ct.ofree(o),Ct.ofree(s),u===0&&Sz(Ct),this._onigBinding=Ct,this._ptr=u}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,i){let s=0;if(typeof i=="number"&&(s=i),typeof t=="string"){t=new wE(t);const o=this._findNextMatchSync(t,n,!1,s);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,s)}_findNextMatchSync(t,n,i,s){const o=this._onigBinding,u=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),s);if(u===0)return null;const f=o.HEAPU32;let h=u/4;const d=f[h++],y=f[h++],p=[];for(let v=0;v<y;v++){const _=t.convertUtf8OffsetToUtf16(f[h++]),b=t.convertUtf8OffsetToUtf16(f[h++]);p[v]={start:_,end:b,length:b-_}}return{index:d,captureIndices:p}}}function wz(e){return typeof e.instantiator=="function"}function Tz(e){return typeof e.default=="function"}function kz(e){return typeof e.data<"u"}function Cz(e){return typeof Response<"u"&&e instanceof Response}function Rz(e){var t;return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&((t=Buffer.isBuffer)==null?void 0:t.call(Buffer,e))||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Ec;function Az(e){if(Ec)return Ec;async function t(){Ct=await _z(async n=>{let i=e;return i=await i,typeof i=="function"&&(i=await i(n)),typeof i=="function"&&(i=await i(n)),wz(i)?i=await i.instantiator(n):Tz(i)?i=await i.default(n):(kz(i)&&(i=i.data),Cz(i)?typeof WebAssembly.instantiateStreaming=="function"?i=await Oz(i)(n):i=await Lz(i)(n):Rz(i)?i=await jm(i)(n):i instanceof WebAssembly.Module?i=await jm(i)(n):"default"in i&&i.default instanceof WebAssembly.Module&&(i=await jm(i.default)(n))),"instance"in i&&(i=i.instance),"exports"in i&&(i=i.exports),i})}return Ec=t(),Ec}function jm(e){return t=>WebAssembly.instantiate(e,t)}function Oz(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Lz(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}async function Nz(e){return e&&await Az(e),{createScanner(t){return new Ez(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new wE(t)}}}const jz=oz({langs:dz,themes:pz,engine:()=>Nz(C(()=>import("./wasm-CG6Dc4jp.js"),[]))}),{codeToHtml:hx}=cz(jz,{guessEmbeddedLanguages:E4});function Oo({children:e,className:t="",components:n}){return S.jsx("div",{className:`markdown-content ${t} scroll-smooth`,children:S.jsx(pD,{remarkPlugins:[AP],components:{code:Dz,pre:({children:i})=>S.jsx(S.Fragment,{children:i}),...n},children:e})})}function Dz({children:e,className:t}){const[n,i]=ie.useState(null),s=String(e).replace(/\n$/,""),o=/language-(\w+)/.exec(t||""),u=o?o[1]:void 0,f=!u&&!s.includes(`
271
+ `);return ie.useEffect(()=>{if(f)return;let h=!0;return(async()=>{try{const y=await hx(s,{lang:u||"text",themes:{light:"github-light",dark:"github-dark"}});h&&i(y)}catch{const y=await hx(s,{lang:"text",themes:{light:"github-light",dark:"github-dark"}});h&&i(y)}})(),()=>{h=!1}},[s,u,f]),f?S.jsx("code",{className:"bg-muted text-foreground rounded px-1.5 py-0.5 font-mono text-sm",children:s}):n?S.jsx("div",{className:"shiki-wrapper overflow-x-auto rounded-md text-sm [&_pre]:m-0 [&_pre]:bg-transparent [&_pre]:p-4",dangerouslySetInnerHTML:{__html:n}}):S.jsx("pre",{className:"bg-muted/50 border-border overflow-x-auto rounded-md border p-4",children:S.jsx("code",{className:"text-foreground font-mono text-sm",children:s})})}function lg({items:e,defaultCollapsed:t=!0,className:n=""}){const[i,s]=ie.useState(t);return e.length===0?S.jsx("aside",{className:`hidden ${n}`}):S.jsxs("aside",{className:`toc-root scrollbar-none sticky top-0 z-10 max-h-[calc(100cqh-3rem)] self-start overflow-y-auto ${n}`,children:[S.jsx("style",{children:Iz}),S.jsxs("div",{className:"toc-narrow border-border bg-background overflow-hidden rounded border",children:[S.jsxs("button",{onClick:()=>s(!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:[S.jsx(ib,{className:"h-4 w-4"}),S.jsx("span",{className:"text-sm",children:"Contents"}),S.jsx(d2,{className:`ml-auto h-4 w-4 transition-transform ${i?"":"rotate-180"}`})]}),!i&&S.jsx("div",{className:"scrollbar-thin scrollbar-track-transparent max-h-[300px] overflow-y-auto p-2",children:S.jsx(dx,{items:e})})]}),S.jsxs("nav",{className:"toc-wide flex flex-col",children:[S.jsxs("div",{className:"text-muted-foreground flex items-center gap-2 px-3 py-2 text-xs font-medium uppercase tracking-wide",children:[S.jsx(ib,{className:"h-3.5 w-3.5"}),S.jsx("span",{children:"On this page"})]}),S.jsx("div",{className:"scrollbar-thin scrollbar-track-transparent min-h-0 flex-1 overflow-y-auto p-2",children:S.jsx(dx,{items:e})})]})]})}function Mz(e){let t=e.parentElement;for(;t;){const{overflowY:n}=getComputedStyle(t);if(n==="auto"||n==="scroll")return t;t=t.parentElement}return null}function Pz(e){const t=Mz(e);if(!t)return;const n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=n.top-i.top,o=n.bottom-i.top;s<0?t.scrollTo({top:t.scrollTop+s,behavior:"smooth"}):o>i.height&&t.scrollTo({top:t.scrollTop+o-i.height,behavior:"smooth"})}function dx({items:e}){const t=ie.useCallback(n=>{n.animationName==="toc-activate"&&Pz(n.currentTarget)},[]);return S.jsx(S.Fragment,{children:e.map((n,i)=>S.jsx("a",{href:`#${n.id}`,className:"toc-link text-muted-foreground hover:text-foreground block overflow-hidden text-ellipsis whitespace-nowrap border-l-2 border-transparent px-3 py-1 text-[13px]",style:{"--target":`--toc-${i}`,paddingLeft:n.level===2?"1rem":n.level===3?"1.25rem":"0.75rem",fontSize:(n.level||1)>1?"12px":"13px"},title:n.label,onAnimationStart:t,children:n.label},n.id))})}const zz=String.raw,Iz=zz`
272
272
  /* Default: narrow mode (collapsible) */
273
273
  .toc-narrow {
274
274
  display: block;
@@ -306,10 +306,7 @@ Error generating stack: `+c.message+`
306
306
  animation-fill-mode: both;
307
307
  animation-range: cover 0% cover 100%;
308
308
  }
309
- .scrollbar-none {
310
- scrollbar-width: none;
311
- }
312
- `;function Tz(e){return e.map((t,n)=>`--toc-${n}`).join(", ")}function Si({id:e,index:t,children:n,className:i="",as:s="section"}){return S.jsx(s,{id:e,className:i,style:{viewTimelineName:`--toc-${t}`},children:n})}function Oo({markdown:e,children:t,toc:n,tocItems:i,className:s=""}){const[o,u]=ie.useState([]),f=ie.useRef([]),h=ie.useRef(0);f.current=[],h.current=0;const d=ie.useMemo(()=>{const x=E=>function({children:w}){const C=h.current++,L=String(w),B=L.toLowerCase().replace(/[^a-z0-9\u4e00-\u9fa5]+/g,"-").replace(/^-|-$/g,"")||`heading-${C}`,A={viewTimelineName:`--toc-${C}`};switch(f.current.push({id:B,label:L,level:E}),E){case 1:return S.jsx("h1",{id:B,style:A,children:w});case 2:return S.jsx("h2",{id:B,style:A,children:w});case 3:return S.jsx("h3",{id:B,style:A,children:w});case 4:return S.jsx("h4",{id:B,style:A,children:w});case 5:return S.jsx("h5",{id:B,style:A,children:w});case 6:return S.jsx("h6",{id:B,style:A,children:w})}};return{h1:x(1),h2:x(2),h3:x(3),h4:x(4),h5:x(5),h6:x(6)}},[]);ie.useEffect(()=>{if(n)return;const x=f.current;if(x.length===0)return;(x.length!==o.length||x.some((k,w)=>{var C,L;return k.id!==((C=o[w])==null?void 0:C.id)||k.label!==((L=o[w])==null?void 0:L.label)}))&&u([...x])});const y=i??o,p=ie.useMemo(()=>Tz(y),[y]),v=n??(o.length>0?S.jsx(ag,{items:o,className:"viewer-toc"}):null),_=e?S.jsx(Ao,{className:"viewer-content min-w-0",components:d,children:e}):S.jsx("div",{className:"viewer-content min-w-0",children:t});return S.jsxs("div",{className:`@container-[size] h-full ${s}`,children:[S.jsx("style",{children:Rz}),S.jsxs(kz,{className:"viewer-layout gap-6",timelineScope:p,children:[v,_]})]})}function kz({children:e,className:t="",timelineScope:n}){return S.jsx("div",{className:`scrollbar-thin scrollbar-track-transparent h-full overflow-auto scroll-smooth p-6 ${t}`,style:n?{timelineScope:n}:void 0,children:e})}const Cz=String.raw,Rz=Cz`
309
+ `;function Bz(e){return e.map((t,n)=>`--toc-${n}`).join(", ")}function Pi({id:e,index:t,children:n,className:i="",as:s="section"}){return S.jsx(s,{id:e,className:i,style:{viewTimelineName:`--toc-${t}`},children:n})}function Rf({markdown:e,children:t,toc:n,tocItems:i,className:s=""}){const[o,u]=ie.useState([]),f=ie.useRef([]),h=ie.useRef(0);f.current=[],h.current=0;const d=ie.useMemo(()=>{const b=E=>{const k=`h${E}`;return function({children:R}){const L=h.current++,z=String(R),O=z.toLowerCase().replace(/[^a-z0-9\u4e00-\u9fa5]+/g,"-").replace(/^-|-$/g,"")||`heading-${L}`;return f.current.push({id:O,label:z,level:E}),S.jsx(k,{id:O,style:{viewTimelineName:`--toc-${L}`},children:R})}};return{h1:b(1),h2:b(2),h3:b(3),h4:b(4),h5:b(5),h6:b(6)}},[]);ie.useEffect(()=>{if(n)return;const b=f.current;if(b.length===0)return;(b.length!==o.length||b.some((k,T)=>{var R,L;return k.id!==((R=o[T])==null?void 0:R.id)||k.label!==((L=o[T])==null?void 0:L.label)}))&&u([...b])},[e,n,o]);const y=i??o,p=ie.useMemo(()=>Bz(y),[y]),v=n??S.jsx(lg,{items:o,className:"viewer-toc"}),_=e?S.jsx(Oo,{className:"viewer-content min-w-0",components:d,children:e}):S.jsx("div",{className:"viewer-content min-w-0",children:t});return S.jsxs("div",{className:`@container-[size] h-full ${s}`,children:[S.jsx("style",{children:Vz}),S.jsxs(Uz,{className:"viewer-layout gap-6",timelineScope:p,children:[v,_]})]})}function Uz({children:e,className:t="",timelineScope:n}){return S.jsx("div",{className:`scrollbar-thin scrollbar-track-transparent h-full overflow-auto scroll-smooth p-6 ${t}`,style:n?{timelineScope:n}:void 0,children:e})}const qz=String.raw,Vz=qz`
313
310
  /* Container query based layout */
314
311
  .viewer-layout {
315
312
  display: block;
@@ -332,51 +329,4 @@ Error generating stack: `+c.message+`
332
329
  order: 1;
333
330
  }
334
331
  }
335
- `;function Az(){const{specId:e}=Ws({from:"/specs/$specId"});JA(e);const{data:t,isLoading:n}=xn(Sn.spec.get.queryOptions({id:e})),{data:i}=xn(Sn.spec.validate.queryOptions({id:e})),s=ie.useMemo(()=>{if(!t)return[];const o=[{id:"overview",label:"Overview",level:1}];if(t.requirements.length>0){o.push({id:"requirements",label:"Requirements",level:1});for(const u of t.requirements){const f=u.text.length>30?`${u.text.slice(0,30)}…`:u.text;o.push({id:`req-${u.id}`,label:f,level:2})}}return o},[t]);return n?S.jsx("div",{className:"animate-pulse",children:"Loading spec..."}):t?S.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(ut,{to:"/specs",className:"hover:bg-muted rounded-md p-2",children:S.jsx(Lp,{className:"h-5 w-5"})}),S.jsxs("div",{children:[S.jsx("h1",{className:"text-2xl font-bold",children:t.name}),S.jsxs("p",{className:"text-muted-foreground",children:["ID: ",t.id]})]})]}),i&&S.jsx(Oz,{validation:i}),S.jsx(Oo,{toc:S.jsx(ag,{items:s,className:"viewer-toc"}),tocItems:s,className:"min-h-0 flex-1",children:S.jsxs("div",{className:"space-y-6",children:[S.jsxs(Si,{id:"overview",index:0,children:[S.jsx("h2",{className:"mb-2 text-lg font-semibold",children:"Overview"}),S.jsx("div",{className:"bg-muted/30 rounded-lg p-4",children:t.overview?S.jsx(Ao,{children:t.overview}):S.jsx("span",{className:"text-muted-foreground",children:"No overview"})})]}),S.jsxs(Si,{id:"requirements",index:1,children:[S.jsxs("h2",{className:"mb-3 text-lg font-semibold",children:["Requirements (",t.requirements.length,")"]}),S.jsxs("div",{className:"space-y-4",children:[t.requirements.map((o,u)=>S.jsxs(Si,{id:`req-${o.id}`,index:2+u,as:"div",className:"border-border rounded-lg border p-4",children:[S.jsx("div",{className:"mb-2 font-medium",children:o.text}),o.scenarios.length>0&&S.jsxs("div",{className:"mt-3",children:[S.jsxs("div",{className:"text-muted-foreground mb-2 text-sm font-medium",children:["Scenarios (",o.scenarios.length,")"]}),o.scenarios.map((f,h)=>{const d=f.rawText.replace(/^---\n?/,"").replace(/\n?---$/,"").trim();return S.jsx("div",{className:"bg-muted/50 rounded-md p-3",children:S.jsx(Ao,{children:d})},h)})]})]},o.id)),t.requirements.length===0&&S.jsx("div",{className:"text-muted-foreground",children:"No requirements defined"})]})]})]})})]}):S.jsx("div",{className:"text-red-600",children:"Spec not found"})}function Oz({validation:e}){const t=e.issues.filter(s=>s.severity==="ERROR"),n=e.issues.filter(s=>s.severity==="WARNING"),i=e.issues.filter(s=>s.severity==="INFO");return S.jsxs("div",{className:`flex rounded-lg border p-4 ${e.valid?"border-green-500 bg-green-500/10":"border-red-500 bg-red-500/10"}`,children:[S.jsxs("div",{className:"align-content flex gap-2",children:[e.valid?S.jsx(yf,{className:"h-5 w-5 text-green-500"}):S.jsx(Hc,{className:"h-5 w-5 text-red-500"}),S.jsx("span",{className:`font-medium ${e.valid?"text-green-600":"text-red-600"}`,children:e.valid?"Validation Passed":"Validation Failed"})]}),e.issues.length>0&&S.jsxs("div",{className:"space-y-1 text-sm",children:[t.map((s,o)=>S.jsxs("div",{className:"flex items-start gap-2 text-red-600",children:[S.jsx(Hc,{className:"mt-0.5 h-4 w-4 shrink-0"}),S.jsx("span",{children:s.message})]},o)),n.map((s,o)=>S.jsxs("div",{className:"flex items-start gap-2 text-yellow-600",children:[S.jsx(F2,{className:"mt-0.5 h-4 w-4 shrink-0"}),S.jsx("span",{children:s.message})]},o)),i.map((s,o)=>S.jsxs("div",{className:"text-muted-foreground flex items-start gap-2",children:[S.jsx(E2,{className:"mt-0.5 h-4 w-4 shrink-0"}),S.jsx("span",{children:s.message})]},o))]})]})}function Lz(){tl();const{data:e,isLoading:t}=xn(Sn.change.listWithMeta.queryOptions());return t?S.jsx("div",{className:"animate-pulse",children:"Loading changes..."}):S.jsxs("div",{className:"space-y-6",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Changes"}),S.jsxs("p",{className:"text-muted-foreground",children:["Active change proposals. Completed changes are moved to"," ",S.jsx(ut,{to:"/archive",className:"text-primary hover:underline",children:"Archive"}),"."]}),S.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[e==null?void 0:e.map(n=>S.jsxs(ut,{to:"/changes/$changeId",params:{changeId:n.id},className:"flex items-center justify-between p-4 hover:bg-muted/50",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(jp,{className:"w-5 h-5 text-muted-foreground"}),S.jsxs("div",{children:[S.jsx("div",{className:"font-medium",children:n.name}),S.jsxs("div",{className:"text-sm text-muted-foreground",children:[n.id," · ",n.progress.completed,"/",n.progress.total," tasks"]})]})]}),S.jsx(Np,{className:"w-4 h-4 text-muted-foreground"})]},n.id)),(e==null?void 0:e.length)===0&&S.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No active changes. Create one in ",S.jsx("code",{children:"openspec/changes/"})]})]})]})}const Nz=ie.memo(function({task:t,taskIndex:n,isToggling:i,onToggle:s}){return S.jsxs("button",{onClick:()=>s(n,!t.completed),className:"w-full p-3 flex items-center gap-3 hover:bg-muted/50 transition-colors text-left",children:[i?S.jsx(O2,{className:"w-5 h-5 text-primary shrink-0 animate-spin"}):t.completed?S.jsx(yf,{className:"w-5 h-5 text-green-500 shrink-0"}):S.jsx(d2,{className:"w-5 h-5 text-muted-foreground shrink-0 hover:text-primary"}),S.jsx("span",{className:t.completed?"line-through text-muted-foreground":"",children:t.text}),t.section&&S.jsx("span",{className:"ml-auto text-xs px-2 py-1 bg-muted rounded",children:t.section})]})},(e,t)=>e.task.id===t.task.id&&e.task.completed===t.task.completed&&e.isToggling===t.isToggling);function jz(e){const t=new Map;for(const n of e){const i=n.section||"General",s=t.get(i)||[];s.push(n),t.set(i,s)}return Array.from(t.entries()).map(([n,i])=>({section:n,tasks:i,completed:i.filter(s=>s.completed).length,total:i.length}))}function hx(e){return`section-${e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}`}function Dz(){var x;const{changeId:e}=Ws({from:"/changes/$changeId"}),t=zo(),n=Sp();WA(e);const{data:i,isLoading:s}=xn(Sn.change.get.queryOptions({id:e})),{data:o}=xn(Sn.change.validate.queryOptions({id:e})),u=bo({mutationFn:()=>Fr.change.archive.mutate({id:e}),onSuccess:()=>{n.invalidateQueries({queryKey:["change","list"]}),n.invalidateQueries({queryKey:["change","listArchived"]}),t({to:"/changes"})}}),f=bo({mutationFn:E=>Fr.change.toggleTask.mutate({changeId:e,taskIndex:E.taskIndex,completed:E.completed}),onSuccess:()=>{n.invalidateQueries({queryKey:[["change","get"]]})}}),h=ie.useCallback((E,k)=>{f.mutate({taskIndex:E,completed:k})},[f]),d=f.isPending?((x=f.variables)==null?void 0:x.taskIndex)??null:null,y=ie.useMemo(()=>i?jz(i.tasks):[],[i]),p=ie.useMemo(()=>{if(!i)return[];const E=[{id:"why",label:"Why",level:1},{id:"what-changes",label:"What Changes",level:1}];i.deltas.length>0&&E.push({id:"affected-specs",label:"Affected Specs",level:1}),E.push({id:"tasks",label:"Tasks",level:1});for(const k of y)E.push({id:hx(k.section),label:`${k.section} (${k.completed}/${k.total})`,level:2});return E},[i,y]);if(s)return S.jsx("div",{className:"animate-pulse",children:"Loading change..."});if(!i)return S.jsx("div",{className:"text-red-600",children:"Change not found"});const v=i.progress.total>0?Math.round(i.progress.completed/i.progress.total*100):0,_=(E,k)=>{let w=0;for(let C=0;C<E;C++)w+=y[C].tasks.length;return w+k+1};return S.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(ut,{to:"/changes",className:"p-2 hover:bg-muted rounded-md",children:S.jsx(Lp,{className:"w-5 h-5"})}),S.jsxs("div",{children:[S.jsx("h1",{className:"text-2xl font-bold",children:i.name}),S.jsxs("p",{className:"text-muted-foreground",children:["ID: ",i.id]})]})]}),S.jsxs("button",{onClick:()=>u.mutate(),disabled:u.isPending,className:"flex items-center gap-2 px-4 py-2 bg-muted hover:bg-muted/80 rounded-md disabled:opacity-50",children:[S.jsx(Ea,{className:"w-4 h-4"}),u.isPending?"Archiving...":"Archive"]})]}),o&&!o.valid&&S.jsxs("div",{className:"border border-red-500 bg-red-500/10 rounded-lg p-4",children:[S.jsxs("div",{className:"flex items-center gap-2 text-red-600 font-medium mb-2",children:[S.jsx(Hc,{className:"w-5 h-5"}),"Validation Issues"]}),S.jsx("ul",{className:"text-sm space-y-1",children:o.issues.map((E,k)=>S.jsx("li",{className:"text-red-600",children:E.message},k))})]}),S.jsx(Oo,{toc:S.jsx(ag,{items:p,className:"viewer-toc"}),tocItems:p,className:"min-h-0 flex-1",children:S.jsxs("div",{className:"space-y-6",children:[S.jsxs(Si,{id:"why",index:0,children:[S.jsx("h2",{className:"text-lg font-semibold mb-2",children:"Why"}),S.jsx("div",{className:"p-4 bg-muted/30 rounded-lg",children:i.why?S.jsx(Ao,{children:i.why}):S.jsx("span",{className:"text-muted-foreground",children:"No description"})})]}),S.jsxs(Si,{id:"what-changes",index:1,children:[S.jsx("h2",{className:"text-lg font-semibold mb-2",children:"What Changes"}),S.jsx("div",{className:"p-4 bg-muted/30 rounded-lg",children:i.whatChanges?S.jsx(Ao,{children:i.whatChanges}):S.jsx("span",{className:"text-muted-foreground",children:"No changes listed"})})]}),i.deltas.length>0&&S.jsxs(Si,{id:"affected-specs",index:2,children:[S.jsxs("h2",{className:"text-lg font-semibold mb-3",children:["Affected Specs (",i.deltas.length,")"]}),S.jsx("div",{className:"border border-border rounded-lg divide-y divide-border",children:i.deltas.map((E,k)=>S.jsxs("div",{className:"p-3 flex items-center justify-between",children:[S.jsx(ut,{to:"/specs/$specId",params:{specId:E.spec},className:"font-medium hover:underline",children:E.spec}),S.jsx("span",{className:"text-sm px-2 py-1 bg-muted rounded",children:E.operation})]},k))})]}),S.jsxs(Si,{id:"tasks",index:i.deltas.length>0?3:2,children:[S.jsxs("div",{className:"flex items-center justify-between mb-3",children:[S.jsxs("h2",{className:"text-lg font-semibold",children:["Tasks (",i.progress.completed,"/",i.progress.total,")"]}),S.jsxs("span",{className:"text-sm text-muted-foreground",children:[v,"%"]})]}),S.jsx("div",{className:"w-full bg-muted rounded-full h-2 mb-4",children:S.jsx("div",{className:"bg-primary h-2 rounded-full transition-all",style:{width:`${v}%`}})}),S.jsxs("div",{className:"space-y-6",children:[y.map((E,k)=>{const w=hx(E.section),C=E.total>0?Math.round(E.completed/E.total*100):0,L=i.deltas.length>0?4:3;return S.jsxs(Si,{id:w,index:L+k,as:"div",children:[S.jsxs("div",{className:"flex items-center justify-between mb-2",children:[S.jsx("h3",{className:"font-medium text-foreground",children:E.section}),S.jsxs("span",{className:"text-xs text-muted-foreground",children:[E.completed,"/",E.total," (",C,"%)"]})]}),S.jsx("div",{className:"border border-border rounded-lg divide-y divide-border",children:E.tasks.map((z,B)=>{const A=_(k,B);return S.jsx(Nz,{task:z,taskIndex:A,isToggling:d===A,onToggle:h},z.id)})})]},E.section)}),y.length===0&&S.jsx("div",{className:"p-4 text-muted-foreground text-center border border-border rounded-lg",children:"No tasks defined"})]})]})]})})]})}function Mz(){tl();const{data:e,isLoading:t}=xn(Sn.archive.listWithMeta.queryOptions());return t?S.jsx("div",{className:"animate-pulse",children:"Loading archived changes..."}):S.jsxs("div",{className:"space-y-6",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(Ea,{className:"w-6 h-6"}),S.jsx("h1",{className:"text-2xl font-bold",children:"Archive"})]}),S.jsx("p",{className:"text-muted-foreground",children:"Completed changes that have been archived after implementation."}),S.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[e==null?void 0:e.map(n=>S.jsxs(ut,{to:"/archive/$changeId",params:{changeId:n.id},className:"flex items-center justify-between p-4 hover:bg-muted/50",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(Ea,{className:"w-5 h-5 text-muted-foreground"}),S.jsxs("div",{children:[S.jsx("div",{className:"font-medium",children:n.name}),S.jsx("div",{className:"text-sm text-muted-foreground",children:n.id})]})]}),S.jsx(Np,{className:"w-4 h-4 text-muted-foreground"})]},n.id)),(e==null?void 0:e.length)===0&&S.jsxs("div",{className:"p-8 text-center text-muted-foreground",children:[S.jsx(Ea,{className:"w-12 h-12 mx-auto mb-4 opacity-50"}),S.jsx("p",{children:"No archived changes yet."}),S.jsxs("p",{className:"text-sm mt-2",children:["Changes are archived after implementation using"," ",S.jsx("code",{className:"bg-muted px-1 rounded",children:"openspec archive"})]})]})]})]})}function Pz({tabs:e,defaultTab:t,className:n=""}){var o;const[i,s]=ie.useState(t||((o=e[0])==null?void 0:o.id));return e.length===0?null:S.jsxs("div",{className:`flex min-h-0 flex-1 flex-col ${n}`,children:[S.jsx("div",{className:"z-2 flex gap-1",children:e.map(u=>S.jsxs("button",{onClick:()=>s(u.id),className:`-mb-px flex items-center gap-2 border-b-2 px-4 py-2 text-sm font-medium transition-colors ${i===u.id?"border-primary text-foreground":"text-muted-foreground hover:text-foreground border-transparent"}`,children:[u.icon,u.label]},u.id))}),S.jsx("div",{className:"min-h-0 flex-1",children:e.map(u=>S.jsx(ie.Activity,{mode:i===u.id?"visible":"hidden",children:u.content},u.id))})]})}const zz=JC("/archive/$changeId");function Iz(){tl();const{changeId:e}=zz.useParams(),{data:t,isLoading:n}=xn(Sn.archive.get.queryOptions({id:e})),{data:i}=xn(Sn.archive.getRaw.queryOptions({id:e})),s=ie.useMemo(()=>{const o=[{id:"proposal",label:"proposal.md",icon:S.jsx(Ks,{className:"w-4 h-4"}),content:i!=null&&i.proposal?S.jsx("div",{className:"h-full border border-border rounded-lg",children:S.jsx(Oo,{markdown:i.proposal})}):S.jsx("div",{className:"p-8 text-center text-muted-foreground border border-border rounded-lg",children:S.jsx("p",{children:"proposal.md not found."})})}];return i!=null&&i.tasks&&o.push({id:"tasks",label:"tasks.md",icon:S.jsx(C2,{className:"w-4 h-4"}),content:S.jsx("div",{className:"h-full border border-border rounded-lg",children:S.jsx(Oo,{markdown:i.tasks})})}),o},[i]);return n?S.jsx("div",{className:"animate-pulse",children:"Loading archived change..."}):t?S.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(ut,{to:"/archive",className:"p-2 hover:bg-muted rounded-md transition-colors",title:"Back to Archive",children:S.jsx(Lp,{className:"w-5 h-5"})}),S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(Ea,{className:"w-6 h-6 text-muted-foreground"}),S.jsxs("div",{children:[S.jsx("h1",{className:"text-2xl font-bold",children:t.name}),S.jsx("p",{className:"text-sm text-muted-foreground",children:e})]})]})]}),S.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[S.jsx(yf,{className:"w-4 h-4 text-green-500"}),S.jsxs("span",{className:"text-green-600",children:["Completed: ",t.progress.completed,"/",t.progress.total," tasks"]})]}),S.jsx(Pz,{tabs:s,defaultTab:"proposal"})]}):S.jsxs("div",{className:"text-center py-12",children:[S.jsxs("p",{className:"text-muted-foreground",children:["Archived change not found: ",e]}),S.jsx(ut,{to:"/archive",className:"text-primary hover:underline mt-4 inline-block",children:"Back to Archive"})]})}function Bz(){tl();const[e,t]=ie.useState("project"),[n,i]=ie.useState(null),[s,o]=ie.useState(""),{data:u,isLoading:f,refetch:h}=xn(Sn.project.getProjectMd.queryOptions()),{data:d,isLoading:y,refetch:p}=xn(Sn.project.getAgentsMd.queryOptions()),v=bo({mutationFn:A=>Fr.project.saveProjectMd.mutate({content:A}),onSuccess:()=>{h(),i(null)}}),_=bo({mutationFn:A=>Fr.project.saveAgentsMd.mutate({content:A}),onSuccess:()=>{p(),i(null)}}),x=e==="project"?u:d,E=e==="project"?v:_,k=n===e,w=()=>{o(x||""),i(e)},C=()=>{E.mutate(s)},L=()=>{i(null),o("")},z=[{id:"project",label:"project.md",icon:S.jsx(Ks,{className:"w-4 h-4"})},{id:"agents",label:"AGENTS.md",icon:S.jsx(s2,{className:"w-4 h-4"})}],B={project:S.jsxs("p",{children:[S.jsx("strong",{children:"project.md"})," defines project context, tech stack, and conventions for AI assistants."]}),agents:S.jsxs("p",{children:[S.jsx("strong",{children:"AGENTS.md"})," provides workflow instructions for AI coding assistants using OpenSpec."]})};return S.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Project"}),!k&&x&&S.jsxs("button",{onClick:w,className:"border-border flex items-center gap-2 rounded-md border px-3 py-1.5 text-sm hover:bg-muted",children:[S.jsx(I2,{className:"h-4 w-4"}),"Edit"]})]}),S.jsx("div",{className:"border-border flex gap-1 border-b",children:z.map(A=>S.jsxs("button",{onClick:()=>t(A.id),className:`-mb-px flex items-center gap-2 border-b-2 px-4 py-2 text-sm font-medium transition-colors ${e===A.id?"border-primary text-foreground":"text-muted-foreground hover:text-foreground border-transparent"}`,children:[A.icon,A.label]},A.id))}),S.jsxs("div",{className:"border-border min-h-0 flex-1 overflow-hidden rounded-lg border",children:[S.jsx(ie.Activity,{mode:e==="project"?"visible":"hidden",children:S.jsx(dx,{content:u,isLoading:f,isEditing:n==="project",editContent:s,setEditContent:o,onCancel:L,onSave:C,savePending:v.isPending,tabName:"project.md",defaultContent:"# Project Context\\n\\n## Purpose\\n\\n## Tech Stack\\n\\n## Conventions\\n",onStartEdit:()=>{o(u||""),i("project")}})}),S.jsx(ie.Activity,{mode:e==="agents"?"visible":"hidden",children:S.jsx(dx,{content:d,isLoading:y,isEditing:n==="agents",editContent:s,setEditContent:o,onCancel:L,onSave:C,savePending:_.isPending,tabName:"AGENTS.md",defaultContent:"# AI Agent Instructions\\n\\n## Workflow\\n\\n## Commands\\n",onStartEdit:()=>{o(d||""),i("agents")}})})]}),S.jsx("div",{className:"text-muted-foreground text-sm",children:B[e]})]})}function dx({content:e,isLoading:t,isEditing:n,editContent:i,setEditContent:s,onCancel:o,onSave:u,savePending:f,tabName:h,defaultContent:d,onStartEdit:y}){return t?S.jsx("div",{className:"animate-pulse p-4",children:"Loading..."}):e?n?S.jsxs("div",{className:"flex h-full flex-col",children:[S.jsxs("div",{className:"border-border bg-muted/30 flex items-center justify-between border-b p-2",children:[S.jsxs("span",{className:"px-2 text-sm font-medium",children:["Editing ",h]}),S.jsxs("div",{className:"flex gap-2",children:[S.jsxs("button",{onClick:o,className:"border-border flex items-center gap-1 rounded border px-3 py-1 text-sm hover:bg-muted",children:[S.jsx(z1,{className:"h-3 w-3"}),"Cancel"]}),S.jsxs("button",{onClick:u,disabled:f,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:[S.jsx(U2,{className:"h-3 w-3"}),f?"Saving...":"Save"]})]})]}),S.jsx("textarea",{value:i,onChange:p=>s(p.target.value),className:"bg-background flex-1 resize-none p-4 font-mono text-sm focus:outline-none",spellCheck:!1})]}):S.jsx(Oo,{markdown:e}):S.jsxs("div",{className:"text-muted-foreground p-8 text-center",children:[S.jsxs("p",{className:"mb-4",children:[h," not found."]}),S.jsxs("button",{onClick:()=>{s(d),y()},className:"bg-primary text-primary-foreground rounded-md px-4 py-2 hover:opacity-90",children:["Create ",h]})]})}function Uz(){const e=localStorage.getItem("theme");return e==="light"||e==="dark"||e==="system"?e:"system"}function mx(e){const t=document.documentElement;if(e==="system"){const n=window.matchMedia("(prefers-color-scheme: dark)").matches;t.classList.toggle("dark",n)}else t.classList.toggle("dark",e==="dark")}function qz(){var h;const[e,t]=ie.useState(Uz),[n,i]=ie.useState(Ls()||""),[s,o]=ie.useState(!1),u=bo({mutationFn:()=>Fr.init.init.mutate(),onSuccess:()=>{o(!0),setTimeout(()=>o(!1),3e3)}});ie.useEffect(()=>{mx(e),localStorage.setItem("theme",e)},[e]),ie.useEffect(()=>{if(e!=="system")return;const d=window.matchMedia("(prefers-color-scheme: dark)"),y=()=>mx("system");return d.addEventListener("change",y),()=>d.removeEventListener("change",y)},[e]);const f=()=>{const d=new URL(window.location.href);n?d.searchParams.set("api",n):d.searchParams.delete("api"),window.location.href=d.toString()};return S.jsxs("div",{className:"space-y-8 max-w-2xl",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Settings"}),S.jsxs("section",{className:"space-y-4",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"Appearance"}),S.jsxs("div",{className:"border border-border rounded-lg p-4",children:[S.jsx("label",{className:"text-sm font-medium mb-3 block",children:"Theme"}),S.jsxs("div",{className:"flex gap-2",children:[S.jsxs("button",{onClick:()=>t("light"),className:`flex items-center gap-2 px-4 py-2 rounded-md border transition-colors ${e==="light"?"border-primary bg-primary text-primary-foreground":"border-border hover:bg-muted"}`,children:[S.jsx(H2,{className:"w-4 h-4"}),"Light"]}),S.jsxs("button",{onClick:()=>t("dark"),className:`flex items-center gap-2 px-4 py-2 rounded-md border transition-colors ${e==="dark"?"border-primary bg-primary text-primary-foreground":"border-border hover:bg-muted"}`,children:[S.jsx(P2,{className:"w-4 h-4"}),"Dark"]}),S.jsxs("button",{onClick:()=>t("system"),className:`flex items-center gap-2 px-4 py-2 rounded-md border transition-colors ${e==="system"?"border-primary bg-primary text-primary-foreground":"border-border hover:bg-muted"}`,children:[S.jsx(D2,{className:"w-4 h-4"}),"System"]})]})]})]}),S.jsxs("section",{className:"space-y-4",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"API Configuration"}),S.jsx("div",{className:"border border-border rounded-lg p-4 space-y-4",children:S.jsxs("div",{children:[S.jsx("label",{className:"text-sm font-medium mb-2 block",children:"API Server URL"}),S.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Leave empty for same-origin requests. Set a custom URL to connect to a different server."}),S.jsxs("div",{className:"flex gap-2",children:[S.jsx("input",{type:"text",value:n,onChange:d=>i(d.target.value),placeholder:"http://localhost:3100",className:"flex-1 px-3 py-2 border border-border rounded-md bg-background text-foreground"}),S.jsx("button",{onClick:f,className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90",children:"Apply"})]}),Ls()&&S.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:["Current: ",S.jsx("code",{className:"bg-muted px-1 rounded",children:Ls()})]})]})})]}),S.jsxs("section",{className:"space-y-4",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"File Watcher"}),S.jsxs("div",{className:"border border-border rounded-lg p-4",children:[S.jsx("p",{className:"text-sm text-muted-foreground mb-3",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."}),S.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[S.jsx(P1,{className:"w-4 h-4 text-green-500"}),S.jsx("span",{children:"Enabled: Real-time updates when files change"})]}),S.jsxs("div",{className:"flex items-center gap-2 text-sm mt-2",children:[S.jsx(M1,{className:"w-4 h-4 text-yellow-500"}),S.jsx("span",{children:"Disabled: Manual refresh required"})]}),S.jsxs("p",{className:"text-sm text-muted-foreground mt-3",children:["To disable file watching, restart the server with"," ",S.jsx("code",{className:"bg-muted px-1 rounded",children:"--no-watch"})," flag."]})]})]}),S.jsxs("section",{className:"space-y-4",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"Initialize OpenSpec"}),S.jsxs("div",{className:"border border-border rounded-lg p-4",children:[S.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Create the OpenSpec directory structure in the current project. This will create"," ",S.jsx("code",{className:"bg-muted px-1 rounded",children:"openspec/"})," with specs, changes, and archive directories."]}),S.jsxs("button",{onClick:()=>u.mutate(),disabled:u.isPending,className:"flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90 disabled:opacity-50",children:[S.jsx(v2,{className:"w-4 h-4"}),u.isPending?"Initializing...":"Initialize OpenSpec"]}),s&&S.jsx("p",{className:"text-sm text-green-600 mt-2",children:"OpenSpec initialized successfully!"}),u.isError&&S.jsxs("p",{className:"text-sm text-red-600 mt-2",children:["Error: ",((h=u.error)==null?void 0:h.message)||"Failed to initialize"]})]})]})]})}const Vz=String.raw,lf=[{to:"/",icon:T2,label:"Dashboard"},{to:"/project",icon:b2,label:"Project"},{to:"/specs",icon:Ks,label:"Specs"},{to:"/changes",icon:jp,label:"Changes"},{to:"/archive",icon:Ea,label:"Archive"}];function EE(){const e=N1();return S.jsx("div",{className:"status-indicator flex items-center gap-1.5 text-xs",children:e.connected?S.jsxs(S.Fragment,{children:[S.jsx(P1,{className:"w-3.5 h-3.5 text-green-500"}),S.jsx("span",{className:"status-text text-green-600",children:"Live"})]}):S.jsxs(S.Fragment,{children:[S.jsx(M1,{className:"w-3.5 h-3.5 text-red-500"}),S.jsx("span",{className:"status-text text-red-600",children:"Offline"})]})})}function Hz(){const e=N1();return S.jsxs("div",{className:"desktop-status h-8 border-t border-border bg-muted/30 px-4 flex items-center justify-between text-xs text-muted-foreground",children:[S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(EE,{}),e.projectDir&&S.jsxs("div",{className:"flex items-center gap-1.5",title:e.projectDir,children:[S.jsx(g2,{className:"w-3.5 h-3.5"}),S.jsx("span",{className:"max-w-[300px] truncate",children:e.projectDir})]})]}),e.connected&&S.jsx("div",{className:"flex items-center gap-1.5",children:e.watcherEnabled?S.jsx("span",{className:"text-green-600",children:"Watching for changes"}):S.jsx("span",{className:"text-yellow-600",children:"File watcher disabled"})})]})}function Gz(){const[e,t]=ie.useState(!1),i=$t().location.pathname,s=lf.find(u=>u.to==="/"?i==="/":i.startsWith(u.to)),o=(s==null?void 0:s.label)??"OpenSpec";return S.jsxs(S.Fragment,{children:[S.jsxs("header",{className:"mobile-header h-12 border-b border-border bg-background px-4 flex items-center justify-between",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx("button",{onClick:()=>t(!0),className:"p-1.5 -ml-1.5 hover:bg-muted rounded-md","aria-label":"Open menu",children:S.jsx(N2,{className:"w-5 h-5"})}),S.jsx("span",{className:"font-semibold",children:o})]}),S.jsx(EE,{})]}),e&&S.jsxs("div",{className:"fixed inset-0 z-50 flex",children:[S.jsx("div",{className:"absolute inset-0 bg-black/50",onClick:()=>t(!1)}),S.jsxs("nav",{className:"relative w-64 max-w-[80vw] bg-background border-r border-border p-4 flex flex-col",children:[S.jsxs("div",{className:"flex items-center justify-between mb-6",children:[S.jsx("h1",{className:"text-xl font-bold",children:"OpenSpec UI"}),S.jsx("button",{onClick:()=>t(!1),className:"p-1.5 hover:bg-muted rounded-md","aria-label":"Close menu",children:S.jsx(z1,{className:"w-5 h-5"})})]}),S.jsx("ul",{className:"space-y-1 flex-1",children:lf.map(u=>S.jsx("li",{children:S.jsxs(ut,{to:u.to,onClick:()=>t(!1),className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[S.jsx(u.icon,{className:"w-4 h-4"}),u.label]})},u.to))}),S.jsx("div",{className:"pt-4 border-t border-border",children:S.jsxs(ut,{to:"/settings",onClick:()=>t(!1),className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[S.jsx(D1,{className:"w-4 h-4"}),"Settings"]})})]})]})]})}function Fz(){return S.jsx("nav",{className:"mobile-tabbar h-14 border-t border-border bg-background flex items-stretch",children:lf.slice(0,5).map(e=>S.jsxs(ut,{to:e.to,className:"flex-1 flex flex-col items-center justify-center gap-0.5 text-muted-foreground hover:text-foreground [&.active]:text-primary",children:[S.jsx(e.icon,{className:"w-5 h-5"}),S.jsx("span",{className:"text-[10px]",children:e.label})]},e.to))})}function Qz(){return S.jsxs("nav",{className:"desktop-sidebar w-64 border-r border-border bg-muted/30 p-4 flex flex-col shrink-0",children:[S.jsx("h1",{className:"text-xl font-bold mb-6",children:"OpenSpec UI"}),S.jsx("ul",{className:"space-y-1 flex-1",children:lf.map(e=>S.jsx("li",{children:S.jsxs(ut,{to:e.to,className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[S.jsx(e.icon,{className:"w-4 h-4"}),e.label]})},e.to))}),S.jsx("div",{className:"pt-4 border-t border-border",children:S.jsxs(ut,{to:"/settings",className:"flex items-center gap-2 px-3 py-2 rounded-md hover:bg-muted [&.active]:bg-primary [&.active]:text-primary-foreground",children:[S.jsx(D1,{className:"w-4 h-4"}),"Settings"]})})]})}const $z=Vz`
336
- /* Default: mobile layout */
337
- .app-layout {
338
- display: flex;
339
- flex-direction: column;
340
- }
341
- .app-body {
342
- display: flex;
343
- flex-direction: column;
344
- flex: 1;
345
- min-height: 0;
346
- }
347
- .desktop-sidebar,
348
- .desktop-status {
349
- display: none;
350
- }
351
- .mobile-header,
352
- .mobile-tabbar {
353
- display: flex;
354
- }
355
- .main-content {
356
- flex: 1;
357
- min-height: 0;
358
- overflow: auto;
359
- padding: 1rem;
360
- }
361
-
362
- /* Desktop: sidebar layout (container width >= 768px) */
363
- @container app (min-width: 768px) {
364
- .app-layout {
365
- flex-direction: row;
366
- }
367
- .app-body {
368
- min-width: 0;
369
- }
370
- .desktop-sidebar,
371
- .desktop-status {
372
- display: flex;
373
- }
374
- .mobile-header,
375
- .mobile-tabbar {
376
- display: none;
377
- }
378
- .main-content {
379
- padding: 1.5rem;
380
- }
381
- }
382
- `,hr=nR({component:function(){return S.jsxs("div",{className:"fixed inset-0 @container/app",style:{containerName:"app"},children:[S.jsx("style",{children:$z}),S.jsxs("div",{className:"app-layout h-full",children:[S.jsx(Qz,{}),S.jsxs("div",{className:"app-body flex flex-col flex-1 min-h-0",children:[S.jsx(Gz,{}),S.jsx("main",{className:"main-content flex flex-col",children:S.jsx(r1,{})}),S.jsx(Fz,{}),S.jsx(Hz,{})]})]})]})}}),Yz=ur({getParentRoute:()=>hr,path:"/",component:K2}),Kz=ur({getParentRoute:()=>hr,path:"/project",component:Bz}),Xz=ur({getParentRoute:()=>hr,path:"/specs",component:X2}),Zz=ur({getParentRoute:()=>hr,path:"/specs/$specId",component:Az}),Jz=ur({getParentRoute:()=>hr,path:"/changes",component:Lz}),Wz=ur({getParentRoute:()=>hr,path:"/changes/$changeId",component:Dz}),eI=ur({getParentRoute:()=>hr,path:"/archive",component:Mz}),tI=ur({getParentRoute:()=>hr,path:"/archive/$changeId",component:Iz}),nI=ur({getParentRoute:()=>hr,path:"/settings",component:qz}),rI=hr.addChildren([Yz,Kz,Xz,Zz,Jz,Wz,eI,tI,nI]),iI=fR({routeTree:rI});function aI(){return S.jsx(vk,{client:Rt,children:S.jsx(mR,{router:iI})})}YT.createRoot(document.getElementById("root")).render(S.jsx(aI,{}));
332
+ `;function Hz(){const{specId:e}=el({from:"/specs/$specId"});sO(e);const{data:t,isLoading:n}=xn(Sn.spec.get.queryOptions({id:e})),{data:i}=xn(Sn.spec.validate.queryOptions({id:e})),s=ie.useMemo(()=>{if(!t)return[];const o=[{id:"overview",label:"Overview",level:1}];if(t.requirements.length>0){o.push({id:"requirements",label:"Requirements",level:1});for(const u of t.requirements){const f=u.text.length>30?`${u.text.slice(0,30)}…`:u.text;o.push({id:`req-${u.id}`,label:f,level:2})}}return o},[t]);return n?S.jsx("div",{className:"animate-pulse",children:"Loading spec..."}):t?S.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(ut,{to:"/specs",className:"hover:bg-muted rounded-md p-2",children:S.jsx(Np,{className:"h-5 w-5"})}),S.jsxs("div",{children:[S.jsx("h1",{className:"text-2xl font-bold",children:t.name}),S.jsxs("p",{className:"text-muted-foreground",children:["ID: ",t.id]})]})]}),i&&S.jsx(Gz,{validation:i}),S.jsx(Rf,{toc:S.jsx(lg,{items:s,className:"viewer-toc"}),tocItems:s,className:"min-h-0 flex-1",children:S.jsxs("div",{className:"space-y-6",children:[S.jsxs(Pi,{id:"overview",index:0,children:[S.jsx("h2",{className:"mb-2 text-lg font-semibold",children:"Overview"}),S.jsx("div",{className:"bg-muted/30 rounded-lg p-4",children:t.overview?S.jsx(Oo,{children:t.overview}):S.jsx("span",{className:"text-muted-foreground",children:"No overview"})})]}),S.jsxs(Pi,{id:"requirements",index:1,children:[S.jsxs("h2",{className:"mb-3 text-lg font-semibold",children:["Requirements (",t.requirements.length,")"]}),S.jsxs("div",{className:"space-y-4",children:[t.requirements.map((o,u)=>S.jsxs(Pi,{id:`req-${o.id}`,index:2+u,as:"div",className:"border-border rounded-lg border p-4",children:[S.jsx("div",{className:"mb-2 font-medium",children:o.text}),o.scenarios.length>0&&S.jsxs("div",{className:"mt-3",children:[S.jsxs("div",{className:"text-muted-foreground mb-2 text-sm font-medium",children:["Scenarios (",o.scenarios.length,")"]}),o.scenarios.map((f,h)=>{const d=f.rawText.replace(/^---\n?/,"").replace(/\n?---$/,"").trim();return S.jsx("div",{className:"bg-muted/50 rounded-md p-3",children:S.jsx(Oo,{children:d})},h)})]})]},o.id)),t.requirements.length===0&&S.jsx("div",{className:"text-muted-foreground",children:"No requirements defined"})]})]})]})})]}):S.jsx("div",{className:"text-red-600",children:"Spec not found"})}function Gz({validation:e}){const t=e.issues.filter(s=>s.severity==="ERROR"),n=e.issues.filter(s=>s.severity==="WARNING"),i=e.issues.filter(s=>s.severity==="INFO");return S.jsxs("div",{className:`flex rounded-lg border p-4 ${e.valid?"border-green-500 bg-green-500/10":"border-red-500 bg-red-500/10"}`,children:[S.jsxs("div",{className:"align-content flex gap-2",children:[e.valid?S.jsx(yf,{className:"h-5 w-5 text-green-500"}):S.jsx(Hc,{className:"h-5 w-5 text-red-500"}),S.jsx("span",{className:`font-medium ${e.valid?"text-green-600":"text-red-600"}`,children:e.valid?"Validation Passed":"Validation Failed"})]}),e.issues.length>0&&S.jsxs("div",{className:"space-y-1 text-sm",children:[t.map((s,o)=>S.jsxs("div",{className:"flex items-start gap-2 text-red-600",children:[S.jsx(Hc,{className:"mt-0.5 h-4 w-4 shrink-0"}),S.jsx("span",{children:s.message})]},o)),n.map((s,o)=>S.jsxs("div",{className:"flex items-start gap-2 text-yellow-600",children:[S.jsx(Z2,{className:"mt-0.5 h-4 w-4 shrink-0"}),S.jsx("span",{children:s.message})]},o)),i.map((s,o)=>S.jsxs("div",{className:"text-muted-foreground flex items-start gap-2",children:[S.jsx(R2,{className:"mt-0.5 h-4 w-4 shrink-0"}),S.jsx("span",{children:s.message})]},o))]})]})}function Fz(){nl();const{data:e,isLoading:t}=xn(Sn.change.listWithMeta.queryOptions());return t?S.jsx("div",{className:"animate-pulse",children:"Loading changes..."}):S.jsxs("div",{className:"space-y-6",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Changes"}),S.jsxs("p",{className:"text-muted-foreground",children:["Active change proposals. Completed changes are moved to"," ",S.jsx(ut,{to:"/archive",className:"text-primary hover:underline",children:"Archive"}),"."]}),S.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[e==null?void 0:e.map(n=>S.jsxs(ut,{to:"/changes/$changeId",params:{changeId:n.id},className:"flex items-center justify-between p-4 hover:bg-muted/50",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(Dp,{className:"w-5 h-5 text-muted-foreground"}),S.jsxs("div",{children:[S.jsx("div",{className:"font-medium",children:n.name}),S.jsxs("div",{className:"text-sm text-muted-foreground",children:[n.progress.completed,"/",n.progress.total," tasks",n.updatedAt>0&&S.jsxs(S.Fragment,{children:[" · ",Mp(n.updatedAt)]})]})]})]}),S.jsx(jp,{className:"w-4 h-4 text-muted-foreground"})]},n.id)),(e==null?void 0:e.length)===0&&S.jsxs("div",{className:"p-4 text-muted-foreground text-center",children:["No active changes. Create one in ",S.jsx("code",{children:"openspec/changes/"})]})]})]})}function TE(e){const t=new Map;for(const n of e){const i=n.section||"General",s=t.get(i)||[];s.push(n),t.set(i,s)}return Array.from(t.entries()).map(([n,i])=>({section:n,tasks:i,completed:i.filter(s=>s.completed).length,total:i.length}))}function kE(e){return`section-${e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}`}function Qz(e){return e.map(t=>({id:kE(t.section),label:`${t.section} (${t.completed}/${t.total})`,level:2}))}const $z=ie.memo(function({task:t,taskIndex:n,isToggling:i,onToggle:s,readonly:o}){const u=S.jsxs(S.Fragment,{children:[i?S.jsx(M2,{className:"w-5 h-5 text-primary shrink-0 animate-spin"}):t.completed?S.jsx(yf,{className:"w-5 h-5 text-green-500 shrink-0"}):S.jsx(v2,{className:"w-5 h-5 text-muted-foreground shrink-0 group-hover:text-primary"}),S.jsx("span",{className:t.completed?"line-through text-muted-foreground":"",children:t.text})]});return o||!s?S.jsx("div",{className:"w-full p-3 flex items-center gap-3 text-left",children:u}):S.jsx("button",{onClick:()=>s(n,!t.completed),className:"group w-full p-3 flex items-center gap-3 hover:bg-muted/50 transition-colors text-left",children:u})},(e,t)=>e.task.id===t.task.id&&e.task.completed===t.task.completed&&e.isToggling===t.isToggling&&e.readonly===t.readonly);function CE({tasks:e,progress:t,onToggleTask:n,togglingIndex:i=null,tocBaseIndex:s=0,readonly:o=!1}){const u=ie.useMemo(()=>TE(e),[e]),f=t.total>0?Math.round(t.completed/t.total*100):0,h=(d,y)=>{let p=0;for(let v=0;v<d;v++)p+=u[v].tasks.length;return p+y+1};return S.jsxs(Pi,{id:"tasks",index:s,children:[S.jsxs("div",{className:"flex items-center justify-between mb-3",children:[S.jsxs("h2",{className:"text-lg font-semibold",children:["Tasks (",t.completed,"/",t.total,")"]}),S.jsxs("span",{className:"text-sm text-muted-foreground",children:[f,"%"]})]}),S.jsx("div",{className:"w-full bg-muted rounded-full h-2 mb-4",children:S.jsx("div",{className:"bg-primary h-2 rounded-full transition-all",style:{width:`${f}%`}})}),S.jsxs("div",{className:"space-y-6",children:[u.map((d,y)=>{const p=kE(d.section),v=d.total>0?Math.round(d.completed/d.total*100):0;return S.jsxs(Pi,{id:p,index:s+1+y,as:"div",children:[S.jsxs("div",{className:"flex items-center justify-between mb-2",children:[S.jsx("h3",{className:"font-medium text-foreground",children:d.section}),S.jsxs("span",{className:"text-xs text-muted-foreground",children:[d.completed,"/",d.total," (",v,"%)"]})]}),S.jsx("div",{className:"border border-border rounded-lg divide-y divide-border",children:d.tasks.map((_,b)=>{const E=h(y,b);return S.jsx($z,{task:_,taskIndex:E,isToggling:i===E,onToggle:n,readonly:o},_.id)})})]},d.section)}),u.length===0&&S.jsx("div",{className:"p-4 text-muted-foreground text-center border border-border rounded-lg",children:"No tasks defined"})]})]})}function Yz(e){return ie.useMemo(()=>TE(e),[e])}function Kz(){var _;const{changeId:e}=el({from:"/changes/$changeId"}),t=zo(),n=Ep();lO(e);const{data:i,isLoading:s}=xn(Sn.change.get.queryOptions({id:e})),{data:o}=xn(Sn.change.validate.queryOptions({id:e})),u=xo({mutationFn:()=>Fr.change.archive.mutate({id:e}),onSuccess:()=>{n.invalidateQueries({queryKey:["change","list"]}),n.invalidateQueries({queryKey:["change","listArchived"]}),t({to:"/changes"})}}),f=xo({mutationFn:b=>Fr.change.toggleTask.mutate({changeId:e,taskIndex:b.taskIndex,completed:b.completed}),onSuccess:()=>{n.invalidateQueries({queryKey:[["change","get"]]})}}),h=ie.useCallback((b,E)=>{f.mutate({taskIndex:b,completed:E})},[f]),d=f.isPending?((_=f.variables)==null?void 0:_.taskIndex)??null:null,y=Yz((i==null?void 0:i.tasks)??[]),p=ie.useMemo(()=>{if(!i)return[];const b=[{id:"why",label:"Why",level:1},{id:"what-changes",label:"What Changes",level:1}];return i.deltas.length>0&&b.push({id:"affected-specs",label:"Affected Specs",level:1}),b.push({id:"tasks",label:"Tasks",level:1}),b.push(...Qz(y)),b},[i,y]);if(s)return S.jsx("div",{className:"animate-pulse",children:"Loading change..."});if(!i)return S.jsx("div",{className:"text-red-600",children:"Change not found"});const v=i?i.deltas.length>0?3:2:0;return S.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(ut,{to:"/changes",className:"p-2 hover:bg-muted rounded-md",children:S.jsx(Np,{className:"w-5 h-5"})}),S.jsxs("div",{children:[S.jsx("h1",{className:"text-2xl font-bold",children:i.name}),S.jsxs("p",{className:"text-muted-foreground",children:["ID: ",i.id]})]})]}),S.jsxs("button",{onClick:()=>u.mutate(),disabled:u.isPending,className:"flex items-center gap-2 px-4 py-2 bg-muted hover:bg-muted/80 rounded-md disabled:opacity-50",children:[S.jsx(Ea,{className:"w-4 h-4"}),u.isPending?"Archiving...":"Archive"]})]}),o&&!o.valid&&S.jsxs("div",{className:"border border-red-500 bg-red-500/10 rounded-lg p-4",children:[S.jsxs("div",{className:"flex items-center gap-2 text-red-600 font-medium mb-2",children:[S.jsx(Hc,{className:"w-5 h-5"}),"Validation Issues"]}),S.jsx("ul",{className:"text-sm space-y-1",children:o.issues.map((b,E)=>S.jsx("li",{className:"text-red-600",children:b.message},E))})]}),S.jsx(Rf,{toc:S.jsx(lg,{items:p,className:"viewer-toc"}),tocItems:p,className:"min-h-0 flex-1",children:S.jsxs("div",{className:"space-y-6",children:[S.jsxs(Pi,{id:"why",index:0,children:[S.jsx("h2",{className:"text-lg font-semibold mb-2",children:"Why"}),S.jsx("div",{className:"p-4 bg-muted/30 rounded-lg",children:i.why?S.jsx(Oo,{children:i.why}):S.jsx("span",{className:"text-muted-foreground",children:"No description"})})]}),S.jsxs(Pi,{id:"what-changes",index:1,children:[S.jsx("h2",{className:"text-lg font-semibold mb-2",children:"What Changes"}),S.jsx("div",{className:"p-4 bg-muted/30 rounded-lg",children:i.whatChanges?S.jsx(Oo,{children:i.whatChanges}):S.jsx("span",{className:"text-muted-foreground",children:"No changes listed"})})]}),i.deltas.length>0&&S.jsxs(Pi,{id:"affected-specs",index:2,children:[S.jsxs("h2",{className:"text-lg font-semibold mb-3",children:["Affected Specs (",i.deltas.length,")"]}),S.jsx("div",{className:"border border-border rounded-lg divide-y divide-border",children:i.deltas.map((b,E)=>S.jsxs("div",{className:"p-3 flex items-center justify-between",children:[S.jsx(ut,{to:"/specs/$specId",params:{specId:b.spec},className:"font-medium hover:underline",children:b.spec}),S.jsx("span",{className:"text-sm px-2 py-1 bg-muted rounded",children:b.operation})]},E))})]}),S.jsx(CE,{tasks:i.tasks,progress:i.progress,onToggleTask:h,togglingIndex:d,tocBaseIndex:v})]})})]})}function Xz(){nl();const{data:e,isLoading:t}=xn(Sn.archive.listWithMeta.queryOptions());return t?S.jsx("div",{className:"animate-pulse",children:"Loading archived changes..."}):S.jsxs("div",{className:"space-y-6",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(Ea,{className:"w-6 h-6"}),S.jsx("h1",{className:"text-2xl font-bold",children:"Archive"})]}),S.jsx("p",{className:"text-muted-foreground",children:"Completed changes that have been archived after implementation."}),S.jsxs("div",{className:"border border-border rounded-lg divide-y divide-border",children:[e==null?void 0:e.map(n=>S.jsxs(ut,{to:"/archive/$changeId",params:{changeId:n.id},className:"flex items-center justify-between p-4 hover:bg-muted/50",children:[S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(Ea,{className:"w-5 h-5 text-muted-foreground"}),S.jsxs("div",{children:[S.jsx("div",{className:"font-medium",children:n.name}),S.jsxs("div",{className:"text-sm text-muted-foreground",children:[n.id,n.updatedAt>0&&S.jsxs(S.Fragment,{children:[" · ",Mp(n.updatedAt)]})]})]})]}),S.jsx(jp,{className:"w-4 h-4 text-muted-foreground"})]},n.id)),(e==null?void 0:e.length)===0&&S.jsxs("div",{className:"p-8 text-center text-muted-foreground",children:[S.jsx(Ea,{className:"w-12 h-12 mx-auto mb-4 opacity-50"}),S.jsx("p",{children:"No archived changes yet."}),S.jsxs("p",{className:"text-sm mt-2",children:["Changes are archived after implementation using"," ",S.jsx("code",{className:"bg-muted px-1 rounded",children:"openspec archive"})]})]})]})]})}function Zz({tabs:e,defaultTab:t,className:n=""}){var o;const[i,s]=ie.useState(t||((o=e[0])==null?void 0:o.id));return e.length===0?null:S.jsxs("div",{className:`flex min-h-0 flex-1 flex-col ${n}`,children:[S.jsx("div",{className:"z-2 flex gap-1",children:e.map(u=>S.jsxs("button",{onClick:()=>s(u.id),className:`-mb-px flex items-center gap-2 border-b-2 px-4 py-2 text-sm font-medium transition-colors ${i===u.id?"border-primary text-foreground":"text-muted-foreground hover:text-foreground border-transparent"}`,children:[u.icon,u.label]},u.id))}),S.jsx("div",{className:"min-h-0 flex-1",children:e.map(u=>S.jsx(ie.Activity,{mode:i===u.id?"visible":"hidden",children:S.jsx(S.Fragment,{children:u.content})},u.id))})]})}const Jz=nR("/archive/$changeId");function Wz(){nl();const{changeId:e}=Jz.useParams(),{data:t,isLoading:n}=xn(Sn.archive.get.queryOptions({id:e})),{data:i}=xn(Sn.archive.getRaw.queryOptions({id:e})),s=ie.useMemo(()=>{const o=[{id:"proposal",label:"proposal.md",icon:S.jsx(Xs,{className:"w-4 h-4"}),content:i!=null&&i.proposal?S.jsx("div",{className:"h-full border border-border rounded-lg",children:S.jsx(Rf,{markdown:i.proposal})}):S.jsx("div",{className:"p-8 text-center text-muted-foreground border border-border rounded-lg",children:S.jsx("p",{children:"proposal.md not found."})})}];return t!=null&&t.tasks&&t.tasks.length>0&&o.push({id:"tasks",label:"Tasks",icon:S.jsx(N2,{className:"w-4 h-4"}),content:S.jsx("div",{className:"h-full border border-border rounded-lg p-4 overflow-auto",children:S.jsx(CE,{tasks:t.tasks,progress:t.progress,readonly:!0})})}),o},[i,t]);return n?S.jsx("div",{className:"animate-pulse",children:"Loading archived change..."}):t?S.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[S.jsxs("div",{className:"flex items-center gap-4",children:[S.jsx(ut,{to:"/archive",className:"p-2 hover:bg-muted rounded-md transition-colors",title:"Back to Archive",children:S.jsx(Np,{className:"w-5 h-5"})}),S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx(Ea,{className:"w-6 h-6 text-muted-foreground"}),S.jsxs("div",{children:[S.jsx("h1",{className:"text-2xl font-bold",children:t.name}),S.jsx("p",{className:"text-sm text-muted-foreground",children:e})]})]})]}),S.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[S.jsx(yf,{className:"w-4 h-4 text-green-500"}),S.jsxs("span",{className:"text-green-600",children:["Completed: ",t.progress.completed,"/",t.progress.total," tasks"]})]}),S.jsx(Zz,{tabs:s,defaultTab:"proposal"})]}):S.jsxs("div",{className:"text-center py-12",children:[S.jsxs("p",{className:"text-muted-foreground",children:["Archived change not found: ",e]}),S.jsx(ut,{to:"/archive",className:"text-primary hover:underline mt-4 inline-block",children:"Back to Archive"})]})}function eI(){nl();const[e,t]=ie.useState("project"),[n,i]=ie.useState(null),[s,o]=ie.useState(""),{data:u,isLoading:f,refetch:h}=xn(Sn.project.getProjectMd.queryOptions()),{data:d,isLoading:y,refetch:p}=xn(Sn.project.getAgentsMd.queryOptions()),v=xo({mutationFn:O=>Fr.project.saveProjectMd.mutate({content:O}),onSuccess:()=>{h(),i(null)}}),_=xo({mutationFn:O=>Fr.project.saveAgentsMd.mutate({content:O}),onSuccess:()=>{p(),i(null)}}),b=e==="project"?u:d,E=e==="project"?v:_,k=n===e,T=()=>{o(b||""),i(e)},R=()=>{E.mutate(s)},L=()=>{i(null),o("")},z=[{id:"project",label:"project.md",icon:S.jsx(Xs,{className:"w-4 h-4"})},{id:"agents",label:"AGENTS.md",icon:S.jsx(f2,{className:"w-4 h-4"})}],V={project:S.jsxs("p",{children:[S.jsx("strong",{children:"project.md"})," defines project context, tech stack, and conventions for AI assistants."]}),agents:S.jsxs("p",{children:[S.jsx("strong",{children:"AGENTS.md"})," provides workflow instructions for AI coding assistants using OpenSpec."]})};return S.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-6",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Project"}),!k&&b&&S.jsxs("button",{onClick:T,className:"border-border flex items-center gap-2 rounded-md border px-3 py-1.5 text-sm hover:bg-muted",children:[S.jsx(H2,{className:"h-4 w-4"}),"Edit"]})]}),S.jsx("div",{className:"border-border flex gap-1 border-b",children:z.map(O=>S.jsxs("button",{onClick:()=>t(O.id),className:`-mb-px flex items-center gap-2 border-b-2 px-4 py-2 text-sm font-medium transition-colors ${e===O.id?"border-primary text-foreground":"text-muted-foreground hover:text-foreground border-transparent"}`,children:[O.icon,O.label]},O.id))}),S.jsxs("div",{className:"border-border min-h-0 flex-1 overflow-hidden rounded-lg border",children:[S.jsx(ie.Activity,{mode:e==="project"?"visible":"hidden",children:S.jsx(mx,{content:u,isLoading:f,isEditing:n==="project",editContent:s,setEditContent:o,onCancel:L,onSave:R,savePending:v.isPending,tabName:"project.md",defaultContent:"# Project Context\\n\\n## Purpose\\n\\n## Tech Stack\\n\\n## Conventions\\n",onStartEdit:()=>{o(u||""),i("project")}})}),S.jsx(ie.Activity,{mode:e==="agents"?"visible":"hidden",children:S.jsx(mx,{content:d,isLoading:y,isEditing:n==="agents",editContent:s,setEditContent:o,onCancel:L,onSave:R,savePending:_.isPending,tabName:"AGENTS.md",defaultContent:"# AI Agent Instructions\\n\\n## Workflow\\n\\n## Commands\\n",onStartEdit:()=>{o(d||""),i("agents")}})})]}),S.jsx("div",{className:"text-muted-foreground text-sm",children:V[e]})]})}function mx({content:e,isLoading:t,isEditing:n,editContent:i,setEditContent:s,onCancel:o,onSave:u,savePending:f,tabName:h,defaultContent:d,onStartEdit:y}){return t?S.jsx("div",{className:"animate-pulse p-4",children:"Loading..."}):e?n?S.jsxs("div",{className:"flex h-full flex-col",children:[S.jsxs("div",{className:"border-border bg-muted/30 flex items-center justify-between border-b p-2",children:[S.jsxs("span",{className:"px-2 text-sm font-medium",children:["Editing ",h]}),S.jsxs("div",{className:"flex gap-2",children:[S.jsxs("button",{onClick:o,className:"border-border flex items-center gap-1 rounded border px-3 py-1 text-sm hover:bg-muted",children:[S.jsx(z1,{className:"h-3 w-3"}),"Cancel"]}),S.jsxs("button",{onClick:u,disabled:f,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:[S.jsx(F2,{className:"h-3 w-3"}),f?"Saving...":"Save"]})]})]}),S.jsx("textarea",{value:i,onChange:p=>s(p.target.value),className:"bg-background flex-1 resize-none p-4 font-mono text-sm focus:outline-none",spellCheck:!1})]}):S.jsx(Rf,{markdown:e}):S.jsxs("div",{className:"text-muted-foreground p-8 text-center",children:[S.jsxs("p",{className:"mb-4",children:[h," not found."]}),S.jsxs("button",{onClick:()=>{s(d),y()},className:"bg-primary text-primary-foreground rounded-md px-4 py-2 hover:opacity-90",children:["Create ",h]})]})}function tI(){const e=localStorage.getItem("theme");return e==="light"||e==="dark"||e==="system"?e:"system"}function px(e){const t=document.documentElement;if(e==="system"){const n=window.matchMedia("(prefers-color-scheme: dark)").matches;t.classList.toggle("dark",n)}else t.classList.toggle("dark",e==="dark")}function nI(){var h;const[e,t]=ie.useState(tI),[n,i]=ie.useState(Ls()||""),[s,o]=ie.useState(!1),u=xo({mutationFn:()=>Fr.init.init.mutate(),onSuccess:()=>{o(!0),setTimeout(()=>o(!1),3e3)}});ie.useEffect(()=>{px(e),localStorage.setItem("theme",e)},[e]),ie.useEffect(()=>{if(e!=="system")return;const d=window.matchMedia("(prefers-color-scheme: dark)"),y=()=>px("system");return d.addEventListener("change",y),()=>d.removeEventListener("change",y)},[e]);const f=()=>{const d=new URL(window.location.href);n?d.searchParams.set("api",n):d.searchParams.delete("api"),window.location.href=d.toString()};return S.jsxs("div",{className:"space-y-8 max-w-2xl",children:[S.jsx("h1",{className:"text-2xl font-bold",children:"Settings"}),S.jsxs("section",{className:"space-y-4",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"Appearance"}),S.jsxs("div",{className:"border border-border rounded-lg p-4",children:[S.jsx("label",{className:"text-sm font-medium mb-3 block",children:"Theme"}),S.jsxs("div",{className:"flex gap-2",children:[S.jsxs("button",{onClick:()=>t("light"),className:`flex items-center gap-2 px-4 py-2 rounded-md border transition-colors ${e==="light"?"border-primary bg-primary text-primary-foreground":"border-border hover:bg-muted"}`,children:[S.jsx(K2,{className:"w-4 h-4"}),"Light"]}),S.jsxs("button",{onClick:()=>t("dark"),className:`flex items-center gap-2 px-4 py-2 rounded-md border transition-colors ${e==="dark"?"border-primary bg-primary text-primary-foreground":"border-border hover:bg-muted"}`,children:[S.jsx(q2,{className:"w-4 h-4"}),"Dark"]}),S.jsxs("button",{onClick:()=>t("system"),className:`flex items-center gap-2 px-4 py-2 rounded-md border transition-colors ${e==="system"?"border-primary bg-primary text-primary-foreground":"border-border hover:bg-muted"}`,children:[S.jsx(B2,{className:"w-4 h-4"}),"System"]})]})]})]}),S.jsxs("section",{className:"space-y-4",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"API Configuration"}),S.jsx("div",{className:"border border-border rounded-lg p-4 space-y-4",children:S.jsxs("div",{children:[S.jsx("label",{className:"text-sm font-medium mb-2 block",children:"API Server URL"}),S.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Leave empty for same-origin requests. Set a custom URL to connect to a different server."}),S.jsxs("div",{className:"flex gap-2",children:[S.jsx("input",{type:"text",value:n,onChange:d=>i(d.target.value),placeholder:"http://localhost:3100",className:"flex-1 px-3 py-2 border border-border rounded-md bg-background text-foreground"}),S.jsx("button",{onClick:f,className:"px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90",children:"Apply"})]}),Ls()&&S.jsxs("p",{className:"text-sm text-muted-foreground mt-2",children:["Current: ",S.jsx("code",{className:"bg-muted px-1 rounded",children:Ls()})]})]})})]}),S.jsxs("section",{className:"space-y-4",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"File Watcher"}),S.jsxs("div",{className:"border border-border rounded-lg p-4",children:[S.jsx("p",{className:"text-sm text-muted-foreground mb-3",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."}),S.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[S.jsx(P1,{className:"w-4 h-4 text-green-500"}),S.jsx("span",{children:"Enabled: Real-time updates when files change"})]}),S.jsxs("div",{className:"flex items-center gap-2 text-sm mt-2",children:[S.jsx(M1,{className:"w-4 h-4 text-yellow-500"}),S.jsx("span",{children:"Disabled: Manual refresh required"})]}),S.jsxs("p",{className:"text-sm text-muted-foreground mt-3",children:["To disable file watching, restart the server with"," ",S.jsx("code",{className:"bg-muted px-1 rounded",children:"--no-watch"})," flag."]})]})]}),S.jsxs("section",{className:"space-y-4",children:[S.jsx("h2",{className:"text-lg font-semibold",children:"Initialize OpenSpec"}),S.jsxs("div",{className:"border border-border rounded-lg p-4",children:[S.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:["Create the OpenSpec directory structure in the current project. This will create"," ",S.jsx("code",{className:"bg-muted px-1 rounded",children:"openspec/"})," with specs, changes, and archive directories."]}),S.jsxs("button",{onClick:()=>u.mutate(),disabled:u.isPending,className:"flex items-center gap-2 px-4 py-2 bg-primary text-primary-foreground rounded-md hover:opacity-90 disabled:opacity-50",children:[S.jsx(E2,{className:"w-4 h-4"}),u.isPending?"Initializing...":"Initialize OpenSpec"]}),s&&S.jsx("p",{className:"text-sm text-green-600 mt-2",children:"OpenSpec initialized successfully!"}),u.isError&&S.jsxs("p",{className:"text-sm text-red-600 mt-2",children:["Error: ",((h=u.error)==null?void 0:h.message)||"Failed to initialize"]})]})]})]})}const hr=sR({component:aO}),rI=ur({getParentRoute:()=>hr,path:"/",component:oO}),iI=ur({getParentRoute:()=>hr,path:"/project",component:eI}),aI=ur({getParentRoute:()=>hr,path:"/specs",component:uO}),sI=ur({getParentRoute:()=>hr,path:"/specs/$specId",component:Hz}),lI=ur({getParentRoute:()=>hr,path:"/changes",component:Fz}),oI=ur({getParentRoute:()=>hr,path:"/changes/$changeId",component:Kz}),uI=ur({getParentRoute:()=>hr,path:"/archive",component:Xz}),cI=ur({getParentRoute:()=>hr,path:"/archive/$changeId",component:Wz}),fI=ur({getParentRoute:()=>hr,path:"/settings",component:nI}),hI=hr.addChildren([rI,iI,aI,sI,lI,oI,uI,cI,fI]),dI=pR({routeTree:hI});function mI(){return S.jsx(Sk,{client:Rt,children:S.jsx(vR,{router:dI})})}JT.createRoot(document.getElementById("root")).render(S.jsx(mI,{}));