agent-afk 5.208.4 → 5.209.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/dist/agent/session-ledger-project.d.ts +3 -0
  2. package/dist/agent/types/session-types.d.ts +3 -0
  3. package/dist/cli.mjs +4 -4
  4. package/dist/index.mjs +3 -3
  5. package/dist/telegram.mjs +3 -3
  6. package/dist/web-server/shared/ledger-adapter.d.ts +3 -0
  7. package/dist/web-ui-assets/assets/abap-BdImnpbu.js +1 -0
  8. package/dist/web-ui-assets/assets/actionscript-3-B3316cI-.js +1 -0
  9. package/dist/web-ui-assets/assets/ada-bCR0ucgS.js +1 -0
  10. package/dist/web-ui-assets/assets/ahk-CsyLZFj1.js +1 -0
  11. package/dist/web-ui-assets/assets/ahk2-8Zs4aa1G.js +1 -0
  12. package/dist/web-ui-assets/assets/andromeeda-C4gqWexZ.js +1 -0
  13. package/dist/web-ui-assets/assets/angular-html-DA-rfuFy.js +1 -0
  14. package/dist/web-ui-assets/assets/angular-ts-BrjP3tb8.js +1 -0
  15. package/dist/web-ui-assets/assets/apache-Pmp26Uib.js +1 -0
  16. package/dist/web-ui-assets/assets/apex-DhZFqWV2.js +1 -0
  17. package/dist/web-ui-assets/assets/apl-CORt7UWP.js +1 -0
  18. package/dist/web-ui-assets/assets/applescript-Co6uUVPk.js +1 -0
  19. package/dist/web-ui-assets/assets/ara-BRHolxvo.js +1 -0
  20. package/dist/web-ui-assets/assets/asciidoc-CSVQ5wI8.js +1 -0
  21. package/dist/web-ui-assets/assets/asm-D_Q5rh1f.js +1 -0
  22. package/dist/web-ui-assets/assets/astro-HNnZUWAn.js +1 -0
  23. package/dist/web-ui-assets/assets/aurora-x-D-2ljcwZ.js +1 -0
  24. package/dist/web-ui-assets/assets/awk-DMzUqQB5.js +1 -0
  25. package/dist/web-ui-assets/assets/ayu-dark-DYE7WIF3.js +1 -0
  26. package/dist/web-ui-assets/assets/ayu-light-BA47KaF1.js +1 -0
  27. package/dist/web-ui-assets/assets/ayu-mirage-32ctXXKs.js +1 -0
  28. package/dist/web-ui-assets/assets/ballerina-BFfxhgS-.js +1 -0
  29. package/dist/web-ui-assets/assets/bat-CickPsom.js +1 -0
  30. package/dist/web-ui-assets/assets/beancount-k_qm7-4y.js +1 -0
  31. package/dist/web-ui-assets/assets/berry-uYugtg8r.js +1 -0
  32. package/dist/web-ui-assets/assets/bibtex-CHM0blh-.js +1 -0
  33. package/dist/web-ui-assets/assets/bicep-Bmn6On1c.js +1 -0
  34. package/dist/web-ui-assets/assets/bird2-Bx8U0n9b.js +1 -0
  35. package/dist/web-ui-assets/assets/blade-2xfisSek.js +1 -0
  36. package/dist/web-ui-assets/assets/bsl-DlhNcFeZ.js +1 -0
  37. package/dist/web-ui-assets/assets/c-BIGW1oBm.js +1 -0
  38. package/dist/web-ui-assets/assets/c3-Dp5svz6Z.js +1 -0
  39. package/dist/web-ui-assets/assets/cadence-Bv_4Rxtq.js +1 -0
  40. package/dist/web-ui-assets/assets/cairo-KRGpt6FW.js +1 -0
  41. package/dist/web-ui-assets/assets/catppuccin-frappe-CZL1YF0i.js +1 -0
  42. package/dist/web-ui-assets/assets/catppuccin-latte-DH-8KZSZ.js +1 -0
  43. package/dist/web-ui-assets/assets/catppuccin-macchiato-B7yYVSCf.js +1 -0
  44. package/dist/web-ui-assets/assets/catppuccin-mocha-Ct7hS0mc.js +1 -0
  45. package/dist/web-ui-assets/assets/chapel-DTp_pixX.js +1 -0
  46. package/dist/web-ui-assets/assets/clarity-Dn5IMItf.js +1 -0
  47. package/dist/web-ui-assets/assets/clojure-P80f7IUj.js +1 -0
  48. package/dist/web-ui-assets/assets/cmake-D1j8_8rp.js +1 -0
  49. package/dist/web-ui-assets/assets/cobol-nBiQ_Alo.js +1 -0
  50. package/dist/web-ui-assets/assets/codeowners-Bp6g37R7.js +1 -0
  51. package/dist/web-ui-assets/assets/codeql-DsOJ9woJ.js +1 -0
  52. package/dist/web-ui-assets/assets/coffee-Ch7k5sss.js +1 -0
  53. package/dist/web-ui-assets/assets/common-lisp-Cg-RD9OK.js +1 -0
  54. package/dist/web-ui-assets/assets/coq-C7JzOVbR.js +1 -0
  55. package/dist/web-ui-assets/assets/cpp-BMRokrvK.js +1 -0
  56. package/dist/web-ui-assets/assets/crystal-DGywbUpC.js +1 -0
  57. package/dist/web-ui-assets/assets/csharp-DSvCPggb.js +1 -0
  58. package/dist/web-ui-assets/assets/css-CLj8gQPS.js +1 -0
  59. package/dist/web-ui-assets/assets/csv-fuZLfV_i.js +1 -0
  60. package/dist/web-ui-assets/assets/cue-D82EKSYY.js +1 -0
  61. package/dist/web-ui-assets/assets/cypher-COkxafJQ.js +1 -0
  62. package/dist/web-ui-assets/assets/d-85-TOEBH.js +1 -0
  63. package/dist/web-ui-assets/assets/dark-plus-C3mMm8J8.js +1 -0
  64. package/dist/web-ui-assets/assets/dart-bE4Kk8sk.js +1 -0
  65. package/dist/web-ui-assets/assets/dax-CEL-wOlO.js +1 -0
  66. package/dist/web-ui-assets/assets/desktop-BmXAJ9_W.js +1 -0
  67. package/dist/web-ui-assets/assets/diff-D97Zzqfu.js +1 -0
  68. package/dist/web-ui-assets/assets/docker-BcOcwvcX.js +1 -0
  69. package/dist/web-ui-assets/assets/dotenv-Da5cRb03.js +1 -0
  70. package/dist/web-ui-assets/assets/dracula-BzJJZx-M.js +1 -0
  71. package/dist/web-ui-assets/assets/dracula-soft-BXkSAIEj.js +1 -0
  72. package/dist/web-ui-assets/assets/dream-maker-BtqSS_iP.js +1 -0
  73. package/dist/web-ui-assets/assets/edge-FbVlp4U3.js +1 -0
  74. package/dist/web-ui-assets/assets/elixir-CkH2-t6x.js +1 -0
  75. package/dist/web-ui-assets/assets/elm-DbKCFpqz.js +1 -0
  76. package/dist/web-ui-assets/assets/emacs-lisp-C_m_b--Z.js +1 -0
  77. package/dist/web-ui-assets/assets/erb-DXfck5VN.js +1 -0
  78. package/dist/web-ui-assets/assets/erlang-DsQrWhSR.js +1 -0
  79. package/dist/web-ui-assets/assets/everforest-dark-BgDCqdQA.js +1 -0
  80. package/dist/web-ui-assets/assets/everforest-light-C8M2exoo.js +1 -0
  81. package/dist/web-ui-assets/assets/fennel-BYunw83y.js +1 -0
  82. package/dist/web-ui-assets/assets/fish-BvzEVeQv.js +1 -0
  83. package/dist/web-ui-assets/assets/fluent-C4IJs8-o.js +1 -0
  84. package/dist/web-ui-assets/assets/fortran-fixed-form-CkoXwp7k.js +1 -0
  85. package/dist/web-ui-assets/assets/fortran-free-form-BxgE0vQu.js +1 -0
  86. package/dist/web-ui-assets/assets/fsharp-CXgrBDvD.js +1 -0
  87. package/dist/web-ui-assets/assets/gdresource-TyuKm33G.js +1 -0
  88. package/dist/web-ui-assets/assets/gdscript-DqcFQ5yU.js +1 -0
  89. package/dist/web-ui-assets/assets/gdshader-DkwncUOv.js +1 -0
  90. package/dist/web-ui-assets/assets/genie-D0YGMca9.js +1 -0
  91. package/dist/web-ui-assets/assets/gherkin-DyxjwDmM.js +1 -0
  92. package/dist/web-ui-assets/assets/git-commit-F4YmCXRG.js +1 -0
  93. package/dist/web-ui-assets/assets/git-rebase-r7XF79zn.js +1 -0
  94. package/dist/web-ui-assets/assets/github-dark-DHJKELXO.js +1 -0
  95. package/dist/web-ui-assets/assets/github-dark-default-Cuk6v7N8.js +1 -0
  96. package/dist/web-ui-assets/assets/github-dark-dimmed-DH5Ifo-i.js +1 -0
  97. package/dist/web-ui-assets/assets/github-dark-high-contrast-E3gJ1_iC.js +1 -0
  98. package/dist/web-ui-assets/assets/github-light-DAi9KRSo.js +1 -0
  99. package/dist/web-ui-assets/assets/github-light-default-D7oLnXFd.js +1 -0
  100. package/dist/web-ui-assets/assets/github-light-high-contrast-BfjtVDDH.js +1 -0
  101. package/dist/web-ui-assets/assets/gleam-BspZqrRM.js +1 -0
  102. package/dist/web-ui-assets/assets/glimmer-js-ByusRIyA.js +1 -0
  103. package/dist/web-ui-assets/assets/glimmer-ts-BfAWNZQY.js +1 -0
  104. package/dist/web-ui-assets/assets/glsl-DplSGwfg.js +1 -0
  105. package/dist/web-ui-assets/assets/gn-n2N0HUVH.js +1 -0
  106. package/dist/web-ui-assets/assets/gnuplot-DdkO51Og.js +1 -0
  107. package/dist/web-ui-assets/assets/go-C27-OAKa.js +1 -0
  108. package/dist/web-ui-assets/assets/graphql-ChdNCCLP.js +1 -0
  109. package/dist/web-ui-assets/assets/groovy-gcz8RCvz.js +1 -0
  110. package/dist/web-ui-assets/assets/gruvbox-dark-hard-CFHQjOhq.js +1 -0
  111. package/dist/web-ui-assets/assets/gruvbox-dark-medium-GsRaNv29.js +1 -0
  112. package/dist/web-ui-assets/assets/gruvbox-dark-soft-CVdnzihN.js +1 -0
  113. package/dist/web-ui-assets/assets/gruvbox-light-hard-CH1njM8p.js +1 -0
  114. package/dist/web-ui-assets/assets/gruvbox-light-medium-DRw_LuNl.js +1 -0
  115. package/dist/web-ui-assets/assets/gruvbox-light-soft-hJgmCMqR.js +1 -0
  116. package/dist/web-ui-assets/assets/hack-BWmVpMyf.js +1 -0
  117. package/dist/web-ui-assets/assets/haml-D5jkg6IW.js +1 -0
  118. package/dist/web-ui-assets/assets/handlebars-BpdQsYii.js +1 -0
  119. package/dist/web-ui-assets/assets/haskell-Df6bDoY_.js +1 -0
  120. package/dist/web-ui-assets/assets/haxe-CfZj7gIn.js +1 -0
  121. package/dist/web-ui-assets/assets/hcl-BWvSN4gD.js +1 -0
  122. package/dist/web-ui-assets/assets/hjson-D5-asLiD.js +1 -0
  123. package/dist/web-ui-assets/assets/hlsl-D3lLCCz7.js +1 -0
  124. package/dist/web-ui-assets/assets/horizon-BUw7H-hv.js +1 -0
  125. package/dist/web-ui-assets/assets/horizon-bright-CUuTKBJd.js +1 -0
  126. package/dist/web-ui-assets/assets/houston-DnULxvSX.js +1 -0
  127. package/dist/web-ui-assets/assets/html-derivative-DlHx6ybY.js +1 -0
  128. package/dist/web-ui-assets/assets/html-pp8916En.js +1 -0
  129. package/dist/web-ui-assets/assets/http-jrhK8wxY.js +1 -0
  130. package/dist/web-ui-assets/assets/hurl-irOxFIW8.js +1 -0
  131. package/dist/web-ui-assets/assets/hxml-2-FPmUDs.js +1 -0
  132. package/dist/web-ui-assets/assets/hy-DFXneXwc.js +1 -0
  133. package/dist/web-ui-assets/assets/imba-DGztddWO.js +1 -0
  134. package/dist/web-ui-assets/assets/index-B2zr9aOB.js +13 -0
  135. package/dist/web-ui-assets/assets/index-DThJH7ut.js +380 -0
  136. package/dist/web-ui-assets/assets/index-DoWw28qv.css +1 -0
  137. package/dist/web-ui-assets/assets/ini-BEwlwnbL.js +1 -0
  138. package/dist/web-ui-assets/assets/java-CylS5w8V.js +1 -0
  139. package/dist/web-ui-assets/assets/javascript-wDzz0qaB.js +1 -0
  140. package/dist/web-ui-assets/assets/jinja-f2NsQr07.js +1 -0
  141. package/dist/web-ui-assets/assets/jison-wvAkD_A8.js +1 -0
  142. package/dist/web-ui-assets/assets/json-Cp-IABpG.js +1 -0
  143. package/dist/web-ui-assets/assets/json5-C9tS-k6U.js +1 -0
  144. package/dist/web-ui-assets/assets/jsonc-Des-eS-w.js +1 -0
  145. package/dist/web-ui-assets/assets/jsonl-DcaNXYhu.js +1 -0
  146. package/dist/web-ui-assets/assets/jsonnet-DFQXde-d.js +1 -0
  147. package/dist/web-ui-assets/assets/jssm-C2t-YnRu.js +1 -0
  148. package/dist/web-ui-assets/assets/jsx-g9-lgVsj.js +1 -0
  149. package/dist/web-ui-assets/assets/julia-5Bft2YPA.js +1 -0
  150. package/dist/web-ui-assets/assets/just-Cwhn7H3k.js +1 -0
  151. package/dist/web-ui-assets/assets/kanagawa-dragon-BuwD2xS4.js +1 -0
  152. package/dist/web-ui-assets/assets/kanagawa-lotus-C3DzagqV.js +1 -0
  153. package/dist/web-ui-assets/assets/kanagawa-wave-DFGoQZhC.js +1 -0
  154. package/dist/web-ui-assets/assets/kdl-DV7GczEv.js +1 -0
  155. package/dist/web-ui-assets/assets/kotlin-BdnUsdx6.js +1 -0
  156. package/dist/web-ui-assets/assets/kusto-wEQ09or8.js +1 -0
  157. package/dist/web-ui-assets/assets/laserwave-DUszq2jm.js +1 -0
  158. package/dist/web-ui-assets/assets/latex-D5pSuvFb.js +1 -0
  159. package/dist/web-ui-assets/assets/lean-BZvkOJ9d.js +1 -0
  160. package/dist/web-ui-assets/assets/less-B1dDrJ26.js +1 -0
  161. package/dist/web-ui-assets/assets/light-plus-B7mTdjB0.js +1 -0
  162. package/dist/web-ui-assets/assets/liquid-C0sCDyMI.js +1 -0
  163. package/dist/web-ui-assets/assets/llvm-BZoOZj88.js +1 -0
  164. package/dist/web-ui-assets/assets/log-2UxHyX5q.js +1 -0
  165. package/dist/web-ui-assets/assets/logo-BtOb2qkB.js +1 -0
  166. package/dist/web-ui-assets/assets/lua-BaeVxFsk.js +1 -0
  167. package/dist/web-ui-assets/assets/luau-BnpPk5vE.js +1 -0
  168. package/dist/web-ui-assets/assets/make-CHLpvVh8.js +1 -0
  169. package/dist/web-ui-assets/assets/markdown-Cvjx9yec.js +1 -0
  170. package/dist/web-ui-assets/assets/marko-DjSrsDqO.js +1 -0
  171. package/dist/web-ui-assets/assets/material-theme-D5KoaKCx.js +1 -0
  172. package/dist/web-ui-assets/assets/material-theme-darker-BfHTSMKl.js +1 -0
  173. package/dist/web-ui-assets/assets/material-theme-lighter-B0m2ddpp.js +1 -0
  174. package/dist/web-ui-assets/assets/material-theme-ocean-CyktbL80.js +1 -0
  175. package/dist/web-ui-assets/assets/material-theme-palenight-Csfq5Kiy.js +1 -0
  176. package/dist/web-ui-assets/assets/matlab-D7o27uSR.js +1 -0
  177. package/dist/web-ui-assets/assets/mdc-D1_yUvq7.js +1 -0
  178. package/dist/web-ui-assets/assets/mdx-Cmh6b_Ma.js +1 -0
  179. package/dist/web-ui-assets/assets/mermaid-CQcHuHx7.js +1 -0
  180. package/dist/web-ui-assets/assets/min-dark-CafNBF8u.js +1 -0
  181. package/dist/web-ui-assets/assets/min-light-CTRr51gU.js +1 -0
  182. package/dist/web-ui-assets/assets/mipsasm-CKIfxQSi.js +1 -0
  183. package/dist/web-ui-assets/assets/mojo-DJz3ZmWd.js +1 -0
  184. package/dist/web-ui-assets/assets/monokai-BRVnQi9A.js +1 -0
  185. package/dist/web-ui-assets/assets/moonbit-CHtswR0a.js +1 -0
  186. package/dist/web-ui-assets/assets/move-el3G9tDJ.js +1 -0
  187. package/dist/web-ui-assets/assets/narrat-DRg8JJMk.js +1 -0
  188. package/dist/web-ui-assets/assets/nextflow-C-mBbutL.js +1 -0
  189. package/dist/web-ui-assets/assets/nextflow-groovy-vE_lwT2v.js +1 -0
  190. package/dist/web-ui-assets/assets/nginx-BpAMiNFr.js +1 -0
  191. package/dist/web-ui-assets/assets/night-owl-C39BiMTA.js +1 -0
  192. package/dist/web-ui-assets/assets/night-owl-light-CMTm3GFP.js +1 -0
  193. package/dist/web-ui-assets/assets/nim-BIad80T-.js +1 -0
  194. package/dist/web-ui-assets/assets/nix-CwoSXNpI.js +1 -0
  195. package/dist/web-ui-assets/assets/nord-Ddv68eIx.js +1 -0
  196. package/dist/web-ui-assets/assets/nsis-BlV79W_Q.js +1 -0
  197. package/dist/web-ui-assets/assets/nushell-D3jzshHO.js +1 -0
  198. package/dist/web-ui-assets/assets/objective-c-DXmwc3jG.js +1 -0
  199. package/dist/web-ui-assets/assets/objective-cpp-CLxacb5B.js +1 -0
  200. package/dist/web-ui-assets/assets/ocaml-C0hk2d4L.js +1 -0
  201. package/dist/web-ui-assets/assets/odin-BBf5iR-q.js +1 -0
  202. package/dist/web-ui-assets/assets/one-dark-pro-DVMEJ2y_.js +1 -0
  203. package/dist/web-ui-assets/assets/one-light-C3Wv6jpd.js +1 -0
  204. package/dist/web-ui-assets/assets/openscad-C4EeE6gA.js +1 -0
  205. package/dist/web-ui-assets/assets/org-DM6o9KBp.js +1 -0
  206. package/dist/web-ui-assets/assets/pascal-D93ZcfNL.js +1 -0
  207. package/dist/web-ui-assets/assets/perl-B9cMNwum.js +1 -0
  208. package/dist/web-ui-assets/assets/php-Csjmro_R.js +1 -0
  209. package/dist/web-ui-assets/assets/pkl-u5AG7uiY.js +1 -0
  210. package/dist/web-ui-assets/assets/plastic-3e1v2bzS.js +1 -0
  211. package/dist/web-ui-assets/assets/plsql-ChMvpjG-.js +1 -0
  212. package/dist/web-ui-assets/assets/po-BTJTHyun.js +1 -0
  213. package/dist/web-ui-assets/assets/poimandres-CS3Unz2-.js +1 -0
  214. package/dist/web-ui-assets/assets/polar-C0HS_06l.js +1 -0
  215. package/dist/web-ui-assets/assets/postcss-CXtECtnM.js +1 -0
  216. package/dist/web-ui-assets/assets/powerquery-CEu0bR-o.js +1 -0
  217. package/dist/web-ui-assets/assets/powershell-BmBUJMz7.js +1 -0
  218. package/dist/web-ui-assets/assets/prisma-Vru482bI.js +1 -0
  219. package/dist/web-ui-assets/assets/prolog-CbFg5uaA.js +1 -0
  220. package/dist/web-ui-assets/assets/proto-C7zT0LnQ.js +1 -0
  221. package/dist/web-ui-assets/assets/pug-DKIMFp6K.js +1 -0
  222. package/dist/web-ui-assets/assets/puppet-BMWR74SV.js +1 -0
  223. package/dist/web-ui-assets/assets/purescript-CklMAg4u.js +1 -0
  224. package/dist/web-ui-assets/assets/python-B6aJPvgy.js +1 -0
  225. package/dist/web-ui-assets/assets/qml-3beO22l8.js +1 -0
  226. package/dist/web-ui-assets/assets/qmldir-C8lEn-DE.js +1 -0
  227. package/dist/web-ui-assets/assets/qss-IeuSbFQv.js +1 -0
  228. package/dist/web-ui-assets/assets/r-Cf5RLm7j.js +1 -0
  229. package/dist/web-ui-assets/assets/racket-BqYA7rlc.js +1 -0
  230. package/dist/web-ui-assets/assets/raku-DXvB9xmW.js +1 -0
  231. package/dist/web-ui-assets/assets/razor-BjBPvh-w.js +1 -0
  232. package/dist/web-ui-assets/assets/rbs-CpoqiR4B.js +1 -0
  233. package/dist/web-ui-assets/assets/red-hvxz__6c.js +1 -0
  234. package/dist/web-ui-assets/assets/reg-C-SQnVFl.js +1 -0
  235. package/dist/web-ui-assets/assets/regexp-CDVJQ6XC.js +1 -0
  236. package/dist/web-ui-assets/assets/rel-C3B-1QV4.js +1 -0
  237. package/dist/web-ui-assets/assets/riscv-BM1_JUlF.js +1 -0
  238. package/dist/web-ui-assets/assets/ron-D8l8udqQ.js +1 -0
  239. package/dist/web-ui-assets/assets/rose-pine-5qJOZa0Y.js +1 -0
  240. package/dist/web-ui-assets/assets/rose-pine-dawn-zx0QlTCp.js +1 -0
  241. package/dist/web-ui-assets/assets/rose-pine-moon-C9pEdX9L.js +1 -0
  242. package/dist/web-ui-assets/assets/rosmsg-BJDFO7_C.js +1 -0
  243. package/dist/web-ui-assets/assets/rst-bs7f0vWN.js +1 -0
  244. package/dist/web-ui-assets/assets/ruby-C0TQ7zu5.js +1 -0
  245. package/dist/web-ui-assets/assets/rust-B1yitclQ.js +1 -0
  246. package/dist/web-ui-assets/assets/sas-DEy46yEz.js +1 -0
  247. package/dist/web-ui-assets/assets/sass-Cj5Yp3dK.js +1 -0
  248. package/dist/web-ui-assets/assets/scala-CqE71os6.js +1 -0
  249. package/dist/web-ui-assets/assets/scheme-C98Dy4si.js +1 -0
  250. package/dist/web-ui-assets/assets/scss-D5BDwBP9.js +1 -0
  251. package/dist/web-ui-assets/assets/sdbl-DVxCFoDh.js +1 -0
  252. package/dist/web-ui-assets/assets/shaderlab-Dg9Lc6iA.js +1 -0
  253. package/dist/web-ui-assets/assets/shellscript-Yzrsuije.js +1 -0
  254. package/dist/web-ui-assets/assets/shellsession-BADoaaVG.js +1 -0
  255. package/dist/web-ui-assets/assets/slack-dark-BthQWCQV.js +1 -0
  256. package/dist/web-ui-assets/assets/slack-ochin-DqwNpetd.js +1 -0
  257. package/dist/web-ui-assets/assets/smalltalk-BOQMe2GC.js +1 -0
  258. package/dist/web-ui-assets/assets/smithy-cds9vsN8.js +1 -0
  259. package/dist/web-ui-assets/assets/snazzy-light-Bw305WKR.js +1 -0
  260. package/dist/web-ui-assets/assets/solarized-dark-CpvCGNkr.js +1 -0
  261. package/dist/web-ui-assets/assets/solarized-light-Dlz6yCKv.js +1 -0
  262. package/dist/web-ui-assets/assets/solidity-DijEV5ha.js +1 -0
  263. package/dist/web-ui-assets/assets/soy-8wufbnw4.js +1 -0
  264. package/dist/web-ui-assets/assets/sparql-rVzFXLq3.js +1 -0
  265. package/dist/web-ui-assets/assets/splunk-BtCnVYZw.js +1 -0
  266. package/dist/web-ui-assets/assets/sql-CRqJ_cUM.js +1 -0
  267. package/dist/web-ui-assets/assets/ssh-config-_ykCGR6B.js +1 -0
  268. package/dist/web-ui-assets/assets/stata-DI20mbqo.js +1 -0
  269. package/dist/web-ui-assets/assets/stylus-BEDo0Tqx.js +1 -0
  270. package/dist/web-ui-assets/assets/surrealql-Cjom0U5J.js +1 -0
  271. package/dist/web-ui-assets/assets/svelte-Cy7k_4gC.js +1 -0
  272. package/dist/web-ui-assets/assets/swift-C2oV4EkX.js +1 -0
  273. package/dist/web-ui-assets/assets/synthwave-84-CbfX1IO0.js +1 -0
  274. package/dist/web-ui-assets/assets/system-verilog-0hqHdDBg.js +1 -0
  275. package/dist/web-ui-assets/assets/systemd-4A_iFExJ.js +1 -0
  276. package/dist/web-ui-assets/assets/talonscript-CkByrt1z.js +1 -0
  277. package/dist/web-ui-assets/assets/tasl-QIJgUcNo.js +1 -0
  278. package/dist/web-ui-assets/assets/tcl-dwOrl1Do.js +1 -0
  279. package/dist/web-ui-assets/assets/templ-DhtptRzy.js +1 -0
  280. package/dist/web-ui-assets/assets/terraform-BETggiCN.js +1 -0
  281. package/dist/web-ui-assets/assets/tex-D96PA37w.js +1 -0
  282. package/dist/web-ui-assets/assets/tokyo-night-hegEt444.js +1 -0
  283. package/dist/web-ui-assets/assets/toml-vGWfd6FD.js +1 -0
  284. package/dist/web-ui-assets/assets/ts-tags-D351s5mN.js +1 -0
  285. package/dist/web-ui-assets/assets/tsv-B_m7g4N7.js +1 -0
  286. package/dist/web-ui-assets/assets/tsx-COt5Ahok.js +1 -0
  287. package/dist/web-ui-assets/assets/turtle-BsS91CYL.js +1 -0
  288. package/dist/web-ui-assets/assets/twig-27uCiNez.js +1 -0
  289. package/dist/web-ui-assets/assets/typescript-BPQ3VLAy.js +1 -0
  290. package/dist/web-ui-assets/assets/typespec-CAFt9gP4.js +1 -0
  291. package/dist/web-ui-assets/assets/typst-BUadGCkm.js +1 -0
  292. package/dist/web-ui-assets/assets/v-BGw2Nkan.js +1 -0
  293. package/dist/web-ui-assets/assets/vala-CsfeWuGM.js +1 -0
  294. package/dist/web-ui-assets/assets/vb-Cu-pLBUe.js +1 -0
  295. package/dist/web-ui-assets/assets/verilog-nZwndyjY.js +1 -0
  296. package/dist/web-ui-assets/assets/vesper-DRje8inN.js +1 -0
  297. package/dist/web-ui-assets/assets/vhdl-CeAyd5Ju.js +1 -0
  298. package/dist/web-ui-assets/assets/viml-CJc9bBzg.js +1 -0
  299. package/dist/web-ui-assets/assets/vitesse-black-Bkuqu6BP.js +1 -0
  300. package/dist/web-ui-assets/assets/vitesse-dark-D0r3Knsf.js +1 -0
  301. package/dist/web-ui-assets/assets/vitesse-light-CVO1_9PV.js +1 -0
  302. package/dist/web-ui-assets/assets/vue-BqiEGhQt.js +1 -0
  303. package/dist/web-ui-assets/assets/vue-html-AaS7Mt5G.js +1 -0
  304. package/dist/web-ui-assets/assets/vue-vine-BoDAl6tE.js +1 -0
  305. package/dist/web-ui-assets/assets/vyper-CDx5xZoG.js +1 -0
  306. package/dist/web-ui-assets/assets/wasm-CG6Dc4jp.js +1 -0
  307. package/dist/web-ui-assets/assets/wasm-MzD3tlZU.js +1 -0
  308. package/dist/web-ui-assets/assets/wenyan-BV7otONQ.js +1 -0
  309. package/dist/web-ui-assets/assets/wgsl-Dx-B1_4e.js +1 -0
  310. package/dist/web-ui-assets/assets/wikitext-BhOHFoWU.js +1 -0
  311. package/dist/web-ui-assets/assets/wit-5i3qLPDT.js +1 -0
  312. package/dist/web-ui-assets/assets/wolfram-lXgVvXCa.js +1 -0
  313. package/dist/web-ui-assets/assets/xml-sdJ4AIDG.js +1 -0
  314. package/dist/web-ui-assets/assets/xsl-CtQFsRM5.js +1 -0
  315. package/dist/web-ui-assets/assets/yaml-Buea-lGh.js +1 -0
  316. package/dist/web-ui-assets/assets/zenscript-DVFEvuxE.js +1 -0
  317. package/dist/web-ui-assets/assets/zig-VOosw3JB.js +1 -0
  318. package/dist/web-ui-assets/index.html +2 -2
  319. package/package.json +1 -1
  320. package/dist/web-ui-assets/assets/index-3YQ3Lxgf.css +0 -1
  321. package/dist/web-ui-assets/assets/index-BRR0nDvU.js +0 -303
@@ -1,303 +0,0 @@
1
- function q1(t,r){for(var i=0;i<r.length;i++){const a=r[i];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in t)){const c=Object.getOwnPropertyDescriptor(a,o);c&&Object.defineProperty(t,o,c.get?c:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const s of c.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&a(s)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function a(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();function Pf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Yc={exports:{}},ua={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Tg;function V1(){if(Tg)return ua;Tg=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(a,o,c){var s=null;if(c!==void 0&&(s=""+c),o.key!==void 0&&(s=""+o.key),"key"in o){c={};for(var m in o)m!=="key"&&(c[m]=o[m])}else c=o;return o=c.ref,{$$typeof:t,type:a,key:s,ref:o!==void 0?o:null,props:c}}return ua.Fragment=r,ua.jsx=i,ua.jsxs=i,ua}var Ag;function Y1(){return Ag||(Ag=1,Yc.exports=V1()),Yc.exports}var b=Y1(),Gc={exports:{}},Ee={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Ng;function G1(){if(Ng)return Ee;Ng=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),s=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),v=Symbol.iterator;function S(D){return D===null||typeof D!="object"?null:(D=v&&D[v]||D["@@iterator"],typeof D=="function"?D:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,j={};function N(D,M,C){this.props=D,this.context=M,this.refs=j,this.updater=C||E}N.prototype.isReactComponent={},N.prototype.setState=function(D,M){if(typeof D!="object"&&typeof D!="function"&&D!=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,D,M,"setState")},N.prototype.forceUpdate=function(D){this.updater.enqueueForceUpdate(this,D,"forceUpdate")};function L(){}L.prototype=N.prototype;function R(D,M,C){this.props=D,this.context=M,this.refs=j,this.updater=C||E}var W=R.prototype=new L;W.constructor=R,A(W,N.prototype),W.isPureReactComponent=!0;var ee=Array.isArray;function _(){}var X={H:null,A:null,T:null,S:null},Y=Object.prototype.hasOwnProperty;function ae(D,M,C){var $=C.ref;return{$$typeof:t,type:D,key:M,ref:$!==void 0?$:null,props:C}}function B(D,M){return ae(D.type,M,D.props)}function re(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function P(D){var M={"=":"=0",":":"=2"};return"$"+D.replace(/[=:]/g,function(C){return M[C]})}var pe=/\/+/g;function oe(D,M){return typeof D=="object"&&D!==null&&D.key!=null?P(""+D.key):M.toString(36)}function ne(D){switch(D.status){case"fulfilled":return D.value;case"rejected":throw D.reason;default:switch(typeof D.status=="string"?D.then(_,_):(D.status="pending",D.then(function(M){D.status==="pending"&&(D.status="fulfilled",D.value=M)},function(M){D.status==="pending"&&(D.status="rejected",D.reason=M)})),D.status){case"fulfilled":return D.value;case"rejected":throw D.reason}}throw D}function H(D,M,C,$,K){var le=typeof D;(le==="undefined"||le==="boolean")&&(D=null);var me=!1;if(D===null)me=!0;else switch(le){case"bigint":case"string":case"number":me=!0;break;case"object":switch(D.$$typeof){case t:case r:me=!0;break;case y:return me=D._init,H(me(D._payload),M,C,$,K)}}if(me)return K=K(D),me=$===""?"."+oe(D,0):$,ee(K)?(C="",me!=null&&(C=me.replace(pe,"$&/")+"/"),H(K,M,C,"",function(at){return at})):K!=null&&(re(K)&&(K=B(K,C+(K.key==null||D&&D.key===K.key?"":(""+K.key).replace(pe,"$&/")+"/")+me)),M.push(K)),1;me=0;var Te=$===""?".":$+":";if(ee(D))for(var ge=0;ge<D.length;ge++)$=D[ge],le=Te+oe($,ge),me+=H($,M,C,le,K);else if(ge=S(D),typeof ge=="function")for(D=ge.call(D),ge=0;!($=D.next()).done;)$=$.value,le=Te+oe($,ge++),me+=H($,M,C,le,K);else if(le==="object"){if(typeof D.then=="function")return H(ne(D),M,C,$,K);throw M=String(D),Error("Objects are not valid as a React child (found: "+(M==="[object Object]"?"object with keys {"+Object.keys(D).join(", ")+"}":M)+"). If you meant to render a collection of children, use an array instead.")}return me}function te(D,M,C){if(D==null)return D;var $=[],K=0;return H(D,$,"","",function(le){return M.call(C,le,K++)}),$}function ce(D){if(D._status===-1){var M=D._result;M=M(),M.then(function(C){(D._status===0||D._status===-1)&&(D._status=1,D._result=C)},function(C){(D._status===0||D._status===-1)&&(D._status=2,D._result=C)}),D._status===-1&&(D._status=0,D._result=M)}if(D._status===1)return D._result.default;throw D._result}var ke=typeof reportError=="function"?reportError:function(D){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var M=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D),error:D});if(!window.dispatchEvent(M))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",D);return}console.error(D)},T={map:te,forEach:function(D,M,C){te(D,function(){M.apply(this,arguments)},C)},count:function(D){var M=0;return te(D,function(){M++}),M},toArray:function(D){return te(D,function(M){return M})||[]},only:function(D){if(!re(D))throw Error("React.Children.only expected to receive a single React element child.");return D}};return Ee.Activity=g,Ee.Children=T,Ee.Component=N,Ee.Fragment=i,Ee.Profiler=o,Ee.PureComponent=R,Ee.StrictMode=a,Ee.Suspense=h,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=X,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(D){return X.H.useMemoCache(D)}},Ee.cache=function(D){return function(){return D.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.cloneElement=function(D,M,C){if(D==null)throw Error("The argument must be a React element, but you passed "+D+".");var $=A({},D.props),K=D.key;if(M!=null)for(le in M.key!==void 0&&(K=""+M.key),M)!Y.call(M,le)||le==="key"||le==="__self"||le==="__source"||le==="ref"&&M.ref===void 0||($[le]=M[le]);var le=arguments.length-2;if(le===1)$.children=C;else if(1<le){for(var me=Array(le),Te=0;Te<le;Te++)me[Te]=arguments[Te+2];$.children=me}return ae(D.type,K,$)},Ee.createContext=function(D){return D={$$typeof:s,_currentValue:D,_currentValue2:D,_threadCount:0,Provider:null,Consumer:null},D.Provider=D,D.Consumer={$$typeof:c,_context:D},D},Ee.createElement=function(D,M,C){var $,K={},le=null;if(M!=null)for($ in M.key!==void 0&&(le=""+M.key),M)Y.call(M,$)&&$!=="key"&&$!=="__self"&&$!=="__source"&&(K[$]=M[$]);var me=arguments.length-2;if(me===1)K.children=C;else if(1<me){for(var Te=Array(me),ge=0;ge<me;ge++)Te[ge]=arguments[ge+2];K.children=Te}if(D&&D.defaultProps)for($ in me=D.defaultProps,me)K[$]===void 0&&(K[$]=me[$]);return ae(D,le,K)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(D){return{$$typeof:m,render:D}},Ee.isValidElement=re,Ee.lazy=function(D){return{$$typeof:y,_payload:{_status:-1,_result:D},_init:ce}},Ee.memo=function(D,M){return{$$typeof:p,type:D,compare:M===void 0?null:M}},Ee.startTransition=function(D){var M=X.T,C={};X.T=C;try{var $=D(),K=X.S;K!==null&&K(C,$),typeof $=="object"&&$!==null&&typeof $.then=="function"&&$.then(_,ke)}catch(le){ke(le)}finally{M!==null&&C.types!==null&&(M.types=C.types),X.T=M}},Ee.unstable_useCacheRefresh=function(){return X.H.useCacheRefresh()},Ee.use=function(D){return X.H.use(D)},Ee.useActionState=function(D,M,C){return X.H.useActionState(D,M,C)},Ee.useCallback=function(D,M){return X.H.useCallback(D,M)},Ee.useContext=function(D){return X.H.useContext(D)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(D,M){return X.H.useDeferredValue(D,M)},Ee.useEffect=function(D,M){return X.H.useEffect(D,M)},Ee.useEffectEvent=function(D){return X.H.useEffectEvent(D)},Ee.useId=function(){return X.H.useId()},Ee.useImperativeHandle=function(D,M,C){return X.H.useImperativeHandle(D,M,C)},Ee.useInsertionEffect=function(D,M){return X.H.useInsertionEffect(D,M)},Ee.useLayoutEffect=function(D,M){return X.H.useLayoutEffect(D,M)},Ee.useMemo=function(D,M){return X.H.useMemo(D,M)},Ee.useOptimistic=function(D,M){return X.H.useOptimistic(D,M)},Ee.useReducer=function(D,M,C){return X.H.useReducer(D,M,C)},Ee.useRef=function(D){return X.H.useRef(D)},Ee.useState=function(D){return X.H.useState(D)},Ee.useSyncExternalStore=function(D,M,C){return X.H.useSyncExternalStore(D,M,C)},Ee.useTransition=function(){return X.H.useTransition()},Ee.version="19.2.8",Ee}var zg;function $f(){return zg||(zg=1,Gc.exports=G1()),Gc.exports}var k=$f();const F1=Pf(k),Ca=q1({__proto__:null,default:F1},[k]);var Fc={exports:{}},oa={},Ic={exports:{}},Xc={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var jg;function I1(){return jg||(jg=1,(function(t){function r(H,te){var ce=H.length;H.push(te);e:for(;0<ce;){var ke=ce-1>>>1,T=H[ke];if(0<o(T,te))H[ke]=te,H[ce]=T,ce=ke;else break e}}function i(H){return H.length===0?null:H[0]}function a(H){if(H.length===0)return null;var te=H[0],ce=H.pop();if(ce!==te){H[0]=ce;e:for(var ke=0,T=H.length,D=T>>>1;ke<D;){var M=2*(ke+1)-1,C=H[M],$=M+1,K=H[$];if(0>o(C,ce))$<T&&0>o(K,C)?(H[ke]=K,H[$]=ce,ke=$):(H[ke]=C,H[M]=ce,ke=M);else if($<T&&0>o(K,ce))H[ke]=K,H[$]=ce,ke=$;else break e}}return te}function o(H,te){var ce=H.sortIndex-te.sortIndex;return ce!==0?ce:H.id-te.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var s=Date,m=s.now();t.unstable_now=function(){return s.now()-m}}var h=[],p=[],y=1,g=null,v=3,S=!1,E=!1,A=!1,j=!1,N=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function W(H){for(var te=i(p);te!==null;){if(te.callback===null)a(p);else if(te.startTime<=H)a(p),te.sortIndex=te.expirationTime,r(h,te);else break;te=i(p)}}function ee(H){if(A=!1,W(H),!E)if(i(h)!==null)E=!0,_||(_=!0,P());else{var te=i(p);te!==null&&ne(ee,te.startTime-H)}}var _=!1,X=-1,Y=5,ae=-1;function B(){return j?!0:!(t.unstable_now()-ae<Y)}function re(){if(j=!1,_){var H=t.unstable_now();ae=H;var te=!0;try{e:{E=!1,A&&(A=!1,L(X),X=-1),S=!0;var ce=v;try{t:{for(W(H),g=i(h);g!==null&&!(g.expirationTime>H&&B());){var ke=g.callback;if(typeof ke=="function"){g.callback=null,v=g.priorityLevel;var T=ke(g.expirationTime<=H);if(H=t.unstable_now(),typeof T=="function"){g.callback=T,W(H),te=!0;break t}g===i(h)&&a(h),W(H)}else a(h);g=i(h)}if(g!==null)te=!0;else{var D=i(p);D!==null&&ne(ee,D.startTime-H),te=!1}}break e}finally{g=null,v=ce,S=!1}te=void 0}}finally{te?P():_=!1}}}var P;if(typeof R=="function")P=function(){R(re)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,oe=pe.port2;pe.port1.onmessage=re,P=function(){oe.postMessage(null)}}else P=function(){N(re,0)};function ne(H,te){X=N(function(){H(t.unstable_now())},te)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return v},t.unstable_next=function(H){switch(v){case 1:case 2:case 3:var te=3;break;default:te=v}var ce=v;v=te;try{return H()}finally{v=ce}},t.unstable_requestPaint=function(){j=!0},t.unstable_runWithPriority=function(H,te){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var ce=v;v=H;try{return te()}finally{v=ce}},t.unstable_scheduleCallback=function(H,te,ce){var ke=t.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?ke+ce:ke):ce=ke,H){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=ce+T,H={id:y++,callback:te,priorityLevel:H,startTime:ce,expirationTime:T,sortIndex:-1},ce>ke?(H.sortIndex=ce,r(p,H),i(h)===null&&H===i(p)&&(A?(L(X),X=-1):A=!0,ne(ee,ce-ke))):(H.sortIndex=T,r(h,H),E||S||(E=!0,_||(_=!0,P()))),H},t.unstable_shouldYield=B,t.unstable_wrapCallback=function(H){var te=v;return function(){var ce=v;v=te;try{return H.apply(this,arguments)}finally{v=ce}}}})(Xc)),Xc}var Mg;function X1(){return Mg||(Mg=1,Ic.exports=I1()),Ic.exports}var Qc={exports:{}},Et={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Dg;function Q1(){if(Dg)return Et;Dg=1;var t=$f();function r(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)p+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+h+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(h,p,y){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:h,containerInfo:p,implementation:y}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Et.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Et.createPortal=function(h,p){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(r(299));return c(h,p,null,y)},Et.flushSync=function(h){var p=s.T,y=a.p;try{if(s.T=null,a.p=2,h)return h()}finally{s.T=p,a.p=y,a.d.f()}},Et.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(h,p))},Et.prefetchDNS=function(h){typeof h=="string"&&a.d.D(h)},Et.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var y=p.as,g=m(y,p.crossOrigin),v=typeof p.integrity=="string"?p.integrity:void 0,S=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;y==="style"?a.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:v,fetchPriority:S}):y==="script"&&a.d.X(h,{crossOrigin:g,integrity:v,fetchPriority:S,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Et.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var y=m(p.as,p.crossOrigin);a.d.M(h,{crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(h)},Et.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var y=p.as,g=m(y,p.crossOrigin);a.d.L(h,y,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Et.preloadModule=function(h,p){if(typeof h=="string")if(p){var y=m(p.as,p.crossOrigin);a.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:y,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(h)},Et.requestFormReset=function(h){a.d.r(h)},Et.unstable_batchedUpdates=function(h,p){return h(p)},Et.useFormState=function(h,p,y){return s.H.useFormState(h,p,y)},Et.useFormStatus=function(){return s.H.useHostTransitionStatus()},Et.version="19.2.8",Et}var Og;function Ky(){if(Og)return Qc.exports;Og=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Qc.exports=Q1(),Qc.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var _g;function Z1(){if(_g)return oa;_g=1;var t=X1(),r=$f(),i=Ky();function a(e){var n="https://react.dev/errors/"+e;if(1<arguments.length){n+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)n+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var n=e,l=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(l=n.return),e=n.return;while(e)}return n.tag===3?l:null}function s(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function m(e){if(e.tag===31){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(a(188))}function p(e){var n=e.alternate;if(!n){if(n=c(e),n===null)throw Error(a(188));return n!==e?null:e}for(var l=e,u=n;;){var f=l.return;if(f===null)break;var d=f.alternate;if(d===null){if(u=f.return,u!==null){l=u;continue}break}if(f.child===d.child){for(d=f.child;d;){if(d===l)return h(f),e;if(d===u)return h(f),n;d=d.sibling}throw Error(a(188))}if(l.return!==u.return)l=f,u=d;else{for(var x=!1,w=f.child;w;){if(w===l){x=!0,l=f,u=d;break}if(w===u){x=!0,u=f,l=d;break}w=w.sibling}if(!x){for(w=d.child;w;){if(w===l){x=!0,l=d,u=f;break}if(w===u){x=!0,u=d,l=f;break}w=w.sibling}if(!x)throw Error(a(189))}}if(l.alternate!==u)throw Error(a(190))}if(l.tag!==3)throw Error(a(188));return l.stateNode.current===l?e:n}function y(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e;for(e=e.child;e!==null;){if(n=y(e),n!==null)return n;e=e.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),R=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),Y=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),re=Symbol.iterator;function P(e){return e===null||typeof e!="object"?null:(e=re&&e[re]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Symbol.for("react.client.reference");function oe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case A:return"Fragment";case N:return"Profiler";case j:return"StrictMode";case ee:return"Suspense";case _:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case R:return e.displayName||"Context";case L:return(e._context.displayName||"Context")+".Consumer";case W:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return n=e.displayName||null,n!==null?n:oe(e.type)||"Memo";case Y:n=e._payload,e=e._init;try{return oe(e(n))}catch{}}return null}var ne=Array.isArray,H=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},ke=[],T=-1;function D(e){return{current:e}}function M(e){0>T||(e.current=ke[T],ke[T]=null,T--)}function C(e,n){T++,ke[T]=e.current,e.current=n}var $=D(null),K=D(null),le=D(null),me=D(null);function Te(e,n){switch(C(le,n),C(K,e),C($,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?Kp(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=Kp(n),e=Jp(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}M($),C($,e)}function ge(){M($),M(K),M(le)}function at(e){e.memoizedState!==null&&C(me,e);var n=$.current,l=Jp(n,e.type);n!==l&&(C(K,e),C($,l))}function Dt(e){K.current===e&&(M($),M(K)),me.current===e&&(M(me),la._currentValue=ce)}var kn,rl;function Ot(e){if(kn===void 0)try{throw Error()}catch(l){var n=l.stack.trim().match(/\n( *(at )?)/);kn=n&&n[1]||"",rl=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+kn+e+rl}var cr=!1;function fr(e,n){if(!e||cr)return"";cr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(n){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(F){var G=F}Reflect.construct(e,[],J)}else{try{J.call()}catch(F){G=F}e.call(J.prototype)}}else{try{throw Error()}catch(F){G=F}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(F){if(F&&G&&typeof F.stack=="string")return[F.stack,G.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=u.DetermineComponentFrameRoot(),x=d[0],w=d[1];if(x&&w){var z=x.split(`
44
- `),V=w.split(`
45
- `);for(f=u=0;u<z.length&&!z[u].includes("DetermineComponentFrameRoot");)u++;for(;f<V.length&&!V[f].includes("DetermineComponentFrameRoot");)f++;if(u===z.length||f===V.length)for(u=z.length-1,f=V.length-1;1<=u&&0<=f&&z[u]!==V[f];)f--;for(;1<=u&&0<=f;u--,f--)if(z[u]!==V[f]){if(u!==1||f!==1)do if(u--,f--,0>f||z[u]!==V[f]){var I=`
46
- `+z[u].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=u&&0<=f);break}}}finally{cr=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ot(l):""}function Ma(e,n){switch(e.tag){case 26:case 27:case 5:return Ot(e.type);case 16:return Ot("Lazy");case 13:return e.child!==n&&n!==null?Ot("Suspense Fallback"):Ot("Suspense");case 19:return Ot("SuspenseList");case 0:case 15:return fr(e.type,!1);case 11:return fr(e.type.render,!1);case 1:return fr(e.type,!0);case 31:return Ot("Activity");default:return""}}function Da(e){try{var n="",l=null;do n+=Ma(e,l),l=e,e=e.return;while(e);return n}catch(u){return`
47
- Error generating stack: `+u.message+`
48
- `+u.stack}}var dr=Object.prototype.hasOwnProperty,mr=t.unstable_scheduleCallback,pi=t.unstable_cancelCallback,Ao=t.unstable_shouldYield,No=t.unstable_requestPaint,At=t.unstable_now,zo=t.unstable_getCurrentPriorityLevel,Q=t.unstable_ImmediatePriority,ue=t.unstable_UserBlockingPriority,Se=t.unstable_NormalPriority,ze=t.unstable_LowPriority,Ve=t.unstable_IdlePriority,It=t.log,_n=t.unstable_setDisableYieldValue,Nt=null,dt=null;function _t(e){if(typeof It=="function"&&_n(e),dt&&typeof dt.setStrictMode=="function")try{dt.setStrictMode(Nt,e)}catch{}}var Qe=Math.clz32?Math.clz32:T0,il=Math.log,pn=Math.LN2;function T0(e){return e>>>=0,e===0?32:31-(il(e)/pn|0)|0}var Oa=256,_a=262144,Ra=4194304;function Rl(e){var n=e&42;if(n!==0)return n;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function La(e,n,l){var u=e.pendingLanes;if(u===0)return 0;var f=0,d=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var w=u&134217727;return w!==0?(u=w&~d,u!==0?f=Rl(u):(x&=w,x!==0?f=Rl(x):l||(l=w&~e,l!==0&&(f=Rl(l))))):(w=u&~d,w!==0?f=Rl(w):x!==0?f=Rl(x):l||(l=u&~e,l!==0&&(f=Rl(l)))),f===0?0:n!==0&&n!==f&&(n&d)===0&&(d=f&-f,l=n&-n,d>=l||d===32&&(l&4194048)!==0)?n:f}function gi(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function A0(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 jd(){var e=Ra;return Ra<<=1,(Ra&62914560)===0&&(Ra=4194304),e}function jo(e){for(var n=[],l=0;31>l;l++)n.push(e);return n}function yi(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function N0(e,n,l,u,f,d){var x=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var w=e.entanglements,z=e.expirationTimes,V=e.hiddenUpdates;for(l=x&~l;0<l;){var I=31-Qe(l),J=1<<I;w[I]=0,z[I]=-1;var G=V[I];if(G!==null)for(V[I]=null,I=0;I<G.length;I++){var F=G[I];F!==null&&(F.lane&=-536870913)}l&=~J}u!==0&&Md(e,u,0),d!==0&&f===0&&e.tag!==0&&(e.suspendedLanes|=d&~(x&~n))}function Md(e,n,l){e.pendingLanes|=n,e.suspendedLanes&=~n;var u=31-Qe(n);e.entangledLanes|=n,e.entanglements[u]=e.entanglements[u]|1073741824|l&261930}function Dd(e,n){var l=e.entangledLanes|=n;for(e=e.entanglements;l;){var u=31-Qe(l),f=1<<u;f&n|e[u]&n&&(e[u]|=n),l&=~f}}function Od(e,n){var l=n&-n;return l=(l&42)!==0?1:Mo(l),(l&(e.suspendedLanes|n))!==0?0:l}function Mo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Do(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function _d(){var e=te.p;return e!==0?e:(e=window.event,e===void 0?32:xg(e.type))}function Rd(e,n){var l=te.p;try{return te.p=e,n()}finally{te.p=l}}var al=Math.random().toString(36).slice(2),bt="__reactFiber$"+al,Rt="__reactProps$"+al,hr="__reactContainer$"+al,Oo="__reactEvents$"+al,z0="__reactListeners$"+al,j0="__reactHandles$"+al,Ld="__reactResources$"+al,bi="__reactMarker$"+al;function _o(e){delete e[bt],delete e[Rt],delete e[Oo],delete e[z0],delete e[j0]}function pr(e){var n=e[bt];if(n)return n;for(var l=e.parentNode;l;){if(n=l[hr]||l[bt]){if(l=n.alternate,n.child!==null||l!==null&&l.child!==null)for(e=lg(e);e!==null;){if(l=e[bt])return l;e=lg(e)}return n}e=l,l=e.parentNode}return null}function gr(e){if(e=e[bt]||e[hr]){var n=e.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return e}return null}function xi(e){var n=e.tag;if(n===5||n===26||n===27||n===6)return e.stateNode;throw Error(a(33))}function yr(e){var n=e[Ld];return n||(n=e[Ld]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function pt(e){e[bi]=!0}var Ud=new Set,Bd={};function Ll(e,n){br(e,n),br(e+"Capture",n)}function br(e,n){for(Bd[e]=n,e=0;e<n.length;e++)Ud.add(n[e])}var M0=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]*$"),Hd={},qd={};function D0(e){return dr.call(qd,e)?!0:dr.call(Hd,e)?!1:M0.test(e)?qd[e]=!0:(Hd[e]=!0,!1)}function Ua(e,n,l){if(D0(n))if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(n);return;case"boolean":var u=n.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){e.removeAttribute(n);return}}e.setAttribute(n,""+l)}}function Ba(e,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttribute(n,""+l)}}function Rn(e,n,l,u){if(u===null)e.removeAttribute(l);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(n,l,""+u)}}function tn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vd(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function O0(e,n,l){var u=Object.getOwnPropertyDescriptor(e.constructor.prototype,n);if(!e.hasOwnProperty(n)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var f=u.get,d=u.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return f.call(this)},set:function(x){l=""+x,d.call(this,x)}}),Object.defineProperty(e,n,{enumerable:u.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Ro(e){if(!e._valueTracker){var n=Vd(e)?"checked":"value";e._valueTracker=O0(e,n,""+e[n])}}function Yd(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var l=n.getValue(),u="";return e&&(u=Vd(e)?e.checked?"true":"false":e.value),e=u,e!==l?(n.setValue(e),!0):!1}function Ha(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var _0=/[\n"\\]/g;function nn(e){return e.replace(_0,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function Lo(e,n,l,u,f,d,x,w){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),n!=null?x==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+tn(n)):e.value!==""+tn(n)&&(e.value=""+tn(n)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),n!=null?Uo(e,x,tn(n)):l!=null?Uo(e,x,tn(l)):u!=null&&e.removeAttribute("value"),f==null&&d!=null&&(e.defaultChecked=!!d),f!=null&&(e.checked=f&&typeof f!="function"&&typeof f!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+tn(w):e.removeAttribute("name")}function Gd(e,n,l,u,f,d,x,w){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),n!=null||l!=null){if(!(d!=="submit"&&d!=="reset"||n!=null)){Ro(e);return}l=l!=null?""+tn(l):"",n=n!=null?""+tn(n):l,w||n===e.value||(e.value=n),e.defaultValue=n}u=u??f,u=typeof u!="function"&&typeof u!="symbol"&&!!u,e.checked=w?e.checked:!!u,e.defaultChecked=!!u,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),Ro(e)}function Uo(e,n,l){n==="number"&&Ha(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function xr(e,n,l,u){if(e=e.options,n){n={};for(var f=0;f<l.length;f++)n["$"+l[f]]=!0;for(l=0;l<e.length;l++)f=n.hasOwnProperty("$"+e[l].value),e[l].selected!==f&&(e[l].selected=f),f&&u&&(e[l].defaultSelected=!0)}else{for(l=""+tn(l),n=null,f=0;f<e.length;f++){if(e[f].value===l){e[f].selected=!0,u&&(e[f].defaultSelected=!0);return}n!==null||e[f].disabled||(n=e[f])}n!==null&&(n.selected=!0)}}function Fd(e,n,l){if(n!=null&&(n=""+tn(n),n!==e.value&&(e.value=n),l==null)){e.defaultValue!==n&&(e.defaultValue=n);return}e.defaultValue=l!=null?""+tn(l):""}function Id(e,n,l,u){if(n==null){if(u!=null){if(l!=null)throw Error(a(92));if(ne(u)){if(1<u.length)throw Error(a(93));u=u[0]}l=u}l==null&&(l=""),n=l}l=tn(n),e.defaultValue=l,u=e.textContent,u===l&&u!==""&&u!==null&&(e.value=u),Ro(e)}function vr(e,n){if(n){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=n;return}}e.textContent=n}var R0=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 Xd(e,n,l){var u=n.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?u?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="":u?e.setProperty(n,l):typeof l!="number"||l===0||R0.has(n)?n==="float"?e.cssFloat=l:e[n]=(""+l).trim():e[n]=l+"px"}function Qd(e,n,l){if(n!=null&&typeof n!="object")throw Error(a(62));if(e=e.style,l!=null){for(var u in l)!l.hasOwnProperty(u)||n!=null&&n.hasOwnProperty(u)||(u.indexOf("--")===0?e.setProperty(u,""):u==="float"?e.cssFloat="":e[u]="");for(var f in n)u=n[f],n.hasOwnProperty(f)&&l[f]!==u&&Xd(e,f,u)}else for(var d in n)n.hasOwnProperty(d)&&Xd(e,d,n[d])}function Bo(e){if(e.indexOf("-")===-1)return!1;switch(e){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 L0=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"]]),U0=/^[\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 qa(e){return U0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ln(){}var Ho=null;function qo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sr=null,kr=null;function Zd(e){var n=gr(e);if(n&&(e=n.stateNode)){var l=e[Rt]||null;e:switch(e=n.stateNode,n.type){case"input":if(Lo(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),n=l.name,l.type==="radio"&&n!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+nn(""+n)+'"][type="radio"]'),n=0;n<l.length;n++){var u=l[n];if(u!==e&&u.form===e.form){var f=u[Rt]||null;if(!f)throw Error(a(90));Lo(u,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<l.length;n++)u=l[n],u.form===e.form&&Yd(u)}break e;case"textarea":Fd(e,l.value,l.defaultValue);break e;case"select":n=l.value,n!=null&&xr(e,!!l.multiple,n,!1)}}}var Vo=!1;function Kd(e,n,l){if(Vo)return e(n,l);Vo=!0;try{var u=e(n);return u}finally{if(Vo=!1,(Sr!==null||kr!==null)&&(Au(),Sr&&(n=Sr,e=kr,kr=Sr=null,Zd(n),e)))for(n=0;n<e.length;n++)Zd(e[n])}}function vi(e,n){var l=e.stateNode;if(l===null)return null;var u=l[Rt]||null;if(u===null)return null;l=u[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(e=e.type,u=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!u;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(a(231,n,typeof l));return l}var Un=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yo=!1;if(Un)try{var Si={};Object.defineProperty(Si,"passive",{get:function(){Yo=!0}}),window.addEventListener("test",Si,Si),window.removeEventListener("test",Si,Si)}catch{Yo=!1}var ul=null,Go=null,Va=null;function Jd(){if(Va)return Va;var e,n=Go,l=n.length,u,f="value"in ul?ul.value:ul.textContent,d=f.length;for(e=0;e<l&&n[e]===f[e];e++);var x=l-e;for(u=1;u<=x&&n[l-u]===f[d-u];u++);return Va=f.slice(e,1<u?1-u:void 0)}function Ya(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Ga(){return!0}function Pd(){return!1}function Lt(e){function n(l,u,f,d,x){this._reactName=l,this._targetInst=f,this.type=u,this.nativeEvent=d,this.target=x,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(l=e[w],this[w]=l?l(d):d[w]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Ga:Pd,this.isPropagationStopped=Pd,this}return g(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ga)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ga)},persist:function(){},isPersistent:Ga}),n}var Ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fa=Lt(Ul),ki=g({},Ul,{view:0,detail:0}),B0=Lt(ki),Fo,Io,wi,Ia=g({},ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qo,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==wi&&(wi&&e.type==="mousemove"?(Fo=e.screenX-wi.screenX,Io=e.screenY-wi.screenY):Io=Fo=0,wi=e),Fo)},movementY:function(e){return"movementY"in e?e.movementY:Io}}),$d=Lt(Ia),H0=g({},Ia,{dataTransfer:0}),q0=Lt(H0),V0=g({},ki,{relatedTarget:0}),Xo=Lt(V0),Y0=g({},Ul,{animationName:0,elapsedTime:0,pseudoElement:0}),G0=Lt(Y0),F0=g({},Ul,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),I0=Lt(F0),X0=g({},Ul,{data:0}),Wd=Lt(X0),Q0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Z0={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"},K0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function J0(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=K0[e])?!!n[e]:!1}function Qo(){return J0}var P0=g({},ki,{key:function(e){if(e.key){var n=Q0[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Ya(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Z0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qo,charCode:function(e){return e.type==="keypress"?Ya(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ya(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$0=Lt(P0),W0=g({},Ia,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),em=Lt(W0),ev=g({},ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qo}),tv=Lt(ev),nv=g({},Ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),lv=Lt(nv),rv=g({},Ia,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),iv=Lt(rv),av=g({},Ul,{newState:0,oldState:0}),uv=Lt(av),ov=[9,13,27,32],Zo=Un&&"CompositionEvent"in window,Ei=null;Un&&"documentMode"in document&&(Ei=document.documentMode);var sv=Un&&"TextEvent"in window&&!Ei,tm=Un&&(!Zo||Ei&&8<Ei&&11>=Ei),nm=" ",lm=!1;function rm(e,n){switch(e){case"keyup":return ov.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function im(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wr=!1;function cv(e,n){switch(e){case"compositionend":return im(n);case"keypress":return n.which!==32?null:(lm=!0,nm);case"textInput":return e=n.data,e===nm&&lm?null:e;default:return null}}function fv(e,n){if(wr)return e==="compositionend"||!Zo&&rm(e,n)?(e=Jd(),Va=Go=ul=null,wr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return tm&&n.locale!=="ko"?null:n.data;default:return null}}var dv={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 am(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!dv[e.type]:n==="textarea"}function um(e,n,l,u){Sr?kr?kr.push(u):kr=[u]:Sr=u,n=_u(n,"onChange"),0<n.length&&(l=new Fa("onChange","change",null,l,u),e.push({event:l,listeners:n}))}var Ci=null,Ti=null;function mv(e){Gp(e,0)}function Xa(e){var n=xi(e);if(Yd(n))return e}function om(e,n){if(e==="change")return n}var sm=!1;if(Un){var Ko;if(Un){var Jo="oninput"in document;if(!Jo){var cm=document.createElement("div");cm.setAttribute("oninput","return;"),Jo=typeof cm.oninput=="function"}Ko=Jo}else Ko=!1;sm=Ko&&(!document.documentMode||9<document.documentMode)}function fm(){Ci&&(Ci.detachEvent("onpropertychange",dm),Ti=Ci=null)}function dm(e){if(e.propertyName==="value"&&Xa(Ti)){var n=[];um(n,Ti,e,qo(e)),Kd(mv,n)}}function hv(e,n,l){e==="focusin"?(fm(),Ci=n,Ti=l,Ci.attachEvent("onpropertychange",dm)):e==="focusout"&&fm()}function pv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xa(Ti)}function gv(e,n){if(e==="click")return Xa(n)}function yv(e,n){if(e==="input"||e==="change")return Xa(n)}function bv(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Xt=typeof Object.is=="function"?Object.is:bv;function Ai(e,n){if(Xt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var l=Object.keys(e),u=Object.keys(n);if(l.length!==u.length)return!1;for(u=0;u<l.length;u++){var f=l[u];if(!dr.call(n,f)||!Xt(e[f],n[f]))return!1}return!0}function mm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hm(e,n){var l=mm(e);e=0;for(var u;l;){if(l.nodeType===3){if(u=e+l.textContent.length,e<=n&&u>=n)return{node:l,offset:n-e};e=u}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=mm(l)}}function pm(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?pm(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function gm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=Ha(e.document);n instanceof e.HTMLIFrameElement;){try{var l=typeof n.contentWindow.location.href=="string"}catch{l=!1}if(l)e=n.contentWindow;else break;n=Ha(e.document)}return n}function Po(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var xv=Un&&"documentMode"in document&&11>=document.documentMode,Er=null,$o=null,Ni=null,Wo=!1;function ym(e,n,l){var u=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Wo||Er==null||Er!==Ha(u)||(u=Er,"selectionStart"in u&&Po(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Ni&&Ai(Ni,u)||(Ni=u,u=_u($o,"onSelect"),0<u.length&&(n=new Fa("onSelect","select",null,n,l),e.push({event:n,listeners:u}),n.target=Er)))}function Bl(e,n){var l={};return l[e.toLowerCase()]=n.toLowerCase(),l["Webkit"+e]="webkit"+n,l["Moz"+e]="moz"+n,l}var Cr={animationend:Bl("Animation","AnimationEnd"),animationiteration:Bl("Animation","AnimationIteration"),animationstart:Bl("Animation","AnimationStart"),transitionrun:Bl("Transition","TransitionRun"),transitionstart:Bl("Transition","TransitionStart"),transitioncancel:Bl("Transition","TransitionCancel"),transitionend:Bl("Transition","TransitionEnd")},es={},bm={};Un&&(bm=document.createElement("div").style,"AnimationEvent"in window||(delete Cr.animationend.animation,delete Cr.animationiteration.animation,delete Cr.animationstart.animation),"TransitionEvent"in window||delete Cr.transitionend.transition);function Hl(e){if(es[e])return es[e];if(!Cr[e])return e;var n=Cr[e],l;for(l in n)if(n.hasOwnProperty(l)&&l in bm)return es[e]=n[l];return e}var xm=Hl("animationend"),vm=Hl("animationiteration"),Sm=Hl("animationstart"),vv=Hl("transitionrun"),Sv=Hl("transitionstart"),kv=Hl("transitioncancel"),km=Hl("transitionend"),wm=new Map,ts="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(" ");ts.push("scrollEnd");function gn(e,n){wm.set(e,n),Ll(n,[e])}var Qa=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ln=[],Tr=0,ns=0;function Za(){for(var e=Tr,n=ns=Tr=0;n<e;){var l=ln[n];ln[n++]=null;var u=ln[n];ln[n++]=null;var f=ln[n];ln[n++]=null;var d=ln[n];if(ln[n++]=null,u!==null&&f!==null){var x=u.pending;x===null?f.next=f:(f.next=x.next,x.next=f),u.pending=f}d!==0&&Em(l,f,d)}}function Ka(e,n,l,u){ln[Tr++]=e,ln[Tr++]=n,ln[Tr++]=l,ln[Tr++]=u,ns|=u,e.lanes|=u,e=e.alternate,e!==null&&(e.lanes|=u)}function ls(e,n,l,u){return Ka(e,n,l,u),Ja(e)}function ql(e,n){return Ka(e,null,null,n),Ja(e)}function Em(e,n,l){e.lanes|=l;var u=e.alternate;u!==null&&(u.lanes|=l);for(var f=!1,d=e.return;d!==null;)d.childLanes|=l,u=d.alternate,u!==null&&(u.childLanes|=l),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(f=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,f&&n!==null&&(f=31-Qe(l),e=d.hiddenUpdates,u=e[f],u===null?e[f]=[n]:u.push(n),n.lane=l|536870912),d):null}function Ja(e){if(50<Ji)throw Ji=0,dc=null,Error(a(185));for(var n=e.return;n!==null;)e=n,n=e.return;return e.tag===3?e.stateNode:null}var Ar={};function wv(e,n,l,u){this.tag=e,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=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Qt(e,n,l,u){return new wv(e,n,l,u)}function rs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Bn(e,n){var l=e.alternate;return l===null?(l=Qt(e.tag,n,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=n,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,n=e.dependencies,l.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Cm(e,n){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,n=l.dependencies,e.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function Pa(e,n,l,u,f,d){var x=0;if(u=e,typeof e=="function")rs(e)&&(x=1);else if(typeof e=="string")x=N1(e,l,$.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Qt(31,l,n,f),e.elementType=ae,e.lanes=d,e;case A:return Vl(l.children,f,d,n);case j:x=8,f|=24;break;case N:return e=Qt(12,l,n,f|2),e.elementType=N,e.lanes=d,e;case ee:return e=Qt(13,l,n,f),e.elementType=ee,e.lanes=d,e;case _:return e=Qt(19,l,n,f),e.elementType=_,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:x=10;break e;case L:x=9;break e;case W:x=11;break e;case X:x=14;break e;case Y:x=16,u=null;break e}x=29,l=Error(a(130,e===null?"null":typeof e,"")),u=null}return n=Qt(x,l,n,f),n.elementType=e,n.type=u,n.lanes=d,n}function Vl(e,n,l,u){return e=Qt(7,e,u,n),e.lanes=l,e}function is(e,n,l){return e=Qt(6,e,null,n),e.lanes=l,e}function Tm(e){var n=Qt(18,null,null,0);return n.stateNode=e,n}function as(e,n,l){return n=Qt(4,e.children!==null?e.children:[],e.key,n),n.lanes=l,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}var Am=new WeakMap;function rn(e,n){if(typeof e=="object"&&e!==null){var l=Am.get(e);return l!==void 0?l:(n={value:e,source:n,stack:Da(n)},Am.set(e,n),n)}return{value:e,source:n,stack:Da(n)}}var Nr=[],zr=0,$a=null,zi=0,an=[],un=0,ol=null,wn=1,En="";function Hn(e,n){Nr[zr++]=zi,Nr[zr++]=$a,$a=e,zi=n}function Nm(e,n,l){an[un++]=wn,an[un++]=En,an[un++]=ol,ol=e;var u=wn;e=En;var f=32-Qe(u)-1;u&=~(1<<f),l+=1;var d=32-Qe(n)+f;if(30<d){var x=f-f%5;d=(u&(1<<x)-1).toString(32),u>>=x,f-=x,wn=1<<32-Qe(n)+f|l<<f|u,En=d+e}else wn=1<<d|l<<f|u,En=e}function us(e){e.return!==null&&(Hn(e,1),Nm(e,1,0))}function os(e){for(;e===$a;)$a=Nr[--zr],Nr[zr]=null,zi=Nr[--zr],Nr[zr]=null;for(;e===ol;)ol=an[--un],an[un]=null,En=an[--un],an[un]=null,wn=an[--un],an[un]=null}function zm(e,n){an[un++]=wn,an[un++]=En,an[un++]=ol,wn=n.id,En=n.overflow,ol=e}var xt=null,Pe=null,Re=!1,sl=null,on=!1,ss=Error(a(519));function cl(e){var n=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ji(rn(n,e)),ss}function jm(e){var n=e.stateNode,l=e.type,u=e.memoizedProps;switch(n[bt]=e,n[Rt]=u,l){case"dialog":Me("cancel",n),Me("close",n);break;case"iframe":case"object":case"embed":Me("load",n);break;case"video":case"audio":for(l=0;l<$i.length;l++)Me($i[l],n);break;case"source":Me("error",n);break;case"img":case"image":case"link":Me("error",n),Me("load",n);break;case"details":Me("toggle",n);break;case"input":Me("invalid",n),Gd(n,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Me("invalid",n);break;case"textarea":Me("invalid",n),Id(n,u.value,u.defaultValue,u.children)}l=u.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||n.textContent===""+l||u.suppressHydrationWarning===!0||Qp(n.textContent,l)?(u.popover!=null&&(Me("beforetoggle",n),Me("toggle",n)),u.onScroll!=null&&Me("scroll",n),u.onScrollEnd!=null&&Me("scrollend",n),u.onClick!=null&&(n.onclick=Ln),n=!0):n=!1,n||cl(e,!0)}function Mm(e){for(xt=e.return;xt;)switch(xt.tag){case 5:case 31:case 13:on=!1;return;case 27:case 3:on=!0;return;default:xt=xt.return}}function jr(e){if(e!==xt)return!1;if(!Re)return Mm(e),Re=!0,!1;var n=e.tag,l;if((l=n!==3&&n!==27)&&((l=n===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ac(e.type,e.memoizedProps)),l=!l),l&&Pe&&cl(e),Mm(e),n===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Pe=ng(e)}else if(n===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));Pe=ng(e)}else n===27?(n=Pe,El(e.type)?(e=Dc,Dc=null,Pe=e):Pe=n):Pe=xt?cn(e.stateNode.nextSibling):null;return!0}function Yl(){Pe=xt=null,Re=!1}function cs(){var e=sl;return e!==null&&(qt===null?qt=e:qt.push.apply(qt,e),sl=null),e}function ji(e){sl===null?sl=[e]:sl.push(e)}var fs=D(null),Gl=null,qn=null;function fl(e,n,l){C(fs,n._currentValue),n._currentValue=l}function Vn(e){e._currentValue=fs.current,M(fs)}function ds(e,n,l){for(;e!==null;){var u=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,u!==null&&(u.childLanes|=n)):u!==null&&(u.childLanes&n)!==n&&(u.childLanes|=n),e===l)break;e=e.return}}function ms(e,n,l,u){var f=e.child;for(f!==null&&(f.return=e);f!==null;){var d=f.dependencies;if(d!==null){var x=f.child;d=d.firstContext;e:for(;d!==null;){var w=d;d=f;for(var z=0;z<n.length;z++)if(w.context===n[z]){d.lanes|=l,w=d.alternate,w!==null&&(w.lanes|=l),ds(d.return,l,e),u||(x=null);break e}d=w.next}}else if(f.tag===18){if(x=f.return,x===null)throw Error(a(341));x.lanes|=l,d=x.alternate,d!==null&&(d.lanes|=l),ds(x,l,e),x=null}else x=f.child;if(x!==null)x.return=f;else for(x=f;x!==null;){if(x===e){x=null;break}if(f=x.sibling,f!==null){f.return=x.return,x=f;break}x=x.return}f=x}}function Mr(e,n,l,u){e=null;for(var f=n,d=!1;f!==null;){if(!d){if((f.flags&524288)!==0)d=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var x=f.alternate;if(x===null)throw Error(a(387));if(x=x.memoizedProps,x!==null){var w=f.type;Xt(f.pendingProps.value,x.value)||(e!==null?e.push(w):e=[w])}}else if(f===me.current){if(x=f.alternate,x===null)throw Error(a(387));x.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(e!==null?e.push(la):e=[la])}f=f.return}e!==null&&ms(n,e,l,u),n.flags|=262144}function Wa(e){for(e=e.firstContext;e!==null;){if(!Xt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Fl(e){Gl=e,qn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Dm(Gl,e)}function eu(e,n){return Gl===null&&Fl(e),Dm(e,n)}function Dm(e,n){var l=n._currentValue;if(n={context:n,memoizedValue:l,next:null},qn===null){if(e===null)throw Error(a(308));qn=n,e.dependencies={lanes:0,firstContext:n},e.flags|=524288}else qn=qn.next=n;return l}var Ev=typeof AbortController<"u"?AbortController:function(){var e=[],n=this.signal={aborted:!1,addEventListener:function(l,u){e.push(u)}};this.abort=function(){n.aborted=!0,e.forEach(function(l){return l()})}},Cv=t.unstable_scheduleCallback,Tv=t.unstable_NormalPriority,ut={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hs(){return{controller:new Ev,data:new Map,refCount:0}}function Mi(e){e.refCount--,e.refCount===0&&Cv(Tv,function(){e.controller.abort()})}var Di=null,ps=0,Dr=0,Or=null;function Av(e,n){if(Di===null){var l=Di=[];ps=0,Dr=bc(),Or={status:"pending",value:void 0,then:function(u){l.push(u)}}}return ps++,n.then(Om,Om),n}function Om(){if(--ps===0&&Di!==null){Or!==null&&(Or.status="fulfilled");var e=Di;Di=null,Dr=0,Or=null;for(var n=0;n<e.length;n++)(0,e[n])()}}function Nv(e,n){var l=[],u={status:"pending",value:null,reason:null,then:function(f){l.push(f)}};return e.then(function(){u.status="fulfilled",u.value=n;for(var f=0;f<l.length;f++)(0,l[f])(n)},function(f){for(u.status="rejected",u.reason=f,f=0;f<l.length;f++)(0,l[f])(void 0)}),u}var _m=H.S;H.S=function(e,n){yp=At(),typeof n=="object"&&n!==null&&typeof n.then=="function"&&Av(e,n),_m!==null&&_m(e,n)};var Il=D(null);function gs(){var e=Il.current;return e!==null?e:Ze.pooledCache}function tu(e,n){n===null?C(Il,Il.current):C(Il,n.pool)}function Rm(){var e=gs();return e===null?null:{parent:ut._currentValue,pool:e}}var _r=Error(a(460)),ys=Error(a(474)),nu=Error(a(542)),lu={then:function(){}};function Lm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Um(e,n,l){switch(l=e[l],l===void 0?e.push(n):l!==n&&(n.then(Ln,Ln),n=l),n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Hm(e),e;default:if(typeof n.status=="string")n.then(Ln,Ln);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=n,e.status="pending",e.then(function(u){if(n.status==="pending"){var f=n;f.status="fulfilled",f.value=u}},function(u){if(n.status==="pending"){var f=n;f.status="rejected",f.reason=u}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw e=n.reason,Hm(e),e}throw Ql=n,_r}}function Xl(e){try{var n=e._init;return n(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ql=l,_r):l}}var Ql=null;function Bm(){if(Ql===null)throw Error(a(459));var e=Ql;return Ql=null,e}function Hm(e){if(e===_r||e===nu)throw Error(a(483))}var Rr=null,Oi=0;function ru(e){var n=Oi;return Oi+=1,Rr===null&&(Rr=[]),Um(Rr,e,n)}function _i(e,n){n=n.props.ref,e.ref=n!==void 0?n:null}function iu(e,n){throw n.$$typeof===v?Error(a(525)):(e=Object.prototype.toString.call(n),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e)))}function qm(e){function n(U,O){if(e){var q=U.deletions;q===null?(U.deletions=[O],U.flags|=16):q.push(O)}}function l(U,O){if(!e)return null;for(;O!==null;)n(U,O),O=O.sibling;return null}function u(U){for(var O=new Map;U!==null;)U.key!==null?O.set(U.key,U):O.set(U.index,U),U=U.sibling;return O}function f(U,O){return U=Bn(U,O),U.index=0,U.sibling=null,U}function d(U,O,q){return U.index=q,e?(q=U.alternate,q!==null?(q=q.index,q<O?(U.flags|=67108866,O):q):(U.flags|=67108866,O)):(U.flags|=1048576,O)}function x(U){return e&&U.alternate===null&&(U.flags|=67108866),U}function w(U,O,q,Z){return O===null||O.tag!==6?(O=is(q,U.mode,Z),O.return=U,O):(O=f(O,q),O.return=U,O)}function z(U,O,q,Z){var be=q.type;return be===A?I(U,O,q.props.children,Z,q.key):O!==null&&(O.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===Y&&Xl(be)===O.type)?(O=f(O,q.props),_i(O,q),O.return=U,O):(O=Pa(q.type,q.key,q.props,null,U.mode,Z),_i(O,q),O.return=U,O)}function V(U,O,q,Z){return O===null||O.tag!==4||O.stateNode.containerInfo!==q.containerInfo||O.stateNode.implementation!==q.implementation?(O=as(q,U.mode,Z),O.return=U,O):(O=f(O,q.children||[]),O.return=U,O)}function I(U,O,q,Z,be){return O===null||O.tag!==7?(O=Vl(q,U.mode,Z,be),O.return=U,O):(O=f(O,q),O.return=U,O)}function J(U,O,q){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=is(""+O,U.mode,q),O.return=U,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return q=Pa(O.type,O.key,O.props,null,U.mode,q),_i(q,O),q.return=U,q;case E:return O=as(O,U.mode,q),O.return=U,O;case Y:return O=Xl(O),J(U,O,q)}if(ne(O)||P(O))return O=Vl(O,U.mode,q,null),O.return=U,O;if(typeof O.then=="function")return J(U,ru(O),q);if(O.$$typeof===R)return J(U,eu(U,O),q);iu(U,O)}return null}function G(U,O,q,Z){var be=O!==null?O.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return be!==null?null:w(U,O,""+q,Z);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case S:return q.key===be?z(U,O,q,Z):null;case E:return q.key===be?V(U,O,q,Z):null;case Y:return q=Xl(q),G(U,O,q,Z)}if(ne(q)||P(q))return be!==null?null:I(U,O,q,Z,null);if(typeof q.then=="function")return G(U,O,ru(q),Z);if(q.$$typeof===R)return G(U,O,eu(U,q),Z);iu(U,q)}return null}function F(U,O,q,Z,be){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return U=U.get(q)||null,w(O,U,""+Z,be);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case S:return U=U.get(Z.key===null?q:Z.key)||null,z(O,U,Z,be);case E:return U=U.get(Z.key===null?q:Z.key)||null,V(O,U,Z,be);case Y:return Z=Xl(Z),F(U,O,q,Z,be)}if(ne(Z)||P(Z))return U=U.get(q)||null,I(O,U,Z,be,null);if(typeof Z.then=="function")return F(U,O,q,ru(Z),be);if(Z.$$typeof===R)return F(U,O,q,eu(O,Z),be);iu(O,Z)}return null}function he(U,O,q,Z){for(var be=null,Ue=null,ye=O,Ae=O=0,_e=null;ye!==null&&Ae<q.length;Ae++){ye.index>Ae?(_e=ye,ye=null):_e=ye.sibling;var Be=G(U,ye,q[Ae],Z);if(Be===null){ye===null&&(ye=_e);break}e&&ye&&Be.alternate===null&&n(U,ye),O=d(Be,O,Ae),Ue===null?be=Be:Ue.sibling=Be,Ue=Be,ye=_e}if(Ae===q.length)return l(U,ye),Re&&Hn(U,Ae),be;if(ye===null){for(;Ae<q.length;Ae++)ye=J(U,q[Ae],Z),ye!==null&&(O=d(ye,O,Ae),Ue===null?be=ye:Ue.sibling=ye,Ue=ye);return Re&&Hn(U,Ae),be}for(ye=u(ye);Ae<q.length;Ae++)_e=F(ye,U,Ae,q[Ae],Z),_e!==null&&(e&&_e.alternate!==null&&ye.delete(_e.key===null?Ae:_e.key),O=d(_e,O,Ae),Ue===null?be=_e:Ue.sibling=_e,Ue=_e);return e&&ye.forEach(function(zl){return n(U,zl)}),Re&&Hn(U,Ae),be}function ve(U,O,q,Z){if(q==null)throw Error(a(151));for(var be=null,Ue=null,ye=O,Ae=O=0,_e=null,Be=q.next();ye!==null&&!Be.done;Ae++,Be=q.next()){ye.index>Ae?(_e=ye,ye=null):_e=ye.sibling;var zl=G(U,ye,Be.value,Z);if(zl===null){ye===null&&(ye=_e);break}e&&ye&&zl.alternate===null&&n(U,ye),O=d(zl,O,Ae),Ue===null?be=zl:Ue.sibling=zl,Ue=zl,ye=_e}if(Be.done)return l(U,ye),Re&&Hn(U,Ae),be;if(ye===null){for(;!Be.done;Ae++,Be=q.next())Be=J(U,Be.value,Z),Be!==null&&(O=d(Be,O,Ae),Ue===null?be=Be:Ue.sibling=Be,Ue=Be);return Re&&Hn(U,Ae),be}for(ye=u(ye);!Be.done;Ae++,Be=q.next())Be=F(ye,U,Ae,Be.value,Z),Be!==null&&(e&&Be.alternate!==null&&ye.delete(Be.key===null?Ae:Be.key),O=d(Be,O,Ae),Ue===null?be=Be:Ue.sibling=Be,Ue=Be);return e&&ye.forEach(function(H1){return n(U,H1)}),Re&&Hn(U,Ae),be}function Xe(U,O,q,Z){if(typeof q=="object"&&q!==null&&q.type===A&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case S:e:{for(var be=q.key;O!==null;){if(O.key===be){if(be=q.type,be===A){if(O.tag===7){l(U,O.sibling),Z=f(O,q.props.children),Z.return=U,U=Z;break e}}else if(O.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===Y&&Xl(be)===O.type){l(U,O.sibling),Z=f(O,q.props),_i(Z,q),Z.return=U,U=Z;break e}l(U,O);break}else n(U,O);O=O.sibling}q.type===A?(Z=Vl(q.props.children,U.mode,Z,q.key),Z.return=U,U=Z):(Z=Pa(q.type,q.key,q.props,null,U.mode,Z),_i(Z,q),Z.return=U,U=Z)}return x(U);case E:e:{for(be=q.key;O!==null;){if(O.key===be)if(O.tag===4&&O.stateNode.containerInfo===q.containerInfo&&O.stateNode.implementation===q.implementation){l(U,O.sibling),Z=f(O,q.children||[]),Z.return=U,U=Z;break e}else{l(U,O);break}else n(U,O);O=O.sibling}Z=as(q,U.mode,Z),Z.return=U,U=Z}return x(U);case Y:return q=Xl(q),Xe(U,O,q,Z)}if(ne(q))return he(U,O,q,Z);if(P(q)){if(be=P(q),typeof be!="function")throw Error(a(150));return q=be.call(q),ve(U,O,q,Z)}if(typeof q.then=="function")return Xe(U,O,ru(q),Z);if(q.$$typeof===R)return Xe(U,O,eu(U,q),Z);iu(U,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,O!==null&&O.tag===6?(l(U,O.sibling),Z=f(O,q),Z.return=U,U=Z):(l(U,O),Z=is(q,U.mode,Z),Z.return=U,U=Z),x(U)):l(U,O)}return function(U,O,q,Z){try{Oi=0;var be=Xe(U,O,q,Z);return Rr=null,be}catch(ye){if(ye===_r||ye===nu)throw ye;var Ue=Qt(29,ye,null,U.mode);return Ue.lanes=Z,Ue.return=U,Ue}finally{}}}var Zl=qm(!0),Vm=qm(!1),dl=!1;function bs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xs(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ml(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function hl(e,n,l){var u=e.updateQueue;if(u===null)return null;if(u=u.shared,(qe&2)!==0){var f=u.pending;return f===null?n.next=n:(n.next=f.next,f.next=n),u.pending=n,n=Ja(e),Em(e,null,l),n}return Ka(e,u,n,l),Ja(e)}function Ri(e,n,l){if(n=n.updateQueue,n!==null&&(n=n.shared,(l&4194048)!==0)){var u=n.lanes;u&=e.pendingLanes,l|=u,n.lanes=l,Dd(e,l)}}function vs(e,n){var l=e.updateQueue,u=e.alternate;if(u!==null&&(u=u.updateQueue,l===u)){var f=null,d=null;if(l=l.firstBaseUpdate,l!==null){do{var x={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};d===null?f=d=x:d=d.next=x,l=l.next}while(l!==null);d===null?f=d=n:d=d.next=n}else f=d=n;l={baseState:u.baseState,firstBaseUpdate:f,lastBaseUpdate:d,shared:u.shared,callbacks:u.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=n:e.next=n,l.lastBaseUpdate=n}var Ss=!1;function Li(){if(Ss){var e=Or;if(e!==null)throw e}}function Ui(e,n,l,u){Ss=!1;var f=e.updateQueue;dl=!1;var d=f.firstBaseUpdate,x=f.lastBaseUpdate,w=f.shared.pending;if(w!==null){f.shared.pending=null;var z=w,V=z.next;z.next=null,x===null?d=V:x.next=V,x=z;var I=e.alternate;I!==null&&(I=I.updateQueue,w=I.lastBaseUpdate,w!==x&&(w===null?I.firstBaseUpdate=V:w.next=V,I.lastBaseUpdate=z))}if(d!==null){var J=f.baseState;x=0,I=V=z=null,w=d;do{var G=w.lane&-536870913,F=G!==w.lane;if(F?(Oe&G)===G:(u&G)===G){G!==0&&G===Dr&&(Ss=!0),I!==null&&(I=I.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var he=e,ve=w;G=n;var Xe=l;switch(ve.tag){case 1:if(he=ve.payload,typeof he=="function"){J=he.call(Xe,J,G);break e}J=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=ve.payload,G=typeof he=="function"?he.call(Xe,J,G):he,G==null)break e;J=g({},J,G);break e;case 2:dl=!0}}G=w.callback,G!==null&&(e.flags|=64,F&&(e.flags|=8192),F=f.callbacks,F===null?f.callbacks=[G]:F.push(G))}else F={lane:G,tag:w.tag,payload:w.payload,callback:w.callback,next:null},I===null?(V=I=F,z=J):I=I.next=F,x|=G;if(w=w.next,w===null){if(w=f.shared.pending,w===null)break;F=w,w=F.next,F.next=null,f.lastBaseUpdate=F,f.shared.pending=null}}while(!0);I===null&&(z=J),f.baseState=z,f.firstBaseUpdate=V,f.lastBaseUpdate=I,d===null&&(f.shared.lanes=0),xl|=x,e.lanes=x,e.memoizedState=J}}function Ym(e,n){if(typeof e!="function")throw Error(a(191,e));e.call(n)}function Gm(e,n){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Ym(l[e],n)}var Lr=D(null),au=D(0);function Fm(e,n){e=Jn,C(au,e),C(Lr,n),Jn=e|n.baseLanes}function ks(){C(au,Jn),C(Lr,Lr.current)}function ws(){Jn=au.current,M(Lr),M(au)}var Zt=D(null),sn=null;function pl(e){var n=e.alternate;C(lt,lt.current&1),C(Zt,e),sn===null&&(n===null||Lr.current!==null||n.memoizedState!==null)&&(sn=e)}function Es(e){C(lt,lt.current),C(Zt,e),sn===null&&(sn=e)}function Im(e){e.tag===22?(C(lt,lt.current),C(Zt,e),sn===null&&(sn=e)):gl()}function gl(){C(lt,lt.current),C(Zt,Zt.current)}function Kt(e){M(Zt),sn===e&&(sn=null),M(lt)}var lt=D(0);function uu(e){for(var n=e;n!==null;){if(n.tag===13){var l=n.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||jc(l)||Mc(l)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Yn=0,Ce=null,Fe=null,ot=null,ou=!1,Ur=!1,Kl=!1,su=0,Bi=0,Br=null,zv=0;function tt(){throw Error(a(321))}function Cs(e,n){if(n===null)return!1;for(var l=0;l<n.length&&l<e.length;l++)if(!Xt(e[l],n[l]))return!1;return!0}function Ts(e,n,l,u,f,d){return Yn=d,Ce=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,H.H=e===null||e.memoizedState===null?Nh:Vs,Kl=!1,d=l(u,f),Kl=!1,Ur&&(d=Qm(n,l,u,f)),Xm(e),d}function Xm(e){H.H=Vi;var n=Fe!==null&&Fe.next!==null;if(Yn=0,ot=Fe=Ce=null,ou=!1,Bi=0,Br=null,n)throw Error(a(300));e===null||st||(e=e.dependencies,e!==null&&Wa(e)&&(st=!0))}function Qm(e,n,l,u){Ce=e;var f=0;do{if(Ur&&(Br=null),Bi=0,Ur=!1,25<=f)throw Error(a(301));if(f+=1,ot=Fe=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}H.H=zh,d=n(l,u)}while(Ur);return d}function jv(){var e=H.H,n=e.useState()[0];return n=typeof n.then=="function"?Hi(n):n,e=e.useState()[0],(Fe!==null?Fe.memoizedState:null)!==e&&(Ce.flags|=1024),n}function As(){var e=su!==0;return su=0,e}function Ns(e,n,l){n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l}function zs(e){if(ou){for(e=e.memoizedState;e!==null;){var n=e.queue;n!==null&&(n.pending=null),e=e.next}ou=!1}Yn=0,ot=Fe=Ce=null,Ur=!1,Bi=su=0,Br=null}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ot===null?Ce.memoizedState=ot=e:ot=ot.next=e,ot}function rt(){if(Fe===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var n=ot===null?Ce.memoizedState:ot.next;if(n!==null)ot=n,Fe=e;else{if(e===null)throw Ce.alternate===null?Error(a(467)):Error(a(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},ot===null?Ce.memoizedState=ot=e:ot=ot.next=e}return ot}function cu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Hi(e){var n=Bi;return Bi+=1,Br===null&&(Br=[]),e=Um(Br,e,n),n=Ce,(ot===null?n.memoizedState:ot.next)===null&&(n=n.alternate,H.H=n===null||n.memoizedState===null?Nh:Vs),e}function fu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Hi(e);if(e.$$typeof===R)return vt(e)}throw Error(a(438,String(e)))}function js(e){var n=null,l=Ce.updateQueue;if(l!==null&&(n=l.memoCache),n==null){var u=Ce.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(n={data:u.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),l===null&&(l=cu(),Ce.updateQueue=l),l.memoCache=n,l=n.data[n.index],l===void 0)for(l=n.data[n.index]=Array(e),u=0;u<e;u++)l[u]=B;return n.index++,l}function Gn(e,n){return typeof n=="function"?n(e):n}function du(e){var n=rt();return Ms(n,Fe,e)}function Ms(e,n,l){var u=e.queue;if(u===null)throw Error(a(311));u.lastRenderedReducer=l;var f=e.baseQueue,d=u.pending;if(d!==null){if(f!==null){var x=f.next;f.next=d.next,d.next=x}n.baseQueue=f=d,u.pending=null}if(d=e.baseState,f===null)e.memoizedState=d;else{n=f.next;var w=x=null,z=null,V=n,I=!1;do{var J=V.lane&-536870913;if(J!==V.lane?(Oe&J)===J:(Yn&J)===J){var G=V.revertLane;if(G===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),J===Dr&&(I=!0);else if((Yn&G)===G){V=V.next,G===Dr&&(I=!0);continue}else J={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},z===null?(w=z=J,x=d):z=z.next=J,Ce.lanes|=G,xl|=G;J=V.action,Kl&&l(d,J),d=V.hasEagerState?V.eagerState:l(d,J)}else G={lane:J,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},z===null?(w=z=G,x=d):z=z.next=G,Ce.lanes|=J,xl|=J;V=V.next}while(V!==null&&V!==n);if(z===null?x=d:z.next=w,!Xt(d,e.memoizedState)&&(st=!0,I&&(l=Or,l!==null)))throw l;e.memoizedState=d,e.baseState=x,e.baseQueue=z,u.lastRenderedState=d}return f===null&&(u.lanes=0),[e.memoizedState,u.dispatch]}function Ds(e){var n=rt(),l=n.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=e;var u=l.dispatch,f=l.pending,d=n.memoizedState;if(f!==null){l.pending=null;var x=f=f.next;do d=e(d,x.action),x=x.next;while(x!==f);Xt(d,n.memoizedState)||(st=!0),n.memoizedState=d,n.baseQueue===null&&(n.baseState=d),l.lastRenderedState=d}return[d,u]}function Zm(e,n,l){var u=Ce,f=rt(),d=Re;if(d){if(l===void 0)throw Error(a(407));l=l()}else l=n();var x=!Xt((Fe||f).memoizedState,l);if(x&&(f.memoizedState=l,st=!0),f=f.queue,Rs(Pm.bind(null,u,f,e),[e]),f.getSnapshot!==n||x||ot!==null&&ot.memoizedState.tag&1){if(u.flags|=2048,Hr(9,{destroy:void 0},Jm.bind(null,u,f,l,n),null),Ze===null)throw Error(a(349));d||(Yn&127)!==0||Km(u,n,l)}return l}function Km(e,n,l){e.flags|=16384,e={getSnapshot:n,value:l},n=Ce.updateQueue,n===null?(n=cu(),Ce.updateQueue=n,n.stores=[e]):(l=n.stores,l===null?n.stores=[e]:l.push(e))}function Jm(e,n,l,u){n.value=l,n.getSnapshot=u,$m(n)&&Wm(e)}function Pm(e,n,l){return l(function(){$m(n)&&Wm(e)})}function $m(e){var n=e.getSnapshot;e=e.value;try{var l=n();return!Xt(e,l)}catch{return!0}}function Wm(e){var n=ql(e,2);n!==null&&Vt(n,e,2)}function Os(e){var n=zt();if(typeof e=="function"){var l=e;if(e=l(),Kl){_t(!0);try{l()}finally{_t(!1)}}}return n.memoizedState=n.baseState=e,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:e},n}function eh(e,n,l,u){return e.baseState=l,Ms(e,Fe,typeof u=="function"?u:Gn)}function Mv(e,n,l,u,f){if(pu(e))throw Error(a(485));if(e=n.action,e!==null){var d={payload:f,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){d.listeners.push(x)}};H.T!==null?l(!0):d.isTransition=!1,u(d),l=n.pending,l===null?(d.next=n.pending=d,th(n,d)):(d.next=l.next,n.pending=l.next=d)}}function th(e,n){var l=n.action,u=n.payload,f=e.state;if(n.isTransition){var d=H.T,x={};H.T=x;try{var w=l(f,u),z=H.S;z!==null&&z(x,w),nh(e,n,w)}catch(V){_s(e,n,V)}finally{d!==null&&x.types!==null&&(d.types=x.types),H.T=d}}else try{d=l(f,u),nh(e,n,d)}catch(V){_s(e,n,V)}}function nh(e,n,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(u){lh(e,n,u)},function(u){return _s(e,n,u)}):lh(e,n,l)}function lh(e,n,l){n.status="fulfilled",n.value=l,rh(n),e.state=l,n=e.pending,n!==null&&(l=n.next,l===n?e.pending=null:(l=l.next,n.next=l,th(e,l)))}function _s(e,n,l){var u=e.pending;if(e.pending=null,u!==null){u=u.next;do n.status="rejected",n.reason=l,rh(n),n=n.next;while(n!==u)}e.action=null}function rh(e){e=e.listeners;for(var n=0;n<e.length;n++)(0,e[n])()}function ih(e,n){return n}function ah(e,n){if(Re){var l=Ze.formState;if(l!==null){e:{var u=Ce;if(Re){if(Pe){t:{for(var f=Pe,d=on;f.nodeType!==8;){if(!d){f=null;break t}if(f=cn(f.nextSibling),f===null){f=null;break t}}d=f.data,f=d==="F!"||d==="F"?f:null}if(f){Pe=cn(f.nextSibling),u=f.data==="F!";break e}}cl(u)}u=!1}u&&(n=l[0])}}return l=zt(),l.memoizedState=l.baseState=n,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ih,lastRenderedState:n},l.queue=u,l=Ch.bind(null,Ce,u),u.dispatch=l,u=Os(!1),d=qs.bind(null,Ce,!1,u.queue),u=zt(),f={state:n,dispatch:null,action:e,pending:null},u.queue=f,l=Mv.bind(null,Ce,f,d,l),f.dispatch=l,u.memoizedState=e,[n,l,!1]}function uh(e){var n=rt();return oh(n,Fe,e)}function oh(e,n,l){if(n=Ms(e,n,ih)[0],e=du(Gn)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var u=Hi(n)}catch(x){throw x===_r?nu:x}else u=n;n=rt();var f=n.queue,d=f.dispatch;return l!==n.memoizedState&&(Ce.flags|=2048,Hr(9,{destroy:void 0},Dv.bind(null,f,l),null)),[u,d,e]}function Dv(e,n){e.action=n}function sh(e){var n=rt(),l=Fe;if(l!==null)return oh(n,l,e);rt(),n=n.memoizedState,l=rt();var u=l.queue.dispatch;return l.memoizedState=e,[n,u,!1]}function Hr(e,n,l,u){return e={tag:e,create:l,deps:u,inst:n,next:null},n=Ce.updateQueue,n===null&&(n=cu(),Ce.updateQueue=n),l=n.lastEffect,l===null?n.lastEffect=e.next=e:(u=l.next,l.next=e,e.next=u,n.lastEffect=e),e}function ch(){return rt().memoizedState}function mu(e,n,l,u){var f=zt();Ce.flags|=e,f.memoizedState=Hr(1|n,{destroy:void 0},l,u===void 0?null:u)}function hu(e,n,l,u){var f=rt();u=u===void 0?null:u;var d=f.memoizedState.inst;Fe!==null&&u!==null&&Cs(u,Fe.memoizedState.deps)?f.memoizedState=Hr(n,d,l,u):(Ce.flags|=e,f.memoizedState=Hr(1|n,d,l,u))}function fh(e,n){mu(8390656,8,e,n)}function Rs(e,n){hu(2048,8,e,n)}function Ov(e){Ce.flags|=4;var n=Ce.updateQueue;if(n===null)n=cu(),Ce.updateQueue=n,n.events=[e];else{var l=n.events;l===null?n.events=[e]:l.push(e)}}function dh(e){var n=rt().memoizedState;return Ov({ref:n,nextImpl:e}),function(){if((qe&2)!==0)throw Error(a(440));return n.impl.apply(void 0,arguments)}}function mh(e,n){return hu(4,2,e,n)}function hh(e,n){return hu(4,4,e,n)}function ph(e,n){if(typeof n=="function"){e=e();var l=n(e);return function(){typeof l=="function"?l():n(null)}}if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function gh(e,n,l){l=l!=null?l.concat([e]):null,hu(4,4,ph.bind(null,n,e),l)}function Ls(){}function yh(e,n){var l=rt();n=n===void 0?null:n;var u=l.memoizedState;return n!==null&&Cs(n,u[1])?u[0]:(l.memoizedState=[e,n],e)}function bh(e,n){var l=rt();n=n===void 0?null:n;var u=l.memoizedState;if(n!==null&&Cs(n,u[1]))return u[0];if(u=e(),Kl){_t(!0);try{e()}finally{_t(!1)}}return l.memoizedState=[u,n],u}function Us(e,n,l){return l===void 0||(Yn&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=n:(e.memoizedState=l,e=xp(),Ce.lanes|=e,xl|=e,l)}function xh(e,n,l,u){return Xt(l,n)?l:Lr.current!==null?(e=Us(e,l,u),Xt(e,n)||(st=!0),e):(Yn&42)===0||(Yn&1073741824)!==0&&(Oe&261930)===0?(st=!0,e.memoizedState=l):(e=xp(),Ce.lanes|=e,xl|=e,n)}function vh(e,n,l,u,f){var d=te.p;te.p=d!==0&&8>d?d:8;var x=H.T,w={};H.T=w,qs(e,!1,n,l);try{var z=f(),V=H.S;if(V!==null&&V(w,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var I=Nv(z,u);qi(e,n,I,$t(e))}else qi(e,n,u,$t(e))}catch(J){qi(e,n,{then:function(){},status:"rejected",reason:J},$t())}finally{te.p=d,x!==null&&w.types!==null&&(x.types=w.types),H.T=x}}function _v(){}function Bs(e,n,l,u){if(e.tag!==5)throw Error(a(476));var f=Sh(e).queue;vh(e,f,n,ce,l===null?_v:function(){return kh(e),l(u)})}function Sh(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:ce},next:null};var l={};return n.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gn,lastRenderedState:l},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function kh(e){var n=Sh(e);n.next===null&&(n=e.alternate.memoizedState),qi(e,n.next.queue,{},$t())}function Hs(){return vt(la)}function wh(){return rt().memoizedState}function Eh(){return rt().memoizedState}function Rv(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var l=$t();e=ml(l);var u=hl(n,e,l);u!==null&&(Vt(u,n,l),Ri(u,n,l)),n={cache:hs()},e.payload=n;return}n=n.return}}function Lv(e,n,l){var u=$t();l={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},pu(e)?Th(n,l):(l=ls(e,n,l,u),l!==null&&(Vt(l,e,u),Ah(l,n,u)))}function Ch(e,n,l){var u=$t();qi(e,n,l,u)}function qi(e,n,l,u){var f={lane:u,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(pu(e))Th(n,f);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=n.lastRenderedReducer,d!==null))try{var x=n.lastRenderedState,w=d(x,l);if(f.hasEagerState=!0,f.eagerState=w,Xt(w,x))return Ka(e,n,f,0),Ze===null&&Za(),!1}catch{}finally{}if(l=ls(e,n,f,u),l!==null)return Vt(l,e,u),Ah(l,n,u),!0}return!1}function qs(e,n,l,u){if(u={lane:2,revertLane:bc(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},pu(e)){if(n)throw Error(a(479))}else n=ls(e,l,u,2),n!==null&&Vt(n,e,2)}function pu(e){var n=e.alternate;return e===Ce||n!==null&&n===Ce}function Th(e,n){Ur=ou=!0;var l=e.pending;l===null?n.next=n:(n.next=l.next,l.next=n),e.pending=n}function Ah(e,n,l){if((l&4194048)!==0){var u=n.lanes;u&=e.pendingLanes,l|=u,n.lanes=l,Dd(e,l)}}var Vi={readContext:vt,use:fu,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};Vi.useEffectEvent=tt;var Nh={readContext:vt,use:fu,useCallback:function(e,n){return zt().memoizedState=[e,n===void 0?null:n],e},useContext:vt,useEffect:fh,useImperativeHandle:function(e,n,l){l=l!=null?l.concat([e]):null,mu(4194308,4,ph.bind(null,n,e),l)},useLayoutEffect:function(e,n){return mu(4194308,4,e,n)},useInsertionEffect:function(e,n){mu(4,2,e,n)},useMemo:function(e,n){var l=zt();n=n===void 0?null:n;var u=e();if(Kl){_t(!0);try{e()}finally{_t(!1)}}return l.memoizedState=[u,n],u},useReducer:function(e,n,l){var u=zt();if(l!==void 0){var f=l(n);if(Kl){_t(!0);try{l(n)}finally{_t(!1)}}}else f=n;return u.memoizedState=u.baseState=f,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:f},u.queue=e,e=e.dispatch=Lv.bind(null,Ce,e),[u.memoizedState,e]},useRef:function(e){var n=zt();return e={current:e},n.memoizedState=e},useState:function(e){e=Os(e);var n=e.queue,l=Ch.bind(null,Ce,n);return n.dispatch=l,[e.memoizedState,l]},useDebugValue:Ls,useDeferredValue:function(e,n){var l=zt();return Us(l,e,n)},useTransition:function(){var e=Os(!1);return e=vh.bind(null,Ce,e.queue,!0,!1),zt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,l){var u=Ce,f=zt();if(Re){if(l===void 0)throw Error(a(407));l=l()}else{if(l=n(),Ze===null)throw Error(a(349));(Oe&127)!==0||Km(u,n,l)}f.memoizedState=l;var d={value:l,getSnapshot:n};return f.queue=d,fh(Pm.bind(null,u,d,e),[e]),u.flags|=2048,Hr(9,{destroy:void 0},Jm.bind(null,u,d,l,n),null),l},useId:function(){var e=zt(),n=Ze.identifierPrefix;if(Re){var l=En,u=wn;l=(u&~(1<<32-Qe(u)-1)).toString(32)+l,n="_"+n+"R_"+l,l=su++,0<l&&(n+="H"+l.toString(32)),n+="_"}else l=zv++,n="_"+n+"r_"+l.toString(32)+"_";return e.memoizedState=n},useHostTransitionStatus:Hs,useFormState:ah,useActionState:ah,useOptimistic:function(e){var n=zt();n.memoizedState=n.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=l,n=qs.bind(null,Ce,!0,l),l.dispatch=n,[e,n]},useMemoCache:js,useCacheRefresh:function(){return zt().memoizedState=Rv.bind(null,Ce)},useEffectEvent:function(e){var n=zt(),l={impl:e};return n.memoizedState=l,function(){if((qe&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}},Vs={readContext:vt,use:fu,useCallback:yh,useContext:vt,useEffect:Rs,useImperativeHandle:gh,useInsertionEffect:mh,useLayoutEffect:hh,useMemo:bh,useReducer:du,useRef:ch,useState:function(){return du(Gn)},useDebugValue:Ls,useDeferredValue:function(e,n){var l=rt();return xh(l,Fe.memoizedState,e,n)},useTransition:function(){var e=du(Gn)[0],n=rt().memoizedState;return[typeof e=="boolean"?e:Hi(e),n]},useSyncExternalStore:Zm,useId:wh,useHostTransitionStatus:Hs,useFormState:uh,useActionState:uh,useOptimistic:function(e,n){var l=rt();return eh(l,Fe,e,n)},useMemoCache:js,useCacheRefresh:Eh};Vs.useEffectEvent=dh;var zh={readContext:vt,use:fu,useCallback:yh,useContext:vt,useEffect:Rs,useImperativeHandle:gh,useInsertionEffect:mh,useLayoutEffect:hh,useMemo:bh,useReducer:Ds,useRef:ch,useState:function(){return Ds(Gn)},useDebugValue:Ls,useDeferredValue:function(e,n){var l=rt();return Fe===null?Us(l,e,n):xh(l,Fe.memoizedState,e,n)},useTransition:function(){var e=Ds(Gn)[0],n=rt().memoizedState;return[typeof e=="boolean"?e:Hi(e),n]},useSyncExternalStore:Zm,useId:wh,useHostTransitionStatus:Hs,useFormState:sh,useActionState:sh,useOptimistic:function(e,n){var l=rt();return Fe!==null?eh(l,Fe,e,n):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:js,useCacheRefresh:Eh};zh.useEffectEvent=dh;function Ys(e,n,l,u){n=e.memoizedState,l=l(u,n),l=l==null?n:g({},n,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Gs={enqueueSetState:function(e,n,l){e=e._reactInternals;var u=$t(),f=ml(u);f.payload=n,l!=null&&(f.callback=l),n=hl(e,f,u),n!==null&&(Vt(n,e,u),Ri(n,e,u))},enqueueReplaceState:function(e,n,l){e=e._reactInternals;var u=$t(),f=ml(u);f.tag=1,f.payload=n,l!=null&&(f.callback=l),n=hl(e,f,u),n!==null&&(Vt(n,e,u),Ri(n,e,u))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var l=$t(),u=ml(l);u.tag=2,n!=null&&(u.callback=n),n=hl(e,u,l),n!==null&&(Vt(n,e,l),Ri(n,e,l))}};function jh(e,n,l,u,f,d,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(u,d,x):n.prototype&&n.prototype.isPureReactComponent?!Ai(l,u)||!Ai(f,d):!0}function Mh(e,n,l,u){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(l,u),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(l,u),n.state!==e&&Gs.enqueueReplaceState(n,n.state,null)}function Jl(e,n){var l=n;if("ref"in n){l={};for(var u in n)u!=="ref"&&(l[u]=n[u])}if(e=e.defaultProps){l===n&&(l=g({},l));for(var f in e)l[f]===void 0&&(l[f]=e[f])}return l}function Dh(e){Qa(e)}function Oh(e){console.error(e)}function _h(e){Qa(e)}function gu(e,n){try{var l=e.onUncaughtError;l(n.value,{componentStack:n.stack})}catch(u){setTimeout(function(){throw u})}}function Rh(e,n,l){try{var u=e.onCaughtError;u(l.value,{componentStack:l.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Fs(e,n,l){return l=ml(l),l.tag=3,l.payload={element:null},l.callback=function(){gu(e,n)},l}function Lh(e){return e=ml(e),e.tag=3,e}function Uh(e,n,l,u){var f=l.type.getDerivedStateFromError;if(typeof f=="function"){var d=u.value;e.payload=function(){return f(d)},e.callback=function(){Rh(n,l,u)}}var x=l.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Rh(n,l,u),typeof f!="function"&&(vl===null?vl=new Set([this]):vl.add(this));var w=u.stack;this.componentDidCatch(u.value,{componentStack:w!==null?w:""})})}function Uv(e,n,l,u,f){if(l.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(n=l.alternate,n!==null&&Mr(n,l,f,!0),l=Zt.current,l!==null){switch(l.tag){case 31:case 13:return sn===null?Nu():l.alternate===null&&nt===0&&(nt=3),l.flags&=-257,l.flags|=65536,l.lanes=f,u===lu?l.flags|=16384:(n=l.updateQueue,n===null?l.updateQueue=new Set([u]):n.add(u),pc(e,u,f)),!1;case 22:return l.flags|=65536,u===lu?l.flags|=16384:(n=l.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([u])},l.updateQueue=n):(l=n.retryQueue,l===null?n.retryQueue=new Set([u]):l.add(u)),pc(e,u,f)),!1}throw Error(a(435,l.tag))}return pc(e,u,f),Nu(),!1}if(Re)return n=Zt.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,u!==ss&&(e=Error(a(422),{cause:u}),ji(rn(e,l)))):(u!==ss&&(n=Error(a(423),{cause:u}),ji(rn(n,l))),e=e.current.alternate,e.flags|=65536,f&=-f,e.lanes|=f,u=rn(u,l),f=Fs(e.stateNode,u,f),vs(e,f),nt!==4&&(nt=2)),!1;var d=Error(a(520),{cause:u});if(d=rn(d,l),Ki===null?Ki=[d]:Ki.push(d),nt!==4&&(nt=2),n===null)return!0;u=rn(u,l),l=n;do{switch(l.tag){case 3:return l.flags|=65536,e=f&-f,l.lanes|=e,e=Fs(l.stateNode,u,e),vs(l,e),!1;case 1:if(n=l.type,d=l.stateNode,(l.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(vl===null||!vl.has(d))))return l.flags|=65536,f&=-f,l.lanes|=f,f=Lh(f),Uh(f,e,l,u),vs(l,f),!1}l=l.return}while(l!==null);return!1}var Is=Error(a(461)),st=!1;function St(e,n,l,u){n.child=e===null?Vm(n,null,l,u):Zl(n,e.child,l,u)}function Bh(e,n,l,u,f){l=l.render;var d=n.ref;if("ref"in u){var x={};for(var w in u)w!=="ref"&&(x[w]=u[w])}else x=u;return Fl(n),u=Ts(e,n,l,x,d,f),w=As(),e!==null&&!st?(Ns(e,n,f),Fn(e,n,f)):(Re&&w&&us(n),n.flags|=1,St(e,n,u,f),n.child)}function Hh(e,n,l,u,f){if(e===null){var d=l.type;return typeof d=="function"&&!rs(d)&&d.defaultProps===void 0&&l.compare===null?(n.tag=15,n.type=d,qh(e,n,d,u,f)):(e=Pa(l.type,null,u,n,n.mode,f),e.ref=n.ref,e.return=n,n.child=e)}if(d=e.child,!Ws(e,f)){var x=d.memoizedProps;if(l=l.compare,l=l!==null?l:Ai,l(x,u)&&e.ref===n.ref)return Fn(e,n,f)}return n.flags|=1,e=Bn(d,u),e.ref=n.ref,e.return=n,n.child=e}function qh(e,n,l,u,f){if(e!==null){var d=e.memoizedProps;if(Ai(d,u)&&e.ref===n.ref)if(st=!1,n.pendingProps=u=d,Ws(e,f))(e.flags&131072)!==0&&(st=!0);else return n.lanes=e.lanes,Fn(e,n,f)}return Xs(e,n,l,u,f)}function Vh(e,n,l,u){var f=u.children,d=e!==null?e.memoizedState:null;if(e===null&&n.stateNode===null&&(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((n.flags&128)!==0){if(d=d!==null?d.baseLanes|l:l,e!==null){for(u=n.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;u=f&~d}else u=0,n.child=null;return Yh(e,n,d,l,u)}if((l&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},e!==null&&tu(n,d!==null?d.cachePool:null),d!==null?Fm(n,d):ks(),Im(n);else return u=n.lanes=536870912,Yh(e,n,d!==null?d.baseLanes|l:l,l,u)}else d!==null?(tu(n,d.cachePool),Fm(n,d),gl(),n.memoizedState=null):(e!==null&&tu(n,null),ks(),gl());return St(e,n,f,l),n.child}function Yi(e,n){return e!==null&&e.tag===22||n.stateNode!==null||(n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function Yh(e,n,l,u,f){var d=gs();return d=d===null?null:{parent:ut._currentValue,pool:d},n.memoizedState={baseLanes:l,cachePool:d},e!==null&&tu(n,null),ks(),Im(n),e!==null&&Mr(e,n,u,!0),n.childLanes=f,null}function yu(e,n){return n=xu({mode:n.mode,children:n.children},e.mode),n.ref=e.ref,e.child=n,n.return=e,n}function Gh(e,n,l){return Zl(n,e.child,null,l),e=yu(n,n.pendingProps),e.flags|=2,Kt(n),n.memoizedState=null,e}function Bv(e,n,l){var u=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,e===null){if(Re){if(u.mode==="hidden")return e=yu(n,u),n.lanes=536870912,Yi(null,e);if(Es(n),(e=Pe)?(e=tg(e,on),e=e!==null&&e.data==="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:ol!==null?{id:wn,overflow:En}:null,retryLane:536870912,hydrationErrors:null},l=Tm(e),l.return=n,n.child=l,xt=n,Pe=null)):e=null,e===null)throw cl(n);return n.lanes=536870912,null}return yu(n,u)}var d=e.memoizedState;if(d!==null){var x=d.dehydrated;if(Es(n),f)if(n.flags&256)n.flags&=-257,n=Gh(e,n,l);else if(n.memoizedState!==null)n.child=e.child,n.flags|=128,n=null;else throw Error(a(558));else if(st||Mr(e,n,l,!1),f=(l&e.childLanes)!==0,st||f){if(u=Ze,u!==null&&(x=Od(u,l),x!==0&&x!==d.retryLane))throw d.retryLane=x,ql(e,x),Vt(u,e,x),Is;Nu(),n=Gh(e,n,l)}else e=d.treeContext,Pe=cn(x.nextSibling),xt=n,Re=!0,sl=null,on=!1,e!==null&&zm(n,e),n=yu(n,u),n.flags|=4096;return n}return e=Bn(e.child,{mode:u.mode,children:u.children}),e.ref=n.ref,n.child=e,e.return=n,e}function bu(e,n){var l=n.ref;if(l===null)e!==null&&e.ref!==null&&(n.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(a(284));(e===null||e.ref!==l)&&(n.flags|=4194816)}}function Xs(e,n,l,u,f){return Fl(n),l=Ts(e,n,l,u,void 0,f),u=As(),e!==null&&!st?(Ns(e,n,f),Fn(e,n,f)):(Re&&u&&us(n),n.flags|=1,St(e,n,l,f),n.child)}function Fh(e,n,l,u,f,d){return Fl(n),n.updateQueue=null,l=Qm(n,u,l,f),Xm(e),u=As(),e!==null&&!st?(Ns(e,n,d),Fn(e,n,d)):(Re&&u&&us(n),n.flags|=1,St(e,n,l,d),n.child)}function Ih(e,n,l,u,f){if(Fl(n),n.stateNode===null){var d=Ar,x=l.contextType;typeof x=="object"&&x!==null&&(d=vt(x)),d=new l(u,d),n.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=Gs,n.stateNode=d,d._reactInternals=n,d=n.stateNode,d.props=u,d.state=n.memoizedState,d.refs={},bs(n),x=l.contextType,d.context=typeof x=="object"&&x!==null?vt(x):Ar,d.state=n.memoizedState,x=l.getDerivedStateFromProps,typeof x=="function"&&(Ys(n,l,x,u),d.state=n.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(x=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),x!==d.state&&Gs.enqueueReplaceState(d,d.state,null),Ui(n,u,d,f),Li(),d.state=n.memoizedState),typeof d.componentDidMount=="function"&&(n.flags|=4194308),u=!0}else if(e===null){d=n.stateNode;var w=n.memoizedProps,z=Jl(l,w);d.props=z;var V=d.context,I=l.contextType;x=Ar,typeof I=="object"&&I!==null&&(x=vt(I));var J=l.getDerivedStateFromProps;I=typeof J=="function"||typeof d.getSnapshotBeforeUpdate=="function",w=n.pendingProps!==w,I||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(w||V!==x)&&Mh(n,d,u,x),dl=!1;var G=n.memoizedState;d.state=G,Ui(n,u,d,f),Li(),V=n.memoizedState,w||G!==V||dl?(typeof J=="function"&&(Ys(n,l,J,u),V=n.memoizedState),(z=dl||jh(n,l,z,u,G,V,x))?(I||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(n.flags|=4194308)):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=u,n.memoizedState=V),d.props=u,d.state=V,d.context=x,u=z):(typeof d.componentDidMount=="function"&&(n.flags|=4194308),u=!1)}else{d=n.stateNode,xs(e,n),x=n.memoizedProps,I=Jl(l,x),d.props=I,J=n.pendingProps,G=d.context,V=l.contextType,z=Ar,typeof V=="object"&&V!==null&&(z=vt(V)),w=l.getDerivedStateFromProps,(V=typeof w=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x!==J||G!==z)&&Mh(n,d,u,z),dl=!1,G=n.memoizedState,d.state=G,Ui(n,u,d,f),Li();var F=n.memoizedState;x!==J||G!==F||dl||e!==null&&e.dependencies!==null&&Wa(e.dependencies)?(typeof w=="function"&&(Ys(n,l,w,u),F=n.memoizedState),(I=dl||jh(n,l,I,u,G,F,z)||e!==null&&e.dependencies!==null&&Wa(e.dependencies))?(V||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(u,F,z),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(u,F,z)),typeof d.componentDidUpdate=="function"&&(n.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),n.memoizedProps=u,n.memoizedState=F),d.props=u,d.state=F,d.context=z,u=I):(typeof d.componentDidUpdate!="function"||x===e.memoizedProps&&G===e.memoizedState||(n.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&G===e.memoizedState||(n.flags|=1024),u=!1)}return d=u,bu(e,n),u=(n.flags&128)!==0,d||u?(d=n.stateNode,l=u&&typeof l.getDerivedStateFromError!="function"?null:d.render(),n.flags|=1,e!==null&&u?(n.child=Zl(n,e.child,null,f),n.child=Zl(n,null,l,f)):St(e,n,l,f),n.memoizedState=d.state,e=n.child):e=Fn(e,n,f),e}function Xh(e,n,l,u){return Yl(),n.flags|=256,St(e,n,l,u),n.child}var Qs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zs(e){return{baseLanes:e,cachePool:Rm()}}function Ks(e,n,l){return e=e!==null?e.childLanes&~l:0,n&&(e|=Pt),e}function Qh(e,n,l){var u=n.pendingProps,f=!1,d=(n.flags&128)!==0,x;if((x=d)||(x=e!==null&&e.memoizedState===null?!1:(lt.current&2)!==0),x&&(f=!0,n.flags&=-129),x=(n.flags&32)!==0,n.flags&=-33,e===null){if(Re){if(f?pl(n):gl(),(e=Pe)?(e=tg(e,on),e=e!==null&&e.data!=="&"?e:null,e!==null&&(n.memoizedState={dehydrated:e,treeContext:ol!==null?{id:wn,overflow:En}:null,retryLane:536870912,hydrationErrors:null},l=Tm(e),l.return=n,n.child=l,xt=n,Pe=null)):e=null,e===null)throw cl(n);return Mc(e)?n.lanes=32:n.lanes=536870912,null}var w=u.children;return u=u.fallback,f?(gl(),f=n.mode,w=xu({mode:"hidden",children:w},f),u=Vl(u,f,l,null),w.return=n,u.return=n,w.sibling=u,n.child=w,u=n.child,u.memoizedState=Zs(l),u.childLanes=Ks(e,x,l),n.memoizedState=Qs,Yi(null,u)):(pl(n),Js(n,w))}var z=e.memoizedState;if(z!==null&&(w=z.dehydrated,w!==null)){if(d)n.flags&256?(pl(n),n.flags&=-257,n=Ps(e,n,l)):n.memoizedState!==null?(gl(),n.child=e.child,n.flags|=128,n=null):(gl(),w=u.fallback,f=n.mode,u=xu({mode:"visible",children:u.children},f),w=Vl(w,f,l,null),w.flags|=2,u.return=n,w.return=n,u.sibling=w,n.child=u,Zl(n,e.child,null,l),u=n.child,u.memoizedState=Zs(l),u.childLanes=Ks(e,x,l),n.memoizedState=Qs,n=Yi(null,u));else if(pl(n),Mc(w)){if(x=w.nextSibling&&w.nextSibling.dataset,x)var V=x.dgst;x=V,u=Error(a(419)),u.stack="",u.digest=x,ji({value:u,source:null,stack:null}),n=Ps(e,n,l)}else if(st||Mr(e,n,l,!1),x=(l&e.childLanes)!==0,st||x){if(x=Ze,x!==null&&(u=Od(x,l),u!==0&&u!==z.retryLane))throw z.retryLane=u,ql(e,u),Vt(x,e,u),Is;jc(w)||Nu(),n=Ps(e,n,l)}else jc(w)?(n.flags|=192,n.child=e.child,n=null):(e=z.treeContext,Pe=cn(w.nextSibling),xt=n,Re=!0,sl=null,on=!1,e!==null&&zm(n,e),n=Js(n,u.children),n.flags|=4096);return n}return f?(gl(),w=u.fallback,f=n.mode,z=e.child,V=z.sibling,u=Bn(z,{mode:"hidden",children:u.children}),u.subtreeFlags=z.subtreeFlags&65011712,V!==null?w=Bn(V,w):(w=Vl(w,f,l,null),w.flags|=2),w.return=n,u.return=n,u.sibling=w,n.child=u,Yi(null,u),u=n.child,w=e.child.memoizedState,w===null?w=Zs(l):(f=w.cachePool,f!==null?(z=ut._currentValue,f=f.parent!==z?{parent:z,pool:z}:f):f=Rm(),w={baseLanes:w.baseLanes|l,cachePool:f}),u.memoizedState=w,u.childLanes=Ks(e,x,l),n.memoizedState=Qs,Yi(e.child,u)):(pl(n),l=e.child,e=l.sibling,l=Bn(l,{mode:"visible",children:u.children}),l.return=n,l.sibling=null,e!==null&&(x=n.deletions,x===null?(n.deletions=[e],n.flags|=16):x.push(e)),n.child=l,n.memoizedState=null,l)}function Js(e,n){return n=xu({mode:"visible",children:n},e.mode),n.return=e,e.child=n}function xu(e,n){return e=Qt(22,e,null,n),e.lanes=0,e}function Ps(e,n,l){return Zl(n,e.child,null,l),e=Js(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Zh(e,n,l){e.lanes|=n;var u=e.alternate;u!==null&&(u.lanes|=n),ds(e.return,n,l)}function $s(e,n,l,u,f,d){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:u,tail:l,tailMode:f,treeForkCount:d}:(x.isBackwards=n,x.rendering=null,x.renderingStartTime=0,x.last=u,x.tail=l,x.tailMode=f,x.treeForkCount=d)}function Kh(e,n,l){var u=n.pendingProps,f=u.revealOrder,d=u.tail;u=u.children;var x=lt.current,w=(x&2)!==0;if(w?(x=x&1|2,n.flags|=128):x&=1,C(lt,x),St(e,n,u,l),u=Re?zi:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zh(e,l,n);else if(e.tag===19)Zh(e,l,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(f){case"forwards":for(l=n.child,f=null;l!==null;)e=l.alternate,e!==null&&uu(e)===null&&(f=l),l=l.sibling;l=f,l===null?(f=n.child,n.child=null):(f=l.sibling,l.sibling=null),$s(n,!1,f,l,d,u);break;case"backwards":case"unstable_legacy-backwards":for(l=null,f=n.child,n.child=null;f!==null;){if(e=f.alternate,e!==null&&uu(e)===null){n.child=f;break}e=f.sibling,f.sibling=l,l=f,f=e}$s(n,!0,l,null,d,u);break;case"together":$s(n,!1,null,null,void 0,u);break;default:n.memoizedState=null}return n.child}function Fn(e,n,l){if(e!==null&&(n.dependencies=e.dependencies),xl|=n.lanes,(l&n.childLanes)===0)if(e!==null){if(Mr(e,n,l,!1),(l&n.childLanes)===0)return null}else return null;if(e!==null&&n.child!==e.child)throw Error(a(153));if(n.child!==null){for(e=n.child,l=Bn(e,e.pendingProps),n.child=l,l.return=n;e.sibling!==null;)e=e.sibling,l=l.sibling=Bn(e,e.pendingProps),l.return=n;l.sibling=null}return n.child}function Ws(e,n){return(e.lanes&n)!==0?!0:(e=e.dependencies,!!(e!==null&&Wa(e)))}function Hv(e,n,l){switch(n.tag){case 3:Te(n,n.stateNode.containerInfo),fl(n,ut,e.memoizedState.cache),Yl();break;case 27:case 5:at(n);break;case 4:Te(n,n.stateNode.containerInfo);break;case 10:fl(n,n.type,n.memoizedProps.value);break;case 31:if(n.memoizedState!==null)return n.flags|=128,Es(n),null;break;case 13:var u=n.memoizedState;if(u!==null)return u.dehydrated!==null?(pl(n),n.flags|=128,null):(l&n.child.childLanes)!==0?Qh(e,n,l):(pl(n),e=Fn(e,n,l),e!==null?e.sibling:null);pl(n);break;case 19:var f=(e.flags&128)!==0;if(u=(l&n.childLanes)!==0,u||(Mr(e,n,l,!1),u=(l&n.childLanes)!==0),f){if(u)return Kh(e,n,l);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),C(lt,lt.current),u)break;return null;case 22:return n.lanes=0,Vh(e,n,l,n.pendingProps);case 24:fl(n,ut,e.memoizedState.cache)}return Fn(e,n,l)}function Jh(e,n,l){if(e!==null)if(e.memoizedProps!==n.pendingProps)st=!0;else{if(!Ws(e,l)&&(n.flags&128)===0)return st=!1,Hv(e,n,l);st=(e.flags&131072)!==0}else st=!1,Re&&(n.flags&1048576)!==0&&Nm(n,zi,n.index);switch(n.lanes=0,n.tag){case 16:e:{var u=n.pendingProps;if(e=Xl(n.elementType),n.type=e,typeof e=="function")rs(e)?(u=Jl(e,u),n.tag=1,n=Ih(null,n,e,u,l)):(n.tag=0,n=Xs(null,n,e,u,l));else{if(e!=null){var f=e.$$typeof;if(f===W){n.tag=11,n=Bh(null,n,e,u,l);break e}else if(f===X){n.tag=14,n=Hh(null,n,e,u,l);break e}}throw n=oe(e)||e,Error(a(306,n,""))}}return n;case 0:return Xs(e,n,n.type,n.pendingProps,l);case 1:return u=n.type,f=Jl(u,n.pendingProps),Ih(e,n,u,f,l);case 3:e:{if(Te(n,n.stateNode.containerInfo),e===null)throw Error(a(387));u=n.pendingProps;var d=n.memoizedState;f=d.element,xs(e,n),Ui(n,u,null,l);var x=n.memoizedState;if(u=x.cache,fl(n,ut,u),u!==d.cache&&ms(n,[ut],l,!0),Li(),u=x.element,d.isDehydrated)if(d={element:u,isDehydrated:!1,cache:x.cache},n.updateQueue.baseState=d,n.memoizedState=d,n.flags&256){n=Xh(e,n,u,l);break e}else if(u!==f){f=rn(Error(a(424)),n),ji(f),n=Xh(e,n,u,l);break e}else{switch(e=n.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Pe=cn(e.firstChild),xt=n,Re=!0,sl=null,on=!0,l=Vm(n,null,u,l),n.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Yl(),u===f){n=Fn(e,n,l);break e}St(e,n,u,l)}n=n.child}return n;case 26:return bu(e,n),e===null?(l=ug(n.type,null,n.pendingProps,null))?n.memoizedState=l:Re||(l=n.type,e=n.pendingProps,u=Ru(le.current).createElement(l),u[bt]=n,u[Rt]=e,kt(u,l,e),pt(u),n.stateNode=u):n.memoizedState=ug(n.type,e.memoizedProps,n.pendingProps,e.memoizedState),null;case 27:return at(n),e===null&&Re&&(u=n.stateNode=rg(n.type,n.pendingProps,le.current),xt=n,on=!0,f=Pe,El(n.type)?(Dc=f,Pe=cn(u.firstChild)):Pe=f),St(e,n,n.pendingProps.children,l),bu(e,n),e===null&&(n.flags|=4194304),n.child;case 5:return e===null&&Re&&((f=u=Pe)&&(u=p1(u,n.type,n.pendingProps,on),u!==null?(n.stateNode=u,xt=n,Pe=cn(u.firstChild),on=!1,f=!0):f=!1),f||cl(n)),at(n),f=n.type,d=n.pendingProps,x=e!==null?e.memoizedProps:null,u=d.children,Ac(f,d)?u=null:x!==null&&Ac(f,x)&&(n.flags|=32),n.memoizedState!==null&&(f=Ts(e,n,jv,null,null,l),la._currentValue=f),bu(e,n),St(e,n,u,l),n.child;case 6:return e===null&&Re&&((e=l=Pe)&&(l=g1(l,n.pendingProps,on),l!==null?(n.stateNode=l,xt=n,Pe=null,e=!0):e=!1),e||cl(n)),null;case 13:return Qh(e,n,l);case 4:return Te(n,n.stateNode.containerInfo),u=n.pendingProps,e===null?n.child=Zl(n,null,u,l):St(e,n,u,l),n.child;case 11:return Bh(e,n,n.type,n.pendingProps,l);case 7:return St(e,n,n.pendingProps,l),n.child;case 8:return St(e,n,n.pendingProps.children,l),n.child;case 12:return St(e,n,n.pendingProps.children,l),n.child;case 10:return u=n.pendingProps,fl(n,n.type,u.value),St(e,n,u.children,l),n.child;case 9:return f=n.type._context,u=n.pendingProps.children,Fl(n),f=vt(f),u=u(f),n.flags|=1,St(e,n,u,l),n.child;case 14:return Hh(e,n,n.type,n.pendingProps,l);case 15:return qh(e,n,n.type,n.pendingProps,l);case 19:return Kh(e,n,l);case 31:return Bv(e,n,l);case 22:return Vh(e,n,l,n.pendingProps);case 24:return Fl(n),u=vt(ut),e===null?(f=gs(),f===null&&(f=Ze,d=hs(),f.pooledCache=d,d.refCount++,d!==null&&(f.pooledCacheLanes|=l),f=d),n.memoizedState={parent:u,cache:f},bs(n),fl(n,ut,f)):((e.lanes&l)!==0&&(xs(e,n),Ui(n,null,null,l),Li()),f=e.memoizedState,d=n.memoizedState,f.parent!==u?(f={parent:u,cache:u},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),fl(n,ut,u)):(u=d.cache,fl(n,ut,u),u!==f.cache&&ms(n,[ut],l,!0))),St(e,n,n.pendingProps.children,l),n.child;case 29:throw n.pendingProps}throw Error(a(156,n.tag))}function In(e){e.flags|=4}function ec(e,n,l,u,f){if((n=(e.mode&32)!==0)&&(n=!1),n){if(e.flags|=16777216,(f&335544128)===f)if(e.stateNode.complete)e.flags|=8192;else if(wp())e.flags|=8192;else throw Ql=lu,ys}else e.flags&=-16777217}function Ph(e,n){if(n.type!=="stylesheet"||(n.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!dg(n))if(wp())e.flags|=8192;else throw Ql=lu,ys}function vu(e,n){n!==null&&(e.flags|=4),e.flags&16384&&(n=e.tag!==22?jd():536870912,e.lanes|=n,Gr|=n)}function Gi(e,n){if(!Re)switch(e.tailMode){case"hidden":n=e.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var u=null;l!==null;)l.alternate!==null&&(u=l),l=l.sibling;u===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function $e(e){var n=e.alternate!==null&&e.alternate.child===e.child,l=0,u=0;if(n)for(var f=e.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags&65011712,u|=f.flags&65011712,f.return=e,f=f.sibling;else for(f=e.child;f!==null;)l|=f.lanes|f.childLanes,u|=f.subtreeFlags,u|=f.flags,f.return=e,f=f.sibling;return e.subtreeFlags|=u,e.childLanes=l,n}function qv(e,n,l){var u=n.pendingProps;switch(os(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $e(n),null;case 1:return $e(n),null;case 3:return l=n.stateNode,u=null,e!==null&&(u=e.memoizedState.cache),n.memoizedState.cache!==u&&(n.flags|=2048),Vn(ut),ge(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(jr(n)?In(n):e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,cs())),$e(n),null;case 26:var f=n.type,d=n.memoizedState;return e===null?(In(n),d!==null?($e(n),Ph(n,d)):($e(n),ec(n,f,null,u,l))):d?d!==e.memoizedState?(In(n),$e(n),Ph(n,d)):($e(n),n.flags&=-16777217):(e=e.memoizedProps,e!==u&&In(n),$e(n),ec(n,f,e,u,l)),null;case 27:if(Dt(n),l=le.current,f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&In(n);else{if(!u){if(n.stateNode===null)throw Error(a(166));return $e(n),null}e=$.current,jr(n)?jm(n):(e=rg(f,u,l),n.stateNode=e,In(n))}return $e(n),null;case 5:if(Dt(n),f=n.type,e!==null&&n.stateNode!=null)e.memoizedProps!==u&&In(n);else{if(!u){if(n.stateNode===null)throw Error(a(166));return $e(n),null}if(d=$.current,jr(n))jm(n);else{var x=Ru(le.current);switch(d){case 1:d=x.createElementNS("http://www.w3.org/2000/svg",f);break;case 2:d=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;default:switch(f){case"svg":d=x.createElementNS("http://www.w3.org/2000/svg",f);break;case"math":d=x.createElementNS("http://www.w3.org/1998/Math/MathML",f);break;case"script":d=x.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof u.is=="string"?x.createElement("select",{is:u.is}):x.createElement("select"),u.multiple?d.multiple=!0:u.size&&(d.size=u.size);break;default:d=typeof u.is=="string"?x.createElement(f,{is:u.is}):x.createElement(f)}}d[bt]=n,d[Rt]=u;e:for(x=n.child;x!==null;){if(x.tag===5||x.tag===6)d.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===n)break e;for(;x.sibling===null;){if(x.return===null||x.return===n)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}n.stateNode=d;e:switch(kt(d,f,u),f){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&In(n)}}return $e(n),ec(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,l),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==u&&In(n);else{if(typeof u!="string"&&n.stateNode===null)throw Error(a(166));if(e=le.current,jr(n)){if(e=n.stateNode,l=n.memoizedProps,u=null,f=xt,f!==null)switch(f.tag){case 27:case 5:u=f.memoizedProps}e[bt]=n,e=!!(e.nodeValue===l||u!==null&&u.suppressHydrationWarning===!0||Qp(e.nodeValue,l)),e||cl(n,!0)}else e=Ru(e).createTextNode(u),e[bt]=n,n.stateNode=e}return $e(n),null;case 31:if(l=n.memoizedState,e===null||e.memoizedState!==null){if(u=jr(n),l!==null){if(e===null){if(!u)throw Error(a(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[bt]=n}else Yl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;$e(n),e=!1}else l=cs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return n.flags&256?(Kt(n),n):(Kt(n),null);if((n.flags&128)!==0)throw Error(a(558))}return $e(n),null;case 13:if(u=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(f=jr(n),u!==null&&u.dehydrated!==null){if(e===null){if(!f)throw Error(a(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[bt]=n}else Yl(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;$e(n),f=!1}else f=cs(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Kt(n),n):(Kt(n),null)}return Kt(n),(n.flags&128)!==0?(n.lanes=l,n):(l=u!==null,e=e!==null&&e.memoizedState!==null,l&&(u=n.child,f=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(f=u.alternate.memoizedState.cachePool.pool),d=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(d=u.memoizedState.cachePool.pool),d!==f&&(u.flags|=2048)),l!==e&&l&&(n.child.flags|=8192),vu(n,n.updateQueue),$e(n),null);case 4:return ge(),e===null&&kc(n.stateNode.containerInfo),$e(n),null;case 10:return Vn(n.type),$e(n),null;case 19:if(M(lt),u=n.memoizedState,u===null)return $e(n),null;if(f=(n.flags&128)!==0,d=u.rendering,d===null)if(f)Gi(u,!1);else{if(nt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(d=uu(e),d!==null){for(n.flags|=128,Gi(u,!1),e=d.updateQueue,n.updateQueue=e,vu(n,e),n.subtreeFlags=0,e=l,l=n.child;l!==null;)Cm(l,e),l=l.sibling;return C(lt,lt.current&1|2),Re&&Hn(n,u.treeForkCount),n.child}e=e.sibling}u.tail!==null&&At()>Cu&&(n.flags|=128,f=!0,Gi(u,!1),n.lanes=4194304)}else{if(!f)if(e=uu(d),e!==null){if(n.flags|=128,f=!0,e=e.updateQueue,n.updateQueue=e,vu(n,e),Gi(u,!0),u.tail===null&&u.tailMode==="hidden"&&!d.alternate&&!Re)return $e(n),null}else 2*At()-u.renderingStartTime>Cu&&l!==536870912&&(n.flags|=128,f=!0,Gi(u,!1),n.lanes=4194304);u.isBackwards?(d.sibling=n.child,n.child=d):(e=u.last,e!==null?e.sibling=d:n.child=d,u.last=d)}return u.tail!==null?(e=u.tail,u.rendering=e,u.tail=e.sibling,u.renderingStartTime=At(),e.sibling=null,l=lt.current,C(lt,f?l&1|2:l&1),Re&&Hn(n,u.treeForkCount),e):($e(n),null);case 22:case 23:return Kt(n),ws(),u=n.memoizedState!==null,e!==null?e.memoizedState!==null!==u&&(n.flags|=8192):u&&(n.flags|=8192),u?(l&536870912)!==0&&(n.flags&128)===0&&($e(n),n.subtreeFlags&6&&(n.flags|=8192)):$e(n),l=n.updateQueue,l!==null&&vu(n,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),u=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(u=n.memoizedState.cachePool.pool),u!==l&&(n.flags|=2048),e!==null&&M(Il),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),n.memoizedState.cache!==l&&(n.flags|=2048),Vn(ut),$e(n),null;case 25:return null;case 30:return null}throw Error(a(156,n.tag))}function Vv(e,n){switch(os(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Vn(ut),ge(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Dt(n),null;case 31:if(n.memoizedState!==null){if(Kt(n),n.alternate===null)throw Error(a(340));Yl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(Kt(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(a(340));Yl()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return M(lt),null;case 4:return ge(),null;case 10:return Vn(n.type),null;case 22:case 23:return Kt(n),ws(),e!==null&&M(Il),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return Vn(ut),null;case 25:return null;default:return null}}function $h(e,n){switch(os(n),n.tag){case 3:Vn(ut),ge();break;case 26:case 27:case 5:Dt(n);break;case 4:ge();break;case 31:n.memoizedState!==null&&Kt(n);break;case 13:Kt(n);break;case 19:M(lt);break;case 10:Vn(n.type);break;case 22:case 23:Kt(n),ws(),e!==null&&M(Il);break;case 24:Vn(ut)}}function Fi(e,n){try{var l=n.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var f=u.next;l=f;do{if((l.tag&e)===e){u=void 0;var d=l.create,x=l.inst;u=d(),x.destroy=u}l=l.next}while(l!==f)}}catch(w){Ge(n,n.return,w)}}function yl(e,n,l){try{var u=n.updateQueue,f=u!==null?u.lastEffect:null;if(f!==null){var d=f.next;u=d;do{if((u.tag&e)===e){var x=u.inst,w=x.destroy;if(w!==void 0){x.destroy=void 0,f=n;var z=l,V=w;try{V()}catch(I){Ge(f,z,I)}}}u=u.next}while(u!==d)}}catch(I){Ge(n,n.return,I)}}function Wh(e){var n=e.updateQueue;if(n!==null){var l=e.stateNode;try{Gm(n,l)}catch(u){Ge(e,e.return,u)}}}function ep(e,n,l){l.props=Jl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(u){Ge(e,n,u)}}function Ii(e,n){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var u=e.stateNode;break;case 30:u=e.stateNode;break;default:u=e.stateNode}typeof l=="function"?e.refCleanup=l(u):l.current=u}}catch(f){Ge(e,n,f)}}function Cn(e,n){var l=e.ref,u=e.refCleanup;if(l!==null)if(typeof u=="function")try{u()}catch(f){Ge(e,n,f)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(f){Ge(e,n,f)}else l.current=null}function tp(e){var n=e.type,l=e.memoizedProps,u=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":l.autoFocus&&u.focus();break e;case"img":l.src?u.src=l.src:l.srcSet&&(u.srcset=l.srcSet)}}catch(f){Ge(e,e.return,f)}}function tc(e,n,l){try{var u=e.stateNode;s1(u,e.type,l,n),u[Rt]=n}catch(f){Ge(e,e.return,f)}}function np(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&El(e.type)||e.tag===4}function nc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||np(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&El(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function lc(e,n,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,n):(n=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,n.appendChild(e),l=l._reactRootContainer,l!=null||n.onclick!==null||(n.onclick=Ln));else if(u!==4&&(u===27&&El(e.type)&&(l=e.stateNode,n=null),e=e.child,e!==null))for(lc(e,n,l),e=e.sibling;e!==null;)lc(e,n,l),e=e.sibling}function Su(e,n,l){var u=e.tag;if(u===5||u===6)e=e.stateNode,n?l.insertBefore(e,n):l.appendChild(e);else if(u!==4&&(u===27&&El(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Su(e,n,l),e=e.sibling;e!==null;)Su(e,n,l),e=e.sibling}function lp(e){var n=e.stateNode,l=e.memoizedProps;try{for(var u=e.type,f=n.attributes;f.length;)n.removeAttributeNode(f[0]);kt(n,u,l),n[bt]=e,n[Rt]=l}catch(d){Ge(e,e.return,d)}}var Xn=!1,ct=!1,rc=!1,rp=typeof WeakSet=="function"?WeakSet:Set,gt=null;function Yv(e,n){if(e=e.containerInfo,Cc=Yu,e=gm(e),Po(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var u=l.getSelection&&l.getSelection();if(u&&u.rangeCount!==0){l=u.anchorNode;var f=u.anchorOffset,d=u.focusNode;u=u.focusOffset;try{l.nodeType,d.nodeType}catch{l=null;break e}var x=0,w=-1,z=-1,V=0,I=0,J=e,G=null;t:for(;;){for(var F;J!==l||f!==0&&J.nodeType!==3||(w=x+f),J!==d||u!==0&&J.nodeType!==3||(z=x+u),J.nodeType===3&&(x+=J.nodeValue.length),(F=J.firstChild)!==null;)G=J,J=F;for(;;){if(J===e)break t;if(G===l&&++V===f&&(w=x),G===d&&++I===u&&(z=x),(F=J.nextSibling)!==null)break;J=G,G=J.parentNode}J=F}l=w===-1||z===-1?null:{start:w,end:z}}else l=null}l=l||{start:0,end:0}}else l=null;for(Tc={focusedElem:e,selectionRange:l},Yu=!1,gt=n;gt!==null;)if(n=gt,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,gt=e;else for(;gt!==null;){switch(n=gt,d=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)f=e[l],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,l=n,f=d.memoizedProps,d=d.memoizedState,u=l.stateNode;try{var he=Jl(l.type,f);e=u.getSnapshotBeforeUpdate(he,d),u.__reactInternalSnapshotBeforeUpdate=e}catch(ve){Ge(l,l.return,ve)}}break;case 3:if((e&1024)!==0){if(e=n.stateNode.containerInfo,l=e.nodeType,l===9)zc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":zc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(a(163))}if(e=n.sibling,e!==null){e.return=n.return,gt=e;break}gt=n.return}}function ip(e,n,l){var u=l.flags;switch(l.tag){case 0:case 11:case 15:Zn(e,l),u&4&&Fi(5,l);break;case 1:if(Zn(e,l),u&4)if(e=l.stateNode,n===null)try{e.componentDidMount()}catch(x){Ge(l,l.return,x)}else{var f=Jl(l.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(f,n,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ge(l,l.return,x)}}u&64&&Wh(l),u&512&&Ii(l,l.return);break;case 3:if(Zn(e,l),u&64&&(e=l.updateQueue,e!==null)){if(n=null,l.child!==null)switch(l.child.tag){case 27:case 5:n=l.child.stateNode;break;case 1:n=l.child.stateNode}try{Gm(e,n)}catch(x){Ge(l,l.return,x)}}break;case 27:n===null&&u&4&&lp(l);case 26:case 5:Zn(e,l),n===null&&u&4&&tp(l),u&512&&Ii(l,l.return);break;case 12:Zn(e,l);break;case 31:Zn(e,l),u&4&&op(e,l);break;case 13:Zn(e,l),u&4&&sp(e,l),u&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=Pv.bind(null,l),y1(e,l))));break;case 22:if(u=l.memoizedState!==null||Xn,!u){n=n!==null&&n.memoizedState!==null||ct,f=Xn;var d=ct;Xn=u,(ct=n)&&!d?Kn(e,l,(l.subtreeFlags&8772)!==0):Zn(e,l),Xn=f,ct=d}break;case 30:break;default:Zn(e,l)}}function ap(e){var n=e.alternate;n!==null&&(e.alternate=null,ap(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&_o(n)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var et=null,Ut=!1;function Qn(e,n,l){for(l=l.child;l!==null;)up(e,n,l),l=l.sibling}function up(e,n,l){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(Nt,l)}catch{}switch(l.tag){case 26:ct||Cn(l,n),Qn(e,n,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ct||Cn(l,n);var u=et,f=Ut;El(l.type)&&(et=l.stateNode,Ut=!1),Qn(e,n,l),ea(l.stateNode),et=u,Ut=f;break;case 5:ct||Cn(l,n);case 6:if(u=et,f=Ut,et=null,Qn(e,n,l),et=u,Ut=f,et!==null)if(Ut)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(l.stateNode)}catch(d){Ge(l,n,d)}else try{et.removeChild(l.stateNode)}catch(d){Ge(l,n,d)}break;case 18:et!==null&&(Ut?(e=et,Wp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Pr(e)):Wp(et,l.stateNode));break;case 4:u=et,f=Ut,et=l.stateNode.containerInfo,Ut=!0,Qn(e,n,l),et=u,Ut=f;break;case 0:case 11:case 14:case 15:yl(2,l,n),ct||yl(4,l,n),Qn(e,n,l);break;case 1:ct||(Cn(l,n),u=l.stateNode,typeof u.componentWillUnmount=="function"&&ep(l,n,u)),Qn(e,n,l);break;case 21:Qn(e,n,l);break;case 22:ct=(u=ct)||l.memoizedState!==null,Qn(e,n,l),ct=u;break;default:Qn(e,n,l)}}function op(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Pr(e)}catch(l){Ge(n,n.return,l)}}}function sp(e,n){if(n.memoizedState===null&&(e=n.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Pr(e)}catch(l){Ge(n,n.return,l)}}function Gv(e){switch(e.tag){case 31:case 13:case 19:var n=e.stateNode;return n===null&&(n=e.stateNode=new rp),n;case 22:return e=e.stateNode,n=e._retryCache,n===null&&(n=e._retryCache=new rp),n;default:throw Error(a(435,e.tag))}}function ku(e,n){var l=Gv(e);n.forEach(function(u){if(!l.has(u)){l.add(u);var f=$v.bind(null,e,u);u.then(f,f)}})}function Bt(e,n){var l=n.deletions;if(l!==null)for(var u=0;u<l.length;u++){var f=l[u],d=e,x=n,w=x;e:for(;w!==null;){switch(w.tag){case 27:if(El(w.type)){et=w.stateNode,Ut=!1;break e}break;case 5:et=w.stateNode,Ut=!1;break e;case 3:case 4:et=w.stateNode.containerInfo,Ut=!0;break e}w=w.return}if(et===null)throw Error(a(160));up(d,x,f),et=null,Ut=!1,d=f.alternate,d!==null&&(d.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)cp(n,e),n=n.sibling}var yn=null;function cp(e,n){var l=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Bt(n,e),Ht(e),u&4&&(yl(3,e,e.return),Fi(3,e),yl(5,e,e.return));break;case 1:Bt(n,e),Ht(e),u&512&&(ct||l===null||Cn(l,l.return)),u&64&&Xn&&(e=e.updateQueue,e!==null&&(u=e.callbacks,u!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?u:l.concat(u))));break;case 26:var f=yn;if(Bt(n,e),Ht(e),u&512&&(ct||l===null||Cn(l,l.return)),u&4){var d=l!==null?l.memoizedState:null;if(u=e.memoizedState,l===null)if(u===null)if(e.stateNode===null){e:{u=e.type,l=e.memoizedProps,f=f.ownerDocument||f;t:switch(u){case"title":d=f.getElementsByTagName("title")[0],(!d||d[bi]||d[bt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=f.createElement(u),f.head.insertBefore(d,f.querySelector("head > title"))),kt(d,u,l),d[bt]=e,pt(d),u=d;break e;case"link":var x=cg("link","href",f).get(u+(l.href||""));if(x){for(var w=0;w<x.length;w++)if(d=x[w],d.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&d.getAttribute("rel")===(l.rel==null?null:l.rel)&&d.getAttribute("title")===(l.title==null?null:l.title)&&d.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){x.splice(w,1);break t}}d=f.createElement(u),kt(d,u,l),f.head.appendChild(d);break;case"meta":if(x=cg("meta","content",f).get(u+(l.content||""))){for(w=0;w<x.length;w++)if(d=x[w],d.getAttribute("content")===(l.content==null?null:""+l.content)&&d.getAttribute("name")===(l.name==null?null:l.name)&&d.getAttribute("property")===(l.property==null?null:l.property)&&d.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&d.getAttribute("charset")===(l.charSet==null?null:l.charSet)){x.splice(w,1);break t}}d=f.createElement(u),kt(d,u,l),f.head.appendChild(d);break;default:throw Error(a(468,u))}d[bt]=e,pt(d),u=d}e.stateNode=u}else fg(f,e.type,e.stateNode);else e.stateNode=sg(f,u,e.memoizedProps);else d!==u?(d===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):d.count--,u===null?fg(f,e.type,e.stateNode):sg(f,u,e.memoizedProps)):u===null&&e.stateNode!==null&&tc(e,e.memoizedProps,l.memoizedProps)}break;case 27:Bt(n,e),Ht(e),u&512&&(ct||l===null||Cn(l,l.return)),l!==null&&u&4&&tc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Bt(n,e),Ht(e),u&512&&(ct||l===null||Cn(l,l.return)),e.flags&32){f=e.stateNode;try{vr(f,"")}catch(he){Ge(e,e.return,he)}}u&4&&e.stateNode!=null&&(f=e.memoizedProps,tc(e,f,l!==null?l.memoizedProps:f)),u&1024&&(rc=!0);break;case 6:if(Bt(n,e),Ht(e),u&4){if(e.stateNode===null)throw Error(a(162));u=e.memoizedProps,l=e.stateNode;try{l.nodeValue=u}catch(he){Ge(e,e.return,he)}}break;case 3:if(Bu=null,f=yn,yn=Lu(n.containerInfo),Bt(n,e),yn=f,Ht(e),u&4&&l!==null&&l.memoizedState.isDehydrated)try{Pr(n.containerInfo)}catch(he){Ge(e,e.return,he)}rc&&(rc=!1,fp(e));break;case 4:u=yn,yn=Lu(e.stateNode.containerInfo),Bt(n,e),Ht(e),yn=u;break;case 12:Bt(n,e),Ht(e);break;case 31:Bt(n,e),Ht(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,ku(e,u)));break;case 13:Bt(n,e),Ht(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Eu=At()),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,ku(e,u)));break;case 22:f=e.memoizedState!==null;var z=l!==null&&l.memoizedState!==null,V=Xn,I=ct;if(Xn=V||f,ct=I||z,Bt(n,e),ct=I,Xn=V,Ht(e),u&8192)e:for(n=e.stateNode,n._visibility=f?n._visibility&-2:n._visibility|1,f&&(l===null||z||Xn||ct||Pl(e)),l=null,n=e;;){if(n.tag===5||n.tag===26){if(l===null){z=l=n;try{if(d=z.stateNode,f)x=d.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{w=z.stateNode;var J=z.memoizedProps.style,G=J!=null&&J.hasOwnProperty("display")?J.display:null;w.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(he){Ge(z,z.return,he)}}}else if(n.tag===6){if(l===null){z=n;try{z.stateNode.nodeValue=f?"":z.memoizedProps}catch(he){Ge(z,z.return,he)}}}else if(n.tag===18){if(l===null){z=n;try{var F=z.stateNode;f?eg(F,!0):eg(z.stateNode,!1)}catch(he){Ge(z,z.return,he)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break e;for(;n.sibling===null;){if(n.return===null||n.return===e)break e;l===n&&(l=null),n=n.return}l===n&&(l=null),n.sibling.return=n.return,n=n.sibling}u&4&&(u=e.updateQueue,u!==null&&(l=u.retryQueue,l!==null&&(u.retryQueue=null,ku(e,l))));break;case 19:Bt(n,e),Ht(e),u&4&&(u=e.updateQueue,u!==null&&(e.updateQueue=null,ku(e,u)));break;case 30:break;case 21:break;default:Bt(n,e),Ht(e)}}function Ht(e){var n=e.flags;if(n&2){try{for(var l,u=e.return;u!==null;){if(np(u)){l=u;break}u=u.return}if(l==null)throw Error(a(160));switch(l.tag){case 27:var f=l.stateNode,d=nc(e);Su(e,d,f);break;case 5:var x=l.stateNode;l.flags&32&&(vr(x,""),l.flags&=-33);var w=nc(e);Su(e,w,x);break;case 3:case 4:var z=l.stateNode.containerInfo,V=nc(e);lc(e,V,z);break;default:throw Error(a(161))}}catch(I){Ge(e,e.return,I)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function fp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var n=e;fp(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),e=e.sibling}}function Zn(e,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)ip(e,n.alternate,n),n=n.sibling}function Pl(e){for(e=e.child;e!==null;){var n=e;switch(n.tag){case 0:case 11:case 14:case 15:yl(4,n,n.return),Pl(n);break;case 1:Cn(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&ep(n,n.return,l),Pl(n);break;case 27:ea(n.stateNode);case 26:case 5:Cn(n,n.return),Pl(n);break;case 22:n.memoizedState===null&&Pl(n);break;case 30:Pl(n);break;default:Pl(n)}e=e.sibling}}function Kn(e,n,l){for(l=l&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;){var u=n.alternate,f=e,d=n,x=d.flags;switch(d.tag){case 0:case 11:case 15:Kn(f,d,l),Fi(4,d);break;case 1:if(Kn(f,d,l),u=d,f=u.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(V){Ge(u,u.return,V)}if(u=d,f=u.updateQueue,f!==null){var w=u.stateNode;try{var z=f.shared.hiddenCallbacks;if(z!==null)for(f.shared.hiddenCallbacks=null,f=0;f<z.length;f++)Ym(z[f],w)}catch(V){Ge(u,u.return,V)}}l&&x&64&&Wh(d),Ii(d,d.return);break;case 27:lp(d);case 26:case 5:Kn(f,d,l),l&&u===null&&x&4&&tp(d),Ii(d,d.return);break;case 12:Kn(f,d,l);break;case 31:Kn(f,d,l),l&&x&4&&op(f,d);break;case 13:Kn(f,d,l),l&&x&4&&sp(f,d);break;case 22:d.memoizedState===null&&Kn(f,d,l),Ii(d,d.return);break;case 30:break;default:Kn(f,d,l)}n=n.sibling}}function ic(e,n){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(e=n.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Mi(l))}function ac(e,n){e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Mi(e))}function bn(e,n,l,u){if(n.subtreeFlags&10256)for(n=n.child;n!==null;)dp(e,n,l,u),n=n.sibling}function dp(e,n,l,u){var f=n.flags;switch(n.tag){case 0:case 11:case 15:bn(e,n,l,u),f&2048&&Fi(9,n);break;case 1:bn(e,n,l,u);break;case 3:bn(e,n,l,u),f&2048&&(e=null,n.alternate!==null&&(e=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==e&&(n.refCount++,e!=null&&Mi(e)));break;case 12:if(f&2048){bn(e,n,l,u),e=n.stateNode;try{var d=n.memoizedProps,x=d.id,w=d.onPostCommit;typeof w=="function"&&w(x,n.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(z){Ge(n,n.return,z)}}else bn(e,n,l,u);break;case 31:bn(e,n,l,u);break;case 13:bn(e,n,l,u);break;case 23:break;case 22:d=n.stateNode,x=n.alternate,n.memoizedState!==null?d._visibility&2?bn(e,n,l,u):Xi(e,n):d._visibility&2?bn(e,n,l,u):(d._visibility|=2,qr(e,n,l,u,(n.subtreeFlags&10256)!==0||!1)),f&2048&&ic(x,n);break;case 24:bn(e,n,l,u),f&2048&&ac(n.alternate,n);break;default:bn(e,n,l,u)}}function qr(e,n,l,u,f){for(f=f&&((n.subtreeFlags&10256)!==0||!1),n=n.child;n!==null;){var d=e,x=n,w=l,z=u,V=x.flags;switch(x.tag){case 0:case 11:case 15:qr(d,x,w,z,f),Fi(8,x);break;case 23:break;case 22:var I=x.stateNode;x.memoizedState!==null?I._visibility&2?qr(d,x,w,z,f):Xi(d,x):(I._visibility|=2,qr(d,x,w,z,f)),f&&V&2048&&ic(x.alternate,x);break;case 24:qr(d,x,w,z,f),f&&V&2048&&ac(x.alternate,x);break;default:qr(d,x,w,z,f)}n=n.sibling}}function Xi(e,n){if(n.subtreeFlags&10256)for(n=n.child;n!==null;){var l=e,u=n,f=u.flags;switch(u.tag){case 22:Xi(l,u),f&2048&&ic(u.alternate,u);break;case 24:Xi(l,u),f&2048&&ac(u.alternate,u);break;default:Xi(l,u)}n=n.sibling}}var Qi=8192;function Vr(e,n,l){if(e.subtreeFlags&Qi)for(e=e.child;e!==null;)mp(e,n,l),e=e.sibling}function mp(e,n,l){switch(e.tag){case 26:Vr(e,n,l),e.flags&Qi&&e.memoizedState!==null&&z1(l,yn,e.memoizedState,e.memoizedProps);break;case 5:Vr(e,n,l);break;case 3:case 4:var u=yn;yn=Lu(e.stateNode.containerInfo),Vr(e,n,l),yn=u;break;case 22:e.memoizedState===null&&(u=e.alternate,u!==null&&u.memoizedState!==null?(u=Qi,Qi=16777216,Vr(e,n,l),Qi=u):Vr(e,n,l));break;default:Vr(e,n,l)}}function hp(e){var n=e.alternate;if(n!==null&&(e=n.child,e!==null)){n.child=null;do n=e.sibling,e.sibling=null,e=n;while(e!==null)}}function Zi(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var u=n[l];gt=u,gp(u,e)}hp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)pp(e),e=e.sibling}function pp(e){switch(e.tag){case 0:case 11:case 15:Zi(e),e.flags&2048&&yl(9,e,e.return);break;case 3:Zi(e);break;case 12:Zi(e);break;case 22:var n=e.stateNode;e.memoizedState!==null&&n._visibility&2&&(e.return===null||e.return.tag!==13)?(n._visibility&=-3,wu(e)):Zi(e);break;default:Zi(e)}}function wu(e){var n=e.deletions;if((e.flags&16)!==0){if(n!==null)for(var l=0;l<n.length;l++){var u=n[l];gt=u,gp(u,e)}hp(e)}for(e=e.child;e!==null;){switch(n=e,n.tag){case 0:case 11:case 15:yl(8,n,n.return),wu(n);break;case 22:l=n.stateNode,l._visibility&2&&(l._visibility&=-3,wu(n));break;default:wu(n)}e=e.sibling}}function gp(e,n){for(;gt!==null;){var l=gt;switch(l.tag){case 0:case 11:case 15:yl(8,l,n);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var u=l.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Mi(l.memoizedState.cache)}if(u=l.child,u!==null)u.return=l,gt=u;else e:for(l=e;gt!==null;){u=gt;var f=u.sibling,d=u.return;if(ap(u),u===l){gt=null;break e}if(f!==null){f.return=d,gt=f;break e}gt=d}}}var Fv={getCacheForType:function(e){var n=vt(ut),l=n.data.get(e);return l===void 0&&(l=e(),n.data.set(e,l)),l},cacheSignal:function(){return vt(ut).controller.signal}},Iv=typeof WeakMap=="function"?WeakMap:Map,qe=0,Ze=null,je=null,Oe=0,Ye=0,Jt=null,bl=!1,Yr=!1,uc=!1,Jn=0,nt=0,xl=0,$l=0,oc=0,Pt=0,Gr=0,Ki=null,qt=null,sc=!1,Eu=0,yp=0,Cu=1/0,Tu=null,vl=null,mt=0,Sl=null,Fr=null,Pn=0,cc=0,fc=null,bp=null,Ji=0,dc=null;function $t(){return(qe&2)!==0&&Oe!==0?Oe&-Oe:H.T!==null?bc():_d()}function xp(){if(Pt===0)if((Oe&536870912)===0||Re){var e=_a;_a<<=1,(_a&3932160)===0&&(_a=262144),Pt=e}else Pt=536870912;return e=Zt.current,e!==null&&(e.flags|=32),Pt}function Vt(e,n,l){(e===Ze&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)&&(Ir(e,0),kl(e,Oe,Pt,!1)),yi(e,l),((qe&2)===0||e!==Ze)&&(e===Ze&&((qe&2)===0&&($l|=l),nt===4&&kl(e,Oe,Pt,!1)),Tn(e))}function vp(e,n,l){if((qe&6)!==0)throw Error(a(327));var u=!l&&(n&127)===0&&(n&e.expiredLanes)===0||gi(e,n),f=u?Zv(e,n):hc(e,n,!0),d=u;do{if(f===0){Yr&&!u&&kl(e,n,0,!1);break}else{if(l=e.current.alternate,d&&!Xv(l)){f=hc(e,n,!1),d=!1;continue}if(f===2){if(d=n,e.errorRecoveryDisabledLanes&d)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){n=x;e:{var w=e;f=Ki;var z=w.current.memoizedState.isDehydrated;if(z&&(Ir(w,x).flags|=256),x=hc(w,x,!1),x!==2){if(uc&&!z){w.errorRecoveryDisabledLanes|=d,$l|=d,f=4;break e}d=qt,qt=f,d!==null&&(qt===null?qt=d:qt.push.apply(qt,d))}f=x}if(d=!1,f!==2)continue}}if(f===1){Ir(e,0),kl(e,n,0,!0);break}e:{switch(u=e,d=f,d){case 0:case 1:throw Error(a(345));case 4:if((n&4194048)!==n)break;case 6:kl(u,n,Pt,!bl);break e;case 2:qt=null;break;case 3:case 5:break;default:throw Error(a(329))}if((n&62914560)===n&&(f=Eu+300-At(),10<f)){if(kl(u,n,Pt,!bl),La(u,0,!0)!==0)break e;Pn=n,u.timeoutHandle=Pp(Sp.bind(null,u,l,qt,Tu,sc,n,Pt,$l,Gr,bl,d,"Throttled",-0,0),f);break e}Sp(u,l,qt,Tu,sc,n,Pt,$l,Gr,bl,d,null,-0,0)}}break}while(!0);Tn(e)}function Sp(e,n,l,u,f,d,x,w,z,V,I,J,G,F){if(e.timeoutHandle=-1,J=n.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ln},mp(n,d,J);var he=(d&62914560)===d?Eu-At():(d&4194048)===d?yp-At():0;if(he=j1(J,he),he!==null){Pn=d,e.cancelPendingCommit=he(zp.bind(null,e,n,d,l,u,f,x,w,z,I,J,null,G,F)),kl(e,d,x,!V);return}}zp(e,n,d,l,u,f,x,w,z)}function Xv(e){for(var n=e;;){var l=n.tag;if((l===0||l===11||l===15)&&n.flags&16384&&(l=n.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var u=0;u<l.length;u++){var f=l[u],d=f.getSnapshot;f=f.value;try{if(!Xt(d(),f))return!1}catch{return!1}}if(l=n.child,n.subtreeFlags&16384&&l!==null)l.return=n,n=l;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function kl(e,n,l,u){n&=~oc,n&=~$l,e.suspendedLanes|=n,e.pingedLanes&=~n,u&&(e.warmLanes|=n),u=e.expirationTimes;for(var f=n;0<f;){var d=31-Qe(f),x=1<<d;u[d]=-1,f&=~x}l!==0&&Md(e,l,n)}function Au(){return(qe&6)===0?(Pi(0),!1):!0}function mc(){if(je!==null){if(Ye===0)var e=je.return;else e=je,qn=Gl=null,zs(e),Rr=null,Oi=0,e=je;for(;e!==null;)$h(e.alternate,e),e=e.return;je=null}}function Ir(e,n){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,d1(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Pn=0,mc(),Ze=e,je=l=Bn(e.current,null),Oe=n,Ye=0,Jt=null,bl=!1,Yr=gi(e,n),uc=!1,Gr=Pt=oc=$l=xl=nt=0,qt=Ki=null,sc=!1,(n&8)!==0&&(n|=n&32);var u=e.entangledLanes;if(u!==0)for(e=e.entanglements,u&=n;0<u;){var f=31-Qe(u),d=1<<f;n|=e[f],u&=~d}return Jn=n,Za(),l}function kp(e,n){Ce=null,H.H=Vi,n===_r||n===nu?(n=Bm(),Ye=3):n===ys?(n=Bm(),Ye=4):Ye=n===Is?8:n!==null&&typeof n=="object"&&typeof n.then=="function"?6:1,Jt=n,je===null&&(nt=1,gu(e,rn(n,e.current)))}function wp(){var e=Zt.current;return e===null?!0:(Oe&4194048)===Oe?sn===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===sn:!1}function Ep(){var e=H.H;return H.H=Vi,e===null?Vi:e}function Cp(){var e=H.A;return H.A=Fv,e}function Nu(){nt=4,bl||(Oe&4194048)!==Oe&&Zt.current!==null||(Yr=!0),(xl&134217727)===0&&($l&134217727)===0||Ze===null||kl(Ze,Oe,Pt,!1)}function hc(e,n,l){var u=qe;qe|=2;var f=Ep(),d=Cp();(Ze!==e||Oe!==n)&&(Tu=null,Ir(e,n)),n=!1;var x=nt;e:do try{if(Ye!==0&&je!==null){var w=je,z=Jt;switch(Ye){case 8:mc(),x=6;break e;case 3:case 2:case 9:case 6:Zt.current===null&&(n=!0);var V=Ye;if(Ye=0,Jt=null,Xr(e,w,z,V),l&&Yr){x=0;break e}break;default:V=Ye,Ye=0,Jt=null,Xr(e,w,z,V)}}Qv(),x=nt;break}catch(I){kp(e,I)}while(!0);return n&&e.shellSuspendCounter++,qn=Gl=null,qe=u,H.H=f,H.A=d,je===null&&(Ze=null,Oe=0,Za()),x}function Qv(){for(;je!==null;)Tp(je)}function Zv(e,n){var l=qe;qe|=2;var u=Ep(),f=Cp();Ze!==e||Oe!==n?(Tu=null,Cu=At()+500,Ir(e,n)):Yr=gi(e,n);e:do try{if(Ye!==0&&je!==null){n=je;var d=Jt;t:switch(Ye){case 1:Ye=0,Jt=null,Xr(e,n,d,1);break;case 2:case 9:if(Lm(d)){Ye=0,Jt=null,Ap(n);break}n=function(){Ye!==2&&Ye!==9||Ze!==e||(Ye=7),Tn(e)},d.then(n,n);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:Lm(d)?(Ye=0,Jt=null,Ap(n)):(Ye=0,Jt=null,Xr(e,n,d,7));break;case 5:var x=null;switch(je.tag){case 26:x=je.memoizedState;case 5:case 27:var w=je;if(x?dg(x):w.stateNode.complete){Ye=0,Jt=null;var z=w.sibling;if(z!==null)je=z;else{var V=w.return;V!==null?(je=V,zu(V)):je=null}break t}}Ye=0,Jt=null,Xr(e,n,d,5);break;case 6:Ye=0,Jt=null,Xr(e,n,d,6);break;case 8:mc(),nt=6;break e;default:throw Error(a(462))}}Kv();break}catch(I){kp(e,I)}while(!0);return qn=Gl=null,H.H=u,H.A=f,qe=l,je!==null?0:(Ze=null,Oe=0,Za(),nt)}function Kv(){for(;je!==null&&!Ao();)Tp(je)}function Tp(e){var n=Jh(e.alternate,e,Jn);e.memoizedProps=e.pendingProps,n===null?zu(e):je=n}function Ap(e){var n=e,l=n.alternate;switch(n.tag){case 15:case 0:n=Fh(l,n,n.pendingProps,n.type,void 0,Oe);break;case 11:n=Fh(l,n,n.pendingProps,n.type.render,n.ref,Oe);break;case 5:zs(n);default:$h(l,n),n=je=Cm(n,Jn),n=Jh(l,n,Jn)}e.memoizedProps=e.pendingProps,n===null?zu(e):je=n}function Xr(e,n,l,u){qn=Gl=null,zs(n),Rr=null,Oi=0;var f=n.return;try{if(Uv(e,f,n,l,Oe)){nt=1,gu(e,rn(l,e.current)),je=null;return}}catch(d){if(f!==null)throw je=f,d;nt=1,gu(e,rn(l,e.current)),je=null;return}n.flags&32768?(Re||u===1?e=!0:Yr||(Oe&536870912)!==0?e=!1:(bl=e=!0,(u===2||u===9||u===3||u===6)&&(u=Zt.current,u!==null&&u.tag===13&&(u.flags|=16384))),Np(n,e)):zu(n)}function zu(e){var n=e;do{if((n.flags&32768)!==0){Np(n,bl);return}e=n.return;var l=qv(n.alternate,n,Jn);if(l!==null){je=l;return}if(n=n.sibling,n!==null){je=n;return}je=n=e}while(n!==null);nt===0&&(nt=5)}function Np(e,n){do{var l=Vv(e.alternate,e);if(l!==null){l.flags&=32767,je=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!n&&(e=e.sibling,e!==null)){je=e;return}je=e=l}while(e!==null);nt=6,je=null}function zp(e,n,l,u,f,d,x,w,z){e.cancelPendingCommit=null;do ju();while(mt!==0);if((qe&6)!==0)throw Error(a(327));if(n!==null){if(n===e.current)throw Error(a(177));if(d=n.lanes|n.childLanes,d|=ns,N0(e,l,d,x,w,z),e===Ze&&(je=Ze=null,Oe=0),Fr=n,Sl=e,Pn=l,cc=d,fc=f,bp=u,(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Wv(Se,function(){return _p(),null})):(e.callbackNode=null,e.callbackPriority=0),u=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||u){u=H.T,H.T=null,f=te.p,te.p=2,x=qe,qe|=4;try{Yv(e,n,l)}finally{qe=x,te.p=f,H.T=u}}mt=1,jp(),Mp(),Dp()}}function jp(){if(mt===1){mt=0;var e=Sl,n=Fr,l=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||l){l=H.T,H.T=null;var u=te.p;te.p=2;var f=qe;qe|=4;try{cp(n,e);var d=Tc,x=gm(e.containerInfo),w=d.focusedElem,z=d.selectionRange;if(x!==w&&w&&w.ownerDocument&&pm(w.ownerDocument.documentElement,w)){if(z!==null&&Po(w)){var V=z.start,I=z.end;if(I===void 0&&(I=V),"selectionStart"in w)w.selectionStart=V,w.selectionEnd=Math.min(I,w.value.length);else{var J=w.ownerDocument||document,G=J&&J.defaultView||window;if(G.getSelection){var F=G.getSelection(),he=w.textContent.length,ve=Math.min(z.start,he),Xe=z.end===void 0?ve:Math.min(z.end,he);!F.extend&&ve>Xe&&(x=Xe,Xe=ve,ve=x);var U=hm(w,ve),O=hm(w,Xe);if(U&&O&&(F.rangeCount!==1||F.anchorNode!==U.node||F.anchorOffset!==U.offset||F.focusNode!==O.node||F.focusOffset!==O.offset)){var q=J.createRange();q.setStart(U.node,U.offset),F.removeAllRanges(),ve>Xe?(F.addRange(q),F.extend(O.node,O.offset)):(q.setEnd(O.node,O.offset),F.addRange(q))}}}}for(J=[],F=w;F=F.parentNode;)F.nodeType===1&&J.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<J.length;w++){var Z=J[w];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Yu=!!Cc,Tc=Cc=null}finally{qe=f,te.p=u,H.T=l}}e.current=n,mt=2}}function Mp(){if(mt===2){mt=0;var e=Sl,n=Fr,l=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||l){l=H.T,H.T=null;var u=te.p;te.p=2;var f=qe;qe|=4;try{ip(e,n.alternate,n)}finally{qe=f,te.p=u,H.T=l}}mt=3}}function Dp(){if(mt===4||mt===3){mt=0,No();var e=Sl,n=Fr,l=Pn,u=bp;(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?mt=5:(mt=0,Fr=Sl=null,Op(e,e.pendingLanes));var f=e.pendingLanes;if(f===0&&(vl=null),Do(l),n=n.stateNode,dt&&typeof dt.onCommitFiberRoot=="function")try{dt.onCommitFiberRoot(Nt,n,void 0,(n.current.flags&128)===128)}catch{}if(u!==null){n=H.T,f=te.p,te.p=2,H.T=null;try{for(var d=e.onRecoverableError,x=0;x<u.length;x++){var w=u[x];d(w.value,{componentStack:w.stack})}}finally{H.T=n,te.p=f}}(Pn&3)!==0&&ju(),Tn(e),f=e.pendingLanes,(l&261930)!==0&&(f&42)!==0?e===dc?Ji++:(Ji=0,dc=e):Ji=0,Pi(0)}}function Op(e,n){(e.pooledCacheLanes&=n)===0&&(n=e.pooledCache,n!=null&&(e.pooledCache=null,Mi(n)))}function ju(){return jp(),Mp(),Dp(),_p()}function _p(){if(mt!==5)return!1;var e=Sl,n=cc;cc=0;var l=Do(Pn),u=H.T,f=te.p;try{te.p=32>l?32:l,H.T=null,l=fc,fc=null;var d=Sl,x=Pn;if(mt=0,Fr=Sl=null,Pn=0,(qe&6)!==0)throw Error(a(331));var w=qe;if(qe|=4,pp(d.current),dp(d,d.current,x,l),qe=w,Pi(0,!1),dt&&typeof dt.onPostCommitFiberRoot=="function")try{dt.onPostCommitFiberRoot(Nt,d)}catch{}return!0}finally{te.p=f,H.T=u,Op(e,n)}}function Rp(e,n,l){n=rn(l,n),n=Fs(e.stateNode,n,2),e=hl(e,n,2),e!==null&&(yi(e,2),Tn(e))}function Ge(e,n,l){if(e.tag===3)Rp(e,e,l);else for(;n!==null;){if(n.tag===3){Rp(n,e,l);break}else if(n.tag===1){var u=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(vl===null||!vl.has(u))){e=rn(l,e),l=Lh(2),u=hl(n,l,2),u!==null&&(Uh(l,u,n,e),yi(u,2),Tn(u));break}}n=n.return}}function pc(e,n,l){var u=e.pingCache;if(u===null){u=e.pingCache=new Iv;var f=new Set;u.set(n,f)}else f=u.get(n),f===void 0&&(f=new Set,u.set(n,f));f.has(l)||(uc=!0,f.add(l),e=Jv.bind(null,e,n,l),n.then(e,e))}function Jv(e,n,l){var u=e.pingCache;u!==null&&u.delete(n),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ze===e&&(Oe&l)===l&&(nt===4||nt===3&&(Oe&62914560)===Oe&&300>At()-Eu?(qe&2)===0&&Ir(e,0):oc|=l,Gr===Oe&&(Gr=0)),Tn(e)}function Lp(e,n){n===0&&(n=jd()),e=ql(e,n),e!==null&&(yi(e,n),Tn(e))}function Pv(e){var n=e.memoizedState,l=0;n!==null&&(l=n.retryLane),Lp(e,l)}function $v(e,n){var l=0;switch(e.tag){case 31:case 13:var u=e.stateNode,f=e.memoizedState;f!==null&&(l=f.retryLane);break;case 19:u=e.stateNode;break;case 22:u=e.stateNode._retryCache;break;default:throw Error(a(314))}u!==null&&u.delete(n),Lp(e,l)}function Wv(e,n){return mr(e,n)}var Mu=null,Qr=null,gc=!1,Du=!1,yc=!1,wl=0;function Tn(e){e!==Qr&&e.next===null&&(Qr===null?Mu=Qr=e:Qr=Qr.next=e),Du=!0,gc||(gc=!0,t1())}function Pi(e,n){if(!yc&&Du){yc=!0;do for(var l=!1,u=Mu;u!==null;){if(e!==0){var f=u.pendingLanes;if(f===0)var d=0;else{var x=u.suspendedLanes,w=u.pingedLanes;d=(1<<31-Qe(42|e)+1)-1,d&=f&~(x&~w),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(l=!0,qp(u,d))}else d=Oe,d=La(u,u===Ze?d:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(d&3)===0||gi(u,d)||(l=!0,qp(u,d));u=u.next}while(l);yc=!1}}function e1(){Up()}function Up(){Du=gc=!1;var e=0;wl!==0&&f1()&&(e=wl);for(var n=At(),l=null,u=Mu;u!==null;){var f=u.next,d=Bp(u,n);d===0?(u.next=null,l===null?Mu=f:l.next=f,f===null&&(Qr=l)):(l=u,(e!==0||(d&3)!==0)&&(Du=!0)),u=f}mt!==0&&mt!==5||Pi(e),wl!==0&&(wl=0)}function Bp(e,n){for(var l=e.suspendedLanes,u=e.pingedLanes,f=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var x=31-Qe(d),w=1<<x,z=f[x];z===-1?((w&l)===0||(w&u)!==0)&&(f[x]=A0(w,n)):z<=n&&(e.expiredLanes|=w),d&=~w}if(n=Ze,l=Oe,l=La(e,e===n?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u=e.callbackNode,l===0||e===n&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)return u!==null&&u!==null&&pi(u),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||gi(e,l)){if(n=l&-l,n===e.callbackPriority)return n;switch(u!==null&&pi(u),Do(l)){case 2:case 8:l=ue;break;case 32:l=Se;break;case 268435456:l=Ve;break;default:l=Se}return u=Hp.bind(null,e),l=mr(l,u),e.callbackPriority=n,e.callbackNode=l,n}return u!==null&&u!==null&&pi(u),e.callbackPriority=2,e.callbackNode=null,2}function Hp(e,n){if(mt!==0&&mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ju()&&e.callbackNode!==l)return null;var u=Oe;return u=La(e,e===Ze?u:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),u===0?null:(vp(e,u,n),Bp(e,At()),e.callbackNode!=null&&e.callbackNode===l?Hp.bind(null,e):null)}function qp(e,n){if(ju())return null;vp(e,n,!0)}function t1(){m1(function(){(qe&6)!==0?mr(Q,e1):Up()})}function bc(){if(wl===0){var e=Dr;e===0&&(e=Oa,Oa<<=1,(Oa&261888)===0&&(Oa=256)),wl=e}return wl}function Vp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:qa(""+e)}function Yp(e,n){var l=n.ownerDocument.createElement("input");return l.name=n.name,l.value=n.value,e.id&&l.setAttribute("form",e.id),n.parentNode.insertBefore(l,n),e=new FormData(e),l.parentNode.removeChild(l),e}function n1(e,n,l,u,f){if(n==="submit"&&l&&l.stateNode===f){var d=Vp((f[Rt]||null).action),x=u.submitter;x&&(n=(n=x[Rt]||null)?Vp(n.formAction):x.getAttribute("formAction"),n!==null&&(d=n,x=null));var w=new Fa("action","action",null,u,f);e.push({event:w,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(wl!==0){var z=x?Yp(f,x):new FormData(f);Bs(l,{pending:!0,data:z,method:f.method,action:d},null,z)}}else typeof d=="function"&&(w.preventDefault(),z=x?Yp(f,x):new FormData(f),Bs(l,{pending:!0,data:z,method:f.method,action:d},d,z))},currentTarget:f}]})}}for(var xc=0;xc<ts.length;xc++){var vc=ts[xc],l1=vc.toLowerCase(),r1=vc[0].toUpperCase()+vc.slice(1);gn(l1,"on"+r1)}gn(xm,"onAnimationEnd"),gn(vm,"onAnimationIteration"),gn(Sm,"onAnimationStart"),gn("dblclick","onDoubleClick"),gn("focusin","onFocus"),gn("focusout","onBlur"),gn(vv,"onTransitionRun"),gn(Sv,"onTransitionStart"),gn(kv,"onTransitionCancel"),gn(km,"onTransitionEnd"),br("onMouseEnter",["mouseout","mouseover"]),br("onMouseLeave",["mouseout","mouseover"]),br("onPointerEnter",["pointerout","pointerover"]),br("onPointerLeave",["pointerout","pointerover"]),Ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $i="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(" "),i1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($i));function Gp(e,n){n=(n&4)!==0;for(var l=0;l<e.length;l++){var u=e[l],f=u.event;u=u.listeners;e:{var d=void 0;if(n)for(var x=u.length-1;0<=x;x--){var w=u[x],z=w.instance,V=w.currentTarget;if(w=w.listener,z!==d&&f.isPropagationStopped())break e;d=w,f.currentTarget=V;try{d(f)}catch(I){Qa(I)}f.currentTarget=null,d=z}else for(x=0;x<u.length;x++){if(w=u[x],z=w.instance,V=w.currentTarget,w=w.listener,z!==d&&f.isPropagationStopped())break e;d=w,f.currentTarget=V;try{d(f)}catch(I){Qa(I)}f.currentTarget=null,d=z}}}}function Me(e,n){var l=n[Oo];l===void 0&&(l=n[Oo]=new Set);var u=e+"__bubble";l.has(u)||(Fp(n,e,2,!1),l.add(u))}function Sc(e,n,l){var u=0;n&&(u|=4),Fp(l,e,u,n)}var Ou="_reactListening"+Math.random().toString(36).slice(2);function kc(e){if(!e[Ou]){e[Ou]=!0,Ud.forEach(function(l){l!=="selectionchange"&&(i1.has(l)||Sc(l,!1,e),Sc(l,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Ou]||(n[Ou]=!0,Sc("selectionchange",!1,n))}}function Fp(e,n,l,u){switch(xg(n)){case 2:var f=O1;break;case 8:f=_1;break;default:f=Uc}l=f.bind(null,n,l,e),f=void 0,!Yo||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),u?f!==void 0?e.addEventListener(n,l,{capture:!0,passive:f}):e.addEventListener(n,l,!0):f!==void 0?e.addEventListener(n,l,{passive:f}):e.addEventListener(n,l,!1)}function wc(e,n,l,u,f){var d=u;if((n&1)===0&&(n&2)===0&&u!==null)e:for(;;){if(u===null)return;var x=u.tag;if(x===3||x===4){var w=u.stateNode.containerInfo;if(w===f)break;if(x===4)for(x=u.return;x!==null;){var z=x.tag;if((z===3||z===4)&&x.stateNode.containerInfo===f)return;x=x.return}for(;w!==null;){if(x=pr(w),x===null)return;if(z=x.tag,z===5||z===6||z===26||z===27){u=d=x;continue e}w=w.parentNode}}u=u.return}Kd(function(){var V=d,I=qo(l),J=[];e:{var G=wm.get(e);if(G!==void 0){var F=Fa,he=e;switch(e){case"keypress":if(Ya(l)===0)break e;case"keydown":case"keyup":F=$0;break;case"focusin":he="focus",F=Xo;break;case"focusout":he="blur",F=Xo;break;case"beforeblur":case"afterblur":F=Xo;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":F=$d;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=q0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=tv;break;case xm:case vm:case Sm:F=G0;break;case km:F=lv;break;case"scroll":case"scrollend":F=B0;break;case"wheel":F=iv;break;case"copy":case"cut":case"paste":F=I0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=em;break;case"toggle":case"beforetoggle":F=uv}var ve=(n&4)!==0,Xe=!ve&&(e==="scroll"||e==="scrollend"),U=ve?G!==null?G+"Capture":null:G;ve=[];for(var O=V,q;O!==null;){var Z=O;if(q=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||q===null||U===null||(Z=vi(O,U),Z!=null&&ve.push(Wi(O,Z,q))),Xe)break;O=O.return}0<ve.length&&(G=new F(G,he,null,l,I),J.push({event:G,listeners:ve}))}}if((n&7)===0){e:{if(G=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",G&&l!==Ho&&(he=l.relatedTarget||l.fromElement)&&(pr(he)||he[hr]))break e;if((F||G)&&(G=I.window===I?I:(G=I.ownerDocument)?G.defaultView||G.parentWindow:window,F?(he=l.relatedTarget||l.toElement,F=V,he=he?pr(he):null,he!==null&&(Xe=c(he),ve=he.tag,he!==Xe||ve!==5&&ve!==27&&ve!==6)&&(he=null)):(F=null,he=V),F!==he)){if(ve=$d,Z="onMouseLeave",U="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(ve=em,Z="onPointerLeave",U="onPointerEnter",O="pointer"),Xe=F==null?G:xi(F),q=he==null?G:xi(he),G=new ve(Z,O+"leave",F,l,I),G.target=Xe,G.relatedTarget=q,Z=null,pr(I)===V&&(ve=new ve(U,O+"enter",he,l,I),ve.target=q,ve.relatedTarget=Xe,Z=ve),Xe=Z,F&&he)t:{for(ve=a1,U=F,O=he,q=0,Z=U;Z;Z=ve(Z))q++;Z=0;for(var be=O;be;be=ve(be))Z++;for(;0<q-Z;)U=ve(U),q--;for(;0<Z-q;)O=ve(O),Z--;for(;q--;){if(U===O||O!==null&&U===O.alternate){ve=U;break t}U=ve(U),O=ve(O)}ve=null}else ve=null;F!==null&&Ip(J,G,F,ve,!1),he!==null&&Xe!==null&&Ip(J,Xe,he,ve,!0)}}e:{if(G=V?xi(V):window,F=G.nodeName&&G.nodeName.toLowerCase(),F==="select"||F==="input"&&G.type==="file")var Ue=om;else if(am(G))if(sm)Ue=yv;else{Ue=pv;var ye=hv}else F=G.nodeName,!F||F.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?V&&Bo(V.elementType)&&(Ue=om):Ue=gv;if(Ue&&(Ue=Ue(e,V))){um(J,Ue,l,I);break e}ye&&ye(e,G,V),e==="focusout"&&V&&G.type==="number"&&V.memoizedProps.value!=null&&Uo(G,"number",G.value)}switch(ye=V?xi(V):window,e){case"focusin":(am(ye)||ye.contentEditable==="true")&&(Er=ye,$o=V,Ni=null);break;case"focusout":Ni=$o=Er=null;break;case"mousedown":Wo=!0;break;case"contextmenu":case"mouseup":case"dragend":Wo=!1,ym(J,l,I);break;case"selectionchange":if(xv)break;case"keydown":case"keyup":ym(J,l,I)}var Ae;if(Zo)e:{switch(e){case"compositionstart":var _e="onCompositionStart";break e;case"compositionend":_e="onCompositionEnd";break e;case"compositionupdate":_e="onCompositionUpdate";break e}_e=void 0}else wr?rm(e,l)&&(_e="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(_e="onCompositionStart");_e&&(tm&&l.locale!=="ko"&&(wr||_e!=="onCompositionStart"?_e==="onCompositionEnd"&&wr&&(Ae=Jd()):(ul=I,Go="value"in ul?ul.value:ul.textContent,wr=!0)),ye=_u(V,_e),0<ye.length&&(_e=new Wd(_e,e,null,l,I),J.push({event:_e,listeners:ye}),Ae?_e.data=Ae:(Ae=im(l),Ae!==null&&(_e.data=Ae)))),(Ae=sv?cv(e,l):fv(e,l))&&(_e=_u(V,"onBeforeInput"),0<_e.length&&(ye=new Wd("onBeforeInput","beforeinput",null,l,I),J.push({event:ye,listeners:_e}),ye.data=Ae)),n1(J,e,V,l,I)}Gp(J,n)})}function Wi(e,n,l){return{instance:e,listener:n,currentTarget:l}}function _u(e,n){for(var l=n+"Capture",u=[];e!==null;){var f=e,d=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||d===null||(f=vi(e,l),f!=null&&u.unshift(Wi(e,f,d)),f=vi(e,n),f!=null&&u.push(Wi(e,f,d))),e.tag===3)return u;e=e.return}return[]}function a1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ip(e,n,l,u,f){for(var d=n._reactName,x=[];l!==null&&l!==u;){var w=l,z=w.alternate,V=w.stateNode;if(w=w.tag,z!==null&&z===u)break;w!==5&&w!==26&&w!==27||V===null||(z=V,f?(V=vi(l,d),V!=null&&x.unshift(Wi(l,V,z))):f||(V=vi(l,d),V!=null&&x.push(Wi(l,V,z)))),l=l.return}x.length!==0&&e.push({event:n,listeners:x})}var u1=/\r\n?/g,o1=/\u0000|\uFFFD/g;function Xp(e){return(typeof e=="string"?e:""+e).replace(u1,`
49
- `).replace(o1,"")}function Qp(e,n){return n=Xp(n),Xp(e)===n}function Ie(e,n,l,u,f,d){switch(l){case"children":typeof u=="string"?n==="body"||n==="textarea"&&u===""||vr(e,u):(typeof u=="number"||typeof u=="bigint")&&n!=="body"&&vr(e,""+u);break;case"className":Ba(e,"class",u);break;case"tabIndex":Ba(e,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":Ba(e,l,u);break;case"style":Qd(e,u,d);break;case"data":if(n!=="object"){Ba(e,"data",u);break}case"src":case"href":if(u===""&&(n!=="a"||l!=="href")){e.removeAttribute(l);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(l);break}u=qa(""+u),e.setAttribute(l,u);break;case"action":case"formAction":if(typeof u=="function"){e.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 d=="function"&&(l==="formAction"?(n!=="input"&&Ie(e,n,"name",f.name,f,null),Ie(e,n,"formEncType",f.formEncType,f,null),Ie(e,n,"formMethod",f.formMethod,f,null),Ie(e,n,"formTarget",f.formTarget,f,null)):(Ie(e,n,"encType",f.encType,f,null),Ie(e,n,"method",f.method,f,null),Ie(e,n,"target",f.target,f,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){e.removeAttribute(l);break}u=qa(""+u),e.setAttribute(l,u);break;case"onClick":u!=null&&(e.onclick=Ln);break;case"onScroll":u!=null&&Me("scroll",e);break;case"onScrollEnd":u!=null&&Me("scrollend",e);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=l}}break;case"multiple":e.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":e.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){e.removeAttribute("xlink:href");break}l=qa(""+u),e.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":u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(l,""+u):e.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":u&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":u===!0?e.setAttribute(l,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?e.setAttribute(l,u):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?e.setAttribute(l,u):e.removeAttribute(l);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?e.removeAttribute(l):e.setAttribute(l,u);break;case"popover":Me("beforetoggle",e),Me("toggle",e),Ua(e,"popover",u);break;case"xlinkActuate":Rn(e,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Rn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Rn(e,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Rn(e,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Rn(e,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Rn(e,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Rn(e,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Ua(e,"is",u);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=L0.get(l)||l,Ua(e,l,u))}}function Ec(e,n,l,u,f,d){switch(l){case"style":Qd(e,u,d);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(a(61));if(l=u.__html,l!=null){if(f.children!=null)throw Error(a(60));e.innerHTML=l}}break;case"children":typeof u=="string"?vr(e,u):(typeof u=="number"||typeof u=="bigint")&&vr(e,""+u);break;case"onScroll":u!=null&&Me("scroll",e);break;case"onScrollEnd":u!=null&&Me("scrollend",e);break;case"onClick":u!=null&&(e.onclick=Ln);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bd.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(f=l.endsWith("Capture"),n=l.slice(2,f?l.length-7:void 0),d=e[Rt]||null,d=d!=null?d[l]:null,typeof d=="function"&&e.removeEventListener(n,d,f),typeof u=="function")){typeof d!="function"&&d!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(n,u,f);break e}l in e?e[l]=u:u===!0?e.setAttribute(l,""):Ua(e,l,u)}}}function kt(e,n,l){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Me("error",e),Me("load",e);var u=!1,f=!1,d;for(d in l)if(l.hasOwnProperty(d)){var x=l[d];if(x!=null)switch(d){case"src":u=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Ie(e,n,d,x,l,null)}}f&&Ie(e,n,"srcSet",l.srcSet,l,null),u&&Ie(e,n,"src",l.src,l,null);return;case"input":Me("invalid",e);var w=d=x=f=null,z=null,V=null;for(u in l)if(l.hasOwnProperty(u)){var I=l[u];if(I!=null)switch(u){case"name":f=I;break;case"type":x=I;break;case"checked":z=I;break;case"defaultChecked":V=I;break;case"value":d=I;break;case"defaultValue":w=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(a(137,n));break;default:Ie(e,n,u,I,l,null)}}Gd(e,d,w,z,V,x,f,!1);return;case"select":Me("invalid",e),u=x=d=null;for(f in l)if(l.hasOwnProperty(f)&&(w=l[f],w!=null))switch(f){case"value":d=w;break;case"defaultValue":x=w;break;case"multiple":u=w;default:Ie(e,n,f,w,l,null)}n=d,l=x,e.multiple=!!u,n!=null?xr(e,!!u,n,!1):l!=null&&xr(e,!!u,l,!0);return;case"textarea":Me("invalid",e),d=f=u=null;for(x in l)if(l.hasOwnProperty(x)&&(w=l[x],w!=null))switch(x){case"value":u=w;break;case"defaultValue":f=w;break;case"children":d=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(a(91));break;default:Ie(e,n,x,w,l,null)}Id(e,u,f,d);return;case"option":for(z in l)if(l.hasOwnProperty(z)&&(u=l[z],u!=null))switch(z){case"selected":e.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:Ie(e,n,z,u,l,null)}return;case"dialog":Me("beforetoggle",e),Me("toggle",e),Me("cancel",e),Me("close",e);break;case"iframe":case"object":Me("load",e);break;case"video":case"audio":for(u=0;u<$i.length;u++)Me($i[u],e);break;case"image":Me("error",e),Me("load",e);break;case"details":Me("toggle",e);break;case"embed":case"source":case"link":Me("error",e),Me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in l)if(l.hasOwnProperty(V)&&(u=l[V],u!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,n));default:Ie(e,n,V,u,l,null)}return;default:if(Bo(n)){for(I in l)l.hasOwnProperty(I)&&(u=l[I],u!==void 0&&Ec(e,n,I,u,l,void 0));return}}for(w in l)l.hasOwnProperty(w)&&(u=l[w],u!=null&&Ie(e,n,w,u,l,null))}function s1(e,n,l,u){switch(n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,d=null,x=null,w=null,z=null,V=null,I=null;for(F in l){var J=l[F];if(l.hasOwnProperty(F)&&J!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":z=J;default:u.hasOwnProperty(F)||Ie(e,n,F,null,u,J)}}for(var G in u){var F=u[G];if(J=l[G],u.hasOwnProperty(G)&&(F!=null||J!=null))switch(G){case"type":d=F;break;case"name":f=F;break;case"checked":V=F;break;case"defaultChecked":I=F;break;case"value":x=F;break;case"defaultValue":w=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(a(137,n));break;default:F!==J&&Ie(e,n,G,F,u,J)}}Lo(e,x,w,z,V,I,d,f);return;case"select":F=x=w=G=null;for(d in l)if(z=l[d],l.hasOwnProperty(d)&&z!=null)switch(d){case"value":break;case"multiple":F=z;default:u.hasOwnProperty(d)||Ie(e,n,d,null,u,z)}for(f in u)if(d=u[f],z=l[f],u.hasOwnProperty(f)&&(d!=null||z!=null))switch(f){case"value":G=d;break;case"defaultValue":w=d;break;case"multiple":x=d;default:d!==z&&Ie(e,n,f,d,u,z)}n=w,l=x,u=F,G!=null?xr(e,!!l,G,!1):!!u!=!!l&&(n!=null?xr(e,!!l,n,!0):xr(e,!!l,l?[]:"",!1));return;case"textarea":F=G=null;for(w in l)if(f=l[w],l.hasOwnProperty(w)&&f!=null&&!u.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ie(e,n,w,null,u,f)}for(x in u)if(f=u[x],d=l[x],u.hasOwnProperty(x)&&(f!=null||d!=null))switch(x){case"value":G=f;break;case"defaultValue":F=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==d&&Ie(e,n,x,f,u,d)}Fd(e,G,F);return;case"option":for(var he in l)if(G=l[he],l.hasOwnProperty(he)&&G!=null&&!u.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Ie(e,n,he,null,u,G)}for(z in u)if(G=u[z],F=l[z],u.hasOwnProperty(z)&&G!==F&&(G!=null||F!=null))switch(z){case"selected":e.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:Ie(e,n,z,G,u,F)}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 ve in l)G=l[ve],l.hasOwnProperty(ve)&&G!=null&&!u.hasOwnProperty(ve)&&Ie(e,n,ve,null,u,G);for(V in u)if(G=u[V],F=l[V],u.hasOwnProperty(V)&&G!==F&&(G!=null||F!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(a(137,n));break;default:Ie(e,n,V,G,u,F)}return;default:if(Bo(n)){for(var Xe in l)G=l[Xe],l.hasOwnProperty(Xe)&&G!==void 0&&!u.hasOwnProperty(Xe)&&Ec(e,n,Xe,void 0,u,G);for(I in u)G=u[I],F=l[I],!u.hasOwnProperty(I)||G===F||G===void 0&&F===void 0||Ec(e,n,I,G,u,F);return}}for(var U in l)G=l[U],l.hasOwnProperty(U)&&G!=null&&!u.hasOwnProperty(U)&&Ie(e,n,U,null,u,G);for(J in u)G=u[J],F=l[J],!u.hasOwnProperty(J)||G===F||G==null&&F==null||Ie(e,n,J,G,u,F)}function Zp(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function c1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,n=0,l=performance.getEntriesByType("resource"),u=0;u<l.length;u++){var f=l[u],d=f.transferSize,x=f.initiatorType,w=f.duration;if(d&&w&&Zp(x)){for(x=0,w=f.responseEnd,u+=1;u<l.length;u++){var z=l[u],V=z.startTime;if(V>w)break;var I=z.transferSize,J=z.initiatorType;I&&Zp(J)&&(z=z.responseEnd,x+=I*(z<w?1:(w-V)/(z-V)))}if(--u,n+=8*(d+x)/(f.duration/1e3),e++,10<e)break}}if(0<e)return n/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Cc=null,Tc=null;function Ru(e){return e.nodeType===9?e:e.ownerDocument}function Kp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Jp(e,n){if(e===0)switch(n){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&n==="foreignObject"?0:e}function Ac(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Nc=null;function f1(){var e=window.event;return e&&e.type==="popstate"?e===Nc?!1:(Nc=e,!0):(Nc=null,!1)}var Pp=typeof setTimeout=="function"?setTimeout:void 0,d1=typeof clearTimeout=="function"?clearTimeout:void 0,$p=typeof Promise=="function"?Promise:void 0,m1=typeof queueMicrotask=="function"?queueMicrotask:typeof $p<"u"?function(e){return $p.resolve(null).then(e).catch(h1)}:Pp;function h1(e){setTimeout(function(){throw e})}function El(e){return e==="head"}function Wp(e,n){var l=n,u=0;do{var f=l.nextSibling;if(e.removeChild(l),f&&f.nodeType===8)if(l=f.data,l==="/$"||l==="/&"){if(u===0){e.removeChild(f),Pr(n);return}u--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")u++;else if(l==="html")ea(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ea(l);for(var d=l.firstChild;d;){var x=d.nextSibling,w=d.nodeName;d[bi]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&d.rel.toLowerCase()==="stylesheet"||l.removeChild(d),d=x}}else l==="body"&&ea(e.ownerDocument.body);l=f}while(l);Pr(n)}function eg(e,n){var l=e;e=0;do{var u=l.nextSibling;if(l.nodeType===1?n?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(n?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),u&&u.nodeType===8)if(l=u.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=u}while(l)}function zc(e){var n=e.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var l=n;switch(n=n.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":zc(l),_o(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function p1(e,n,l,u){for(;e.nodeType===1;){var f=l;if(e.nodeName.toLowerCase()!==n.toLowerCase()){if(!u&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(u){if(!e[bi])switch(n){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==f.rel||e.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||e.getAttribute("title")!==(f.title==null?null:f.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(f.src==null?null:f.src)||e.getAttribute("type")!==(f.type==null?null:f.type)||e.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(n==="input"&&e.type==="hidden"){var d=f.name==null?null:""+f.name;if(f.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=cn(e.nextSibling),e===null)break}return null}function g1(e,n,l){if(n==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=cn(e.nextSibling),e===null))return null;return e}function tg(e,n){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=cn(e.nextSibling),e===null))return null;return e}function jc(e){return e.data==="$?"||e.data==="$~"}function Mc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function y1(e,n){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=n;else if(e.data!=="$?"||l.readyState!=="loading")n();else{var u=function(){n(),l.removeEventListener("DOMContentLoaded",u)};l.addEventListener("DOMContentLoaded",u),e._reactRetry=u}}function cn(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"||n==="F!"||n==="F")break;if(n==="/$"||n==="/&")return null}}return e}var Dc=null;function ng(e){e=e.nextSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(n===0)return cn(e.nextSibling);n--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||n++}e=e.nextSibling}return null}function lg(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(n===0)return e;n--}else l!=="/$"&&l!=="/&"||n++}e=e.previousSibling}return null}function rg(e,n,l){switch(n=Ru(l),e){case"html":if(e=n.documentElement,!e)throw Error(a(452));return e;case"head":if(e=n.head,!e)throw Error(a(453));return e;case"body":if(e=n.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function ea(e){for(var n=e.attributes;n.length;)e.removeAttributeNode(n[0]);_o(e)}var fn=new Map,ig=new Set;function Lu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var $n=te.d;te.d={f:b1,r:x1,D:v1,C:S1,L:k1,m:w1,X:C1,S:E1,M:T1};function b1(){var e=$n.f(),n=Au();return e||n}function x1(e){var n=gr(e);n!==null&&n.tag===5&&n.type==="form"?kh(n):$n.r(e)}var Zr=typeof document>"u"?null:document;function ag(e,n,l){var u=Zr;if(u&&typeof n=="string"&&n){var f=nn(n);f='link[rel="'+e+'"][href="'+f+'"]',typeof l=="string"&&(f+='[crossorigin="'+l+'"]'),ig.has(f)||(ig.add(f),e={rel:e,crossOrigin:l,href:n},u.querySelector(f)===null&&(n=u.createElement("link"),kt(n,"link",e),pt(n),u.head.appendChild(n)))}}function v1(e){$n.D(e),ag("dns-prefetch",e,null)}function S1(e,n){$n.C(e,n),ag("preconnect",e,n)}function k1(e,n,l){$n.L(e,n,l);var u=Zr;if(u&&e&&n){var f='link[rel="preload"][as="'+nn(n)+'"]';n==="image"&&l&&l.imageSrcSet?(f+='[imagesrcset="'+nn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(f+='[imagesizes="'+nn(l.imageSizes)+'"]')):f+='[href="'+nn(e)+'"]';var d=f;switch(n){case"style":d=Kr(e);break;case"script":d=Jr(e)}fn.has(d)||(e=g({rel:"preload",href:n==="image"&&l&&l.imageSrcSet?void 0:e,as:n},l),fn.set(d,e),u.querySelector(f)!==null||n==="style"&&u.querySelector(ta(d))||n==="script"&&u.querySelector(na(d))||(n=u.createElement("link"),kt(n,"link",e),pt(n),u.head.appendChild(n)))}}function w1(e,n){$n.m(e,n);var l=Zr;if(l&&e){var u=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+nn(u)+'"][href="'+nn(e)+'"]',d=f;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=Jr(e)}if(!fn.has(d)&&(e=g({rel:"modulepreload",href:e},n),fn.set(d,e),l.querySelector(f)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(na(d)))return}u=l.createElement("link"),kt(u,"link",e),pt(u),l.head.appendChild(u)}}}function E1(e,n,l){$n.S(e,n,l);var u=Zr;if(u&&e){var f=yr(u).hoistableStyles,d=Kr(e);n=n||"default";var x=f.get(d);if(!x){var w={loading:0,preload:null};if(x=u.querySelector(ta(d)))w.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":n},l),(l=fn.get(d))&&Oc(e,l);var z=x=u.createElement("link");pt(z),kt(z,"link",e),z._p=new Promise(function(V,I){z.onload=V,z.onerror=I}),z.addEventListener("load",function(){w.loading|=1}),z.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Uu(x,n,u)}x={type:"stylesheet",instance:x,count:1,state:w},f.set(d,x)}}}function C1(e,n){$n.X(e,n);var l=Zr;if(l&&e){var u=yr(l).hoistableScripts,f=Jr(e),d=u.get(f);d||(d=l.querySelector(na(f)),d||(e=g({src:e,async:!0},n),(n=fn.get(f))&&_c(e,n),d=l.createElement("script"),pt(d),kt(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},u.set(f,d))}}function T1(e,n){$n.M(e,n);var l=Zr;if(l&&e){var u=yr(l).hoistableScripts,f=Jr(e),d=u.get(f);d||(d=l.querySelector(na(f)),d||(e=g({src:e,async:!0,type:"module"},n),(n=fn.get(f))&&_c(e,n),d=l.createElement("script"),pt(d),kt(d,"link",e),l.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},u.set(f,d))}}function ug(e,n,l,u){var f=(f=le.current)?Lu(f):null;if(!f)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(n=Kr(l.href),l=yr(f).hoistableStyles,u=l.get(n),u||(u={type:"style",instance:null,count:0,state:null},l.set(n,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Kr(l.href);var d=yr(f).hoistableStyles,x=d.get(e);if(x||(f=f.ownerDocument||f,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,x),(d=f.querySelector(ta(e)))&&!d._p&&(x.instance=d,x.state.loading=5),fn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},fn.set(e,l),d||A1(f,e,l,x.state))),n&&u===null)throw Error(a(528,""));return x}if(n&&u!==null)throw Error(a(529,""));return null;case"script":return n=l.async,l=l.src,typeof l=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Jr(l),l=yr(f).hoistableScripts,u=l.get(n),u||(u={type:"script",instance:null,count:0,state:null},l.set(n,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function Kr(e){return'href="'+nn(e)+'"'}function ta(e){return'link[rel="stylesheet"]['+e+"]"}function og(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function A1(e,n,l,u){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?u.loading=1:(n=e.createElement("link"),u.preload=n,n.addEventListener("load",function(){return u.loading|=1}),n.addEventListener("error",function(){return u.loading|=2}),kt(n,"link",l),pt(n),e.head.appendChild(n))}function Jr(e){return'[src="'+nn(e)+'"]'}function na(e){return"script[async]"+e}function sg(e,n,l){if(n.count++,n.instance===null)switch(n.type){case"style":var u=e.querySelector('style[data-href~="'+nn(l.href)+'"]');if(u)return n.instance=u,pt(u),u;var f=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return u=(e.ownerDocument||e).createElement("style"),pt(u),kt(u,"style",f),Uu(u,l.precedence,e),n.instance=u;case"stylesheet":f=Kr(l.href);var d=e.querySelector(ta(f));if(d)return n.state.loading|=4,n.instance=d,pt(d),d;u=og(l),(f=fn.get(f))&&Oc(u,f),d=(e.ownerDocument||e).createElement("link"),pt(d);var x=d;return x._p=new Promise(function(w,z){x.onload=w,x.onerror=z}),kt(d,"link",u),n.state.loading|=4,Uu(d,l.precedence,e),n.instance=d;case"script":return d=Jr(l.src),(f=e.querySelector(na(d)))?(n.instance=f,pt(f),f):(u=l,(f=fn.get(d))&&(u=g({},l),_c(u,f)),e=e.ownerDocument||e,f=e.createElement("script"),pt(f),kt(f,"link",u),e.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error(a(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(u=n.instance,n.state.loading|=4,Uu(u,l.precedence,e));return n.instance}function Uu(e,n,l){for(var u=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=u.length?u[u.length-1]:null,d=f,x=0;x<u.length;x++){var w=u[x];if(w.dataset.precedence===n)d=w;else if(d!==f)break}d?d.parentNode.insertBefore(e,d.nextSibling):(n=l.nodeType===9?l.head:l,n.insertBefore(e,n.firstChild))}function Oc(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.title==null&&(e.title=n.title)}function _c(e,n){e.crossOrigin==null&&(e.crossOrigin=n.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=n.referrerPolicy),e.integrity==null&&(e.integrity=n.integrity)}var Bu=null;function cg(e,n,l){if(Bu===null){var u=new Map,f=Bu=new Map;f.set(l,u)}else f=Bu,u=f.get(l),u||(u=new Map,f.set(l,u));if(u.has(e))return u;for(u.set(e,null),l=l.getElementsByTagName(e),f=0;f<l.length;f++){var d=l[f];if(!(d[bi]||d[bt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var x=d.getAttribute(n)||"";x=e+x;var w=u.get(x);w?w.push(d):u.set(x,[d])}}return u}function fg(e,n,l){e=e.ownerDocument||e,e.head.insertBefore(l,n==="title"?e.querySelector("head > title"):null)}function N1(e,n,l){if(l===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;switch(n.rel){case"stylesheet":return e=n.disabled,typeof n.precedence=="string"&&e==null;default:return!0}case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function dg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function z1(e,n,l,u){if(l.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var f=Kr(u.href),d=n.querySelector(ta(f));if(d){n=d._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=Hu.bind(e),n.then(e,e)),l.state.loading|=4,l.instance=d,pt(d);return}d=n.ownerDocument||n,u=og(u),(f=fn.get(f))&&Oc(u,f),d=d.createElement("link"),pt(d);var x=d;x._p=new Promise(function(w,z){x.onload=w,x.onerror=z}),kt(d,"link",u),l.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,n),(n=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Hu.bind(e),n.addEventListener("load",l),n.addEventListener("error",l))}}var Rc=0;function j1(e,n){return e.stylesheets&&e.count===0&&Vu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var u=setTimeout(function(){if(e.stylesheets&&Vu(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+n);0<e.imgBytes&&Rc===0&&(Rc=62500*c1());var f=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Vu(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>Rc?50:800)+n);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(u),clearTimeout(f)}}:null}function Hu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var qu=null;function Vu(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,qu=new Map,n.forEach(M1,e),qu=null,Hu.call(e))}function M1(e,n){if(!(n.state.loading&4)){var l=qu.get(e);if(l)var u=l.get(null);else{l=new Map,qu.set(e,l);for(var f=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<f.length;d++){var x=f[d];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(l.set(x.dataset.precedence,x),u=x)}u&&l.set(null,u)}f=n.instance,x=f.getAttribute("data-precedence"),d=l.get(x)||u,d===u&&l.set(null,f),l.set(x,f),this.count++,u=Hu.bind(this),f.addEventListener("load",u),f.addEventListener("error",u),d?d.parentNode.insertBefore(f,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(f,e.firstChild)),n.state.loading|=4}}var la={$$typeof:R,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function D1(e,n,l,u,f,d,x,w,z){this.tag=1,this.containerInfo=e,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=jo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jo(0),this.hiddenUpdates=jo(null),this.identifierPrefix=u,this.onUncaughtError=f,this.onCaughtError=d,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function mg(e,n,l,u,f,d,x,w,z,V,I,J){return e=new D1(e,n,l,x,z,V,I,J,w),n=1,d===!0&&(n|=24),d=Qt(3,null,null,n),e.current=d,d.stateNode=e,n=hs(),n.refCount++,e.pooledCache=n,n.refCount++,d.memoizedState={element:u,isDehydrated:l,cache:n},bs(d),e}function hg(e){return e?(e=Ar,e):Ar}function pg(e,n,l,u,f,d){f=hg(f),u.context===null?u.context=f:u.pendingContext=f,u=ml(n),u.payload={element:l},d=d===void 0?null:d,d!==null&&(u.callback=d),l=hl(e,u,n),l!==null&&(Vt(l,e,n),Ri(l,e,n))}function gg(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<n?l:n}}function Lc(e,n){gg(e,n),(e=e.alternate)&&gg(e,n)}function yg(e){if(e.tag===13||e.tag===31){var n=ql(e,67108864);n!==null&&Vt(n,e,67108864),Lc(e,67108864)}}function bg(e){if(e.tag===13||e.tag===31){var n=$t();n=Mo(n);var l=ql(e,n);l!==null&&Vt(l,e,n),Lc(e,n)}}var Yu=!0;function O1(e,n,l,u){var f=H.T;H.T=null;var d=te.p;try{te.p=2,Uc(e,n,l,u)}finally{te.p=d,H.T=f}}function _1(e,n,l,u){var f=H.T;H.T=null;var d=te.p;try{te.p=8,Uc(e,n,l,u)}finally{te.p=d,H.T=f}}function Uc(e,n,l,u){if(Yu){var f=Bc(u);if(f===null)wc(e,n,u,Gu,l),vg(e,u);else if(L1(f,e,n,l,u))u.stopPropagation();else if(vg(e,u),n&4&&-1<R1.indexOf(e)){for(;f!==null;){var d=gr(f);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var x=Rl(d.pendingLanes);if(x!==0){var w=d;for(w.pendingLanes|=2,w.entangledLanes|=2;x;){var z=1<<31-Qe(x);w.entanglements[1]|=z,x&=~z}Tn(d),(qe&6)===0&&(Cu=At()+500,Pi(0))}}break;case 31:case 13:w=ql(d,2),w!==null&&Vt(w,d,2),Au(),Lc(d,2)}if(d=Bc(u),d===null&&wc(e,n,u,Gu,l),d===f)break;f=d}f!==null&&u.stopPropagation()}else wc(e,n,u,null,l)}}function Bc(e){return e=qo(e),Hc(e)}var Gu=null;function Hc(e){if(Gu=null,e=pr(e),e!==null){var n=c(e);if(n===null)e=null;else{var l=n.tag;if(l===13){if(e=s(n),e!==null)return e;e=null}else if(l===31){if(e=m(n),e!==null)return e;e=null}else if(l===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null)}}return Gu=e,null}function xg(e){switch(e){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(zo()){case Q:return 2;case ue:return 8;case Se:case ze:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var qc=!1,Cl=null,Tl=null,Al=null,ra=new Map,ia=new Map,Nl=[],R1="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 vg(e,n){switch(e){case"focusin":case"focusout":Cl=null;break;case"dragenter":case"dragleave":Tl=null;break;case"mouseover":case"mouseout":Al=null;break;case"pointerover":case"pointerout":ra.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":ia.delete(n.pointerId)}}function aa(e,n,l,u,f,d){return e===null||e.nativeEvent!==d?(e={blockedOn:n,domEventName:l,eventSystemFlags:u,nativeEvent:d,targetContainers:[f]},n!==null&&(n=gr(n),n!==null&&yg(n)),e):(e.eventSystemFlags|=u,n=e.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),e)}function L1(e,n,l,u,f){switch(n){case"focusin":return Cl=aa(Cl,e,n,l,u,f),!0;case"dragenter":return Tl=aa(Tl,e,n,l,u,f),!0;case"mouseover":return Al=aa(Al,e,n,l,u,f),!0;case"pointerover":var d=f.pointerId;return ra.set(d,aa(ra.get(d)||null,e,n,l,u,f)),!0;case"gotpointercapture":return d=f.pointerId,ia.set(d,aa(ia.get(d)||null,e,n,l,u,f)),!0}return!1}function Sg(e){var n=pr(e.target);if(n!==null){var l=c(n);if(l!==null){if(n=l.tag,n===13){if(n=s(l),n!==null){e.blockedOn=n,Rd(e.priority,function(){bg(l)});return}}else if(n===31){if(n=m(l),n!==null){e.blockedOn=n,Rd(e.priority,function(){bg(l)});return}}else if(n===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fu(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var l=Bc(e.nativeEvent);if(l===null){l=e.nativeEvent;var u=new l.constructor(l.type,l);Ho=u,l.target.dispatchEvent(u),Ho=null}else return n=gr(l),n!==null&&yg(n),e.blockedOn=l,!1;n.shift()}return!0}function kg(e,n,l){Fu(e)&&l.delete(n)}function U1(){qc=!1,Cl!==null&&Fu(Cl)&&(Cl=null),Tl!==null&&Fu(Tl)&&(Tl=null),Al!==null&&Fu(Al)&&(Al=null),ra.forEach(kg),ia.forEach(kg)}function Iu(e,n){e.blockedOn===n&&(e.blockedOn=null,qc||(qc=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,U1)))}var Xu=null;function wg(e){Xu!==e&&(Xu=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Xu===e&&(Xu=null);for(var n=0;n<e.length;n+=3){var l=e[n],u=e[n+1],f=e[n+2];if(typeof u!="function"){if(Hc(u||l)===null)continue;break}var d=gr(l);d!==null&&(e.splice(n,3),n-=3,Bs(d,{pending:!0,data:f,method:l.method,action:u},u,f))}}))}function Pr(e){function n(z){return Iu(z,e)}Cl!==null&&Iu(Cl,e),Tl!==null&&Iu(Tl,e),Al!==null&&Iu(Al,e),ra.forEach(n),ia.forEach(n);for(var l=0;l<Nl.length;l++){var u=Nl[l];u.blockedOn===e&&(u.blockedOn=null)}for(;0<Nl.length&&(l=Nl[0],l.blockedOn===null);)Sg(l),l.blockedOn===null&&Nl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(u=0;u<l.length;u+=3){var f=l[u],d=l[u+1],x=f[Rt]||null;if(typeof d=="function")x||wg(l);else if(x){var w=null;if(d&&d.hasAttribute("formAction")){if(f=d,x=d[Rt]||null)w=x.formAction;else if(Hc(f)!==null)continue}else w=x.action;typeof w=="function"?l[u+1]=w:(l.splice(u,3),u-=3),wg(l)}}}function Eg(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(x){return f=x})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),u||setTimeout(l,20)}function l(){if(!u&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,f=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(l,100),function(){u=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function Vc(e){this._internalRoot=e}Qu.prototype.render=Vc.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(a(409));var l=n.current,u=$t();pg(l,u,e,n,null,null)},Qu.prototype.unmount=Vc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;pg(e.current,2,null,e,null,null),Au(),n[hr]=null}};function Qu(e){this._internalRoot=e}Qu.prototype.unstable_scheduleHydration=function(e){if(e){var n=_d();e={blockedOn:null,target:e,priority:n};for(var l=0;l<Nl.length&&n!==0&&n<Nl[l].priority;l++);Nl.splice(l,0,e),l===0&&Sg(e)}};var Cg=r.version;if(Cg!=="19.2.8")throw Error(a(527,Cg,"19.2.8"));te.findDOMNode=function(e){var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=p(n),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var B1={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zu.isDisabled&&Zu.supportsFiber)try{Nt=Zu.inject(B1),dt=Zu}catch{}}return oa.createRoot=function(e,n){if(!o(e))throw Error(a(299));var l=!1,u="",f=Dh,d=Oh,x=_h;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError)),n=mg(e,1,!1,null,null,l,u,null,f,d,x,Eg),e[hr]=n.current,kc(e),new Vc(n)},oa.hydrateRoot=function(e,n,l){if(!o(e))throw Error(a(299));var u=!1,f="",d=Dh,x=Oh,w=_h,z=null;return l!=null&&(l.unstable_strictMode===!0&&(u=!0),l.identifierPrefix!==void 0&&(f=l.identifierPrefix),l.onUncaughtError!==void 0&&(d=l.onUncaughtError),l.onCaughtError!==void 0&&(x=l.onCaughtError),l.onRecoverableError!==void 0&&(w=l.onRecoverableError),l.formState!==void 0&&(z=l.formState)),n=mg(e,1,!0,n,l??null,u,f,z,d,x,w,Eg),n.context=hg(null),l=n.current,u=$t(),u=Mo(u),f=ml(u),f.callback=null,hl(l,f,u),l=u,n.current.lanes=l,yi(n,l),Tn(n),e[hr]=n.current,kc(e),new Qu(n)},oa.version="19.2.8",oa}var Rg;function K1(){if(Rg)return Fc.exports;Rg=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Fc.exports=Z1(),Fc.exports}var J1=K1();function Jy(t){var r,i,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var o=t.length;for(r=0;r<o;r++)t[r]&&(i=Jy(t[r]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function P1(){for(var t,r,i=0,a="",o=arguments.length;i<o;i++)(t=arguments[i])&&(r=Jy(t))&&(a&&(a+=" "),a+=r);return a}const $1=(t,r)=>{const i=new Array(t.length+r.length);for(let a=0;a<t.length;a++)i[a]=t[a];for(let a=0;a<r.length;a++)i[t.length+a]=r[a];return i},W1=(t,r)=>({classGroupId:t,validator:r}),Py=(t=new Map,r=null,i)=>({nextPart:t,validators:r,classGroupId:i}),ho="-",Lg=[],eS="arbitrary..",tS=t=>{const r=lS(t),{conflictingClassGroups:i,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return nS(s);const m=s.split(ho),h=m[0]===""&&m.length>1?1:0;return $y(m,h,r)},getConflictingClassGroupIds:(s,m)=>{if(m){const h=a[s],p=i[s];return h?p?$1(p,h):h:p||Lg}return i[s]||Lg}}},$y=(t,r,i)=>{if(t.length-r===0)return i.classGroupId;const o=t[r],c=i.nextPart.get(o);if(c){const p=$y(t,r+1,c);if(p)return p}const s=i.validators;if(s===null)return;const m=r===0?t.join(ho):t.slice(r).join(ho),h=s.length;for(let p=0;p<h;p++){const y=s[p];if(y.validator(m))return y.classGroupId}},nS=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=t.slice(1,-1),i=r.indexOf(":"),a=r.slice(0,i);return a?eS+a:void 0})(),lS=t=>{const{theme:r,classGroups:i}=t;return rS(i,r)},rS=(t,r)=>{const i=Py();for(const a in t){const o=t[a];Wf(o,i,a,r)}return i},Wf=(t,r,i,a)=>{const o=t.length;for(let c=0;c<o;c++){const s=t[c];iS(s,r,i,a)}},iS=(t,r,i,a)=>{if(typeof t=="string"){aS(t,r,i);return}if(typeof t=="function"){uS(t,r,i,a);return}oS(t,r,i,a)},aS=(t,r,i)=>{const a=t===""?r:Wy(r,t);a.classGroupId=i},uS=(t,r,i,a)=>{if(sS(t)){Wf(t(a),r,i,a);return}r.validators===null&&(r.validators=[]),r.validators.push(W1(i,t))},oS=(t,r,i,a)=>{const o=Object.entries(t),c=o.length;for(let s=0;s<c;s++){const[m,h]=o[s];Wf(h,Wy(r,m),i,a)}},Wy=(t,r)=>{let i=t;const a=r.split(ho),o=a.length;for(let c=0;c<o;c++){const s=a[c];let m=i.nextPart.get(s);m||(m=Py(),i.nextPart.set(s,m)),i=m}return i},sS=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,cS=t=>{if(t<1)return{get:()=>{},set:()=>{}};let r=0,i=Object.create(null),a=Object.create(null);const o=(c,s)=>{i[c]=s,r++,r>t&&(r=0,a=i,i=Object.create(null))};return{get(c){let s=i[c];if(s!==void 0)return s;if((s=a[c])!==void 0)return o(c,s),s},set(c,s){c in i?i[c]=s:o(c,s)}}},Ef="!",Ug=":",fS=[],Bg=(t,r,i,a,o)=>({modifiers:t,hasImportantModifier:r,baseClassName:i,maybePostfixModifierPosition:a,isExternal:o}),dS=t=>{const{prefix:r,experimentalParseClassName:i}=t;let a=o=>{const c=[];let s=0,m=0,h=0,p;const y=o.length;for(let A=0;A<y;A++){const j=o[A];if(s===0&&m===0){if(j===Ug){c.push(o.slice(h,A)),h=A+1;continue}if(j==="/"){p=A;continue}}j==="["?s++:j==="]"?s--:j==="("?m++:j===")"&&m--}const g=c.length===0?o:o.slice(h);let v=g,S=!1;g.endsWith(Ef)?(v=g.slice(0,-1),S=!0):g.startsWith(Ef)&&(v=g.slice(1),S=!0);const E=p&&p>h?p-h:void 0;return Bg(c,S,v,E)};if(r){const o=r+Ug,c=a;a=s=>s.startsWith(o)?c(s.slice(o.length)):Bg(fS,!1,s,void 0,!0)}if(i){const o=a;a=c=>i({className:c,parseClassName:o})}return a},mS=t=>{const r=new Map;return t.orderSensitiveModifiers.forEach((i,a)=>{r.set(i,1e6+a)}),i=>{const a=[];let o=[];for(let c=0;c<i.length;c++){const s=i[c],m=s[0]==="[",h=r.has(s);m||h?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(s)):o.push(s)}return o.length>0&&(o.sort(),a.push(...o)),a}},hS=t=>({cache:cS(t.cacheSize),parseClassName:dS(t),sortModifiers:mS(t),postfixLookupClassGroupIds:pS(t),...tS(t)}),pS=t=>{const r=Object.create(null),i=t.postfixLookupClassGroups;if(i)for(let a=0;a<i.length;a++)r[i[a]]=!0;return r},gS=/\s+/,yS=(t,r)=>{const{parseClassName:i,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:c,postfixLookupClassGroupIds:s}=r,m=[],h=t.trim().split(gS);let p="";for(let y=h.length-1;y>=0;y-=1){const g=h[y],{isExternal:v,modifiers:S,hasImportantModifier:E,baseClassName:A,maybePostfixModifierPosition:j}=i(g);if(v){p=g+(p.length>0?" "+p:p);continue}let N=!!j,L;if(N){const X=A.substring(0,j);L=a(X);const Y=L&&s[L]?a(A):void 0;Y&&Y!==L&&(L=Y,N=!1)}else L=a(A);if(!L){if(!N){p=g+(p.length>0?" "+p:p);continue}if(L=a(A),!L){p=g+(p.length>0?" "+p:p);continue}N=!1}const R=S.length===0?"":S.length===1?S[0]:c(S).join(":"),W=E?R+Ef:R,ee=W+L;if(m.indexOf(ee)>-1)continue;m.push(ee);const _=o(L,N);for(let X=0;X<_.length;++X){const Y=_[X];m.push(W+Y)}p=g+(p.length>0?" "+p:p)}return p},bS=(...t)=>{let r=0,i,a,o="";for(;r<t.length;)(i=t[r++])&&(a=eb(i))&&(o&&(o+=" "),o+=a);return o},eb=t=>{if(typeof t=="string")return t;let r,i="";for(let a=0;a<t.length;a++)t[a]&&(r=eb(t[a]))&&(i&&(i+=" "),i+=r);return i},xS=(t,...r)=>{let i,a,o,c;const s=h=>{const p=r.reduce((y,g)=>g(y),t());return i=hS(p),a=i.cache.get,o=i.cache.set,c=m,m(h)},m=h=>{const p=a(h);if(p)return p;const y=yS(h,i);return o(h,y),y};return c=s,(...h)=>c(bS(...h))},vS=[],ht=t=>{const r=i=>i[t]||vS;return r.isThemeGetter=!0,r},tb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,nb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,SS=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,kS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wS=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ES=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,CS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,TS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,jl=t=>SS.test(t),Ne=t=>!!t&&!Number.isNaN(Number(t)),An=t=>!!t&&Number.isInteger(Number(t)),Zc=t=>t.endsWith("%")&&Ne(t.slice(0,-1)),Wn=t=>kS.test(t),lb=()=>!0,AS=t=>wS.test(t)&&!ES.test(t),ed=()=>!1,NS=t=>CS.test(t),zS=t=>TS.test(t),jS=t=>!fe(t)&&!de(t),MS=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),DS=t=>Ol(t,ab,ed),fe=t=>tb.test(t),Wl=t=>Ol(t,ub,AS),Hg=t=>Ol(t,qS,Ne),OS=t=>Ol(t,sb,lb),_S=t=>Ol(t,ob,ed),qg=t=>Ol(t,rb,ed),RS=t=>Ol(t,ib,zS),Ku=t=>Ol(t,cb,NS),de=t=>nb.test(t),sa=t=>ur(t,ub),LS=t=>ur(t,ob),Vg=t=>ur(t,rb),US=t=>ur(t,ab),BS=t=>ur(t,ib),Ju=t=>ur(t,cb,!0),HS=t=>ur(t,sb,!0),Ol=(t,r,i)=>{const a=tb.exec(t);return a?a[1]?r(a[1]):i(a[2]):!1},ur=(t,r,i=!1)=>{const a=nb.exec(t);return a?a[1]?r(a[1]):i:!1},rb=t=>t==="position"||t==="percentage",ib=t=>t==="image"||t==="url",ab=t=>t==="length"||t==="size"||t==="bg-size",ub=t=>t==="length",qS=t=>t==="number",ob=t=>t==="family-name",sb=t=>t==="number"||t==="weight",cb=t=>t==="shadow",VS=()=>{const t=ht("color"),r=ht("font"),i=ht("text"),a=ht("font-weight"),o=ht("tracking"),c=ht("leading"),s=ht("breakpoint"),m=ht("container"),h=ht("spacing"),p=ht("radius"),y=ht("shadow"),g=ht("inset-shadow"),v=ht("text-shadow"),S=ht("drop-shadow"),E=ht("blur"),A=ht("perspective"),j=ht("aspect"),N=ht("ease"),L=ht("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],W=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],ee=()=>[...W(),de,fe],_=()=>["auto","hidden","clip","visible","scroll"],X=()=>["auto","contain","none"],Y=()=>[de,fe,h],ae=()=>[jl,"full","auto",...Y()],B=()=>[An,"none","subgrid",de,fe],re=()=>["auto",{span:["full",An,de,fe]},An,de,fe],P=()=>[An,"auto",de,fe],pe=()=>["auto","min","max","fr",de,fe],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],H=()=>["auto",...Y()],te=()=>[jl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...Y()],ce=()=>[jl,"screen","full","dvw","lvw","svw","min","max","fit",...Y()],ke=()=>[jl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...Y()],T=()=>[t,de,fe],D=()=>[...W(),Vg,qg,{position:[de,fe]}],M=()=>["no-repeat",{repeat:["","x","y","space","round"]}],C=()=>["auto","cover","contain",US,DS,{size:[de,fe]}],$=()=>[Zc,sa,Wl],K=()=>["","none","full",p,de,fe],le=()=>["",Ne,sa,Wl],me=()=>["solid","dashed","dotted","double"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>[Ne,Zc,Vg,qg],at=()=>["","none",E,de,fe],Dt=()=>["none",Ne,de,fe],kn=()=>["none",Ne,de,fe],rl=()=>[Ne,de,fe],Ot=()=>[jl,"full",...Y()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Wn],breakpoint:[Wn],color:[lb],container:[Wn],"drop-shadow":[Wn],ease:["in","out","in-out"],font:[jS],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Wn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Wn],shadow:[Wn],spacing:["px",Ne],text:[Wn],"text-shadow":[Wn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",jl,fe,de,j]}],container:["container"],"container-type":[{"@container":["","normal","size",de,fe]}],"container-named":[MS],columns:[{columns:[Ne,fe,de,m]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:ee()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:X()}],"overscroll-x":[{"overscroll-x":X()}],"overscroll-y":[{"overscroll-y":X()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{"inset-s":ae(),start:ae()}],end:[{"inset-e":ae(),end:ae()}],"inset-bs":[{"inset-bs":ae()}],"inset-be":[{"inset-be":ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[An,"auto",de,fe]}],basis:[{basis:[jl,"full","auto",m,...Y()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ne,jl,"auto","initial","none",fe]}],grow:[{grow:["",Ne,de,fe]}],shrink:[{shrink:["",Ne,de,fe]}],order:[{order:[An,"first","last","none",de,fe]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:re()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:re()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":pe()}],"auto-rows":[{"auto-rows":pe()}],gap:[{gap:Y()}],"gap-x":[{"gap-x":Y()}],"gap-y":[{"gap-y":Y()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:Y()}],px:[{px:Y()}],py:[{py:Y()}],ps:[{ps:Y()}],pe:[{pe:Y()}],pbs:[{pbs:Y()}],pbe:[{pbe:Y()}],pt:[{pt:Y()}],pr:[{pr:Y()}],pb:[{pb:Y()}],pl:[{pl:Y()}],m:[{m:H()}],mx:[{mx:H()}],my:[{my:H()}],ms:[{ms:H()}],me:[{me:H()}],mbs:[{mbs:H()}],mbe:[{mbe:H()}],mt:[{mt:H()}],mr:[{mr:H()}],mb:[{mb:H()}],ml:[{ml:H()}],"space-x":[{"space-x":Y()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":Y()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],"inline-size":[{inline:["auto",...ce()]}],"min-inline-size":[{"min-inline":["auto",...ce()]}],"max-inline-size":[{"max-inline":["none",...ce()]}],"block-size":[{block:["auto",...ke()]}],"min-block-size":[{"min-block":["auto",...ke()]}],"max-block-size":[{"max-block":["none",...ke()]}],w:[{w:[m,"screen",...te()]}],"min-w":[{"min-w":[m,"screen","none",...te()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[s]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",i,sa,Wl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,HS,OS]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Zc,fe]}],"font-family":[{font:[LS,_S,r]}],"font-features":[{"font-features":[fe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,de,fe]}],"line-clamp":[{"line-clamp":[Ne,"none",de,Hg]}],leading:[{leading:[c,...Y()]}],"list-image":[{"list-image":["none",de,fe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",de,fe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...me(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ne,"from-font","auto",de,Wl]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[Ne,"auto",de,fe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:Y()}],"tab-size":[{tab:[An,de,fe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",de,fe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",de,fe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:D()}],"bg-repeat":[{bg:M()}],"bg-size":[{bg:C()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},An,de,fe],radial:["",de,fe],conic:[An,de,fe]},BS,RS]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:$()}],"gradient-via-pos":[{via:$()}],"gradient-to-pos":[{to:$()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:K()}],"rounded-s":[{"rounded-s":K()}],"rounded-e":[{"rounded-e":K()}],"rounded-t":[{"rounded-t":K()}],"rounded-r":[{"rounded-r":K()}],"rounded-b":[{"rounded-b":K()}],"rounded-l":[{"rounded-l":K()}],"rounded-ss":[{"rounded-ss":K()}],"rounded-se":[{"rounded-se":K()}],"rounded-ee":[{"rounded-ee":K()}],"rounded-es":[{"rounded-es":K()}],"rounded-tl":[{"rounded-tl":K()}],"rounded-tr":[{"rounded-tr":K()}],"rounded-br":[{"rounded-br":K()}],"rounded-bl":[{"rounded-bl":K()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-bs":[{"border-bs":le()}],"border-w-be":[{"border-be":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...me(),"hidden","none"]}],"divide-style":[{divide:[...me(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...me(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ne,de,fe]}],"outline-w":[{outline:["",Ne,sa,Wl]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",y,Ju,Ku]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",g,Ju,Ku]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[Ne,Wl]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",v,Ju,Ku]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[Ne,de,fe]}],"mix-blend":[{"mix-blend":[...Te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Te()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ne]}],"mask-image-linear-from-pos":[{"mask-linear-from":ge()}],"mask-image-linear-to-pos":[{"mask-linear-to":ge()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":ge()}],"mask-image-t-to-pos":[{"mask-t-to":ge()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":ge()}],"mask-image-r-to-pos":[{"mask-r-to":ge()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":ge()}],"mask-image-b-to-pos":[{"mask-b-to":ge()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":ge()}],"mask-image-l-to-pos":[{"mask-l-to":ge()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":ge()}],"mask-image-x-to-pos":[{"mask-x-to":ge()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":ge()}],"mask-image-y-to-pos":[{"mask-y-to":ge()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[de,fe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ge()}],"mask-image-radial-to-pos":[{"mask-radial-to":ge()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":W()}],"mask-image-conic-pos":[{"mask-conic":[Ne]}],"mask-image-conic-from-pos":[{"mask-conic-from":ge()}],"mask-image-conic-to-pos":[{"mask-conic-to":ge()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:D()}],"mask-repeat":[{mask:M()}],"mask-size":[{mask:C()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",de,fe]}],filter:[{filter:["","none",de,fe]}],blur:[{blur:at()}],brightness:[{brightness:[Ne,de,fe]}],contrast:[{contrast:[Ne,de,fe]}],"drop-shadow":[{"drop-shadow":["","none",S,Ju,Ku]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",Ne,de,fe]}],"hue-rotate":[{"hue-rotate":[Ne,de,fe]}],invert:[{invert:["",Ne,de,fe]}],saturate:[{saturate:[Ne,de,fe]}],sepia:[{sepia:["",Ne,de,fe]}],"backdrop-filter":[{"backdrop-filter":["","none",de,fe]}],"backdrop-blur":[{"backdrop-blur":at()}],"backdrop-brightness":[{"backdrop-brightness":[Ne,de,fe]}],"backdrop-contrast":[{"backdrop-contrast":[Ne,de,fe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ne,de,fe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ne,de,fe]}],"backdrop-invert":[{"backdrop-invert":["",Ne,de,fe]}],"backdrop-opacity":[{"backdrop-opacity":[Ne,de,fe]}],"backdrop-saturate":[{"backdrop-saturate":[Ne,de,fe]}],"backdrop-sepia":[{"backdrop-sepia":["",Ne,de,fe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":Y()}],"border-spacing-x":[{"border-spacing-x":Y()}],"border-spacing-y":[{"border-spacing-y":Y()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",de,fe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ne,"initial",de,fe]}],ease:[{ease:["linear","initial",N,de,fe]}],delay:[{delay:[Ne,de,fe]}],animate:[{animate:["none",L,de,fe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,de,fe]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:Dt()}],"rotate-x":[{"rotate-x":Dt()}],"rotate-y":[{"rotate-y":Dt()}],"rotate-z":[{"rotate-z":Dt()}],scale:[{scale:kn()}],"scale-x":[{"scale-x":kn()}],"scale-y":[{"scale-y":kn()}],"scale-z":[{"scale-z":kn()}],"scale-3d":["scale-3d"],skew:[{skew:rl()}],"skew-x":[{"skew-x":rl()}],"skew-y":[{"skew-y":rl()}],transform:[{transform:[de,fe,"","none","gpu","cpu"]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ot()}],"translate-x":[{"translate-x":Ot()}],"translate-y":[{"translate-y":Ot()}],"translate-z":[{"translate-z":Ot()}],"translate-none":["translate-none"],zoom:[{zoom:[An,de,fe]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",de,fe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":Y()}],"scroll-mx":[{"scroll-mx":Y()}],"scroll-my":[{"scroll-my":Y()}],"scroll-ms":[{"scroll-ms":Y()}],"scroll-me":[{"scroll-me":Y()}],"scroll-mbs":[{"scroll-mbs":Y()}],"scroll-mbe":[{"scroll-mbe":Y()}],"scroll-mt":[{"scroll-mt":Y()}],"scroll-mr":[{"scroll-mr":Y()}],"scroll-mb":[{"scroll-mb":Y()}],"scroll-ml":[{"scroll-ml":Y()}],"scroll-p":[{"scroll-p":Y()}],"scroll-px":[{"scroll-px":Y()}],"scroll-py":[{"scroll-py":Y()}],"scroll-ps":[{"scroll-ps":Y()}],"scroll-pe":[{"scroll-pe":Y()}],"scroll-pbs":[{"scroll-pbs":Y()}],"scroll-pbe":[{"scroll-pbe":Y()}],"scroll-pt":[{"scroll-pt":Y()}],"scroll-pr":[{"scroll-pr":Y()}],"scroll-pb":[{"scroll-pb":Y()}],"scroll-pl":[{"scroll-pl":Y()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",de,fe]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[Ne,sa,Wl,Hg]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},YS=xS(VS);function se(...t){return YS(P1(t))}const GS={"needs-input":{label:"Needs Input",className:"bg-status-blocked/20 text-status-blocked border-status-blocked/30"},active:{label:"Running",className:"bg-status-running/20 text-status-running border-status-running/30",pulse:!0},completed:{label:"Done",className:"bg-muted text-muted-foreground border-border"}};function FS(t,r){return r.has(t.id)?"needs-input":t.mode==="live"||t.alive?"active":"completed"}function IS({status:t,className:r}){const i=GS[t];return b.jsxs("span",{className:se("inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-xs font-medium",i.className,r),children:[i.pulse&&b.jsx("span",{className:"size-1.5 animate-pulse rounded-full bg-current"}),i.label]})}function XS(t){const r=Date.now(),i=new Date(t).getTime(),a=Math.floor((r-i)/1e3);if(a<60)return"just now";const o=Math.floor(a/60);if(o<60)return`${o}m ago`;const c=Math.floor(o/60);if(c<24)return`${c}h ago`;const s=Math.floor(c/24);return s<7?`${s}d ago`:new Date(t).toLocaleDateString("en-US",{month:"short",day:"numeric"})}function QS(t){const r=t.replace(/\/+$/,"").split("/");return r[r.length-1]??t}function ZS({session:t,pendingSessionIds:r,selected:i,onSelect:a}){const o=FS(t,r),c=t.title??"Untitled session";return b.jsxs("button",{onClick:()=>a(t.id),className:se("flex w-full flex-col gap-1.5 rounded-lg border p-3 text-left transition-colors","hover:bg-accent/50",i?"border-brand/50 bg-brand/5":"border-transparent"),children:[b.jsxs("div",{className:"flex items-start justify-between gap-2",children:[b.jsx("span",{className:"line-clamp-2 text-sm font-medium leading-snug",children:c}),b.jsx(IS,{status:o,className:"shrink-0"})]}),b.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground",children:[t.model&&b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px]",children:t.model}),t.cwd&&b.jsx("span",{className:"truncate font-mono text-[10px]",title:t.cwd,children:QS(t.cwd)}),b.jsx("span",{className:"ml-auto shrink-0",children:t.updatedAt?XS(t.updatedAt):""})]})]})}/**
50
- * @license lucide-react v0.468.0 - ISC
51
- *
52
- * This source code is licensed under the ISC license.
53
- * See the LICENSE file in the root directory of this source tree.
54
- */const KS=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),fb=(...t)=>t.filter((r,i,a)=>!!r&&r.trim()!==""&&a.indexOf(r)===i).join(" ").trim();/**
55
- * @license lucide-react v0.468.0 - ISC
56
- *
57
- * This source code is licensed under the ISC license.
58
- * See the LICENSE file in the root directory of this source tree.
59
- */var JS={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"};/**
60
- * @license lucide-react v0.468.0 - ISC
61
- *
62
- * This source code is licensed under the ISC license.
63
- * See the LICENSE file in the root directory of this source tree.
64
- */const PS=k.forwardRef(({color:t="currentColor",size:r=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:o="",children:c,iconNode:s,...m},h)=>k.createElement("svg",{ref:h,...JS,width:r,height:r,stroke:t,strokeWidth:a?Number(i)*24/Number(r):i,className:fb("lucide",o),...m},[...s.map(([p,y])=>k.createElement(p,y)),...Array.isArray(c)?c:[c]]));/**
65
- * @license lucide-react v0.468.0 - ISC
66
- *
67
- * This source code is licensed under the ISC license.
68
- * See the LICENSE file in the root directory of this source tree.
69
- */const He=(t,r)=>{const i=k.forwardRef(({className:a,...o},c)=>k.createElement(PS,{ref:c,iconNode:r,className:fb(`lucide-${KS(t)}`,a),...o}));return i.displayName=`${t}`,i};/**
70
- * @license lucide-react v0.468.0 - ISC
71
- *
72
- * This source code is licensed under the ISC license.
73
- * See the LICENSE file in the root directory of this source tree.
74
- */const $S=He("ArrowDown",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/**
75
- * @license lucide-react v0.468.0 - ISC
76
- *
77
- * This source code is licensed under the ISC license.
78
- * See the LICENSE file in the root directory of this source tree.
79
- */const WS=He("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
80
- * @license lucide-react v0.468.0 - ISC
81
- *
82
- * This source code is licensed under the ISC license.
83
- * See the LICENSE file in the root directory of this source tree.
84
- */const db=He("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
85
- * @license lucide-react v0.468.0 - ISC
86
- *
87
- * This source code is licensed under the ISC license.
88
- * See the LICENSE file in the root directory of this source tree.
89
- */const ek=He("BriefcaseBusiness",[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 6V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2",key:"1ksdt3"}],["path",{d:"M22 13a18.15 18.15 0 0 1-20 0",key:"12hx5q"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
90
- * @license lucide-react v0.468.0 - ISC
91
- *
92
- * This source code is licensed under the ISC license.
93
- * See the LICENSE file in the root directory of this source tree.
94
- */const mb=He("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
95
- * @license lucide-react v0.468.0 - ISC
96
- *
97
- * This source code is licensed under the ISC license.
98
- * See the LICENSE file in the root directory of this source tree.
99
- */const tk=He("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/**
100
- * @license lucide-react v0.468.0 - ISC
101
- *
102
- * This source code is licensed under the ISC license.
103
- * See the LICENSE file in the root directory of this source tree.
104
- */const nk=He("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/**
105
- * @license lucide-react v0.468.0 - ISC
106
- *
107
- * This source code is licensed under the ISC license.
108
- * See the LICENSE file in the root directory of this source tree.
109
- */const lk=He("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
110
- * @license lucide-react v0.468.0 - ISC
111
- *
112
- * This source code is licensed under the ISC license.
113
- * See the LICENSE file in the root directory of this source tree.
114
- */const hb=He("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
115
- * @license lucide-react v0.468.0 - ISC
116
- *
117
- * This source code is licensed under the ISC license.
118
- * See the LICENSE file in the root directory of this source tree.
119
- */const pb=He("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
120
- * @license lucide-react v0.468.0 - ISC
121
- *
122
- * This source code is licensed under the ISC license.
123
- * See the LICENSE file in the root directory of this source tree.
124
- */const rk=He("CircleAlert",[["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"}]]);/**
125
- * @license lucide-react v0.468.0 - ISC
126
- *
127
- * This source code is licensed under the ISC license.
128
- * See the LICENSE file in the root directory of this source tree.
129
- */const ik=He("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/**
130
- * @license lucide-react v0.468.0 - ISC
131
- *
132
- * This source code is licensed under the ISC license.
133
- * See the LICENSE file in the root directory of this source tree.
134
- */const ak=He("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
135
- * @license lucide-react v0.468.0 - ISC
136
- *
137
- * This source code is licensed under the ISC license.
138
- * See the LICENSE file in the root directory of this source tree.
139
- */const uk=He("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
140
- * @license lucide-react v0.468.0 - ISC
141
- *
142
- * This source code is licensed under the ISC license.
143
- * See the LICENSE file in the root directory of this source tree.
144
- */const ok=He("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
145
- * @license lucide-react v0.468.0 - ISC
146
- *
147
- * This source code is licensed under the ISC license.
148
- * See the LICENSE file in the root directory of this source tree.
149
- */const sk=He("FileText",[["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"}]]);/**
150
- * @license lucide-react v0.468.0 - ISC
151
- *
152
- * This source code is licensed under the ISC license.
153
- * See the LICENSE file in the root directory of this source tree.
154
- */const ck=He("FolderOpen",[["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"}]]);/**
155
- * @license lucide-react v0.468.0 - ISC
156
- *
157
- * This source code is licensed under the ISC license.
158
- * See the LICENSE file in the root directory of this source tree.
159
- */const fk=He("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
160
- * @license lucide-react v0.468.0 - ISC
161
- *
162
- * This source code is licensed under the ISC license.
163
- * See the LICENSE file in the root directory of this source tree.
164
- */const gb=He("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
165
- * @license lucide-react v0.468.0 - ISC
166
- *
167
- * This source code is licensed under the ISC license.
168
- * See the LICENSE file in the root directory of this source tree.
169
- */const dk=He("Keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);/**
170
- * @license lucide-react v0.468.0 - ISC
171
- *
172
- * This source code is licensed under the ISC license.
173
- * See the LICENSE file in the root directory of this source tree.
174
- */const mk=He("LayoutDashboard",[["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"}]]);/**
175
- * @license lucide-react v0.468.0 - ISC
176
- *
177
- * This source code is licensed under the ISC license.
178
- * See the LICENSE file in the root directory of this source tree.
179
- */const hk=He("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
180
- * @license lucide-react v0.468.0 - ISC
181
- *
182
- * This source code is licensed under the ISC license.
183
- * See the LICENSE file in the root directory of this source tree.
184
- */const pk=He("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
185
- * @license lucide-react v0.468.0 - ISC
186
- *
187
- * This source code is licensed under the ISC license.
188
- * See the LICENSE file in the root directory of this source tree.
189
- */const gk=He("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
190
- * @license lucide-react v0.468.0 - ISC
191
- *
192
- * This source code is licensed under the ISC license.
193
- * See the LICENSE file in the root directory of this source tree.
194
- */const yk=He("Pencil",[["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"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
195
- * @license lucide-react v0.468.0 - ISC
196
- *
197
- * This source code is licensed under the ISC license.
198
- * See the LICENSE file in the root directory of this source tree.
199
- */const bk=He("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
200
- * @license lucide-react v0.468.0 - ISC
201
- *
202
- * This source code is licensed under the ISC license.
203
- * See the LICENSE file in the root directory of this source tree.
204
- */const xk=He("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
205
- * @license lucide-react v0.468.0 - ISC
206
- *
207
- * This source code is licensed under the ISC license.
208
- * See the LICENSE file in the root directory of this source tree.
209
- */const vk=He("Send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]);/**
210
- * @license lucide-react v0.468.0 - ISC
211
- *
212
- * This source code is licensed under the ISC license.
213
- * See the LICENSE file in the root directory of this source tree.
214
- */const yb=He("Settings",[["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"}]]);/**
215
- * @license lucide-react v0.468.0 - ISC
216
- *
217
- * This source code is licensed under the ISC license.
218
- * See the LICENSE file in the root directory of this source tree.
219
- */const bb=He("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
220
- * @license lucide-react v0.468.0 - ISC
221
- *
222
- * This source code is licensed under the ISC license.
223
- * See the LICENSE file in the root directory of this source tree.
224
- */const Sk=He("TriangleAlert",[["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"}]]);/**
225
- * @license lucide-react v0.468.0 - ISC
226
- *
227
- * This source code is licensed under the ISC license.
228
- * See the LICENSE file in the root directory of this source tree.
229
- */const td=He("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),kk=[{id:"sessions",label:"Sessions",icon:b.jsx(hk,{className:"size-4"})},{id:"memory",label:"Memory",icon:b.jsx(db,{className:"size-4"})},{id:"schedules",label:"Schedules",icon:b.jsx(nk,{className:"size-4"})},{id:"jobs",label:"Jobs",icon:b.jsx(mb,{className:"size-4"})},{id:"settings",label:"Settings",icon:b.jsx(yb,{className:"size-4"})}];function wk({sessions:t,pendingSessionIds:r,selectedSessionId:i,onSelectSession:a,activeNav:o,onNavChange:c,collapsed:s,onToggleCollapse:m}){return b.jsxs("aside",{className:se("flex h-full shrink-0 flex-col border-r bg-card transition-[width] duration-200",s?"w-14":"w-72"),children:[b.jsxs("div",{className:"flex h-12 items-center justify-between border-b px-3",children:[!s&&b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("img",{src:"/brand-mark.svg",alt:"AFK",width:24,height:24}),b.jsx("span",{className:"text-sm font-semibold tracking-tight",children:"AFK"})]}),b.jsx("button",{onClick:m,className:"rounded-md p-1.5 text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",title:s?"Expand sidebar":"Collapse sidebar",children:s?b.jsx(gk,{className:"size-4"}):b.jsx(pk,{className:"size-4"})})]}),b.jsx("nav",{className:"flex flex-col gap-0.5 p-2",children:kk.map(h=>b.jsxs("button",{onClick:()=>c(h.id),className:se("flex items-center gap-2 rounded-md px-2.5 py-1.5 text-sm transition-colors",o===h.id?"bg-accent text-accent-foreground font-medium":"text-muted-foreground hover:bg-accent/50 hover:text-foreground"),title:s?h.label:void 0,children:[h.icon,!s&&b.jsx("span",{children:h.label})]},h.id))}),o==="sessions"&&!s&&b.jsx("div",{className:"flex-1 overflow-y-auto border-t px-2 py-2",children:t.length===0?b.jsx("p",{className:"px-2 py-4 text-center text-xs text-muted-foreground",children:"No sessions found"}):b.jsx("div",{className:"flex flex-col gap-0.5",children:t.map(h=>b.jsx(ZS,{session:h,pendingSessionIds:r,selected:i===h.id,onSelect:a},h.id))})})]})}var Yg=1,Ek=.9,Ck=.8,Tk=.17,Kc=.1,Jc=.999,Ak=.9999,Nk=.99,zk=/[\\\/_+.#"@\[\(\{&]/,jk=/[\\\/_+.#"@\[\(\{&]/g,Mk=/[\s-]/,xb=/[\s-]/g;function Cf(t,r,i,a,o,c,s){if(c===r.length)return o===t.length?Yg:Nk;var m=`${o},${c}`;if(s[m]!==void 0)return s[m];for(var h=a.charAt(c),p=i.indexOf(h,o),y=0,g,v,S,E;p>=0;)g=Cf(t,r,i,a,p+1,c+1,s),g>y&&(p===o?g*=Yg:zk.test(t.charAt(p-1))?(g*=Ck,S=t.slice(o,p-1).match(jk),S&&o>0&&(g*=Math.pow(Jc,S.length))):Mk.test(t.charAt(p-1))?(g*=Ek,E=t.slice(o,p-1).match(xb),E&&o>0&&(g*=Math.pow(Jc,E.length))):(g*=Tk,o>0&&(g*=Math.pow(Jc,p-o))),t.charAt(p)!==r.charAt(c)&&(g*=Ak)),(g<Kc&&i.charAt(p-1)===a.charAt(c+1)||a.charAt(c+1)===a.charAt(c)&&i.charAt(p-1)!==a.charAt(c))&&(v=Cf(t,r,i,a,p+1,c+2,s),v*Kc>g&&(g=v*Kc)),g>y&&(y=g),p=i.indexOf(h,p+1);return s[m]=y,y}function Gg(t){return t.toLowerCase().replace(xb," ")}function Dk(t,r,i){return t=i&&i.length>0?`${t+" "+i.join(" ")}`:t,Cf(t,r,Gg(t),Gg(r),0,0,{})}var Ok=Object.defineProperty,fi=(t,r)=>Ok(t,"name",{value:r,configurable:!0}),vb=!!(typeof window<"u"&&window.document&&window.document.createElement);function nr(t,r,{checkForDefaultPrevented:i=!0}={}){return fi(function(o){if(t==null||t(o),i===!1||!o||!o.defaultPrevented)return r==null?void 0:r(o)},"handleEvent")}fi(nr,"composeEventHandlers");function _k(t){var r;if(!vb)throw new Error("Cannot access window outside of the DOM");return((r=t==null?void 0:t.ownerDocument)==null?void 0:r.defaultView)??window}fi(_k,"getOwnerWindow");function Tf(t){if(!vb)throw new Error("Cannot access document outside of the DOM");return(t==null?void 0:t.ownerDocument)??document}fi(Tf,"getOwnerDocument");function Sb(t,r=!1){const{activeElement:i}=Tf(t);if(!(i!=null&&i.nodeName))return null;if(kb(i)&&i.contentDocument)return Sb(i.contentDocument.body,r);if(r){const a=i.getAttribute("aria-activedescendant");if(a){const o=Tf(i).getElementById(a);if(o)return o}}return i}fi(Sb,"getActiveElement");function kb(t){return t.tagName==="IFRAME"}fi(kb,"isFrame");var Rk=Object.defineProperty,nd=(t,r)=>Rk(t,"name",{value:r,configurable:!0});function Af(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}nd(Af,"setRef");function rr(...t){return r=>{let i=!1;const a=t.map(o=>{const c=Af(o,r);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let o=0;o<a.length;o++){const c=a[o];typeof c=="function"?c():Af(t[o],null)}}}}nd(rr,"composeRefs");function di(...t){return k.useCallback(rr(...t),t)}nd(di,"useComposedRefs");var Lk=Object.defineProperty,mn=(t,r)=>Lk(t,"name",{value:r,configurable:!0});function Uk(t,r){const i=k.createContext(r);i.displayName=t+"Context";const a=mn(c=>{const{children:s,...m}=c,h=k.useMemo(()=>m,Object.values(m));return b.jsx(i.Provider,{value:h,children:s})},"Provider");a.displayName=t+"Provider";function o(c,s={}){const{optional:m=!1}=s,h=k.useContext(i);if(h)return h;if(r!==void 0)return r;if(!m)throw new Error(`\`${c}\` must be used within \`${t}\``)}return mn(o,"useContext"),[a,o]}mn(Uk,"createContext");function wb(t,r=[]){let i=[];function a(c,s){const m=k.createContext(s);m.displayName=c+"Context";const h=i.length;i=[...i,s];const p=mn(g=>{var N;const{scope:v,children:S,...E}=g,A=((N=v==null?void 0:v[t])==null?void 0:N[h])||m,j=k.useMemo(()=>E,Object.values(E));return b.jsx(A.Provider,{value:j,children:S})},"Provider");p.displayName=c+"Provider";function y(g,v,S={}){var N;const{optional:E=!1}=S,A=((N=v==null?void 0:v[t])==null?void 0:N[h])||m,j=k.useContext(A);if(j)return j;if(s!==void 0)return s;if(!E)throw new Error(`\`${g}\` must be used within \`${c}\``)}return mn(y,"useContext"),[p,y]}mn(a,"createContext");const o=mn(()=>{const c=i.map(s=>k.createContext(s));return mn(function(m){const h=(m==null?void 0:m[t])||c;return k.useMemo(()=>({[`__scope${t}`]:{...m,[t]:h}}),[m,h])},"useScope")},"createScope");return o.scopeName=t,[a,Eb(o,...r)]}mn(wb,"createContextScope");function Eb(...t){const r=t[0];if(t.length===1)return r;const i=mn(()=>{const a=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return mn(function(c){const s=a.reduce((m,{useScope:h,scopeName:p})=>{const g=h(c)[`__scope${p}`];return{...m,...g}},{});return k.useMemo(()=>({[`__scope${r.scopeName}`]:s}),[s])},"useComposedScopes")},"createScope");return i.scopeName=r.scopeName,i}mn(Eb,"composeContextScopes");var oi=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},Bk=Object.defineProperty,Hk=(t,r)=>Bk(t,"name",{value:r,configurable:!0}),qk=Ca[" useId ".trim().toString()]||(()=>{}),Vk=0;function Dn(t){const[r,i]=k.useState(qk());return oi(()=>{t||i(a=>a??String(Vk++))},[t]),t||(r?`radix-${r}`:"")}Hk(Dn,"useId");var Yk=Object.defineProperty,Gk=(t,r)=>Yk(t,"name",{value:r,configurable:!0}),Fg=Ca[" useEffectEvent ".trim().toString()],Ig=Ca[" useInsertionEffect ".trim().toString()];function Cb(t){if(typeof Fg=="function")return Fg(t);const r=k.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Ig=="function"?Ig(()=>{r.current=t}):oi(()=>{r.current=t}),k.useMemo(()=>((...i)=>{var a;return(a=r.current)==null?void 0:a.call(r,...i)}),[])}Gk(Cb,"useEffectEvent");var Fk=Object.defineProperty,Ta=(t,r)=>Fk(t,"name",{value:r,configurable:!0}),Ik=Ca[" useInsertionEffect ".trim().toString()]||oi;function Tb({prop:t,defaultProp:r,onChange:i=Ta(()=>{},"onChange"),caller:a}){const[o,c,s]=Ab({defaultProp:r,onChange:i}),m=t!==void 0,h=m?t:o,p=k.useCallback(y=>{var g;if(m){const v=Nb(y)?y(t):y;v!==t&&((g=s.current)==null||g.call(s,v))}else c(y)},[m,t,c,s]);return[h,p]}Ta(Tb,"useControllableState");function Ab({defaultProp:t,onChange:r}){const[i,a]=k.useState(t),o=k.useRef(i),c=k.useRef(r);return Ik(()=>{c.current=r},[r]),k.useEffect(()=>{var s;o.current!==i&&((s=c.current)==null||s.call(c,i),o.current=i)},[i,o]),[i,a,c]}Ta(Ab,"useUncontrolledState");function Nb(t){return typeof t=="function"}Ta(Nb,"isFunction");var Xg=Symbol("RADIX:SYNC_STATE");function Xk(t,r,i,a){const{prop:o,defaultProp:c,onChange:s,caller:m}=r,h=o!==void 0,p=Cb(s),y=[{...i,state:c}];a&&y.push(a);const[g,v]=k.useReducer((j,N)=>{if(N.type===Xg)return{...j,state:N.state};const L=t(j,N);return h&&!Object.is(L.state,j.state)&&p(L.state),L},...y),S=g.state,E=k.useRef(S);k.useEffect(()=>{E.current!==S&&(E.current=S,h||p(S))},[S,E,h]);const A=k.useMemo(()=>o!==void 0?{...g,state:o}:g,[g,o]);return k.useEffect(()=>{h&&!Object.is(o,g.state)&&v({type:Xg,state:o})},[o,g.state,h]),[A,v]}Ta(Xk,"useControllableStateReducer");var zb=Ky(),Qk=Object.defineProperty,Sn=(t,r)=>Qk(t,"name",{value:r,configurable:!0});function ld(t){const r=k.forwardRef((i,a)=>{let{children:o,...c}=i,s=null,m=!1;const h=[];Nf(o)&&typeof Pu=="function"&&(o=Pu(o._payload)),k.Children.forEach(o,v=>{var S;if(Ob(v)){m=!0;const E=v;let A="child"in E.props?E.props.child:E.props.children;Nf(A)&&typeof Pu=="function"&&(A=Pu(A._payload)),s=Kk(E,A),h.push((S=s==null?void 0:s.props)==null?void 0:S.children)}else h.push(v)}),s?s=k.cloneElement(s,void 0,h):!m&&k.Children.count(o)===1&&k.isValidElement(o)&&(s=o);const p=s?Db(s):void 0,y=di(a,p);if(!s){if(o||o===0)throw new Error(m?$k(t):Pk(t));return o}const g=Mb(c,s.props??{});return s.type!==k.Fragment&&(g.ref=a?y:p),k.cloneElement(s,g)});return r.displayName=`${t}.Slot`,r}Sn(ld,"createSlot");var jb=Symbol.for("radix.slottable");function Zk(t){const r=Sn(i=>"child"in i?i.children(i.child):i.children,"Slottable");return r.displayName=`${t}.Slottable`,r.__radixId=jb,r}Sn(Zk,"createSlottable");var Kk=Sn((t,r)=>{if("child"in t.props){const i=t.props.child;return k.isValidElement(i)?k.cloneElement(i,void 0,t.props.children(i.props.children)):null}return k.isValidElement(r)?r:null},"getSlottableElementFromSlottable");function Mb(t,r){const i={...r};for(const a in r){const o=t[a],c=r[a];/^on[A-Z]/.test(a)?o&&c?i[a]=(...m)=>{const h=c(...m);return o(...m),h}:o&&(i[a]=o):a==="style"?i[a]={...o,...c}:a==="className"&&(i[a]=[o,c].filter(Boolean).join(" "))}return{...t,...i}}Sn(Mb,"mergeProps");function Db(t){var a,o;let r=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?t.ref:(r=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}Sn(Db,"getElementRef");function Ob(t){return k.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===jb}Sn(Ob,"isSlottable");var Jk=Symbol.for("react.lazy");function Nf(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Jk&&"_payload"in t&&_b(t._payload)}Sn(Nf,"isLazyComponent");function _b(t){return typeof t=="object"&&t!==null&&"then"in t}Sn(_b,"isPromiseLike");var Pk=Sn(t=>`${t} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),$k=Sn(t=>`${t} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Pu=Ca[" use ".trim().toString()],Wk=Object.defineProperty,e2=(t,r)=>Wk(t,"name",{value:r,configurable:!0}),t2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hn=t2.reduce((t,r)=>{const i=ld(`Primitive.${r}`),a=k.forwardRef((o,c)=>{const{asChild:s,...m}=o,h=s?i:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(h,{...m,ref:c})});return a.displayName=`Primitive.${r}`,{...t,[r]:a}},{});function Rb(t,r){t&&zb.flushSync(()=>t.dispatchEvent(r))}e2(Rb,"dispatchDiscreteCustomEvent");var n2=Object.defineProperty,l2=(t,r)=>n2(t,"name",{value:r,configurable:!0});function si(t){const r=k.useRef(t);return k.useEffect(()=>{r.current=t}),k.useMemo(()=>((...i)=>{var a;return(a=r.current)==null?void 0:a.call(r,...i)}),[])}l2(si,"useCallbackRef");var r2=Object.defineProperty,yt=(t,r)=>r2(t,"name",{value:r,configurable:!0}),zf="dismissableLayer.update",i2="dismissableLayer.pointerDownOutside",a2="dismissableLayer.focusOutside",Qg,Lb=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),u2=k.forwardRef(yt(function(r,i){const{disableOutsidePointerEvents:a=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:c,onPointerDownOutside:s,onFocusOutside:m,onInteractOutside:h,onDismiss:p,...y}=r,g=k.useContext(Lb),[v,S]=k.useState(null),E=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,A]=k.useState({}),j=di(i,S),N=Array.from(g.layers),[L]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),R=L?N.indexOf(L):-1,W=v?N.indexOf(v):-1,ee=g.layersWithOutsidePointerEventsDisabled.size>0,_=W>=R,X=k.useRef(!1),Y=Bb(P=>{s==null||s(P),h==null||h(P),P.defaultPrevented||p==null||p()},{ownerDocument:E,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:X,dismissableSurfaces:g.dismissableSurfaces,shouldHandlePointerDownOutside:k.useCallback(P=>{if(!(P instanceof Node))return!1;const pe=[...g.branches].some(oe=>oe.contains(P));return _&&!pe},[g.branches,_])}),ae=Hb(P=>{if(o&&X.current)return;const pe=P.target;[...g.branches].some(ne=>ne.contains(pe))||(m==null||m(P),h==null||h(P),P.defaultPrevented||p==null||p())},E),B=v?W===N.length-1:!1,re=si(P=>{P.key==="Escape"&&(c==null||c(P),!P.defaultPrevented&&p&&(P.preventDefault(),p()))});return k.useEffect(()=>{if(B)return E.addEventListener("keydown",re,{capture:!0}),()=>E.removeEventListener("keydown",re,{capture:!0})},[E,B,re]),k.useEffect(()=>{if(v)return a&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(Qg=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(v)),g.layers.add(v),jf(),()=>{a&&(g.layersWithOutsidePointerEventsDisabled.delete(v),g.layersWithOutsidePointerEventsDisabled.size===0&&(E.body.style.pointerEvents=Qg))}},[v,E,a,g]),k.useEffect(()=>()=>{v&&(g.layers.delete(v),g.layersWithOutsidePointerEventsDisabled.delete(v),jf())},[v,g]),k.useEffect(()=>{const P=yt(()=>A({}),"handleUpdate");return document.addEventListener(zf,P),()=>document.removeEventListener(zf,P)},[]),b.jsx(hn.div,{...y,ref:j,style:{pointerEvents:ee?_?"auto":"none":void 0,...r.style},onFocusCapture:nr(r.onFocusCapture,ae.onFocusCapture),onBlurCapture:nr(r.onBlurCapture,ae.onBlurCapture),onPointerDownCapture:nr(r.onPointerDownCapture,Y.onPointerDownCapture)})},"DismissableLayer"));function Ub(){const t=k.useContext(Lb),[r,i]=k.useState(null);return k.useEffect(()=>{if(r)return t.dismissableSurfaces.add(r),()=>{t.dismissableSurfaces.delete(r)}},[r,t.dismissableSurfaces]),i}yt(Ub,"useDismissableLayerSurface");var o2=yt(()=>!0,"IS_TRUE");function Bb(t,r){const{ownerDocument:i=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:a=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:c,shouldHandlePointerDownOutside:s=o2}=r,m=si(t),h=k.useRef(!1),p=k.useRef(!1),y=k.useRef(new Map),g=k.useRef(()=>{});return k.useEffect(()=>{function v(){p.current=!1,o.current=!1,y.current.clear()}yt(v,"resetOutsideInteraction");function S(){return Array.from(y.current.values()).some(Boolean)}yt(S,"isOutsideInteractionIntercepted");function E(R){if(!p.current)return;const W=R.target;W instanceof Node&&[...c].some(_=>_.contains(W))||y.current.set(R.type,!0),R.type==="click"&&window.setTimeout(()=>{p.current&&g.current()},0)}yt(E,"handleInteractionCapture");function A(R){p.current&&y.current.set(R.type,!1)}yt(A,"handleInteractionBubble");const j=yt(R=>{if(R.target&&!h.current){let W=function(){i.removeEventListener("click",g.current);const _=S();v(),_||rd(i2,m,ee,{discrete:!0})};if(yt(W,"handleAndDispatchPointerDownOutsideEvent"),!s(R.target)){i.removeEventListener("click",g.current),v(),h.current=!1;return}const ee={originalEvent:R};p.current=!0,o.current=a&&R.button===0,y.current.clear(),!a||R.button!==0?W():(i.removeEventListener("click",g.current),g.current=W,i.addEventListener("click",g.current,{once:!0}))}else i.removeEventListener("click",g.current),v();h.current=!1},"handlePointerDown"),N=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const R of N)i.addEventListener(R,E,!0),i.addEventListener(R,A);const L=window.setTimeout(()=>{i.addEventListener("pointerdown",j)},0);return()=>{window.clearTimeout(L),i.removeEventListener("pointerdown",j),i.removeEventListener("click",g.current);for(const R of N)i.removeEventListener(R,E,!0),i.removeEventListener(R,A)}},[i,m,a,o,c,s]),{onPointerDownCapture:yt(()=>h.current=!0,"onPointerDownCapture")}}yt(Bb,"usePointerDownOutside");function Hb(t,r=globalThis==null?void 0:globalThis.document){const i=si(t),a=k.useRef(!1);return k.useEffect(()=>{const o=yt(c=>{c.target&&!a.current&&rd(a2,i,{originalEvent:c},{discrete:!1})},"handleFocus");return r.addEventListener("focusin",o),()=>r.removeEventListener("focusin",o)},[r,i]),{onFocusCapture:yt(()=>a.current=!0,"onFocusCapture"),onBlurCapture:yt(()=>a.current=!1,"onBlurCapture")}}yt(Hb,"useFocusOutside");function jf(){const t=new CustomEvent(zf);document.dispatchEvent(t)}yt(jf,"dispatchUpdate");function rd(t,r,i,{discrete:a}){const o=i.originalEvent.target,c=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:i});r&&o.addEventListener(t,r,{once:!0}),a?Rb(o,c):o.dispatchEvent(c)}yt(rd,"handleAndDispatchCustomEvent");var s2=Object.defineProperty,Mt=(t,r)=>s2(t,"name",{value:r,configurable:!0}),Pc="focusScope.autoFocusOnMount",$c="focusScope.autoFocusOnUnmount",Zg={bubbles:!1,cancelable:!0},c2=k.forwardRef(Mt(function(r,i){const{loop:a=!1,trapped:o=!1,onMountAutoFocus:c,onUnmountAutoFocus:s,...m}=r,[h,p]=k.useState(null),y=si(c),g=si(s),v=k.useRef(null),S=di(i,p),E=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(o){let j=function(W){if(E.paused||!h)return;const ee=W.target;h.contains(ee)?v.current=ee:el(v.current,{select:!0})},N=function(W){if(E.paused||!h)return;const ee=W.relatedTarget;ee!==null&&(h.contains(ee)||el(v.current,{select:!0}))},L=function(W){if(document.activeElement===document.body)for(const _ of W)_.removedNodes.length>0&&el(h)};Mt(j,"handleFocusIn"),Mt(N,"handleFocusOut"),Mt(L,"handleMutations"),document.addEventListener("focusin",j),document.addEventListener("focusout",N);const R=new MutationObserver(L);return h&&R.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",N),R.disconnect()}}},[o,h,E.paused]),k.useEffect(()=>{if(h){Kg.add(E);const j=document.activeElement;if(!h.contains(j)){const L=new CustomEvent(Pc,Zg);h.addEventListener(Pc,y),h.dispatchEvent(L),L.defaultPrevented||(qb(Ib(id(h)),{select:!0}),document.activeElement===j&&el(h))}return()=>{h.removeEventListener(Pc,y),setTimeout(()=>{const L=new CustomEvent($c,Zg);h.addEventListener($c,g),h.dispatchEvent(L),L.defaultPrevented||el(j??document.body,{select:!0}),h.removeEventListener($c,g),Kg.remove(E)},0)}}},[h,y,g,E]);const A=k.useCallback(j=>{if(!a&&!o||E.paused)return;const N=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,L=document.activeElement;if(N&&L){const R=j.currentTarget,[W,ee]=Vb(R);W&&ee?!j.shiftKey&&L===ee?(j.preventDefault(),a&&el(W,{select:!0})):j.shiftKey&&L===W&&(j.preventDefault(),a&&el(ee,{select:!0})):L===R&&j.preventDefault()}},[a,o,E.paused]);return b.jsx(hn.div,{tabIndex:-1,...m,ref:S,onKeyDown:A})},"FocusScope"));function qb(t,{select:r=!1}={}){const i=document.activeElement;for(const a of t)if(el(a,{select:r}),document.activeElement!==i)return}Mt(qb,"focusFirst");function Vb(t){const r=id(t),i=Mf(r,t),a=Mf(r.reverse(),t);return[i,a]}Mt(Vb,"getTabbableEdges");function id(t){const r=[],i=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:Mt(a=>{const o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;i.nextNode();)r.push(i.currentNode);return r}Mt(id,"getTabbableCandidates");function Mf(t,r){const i=typeof r.checkVisibility=="function"&&r.checkVisibility({checkVisibilityCSS:!0});for(const a of t)if(!(i?!a.checkVisibility({checkVisibilityCSS:!0}):Yb(a,{upTo:r})))return a}Mt(Mf,"findVisible");function Yb(t,{upTo:r}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(r!==void 0&&t===r)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}Mt(Yb,"isHidden");function Gb(t){return t instanceof HTMLInputElement&&"select"in t}Mt(Gb,"isSelectableInput");function el(t,{select:r=!1}={}){if(t&&t.focus){const i=document.activeElement;t.focus({preventScroll:!0}),t!==i&&Gb(t)&&r&&t.select()}}Mt(el,"focus");var Kg=Fb();function Fb(){let t=[];return{add(r){const i=t[0];r!==i&&(i==null||i.pause()),t=Df(t,r),t.unshift(r)},remove(r){var i;t=Df(t,r),(i=t[0])==null||i.resume()}}}Mt(Fb,"createFocusScopesStack");function Df(t,r){const i=[...t],a=i.indexOf(r);return a!==-1&&i.splice(a,1),i}Mt(Df,"arrayRemove");function Ib(t){return t.filter(r=>r.tagName!=="A")}Mt(Ib,"removeLinks");var f2=Object.defineProperty,d2=(t,r)=>f2(t,"name",{value:r,configurable:!0}),m2=k.forwardRef(d2(function(r,i){var h;const{container:a,...o}=r,[c,s]=k.useState(!1);oi(()=>s(!0),[]);const m=a||c&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return m?zb.createPortal(b.jsx(hn.div,{...o,ref:i}),m):null},"Portal")),h2=Object.defineProperty,tl=(t,r)=>h2(t,"name",{value:r,configurable:!0});function Xb(t,r){return k.useReducer((i,a)=>r[i][a]??i,t)}tl(Xb,"useStateMachine");var ad=tl(t=>{const{present:r,children:i}=t,a=Qb(r),o=typeof i=="function"?i({present:a.isPresent}):k.Children.only(i),c=Zb(a.ref,Kb(o));return typeof i=="function"||a.isPresent?k.cloneElement(o,{ref:c}):null},"Presence");function Qb(t){const[r,i]=k.useState(),a=k.useRef(null),o=k.useRef(t),c=k.useRef("none"),s=k.useRef(void 0),m=t?"mounted":"unmounted",[h,p]=Xb(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{h==="mounted"?(c.current=s.current??li(a.current),s.current=void 0):c.current="none"},[h]),oi(()=>{const y=a.current,g=o.current;if(g!==t){const S=c.current,E=li(y);t?(s.current=E,p("MOUNT")):E==="none"||(y==null?void 0:y.display)==="none"?p("UNMOUNT"):p(g&&S!==E?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,p]),oi(()=>{if(r){let y;const g=r.ownerDocument.defaultView??window,v=tl(E=>{const j=li(a.current).includes(CSS.escape(E.animationName));if(E.target===r&&j&&(p("ANIMATION_END"),!o.current)){const N=r.style.animationFillMode;r.style.animationFillMode="forwards",y=g.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=N)})}},"handleAnimationEnd"),S=tl(E=>{E.target===r&&(c.current=li(a.current))},"handleAnimationStart");return r.addEventListener("animationstart",S),r.addEventListener("animationcancel",v),r.addEventListener("animationend",v),()=>{g.clearTimeout(y),r.removeEventListener("animationstart",S),r.removeEventListener("animationcancel",v),r.removeEventListener("animationend",v)}}else p("ANIMATION_END")},[r,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:k.useCallback(y=>{if(y){const g=getComputedStyle(y);a.current=g,s.current=li(g)}else a.current=null;i(y)},[])}}tl(Qb,"usePresence");function Of(t,r){if(typeof t=="function")return t(r);t!=null&&(t.current=r)}tl(Of,"setRef");function Zb(...t){const r=k.useRef(t);return r.current=t,k.useCallback(i=>{const a=r.current;let o=!1;const c=a.map(s=>{const m=Of(s,i);return!o&&typeof m=="function"&&(o=!0),m});if(o)return()=>{for(let s=0;s<c.length;s++){const m=c[s];typeof m=="function"?m():Of(a[s],null)}}},[])}tl(Zb,"useStableComposedRefs");function li(t){return(t==null?void 0:t.animationName)||"none"}tl(li,"getAnimationName");function Kb(t){var a,o;let r=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?t.ref:(r=(o=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:o.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?t.props.ref:t.props.ref||t.ref)}tl(Kb,"getElementRef");var p2=Object.defineProperty,ud=(t,r)=>p2(t,"name",{value:r,configurable:!0}),$u=0,Nn=null;function g2(t){return od(),t.children}ud(g2,"FocusGuards");function od(){k.useEffect(()=>{Nn||(Nn={start:_f(),end:_f()});const{start:t,end:r}=Nn;return document.body.firstElementChild!==t&&document.body.insertAdjacentElement("afterbegin",t),document.body.lastElementChild!==r&&document.body.insertAdjacentElement("beforeend",r),$u++,()=>{$u===1&&(Nn==null||Nn.start.remove(),Nn==null||Nn.end.remove(),Nn=null),$u=Math.max(0,$u-1)}},[])}ud(od,"useFocusGuards");function _f(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}ud(_f,"createFocusGuard");var Mn=function(){return Mn=Object.assign||function(r){for(var i,a=1,o=arguments.length;a<o;a++){i=arguments[a];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(r[c]=i[c])}return r},Mn.apply(this,arguments)};function Jb(t,r){var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(t);o<a.length;o++)r.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(i[a[o]]=t[a[o]]);return i}function y2(t,r,i){if(i||arguments.length===2)for(var a=0,o=r.length,c;a<o;a++)(c||!(a in r))&&(c||(c=Array.prototype.slice.call(r,0,a)),c[a]=r[a]);return t.concat(c||Array.prototype.slice.call(r))}var co="right-scroll-bar-position",fo="width-before-scroll-bar",b2="with-scroll-bars-hidden",x2="--removed-body-scroll-bar-size";function Wc(t,r){return typeof t=="function"?t(r):t&&(t.current=r),t}function v2(t,r){var i=k.useState(function(){return{value:t,callback:r,facade:{get current(){return i.value},set current(a){var o=i.value;o!==a&&(i.value=a,i.callback(a,o))}}}})[0];return i.callback=r,i.facade}var S2=typeof window<"u"?k.useLayoutEffect:k.useEffect,Jg=new WeakMap;function k2(t,r){var i=v2(null,function(a){return t.forEach(function(o){return Wc(o,a)})});return S2(function(){var a=Jg.get(i);if(a){var o=new Set(a),c=new Set(t),s=i.current;o.forEach(function(m){c.has(m)||Wc(m,null)}),c.forEach(function(m){o.has(m)||Wc(m,s)})}Jg.set(i,t)},[t]),i}function w2(t){return t}function E2(t,r){r===void 0&&(r=w2);var i=[],a=!1,o={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:t},useMedium:function(c){var s=r(c,a);return i.push(s),function(){i=i.filter(function(m){return m!==s})}},assignSyncMedium:function(c){for(a=!0;i.length;){var s=i;i=[],s.forEach(c)}i={push:function(m){return c(m)},filter:function(){return i}}},assignMedium:function(c){a=!0;var s=[];if(i.length){var m=i;i=[],m.forEach(c),s=i}var h=function(){var y=s;s=[],y.forEach(c)},p=function(){return Promise.resolve().then(h)};p(),i={push:function(y){s.push(y),p()},filter:function(y){return s=s.filter(y),i}}}};return o}function C2(t){t===void 0&&(t={});var r=E2(null);return r.options=Mn({async:!0,ssr:!1},t),r}var Pb=function(t){var r=t.sideCar,i=Jb(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=r.read();if(!a)throw new Error("Sidecar medium not found");return k.createElement(a,Mn({},i))};Pb.isSideCarExport=!0;function T2(t,r){return t.useMedium(r),Pb}var $b=C2(),ef=function(){},xo=k.forwardRef(function(t,r){var i=k.useRef(null),a=k.useState({onScrollCapture:ef,onWheelCapture:ef,onTouchMoveCapture:ef}),o=a[0],c=a[1],s=t.forwardProps,m=t.children,h=t.className,p=t.removeScrollBar,y=t.enabled,g=t.shards,v=t.sideCar,S=t.noRelative,E=t.noIsolation,A=t.inert,j=t.allowPinchZoom,N=t.as,L=N===void 0?"div":N,R=t.gapMode,W=Jb(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),ee=v,_=k2([i,r]),X=Mn(Mn({},W),o);return k.createElement(k.Fragment,null,y&&k.createElement(ee,{sideCar:$b,removeScrollBar:p,shards:g,noRelative:S,noIsolation:E,inert:A,setCallbacks:c,allowPinchZoom:!!j,lockRef:i,gapMode:R}),s?k.cloneElement(k.Children.only(m),Mn(Mn({},X),{ref:_})):k.createElement(L,Mn({},X,{className:h,ref:_}),m))});xo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xo.classNames={fullWidth:fo,zeroRight:co};var A2=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function N2(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var r=A2();return r&&t.setAttribute("nonce",r),t}function z2(t,r){t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}function j2(t){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(t)}var M2=function(){var t=0,r=null;return{add:function(i){t==0&&(r=N2())&&(z2(r,i),j2(r)),t++},remove:function(){t--,!t&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},D2=function(){var t=M2();return function(r,i){k.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&i])}},Wb=function(){var t=D2(),r=function(i){var a=i.styles,o=i.dynamic;return t(a,o),null};return r},O2={left:0,top:0,right:0,gap:0},tf=function(t){return parseInt(t||"",10)||0},_2=function(t){var r=window.getComputedStyle(document.body),i=r[t==="padding"?"paddingLeft":"marginLeft"],a=r[t==="padding"?"paddingTop":"marginTop"],o=r[t==="padding"?"paddingRight":"marginRight"];return[tf(i),tf(a),tf(o)]},R2=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return O2;var r=_2(t),i=document.documentElement.clientWidth,a=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,a-i+r[2]-r[0])}},L2=Wb(),ui="data-scroll-locked",U2=function(t,r,i,a){var o=t.left,c=t.top,s=t.right,m=t.gap;return i===void 0&&(i="margin"),`
230
- .`.concat(b2,` {
231
- overflow: hidden `).concat(a,`;
232
- padding-right: `).concat(m,"px ").concat(a,`;
233
- }
234
- body[`).concat(ui,`] {
235
- overflow: hidden `).concat(a,`;
236
- overscroll-behavior: contain;
237
- `).concat([r&&"position: relative ".concat(a,";"),i==="margin"&&`
238
- padding-left: `.concat(o,`px;
239
- padding-top: `).concat(c,`px;
240
- padding-right: `).concat(s,`px;
241
- margin-left:0;
242
- margin-top:0;
243
- margin-right: `).concat(m,"px ").concat(a,`;
244
- `),i==="padding"&&"padding-right: ".concat(m,"px ").concat(a,";")].filter(Boolean).join(""),`
245
- }
246
-
247
- .`).concat(co,` {
248
- right: `).concat(m,"px ").concat(a,`;
249
- }
250
-
251
- .`).concat(fo,` {
252
- margin-right: `).concat(m,"px ").concat(a,`;
253
- }
254
-
255
- .`).concat(co," .").concat(co,` {
256
- right: 0 `).concat(a,`;
257
- }
258
-
259
- .`).concat(fo," .").concat(fo,` {
260
- margin-right: 0 `).concat(a,`;
261
- }
262
-
263
- body[`).concat(ui,`] {
264
- `).concat(x2,": ").concat(m,`px;
265
- }
266
- `)},Pg=function(){var t=parseInt(document.body.getAttribute(ui)||"0",10);return isFinite(t)?t:0},B2=function(){k.useEffect(function(){return document.body.setAttribute(ui,(Pg()+1).toString()),function(){var t=Pg()-1;t<=0?document.body.removeAttribute(ui):document.body.setAttribute(ui,t.toString())}},[])},H2=function(t){var r=t.noRelative,i=t.noImportant,a=t.gapMode,o=a===void 0?"margin":a;B2();var c=k.useMemo(function(){return R2(o)},[o]);return k.createElement(L2,{styles:U2(c,!r,o,i?"":"!important")})},Rf=!1;if(typeof window<"u")try{var Wu=Object.defineProperty({},"passive",{get:function(){return Rf=!0,!0}});window.addEventListener("test",Wu,Wu),window.removeEventListener("test",Wu,Wu)}catch{Rf=!1}var $r=Rf?{passive:!1}:!1,q2=function(t){return t.tagName==="TEXTAREA"},ex=function(t,r){if(!(t instanceof Element))return!1;var i=window.getComputedStyle(t);return i[r]!=="hidden"&&!(i.overflowY===i.overflowX&&!q2(t)&&i[r]==="visible")},V2=function(t){return ex(t,"overflowY")},Y2=function(t){return ex(t,"overflowX")},$g=function(t,r){var i=r.ownerDocument,a=r;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var o=tx(t,a);if(o){var c=nx(t,a),s=c[1],m=c[2];if(s>m)return!0}a=a.parentNode}while(a&&a!==i.body);return!1},G2=function(t){var r=t.scrollTop,i=t.scrollHeight,a=t.clientHeight;return[r,i,a]},F2=function(t){var r=t.scrollLeft,i=t.scrollWidth,a=t.clientWidth;return[r,i,a]},tx=function(t,r){return t==="v"?V2(r):Y2(r)},nx=function(t,r){return t==="v"?G2(r):F2(r)},I2=function(t,r){return t==="h"&&r==="rtl"?-1:1},X2=function(t,r,i,a,o){var c=I2(t,window.getComputedStyle(r).direction),s=c*a,m=i.target,h=r.contains(m),p=!1,y=s>0,g=0,v=0;do{if(!m)break;var S=nx(t,m),E=S[0],A=S[1],j=S[2],N=A-j-c*E;(E||N)&&tx(t,m)&&(g+=N,v+=E);var L=m.parentNode;m=L&&L.nodeType===Node.DOCUMENT_FRAGMENT_NODE?L.host:L}while(!h&&m!==document.body||h&&(r.contains(m)||r===m));return(y&&Math.abs(g)<1||!y&&Math.abs(v)<1)&&(p=!0),p},eo=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Wg=function(t){return[t.deltaX,t.deltaY]},ey=function(t){return t&&"current"in t?t.current:t},Q2=function(t,r){return t[0]===r[0]&&t[1]===r[1]},Z2=function(t){return`
267
- .block-interactivity-`.concat(t,` {pointer-events: none;}
268
- .allow-interactivity-`).concat(t,` {pointer-events: all;}
269
- `)},K2=0,Wr=[];function J2(t){var r=k.useRef([]),i=k.useRef([0,0]),a=k.useRef(),o=k.useState(K2++)[0],c=k.useState(Wb)[0],s=k.useRef(t);k.useEffect(function(){s.current=t},[t]),k.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(o));var A=y2([t.lockRef.current],(t.shards||[]).map(ey),!0).filter(Boolean);return A.forEach(function(j){return j.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),A.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(o))})}}},[t.inert,t.lockRef.current,t.shards]);var m=k.useCallback(function(A,j){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!s.current.allowPinchZoom;var N=eo(A),L=i.current,R="deltaX"in A?A.deltaX:L[0]-N[0],W="deltaY"in A?A.deltaY:L[1]-N[1],ee,_=A.target,X=Math.abs(R)>Math.abs(W)?"h":"v";if("touches"in A&&X==="h"&&_.type==="range")return!1;var Y=window.getSelection(),ae=Y&&Y.anchorNode,B=ae?ae===_||ae.contains(_):!1;if(B)return!1;var re=$g(X,_);if(!re)return!0;if(re?ee=X:(ee=X==="v"?"h":"v",re=$g(X,_)),!re)return!1;if(!a.current&&"changedTouches"in A&&(R||W)&&(a.current=ee),!ee)return!0;var P=a.current||ee;return X2(P,j,A,P==="h"?R:W)},[]),h=k.useCallback(function(A){var j=A;if(!(!Wr.length||Wr[Wr.length-1]!==c)){var N="deltaY"in j?Wg(j):eo(j),L=r.current.filter(function(ee){return ee.name===j.type&&(ee.target===j.target||j.target===ee.shadowParent)&&Q2(ee.delta,N)})[0];if(L&&L.should){j.cancelable&&j.preventDefault();return}if(!L){var R=(s.current.shards||[]).map(ey).filter(Boolean).filter(function(ee){return ee.contains(j.target)}),W=R.length>0?m(j,R[0]):!s.current.noIsolation;W&&j.cancelable&&j.preventDefault()}}},[]),p=k.useCallback(function(A,j,N,L){var R={name:A,delta:j,target:N,should:L,shadowParent:P2(N)};r.current.push(R),setTimeout(function(){r.current=r.current.filter(function(W){return W!==R})},1)},[]),y=k.useCallback(function(A){i.current=eo(A),a.current=void 0},[]),g=k.useCallback(function(A){p(A.type,Wg(A),A.target,m(A,t.lockRef.current))},[]),v=k.useCallback(function(A){p(A.type,eo(A),A.target,m(A,t.lockRef.current))},[]);k.useEffect(function(){return Wr.push(c),t.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:v}),document.addEventListener("wheel",h,$r),document.addEventListener("touchmove",h,$r),document.addEventListener("touchstart",y,$r),function(){Wr=Wr.filter(function(A){return A!==c}),document.removeEventListener("wheel",h,$r),document.removeEventListener("touchmove",h,$r),document.removeEventListener("touchstart",y,$r)}},[]);var S=t.removeScrollBar,E=t.inert;return k.createElement(k.Fragment,null,E?k.createElement(c,{styles:Z2(o)}):null,S?k.createElement(H2,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function P2(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const $2=T2($b,J2);var lx=k.forwardRef(function(t,r){return k.createElement(xo,Mn({},t,{ref:r,sideCar:$2}))});lx.classNames=xo.classNames;var W2=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},ei=new WeakMap,to=new WeakMap,no={},nf=0,rx=function(t){return t&&(t.host||rx(t.parentNode))},ew=function(t,r){return r.map(function(i){if(t.contains(i))return i;var a=rx(i);return a&&t.contains(a)?a:(console.error("aria-hidden",i,"in not contained inside",t,". Doing nothing"),null)}).filter(function(i){return!!i})},tw=function(t,r,i,a){var o=ew(r,Array.isArray(t)?t:[t]);no[i]||(no[i]=new WeakMap);var c=no[i],s=[],m=new Set,h=new Set(o),p=function(g){!g||m.has(g)||(m.add(g),p(g.parentNode))};o.forEach(p);var y=function(g){!g||h.has(g)||Array.prototype.forEach.call(g.children,function(v){if(m.has(v))y(v);else try{var S=v.getAttribute(a),E=S!==null&&S!=="false",A=(ei.get(v)||0)+1,j=(c.get(v)||0)+1;ei.set(v,A),c.set(v,j),s.push(v),A===1&&E&&to.set(v,!0),j===1&&v.setAttribute(i,"true"),E||v.setAttribute(a,"true")}catch(N){console.error("aria-hidden: cannot operate on ",v,N)}})};return y(r),m.clear(),nf++,function(){s.forEach(function(g){var v=ei.get(g)-1,S=c.get(g)-1;ei.set(g,v),c.set(g,S),v||(to.has(g)||g.removeAttribute(a),to.delete(g)),S||g.removeAttribute(i)}),nf--,nf||(ei=new WeakMap,ei=new WeakMap,to=new WeakMap,no={})}},nw=function(t,r,i){i===void 0&&(i="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),o=W2(t);return o?(a.push.apply(a,Array.from(o.querySelectorAll("[aria-live], script"))),tw(a,o,i,"aria-hidden")):function(){return null}},lw=Object.defineProperty,nl=(t,r)=>lw(t,"name",{value:r,configurable:!0}),sd="Dialog",[ix,P4]=wb(sd),[rw,or]=ix(sd),iw=nl(t=>{const{__scopeDialog:r,children:i,open:a,defaultOpen:o,onOpenChange:c,modal:s=!0}=t,m=k.useRef(null),h=k.useRef(null),[p,y]=Tb({prop:a,defaultProp:o??!1,onChange:c,caller:sd}),[g,v]=k.useState(0),[S,E]=k.useState(0);return b.jsx(rw,{scope:r,triggerRef:m,contentRef:h,contentId:Dn(),titleId:Dn(),descriptionId:Dn(),titlePresent:g>0,descriptionPresent:S>0,setTitleCount:v,setDescriptionCount:E,open:p,onOpenChange:y,onOpenToggle:k.useCallback(()=>y(A=>!A),[y]),modal:s,children:i})},"Dialog"),ax="DialogPortal",[aw,ux]=ix(ax,{forceMount:void 0}),uw=nl(t=>{const{__scopeDialog:r,forceMount:i,children:a,container:o}=t,c=or(ax,r);return b.jsx(aw,{scope:r,forceMount:i,children:k.Children.map(a,s=>b.jsx(ad,{present:i||c.open,children:b.jsx(m2,{asChild:!0,container:o,children:s})}))})},"DialogPortal"),Lf="DialogOverlay",ow=k.forwardRef(nl(function(r,i){const a=ux(Lf,r.__scopeDialog),{forceMount:o=a.forceMount,...c}=r,s=or(Lf,r.__scopeDialog);return s.modal?b.jsx(ad,{present:o||s.open,children:b.jsx(cw,{...c,ref:i})}):null},"DialogOverlay")),sw=ld("DialogOverlay.RemoveScroll"),cw=k.forwardRef(nl(function(r,i){const{__scopeDialog:a,...o}=r,c=or(Lf,a),s=Ub(),m=di(i,s);return b.jsx(lx,{as:sw,allowPinchZoom:!0,shards:[c.contentRef],children:b.jsx(hn.div,{"data-state":cd(c.open),...o,ref:m,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),ka="DialogContent",fw=k.forwardRef(nl(function(r,i){const a=ux(ka,r.__scopeDialog),{forceMount:o=a.forceMount,...c}=r,s=or(ka,r.__scopeDialog);return b.jsx(ad,{present:o||s.open,children:s.modal?b.jsx(dw,{...c,ref:i}):b.jsx(mw,{...c,ref:i})})},"DialogContent")),dw=k.forwardRef(nl(function(r,i){const a=or(ka,r.__scopeDialog),o=k.useRef(null),c=di(i,a.contentRef,o);return k.useEffect(()=>{const s=o.current;if(s)return nw(s)},[]),b.jsx(ox,{...r,ref:c,trapFocus:a.open,disableOutsidePointerEvents:a.open,onCloseAutoFocus:nr(r.onCloseAutoFocus,s=>{var m;s.preventDefault(),(m=a.triggerRef.current)==null||m.focus()}),onPointerDownOutside:nr(r.onPointerDownOutside,s=>{const m=s.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0;(m.button===2||h)&&s.preventDefault()}),onFocusOutside:nr(r.onFocusOutside,s=>s.preventDefault())})},"DialogContentModal")),mw=k.forwardRef(nl(function(r,i){const a=or(ka,r.__scopeDialog),o=k.useRef(!1),c=k.useRef(!1);return b.jsx(ox,{...r,ref:i,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var m,h;(m=r.onCloseAutoFocus)==null||m.call(r,s),s.defaultPrevented||(o.current||(h=a.triggerRef.current)==null||h.focus(),s.preventDefault()),o.current=!1,c.current=!1},onInteractOutside:s=>{var p,y;(p=r.onInteractOutside)==null||p.call(r,s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=s.target;((y=a.triggerRef.current)==null?void 0:y.contains(m))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&c.current&&s.preventDefault()}})},"DialogContentNonModal")),ox=k.forwardRef(nl(function(r,i){const{__scopeDialog:a,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:s,...m}=r,h=or(ka,a);return od(),b.jsx(b.Fragment,{children:b.jsx(c2,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:c,onUnmountAutoFocus:s,children:b.jsx(u2,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionPresent?h.descriptionId:void 0,"aria-labelledby":h.titlePresent?h.titleId:void 0,"data-state":cd(h.open),...m,ref:i,deferPointerDownOutside:!0,onDismiss:()=>h.onOpenChange(!1)})})})},"DialogContentImpl"));function cd(t){return t?"open":"closed"}nl(cd,"getState");var ca='[cmdk-group=""]',lf='[cmdk-group-items=""]',hw='[cmdk-group-heading=""]',sx='[cmdk-item=""]',ty=`${sx}:not([aria-disabled="true"])`,Uf="cmdk-item-select",ri="data-value",pw=(t,r,i)=>Dk(t,r,i),cx=k.createContext(void 0),Aa=()=>k.useContext(cx),fx=k.createContext(void 0),fd=()=>k.useContext(fx),dx=k.createContext(void 0),mx=k.forwardRef((t,r)=>{let i=ii(()=>{var M,C;return{search:"",value:(C=(M=t.value)!=null?M:t.defaultValue)!=null?C:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),a=ii(()=>new Set),o=ii(()=>new Map),c=ii(()=>new Map),s=ii(()=>new Set),m=hx(t),{label:h,children:p,value:y,onValueChange:g,filter:v,shouldFilter:S,loop:E,disablePointerSelection:A=!1,vimBindings:j=!0,...N}=t,L=Dn(),R=Dn(),W=Dn(),ee=k.useRef(null),_=Tw();ir(()=>{if(y!==void 0){let M=y.trim();i.current.value=M,X.emit()}},[y]),ir(()=>{_(6,pe)},[]);let X=k.useMemo(()=>({subscribe:M=>(s.current.add(M),()=>s.current.delete(M)),snapshot:()=>i.current,setState:(M,C,$)=>{var K,le,me,Te;if(!Object.is(i.current[M],C)){if(i.current[M]=C,M==="search")P(),B(),_(1,re);else if(M==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ge=document.getElementById(W);ge?ge.focus():(K=document.getElementById(L))==null||K.focus()}if(_(7,()=>{var ge;i.current.selectedItemId=(ge=oe())==null?void 0:ge.id,X.emit()}),$||_(5,pe),((le=m.current)==null?void 0:le.value)!==void 0){let ge=C??"";(Te=(me=m.current).onValueChange)==null||Te.call(me,ge);return}}X.emit()}},emit:()=>{s.current.forEach(M=>M())}}),[]),Y=k.useMemo(()=>({value:(M,C,$)=>{var K;C!==((K=c.current.get(M))==null?void 0:K.value)&&(c.current.set(M,{value:C,keywords:$}),i.current.filtered.items.set(M,ae(C,$)),_(2,()=>{B(),X.emit()}))},item:(M,C)=>(a.current.add(M),C&&(o.current.has(C)?o.current.get(C).add(M):o.current.set(C,new Set([M]))),_(3,()=>{P(),B(),i.current.value||re(),X.emit()}),()=>{c.current.delete(M),a.current.delete(M),i.current.filtered.items.delete(M);let $=oe();_(4,()=>{P(),($==null?void 0:$.getAttribute("id"))===M&&re(),X.emit()})}),group:M=>(o.current.has(M)||o.current.set(M,new Set),()=>{c.current.delete(M),o.current.delete(M)}),filter:()=>m.current.shouldFilter,label:h||t["aria-label"],getDisablePointerSelection:()=>m.current.disablePointerSelection,listId:L,inputId:W,labelId:R,listInnerRef:ee}),[]);function ae(M,C){var $,K;let le=(K=($=m.current)==null?void 0:$.filter)!=null?K:pw;return M?le(M,i.current.search,C):0}function B(){if(!i.current.search||m.current.shouldFilter===!1)return;let M=i.current.filtered.items,C=[];i.current.filtered.groups.forEach(K=>{let le=o.current.get(K),me=0;le.forEach(Te=>{let ge=M.get(Te);me=Math.max(ge,me)}),C.push([K,me])});let $=ee.current;ne().sort((K,le)=>{var me,Te;let ge=K.getAttribute("id"),at=le.getAttribute("id");return((me=M.get(at))!=null?me:0)-((Te=M.get(ge))!=null?Te:0)}).forEach(K=>{let le=K.closest(lf);le?le.appendChild(K.parentElement===le?K:K.closest(`${lf} > *`)):$.appendChild(K.parentElement===$?K:K.closest(`${lf} > *`))}),C.sort((K,le)=>le[1]-K[1]).forEach(K=>{var le;let me=(le=ee.current)==null?void 0:le.querySelector(`${ca}[${ri}="${encodeURIComponent(K[0])}"]`);me==null||me.parentElement.appendChild(me)})}function re(){let M=ne().find($=>$.getAttribute("aria-disabled")!=="true"),C=M==null?void 0:M.getAttribute(ri);X.setState("value",C||void 0)}function P(){var M,C,$,K;if(!i.current.search||m.current.shouldFilter===!1){i.current.filtered.count=a.current.size;return}i.current.filtered.groups=new Set;let le=0;for(let me of a.current){let Te=(C=(M=c.current.get(me))==null?void 0:M.value)!=null?C:"",ge=(K=($=c.current.get(me))==null?void 0:$.keywords)!=null?K:[],at=ae(Te,ge);i.current.filtered.items.set(me,at),at>0&&le++}for(let[me,Te]of o.current)for(let ge of Te)if(i.current.filtered.items.get(ge)>0){i.current.filtered.groups.add(me);break}i.current.filtered.count=le}function pe(){var M,C,$;let K=oe();K&&(((M=K.parentElement)==null?void 0:M.firstChild)===K&&(($=(C=K.closest(ca))==null?void 0:C.querySelector(hw))==null||$.scrollIntoView({block:"nearest"})),K.scrollIntoView({block:"nearest"}))}function oe(){var M;return(M=ee.current)==null?void 0:M.querySelector(`${sx}[aria-selected="true"]`)}function ne(){var M;return Array.from(((M=ee.current)==null?void 0:M.querySelectorAll(ty))||[])}function H(M){let C=ne()[M];C&&X.setState("value",C.getAttribute(ri))}function te(M){var C;let $=oe(),K=ne(),le=K.findIndex(Te=>Te===$),me=K[le+M];(C=m.current)!=null&&C.loop&&(me=le+M<0?K[K.length-1]:le+M===K.length?K[0]:K[le+M]),me&&X.setState("value",me.getAttribute(ri))}function ce(M){let C=oe(),$=C==null?void 0:C.closest(ca),K;for(;$&&!K;)$=M>0?Ew($,ca):Cw($,ca),K=$==null?void 0:$.querySelector(ty);K?X.setState("value",K.getAttribute(ri)):te(M)}let ke=()=>H(ne().length-1),T=M=>{M.preventDefault(),M.metaKey?ke():M.altKey?ce(1):te(1)},D=M=>{M.preventDefault(),M.metaKey?H(0):M.altKey?ce(-1):te(-1)};return k.createElement(hn.div,{ref:r,tabIndex:-1,...N,"cmdk-root":"",onKeyDown:M=>{var C;(C=N.onKeyDown)==null||C.call(N,M);let $=M.nativeEvent.isComposing||M.keyCode===229;if(!(M.defaultPrevented||$))switch(M.key){case"n":case"j":{j&&M.ctrlKey&&T(M);break}case"ArrowDown":{T(M);break}case"p":case"k":{j&&M.ctrlKey&&D(M);break}case"ArrowUp":{D(M);break}case"Home":{M.preventDefault(),H(0);break}case"End":{M.preventDefault(),ke();break}case"Enter":{M.preventDefault();let K=oe();if(K){let le=new Event(Uf);K.dispatchEvent(le)}}}}},k.createElement("label",{"cmdk-label":"",htmlFor:Y.inputId,id:Y.labelId,style:Nw},h),vo(t,M=>k.createElement(fx.Provider,{value:X},k.createElement(cx.Provider,{value:Y},M))))}),gw=k.forwardRef((t,r)=>{var i,a;let o=Dn(),c=k.useRef(null),s=k.useContext(dx),m=Aa(),h=hx(t),p=(a=(i=h.current)==null?void 0:i.forceMount)!=null?a:s==null?void 0:s.forceMount;ir(()=>{if(!p)return m.item(o,s==null?void 0:s.id)},[p]);let y=px(o,c,[t.value,t.children,c],t.keywords),g=fd(),v=Dl(_=>_.value&&_.value===y.current),S=Dl(_=>p||m.filter()===!1?!0:_.search?_.filtered.items.get(o)>0:!0);k.useEffect(()=>{let _=c.current;if(!(!_||t.disabled))return _.addEventListener(Uf,E),()=>_.removeEventListener(Uf,E)},[S,t.onSelect,t.disabled]);function E(){var _,X;A(),(X=(_=h.current).onSelect)==null||X.call(_,y.current)}function A(){g.setState("value",y.current,!0)}if(!S)return null;let{disabled:j,value:N,onSelect:L,forceMount:R,keywords:W,...ee}=t;return k.createElement(hn.div,{ref:rr(c,r),...ee,id:o,"cmdk-item":"",role:"option","aria-disabled":!!j,"aria-selected":!!v,"data-disabled":!!j,"data-selected":!!v,onPointerMove:j||m.getDisablePointerSelection()?void 0:A,onClick:j?void 0:E},t.children)}),yw=k.forwardRef((t,r)=>{let{heading:i,children:a,forceMount:o,...c}=t,s=Dn(),m=k.useRef(null),h=k.useRef(null),p=Dn(),y=Aa(),g=Dl(S=>o||y.filter()===!1?!0:S.search?S.filtered.groups.has(s):!0);ir(()=>y.group(s),[]),px(s,m,[t.value,t.heading,h]);let v=k.useMemo(()=>({id:s,forceMount:o}),[o]);return k.createElement(hn.div,{ref:rr(m,r),...c,"cmdk-group":"",role:"presentation",hidden:g?void 0:!0},i&&k.createElement("div",{ref:h,"cmdk-group-heading":"","aria-hidden":!0,id:p},i),vo(t,S=>k.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":i?p:void 0},k.createElement(dx.Provider,{value:v},S))))}),bw=k.forwardRef((t,r)=>{let{alwaysRender:i,...a}=t,o=k.useRef(null),c=Dl(s=>!s.search);return!i&&!c?null:k.createElement(hn.div,{ref:rr(o,r),...a,"cmdk-separator":"",role:"separator"})}),xw=k.forwardRef((t,r)=>{let{onValueChange:i,...a}=t,o=t.value!=null,c=fd(),s=Dl(p=>p.search),m=Dl(p=>p.selectedItemId),h=Aa();return k.useEffect(()=>{t.value!=null&&c.setState("search",t.value)},[t.value]),k.createElement(hn.input,{ref:r,...a,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":h.listId,"aria-labelledby":h.labelId,"aria-activedescendant":m,id:h.inputId,type:"text",value:o?t.value:s,onChange:p=>{o||c.setState("search",p.target.value),i==null||i(p.target.value)}})}),vw=k.forwardRef((t,r)=>{let{children:i,label:a="Suggestions",...o}=t,c=k.useRef(null),s=k.useRef(null),m=Dl(p=>p.selectedItemId),h=Aa();return k.useEffect(()=>{if(s.current&&c.current){let p=s.current,y=c.current,g,v=new ResizeObserver(()=>{g=requestAnimationFrame(()=>{let S=p.offsetHeight;y.style.setProperty("--cmdk-list-height",S.toFixed(1)+"px")})});return v.observe(p),()=>{cancelAnimationFrame(g),v.unobserve(p)}}},[]),k.createElement(hn.div,{ref:rr(c,r),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":m,"aria-label":a,id:h.listId},vo(t,p=>k.createElement("div",{ref:rr(s,h.listInnerRef),"cmdk-list-sizer":""},p)))}),Sw=k.forwardRef((t,r)=>{let{open:i,onOpenChange:a,overlayClassName:o,contentClassName:c,container:s,...m}=t;return k.createElement(iw,{open:i,onOpenChange:a},k.createElement(uw,{container:s},k.createElement(ow,{"cmdk-overlay":"",className:o}),k.createElement(fw,{"aria-label":t.label,"cmdk-dialog":"",className:c},k.createElement(mx,{ref:r,...m}))))}),kw=k.forwardRef((t,r)=>Dl(i=>i.filtered.count===0)?k.createElement(hn.div,{ref:r,...t,"cmdk-empty":"",role:"presentation"}):null),ww=k.forwardRef((t,r)=>{let{progress:i,children:a,label:o="Loading...",...c}=t;return k.createElement(hn.div,{ref:r,...c,"cmdk-loading":"",role:"progressbar","aria-valuenow":i,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},vo(t,s=>k.createElement("div",{"aria-hidden":!0},s)))}),ti=Object.assign(mx,{List:vw,Item:gw,Input:xw,Group:yw,Separator:bw,Dialog:Sw,Empty:kw,Loading:ww});function Ew(t,r){let i=t.nextElementSibling;for(;i;){if(i.matches(r))return i;i=i.nextElementSibling}}function Cw(t,r){let i=t.previousElementSibling;for(;i;){if(i.matches(r))return i;i=i.previousElementSibling}}function hx(t){let r=k.useRef(t);return ir(()=>{r.current=t}),r}var ir=typeof window>"u"?k.useEffect:k.useLayoutEffect;function ii(t){let r=k.useRef();return r.current===void 0&&(r.current=t()),r}function Dl(t){let r=fd(),i=()=>t(r.snapshot());return k.useSyncExternalStore(r.subscribe,i,i)}function px(t,r,i,a=[]){let o=k.useRef(),c=Aa();return ir(()=>{var s;let m=(()=>{var p;for(let y of i){if(typeof y=="string")return y.trim();if(typeof y=="object"&&"current"in y)return y.current?(p=y.current.textContent)==null?void 0:p.trim():o.current}})(),h=a.map(p=>p.trim());c.value(t,m,h),(s=r.current)==null||s.setAttribute(ri,m),o.current=m}),o}var Tw=()=>{let[t,r]=k.useState(),i=ii(()=>new Map);return ir(()=>{i.current.forEach(a=>a()),i.current=new Map},[t]),(a,o)=>{i.current.set(a,o),r({})}};function Aw(t){let r=t.type;return typeof r=="function"?r(t.props):"render"in r?r.render(t.props):t}function vo({asChild:t,children:r},i){return t&&k.isValidElement(r)?k.cloneElement(Aw(r),{ref:r.ref},i(r.props.children)):i(r)}var Nw={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const zw=[{label:"Sessions",icon:mk,value:"sessions"},{label:"Memory",icon:db,value:"memory"},{label:"Schedules",icon:tk,value:"schedules"},{label:"Jobs",icon:ek,value:"jobs"},{label:"Settings",icon:yb,value:"settings"}];function jw({onNavigate:t}){const[r,i]=k.useState(!1);k.useEffect(()=>{const o=c=>{(c.metaKey||c.ctrlKey)&&c.key==="k"&&(c.preventDefault(),i(s=>!s))};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[]);const a=o=>{i(!1),t(o)};return r?b.jsxs("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>i(!1),children:[b.jsx("div",{className:"absolute inset-0 bg-black/50 backdrop-blur-sm","aria-hidden":!0}),b.jsx("div",{className:se("relative z-10 w-full max-w-lg rounded-xl border border-border","bg-popover text-popover-foreground shadow-2xl","overflow-hidden"),onClick:o=>o.stopPropagation(),children:b.jsxs(ti,{children:[b.jsxs("div",{className:"flex items-center gap-2 border-b border-border px-4 py-3",children:[b.jsxs("svg",{className:"h-4 w-4 shrink-0 text-muted-foreground",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,children:[b.jsx("circle",{cx:"11",cy:"11",r:"8"}),b.jsx("path",{d:"m21 21-4.35-4.35"})]}),b.jsx(ti.Input,{autoFocus:!0,placeholder:"Search commands…",className:se("flex-1 bg-transparent text-sm outline-none","placeholder:text-muted-foreground")}),b.jsx("kbd",{className:"hidden rounded border border-border px-1.5 py-0.5 text-xs text-muted-foreground sm:inline-block",children:"ESC"})]}),b.jsxs(ti.List,{className:"max-h-64 overflow-y-auto py-2",children:[b.jsx(ti.Empty,{className:"py-6 text-center text-sm text-muted-foreground",children:"No results found."}),b.jsx(ti.Group,{heading:"Navigation",className:"px-2",children:zw.map(({label:o,icon:c,value:s})=>b.jsxs(ti.Item,{value:s,onSelect:()=>a(s),className:se("flex cursor-pointer items-center gap-3 rounded-lg px-3 py-2 text-sm","text-popover-foreground transition-colors","data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground"),children:[b.jsx(c,{className:"h-4 w-4 text-muted-foreground"}),o]},s))})]})]})})]}):null}const Mw={1:"sessions",2:"memory",3:"schedules",4:"jobs"};function Dw({onNavigate:t}){return k.useEffect(()=>{function r(i){if(!(i.metaKey||i.ctrlKey))return;const a=Mw[i.key];a&&(i.preventDefault(),t(a))}return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)},[t]),null}function Ow(t,r){const i={};return(t[t.length-1]===""?[...t,""]:t).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const _w=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Rw=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Lw={};function ny(t,r){return(Lw.jsx?Rw:_w).test(t)}const Uw=/[ \t\n\f\r]/g;function Bw(t){return typeof t=="object"?t.type==="text"?ly(t.value):!1:ly(t)}function ly(t){return t.replace(Uw,"")===""}class Na{constructor(r,i,a){this.normal=i,this.property=r,a&&(this.space=a)}}Na.prototype.normal={};Na.prototype.property={};Na.prototype.space=void 0;function gx(t,r){const i={},a={};for(const o of t)Object.assign(i,o.property),Object.assign(a,o.normal);return new Na(i,a,r)}function Bf(t){return t.toLowerCase()}class Ft{constructor(r,i){this.attribute=i,this.property=r}}Ft.prototype.attribute="";Ft.prototype.booleanish=!1;Ft.prototype.boolean=!1;Ft.prototype.commaOrSpaceSeparated=!1;Ft.prototype.commaSeparated=!1;Ft.prototype.defined=!1;Ft.prototype.mustUseProperty=!1;Ft.prototype.number=!1;Ft.prototype.overloadedBoolean=!1;Ft.prototype.property="";Ft.prototype.spaceSeparated=!1;Ft.prototype.space=void 0;let Hw=0;const we=sr(),ft=sr(),Hf=sr(),ie=sr(),Ke=sr(),lr=sr(),Wt=sr();function sr(){return 2**++Hw}const qf=Object.freeze(Object.defineProperty({__proto__:null,boolean:we,booleanish:ft,commaOrSpaceSeparated:Wt,commaSeparated:lr,number:ie,overloadedBoolean:Hf,spaceSeparated:Ke},Symbol.toStringTag,{value:"Module"})),rf=Object.keys(qf);class dd extends Ft{constructor(r,i,a,o){let c=-1;if(super(r,i),ry(this,"space",o),typeof a=="number")for(;++c<rf.length;){const s=rf[c];ry(this,rf[c],(a&qf[s])===qf[s])}}}dd.prototype.defined=!0;function ry(t,r,i){i&&(t[r]=i)}function mi(t){const r={},i={};for(const[a,o]of Object.entries(t.properties)){const c=new dd(a,t.transform(t.attributes||{},a),o,t.space);t.mustUseProperty&&t.mustUseProperty.includes(a)&&(c.mustUseProperty=!0),r[a]=c,i[Bf(a)]=a,i[Bf(c.attribute)]=a}return new Na(r,i,t.space)}const yx=mi({properties:{ariaActiveDescendant:null,ariaAtomic:ft,ariaAutoComplete:null,ariaBusy:ft,ariaChecked:ft,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:Ke,ariaCurrent:null,ariaDescribedBy:Ke,ariaDetails:null,ariaDisabled:ft,ariaDropEffect:Ke,ariaErrorMessage:null,ariaExpanded:ft,ariaFlowTo:Ke,ariaGrabbed:ft,ariaHasPopup:null,ariaHidden:ft,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ke,ariaLevel:ie,ariaLive:null,ariaModal:ft,ariaMultiLine:ft,ariaMultiSelectable:ft,ariaOrientation:null,ariaOwns:Ke,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:ft,ariaReadOnly:ft,ariaRelevant:null,ariaRequired:ft,ariaRoleDescription:Ke,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:ft,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(t,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()}});function bx(t,r){return r in t?t[r]:r}function xx(t,r){return bx(t,r.toLowerCase())}const qw=mi({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:lr,acceptCharset:Ke,accessKey:Ke,action:null,allow:null,allowFullScreen:we,allowPaymentRequest:we,allowUserMedia:we,alpha:we,alt:null,as:null,async:we,autoCapitalize:null,autoComplete:Ke,autoFocus:we,autoPlay:we,blocking:Ke,capture:null,charSet:null,checked:we,cite:null,className:Ke,closedBy:null,colorSpace:null,cols:ie,colSpan:ie,command:null,commandFor:null,content:null,contentEditable:ft,controls:we,controlsList:Ke,coords:ie|lr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:we,defer:we,dir:null,dirName:null,disabled:we,download:Hf,draggable:ft,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:we,formTarget:null,headers:Ke,height:ie,hidden:Hf,high:ie,href:null,hrefLang:null,htmlFor:Ke,httpEquiv:Ke,id:null,imageSizes:null,imageSrcSet:null,inert:we,inputMode:null,integrity:null,is:null,isMap:we,itemId:null,itemProp:Ke,itemRef:Ke,itemScope:we,itemType:Ke,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:we,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:we,muted:we,name:null,nonce:null,noModule:we,noValidate:we,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:we,optimum:ie,pattern:null,ping:Ke,placeholder:null,playsInline:we,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:we,referrerPolicy:null,rel:Ke,required:we,reversed:we,rows:ie,rowSpan:ie,sandbox:Ke,scope:null,scoped:we,seamless:we,selected:we,shadowRootClonable:we,shadowRootCustomElementRegistry:we,shadowRootDelegatesFocus:we,shadowRootMode:null,shadowRootSerializable:we,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:ft,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:we,useMap:null,value:ft,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ke,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:we,declare:we,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:we,noHref:we,noShade:we,noWrap:we,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:ft,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:we,disablePictureInPicture:we,disableRemotePlayback:we,exportParts:lr,part:Ke,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:xx}),Vw=mi({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Wt,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:Ke,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:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:we,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,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:lr,g2:lr,glyphName:lr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:Wt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ie,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:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ke,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Wt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Wt,rev:Wt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Wt,requiredFeatures:Wt,requiredFonts:Wt,requiredFormats:Wt,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:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:Wt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Wt,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Wt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:bx}),vx=mi({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,r){return"xlink:"+r.slice(5).toLowerCase()}}),Sx=mi({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xx}),kx=mi({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,r){return"xml:"+r.slice(3).toLowerCase()}}),Yw={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"},Gw=/[A-Z]/g,iy=/-[a-z]/g,Fw=/^data[-\w.:]+$/i;function Iw(t,r){const i=Bf(r);let a=r,o=Ft;if(i in t.normal)return t.property[t.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&Fw.test(r)){if(r.charAt(4)==="-"){const c=r.slice(5).replace(iy,Qw);a="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=r.slice(4);if(!iy.test(c)){let s=c.replace(Gw,Xw);s.charAt(0)!=="-"&&(s="-"+s),r="data"+s}}o=dd}return new o(a,r)}function Xw(t){return"-"+t.toLowerCase()}function Qw(t){return t.charAt(1).toUpperCase()}const Zw=gx([yx,qw,vx,Sx,kx],"html"),md=gx([yx,Vw,vx,Sx,kx],"svg");function Kw(t){return t.join(" ").trim()}var ni={},af,ay;function Jw(){if(ay)return af;ay=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,c=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,m=/^\s+|\s+$/g,h=`
270
- `,p="/",y="*",g="",v="comment",S="declaration";function E(j,N){if(typeof j!="string")throw new TypeError("First argument must be a string");if(!j)return[];N=N||{};var L=1,R=1;function W(oe){var ne=oe.match(r);ne&&(L+=ne.length);var H=oe.lastIndexOf(h);R=~H?oe.length-H:R+oe.length}function ee(){var oe={line:L,column:R};return function(ne){return ne.position=new _(oe),ae(),ne}}function _(oe){this.start=oe,this.end={line:L,column:R},this.source=N.source}_.prototype.content=j;function X(oe){var ne=new Error(N.source+":"+L+":"+R+": "+oe);if(ne.reason=oe,ne.filename=N.source,ne.line=L,ne.column=R,ne.source=j,!N.silent)throw ne}function Y(oe){var ne=oe.exec(j);if(ne){var H=ne[0];return W(H),j=j.slice(H.length),ne}}function ae(){Y(i)}function B(oe){var ne;for(oe=oe||[];ne=re();)ne!==!1&&oe.push(ne);return oe}function re(){var oe=ee();if(!(p!=j.charAt(0)||y!=j.charAt(1))){for(var ne=2;g!=j.charAt(ne)&&(y!=j.charAt(ne)||p!=j.charAt(ne+1));)++ne;if(ne+=2,g===j.charAt(ne-1))return X("End of comment missing");var H=j.slice(2,ne-2);return R+=2,W(H),j=j.slice(ne),R+=2,oe({type:v,comment:H})}}function P(){var oe=ee(),ne=Y(a);if(ne){if(re(),!Y(o))return X("property missing ':'");var H=Y(c),te=oe({type:S,property:A(ne[0].replace(t,g)),value:H?A(H[0].replace(t,g)):g});return Y(s),te}}function pe(){var oe=[];B(oe);for(var ne;ne=P();)ne!==!1&&(oe.push(ne),B(oe));return oe}return ae(),pe()}function A(j){return j?j.replace(m,g):g}return af=E,af}var uy;function Pw(){if(uy)return ni;uy=1;var t=ni&&ni.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(ni,"__esModule",{value:!0}),ni.default=i;const r=t(Jw());function i(a,o){let c=null;if(!a||typeof a!="string")return c;const s=(0,r.default)(a),m=typeof o=="function";return s.forEach(h=>{if(h.type!=="declaration")return;const{property:p,value:y}=h;m?o(p,y,h):y&&(c=c||{},c[p]=y)}),c}return ni}var fa={},oy;function $w(){if(oy)return fa;oy=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,c=function(p){return!p||i.test(p)||t.test(p)},s=function(p,y){return y.toUpperCase()},m=function(p,y){return"".concat(y,"-")},h=function(p,y){return y===void 0&&(y={}),c(p)?p:(p=p.toLowerCase(),y.reactCompat?p=p.replace(o,m):p=p.replace(a,m),p.replace(r,s))};return fa.camelCase=h,fa}var da,sy;function Ww(){if(sy)return da;sy=1;var t=da&&da.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},r=t(Pw()),i=$w();function a(o,c){var s={};return!o||typeof o!="string"||(0,r.default)(o,function(m,h){m&&h&&(s[(0,i.camelCase)(m,c)]=h)}),s}return a.default=a,da=a,da}var eE=Ww();const tE=Pf(eE),wx=Ex("end"),hd=Ex("start");function Ex(t){return r;function r(i){const a=i&&i.position&&i.position[t]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function nE(t){const r=hd(t),i=wx(t);if(r&&i)return{start:r,end:i}}function xa(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?cy(t.position):"start"in t||"end"in t?cy(t):"line"in t||"column"in t?Vf(t):""}function Vf(t){return fy(t&&t.line)+":"+fy(t&&t.column)}function cy(t){return Vf(t&&t.start)+"-"+Vf(t&&t.end)}function fy(t){return t&&typeof t=="number"?t:1}class Tt extends Error{constructor(r,i,a){super(),typeof i=="string"&&(a=i,i=void 0);let o="",c={},s=!1;if(i&&("line"in i&&"column"in i?c={place:i}:"start"in i&&"end"in i?c={place:i}:"type"in i?c={ancestors:[i],place:i.position}:c={...i}),typeof r=="string"?o=r:!c.cause&&r&&(s=!0,o=r.message,c.cause=r),!c.ruleId&&!c.source&&typeof a=="string"){const h=a.indexOf(":");h===-1?c.ruleId=a:(c.source=a.slice(0,h),c.ruleId=a.slice(h+1))}if(!c.place&&c.ancestors&&c.ancestors){const h=c.ancestors[c.ancestors.length-1];h&&(c.place=h.position)}const m=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=m?m.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=m?m.line:void 0,this.name=xa(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=s&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Tt.prototype.file="";Tt.prototype.name="";Tt.prototype.reason="";Tt.prototype.message="";Tt.prototype.stack="";Tt.prototype.column=void 0;Tt.prototype.line=void 0;Tt.prototype.ancestors=void 0;Tt.prototype.cause=void 0;Tt.prototype.fatal=void 0;Tt.prototype.place=void 0;Tt.prototype.ruleId=void 0;Tt.prototype.source=void 0;const pd={}.hasOwnProperty,lE=new Map,rE=/[A-Z]/g,iE=new Set(["table","tbody","thead","tfoot","tr"]),aE=new Set(["td","th"]),Cx="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function uE(t,r){if(!r||r.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=r.filePath||void 0;let a;if(r.development){if(typeof r.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=pE(i,r.jsxDEV)}else{if(typeof r.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof r.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=hE(i,r.jsx,r.jsxs)}const o={Fragment:r.Fragment,ancestors:[],components:r.components||{},create:a,elementAttributeNameCase:r.elementAttributeNameCase||"react",evaluater:r.createEvaluater?r.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:r.ignoreInvalidStyle||!1,passKeys:r.passKeys!==!1,passNode:r.passNode||!1,schema:r.space==="svg"?md:Zw,stylePropertyNameCase:r.stylePropertyNameCase||"dom",tableCellAlignToStyle:r.tableCellAlignToStyle!==!1},c=Tx(o,t,void 0);return c&&typeof c!="string"?c:o.create(t,o.Fragment,{children:c||void 0},void 0)}function Tx(t,r,i){if(r.type==="element")return oE(t,r,i);if(r.type==="mdxFlowExpression"||r.type==="mdxTextExpression")return sE(t,r);if(r.type==="mdxJsxFlowElement"||r.type==="mdxJsxTextElement")return fE(t,r,i);if(r.type==="mdxjsEsm")return cE(t,r);if(r.type==="root")return dE(t,r,i);if(r.type==="text")return mE(t,r)}function oE(t,r,i){const a=t.schema;let o=a;r.tagName.toLowerCase()==="svg"&&a.space==="html"&&(o=md,t.schema=o),t.ancestors.push(r);const c=Nx(t,r.tagName,!1),s=gE(t,r);let m=yd(t,r);return iE.has(r.tagName)&&(m=m.filter(function(h){return typeof h=="string"?!Bw(h):!0})),Ax(t,s,c,r),gd(s,m),t.ancestors.pop(),t.schema=a,t.create(r,c,s,i)}function sE(t,r){if(r.data&&r.data.estree&&t.evaluater){const a=r.data.estree.body[0];return a.type,t.evaluater.evaluateExpression(a.expression)}wa(t,r.position)}function cE(t,r){if(r.data&&r.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(r.data.estree);wa(t,r.position)}function fE(t,r,i){const a=t.schema;let o=a;r.name==="svg"&&a.space==="html"&&(o=md,t.schema=o),t.ancestors.push(r);const c=r.name===null?t.Fragment:Nx(t,r.name,!0),s=yE(t,r),m=yd(t,r);return Ax(t,s,c,r),gd(s,m),t.ancestors.pop(),t.schema=a,t.create(r,c,s,i)}function dE(t,r,i){const a={};return gd(a,yd(t,r)),t.create(r,t.Fragment,a,i)}function mE(t,r){return r.value}function Ax(t,r,i,a){typeof i!="string"&&i!==t.Fragment&&t.passNode&&(r.node=a)}function gd(t,r){if(r.length>0){const i=r.length>1?r:r[0];i&&(t.children=i)}}function hE(t,r,i){return a;function a(o,c,s,m){const p=Array.isArray(s.children)?i:r;return m?p(c,s,m):p(c,s)}}function pE(t,r){return i;function i(a,o,c,s){const m=Array.isArray(c.children),h=hd(a);return r(o,c,s,m,{columnNumber:h?h.column-1:void 0,fileName:t,lineNumber:h?h.line:void 0},void 0)}}function gE(t,r){const i={};let a,o;for(o in r.properties)if(o!=="children"&&pd.call(r.properties,o)){const c=bE(t,o,r.properties[o]);if(c){const[s,m]=c;t.tableCellAlignToStyle&&s==="align"&&typeof m=="string"&&aE.has(r.tagName)?a=m:i[s]=m}}if(a){const c=i.style||(i.style={});c[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return i}function yE(t,r){const i={};for(const a of r.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&t.evaluater){const c=a.data.estree.body[0];c.type;const s=c.expression;s.type;const m=s.properties[0];m.type,Object.assign(i,t.evaluater.evaluateExpression(m.argument))}else wa(t,r.position);else{const o=a.name;let c;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&t.evaluater){const m=a.value.data.estree.body[0];m.type,c=t.evaluater.evaluateExpression(m.expression)}else wa(t,r.position);else c=a.value===null?!0:a.value;i[o]=c}return i}function yd(t,r){const i=[];let a=-1;const o=t.passKeys?new Map:lE;for(;++a<r.children.length;){const c=r.children[a];let s;if(t.passKeys){const h=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(h){const p=o.get(h)||0;s=h+"-"+p,o.set(h,p+1)}}const m=Tx(t,c,s);m!==void 0&&i.push(m)}return i}function bE(t,r,i){const a=Iw(t.schema,r);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=a.commaSeparated?Ow(i):Kw(i)),a.property==="style"){let o=typeof i=="object"?i:xE(t,String(i));return t.stylePropertyNameCase==="css"&&(o=vE(o)),["style",o]}return[t.elementAttributeNameCase==="react"&&a.space?Yw[a.property]||a.property:a.attribute,i]}}function xE(t,r){try{return tE(r,{reactCompat:!0})}catch(i){if(t.ignoreInvalidStyle)return{};const a=i,o=new Tt("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:a,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=t.filePath||void 0,o.url=Cx+"#cannot-parse-style-attribute",o}}function Nx(t,r,i){let a;if(!i)a={type:"Literal",value:r};else if(r.includes(".")){const o=r.split(".");let c=-1,s;for(;++c<o.length;){const m=ny(o[c])?{type:"Identifier",name:o[c]}:{type:"Literal",value:o[c]};s=s?{type:"MemberExpression",object:s,property:m,computed:!!(c&&m.type==="Literal"),optional:!1}:m}a=s}else a=ny(r)&&!/^[a-z]/.test(r)?{type:"Identifier",name:r}:{type:"Literal",value:r};if(a.type==="Literal"){const o=a.value;return pd.call(t.components,o)?t.components[o]:o}if(t.evaluater)return t.evaluater.evaluateExpression(a);wa(t)}function wa(t,r){const i=new Tt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:r,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=Cx+"#cannot-handle-mdx-estrees-without-createevaluater",i}function vE(t){const r={};let i;for(i in t)pd.call(t,i)&&(r[SE(i)]=t[i]);return r}function SE(t){let r=t.replace(rE,kE);return r.slice(0,3)==="ms-"&&(r="-"+r),r}function kE(t){return"-"+t.toLowerCase()}const uf={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"]},wE={};function bd(t,r){const i=wE,a=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,o=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return zx(t,a,o)}function zx(t,r,i){if(EE(t)){if("value"in t)return t.type==="html"&&!i?"":t.value;if(r&&"alt"in t&&t.alt)return t.alt;if("children"in t)return dy(t.children,r,i)}return Array.isArray(t)?dy(t,r,i):""}function dy(t,r,i){const a=[];let o=-1;for(;++o<t.length;)a[o]=zx(t[o],r,i);return a.join("")}function EE(t){return!!(t&&typeof t=="object")}const my=document.createElement("i");function xd(t){const r="&"+t+";";my.innerHTML=r;const i=my.textContent;return i.charCodeAt(i.length-1)===59&&t!=="semi"||i===r?!1:i}function en(t,r,i,a){const o=t.length;let c=0,s;if(r<0?r=-r>o?0:o+r:r=r>o?o:r,i=i>0?i:0,a.length<1e4)s=Array.from(a),s.unshift(r,i),t.splice(...s);else for(i&&t.splice(r,i);c<a.length;)s=a.slice(c,c+1e4),s.unshift(r,0),t.splice(...s),c+=1e4,r+=1e4}function dn(t,r){return t.length>0?(en(t,t.length,0,r),t):r}const hy={}.hasOwnProperty;function jx(t){const r={};let i=-1;for(;++i<t.length;)CE(r,t[i]);return r}function CE(t,r){let i;for(i in r){const o=(hy.call(t,i)?t[i]:void 0)||(t[i]={}),c=r[i];let s;if(c)for(s in c){hy.call(o,s)||(o[s]=[]);const m=c[s];TE(o[s],Array.isArray(m)?m:m?[m]:[])}}}function TE(t,r){let i=-1;const a=[];for(;++i<r.length;)(r[i].add==="after"?t:a).push(r[i]);en(t,0,0,a)}function Mx(t,r){const i=Number.parseInt(t,r);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function vn(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const jt=_l(/[A-Za-z]/),Ct=_l(/[\dA-Za-z]/),AE=_l(/[#-'*+\--9=?A-Z^-~]/);function po(t){return t!==null&&(t<32||t===127)}const Yf=_l(/\d/),NE=_l(/[\dA-Fa-f]/),zE=_l(/[!-/:-@[-`{-~]/);function xe(t){return t!==null&&t<-2}function Je(t){return t!==null&&(t<0||t===32)}function De(t){return t===-2||t===-1||t===32}const So=_l(new RegExp("\\p{P}|\\p{S}","u")),ar=_l(/\s/);function _l(t){return r;function r(i){return i!==null&&i>-1&&t.test(String.fromCharCode(i))}}function hi(t){const r=[];let i=-1,a=0,o=0;for(;++i<t.length;){const c=t.charCodeAt(i);let s="";if(c===37&&Ct(t.charCodeAt(i+1))&&Ct(t.charCodeAt(i+2)))o=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(s=String.fromCharCode(c));else if(c>55295&&c<57344){const m=t.charCodeAt(i+1);c<56320&&m>56319&&m<57344?(s=String.fromCharCode(c,m),o=1):s="�"}else s=String.fromCharCode(c);s&&(r.push(t.slice(a,i),encodeURIComponent(s)),a=i+o+1,s=""),o&&(i+=o,o=0)}return r.join("")+t.slice(a)}function Le(t,r,i,a){const o=a?a-1:Number.POSITIVE_INFINITY;let c=0;return s;function s(h){return De(h)?(t.enter(i),m(h)):r(h)}function m(h){return De(h)&&c++<o?(t.consume(h),m):(t.exit(i),r(h))}}const jE={tokenize:ME};function ME(t){const r=t.attempt(this.parser.constructs.contentInitial,a,o);let i;return r;function a(m){if(m===null){t.consume(m);return}return t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),Le(t,r,"linePrefix")}function o(m){return t.enter("paragraph"),c(m)}function c(m){const h=t.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=h),i=h,s(m)}function s(m){if(m===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(m);return}return xe(m)?(t.consume(m),t.exit("chunkText"),c):(t.consume(m),s)}}const DE={tokenize:OE},py={tokenize:_E};function OE(t){const r=this,i=[];let a=0,o,c,s;return m;function m(R){if(a<i.length){const W=i[a];return r.containerState=W[1],t.attempt(W[0].continuation,h,p)(R)}return p(R)}function h(R){if(a++,r.containerState._closeFlow){r.containerState._closeFlow=void 0,o&&L();const W=r.events.length;let ee=W,_;for(;ee--;)if(r.events[ee][0]==="exit"&&r.events[ee][1].type==="chunkFlow"){_=r.events[ee][1].end;break}N(a);let X=W;for(;X<r.events.length;)r.events[X][1].end={..._},X++;return en(r.events,ee+1,0,r.events.slice(W)),r.events.length=X,p(R)}return m(R)}function p(R){if(a===i.length){if(!o)return v(R);if(o.currentConstruct&&o.currentConstruct.concrete)return E(R);r.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return r.containerState={},t.check(py,y,g)(R)}function y(R){return o&&L(),N(a),v(R)}function g(R){return r.parser.lazy[r.now().line]=a!==i.length,s=r.now().offset,E(R)}function v(R){return r.containerState={},t.attempt(py,S,E)(R)}function S(R){return a++,i.push([r.currentConstruct,r.containerState]),v(R)}function E(R){if(R===null){o&&L(),N(0),t.consume(R);return}return o=o||r.parser.flow(r.now()),t.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:c}),A(R)}function A(R){if(R===null){j(t.exit("chunkFlow"),!0),N(0),t.consume(R);return}return xe(R)?(t.consume(R),j(t.exit("chunkFlow")),a=0,r.interrupt=void 0,m):(t.consume(R),A)}function j(R,W){const ee=r.sliceStream(R);if(W&&ee.push(null),R.previous=c,c&&(c.next=R),c=R,o.defineSkip(R.start),o.write(ee),r.parser.lazy[R.start.line]){let _=o.events.length;for(;_--;)if(o.events[_][1].start.offset<s&&(!o.events[_][1].end||o.events[_][1].end.offset>s))return;const X=r.events.length;let Y=X,ae,B;for(;Y--;)if(r.events[Y][0]==="exit"&&r.events[Y][1].type==="chunkFlow"){if(ae){B=r.events[Y][1].end;break}ae=!0}for(N(a),_=X;_<r.events.length;)r.events[_][1].end={...B},_++;en(r.events,Y+1,0,r.events.slice(X)),r.events.length=_}}function N(R){let W=i.length;for(;W-- >R;){const ee=i[W];r.containerState=ee[1],ee[0].exit.call(r,t)}i.length=R}function L(){o.write([null]),c=void 0,o=void 0,r.containerState._closeFlow=void 0}}function _E(t,r,i){return Le(t,t.attempt(this.parser.constructs.document,r,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ci(t){if(t===null||Je(t)||ar(t))return 1;if(So(t))return 2}function ko(t,r,i){const a=[];let o=-1;for(;++o<t.length;){const c=t[o].resolveAll;c&&!a.includes(c)&&(r=c(r,i),a.push(c))}return r}const Gf={name:"attention",resolveAll:RE,tokenize:LE};function RE(t,r){let i=-1,a,o,c,s,m,h,p,y;for(;++i<t.length;)if(t[i][0]==="enter"&&t[i][1].type==="attentionSequence"&&t[i][1]._close){for(a=i;a--;)if(t[a][0]==="exit"&&t[a][1].type==="attentionSequence"&&t[a][1]._open&&r.sliceSerialize(t[a][1]).charCodeAt(0)===r.sliceSerialize(t[i][1]).charCodeAt(0)){if((t[a][1]._close||t[i][1]._open)&&(t[i][1].end.offset-t[i][1].start.offset)%3&&!((t[a][1].end.offset-t[a][1].start.offset+t[i][1].end.offset-t[i][1].start.offset)%3))continue;h=t[a][1].end.offset-t[a][1].start.offset>1&&t[i][1].end.offset-t[i][1].start.offset>1?2:1;const g={...t[a][1].end},v={...t[i][1].start};gy(g,-h),gy(v,h),s={type:h>1?"strongSequence":"emphasisSequence",start:g,end:{...t[a][1].end}},m={type:h>1?"strongSequence":"emphasisSequence",start:{...t[i][1].start},end:v},c={type:h>1?"strongText":"emphasisText",start:{...t[a][1].end},end:{...t[i][1].start}},o={type:h>1?"strong":"emphasis",start:{...s.start},end:{...m.end}},t[a][1].end={...s.start},t[i][1].start={...m.end},p=[],t[a][1].end.offset-t[a][1].start.offset&&(p=dn(p,[["enter",t[a][1],r],["exit",t[a][1],r]])),p=dn(p,[["enter",o,r],["enter",s,r],["exit",s,r],["enter",c,r]]),p=dn(p,ko(r.parser.constructs.insideSpan.null,t.slice(a+1,i),r)),p=dn(p,[["exit",c,r],["enter",m,r],["exit",m,r],["exit",o,r]]),t[i][1].end.offset-t[i][1].start.offset?(y=2,p=dn(p,[["enter",t[i][1],r],["exit",t[i][1],r]])):y=0,en(t,a-1,i-a+3,p),i=a+p.length-y-2;break}}for(i=-1;++i<t.length;)t[i][1].type==="attentionSequence"&&(t[i][1].type="data");return t}function LE(t,r){const i=this.parser.constructs.attentionMarkers.null,a=this.previous,o=ci(a);let c;return s;function s(h){return c=h,t.enter("attentionSequence"),m(h)}function m(h){if(h===c)return t.consume(h),m;const p=t.exit("attentionSequence"),y=ci(h),g=!y||y===2&&o||i.includes(h),v=!o||o===2&&y||i.includes(a);return p._open=!!(c===42?g:g&&(o||!v)),p._close=!!(c===42?v:v&&(y||!g)),r(h)}}function gy(t,r){t.column+=r,t.offset+=r,t._bufferIndex+=r}const UE={name:"autolink",tokenize:BE};function BE(t,r,i){let a=0;return o;function o(S){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),c}function c(S){return jt(S)?(t.consume(S),s):S===64?i(S):p(S)}function s(S){return S===43||S===45||S===46||Ct(S)?(a=1,m(S)):p(S)}function m(S){return S===58?(t.consume(S),a=0,h):(S===43||S===45||S===46||Ct(S))&&a++<32?(t.consume(S),m):(a=0,p(S))}function h(S){return S===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.exit("autolink"),r):S===null||S===32||S===60||po(S)?i(S):(t.consume(S),h)}function p(S){return S===64?(t.consume(S),y):AE(S)?(t.consume(S),p):i(S)}function y(S){return Ct(S)?g(S):i(S)}function g(S){return S===46?(t.consume(S),a=0,y):S===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(S),t.exit("autolinkMarker"),t.exit("autolink"),r):v(S)}function v(S){if((S===45||Ct(S))&&a++<63){const E=S===45?v:g;return t.consume(S),E}return i(S)}}const za={partial:!0,tokenize:HE};function HE(t,r,i){return a;function a(c){return De(c)?Le(t,o,"linePrefix")(c):o(c)}function o(c){return c===null||xe(c)?r(c):i(c)}}const Dx={continuation:{tokenize:VE},exit:YE,name:"blockQuote",tokenize:qE};function qE(t,r,i){const a=this;return o;function o(s){if(s===62){const m=a.containerState;return m.open||(t.enter("blockQuote",{_container:!0}),m.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(s),t.exit("blockQuoteMarker"),c}return i(s)}function c(s){return De(s)?(t.enter("blockQuotePrefixWhitespace"),t.consume(s),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),r):(t.exit("blockQuotePrefix"),r(s))}}function VE(t,r,i){const a=this;return o;function o(s){return De(s)?Le(t,c,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):c(s)}function c(s){return t.attempt(Dx,r,i)(s)}}function YE(t){t.exit("blockQuote")}const Ox={name:"characterEscape",tokenize:GE};function GE(t,r,i){return a;function a(c){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(c),t.exit("escapeMarker"),o}function o(c){return zE(c)?(t.enter("characterEscapeValue"),t.consume(c),t.exit("characterEscapeValue"),t.exit("characterEscape"),r):i(c)}}const _x={name:"characterReference",tokenize:FE};function FE(t,r,i){const a=this;let o=0,c,s;return m;function m(g){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),h}function h(g){return g===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(g),t.exit("characterReferenceMarkerNumeric"),p):(t.enter("characterReferenceValue"),c=31,s=Ct,y(g))}function p(g){return g===88||g===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(g),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),c=6,s=NE,y):(t.enter("characterReferenceValue"),c=7,s=Yf,y(g))}function y(g){if(g===59&&o){const v=t.exit("characterReferenceValue");return s===Ct&&!xd(a.sliceSerialize(v))?i(g):(t.enter("characterReferenceMarker"),t.consume(g),t.exit("characterReferenceMarker"),t.exit("characterReference"),r)}return s(g)&&o++<c?(t.consume(g),y):i(g)}}const yy={partial:!0,tokenize:XE},by={concrete:!0,name:"codeFenced",tokenize:IE};function IE(t,r,i){const a=this,o={partial:!0,tokenize:ee};let c=0,s=0,m;return h;function h(_){return p(_)}function p(_){const X=a.events[a.events.length-1];return c=X&&X[1].type==="linePrefix"?X[2].sliceSerialize(X[1],!0).length:0,m=_,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),y(_)}function y(_){return _===m?(s++,t.consume(_),y):s<3?i(_):(t.exit("codeFencedFenceSequence"),De(_)?Le(t,g,"whitespace")(_):g(_))}function g(_){return _===null||xe(_)?(t.exit("codeFencedFence"),a.interrupt?r(_):t.check(yy,A,W)(_)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),v(_))}function v(_){return _===null||xe(_)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),g(_)):De(_)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),Le(t,S,"whitespace")(_)):_===96&&_===m?i(_):(t.consume(_),v)}function S(_){return _===null||xe(_)?g(_):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),E(_))}function E(_){return _===null||xe(_)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),g(_)):_===96&&_===m?i(_):(t.consume(_),E)}function A(_){return t.attempt(o,W,j)(_)}function j(_){return t.enter("lineEnding"),t.consume(_),t.exit("lineEnding"),N}function N(_){return c>0&&De(_)?Le(t,L,"linePrefix",c+1)(_):L(_)}function L(_){return _===null||xe(_)?t.check(yy,A,W)(_):(t.enter("codeFlowValue"),R(_))}function R(_){return _===null||xe(_)?(t.exit("codeFlowValue"),L(_)):(t.consume(_),R)}function W(_){return t.exit("codeFenced"),r(_)}function ee(_,X,Y){let ae=0;return B;function B(ne){return _.enter("lineEnding"),_.consume(ne),_.exit("lineEnding"),re}function re(ne){return _.enter("codeFencedFence"),De(ne)?Le(_,P,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):P(ne)}function P(ne){return ne===m?(_.enter("codeFencedFenceSequence"),pe(ne)):Y(ne)}function pe(ne){return ne===m?(ae++,_.consume(ne),pe):ae>=s?(_.exit("codeFencedFenceSequence"),De(ne)?Le(_,oe,"whitespace")(ne):oe(ne)):Y(ne)}function oe(ne){return ne===null||xe(ne)?(_.exit("codeFencedFence"),X(ne)):Y(ne)}}}function XE(t,r,i){const a=this;return o;function o(s){return s===null?i(s):(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),c)}function c(s){return a.parser.lazy[a.now().line]?i(s):r(s)}}const of={name:"codeIndented",tokenize:ZE},QE={partial:!0,tokenize:KE};function ZE(t,r,i){const a=this;return o;function o(p){return t.enter("codeIndented"),Le(t,c,"linePrefix",5)(p)}function c(p){const y=a.events[a.events.length-1];return y&&y[1].type==="linePrefix"&&y[2].sliceSerialize(y[1],!0).length>=4?s(p):i(p)}function s(p){return p===null?h(p):xe(p)?t.attempt(QE,s,h)(p):(t.enter("codeFlowValue"),m(p))}function m(p){return p===null||xe(p)?(t.exit("codeFlowValue"),s(p)):(t.consume(p),m)}function h(p){return t.exit("codeIndented"),r(p)}}function KE(t,r,i){const a=this;return o;function o(s){return a.parser.lazy[a.now().line]?i(s):xe(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),o):Le(t,c,"linePrefix",5)(s)}function c(s){const m=a.events[a.events.length-1];return m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?r(s):xe(s)?o(s):i(s)}}const JE={name:"codeText",previous:$E,resolve:PE,tokenize:WE};function PE(t){let r=t.length-4,i=3,a,o;if((t[i][1].type==="lineEnding"||t[i][1].type==="space")&&(t[r][1].type==="lineEnding"||t[r][1].type==="space")){for(a=i;++a<r;)if(t[a][1].type==="codeTextData"){t[i][1].type="codeTextPadding",t[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(a=i-1,r++;++a<=r;)o===void 0?a!==r&&t[a][1].type!=="lineEnding"&&(o=a):(a===r||t[a][1].type==="lineEnding")&&(t[o][1].type="codeTextData",a!==o+2&&(t[o][1].end=t[a-1][1].end,t.splice(o+2,a-o-2),r-=a-o-2,a=o+2),o=void 0);return t}function $E(t){return t!==96||this.events[this.events.length-1][1].type==="characterEscape"}function WE(t,r,i){let a=0,o,c;return s;function s(g){return t.enter("codeText"),t.enter("codeTextSequence"),m(g)}function m(g){return g===96?(t.consume(g),a++,m):(t.exit("codeTextSequence"),h(g))}function h(g){return g===null?i(g):g===32?(t.enter("space"),t.consume(g),t.exit("space"),h):g===96?(c=t.enter("codeTextSequence"),o=0,y(g)):xe(g)?(t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),h):(t.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||xe(g)?(t.exit("codeTextData"),h(g)):(t.consume(g),p)}function y(g){return g===96?(t.consume(g),o++,y):o===a?(t.exit("codeTextSequence"),t.exit("codeText"),r(g)):(c.type="codeTextData",p(g))}}class eC{constructor(r){this.left=r?[...r]:[],this.right=[]}get(r){if(r<0||r>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return r<this.left.length?this.left[r]:this.right[this.right.length-r+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(r,i){const a=i??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(r,a):r>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(r,i,a){const o=i||0;this.setCursor(Math.trunc(r));const c=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&ma(this.left,a),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),ma(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),ma(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r<this.left.length){const i=this.left.splice(r,Number.POSITIVE_INFINITY);ma(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);ma(this.left,i.reverse())}}}function ma(t,r){let i=0;if(r.length<1e4)t.push(...r);else for(;i<r.length;)t.push(...r.slice(i,i+1e4)),i+=1e4}function Rx(t){const r={};let i=-1,a,o,c,s,m,h,p;const y=new eC(t);for(;++i<y.length;){for(;i in r;)i=r[i];if(a=y.get(i),i&&a[1].type==="chunkFlow"&&y.get(i-1)[1].type==="listItemPrefix"&&(h=a[1]._tokenizer.events,c=0,c<h.length&&h[c][1].type==="lineEndingBlank"&&(c+=2),c<h.length&&h[c][1].type==="content"))for(;++c<h.length&&h[c][1].type!=="content";)h[c][1].type==="chunkText"&&(h[c][1]._isInFirstContentOfListItem=!0,c++);if(a[0]==="enter")a[1].contentType&&(Object.assign(r,tC(y,i)),i=r[i],p=!0);else if(a[1]._container){for(c=i,o=void 0;c--;)if(s=y.get(c),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(o&&(y.get(o)[1].type="lineEndingBlank"),s[1].type="lineEnding",o=c);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;o&&(a[1].end={...y.get(o)[1].start},m=y.slice(o,i),m.unshift(a),y.splice(o,i-o+1,m))}}return en(t,0,Number.POSITIVE_INFINITY,y.slice(0)),!p}function tC(t,r){const i=t.get(r)[1],a=t.get(r)[2];let o=r-1;const c=[];let s=i._tokenizer;s||(s=a.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const m=s.events,h=[],p={};let y,g,v=-1,S=i,E=0,A=0;const j=[A];for(;S;){for(;t.get(++o)[1]!==S;);c.push(o),S._tokenizer||(y=a.sliceStream(S),S.next||y.push(null),g&&s.defineSkip(S.start),S._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(y),S._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),g=S,S=S.next}for(S=i;++v<m.length;)m[v][0]==="exit"&&m[v-1][0]==="enter"&&m[v][1].type===m[v-1][1].type&&m[v][1].start.line!==m[v][1].end.line&&(A=v+1,j.push(A),S._tokenizer=void 0,S.previous=void 0,S=S.next);for(s.events=[],S?(S._tokenizer=void 0,S.previous=void 0):j.pop(),v=j.length;v--;){const N=m.slice(j[v],j[v+1]),L=c.pop();h.push([L,L+N.length-1]),t.splice(L,2,N)}for(h.reverse(),v=-1;++v<h.length;)p[E+h[v][0]]=E+h[v][1],E+=h[v][1]-h[v][0]-1;return p}const nC={resolve:rC,tokenize:iC},lC={partial:!0,tokenize:aC};function rC(t){return Rx(t),t}function iC(t,r){let i;return a;function a(m){return t.enter("content"),i=t.enter("chunkContent",{contentType:"content"}),o(m)}function o(m){return m===null?c(m):xe(m)?t.check(lC,s,c)(m):(t.consume(m),o)}function c(m){return t.exit("chunkContent"),t.exit("content"),r(m)}function s(m){return t.consume(m),t.exit("chunkContent"),i.next=t.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,o}}function aC(t,r,i){const a=this;return o;function o(s){return t.exit("chunkContent"),t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),Le(t,c,"linePrefix")}function c(s){if(s===null||xe(s))return i(s);const m=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&m&&m[1].type==="linePrefix"&&m[2].sliceSerialize(m[1],!0).length>=4?r(s):t.interrupt(a.parser.constructs.flow,i,r)(s)}}function Lx(t,r,i,a,o,c,s,m,h){const p=h||Number.POSITIVE_INFINITY;let y=0;return g;function g(N){return N===60?(t.enter(a),t.enter(o),t.enter(c),t.consume(N),t.exit(c),v):N===null||N===32||N===41||po(N)?i(N):(t.enter(a),t.enter(s),t.enter(m),t.enter("chunkString",{contentType:"string"}),A(N))}function v(N){return N===62?(t.enter(c),t.consume(N),t.exit(c),t.exit(o),t.exit(a),r):(t.enter(m),t.enter("chunkString",{contentType:"string"}),S(N))}function S(N){return N===62?(t.exit("chunkString"),t.exit(m),v(N)):N===null||N===60||xe(N)?i(N):(t.consume(N),N===92?E:S)}function E(N){return N===60||N===62||N===92?(t.consume(N),S):S(N)}function A(N){return!y&&(N===null||N===41||Je(N))?(t.exit("chunkString"),t.exit(m),t.exit(s),t.exit(a),r(N)):y<p&&N===40?(t.consume(N),y++,A):N===41?(t.consume(N),y--,A):N===null||N===32||N===40||po(N)?i(N):(t.consume(N),N===92?j:A)}function j(N){return N===40||N===41||N===92?(t.consume(N),A):A(N)}}function Ux(t,r,i,a,o,c){const s=this;let m=0,h;return p;function p(S){return t.enter(a),t.enter(o),t.consume(S),t.exit(o),t.enter(c),y}function y(S){return m>999||S===null||S===91||S===93&&!h||S===94&&!m&&"_hiddenFootnoteSupport"in s.parser.constructs?i(S):S===93?(t.exit(c),t.enter(o),t.consume(S),t.exit(o),t.exit(a),r):xe(S)?(t.enter("lineEnding"),t.consume(S),t.exit("lineEnding"),y):(t.enter("chunkString",{contentType:"string"}),g(S))}function g(S){return S===null||S===91||S===93||xe(S)||m++>999?(t.exit("chunkString"),y(S)):(t.consume(S),h||(h=!De(S)),S===92?v:g)}function v(S){return S===91||S===92||S===93?(t.consume(S),m++,g):g(S)}}function Bx(t,r,i,a,o,c){let s;return m;function m(v){return v===34||v===39||v===40?(t.enter(a),t.enter(o),t.consume(v),t.exit(o),s=v===40?41:v,h):i(v)}function h(v){return v===s?(t.enter(o),t.consume(v),t.exit(o),t.exit(a),r):(t.enter(c),p(v))}function p(v){return v===s?(t.exit(c),h(s)):v===null?i(v):xe(v)?(t.enter("lineEnding"),t.consume(v),t.exit("lineEnding"),Le(t,p,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===s||v===null||xe(v)?(t.exit("chunkString"),p(v)):(t.consume(v),v===92?g:y)}function g(v){return v===s||v===92?(t.consume(v),y):y(v)}}function va(t,r){let i;return a;function a(o){return xe(o)?(t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),i=!0,a):De(o)?Le(t,a,i?"linePrefix":"lineSuffix")(o):r(o)}}const uC={name:"definition",tokenize:sC},oC={partial:!0,tokenize:cC};function sC(t,r,i){const a=this;let o;return c;function c(S){return t.enter("definition"),s(S)}function s(S){return Ux.call(a,t,m,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(S)}function m(S){return o=vn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),S===58?(t.enter("definitionMarker"),t.consume(S),t.exit("definitionMarker"),h):i(S)}function h(S){return Je(S)?va(t,p)(S):p(S)}function p(S){return Lx(t,y,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(S)}function y(S){return t.attempt(oC,g,g)(S)}function g(S){return De(S)?Le(t,v,"whitespace")(S):v(S)}function v(S){return S===null||xe(S)?(t.exit("definition"),a.parser.defined.push(o),r(S)):i(S)}}function cC(t,r,i){return a;function a(m){return Je(m)?va(t,o)(m):i(m)}function o(m){return Bx(t,c,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(m)}function c(m){return De(m)?Le(t,s,"whitespace")(m):s(m)}function s(m){return m===null||xe(m)?r(m):i(m)}}const fC={name:"hardBreakEscape",tokenize:dC};function dC(t,r,i){return a;function a(c){return t.enter("hardBreakEscape"),t.consume(c),o}function o(c){return xe(c)?(t.exit("hardBreakEscape"),r(c)):i(c)}}const mC={name:"headingAtx",resolve:hC,tokenize:pC};function hC(t,r){let i=t.length-2,a=3,o,c;return t[a][1].type==="whitespace"&&(a+=2),i-2>a&&t[i][1].type==="whitespace"&&(i-=2),t[i][1].type==="atxHeadingSequence"&&(a===i-1||i-4>a&&t[i-2][1].type==="whitespace")&&(i-=a+1===i?2:4),i>a&&(o={type:"atxHeadingText",start:t[a][1].start,end:t[i][1].end},c={type:"chunkText",start:t[a][1].start,end:t[i][1].end,contentType:"text"},en(t,a,i-a+1,[["enter",o,r],["enter",c,r],["exit",c,r],["exit",o,r]])),t}function pC(t,r,i){let a=0;return o;function o(y){return t.enter("atxHeading"),c(y)}function c(y){return t.enter("atxHeadingSequence"),s(y)}function s(y){return y===35&&a++<6?(t.consume(y),s):y===null||Je(y)?(t.exit("atxHeadingSequence"),m(y)):i(y)}function m(y){return y===35?(t.enter("atxHeadingSequence"),h(y)):y===null||xe(y)?(t.exit("atxHeading"),r(y)):De(y)?Le(t,m,"whitespace")(y):(t.enter("atxHeadingText"),p(y))}function h(y){return y===35?(t.consume(y),h):(t.exit("atxHeadingSequence"),m(y))}function p(y){return y===null||y===35||Je(y)?(t.exit("atxHeadingText"),m(y)):(t.consume(y),p)}}const gC=["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"],xy=["pre","script","style","textarea"],yC={concrete:!0,name:"htmlFlow",resolveTo:vC,tokenize:SC},bC={partial:!0,tokenize:wC},xC={partial:!0,tokenize:kC};function vC(t){let r=t.length;for(;r--&&!(t[r][0]==="enter"&&t[r][1].type==="htmlFlow"););return r>1&&t[r-2][1].type==="linePrefix"&&(t[r][1].start=t[r-2][1].start,t[r+1][1].start=t[r-2][1].start,t.splice(r-2,2)),t}function SC(t,r,i){const a=this;let o,c,s,m,h;return p;function p(C){return y(C)}function y(C){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(C),g}function g(C){return C===33?(t.consume(C),v):C===47?(t.consume(C),c=!0,A):C===63?(t.consume(C),o=3,a.interrupt?r:T):jt(C)?(t.consume(C),s=String.fromCharCode(C),j):i(C)}function v(C){return C===45?(t.consume(C),o=2,S):C===91?(t.consume(C),o=5,m=0,E):jt(C)?(t.consume(C),o=4,a.interrupt?r:T):i(C)}function S(C){return C===45?(t.consume(C),a.interrupt?r:T):i(C)}function E(C){const $="CDATA[";return C===$.charCodeAt(m++)?(t.consume(C),m===$.length?a.interrupt?r:P:E):i(C)}function A(C){return jt(C)?(t.consume(C),s=String.fromCharCode(C),j):i(C)}function j(C){if(C===null||C===47||C===62||Je(C)){const $=C===47,K=s.toLowerCase();return!$&&!c&&xy.includes(K)?(o=1,a.interrupt?r(C):P(C)):gC.includes(s.toLowerCase())?(o=6,$?(t.consume(C),N):a.interrupt?r(C):P(C)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?i(C):c?L(C):R(C))}return C===45||Ct(C)?(t.consume(C),s+=String.fromCharCode(C),j):i(C)}function N(C){return C===62?(t.consume(C),a.interrupt?r:P):i(C)}function L(C){return De(C)?(t.consume(C),L):B(C)}function R(C){return C===47?(t.consume(C),B):C===58||C===95||jt(C)?(t.consume(C),W):De(C)?(t.consume(C),R):B(C)}function W(C){return C===45||C===46||C===58||C===95||Ct(C)?(t.consume(C),W):ee(C)}function ee(C){return C===61?(t.consume(C),_):De(C)?(t.consume(C),ee):R(C)}function _(C){return C===null||C===60||C===61||C===62||C===96?i(C):C===34||C===39?(t.consume(C),h=C,X):De(C)?(t.consume(C),_):Y(C)}function X(C){return C===h?(t.consume(C),h=null,ae):C===null||xe(C)?i(C):(t.consume(C),X)}function Y(C){return C===null||C===34||C===39||C===47||C===60||C===61||C===62||C===96||Je(C)?ee(C):(t.consume(C),Y)}function ae(C){return C===47||C===62||De(C)?R(C):i(C)}function B(C){return C===62?(t.consume(C),re):i(C)}function re(C){return C===null||xe(C)?P(C):De(C)?(t.consume(C),re):i(C)}function P(C){return C===45&&o===2?(t.consume(C),H):C===60&&o===1?(t.consume(C),te):C===62&&o===4?(t.consume(C),D):C===63&&o===3?(t.consume(C),T):C===93&&o===5?(t.consume(C),ke):xe(C)&&(o===6||o===7)?(t.exit("htmlFlowData"),t.check(bC,M,pe)(C)):C===null||xe(C)?(t.exit("htmlFlowData"),pe(C)):(t.consume(C),P)}function pe(C){return t.check(xC,oe,M)(C)}function oe(C){return t.enter("lineEnding"),t.consume(C),t.exit("lineEnding"),ne}function ne(C){return C===null||xe(C)?pe(C):(t.enter("htmlFlowData"),P(C))}function H(C){return C===45?(t.consume(C),T):P(C)}function te(C){return C===47?(t.consume(C),s="",ce):P(C)}function ce(C){if(C===62){const $=s.toLowerCase();return xy.includes($)?(t.consume(C),D):P(C)}return jt(C)&&s.length<8?(t.consume(C),s+=String.fromCharCode(C),ce):P(C)}function ke(C){return C===93?(t.consume(C),T):P(C)}function T(C){return C===62?(t.consume(C),D):C===45&&o===2?(t.consume(C),T):P(C)}function D(C){return C===null||xe(C)?(t.exit("htmlFlowData"),M(C)):(t.consume(C),D)}function M(C){return t.exit("htmlFlow"),r(C)}}function kC(t,r,i){const a=this;return o;function o(s){return xe(s)?(t.enter("lineEnding"),t.consume(s),t.exit("lineEnding"),c):i(s)}function c(s){return a.parser.lazy[a.now().line]?i(s):r(s)}}function wC(t,r,i){return a;function a(o){return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),t.attempt(za,r,i)}}const EC={name:"htmlText",tokenize:CC};function CC(t,r,i){const a=this;let o,c,s;return m;function m(T){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(T),h}function h(T){return T===33?(t.consume(T),p):T===47?(t.consume(T),ee):T===63?(t.consume(T),R):jt(T)?(t.consume(T),Y):i(T)}function p(T){return T===45?(t.consume(T),y):T===91?(t.consume(T),c=0,E):jt(T)?(t.consume(T),L):i(T)}function y(T){return T===45?(t.consume(T),S):i(T)}function g(T){return T===null?i(T):T===45?(t.consume(T),v):xe(T)?(s=g,te(T)):(t.consume(T),g)}function v(T){return T===45?(t.consume(T),S):g(T)}function S(T){return T===62?H(T):T===45?v(T):g(T)}function E(T){const D="CDATA[";return T===D.charCodeAt(c++)?(t.consume(T),c===D.length?A:E):i(T)}function A(T){return T===null?i(T):T===93?(t.consume(T),j):xe(T)?(s=A,te(T)):(t.consume(T),A)}function j(T){return T===93?(t.consume(T),N):A(T)}function N(T){return T===62?H(T):T===93?(t.consume(T),N):A(T)}function L(T){return T===null||T===62?H(T):xe(T)?(s=L,te(T)):(t.consume(T),L)}function R(T){return T===null?i(T):T===63?(t.consume(T),W):xe(T)?(s=R,te(T)):(t.consume(T),R)}function W(T){return T===62?H(T):R(T)}function ee(T){return jt(T)?(t.consume(T),_):i(T)}function _(T){return T===45||Ct(T)?(t.consume(T),_):X(T)}function X(T){return xe(T)?(s=X,te(T)):De(T)?(t.consume(T),X):H(T)}function Y(T){return T===45||Ct(T)?(t.consume(T),Y):T===47||T===62||Je(T)?ae(T):i(T)}function ae(T){return T===47?(t.consume(T),H):T===58||T===95||jt(T)?(t.consume(T),B):xe(T)?(s=ae,te(T)):De(T)?(t.consume(T),ae):H(T)}function B(T){return T===45||T===46||T===58||T===95||Ct(T)?(t.consume(T),B):re(T)}function re(T){return T===61?(t.consume(T),P):xe(T)?(s=re,te(T)):De(T)?(t.consume(T),re):ae(T)}function P(T){return T===null||T===60||T===61||T===62||T===96?i(T):T===34||T===39?(t.consume(T),o=T,pe):xe(T)?(s=P,te(T)):De(T)?(t.consume(T),P):(t.consume(T),oe)}function pe(T){return T===o?(t.consume(T),o=void 0,ne):T===null?i(T):xe(T)?(s=pe,te(T)):(t.consume(T),pe)}function oe(T){return T===null||T===34||T===39||T===60||T===61||T===96?i(T):T===47||T===62||Je(T)?ae(T):(t.consume(T),oe)}function ne(T){return T===47||T===62||Je(T)?ae(T):i(T)}function H(T){return T===62?(t.consume(T),t.exit("htmlTextData"),t.exit("htmlText"),r):i(T)}function te(T){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(T),t.exit("lineEnding"),ce}function ce(T){return De(T)?Le(t,ke,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):ke(T)}function ke(T){return t.enter("htmlTextData"),s(T)}}const vd={name:"labelEnd",resolveAll:zC,resolveTo:jC,tokenize:MC},TC={tokenize:DC},AC={tokenize:OC},NC={tokenize:_C};function zC(t){let r=-1;const i=[];for(;++r<t.length;){const a=t[r][1];if(i.push(t[r]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",r+=o}}return t.length!==i.length&&en(t,0,t.length,i),t}function jC(t,r){let i=t.length,a=0,o,c,s,m;for(;i--;)if(o=t[i][1],c){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;t[i][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(s){if(t[i][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(c=i,o.type!=="labelLink")){a=2;break}}else o.type==="labelEnd"&&(s=i);const h={type:t[c][1].type==="labelLink"?"link":"image",start:{...t[c][1].start},end:{...t[t.length-1][1].end}},p={type:"label",start:{...t[c][1].start},end:{...t[s][1].end}},y={type:"labelText",start:{...t[c+a+2][1].end},end:{...t[s-2][1].start}};return m=[["enter",h,r],["enter",p,r]],m=dn(m,t.slice(c+1,c+a+3)),m=dn(m,[["enter",y,r]]),m=dn(m,ko(r.parser.constructs.insideSpan.null,t.slice(c+a+4,s-3),r)),m=dn(m,[["exit",y,r],t[s-2],t[s-1],["exit",p,r]]),m=dn(m,t.slice(s+1)),m=dn(m,[["exit",h,r]]),en(t,c,t.length,m),t}function MC(t,r,i){const a=this;let o=a.events.length,c,s;for(;o--;)if((a.events[o][1].type==="labelImage"||a.events[o][1].type==="labelLink")&&!a.events[o][1]._balanced){c=a.events[o][1];break}return m;function m(v){return c?c._inactive?g(v):(s=a.parser.defined.includes(vn(a.sliceSerialize({start:c.end,end:a.now()}))),t.enter("labelEnd"),t.enter("labelMarker"),t.consume(v),t.exit("labelMarker"),t.exit("labelEnd"),h):i(v)}function h(v){return v===40?t.attempt(TC,y,s?y:g)(v):v===91?t.attempt(AC,y,s?p:g)(v):s?y(v):g(v)}function p(v){return t.attempt(NC,y,g)(v)}function y(v){return r(v)}function g(v){return c._balanced=!0,i(v)}}function DC(t,r,i){return a;function a(g){return t.enter("resource"),t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),o}function o(g){return Je(g)?va(t,c)(g):c(g)}function c(g){return g===41?y(g):Lx(t,s,m,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function s(g){return Je(g)?va(t,h)(g):y(g)}function m(g){return i(g)}function h(g){return g===34||g===39||g===40?Bx(t,p,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):y(g)}function p(g){return Je(g)?va(t,y)(g):y(g)}function y(g){return g===41?(t.enter("resourceMarker"),t.consume(g),t.exit("resourceMarker"),t.exit("resource"),r):i(g)}}function OC(t,r,i){const a=this;return o;function o(m){return Ux.call(a,t,c,s,"reference","referenceMarker","referenceString")(m)}function c(m){return a.parser.defined.includes(vn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?r(m):i(m)}function s(m){return i(m)}}function _C(t,r,i){return a;function a(c){return t.enter("reference"),t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),o}function o(c){return c===93?(t.enter("referenceMarker"),t.consume(c),t.exit("referenceMarker"),t.exit("reference"),r):i(c)}}const RC={name:"labelStartImage",resolveAll:vd.resolveAll,tokenize:LC};function LC(t,r,i){const a=this;return o;function o(m){return t.enter("labelImage"),t.enter("labelImageMarker"),t.consume(m),t.exit("labelImageMarker"),c}function c(m){return m===91?(t.enter("labelMarker"),t.consume(m),t.exit("labelMarker"),t.exit("labelImage"),s):i(m)}function s(m){return m===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(m):r(m)}}const UC={name:"labelStartLink",resolveAll:vd.resolveAll,tokenize:BC};function BC(t,r,i){const a=this;return o;function o(s){return t.enter("labelLink"),t.enter("labelMarker"),t.consume(s),t.exit("labelMarker"),t.exit("labelLink"),c}function c(s){return s===94&&"_hiddenFootnoteSupport"in a.parser.constructs?i(s):r(s)}}const sf={name:"lineEnding",tokenize:HC};function HC(t,r){return i;function i(a){return t.enter("lineEnding"),t.consume(a),t.exit("lineEnding"),Le(t,r,"linePrefix")}}const mo={name:"thematicBreak",tokenize:qC};function qC(t,r,i){let a=0,o;return c;function c(p){return t.enter("thematicBreak"),s(p)}function s(p){return o=p,m(p)}function m(p){return p===o?(t.enter("thematicBreakSequence"),h(p)):a>=3&&(p===null||xe(p))?(t.exit("thematicBreak"),r(p)):i(p)}function h(p){return p===o?(t.consume(p),a++,h):(t.exit("thematicBreakSequence"),De(p)?Le(t,m,"whitespace")(p):m(p))}}const Gt={continuation:{tokenize:FC},exit:XC,name:"list",tokenize:GC},VC={partial:!0,tokenize:QC},YC={partial:!0,tokenize:IC};function GC(t,r,i){const a=this,o=a.events[a.events.length-1];let c=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return m;function m(S){const E=a.containerState.type||(S===42||S===43||S===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!a.containerState.marker||S===a.containerState.marker:Yf(S)){if(a.containerState.type||(a.containerState.type=E,t.enter(E,{_container:!0})),E==="listUnordered")return t.enter("listItemPrefix"),S===42||S===45?t.check(mo,i,p)(S):p(S);if(!a.interrupt||S===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),h(S)}return i(S)}function h(S){return Yf(S)&&++s<10?(t.consume(S),h):(!a.interrupt||s<2)&&(a.containerState.marker?S===a.containerState.marker:S===41||S===46)?(t.exit("listItemValue"),p(S)):i(S)}function p(S){return t.enter("listItemMarker"),t.consume(S),t.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||S,t.check(za,a.interrupt?i:y,t.attempt(VC,v,g))}function y(S){return a.containerState.initialBlankLine=!0,c++,v(S)}function g(S){return De(S)?(t.enter("listItemPrefixWhitespace"),t.consume(S),t.exit("listItemPrefixWhitespace"),v):i(S)}function v(S){return a.containerState.size=c+a.sliceSerialize(t.exit("listItemPrefix"),!0).length,r(S)}}function FC(t,r,i){const a=this;return a.containerState._closeFlow=void 0,t.check(za,o,c);function o(m){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,Le(t,r,"listItemIndent",a.containerState.size+1)(m)}function c(m){return a.containerState.furtherBlankLines||!De(m)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,s(m)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,t.attempt(YC,r,s)(m))}function s(m){return a.containerState._closeFlow=!0,a.interrupt=void 0,Le(t,t.attempt(Gt,r,i),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m)}}function IC(t,r,i){const a=this;return Le(t,o,"listItemIndent",a.containerState.size+1);function o(c){const s=a.events[a.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===a.containerState.size?r(c):i(c)}}function XC(t){t.exit(this.containerState.type)}function QC(t,r,i){const a=this;return Le(t,o,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(c){const s=a.events[a.events.length-1];return!De(c)&&s&&s[1].type==="listItemPrefixWhitespace"?r(c):i(c)}}const vy={name:"setextUnderline",resolveTo:ZC,tokenize:KC};function ZC(t,r){let i=t.length,a,o,c;for(;i--;)if(t[i][0]==="enter"){if(t[i][1].type==="content"){a=i;break}t[i][1].type==="paragraph"&&(o=i)}else t[i][1].type==="content"&&t.splice(i,1),!c&&t[i][1].type==="definition"&&(c=i);const s={type:"setextHeading",start:{...t[a][1].start},end:{...t[t.length-1][1].end}};return t[o][1].type="setextHeadingText",c?(t.splice(o,0,["enter",s,r]),t.splice(c+1,0,["exit",t[a][1],r]),t[a][1].end={...t[c][1].end}):t[a][1]=s,t.push(["exit",s,r]),t}function KC(t,r,i){const a=this;let o;return c;function c(p){let y=a.events.length,g;for(;y--;)if(a.events[y][1].type!=="lineEnding"&&a.events[y][1].type!=="linePrefix"&&a.events[y][1].type!=="content"){g=a.events[y][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(t.enter("setextHeadingLine"),o=p,s(p)):i(p)}function s(p){return t.enter("setextHeadingLineSequence"),m(p)}function m(p){return p===o?(t.consume(p),m):(t.exit("setextHeadingLineSequence"),De(p)?Le(t,h,"lineSuffix")(p):h(p))}function h(p){return p===null||xe(p)?(t.exit("setextHeadingLine"),r(p)):i(p)}}const JC={tokenize:PC};function PC(t){const r=this,i=t.attempt(za,a,t.attempt(this.parser.constructs.flowInitial,o,Le(t,t.attempt(this.parser.constructs.flow,o,t.attempt(nC,o)),"linePrefix")));return i;function a(c){if(c===null){t.consume(c);return}return t.enter("lineEndingBlank"),t.consume(c),t.exit("lineEndingBlank"),r.currentConstruct=void 0,i}function o(c){if(c===null){t.consume(c);return}return t.enter("lineEnding"),t.consume(c),t.exit("lineEnding"),r.currentConstruct=void 0,i}}const $C={resolveAll:qx()},WC=Hx("string"),eT=Hx("text");function Hx(t){return{resolveAll:qx(t==="text"?tT:void 0),tokenize:r};function r(i){const a=this,o=this.parser.constructs[t],c=i.attempt(o,s,m);return s;function s(y){return p(y)?c(y):m(y)}function m(y){if(y===null){i.consume(y);return}return i.enter("data"),i.consume(y),h}function h(y){return p(y)?(i.exit("data"),c(y)):(i.consume(y),h)}function p(y){if(y===null)return!0;const g=o[y];let v=-1;if(g)for(;++v<g.length;){const S=g[v];if(!S.previous||S.previous.call(a,a.previous))return!0}return!1}}}function qx(t){return r;function r(i,a){let o=-1,c;for(;++o<=i.length;)c===void 0?i[o]&&i[o][1].type==="data"&&(c=o,o++):(!i[o]||i[o][1].type!=="data")&&(o!==c+2&&(i[c][1].end=i[o-1][1].end,i.splice(c+2,o-c-2),o=c+2),c=void 0);return t?t(i,a):i}}function tT(t,r){let i=0;for(;++i<=t.length;)if((i===t.length||t[i][1].type==="lineEnding")&&t[i-1][1].type==="data"){const a=t[i-1][1],o=r.sliceStream(a);let c=o.length,s=-1,m=0,h;for(;c--;){const p=o[c];if(typeof p=="string"){for(s=p.length;p.charCodeAt(s-1)===32;)m++,s--;if(s)break;s=-1}else if(p===-2)h=!0,m++;else if(p!==-1){c++;break}}if(r._contentTypeTextTrailing&&i===t.length&&(m=0),m){const p={type:i===t.length||h||m<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:c?s:a.start._bufferIndex+s,_index:a.start._index+c,line:a.end.line,column:a.end.column-m,offset:a.end.offset-m},end:{...a.end}};a.end={...p.start},a.start.offset===a.end.offset?Object.assign(a,p):(t.splice(i,0,["enter",p,r],["exit",p,r]),i+=2)}i++}return t}const nT={42:Gt,43:Gt,45:Gt,48:Gt,49:Gt,50:Gt,51:Gt,52:Gt,53:Gt,54:Gt,55:Gt,56:Gt,57:Gt,62:Dx},lT={91:uC},rT={[-2]:of,[-1]:of,32:of},iT={35:mC,42:mo,45:[vy,mo],60:yC,61:vy,95:mo,96:by,126:by},aT={38:_x,92:Ox},uT={[-5]:sf,[-4]:sf,[-3]:sf,33:RC,38:_x,42:Gf,60:[UE,EC],91:UC,92:[fC,Ox],93:vd,95:Gf,96:JE},oT={null:[Gf,$C]},sT={null:[42,95]},cT={null:[]},fT=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:sT,contentInitial:lT,disable:cT,document:nT,flow:iT,flowInitial:rT,insideSpan:oT,string:aT,text:uT},Symbol.toStringTag,{value:"Module"}));function dT(t,r,i){let a={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const o={},c=[];let s=[],m=[];const h={attempt:X(ee),check:X(_),consume:L,enter:R,exit:W,interrupt:X(_,{interrupt:!0})},p={code:null,containerState:{},defineSkip:A,events:[],now:E,parser:t,previous:null,sliceSerialize:v,sliceStream:S,write:g};let y=r.tokenize.call(p,h);return r.resolveAll&&c.push(r),p;function g(re){return s=dn(s,re),j(),s[s.length-1]!==null?[]:(Y(r,0),p.events=ko(c,p.events,p),p.events)}function v(re,P){return hT(S(re),P)}function S(re){return mT(s,re)}function E(){const{_bufferIndex:re,_index:P,line:pe,column:oe,offset:ne}=a;return{_bufferIndex:re,_index:P,line:pe,column:oe,offset:ne}}function A(re){o[re.line]=re.column,B()}function j(){let re;for(;a._index<s.length;){const P=s[a._index];if(typeof P=="string")for(re=a._index,a._bufferIndex<0&&(a._bufferIndex=0);a._index===re&&a._bufferIndex<P.length;)N(P.charCodeAt(a._bufferIndex));else N(P)}}function N(re){y=y(re)}function L(re){xe(re)?(a.line++,a.column=1,a.offset+=re===-3?2:1,B()):re!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===s[a._index].length&&(a._bufferIndex=-1,a._index++)),p.previous=re}function R(re,P){const pe=P||{};return pe.type=re,pe.start=E(),p.events.push(["enter",pe,p]),m.push(pe),pe}function W(re){const P=m.pop();return P.end=E(),p.events.push(["exit",P,p]),P}function ee(re,P){Y(re,P.from)}function _(re,P){P.restore()}function X(re,P){return pe;function pe(oe,ne,H){let te,ce,ke,T;return Array.isArray(oe)?M(oe):"tokenize"in oe?M([oe]):D(oe);function D(le){return me;function me(Te){const ge=Te!==null&&le[Te],at=Te!==null&&le.null,Dt=[...Array.isArray(ge)?ge:ge?[ge]:[],...Array.isArray(at)?at:at?[at]:[]];return M(Dt)(Te)}}function M(le){return te=le,ce=0,le.length===0?H:C(le[ce])}function C(le){return me;function me(Te){return T=ae(),ke=le,le.partial||(p.currentConstruct=le),le.name&&p.parser.constructs.disable.null.includes(le.name)?K():le.tokenize.call(P?Object.assign(Object.create(p),P):p,h,$,K)(Te)}}function $(le){return re(ke,T),ne}function K(le){return T.restore(),++ce<te.length?C(te[ce]):H}}}function Y(re,P){re.resolveAll&&!c.includes(re)&&c.push(re),re.resolve&&en(p.events,P,p.events.length-P,re.resolve(p.events.slice(P),p)),re.resolveTo&&(p.events=re.resolveTo(p.events,p))}function ae(){const re=E(),P=p.previous,pe=p.currentConstruct,oe=p.events.length,ne=Array.from(m);return{from:oe,restore:H};function H(){a=re,p.previous=P,p.currentConstruct=pe,p.events.length=oe,m=ne,B()}}function B(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}function mT(t,r){const i=r.start._index,a=r.start._bufferIndex,o=r.end._index,c=r.end._bufferIndex;let s;if(i===o)s=[t[i].slice(a,c)];else{if(s=t.slice(i,o),a>-1){const m=s[0];typeof m=="string"?s[0]=m.slice(a):s.shift()}c>0&&s.push(t[o].slice(0,c))}return s}function hT(t,r){let i=-1;const a=[];let o;for(;++i<t.length;){const c=t[i];let s;if(typeof c=="string")s=c;else switch(c){case-5:{s="\r";break}case-4:{s=`
271
- `;break}case-3:{s=`\r
272
- `;break}case-2:{s=r?" ":" ";break}case-1:{if(!r&&o)continue;s=" ";break}default:s=String.fromCharCode(c)}o=c===-2,a.push(s)}return a.join("")}function pT(t){const a={constructs:jx([fT,...(t||{}).extensions||[]]),content:o(jE),defined:[],document:o(DE),flow:o(JC),lazy:{},string:o(WC),text:o(eT)};return a;function o(c){return s;function s(m){return dT(a,c,m)}}}function gT(t){for(;!Rx(t););return t}const Sy=/[\0\t\n\r]/g;function yT(){let t=1,r="",i=!0,a;return o;function o(c,s,m){const h=[];let p,y,g,v,S;for(c=r+(typeof c=="string"?c.toString():new TextDecoder(s||void 0).decode(c)),g=0,r="",i&&(c.charCodeAt(0)===65279&&g++,i=void 0);g<c.length;){if(Sy.lastIndex=g,p=Sy.exec(c),v=p&&p.index!==void 0?p.index:c.length,S=c.charCodeAt(v),!p){r=c.slice(g);break}if(S===10&&g===v&&a)h.push(-3),a=void 0;else switch(a&&(h.push(-5),a=void 0),g<v&&(h.push(c.slice(g,v)),t+=v-g),S){case 0:{h.push(65533),t++;break}case 9:{for(y=Math.ceil(t/4)*4,h.push(-2);t++<y;)h.push(-1);break}case 10:{h.push(-4),t=1;break}default:a=!0,t=1}g=v+1}return m&&(a&&h.push(-5),r&&h.push(r),h.push(null)),h}}const bT=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xT(t){return t.replace(bT,vT)}function vT(t,r,i){if(r)return r;if(i.charCodeAt(0)===35){const o=i.charCodeAt(1),c=o===120||o===88;return Mx(i.slice(c?2:1),c?16:10)}return xd(i)||t}const Vx={}.hasOwnProperty;function ST(t,r,i){return r&&typeof r=="object"&&(i=r,r=void 0),kT(i)(gT(pT(i).document().write(yT()(t,r,!0))))}function kT(t){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:c(dr),autolinkProtocol:ae,autolinkEmail:ae,atxHeading:c(cr),blockQuote:c(at),characterEscape:ae,characterReference:ae,codeFenced:c(Dt),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:c(Dt,s),codeText:c(kn,s),codeTextData:ae,data:ae,codeFlowValue:ae,definition:c(rl),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:c(Ot),hardBreakEscape:c(fr),hardBreakTrailing:c(fr),htmlFlow:c(Ma,s),htmlFlowData:ae,htmlText:c(Ma,s),htmlTextData:ae,image:c(Da),label:s,link:c(dr),listItem:c(pi),listItemValue:v,listOrdered:c(mr,g),listUnordered:c(mr),paragraph:c(Ao),reference:C,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:c(cr),strong:c(No),thematicBreak:c(zo)},exit:{atxHeading:h(),atxHeadingSequence:ee,autolink:h(),autolinkEmail:ge,autolinkProtocol:Te,blockQuote:h(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:K,characterReferenceMarkerNumeric:K,characterReferenceValue:le,characterReference:me,codeFenced:h(j),codeFencedFence:A,codeFencedFenceInfo:S,codeFencedFenceMeta:E,codeFlowValue:B,codeIndented:h(N),codeText:h(ne),codeTextData:B,data:B,definition:h(),definitionDestinationString:W,definitionLabelString:L,definitionTitleString:R,emphasis:h(),hardBreakEscape:h(P),hardBreakTrailing:h(P),htmlFlow:h(pe),htmlFlowData:B,htmlText:h(oe),htmlTextData:B,image:h(te),label:ke,labelText:ce,lineEnding:re,link:h(H),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:$,resourceDestinationString:T,resourceTitleString:D,resource:M,setextHeading:h(Y),setextHeadingLineSequence:X,setextHeadingText:_,strong:h(),thematicBreak:h()}};Yx(r,(t||{}).mdastExtensions||[]);const i={};return a;function a(Q){let ue={type:"root",children:[]};const Se={stack:[ue],tokenStack:[],config:r,enter:m,exit:p,buffer:s,resume:y,data:i},ze=[];let Ve=-1;for(;++Ve<Q.length;)if(Q[Ve][1].type==="listOrdered"||Q[Ve][1].type==="listUnordered")if(Q[Ve][0]==="enter")ze.push(Ve);else{const It=ze.pop();Ve=o(Q,It,Ve)}for(Ve=-1;++Ve<Q.length;){const It=r[Q[Ve][0]];Vx.call(It,Q[Ve][1].type)&&It[Q[Ve][1].type].call(Object.assign({sliceSerialize:Q[Ve][2].sliceSerialize},Se),Q[Ve][1])}if(Se.tokenStack.length>0){const It=Se.tokenStack[Se.tokenStack.length-1];(It[1]||ky).call(Se,void 0,It[0])}for(ue.position={start:Ml(Q.length>0?Q[0][1].start:{line:1,column:1,offset:0}),end:Ml(Q.length>0?Q[Q.length-2][1].end:{line:1,column:1,offset:0})},Ve=-1;++Ve<r.transforms.length;)ue=r.transforms[Ve](ue)||ue;return ue}function o(Q,ue,Se){let ze=ue-1,Ve=-1,It=!1,_n,Nt,dt,_t;for(;++ze<=Se;){const Qe=Q[ze];switch(Qe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Qe[0]==="enter"?Ve++:Ve--,_t=void 0;break}case"lineEndingBlank":{Qe[0]==="enter"&&(_n&&!_t&&!Ve&&!dt&&(dt=ze),_t=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_t=void 0}if(!Ve&&Qe[0]==="enter"&&Qe[1].type==="listItemPrefix"||Ve===-1&&Qe[0]==="exit"&&(Qe[1].type==="listUnordered"||Qe[1].type==="listOrdered")){if(_n){let il=ze;for(Nt=void 0;il--;){const pn=Q[il];if(pn[1].type==="lineEnding"||pn[1].type==="lineEndingBlank"){if(pn[0]==="exit")continue;Nt&&(Q[Nt][1].type="lineEndingBlank",It=!0),pn[1].type="lineEnding",Nt=il}else if(!(pn[1].type==="linePrefix"||pn[1].type==="blockQuotePrefix"||pn[1].type==="blockQuotePrefixWhitespace"||pn[1].type==="blockQuoteMarker"||pn[1].type==="listItemIndent"))break}dt&&(!Nt||dt<Nt)&&(_n._spread=!0),_n.end=Object.assign({},Nt?Q[Nt][1].start:Qe[1].end),Q.splice(Nt||ze,0,["exit",_n,Qe[2]]),ze++,Se++}if(Qe[1].type==="listItemPrefix"){const il={type:"listItem",_spread:!1,start:Object.assign({},Qe[1].start),end:void 0};_n=il,Q.splice(ze,0,["enter",il,Qe[2]]),ze++,Se++,dt=void 0,_t=!0}}}return Q[ue][1]._spread=It,Se}function c(Q,ue){return Se;function Se(ze){m.call(this,Q(ze),ze),ue&&ue.call(this,ze)}}function s(){this.stack.push({type:"fragment",children:[]})}function m(Q,ue,Se){this.stack[this.stack.length-1].children.push(Q),this.stack.push(Q),this.tokenStack.push([ue,Se||void 0]),Q.position={start:Ml(ue.start),end:void 0}}function h(Q){return ue;function ue(Se){Q&&Q.call(this,Se),p.call(this,Se)}}function p(Q,ue){const Se=this.stack.pop(),ze=this.tokenStack.pop();if(ze)ze[0].type!==Q.type&&(ue?ue.call(this,Q,ze[0]):(ze[1]||ky).call(this,Q,ze[0]));else throw new Error("Cannot close `"+Q.type+"` ("+xa({start:Q.start,end:Q.end})+"): it’s not open");Se.position.end=Ml(Q.end)}function y(){return bd(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function v(Q){if(this.data.expectingFirstListItemValue){const ue=this.stack[this.stack.length-2];ue.start=Number.parseInt(this.sliceSerialize(Q),10),this.data.expectingFirstListItemValue=void 0}}function S(){const Q=this.resume(),ue=this.stack[this.stack.length-1];ue.lang=Q}function E(){const Q=this.resume(),ue=this.stack[this.stack.length-1];ue.meta=Q}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function j(){const Q=this.resume(),ue=this.stack[this.stack.length-1];ue.value=Q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){const Q=this.resume(),ue=this.stack[this.stack.length-1];ue.value=Q.replace(/(\r?\n|\r)$/g,"")}function L(Q){const ue=this.resume(),Se=this.stack[this.stack.length-1];Se.label=ue,Se.identifier=vn(this.sliceSerialize(Q)).toLowerCase()}function R(){const Q=this.resume(),ue=this.stack[this.stack.length-1];ue.title=Q}function W(){const Q=this.resume(),ue=this.stack[this.stack.length-1];ue.url=Q}function ee(Q){const ue=this.stack[this.stack.length-1];if(!ue.depth){const Se=this.sliceSerialize(Q).length;ue.depth=Se}}function _(){this.data.setextHeadingSlurpLineEnding=!0}function X(Q){const ue=this.stack[this.stack.length-1];ue.depth=this.sliceSerialize(Q).codePointAt(0)===61?1:2}function Y(){this.data.setextHeadingSlurpLineEnding=void 0}function ae(Q){const Se=this.stack[this.stack.length-1].children;let ze=Se[Se.length-1];(!ze||ze.type!=="text")&&(ze=At(),ze.position={start:Ml(Q.start),end:void 0},Se.push(ze)),this.stack.push(ze)}function B(Q){const ue=this.stack.pop();ue.value+=this.sliceSerialize(Q),ue.position.end=Ml(Q.end)}function re(Q){const ue=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Se=ue.children[ue.children.length-1];Se.position.end=Ml(Q.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(ue.type)&&(ae.call(this,Q),B.call(this,Q))}function P(){this.data.atHardBreak=!0}function pe(){const Q=this.resume(),ue=this.stack[this.stack.length-1];ue.value=Q}function oe(){const Q=this.resume(),ue=this.stack[this.stack.length-1];ue.value=Q}function ne(){const Q=this.resume(),ue=this.stack[this.stack.length-1];ue.value=Q}function H(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=ue,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function te(){const Q=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";Q.type+="Reference",Q.referenceType=ue,delete Q.url,delete Q.title}else delete Q.identifier,delete Q.label;this.data.referenceType=void 0}function ce(Q){const ue=this.sliceSerialize(Q),Se=this.stack[this.stack.length-2];Se.label=xT(ue),Se.identifier=vn(ue).toLowerCase()}function ke(){const Q=this.stack[this.stack.length-1],ue=this.resume(),Se=this.stack[this.stack.length-1];if(this.data.inReference=!0,Se.type==="link"){const ze=Q.children;Se.children=ze}else Se.alt=ue}function T(){const Q=this.resume(),ue=this.stack[this.stack.length-1];ue.url=Q}function D(){const Q=this.resume(),ue=this.stack[this.stack.length-1];ue.title=Q}function M(){this.data.inReference=void 0}function C(){this.data.referenceType="collapsed"}function $(Q){const ue=this.resume(),Se=this.stack[this.stack.length-1];Se.label=ue,Se.identifier=vn(this.sliceSerialize(Q)).toLowerCase(),this.data.referenceType="full"}function K(Q){this.data.characterReferenceType=Q.type}function le(Q){const ue=this.sliceSerialize(Q),Se=this.data.characterReferenceType;let ze;Se?(ze=Mx(ue,Se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ze=xd(ue);const Ve=this.stack[this.stack.length-1];Ve.value+=ze}function me(Q){const ue=this.stack.pop();ue.position.end=Ml(Q.end)}function Te(Q){B.call(this,Q);const ue=this.stack[this.stack.length-1];ue.url=this.sliceSerialize(Q)}function ge(Q){B.call(this,Q);const ue=this.stack[this.stack.length-1];ue.url="mailto:"+this.sliceSerialize(Q)}function at(){return{type:"blockquote",children:[]}}function Dt(){return{type:"code",lang:null,meta:null,value:""}}function kn(){return{type:"inlineCode",value:""}}function rl(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ot(){return{type:"emphasis",children:[]}}function cr(){return{type:"heading",depth:0,children:[]}}function fr(){return{type:"break"}}function Ma(){return{type:"html",value:""}}function Da(){return{type:"image",title:null,url:"",alt:null}}function dr(){return{type:"link",title:null,url:"",children:[]}}function mr(Q){return{type:"list",ordered:Q.type==="listOrdered",start:null,spread:Q._spread,children:[]}}function pi(Q){return{type:"listItem",spread:Q._spread,checked:null,children:[]}}function Ao(){return{type:"paragraph",children:[]}}function No(){return{type:"strong",children:[]}}function At(){return{type:"text",value:""}}function zo(){return{type:"thematicBreak"}}}function Ml(t){return{line:t.line,column:t.column,offset:t.offset}}function Yx(t,r){let i=-1;for(;++i<r.length;){const a=r[i];Array.isArray(a)?Yx(t,a):wT(t,a)}}function wT(t,r){let i;for(i in r)if(Vx.call(r,i))switch(i){case"canContainEols":{const a=r[i];a&&t[i].push(...a);break}case"transforms":{const a=r[i];a&&t[i].push(...a);break}case"enter":case"exit":{const a=r[i];a&&Object.assign(t[i],a);break}}}function ky(t,r){throw t?new Error("Cannot close `"+t.type+"` ("+xa({start:t.start,end:t.end})+"): a different token (`"+r.type+"`, "+xa({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+xa({start:r.start,end:r.end})+") is still open")}function ET(t){const r=this;r.parser=i;function i(a){return ST(a,{...r.data("settings"),...t,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function CT(t,r){const i={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(r),!0)};return t.patch(r,i),t.applyData(r,i)}function TT(t,r){const i={type:"element",tagName:"br",properties:{},children:[]};return t.patch(r,i),[t.applyData(r,i),{type:"text",value:`
273
- `}]}function AT(t,r){const i=r.value?r.value+`
274
- `:"",a={},o=r.lang?r.lang.split(/\s+/):[];o.length>0&&(a.className=["language-"+o[0]]);let c={type:"element",tagName:"code",properties:a,children:[{type:"text",value:i}]};return r.meta&&(c.data={meta:r.meta}),t.patch(r,c),c=t.applyData(r,c),c={type:"element",tagName:"pre",properties:{},children:[c]},t.patch(r,c),c}function NT(t,r){const i={type:"element",tagName:"del",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function zT(t,r){const i={type:"element",tagName:"em",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function jT(t,r){const i=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",a=String(r.identifier).toUpperCase(),o=hi(a.toLowerCase()),c=t.footnoteOrder.indexOf(a);let s,m=t.footnoteCounts.get(a);m===void 0?(m=0,t.footnoteOrder.push(a),s=t.footnoteOrder.length):s=c+1,m+=1,t.footnoteCounts.set(a,m);const h={type:"element",tagName:"a",properties:{href:"#"+i+"fn-"+o,id:i+"fnref-"+o+(m>1?"-"+m:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};t.patch(r,h);const p={type:"element",tagName:"sup",properties:{},children:[h]};return t.patch(r,p),t.applyData(r,p)}function MT(t,r){const i={type:"element",tagName:"h"+r.depth,properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function DT(t,r){if(t.options.allowDangerousHtml){const i={type:"raw",value:r.value};return t.patch(r,i),t.applyData(r,i)}}function Gx(t,r){const i=r.referenceType;let a="]";if(i==="collapsed"?a+="[]":i==="full"&&(a+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+a}];const o=t.all(r),c=o[0];c&&c.type==="text"?c.value="["+c.value:o.unshift({type:"text",value:"["});const s=o[o.length-1];return s&&s.type==="text"?s.value+=a:o.push({type:"text",value:a}),o}function OT(t,r){const i=String(r.identifier).toUpperCase(),a=t.definitionById.get(i);if(!a)return Gx(t,r);const o={src:hi(a.url||""),alt:r.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const c={type:"element",tagName:"img",properties:o,children:[]};return t.patch(r,c),t.applyData(r,c)}function _T(t,r){const i={src:hi(r.url)};r.alt!==null&&r.alt!==void 0&&(i.alt=r.alt),r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return t.patch(r,a),t.applyData(r,a)}function RT(t,r){const i={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};t.patch(r,i);const a={type:"element",tagName:"code",properties:{},children:[i]};return t.patch(r,a),t.applyData(r,a)}function LT(t,r){const i=String(r.identifier).toUpperCase(),a=t.definitionById.get(i);if(!a)return Gx(t,r);const o={href:hi(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const c={type:"element",tagName:"a",properties:o,children:t.all(r)};return t.patch(r,c),t.applyData(r,c)}function UT(t,r){const i={href:hi(r.url)};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function BT(t,r,i){const a=t.all(r),o=i?HT(i):Fx(r),c={},s=[];if(typeof r.checked=="boolean"){const y=a[0];let g;y&&y.type==="element"&&y.tagName==="p"?g=y:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let m=-1;for(;++m<a.length;){const y=a[m];(o||m!==0||y.type!=="element"||y.tagName!=="p")&&s.push({type:"text",value:`
275
- `}),y.type==="element"&&y.tagName==="p"&&!o?s.push(...y.children):s.push(y)}const h=a[a.length-1];h&&(o||h.type!=="element"||h.tagName!=="p")&&s.push({type:"text",value:`
276
- `});const p={type:"element",tagName:"li",properties:c,children:s};return t.patch(r,p),t.applyData(r,p)}function HT(t){let r=!1;if(t.type==="list"){r=t.spread||!1;const i=t.children;let a=-1;for(;!r&&++a<i.length;)r=Fx(i[a])}return r}function Fx(t){const r=t.spread;return r??t.children.length>1}function qT(t,r){const i={},a=t.all(r);let o=-1;for(typeof r.start=="number"&&r.start!==1&&(i.start=r.start);++o<a.length;){const s=a[o];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){i.className=["contains-task-list"];break}}const c={type:"element",tagName:r.ordered?"ol":"ul",properties:i,children:t.wrap(a,!0)};return t.patch(r,c),t.applyData(r,c)}function VT(t,r){const i={type:"element",tagName:"p",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function YT(t,r){const i={type:"root",children:t.wrap(t.all(r))};return t.patch(r,i),t.applyData(r,i)}function GT(t,r){const i={type:"element",tagName:"strong",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}function FT(t,r){const i=t.all(r),a=i.shift(),o=[];if(a){const s={type:"element",tagName:"thead",properties:{},children:t.wrap([a],!0)};t.patch(r.children[0],s),o.push(s)}if(i.length>0){const s={type:"element",tagName:"tbody",properties:{},children:t.wrap(i,!0)},m=hd(r.children[1]),h=wx(r.children[r.children.length-1]);m&&h&&(s.position={start:m,end:h}),o.push(s)}const c={type:"element",tagName:"table",properties:{},children:t.wrap(o,!0)};return t.patch(r,c),t.applyData(r,c)}function IT(t,r,i){const a=i?i.children:void 0,c=(a?a.indexOf(r):1)===0?"th":"td",s=i&&i.type==="table"?i.align:void 0,m=s?s.length:r.children.length;let h=-1;const p=[];for(;++h<m;){const g=r.children[h],v={},S=s?s[h]:void 0;S&&(v.align=S);let E={type:"element",tagName:c,properties:v,children:[]};g&&(E.children=t.all(g),t.patch(g,E),E=t.applyData(g,E)),p.push(E)}const y={type:"element",tagName:"tr",properties:{},children:t.wrap(p,!0)};return t.patch(r,y),t.applyData(r,y)}function XT(t,r){const i={type:"element",tagName:"td",properties:{},children:t.all(r)};return t.patch(r,i),t.applyData(r,i)}const wy=9,Ey=32;function QT(t){const r=String(t),i=/\r?\n|\r/g;let a=i.exec(r),o=0;const c=[];for(;a;)c.push(Cy(r.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=i.exec(r);return c.push(Cy(r.slice(o),o>0,!1)),c.join("")}function Cy(t,r,i){let a=0,o=t.length;if(r){let c=t.codePointAt(a);for(;c===wy||c===Ey;)a++,c=t.codePointAt(a)}if(i){let c=t.codePointAt(o-1);for(;c===wy||c===Ey;)o--,c=t.codePointAt(o-1)}return o>a?t.slice(a,o):""}function ZT(t,r){const i={type:"text",value:QT(String(r.value))};return t.patch(r,i),t.applyData(r,i)}function KT(t,r){const i={type:"element",tagName:"hr",properties:{},children:[]};return t.patch(r,i),t.applyData(r,i)}const JT={blockquote:CT,break:TT,code:AT,delete:NT,emphasis:zT,footnoteReference:jT,heading:MT,html:DT,imageReference:OT,image:_T,inlineCode:RT,linkReference:LT,link:UT,listItem:BT,list:qT,paragraph:VT,root:YT,strong:GT,table:FT,tableCell:XT,tableRow:IT,text:ZT,thematicBreak:KT,toml:lo,yaml:lo,definition:lo,footnoteDefinition:lo};function lo(){}const Ix=-1,wo=0,Sa=1,go=2,Sd=3,kd=4,wd=5,Ed=6,Xx=7,Qx=8,{defineProperty:PT}=Object,Zx=typeof self=="object"?self:globalThis,Ty=(t,r)=>{switch(t){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+t)}return new Zx[t](r)},$T=(t,r)=>{const i=(o,c)=>(t.set(c,o),o),a=o=>{if(t.has(o))return t.get(o);const[c,s]=r[o];switch(c){case wo:case Ix:return i(s,o);case Sa:{const m=i([],o);for(const h of s)m.push(a(h));return m}case go:{const m=i({},o);for(const[h,p]of s){const y=a(h),g=a(p);y==="__proto__"?PT(m,y,{value:g,configurable:!0,enumerable:!0,writable:!0}):m[y]=g}return m}case Sd:return i(new Date(s),o);case kd:{const{source:m,flags:h}=s;return i(new RegExp(m,h),o)}case wd:{const m=i(new Map,o);for(const[h,p]of s)m.set(a(h),a(p));return m}case Ed:{const m=i(new Set,o);for(const h of s)m.add(a(h));return m}case Xx:{const{name:m,message:h}=s;return i(typeof Zx[m]=="function"?Ty(m,h):new Error(h),o)}case Qx:return i(BigInt(s),o);case"BigInt":return i(Object(BigInt(s)),o);case"ArrayBuffer":return i(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:m}=new Uint8Array(s);return i(new DataView(m),s)}case"-0":return-0}return i(Ty(c,s),o)};return a},Ay=t=>$T(new Map,t)(0),tr="",{toString:WT}={},{keys:eA,is:tA}=Object,ha=t=>{const r=typeof t;if(r!=="object"||!t)return[wo,r];const i=WT.call(t).slice(8,-1);switch(i){case"Array":return[Sa,tr];case"Object":return[go,tr];case"Date":return[Sd,tr];case"RegExp":return[kd,tr];case"Map":return[wd,tr];case"Set":return[Ed,tr];case"DataView":return[Sa,i]}return i.includes("Array")?[Sa,i]:t instanceof Error?[Xx,t.name||"Error"]:[go,i]},ro=([t,r])=>t===wo&&(r==="function"||r==="symbol"),nA=(t,r,i,a)=>{const o=(s,m)=>{const h=a.push(s)-1;return i.set(m,h),h},c=s=>{if(i.has(s))return i.get(s);let[m,h]=ha(s);switch(m){case wo:{let y=s;switch(h){case"bigint":m=Qx,y=s.toString();break;case"number":if(!s&&tA(s,-0))return a.push(["-0"])-1;break;case"function":case"symbol":if(t)throw new TypeError("unable to serialize "+h);y=null;break;case"undefined":return o([Ix],s)}return o([m,y],s)}case Sa:{if(h){let v=s;return h==="DataView"?v=new Uint8Array(s.buffer):h==="ArrayBuffer"&&(v=new Uint8Array(s)),o([h,[...v]],s)}const y=[],g=o([m,y],s);for(const v of s)y.push(c(v));return g}case go:{if(h)switch(h){case"BigInt":return o([h,s.toString()],s);case"Boolean":case"Number":case"String":return o([h,s.valueOf()],s)}if(r&&"toJSON"in s)return c(s.toJSON());const y=[],g=o([m,y],s);for(const v of eA(s))(t||!ro(ha(s[v])))&&y.push([c(v),c(s[v])]);return g}case Sd:return o([m,isNaN(s.getTime())?tr:s.toISOString()],s);case kd:{const{source:y,flags:g}=s;return o([m,{source:y,flags:g}],s)}case wd:{const y=[],g=o([m,y],s);for(const[v,S]of s)(t||!(ro(ha(v))||ro(ha(S))))&&y.push([c(v),c(S)]);return g}case Ed:{const y=[],g=o([m,y],s);for(const v of s)(t||!ro(ha(v)))&&y.push(c(v));return g}}const{message:p}=s;return o([m,{name:h,message:p}],s)};return c},Ny=(t,{json:r,lossy:i}={})=>{const a=[];return nA(!(r||i),!!r,new Map,a)(t),a},yo=typeof structuredClone=="function"?(t,r)=>r&&("json"in r||"lossy"in r)?Ay(Ny(t,r)):structuredClone(t):(t,r)=>Ay(Ny(t,r));function lA(t,r){const i=[{type:"text",value:"↩"}];return r>1&&i.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),i}function rA(t,r){return"Back to reference "+(t+1)+(r>1?"-"+r:"")}function iA(t){const r=typeof t.options.clobberPrefix=="string"?t.options.clobberPrefix:"user-content-",i=t.options.footnoteBackContent||lA,a=t.options.footnoteBackLabel||rA,o=t.options.footnoteLabel||"Footnotes",c=t.options.footnoteLabelTagName||"h2",s=t.options.footnoteLabelProperties||{className:["sr-only"]},m=[];let h=-1;for(;++h<t.footnoteOrder.length;){const p=t.footnoteById.get(t.footnoteOrder[h]);if(!p)continue;const y=t.all(p),g=String(p.identifier).toUpperCase(),v=hi(g.toLowerCase());let S=0;const E=[],A=t.footnoteCounts.get(g);for(;A!==void 0&&++S<=A;){E.length>0&&E.push({type:"text",value:" "});let L=typeof i=="string"?i:i(h,S);typeof L=="string"&&(L={type:"text",value:L}),E.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+v+(S>1?"-"+S:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(h,S),className:["data-footnote-backref"]},children:Array.isArray(L)?L:[L]})}const j=y[y.length-1];if(j&&j.type==="element"&&j.tagName==="p"){const L=j.children[j.children.length-1];L&&L.type==="text"?L.value+=" ":j.children.push({type:"text",value:" "}),j.children.push(...E)}else y.push(...E);const N={type:"element",tagName:"li",properties:{id:r+"fn-"+v},children:t.wrap(y,!0)};t.patch(p,N),m.push(N)}if(m.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...yo(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
277
- `},{type:"element",tagName:"ol",properties:{},children:t.wrap(m,!0)},{type:"text",value:`
278
- `}]}}const Eo=(function(t){if(t==null)return sA;if(typeof t=="function")return Co(t);if(typeof t=="object")return Array.isArray(t)?aA(t):uA(t);if(typeof t=="string")return oA(t);throw new Error("Expected function, string, or object as test")});function aA(t){const r=[];let i=-1;for(;++i<t.length;)r[i]=Eo(t[i]);return Co(a);function a(...o){let c=-1;for(;++c<r.length;)if(r[c].apply(this,o))return!0;return!1}}function uA(t){const r=t;return Co(i);function i(a){const o=a;let c;for(c in t)if(o[c]!==r[c])return!1;return!0}}function oA(t){return Co(r);function r(i){return i&&i.type===t}}function Co(t){return r;function r(i,a,o){return!!(cA(i)&&t.call(this,i,typeof a=="number"?a:void 0,o||void 0))}}function sA(){return!0}function cA(t){return t!==null&&typeof t=="object"&&"type"in t}const Kx=[],fA=!0,Ff=!1,dA="skip";function Jx(t,r,i,a){let o;typeof r=="function"&&typeof i!="function"?(a=i,i=r):o=r;const c=Eo(o),s=a?-1:1;m(t,void 0,[])();function m(h,p,y){const g=h&&typeof h=="object"?h:{};if(typeof g.type=="string"){const S=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(h.type+(S?"<"+S+">":""))+")"})}return v;function v(){let S=Kx,E,A,j;if((!r||c(h,p,y[y.length-1]||void 0))&&(S=mA(i(h,y)),S[0]===Ff))return S;if("children"in h&&h.children){const N=h;if(N.children&&S[0]!==dA)for(A=(a?N.children.length:-1)+s,j=y.concat(N);A>-1&&A<N.children.length;){const L=N.children[A];if(E=m(L,A,j)(),E[0]===Ff)return E;A=typeof E[1]=="number"?E[1]:A+s}}return S}}}function mA(t){return Array.isArray(t)?t:typeof t=="number"?[fA,t]:t==null?Kx:[t]}function Cd(t,r,i,a){let o,c,s;typeof r=="function"&&typeof i!="function"?(c=void 0,s=r,o=i):(c=r,s=i,o=a),Jx(t,c,m,o);function m(h,p){const y=p[p.length-1],g=y?y.children.indexOf(h):void 0;return s(h,g,y)}}const If={}.hasOwnProperty,hA={};function pA(t,r){const i=r||hA,a=new Map,o=new Map,c=new Map,s={...JT,...i.handlers},m={all:p,applyData:yA,definitionById:a,footnoteById:o,footnoteCounts:c,footnoteOrder:[],handlers:s,one:h,options:i,patch:gA,wrap:xA};return Cd(t,function(y){if(y.type==="definition"||y.type==="footnoteDefinition"){const g=y.type==="definition"?a:o,v=String(y.identifier).toUpperCase();g.has(v)||g.set(v,y)}}),m;function h(y,g){const v=y.type,S=m.handlers[v];if(If.call(m.handlers,v)&&S)return S(m,y,g);if(m.options.passThrough&&m.options.passThrough.includes(v)){if("children"in y){const{children:A,...j}=y,N=yo(j);return N.children=m.all(y),N}return yo(y)}return(m.options.unknownHandler||bA)(m,y,g)}function p(y){const g=[];if("children"in y){const v=y.children;let S=-1;for(;++S<v.length;){const E=m.one(v[S],y);if(E){if(S&&v[S-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=zy(E.value)),!Array.isArray(E)&&E.type==="element")){const A=E.children[0];A&&A.type==="text"&&(A.value=zy(A.value))}Array.isArray(E)?g.push(...E):g.push(E)}}}return g}}function gA(t,r){t.position&&(r.position=nE(t))}function yA(t,r){let i=r;if(t&&t.data){const a=t.data.hName,o=t.data.hChildren,c=t.data.hProperties;if(typeof a=="string")if(i.type==="element")i.tagName=a;else{const s="children"in i?i.children:[i];i={type:"element",tagName:a,properties:{},children:s}}i.type==="element"&&c&&Object.assign(i.properties,yo(c)),"children"in i&&i.children&&o!==null&&o!==void 0&&(i.children=o)}return i}function bA(t,r){const i=r.data||{},a="value"in r&&!(If.call(i,"hProperties")||If.call(i,"hChildren"))?{type:"text",value:r.value}:{type:"element",tagName:"div",properties:{},children:t.all(r)};return t.patch(r,a),t.applyData(r,a)}function xA(t,r){const i=[];let a=-1;for(r&&i.push({type:"text",value:`
279
- `});++a<t.length;)a&&i.push({type:"text",value:`
280
- `}),i.push(t[a]);return r&&t.length>0&&i.push({type:"text",value:`
281
- `}),i}function zy(t){let r=0,i=t.charCodeAt(r);for(;i===9||i===32;)r++,i=t.charCodeAt(r);return t.slice(r)}function jy(t,r){const i=pA(t,r),a=i.one(t,void 0),o=iA(i),c=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&c.children.push({type:"text",value:`
282
- `},o),c}function vA(t,r){return t&&"run"in t?async function(i,a){const o=jy(i,{file:a,...r});await t.run(o,a)}:function(i,a){return jy(i,{file:a,...t||r})}}function My(t){if(t)throw t}var cf,Dy;function SA(){if(Dy)return cf;Dy=1;var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(p){return typeof Array.isArray=="function"?Array.isArray(p):r.call(p)==="[object Array]"},c=function(p){if(!p||r.call(p)!=="[object Object]")return!1;var y=t.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&t.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!y&&!g)return!1;var v;for(v in p);return typeof v>"u"||t.call(p,v)},s=function(p,y){i&&y.name==="__proto__"?i(p,y.name,{enumerable:!0,configurable:!0,value:y.newValue,writable:!0}):p[y.name]=y.newValue},m=function(p,y){if(y==="__proto__")if(t.call(p,y)){if(a)return a(p,y).value}else return;return p[y]};return cf=function h(){var p,y,g,v,S,E,A=arguments[0],j=1,N=arguments.length,L=!1;for(typeof A=="boolean"&&(L=A,A=arguments[1]||{},j=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});j<N;++j)if(p=arguments[j],p!=null)for(y in p)g=m(A,y),v=m(p,y),A!==v&&(L&&v&&(c(v)||(S=o(v)))?(S?(S=!1,E=g&&o(g)?g:[]):E=g&&c(g)?g:{},s(A,{name:y,newValue:h(L,E,v)})):typeof v<"u"&&s(A,{name:y,newValue:v}));return A},cf}var kA=SA();const ff=Pf(kA);function Xf(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function wA(){const t=[],r={run:i,use:a};return r;function i(...o){let c=-1;const s=o.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);m(null,...o);function m(h,...p){const y=t[++c];let g=-1;if(h){s(h);return}for(;++g<o.length;)(p[g]===null||p[g]===void 0)&&(p[g]=o[g]);o=p,y?EA(y,m)(...p):s(null,...p)}}function a(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return t.push(o),r}}function EA(t,r){let i;return a;function a(...s){const m=t.length>s.length;let h;m&&s.push(o);try{h=t.apply(this,s)}catch(p){const y=p;if(m&&i)throw y;return o(y)}m||(h&&h.then&&typeof h.then=="function"?h.then(c,o):h instanceof Error?o(h):c(h))}function o(s,...m){i||(i=!0,r(s,...m))}function c(s){o(null,s)}}const jn={basename:CA,dirname:TA,extname:AA,join:NA,sep:"/"};function CA(t,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');ja(t);let i=0,a=-1,o=t.length,c;if(r===void 0||r.length===0||r.length>t.length){for(;o--;)if(t.codePointAt(o)===47){if(c){i=o+1;break}}else a<0&&(c=!0,a=o+1);return a<0?"":t.slice(i,a)}if(r===t)return"";let s=-1,m=r.length-1;for(;o--;)if(t.codePointAt(o)===47){if(c){i=o+1;break}}else s<0&&(c=!0,s=o+1),m>-1&&(t.codePointAt(o)===r.codePointAt(m--)?m<0&&(a=o):(m=-1,a=s));return i===a?a=s:a<0&&(a=t.length),t.slice(i,a)}function TA(t){if(ja(t),t.length===0)return".";let r=-1,i=t.length,a;for(;--i;)if(t.codePointAt(i)===47){if(a){r=i;break}}else a||(a=!0);return r<0?t.codePointAt(0)===47?"/":".":r===1&&t.codePointAt(0)===47?"//":t.slice(0,r)}function AA(t){ja(t);let r=t.length,i=-1,a=0,o=-1,c=0,s;for(;r--;){const m=t.codePointAt(r);if(m===47){if(s){a=r+1;break}continue}i<0&&(s=!0,i=r+1),m===46?o<0?o=r:c!==1&&(c=1):o>-1&&(c=-1)}return o<0||i<0||c===0||c===1&&o===i-1&&o===a+1?"":t.slice(o,i)}function NA(...t){let r=-1,i;for(;++r<t.length;)ja(t[r]),t[r]&&(i=i===void 0?t[r]:i+"/"+t[r]);return i===void 0?".":zA(i)}function zA(t){ja(t);const r=t.codePointAt(0)===47;let i=jA(t,!r);return i.length===0&&!r&&(i="."),i.length>0&&t.codePointAt(t.length-1)===47&&(i+="/"),r?"/"+i:i}function jA(t,r){let i="",a=0,o=-1,c=0,s=-1,m,h;for(;++s<=t.length;){if(s<t.length)m=t.codePointAt(s);else{if(m===47)break;m=47}if(m===47){if(!(o===s-1||c===1))if(o!==s-1&&c===2){if(i.length<2||a!==2||i.codePointAt(i.length-1)!==46||i.codePointAt(i.length-2)!==46){if(i.length>2){if(h=i.lastIndexOf("/"),h!==i.length-1){h<0?(i="",a=0):(i=i.slice(0,h),a=i.length-1-i.lastIndexOf("/")),o=s,c=0;continue}}else if(i.length>0){i="",a=0,o=s,c=0;continue}}r&&(i=i.length>0?i+"/..":"..",a=2)}else i.length>0?i+="/"+t.slice(o+1,s):i=t.slice(o+1,s),a=s-o-1;o=s,c=0}else m===46&&c>-1?c++:c=-1}return i}function ja(t){if(typeof t!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const MA={cwd:DA};function DA(){return"/"}function Qf(t){return!!(t!==null&&typeof t=="object"&&"href"in t&&t.href&&"protocol"in t&&t.protocol&&t.auth===void 0)}function OA(t){if(typeof t=="string")t=new URL(t);else if(!Qf(t)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(t.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return _A(t)}function _A(t){if(t.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const r=t.pathname;let i=-1;for(;++i<r.length;)if(r.codePointAt(i)===37&&r.codePointAt(i+1)===50){const a=r.codePointAt(i+2);if(a===70||a===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(r)}const df=["history","path","basename","stem","extname","dirname"];class Px{constructor(r){let i;r?Qf(r)?i={path:r}:typeof r=="string"||RA(r)?i={value:r}:i=r:i={},this.cwd="cwd"in i?"":MA.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<df.length;){const c=df[a];c in i&&i[c]!==void 0&&i[c]!==null&&(this[c]=c==="history"?[...i[c]]:i[c])}let o;for(o in i)df.includes(o)||(this[o]=i[o])}get basename(){return typeof this.path=="string"?jn.basename(this.path):void 0}set basename(r){hf(r,"basename"),mf(r,"basename"),this.path=jn.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?jn.dirname(this.path):void 0}set dirname(r){Oy(this.basename,"dirname"),this.path=jn.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?jn.extname(this.path):void 0}set extname(r){if(mf(r,"extname"),Oy(this.dirname,"extname"),r){if(r.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(r.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=jn.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){Qf(r)&&(r=OA(r)),hf(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?jn.basename(this.path,this.extname):void 0}set stem(r){hf(r,"stem"),mf(r,"stem"),this.path=jn.join(this.dirname||"",r+(this.extname||""))}fail(r,i,a){const o=this.message(r,i,a);throw o.fatal=!0,o}info(r,i,a){const o=this.message(r,i,a);return o.fatal=void 0,o}message(r,i,a){const o=new Tt(r,i,a);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(r){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(r||void 0).decode(this.value)}}function mf(t,r){if(t&&t.includes(jn.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+jn.sep+"`")}function hf(t,r){if(!t)throw new Error("`"+r+"` cannot be empty")}function Oy(t,r){if(!t)throw new Error("Setting `"+r+"` requires `path` to be set too")}function RA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const LA=(function(t){const a=this.constructor.prototype,o=a[t],c=function(){return o.apply(c,arguments)};return Object.setPrototypeOf(c,a),c}),UA={}.hasOwnProperty;class Td extends LA{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=wA()}copy(){const r=new Td;let i=-1;for(;++i<this.attachers.length;){const a=this.attachers[i];r.use(...a)}return r.data(ff(!0,{},this.namespace)),r}data(r,i){return typeof r=="string"?arguments.length===2?(yf("data",this.frozen),this.namespace[r]=i,this):UA.call(this.namespace,r)&&this.namespace[r]||void 0:r?(yf("data",this.frozen),this.namespace=r,this):this.namespace}freeze(){if(this.frozen)return this;const r=this;for(;++this.freezeIndex<this.attachers.length;){const[i,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const o=i.call(r,...a);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(r){this.freeze();const i=io(r),a=this.parser||this.Parser;return pf("parse",a),a(String(i),i)}process(r,i){const a=this;return this.freeze(),pf("process",this.parser||this.Parser),gf("process",this.compiler||this.Compiler),i?o(void 0,i):new Promise(o);function o(c,s){const m=io(r),h=a.parse(m);a.run(h,m,function(y,g,v){if(y||!g||!v)return p(y);const S=g,E=a.stringify(S,v);qA(E)?v.value=E:v.result=E,p(y,v)});function p(y,g){y||!g?s(y):c?c(g):i(void 0,g)}}}processSync(r){let i=!1,a;return this.freeze(),pf("processSync",this.parser||this.Parser),gf("processSync",this.compiler||this.Compiler),this.process(r,o),Ry("processSync","process",i),a;function o(c,s){i=!0,My(c),a=s}}run(r,i,a){_y(r),this.freeze();const o=this.transformers;return!a&&typeof i=="function"&&(a=i,i=void 0),a?c(void 0,a):new Promise(c);function c(s,m){const h=io(i);o.run(r,h,p);function p(y,g,v){const S=g||r;y?m(y):s?s(S):a(void 0,S,v)}}}runSync(r,i){let a=!1,o;return this.run(r,i,c),Ry("runSync","run",a),o;function c(s,m){My(s),o=m,a=!0}}stringify(r,i){this.freeze();const a=io(i),o=this.compiler||this.Compiler;return gf("stringify",o),_y(r),o(r,a)}use(r,...i){const a=this.attachers,o=this.namespace;if(yf("use",this.frozen),r!=null)if(typeof r=="function")h(r,i);else if(typeof r=="object")Array.isArray(r)?m(r):s(r);else throw new TypeError("Expected usable value, not `"+r+"`");return this;function c(p){if(typeof p=="function")h(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[y,...g]=p;h(y,g)}else s(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function s(p){if(!("plugins"in p)&&!("settings"in p))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");m(p.plugins),p.settings&&(o.settings=ff(!0,o.settings,p.settings))}function m(p){let y=-1;if(p!=null)if(Array.isArray(p))for(;++y<p.length;){const g=p[y];c(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function h(p,y){let g=-1,v=-1;for(;++g<a.length;)if(a[g][0]===p){v=g;break}if(v===-1)a.push([p,...y]);else if(y.length>0){let[S,...E]=y;const A=a[v][1];Xf(A)&&Xf(S)&&(S=ff(!0,A,S)),a[v]=[p,S,...E]}}}}const BA=new Td().freeze();function pf(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `parser`")}function gf(t,r){if(typeof r!="function")throw new TypeError("Cannot `"+t+"` without `compiler`")}function yf(t,r){if(r)throw new Error("Cannot call `"+t+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function _y(t){if(!Xf(t)||typeof t.type!="string")throw new TypeError("Expected node, got `"+t+"`")}function Ry(t,r,i){if(!i)throw new Error("`"+t+"` finished async. Use `"+r+"` instead")}function io(t){return HA(t)?t:new Px(t)}function HA(t){return!!(t&&typeof t=="object"&&"message"in t&&"messages"in t)}function qA(t){return typeof t=="string"||VA(t)}function VA(t){return!!(t&&typeof t=="object"&&"byteLength"in t&&"byteOffset"in t)}const YA="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ly=[],Uy={allowDangerousHtml:!0},GA=/^(https?|ircs?|mailto|xmpp)$/i,FA=[{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 IA(t){const r=XA(t),i=QA(t);return ZA(r.runSync(r.parse(i),i),t)}function XA(t){const r=t.rehypePlugins||Ly,i=t.remarkPlugins||Ly,a=t.remarkRehypeOptions?{...t.remarkRehypeOptions,...Uy}:Uy;return BA().use(ET).use(i).use(vA,a).use(r)}function QA(t){const r=t.children||"",i=new Px;return typeof r=="string"&&(i.value=r),i}function ZA(t,r){const i=r.allowedElements,a=r.allowElement,o=r.components,c=r.disallowedElements,s=r.skipHtml,m=r.unwrapDisallowed,h=r.urlTransform||KA;for(const y of FA)Object.hasOwn(r,y.from)&&(""+y.from+(y.to?"use `"+y.to+"` instead":"remove it")+YA+y.id,void 0);return Cd(t,p),uE(t,{Fragment:b.Fragment,components:o,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function p(y,g,v){if(y.type==="raw"&&v&&typeof g=="number")return s?v.children.splice(g,1):v.children[g]={type:"text",value:y.value},g;if(y.type==="element"){let S;for(S in uf)if(Object.hasOwn(uf,S)&&Object.hasOwn(y.properties,S)){const E=y.properties[S],A=uf[S];(A===null||A.includes(y.tagName))&&(y.properties[S]=h(String(E||""),S,y))}}if(y.type==="element"){let S=i?!i.includes(y.tagName):c?c.includes(y.tagName):!1;if(!S&&a&&typeof g=="number"&&(S=!a(y,g,v)),S&&v&&typeof g=="number")return m&&y.children?v.children.splice(g,1,...y.children):v.children.splice(g,1),g}}}function KA(t){const r=t.indexOf(":"),i=t.indexOf("?"),a=t.indexOf("#"),o=t.indexOf("/");return r===-1||o!==-1&&r>o||i!==-1&&r>i||a!==-1&&r>a||GA.test(t.slice(0,r))?t:""}function By(t,r){const i=String(t);if(typeof r!="string")throw new TypeError("Expected character");let a=0,o=i.indexOf(r);for(;o!==-1;)a++,o=i.indexOf(r,o+r.length);return a}function JA(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function PA(t,r,i){const o=Eo((i||{}).ignore||[]),c=$A(r);let s=-1;for(;++s<c.length;)Jx(t,"text",m);function m(p,y){let g=-1,v;for(;++g<y.length;){const S=y[g],E=v?v.children:void 0;if(o(S,E?E.indexOf(S):void 0,v))return;v=S}if(v)return h(p,y)}function h(p,y){const g=y[y.length-1],v=c[s][0],S=c[s][1];let E=0;const j=g.children.indexOf(p);let N=!1,L=[];v.lastIndex=0;let R=v.exec(p.value);for(;R;){const W=R.index,ee={index:R.index,input:R.input,stack:[...y,p]};let _=S(...R,ee);if(typeof _=="string"&&(_=_.length>0?{type:"text",value:_}:void 0),_===!1?v.lastIndex=W+1:(E!==W&&L.push({type:"text",value:p.value.slice(E,W)}),Array.isArray(_)?L.push(..._):_&&L.push(_),E=W+R[0].length,N=!0),!v.global)break;R=v.exec(p.value)}return N?(E<p.value.length&&L.push({type:"text",value:p.value.slice(E)}),g.children.splice(j,1,...L)):L=[p],j+L.length}}function $A(t){const r=[];if(!Array.isArray(t))throw new TypeError("Expected find and replace tuple or list of tuples");const i=!t[0]||Array.isArray(t[0])?t:[t];let a=-1;for(;++a<i.length;){const o=i[a];r.push([WA(o[0]),e3(o[1])])}return r}function WA(t){return typeof t=="string"?new RegExp(JA(t),"g"):t}function e3(t){return typeof t=="function"?t:function(){return t}}const bf="phrasing",xf=["autolink","link","image","label"];function t3(){return{transforms:[o3],enter:{literalAutolink:l3,literalAutolinkEmail:vf,literalAutolinkHttp:vf,literalAutolinkWww:vf},exit:{literalAutolink:u3,literalAutolinkEmail:a3,literalAutolinkHttp:r3,literalAutolinkWww:i3}}}function n3(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:bf,notInConstruct:xf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:bf,notInConstruct:xf},{character:":",before:"[ps]",after:"\\/",inConstruct:bf,notInConstruct:xf}]}}function l3(t){this.enter({type:"link",title:null,url:"",children:[]},t)}function vf(t){this.config.enter.autolinkProtocol.call(this,t)}function r3(t){this.config.exit.autolinkProtocol.call(this,t)}function i3(t){this.config.exit.data.call(this,t);const r=this.stack[this.stack.length-1];r.type,r.url="http://"+this.sliceSerialize(t)}function a3(t){this.config.exit.autolinkEmail.call(this,t)}function u3(t){this.exit(t)}function o3(t){PA(t,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,s3],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),c3]],{ignore:["link","linkReference"]})}function s3(t,r,i,a,o){let c="";if(!$x(o)||(/^w/i.test(r)&&(i=r+i,r="",c="http://"),!f3(i)))return!1;const s=d3(i+a);if(!s[0])return!1;const m={type:"link",title:null,url:c+r+s[0],children:[{type:"text",value:r+s[0]}]};return s[1]?[m,{type:"text",value:s[1]}]:m}function c3(t,r,i,a){return!$x(a,!0)||/[-\d_]$/.test(i)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+i,children:[{type:"text",value:r+"@"+i}]}}function f3(t){const r=t.split(".");return!(r.length<2||r[r.length-1]&&(/_/.test(r[r.length-1])||!/[a-zA-Z\d]/.test(r[r.length-1]))||r[r.length-2]&&(/_/.test(r[r.length-2])||!/[a-zA-Z\d]/.test(r[r.length-2])))}function d3(t){const r=/[!"&'),.:;<>?\]}]+$/.exec(t);if(!r)return[t,void 0];t=t.slice(0,r.index);let i=r[0],a=i.indexOf(")");const o=By(t,"(");let c=By(t,")");for(;a!==-1&&o>c;)t+=i.slice(0,a+1),i=i.slice(a+1),a=i.indexOf(")"),c++;return[t,i]}function $x(t,r){const i=t.input.charCodeAt(t.index-1);return(t.index===0||ar(i)||So(i))&&(!r||i!==47)}Wx.peek=S3;function m3(){this.buffer()}function h3(t){this.enter({type:"footnoteReference",identifier:"",label:""},t)}function p3(){this.buffer()}function g3(t){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},t)}function y3(t){const r=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=vn(this.sliceSerialize(t)).toLowerCase(),i.label=r}function b3(t){this.exit(t)}function x3(t){const r=this.resume(),i=this.stack[this.stack.length-1];i.type,i.identifier=vn(this.sliceSerialize(t)).toLowerCase(),i.label=r}function v3(t){this.exit(t)}function S3(){return"["}function Wx(t,r,i,a){const o=i.createTracker(a);let c=o.move("[^");const s=i.enter("footnoteReference"),m=i.enter("reference");return c+=o.move(i.safe(i.associationId(t),{after:"]",before:c})),m(),s(),c+=o.move("]"),c}function k3(){return{enter:{gfmFootnoteCallString:m3,gfmFootnoteCall:h3,gfmFootnoteDefinitionLabelString:p3,gfmFootnoteDefinition:g3},exit:{gfmFootnoteCallString:y3,gfmFootnoteCall:b3,gfmFootnoteDefinitionLabelString:x3,gfmFootnoteDefinition:v3}}}function w3(t){let r=!1;return t&&t.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:i,footnoteReference:Wx},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function i(a,o,c,s){const m=c.createTracker(s);let h=m.move("[^");const p=c.enter("footnoteDefinition"),y=c.enter("label");return h+=m.move(c.safe(c.associationId(a),{before:h,after:"]"})),y(),h+=m.move("]:"),a.children&&a.children.length>0&&(m.shift(4),h+=m.move((r?`
283
- `:" ")+c.indentLines(c.containerFlow(a,m.current()),r?e0:E3))),p(),h}}function E3(t,r,i){return r===0?t:e0(t,r,i)}function e0(t,r,i){return(i?"":" ")+t}const C3=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];t0.peek=j3;function T3(){return{canContainEols:["delete"],enter:{strikethrough:N3},exit:{strikethrough:z3}}}function A3(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:C3}],handlers:{delete:t0}}}function N3(t){this.enter({type:"delete",children:[]},t)}function z3(t){this.exit(t)}function t0(t,r,i,a){const o=i.createTracker(a),c=i.enter("strikethrough");let s=o.move("~~");return s+=i.containerPhrasing(t,{...o.current(),before:s,after:"~"}),s+=o.move("~~"),c(),s}function j3(){return"~"}function M3(t){return t.length}function D3(t,r){const i=r||{},a=(i.align||[]).concat(),o=i.stringLength||M3,c=[],s=[],m=[],h=[];let p=0,y=-1;for(;++y<t.length;){const A=[],j=[];let N=-1;for(t[y].length>p&&(p=t[y].length);++N<t[y].length;){const L=O3(t[y][N]);if(i.alignDelimiters!==!1){const R=o(L);j[N]=R,(h[N]===void 0||R>h[N])&&(h[N]=R)}A.push(L)}s[y]=A,m[y]=j}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<p;)c[g]=Hy(a[g]);else{const A=Hy(a);for(;++g<p;)c[g]=A}g=-1;const v=[],S=[];for(;++g<p;){const A=c[g];let j="",N="";A===99?(j=":",N=":"):A===108?j=":":A===114&&(N=":");let L=i.alignDelimiters===!1?1:Math.max(1,h[g]-j.length-N.length);const R=j+"-".repeat(L)+N;i.alignDelimiters!==!1&&(L=j.length+L+N.length,L>h[g]&&(h[g]=L),S[g]=L),v[g]=R}s.splice(1,0,v),m.splice(1,0,S),y=-1;const E=[];for(;++y<s.length;){const A=s[y],j=m[y];g=-1;const N=[];for(;++g<p;){const L=A[g]||"";let R="",W="";if(i.alignDelimiters!==!1){const ee=h[g]-(j[g]||0),_=c[g];_===114?R=" ".repeat(ee):_===99?ee%2?(R=" ".repeat(ee/2+.5),W=" ".repeat(ee/2-.5)):(R=" ".repeat(ee/2),W=R):W=" ".repeat(ee)}i.delimiterStart!==!1&&!g&&N.push("|"),i.padding!==!1&&!(i.alignDelimiters===!1&&L==="")&&(i.delimiterStart!==!1||g)&&N.push(" "),i.alignDelimiters!==!1&&N.push(R),N.push(L),i.alignDelimiters!==!1&&N.push(W),i.padding!==!1&&N.push(" "),(i.delimiterEnd!==!1||g!==p-1)&&N.push("|")}E.push(i.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return E.join(`
284
- `)}function O3(t){return t==null?"":String(t)}function Hy(t){const r=typeof t=="string"?t.codePointAt(0):0;return r===67||r===99?99:r===76||r===108?108:r===82||r===114?114:0}function _3(t,r,i,a){const o=i.enter("blockquote"),c=i.createTracker(a);c.move("> "),c.shift(2);const s=i.indentLines(i.containerFlow(t,c.current()),R3);return o(),s}function R3(t,r,i){return">"+(i?"":" ")+t}function L3(t,r){return qy(t,r.inConstruct,!0)&&!qy(t,r.notInConstruct,!1)}function qy(t,r,i){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return i;let a=-1;for(;++a<r.length;)if(t.includes(r[a]))return!0;return!1}function Vy(t,r,i,a){let o=-1;for(;++o<i.unsafe.length;)if(i.unsafe[o].character===`
285
- `&&L3(i.stack,i.unsafe[o]))return/[ \t]/.test(a.before)?"":" ";return`\\
286
- `}function U3(t,r){const i=String(t);let a=i.indexOf(r),o=a,c=0,s=0;if(typeof r!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++c>s&&(s=c):c=1,o=a+r.length,a=i.indexOf(r,o);return s}function B3(t,r){return!!(r.options.fences===!1&&t.value&&!t.lang&&/[^ \r\n]/.test(t.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(t.value))}function H3(t){const r=t.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function q3(t,r,i,a){const o=H3(i),c=t.value||"",s=o==="`"?"GraveAccent":"Tilde";if(B3(t,i)){const g=i.enter("codeIndented"),v=i.indentLines(c,V3);return g(),v}const m=i.createTracker(a),h=o.repeat(Math.max(U3(c,o)+1,3)),p=i.enter("codeFenced");let y=m.move(h);if(t.lang){const g=i.enter(`codeFencedLang${s}`);y+=m.move(i.safe(t.lang,{before:y,after:" ",encode:["`"],...m.current()})),g()}if(t.lang&&t.meta){const g=i.enter(`codeFencedMeta${s}`);y+=m.move(" "),y+=m.move(i.safe(t.meta,{before:y,after:`
287
- `,encode:["`"],...m.current()})),g()}return y+=m.move(`
288
- `),c&&(y+=m.move(c+`
289
- `)),y+=m.move(h),p(),y}function V3(t,r,i){return(i?"":" ")+t}function Ad(t){const r=t.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function Y3(t,r,i,a){const o=Ad(i),c=o==='"'?"Quote":"Apostrophe",s=i.enter("definition");let m=i.enter("label");const h=i.createTracker(a);let p=h.move("[");return p+=h.move(i.safe(i.associationId(t),{before:p,after:"]",...h.current()})),p+=h.move("]: "),m(),!t.url||/[\0- \u007F]/.test(t.url)?(m=i.enter("destinationLiteral"),p+=h.move("<"),p+=h.move(i.safe(t.url,{before:p,after:">",...h.current()})),p+=h.move(">")):(m=i.enter("destinationRaw"),p+=h.move(i.safe(t.url,{before:p,after:t.title?" ":`
290
- `,...h.current()}))),m(),t.title&&(m=i.enter(`title${c}`),p+=h.move(" "+o),p+=h.move(i.safe(t.title,{before:p,after:o,...h.current()})),p+=h.move(o),m()),s(),p}function G3(t){const r=t.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function Ea(t){return"&#x"+t.toString(16).toUpperCase()+";"}function bo(t,r,i){const a=ci(t),o=ci(r);return a===void 0?o===void 0?i==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}n0.peek=F3;function n0(t,r,i,a){const o=G3(i),c=i.enter("emphasis"),s=i.createTracker(a),m=s.move(o);let h=s.move(i.containerPhrasing(t,{after:o,before:m,...s.current()}));const p=h.charCodeAt(0),y=bo(a.before.charCodeAt(a.before.length-1),p,o);y.inside&&(h=Ea(p)+h.slice(1));const g=h.charCodeAt(h.length-1),v=bo(a.after.charCodeAt(0),g,o);v.inside&&(h=h.slice(0,-1)+Ea(g));const S=s.move(o);return c(),i.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},m+h+S}function F3(t,r,i){return i.options.emphasis||"*"}function I3(t,r){let i=!1;return Cd(t,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return i=!0,Ff}),!!((!t.depth||t.depth<3)&&bd(t)&&(r.options.setext||i))}function X3(t,r,i,a){const o=Math.max(Math.min(6,t.depth||1),1),c=i.createTracker(a);if(I3(t,i)){const y=i.enter("headingSetext"),g=i.enter("phrasing"),v=i.containerPhrasing(t,{...c.current(),before:`
291
- `,after:`
292
- `});return g(),y(),v+`
293
- `+(o===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
294
- `))+1))}const s="#".repeat(o),m=i.enter("headingAtx"),h=i.enter("phrasing");c.move(s+" ");let p=i.containerPhrasing(t,{before:"# ",after:`
295
- `,...c.current()});return/^[\t ]/.test(p)&&(p=Ea(p.charCodeAt(0))+p.slice(1)),p=p?s+" "+p:s,i.options.closeAtx&&(p+=" "+s),h(),m(),p}l0.peek=Q3;function l0(t){return t.value||""}function Q3(){return"<"}r0.peek=Z3;function r0(t,r,i,a){const o=Ad(i),c=o==='"'?"Quote":"Apostrophe",s=i.enter("image");let m=i.enter("label");const h=i.createTracker(a);let p=h.move("![");return p+=h.move(i.safe(t.alt,{before:p,after:"]",...h.current()})),p+=h.move("]("),m(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(m=i.enter("destinationLiteral"),p+=h.move("<"),p+=h.move(i.safe(t.url,{before:p,after:">",...h.current()})),p+=h.move(">")):(m=i.enter("destinationRaw"),p+=h.move(i.safe(t.url,{before:p,after:t.title?" ":")",...h.current()}))),m(),t.title&&(m=i.enter(`title${c}`),p+=h.move(" "+o),p+=h.move(i.safe(t.title,{before:p,after:o,...h.current()})),p+=h.move(o),m()),p+=h.move(")"),s(),p}function Z3(){return"!"}i0.peek=K3;function i0(t,r,i,a){const o=t.referenceType,c=i.enter("imageReference");let s=i.enter("label");const m=i.createTracker(a);let h=m.move("![");const p=i.safe(t.alt,{before:h,after:"]",...m.current()});h+=m.move(p+"]["),s();const y=i.stack;i.stack=[],s=i.enter("reference");const g=i.safe(i.associationId(t),{before:h,after:"]",...m.current()});return s(),i.stack=y,c(),o==="full"||!p||p!==g?h+=m.move(g+"]"):o==="shortcut"?h=h.slice(0,-1):h+=m.move("]"),h}function K3(){return"!"}a0.peek=J3;function a0(t,r,i){let a=t.value||"",o="`",c=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(a);)o+="`";for(/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++c<i.unsafe.length;){const s=i.unsafe[c],m=i.compilePattern(s);let h;if(s.atBreak)for(;h=m.exec(a);){let p=h.index;a.charCodeAt(p)===10&&a.charCodeAt(p-1)===13&&p--,a=a.slice(0,p)+" "+a.slice(h.index+1)}}return o+a+o}function J3(){return"`"}function u0(t,r){const i=bd(t);return!!(!r.options.resourceLink&&t.url&&!t.title&&t.children&&t.children.length===1&&t.children[0].type==="text"&&(i===t.url||"mailto:"+i===t.url)&&/^[a-z][a-z+.-]+:/i.test(t.url)&&!/[\0- <>\u007F]/.test(t.url))}o0.peek=P3;function o0(t,r,i,a){const o=Ad(i),c=o==='"'?"Quote":"Apostrophe",s=i.createTracker(a);let m,h;if(u0(t,i)){const y=i.stack;i.stack=[],m=i.enter("autolink");let g=s.move("<");return g+=s.move(i.containerPhrasing(t,{before:g,after:">",...s.current()})),g+=s.move(">"),m(),i.stack=y,g}m=i.enter("link"),h=i.enter("label");let p=s.move("[");return p+=s.move(i.containerPhrasing(t,{before:p,after:"](",...s.current()})),p+=s.move("]("),h(),!t.url&&t.title||/[\0- \u007F]/.test(t.url)?(h=i.enter("destinationLiteral"),p+=s.move("<"),p+=s.move(i.safe(t.url,{before:p,after:">",...s.current()})),p+=s.move(">")):(h=i.enter("destinationRaw"),p+=s.move(i.safe(t.url,{before:p,after:t.title?" ":")",...s.current()}))),h(),t.title&&(h=i.enter(`title${c}`),p+=s.move(" "+o),p+=s.move(i.safe(t.title,{before:p,after:o,...s.current()})),p+=s.move(o),h()),p+=s.move(")"),m(),p}function P3(t,r,i){return u0(t,i)?"<":"["}s0.peek=$3;function s0(t,r,i,a){const o=t.referenceType,c=i.enter("linkReference");let s=i.enter("label");const m=i.createTracker(a);let h=m.move("[");const p=i.containerPhrasing(t,{before:h,after:"]",...m.current()});h+=m.move(p+"]["),s();const y=i.stack;i.stack=[],s=i.enter("reference");const g=i.safe(i.associationId(t),{before:h,after:"]",...m.current()});return s(),i.stack=y,c(),o==="full"||!p||p!==g?h+=m.move(g+"]"):o==="shortcut"?h=h.slice(0,-1):h+=m.move("]"),h}function $3(){return"["}function Nd(t){const r=t.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function W3(t){const r=Nd(t),i=t.options.bulletOther;if(!i)return r==="*"?"-":"*";if(i!=="*"&&i!=="+"&&i!=="-")throw new Error("Cannot serialize items with `"+i+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(i===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+i+"`) to be different");return i}function eN(t){const r=t.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function c0(t){const r=t.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function tN(t,r,i,a){const o=i.enter("list"),c=i.bulletCurrent;let s=t.ordered?eN(i):Nd(i);const m=t.ordered?s==="."?")":".":W3(i);let h=r&&i.bulletLastUsed?s===i.bulletLastUsed:!1;if(!t.ordered){const y=t.children?t.children[0]:void 0;if((s==="*"||s==="-")&&y&&(!y.children||!y.children[0])&&i.stack[i.stack.length-1]==="list"&&i.stack[i.stack.length-2]==="listItem"&&i.stack[i.stack.length-3]==="list"&&i.stack[i.stack.length-4]==="listItem"&&i.indexStack[i.indexStack.length-1]===0&&i.indexStack[i.indexStack.length-2]===0&&i.indexStack[i.indexStack.length-3]===0&&(h=!0),c0(i)===s&&y){let g=-1;for(;++g<t.children.length;){const v=t.children[g];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(s=m),i.bulletCurrent=s;const p=i.containerFlow(t,a);return i.bulletLastUsed=s,i.bulletCurrent=c,o(),p}function nN(t){const r=t.options.listItemIndent||"one";if(r!=="tab"&&r!=="one"&&r!=="mixed")throw new Error("Cannot serialize items with `"+r+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return r}function lN(t,r,i,a){const o=nN(i);let c=i.bulletCurrent||Nd(i);r&&r.type==="list"&&r.ordered&&(c=(typeof r.start=="number"&&r.start>-1?r.start:1)+(i.options.incrementListMarker===!1?0:r.children.indexOf(t))+c);let s=c.length+1;(o==="tab"||o==="mixed"&&(r&&r.type==="list"&&r.spread||t.spread))&&(s=Math.ceil(s/4)*4);const m=i.createTracker(a);m.move(c+" ".repeat(s-c.length)),m.shift(s);const h=i.enter("listItem"),p=i.indentLines(i.containerFlow(t,m.current()),y);return h(),p;function y(g,v,S){return v?(S?"":" ".repeat(s))+g:(S?c:c+" ".repeat(s-c.length))+g}}function rN(t,r,i,a){const o=i.enter("paragraph"),c=i.enter("phrasing"),s=i.containerPhrasing(t,a);return c(),o(),s}const iN=Eo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function aN(t,r,i,a){return(t.children.some(function(s){return iN(s)})?i.containerPhrasing:i.containerFlow).call(i,t,a)}function uN(t){const r=t.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}f0.peek=oN;function f0(t,r,i,a){const o=uN(i),c=i.enter("strong"),s=i.createTracker(a),m=s.move(o+o);let h=s.move(i.containerPhrasing(t,{after:o,before:m,...s.current()}));const p=h.charCodeAt(0),y=bo(a.before.charCodeAt(a.before.length-1),p,o);y.inside&&(h=Ea(p)+h.slice(1));const g=h.charCodeAt(h.length-1),v=bo(a.after.charCodeAt(0),g,o);v.inside&&(h=h.slice(0,-1)+Ea(g));const S=s.move(o+o);return c(),i.attentionEncodeSurroundingInfo={after:v.outside,before:y.outside},m+h+S}function oN(t,r,i){return i.options.strong||"*"}function sN(t,r,i,a){return i.safe(t.value,a)}function cN(t){const r=t.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function fN(t,r,i){const a=(c0(i)+(i.options.ruleSpaces?" ":"")).repeat(cN(i));return i.options.ruleSpaces?a.slice(0,-1):a}const d0={blockquote:_3,break:Vy,code:q3,definition:Y3,emphasis:n0,hardBreak:Vy,heading:X3,html:l0,image:r0,imageReference:i0,inlineCode:a0,link:o0,linkReference:s0,list:tN,listItem:lN,paragraph:rN,root:aN,strong:f0,text:sN,thematicBreak:fN};function dN(){return{enter:{table:mN,tableData:Yy,tableHeader:Yy,tableRow:pN},exit:{codeText:gN,table:hN,tableData:Sf,tableHeader:Sf,tableRow:Sf}}}function mN(t){const r=t._align;this.enter({type:"table",align:r.map(function(i){return i==="none"?null:i}),children:[]},t),this.data.inTable=!0}function hN(t){this.exit(t),this.data.inTable=void 0}function pN(t){this.enter({type:"tableRow",children:[]},t)}function Sf(t){this.exit(t)}function Yy(t){this.enter({type:"tableCell",children:[]},t)}function gN(t){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,yN));const i=this.stack[this.stack.length-1];i.type,i.value=r,this.exit(t)}function yN(t,r){return r==="|"?r:t}function bN(t){const r=t||{},i=r.tableCellPadding,a=r.tablePipeAlign,o=r.stringLength,c=i?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
296
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:s,tableCell:h,tableRow:m}};function s(S,E,A,j){return p(y(S,A,j),S.align)}function m(S,E,A,j){const N=g(S,A,j),L=p([N]);return L.slice(0,L.indexOf(`
297
- `))}function h(S,E,A,j){const N=A.enter("tableCell"),L=A.enter("phrasing"),R=A.containerPhrasing(S,{...j,before:c,after:c});return L(),N(),R}function p(S,E){return D3(S,{align:E,alignDelimiters:a,padding:i,stringLength:o})}function y(S,E,A){const j=S.children;let N=-1;const L=[],R=E.enter("table");for(;++N<j.length;)L[N]=g(j[N],E,A);return R(),L}function g(S,E,A){const j=S.children;let N=-1;const L=[],R=E.enter("tableRow");for(;++N<j.length;)L[N]=h(j[N],S,E,A);return R(),L}function v(S,E,A){let j=d0.inlineCode(S,E,A);return A.stack.includes("tableCell")&&(j=j.replace(/\|/g,"\\$&")),j}}function xN(){return{exit:{taskListCheckValueChecked:Gy,taskListCheckValueUnchecked:Gy,paragraph:SN}}}function vN(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:kN}}}function Gy(t){const r=this.stack[this.stack.length-2];r.type,r.checked=t.type==="taskListCheckValueChecked"}function SN(t){const r=this.stack[this.stack.length-2];if(r&&r.type==="listItem"&&typeof r.checked=="boolean"){const i=this.stack[this.stack.length-1];i.type;const a=i.children[0];if(a&&a.type==="text"){const o=r.children;let c=-1,s;for(;++c<o.length;){const m=o[c];if(m.type==="paragraph"){s=m;break}}s===i&&(a.value=a.value.slice(1),a.value.length===0?i.children.shift():i.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,i.position.start=Object.assign({},a.position.start)))}}this.exit(t)}function kN(t,r,i,a){const o=t.children[0],c=typeof t.checked=="boolean"&&o&&o.type==="paragraph",s="["+(t.checked?"x":" ")+"] ",m=i.createTracker(a);c&&m.move(s);let h=d0.listItem(t,r,i,{...a,...m.current()});return c&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),h;function p(y){return y+s}}function wN(){return[t3(),k3(),T3(),dN(),xN()]}function EN(t){return{extensions:[n3(),w3(t),A3(),bN(t),vN()]}}const CN={tokenize:MN,partial:!0},m0={tokenize:DN,partial:!0},h0={tokenize:ON,partial:!0},p0={tokenize:_N,partial:!0},TN={tokenize:RN,partial:!0},g0={name:"wwwAutolink",tokenize:zN,previous:b0},y0={name:"protocolAutolink",tokenize:jN,previous:x0},ll={name:"emailAutolink",tokenize:NN,previous:v0},On={};function AN(){return{text:On}}let er=48;for(;er<123;)On[er]=ll,er++,er===58?er=65:er===91&&(er=97);On[43]=ll;On[45]=ll;On[46]=ll;On[95]=ll;On[72]=[ll,y0];On[104]=[ll,y0];On[87]=[ll,g0];On[119]=[ll,g0];function NN(t,r,i){const a=this;let o,c;return s;function s(g){return!Zf(g)||!v0.call(a,a.previous)||zd(a.events)?i(g):(t.enter("literalAutolink"),t.enter("literalAutolinkEmail"),m(g))}function m(g){return Zf(g)?(t.consume(g),m):g===64?(t.consume(g),h):i(g)}function h(g){return g===46?t.check(TN,y,p)(g):g===45||g===95||Ct(g)?(c=!0,t.consume(g),h):y(g)}function p(g){return t.consume(g),o=!0,h}function y(g){return c&&o&&jt(a.previous)?(t.exit("literalAutolinkEmail"),t.exit("literalAutolink"),r(g)):i(g)}}function zN(t,r,i){const a=this;return o;function o(s){return s!==87&&s!==119||!b0.call(a,a.previous)||zd(a.events)?i(s):(t.enter("literalAutolink"),t.enter("literalAutolinkWww"),t.check(CN,t.attempt(m0,t.attempt(h0,c),i),i)(s))}function c(s){return t.exit("literalAutolinkWww"),t.exit("literalAutolink"),r(s)}}function jN(t,r,i){const a=this;let o="",c=!1;return s;function s(g){return(g===72||g===104)&&x0.call(a,a.previous)&&!zd(a.events)?(t.enter("literalAutolink"),t.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),t.consume(g),m):i(g)}function m(g){if(jt(g)&&o.length<5)return o+=String.fromCodePoint(g),t.consume(g),m;if(g===58){const v=o.toLowerCase();if(v==="http"||v==="https")return t.consume(g),h}return i(g)}function h(g){return g===47?(t.consume(g),c?p:(c=!0,h)):i(g)}function p(g){return g===null||po(g)||Je(g)||ar(g)||So(g)?i(g):t.attempt(m0,t.attempt(h0,y),i)(g)}function y(g){return t.exit("literalAutolinkHttp"),t.exit("literalAutolink"),r(g)}}function MN(t,r,i){let a=0;return o;function o(s){return(s===87||s===119)&&a<3?(a++,t.consume(s),o):s===46&&a===3?(t.consume(s),c):i(s)}function c(s){return s===null?i(s):r(s)}}function DN(t,r,i){let a,o,c;return s;function s(p){return p===46||p===95?t.check(p0,h,m)(p):p===null||Je(p)||ar(p)||p!==45&&So(p)?h(p):(c=!0,t.consume(p),s)}function m(p){return p===95?a=!0:(o=a,a=void 0),t.consume(p),s}function h(p){return o||a||!c?i(p):r(p)}}function ON(t,r){let i=0,a=0;return o;function o(s){return s===40?(i++,t.consume(s),o):s===41&&a<i?c(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?t.check(p0,r,c)(s):s===null||Je(s)||ar(s)?r(s):(t.consume(s),o)}function c(s){return s===41&&a++,t.consume(s),o}}function _N(t,r,i){return a;function a(m){return m===33||m===34||m===39||m===41||m===42||m===44||m===46||m===58||m===59||m===63||m===95||m===126?(t.consume(m),a):m===38?(t.consume(m),c):m===93?(t.consume(m),o):m===60||m===null||Je(m)||ar(m)?r(m):i(m)}function o(m){return m===null||m===40||m===91||Je(m)||ar(m)?r(m):a(m)}function c(m){return jt(m)?s(m):i(m)}function s(m){return m===59?(t.consume(m),a):jt(m)?(t.consume(m),s):i(m)}}function RN(t,r,i){return a;function a(c){return t.consume(c),o}function o(c){return Ct(c)?i(c):r(c)}}function b0(t){return t===null||t===40||t===42||t===95||t===91||t===93||t===126||Je(t)}function x0(t){return!jt(t)}function v0(t){return!(t===47||Zf(t))}function Zf(t){return t===43||t===45||t===46||t===95||Ct(t)}function zd(t){let r=t.length,i=!1;for(;r--;){const a=t[r][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){i=!0;break}if(a._gfmAutolinkLiteralWalkedInto){i=!1;break}}return t.length>0&&!i&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),i}const LN={tokenize:FN,partial:!0};function UN(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:VN,continuation:{tokenize:YN},exit:GN}},text:{91:{name:"gfmFootnoteCall",tokenize:qN},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:BN,resolveTo:HN}}}}function BN(t,r,i){const a=this;let o=a.events.length;const c=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let s;for(;o--;){const h=a.events[o][1];if(h.type==="labelImage"){s=h;break}if(h.type==="gfmFootnoteCall"||h.type==="labelLink"||h.type==="label"||h.type==="image"||h.type==="link")break}return m;function m(h){if(!s||!s._balanced)return i(h);const p=vn(a.sliceSerialize({start:s.end,end:a.now()}));return p.codePointAt(0)!==94||!c.includes(p.slice(1))?i(h):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(h),t.exit("gfmFootnoteCallLabelMarker"),r(h))}}function HN(t,r){let i=t.length;for(;i--;)if(t[i][1].type==="labelImage"&&t[i][0]==="enter"){t[i][1];break}t[i+1][1].type="data",t[i+3][1].type="gfmFootnoteCallLabelMarker";const a={type:"gfmFootnoteCall",start:Object.assign({},t[i+3][1].start),end:Object.assign({},t[t.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},t[i+3][1].end),end:Object.assign({},t[i+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},t[t.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},m=[t[i+1],t[i+2],["enter",a,r],t[i+3],t[i+4],["enter",o,r],["exit",o,r],["enter",c,r],["enter",s,r],["exit",s,r],["exit",c,r],t[t.length-2],t[t.length-1],["exit",a,r]];return t.splice(i,t.length-i+1,...m),t}function qN(t,r,i){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c=0,s;return m;function m(g){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),h}function h(g){return g!==94?i(g):(t.enter("gfmFootnoteCallMarker"),t.consume(g),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",p)}function p(g){if(c>999||g===93&&!s||g===null||g===91||Je(g))return i(g);if(g===93){t.exit("chunkString");const v=t.exit("gfmFootnoteCallString");return o.includes(vn(a.sliceSerialize(v)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(g),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),r):i(g)}return Je(g)||(s=!0),c++,t.consume(g),g===92?y:p}function y(g){return g===91||g===92||g===93?(t.consume(g),c++,p):p(g)}}function VN(t,r,i){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c,s=0,m;return h;function h(E){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(E){return E===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",y):i(E)}function y(E){if(s>999||E===93&&!m||E===null||E===91||Je(E))return i(E);if(E===93){t.exit("chunkString");const A=t.exit("gfmFootnoteDefinitionLabelString");return c=vn(a.sliceSerialize(A)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(E),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),v}return Je(E)||(m=!0),s++,t.consume(E),E===92?g:y}function g(E){return E===91||E===92||E===93?(t.consume(E),s++,y):y(E)}function v(E){return E===58?(t.enter("definitionMarker"),t.consume(E),t.exit("definitionMarker"),o.includes(c)||o.push(c),Le(t,S,"gfmFootnoteDefinitionWhitespace")):i(E)}function S(E){return r(E)}}function YN(t,r,i){return t.check(za,r,t.attempt(LN,r,i))}function GN(t){t.exit("gfmFootnoteDefinition")}function FN(t,r,i){const a=this;return Le(t,o,"gfmFootnoteDefinitionIndent",5);function o(c){const s=a.events[a.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?r(c):i(c)}}function IN(t){let i=(t||{}).singleTilde;const a={name:"strikethrough",tokenize:c,resolveAll:o};return i==null&&(i=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function o(s,m){let h=-1;for(;++h<s.length;)if(s[h][0]==="enter"&&s[h][1].type==="strikethroughSequenceTemporary"&&s[h][1]._close){let p=h;for(;p--;)if(s[p][0]==="exit"&&s[p][1].type==="strikethroughSequenceTemporary"&&s[p][1]._open&&s[h][1].end.offset-s[h][1].start.offset===s[p][1].end.offset-s[p][1].start.offset){s[h][1].type="strikethroughSequence",s[p][1].type="strikethroughSequence";const y={type:"strikethrough",start:Object.assign({},s[p][1].start),end:Object.assign({},s[h][1].end)},g={type:"strikethroughText",start:Object.assign({},s[p][1].end),end:Object.assign({},s[h][1].start)},v=[["enter",y,m],["enter",s[p][1],m],["exit",s[p][1],m],["enter",g,m]],S=m.parser.constructs.insideSpan.null;S&&en(v,v.length,0,ko(S,s.slice(p+1,h),m)),en(v,v.length,0,[["exit",g,m],["enter",s[h][1],m],["exit",s[h][1],m],["exit",y,m]]),en(s,p-1,h-p+3,v),h=p+v.length-2;break}}for(h=-1;++h<s.length;)s[h][1].type==="strikethroughSequenceTemporary"&&(s[h][1].type="data");return s}function c(s,m,h){const p=this.previous,y=this.events;let g=0;return v;function v(E){return p===126&&y[y.length-1][1].type!=="characterEscape"?h(E):(s.enter("strikethroughSequenceTemporary"),S(E))}function S(E){const A=ci(p);if(E===126)return g>1?h(E):(s.consume(E),g++,S);if(g<2&&!i)return h(E);const j=s.exit("strikethroughSequenceTemporary"),N=ci(E);return j._open=!N||N===2&&!!A,j._close=!A||A===2&&!!N,m(E)}}}class XN{constructor(){this.map=[]}add(r,i,a){QN(this,r,i,a)}consume(r){if(this.map.sort(function(c,s){return c[0]-s[0]}),this.map.length===0)return;let i=this.map.length;const a=[];for(;i>0;)i-=1,a.push(r.slice(this.map[i][0]+this.map[i][1]),this.map[i][2]),r.length=this.map[i][0];a.push(r.slice()),r.length=0;let o=a.pop();for(;o;){for(const c of o)r.push(c);o=a.pop()}this.map.length=0}}function QN(t,r,i,a){let o=0;if(!(i===0&&a.length===0)){for(;o<t.map.length;){if(t.map[o][0]===r){t.map[o][1]+=i,t.map[o][2].push(...a);return}o+=1}t.map.push([r,i,a])}}function ZN(t,r){let i=!1;const a=[];for(;r<t.length;){const o=t[r];if(i){if(o[0]==="enter")o[1].type==="tableContent"&&a.push(t[r+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(t[r-1][1].type==="tableDelimiterMarker"){const c=a.length-1;a[c]=a[c]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(i=!0);r+=1}return a}function KN(){return{flow:{null:{name:"table",tokenize:JN,resolveAll:PN}}}}function JN(t,r,i){const a=this;let o=0,c=0,s;return m;function m(B){let re=a.events.length-1;for(;re>-1;){const oe=a.events[re][1].type;if(oe==="lineEnding"||oe==="linePrefix")re--;else break}const P=re>-1?a.events[re][1].type:null,pe=P==="tableHead"||P==="tableRow"?_:h;return pe===_&&a.parser.lazy[a.now().line]?i(B):pe(B)}function h(B){return t.enter("tableHead"),t.enter("tableRow"),p(B)}function p(B){return B===124||(s=!0,c+=1),y(B)}function y(B){return B===null?i(B):xe(B)?c>1?(c=0,a.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(B),t.exit("lineEnding"),S):i(B):De(B)?Le(t,y,"whitespace")(B):(c+=1,s&&(s=!1,o+=1),B===124?(t.enter("tableCellDivider"),t.consume(B),t.exit("tableCellDivider"),s=!0,y):(t.enter("data"),g(B)))}function g(B){return B===null||B===124||Je(B)?(t.exit("data"),y(B)):(t.consume(B),B===92?v:g)}function v(B){return B===92||B===124?(t.consume(B),g):g(B)}function S(B){return a.interrupt=!1,a.parser.lazy[a.now().line]?i(B):(t.enter("tableDelimiterRow"),s=!1,De(B)?Le(t,E,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):E(B))}function E(B){return B===45||B===58?j(B):B===124?(s=!0,t.enter("tableCellDivider"),t.consume(B),t.exit("tableCellDivider"),A):ee(B)}function A(B){return De(B)?Le(t,j,"whitespace")(B):j(B)}function j(B){return B===58?(c+=1,s=!0,t.enter("tableDelimiterMarker"),t.consume(B),t.exit("tableDelimiterMarker"),N):B===45?(c+=1,N(B)):B===null||xe(B)?W(B):ee(B)}function N(B){return B===45?(t.enter("tableDelimiterFiller"),L(B)):ee(B)}function L(B){return B===45?(t.consume(B),L):B===58?(s=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(B),t.exit("tableDelimiterMarker"),R):(t.exit("tableDelimiterFiller"),R(B))}function R(B){return De(B)?Le(t,W,"whitespace")(B):W(B)}function W(B){return B===124?E(B):B===null||xe(B)?!s||o!==c?ee(B):(t.exit("tableDelimiterRow"),t.exit("tableHead"),r(B)):ee(B)}function ee(B){return i(B)}function _(B){return t.enter("tableRow"),X(B)}function X(B){return B===124?(t.enter("tableCellDivider"),t.consume(B),t.exit("tableCellDivider"),X):B===null||xe(B)?(t.exit("tableRow"),r(B)):De(B)?Le(t,X,"whitespace")(B):(t.enter("data"),Y(B))}function Y(B){return B===null||B===124||Je(B)?(t.exit("data"),X(B)):(t.consume(B),B===92?ae:Y)}function ae(B){return B===92||B===124?(t.consume(B),Y):Y(B)}}function PN(t,r){let i=-1,a=!0,o=0,c=[0,0,0,0],s=[0,0,0,0],m=!1,h=0,p,y,g;const v=new XN;for(;++i<t.length;){const S=t[i],E=S[1];S[0]==="enter"?E.type==="tableHead"?(m=!1,h!==0&&(Fy(v,r,h,p,y),y=void 0,h=0),p={type:"table",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(i,0,[["enter",p,r]])):E.type==="tableRow"||E.type==="tableDelimiterRow"?(a=!0,g=void 0,c=[0,0,0,0],s=[0,i+1,0,0],m&&(m=!1,y={type:"tableBody",start:Object.assign({},E.start),end:Object.assign({},E.end)},v.add(i,0,[["enter",y,r]])),o=E.type==="tableDelimiterRow"?2:y?3:1):o&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")?(a=!1,s[2]===0&&(c[1]!==0&&(s[0]=s[1],g=ao(v,r,c,o,void 0,g),c=[0,0,0,0]),s[2]=i)):E.type==="tableCellDivider"&&(a?a=!1:(c[1]!==0&&(s[0]=s[1],g=ao(v,r,c,o,void 0,g)),c=s,s=[c[1],i,0,0])):E.type==="tableHead"?(m=!0,h=i):E.type==="tableRow"||E.type==="tableDelimiterRow"?(h=i,c[1]!==0?(s[0]=s[1],g=ao(v,r,c,o,i,g)):s[1]!==0&&(g=ao(v,r,s,o,i,g)),o=0):o&&(E.type==="data"||E.type==="tableDelimiterMarker"||E.type==="tableDelimiterFiller")&&(s[3]=i)}for(h!==0&&Fy(v,r,h,p,y),v.consume(r.events),i=-1;++i<r.events.length;){const S=r.events[i];S[0]==="enter"&&S[1].type==="table"&&(S[1]._align=ZN(r.events,i))}return t}function ao(t,r,i,a,o,c){const s=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",m="tableContent";i[0]!==0&&(c.end=Object.assign({},ai(r.events,i[0])),t.add(i[0],0,[["exit",c,r]]));const h=ai(r.events,i[1]);if(c={type:s,start:Object.assign({},h),end:Object.assign({},h)},t.add(i[1],0,[["enter",c,r]]),i[2]!==0){const p=ai(r.events,i[2]),y=ai(r.events,i[3]),g={type:m,start:Object.assign({},p),end:Object.assign({},y)};if(t.add(i[2],0,[["enter",g,r]]),a!==2){const v=r.events[i[2]],S=r.events[i[3]];if(v[1].end=Object.assign({},S[1].end),v[1].type="chunkText",v[1].contentType="text",i[3]>i[2]+1){const E=i[2]+1,A=i[3]-i[2]-1;t.add(E,A,[])}}t.add(i[3]+1,0,[["exit",g,r]])}return o!==void 0&&(c.end=Object.assign({},ai(r.events,o)),t.add(o,0,[["exit",c,r]]),c=void 0),c}function Fy(t,r,i,a,o){const c=[],s=ai(r.events,i);o&&(o.end=Object.assign({},s),c.push(["exit",o,r])),a.end=Object.assign({},s),c.push(["exit",a,r]),t.add(i+1,0,c)}function ai(t,r){const i=t[r],a=i[0]==="enter"?"start":"end";return i[1][a]}const $N={name:"tasklistCheck",tokenize:ez};function WN(){return{text:{91:$N}}}function ez(t,r,i){const a=this;return o;function o(h){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?i(h):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),c)}function c(h){return Je(h)?(t.enter("taskListCheckValueUnchecked"),t.consume(h),t.exit("taskListCheckValueUnchecked"),s):h===88||h===120?(t.enter("taskListCheckValueChecked"),t.consume(h),t.exit("taskListCheckValueChecked"),s):i(h)}function s(h){return h===93?(t.enter("taskListCheckMarker"),t.consume(h),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),m):i(h)}function m(h){return xe(h)?r(h):De(h)?t.check({tokenize:tz},r,i)(h):i(h)}}function tz(t,r,i){return Le(t,a,"whitespace");function a(o){return o===null?i(o):r(o)}}function nz(t){return jx([AN(),UN(),IN(t),KN(),WN()])}const lz={};function rz(t){const r=this,i=t||lz,a=r.data(),o=a.micromarkExtensions||(a.micromarkExtensions=[]),c=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),s=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);o.push(nz(i)),c.push(wN()),s.push(EN(i))}const iz={h1:({children:t})=>b.jsx("h1",{className:"mb-3 text-xl font-bold",children:t}),h2:({children:t})=>b.jsx("h2",{className:"mb-2 text-lg font-semibold",children:t}),h3:({children:t})=>b.jsx("h3",{className:"mb-1.5 text-base font-semibold",children:t}),p:({children:t})=>b.jsx("p",{className:"mb-2 last:mb-0 leading-relaxed",children:t}),ul:({children:t})=>b.jsx("ul",{className:"mb-2 ml-4 list-disc space-y-0.5",children:t}),ol:({children:t})=>b.jsx("ol",{className:"mb-2 ml-4 list-decimal space-y-0.5",children:t}),li:({children:t})=>b.jsx("li",{className:"text-sm",children:t}),blockquote:({children:t})=>b.jsx("blockquote",{className:"mb-2 border-l-2 border-brand/50 pl-3 italic text-muted-foreground",children:t}),a:({href:t,children:r})=>t&&/^(https?:\/\/|\/(?!\/)|#)/i.test(t)?b.jsx("a",{href:t,className:"text-brand underline underline-offset-2 hover:text-brand/80",target:"_blank",rel:"noopener noreferrer",children:r}):b.jsx("span",{className:"text-muted-foreground",children:r}),strong:({children:t})=>b.jsx("strong",{className:"font-semibold text-foreground",children:t}),em:({children:t})=>b.jsx("em",{className:"italic text-muted-foreground",children:t}),hr:()=>b.jsx("hr",{className:"my-3 border-border"}),table:({children:t})=>b.jsx("div",{className:"mb-2 overflow-x-auto rounded border border-border",children:b.jsx("table",{className:"w-full text-sm",children:t})}),thead:({children:t})=>b.jsx("thead",{className:"bg-secondary text-secondary-foreground",children:t}),th:({children:t})=>b.jsx("th",{className:"px-3 py-1.5 text-left font-medium",children:t}),td:({children:t})=>b.jsx("td",{className:"border-t border-border px-3 py-1.5",children:t}),code:({children:t,className:r})=>{var a;return((a=/language-(\w+)/.exec(r??""))==null?void 0:a[1])?b.jsx("code",{className:se("text-xs",r),children:t}):b.jsx("code",{className:"rounded bg-secondary px-1 py-0.5 font-mono text-[11px] text-foreground",children:t})},pre:({children:t,...r})=>{var o,c;const i=t,a=(c=/language-(\w+)/.exec(((o=i==null?void 0:i.props)==null?void 0:o.className)??""))==null?void 0:c[1];return b.jsxs("pre",{...r,className:"mb-2 overflow-x-auto rounded bg-secondary p-3 font-mono text-xs leading-5",children:[a&&b.jsx("div",{className:"mb-1 text-[10px] text-muted-foreground",children:a}),t]})}};function az({text:t,className:r}){return b.jsx("div",{className:se("text-sm text-foreground",r),children:b.jsx(IA,{remarkPlugins:[rz],components:iz,children:t})})}function uz({text:t}){return b.jsxs("details",{className:"group rounded-md border border-border/50 bg-muted/30",children:[b.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-2 px-3 py-2 text-xs text-muted-foreground select-none hover:text-foreground",children:[b.jsx("span",{className:"inline-block transition-transform group-open:rotate-90",children:"▶"}),"Thinking…"]}),b.jsx("div",{className:"border-t border-border/50 px-3 py-2",children:b.jsx("p",{className:"whitespace-pre-wrap font-serif text-xs italic text-muted-foreground",children:t})})]})}function oz({diff:t}){const r=t.split(`
298
- `);return b.jsx("div",{className:"overflow-x-auto rounded bg-secondary font-mono text-xs leading-5",children:b.jsx("table",{className:"w-full border-collapse",children:b.jsx("tbody",{children:r.map((i,a)=>{const o=i.startsWith("+")&&!i.startsWith("+++"),c=i.startsWith("-")&&!i.startsWith("---"),s=i.startsWith("@@"),m=i.startsWith("+++")||i.startsWith("---");return b.jsxs("tr",{className:se(o&&"bg-status-running/15 text-status-running",c&&"bg-status-failed/15 text-status-failed",s&&"bg-muted text-muted-foreground",m&&"text-muted-foreground",!o&&!c&&!s&&!m&&"text-foreground"),children:[b.jsx("td",{className:"select-none px-2 py-0 text-right text-muted-foreground/50 tabular-nums",children:a+1}),b.jsx("td",{className:"w-full whitespace-pre px-2 py-0",children:i||" "})]},a)})})})})}function sz({status:t}){return b.jsx("span",{className:se("mt-0.5 inline-block h-2 w-2 shrink-0 rounded-full",t==="ok"&&"bg-status-running",t==="error"&&"bg-status-failed",t==="running"&&"animate-pulse bg-status-blocked"),"aria-label":t})}function cz({ms:t}){const r=(t/1e3).toFixed(1);return b.jsxs("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:[r,"s"]})}function fz({name:t,inputPreview:r,status:i,output:a,outputUnavailable:o,diff:c,durationMs:s}){const m=c||o||a&&a.trim().length>0;return b.jsxs("div",{className:se("rounded-md border bg-card",i==="error"?"border-status-failed/40":"border-border"),children:[b.jsxs("div",{className:"flex items-start gap-2 px-3 py-2",children:[b.jsx(sz,{status:i}),b.jsx("span",{className:"font-mono text-xs font-medium text-foreground",children:t}),s!==void 0&&b.jsx("span",{className:"ml-auto",children:b.jsx(cz,{ms:s})})]}),r.trim().length>0&&b.jsx("div",{className:"border-t border-border/50 px-3 py-1.5",children:b.jsx("p",{className:"line-clamp-2 font-mono text-[11px] text-muted-foreground",children:r})}),m&&b.jsxs("details",{className:"group border-t border-border/50",children:[b.jsxs("summary",{className:"flex cursor-pointer list-none items-center gap-1 px-3 py-1.5 text-[11px] text-muted-foreground select-none hover:text-foreground",children:[b.jsx("span",{className:"inline-block transition-transform group-open:rotate-90",children:"▶"}),"Output"]}),b.jsxs("div",{className:"px-3 pb-2 pt-1",children:[o&&b.jsx("p",{className:"text-[11px] italic text-muted-foreground",children:"Output not available (replayed session)"}),c&&b.jsx(oz,{diff:c}),!c&&a&&b.jsx("pre",{className:"overflow-x-auto whitespace-pre-wrap font-mono text-[11px] text-foreground",children:a})]})]})]})}function dz(t){if(t<1e3)return`${t}ms`;const r=t/1e3;return r<60?`${r.toFixed(1)}s`:`${Math.floor(r/60)}m ${Math.floor(r%60)}s`}function mz(t){return t<.001?"<$0.001":`$${t.toFixed(3)}`}function hz({status:t}){const r="h-3.5 w-3.5 shrink-0";switch(t){case"started":return b.jsx(bk,{className:se(r,"animate-pulse text-status-blocked"),"aria-label":"running"});case"succeeded":case"completed":return b.jsx(ik,{className:se(r,"text-status-running"),"aria-label":"succeeded"});case"failed":return b.jsx(uk,{className:se(r,"text-status-failed"),"aria-label":"failed"});case"cancelled":return b.jsx(bb,{className:se(r,"text-muted-foreground"),"aria-label":"cancelled"});default:return b.jsx(ak,{className:se(r,"text-muted-foreground"),"aria-label":"unknown"})}}function pz(t){switch(t){case"succeeded":case"completed":return"text-status-running";case"failed":return"text-status-failed";case"started":return"text-status-blocked";default:return"text-muted-foreground"}}function gz({node:t,isExpanded:r,onToggle:i,isChild:a}){const{item:o}=t,c=t.children.length>0;return b.jsxs("div",{className:se("flex items-start gap-2 px-3 py-2",c&&"cursor-pointer select-none",a&&"py-1.5"),onClick:c?i:void 0,role:c?"button":void 0,tabIndex:c?0:void 0,onKeyDown:c?s=>{(s.key==="Enter"||s.key===" ")&&(s.preventDefault(),i())}:void 0,"aria-expanded":c?r:void 0,children:[c?b.jsx(pb,{className:se("mt-0.5 h-3 w-3 shrink-0 text-muted-foreground transition-transform",r&&"rotate-90")}):b.jsx("span",{className:"h-3 w-3 shrink-0"}),b.jsx("span",{className:"mt-0.5",children:b.jsx(hz,{status:o.status})}),b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[b.jsx("span",{className:"text-xs font-medium text-foreground",children:o.agentType??o.label}),o.model&&b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:o.model}),o.durationMs!==void 0&&b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:dz(o.durationMs)}),o.totalCostUsd!==void 0&&b.jsx("span",{className:"rounded bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:mz(o.totalCostUsd)}),b.jsx("span",{className:se("ml-auto font-mono text-[10px] capitalize",pz(o.status)),children:o.status})]}),o.promptHead&&b.jsxs("p",{className:"mt-0.5 line-clamp-1 text-[11px] italic text-muted-foreground",children:["“",o.promptHead,"”"]})]})]})}function S0({node:t,isChild:r=!1}){const[i,a]=k.useState(!0),o=t.children.length>0;return b.jsxs("div",{children:[b.jsx(gz,{node:t,isExpanded:i,onToggle:()=>a(c=>!c),isChild:r}),o&&i&&b.jsx("div",{className:"ml-6 border-l border-border/50 pl-3",children:t.children.map((c,s)=>b.jsx("div",{className:se(s<t.children.length-1&&"border-b border-border/30"),children:b.jsx(S0,{node:c,isChild:!0})},c.item.subagentId))})]})}function yz({roots:t,className:r}){return t.length===0?null:b.jsx("div",{className:se("rounded-md border border-border bg-card",r),children:t.map((i,a)=>b.jsx("div",{className:se(a<t.length-1&&"border-b border-border/50"),children:b.jsx(S0,{node:i})},i.item.subagentId))})}function kf(){return b.jsx("span",{className:"text-muted-foreground/40","aria-hidden":!0,children:"·"})}function uo({label:t,value:r}){return b.jsxs("span",{className:"flex items-baseline gap-1",children:[b.jsx("span",{className:"text-[10px] text-muted-foreground",children:t}),b.jsx("span",{className:"font-mono text-xs text-foreground",children:r})]})}function bz(t){if(t<1e3)return`${t}ms`;const r=t/1e3;if(r<60)return`${r.toFixed(1)}s`;const i=Math.floor(r/60),a=Math.round(r%60);return`${i}m ${a}s`}function xz(t){return t>=1e6?`${(t/1e6).toFixed(1)}M`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function k0({totals:t,className:r}){if(!t)return b.jsx("div",{className:se("flex items-center gap-2 text-xs text-muted-foreground",r),children:b.jsx("span",{className:"text-[10px] italic",children:"No metrics yet"})});const i=(t.inputTokens??0)+(t.outputTokens??0)+(t.cacheReadTokens??0);return b.jsxs("div",{className:se("flex flex-wrap items-center gap-2",r),children:[b.jsx(uo,{label:"turns",value:String(t.turns)}),b.jsx(kf,{}),b.jsx(uo,{label:"cost",value:`$${t.costUsd.toFixed(4)}`}),i>0&&b.jsxs(b.Fragment,{children:[b.jsx(kf,{}),b.jsx(uo,{label:"tokens",value:xz(i)})]}),b.jsx(kf,{}),b.jsx(uo,{label:"duration",value:bz(t.durationMs)})]})}function vz(t){const r=new Map,i=[];for(const o of t){if(o.kind!=="subagent"||r.get(o.subagentId))continue;const s={item:o,children:[]};if(r.set(o.subagentId,s),o.parentId){const m=r.get(o.parentId);m?m.children.push(s):i.push(s)}else i.push(s)}const a=[];for(const o of i){const c=o.item.parentId?r.get(o.item.parentId):void 0;c?c.children.push(o):a.push(o)}return a}function Sz({text:t}){return b.jsxs("div",{className:"flex gap-2",children:[b.jsx("div",{className:"w-0.5 shrink-0 rounded-full bg-brand"}),b.jsx("p",{className:"text-sm text-foreground leading-relaxed whitespace-pre-wrap",children:t})]})}function kz({message:t}){return b.jsxs("div",{className:"flex items-start gap-2 rounded-md border border-status-failed/40 bg-status-failed/5 px-3 py-2",children:[b.jsx(rk,{className:"mt-0.5 h-4 w-4 shrink-0 text-status-failed"}),b.jsx("p",{className:"text-sm text-status-failed",children:t})]})}function wz({text:t}){return b.jsxs("div",{className:"flex items-start gap-2 rounded-md border border-border bg-muted/40 px-3 py-2",children:[b.jsx(gb,{className:"mt-0.5 h-4 w-4 shrink-0 text-muted-foreground"}),b.jsx("p",{className:"text-xs text-muted-foreground",children:t})]})}function Ez({item:t}){return b.jsxs("div",{className:"flex items-center gap-2 rounded-md border border-border bg-muted/30 px-3 py-1.5",children:[b.jsx("span",{className:"text-[10px] text-muted-foreground",children:"BG"}),b.jsx("span",{className:"text-xs text-foreground",children:t.label}),b.jsx("span",{className:se("ml-auto font-mono text-[10px] capitalize",t.status==="completed"?"text-status-running":"",t.status==="failed"?"text-status-failed":"",t.status==="running"?"text-status-blocked":""),children:t.status})]})}function Cz(t){const r=[];let i=0;for(;i<t.length;){const a=t[i];if(a===void 0){i++;continue}if(a.kind!=="subagent"){r.push({kind:"item",item:a}),i++;continue}const o=[];for(;i<t.length;){const c=t[i];if(c===void 0||c.kind!=="subagent")break;o.push(c),i++}r.push({kind:"subagent-group",items:o,id:o[0].id})}return r}function Tz({items:t,totals:r}){const i=k.useMemo(()=>Cz(t),[t]);return b.jsxs("div",{className:"flex flex-col gap-3",children:[r&&b.jsx(k0,{totals:r,className:"sticky top-0 z-10 rounded-md border border-border bg-card px-3 py-1.5"}),t.length===0?b.jsx("p",{className:"py-12 text-center text-sm text-muted-foreground",children:"No transcript items yet."}):i.map(a=>{if(a.kind==="item"){const{item:c}=a;return b.jsx("div",{children:Az(c)},c.id)}const o=vz(a.items);return b.jsx(yz,{roots:o},a.id)})]})}function Az(t){switch(t.kind){case"user":return b.jsx(Sz,{text:t.text});case"assistant":return b.jsx(az,{text:t.text});case"thinking":return b.jsx(uz,{text:t.text});case"tool":return b.jsx(fz,{...t});case"error":return b.jsx(kz,{message:t.message});case"notice":return b.jsx(wz,{text:t.text});case"bg_job":return b.jsx(Ez,{item:t});case"subagent":return null}}const Kf="afk_web_token",Nz="__AFK_WEB_TOKEN__";let ya=null;function zz(){ya=null;try{sessionStorage.removeItem(Kf)}catch{}}function w0(){if(ya)return ya;const t=document.querySelector('meta[name="afk-token"]'),r=t==null?void 0:t.content;if(r&&r!==Nz){ya=r;try{sessionStorage.setItem(Kf,r)}catch{}return jz(),r}try{const i=sessionStorage.getItem(Kf);if(i)return ya=i,i}catch{}return""}function jz(){const t=new URL(window.location.href);(t.searchParams.has("token")||t.searchParams.has("k"))&&(t.searchParams.delete("token"),t.searchParams.delete("k"),window.history.replaceState({},"",t.toString()))}async function it(t,r={}){const i=w0(),a=new Headers(r.headers);i&&a.set("Authorization",`Bearer ${i}`),r.body&&!a.has("Content-Type")&&a.set("Content-Type","application/json");const o=await fetch(t,{...r,headers:a});if(!o.ok){o.status===401&&zz();const c=await o.text().catch(()=>o.statusText);throw new Mz(o.status,c)}return o.json()}class Mz extends Error{constructor(r,i){super(`API ${r}: ${i}`),this.status=r,this.name="ApiError"}}const Dz={preference:"Preference",convention:"Convention",decision:"Decision",learning:"Learning"};function Oz({type:t}){return b.jsx("span",{className:se("inline-flex items-center rounded px-1.5 py-0.5 text-xs font-medium",t==="fact"?"bg-blue-500/15 text-blue-400":"bg-violet-500/15 text-violet-400"),children:t})}function _z({category:t}){return t?b.jsx("span",{className:"inline-flex items-center rounded px-1.5 py-0.5 text-xs font-medium bg-zinc-700 text-zinc-300",children:Dz[t]??t}):null}function Rz({result:t}){const r=t.content.length>200?t.content.slice(0,200)+"…":t.content,i=t.created_at?new Date(t.created_at).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}):null;return b.jsxs("div",{className:"rounded-lg border border-zinc-800 bg-zinc-900 p-3 space-y-2",children:[b.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[b.jsx(Oz,{type:t.type}),b.jsx(_z,{category:t.category}),i&&b.jsx("span",{className:"text-xs text-zinc-500 ml-auto",children:i})]}),b.jsx("p",{className:"text-sm text-zinc-300 leading-relaxed whitespace-pre-wrap break-words",children:r})]})}function Lz({pct:t,truncated:r}){const i=Math.min(t,100),a=t>=100?"bg-red-500":t>=80?"bg-amber-400":"bg-accent";return b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("div",{className:"flex-1 h-2 rounded-full bg-zinc-800 overflow-hidden",children:b.jsx("div",{className:se("h-full rounded-full transition-all",a),style:{width:`${i}%`}})}),r&&b.jsx("span",{className:"inline-flex items-center rounded px-1.5 py-0.5 text-xs font-medium bg-amber-400/15 text-amber-400",children:"Truncated"})]})}function Uz({hot:t}){if(!t)return null;const{content:r,usage:i}=t;return b.jsxs("section",{className:"space-y-2",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("h3",{className:"text-sm font-semibold text-zinc-200",children:"HOT Memory"}),b.jsxs("span",{className:"text-xs text-zinc-500",children:[i.tokens.toLocaleString()," / ",i.maxTokens.toLocaleString()," tokens"]})]}),b.jsx(Lz,{pct:i.pct,truncated:i.truncated}),r?b.jsx("pre",{className:"rounded-md border border-zinc-800 bg-zinc-950 p-3 text-xs text-zinc-300 font-mono overflow-x-auto whitespace-pre-wrap max-h-48",children:r}):b.jsx("p",{className:"text-xs text-zinc-500 italic",children:"No hot memory loaded."})]})}const Bz=[{value:"",label:"All Categories"},{value:"preference",label:"Preference"},{value:"convention",label:"Convention"},{value:"decision",label:"Decision"},{value:"learning",label:"Learning"}];function Hz(){const[t,r]=k.useState(null),[i,a]=k.useState(""),[o,c]=k.useState(""),[s,m]=k.useState(null),[h,p]=k.useState(!1),[y,g]=k.useState(null);k.useEffect(()=>{it("/api/memory/hot").then(r).catch(()=>{})},[]);const v=k.useCallback(async S=>{S.preventDefault(),p(!0),g(null);try{const E=new URLSearchParams({q:i,limit:"20"});o&&E.set("category",o);const A=await it(`/api/memory/search?${E.toString()}`);m(A.results)}catch(E){g(E instanceof Error?E.message:"Search failed")}finally{p(!1)}},[i,o]);return b.jsxs("div",{className:"flex flex-col gap-6 p-4",children:[b.jsx(Uz,{hot:t}),b.jsxs("section",{className:"space-y-3",children:[b.jsx("h3",{className:"text-sm font-semibold text-zinc-200",children:"Search Memory"}),b.jsxs("form",{onSubmit:v,className:"flex gap-2 flex-wrap",children:[b.jsx("input",{type:"text",value:i,onChange:S=>a(S.target.value),placeholder:"FTS5 query…",className:"flex-1 min-w-0 rounded-md border border-zinc-700 bg-zinc-900 px-3 py-1.5 text-sm text-zinc-100 placeholder-zinc-500 focus:outline-none focus:ring-1 focus:ring-accent"}),b.jsx("select",{value:o,onChange:S=>c(S.target.value),className:"rounded-md border border-zinc-700 bg-zinc-900 px-2 py-1.5 text-sm text-zinc-100 focus:outline-none focus:ring-1 focus:ring-accent",children:Bz.map(S=>b.jsx("option",{value:S.value,children:S.label},S.value))}),b.jsx("button",{type:"submit",disabled:h,className:"rounded-md bg-accent px-3 py-1.5 text-sm font-medium text-white disabled:opacity-50 hover:opacity-90 transition-opacity",children:h?"Searching…":"Search"})]}),y&&b.jsx("p",{className:"text-xs text-red-400",children:y}),s!==null&&b.jsx("div",{className:"space-y-2",children:s.length===0?b.jsx("p",{className:"text-sm text-zinc-500 italic text-center py-6",children:"No results found."}):s.map(S=>b.jsx(Rz,{result:S},`${S.type}-${S.created_at}-${S.content.slice(0,32)}`))})]})]})}const qz={success:{label:"Success",className:"bg-status-done/20 text-status-done border-status-done/30"},error:{label:"Error",className:"bg-status-failed/20 text-status-failed border-status-failed/30"},skipped:{label:"Skipped",className:"bg-muted text-muted-foreground border-border"}};function Vz(t){if(t<1e3)return`${t}ms`;const r=Math.floor(t/1e3);return r<60?`${r}s`:`${Math.floor(r/60)}m ${r%60}s`}function Yz(t){return new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function Gz({schedule:t,onClose:r}){const[i,a]=k.useState([]),[o,c]=k.useState(!0),[s,m]=k.useState(null);return k.useEffect(()=>{let h=!1;return c(!0),m(null),it(`/api/schedules/${t.id}/history`).then(p=>{h||a(p.history)}).catch(p=>{h||m(p instanceof Error?p.message:"Failed to load history")}).finally(()=>{h||c(!1)}),()=>{h=!0}},[t.id]),k.useEffect(()=>{const h=p=>{p.key==="Escape"&&r()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[r]),b.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 p-4",onClick:h=>{h.target===h.currentTarget&&r()},children:b.jsxs("div",{className:"flex max-h-[80vh] w-full max-w-lg flex-col rounded-xl border border-border bg-card shadow-xl",children:[b.jsxs("div",{className:"flex items-center justify-between border-b border-border px-5 py-4",children:[b.jsxs("div",{children:[b.jsx("h2",{className:"text-sm font-semibold",children:t.name}),b.jsx("p",{className:"mt-0.5 font-mono text-xs text-muted-foreground",children:t.cron})]}),b.jsx("button",{onClick:r,className:"flex size-7 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground","aria-label":"Close",children:"✕"})]}),b.jsxs("div",{className:"flex-1 overflow-y-auto px-5 py-3",children:[o&&b.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"Loading history…"}),s&&b.jsx("p",{className:"py-8 text-center text-sm text-status-failed",children:s}),!o&&!s&&i.length===0&&b.jsx("p",{className:"py-8 text-center text-sm text-muted-foreground",children:"No runs recorded yet."}),!o&&!s&&i.length>0&&b.jsx("ul",{className:"space-y-2",children:i.map((h,p)=>{const y=qz[h.status];return b.jsxs("li",{className:"flex items-start gap-3 rounded-lg border border-border bg-background/50 px-4 py-3",children:[b.jsx("span",{className:se("mt-0.5 shrink-0 rounded-full border px-2 py-0.5 text-xs font-medium",y.className),children:y.label}),b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsxs("div",{className:"flex items-center justify-between gap-2",children:[b.jsx("span",{className:"text-xs text-muted-foreground",children:Yz(h.triggeredAt)}),b.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:Vz(h.durationMs)})]}),h.errorMessage&&b.jsx("p",{className:"mt-1 truncate font-mono text-xs text-status-failed",children:h.errorMessage})]})]},`${h.taskId}-${h.triggeredAt}-${p}`)})})]})]})})}function Fz({status:t}){return t?b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("span",{className:se("size-2 rounded-full",t.running?"animate-pulse bg-status-done":"bg-status-failed")}),b.jsx("span",{className:"text-sm text-muted-foreground",children:t.running?`Running${t.tasks!=null?` (${t.tasks} task${t.tasks!==1?"s":""})`:""}`:"Stopped"})]}):null}function E0({checked:t,onChange:r,disabled:i}){return b.jsx("button",{role:"switch","aria-checked":t,onClick:a=>{a.stopPropagation(),r()},disabled:i,className:se("relative inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent","transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-50",t?"bg-brand":"bg-muted"),children:b.jsx("span",{className:se("block size-4 rounded-full bg-white shadow transition-transform",t?"translate-x-4":"translate-x-0")})})}function Iz({schedule:t,onToggle:r,onDelete:i,onShowHistory:a}){const[o,c]=k.useState(!1),[s,m]=k.useState(!1),h=async()=>{c(!0),await r(t.id).finally(()=>c(!1))},p=async g=>{g.stopPropagation(),window.confirm(`Delete schedule "${t.name}"? This cannot be undone.`)&&(m(!0),await i(t.id).finally(()=>m(!1)))},y=t.trigger==="both"?"cron + session start":t.trigger??"cron";return b.jsxs("div",{className:se("group flex cursor-pointer flex-col gap-3 rounded-xl border border-border bg-card p-4","transition-colors hover:border-brand/40 hover:bg-accent/30",!t.enabled&&"opacity-60"),onClick:()=>a(t),children:[b.jsxs("div",{className:"flex items-start justify-between gap-3",children:[b.jsxs("div",{className:"min-w-0 flex-1",children:[b.jsx("p",{className:"truncate text-sm font-semibold",children:t.name}),b.jsx("p",{className:"mt-0.5 font-mono text-xs text-muted-foreground",children:t.cron})]}),b.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[b.jsx(E0,{checked:t.enabled,onChange:()=>{h()},disabled:o}),b.jsx("button",{onClick:p,disabled:s,"aria-label":`Delete schedule ${t.name}`,className:se("flex size-7 items-center justify-center rounded-md text-muted-foreground","opacity-0 transition-opacity group-hover:opacity-100","hover:bg-destructive/20 hover:text-status-failed","disabled:cursor-not-allowed disabled:opacity-40"),children:"🗑"})]})]}),b.jsx("code",{className:"block truncate rounded-md bg-secondary px-3 py-2 font-mono text-xs text-secondary-foreground",children:t.command}),b.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground",children:[b.jsx("span",{className:"rounded bg-muted px-1.5 py-0.5 capitalize",children:y}),t.notifyOn&&t.notifyOn!=="never"&&b.jsxs("span",{className:"rounded bg-muted px-1.5 py-0.5",children:["notify: ",t.notifyOn]}),b.jsx("span",{className:"ml-auto",children:"Click for history"})]})]})}const Xz={name:"",command:"",cron:"",trigger:"cron",notifyOn:"failure",enabled:!0};function Qz({onCreated:t,onCancel:r}){const[i,a]=k.useState(Xz),[o,c]=k.useState(!1),[s,m]=k.useState(null),h=async g=>{if(g.preventDefault(),m(null),!i.name.trim()){m("Name is required.");return}if(!i.command.trim()){m("Command is required.");return}if(!i.cron.trim()){m("Cron expression is required.");return}c(!0);try{const v=await it("/api/schedules",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});t(v.schedule,v.syncNote)}catch(v){m(v instanceof Error?v.message:"Failed to create schedule.")}finally{c(!1)}},p=(g,v)=>b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:g}),v]}),y=se("h-8 rounded-md border border-border bg-card px-3 text-sm","placeholder:text-muted-foreground/50","focus:outline-none focus:ring-2 focus:ring-ring","disabled:cursor-not-allowed disabled:opacity-50");return b.jsxs("form",{onSubmit:g=>{h(g)},className:"flex flex-col gap-4 rounded-xl border border-brand/40 bg-card p-4",children:[b.jsx("p",{className:"text-sm font-semibold",children:"New Schedule"}),b.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[p("Name *",b.jsx("input",{type:"text",className:y,placeholder:"e.g. Nightly cleanup",value:i.name,onChange:g=>a(v=>({...v,name:g.target.value})),required:!0,disabled:o})),p("Cron expression *",b.jsx("input",{type:"text",className:se(y,"font-mono"),placeholder:"0 2 * * *",value:i.cron,onChange:g=>a(v=>({...v,cron:g.target.value})),required:!0,disabled:o}))]}),p("Command *",b.jsx("input",{type:"text",className:se(y,"font-mono"),placeholder:"/my-skill --auto",value:i.command,onChange:g=>a(v=>({...v,command:g.target.value})),required:!0,disabled:o})),b.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-3",children:[p("Trigger",b.jsxs("select",{className:y,value:i.trigger,onChange:g=>a(v=>({...v,trigger:g.target.value})),disabled:o,children:[b.jsx("option",{value:"cron",children:"cron"}),b.jsx("option",{value:"sessionstart",children:"session start"}),b.jsx("option",{value:"both",children:"both"})]})),p("Notify on",b.jsxs("select",{className:y,value:i.notifyOn,onChange:g=>a(v=>({...v,notifyOn:g.target.value})),disabled:o,children:[b.jsx("option",{value:"failure",children:"failure"}),b.jsx("option",{value:"always",children:"always"}),b.jsx("option",{value:"never",children:"never"})]})),b.jsxs("div",{className:"flex flex-col gap-1",children:[b.jsx("label",{className:"text-xs font-medium text-muted-foreground",children:"Enabled"}),b.jsx("div",{className:"flex h-8 items-center",children:b.jsx(E0,{checked:i.enabled,onChange:()=>a(g=>({...g,enabled:!g.enabled})),disabled:o})})]})]}),s&&b.jsx("p",{className:"rounded-md border border-status-failed/30 bg-status-failed/10 px-3 py-2 text-xs text-status-failed",children:s}),b.jsxs("div",{className:"flex items-center justify-end gap-2",children:[b.jsx("button",{type:"button",onClick:r,disabled:o,className:se("h-8 rounded-md px-3 text-sm text-muted-foreground","hover:bg-accent hover:text-foreground","disabled:cursor-not-allowed disabled:opacity-50"),children:"Cancel"}),b.jsx("button",{type:"submit",disabled:o,className:se("h-8 rounded-md bg-brand px-4 text-sm font-medium text-white","hover:bg-brand/90","disabled:cursor-not-allowed disabled:opacity-50"),children:o?"Creating…":"Create"})]})]})}function Zz(){const[t,r]=k.useState([]),[i,a]=k.useState(null),[o,c]=k.useState(!0),[s,m]=k.useState(null),[h,p]=k.useState(null),[y,g]=k.useState(!1),[v,S]=k.useState(null);k.useEffect(()=>{let N=!1;return c(!0),m(null),Promise.all([it("/api/schedules"),it("/api/daemon/status")]).then(([L,R])=>{N||(r(L.schedules),a(R))}).catch(L=>{N||m(L instanceof Error?L.message:"Failed to load schedules")}).finally(()=>{N||c(!1)}),()=>{N=!0}},[]);const E=k.useCallback(async N=>{const L=await it(`/api/schedules/${N}/toggle`,{method:"POST"});r(R=>R.map(W=>W.id===N?{...W,enabled:L.enabled}:W)),L.syncNote&&(S(L.syncNote),setTimeout(()=>S(null),8e3))},[]),A=k.useCallback(async N=>{await it(`/api/schedules/${N}`,{method:"DELETE"}),r(L=>L.filter(R=>R.id!==N))},[]),j=k.useCallback((N,L)=>{r(R=>[...R,N]),g(!1),L&&(S(L),setTimeout(()=>S(null),8e3))},[]);return o?b.jsx("div",{className:"flex flex-1 items-center justify-center",children:b.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading schedules…"})}):b.jsxs("div",{className:"flex flex-1 flex-col gap-4 overflow-y-auto p-4",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("h1",{className:"text-base font-semibold",children:"Schedules"}),b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx(Fz,{status:i}),b.jsx("button",{onClick:()=>g(N=>!N),className:se("h-7 rounded-md px-3 text-xs font-medium",y?"bg-muted text-muted-foreground hover:bg-muted/80":"bg-brand text-white hover:bg-brand/90"),children:y?"Cancel":"+ New Schedule"})]})]}),y&&b.jsx(Qz,{onCreated:j,onCancel:()=>g(!1)}),v&&b.jsx("p",{className:"rounded-lg border border-yellow-500/30 bg-yellow-500/10 px-4 py-3 text-sm text-yellow-700 dark:text-yellow-400",children:v}),s&&b.jsx("p",{className:"rounded-lg border border-status-failed/30 bg-status-failed/10 px-4 py-3 text-sm text-status-failed",children:s}),!s&&t.length===0&&!y&&b.jsx("p",{className:"mt-8 text-center text-sm text-muted-foreground",children:"No schedules configured."}),b.jsx("div",{className:"grid gap-3",children:t.map(N=>b.jsx(Iz,{schedule:N,onToggle:E,onDelete:A,onShowHistory:p},N.id))}),h&&b.jsx(Gz,{schedule:h,onClose:()=>p(null)})]})}function Kz(t,r){const i=(r??Date.now())-t;if(i<1e3)return`${i}ms`;const a=Math.floor(i/1e3);if(a<60)return`${a}s`;const o=Math.floor(a/60);return o<60?`${o}m ${a%60}s`:`${Math.floor(o/60)}h ${o%60}m`}function Jz(t){const r=Math.floor((Date.now()-t)/1e3);if(r<60)return`${r}s ago`;const i=Math.floor(r/60);if(i<60)return`${i}m ago`;const a=Math.floor(i/60);return a<24?`${a}h ago`:`${Math.floor(a/24)}d ago`}function Pz(t){const r=t.lastIndexOf("/");return r!==-1?t.slice(r+1):t}const $z={running:"bg-green-500/20 text-green-400 border border-green-500/30",completed:"bg-blue-500/20 text-blue-400 border border-blue-500/30",failed:"bg-red-500/20 text-red-400 border border-red-500/30",cancelled:"bg-neutral-500/20 text-neutral-400 border border-neutral-500/30"};function oo(t){return t.status!=="running"}function Wz({status:t}){return b.jsxs("span",{className:se("inline-flex items-center gap-1.5 rounded px-1.5 py-0.5 text-xs font-medium",$z[t]),children:[t==="running"&&b.jsx("span",{className:"size-1.5 rounded-full bg-green-400 animate-pulse"}),t]})}function Iy({job:t,now:r,onCancel:i}){const[a,o]=k.useState(!1),[c,s]=k.useState(!1),[m,h]=k.useState(null),p=Kz(t.startedAt,t.status==="running"?r:t.endedAt),y=Jz(t.startedAt),g=a?hb:pb,v=async S=>{S.stopPropagation(),h(null),s(!0);try{await i(t.jobId)}catch(E){h(E instanceof Error?E.message:String(E))}finally{s(!1)}};return b.jsxs("div",{className:"rounded-lg border border-neutral-800 bg-neutral-900 overflow-hidden",children:[b.jsxs("div",{role:"button",tabIndex:0,onClick:()=>o(S=>!S),onKeyDown:S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),o(E=>!E))},className:"w-full text-left px-4 py-3 flex flex-col gap-2 hover:bg-neutral-800/50 transition-colors cursor-pointer",children:[b.jsxs("div",{className:"flex items-start justify-between gap-2",children:[b.jsxs("div",{className:"flex items-center gap-1.5 min-w-0",children:[b.jsx(g,{className:"size-3.5 shrink-0 text-neutral-500"}),b.jsx("span",{className:"text-sm font-medium text-neutral-100 truncate",children:t.label||t.jobId})]}),b.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[b.jsx(Wz,{status:t.status}),t.status==="running"&&b.jsxs("button",{type:"button",onClick:v,disabled:c,"aria-label":`Cancel job ${t.jobId}`,className:se("flex items-center gap-1 rounded px-1.5 py-0.5 text-xs","text-neutral-500 hover:text-red-400 hover:bg-red-500/10","disabled:opacity-40 transition-colors"),children:[b.jsx(td,{className:"size-3"}),c?"Cancelling…":"Cancel"]})]})]}),b.jsxs("div",{className:"flex items-center gap-3 text-xs text-neutral-500 pl-5",children:[b.jsx("span",{className:"font-mono bg-neutral-800 rounded px-1.5 py-0.5 text-neutral-300",children:Pz(t.model)}),b.jsx("span",{children:p}),b.jsx("span",{children:y})]}),(t.status==="failed"||t.status==="cancelled")&&t.stopReason&&b.jsxs("div",{className:"pl-5 text-xs text-neutral-500",children:[b.jsx("span",{className:"text-neutral-600",children:"reason:"})," ",b.jsx("span",{className:"font-mono text-neutral-400 line-clamp-2",title:t.stopReason,children:t.stopReason})]}),m&&b.jsx("p",{className:"pl-5 text-xs text-red-400",title:m,children:m.length>200?m.slice(0,200)+"…":m})]}),a&&b.jsxs("div",{className:"border-t border-neutral-800 px-4 py-3 bg-neutral-950 grid grid-cols-[auto_1fr] gap-x-4 gap-y-1.5 text-xs",children:[b.jsx(xn,{label:"Job ID",value:t.jobId,mono:!0}),b.jsx(xn,{label:"Subagent ID",value:t.subagentId,mono:!0}),b.jsx(xn,{label:"Model",value:t.model,mono:!0}),b.jsx(xn,{label:"Status",value:t.status}),b.jsx(xn,{label:"Started",value:new Date(t.startedAt).toLocaleString()}),t.endedAt!==void 0&&b.jsx(xn,{label:"Ended",value:new Date(t.endedAt).toLocaleString()}),b.jsx(xn,{label:"Duration",value:p}),t.parentSessionId&&b.jsx(xn,{label:"Parent session",value:t.parentSessionId,mono:!0}),t.stopReason&&b.jsx(xn,{label:"Stop reason",value:t.stopReason.length>200?t.stopReason.slice(0,200)+"…":t.stopReason,mono:!0}),b.jsx(xn,{label:"Prompt hash",value:t.promptHash,mono:!0}),b.jsx(xn,{label:"Schema version",value:String(t.schemaVersion)})]})]})}function xn({label:t,value:r,mono:i=!1}){return b.jsxs(b.Fragment,{children:[b.jsx("span",{className:"text-neutral-600 whitespace-nowrap",children:t}),b.jsx("span",{className:se("text-neutral-300 break-all",i&&"font-mono"),children:r})]})}function Xy({label:t,count:r}){return b.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-neutral-500 uppercase tracking-wider",children:[b.jsx("span",{children:t}),b.jsx("span",{className:"rounded-full bg-neutral-800 px-1.5 py-0.5 text-neutral-400 normal-case",children:r})]})}function e4(){const[t,r]=k.useState([]),[i,a]=k.useState(!0),[o,c]=k.useState(null),[s,m]=k.useState(()=>Date.now()),h=k.useRef(null),p=k.useCallback((E=!1)=>{E||a(!0),c(null),it("/api/bg-jobs").then(({jobs:A})=>r([...A].sort((j,N)=>N.startedAt-j.startedAt))).catch(A=>c(A instanceof Error?A.message:String(A))).finally(()=>{E||a(!1)})},[]);k.useEffect(()=>{p()},[p]),k.useEffect(()=>{const E=t.some(A=>!oo(A));return E&&!h.current&&(h.current=setInterval(()=>p(!0),5e3)),!E&&h.current&&(clearInterval(h.current),h.current=null),()=>{h.current&&(clearInterval(h.current),h.current=null)}},[t,p]),k.useEffect(()=>{if(!t.some(j=>!oo(j)))return;const A=setInterval(()=>m(Date.now()),1e3);return()=>clearInterval(A)},[t]);const y=k.useCallback(async E=>{await it(`/api/bg-jobs/${encodeURIComponent(E)}/cancel`,{method:"POST"}),r(A=>A.map(j=>j.jobId===E?{...j,status:"cancelled"}:j))},[]),g=t.filter(E=>E.status==="running"),v=t.filter(E=>oo(E)),S=t.some(E=>!oo(E));return b.jsxs("div",{className:"flex flex-col gap-4",children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-neutral-200",children:[b.jsx(mb,{className:"size-4 text-neutral-400"}),"Background Jobs",S&&b.jsx("span",{className:"text-xs font-normal text-neutral-500",children:"(auto-refreshing)"})]}),b.jsxs("button",{onClick:()=>p(),disabled:i,className:"flex items-center gap-1.5 rounded px-2 py-1 text-xs text-neutral-400 hover:text-neutral-200 hover:bg-neutral-800 disabled:opacity-50 transition-colors",children:[b.jsx(xk,{className:se("size-3",i&&"animate-spin")}),"Refresh"]})]}),o&&b.jsx("p",{className:"rounded border border-red-900/40 bg-red-950/30 px-3 py-2 text-xs text-red-400",children:o}),!i&&t.length===0&&!o&&b.jsx("p",{className:"text-sm text-neutral-500 text-center py-8",children:"No background jobs"}),g.length>0&&b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsx(Xy,{label:"Running",count:g.length}),g.map(E=>b.jsx(Iy,{job:E,now:s,onCancel:y},E.jobId))]}),v.length>0&&b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsx(Xy,{label:"Settled",count:v.length}),v.map(E=>b.jsx(Iy,{job:E,now:s,onCancel:y},E.jobId))]})]})}function pa({icon:t,title:r,children:i}){return b.jsxs("section",{className:"space-y-3",children:[b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx(t,{className:"size-4 text-muted-foreground"}),b.jsx("h2",{className:"text-sm font-semibold",children:r})]}),b.jsx("div",{className:"rounded-xl border border-border bg-card",children:i})]})}function Yt({label:t,value:r,mono:i=!1,last:a=!1}){return b.jsxs("div",{className:se("flex items-center justify-between gap-4 px-4 py-2.5",!a&&"border-b border-border"),children:[b.jsx("span",{className:"shrink-0 text-xs text-muted-foreground",children:t}),b.jsx("span",{className:se("min-w-0 truncate text-right text-xs",i?"font-mono text-zinc-300":"text-zinc-200"),children:r})]})}function t4({model:t,last:r}){return b.jsxs("div",{className:se("flex items-center justify-between gap-4 px-4 py-2.5",!r&&"border-b border-border"),children:[b.jsx("span",{className:"text-xs text-zinc-200",children:t.label}),b.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:t.id})]})}const Qy=[{keys:"⌘K",description:"Open command palette"},{keys:"⌘1",description:"Go to Sessions"},{keys:"⌘2",description:"Go to Memory"},{keys:"⌘3",description:"Go to Schedules"},{keys:"⌘4",description:"Go to Background Jobs"}];function n4({keys:t,description:r,last:i}){return b.jsxs("div",{className:se("flex items-center justify-between gap-4 px-4 py-2.5",!i&&"border-b border-border"),children:[b.jsx("span",{className:"text-xs text-zinc-200",children:r}),b.jsx("kbd",{className:"rounded border border-border bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground",children:t})]})}function l4({status:t}){return t?b.jsxs("span",{className:"flex items-center gap-1.5",children:[b.jsx("span",{className:se("size-1.5 rounded-full",t.running?"animate-pulse bg-status-done":"bg-status-failed")}),b.jsx("span",{className:se("text-xs",t.running?"text-zinc-200":"text-muted-foreground"),children:t.running?`Running${t.tasks!=null?` · ${t.tasks} task${t.tasks!==1?"s":""}`:""}`:"Stopped"})]}):b.jsx("span",{className:"text-xs text-muted-foreground",children:"–"})}function r4(){var o;const[t,r]=k.useState({config:null,models:null,daemon:null,configError:null,modelsError:null,daemonError:null});k.useEffect(()=>{let c=!1;const s=m=>m instanceof Error?m.message:"Failed to load";return Promise.all([it("/api/config").then(m=>({ok:!0,config:m}),m=>({ok:!1,error:s(m)})),it("/api/models").then(m=>({ok:!0,models:m.models}),m=>({ok:!1,error:s(m)})),it("/api/daemon/status").then(m=>({ok:!0,daemon:m}),m=>({ok:!1,error:s(m)}))]).then(([m,h,p])=>{c||r({config:m.ok?m.config:null,configError:m.ok?null:m.error,models:h.ok?h.models:null,modelsError:h.ok?null:h.error,daemon:p.ok?p.daemon:null,daemonError:p.ok?null:p.error})}).catch(()=>{}),()=>{c=!0}},[]);const i=t.config,a=b.jsx("span",{className:"text-xs text-muted-foreground",children:"Loading…"});return b.jsxs("div",{className:"flex flex-1 flex-col gap-6 overflow-y-auto p-4",children:[b.jsxs(pa,{icon:gb,title:"About",children:[b.jsx(Yt,{label:"AFK version",value:i?i.version:a,mono:!0}),b.jsx(Yt,{label:"Node.js",value:i?i.nodeVersion:a,mono:!0}),b.jsx(Yt,{label:"App",value:"AFK Dashboard",last:!0})]}),b.jsxs(pa,{icon:ok,title:"Model",children:[b.jsx(Yt,{label:"Default model",value:i?i.model:a,mono:!0}),t.modelsError?b.jsx("div",{className:"px-4 py-3 text-xs text-status-failed",children:t.modelsError}):t.models===null?b.jsx(Yt,{label:"Available tiers",value:a,last:!0}):t.models.length===0?b.jsx(Yt,{label:"Available tiers",value:"None listed",last:!0}):t.models.map((c,s)=>{var m;return b.jsx(t4,{model:c,last:s===(((m=t.models)==null?void 0:m.length)??0)-1},c.id)})]}),b.jsxs(pa,{icon:ck,title:"Paths",children:[b.jsx(Yt,{label:"AFK home",value:i?i.afkHome:a,mono:!0}),b.jsx(Yt,{label:"State dir",value:i?i.stateDir:a,mono:!0}),b.jsx(Yt,{label:"Config dir",value:i?i.configDir:a,mono:!0,last:!0})]}),b.jsxs(pa,{icon:fk,title:"Web Server",children:[b.jsx(Yt,{label:"Host",value:i?i.webHost:a,mono:!0}),b.jsx(Yt,{label:"Port",value:i?String(i.webPort):a,mono:!0}),b.jsx(Yt,{label:"Daemon",value:b.jsx(l4,{status:t.daemon})}),!t.daemonError&&b.jsx(Yt,{label:"Tasks scheduled",value:((o=t.daemon)==null?void 0:o.tasks)!=null?String(t.daemon.tasks):"–",last:!0}),t.daemonError&&b.jsx(Yt,{label:"Daemon error",value:t.daemonError,last:!0})]}),b.jsx(pa,{icon:dk,title:"Keyboard Shortcuts",children:Qy.map((c,s)=>b.jsx(n4,{keys:c.keys,description:c.description,last:s===Qy.length-1},c.keys))})]})}function i4({query:t,commands:r,onSelect:i,visible:a}){const[o,c]=k.useState(0),s=k.useRef(null),m=r.filter(h=>h.name.startsWith(t)).slice(0,8);return k.useEffect(()=>{c(0)},[t]),k.useEffect(()=>{var p;const h=(p=s.current)==null?void 0:p.children[o];h==null||h.scrollIntoView({block:"nearest"})},[o]),!a||m.length===0?null:b.jsx("ul",{ref:s,role:"listbox","aria-label":"Slash commands",className:se("absolute bottom-full left-0 mb-1 w-full max-h-56 overflow-y-auto","rounded-lg border border-border bg-popover shadow-lg z-50","text-sm"),children:m.map((h,p)=>b.jsxs("li",{role:"option","aria-selected":p===o,className:se("flex items-baseline gap-2 px-3 py-2 cursor-pointer select-none",p===o?"bg-accent text-accent-foreground":"hover:bg-accent/50"),onMouseEnter:()=>c(p),onMouseDown:y=>{y.preventDefault(),i(h.name)},children:[b.jsxs("span",{className:"font-mono font-semibold shrink-0",children:["/",h.name]}),b.jsx("span",{className:"text-muted-foreground truncate",children:h.summary})]},h.name))})}function a4(t,r,i,a,o,c,s){return!r||i===0?!1:t.key==="ArrowDown"?(o((a+1)%i),!0):t.key==="ArrowUp"?(o((a-1+i)%i),!0):t.key==="Enter"?(c(a),!0):t.key==="Escape"?(s(),!0):!1}function u4(t){const r=t.trim();return r?r.startsWith("/")||r.startsWith("./")||r.startsWith("~/")||/^[\w.]/.test(r):!1}function o4({onInsert:t}){const[r,i]=k.useState(!1),[a,o]=k.useState(""),[c,s]=k.useState(!1),m=k.useRef(null),h=k.useRef(null),p=k.useRef(null),y=k.useCallback(()=>{i(!1),s(!1),o("")},[]),g=k.useCallback(()=>{var S;const v=a.trim();if(!u4(v)){s(!0),(S=m.current)==null||S.focus();return}t(`@${v}`),y()},[a,t,y]);return k.useEffect(()=>{r&&requestAnimationFrame(()=>{var v;return(v=m.current)==null?void 0:v.focus()})},[r]),k.useEffect(()=>{if(!r)return;function v(S){const E=S.target;h.current&&!h.current.contains(E)&&p.current&&!p.current.contains(E)&&y()}return document.addEventListener("click",v,{capture:!0}),()=>document.removeEventListener("click",v,{capture:!0})},[r,y]),b.jsxs("div",{className:"relative",children:[b.jsx("button",{ref:p,type:"button",onClick:()=>r?y():i(!0),"aria-label":"Insert file reference","aria-expanded":r,className:se("flex h-8 w-8 items-center justify-center rounded-md text-sm","transition-colors hover:bg-accent hover:text-accent-foreground",r&&"bg-accent text-accent-foreground"),title:"Insert @file reference",children:b.jsx(sk,{className:"h-4 w-4"})}),r&&b.jsxs("div",{ref:h,role:"dialog","aria-label":"Insert file path",className:se("absolute bottom-full left-0 mb-2 w-72 rounded-lg border","bg-popover p-3 shadow-lg animate-fade-in"),children:[b.jsxs("p",{className:"mb-2 text-xs text-muted-foreground",children:["Type a file path. ",b.jsx("code",{className:"text-[10px]",children:"@~/file.ts"})," or"," ",b.jsx("code",{className:"text-[10px]",children:"@src/file.ts"})]}),b.jsxs("div",{className:"flex gap-2",children:[b.jsx("input",{ref:m,type:"text",value:a,onChange:v=>{o(v.target.value),s(!1)},onKeyDown:v=>{v.key==="Enter"&&(v.preventDefault(),g()),v.key==="Escape"&&y()},placeholder:"src/foo.ts or ~/file.ts",autoComplete:"off",spellCheck:!1,className:se("flex-1 rounded-md border bg-secondary px-2 py-1 text-sm","placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring",c&&"border-destructive")}),b.jsx("button",{type:"button",onClick:g,className:se("rounded-md bg-primary px-3 py-1 text-sm font-medium","text-primary-foreground hover:bg-primary/90"),children:"Add"})]}),c&&b.jsx("p",{className:"mt-1 text-xs text-destructive",children:"Enter a valid file path."})]})]})}const s4=[{id:"sonnet",label:"Sonnet"},{id:"haiku",label:"Haiku"},{id:"opus",label:"Opus"}],c4="sonnet";function f4({onSelect:t,current:r,className:i}){const[a,o]=k.useState(s4),c=k.useRef(!1);k.useEffect(()=>{let h=!1;return it("/api/models").then(p=>{!h&&p.models.length>0&&o(p.models)}).catch(()=>{}),()=>{h=!0}},[]);const s=r??c4;k.useEffect(()=>{c.current||(c.current=!0,t(s))},[t,s]);const m=k.useCallback(h=>{t(h.target.value)},[t]);return b.jsxs("div",{className:se("relative inline-flex items-center",i),children:[b.jsx("select",{value:s,onChange:m,"aria-label":"Model",className:se("appearance-none rounded-md border bg-secondary pl-2 pr-7 py-1","text-xs font-medium text-secondary-foreground","cursor-pointer focus:outline-none focus:ring-1 focus:ring-ring"),children:a.map(h=>b.jsx("option",{value:h.id,children:h.label},h.id))}),b.jsx(hb,{className:"pointer-events-none absolute right-1.5 h-3 w-3 text-muted-foreground"})]})}function d4({queue:t}){const{entries:r,moveItemUp:i,moveItemDown:a,removeItem:o,editItem:c}=t;return r.length===0?null:b.jsxs("div",{className:"flex flex-col gap-1 border-b border-border/50 px-3 py-2",children:[b.jsxs("p",{className:"text-[10px] font-medium uppercase tracking-wider text-muted-foreground",children:["Queued (",r.length,")"]}),r.map((s,m)=>b.jsx(m4,{text:s.text,isFirst:m===0,isLast:m===r.length-1,onMoveUp:()=>i(m),onMoveDown:()=>a(m),onRemove:()=>o(m),onEdit:h=>c(m,h)},s.id))]})}function m4({text:t,isFirst:r,isLast:i,onMoveUp:a,onMoveDown:o,onRemove:c,onEdit:s}){const[m,h]=k.useState(!1),[p,y]=k.useState(t),g=k.useRef(null);k.useEffect(()=>{var A;m&&((A=g.current)==null||A.focus())},[m]);const v=k.useCallback(()=>{y(t),h(!0)},[t]),S=k.useCallback(()=>{const A=p.trim();A&&A!==t&&s(A),h(!1)},[p,t,s]),E=k.useCallback(()=>{h(!1),y(t)},[t]);return b.jsxs("div",{className:se("group flex items-center gap-1.5 rounded-md border border-border/50","bg-secondary/50 px-2 py-1 text-sm animate-fade-in"),children:[m?b.jsx("input",{ref:g,type:"text",value:p,onChange:A=>y(A.target.value),onKeyDown:A=>{A.key==="Enter"&&S(),A.key==="Escape"&&E()},onBlur:S,className:se("min-w-0 flex-1 bg-transparent text-sm","focus:outline-none")}):b.jsx("span",{className:"min-w-0 flex-1 truncate text-foreground/80",children:t}),b.jsxs("div",{className:"flex shrink-0 items-center gap-0.5 opacity-60 group-hover:opacity-100",children:[m?b.jsx(ga,{label:"Confirm edit",onClick:S,children:b.jsx(lk,{className:"h-3 w-3"})}):b.jsx(ga,{label:"Edit",onClick:v,children:b.jsx(yk,{className:"h-3 w-3"})}),b.jsx(ga,{label:"Move up",onClick:a,disabled:r,children:b.jsx(WS,{className:"h-3 w-3"})}),b.jsx(ga,{label:"Move down",onClick:o,disabled:i,children:b.jsx($S,{className:"h-3 w-3"})}),b.jsx(ga,{label:"Remove",onClick:c,destructive:!0,children:b.jsx(td,{className:"h-3 w-3"})})]})]})}function ga({label:t,onClick:r,disabled:i,destructive:a,children:o}){return b.jsx("button",{type:"button",onClick:r,disabled:i,"aria-label":t,title:t,className:se("flex h-5 w-5 items-center justify-center rounded","transition-colors",i?"cursor-not-allowed opacity-30":a?"hover:bg-destructive/20 hover:text-destructive":"hover:bg-accent hover:text-accent-foreground"),children:o})}let ba=null;function h4(){ba=null}async function p4(){return ba||(ba=(await it("/api/commands")).commands,ba)}function g4(t){return t.startsWith("/")&&t.indexOf(" ")===-1?t.slice(1):null}function y4({sessionId:t,sessionMode:r,isBusy:i,queue:a,onModelSelect:o,currentModel:c}){const[s,m]=k.useState(""),[h,p]=k.useState(!1),[y,g]=k.useState([]),[v,S]=k.useState(0),E=k.useRef(null),A=r==="readonly",j=g4(s),N=j!==null&&y.length>0,L=N?y.filter(Y=>Y.name.startsWith(j)).slice(0,8):[];k.useEffect(()=>{const Y=()=>{document.visibilityState==="visible"&&h4()};return document.addEventListener("visibilitychange",Y),()=>document.removeEventListener("visibilitychange",Y)},[]),k.useEffect(()=>{const Y=E.current;if(!Y)return;Y.style.height="auto";const B=(parseInt(getComputedStyle(Y).lineHeight)||20)*5;Y.style.height=`${Math.min(Y.scrollHeight,B)}px`},[s]),k.useEffect(()=>{j!==null&&p4().then(g).catch(()=>{})},[j]);const R=k.useCallback(async()=>{const Y=s.trim();if(!(!Y||h||A)){p(!0);try{await it(`/api/sessions/${t}/prompt`,{method:"POST",body:JSON.stringify({text:Y})}),m("")}catch{}finally{p(!1)}}},[s,h,A,t]),W=k.useCallback(async()=>{try{await it(`/api/sessions/${t}/interrupt`,{method:"POST"})}catch{}},[t]),ee=k.useCallback(Y=>{var ae;m(`/${Y} `),S(0),(ae=E.current)==null||ae.focus()},[]),_=k.useCallback(Y=>{if(a4(Y,N,L.length,v,S,B=>{const re=L[B];re&&ee(re.name)},()=>m(B=>B))){Y.preventDefault();return}if(Y.key==="Enter"&&!Y.shiftKey)if(Y.preventDefault(),i&&a){const B=s.trim();B&&(a.enqueue(B),m(""))}else R()},[N,L,v,ee,R,i,s,a]),X=k.useCallback(Y=>{const ae=E.current;if(!ae){m(H=>H+" "+Y+" ");return}const B=ae.selectionStart??ae.value.length,re=ae.selectionEnd??B,P=ae.value.slice(0,B),pe=ae.value.slice(re),oe=P.length>0&&!/\s$/.test(P)?" ":"",ne=P+oe+Y+" "+pe;m(ne),requestAnimationFrame(()=>{const H=B+oe.length+Y.length+1;ae.setSelectionRange(H,H),ae.focus()})},[]);return b.jsxs("div",{className:se("relative flex flex-col gap-2",A&&"opacity-50"),children:[a&&b.jsx(d4,{queue:a}),b.jsx(i4,{query:j??"",commands:y,onSelect:ee,visible:N}),b.jsxs("div",{className:"flex items-end gap-2",children:[b.jsxs("div",{className:"flex shrink-0 items-center gap-1",children:[b.jsx(o4,{onInsert:X}),o&&b.jsx(f4,{onSelect:o,current:c})]}),b.jsx("textarea",{ref:E,rows:1,value:s,disabled:A||h,onChange:Y=>m(Y.target.value),onKeyDown:_,placeholder:A?"Read-only session":"Send a message… (/ for commands)",className:se("flex-1 resize-none rounded-lg border border-input bg-background","px-3 py-2 text-sm leading-5 shadow-sm","placeholder:text-muted-foreground","focus:outline-none focus:ring-2 focus:ring-ring","disabled:cursor-not-allowed")}),i?b.jsx("button",{onClick:()=>void W(),title:"Stop",className:"shrink-0 flex items-center justify-center h-9 w-9 rounded-lg bg-destructive text-destructive-foreground hover:bg-destructive/90 transition-colors",children:b.jsx(bb,{className:"h-4 w-4 fill-current"})}):b.jsx("button",{onClick:()=>void R(),disabled:!s.trim()||h||A,title:"Send",className:se("shrink-0 flex items-center justify-center h-9 w-9 rounded-lg","bg-primary text-primary-foreground hover:bg-primary/90 transition-colors","disabled:opacity-40 disabled:cursor-not-allowed"),children:b.jsx(vk,{className:"h-4 w-4"})})]})]})}async function b4(t){await it("/api/approve",{method:"POST",body:JSON.stringify(t)})}function x4({approval:t,onAnswered:r}){const{id:i,request:a}=t,[o,c]=k.useState(typeof a.questionDefault=="string"?a.questionDefault:""),[s,m]=k.useState(!1),[h,p]=k.useState(null),y=async(v,S)=>{m(!0),p(null);try{await b4({requestId:i,response:{action:v,content:S}}),r()}catch{p("Failed to submit — try again")}finally{m(!1)}},g=a.type??"confirm";return b.jsxs("div",{className:se("rounded-lg border-2 border-yellow-500/60 bg-yellow-500/5 p-3 text-sm","flex flex-col gap-2"),children:[b.jsxs("div",{className:"flex items-start gap-2",children:[b.jsx(Sk,{className:"h-4 w-4 text-yellow-500 mt-0.5 shrink-0"}),b.jsxs("div",{className:"flex-1 min-w-0",children:[a.title&&b.jsx("p",{className:"font-semibold text-foreground",children:a.title}),a.message&&b.jsx("p",{className:"text-muted-foreground",children:a.message}),a.description&&b.jsx("p",{className:"text-muted-foreground/80 text-xs mt-0.5",children:a.description})]}),b.jsx("button",{onClick:()=>void y("decline"),disabled:s,className:"shrink-0 text-muted-foreground hover:text-foreground",title:"Dismiss",children:b.jsx(td,{className:"h-4 w-4"})})]}),g==="text"&&b.jsxs("div",{className:"flex gap-2",children:[b.jsx("input",{type:"text",value:o,onChange:v=>c(v.target.value),disabled:s,className:se("flex-1 rounded border border-input bg-background px-2 py-1 text-sm","focus:outline-none focus:ring-1 focus:ring-ring")}),b.jsx(so,{onClick:()=>void y("accept",{text:o}),disabled:s,label:"Submit",variant:"primary"})]}),g==="confirm"&&b.jsxs("div",{className:"flex gap-2 justify-end",children:[b.jsx(so,{onClick:()=>void y("decline"),disabled:s,label:"No",variant:"ghost"}),b.jsx(so,{onClick:()=>void y("accept"),disabled:s,label:"Yes",variant:"primary"})]}),(g==="choice"||g==="multi_choice")&&b.jsx("div",{className:"flex flex-wrap gap-1.5",children:(a.choices??[]).map(v=>b.jsx(so,{onClick:()=>void y("accept",{choice:v}),disabled:s,label:v,variant:"outline"},v))}),h&&b.jsx("p",{className:"text-xs text-red-400",children:h})]})}function so({onClick:t,disabled:r,label:i,variant:a}){return b.jsx("button",{onClick:t,disabled:r,className:se("rounded px-3 py-1 text-xs font-medium transition-colors disabled:opacity-50",a==="primary"&&"bg-primary text-primary-foreground hover:bg-primary/90",a==="ghost"&&"text-muted-foreground hover:text-foreground hover:bg-accent",a==="outline"&&"border border-border hover:bg-accent"),children:i})}function v4({approvals:t,onDismiss:r}){const[i,a]=k.useState(new Set),o=t.filter(s=>!i.has(s.id));if(o.length===0)return null;const c=s=>{a(m=>new Set([...m,s])),r==null||r()};return b.jsx("div",{className:"flex flex-col gap-2",children:o.map(s=>b.jsx(x4,{approval:s,onAnswered:()=>c(s.id)},s.id))})}function S4({open:t,onClose:r,children:i}){return b.jsxs(b.Fragment,{children:[b.jsx("div",{className:se("fixed inset-0 z-40 bg-black/50 transition-opacity duration-200 md:hidden",t?"opacity-100 pointer-events-auto":"opacity-0 pointer-events-none"),onClick:r,"aria-hidden":"true"}),b.jsx("div",{className:se("fixed inset-y-0 left-0 z-50 w-64 bg-sidebar transition-transform duration-200 ease-in-out md:hidden",t?"translate-x-0":"-translate-x-full"),role:"dialog","aria-modal":"true",children:i})]})}function k4({onClick:t,className:r}){return b.jsx("button",{onClick:t,className:se("inline-flex items-center justify-center rounded-md p-2 text-muted-foreground hover:bg-muted hover:text-foreground md:hidden",r),"aria-label":"Open sidebar",children:b.jsx("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:b.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})})}const w4=k.createContext(null),E4={success:"bg-green-600 text-white",error:"bg-red-600 text-white",info:"bg-muted text-muted-foreground border border-border"};function C4({children:t}){const[r,i]=k.useState([]),a=k.useRef(0),o=k.useCallback((c,s="info")=>{const m=++a.current;i(h=>[...h.slice(-2),{id:m,message:c,type:s}]),setTimeout(()=>{i(h=>h.filter(p=>p.id!==m))},3e3)},[]);return b.jsxs(w4.Provider,{value:{toast:o},children:[t,b.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col gap-2 pointer-events-none","aria-live":"polite","aria-label":"Notifications",children:r.map(c=>b.jsx("div",{className:se("pointer-events-auto max-w-sm rounded-lg px-4 py-3 text-sm shadow-lg animate-slide-in-right",E4[c.type]),children:c.message},c.id))})]})}const T4=1e4;function A4(){const[t,r]=k.useState([]),[i,a]=k.useState(!0),[o,c]=k.useState(null),s=k.useRef(void 0),m=k.useCallback(async()=>{try{const h=await it("/api/sessions");r(N4(h.sessions)),c(null)}catch(h){c(h instanceof Error?h.message:"Failed to fetch sessions")}finally{a(!1)}},[]);return k.useEffect(()=>(m(),s.current=setInterval(()=>void m(),T4),()=>clearInterval(s.current)),[m]),{sessions:t,loading:i,error:o,refresh:m}}function N4(t){return[...t].sort((r,i)=>{const a=Zy(r)?1:0,o=Zy(i)?1:0;if(a!==o)return o-a;const c=r.updatedAt?new Date(r.updatedAt).getTime():0;return(i.updatedAt?new Date(i.updatedAt).getTime():0)-c})}function Zy(t){return t.mode==="live"||t.alive===!0}const z4=1e3;function j4(){const[t,r]=k.useState([]),i=k.useRef(void 0),a=k.useCallback(async()=>{try{const c=await it("/api/pending");r(c.pending)}catch{}},[]);k.useEffect(()=>(a(),i.current=setInterval(()=>void a(),z4),()=>clearInterval(i.current)),[a]);const o=new Set(t.map(c=>c.sessionId).filter(c=>!!c));return{approvals:t,pendingSessionIds:o}}const M4=15e3,D4=500;function O4(t){const i=t.replace(/\r\n/g,`
299
- `).split(`
300
-
301
- `),a=i.pop()??"",o=[];for(const c of i){if(c.trim()==="")continue;let s,m;for(const h of c.split(`
302
- `))h.startsWith("id: ")?s=h.slice(4):h.startsWith("id:")?s=h.slice(3).trimStart():h.startsWith("data: ")?m=h.slice(6):h.startsWith("data:")&&(m=h.slice(5).trimStart());m!==void 0&&o.push({id:s,data:m})}return{events:o,remainder:a}}function _4(t){return typeof t=="object"&&t!==null&&t.end===!0}function R4(t){const[r,i]=k.useState([]),[a,o]=k.useState("connecting"),[c,s]=k.useState(null),m=k.useRef(void 0),h=k.useRef(void 0),p=k.useRef(0),y=k.useRef(!1);return k.useEffect(()=>{if(t===null){i([]),o("connecting"),s(null);return}const g=t;i([]),s(null),y.current=!1,h.current=void 0,p.current=0;async function v(){if(y.current)return;o(p.current===0?"connecting":"reconnecting");let S=!1;const E=new AbortController;m.current=E;const A=w0(),j={};A&&(j.authorization=`Bearer ${A}`),h.current!==void 0&&(j["last-event-id"]=h.current);try{const R=await fetch(`/api/sessions/${encodeURIComponent(g)}/stream`,{headers:j,signal:E.signal});if(!R.ok){if(R.status===401||R.status===403||R.status===404){y.current=!0;const X=R.status===401?"unauthorized":R.status===403?"forbidden":"not-found";s(X),o("closed");return}throw new Error(`stream ${R.status}`)}if(R.body===null)throw new Error("stream: no body");p.current=0,o("open");const W=R.body.getReader(),ee=new TextDecoder;let _="";e:for(;;){const{done:X,value:Y}=await W.read();if(y.current||X)break;_+=ee.decode(Y,{stream:!0});const{events:ae,remainder:B}=O4(_);_=B;for(const re of ae){re.id!==void 0&&(h.current=re.id);let P;try{P=JSON.parse(re.data)}catch{continue}if(_4(P)){S=!0,y.current=!0;break e}i(pe=>[...pe,P])}}}catch(R){if(R instanceof DOMException&&R.name==="AbortError")return}if(y.current){S&&o("ended");return}p.current+=1;const N=.75+Math.random()*.5,L=Math.min(D4*2**(p.current-1),M4)*N;setTimeout(()=>void v(),L)}return v(),()=>{var S;y.current=!0,(S=m.current)==null||S.abort(),o("closed")}},[t]),{events:r,status:a,error:c}}let Jf=0;function L4(){Jf=0}function wt(t){return Jf+=1,`${t}_${Jf}`}function We(t){return typeof t=="string"?t:void 0}function zn(t){return typeof t=="number"?t:void 0}function U4(t,r,i){if(typeof t.kind=="string")switch(t.kind){case"user":return{kind:"user",id:wt("u"),text:We(t.text)??""};case"assistant":return{kind:"assistant",id:wt("a"),text:We(t.text)??""};case"thinking":return{kind:"thinking",id:wt("th"),text:We(t.text)??""};case"tool":{const a=We(t.input)??"";if(a.trim()==="…")return;const o=We(t.toolUseId),c={kind:"tool",id:wt("t"),name:We(t.toolName)??"tool",toolUseId:o,inputPreview:a,status:"ok",outputUnavailable:!0};return r!==void 0&&o!==void 0&&r.set(o,c),c}case"tool_result":{const a=We(t.toolUseId),o=We(t.content)??We(t.output)??"",c=zn(t.durationMs),s=We(t.diff);if(r!==void 0&&a!==void 0){const m=r.get(a);if(m!==void 0){m.output=o,m.outputUnavailable=!1,m.status="ok",c!==void 0&&(m.durationMs=c),s!==void 0&&(m.diff=s);return}}return{kind:"notice",id:wt("n"),text:`tool result: ${o.slice(0,80)}`}}case"tool_error":{const a=We(t.content)??"",o=a.split(`
303
- `,1)[0]??"";return{kind:"tool",id:wt("t"),name:We(t.toolName)??"error",inputPreview:o,status:"error",output:a}}case"error":return{kind:"error",id:wt("e"),message:We(t.message)??"error"};case"done":{const a=t.costUsd,o=t.durationMs,c=[];typeof a=="number"&&c.push(`$${a.toFixed(4)}`),typeof o=="number"&&c.push(`${(o/1e3).toFixed(1)}s`);const s=zn(t.inputTokens),m=zn(t.outputTokens),h=zn(t.cacheReadTokens);if(s!==void 0||m!==void 0){const p=[];s!==void 0&&p.push(`${s}in`),m!==void 0&&p.push(`${m}out`),h!==void 0&&p.push(`${h}cache`),c.push(p.join("/"))}return{kind:"notice",id:wt("n"),text:c.length?`turn complete · ${c.join(" · ")}`:"turn complete"}}case"paused":return{kind:"notice",id:wt("n"),text:"paused — usage limit"};case"resumed":return{kind:"notice",id:wt("n"),text:"resumed"};case"tool_activity":{const a=zn(t.activeCount)??0;if(a===0)return{kind:"notice",id:wt("n"),text:"tool wave complete"};const o=a===1?"tool":"tools";return{kind:"notice",id:wt("n"),text:`Running ${a} ${o} in parallel`}}case"rate_limit":{const a=zn(t.retryAfterMs),o=a!==void 0?` (retrying in ${Math.ceil(a/1e3)}s)`:"";return{kind:"notice",id:wt("n"),text:`Rate limited${o}`}}case"progress":return{kind:"notice",id:wt("n"),text:We(t.message)??"progress"};case"subagent_lifecycle":{const a=We(t.subagentId)??"subagent",o=We(t.status)??"unknown",c=We(t.agentType),s=c?`${c} (${a.slice(0,8)})`:a.slice(0,12);if(i!==void 0){const h=i.get(a);if(h!==void 0){h.status=o;const p=zn(t.durationMs);p!==void 0&&(h.durationMs=p);const y=zn(t.totalCostUsd);y!==void 0&&(h.totalCostUsd=y);return}}const m={kind:"subagent",id:wt("sa"),subagentId:a,parentId:We(t.parentId),status:o,label:s,model:We(t.model),agentType:We(t.agentType),durationMs:zn(t.durationMs),totalCostUsd:zn(t.totalCostUsd),promptHead:We(t.promptHead)};return i==null||i.set(a,m),m}case"background_job":{const a=We(t.jobId)??"job",o=We(t.status)??"unknown",c=We(t.label)??a.slice(0,12);return{kind:"bg_job",id:wt("bj"),jobId:a,status:o,label:c}}case"plan_mode":{const a=We(t.mode)??"default";return{kind:"notice",id:wt("n"),text:`Switched to ${a} mode`}}default:return}}function B4(t,r){if(r.kind!=="done")return t;const i=r.costUsd,a=r.durationMs,o=r.inputTokens,c=r.outputTokens,s=r.cacheReadTokens;return{costUsd:t.costUsd+(typeof i=="number"?i:0),durationMs:t.durationMs+(typeof a=="number"?a:0),turns:t.turns+1,inputTokens:(t.inputTokens??0)+(typeof o=="number"?o:0),outputTokens:(t.outputTokens??0)+(typeof c=="number"?c:0),cacheReadTokens:(t.cacheReadTokens??0)+(typeof s=="number"?s:0)}}const wf={costUsd:0,durationMs:0,turns:0};function H4(t){const{events:r,status:i,error:a}=R4(t),[o,c]=k.useState([]),[s,m]=k.useState(wf),[h,p]=k.useState(!1),[y,g]=k.useState(0),v=k.useRef(new Map),S=k.useRef(new Map);k.useEffect(()=>{L4(),v.current=new Map,S.current=new Map,c([]),m(wf),p(!1),g(0)},[t]);const E=k.useRef(0);return k.useEffect(()=>{const A=r.slice(E.current);if(A.length===0)return;E.current=r.length;const j=v.current,N=[];let L=wf,R=!1,W=null,ee=0;for(const _ of A){const X=_,Y=X.record??_,ae=X.replay===!0;Y.kind==="user"?W=!0:(Y.kind==="done"||Y.kind==="error")&&(W=!1),Y.kind==="done"&&!ae&&(ee+=1),L=B4(L,Y);const B=U4(Y,j,S.current);B!==void 0?N.push(B):(Y.kind==="tool_result"||Y.kind==="subagent_lifecycle")&&(R=!0)}N.length>0?c(_=>[..._,...N]):R&&c(_=>[..._]),(L.costUsd!==0||L.durationMs!==0||L.turns!==0)&&m(_=>({costUsd:_.costUsd+L.costUsd,durationMs:_.durationMs+L.durationMs,turns:_.turns+L.turns,inputTokens:(_.inputTokens??0)+(L.inputTokens??0),outputTokens:(_.outputTokens??0)+(L.outputTokens??0),cacheReadTokens:(_.cacheReadTokens??0)+(L.cacheReadTokens??0)})),W!==null&&p(W),ee>0&&g(_=>_+ee)},[r]),k.useEffect(()=>{E.current=0},[t]),{items:o,totals:s,status:i,error:a,turnActive:h,liveTurns:y}}const q4=50;function V4(){const t=k.useRef(null),[r,i]=k.useState(!0);k.useEffect(()=>{const o=t.current;if(o===null)return;function c(){if(o===null)return;const s=o.scrollHeight-o.scrollTop-o.clientHeight;i(s<=q4)}return o.addEventListener("scroll",c,{passive:!0}),()=>o.removeEventListener("scroll",c)},[]);const a=k.useCallback(()=>{const o=t.current;o!==null&&r&&(o.scrollTop=o.scrollHeight)},[r]);return{containerRef:t,scrollToBottom:a,isPinned:r}}function To(t,r){return Number.isInteger(r)&&r>=0&&r<t.length}function Y4(t,r){if(!To(t,r)||r===0)return t.slice();const i=t.slice(),a=i[r-1],o=i[r];return a===void 0||o===void 0?t.slice():(i[r-1]=o,i[r]=a,i)}function G4(t,r){if(!To(t,r)||r===t.length-1)return t.slice();const i=t.slice(),a=i[r+1],o=i[r];return a===void 0||o===void 0?t.slice():(i[r+1]=o,i[r]=a,i)}function F4(t,r){if(!To(t,r))return t.slice();const i=t.slice();return i.splice(r,1),i}function I4(t,r,i){if(!To(t,r))return t.slice();const a=t.slice();return a[r]={...a[r],text:i},a}function X4({submit:t,isLive:r}){const[i,a]=k.useState([]),o=k.useRef(!1),c=k.useRef(0),s=k.useRef([]),m=k.useCallback(E=>{const A=c.current++,j=[...s.current,{id:A,text:E}];s.current=j,a(j)},[]),h=k.useCallback(E=>{const A=Y4(s.current,E);s.current=A,a(A)},[]),p=k.useCallback(E=>{const A=G4(s.current,E);s.current=A,a(A)},[]),y=k.useCallback(E=>{const A=F4(s.current,E);s.current=A,a(A)},[]),g=k.useCallback((E,A)=>{const j=I4(s.current,E,A);s.current=j,a(j)},[]),v=k.useCallback(()=>{s.current=[],a([])},[]),S=k.useCallback(async()=>{if(o.current||!r)return;const E=s.current[0];if(E===void 0)return;const A=E.id,j=E.text;o.current=!0,t(j).then(()=>{const N=s.current.filter(L=>L.id!==A);s.current=N,a(N)}).catch(()=>{}).finally(()=>{o.current=!1})},[t,r]);return{entries:i,enqueue:m,moveItemUp:h,moveItemDown:p,removeItem:y,editItem:g,clear:v,flush:S}}function Q4(){return b.jsx(C4,{children:b.jsx(Z4,{})})}function Z4(){const{sessions:t,loading:r}=A4(),{approvals:i,pendingSessionIds:a}=j4(),[o,c]=k.useState("sessions"),[s,m]=k.useState(null),[h,p]=k.useState(!1),[y,g]=k.useState(!1),v=t.find(pe=>pe.id===s),{items:S,totals:E,status:A,turnActive:j,liveTurns:N}=H4(s),{containerRef:L}=V4(),R=pe=>{c(pe),g(!1)},W=pe=>{m(pe),g(!1)},ee=j,[_,X]=k.useState("sonnet"),Y=k.useRef(null),ae=k.useCallback(async pe=>{if(!s)throw new Error("no session");const oe=new AbortController;Y.current=oe,await it(`/api/sessions/${s}/prompt`,{method:"POST",body:JSON.stringify({text:pe}),signal:oe.signal})},[s]),B=X4({submit:ae,isLive:(v==null?void 0:v.mode)==="live"}),re=k.useRef(0);k.useEffect(()=>{var pe;(pe=Y.current)==null||pe.abort(),Y.current=null,B.clear(),re.current=0},[s]),k.useEffect(()=>{N>re.current&&B.flush(),re.current=N},[N,B.flush]);const P=b.jsx(wk,{sessions:t,pendingSessionIds:a,selectedSessionId:s,onSelectSession:W,activeNav:o,onNavChange:R,collapsed:h,onToggleCollapse:()=>p(pe=>!pe)});return b.jsxs("div",{className:"flex h-screen overflow-hidden",children:[b.jsx(jw,{onNavigate:R}),b.jsx(Dw,{onNavigate:R}),b.jsx("div",{className:"hidden md:block",children:P}),b.jsx(S4,{open:y,onClose:()=>g(!1),children:P}),b.jsxs("main",{className:"flex flex-1 flex-col overflow-hidden",children:[b.jsxs("header",{className:"flex h-12 shrink-0 items-center justify-between border-b px-4",children:[b.jsxs("div",{className:"flex items-center gap-3",children:[b.jsx(k4,{className:"md:hidden",onClick:()=>g(!0)}),b.jsxs("h1",{className:"text-sm font-medium text-muted-foreground",children:[o==="sessions"&&"Sessions",o==="memory"&&"Memory",o==="schedules"&&"Schedules",o==="jobs"&&"Background Jobs",o==="settings"&&"Settings"]}),o==="sessions"&&v&&b.jsx(J4,{status:A})]}),b.jsxs("div",{className:"flex items-center gap-3",children:[o==="sessions"&&v&&b.jsx(k0,{totals:E}),b.jsx("kbd",{className:"hidden rounded border bg-secondary px-1.5 py-0.5 font-mono text-[10px] text-muted-foreground sm:inline-block",children:"⌘K"})]})]}),b.jsxs("div",{ref:L,className:"relative flex flex-1 flex-col overflow-y-auto",children:[b.jsxs("div",{className:"flex-1",children:[o==="sessions"&&b.jsx(K4,{loading:r,sessions:t,selectedSession:v,items:S,totals:E,status:A}),o==="memory"&&b.jsx(Hz,{}),o==="schedules"&&b.jsx(Zz,{}),o==="jobs"&&b.jsx(e4,{}),o==="settings"&&b.jsx(r4,{})]}),o==="sessions"&&v&&v.mode==="live"&&b.jsxs("div",{className:"shrink-0 border-t bg-card",children:[i.length>0&&b.jsx(v4,{approvals:i}),b.jsx(y4,{sessionId:v.id,sessionMode:v.mode,isBusy:ee,queue:B,onModelSelect:X,currentModel:_})]})]})]})]})}function K4({loading:t,sessions:r,selectedSession:i,items:a,totals:o,status:c}){return t&&!r.length?b.jsx("div",{className:"flex h-full items-center justify-center",children:b.jsxs("div",{className:"flex flex-col items-center gap-2 text-muted-foreground",children:[b.jsx("div",{className:"size-6 animate-spin rounded-full border-2 border-current border-t-transparent"}),b.jsx("span",{className:"text-sm",children:"Loading sessions..."})]})}):!t&&r.length===0?b.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:b.jsxs("p",{className:"text-sm",children:["No sessions found. Start one with"," ",b.jsx("code",{className:"rounded bg-secondary px-1 font-mono",children:"afk web"})]})}):i&&a.length>0?b.jsx(Tz,{items:a,totals:o}):i?b.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:b.jsx("div",{className:"flex flex-col items-center gap-2",children:c==="connecting"||c==="reconnecting"?b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"size-5 animate-spin rounded-full border-2 border-current border-t-transparent"}),b.jsx("span",{className:"text-sm",children:"Connecting to session..."})]}):b.jsx("span",{className:"text-sm",children:"No transcript data"})})}):b.jsx("div",{className:"flex h-full items-center justify-center text-muted-foreground",children:b.jsx("p",{className:"text-sm",children:"Select a session from the sidebar"})})}function J4({status:t}){return t==="open"?b.jsx("span",{className:"size-2 rounded-full bg-status-running",title:"Live"}):t==="connecting"||t==="reconnecting"?b.jsx("span",{className:"size-2 animate-pulse rounded-full bg-status-blocked",title:t}):t==="ended"?b.jsx("span",{className:"size-2 rounded-full bg-muted-foreground",title:"Session ended"}):null}const C0=document.getElementById("root");if(!C0)throw new Error("Root element #root not found");J1.createRoot(C0).render(b.jsx(k.StrictMode,{children:b.jsx(Q4,{})}));