code-squad-cli 1.2.7 → 1.2.10

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 (316) hide show
  1. package/dist/flip/constants/filters.d.ts +2 -0
  2. package/dist/flip/constants/filters.js +30 -0
  3. package/dist/flip/events/SSEManager.d.ts +10 -0
  4. package/dist/flip/events/SSEManager.js +28 -0
  5. package/dist/flip/events/types.d.ts +11 -0
  6. package/dist/flip/events/types.js +1 -0
  7. package/dist/flip/index.js +2 -2
  8. package/dist/flip/output/autopaste.js +15 -3
  9. package/dist/flip/output/clipboard.js +56 -2
  10. package/dist/flip/routes/events.d.ts +3 -0
  11. package/dist/flip/routes/events.js +25 -0
  12. package/dist/flip/routes/files.d.ts +6 -1
  13. package/dist/flip/routes/files.js +21 -33
  14. package/dist/flip/routes/static.js +8 -2
  15. package/dist/flip/routes/submit.js +14 -7
  16. package/dist/flip/server/Server.d.ts +1 -1
  17. package/dist/flip/server/Server.js +24 -2
  18. package/dist/flip/watcher/FileWatcher.d.ts +29 -0
  19. package/dist/flip/watcher/FileWatcher.js +128 -0
  20. package/dist/flip-ui/dist/assets/index-B2PjDe6F.js +217 -0
  21. package/dist/flip-ui/dist/assets/index-DYY1gRRa.css +1 -0
  22. package/dist/flip-ui/dist/index.html +2 -2
  23. package/dist/index.js +345 -80
  24. package/package.json +3 -2
  25. package/dist/flip-ui/dist/assets/abap-BdImnpbu.js +0 -1
  26. package/dist/flip-ui/dist/assets/actionscript-3-CfeIJUat.js +0 -1
  27. package/dist/flip-ui/dist/assets/ada-bCR0ucgS.js +0 -1
  28. package/dist/flip-ui/dist/assets/andromeeda-C-Jbm3Hp.js +0 -1
  29. package/dist/flip-ui/dist/assets/angular-html-CU67Zn6k.js +0 -1
  30. package/dist/flip-ui/dist/assets/angular-ts-BwZT4LLn.js +0 -1
  31. package/dist/flip-ui/dist/assets/apache-Pmp26Uib.js +0 -1
  32. package/dist/flip-ui/dist/assets/apex-D8_7TLub.js +0 -1
  33. package/dist/flip-ui/dist/assets/apl-dKokRX4l.js +0 -1
  34. package/dist/flip-ui/dist/assets/applescript-Co6uUVPk.js +0 -1
  35. package/dist/flip-ui/dist/assets/ara-BRHolxvo.js +0 -1
  36. package/dist/flip-ui/dist/assets/asciidoc-Dv7Oe6Be.js +0 -1
  37. package/dist/flip-ui/dist/assets/asm-D_Q5rh1f.js +0 -1
  38. package/dist/flip-ui/dist/assets/astro-CbQHKStN.js +0 -1
  39. package/dist/flip-ui/dist/assets/aurora-x-D-2ljcwZ.js +0 -1
  40. package/dist/flip-ui/dist/assets/awk-DMzUqQB5.js +0 -1
  41. package/dist/flip-ui/dist/assets/ayu-dark-CmMr59Fi.js +0 -1
  42. package/dist/flip-ui/dist/assets/ballerina-BFfxhgS-.js +0 -1
  43. package/dist/flip-ui/dist/assets/bat-BkioyH1T.js +0 -1
  44. package/dist/flip-ui/dist/assets/beancount-k_qm7-4y.js +0 -1
  45. package/dist/flip-ui/dist/assets/berry-uYugtg8r.js +0 -1
  46. package/dist/flip-ui/dist/assets/bibtex-CHM0blh-.js +0 -1
  47. package/dist/flip-ui/dist/assets/bicep-Bmn6On1c.js +0 -1
  48. package/dist/flip-ui/dist/assets/blade-D4QpJJKB.js +0 -1
  49. package/dist/flip-ui/dist/assets/bsl-BO_Y6i37.js +0 -1
  50. package/dist/flip-ui/dist/assets/c-BIGW1oBm.js +0 -1
  51. package/dist/flip-ui/dist/assets/c3-VCDPK7BO.js +0 -1
  52. package/dist/flip-ui/dist/assets/cadence-Bv_4Rxtq.js +0 -1
  53. package/dist/flip-ui/dist/assets/cairo-KRGpt6FW.js +0 -1
  54. package/dist/flip-ui/dist/assets/catppuccin-frappe-DFWUc33u.js +0 -1
  55. package/dist/flip-ui/dist/assets/catppuccin-latte-C9dUb6Cb.js +0 -1
  56. package/dist/flip-ui/dist/assets/catppuccin-macchiato-DQyhUUbL.js +0 -1
  57. package/dist/flip-ui/dist/assets/catppuccin-mocha-D87Tk5Gz.js +0 -1
  58. package/dist/flip-ui/dist/assets/clarity-D53aC0YG.js +0 -1
  59. package/dist/flip-ui/dist/assets/clojure-P80f7IUj.js +0 -1
  60. package/dist/flip-ui/dist/assets/cmake-D1j8_8rp.js +0 -1
  61. package/dist/flip-ui/dist/assets/cobol-nwyudZeR.js +0 -1
  62. package/dist/flip-ui/dist/assets/codeowners-Bp6g37R7.js +0 -1
  63. package/dist/flip-ui/dist/assets/codeql-DsOJ9woJ.js +0 -1
  64. package/dist/flip-ui/dist/assets/coffee-Ch7k5sss.js +0 -1
  65. package/dist/flip-ui/dist/assets/common-lisp-Cg-RD9OK.js +0 -1
  66. package/dist/flip-ui/dist/assets/coq-DkFqJrB1.js +0 -1
  67. package/dist/flip-ui/dist/assets/cpp-CofmeUqb.js +0 -1
  68. package/dist/flip-ui/dist/assets/crystal-tKQVLTB8.js +0 -1
  69. package/dist/flip-ui/dist/assets/csharp-K5feNrxe.js +0 -1
  70. package/dist/flip-ui/dist/assets/css-DPfMkruS.js +0 -1
  71. package/dist/flip-ui/dist/assets/csv-fuZLfV_i.js +0 -1
  72. package/dist/flip-ui/dist/assets/cue-D82EKSYY.js +0 -1
  73. package/dist/flip-ui/dist/assets/cypher-COkxafJQ.js +0 -1
  74. package/dist/flip-ui/dist/assets/d-85-TOEBH.js +0 -1
  75. package/dist/flip-ui/dist/assets/dark-plus-C3mMm8J8.js +0 -1
  76. package/dist/flip-ui/dist/assets/dart-CF10PKvl.js +0 -1
  77. package/dist/flip-ui/dist/assets/dax-CEL-wOlO.js +0 -1
  78. package/dist/flip-ui/dist/assets/desktop-BmXAJ9_W.js +0 -1
  79. package/dist/flip-ui/dist/assets/diff-D97Zzqfu.js +0 -1
  80. package/dist/flip-ui/dist/assets/docker-BcOcwvcX.js +0 -1
  81. package/dist/flip-ui/dist/assets/dotenv-Da5cRb03.js +0 -1
  82. package/dist/flip-ui/dist/assets/dracula-BzJJZx-M.js +0 -1
  83. package/dist/flip-ui/dist/assets/dracula-soft-BXkSAIEj.js +0 -1
  84. package/dist/flip-ui/dist/assets/dream-maker-BtqSS_iP.js +0 -1
  85. package/dist/flip-ui/dist/assets/edge-BkV0erSs.js +0 -1
  86. package/dist/flip-ui/dist/assets/elixir-CDX3lj18.js +0 -1
  87. package/dist/flip-ui/dist/assets/elm-DbKCFpqz.js +0 -1
  88. package/dist/flip-ui/dist/assets/emacs-lisp-C9XAeP06.js +0 -1
  89. package/dist/flip-ui/dist/assets/erb-BOJIQeun.js +0 -1
  90. package/dist/flip-ui/dist/assets/erlang-DsQrWhSR.js +0 -1
  91. package/dist/flip-ui/dist/assets/everforest-dark-BgDCqdQA.js +0 -1
  92. package/dist/flip-ui/dist/assets/everforest-light-C8M2exoo.js +0 -1
  93. package/dist/flip-ui/dist/assets/fennel-BYunw83y.js +0 -1
  94. package/dist/flip-ui/dist/assets/fish-BvzEVeQv.js +0 -1
  95. package/dist/flip-ui/dist/assets/fluent-C4IJs8-o.js +0 -1
  96. package/dist/flip-ui/dist/assets/fortran-fixed-form-CkoXwp7k.js +0 -1
  97. package/dist/flip-ui/dist/assets/fortran-free-form-BxgE0vQu.js +0 -1
  98. package/dist/flip-ui/dist/assets/fsharp-CXgrBDvD.js +0 -1
  99. package/dist/flip-ui/dist/assets/gdresource-B7Tvp0Sc.js +0 -1
  100. package/dist/flip-ui/dist/assets/gdscript-DTMYz4Jt.js +0 -1
  101. package/dist/flip-ui/dist/assets/gdshader-DkwncUOv.js +0 -1
  102. package/dist/flip-ui/dist/assets/genie-D0YGMca9.js +0 -1
  103. package/dist/flip-ui/dist/assets/gherkin-DyxjwDmM.js +0 -1
  104. package/dist/flip-ui/dist/assets/git-commit-F4YmCXRG.js +0 -1
  105. package/dist/flip-ui/dist/assets/git-rebase-r7XF79zn.js +0 -1
  106. package/dist/flip-ui/dist/assets/github-dark-DHJKELXO.js +0 -1
  107. package/dist/flip-ui/dist/assets/github-dark-default-Cuk6v7N8.js +0 -1
  108. package/dist/flip-ui/dist/assets/github-dark-dimmed-DH5Ifo-i.js +0 -1
  109. package/dist/flip-ui/dist/assets/github-dark-high-contrast-E3gJ1_iC.js +0 -1
  110. package/dist/flip-ui/dist/assets/github-light-DAi9KRSo.js +0 -1
  111. package/dist/flip-ui/dist/assets/github-light-default-D7oLnXFd.js +0 -1
  112. package/dist/flip-ui/dist/assets/github-light-high-contrast-BfjtVDDH.js +0 -1
  113. package/dist/flip-ui/dist/assets/gleam-BspZqrRM.js +0 -1
  114. package/dist/flip-ui/dist/assets/glimmer-js-Rg0-pVw9.js +0 -1
  115. package/dist/flip-ui/dist/assets/glimmer-ts-U6CK756n.js +0 -1
  116. package/dist/flip-ui/dist/assets/glsl-DplSGwfg.js +0 -1
  117. package/dist/flip-ui/dist/assets/gn-n2N0HUVH.js +0 -1
  118. package/dist/flip-ui/dist/assets/gnuplot-DdkO51Og.js +0 -1
  119. package/dist/flip-ui/dist/assets/go-Dn2_MT6a.js +0 -1
  120. package/dist/flip-ui/dist/assets/graphql-ChdNCCLP.js +0 -1
  121. package/dist/flip-ui/dist/assets/groovy-gcz8RCvz.js +0 -1
  122. package/dist/flip-ui/dist/assets/gruvbox-dark-hard-CFHQjOhq.js +0 -1
  123. package/dist/flip-ui/dist/assets/gruvbox-dark-medium-GsRaNv29.js +0 -1
  124. package/dist/flip-ui/dist/assets/gruvbox-dark-soft-CVdnzihN.js +0 -1
  125. package/dist/flip-ui/dist/assets/gruvbox-light-hard-CH1njM8p.js +0 -1
  126. package/dist/flip-ui/dist/assets/gruvbox-light-medium-DRw_LuNl.js +0 -1
  127. package/dist/flip-ui/dist/assets/gruvbox-light-soft-hJgmCMqR.js +0 -1
  128. package/dist/flip-ui/dist/assets/hack-CaT9iCJl.js +0 -1
  129. package/dist/flip-ui/dist/assets/haml-B8DHNrY2.js +0 -1
  130. package/dist/flip-ui/dist/assets/handlebars-BL8al0AC.js +0 -1
  131. package/dist/flip-ui/dist/assets/haskell-Df6bDoY_.js +0 -1
  132. package/dist/flip-ui/dist/assets/haxe-CzTSHFRz.js +0 -1
  133. package/dist/flip-ui/dist/assets/hcl-BWvSN4gD.js +0 -1
  134. package/dist/flip-ui/dist/assets/hjson-D5-asLiD.js +0 -1
  135. package/dist/flip-ui/dist/assets/hlsl-D3lLCCz7.js +0 -1
  136. package/dist/flip-ui/dist/assets/houston-DnULxvSX.js +0 -1
  137. package/dist/flip-ui/dist/assets/html-GMplVEZG.js +0 -1
  138. package/dist/flip-ui/dist/assets/html-derivative-BFtXZ54Q.js +0 -1
  139. package/dist/flip-ui/dist/assets/http-jrhK8wxY.js +0 -1
  140. package/dist/flip-ui/dist/assets/hurl-irOxFIW8.js +0 -1
  141. package/dist/flip-ui/dist/assets/hxml-Bvhsp5Yf.js +0 -1
  142. package/dist/flip-ui/dist/assets/hy-DFXneXwc.js +0 -1
  143. package/dist/flip-ui/dist/assets/imba-DGztddWO.js +0 -1
  144. package/dist/flip-ui/dist/assets/index-BYcwO1DZ.js +0 -154
  145. package/dist/flip-ui/dist/assets/index-iFjjtGMT.css +0 -1
  146. package/dist/flip-ui/dist/assets/ini-BEwlwnbL.js +0 -1
  147. package/dist/flip-ui/dist/assets/java-CylS5w8V.js +0 -1
  148. package/dist/flip-ui/dist/assets/javascript-wDzz0qaB.js +0 -1
  149. package/dist/flip-ui/dist/assets/jinja-4LBKfQ-Z.js +0 -1
  150. package/dist/flip-ui/dist/assets/jison-wvAkD_A8.js +0 -1
  151. package/dist/flip-ui/dist/assets/json-Cp-IABpG.js +0 -1
  152. package/dist/flip-ui/dist/assets/json5-C9tS-k6U.js +0 -1
  153. package/dist/flip-ui/dist/assets/jsonc-Des-eS-w.js +0 -1
  154. package/dist/flip-ui/dist/assets/jsonl-DcaNXYhu.js +0 -1
  155. package/dist/flip-ui/dist/assets/jsonnet-DFQXde-d.js +0 -1
  156. package/dist/flip-ui/dist/assets/jssm-C2t-YnRu.js +0 -1
  157. package/dist/flip-ui/dist/assets/jsx-g9-lgVsj.js +0 -1
  158. package/dist/flip-ui/dist/assets/julia-CxzCAyBv.js +0 -1
  159. package/dist/flip-ui/dist/assets/kanagawa-dragon-CkXjmgJE.js +0 -1
  160. package/dist/flip-ui/dist/assets/kanagawa-lotus-CfQXZHmo.js +0 -1
  161. package/dist/flip-ui/dist/assets/kanagawa-wave-DWedfzmr.js +0 -1
  162. package/dist/flip-ui/dist/assets/kdl-DV7GczEv.js +0 -1
  163. package/dist/flip-ui/dist/assets/kotlin-BdnUsdx6.js +0 -1
  164. package/dist/flip-ui/dist/assets/kusto-DZf3V79B.js +0 -1
  165. package/dist/flip-ui/dist/assets/laserwave-DUszq2jm.js +0 -1
  166. package/dist/flip-ui/dist/assets/latex-B4uzh10-.js +0 -1
  167. package/dist/flip-ui/dist/assets/lean-BZvkOJ9d.js +0 -1
  168. package/dist/flip-ui/dist/assets/less-B1dDrJ26.js +0 -1
  169. package/dist/flip-ui/dist/assets/light-plus-B7mTdjB0.js +0 -1
  170. package/dist/flip-ui/dist/assets/liquid-DYVedYrR.js +0 -1
  171. package/dist/flip-ui/dist/assets/llvm-BtvRca6l.js +0 -1
  172. package/dist/flip-ui/dist/assets/log-2UxHyX5q.js +0 -1
  173. package/dist/flip-ui/dist/assets/logo-BtOb2qkB.js +0 -1
  174. package/dist/flip-ui/dist/assets/lua-BbnMAYS6.js +0 -1
  175. package/dist/flip-ui/dist/assets/luau-C-HG3fhB.js +0 -1
  176. package/dist/flip-ui/dist/assets/make-CHLpvVh8.js +0 -1
  177. package/dist/flip-ui/dist/assets/markdown-Cvjx9yec.js +0 -1
  178. package/dist/flip-ui/dist/assets/marko-DZsq8hO1.js +0 -1
  179. package/dist/flip-ui/dist/assets/material-theme-D5KoaKCx.js +0 -1
  180. package/dist/flip-ui/dist/assets/material-theme-darker-BfHTSMKl.js +0 -1
  181. package/dist/flip-ui/dist/assets/material-theme-lighter-B0m2ddpp.js +0 -1
  182. package/dist/flip-ui/dist/assets/material-theme-ocean-CyktbL80.js +0 -1
  183. package/dist/flip-ui/dist/assets/material-theme-palenight-Csfq5Kiy.js +0 -1
  184. package/dist/flip-ui/dist/assets/matlab-D7o27uSR.js +0 -1
  185. package/dist/flip-ui/dist/assets/mdc-DUICxH0z.js +0 -1
  186. package/dist/flip-ui/dist/assets/mdx-Cmh6b_Ma.js +0 -1
  187. package/dist/flip-ui/dist/assets/mermaid-mWjccvbQ.js +0 -1
  188. package/dist/flip-ui/dist/assets/min-dark-CafNBF8u.js +0 -1
  189. package/dist/flip-ui/dist/assets/min-light-CTRr51gU.js +0 -1
  190. package/dist/flip-ui/dist/assets/mipsasm-CKIfxQSi.js +0 -1
  191. package/dist/flip-ui/dist/assets/mojo-B93PlW-d.js +0 -1
  192. package/dist/flip-ui/dist/assets/monokai-D4h5O-jR.js +0 -1
  193. package/dist/flip-ui/dist/assets/moonbit-Ba13S78F.js +0 -1
  194. package/dist/flip-ui/dist/assets/move-Bu9oaDYs.js +0 -1
  195. package/dist/flip-ui/dist/assets/narrat-DRg8JJMk.js +0 -1
  196. package/dist/flip-ui/dist/assets/nextflow-BrzmwbiE.js +0 -1
  197. package/dist/flip-ui/dist/assets/nginx-DknmC5AR.js +0 -1
  198. package/dist/flip-ui/dist/assets/night-owl-C39BiMTA.js +0 -1
  199. package/dist/flip-ui/dist/assets/nim-CVrawwO9.js +0 -1
  200. package/dist/flip-ui/dist/assets/nix-CwoSXNpI.js +0 -1
  201. package/dist/flip-ui/dist/assets/nord-Ddv68eIx.js +0 -1
  202. package/dist/flip-ui/dist/assets/nushell-C-sUppwS.js +0 -1
  203. package/dist/flip-ui/dist/assets/objective-c-DXmwc3jG.js +0 -1
  204. package/dist/flip-ui/dist/assets/objective-cpp-CLxacb5B.js +0 -1
  205. package/dist/flip-ui/dist/assets/ocaml-C0hk2d4L.js +0 -1
  206. package/dist/flip-ui/dist/assets/one-dark-pro-DVMEJ2y_.js +0 -1
  207. package/dist/flip-ui/dist/assets/one-light-PoHY5YXO.js +0 -1
  208. package/dist/flip-ui/dist/assets/openscad-C4EeE6gA.js +0 -1
  209. package/dist/flip-ui/dist/assets/pascal-D93ZcfNL.js +0 -1
  210. package/dist/flip-ui/dist/assets/perl-C0TMdlhV.js +0 -1
  211. package/dist/flip-ui/dist/assets/php-CDn_0X-4.js +0 -1
  212. package/dist/flip-ui/dist/assets/pkl-u5AG7uiY.js +0 -1
  213. package/dist/flip-ui/dist/assets/plastic-3e1v2bzS.js +0 -1
  214. package/dist/flip-ui/dist/assets/plsql-ChMvpjG-.js +0 -1
  215. package/dist/flip-ui/dist/assets/po-BTJTHyun.js +0 -1
  216. package/dist/flip-ui/dist/assets/poimandres-CS3Unz2-.js +0 -1
  217. package/dist/flip-ui/dist/assets/polar-C0HS_06l.js +0 -1
  218. package/dist/flip-ui/dist/assets/postcss-CXtECtnM.js +0 -1
  219. package/dist/flip-ui/dist/assets/powerquery-CEu0bR-o.js +0 -1
  220. package/dist/flip-ui/dist/assets/powershell-Dpen1YoG.js +0 -1
  221. package/dist/flip-ui/dist/assets/prisma-Dd19v3D-.js +0 -1
  222. package/dist/flip-ui/dist/assets/prolog-CbFg5uaA.js +0 -1
  223. package/dist/flip-ui/dist/assets/proto-C7zT0LnQ.js +0 -1
  224. package/dist/flip-ui/dist/assets/pug-CGlum2m_.js +0 -1
  225. package/dist/flip-ui/dist/assets/puppet-BMWR74SV.js +0 -1
  226. package/dist/flip-ui/dist/assets/purescript-CklMAg4u.js +0 -1
  227. package/dist/flip-ui/dist/assets/python-B6aJPvgy.js +0 -1
  228. package/dist/flip-ui/dist/assets/qml-3beO22l8.js +0 -1
  229. package/dist/flip-ui/dist/assets/qmldir-C8lEn-DE.js +0 -1
  230. package/dist/flip-ui/dist/assets/qss-IeuSbFQv.js +0 -1
  231. package/dist/flip-ui/dist/assets/r-Dspwwk_N.js +0 -1
  232. package/dist/flip-ui/dist/assets/racket-BqYA7rlc.js +0 -1
  233. package/dist/flip-ui/dist/assets/raku-DXvB9xmW.js +0 -1
  234. package/dist/flip-ui/dist/assets/razor-C1TweQQi.js +0 -1
  235. package/dist/flip-ui/dist/assets/red-bN70gL4F.js +0 -1
  236. package/dist/flip-ui/dist/assets/reg-C-SQnVFl.js +0 -1
  237. package/dist/flip-ui/dist/assets/regexp-CDVJQ6XC.js +0 -1
  238. package/dist/flip-ui/dist/assets/rel-C3B-1QV4.js +0 -1
  239. package/dist/flip-ui/dist/assets/riscv-BM1_JUlF.js +0 -1
  240. package/dist/flip-ui/dist/assets/rose-pine-dawn-DHQR4-dF.js +0 -1
  241. package/dist/flip-ui/dist/assets/rose-pine-moon-D4_iv3hh.js +0 -1
  242. package/dist/flip-ui/dist/assets/rose-pine-qdsjHGoJ.js +0 -1
  243. package/dist/flip-ui/dist/assets/rosmsg-BJDFO7_C.js +0 -1
  244. package/dist/flip-ui/dist/assets/rst-B0xPkSld.js +0 -1
  245. package/dist/flip-ui/dist/assets/ruby-BvKwtOVI.js +0 -1
  246. package/dist/flip-ui/dist/assets/rust-B1yitclQ.js +0 -1
  247. package/dist/flip-ui/dist/assets/sas-cz2c8ADy.js +0 -1
  248. package/dist/flip-ui/dist/assets/sass-Cj5Yp3dK.js +0 -1
  249. package/dist/flip-ui/dist/assets/scala-C151Ov-r.js +0 -1
  250. package/dist/flip-ui/dist/assets/scheme-C98Dy4si.js +0 -1
  251. package/dist/flip-ui/dist/assets/scss-OYdSNvt2.js +0 -1
  252. package/dist/flip-ui/dist/assets/sdbl-DVxCFoDh.js +0 -1
  253. package/dist/flip-ui/dist/assets/shaderlab-Dg9Lc6iA.js +0 -1
  254. package/dist/flip-ui/dist/assets/shellscript-Yzrsuije.js +0 -1
  255. package/dist/flip-ui/dist/assets/shellsession-BADoaaVG.js +0 -1
  256. package/dist/flip-ui/dist/assets/slack-dark-BthQWCQV.js +0 -1
  257. package/dist/flip-ui/dist/assets/slack-ochin-DqwNpetd.js +0 -1
  258. package/dist/flip-ui/dist/assets/smalltalk-BERRCDM3.js +0 -1
  259. package/dist/flip-ui/dist/assets/snazzy-light-Bw305WKR.js +0 -1
  260. package/dist/flip-ui/dist/assets/solarized-dark-DXbdFlpD.js +0 -1
  261. package/dist/flip-ui/dist/assets/solarized-light-L9t79GZl.js +0 -1
  262. package/dist/flip-ui/dist/assets/solidity-rGO070M0.js +0 -1
  263. package/dist/flip-ui/dist/assets/soy-Brmx7dQM.js +0 -1
  264. package/dist/flip-ui/dist/assets/sparql-rVzFXLq3.js +0 -1
  265. package/dist/flip-ui/dist/assets/splunk-BtCnVYZw.js +0 -1
  266. package/dist/flip-ui/dist/assets/sql-BLtJtn59.js +0 -1
  267. package/dist/flip-ui/dist/assets/ssh-config-_ykCGR6B.js +0 -1
  268. package/dist/flip-ui/dist/assets/stata-BH5u7GGu.js +0 -1
  269. package/dist/flip-ui/dist/assets/stylus-BEDo0Tqx.js +0 -1
  270. package/dist/flip-ui/dist/assets/svelte-zxCyuUbr.js +0 -1
  271. package/dist/flip-ui/dist/assets/swift-Dg5xB15N.js +0 -1
  272. package/dist/flip-ui/dist/assets/synthwave-84-CbfX1IO0.js +0 -1
  273. package/dist/flip-ui/dist/assets/system-verilog-CnnmHF94.js +0 -1
  274. package/dist/flip-ui/dist/assets/systemd-4A_iFExJ.js +0 -1
  275. package/dist/flip-ui/dist/assets/talonscript-CkByrt1z.js +0 -1
  276. package/dist/flip-ui/dist/assets/tasl-QIJgUcNo.js +0 -1
  277. package/dist/flip-ui/dist/assets/tcl-dwOrl1Do.js +0 -1
  278. package/dist/flip-ui/dist/assets/templ-W15q3VgB.js +0 -1
  279. package/dist/flip-ui/dist/assets/terraform-BETggiCN.js +0 -1
  280. package/dist/flip-ui/dist/assets/tex-CvyZ59Mk.js +0 -1
  281. package/dist/flip-ui/dist/assets/tokyo-night-hegEt444.js +0 -1
  282. package/dist/flip-ui/dist/assets/toml-vGWfd6FD.js +0 -1
  283. package/dist/flip-ui/dist/assets/ts-tags-zn1MmPIZ.js +0 -1
  284. package/dist/flip-ui/dist/assets/tsv-B_m7g4N7.js +0 -1
  285. package/dist/flip-ui/dist/assets/tsx-COt5Ahok.js +0 -1
  286. package/dist/flip-ui/dist/assets/turtle-BsS91CYL.js +0 -1
  287. package/dist/flip-ui/dist/assets/twig-CO9l9SDP.js +0 -1
  288. package/dist/flip-ui/dist/assets/typescript-BPQ3VLAy.js +0 -1
  289. package/dist/flip-ui/dist/assets/typespec-BGHnOYBU.js +0 -1
  290. package/dist/flip-ui/dist/assets/typst-DHCkPAjA.js +0 -1
  291. package/dist/flip-ui/dist/assets/v-BcVCzyr7.js +0 -1
  292. package/dist/flip-ui/dist/assets/vala-CsfeWuGM.js +0 -1
  293. package/dist/flip-ui/dist/assets/vb-D17OF-Vu.js +0 -1
  294. package/dist/flip-ui/dist/assets/verilog-BQ8w6xss.js +0 -1
  295. package/dist/flip-ui/dist/assets/vesper-DU1UobuO.js +0 -1
  296. package/dist/flip-ui/dist/assets/vhdl-CeAyd5Ju.js +0 -1
  297. package/dist/flip-ui/dist/assets/viml-CJc9bBzg.js +0 -1
  298. package/dist/flip-ui/dist/assets/vitesse-black-Bkuqu6BP.js +0 -1
  299. package/dist/flip-ui/dist/assets/vitesse-dark-D0r3Knsf.js +0 -1
  300. package/dist/flip-ui/dist/assets/vitesse-light-CVO1_9PV.js +0 -1
  301. package/dist/flip-ui/dist/assets/vue-DN_0RTcg.js +0 -1
  302. package/dist/flip-ui/dist/assets/vue-html-AaS7Mt5G.js +0 -1
  303. package/dist/flip-ui/dist/assets/vue-vine-CQOfvN7w.js +0 -1
  304. package/dist/flip-ui/dist/assets/vyper-CDx5xZoG.js +0 -1
  305. package/dist/flip-ui/dist/assets/wasm-CG6Dc4jp.js +0 -1
  306. package/dist/flip-ui/dist/assets/wasm-MzD3tlZU.js +0 -1
  307. package/dist/flip-ui/dist/assets/wenyan-BV7otONQ.js +0 -1
  308. package/dist/flip-ui/dist/assets/wgsl-Dx-B1_4e.js +0 -1
  309. package/dist/flip-ui/dist/assets/wikitext-BhOHFoWU.js +0 -1
  310. package/dist/flip-ui/dist/assets/wit-5i3qLPDT.js +0 -1
  311. package/dist/flip-ui/dist/assets/wolfram-lXgVvXCa.js +0 -1
  312. package/dist/flip-ui/dist/assets/xml-sdJ4AIDG.js +0 -1
  313. package/dist/flip-ui/dist/assets/xsl-CtQFsRM5.js +0 -1
  314. package/dist/flip-ui/dist/assets/yaml-Buea-lGh.js +0 -1
  315. package/dist/flip-ui/dist/assets/zenscript-DVFEvuxE.js +0 -1
  316. package/dist/flip-ui/dist/assets/zig-VOosw3JB.js +0 -1
@@ -0,0 +1,217 @@
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const l of o.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yd={exports:{}},xl={},Qd={exports:{}},ne={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its 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 Ki=Symbol.for("react.element"),cy=Symbol.for("react.portal"),fy=Symbol.for("react.fragment"),dy=Symbol.for("react.strict_mode"),py=Symbol.for("react.profiler"),hy=Symbol.for("react.provider"),gy=Symbol.for("react.context"),my=Symbol.for("react.forward_ref"),yy=Symbol.for("react.suspense"),by=Symbol.for("react.memo"),Ey=Symbol.for("react.lazy"),xc=Symbol.iterator;function vy(e){return e===null||typeof e!="object"?null:(e=xc&&e[xc]||e["@@iterator"],typeof e=="function"?e:null)}var Zd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Xd=Object.assign,Jd={};function zr(e,t,n){this.props=e,this.context=t,this.refs=Jd,this.updater=n||Zd}zr.prototype.isReactComponent={};zr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};zr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ep(){}ep.prototype=zr.prototype;function eu(e,t,n){this.props=e,this.context=t,this.refs=Jd,this.updater=n||Zd}var tu=eu.prototype=new ep;tu.constructor=eu;Xd(tu,zr.prototype);tu.isPureReactComponent=!0;var _c=Array.isArray,tp=Object.prototype.hasOwnProperty,nu={current:null},np={key:!0,ref:!0,__self:!0,__source:!0};function rp(e,t,n){var r,i={},o=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(o=""+t.key),t)tp.call(t,r)&&!np.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];i.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return{$$typeof:Ki,type:e,key:o,ref:l,props:i,_owner:nu.current}}function ky(e,t){return{$$typeof:Ki,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ru(e){return typeof e=="object"&&e!==null&&e.$$typeof===Ki}function wy(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Sc=/\/+/g;function Yl(e,t){return typeof e=="object"&&e!==null&&e.key!=null?wy(""+e.key):t.toString(36)}function Ao(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case Ki:case cy:l=!0}}if(l)return l=e,i=i(l),e=r===""?"."+Yl(l,0):r,_c(i)?(n="",e!=null&&(n=e.replace(Sc,"$&/")+"/"),Ao(i,t,n,"",function(u){return u})):i!=null&&(ru(i)&&(i=ky(i,n+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(Sc,"$&/")+"/")+e)),t.push(i)),1;if(l=0,r=r===""?".":r+":",_c(e))for(var s=0;s<e.length;s++){o=e[s];var a=r+Yl(o,s);l+=Ao(o,t,n,a,i)}else if(a=vy(e),typeof a=="function")for(e=a.call(e),s=0;!(o=e.next()).done;)o=o.value,a=r+Yl(o,s++),l+=Ao(o,t,n,a,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function Ji(e,t,n){if(e==null)return e;var r=[],i=0;return Ao(e,r,"","",function(o){return t.call(n,o,i++)}),r}function xy(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var qe={current:null},Io={transition:null},_y={ReactCurrentDispatcher:qe,ReactCurrentBatchConfig:Io,ReactCurrentOwner:nu};function ip(){throw Error("act(...) is not supported in production builds of React.")}ne.Children={map:Ji,forEach:function(e,t,n){Ji(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Ji(e,function(){t++}),t},toArray:function(e){return Ji(e,function(t){return t})||[]},only:function(e){if(!ru(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ne.Component=zr;ne.Fragment=fy;ne.Profiler=py;ne.PureComponent=eu;ne.StrictMode=dy;ne.Suspense=yy;ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_y;ne.act=ip;ne.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Xd({},e.props),i=e.key,o=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,l=nu.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)tp.call(t,a)&&!np.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:Ki,type:e.type,key:i,ref:o,props:r,_owner:l}};ne.createContext=function(e){return e={$$typeof:gy,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:hy,_context:e},e.Consumer=e};ne.createElement=rp;ne.createFactory=function(e){var t=rp.bind(null,e);return t.type=e,t};ne.createRef=function(){return{current:null}};ne.forwardRef=function(e){return{$$typeof:my,render:e}};ne.isValidElement=ru;ne.lazy=function(e){return{$$typeof:Ey,_payload:{_status:-1,_result:e},_init:xy}};ne.memo=function(e,t){return{$$typeof:by,type:e,compare:t===void 0?null:t}};ne.startTransition=function(e){var t=Io.transition;Io.transition={};try{e()}finally{Io.transition=t}};ne.unstable_act=ip;ne.useCallback=function(e,t){return qe.current.useCallback(e,t)};ne.useContext=function(e){return qe.current.useContext(e)};ne.useDebugValue=function(){};ne.useDeferredValue=function(e){return qe.current.useDeferredValue(e)};ne.useEffect=function(e,t){return qe.current.useEffect(e,t)};ne.useId=function(){return qe.current.useId()};ne.useImperativeHandle=function(e,t,n){return qe.current.useImperativeHandle(e,t,n)};ne.useInsertionEffect=function(e,t){return qe.current.useInsertionEffect(e,t)};ne.useLayoutEffect=function(e,t){return qe.current.useLayoutEffect(e,t)};ne.useMemo=function(e,t){return qe.current.useMemo(e,t)};ne.useReducer=function(e,t,n){return qe.current.useReducer(e,t,n)};ne.useRef=function(e){return qe.current.useRef(e)};ne.useState=function(e){return qe.current.useState(e)};ne.useSyncExternalStore=function(e,t,n){return qe.current.useSyncExternalStore(e,t,n)};ne.useTransition=function(){return qe.current.useTransition()};ne.version="18.3.1";Qd.exports=ne;var K=Qd.exports;const op=Hi(K);/**
10
+ * @license React
11
+ * react-jsx-runtime.production.min.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its 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 Sy=K,Cy=Symbol.for("react.element"),Ny=Symbol.for("react.fragment"),Ty=Object.prototype.hasOwnProperty,Ay=Sy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Iy={key:!0,ref:!0,__self:!0,__source:!0};function lp(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Ty.call(t,r)&&!Iy.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Cy,type:e,key:o,ref:l,props:i,_owner:Ay.current}}xl.Fragment=Ny;xl.jsx=lp;xl.jsxs=lp;Yd.exports=xl;var x=Yd.exports,js={},sp={exports:{}},pt={},ap={exports:{}},up={};/**
18
+ * @license React
19
+ * scheduler.production.min.js
20
+ *
21
+ * Copyright (c) Facebook, Inc. and its 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
+ */(function(e){function t(A,P){var E=A.length;A.push(P);e:for(;0<E;){var W=E-1>>>1,G=A[W];if(0<i(G,P))A[W]=P,A[E]=G,E=W;else break e}}function n(A){return A.length===0?null:A[0]}function r(A){if(A.length===0)return null;var P=A[0],E=A.pop();if(E!==P){A[0]=E;e:for(var W=0,G=A.length,w=G>>>1;W<w;){var re=2*(W+1)-1,he=A[re],le=re+1,je=A[le];if(0>i(he,E))le<G&&0>i(je,he)?(A[W]=je,A[le]=E,W=le):(A[W]=he,A[re]=E,W=re);else if(le<G&&0>i(je,E))A[W]=je,A[le]=E,W=le;else break e}}return P}function i(A,P){var E=A.sortIndex-P.sortIndex;return E!==0?E:A.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],c=1,f=null,p=3,d=!1,h=!1,b=!1,C=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(A){for(var P=n(u);P!==null;){if(P.callback===null)r(u);else if(P.startTime<=A)r(u),P.sortIndex=P.expirationTime,t(a,P);else break;P=n(u)}}function S(A){if(b=!1,y(A),!h)if(n(a)!==null)h=!0,O(T);else{var P=n(u);P!==null&&B(S,P.startTime-A)}}function T(A,P){h=!1,b&&(b=!1,g(I),I=-1),d=!0;var E=p;try{for(y(P),f=n(a);f!==null&&(!(f.expirationTime>P)||A&&!D());){var W=f.callback;if(typeof W=="function"){f.callback=null,p=f.priorityLevel;var G=W(f.expirationTime<=P);P=e.unstable_now(),typeof G=="function"?f.callback=G:f===n(a)&&r(a),y(P)}else r(a);f=n(a)}if(f!==null)var w=!0;else{var re=n(u);re!==null&&B(S,re.startTime-P),w=!1}return w}finally{f=null,p=E,d=!1}}var v=!1,N=null,I=-1,R=5,k=-1;function D(){return!(e.unstable_now()-k<R)}function L(){if(N!==null){var A=e.unstable_now();k=A;var P=!0;try{P=N(!0,A)}finally{P?Y():(v=!1,N=null)}}else v=!1}var Y;if(typeof m=="function")Y=function(){m(L)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,V=H.port2;H.port1.onmessage=L,Y=function(){V.postMessage(null)}}else Y=function(){C(L,0)};function O(A){N=A,v||(v=!0,Y())}function B(A,P){I=C(function(){A(e.unstable_now())},P)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(A){A.callback=null},e.unstable_continueExecution=function(){h||d||(h=!0,O(T))},e.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<A?Math.floor(1e3/A):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(A){switch(p){case 1:case 2:case 3:var P=3;break;default:P=p}var E=p;p=P;try{return A()}finally{p=E}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(A,P){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var E=p;p=A;try{return P()}finally{p=E}},e.unstable_scheduleCallback=function(A,P,E){var W=e.unstable_now();switch(typeof E=="object"&&E!==null?(E=E.delay,E=typeof E=="number"&&0<E?W+E:W):E=W,A){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=E+G,A={id:c++,callback:P,priorityLevel:A,startTime:E,expirationTime:G,sortIndex:-1},E>W?(A.sortIndex=E,t(u,A),n(a)===null&&A===n(u)&&(b?(g(I),I=-1):b=!0,B(S,E-W))):(A.sortIndex=G,t(a,A),h||d||(h=!0,O(T))),A},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(A){var P=p;return function(){var E=p;p=P;try{return A.apply(this,arguments)}finally{p=E}}}})(up);ap.exports=up;var My=ap.exports;/**
26
+ * @license React
27
+ * react-dom.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its 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 Oy=K,dt=My;function F(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var cp=new Set,wi={};function Yn(e,t){Tr(e,t),Tr(e+"Capture",t)}function Tr(e,t){for(wi[e]=t,e=0;e<t.length;e++)cp.add(t[e])}var Zt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Hs=Object.prototype.hasOwnProperty,Ry=/^[: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]*$/,Cc={},Nc={};function Ly(e){return Hs.call(Nc,e)?!0:Hs.call(Cc,e)?!1:Ry.test(e)?Nc[e]=!0:(Cc[e]=!0,!1)}function Dy(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Py(e,t,n,r){if(t===null||typeof t>"u"||Dy(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ye(e,t,n,r,i,o,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=l}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Le[e]=new Ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Le[t]=new Ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Le[e]=new Ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Le[e]=new Ye(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Le[e]=new Ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Le[e]=new Ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Le[e]=new Ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Le[e]=new Ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Le[e]=new Ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var iu=/[\-:]([a-z])/g;function ou(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(iu,ou);Le[t]=new Ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(iu,ou);Le[t]=new Ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(iu,ou);Le[t]=new Ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Le[e]=new Ye(e,1,!1,e.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Le[e]=new Ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function lu(e,t,n,r){var i=Le.hasOwnProperty(t)?Le[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Py(t,n,i,r)&&(n=null),r||i===null?Ly(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var nn=Oy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,eo=Symbol.for("react.element"),ar=Symbol.for("react.portal"),ur=Symbol.for("react.fragment"),su=Symbol.for("react.strict_mode"),Ks=Symbol.for("react.profiler"),fp=Symbol.for("react.provider"),dp=Symbol.for("react.context"),au=Symbol.for("react.forward_ref"),Vs=Symbol.for("react.suspense"),Ws=Symbol.for("react.suspense_list"),uu=Symbol.for("react.memo"),un=Symbol.for("react.lazy"),pp=Symbol.for("react.offscreen"),Tc=Symbol.iterator;function Yr(e){return e===null||typeof e!="object"?null:(e=Tc&&e[Tc]||e["@@iterator"],typeof e=="function"?e:null)}var ve=Object.assign,Ql;function li(e){if(Ql===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Ql=t&&t[1]||""}return`
34
+ `+Ql+e}var Zl=!1;function Xl(e,t){if(!e||Zl)return"";Zl=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
35
+ `),o=r.stack.split(`
36
+ `),l=i.length-1,s=o.length-1;1<=l&&0<=s&&i[l]!==o[s];)s--;for(;1<=l&&0<=s;l--,s--)if(i[l]!==o[s]){if(l!==1||s!==1)do if(l--,s--,0>s||i[l]!==o[s]){var a=`
37
+ `+i[l].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{Zl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?li(e):""}function Fy(e){switch(e.tag){case 5:return li(e.type);case 16:return li("Lazy");case 13:return li("Suspense");case 19:return li("SuspenseList");case 0:case 2:case 15:return e=Xl(e.type,!1),e;case 11:return e=Xl(e.type.render,!1),e;case 1:return e=Xl(e.type,!0),e;default:return""}}function Gs(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ur:return"Fragment";case ar:return"Portal";case Ks:return"Profiler";case su:return"StrictMode";case Vs:return"Suspense";case Ws:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case dp:return(e.displayName||"Context")+".Consumer";case fp:return(e._context.displayName||"Context")+".Provider";case au:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uu:return t=e.displayName||null,t!==null?t:Gs(e.type)||"Memo";case un:t=e._payload,e=e._init;try{return Gs(e(t))}catch{}}return null}function zy(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gs(t);case 8:return t===su?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function _n(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function By(e){var t=hp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(l){r=""+l,o.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function to(e){e._valueTracker||(e._valueTracker=By(e))}function gp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ko(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}}function qs(e,t){var n=t.checked;return ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ac(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=_n(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function mp(e,t){t=t.checked,t!=null&&lu(e,"checked",t,!1)}function Ys(e,t){mp(e,t);var n=_n(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Qs(e,t.type,n):t.hasOwnProperty("defaultValue")&&Qs(e,t.type,_n(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Ic(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Qs(e,t,n){(t!=="number"||Ko(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var si=Array.isArray;function vr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+_n(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Zs(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(F(91));return ve({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Mc(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(F(92));if(si(n)){if(1<n.length)throw Error(F(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:_n(n)}}function yp(e,t){var n=_n(t.value),r=_n(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Oc(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function bp(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Xs(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?bp(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var no,Ep=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(no=no||document.createElement("div"),no.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=no.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function xi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ci={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Uy=["Webkit","ms","Moz","O"];Object.keys(ci).forEach(function(e){Uy.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ci[t]=ci[e]})});function vp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||ci.hasOwnProperty(e)&&ci[e]?(""+t).trim():t+"px"}function kp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=vp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var $y=ve({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Js(e,t){if(t){if($y[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(F(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(F(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(F(61))}if(t.style!=null&&typeof t.style!="object")throw Error(F(62))}}function ea(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 ta=null;function cu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var na=null,kr=null,wr=null;function Rc(e){if(e=Gi(e)){if(typeof na!="function")throw Error(F(280));var t=e.stateNode;t&&(t=Tl(t),na(e.stateNode,e.type,t))}}function wp(e){kr?wr?wr.push(e):wr=[e]:kr=e}function xp(){if(kr){var e=kr,t=wr;if(wr=kr=null,Rc(e),t)for(e=0;e<t.length;e++)Rc(t[e])}}function _p(e,t){return e(t)}function Sp(){}var Jl=!1;function Cp(e,t,n){if(Jl)return e(t,n);Jl=!0;try{return _p(e,t,n)}finally{Jl=!1,(kr!==null||wr!==null)&&(Sp(),xp())}}function _i(e,t){var n=e.stateNode;if(n===null)return null;var r=Tl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(F(231,t,typeof n));return n}var ra=!1;if(Zt)try{var Qr={};Object.defineProperty(Qr,"passive",{get:function(){ra=!0}}),window.addEventListener("test",Qr,Qr),window.removeEventListener("test",Qr,Qr)}catch{ra=!1}function jy(e,t,n,r,i,o,l,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var fi=!1,Vo=null,Wo=!1,ia=null,Hy={onError:function(e){fi=!0,Vo=e}};function Ky(e,t,n,r,i,o,l,s,a){fi=!1,Vo=null,jy.apply(Hy,arguments)}function Vy(e,t,n,r,i,o,l,s,a){if(Ky.apply(this,arguments),fi){if(fi){var u=Vo;fi=!1,Vo=null}else throw Error(F(198));Wo||(Wo=!0,ia=u)}}function Qn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Np(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Lc(e){if(Qn(e)!==e)throw Error(F(188))}function Wy(e){var t=e.alternate;if(!t){if(t=Qn(e),t===null)throw Error(F(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Lc(i),e;if(o===r)return Lc(i),t;o=o.sibling}throw Error(F(188))}if(n.return!==r.return)n=i,r=o;else{for(var l=!1,s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l)throw Error(F(189))}}if(n.alternate!==r)throw Error(F(190))}if(n.tag!==3)throw Error(F(188));return n.stateNode.current===n?e:t}function Tp(e){return e=Wy(e),e!==null?Ap(e):null}function Ap(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Ap(e);if(t!==null)return t;e=e.sibling}return null}var Ip=dt.unstable_scheduleCallback,Dc=dt.unstable_cancelCallback,Gy=dt.unstable_shouldYield,qy=dt.unstable_requestPaint,xe=dt.unstable_now,Yy=dt.unstable_getCurrentPriorityLevel,fu=dt.unstable_ImmediatePriority,Mp=dt.unstable_UserBlockingPriority,Go=dt.unstable_NormalPriority,Qy=dt.unstable_LowPriority,Op=dt.unstable_IdlePriority,_l=null,Ut=null;function Zy(e){if(Ut&&typeof Ut.onCommitFiberRoot=="function")try{Ut.onCommitFiberRoot(_l,e,void 0,(e.current.flags&128)===128)}catch{}}var Tt=Math.clz32?Math.clz32:e0,Xy=Math.log,Jy=Math.LN2;function e0(e){return e>>>=0,e===0?32:31-(Xy(e)/Jy|0)|0}var ro=64,io=4194304;function ai(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qo(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~i;s!==0?r=ai(s):(o&=l,o!==0&&(r=ai(o)))}else l=n&~i,l!==0?r=ai(l):o!==0&&(r=ai(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Tt(t),i=1<<n,r|=e[n],t&=~i;return r}function t0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function n0(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var l=31-Tt(o),s=1<<l,a=i[l];a===-1?(!(s&n)||s&r)&&(i[l]=t0(s,t)):a<=t&&(e.expiredLanes|=s),o&=~s}}function oa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rp(){var e=ro;return ro<<=1,!(ro&4194240)&&(ro=64),e}function es(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Vi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Tt(t),e[t]=n}function r0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Tt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function du(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Tt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ae=0;function Lp(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Dp,pu,Pp,Fp,zp,la=!1,oo=[],mn=null,yn=null,bn=null,Si=new Map,Ci=new Map,fn=[],i0="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 submit".split(" ");function Pc(e,t){switch(e){case"focusin":case"focusout":mn=null;break;case"dragenter":case"dragleave":yn=null;break;case"mouseover":case"mouseout":bn=null;break;case"pointerover":case"pointerout":Si.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ci.delete(t.pointerId)}}function Zr(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Gi(t),t!==null&&pu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function o0(e,t,n,r,i){switch(t){case"focusin":return mn=Zr(mn,e,t,n,r,i),!0;case"dragenter":return yn=Zr(yn,e,t,n,r,i),!0;case"mouseover":return bn=Zr(bn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Si.set(o,Zr(Si.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ci.set(o,Zr(Ci.get(o)||null,e,t,n,r,i)),!0}return!1}function Bp(e){var t=Fn(e.target);if(t!==null){var n=Qn(t);if(n!==null){if(t=n.tag,t===13){if(t=Np(n),t!==null){e.blockedOn=t,zp(e.priority,function(){Pp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Mo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=sa(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ta=r,n.target.dispatchEvent(r),ta=null}else return t=Gi(n),t!==null&&pu(t),e.blockedOn=n,!1;t.shift()}return!0}function Fc(e,t,n){Mo(e)&&n.delete(t)}function l0(){la=!1,mn!==null&&Mo(mn)&&(mn=null),yn!==null&&Mo(yn)&&(yn=null),bn!==null&&Mo(bn)&&(bn=null),Si.forEach(Fc),Ci.forEach(Fc)}function Xr(e,t){e.blockedOn===t&&(e.blockedOn=null,la||(la=!0,dt.unstable_scheduleCallback(dt.unstable_NormalPriority,l0)))}function Ni(e){function t(i){return Xr(i,e)}if(0<oo.length){Xr(oo[0],e);for(var n=1;n<oo.length;n++){var r=oo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(mn!==null&&Xr(mn,e),yn!==null&&Xr(yn,e),bn!==null&&Xr(bn,e),Si.forEach(t),Ci.forEach(t),n=0;n<fn.length;n++)r=fn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<fn.length&&(n=fn[0],n.blockedOn===null);)Bp(n),n.blockedOn===null&&fn.shift()}var xr=nn.ReactCurrentBatchConfig,Yo=!0;function s0(e,t,n,r){var i=ae,o=xr.transition;xr.transition=null;try{ae=1,hu(e,t,n,r)}finally{ae=i,xr.transition=o}}function a0(e,t,n,r){var i=ae,o=xr.transition;xr.transition=null;try{ae=4,hu(e,t,n,r)}finally{ae=i,xr.transition=o}}function hu(e,t,n,r){if(Yo){var i=sa(e,t,n,r);if(i===null)cs(e,t,r,Qo,n),Pc(e,r);else if(o0(i,e,t,n,r))r.stopPropagation();else if(Pc(e,r),t&4&&-1<i0.indexOf(e)){for(;i!==null;){var o=Gi(i);if(o!==null&&Dp(o),o=sa(e,t,n,r),o===null&&cs(e,t,r,Qo,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else cs(e,t,r,null,n)}}var Qo=null;function sa(e,t,n,r){if(Qo=null,e=cu(r),e=Fn(e),e!==null)if(t=Qn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Np(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Qo=e,null}function Up(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Yy()){case fu:return 1;case Mp:return 4;case Go:case Qy:return 16;case Op:return 536870912;default:return 16}default:return 16}}var pn=null,gu=null,Oo=null;function $p(){if(Oo)return Oo;var e,t=gu,n=t.length,r,i="value"in pn?pn.value:pn.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===i[o-r];r++);return Oo=i.slice(e,1<r?1-r:void 0)}function Ro(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function lo(){return!0}function zc(){return!1}function ht(e){function t(n,r,i,o,l){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?lo:zc,this.isPropagationStopped=zc,this}return ve(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=lo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=lo)},persist:function(){},isPersistent:lo}),t}var Br={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mu=ht(Br),Wi=ve({},Br,{view:0,detail:0}),u0=ht(Wi),ts,ns,Jr,Sl=ve({},Wi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:yu,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!==Jr&&(Jr&&e.type==="mousemove"?(ts=e.screenX-Jr.screenX,ns=e.screenY-Jr.screenY):ns=ts=0,Jr=e),ts)},movementY:function(e){return"movementY"in e?e.movementY:ns}}),Bc=ht(Sl),c0=ve({},Sl,{dataTransfer:0}),f0=ht(c0),d0=ve({},Wi,{relatedTarget:0}),rs=ht(d0),p0=ve({},Br,{animationName:0,elapsedTime:0,pseudoElement:0}),h0=ht(p0),g0=ve({},Br,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),m0=ht(g0),y0=ve({},Br,{data:0}),Uc=ht(y0),b0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},E0={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"},v0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function k0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=v0[e])?!!t[e]:!1}function yu(){return k0}var w0=ve({},Wi,{key:function(e){if(e.key){var t=b0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ro(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?E0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:yu,charCode:function(e){return e.type==="keypress"?Ro(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ro(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),x0=ht(w0),_0=ve({},Sl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$c=ht(_0),S0=ve({},Wi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:yu}),C0=ht(S0),N0=ve({},Br,{propertyName:0,elapsedTime:0,pseudoElement:0}),T0=ht(N0),A0=ve({},Sl,{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}),I0=ht(A0),M0=[9,13,27,32],bu=Zt&&"CompositionEvent"in window,di=null;Zt&&"documentMode"in document&&(di=document.documentMode);var O0=Zt&&"TextEvent"in window&&!di,jp=Zt&&(!bu||di&&8<di&&11>=di),jc=" ",Hc=!1;function Hp(e,t){switch(e){case"keyup":return M0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cr=!1;function R0(e,t){switch(e){case"compositionend":return Kp(t);case"keypress":return t.which!==32?null:(Hc=!0,jc);case"textInput":return e=t.data,e===jc&&Hc?null:e;default:return null}}function L0(e,t){if(cr)return e==="compositionend"||!bu&&Hp(e,t)?(e=$p(),Oo=gu=pn=null,cr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return jp&&t.locale!=="ko"?null:t.data;default:return null}}var D0={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 Kc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!D0[e.type]:t==="textarea"}function Vp(e,t,n,r){wp(r),t=Zo(t,"onChange"),0<t.length&&(n=new mu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var pi=null,Ti=null;function P0(e){nh(e,0)}function Cl(e){var t=pr(e);if(gp(t))return e}function F0(e,t){if(e==="change")return t}var Wp=!1;if(Zt){var is;if(Zt){var os="oninput"in document;if(!os){var Vc=document.createElement("div");Vc.setAttribute("oninput","return;"),os=typeof Vc.oninput=="function"}is=os}else is=!1;Wp=is&&(!document.documentMode||9<document.documentMode)}function Wc(){pi&&(pi.detachEvent("onpropertychange",Gp),Ti=pi=null)}function Gp(e){if(e.propertyName==="value"&&Cl(Ti)){var t=[];Vp(t,Ti,e,cu(e)),Cp(P0,t)}}function z0(e,t,n){e==="focusin"?(Wc(),pi=t,Ti=n,pi.attachEvent("onpropertychange",Gp)):e==="focusout"&&Wc()}function B0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Cl(Ti)}function U0(e,t){if(e==="click")return Cl(t)}function $0(e,t){if(e==="input"||e==="change")return Cl(t)}function j0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mt=typeof Object.is=="function"?Object.is:j0;function Ai(e,t){if(Mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Hs.call(t,i)||!Mt(e[i],t[i]))return!1}return!0}function Gc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qc(e,t){var n=Gc(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Gc(n)}}function qp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?qp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yp(){for(var e=window,t=Ko();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ko(e.document)}return t}function Eu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function H0(e){var t=Yp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&qp(n.ownerDocument.documentElement,n)){if(r!==null&&Eu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=qc(n,o);var l=qc(n,r);i&&l&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var K0=Zt&&"documentMode"in document&&11>=document.documentMode,fr=null,aa=null,hi=null,ua=!1;function Yc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ua||fr==null||fr!==Ko(r)||(r=fr,"selectionStart"in r&&Eu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),hi&&Ai(hi,r)||(hi=r,r=Zo(aa,"onSelect"),0<r.length&&(t=new mu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=fr)))}function so(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var dr={animationend:so("Animation","AnimationEnd"),animationiteration:so("Animation","AnimationIteration"),animationstart:so("Animation","AnimationStart"),transitionend:so("Transition","TransitionEnd")},ls={},Qp={};Zt&&(Qp=document.createElement("div").style,"AnimationEvent"in window||(delete dr.animationend.animation,delete dr.animationiteration.animation,delete dr.animationstart.animation),"TransitionEvent"in window||delete dr.transitionend.transition);function Nl(e){if(ls[e])return ls[e];if(!dr[e])return e;var t=dr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Qp)return ls[e]=t[n];return e}var Zp=Nl("animationend"),Xp=Nl("animationiteration"),Jp=Nl("animationstart"),eh=Nl("transitionend"),th=new Map,Qc="abort auxClick 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(" ");function Cn(e,t){th.set(e,t),Yn(t,[e])}for(var ss=0;ss<Qc.length;ss++){var as=Qc[ss],V0=as.toLowerCase(),W0=as[0].toUpperCase()+as.slice(1);Cn(V0,"on"+W0)}Cn(Zp,"onAnimationEnd");Cn(Xp,"onAnimationIteration");Cn(Jp,"onAnimationStart");Cn("dblclick","onDoubleClick");Cn("focusin","onFocus");Cn("focusout","onBlur");Cn(eh,"onTransitionEnd");Tr("onMouseEnter",["mouseout","mouseover"]);Tr("onMouseLeave",["mouseout","mouseover"]);Tr("onPointerEnter",["pointerout","pointerover"]);Tr("onPointerLeave",["pointerout","pointerover"]);Yn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Yn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Yn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Yn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Yn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Yn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ui="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(" "),G0=new Set("cancel close invalid load scroll toggle".split(" ").concat(ui));function Zc(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Vy(r,t,void 0,e),e.currentTarget=null}function nh(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var l=r.length-1;0<=l;l--){var s=r[l],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==o&&i.isPropagationStopped())break e;Zc(i,s,u),o=a}else for(l=0;l<r.length;l++){if(s=r[l],a=s.instance,u=s.currentTarget,s=s.listener,a!==o&&i.isPropagationStopped())break e;Zc(i,s,u),o=a}}}if(Wo)throw e=ia,Wo=!1,ia=null,e}function ge(e,t){var n=t[ha];n===void 0&&(n=t[ha]=new Set);var r=e+"__bubble";n.has(r)||(rh(t,e,2,!1),n.add(r))}function us(e,t,n){var r=0;t&&(r|=4),rh(n,e,r,t)}var ao="_reactListening"+Math.random().toString(36).slice(2);function Ii(e){if(!e[ao]){e[ao]=!0,cp.forEach(function(n){n!=="selectionchange"&&(G0.has(n)||us(n,!1,e),us(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ao]||(t[ao]=!0,us("selectionchange",!1,t))}}function rh(e,t,n,r){switch(Up(t)){case 1:var i=s0;break;case 4:i=a0;break;default:i=hu}n=i.bind(null,t,n,e),i=void 0,!ra||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function cs(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&&(a=l.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;l=l.return}for(;s!==null;){if(l=Fn(s),l===null)return;if(a=l.tag,a===5||a===6){r=o=l;continue e}s=s.parentNode}}r=r.return}Cp(function(){var u=o,c=cu(n),f=[];e:{var p=th.get(e);if(p!==void 0){var d=mu,h=e;switch(e){case"keypress":if(Ro(n)===0)break e;case"keydown":case"keyup":d=x0;break;case"focusin":h="focus",d=rs;break;case"focusout":h="blur",d=rs;break;case"beforeblur":case"afterblur":d=rs;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":d=Bc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":d=f0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":d=C0;break;case Zp:case Xp:case Jp:d=h0;break;case eh:d=T0;break;case"scroll":d=u0;break;case"wheel":d=I0;break;case"copy":case"cut":case"paste":d=m0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":d=$c}var b=(t&4)!==0,C=!b&&e==="scroll",g=b?p!==null?p+"Capture":null:p;b=[];for(var m=u,y;m!==null;){y=m;var S=y.stateNode;if(y.tag===5&&S!==null&&(y=S,g!==null&&(S=_i(m,g),S!=null&&b.push(Mi(m,S,y)))),C)break;m=m.return}0<b.length&&(p=new d(p,h,null,n,c),f.push({event:p,listeners:b}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",d=e==="mouseout"||e==="pointerout",p&&n!==ta&&(h=n.relatedTarget||n.fromElement)&&(Fn(h)||h[Xt]))break e;if((d||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,d?(h=n.relatedTarget||n.toElement,d=u,h=h?Fn(h):null,h!==null&&(C=Qn(h),h!==C||h.tag!==5&&h.tag!==6)&&(h=null)):(d=null,h=u),d!==h)){if(b=Bc,S="onMouseLeave",g="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(b=$c,S="onPointerLeave",g="onPointerEnter",m="pointer"),C=d==null?p:pr(d),y=h==null?p:pr(h),p=new b(S,m+"leave",d,n,c),p.target=C,p.relatedTarget=y,S=null,Fn(c)===u&&(b=new b(g,m+"enter",h,n,c),b.target=y,b.relatedTarget=C,S=b),C=S,d&&h)t:{for(b=d,g=h,m=0,y=b;y;y=nr(y))m++;for(y=0,S=g;S;S=nr(S))y++;for(;0<m-y;)b=nr(b),m--;for(;0<y-m;)g=nr(g),y--;for(;m--;){if(b===g||g!==null&&b===g.alternate)break t;b=nr(b),g=nr(g)}b=null}else b=null;d!==null&&Xc(f,p,d,b,!1),h!==null&&C!==null&&Xc(f,C,h,b,!0)}}e:{if(p=u?pr(u):window,d=p.nodeName&&p.nodeName.toLowerCase(),d==="select"||d==="input"&&p.type==="file")var T=F0;else if(Kc(p))if(Wp)T=$0;else{T=B0;var v=z0}else(d=p.nodeName)&&d.toLowerCase()==="input"&&(p.type==="checkbox"||p.type==="radio")&&(T=U0);if(T&&(T=T(e,u))){Vp(f,T,n,c);break e}v&&v(e,p,u),e==="focusout"&&(v=p._wrapperState)&&v.controlled&&p.type==="number"&&Qs(p,"number",p.value)}switch(v=u?pr(u):window,e){case"focusin":(Kc(v)||v.contentEditable==="true")&&(fr=v,aa=u,hi=null);break;case"focusout":hi=aa=fr=null;break;case"mousedown":ua=!0;break;case"contextmenu":case"mouseup":case"dragend":ua=!1,Yc(f,n,c);break;case"selectionchange":if(K0)break;case"keydown":case"keyup":Yc(f,n,c)}var N;if(bu)e:{switch(e){case"compositionstart":var I="onCompositionStart";break e;case"compositionend":I="onCompositionEnd";break e;case"compositionupdate":I="onCompositionUpdate";break e}I=void 0}else cr?Hp(e,n)&&(I="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(I="onCompositionStart");I&&(jp&&n.locale!=="ko"&&(cr||I!=="onCompositionStart"?I==="onCompositionEnd"&&cr&&(N=$p()):(pn=c,gu="value"in pn?pn.value:pn.textContent,cr=!0)),v=Zo(u,I),0<v.length&&(I=new Uc(I,e,null,n,c),f.push({event:I,listeners:v}),N?I.data=N:(N=Kp(n),N!==null&&(I.data=N)))),(N=O0?R0(e,n):L0(e,n))&&(u=Zo(u,"onBeforeInput"),0<u.length&&(c=new Uc("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:u}),c.data=N))}nh(f,t)})}function Mi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Zo(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=_i(e,n),o!=null&&r.unshift(Mi(e,o,i)),o=_i(e,t),o!=null&&r.push(Mi(e,o,i))),e=e.return}return r}function nr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Xc(e,t,n,r,i){for(var o=t._reactName,l=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,i?(a=_i(n,o),a!=null&&l.unshift(Mi(n,a,s))):i||(a=_i(n,o),a!=null&&l.push(Mi(n,a,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var q0=/\r\n?/g,Y0=/\u0000|\uFFFD/g;function Jc(e){return(typeof e=="string"?e:""+e).replace(q0,`
38
+ `).replace(Y0,"")}function uo(e,t,n){if(t=Jc(t),Jc(e)!==t&&n)throw Error(F(425))}function Xo(){}var ca=null,fa=null;function da(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var pa=typeof setTimeout=="function"?setTimeout:void 0,Q0=typeof clearTimeout=="function"?clearTimeout:void 0,ef=typeof Promise=="function"?Promise:void 0,Z0=typeof queueMicrotask=="function"?queueMicrotask:typeof ef<"u"?function(e){return ef.resolve(null).then(e).catch(X0)}:pa;function X0(e){setTimeout(function(){throw e})}function fs(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ni(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ni(t)}function En(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function tf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var Ur=Math.random().toString(36).slice(2),zt="__reactFiber$"+Ur,Oi="__reactProps$"+Ur,Xt="__reactContainer$"+Ur,ha="__reactEvents$"+Ur,J0="__reactListeners$"+Ur,eb="__reactHandles$"+Ur;function Fn(e){var t=e[zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xt]||n[zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=tf(e);e!==null;){if(n=e[zt])return n;e=tf(e)}return t}e=n,n=e.parentNode}return null}function Gi(e){return e=e[zt]||e[Xt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function pr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(F(33))}function Tl(e){return e[Oi]||null}var ga=[],hr=-1;function Nn(e){return{current:e}}function me(e){0>hr||(e.current=ga[hr],ga[hr]=null,hr--)}function pe(e,t){hr++,ga[hr]=e.current,e.current=t}var Sn={},Ue=Nn(Sn),et=Nn(!1),Hn=Sn;function Ar(e,t){var n=e.type.contextTypes;if(!n)return Sn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function tt(e){return e=e.childContextTypes,e!=null}function Jo(){me(et),me(Ue)}function nf(e,t,n){if(Ue.current!==Sn)throw Error(F(168));pe(Ue,t),pe(et,n)}function ih(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(F(108,zy(e)||"Unknown",i));return ve({},n,r)}function el(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sn,Hn=Ue.current,pe(Ue,e),pe(et,et.current),!0}function rf(e,t,n){var r=e.stateNode;if(!r)throw Error(F(169));n?(e=ih(e,t,Hn),r.__reactInternalMemoizedMergedChildContext=e,me(et),me(Ue),pe(Ue,e)):me(et),pe(et,n)}var Gt=null,Al=!1,ds=!1;function oh(e){Gt===null?Gt=[e]:Gt.push(e)}function tb(e){Al=!0,oh(e)}function Tn(){if(!ds&&Gt!==null){ds=!0;var e=0,t=ae;try{var n=Gt;for(ae=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Gt=null,Al=!1}catch(i){throw Gt!==null&&(Gt=Gt.slice(e+1)),Ip(fu,Tn),i}finally{ae=t,ds=!1}}return null}var gr=[],mr=0,tl=null,nl=0,gt=[],mt=0,Kn=null,qt=1,Yt="";function Rn(e,t){gr[mr++]=nl,gr[mr++]=tl,tl=e,nl=t}function lh(e,t,n){gt[mt++]=qt,gt[mt++]=Yt,gt[mt++]=Kn,Kn=e;var r=qt;e=Yt;var i=32-Tt(r)-1;r&=~(1<<i),n+=1;var o=32-Tt(t)+i;if(30<o){var l=i-i%5;o=(r&(1<<l)-1).toString(32),r>>=l,i-=l,qt=1<<32-Tt(t)+i|n<<i|r,Yt=o+e}else qt=1<<o|n<<i|r,Yt=e}function vu(e){e.return!==null&&(Rn(e,1),lh(e,1,0))}function ku(e){for(;e===tl;)tl=gr[--mr],gr[mr]=null,nl=gr[--mr],gr[mr]=null;for(;e===Kn;)Kn=gt[--mt],gt[mt]=null,Yt=gt[--mt],gt[mt]=null,qt=gt[--mt],gt[mt]=null}var ct=null,ut=null,ye=!1,Nt=null;function sh(e,t){var n=bt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function of(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,ct=e,ut=En(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,ct=e,ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Kn!==null?{id:qt,overflow:Yt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=bt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ct=e,ut=null,!0):!1;default:return!1}}function ma(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ya(e){if(ye){var t=ut;if(t){var n=t;if(!of(e,t)){if(ma(e))throw Error(F(418));t=En(n.nextSibling);var r=ct;t&&of(e,t)?sh(r,n):(e.flags=e.flags&-4097|2,ye=!1,ct=e)}}else{if(ma(e))throw Error(F(418));e.flags=e.flags&-4097|2,ye=!1,ct=e}}}function lf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ct=e}function co(e){if(e!==ct)return!1;if(!ye)return lf(e),ye=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!da(e.type,e.memoizedProps)),t&&(t=ut)){if(ma(e))throw ah(),Error(F(418));for(;t;)sh(e,t),t=En(t.nextSibling)}if(lf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(F(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){ut=En(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}ut=null}}else ut=ct?En(e.stateNode.nextSibling):null;return!0}function ah(){for(var e=ut;e;)e=En(e.nextSibling)}function Ir(){ut=ct=null,ye=!1}function wu(e){Nt===null?Nt=[e]:Nt.push(e)}var nb=nn.ReactCurrentBatchConfig;function ei(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(F(309));var r=n.stateNode}if(!r)throw Error(F(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(l){var s=i.refs;l===null?delete s[o]:s[o]=l},t._stringRef=o,t)}if(typeof e!="string")throw Error(F(284));if(!n._owner)throw Error(F(290,e))}return e}function fo(e,t){throw e=Object.prototype.toString.call(t),Error(F(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function sf(e){var t=e._init;return t(e._payload)}function uh(e){function t(g,m){if(e){var y=g.deletions;y===null?(g.deletions=[m],g.flags|=16):y.push(m)}}function n(g,m){if(!e)return null;for(;m!==null;)t(g,m),m=m.sibling;return null}function r(g,m){for(g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function i(g,m){return g=xn(g,m),g.index=0,g.sibling=null,g}function o(g,m,y){return g.index=y,e?(y=g.alternate,y!==null?(y=y.index,y<m?(g.flags|=2,m):y):(g.flags|=2,m)):(g.flags|=1048576,m)}function l(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,m,y,S){return m===null||m.tag!==6?(m=Es(y,g.mode,S),m.return=g,m):(m=i(m,y),m.return=g,m)}function a(g,m,y,S){var T=y.type;return T===ur?c(g,m,y.props.children,S,y.key):m!==null&&(m.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===un&&sf(T)===m.type)?(S=i(m,y.props),S.ref=ei(g,m,y),S.return=g,S):(S=Uo(y.type,y.key,y.props,null,g.mode,S),S.ref=ei(g,m,y),S.return=g,S)}function u(g,m,y,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==y.containerInfo||m.stateNode.implementation!==y.implementation?(m=vs(y,g.mode,S),m.return=g,m):(m=i(m,y.children||[]),m.return=g,m)}function c(g,m,y,S,T){return m===null||m.tag!==7?(m=$n(y,g.mode,S,T),m.return=g,m):(m=i(m,y),m.return=g,m)}function f(g,m,y){if(typeof m=="string"&&m!==""||typeof m=="number")return m=Es(""+m,g.mode,y),m.return=g,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case eo:return y=Uo(m.type,m.key,m.props,null,g.mode,y),y.ref=ei(g,null,m),y.return=g,y;case ar:return m=vs(m,g.mode,y),m.return=g,m;case un:var S=m._init;return f(g,S(m._payload),y)}if(si(m)||Yr(m))return m=$n(m,g.mode,y,null),m.return=g,m;fo(g,m)}return null}function p(g,m,y,S){var T=m!==null?m.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return T!==null?null:s(g,m,""+y,S);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case eo:return y.key===T?a(g,m,y,S):null;case ar:return y.key===T?u(g,m,y,S):null;case un:return T=y._init,p(g,m,T(y._payload),S)}if(si(y)||Yr(y))return T!==null?null:c(g,m,y,S,null);fo(g,y)}return null}function d(g,m,y,S,T){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(y)||null,s(m,g,""+S,T);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case eo:return g=g.get(S.key===null?y:S.key)||null,a(m,g,S,T);case ar:return g=g.get(S.key===null?y:S.key)||null,u(m,g,S,T);case un:var v=S._init;return d(g,m,y,v(S._payload),T)}if(si(S)||Yr(S))return g=g.get(y)||null,c(m,g,S,T,null);fo(m,S)}return null}function h(g,m,y,S){for(var T=null,v=null,N=m,I=m=0,R=null;N!==null&&I<y.length;I++){N.index>I?(R=N,N=null):R=N.sibling;var k=p(g,N,y[I],S);if(k===null){N===null&&(N=R);break}e&&N&&k.alternate===null&&t(g,N),m=o(k,m,I),v===null?T=k:v.sibling=k,v=k,N=R}if(I===y.length)return n(g,N),ye&&Rn(g,I),T;if(N===null){for(;I<y.length;I++)N=f(g,y[I],S),N!==null&&(m=o(N,m,I),v===null?T=N:v.sibling=N,v=N);return ye&&Rn(g,I),T}for(N=r(g,N);I<y.length;I++)R=d(N,g,I,y[I],S),R!==null&&(e&&R.alternate!==null&&N.delete(R.key===null?I:R.key),m=o(R,m,I),v===null?T=R:v.sibling=R,v=R);return e&&N.forEach(function(D){return t(g,D)}),ye&&Rn(g,I),T}function b(g,m,y,S){var T=Yr(y);if(typeof T!="function")throw Error(F(150));if(y=T.call(y),y==null)throw Error(F(151));for(var v=T=null,N=m,I=m=0,R=null,k=y.next();N!==null&&!k.done;I++,k=y.next()){N.index>I?(R=N,N=null):R=N.sibling;var D=p(g,N,k.value,S);if(D===null){N===null&&(N=R);break}e&&N&&D.alternate===null&&t(g,N),m=o(D,m,I),v===null?T=D:v.sibling=D,v=D,N=R}if(k.done)return n(g,N),ye&&Rn(g,I),T;if(N===null){for(;!k.done;I++,k=y.next())k=f(g,k.value,S),k!==null&&(m=o(k,m,I),v===null?T=k:v.sibling=k,v=k);return ye&&Rn(g,I),T}for(N=r(g,N);!k.done;I++,k=y.next())k=d(N,g,I,k.value,S),k!==null&&(e&&k.alternate!==null&&N.delete(k.key===null?I:k.key),m=o(k,m,I),v===null?T=k:v.sibling=k,v=k);return e&&N.forEach(function(L){return t(g,L)}),ye&&Rn(g,I),T}function C(g,m,y,S){if(typeof y=="object"&&y!==null&&y.type===ur&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case eo:e:{for(var T=y.key,v=m;v!==null;){if(v.key===T){if(T=y.type,T===ur){if(v.tag===7){n(g,v.sibling),m=i(v,y.props.children),m.return=g,g=m;break e}}else if(v.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===un&&sf(T)===v.type){n(g,v.sibling),m=i(v,y.props),m.ref=ei(g,v,y),m.return=g,g=m;break e}n(g,v);break}else t(g,v);v=v.sibling}y.type===ur?(m=$n(y.props.children,g.mode,S,y.key),m.return=g,g=m):(S=Uo(y.type,y.key,y.props,null,g.mode,S),S.ref=ei(g,m,y),S.return=g,g=S)}return l(g);case ar:e:{for(v=y.key;m!==null;){if(m.key===v)if(m.tag===4&&m.stateNode.containerInfo===y.containerInfo&&m.stateNode.implementation===y.implementation){n(g,m.sibling),m=i(m,y.children||[]),m.return=g,g=m;break e}else{n(g,m);break}else t(g,m);m=m.sibling}m=vs(y,g.mode,S),m.return=g,g=m}return l(g);case un:return v=y._init,C(g,m,v(y._payload),S)}if(si(y))return h(g,m,y,S);if(Yr(y))return b(g,m,y,S);fo(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,m!==null&&m.tag===6?(n(g,m.sibling),m=i(m,y),m.return=g,g=m):(n(g,m),m=Es(y,g.mode,S),m.return=g,g=m),l(g)):n(g,m)}return C}var Mr=uh(!0),ch=uh(!1),rl=Nn(null),il=null,yr=null,xu=null;function _u(){xu=yr=il=null}function Su(e){var t=rl.current;me(rl),e._currentValue=t}function ba(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _r(e,t){il=e,xu=yr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Je=!0),e.firstContext=null)}function vt(e){var t=e._currentValue;if(xu!==e)if(e={context:e,memoizedValue:t,next:null},yr===null){if(il===null)throw Error(F(308));yr=e,il.dependencies={lanes:0,firstContext:e}}else yr=yr.next=e;return t}var zn=null;function Cu(e){zn===null?zn=[e]:zn.push(e)}function fh(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Cu(t)):(n.next=i.next,i.next=n),t.interleaved=n,Jt(e,r)}function Jt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var cn=!1;function Nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dh(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Qt(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function vn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oe&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Jt(e,n)}return i=r.interleaved,i===null?(t.next=t,Cu(r)):(t.next=i.next,i.next=t),r.interleaved=t,Jt(e,n)}function Lo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,du(e,n)}}function af(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=l:o=o.next=l,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ol(e,t,n,r){var i=e.updateQueue;cn=!1;var o=i.firstBaseUpdate,l=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?o=u:l.next=u,l=a;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==l&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=a))}if(o!==null){var f=i.baseState;l=0,c=u=a=null,s=o;do{var p=s.lane,d=s.eventTime;if((r&p)===p){c!==null&&(c=c.next={eventTime:d,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,b=s;switch(p=t,d=n,b.tag){case 1:if(h=b.payload,typeof h=="function"){f=h.call(d,f,p);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=b.payload,p=typeof h=="function"?h.call(d,f,p):h,p==null)break e;f=ve({},f,p);break e;case 2:cn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[s]:p.push(s))}else d={eventTime:d,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=d,a=f):c=c.next=d,l|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(c===null&&(a=f),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,t=i.shared.interleaved,t!==null){i=t;do l|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Wn|=l,e.lanes=l,e.memoizedState=f}}function uf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(F(191,i));i.call(r)}}}var qi={},$t=Nn(qi),Ri=Nn(qi),Li=Nn(qi);function Bn(e){if(e===qi)throw Error(F(174));return e}function Tu(e,t){switch(pe(Li,t),pe(Ri,e),pe($t,qi),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Xs(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Xs(t,e)}me($t),pe($t,t)}function Or(){me($t),me(Ri),me(Li)}function ph(e){Bn(Li.current);var t=Bn($t.current),n=Xs(t,e.type);t!==n&&(pe(Ri,e),pe($t,n))}function Au(e){Ri.current===e&&(me($t),me(Ri))}var be=Nn(0);function ll(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ps=[];function Iu(){for(var e=0;e<ps.length;e++)ps[e]._workInProgressVersionPrimary=null;ps.length=0}var Do=nn.ReactCurrentDispatcher,hs=nn.ReactCurrentBatchConfig,Vn=0,Ee=null,Te=null,Ie=null,sl=!1,gi=!1,Di=0,rb=0;function De(){throw Error(F(321))}function Mu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mt(e[n],t[n]))return!1;return!0}function Ou(e,t,n,r,i,o){if(Vn=o,Ee=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Do.current=e===null||e.memoizedState===null?sb:ab,e=n(r,i),gi){o=0;do{if(gi=!1,Di=0,25<=o)throw Error(F(301));o+=1,Ie=Te=null,t.updateQueue=null,Do.current=ub,e=n(r,i)}while(gi)}if(Do.current=al,t=Te!==null&&Te.next!==null,Vn=0,Ie=Te=Ee=null,sl=!1,t)throw Error(F(300));return e}function Ru(){var e=Di!==0;return Di=0,e}function Pt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ie===null?Ee.memoizedState=Ie=e:Ie=Ie.next=e,Ie}function kt(){if(Te===null){var e=Ee.alternate;e=e!==null?e.memoizedState:null}else e=Te.next;var t=Ie===null?Ee.memoizedState:Ie.next;if(t!==null)Ie=t,Te=e;else{if(e===null)throw Error(F(310));Te=e,e={memoizedState:Te.memoizedState,baseState:Te.baseState,baseQueue:Te.baseQueue,queue:Te.queue,next:null},Ie===null?Ee.memoizedState=Ie=e:Ie=Ie.next=e}return Ie}function Pi(e,t){return typeof t=="function"?t(e):t}function gs(e){var t=kt(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=Te,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var l=i.next;i.next=o.next,o.next=l}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var s=l=null,a=null,u=o;do{var c=u.lane;if((Vn&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(s=a=f,l=r):a=a.next=f,Ee.lanes|=c,Wn|=c}u=u.next}while(u!==null&&u!==o);a===null?l=r:a.next=s,Mt(r,t.memoizedState)||(Je=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Ee.lanes|=o,Wn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function ms(e){var t=kt(),n=t.queue;if(n===null)throw Error(F(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var l=i=i.next;do o=e(o,l.action),l=l.next;while(l!==i);Mt(o,t.memoizedState)||(Je=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function hh(){}function gh(e,t){var n=Ee,r=kt(),i=t(),o=!Mt(r.memoizedState,i);if(o&&(r.memoizedState=i,Je=!0),r=r.queue,Lu(bh.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Ie!==null&&Ie.memoizedState.tag&1){if(n.flags|=2048,Fi(9,yh.bind(null,n,r,i,t),void 0,null),Me===null)throw Error(F(349));Vn&30||mh(n,t,i)}return i}function mh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function yh(e,t,n,r){t.value=n,t.getSnapshot=r,Eh(t)&&vh(e)}function bh(e,t,n){return n(function(){Eh(t)&&vh(e)})}function Eh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mt(e,n)}catch{return!0}}function vh(e){var t=Jt(e,1);t!==null&&At(t,e,1,-1)}function cf(e){var t=Pt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Pi,lastRenderedState:e},t.queue=e,e=e.dispatch=lb.bind(null,Ee,e),[t.memoizedState,e]}function Fi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ee.updateQueue,t===null?(t={lastEffect:null,stores:null},Ee.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function kh(){return kt().memoizedState}function Po(e,t,n,r){var i=Pt();Ee.flags|=e,i.memoizedState=Fi(1|t,n,void 0,r===void 0?null:r)}function Il(e,t,n,r){var i=kt();r=r===void 0?null:r;var o=void 0;if(Te!==null){var l=Te.memoizedState;if(o=l.destroy,r!==null&&Mu(r,l.deps)){i.memoizedState=Fi(t,n,o,r);return}}Ee.flags|=e,i.memoizedState=Fi(1|t,n,o,r)}function ff(e,t){return Po(8390656,8,e,t)}function Lu(e,t){return Il(2048,8,e,t)}function wh(e,t){return Il(4,2,e,t)}function xh(e,t){return Il(4,4,e,t)}function _h(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Sh(e,t,n){return n=n!=null?n.concat([e]):null,Il(4,4,_h.bind(null,t,e),n)}function Du(){}function Ch(e,t){var n=kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Nh(e,t){var n=kt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Mu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Th(e,t,n){return Vn&21?(Mt(n,t)||(n=Rp(),Ee.lanes|=n,Wn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Je=!0),e.memoizedState=n)}function ib(e,t){var n=ae;ae=n!==0&&4>n?n:4,e(!0);var r=hs.transition;hs.transition={};try{e(!1),t()}finally{ae=n,hs.transition=r}}function Ah(){return kt().memoizedState}function ob(e,t,n){var r=wn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ih(e))Mh(t,n);else if(n=fh(e,t,n,r),n!==null){var i=Ge();At(n,e,r,i),Oh(n,t,r)}}function lb(e,t,n){var r=wn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ih(e))Mh(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var l=t.lastRenderedState,s=o(l,n);if(i.hasEagerState=!0,i.eagerState=s,Mt(s,l)){var a=t.interleaved;a===null?(i.next=i,Cu(t)):(i.next=a.next,a.next=i),t.interleaved=i;return}}catch{}finally{}n=fh(e,t,i,r),n!==null&&(i=Ge(),At(n,e,r,i),Oh(n,t,r))}}function Ih(e){var t=e.alternate;return e===Ee||t!==null&&t===Ee}function Mh(e,t){gi=sl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Oh(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,du(e,n)}}var al={readContext:vt,useCallback:De,useContext:De,useEffect:De,useImperativeHandle:De,useInsertionEffect:De,useLayoutEffect:De,useMemo:De,useReducer:De,useRef:De,useState:De,useDebugValue:De,useDeferredValue:De,useTransition:De,useMutableSource:De,useSyncExternalStore:De,useId:De,unstable_isNewReconciler:!1},sb={readContext:vt,useCallback:function(e,t){return Pt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:ff,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Po(4194308,4,_h.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Po(4194308,4,e,t)},useInsertionEffect:function(e,t){return Po(4,2,e,t)},useMemo:function(e,t){var n=Pt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Pt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ob.bind(null,Ee,e),[r.memoizedState,e]},useRef:function(e){var t=Pt();return e={current:e},t.memoizedState=e},useState:cf,useDebugValue:Du,useDeferredValue:function(e){return Pt().memoizedState=e},useTransition:function(){var e=cf(!1),t=e[0];return e=ib.bind(null,e[1]),Pt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ee,i=Pt();if(ye){if(n===void 0)throw Error(F(407));n=n()}else{if(n=t(),Me===null)throw Error(F(349));Vn&30||mh(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ff(bh.bind(null,r,o,e),[e]),r.flags|=2048,Fi(9,yh.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Pt(),t=Me.identifierPrefix;if(ye){var n=Yt,r=qt;n=(r&~(1<<32-Tt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Di++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=rb++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ab={readContext:vt,useCallback:Ch,useContext:vt,useEffect:Lu,useImperativeHandle:Sh,useInsertionEffect:wh,useLayoutEffect:xh,useMemo:Nh,useReducer:gs,useRef:kh,useState:function(){return gs(Pi)},useDebugValue:Du,useDeferredValue:function(e){var t=kt();return Th(t,Te.memoizedState,e)},useTransition:function(){var e=gs(Pi)[0],t=kt().memoizedState;return[e,t]},useMutableSource:hh,useSyncExternalStore:gh,useId:Ah,unstable_isNewReconciler:!1},ub={readContext:vt,useCallback:Ch,useContext:vt,useEffect:Lu,useImperativeHandle:Sh,useInsertionEffect:wh,useLayoutEffect:xh,useMemo:Nh,useReducer:ms,useRef:kh,useState:function(){return ms(Pi)},useDebugValue:Du,useDeferredValue:function(e){var t=kt();return Te===null?t.memoizedState=e:Th(t,Te.memoizedState,e)},useTransition:function(){var e=ms(Pi)[0],t=kt().memoizedState;return[e,t]},useMutableSource:hh,useSyncExternalStore:gh,useId:Ah,unstable_isNewReconciler:!1};function St(e,t){if(e&&e.defaultProps){t=ve({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ea(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ve({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ml={isMounted:function(e){return(e=e._reactInternals)?Qn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ge(),i=wn(e),o=Qt(r,i);o.payload=t,n!=null&&(o.callback=n),t=vn(e,o,i),t!==null&&(At(t,e,i,r),Lo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ge(),i=wn(e),o=Qt(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=vn(e,o,i),t!==null&&(At(t,e,i,r),Lo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ge(),r=wn(e),i=Qt(n,r);i.tag=2,t!=null&&(i.callback=t),t=vn(e,i,r),t!==null&&(At(t,e,r,n),Lo(t,e,r))}};function df(e,t,n,r,i,o,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,l):t.prototype&&t.prototype.isPureReactComponent?!Ai(n,r)||!Ai(i,o):!0}function Rh(e,t,n){var r=!1,i=Sn,o=t.contextType;return typeof o=="object"&&o!==null?o=vt(o):(i=tt(t)?Hn:Ue.current,r=t.contextTypes,o=(r=r!=null)?Ar(e,i):Sn),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ml,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function pf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ml.enqueueReplaceState(t,t.state,null)}function va(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Nu(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=vt(o):(o=tt(t)?Hn:Ue.current,i.context=Ar(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Ea(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Ml.enqueueReplaceState(i,i.state,null),ol(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Rr(e,t){try{var n="",r=t;do n+=Fy(r),r=r.return;while(r);var i=n}catch(o){i=`
39
+ Error generating stack: `+o.message+`
40
+ `+o.stack}return{value:e,source:t,stack:i,digest:null}}function ys(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ka(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var cb=typeof WeakMap=="function"?WeakMap:Map;function Lh(e,t,n){n=Qt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){cl||(cl=!0,Ma=r),ka(e,t)},n}function Dh(e,t,n){n=Qt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ka(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){ka(e,t),typeof r!="function"&&(kn===null?kn=new Set([this]):kn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function hf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new cb;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=_b.bind(null,e,t,n),t.then(e,e))}function gf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function mf(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Qt(-1,1),t.tag=2,vn(n,t,1))),n.lanes|=1),e)}var fb=nn.ReactCurrentOwner,Je=!1;function Ve(e,t,n,r){t.child=e===null?ch(t,null,n,r):Mr(t,e.child,n,r)}function yf(e,t,n,r,i){n=n.render;var o=t.ref;return _r(t,i),r=Ou(e,t,n,r,o,i),n=Ru(),e!==null&&!Je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,en(e,t,i)):(ye&&n&&vu(t),t.flags|=1,Ve(e,t,r,i),t.child)}function bf(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Hu(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Ph(e,t,o,r,i)):(e=Uo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var l=o.memoizedProps;if(n=n.compare,n=n!==null?n:Ai,n(l,r)&&e.ref===t.ref)return en(e,t,i)}return t.flags|=1,e=xn(o,r),e.ref=t.ref,e.return=t,t.child=e}function Ph(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ai(o,r)&&e.ref===t.ref)if(Je=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Je=!0);else return t.lanes=e.lanes,en(e,t,i)}return wa(e,t,n,r,i)}function Fh(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},pe(Er,st),st|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,pe(Er,st),st|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,pe(Er,st),st|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,pe(Er,st),st|=r;return Ve(e,t,i,n),t.child}function zh(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function wa(e,t,n,r,i){var o=tt(n)?Hn:Ue.current;return o=Ar(t,o),_r(t,i),n=Ou(e,t,n,r,o,i),r=Ru(),e!==null&&!Je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,en(e,t,i)):(ye&&r&&vu(t),t.flags|=1,Ve(e,t,n,i),t.child)}function Ef(e,t,n,r,i){if(tt(n)){var o=!0;el(t)}else o=!1;if(_r(t,i),t.stateNode===null)Fo(e,t),Rh(t,n,r),va(t,n,r,i),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=vt(u):(u=tt(n)?Hn:Ue.current,u=Ar(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&pf(t,l,r,u),cn=!1;var p=t.memoizedState;l.state=p,ol(t,r,l,i),a=t.memoizedState,s!==r||p!==a||et.current||cn?(typeof c=="function"&&(Ea(t,n,c,r),a=t.memoizedState),(s=cn||df(t,n,s,r,p,a,u))?(f||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,dh(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:St(t.type,s),l.props=u,f=t.pendingProps,p=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=vt(a):(a=tt(n)?Hn:Ue.current,a=Ar(t,a));var d=n.getDerivedStateFromProps;(c=typeof d=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==f||p!==a)&&pf(t,l,r,a),cn=!1,p=t.memoizedState,l.state=p,ol(t,r,l,i);var h=t.memoizedState;s!==f||p!==h||et.current||cn?(typeof d=="function"&&(Ea(t,n,d,r),h=t.memoizedState),(u=cn||df(t,n,u,r,p,h,a)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,h,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,h,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),l.props=r,l.state=h,l.context=a,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return xa(e,t,n,r,o,i)}function xa(e,t,n,r,i,o){zh(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return i&&rf(t,n,!1),en(e,t,o);r=t.stateNode,fb.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Mr(t,e.child,null,o),t.child=Mr(t,null,s,o)):Ve(e,t,s,o),t.memoizedState=r.state,i&&rf(t,n,!0),t.child}function Bh(e){var t=e.stateNode;t.pendingContext?nf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&nf(e,t.context,!1),Tu(e,t.containerInfo)}function vf(e,t,n,r,i){return Ir(),wu(i),t.flags|=256,Ve(e,t,n,r),t.child}var _a={dehydrated:null,treeContext:null,retryLane:0};function Sa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Uh(e,t,n){var r=t.pendingProps,i=be.current,o=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),pe(be,i&1),e===null)return ya(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,o?(r=t.mode,o=t.child,l={mode:"hidden",children:l},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=l):o=Ll(l,r,0,null),e=$n(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Sa(n),t.memoizedState=_a,e):Pu(t,l));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return db(e,t,l,r,s,i,n);if(o){o=r.fallback,l=t.mode,i=e.child,s=i.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=xn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),s!==null?o=xn(s,o):(o=$n(o,l,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,l=e.child.memoizedState,l=l===null?Sa(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},o.memoizedState=l,o.childLanes=e.childLanes&~n,t.memoizedState=_a,r}return o=e.child,e=o.sibling,r=xn(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Pu(e,t){return t=Ll({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function po(e,t,n,r){return r!==null&&wu(r),Mr(t,e.child,null,n),e=Pu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function db(e,t,n,r,i,o,l){if(n)return t.flags&256?(t.flags&=-257,r=ys(Error(F(422))),po(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ll({mode:"visible",children:r.children},i,0,null),o=$n(o,i,l,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Mr(t,e.child,null,l),t.child.memoizedState=Sa(l),t.memoizedState=_a,o);if(!(t.mode&1))return po(e,t,l,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var s=r.dgst;return r=s,o=Error(F(419)),r=ys(o,r,void 0),po(e,t,l,r)}if(s=(l&e.childLanes)!==0,Je||s){if(r=Me,r!==null){switch(l&-l){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|l)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Jt(e,i),At(r,e,i,-1))}return ju(),r=ys(Error(F(421))),po(e,t,l,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Sb.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ut=En(i.nextSibling),ct=t,ye=!0,Nt=null,e!==null&&(gt[mt++]=qt,gt[mt++]=Yt,gt[mt++]=Kn,qt=e.id,Yt=e.overflow,Kn=t),t=Pu(t,r.children),t.flags|=4096,t)}function kf(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ba(e.return,t,n)}function bs(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function $h(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ve(e,t,r.children,n),r=be.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&kf(e,n,t);else if(e.tag===19)kf(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(pe(be,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ll(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),bs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ll(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}bs(t,!0,n,null,o);break;case"together":bs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Fo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function en(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Wn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(F(153));if(t.child!==null){for(e=t.child,n=xn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=xn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pb(e,t,n){switch(t.tag){case 3:Bh(t),Ir();break;case 5:ph(t);break;case 1:tt(t.type)&&el(t);break;case 4:Tu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;pe(rl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(pe(be,be.current&1),t.flags|=128,null):n&t.child.childLanes?Uh(e,t,n):(pe(be,be.current&1),e=en(e,t,n),e!==null?e.sibling:null);pe(be,be.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $h(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),pe(be,be.current),r)break;return null;case 22:case 23:return t.lanes=0,Fh(e,t,n)}return en(e,t,n)}var jh,Ca,Hh,Kh;jh=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ca=function(){};Hh=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Bn($t.current);var o=null;switch(n){case"input":i=qs(e,i),r=qs(e,r),o=[];break;case"select":i=ve({},i,{value:void 0}),r=ve({},r,{value:void 0}),o=[];break;case"textarea":i=Zs(e,i),r=Zs(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Xo)}Js(n,r);var l;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var s=i[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(wi.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var a=r[u];if(s=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(o||(o=[]),o.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(o=o||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(o=o||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(wi.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&ge("scroll",e),o||s===a||(o=[])):(o=o||[]).push(u,a))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Kh=function(e,t,n,r){n!==r&&(t.flags|=4)};function ti(e,t){if(!ye)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function hb(e,t,n){var r=t.pendingProps;switch(ku(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return tt(t.type)&&Jo(),Pe(t),null;case 3:return r=t.stateNode,Or(),me(et),me(Ue),Iu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(co(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Nt!==null&&(La(Nt),Nt=null))),Ca(e,t),Pe(t),null;case 5:Au(t);var i=Bn(Li.current);if(n=t.type,e!==null&&t.stateNode!=null)Hh(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(F(166));return Pe(t),null}if(e=Bn($t.current),co(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[zt]=t,r[Oi]=o,e=(t.mode&1)!==0,n){case"dialog":ge("cancel",r),ge("close",r);break;case"iframe":case"object":case"embed":ge("load",r);break;case"video":case"audio":for(i=0;i<ui.length;i++)ge(ui[i],r);break;case"source":ge("error",r);break;case"img":case"image":case"link":ge("error",r),ge("load",r);break;case"details":ge("toggle",r);break;case"input":Ac(r,o),ge("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ge("invalid",r);break;case"textarea":Mc(r,o),ge("invalid",r)}Js(n,o),i=null;for(var l in o)if(o.hasOwnProperty(l)){var s=o[l];l==="children"?typeof s=="string"?r.textContent!==s&&(o.suppressHydrationWarning!==!0&&uo(r.textContent,s,e),i=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&uo(r.textContent,s,e),i=["children",""+s]):wi.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&ge("scroll",r)}switch(n){case"input":to(r),Ic(r,o,!0);break;case"textarea":to(r),Oc(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Xo)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=bp(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[zt]=t,e[Oi]=r,jh(e,t,!1,!1),t.stateNode=e;e:{switch(l=ea(n,r),n){case"dialog":ge("cancel",e),ge("close",e),i=r;break;case"iframe":case"object":case"embed":ge("load",e),i=r;break;case"video":case"audio":for(i=0;i<ui.length;i++)ge(ui[i],e);i=r;break;case"source":ge("error",e),i=r;break;case"img":case"image":case"link":ge("error",e),ge("load",e),i=r;break;case"details":ge("toggle",e),i=r;break;case"input":Ac(e,r),i=qs(e,r),ge("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=ve({},r,{value:void 0}),ge("invalid",e);break;case"textarea":Mc(e,r),i=Zs(e,r),ge("invalid",e);break;default:i=r}Js(n,i),s=i;for(o in s)if(s.hasOwnProperty(o)){var a=s[o];o==="style"?kp(e,a):o==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Ep(e,a)):o==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&xi(e,a):typeof a=="number"&&xi(e,""+a):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(wi.hasOwnProperty(o)?a!=null&&o==="onScroll"&&ge("scroll",e):a!=null&&lu(e,o,a,l))}switch(n){case"input":to(e),Ic(e,r,!1);break;case"textarea":to(e),Oc(e);break;case"option":r.value!=null&&e.setAttribute("value",""+_n(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?vr(e,!!r.multiple,o,!1):r.defaultValue!=null&&vr(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Xo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Pe(t),null;case 6:if(e&&t.stateNode!=null)Kh(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(F(166));if(n=Bn(Li.current),Bn($t.current),co(t)){if(r=t.stateNode,n=t.memoizedProps,r[zt]=t,(o=r.nodeValue!==n)&&(e=ct,e!==null))switch(e.tag){case 3:uo(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&uo(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[zt]=t,t.stateNode=r}return Pe(t),null;case 13:if(me(be),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(ye&&ut!==null&&t.mode&1&&!(t.flags&128))ah(),Ir(),t.flags|=98560,o=!1;else if(o=co(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(F(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(F(317));o[zt]=t}else Ir(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Pe(t),o=!1}else Nt!==null&&(La(Nt),Nt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||be.current&1?Ae===0&&(Ae=3):ju())),t.updateQueue!==null&&(t.flags|=4),Pe(t),null);case 4:return Or(),Ca(e,t),e===null&&Ii(t.stateNode.containerInfo),Pe(t),null;case 10:return Su(t.type._context),Pe(t),null;case 17:return tt(t.type)&&Jo(),Pe(t),null;case 19:if(me(be),o=t.memoizedState,o===null)return Pe(t),null;if(r=(t.flags&128)!==0,l=o.rendering,l===null)if(r)ti(o,!1);else{if(Ae!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=ll(e),l!==null){for(t.flags|=128,ti(o,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,l=o.alternate,l===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return pe(be,be.current&1|2),t.child}e=e.sibling}o.tail!==null&&xe()>Lr&&(t.flags|=128,r=!0,ti(o,!1),t.lanes=4194304)}else{if(!r)if(e=ll(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ti(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!ye)return Pe(t),null}else 2*xe()-o.renderingStartTime>Lr&&n!==1073741824&&(t.flags|=128,r=!0,ti(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(n=o.last,n!==null?n.sibling=l:t.child=l,o.last=l)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=xe(),t.sibling=null,n=be.current,pe(be,r?n&1|2:n&1),t):(Pe(t),null);case 22:case 23:return $u(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?st&1073741824&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),null;case 24:return null;case 25:return null}throw Error(F(156,t.tag))}function gb(e,t){switch(ku(t),t.tag){case 1:return tt(t.type)&&Jo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Or(),me(et),me(Ue),Iu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Au(t),null;case 13:if(me(be),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(F(340));Ir()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return me(be),null;case 4:return Or(),null;case 10:return Su(t.type._context),null;case 22:case 23:return $u(),null;case 24:return null;default:return null}}var ho=!1,ze=!1,mb=typeof WeakSet=="function"?WeakSet:Set,$=null;function br(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ke(e,t,r)}else n.current=null}function Na(e,t,n){try{n()}catch(r){ke(e,t,r)}}var wf=!1;function yb(e,t){if(ca=Yo,e=Yp(),Eu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var d;f!==n||i!==0&&f.nodeType!==3||(s=l+i),f!==o||r!==0&&f.nodeType!==3||(a=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(d=f.firstChild)!==null;)p=f,f=d;for(;;){if(f===e)break t;if(p===n&&++u===i&&(s=l),p===o&&++c===r&&(a=l),(d=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=d}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(fa={focusedElem:e,selectionRange:n},Yo=!1,$=t;$!==null;)if(t=$,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,$=e;else for(;$!==null;){t=$;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var b=h.memoizedProps,C=h.memoizedState,g=t.stateNode,m=g.getSnapshotBeforeUpdate(t.elementType===t.type?b:St(t.type,b),C);g.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(F(163))}}catch(S){ke(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,$=e;break}$=t.return}return h=wf,wf=!1,h}function mi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Na(t,n,o)}i=i.next}while(i!==r)}}function Ol(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ta(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Vh(e){var t=e.alternate;t!==null&&(e.alternate=null,Vh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zt],delete t[Oi],delete t[ha],delete t[J0],delete t[eb])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Wh(e){return e.tag===5||e.tag===3||e.tag===4}function xf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Wh(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.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 Aa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Xo));else if(r!==4&&(e=e.child,e!==null))for(Aa(e,t,n),e=e.sibling;e!==null;)Aa(e,t,n),e=e.sibling}function Ia(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ia(e,t,n),e=e.sibling;e!==null;)Ia(e,t,n),e=e.sibling}var Oe=null,Ct=!1;function sn(e,t,n){for(n=n.child;n!==null;)Gh(e,t,n),n=n.sibling}function Gh(e,t,n){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(_l,n)}catch{}switch(n.tag){case 5:ze||br(n,t);case 6:var r=Oe,i=Ct;Oe=null,sn(e,t,n),Oe=r,Ct=i,Oe!==null&&(Ct?(e=Oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Oe.removeChild(n.stateNode));break;case 18:Oe!==null&&(Ct?(e=Oe,n=n.stateNode,e.nodeType===8?fs(e.parentNode,n):e.nodeType===1&&fs(e,n),Ni(e)):fs(Oe,n.stateNode));break;case 4:r=Oe,i=Ct,Oe=n.stateNode.containerInfo,Ct=!0,sn(e,t,n),Oe=r,Ct=i;break;case 0:case 11:case 14:case 15:if(!ze&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,l=o.destroy;o=o.tag,l!==void 0&&(o&2||o&4)&&Na(n,t,l),i=i.next}while(i!==r)}sn(e,t,n);break;case 1:if(!ze&&(br(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ke(n,t,s)}sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:n.mode&1?(ze=(r=ze)||n.memoizedState!==null,sn(e,t,n),ze=r):sn(e,t,n);break;default:sn(e,t,n)}}function _f(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new mb),t.forEach(function(r){var i=Cb.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function _t(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:Oe=s.stateNode,Ct=!1;break e;case 3:Oe=s.stateNode.containerInfo,Ct=!0;break e;case 4:Oe=s.stateNode.containerInfo,Ct=!0;break e}s=s.return}if(Oe===null)throw Error(F(160));Gh(o,l,i),Oe=null,Ct=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){ke(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)qh(t,e),t=t.sibling}function qh(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(_t(t,e),Lt(e),r&4){try{mi(3,e,e.return),Ol(3,e)}catch(b){ke(e,e.return,b)}try{mi(5,e,e.return)}catch(b){ke(e,e.return,b)}}break;case 1:_t(t,e),Lt(e),r&512&&n!==null&&br(n,n.return);break;case 5:if(_t(t,e),Lt(e),r&512&&n!==null&&br(n,n.return),e.flags&32){var i=e.stateNode;try{xi(i,"")}catch(b){ke(e,e.return,b)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,l=n!==null?n.memoizedProps:o,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&mp(i,o),ea(s,l);var u=ea(s,o);for(l=0;l<a.length;l+=2){var c=a[l],f=a[l+1];c==="style"?kp(i,f):c==="dangerouslySetInnerHTML"?Ep(i,f):c==="children"?xi(i,f):lu(i,c,f,u)}switch(s){case"input":Ys(i,o);break;case"textarea":yp(i,o);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var d=o.value;d!=null?vr(i,!!o.multiple,d,!1):p!==!!o.multiple&&(o.defaultValue!=null?vr(i,!!o.multiple,o.defaultValue,!0):vr(i,!!o.multiple,o.multiple?[]:"",!1))}i[Oi]=o}catch(b){ke(e,e.return,b)}}break;case 6:if(_t(t,e),Lt(e),r&4){if(e.stateNode===null)throw Error(F(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(b){ke(e,e.return,b)}}break;case 3:if(_t(t,e),Lt(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ni(t.containerInfo)}catch(b){ke(e,e.return,b)}break;case 4:_t(t,e),Lt(e);break;case 13:_t(t,e),Lt(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Bu=xe())),r&4&&_f(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ze=(u=ze)||c,_t(t,e),ze=u):_t(t,e),Lt(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!c&&e.mode&1)for($=e,c=e.child;c!==null;){for(f=$=c;$!==null;){switch(p=$,d=p.child,p.tag){case 0:case 11:case 14:case 15:mi(4,p,p.return);break;case 1:br(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount=="function"){r=p,n=p.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(b){ke(r,n,b)}}break;case 5:br(p,p.return);break;case 22:if(p.memoizedState!==null){Cf(f);continue}}d!==null?(d.return=p,$=d):Cf(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{i=f.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=f.stateNode,a=f.memoizedProps.style,l=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=vp("display",l))}catch(b){ke(e,e.return,b)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(b){ke(e,e.return,b)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:_t(t,e),Lt(e),r&4&&_f(e);break;case 21:break;default:_t(t,e),Lt(e)}}function Lt(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Wh(n)){var r=n;break e}n=n.return}throw Error(F(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(xi(i,""),r.flags&=-33);var o=xf(e);Ia(e,o,i);break;case 3:case 4:var l=r.stateNode.containerInfo,s=xf(e);Aa(e,s,l);break;default:throw Error(F(161))}}catch(a){ke(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function bb(e,t,n){$=e,Yh(e)}function Yh(e,t,n){for(var r=(e.mode&1)!==0;$!==null;){var i=$,o=i.child;if(i.tag===22&&r){var l=i.memoizedState!==null||ho;if(!l){var s=i.alternate,a=s!==null&&s.memoizedState!==null||ze;s=ho;var u=ze;if(ho=l,(ze=a)&&!u)for($=i;$!==null;)l=$,a=l.child,l.tag===22&&l.memoizedState!==null?Nf(i):a!==null?(a.return=l,$=a):Nf(i);for(;o!==null;)$=o,Yh(o),o=o.sibling;$=i,ho=s,ze=u}Sf(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,$=o):Sf(e)}}function Sf(e){for(;$!==null;){var t=$;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ze||Ol(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ze)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:St(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&uf(t,o,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}uf(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Ni(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(F(163))}ze||t.flags&512&&Ta(t)}catch(p){ke(t,t.return,p)}}if(t===e){$=null;break}if(n=t.sibling,n!==null){n.return=t.return,$=n;break}$=t.return}}function Cf(e){for(;$!==null;){var t=$;if(t===e){$=null;break}var n=t.sibling;if(n!==null){n.return=t.return,$=n;break}$=t.return}}function Nf(e){for(;$!==null;){var t=$;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ol(4,t)}catch(a){ke(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(a){ke(t,i,a)}}var o=t.return;try{Ta(t)}catch(a){ke(t,o,a)}break;case 5:var l=t.return;try{Ta(t)}catch(a){ke(t,l,a)}}}catch(a){ke(t,t.return,a)}if(t===e){$=null;break}var s=t.sibling;if(s!==null){s.return=t.return,$=s;break}$=t.return}}var Eb=Math.ceil,ul=nn.ReactCurrentDispatcher,Fu=nn.ReactCurrentOwner,Et=nn.ReactCurrentBatchConfig,oe=0,Me=null,Ce=null,Re=0,st=0,Er=Nn(0),Ae=0,zi=null,Wn=0,Rl=0,zu=0,yi=null,Xe=null,Bu=0,Lr=1/0,Wt=null,cl=!1,Ma=null,kn=null,go=!1,hn=null,fl=0,bi=0,Oa=null,zo=-1,Bo=0;function Ge(){return oe&6?xe():zo!==-1?zo:zo=xe()}function wn(e){return e.mode&1?oe&2&&Re!==0?Re&-Re:nb.transition!==null?(Bo===0&&(Bo=Rp()),Bo):(e=ae,e!==0||(e=window.event,e=e===void 0?16:Up(e.type)),e):1}function At(e,t,n,r){if(50<bi)throw bi=0,Oa=null,Error(F(185));Vi(e,n,r),(!(oe&2)||e!==Me)&&(e===Me&&(!(oe&2)&&(Rl|=n),Ae===4&&dn(e,Re)),nt(e,r),n===1&&oe===0&&!(t.mode&1)&&(Lr=xe()+500,Al&&Tn()))}function nt(e,t){var n=e.callbackNode;n0(e,t);var r=qo(e,e===Me?Re:0);if(r===0)n!==null&&Dc(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Dc(n),t===1)e.tag===0?tb(Tf.bind(null,e)):oh(Tf.bind(null,e)),Z0(function(){!(oe&6)&&Tn()}),n=null;else{switch(Lp(r)){case 1:n=fu;break;case 4:n=Mp;break;case 16:n=Go;break;case 536870912:n=Op;break;default:n=Go}n=rg(n,Qh.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Qh(e,t){if(zo=-1,Bo=0,oe&6)throw Error(F(327));var n=e.callbackNode;if(Sr()&&e.callbackNode!==n)return null;var r=qo(e,e===Me?Re:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=dl(e,r);else{t=r;var i=oe;oe|=2;var o=Xh();(Me!==e||Re!==t)&&(Wt=null,Lr=xe()+500,Un(e,t));do try{wb();break}catch(s){Zh(e,s)}while(!0);_u(),ul.current=o,oe=i,Ce!==null?t=0:(Me=null,Re=0,t=Ae)}if(t!==0){if(t===2&&(i=oa(e),i!==0&&(r=i,t=Ra(e,i))),t===1)throw n=zi,Un(e,0),dn(e,r),nt(e,xe()),n;if(t===6)dn(e,r);else{if(i=e.current.alternate,!(r&30)&&!vb(i)&&(t=dl(e,r),t===2&&(o=oa(e),o!==0&&(r=o,t=Ra(e,o))),t===1))throw n=zi,Un(e,0),dn(e,r),nt(e,xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(F(345));case 2:Ln(e,Xe,Wt);break;case 3:if(dn(e,r),(r&130023424)===r&&(t=Bu+500-xe(),10<t)){if(qo(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ge(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=pa(Ln.bind(null,e,Xe,Wt),t);break}Ln(e,Xe,Wt);break;case 4:if(dn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var l=31-Tt(r);o=1<<l,l=t[l],l>i&&(i=l),r&=~o}if(r=i,r=xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Eb(r/1960))-r,10<r){e.timeoutHandle=pa(Ln.bind(null,e,Xe,Wt),r);break}Ln(e,Xe,Wt);break;case 5:Ln(e,Xe,Wt);break;default:throw Error(F(329))}}}return nt(e,xe()),e.callbackNode===n?Qh.bind(null,e):null}function Ra(e,t){var n=yi;return e.current.memoizedState.isDehydrated&&(Un(e,t).flags|=256),e=dl(e,t),e!==2&&(t=Xe,Xe=n,t!==null&&La(t)),e}function La(e){Xe===null?Xe=e:Xe.push.apply(Xe,e)}function vb(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Mt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function dn(e,t){for(t&=~zu,t&=~Rl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Tt(t),r=1<<n;e[n]=-1,t&=~r}}function Tf(e){if(oe&6)throw Error(F(327));Sr();var t=qo(e,0);if(!(t&1))return nt(e,xe()),null;var n=dl(e,t);if(e.tag!==0&&n===2){var r=oa(e);r!==0&&(t=r,n=Ra(e,r))}if(n===1)throw n=zi,Un(e,0),dn(e,t),nt(e,xe()),n;if(n===6)throw Error(F(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ln(e,Xe,Wt),nt(e,xe()),null}function Uu(e,t){var n=oe;oe|=1;try{return e(t)}finally{oe=n,oe===0&&(Lr=xe()+500,Al&&Tn())}}function Gn(e){hn!==null&&hn.tag===0&&!(oe&6)&&Sr();var t=oe;oe|=1;var n=Et.transition,r=ae;try{if(Et.transition=null,ae=1,e)return e()}finally{ae=r,Et.transition=n,oe=t,!(oe&6)&&Tn()}}function $u(){st=Er.current,me(Er)}function Un(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Q0(n)),Ce!==null)for(n=Ce.return;n!==null;){var r=n;switch(ku(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Jo();break;case 3:Or(),me(et),me(Ue),Iu();break;case 5:Au(r);break;case 4:Or();break;case 13:me(be);break;case 19:me(be);break;case 10:Su(r.type._context);break;case 22:case 23:$u()}n=n.return}if(Me=e,Ce=e=xn(e.current,null),Re=st=t,Ae=0,zi=null,zu=Rl=Wn=0,Xe=yi=null,zn!==null){for(t=0;t<zn.length;t++)if(n=zn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var l=o.next;o.next=i,r.next=l}n.pending=r}zn=null}return e}function Zh(e,t){do{var n=Ce;try{if(_u(),Do.current=al,sl){for(var r=Ee.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}sl=!1}if(Vn=0,Ie=Te=Ee=null,gi=!1,Di=0,Fu.current=null,n===null||n.return===null){Ae=1,zi=t,Ce=null;break}e:{var o=e,l=n.return,s=n,a=t;if(t=Re,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=s,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var d=gf(l);if(d!==null){d.flags&=-257,mf(d,l,s,o,t),d.mode&1&&hf(o,u,t),t=d,a=u;var h=t.updateQueue;if(h===null){var b=new Set;b.add(a),t.updateQueue=b}else h.add(a);break e}else{if(!(t&1)){hf(o,u,t),ju();break e}a=Error(F(426))}}else if(ye&&s.mode&1){var C=gf(l);if(C!==null){!(C.flags&65536)&&(C.flags|=256),mf(C,l,s,o,t),wu(Rr(a,s));break e}}o=a=Rr(a,s),Ae!==4&&(Ae=2),yi===null?yi=[o]:yi.push(o),o=l;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=Lh(o,a,t);af(o,g);break e;case 1:s=a;var m=o.type,y=o.stateNode;if(!(o.flags&128)&&(typeof m.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(kn===null||!kn.has(y)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=Dh(o,s,t);af(o,S);break e}}o=o.return}while(o!==null)}eg(n)}catch(T){t=T,Ce===n&&n!==null&&(Ce=n=n.return);continue}break}while(!0)}function Xh(){var e=ul.current;return ul.current=al,e===null?al:e}function ju(){(Ae===0||Ae===3||Ae===2)&&(Ae=4),Me===null||!(Wn&268435455)&&!(Rl&268435455)||dn(Me,Re)}function dl(e,t){var n=oe;oe|=2;var r=Xh();(Me!==e||Re!==t)&&(Wt=null,Un(e,t));do try{kb();break}catch(i){Zh(e,i)}while(!0);if(_u(),oe=n,ul.current=r,Ce!==null)throw Error(F(261));return Me=null,Re=0,Ae}function kb(){for(;Ce!==null;)Jh(Ce)}function wb(){for(;Ce!==null&&!Gy();)Jh(Ce)}function Jh(e){var t=ng(e.alternate,e,st);e.memoizedProps=e.pendingProps,t===null?eg(e):Ce=t,Fu.current=null}function eg(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=gb(n,t),n!==null){n.flags&=32767,Ce=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ae=6,Ce=null;return}}else if(n=hb(n,t,st),n!==null){Ce=n;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);Ae===0&&(Ae=5)}function Ln(e,t,n){var r=ae,i=Et.transition;try{Et.transition=null,ae=1,xb(e,t,n,r)}finally{Et.transition=i,ae=r}return null}function xb(e,t,n,r){do Sr();while(hn!==null);if(oe&6)throw Error(F(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(F(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(r0(e,o),e===Me&&(Ce=Me=null,Re=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||go||(go=!0,rg(Go,function(){return Sr(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Et.transition,Et.transition=null;var l=ae;ae=1;var s=oe;oe|=4,Fu.current=null,yb(e,n),qh(n,e),H0(fa),Yo=!!ca,fa=ca=null,e.current=n,bb(n),qy(),oe=s,ae=l,Et.transition=o}else e.current=n;if(go&&(go=!1,hn=e,fl=i),o=e.pendingLanes,o===0&&(kn=null),Zy(n.stateNode),nt(e,xe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(cl)throw cl=!1,e=Ma,Ma=null,e;return fl&1&&e.tag!==0&&Sr(),o=e.pendingLanes,o&1?e===Oa?bi++:(bi=0,Oa=e):bi=0,Tn(),null}function Sr(){if(hn!==null){var e=Lp(fl),t=Et.transition,n=ae;try{if(Et.transition=null,ae=16>e?16:e,hn===null)var r=!1;else{if(e=hn,hn=null,fl=0,oe&6)throw Error(F(331));var i=oe;for(oe|=4,$=e.current;$!==null;){var o=$,l=o.child;if($.flags&16){var s=o.deletions;if(s!==null){for(var a=0;a<s.length;a++){var u=s[a];for($=u;$!==null;){var c=$;switch(c.tag){case 0:case 11:case 15:mi(8,c,o)}var f=c.child;if(f!==null)f.return=c,$=f;else for(;$!==null;){c=$;var p=c.sibling,d=c.return;if(Vh(c),c===u){$=null;break}if(p!==null){p.return=d,$=p;break}$=d}}}var h=o.alternate;if(h!==null){var b=h.child;if(b!==null){h.child=null;do{var C=b.sibling;b.sibling=null,b=C}while(b!==null)}}$=o}}if(o.subtreeFlags&2064&&l!==null)l.return=o,$=l;else e:for(;$!==null;){if(o=$,o.flags&2048)switch(o.tag){case 0:case 11:case 15:mi(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,$=g;break e}$=o.return}}var m=e.current;for($=m;$!==null;){l=$;var y=l.child;if(l.subtreeFlags&2064&&y!==null)y.return=l,$=y;else e:for(l=m;$!==null;){if(s=$,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Ol(9,s)}}catch(T){ke(s,s.return,T)}if(s===l){$=null;break e}var S=s.sibling;if(S!==null){S.return=s.return,$=S;break e}$=s.return}}if(oe=i,Tn(),Ut&&typeof Ut.onPostCommitFiberRoot=="function")try{Ut.onPostCommitFiberRoot(_l,e)}catch{}r=!0}return r}finally{ae=n,Et.transition=t}}return!1}function Af(e,t,n){t=Rr(n,t),t=Lh(e,t,1),e=vn(e,t,1),t=Ge(),e!==null&&(Vi(e,1,t),nt(e,t))}function ke(e,t,n){if(e.tag===3)Af(e,e,n);else for(;t!==null;){if(t.tag===3){Af(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(kn===null||!kn.has(r))){e=Rr(n,e),e=Dh(t,e,1),t=vn(t,e,1),e=Ge(),t!==null&&(Vi(t,1,e),nt(t,e));break}}t=t.return}}function _b(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ge(),e.pingedLanes|=e.suspendedLanes&n,Me===e&&(Re&n)===n&&(Ae===4||Ae===3&&(Re&130023424)===Re&&500>xe()-Bu?Un(e,0):zu|=n),nt(e,t)}function tg(e,t){t===0&&(e.mode&1?(t=io,io<<=1,!(io&130023424)&&(io=4194304)):t=1);var n=Ge();e=Jt(e,t),e!==null&&(Vi(e,t,n),nt(e,n))}function Sb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),tg(e,n)}function Cb(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(F(314))}r!==null&&r.delete(t),tg(e,n)}var ng;ng=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||et.current)Je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Je=!1,pb(e,t,n);Je=!!(e.flags&131072)}else Je=!1,ye&&t.flags&1048576&&lh(t,nl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Fo(e,t),e=t.pendingProps;var i=Ar(t,Ue.current);_r(t,n),i=Ou(null,t,r,e,i,n);var o=Ru();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,tt(r)?(o=!0,el(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Nu(t),i.updater=Ml,t.stateNode=i,i._reactInternals=t,va(t,r,e,n),t=xa(null,t,r,!0,o,n)):(t.tag=0,ye&&o&&vu(t),Ve(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Fo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Tb(r),e=St(r,e),i){case 0:t=wa(null,t,r,e,n);break e;case 1:t=Ef(null,t,r,e,n);break e;case 11:t=yf(null,t,r,e,n);break e;case 14:t=bf(null,t,r,St(r.type,e),n);break e}throw Error(F(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),wa(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),Ef(e,t,r,i,n);case 3:e:{if(Bh(t),e===null)throw Error(F(387));r=t.pendingProps,o=t.memoizedState,i=o.element,dh(e,t),ol(t,r,null,n);var l=t.memoizedState;if(r=l.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Rr(Error(F(423)),t),t=vf(e,t,r,n,i);break e}else if(r!==i){i=Rr(Error(F(424)),t),t=vf(e,t,r,n,i);break e}else for(ut=En(t.stateNode.containerInfo.firstChild),ct=t,ye=!0,Nt=null,n=ch(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ir(),r===i){t=en(e,t,n);break e}Ve(e,t,r,n)}t=t.child}return t;case 5:return ph(t),e===null&&ya(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,l=i.children,da(r,i)?l=null:o!==null&&da(r,o)&&(t.flags|=32),zh(e,t),Ve(e,t,l,n),t.child;case 6:return e===null&&ya(t),null;case 13:return Uh(e,t,n);case 4:return Tu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Mr(t,null,r,n):Ve(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),yf(e,t,r,i,n);case 7:return Ve(e,t,t.pendingProps,n),t.child;case 8:return Ve(e,t,t.pendingProps.children,n),t.child;case 12:return Ve(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,l=i.value,pe(rl,r._currentValue),r._currentValue=l,o!==null)if(Mt(o.value,l)){if(o.children===i.children&&!et.current){t=en(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){l=o.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(o.tag===1){a=Qt(-1,n&-n),a.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ba(o.return,n,t),s.lanes|=n;break}a=a.next}}else if(o.tag===10)l=o.type===t.type?null:o.child;else if(o.tag===18){if(l=o.return,l===null)throw Error(F(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),ba(l,n,t),l=o.sibling}else l=o.child;if(l!==null)l.return=o;else for(l=o;l!==null;){if(l===t){l=null;break}if(o=l.sibling,o!==null){o.return=l.return,l=o;break}l=l.return}o=l}Ve(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,_r(t,n),i=vt(i),r=r(i),t.flags|=1,Ve(e,t,r,n),t.child;case 14:return r=t.type,i=St(r,t.pendingProps),i=St(r.type,i),bf(e,t,r,i,n);case 15:return Ph(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:St(r,i),Fo(e,t),t.tag=1,tt(r)?(e=!0,el(t)):e=!1,_r(t,n),Rh(t,r,i),va(t,r,i,n),xa(null,t,r,!0,e,n);case 19:return $h(e,t,n);case 22:return Fh(e,t,n)}throw Error(F(156,t.tag))};function rg(e,t){return Ip(e,t)}function Nb(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bt(e,t,n,r){return new Nb(e,t,n,r)}function Hu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Tb(e){if(typeof e=="function")return Hu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===au)return 11;if(e===uu)return 14}return 2}function xn(e,t){var n=e.alternate;return n===null?(n=bt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Uo(e,t,n,r,i,o){var l=2;if(r=e,typeof e=="function")Hu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case ur:return $n(n.children,i,o,t);case su:l=8,i|=8;break;case Ks:return e=bt(12,n,t,i|2),e.elementType=Ks,e.lanes=o,e;case Vs:return e=bt(13,n,t,i),e.elementType=Vs,e.lanes=o,e;case Ws:return e=bt(19,n,t,i),e.elementType=Ws,e.lanes=o,e;case pp:return Ll(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fp:l=10;break e;case dp:l=9;break e;case au:l=11;break e;case uu:l=14;break e;case un:l=16,r=null;break e}throw Error(F(130,e==null?e:typeof e,""))}return t=bt(l,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function $n(e,t,n,r){return e=bt(7,e,r,t),e.lanes=n,e}function Ll(e,t,n,r){return e=bt(22,e,r,t),e.elementType=pp,e.lanes=n,e.stateNode={isHidden:!1},e}function Es(e,t,n){return e=bt(6,e,null,t),e.lanes=n,e}function vs(e,t,n){return t=bt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ab(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=es(0),this.expirationTimes=es(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=es(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ku(e,t,n,r,i,o,l,s,a){return e=new Ab(e,t,n,s,a),t===1?(t=1,o===!0&&(t|=8)):t=0,o=bt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nu(o),e}function Ib(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ar,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ig(e){if(!e)return Sn;e=e._reactInternals;e:{if(Qn(e)!==e||e.tag!==1)throw Error(F(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(tt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(F(171))}if(e.tag===1){var n=e.type;if(tt(n))return ih(e,n,t)}return t}function og(e,t,n,r,i,o,l,s,a){return e=Ku(n,r,!0,e,i,o,l,s,a),e.context=ig(null),n=e.current,r=Ge(),i=wn(n),o=Qt(r,i),o.callback=t??null,vn(n,o,i),e.current.lanes=i,Vi(e,i,r),nt(e,r),e}function Dl(e,t,n,r){var i=t.current,o=Ge(),l=wn(i);return n=ig(n),t.context===null?t.context=n:t.pendingContext=n,t=Qt(o,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=vn(i,t,l),e!==null&&(At(e,i,l,o),Lo(e,i,l)),l}function pl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function If(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Vu(e,t){If(e,t),(e=e.alternate)&&If(e,t)}function Mb(){return null}var lg=typeof reportError=="function"?reportError:function(e){console.error(e)};function Wu(e){this._internalRoot=e}Pl.prototype.render=Wu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(F(409));Dl(e,t,null,null)};Pl.prototype.unmount=Wu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gn(function(){Dl(null,e,null,null)}),t[Xt]=null}};function Pl(e){this._internalRoot=e}Pl.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<fn.length&&t!==0&&t<fn[n].priority;n++);fn.splice(n,0,e),n===0&&Bp(e)}};function Gu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Fl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Mf(){}function Ob(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=pl(l);o.call(u)}}var l=og(t,r,e,0,null,!1,!1,"",Mf);return e._reactRootContainer=l,e[Xt]=l.current,Ii(e.nodeType===8?e.parentNode:e),Gn(),l}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var s=r;r=function(){var u=pl(a);s.call(u)}}var a=Ku(e,0,!1,null,null,!1,!1,"",Mf);return e._reactRootContainer=a,e[Xt]=a.current,Ii(e.nodeType===8?e.parentNode:e),Gn(function(){Dl(t,a,n,r)}),a}function zl(e,t,n,r,i){var o=n._reactRootContainer;if(o){var l=o;if(typeof i=="function"){var s=i;i=function(){var a=pl(l);s.call(a)}}Dl(t,l,e,i)}else l=Ob(n,t,e,i,r);return pl(l)}Dp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ai(t.pendingLanes);n!==0&&(du(t,n|1),nt(t,xe()),!(oe&6)&&(Lr=xe()+500,Tn()))}break;case 13:Gn(function(){var r=Jt(e,1);if(r!==null){var i=Ge();At(r,e,1,i)}}),Vu(e,1)}};pu=function(e){if(e.tag===13){var t=Jt(e,134217728);if(t!==null){var n=Ge();At(t,e,134217728,n)}Vu(e,134217728)}};Pp=function(e){if(e.tag===13){var t=wn(e),n=Jt(e,t);if(n!==null){var r=Ge();At(n,e,t,r)}Vu(e,t)}};Fp=function(){return ae};zp=function(e,t){var n=ae;try{return ae=e,t()}finally{ae=n}};na=function(e,t,n){switch(t){case"input":if(Ys(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Tl(r);if(!i)throw Error(F(90));gp(r),Ys(r,i)}}}break;case"textarea":yp(e,n);break;case"select":t=n.value,t!=null&&vr(e,!!n.multiple,t,!1)}};_p=Uu;Sp=Gn;var Rb={usingClientEntryPoint:!1,Events:[Gi,pr,Tl,wp,xp,Uu]},ni={findFiberByHostInstance:Fn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Lb={bundleType:ni.bundleType,version:ni.version,rendererPackageName:ni.rendererPackageName,rendererConfig:ni.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:nn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Tp(e),e===null?null:e.stateNode},findFiberByHostInstance:ni.findFiberByHostInstance||Mb,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mo.isDisabled&&mo.supportsFiber)try{_l=mo.inject(Lb),Ut=mo}catch{}}pt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Rb;pt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Gu(t))throw Error(F(200));return Ib(e,t,null,n)};pt.createRoot=function(e,t){if(!Gu(e))throw Error(F(299));var n=!1,r="",i=lg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ku(e,1,!1,null,null,n,!1,r,i),e[Xt]=t.current,Ii(e.nodeType===8?e.parentNode:e),new Wu(t)};pt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(F(188)):(e=Object.keys(e).join(","),Error(F(268,e)));return e=Tp(t),e=e===null?null:e.stateNode,e};pt.flushSync=function(e){return Gn(e)};pt.hydrate=function(e,t,n){if(!Fl(t))throw Error(F(200));return zl(null,e,t,!0,n)};pt.hydrateRoot=function(e,t,n){if(!Gu(e))throw Error(F(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",l=lg;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=og(t,null,e,1,n??null,i,!1,o,l),e[Xt]=t.current,Ii(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Pl(t)};pt.render=function(e,t,n){if(!Fl(t))throw Error(F(200));return zl(null,e,t,!1,n)};pt.unmountComponentAtNode=function(e){if(!Fl(e))throw Error(F(40));return e._reactRootContainer?(Gn(function(){zl(null,null,e,!1,function(){e._reactRootContainer=null,e[Xt]=null})}),!0):!1};pt.unstable_batchedUpdates=Uu;pt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Fl(n))throw Error(F(200));if(e==null||e._reactInternals===void 0)throw Error(F(38));return zl(e,t,n,!1,r)};pt.version="18.3.1-next-f1338f8080-20240426";function sg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sg)}catch(e){console.error(e)}}sg(),sp.exports=pt;var Db=sp.exports,Of=Db;js.createRoot=Of.createRoot,js.hydrateRoot=Of.hydrateRoot;/**
41
+ * @license lucide-react v0.468.0 - ISC
42
+ *
43
+ * This source code is licensed under the ISC license.
44
+ * See the LICENSE file in the root directory of this source tree.
45
+ */const Pb=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ag=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
46
+ * @license lucide-react v0.468.0 - ISC
47
+ *
48
+ * This source code is licensed under the ISC license.
49
+ * See the LICENSE file in the root directory of this source tree.
50
+ */var Fb={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"};/**
51
+ * @license lucide-react v0.468.0 - ISC
52
+ *
53
+ * This source code is licensed under the ISC license.
54
+ * See the LICENSE file in the root directory of this source tree.
55
+ */const zb=K.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:o,iconNode:l,...s},a)=>K.createElement("svg",{ref:a,...Fb,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:ag("lucide",i),...s},[...l.map(([u,c])=>K.createElement(u,c)),...Array.isArray(o)?o:[o]]));/**
56
+ * @license lucide-react v0.468.0 - ISC
57
+ *
58
+ * This source code is licensed under the ISC license.
59
+ * See the LICENSE file in the root directory of this source tree.
60
+ */const Ne=(e,t)=>{const n=K.forwardRef(({className:r,...i},o)=>K.createElement(zb,{ref:o,iconNode:t,className:ag(`lucide-${Pb(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
61
+ * @license lucide-react v0.468.0 - ISC
62
+ *
63
+ * This source code is licensed under the ISC license.
64
+ * See the LICENSE file in the root directory of this source tree.
65
+ */const Bb=Ne("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
66
+ * @license lucide-react v0.468.0 - ISC
67
+ *
68
+ * This source code is licensed under the ISC license.
69
+ * See the LICENSE file in the root directory of this source tree.
70
+ */const Ub=Ne("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
71
+ * @license lucide-react v0.468.0 - ISC
72
+ *
73
+ * This source code is licensed under the ISC license.
74
+ * See the LICENSE file in the root directory of this source tree.
75
+ */const $b=Ne("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
76
+ * @license lucide-react v0.468.0 - ISC
77
+ *
78
+ * This source code is licensed under the ISC license.
79
+ * See the LICENSE file in the root directory of this source tree.
80
+ */const jb=Ne("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
81
+ * @license lucide-react v0.468.0 - ISC
82
+ *
83
+ * This source code is licensed under the ISC license.
84
+ * See the LICENSE file in the root directory of this source tree.
85
+ */const ot=Ne("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
86
+ * @license lucide-react v0.468.0 - ISC
87
+ *
88
+ * This source code is licensed under the ISC license.
89
+ * See the LICENSE file in the root directory of this source tree.
90
+ */const Hb=Ne("FileJson",[["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 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);/**
91
+ * @license lucide-react v0.468.0 - ISC
92
+ *
93
+ * This source code is licensed under the ISC license.
94
+ * See the LICENSE file in the root directory of this source tree.
95
+ */const Rf=Ne("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"}]]);/**
96
+ * @license lucide-react v0.468.0 - ISC
97
+ *
98
+ * This source code is licensed under the ISC license.
99
+ * See the LICENSE file in the root directory of this source tree.
100
+ */const ks=Ne("FileType",[["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:"M9 13v-1h6v1",key:"1bb014"}],["path",{d:"M12 12v6",key:"3ahymv"}],["path",{d:"M11 18h2",key:"12mj7e"}]]);/**
101
+ * @license lucide-react v0.468.0 - ISC
102
+ *
103
+ * This source code is licensed under the ISC license.
104
+ * See the LICENSE file in the root directory of this source tree.
105
+ */const Kb=Ne("File",[["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"}]]);/**
106
+ * @license lucide-react v0.468.0 - ISC
107
+ *
108
+ * This source code is licensed under the ISC license.
109
+ * See the LICENSE file in the root directory of this source tree.
110
+ */const Vb=Ne("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"}]]);/**
111
+ * @license lucide-react v0.468.0 - ISC
112
+ *
113
+ * This source code is licensed under the ISC license.
114
+ * See the LICENSE file in the root directory of this source tree.
115
+ */const Wb=Ne("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
116
+ * @license lucide-react v0.468.0 - ISC
117
+ *
118
+ * This source code is licensed under the ISC license.
119
+ * See the LICENSE file in the root directory of this source tree.
120
+ */const Gb=Ne("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
121
+ * @license lucide-react v0.468.0 - ISC
122
+ *
123
+ * This source code is licensed under the ISC license.
124
+ * See the LICENSE file in the root directory of this source tree.
125
+ */const qb=Ne("GitCompare",[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["path",{d:"M11 18H8a2 2 0 0 1-2-2V9",key:"19pyzm"}]]);/**
126
+ * @license lucide-react v0.468.0 - ISC
127
+ *
128
+ * This source code is licensed under the ISC license.
129
+ * See the LICENSE file in the root directory of this source tree.
130
+ */const Yb=Ne("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
131
+ * @license lucide-react v0.468.0 - ISC
132
+ *
133
+ * This source code is licensed under the ISC license.
134
+ * See the LICENSE file in the root directory of this source tree.
135
+ */const Qb=Ne("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"}]]);/**
136
+ * @license lucide-react v0.468.0 - ISC
137
+ *
138
+ * This source code is licensed under the ISC license.
139
+ * See the LICENSE file in the root directory of this source tree.
140
+ */const Zb=Ne("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
141
+ * @license lucide-react v0.468.0 - ISC
142
+ *
143
+ * This source code is licensed under the ISC license.
144
+ * See the LICENSE file in the root directory of this source tree.
145
+ */const Xb=Ne("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
146
+ * @license lucide-react v0.468.0 - ISC
147
+ *
148
+ * This source code is licensed under the ISC license.
149
+ * See the LICENSE file in the root directory of this source tree.
150
+ */const Jb=Ne("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
151
+ * @license lucide-react v0.468.0 - ISC
152
+ *
153
+ * This source code is licensed under the ISC license.
154
+ * See the LICENSE file in the root directory of this source tree.
155
+ */const eE=Ne("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"}]]);/**
156
+ * @license lucide-react v0.468.0 - ISC
157
+ *
158
+ * This source code is licensed under the ISC license.
159
+ * See the LICENSE file in the root directory of this source tree.
160
+ */const tE=Ne("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),nE={},Lf=e=>{let t;const n=new Set,r=(c,f)=>{const p=typeof c=="function"?c(t):c;if(!Object.is(p,t)){const d=t;t=f??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(h=>h(t,d))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>u,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{(nE?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,i,a);return a},rE=e=>e?Lf(e):Lf;var ug={exports:{}},cg={},fg={exports:{}},dg={};/**
161
+ * @license React
162
+ * use-sync-external-store-shim.production.js
163
+ *
164
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
165
+ *
166
+ * This source code is licensed under the MIT license found in the
167
+ * LICENSE file in the root directory of this source tree.
168
+ */var Dr=K;function iE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var oE=typeof Object.is=="function"?Object.is:iE,lE=Dr.useState,sE=Dr.useEffect,aE=Dr.useLayoutEffect,uE=Dr.useDebugValue;function cE(e,t){var n=t(),r=lE({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return aE(function(){i.value=n,i.getSnapshot=t,ws(i)&&o({inst:i})},[e,n,t]),sE(function(){return ws(i)&&o({inst:i}),e(function(){ws(i)&&o({inst:i})})},[e]),uE(n),n}function ws(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!oE(e,n)}catch{return!0}}function fE(e,t){return t()}var dE=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?fE:cE;dg.useSyncExternalStore=Dr.useSyncExternalStore!==void 0?Dr.useSyncExternalStore:dE;fg.exports=dg;var pE=fg.exports;/**
169
+ * @license React
170
+ * use-sync-external-store-shim/with-selector.production.js
171
+ *
172
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
173
+ *
174
+ * This source code is licensed under the MIT license found in the
175
+ * LICENSE file in the root directory of this source tree.
176
+ */var Bl=K,hE=pE;function gE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mE=typeof Object.is=="function"?Object.is:gE,yE=hE.useSyncExternalStore,bE=Bl.useRef,EE=Bl.useEffect,vE=Bl.useMemo,kE=Bl.useDebugValue;cg.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=bE(null);if(o.current===null){var l={hasValue:!1,value:null};o.current=l}else l=o.current;o=vE(function(){function a(d){if(!u){if(u=!0,c=d,d=r(d),i!==void 0&&l.hasValue){var h=l.value;if(i(h,d))return f=h}return f=d}if(h=f,mE(c,d))return h;var b=r(d);return i!==void 0&&i(h,b)?(c=d,h):(c=d,f=b)}var u=!1,c,f,p=n===void 0?null:n;return[function(){return a(t())},p===null?void 0:function(){return a(p())}]},[t,n,r,i]);var s=yE(e,o[0],o[1]);return EE(function(){l.hasValue=!0,l.value=s},[s]),kE(s),s};ug.exports=cg;var wE=ug.exports;const xE=Hi(wE),pg={},{useDebugValue:_E}=op,{useSyncExternalStoreWithSelector:SE}=xE;let Df=!1;const CE=e=>e;function NE(e,t=CE,n){(pg?"production":void 0)!=="production"&&n&&!Df&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Df=!0);const r=SE(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return _E(r),r}const Pf=e=>{(pg?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?rE(e):e,n=(r,i)=>NE(t,r,i);return Object.assign(n,t),n},qu=e=>e?Pf(e):Pf,Yi=qu(e=>({fileTree:[],flatFiles:[],filteredDirs:[],recentFile:null,expandedDirs:new Set,setFileTree:t=>e({fileTree:t}),setFlatFiles:(t,n,r)=>e({flatFiles:t.map(i=>i.path),filteredDirs:n,recentFile:r}),toggleDir:t=>e(n=>{const r=new Set(n.expandedDirs);return r.has(t)?r.delete(t):r.add(t),{expandedDirs:r}}),currentFile:null,setCurrentFile:t=>e({currentFile:t,selection:null}),selection:null,setSelection:t=>e({selection:t}),clearSelection:()=>e({selection:null}),gitStatus:null,setGitStatus:t=>e({gitStatus:t}),showFuzzyFinder:!1,setShowFuzzyFinder:t=>e({showFuzzyFinder:t})})),Ul=qu(e=>({leftPanelVisible:!0,rightPanelVisible:!0,showOnlyGitChanged:!1,diffViewMode:"none",markdownPreviewEnabled:!1,setLeftPanelVisible:t=>e({leftPanelVisible:t}),setRightPanelVisible:t=>e({rightPanelVisible:t}),toggleLeftPanel:()=>e(t=>({leftPanelVisible:!t.leftPanelVisible})),toggleRightPanel:()=>e(t=>({rightPanelVisible:!t.rightPanelVisible})),toggleAllPanels:()=>e(t=>{const n=t.leftPanelVisible||t.rightPanelVisible;return{leftPanelVisible:!n,rightPanelVisible:!n}}),setShowOnlyGitChanged:t=>e({showOnlyGitChanged:t}),toggleGitFilter:()=>e(t=>({showOnlyGitChanged:!t.showOnlyGitChanged})),setDiffViewMode:t=>e({diffViewMode:t}),cycleDiffViewMode:()=>e(t=>{const n=["none","inline","side-by-side"],i=(n.indexOf(t.diffViewMode)+1)%n.length;return{diffViewMode:n[i]}}),setMarkdownPreviewEnabled:t=>e({markdownPreviewEnabled:t}),toggleMarkdownPreview:()=>e(t=>({markdownPreviewEnabled:!t.markdownPreviewEnabled}))})),Fe={async getFiles(){const e=await fetch("/api/files");if(!e.ok)throw new Error("Failed to fetch files");return e.json()},async getFlatFiles(){const e=await fetch("/api/files/flat");if(!e.ok)throw new Error("Failed to fetch flat files");return e.json()},async getFile(e){const t=await fetch(`/api/file?path=${encodeURIComponent(e)}`);if(!t.ok)throw new Error("Failed to fetch file");return t.json()},async getGitStatus(){const e=await fetch("/api/git/status");if(!e.ok)throw new Error("Failed to fetch git status");return e.json()},async getFileDiff(e){const t=await fetch(`/api/git/diff?path=${encodeURIComponent(e)}`);if(!t.ok){if(t.status===404)return{hunks:[],status:"modified"};throw new Error("Failed to fetch diff")}return t.json()},async submit(e,t){if(!(await fetch("/api/submit",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:e,items:t})})).ok)throw new Error("Failed to submit")},async cancel(){if(!(await fetch("/api/cancel",{method:"POST"})).ok)throw new Error("Failed to cancel")},subscribeEvents(e){const t=new EventSource("/api/events");return t.onmessage=n=>{try{const r=JSON.parse(n.data);e(r)}catch(r){console.error("Failed to parse SSE event:",r)}},t.onerror=n=>{console.error("SSE connection error:",n)},()=>{t.close()}}};function TE(e){var n;switch((n=e.split(".").pop())==null?void 0:n.toLowerCase()){case"ts":case"tsx":return x.jsx(ot,{size:14,style:{color:"#3178c6"}});case"js":case"jsx":return x.jsx(ot,{size:14,style:{color:"#f7df1e"}});case"py":return x.jsx(ot,{size:14,style:{color:"#3776ab"}});case"go":return x.jsx(ot,{size:14,style:{color:"#00add8"}});case"rs":return x.jsx(ot,{size:14,style:{color:"#dea584"}});case"java":return x.jsx(ot,{size:14,style:{color:"#b07219"}});case"rb":return x.jsx(ot,{size:14,style:{color:"#cc342d"}});case"php":return x.jsx(ot,{size:14,style:{color:"#4f5d95"}});case"css":case"scss":case"sass":case"less":return x.jsx(ot,{size:14,style:{color:"#563d7c"}});case"html":case"htm":return x.jsx(ot,{size:14,style:{color:"#e34c26"}});case"vue":return x.jsx(ot,{size:14,style:{color:"#41b883"}});case"svelte":return x.jsx(ot,{size:14,style:{color:"#ff3e00"}});case"json":return x.jsx(Hb,{size:14,style:{color:"#cbcb41"}});case"yaml":case"yml":return x.jsx(ks,{size:14,style:{color:"#cb171e"}});case"xml":return x.jsx(ks,{size:14,style:{color:"#0060ac"}});case"toml":return x.jsx(ks,{size:14,style:{color:"#9c4221"}});case"md":case"mdx":return x.jsx(Rf,{size:14,style:{color:"#519aba"}});case"txt":return x.jsx(Rf,{size:14});case"png":case"jpg":case"jpeg":case"gif":case"svg":case"webp":case"ico":return x.jsx(Yb,{size:14,style:{color:"#a074c4"}});case"env":case"gitignore":case"eslintrc":case"prettierrc":return x.jsx(eE,{size:14,style:{color:"#6e7681"}});default:return x.jsx(Kb,{size:14})}}function hg(e,t){return e.map(n=>{if(n.type==="file")return t.has(n.path)?n:null;const r=n.children?hg(n.children,t):[];return r.length>0?{...n,children:r}:null}).filter(n=>n!==null)}function AE(){const{fileTree:e,expandedDirs:t,toggleDir:n,setCurrentFile:r,gitStatus:i}=Yi(),{showOnlyGitChanged:o,toggleGitFilter:l}=Ul(),s=K.useCallback(async d=>{try{const h=await Fe.getFile(d);r(h)}catch(h){console.error("Failed to load file:",h)}},[r]),a=K.useMemo(()=>i!=null&&i.isGitRepo?new Set(i.unstaged.map(d=>d.path)):new Set,[i]),u=a.size,c=K.useMemo(()=>!o||a.size===0?e:hg(e,a),[e,o,a]),f=d=>{var h;return i!=null&&i.isGitRepo?((h=i.unstaged.find(b=>b.path===d))==null?void 0:h.status)??null:null},p=(d,h=0)=>{const b=d.type==="directory",C=t.has(d.path),g=d.filtered===!0,m=f(d.path);return x.jsxs("div",{className:"tree-node",children:[x.jsxs("div",{className:`tree-item ${b?"tree-item-dir":"tree-item-file"} ${m?`git-${m}`:""} ${g?"tree-item-filtered":""}`,style:{paddingLeft:`${h*16+8}px`},title:g?"Not loaded for performance":void 0,onClick:()=>{g||(b?n(d.path):s(d.path))},children:[x.jsx("span",{className:"tree-icon",children:b?C?x.jsx(Bb,{size:14}):x.jsx(Ub,{size:14}):TE(d.name)}),b&&x.jsx("span",{className:"tree-folder-icon",children:C?x.jsx(Vb,{size:14}):x.jsx(Wb,{size:14})}),x.jsx("span",{className:"tree-name",children:d.name}),m&&x.jsx("span",{className:`git-badge git-badge-${m}`,children:m==="modified"?"M":m==="untracked"?"U":m==="deleted"?"D":"A"})]}),b&&C&&d.children&&x.jsx("div",{className:"tree-children",children:d.children.map(y=>p(y,h+1))})]},d.path)};return x.jsxs("div",{className:"file-tree",children:[x.jsxs("div",{className:"file-tree-header",children:[x.jsx("span",{children:"Files"}),(i==null?void 0:i.isGitRepo)&&u>0&&x.jsx("div",{className:"file-tree-header-actions",children:x.jsxs("button",{className:`filter-btn ${o?"active":""}`,onClick:l,title:"Show only changed files (Cmd+G)",children:[x.jsx(Gb,{size:12}),x.jsx("span",{className:"count",children:u})]})})]}),x.jsx("div",{className:"file-tree-content",children:c.length===0?x.jsx("div",{className:"staging-list-empty",children:x.jsx("p",{className:"staging-hint",children:"No files to display"})}):c.map(d=>p(d))})]})}let IE=1;const Yu=qu(e=>({items:[],addItem:t=>e(n=>({items:[...n.items,{...t,id:`staged-${IE++}`}]})),removeItem:t=>e(n=>({items:n.items.filter(r=>r.id!==t)})),clear:()=>e({items:[]})}));function gg(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(t=>{const n=e[t],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&gg(n)}),e}class Ff{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function mg(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function gn(e,...t){const n=Object.create(null);for(const r in e)n[r]=e[r];return t.forEach(function(r){for(const i in r)n[i]=r[i]}),n}const ME="</span>",zf=e=>!!e.scope,OE=(e,{prefix:t})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${t}${e}`};class RE{constructor(t,n){this.buffer="",this.classPrefix=n.classPrefix,t.walk(this)}addText(t){this.buffer+=mg(t)}openNode(t){if(!zf(t))return;const n=OE(t.scope,{prefix:this.classPrefix});this.span(n)}closeNode(t){zf(t)&&(this.buffer+=ME)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}}const Bf=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class Qu{constructor(){this.rootNode=Bf(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){const n=Bf({scope:t});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,n){return typeof n=="string"?t.addText(n):n.children&&(t.openNode(n),n.children.forEach(r=>this._walk(t,r)),t.closeNode(n)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(n=>typeof n=="string")?t.children=[t.children.join("")]:t.children.forEach(n=>{Qu._collapse(n)}))}}class LE extends Qu{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,n){const r=t.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new RE(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Bi(e){return e?typeof e=="string"?e:e.source:null}function yg(e){return Zn("(?=",e,")")}function DE(e){return Zn("(?:",e,")*")}function PE(e){return Zn("(?:",e,")?")}function Zn(...e){return e.map(n=>Bi(n)).join("")}function FE(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Zu(...e){return"("+(FE(e).capture?"":"?:")+e.map(r=>Bi(r)).join("|")+")"}function bg(e){return new RegExp(e.toString()+"|").exec("").length-1}function zE(e,t){const n=e&&e.exec(t);return n&&n.index===0}const BE=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Xu(e,{joinWith:t}){let n=0;return e.map(r=>{n+=1;const i=n;let o=Bi(r),l="";for(;o.length>0;){const s=BE.exec(o);if(!s){l+=o;break}l+=o.substring(0,s.index),o=o.substring(s.index+s[0].length),s[0][0]==="\\"&&s[1]?l+="\\"+String(Number(s[1])+i):(l+=s[0],s[0]==="("&&n++)}return l}).map(r=>`(${r})`).join(t)}const UE=/\b\B/,Eg="[a-zA-Z]\\w*",Ju="[a-zA-Z_]\\w*",vg="\\b\\d+(\\.\\d+)?",kg="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",wg="\\b(0b[01]+)",$E="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",jE=(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=Zn(t,/.*\b/,e.binary,/\b.*/)),gn({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},e)},Ui={begin:"\\\\[\\s\\S]",relevance:0},HE={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ui]},KE={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ui]},VE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},$l=function(e,t,n={}){const r=gn({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=Zu("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Zn(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},WE=$l("//","$"),GE=$l("/\\*","\\*/"),qE=$l("#","$"),YE={scope:"number",begin:vg,relevance:0},QE={scope:"number",begin:kg,relevance:0},ZE={scope:"number",begin:wg,relevance:0},XE={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ui,{begin:/\[/,end:/\]/,relevance:0,contains:[Ui]}]},JE={scope:"title",begin:Eg,relevance:0},ev={scope:"title",begin:Ju,relevance:0},tv={begin:"\\.\\s*"+Ju,relevance:0},nv=function(e){return Object.assign(e,{"on:begin":(t,n)=>{n.data._beginMatch=t[1]},"on:end":(t,n)=>{n.data._beginMatch!==t[1]&&n.ignoreMatch()}})};var yo=Object.freeze({__proto__:null,APOS_STRING_MODE:HE,BACKSLASH_ESCAPE:Ui,BINARY_NUMBER_MODE:ZE,BINARY_NUMBER_RE:wg,COMMENT:$l,C_BLOCK_COMMENT_MODE:GE,C_LINE_COMMENT_MODE:WE,C_NUMBER_MODE:QE,C_NUMBER_RE:kg,END_SAME_AS_BEGIN:nv,HASH_COMMENT_MODE:qE,IDENT_RE:Eg,MATCH_NOTHING_RE:UE,METHOD_GUARD:tv,NUMBER_MODE:YE,NUMBER_RE:vg,PHRASAL_WORDS_MODE:VE,QUOTE_STRING_MODE:KE,REGEXP_MODE:XE,RE_STARTERS_RE:$E,SHEBANG:jE,TITLE_MODE:JE,UNDERSCORE_IDENT_RE:Ju,UNDERSCORE_TITLE_MODE:ev});function rv(e,t){e.input[e.index-1]==="."&&t.ignoreMatch()}function iv(e,t){e.className!==void 0&&(e.scope=e.className,delete e.className)}function ov(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=rv,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function lv(e,t){Array.isArray(e.illegal)&&(e.illegal=Zu(...e.illegal))}function sv(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function av(e,t){e.relevance===void 0&&(e.relevance=1)}const uv=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=n.keywords,e.begin=Zn(n.beforeMatch,yg(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},cv=["of","and","for","in","not","or","if","then","parent","list","value"],fv="keyword";function xg(e,t,n=fv){const r=Object.create(null);return typeof e=="string"?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(o){Object.assign(r,xg(e[o],t,o))}),r;function i(o,l){t&&(l=l.map(s=>s.toLowerCase())),l.forEach(function(s){const a=s.split("|");r[a[0]]=[o,dv(a[0],a[1])]})}}function dv(e,t){return t?Number(t):pv(e)?0:1}function pv(e){return cv.includes(e.toLowerCase())}const Uf={},jn=e=>{console.error(e)},$f=(e,...t)=>{console.log(`WARN: ${e}`,...t)},rr=(e,t)=>{Uf[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Uf[`${e}/${t}`]=!0)},hl=new Error;function _g(e,t,{key:n}){let r=0;const i=e[n],o={},l={};for(let s=1;s<=t.length;s++)l[s+r]=i[s],o[s+r]=!0,r+=bg(t[s-1]);e[n]=l,e[n]._emit=o,e[n]._multi=!0}function hv(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw jn("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),hl;if(typeof e.beginScope!="object"||e.beginScope===null)throw jn("beginScope must be object"),hl;_g(e,e.begin,{key:"beginScope"}),e.begin=Xu(e.begin,{joinWith:""})}}function gv(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw jn("skip, excludeEnd, returnEnd not compatible with endScope: {}"),hl;if(typeof e.endScope!="object"||e.endScope===null)throw jn("endScope must be object"),hl;_g(e,e.end,{key:"endScope"}),e.end=Xu(e.end,{joinWith:""})}}function mv(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function yv(e){mv(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),hv(e),gv(e)}function bv(e){function t(l,s){return new RegExp(Bi(l),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(s?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,s]),this.matchAt+=bg(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(a=>a[1]);this.matcherRe=t(Xu(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const a=this.matcherRe.exec(s);if(!a)return null;const u=a.findIndex((f,p)=>p>0&&f!==void 0),c=this.matchIndexes[u];return a.splice(0,u),Object.assign(a,c)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const a=new n;return this.rules.slice(s).forEach(([u,c])=>a.addRule(u,c)),a.compile(),this.multiRegexes[s]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,a){this.rules.push([s,a]),a.type==="begin"&&this.count++}exec(s){const a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let u=a.exec(s);if(this.resumingScanAtSamePosition()&&!(u&&u.index===this.lastIndex)){const c=this.getMatcher(0);c.lastIndex=this.lastIndex+1,u=c.exec(s)}return u&&(this.regexIndex+=u.position+1,this.regexIndex===this.count&&this.considerAll()),u}}function i(l){const s=new r;return l.contains.forEach(a=>s.addRule(a.begin,{rule:a,type:"begin"})),l.terminatorEnd&&s.addRule(l.terminatorEnd,{type:"end"}),l.illegal&&s.addRule(l.illegal,{type:"illegal"}),s}function o(l,s){const a=l;if(l.isCompiled)return a;[iv,sv,yv,uv].forEach(c=>c(l,s)),e.compilerExtensions.forEach(c=>c(l,s)),l.__beforeBegin=null,[ov,lv,av].forEach(c=>c(l,s)),l.isCompiled=!0;let u=null;return typeof l.keywords=="object"&&l.keywords.$pattern&&(l.keywords=Object.assign({},l.keywords),u=l.keywords.$pattern,delete l.keywords.$pattern),u=u||/\w+/,l.keywords&&(l.keywords=xg(l.keywords,e.case_insensitive)),a.keywordPatternRe=t(u,!0),s&&(l.begin||(l.begin=/\B|\b/),a.beginRe=t(a.begin),!l.end&&!l.endsWithParent&&(l.end=/\B|\b/),l.end&&(a.endRe=t(a.end)),a.terminatorEnd=Bi(a.end)||"",l.endsWithParent&&s.terminatorEnd&&(a.terminatorEnd+=(l.end?"|":"")+s.terminatorEnd)),l.illegal&&(a.illegalRe=t(l.illegal)),l.contains||(l.contains=[]),l.contains=[].concat(...l.contains.map(function(c){return Ev(c==="self"?l:c)})),l.contains.forEach(function(c){o(c,a)}),l.starts&&o(l.starts,s),a.matcher=i(a),a}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=gn(e.classNameAliases||{}),o(e)}function Sg(e){return e?e.endsWithParent||Sg(e.starts):!1}function Ev(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return gn(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:Sg(e)?gn(e,{starts:e.starts?gn(e.starts):null}):Object.isFrozen(e)?gn(e):e}var vv="11.11.1";class kv extends Error{constructor(t,n){super(t),this.name="HTMLInjectionError",this.html=n}}const xs=mg,jf=gn,Hf=Symbol("nomatch"),wv=7,Cg=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",l={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:LE};function a(O){return s.noHighlightRe.test(O)}function u(O){let B=O.className+" ";B+=O.parentNode?O.parentNode.className:"";const A=s.languageDetectRe.exec(B);if(A){const P=I(A[1]);return P||($f(o.replace("{}",A[1])),$f("Falling back to no-highlight mode for this block.",O)),P?A[1]:"no-highlight"}return B.split(/\s+/).find(P=>a(P)||I(P))}function c(O,B,A){let P="",E="";typeof B=="object"?(P=O,A=B.ignoreIllegals,E=B.language):(rr("10.7.0","highlight(lang, code, ...args) has been deprecated."),rr("10.7.0",`Please use highlight(code, options) instead.
177
+ https://github.com/highlightjs/highlight.js/issues/2277`),E=O,P=B),A===void 0&&(A=!0);const W={code:P,language:E};H("before:highlight",W);const G=W.result?W.result:f(W.language,W.code,A);return G.code=W.code,H("after:highlight",G),G}function f(O,B,A,P){const E=Object.create(null);function W(_,M){return _.keywords[M]}function G(){if(!Q.keywords){_e.addText(ue);return}let _=0;Q.keywordPatternRe.lastIndex=0;let M=Q.keywordPatternRe.exec(ue),U="";for(;M;){U+=ue.substring(_,M.index);const j=He.case_insensitive?M[0].toLowerCase():M[0],X=W(Q,j);if(X){const[we,Kt]=X;if(_e.addText(U),U="",E[j]=(E[j]||0)+1,E[j]<=wv&&(er+=Kt),we.startsWith("_"))U+=M[0];else{const xt=He.classNameAliases[we]||we;he(M[0],xt)}}else U+=M[0];_=Q.keywordPatternRe.lastIndex,M=Q.keywordPatternRe.exec(ue)}U+=ue.substring(_),_e.addText(U)}function w(){if(ue==="")return;let _=null;if(typeof Q.subLanguage=="string"){if(!t[Q.subLanguage]){_e.addText(ue);return}_=f(Q.subLanguage,ue,!0,Mn[Q.subLanguage]),Mn[Q.subLanguage]=_._top}else _=d(ue,Q.subLanguage.length?Q.subLanguage:null);Q.relevance>0&&(er+=_.relevance),_e.__addSublanguage(_._emitter,_.language)}function re(){Q.subLanguage!=null?w():G(),ue=""}function he(_,M){_!==""&&(_e.startScope(M),_e.addText(_),_e.endScope())}function le(_,M){let U=1;const j=M.length-1;for(;U<=j;){if(!_._emit[U]){U++;continue}const X=He.classNameAliases[_[U]]||_[U],we=M[U];X?he(we,X):(ue=we,G(),ue=""),U++}}function je(_,M){return _.scope&&typeof _.scope=="string"&&_e.openNode(He.classNameAliases[_.scope]||_.scope),_.beginScope&&(_.beginScope._wrap?(he(ue,He.classNameAliases[_.beginScope._wrap]||_.beginScope._wrap),ue=""):_.beginScope._multi&&(le(_.beginScope,M),ue="")),Q=Object.create(_,{parent:{value:Q}}),Q}function Qe(_,M,U){let j=zE(_.endRe,U);if(j){if(_["on:end"]){const X=new Ff(_);_["on:end"](M,X),X.isMatchIgnored&&(j=!1)}if(j){for(;_.endsParent&&_.parent;)_=_.parent;return _}}if(_.endsWithParent)return Qe(_.parent,M,U)}function Ot(_){return Q.matcher.regexIndex===0?(ue+=_[0],1):(Wr=!0,0)}function Rt(_){const M=_[0],U=_.rule,j=new Ff(U),X=[U.__beforeBegin,U["on:begin"]];for(const we of X)if(we&&(we(_,j),j.isMatchIgnored))return Ot(M);return U.skip?ue+=M:(U.excludeBegin&&(ue+=M),re(),!U.returnBegin&&!U.excludeBegin&&(ue=M)),je(U,_),U.returnBegin?0:M.length}function on(_){const M=_[0],U=B.substring(_.index),j=Qe(Q,_,U);if(!j)return Hf;const X=Q;Q.endScope&&Q.endScope._wrap?(re(),he(M,Q.endScope._wrap)):Q.endScope&&Q.endScope._multi?(re(),le(Q.endScope,_)):X.skip?ue+=M:(X.returnEnd||X.excludeEnd||(ue+=M),re(),X.excludeEnd&&(ue=M));do Q.scope&&_e.closeNode(),!Q.skip&&!Q.subLanguage&&(er+=Q.relevance),Q=Q.parent;while(Q!==j.parent);return j.starts&&je(j.starts,_),X.returnEnd?0:M.length}function Kr(){const _=[];for(let M=Q;M!==He;M=M.parent)M.scope&&_.unshift(M.scope);_.forEach(M=>_e.openNode(M))}let ln={};function Jn(_,M){const U=M&&M[0];if(ue+=_,U==null)return re(),0;if(ln.type==="begin"&&M.type==="end"&&ln.index===M.index&&U===""){if(ue+=B.slice(M.index,M.index+1),!i){const j=new Error(`0 width match regex (${O})`);throw j.languageName=O,j.badRule=ln.rule,j}return 1}if(ln=M,M.type==="begin")return Rt(M);if(M.type==="illegal"&&!A){const j=new Error('Illegal lexeme "'+U+'" for mode "'+(Q.scope||"<unnamed>")+'"');throw j.mode=Q,j}else if(M.type==="end"){const j=on(M);if(j!==Hf)return j}if(M.type==="illegal"&&U==="")return ue+=`
178
+ `,1;if(Vr>1e5&&Vr>M.index*3)throw new Error("potential infinite loop, way more iterations than matches");return ue+=U,U.length}const He=I(O);if(!He)throw jn(o.replace("{}",O)),new Error('Unknown language: "'+O+'"');const se=bv(He);let wt="",Q=P||se;const Mn={},_e=new s.__emitter(s);Kr();let ue="",er=0,Ht=0,Vr=0,Wr=!1;try{if(He.__emitTokens)He.__emitTokens(B,_e);else{for(Q.matcher.considerAll();;){Vr++,Wr?Wr=!1:Q.matcher.considerAll(),Q.matcher.lastIndex=Ht;const _=Q.matcher.exec(B);if(!_)break;const M=B.substring(Ht,_.index),U=Jn(M,_);Ht=_.index+U}Jn(B.substring(Ht))}return _e.finalize(),wt=_e.toHTML(),{language:O,value:wt,relevance:er,illegal:!1,_emitter:_e,_top:Q}}catch(_){if(_.message&&_.message.includes("Illegal"))return{language:O,value:xs(B),illegal:!0,relevance:0,_illegalBy:{message:_.message,index:Ht,context:B.slice(Ht-100,Ht+100),mode:_.mode,resultSoFar:wt},_emitter:_e};if(i)return{language:O,value:xs(B),illegal:!1,relevance:0,errorRaised:_,_emitter:_e,_top:Q};throw _}}function p(O){const B={value:xs(O),illegal:!1,relevance:0,_top:l,_emitter:new s.__emitter(s)};return B._emitter.addText(O),B}function d(O,B){B=B||s.languages||Object.keys(t);const A=p(O),P=B.filter(I).filter(k).map(re=>f(re,O,!1));P.unshift(A);const E=P.sort((re,he)=>{if(re.relevance!==he.relevance)return he.relevance-re.relevance;if(re.language&&he.language){if(I(re.language).supersetOf===he.language)return 1;if(I(he.language).supersetOf===re.language)return-1}return 0}),[W,G]=E,w=W;return w.secondBest=G,w}function h(O,B,A){const P=B&&n[B]||A;O.classList.add("hljs"),O.classList.add(`language-${P}`)}function b(O){let B=null;const A=u(O);if(a(A))return;if(H("before:highlightElement",{el:O,language:A}),O.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",O);return}if(O.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(O)),s.throwUnescapedHTML))throw new kv("One of your code blocks includes unescaped HTML.",O.innerHTML);B=O;const P=B.textContent,E=A?c(P,{language:A,ignoreIllegals:!0}):d(P);O.innerHTML=E.value,O.dataset.highlighted="yes",h(O,A,E.language),O.result={language:E.language,re:E.relevance,relevance:E.relevance},E.secondBest&&(O.secondBest={language:E.secondBest.language,relevance:E.secondBest.relevance}),H("after:highlightElement",{el:O,result:E,text:P})}function C(O){s=jf(s,O)}const g=()=>{S(),rr("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function m(){S(),rr("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let y=!1;function S(){function O(){S()}if(document.readyState==="loading"){y||window.addEventListener("DOMContentLoaded",O,!1),y=!0;return}document.querySelectorAll(s.cssSelector).forEach(b)}function T(O,B){let A=null;try{A=B(e)}catch(P){if(jn("Language definition for '{}' could not be registered.".replace("{}",O)),i)jn(P);else throw P;A=l}A.name||(A.name=O),t[O]=A,A.rawDefinition=B.bind(null,e),A.aliases&&R(A.aliases,{languageName:O})}function v(O){delete t[O];for(const B of Object.keys(n))n[B]===O&&delete n[B]}function N(){return Object.keys(t)}function I(O){return O=(O||"").toLowerCase(),t[O]||t[n[O]]}function R(O,{languageName:B}){typeof O=="string"&&(O=[O]),O.forEach(A=>{n[A.toLowerCase()]=B})}function k(O){const B=I(O);return B&&!B.disableAutodetect}function D(O){O["before:highlightBlock"]&&!O["before:highlightElement"]&&(O["before:highlightElement"]=B=>{O["before:highlightBlock"](Object.assign({block:B.el},B))}),O["after:highlightBlock"]&&!O["after:highlightElement"]&&(O["after:highlightElement"]=B=>{O["after:highlightBlock"](Object.assign({block:B.el},B))})}function L(O){D(O),r.push(O)}function Y(O){const B=r.indexOf(O);B!==-1&&r.splice(B,1)}function H(O,B){const A=O;r.forEach(function(P){P[A]&&P[A](B)})}function V(O){return rr("10.7.0","highlightBlock will be removed entirely in v12.0"),rr("10.7.0","Please use highlightElement now."),b(O)}Object.assign(e,{highlight:c,highlightAuto:d,highlightAll:S,highlightElement:b,highlightBlock:V,configure:C,initHighlighting:g,initHighlightingOnLoad:m,registerLanguage:T,unregisterLanguage:v,listLanguages:N,getLanguage:I,registerAliases:R,autoDetection:k,inherit:jf,addPlugin:L,removePlugin:Y}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=vv,e.regex={concat:Zn,lookahead:yg,either:Zu,optional:PE,anyNumberOfTimes:DE};for(const O in yo)typeof yo[O]=="object"&&gg(yo[O]);return Object.assign(e,yo),e},Pr=Cg({});Pr.newInstance=()=>Cg({});var xv=Pr;Pr.HighlightJS=Pr;Pr.default=Pr;const ee=Hi(xv),gl="[A-Za-z$_][0-9A-Za-z$_]*",Ng=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Tg=["true","false","null","undefined","NaN","Infinity"],Ag=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ig=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Mg=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Og=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Rg=[].concat(Mg,Ag,Ig);function _v(e){const t=e.regex,n=(A,{after:P})=>{const E="</"+A[0].slice(1);return A.input.indexOf(E,P)!==-1},r=gl,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(A,P)=>{const E=A[0].length+A.index,W=A.input[E];if(W==="<"||W===","){P.ignoreMatch();return}W===">"&&(n(A,{after:E})||P.ignoreMatch());let G;const w=A.input.substring(E);if(G=w.match(/^\s*=/)){P.ignoreMatch();return}if((G=w.match(/^\s+extends\s+/))&&G.index===0){P.ignoreMatch();return}}},s={$pattern:gl,keyword:Ng,literal:Tg,built_in:Rg,"variable.language":Og},a="[0-9](_?[0-9])*",u=`\\.(${a})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${a})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},d={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},h={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},b={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},m={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,h,b,C,{match:/\$\d+/},f];p.contains=y.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(y)});const S=[].concat(m,p.contains),T=S.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(S)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:T},N={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},I={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Ag,...Ig]}},R={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},k={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},D={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(A){return t.concat("(?!",A.join("|"),")")}const Y={match:t.concat(/\b/,L([...Mg,"super","import"].map(A=>`${A}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},H={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},V={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},O="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",B={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(O)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:I},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),R,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,h,b,C,m,{match:/\$\d+/},f,I,{scope:"attr",match:r+t.lookahead(":"),relevance:0},B,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[m,e.REGEXP_MODE,{className:"function",begin:O,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}]},k,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},H,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},Y,D,N,V,{match:/\$[(.]/}]}}function ec(e){const t=e.regex,n=_v(e),r=gl,i=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],o={begin:[/namespace/,/\s+/,e.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},l={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:i},contains:[n.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],u={$pattern:gl,keyword:Ng.concat(a),literal:Tg,built_in:Rg.concat(i),"variable.language":Og},c={className:"meta",begin:"@"+r},f=(b,C,g)=>{const m=b.contains.findIndex(y=>y.label===C);if(m===-1)throw new Error("can not find mode to replace");b.contains.splice(m,1,g)};Object.assign(n.keywords,u),n.exports.PARAMS_CONTAINS.push(c);const p=n.contains.find(b=>b.scope==="attr"),d=Object.assign({},p,{match:t.concat(r,t.lookahead(/\s*\?:/))});n.exports.PARAMS_CONTAINS.push([n.exports.CLASS_REFERENCE,p,d]),n.contains=n.contains.concat([c,o,l,d]),f(n,"shebang",e.SHEBANG()),f(n,"use_strict",s);const h=n.contains.find(b=>b.label==="func.def");return h.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}const Kf="[A-Za-z$_][0-9A-Za-z$_]*",Sv=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Cv=["true","false","null","undefined","NaN","Infinity"],Lg=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Dg=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Pg=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Nv=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Tv=[].concat(Pg,Lg,Dg);function tc(e){const t=e.regex,n=(A,{after:P})=>{const E="</"+A[0].slice(1);return A.input.indexOf(E,P)!==-1},r=Kf,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(A,P)=>{const E=A[0].length+A.index,W=A.input[E];if(W==="<"||W===","){P.ignoreMatch();return}W===">"&&(n(A,{after:E})||P.ignoreMatch());let G;const w=A.input.substring(E);if(G=w.match(/^\s*=/)){P.ignoreMatch();return}if((G=w.match(/^\s+extends\s+/))&&G.index===0){P.ignoreMatch();return}}},s={$pattern:Kf,keyword:Sv,literal:Cv,built_in:Tv,"variable.language":Nv},a="[0-9](_?[0-9])*",u=`\\.(${a})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${c})((${u})|\\.)?|(${u}))[eE][+-]?(${a})\\b`},{begin:`\\b(${c})\\b((${u})\\b|\\.)?|(${u})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:s,contains:[]},d={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},h={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"css"}},b={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,p],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,p]},m={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},y=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,h,b,C,{match:/\$\d+/},f];p.contains=y.concat({begin:/\{/,end:/\}/,keywords:s,contains:["self"].concat(y)});const S=[].concat(m,p.contains),T=S.concat([{begin:/(\s*)\(/,end:/\)/,keywords:s,contains:["self"].concat(S)}]),v={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:T},N={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,t.concat(r,"(",t.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},I={relevance:0,match:t.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Lg,...Dg]}},R={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},k={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[v],illegal:/%/},D={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function L(A){return t.concat("(?!",A.join("|"),")")}const Y={match:t.concat(/\b/,L([...Pg,"super","import"].map(A=>`${A}\\s*\\(`)),r,t.lookahead(/\s*\(/)),className:"title.function",relevance:0},H={begin:t.concat(/\./,t.lookahead(t.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},V={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},v]},O="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",B={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,t.lookahead(O)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[v]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:s,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:I},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),R,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,h,b,C,m,{match:/\$\d+/},f,I,{scope:"attr",match:r+t.lookahead(":"),relevance:0},B,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[m,e.REGEXP_MODE,{className:"function",begin:O,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}]},k,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[v,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},H,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[v]},Y,D,N,V,{match:/\$[(.]/}]}}function Fg(e){const t=e.regex,n=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],s={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},a={className:"meta",begin:/^(>>>|\.\.\.) /},u={className:"subst",begin:/\{/,end:/\}/,keywords:s,illegal:/#/},c={begin:/\{\{/,relevance:0},f={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a,c,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,c,u]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,c,u]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,c,u]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},p="[0-9](_?[0-9])*",d=`(\\b(${p}))?\\.(${p})|\\b(${p})\\.`,h=`\\b|${r.join("|")}`,b={className:"number",relevance:0,variants:[{begin:`(\\b(${p})|(${d}))[eE][+-]?(${p})[jJ]?(?=${h})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${h})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${h})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${h})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${h})`},{begin:`\\b(${p})[jJ](?=${h})`}]},C={className:"comment",begin:t.lookahead(/# type:/),end:/$/,keywords:s,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},g={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,contains:["self",a,b,f,e.HASH_COMMENT_MODE]}]};return u.contains=[f,b,a],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:s,illegal:/(<\/|\?)|=>/,contains:[a,b,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},f,C,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[g]},{variants:[{match:[/\bclass/,/\s+/,n,/\s*/,/\(\s*/,n,/\s*\)/]},{match:[/\bclass/,/\s+/,n]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[b,g,f]}]}}function Av(e){const t=e.regex,n=/(r#)?/,r=t.concat(n,e.UNDERSCORE_IDENT_RE),i=t.concat(n,e.IDENT_RE),o={className:"title.function.invoke",relevance:0,begin:t.concat(/\b/,/(?!let|for|while|if|else|match\b)/,i,t.lookahead(/\s*\(/))},l="([ui](8|16|32|64|128|size)|f(32|64))?",s=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],a=["true","false","Some","None","Ok","Err"],u=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],c=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",type:c,keyword:s,literal:a,built_in:u},illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.COMMENT("/\\*","\\*/",{contains:["self"]}),e.inherit(e.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+l},{begin:"\\b0o([0-7_]+)"+l},{begin:"\\b0x([A-Fa-f0-9_]+)"+l},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+l}],relevance:0},{begin:[/fn/,/\s+/,r],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,r],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,r,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,r],className:{1:"keyword",3:"title.class"}},{begin:e.IDENT_RE+"::",keywords:{keyword:"Self",built_in:u,type:c}},{className:"punctuation",begin:"->"},o]}}function Iv(e){const o={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:o,illegal:"</",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"string",variants:[e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{match:/-?\b0[xX]\.[a-fA-F0-9](_?[a-fA-F0-9])*[pP][+-]?\d(_?\d)*i?/,relevance:0},{match:/-?\b0[xX](_?[a-fA-F0-9])+((\.([a-fA-F0-9](_?[a-fA-F0-9])*)?)?[pP][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b0[oO](_?[0-7])*i?/,relevance:0},{match:/-?\.\d(_?\d)*([eE][+-]?\d(_?\d)*)?i?/,relevance:0},{match:/-?\b\d(_?\d)*(\.(\d(_?\d)*)?)?([eE][+-]?\d(_?\d)*)?i?/,relevance:0}]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[e.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}var or="[0-9](_*[0-9])*",bo=`\\.(${or})`,Eo="[0-9a-fA-F](_*[0-9a-fA-F])*",Vf={className:"number",variants:[{begin:`(\\b(${or})((${bo})|\\.)?|(${bo}))[eE][+-]?(${or})[fFdD]?\\b`},{begin:`\\b(${or})((${bo})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${bo})[fFdD]?\\b`},{begin:`\\b(${or})[fFdD]\\b`},{begin:`\\b0[xX]((${Eo})\\.?|(${Eo})?\\.(${Eo}))[pP][+-]?(${or})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Eo})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function zg(e,t,n){return n===-1?"":e.replace(t,r=>zg(e,t,n-1))}function Mv(e){const t=e.regex,n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=n+zg("(?:<"+n+"~~~(?:\\s*,\\s*"+n+"~~~)*>)?",/~~~/g,2),a={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed","yield","permits","goto","when"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},u={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},c={className:"params",begin:/\(/,end:/\)/,keywords:a,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:a,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[e.BACKSLASH_ESCAPE]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,n],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[t.concat(/(?!else)/,n),/\s+/,n,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,n],className:{1:"keyword",3:"title.class"},contains:[c,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",e.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:a,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:a,relevance:0,contains:[u,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,Vf,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},Vf,u]}}var lr="[0-9](_*[0-9])*",vo=`\\.(${lr})`,ko="[0-9a-fA-F](_*[0-9a-fA-F])*",Ov={className:"number",variants:[{begin:`(\\b(${lr})((${vo})|\\.)?|(${vo}))[eE][+-]?(${lr})[fFdD]?\\b`},{begin:`\\b(${lr})((${vo})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${vo})[fFdD]?\\b`},{begin:`\\b(${lr})[fFdD]\\b`},{begin:`\\b0[xX]((${ko})\\.?|(${ko})?\\.(${ko}))[pP][+-]?(${lr})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${ko})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Rv(e){const t={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},n={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[e.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},l={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(l);const s={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},a={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(l,{className:"string"}),"self"]}]},u=Ov,c=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),f={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},p=f;return p.variants[1].contains=[f],f.variants[1].contains=[p],{name:"Kotlin",aliases:["kt","kts"],keywords:t,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,c,n,r,s,a,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:t,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:t,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[f,e.C_LINE_COMMENT_MODE,c],relevance:0},e.C_LINE_COMMENT_MODE,c,s,a,l,e.C_NUMBER_MODE]},c]},{begin:[/class|interface|trait/,/\s+/,e.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},s,a]},l,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
179
+ `},u]}}function Bg(e){return e?typeof e=="string"?e:e.source:null}function ri(e){return ce("(?=",e,")")}function ce(...e){return e.map(n=>Bg(n)).join("")}function Lv(e){const t=e[e.length-1];return typeof t=="object"&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}function Ke(...e){return"("+(Lv(e).capture?"":"?:")+e.map(r=>Bg(r)).join("|")+")"}const nc=e=>ce(/\b/,e,/\w$/.test(e)?/\b/:/\B/),Dv=["Protocol","Type"].map(nc),Wf=["init","self"].map(nc),Pv=["Any","Self"],_s=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Gf=["false","nil","true"],Fv=["assignment","associativity","higherThan","left","lowerThan","none","right"],zv=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],qf=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],Ug=Ke(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),$g=Ke(Ug,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Ss=ce(Ug,$g,"*"),jg=Ke(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),ml=Ke(jg,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Dt=ce(jg,ml,"*"),wo=ce(/[A-Z]/,ml,"*"),Bv=["attached","autoclosure",ce(/convention\(/,Ke("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",ce(/objc\(/,Dt,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],Uv=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function $v(e){const t={match:/\s+/,relevance:0},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[e.C_LINE_COMMENT_MODE,n],i={match:[/\./,Ke(...Dv,...Wf)],className:{2:"keyword"}},o={match:ce(/\./,Ke(..._s)),relevance:0},l=_s.filter(se=>typeof se=="string").concat(["_|0"]),s=_s.filter(se=>typeof se!="string").concat(Pv).map(nc),a={variants:[{className:"keyword",match:Ke(...s,...Wf)}]},u={$pattern:Ke(/\b\w+/,/#\w+/),keyword:l.concat(zv),literal:Gf},c=[i,o,a],f={match:ce(/\./,Ke(...qf)),relevance:0},p={className:"built_in",match:ce(/\b/,Ke(...qf),/(?=\()/)},d=[f,p],h={match:/->/,relevance:0},b={className:"operator",relevance:0,variants:[{match:Ss},{match:`\\.(\\.|${$g})+`}]},C=[h,b],g="([0-9]_*)+",m="([0-9a-fA-F]_*)+",y={className:"number",relevance:0,variants:[{match:`\\b(${g})(\\.(${g}))?([eE][+-]?(${g}))?\\b`},{match:`\\b0x(${m})(\\.(${m}))?([pP][+-]?(${g}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},S=(se="")=>({className:"subst",variants:[{match:ce(/\\/,se,/[0\\tnr"']/)},{match:ce(/\\/,se,/u\{[0-9a-fA-F]{1,8}\}/)}]}),T=(se="")=>({className:"subst",match:ce(/\\/,se,/[\t ]*(?:[\r\n]|\r\n)/)}),v=(se="")=>({className:"subst",label:"interpol",begin:ce(/\\/,se,/\(/),end:/\)/}),N=(se="")=>({begin:ce(se,/"""/),end:ce(/"""/,se),contains:[S(se),T(se),v(se)]}),I=(se="")=>({begin:ce(se,/"/),end:ce(/"/,se),contains:[S(se),v(se)]}),R={className:"string",variants:[N(),N("#"),N("##"),N("###"),I(),I("#"),I("##"),I("###")]},k=[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}],D={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:k},L=se=>{const wt=ce(se,/\//),Q=ce(/\//,se);return{begin:wt,end:Q,contains:[...k,{scope:"comment",begin:`#(?!.*${Q})`,end:/$/}]}},Y={scope:"regexp",variants:[L("###"),L("##"),L("#"),D]},H={match:ce(/`/,Dt,/`/)},V={className:"variable",match:/\$\d+/},O={className:"variable",match:`\\$${ml}+`},B=[H,V,O],A={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:Uv,contains:[...C,y,R]}]}},P={scope:"keyword",match:ce(/@/,Ke(...Bv),ri(Ke(/\(/,/\s+/)))},E={scope:"meta",match:ce(/@/,Dt)},W=[A,P,E],G={match:ri(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:ce(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,ml,"+")},{className:"type",match:wo,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:ce(/\s+&\s+/,ri(wo)),relevance:0}]},w={begin:/</,end:/>/,keywords:u,contains:[...r,...c,...W,h,G]};G.contains.push(w);const re={match:ce(Dt,/\s*:/),keywords:"_|0",relevance:0},he={begin:/\(/,end:/\)/,relevance:0,keywords:u,contains:["self",re,...r,Y,...c,...d,...C,y,R,...B,...W,G]},le={begin:/</,end:/>/,keywords:"repeat each",contains:[...r,G]},je={begin:Ke(ri(ce(Dt,/\s*:/)),ri(ce(Dt,/\s+/,Dt,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Dt}]},Qe={begin:/\(/,end:/\)/,keywords:u,contains:[je,...r,...c,...C,y,R,...W,G,he],endsParent:!0,illegal:/["']/},Ot={match:[/(func|macro)/,/\s+/,Ke(H.match,Dt,Ss)],className:{1:"keyword",3:"title.function"},contains:[le,Qe,t],illegal:[/\[/,/%/]},Rt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[le,Qe,t],illegal:/\[|%/},on={match:[/operator/,/\s+/,Ss],className:{1:"keyword",3:"title"}},Kr={begin:[/precedencegroup/,/\s+/,wo],className:{1:"keyword",3:"title"},contains:[G],keywords:[...Fv,...Gf],end:/}/},ln={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},Jn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},He={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Dt,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:u,contains:[le,...c,{begin:/:/,end:/\{/,keywords:u,contains:[{scope:"title.class.inherited",match:wo},...c],relevance:0}]};for(const se of R.variants){const wt=se.contains.find(Mn=>Mn.label==="interpol");wt.keywords=u;const Q=[...c,...d,...C,y,R,...B];wt.contains=[...Q,{begin:/\(/,end:/\)/,contains:["self",...Q]}]}return{name:"Swift",keywords:u,contains:[...r,Ot,Rt,ln,Jn,He,on,Kr,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},Y,...c,...d,...C,y,R,...B,...W,G,he]}}function jv(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",l="("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{match:/\b(0b[01']+)/},{match:/(-?)\b([\d']+(\.[\d']*)?|\.[\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)/},{match:/(-?)\b(0[xX][a-fA-F0-9]+(?:'[a-fA-F0-9]+)*(?:\.[a-fA-F0-9]*(?:'[a-fA-F0-9]*)*)?(?:[pP][-+]?[0-9]+)?(l|L)?(u|U)?)/},{match:/(-?)\b\d+(?:'\d+)*(?:\.\d*(?:'\d*)*)?(?:[eE][-+]?\d+)?/}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef elifdef elifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+"\\s*\\(",C={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","typeof","typeof_unqual","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_BitInt","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal96","_Decimal128","_Decimal64x","_Decimal128x","_Float16","_Float32","_Float64","_Float128","_Float32x","_Float64x","_Float128x","const","static","constexpr","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},g=[f,s,n,e.C_BLOCK_COMMENT_MODE,c,u],m={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:C,contains:g.concat([{begin:/\(/,end:/\)/,keywords:C,contains:g.concat(["self"]),relevance:0}]),relevance:0},y={begin:"("+l+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:C,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:C,relevance:0},{begin:d,returnBegin:!0,contains:[e.inherit(p,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,c,s,{begin:/\(/,end:/\)/,keywords:C,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,c,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C",aliases:["h"],keywords:C,disableAutodetect:!0,illegal:"</",contains:[].concat(m,y,g,[f,{begin:e.IDENT_RE+"::",keywords:C},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},e.TITLE_MODE]}]),exports:{preprocessor:f,strings:u,keywords:C}}}function Hv(e){const t=e.regex,n=e.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",l="(?!struct)("+r+"|"+t.optional(i)+"[a-zA-Z_]\\w*"+t.optional("<[^<>]+>")+")",s={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},u={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},c={className:"number",variants:[{begin:"[+-]?(?:(?:[0-9](?:'?[0-9])*\\.(?:[0-9](?:'?[0-9])*)?|\\.[0-9](?:'?[0-9])*)(?:[Ee][+-]?[0-9](?:'?[0-9])*)?|[0-9](?:'?[0-9])*[Ee][+-]?[0-9](?:'?[0-9])*|0[Xx](?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*(?:\\.(?:[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)?)?|\\.[0-9A-Fa-f](?:'?[0-9A-Fa-f])*)[Pp][+-]?[0-9](?:'?[0-9])*)(?:[Ff](?:16|32|64|128)?|(BF|bf)16|[Ll]|)"},{begin:"[+-]?\\b(?:0[Bb][01](?:'?[01])*|0[Xx][0-9A-Fa-f](?:'?[0-9A-Fa-f])*|0(?:'?[0-7])*|[1-9](?:'?[0-9])*)(?:[Uu](?:LL?|ll?)|[Uu][Zz]?|(?:LL?|ll?)[Uu]?|[Zz][Uu]|)"}],relevance:0},f={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(u,{className:"string"}),{className:"string",begin:/<.*?>/},n,e.C_BLOCK_COMMENT_MODE]},p={className:"title",begin:t.optional(i)+e.IDENT_RE,relevance:0},d=t.optional(i)+e.IDENT_RE+"\\s*\\(",h=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],b=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],C=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","flat_map","flat_set","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],g=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],S={type:b,keyword:h,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:C},T={className:"function.dispatch",relevance:0,keywords:{_hint:g},begin:t.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,e.IDENT_RE,t.lookahead(/(<[^<>]+>|)\s*\(/))},v=[T,f,s,n,e.C_BLOCK_COMMENT_MODE,c,u],N={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:S,contains:v.concat([{begin:/\(/,end:/\)/,keywords:S,contains:v.concat(["self"]),relevance:0}]),relevance:0},I={className:"function",begin:"("+l+"[\\*&\\s]+)+"+d,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:S,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:S,relevance:0},{begin:d,returnBegin:!0,contains:[p],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[u,c]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:[n,e.C_BLOCK_COMMENT_MODE,u,c,s,{begin:/\(/,end:/\)/,keywords:S,relevance:0,contains:["self",n,e.C_BLOCK_COMMENT_MODE,u,c,s]}]},s,n,e.C_BLOCK_COMMENT_MODE,f]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:S,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(N,I,T,v,[f,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function|flat_map|flat_set)\\s*<(?!<)",end:">",keywords:S,contains:["self",s]},{begin:e.IDENT_RE+"::",keywords:S},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function Kv(e){const t=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],n=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","args","async","await","by","descending","dynamic","equals","file","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","record","remove","required","scoped","select","set","unmanaged","value|0","var","when","where","with","yield"],l={keyword:i.concat(o),built_in:t,literal:r},s=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),a={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},u={className:"string",begin:/"""("*)(?!")(.|\n)*?"""\1/,relevance:1},c={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},f=e.inherit(c,{illegal:/\n/}),p={className:"subst",begin:/\{/,end:/\}/,keywords:l},d=e.inherit(p,{illegal:/\n/}),h={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,d]},b={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},p]},C=e.inherit(b,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},d]});p.contains=[b,h,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE],d.contains=[C,h,f,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const g={variants:[u,b,h,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},m={begin:"<",end:">",contains:[{beginKeywords:"in out"},s]},y=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",S={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:l,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},g,a,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},s,m,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[s,m,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+y+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:l,contains:[{beginKeywords:n.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,m],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:l,relevance:0,contains:[g,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},S]}}function Vv(e){const t=e.regex,n=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,n),i=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,n),o=t.concat(/[A-Z]+/,n),l={scope:"variable",match:"\\$+"+r},s={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},a={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},u=e.inherit(e.APOS_STRING_MODE,{illegal:null}),c=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(a)}),f={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(a),"on:begin":(H,V)=>{V.data._beginMatch=H[1]||H[2]},"on:end":(H,V)=>{V.data._beginMatch!==H[1]&&V.ignoreMatch()}},p=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),d=`[
180
+ ]`,h={scope:"string",variants:[c,u,f,p]},b={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},C=["false","null","true"],g=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],m=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],S={keyword:g,literal:(H=>{const V=[];return H.forEach(O=>{V.push(O),O.toLowerCase()===O?V.push(O.toUpperCase()):V.push(O.toLowerCase())}),V})(C),built_in:m},T=H=>H.map(V=>V.replace(/\|\d+$/,"")),v={variants:[{match:[/new/,t.concat(d,"+"),t.concat("(?!",T(m).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},N=t.concat(r,"\\b(?!\\()"),I={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),N],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,t.concat(/::/,t.lookahead(/(?!class\b)/)),N],scope:{1:"title.class",3:"variable.constant"}},{match:[i,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},R={scope:"attr",match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},k={relevance:0,begin:/\(/,end:/\)/,keywords:S,contains:[R,l,I,e.C_BLOCK_COMMENT_MODE,h,b,v]},D={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",T(g).join("\\b|"),"|",T(m).join("\\b|"),"\\b)"),r,t.concat(d,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[k]};k.contains.push(D);const L=[R,I,e.C_BLOCK_COMMENT_MODE,h,b,v],Y={begin:t.concat(/#\[\s*\\?/,t.either(i,o)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:C,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:C,keyword:["new","array"]},contains:["self",...L]},...L,{scope:"meta",variants:[{match:i},{match:o}]}]};return{case_insensitive:!1,keywords:S,contains:[Y,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},s,{scope:"variable.language",match:/\$this\b/},l,D,I,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},v,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:S,contains:["self",Y,l,I,e.C_BLOCK_COMMENT_MODE,h,b]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},h,b]}}function Hg(e){const t=e.regex,n="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=t.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=t.concat(r,/(::\w+)*/),l={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},a={begin:"#<",end:">"},u=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),e.COMMENT("^__END__",e.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:l},f={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:t.concat(/<<[-~]?'?/,t.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},p="[1-9](_?[0-9])*|0",d="[0-9](_?[0-9])*",h={className:"number",relevance:0,variants:[{begin:`\\b(${p})(\\.(${d}))?([eE][+-]?(${d})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},b={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:l}]},v=[f,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/\b(class|module)\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:l},{match:[/(include|extend)\s+/,i],scope:{2:"title.class"},keywords:l},{relevance:0,match:[i,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:r,scope:"title.class"},{match:[/def/,/\s+/,n],scope:{1:"keyword",3:"title.function"},contains:[b]},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[f,{begin:n}],relevance:0},h,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:l},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(a,u),relevance:0}].concat(a,u);c.contains=v,b.contains=v;const k=[{begin:/^\s*=>/,starts:{end:"$",contains:v}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:l,contains:v}}];return u.unshift(a),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:l,illegal:/\/\*/,contains:[e.SHEBANG({binary:"ruby"})].concat(k).concat(u).concat(v)}}function Kg(e){const t=e.regex,n=t.concat(/[\p{L}_]/u,t.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=e.inherit(o,{begin:/\(/,end:/\)/}),s=e.inherit(e.APOS_STRING_MODE,{className:"string"}),a=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),u={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,a,s,l,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,l,a,s]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[u],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[u],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:t.concat(/</,t.lookahead(t.concat(n,t.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:u}]},{className:"tag",begin:t.concat(/<\//,t.lookahead(t.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const Wv=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),Gv=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],qv=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],Yv=[...Gv,...qv],Qv=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Zv=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Xv=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),Jv=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function ek(e){const t=e.regex,n=Wv(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,l="[a-zA-Z-][a-zA-Z0-9_-]*",s=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[n.BLOCK_COMMENT,r,n.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+l,relevance:0},n.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Zv.join("|")+")"},{begin:":(:)?("+Xv.join("|")+")"}]},n.CSS_VARIABLE,{className:"attribute",begin:"\\b("+Jv.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[n.BLOCK_COMMENT,n.HEXCOLOR,n.IMPORTANT,n.CSS_NUMBER_MODE,...s,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...s,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},n.FUNCTION_DISPATCH]},{begin:t.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:Qv.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...s,n.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+Yv.join("|")+")\\b"}]}}const tk=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),nk=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],rk=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],ik=[...nk,...rk],ok=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),lk=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),sk=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),ak=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function uk(e){const t=tk(e),n=sk,r=lk,i="@[a-z-]+",o="and or not only",s={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+ik.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+n.join("|")+")"},s,{begin:/\(/,end:/\)/,contains:[t.CSS_NUMBER_MODE]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+ak.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[t.BLOCK_COMMENT,s,t.HEXCOLOR,t.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.IMPORTANT,t.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:ok.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},s,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,t.HEXCOLOR,t.CSS_NUMBER_MODE]},t.FUNCTION_DISPATCH]}}const ck=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),fk=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],dk=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],pk=[...fk,...dk],hk=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Vg=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Wg=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),gk=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),mk=Vg.concat(Wg).sort().reverse();function yk(e){const t=ck(e),n=mk,r="and or not only",i="[\\w-]+",o="("+i+"|@\\{"+i+"\\})",l=[],s=[],a=function(y){return{className:"string",begin:"~?"+y+".*?"+y}},u=function(y,S,T){return{className:y,begin:S,relevance:T}},c={$pattern:/[a-z-]+/,keyword:r,attribute:hk.join(" ")},f={begin:"\\(",end:"\\)",contains:s,keywords:c,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a("'"),a('"'),t.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},t.HEXCOLOR,f,u("variable","@@?"+i,10),u("variable","@\\{"+i+"\\}"),u("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},t.IMPORTANT,{beginKeywords:"and not"},t.FUNCTION_DISPATCH);const p=s.concat({begin:/\{/,end:/\}/,contains:l}),d={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},h={begin:o+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+gk.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},b={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:c,returnEnd:!0,contains:s,relevance:0}},C={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:p}},g={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,d,u("keyword","all\\b"),u("variable","@\\{"+i+"\\}"),{begin:"\\b("+pk.join("|")+")\\b",className:"selector-tag"},t.CSS_NUMBER_MODE,u("selector-tag",o,0),u("selector-id","#"+o),u("selector-class","\\."+o,0),u("selector-tag","&",0),t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Vg.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Wg.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:p},{begin:"!important"},t.FUNCTION_DISPATCH]},m={begin:i+`:(:)?(${n.join("|")})`,returnBegin:!0,contains:[g]};return l.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,b,C,m,h,g,d,t.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:l}}function bk(e){const t={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",aliases:["jsonc"],keywords:{literal:r},contains:[t,n,e.QUOTE_STRING_MODE,i,e.C_NUMBER_MODE,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function Ek(e){const t="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},l={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,i]},s=e.inherit(l,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),p={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},d={end:",",endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},h={begin:/\{/,end:/\}/,contains:[d],illegal:"\\n",relevance:0},b={begin:"\\[",end:"\\]",contains:[d],illegal:"\\n",relevance:0},C=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},p,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},h,b,o,l],g=[...C];return g.pop(),g.push(s),d.contains=g,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:C}}function vk(e){const t=e.regex,n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},l={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},s=/[A-Za-z][A-Za-z0-9+.-]*/,a={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:t.concat(/\[.+?\]\(/,s,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},u={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},c={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},f=e.inherit(u,{contains:[]}),p=e.inherit(c,{contains:[]});u.contains.push(p),c.contains.push(f);let d=[n,a];return[u,c,f,p].forEach(g=>{g.contains=g.contains.concat(d)}),d=d.concat(u,c),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:d},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:d}]}]},n,o,u,c,{className:"quote",begin:"^>\\s+",contains:d,end:"$"},i,r,a,l,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function kk(e){const t=e.regex,n=e.COMMENT("--","$"),r={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},i={begin:/"/,end:/"/,contains:[{match:/""/}]},o=["true","false","unknown"],l=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],a=["add","asc","collation","desc","final","first","last","view"],u=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],c=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],f=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],p=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],d=c,h=[...u,...a].filter(T=>!c.includes(T)),b={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},C={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},g={match:t.concat(/\b/,t.either(...d),/\s*\(/),relevance:0,keywords:{built_in:d}};function m(T){return t.concat(/\b/,t.either(...T.map(v=>v.replace(/\s+/,"\\s+"))),/\b/)}const y={scope:"keyword",match:m(p),relevance:0};function S(T,{exceptions:v,when:N}={}){const I=N;return v=v||[],T.map(R=>R.match(/\|\d+$/)||v.includes(R)?R:I(R)?`${R}|0`:R)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:S(h,{when:T=>T.length<3}),literal:o,type:s,built_in:f},contains:[{scope:"type",match:m(l)},y,g,b,r,i,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,C]}}function jl(e){const t=e.regex,n={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[n]}]};Object.assign(n,{className:"variable",variants:[{begin:t.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},o=e.inherit(e.COMMENT(),{match:[/(^|\s)/,/#.*$/],scope:{2:"comment"}}),l={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,n,i]};i.contains.push(s);const a={match:/\\"/},u={className:"string",begin:/'/,end:/'/},c={match:/\\'/},f={begin:/\$?\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,n]},p=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],d=e.SHEBANG({binary:`(${p.join("|")})`,relevance:10}),h={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},b=["if","then","else","elif","fi","time","for","while","until","in","do","done","case","esac","coproc","function","select"],C=["true","false"],g={match:/(\/[a-z._-]+)+/},m=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],y=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","sudo","type","typeset","ulimit","unalias"],S=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],T=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:b,literal:C,built_in:[...m,...y,"set","shopt",...S,...T]},contains:[d,e.SHEBANG(),h,f,o,l,g,s,a,u,c,n]}}function wk(e){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[e.HASH_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}function xk(e){const t={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[t,n]},i={begin:"^"+e.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},l={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[t]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[e.HASH_COMMENT_MODE,t,n,r,i,o,l]}}function _k(e){const t=e.regex,n=/[_A-Za-z][_0-9A-Za-z]*/;return{name:"GraphQL",aliases:["gql"],case_insensitive:!0,disableAutodetect:!1,keywords:{keyword:["query","mutation","subscription","type","input","schema","directive","interface","union","scalar","fragment","enum","on"],literal:["true","false","null"]},contains:[e.HASH_COMMENT_MODE,e.QUOTE_STRING_MODE,e.NUMBER_MODE,{scope:"punctuation",match:/[.]{3}/,relevance:0},{scope:"punctuation",begin:/[\!\(\)\:\=\[\]\{\|\}]{1}/,relevance:0},{scope:"variable",begin:/\$/,end:/\W/,excludeEnd:!0,relevance:0},{scope:"meta",match:/@\w+/,excludeEnd:!0},{scope:"symbol",begin:t.concat(n,t.lookahead(/\s*:/)),relevance:0}],illegal:[/[;<']/,/BEGIN/]}}function Sk(e){const t=e.regex,n={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:e.NUMBER_RE}]},r=e.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},l={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},s={begin:/\[/,end:/\]/,contains:[r,o,i,l,n,"self"],relevance:0},a=/[A-Za-z0-9_-]+/,u=/"(\\"|[^"])*"/,c=/'[^']*'/,f=t.either(a,u,c),p=t.concat(f,"(\\s*\\.\\s*",f,")*",t.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:p,className:"attr",starts:{end:/$/,contains:[r,s,o,i,l,n]}}]}}function Ck(e){const t=e.regex;return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,match:t.either(/^@@ +-\d+,\d+ +\+\d+,\d+ +@@/,/^\*\*\* +\d+,\d+ +\*\*\*\*$/,/^--- +\d+,\d+ +----$/)},{className:"comment",variants:[{begin:t.either(/Index: /,/^index/,/={3,}/,/^-{3}/,/^\*{3} /,/^\+{3}/,/^diff --git/),end:/$/},{match:/^\*{15}$/}]},{className:"addition",begin:/^\+/,end:/$/},{className:"deletion",begin:/^-/,end:/$/},{className:"addition",begin:/^!/,end:/$/}]}}ee.registerLanguage("typescript",ec);ee.registerLanguage("javascript",tc);ee.registerLanguage("python",Fg);ee.registerLanguage("rust",Av);ee.registerLanguage("go",Iv);ee.registerLanguage("java",Mv);ee.registerLanguage("kotlin",Rv);ee.registerLanguage("swift",$v);ee.registerLanguage("c",jv);ee.registerLanguage("cpp",Hv);ee.registerLanguage("csharp",Kv);ee.registerLanguage("php",Vv);ee.registerLanguage("ruby",Hg);ee.registerLanguage("html",Kg);ee.registerLanguage("css",ek);ee.registerLanguage("scss",uk);ee.registerLanguage("less",yk);ee.registerLanguage("json",bk);ee.registerLanguage("yaml",Ek);ee.registerLanguage("markdown",vk);ee.registerLanguage("sql",kk);ee.registerLanguage("bash",jl);ee.registerLanguage("dockerfile",wk);ee.registerLanguage("makefile",xk);ee.registerLanguage("xml",Kg);ee.registerLanguage("graphql",_k);ee.registerLanguage("ini",Sk);ee.registerLanguage("diff",Ck);ee.registerLanguage("tsx",ec);ee.registerLanguage("jsx",tc);ee.registerLanguage("ts",ec);ee.registerLanguage("js",tc);ee.registerLanguage("py",Fg);ee.registerLanguage("rb",Hg);ee.registerLanguage("sh",jl);ee.registerLanguage("shell",jl);ee.registerLanguage("zsh",jl);const xo={"hljs-keyword":"#569cd6","hljs-built_in":"#4ec9b0","hljs-type":"#4ec9b0","hljs-literal":"#569cd6","hljs-number":"#b5cea8","hljs-operator":"#d4d4d4","hljs-punctuation":"#d4d4d4","hljs-property":"#9cdcfe","hljs-regexp":"#d16969","hljs-string":"#ce9178","hljs-char.escape_":"#d7ba7d","hljs-subst":"#d4d4d4","hljs-symbol":"#b5cea8","hljs-class":"#4ec9b0","hljs-function":"#dcdcaa","hljs-variable":"#9cdcfe","hljs-variable.language_":"#569cd6","hljs-variable.constant_":"#4fc1ff","hljs-title":"#dcdcaa","hljs-title.class_":"#4ec9b0","hljs-title.class_.inherited__":"#4ec9b0","hljs-title.function_":"#dcdcaa","hljs-params":"#9cdcfe","hljs-comment":"#6a9955","hljs-doctag":"#608b4e","hljs-meta":"#9cdcfe","hljs-meta.prompt_":"#9cdcfe","hljs-meta.keyword":"#569cd6","hljs-meta.string":"#ce9178","hljs-section":"#569cd6","hljs-tag":"#569cd6","hljs-name":"#569cd6","hljs-attr":"#9cdcfe","hljs-attribute":"#9cdcfe","hljs-selector-tag":"#d7ba7d","hljs-selector-id":"#d7ba7d","hljs-selector-class":"#d7ba7d","hljs-selector-attr":"#d7ba7d","hljs-selector-pseudo":"#d7ba7d","hljs-template-tag":"#569cd6","hljs-template-variable":"#9cdcfe","hljs-addition":"#b5cea8","hljs-deletion":"#ce9178","hljs-emphasis":"#d4d4d4","hljs-strong":"#d4d4d4","hljs-link":"#569cd6","hljs-quote":"#6a9955"},Cr="#d4d4d4";function Nk(e){if(xo[e])return xo[e];const t=e.split(".")[0];return xo[t]?xo[t]:Cr}function Tk(e){return e.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&#39;/g,"'")}const Ak={plaintext:"plaintext",text:"plaintext",typescript:"typescript",javascript:"javascript",tsx:"tsx",jsx:"jsx",python:"python",rust:"rust",go:"go",java:"java",kotlin:"kotlin",swift:"swift",c:"c",cpp:"cpp",csharp:"csharp",php:"php",ruby:"ruby",html:"html",css:"css",scss:"scss",less:"less",json:"json",yaml:"yaml",markdown:"markdown",sql:"sql",bash:"bash",shell:"bash",sh:"bash",zsh:"bash",dockerfile:"dockerfile",makefile:"makefile",xml:"xml",graphql:"graphql",ini:"ini",diff:"diff",gitignore:"ini",dotenv:"ini",toml:"ini"};function Ik(e){const t=e.toLowerCase();return Ak[t]||"plaintext"}function Gg({code:e,language:t}){const[n,r]=K.useState([]),[i,o]=K.useState(!0),[l,s]=K.useState(null);return K.useEffect(()=>{let a=!1;function u(){try{o(!0);const c=Ik(t);if(c==="plaintext"){const d=e.split(`
181
+ `).map((h,b)=>({lineNumber:b+1,tokens:[{content:h||" ",color:Cr}]}));a||(r(d),s(null));return}const f=ee.highlight(e,{language:c,ignoreIllegals:!0}),p=Mk(f.value);a||(r(p),s(null))}catch(c){if(!a){console.error("Highlighting error:",c),s(c);const f=e.split(`
182
+ `).map((p,d)=>({lineNumber:d+1,tokens:[{content:p||" ",color:Cr}]}));r(f)}}finally{a||o(!1)}}return u(),()=>{a=!0}},[e,t]),{lines:n,loading:i,error:l}}function Mk(e){const t=[],n=[Cr];let r=[],i="",o=1,l=0;const s=()=>{i&&(r.push({content:Tk(i),color:n[n.length-1]}),i="")},a=()=>{r.length===0&&r.push({content:" ",color:Cr}),t.push({lineNumber:o,tokens:r}),o++,r=[]};for(;l<e.length;)if(e.startsWith('<span class="',l)){s();const u=l+13,c=e.indexOf('"',u),f=e.substring(u,c);n.push(Nk(f)),l=e.indexOf(">",c)+1}else e.startsWith("</span>",l)?(s(),n.length>1&&n.pop(),l+=7):e[l]===`
183
+ `?(s(),a(),l++):(i+=e[l],l++);return s(),(r.length>0||t.length===0)&&(r.length===0&&r.push({content:" ",color:Cr}),t.push({lineNumber:o,tokens:r})),t}function Ok({filePath:e,enabled:t}){const[n,r]=K.useState(null),[i,o]=K.useState(!1),[l,s]=K.useState(null);return K.useEffect(()=>{if(!t||!e){r(null);return}let a=!1;async function u(){try{o(!0),s(null);const c=await Fe.getFileDiff(e);a||r(c)}catch(c){a||(console.error("Failed to fetch diff:",c),s(c),r(null))}finally{a||o(!1)}}return u(),()=>{a=!0}},[e,t]),{diff:n,loading:i,error:l}}function Rk(e){const[t,n]=K.useState(!1),[r,i]=K.useState(null),[o,l]=K.useState(null),s=K.useCallback(c=>{n(!0),i(c),l({startLine:c,endLine:c})},[]),a=K.useCallback(c=>{if(!t||r===null)return;const f=Math.min(r,c),p=Math.max(r,c);l({startLine:f,endLine:p})},[t,r]),u=K.useCallback(()=>{t&&o&&e&&e(o),n(!1)},[t,o,e]);return{selecting:t,selection:o,handlers:{onMouseDown:s,onMouseMove:a,onMouseUp:u}}}function Lk(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Dk=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Pk=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fk={};function Yf(e,t){return(Fk.jsx?Pk:Dk).test(e)}const zk=/[ \t\n\f\r]/g;function Bk(e){return typeof e=="object"?e.type==="text"?Qf(e.value):!1:Qf(e)}function Qf(e){return e.replace(zk,"")===""}class Qi{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Qi.prototype.normal={};Qi.prototype.property={};Qi.prototype.space=void 0;function qg(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Qi(n,r,t)}function Da(e){return e.toLowerCase()}class rt{constructor(t,n){this.attribute=n,this.property=t}}rt.prototype.attribute="";rt.prototype.booleanish=!1;rt.prototype.boolean=!1;rt.prototype.commaOrSpaceSeparated=!1;rt.prototype.commaSeparated=!1;rt.prototype.defined=!1;rt.prototype.mustUseProperty=!1;rt.prototype.number=!1;rt.prototype.overloadedBoolean=!1;rt.prototype.property="";rt.prototype.spaceSeparated=!1;rt.prototype.space=void 0;let Uk=0;const J=Xn(),Se=Xn(),Pa=Xn(),z=Xn(),de=Xn(),Nr=Xn(),lt=Xn();function Xn(){return 2**++Uk}const Fa=Object.freeze(Object.defineProperty({__proto__:null,boolean:J,booleanish:Se,commaOrSpaceSeparated:lt,commaSeparated:Nr,number:z,overloadedBoolean:Pa,spaceSeparated:de},Symbol.toStringTag,{value:"Module"})),Cs=Object.keys(Fa);class rc extends rt{constructor(t,n,r,i){let o=-1;if(super(t,n),Zf(this,"space",i),typeof r=="number")for(;++o<Cs.length;){const l=Cs[o];Zf(this,Cs[o],(r&Fa[l])===Fa[l])}}}rc.prototype.defined=!0;function Zf(e,t,n){n&&(e[t]=n)}function $r(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new rc(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Da(r)]=r,n[Da(o.attribute)]=r}return new Qi(t,n,e.space)}const Yg=$r({properties:{ariaActiveDescendant:null,ariaAtomic:Se,ariaAutoComplete:null,ariaBusy:Se,ariaChecked:Se,ariaColCount:z,ariaColIndex:z,ariaColSpan:z,ariaControls:de,ariaCurrent:null,ariaDescribedBy:de,ariaDetails:null,ariaDisabled:Se,ariaDropEffect:de,ariaErrorMessage:null,ariaExpanded:Se,ariaFlowTo:de,ariaGrabbed:Se,ariaHasPopup:null,ariaHidden:Se,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:de,ariaLevel:z,ariaLive:null,ariaModal:Se,ariaMultiLine:Se,ariaMultiSelectable:Se,ariaOrientation:null,ariaOwns:de,ariaPlaceholder:null,ariaPosInSet:z,ariaPressed:Se,ariaReadOnly:Se,ariaRelevant:null,ariaRequired:Se,ariaRoleDescription:de,ariaRowCount:z,ariaRowIndex:z,ariaRowSpan:z,ariaSelected:Se,ariaSetSize:z,ariaSort:null,ariaValueMax:z,ariaValueMin:z,ariaValueNow:z,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Qg(e,t){return t in e?e[t]:t}function Zg(e,t){return Qg(e,t.toLowerCase())}const $k=$r({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Nr,acceptCharset:de,accessKey:de,action:null,allow:null,allowFullScreen:J,allowPaymentRequest:J,allowUserMedia:J,alt:null,as:null,async:J,autoCapitalize:null,autoComplete:de,autoFocus:J,autoPlay:J,blocking:de,capture:null,charSet:null,checked:J,cite:null,className:de,cols:z,colSpan:null,content:null,contentEditable:Se,controls:J,controlsList:de,coords:z|Nr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:J,defer:J,dir:null,dirName:null,disabled:J,download:Pa,draggable:Se,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:J,formTarget:null,headers:de,height:z,hidden:Pa,high:z,href:null,hrefLang:null,htmlFor:de,httpEquiv:de,id:null,imageSizes:null,imageSrcSet:null,inert:J,inputMode:null,integrity:null,is:null,isMap:J,itemId:null,itemProp:de,itemRef:de,itemScope:J,itemType:de,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:J,low:z,manifest:null,max:null,maxLength:z,media:null,method:null,min:null,minLength:z,multiple:J,muted:J,name:null,nonce:null,noModule:J,noValidate:J,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:J,optimum:z,pattern:null,ping:de,placeholder:null,playsInline:J,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:J,referrerPolicy:null,rel:de,required:J,reversed:J,rows:z,rowSpan:z,sandbox:de,scope:null,scoped:J,seamless:J,selected:J,shadowRootClonable:J,shadowRootDelegatesFocus:J,shadowRootMode:null,shape:null,size:z,sizes:null,slot:null,span:z,spellCheck:Se,src:null,srcDoc:null,srcLang:null,srcSet:null,start:z,step:null,style:null,tabIndex:z,target:null,title:null,translate:null,type:null,typeMustMatch:J,useMap:null,value:Se,width:z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:de,axis:null,background:null,bgColor:null,border:z,borderColor:null,bottomMargin:z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:J,declare:J,event:null,face:null,frame:null,frameBorder:null,hSpace:z,leftMargin:z,link:null,longDesc:null,lowSrc:null,marginHeight:z,marginWidth:z,noResize:J,noHref:J,noShade:J,noWrap:J,object:null,profile:null,prompt:null,rev:null,rightMargin:z,rules:null,scheme:null,scrolling:Se,standby:null,summary:null,text:null,topMargin:z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:J,disableRemotePlayback:J,prefix:null,property:null,results:z,security:null,unselectable:null},space:"html",transform:Zg}),jk=$r({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:lt,accentHeight:z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:z,amplitude:z,arabicForm:null,ascent:z,attributeName:null,attributeType:null,azimuth:z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:z,by:null,calcMode:null,capHeight:z,className:de,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:z,diffuseConstant:z,direction:null,display:null,dur:null,divisor:z,dominantBaseline:null,download:J,dx:null,dy:null,edgeMode:null,editable:null,elevation:z,enableBackground:null,end:null,event:null,exponent:z,externalResourcesRequired:null,fill:null,fillOpacity:z,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:Nr,g2:Nr,glyphName:Nr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:z,horizOriginX:z,horizOriginY:z,id:null,ideographic:z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:z,k:z,k1:z,k2:z,k3:z,k4:z,kernelMatrix:lt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:z,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:z,overlineThickness:z,paintOrder:null,panose1:null,path:null,pathLength:z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:de,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:z,pointsAtY:z,pointsAtZ:z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:lt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:lt,rev:lt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:lt,requiredFeatures:lt,requiredFonts:lt,requiredFormats:lt,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:z,specularExponent:z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:z,strikethroughThickness:z,string:null,stroke:null,strokeDashArray:lt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:z,strokeOpacity:z,strokeWidth:null,style:null,surfaceScale:z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:lt,tabIndex:z,tableValues:null,target:null,targetX:z,targetY:z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:lt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:z,underlineThickness:z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:z,values:null,vAlphabetic:z,vMathematical:z,vectorEffect:null,vHanging:z,vIdeographic:z,version:null,vertAdvY:z,vertOriginX:z,vertOriginY:z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Qg}),Xg=$r({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Jg=$r({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Zg}),em=$r({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Hk={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"},Kk=/[A-Z]/g,Xf=/-[a-z]/g,Vk=/^data[-\w.:]+$/i;function Wk(e,t){const n=Da(t);let r=t,i=rt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Vk.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Xf,qk);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Xf.test(o)){let l=o.replace(Kk,Gk);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=rc}return new i(r,t)}function Gk(e){return"-"+e.toLowerCase()}function qk(e){return e.charAt(1).toUpperCase()}const Yk=qg([Yg,$k,Xg,Jg,em],"html"),ic=qg([Yg,jk,Xg,Jg,em],"svg");function Qk(e){return e.join(" ").trim()}var oc={},Jf=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Zk=/\n/g,Xk=/^\s*/,Jk=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ew=/^:\s*/,tw=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,nw=/^[;\s]*/,rw=/^\s+|\s+$/g,iw=`
184
+ `,ed="/",td="*",Dn="",ow="comment",lw="declaration";function sw(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(h){var b=h.match(Zk);b&&(n+=b.length);var C=h.lastIndexOf(iw);r=~C?h.length-C:r+h.length}function o(){var h={line:n,column:r};return function(b){return b.position=new l(h),u(),b}}function l(h){this.start=h,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;function s(h){var b=new Error(t.source+":"+n+":"+r+": "+h);if(b.reason=h,b.filename=t.source,b.line=n,b.column=r,b.source=e,!t.silent)throw b}function a(h){var b=h.exec(e);if(b){var C=b[0];return i(C),e=e.slice(C.length),b}}function u(){a(Xk)}function c(h){var b;for(h=h||[];b=f();)b!==!1&&h.push(b);return h}function f(){var h=o();if(!(ed!=e.charAt(0)||td!=e.charAt(1))){for(var b=2;Dn!=e.charAt(b)&&(td!=e.charAt(b)||ed!=e.charAt(b+1));)++b;if(b+=2,Dn===e.charAt(b-1))return s("End of comment missing");var C=e.slice(2,b-2);return r+=2,i(C),e=e.slice(b),r+=2,h({type:ow,comment:C})}}function p(){var h=o(),b=a(Jk);if(b){if(f(),!a(ew))return s("property missing ':'");var C=a(tw),g=h({type:lw,property:nd(b[0].replace(Jf,Dn)),value:C?nd(C[0].replace(Jf,Dn)):Dn});return a(nw),g}}function d(){var h=[];c(h);for(var b;b=p();)b!==!1&&(h.push(b),c(h));return h}return u(),d()}function nd(e){return e?e.replace(rw,Dn):Dn}var aw=sw,uw=Ho&&Ho.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oc,"__esModule",{value:!0});oc.default=fw;const cw=uw(aw);function fw(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,cw.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:s}=o;i?t(l,s,o):s&&(n=n||{},n[l]=s)}),n}var Hl={};Object.defineProperty(Hl,"__esModule",{value:!0});Hl.camelCase=void 0;var dw=/^--[a-zA-Z0-9_-]+$/,pw=/-([a-z])/g,hw=/^[^-]+$/,gw=/^-(webkit|moz|ms|o|khtml)-/,mw=/^-(ms)-/,yw=function(e){return!e||hw.test(e)||dw.test(e)},bw=function(e,t){return t.toUpperCase()},rd=function(e,t){return"".concat(t,"-")},Ew=function(e,t){return t===void 0&&(t={}),yw(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(mw,rd):e=e.replace(gw,rd),e.replace(pw,bw))};Hl.camelCase=Ew;var vw=Ho&&Ho.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},kw=vw(oc),ww=Hl;function za(e,t){var n={};return!e||typeof e!="string"||(0,kw.default)(e,function(r,i){r&&i&&(n[(0,ww.camelCase)(r,t)]=i)}),n}za.default=za;var xw=za;const _w=Hi(xw),tm=nm("end"),lc=nm("start");function nm(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Sw(e){const t=lc(e),n=tm(e);if(t&&n)return{start:t,end:n}}function Ei(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?id(e.position):"start"in e||"end"in e?id(e):"line"in e||"column"in e?Ba(e):""}function Ba(e){return od(e&&e.line)+":"+od(e&&e.column)}function id(e){return Ba(e&&e.start)+"-"+Ba(e&&e.end)}function od(e){return e&&typeof e=="number"?e:1}class $e extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?o.ruleId=r:(o.source=r.slice(0,a),o.ruleId=r.slice(a+1))}if(!o.place&&o.ancestors&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=Ei(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}$e.prototype.file="";$e.prototype.name="";$e.prototype.reason="";$e.prototype.message="";$e.prototype.stack="";$e.prototype.column=void 0;$e.prototype.line=void 0;$e.prototype.ancestors=void 0;$e.prototype.cause=void 0;$e.prototype.fatal=void 0;$e.prototype.place=void 0;$e.prototype.ruleId=void 0;$e.prototype.source=void 0;const sc={}.hasOwnProperty,Cw=new Map,Nw=/[A-Z]/g,Tw=new Set(["table","tbody","thead","tfoot","tr"]),Aw=new Set(["td","th"]),rm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Iw(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=zw(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Fw(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ic:Yk,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=im(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function im(e,t,n){if(t.type==="element")return Mw(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Ow(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Lw(e,t,n);if(t.type==="mdxjsEsm")return Rw(e,t);if(t.type==="root")return Dw(e,t,n);if(t.type==="text")return Pw(e,t)}function Mw(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=ic,e.schema=i),e.ancestors.push(t);const o=lm(e,t.tagName,!1),l=Bw(e,t);let s=uc(e,t);return Tw.has(t.tagName)&&(s=s.filter(function(a){return typeof a=="string"?!Bk(a):!0})),om(e,l,o,t),ac(l,s),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Ow(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}$i(e,t.position)}function Rw(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);$i(e,t.position)}function Lw(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=ic,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:lm(e,t.name,!0),l=Uw(e,t),s=uc(e,t);return om(e,l,o,t),ac(l,s),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Dw(e,t,n){const r={};return ac(r,uc(e,t)),e.create(t,e.Fragment,r,n)}function Pw(e,t){return t.value}function om(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ac(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Fw(e,t,n){return r;function r(i,o,l,s){const u=Array.isArray(l.children)?n:t;return s?u(o,l,s):u(o,l)}}function zw(e,t){return n;function n(r,i,o,l){const s=Array.isArray(o.children),a=lc(r);return t(i,o,l,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function Bw(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&sc.call(t.properties,i)){const o=$w(e,i,t.properties[i]);if(o){const[l,s]=o;e.tableCellAlignToStyle&&l==="align"&&typeof s=="string"&&Aw.has(t.tagName)?r=s:n[l]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Uw(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const s=l.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else $i(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else $i(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function uc(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Cw;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const a=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(a){const u=i.get(a)||0;l=a+"-"+u,i.set(a,u+1)}}const s=im(e,o,l);s!==void 0&&n.push(s)}return n}function $w(e,t,n){const r=Wk(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Lk(n):Qk(n)),r.property==="style"){let i=typeof n=="object"?n:jw(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Hw(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Hk[r.property]||r.property:r.attribute,n]}}function jw(e,t){try{return _w(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new $e("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=rm+"#cannot-parse-style-attribute",i}}function lm(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const s=Yf(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}r=l}else r=Yf(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return sc.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);$i(e)}function $i(e,t){const n=new $e("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=rm+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Hw(e){const t={};let n;for(n in e)sc.call(e,n)&&(t[Kw(n)]=e[n]);return t}function Kw(e){let t=e.replace(Nw,Vw);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Vw(e){return"-"+e.toLowerCase()}const Ns={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"]},Ww={};function cc(e,t){const n=Ww,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return sm(e,r,i)}function sm(e,t,n){if(Gw(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return ld(e.children,t,n)}return Array.isArray(e)?ld(e,t,n):""}function ld(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=sm(e[i],t,n);return r.join("")}function Gw(e){return!!(e&&typeof e=="object")}const sd=document.createElement("i");function fc(e){const t="&"+e+";";sd.innerHTML=t;const n=sd.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ft(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function yt(e,t){return e.length>0?(ft(e,e.length,0,t),e):t}const ad={}.hasOwnProperty;function am(e){const t={};let n=-1;for(;++n<e.length;)qw(t,e[n]);return t}function qw(e,t){let n;for(n in t){const i=(ad.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){ad.call(i,l)||(i[l]=[]);const s=o[l];Yw(i[l],Array.isArray(s)?s:s?[s]:[])}}}function Yw(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ft(e,0,0,r)}function um(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function It(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const We=An(/[A-Za-z]/),Be=An(/[\dA-Za-z]/),Qw=An(/[#-'*+\--9=?A-Z^-~]/);function yl(e){return e!==null&&(e<32||e===127)}const Ua=An(/\d/),Zw=An(/[\dA-Fa-f]/),Xw=An(/[!-/:-@[-`{-~]/);function q(e){return e!==null&&e<-2}function fe(e){return e!==null&&(e<0||e===32)}function te(e){return e===-2||e===-1||e===32}const Kl=An(new RegExp("\\p{P}|\\p{S}","u")),qn=An(/\s/);function An(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function jr(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&Be(e.charCodeAt(n+1))&&Be(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(l=String.fromCharCode(o,s),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ie(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(a){return te(a)?(e.enter(n),s(a)):t(a)}function s(a){return te(a)&&o++<i?(e.consume(a),s):(e.exit(n),t(a))}}const Jw={tokenize:e1};function e1(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ie(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,l(s)}function l(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return q(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),l)}}const t1={tokenize:n1},ud={tokenize:r1};function n1(e){const t=this,n=[];let r=0,i,o,l;return s;function s(y){if(r<n.length){const S=n[r];return t.containerState=S[1],e.attempt(S[0].continuation,a,u)(y)}return u(y)}function a(y){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&m();const S=t.events.length;let T=S,v;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){v=t.events[T][1].end;break}g(r);let N=S;for(;N<t.events.length;)t.events[N][1].end={...v},N++;return ft(t.events,T+1,0,t.events.slice(S)),t.events.length=N,u(y)}return s(y)}function u(y){if(r===n.length){if(!i)return p(y);if(i.currentConstruct&&i.currentConstruct.concrete)return h(y);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ud,c,f)(y)}function c(y){return i&&m(),g(r),p(y)}function f(y){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,h(y)}function p(y){return t.containerState={},e.attempt(ud,d,h)(y)}function d(y){return r++,n.push([t.currentConstruct,t.containerState]),p(y)}function h(y){if(y===null){i&&m(),g(0),e.consume(y);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),b(y)}function b(y){if(y===null){C(e.exit("chunkFlow"),!0),g(0),e.consume(y);return}return q(y)?(e.consume(y),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(y),b)}function C(y,S){const T=t.sliceStream(y);if(S&&T.push(null),y.previous=o,o&&(o.next=y),o=y,i.defineSkip(y.start),i.write(T),t.parser.lazy[y.start.line]){let v=i.events.length;for(;v--;)if(i.events[v][1].start.offset<l&&(!i.events[v][1].end||i.events[v][1].end.offset>l))return;const N=t.events.length;let I=N,R,k;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(R){k=t.events[I][1].end;break}R=!0}for(g(r),v=N;v<t.events.length;)t.events[v][1].end={...k},v++;ft(t.events,I+1,0,t.events.slice(N)),t.events.length=v}}function g(y){let S=n.length;for(;S-- >y;){const T=n[S];t.containerState=T[1],T[0].exit.call(t,e)}n.length=y}function m(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function r1(e,t,n){return ie(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Fr(e){if(e===null||fe(e)||qn(e))return 1;if(Kl(e))return 2}function Vl(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const $a={name:"attention",resolveAll:i1,tokenize:o1};function i1(e,t){let n=-1,r,i,o,l,s,a,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},p={...e[n][1].start};cd(f,-a),cd(p,a),l={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...l.start},end:{...s.end}},e[r][1].end={...l.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=yt(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=yt(u,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),u=yt(u,Vl(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=yt(u,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=yt(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,ft(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function o1(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Fr(r);let o;return l;function l(a){return o=a,e.enter("attentionSequence"),s(a)}function s(a){if(a===o)return e.consume(a),s;const u=e.exit("attentionSequence"),c=Fr(a),f=!c||c===2&&i||n.includes(a),p=!i||i===2&&c||n.includes(r);return u._open=!!(o===42?f:f&&(i||!p)),u._close=!!(o===42?p:p&&(c||!f)),t(a)}}function cd(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const l1={name:"autolink",tokenize:s1};function s1(e,t,n){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(d){return We(d)?(e.consume(d),l):d===64?n(d):u(d)}function l(d){return d===43||d===45||d===46||Be(d)?(r=1,s(d)):u(d)}function s(d){return d===58?(e.consume(d),r=0,a):(d===43||d===45||d===46||Be(d))&&r++<32?(e.consume(d),s):(r=0,u(d))}function a(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):d===null||d===32||d===60||yl(d)?n(d):(e.consume(d),a)}function u(d){return d===64?(e.consume(d),c):Qw(d)?(e.consume(d),u):n(d)}function c(d){return Be(d)?f(d):n(d)}function f(d){return d===46?(e.consume(d),r=0,c):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),t):p(d)}function p(d){if((d===45||Be(d))&&r++<63){const h=d===45?p:f;return e.consume(d),h}return n(d)}}const Zi={partial:!0,tokenize:a1};function a1(e,t,n){return r;function r(o){return te(o)?ie(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||q(o)?t(o):n(o)}}const cm={continuation:{tokenize:c1},exit:f1,name:"blockQuote",tokenize:u1};function u1(e,t,n){const r=this;return i;function i(l){if(l===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return te(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function c1(e,t,n){const r=this;return i;function i(l){return te(l)?ie(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(cm,t,n)(l)}}function f1(e){e.exit("blockQuote")}const fm={name:"characterEscape",tokenize:d1};function d1(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Xw(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const dm={name:"characterReference",tokenize:p1};function p1(e,t,n){const r=this;let i=0,o,l;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),a}function a(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=Be,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Zw,c):(e.enter("characterReferenceValue"),o=7,l=Ua,c(f))}function c(f){if(f===59&&i){const p=e.exit("characterReferenceValue");return l===Be&&!fc(r.sliceSerialize(p))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(f)&&i++<o?(e.consume(f),c):n(f)}}const fd={partial:!0,tokenize:g1},dd={concrete:!0,name:"codeFenced",tokenize:h1};function h1(e,t,n){const r=this,i={partial:!0,tokenize:T};let o=0,l=0,s;return a;function a(v){return u(v)}function u(v){const N=r.events[r.events.length-1];return o=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,s=v,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(v)}function c(v){return v===s?(l++,e.consume(v),c):l<3?n(v):(e.exit("codeFencedFenceSequence"),te(v)?ie(e,f,"whitespace")(v):f(v))}function f(v){return v===null||q(v)?(e.exit("codeFencedFence"),r.interrupt?t(v):e.check(fd,b,S)(v)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===null||q(v)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(v)):te(v)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ie(e,d,"whitespace")(v)):v===96&&v===s?n(v):(e.consume(v),p)}function d(v){return v===null||q(v)?f(v):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(v))}function h(v){return v===null||q(v)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(v)):v===96&&v===s?n(v):(e.consume(v),h)}function b(v){return e.attempt(i,S,C)(v)}function C(v){return e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),g}function g(v){return o>0&&te(v)?ie(e,m,"linePrefix",o+1)(v):m(v)}function m(v){return v===null||q(v)?e.check(fd,b,S)(v):(e.enter("codeFlowValue"),y(v))}function y(v){return v===null||q(v)?(e.exit("codeFlowValue"),m(v)):(e.consume(v),y)}function S(v){return e.exit("codeFenced"),t(v)}function T(v,N,I){let R=0;return k;function k(V){return v.enter("lineEnding"),v.consume(V),v.exit("lineEnding"),D}function D(V){return v.enter("codeFencedFence"),te(V)?ie(v,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):L(V)}function L(V){return V===s?(v.enter("codeFencedFenceSequence"),Y(V)):I(V)}function Y(V){return V===s?(R++,v.consume(V),Y):R>=l?(v.exit("codeFencedFenceSequence"),te(V)?ie(v,H,"whitespace")(V):H(V)):I(V)}function H(V){return V===null||q(V)?(v.exit("codeFencedFence"),N(V)):I(V)}}}function g1(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const Ts={name:"codeIndented",tokenize:y1},m1={partial:!0,tokenize:b1};function y1(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),ie(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?a(u):q(u)?e.attempt(m1,l,a)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||q(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),s)}function a(u){return e.exit("codeIndented"),t(u)}}function b1(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):q(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):ie(e,o,"linePrefix",5)(l)}function o(l){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):q(l)?i(l):n(l)}}const E1={name:"codeText",previous:k1,resolve:v1,tokenize:w1};function v1(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function k1(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function w1(e,t,n){let r=0,i,o;return l;function l(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),r++,s):(e.exit("codeTextSequence"),a(f))}function a(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),a):f===96?(o=e.enter("codeTextSequence"),i=0,c(f)):q(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),a):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||q(f)?(e.exit("codeTextData"),a(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(o.type="codeTextData",u(f))}}class x1{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&ii(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ii(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ii(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ii(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ii(this.left,n.reverse())}}}function ii(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function pm(e){const t={};let n=-1,r,i,o,l,s,a,u;const c=new x1(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,_1(c,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=c.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},s=c.slice(i,n),s.unshift(r),c.splice(i,n-i+1,s))}}return ft(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function _1(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const s=l.events,a=[],u={};let c,f,p=-1,d=n,h=0,b=0;const C=[b];for(;d;){for(;e.get(++i)[1]!==d;);o.push(i),d._tokenizer||(c=r.sliceStream(d),d.next||c.push(null),f&&l.defineSkip(d.start),d._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(c),d._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=d,d=d.next}for(d=n;++p<s.length;)s[p][0]==="exit"&&s[p-1][0]==="enter"&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(b=p+1,C.push(b),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(l.events=[],d?(d._tokenizer=void 0,d.previous=void 0):C.pop(),p=C.length;p--;){const g=s.slice(C[p],C[p+1]),m=o.pop();a.push([m,m+g.length-1]),e.splice(m,2,g)}for(a.reverse(),p=-1;++p<a.length;)u[h+a[p][0]]=h+a[p][1],h+=a[p][1]-a[p][0]-1;return u}const S1={resolve:N1,tokenize:T1},C1={partial:!0,tokenize:A1};function N1(e){return pm(e),e}function T1(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):q(s)?e.check(C1,l,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function l(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function A1(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),ie(e,o,"linePrefix")}function o(l){if(l===null||q(l))return n(l);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function hm(e,t,n,r,i,o,l,s,a){const u=a||Number.POSITIVE_INFINITY;let c=0;return f;function f(g){return g===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(g),e.exit(o),p):g===null||g===32||g===41||yl(g)?n(g):(e.enter(r),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),b(g))}function p(g){return g===62?(e.enter(o),e.consume(g),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===62?(e.exit("chunkString"),e.exit(s),p(g)):g===null||g===60||q(g)?n(g):(e.consume(g),g===92?h:d)}function h(g){return g===60||g===62||g===92?(e.consume(g),d):d(g)}function b(g){return!c&&(g===null||g===41||fe(g))?(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(r),t(g)):c<u&&g===40?(e.consume(g),c++,b):g===41?(e.consume(g),c--,b):g===null||g===32||g===40||yl(g)?n(g):(e.consume(g),g===92?C:b)}function C(g){return g===40||g===41||g===92?(e.consume(g),b):b(g)}}function gm(e,t,n,r,i,o){const l=this;let s=0,a;return u;function u(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(o),c}function c(d){return s>999||d===null||d===91||d===93&&!a||d===94&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(d):d===93?(e.exit(o),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):q(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===null||d===91||d===93||q(d)||s++>999?(e.exit("chunkString"),c(d)):(e.consume(d),a||(a=!te(d)),d===92?p:f)}function p(d){return d===91||d===92||d===93?(e.consume(d),s++,f):f(d)}}function mm(e,t,n,r,i,o){let l;return s;function s(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,a):n(p)}function a(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),u(p))}function u(p){return p===l?(e.exit(o),a(l)):p===null?n(p):q(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ie(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===l||p===null||q(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===l||p===92?(e.consume(p),c):c(p)}}function vi(e,t){let n;return r;function r(i){return q(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):te(i)?ie(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const I1={name:"definition",tokenize:O1},M1={partial:!0,tokenize:R1};function O1(e,t,n){const r=this;let i;return o;function o(d){return e.enter("definition"),l(d)}function l(d){return gm.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function s(d){return i=It(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),a):n(d)}function a(d){return fe(d)?vi(e,u)(d):u(d)}function u(d){return hm(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function c(d){return e.attempt(M1,f,f)(d)}function f(d){return te(d)?ie(e,p,"whitespace")(d):p(d)}function p(d){return d===null||q(d)?(e.exit("definition"),r.parser.defined.push(i),t(d)):n(d)}}function R1(e,t,n){return r;function r(s){return fe(s)?vi(e,i)(s):n(s)}function i(s){return mm(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return te(s)?ie(e,l,"whitespace")(s):l(s)}function l(s){return s===null||q(s)?t(s):n(s)}}const L1={name:"hardBreakEscape",tokenize:D1};function D1(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return q(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const P1={name:"headingAtx",resolve:F1,tokenize:z1};function F1(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ft(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function z1(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),l(c)}function l(c){return c===35&&r++<6?(e.consume(c),l):c===null||fe(c)?(e.exit("atxHeadingSequence"),s(c)):n(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),a(c)):c===null||q(c)?(e.exit("atxHeading"),t(c)):te(c)?ie(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function a(c){return c===35?(e.consume(c),a):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||fe(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const B1=["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"],pd=["pre","script","style","textarea"],U1={concrete:!0,name:"htmlFlow",resolveTo:H1,tokenize:K1},$1={partial:!0,tokenize:W1},j1={partial:!0,tokenize:V1};function H1(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function K1(e,t,n){const r=this;let i,o,l,s,a;return u;function u(w){return c(w)}function c(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),f}function f(w){return w===33?(e.consume(w),p):w===47?(e.consume(w),o=!0,b):w===63?(e.consume(w),i=3,r.interrupt?t:E):We(w)?(e.consume(w),l=String.fromCharCode(w),C):n(w)}function p(w){return w===45?(e.consume(w),i=2,d):w===91?(e.consume(w),i=5,s=0,h):We(w)?(e.consume(w),i=4,r.interrupt?t:E):n(w)}function d(w){return w===45?(e.consume(w),r.interrupt?t:E):n(w)}function h(w){const re="CDATA[";return w===re.charCodeAt(s++)?(e.consume(w),s===re.length?r.interrupt?t:L:h):n(w)}function b(w){return We(w)?(e.consume(w),l=String.fromCharCode(w),C):n(w)}function C(w){if(w===null||w===47||w===62||fe(w)){const re=w===47,he=l.toLowerCase();return!re&&!o&&pd.includes(he)?(i=1,r.interrupt?t(w):L(w)):B1.includes(l.toLowerCase())?(i=6,re?(e.consume(w),g):r.interrupt?t(w):L(w)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):o?m(w):y(w))}return w===45||Be(w)?(e.consume(w),l+=String.fromCharCode(w),C):n(w)}function g(w){return w===62?(e.consume(w),r.interrupt?t:L):n(w)}function m(w){return te(w)?(e.consume(w),m):k(w)}function y(w){return w===47?(e.consume(w),k):w===58||w===95||We(w)?(e.consume(w),S):te(w)?(e.consume(w),y):k(w)}function S(w){return w===45||w===46||w===58||w===95||Be(w)?(e.consume(w),S):T(w)}function T(w){return w===61?(e.consume(w),v):te(w)?(e.consume(w),T):y(w)}function v(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),a=w,N):te(w)?(e.consume(w),v):I(w)}function N(w){return w===a?(e.consume(w),a=null,R):w===null||q(w)?n(w):(e.consume(w),N)}function I(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||fe(w)?T(w):(e.consume(w),I)}function R(w){return w===47||w===62||te(w)?y(w):n(w)}function k(w){return w===62?(e.consume(w),D):n(w)}function D(w){return w===null||q(w)?L(w):te(w)?(e.consume(w),D):n(w)}function L(w){return w===45&&i===2?(e.consume(w),O):w===60&&i===1?(e.consume(w),B):w===62&&i===4?(e.consume(w),W):w===63&&i===3?(e.consume(w),E):w===93&&i===5?(e.consume(w),P):q(w)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check($1,G,Y)(w)):w===null||q(w)?(e.exit("htmlFlowData"),Y(w)):(e.consume(w),L)}function Y(w){return e.check(j1,H,G)(w)}function H(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),V}function V(w){return w===null||q(w)?Y(w):(e.enter("htmlFlowData"),L(w))}function O(w){return w===45?(e.consume(w),E):L(w)}function B(w){return w===47?(e.consume(w),l="",A):L(w)}function A(w){if(w===62){const re=l.toLowerCase();return pd.includes(re)?(e.consume(w),W):L(w)}return We(w)&&l.length<8?(e.consume(w),l+=String.fromCharCode(w),A):L(w)}function P(w){return w===93?(e.consume(w),E):L(w)}function E(w){return w===62?(e.consume(w),W):w===45&&i===2?(e.consume(w),E):L(w)}function W(w){return w===null||q(w)?(e.exit("htmlFlowData"),G(w)):(e.consume(w),W)}function G(w){return e.exit("htmlFlow"),t(w)}}function V1(e,t,n){const r=this;return i;function i(l){return q(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function W1(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Zi,t,n)}}const G1={name:"htmlText",tokenize:q1};function q1(e,t,n){const r=this;let i,o,l;return s;function s(E){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(E),a}function a(E){return E===33?(e.consume(E),u):E===47?(e.consume(E),T):E===63?(e.consume(E),y):We(E)?(e.consume(E),I):n(E)}function u(E){return E===45?(e.consume(E),c):E===91?(e.consume(E),o=0,h):We(E)?(e.consume(E),m):n(E)}function c(E){return E===45?(e.consume(E),d):n(E)}function f(E){return E===null?n(E):E===45?(e.consume(E),p):q(E)?(l=f,B(E)):(e.consume(E),f)}function p(E){return E===45?(e.consume(E),d):f(E)}function d(E){return E===62?O(E):E===45?p(E):f(E)}function h(E){const W="CDATA[";return E===W.charCodeAt(o++)?(e.consume(E),o===W.length?b:h):n(E)}function b(E){return E===null?n(E):E===93?(e.consume(E),C):q(E)?(l=b,B(E)):(e.consume(E),b)}function C(E){return E===93?(e.consume(E),g):b(E)}function g(E){return E===62?O(E):E===93?(e.consume(E),g):b(E)}function m(E){return E===null||E===62?O(E):q(E)?(l=m,B(E)):(e.consume(E),m)}function y(E){return E===null?n(E):E===63?(e.consume(E),S):q(E)?(l=y,B(E)):(e.consume(E),y)}function S(E){return E===62?O(E):y(E)}function T(E){return We(E)?(e.consume(E),v):n(E)}function v(E){return E===45||Be(E)?(e.consume(E),v):N(E)}function N(E){return q(E)?(l=N,B(E)):te(E)?(e.consume(E),N):O(E)}function I(E){return E===45||Be(E)?(e.consume(E),I):E===47||E===62||fe(E)?R(E):n(E)}function R(E){return E===47?(e.consume(E),O):E===58||E===95||We(E)?(e.consume(E),k):q(E)?(l=R,B(E)):te(E)?(e.consume(E),R):O(E)}function k(E){return E===45||E===46||E===58||E===95||Be(E)?(e.consume(E),k):D(E)}function D(E){return E===61?(e.consume(E),L):q(E)?(l=D,B(E)):te(E)?(e.consume(E),D):R(E)}function L(E){return E===null||E===60||E===61||E===62||E===96?n(E):E===34||E===39?(e.consume(E),i=E,Y):q(E)?(l=L,B(E)):te(E)?(e.consume(E),L):(e.consume(E),H)}function Y(E){return E===i?(e.consume(E),i=void 0,V):E===null?n(E):q(E)?(l=Y,B(E)):(e.consume(E),Y)}function H(E){return E===null||E===34||E===39||E===60||E===61||E===96?n(E):E===47||E===62||fe(E)?R(E):(e.consume(E),H)}function V(E){return E===47||E===62||fe(E)?R(E):n(E)}function O(E){return E===62?(e.consume(E),e.exit("htmlTextData"),e.exit("htmlText"),t):n(E)}function B(E){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),A}function A(E){return te(E)?ie(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):P(E)}function P(E){return e.enter("htmlTextData"),l(E)}}const dc={name:"labelEnd",resolveAll:X1,resolveTo:J1,tokenize:ex},Y1={tokenize:tx},Q1={tokenize:nx},Z1={tokenize:rx};function X1(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&ft(e,0,e.length,n),e}function J1(e,t){let n=e.length,r=0,i,o,l,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const a={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},c={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return s=[["enter",a,t],["enter",u,t]],s=yt(s,e.slice(o+1,o+r+3)),s=yt(s,[["enter",c,t]]),s=yt(s,Vl(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),s=yt(s,[["exit",c,t],e[l-2],e[l-1],["exit",u,t]]),s=yt(s,e.slice(l+1)),s=yt(s,[["exit",a,t]]),ft(e,o,e.length,s),e}function ex(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(p){return o?o._inactive?f(p):(l=r.parser.defined.includes(It(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),a):n(p)}function a(p){return p===40?e.attempt(Y1,c,l?c:f)(p):p===91?e.attempt(Q1,c,l?u:f)(p):l?c(p):f(p)}function u(p){return e.attempt(Z1,c,f)(p)}function c(p){return t(p)}function f(p){return o._balanced=!0,n(p)}}function tx(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return fe(f)?vi(e,o)(f):o(f)}function o(f){return f===41?c(f):hm(e,l,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function l(f){return fe(f)?vi(e,a)(f):c(f)}function s(f){return n(f)}function a(f){return f===34||f===39||f===40?mm(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return fe(f)?vi(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function nx(e,t,n){const r=this;return i;function i(s){return gm.call(r,e,o,l,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(It(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function l(s){return n(s)}}function rx(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const ix={name:"labelStartImage",resolveAll:dc.resolveAll,tokenize:ox};function ox(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),l):n(s)}function l(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const lx={name:"labelStartLink",resolveAll:dc.resolveAll,tokenize:sx};function sx(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const As={name:"lineEnding",tokenize:ax};function ax(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ie(e,t,"linePrefix")}}const $o={name:"thematicBreak",tokenize:ux};function ux(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),a(u)):r>=3&&(u===null||q(u))?(e.exit("thematicBreak"),t(u)):n(u)}function a(u){return u===i?(e.consume(u),r++,a):(e.exit("thematicBreakSequence"),te(u)?ie(e,s,"whitespace")(u):s(u))}}const Ze={continuation:{tokenize:px},exit:gx,name:"list",tokenize:dx},cx={partial:!0,tokenize:mx},fx={partial:!0,tokenize:hx};function dx(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return s;function s(d){const h=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:Ua(d)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check($o,n,u)(d):u(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(d)}return n(d)}function a(d){return Ua(d)&&++l<10?(e.consume(d),a):(!r.interrupt||l<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),u(d)):n(d)}function u(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Zi,r.interrupt?n:c,e.attempt(cx,p,f))}function c(d){return r.containerState.initialBlankLine=!0,o++,p(d)}function f(d){return te(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),p):n(d)}function p(d){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(d)}}function px(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Zi,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ie(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!te(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(fx,t,l)(s))}function l(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,ie(e,e.attempt(Ze,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function hx(e,t,n){const r=this;return ie(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function gx(e){e.exit(this.containerState.type)}function mx(e,t,n){const r=this;return ie(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!te(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const hd={name:"setextUnderline",resolveTo:yx,tokenize:bx};function yx(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function bx(e,t,n){const r=this;let i;return o;function o(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),te(u)?ie(e,a,"lineSuffix")(u):a(u))}function a(u){return u===null||q(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Ex={tokenize:vx};function vx(e){const t=this,n=e.attempt(Zi,r,e.attempt(this.parser.constructs.flowInitial,i,ie(e,e.attempt(this.parser.constructs.flow,i,e.attempt(S1,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const kx={resolveAll:bm()},wx=ym("string"),xx=ym("text");function ym(e){return{resolveAll:bm(e==="text"?_x:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,s);return l;function l(c){return u(c)?o(c):s(c)}function s(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),a}function a(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),a)}function u(c){if(c===null)return!0;const f=i[c];let p=-1;if(f)for(;++p<f.length;){const d=f[p];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function bm(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function _x(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,l=-1,s=0,a;for(;o--;){const u=i[o];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)s++,l--;if(l)break;l=-1}else if(u===-2)a=!0,s++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||a||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Sx={42:Ze,43:Ze,45:Ze,48:Ze,49:Ze,50:Ze,51:Ze,52:Ze,53:Ze,54:Ze,55:Ze,56:Ze,57:Ze,62:cm},Cx={91:I1},Nx={[-2]:Ts,[-1]:Ts,32:Ts},Tx={35:P1,42:$o,45:[hd,$o],60:U1,61:hd,95:$o,96:dd,126:dd},Ax={38:dm,92:fm},Ix={[-5]:As,[-4]:As,[-3]:As,33:ix,38:dm,42:$a,60:[l1,G1],91:lx,92:[L1,fm],93:dc,95:$a,96:E1},Mx={null:[$a,kx]},Ox={null:[42,95]},Rx={null:[]},Lx=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ox,contentInitial:Cx,disable:Rx,document:Sx,flow:Tx,flowInitial:Nx,insideSpan:Mx,string:Ax,text:Ix},Symbol.toStringTag,{value:"Module"}));function Dx(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],s=[];const a={attempt:N(T),check:N(v),consume:m,enter:y,exit:S,interrupt:N(v,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:h,parser:e,previous:null,sliceSerialize:p,sliceStream:d,write:f};let c=t.tokenize.call(u,a);return t.resolveAll&&o.push(t),u;function f(D){return l=yt(l,D),C(),l[l.length-1]!==null?[]:(I(t,0),u.events=Vl(o,u.events,u),u.events)}function p(D,L){return Fx(d(D),L)}function d(D){return Px(l,D)}function h(){const{_bufferIndex:D,_index:L,line:Y,column:H,offset:V}=r;return{_bufferIndex:D,_index:L,line:Y,column:H,offset:V}}function b(D){i[D.line]=D.column,k()}function C(){let D;for(;r._index<l.length;){const L=l[r._index];if(typeof L=="string")for(D=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===D&&r._bufferIndex<L.length;)g(L.charCodeAt(r._bufferIndex));else g(L)}}function g(D){c=c(D)}function m(D){q(D)?(r.line++,r.column=1,r.offset+=D===-3?2:1,k()):D!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=D}function y(D,L){const Y=L||{};return Y.type=D,Y.start=h(),u.events.push(["enter",Y,u]),s.push(Y),Y}function S(D){const L=s.pop();return L.end=h(),u.events.push(["exit",L,u]),L}function T(D,L){I(D,L.from)}function v(D,L){L.restore()}function N(D,L){return Y;function Y(H,V,O){let B,A,P,E;return Array.isArray(H)?G(H):"tokenize"in H?G([H]):W(H);function W(le){return je;function je(Qe){const Ot=Qe!==null&&le[Qe],Rt=Qe!==null&&le.null,on=[...Array.isArray(Ot)?Ot:Ot?[Ot]:[],...Array.isArray(Rt)?Rt:Rt?[Rt]:[]];return G(on)(Qe)}}function G(le){return B=le,A=0,le.length===0?O:w(le[A])}function w(le){return je;function je(Qe){return E=R(),P=le,le.partial||(u.currentConstruct=le),le.name&&u.parser.constructs.disable.null.includes(le.name)?he():le.tokenize.call(L?Object.assign(Object.create(u),L):u,a,re,he)(Qe)}}function re(le){return D(P,E),V}function he(le){return E.restore(),++A<B.length?w(B[A]):O}}}function I(D,L){D.resolveAll&&!o.includes(D)&&o.push(D),D.resolve&&ft(u.events,L,u.events.length-L,D.resolve(u.events.slice(L),u)),D.resolveTo&&(u.events=D.resolveTo(u.events,u))}function R(){const D=h(),L=u.previous,Y=u.currentConstruct,H=u.events.length,V=Array.from(s);return{from:H,restore:O};function O(){r=D,u.previous=L,u.currentConstruct=Y,u.events.length=H,s=V,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Px(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const s=l[0];typeof s=="string"?l[0]=s.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function Fx(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
185
+ `;break}case-3:{l=`\r
186
+ `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function zx(e){const r={constructs:am([Lx,...(e||{}).extensions||[]]),content:i(Jw),defined:[],document:i(t1),flow:i(Ex),lazy:{},string:i(wx),text:i(xx)};return r;function i(o){return l;function l(s){return Dx(r,o,s)}}}function Bx(e){for(;!pm(e););return e}const gd=/[\0\t\n\r]/g;function Ux(){let e=1,t="",n=!0,r;return i;function i(o,l,s){const a=[];let u,c,f,p,d;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),f=0,t="",n&&(o.charCodeAt(0)===65279&&f++,n=void 0);f<o.length;){if(gd.lastIndex=f,u=gd.exec(o),p=u&&u.index!==void 0?u.index:o.length,d=o.charCodeAt(p),!u){t=o.slice(f);break}if(d===10&&f===p&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),f<p&&(a.push(o.slice(f,p)),e+=p-f),d){case 0:{a.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,a.push(-2);e++<c;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}f=p+1}return s&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const $x=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function jx(e){return e.replace($x,Hx)}function Hx(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return um(n.slice(o?2:1),o?16:10)}return fc(n)||e}const Em={}.hasOwnProperty;function Kx(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Vx(n)(Bx(zx(n).document().write(Ux()(e,t,!0))))}function Vx(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Mn),autolinkProtocol:R,autolinkEmail:R,atxHeading:o(He),blockQuote:o(Rt),characterEscape:R,characterReference:R,codeFenced:o(on),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(on,l),codeText:o(Kr,l),codeTextData:R,data:R,codeFlowValue:R,definition:o(ln),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Jn),hardBreakEscape:o(se),hardBreakTrailing:o(se),htmlFlow:o(wt,l),htmlFlowData:R,htmlText:o(wt,l),htmlTextData:R,image:o(Q),label:l,link:o(Mn),listItem:o(ue),listItemValue:p,listOrdered:o(_e,f),listUnordered:o(_e),paragraph:o(er),reference:w,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(He),strong:o(Ht),thematicBreak:o(Wr)},exit:{atxHeading:a(),atxHeadingSequence:T,autolink:a(),autolinkEmail:Ot,autolinkProtocol:Qe,blockQuote:a(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:he,characterReferenceMarkerNumeric:he,characterReferenceValue:le,characterReference:je,codeFenced:a(C),codeFencedFence:b,codeFencedFenceInfo:d,codeFencedFenceMeta:h,codeFlowValue:k,codeIndented:a(g),codeText:a(V),codeTextData:k,data:k,definition:a(),definitionDestinationString:S,definitionLabelString:m,definitionTitleString:y,emphasis:a(),hardBreakEscape:a(L),hardBreakTrailing:a(L),htmlFlow:a(Y),htmlFlowData:k,htmlText:a(H),htmlTextData:k,image:a(B),label:P,labelText:A,lineEnding:D,link:a(O),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:re,resourceDestinationString:E,resourceTitleString:W,resource:G,setextHeading:a(I),setextHeadingLineSequence:N,setextHeadingText:v,strong:a(),thematicBreak:a()}};vm(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(_){let M={type:"root",children:[]};const U={stack:[M],tokenStack:[],config:t,enter:s,exit:u,buffer:l,resume:c,data:n},j=[];let X=-1;for(;++X<_.length;)if(_[X][1].type==="listOrdered"||_[X][1].type==="listUnordered")if(_[X][0]==="enter")j.push(X);else{const we=j.pop();X=i(_,we,X)}for(X=-1;++X<_.length;){const we=t[_[X][0]];Em.call(we,_[X][1].type)&&we[_[X][1].type].call(Object.assign({sliceSerialize:_[X][2].sliceSerialize},U),_[X][1])}if(U.tokenStack.length>0){const we=U.tokenStack[U.tokenStack.length-1];(we[1]||md).call(U,void 0,we[0])}for(M.position={start:an(_.length>0?_[0][1].start:{line:1,column:1,offset:0}),end:an(_.length>0?_[_.length-2][1].end:{line:1,column:1,offset:0})},X=-1;++X<t.transforms.length;)M=t.transforms[X](M)||M;return M}function i(_,M,U){let j=M-1,X=-1,we=!1,Kt,xt,Gr,qr;for(;++j<=U;){const it=_[j];switch(it[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{it[0]==="enter"?X++:X--,qr=void 0;break}case"lineEndingBlank":{it[0]==="enter"&&(Kt&&!qr&&!X&&!Gr&&(Gr=j),qr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:qr=void 0}if(!X&&it[0]==="enter"&&it[1].type==="listItemPrefix"||X===-1&&it[0]==="exit"&&(it[1].type==="listUnordered"||it[1].type==="listOrdered")){if(Kt){let tr=j;for(xt=void 0;tr--;){const Vt=_[tr];if(Vt[1].type==="lineEnding"||Vt[1].type==="lineEndingBlank"){if(Vt[0]==="exit")continue;xt&&(_[xt][1].type="lineEndingBlank",we=!0),Vt[1].type="lineEnding",xt=tr}else if(!(Vt[1].type==="linePrefix"||Vt[1].type==="blockQuotePrefix"||Vt[1].type==="blockQuotePrefixWhitespace"||Vt[1].type==="blockQuoteMarker"||Vt[1].type==="listItemIndent"))break}Gr&&(!xt||Gr<xt)&&(Kt._spread=!0),Kt.end=Object.assign({},xt?_[xt][1].start:it[1].end),_.splice(xt||j,0,["exit",Kt,it[2]]),j++,U++}if(it[1].type==="listItemPrefix"){const tr={type:"listItem",_spread:!1,start:Object.assign({},it[1].start),end:void 0};Kt=tr,_.splice(j,0,["enter",tr,it[2]]),j++,U++,Gr=void 0,qr=!0}}}return _[M][1]._spread=we,U}function o(_,M){return U;function U(j){s.call(this,_(j),j),M&&M.call(this,j)}}function l(){this.stack.push({type:"fragment",children:[]})}function s(_,M,U){this.stack[this.stack.length-1].children.push(_),this.stack.push(_),this.tokenStack.push([M,U||void 0]),_.position={start:an(M.start),end:void 0}}function a(_){return M;function M(U){_&&_.call(this,U),u.call(this,U)}}function u(_,M){const U=this.stack.pop(),j=this.tokenStack.pop();if(j)j[0].type!==_.type&&(M?M.call(this,_,j[0]):(j[1]||md).call(this,_,j[0]));else throw new Error("Cannot close `"+_.type+"` ("+Ei({start:_.start,end:_.end})+"): it’s not open");U.position.end=an(_.end)}function c(){return cc(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(_){if(this.data.expectingFirstListItemValue){const M=this.stack[this.stack.length-2];M.start=Number.parseInt(this.sliceSerialize(_),10),this.data.expectingFirstListItemValue=void 0}}function d(){const _=this.resume(),M=this.stack[this.stack.length-1];M.lang=_}function h(){const _=this.resume(),M=this.stack[this.stack.length-1];M.meta=_}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const _=this.resume(),M=this.stack[this.stack.length-1];M.value=_.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const _=this.resume(),M=this.stack[this.stack.length-1];M.value=_.replace(/(\r?\n|\r)$/g,"")}function m(_){const M=this.resume(),U=this.stack[this.stack.length-1];U.label=M,U.identifier=It(this.sliceSerialize(_)).toLowerCase()}function y(){const _=this.resume(),M=this.stack[this.stack.length-1];M.title=_}function S(){const _=this.resume(),M=this.stack[this.stack.length-1];M.url=_}function T(_){const M=this.stack[this.stack.length-1];if(!M.depth){const U=this.sliceSerialize(_).length;M.depth=U}}function v(){this.data.setextHeadingSlurpLineEnding=!0}function N(_){const M=this.stack[this.stack.length-1];M.depth=this.sliceSerialize(_).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function R(_){const U=this.stack[this.stack.length-1].children;let j=U[U.length-1];(!j||j.type!=="text")&&(j=Vr(),j.position={start:an(_.start),end:void 0},U.push(j)),this.stack.push(j)}function k(_){const M=this.stack.pop();M.value+=this.sliceSerialize(_),M.position.end=an(_.end)}function D(_){const M=this.stack[this.stack.length-1];if(this.data.atHardBreak){const U=M.children[M.children.length-1];U.position.end=an(_.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(M.type)&&(R.call(this,_),k.call(this,_))}function L(){this.data.atHardBreak=!0}function Y(){const _=this.resume(),M=this.stack[this.stack.length-1];M.value=_}function H(){const _=this.resume(),M=this.stack[this.stack.length-1];M.value=_}function V(){const _=this.resume(),M=this.stack[this.stack.length-1];M.value=_}function O(){const _=this.stack[this.stack.length-1];if(this.data.inReference){const M=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=M,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function B(){const _=this.stack[this.stack.length-1];if(this.data.inReference){const M=this.data.referenceType||"shortcut";_.type+="Reference",_.referenceType=M,delete _.url,delete _.title}else delete _.identifier,delete _.label;this.data.referenceType=void 0}function A(_){const M=this.sliceSerialize(_),U=this.stack[this.stack.length-2];U.label=jx(M),U.identifier=It(M).toLowerCase()}function P(){const _=this.stack[this.stack.length-1],M=this.resume(),U=this.stack[this.stack.length-1];if(this.data.inReference=!0,U.type==="link"){const j=_.children;U.children=j}else U.alt=M}function E(){const _=this.resume(),M=this.stack[this.stack.length-1];M.url=_}function W(){const _=this.resume(),M=this.stack[this.stack.length-1];M.title=_}function G(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function re(_){const M=this.resume(),U=this.stack[this.stack.length-1];U.label=M,U.identifier=It(this.sliceSerialize(_)).toLowerCase(),this.data.referenceType="full"}function he(_){this.data.characterReferenceType=_.type}function le(_){const M=this.sliceSerialize(_),U=this.data.characterReferenceType;let j;U?(j=um(M,U==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):j=fc(M);const X=this.stack[this.stack.length-1];X.value+=j}function je(_){const M=this.stack.pop();M.position.end=an(_.end)}function Qe(_){k.call(this,_);const M=this.stack[this.stack.length-1];M.url=this.sliceSerialize(_)}function Ot(_){k.call(this,_);const M=this.stack[this.stack.length-1];M.url="mailto:"+this.sliceSerialize(_)}function Rt(){return{type:"blockquote",children:[]}}function on(){return{type:"code",lang:null,meta:null,value:""}}function Kr(){return{type:"inlineCode",value:""}}function ln(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Jn(){return{type:"emphasis",children:[]}}function He(){return{type:"heading",depth:0,children:[]}}function se(){return{type:"break"}}function wt(){return{type:"html",value:""}}function Q(){return{type:"image",title:null,url:"",alt:null}}function Mn(){return{type:"link",title:null,url:"",children:[]}}function _e(_){return{type:"list",ordered:_.type==="listOrdered",start:null,spread:_._spread,children:[]}}function ue(_){return{type:"listItem",spread:_._spread,checked:null,children:[]}}function er(){return{type:"paragraph",children:[]}}function Ht(){return{type:"strong",children:[]}}function Vr(){return{type:"text",value:""}}function Wr(){return{type:"thematicBreak"}}}function an(e){return{line:e.line,column:e.column,offset:e.offset}}function vm(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?vm(e,r):Wx(e,r)}}function Wx(e,t){let n;for(n in t)if(Em.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function md(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ei({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ei({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ei({start:t.start,end:t.end})+") is still open")}function Gx(e){const t=this;t.parser=n;function n(r){return Kx(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function qx(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Yx(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
187
+ `}]}function Qx(e,t){const n=t.value?t.value+`
188
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Zx(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Xx(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Jx(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=jr(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,s+=1,e.footnoteCounts.set(r,s);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,a);const u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)}function e_(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function t_(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function km(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function n_(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return km(e,t);const i={src:jr(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function r_(e,t){const n={src:jr(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function i_(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function o_(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return km(e,t);const i={href:jr(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function l_(e,t){const n={href:jr(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function s_(e,t,n){const r=e.all(t),i=n?a_(n):wm(t),o={},l=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const c=r[s];(i||s!==0||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
189
+ `}),c.type==="element"&&c.tagName==="p"&&!i?l.push(...c.children):l.push(c)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&l.push({type:"text",value:`
190
+ `});const u={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,u),e.applyData(t,u)}function a_(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=wm(n[r])}return t}function wm(e){const t=e.spread;return t??e.children.length>1}function u_(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function c_(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function f_(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function d_(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function p_(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=lc(t.children[1]),a=tm(t.children[t.children.length-1]);s&&a&&(l.position={start:s,end:a}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function h_(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,s=l?l.length:t.children.length;let a=-1;const u=[];for(;++a<s;){const f=t.children[a],p={},d=l?l[a]:void 0;d&&(p.align=d);let h={type:"element",tagName:o,properties:p,children:[]};f&&(h.children=e.all(f),e.patch(f,h),h=e.applyData(f,h)),u.push(h)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function g_(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const yd=9,bd=32;function m_(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Ed(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Ed(t.slice(i),i>0,!1)),o.join("")}function Ed(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===yd||o===bd;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===yd||o===bd;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function y_(e,t){const n={type:"text",value:m_(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function b_(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const E_={blockquote:qx,break:Yx,code:Qx,delete:Zx,emphasis:Xx,footnoteReference:Jx,heading:e_,html:t_,imageReference:n_,image:r_,inlineCode:i_,linkReference:o_,link:l_,listItem:s_,list:u_,paragraph:c_,root:f_,strong:d_,table:p_,tableCell:g_,tableRow:h_,text:y_,thematicBreak:b_,toml:_o,yaml:_o,definition:_o,footnoteDefinition:_o};function _o(){}const xm=-1,Wl=0,ki=1,bl=2,pc=3,hc=4,gc=5,mc=6,_m=7,Sm=8,vd=typeof self=="object"?self:globalThis,v_=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case Wl:case xm:return n(l,i);case ki:{const s=n([],i);for(const a of l)s.push(r(a));return s}case bl:{const s=n({},i);for(const[a,u]of l)s[r(a)]=r(u);return s}case pc:return n(new Date(l),i);case hc:{const{source:s,flags:a}=l;return n(new RegExp(s,a),i)}case gc:{const s=n(new Map,i);for(const[a,u]of l)s.set(r(a),r(u));return s}case mc:{const s=n(new Set,i);for(const a of l)s.add(r(a));return s}case _m:{const{name:s,message:a}=l;return n(new vd[s](a),i)}case Sm:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:s}=new Uint8Array(l);return n(new DataView(s),l)}}return n(new vd[o](l),i)};return r},kd=e=>v_(new Map,e)(0),ir="",{toString:k_}={},{keys:w_}=Object,oi=e=>{const t=typeof e;if(t!=="object"||!e)return[Wl,t];const n=k_.call(e).slice(8,-1);switch(n){case"Array":return[ki,ir];case"Object":return[bl,ir];case"Date":return[pc,ir];case"RegExp":return[hc,ir];case"Map":return[gc,ir];case"Set":return[mc,ir];case"DataView":return[ki,n]}return n.includes("Array")?[ki,n]:n.includes("Error")?[_m,n]:[bl,n]},So=([e,t])=>e===Wl&&(t==="function"||t==="symbol"),x_=(e,t,n,r)=>{const i=(l,s)=>{const a=r.push(l)-1;return n.set(s,a),a},o=l=>{if(n.has(l))return n.get(l);let[s,a]=oi(l);switch(s){case Wl:{let c=l;switch(a){case"bigint":s=Sm,c=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);c=null;break;case"undefined":return i([xm],l)}return i([s,c],l)}case ki:{if(a){let p=l;return a==="DataView"?p=new Uint8Array(l.buffer):a==="ArrayBuffer"&&(p=new Uint8Array(l)),i([a,[...p]],l)}const c=[],f=i([s,c],l);for(const p of l)c.push(o(p));return f}case bl:{if(a)switch(a){case"BigInt":return i([a,l.toString()],l);case"Boolean":case"Number":case"String":return i([a,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const c=[],f=i([s,c],l);for(const p of w_(l))(e||!So(oi(l[p])))&&c.push([o(p),o(l[p])]);return f}case pc:return i([s,l.toISOString()],l);case hc:{const{source:c,flags:f}=l;return i([s,{source:c,flags:f}],l)}case gc:{const c=[],f=i([s,c],l);for(const[p,d]of l)(e||!(So(oi(p))||So(oi(d))))&&c.push([o(p),o(d)]);return f}case mc:{const c=[],f=i([s,c],l);for(const p of l)(e||!So(oi(p)))&&c.push(o(p));return f}}const{message:u}=l;return i([s,{name:a,message:u}],l)};return o},wd=(e,{json:t,lossy:n}={})=>{const r=[];return x_(!(t||n),!!t,new Map,r)(e),r},El=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?kd(wd(e,t)):structuredClone(e):(e,t)=>kd(wd(e,t));function __(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function S_(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function C_(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||__,r=e.options.footnoteBackLabel||S_,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let a=-1;for(;++a<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[a]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),p=jr(f.toLowerCase());let d=0;const h=[],b=e.footnoteCounts.get(f);for(;b!==void 0&&++d<=b;){h.length>0&&h.push({type:"text",value:" "});let m=typeof n=="string"?n:n(a,d);typeof m=="string"&&(m={type:"text",value:m}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,d),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const C=c[c.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const m=C.children[C.children.length-1];m&&m.type==="text"?m.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...h)}else c.push(...h);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,g),s.push(g)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...El(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
191
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
192
+ `}]}}const Gl=function(e){if(e==null)return I_;if(typeof e=="function")return ql(e);if(typeof e=="object")return Array.isArray(e)?N_(e):T_(e);if(typeof e=="string")return A_(e);throw new Error("Expected function, string, or object as test")};function N_(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Gl(e[n]);return ql(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function T_(e){const t=e;return ql(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function A_(e){return ql(t);function t(n){return n&&n.type===e}}function ql(e){return t;function t(n,r,i){return!!(M_(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function I_(){return!0}function M_(e){return e!==null&&typeof e=="object"&&"type"in e}const Cm=[],O_=!0,ja=!1,R_="skip";function Nm(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Gl(i),l=r?-1:1;s(e,void 0,[])();function s(a,u,c){const f=a&&typeof a=="object"?a:{};if(typeof f.type=="string"){const d=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(a.type+(d?"<"+d+">":""))+")"})}return p;function p(){let d=Cm,h,b,C;if((!t||o(a,u,c[c.length-1]||void 0))&&(d=L_(n(a,c)),d[0]===ja))return d;if("children"in a&&a.children){const g=a;if(g.children&&d[0]!==R_)for(b=(r?g.children.length:-1)+l,C=c.concat(g);b>-1&&b<g.children.length;){const m=g.children[b];if(h=s(m,b,C)(),h[0]===ja)return h;b=typeof h[1]=="number"?h[1]:b+l}}return d}}}function L_(e){return Array.isArray(e)?e:typeof e=="number"?[O_,e]:e==null?Cm:[e]}function yc(e,t,n,r){let i,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,i=n):(o=t,l=n,i=r),Nm(e,o,s,i);function s(a,u){const c=u[u.length-1],f=c?c.children.indexOf(a):void 0;return l(a,f,c)}}const Ha={}.hasOwnProperty,D_={};function P_(e,t){const n=t||D_,r=new Map,i=new Map,o=new Map,l={...E_,...n.handlers},s={all:u,applyData:z_,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:a,options:n,patch:F_,wrap:U_};return yc(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:i,p=String(c.identifier).toUpperCase();f.has(p)||f.set(p,c)}}),s;function a(c,f){const p=c.type,d=s.handlers[p];if(Ha.call(s.handlers,p)&&d)return d(s,c,f);if(s.options.passThrough&&s.options.passThrough.includes(p)){if("children"in c){const{children:b,...C}=c,g=El(C);return g.children=s.all(c),g}return El(c)}return(s.options.unknownHandler||B_)(s,c,f)}function u(c){const f=[];if("children"in c){const p=c.children;let d=-1;for(;++d<p.length;){const h=s.one(p[d],c);if(h){if(d&&p[d-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=xd(h.value)),!Array.isArray(h)&&h.type==="element")){const b=h.children[0];b&&b.type==="text"&&(b.value=xd(b.value))}Array.isArray(h)?f.push(...h):f.push(h)}}}return f}}function F_(e,t){e.position&&(t.position=Sw(e))}function z_(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,El(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function B_(e,t){const n=t.data||{},r="value"in t&&!(Ha.call(n,"hProperties")||Ha.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function U_(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
193
+ `});++r<e.length;)r&&n.push({type:"text",value:`
194
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
195
+ `}),n}function xd(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function _d(e,t){const n=P_(e,t),r=n.one(e,void 0),i=C_(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
196
+ `},i),o}function $_(e,t){return e&&"run"in e?async function(n,r){const i=_d(n,{file:r,...t});await e.run(i,r)}:function(n,r){return _d(n,{file:r,...e||t})}}function Sd(e){if(e)throw e}var jo=Object.prototype.hasOwnProperty,Tm=Object.prototype.toString,Cd=Object.defineProperty,Nd=Object.getOwnPropertyDescriptor,Td=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Tm.call(t)==="[object Array]"},Ad=function(t){if(!t||Tm.call(t)!=="[object Object]")return!1;var n=jo.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&jo.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||jo.call(t,i)},Id=function(t,n){Cd&&n.name==="__proto__"?Cd(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Md=function(t,n){if(n==="__proto__")if(jo.call(t,n)){if(Nd)return Nd(t,n).value}else return;return t[n]},j_=function e(){var t,n,r,i,o,l,s=arguments[0],a=1,u=arguments.length,c=!1;for(typeof s=="boolean"&&(c=s,s=arguments[1]||{},a=2),(s==null||typeof s!="object"&&typeof s!="function")&&(s={});a<u;++a)if(t=arguments[a],t!=null)for(n in t)r=Md(s,n),i=Md(t,n),s!==i&&(c&&i&&(Ad(i)||(o=Td(i)))?(o?(o=!1,l=r&&Td(r)?r:[]):l=r&&Ad(r)?r:{},Id(s,{name:n,newValue:e(c,l,i)})):typeof i<"u"&&Id(s,{name:n,newValue:i}));return s};const Is=Hi(j_);function Ka(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function H_(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);s(null,...i);function s(a,...u){const c=e[++o];let f=-1;if(a){l(a);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?K_(c,s)(...u):l(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function K_(e,t){let n;return r;function r(...l){const s=e.length>l.length;let a;s&&l.push(i);try{a=e.apply(this,l)}catch(u){const c=u;if(s&&n)throw c;return i(c)}s||(a&&a.then&&typeof a.then=="function"?a.then(o,i):a instanceof Error?i(a):o(a))}function i(l,...s){n||(n=!0,t(l,...s))}function o(l){i(null,l)}}const Ft={basename:V_,dirname:W_,extname:G_,join:q_,sep:"/"};function V_(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Xi(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function W_(e){if(Xi(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function G_(e){Xi(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const s=e.codePointAt(t);if(s===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function q_(...e){let t=-1,n;for(;++t<e.length;)Xi(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Y_(n)}function Y_(e){Xi(e);const t=e.codePointAt(0)===47;let n=Q_(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Q_(e,t){let n="",r=0,i=-1,o=0,l=-1,s,a;for(;++l<=e.length;){if(l<e.length)s=e.codePointAt(l);else{if(s===47)break;s=47}if(s===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else s===46&&o>-1?o++:o=-1}return n}function Xi(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Z_={cwd:X_};function X_(){return"/"}function Va(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function J_(e){if(typeof e=="string")e=new URL(e);else if(!Va(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return eS(e)}function eS(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Ms=["history","path","basename","stem","extname","dirname"];class Am{constructor(t){let n;t?Va(t)?n={path:t}:typeof t=="string"||tS(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Z_.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Ms.length;){const o=Ms[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Ms.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Ft.basename(this.path):void 0}set basename(t){Rs(t,"basename"),Os(t,"basename"),this.path=Ft.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ft.dirname(this.path):void 0}set dirname(t){Od(this.basename,"dirname"),this.path=Ft.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ft.extname(this.path):void 0}set extname(t){if(Os(t,"extname"),Od(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ft.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Va(t)&&(t=J_(t)),Rs(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ft.basename(this.path,this.extname):void 0}set stem(t){Rs(t,"stem"),Os(t,"stem"),this.path=Ft.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new $e(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Os(e,t){if(e&&e.includes(Ft.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ft.sep+"`")}function Rs(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Od(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function tS(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const nS=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},rS={}.hasOwnProperty;class bc extends nS{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=H_()}copy(){const t=new bc;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Is(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ps("data",this.frozen),this.namespace[t]=n,this):rS.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ps("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Co(t),r=this.parser||this.Parser;return Ls("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ls("process",this.parser||this.Parser),Ds("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,l){const s=Co(t),a=r.parse(s);r.run(a,s,function(c,f,p){if(c||!f||!p)return u(c);const d=f,h=r.stringify(d,p);lS(h)?p.value=h:p.result=h,u(c,p)});function u(c,f){c||!f?l(c):o?o(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Ls("processSync",this.parser||this.Parser),Ds("processSync",this.compiler||this.Compiler),this.process(t,i),Ld("processSync","process",n),r;function i(o,l){n=!0,Sd(o),r=l}}run(t,n,r){Rd(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,s){const a=Co(n);i.run(t,a,u);function u(c,f,p){const d=f||t;c?s(c):l?l(d):r(void 0,d,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Ld("runSync","run",r),i;function o(l,s){Sd(l),i=s,r=!0}}stringify(t,n){this.freeze();const r=Co(n),i=this.compiler||this.Compiler;return Ds("stringify",i),Rd(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Ps("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")a(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;a(c,f)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(u){if(!("plugins"in u)&&!("settings"in u))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");s(u.plugins),u.settings&&(i.settings=Is(!0,i.settings,u.settings))}function s(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];o(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function a(u,c){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===u){p=f;break}if(p===-1)r.push([u,...c]);else if(c.length>0){let[d,...h]=c;const b=r[p][1];Ka(b)&&Ka(d)&&(d=Is(!0,b,d)),r[p]=[u,d,...h]}}}}const iS=new bc().freeze();function Ls(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Ds(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ps(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Rd(e){if(!Ka(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ld(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Co(e){return oS(e)?e:new Am(e)}function oS(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function lS(e){return typeof e=="string"||sS(e)}function sS(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const aS="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Dd=[],Pd={allowDangerousHtml:!0},uS=/^(https?|ircs?|mailto|xmpp)$/i,cS=[{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 fS(e){const t=dS(e),n=pS(e);return hS(t.runSync(t.parse(n),n),e)}function dS(e){const t=e.rehypePlugins||Dd,n=e.remarkPlugins||Dd,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Pd}:Pd;return iS().use(Gx).use(n).use($_,r).use(t)}function pS(e){const t=e.children||"",n=new Am;return typeof t=="string"&&(n.value=t),n}function hS(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,s=t.unwrapDisallowed,a=t.urlTransform||gS;for(const c of cS)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+aS+c.id,void 0);return yc(e,u),Iw(e,{Fragment:x.Fragment,components:i,ignoreInvalidStyle:!0,jsx:x.jsx,jsxs:x.jsxs,passKeys:!0,passNode:!0});function u(c,f,p){if(c.type==="raw"&&p&&typeof f=="number")return l?p.children.splice(f,1):p.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let d;for(d in Ns)if(Object.hasOwn(Ns,d)&&Object.hasOwn(c.properties,d)){const h=c.properties[d],b=Ns[d];(b===null||b.includes(c.tagName))&&(c.properties[d]=a(String(h||""),d,c))}}if(c.type==="element"){let d=n?!n.includes(c.tagName):o?o.includes(c.tagName):!1;if(!d&&r&&typeof f=="number"&&(d=!r(c,f,p)),d&&p&&typeof f=="number")return s&&c.children?p.children.splice(f,1,...c.children):p.children.splice(f,1),f}}}function gS(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||uS.test(e.slice(0,t))?e:""}function Fd(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function mS(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function yS(e,t,n){const i=Gl((n||{}).ignore||[]),o=bS(t);let l=-1;for(;++l<o.length;)Nm(e,"text",s);function s(u,c){let f=-1,p;for(;++f<c.length;){const d=c[f],h=p?p.children:void 0;if(i(d,h?h.indexOf(d):void 0,p))return;p=d}if(p)return a(u,c)}function a(u,c){const f=c[c.length-1],p=o[l][0],d=o[l][1];let h=0;const C=f.children.indexOf(u);let g=!1,m=[];p.lastIndex=0;let y=p.exec(u.value);for(;y;){const S=y.index,T={index:y.index,input:y.input,stack:[...c,u]};let v=d(...y,T);if(typeof v=="string"&&(v=v.length>0?{type:"text",value:v}:void 0),v===!1?p.lastIndex=S+1:(h!==S&&m.push({type:"text",value:u.value.slice(h,S)}),Array.isArray(v)?m.push(...v):v&&m.push(v),h=S+y[0].length,g=!0),!p.global)break;y=p.exec(u.value)}return g?(h<u.value.length&&m.push({type:"text",value:u.value.slice(h)}),f.children.splice(C,1,...m)):m=[u],C+m.length}}function bS(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([ES(i[0]),vS(i[1])])}return t}function ES(e){return typeof e=="string"?new RegExp(mS(e),"g"):e}function vS(e){return typeof e=="function"?e:function(){return e}}const Fs="phrasing",zs=["autolink","link","image","label"];function kS(){return{transforms:[TS],enter:{literalAutolink:xS,literalAutolinkEmail:Bs,literalAutolinkHttp:Bs,literalAutolinkWww:Bs},exit:{literalAutolink:NS,literalAutolinkEmail:CS,literalAutolinkHttp:_S,literalAutolinkWww:SS}}}function wS(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Fs,notInConstruct:zs},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Fs,notInConstruct:zs},{character:":",before:"[ps]",after:"\\/",inConstruct:Fs,notInConstruct:zs}]}}function xS(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Bs(e){this.config.enter.autolinkProtocol.call(this,e)}function _S(e){this.config.exit.autolinkProtocol.call(this,e)}function SS(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function CS(e){this.config.exit.autolinkEmail.call(this,e)}function NS(e){this.exit(e)}function TS(e){yS(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,AS],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),IS]],{ignore:["link","linkReference"]})}function AS(e,t,n,r,i){let o="";if(!Im(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!MS(n)))return!1;const l=OS(n+r);if(!l[0])return!1;const s={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[s,{type:"text",value:l[1]}]:s}function IS(e,t,n,r){return!Im(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function MS(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function OS(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Fd(e,"(");let o=Fd(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function Im(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||qn(n)||Kl(n))&&(!t||n!==47)}Mm.peek=$S;function RS(){this.buffer()}function LS(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function DS(){this.buffer()}function PS(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function FS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=It(this.sliceSerialize(e)).toLowerCase(),n.label=t}function zS(e){this.exit(e)}function BS(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=It(this.sliceSerialize(e)).toLowerCase(),n.label=t}function US(e){this.exit(e)}function $S(){return"["}function Mm(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const l=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),l(),o+=i.move("]"),o}function jS(){return{enter:{gfmFootnoteCallString:RS,gfmFootnoteCall:LS,gfmFootnoteDefinitionLabelString:DS,gfmFootnoteDefinition:PS},exit:{gfmFootnoteCallString:FS,gfmFootnoteCall:zS,gfmFootnoteDefinitionLabelString:BS,gfmFootnoteDefinition:US}}}function HS(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Mm},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,l){const s=o.createTracker(l);let a=s.move("[^");const u=o.enter("footnoteDefinition"),c=o.enter("label");return a+=s.move(o.safe(o.associationId(r),{before:a,after:"]"})),c(),a+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),a+=s.move((t?`
197
+ `:" ")+o.indentLines(o.containerFlow(r,s.current()),t?Om:KS))),u(),a}}function KS(e,t,n){return t===0?e:Om(e,t,n)}function Om(e,t,n){return(n?"":" ")+e}const VS=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Rm.peek=QS;function WS(){return{canContainEols:["delete"],enter:{strikethrough:qS},exit:{strikethrough:YS}}}function GS(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:VS}],handlers:{delete:Rm}}}function qS(e){this.enter({type:"delete",children:[]},e)}function YS(e){this.exit(e)}function Rm(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function QS(){return"~"}function ZS(e){return e.length}function XS(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||ZS,o=[],l=[],s=[],a=[];let u=0,c=-1;for(;++c<e.length;){const b=[],C=[];let g=-1;for(e[c].length>u&&(u=e[c].length);++g<e[c].length;){const m=JS(e[c][g]);if(n.alignDelimiters!==!1){const y=i(m);C[g]=y,(a[g]===void 0||y>a[g])&&(a[g]=y)}b.push(m)}l[c]=b,s[c]=C}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<u;)o[f]=zd(r[f]);else{const b=zd(r);for(;++f<u;)o[f]=b}f=-1;const p=[],d=[];for(;++f<u;){const b=o[f];let C="",g="";b===99?(C=":",g=":"):b===108?C=":":b===114&&(g=":");let m=n.alignDelimiters===!1?1:Math.max(1,a[f]-C.length-g.length);const y=C+"-".repeat(m)+g;n.alignDelimiters!==!1&&(m=C.length+m+g.length,m>a[f]&&(a[f]=m),d[f]=m),p[f]=y}l.splice(1,0,p),s.splice(1,0,d),c=-1;const h=[];for(;++c<l.length;){const b=l[c],C=s[c];f=-1;const g=[];for(;++f<u;){const m=b[f]||"";let y="",S="";if(n.alignDelimiters!==!1){const T=a[f]-(C[f]||0),v=o[f];v===114?y=" ".repeat(T):v===99?T%2?(y=" ".repeat(T/2+.5),S=" ".repeat(T/2-.5)):(y=" ".repeat(T/2),S=y):S=" ".repeat(T)}n.delimiterStart!==!1&&!f&&g.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&m==="")&&(n.delimiterStart!==!1||f)&&g.push(" "),n.alignDelimiters!==!1&&g.push(y),g.push(m),n.alignDelimiters!==!1&&g.push(S),n.padding!==!1&&g.push(" "),(n.delimiterEnd!==!1||f!==u-1)&&g.push("|")}h.push(n.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return h.join(`
198
+ `)}function JS(e){return e==null?"":String(e)}function zd(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function eC(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),tC);return i(),l}function tC(e,t,n){return">"+(n?"":" ")+e}function nC(e,t){return Bd(e,t.inConstruct,!0)&&!Bd(e,t.notInConstruct,!1)}function Bd(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Ud(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
199
+ `&&nC(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
200
+ `}function rC(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}function iC(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function oC(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function lC(e,t,n,r){const i=oC(n),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(iC(e,n)){const f=n.enter("codeIndented"),p=n.indentLines(o,sC);return f(),p}const s=n.createTracker(r),a=i.repeat(Math.max(rC(o,i)+1,3)),u=n.enter("codeFenced");let c=s.move(a);if(e.lang){const f=n.enter(`codeFencedLang${l}`);c+=s.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...s.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${l}`);c+=s.move(" "),c+=s.move(n.safe(e.meta,{before:c,after:`
201
+ `,encode:["`"],...s.current()})),f()}return c+=s.move(`
202
+ `),o&&(c+=s.move(o+`
203
+ `)),c+=s.move(a),u(),c}function sC(e,t,n){return(n?"":" ")+e}function Ec(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function aC(e,t,n,r){const i=Ec(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let s=n.enter("label");const a=n.createTracker(r);let u=a.move("[");return u+=a.move(n.safe(n.associationId(e),{before:u,after:"]",...a.current()})),u+=a.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(s=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":`
204
+ `,...a.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),s()),l(),u}function uC(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function ji(e){return"&#x"+e.toString(16).toUpperCase()+";"}function vl(e,t,n){const r=Fr(e),i=Fr(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Lm.peek=cC;function Lm(e,t,n,r){const i=uC(n),o=n.enter("emphasis"),l=n.createTracker(r),s=l.move(i);let a=l.move(n.containerPhrasing(e,{after:i,before:s,...l.current()}));const u=a.charCodeAt(0),c=vl(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(a=ji(u)+a.slice(1));const f=a.charCodeAt(a.length-1),p=vl(r.after.charCodeAt(0),f,i);p.inside&&(a=a.slice(0,-1)+ji(f));const d=l.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},s+a+d}function cC(e,t,n){return n.options.emphasis||"*"}function fC(e,t){let n=!1;return yc(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,ja}),!!((!e.depth||e.depth<3)&&cc(e)&&(t.options.setext||n))}function dC(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(fC(e,n)){const c=n.enter("headingSetext"),f=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:`
205
+ `,after:`
206
+ `});return f(),c(),p+`
207
+ `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
208
+ `))+1))}const l="#".repeat(i),s=n.enter("headingAtx"),a=n.enter("phrasing");o.move(l+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
209
+ `,...o.current()});return/^[\t ]/.test(u)&&(u=ji(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,n.options.closeAtx&&(u+=" "+l),a(),s(),u}Dm.peek=pC;function Dm(e){return e.value||""}function pC(){return"<"}Pm.peek=hC;function Pm(e,t,n,r){const i=Ec(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let s=n.enter("label");const a=n.createTracker(r);let u=a.move("![");return u+=a.move(n.safe(e.alt,{before:u,after:"]",...a.current()})),u+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=a.move("<"),u+=a.move(n.safe(e.url,{before:u,after:">",...a.current()})),u+=a.move(">")):(s=n.enter("destinationRaw"),u+=a.move(n.safe(e.url,{before:u,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=a.move(" "+i),u+=a.move(n.safe(e.title,{before:u,after:i,...a.current()})),u+=a.move(i),s()),u+=a.move(")"),l(),u}function hC(){return"!"}Fm.peek=gC;function Fm(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const s=n.createTracker(r);let a=s.move("![");const u=n.safe(e.alt,{before:a,after:"]",...s.current()});a+=s.move(u+"]["),l();const c=n.stack;n.stack=[],l=n.enter("reference");const f=n.safe(n.associationId(e),{before:a,after:"]",...s.current()});return l(),n.stack=c,o(),i==="full"||!u||u!==f?a+=s.move(f+"]"):i==="shortcut"?a=a.slice(0,-1):a+=s.move("]"),a}function gC(){return"!"}zm.peek=mC;function zm(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],s=n.compilePattern(l);let a;if(l.atBreak)for(;a=s.exec(r);){let u=a.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(a.index+1)}}return i+r+i}function mC(){return"`"}function Bm(e,t){const n=cc(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Um.peek=yC;function Um(e,t,n,r){const i=Ec(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let s,a;if(Bm(e,n)){const c=n.stack;n.stack=[],s=n.enter("autolink");let f=l.move("<");return f+=l.move(n.containerPhrasing(e,{before:f,after:">",...l.current()})),f+=l.move(">"),s(),n.stack=c,f}s=n.enter("link"),a=n.enter("label");let u=l.move("[");return u+=l.move(n.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),a()),u+=l.move(")"),s(),u}function yC(e,t,n){return Bm(e,n)?"<":"["}$m.peek=bC;function $m(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const s=n.createTracker(r);let a=s.move("[");const u=n.containerPhrasing(e,{before:a,after:"]",...s.current()});a+=s.move(u+"]["),l();const c=n.stack;n.stack=[],l=n.enter("reference");const f=n.safe(n.associationId(e),{before:a,after:"]",...s.current()});return l(),n.stack=c,o(),i==="full"||!u||u!==f?a+=s.move(f+"]"):i==="shortcut"?a=a.slice(0,-1):a+=s.move("]"),a}function bC(){return"["}function vc(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function EC(e){const t=vc(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function vC(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function jm(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function kC(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?vC(n):vc(n);const s=e.ordered?l==="."?")":".":EC(n);let a=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(a=!0),jm(n)===l&&c){let f=-1;for(;++f<e.children.length;){const p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(l=s),n.bulletCurrent=l;const u=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),u}function wC(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function xC(e,t,n,r){const i=wC(n);let o=n.bulletCurrent||vc(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(l-o.length)),s.shift(l);const a=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,s.current()),c);return a(),u;function c(f,p,d){return p?(d?"":" ".repeat(l))+f:(d?o:o+" ".repeat(l-o.length))+f}}function _C(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l}const SC=Gl(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function CC(e,t,n,r){return(e.children.some(function(l){return SC(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function NC(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Hm.peek=TC;function Hm(e,t,n,r){const i=NC(n),o=n.enter("strong"),l=n.createTracker(r),s=l.move(i+i);let a=l.move(n.containerPhrasing(e,{after:i,before:s,...l.current()}));const u=a.charCodeAt(0),c=vl(r.before.charCodeAt(r.before.length-1),u,i);c.inside&&(a=ji(u)+a.slice(1));const f=a.charCodeAt(a.length-1),p=vl(r.after.charCodeAt(0),f,i);p.inside&&(a=a.slice(0,-1)+ji(f));const d=l.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},s+a+d}function TC(e,t,n){return n.options.strong||"*"}function AC(e,t,n,r){return n.safe(e.value,r)}function IC(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function MC(e,t,n){const r=(jm(n)+(n.options.ruleSpaces?" ":"")).repeat(IC(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Km={blockquote:eC,break:Ud,code:lC,definition:aC,emphasis:Lm,hardBreak:Ud,heading:dC,html:Dm,image:Pm,imageReference:Fm,inlineCode:zm,link:Um,linkReference:$m,list:kC,listItem:xC,paragraph:_C,root:CC,strong:Hm,text:AC,thematicBreak:MC};function OC(){return{enter:{table:RC,tableData:$d,tableHeader:$d,tableRow:DC},exit:{codeText:PC,table:LC,tableData:Us,tableHeader:Us,tableRow:Us}}}function RC(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function LC(e){this.exit(e),this.data.inTable=void 0}function DC(e){this.enter({type:"tableRow",children:[]},e)}function Us(e){this.exit(e)}function $d(e){this.enter({type:"tableCell",children:[]},e)}function PC(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,FC));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function FC(e,t){return t==="|"?t:e}function zC(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
210
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:a,tableRow:s}};function l(d,h,b,C){return u(c(d,b,C),d.align)}function s(d,h,b,C){const g=f(d,b,C),m=u([g]);return m.slice(0,m.indexOf(`
211
+ `))}function a(d,h,b,C){const g=b.enter("tableCell"),m=b.enter("phrasing"),y=b.containerPhrasing(d,{...C,before:o,after:o});return m(),g(),y}function u(d,h){return XS(d,{align:h,alignDelimiters:r,padding:n,stringLength:i})}function c(d,h,b){const C=d.children;let g=-1;const m=[],y=h.enter("table");for(;++g<C.length;)m[g]=f(C[g],h,b);return y(),m}function f(d,h,b){const C=d.children;let g=-1;const m=[],y=h.enter("tableRow");for(;++g<C.length;)m[g]=a(C[g],d,h,b);return y(),m}function p(d,h,b){let C=Km.inlineCode(d,h,b);return b.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function BC(){return{exit:{taskListCheckValueChecked:jd,taskListCheckValueUnchecked:jd,paragraph:$C}}}function UC(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:jC}}}function jd(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function $C(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,l;for(;++o<i.length;){const s=i[o];if(s.type==="paragraph"){l=s;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function jC(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(l);let a=Km.listItem(e,t,n,{...r,...s.current()});return o&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),a;function u(c){return c+l}}function HC(){return[kS(),jS(),WS(),OC(),BC()]}function KC(e){return{extensions:[wS(),HS(e),GS(),zC(e),UC()]}}const VC={tokenize:ZC,partial:!0},Vm={tokenize:XC,partial:!0},Wm={tokenize:JC,partial:!0},Gm={tokenize:eN,partial:!0},WC={tokenize:tN,partial:!0},qm={name:"wwwAutolink",tokenize:YC,previous:Qm},Ym={name:"protocolAutolink",tokenize:QC,previous:Zm},rn={name:"emailAutolink",tokenize:qC,previous:Xm},jt={};function GC(){return{text:jt}}let On=48;for(;On<123;)jt[On]=rn,On++,On===58?On=65:On===91&&(On=97);jt[43]=rn;jt[45]=rn;jt[46]=rn;jt[95]=rn;jt[72]=[rn,Ym];jt[104]=[rn,Ym];jt[87]=[rn,qm];jt[119]=[rn,qm];function qC(e,t,n){const r=this;let i,o;return l;function l(f){return!Wa(f)||!Xm.call(r,r.previous)||kc(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(f))}function s(f){return Wa(f)?(e.consume(f),s):f===64?(e.consume(f),a):n(f)}function a(f){return f===46?e.check(WC,c,u)(f):f===45||f===95||Be(f)?(o=!0,e.consume(f),a):c(f)}function u(f){return e.consume(f),i=!0,a}function c(f){return o&&i&&We(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function YC(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!Qm.call(r,r.previous)||kc(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(VC,e.attempt(Vm,e.attempt(Wm,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function QC(e,t,n){const r=this;let i="",o=!1;return l;function l(f){return(f===72||f===104)&&Zm.call(r,r.previous)&&!kc(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),s):n(f)}function s(f){if(We(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),s;if(f===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(f),a}return n(f)}function a(f){return f===47?(e.consume(f),o?u:(o=!0,a)):n(f)}function u(f){return f===null||yl(f)||fe(f)||qn(f)||Kl(f)?n(f):e.attempt(Vm,e.attempt(Wm,c),n)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function ZC(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function XC(e,t,n){let r,i,o;return l;function l(u){return u===46||u===95?e.check(Gm,a,s)(u):u===null||fe(u)||qn(u)||u!==45&&Kl(u)?a(u):(o=!0,e.consume(u),l)}function s(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),l}function a(u){return i||r||!o?n(u):t(u)}}function JC(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Gm,t,o)(l):l===null||fe(l)||qn(l)?t(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function eN(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),o):s===93?(e.consume(s),i):s===60||s===null||fe(s)||qn(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||fe(s)||qn(s)?t(s):r(s)}function o(s){return We(s)?l(s):n(s)}function l(s){return s===59?(e.consume(s),r):We(s)?(e.consume(s),l):n(s)}}function tN(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Be(o)?n(o):t(o)}}function Qm(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||fe(e)}function Zm(e){return!We(e)}function Xm(e){return!(e===47||Wa(e))}function Wa(e){return e===43||e===45||e===46||e===95||Be(e)}function kc(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const nN={tokenize:cN,partial:!0};function rN(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:sN,continuation:{tokenize:aN},exit:uN}},text:{91:{name:"gfmFootnoteCall",tokenize:lN},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:iN,resolveTo:oN}}}}function iN(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){l=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return s;function s(a){if(!l||!l._balanced)return n(a);const u=It(r.sliceSerialize({start:l.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function oN(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function lN(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return s;function s(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),a}function a(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(o>999||f===93&&!l||f===null||f===91||fe(f))return n(f);if(f===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(It(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return fe(f)||(l=!0),o++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),o++,u):u(f)}}function sN(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,s;return a;function a(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(h)}function c(h){if(l>999||h===93&&!s||h===null||h===91||fe(h))return n(h);if(h===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return o=It(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return fe(h)||(s=!0),l++,e.consume(h),h===92?f:c}function f(h){return h===91||h===92||h===93?(e.consume(h),l++,c):c(h)}function p(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),i.includes(o)||i.push(o),ie(e,d,"gfmFootnoteDefinitionWhitespace")):n(h)}function d(h){return t(h)}}function aN(e,t,n){return e.check(Zi,t,e.attempt(nN,t,n))}function uN(e){e.exit("gfmFootnoteDefinition")}function cN(e,t,n){const r=this;return ie(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function fN(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,s){let a=-1;for(;++a<l.length;)if(l[a][0]==="enter"&&l[a][1].type==="strikethroughSequenceTemporary"&&l[a][1]._close){let u=a;for(;u--;)if(l[u][0]==="exit"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._open&&l[a][1].end.offset-l[a][1].start.offset===l[u][1].end.offset-l[u][1].start.offset){l[a][1].type="strikethroughSequence",l[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},l[u][1].start),end:Object.assign({},l[a][1].end)},f={type:"strikethroughText",start:Object.assign({},l[u][1].end),end:Object.assign({},l[a][1].start)},p=[["enter",c,s],["enter",l[u][1],s],["exit",l[u][1],s],["enter",f,s]],d=s.parser.constructs.insideSpan.null;d&&ft(p,p.length,0,Vl(d,l.slice(u+1,a),s)),ft(p,p.length,0,[["exit",f,s],["enter",l[a][1],s],["exit",l[a][1],s],["exit",c,s]]),ft(l,u-1,a-u+3,p),a=u+p.length-2;break}}for(a=-1;++a<l.length;)l[a][1].type==="strikethroughSequenceTemporary"&&(l[a][1].type="data");return l}function o(l,s,a){const u=this.previous,c=this.events;let f=0;return p;function p(h){return u===126&&c[c.length-1][1].type!=="characterEscape"?a(h):(l.enter("strikethroughSequenceTemporary"),d(h))}function d(h){const b=Fr(u);if(h===126)return f>1?a(h):(l.consume(h),f++,d);if(f<2&&!n)return a(h);const C=l.exit("strikethroughSequenceTemporary"),g=Fr(h);return C._open=!g||g===2&&!!b,C._close=!b||b===2&&!!g,s(h)}}}class dN{constructor(){this.map=[]}add(t,n,r){pN(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function pN(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function hN(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function gN(){return{flow:{null:{name:"table",tokenize:mN,resolveAll:yN}}}}function mN(e,t,n){const r=this;let i=0,o=0,l;return s;function s(k){let D=r.events.length-1;for(;D>-1;){const H=r.events[D][1].type;if(H==="lineEnding"||H==="linePrefix")D--;else break}const L=D>-1?r.events[D][1].type:null,Y=L==="tableHead"||L==="tableRow"?v:a;return Y===v&&r.parser.lazy[r.now().line]?n(k):Y(k)}function a(k){return e.enter("tableHead"),e.enter("tableRow"),u(k)}function u(k){return k===124||(l=!0,o+=1),c(k)}function c(k){return k===null?n(k):q(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),d):n(k):te(k)?ie(e,c,"whitespace")(k):(o+=1,l&&(l=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,c):(e.enter("data"),f(k)))}function f(k){return k===null||k===124||fe(k)?(e.exit("data"),c(k)):(e.consume(k),k===92?p:f)}function p(k){return k===92||k===124?(e.consume(k),f):f(k)}function d(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(e.enter("tableDelimiterRow"),l=!1,te(k)?ie(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):h(k))}function h(k){return k===45||k===58?C(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),b):T(k)}function b(k){return te(k)?ie(e,C,"whitespace")(k):C(k)}function C(k){return k===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),g):k===45?(o+=1,g(k)):k===null||q(k)?S(k):T(k)}function g(k){return k===45?(e.enter("tableDelimiterFiller"),m(k)):T(k)}function m(k){return k===45?(e.consume(k),m):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),y):(e.exit("tableDelimiterFiller"),y(k))}function y(k){return te(k)?ie(e,S,"whitespace")(k):S(k)}function S(k){return k===124?h(k):k===null||q(k)?!l||i!==o?T(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):T(k)}function T(k){return n(k)}function v(k){return e.enter("tableRow"),N(k)}function N(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),N):k===null||q(k)?(e.exit("tableRow"),t(k)):te(k)?ie(e,N,"whitespace")(k):(e.enter("data"),I(k))}function I(k){return k===null||k===124||fe(k)?(e.exit("data"),N(k)):(e.consume(k),k===92?R:I)}function R(k){return k===92||k===124?(e.consume(k),I):I(k)}}function yN(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],s=!1,a=0,u,c,f;const p=new dN;for(;++n<e.length;){const d=e[n],h=d[1];d[0]==="enter"?h.type==="tableHead"?(s=!1,a!==0&&(Hd(p,t,a,u,c),c=void 0,a=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",u,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,f=void 0,o=[0,0,0,0],l=[0,n+1,0,0],s&&(s=!1,c={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},p.add(n,0,[["enter",c,t]])),i=h.type==="tableDelimiterRow"?2:c?3:1):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],f=No(p,t,o,i,void 0,f),o=[0,0,0,0]),l[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],f=No(p,t,o,i,void 0,f)),o=l,l=[o[1],n,0,0])):h.type==="tableHead"?(s=!0,a=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(a=n,o[1]!==0?(l[0]=l[1],f=No(p,t,o,i,n,f)):l[1]!==0&&(f=No(p,t,l,i,n,f)),i=0):i&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(l[3]=n)}for(a!==0&&Hd(p,t,a,u,c),p.consume(t.events),n=-1;++n<t.events.length;){const d=t.events[n];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=hN(t.events,n))}return e}function No(e,t,n,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},sr(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=sr(t.events,n[1]);if(o={type:l,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=sr(t.events,n[2]),c=sr(t.events,n[3]),f={type:s,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const p=t.events[n[2]],d=t.events[n[3]];if(p[1].end=Object.assign({},d[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,b=n[3]-n[2]-1;e.add(h,b,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(o.end=Object.assign({},sr(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Hd(e,t,n,r,i){const o=[],l=sr(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function sr(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const bN={name:"tasklistCheck",tokenize:vN};function EN(){return{text:{91:bN}}}function vN(e,t,n){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),o)}function o(a){return fe(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),l):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),l):n(a)}function l(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(a)}function s(a){return q(a)?t(a):te(a)?e.check({tokenize:kN},t,n)(a):n(a)}}function kN(e,t,n){return ie(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function wN(e){return am([GC(),rN(),fN(e),gN(),EN()])}const xN={};function _N(e){const t=this,n=e||xN,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(wN(n)),o.push(HC()),l.push(KC(n))}function Jm({startLine:e,endLine:t,onSubmit:n,onCancel:r,className:i=""}){const[o,l]=K.useState(""),s=K.useRef(null);K.useEffect(()=>{var f;(f=s.current)==null||f.focus()},[]);const a=()=>{o.trim()&&(n(o.trim()),l(""))},u=f=>{f.key==="Escape"?(f.preventDefault(),r()):f.key==="Enter"&&!f.shiftKey&&!f.metaKey&&!f.ctrlKey&&(f.preventDefault(),a())},c=e===t?`line ${e}`:`lines ${e}-${t}`;return x.jsxs("div",{className:`inline-comment-form ${i}`,children:[x.jsxs("div",{className:"inline-comment-form-header",children:["Comment on ",c]}),x.jsx("textarea",{ref:s,className:"inline-comment-textarea",placeholder:"Leave a comment...",value:o,onChange:f=>l(f.target.value),onKeyDown:u}),x.jsxs("div",{className:"inline-comment-form-actions",children:[x.jsx("button",{type:"button",className:"btn btn-secondary",onClick:r,children:"Cancel"}),x.jsx("button",{type:"button",className:"btn btn-primary",onClick:a,disabled:!o.trim(),children:"Add Comment"})]})]})}function ey({item:e,onRemove:t,className:n=""}){const r=e.startLine===e.endLine?`Lines ${e.startLine}`:`Lines ${e.startLine}-${e.endLine}`,i=e.colorIndex!==void 0?`color-${e.colorIndex%6}`:"";return x.jsxs("div",{className:`inline-staged-comment ${i} ${n}`,children:[x.jsxs("div",{className:"inline-staged-comment-header",children:[x.jsx("span",{className:"inline-staged-comment-location",children:r}),x.jsx("button",{className:"inline-staged-comment-remove",onClick:()=>t(e.id),title:"Remove comment",children:"✕"})]}),x.jsx("div",{className:"inline-staged-comment-body",children:e.comment})]})}function SN({className:e,children:t}){const n=/language-(\w+)/.exec(e||""),r=n?n[1]:"text",i=String(t).replace(/\n$/,""),{lines:o}=Gg({code:i,language:r});return n?x.jsxs("div",{className:"markdown-code-block",children:[x.jsx("div",{className:"markdown-code-header",children:x.jsx("span",{className:"markdown-code-language",children:r})}),x.jsx("pre",{className:"markdown-code-content",children:o.map(l=>x.jsx("div",{className:"markdown-code-line",children:l.tokens.map((s,a)=>x.jsx("span",{style:{color:s.color,fontStyle:s.fontStyle==="italic"?"italic":void 0,fontWeight:s.fontStyle==="bold"?"bold":void 0},children:s.content},a))},l.lineNumber))})]}):x.jsx("code",{className:"inline-code",children:t})}function CN(e){var i;const t=e.split(`
212
+ `),n=[];let r=0;for(;r<t.length;){const o=t[r],l=o.trim();if(l===""){r++;continue}if(l.startsWith("```")){const u=r+1,c=[o];for(r++;r<t.length&&!t[r].trim().startsWith("```");)c.push(t[r]),r++;r<t.length&&(c.push(t[r]),r++),n.push({type:"code",content:c.join(`
213
+ `),startLine:u,endLine:r});continue}if(/^#{1,6}\s/.test(l)){n.push({type:"heading",content:o,startLine:r+1,endLine:r+1}),r++;continue}if(/^(-{3,}|\*{3,}|_{3,})$/.test(l)){n.push({type:"hr",content:o,startLine:r+1,endLine:r+1}),r++;continue}if(l.startsWith(">")){const u=r+1,c=[o];for(r++;r<t.length&&(t[r].trim().startsWith(">")||t[r].trim()!==""&&c.length>0)&&!(t[r].trim()===""&&!((i=t[r+1])!=null&&i.trim().startsWith(">")));)c.push(t[r]),r++;n.push({type:"blockquote",content:c.join(`
214
+ `),startLine:u,endLine:r});continue}if(/^(\s*[-*+]|\s*\d+\.)\s/.test(o)){const u=r+1,c=[o];for(r++;r<t.length;){const f=t[r];if(f.trim()===""){if(r+1<t.length&&/^(\s*[-*+]|\s*\d+\.)\s/.test(t[r+1])){c.push(f),r++;continue}break}if(/^(\s*[-*+]|\s*\d+\.)\s/.test(f)||/^\s+/.test(f))c.push(f),r++;else break}n.push({type:"list",content:c.join(`
215
+ `),startLine:u,endLine:r});continue}if(l.startsWith("|")&&l.endsWith("|")){const u=r+1,c=[o];for(r++;r<t.length&&t[r].trim().startsWith("|");)c.push(t[r]),r++;n.push({type:"table",content:c.join(`
216
+ `),startLine:u,endLine:r});continue}const s=r+1,a=[o];for(r++;r<t.length;){const u=t[r].trim();if(u===""||u.startsWith("#")||u.startsWith("```")||u.startsWith(">")||/^(-{3,}|\*{3,}|_{3,})$/.test(u)||/^(\s*[-*+]|\s*\d+\.)\s/.test(t[r])||u.startsWith("|")&&u.endsWith("|"))break;a.push(t[r]),r++}n.push({type:"text",content:a.join(`
217
+ `),startLine:s,endLine:r})}return n}function NN({block:e,isSelected:t,isInRange:n,commentRanges:r,onMouseDown:i,onMouseMove:o,children:l}){const s=r.length>0;return x.jsxs("div",{className:`preview-block ${t?"preview-selected":""} ${n?"preview-in-range":""} ${s?"has-comment":""}`,"data-start-line":e.startLine,"data-end-line":e.endLine,onMouseDown:a=>{a.target.closest(".inline-comment-form, .inline-staged-comment")||i(e)},onMouseMove:()=>o(e),children:[s&&x.jsx("div",{className:"preview-gutter",children:r.map(a=>x.jsx("span",{className:`preview-gutter-bar color-${a.colorIndex%6}`},a.id))}),x.jsx("div",{className:"preview-block-content",children:l})]})}function TN({content:e,selection:t,comments:n,onSelect:r,onCommentSubmit:i,onCommentCancel:o,onCommentRemove:l}){const[s,a]=K.useState(!1),[u,c]=K.useState(null),[f,p]=K.useState(null),d=K.useMemo(()=>CN(e),[e]),h=K.useMemo(()=>{const v=new Map;for(const N of n)for(const I of d)if(I.startLine<=N.endLine&&I.endLine>=N.startLine){const R=v.get(I.startLine)||[];R.push({id:N.id,startLine:N.startLine,endLine:N.endLine,colorIndex:N.colorIndex}),v.set(I.startLine,R)}return v},[n,d]),b=K.useMemo(()=>{const v=new Map;for(const N of n)for(const I of d)if(I.startLine<=N.endLine&&I.endLine>=N.endLine){const R=v.get(I.startLine)||[];R.push(N),v.set(I.startLine,R);break}return v},[n,d]),C=K.useCallback(v=>{a(!0),c(v),p(v)},[]),g=K.useCallback(v=>{s&&u&&p(v)},[s,u]),m=K.useCallback(()=>{if(s&&u&&f){const v=d.findIndex(L=>L.startLine===u.startLine),N=d.findIndex(L=>L.startLine===f.startLine),I=Math.min(v,N),R=Math.max(v,N),k=d[I],D=d[R];r({startLine:k.startLine,endLine:D.endLine})}a(!1)},[s,u,f,d,r]),y=K.useCallback(v=>t?v.startLine>=t.startLine&&v.endLine<=t.endLine:!1,[t]),S=K.useCallback(v=>{if(!s||!u||!f)return!1;const N=d.findIndex(L=>L.startLine===u.startLine),I=d.findIndex(L=>L.startLine===f.startLine),R=d.findIndex(L=>L.startLine===v.startLine),k=Math.min(N,I),D=Math.max(N,I);return R>=k&&R<=D},[s,u,f,d]),T=K.useMemo(()=>{if(!t)return null;for(const v of d)if(v.endLine>=t.endLine&&v.startLine<=t.endLine)return v;return null},[t,d]);return x.jsx("div",{className:"markdown-preview",onMouseUp:m,onMouseLeave:()=>{s&&m()},children:d.map(v=>{const N=b.get(v.startLine)||[],I=(T==null?void 0:T.startLine)===v.startLine&&t;return x.jsxs("div",{children:[x.jsx(NN,{block:v,isSelected:y(v),isInRange:S(v),commentRanges:h.get(v.startLine)||[],onMouseDown:C,onMouseMove:g,children:x.jsx(fS,{remarkPlugins:[_N],components:{code({className:R,children:k,...D}){return R?x.jsx(SN,{className:R,children:k}):x.jsx("code",{className:"inline-code",...D,children:k})},a({href:R,children:k}){return x.jsx("a",{href:R,target:"_blank",rel:"noopener noreferrer",children:k})},img({src:R,alt:k}){return x.jsxs("div",{className:"markdown-image-placeholder",children:[x.jsx("span",{className:"markdown-image-icon",children:"🖼"}),x.jsx("span",{className:"markdown-image-alt",children:k||"Image"}),x.jsx("span",{className:"markdown-image-path",children:R})]})}},children:v.content})}),N.length>0&&x.jsx("div",{className:"preview-inline-comments",children:N.map(R=>x.jsx(ey,{item:R,onRemove:l,className:"preview-staged-comment"},R.id))}),I&&x.jsx(Jm,{startLine:t.startLine,endLine:t.endLine,onSubmit:i,onCancel:o,className:"preview-comment-form"})]},`${v.startLine}-${v.endLine}`)})})}function Ga({lineNumber:e,tokens:t,selected:n,diffType:r,commentRanges:i=[],handlers:o}){const l=r==="add"?"code-line-added":r==="delete"?"code-line-deleted":"",s=i.map(u=>{let c="single";return u.startLine===u.endLine?c="single":e===u.startLine?c="start":e===u.endLine?c="end":c="middle",{...u,rangeType:c}}),a=s.length>0;return x.jsxs("div",{className:`code-line ${n?"code-line-selected":""} ${l} ${a?"has-comment":""}`,onMouseDown:()=>o.onMouseDown(e),onMouseMove:()=>o.onMouseMove(e),onMouseUp:o.onMouseUp,children:[x.jsx("span",{className:`line-gutter ${a?"has-comment":""}`,children:s.map((u,c)=>x.jsx("span",{className:`gutter-bar gutter-bar-${u.rangeType} color-${u.colorIndex%6}`,style:{left:`${2+c*4}px`}},u.id))}),x.jsx("span",{className:"line-number",children:e}),x.jsx("span",{className:"code-content",children:t.map((u,c)=>x.jsx("span",{style:{color:u.color,fontStyle:u.fontStyle==="italic"?"italic":void 0,fontWeight:u.fontStyle==="bold"?"bold":void 0},children:u.content},c))})]})}function AN({lines:e,diffLines:t,selection:n,handlers:r}){const i=o=>n?o>=n.startLine&&o<=n.endLine:!1;return x.jsx(x.Fragment,{children:e.map(o=>x.jsx(Ga,{lineNumber:o.lineNumber,tokens:o.tokens,selected:i(o.lineNumber),diffType:t.get(o.lineNumber),handlers:r},o.lineNumber))})}function IN({originalLines:e,modifiedLines:t,diffData:n}){const r=K.useMemo(()=>{const i=[],o=new Map(e.map(s=>[s.lineNumber,s.tokens])),l=new Map(t.map(s=>[s.lineNumber,s.tokens]));for(const s of n)s.type==="context"?i.push({left:{lineNumber:s.oldLineNumber,tokens:o.get(s.oldLineNumber)||[{content:s.content,color:"#e6edf3"}],type:"context"},right:{lineNumber:s.newLineNumber,tokens:l.get(s.newLineNumber)||[{content:s.content,color:"#e6edf3"}],type:"context"}}):s.type==="delete"?i.push({left:{lineNumber:s.oldLineNumber,tokens:o.get(s.oldLineNumber)||[{content:s.content,color:"#e6edf3"}],type:"delete"},right:null}):s.type==="add"&&i.push({left:null,right:{lineNumber:s.newLineNumber,tokens:l.get(s.newLineNumber)||[{content:s.content,color:"#e6edf3"}],type:"add"}});return i},[e,t,n]);return r.length===0?x.jsx("div",{className:"code-viewer-empty",children:x.jsx("p",{children:"No changes in this file"})}):x.jsxs("div",{className:"diff-side-by-side",children:[x.jsxs("div",{className:"diff-pane diff-pane-left",children:[x.jsx("div",{className:"diff-pane-header",children:"Original"}),x.jsx("div",{className:"code-viewer-content",children:r.map((i,o)=>{var l,s,a;return x.jsxs("div",{className:`code-line ${((l=i.left)==null?void 0:l.type)==="delete"?"code-line-deleted":""}`,children:[x.jsx("span",{className:"line-number",children:((s=i.left)==null?void 0:s.lineNumber)||""}),x.jsx("span",{className:"code-content",children:((a=i.left)==null?void 0:a.tokens.map((u,c)=>x.jsx("span",{style:{color:u.color},children:u.content},c)))||" "})]},o)})})]}),x.jsxs("div",{className:"diff-pane diff-pane-right",children:[x.jsx("div",{className:"diff-pane-header",children:"Modified"}),x.jsx("div",{className:"code-viewer-content",children:r.map((i,o)=>{var l,s,a;return x.jsxs("div",{className:`code-line ${((l=i.right)==null?void 0:l.type)==="add"?"code-line-added":""}`,children:[x.jsx("span",{className:"line-number",children:((s=i.right)==null?void 0:s.lineNumber)||""}),x.jsx("span",{className:"code-content",children:((a=i.right)==null?void 0:a.tokens.map((u,c)=>x.jsx("span",{style:{color:u.color},children:u.content},c)))||" "})]},o)})})]})]})}function MN(){var R;const{currentFile:e,selection:t,setSelection:n,clearSelection:r}=Yi(),{diffViewMode:i,markdownPreviewEnabled:o,toggleMarkdownPreview:l}=Ul(),{items:s,addItem:a,removeItem:u}=Yu(),c=(e==null?void 0:e.language)==="markdown"||((R=e==null?void 0:e.path)==null?void 0:R.endsWith(".md")),f=K.useMemo(()=>e?s.filter(k=>k.filePath===e.path).map((k,D)=>({...k,colorIndex:D})):[],[s,e]),p=K.useMemo(()=>{const k=new Map;for(const D of f){const L=k.get(D.endLine)||[];L.push(D),k.set(D.endLine,L)}return k},[f]),d=K.useMemo(()=>{const k=new Map;for(const D of f)for(let L=D.startLine;L<=D.endLine;L++){const Y=k.get(L)||[];Y.push({id:D.id,startLine:D.startLine,endLine:D.endLine,colorIndex:D.colorIndex}),k.set(L,Y)}return k},[f]),h=k=>{!e||!t||(a({filePath:e.path,startLine:t.startLine,endLine:t.endLine,comment:k}),r())},b=()=>{r()},{handlers:C}=Rk(k=>{n(k)}),{lines:g,loading:m}=Gg({code:(e==null?void 0:e.content)||"",language:(e==null?void 0:e.language)||"text"}),{diff:y,loading:S}=Ok({filePath:(e==null?void 0:e.path)||null,enabled:i!=="none"}),T=K.useMemo(()=>{const k=new Map;if(!y||y.hunks.length===0)return k;for(const D of y.hunks)for(const L of D.lines)L.type==="add"&&L.newLineNumber?k.set(L.newLineNumber,"add"):L.type==="delete"&&L.oldLineNumber;return k},[y]),v=K.useMemo(()=>!y||y.hunks.length===0?[]:y.hunks.flatMap(k=>k.lines),[y]);if(!e)return x.jsxs("div",{className:"code-viewer code-viewer-empty",children:[x.jsx(ot,{size:48,className:"empty-state-icon"}),x.jsx("p",{children:"Select a file to view its contents"}),x.jsxs("p",{className:"hint",children:[x.jsx(Jb,{size:12}),"Use Cmd+P or / to search for files"]})]});const N=m||S;if(i==="side-by-side")return x.jsxs("div",{className:"code-viewer",children:[x.jsxs("div",{className:"code-viewer-header",children:[x.jsx("span",{className:"file-path",children:e.path}),x.jsxs("span",{className:"file-language",children:["Side by Side - ",e.language]})]}),N?x.jsx("div",{className:"code-viewer-loading",children:"Loading..."}):v.length>0?x.jsx(IN,{originalLines:g,modifiedLines:g,diffData:v}):x.jsx("div",{className:"code-viewer-content",children:g.map(k=>x.jsx(Ga,{lineNumber:k.lineNumber,tokens:k.tokens,selected:!1,handlers:C},k.lineNumber))})]});if(i==="inline")return x.jsxs("div",{className:"code-viewer",children:[x.jsxs("div",{className:"code-viewer-header",children:[x.jsx("span",{className:"file-path",children:e.path}),x.jsxs("span",{className:"file-language",children:["Inline Diff - ",e.language]})]}),x.jsx("div",{className:"code-viewer-content",children:N?x.jsx("div",{className:"code-viewer-loading",children:"Loading..."}):x.jsx(AN,{lines:g,diffLines:T,selection:t,handlers:C})})]});const I=k=>t?k>=t.startLine&&k<=t.endLine:!1;return c&&o?x.jsxs("div",{className:"code-viewer",children:[x.jsxs("div",{className:"code-viewer-header",children:[x.jsx("span",{className:"file-path",children:e.path}),x.jsxs("div",{className:"code-viewer-header-right",children:[x.jsx("span",{className:"file-language",children:e.language}),x.jsxs("button",{className:"preview-toggle-btn active",onClick:l,"aria-label":"Toggle markdown preview","aria-pressed":"true",children:[x.jsx($b,{size:14}),x.jsx("span",{children:"Source"})]})]})]}),x.jsx("div",{className:"code-viewer-content markdown-preview-container",children:N?x.jsx("div",{className:"code-viewer-loading",children:"Loading..."}):x.jsx(TN,{content:e.content,selection:t,comments:f,onSelect:k=>n(k),onCommentSubmit:h,onCommentCancel:b,onCommentRemove:u})})]}):x.jsxs("div",{className:"code-viewer",children:[x.jsxs("div",{className:"code-viewer-header",children:[x.jsx("span",{className:"file-path",children:e.path}),x.jsxs("div",{className:"code-viewer-header-right",children:[x.jsx("span",{className:"file-language",children:e.language}),c&&x.jsxs("button",{className:"preview-toggle-btn",onClick:l,"aria-label":"Toggle markdown preview","aria-pressed":"false",children:[x.jsx(jb,{size:14}),x.jsx("span",{children:"Preview"})]})]})]}),x.jsx("div",{className:"code-viewer-content",children:N?x.jsx("div",{className:"code-viewer-loading",children:"Loading..."}):g.map(k=>{const D=p.get(k.lineNumber)||[],L=d.get(k.lineNumber)||[],Y=t&&t.endLine===k.lineNumber;return x.jsxs("div",{children:[x.jsx(Ga,{lineNumber:k.lineNumber,tokens:k.tokens,selected:I(k.lineNumber),commentRanges:L,handlers:C}),D.length>0&&x.jsx("div",{className:"inline-comments-container",children:D.map(H=>x.jsx(ey,{item:H,onRemove:u},H.id))}),Y&&x.jsx(Jm,{startLine:t.startLine,endLine:t.endLine,onSubmit:h,onCancel:b})]},k.lineNumber)})})]})}function ON(){const{items:e,removeItem:t,clear:n}=Yu(),r=(i,o,l)=>{const s=i.split("/").pop()||i;return o===l?`${s}:${o}`:`${s}:${o}-${l}`};return e.length===0?x.jsxs("div",{className:"staging-list staging-list-empty",children:[x.jsx("div",{className:"staging-header",children:"Staged Selections"}),x.jsxs("div",{className:"empty-state",children:[x.jsx(Qb,{size:32,className:"empty-state-icon"}),x.jsx("p",{className:"staging-hint",children:"Select lines in the code viewer and add a comment to stage them"})]})]}):x.jsxs("div",{className:"staging-list",children:[x.jsxs("div",{className:"staging-header",children:[x.jsxs("span",{children:["Staged Selections (",e.length,")"]}),x.jsx("button",{className:"btn-link",onClick:n,children:"Clear all"})]}),x.jsx("div",{className:"staging-items",children:e.map(i=>x.jsxs("div",{className:"staging-item",children:[x.jsxs("div",{className:"staging-item-header",children:[x.jsx("span",{className:"staging-location",children:r(i.filePath,i.startLine,i.endLine)}),x.jsx("button",{className:"btn-icon",onClick:()=>t(i.id),title:"Remove",children:x.jsx(tE,{size:14})})]}),x.jsx("div",{className:"staging-comment",children:i.comment})]},i.id))})]})}function tn(e){return Array.isArray?Array.isArray(e):ry(e)==="[object Array]"}function RN(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function LN(e){return e==null?"":RN(e)}function Bt(e){return typeof e=="string"}function ty(e){return typeof e=="number"}function DN(e){return e===!0||e===!1||PN(e)&&ry(e)=="[object Boolean]"}function ny(e){return typeof e=="object"}function PN(e){return ny(e)&&e!==null}function at(e){return e!=null}function $s(e){return!e.trim().length}function ry(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const FN="Incorrect 'index' type",zN=e=>`Invalid value for key ${e}`,BN=e=>`Pattern length exceeds max of ${e}.`,UN=e=>`Missing ${e} property in key`,$N=e=>`Property 'weight' in key '${e}' must be a positive integer`,Kd=Object.prototype.hasOwnProperty;class jN{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(r=>{let i=iy(r);this._keys.push(i),this._keyMap[i.id]=i,n+=i.weight}),this._keys.forEach(r=>{r.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function iy(e){let t=null,n=null,r=null,i=1,o=null;if(Bt(e)||tn(e))r=e,t=Vd(e),n=qa(e);else{if(!Kd.call(e,"name"))throw new Error(UN("name"));const l=e.name;if(r=l,Kd.call(e,"weight")&&(i=e.weight,i<=0))throw new Error($N(l));t=Vd(l),n=qa(l),o=e.getFn}return{path:t,id:n,weight:i,src:r,getFn:o}}function Vd(e){return tn(e)?e:e.split(".")}function qa(e){return tn(e)?e.join("."):e}function HN(e,t){let n=[],r=!1;const i=(o,l,s)=>{if(at(o))if(!l[s])n.push(o);else{let a=l[s];const u=o[a];if(!at(u))return;if(s===l.length-1&&(Bt(u)||ty(u)||DN(u)))n.push(LN(u));else if(tn(u)){r=!0;for(let c=0,f=u.length;c<f;c+=1)i(u[c],l,s+1)}else l.length&&i(u,l,s+1)}};return i(e,Bt(t)?t.split("."):t,0),r?n:n[0]}const KN={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},VN={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},WN={location:0,threshold:.6,distance:100},GN={useExtendedSearch:!1,getFn:HN,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Z={...VN,...KN,...WN,...GN};const qN=/[^ ]+/g;function YN(e=1,t=3){const n=new Map,r=Math.pow(10,t);return{get(i){const o=i.match(qN).length;if(n.has(o))return n.get(o);const l=1/Math.pow(o,.5*e),s=parseFloat(Math.round(l*r)/r);return n.set(o,s),s},clear(){n.clear()}}}class wc{constructor({getFn:t=Z.getFn,fieldNormWeight:n=Z.fieldNormWeight}={}){this.norm=YN(n,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((n,r)=>{this._keysMap[n.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,Bt(this.docs[0])?this.docs.forEach((t,n)=>{this._addString(t,n)}):this.docs.forEach((t,n)=>{this._addObject(t,n)}),this.norm.clear())}add(t){const n=this.size();Bt(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,r=this.size();n<r;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!at(t)||$s(t))return;let r={v:t,i:n,n:this.norm.get(t)};this.records.push(r)}_addObject(t,n){let r={i:n,$:{}};this.keys.forEach((i,o)=>{let l=i.getFn?i.getFn(t):this.getFn(t,i.path);if(at(l)){if(tn(l)){let s=[];const a=[{nestedArrIndex:-1,value:l}];for(;a.length;){const{nestedArrIndex:u,value:c}=a.pop();if(at(c))if(Bt(c)&&!$s(c)){let f={v:c,i:u,n:this.norm.get(c)};s.push(f)}else tn(c)&&c.forEach((f,p)=>{a.push({nestedArrIndex:p,value:f})})}r.$[o]=s}else if(Bt(l)&&!$s(l)){let s={v:l,n:this.norm.get(l)};r.$[o]=s}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function oy(e,t,{getFn:n=Z.getFn,fieldNormWeight:r=Z.fieldNormWeight}={}){const i=new wc({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(iy)),i.setSources(t),i.create(),i}function QN(e,{getFn:t=Z.getFn,fieldNormWeight:n=Z.fieldNormWeight}={}){const{keys:r,records:i}=e,o=new wc({getFn:t,fieldNormWeight:n});return o.setKeys(r),o.setIndexRecords(i),o}function To(e,{errors:t=0,currentLocation:n=0,expectedLocation:r=0,distance:i=Z.distance,ignoreLocation:o=Z.ignoreLocation}={}){const l=t/e.length;if(o)return l;const s=Math.abs(r-n);return i?l+s/i:s?1:l}function ZN(e=[],t=Z.minMatchCharLength){let n=[],r=-1,i=-1,o=0;for(let l=e.length;o<l;o+=1){let s=e[o];s&&r===-1?r=o:!s&&r!==-1&&(i=o-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}const Pn=32;function XN(e,t,n,{location:r=Z.location,distance:i=Z.distance,threshold:o=Z.threshold,findAllMatches:l=Z.findAllMatches,minMatchCharLength:s=Z.minMatchCharLength,includeMatches:a=Z.includeMatches,ignoreLocation:u=Z.ignoreLocation}={}){if(t.length>Pn)throw new Error(BN(Pn));const c=t.length,f=e.length,p=Math.max(0,Math.min(r,f));let d=o,h=p;const b=s>1||a,C=b?Array(f):[];let g;for(;(g=e.indexOf(t,h))>-1;){let N=To(t,{currentLocation:g,expectedLocation:p,distance:i,ignoreLocation:u});if(d=Math.min(N,d),h=g+c,b){let I=0;for(;I<c;)C[g+I]=1,I+=1}}h=-1;let m=[],y=1,S=c+f;const T=1<<c-1;for(let N=0;N<c;N+=1){let I=0,R=S;for(;I<R;)To(t,{errors:N,currentLocation:p+R,expectedLocation:p,distance:i,ignoreLocation:u})<=d?I=R:S=R,R=Math.floor((S-I)/2+I);S=R;let k=Math.max(1,p-R+1),D=l?f:Math.min(p+R,f)+c,L=Array(D+2);L[D+1]=(1<<N)-1;for(let H=D;H>=k;H-=1){let V=H-1,O=n[e.charAt(V)];if(b&&(C[V]=+!!O),L[H]=(L[H+1]<<1|1)&O,N&&(L[H]|=(m[H+1]|m[H])<<1|1|m[H+1]),L[H]&T&&(y=To(t,{errors:N,currentLocation:V,expectedLocation:p,distance:i,ignoreLocation:u}),y<=d)){if(d=y,h=V,h<=p)break;k=Math.max(1,2*p-h)}}if(To(t,{errors:N+1,currentLocation:p,expectedLocation:p,distance:i,ignoreLocation:u})>d)break;m=L}const v={isMatch:h>=0,score:Math.max(.001,y)};if(b){const N=ZN(C,s);N.length?a&&(v.indices=N):v.isMatch=!1}return v}function JN(e){let t={};for(let n=0,r=e.length;n<r;n+=1){const i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}const kl=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class ly{constructor(t,{location:n=Z.location,threshold:r=Z.threshold,distance:i=Z.distance,includeMatches:o=Z.includeMatches,findAllMatches:l=Z.findAllMatches,minMatchCharLength:s=Z.minMatchCharLength,isCaseSensitive:a=Z.isCaseSensitive,ignoreDiacritics:u=Z.ignoreDiacritics,ignoreLocation:c=Z.ignoreLocation}={}){if(this.options={location:n,threshold:r,distance:i,includeMatches:o,findAllMatches:l,minMatchCharLength:s,isCaseSensitive:a,ignoreDiacritics:u,ignoreLocation:c},t=a?t:t.toLowerCase(),t=u?kl(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const f=(d,h)=>{this.chunks.push({pattern:d,alphabet:JN(d),startIndex:h})},p=this.pattern.length;if(p>Pn){let d=0;const h=p%Pn,b=p-h;for(;d<b;)f(this.pattern.substr(d,Pn),d),d+=Pn;if(h){const C=p-Pn;f(this.pattern.substr(C),C)}}else f(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:r,includeMatches:i}=this.options;if(t=n?t:t.toLowerCase(),t=r?kl(t):t,this.pattern===t){let b={isMatch:!0,score:0};return i&&(b.indices=[[0,t.length-1]]),b}const{location:o,distance:l,threshold:s,findAllMatches:a,minMatchCharLength:u,ignoreLocation:c}=this.options;let f=[],p=0,d=!1;this.chunks.forEach(({pattern:b,alphabet:C,startIndex:g})=>{const{isMatch:m,score:y,indices:S}=XN(t,b,C,{location:o+g,distance:l,threshold:s,findAllMatches:a,minMatchCharLength:u,includeMatches:i,ignoreLocation:c});m&&(d=!0),p+=y,m&&S&&(f=[...f,...S])});let h={isMatch:d,score:d?p/this.chunks.length:1};return d&&i&&(h.indices=f),h}}class In{constructor(t){this.pattern=t}static isMultiMatch(t){return Wd(t,this.multiRegex)}static isSingleMatch(t){return Wd(t,this.singleRegex)}search(){}}function Wd(e,t){const n=e.match(t);return n?n[1]:null}class eT extends In{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class tT extends In{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const r=t.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,t.length-1]}}}class nT extends In{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class rT extends In{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class iT extends In{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class oT extends In{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class sy extends In{constructor(t,{location:n=Z.location,threshold:r=Z.threshold,distance:i=Z.distance,includeMatches:o=Z.includeMatches,findAllMatches:l=Z.findAllMatches,minMatchCharLength:s=Z.minMatchCharLength,isCaseSensitive:a=Z.isCaseSensitive,ignoreDiacritics:u=Z.ignoreDiacritics,ignoreLocation:c=Z.ignoreLocation}={}){super(t),this._bitapSearch=new ly(t,{location:n,threshold:r,distance:i,includeMatches:o,findAllMatches:l,minMatchCharLength:s,isCaseSensitive:a,ignoreDiacritics:u,ignoreLocation:c})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class ay extends In{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,r;const i=[],o=this.pattern.length;for(;(r=t.indexOf(this.pattern,n))>-1;)n=r+o,i.push([r,n-1]);const l=!!i.length;return{isMatch:l,score:l?0:1,indices:i}}}const Ya=[eT,ay,nT,rT,oT,iT,tT,sy],Gd=Ya.length,lT=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,sT="|";function aT(e,t={}){return e.split(sT).map(n=>{let r=n.trim().split(lT).filter(o=>o&&!!o.trim()),i=[];for(let o=0,l=r.length;o<l;o+=1){const s=r[o];let a=!1,u=-1;for(;!a&&++u<Gd;){const c=Ya[u];let f=c.isMultiMatch(s);f&&(i.push(new c(f,t)),a=!0)}if(!a)for(u=-1;++u<Gd;){const c=Ya[u];let f=c.isSingleMatch(s);if(f){i.push(new c(f,t));break}}}return i})}const uT=new Set([sy.type,ay.type]);class cT{constructor(t,{isCaseSensitive:n=Z.isCaseSensitive,ignoreDiacritics:r=Z.ignoreDiacritics,includeMatches:i=Z.includeMatches,minMatchCharLength:o=Z.minMatchCharLength,ignoreLocation:l=Z.ignoreLocation,findAllMatches:s=Z.findAllMatches,location:a=Z.location,threshold:u=Z.threshold,distance:c=Z.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:r,includeMatches:i,minMatchCharLength:o,findAllMatches:s,ignoreLocation:l,location:a,threshold:u,distance:c},t=n?t:t.toLowerCase(),t=r?kl(t):t,this.pattern=t,this.query=aT(this.pattern,this.options)}static condition(t,n){return n.useExtendedSearch}searchIn(t){const n=this.query;if(!n)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:i,ignoreDiacritics:o}=this.options;t=i?t:t.toLowerCase(),t=o?kl(t):t;let l=0,s=[],a=0;for(let u=0,c=n.length;u<c;u+=1){const f=n[u];s.length=0,l=0;for(let p=0,d=f.length;p<d;p+=1){const h=f[p],{isMatch:b,indices:C,score:g}=h.search(t);if(b){if(l+=1,a+=g,r){const m=h.constructor.type;uT.has(m)?s=[...s,...C]:s.push(C)}}else{a=0,l=0,s.length=0;break}}if(l){let p={isMatch:!0,score:a/l};return r&&(p.indices=s),p}}return{isMatch:!1,score:1}}}const Qa=[];function fT(...e){Qa.push(...e)}function Za(e,t){for(let n=0,r=Qa.length;n<r;n+=1){let i=Qa[n];if(i.condition(e,t))return new i(e,t)}return new ly(e,t)}const wl={AND:"$and",OR:"$or"},Xa={PATH:"$path",PATTERN:"$val"},Ja=e=>!!(e[wl.AND]||e[wl.OR]),dT=e=>!!e[Xa.PATH],pT=e=>!tn(e)&&ny(e)&&!Ja(e),qd=e=>({[wl.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function uy(e,t,{auto:n=!0}={}){const r=i=>{let o=Object.keys(i);const l=dT(i);if(!l&&o.length>1&&!Ja(i))return r(qd(i));if(pT(i)){const a=l?i[Xa.PATH]:o[0],u=l?i[Xa.PATTERN]:i[a];if(!Bt(u))throw new Error(zN(a));const c={keyId:qa(a),pattern:u};return n&&(c.searcher=Za(u,t)),c}let s={children:[],operator:o[0]};return o.forEach(a=>{const u=i[a];tn(u)&&u.forEach(c=>{s.children.push(r(c))})}),s};return Ja(e)||(e=qd(e)),r(e)}function hT(e,{ignoreFieldNorm:t=Z.ignoreFieldNorm}){e.forEach(n=>{let r=1;n.matches.forEach(({key:i,norm:o,score:l})=>{const s=i?i.weight:null;r*=Math.pow(l===0&&s?Number.EPSILON:l,(s||1)*(t?1:o))}),n.score=r})}function gT(e,t){const n=e.matches;t.matches=[],at(n)&&n.forEach(r=>{if(!at(r.indices)||!r.indices.length)return;const{indices:i,value:o}=r;let l={indices:i,value:o};r.key&&(l.key=r.key.src),r.idx>-1&&(l.refIndex=r.idx),t.matches.push(l)})}function mT(e,t){t.score=e.score}function yT(e,t,{includeMatches:n=Z.includeMatches,includeScore:r=Z.includeScore}={}){const i=[];return n&&i.push(gT),r&&i.push(mT),e.map(o=>{const{idx:l}=o,s={item:t[l],refIndex:l};return i.length&&i.forEach(a=>{a(o,s)}),s})}class Hr{constructor(t,n={},r){this.options={...Z,...n},this.options.useExtendedSearch,this._keyStore=new jN(this.options.keys),this.setCollection(t,r)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof wc))throw new Error(FN);this._myIndex=n||oy(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){at(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let r=0,i=this._docs.length;r<i;r+=1){const o=this._docs[r];t(o,r)&&(this.removeAt(r),r-=1,i-=1,n.push(o))}return n}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:n=-1}={}){const{includeMatches:r,includeScore:i,shouldSort:o,sortFn:l,ignoreFieldNorm:s}=this.options;let a=Bt(t)?Bt(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return hT(a,{ignoreFieldNorm:s}),o&&a.sort(l),ty(n)&&n>-1&&(a=a.slice(0,n)),yT(a,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(t){const n=Za(t,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:o,i:l,n:s})=>{if(!at(o))return;const{isMatch:a,score:u,indices:c}=n.searchIn(o);a&&i.push({item:o,idx:l,matches:[{score:u,value:o,norm:s,indices:c}]})}),i}_searchLogical(t){const n=uy(t,this.options),r=(s,a,u)=>{if(!s.children){const{keyId:f,searcher:p}=s,d=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(a,f),searcher:p});return d&&d.length?[{idx:u,item:a,matches:d}]:[]}const c=[];for(let f=0,p=s.children.length;f<p;f+=1){const d=s.children[f],h=r(d,a,u);if(h.length)c.push(...h);else if(s.operator===wl.AND)return[]}return c},i=this._myIndex.records,o={},l=[];return i.forEach(({$:s,i:a})=>{if(at(s)){let u=r(n,s,a);u.length&&(o[a]||(o[a]={idx:a,item:s,matches:[]},l.push(o[a])),u.forEach(({matches:c})=>{o[a].matches.push(...c)}))}}),l}_searchObjectList(t){const n=Za(t,this.options),{keys:r,records:i}=this._myIndex,o=[];return i.forEach(({$:l,i:s})=>{if(!at(l))return;let a=[];r.forEach((u,c)=>{a.push(...this._findMatches({key:u,value:l[c],searcher:n}))}),a.length&&o.push({idx:s,item:l,matches:a})}),o}_findMatches({key:t,value:n,searcher:r}){if(!at(n))return[];let i=[];if(tn(n))n.forEach(({v:o,i:l,n:s})=>{if(!at(o))return;const{isMatch:a,score:u,indices:c}=r.searchIn(o);a&&i.push({score:u,key:t,value:o,idx:l,norm:s,indices:c})});else{const{v:o,n:l}=n,{isMatch:s,score:a,indices:u}=r.searchIn(o);s&&i.push({score:a,key:t,value:o,norm:l,indices:u})}return i}}Hr.version="7.1.0";Hr.createIndex=oy;Hr.parseIndex=QN;Hr.config=Z;Hr.parseQuery=uy;fT(cT);function bT(){const{flatFiles:e,filteredDirs:t,setCurrentFile:n,setShowFuzzyFinder:r}=Yi(),[i,o]=K.useState(""),[l,s]=K.useState(0),a=K.useRef(null);K.useEffect(()=>{var d;(d=a.current)==null||d.focus()},[]);const u=K.useMemo(()=>new Hr(e,{threshold:.4,distance:100}),[e]),c=K.useMemo(()=>i.trim()?u.search(i).slice(0,20).map(d=>d.item):e.slice(0,20),[i,u,e]);K.useEffect(()=>{s(0)},[c]);const f=async d=>{try{const h=await Fe.getFile(d);n(h),r(!1)}catch(h){console.error("Failed to load file:",h)}},p=d=>{switch(d.key){case"ArrowDown":d.preventDefault(),s(h=>Math.min(h+1,c.length-1));break;case"ArrowUp":d.preventDefault(),s(h=>Math.max(h-1,0));break;case"Enter":d.preventDefault(),c[l]&&f(c[l]);break;case"Escape":d.preventDefault(),r(!1);break}};return x.jsx("div",{className:"fuzzy-finder-overlay",onClick:()=>r(!1),children:x.jsxs("div",{className:"fuzzy-finder",onClick:d=>d.stopPropagation(),children:[x.jsx("input",{ref:a,type:"text",className:"fuzzy-finder-input",placeholder:"Search files...",value:i,onChange:d=>o(d.target.value),onKeyDown:p}),x.jsxs("div",{className:"fuzzy-finder-results",children:[c.map((d,h)=>x.jsx("div",{className:`fuzzy-finder-item ${h===l?"fuzzy-finder-item-selected":""}`,onClick:()=>f(d),onMouseEnter:()=>s(h),children:d},d)),c.length===0&&x.jsx("div",{className:"fuzzy-finder-empty",children:"No files found"}),t.length>0&&x.jsxs("div",{className:"fuzzy-finder-hint",children:[t.length," folder",t.length>1?"s":""," excluded:"," ",t.slice(0,3).join(", "),t.length>3&&" ..."]})]})]})})}const ET={none:"No Diff",inline:"Inline","side-by-side":"Side by Side"};function vT(){const{leftPanelVisible:e,rightPanelVisible:t,toggleLeftPanel:n,toggleRightPanel:r,diffViewMode:i,cycleDiffViewMode:o}=Ul();return x.jsxs("div",{className:"toolbar",children:[x.jsx("div",{className:"toolbar-left",children:x.jsx("button",{className:`toolbar-btn ${e?"active":""}`,onClick:n,title:"Toggle file tree (Cmd+B)",children:x.jsx(Zb,{size:16})})}),x.jsx("div",{className:"toolbar-center",children:x.jsxs("button",{className:"toolbar-btn diff-toggle",onClick:o,title:"Cycle diff mode (Cmd+D)",children:[x.jsx(qb,{size:16}),x.jsx("span",{className:"diff-mode-label",children:ET[i]})]})}),x.jsx("div",{className:"toolbar-right",children:x.jsx("button",{className:`toolbar-btn ${t?"active":""}`,onClick:r,title:"Toggle staging panel (Cmd+Shift+B)",children:x.jsx(Xb,{size:16})})})]})}function kT({onFuzzyFinderToggle:e,onCancel:t,onSubmit:n,onToggleLeftPanel:r,onToggleRightPanel:i,onToggleAllPanels:o,onToggleGitFilter:l,onCycleDiffMode:s}){K.useEffect(()=>{const a=u=>{const c=u.target,f=c.tagName==="INPUT"||c.tagName==="TEXTAREA"||c.isContentEditable;if(u.metaKey&&u.key==="p"||!f&&u.key==="/"){u.preventDefault(),e();return}if(!f&&u.key==="q"){u.preventDefault(),t();return}if(u.metaKey&&u.key==="Enter"){u.preventDefault(),n();return}if(u.metaKey&&!u.shiftKey&&u.key==="b"){u.preventDefault(),r();return}if(u.metaKey&&u.shiftKey&&u.key==="B"){u.preventDefault(),i();return}if(u.metaKey&&u.key==="\\"){u.preventDefault(),o();return}if(u.metaKey&&u.key==="g"){u.preventDefault(),l();return}if(u.metaKey&&u.key==="d"){u.preventDefault(),s();return}u.key};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[e,t,n,r,i,o,l,s])}function wT(){const{currentFile:e,setFileTree:t,setFlatFiles:n,setGitStatus:r,setCurrentFile:i}=Yi(),o=K.useRef(e);K.useEffect(()=>{o.current=e},[e]),K.useEffect(()=>{const l=async a=>{var u;switch(a.type){case"connected":break;case"files-changed":try{const[c,f]=await Promise.all([Fe.getFiles(),Fe.getFlatFiles()]);t(c.tree),n(f.files,f.filteredDirs,f.recentFile??null)}catch(c){console.error("Failed to refresh files:",c)}break;case"file-changed":if(((u=o.current)==null?void 0:u.path)===a.path)try{const c=await Fe.getFile(a.path);i(c)}catch(c){console.error("Failed to refresh current file:",c)}break;case"git-changed":try{const c=await Fe.getGitStatus();r(c)}catch(c){console.error("Failed to refresh git status:",c)}break}},s=Fe.subscribeEvents(l);return()=>{s()}},[t,n,r,i])}function xT(){const{setFileTree:e,setFlatFiles:t,setGitStatus:n,setCurrentFile:r,showFuzzyFinder:i,setShowFuzzyFinder:o}=Yi(),{items:l}=Yu(),{leftPanelVisible:s,rightPanelVisible:a,toggleLeftPanel:u,toggleRightPanel:c,toggleAllPanels:f,toggleGitFilter:p,cycleDiffViewMode:d}=Ul(),[h,b]=K.useState(!1);wT();const C=new URLSearchParams(window.location.search).get("session")||"";K.useEffect(()=>{(async()=>{try{const[S,T,v]=await Promise.all([Fe.getFiles(),Fe.getFlatFiles(),Fe.getGitStatus()]);if(e(S.tree),t(T.files,T.filteredDirs,T.recentFile),n(v),T.recentFile)try{const N=await Fe.getFile(T.recentFile);r(N)}catch(N){console.error("Failed to load recent file:",N)}}catch(S){console.error("Failed to load data:",S)}})()},[e,t,n,r]),kT({onFuzzyFinderToggle:()=>o(!i),onCancel:async()=>{try{await Fe.cancel(),window.close()}catch(y){console.error("Failed to cancel:",y)}},onSubmit:async()=>{if(l.length!==0){b(!0);try{await Fe.submit(C,l),window.close()}catch(y){console.error("Failed to submit:",y),b(!1)}}},onToggleLeftPanel:u,onToggleRightPanel:c,onToggleAllPanels:f,onToggleGitFilter:p,onCycleDiffMode:d});const g=async()=>{if(l.length!==0){b(!0);try{await Fe.submit(C,l),window.close()}catch(y){console.error("Failed to submit:",y),b(!1)}}},m=async()=>{try{await Fe.cancel(),window.close()}catch(y){console.error("Failed to cancel:",y)}};return x.jsxs("div",{className:"app",children:[x.jsx(vT,{}),x.jsxs("div",{className:"main-content",children:[x.jsx("aside",{className:`sidebar ${s?"":"collapsed"}`,children:x.jsx(AE,{})}),x.jsx("main",{className:"content",children:x.jsx(MN,{})}),x.jsx("aside",{className:`staging-panel ${a?"":"collapsed"}`,children:x.jsx(ON,{})})]}),x.jsxs("footer",{className:"footer",children:[x.jsx("span",{className:"footer-hint",children:"Select lines in the code viewer to add a comment"}),x.jsxs("div",{className:"footer-actions",children:[x.jsx("button",{className:"btn btn-secondary",onClick:m,children:"Cancel (q)"}),x.jsx("button",{className:"btn btn-primary",onClick:g,disabled:l.length===0||h,children:h?"Submitting...":`Submit (${l.length})`})]})]}),i&&x.jsx(bT,{})]})}js.createRoot(document.getElementById("root")).render(x.jsx(op.StrictMode,{children:x.jsx(xT,{})}));