@mquan/mochi 0.1.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (645) hide show
  1. package/README.md +37 -17
  2. package/dist/bin/tsconfig.tsbuildinfo +1 -1
  3. package/dist/server/api.d.ts +2 -1
  4. package/dist/server/api.d.ts.map +1 -1
  5. package/dist/server/api.js +62 -0
  6. package/dist/server/api.js.map +1 -1
  7. package/dist/server/diagram/endpoint.d.ts.map +1 -1
  8. package/dist/server/diagram/endpoint.js +4 -35
  9. package/dist/server/diagram/endpoint.js.map +1 -1
  10. package/dist/server/diagram/generate.d.ts +2 -2
  11. package/dist/server/diagram/generate.js +4 -4
  12. package/dist/server/diagram/generate.js.map +1 -1
  13. package/dist/server/diagram/prompt-version.d.ts +1 -1
  14. package/dist/server/diagram/prompt-version.d.ts.map +1 -1
  15. package/dist/server/diagram/prompt-version.js +22 -1
  16. package/dist/server/diagram/prompt-version.js.map +1 -1
  17. package/dist/server/diagram/prompts/diagram-spec.md +31 -31
  18. package/dist/server/tsconfig.tsbuildinfo +1 -1
  19. package/dist/shared/analysis-schema.d.ts +12 -101
  20. package/dist/shared/analysis-schema.d.ts.map +1 -1
  21. package/dist/shared/analysis-schema.js +1 -1
  22. package/dist/shared/analysis-schema.js.map +1 -1
  23. package/dist/shared/design/kinds.d.ts +4 -8
  24. package/dist/shared/design/kinds.d.ts.map +1 -1
  25. package/dist/shared/design/kinds.js +0 -19
  26. package/dist/shared/design/kinds.js.map +1 -1
  27. package/dist/shared/design/lenses.d.ts +1 -1
  28. package/dist/shared/design/lenses.d.ts.map +1 -1
  29. package/dist/shared/design/lenses.js +2 -9
  30. package/dist/shared/design/lenses.js.map +1 -1
  31. package/dist/shared/design/node-styles.d.ts.map +1 -1
  32. package/dist/shared/design/node-styles.js +0 -20
  33. package/dist/shared/design/node-styles.js.map +1 -1
  34. package/dist/shared/diagram-spec.d.ts +248 -800
  35. package/dist/shared/diagram-spec.d.ts.map +1 -1
  36. package/dist/shared/diagram-spec.js.map +1 -1
  37. package/dist/shared/tsconfig.tsbuildinfo +1 -1
  38. package/dist/web/assets/abap-DOv5zRgd.js +1 -0
  39. package/dist/web/assets/actionscript-3-D_b0n2Ff.js +1 -0
  40. package/dist/web/assets/ada-C6m8O36S.js +1 -0
  41. package/dist/web/assets/andromeeda-LdzAHaKR.js +1 -0
  42. package/dist/web/assets/angular-html-yQleOZR_.js +1 -0
  43. package/dist/web/assets/angular-ts-CNLtkSah.js +1 -0
  44. package/dist/web/assets/apache-CE7PmWoU.js +1 -0
  45. package/dist/web/assets/apex-DOfNfL0V.js +1 -0
  46. package/dist/web/assets/apl-BPLo_IWv.js +1 -0
  47. package/dist/web/assets/applescript-D4zGaScB.js +1 -0
  48. package/dist/web/assets/ara-DMoCP0pJ.js +1 -0
  49. package/dist/web/assets/asciidoc-BkmPq932.js +1 -0
  50. package/dist/web/assets/asm-ClIKbvsu.js +1 -0
  51. package/dist/web/assets/astro-DhskwrBd.js +1 -0
  52. package/dist/web/assets/aurora-x-DTcNXZIS.js +1 -0
  53. package/dist/web/assets/awk-D1ZOsISX.js +1 -0
  54. package/dist/web/assets/ayu-dark-DpNcORnA.js +1 -0
  55. package/dist/web/assets/ayu-light-lHqf0ddo.js +1 -0
  56. package/dist/web/assets/ayu-mirage-Dji5RWiH.js +1 -0
  57. package/dist/web/assets/ballerina-H14_EqPr.js +1 -0
  58. package/dist/web/assets/bat-cyb3gF8B.js +1 -0
  59. package/dist/web/assets/beancount-D84pBacF.js +1 -0
  60. package/dist/web/assets/berry-B29XeKK4.js +1 -0
  61. package/dist/web/assets/bibtex-Hs7VvQaV.js +1 -0
  62. package/dist/web/assets/bicep-CugTE5CQ.js +1 -0
  63. package/dist/web/assets/bird2-mieRHotO.js +1 -0
  64. package/dist/web/assets/blade-DkApxyPN.js +1 -0
  65. package/dist/web/assets/bsl-BRmzGEWg.js +1 -0
  66. package/dist/web/assets/c-B5rzbwvf.js +1 -0
  67. package/dist/web/assets/c3-Dx2gByXW.js +1 -0
  68. package/dist/web/assets/cadence-CCTSwj3w.js +1 -0
  69. package/dist/web/assets/cairo-CaIu88t6.js +1 -0
  70. package/dist/web/assets/catppuccin-frappe-DQrU04q0.js +1 -0
  71. package/dist/web/assets/catppuccin-latte-B_oiWZka.js +1 -0
  72. package/dist/web/assets/catppuccin-macchiato-D8VB2qi4.js +1 -0
  73. package/dist/web/assets/catppuccin-mocha-5vkMJ1Mb.js +1 -0
  74. package/dist/web/assets/clarity-BbUNTPrg.js +1 -0
  75. package/dist/web/assets/clojure-Bcw7lCta.js +1 -0
  76. package/dist/web/assets/cmake-DM0FE-T9.js +1 -0
  77. package/dist/web/assets/cobol-CqUv7Fx7.js +1 -0
  78. package/dist/web/assets/codeowners-CBvEPOlS.js +1 -0
  79. package/dist/web/assets/codeql-CjS8Tp16.js +1 -0
  80. package/dist/web/assets/coffee-qCane8NK.js +1 -0
  81. package/dist/web/assets/common-lisp-BCx4dVK8.js +1 -0
  82. package/dist/web/assets/coq-Ddo7YIsR.js +1 -0
  83. package/dist/web/assets/cpp-BKSa3oke.js +1 -0
  84. package/dist/web/assets/crystal-CkR_ZpXj.js +1 -0
  85. package/dist/web/assets/csharp-Kzd7Ey2d.js +1 -0
  86. package/dist/web/assets/css-C6IA-Mby.js +1 -0
  87. package/dist/web/assets/csv-DGwgERVJ.js +1 -0
  88. package/dist/web/assets/cue-CMabdDG0.js +1 -0
  89. package/dist/web/assets/cypher-CJUzJAhQ.js +1 -0
  90. package/dist/web/assets/d-BvLF4qGs.js +1 -0
  91. package/dist/web/assets/dark-plus-BMwvn5lx.js +1 -0
  92. package/dist/web/assets/dart-DxXbDeKR.js +1 -0
  93. package/dist/web/assets/dax-BvrCypuS.js +1 -0
  94. package/dist/web/assets/desktop-BEul_kAS.js +1 -0
  95. package/dist/web/assets/diff-B7rhrwA5.js +1 -0
  96. package/dist/web/assets/docker-9Zbx0dQX.js +1 -0
  97. package/dist/web/assets/dotenv-C0epktMv.js +1 -0
  98. package/dist/web/assets/dracula-CBD4ckb0.js +1 -0
  99. package/dist/web/assets/dracula-soft-CuGBZj_h.js +1 -0
  100. package/dist/web/assets/dream-maker-D6UB367x.js +1 -0
  101. package/dist/web/assets/edge-pdIcE-A_.js +1 -0
  102. package/dist/web/assets/elixir-BESKS8rl.js +1 -0
  103. package/dist/web/assets/elm-BkW2o9SB.js +1 -0
  104. package/dist/web/assets/emacs-lisp-DFyMFAZA.js +1 -0
  105. package/dist/web/assets/erb-B6dO5BAV.js +1 -0
  106. package/dist/web/assets/erlang-LvhGhZI3.js +1 -0
  107. package/dist/web/assets/everforest-dark-BhFNrp2k.js +1 -0
  108. package/dist/web/assets/everforest-light-CpIbZ9aT.js +1 -0
  109. package/dist/web/assets/fennel-CH1ohGYX.js +1 -0
  110. package/dist/web/assets/fish-D2X4h_sR.js +1 -0
  111. package/dist/web/assets/fluent-B_In4uB6.js +1 -0
  112. package/dist/web/assets/fortran-fixed-form-BXvkHMbK.js +1 -0
  113. package/dist/web/assets/fortran-free-form-Bw_JZ1tj.js +1 -0
  114. package/dist/web/assets/fsharp-uxIU8dwY.js +1 -0
  115. package/dist/web/assets/gdresource-DkI-mZL2.js +1 -0
  116. package/dist/web/assets/gdscript-DDro0rs8.js +1 -0
  117. package/dist/web/assets/gdshader-DkUeC1ld.js +1 -0
  118. package/dist/web/assets/genie-khT2hrp-.js +1 -0
  119. package/dist/web/assets/gherkin-CPELKal0.js +1 -0
  120. package/dist/web/assets/git-commit-a3TktZ3A.js +1 -0
  121. package/dist/web/assets/git-rebase-SoCRyKE3.js +1 -0
  122. package/dist/web/assets/github-dark-DQp1Qkx5.js +1 -0
  123. package/dist/web/assets/github-dark-default-BroO-mT3.js +1 -0
  124. package/dist/web/assets/github-dark-dimmed-D8UZ8uTL.js +1 -0
  125. package/dist/web/assets/github-dark-high-contrast-CM0RRMCj.js +1 -0
  126. package/dist/web/assets/github-light-BRTmX4Ht.js +1 -0
  127. package/dist/web/assets/github-light-default-dl7biQ4g.js +1 -0
  128. package/dist/web/assets/github-light-high-contrast-Cvzq8ZXJ.js +1 -0
  129. package/dist/web/assets/gleam-7UVjplRF.js +1 -0
  130. package/dist/web/assets/glimmer-js-DDelvNKZ.js +1 -0
  131. package/dist/web/assets/glimmer-ts-Bpla8usy.js +1 -0
  132. package/dist/web/assets/glsl-DGUY5pWj.js +1 -0
  133. package/dist/web/assets/gn-EcrZPIZo.js +1 -0
  134. package/dist/web/assets/gnuplot-CcsFlqcz.js +1 -0
  135. package/dist/web/assets/go-TqNfhUhh.js +1 -0
  136. package/dist/web/assets/graphql-BbFjoNY9.js +1 -0
  137. package/dist/web/assets/groovy-bfrzFpSZ.js +1 -0
  138. package/dist/web/assets/gruvbox-dark-hard-CBFL_VqK.js +1 -0
  139. package/dist/web/assets/gruvbox-dark-medium-Dn18r-Yz.js +1 -0
  140. package/dist/web/assets/gruvbox-dark-soft-DUyKWd02.js +1 -0
  141. package/dist/web/assets/gruvbox-light-hard-DV9RwKs4.js +1 -0
  142. package/dist/web/assets/gruvbox-light-medium-Ba-VIg48.js +1 -0
  143. package/dist/web/assets/gruvbox-light-soft-CVIZMKFx.js +1 -0
  144. package/dist/web/assets/hack-C0u1uES4.js +1 -0
  145. package/dist/web/assets/{haml-B8DHNrY2.js → haml-EMli3a_F.js} +1 -1
  146. package/dist/web/assets/handlebars-CgyLD371.js +1 -0
  147. package/dist/web/assets/haskell-DzEtL6Zk.js +1 -0
  148. package/dist/web/assets/haxe-wLDEcRoz.js +1 -0
  149. package/dist/web/assets/hcl-C1fs3gTM.js +1 -0
  150. package/dist/web/assets/hjson-B4b85MZo.js +1 -0
  151. package/dist/web/assets/hlsl-JhqkHhML.js +1 -0
  152. package/dist/web/assets/horizon-DMOEeSnA.js +1 -0
  153. package/dist/web/assets/horizon-bright-CPVackS9.js +1 -0
  154. package/dist/web/assets/houston-DSlR9wH9.js +1 -0
  155. package/dist/web/assets/{html-GMplVEZG.js → html-5jufwj83.js} +1 -1
  156. package/dist/web/assets/html-derivative-CcTbsN0W.js +1 -0
  157. package/dist/web/assets/http-3Uglmg2r.js +1 -0
  158. package/dist/web/assets/hurl-BL5NhXQh.js +1 -0
  159. package/dist/web/assets/hxml-Bdi_kWeE.js +1 -0
  160. package/dist/web/assets/hy-uAHU8420.js +1 -0
  161. package/dist/web/assets/imba-CPCwfD-G.js +1 -0
  162. package/dist/web/assets/index-BeKRB2Ow.js +27 -0
  163. package/dist/web/assets/index-CZ0TOHas.css +1 -0
  164. package/dist/web/assets/ini-2Ew1Qzj6.js +1 -0
  165. package/dist/web/assets/java-BAnULpY2.js +1 -0
  166. package/dist/web/assets/javascript-DaqIOllZ.js +1 -0
  167. package/dist/web/assets/jinja-BT3KhNVn.js +1 -0
  168. package/dist/web/assets/jison-oGVXVqLv.js +1 -0
  169. package/dist/web/assets/json-hCh8arpt.js +1 -0
  170. package/dist/web/assets/json5-Dl8gAgq4.js +1 -0
  171. package/dist/web/assets/jsonc-C9b23pMf.js +1 -0
  172. package/dist/web/assets/jsonl-DkF3QjsY.js +1 -0
  173. package/dist/web/assets/jsonnet-DH4UkOBo.js +1 -0
  174. package/dist/web/assets/jssm-CBV9_O8o.js +1 -0
  175. package/dist/web/assets/jsx-DYtKZveK.js +1 -0
  176. package/dist/web/assets/julia-D1Q0Afi_.js +1 -0
  177. package/dist/web/assets/just-DE210FW5.js +1 -0
  178. package/dist/web/assets/kanagawa-dragon-DLDXA4f2.js +1 -0
  179. package/dist/web/assets/kanagawa-lotus-qAvw6eOU.js +1 -0
  180. package/dist/web/assets/kanagawa-wave-DFO_g5Mb.js +1 -0
  181. package/dist/web/assets/kdl-BQl-X5Uf.js +1 -0
  182. package/dist/web/assets/kotlin-d6oenWPH.js +1 -0
  183. package/dist/web/assets/kusto-Cpu9Tdho.js +1 -0
  184. package/dist/web/assets/laserwave-Bbquw0Nf.js +1 -0
  185. package/dist/web/assets/latex-QgW6KjGR.js +1 -0
  186. package/dist/web/assets/lean-CvyEisyW.js +1 -0
  187. package/dist/web/assets/less-B9RQiV1N.js +1 -0
  188. package/dist/web/assets/light-plus-Ch1Usv7R.js +1 -0
  189. package/dist/web/assets/liquid-cMVZ3T4B.js +1 -0
  190. package/dist/web/assets/llvm-DtrwjsAs.js +1 -0
  191. package/dist/web/assets/log-JKbKuM4J.js +1 -0
  192. package/dist/web/assets/logo-BsxZM_eb.js +1 -0
  193. package/dist/web/assets/lua-BT_CXFE-.js +1 -0
  194. package/dist/web/assets/luau-D9oeBRnv.js +1 -0
  195. package/dist/web/assets/make-DLuqI3Sa.js +1 -0
  196. package/dist/web/assets/markdown-hfQzyr6v.js +1 -0
  197. package/dist/web/assets/marko-BqTjigl2.js +1 -0
  198. package/dist/web/assets/material-theme-darker-yvetTWEr.js +1 -0
  199. package/dist/web/assets/material-theme-kX26WiJU.js +1 -0
  200. package/dist/web/assets/material-theme-lighter-L4j3qddN.js +1 -0
  201. package/dist/web/assets/material-theme-ocean-BnNk1wNQ.js +1 -0
  202. package/dist/web/assets/material-theme-palenight-W0qbGyud.js +1 -0
  203. package/dist/web/assets/matlab-Cz4xBfaA.js +1 -0
  204. package/dist/web/assets/mdc-wzjOwpPF.js +1 -0
  205. package/dist/web/assets/mdx-Crds6sJw.js +1 -0
  206. package/dist/web/assets/mermaid-Bk1sayFm.js +1 -0
  207. package/dist/web/assets/min-dark-DK6uq44k.js +1 -0
  208. package/dist/web/assets/min-light-lr1QiEOE.js +1 -0
  209. package/dist/web/assets/mipsasm-D3Vr1VJI.js +1 -0
  210. package/dist/web/assets/mojo-D3ai4ATt.js +1 -0
  211. package/dist/web/assets/monokai-DZSWSdmN.js +1 -0
  212. package/dist/web/assets/moonbit-c7XV1V8w.js +1 -0
  213. package/dist/web/assets/move--lg8RSZu.js +1 -0
  214. package/dist/web/assets/narrat-Bn_PlXDl.js +1 -0
  215. package/dist/web/assets/nextflow-DXxhyYjQ.js +1 -0
  216. package/dist/web/assets/nextflow-groovy-CUrXbMOF.js +1 -0
  217. package/dist/web/assets/nginx-DVjk8fbM.js +1 -0
  218. package/dist/web/assets/night-owl-DnKT96OJ.js +1 -0
  219. package/dist/web/assets/night-owl-light-gVSh6ltn.js +1 -0
  220. package/dist/web/assets/nim-RSsaDBI7.js +1 -0
  221. package/dist/web/assets/nix-DE1Q2B1F.js +1 -0
  222. package/dist/web/assets/nord-CbYaE7ZY.js +1 -0
  223. package/dist/web/assets/nushell-BBFYNdNE.js +1 -0
  224. package/dist/web/assets/objective-c-mc6rHp-y.js +1 -0
  225. package/dist/web/assets/objective-cpp-D96wcRis.js +1 -0
  226. package/dist/web/assets/ocaml-Ddt3E4VO.js +1 -0
  227. package/dist/web/assets/odin-BUZTfc03.js +1 -0
  228. package/dist/web/assets/one-dark-pro-CLMO01es.js +1 -0
  229. package/dist/web/assets/one-light-27sfjFDM.js +1 -0
  230. package/dist/web/assets/openscad-C-XxCD_t.js +1 -0
  231. package/dist/web/assets/pascal-BvJwb9Ca.js +1 -0
  232. package/dist/web/assets/perl--NvfdBGv.js +1 -0
  233. package/dist/web/assets/php-C7tUxnL4.js +1 -0
  234. package/dist/web/assets/pkl-DtSDxyR8.js +1 -0
  235. package/dist/web/assets/plastic-Dd1-4HJb.js +1 -0
  236. package/dist/web/assets/plsql-CgEVu7mV.js +1 -0
  237. package/dist/web/assets/po-BNFx8QMG.js +1 -0
  238. package/dist/web/assets/poimandres-DdZFFINT.js +1 -0
  239. package/dist/web/assets/polar-DcGwqI2v.js +1 -0
  240. package/dist/web/assets/postcss-BgFCg0uM.js +1 -0
  241. package/dist/web/assets/powerquery-BNMZnWRc.js +1 -0
  242. package/dist/web/assets/powershell-CeNh_gMu.js +1 -0
  243. package/dist/web/assets/prisma-C4wKi9Xs.js +1 -0
  244. package/dist/web/assets/prolog-DcNkIfZZ.js +1 -0
  245. package/dist/web/assets/proto-BqsNb_Ru.js +1 -0
  246. package/dist/web/assets/pug-Bto41TjE.js +1 -0
  247. package/dist/web/assets/puppet-BLvi8DVC.js +1 -0
  248. package/dist/web/assets/purescript-B_tjgp5s.js +1 -0
  249. package/dist/web/assets/python-xLLWlBd0.js +1 -0
  250. package/dist/web/assets/qml-ho4_4Xgb.js +1 -0
  251. package/dist/web/assets/qmldir-CDe6ORFD.js +1 -0
  252. package/dist/web/assets/qss-CvW7b9vz.js +1 -0
  253. package/dist/web/assets/r--Sz1Q0FM.js +1 -0
  254. package/dist/web/assets/racket-CA2oKVL1.js +1 -0
  255. package/dist/web/assets/raku-D9dEetfn.js +1 -0
  256. package/dist/web/assets/razor-WXl8b_YY.js +1 -0
  257. package/dist/web/assets/red-Cj1vpJ_n.js +1 -0
  258. package/dist/web/assets/reg-CHsE82Pk.js +1 -0
  259. package/dist/web/assets/regexp-DUE6rypx.js +1 -0
  260. package/dist/web/assets/rel-SUS6CYTF.js +1 -0
  261. package/dist/web/assets/riscv-xyAKa3qa.js +1 -0
  262. package/dist/web/assets/ron-D5BrJbC5.js +1 -0
  263. package/dist/web/assets/rose-pine-Dd0RAvir.js +1 -0
  264. package/dist/web/assets/rose-pine-dawn-CeS_2jlO.js +1 -0
  265. package/dist/web/assets/rose-pine-moon-CQrvtQEF.js +1 -0
  266. package/dist/web/assets/rosmsg-Bie95NPX.js +1 -0
  267. package/dist/web/assets/rst-DkJSw7_Y.js +1 -0
  268. package/dist/web/assets/ruby-_Sh_aFYD.js +1 -0
  269. package/dist/web/assets/rust-CAON_J-7.js +1 -0
  270. package/dist/web/assets/sas-13IHS7Fv.js +1 -0
  271. package/dist/web/assets/sass-CKkv3rB4.js +1 -0
  272. package/dist/web/assets/scala-BADlfUbE.js +1 -0
  273. package/dist/web/assets/scheme-Bv8vdcS_.js +1 -0
  274. package/dist/web/assets/scss-C2joWo5i.js +1 -0
  275. package/dist/web/assets/sdbl-TUdAkzzL.js +1 -0
  276. package/dist/web/assets/shaderlab-C5utLNvK.js +1 -0
  277. package/dist/web/assets/shellscript-CL9rM-ya.js +1 -0
  278. package/dist/web/assets/shellsession-JHnzUcOM.js +1 -0
  279. package/dist/web/assets/slack-dark-BeQrlvP4.js +1 -0
  280. package/dist/web/assets/slack-ochin-DaA1aBiy.js +1 -0
  281. package/dist/web/assets/smalltalk-C1k1DVft.js +1 -0
  282. package/dist/web/assets/snazzy-light-C9Bzvwcg.js +1 -0
  283. package/dist/web/assets/solarized-dark--ZJpQY8O.js +1 -0
  284. package/dist/web/assets/solarized-light-wzNWfjF2.js +1 -0
  285. package/dist/web/assets/solidity-CaEDdWYR.js +1 -0
  286. package/dist/web/assets/soy-CRs456kY.js +1 -0
  287. package/dist/web/assets/sparql-nVt1Q8sD.js +1 -0
  288. package/dist/web/assets/splunk-mpBjmHRA.js +1 -0
  289. package/dist/web/assets/sql-D3olAuIn.js +1 -0
  290. package/dist/web/assets/ssh-config-DqmSAS3N.js +1 -0
  291. package/dist/web/assets/stata-BpkjrLm4.js +1 -0
  292. package/dist/web/assets/stylus-mNYBrtqL.js +1 -0
  293. package/dist/web/assets/surrealql-IlrfCY8d.js +1 -0
  294. package/dist/web/assets/svelte-DQv8t-mw.js +1 -0
  295. package/dist/web/assets/swift-BXoR6L-y.js +1 -0
  296. package/dist/web/assets/synthwave-84-ybvkLGau.js +1 -0
  297. package/dist/web/assets/system-verilog-BnyrpGlO.js +1 -0
  298. package/dist/web/assets/systemd-BBVr_qxh.js +1 -0
  299. package/dist/web/assets/talonscript-l0qUQn2r.js +1 -0
  300. package/dist/web/assets/tasl-BzcMwPTS.js +1 -0
  301. package/dist/web/assets/tcl-CQgtyMkG.js +1 -0
  302. package/dist/web/assets/templ-Bp2dIvVe.js +1 -0
  303. package/dist/web/assets/terraform-BgPqtSWN.js +1 -0
  304. package/dist/web/assets/tex-B8RHQP-Y.js +1 -0
  305. package/dist/web/assets/tokyo-night-BZt2NwCl.js +1 -0
  306. package/dist/web/assets/toml-CpHBCfVl.js +1 -0
  307. package/dist/web/assets/ts-tags-oyLXflsR.js +1 -0
  308. package/dist/web/assets/tsv-DYxH1-vL.js +1 -0
  309. package/dist/web/assets/tsx-B27NkFmj.js +1 -0
  310. package/dist/web/assets/turtle-DdFFvP5J.js +1 -0
  311. package/dist/web/assets/twig-CDbKrLkG.js +1 -0
  312. package/dist/web/assets/typescript-CLqSrtA6.js +1 -0
  313. package/dist/web/assets/typespec-CHOxKRtr.js +1 -0
  314. package/dist/web/assets/typst-C0VS9TQm.js +1 -0
  315. package/dist/web/assets/v-CfOPGXPl.js +1 -0
  316. package/dist/web/assets/vala-DYqHmNOK.js +1 -0
  317. package/dist/web/assets/vb-DUBgqZ02.js +1 -0
  318. package/dist/web/assets/verilog-BxybH_AY.js +1 -0
  319. package/dist/web/assets/vesper-BDlBlJR-.js +1 -0
  320. package/dist/web/assets/vhdl-DBoxxi7I.js +1 -0
  321. package/dist/web/assets/viml-C8vROCgw.js +1 -0
  322. package/dist/web/assets/vitesse-black-CUBzmgJa.js +1 -0
  323. package/dist/web/assets/vitesse-dark-COrLBgkv.js +1 -0
  324. package/dist/web/assets/vitesse-light-ThZGgLQK.js +1 -0
  325. package/dist/web/assets/vue-CBc0NYxi.js +1 -0
  326. package/dist/web/assets/vue-html-DAC5It2s.js +1 -0
  327. package/dist/web/assets/vue-vine-Ca88ub2E.js +1 -0
  328. package/dist/web/assets/vyper-D08CaD4o.js +1 -0
  329. package/dist/web/assets/{wasm-CG6Dc4jp.js → wasm-CTxiiVQP.js} +1 -1
  330. package/dist/web/assets/wasm-CoVafRYN.js +1 -0
  331. package/dist/web/assets/wenyan-GlRgAbTB.js +1 -0
  332. package/dist/web/assets/wgsl-BmWpQFqb.js +1 -0
  333. package/dist/web/assets/wikitext-Axug2vPC.js +1 -0
  334. package/dist/web/assets/wit-Dk1fPIaK.js +1 -0
  335. package/dist/web/assets/wolfram-DMhXlmnL.js +1 -0
  336. package/dist/web/assets/xml-9fjewzMs.js +1 -0
  337. package/dist/web/assets/xsl-B4mp4iKt.js +1 -0
  338. package/dist/web/assets/yaml-25DfloRA.js +1 -0
  339. package/dist/web/assets/zenscript-x7PXwj2_.js +1 -0
  340. package/dist/web/assets/zig-BlD2NI35.js +1 -0
  341. package/dist/web/index.html +2 -2
  342. package/images/architecture.png +0 -0
  343. package/images/flow.png +0 -0
  344. package/images/protocol.png +0 -0
  345. package/package.json +28 -26
  346. package/dist/web/assets/abap-BdImnpbu.js +0 -1
  347. package/dist/web/assets/actionscript-3-CoDkCxhg.js +0 -1
  348. package/dist/web/assets/ada-bCR0ucgS.js +0 -1
  349. package/dist/web/assets/andromeeda-C4gqWexZ.js +0 -1
  350. package/dist/web/assets/angular-html-DMxchsRu.js +0 -1
  351. package/dist/web/assets/angular-ts-DzOHUlBM.js +0 -1
  352. package/dist/web/assets/apache-Pmp26Uib.js +0 -1
  353. package/dist/web/assets/apex-D8_7TLub.js +0 -1
  354. package/dist/web/assets/apl-dKokRX4l.js +0 -1
  355. package/dist/web/assets/applescript-Co6uUVPk.js +0 -1
  356. package/dist/web/assets/ara-BRHolxvo.js +0 -1
  357. package/dist/web/assets/asciidoc-Ve4PFQV2.js +0 -1
  358. package/dist/web/assets/asm-D_Q5rh1f.js +0 -1
  359. package/dist/web/assets/astro-CbQHKStN.js +0 -1
  360. package/dist/web/assets/aurora-x-D-2ljcwZ.js +0 -1
  361. package/dist/web/assets/awk-DMzUqQB5.js +0 -1
  362. package/dist/web/assets/ayu-dark-DYE7WIF3.js +0 -1
  363. package/dist/web/assets/ayu-light-BA47KaF1.js +0 -1
  364. package/dist/web/assets/ayu-mirage-32ctXXKs.js +0 -1
  365. package/dist/web/assets/ballerina-BFfxhgS-.js +0 -1
  366. package/dist/web/assets/bat-BkioyH1T.js +0 -1
  367. package/dist/web/assets/beancount-k_qm7-4y.js +0 -1
  368. package/dist/web/assets/berry-uYugtg8r.js +0 -1
  369. package/dist/web/assets/bibtex-CHM0blh-.js +0 -1
  370. package/dist/web/assets/bicep-Bmn6On1c.js +0 -1
  371. package/dist/web/assets/bird2-DPOp833l.js +0 -1
  372. package/dist/web/assets/blade-D4QpJJKB.js +0 -1
  373. package/dist/web/assets/bsl-BO_Y6i37.js +0 -1
  374. package/dist/web/assets/c-BIGW1oBm.js +0 -1
  375. package/dist/web/assets/c3-eo99z4R2.js +0 -1
  376. package/dist/web/assets/cadence-Bv_4Rxtq.js +0 -1
  377. package/dist/web/assets/cairo-KRGpt6FW.js +0 -1
  378. package/dist/web/assets/catppuccin-frappe-DFWUc33u.js +0 -1
  379. package/dist/web/assets/catppuccin-latte-C9dUb6Cb.js +0 -1
  380. package/dist/web/assets/catppuccin-macchiato-DQyhUUbL.js +0 -1
  381. package/dist/web/assets/catppuccin-mocha-D87Tk5Gz.js +0 -1
  382. package/dist/web/assets/clarity-D53aC0YG.js +0 -1
  383. package/dist/web/assets/clojure-P80f7IUj.js +0 -1
  384. package/dist/web/assets/cmake-D1j8_8rp.js +0 -1
  385. package/dist/web/assets/cobol-nwyudZeR.js +0 -1
  386. package/dist/web/assets/codeowners-Bp6g37R7.js +0 -1
  387. package/dist/web/assets/codeql-DsOJ9woJ.js +0 -1
  388. package/dist/web/assets/coffee-Ch7k5sss.js +0 -1
  389. package/dist/web/assets/common-lisp-Cg-RD9OK.js +0 -1
  390. package/dist/web/assets/coq-DkFqJrB1.js +0 -1
  391. package/dist/web/assets/cpp-CofmeUqb.js +0 -1
  392. package/dist/web/assets/crystal-tKQVLTB8.js +0 -1
  393. package/dist/web/assets/csharp-COcwbKMJ.js +0 -1
  394. package/dist/web/assets/css-DPfMkruS.js +0 -1
  395. package/dist/web/assets/csv-fuZLfV_i.js +0 -1
  396. package/dist/web/assets/cue-D82EKSYY.js +0 -1
  397. package/dist/web/assets/cypher-COkxafJQ.js +0 -1
  398. package/dist/web/assets/d-85-TOEBH.js +0 -1
  399. package/dist/web/assets/dark-plus-C3mMm8J8.js +0 -1
  400. package/dist/web/assets/dart-CF10PKvl.js +0 -1
  401. package/dist/web/assets/dax-CEL-wOlO.js +0 -1
  402. package/dist/web/assets/desktop-BmXAJ9_W.js +0 -1
  403. package/dist/web/assets/diff-D97Zzqfu.js +0 -1
  404. package/dist/web/assets/docker-BcOcwvcX.js +0 -1
  405. package/dist/web/assets/dotenv-Da5cRb03.js +0 -1
  406. package/dist/web/assets/dracula-BzJJZx-M.js +0 -1
  407. package/dist/web/assets/dracula-soft-BXkSAIEj.js +0 -1
  408. package/dist/web/assets/dream-maker-BtqSS_iP.js +0 -1
  409. package/dist/web/assets/edge-BkV0erSs.js +0 -1
  410. package/dist/web/assets/elixir-CDX3lj18.js +0 -1
  411. package/dist/web/assets/elm-DbKCFpqz.js +0 -1
  412. package/dist/web/assets/emacs-lisp-C9XAeP06.js +0 -1
  413. package/dist/web/assets/erb-B12qg9BL.js +0 -1
  414. package/dist/web/assets/erlang-DsQrWhSR.js +0 -1
  415. package/dist/web/assets/everforest-dark-BgDCqdQA.js +0 -1
  416. package/dist/web/assets/everforest-light-C8M2exoo.js +0 -1
  417. package/dist/web/assets/fennel-BYunw83y.js +0 -1
  418. package/dist/web/assets/fish-BvzEVeQv.js +0 -1
  419. package/dist/web/assets/fluent-C4IJs8-o.js +0 -1
  420. package/dist/web/assets/fortran-fixed-form-CkoXwp7k.js +0 -1
  421. package/dist/web/assets/fortran-free-form-BxgE0vQu.js +0 -1
  422. package/dist/web/assets/fsharp-CXgrBDvD.js +0 -1
  423. package/dist/web/assets/gdresource-BOOCDP_w.js +0 -1
  424. package/dist/web/assets/gdscript-C5YyOfLZ.js +0 -1
  425. package/dist/web/assets/gdshader-DkwncUOv.js +0 -1
  426. package/dist/web/assets/genie-D0YGMca9.js +0 -1
  427. package/dist/web/assets/gherkin-DyxjwDmM.js +0 -1
  428. package/dist/web/assets/git-commit-F4YmCXRG.js +0 -1
  429. package/dist/web/assets/git-rebase-r7XF79zn.js +0 -1
  430. package/dist/web/assets/github-dark-DHJKELXO.js +0 -1
  431. package/dist/web/assets/github-dark-default-Cuk6v7N8.js +0 -1
  432. package/dist/web/assets/github-dark-dimmed-DH5Ifo-i.js +0 -1
  433. package/dist/web/assets/github-dark-high-contrast-E3gJ1_iC.js +0 -1
  434. package/dist/web/assets/github-light-DAi9KRSo.js +0 -1
  435. package/dist/web/assets/github-light-default-D7oLnXFd.js +0 -1
  436. package/dist/web/assets/github-light-high-contrast-BfjtVDDH.js +0 -1
  437. package/dist/web/assets/gleam-BspZqrRM.js +0 -1
  438. package/dist/web/assets/glimmer-js-Rg0-pVw9.js +0 -1
  439. package/dist/web/assets/glimmer-ts-U6CK756n.js +0 -1
  440. package/dist/web/assets/glsl-DplSGwfg.js +0 -1
  441. package/dist/web/assets/gn-n2N0HUVH.js +0 -1
  442. package/dist/web/assets/gnuplot-DdkO51Og.js +0 -1
  443. package/dist/web/assets/go-CxLEBnE3.js +0 -1
  444. package/dist/web/assets/graphql-ChdNCCLP.js +0 -1
  445. package/dist/web/assets/groovy-gcz8RCvz.js +0 -1
  446. package/dist/web/assets/gruvbox-dark-hard-CFHQjOhq.js +0 -1
  447. package/dist/web/assets/gruvbox-dark-medium-GsRaNv29.js +0 -1
  448. package/dist/web/assets/gruvbox-dark-soft-CVdnzihN.js +0 -1
  449. package/dist/web/assets/gruvbox-light-hard-CH1njM8p.js +0 -1
  450. package/dist/web/assets/gruvbox-light-medium-DRw_LuNl.js +0 -1
  451. package/dist/web/assets/gruvbox-light-soft-hJgmCMqR.js +0 -1
  452. package/dist/web/assets/hack-CaT9iCJl.js +0 -1
  453. package/dist/web/assets/handlebars-BL8al0AC.js +0 -1
  454. package/dist/web/assets/haskell-Df6bDoY_.js +0 -1
  455. package/dist/web/assets/haxe-CzTSHFRz.js +0 -1
  456. package/dist/web/assets/hcl-BWvSN4gD.js +0 -1
  457. package/dist/web/assets/hjson-D5-asLiD.js +0 -1
  458. package/dist/web/assets/hlsl-D3lLCCz7.js +0 -1
  459. package/dist/web/assets/horizon-BUw7H-hv.js +0 -1
  460. package/dist/web/assets/horizon-bright-Cn-bp-IR.js +0 -1
  461. package/dist/web/assets/houston-DnULxvSX.js +0 -1
  462. package/dist/web/assets/html-derivative-BFtXZ54Q.js +0 -1
  463. package/dist/web/assets/http-jrhK8wxY.js +0 -1
  464. package/dist/web/assets/hurl-irOxFIW8.js +0 -1
  465. package/dist/web/assets/hxml-Bvhsp5Yf.js +0 -1
  466. package/dist/web/assets/hy-DFXneXwc.js +0 -1
  467. package/dist/web/assets/imba-DGztddWO.js +0 -1
  468. package/dist/web/assets/index-B4-Q-CcM.js +0 -88
  469. package/dist/web/assets/index-DtQV41FL.css +0 -1
  470. package/dist/web/assets/ini-BEwlwnbL.js +0 -1
  471. package/dist/web/assets/java-CylS5w8V.js +0 -1
  472. package/dist/web/assets/javascript-wDzz0qaB.js +0 -1
  473. package/dist/web/assets/jinja-4LBKfQ-Z.js +0 -1
  474. package/dist/web/assets/jison-wvAkD_A8.js +0 -1
  475. package/dist/web/assets/json-Cp-IABpG.js +0 -1
  476. package/dist/web/assets/json5-C9tS-k6U.js +0 -1
  477. package/dist/web/assets/jsonc-Des-eS-w.js +0 -1
  478. package/dist/web/assets/jsonl-DcaNXYhu.js +0 -1
  479. package/dist/web/assets/jsonnet-DFQXde-d.js +0 -1
  480. package/dist/web/assets/jssm-C2t-YnRu.js +0 -1
  481. package/dist/web/assets/jsx-g9-lgVsj.js +0 -1
  482. package/dist/web/assets/julia-CxzCAyBv.js +0 -1
  483. package/dist/web/assets/just-Cw27pwNe.js +0 -1
  484. package/dist/web/assets/kanagawa-dragon-CkXjmgJE.js +0 -1
  485. package/dist/web/assets/kanagawa-lotus-CfQXZHmo.js +0 -1
  486. package/dist/web/assets/kanagawa-wave-DWedfzmr.js +0 -1
  487. package/dist/web/assets/kdl-DV7GczEv.js +0 -1
  488. package/dist/web/assets/kotlin-BdnUsdx6.js +0 -1
  489. package/dist/web/assets/kusto-DZf3V79B.js +0 -1
  490. package/dist/web/assets/laserwave-DUszq2jm.js +0 -1
  491. package/dist/web/assets/latex-CWtU0Tv5.js +0 -1
  492. package/dist/web/assets/lean-BZvkOJ9d.js +0 -1
  493. package/dist/web/assets/less-B1dDrJ26.js +0 -1
  494. package/dist/web/assets/light-plus-B7mTdjB0.js +0 -1
  495. package/dist/web/assets/liquid-DYVedYrR.js +0 -1
  496. package/dist/web/assets/llvm-DjAJT7YJ.js +0 -1
  497. package/dist/web/assets/log-2UxHyX5q.js +0 -1
  498. package/dist/web/assets/logo-BtOb2qkB.js +0 -1
  499. package/dist/web/assets/lua-BaeVxFsk.js +0 -1
  500. package/dist/web/assets/luau-C-HG3fhB.js +0 -1
  501. package/dist/web/assets/make-CHLpvVh8.js +0 -1
  502. package/dist/web/assets/markdown-Cvjx9yec.js +0 -1
  503. package/dist/web/assets/marko-CnJfTvn9.js +0 -1
  504. package/dist/web/assets/material-theme-D5KoaKCx.js +0 -1
  505. package/dist/web/assets/material-theme-darker-BfHTSMKl.js +0 -1
  506. package/dist/web/assets/material-theme-lighter-B0m2ddpp.js +0 -1
  507. package/dist/web/assets/material-theme-ocean-CyktbL80.js +0 -1
  508. package/dist/web/assets/material-theme-palenight-Csfq5Kiy.js +0 -1
  509. package/dist/web/assets/matlab-D7o27uSR.js +0 -1
  510. package/dist/web/assets/mdc-BMNejdWA.js +0 -1
  511. package/dist/web/assets/mdx-Cmh6b_Ma.js +0 -1
  512. package/dist/web/assets/mermaid-mWjccvbQ.js +0 -1
  513. package/dist/web/assets/min-dark-CafNBF8u.js +0 -1
  514. package/dist/web/assets/min-light-CTRr51gU.js +0 -1
  515. package/dist/web/assets/mipsasm-CKIfxQSi.js +0 -1
  516. package/dist/web/assets/mojo-rZm6bMo-.js +0 -1
  517. package/dist/web/assets/monokai-D4h5O-jR.js +0 -1
  518. package/dist/web/assets/moonbit-_H4v1dQx.js +0 -1
  519. package/dist/web/assets/move-IF9eRakj.js +0 -1
  520. package/dist/web/assets/narrat-DRg8JJMk.js +0 -1
  521. package/dist/web/assets/nextflow-Zz6hmt5N.js +0 -1
  522. package/dist/web/assets/nextflow-groovy-BeH2EWoN.js +0 -1
  523. package/dist/web/assets/nginx-BpAMiNFr.js +0 -1
  524. package/dist/web/assets/night-owl-C39BiMTA.js +0 -1
  525. package/dist/web/assets/night-owl-light-CMTm3GFP.js +0 -1
  526. package/dist/web/assets/nim-CVrawwO9.js +0 -1
  527. package/dist/web/assets/nix-CwoSXNpI.js +0 -1
  528. package/dist/web/assets/nord-Ddv68eIx.js +0 -1
  529. package/dist/web/assets/nushell-Cz2AlsmD.js +0 -1
  530. package/dist/web/assets/objective-c-DXmwc3jG.js +0 -1
  531. package/dist/web/assets/objective-cpp-CLxacb5B.js +0 -1
  532. package/dist/web/assets/ocaml-C0hk2d4L.js +0 -1
  533. package/dist/web/assets/odin-BBf5iR-q.js +0 -1
  534. package/dist/web/assets/one-dark-pro-DVMEJ2y_.js +0 -1
  535. package/dist/web/assets/one-light-C3Wv6jpd.js +0 -1
  536. package/dist/web/assets/openscad-C4EeE6gA.js +0 -1
  537. package/dist/web/assets/pascal-D93ZcfNL.js +0 -1
  538. package/dist/web/assets/perl-C0TMdlhV.js +0 -1
  539. package/dist/web/assets/php-Dhbhpdrm.js +0 -1
  540. package/dist/web/assets/pkl-u5AG7uiY.js +0 -1
  541. package/dist/web/assets/plastic-3e1v2bzS.js +0 -1
  542. package/dist/web/assets/plsql-ChMvpjG-.js +0 -1
  543. package/dist/web/assets/po-BTJTHyun.js +0 -1
  544. package/dist/web/assets/poimandres-CS3Unz2-.js +0 -1
  545. package/dist/web/assets/polar-C0HS_06l.js +0 -1
  546. package/dist/web/assets/postcss-CXtECtnM.js +0 -1
  547. package/dist/web/assets/powerquery-CEu0bR-o.js +0 -1
  548. package/dist/web/assets/powershell-Dpen1YoG.js +0 -1
  549. package/dist/web/assets/prisma-Dd19v3D-.js +0 -1
  550. package/dist/web/assets/prolog-CbFg5uaA.js +0 -1
  551. package/dist/web/assets/proto-C7zT0LnQ.js +0 -1
  552. package/dist/web/assets/pug-CGlum2m_.js +0 -1
  553. package/dist/web/assets/puppet-BMWR74SV.js +0 -1
  554. package/dist/web/assets/purescript-CklMAg4u.js +0 -1
  555. package/dist/web/assets/python-B6aJPvgy.js +0 -1
  556. package/dist/web/assets/qml-3beO22l8.js +0 -1
  557. package/dist/web/assets/qmldir-C8lEn-DE.js +0 -1
  558. package/dist/web/assets/qss-IeuSbFQv.js +0 -1
  559. package/dist/web/assets/r-Dspwwk_N.js +0 -1
  560. package/dist/web/assets/racket-BqYA7rlc.js +0 -1
  561. package/dist/web/assets/raku-DXvB9xmW.js +0 -1
  562. package/dist/web/assets/razor-Uh8Bk_45.js +0 -1
  563. package/dist/web/assets/red-bN70gL4F.js +0 -1
  564. package/dist/web/assets/reg-C-SQnVFl.js +0 -1
  565. package/dist/web/assets/regexp-CDVJQ6XC.js +0 -1
  566. package/dist/web/assets/rel-C3B-1QV4.js +0 -1
  567. package/dist/web/assets/riscv-BM1_JUlF.js +0 -1
  568. package/dist/web/assets/ron-D8l8udqQ.js +0 -1
  569. package/dist/web/assets/rose-pine-dawn-DHQR4-dF.js +0 -1
  570. package/dist/web/assets/rose-pine-moon-D4_iv3hh.js +0 -1
  571. package/dist/web/assets/rose-pine-qdsjHGoJ.js +0 -1
  572. package/dist/web/assets/rosmsg-BJDFO7_C.js +0 -1
  573. package/dist/web/assets/rst-BrH8l1NY.js +0 -1
  574. package/dist/web/assets/ruby-Dw2BHqvy.js +0 -1
  575. package/dist/web/assets/rust-B1yitclQ.js +0 -1
  576. package/dist/web/assets/sas-cz2c8ADy.js +0 -1
  577. package/dist/web/assets/sass-Cj5Yp3dK.js +0 -1
  578. package/dist/web/assets/scala-C151Ov-r.js +0 -1
  579. package/dist/web/assets/scheme-C98Dy4si.js +0 -1
  580. package/dist/web/assets/scss-OYdSNvt2.js +0 -1
  581. package/dist/web/assets/sdbl-DVxCFoDh.js +0 -1
  582. package/dist/web/assets/shaderlab-Dg9Lc6iA.js +0 -1
  583. package/dist/web/assets/shellscript-Yzrsuije.js +0 -1
  584. package/dist/web/assets/shellsession-BADoaaVG.js +0 -1
  585. package/dist/web/assets/slack-dark-BthQWCQV.js +0 -1
  586. package/dist/web/assets/slack-ochin-DqwNpetd.js +0 -1
  587. package/dist/web/assets/smalltalk-BERRCDM3.js +0 -1
  588. package/dist/web/assets/snazzy-light-Bw305WKR.js +0 -1
  589. package/dist/web/assets/solarized-dark-DXbdFlpD.js +0 -1
  590. package/dist/web/assets/solarized-light-L9t79GZl.js +0 -1
  591. package/dist/web/assets/solidity-rGO070M0.js +0 -1
  592. package/dist/web/assets/soy-Brmx7dQM.js +0 -1
  593. package/dist/web/assets/sparql-rVzFXLq3.js +0 -1
  594. package/dist/web/assets/splunk-BtCnVYZw.js +0 -1
  595. package/dist/web/assets/sql-BLtJtn59.js +0 -1
  596. package/dist/web/assets/ssh-config-_ykCGR6B.js +0 -1
  597. package/dist/web/assets/stata-BH5u7GGu.js +0 -1
  598. package/dist/web/assets/stylus-BEDo0Tqx.js +0 -1
  599. package/dist/web/assets/surrealql-Bq5Q-fJD.js +0 -1
  600. package/dist/web/assets/svelte-C_ipcX3V.js +0 -1
  601. package/dist/web/assets/swift-D82vCrfD.js +0 -1
  602. package/dist/web/assets/synthwave-84-CbfX1IO0.js +0 -1
  603. package/dist/web/assets/system-verilog-CnnmHF94.js +0 -1
  604. package/dist/web/assets/systemd-4A_iFExJ.js +0 -1
  605. package/dist/web/assets/talonscript-CkByrt1z.js +0 -1
  606. package/dist/web/assets/tasl-QIJgUcNo.js +0 -1
  607. package/dist/web/assets/tcl-dwOrl1Do.js +0 -1
  608. package/dist/web/assets/templ-P3uqSqPl.js +0 -1
  609. package/dist/web/assets/terraform-BETggiCN.js +0 -1
  610. package/dist/web/assets/tex-idrVyKtj.js +0 -1
  611. package/dist/web/assets/tokyo-night-hegEt444.js +0 -1
  612. package/dist/web/assets/toml-vGWfd6FD.js +0 -1
  613. package/dist/web/assets/ts-tags-zn1MmPIZ.js +0 -1
  614. package/dist/web/assets/tsv-B_m7g4N7.js +0 -1
  615. package/dist/web/assets/tsx-COt5Ahok.js +0 -1
  616. package/dist/web/assets/turtle-BsS91CYL.js +0 -1
  617. package/dist/web/assets/twig-DNn4PbVi.js +0 -1
  618. package/dist/web/assets/typescript-BPQ3VLAy.js +0 -1
  619. package/dist/web/assets/typespec-BGHnOYBU.js +0 -1
  620. package/dist/web/assets/typst-DHCkPAjA.js +0 -1
  621. package/dist/web/assets/v-BcVCzyr7.js +0 -1
  622. package/dist/web/assets/vala-CsfeWuGM.js +0 -1
  623. package/dist/web/assets/vb-D17OF-Vu.js +0 -1
  624. package/dist/web/assets/verilog-BQ8w6xss.js +0 -1
  625. package/dist/web/assets/vesper-DU1UobuO.js +0 -1
  626. package/dist/web/assets/vhdl-CeAyd5Ju.js +0 -1
  627. package/dist/web/assets/viml-CJc9bBzg.js +0 -1
  628. package/dist/web/assets/vitesse-black-Bkuqu6BP.js +0 -1
  629. package/dist/web/assets/vitesse-dark-D0r3Knsf.js +0 -1
  630. package/dist/web/assets/vitesse-light-CVO1_9PV.js +0 -1
  631. package/dist/web/assets/vue-DN_0RTcg.js +0 -1
  632. package/dist/web/assets/vue-html-AaS7Mt5G.js +0 -1
  633. package/dist/web/assets/vue-vine-CQOfvN7w.js +0 -1
  634. package/dist/web/assets/vyper-CDx5xZoG.js +0 -1
  635. package/dist/web/assets/wasm-MzD3tlZU.js +0 -1
  636. package/dist/web/assets/wenyan-BV7otONQ.js +0 -1
  637. package/dist/web/assets/wgsl-Dx-B1_4e.js +0 -1
  638. package/dist/web/assets/wikitext-BhOHFoWU.js +0 -1
  639. package/dist/web/assets/wit-5i3qLPDT.js +0 -1
  640. package/dist/web/assets/wolfram-lXgVvXCa.js +0 -1
  641. package/dist/web/assets/xml-sdJ4AIDG.js +0 -1
  642. package/dist/web/assets/xsl-CtQFsRM5.js +0 -1
  643. package/dist/web/assets/yaml-Buea-lGh.js +0 -1
  644. package/dist/web/assets/zenscript-DVFEvuxE.js +0 -1
  645. package/dist/web/assets/zig-VOosw3JB.js +0 -1
@@ -0,0 +1,27 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-yQleOZR_.js","assets/html-5jufwj83.js","assets/css-C6IA-Mby.js","assets/javascript-DaqIOllZ.js","assets/angular-ts-CNLtkSah.js","assets/scss-C2joWo5i.js","assets/apl-BPLo_IWv.js","assets/json-hCh8arpt.js","assets/xml-9fjewzMs.js","assets/java-BAnULpY2.js","assets/astro-DhskwrBd.js","assets/postcss-BgFCg0uM.js","assets/tsx-B27NkFmj.js","assets/typescript-CLqSrtA6.js","assets/blade-DkApxyPN.js","assets/html-derivative-CcTbsN0W.js","assets/sql-D3olAuIn.js","assets/bsl-BRmzGEWg.js","assets/sdbl-TUdAkzzL.js","assets/cairo-CaIu88t6.js","assets/python-xLLWlBd0.js","assets/cobol-CqUv7Fx7.js","assets/coffee-qCane8NK.js","assets/cpp-BKSa3oke.js","assets/glsl-DGUY5pWj.js","assets/c-B5rzbwvf.js","assets/regexp-DUE6rypx.js","assets/crystal-CkR_ZpXj.js","assets/shellscript-CL9rM-ya.js","assets/edge-pdIcE-A_.js","assets/elixir-BESKS8rl.js","assets/elm-BkW2o9SB.js","assets/erb-B6dO5BAV.js","assets/ruby-_Sh_aFYD.js","assets/graphql-BbFjoNY9.js","assets/jsx-DYtKZveK.js","assets/haml-EMli3a_F.js","assets/lua-BT_CXFE-.js","assets/yaml-25DfloRA.js","assets/erlang-LvhGhZI3.js","assets/markdown-hfQzyr6v.js","assets/fortran-fixed-form-BXvkHMbK.js","assets/fortran-free-form-Bw_JZ1tj.js","assets/fsharp-uxIU8dwY.js","assets/gdresource-DkI-mZL2.js","assets/gdscript-DDro0rs8.js","assets/gdshader-DkUeC1ld.js","assets/git-commit-a3TktZ3A.js","assets/diff-B7rhrwA5.js","assets/git-rebase-SoCRyKE3.js","assets/glimmer-js-DDelvNKZ.js","assets/glimmer-ts-Bpla8usy.js","assets/hack-C0u1uES4.js","assets/handlebars-CgyLD371.js","assets/http-3Uglmg2r.js","assets/hurl-BL5NhXQh.js","assets/csv-DGwgERVJ.js","assets/hxml-Bdi_kWeE.js","assets/haxe-wLDEcRoz.js","assets/jinja-BT3KhNVn.js","assets/jison-oGVXVqLv.js","assets/julia-D1Q0Afi_.js","assets/r--Sz1Q0FM.js","assets/just-DE210FW5.js","assets/perl--NvfdBGv.js","assets/latex-QgW6KjGR.js","assets/tex-B8RHQP-Y.js","assets/liquid-cMVZ3T4B.js","assets/marko-BqTjigl2.js","assets/less-B9RQiV1N.js","assets/mdc-wzjOwpPF.js","assets/nextflow-DXxhyYjQ.js","assets/nextflow-groovy-CUrXbMOF.js","assets/nginx-DVjk8fbM.js","assets/nim-RSsaDBI7.js","assets/php-C7tUxnL4.js","assets/pug-Bto41TjE.js","assets/qml-ho4_4Xgb.js","assets/razor-WXl8b_YY.js","assets/csharp-Kzd7Ey2d.js","assets/rst-DkJSw7_Y.js","assets/cmake-DM0FE-T9.js","assets/sas-13IHS7Fv.js","assets/shaderlab-C5utLNvK.js","assets/hlsl-JhqkHhML.js","assets/shellsession-JHnzUcOM.js","assets/soy-CRs456kY.js","assets/sparql-nVt1Q8sD.js","assets/turtle-DdFFvP5J.js","assets/stata-BpkjrLm4.js","assets/surrealql-IlrfCY8d.js","assets/svelte-DQv8t-mw.js","assets/templ-Bp2dIvVe.js","assets/go-TqNfhUhh.js","assets/ts-tags-oyLXflsR.js","assets/twig-CDbKrLkG.js","assets/vue-CBc0NYxi.js","assets/vue-html-DAC5It2s.js","assets/vue-vine-Ca88ub2E.js","assets/stylus-mNYBrtqL.js","assets/xsl-B4mp4iKt.js"])))=>i.map(i=>d[i]);
2
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var d=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function ee(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function M(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,M(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),M(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=M(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=M(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return M(ee(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function N(e,t,n){if(e==null)return e;var r=[],i=0;return M(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function te(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var P=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},F={map:N,forEach:function(e,t,n){N(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return N(e,function(){t++}),t},toArray:function(e){return N(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=F,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:te}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,P)}catch(e){P(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.6`})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),m=o(((e,t)=>{t.exports=p()})),h=o((e=>{var t=f();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;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.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.6`})),g=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=o((e=>{var t=m(),n=f(),r=g();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;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.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(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 s(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 c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var p=Object.assign,h=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function ee(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var M=Symbol.for(`react.client.reference`);function N(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===M?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?N(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return N(e(t))}catch{}}return null}var te=Array.isArray,P=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},re=[],ie=-1;function I(e){return{current:e}}function L(e){0>ie||(e.current=re[ie],re[ie]=null,ie--)}function R(e,t){ie++,re[ie]=e.current,e.current=t}var ae=I(null),oe=I(null),se=I(null),ce=I(null);function le(e,t){switch(R(se,t),R(oe,e),R(ae,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}L(ae),R(ae,e)}function ue(){L(ae),L(oe),L(se)}function de(e){e.memoizedState!==null&&R(ce,e);var t=ae.current,n=Wd(t,e.type);t!==n&&(R(oe,e),R(ae,n))}function fe(e){oe.current===e&&(L(ae),L(oe)),ce.current===e&&(L(ce),ep._currentValue=ne)}var pe,z;function me(e){if(pe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pe=t&&t[1]||``,z=-1<e.stack.indexOf(`
3
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
+ `+pe+e+z}var B=!1;function he(e,t){if(!e||B)return``;B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
5
+ `),l=s.split(`
6
+ `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
7
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{B=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?me(n):``}function ge(e,t){switch(e.tag){case 26:case 27:case 5:return me(e.type);case 16:return me(`Lazy`);case 13:return e.child!==t&&t!==null?me(`Suspense Fallback`):me(`Suspense`);case 19:return me(`SuspenseList`);case 0:case 15:return he(e.type,!1);case 11:return he(e.type.render,!1);case 1:return he(e.type,!0);case 31:return me(`Activity`);default:return``}}function _e(e){try{var t=``,n=null;do t+=ge(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
8
+ Error generating stack: `+e.message+`
9
+ `+e.stack}}var ve=Object.prototype.hasOwnProperty,ye=t.unstable_scheduleCallback,be=t.unstable_cancelCallback,xe=t.unstable_shouldYield,Se=t.unstable_requestPaint,Ce=t.unstable_now,we=t.unstable_getCurrentPriorityLevel,Te=t.unstable_ImmediatePriority,Ee=t.unstable_UserBlockingPriority,De=t.unstable_NormalPriority,Oe=t.unstable_LowPriority,ke=t.unstable_IdlePriority,Ae=t.log,je=t.unstable_setDisableYieldValue,Me=null,Ne=null;function Pe(e){if(typeof Ae==`function`&&je(e),Ne&&typeof Ne.setStrictMode==`function`)try{Ne.setStrictMode(Me,e)}catch{}}var Fe=Math.clz32?Math.clz32:Re,Ie=Math.log,Le=Math.LN2;function Re(e){return e>>>=0,e===0?32:31-(Ie(e)/Le|0)|0}var ze=256,Be=262144,Ve=4194304;function He(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ue(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=He(n))):i=He(o):i=He(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=He(n))):i=He(o)):i=He(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function We(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ge(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ke(){var e=Ve;return Ve<<=1,!(Ve&62914560)&&(Ve=4194304),e}function qe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Je(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ye(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Fe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Xe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Xe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Fe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ze(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Fe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Qe(e,t){var n=t&-t;return n=n&42?1:$e(n),(n&(e.suspendedLanes|t))===0?n:0}function $e(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function et(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function tt(){var e=F.p;return e===0?(e=window.event,e===void 0?32:gp(e.type)):e}function nt(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var rt=Math.random().toString(36).slice(2),it=`__reactFiber$`+rt,at=`__reactProps$`+rt,ot=`__reactContainer$`+rt,st=`__reactEvents$`+rt,ct=`__reactListeners$`+rt,lt=`__reactHandles$`+rt,ut=`__reactResources$`+rt,dt=`__reactMarker$`+rt;function ft(e){delete e[it],delete e[at],delete e[st],delete e[ct],delete e[lt]}function pt(e){var t=e[it];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ot]||n[it]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pf(e);e!==null;){if(n=e[it])return n;e=pf(e)}return t}e=n,n=e.parentNode}return null}function mt(e){if(e=e[it]||e[ot]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ht(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function gt(e){var t=e[ut];return t||=e[ut]={hoistableStyles:new Map,hoistableScripts:new Map},t}function _t(e){e[dt]=!0}var vt=new Set,yt={};function bt(e,t){xt(e,t),xt(e+`Capture`,t)}function xt(e,t){for(yt[e]=t,e=0;e<t.length;e++)vt.add(t[e])}var St=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Ct={},wt={};function Tt(e){return ve.call(wt,e)?!0:ve.call(Ct,e)?!1:St.test(e)?wt[e]=!0:(Ct[e]=!0,!1)}function Et(e,t,n){if(Tt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function Dt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function Ot(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function kt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function At(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function jt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Mt(e){if(!e._valueTracker){var t=At(e)?`checked`:`value`;e._valueTracker=jt(e,t,``+e[t])}}function Nt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=At(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Pt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Ft=/[\n"\\]/g;function It(e){return e.replace(Ft,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Lt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+kt(t)):e.value!==``+kt(t)&&(e.value=``+kt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):zt(e,o,kt(n)):zt(e,o,kt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+kt(s):e.removeAttribute(`name`)}function Rt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Mt(e);return}n=n==null?``:``+kt(n),t=t==null?n:``+kt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Mt(e)}function zt(e,t,n){t===`number`&&Pt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Bt(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=``+kt(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 Vt(e,t,n){if(t!=null&&(t=``+kt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+kt(n)}function Ht(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(te(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=kt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Mt(e)}function Ut(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Gt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Wt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Kt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Gt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Gt(e,o,t[o])}function qt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Jt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Yt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Xt(e){return Yt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Zt(){}var Qt=null;function $t(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var en=null,tn=null;function nn(e){var t=mt(e);if(t&&(e=t.stateNode)){var n=e[at]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Lt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+It(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[at]||null;if(!a)throw Error(i(90));Lt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Nt(r)}break a;case`textarea`:Vt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Bt(e,!!n.multiple,t,!1)}}}var rn=!1;function an(e,t,n){if(rn)return e(t,n);rn=!0;try{return e(t)}finally{if(rn=!1,(en!==null||tn!==null)&&(bu(),en&&(t=en,e=tn,tn=en=null,nn(t),e)))for(t=0;t<e.length;t++)nn(e[t])}}function on(e,t){var n=e.stateNode;if(n===null)return null;var r=n[at]||null;if(r===null)return null;n=r[t];a: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 a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var sn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),cn=!1;if(sn)try{var ln={};Object.defineProperty(ln,`passive`,{get:function(){cn=!0}}),window.addEventListener(`test`,ln,ln),window.removeEventListener(`test`,ln,ln)}catch{cn=!1}var un=null,dn=null,fn=null;function pn(){if(fn)return fn;var e,t=dn,n=t.length,r,i=`value`in un?un.value:un.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return fn=i.slice(e,1<r?1-r:void 0)}function mn(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 hn(){return!0}function gn(){return!1}function _n(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?hn:gn,this.isPropagationStopped=gn,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=hn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=hn)},persist:function(){},isPersistent:hn}),t}var vn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yn=_n(vn),bn=p({},vn,{view:0,detail:0}),xn=_n(bn),Sn,Cn,wn,Tn=p({},bn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:In,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!==wn&&(wn&&e.type===`mousemove`?(Sn=e.screenX-wn.screenX,Cn=e.screenY-wn.screenY):Cn=Sn=0,wn=e),Sn)},movementY:function(e){return`movementY`in e?e.movementY:Cn}}),En=_n(Tn),Dn=_n(p({},Tn,{dataTransfer:0})),On=_n(p({},bn,{relatedTarget:0})),kn=_n(p({},vn,{animationName:0,elapsedTime:0,pseudoElement:0})),An=_n(p({},vn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),jn=_n(p({},vn,{data:0})),Mn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Nn={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`},Pn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Fn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pn[e])?!!t[e]:!1}function In(){return Fn}var Ln=_n(p({},bn,{key:function(e){if(e.key){var t=Mn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=mn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Nn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:In,charCode:function(e){return e.type===`keypress`?mn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?mn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Rn=_n(p({},Tn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),zn=_n(p({},bn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:In})),Bn=_n(p({},vn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Vn=_n(p({},Tn,{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})),Hn=_n(p({},vn,{newState:0,oldState:0})),Un=[9,13,27,32],Wn=sn&&`CompositionEvent`in window,Gn=null;sn&&`documentMode`in document&&(Gn=document.documentMode);var Kn=sn&&`TextEvent`in window&&!Gn,qn=sn&&(!Wn||Gn&&8<Gn&&11>=Gn),Jn=` `,Yn=!1;function Xn(e,t){switch(e){case`keyup`:return Un.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Zn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Qn=!1;function $n(e,t){switch(e){case`compositionend`:return Zn(t);case`keypress`:return t.which===32?(Yn=!0,Jn):null;case`textInput`:return e=t.data,e===Jn&&Yn?null:e;default:return null}}function er(e,t){if(Qn)return e===`compositionend`||!Wn&&Xn(e,t)?(e=pn(),fn=dn=un=null,Qn=!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 qn&&t.locale!==`ko`?null:t.data;default:return null}}var tr={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 nr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!tr[e.type]:t===`textarea`}function rr(e,t,n,r){en?tn?tn.push(r):tn=[r]:en=r,t=Dd(t,`onChange`),0<t.length&&(n=new yn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var ir=null,ar=null;function or(e){bd(e,0)}function sr(e){if(Nt(ht(e)))return e}function cr(e,t){if(e===`change`)return t}var lr=!1;if(sn){var ur;if(sn){var dr=`oninput`in document;if(!dr){var V=document.createElement(`div`);V.setAttribute(`oninput`,`return;`),dr=typeof V.oninput==`function`}ur=dr}else ur=!1;lr=ur&&(!document.documentMode||9<document.documentMode)}function fr(){ir&&(ir.detachEvent(`onpropertychange`,pr),ar=ir=null)}function pr(e){if(e.propertyName===`value`&&sr(ar)){var t=[];rr(t,ar,e,$t(e)),an(or,t)}}function H(e,t,n){e===`focusin`?(fr(),ir=t,ar=n,ir.attachEvent(`onpropertychange`,pr)):e===`focusout`&&fr()}function mr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return sr(ar)}function hr(e,t){if(e===`click`)return sr(t)}function gr(e,t){if(e===`input`||e===`change`)return sr(t)}function _r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var vr=typeof Object.is==`function`?Object.is:_r;function yr(e,t){if(vr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)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(!ve.call(t,i)||!vr(e[i],t[i]))return!1}return!0}function br(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xr(e,t){var n=br(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}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=br(n)}}function Sr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Pt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pt(e.document)}return t}function wr(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`)}var Tr=sn&&`documentMode`in document&&11>=document.documentMode,Er=null,Dr=null,Or=null,kr=!1;function Ar(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kr||Er==null||Er!==Pt(r)||(r=Er,`selectionStart`in r&&wr(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}),Or&&yr(Or,r)||(Or=r,r=Dd(Dr,`onSelect`),0<r.length&&(t=new yn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Er)))}function jr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Mr={animationend:jr(`Animation`,`AnimationEnd`),animationiteration:jr(`Animation`,`AnimationIteration`),animationstart:jr(`Animation`,`AnimationStart`),transitionrun:jr(`Transition`,`TransitionRun`),transitionstart:jr(`Transition`,`TransitionStart`),transitioncancel:jr(`Transition`,`TransitionCancel`),transitionend:jr(`Transition`,`TransitionEnd`)},Nr={},Pr={};sn&&(Pr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Mr.animationend.animation,delete Mr.animationiteration.animation,delete Mr.animationstart.animation),`TransitionEvent`in window||delete Mr.transitionend.transition);function Fr(e){if(Nr[e])return Nr[e];if(!Mr[e])return e;var t=Mr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pr)return Nr[e]=t[n];return e}var Ir=Fr(`animationend`),Lr=Fr(`animationiteration`),Rr=Fr(`animationstart`),zr=Fr(`transitionrun`),Br=Fr(`transitionstart`),Vr=Fr(`transitioncancel`),Hr=Fr(`transitionend`),Ur=new Map,Wr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Wr.push(`scrollEnd`);function Gr(e,t){Ur.set(e,t),bt(t,[e])}var Kr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},qr=[],Jr=0,Yr=0;function Xr(){for(var e=Jr,t=Yr=Jr=0;t<e;){var n=qr[t];qr[t++]=null;var r=qr[t];qr[t++]=null;var i=qr[t];qr[t++]=null;var a=qr[t];if(qr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ei(n,i,a)}}function Zr(e,t,n,r){qr[Jr++]=e,qr[Jr++]=t,qr[Jr++]=n,qr[Jr++]=r,Yr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Qr(e,t,n,r){return Zr(e,t,n,r),ti(e)}function $r(e,t){return Zr(e,null,null,t),ti(e)}function ei(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Fe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ti(e){if(50<du)throw du=0,fu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ni={};function ri(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.refCleanup=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 ii(e,t,n,r){return new ri(e,t,n,r)}function ai(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oi(e,t){var n=e.alternate;return n===null?(n=ii(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&65011712,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.refCleanup=e.refCleanup,n}function si(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ci(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)ai(e)&&(s=1);else if(typeof e==`string`)s=Gf(e,n,ae.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=ii(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return li(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=ii(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=ii(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=ii(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ii(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function li(e,t,n,r){return e=ii(7,e,r,t),e.lanes=n,e}function ui(e,t,n){return e=ii(6,e,null,t),e.lanes=n,e}function di(e){var t=ii(18,null,null,0);return t.stateNode=e,t}function fi(e,t,n){return t=ii(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var pi=new WeakMap;function mi(e,t){if(typeof e==`object`&&e){var n=pi.get(e);return n===void 0?(t={value:e,source:t,stack:_e(t)},pi.set(e,t),t):n}return{value:e,source:t,stack:_e(t)}}var hi=[],gi=0,_i=null,vi=0,U=[],yi=0,bi=null,xi=1,Si=``;function Ci(e,t){hi[gi++]=vi,hi[gi++]=_i,_i=e,vi=t}function wi(e,t,n){U[yi++]=xi,U[yi++]=Si,U[yi++]=bi,bi=e;var r=xi;e=Si;var i=32-Fe(r)-1;r&=~(1<<i),n+=1;var a=32-Fe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,xi=1<<32-Fe(t)+i|n<<i|r,Si=a+e}else xi=1<<a|n<<i|r,Si=e}function Ti(e){e.return!==null&&(Ci(e,1),wi(e,1,0))}function Ei(e){for(;e===_i;)_i=hi[--gi],hi[gi]=null,vi=hi[--gi],hi[gi]=null;for(;e===bi;)bi=U[--yi],U[yi]=null,Si=U[--yi],U[yi]=null,xi=U[--yi],U[yi]=null}function Di(e,t){U[yi++]=xi,U[yi++]=Si,U[yi++]=bi,xi=t.id,Si=t.overflow,bi=e}var Oi=null,ki=null,W=!1,Ai=null,ji=!1,Mi=Error(i(519));function Ni(e){throw zi(mi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Mi}function Pi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[it]=e,t[at]=r,n){case`dialog`:Z(`cancel`,t),Z(`close`,t);break;case`iframe`:case`object`:case`embed`:Z(`load`,t);break;case`video`:case`audio`:for(n=0;n<vd.length;n++)Z(vd[n],t);break;case`source`:Z(`error`,t);break;case`img`:case`image`:case`link`:Z(`error`,t),Z(`load`,t);break;case`details`:Z(`toggle`,t);break;case`input`:Z(`invalid`,t),Rt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Z(`invalid`,t);break;case`textarea`:Z(`invalid`,t),Ht(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Nd(t.textContent,n)?(r.popover!=null&&(Z(`beforetoggle`,t),Z(`toggle`,t)),r.onScroll!=null&&Z(`scroll`,t),r.onScrollEnd!=null&&Z(`scrollend`,t),r.onClick!=null&&(t.onclick=Zt),t=!0):t=!1,t||Ni(e,!0)}function Fi(e){for(Oi=e.return;Oi;)switch(Oi.tag){case 5:case 31:case 13:ji=!1;return;case 27:case 3:ji=!0;return;default:Oi=Oi.return}}function Ii(e){if(e!==Oi)return!1;if(!W)return Fi(e),W=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Gd(e.type,e.memoizedProps)),n=!n),n&&ki&&Ni(e),Fi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ki=ff(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ki=ff(e)}else t===27?(t=ki,$d(e.type)?(e=df,df=null,ki=e):ki=t):ki=Oi?uf(e.stateNode.nextSibling):null;return!0}function Li(){ki=Oi=null,W=!1}function Ri(){var e=Ai;return e!==null&&(Zl===null?Zl=e:Zl.push.apply(Zl,e),Ai=null),e}function zi(e){Ai===null?Ai=[e]:Ai.push(e)}var Bi=I(null),Vi=null,Hi=null;function Ui(e,t,n){R(Bi,t._currentValue),t._currentValue=n}function Wi(e){e._currentValue=Bi.current,L(Bi)}function Gi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Ki(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Gi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Gi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function qi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;vr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ce.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ep]:e.push(ep))}a=a.return}e!==null&&Ki(t,e,n,r),t.flags|=262144}function Ji(e){for(e=e.firstContext;e!==null;){if(!vr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Yi(e){Vi=e,Hi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Xi(e){return Qi(Vi,e)}function Zi(e,t){return Vi===null&&Yi(e),Qi(e,t)}function Qi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Hi===null){if(e===null)throw Error(i(308));Hi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Hi=Hi.next=t;return n}var $i=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},ea=t.unstable_scheduleCallback,ta=t.unstable_NormalPriority,na={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ra(){return{controller:new $i,data:new Map,refCount:0}}function ia(e){e.refCount--,e.refCount===0&&ea(ta,function(){e.controller.abort()})}var aa=null,oa=0,sa=0,ca=null;function la(e,t){if(aa===null){var n=aa=[];oa=0,sa=fd(),ca={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return oa++,t.then(ua,ua),t}function ua(){if(--oa===0&&aa!==null){ca!==null&&(ca.status=`fulfilled`);var e=aa;aa=null,sa=0,ca=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function da(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var fa=P.S;P.S=function(e,t){eu=Ce(),typeof t==`object`&&t&&typeof t.then==`function`&&la(e,t),fa!==null&&fa(e,t)};var pa=I(null);function ma(){var e=pa.current;return e===null?q.pooledCache:e}function ha(e,t){t===null?R(pa,pa.current):R(pa,t.pool)}function ga(){var e=ma();return e===null?null:{parent:na._currentValue,pool:e}}var _a=Error(i(460)),va=Error(i(474)),ya=Error(i(542)),ba={then:function(){}};function xa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Sa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Zt,Zt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ea(e),e;default:if(typeof t.status==`string`)t.then(Zt,Zt);else{if(e=q,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ea(e),e}throw wa=t,_a}}function Ca(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(wa=e,_a):e}}var wa=null;function Ta(){if(wa===null)throw Error(i(459));var e=wa;return wa=null,e}function Ea(e){if(e===_a||e===ya)throw Error(i(483))}var Da=null,Oa=0;function ka(e){var t=Oa;return Oa+=1,Da===null&&(Da=[]),Sa(Da,e,t)}function Aa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function ja(e,t){throw t.$$typeof===h?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Ma(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=oi(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=ui(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Ca(i)===t.type)?(t=a(t,n.props),Aa(t,n),t.return=e,t):(t=ci(n.type,n.key,n.props,null,e.mode,r),Aa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=fi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=li(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ui(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=ci(t.type,t.key,t.props,null,e.mode,n),Aa(n,t),n.return=e,n;case v:return t=fi(t,e.mode,n),t.return=e,t;case O:return t=Ca(t),f(e,t,n)}if(te(t)||ee(t))return t=li(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ka(t),n);if(t.$$typeof===C)return f(e,Zi(e,t),n);ja(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=Ca(n),p(e,t,n,r)}if(te(n)||ee(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ka(n),r);if(n.$$typeof===C)return p(e,t,Zi(e,n),r);ja(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Ca(r),m(e,t,n,r,i)}if(te(r)||ee(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,ka(r),i);if(r.$$typeof===C)return m(e,t,n,Zi(t,r),i);ja(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),W&&Ci(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return W&&Ci(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),W&&Ci(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),W&&Ci(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return W&&Ci(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),W&&Ci(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Ca(l)===r.type){n(e,r.sibling),c=a(r,o.props),Aa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=li(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ci(o.type,o.key,o.props,null,e.mode,c),Aa(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=fi(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Ca(o),b(e,r,o,c)}if(te(o))return h(e,r,o,c);if(ee(o)){if(l=ee(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,ka(o),c);if(o.$$typeof===C)return b(e,r,Zi(e,o),c);ja(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=ui(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Oa=0;var i=b(e,t,n,r);return Da=null,i}catch(t){if(t===_a||t===ya)throw t;var a=ii(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Na=Ma(!0),Pa=Ma(!1),Fa=!1;function Ia(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function La(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function za(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ti(e),ei(e,null,n),t}return Zr(e,r,t,n),ti(e)}function Ba(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ze(e,n)}}function Va(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ha=!1;function Ua(){if(Ha){var e=ca;if(e!==null)throw e}}function Wa(e,t,n,r){Ha=!1;var i=e.updateQueue;Fa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,m=f!==s.lane;if(m?(Y&f)===f:(r&f)===f){f!==0&&f===sa&&(Ha=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=p({},d,f);break a;case 2:Fa=!0}}f=s.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[f]:m.push(f))}else m={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Gl|=o,e.lanes=o,e.memoizedState=d}}function Ga(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ka(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ga(n[e],t)}var qa=I(null),Ja=I(0);function Ya(e,t){e=Ul,R(Ja,e),R(qa,t),Ul=e|t.baseLanes}function Xa(){R(Ja,Ul),R(qa,qa.current)}function Za(){Ul=Ja.current,L(qa),L(Ja)}var Qa=I(null),$a=null;function eo(e){var t=e.alternate;R(ao,ao.current&1),R(Qa,e),$a===null&&(t===null||qa.current!==null||t.memoizedState!==null)&&($a=e)}function to(e){R(ao,ao.current),R(Qa,e),$a===null&&($a=e)}function no(e){e.tag===22?(R(ao,ao.current),R(Qa,e),$a===null&&($a=e)):ro(e)}function ro(){R(ao,ao.current),R(Qa,Qa.current)}function io(e){L(Qa),$a===e&&($a=null),L(ao)}var ao=I(0);function oo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||sf(n)||cf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){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 so=0,G=null,co=null,lo=null,uo=!1,fo=!1,po=!1,mo=0,ho=0,go=null,_o=0;function vo(){throw Error(i(321))}function yo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!vr(e[n],t[n]))return!1;return!0}function bo(e,t,n,r,i,a){return so=a,G=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?Ls:Rs,po=!1,a=n(r,i),po=!1,fo&&(a=So(t,n,r,i)),xo(e),a}function xo(e){P.H=Is;var t=co!==null&&co.next!==null;if(so=0,lo=co=G=null,uo=!1,ho=0,go=null,t)throw Error(i(300));e===null||tc||(e=e.dependencies,e!==null&&Ji(e)&&(tc=!0))}function So(e,t,n,r){G=e;var a=0;do{if(fo&&(go=null),ho=0,fo=!1,25<=a)throw Error(i(301));if(a+=1,lo=co=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}P.H=zs,o=t(n,r)}while(fo);return o}function Co(){var e=P.H,t=e.useState()[0];return t=typeof t.then==`function`?Ao(t):t,e=e.useState()[0],(co===null?null:co.memoizedState)!==e&&(G.flags|=1024),t}function wo(){var e=mo!==0;return mo=0,e}function To(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Eo(e){if(uo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}uo=!1}so=0,lo=co=G=null,fo=!1,ho=mo=0,go=null}function Do(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lo===null?G.memoizedState=lo=e:lo=lo.next=e,lo}function Oo(){if(co===null){var e=G.alternate;e=e===null?null:e.memoizedState}else e=co.next;var t=lo===null?G.memoizedState:lo.next;if(t!==null)lo=t,co=e;else{if(e===null)throw G.alternate===null?Error(i(467)):Error(i(310));co=e,e={memoizedState:co.memoizedState,baseState:co.baseState,baseQueue:co.baseQueue,queue:co.queue,next:null},lo===null?G.memoizedState=lo=e:lo=lo.next=e}return lo}function ko(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ao(e){var t=ho;return ho+=1,go===null&&(go=[]),e=Sa(go,e,t),t=G,(lo===null?t.memoizedState:lo.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?Ls:Rs),e}function jo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ao(e);if(e.$$typeof===C)return Xi(e)}throw Error(i(438,String(e)))}function Mo(e){var t=null,n=G.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=G.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ko(),G.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function No(e,t){return typeof t==`function`?t(e):t}function Po(e){return Fo(Oo(),co,e)}function Fo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(so&f)===f:(Y&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===sa&&(d=!0);else if((so&p)===p){u=u.next,p===sa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,G.lanes|=p,Gl|=p;f=u.action,po&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,G.lanes|=f,Gl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!vr(o,e.memoizedState)&&(tc=!0,d&&(n=ca,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Io(e){var t=Oo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);vr(o,t.memoizedState)||(tc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Lo(e,t,n){var r=G,a=Oo(),o=W;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!vr((co||a).memoizedState,n);if(s&&(a.memoizedState=n,tc=!0),a=a.queue,cs(Bo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||lo!==null&&lo.memoizedState.tag&1){if(r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,a,n,t),null),q===null)throw Error(i(349));o||so&127||Ro(r,t,n)}return n}function Ro(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=G.updateQueue,t===null?(t=ko(),G.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function zo(e,t,n,r){t.value=n,t.getSnapshot=r,Vo(t)&&Ho(e)}function Bo(e,t,n){return n(function(){Vo(t)&&Ho(e)})}function Vo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vr(e,n)}catch{return!0}}function Ho(e){var t=$r(e,2);t!==null&&hu(t,e,2)}function Uo(e){var t=Do();if(typeof e==`function`){var n=e;if(e=n(),po){Pe(!0);try{n()}finally{Pe(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},t}function Wo(e,t,n,r){return e.baseState=n,Fo(e,co,typeof r==`function`?r:No)}function Go(e,t,n,r,a){if(Ns(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};P.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ko(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ko(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=P.T,o={};P.T=o;try{var s=n(i,r),c=P.S;c!==null&&c(o,s),qo(e,t,s)}catch(n){Yo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),P.T=a}}else try{a=n(i,r),qo(e,t,a)}catch(n){Yo(e,t,n)}}function qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Jo(e,t,n)},function(n){return Yo(e,t,n)}):Jo(e,t,n)}function Jo(e,t,n){t.status=`fulfilled`,t.value=n,Xo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ko(e,n)))}function Yo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Xo(t),t=t.next;while(t!==r)}e.action=null}function Xo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Zo(e,t){return t}function Qo(e,t){if(W){var n=q.formState;if(n!==null){a:{var r=G;if(W){if(ki){b:{for(var i=ki,a=ji;i.nodeType!==8;){if(!a){i=null;break b}if(i=uf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ki=uf(i.nextSibling),r=i.data===`F!`;break a}}Ni(r)}r=!1}r&&(t=n[0])}}return n=Do(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zo,lastRenderedState:t},n.queue=r,n=As.bind(null,G,r),r.dispatch=n,r=Uo(!1),a=Ms.bind(null,G,!1,r.queue),r=Do(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Go.bind(null,G,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function $o(e){return es(Oo(),co,e)}function es(e,t,n){if(t=Fo(e,t,Zo)[0],e=Po(No)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ao(t)}catch(e){throw e===_a?ya:e}else r=t;t=Oo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(G.flags|=2048,rs(9,{destroy:void 0},ts.bind(null,i,n),null)),[r,a,e]}function ts(e,t){e.action=t}function ns(e){var t=Oo(),n=co;if(n!==null)return es(t,n,e);Oo(),t=t.memoizedState,n=Oo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function rs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=G.updateQueue,t===null&&(t=ko(),G.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function is(){return Oo().memoizedState}function as(e,t,n,r){var i=Do();G.flags|=e,i.memoizedState=rs(1|t,{destroy:void 0},n,r===void 0?null:r)}function os(e,t,n,r){var i=Oo();r=r===void 0?null:r;var a=i.memoizedState.inst;co!==null&&r!==null&&yo(r,co.memoizedState.deps)?i.memoizedState=rs(t,a,n,r):(G.flags|=e,i.memoizedState=rs(1|t,a,n,r))}function ss(e,t){as(8390656,8,e,t)}function cs(e,t){os(2048,8,e,t)}function ls(e){G.flags|=4;var t=G.updateQueue;if(t===null)t=ko(),G.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function us(e){var t=Oo().memoizedState;return ls({ref:t,nextImpl:e}),function(){if(K&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ds(e,t){return os(4,2,e,t)}function fs(e,t){return os(4,4,e,t)}function ps(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ms(e,t,n){n=n==null?null:n.concat([e]),os(4,4,ps.bind(null,t,e),n)}function hs(){}function gs(e,t){var n=Oo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&yo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _s(e,t){var n=Oo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&yo(t,r[1]))return r[0];if(r=e(),po){Pe(!0);try{e()}finally{Pe(!1)}}return n.memoizedState=[r,t],r}function vs(e,t,n){return n===void 0||so&1073741824&&!(Y&261930)?e.memoizedState=t:(e.memoizedState=n,e=mu(),G.lanes|=e,Gl|=e,n)}function ys(e,t,n,r){return vr(n,t)?n:qa.current===null?!(so&42)||so&1073741824&&!(Y&261930)?(tc=!0,e.memoizedState=n):(e=mu(),G.lanes|=e,Gl|=e,t):(e=vs(e,n,r),vr(e,t)||(tc=!0),e)}function bs(e,t,n,r,i){var a=F.p;F.p=a!==0&&8>a?a:8;var o=P.T,s={};P.T=s,Ms(e,!1,t,n);try{var c=i(),l=P.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?js(e,t,da(c,r),pu(e)):js(e,t,r,pu(e))}catch(n){js(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{F.p=a,o!==null&&s.types!==null&&(o.types=s.types),P.T=o}}function xs(){}function Ss(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Cs(e).queue;bs(e,a,t,ne,n===null?xs:function(){return ws(e),n(r)})}function Cs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:ne},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ws(e){var t=Cs(e);t.next===null&&(t=e.alternate.memoizedState),js(e,t.next.queue,{},pu())}function Ts(){return Xi(ep)}function Es(){return Oo().memoizedState}function Ds(){return Oo().memoizedState}function Os(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Ra(n);var r=za(t,e,n);r!==null&&(hu(r,t,n),Ba(r,t,n)),t={cache:ra()},e.payload=t;return}t=t.return}}function ks(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ns(e)?Ps(t,n):(n=Qr(e,t,n,r),n!==null&&(hu(n,e,r),Fs(n,t,r)))}function As(e,t,n){js(e,t,n,pu())}function js(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ns(e))Ps(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,vr(s,o))return Zr(e,t,i,0),q===null&&Xr(),!1}catch{}if(n=Qr(e,t,i,r),n!==null)return hu(n,e,r),Fs(n,t,r),!0}return!1}function Ms(e,t,n,r){if(r={lane:2,revertLane:fd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ns(e)){if(t)throw Error(i(479))}else t=Qr(e,n,r,2),t!==null&&hu(t,e,2)}function Ns(e){var t=e.alternate;return e===G||t!==null&&t===G}function Ps(e,t){fo=uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ze(e,n)}}var Is={readContext:Xi,use:jo,useCallback:vo,useContext:vo,useEffect:vo,useImperativeHandle:vo,useLayoutEffect:vo,useInsertionEffect:vo,useMemo:vo,useReducer:vo,useRef:vo,useState:vo,useDebugValue:vo,useDeferredValue:vo,useTransition:vo,useSyncExternalStore:vo,useId:vo,useHostTransitionStatus:vo,useFormState:vo,useActionState:vo,useOptimistic:vo,useMemoCache:vo,useCacheRefresh:vo};Is.useEffectEvent=vo;var Ls={readContext:Xi,use:jo,useCallback:function(e,t){return Do().memoizedState=[e,t===void 0?null:t],e},useContext:Xi,useEffect:ss,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),as(4194308,4,ps.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){as(4,2,e,t)},useMemo:function(e,t){var n=Do();t=t===void 0?null:t;var r=e();if(po){Pe(!0);try{e()}finally{Pe(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Do();if(n!==void 0){var i=n(t);if(po){Pe(!0);try{n(t)}finally{Pe(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ks.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=Do();return e={current:e},t.memoizedState=e},useState:function(e){e=Uo(e);var t=e.queue,n=As.bind(null,G,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hs,useDeferredValue:function(e,t){return vs(Do(),e,t)},useTransition:function(){var e=Uo(!1);return e=bs.bind(null,G,e.queue,!0,!1),Do().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=G,a=Do();if(W){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),q===null)throw Error(i(349));Y&127||Ro(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ss(Bo.bind(null,r,o,e),[e]),r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,o,n,t),null),n},useId:function(){var e=Do(),t=q.identifierPrefix;if(W){var n=Si,r=xi;n=(r&~(1<<32-Fe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=mo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=_o++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ts,useFormState:Qo,useActionState:Qo,useOptimistic:function(e){var t=Do();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ms.bind(null,G,!0,n),n.dispatch=t,[e,t]},useMemoCache:Mo,useCacheRefresh:function(){return Do().memoizedState=Os.bind(null,G)},useEffectEvent:function(e){var t=Do(),n={impl:e};return t.memoizedState=n,function(){if(K&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Rs={readContext:Xi,use:jo,useCallback:gs,useContext:Xi,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:Po,useRef:is,useState:function(){return Po(No)},useDebugValue:hs,useDeferredValue:function(e,t){return ys(Oo(),co.memoizedState,e,t)},useTransition:function(){var e=Po(No)[0],t=Oo().memoizedState;return[typeof e==`boolean`?e:Ao(e),t]},useSyncExternalStore:Lo,useId:Es,useHostTransitionStatus:Ts,useFormState:$o,useActionState:$o,useOptimistic:function(e,t){return Wo(Oo(),co,e,t)},useMemoCache:Mo,useCacheRefresh:Ds};Rs.useEffectEvent=us;var zs={readContext:Xi,use:jo,useCallback:gs,useContext:Xi,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:Io,useRef:is,useState:function(){return Io(No)},useDebugValue:hs,useDeferredValue:function(e,t){var n=Oo();return co===null?vs(n,e,t):ys(n,co.memoizedState,e,t)},useTransition:function(){var e=Io(No)[0],t=Oo().memoizedState;return[typeof e==`boolean`?e:Ao(e),t]},useSyncExternalStore:Lo,useId:Es,useHostTransitionStatus:Ts,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){var n=Oo();return co===null?(n.baseState=e,[e,n.queue.dispatch]):Wo(n,co,e,t)},useMemoCache:Mo,useCacheRefresh:Ds};zs.useEffectEvent=us;function Bs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:p({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Ra(r);i.payload=t,n!=null&&(i.callback=n),t=za(e,i,r),t!==null&&(hu(t,e,r),Ba(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Ra(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=za(e,i,r),t!==null&&(hu(t,e,r),Ba(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pu(),r=Ra(n);r.tag=2,t!=null&&(r.callback=t),t=za(e,r,n),t!==null&&(hu(t,e,n),Ba(t,e,n))}};function Hs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!yr(n,r)||!yr(i,a):!0}function Us(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&&Vs.enqueueReplaceState(t,t.state,null)}function Ws(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=p({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Gs(e){Kr(e)}function Ks(e){console.error(e)}function qs(e){Kr(e)}function Js(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ys(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Xs(e,t,n){return n=Ra(n),n.tag=3,n.payload={element:null},n.callback=function(){Js(e,t)},n}function Zs(e){return e=Ra(e),e.tag=3,e}function Qs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ys(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ys(t,n,r),typeof i!=`function`&&(ru===null?ru=new Set([this]):ru.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function $s(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&qi(t,n,a,!0),n=Qa.current,n!==null){switch(n.tag){case 31:case 13:return $a===null?Du():n.alternate===null&&Wl===0&&(Wl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ba?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Ku(e,r,a)),!1;case 22:return n.flags|=65536,r===ba?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Ku(e,r,a)),!1}throw Error(i(435,n.tag))}return Ku(e,r,a),Du(),!1}if(W)return t=Qa.current,t===null?(r!==Mi&&(t=Error(i(423),{cause:r}),zi(mi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=mi(r,n),a=Xs(e.stateNode,r,a),Va(e,a),Wl!==4&&(Wl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Mi&&(e=Error(i(422),{cause:r}),zi(mi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=mi(o,n),Xl===null?Xl=[o]:Xl.push(o),Wl!==4&&(Wl=2),t===null)return!0;r=mi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Xs(n.stateNode,r,e),Va(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(ru===null||!ru.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Zs(a),Qs(a,e,n,r),Va(n,a),!1}n=n.return}while(n!==null);return!1}var ec=Error(i(461)),tc=!1;function nc(e,t,n,r){t.child=e===null?Pa(t,null,n,r):Na(t,e.child,n,r)}function rc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Yi(t),r=bo(e,t,n,o,a,i),s=wo(),e!==null&&!tc?(To(e,t,i),Dc(e,t,i)):(W&&s&&Ti(t),t.flags|=1,nc(e,t,r,i),t.child)}function ic(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ai(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,ac(e,t,a,r,i)):(e=ci(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Oc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?yr:n,n(o,r)&&e.ref===t.ref)return Dc(e,t,i)}return t.flags|=1,e=oi(a,r),e.ref=t.ref,e.return=t,t.child=e}function ac(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(yr(a,r)&&e.ref===t.ref)if(tc=!1,t.pendingProps=r=a,Oc(e,i))e.flags&131072&&(tc=!0);else return t.lanes=e.lanes,Dc(e,t,i)}return pc(e,t,n,r,i)}function oc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return cc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ha(t,a===null?null:a.cachePool),a===null?Xa():Ya(t,a),no(t);else return r=t.lanes=536870912,cc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ha(t,null),Xa(),ro(t)):(ha(t,a.cachePool),Ya(t,a),ro(t),t.memoizedState=null);return nc(e,t,i,n),t.child}function sc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cc(e,t,n,r,i){var a=ma();return a=a===null?null:{parent:na._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ha(t,null),Xa(),no(t),e!==null&&qi(e,t,r,!0),t.childLanes=i,null}function lc(e,t){return t=Sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uc(e,t,n){return Na(t,e.child,null,n),e=lc(t,t.pendingProps),e.flags|=2,io(t),t.memoizedState=null,e}function dc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(W){if(r.mode===`hidden`)return e=lc(t,r),t.lanes=536870912,sc(null,e);if(to(t),(e=ki)?(e=of(e,ji),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:bi===null?null:{id:xi,overflow:Si},retryLane:536870912,hydrationErrors:null},n=di(e),n.return=t,t.child=n,Oi=t,ki=null)):e=null,e===null)throw Ni(t);return t.lanes=536870912,null}return lc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(to(t),a)if(t.flags&256)t.flags&=-257,t=uc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(tc||qi(e,t,n,!1),a=(n&e.childLanes)!==0,tc||a){if(r=q,r!==null&&(s=Qe(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,$r(e,s),hu(r,e,s),ec;Du(),t=uc(e,t,n)}else e=o.treeContext,ki=uf(s.nextSibling),Oi=t,W=!0,Ai=null,ji=!1,e!==null&&Di(t,e),t=lc(t,r),t.flags|=4096;return t}return e=oi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function pc(e,t,n,r,i){return Yi(t),n=bo(e,t,n,r,void 0,i),r=wo(),e!==null&&!tc?(To(e,t,i),Dc(e,t,i)):(W&&r&&Ti(t),t.flags|=1,nc(e,t,n,i),t.child)}function mc(e,t,n,r,i,a){return Yi(t),t.updateQueue=null,n=So(t,r,n,i),xo(e),r=wo(),e!==null&&!tc?(To(e,t,a),Dc(e,t,a)):(W&&r&&Ti(t),t.flags|=1,nc(e,t,n,a),t.child)}function hc(e,t,n,r,i){if(Yi(t),t.stateNode===null){var a=ni,o=n.contextType;typeof o==`object`&&o&&(a=Xi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Vs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Ia(t),o=n.contextType,a.context=typeof o==`object`&&o?Xi(o):ni,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Bs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Vs.enqueueReplaceState(a,a.state,null),Wa(t,r,a,i),Ua(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ws(n,s);a.props=c;var l=a.context,u=n.contextType;o=ni,typeof u==`object`&&u&&(o=Xi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Us(t,a,r,o),Fa=!1;var f=t.memoizedState;a.state=f,Wa(t,r,a,i),Ua(),l=t.memoizedState,s||f!==l||Fa?(typeof d==`function`&&(Bs(t,n,d,r),l=t.memoizedState),(c=Fa||Hs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,La(e,t),o=t.memoizedProps,u=Ws(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ni,typeof l==`object`&&l&&(c=Xi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Us(t,a,r,c),Fa=!1,f=t.memoizedState,a.state=f,Wa(t,r,a,i),Ua();var p=t.memoizedState;o!==d||f!==p||Fa||e!==null&&e.dependencies!==null&&Ji(e.dependencies)?(typeof s==`function`&&(Bs(t,n,s,r),p=t.memoizedState),(u=Fa||Hs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Ji(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,fc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Na(t,e.child,null,i),t.child=Na(t,null,n,i)):nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Dc(e,t,i),e}function gc(e,t,n,r){return Li(),t.flags|=256,nc(e,t,n,r),t.child}var _c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vc(e){return{baseLanes:e,cachePool:ga()}}function yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Jl),e}function bc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(ao.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(W){if(a?eo(t):ro(t),(e=ki)?(e=of(e,ji),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:bi===null?null:{id:xi,overflow:Si},retryLane:536870912,hydrationErrors:null},n=di(e),n.return=t,t.child=n,Oi=t,ki=null)):e=null,e===null)throw Ni(t);return cf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(ro(t),a=t.mode,c=Sc({mode:`hidden`,children:c},a),r=li(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,sc(null,r)):(eo(t),xc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(eo(t),t.flags&=-257,t=Cc(e,t,n)):t.memoizedState===null?(ro(t),c=r.fallback,a=t.mode,r=Sc({mode:`visible`,children:r.children},a),c=li(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Na(t,e.child,null,n),r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,t=sc(null,r)):(ro(t),t.child=e.child,t.flags|=128,t=null);else if(eo(t),cf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,zi({value:r,source:null,stack:null}),t=Cc(e,t,n)}else if(tc||qi(e,t,n,!1),s=(n&e.childLanes)!==0,tc||s){if(s=q,s!==null&&(r=Qe(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,$r(e,r),hu(s,e,r),ec;sf(c)||Du(),t=Cc(e,t,n)}else sf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,ki=uf(c.nextSibling),Oi=t,W=!0,Ai=null,ji=!1,e!==null&&Di(t,e),t=xc(t,r.children),t.flags|=4096);return t}return a?(ro(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=oi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=li(c,a,n,null),c.flags|=2):c=oi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,sc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=vc(n):(a=c.cachePool,a===null?a=ga():(l=na._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=yc(e,s,n),t.memoizedState=_c,sc(e.child,r)):(eo(t),n=e.child,e=n.sibling,n=oi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function xc(e,t){return t=Sc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Sc(e,t){return e=ii(22,e,null,t),e.lanes=0,e}function Cc(e,t,n){return Na(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gi(e.return,t,n)}function Tc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ec(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=ao.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,R(ao,o),nc(e,t,r,n),r=W?vi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wc(e,n,t);else if(e.tag===19)wc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&oo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Tc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&oo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Tc(t,!0,n,null,a,r);break;case`together`:Tc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Dc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(qi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=oi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=oi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Oc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Ji(e))):!0}function kc(e,t,n){switch(t.tag){case 3:le(t,t.stateNode.containerInfo),Ui(t,na,e.memoizedState.cache),Li();break;case 27:case 5:de(t);break;case 4:le(t,t.stateNode.containerInfo);break;case 10:Ui(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,to(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(eo(t),e=Dc(e,t,n),e===null?null:e.sibling):bc(e,t,n):(eo(t),t.flags|=128,null);eo(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(qi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ec(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),R(ao,ao.current),r)break;return null;case 22:return t.lanes=0,oc(e,t,n,t.pendingProps);case 24:Ui(t,na,e.memoizedState.cache)}return Dc(e,t,n)}function Ac(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)tc=!0;else{if(!Oc(e,n)&&!(t.flags&128))return tc=!1,kc(e,t,n);tc=!!(e.flags&131072)}else tc=!1,W&&t.flags&1048576&&wi(t,vi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Ca(t.elementType),t.type=e,typeof e==`function`)ai(e)?(r=Ws(e,r),t.tag=1,t=hc(null,t,e,r,n)):(t.tag=0,t=pc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=rc(null,t,e,r,n);break a}else if(a===D){t.tag=14,t=ic(null,t,e,r,n);break a}}throw t=N(e)||e,Error(i(306,t,``))}}return t;case 0:return pc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ws(r,t.pendingProps),hc(e,t,r,a,n);case 3:a:{if(le(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,La(e,t),Wa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ui(t,na,r),r!==o.cache&&Ki(t,[na],n,!0),Ua(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=gc(e,t,r,n);break a}else if(r!==a){a=mi(Error(i(424)),t),zi(a),t=gc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ki=uf(e.firstChild),Oi=t,W=!0,Ai=null,ji=!0,n=Pa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Li(),r===a){t=Dc(e,t,n);break a}nc(e,t,r,n)}t=t.child}return t;case 26:return fc(e,t),e===null?(n=jf(t.type,null,t.pendingProps,null))?t.memoizedState=n:W||(n=t.type,e=t.pendingProps,r=Hd(se.current).createElement(n),r[it]=t,r[at]=e,Id(r,n,e),_t(r),t.stateNode=r):t.memoizedState=jf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return de(t),e===null&&W&&(r=t.stateNode=mf(t.type,t.pendingProps,se.current),Oi=t,ji=!0,a=ki,$d(t.type)?(df=a,ki=uf(r.firstChild)):ki=a),nc(e,t,t.pendingProps.children,n),fc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&W&&((a=r=ki)&&(r=rf(r,t.type,t.pendingProps,ji),r===null?a=!1:(t.stateNode=r,Oi=t,ki=uf(r.firstChild),ji=!1,a=!0)),a||Ni(t)),de(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Gd(a,o)?r=null:s!==null&&Gd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=bo(e,t,Co,null,null,n),ep._currentValue=a),fc(e,t),nc(e,t,r,n),t.child;case 6:return e===null&&W&&((e=n=ki)&&(n=af(n,t.pendingProps,ji),n===null?e=!1:(t.stateNode=n,Oi=t,ki=null,e=!0)),e||Ni(t)),null;case 13:return bc(e,t,n);case 4:return le(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Na(t,null,r,n):nc(e,t,r,n),t.child;case 11:return rc(e,t,t.type,t.pendingProps,n);case 7:return nc(e,t,t.pendingProps,n),t.child;case 8:return nc(e,t,t.pendingProps.children,n),t.child;case 12:return nc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ui(t,t.type,r.value),nc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Yi(t),a=Xi(a),r=r(a),t.flags|=1,nc(e,t,r,n),t.child;case 14:return ic(e,t,t.type,t.pendingProps,n);case 15:return ac(e,t,t.type,t.pendingProps,n);case 19:return Ec(e,t,n);case 31:return dc(e,t,n);case 22:return oc(e,t,n,t.pendingProps);case 24:return Yi(t),r=Xi(na),e===null?(a=ma(),a===null&&(a=q,o=ra(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Ia(t),Ui(t,na,a)):((e.lanes&n)!==0&&(La(e,t),Wa(t,null,null,n),Ua()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ui(t,na,r),r!==a.cache&&Ki(t,[na],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ui(t,na,r))),nc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function jc(e){e.flags|=4}function Mc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(wu())e.flags|=8192;else throw wa=ba,va}else e.flags&=-16777217}function Nc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Kf(t))if(wu())e.flags|=8192;else throw wa=ba,va}function Pc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ke(),e.lanes|=t,Yl|=t)}function Fc(e,t){if(!W)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 Ic(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&65011712,r|=i.flags&65011712,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 Lc(e,t,n){var r=t.pendingProps;switch(Ei(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ic(t),null;case 1:return Ic(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Wi(na),ue(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ii(t)?jc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ri())),Ic(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(jc(t),o===null?(Ic(t),Mc(t,a,null,r,n)):(Ic(t),Nc(t,o))):o?o===e.memoizedState?(Ic(t),t.flags&=-16777217):(jc(t),Ic(t),Nc(t,o)):(e=e.memoizedProps,e!==r&&jc(t),Ic(t),Mc(t,a,e,r,n)),null;case 27:if(fe(t),n=se.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ic(t),null}e=ae.current,Ii(t)?Pi(t,e):(e=mf(a,r,n),t.stateNode=e,jc(t))}return Ic(t),null;case 5:if(fe(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ic(t),null}if(o=ae.current,Ii(t))Pi(t,o);else{var s=Hd(se.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[it]=t,o[at]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Id(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&jc(t)}}return Ic(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=se.current,Ii(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Oi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[it]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Nd(e.nodeValue,n)),e||Ni(t,!0)}else e=Hd(e).createTextNode(r),e[it]=t,t.stateNode=e}return Ic(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ii(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[it]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),e=!1}else n=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(io(t),t):(io(t),null);if(t.flags&128)throw Error(i(558))}return Ic(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ii(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[it]=t}else Li(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),a=!1}else a=Ri(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(io(t),t):(io(t),null)}return io(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Pc(t,t.updateQueue),Ic(t),null);case 4:return ue(),e===null&&Cd(t.stateNode.containerInfo),Ic(t),null;case 10:return Wi(t.type),Ic(t),null;case 19:if(L(ao),r=t.memoizedState,r===null)return Ic(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Fc(r,!1);else{if(Wl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=oo(e),o!==null){for(t.flags|=128,Fc(r,!1),e=o.updateQueue,t.updateQueue=e,Pc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)si(n,e),n=n.sibling;return R(ao,ao.current&1|2),W&&Ci(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ce()>tu&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304)}else{if(!a)if(e=oo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Pc(t,e),Fc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!W)return Ic(t),null}else 2*Ce()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Ic(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ce(),e.sibling=null,n=ao.current,R(ao,a?n&1|2:n&1),W&&Ci(t,r.treeForkCount),e);case 22:case 23:return io(t),Za(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ic(t),t.subtreeFlags&6&&(t.flags|=8192)):Ic(t),n=t.updateQueue,n!==null&&Pc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&L(pa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Wi(na),Ic(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Rc(e,t){switch(Ei(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wi(na),ue(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fe(t),null;case 31:if(t.memoizedState!==null){if(io(t),t.alternate===null)throw Error(i(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(io(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Li()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return L(ao),null;case 4:return ue(),null;case 10:return Wi(t.type),null;case 22:case 23:return io(t),Za(),e!==null&&L(pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wi(na),null;case 25:return null;default:return null}}function zc(e,t){switch(Ei(t),t.tag){case 3:Wi(na),ue();break;case 26:case 27:case 5:fe(t);break;case 4:ue();break;case 31:t.memoizedState!==null&&io(t);break;case 13:io(t);break;case 19:L(ao);break;case 10:Wi(t.type);break;case 22:case 23:io(t),Za(),e!==null&&L(pa);break;case 24:Wi(na)}}function Bc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Gu(t,t.return,e)}}function Vc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Gu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Gu(t,t.return,e)}}function Hc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ka(t,n)}catch(t){Gu(e,e.return,t)}}}function Uc(e,t,n){n.props=Ws(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Gu(e,t,n)}}function Wc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Gu(e,t,n)}}function Gc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Gu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Gu(e,t,n)}else n.current=null}function Kc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Gu(e,e.return,t)}}function qc(e,t,n){try{var r=e.stateNode;Ld(r,e.type,n,t),r[at]=t}catch(t){Gu(e,e.return,t)}}function Jc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&$d(e.type)||e.tag===4}function Yc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&$d(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Zt));else if(r!==4&&(r===27&&$d(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(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&&(r===27&&$d(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Id(t,r,n),t[it]=e,t[at]=n}catch(t){Gu(e,e.return,t)}}var $c=!1,el=!1,tl=!1,nl=typeof WeakSet==`function`?WeakSet:Set,rl=null;function il(e,t){if(e=e.containerInfo,Bd=lp,e=Cr(e),wr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Vd={focusedElem:e,selectionRange:n},lp=!1,rl=t;rl!==null;)if(t=rl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,rl=e;else for(;rl!==null;){switch(t=rl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ws(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Gu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)nf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:nf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,rl=e;break}rl=t.return}}function al(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:bl(e,n),r&4&&Bc(5,n);break;case 1:if(bl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Gu(n,n.return,e)}else{var i=Ws(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Gu(n,n.return,e)}}r&64&&Hc(n),r&512&&Wc(n,n.return);break;case 3:if(bl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ka(e,t)}catch(e){Gu(n,n.return,e)}}break;case 27:t===null&&r&4&&Qc(n);case 26:case 5:bl(e,n),t===null&&r&4&&Kc(n),r&512&&Wc(n,n.return);break;case 12:bl(e,n);break;case 31:bl(e,n),r&4&&dl(e,n);break;case 13:bl(e,n),r&4&&fl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Yu.bind(null,n),lf(e,n))));break;case 22:if(r=n.memoizedState!==null||$c,!r){t=t!==null&&t.memoizedState!==null||el,i=$c;var a=el;$c=r,(el=t)&&!a?Sl(e,n,(n.subtreeFlags&8772)!=0):bl(e,n),$c=i,el=a}break;case 30:break;default:bl(e,n)}}function ol(e){var t=e.alternate;t!==null&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ft(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var sl=null,cl=!1;function ll(e,t,n){for(n=n.child;n!==null;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(Ne&&typeof Ne.onCommitFiberUnmount==`function`)try{Ne.onCommitFiberUnmount(Me,n)}catch{}switch(n.tag){case 26:el||Gc(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:el||Gc(n,t);var r=sl,i=cl;$d(n.type)&&(sl=n.stateNode,cl=!1),ll(e,t,n),hf(n.stateNode),sl=r,cl=i;break;case 5:el||Gc(n,t);case 6:if(r=sl,i=cl,sl=null,ll(e,t,n),sl=r,cl=i,sl!==null)if(cl)try{(sl.nodeType===9?sl.body:sl.nodeName===`HTML`?sl.ownerDocument.body:sl).removeChild(n.stateNode)}catch(e){Gu(n,t,e)}else try{sl.removeChild(n.stateNode)}catch(e){Gu(n,t,e)}break;case 18:sl!==null&&(cl?(e=sl,ef(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Fp(e)):ef(sl,n.stateNode));break;case 4:r=sl,i=cl,sl=n.stateNode.containerInfo,cl=!0,ll(e,t,n),sl=r,cl=i;break;case 0:case 11:case 14:case 15:Vc(2,n,t),el||Vc(4,n,t),ll(e,t,n);break;case 1:el||(Gc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Uc(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:el=(r=el)||n.memoizedState!==null,ll(e,t,n),el=r;break;default:ll(e,t,n)}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Fp(e)}catch(e){Gu(t,t.return,e)}}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Fp(e)}catch(e){Gu(t,t.return,e)}}function pl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nl),t;default:throw Error(i(435,e.tag))}}function ml(e,t){var n=pl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Xu.bind(null,e,t);t.then(r,r)}})}function hl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if($d(c.type)){sl=c.stateNode,cl=!1;break a}break;case 5:sl=c.stateNode,cl=!1;break a;case 3:case 4:sl=c.stateNode.containerInfo,cl=!0;break a}c=c.return}if(sl===null)throw Error(i(160));ul(o,s,a),sl=null,cl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_l(t,e),t=t.sibling}var gl=null;function _l(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hl(t,e),vl(e),r&4&&(Vc(3,e,e.return),Bc(3,e),Vc(5,e,e.return));break;case 1:hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),r&64&&$c&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=gl;if(hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[dt]||o[it]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Id(o,r,n),o[it]=e,_t(o),r=o;break a;case`link`:var s=Uf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Id(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Uf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Id(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[it]=e,_t(o),r=o}e.stateNode=r}else Wf(a,e.type,e.stateNode);else e.stateNode=Rf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&qc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Wf(a,e.type,e.stateNode):Rf(a,r,e.memoizedProps))}break;case 27:hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),n!==null&&r&4&&qc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),e.flags&32){a=e.stateNode;try{Ut(a,``)}catch(t){Gu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,qc(e,a,n===null?a:n.memoizedProps)),r&1024&&(tl=!0);break;case 6:if(hl(t,e),vl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Gu(e,e.return,t)}}break;case 3:if(Hf=null,a=gl,gl=vf(t.containerInfo),hl(t,e),gl=a,vl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Fp(t.containerInfo)}catch(t){Gu(e,e.return,t)}tl&&(tl=!1,yl(e));break;case 4:r=gl,gl=vf(e.stateNode.containerInfo),hl(t,e),vl(e),gl=r;break;case 12:hl(t,e),vl(e);break;case 31:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 13:hl(t,e),vl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&($l=Ce()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=$c,d=el;if($c=u||a,el=d||l,hl(t,e),el=d,$c=u,vl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||$c||el||xl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Gu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Gu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?tf(m,!0):tf(l.stateNode,!1)}catch(e){Gu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ml(e,n))));break;case 19:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 30:break;case 21:break;default:hl(t,e),vl(e)}}function vl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Jc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Zc(e,Yc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Ut(o,``),n.flags&=-33),Zc(e,Yc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Xc(e,Yc(e),s);break;default:throw Error(i(161))}}catch(t){Gu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)al(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Vc(4,t,t.return),xl(t);break;case 1:Gc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Uc(t,t.return,n),xl(t);break;case 27:hf(t.stateNode);case 26:case 5:Gc(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function Sl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Sl(i,a,n),Bc(4,a);break;case 1:if(Sl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Gu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ga(c[i],s)}catch(e){Gu(r,r.return,e)}}n&&o&64&&Hc(a),Wc(a,a.return);break;case 27:Qc(a);case 26:case 5:Sl(i,a,n),n&&r===null&&o&4&&Kc(a),Wc(a,a.return);break;case 12:Sl(i,a,n);break;case 31:Sl(i,a,n),n&&o&4&&dl(i,a);break;case 13:Sl(i,a,n),n&&o&4&&fl(i,a);break;case 22:a.memoizedState===null&&Sl(i,a,n),Wc(a,a.return);break;case 30:break;default:Sl(i,a,n)}t=t.sibling}}function Cl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ia(n))}function wl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ia(e))}function Tl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)El(e,t,n,r),t=t.sibling}function El(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Tl(e,t,n,r),i&2048&&Bc(9,t);break;case 1:Tl(e,t,n,r);break;case 3:Tl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ia(e)));break;case 12:if(i&2048){Tl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Gu(t,t.return,e)}}else Tl(e,t,n,r);break;case 31:Tl(e,t,n,r);break;case 13:Tl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Tl(e,t,n,r):(a._visibility|=2,Dl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Tl(e,t,n,r):Ol(e,t),i&2048&&Cl(o,t);break;case 24:Tl(e,t,n,r),i&2048&&wl(t.alternate,t);break;default:Tl(e,t,n,r)}}function Dl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Dl(a,o,s,c,i),Bc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Dl(a,o,s,c,i)):u._visibility&2?Dl(a,o,s,c,i):Ol(a,o),i&&l&2048&&Cl(o.alternate,o);break;case 24:Dl(a,o,s,c,i),i&&l&2048&&wl(o.alternate,o);break;default:Dl(a,o,s,c,i)}t=t.sibling}}function Ol(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ol(n,r),i&2048&&Cl(r.alternate,r);break;case 24:Ol(n,r),i&2048&&wl(r.alternate,r);break;default:Ol(n,r)}t=t.sibling}}var kl=8192;function Al(e,t,n){if(e.subtreeFlags&kl)for(e=e.child;e!==null;)jl(e,t,n),e=e.sibling}function jl(e,t,n){switch(e.tag){case 26:Al(e,t,n),e.flags&kl&&e.memoizedState!==null&&qf(n,gl,e.memoizedState,e.memoizedProps);break;case 5:Al(e,t,n);break;case 3:case 4:var r=gl;gl=vf(e.stateNode.containerInfo),Al(e,t,n),gl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=kl,kl=16777216,Al(e,t,n),kl=r):Al(e,t,n));break;default:Al(e,t,n)}}function Ml(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pl(e),e=e.sibling}function Pl(e){switch(e.tag){case 0:case 11:case 15:Nl(e),e.flags&2048&&Vc(9,e,e.return);break;case 3:Nl(e);break;case 12:Nl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fl(e)):Nl(e);break;default:Nl(e)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Vc(8,t,t.return),Fl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fl(t));break;default:Fl(t)}e=e.sibling}}function Il(e,t){for(;rl!==null;){var n=rl;switch(n.tag){case 0:case 11:case 15:Vc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ia(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,rl=r;else a:for(n=e;rl!==null;){r=rl;var i=r.sibling,a=r.return;if(ol(r),r===n){rl=null;break a}if(i!==null){i.return=a,rl=i;break a}rl=a}}}var Ll={getCacheForType:function(e){var t=Xi(na),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Xi(na).controller.signal}},Rl=typeof WeakMap==`function`?WeakMap:Map,K=0,q=null,J=null,Y=0,X=0,zl=null,Bl=!1,Vl=!1,Hl=!1,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=null,Zl=null,Ql=!1,$l=0,eu=0,tu=1/0,nu=null,ru=null,iu=0,au=null,ou=null,su=0,cu=0,lu=null,uu=null,du=0,fu=null;function pu(){return K&2&&Y!==0?Y&-Y:P.T===null?tt():fd()}function mu(){if(Jl===0)if(!(Y&536870912)||W){var e=Be;Be<<=1,!(Be&3932160)&&(Be=262144),Jl=e}else Jl=536870912;return e=Qa.current,e!==null&&(e.flags|=32),Jl}function hu(e,t,n){(e===q&&(X===2||X===9)||e.cancelPendingCommit!==null)&&(Su(e,0),yu(e,Y,Jl,!1)),Je(e,n),(!(K&2)||e!==q)&&(e===q&&(!(K&2)&&(Kl|=n),Wl===4&&yu(e,Y,Jl,!1)),id(e))}function gu(e,t,n){if(K&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||We(e,t),a=r?Au(e,t):Ou(e,t,!0),o=r;do{if(a===0){Vl&&!r&&yu(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!vu(n)){a=Ou(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Xl;var l=c.current.memoizedState.isDehydrated;if(l&&(Su(c,s).flags|=256),s=Ou(c,s,!1),s!==2){if(Hl&&!l){c.errorRecoveryDisabledLanes|=o,Kl|=o,a=4;break a}o=Zl,Zl=a,o!==null&&(Zl===null?Zl=o:Zl.push.apply(Zl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Su(e,0),yu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:yu(r,t,Jl,!Bl);break a;case 2:Zl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=$l+300-Ce(),10<a)){if(yu(r,t,Jl,!Bl),Ue(r,0,!0)!==0)break a;su=t,r.timeoutHandle=Jd(_u.bind(null,r,n,Zl,nu,Ql,t,Jl,Kl,Yl,Bl,o,`Throttled`,-0,0),a);break a}_u(r,n,Zl,nu,Ql,t,Jl,Kl,Yl,Bl,o,null,-0,0)}}break}while(1);id(e)}function _u(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zt},jl(t,a,d);var m=(a&62914560)===a?$l-Ce():(a&4194048)===a?eu-Ce():0;if(m=Yf(d,m),m!==null){su=a,e.cancelPendingCommit=m(Lu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),yu(e,a,o,!l);return}}Lu(e,t,a,n,r,i,o,s,c)}function vu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!vr(a(),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 yu(e,t,n,r){t&=~ql,t&=~Kl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Fe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Xe(e,n,t)}function bu(){return K&6?!0:(ad(0,!1),!1)}function xu(){if(J!==null){if(X===0)var e=J.return;else e=J,Hi=Vi=null,Eo(e),Da=null,Oa=0,e=J;for(;e!==null;)zc(e.alternate,e),e=e.return;J=null}}function Su(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Yd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),su=0,xu(),q=e,J=n=oi(e.current,null),Y=t,X=0,zl=null,Bl=!1,Vl=We(e,t),Hl=!1,Yl=Jl=ql=Kl=Gl=Wl=0,Zl=Xl=null,Ql=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Fe(r),a=1<<i;t|=e[i],r&=~a}return Ul=t,Xr(),n}function Cu(e,t){G=null,P.H=Is,t===_a||t===ya?(t=Ta(),X=3):t===va?(t=Ta(),X=4):X=t===ec?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,zl=t,J===null&&(Wl=1,Js(e,mi(t,e.current)))}function wu(){var e=Qa.current;return e===null?!0:(Y&4194048)===Y?$a===null:(Y&62914560)===Y||Y&536870912?e===$a:!1}function Tu(){var e=P.H;return P.H=Is,e===null?Is:e}function Eu(){var e=P.A;return P.A=Ll,e}function Du(){Wl=4,Bl||(Y&4194048)!==Y&&Qa.current!==null||(Vl=!0),!(Gl&134217727)&&!(Kl&134217727)||q===null||yu(q,Y,Jl,!1)}function Ou(e,t,n){var r=K;K|=2;var i=Tu(),a=Eu();(q!==e||Y!==t)&&(nu=null,Su(e,t)),t=!1;var o=Wl;a:do try{if(X!==0&&J!==null){var s=J,c=zl;switch(X){case 8:xu(),o=6;break a;case 3:case 2:case 9:case 6:Qa.current===null&&(t=!0);var l=X;if(X=0,zl=null,Pu(e,s,c,l),n&&Vl){o=0;break a}break;default:l=X,X=0,zl=null,Pu(e,s,c,l)}}ku(),o=Wl;break}catch(t){Cu(e,t)}while(1);return t&&e.shellSuspendCounter++,Hi=Vi=null,K=r,P.H=i,P.A=a,J===null&&(q=null,Y=0,Xr()),o}function ku(){for(;J!==null;)Mu(J)}function Au(e,t){var n=K;K|=2;var r=Tu(),a=Eu();q!==e||Y!==t?(nu=null,tu=Ce()+500,Su(e,t)):Vl=We(e,t);a:do try{if(X!==0&&J!==null){t=J;var o=zl;b:switch(X){case 1:X=0,zl=null,Pu(e,t,o,1);break;case 2:case 9:if(xa(o)){X=0,zl=null,Nu(t);break}t=function(){X!==2&&X!==9||q!==e||(X=7),id(e)},o.then(t,t);break a;case 3:X=7;break a;case 4:X=5;break a;case 7:xa(o)?(X=0,zl=null,Nu(t)):(X=0,zl=null,Pu(e,t,o,7));break;case 5:var s=null;switch(J.tag){case 26:s=J.memoizedState;case 5:case 27:var c=J;if(s?Kf(s):c.stateNode.complete){X=0,zl=null;var l=c.sibling;if(l!==null)J=l;else{var u=c.return;u===null?J=null:(J=u,Fu(u))}break b}}X=0,zl=null,Pu(e,t,o,5);break;case 6:X=0,zl=null,Pu(e,t,o,6);break;case 8:xu(),Wl=6;break a;default:throw Error(i(462))}}ju();break}catch(t){Cu(e,t)}while(1);return Hi=Vi=null,P.H=r,P.A=a,K=n,J===null?(q=null,Y=0,Xr(),Wl):0}function ju(){for(;J!==null&&!xe();)Mu(J)}function Mu(e){var t=Ac(e.alternate,e,Ul);e.memoizedProps=e.pendingProps,t===null?Fu(e):J=t}function Nu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=mc(n,t,t.pendingProps,t.type,void 0,Y);break;case 11:t=mc(n,t,t.pendingProps,t.type.render,t.ref,Y);break;case 5:Eo(t);default:zc(n,t),t=J=si(t,Ul),t=Ac(n,t,Ul)}e.memoizedProps=e.pendingProps,t===null?Fu(e):J=t}function Pu(e,t,n,r){Hi=Vi=null,Eo(t),Da=null,Oa=0;var i=t.return;try{if($s(e,i,t,n,Y)){Wl=1,Js(e,mi(n,e.current)),J=null;return}}catch(t){if(i!==null)throw J=i,t;Wl=1,Js(e,mi(n,e.current)),J=null;return}t.flags&32768?(W||r===1?e=!0:Vl||Y&536870912?e=!1:(Bl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Qa.current,r!==null&&r.tag===13&&(r.flags|=16384))),Iu(t,e)):Fu(t)}function Fu(e){var t=e;do{if(t.flags&32768){Iu(t,Bl);return}e=t.return;var n=Lc(t.alternate,t,Ul);if(n!==null){J=n;return}if(t=t.sibling,t!==null){J=t;return}J=t=e}while(t!==null);Wl===0&&(Wl=5)}function Iu(e,t){do{var n=Rc(e.alternate,e);if(n!==null){n.flags&=32767,J=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){J=e;return}J=e=n}while(e!==null);Wl=6,J=null}function Lu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Hu();while(iu!==0);if(K&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=Yr,Ye(e,n,o,s,c,l),e===q&&(J=q=null,Y=0),ou=t,au=e,su=n,cu=o,lu=a,uu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Zu(De,function(){return Uu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=P.T,P.T=null,a=F.p,F.p=2,s=K,K|=4;try{il(e,t,n)}finally{K=s,F.p=a,P.T=r}}iu=1,Ru(),zu(),Bu()}}function Ru(){if(iu===1){iu=0;var e=au,t=ou,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=K;K|=4;try{_l(t,e);var a=Vd,o=Cr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Sr(s.ownerDocument.documentElement,s)){if(c!==null&&wr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=xr(s,h),v=xr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}lp=!!Bd,Vd=Bd=null}finally{K=i,F.p=r,P.T=n}}e.current=t,iu=2}}function zu(){if(iu===2){iu=0;var e=au,t=ou,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=P.T,P.T=null;var r=F.p;F.p=2;var i=K;K|=4;try{al(e,t.alternate,t)}finally{K=i,F.p=r,P.T=n}}iu=3}}function Bu(){if(iu===4||iu===3){iu=0,Se();var e=au,t=ou,n=su,r=uu;t.subtreeFlags&10256||t.flags&10256?iu=5:(iu=0,ou=au=null,Vu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ru=null),et(n),t=t.stateNode,Ne&&typeof Ne.onCommitFiberRoot==`function`)try{Ne.onCommitFiberRoot(Me,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=P.T,i=F.p,F.p=2,P.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{P.T=t,F.p=i}}su&3&&Hu(),id(e),i=e.pendingLanes,n&261930&&i&42?e===fu?du++:(du=0,fu=e):du=0,ad(0,!1)}}function Vu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ia(t)))}function Hu(){return Ru(),zu(),Bu(),Uu()}function Uu(){if(iu!==5)return!1;var e=au,t=cu;cu=0;var n=et(su),r=P.T,a=F.p;try{F.p=32>n?32:n,P.T=null,n=lu,lu=null;var o=au,s=su;if(iu=0,ou=au=null,su=0,K&6)throw Error(i(331));var c=K;if(K|=4,Pl(o.current),El(o,o.current,s,n),K=c,ad(0,!1),Ne&&typeof Ne.onPostCommitFiberRoot==`function`)try{Ne.onPostCommitFiberRoot(Me,o)}catch{}return!0}finally{F.p=a,P.T=r,Vu(e,t)}}function Wu(e,t,n){t=mi(n,t),t=Xs(e.stateNode,t,2),e=za(e,t,2),e!==null&&(Je(e,2),id(e))}function Gu(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=mi(n,e),n=Zs(2),r=za(t,n,2),r!==null&&(Qs(n,r,t,e),Je(r,2),id(r));break}}t=t.return}}function Ku(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;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)||(Hl=!0,i.add(n),e=qu.bind(null,e,t,n),t.then(e,e))}function qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,q===e&&(Y&n)===n&&(Wl===4||Wl===3&&(Y&62914560)===Y&&300>Ce()-$l?!(K&2)&&Su(e,0):ql|=n,Yl===Y&&(Yl=0)),id(e)}function Ju(e,t){t===0&&(t=Ke()),e=$r(e,t),e!==null&&(Je(e,t),id(e))}function Yu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Ju(e,n)}function Xu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Ju(e,n)}function Zu(e,t){return ye(e,t)}var Qu=null,$u=null,ed=!1,td=!1,nd=!1,rd=0;function id(e){e!==$u&&e.next===null&&($u===null?Qu=$u=e:$u=$u.next=e),td=!0,ed||(ed=!0,dd())}function ad(e,t){if(!nd&&td){nd=!0;do for(var n=!1,r=Qu;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Fe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ud(r,a))}else a=Y,a=Ue(r,r===q?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||We(r,a)||(n=!0,ud(r,a));r=r.next}while(n);nd=!1}}function od(){sd()}function sd(){td=ed=!1;var e=0;rd!==0&&qd()&&(e=rd);for(var t=Ce(),n=null,r=Qu;r!==null;){var i=r.next,a=cd(r,t);a===0?(r.next=null,n===null?Qu=i:n.next=i,i===null&&($u=n)):(n=r,(e!==0||a&3)&&(td=!0)),r=i}iu!==0&&iu!==5||ad(e,!1),rd!==0&&(rd=0)}function cd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Fe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ge(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=q,n=Y,n=Ue(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(X===2||X===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&be(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||We(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&be(r),et(n)){case 2:case 8:n=Ee;break;case 32:n=De;break;case 268435456:n=ke;break;default:n=De}return r=ld.bind(null,e),n=ye(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&be(r),e.callbackPriority=2,e.callbackNode=null,2}function ld(e,t){if(iu!==0&&iu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Hu()&&e.callbackNode!==n)return null;var r=Y;return r=Ue(e,e===q?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(gu(e,r,t),cd(e,Ce()),e.callbackNode!=null&&e.callbackNode===n?ld.bind(null,e):null)}function ud(e,t){if(Hu())return null;gu(e,t,!0)}function dd(){Zd(function(){K&6?ye(Te,od):sd()})}function fd(){if(rd===0){var e=sa;e===0&&(e=ze,ze<<=1,!(ze&261888)&&(ze=256)),rd=e}return rd}function pd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Xt(``+e)}function md(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function hd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=pd((i[at]||null).action),o=r.submitter;o&&(t=(t=o[at]||null)?pd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new yn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(rd!==0){var e=o?md(i,o):new FormData(i);Ss(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?md(i,o):new FormData(i),Ss(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var gd=0;gd<Wr.length;gd++){var _d=Wr[gd];Gr(_d.toLowerCase(),`on`+(_d[0].toUpperCase()+_d.slice(1)))}Gr(Ir,`onAnimationEnd`),Gr(Lr,`onAnimationIteration`),Gr(Rr,`onAnimationStart`),Gr(`dblclick`,`onDoubleClick`),Gr(`focusin`,`onFocus`),Gr(`focusout`,`onBlur`),Gr(zr,`onTransitionRun`),Gr(Br,`onTransitionStart`),Gr(Vr,`onTransitionCancel`),Gr(Hr,`onTransitionEnd`),xt(`onMouseEnter`,[`mouseout`,`mouseover`]),xt(`onMouseLeave`,[`mouseout`,`mouseover`]),xt(`onPointerEnter`,[`pointerout`,`pointerover`]),xt(`onPointerLeave`,[`pointerout`,`pointerover`]),bt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),bt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),bt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),bt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),bt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),bt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var vd=`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(` `),yd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(vd));function bd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Kr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Kr(e)}i.currentTarget=null,a=c}}}}function Z(e,t){var n=t[st];n===void 0&&(n=t[st]=new Set);var r=e+`__bubble`;n.has(r)||(wd(t,e,2,!1),n.add(r))}function xd(e,t,n){var r=0;t&&(r|=4),wd(n,e,r,t)}var Sd=`_reactListening`+Math.random().toString(36).slice(2);function Cd(e){if(!e[Sd]){e[Sd]=!0,vt.forEach(function(t){t!==`selectionchange`&&(yd.has(t)||xd(t,!1,e),xd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sd]||(t[Sd]=!0,xd(`selectionchange`,!1,t))}}function wd(e,t,n,r){switch(gp(t)){case 2:var i=up;break;case 8:i=dp;break;default:i=fp}n=i.bind(null,t,n,e),i=void 0,!cn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Td(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=pt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}an(function(){var r=a,i=$t(n),s=[];a:{var c=Ur.get(e);if(c!==void 0){var l=yn,u=e;switch(e){case`keypress`:if(mn(n)===0)break a;case`keydown`:case`keyup`:l=Ln;break;case`focusin`:u=`focus`,l=On;break;case`focusout`:u=`blur`,l=On;break;case`beforeblur`:case`afterblur`:l=On;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=En;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Dn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=zn;break;case Ir:case Lr:case Rr:l=kn;break;case Hr:l=Bn;break;case`scroll`:case`scrollend`:l=xn;break;case`wheel`:l=Vn;break;case`copy`:case`cut`:case`paste`:l=An;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Rn;break;case`toggle`:case`beforetoggle`:l=Hn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=on(m,p),g!=null&&d.push(Ed(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Qt&&(u=n.relatedTarget||n.fromElement)&&(pt(u)||u[ot]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?pt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=En,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Rn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:ht(l),h=u==null?c:ht(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,pt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Od,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&kd(s,c,l,d,!1),u!==null&&f!==null&&kd(s,f,u,d,!0)}}a:{if(c=r?ht(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=cr;else if(nr(c))if(lr)v=gr;else{v=mr;var y=H}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&qt(r.elementType)&&(v=cr):v=hr;if(v&&=v(e,r)){rr(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&zt(c,`number`,c.value)}switch(y=r?ht(r):window,e){case`focusin`:(nr(y)||y.contentEditable===`true`)&&(Er=y,Dr=r,Or=null);break;case`focusout`:Or=Dr=Er=null;break;case`mousedown`:kr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:kr=!1,Ar(s,n,i);break;case`selectionchange`:if(Tr)break;case`keydown`:case`keyup`:Ar(s,n,i)}var b;if(Wn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Qn?Xn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(qn&&n.locale!==`ko`&&(Qn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Qn&&(b=pn()):(un=i,dn=`value`in un?un.value:un.textContent,Qn=!0)),y=Dd(r,x),0<y.length&&(x=new jn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=Zn(n),b!==null&&(x.data=b)))),(b=Kn?$n(e,n):er(e,n))&&(x=Dd(r,`onBeforeInput`),0<x.length&&(y=new jn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),hd(s,e,r,n,i)}bd(s,t)})}function Ed(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Dd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=on(e,n),i!=null&&r.unshift(Ed(e,i,a)),i=on(e,t),i!=null&&r.push(Ed(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Od(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function kd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=on(n,a),l!=null&&o.unshift(Ed(n,l,c))):i||(l=on(n,a),l!=null&&o.push(Ed(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ad=/\r\n?/g,jd=/\u0000|\uFFFD/g;function Md(e){return(typeof e==`string`?e:``+e).replace(Ad,`
10
+ `).replace(jd,``)}function Nd(e,t){return t=Md(t),Md(e)===t}function Pd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Ut(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Ut(e,``+r);break;case`className`:Dt(e,`class`,r);break;case`tabIndex`:Dt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Dt(e,n,r);break;case`style`:Kt(e,r,o);break;case`data`:if(t!==`object`){Dt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Xt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof o==`function`&&(n===`formAction`?(t!==`input`&&Pd(e,t,`name`,a.name,a,null),Pd(e,t,`formEncType`,a.formEncType,a,null),Pd(e,t,`formMethod`,a.formMethod,a,null),Pd(e,t,`formTarget`,a.formTarget,a,null)):(Pd(e,t,`encType`,a.encType,a,null),Pd(e,t,`method`,a.method,a,null),Pd(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Xt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Zt);break;case`onScroll`:r!=null&&Z(`scroll`,e);break;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Xt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Z(`beforetoggle`,e),Z(`toggle`,e),Et(e,`popover`,r);break;case`xlinkActuate`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:Ot(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:Ot(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:Ot(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:Ot(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Et(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Jt.get(n)||n,Et(e,n,r))}}function Fd(e,t,n,r,a,o){switch(n){case`style`:Kt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Ut(e,r):(typeof r==`number`||typeof r==`bigint`)&&Ut(e,``+r);break;case`onScroll`:r!=null&&Z(`scroll`,e);break;case`onScrollEnd`:r!=null&&Z(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Zt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!yt.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[at]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):Et(e,n,r)}}}function Id(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Z(`error`,e),Z(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Pd(e,t,o,s,n,null)}}a&&Pd(e,t,`srcSet`,n.srcSet,n,null),r&&Pd(e,t,`src`,n.src,n,null);return;case`input`:Z(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Pd(e,t,r,d,n,null)}}Rt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Z(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Pd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Bt(e,!!r,n,!0):Bt(e,!!r,t,!1);return;case`textarea`:for(s in Z(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Pd(e,t,s,c,n,null)}Ht(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Pd(e,t,l,r,n,null)}return;case`dialog`:Z(`beforetoggle`,e),Z(`toggle`,e),Z(`cancel`,e),Z(`close`,e);break;case`iframe`:case`object`:Z(`load`,e);break;case`video`:case`audio`:for(r=0;r<vd.length;r++)Z(vd[r],e);break;case`image`:Z(`error`,e),Z(`load`,e);break;case`details`:Z(`toggle`,e);break;case`embed`:case`source`:case`link`:Z(`error`,e),Z(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Pd(e,t,u,r,n,null)}return;default:if(qt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Fd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Pd(e,t,c,r,n,null))}function Ld(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Pd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Pd(e,t,p,m,r,f)}}Lt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Pd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Pd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Bt(e,!!n,n?[]:``,!1):Bt(e,!!n,t,!0)):Bt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Pd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Pd(e,t,s,a,r,o)}Vt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Pd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Pd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Pd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Pd(e,t,u,p,r,m)}return;default:if(qt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Fd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Fd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Pd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Pd(e,t,f,p,r,m)}function Rd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function zd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Rd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Rd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Bd=null,Vd=null;function Hd(e){return e.nodeType===9?e:e.ownerDocument}function Ud(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Wd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Gd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Kd=null;function qd(){var e=window.event;return e&&e.type===`popstate`?e===Kd?!1:(Kd=e,!0):(Kd=null,!1)}var Jd=typeof setTimeout==`function`?setTimeout:void 0,Yd=typeof clearTimeout==`function`?clearTimeout:void 0,Xd=typeof Promise==`function`?Promise:void 0,Zd=typeof queueMicrotask==`function`?queueMicrotask:Xd===void 0?Jd:function(e){return Xd.resolve(null).then(e).catch(Qd)};function Qd(e){setTimeout(function(){throw e})}function $d(e){return e===`head`}function ef(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===`/$`||n===`/&`){if(r===0){e.removeChild(i),Fp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)hf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,hf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[dt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&hf(e.ownerDocument.body);n=i}while(n);Fp(t)}function tf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function nf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:nf(n),ft(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[dt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=uf(e.nextSibling),e===null)break}return null}function af(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=uf(e.nextSibling),e===null))return null;return e}function of(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=uf(e.nextSibling),e===null))return null;return e}function sf(e){return e.data===`$?`||e.data===`$~`}function cf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function lf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function uf(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===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var df=null;function ff(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return uf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function pf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function mf(e,t,n){switch(t=Hd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function hf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ft(e)}var gf=new Map,_f=new Set;function vf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var yf=F.d;F.d={f:bf,r:xf,D:wf,C:Tf,L:Ef,m:Df,X:kf,S:Of,M:Af};function bf(){var e=yf.f(),t=bu();return e||t}function xf(e){var t=mt(e);t!==null&&t.tag===5&&t.type===`form`?ws(t):yf.r(e)}var Sf=typeof document>`u`?null:document;function Cf(e,t,n){var r=Sf;if(r&&typeof t==`string`&&t){var i=It(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),_f.has(i)||(_f.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Id(t,`link`,e),_t(t),r.head.appendChild(t)))}}function wf(e){yf.D(e),Cf(`dns-prefetch`,e,null)}function Tf(e,t){yf.C(e,t),Cf(`preconnect`,e,t)}function Ef(e,t,n){yf.L(e,t,n);var r=Sf;if(r&&e&&t){var i=`link[rel="preload"][as="`+It(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+It(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+It(n.imageSizes)+`"]`)):i+=`[href="`+It(e)+`"]`;var a=i;switch(t){case`style`:a=Mf(e);break;case`script`:a=If(e)}gf.has(a)||(e=p({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),gf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Nf(a))||t===`script`&&r.querySelector(Lf(a))||(t=r.createElement(`link`),Id(t,`link`,e),_t(t),r.head.appendChild(t)))}}function Df(e,t){yf.m(e,t);var n=Sf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+It(r)+`"][href="`+It(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=If(e)}if(!gf.has(a)&&(e=p({rel:`modulepreload`,href:e},t),gf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Lf(a)))return}r=n.createElement(`link`),Id(r,`link`,e),_t(r),n.head.appendChild(r)}}}function Of(e,t,n){yf.S(e,t,n);var r=Sf;if(r&&e){var i=gt(r).hoistableStyles,a=Mf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Nf(a)))s.loading=5;else{e=p({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=gf.get(a))&&Bf(e,n);var c=o=r.createElement(`link`);_t(c),Id(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,zf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function kf(e,t){yf.X(e,t);var n=Sf;if(n&&e){var r=gt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),_t(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Af(e,t){yf.M(e,t);var n=Sf;if(n&&e){var r=gt(n).hoistableScripts,i=If(e),a=r.get(i);a||(a=n.querySelector(Lf(i)),a||(e=p({src:e,async:!0,type:`module`},t),(t=gf.get(i))&&Vf(e,t),a=n.createElement(`script`),_t(a),Id(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function jf(e,t,n,r){var a=(a=se.current)?vf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Mf(n.href),n=gt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Mf(n.href);var o=gt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Nf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),gf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gf.set(e,n),o||Ff(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=If(n),n=gt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Mf(e){return`href="`+It(e)+`"`}function Nf(e){return`link[rel="stylesheet"][`+e+`]`}function Pf(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Ff(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Id(t,`link`,n),_t(t),e.head.appendChild(t))}function If(e){return`[src="`+It(e)+`"]`}function Lf(e){return`script[async]`+e}function Rf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+It(n.href)+`"]`);if(r)return t.instance=r,_t(r),r;var a=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),_t(r),Id(r,`style`,a),zf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Mf(n.href);var o=e.querySelector(Nf(a));if(o)return t.state.loading|=4,t.instance=o,_t(o),o;r=Pf(n),(a=gf.get(a))&&Bf(r,a),o=(e.ownerDocument||e).createElement(`link`),_t(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Id(o,`link`,r),t.state.loading|=4,zf(o,n.precedence,e),t.instance=o;case`script`:return o=If(n.src),(a=e.querySelector(Lf(o)))?(t.instance=a,_t(a),a):(r=n,(a=gf.get(o))&&(r=p({},n),Vf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),_t(a),Id(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,zf(r,n.precedence,e));return t.instance}function zf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Bf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Vf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Hf=null;function Uf(e,t,n){if(Hf===null){var r=new Map,i=Hf=new Map;i.set(n,r)}else i=Hf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[dt]||a[it]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Wf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Gf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Kf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function qf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Mf(r.href),a=t.querySelector(Nf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Xf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,_t(a);return}a=t.ownerDocument||t,r=Pf(r),(i=gf.get(i))&&Bf(r,i),a=a.createElement(`link`),_t(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Id(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Xf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Jf=0;function Yf(e,t){return e.stylesheets&&e.count===0&&Qf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Jf===0&&(Jf=62500*zd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Jf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Xf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function Qf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach($f,e),Zf=null,Xf.call(e))}function $f(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Xf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var ep={$$typeof:C,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function tp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=qe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qe(0),this.hiddenUpdates=qe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function np(e,t,n,r,i,a,o,s,c,l,u,d){return e=new tp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ii(3,null,null,t),e.current=a,a.stateNode=e,t=ra(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Ia(a),e}function rp(e){return e?(e=ni,e):ni}function ip(e,t,n,r,i,a){i=rp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ra(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=za(e,r,t),n!==null&&(hu(n,e,t),Ba(n,e,t))}function ap(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function op(e,t){ap(e,t),(e=e.alternate)&&ap(e,t)}function sp(e){if(e.tag===13||e.tag===31){var t=$r(e,67108864);t!==null&&hu(t,e,67108864),op(e,67108864)}}function cp(e){if(e.tag===13||e.tag===31){var t=pu();t=$e(t);var n=$r(e,t);n!==null&&hu(n,e,t),op(e,t)}}var lp=!0;function up(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=2,fp(e,t,n,r)}finally{F.p=a,P.T=i}}function dp(e,t,n,r){var i=P.T;P.T=null;var a=F.p;try{F.p=8,fp(e,t,n,r)}finally{F.p=a,P.T=i}}function fp(e,t,n,r){if(lp){var i=pp(r);if(i===null)Td(e,t,r,mp,n),Tp(e,r);else if(Dp(i,e,t,n,r))r.stopPropagation();else if(Tp(e,r),t&4&&-1<wp.indexOf(e)){for(;i!==null;){var a=mt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=He(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Fe(o);s.entanglements[1]|=c,o&=~c}id(a),!(K&6)&&(tu=Ce()+500,ad(0,!1))}}break;case 31:case 13:s=$r(a,2),s!==null&&hu(s,a,2),bu(),op(a,2)}if(a=pp(r),a===null&&Td(e,t,r,mp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Td(e,t,r,null,n)}}function pp(e){return e=$t(e),hp(e)}var mp=null;function hp(e){if(mp=null,e=pt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(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 mp=e,null}function gp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(we()){case Te:return 2;case Ee:return 8;case De:case Oe:return 32;case ke:return 268435456;default:return 32}default:return 32}}var _p=!1,vp=null,yp=null,bp=null,xp=new Map,Sp=new Map,Cp=[],wp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Tp(e,t){switch(e){case`focusin`:case`focusout`:vp=null;break;case`dragenter`:case`dragleave`:yp=null;break;case`mouseover`:case`mouseout`:bp=null;break;case`pointerover`:case`pointerout`:xp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Sp.delete(t.pointerId)}}function Ep(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=mt(t),t!==null&&sp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Dp(e,t,n,r,i){switch(t){case`focusin`:return vp=Ep(vp,e,t,n,r,i),!0;case`dragenter`:return yp=Ep(yp,e,t,n,r,i),!0;case`mouseover`:return bp=Ep(bp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return xp.set(a,Ep(xp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Sp.set(a,Ep(Sp.get(a)||null,e,t,n,r,i)),!0}return!1}function Op(e){var t=pt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,nt(e.priority,function(){cp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,nt(e.priority,function(){cp(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 kp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Qt=r,n.target.dispatchEvent(r),Qt=null}else return t=mt(n),t!==null&&sp(t),e.blockedOn=n,!1;t.shift()}return!0}function Ap(e,t,n){kp(e)&&n.delete(t)}function jp(){_p=!1,vp!==null&&kp(vp)&&(vp=null),yp!==null&&kp(yp)&&(yp=null),bp!==null&&kp(bp)&&(bp=null),xp.forEach(Ap),Sp.forEach(Ap)}function Mp(e,n){e.blockedOn===n&&(e.blockedOn=null,_p||(_p=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,jp)))}var Np=null;function Pp(e){Np!==e&&(Np=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Np===e&&(Np=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(hp(r||n)===null)continue;break}var a=mt(n);a!==null&&(e.splice(t,3),t-=3,Ss(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Fp(e){function t(t){return Mp(t,e)}vp!==null&&Mp(vp,e),yp!==null&&Mp(yp,e),bp!==null&&Mp(bp,e),xp.forEach(t),Sp.forEach(t);for(var n=0;n<Cp.length;n++){var r=Cp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Cp.length&&(n=Cp[0],n.blockedOn===null);)Op(n),n.blockedOn===null&&Cp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[at]||null;if(typeof a==`function`)o||Pp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[at]||null)s=o.formAction;else if(hp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Pp(n)}}}function Ip(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Lp(e){this._internalRoot=e}Rp.prototype.render=Lp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;ip(n,pu(),e,t,null,null)},Rp.prototype.unmount=Lp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ip(e.current,2,null,e,null,null),bu(),t[ot]=null}};function Rp(e){this._internalRoot=e}Rp.prototype.unstable_scheduleHydration=function(e){if(e){var t=tt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Cp.length&&t!==0&&t<Cp[n].priority;n++);Cp.splice(n,0,e),n===0&&Op(e)}};var zp=n.version;if(zp!==`19.2.6`)throw Error(i(527,zp,`19.2.6`));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Bp={bundleType:0,version:`19.2.6`,rendererPackageName:`react-dom`,currentDispatcherRef:P,reconcilerVersion:`19.2.6`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Vp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vp.isDisabled&&Vp.supportsFiber)try{Me=Vp.inject(Bp),Ne=Vp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Gs,s=Ks,c=qs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=np(e,1,!1,null,null,n,r,null,o,s,c,Ip),e[ot]=t.current,Cd(e),new Lp(t)}})),v=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=_()})),y=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),b=o(((e,t)=>{t.exports=y()})),x=v(),S=l(f(),1),C=b(),w=(0,S.createContext)(null);function T({children:e}){let[t,n]=(0,S.useState)(null),[r,i]=(0,S.useState)(``),a=(0,S.useMemo)(()=>({scope:t,setScope:n,intent:r,setIntent:i}),[t,r]);return(0,C.jsx)(w.Provider,{value:a,children:e})}function E(){let e=(0,S.useContext)(w);if(!e)throw Error(`useScope must be used inside <ScopeProvider>`);return e}function D({files:e}){let{scope:t,setScope:n}=E(),r=(0,S.useMemo)(()=>e?A(e):[],[e]);return e===null?(0,C.jsx)(`div`,{className:`file-tree file-tree--loading`,children:`Loading…`}):e.length===0?(0,C.jsx)(`div`,{className:`file-tree file-tree--empty`,children:`No files`}):(0,C.jsx)(`nav`,{className:`file-tree`,"aria-label":`Files`,children:r.map(e=>(0,C.jsx)(O,{node:e,depth:0,scope:t,setScope:n},e.path))})}function O({node:e,depth:t,scope:n,setScope:r}){let[i,a]=(0,S.useState)(t===0),o=8+t*12;if(e.kind===`file`){let t=n?.kind===`file`&&n.path===e.path;return(0,C.jsx)(`button`,{type:`button`,className:n?.kind===`multi`&&n.paths.includes(e.path)?`file-tree__row file-tree__row--multi`:`file-tree__row`,"aria-current":t?`true`:void 0,style:{paddingLeft:o+20},onClick:t=>{let i=t.metaKey||t.ctrlKey;r(k(n,e.path,i))},children:e.name})}let s=n?.kind===`directory`&&n.path===e.path;return(0,C.jsxs)(`div`,{className:`file-tree__group`,children:[(0,C.jsxs)(`div`,{className:s?`file-tree__group-header file-tree__group-header--selected`:`file-tree__group-header`,style:{paddingLeft:o},title:`${e.path}/ (${e.descendantFiles.length} files)`,role:`button`,tabIndex:0,"aria-pressed":s,onClick:()=>r({kind:`directory`,path:e.path}),onKeyDown:t=>{(t.key===`Enter`||t.key===` `)&&(t.preventDefault(),r({kind:`directory`,path:e.path}))},children:[(0,C.jsx)(`button`,{type:`button`,className:`file-tree__chevron-btn`,onClick:e=>{e.stopPropagation(),a(e=>!e)},"aria-expanded":i,"aria-label":i?`Collapse ${e.name}`:`Expand ${e.name}`,children:(0,C.jsx)(`span`,{"aria-hidden":`true`,children:i?`▼`:`▶`})}),(0,C.jsx)(`span`,{className:`file-tree__group-icon`,"aria-hidden":`true`,children:s?`📂`:`📁`}),(0,C.jsx)(`span`,{className:`file-tree__group-name`,children:e.name})]}),i&&e.children.map(e=>(0,C.jsx)(O,{node:e,depth:t+1,scope:n,setScope:r},e.path))]})}function k(e,t,n){if(!n||e===null||e.kind===`directory`)return{kind:`file`,path:t};if(e.kind===`file`)return e.path===t?null:{kind:`multi`,paths:[e.path,t]};if(e.paths.includes(t)){let n=e.paths.filter(e=>e!==t);return n.length===0?null:n.length===1?{kind:`file`,path:n[0]}:{kind:`multi`,paths:n}}return{kind:`multi`,paths:[...e.paths,t]}}function A(e){let t={kind:`dir`,name:``,path:``,children:[],descendantFiles:[],childIndex:new Map};for(let n of e){let e=n.split(`/`),r=t;for(let t=0;t<e.length-1;t++){let n=e[t],i=r.childIndex.get(n);i||(i={kind:`dir`,name:n,path:e.slice(0,t+1).join(`/`),children:[],descendantFiles:[],childIndex:new Map},r.childIndex.set(n,i),r.children.push(i)),r=i}r.children.push({kind:`file`,name:e[e.length-1],path:n})}function n(e){e.children.sort((e,t)=>e.kind===t.kind?e.name.localeCompare(t.name):e.kind===`dir`?-1:1);for(let t of e.children)t.kind===`dir`&&n(t)}n(t);function r(e){if(e.kind===`file`)return[e.path];let t=[];for(let n of e.children)t.push(...r(n));return e.descendantFiles=t,t}for(let e of t.children)r(e);return t.children}var j=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,N=Object.prototype.hasOwnProperty,te=(e,t)=>{let n={};for(var r in e)j(n,r,{get:e[r],enumerable:!0});return t||j(n,Symbol.toStringTag,{value:`Module`}),n},P=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=M(t),a=0,o=i.length,s;a<o;a++)s=i[a],!N.call(e,s)&&s!==n&&j(e,s,{get:(e=>t[e]).bind(null,s),enumerable:!(r=ee(t,s))||r.enumerable});return e},F=(e,t,n)=>(P(e,t,`default`),n&&P(n,t,`default`)),ne=`modulepreload`,re=function(e){return`/`+e},ie={},I=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=re(t,n),t in ie)return;ie[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:ne,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},L=[{id:`abap`,name:`ABAP`,import:(()=>I(()=>import(`./abap-DOv5zRgd.js`),[]))},{id:`actionscript-3`,name:`ActionScript`,import:(()=>I(()=>import(`./actionscript-3-D_b0n2Ff.js`),[]))},{id:`ada`,name:`Ada`,import:(()=>I(()=>import(`./ada-C6m8O36S.js`),[]))},{id:`angular-html`,name:`Angular HTML`,import:(()=>I(()=>import(`./angular-html-yQleOZR_.js`).then(e=>e.n),__vite__mapDeps([0,1,2,3])))},{id:`angular-ts`,name:`Angular TypeScript`,import:(()=>I(()=>import(`./angular-ts-CNLtkSah.js`),__vite__mapDeps([4,0,1,2,3,5])))},{id:`apache`,name:`Apache Conf`,import:(()=>I(()=>import(`./apache-CE7PmWoU.js`),[]))},{id:`apex`,name:`Apex`,import:(()=>I(()=>import(`./apex-DOfNfL0V.js`),[]))},{id:`apl`,name:`APL`,import:(()=>I(()=>import(`./apl-BPLo_IWv.js`),__vite__mapDeps([6,2,1,3,7,8,9])))},{id:`applescript`,name:`AppleScript`,import:(()=>I(()=>import(`./applescript-D4zGaScB.js`),[]))},{id:`ara`,name:`Ara`,import:(()=>I(()=>import(`./ara-DMoCP0pJ.js`),[]))},{id:`asciidoc`,name:`AsciiDoc`,aliases:[`adoc`],import:(()=>I(()=>import(`./asciidoc-BkmPq932.js`),[]))},{id:`asm`,name:`Assembly`,import:(()=>I(()=>import(`./asm-ClIKbvsu.js`),[]))},{id:`astro`,name:`Astro`,import:(()=>I(()=>import(`./astro-DhskwrBd.js`),__vite__mapDeps([10,2,3,7,11,12,13])))},{id:`awk`,name:`AWK`,import:(()=>I(()=>import(`./awk-D1ZOsISX.js`),[]))},{id:`ballerina`,name:`Ballerina`,import:(()=>I(()=>import(`./ballerina-H14_EqPr.js`),[]))},{id:`bat`,name:`Batch File`,aliases:[`batch`],import:(()=>I(()=>import(`./bat-cyb3gF8B.js`),[]))},{id:`beancount`,name:`Beancount`,import:(()=>I(()=>import(`./beancount-D84pBacF.js`),[]))},{id:`berry`,name:`Berry`,aliases:[`be`],import:(()=>I(()=>import(`./berry-B29XeKK4.js`),[]))},{id:`bibtex`,name:`BibTeX`,import:(()=>I(()=>import(`./bibtex-Hs7VvQaV.js`),[]))},{id:`bicep`,name:`Bicep`,import:(()=>I(()=>import(`./bicep-CugTE5CQ.js`),[]))},{id:`bird2`,name:`BIRD2 Configuration`,aliases:[`bird`],import:(()=>I(()=>import(`./bird2-mieRHotO.js`),[]))},{id:`blade`,name:`Blade`,import:(()=>I(()=>import(`./blade-DkApxyPN.js`),__vite__mapDeps([14,2,15,1,3,7,16,8,9])))},{id:`bsl`,name:`1C (Enterprise)`,aliases:[`1c`],import:(()=>I(()=>import(`./bsl-BRmzGEWg.js`),__vite__mapDeps([17,18])))},{id:`c`,name:`C`,import:(()=>I(()=>import(`./c-B5rzbwvf.js`).then(e=>e.n),[]))},{id:`c3`,name:`C3`,import:(()=>I(()=>import(`./c3-Dx2gByXW.js`),[]))},{id:`cadence`,name:`Cadence`,aliases:[`cdc`],import:(()=>I(()=>import(`./cadence-CCTSwj3w.js`),[]))},{id:`cairo`,name:`Cairo`,import:(()=>I(()=>import(`./cairo-CaIu88t6.js`),__vite__mapDeps([19,20])))},{id:`clarity`,name:`Clarity`,import:(()=>I(()=>import(`./clarity-BbUNTPrg.js`),[]))},{id:`clojure`,name:`Clojure`,aliases:[`clj`],import:(()=>I(()=>import(`./clojure-Bcw7lCta.js`),[]))},{id:`cmake`,name:`CMake`,import:(()=>I(()=>import(`./cmake-DM0FE-T9.js`),[]))},{id:`cobol`,name:`COBOL`,import:(()=>I(()=>import(`./cobol-CqUv7Fx7.js`),__vite__mapDeps([21,1,2,3,9])))},{id:`codeowners`,name:`CODEOWNERS`,import:(()=>I(()=>import(`./codeowners-CBvEPOlS.js`),[]))},{id:`codeql`,name:`CodeQL`,aliases:[`ql`],import:(()=>I(()=>import(`./codeql-CjS8Tp16.js`),[]))},{id:`coffee`,name:`CoffeeScript`,aliases:[`coffeescript`],import:(()=>I(()=>import(`./coffee-qCane8NK.js`),__vite__mapDeps([22,3])))},{id:`common-lisp`,name:`Common Lisp`,aliases:[`lisp`],import:(()=>I(()=>import(`./common-lisp-BCx4dVK8.js`),[]))},{id:`coq`,name:`Coq`,import:(()=>I(()=>import(`./coq-Ddo7YIsR.js`),[]))},{id:`cpp`,name:`C++`,aliases:[`c++`],import:(()=>I(()=>import(`./cpp-BKSa3oke.js`).then(e=>e.n),__vite__mapDeps([23,24,25,26,16])))},{id:`crystal`,name:`Crystal`,import:(()=>I(()=>import(`./crystal-CkR_ZpXj.js`),__vite__mapDeps([27,25,2,1,3,28,16])))},{id:`csharp`,name:`C#`,aliases:[`c#`,`cs`],import:(()=>I(()=>import(`./csharp-Kzd7Ey2d.js`),[]))},{id:`css`,name:`CSS`,import:(()=>I(()=>import(`./css-C6IA-Mby.js`).then(e=>e.n),[]))},{id:`csv`,name:`CSV`,import:(()=>I(()=>import(`./csv-DGwgERVJ.js`),[]))},{id:`cue`,name:`CUE`,import:(()=>I(()=>import(`./cue-CMabdDG0.js`),[]))},{id:`cypher`,name:`Cypher`,aliases:[`cql`],import:(()=>I(()=>import(`./cypher-CJUzJAhQ.js`),[]))},{id:`d`,name:`D`,import:(()=>I(()=>import(`./d-BvLF4qGs.js`),[]))},{id:`dart`,name:`Dart`,import:(()=>I(()=>import(`./dart-DxXbDeKR.js`),[]))},{id:`dax`,name:`DAX`,import:(()=>I(()=>import(`./dax-BvrCypuS.js`),[]))},{id:`desktop`,name:`Desktop`,import:(()=>I(()=>import(`./desktop-BEul_kAS.js`),[]))},{id:`diff`,name:`Diff`,import:(()=>I(()=>import(`./diff-B7rhrwA5.js`),[]))},{id:`docker`,name:`Dockerfile`,aliases:[`dockerfile`],import:(()=>I(()=>import(`./docker-9Zbx0dQX.js`),[]))},{id:`dotenv`,name:`dotEnv`,import:(()=>I(()=>import(`./dotenv-C0epktMv.js`),[]))},{id:`dream-maker`,name:`Dream Maker`,import:(()=>I(()=>import(`./dream-maker-D6UB367x.js`),[]))},{id:`edge`,name:`Edge`,import:(()=>I(()=>import(`./edge-pdIcE-A_.js`),__vite__mapDeps([29,15,1,2,3,13])))},{id:`elixir`,name:`Elixir`,import:(()=>I(()=>import(`./elixir-BESKS8rl.js`),__vite__mapDeps([30,1,2,3])))},{id:`elm`,name:`Elm`,import:(()=>I(()=>import(`./elm-BkW2o9SB.js`),__vite__mapDeps([31,24,25])))},{id:`emacs-lisp`,name:`Emacs Lisp`,aliases:[`elisp`],import:(()=>I(()=>import(`./emacs-lisp-DFyMFAZA.js`),[]))},{id:`erb`,name:`ERB`,import:(()=>I(()=>import(`./erb-B6dO5BAV.js`),__vite__mapDeps([32,1,2,3,33,25,23,24,26,16,34,35,12,13,36,37,28,8,9,38])))},{id:`erlang`,name:`Erlang`,aliases:[`erl`],import:(()=>I(()=>import(`./erlang-LvhGhZI3.js`),__vite__mapDeps([39,40])))},{id:`fennel`,name:`Fennel`,import:(()=>I(()=>import(`./fennel-CH1ohGYX.js`),[]))},{id:`fish`,name:`Fish`,import:(()=>I(()=>import(`./fish-D2X4h_sR.js`),[]))},{id:`fluent`,name:`Fluent`,aliases:[`ftl`],import:(()=>I(()=>import(`./fluent-B_In4uB6.js`),[]))},{id:`fortran-fixed-form`,name:`Fortran (Fixed Form)`,aliases:[`f`,`for`,`f77`],import:(()=>I(()=>import(`./fortran-fixed-form-BXvkHMbK.js`),__vite__mapDeps([41,42])))},{id:`fortran-free-form`,name:`Fortran (Free Form)`,aliases:[`f90`,`f95`,`f03`,`f08`,`f18`],import:(()=>I(()=>import(`./fortran-free-form-Bw_JZ1tj.js`),[]))},{id:`fsharp`,name:`F#`,aliases:[`f#`,`fs`],import:(()=>I(()=>import(`./fsharp-uxIU8dwY.js`),__vite__mapDeps([43,40])))},{id:`gdresource`,name:`GDResource`,aliases:[`tscn`,`tres`],import:(()=>I(()=>import(`./gdresource-DkI-mZL2.js`),__vite__mapDeps([44,45,46])))},{id:`gdscript`,name:`GDScript`,aliases:[`gd`],import:(()=>I(()=>import(`./gdscript-DDro0rs8.js`),[]))},{id:`gdshader`,name:`GDShader`,import:(()=>I(()=>import(`./gdshader-DkUeC1ld.js`),[]))},{id:`genie`,name:`Genie`,import:(()=>I(()=>import(`./genie-khT2hrp-.js`),[]))},{id:`gherkin`,name:`Gherkin`,import:(()=>I(()=>import(`./gherkin-CPELKal0.js`),[]))},{id:`git-commit`,name:`Git Commit Message`,import:(()=>I(()=>import(`./git-commit-a3TktZ3A.js`),__vite__mapDeps([47,48])))},{id:`git-rebase`,name:`Git Rebase Message`,import:(()=>I(()=>import(`./git-rebase-SoCRyKE3.js`),__vite__mapDeps([49,28])))},{id:`gleam`,name:`Gleam`,import:(()=>I(()=>import(`./gleam-7UVjplRF.js`),[]))},{id:`glimmer-js`,name:`Glimmer JS`,aliases:[`gjs`],import:(()=>I(()=>import(`./glimmer-js-DDelvNKZ.js`),__vite__mapDeps([50,2,1,3,13])))},{id:`glimmer-ts`,name:`Glimmer TS`,aliases:[`gts`],import:(()=>I(()=>import(`./glimmer-ts-Bpla8usy.js`),__vite__mapDeps([51,2,1,3,13])))},{id:`glsl`,name:`GLSL`,import:(()=>I(()=>import(`./glsl-DGUY5pWj.js`).then(e=>e.n),__vite__mapDeps([24,25])))},{id:`gn`,name:`GN`,import:(()=>I(()=>import(`./gn-EcrZPIZo.js`),[]))},{id:`gnuplot`,name:`Gnuplot`,import:(()=>I(()=>import(`./gnuplot-CcsFlqcz.js`),[]))},{id:`go`,name:`Go`,import:(()=>I(()=>import(`./go-TqNfhUhh.js`),[]))},{id:`graphql`,name:`GraphQL`,aliases:[`gql`],import:(()=>I(()=>import(`./graphql-BbFjoNY9.js`).then(e=>e.n),__vite__mapDeps([34,3,35,12,13])))},{id:`groovy`,name:`Groovy`,import:(()=>I(()=>import(`./groovy-bfrzFpSZ.js`),[]))},{id:`hack`,name:`Hack`,import:(()=>I(()=>import(`./hack-C0u1uES4.js`),__vite__mapDeps([52,1,2,3,16])))},{id:`haml`,name:`Ruby Haml`,import:(()=>I(()=>import(`./haml-EMli3a_F.js`).then(e=>e.n),__vite__mapDeps([36,2,3])))},{id:`handlebars`,name:`Handlebars`,aliases:[`hbs`],import:(()=>I(()=>import(`./handlebars-CgyLD371.js`),__vite__mapDeps([53,2,1,3,38])))},{id:`haskell`,name:`Haskell`,aliases:[`hs`],import:(()=>I(()=>import(`./haskell-DzEtL6Zk.js`),[]))},{id:`haxe`,name:`Haxe`,import:(()=>I(()=>import(`./haxe-wLDEcRoz.js`),[]))},{id:`hcl`,name:`HashiCorp HCL`,import:(()=>I(()=>import(`./hcl-C1fs3gTM.js`),[]))},{id:`hjson`,name:`Hjson`,import:(()=>I(()=>import(`./hjson-B4b85MZo.js`),[]))},{id:`hlsl`,name:`HLSL`,import:(()=>I(()=>import(`./hlsl-JhqkHhML.js`),[]))},{id:`html`,name:`HTML`,import:(()=>I(()=>import(`./html-5jufwj83.js`).then(e=>e.n),__vite__mapDeps([1,2,3])))},{id:`html-derivative`,name:`HTML (Derivative)`,import:(()=>I(()=>import(`./html-derivative-CcTbsN0W.js`),__vite__mapDeps([15,1,2,3])))},{id:`http`,name:`HTTP`,import:(()=>I(()=>import(`./http-3Uglmg2r.js`),__vite__mapDeps([54,34,3,35,12,13,7,28,8,9])))},{id:`hurl`,name:`Hurl`,import:(()=>I(()=>import(`./hurl-BL5NhXQh.js`),__vite__mapDeps([55,56,34,3,35,12,13,8,9])))},{id:`hxml`,name:`HXML`,import:(()=>I(()=>import(`./hxml-Bdi_kWeE.js`),__vite__mapDeps([57,58])))},{id:`hy`,name:`Hy`,import:(()=>I(()=>import(`./hy-uAHU8420.js`),[]))},{id:`imba`,name:`Imba`,import:(()=>I(()=>import(`./imba-CPCwfD-G.js`),[]))},{id:`ini`,name:`INI`,aliases:[`properties`],import:(()=>I(()=>import(`./ini-2Ew1Qzj6.js`),[]))},{id:`java`,name:`Java`,import:(()=>I(()=>import(`./java-BAnULpY2.js`).then(e=>e.n),[]))},{id:`javascript`,name:`JavaScript`,aliases:[`js`,`cjs`,`mjs`],import:(()=>I(()=>import(`./javascript-DaqIOllZ.js`).then(e=>e.n),[]))},{id:`jinja`,name:`Jinja`,import:(()=>I(()=>import(`./jinja-BT3KhNVn.js`),__vite__mapDeps([59,1,2,3])))},{id:`jison`,name:`Jison`,import:(()=>I(()=>import(`./jison-oGVXVqLv.js`),__vite__mapDeps([60,3])))},{id:`json`,name:`JSON`,import:(()=>I(()=>import(`./json-hCh8arpt.js`).then(e=>e.n),[]))},{id:`json5`,name:`JSON5`,import:(()=>I(()=>import(`./json5-Dl8gAgq4.js`),[]))},{id:`jsonc`,name:`JSON with Comments`,import:(()=>I(()=>import(`./jsonc-C9b23pMf.js`),[]))},{id:`jsonl`,name:`JSON Lines`,import:(()=>I(()=>import(`./jsonl-DkF3QjsY.js`),[]))},{id:`jsonnet`,name:`Jsonnet`,import:(()=>I(()=>import(`./jsonnet-DH4UkOBo.js`),[]))},{id:`jssm`,name:`JSSM`,aliases:[`fsl`],import:(()=>I(()=>import(`./jssm-CBV9_O8o.js`),[]))},{id:`jsx`,name:`JSX`,import:(()=>I(()=>import(`./jsx-DYtKZveK.js`).then(e=>e.n),[]))},{id:`julia`,name:`Julia`,aliases:[`jl`],import:(()=>I(()=>import(`./julia-D1Q0Afi_.js`),__vite__mapDeps([61,23,24,25,26,16,3,20,62])))},{id:`just`,name:`Just`,import:(()=>I(()=>import(`./just-DE210FW5.js`),__vite__mapDeps([63,3,64,2,1,16,8,9,20,33,25,23,24,26,34,35,12,13,36,37,28,38])))},{id:`kdl`,name:`KDL`,import:(()=>I(()=>import(`./kdl-BQl-X5Uf.js`),[]))},{id:`kotlin`,name:`Kotlin`,aliases:[`kt`,`kts`],import:(()=>I(()=>import(`./kotlin-d6oenWPH.js`),[]))},{id:`kusto`,name:`Kusto`,aliases:[`kql`],import:(()=>I(()=>import(`./kusto-Cpu9Tdho.js`),[]))},{id:`latex`,name:`LaTeX`,import:(()=>I(()=>import(`./latex-QgW6KjGR.js`),__vite__mapDeps([65,66,62])))},{id:`lean`,name:`Lean 4`,aliases:[`lean4`],import:(()=>I(()=>import(`./lean-CvyEisyW.js`),[]))},{id:`less`,name:`Less`,import:(()=>I(()=>import(`./less-B9RQiV1N.js`),[]))},{id:`liquid`,name:`Liquid`,import:(()=>I(()=>import(`./liquid-cMVZ3T4B.js`),__vite__mapDeps([67,2,1,3,7])))},{id:`llvm`,name:`LLVM IR`,import:(()=>I(()=>import(`./llvm-DtrwjsAs.js`),[]))},{id:`log`,name:`Log file`,import:(()=>I(()=>import(`./log-JKbKuM4J.js`),[]))},{id:`logo`,name:`Logo`,import:(()=>I(()=>import(`./logo-BsxZM_eb.js`),[]))},{id:`lua`,name:`Lua`,import:(()=>I(()=>import(`./lua-BT_CXFE-.js`).then(e=>e.n),__vite__mapDeps([37,25])))},{id:`luau`,name:`Luau`,import:(()=>I(()=>import(`./luau-D9oeBRnv.js`),[]))},{id:`make`,name:`Makefile`,aliases:[`makefile`],import:(()=>I(()=>import(`./make-DLuqI3Sa.js`),[]))},{id:`markdown`,name:`Markdown`,aliases:[`md`],import:(()=>I(()=>import(`./markdown-hfQzyr6v.js`),[]))},{id:`marko`,name:`Marko`,import:(()=>I(()=>import(`./marko-BqTjigl2.js`),__vite__mapDeps([68,2,69,5,13])))},{id:`matlab`,name:`MATLAB`,import:(()=>I(()=>import(`./matlab-Cz4xBfaA.js`),[]))},{id:`mdc`,name:`MDC`,import:(()=>I(()=>import(`./mdc-wzjOwpPF.js`),__vite__mapDeps([70,15,1,2,3,40,38])))},{id:`mdx`,name:`MDX`,import:(()=>I(()=>import(`./mdx-Crds6sJw.js`),[]))},{id:`mermaid`,name:`Mermaid`,aliases:[`mmd`],import:(()=>I(()=>import(`./mermaid-Bk1sayFm.js`),[]))},{id:`mipsasm`,name:`MIPS Assembly`,aliases:[`mips`],import:(()=>I(()=>import(`./mipsasm-D3Vr1VJI.js`),[]))},{id:`mojo`,name:`Mojo`,import:(()=>I(()=>import(`./mojo-D3ai4ATt.js`),[]))},{id:`moonbit`,name:`MoonBit`,aliases:[`mbt`,`mbti`],import:(()=>I(()=>import(`./moonbit-c7XV1V8w.js`),[]))},{id:`move`,name:`Move`,import:(()=>I(()=>import(`./move--lg8RSZu.js`),[]))},{id:`narrat`,name:`Narrat Language`,aliases:[`nar`],import:(()=>I(()=>import(`./narrat-Bn_PlXDl.js`),[]))},{id:`nextflow`,name:`Nextflow`,aliases:[`nf`],import:(()=>I(()=>import(`./nextflow-DXxhyYjQ.js`),__vite__mapDeps([71,72])))},{id:`nextflow-groovy`,name:`Nextflow Groovy`,import:(()=>I(()=>import(`./nextflow-groovy-CUrXbMOF.js`),[]))},{id:`nginx`,name:`Nginx`,import:(()=>I(()=>import(`./nginx-DVjk8fbM.js`),__vite__mapDeps([73,37,25])))},{id:`nim`,name:`Nim`,import:(()=>I(()=>import(`./nim-RSsaDBI7.js`),__vite__mapDeps([74,25,2,24,1,3,40,8,9])))},{id:`nix`,name:`Nix`,import:(()=>I(()=>import(`./nix-DE1Q2B1F.js`),[]))},{id:`nushell`,name:`nushell`,aliases:[`nu`],import:(()=>I(()=>import(`./nushell-BBFYNdNE.js`),[]))},{id:`objective-c`,name:`Objective-C`,aliases:[`objc`],import:(()=>I(()=>import(`./objective-c-mc6rHp-y.js`),[]))},{id:`objective-cpp`,name:`Objective-C++`,import:(()=>I(()=>import(`./objective-cpp-D96wcRis.js`),[]))},{id:`ocaml`,name:`OCaml`,import:(()=>I(()=>import(`./ocaml-Ddt3E4VO.js`),[]))},{id:`odin`,name:`Odin`,import:(()=>I(()=>import(`./odin-BUZTfc03.js`),[]))},{id:`openscad`,name:`OpenSCAD`,aliases:[`scad`],import:(()=>I(()=>import(`./openscad-C-XxCD_t.js`),[]))},{id:`pascal`,name:`Pascal`,import:(()=>I(()=>import(`./pascal-BvJwb9Ca.js`),[]))},{id:`perl`,name:`Perl`,import:(()=>I(()=>import(`./perl--NvfdBGv.js`),__vite__mapDeps([64,2,1,3,16,8,9])))},{id:`php`,name:`PHP`,import:(()=>I(()=>import(`./php-C7tUxnL4.js`),__vite__mapDeps([75,2,1,3,7,16,8,9])))},{id:`pkl`,name:`Pkl`,import:(()=>I(()=>import(`./pkl-DtSDxyR8.js`),[]))},{id:`plsql`,name:`PL/SQL`,import:(()=>I(()=>import(`./plsql-CgEVu7mV.js`),[]))},{id:`po`,name:`Gettext PO`,aliases:[`pot`,`potx`],import:(()=>I(()=>import(`./po-BNFx8QMG.js`),[]))},{id:`polar`,name:`Polar`,import:(()=>I(()=>import(`./polar-DcGwqI2v.js`),[]))},{id:`postcss`,name:`PostCSS`,import:(()=>I(()=>import(`./postcss-BgFCg0uM.js`),[]))},{id:`powerquery`,name:`PowerQuery`,import:(()=>I(()=>import(`./powerquery-BNMZnWRc.js`),[]))},{id:`powershell`,name:`PowerShell`,aliases:[`ps`,`ps1`],import:(()=>I(()=>import(`./powershell-CeNh_gMu.js`),[]))},{id:`prisma`,name:`Prisma`,import:(()=>I(()=>import(`./prisma-C4wKi9Xs.js`),[]))},{id:`prolog`,name:`Prolog`,import:(()=>I(()=>import(`./prolog-DcNkIfZZ.js`),[]))},{id:`proto`,name:`Protocol Buffer 3`,aliases:[`protobuf`],import:(()=>I(()=>import(`./proto-BqsNb_Ru.js`),[]))},{id:`pug`,name:`Pug`,aliases:[`jade`],import:(()=>I(()=>import(`./pug-Bto41TjE.js`),__vite__mapDeps([76,2,1,3])))},{id:`puppet`,name:`Puppet`,import:(()=>I(()=>import(`./puppet-BLvi8DVC.js`),[]))},{id:`purescript`,name:`PureScript`,import:(()=>I(()=>import(`./purescript-B_tjgp5s.js`),[]))},{id:`python`,name:`Python`,aliases:[`py`],import:(()=>I(()=>import(`./python-xLLWlBd0.js`),[]))},{id:`qml`,name:`QML`,import:(()=>I(()=>import(`./qml-ho4_4Xgb.js`),__vite__mapDeps([77,3])))},{id:`qmldir`,name:`QML Directory`,import:(()=>I(()=>import(`./qmldir-CDe6ORFD.js`),[]))},{id:`qss`,name:`Qt Style Sheets`,import:(()=>I(()=>import(`./qss-CvW7b9vz.js`),[]))},{id:`r`,name:`R`,import:(()=>I(()=>import(`./r--Sz1Q0FM.js`).then(e=>e.n),[]))},{id:`racket`,name:`Racket`,import:(()=>I(()=>import(`./racket-CA2oKVL1.js`),[]))},{id:`raku`,name:`Raku`,aliases:[`perl6`],import:(()=>I(()=>import(`./raku-D9dEetfn.js`),[]))},{id:`razor`,name:`ASP.NET Razor`,import:(()=>I(()=>import(`./razor-WXl8b_YY.js`),__vite__mapDeps([78,79,1,2,3])))},{id:`reg`,name:`Windows Registry Script`,import:(()=>I(()=>import(`./reg-CHsE82Pk.js`),[]))},{id:`regexp`,name:`RegExp`,aliases:[`regex`],import:(()=>I(()=>import(`./regexp-DUE6rypx.js`).then(e=>e.n),[]))},{id:`rel`,name:`Rel`,import:(()=>I(()=>import(`./rel-SUS6CYTF.js`),[]))},{id:`riscv`,name:`RISC-V`,import:(()=>I(()=>import(`./riscv-xyAKa3qa.js`),[]))},{id:`ron`,name:`RON`,import:(()=>I(()=>import(`./ron-D5BrJbC5.js`),[]))},{id:`rosmsg`,name:`ROS Interface`,import:(()=>I(()=>import(`./rosmsg-Bie95NPX.js`),[]))},{id:`rst`,name:`reStructuredText`,import:(()=>I(()=>import(`./rst-DkJSw7_Y.js`),__vite__mapDeps([80,81,23,24,25,26,16,15,1,2,3,20,33,34,35,12,13,36,37,28,8,9,38])))},{id:`ruby`,name:`Ruby`,aliases:[`rb`],import:(()=>I(()=>import(`./ruby-_Sh_aFYD.js`),__vite__mapDeps([33,25,23,24,26,16,2,34,3,35,12,13,36,1,37,28,8,9,38])))},{id:`rust`,name:`Rust`,aliases:[`rs`],import:(()=>I(()=>import(`./rust-CAON_J-7.js`),[]))},{id:`sas`,name:`SAS`,import:(()=>I(()=>import(`./sas-13IHS7Fv.js`),__vite__mapDeps([82,16])))},{id:`sass`,name:`Sass`,import:(()=>I(()=>import(`./sass-CKkv3rB4.js`),[]))},{id:`scala`,name:`Scala`,import:(()=>I(()=>import(`./scala-BADlfUbE.js`),[]))},{id:`scheme`,name:`Scheme`,import:(()=>I(()=>import(`./scheme-Bv8vdcS_.js`),[]))},{id:`scss`,name:`SCSS`,import:(()=>I(()=>import(`./scss-C2joWo5i.js`).then(e=>e.n),__vite__mapDeps([5,2])))},{id:`sdbl`,name:`1C (Query)`,aliases:[`1c-query`],import:(()=>I(()=>import(`./sdbl-TUdAkzzL.js`),[]))},{id:`shaderlab`,name:`ShaderLab`,aliases:[`shader`],import:(()=>I(()=>import(`./shaderlab-C5utLNvK.js`),__vite__mapDeps([83,84])))},{id:`shellscript`,name:`Shell`,aliases:[`bash`,`sh`,`shell`,`zsh`],import:(()=>I(()=>import(`./shellscript-CL9rM-ya.js`).then(e=>e.n),[]))},{id:`shellsession`,name:`Shell Session`,aliases:[`console`],import:(()=>I(()=>import(`./shellsession-JHnzUcOM.js`),__vite__mapDeps([85,28])))},{id:`smalltalk`,name:`Smalltalk`,import:(()=>I(()=>import(`./smalltalk-C1k1DVft.js`),[]))},{id:`solidity`,name:`Solidity`,import:(()=>I(()=>import(`./solidity-CaEDdWYR.js`),[]))},{id:`soy`,name:`Closure Templates`,aliases:[`closure-templates`],import:(()=>I(()=>import(`./soy-CRs456kY.js`),__vite__mapDeps([86,1,2,3])))},{id:`sparql`,name:`SPARQL`,import:(()=>I(()=>import(`./sparql-nVt1Q8sD.js`),__vite__mapDeps([87,88])))},{id:`splunk`,name:`Splunk Query Language`,aliases:[`spl`],import:(()=>I(()=>import(`./splunk-mpBjmHRA.js`),[]))},{id:`sql`,name:`SQL`,import:(()=>I(()=>import(`./sql-D3olAuIn.js`).then(e=>e.n),[]))},{id:`ssh-config`,name:`SSH Config`,import:(()=>I(()=>import(`./ssh-config-DqmSAS3N.js`),[]))},{id:`stata`,name:`Stata`,import:(()=>I(()=>import(`./stata-BpkjrLm4.js`),__vite__mapDeps([89,16])))},{id:`stylus`,name:`Stylus`,aliases:[`styl`],import:(()=>I(()=>import(`./stylus-mNYBrtqL.js`),[]))},{id:`surrealql`,name:`SurrealQL`,aliases:[`surql`],import:(()=>I(()=>import(`./surrealql-IlrfCY8d.js`),__vite__mapDeps([90,3])))},{id:`svelte`,name:`Svelte`,import:(()=>I(()=>import(`./svelte-DQv8t-mw.js`),__vite__mapDeps([91,2,3,11,13])))},{id:`swift`,name:`Swift`,import:(()=>I(()=>import(`./swift-BXoR6L-y.js`),[]))},{id:`system-verilog`,name:`SystemVerilog`,import:(()=>I(()=>import(`./system-verilog-BnyrpGlO.js`),[]))},{id:`systemd`,name:`Systemd Units`,import:(()=>I(()=>import(`./systemd-BBVr_qxh.js`),[]))},{id:`talonscript`,name:`TalonScript`,aliases:[`talon`],import:(()=>I(()=>import(`./talonscript-l0qUQn2r.js`),[]))},{id:`tasl`,name:`Tasl`,import:(()=>I(()=>import(`./tasl-BzcMwPTS.js`),[]))},{id:`tcl`,name:`Tcl`,import:(()=>I(()=>import(`./tcl-CQgtyMkG.js`),[]))},{id:`templ`,name:`Templ`,import:(()=>I(()=>import(`./templ-Bp2dIvVe.js`),__vite__mapDeps([92,2,93,3])))},{id:`terraform`,name:`Terraform`,aliases:[`tf`,`tfvars`],import:(()=>I(()=>import(`./terraform-BgPqtSWN.js`),[]))},{id:`tex`,name:`TeX`,import:(()=>I(()=>import(`./tex-B8RHQP-Y.js`),__vite__mapDeps([66,62])))},{id:`toml`,name:`TOML`,import:(()=>I(()=>import(`./toml-CpHBCfVl.js`),[]))},{id:`ts-tags`,name:`TypeScript with Tags`,aliases:[`lit`],import:(()=>I(()=>import(`./ts-tags-oyLXflsR.js`),__vite__mapDeps([94,2,24,25,1,3,16,13,8,9])))},{id:`tsv`,name:`TSV`,import:(()=>I(()=>import(`./tsv-DYxH1-vL.js`),[]))},{id:`tsx`,name:`TSX`,import:(()=>I(()=>import(`./tsx-B27NkFmj.js`).then(e=>e.n),[]))},{id:`turtle`,name:`Turtle`,import:(()=>I(()=>import(`./turtle-DdFFvP5J.js`),[]))},{id:`twig`,name:`Twig`,import:(()=>I(()=>import(`./twig-CDbKrLkG.js`),__vite__mapDeps([95,2,3,75,1,7,16,8,9,20,33,25,23,24,26,34,35,12,13,36,37,28,38,5])))},{id:`typescript`,name:`TypeScript`,aliases:[`ts`,`cts`,`mts`],import:(()=>I(()=>import(`./typescript-CLqSrtA6.js`).then(e=>e.n),[]))},{id:`typespec`,name:`TypeSpec`,aliases:[`tsp`],import:(()=>I(()=>import(`./typespec-CHOxKRtr.js`),[]))},{id:`typst`,name:`Typst`,aliases:[`typ`],import:(()=>I(()=>import(`./typst-C0VS9TQm.js`),[]))},{id:`v`,name:`V`,import:(()=>I(()=>import(`./v-CfOPGXPl.js`),[]))},{id:`vala`,name:`Vala`,import:(()=>I(()=>import(`./vala-DYqHmNOK.js`),[]))},{id:`vb`,name:`Visual Basic`,aliases:[`cmd`],import:(()=>I(()=>import(`./vb-DUBgqZ02.js`),[]))},{id:`verilog`,name:`Verilog`,import:(()=>I(()=>import(`./verilog-BxybH_AY.js`),[]))},{id:`vhdl`,name:`VHDL`,import:(()=>I(()=>import(`./vhdl-DBoxxi7I.js`),[]))},{id:`viml`,name:`Vim Script`,aliases:[`vim`,`vimscript`],import:(()=>I(()=>import(`./viml-C8vROCgw.js`),[]))},{id:`vue`,name:`Vue`,import:(()=>I(()=>import(`./vue-CBc0NYxi.js`),__vite__mapDeps([96,2,15,1,3,7,13])))},{id:`vue-html`,name:`Vue HTML`,import:(()=>I(()=>import(`./vue-html-DAC5It2s.js`),__vite__mapDeps([97,3])))},{id:`vue-vine`,name:`Vue Vine`,import:(()=>I(()=>import(`./vue-vine-Ca88ub2E.js`),__vite__mapDeps([98,2,3,69,11,5,99])))},{id:`vyper`,name:`Vyper`,aliases:[`vy`],import:(()=>I(()=>import(`./vyper-D08CaD4o.js`),[]))},{id:`wasm`,name:`WebAssembly`,import:(()=>I(()=>import(`./wasm-CoVafRYN.js`),[]))},{id:`wenyan`,name:`Wenyan`,aliases:[`文言`],import:(()=>I(()=>import(`./wenyan-GlRgAbTB.js`),[]))},{id:`wgsl`,name:`WGSL`,import:(()=>I(()=>import(`./wgsl-BmWpQFqb.js`),[]))},{id:`wikitext`,name:`Wikitext`,aliases:[`mediawiki`,`wiki`],import:(()=>I(()=>import(`./wikitext-Axug2vPC.js`),[]))},{id:`wit`,name:`WebAssembly Interface Types`,import:(()=>I(()=>import(`./wit-Dk1fPIaK.js`),[]))},{id:`wolfram`,name:`Wolfram`,aliases:[`wl`],import:(()=>I(()=>import(`./wolfram-DMhXlmnL.js`),[]))},{id:`xml`,name:`XML`,import:(()=>I(()=>import(`./xml-9fjewzMs.js`).then(e=>e.n),__vite__mapDeps([8,9])))},{id:`xsl`,name:`XSL`,import:(()=>I(()=>import(`./xsl-B4mp4iKt.js`),__vite__mapDeps([100,8,9])))},{id:`yaml`,name:`YAML`,aliases:[`yml`],import:(()=>I(()=>import(`./yaml-25DfloRA.js`).then(e=>e.n),[]))},{id:`zenscript`,name:`ZenScript`,import:(()=>I(()=>import(`./zenscript-x7PXwj2_.js`),[]))},{id:`zig`,name:`Zig`,import:(()=>I(()=>import(`./zig-BlD2NI35.js`),[]))}],R=Object.fromEntries(L.map(e=>[e.id,e.import])),ae=Object.fromEntries(L.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),oe={...R,...ae},se=Object.fromEntries([{id:`andromeeda`,displayName:`Andromeeda`,type:`dark`,import:(()=>I(()=>import(`./andromeeda-LdzAHaKR.js`),[]))},{id:`aurora-x`,displayName:`Aurora X`,type:`dark`,import:(()=>I(()=>import(`./aurora-x-DTcNXZIS.js`),[]))},{id:`ayu-dark`,displayName:`Ayu Dark`,type:`dark`,import:(()=>I(()=>import(`./ayu-dark-DpNcORnA.js`),[]))},{id:`ayu-light`,displayName:`Ayu Light`,type:`light`,import:(()=>I(()=>import(`./ayu-light-lHqf0ddo.js`),[]))},{id:`ayu-mirage`,displayName:`Ayu Mirage`,type:`dark`,import:(()=>I(()=>import(`./ayu-mirage-Dji5RWiH.js`),[]))},{id:`catppuccin-frappe`,displayName:`Catppuccin Frappé`,type:`dark`,import:(()=>I(()=>import(`./catppuccin-frappe-DQrU04q0.js`),[]))},{id:`catppuccin-latte`,displayName:`Catppuccin Latte`,type:`light`,import:(()=>I(()=>import(`./catppuccin-latte-B_oiWZka.js`),[]))},{id:`catppuccin-macchiato`,displayName:`Catppuccin Macchiato`,type:`dark`,import:(()=>I(()=>import(`./catppuccin-macchiato-D8VB2qi4.js`),[]))},{id:`catppuccin-mocha`,displayName:`Catppuccin Mocha`,type:`dark`,import:(()=>I(()=>import(`./catppuccin-mocha-5vkMJ1Mb.js`),[]))},{id:`dark-plus`,displayName:`Dark Plus`,type:`dark`,import:(()=>I(()=>import(`./dark-plus-BMwvn5lx.js`),[]))},{id:`dracula`,displayName:`Dracula Theme`,type:`dark`,import:(()=>I(()=>import(`./dracula-CBD4ckb0.js`),[]))},{id:`dracula-soft`,displayName:`Dracula Theme Soft`,type:`dark`,import:(()=>I(()=>import(`./dracula-soft-CuGBZj_h.js`),[]))},{id:`everforest-dark`,displayName:`Everforest Dark`,type:`dark`,import:(()=>I(()=>import(`./everforest-dark-BhFNrp2k.js`),[]))},{id:`everforest-light`,displayName:`Everforest Light`,type:`light`,import:(()=>I(()=>import(`./everforest-light-CpIbZ9aT.js`),[]))},{id:`github-dark`,displayName:`GitHub Dark`,type:`dark`,import:(()=>I(()=>import(`./github-dark-DQp1Qkx5.js`),[]))},{id:`github-dark-default`,displayName:`GitHub Dark Default`,type:`dark`,import:(()=>I(()=>import(`./github-dark-default-BroO-mT3.js`),[]))},{id:`github-dark-dimmed`,displayName:`GitHub Dark Dimmed`,type:`dark`,import:(()=>I(()=>import(`./github-dark-dimmed-D8UZ8uTL.js`),[]))},{id:`github-dark-high-contrast`,displayName:`GitHub Dark High Contrast`,type:`dark`,import:(()=>I(()=>import(`./github-dark-high-contrast-CM0RRMCj.js`),[]))},{id:`github-light`,displayName:`GitHub Light`,type:`light`,import:(()=>I(()=>import(`./github-light-BRTmX4Ht.js`),[]))},{id:`github-light-default`,displayName:`GitHub Light Default`,type:`light`,import:(()=>I(()=>import(`./github-light-default-dl7biQ4g.js`),[]))},{id:`github-light-high-contrast`,displayName:`GitHub Light High Contrast`,type:`light`,import:(()=>I(()=>import(`./github-light-high-contrast-Cvzq8ZXJ.js`),[]))},{id:`gruvbox-dark-hard`,displayName:`Gruvbox Dark Hard`,type:`dark`,import:(()=>I(()=>import(`./gruvbox-dark-hard-CBFL_VqK.js`),[]))},{id:`gruvbox-dark-medium`,displayName:`Gruvbox Dark Medium`,type:`dark`,import:(()=>I(()=>import(`./gruvbox-dark-medium-Dn18r-Yz.js`),[]))},{id:`gruvbox-dark-soft`,displayName:`Gruvbox Dark Soft`,type:`dark`,import:(()=>I(()=>import(`./gruvbox-dark-soft-DUyKWd02.js`),[]))},{id:`gruvbox-light-hard`,displayName:`Gruvbox Light Hard`,type:`light`,import:(()=>I(()=>import(`./gruvbox-light-hard-DV9RwKs4.js`),[]))},{id:`gruvbox-light-medium`,displayName:`Gruvbox Light Medium`,type:`light`,import:(()=>I(()=>import(`./gruvbox-light-medium-Ba-VIg48.js`),[]))},{id:`gruvbox-light-soft`,displayName:`Gruvbox Light Soft`,type:`light`,import:(()=>I(()=>import(`./gruvbox-light-soft-CVIZMKFx.js`),[]))},{id:`horizon`,displayName:`Horizon`,type:`dark`,import:(()=>I(()=>import(`./horizon-DMOEeSnA.js`),[]))},{id:`horizon-bright`,displayName:`Horizon Bright`,type:`light`,import:(()=>I(()=>import(`./horizon-bright-CPVackS9.js`),[]))},{id:`houston`,displayName:`Houston`,type:`dark`,import:(()=>I(()=>import(`./houston-DSlR9wH9.js`),[]))},{id:`kanagawa-dragon`,displayName:`Kanagawa Dragon`,type:`dark`,import:(()=>I(()=>import(`./kanagawa-dragon-DLDXA4f2.js`),[]))},{id:`kanagawa-lotus`,displayName:`Kanagawa Lotus`,type:`light`,import:(()=>I(()=>import(`./kanagawa-lotus-qAvw6eOU.js`),[]))},{id:`kanagawa-wave`,displayName:`Kanagawa Wave`,type:`dark`,import:(()=>I(()=>import(`./kanagawa-wave-DFO_g5Mb.js`),[]))},{id:`laserwave`,displayName:`LaserWave`,type:`dark`,import:(()=>I(()=>import(`./laserwave-Bbquw0Nf.js`),[]))},{id:`light-plus`,displayName:`Light Plus`,type:`light`,import:(()=>I(()=>import(`./light-plus-Ch1Usv7R.js`),[]))},{id:`material-theme`,displayName:`Material Theme`,type:`dark`,import:(()=>I(()=>import(`./material-theme-kX26WiJU.js`),[]))},{id:`material-theme-darker`,displayName:`Material Theme Darker`,type:`dark`,import:(()=>I(()=>import(`./material-theme-darker-yvetTWEr.js`),[]))},{id:`material-theme-lighter`,displayName:`Material Theme Lighter`,type:`light`,import:(()=>I(()=>import(`./material-theme-lighter-L4j3qddN.js`),[]))},{id:`material-theme-ocean`,displayName:`Material Theme Ocean`,type:`dark`,import:(()=>I(()=>import(`./material-theme-ocean-BnNk1wNQ.js`),[]))},{id:`material-theme-palenight`,displayName:`Material Theme Palenight`,type:`dark`,import:(()=>I(()=>import(`./material-theme-palenight-W0qbGyud.js`),[]))},{id:`min-dark`,displayName:`Min Dark`,type:`dark`,import:(()=>I(()=>import(`./min-dark-DK6uq44k.js`),[]))},{id:`min-light`,displayName:`Min Light`,type:`light`,import:(()=>I(()=>import(`./min-light-lr1QiEOE.js`),[]))},{id:`monokai`,displayName:`Monokai`,type:`dark`,import:(()=>I(()=>import(`./monokai-DZSWSdmN.js`),[]))},{id:`night-owl`,displayName:`Night Owl`,type:`dark`,import:(()=>I(()=>import(`./night-owl-DnKT96OJ.js`),[]))},{id:`night-owl-light`,displayName:`Night Owl Light`,type:`light`,import:(()=>I(()=>import(`./night-owl-light-gVSh6ltn.js`),[]))},{id:`nord`,displayName:`Nord`,type:`dark`,import:(()=>I(()=>import(`./nord-CbYaE7ZY.js`),[]))},{id:`one-dark-pro`,displayName:`One Dark Pro`,type:`dark`,import:(()=>I(()=>import(`./one-dark-pro-CLMO01es.js`),[]))},{id:`one-light`,displayName:`One Light`,type:`light`,import:(()=>I(()=>import(`./one-light-27sfjFDM.js`),[]))},{id:`plastic`,displayName:`Plastic`,type:`dark`,import:(()=>I(()=>import(`./plastic-Dd1-4HJb.js`),[]))},{id:`poimandres`,displayName:`Poimandres`,type:`dark`,import:(()=>I(()=>import(`./poimandres-DdZFFINT.js`),[]))},{id:`red`,displayName:`Red`,type:`dark`,import:(()=>I(()=>import(`./red-Cj1vpJ_n.js`),[]))},{id:`rose-pine`,displayName:`Rosé Pine`,type:`dark`,import:(()=>I(()=>import(`./rose-pine-Dd0RAvir.js`),[]))},{id:`rose-pine-dawn`,displayName:`Rosé Pine Dawn`,type:`light`,import:(()=>I(()=>import(`./rose-pine-dawn-CeS_2jlO.js`),[]))},{id:`rose-pine-moon`,displayName:`Rosé Pine Moon`,type:`dark`,import:(()=>I(()=>import(`./rose-pine-moon-CQrvtQEF.js`),[]))},{id:`slack-dark`,displayName:`Slack Dark`,type:`dark`,import:(()=>I(()=>import(`./slack-dark-BeQrlvP4.js`),[]))},{id:`slack-ochin`,displayName:`Slack Ochin`,type:`light`,import:(()=>I(()=>import(`./slack-ochin-DaA1aBiy.js`),[]))},{id:`snazzy-light`,displayName:`Snazzy Light`,type:`light`,import:(()=>I(()=>import(`./snazzy-light-C9Bzvwcg.js`),[]))},{id:`solarized-dark`,displayName:`Solarized Dark`,type:`dark`,import:(()=>I(()=>import(`./solarized-dark--ZJpQY8O.js`),[]))},{id:`solarized-light`,displayName:`Solarized Light`,type:`light`,import:(()=>I(()=>import(`./solarized-light-wzNWfjF2.js`),[]))},{id:`synthwave-84`,displayName:`Synthwave '84`,type:`dark`,import:(()=>I(()=>import(`./synthwave-84-ybvkLGau.js`),[]))},{id:`tokyo-night`,displayName:`Tokyo Night`,type:`dark`,import:(()=>I(()=>import(`./tokyo-night-BZt2NwCl.js`),[]))},{id:`vesper`,displayName:`Vesper`,type:`dark`,import:(()=>I(()=>import(`./vesper-BDlBlJR-.js`),[]))},{id:`vitesse-black`,displayName:`Vitesse Black`,type:`dark`,import:(()=>I(()=>import(`./vitesse-black-CUBzmgJa.js`),[]))},{id:`vitesse-dark`,displayName:`Vitesse Dark`,type:`dark`,import:(()=>I(()=>import(`./vitesse-dark-COrLBgkv.js`),[]))},{id:`vitesse-light`,displayName:`Vitesse Light`,type:`light`,import:(()=>I(()=>import(`./vitesse-light-ThZGgLQK.js`),[]))}].map(e=>[e.id,e.import])),ce=s({createOnigurumaEngine:()=>Pe,getDefaultWasmLoader:()=>Ne,loadWasm:()=>De,setDefaultWasmLoader:()=>Me}),le=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function ue(){return 2147483648}function de(){return typeof performance<`u`?performance.now():Date.now()}var fe=(e,t)=>e+(t-e%t)%t;async function pe(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}function a(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)}function o(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}function s(e){let t=r.HEAPU8.length;e>>>=0;let n=ue();if(e>n)return!1;for(let r=1;r<=4;r*=2){let i=t*(1+.2/r);if(i=Math.min(i,e+100663296),o(Math.min(n,fe(Math.max(e,i),65536))))return!0}return!1}let c=typeof TextDecoder<`u`?new TextDecoder(`utf8`):void 0;function l(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&c)return c.decode(e.subarray(t,i));let a=``;for(;t<i;){let n=e[t++];if(!(n&128)){a+=String.fromCharCode(n);continue}let r=e[t++]&63;if((n&224)==192){a+=String.fromCharCode((n&31)<<6|r);continue}let i=e[t++]&63;if(n=(n&240)==224?(n&15)<<12|r<<6|i:(n&7)<<18|r<<12|i<<6|e[t++]&63,n<65536)a+=String.fromCharCode(n);else{let e=n-65536;a+=String.fromCharCode(55296|e>>10,56320|e&1023)}}return a}function u(e,t){return e?l(r.HEAPU8,e,t):``}let d={emscripten_get_now:de,emscripten_memcpy_big:a,emscripten_resize_heap:s,fd_write:()=>0};async function f(){let n=await e({env:d,wasi_snapshot_preview1:d});t=n.memory,i(t.buffer),Object.assign(r,n),r.UTF8ToString=u}return await f(),r}var z=Object.defineProperty,me=(e,t,n)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t,n)=>me(e,typeof t==`symbol`?t:t+``,n),he=null;function ge(e){throw new le(e.UTF8ToString(e.getLastOnigError()))}var _e=class e{constructor(t){B(this,`utf16Length`),B(this,`utf8Length`),B(this,`utf16Value`),B(this,`utf8Value`),B(this,`utf16OffsetToUtf8`),B(this,`utf8OffsetToUtf16`);let n=t.length,r=e._utf8ByteLength(t),i=r!==n,a=i?new Uint32Array(n+1):null;i&&(a[n]=r);let o=i?new Uint32Array(r+1):null;i&&(o[r]=n);let s=new Uint8Array(r),c=0;for(let e=0;e<n;e++){let r=t.charCodeAt(e),l=r,u=!1;if(r>=55296&&r<=56319&&e+1<n){let n=t.charCodeAt(e+1);n>=56320&&n<=57343&&(l=(r-55296<<10)+65536|n-56320,u=!0)}i&&(a[e]=c,u&&(a[e+1]=c),l<=127?o[c+0]=e:l<=2047?(o[c+0]=e,o[c+1]=e):l<=65535?(o[c+0]=e,o[c+1]=e,o[c+2]=e):(o[c+0]=e,o[c+1]=e,o[c+2]=e,o[c+3]=e)),l<=127?s[c++]=l:l<=2047?(s[c++]=192|(l&1984)>>>6,s[c++]=128|(l&63)>>>0):l<=65535?(s[c++]=224|(l&61440)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0):(s[c++]=240|(l&1835008)>>>18,s[c++]=128|(l&258048)>>>12,s[c++]=128|(l&4032)>>>6,s[c++]=128|(l&63)>>>0),u&&e++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,o=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,o=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,o&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}},ve=class e{constructor(t){if(B(this,`id`,++e.LAST_ID),B(this,`_onigBinding`),B(this,`content`),B(this,`utf16Length`),B(this,`utf8Length`),B(this,`utf16OffsetToUtf8`),B(this,`utf8OffsetToUtf16`),B(this,`ptr`),!he)throw new le(`Must invoke loadWasm first.`);this._onigBinding=he,this.content=t;let n=new _e(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||=he.omalloc(1e4),e._sharedPtrInUse=!0,he.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(he)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};B(ve,`LAST_ID`,0),B(ve,`_sharedPtr`,0),B(ve,`_sharedPtrInUse`,!1);var ye=ve,be=class{constructor(e){if(B(this,`_onigBinding`),B(this,`_ptr`),!he)throw new le(`Must invoke loadWasm first.`);let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new _e(e[r]);t[r]=i.createString(he),n[r]=i.utf8Length}let r=he.omalloc(4*e.length);he.HEAPU32.set(t,r/4);let i=he.omalloc(4*e.length);he.HEAPU32.set(n,i/4);let a=he.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)he.ofree(t[n]);he.ofree(i),he.ofree(r),a===0&&ge(he),this._onigBinding=he,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if(typeof n==`number`&&(r=n),typeof e==`string`){e=new ye(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(a===0)return null;let o=i.HEAPU32,s=a/4,c=o[s++],l=o[s++],u=[];for(let t=0;t<l;t++){let n=e.convertUtf8OffsetToUtf16(o[s++]),r=e.convertUtf8OffsetToUtf16(o[s++]);u[t]={start:n,end:r,length:r-n}}return{index:c,captureIndices:u}}};function xe(e){return typeof e.instantiator==`function`}function Se(e){return typeof e.default==`function`}function Ce(e){return e.data!==void 0}function we(e){return typeof Response<`u`&&e instanceof Response}function Te(e){return typeof ArrayBuffer<`u`&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<`u`&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer||typeof Uint32Array<`u`&&e instanceof Uint32Array}var Ee;function De(e){if(Ee)return Ee;async function t(){he=await pe(async t=>{let n=e;return n=await n,typeof n==`function`&&(n=await n(t)),typeof n==`function`&&(n=await n(t)),xe(n)?n=await n.instantiator(t):Se(n)?n=await n.default(t):(Ce(n)&&(n=n.data),we(n)?n=typeof WebAssembly.instantiateStreaming==`function`?await ke(n)(t):await Ae(n)(t):Te(n)||n instanceof WebAssembly.Module?n=await Oe(n)(t):`default`in n&&n.default instanceof WebAssembly.Module&&(n=await Oe(n.default)(t))),`instance`in n&&(n=n.instance),`exports`in n&&(n=n.exports),n})}return Ee=t(),Ee}function Oe(e){return t=>WebAssembly.instantiate(e,t)}function ke(e){return t=>WebAssembly.instantiateStreaming(e,t)}function Ae(e){return async t=>{let n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}var je;function Me(e){je=e}function Ne(){return je}async function Pe(e){return e&&await De(e),{createScanner(e){return new be(e.map(e=>typeof e==`string`?e:e.source))},createString(e){return new ye(e)}}}var Fe=te({});F(Fe,ce);var Ie=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function Le(e){return Re(e)}function Re(e){return Array.isArray(e)?ze(e):e instanceof RegExp?e:typeof e==`object`?Be(e):e}function ze(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Re(e[n]);return t}function Be(e){let t={};for(let n in e)t[n]=Re(e[n]);return t}function Ve(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function He(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?He(e.substring(0,e.length-1)):e.substr(~t+1)}var Ue=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,We=class{static hasCaptures(e){return e===null?!1:(Ue.lastIndex=0,Ue.test(e))}static replaceCaptures(e,t,n){return e.replace(Ue,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function Ge(e,t){return e<t?-1:+(e>t)}function Ke(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=Ge(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function qe(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function Je(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var Ye=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},Xe=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(tt(e),t)}static createFromParsedTheme(e,t){return it(e,t)}_cachedMatchRoot=new Ye(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>Qe(e.parent,t.parentScopes));return n?new et(n.fontStyle,n.foreground,n.background):null}},Ze=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function Qe(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!$e(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function $e(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var et=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function tt(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&qe(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&qe(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new nt(l,u,e,o,s,c)}}return n}var nt=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},rt=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(rt||{});function it(e,t){e.sort((e,t)=>{let n=Ge(e.scope,t.scope);return n!==0||(n=Ke(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new at(t),o=new et(n,a.getId(r),a.getId(i)),s=new ct(new st(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new Xe(a,o,s)}var at=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},ot=Object.freeze([]),st=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||ot,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},ct=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),st.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(Ke(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new st(e,t,n,r,i))}},lt=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=dt(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function ut(e){return e}function dt(e){return e}function ft(e,t){let n=[],r=mt(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(pt(i)){let e=[];do e.push(i),i=r.next();while(pt(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function pt(e){return!!e&&!!e.match(/[\w\.:]+/)}function mt(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function ht(e){typeof e.dispose==`function`&&e.dispose()}var gt=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},_t=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},vt=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},yt=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new gt(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new vt;for(let n of e)bt(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof gt){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function bt(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof gt?St({baseGrammar:a,selfGrammar:i},r):xt(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new gt(e))}function xt(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];Ct([r],t,n)}}function St(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ct(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ct(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ct(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?Ve({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Ct(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=kt(i);switch(a.kind){case 0:St({...t,selfGrammar:t.baseGrammar},n);break;case 1:St(t,n);break;case 2:xt(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?xt(a.ruleName,i,n):St(i,n)}else a.kind===4?n.add(new _t(a.scopeName,a.ruleName)):n.add(new gt(a.scopeName));break}}}var wt=class{kind=0},Tt=class{kind=1},Et=class{constructor(e){this.ruleName=e}kind=2},Dt=class{constructor(e){this.scopeName=e}kind=3},Ot=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function kt(e){if(e===`$base`)return new wt;if(e===`$self`)return new Tt;let t=e.indexOf(`#`);return t===-1?new Dt(e):t===0?new Et(e.substring(1)):new Ot(e.substring(0,t),e.substring(t+1))}var At=/\\(\d+)/,jt=/\\(\d+)/g,Mt=-1,Nt=-2;function Pt(e){return e}function Ft(e){return e}var It=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=We.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=We.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${He(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:We.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:We.replaceCaptures(this._contentName,e,t)}},Lt=class extends It{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},Rt=class extends It{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new Ut(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Wt,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},zt=class extends It{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Wt,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Bt=class extends It{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new Ut(i,this.id),this.beginCaptures=a,this._end=new Ut(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Wt;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Vt=class extends It{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new Ut(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new Ut(o,Nt),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Wt;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Wt,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},Ht=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new Lt(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new Rt(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=Ve({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new zt(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new Vt(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new Bt(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=kt(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof zt||e instanceof Bt||e instanceof Vt)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},Ut=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source==`string`?this.hasBackReferences=At.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return jt.lastIndex=0,this.source.replace(jt,(e,t)=>Je(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`￿`,t[i+1]=`￿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`￿`,t[i+1]=`G`,n[i+1]=`￿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Wt=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new Gt(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new Gt(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},Gt=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
11
+ `)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Kt=class{constructor(e,t){this.languageId=e,this.tokenType=t}},qt=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new Kt(e,8),this._embeddedLanguagesMatcher=new Jt(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Kt(0,0);_getBasicScopeAttributes=new Ye(e=>new Kt(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},Jt=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>Je(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var Yt=!1,Xt=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Zt(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=Qt(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new Xt(i,!0);f()}return new Xt(i,!1);function f(){let o=$t(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===Mt){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),on(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof Bt){let r=o;on(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof Vt){let r=o;on(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(on(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function Qt(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof Vt&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=rn(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==Nt){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),on(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function $t(e,t,n,r,i,a){let o=en(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=tn(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function en(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=nn(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function tn(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=nn(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function nn(e,t,n,r,i){return Yt?{ruleScanner:e.compile(t,n),findOptions:an(r,i)}:{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function rn(e,t,n,r,i){return Yt?{ruleScanner:e.compileWhile(t,n),findOptions:an(r,i)}:{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function an(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function on(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));Zt(e,p,n&&d.start===0,d.start,f,i,!1,0),ht(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new sn(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var sn=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function cn(e,t,n,r,i,a,o,s){return new fn(e,t,n,r,i,a,o,s)}function ln(e,t,n,r,i){let a=ft(t,un),o=Ht.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function un(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(dn(t[r],e))return n=r+1,!0;return!1})}function dn(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var fn=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new qt(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=pn(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=ft(e,un);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)ln(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&ln(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(Pt(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[Ft(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=pn(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Ht.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===hn.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=lt.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?mn.createRootAndLookUpScopeName(a,r,this):mn.createRoot(`unknown`,r),t=new hn(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
12
+ `;let a=this.createOnigString(e),o=a.content.length,s=new _n(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=Zt(this,a,i,0,t,s,!0,r);return ht(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function pn(e,t){return e=Le(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var mn=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=Ze.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new Ze(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new Ze(null,t),o=r.themeProvider.themeMatch(a);return new e(null,a,e.mergeAttributes(n,i,o))}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),lt.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a);return new e(t,a,e.mergeAttributes(t.tokenAttributes,i,o))}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},hn=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?mn.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:Ft(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=mn.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,Pt(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,mn.fromExtension(r,n.contentNameScopesList))}},gn=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):ft(e,un).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>ft(e,un).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},_n=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=lt.set(n,0,ut(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=lt.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},vn=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,cn(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},yn=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new vn(Xe.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(Xe.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new gn(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new yt(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},bn=hn.NULL;function xn(e,t){let n=typeof e==`string`?{}:{...e.colorReplacements},r=typeof e==`string`?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))typeof i==`string`?n[e]=i:e===r&&Object.assign(n,i);return n}function Sn(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Cn(e){return Array.isArray(e)?e:[e]}async function wn(e){return Promise.resolve(typeof e==`function`?e():e).then(e=>e.default||e)}function Tn(e){return!e||[`plaintext`,`txt`,`text`,`plain`].includes(e)}function En(e){return e===`ansi`||Tn(e)}function Dn(e){return e===`none`}function On(e){return Dn(e)}function kn(e,t=!1){if(e.length===0)return[[``,0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||``):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}var An={light:`#333333`,dark:`#bbbbbb`},jn={light:`#fffffe`,dark:`#1e1e1e`},Mn=`__shiki_resolved`;function Nn(e){if(e?.[Mn])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||=`dark`,t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.[`editor.foreground`]&&(r=t.colors[`editor.foreground`]),!n&&t?.colors?.[`editor.background`]&&(n=t.colors[`editor.background`]),r||=t.type===`light`?An.light:An.dark,n||=t.type===`light`?jn.light:jn.dark,t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function o(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,`0`).toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?o(e):(a.set(e,n),n)}t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith(`#`),r=e.settings?.background&&!e.settings.background.startsWith(`#`);if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=o(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=o(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i});for(let e of Object.keys(t.colors||{}))if((e===`editor.foreground`||e===`editor.background`||e.startsWith(`terminal.ansi`))&&!t.colors[e]?.startsWith(`#`)){let n=o(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,Mn,{enumerable:!1,writable:!1,value:!0}),t}async function Pn(e){return Array.from(new Set((await Promise.all(e.filter(e=>!En(e)).map(async e=>await wn(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function Fn(e){return(await Promise.all(e.map(async e=>On(e)?null:Nn(await wn(e))))).filter(e=>!!e)}function In(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Ie(`Circular alias \`${Array.from(n).join(` -> `)} -> ${e}\``);n.add(e)}}return e}var Ln=class extends yn{_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return typeof e==`string`?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=Nn(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||=[...this._resolvedThemes.keys()],this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=Xe.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=In(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||[`*`],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEach(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>t?(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e)):!1).filter(e=>!n.includes(e));throw new Ie(`Missing languages ${n.map(([e])=>`\`${e}\``).join(`, `)}, required by ${e.map(([e])=>`\`${e}\``).join(`, `)}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])],this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},Rn=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split(`.`),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(`.`);n=[...n,...this._injections.get(r)||[]]}return n}},zn=0;function Bn(e){zn+=1,e.warnings!==!1&&zn>=10&&zn%10==0&&console.warn(`[Shiki] ${zn} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new Ie("`engine` option is required for synchronous mode");let n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Nn),i=new Ln(new Rn(e.engine,n),r,n,e.langAlias),a;function o(t){return In(t,e.langAlias)}function s(e){g();let t=i.getGrammar(typeof e==`string`?e:e.name);if(!t)throw new Ie(`Language \`${e}\` not found, you may need to load it first`);return t}function c(e){if(e===`none`)return{bg:``,fg:``,name:`none`,settings:[],type:`dark`};g();let t=i.getTheme(e);if(!t)throw new Ie(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(e){g();let t=c(e);return a!==e&&(i.setTheme(t),a=e),{theme:t,colorMap:i.getColorMap()}}function u(){return g(),i.getLoadedThemes()}function d(){return g(),i.getLoadedLanguages()}function f(...e){g(),i.loadLanguages(e.flat(1))}async function p(...e){return f(await Pn(e))}function m(...e){g();for(let t of e.flat(1))i.loadTheme(t)}async function h(...e){return g(),m(await Fn(e))}function g(){if(t)throw new Ie(`Shiki instance has been disposed`)}function _(){t||(t=!0,i.dispose(),--zn)}return{setTheme:l,getTheme:c,getLanguage:s,getLoadedThemes:u,getLoadedLanguages:d,resolveLangAlias:o,loadLanguage:p,loadLanguageSync:f,loadTheme:h,loadThemeSync:m,dispose:_,[Symbol.dispose]:_}}async function Vn(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([Fn(e.themes||[]),Pn(e.langs||[]),e.engine]);return Bn({...e,themes:t,langs:n,engine:r})}var Hn=new WeakMap;function Un(e,t){Hn.set(e,t)}function Wn(e){return Hn.get(e)}var Gn=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries(Cn(n).map(e=>[e,bn])),t)}constructor(...e){if(e.length===2){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return Kn(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function Kn(e){let t=[],n=new Set;function r(e){if(n.has(e))return;n.add(e);let i=e?.nameScopesList?.scopeName;i&&t.push(i),e.parent&&r(e.parent)}return r(e),t}function qn(e,t){if(!(e instanceof Gn))throw new Ie(`Invalid grammar state`);return e.getInternalStack(t)}function Jn(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(Tn(e.resolveLangAlias(n.lang||`text`))||Dn(r))return kn(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),o=e.getLanguage(n.lang||`text`);if(n.grammarState){if(n.grammarState.lang!==o.name)throw new Ie(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${o.name}"`);if(!n.grammarState.themes.includes(i.name))throw new Ie(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}return Xn(t,o,i,a,n)}function Yn(...e){if(e.length===2)return Wn(e[1]);let[t,n,r={}]=e,{lang:i=`text`,theme:a=t.getLoadedThemes()[0]}=r;if(Tn(i)||Dn(a))throw new Ie(`Plain language does not have grammar state`);if(i===`ansi`)throw new Ie(`ANSI language does not have grammar state`);let{theme:o,colorMap:s}=t.setTheme(a),c=t.getLanguage(i);return new Gn(Zn(n,c,o,s,r).stateStack,c.name,o.name)}function Xn(e,t,n,r,i){let a=Zn(e,t,n,r,i),o=new Gn(a.stateStack,t.name,n.name);return Un(a.tokens,o),a.tokens}function Zn(e,t,n,r,i){let a=xn(n,i),{tokenizeMaxLineLength:o=0,tokenizeTimeLimit:s=500}=i,c=kn(e),l=i.grammarState?qn(i.grammarState,n.name)??bn:i.grammarContextCode==null?bn:Zn(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack,u=[],d=[];for(let e=0,f=c.length;e<f;e++){let[f,p]=c[e];if(f===``){u=[],d.push([]);continue}if(o>0&&f.length>=o){u=[],d.push([{content:f,offset:p,color:``,fontStyle:0}]);continue}let m,h,g;i.includeExplanation&&(m=t.tokenizeLine(f,l,s),h=m.tokens,g=0);let _=t.tokenizeLine2(f,l,s),v=_.tokens.length/2;for(let e=0;e<v;e++){let t=_.tokens[2*e],o=e+1<v?_.tokens[2*e+2]:f.length;if(t===o)continue;let s=_.tokens[2*e+1],c=Sn(r[lt.getForeground(s)],a),l=lt.getFontStyle(s),d={content:f.substring(t,o),offset:p+t,color:c,fontStyle:l};if(i.includeExplanation){let e=[];if(i.includeExplanation!==`scopeName`)for(let t of n.settings){let n;switch(typeof t.scope){case`string`:n=t.scope.split(/,/).map(e=>e.trim());break;case`object`:n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}d.explanation=[];let r=0;for(;t+r<o;){let t=h[g],n=f.substring(t.startIndex,t.endIndex);r+=n.length,d.explanation.push({content:n,scopes:i.includeExplanation===`scopeName`?Qn(t.scopes):$n(e,t.scopes)}),g+=1}}u.push(d)}d.push(u),u=[],l=_.ruleStack}return{tokens:d,stateStack:l}}function Qn(e){return e.map(e=>({scopeName:e}))}function $n(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:nr(e,i,t.slice(0,r))}}return n}function er(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]===`.`}function tr(e,t,n){if(!er(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)er(e[r],n[i])&&--r,--i;return r===-1}function nr(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(tr(e,t,n)){r.push(a);break}return r}function rr(e,t,n,r=Jn){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:Wn(a),theme:typeof i.theme==`string`?i.theme:i.theme.name}}),o=ir(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return`includeExplanation`in n&&n.includeExplanation&&(a.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:s,offset:c,...l}=e[t][r];a.variants[i[n].color]=l}),a})),c=a[0].state?new Gn(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return c&&Un(s,c),s}function ir(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let o=i.map(()=>0),s=i.map(e=>e[0]);for(;s.every(e=>e);){let e=Math.min(...s.map(e=>e.content.length));for(let t=0;t<n;t++){let n=s[t];n.content.length===e?(a[t].push(n),o[t]+=1,s[t]=i[t][o[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),s[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}var ar=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],or=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};or.prototype.normal={},or.prototype.property={},or.prototype.space=void 0;function sr(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new or(n,r,t)}function cr(e){return e.toLowerCase()}var lr=class{constructor(e,t){this.attribute=t,this.property=e}};lr.prototype.attribute=``,lr.prototype.booleanish=!1,lr.prototype.boolean=!1,lr.prototype.commaOrSpaceSeparated=!1,lr.prototype.commaSeparated=!1,lr.prototype.defined=!1,lr.prototype.mustUseProperty=!1,lr.prototype.number=!1,lr.prototype.overloadedBoolean=!1,lr.prototype.property=``,lr.prototype.spaceSeparated=!1,lr.prototype.space=void 0;var ur=s({boolean:()=>V,booleanish:()=>fr,commaOrSpaceSeparated:()=>gr,commaSeparated:()=>hr,number:()=>H,overloadedBoolean:()=>pr,spaceSeparated:()=>mr}),dr=0,V=_r(),fr=_r(),pr=_r(),H=_r(),mr=_r(),hr=_r(),gr=_r();function _r(){return 2**++dr}var vr=Object.keys(ur),yr=class extends lr{constructor(e,t,n,r){let i=-1;if(super(e,t),br(this,`space`,r),typeof n==`number`)for(;++i<vr.length;){let e=vr[i];br(this,vr[i],(n&ur[e])===ur[e])}}};yr.prototype.defined=!0;function br(e,t,n){n&&(e[t]=n)}function xr(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new yr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[cr(r)]=r,n[cr(a.attribute)]=r}return new or(t,n,e.space)}var Sr=xr({properties:{ariaActiveDescendant:null,ariaAtomic:fr,ariaAutoComplete:null,ariaBusy:fr,ariaChecked:fr,ariaColCount:H,ariaColIndex:H,ariaColSpan:H,ariaControls:mr,ariaCurrent:null,ariaDescribedBy:mr,ariaDetails:null,ariaDisabled:fr,ariaDropEffect:mr,ariaErrorMessage:null,ariaExpanded:fr,ariaFlowTo:mr,ariaGrabbed:fr,ariaHasPopup:null,ariaHidden:fr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:mr,ariaLevel:H,ariaLive:null,ariaModal:fr,ariaMultiLine:fr,ariaMultiSelectable:fr,ariaOrientation:null,ariaOwns:mr,ariaPlaceholder:null,ariaPosInSet:H,ariaPressed:fr,ariaReadOnly:fr,ariaRelevant:null,ariaRequired:fr,ariaRoleDescription:mr,ariaRowCount:H,ariaRowIndex:H,ariaRowSpan:H,ariaSelected:fr,ariaSetSize:H,ariaSort:null,ariaValueMax:H,ariaValueMin:H,ariaValueNow:H,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Cr(e,t){return t in e?e[t]:t}function wr(e,t){return Cr(e,t.toLowerCase())}var Tr=xr({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:hr,acceptCharset:mr,accessKey:mr,action:null,allow:null,allowFullScreen:V,allowPaymentRequest:V,allowUserMedia:V,alt:null,as:null,async:V,autoCapitalize:null,autoComplete:mr,autoFocus:V,autoPlay:V,blocking:mr,capture:null,charSet:null,checked:V,cite:null,className:mr,cols:H,colSpan:null,content:null,contentEditable:fr,controls:V,controlsList:mr,coords:H|hr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:V,defer:V,dir:null,dirName:null,disabled:V,download:pr,draggable:fr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:V,formTarget:null,headers:mr,height:H,hidden:pr,high:H,href:null,hrefLang:null,htmlFor:mr,httpEquiv:mr,id:null,imageSizes:null,imageSrcSet:null,inert:V,inputMode:null,integrity:null,is:null,isMap:V,itemId:null,itemProp:mr,itemRef:mr,itemScope:V,itemType:mr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:V,low:H,manifest:null,max:null,maxLength:H,media:null,method:null,min:null,minLength:H,multiple:V,muted:V,name:null,nonce:null,noModule:V,noValidate:V,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:V,optimum:H,pattern:null,ping:mr,placeholder:null,playsInline:V,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:V,referrerPolicy:null,rel:mr,required:V,reversed:V,rows:H,rowSpan:H,sandbox:mr,scope:null,scoped:V,seamless:V,selected:V,shadowRootClonable:V,shadowRootDelegatesFocus:V,shadowRootMode:null,shape:null,size:H,sizes:null,slot:null,span:H,spellCheck:fr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:H,step:null,style:null,tabIndex:H,target:null,title:null,translate:null,type:null,typeMustMatch:V,useMap:null,value:fr,width:H,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:mr,axis:null,background:null,bgColor:null,border:H,borderColor:null,bottomMargin:H,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:V,declare:V,event:null,face:null,frame:null,frameBorder:null,hSpace:H,leftMargin:H,link:null,longDesc:null,lowSrc:null,marginHeight:H,marginWidth:H,noResize:V,noHref:V,noShade:V,noWrap:V,object:null,profile:null,prompt:null,rev:null,rightMargin:H,rules:null,scheme:null,scrolling:fr,standby:null,summary:null,text:null,topMargin:H,valueType:null,version:null,vAlign:null,vLink:null,vSpace:H,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:V,disableRemotePlayback:V,prefix:null,property:null,results:H,security:null,unselectable:null},space:`html`,transform:wr}),Er=xr({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:gr,accentHeight:H,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:H,amplitude:H,arabicForm:null,ascent:H,attributeName:null,attributeType:null,azimuth:H,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:H,by:null,calcMode:null,capHeight:H,className:mr,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:H,diffuseConstant:H,direction:null,display:null,dur:null,divisor:H,dominantBaseline:null,download:V,dx:null,dy:null,edgeMode:null,editable:null,elevation:H,enableBackground:null,end:null,event:null,exponent:H,externalResourcesRequired:null,fill:null,fillOpacity:H,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:hr,g2:hr,glyphName:hr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:H,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:H,horizOriginX:H,horizOriginY:H,id:null,ideographic:H,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:H,k:H,k1:H,k2:H,k3:H,k4:H,kernelMatrix:gr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:H,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:H,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:H,overlineThickness:H,paintOrder:null,panose1:null,path:null,pathLength:H,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:mr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:H,pointsAtY:H,pointsAtZ:H,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:gr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:gr,rev:gr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:gr,requiredFeatures:gr,requiredFonts:gr,requiredFormats:gr,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:H,specularExponent:H,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:H,strikethroughThickness:H,string:null,stroke:null,strokeDashArray:gr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:H,strokeOpacity:H,strokeWidth:null,style:null,surfaceScale:H,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:gr,tabIndex:H,tableValues:null,target:null,targetX:H,targetY:H,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:gr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:H,underlineThickness:H,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:H,values:null,vAlphabetic:H,vMathematical:H,vectorEffect:null,vHanging:H,vIdeographic:H,version:null,vertAdvY:H,vertOriginX:H,vertOriginY:H,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:H,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Cr}),Dr=xr({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()}}),Or=xr({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:wr}),kr=xr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),Ar=/[A-Z]/g,jr=/-[a-z]/g,Mr=/^data[-\w.:]+$/i;function Nr(e,t){let n=cr(t),r=t,i=lr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&Mr.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(jr,Fr);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!jr.test(e)){let n=e.replace(Ar,Pr);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=yr}return new i(r,t)}function Pr(e){return`-`+e.toLowerCase()}function Fr(e){return e.charAt(1).toUpperCase()}var Ir=sr([Sr,Tr,Dr,Or,kr],`html`),Lr=sr([Sr,Er,Dr,Or,kr],`svg`),Rr={}.hasOwnProperty;function zr(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&Rr.call(t,e)){let n=String(t[e]);i=Rr.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Br=/["&'<>`]/g,Vr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Hr=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Ur=/[|\\{}()[\]^$+*?.]/g,Wr=new WeakMap;function Gr(e,t){if(e=e.replace(t.subset?Kr(t.subset):Br,r),t.subset||t.escapeOnly)return e;return e.replace(Vr,n).replace(Hr,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function Kr(e){let t=Wr.get(e);return t||(t=qr(e),Wr.set(e,t)),t}function qr(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(Ur,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var Jr=/[\dA-Fa-f]/;function Yr(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!Jr.test(String.fromCharCode(t))?r:r+`;`}var Xr=/\d/;function Zr(e,t,n){let r=`&#`+String(e);return n&&t&&!Xr.test(String.fromCharCode(t))?r:r+`;`}var Qr=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),$r={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},ei=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],ti={}.hasOwnProperty,ni={},ri;for(ri in $r)ti.call($r,ri)&&(ni[$r[ri]]=ri);var ii=/[^\dA-Za-z]/;function ai(e,t,n,r){let i=String.fromCharCode(e);if(ti.call(ni,i)){let e=ni[i],a=`&`+e;return n&&Qr.includes(e)&&!ei.includes(e)&&(!r||t&&t!==61&&ii.test(String.fromCharCode(t)))?a:a+`;`}return``}function oi(e,t,n){let r=Yr(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=ai(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=Zr(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function si(e,t){return Gr(e,Object.assign({format:oi},t))}var ci=/^>|^->|<!--|-->|--!>|<!-$/g,li=[`>`],ui=[`<`,`>`];function di(e,t,n,r){return r.settings.bogusComments?`<?`+si(e.value,Object.assign({},r.settings.characterReferences,{subset:li}))+`>`:`<!--`+e.value.replace(ci,i)+`-->`;function i(e){return si(e,Object.assign({},r.settings.characterReferences,{subset:ui}))}}function fi(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function pi(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function mi(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function hi(e){return e.join(` `).trim()}var gi=/[ \t\n\f\r]/g;function _i(e){return typeof e==`object`?e.type===`text`?vi(e.value):!1:vi(e)}function vi(e){return e.replace(gi,``)===``}var U=xi(1),yi=xi(-1),bi=[];function xi(e){return t;function t(t,n,r){let i=t?t.children:bi,a=(n||0)+e,o=i[a];if(!r)for(;o&&_i(o);)a+=e,o=i[a];return o}}var Si={}.hasOwnProperty;function Ci(e){return t;function t(t,n,r){return Si.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var wi=Ci({body:Di,caption:Ti,colgroup:Ti,dd:Ai,dt:W,head:Ti,html:Ei,li:ki,optgroup:Mi,option:Ni,p:Oi,rp:ji,rt:ji,tbody:Fi,td:Ri,tfoot:Ii,th:Ri,thead:Pi,tr:Li});function Ti(e,t,n){let r=U(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&_i(r.value.charAt(0)))}function Ei(e,t,n){let r=U(n,t);return!r||r.type!==`comment`}function Di(e,t,n){let r=U(n,t);return!r||r.type!==`comment`}function Oi(e,t,n){let r=U(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||!(n.type===`element`&&(n.tagName===`a`||n.tagName===`audio`||n.tagName===`del`||n.tagName===`ins`||n.tagName===`map`||n.tagName===`noscript`||n.tagName===`video`))}function ki(e,t,n){let r=U(n,t);return!r||r.type===`element`&&r.tagName===`li`}function W(e,t,n){let r=U(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function Ai(e,t,n){let r=U(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function ji(e,t,n){let r=U(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function Mi(e,t,n){let r=U(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function Ni(e,t,n){let r=U(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function Pi(e,t,n){let r=U(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function Fi(e,t,n){let r=U(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function Ii(e,t,n){return!U(n,t)}function Li(e,t,n){let r=U(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function Ri(e,t,n){let r=U(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var zi=Ci({body:Hi,colgroup:Ui,head:Vi,html:Bi,tbody:Wi});function Bi(e){let t=U(e,-1);return!t||t.type!==`comment`}function Vi(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function Hi(e){let t=U(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&_i(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function Ui(e,t,n){let r=yi(n,t),i=U(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&wi(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function Wi(e,t,n){let r=yi(n,t),i=U(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&wi(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var Gi={name:[[`
13
+ \f\r &/=>`.split(``),`
14
+ \f\r "&'/=>\``.split(``)],[`\0
15
+ \f\r "&'/<=>`.split(``),`\0
16
+ \f\r "&'/<=>\``.split(``)]],unquoted:[[`
17
+ \f\r &>`.split(``),`\0
18
+ \f\r "&'<=>\``.split(``)],[`\0
19
+ \f\r "&'<=>\``.split(``),`\0
20
+ \f\r "&'<=>\``.split(``)]],single:[[`&'`.split(``),`"&'\``.split(``)],[`\0&'`.split(``),`\0"&'\``.split(``)]],double:[[`"&`.split(``),`"&'\``.split(``)],[`\0"&`.split(``),`\0"&'\``.split(``)]]};function Ki(e,t,n,r){let i=r.schema,a=i.space===`svg`?!1:r.settings.omitOptionalTags,o=i.space===`svg`?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),s=[],c;i.space===`html`&&e.tagName===`svg`&&(r.schema=Lr);let l=qi(r,e.properties),u=r.all(i.space===`html`&&e.tagName===`template`?e.content:e);return r.schema=i,u&&(o=!1),(l||!a||!zi(e,t,n))&&(s.push(`<`,e.tagName,l?` `+l:``),o&&(i.space===`svg`||r.settings.closeSelfClosing)&&(c=l.charAt(l.length-1),(!r.settings.tightSelfClosing||c===`/`||c&&c!==`"`&&c!==`'`)&&s.push(` `),s.push(`/`)),s.push(`>`)),s.push(u),!o&&(!a||!wi(e,t,n))&&s.push(`</`+e.tagName+`>`),s.join(``)}function qi(e,t){let n=[],r=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){let r=Ji(e,i,t[i]);r&&n.push(r)}}for(;++r<n.length;){let t=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&t!==`"`&&t!==`'`&&(n[r]+=` `)}return n.join(``)}function Ji(e,t,n){let r=Nr(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space===`html`?0:1,a=+!e.settings.allowDangerousCharacters,o=e.quote,s;if(r.overloadedBoolean&&(n===r.attribute||n===``)?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!=`string`||n===r.attribute||n===``)&&(n=!!n),n==null||n===!1||typeof n==`number`&&Number.isNaN(n))return``;let c=si(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Gi.name[i][a]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?mi:hi)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=si(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Gi.unquoted[i][a]}))),s!==n&&(e.settings.quoteSmart&&pi(n,o)>pi(n,e.alternative)&&(o=e.alternative),s=o+si(n,Object.assign({},e.settings.characterReferences,{subset:(o===`'`?Gi.single:Gi.double)[i][a],attribute:!0}))+o),c+(s&&`=`+s))}var Yi=[`<`,`&`];function Xi(e,t,n,r){return n&&n.type===`element`&&(n.tagName===`script`||n.tagName===`style`)?e.value:si(e.value,Object.assign({},r.settings.characterReferences,{subset:Yi}))}function Zi(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Xi(e,t,n,r)}function Qi(e,t,n,r){return r.all(e)}var $i=zr(`type`,{invalid:ea,unknown:ta,handlers:{comment:di,doctype:fi,element:Ki,raw:Zi,root:Qi,text:Xi}});function ea(e){throw Error("Expected node, not `"+e+"`")}function ta(e){throw Error("Cannot compile unknown node `"+e.type+"`")}var na={},ra={},ia=[];function aa(e,t){let n=t||na,r=n.quote||`"`,i=r===`"`?`'`:`"`;if(r!==`"`&&r!==`'`)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:oa,all:sa,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||ar,characterReferences:n.characterReferences||ra,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space===`svg`?Lr:Ir,quote:r,alternative:i}.one(Array.isArray(e)?{type:`root`,children:e}:e,void 0,void 0)}function oa(e,t,n){return $i(e,t,n,this)}function sa(e){let t=[],n=e&&e.children||ia,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join(``)}function ca(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class==`string`&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);let n=Array.isArray(t)?t:t.split(/\s+/g);for(let t of n)t&&!e.properties.class.includes(t)&&e.properties.class.push(t);return e}function la(e){let t=kn(e,!0).map(([e])=>e);function n(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}}function r(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+=n,r}return{lines:t,indexToPos:n,posToIndex:r}}function ua(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes(`/`)?e.split(`/`).pop():e;n&&r.add(n)}if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}var da=`light-dark()`,fa=[`color`,`background-color`];function pa(e,t){let n=0,r=[];for(let i of t)i>n&&r.push({...e,content:e.content.slice(n,i),offset:e.offset+n}),n=i;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function ma(e,t){let n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?pa(e,t):e})):e}function ha(e,t,n,r,i=`css-vars`){let a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(t=>ga(e.variants[t])),s=new Set(o.flatMap(e=>Object.keys(e))),c={},l=(e,r)=>{let i=r===`color`?``:r===`background-color`?`-bg`:`-${r}`;return n+t[e]+(r===`color`?``:i)};return o.forEach((e,n)=>{for(let a of s){let s=e[a]||`inherit`;if(n===0&&r&&fa.includes(a))if(r===da&&o.length>1){let e=t.findIndex(e=>e===`light`),r=t.findIndex(e=>e===`dark`);if(e===-1||r===-1)throw new Ie('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');c[a]=`light-dark(${o[e][a]||`inherit`}, ${o[r][a]||`inherit`})`,i===`css-vars`&&(c[l(n,a)]=s)}else c[a]=s;else i===`css-vars`&&(c[l(n,a)]=s)}}),a.htmlStyle=c,a}function ga(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t[`background-color`]=e.bgColor),e.fontStyle){e.fontStyle&rt.Italic&&(t[`font-style`]=`italic`),e.fontStyle&rt.Bold&&(t[`font-weight`]=`bold`);let n=[];e.fontStyle&rt.Underline&&n.push(`underline`),e.fontStyle&rt.Strikethrough&&n.push(`line-through`),n.length&&(t[`text-decoration`]=n.join(` `))}return t}function _a(e){return typeof e==`string`?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(`;`)}function va(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=la(t.source);function r(e){if(typeof e==`number`){if(e<0||e>t.source.length)throw new Ie(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...n.indexToPos(e),offset:e}}else{let t=n.lines[e.line];if(t===void 0)throw new Ie(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${n.lines.length}`);let r=e.character;if(r<0&&(r=t.length+r),r<0||r>t.length)throw new Ie(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:r,offset:n.posToIndex(e.line,r)}}}let i=(t.options.decorations||[]).map(e=>({...e,start:r(e.start),end:r(e.end)}));ya(i),e.set(t.meta,{decorations:i,converter:n,source:t.source})}return e.get(t.meta)}return{name:`shiki:decorations`,tokens(e){if(this.options.decorations?.length)return ma(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>e.type===`element`&&e.tagName===`span`);if(r.length!==n.converter.lines.length)throw new Ie(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let a=r[e],s=``,c=-1,l=-1;if(t===0&&(c=0),n===0&&(l=0),n===1/0&&(l=a.children.length),c===-1||l===-1)for(let e=0;e<a.children.length;e++)s+=ba(a.children[e]),c===-1&&s.length===t&&(c=e+1),l===-1&&s.length===n&&(l=e+1);if(c===-1)throw new Ie(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(l===-1)throw new Ie(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=a.children.slice(c,l);if(!i.alwaysWrap&&u.length===a.children.length)o(a,i,`line`);else if(!i.alwaysWrap&&u.length===1&&u[0].type===`element`)o(u[0],i,`token`);else{let e={type:`element`,tagName:`span`,properties:{},children:u};o(e,i,`wrapper`),a.children.splice(c,u.length,e)}}function a(e,t){r[e]=o(r[e],t,`line`)}function o(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||`span`,e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&ca(e,t.properties.class),e=i(e,n)||e,e}let s=[],c=n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset);for(let e of c){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let r=t.line+1;r<n.line;r++)s.unshift(()=>a(r,e));i(n.line,0,n.character,e)}}s.forEach(e=>e())}}}function ya(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new Ie(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,o=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,s=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||o||s){if(i&&a||o&&s||o&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new Ie(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}}function ba(e){return e.type===`text`?e.value:e.type===`element`?e.children.map(ba).join(``):``}var xa=[va()];function Sa(e){let t=Ca(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...xa]}function Ca(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case`pre`:t.push(i);break;case`post`:n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}var wa=[`black`,`red`,`green`,`yellow`,`blue`,`magenta`,`cyan`,`white`,`brightBlack`,`brightRed`,`brightGreen`,`brightYellow`,`brightBlue`,`brightMagenta`,`brightCyan`,`brightWhite`],Ta={1:`bold`,2:`dim`,3:`italic`,4:`underline`,7:`reverse`,8:`hidden`,9:`strikethrough`};function Ea(e,t){let n=e.indexOf(`\x1B`,t);if(n!==-1&&e[n+1]===`[`){let t=e.indexOf(`m`,n);if(t!==-1)return{sequence:e.substring(n+2,t).split(`;`),startPosition:n,position:t+1}}return{position:e.length}}function Da(e){let t=e.shift();if(t===`2`){let t=e.splice(0,3).map(e=>Number.parseInt(e));return t.length!==3||t.some(e=>Number.isNaN(e))?void 0:{type:`rgb`,rgb:t}}else if(t===`5`){let t=e.shift();if(t)return{type:`table`,index:Number(t)}}}function Oa(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(r===0)t.push({type:`resetAll`});else if(r<=9)Ta[r]&&t.push({type:`setDecoration`,value:Ta[r]});else if(r<=29){let e=Ta[r-20];e&&(t.push({type:`resetDecoration`,value:e}),e===`dim`&&t.push({type:`resetDecoration`,value:`bold`}))}else if(r<=37)t.push({type:`setForegroundColor`,value:{type:`named`,name:wa[r-30]}});else if(r===38){let n=Da(e);n&&t.push({type:`setForegroundColor`,value:n})}else if(r===39)t.push({type:`resetForegroundColor`});else if(r<=47)t.push({type:`setBackgroundColor`,value:{type:`named`,name:wa[r-40]}});else if(r===48){let n=Da(e);n&&t.push({type:`setBackgroundColor`,value:n})}else r===49?t.push({type:`resetBackgroundColor`}):r===53?t.push({type:`setDecoration`,value:`overline`}):r===55?t.push({type:`resetDecoration`,value:`overline`}):r>=90&&r<=97?t.push({type:`setForegroundColor`,value:{type:`named`,name:wa[r-90+8]}}):r>=100&&r<=107&&t.push({type:`setBackgroundColor`,value:{type:`named`,name:wa[r-100+8]}})}return t}function ka(){let e=null,t=null,n=new Set;return{parse(r){let i=[],a=0;do{let o=Ea(r,a),s=o.sequence?r.substring(a,o.startPosition):r.substring(a);if(s.length>0&&i.push({value:s,foreground:e,background:t,decorations:new Set(n)}),o.sequence){let r=Oa(o.sequence);for(let i of r)i.type===`resetAll`?(e=null,t=null,n.clear()):i.type===`resetForegroundColor`?e=null:i.type===`resetBackgroundColor`?t=null:i.type===`resetDecoration`&&n.delete(i.value);for(let i of r)i.type===`setForegroundColor`?e=i.value:i.type===`setBackgroundColor`?t=i.value:i.type===`setDecoration`&&n.add(i.value)}a=o.position}while(a<r.length);return i}}}var Aa={black:`#000000`,red:`#bb0000`,green:`#00bb00`,yellow:`#bbbb00`,blue:`#0000bb`,magenta:`#ff00ff`,cyan:`#00bbbb`,white:`#eeeeee`,brightBlack:`#555555`,brightRed:`#ff5555`,brightGreen:`#00ff00`,brightYellow:`#ffff55`,brightBlue:`#5555ff`,brightMagenta:`#ff55ff`,brightCyan:`#55ffff`,brightWhite:`#ffffff`};function ja(e=Aa){function t(t){return e[t]}function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,`0`)).join(``)}`}let r;function i(){if(r)return r;r=[];for(let e=0;e<wa.length;e++)r.push(t(wa[e]));let e=[0,95,135,175,215,255];for(let t=0;t<6;t++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)r.push(n([e[t],e[i],e[a]]));let i=8;for(let e=0;e<24;e++,i+=10)r.push(n([i,i,i]));return r}function a(e){return i()[e]}function o(e){switch(e.type){case`named`:return t(e.name);case`rgb`:return n(e.rgb);case`table`:return a(e.index)}}return{value:o}}var Ma={black:`#000000`,red:`#cd3131`,green:`#0DBC79`,yellow:`#E5E510`,blue:`#2472C8`,magenta:`#BC3FBC`,cyan:`#11A8CD`,white:`#E5E5E5`,brightBlack:`#666666`,brightRed:`#F14C4C`,brightGreen:`#23D18B`,brightYellow:`#F5F543`,brightBlue:`#3B8EEA`,brightMagenta:`#D670D6`,brightCyan:`#29B8DB`,brightWhite:`#FFFFFF`};function Na(e,t,n){let r=xn(e,n),i=kn(t),a=ja(Object.fromEntries(wa.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||Ma[t]]}))),o=ka();return i.map(t=>o.parse(t[0]).map(n=>{let i,o;n.decorations.has(`reverse`)?(i=n.background?a.value(n.background):e.bg,o=n.foreground?a.value(n.foreground):e.fg):(i=n.foreground?a.value(n.foreground):e.fg,o=n.background?a.value(n.background):void 0),i=Sn(i,r),o=Sn(o,r),n.decorations.has(`dim`)&&(i=Pa(i));let s=rt.None;return n.decorations.has(`bold`)&&(s|=rt.Bold),n.decorations.has(`italic`)&&(s|=rt.Italic),n.decorations.has(`underline`)&&(s|=rt.Underline),n.decorations.has(`strikethrough`)&&(s|=rt.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:o,fontStyle:s}}))}function Pa(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(e.length===8){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,`0`);return`#${e.slice(0,6)}${t}`}else if(e.length===6)return`#${e}80`;else if(e.length===4){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,`0`)}`}else if(e.length===3){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function Fa(e,t,n={}){let r=e.resolveLangAlias(n.lang||`text`),{theme:i=e.getLoadedThemes()[0]}=n;if(!Tn(r)&&!Dn(i)&&r===`ansi`){let{theme:r}=e.setTheme(i);return Na(r,t,n)}return Jn(e,t,n)}function Ia(e,t,n){let r,i,a,o,s,c;if(`themes`in n){let{defaultColor:l=`light`,cssVariablePrefix:u=`--shiki-`,colorsRendering:d=`css-vars`}=n,f=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===l?-1:+(t.color===l));if(f.length===0)throw new Ie("`themes` option must not be empty");let p=rr(e,t,n,Fa);if(c=Wn(p),l&&da!==l&&!f.find(e=>e.color===l))throw new Ie(`\`themes\` option must contain the defaultColor key \`${l}\``);let m=f.map(t=>e.getTheme(t.theme)),h=f.map(e=>e.color);a=p.map(e=>e.map(e=>ha(e,h,u,l,d))),c&&Un(a,c);let g=f.map(e=>xn(e.theme,n));i=La(f,m,g,u,l,`fg`,d),r=La(f,m,g,u,l,`bg`,d),o=`shiki-themes ${m.map(e=>e.name).join(` `)}`,s=l?void 0:[i,r].join(`;`)}else if(`theme`in n){let s=xn(n.theme,n);a=Fa(e,t,n);let l=e.getTheme(n.theme);r=Sn(l.bg,s),i=Sn(l.fg,s),o=l.name,c=Wn(a)}else throw new Ie("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:o,rootStyle:s,grammarState:c}}function La(e,t,n,r,i,a,o){return e.map((s,c)=>{let l=Sn(t[c][a],n[c])||`inherit`,u=`${r+s.color}${a===`bg`?`-bg`:``}:${l}`;if(c===0&&i){if(i===da&&e.length>1){let r=e.findIndex(e=>e.color===`light`),i=e.findIndex(e=>e.color===`dark`);if(r===-1||i===-1)throw new Ie('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${Sn(t[r][a],n[r])||`inherit`}, ${Sn(t[i][a],n[i])||`inherit`});${u}`}return l}return o===`css-vars`?u:null}).filter(e=>!!e).join(`;`)}function Ra(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>Ra(e,t,n),codeToTokens:(t,n)=>Ia(e,t,n)}){let i=t;for(let e of Sa(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:o,bg:s,themeName:c,rootStyle:l,grammarState:u}=Ia(e,i,n),{mergeWhitespaces:d=!0,mergeSameStyleTokens:f=!1}=n;d===!0?a=Ba(a):d===`never`&&(a=Va(a)),f&&(a=Ha(a));let p={...r,get source(){return i}};for(let e of Sa(n))a=e.tokens?.call(p,a)||a;return za(a,{...n,fg:o,bg:s,themeName:c,rootStyle:n.rootStyle===!1?!1:n.rootStyle??l},p,u)}function za(e,t,n,r=Wn(e)){let i=Sa(t),a=[],o={type:`root`,children:[]},{structure:s=`classic`,tabindex:c=`0`}=t,l={class:`shiki ${t.themeName||``}`};t.rootStyle!==!1&&(t.rootStyle==null?l.style=`background-color:${t.bg};color:${t.fg}`:l.style=t.rootStyle),c!==!1&&c!=null&&(l.tabindex=c.toString());for(let[e,n]of Object.entries(t.meta||{}))e.startsWith(`_`)||(l[e]=n);let u={type:`element`,tagName:`pre`,properties:l,children:[],data:t.data},d={type:`element`,tagName:`code`,properties:{},children:a},f=[],p={...n,structure:s,addClassToHast:ca,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return o},get pre(){return u},get code(){return d},get lines(){return f}};if(e.forEach((e,t)=>{t&&(s===`inline`?o.children.push({type:`element`,tagName:`br`,properties:{},children:[]}):s===`classic`&&a.push({type:`text`,value:`
21
+ `}));let n={type:`element`,tagName:`span`,properties:{class:`line`},children:[]},r=0;for(let a of e){let e={type:`element`,tagName:`span`,properties:{...a.htmlAttrs},children:[{type:`text`,value:a.content}]},c=_a(a.htmlStyle||ga(a));c&&(e.properties.style=c);for(let o of i)e=o?.span?.call(p,e,t+1,r,n,a)||e;s===`inline`?o.children.push(e):s===`classic`&&n.children.push(e),r+=a.content.length}if(s===`classic`){for(let e of i)n=e?.line?.call(p,n,t+1)||n;f.push(n),a.push(n)}else s===`inline`&&f.push(n)}),s===`classic`){for(let e of i)d=e?.code?.call(p,d)||d;u.children.push(d);for(let e of i)u=e?.pre?.call(p,u)||u;o.children.push(u)}else if(s===`inline`){let e=[],t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]};for(let n of o.children)n.type===`element`&&n.tagName===`br`?(e.push(t),t={type:`element`,tagName:`span`,properties:{class:`line`},children:[]}):(n.type===`element`||n.type===`text`)&&t.children.push(n);e.push(t);let n={type:`element`,tagName:`code`,properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;o.children=[];for(let e=0;e<n.children.length;e++){e>0&&o.children.push({type:`element`,tagName:`br`,properties:{},children:[]});let t=n.children[e];t.type===`element`&&o.children.push(...t.children)}}let m=o;for(let e of i)m=e?.root?.call(p,m)||m;return r&&Un(m,r),m}function Ba(e){return e.map(e=>{let t=[],n=``,r;return e.forEach((i,a)=>{let o=!(i.fontStyle&&(i.fontStyle&rt.Underline||i.fontStyle&rt.Strikethrough));o&&i.content.match(/^\s+$/)&&e[a+1]?(r===void 0&&(r=i.offset),n+=i.content):n?(o?t.push({...i,offset:r,content:n+i.content}):t.push({content:n,offset:r},i),r=void 0,n=``):t.push(i)}),t})}function Va(e){return e.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))}function Ha(e){return e.map(e=>{let t=[];for(let n of e){if(t.length===0){t.push({...n});continue}let e=t[t.length-1],r=_a(e.htmlStyle||ga(e)),i=_a(n.htmlStyle||ga(n)),a=e.fontStyle&&(e.fontStyle&rt.Underline||e.fontStyle&rt.Strikethrough),o=n.fontStyle&&(n.fontStyle&rt.Underline||n.fontStyle&rt.Strikethrough);!a&&!o&&r===i?e.content+=n.content:t.push({...n})}return t})}var Ua=aa;function Wa(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>Ra(e,t,n),codeToTokens:(t,n)=>Ia(e,t,n)},i=Ua(Ra(e,t,n,r));for(let e of Sa(n))i=e.postprocess?.call(r,i,n)||i;return i}async function Ga(e){let t=await Vn(e);return{getLastGrammarState:(...e)=>Yn(t,...e),codeToTokensBase:(e,n)=>Fa(t,e,n),codeToTokensWithThemes:(e,n)=>rr(t,e,n),codeToTokens:(e,n)=>Ia(t,e,n),codeToHast:(e,n)=>Ra(t,e,n),codeToHtml:(e,n)=>Wa(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}function Ka(e){let t=e.langs,n=e.themes,r=e.engine;async function i(e){function i(n){if(typeof n==`string`){if(n=e.langAlias?.[n]||n,En(n))return[];let r=t[n];if(!r)throw new Ie(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(On(e))return`none`;if(typeof e==`string`){let t=n[e];if(!t)throw new Ie(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let o=(e.themes??[]).map(e=>a(e)),s=(e.langs??[]).map(e=>i(e)),c=await Ga({engine:e.engine??r(),...e,themes:o,langs:s});return{...c,loadLanguage(...e){return c.loadLanguage(...e.map(i))},loadTheme(...e){return c.loadTheme(...e.map(a))},getBundledLanguages(){return t},getBundledThemes(){return n}}}return i}function qa(e){let t;async function n(n={}){if(t){let e=await t;return await Promise.all([e.loadTheme(...n.themes||[]),e.loadLanguage(...n.langs||[])]),e}else{t=e({...n,themes:[],langs:[]});let r=await t;return await Promise.all([r.loadTheme(...n.themes||[]),r.loadLanguage(...n.langs||[])]),r}}return n}function Ja(e,t){let n=qa(e);async function r(e,r){let i=await n({langs:[r.lang],themes:`theme`in r?[r.theme]:Object.values(r.themes)}),a=await t?.guessEmbeddedLanguages?.(e,r.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter(e){return n(e)},async codeToHtml(e,t){return(await r(e,t)).codeToHtml(e,t)},async codeToHast(e,t){return(await r(e,t)).codeToHast(e,t)},async codeToTokens(e,t){return(await r(e,t)).codeToTokens(e,t)},async codeToTokensBase(e,t){return(await r(e,t)).codeToTokensBase(e,t)},async codeToTokensWithThemes(e,t){return(await r(e,t)).codeToTokensWithThemes(e,t)},async getLastGrammarState(e,t){return(await n({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}}var Ya=Ka({langs:oe,themes:se,engine:()=>(0,Fe.createOnigurumaEngine)(I(()=>import(`./wasm-CTxiiVQP.js`),[]))}),{codeToHtml:Xa,codeToHast:Za,codeToTokens:Qa,codeToTokensBase:$a,codeToTokensWithThemes:eo,getSingletonHighlighter:to,getLastGrammarState:no}=Ja(Ya,{guessEmbeddedLanguages:ua});function ro(e,t){if(!e||!t.contains(e))return null;let n=e;for(;n&&n!==t;){if(n.nodeType===Node.ELEMENT_NODE){let e=n.getAttribute(`data-line`);if(e!==null){let t=Number(e);return Number.isFinite(t)?t:null}}n=n.parentNode}return null}function io(e,t){if(!e||e.isCollapsed||e.rangeCount===0)return null;let n=e.getRangeAt(0),r=ro(n.startContainer,t),i=ro(n.endContainer,t);return r===null||i===null?null:r<=i?[r,i]:[i,r]}var ao=[`typescript`,`javascript`,`tsx`,`jsx`,`python`,`markdown`,`json`,`html`,`css`],oo=new Set(ao),so=`github-dark`,G=null;function co(){return G||=Ya({themes:[so],langs:[...ao]}),G}function lo(e){return e?.toLowerCase().trim()||`text`}function uo({content:e,language:t,filePath:n,highlightedLines:r,scrollTarget:i,onError:a,onLinesSelected:o,selectedRange:s}){let[c,l]=(0,S.useState)({status:`loading`}),u=(0,S.useRef)(null),d=(0,S.useRef)(null);(0,S.useEffect)(()=>{let n=!1,r=lo(t);if(r===`text`){l({status:`fallback`});return}return l({status:`loading`}),(async()=>{try{let t=await co();if(n)return;if(!oo.has(r)&&!t.getLoadedLanguages().includes(r))try{await t.loadLanguage(r)}catch{if(n)return;l({status:`fallback`});return}if(n)return;let i=t.codeToHtml(e,{lang:r,theme:so,transformers:[{line(e,t){e.properties=e.properties??{},e.properties[`data-line`]=String(t)}}]});if(n)return;l({status:`ready`,html:i})}catch(e){if(n)return;console.error(`mochi: highlighter failed`,e),a?.(e),l({status:`fallback`})}})(),()=>{n=!0}},[e,t,a]),(0,S.useEffect)(()=>{if(c.status!==`ready`)return;let e=u.current;if(e&&(e.querySelectorAll(`.line[data-active]`).forEach(e=>e.removeAttribute(`data-active`)),r)){let[t,n]=r;for(let r=t;r<=n;r++)e.querySelector(`.line[data-line="${r}"]`)?.setAttribute(`data-active`,`true`)}},[r,c]),(0,S.useEffect)(()=>{if(c.status!==`ready`)return;let e=u.current;if(e&&(e.querySelectorAll(`.line[data-selected]`).forEach(e=>e.removeAttribute(`data-selected`)),s&&(!n||s.file===n))){let[t,n]=s.lines;for(let r=t;r<=n;r++)e.querySelector(`.line[data-line="${r}"]`)?.setAttribute(`data-selected`,`true`)}},[s,n,c]),(0,S.useEffect)(()=>{if(c.status!==`ready`||!i)return;let e=u.current;e&&e.querySelector(`.line[data-line="${i.line}"]`)?.scrollIntoView({behavior:`smooth`,block:`center`})},[i,c]),(0,S.useEffect)(()=>{d.current=null},[n]);let f=(0,S.useCallback)(e=>{if(!o||!n)return;let t=u.current;if(!t)return;let r=io(typeof window<`u`?window.getSelection():null,t);if(r){o(n,r),d.current=null;return}let i=e.target?.closest(`.line[data-line]`);if(!i||!t.contains(i))return;let a=Number(i.getAttribute(`data-line`));if(Number.isFinite(a))if(e.shiftKey&&d.current!==null){let e=d.current;o(n,e<=a?[e,a]:[a,e]),d.current=null}else d.current=a},[o,n]),p=o?{onMouseUp:f}:{};return(0,C.jsxs)(`div`,{className:`code-frame`,children:[(0,C.jsx)(`div`,{className:`code-header`,children:(0,C.jsx)(`span`,{className:`code-header__path`,children:n??``})}),c.status===`loading`&&(0,C.jsx)(`div`,{className:`code-pane code-pane--loading`,children:`Highlighting…`}),c.status===`ready`&&(0,C.jsx)(`div`,{ref:u,className:`code-pane`,dangerouslySetInnerHTML:{__html:c.html},...p}),c.status===`fallback`&&(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(`div`,{className:`code-pane__fallback-notice`,children:`Syntax highlighting unavailable; showing raw text.`}),(0,C.jsx)(`pre`,{className:`code-pane code-pane--fallback`,children:e})]})]})}var fo=(0,S.forwardRef)(function({className:e,...t},n){return(0,C.jsx)(`textarea`,{ref:n,className:[`ui-textarea`,e].filter(Boolean).join(` `),...t})}),po=300;function mo(){let{intent:e,setIntent:t}=E(),[n,r]=(0,S.useState)(e),i=(0,S.useRef)(null);(0,S.useEffect)(()=>{r(e)},[e]),(0,S.useEffect)(()=>()=>{i.current&&clearTimeout(i.current)},[]);function a(n){r(n),i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{i.current=null,n!==e&&t(n)},po)}return(0,C.jsx)(fo,{placeholder:`Ask about this file — e.g. how does auth work, trace a request, what's the state machine`,value:n,onChange:e=>a(e.target.value),rows:1,spellCheck:!1})}var ho=(0,S.forwardRef)(function({variant:e=`primary`,size:t=`md`,className:n,children:r,type:i=`button`,...a},o){return(0,C.jsx)(`button`,{ref:o,type:i,className:[`ui-button`,`ui-button--${e}`,`ui-button--${t}`,n].filter(Boolean).join(` `),"data-variant":e,"data-size":t,...a,children:r})}),go=(0,S.createContext)(null);function _o(){let e=(0,S.useContext)(go);if(e===null)throw Error(`useDiagramTabs must be called inside <DiagramTabsProvider>`);return e}function vo(e){let t=e.lensOverride??`auto`,n=e.scope;return n.kind===`file`?`${n.path.split(`/`).pop()??n.path} · ${t}`:n.kind===`directory`?`${n.path.replace(/\/$/,``).split(`/`).pop()??n.path}/ · ${t}`:`${n.paths.length} files · ${t}`}var yo=0;function bo(){return yo+=1,`diagram-${Date.now()}-${yo}`}function xo({children:e}){let[t,n]=(0,S.useState)([]),[r,i]=(0,S.useState)(null),[a,o]=(0,S.useState)(null),s=(0,S.useCallback)(e=>{let t=bo(),r={id:t,params:e,label:vo(e)};n(e=>[...e,r]),i(t)},[]),c=(0,S.useCallback)(e=>{n(t=>{let n=t.findIndex(t=>t.id===e),r=t.filter(t=>t.id!==e);return i(t=>t===e?(r[n]??r[n-1])?.id??null:t),r})},[]),l=(0,S.useCallback)((e,t)=>{o({file:e,range:t,tick:Date.now()})},[]),u=(0,S.useMemo)(()=>({tabs:t,activeTabId:r,createTab:s,closeTab:c,setActiveTabId:i,codePeekRequest:a,requestCodePeek:l}),[t,r,s,c,a,l]);return(0,C.jsx)(go.Provider,{value:u,children:e})}function So(){let{scope:e,intent:t}=E(),{createTab:n}=_o(),r=e!==null;return(0,C.jsxs)(`header`,{className:`diagram-header`,"data-testid":`diagram-header`,children:[(0,C.jsx)(`div`,{className:`diagram-header__intent`,children:(0,C.jsx)(mo,{})}),(0,C.jsx)(`div`,{className:`diagram-header__actions`,children:(0,C.jsx)(ho,{variant:`primary`,size:`sm`,onClick:()=>{r&&n({scope:e,intent:t,lensOverride:null})},disabled:!r,children:`Generate`})})]})}var Co={info:`info`,success:`success`,warning:`warning`,error:`error`};function wo({severity:e=`info`,icon:t,role:n,className:r,children:i}){let a=n??(e===`warning`||e===`error`?`alert`:`note`);return(0,C.jsxs)(`div`,{className:[`ui-banner`,`ui-banner--${Co[e]}`,r].filter(Boolean).join(` `),role:a,"data-severity":e,children:[t!==void 0&&(0,C.jsx)(`span`,{className:`ui-banner__icon`,children:t}),(0,C.jsx)(`div`,{className:`ui-banner__body`,children:i})]})}var To=(0,S.forwardRef)(function({padding:e=`md`,shadow:t=`e1`,className:n,children:r,...i},a){return(0,C.jsx)(`div`,{ref:a,className:[`ui-card`,`ui-card--p-${e}`,`ui-card--s-${t}`,n].filter(Boolean).join(` `),"data-padding":e,"data-shadow":t,...i,children:r})});function Eo({accent:e=`neutral`,className:t,children:n}){return(0,C.jsx)(`span`,{className:[`ui-pill`,`ui-pill--${e}`,t].filter(Boolean).join(` `),"data-accent":e,children:n})}function Do({spec:e}){if(e===null)return(0,C.jsx)(`div`,{className:`generic-diagram-frame generic-diagram-frame--empty`,children:`No diagram yet — click Generate.`});let t=e.nodes??[],n=e.edges??[],r=e.steps??[],i=new Map(t.map(e=>[e.id,e.label])),a=new Map(n.map(e=>[e.id,e.label??`${e.from} → ${e.to}`]));return(0,C.jsxs)(`div`,{className:`generic-diagram-frame`,children:[(0,C.jsxs)(`div`,{children:[(0,C.jsx)(`span`,{className:`generic-diagram-frame__lens-label`,children:`Lens:`}),(0,C.jsx)(`span`,{className:`generic-diagram-frame__lens-value`,children:e.lens??`—`})]}),(0,C.jsxs)(To,{padding:`md`,shadow:`e1`,children:[(0,C.jsxs)(`h4`,{className:`generic-diagram-frame__section-title`,children:[`Nodes (`,t.length,`)`]}),t.length===0?(0,C.jsx)(`p`,{className:`generic-diagram-frame__anchor`,children:`No nodes yet.`}):(0,C.jsx)(`ul`,{className:`generic-diagram-frame__items`,children:t.map(e=>(0,C.jsxs)(`li`,{children:[(0,C.jsx)(`code`,{className:`generic-diagram-frame__code`,children:e.id}),` · `,e.label,` `,(0,C.jsx)(Eo,{accent:`neutral`,children:e.kind}),e.code_anchor&&(0,C.jsxs)(`span`,{className:`generic-diagram-frame__anchor`,children:[` `,`— `,e.code_anchor.file,`:`,e.code_anchor.range[0],`–`,e.code_anchor.range[1]]})]},e.id))})]}),(0,C.jsxs)(To,{padding:`md`,shadow:`e1`,children:[(0,C.jsxs)(`h4`,{className:`generic-diagram-frame__section-title`,children:[`Edges (`,n.length,`)`]}),n.length===0?(0,C.jsx)(`p`,{className:`generic-diagram-frame__anchor`,children:`No edges yet.`}):(0,C.jsx)(`ul`,{className:`generic-diagram-frame__items`,children:n.map(e=>(0,C.jsxs)(`li`,{children:[(0,C.jsx)(`code`,{className:`generic-diagram-frame__code`,children:e.from}),` →`,` `,(0,C.jsx)(`code`,{className:`generic-diagram-frame__code`,children:e.to}),e.kind!==void 0&&(0,C.jsxs)(C.Fragment,{children:[` · `,(0,C.jsx)(Eo,{accent:`info`,children:e.kind})]}),e.label!==void 0&&(0,C.jsxs)(C.Fragment,{children:[` · `,e.label]})]},e.id))})]}),(0,C.jsxs)(To,{padding:`md`,shadow:`e1`,children:[(0,C.jsxs)(`h4`,{className:`generic-diagram-frame__section-title`,children:[`Steps (`,r.length,`)`]}),r.length===0?(0,C.jsx)(`p`,{className:`generic-diagram-frame__anchor`,children:`No steps yet.`}):(0,C.jsx)(`ol`,{className:`generic-diagram-frame__items`,children:r.map(e=>{let t=e.highlight.nodes.map(e=>i.get(e)??e),n=e.highlight.edges.map(e=>a.get(e)??e);return(0,C.jsxs)(`li`,{children:[e.narration,(t.length>0||n.length>0)&&(0,C.jsxs)(`span`,{className:`generic-diagram-frame__step-highlight`,children:[t.length>0&&(0,C.jsxs)(C.Fragment,{children:[` · nodes: `,t.join(`, `)]}),n.length>0&&(0,C.jsxs)(C.Fragment,{children:[` · edges: `,n.join(`, `)]})]})]},e.id)})})]})]})}var Oo=o(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),ko=o(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),Ao=o(((e,t)=>{var n=ko();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),jo=o(((e,t)=>{var n=Ao(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),Mo=o(((e,t)=>{var n=Ao();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),No=o(((e,t)=>{var n=Ao();function r(e){return n(this.__data__,e)>-1}t.exports=r})),Po=o(((e,t)=>{var n=Ao();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),Fo=o(((e,t)=>{var n=Oo(),r=jo(),i=Mo(),a=No(),o=Po();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),Io=o(((e,t)=>{var n=Fo();function r(){this.__data__=new n,this.size=0}t.exports=r})),Lo=o(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),Ro=o(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),zo=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),Bo=o(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),Vo=o(((e,t)=>{var n=Bo(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),Ho=o(((e,t)=>{t.exports=Vo().Symbol})),Uo=o(((e,t)=>{var n=Ho(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),Wo=o(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),Go=o(((e,t)=>{var n=Ho(),r=Uo(),i=Wo(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),Ko=o(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),qo=o(((e,t)=>{var n=Go(),r=Ko(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),Jo=o(((e,t)=>{t.exports=Vo()[`__core-js_shared__`]})),Yo=o(((e,t)=>{var n=Jo(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),Xo=o(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),Zo=o(((e,t)=>{var n=qo(),r=Yo(),i=Ko(),a=Xo(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),Qo=o(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),$o=o(((e,t)=>{var n=Zo(),r=Qo();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),es=o(((e,t)=>{t.exports=$o()(Vo(),`Map`)})),ts=o(((e,t)=>{t.exports=$o()(Object,`create`)})),ns=o(((e,t)=>{var n=ts();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),rs=o(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),is=o(((e,t)=>{var n=ts(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),as=o(((e,t)=>{var n=ts(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),os=o(((e,t)=>{var n=ts(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),ss=o(((e,t)=>{var n=ns(),r=rs(),i=is(),a=as(),o=os();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),cs=o(((e,t)=>{var n=ss(),r=Fo(),i=es();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),ls=o(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),us=o(((e,t)=>{var n=ls();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),ds=o(((e,t)=>{var n=us();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),fs=o(((e,t)=>{var n=us();function r(e){return n(this,e).get(e)}t.exports=r})),ps=o(((e,t)=>{var n=us();function r(e){return n(this,e).has(e)}t.exports=r})),ms=o(((e,t)=>{var n=us();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),hs=o(((e,t)=>{var n=cs(),r=ds(),i=fs(),a=ps(),o=ms();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),gs=o(((e,t)=>{var n=Fo(),r=es(),i=hs(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),_s=o(((e,t)=>{var n=Fo(),r=Io(),i=Lo(),a=Ro(),o=zo(),s=gs();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),vs=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}t.exports=n})),ys=o(((e,t)=>{var n=$o();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),bs=o(((e,t)=>{var n=ys();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),xs=o(((e,t)=>{var n=bs(),r=ko(),i=Object.prototype.hasOwnProperty;function a(e,t,a){var o=e[t];(!(i.call(e,t)&&r(o,a))||a===void 0&&!(t in e))&&n(e,t,a)}t.exports=a})),Ss=o(((e,t)=>{var n=xs(),r=bs();function i(e,t,i,a){var o=!i;i||={};for(var s=-1,c=t.length;++s<c;){var l=t[s],u=a?a(i[l],e[l],l,i,e):void 0;u===void 0&&(u=e[l]),o?r(i,l,u):n(i,l,u)}return i}t.exports=i})),Cs=o(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),ws=o(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),Ts=o(((e,t)=>{var n=Go(),r=ws(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),Es=o(((e,t)=>{var n=Ts(),r=ws(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),Ds=o(((e,t)=>{t.exports=Array.isArray})),Os=o(((e,t)=>{function n(){return!1}t.exports=n})),ks=o(((e,t)=>{var n=Vo(),r=Os(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),As=o(((e,t)=>{var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function i(e,t){var i=typeof e;return t??=n,!!t&&(i==`number`||i!=`symbol`&&r.test(e))&&e>-1&&e%1==0&&e<t}t.exports=i})),js=o(((e,t)=>{var n=9007199254740991;function r(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=n}t.exports=r})),Ms=o(((e,t)=>{var n=Go(),r=js(),i=ws(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),Ns=o(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),Ps=o(((e,t)=>{var n=Bo(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),Fs=o(((e,t)=>{var n=Ms(),r=Ns(),i=Ps(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),Is=o(((e,t)=>{var n=Cs(),r=Es(),i=Ds(),a=ks(),o=As(),s=Fs(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),Ls=o(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),Rs=o(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),zs=o(((e,t)=>{t.exports=Rs()(Object.keys,Object)})),Bs=o(((e,t)=>{var n=Ls(),r=zs(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),Vs=o(((e,t)=>{var n=qo(),r=js();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),Hs=o(((e,t)=>{var n=Is(),r=Bs(),i=Vs();function a(e){return i(e)?n(e):r(e)}t.exports=a})),Us=o(((e,t)=>{var n=Ss(),r=Hs();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),Ws=o(((e,t)=>{function n(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}t.exports=n})),Gs=o(((e,t)=>{var n=Ko(),r=Ls(),i=Ws(),a=Object.prototype.hasOwnProperty;function o(e){if(!n(e))return i(e);var t=r(e),o=[];for(var s in e)s==`constructor`&&(t||!a.call(e,s))||o.push(s);return o}t.exports=o})),Ks=o(((e,t)=>{var n=Is(),r=Gs(),i=Vs();function a(e){return i(e)?n(e,!0):r(e)}t.exports=a})),qs=o(((e,t)=>{var n=Ss(),r=Ks();function i(e,t){return e&&n(t,r(t),e)}t.exports=i})),Js=o(((e,t)=>{var n=Vo(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r?n.Buffer:void 0,o=a?a.allocUnsafe:void 0;function s(e,t){if(t)return e.slice();var n=e.length,r=o?o(n):new e.constructor(n);return e.copy(r),r}t.exports=s})),Ys=o(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}t.exports=n})),Xs=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),Zs=o(((e,t)=>{function n(){return[]}t.exports=n})),Qs=o(((e,t)=>{var n=Xs(),r=Zs(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),$s=o(((e,t)=>{var n=Ss(),r=Qs();function i(e,t){return n(e,r(e),t)}t.exports=i})),ec=o(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),tc=o(((e,t)=>{t.exports=Rs()(Object.getPrototypeOf,Object)})),nc=o(((e,t)=>{var n=ec(),r=tc(),i=Qs(),a=Zs();t.exports=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=r(e);return t}:a})),rc=o(((e,t)=>{var n=Ss(),r=nc();function i(e,t){return n(e,r(e),t)}t.exports=i})),ic=o(((e,t)=>{var n=ec(),r=Ds();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),ac=o(((e,t)=>{var n=ic(),r=Qs(),i=Hs();function a(e){return n(e,i,r)}t.exports=a})),oc=o(((e,t)=>{var n=ic(),r=nc(),i=Ks();function a(e){return n(e,i,r)}t.exports=a})),sc=o(((e,t)=>{t.exports=$o()(Vo(),`DataView`)})),cc=o(((e,t)=>{t.exports=$o()(Vo(),`Promise`)})),lc=o(((e,t)=>{t.exports=$o()(Vo(),`Set`)})),uc=o(((e,t)=>{t.exports=$o()(Vo(),`WeakMap`)})),dc=o(((e,t)=>{var n=sc(),r=es(),i=cc(),a=lc(),o=uc(),s=Go(),c=Xo(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),fc=o(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]==`string`&&n.call(e,`index`)&&(r.index=e.index,r.input=e.input),r}t.exports=r})),pc=o(((e,t)=>{t.exports=Vo().Uint8Array})),mc=o(((e,t)=>{var n=pc();function r(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}t.exports=r})),hc=o(((e,t)=>{var n=mc();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}t.exports=r})),gc=o(((e,t)=>{var n=/\w*$/;function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}t.exports=r})),_c=o(((e,t)=>{var n=Ho(),r=n?n.prototype:void 0,i=r?r.valueOf:void 0;function a(e){return i?Object(i.call(e)):{}}t.exports=a})),vc=o(((e,t)=>{var n=mc();function r(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}t.exports=r})),yc=o(((e,t)=>{var n=mc(),r=hc(),i=gc(),a=_c(),o=vc(),s=`[object Boolean]`,c=`[object Date]`,l=`[object Map]`,u=`[object Number]`,d=`[object RegExp]`,f=`[object Set]`,p=`[object String]`,m=`[object Symbol]`,h=`[object ArrayBuffer]`,g=`[object DataView]`,_=`[object Float32Array]`,v=`[object Float64Array]`,y=`[object Int8Array]`,b=`[object Int16Array]`,x=`[object Int32Array]`,S=`[object Uint8Array]`,C=`[object Uint8ClampedArray]`,w=`[object Uint16Array]`,T=`[object Uint32Array]`;function E(e,t,E){var D=e.constructor;switch(t){case h:return n(e);case s:case c:return new D(+e);case g:return r(e,E);case _:case v:case y:case b:case x:case S:case C:case w:case T:return o(e,E);case l:return new D;case u:case p:return new D(e);case d:return i(e);case f:return new D;case m:return a(e)}}t.exports=E})),bc=o(((e,t)=>{var n=Ko(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),xc=o(((e,t)=>{var n=bc(),r=tc(),i=Ls();function a(e){return typeof e.constructor==`function`&&!i(e)?n(r(e)):{}}t.exports=a})),Sc=o(((e,t)=>{var n=dc(),r=ws(),i=`[object Map]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),Cc=o(((e,t)=>{var n=Sc(),r=Ns(),i=Ps(),a=i&&i.isMap;t.exports=a?r(a):n})),wc=o(((e,t)=>{var n=dc(),r=ws(),i=`[object Set]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),Tc=o(((e,t)=>{var n=wc(),r=Ns(),i=Ps(),a=i&&i.isSet;t.exports=a?r(a):n})),Ec=o(((e,t)=>{var n=_s(),r=vs(),i=xs(),a=Us(),o=qs(),s=Js(),c=Ys(),l=$s(),u=rc(),d=ac(),f=oc(),p=dc(),m=fc(),h=yc(),g=xc(),_=Ds(),v=ks(),y=Cc(),b=Ko(),x=Tc(),S=Hs(),C=Ks(),w=1,T=2,E=4,D=`[object Arguments]`,O=`[object Array]`,k=`[object Boolean]`,A=`[object Date]`,j=`[object Error]`,ee=`[object Function]`,M=`[object GeneratorFunction]`,N=`[object Map]`,te=`[object Number]`,P=`[object Object]`,F=`[object RegExp]`,ne=`[object Set]`,re=`[object String]`,ie=`[object Symbol]`,I=`[object WeakMap]`,L=`[object ArrayBuffer]`,R=`[object DataView]`,ae=`[object Float32Array]`,oe=`[object Float64Array]`,se=`[object Int8Array]`,ce=`[object Int16Array]`,le=`[object Int32Array]`,ue=`[object Uint8Array]`,de=`[object Uint8ClampedArray]`,fe=`[object Uint16Array]`,pe=`[object Uint32Array]`,z={};z[D]=z[O]=z[L]=z[R]=z[k]=z[A]=z[ae]=z[oe]=z[se]=z[ce]=z[le]=z[N]=z[te]=z[P]=z[F]=z[ne]=z[re]=z[ie]=z[ue]=z[de]=z[fe]=z[pe]=!0,z[j]=z[ee]=z[I]=!1;function me(e,t,O,k,A,j){var N,te=t&w,F=t&T,ne=t&E;if(O&&(N=A?O(e,k,A,j):O(e)),N!==void 0)return N;if(!b(e))return e;var re=_(e);if(re){if(N=m(e),!te)return c(e,N)}else{var ie=p(e),I=ie==ee||ie==M;if(v(e))return s(e,te);if(ie==P||ie==D||I&&!A){if(N=F||I?{}:g(e),!te)return F?u(e,o(N,e)):l(e,a(N,e))}else{if(!z[ie])return A?e:{};N=h(e,ie,te)}}j||=new n;var L=j.get(e);if(L)return L;j.set(e,N),x(e)?e.forEach(function(n){N.add(me(n,t,O,n,e,j))}):y(e)&&e.forEach(function(n,r){N.set(r,me(n,t,O,r,e,j))});var R=re?void 0:(ne?F?f:d:F?C:S)(e);return r(R||e,function(n,r){R&&(r=n,n=e[r]),i(N,r,me(n,t,O,r,e,j))}),N}t.exports=me})),Dc=o(((e,t)=>{var n=Ec(),r=4;function i(e){return n(e,r)}t.exports=i})),Oc=o(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),kc=o(((e,t)=>{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),Ac=o(((e,t)=>{t.exports=kc()()})),jc=o(((e,t)=>{var n=Ac(),r=Hs();function i(e,t){return e&&n(e,t,r)}t.exports=i})),Mc=o(((e,t)=>{var n=Vs();function r(e,t){return function(r,i){if(r==null)return r;if(!n(r))return e(r,i);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o<a)&&i(s[o],o,s)!==!1;);return r}}t.exports=r})),Nc=o(((e,t)=>{var n=jc();t.exports=Mc()(n)})),Pc=o(((e,t)=>{function n(e){return e}t.exports=n})),Fc=o(((e,t)=>{var n=Pc();function r(e){return typeof e==`function`?e:n}t.exports=r})),Ic=o(((e,t)=>{var n=vs(),r=Nc(),i=Fc(),a=Ds();function o(e,t){return(a(e)?n:r)(e,i(t))}t.exports=o})),Lc=o(((e,t)=>{t.exports=Ic()})),Rc=o(((e,t)=>{var n=Nc();function r(e,t){var r=[];return n(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}t.exports=r})),zc=o(((e,t)=>{var n=`__lodash_hash_undefined__`;function r(e){return this.__data__.set(e,n),this}t.exports=r})),Bc=o(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),Vc=o(((e,t)=>{var n=hs(),r=zc(),i=Bc();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a})),Hc=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),Uc=o(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),Wc=o(((e,t)=>{var n=Vc(),r=Hc(),i=Uc(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),Gc=o(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),Kc=o(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),qc=o(((e,t)=>{var n=Ho(),r=pc(),i=ko(),a=Wc(),o=Gc(),s=Kc(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var D=x&c;if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;x|=l,T.set(e,t);var k=a(E(e),E(t),x,C,w,T);return T.delete(e),k;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C})),Jc=o(((e,t)=>{var n=ac(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),Yc=o(((e,t)=>{var n=_s(),r=Wc(),i=qc(),a=Jc(),o=dc(),s=Ds(),c=ks(),l=Fs(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h})),Xc=o(((e,t)=>{var n=Yc(),r=ws();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i})),Zc=o(((e,t)=>{var n=_s(),r=Xc(),i=1,a=2;function o(e,t,o,s){var c=o.length,l=c,u=!s;if(e==null)return!l;for(e=Object(e);c--;){var d=o[c];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c<l;){d=o[c];var f=d[0],p=e[f],m=d[1];if(u&&d[2]){if(p===void 0&&!(f in e))return!1}else{var h=new n;if(s)var g=s(p,m,f,e,t,h);if(!(g===void 0?r(m,p,i|a,s,h):g))return!1}}return!0}t.exports=o})),Qc=o(((e,t)=>{var n=Ko();function r(e){return e===e&&!n(e)}t.exports=r})),$c=o(((e,t)=>{var n=Qc(),r=Hs();function i(e){for(var t=r(e),i=t.length;i--;){var a=t[i],o=e[a];t[i]=[a,o,n(o)]}return t}t.exports=i})),el=o(((e,t)=>{function n(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}t.exports=n})),tl=o(((e,t)=>{var n=Zc(),r=$c(),i=el();function a(e){var t=r(e);return t.length==1&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}t.exports=a})),nl=o(((e,t)=>{var n=Go(),r=ws(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),rl=o(((e,t)=>{var n=Ds(),r=nl(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),il=o(((e,t)=>{var n=hs(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),al=o(((e,t)=>{var n=il(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),ol=o(((e,t)=>{var n=al(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),sl=o(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}t.exports=n})),cl=o(((e,t)=>{var n=Ho(),r=sl(),i=Ds(),a=nl(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),ll=o(((e,t)=>{var n=cl();function r(e){return e==null?``:n(e)}t.exports=r})),ul=o(((e,t)=>{var n=Ds(),r=rl(),i=ol(),a=ll();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),dl=o(((e,t)=>{var n=nl(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),fl=o(((e,t)=>{var n=ul(),r=dl();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i<a;)e=e[r(t[i++])];return i&&i==a?e:void 0}t.exports=i})),pl=o(((e,t)=>{var n=fl();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),ml=o(((e,t)=>{function n(e,t){return e!=null&&t in Object(e)}t.exports=n})),hl=o(((e,t)=>{var n=ul(),r=Es(),i=Ds(),a=As(),o=js(),s=dl();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l<u;){var f=s(t[l]);if(!(d=e!=null&&c(e,f)))break;e=e[f]}return d||++l!=u?d:(u=e==null?0:e.length,!!u&&o(u)&&a(f,u)&&(i(e)||r(e)))}t.exports=c})),gl=o(((e,t)=>{var n=ml(),r=hl();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),_l=o(((e,t)=>{var n=Xc(),r=pl(),i=gl(),a=rl(),o=Qc(),s=el(),c=dl(),l=1,u=2;function d(e,t){return a(e)&&o(t)?s(c(e),t):function(a){var o=r(a,e);return o===void 0&&o===t?i(a,e):n(t,o,l|u)}}t.exports=d})),vl=o(((e,t)=>{function n(e){return function(t){return t?.[e]}}t.exports=n})),yl=o(((e,t)=>{var n=fl();function r(e){return function(t){return n(t,e)}}t.exports=r})),bl=o(((e,t)=>{var n=vl(),r=yl(),i=rl(),a=dl();function o(e){return i(e)?n(a(e)):r(e)}t.exports=o})),xl=o(((e,t)=>{var n=tl(),r=_l(),i=Pc(),a=Ds(),o=bl();function s(e){return typeof e==`function`?e:e==null?i:typeof e==`object`?a(e)?r(e[0],e[1]):n(e):o(e)}t.exports=s})),Sl=o(((e,t)=>{var n=Xs(),r=Rc(),i=xl(),a=Ds();function o(e,t){return(a(e)?n:r)(e,i(t,3))}t.exports=o})),Cl=o(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e,t){return e!=null&&n.call(e,t)}t.exports=r})),wl=o(((e,t)=>{var n=Cl(),r=hl();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),Tl=o(((e,t)=>{var n=Bs(),r=dc(),i=Es(),a=Ds(),o=Vs(),s=ks(),c=Ls(),l=Fs(),u=`[object Map]`,d=`[object Set]`,f=Object.prototype.hasOwnProperty;function p(e){if(e==null)return!0;if(o(e)&&(a(e)||typeof e==`string`||typeof e.splice==`function`||s(e)||l(e)||i(e)))return!e.length;var t=r(e);if(t==u||t==d)return!e.size;if(c(e))return!n(e).length;for(var p in e)if(f.call(e,p))return!1;return!0}t.exports=p})),El=o(((e,t)=>{function n(e){return e===void 0}t.exports=n})),Dl=o(((e,t)=>{var n=Nc(),r=Vs();function i(e,t){var i=-1,a=r(e)?Array(e.length):[];return n(e,function(e,n,r){a[++i]=t(e,n,r)}),a}t.exports=i})),Ol=o(((e,t)=>{var n=sl(),r=xl(),i=Dl(),a=Ds();function o(e,t){return(a(e)?n:i)(e,r(t,3))}t.exports=o})),kl=o(((e,t)=>{function n(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}t.exports=n})),Al=o(((e,t)=>{function n(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}t.exports=n})),jl=o(((e,t)=>{var n=kl(),r=Nc(),i=xl(),a=Al(),o=Ds();function s(e,t,s){var c=o(e)?n:a,l=arguments.length<3;return c(e,i(t,4),s,l,r)}t.exports=s})),Ml=o(((e,t)=>{var n=Go(),r=Ds(),i=ws(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o})),Nl=o(((e,t)=>{t.exports=vl()(`length`)})),Pl=o(((e,t)=>{var n=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function r(e){return n.test(e)}t.exports=r})),Fl=o(((e,t)=>{var n=`\\ud800-\\udfff`,r=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,i=`\\ufe0e\\ufe0f`,a=`[`+n+`]`,o=`[`+r+`]`,s=`\\ud83c[\\udffb-\\udfff]`,c=`(?:`+o+`|`+s+`)`,l=`[^`+n+`]`,u=`(?:\\ud83c[\\udde6-\\uddff]){2}`,d=`[\\ud800-\\udbff][\\udc00-\\udfff]`,f=`\\u200d`,p=c+`?`,m=`[`+i+`]?`,h=`(?:`+f+`(?:`+[l,u,d].join(`|`)+`)`+m+p+`)*`,g=m+p+h,_=`(?:`+[l+o+`?`,o,u,d,a].join(`|`)+`)`,v=RegExp(s+`(?=`+s+`)|`+_+g,`g`);function y(e){for(var t=v.lastIndex=0;v.test(e);)++t;return t}t.exports=y})),Il=o(((e,t)=>{var n=Nl(),r=Pl(),i=Fl();function a(e){return r(e)?i(e):n(e)}t.exports=a})),Ll=o(((e,t)=>{var n=Bs(),r=dc(),i=Vs(),a=Ml(),o=Il(),s=`[object Map]`,c=`[object Set]`;function l(e){if(e==null)return 0;if(i(e))return a(e)?o(e):e.length;var t=r(e);return t==s||t==c?e.size:n(e).length}t.exports=l})),Rl=o(((e,t)=>{var n=vs(),r=bc(),i=jc(),a=xl(),o=tc(),s=Ds(),c=ks(),l=qo(),u=Ko(),d=Fs();function f(e,t,f){var p=s(e),m=p||c(e)||d(e);if(t=a(t,4),f==null){var h=e&&e.constructor;f=m?p?new h:[]:u(e)&&l(h)?r(o(e)):{}}return(m?n:i)(e,function(e,n,r){return t(f,e,n,r)}),f}t.exports=f})),K=o(((e,t)=>{var n=Ho(),r=Es(),i=Ds(),a=n?n.isConcatSpreadable:void 0;function o(e){return i(e)||r(e)||!!(a&&e&&e[a])}t.exports=o})),q=o(((e,t)=>{var n=ec(),r=K();function i(e,t,a,o,s){var c=-1,l=e.length;for(a||=r,s||=[];++c<l;){var u=e[c];t>0&&a(u)?t>1?i(u,t-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}t.exports=i})),J=o(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),Y=o(((e,t)=>{var n=J(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o<s;)c[o]=a[t+o];o=-1;for(var l=Array(t+1);++o<t;)l[o]=a[o];return l[t]=i(c),n(e,this,l)}}t.exports=i})),X=o(((e,t)=>{var n=Oc(),r=ys(),i=Pc();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),zl=o(((e,t)=>{var n=800,r=16,i=Date.now;function a(e){var t=0,a=0;return function(){var o=i(),s=r-(o-a);if(a=o,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=a})),Bl=o(((e,t)=>{var n=X();t.exports=zl()(n)})),Vl=o(((e,t)=>{var n=Pc(),r=Y(),i=Bl();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),Hl=o(((e,t)=>{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}t.exports=n})),Ul=o(((e,t)=>{function n(e){return e!==e}t.exports=n})),Wl=o(((e,t)=>{function n(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}t.exports=n})),Gl=o(((e,t)=>{var n=Hl(),r=Ul(),i=Wl();function a(e,t,a){return t===t?i(e,t,a):n(e,r,a)}t.exports=a})),Kl=o(((e,t)=>{var n=Gl();function r(e,t){return!!(e!=null&&e.length)&&n(e,t,0)>-1}t.exports=r})),ql=o(((e,t)=>{function n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}t.exports=n})),Jl=o(((e,t)=>{function n(){}t.exports=n})),Yl=o(((e,t)=>{var n=lc(),r=Jl(),i=Kc();t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r})),Xl=o(((e,t)=>{var n=Vc(),r=Kl(),i=ql(),a=Uc(),o=Yl(),s=Kc(),c=200;function l(e,t,l){var u=-1,d=r,f=e.length,p=!0,m=[],h=m;if(l)p=!1,d=i;else if(f>=c){var g=t?null:o(e);if(g)return s(g);p=!1,d=a,h=new n}else h=t?[]:m;outer:for(;++u<f;){var _=e[u],v=t?t(_):_;if(_=l||_!==0?_:0,p&&v===v){for(var y=h.length;y--;)if(h[y]===v)continue outer;t&&h.push(v),m.push(_)}else d(h,v,l)||(h!==m&&h.push(v),m.push(_))}return m}t.exports=l})),Zl=o(((e,t)=>{var n=Vs(),r=ws();function i(e){return r(e)&&n(e)}t.exports=i})),Ql=o(((e,t)=>{var n=q(),r=Vl(),i=Xl(),a=Zl();t.exports=r(function(e){return i(n(e,1,a,!0))})})),$l=o(((e,t)=>{var n=sl();function r(e,t){return n(t,function(t){return e[t]})}t.exports=r})),eu=o(((e,t)=>{var n=$l(),r=Hs();function i(e){return e==null?[]:n(e,r(e))}t.exports=i})),tu=o(((e,t)=>{var n;if(typeof u==`function`)try{n={clone:Dc(),constant:Oc(),each:Lc(),filter:Sl(),has:wl(),isArray:Ds(),isEmpty:Tl(),isFunction:qo(),isUndefined:El(),keys:Hs(),map:Ol(),reduce:jl(),size:Ll(),transform:Rl(),union:Ql(),values:eu()}}catch{}n||=window._,t.exports=n})),nu=o(((e,t)=>{var n=tu();t.exports=o;var r=`\0`,i=`\0`,a=``;function o(e){this._isDirected=n.has(e,`directed`)?e.directed:!0,this._isMultigraph=n.has(e,`multigraph`)?e.multigraph:!1,this._isCompound=n.has(e,`compound`)?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=n.constant(void 0),this._defaultEdgeLabelFn=n.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[i]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}o.prototype._nodeCount=0,o.prototype._edgeCount=0,o.prototype.isDirected=function(){return this._isDirected},o.prototype.isMultigraph=function(){return this._isMultigraph},o.prototype.isCompound=function(){return this._isCompound},o.prototype.setGraph=function(e){return this._label=e,this},o.prototype.graph=function(){return this._label},o.prototype.setDefaultNodeLabel=function(e){return n.isFunction(e)||(e=n.constant(e)),this._defaultNodeLabelFn=e,this},o.prototype.nodeCount=function(){return this._nodeCount},o.prototype.nodes=function(){return n.keys(this._nodes)},o.prototype.sources=function(){var e=this;return n.filter(this.nodes(),function(t){return n.isEmpty(e._in[t])})},o.prototype.sinks=function(){var e=this;return n.filter(this.nodes(),function(t){return n.isEmpty(e._out[t])})},o.prototype.setNodes=function(e,t){var r=arguments,i=this;return n.each(e,function(e){r.length>1?i.setNode(e,t):i.setNode(e)}),this},o.prototype.setNode=function(e,t){return n.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=i,this._children[e]={},this._children[i][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},o.prototype.node=function(e){return this._nodes[e]},o.prototype.hasNode=function(e){return n.has(this._nodes,e)},o.prototype.removeNode=function(e){var t=this;if(n.has(this._nodes,e)){var r=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],n.each(this.children(e),function(e){t.setParent(e)}),delete this._children[e]),n.each(n.keys(this._in[e]),r),delete this._in[e],delete this._preds[e],n.each(n.keys(this._out[e]),r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},o.prototype.setParent=function(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(n.isUndefined(t))t=i;else{t+=``;for(var r=t;!n.isUndefined(r);r=this.parent(r))if(r===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},o.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},o.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==i)return t}},o.prototype.children=function(e){if(n.isUndefined(e)&&(e=i),this._isCompound){var t=this._children[e];if(t)return n.keys(t)}else if(e===i)return this.nodes();else if(this.hasNode(e))return[]},o.prototype.predecessors=function(e){var t=this._preds[e];if(t)return n.keys(t)},o.prototype.successors=function(e){var t=this._sucs[e];if(t)return n.keys(t)},o.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return n.union(t,this.successors(e))},o.prototype.isLeaf=function(e){return(this.isDirected()?this.successors(e):this.neighbors(e)).length===0},o.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var r=this;n.each(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),n.each(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,r.edge(e))});var i={};function a(e){var n=r.parent(e);return n===void 0||t.hasNode(n)?(i[e]=n,n):n in i?i[n]:a(n)}return this._isCompound&&n.each(t.nodes(),function(e){t.setParent(e,a(e))}),t},o.prototype.setDefaultEdgeLabel=function(e){return n.isFunction(e)||(e=n.constant(e)),this._defaultEdgeLabelFn=e,this},o.prototype.edgeCount=function(){return this._edgeCount},o.prototype.edges=function(){return n.values(this._edgeObjs)},o.prototype.setPath=function(e,t){var r=this,i=arguments;return n.reduce(e,function(e,n){return i.length>1?r.setEdge(e,n,t):r.setEdge(e,n),n}),this},o.prototype.setEdge=function(){var e,t,r,i,a=!1,o=arguments[0];typeof o==`object`&&o&&`v`in o?(e=o.v,t=o.w,r=o.name,arguments.length===2&&(i=arguments[1],a=!0)):(e=o,t=arguments[1],r=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),e=``+e,t=``+t,n.isUndefined(r)||(r=``+r);var c=l(this._isDirected,e,t,r);if(n.has(this._edgeLabels,c))return a&&(this._edgeLabels[c]=i),this;if(!n.isUndefined(r)&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(e),this.setNode(t),this._edgeLabels[c]=a?i:this._defaultEdgeLabelFn(e,t,r);var d=u(this._isDirected,e,t,r);return e=d.v,t=d.w,Object.freeze(d),this._edgeObjs[c]=d,s(this._preds[t],e),s(this._sucs[e],t),this._in[t][c]=d,this._out[e][c]=d,this._edgeCount++,this},o.prototype.edge=function(e,t,n){var r=arguments.length===1?d(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return this._edgeLabels[r]},o.prototype.hasEdge=function(e,t,r){var i=arguments.length===1?d(this._isDirected,arguments[0]):l(this._isDirected,e,t,r);return n.has(this._edgeLabels,i)},o.prototype.removeEdge=function(e,t,n){var r=arguments.length===1?d(this._isDirected,arguments[0]):l(this._isDirected,e,t,n),i=this._edgeObjs[r];return i&&(e=i.v,t=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],c(this._preds[t],e),c(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},o.prototype.inEdges=function(e,t){var r=this._in[e];if(r){var i=n.values(r);return t?n.filter(i,function(e){return e.v===t}):i}},o.prototype.outEdges=function(e,t){var r=this._out[e];if(r){var i=n.values(r);return t?n.filter(i,function(e){return e.w===t}):i}},o.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))};function s(e,t){e[t]?e[t]++:e[t]=1}function c(e,t){--e[t]||delete e[t]}function l(e,t,i,o){var s=``+t,c=``+i;if(!e&&s>c){var l=s;s=c,c=l}return s+a+c+a+(n.isUndefined(o)?r:o)}function u(e,t,n,r){var i=``+t,a=``+n;if(!e&&i>a){var o=i;i=a,a=o}var s={v:i,w:a};return r&&(s.name=r),s}function d(e,t){return l(e,t.v,t.w,t.name)}})),ru=o(((e,t)=>{t.exports=`2.1.8`})),iu=o(((e,t)=>{t.exports={Graph:nu(),version:ru()}})),au=o(((e,t)=>{var n=tu(),r=nu();t.exports={write:i,read:s};function i(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:a(e),edges:o(e)};return n.isUndefined(e.graph())||(t.value=n.clone(e.graph())),t}function a(e){return n.map(e.nodes(),function(t){var r=e.node(t),i=e.parent(t),a={v:t};return n.isUndefined(r)||(a.value=r),n.isUndefined(i)||(a.parent=i),a})}function o(e){return n.map(e.edges(),function(t){var r=e.edge(t),i={v:t.v,w:t.w};return n.isUndefined(t.name)||(i.name=t.name),n.isUndefined(r)||(i.value=r),i})}function s(e){var t=new r(e.options).setGraph(e.value);return n.each(e.nodes,function(e){t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),n.each(e.edges,function(e){t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}})),ou=o(((e,t)=>{var n=tu();t.exports=r;function r(e){var t={},r=[],i;function a(r){n.has(t,r)||(t[r]=!0,i.push(r),n.each(e.successors(r),a),n.each(e.predecessors(r),a))}return n.each(e.nodes(),function(e){i=[],a(e),i.length&&r.push(i)}),r}})),su=o(((e,t)=>{var n=tu();t.exports=r;function r(){this._arr=[],this._keyIndices={}}r.prototype.size=function(){return this._arr.length},r.prototype.keys=function(){return this._arr.map(function(e){return e.key})},r.prototype.has=function(e){return n.has(this._keyIndices,e)},r.prototype.priority=function(e){var t=this._keyIndices[e];if(t!==void 0)return this._arr[t].priority},r.prototype.min=function(){if(this.size()===0)throw Error(`Queue underflow`);return this._arr[0].key},r.prototype.add=function(e,t){var r=this._keyIndices;if(e=String(e),!n.has(r,e)){var i=this._arr,a=i.length;return r[e]=a,i.push({key:e,priority:t}),this._decrease(a),!0}return!1},r.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},r.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw Error(`New priority is greater than current priority. Key: `+e+` Old: `+this._arr[n].priority+` New: `+t);this._arr[n].priority=t,this._decrease(n)},r.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,i=e;n<t.length&&(i=t[n].priority<t[i].priority?n:i,r<t.length&&(i=t[r].priority<t[i].priority?r:i),i!==e&&(this._swap(e,i),this._heapify(i)))},r.prototype._decrease=function(e){for(var t=this._arr,n=t[e].priority,r;e!==0&&(r=e>>1,!(t[r].priority<n));)this._swap(e,r),e=r},r.prototype._swap=function(e,t){var n=this._arr,r=this._keyIndices,i=n[e],a=n[t];n[e]=a,n[t]=i,r[a.key]=e,r[i.key]=t}})),cu=o(((e,t)=>{var n=tu(),r=su();t.exports=a;var i=n.constant(1);function a(e,t,n,r){return o(e,String(t),n||i,r||function(t){return e.outEdges(t)})}function o(e,t,n,i){var a={},o=new r,s,c,l=function(e){var t=e.v===s?e.w:e.v,r=a[t],i=n(e),l=c.distance+i;if(i<0)throw Error(`dijkstra does not allow negative edge weights. Bad edge: `+e+` Weight: `+i);l<r.distance&&(r.distance=l,r.predecessor=s,o.decrease(t,l))};for(e.nodes().forEach(function(e){var n=e===t?0:1/0;a[e]={distance:n},o.add(e,n)});o.size()>0&&(s=o.removeMin(),c=a[s],c.distance!==1/0);)i(s).forEach(l);return a}})),lu=o(((e,t)=>{var n=cu(),r=tu();t.exports=i;function i(e,t,i){return r.transform(e.nodes(),function(r,a){r[a]=n(e,a,t,i)},{})}})),uu=o(((e,t)=>{var n=tu();t.exports=r;function r(e){var t=0,r=[],i={},a=[];function o(s){var c=i[s]={onStack:!0,lowlink:t,index:t++};if(r.push(s),e.successors(s).forEach(function(e){n.has(i,e)?i[e].onStack&&(c.lowlink=Math.min(c.lowlink,i[e].index)):(o(e),c.lowlink=Math.min(c.lowlink,i[e].lowlink))}),c.lowlink===c.index){var l=[],u;do u=r.pop(),i[u].onStack=!1,l.push(u);while(s!==u);a.push(l)}}return e.nodes().forEach(function(e){n.has(i,e)||o(e)}),a}})),du=o(((e,t)=>{var n=tu(),r=uu();t.exports=i;function i(e){return n.filter(r(e),function(t){return t.length>1||t.length===1&&e.hasEdge(t[0],t[0])})}})),fu=o(((e,t)=>{var n=tu();t.exports=i;var r=n.constant(1);function i(e,t,n){return a(e,t||r,n||function(t){return e.outEdges(t)})}function a(e,t,n){var r={},i=e.nodes();return i.forEach(function(e){r[e]={},r[e][e]={distance:0},i.forEach(function(t){e!==t&&(r[e][t]={distance:1/0})}),n(e).forEach(function(n){var i=n.v===e?n.w:n.v,a=t(n);r[e][i]={distance:a,predecessor:e}})}),i.forEach(function(e){var t=r[e];i.forEach(function(n){var a=r[n];i.forEach(function(n){var r=a[e],i=t[n],o=a[n],s=r.distance+i.distance;s<o.distance&&(o.distance=s,o.predecessor=i.predecessor)})})}),r}})),pu=o(((e,t)=>{var n=tu();t.exports=r,r.CycleException=i;function r(e){var t={},r={},a=[];function o(s){if(n.has(r,s))throw new i;n.has(t,s)||(r[s]=!0,t[s]=!0,n.each(e.predecessors(s),o),delete r[s],a.push(s))}if(n.each(e.sinks(),o),n.size(t)!==e.nodeCount())throw new i;return a}function i(){}i.prototype=Error()})),mu=o(((e,t)=>{var n=pu();t.exports=r;function r(e){try{n(e)}catch(e){if(e instanceof n.CycleException)return!1;throw e}return!0}})),hu=o(((e,t)=>{var n=tu();t.exports=r;function r(e,t,r){n.isArray(t)||(t=[t]);var a=(e.isDirected()?e.successors:e.neighbors).bind(e),o=[],s={};return n.each(t,function(t){if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);i(e,t,r===`post`,s,a,o)}),o}function i(e,t,r,a,o,s){n.has(a,t)||(a[t]=!0,r||s.push(t),n.each(o(t),function(t){i(e,t,r,a,o,s)}),r&&s.push(t))}})),gu=o(((e,t)=>{var n=hu();t.exports=r;function r(e,t){return n(e,t,`post`)}})),_u=o(((e,t)=>{var n=hu();t.exports=r;function r(e,t){return n(e,t,`pre`)}})),vu=o(((e,t)=>{var n=tu(),r=nu(),i=su();t.exports=a;function a(e,t){var a=new r,o={},s=new i,c;function l(e){var n=e.v===c?e.w:e.v,r=s.priority(n);if(r!==void 0){var i=t(e);i<r&&(o[n]=c,s.decrease(n,i))}}if(e.nodeCount()===0)return a;n.each(e.nodes(),function(e){s.add(e,1/0),a.setNode(e)}),s.decrease(e.nodes()[0],0);for(var u=!1;s.size()>0;){if(c=s.removeMin(),n.has(o,c))a.setEdge(c,o[c]);else if(u)throw Error(`Input graph is not connected: `+e);else u=!0;e.nodeEdges(c).forEach(l)}return a}})),yu=o(((e,t)=>{t.exports={components:ou(),dijkstra:cu(),dijkstraAll:lu(),findCycles:du(),floydWarshall:fu(),isAcyclic:mu(),postorder:gu(),preorder:_u(),prim:vu(),tarjan:uu(),topsort:pu()}})),bu=o(((e,t)=>{var n=iu();t.exports={Graph:n.Graph,json:au(),alg:yu(),version:n.version}})),xu=o(((e,t)=>{var n;if(typeof u==`function`)try{n=bu()}catch{}n||=window.graphlib,t.exports=n})),Su=o(((e,t)=>{var n=Ec(),r=1,i=4;function a(e){return n(e,r|i)}t.exports=a})),Cu=o(((e,t)=>{var n=ko(),r=Vs(),i=As(),a=Ko();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),wu=o(((e,t)=>{var n=Vl(),r=ko(),i=Cu(),a=Ks(),o=Object.prototype,s=o.hasOwnProperty;t.exports=n(function(e,t){e=Object(e);var n=-1,c=t.length,l=c>2?t[2]:void 0;for(l&&i(t[0],t[1],l)&&(c=1);++n<c;)for(var u=t[n],d=a(u),f=-1,p=d.length;++f<p;){var m=d[f],h=e[m];(h===void 0||r(h,o[m])&&!s.call(e,m))&&(e[m]=u[m])}return e})})),Tu=o(((e,t)=>{var n=xl(),r=Vs(),i=Hs();function a(e){return function(t,a,o){var s=Object(t);if(!r(t)){var c=n(a,3);t=i(t),a=function(e){return c(s[e],e,s)}}var l=e(t,a,o);return l>-1?s[c?t[l]:l]:void 0}}t.exports=a})),Eu=o(((e,t)=>{var n=/\s/;function r(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}t.exports=r})),Du=o(((e,t)=>{var n=Eu(),r=/^\s+/;function i(e){return e&&e.slice(0,n(e)+1).replace(r,``)}t.exports=i})),Ou=o(((e,t)=>{var n=Du(),r=Ko(),i=nl(),a=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;function u(e){if(typeof e==`number`)return e;if(i(e))return a;if(r(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=r(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=n(e);var u=s.test(e);return u||c.test(e)?l(e.slice(2),u?2:8):o.test(e)?a:+e}t.exports=u})),ku=o(((e,t)=>{var n=Ou(),r=1/0,i=17976931348623157e292;function a(e){return e?(e=n(e),e===r||e===-r?(e<0?-1:1)*i:e===e?e:0):e===0?e:0}t.exports=a})),Au=o(((e,t)=>{var n=ku();function r(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}t.exports=r})),ju=o(((e,t)=>{var n=Hl(),r=xl(),i=Au(),a=Math.max;function o(e,t,o){var s=e==null?0:e.length;if(!s)return-1;var c=o==null?0:i(o);return c<0&&(c=a(s+c,0)),n(e,r(t,3),c)}t.exports=o})),Mu=o(((e,t)=>{t.exports=Tu()(ju())})),Nu=o(((e,t)=>{var n=q();function r(e){return e!=null&&e.length?n(e,1):[]}t.exports=r})),Pu=o(((e,t)=>{var n=Ac(),r=Fc(),i=Ks();function a(e,t){return e==null?e:n(e,r(t),i)}t.exports=a})),Fu=o(((e,t)=>{function n(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}t.exports=n})),Iu=o(((e,t)=>{var n=bs(),r=jc(),i=xl();function a(e,t){var a={};return t=i(t,3),r(e,function(e,r,i){n(a,r,t(e,r,i))}),a}t.exports=a})),Lu=o(((e,t)=>{var n=nl();function r(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===void 0?s===s&&!n(s):r(s,c)))var c=s,l=o}return l}t.exports=r})),Ru=o(((e,t)=>{function n(e,t){return e>t}t.exports=n})),zu=o(((e,t)=>{var n=Lu(),r=Ru(),i=Pc();function a(e){return e&&e.length?n(e,i,r):void 0}t.exports=a})),Bu=o(((e,t)=>{var n=bs(),r=ko();function i(e,t,i){(i!==void 0&&!r(e[t],i)||i===void 0&&!(t in e))&&n(e,t,i)}t.exports=i})),Vu=o(((e,t)=>{var n=Go(),r=tc(),i=ws(),a=`[object Object]`,o=Function.prototype,s=Object.prototype,c=o.toString,l=s.hasOwnProperty,u=c.call(Object);function d(e){if(!i(e)||n(e)!=a)return!1;var t=r(e);if(t===null)return!0;var o=l.call(t,`constructor`)&&t.constructor;return typeof o==`function`&&o instanceof o&&c.call(o)==u}t.exports=d})),Hu=o(((e,t)=>{function n(e,t){if(!(t===`constructor`&&typeof e[t]==`function`)&&t!=`__proto__`)return e[t]}t.exports=n})),Uu=o(((e,t)=>{var n=Ss(),r=Ks();function i(e){return n(e,r(e))}t.exports=i})),Wu=o(((e,t)=>{var n=Bu(),r=Js(),i=vc(),a=Ys(),o=xc(),s=Es(),c=Ds(),l=Zl(),u=ks(),d=qo(),f=Ko(),p=Vu(),m=Fs(),h=Hu(),g=Uu();function _(e,t,_,v,y,b,x){var S=h(e,_),C=h(t,_),w=x.get(C);if(w){n(e,_,w);return}var T=b?b(S,C,_+``,e,t,x):void 0,E=T===void 0;if(E){var D=c(C),O=!D&&u(C),k=!D&&!O&&m(C);T=C,D||O||k?c(S)?T=S:l(S)?T=a(S):O?(E=!1,T=r(C,!0)):k?(E=!1,T=i(C,!0)):T=[]:p(C)||s(C)?(T=S,s(S)?T=g(S):(!f(S)||d(S))&&(T=o(C))):E=!1}E&&(x.set(C,T),y(T,C,v,b,x),x.delete(C)),n(e,_,T)}t.exports=_})),Gu=o(((e,t)=>{var n=_s(),r=Bu(),i=Ac(),a=Wu(),o=Ko(),s=Ks(),c=Hu();function l(e,t,u,d,f){e!==t&&i(t,function(i,s){if(f||=new n,o(i))a(e,t,s,u,l,d,f);else{var p=d?d(c(e,s),i,s+``,e,t,f):void 0;p===void 0&&(p=i),r(e,s,p)}},s)}t.exports=l})),Ku=o(((e,t)=>{var n=Vl(),r=Cu();function i(e){return n(function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o==`function`?(a--,o):void 0,s&&r(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++i<a;){var c=n[i];c&&e(t,c,i,o)}return t})}t.exports=i})),qu=o(((e,t)=>{var n=Gu();t.exports=Ku()(function(e,t,r){n(e,t,r)})})),Ju=o(((e,t)=>{function n(e,t){return e<t}t.exports=n})),Yu=o(((e,t)=>{var n=Lu(),r=Ju(),i=Pc();function a(e){return e&&e.length?n(e,i,r):void 0}t.exports=a})),Xu=o(((e,t)=>{var n=Lu(),r=xl(),i=Ju();function a(e,t){return e&&e.length?n(e,r(t,2),i):void 0}t.exports=a})),Zu=o(((e,t)=>{var n=Vo();t.exports=function(){return n.Date.now()}})),Qu=o(((e,t)=>{var n=xs(),r=ul(),i=As(),a=Ko(),o=dl();function s(e,t,s,c){if(!a(e))return e;t=r(t,e);for(var l=-1,u=t.length,d=u-1,f=e;f!=null&&++l<u;){var p=o(t[l]),m=s;if(p===`__proto__`||p===`constructor`||p===`prototype`)return e;if(l!=d){var h=f[p];m=c?c(h,p,f):void 0,m===void 0&&(m=a(h)?h:i(t[l+1])?[]:{})}n(f,p,m),f=f[p]}return e}t.exports=s})),$u=o(((e,t)=>{var n=fl(),r=Qu(),i=ul();function a(e,t,a){for(var o=-1,s=t.length,c={};++o<s;){var l=t[o],u=n(e,l);a(u,l)&&r(c,i(l,e),u)}return c}t.exports=a})),ed=o(((e,t)=>{var n=$u(),r=gl();function i(e,t){return n(e,t,function(t,n){return r(e,n)})}t.exports=i})),td=o(((e,t)=>{var n=Nu(),r=Y(),i=Bl();function a(e){return i(r(e,void 0,n),e+``)}t.exports=a})),nd=o(((e,t)=>{var n=ed();t.exports=td()(function(e,t){return e==null?{}:n(e,t)})})),rd=o(((e,t)=>{var n=Math.ceil,r=Math.max;function i(e,t,i,a){for(var o=-1,s=r(n((t-e)/(i||1)),0),c=Array(s);s--;)c[a?s:++o]=e,e+=i;return c}t.exports=i})),id=o(((e,t)=>{var n=rd(),r=Cu(),i=ku();function a(e){return function(t,a,o){return o&&typeof o!=`number`&&r(t,a,o)&&(a=o=void 0),t=i(t),a===void 0?(a=t,t=0):a=i(a),o=o===void 0?t<a?1:-1:i(o),n(t,a,o,e)}}t.exports=a})),ad=o(((e,t)=>{t.exports=id()()})),od=o(((e,t)=>{function n(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}t.exports=n})),sd=o(((e,t)=>{var n=nl();function r(e,t){if(e!==t){var r=e!==void 0,i=e===null,a=e===e,o=n(e),s=t!==void 0,c=t===null,l=t===t,u=n(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}t.exports=r})),cd=o(((e,t)=>{var n=sd();function r(e,t,r){for(var i=-1,a=e.criteria,o=t.criteria,s=a.length,c=r.length;++i<s;){var l=n(a[i],o[i]);if(l)return i>=c?l:l*(r[i]==`desc`?-1:1)}return e.index-t.index}t.exports=r})),ld=o(((e,t)=>{var n=sl(),r=fl(),i=xl(),a=Dl(),o=od(),s=Ns(),c=cd(),l=Pc(),u=Ds();function d(e,t,d){t=t.length?n(t,function(e){return u(e)?function(t){return r(t,e.length===1?e[0]:e)}:e}):[l];var f=-1;return t=n(t,s(i)),o(a(e,function(e,r,i){return{criteria:n(t,function(t){return t(e)}),index:++f,value:e}}),function(e,t){return c(e,t,d)})}t.exports=d})),ud=o(((e,t)=>{var n=q(),r=ld(),i=Vl(),a=Cu();t.exports=i(function(e,t){if(e==null)return[];var i=t.length;return i>1&&a(e,t[0],t[1])?t=[]:i>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),r(e,n(t,1),[])})})),dd=o(((e,t)=>{var n=ll(),r=0;function i(e){var t=++r;return n(e)+t}t.exports=i})),fd=o(((e,t)=>{function n(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}t.exports=n})),pd=o(((e,t)=>{var n=xs(),r=fd();function i(e,t){return r(e||[],t||[],n)}t.exports=i})),md=o(((e,t)=>{var n;if(typeof u==`function`)try{n={cloneDeep:Su(),constant:Oc(),defaults:wu(),each:Lc(),filter:Sl(),find:Mu(),flatten:Nu(),forEach:Ic(),forIn:Pu(),has:wl(),isUndefined:El(),last:Fu(),map:Ol(),mapValues:Iu(),max:zu(),merge:qu(),min:Yu(),minBy:Xu(),now:Zu(),pick:nd(),range:ad(),reduce:jl(),sortBy:ud(),uniqueId:dd(),values:eu(),zipObject:pd()}}catch{}n||=window._,t.exports=n})),hd=o(((e,t)=>{t.exports=n;function n(){var e={};e._next=e._prev=e,this._sentinel=e}n.prototype.dequeue=function(){var e=this._sentinel,t=e._prev;if(t!==e)return r(t),t},n.prototype.enqueue=function(e){var t=this._sentinel;e._prev&&e._next&&r(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t},n.prototype.toString=function(){for(var e=[],t=this._sentinel,n=t._prev;n!==t;)e.push(JSON.stringify(n,i)),n=n._prev;return`[`+e.join(`, `)+`]`};function r(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function i(e,t){if(e!==`_next`&&e!==`_prev`)return t}})),gd=o(((e,t)=>{var n=md(),r=xu().Graph,i=hd();t.exports=o;var a=n.constant(1);function o(e,t){if(e.nodeCount()<=1)return[];var r=l(e,t||a),i=s(r.graph,r.buckets,r.zeroIdx);return n.flatten(n.map(i,function(t){return e.outEdges(t.v,t.w)}),!0)}function s(e,t,n){for(var r=[],i=t[t.length-1],a=t[0],o;e.nodeCount();){for(;o=a.dequeue();)c(e,t,n,o);for(;o=i.dequeue();)c(e,t,n,o);if(e.nodeCount()){for(var s=t.length-2;s>0;--s)if(o=t[s].dequeue(),o){r=r.concat(c(e,t,n,o,!0));break}}}return r}function c(e,t,r,i,a){var o=a?[]:void 0;return n.forEach(e.inEdges(i.v),function(n){var i=e.edge(n),s=e.node(n.v);a&&o.push({v:n.v,w:n.w}),s.out-=i,u(t,r,s)}),n.forEach(e.outEdges(i.v),function(n){var i=e.edge(n),a=n.w,o=e.node(a);o.in-=i,u(t,r,o)}),e.removeNode(i.v),o}function l(e,t){var a=new r,o=0,s=0;n.forEach(e.nodes(),function(e){a.setNode(e,{v:e,in:0,out:0})}),n.forEach(e.edges(),function(e){var n=a.edge(e.v,e.w)||0,r=t(e),i=n+r;a.setEdge(e.v,e.w,i),s=Math.max(s,a.node(e.v).out+=r),o=Math.max(o,a.node(e.w).in+=r)});var c=n.range(s+o+3).map(function(){return new i}),l=o+1;return n.forEach(a.nodes(),function(e){u(c,l,a.node(e))}),{graph:a,buckets:c,zeroIdx:l}}function u(e,t,n){n.out?n.in?e[n.out-n.in+t].enqueue(n):e[e.length-1].enqueue(n):e[0].enqueue(n)}})),_d=o(((e,t)=>{var n=md(),r=gd();t.exports={run:i,undo:o};function i(e){var t=e.graph().acyclicer===`greedy`?r(e,i(e)):a(e);n.forEach(t,function(t){var r=e.edge(t);e.removeEdge(t),r.forwardName=t.name,r.reversed=!0,e.setEdge(t.w,t.v,r,n.uniqueId(`rev`))});function i(e){return function(t){return e.edge(t).weight}}}function a(e){var t=[],r={},i={};function a(o){n.has(i,o)||(i[o]=!0,r[o]=!0,n.forEach(e.outEdges(o),function(e){n.has(r,e.w)?t.push(e):a(e.w)}),delete r[o])}return n.forEach(e.nodes(),a),t}function o(e){n.forEach(e.edges(),function(t){var n=e.edge(t);if(n.reversed){e.removeEdge(t);var r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}})),vd=o(((e,t)=>{var n=md(),r=xu().Graph;t.exports={addDummyNode:i,simplify:a,asNonCompoundGraph:o,successorWeights:s,predecessorWeights:c,intersectRect:l,buildLayerMatrix:u,normalizeRanks:d,removeEmptyRanks:f,addBorderNode:p,maxRank:m,partition:h,time:g,notime:_};function i(e,t,r,i){var a;do a=n.uniqueId(i);while(e.hasNode(a));return r.dummy=t,e.setNode(a,r),a}function a(e){var t=new r().setGraph(e.graph());return n.forEach(e.nodes(),function(n){t.setNode(n,e.node(n))}),n.forEach(e.edges(),function(n){var r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function o(e){var t=new r({multigraph:e.isMultigraph()}).setGraph(e.graph());return n.forEach(e.nodes(),function(n){e.children(n).length||t.setNode(n,e.node(n))}),n.forEach(e.edges(),function(n){t.setEdge(n,e.edge(n))}),t}function s(e){var t=n.map(e.nodes(),function(t){var r={};return n.forEach(e.outEdges(t),function(t){r[t.w]=(r[t.w]||0)+e.edge(t).weight}),r});return n.zipObject(e.nodes(),t)}function c(e){var t=n.map(e.nodes(),function(t){var r={};return n.forEach(e.inEdges(t),function(t){r[t.v]=(r[t.v]||0)+e.edge(t).weight}),r});return n.zipObject(e.nodes(),t)}function l(e,t){var n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw Error(`Not possible to find intersection inside of the rectangle`);var c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=s*i/a,l=s):(i<0&&(o=-o),c=o,l=o*a/i),{x:n+c,y:r+l}}function u(e){var t=n.map(n.range(m(e)+1),function(){return[]});return n.forEach(e.nodes(),function(r){var i=e.node(r),a=i.rank;n.isUndefined(a)||(t[a][i.order]=r)}),t}function d(e){var t=n.min(n.map(e.nodes(),function(t){return e.node(t).rank}));n.forEach(e.nodes(),function(r){var i=e.node(r);n.has(i,`rank`)&&(i.rank-=t)})}function f(e){var t=n.min(n.map(e.nodes(),function(t){return e.node(t).rank})),r=[];n.forEach(e.nodes(),function(n){var i=e.node(n).rank-t;r[i]||(r[i]=[]),r[i].push(n)});var i=0,a=e.graph().nodeRankFactor;n.forEach(r,function(t,r){n.isUndefined(t)&&r%a!==0?--i:i&&n.forEach(t,function(t){e.node(t).rank+=i})})}function p(e,t,n,r){var a={width:0,height:0};return arguments.length>=4&&(a.rank=n,a.order=r),i(e,`border`,a,t)}function m(e){return n.max(n.map(e.nodes(),function(t){var r=e.node(t).rank;if(!n.isUndefined(r))return r}))}function h(e,t){var r={lhs:[],rhs:[]};return n.forEach(e,function(e){t(e)?r.lhs.push(e):r.rhs.push(e)}),r}function g(e,t){var r=n.now();try{return t()}finally{console.log(e+` time: `+(n.now()-r)+`ms`)}}function _(e,t){return t()}})),yd=o(((e,t)=>{var n=md(),r=vd();t.exports={run:i,undo:o};function i(e){e.graph().dummyChains=[],n.forEach(e.edges(),function(t){a(e,t)})}function a(e,t){var n=t.v,i=e.node(n).rank,a=t.w,o=e.node(a).rank,s=t.name,c=e.edge(t),l=c.labelRank;if(o!==i+1){e.removeEdge(t);var u,d,f;for(f=0,++i;i<o;++f,++i)c.points=[],d={width:0,height:0,edgeLabel:c,edgeObj:t,rank:i},u=r.addDummyNode(e,`edge`,d,`_d`),i===l&&(d.width=c.width,d.height=c.height,d.dummy=`edge-label`,d.labelpos=c.labelpos),e.setEdge(n,u,{weight:c.weight},s),f===0&&e.graph().dummyChains.push(u),n=u;e.setEdge(n,a,{weight:c.weight},s)}}function o(e){n.forEach(e.graph().dummyChains,function(t){var n=e.node(t),r=n.edgeLabel,i;for(e.setEdge(n.edgeObj,r);n.dummy;)i=e.successors(t)[0],e.removeNode(t),r.points.push({x:n.x,y:n.y}),n.dummy===`edge-label`&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),t=i,n=e.node(t)})}})),bd=o(((e,t)=>{var n=md();t.exports={longestPath:r,slack:i};function r(e){var t={};function r(i){var a=e.node(i);if(n.has(t,i))return a.rank;t[i]=!0;var o=n.min(n.map(e.outEdges(i),function(t){return r(t.w)-e.edge(t).minlen}));return(o===1/0||o==null)&&(o=0),a.rank=o}n.forEach(e.sources(),r)}function i(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}})),Z=o(((e,t)=>{var n=md(),r=xu().Graph,i=bd().slack;t.exports=a;function a(e){var t=new r({directed:!1}),n=e.nodes()[0],a=e.nodeCount();t.setNode(n,{});for(var l,u;o(t,e)<a;)l=s(t,e),u=t.hasNode(l.v)?i(e,l):-i(e,l),c(t,e,u);return t}function o(e,t){function r(a){n.forEach(t.nodeEdges(a),function(n){var o=n.v,s=a===o?n.w:o;!e.hasNode(s)&&!i(t,n)&&(e.setNode(s,{}),e.setEdge(a,s,{}),r(s))})}return n.forEach(e.nodes(),r),e.nodeCount()}function s(e,t){return n.minBy(t.edges(),function(n){if(e.hasNode(n.v)!==e.hasNode(n.w))return i(t,n)})}function c(e,t,r){n.forEach(e.nodes(),function(e){t.node(e).rank+=r})}})),xd=o(((e,t)=>{var n=md(),r=Z(),i=bd().slack,a=bd().longestPath,o=xu().alg.preorder,s=xu().alg.postorder,c=vd().simplify;t.exports=l,l.initLowLimValues=p,l.initCutValues=u,l.calcCutValue=f,l.leaveEdge=h,l.enterEdge=g,l.exchangeEdges=_;function l(e){e=c(e),a(e);var t=r(e);p(t),u(t,e);for(var n,i;n=h(t);)i=g(t,e,n),_(t,e,n,i)}function u(e,t){var r=s(e,e.nodes());r=r.slice(0,r.length-1),n.forEach(r,function(n){d(e,t,n)})}function d(e,t,n){var r=e.node(n).parent;e.edge(n,r).cutvalue=f(e,t,n)}function f(e,t,r){var i=e.node(r).parent,a=!0,o=t.edge(r,i),s=0;return o||=(a=!1,t.edge(i,r)),s=o.weight,n.forEach(t.nodeEdges(r),function(n){var o=n.v===r,c=o?n.w:n.v;if(c!==i){var l=o===a,u=t.edge(n).weight;if(s+=l?u:-u,y(e,r,c)){var d=e.edge(r,c).cutvalue;s+=l?-d:d}}}),s}function p(e,t){arguments.length<2&&(t=e.nodes()[0]),m(e,{},1,t)}function m(e,t,r,i,a){var o=r,s=e.node(i);return t[i]=!0,n.forEach(e.neighbors(i),function(a){n.has(t,a)||(r=m(e,t,r,a,i))}),s.low=o,s.lim=r++,a?s.parent=a:delete s.parent,r}function h(e){return n.find(e.edges(),function(t){return e.edge(t).cutvalue<0})}function g(e,t,r){var a=r.v,o=r.w;t.hasEdge(a,o)||(a=r.w,o=r.v);var s=e.node(a),c=e.node(o),l=s,u=!1;s.lim>c.lim&&(l=c,u=!0);var d=n.filter(t.edges(),function(t){return u===b(e,e.node(t.v),l)&&u!==b(e,e.node(t.w),l)});return n.minBy(d,function(e){return i(t,e)})}function _(e,t,n,r){var i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),p(e),u(e,t),v(e,t)}function v(e,t){var r=o(e,n.find(e.nodes(),function(e){return!t.node(e).parent}));r=r.slice(1),n.forEach(r,function(n){var r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)})}function y(e,t,n){return e.hasEdge(t,n)}function b(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}})),Sd=o(((e,t)=>{var n=bd().longestPath,r=Z(),i=xd();t.exports=a;function a(e){switch(e.graph().ranker){case`network-simplex`:c(e);break;case`tight-tree`:s(e);break;case`longest-path`:o(e);break;default:c(e)}}var o=n;function s(e){n(e),r(e)}function c(e){i(e)}})),Cd=o(((e,t)=>{var n=md();t.exports=r;function r(e){var t=a(e);n.forEach(e.graph().dummyChains,function(n){for(var r=e.node(n),a=r.edgeObj,o=i(e,t,a.v,a.w),s=o.path,c=o.lca,l=0,u=s[l],d=!0;n!==a.w;){if(r=e.node(n),d){for(;(u=s[l])!==c&&e.node(u).maxRank<r.rank;)l++;u===c&&(d=!1)}if(!d){for(;l<s.length-1&&e.node(u=s[l+1]).minRank<=r.rank;)l++;u=s[l]}e.setParent(n,u),n=e.successors(n)[0]}})}function i(e,t,n,r){var i=[],a=[],o=Math.min(t[n].low,t[r].low),s=Math.max(t[n].lim,t[r].lim),c=n,l;do c=e.parent(c),i.push(c);while(c&&(t[c].low>o||s>t[c].lim));for(l=c,c=r;(c=e.parent(c))!==l;)a.push(c);return{path:i.concat(a.reverse()),lca:l}}function a(e){var t={},r=0;function i(a){var o=r;n.forEach(e.children(a),i),t[a]={low:o,lim:r++}}return n.forEach(e.children(),i),t}})),wd=o(((e,t)=>{var n=md(),r=vd();t.exports={run:i,cleanup:c};function i(e){var t=r.addDummyNode(e,`root`,{},`_root`),i=o(e),c=n.max(n.values(i))-1,l=2*c+1;e.graph().nestingRoot=t,n.forEach(e.edges(),function(t){e.edge(t).minlen*=l});var u=s(e)+1;n.forEach(e.children(),function(n){a(e,t,l,u,c,i,n)}),e.graph().nodeRankFactor=l}function a(e,t,i,o,s,c,l){var u=e.children(l);if(!u.length){l!==t&&e.setEdge(t,l,{weight:0,minlen:i});return}var d=r.addBorderNode(e,`_bt`),f=r.addBorderNode(e,`_bb`),p=e.node(l);e.setParent(d,l),p.borderTop=d,e.setParent(f,l),p.borderBottom=f,n.forEach(u,function(n){a(e,t,i,o,s,c,n);var r=e.node(n),u=r.borderTop?r.borderTop:n,p=r.borderBottom?r.borderBottom:n,m=r.borderTop?o:2*o,h=u===p?s-c[l]+1:1;e.setEdge(d,u,{weight:m,minlen:h,nestingEdge:!0}),e.setEdge(p,f,{weight:m,minlen:h,nestingEdge:!0})}),e.parent(l)||e.setEdge(t,d,{weight:0,minlen:s+c[l]})}function o(e){var t={};function r(i,a){var o=e.children(i);o&&o.length&&n.forEach(o,function(e){r(e,a+1)}),t[i]=a}return n.forEach(e.children(),function(e){r(e,1)}),t}function s(e){return n.reduce(e.edges(),function(t,n){return t+e.edge(n).weight},0)}function c(e){var t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,n.forEach(e.edges(),function(t){e.edge(t).nestingEdge&&e.removeEdge(t)})}})),Td=o(((e,t)=>{var n=md(),r=vd();t.exports=i;function i(e){function t(r){var i=e.children(r),o=e.node(r);if(i.length&&n.forEach(i,t),n.has(o,`minRank`)){o.borderLeft=[],o.borderRight=[];for(var s=o.minRank,c=o.maxRank+1;s<c;++s)a(e,`borderLeft`,`_bl`,r,o,s),a(e,`borderRight`,`_br`,r,o,s)}}n.forEach(e.children(),t)}function a(e,t,n,i,a,o){var s={width:0,height:0,rank:o,borderType:t},c=a[t][o-1],l=r.addDummyNode(e,`border`,s,n);a[t][o]=l,e.setParent(l,i),c&&e.setEdge(c,l,{weight:1})}})),Ed=o(((e,t)=>{var n=md();t.exports={adjust:r,undo:i};function r(e){var t=e.graph().rankdir.toLowerCase();(t===`lr`||t===`rl`)&&a(e)}function i(e){var t=e.graph().rankdir.toLowerCase();(t===`bt`||t===`rl`)&&s(e),(t===`lr`||t===`rl`)&&(l(e),a(e))}function a(e){n.forEach(e.nodes(),function(t){o(e.node(t))}),n.forEach(e.edges(),function(t){o(e.edge(t))})}function o(e){var t=e.width;e.width=e.height,e.height=t}function s(e){n.forEach(e.nodes(),function(t){c(e.node(t))}),n.forEach(e.edges(),function(t){var r=e.edge(t);n.forEach(r.points,c),n.has(r,`y`)&&c(r)})}function c(e){e.y=-e.y}function l(e){n.forEach(e.nodes(),function(t){u(e.node(t))}),n.forEach(e.edges(),function(t){var r=e.edge(t);n.forEach(r.points,u),n.has(r,`x`)&&u(r)})}function u(e){var t=e.x;e.x=e.y,e.y=t}})),Dd=o(((e,t)=>{var n=md();t.exports=r;function r(e){var t={},r=n.filter(e.nodes(),function(t){return!e.children(t).length}),i=n.max(n.map(r,function(t){return e.node(t).rank})),a=n.map(n.range(i+1),function(){return[]});function o(r){n.has(t,r)||(t[r]=!0,a[e.node(r).rank].push(r),n.forEach(e.successors(r),o))}var s=n.sortBy(r,function(t){return e.node(t).rank});return n.forEach(s,o),a}})),Od=o(((e,t)=>{var n=md();t.exports=r;function r(e,t){for(var n=0,r=1;r<t.length;++r)n+=i(e,t[r-1],t[r]);return n}function i(e,t,r){for(var i=n.zipObject(r,n.map(r,function(e,t){return t})),a=n.flatten(n.map(t,function(t){return n.sortBy(n.map(e.outEdges(t),function(t){return{pos:i[t.w],weight:e.edge(t).weight}}),`pos`)}),!0),o=1;o<r.length;)o<<=1;var s=2*o-1;--o;var c=n.map(Array(s),function(){return 0}),l=0;return n.forEach(a.forEach(function(e){var t=e.pos+o;c[t]+=e.weight;for(var n=0;t>0;)t%2&&(n+=c[t+1]),t=t-1>>1,c[t]+=e.weight;l+=e.weight*n})),l}})),kd=o(((e,t)=>{var n=md();t.exports=r;function r(e,t){return n.map(t,function(t){var r=e.inEdges(t);if(r.length){var i=n.reduce(r,function(t,n){var r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:t}})}})),Ad=o(((e,t)=>{var n=md();t.exports=r;function r(e,t){var r={};return n.forEach(e,function(e,t){var i=r[e.v]={indegree:0,in:[],out:[],vs:[e.v],i:t};n.isUndefined(e.barycenter)||(i.barycenter=e.barycenter,i.weight=e.weight)}),n.forEach(t.edges(),function(e){var t=r[e.v],i=r[e.w];!n.isUndefined(t)&&!n.isUndefined(i)&&(i.indegree++,t.out.push(r[e.w]))}),i(n.filter(r,function(e){return!e.indegree}))}function i(e){var t=[];function r(e){return function(t){t.merged||(n.isUndefined(t.barycenter)||n.isUndefined(e.barycenter)||t.barycenter>=e.barycenter)&&a(e,t)}}function i(t){return function(n){n.in.push(t),--n.indegree===0&&e.push(n)}}for(;e.length;){var o=e.pop();t.push(o),n.forEach(o.in.reverse(),r(o)),n.forEach(o.out,i(o))}return n.map(n.filter(t,function(e){return!e.merged}),function(e){return n.pick(e,[`vs`,`i`,`barycenter`,`weight`])})}function a(e,t){var n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}})),jd=o(((e,t)=>{var n=md(),r=vd();t.exports=i;function i(e,t){var i=r.partition(e,function(e){return n.has(e,`barycenter`)}),s=i.lhs,c=n.sortBy(i.rhs,function(e){return-e.i}),l=[],u=0,d=0,f=0;s.sort(o(!!t)),f=a(l,c,f),n.forEach(s,function(e){f+=e.vs.length,l.push(e.vs),u+=e.barycenter*e.weight,d+=e.weight,f=a(l,c,f)});var p={vs:n.flatten(l,!0)};return d&&(p.barycenter=u/d,p.weight=d),p}function a(e,t,r){for(var i;t.length&&(i=n.last(t)).i<=r;)t.pop(),e.push(i.vs),r++;return r}function o(e){return function(t,n){return t.barycenter<n.barycenter?-1:t.barycenter>n.barycenter?1:e?n.i-t.i:t.i-n.i}}})),Md=o(((e,t)=>{var n=md(),r=kd(),i=Ad(),a=jd();t.exports=o;function o(e,t,l,u){var d=e.children(t),f=e.node(t),p=f?f.borderLeft:void 0,m=f?f.borderRight:void 0,h={};p&&(d=n.filter(d,function(e){return e!==p&&e!==m}));var g=r(e,d);n.forEach(g,function(t){if(e.children(t.v).length){var r=o(e,t.v,l,u);h[t.v]=r,n.has(r,`barycenter`)&&c(t,r)}});var _=i(g,l);s(_,h);var v=a(_,u);if(p&&(v.vs=n.flatten([p,v.vs,m],!0),e.predecessors(p).length)){var y=e.node(e.predecessors(p)[0]),b=e.node(e.predecessors(m)[0]);n.has(v,`barycenter`)||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+y.order+b.order)/(v.weight+2),v.weight+=2}return v}function s(e,t){n.forEach(e,function(e){e.vs=n.flatten(e.vs.map(function(e){return t[e]?t[e].vs:e}),!0)})}function c(e,t){n.isUndefined(e.barycenter)?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}})),Nd=o(((e,t)=>{var n=md(),r=xu().Graph;t.exports=i;function i(e,t,i){var o=a(e),s=new r({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(t){return e.node(t)});return n.forEach(e.nodes(),function(r){var a=e.node(r),c=e.parent(r);(a.rank===t||a.minRank<=t&&t<=a.maxRank)&&(s.setNode(r),s.setParent(r,c||o),n.forEach(e[i](r),function(t){var i=t.v===r?t.w:t.v,a=s.edge(i,r),o=n.isUndefined(a)?0:a.weight;s.setEdge(i,r,{weight:e.edge(t).weight+o})}),n.has(a,`minRank`)&&s.setNode(r,{borderLeft:a.borderLeft[t],borderRight:a.borderRight[t]}))}),s}function a(e){for(var t;e.hasNode(t=n.uniqueId(`_root`)););return t}})),Pd=o(((e,t)=>{var n=md();t.exports=r;function r(e,t,r){var i={},a;n.forEach(r,function(n){for(var r=e.parent(n),o,s;r;){if(o=e.parent(r),o?(s=i[o],i[o]=r):(s=a,a=r),s&&s!==r){t.setEdge(s,r);return}r=o}})}})),Fd=o(((e,t)=>{var n=md(),r=Dd(),i=Od(),a=Md(),o=Nd(),s=Pd(),c=xu().Graph,l=vd();t.exports=u;function u(e){var t=l.maxRank(e),a=d(e,n.range(1,t+1),`inEdges`),o=d(e,n.range(t-1,-1,-1),`outEdges`),s=r(e);p(e,s);for(var c=1/0,u,m=0,h=0;h<4;++m,++h){f(m%2?a:o,m%4>=2),s=l.buildLayerMatrix(e);var g=i(e,s);g<c&&(h=0,u=n.cloneDeep(s),c=g)}p(e,u)}function d(e,t,r){return n.map(t,function(t){return o(e,t,r)})}function f(e,t){var r=new c;n.forEach(e,function(e){var i=e.graph().root,o=a(e,i,r,t);n.forEach(o.vs,function(t,n){e.node(t).order=n}),s(e,r,o.vs)})}function p(e,t){n.forEach(t,function(t){n.forEach(t,function(t,n){e.node(t).order=n})})}})),Id=o(((e,t)=>{var n=md(),r=xu().Graph,i=vd();t.exports={positionX:g,findType1Conflicts:a,findType2Conflicts:o,addConflict:c,hasConflict:l,verticalAlignment:u,horizontalCompaction:d,alignCoordinates:m,findSmallestWidthAlignment:p,balance:h};function a(e,t){var r={};function i(t,i){var a=0,o=0,l=t.length,u=n.last(i);return n.forEach(i,function(t,d){var f=s(e,t),p=f?e.node(f).order:l;(f||t===u)&&(n.forEach(i.slice(o,d+1),function(t){n.forEach(e.predecessors(t),function(n){var i=e.node(n),o=i.order;(o<a||p<o)&&!(i.dummy&&e.node(t).dummy)&&c(r,n,t)})}),o=d+1,a=p)}),i}return n.reduce(t,i),r}function o(e,t){var r={};function i(t,i,a,o,s){var l;n.forEach(n.range(i,a),function(i){l=t[i],e.node(l).dummy&&n.forEach(e.predecessors(l),function(t){var n=e.node(t);n.dummy&&(n.order<o||n.order>s)&&c(r,t,l)})})}function a(t,r){var a=-1,o,s=0;return n.forEach(r,function(n,c){if(e.node(n).dummy===`border`){var l=e.predecessors(n);l.length&&(o=e.node(l[0]).order,i(r,s,c,a,o),s=c,a=o)}i(r,s,r.length,o,t.length)}),r}return n.reduce(t,a),r}function s(e,t){if(e.node(t).dummy)return n.find(e.predecessors(t),function(t){return e.node(t).dummy})}function c(e,t,n){if(t>n){var r=t;t=n,n=r}var i=e[t];i||(e[t]=i={}),i[n]=!0}function l(e,t,r){if(t>r){var i=t;t=r,r=i}return n.has(e[t],r)}function u(e,t,r,i){var a={},o={},s={};return n.forEach(t,function(e){n.forEach(e,function(e,t){a[e]=e,o[e]=e,s[e]=t})}),n.forEach(t,function(e){var t=-1;n.forEach(e,function(e){var c=i(e);if(c.length){c=n.sortBy(c,function(e){return s[e]});for(var u=(c.length-1)/2,d=Math.floor(u),f=Math.ceil(u);d<=f;++d){var p=c[d];o[e]===e&&t<s[p]&&!l(r,e,p)&&(o[p]=e,o[e]=a[e]=a[p],t=s[p])}}})}),{root:a,align:o}}function d(e,t,r,i,a){var o={},s=f(e,t,r,a),c=a?`borderLeft`:`borderRight`;function l(e,t){for(var n=s.nodes(),r=n.pop(),i={};r;)i[r]?e(r):(i[r]=!0,n.push(r),n=n.concat(t(r))),r=n.pop()}function u(e){o[e]=s.inEdges(e).reduce(function(e,t){return Math.max(e,o[t.v]+s.edge(t))},0)}function d(t){var n=s.outEdges(t).reduce(function(e,t){return Math.min(e,o[t.w]-s.edge(t))},1/0),r=e.node(t);n!==1/0&&r.borderType!==c&&(o[t]=Math.max(o[t],n))}return l(u,s.predecessors.bind(s)),l(d,s.successors.bind(s)),n.forEach(i,function(e){o[e]=o[r[e]]}),o}function f(e,t,i,a){var o=new r,s=e.graph(),c=_(s.nodesep,s.edgesep,a);return n.forEach(t,function(t){var r;n.forEach(t,function(t){var n=i[t];if(o.setNode(n),r){var a=i[r],s=o.edge(a,n);o.setEdge(a,n,Math.max(c(e,t,r),s||0))}r=t})}),o}function p(e,t){return n.minBy(n.values(t),function(t){var r=-1/0,i=1/0;return n.forIn(t,function(t,n){var a=v(e,n)/2;r=Math.max(t+a,r),i=Math.min(t-a,i)}),r-i})}function m(e,t){var r=n.values(t),i=n.min(r),a=n.max(r);n.forEach([`u`,`d`],function(r){n.forEach([`l`,`r`],function(o){var s=r+o,c=e[s],l;if(c!==t){var u=n.values(c);l=o===`l`?i-n.min(u):a-n.max(u),l&&(e[s]=n.mapValues(c,function(e){return e+l}))}})})}function h(e,t){return n.mapValues(e.ul,function(r,i){if(t)return e[t.toLowerCase()][i];var a=n.sortBy(n.map(e,i));return(a[1]+a[2])/2})}function g(e){var t=i.buildLayerMatrix(e),r=n.merge(a(e,t),o(e,t)),s={},c;return n.forEach([`u`,`d`],function(i){c=i===`u`?t:n.values(t).reverse(),n.forEach([`l`,`r`],function(t){t===`r`&&(c=n.map(c,function(e){return n.values(e).reverse()}));var a=(i===`u`?e.predecessors:e.successors).bind(e),o=u(e,c,r,a),l=d(e,c,o.root,o.align,t===`r`);t===`r`&&(l=n.mapValues(l,function(e){return-e})),s[i+t]=l})}),m(s,p(e,s)),h(s,e.graph().align)}function _(e,t,r){return function(i,a,o){var s=i.node(a),c=i.node(o),l=0,u;if(l+=s.width/2,n.has(s,`labelpos`))switch(s.labelpos.toLowerCase()){case`l`:u=-s.width/2;break;case`r`:u=s.width/2;break}if(u&&(l+=r?u:-u),u=0,l+=(s.dummy?t:e)/2,l+=(c.dummy?t:e)/2,l+=c.width/2,n.has(c,`labelpos`))switch(c.labelpos.toLowerCase()){case`l`:u=c.width/2;break;case`r`:u=-c.width/2;break}return u&&(l+=r?u:-u),u=0,l}}function v(e,t){return e.node(t).width}})),Ld=o(((e,t)=>{var n=md(),r=vd(),i=Id().positionX;t.exports=a;function a(e){e=r.asNonCompoundGraph(e),o(e),n.forEach(i(e),function(t,n){e.node(n).x=t})}function o(e){var t=r.buildLayerMatrix(e),i=e.graph().ranksep,a=0;n.forEach(t,function(t){var r=n.max(n.map(t,function(t){return e.node(t).height}));n.forEach(t,function(t){e.node(t).y=a+r/2}),a+=r+i})}})),Rd=o(((e,t)=>{var n=md(),r=_d(),i=yd(),a=Sd(),o=vd().normalizeRanks,s=Cd(),c=vd().removeEmptyRanks,l=wd(),u=Td(),d=Ed(),f=Fd(),p=Ld(),m=vd(),h=xu().Graph;t.exports=g;function g(e,t){var n=t&&t.debugTiming?m.time:m.notime;n(`layout`,function(){var t=n(` buildLayoutGraph`,function(){return D(e)});n(` runLayout`,function(){_(t,n)}),n(` updateInputGraph`,function(){v(e,t)})})}function _(e,t){t(` makeSpaceForEdgeLabels`,function(){O(e)}),t(` removeSelfEdges`,function(){F(e)}),t(` acyclic`,function(){r.run(e)}),t(` nestingGraph.run`,function(){l.run(e)}),t(` rank`,function(){a(m.asNonCompoundGraph(e))}),t(` injectEdgeLabelProxies`,function(){k(e)}),t(` removeEmptyRanks`,function(){c(e)}),t(` nestingGraph.cleanup`,function(){l.cleanup(e)}),t(` normalizeRanks`,function(){o(e)}),t(` assignRankMinMax`,function(){A(e)}),t(` removeEdgeLabelProxies`,function(){j(e)}),t(` normalize.run`,function(){i.run(e)}),t(` parentDummyChains`,function(){s(e)}),t(` addBorderSegments`,function(){u(e)}),t(` order`,function(){f(e)}),t(` insertSelfEdges`,function(){ne(e)}),t(` adjustCoordinateSystem`,function(){d.adjust(e)}),t(` position`,function(){p(e)}),t(` positionSelfEdges`,function(){re(e)}),t(` removeBorderNodes`,function(){P(e)}),t(` normalize.undo`,function(){i.undo(e)}),t(` fixupEdgeLabelCoords`,function(){N(e)}),t(` undoCoordinateSystem`,function(){d.undo(e)}),t(` translateGraph`,function(){ee(e)}),t(` assignNodeIntersects`,function(){M(e)}),t(` reversePoints`,function(){te(e)}),t(` acyclic.undo`,function(){r.undo(e)})}function v(e,t){n.forEach(e.nodes(),function(n){var r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,t.children(n).length&&(r.width=i.width,r.height=i.height))}),n.forEach(e.edges(),function(r){var i=e.edge(r),a=t.edge(r);i.points=a.points,n.has(a,`x`)&&(i.x=a.x,i.y=a.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var y=[`nodesep`,`edgesep`,`ranksep`,`marginx`,`marginy`],b={ranksep:50,edgesep:20,nodesep:50,rankdir:`tb`},x=[`acyclicer`,`ranker`,`rankdir`,`align`],S=[`width`,`height`],C={width:0,height:0},w=[`minlen`,`weight`,`width`,`height`,`labeloffset`],T={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:`r`},E=[`labelpos`];function D(e){var t=new h({multigraph:!0,compound:!0}),r=I(e.graph());return t.setGraph(n.merge({},b,ie(r,y),n.pick(r,x))),n.forEach(e.nodes(),function(r){var i=I(e.node(r));t.setNode(r,n.defaults(ie(i,S),C)),t.setParent(r,e.parent(r))}),n.forEach(e.edges(),function(r){var i=I(e.edge(r));t.setEdge(r,n.merge({},T,ie(i,w),n.pick(i,E)))}),t}function O(e){var t=e.graph();t.ranksep/=2,n.forEach(e.edges(),function(n){var r=e.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!==`c`&&(t.rankdir===`TB`||t.rankdir===`BT`?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function k(e){n.forEach(e.edges(),function(t){var n=e.edge(t);if(n.width&&n.height){var r=e.node(t.v),i={rank:(e.node(t.w).rank-r.rank)/2+r.rank,e:t};m.addDummyNode(e,`edge-proxy`,i,`_ep`)}})}function A(e){var t=0;n.forEach(e.nodes(),function(r){var i=e.node(r);i.borderTop&&(i.minRank=e.node(i.borderTop).rank,i.maxRank=e.node(i.borderBottom).rank,t=n.max(t,i.maxRank))}),e.graph().maxRank=t}function j(e){n.forEach(e.nodes(),function(t){var n=e.node(t);n.dummy===`edge-proxy`&&(e.edge(n.e).labelRank=n.rank,e.removeNode(t))})}function ee(e){var t=1/0,r=0,i=1/0,a=0,o=e.graph(),s=o.marginx||0,c=o.marginy||0;function l(e){var n=e.x,o=e.y,s=e.width,c=e.height;t=Math.min(t,n-s/2),r=Math.max(r,n+s/2),i=Math.min(i,o-c/2),a=Math.max(a,o+c/2)}n.forEach(e.nodes(),function(t){l(e.node(t))}),n.forEach(e.edges(),function(t){var r=e.edge(t);n.has(r,`x`)&&l(r)}),t-=s,i-=c,n.forEach(e.nodes(),function(n){var r=e.node(n);r.x-=t,r.y-=i}),n.forEach(e.edges(),function(r){var a=e.edge(r);n.forEach(a.points,function(e){e.x-=t,e.y-=i}),n.has(a,`x`)&&(a.x-=t),n.has(a,`y`)&&(a.y-=i)}),o.width=r-t+s,o.height=a-i+c}function M(e){n.forEach(e.edges(),function(t){var n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift(m.intersectRect(r,a)),n.points.push(m.intersectRect(i,o))})}function N(e){n.forEach(e.edges(),function(t){var r=e.edge(t);if(n.has(r,`x`))switch((r.labelpos===`l`||r.labelpos===`r`)&&(r.width-=r.labeloffset),r.labelpos){case`l`:r.x-=r.width/2+r.labeloffset;break;case`r`:r.x+=r.width/2+r.labeloffset;break}})}function te(e){n.forEach(e.edges(),function(t){var n=e.edge(t);n.reversed&&n.points.reverse()})}function P(e){n.forEach(e.nodes(),function(t){if(e.children(t).length){var r=e.node(t),i=e.node(r.borderTop),a=e.node(r.borderBottom),o=e.node(n.last(r.borderLeft)),s=e.node(n.last(r.borderRight));r.width=Math.abs(s.x-o.x),r.height=Math.abs(a.y-i.y),r.x=o.x+r.width/2,r.y=i.y+r.height/2}}),n.forEach(e.nodes(),function(t){e.node(t).dummy===`border`&&e.removeNode(t)})}function F(e){n.forEach(e.edges(),function(t){if(t.v===t.w){var n=e.node(t.v);n.selfEdges||=[],n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function ne(e){var t=m.buildLayerMatrix(e);n.forEach(t,function(t){var r=0;n.forEach(t,function(t,i){var a=e.node(t);a.order=i+r,n.forEach(a.selfEdges,function(t){m.addDummyNode(e,`selfedge`,{width:t.label.width,height:t.label.height,rank:a.rank,order:i+ ++r,e:t.e,label:t.label},`_se`)}),delete a.selfEdges})})}function re(e){n.forEach(e.nodes(),function(t){var n=e.node(t);if(n.dummy===`selfedge`){var r=e.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,s=r.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{x:i+o,y:a},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],n.label.x=n.x,n.label.y=n.y}})}function ie(e,t){return n.mapValues(n.pick(e,t),Number)}function I(e){var t={};return n.forEach(e,function(e,n){t[n.toLowerCase()]=e}),t}})),zd=o(((e,t)=>{var n=md(),r=vd(),i=xu().Graph;t.exports={debugOrdering:a};function a(e){var t=r.buildLayerMatrix(e),a=new i({compound:!0,multigraph:!0}).setGraph({});return n.forEach(e.nodes(),function(t){a.setNode(t,{label:t}),a.setParent(t,`layer`+e.node(t).rank)}),n.forEach(e.edges(),function(e){a.setEdge(e.v,e.w,{},e.name)}),n.forEach(t,function(e,t){var r=`layer`+t;a.setNode(r,{rank:`same`}),n.reduce(e,function(e,t){return a.setEdge(e,t,{style:`invis`}),t})}),a}})),Bd=o(((e,t)=>{t.exports=`0.8.5`})),Vd=o(((e,t)=>{t.exports={graphlib:xu(),layout:Rd(),debug:zd(),util:{time:vd().time,notime:vd().notime},version:Bd()}}));function Hd(e){if(typeof e==`string`||typeof e==`number`)return``+e;let t=``;if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=Hd(e[n]))!==``&&(t+=(t&&` `)+r);else for(let n in e)e[n]&&(t+=(t&&` `)+n);return t}var Ud=o((e=>{var t=f();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),Wd=o(((e,t)=>{t.exports=Ud()})),Gd=o((e=>{var t=f(),n=Wd();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),Kd=o(((e,t)=>{t.exports=Gd()})),qd=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}},o=t=e(r,i,a);return a},Jd=e=>e?qd(e):qd,Yd=l(Kd(),1),{useDebugValue:Xd}=S.default,{useSyncExternalStoreWithSelector:Zd}=Yd.default,Qd=e=>e;function $d(e,t=Qd,n){let r=Zd(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return Xd(r),r}var ef=(e,t)=>{let n=Jd(e),r=(e,r=t)=>$d(n,e,r);return Object.assign(r,n),r},tf=(e,t)=>e?ef(e,t):ef;function nf(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}var rf={value:()=>{}};function af(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new of(n)}function of(e){this._=e}function sf(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}of.prototype=af.prototype={constructor:of,on:function(e,t){var n=this._,r=sf(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=cf(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=lf(n[i],e.name,t);else if(t==null)for(i in n)n[i]=lf(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new of(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function cf(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function lf(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=rf,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var uf={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function df(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),uf.hasOwnProperty(t)?{space:uf[t],local:e}:e}function ff(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function pf(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function mf(e){var t=df(e);return(t.local?pf:ff)(t)}function hf(){}function gf(e){return e==null?hf:function(){return this.querySelector(e)}}function _f(e){typeof e!=`function`&&(e=gf(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new am(r,this._parents)}function vf(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function yf(){return[]}function bf(e){return e==null?yf:function(){return this.querySelectorAll(e)}}function xf(e){return function(){return vf(e.apply(this,arguments))}}function Sf(e){e=typeof e==`function`?xf(e):bf(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new am(r,i)}function Cf(e){return function(){return this.matches(e)}}function wf(e){return function(t){return t.matches(e)}}var Tf=Array.prototype.find;function Ef(e){return function(){return Tf.call(this.children,e)}}function Df(){return this.firstElementChild}function Of(e){return this.select(e==null?Df:Ef(typeof e==`function`?e:wf(e)))}var kf=Array.prototype.filter;function Af(){return Array.from(this.children)}function jf(e){return function(){return kf.call(this.children,e)}}function Mf(e){return this.selectAll(e==null?Af:jf(typeof e==`function`?e:wf(e)))}function Nf(e){typeof e!=`function`&&(e=Cf(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new am(r,this._parents)}function Pf(e){return Array(e.length)}function Ff(){return new am(this._enter||this._groups.map(Pf),this._parents)}function If(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}If.prototype={constructor:If,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Lf(e){return function(){return e}}function Rf(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new If(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function zf(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new If(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function Bf(e){return e.__data__}function Vf(e,t){if(!arguments.length)return Array.from(this,Bf);var n=t?zf:Rf,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Lf(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=Hf(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new am(o,r),o._enter=s,o._exit=c,o}function Hf(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Uf(){return new am(this._exit||this._groups.map(Pf),this._parents)}function Wf(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Gf(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new am(s,this._parents)}function Kf(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function qf(e){e||=Jf;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new am(i,this._parents).order()}function Jf(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Yf(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Xf(){return Array.from(this)}function Zf(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Qf(){let e=0;for(let t of this)++e;return e}function $f(){return!this.node()}function ep(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function tp(e){return function(){this.removeAttribute(e)}}function np(e){return function(){this.removeAttributeNS(e.space,e.local)}}function rp(e,t){return function(){this.setAttribute(e,t)}}function ip(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function ap(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function op(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function sp(e,t){var n=df(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?np:tp:typeof t==`function`?n.local?op:ap:n.local?ip:rp)(n,t))}function cp(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function lp(e){return function(){this.style.removeProperty(e)}}function up(e,t,n){return function(){this.style.setProperty(e,t,n)}}function dp(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function fp(e,t,n){return arguments.length>1?this.each((t==null?lp:typeof t==`function`?dp:up)(e,t,n??``)):pp(this.node(),e)}function pp(e,t){return e.style.getPropertyValue(t)||cp(e).getComputedStyle(e,null).getPropertyValue(t)}function mp(e){return function(){delete this[e]}}function hp(e,t){return function(){this[e]=t}}function gp(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function _p(e,t){return arguments.length>1?this.each((t==null?mp:typeof t==`function`?gp:hp)(e,t)):this.node()[e]}function vp(e){return e.trim().split(/^|\s+/)}function yp(e){return e.classList||new bp(e)}function bp(e){this._node=e,this._names=vp(e.getAttribute(`class`)||``)}bp.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function xp(e,t){for(var n=yp(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Sp(e,t){for(var n=yp(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Cp(e){return function(){xp(this,e)}}function wp(e){return function(){Sp(this,e)}}function Tp(e,t){return function(){(t.apply(this,arguments)?xp:Sp)(this,e)}}function Ep(e,t){var n=vp(e+``);if(arguments.length<2){for(var r=yp(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?Tp:t?Cp:wp)(n,t))}function Dp(){this.textContent=``}function Op(e){return function(){this.textContent=e}}function kp(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function Ap(e){return arguments.length?this.each(e==null?Dp:(typeof e==`function`?kp:Op)(e)):this.node().textContent}function jp(){this.innerHTML=``}function Mp(e){return function(){this.innerHTML=e}}function Np(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function Pp(e){return arguments.length?this.each(e==null?jp:(typeof e==`function`?Np:Mp)(e)):this.node().innerHTML}function Fp(){this.nextSibling&&this.parentNode.appendChild(this)}function Ip(){return this.each(Fp)}function Lp(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Rp(){return this.each(Lp)}function zp(e){var t=typeof e==`function`?e:mf(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Bp(){return null}function Vp(e,t){var n=typeof e==`function`?e:mf(e),r=t==null?Bp:typeof t==`function`?t:gf(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Hp(){var e=this.parentNode;e&&e.removeChild(this)}function Up(){return this.each(Hp)}function Wp(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Gp(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Kp(e){return this.select(e?Gp:Wp)}function qp(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Jp(e){return function(t){e.call(this,t,this.__data__)}}function Yp(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Xp(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Zp(e,t,n){return function(){var r=this.__on,i,a=Jp(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Qp(e,t,n){var r=Yp(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Zp:Xp,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function $p(e,t,n){var r=cp(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function em(e,t){return function(){return $p(this,e,t)}}function tm(e,t){return function(){return $p(this,e,t.apply(this,arguments))}}function nm(e,t){return this.each((typeof t==`function`?tm:em)(e,t))}function*rm(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var im=[null];function am(e,t){this._groups=e,this._parents=t}function om(){return new am([[document.documentElement]],im)}function sm(){return this}am.prototype=om.prototype={constructor:am,select:_f,selectAll:Sf,selectChild:Of,selectChildren:Mf,filter:Nf,data:Vf,enter:Ff,exit:Uf,join:Wf,merge:Gf,selection:sm,order:Kf,sort:qf,call:Yf,nodes:Xf,node:Zf,size:Qf,empty:$f,each:ep,attr:sp,style:fp,property:_p,classed:Ep,text:Ap,html:Pp,raise:Ip,lower:Rp,append:zp,insert:Vp,remove:Up,clone:Kp,datum:qp,on:Qp,dispatch:nm,[Symbol.iterator]:rm};function cm(e){return typeof e==`string`?new am([[document.querySelector(e)]],[document.documentElement]):new am([[e]],im)}function lm(e){let t;for(;t=e.sourceEvent;)e=t;return e}function um(e,t){if(e=lm(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var dm={passive:!1},fm={capture:!0,passive:!1};function pm(e){e.stopImmediatePropagation()}function mm(e){e.preventDefault(),e.stopImmediatePropagation()}function hm(e){var t=e.document.documentElement,n=cm(e).on(`dragstart.drag`,mm,fm);`onselectstart`in t?n.on(`selectstart.drag`,mm,fm):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function gm(e,t){var n=e.document.documentElement,r=cm(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,mm,fm),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var _m=e=>()=>e;function vm(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:o,y:s,dx:c,dy:l,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:u}})}vm.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function ym(e){return!e.ctrlKey&&!e.button}function bm(){return this.parentNode}function xm(e,t){return t??{x:e.x,y:e.y}}function Sm(){return navigator.maxTouchPoints||`ontouchstart`in this}function Cm(){var e=ym,t=bm,n=xm,r=Sm,i={},a=af(`start`,`drag`,`end`),o=0,s,c,l,u,d=0;function f(e){e.on(`mousedown.drag`,p).filter(r).on(`touchstart.drag`,g).on(`touchmove.drag`,_,dm).on(`touchend.drag touchcancel.drag`,v).style(`touch-action`,`none`).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}function p(n,r){if(!(u||!e.call(this,n,r))){var i=y(this,t.call(this,n,r),n,r,`mouse`);i&&(cm(n.view).on(`mousemove.drag`,m,fm).on(`mouseup.drag`,h,fm),hm(n.view),pm(n),l=!1,s=n.clientX,c=n.clientY,i(`start`,n))}}function m(e){if(mm(e),!l){var t=e.clientX-s,n=e.clientY-c;l=t*t+n*n>d}i.mouse(`drag`,e)}function h(e){cm(e.view).on(`mousemove.drag mouseup.drag`,null),gm(e.view,l),mm(e),i.mouse(`end`,e)}function g(n,r){if(e.call(this,n,r)){var i=n.changedTouches,a=t.call(this,n,r),o=i.length,s,c;for(s=0;s<o;++s)(c=y(this,a,n,r,i[s].identifier,i[s]))&&(pm(n),c(`start`,n,i[s]))}}function _(e){var t=e.changedTouches,n=t.length,r,a;for(r=0;r<n;++r)(a=i[t[r].identifier])&&(mm(e),a(`drag`,e,t[r]))}function v(e){var t=e.changedTouches,n=t.length,r,a;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),r=0;r<n;++r)(a=i[t[r].identifier])&&(pm(e),a(`end`,e,t[r]))}function y(e,t,r,s,c,l){var u=a.copy(),d=um(l||r,t),p,m,h;if((h=n.call(e,new vm(`beforestart`,{sourceEvent:r,target:f,identifier:c,active:o,x:d[0],y:d[1],dx:0,dy:0,dispatch:u}),s))!=null)return p=h.x-d[0]||0,m=h.y-d[1]||0,function n(r,a,l){var g=d,_;switch(r){case`start`:i[c]=n,_=o++;break;case`end`:delete i[c],--o;case`drag`:d=um(l||a,t),_=o;break}u.call(r,e,new vm(r,{sourceEvent:a,subject:h,target:f,identifier:c,active:_,x:d[0]+p,y:d[1]+m,dx:d[0]-g[0],dy:d[1]-g[1],dispatch:u}),s)}}return f.filter=function(t){return arguments.length?(e=typeof t==`function`?t:_m(!!t),f):e},f.container=function(e){return arguments.length?(t=typeof e==`function`?e:_m(e),f):t},f.subject=function(e){return arguments.length?(n=typeof e==`function`?e:_m(e),f):n},f.touchable=function(e){return arguments.length?(r=typeof e==`function`?e:_m(!!e),f):r},f.on=function(){var e=a.on.apply(a,arguments);return e===a?f:e},f.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,f):Math.sqrt(d)},f}function wm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Tm(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Em(){}var Dm=.7,Om=1/Dm,km=`\\s*([+-]?\\d+)\\s*`,Am=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,jm=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Mm=/^#([0-9a-f]{3,8})$/,Nm=RegExp(`^rgb\\(${km},${km},${km}\\)$`),Pm=RegExp(`^rgb\\(${jm},${jm},${jm}\\)$`),Fm=RegExp(`^rgba\\(${km},${km},${km},${Am}\\)$`),Im=RegExp(`^rgba\\(${jm},${jm},${jm},${Am}\\)$`),Lm=RegExp(`^hsl\\(${Am},${jm},${jm}\\)$`),Rm=RegExp(`^hsla\\(${Am},${jm},${jm},${Am}\\)$`),zm={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};wm(Em,Wm,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bm,formatHex:Bm,formatHex8:Vm,formatHsl:Hm,formatRgb:Um,toString:Um});function Bm(){return this.rgb().formatHex()}function Vm(){return this.rgb().formatHex8()}function Hm(){return rh(this).formatHsl()}function Um(){return this.rgb().formatRgb()}function Wm(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Mm.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Gm(t):n===3?new Ym(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Km(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Km(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Nm.exec(e))?new Ym(t[1],t[2],t[3],1):(t=Pm.exec(e))?new Ym(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Fm.exec(e))?Km(t[1],t[2],t[3],t[4]):(t=Im.exec(e))?Km(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Lm.exec(e))?nh(t[1],t[2]/100,t[3]/100,1):(t=Rm.exec(e))?nh(t[1],t[2]/100,t[3]/100,t[4]):zm.hasOwnProperty(e)?Gm(zm[e]):e===`transparent`?new Ym(NaN,NaN,NaN,0):null}function Gm(e){return new Ym(e>>16&255,e>>8&255,e&255,1)}function Km(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ym(e,t,n,r)}function qm(e){return e instanceof Em||(e=Wm(e)),e?(e=e.rgb(),new Ym(e.r,e.g,e.b,e.opacity)):new Ym}function Jm(e,t,n,r){return arguments.length===1?qm(e):new Ym(e,t,n,r??1)}function Ym(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}wm(Ym,Jm,Tm(Em,{brighter(e){return e=e==null?Om:Om**+e,new Ym(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Dm:Dm**+e,new Ym(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ym(eh(this.r),eh(this.g),eh(this.b),$m(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xm,formatHex:Xm,formatHex8:Zm,formatRgb:Qm,toString:Qm}));function Xm(){return`#${th(this.r)}${th(this.g)}${th(this.b)}`}function Zm(){return`#${th(this.r)}${th(this.g)}${th(this.b)}${th((isNaN(this.opacity)?1:this.opacity)*255)}`}function Qm(){let e=$m(this.opacity);return`${e===1?`rgb(`:`rgba(`}${eh(this.r)}, ${eh(this.g)}, ${eh(this.b)}${e===1?`)`:`, ${e})`}`}function $m(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function eh(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function th(e){return e=eh(e),(e<16?`0`:``)+e.toString(16)}function nh(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ah(e,t,n,r)}function rh(e){if(e instanceof ah)return new ah(e.h,e.s,e.l,e.opacity);if(e instanceof Em||(e=Wm(e)),!e)return new ah;if(e instanceof ah)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new ah(o,s,c,e.opacity)}function ih(e,t,n,r){return arguments.length===1?rh(e):new ah(e,t,n,r??1)}function ah(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}wm(ah,ih,Tm(Em,{brighter(e){return e=e==null?Om:Om**+e,new ah(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Dm:Dm**+e,new ah(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Ym(ch(e>=240?e-240:e+120,i,r),ch(e,i,r),ch(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ah(oh(this.h),sh(this.s),sh(this.l),$m(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=$m(this.opacity);return`${e===1?`hsl(`:`hsla(`}${oh(this.h)}, ${sh(this.s)*100}%, ${sh(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function oh(e){return e=(e||0)%360,e<0?e+360:e}function sh(e){return Math.max(0,Math.min(1,e||0))}function ch(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var lh=e=>()=>e;function uh(e,t){return function(n){return e+n*t}}function dh(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function fh(e){return(e=+e)==1?ph:function(t,n){return n-t?dh(t,n,e):lh(isNaN(t)?n:t)}}function ph(e,t){var n=t-e;return n?uh(e,n):lh(isNaN(e)?t:e)}var mh=(function e(t){var n=fh(t);function r(e,t){var r=n((e=Jm(e)).r,(t=Jm(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=ph(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function hh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var gh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_h=new RegExp(gh.source,`g`);function vh(e){return function(){return e}}function yh(e){return function(t){return e(t)+``}}function bh(e,t){var n=gh.lastIndex=_h.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=gh.exec(e))&&(i=_h.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:hh(r,i)})),n=_h.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?yh(c[0].x):vh(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var xh=180/Math.PI,Sh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ch(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*xh,skewX:Math.atan(c)*xh,scaleX:o,scaleY:s}}var wh;function Th(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Sh:Ch(t.a,t.b,t.c,t.d,t.e,t.f)}function Eh(e){return e==null||(wh||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),wh.setAttribute(`transform`,e),!(e=wh.transform.baseVal.consolidate()))?Sh:(e=e.matrix,Ch(e.a,e.b,e.c,e.d,e.e,e.f))}function Dh(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:hh(e,i)},{i:c-2,x:hh(r,a)})}else (i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:hh(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:hh(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:hh(e,n)},{i:s-2,x:hh(t,r)})}else (n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var Oh=Dh(Th,`px, `,`px)`,`deg)`),kh=Dh(Eh,`, `,`)`,`)`),Ah=1e-12;function jh(e){return((e=Math.exp(e))+1/e)/2}function Mh(e){return((e=Math.exp(e))-1/e)/2}function Nh(e){return((e=Math.exp(2*e))-1)/(e+1)}var Ph=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<Ah)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=jh(y),c=s/(n*g)*(i*Nh(t*r+y)-Mh(y));return[a+c*d,o+c*f,s*i/jh(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),Fh=0,Ih=0,Lh=0,Rh=1e3,zh,Bh,Vh=0,Hh=0,Uh=0,Wh=typeof performance==`object`&&performance.now?performance:Date,Gh=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Kh(){return Hh||=(Gh(qh),Wh.now()+Uh)}function qh(){Hh=0}function Jh(){this._call=this._time=this._next=null}Jh.prototype=Yh.prototype={constructor:Jh,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Kh():+n)+(t==null?0:+t),!this._next&&Bh!==this&&(Bh?Bh._next=this:zh=this,Bh=this),this._call=e,this._time=n,eg()},stop:function(){this._call&&(this._call=null,this._time=1/0,eg())}};function Yh(e,t,n){var r=new Jh;return r.restart(e,t,n),r}function Xh(){Kh(),++Fh;for(var e=zh,t;e;)(t=Hh-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Fh}function Zh(){Hh=(Vh=Wh.now())+Uh,Fh=Ih=0;try{Xh()}finally{Fh=0,$h(),Hh=0}}function Qh(){var e=Wh.now(),t=e-Vh;t>Rh&&(Uh-=t,Vh=e)}function $h(){for(var e,t=zh,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:zh=n);Bh=e,eg(r)}function eg(e){Fh||(Ih&&=clearTimeout(Ih),e-Hh>24?(e<1/0&&(Ih=setTimeout(Zh,e-Wh.now()-Uh)),Lh&&=clearInterval(Lh)):(Lh||=(Vh=Wh.now(),setInterval(Qh,Rh)),Fh=1,Gh(Zh)))}function tg(e,t,n){var r=new Jh;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var ng=af(`start`,`end`,`cancel`,`interrupt`),rg=[];function ig(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;cg(e,n,{name:t,index:r,group:i,on:ng,tween:rg,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function ag(e,t){var n=sg(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function og(e,t){var n=sg(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function sg(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function cg(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Yh(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return tg(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(tg(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function lg(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function ug(e){return this.each(function(){lg(this,e)})}function dg(e,t){var n,r;return function(){var i=og(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function fg(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=og(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function pg(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=sg(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?dg:fg)(n,e,t))}function mg(e,t,n){var r=e._id;return e.each(function(){var e=og(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return sg(e,r).value[t]}}function hg(e,t){var n;return(typeof t==`number`?hh:t instanceof Wm?mh:(n=Wm(t))?(t=n,mh):bh)(e,t)}function gg(e){return function(){this.removeAttribute(e)}}function _g(e){return function(){this.removeAttributeNS(e.space,e.local)}}function vg(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function yg(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function bg(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function xg(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Sg(e,t){var n=df(e),r=n===`transform`?kh:hg;return this.attrTween(e,typeof t==`function`?(n.local?xg:bg)(n,r,mg(this,`attr.`+e,t)):t==null?(n.local?_g:gg)(n):(n.local?yg:vg)(n,r,t))}function Cg(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function wg(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Tg(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&wg(e,i)),n}return i._value=t,i}function Eg(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Cg(e,i)),n}return i._value=t,i}function Dg(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=df(e);return this.tween(n,(r.local?Tg:Eg)(r,t))}function Og(e,t){return function(){ag(this,e).delay=+t.apply(this,arguments)}}function kg(e,t){return t=+t,function(){ag(this,e).delay=t}}function Ag(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Og:kg)(t,e)):sg(this.node(),t).delay}function jg(e,t){return function(){og(this,e).duration=+t.apply(this,arguments)}}function Mg(e,t){return t=+t,function(){og(this,e).duration=t}}function Ng(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?jg:Mg)(t,e)):sg(this.node(),t).duration}function Pg(e,t){if(typeof t!=`function`)throw Error();return function(){og(this,e).ease=t}}function Fg(e){var t=this._id;return arguments.length?this.each(Pg(t,e)):sg(this.node(),t).ease}function Ig(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();og(this,e).ease=n}}function Lg(e){if(typeof e!=`function`)throw Error();return this.each(Ig(this._id,e))}function Rg(e){typeof e!=`function`&&(e=Cf(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new p_(r,this._parents,this._name,this._id)}function zg(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new p_(o,this._parents,this._name,this._id)}function Bg(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function Vg(e,t,n){var r,i,a=Bg(t)?ag:og;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Hg(e,t){var n=this._id;return arguments.length<2?sg(this.node(),n).on.on(e):this.each(Vg(n,e,t))}function Ug(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Wg(){return this.on(`end.remove`,Ug(this._id))}function Gg(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=gf(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,ig(l[f],t,n,f,l,sg(u,n)));return new p_(a,this._parents,t,n)}function Kg(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=bf(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=sg(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&ig(p,t,n,h,f,m);a.push(f),o.push(u)}return new p_(a,o,t,n)}var qg=om.prototype.constructor;function Jg(){return new qg(this._groups,this._parents)}function Yg(e,t){var n,r,i;return function(){var a=pp(this,e),o=(this.style.removeProperty(e),pp(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Xg(e){return function(){this.style.removeProperty(e)}}function Zg(e,t,n){var r,i=n+``,a;return function(){var o=pp(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Qg(e,t,n){var r,i,a;return function(){var o=pp(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),pp(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function $g(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=og(this,e),l=c.on,u=c.value[a]==null?s||=Xg(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function e_(e,t,n){var r=(e+=``)==`transform`?Oh:hg;return t==null?this.styleTween(e,Yg(e,r)).on(`end.style.`+e,Xg(e)):typeof t==`function`?this.styleTween(e,Qg(e,r,mg(this,`style.`+e,t))).each($g(this._id,e)):this.styleTween(e,Zg(e,r,t),n).on(`end.style.`+e,null)}function t_(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function n_(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&t_(e,a,n)),r}return a._value=t,a}function r_(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,n_(e,t,n??``))}function i_(e){return function(){this.textContent=e}}function a_(e){return function(){var t=e(this);this.textContent=t??``}}function o_(e){return this.tween(`text`,typeof e==`function`?a_(mg(this,`text`,e)):i_(e==null?``:e+``))}function s_(e){return function(t){this.textContent=e.call(this,t)}}function c_(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&s_(r)),t}return r._value=e,r}function l_(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,c_(e))}function u_(){for(var e=this._name,t=this._id,n=h_(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=sg(c,t);ig(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new p_(r,this._parents,e,n)}function d_(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=og(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var f_=0;function p_(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function m_(e){return om().transition(e)}function h_(){return++f_}var g_=om.prototype;p_.prototype=m_.prototype={constructor:p_,select:Gg,selectAll:Kg,selectChild:g_.selectChild,selectChildren:g_.selectChildren,filter:Rg,merge:zg,selection:Jg,transition:u_,call:g_.call,nodes:g_.nodes,node:g_.node,size:g_.size,empty:g_.empty,each:g_.each,on:Hg,attr:Sg,attrTween:Dg,style:e_,styleTween:r_,text:o_,textTween:l_,remove:Wg,tween:pg,delay:Ag,duration:Ng,ease:Fg,easeVarying:Lg,end:d_,[Symbol.iterator]:g_[Symbol.iterator]};function __(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var v_={time:null,delay:0,duration:250,ease:__};function y_(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function b_(e){var t,n;e instanceof p_?(t=e._id,e=e._name):(t=h_(),(n=v_).time=Kh(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&ig(c,e,t,l,o,n||y_(c,t));return new p_(r,this._parents,e,t)}om.prototype.interrupt=ug,om.prototype.transition=b_;var x_=e=>()=>e;function S_(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function C_(e,t,n){this.k=e,this.x=t,this.y=n}C_.prototype={constructor:C_,scale:function(e){return e===1?this:new C_(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new C_(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var w_=new C_(1,0,0);T_.prototype=C_.prototype;function T_(e){for(;!e.__zoom;)if(!(e=e.parentNode))return w_;return e.__zoom}function E_(e){e.stopImmediatePropagation()}function D_(e){e.preventDefault(),e.stopImmediatePropagation()}function O_(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function k_(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function A_(){return this.__zoom||w_}function j_(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function M_(){return navigator.maxTouchPoints||`ontouchstart`in this}function N_(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function P_(){var e=O_,t=k_,n=N_,r=j_,i=M_,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=Ph,l=af(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,A_).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,D).on(`touchmove.zoom`,O).on(`touchend.zoom touchcancel.zoom`,k).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,A_),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(w_.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new C_(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new C_(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new C_(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=cm(this.that).datum();l.call(e,this.that,new S_(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=um(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],lg(this),s.start();D_(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=cm(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=um(t,i),l=t.clientX,u=t.clientY;hm(t.view),E_(t),a.mouse=[c,this.__zoom.invert(c)],lg(this),a.start();function d(e){if(D_(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=um(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),gm(e.view,a.moved),D_(e),a.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=um(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);D_(r),s>0?cm(this).transition().duration(s).call(x,d,c,r):cm(this).call(_.transform,d,c,r)}}function D(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(E_(t),s=0;s<i;++s)c=r[s],l=um(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),lg(this),a.start())}}function O(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(D_(e),s=0;s<a;++s)c=i[s],l=um(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function k(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(E_(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=um(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=cm(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:x_(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:x_(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:x_(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:x_([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var F_=g(),I_=(0,S.createContext)(null),L_=I_.Provider,R_={error001:()=>`[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001`,error002:()=>`It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.`,error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>`The React Flow parent container needs a width and a height to render the graph.`,error005:()=>`Only child nodes can use a parent extent.`,error006:()=>`Can't create edge. An edge needs a source and a target.`,error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,t)=>`Couldn't create edge for ${e?`target`:`source`} handle id: "${e?t.targetHandle:t.sourceHandle}", edge id: ${t.id}.`,error010:()=>`Handle: No node id found. Make sure to only use a Handle inside a custom Node.`,error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`},z_=R_.error001();function B_(e,t){let n=(0,S.useContext)(I_);if(n===null)throw Error(z_);return $d(n,e,t)}var V_=()=>{let e=(0,S.useContext)(I_);if(e===null)throw Error(z_);return(0,S.useMemo)(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe,destroy:e.destroy}),[e])},H_=e=>e.userSelectionActive?`none`:`all`;function U_({position:e,children:t,className:n,style:r,...i}){let a=B_(H_),o=`${e}`.split(`-`);return S.createElement(`div`,{className:Hd([`react-flow__panel`,n,...o]),style:{...r,pointerEvents:a},...i},t)}function W_({proOptions:e,position:t=`bottom-right`}){return e?.hideAttribution?null:S.createElement(U_,{position:t,className:`react-flow__attribution`,"data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: https://reactflow.dev/pro`},S.createElement(`a`,{href:`https://reactflow.dev`,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`React Flow attribution`},`React Flow`))}var G_=(0,S.memo)(({x:e,y:t,label:n,labelStyle:r={},labelShowBg:i=!0,labelBgStyle:a={},labelBgPadding:o=[2,4],labelBgBorderRadius:s=2,children:c,className:l,...u})=>{let d=(0,S.useRef)(null),[f,p]=(0,S.useState)({x:0,y:0,width:0,height:0}),m=Hd([`react-flow__edge-textwrapper`,l]);return(0,S.useEffect)(()=>{if(d.current){let e=d.current.getBBox();p({x:e.x,y:e.y,width:e.width,height:e.height})}},[n]),n===void 0||!n?null:S.createElement(`g`,{transform:`translate(${e-f.width/2} ${t-f.height/2})`,className:m,visibility:f.width?`visible`:`hidden`,...u},i&&S.createElement(`rect`,{width:f.width+2*o[0],x:-o[0],y:-o[1],height:f.height+2*o[1],className:`react-flow__edge-textbg`,style:a,rx:s,ry:s}),S.createElement(`text`,{className:`react-flow__edge-text`,y:f.height/2,dy:`0.3em`,ref:d,style:r},n),c)}),K_=e=>({width:e.offsetWidth,height:e.offsetHeight}),q_=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),J_=(e={x:0,y:0},t)=>({x:q_(e.x,t[0][0],t[1][0]),y:q_(e.y,t[0][1],t[1][1])}),Y_=(e,t,n)=>e<t?q_(Math.abs(e-t),1,50)/50:e>n?-q_(Math.abs(e-n),1,50)/50:0,X_=(e,t)=>[Y_(e.x,35,t.width-35)*20,Y_(e.y,35,t.height-35)*20],Z_=e=>e.getRootNode?.()||window?.document,Q_=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),$_=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),ev=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),tv=e=>({...e.positionAbsolute||{x:0,y:0},width:e.width||0,height:e.height||0}),nv=(e,t)=>ev(Q_($_(e),$_(t))),rv=(e,t)=>{let n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},iv=e=>av(e.width)&&av(e.height)&&av(e.x)&&av(e.y),av=e=>!isNaN(e)&&isFinite(e),ov=Symbol.for(`internals`),sv=[`Enter`,` `,`Escape`],cv=(e,t)=>{},lv=e=>`nativeEvent`in e;function uv(e){let t=(lv(e)?e.nativeEvent:e).composedPath?.()?.[0]||e.target;return[`INPUT`,`SELECT`,`TEXTAREA`].includes(t?.nodeName)||t?.hasAttribute(`contenteditable`)||!!t?.closest(`.nokey`)}var dv=e=>`clientX`in e,fv=(e,t)=>{let n=dv(e),r=n?e.clientX:e.touches?.[0].clientX,i=n?e.clientY:e.touches?.[0].clientY;return{x:r-(t?.left??0),y:i-(t?.top??0)}},pv=()=>typeof navigator<`u`&&navigator?.userAgent?.indexOf(`Mac`)>=0,mv=({id:e,path:t,labelX:n,labelY:r,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:c,labelBgBorderRadius:l,style:u,markerEnd:d,markerStart:f,interactionWidth:p=20})=>S.createElement(S.Fragment,null,S.createElement(`path`,{id:e,style:u,d:t,fill:`none`,className:`react-flow__edge-path`,markerEnd:d,markerStart:f}),p&&S.createElement(`path`,{d:t,fill:`none`,strokeOpacity:0,strokeWidth:p,className:`react-flow__edge-interaction`}),i&&av(n)&&av(r)?S.createElement(G_,{x:n,y:r,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:c,labelBgBorderRadius:l}):null);mv.displayName=`BaseEdge`;function hv(e,t,n){return n===void 0?n:r=>{let i=t().edges.find(t=>t.id===e);i&&n(r,{...i})}}function gv({sourceX:e,sourceY:t,targetX:n,targetY:r}){let i=Math.abs(n-e)/2,a=n<e?n+i:n-i,o=Math.abs(r-t)/2;return[a,r<t?r+o:r-o,i,o]}function _v({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:i,sourceControlY:a,targetControlX:o,targetControlY:s}){let c=e*.125+i*.375+o*.375+n*.125,l=t*.125+a*.375+s*.375+r*.125;return[c,l,Math.abs(c-e),Math.abs(l-t)]}var vv;(function(e){e.Strict=`strict`,e.Loose=`loose`})(vv||={});var yv;(function(e){e.Free=`free`,e.Vertical=`vertical`,e.Horizontal=`horizontal`})(yv||={});var bv;(function(e){e.Partial=`partial`,e.Full=`full`})(bv||={});var xv;(function(e){e.Bezier=`default`,e.Straight=`straight`,e.Step=`step`,e.SmoothStep=`smoothstep`,e.SimpleBezier=`simplebezier`})(xv||={});var Sv;(function(e){e.Arrow=`arrow`,e.ArrowClosed=`arrowclosed`})(Sv||={});var Q;(function(e){e.Left=`left`,e.Top=`top`,e.Right=`right`,e.Bottom=`bottom`})(Q||={});function Cv({pos:e,x1:t,y1:n,x2:r,y2:i}){return e===Q.Left||e===Q.Right?[.5*(t+r),n]:[t,.5*(n+i)]}function wv({sourceX:e,sourceY:t,sourcePosition:n=Q.Bottom,targetX:r,targetY:i,targetPosition:a=Q.Top}){let[o,s]=Cv({pos:n,x1:e,y1:t,x2:r,y2:i}),[c,l]=Cv({pos:a,x1:r,y1:i,x2:e,y2:t}),[u,d,f,p]=_v({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:o,sourceControlY:s,targetControlX:c,targetControlY:l});return[`M${e},${t} C${o},${s} ${c},${l} ${r},${i}`,u,d,f,p]}var Tv=(0,S.memo)(({sourceX:e,sourceY:t,targetX:n,targetY:r,sourcePosition:i=Q.Bottom,targetPosition:a=Q.Top,label:o,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:m,interactionWidth:h})=>{let[g,_,v]=wv({sourceX:e,sourceY:t,sourcePosition:i,targetX:n,targetY:r,targetPosition:a});return S.createElement(mv,{path:g,labelX:_,labelY:v,label:o,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:m,interactionWidth:h})});Tv.displayName=`SimpleBezierEdge`;var Ev={[Q.Left]:{x:-1,y:0},[Q.Right]:{x:1,y:0},[Q.Top]:{x:0,y:-1},[Q.Bottom]:{x:0,y:1}},Dv=({source:e,sourcePosition:t=Q.Bottom,target:n})=>t===Q.Left||t===Q.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},Ov=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2);function kv({source:e,sourcePosition:t=Q.Bottom,target:n,targetPosition:r=Q.Top,center:i,offset:a}){let o=Ev[t],s=Ev[r],c={x:e.x+o.x*a,y:e.y+o.y*a},l={x:n.x+s.x*a,y:n.y+s.y*a},u=Dv({source:c,sourcePosition:t,target:l}),d=u.x===0?`y`:`x`,f=u[d],p=[],m,h,g={x:0,y:0},_={x:0,y:0},[v,y,b,x]=gv({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(o[d]*s[d]===-1){m=i.x??v,h=i.y??y;let e=[{x:m,y:c.y},{x:m,y:l.y}],t=[{x:c.x,y:h},{x:l.x,y:h}];p=o[d]===f?d===`x`?e:t:d===`x`?t:e}else{let i=[{x:c.x,y:l.y}],u=[{x:l.x,y:c.y}];if(p=d===`x`?o.x===f?u:i:o.y===f?i:u,t===r){let t=Math.abs(e[d]-n[d]);if(t<=a){let r=Math.min(a-1,a-t);o[d]===f?g[d]=(c[d]>e[d]?-1:1)*r:_[d]=(l[d]>n[d]?-1:1)*r}}if(t!==r){let e=d===`x`?`y`:`x`,t=o[d]===s[e],n=c[e]>l[e],r=c[e]<l[e];(o[d]===1&&(!t&&n||t&&r)||o[d]!==1&&(!t&&r||t&&n))&&(p=d===`x`?i:u)}let v={x:c.x+g.x,y:c.y+g.y},y={x:l.x+_.x,y:l.y+_.y};Math.max(Math.abs(v.x-p[0].x),Math.abs(y.x-p[0].x))>=Math.max(Math.abs(v.y-p[0].y),Math.abs(y.y-p[0].y))?(m=(v.x+y.x)/2,h=p[0].y):(m=p[0].x,h=(v.y+y.y)/2)}return[[e,{x:c.x+g.x,y:c.y+g.y},...p,{x:l.x+_.x,y:l.y+_.y},n],m,h,b,x]}function Av(e,t,n,r){let i=Math.min(Ov(e,t)/2,Ov(t,n)/2,r),{x:a,y:o}=t;if(e.x===a&&a===n.x||e.y===o&&o===n.y)return`L${a} ${o}`;if(e.y===o){let t=e.x<n.x?-1:1,r=e.y<n.y?1:-1;return`L ${a+i*t},${o}Q ${a},${o} ${a},${o+i*r}`}let s=e.x<n.x?1:-1;return`L ${a},${o+i*(e.y<n.y?-1:1)}Q ${a},${o} ${a+i*s},${o}`}function jv({sourceX:e,sourceY:t,sourcePosition:n=Q.Bottom,targetX:r,targetY:i,targetPosition:a=Q.Top,borderRadius:o=5,centerX:s,centerY:c,offset:l=20}){let[u,d,f,p,m]=kv({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:i},targetPosition:a,center:{x:s,y:c},offset:l});return[u.reduce((e,t,n)=>{let r=``;return r=n>0&&n<u.length-1?Av(u[n-1],t,u[n+1],o):`${n===0?`M`:`L`}${t.x} ${t.y}`,e+=r,e},``),d,f,p,m]}var Mv=(0,S.memo)(({sourceX:e,sourceY:t,targetX:n,targetY:r,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:c,labelBgBorderRadius:l,style:u,sourcePosition:d=Q.Bottom,targetPosition:f=Q.Top,markerEnd:p,markerStart:m,pathOptions:h,interactionWidth:g})=>{let[_,v,y]=jv({sourceX:e,sourceY:t,sourcePosition:d,targetX:n,targetY:r,targetPosition:f,borderRadius:h?.borderRadius,offset:h?.offset});return S.createElement(mv,{path:_,labelX:v,labelY:y,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:c,labelBgBorderRadius:l,style:u,markerEnd:p,markerStart:m,interactionWidth:g})});Mv.displayName=`SmoothStepEdge`;var Nv=(0,S.memo)(e=>S.createElement(Mv,{...e,pathOptions:(0,S.useMemo)(()=>({borderRadius:0,offset:e.pathOptions?.offset}),[e.pathOptions?.offset])}));Nv.displayName=`StepEdge`;function Pv({sourceX:e,sourceY:t,targetX:n,targetY:r}){let[i,a,o,s]=gv({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,i,a,o,s]}var Fv=(0,S.memo)(({sourceX:e,sourceY:t,targetX:n,targetY:r,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:c,labelBgBorderRadius:l,style:u,markerEnd:d,markerStart:f,interactionWidth:p})=>{let[m,h,g]=Pv({sourceX:e,sourceY:t,targetX:n,targetY:r});return S.createElement(mv,{path:m,labelX:h,labelY:g,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:c,labelBgBorderRadius:l,style:u,markerEnd:d,markerStart:f,interactionWidth:p})});Fv.displayName=`StraightEdge`;function Iv(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function Lv({pos:e,x1:t,y1:n,x2:r,y2:i,c:a}){switch(e){case Q.Left:return[t-Iv(t-r,a),n];case Q.Right:return[t+Iv(r-t,a),n];case Q.Top:return[t,n-Iv(n-i,a)];case Q.Bottom:return[t,n+Iv(i-n,a)]}}function Rv({sourceX:e,sourceY:t,sourcePosition:n=Q.Bottom,targetX:r,targetY:i,targetPosition:a=Q.Top,curvature:o=.25}){let[s,c]=Lv({pos:n,x1:e,y1:t,x2:r,y2:i,c:o}),[l,u]=Lv({pos:a,x1:r,y1:i,x2:e,y2:t,c:o}),[d,f,p,m]=_v({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:s,sourceControlY:c,targetControlX:l,targetControlY:u});return[`M${e},${t} C${s},${c} ${l},${u} ${r},${i}`,d,f,p,m]}var zv=(0,S.memo)(({sourceX:e,sourceY:t,targetX:n,targetY:r,sourcePosition:i=Q.Bottom,targetPosition:a=Q.Top,label:o,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:m,pathOptions:h,interactionWidth:g})=>{let[_,v,y]=Rv({sourceX:e,sourceY:t,sourcePosition:i,targetX:n,targetY:r,targetPosition:a,curvature:h?.curvature});return S.createElement(mv,{path:_,labelX:v,labelY:y,label:o,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:m,interactionWidth:g})});zv.displayName=`BezierEdge`;var Bv=(0,S.createContext)(null),Vv=Bv.Provider;Bv.Consumer;var Hv=()=>(0,S.useContext)(Bv),Uv=e=>`id`in e&&`source`in e&&`target`in e,Wv=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`reactflow__edge-${e}${t||``}-${n}${r||``}`,Gv=(e,t)=>e===void 0?``:typeof e==`string`?e:`${t?`${t}__`:``}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join(`&`)}`,Kv=(e,t)=>t.some(t=>t.source===e.source&&t.target===e.target&&(t.sourceHandle===e.sourceHandle||!t.sourceHandle&&!e.sourceHandle)&&(t.targetHandle===e.targetHandle||!t.targetHandle&&!e.targetHandle)),qv=(e,t)=>{if(!e.source||!e.target)return R_.error006(),t;let n;return n=Uv(e)?{...e}:{...e,id:Wv(e)},Kv(n,t)?t:t.concat(n)},Jv=({x:e,y:t},[n,r,i],a,[o,s])=>{let c={x:(e-n)/i,y:(t-r)/i};return a?{x:o*Math.round(c.x/o),y:s*Math.round(c.y/s)}:c},Yv=({x:e,y:t},[n,r,i])=>({x:e*i+n,y:t*i+r}),Xv=(e,t=[0,0])=>{if(!e)return{x:0,y:0,positionAbsolute:{x:0,y:0}};let n=(e.width??0)*t[0],r=(e.height??0)*t[1],i={x:e.position.x-n,y:e.position.y-r};return{...i,positionAbsolute:e.positionAbsolute?{x:e.positionAbsolute.x-n,y:e.positionAbsolute.y-r}:i}},Zv=(e,t=[0,0])=>e.length===0?{x:0,y:0,width:0,height:0}:ev(e.reduce((e,n)=>{let{x:r,y:i}=Xv(n,t).positionAbsolute;return Q_(e,$_({x:r,y:i,width:n.width||0,height:n.height||0}))},{x:1/0,y:1/0,x2:-1/0,y2:-1/0})),Qv=(e,t,[n,r,i]=[0,0,1],a=!1,o=!1,s=[0,0])=>{let c={x:(t.x-n)/i,y:(t.y-r)/i,width:t.width/i,height:t.height/i},l=[];return e.forEach(e=>{let{width:t,height:n,selectable:r=!0,hidden:i=!1}=e;if(o&&!r||i)return!1;let{positionAbsolute:u}=Xv(e,s),d=rv(c,{x:u.x,y:u.y,width:t||0,height:n||0}),f=t===void 0||n===void 0||t===null||n===null,p=a&&d>0,m=(t||0)*(n||0);(f||p||d>=m||e.dragging)&&l.push(e)}),l},$v=(e,t)=>{let n=e.map(e=>e.id);return t.filter(e=>n.includes(e.source)||n.includes(e.target))},ey=(e,t,n,r,i,a=.1)=>{let o=t/(e.width*(1+a)),s=n/(e.height*(1+a)),c=q_(Math.min(o,s),r,i),l=e.x+e.width/2,u=e.y+e.height/2;return{x:t/2-l*c,y:n/2-u*c,zoom:c}},ty=(e,t=0)=>e.transition().duration(t);function ny(e,t,n,r){return(t[n]||[]).reduce((t,i)=>(`${e.id}-${i.id}-${n}`!==r&&t.push({id:i.id||null,type:n,nodeId:e.id,x:(e.positionAbsolute?.x??0)+i.x+i.width/2,y:(e.positionAbsolute?.y??0)+i.y+i.height/2}),t),[])}function ry(e,t,n,r,i,a){let{x:o,y:s}=fv(e),c=t.elementsFromPoint(o,s).find(e=>e.classList.contains(`react-flow__handle`));if(c){let e=c.getAttribute(`data-nodeid`);if(e){let t=cy(void 0,c),r=c.getAttribute(`data-handleid`),o=a({nodeId:e,id:r,type:t});if(o){let a=i.find(n=>n.nodeId===e&&n.type===t&&n.id===r);return{handle:{id:r,type:t,nodeId:e,x:a?.x||n.x,y:a?.y||n.y},validHandleResult:o}}}}let l=[],u=1/0;if(i.forEach(e=>{let t=Math.sqrt((e.x-n.x)**2+(e.y-n.y)**2);if(t<=r){let n=a(e);t<=u&&(t<u?l=[{handle:e,validHandleResult:n}]:t===u&&l.push({handle:e,validHandleResult:n}),u=t)}}),!l.length)return{handle:null,validHandleResult:ay()};if(l.length===1)return l[0];let d=l.some(({validHandleResult:e})=>e.isValid),f=l.some(({handle:e})=>e.type===`target`);return l.find(({handle:e,validHandleResult:t})=>f?e.type===`target`:d?t.isValid:!0)||l[0]}var iy={source:null,target:null,sourceHandle:null,targetHandle:null},ay=()=>({handleDomNode:null,isValid:!1,connection:iy,endHandle:null});function oy(e,t,n,r,i,a,o){let s=i===`target`,c=o.querySelector(`.react-flow__handle[data-id="${e?.nodeId}-${e?.id}-${e?.type}"]`),l={...ay(),handleDomNode:c};if(c){let e=cy(void 0,c),i=c.getAttribute(`data-nodeid`),o=c.getAttribute(`data-handleid`),u=c.classList.contains(`connectable`),d=c.classList.contains(`connectableend`),f={source:s?i:n,sourceHandle:s?o:r,target:s?n:i,targetHandle:s?r:o};l.connection=f,u&&d&&(t===vv.Strict?s&&e===`source`||!s&&e===`target`:i!==n||o!==r)&&(l.endHandle={nodeId:i,handleId:o,type:e},l.isValid=a(f))}return l}function sy({nodes:e,nodeId:t,handleId:n,handleType:r}){return e.reduce((e,i)=>{if(i[ov]){let{handleBounds:a}=i[ov],o=[],s=[];a&&(o=ny(i,a,`source`,`${t}-${n}-${r}`),s=ny(i,a,`target`,`${t}-${n}-${r}`)),e.push(...o,...s)}return e},[])}function cy(e,t){return e||(t?.classList.contains(`target`)?`target`:t?.classList.contains(`source`)?`source`:null)}function ly(e){e?.classList.remove(`valid`,`connecting`,`react-flow__handle-valid`,`react-flow__handle-connecting`)}function uy(e,t){let n=null;return t?n=`valid`:e&&!t&&(n=`invalid`),n}function dy({event:e,handleId:t,nodeId:n,onConnect:r,isTarget:i,getState:a,setState:o,isValidConnection:s,edgeUpdaterType:c,onReconnectEnd:l}){let u=Z_(e.target),{connectionMode:d,domNode:f,autoPanOnConnect:p,connectionRadius:m,onConnectStart:h,panBy:g,getNodes:_,cancelConnection:v}=a(),y=0,b,{x,y:S}=fv(e),C=u?.elementFromPoint(x,S),w=cy(c,C),T=f?.getBoundingClientRect();if(!T||!w)return;let E,D=fv(e,T),O=!1,k=null,A=!1,j=null,ee=sy({nodes:_(),nodeId:n,handleId:t,handleType:w}),M=()=>{if(!p)return;let[e,t]=X_(D,T);g({x:e,y:t}),y=requestAnimationFrame(M)};o({connectionPosition:D,connectionStatus:null,connectionNodeId:n,connectionHandleId:t,connectionHandleType:w,connectionStartHandle:{nodeId:n,handleId:t,type:w},connectionEndHandle:null}),h?.(e,{nodeId:n,handleId:t,handleType:w});function N(e){let{transform:r}=a();D=fv(e,T);let{handle:c,validHandleResult:l}=ry(e,u,Jv(D,r,!1,[1,1]),m,ee,e=>oy(e,d,n,t,i?`target`:`source`,s,u));if(b=c,O||=(M(),!0),j=l.handleDomNode,k=l.connection,A=l.isValid,o({connectionPosition:b&&A?Yv({x:b.x,y:b.y},r):D,connectionStatus:uy(!!b,A),connectionEndHandle:l.endHandle}),!b&&!A&&!j)return ly(E);k.source!==k.target&&j&&(ly(E),E=j,j.classList.add(`connecting`,`react-flow__handle-connecting`),j.classList.toggle(`valid`,A),j.classList.toggle(`react-flow__handle-valid`,A))}function te(e){(b||j)&&k&&A&&r?.(k),a().onConnectEnd?.(e),c&&l?.(e),ly(E),v(),cancelAnimationFrame(y),O=!1,A=!1,k=null,j=null,u.removeEventListener(`mousemove`,N),u.removeEventListener(`mouseup`,te),u.removeEventListener(`touchmove`,N),u.removeEventListener(`touchend`,te)}u.addEventListener(`mousemove`,N),u.addEventListener(`mouseup`,te),u.addEventListener(`touchmove`,N),u.addEventListener(`touchend`,te)}var fy=()=>!0,py=e=>({connectionStartHandle:e.connectionStartHandle,connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName}),my=(e,t,n)=>r=>{let{connectionStartHandle:i,connectionEndHandle:a,connectionClickStartHandle:o}=r;return{connecting:i?.nodeId===e&&i?.handleId===t&&i?.type===n||a?.nodeId===e&&a?.handleId===t&&a?.type===n,clickConnecting:o?.nodeId===e&&o?.handleId===t&&o?.type===n}},hy=(0,S.forwardRef)(({type:e=`source`,position:t=Q.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:i=!0,isConnectableEnd:a=!0,id:o,onConnect:s,children:c,className:l,onMouseDown:u,onTouchStart:d,...f},p)=>{let m=o||null,h=e===`target`,g=V_(),_=Hv(),{connectOnClick:v,noPanClassName:y}=B_(py,nf),{connecting:b,clickConnecting:x}=B_(my(_,m,e),nf);_||g.getState().onError?.(`010`,R_.error010());let C=e=>{let{defaultEdgeOptions:t,onConnect:n,hasDefaultEdges:r}=g.getState(),i={...t,...e};if(r){let{edges:e,setEdges:t}=g.getState();t(qv(i,e))}n?.(i),s?.(i)},w=e=>{if(!_)return;let t=dv(e);i&&(t&&e.button===0||!t)&&dy({event:e,handleId:m,nodeId:_,onConnect:C,isTarget:h,getState:g.getState,setState:g.setState,isValidConnection:n||g.getState().isValidConnection||fy}),t?u?.(e):d?.(e)};return S.createElement(`div`,{"data-handleid":m,"data-nodeid":_,"data-handlepos":t,"data-id":`${_}-${m}-${e}`,className:Hd([`react-flow__handle`,`react-flow__handle-${t}`,`nodrag`,y,l,{source:!h,target:h,connectable:r,connectablestart:i,connectableend:a,connecting:x,connectionindicator:r&&(i&&!b||a&&b)}]),onMouseDown:w,onTouchStart:w,onClick:v?t=>{let{onClickConnectStart:r,onClickConnectEnd:a,connectionClickStartHandle:o,connectionMode:s,isValidConnection:c}=g.getState();if(!_||!o&&!i)return;if(!o){r?.(t,{nodeId:_,handleId:m,handleType:e}),g.setState({connectionClickStartHandle:{nodeId:_,type:e,handleId:m}});return}let l=Z_(t.target),u=n||c||fy,{connection:d,isValid:f}=oy({nodeId:_,id:m,type:e},s,o.nodeId,o.handleId||null,o.type,u,l);f&&C(d),a?.(t),g.setState({connectionClickStartHandle:null})}:void 0,ref:p,...f},c)});hy.displayName=`Handle`;var gy=(0,S.memo)(hy),_y=({data:e,isConnectable:t,targetPosition:n=Q.Top,sourcePosition:r=Q.Bottom})=>S.createElement(S.Fragment,null,S.createElement(gy,{type:`target`,position:n,isConnectable:t}),e?.label,S.createElement(gy,{type:`source`,position:r,isConnectable:t}));_y.displayName=`DefaultNode`;var vy=(0,S.memo)(_y),yy=({data:e,isConnectable:t,sourcePosition:n=Q.Bottom})=>S.createElement(S.Fragment,null,e?.label,S.createElement(gy,{type:`source`,position:n,isConnectable:t}));yy.displayName=`InputNode`;var by=(0,S.memo)(yy),xy=({data:e,isConnectable:t,targetPosition:n=Q.Top})=>S.createElement(S.Fragment,null,S.createElement(gy,{type:`target`,position:n,isConnectable:t}),e?.label);xy.displayName=`OutputNode`;var Sy=(0,S.memo)(xy),Cy=()=>null;Cy.displayName=`GroupNode`;var wy=e=>({selectedNodes:e.getNodes().filter(e=>e.selected),selectedEdges:e.edges.filter(e=>e.selected).map(e=>({...e}))}),Ty=e=>e.id;function Ey(e,t){return nf(e.selectedNodes.map(Ty),t.selectedNodes.map(Ty))&&nf(e.selectedEdges.map(Ty),t.selectedEdges.map(Ty))}var Dy=(0,S.memo)(({onSelectionChange:e})=>{let t=V_(),{selectedNodes:n,selectedEdges:r}=B_(wy,Ey);return(0,S.useEffect)(()=>{let i={nodes:n,edges:r};e?.(i),t.getState().onSelectionChange.forEach(e=>e(i))},[n,r,e]),null});Dy.displayName=`SelectionListener`;var Oy=e=>!!e.onSelectionChange;function ky({onSelectionChange:e}){let t=B_(Oy);return e||t?S.createElement(Dy,{onSelectionChange:e}):null}var Ay=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset});function jy(e,t){(0,S.useEffect)(()=>{e!==void 0&&t(e)},[e])}function $(e,t,n){(0,S.useEffect)(()=>{t!==void 0&&n({[e]:t})},[t])}var My=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:i,onConnectStart:a,onConnectEnd:o,onClickConnectStart:s,onClickConnectEnd:c,nodesDraggable:l,nodesConnectable:u,nodesFocusable:d,edgesFocusable:f,edgesUpdatable:p,elevateNodesOnSelect:m,minZoom:h,maxZoom:g,nodeExtent:_,onNodesChange:v,onEdgesChange:y,elementsSelectable:b,connectionMode:x,snapGrid:C,snapToGrid:w,translateExtent:T,connectOnClick:E,defaultEdgeOptions:D,fitView:O,fitViewOptions:k,onNodesDelete:A,onEdgesDelete:j,onNodeDrag:ee,onNodeDragStart:M,onNodeDragStop:N,onSelectionDrag:te,onSelectionDragStart:P,onSelectionDragStop:F,noPanClassName:ne,nodeOrigin:re,rfId:ie,autoPanOnConnect:I,autoPanOnNodeDrag:L,onError:R,connectionRadius:ae,isValidConnection:oe,nodeDragThreshold:se})=>{let{setNodes:ce,setEdges:le,setDefaultNodesAndEdges:ue,setMinZoom:de,setMaxZoom:fe,setTranslateExtent:pe,setNodeExtent:z,reset:me}=B_(Ay,nf),B=V_();return(0,S.useEffect)(()=>{let e=r?.map(e=>({...e,...D}));return ue(n,e),()=>{me()}},[]),$(`defaultEdgeOptions`,D,B.setState),$(`connectionMode`,x,B.setState),$(`onConnect`,i,B.setState),$(`onConnectStart`,a,B.setState),$(`onConnectEnd`,o,B.setState),$(`onClickConnectStart`,s,B.setState),$(`onClickConnectEnd`,c,B.setState),$(`nodesDraggable`,l,B.setState),$(`nodesConnectable`,u,B.setState),$(`nodesFocusable`,d,B.setState),$(`edgesFocusable`,f,B.setState),$(`edgesUpdatable`,p,B.setState),$(`elementsSelectable`,b,B.setState),$(`elevateNodesOnSelect`,m,B.setState),$(`snapToGrid`,w,B.setState),$(`snapGrid`,C,B.setState),$(`onNodesChange`,v,B.setState),$(`onEdgesChange`,y,B.setState),$(`connectOnClick`,E,B.setState),$(`fitViewOnInit`,O,B.setState),$(`fitViewOnInitOptions`,k,B.setState),$(`onNodesDelete`,A,B.setState),$(`onEdgesDelete`,j,B.setState),$(`onNodeDrag`,ee,B.setState),$(`onNodeDragStart`,M,B.setState),$(`onNodeDragStop`,N,B.setState),$(`onSelectionDrag`,te,B.setState),$(`onSelectionDragStart`,P,B.setState),$(`onSelectionDragStop`,F,B.setState),$(`noPanClassName`,ne,B.setState),$(`nodeOrigin`,re,B.setState),$(`rfId`,ie,B.setState),$(`autoPanOnConnect`,I,B.setState),$(`autoPanOnNodeDrag`,L,B.setState),$(`onError`,R,B.setState),$(`connectionRadius`,ae,B.setState),$(`isValidConnection`,oe,B.setState),$(`nodeDragThreshold`,se,B.setState),jy(e,ce),jy(t,le),jy(h,de),jy(g,fe),jy(T,pe),jy(_,z),null},Ny={display:`none`},Py={position:`absolute`,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0px, 0px, 0px, 0px)`,clipPath:`inset(100%)`},Fy=`react-flow__node-desc`,Iy=`react-flow__edge-desc`,Ly=`react-flow__aria-live`,Ry=e=>e.ariaLiveMessage;function zy({rfId:e}){let t=B_(Ry);return S.createElement(`div`,{id:`${Ly}-${e}`,"aria-live":`assertive`,"aria-atomic":`true`,style:Py},t)}function By({rfId:e,disableKeyboardA11y:t}){return S.createElement(S.Fragment,null,S.createElement(`div`,{id:`${Fy}-${e}`,style:Ny},`Press enter or space to select a node.`,!t&&`You can then use the arrow keys to move the node around.`,` Press delete to remove it and escape to cancel.`,` `),S.createElement(`div`,{id:`${Iy}-${e}`,style:Ny},`Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.`),!t&&S.createElement(zy,{rfId:e}))}var Vy=(e=null,t={actInsideInputWithModifier:!0})=>{let[n,r]=(0,S.useState)(!1),i=(0,S.useRef)(!1),a=(0,S.useRef)(new Set([])),[o,s]=(0,S.useMemo)(()=>{if(e!==null){let t=(Array.isArray(e)?e:[e]).filter(e=>typeof e==`string`).map(e=>e.split(`+`));return[t,t.reduce((e,t)=>e.concat(...t),[])]}return[[],[]]},[e]);return(0,S.useEffect)(()=>{let n=typeof document<`u`?document:null,c=t?.target||n;if(e!==null){let e=e=>{if(i.current=e.ctrlKey||e.metaKey||e.shiftKey,(!i.current||i.current&&!t.actInsideInputWithModifier)&&uv(e))return!1;let n=Uy(e.code,s);a.current.add(e[n]),Hy(o,a.current,!1)&&(e.preventDefault(),r(!0))},n=e=>{if((!i.current||i.current&&!t.actInsideInputWithModifier)&&uv(e))return!1;let n=Uy(e.code,s);Hy(o,a.current,!0)?(r(!1),a.current.clear()):a.current.delete(e[n]),e.key===`Meta`&&a.current.clear(),i.current=!1},l=()=>{a.current.clear(),r(!1)};return c?.addEventListener(`keydown`,e),c?.addEventListener(`keyup`,n),window.addEventListener(`blur`,l),()=>{c?.removeEventListener(`keydown`,e),c?.removeEventListener(`keyup`,n),window.removeEventListener(`blur`,l)}}},[e,r]),n};function Hy(e,t,n){return e.filter(e=>n||e.length===t.size).some(e=>e.every(e=>t.has(e)))}function Uy(e,t){return t.includes(e)?`code`:`key`}function Wy(e,t,n,r){let i=e.parentNode||e.parentId;if(!i)return n;let a=t.get(i),o=Xv(a,r);return Wy(a,t,{x:(n.x??0)+o.x,y:(n.y??0)+o.y,z:(a[ov]?.z??0)>(n.z??0)?a[ov]?.z??0:n.z??0},r)}function Gy(e,t,n){e.forEach(r=>{let i=r.parentNode||r.parentId;if(i&&!e.has(i))throw Error(`Parent node ${i} not found`);if(i||n?.[r.id]){let{x:i,y:a,z:o}=Wy(r,e,{...r.position,z:r[ov]?.z??0},t);r.positionAbsolute={x:i,y:a},r[ov].z=o,n?.[r.id]&&(r[ov].isParent=!0)}})}function Ky(e,t,n,r){let i=new Map,a={},o=r?1e3:0;return e.forEach(e=>{let n=(av(e.zIndex)?e.zIndex:0)+(e.selected?o:0),r=t.get(e.id),s={...e,positionAbsolute:{x:e.position.x,y:e.position.y}},c=e.parentNode||e.parentId;c&&(a[c]=!0);let l=r?.type&&r?.type!==e.type;Object.defineProperty(s,ov,{enumerable:!1,value:{handleBounds:l?void 0:r?.[ov]?.handleBounds,z:n}}),i.set(e.id,s)}),Gy(i,n,a),i}function qy(e,t={}){let{getNodes:n,width:r,height:i,minZoom:a,maxZoom:o,d3Zoom:s,d3Selection:c,fitViewOnInitDone:l,fitViewOnInit:u,nodeOrigin:d}=e(),f=t.initial&&!l&&u;if(s&&c&&(f||!t.initial)){let e=n().filter(e=>{let n=t.includeHiddenNodes?e.width&&e.height:!e.hidden;return t.nodes?.length?n&&t.nodes.some(t=>t.id===e.id):n}),l=e.every(e=>e.width&&e.height);if(e.length>0&&l){let{x:n,y:l,zoom:u}=ey(Zv(e,d),r,i,t.minZoom??a,t.maxZoom??o,t.padding??.1),f=w_.translate(n,l).scale(u);return typeof t.duration==`number`&&t.duration>0?s.transform(ty(c,t.duration),f):s.transform(c,f),!0}}return!1}function Jy(e,t){return e.forEach(e=>{let n=t.get(e.id);n&&t.set(n.id,{...n,[ov]:n[ov],selected:e.selected})}),new Map(t)}function Yy(e,t){return t.map(t=>{let n=e.find(e=>e.id===t.id);return n&&(t.selected=n.selected),t})}function Xy({changedNodes:e,changedEdges:t,get:n,set:r}){let{nodeInternals:i,edges:a,onNodesChange:o,onEdgesChange:s,hasDefaultNodes:c,hasDefaultEdges:l}=n();e?.length&&(c&&r({nodeInternals:Jy(e,i)}),o?.(e)),t?.length&&(l&&r({edges:Yy(t,a)}),s?.(t))}var Zy=()=>{},Qy={zoomIn:Zy,zoomOut:Zy,zoomTo:Zy,getZoom:()=>1,setViewport:Zy,getViewport:()=>({x:0,y:0,zoom:1}),fitView:()=>!1,setCenter:Zy,fitBounds:Zy,project:e=>e,screenToFlowPosition:e=>e,flowToScreenPosition:e=>e,viewportInitialized:!1},$y=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection}),eb=()=>{let e=V_(),{d3Zoom:t,d3Selection:n}=B_($y,nf);return(0,S.useMemo)(()=>n&&t?{zoomIn:e=>t.scaleBy(ty(n,e?.duration),1.2),zoomOut:e=>t.scaleBy(ty(n,e?.duration),1/1.2),zoomTo:(e,r)=>t.scaleTo(ty(n,r?.duration),e),getZoom:()=>e.getState().transform[2],setViewport:(r,i)=>{let[a,o,s]=e.getState().transform,c=w_.translate(r.x??a,r.y??o).scale(r.zoom??s);t.transform(ty(n,i?.duration),c)},getViewport:()=>{let[t,n,r]=e.getState().transform;return{x:t,y:n,zoom:r}},fitView:t=>qy(e.getState,t),setCenter:(r,i,a)=>{let{width:o,height:s,maxZoom:c}=e.getState(),l=a?.zoom===void 0?c:a.zoom,u=o/2-r*l,d=s/2-i*l,f=w_.translate(u,d).scale(l);t.transform(ty(n,a?.duration),f)},fitBounds:(r,i)=>{let{width:a,height:o,minZoom:s,maxZoom:c}=e.getState(),{x:l,y:u,zoom:d}=ey(r,a,o,s,c,i?.padding??.1),f=w_.translate(l,u).scale(d);t.transform(ty(n,i?.duration),f)},project:t=>{let{transform:n,snapToGrid:r,snapGrid:i}=e.getState();return console.warn("[DEPRECATED] `project` is deprecated. Instead use `screenToFlowPosition`. There is no need to subtract the react flow bounds anymore! https://reactflow.dev/api-reference/types/react-flow-instance#screen-to-flow-position"),Jv(t,n,r,i)},screenToFlowPosition:t=>{let{transform:n,snapToGrid:r,snapGrid:i,domNode:a}=e.getState();if(!a)return t;let{x:o,y:s}=a.getBoundingClientRect();return Jv({x:t.x-o,y:t.y-s},n,r,i)},flowToScreenPosition:t=>{let{transform:n,domNode:r}=e.getState();if(!r)return t;let{x:i,y:a}=r.getBoundingClientRect(),o=Yv(t,n);return{x:o.x+i,y:o.y+a}},viewportInitialized:!0}:Qy,[t,n])};function tb(){let e=eb(),t=V_(),n=(0,S.useCallback)(()=>t.getState().getNodes().map(e=>({...e})),[]),r=(0,S.useCallback)(e=>t.getState().nodeInternals.get(e),[]),i=(0,S.useCallback)(()=>{let{edges:e=[]}=t.getState();return e.map(e=>({...e}))},[]),a=(0,S.useCallback)(e=>{let{edges:n=[]}=t.getState();return n.find(t=>t.id===e)},[]),o=(0,S.useCallback)(e=>{let{getNodes:n,setNodes:r,hasDefaultNodes:i,onNodesChange:a}=t.getState(),o=n(),s=typeof e==`function`?e(o):e;i?r(s):a&&a(s.length===0?o.map(e=>({type:`remove`,id:e.id})):s.map(e=>({item:e,type:`reset`})))},[]),s=(0,S.useCallback)(e=>{let{edges:n=[],setEdges:r,hasDefaultEdges:i,onEdgesChange:a}=t.getState(),o=typeof e==`function`?e(n):e;i?r(o):a&&a(o.length===0?n.map(e=>({type:`remove`,id:e.id})):o.map(e=>({item:e,type:`reset`})))},[]),c=(0,S.useCallback)(e=>{let n=Array.isArray(e)?e:[e],{getNodes:r,setNodes:i,hasDefaultNodes:a,onNodesChange:o}=t.getState();a?i([...r(),...n]):o&&o(n.map(e=>({item:e,type:`add`})))},[]),l=(0,S.useCallback)(e=>{let n=Array.isArray(e)?e:[e],{edges:r=[],setEdges:i,hasDefaultEdges:a,onEdgesChange:o}=t.getState();a?i([...r,...n]):o&&o(n.map(e=>({item:e,type:`add`})))},[]),u=(0,S.useCallback)(()=>{let{getNodes:e,edges:n=[],transform:r}=t.getState(),[i,a,o]=r;return{nodes:e().map(e=>({...e})),edges:n.map(e=>({...e})),viewport:{x:i,y:a,zoom:o}}},[]),d=(0,S.useCallback)(({nodes:e,edges:n})=>{let{nodeInternals:r,getNodes:i,edges:a,hasDefaultNodes:o,hasDefaultEdges:s,onNodesDelete:c,onEdgesDelete:l,onNodesChange:u,onEdgesChange:d}=t.getState(),f=(e||[]).map(e=>e.id),p=(n||[]).map(e=>e.id),m=i().reduce((e,t)=>{let n=t.parentNode||t.parentId,r=!f.includes(t.id)&&n&&e.find(e=>e.id===n);return(typeof t.deletable!=`boolean`||t.deletable)&&(f.includes(t.id)||r)&&e.push(t),e},[]),h=a.filter(e=>typeof e.deletable==`boolean`?e.deletable:!0),g=h.filter(e=>p.includes(e.id));if(m||g){let e=$v(m,h),n=[...g,...e],i=n.reduce((e,t)=>(e.includes(t.id)||e.push(t.id),e),[]);(s||o)&&(s&&t.setState({edges:a.filter(e=>!i.includes(e.id))}),o&&(m.forEach(e=>{r.delete(e.id)}),t.setState({nodeInternals:new Map(r)}))),i.length>0&&(l?.(n),d&&d(i.map(e=>({id:e,type:`remove`})))),m.length>0&&(c?.(m),u&&u(m.map(e=>({id:e.id,type:`remove`}))))}},[]),f=(0,S.useCallback)(e=>{let n=iv(e),r=n?null:t.getState().nodeInternals.get(e.id);return!n&&!r?[null,null,n]:[n?e:tv(r),r,n]},[]),p=(0,S.useCallback)((e,n=!0,r)=>{let[i,a,o]=f(e);return i?(r||t.getState().getNodes()).filter(e=>{if(!o&&(e.id===a.id||!e.positionAbsolute))return!1;let t=rv(tv(e),i);return n&&t>0||t>=i.width*i.height}):[]},[]),m=(0,S.useCallback)((e,t,n=!0)=>{let[r]=f(e);if(!r)return!1;let i=rv(r,t);return n&&i>0||i>=r.width*r.height},[]);return(0,S.useMemo)(()=>({...e,getNodes:n,getNode:r,getEdges:i,getEdge:a,setNodes:o,setEdges:s,addNodes:c,addEdges:l,toObject:u,deleteElements:d,getIntersectingNodes:p,isNodeIntersecting:m}),[e,n,r,i,a,o,s,c,l,u,d,p,m])}var nb={actInsideInputWithModifier:!1},rb=({deleteKeyCode:e,multiSelectionKeyCode:t})=>{let n=V_(),{deleteElements:r}=tb(),i=Vy(e,nb),a=Vy(t);(0,S.useEffect)(()=>{if(i){let{edges:e,getNodes:t}=n.getState();r({nodes:t().filter(e=>e.selected),edges:e.filter(e=>e.selected)}),n.setState({nodesSelectionActive:!1})}},[i]),(0,S.useEffect)(()=>{n.setState({multiSelectionActive:a})},[a])};function ib(e){let t=V_();(0,S.useEffect)(()=>{let n,r=()=>{if(!e.current)return;let n=K_(e.current);(n.height===0||n.width===0)&&t.getState().onError?.(`004`,R_.error004()),t.setState({width:n.width||500,height:n.height||500})};return r(),window.addEventListener(`resize`,r),e.current&&(n=new ResizeObserver(()=>r()),n.observe(e.current)),()=>{window.removeEventListener(`resize`,r),n&&e.current&&n.unobserve(e.current)}},[])}var ab={position:`absolute`,width:`100%`,height:`100%`,top:0,left:0},ob=(e,t)=>e.x!==t.x||e.y!==t.y||e.zoom!==t.k,sb=e=>({x:e.x,y:e.y,zoom:e.k}),cb=(e,t)=>e.target.closest(`.${t}`),lb=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),ub=e=>{let t=e.ctrlKey&&pv()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t},db=e=>({d3Zoom:e.d3Zoom,d3Selection:e.d3Selection,d3ZoomHandler:e.d3ZoomHandler,userSelectionActive:e.userSelectionActive}),fb=({onMove:e,onMoveStart:t,onMoveEnd:n,onPaneContextMenu:r,zoomOnScroll:i=!0,zoomOnPinch:a=!0,panOnScroll:o=!1,panOnScrollSpeed:s=.5,panOnScrollMode:c=yv.Free,zoomOnDoubleClick:l=!0,elementsSelectable:u,panOnDrag:d=!0,defaultViewport:f,translateExtent:p,minZoom:m,maxZoom:h,zoomActivationKeyCode:g,preventScrolling:_=!0,children:v,noWheelClassName:y,noPanClassName:b})=>{let x=(0,S.useRef)(),C=V_(),w=(0,S.useRef)(!1),T=(0,S.useRef)(!1),E=(0,S.useRef)(null),D=(0,S.useRef)({x:0,y:0,zoom:0}),{d3Zoom:O,d3Selection:k,d3ZoomHandler:A,userSelectionActive:j}=B_(db,nf),ee=Vy(g),M=(0,S.useRef)(0),N=(0,S.useRef)(!1),te=(0,S.useRef)();return ib(E),(0,S.useEffect)(()=>{if(E.current){let e=E.current.getBoundingClientRect(),t=P_().scaleExtent([m,h]).translateExtent(p),n=cm(E.current).call(t),r=w_.translate(f.x,f.y).scale(q_(f.zoom,m,h)),i=[[0,0],[e.width,e.height]],a=t.constrain()(r,i,p);t.transform(n,a),t.wheelDelta(ub),C.setState({d3Zoom:t,d3Selection:n,d3ZoomHandler:n.on(`wheel.zoom`),transform:[a.x,a.y,a.k],domNode:E.current.closest(`.react-flow`)})}},[]),(0,S.useEffect)(()=>{k&&O&&(o&&!ee&&!j?k.on(`wheel.zoom`,r=>{if(cb(r,y))return!1;r.preventDefault(),r.stopImmediatePropagation();let i=k.property(`__zoom`).k||1;if(r.ctrlKey&&a){let e=um(r),t=i*2**ub(r);O.scaleTo(k,t,e,r);return}let o=r.deltaMode===1?20:1,l=c===yv.Vertical?0:r.deltaX*o,u=c===yv.Horizontal?0:r.deltaY*o;!pv()&&r.shiftKey&&c!==yv.Vertical&&(l=r.deltaY*o,u=0),O.translateBy(k,-(l/i)*s,-(u/i)*s,{internal:!0});let d=sb(k.property(`__zoom`)),{onViewportChangeStart:f,onViewportChange:p,onViewportChangeEnd:m}=C.getState();clearTimeout(te.current),N.current||(N.current=!0,t?.(r,d),f?.(d)),N.current&&(e?.(r,d),p?.(d),te.current=setTimeout(()=>{n?.(r,d),m?.(d),N.current=!1},150))},{passive:!1}):A!==void 0&&k.on(`wheel.zoom`,function(e,t){if(!_&&e.type===`wheel`&&!e.ctrlKey||cb(e,y))return null;e.preventDefault(),A.call(this,e,t)},{passive:!1}))},[j,o,c,k,O,A,ee,a,_,y,t,e,n]),(0,S.useEffect)(()=>{O&&O.on(`start`,e=>{if(!e.sourceEvent||e.sourceEvent.internal)return null;M.current=e.sourceEvent?.button;let{onViewportChangeStart:n}=C.getState(),r=sb(e.transform);w.current=!0,D.current=r,e.sourceEvent?.type===`mousedown`&&C.setState({paneDragging:!0}),n?.(r),t?.(e.sourceEvent,r)})},[O,t]),(0,S.useEffect)(()=>{O&&(j&&!w.current?O.on(`zoom`,null):j||O.on(`zoom`,t=>{let{onViewportChange:n}=C.getState();if(C.setState({transform:[t.transform.x,t.transform.y,t.transform.k]}),T.current=!!(r&&lb(d,M.current??0)),(e||n)&&!t.sourceEvent?.internal){let r=sb(t.transform);n?.(r),e?.(t.sourceEvent,r)}}))},[j,O,e,d,r]),(0,S.useEffect)(()=>{O&&O.on(`end`,e=>{if(!e.sourceEvent||e.sourceEvent.internal)return null;let{onViewportChangeEnd:t}=C.getState();if(w.current=!1,C.setState({paneDragging:!1}),r&&lb(d,M.current??0)&&!T.current&&r(e.sourceEvent),T.current=!1,(n||t)&&ob(D.current,e.transform)){let r=sb(e.transform);D.current=r,clearTimeout(x.current),x.current=setTimeout(()=>{t?.(r),n?.(e.sourceEvent,r)},o?150:0)}})},[O,o,d,n,r]),(0,S.useEffect)(()=>{O&&O.filter(e=>{let t=ee||i,n=a&&e.ctrlKey;if((d===!0||Array.isArray(d)&&d.includes(1))&&e.button===1&&e.type===`mousedown`&&(cb(e,`react-flow__node`)||cb(e,`react-flow__edge`)))return!0;if(!d&&!t&&!o&&!l&&!a||j||!l&&e.type===`dblclick`||cb(e,y)&&e.type===`wheel`||cb(e,b)&&(e.type!==`wheel`||o&&e.type===`wheel`&&!ee)||!a&&e.ctrlKey&&e.type===`wheel`||!t&&!o&&!n&&e.type===`wheel`||!d&&(e.type===`mousedown`||e.type===`touchstart`)||Array.isArray(d)&&!d.includes(e.button)&&e.type===`mousedown`)return!1;let r=Array.isArray(d)&&d.includes(e.button)||!e.button||e.button<=1;return(!e.ctrlKey||e.type===`wheel`)&&r})},[j,O,i,a,o,l,d,u,ee]),S.createElement(`div`,{className:`react-flow__renderer`,ref:E,style:ab},v)},pb=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function mb(){let{userSelectionActive:e,userSelectionRect:t}=B_(pb,nf);return e&&t?S.createElement(`div`,{className:`react-flow__selection react-flow__container`,style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}function hb(e,t){let n=t.parentNode||t.parentId,r=e.find(e=>e.id===n);if(r){let e=t.position.x+t.width-r.width,n=t.position.y+t.height-r.height;if(e>0||n>0||t.position.x<0||t.position.y<0){if(r.style={...r.style},r.style.width=r.style.width??r.width,r.style.height=r.style.height??r.height,e>0&&(r.style.width+=e),n>0&&(r.style.height+=n),t.position.x<0){let e=Math.abs(t.position.x);r.position.x=r.position.x-e,r.style.width+=e,t.position.x=0}if(t.position.y<0){let e=Math.abs(t.position.y);r.position.y=r.position.y-e,r.style.height+=e,t.position.y=0}r.width=r.style.width,r.height=r.style.height}}}function gb(e,t){if(e.some(e=>e.type===`reset`))return e.filter(e=>e.type===`reset`).map(e=>e.item);let n=e.filter(e=>e.type===`add`).map(e=>e.item);return t.reduce((t,n)=>{let r=e.filter(e=>e.id===n.id);if(r.length===0)return t.push(n),t;let i={...n};for(let e of r)if(e)switch(e.type){case`select`:i.selected=e.selected;break;case`position`:e.position!==void 0&&(i.position=e.position),e.positionAbsolute!==void 0&&(i.positionAbsolute=e.positionAbsolute),e.dragging!==void 0&&(i.dragging=e.dragging),i.expandParent&&hb(t,i);break;case`dimensions`:e.dimensions!==void 0&&(i.width=e.dimensions.width,i.height=e.dimensions.height),e.updateStyle!==void 0&&(i.style={...i.style||{},...e.dimensions}),typeof e.resizing==`boolean`&&(i.resizing=e.resizing),i.expandParent&&hb(t,i);break;case`remove`:return t}return t.push(i),t},n)}function _b(e,t){return gb(e,t)}var vb=(e,t)=>({id:e,type:`select`,selected:t});function yb(e,t){return e.reduce((e,n)=>{let r=t.includes(n.id);return!n.selected&&r?(n.selected=!0,e.push(vb(n.id,!0))):n.selected&&!r&&(n.selected=!1,e.push(vb(n.id,!1))),e},[])}var bb=(e,t)=>n=>{n.target===t.current&&e?.(n)},xb=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging}),Sb=(0,S.memo)(({isSelecting:e,selectionMode:t=bv.Full,panOnDrag:n,onSelectionStart:r,onSelectionEnd:i,onPaneClick:a,onPaneContextMenu:o,onPaneScroll:s,onPaneMouseEnter:c,onPaneMouseMove:l,onPaneMouseLeave:u,children:d})=>{let f=(0,S.useRef)(null),p=V_(),m=(0,S.useRef)(0),h=(0,S.useRef)(0),g=(0,S.useRef)(),{userSelectionActive:_,elementsSelectable:v,dragging:y}=B_(xb,nf),b=()=>{p.setState({userSelectionActive:!1,userSelectionRect:null}),m.current=0,h.current=0},x=e=>{a?.(e),p.getState().resetSelectedElements(),p.setState({nodesSelectionActive:!1})},C=e=>{if(Array.isArray(n)&&n?.includes(2)){e.preventDefault();return}o?.(e)},w=s?e=>s(e):void 0,T=t=>{let{resetSelectedElements:n,domNode:i}=p.getState();if(g.current=i?.getBoundingClientRect(),!v||!e||t.button!==0||t.target!==f.current||!g.current)return;let{x:a,y:o}=fv(t,g.current);n(),p.setState({userSelectionRect:{width:0,height:0,startX:a,startY:o,x:a,y:o}}),r?.(t)},E=n=>{let{userSelectionRect:r,nodeInternals:i,edges:a,transform:o,onNodesChange:s,onEdgesChange:c,nodeOrigin:l,getNodes:u}=p.getState();if(!e||!g.current||!r)return;p.setState({userSelectionActive:!0,nodesSelectionActive:!1});let d=fv(n,g.current),f=r.startX??0,_=r.startY??0,v={...r,x:d.x<f?d.x:f,y:d.y<_?d.y:_,width:Math.abs(d.x-f),height:Math.abs(d.y-_)},y=u(),b=Qv(i,v,o,t===bv.Partial,!0,l),x=$v(b,a).map(e=>e.id),S=b.map(e=>e.id);if(m.current!==S.length){m.current=S.length;let e=yb(y,S);e.length&&s?.(e)}if(h.current!==x.length){h.current=x.length;let e=yb(a,x);e.length&&c?.(e)}p.setState({userSelectionRect:v})},D=e=>{if(e.button!==0)return;let{userSelectionRect:t}=p.getState();!_&&t&&e.target===f.current&&x?.(e),p.setState({nodesSelectionActive:m.current>0}),b(),i?.(e)},O=e=>{_&&(p.setState({nodesSelectionActive:m.current>0}),i?.(e)),b()},k=v&&(e||_);return S.createElement(`div`,{className:Hd([`react-flow__pane`,{dragging:y,selection:e}]),onClick:k?void 0:bb(x,f),onContextMenu:bb(C,f),onWheel:bb(w,f),onMouseEnter:k?void 0:c,onMouseDown:k?T:void 0,onMouseMove:k?E:l,onMouseUp:k?D:void 0,onMouseLeave:k?O:u,ref:f,style:ab},d,S.createElement(mb,null))});Sb.displayName=`Pane`;function Cb(e,t){let n=e.parentNode||e.parentId;if(!n)return!1;let r=t.get(n);return r?r.selected?!0:Cb(r,t):!1}function wb(e,t,n){let r=e;do{if(r?.matches(t))return!0;if(r===n.current)return!1;r=r.parentElement}while(r);return!1}function Tb(e,t,n,r){return Array.from(e.values()).filter(n=>(n.selected||n.id===r)&&(!n.parentNode||n.parentId||!Cb(n,e))&&(n.draggable||t&&n.draggable===void 0)).map(e=>({id:e.id,position:e.position||{x:0,y:0},positionAbsolute:e.positionAbsolute||{x:0,y:0},distance:{x:n.x-(e.positionAbsolute?.x??0),y:n.y-(e.positionAbsolute?.y??0)},delta:{x:0,y:0},extent:e.extent,parentNode:e.parentNode||e.parentId,parentId:e.parentNode||e.parentId,width:e.width,height:e.height,expandParent:e.expandParent}))}function Eb(e,t){return!t||t===`parent`?t:[t[0],[t[1][0]-(e.width||0),t[1][1]-(e.height||0)]]}function Db(e,t,n,r,i=[0,0],a){let o=Eb(e,e.extent||r),s=o,c=e.parentNode||e.parentId;if(e.extent===`parent`&&!e.expandParent)if(c&&e.width&&e.height){let t=n.get(c),{x:r,y:a}=Xv(t,i).positionAbsolute;s=t&&av(r)&&av(a)&&av(t.width)&&av(t.height)?[[r+e.width*i[0],a+e.height*i[1]],[r+t.width-e.width+e.width*i[0],a+t.height-e.height+e.height*i[1]]]:s}else a?.(`005`,R_.error005()),s=o;else if(e.extent&&c&&e.extent!==`parent`){let{x:t,y:r}=Xv(n.get(c),i).positionAbsolute;s=[[e.extent[0][0]+t,e.extent[0][1]+r],[e.extent[1][0]+t,e.extent[1][1]+r]]}let l={x:0,y:0};c&&(l=Xv(n.get(c),i).positionAbsolute);let u=s&&s!==`parent`?J_(t,s):t;return{position:{x:u.x-l.x,y:u.y-l.y},positionAbsolute:u}}function Ob({nodeId:e,dragItems:t,nodeInternals:n}){let r=t.map(e=>({...n.get(e.id),position:e.position,positionAbsolute:e.positionAbsolute}));return[e?r.find(t=>t.id===e):r[0],r]}var kb=(e,t,n,r)=>{let i=t.querySelectorAll(e);if(!i||!i.length)return null;let a=Array.from(i),o=t.getBoundingClientRect(),s={x:o.width*r[0],y:o.height*r[1]};return a.map(e=>{let t=e.getBoundingClientRect();return{id:e.getAttribute(`data-handleid`),position:e.getAttribute(`data-handlepos`),x:(t.left-o.left-s.x)/n,y:(t.top-o.top-s.y)/n,...K_(e)}})};function Ab(e,t,n){return n===void 0?n:r=>{let i=t().nodeInternals.get(e);i&&n(r,{...i})}}function jb({id:e,store:t,unselect:n=!1,nodeRef:r}){let{addSelectedNodes:i,unselectNodesAndEdges:a,multiSelectionActive:o,nodeInternals:s,onError:c}=t.getState(),l=s.get(e);if(!l){c?.(`012`,R_.error012(e));return}t.setState({nodesSelectionActive:!1}),l.selected?(n||l.selected&&o)&&(a({nodes:[l],edges:[]}),requestAnimationFrame(()=>r?.current?.blur())):i([e])}function Mb(){let e=V_();return(0,S.useCallback)(({sourceEvent:t})=>{let{transform:n,snapGrid:r,snapToGrid:i}=e.getState(),a=t.touches?t.touches[0].clientX:t.clientX,o=t.touches?t.touches[0].clientY:t.clientY,s={x:(a-n[0])/n[2],y:(o-n[1])/n[2]};return{xSnapped:i?r[0]*Math.round(s.x/r[0]):s.x,ySnapped:i?r[1]*Math.round(s.y/r[1]):s.y,...s}},[])}function Nb(e){return(t,n,r)=>e?.(t,r)}function Pb({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:i,isSelectable:a,selectNodesOnDrag:o}){let s=V_(),[c,l]=(0,S.useState)(!1),u=(0,S.useRef)([]),d=(0,S.useRef)({x:null,y:null}),f=(0,S.useRef)(0),p=(0,S.useRef)(null),m=(0,S.useRef)({x:0,y:0}),h=(0,S.useRef)(null),g=(0,S.useRef)(!1),_=(0,S.useRef)(!1),v=(0,S.useRef)(!1),y=Mb();return(0,S.useEffect)(()=>{if(e?.current){let c=cm(e.current),b=({x:e,y:t})=>{let{nodeInternals:n,onNodeDrag:r,onSelectionDrag:a,updateNodePositions:o,nodeExtent:c,snapGrid:f,snapToGrid:p,nodeOrigin:m,onError:g}=s.getState();d.current={x:e,y:t};let _=!1,v={x:0,y:0,x2:0,y2:0};if(u.current.length>1&&c&&(v=$_(Zv(u.current,m))),u.current=u.current.map(r=>{let i={x:e-r.distance.x,y:t-r.distance.y};p&&(i.x=f[0]*Math.round(i.x/f[0]),i.y=f[1]*Math.round(i.y/f[1]));let a=[[c[0][0],c[0][1]],[c[1][0],c[1][1]]];u.current.length>1&&c&&!r.extent&&(a[0][0]=r.positionAbsolute.x-v.x+c[0][0],a[1][0]=r.positionAbsolute.x+(r.width??0)-v.x2+c[1][0],a[0][1]=r.positionAbsolute.y-v.y+c[0][1],a[1][1]=r.positionAbsolute.y+(r.height??0)-v.y2+c[1][1]);let o=Db(r,i,n,a,m,g);return _=_||r.position.x!==o.position.x||r.position.y!==o.position.y,r.position=o.position,r.positionAbsolute=o.positionAbsolute,r}),!_)return;o(u.current,!0,!0),l(!0);let y=i?r:Nb(a);if(y&&h.current){let[e,t]=Ob({nodeId:i,dragItems:u.current,nodeInternals:n});y(h.current,e,t)}},x=()=>{if(!p.current)return;let[e,t]=X_(m.current,p.current);if(e!==0||t!==0){let{transform:n,panBy:r}=s.getState();d.current.x=(d.current.x??0)-e/n[2],d.current.y=(d.current.y??0)-t/n[2],r({x:e,y:t})&&b(d.current)}f.current=requestAnimationFrame(x)},S=t=>{let{nodeInternals:n,multiSelectionActive:r,nodesDraggable:c,unselectNodesAndEdges:l,onNodeDragStart:f,onSelectionDragStart:p}=s.getState();_.current=!0;let m=i?f:Nb(p);(!o||!a)&&!r&&i&&(n.get(i)?.selected||l()),i&&a&&o&&jb({id:i,store:s,nodeRef:e});let h=y(t);if(d.current=h,u.current=Tb(n,c,h,i),m&&u.current){let[e,r]=Ob({nodeId:i,dragItems:u.current,nodeInternals:n});m(t.sourceEvent,e,r)}};if(t)c.on(`.drag`,null);else{let t=Cm().on(`start`,e=>{let{domNode:t,nodeDragThreshold:n}=s.getState();n===0&&S(e),v.current=!1,d.current=y(e),p.current=t?.getBoundingClientRect()||null,m.current=fv(e.sourceEvent,p.current)}).on(`drag`,e=>{let t=y(e),{autoPanOnNodeDrag:n,nodeDragThreshold:r}=s.getState();if(e.sourceEvent.type===`touchmove`&&e.sourceEvent.touches.length>1&&(v.current=!0),!v.current){if(!g.current&&_.current&&n&&(g.current=!0,x()),!_.current){let n=t.xSnapped-(d?.current?.x??0),i=t.ySnapped-(d?.current?.y??0);Math.sqrt(n*n+i*i)>r&&S(e)}(d.current.x!==t.xSnapped||d.current.y!==t.ySnapped)&&u.current&&_.current&&(h.current=e.sourceEvent,m.current=fv(e.sourceEvent,p.current),b(t))}}).on(`end`,e=>{if(!(!_.current||v.current)&&(l(!1),g.current=!1,_.current=!1,cancelAnimationFrame(f.current),u.current)){let{updateNodePositions:t,nodeInternals:n,onNodeDragStop:r,onSelectionDragStop:a}=s.getState(),o=i?r:Nb(a);if(t(u.current,!1,!1),o){let[t,r]=Ob({nodeId:i,dragItems:u.current,nodeInternals:n});o(e.sourceEvent,t,r)}}}).filter(t=>{let i=t.target;return!t.button&&(!n||!wb(i,`.${n}`,e))&&(!r||wb(i,r,e))});return c.call(t),()=>{c.on(`.drag`,null)}}}},[e,t,n,r,a,s,i,o,y]),c}function Fb(){let e=V_();return(0,S.useCallback)(t=>{let{nodeInternals:n,nodeExtent:r,updateNodePositions:i,getNodes:a,snapToGrid:o,snapGrid:s,onError:c,nodesDraggable:l}=e.getState(),u=a().filter(e=>e.selected&&(e.draggable||l&&e.draggable===void 0)),d=o?s[0]:5,f=o?s[1]:5,p=t.isShiftPressed?4:1,m=t.x*d*p,h=t.y*f*p;i(u.map(e=>{if(e.positionAbsolute){let t={x:e.positionAbsolute.x+m,y:e.positionAbsolute.y+h};o&&(t.x=s[0]*Math.round(t.x/s[0]),t.y=s[1]*Math.round(t.y/s[1]));let{positionAbsolute:i,position:a}=Db(e,t,n,r,void 0,c);e.position=a,e.positionAbsolute=i}return e}),!0,!1)},[])}var Ib={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Lb=e=>{let t=({id:t,type:n,data:r,xPos:i,yPos:a,xPosOrigin:o,yPosOrigin:s,selected:c,onClick:l,onMouseEnter:u,onMouseMove:d,onMouseLeave:f,onContextMenu:p,onDoubleClick:m,style:h,className:g,isDraggable:_,isSelectable:v,isConnectable:y,isFocusable:b,selectNodesOnDrag:x,sourcePosition:C,targetPosition:w,hidden:T,resizeObserver:E,dragHandle:D,zIndex:O,isParent:k,noDragClassName:A,noPanClassName:j,initialized:ee,disableKeyboardA11y:M,ariaLabel:N,rfId:te,hasHandleBounds:P})=>{let F=V_(),ne=(0,S.useRef)(null),re=(0,S.useRef)(null),ie=(0,S.useRef)(C),I=(0,S.useRef)(w),L=(0,S.useRef)(n),R=v||_||l||u||d||f,ae=Fb(),oe=Ab(t,F.getState,u),se=Ab(t,F.getState,d),ce=Ab(t,F.getState,f),le=Ab(t,F.getState,p),ue=Ab(t,F.getState,m),de=e=>{let{nodeDragThreshold:n}=F.getState();if(v&&(!x||!_||n>0)&&jb({id:t,store:F,nodeRef:ne}),l){let n=F.getState().nodeInternals.get(t);n&&l(e,{...n})}},fe=e=>{uv(e)||M||(sv.includes(e.key)&&v?jb({id:t,store:F,unselect:e.key===`Escape`,nodeRef:ne}):_&&c&&Object.prototype.hasOwnProperty.call(Ib,e.key)&&(F.setState({ariaLiveMessage:`Moved selected node ${e.key.replace(`Arrow`,``).toLowerCase()}. New position, x: ${~~i}, y: ${~~a}`}),ae({x:Ib[e.key].x,y:Ib[e.key].y,isShiftPressed:e.shiftKey})))};(0,S.useEffect)(()=>()=>{re.current&&=(E?.unobserve(re.current),null)},[]),(0,S.useEffect)(()=>{if(ne.current&&!T){let e=ne.current;(!ee||!P||re.current!==e)&&(re.current&&E?.unobserve(re.current),E?.observe(e),re.current=e)}},[T,ee,P]),(0,S.useEffect)(()=>{let e=L.current!==n,r=ie.current!==C,i=I.current!==w;ne.current&&(e||r||i)&&(e&&(L.current=n),r&&(ie.current=C),i&&(I.current=w),F.getState().updateNodeDimensions([{id:t,nodeElement:ne.current,forceUpdate:!0}]))},[t,n,C,w]);let pe=Pb({nodeRef:ne,disabled:T||!_,noDragClassName:A,handleSelector:D,nodeId:t,isSelectable:v,selectNodesOnDrag:x});return T?null:S.createElement(`div`,{className:Hd([`react-flow__node`,`react-flow__node-${n}`,{[j]:_},g,{selected:c,selectable:v,parent:k,dragging:pe}]),ref:ne,style:{zIndex:O,transform:`translate(${o}px,${s}px)`,pointerEvents:R?`all`:`none`,visibility:ee?`visible`:`hidden`,...h},"data-id":t,"data-testid":`rf__node-${t}`,onMouseEnter:oe,onMouseMove:se,onMouseLeave:ce,onContextMenu:le,onClick:de,onDoubleClick:ue,onKeyDown:b?fe:void 0,tabIndex:b?0:void 0,role:b?`button`:void 0,"aria-describedby":M?void 0:`${Fy}-${te}`,"aria-label":N},S.createElement(Vv,{value:t},S.createElement(e,{id:t,data:r,type:n,xPos:i,yPos:a,selected:c,isConnectable:y,sourcePosition:C,targetPosition:w,dragging:pe,dragHandle:D,zIndex:O})))};return t.displayName=`NodeWrapper`,(0,S.memo)(t)},Rb=e=>({...Zv(e.getNodes().filter(e=>e.selected),e.nodeOrigin),transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`,userSelectionActive:e.userSelectionActive});function zb({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){let r=V_(),{width:i,height:a,x:o,y:s,transformString:c,userSelectionActive:l}=B_(Rb,nf),u=Fb(),d=(0,S.useRef)(null);if((0,S.useEffect)(()=>{n||d.current?.focus({preventScroll:!0})},[n]),Pb({nodeRef:d}),l||!i||!a)return null;let f=e?t=>{e(t,r.getState().getNodes().filter(e=>e.selected))}:void 0;return S.createElement(`div`,{className:Hd([`react-flow__nodesselection`,`react-flow__container`,t]),style:{transform:c}},S.createElement(`div`,{ref:d,className:`react-flow__nodesselection-rect`,onContextMenu:f,tabIndex:n?void 0:-1,onKeyDown:n?void 0:e=>{Object.prototype.hasOwnProperty.call(Ib,e.key)&&u({x:Ib[e.key].x,y:Ib[e.key].y,isShiftPressed:e.shiftKey})},style:{width:i,height:a,top:s,left:o}}))}var Bb=(0,S.memo)(zb),Vb=e=>e.nodesSelectionActive,Hb=({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:o,deleteKeyCode:s,onMove:c,onMoveStart:l,onMoveEnd:u,selectionKeyCode:d,selectionOnDrag:f,selectionMode:p,onSelectionStart:m,onSelectionEnd:h,multiSelectionKeyCode:g,panActivationKeyCode:_,zoomActivationKeyCode:v,elementsSelectable:y,zoomOnScroll:b,zoomOnPinch:x,panOnScroll:C,panOnScrollSpeed:w,panOnScrollMode:T,zoomOnDoubleClick:E,panOnDrag:D,defaultViewport:O,translateExtent:k,minZoom:A,maxZoom:j,preventScrolling:ee,onSelectionContextMenu:M,noWheelClassName:N,noPanClassName:te,disableKeyboardA11y:P})=>{let F=B_(Vb),ne=Vy(d),re=Vy(_),ie=re||D,I=re||C,L=ne||f&&ie!==!0;return rb({deleteKeyCode:s,multiSelectionKeyCode:g}),S.createElement(fb,{onMove:c,onMoveStart:l,onMoveEnd:u,onPaneContextMenu:a,elementsSelectable:y,zoomOnScroll:b,zoomOnPinch:x,panOnScroll:I,panOnScrollSpeed:w,panOnScrollMode:T,zoomOnDoubleClick:E,panOnDrag:!ne&&ie,defaultViewport:O,translateExtent:k,minZoom:A,maxZoom:j,zoomActivationKeyCode:v,preventScrolling:ee,noWheelClassName:N,noPanClassName:te},S.createElement(Sb,{onSelectionStart:m,onSelectionEnd:h,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:o,panOnDrag:ie,isSelecting:!!L,selectionMode:p},e,F&&S.createElement(Bb,{onSelectionContextMenu:M,noPanClassName:te,disableKeyboardA11y:P})))};Hb.displayName=`FlowRenderer`;var Ub=(0,S.memo)(Hb);function Wb(e){return B_((0,S.useCallback)(t=>e?Qv(t.nodeInternals,{x:0,y:0,width:t.width,height:t.height},t.transform,!0):t.getNodes(),[e]))}function Gb(e){let t={input:Lb(e.input||by),default:Lb(e.default||vy),output:Lb(e.output||Sy),group:Lb(e.group||Cy)},n=Object.keys(e).filter(e=>![`input`,`default`,`output`,`group`].includes(e)).reduce((t,n)=>(t[n]=Lb(e[n]||vy),t),{});return{...t,...n}}var Kb=({x:e,y:t,width:n,height:r,origin:i})=>!n||!r||i[0]<0||i[1]<0||i[0]>1||i[1]>1?{x:e,y:t}:{x:e-n*i[0],y:t-r*i[1]},qb=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,updateNodeDimensions:e.updateNodeDimensions,onError:e.onError}),Jb=e=>{let{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,updateNodeDimensions:a,onError:o}=B_(qb,nf),s=Wb(e.onlyRenderVisibleElements),c=(0,S.useRef)(),l=(0,S.useMemo)(()=>{if(typeof ResizeObserver>`u`)return null;let e=new ResizeObserver(e=>{a(e.map(e=>({id:e.target.getAttribute(`data-id`),nodeElement:e.target,forceUpdate:!0})))});return c.current=e,e},[]);return(0,S.useEffect)(()=>()=>{c?.current?.disconnect()},[]),S.createElement(`div`,{className:`react-flow__nodes`,style:ab},s.map(a=>{let s=a.type||`default`;e.nodeTypes[s]||(o?.(`003`,R_.error003(s)),s=`default`);let c=e.nodeTypes[s]||e.nodeTypes.default,u=!!(a.draggable||t&&a.draggable===void 0),d=!!(a.selectable||i&&a.selectable===void 0),f=!!(a.connectable||n&&a.connectable===void 0),p=!!(a.focusable||r&&a.focusable===void 0),m=e.nodeExtent?J_(a.positionAbsolute,e.nodeExtent):a.positionAbsolute,h=m?.x??0,g=m?.y??0,_=Kb({x:h,y:g,width:a.width??0,height:a.height??0,origin:e.nodeOrigin});return S.createElement(c,{key:a.id,id:a.id,className:a.className,style:a.style,type:s,data:a.data,sourcePosition:a.sourcePosition||Q.Bottom,targetPosition:a.targetPosition||Q.Top,hidden:a.hidden,xPos:h,yPos:g,xPosOrigin:_.x,yPosOrigin:_.y,selectNodesOnDrag:e.selectNodesOnDrag,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,selected:!!a.selected,isDraggable:u,isSelectable:d,isConnectable:f,isFocusable:p,resizeObserver:l,dragHandle:a.dragHandle,zIndex:a[ov]?.z??0,isParent:!!a[ov]?.isParent,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,initialized:!!a.width&&!!a.height,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,ariaLabel:a.ariaLabel,hasHandleBounds:!!a[ov]?.handleBounds})}))};Jb.displayName=`NodeRenderer`;var Yb=(0,S.memo)(Jb),Xb=(e,t,n)=>n===Q.Left?e-t:n===Q.Right?e+t:e,Zb=(e,t,n)=>n===Q.Top?e-t:n===Q.Bottom?e+t:e,Qb=`react-flow__edgeupdater`,$b=({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:i,onMouseEnter:a,onMouseOut:o,type:s})=>S.createElement(`circle`,{onMouseDown:i,onMouseEnter:a,onMouseOut:o,className:Hd([Qb,`${Qb}-${s}`]),cx:Xb(t,r,e),cy:Zb(n,r,e),r,stroke:`transparent`,fill:`transparent`}),ex=()=>!0,tx=e=>{let t=({id:t,className:n,type:r,data:i,onClick:a,onEdgeDoubleClick:o,selected:s,animated:c,label:l,labelStyle:u,labelShowBg:d,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:m,style:h,source:g,target:_,sourceX:v,sourceY:y,targetX:b,targetY:x,sourcePosition:C,targetPosition:w,elementsSelectable:T,hidden:E,sourceHandleId:D,targetHandleId:O,onContextMenu:k,onMouseEnter:A,onMouseMove:j,onMouseLeave:ee,reconnectRadius:M,onReconnect:N,onReconnectStart:te,onReconnectEnd:P,markerEnd:F,markerStart:ne,rfId:re,ariaLabel:ie,isFocusable:I,isReconnectable:L,pathOptions:R,interactionWidth:ae,disableKeyboardA11y:oe})=>{let se=(0,S.useRef)(null),[ce,le]=(0,S.useState)(!1),[ue,de]=(0,S.useState)(!1),fe=V_(),pe=(0,S.useMemo)(()=>`url('#${Gv(ne,re)}')`,[ne,re]),z=(0,S.useMemo)(()=>`url('#${Gv(F,re)}')`,[F,re]);if(E)return null;let me=e=>{let{edges:n,addSelectedEdges:r,unselectNodesAndEdges:i,multiSelectionActive:o}=fe.getState(),s=n.find(e=>e.id===t);s&&(T&&(fe.setState({nodesSelectionActive:!1}),s.selected&&o?(i({nodes:[],edges:[s]}),se.current?.blur()):r([t])),a&&a(e,s))},B=hv(t,fe.getState,o),he=hv(t,fe.getState,k),ge=hv(t,fe.getState,A),_e=hv(t,fe.getState,j),ve=hv(t,fe.getState,ee),ye=(e,n)=>{if(e.button!==0)return;let{edges:r,isValidConnection:i}=fe.getState(),a=n?_:g,o=(n?O:D)||null,s=n?`target`:`source`,c=i||ex,l=n,u=r.find(e=>e.id===t);de(!0),te?.(e,u,s),dy({event:e,handleId:o,nodeId:a,onConnect:e=>N?.(u,e),isTarget:l,getState:fe.getState,setState:fe.setState,isValidConnection:c,edgeUpdaterType:s,onReconnectEnd:e=>{de(!1),P?.(e,u,s)}})},be=e=>ye(e,!0),xe=e=>ye(e,!1),Se=()=>le(!0),Ce=()=>le(!1),we=!T&&!a;return S.createElement(`g`,{className:Hd([`react-flow__edge`,`react-flow__edge-${r}`,n,{selected:s,animated:c,inactive:we,updating:ce}]),onClick:me,onDoubleClick:B,onContextMenu:he,onMouseEnter:ge,onMouseMove:_e,onMouseLeave:ve,onKeyDown:I?e=>{if(!oe&&sv.includes(e.key)&&T){let{unselectNodesAndEdges:n,addSelectedEdges:r,edges:i}=fe.getState();e.key===`Escape`?(se.current?.blur(),n({edges:[i.find(e=>e.id===t)]})):r([t])}}:void 0,tabIndex:I?0:void 0,role:I?`button`:`img`,"data-testid":`rf__edge-${t}`,"aria-label":ie===null?void 0:ie||`Edge from ${g} to ${_}`,"aria-describedby":I?`${Iy}-${re}`:void 0,ref:se},!ue&&S.createElement(e,{id:t,source:g,target:_,selected:s,animated:c,label:l,labelStyle:u,labelShowBg:d,labelBgStyle:f,labelBgPadding:p,labelBgBorderRadius:m,data:i,style:h,sourceX:v,sourceY:y,targetX:b,targetY:x,sourcePosition:C,targetPosition:w,sourceHandleId:D,targetHandleId:O,markerStart:pe,markerEnd:z,pathOptions:R,interactionWidth:ae}),L&&S.createElement(S.Fragment,null,(L===`source`||L===!0)&&S.createElement($b,{position:C,centerX:v,centerY:y,radius:M,onMouseDown:be,onMouseEnter:Se,onMouseOut:Ce,type:`source`}),(L===`target`||L===!0)&&S.createElement($b,{position:w,centerX:b,centerY:x,radius:M,onMouseDown:xe,onMouseEnter:Se,onMouseOut:Ce,type:`target`})))};return t.displayName=`EdgeWrapper`,(0,S.memo)(t)};function nx(e){let t={default:tx(e.default||zv),straight:tx(e.bezier||Fv),step:tx(e.step||Nv),smoothstep:tx(e.step||Mv),simplebezier:tx(e.simplebezier||Tv)},n=Object.keys(e).filter(e=>![`default`,`bezier`].includes(e)).reduce((t,n)=>(t[n]=tx(e[n]||zv),t),{});return{...t,...n}}function rx(e,t,n=null){let r=(n?.x||0)+t.x,i=(n?.y||0)+t.y,a=n?.width||t.width,o=n?.height||t.height;switch(e){case Q.Top:return{x:r+a/2,y:i};case Q.Right:return{x:r+a,y:i+o/2};case Q.Bottom:return{x:r+a/2,y:i+o};case Q.Left:return{x:r,y:i+o/2}}}function ix(e,t){return e?e.length===1||!t?e[0]:t&&e.find(e=>e.id===t)||null:null}var ax=(e,t,n,r,i,a)=>{let o=rx(n,e,t),s=rx(a,r,i);return{sourceX:o.x,sourceY:o.y,targetX:s.x,targetY:s.y}};function ox({sourcePos:e,targetPos:t,sourceWidth:n,sourceHeight:r,targetWidth:i,targetHeight:a,width:o,height:s,transform:c}){let l={x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x+n,t.x+i),y2:Math.max(e.y+r,t.y+a)};l.x===l.x2&&(l.x2+=1),l.y===l.y2&&(l.y2+=1);let u=$_({x:(0-c[0])/c[2],y:(0-c[1])/c[2],width:o/c[2],height:s/c[2]}),d=Math.max(0,Math.min(u.x2,l.x2)-Math.max(u.x,l.x)),f=Math.max(0,Math.min(u.y2,l.y2)-Math.max(u.y,l.y));return Math.ceil(d*f)>0}function sx(e){let t=e?.[ov]?.handleBounds||null,n=t&&e?.width&&e?.height&&e?.positionAbsolute?.x!==void 0&&e?.positionAbsolute?.y!==void 0;return[{x:e?.positionAbsolute?.x||0,y:e?.positionAbsolute?.y||0,width:e?.width||0,height:e?.height||0},t,!!n]}var cx=[{level:0,isMaxLevel:!0,edges:[]}];function lx(e,t,n=!1){let r=-1,i=e.reduce((e,i)=>{let a=av(i.zIndex),o=a?i.zIndex:0;if(n){let e=t.get(i.target),n=t.get(i.source),r=i.selected||e?.selected||n?.selected,s=Math.max(n?.[ov]?.z||0,e?.[ov]?.z||0,1e3);o=(a?i.zIndex:0)+(r?s:0)}return e[o]?e[o].push(i):e[o]=[i],r=o>r?o:r,e},{}),a=Object.entries(i).map(([e,t])=>{let n=+e;return{edges:t,level:n,isMaxLevel:n===r}});return a.length===0?cx:a}function ux(e,t,n){return lx(B_((0,S.useCallback)(n=>e?n.edges.filter(e=>{let r=t.get(e.source),i=t.get(e.target);return r?.width&&r?.height&&i?.width&&i?.height&&ox({sourcePos:r.positionAbsolute||{x:0,y:0},targetPos:i.positionAbsolute||{x:0,y:0},sourceWidth:r.width,sourceHeight:r.height,targetWidth:i.width,targetHeight:i.height,width:n.width,height:n.height,transform:n.transform})}):n.edges,[e,t])),t,n)}var dx=({color:e=`none`,strokeWidth:t=1})=>S.createElement(`polyline`,{style:{stroke:e,strokeWidth:t},strokeLinecap:`round`,strokeLinejoin:`round`,fill:`none`,points:`-5,-4 0,0 -5,4`}),fx=({color:e=`none`,strokeWidth:t=1})=>S.createElement(`polyline`,{style:{stroke:e,fill:e,strokeWidth:t},strokeLinecap:`round`,strokeLinejoin:`round`,points:`-5,-4 0,0 -5,4 -5,-4`}),px={[Sv.Arrow]:dx,[Sv.ArrowClosed]:fx};function mx(e){let t=V_();return(0,S.useMemo)(()=>Object.prototype.hasOwnProperty.call(px,e)?px[e]:(t.getState().onError?.(`009`,R_.error009(e)),null),[e])}var hx=({id:e,type:t,color:n,width:r=12.5,height:i=12.5,markerUnits:a=`strokeWidth`,strokeWidth:o,orient:s=`auto-start-reverse`})=>{let c=mx(t);return c?S.createElement(`marker`,{className:`react-flow__arrowhead`,id:e,markerWidth:`${r}`,markerHeight:`${i}`,viewBox:`-10 -10 20 20`,markerUnits:a,orient:s,refX:`0`,refY:`0`},S.createElement(c,{color:n,strokeWidth:o})):null},gx=({defaultColor:e,rfId:t})=>n=>{let r=[];return n.edges.reduce((n,i)=>([i.markerStart,i.markerEnd].forEach(i=>{if(i&&typeof i==`object`){let a=Gv(i,t);r.includes(a)||(n.push({id:a,color:i.color||e,...i}),r.push(a))}}),n),[]).sort((e,t)=>e.id.localeCompare(t.id))},_x=({defaultColor:e,rfId:t})=>{let n=B_((0,S.useCallback)(gx({defaultColor:e,rfId:t}),[e,t]),(e,t)=>!(e.length!==t.length||e.some((e,n)=>e.id!==t[n].id)));return S.createElement(`defs`,null,n.map(e=>S.createElement(hx,{id:e.id,key:e.id,type:e.type,color:e.color,width:e.width,height:e.height,markerUnits:e.markerUnits,strokeWidth:e.strokeWidth,orient:e.orient})))};_x.displayName=`MarkerDefinitions`;var vx=(0,S.memo)(_x),yx=e=>({nodesConnectable:e.nodesConnectable,edgesFocusable:e.edgesFocusable,edgesUpdatable:e.edgesUpdatable,elementsSelectable:e.elementsSelectable,width:e.width,height:e.height,connectionMode:e.connectionMode,nodeInternals:e.nodeInternals,onError:e.onError}),bx=({defaultMarkerColor:e,onlyRenderVisibleElements:t,elevateEdgesOnSelect:n,rfId:r,edgeTypes:i,noPanClassName:a,onEdgeContextMenu:o,onEdgeMouseEnter:s,onEdgeMouseMove:c,onEdgeMouseLeave:l,onEdgeClick:u,onEdgeDoubleClick:d,onReconnect:f,onReconnectStart:p,onReconnectEnd:m,reconnectRadius:h,children:g,disableKeyboardA11y:_})=>{let{edgesFocusable:v,edgesUpdatable:y,elementsSelectable:b,width:x,height:C,connectionMode:w,nodeInternals:T,onError:E}=B_(yx,nf),D=ux(t,T,n);return x?S.createElement(S.Fragment,null,D.map(({level:t,edges:n,isMaxLevel:g})=>S.createElement(`svg`,{key:t,style:{zIndex:t},width:x,height:C,className:`react-flow__edges react-flow__container`},g&&S.createElement(vx,{defaultColor:e,rfId:r}),S.createElement(`g`,null,n.map(e=>{let[t,n,g]=sx(T.get(e.source)),[x,C,D]=sx(T.get(e.target));if(!g||!D)return null;let O=e.type||`default`;i[O]||(E?.(`011`,R_.error011(O)),O=`default`);let k=i[O]||i.default,A=w===vv.Strict?C.target:(C.target??[]).concat(C.source??[]),j=ix(n.source,e.sourceHandle),ee=ix(A,e.targetHandle),M=j?.position||Q.Bottom,N=ee?.position||Q.Top,te=!!(e.focusable||v&&e.focusable===void 0),P=e.reconnectable||e.updatable,F=f!==void 0&&(P||y&&P===void 0);if(!j||!ee)return E?.(`008`,R_.error008(j,e)),null;let{sourceX:ne,sourceY:re,targetX:ie,targetY:I}=ax(t,j,M,x,ee,N);return S.createElement(k,{key:e.id,id:e.id,className:Hd([e.className,a]),type:O,data:e.data,selected:!!e.selected,animated:!!e.animated,hidden:!!e.hidden,label:e.label,labelStyle:e.labelStyle,labelShowBg:e.labelShowBg,labelBgStyle:e.labelBgStyle,labelBgPadding:e.labelBgPadding,labelBgBorderRadius:e.labelBgBorderRadius,style:e.style,source:e.source,target:e.target,sourceHandleId:e.sourceHandle,targetHandleId:e.targetHandle,markerEnd:e.markerEnd,markerStart:e.markerStart,sourceX:ne,sourceY:re,targetX:ie,targetY:I,sourcePosition:M,targetPosition:N,elementsSelectable:b,onContextMenu:o,onMouseEnter:s,onMouseMove:c,onMouseLeave:l,onClick:u,onEdgeDoubleClick:d,onReconnect:f,onReconnectStart:p,onReconnectEnd:m,reconnectRadius:h,rfId:r,ariaLabel:e.ariaLabel,isFocusable:te,isReconnectable:F,pathOptions:`pathOptions`in e?e.pathOptions:void 0,interactionWidth:e.interactionWidth,disableKeyboardA11y:_})})))),g):null};bx.displayName=`EdgeRenderer`;var xx=(0,S.memo)(bx),Sx=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function Cx({children:e}){let t=B_(Sx);return S.createElement(`div`,{className:`react-flow__viewport react-flow__container`,style:{transform:t}},e)}function wx(e){let t=tb(),n=(0,S.useRef)(!1);(0,S.useEffect)(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}var Tx={[Q.Left]:Q.Right,[Q.Right]:Q.Left,[Q.Top]:Q.Bottom,[Q.Bottom]:Q.Top},Ex=({nodeId:e,handleType:t,style:n,type:r=xv.Bezier,CustomComponent:i,connectionStatus:a})=>{let{fromNode:o,handleId:s,toX:c,toY:l,connectionMode:u}=B_((0,S.useCallback)(t=>({fromNode:t.nodeInternals.get(e),handleId:t.connectionHandleId,toX:(t.connectionPosition.x-t.transform[0])/t.transform[2],toY:(t.connectionPosition.y-t.transform[1])/t.transform[2],connectionMode:t.connectionMode}),[e]),nf),d=o?.[ov]?.handleBounds,f=d?.[t];if(u===vv.Loose&&(f||=d?.[t===`source`?`target`:`source`]),!o||!f)return null;let p=s?f.find(e=>e.id===s):f[0],m=p?p.x+p.width/2:(o.width??0)/2,h=p?p.y+p.height/2:o.height??0,g=(o.positionAbsolute?.x??0)+m,_=(o.positionAbsolute?.y??0)+h,v=p?.position,y=v?Tx[v]:null;if(!v||!y)return null;if(i)return S.createElement(i,{connectionLineType:r,connectionLineStyle:n,fromNode:o,fromHandle:p,fromX:g,fromY:_,toX:c,toY:l,fromPosition:v,toPosition:y,connectionStatus:a});let b=``,x={sourceX:g,sourceY:_,sourcePosition:v,targetX:c,targetY:l,targetPosition:y};return r===xv.Bezier?[b]=Rv(x):r===xv.Step?[b]=jv({...x,borderRadius:0}):r===xv.SmoothStep?[b]=jv(x):r===xv.SimpleBezier?[b]=wv(x):b=`M${g},${_} ${c},${l}`,S.createElement(`path`,{d:b,fill:`none`,className:`react-flow__connection-path`,style:n})};Ex.displayName=`ConnectionLine`;var Dx=e=>({nodeId:e.connectionNodeId,handleType:e.connectionHandleType,nodesConnectable:e.nodesConnectable,connectionStatus:e.connectionStatus,width:e.width,height:e.height});function Ox({containerStyle:e,style:t,type:n,component:r}){let{nodeId:i,handleType:a,nodesConnectable:o,width:s,height:c,connectionStatus:l}=B_(Dx,nf);return i&&a&&s&&o?S.createElement(`svg`,{style:e,width:s,height:c,className:`react-flow__edges react-flow__connectionline react-flow__container`},S.createElement(`g`,{className:Hd([`react-flow__connection`,l])},S.createElement(Ex,{nodeId:i,handleType:a,style:t,type:n,CustomComponent:r,connectionStatus:l}))):null}function kx(e,t){return(0,S.useRef)(null),V_(),(0,S.useMemo)(()=>t(e),[e])}var Ax=({nodeTypes:e,edgeTypes:t,onMove:n,onMoveStart:r,onMoveEnd:i,onInit:a,onNodeClick:o,onEdgeClick:s,onNodeDoubleClick:c,onEdgeDoubleClick:l,onNodeMouseEnter:u,onNodeMouseMove:d,onNodeMouseLeave:f,onNodeContextMenu:p,onSelectionContextMenu:m,onSelectionStart:h,onSelectionEnd:g,connectionLineType:_,connectionLineStyle:v,connectionLineComponent:y,connectionLineContainerStyle:b,selectionKeyCode:x,selectionOnDrag:C,selectionMode:w,multiSelectionKeyCode:T,panActivationKeyCode:E,zoomActivationKeyCode:D,deleteKeyCode:O,onlyRenderVisibleElements:k,elementsSelectable:A,selectNodesOnDrag:j,defaultViewport:ee,translateExtent:M,minZoom:N,maxZoom:te,preventScrolling:P,defaultMarkerColor:F,zoomOnScroll:ne,zoomOnPinch:re,panOnScroll:ie,panOnScrollSpeed:I,panOnScrollMode:L,zoomOnDoubleClick:R,panOnDrag:ae,onPaneClick:oe,onPaneMouseEnter:se,onPaneMouseMove:ce,onPaneMouseLeave:le,onPaneScroll:ue,onPaneContextMenu:de,onEdgeContextMenu:fe,onEdgeMouseEnter:pe,onEdgeMouseMove:z,onEdgeMouseLeave:me,onReconnect:B,onReconnectStart:he,onReconnectEnd:ge,reconnectRadius:_e,noDragClassName:ve,noWheelClassName:ye,noPanClassName:be,elevateEdgesOnSelect:xe,disableKeyboardA11y:Se,nodeOrigin:Ce,nodeExtent:we,rfId:Te})=>{let Ee=kx(e,Gb),De=kx(t,nx);return wx(a),S.createElement(Ub,{onPaneClick:oe,onPaneMouseEnter:se,onPaneMouseMove:ce,onPaneMouseLeave:le,onPaneContextMenu:de,onPaneScroll:ue,deleteKeyCode:O,selectionKeyCode:x,selectionOnDrag:C,selectionMode:w,onSelectionStart:h,onSelectionEnd:g,multiSelectionKeyCode:T,panActivationKeyCode:E,zoomActivationKeyCode:D,elementsSelectable:A,onMove:n,onMoveStart:r,onMoveEnd:i,zoomOnScroll:ne,zoomOnPinch:re,zoomOnDoubleClick:R,panOnScroll:ie,panOnScrollSpeed:I,panOnScrollMode:L,panOnDrag:ae,defaultViewport:ee,translateExtent:M,minZoom:N,maxZoom:te,onSelectionContextMenu:m,preventScrolling:P,noDragClassName:ve,noWheelClassName:ye,noPanClassName:be,disableKeyboardA11y:Se},S.createElement(Cx,null,S.createElement(xx,{edgeTypes:De,onEdgeClick:s,onEdgeDoubleClick:l,onlyRenderVisibleElements:k,onEdgeContextMenu:fe,onEdgeMouseEnter:pe,onEdgeMouseMove:z,onEdgeMouseLeave:me,onReconnect:B,onReconnectStart:he,onReconnectEnd:ge,reconnectRadius:_e,defaultMarkerColor:F,noPanClassName:be,elevateEdgesOnSelect:!!xe,disableKeyboardA11y:Se,rfId:Te},S.createElement(Ox,{style:v,type:_,component:y,containerStyle:b})),S.createElement(`div`,{className:`react-flow__edgelabel-renderer`}),S.createElement(Yb,{nodeTypes:Ee,onNodeClick:o,onNodeDoubleClick:c,onNodeMouseEnter:u,onNodeMouseMove:d,onNodeMouseLeave:f,onNodeContextMenu:p,selectNodesOnDrag:j,onlyRenderVisibleElements:k,noPanClassName:be,noDragClassName:ve,disableKeyboardA11y:Se,nodeOrigin:Ce,nodeExtent:we,rfId:Te})))};Ax.displayName=`GraphView`;var jx=(0,S.memo)(Ax),Mx=[[-1/0,-1/0],[1/0,1/0]],Nx={rfId:`1`,width:0,height:0,transform:[0,0,1],nodeInternals:new Map,edges:[],onNodesChange:null,onEdgesChange:null,hasDefaultNodes:!1,hasDefaultEdges:!1,d3Zoom:null,d3Selection:null,d3ZoomHandler:void 0,minZoom:.5,maxZoom:2,translateExtent:Mx,nodeExtent:Mx,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionNodeId:null,connectionHandleId:null,connectionHandleType:`source`,connectionPosition:{x:0,y:0},connectionStatus:null,connectionMode:vv.Strict,domNode:null,paneDragging:!1,noPanClassName:`nopan`,nodeOrigin:[0,0],nodeDragThreshold:0,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesUpdatable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,fitViewOnInit:!1,fitViewOnInitDone:!1,fitViewOnInitOptions:void 0,onSelectionChange:[],multiSelectionActive:!1,connectionStartHandle:null,connectionEndHandle:null,connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:``,autoPanOnConnect:!0,autoPanOnNodeDrag:!0,connectionRadius:20,onError:cv,isValidConnection:void 0},Px=()=>tf((e,t)=>({...Nx,setNodes:n=>{let{nodeInternals:r,nodeOrigin:i,elevateNodesOnSelect:a}=t();e({nodeInternals:Ky(n,r,i,a)})},getNodes:()=>Array.from(t().nodeInternals.values()),setEdges:n=>{let{defaultEdgeOptions:r={}}=t();e({edges:n.map(e=>({...r,...e}))})},setDefaultNodesAndEdges:(n,r)=>{let i=n!==void 0,a=r!==void 0;e({nodeInternals:i?Ky(n,new Map,t().nodeOrigin,t().elevateNodesOnSelect):new Map,edges:a?r:[],hasDefaultNodes:i,hasDefaultEdges:a})},updateNodeDimensions:n=>{let{onNodesChange:r,nodeInternals:i,fitViewOnInit:a,fitViewOnInitDone:o,fitViewOnInitOptions:s,domNode:c,nodeOrigin:l}=t(),u=c?.querySelector(`.react-flow__viewport`);if(!u)return;let d=window.getComputedStyle(u),{m22:f}=new window.DOMMatrixReadOnly(d.transform),p=n.reduce((e,t)=>{let n=i.get(t.id);if(n?.hidden)i.set(n.id,{...n,[ov]:{...n[ov],handleBounds:void 0}});else if(n){let r=K_(t.nodeElement);r.width&&r.height&&(n.width!==r.width||n.height!==r.height||t.forceUpdate)&&(i.set(n.id,{...n,[ov]:{...n[ov],handleBounds:{source:kb(`.source`,t.nodeElement,f,l),target:kb(`.target`,t.nodeElement,f,l)}},...r}),e.push({id:n.id,type:`dimensions`,dimensions:r}))}return e},[]);Gy(i,l);let m=o||a&&!o&&qy(t,{initial:!0,...s});e({nodeInternals:new Map(i),fitViewOnInitDone:m}),p?.length>0&&r?.(p)},updateNodePositions:(e,n=!0,r=!1)=>{let{triggerNodeChanges:i}=t();i(e.map(e=>{let t={id:e.id,type:`position`,dragging:r};return n&&(t.positionAbsolute=e.positionAbsolute,t.position=e.position),t}))},triggerNodeChanges:n=>{let{onNodesChange:r,nodeInternals:i,hasDefaultNodes:a,nodeOrigin:o,getNodes:s,elevateNodesOnSelect:c}=t();n?.length&&(a&&e({nodeInternals:Ky(_b(n,s()),i,o,c)}),r?.(n))},addSelectedNodes:n=>{let{multiSelectionActive:r,edges:i,getNodes:a}=t(),o,s=null;r?o=n.map(e=>vb(e,!0)):(o=yb(a(),n),s=yb(i,[])),Xy({changedNodes:o,changedEdges:s,get:t,set:e})},addSelectedEdges:n=>{let{multiSelectionActive:r,edges:i,getNodes:a}=t(),o,s=null;r?o=n.map(e=>vb(e,!0)):(o=yb(i,n),s=yb(a(),[])),Xy({changedNodes:s,changedEdges:o,get:t,set:e})},unselectNodesAndEdges:({nodes:n,edges:r}={})=>{let{edges:i,getNodes:a}=t(),o=n||a(),s=r||i;Xy({changedNodes:o.map(e=>(e.selected=!1,vb(e.id,!1))),changedEdges:s.map(e=>vb(e.id,!1)),get:t,set:e})},setMinZoom:n=>{let{d3Zoom:r,maxZoom:i}=t();r?.scaleExtent([n,i]),e({minZoom:n})},setMaxZoom:n=>{let{d3Zoom:r,minZoom:i}=t();r?.scaleExtent([i,n]),e({maxZoom:n})},setTranslateExtent:n=>{t().d3Zoom?.translateExtent(n),e({translateExtent:n})},resetSelectedElements:()=>{let{edges:n,getNodes:r}=t();Xy({changedNodes:r().filter(e=>e.selected).map(e=>vb(e.id,!1)),changedEdges:n.filter(e=>e.selected).map(e=>vb(e.id,!1)),get:t,set:e})},setNodeExtent:n=>{let{nodeInternals:r}=t();r.forEach(e=>{e.positionAbsolute=J_(e.position,n)}),e({nodeExtent:n,nodeInternals:new Map(r)})},panBy:e=>{let{transform:n,width:r,height:i,d3Zoom:a,d3Selection:o,translateExtent:s}=t();if(!a||!o||!e.x&&!e.y)return!1;let c=w_.translate(n[0]+e.x,n[1]+e.y).scale(n[2]),l=[[0,0],[r,i]],u=a?.constrain()(c,l,s);return a.transform(o,u),n[0]!==u.x||n[1]!==u.y||n[2]!==u.k},cancelConnection:()=>e({connectionNodeId:Nx.connectionNodeId,connectionHandleId:Nx.connectionHandleId,connectionHandleType:Nx.connectionHandleType,connectionStatus:Nx.connectionStatus,connectionStartHandle:Nx.connectionStartHandle,connectionEndHandle:Nx.connectionEndHandle}),reset:()=>e({...Nx})}),Object.is),Fx=({children:e})=>{let t=(0,S.useRef)(null);return t.current||=Px(),S.createElement(L_,{value:t.current},e)};Fx.displayName=`ReactFlowProvider`;var Ix=({children:e})=>(0,S.useContext)(I_)?S.createElement(S.Fragment,null,e):S.createElement(Fx,null,e);Ix.displayName=`ReactFlowWrapper`;var Lx={input:by,default:vy,output:Sy,group:Cy},Rx={default:zv,straight:Fv,step:Nv,smoothstep:Mv,simplebezier:Tv},zx=[0,0],Bx=[15,15],Vx={x:0,y:0,zoom:1},Hx={width:`100%`,height:`100%`,overflow:`hidden`,position:`relative`,zIndex:0},Ux=(0,S.forwardRef)(({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:i,nodeTypes:a=Lx,edgeTypes:o=Rx,onNodeClick:s,onEdgeClick:c,onInit:l,onMove:u,onMoveStart:d,onMoveEnd:f,onConnect:p,onConnectStart:m,onConnectEnd:h,onClickConnectStart:g,onClickConnectEnd:_,onNodeMouseEnter:v,onNodeMouseMove:y,onNodeMouseLeave:b,onNodeContextMenu:x,onNodeDoubleClick:C,onNodeDragStart:w,onNodeDrag:T,onNodeDragStop:E,onNodesDelete:D,onEdgesDelete:O,onSelectionChange:k,onSelectionDragStart:A,onSelectionDrag:j,onSelectionDragStop:ee,onSelectionContextMenu:M,onSelectionStart:N,onSelectionEnd:te,connectionMode:P=vv.Strict,connectionLineType:F=xv.Bezier,connectionLineStyle:ne,connectionLineComponent:re,connectionLineContainerStyle:ie,deleteKeyCode:I=`Backspace`,selectionKeyCode:L=`Shift`,selectionOnDrag:R=!1,selectionMode:ae=bv.Full,panActivationKeyCode:oe=`Space`,multiSelectionKeyCode:se=pv()?`Meta`:`Control`,zoomActivationKeyCode:ce=pv()?`Meta`:`Control`,snapToGrid:le=!1,snapGrid:ue=Bx,onlyRenderVisibleElements:de=!1,selectNodesOnDrag:fe=!0,nodesDraggable:pe,nodesConnectable:z,nodesFocusable:me,nodeOrigin:B=zx,edgesFocusable:he,edgesUpdatable:ge,elementsSelectable:_e,defaultViewport:ve=Vx,minZoom:ye=.5,maxZoom:be=2,translateExtent:xe=Mx,preventScrolling:Se=!0,nodeExtent:Ce,defaultMarkerColor:we=`#b1b1b7`,zoomOnScroll:Te=!0,zoomOnPinch:Ee=!0,panOnScroll:De=!1,panOnScrollSpeed:Oe=.5,panOnScrollMode:ke=yv.Free,zoomOnDoubleClick:Ae=!0,panOnDrag:je=!0,onPaneClick:Me,onPaneMouseEnter:Ne,onPaneMouseMove:Pe,onPaneMouseLeave:Fe,onPaneScroll:Ie,onPaneContextMenu:Le,children:Re,onEdgeContextMenu:ze,onEdgeDoubleClick:Be,onEdgeMouseEnter:Ve,onEdgeMouseMove:He,onEdgeMouseLeave:Ue,onEdgeUpdate:We,onEdgeUpdateStart:Ge,onEdgeUpdateEnd:Ke,onReconnect:qe,onReconnectStart:Je,onReconnectEnd:Ye,reconnectRadius:Xe=10,edgeUpdaterRadius:Ze=10,onNodesChange:Qe,onEdgesChange:$e,noDragClassName:et=`nodrag`,noWheelClassName:tt=`nowheel`,noPanClassName:nt=`nopan`,fitView:rt=!1,fitViewOptions:it,connectOnClick:at=!0,attributionPosition:ot,proOptions:st,defaultEdgeOptions:ct,elevateNodesOnSelect:lt=!0,elevateEdgesOnSelect:ut=!1,disableKeyboardA11y:dt=!1,autoPanOnConnect:ft=!0,autoPanOnNodeDrag:pt=!0,connectionRadius:mt=20,isValidConnection:ht,onError:gt,style:_t,id:vt,nodeDragThreshold:yt,...bt},xt)=>{let St=vt||`1`;return S.createElement(`div`,{...bt,style:{..._t,...Hx},ref:xt,className:Hd([`react-flow`,i]),"data-testid":`rf__wrapper`,id:vt},S.createElement(Ix,null,S.createElement(jx,{onInit:l,onMove:u,onMoveStart:d,onMoveEnd:f,onNodeClick:s,onEdgeClick:c,onNodeMouseEnter:v,onNodeMouseMove:y,onNodeMouseLeave:b,onNodeContextMenu:x,onNodeDoubleClick:C,nodeTypes:a,edgeTypes:o,connectionLineType:F,connectionLineStyle:ne,connectionLineComponent:re,connectionLineContainerStyle:ie,selectionKeyCode:L,selectionOnDrag:R,selectionMode:ae,deleteKeyCode:I,multiSelectionKeyCode:se,panActivationKeyCode:oe,zoomActivationKeyCode:ce,onlyRenderVisibleElements:de,selectNodesOnDrag:fe,defaultViewport:ve,translateExtent:xe,minZoom:ye,maxZoom:be,preventScrolling:Se,zoomOnScroll:Te,zoomOnPinch:Ee,zoomOnDoubleClick:Ae,panOnScroll:De,panOnScrollSpeed:Oe,panOnScrollMode:ke,panOnDrag:je,onPaneClick:Me,onPaneMouseEnter:Ne,onPaneMouseMove:Pe,onPaneMouseLeave:Fe,onPaneScroll:Ie,onPaneContextMenu:Le,onSelectionContextMenu:M,onSelectionStart:N,onSelectionEnd:te,onEdgeContextMenu:ze,onEdgeDoubleClick:Be,onEdgeMouseEnter:Ve,onEdgeMouseMove:He,onEdgeMouseLeave:Ue,onReconnect:qe??We,onReconnectStart:Je??Ge,onReconnectEnd:Ye??Ke,reconnectRadius:Xe??Ze,defaultMarkerColor:we,noDragClassName:et,noWheelClassName:tt,noPanClassName:nt,elevateEdgesOnSelect:ut,rfId:St,disableKeyboardA11y:dt,nodeOrigin:B,nodeExtent:Ce}),S.createElement(My,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:p,onConnectStart:m,onConnectEnd:h,onClickConnectStart:g,onClickConnectEnd:_,nodesDraggable:pe,nodesConnectable:z,nodesFocusable:me,edgesFocusable:he,edgesUpdatable:ge,elementsSelectable:_e,elevateNodesOnSelect:lt,minZoom:ye,maxZoom:be,nodeExtent:Ce,onNodesChange:Qe,onEdgesChange:$e,snapToGrid:le,snapGrid:ue,connectionMode:P,translateExtent:xe,connectOnClick:at,defaultEdgeOptions:ct,fitView:rt,fitViewOptions:it,onNodesDelete:D,onEdgesDelete:O,onNodeDragStart:w,onNodeDrag:T,onNodeDragStop:E,onSelectionDrag:j,onSelectionDragStart:A,onSelectionDragStop:ee,noPanClassName:nt,nodeOrigin:B,rfId:St,autoPanOnConnect:ft,autoPanOnNodeDrag:pt,onError:gt,connectionRadius:mt,isValidConnection:ht,nodeDragThreshold:yt}),S.createElement(ky,{onSelectionChange:k}),Re,S.createElement(W_,{proOptions:st,position:ot}),S.createElement(By,{rfId:St,disableKeyboardA11y:dt})))});Ux.displayName=`ReactFlow`;var Wx=({id:e,x:t,y:n,width:r,height:i,style:a,color:o,strokeColor:s,strokeWidth:c,className:l,borderRadius:u,shapeRendering:d,onClick:f,selected:p})=>{let{background:m,backgroundColor:h}=a||{},g=o||m||h;return S.createElement(`rect`,{className:Hd([`react-flow__minimap-node`,{selected:p},l]),x:t,y:n,rx:u,ry:u,width:r,height:i,fill:g,stroke:s,strokeWidth:c,shapeRendering:d,onClick:f?t=>f(t,e):void 0})};Wx.displayName=`MiniMapNode`;var Gx=(0,S.memo)(Wx),Kx=e=>e.nodeOrigin,qx=e=>e.getNodes().filter(e=>!e.hidden&&e.width&&e.height),Jx=e=>e instanceof Function?e:()=>e;function Yx({nodeStrokeColor:e=`transparent`,nodeColor:t=`#e2e2e2`,nodeClassName:n=``,nodeBorderRadius:r=5,nodeStrokeWidth:i=2,nodeComponent:a=Gx,onClick:o}){let s=B_(qx,nf),c=B_(Kx),l=Jx(t),u=Jx(e),d=Jx(n),f=typeof window>`u`||window.chrome?`crispEdges`:`geometricPrecision`;return S.createElement(S.Fragment,null,s.map(e=>{let{x:t,y:n}=Xv(e,c).positionAbsolute;return S.createElement(a,{key:e.id,x:t,y:n,width:e.width,height:e.height,style:e.style,selected:e.selected,className:d(e),color:l(e),borderRadius:r,strokeColor:u(e),strokeWidth:i,shapeRendering:f,onClick:o,id:e.id})}))}var Xx=(0,S.memo)(Yx),Zx=200,Qx=150,$x=e=>{let t=e.getNodes(),n={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:n,boundingRect:t.length>0?nv(Zv(t,e.nodeOrigin),n):n,rfId:e.rfId}},eS=`react-flow__minimap-desc`;function tS({style:e,className:t,nodeStrokeColor:n=`transparent`,nodeColor:r=`#e2e2e2`,nodeClassName:i=``,nodeBorderRadius:a=5,nodeStrokeWidth:o=2,nodeComponent:s,maskColor:c=`rgb(240, 240, 240, 0.6)`,maskStrokeColor:l=`none`,maskStrokeWidth:u=1,position:d=`bottom-right`,onClick:f,onNodeClick:p,pannable:m=!1,zoomable:h=!1,ariaLabel:g=`React Flow mini map`,inversePan:_=!1,zoomStep:v=10,offsetScale:y=5}){let b=V_(),x=(0,S.useRef)(null),{boundingRect:C,viewBB:w,rfId:T}=B_($x,nf),E=e?.width??Zx,D=e?.height??Qx,O=C.width/E,k=C.height/D,A=Math.max(O,k),j=A*E,ee=A*D,M=y*A,N=C.x-(j-C.width)/2-M,te=C.y-(ee-C.height)/2-M,P=j+M*2,F=ee+M*2,ne=`${eS}-${T}`,re=(0,S.useRef)(0);re.current=A,(0,S.useEffect)(()=>{if(x.current){let e=cm(x.current),t=P_().on(`zoom`,m?e=>{let{transform:t,d3Selection:n,d3Zoom:r,translateExtent:i,width:a,height:o}=b.getState();if(e.sourceEvent.type!==`mousemove`||!n||!r)return;let s=re.current*Math.max(1,t[2])*(_?-1:1),c={x:t[0]-e.sourceEvent.movementX*s,y:t[1]-e.sourceEvent.movementY*s},l=[[0,0],[a,o]],u=w_.translate(c.x,c.y).scale(t[2]),d=r.constrain()(u,l,i);r.transform(n,d)}:null).on(`zoom.wheel`,h?e=>{let{transform:t,d3Selection:n,d3Zoom:r}=b.getState();if(e.sourceEvent.type!==`wheel`||!n||!r)return;let i=-e.sourceEvent.deltaY*(e.sourceEvent.deltaMode===1?.05:e.sourceEvent.deltaMode?1:.002)*v,a=t[2]*2**i;r.scaleTo(n,a)}:null);return e.call(t),()=>{e.on(`zoom`,null)}}},[m,h,_,v]);let ie=f?e=>{let t=um(e);f(e,{x:t[0],y:t[1]})}:void 0,I=p?(e,t)=>{p(e,b.getState().nodeInternals.get(t))}:void 0;return S.createElement(U_,{position:d,style:e,className:Hd([`react-flow__minimap`,t]),"data-testid":`rf__minimap`},S.createElement(`svg`,{width:E,height:D,viewBox:`${N} ${te} ${P} ${F}`,role:`img`,"aria-labelledby":ne,ref:x,onClick:ie},g&&S.createElement(`title`,{id:ne},g),S.createElement(Xx,{onClick:I,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:a,nodeClassName:i,nodeStrokeWidth:o,nodeComponent:s}),S.createElement(`path`,{className:`react-flow__minimap-mask`,d:`M${N-M},${te-M}h${P+M*2}v${F+M*2}h${-P-M*2}z
22
+ M${w.x},${w.y}h${w.width}v${w.height}h${-w.width}z`,fill:c,fillRule:`evenodd`,stroke:l,strokeWidth:u,pointerEvents:`none`})))}tS.displayName=`MiniMap`;var nS=(0,S.memo)(tS);function rS(){return S.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`},S.createElement(`path`,{d:`M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z`}))}function iS(){return S.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 5`},S.createElement(`path`,{d:`M0 0h32v4.2H0z`}))}function aS(){return S.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 30`},S.createElement(`path`,{d:`M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z`}))}function oS(){return S.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 25 32`},S.createElement(`path`,{d:`M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z`}))}function sS(){return S.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 25 32`},S.createElement(`path`,{d:`M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z`}))}var cS=({children:e,className:t,...n})=>S.createElement(`button`,{type:`button`,className:Hd([`react-flow__controls-button`,t]),...n},e);cS.displayName=`ControlButton`;var lS=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom}),uS=({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:i,onZoomIn:a,onZoomOut:o,onFitView:s,onInteractiveChange:c,className:l,children:u,position:d=`bottom-left`})=>{let f=V_(),[p,m]=(0,S.useState)(!1),{isInteractive:h,minZoomReached:g,maxZoomReached:_}=B_(lS,nf),{zoomIn:v,zoomOut:y,fitView:b}=tb();return(0,S.useEffect)(()=>{m(!0)},[]),p?S.createElement(U_,{className:Hd([`react-flow__controls`,l]),position:d,style:e,"data-testid":`rf__controls`},t&&S.createElement(S.Fragment,null,S.createElement(cS,{onClick:()=>{v(),a?.()},className:`react-flow__controls-zoomin`,title:`zoom in`,"aria-label":`zoom in`,disabled:_},S.createElement(rS,null)),S.createElement(cS,{onClick:()=>{y(),o?.()},className:`react-flow__controls-zoomout`,title:`zoom out`,"aria-label":`zoom out`,disabled:g},S.createElement(iS,null))),n&&S.createElement(cS,{className:`react-flow__controls-fitview`,onClick:()=>{b(i),s?.()},title:`fit view`,"aria-label":`fit view`},S.createElement(aS,null)),r&&S.createElement(cS,{className:`react-flow__controls-interactive`,onClick:()=>{f.setState({nodesDraggable:!h,nodesConnectable:!h,elementsSelectable:!h}),c?.(!h)},title:`toggle interactivity`,"aria-label":`toggle interactivity`},h?S.createElement(sS,null):S.createElement(oS,null)),u):null};uS.displayName=`Controls`;var dS=(0,S.memo)(uS),fS;(function(e){e.Lines=`lines`,e.Dots=`dots`,e.Cross=`cross`})(fS||={});function pS({color:e,dimensions:t,lineWidth:n}){return S.createElement(`path`,{stroke:e,strokeWidth:n,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`})}function mS({color:e,radius:t}){return S.createElement(`circle`,{cx:t,cy:t,r:t,fill:e})}var hS={[fS.Dots]:`#91919a`,[fS.Lines]:`#eee`,[fS.Cross]:`#e2e2e2`},gS={[fS.Dots]:1,[fS.Lines]:1,[fS.Cross]:6},_S=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function vS({id:e,variant:t=fS.Dots,gap:n=20,size:r,lineWidth:i=1,offset:a=2,color:o,style:s,className:c}){let l=(0,S.useRef)(null),{transform:u,patternId:d}=B_(_S,nf),f=o||hS[t],p=r||gS[t],m=t===fS.Dots,h=t===fS.Cross,g=Array.isArray(n)?n:[n,n],_=[g[0]*u[2]||1,g[1]*u[2]||1],v=p*u[2],y=h?[v,v]:_,b=m?[v/a,v/a]:[y[0]/a,y[1]/a];return S.createElement(`svg`,{className:Hd([`react-flow__background`,c]),style:{...s,position:`absolute`,width:`100%`,height:`100%`,top:0,left:0},ref:l,"data-testid":`rf__background`},S.createElement(`pattern`,{id:d+e,x:u[0]%_[0],y:u[1]%_[1],width:_[0],height:_[1],patternUnits:`userSpaceOnUse`,patternTransform:`translate(-${b[0]},-${b[1]})`},m?S.createElement(mS,{color:f,radius:v/a}):S.createElement(pS,{dimensions:y,color:f,lineWidth:i})),S.createElement(`rect`,{x:`0`,y:`0`,width:`100%`,height:`100%`,fill:`url(#${d+e})`}))}vS.displayName=`Background`;var yS=(0,S.memo)(vS),bS=l(Vd(),1),xS={"flow.entry":{shape:`rounded_rect`,accent:`success`,fill:`tinted`},"flow.call":{shape:`rounded_rect`,accent:`primary`,fill:`none`},"flow.branch":{shape:`diamond`,accent:`warning`},"flow.loop":{shape:`rounded_rect`,accent:`info`,stroke:`dashed`},"flow.await":{shape:`rounded_rect`,accent:`info`,fill:`tinted`},"flow.throw":{shape:`rect`,accent:`error`,fill:`tinted`},"flow.catch":{shape:`rounded_rect`,accent:`error`,stroke:`dashed`},"flow.return":{shape:`rounded_rect`,accent:`neutral`,fill:`tinted`},"architecture.client":{shape:`rounded_rect`,accent:`neutral`},"architecture.gateway":{shape:`rounded_rect`,accent:`warning`,fill:`tinted`},"architecture.service":{shape:`rounded_rect`,accent:`primary`},"architecture.module":{shape:`rect`,accent:`neutral`},"architecture.datastore":{shape:`cylinder`,accent:`info`},"architecture.queue":{shape:`rect`,accent:`info`,fill:`tinted`},"architecture.external":{shape:`rect`,accent:`warning`,stroke:`dashed`},"protocol.actor":{shape:`rounded_rect`,accent:`primary`},"protocol.group":{shape:`rect`,accent:`neutral`,stroke:`dashed`}},SS={"flow.next":{stroke:`solid`,accent:`neutral`,arrowhead:`standard`},"flow.branch_true":{stroke:`solid`,accent:`success`,arrowhead:`standard`},"flow.branch_false":{stroke:`solid`,accent:`warning`,arrowhead:`standard`},"flow.loop_back":{stroke:`dashed`,accent:`info`,arrowhead:`standard`},"flow.fallthrough":{stroke:`dashed`,accent:`neutral`,arrowhead:`open`},"architecture.call_sync":{stroke:`solid`,accent:`primary`,arrowhead:`standard`},"architecture.call_async":{stroke:`dashed`,accent:`info`,arrowhead:`standard`},"architecture.event":{stroke:`dashed`,accent:`warning`,arrowhead:`open`},"architecture.data_flow":{stroke:`solid`,accent:`info`,arrowhead:`open`},"architecture.depends_on":{stroke:`solid`,accent:`neutral`,arrowhead:`standard`},"protocol.request":{stroke:`solid`,accent:`primary`,arrowhead:`standard`},"protocol.response":{stroke:`dashed`,accent:`primary`,arrowhead:`standard`},"protocol.async_message":{stroke:`dashed`,accent:`info`,arrowhead:`open`},"protocol.return":{stroke:`dashed`,accent:`neutral`,arrowhead:`standard`},"protocol.create":{stroke:`solid`,accent:`success`,arrowhead:`standard`},"protocol.destroy":{stroke:`solid`,accent:`error`,arrowhead:`standard`}},CS={shape:`rounded_rect`,accent:`neutral`},wS={stroke:`solid`,accent:`neutral`,arrowhead:`standard`};function TS({spec:e,lens:t,isActive:n=!1,onClick:r}){let i=`${t}.${e.kind}`,a=xS[i]??CS;xS[i]===void 0&&console.warn(`[DiagramNode] missing style for ${i}; using neutral default`);let o=n&&a.activeAccent!==void 0?a.activeAccent:a.accent;return(0,C.jsx)(`div`,{className:[`diagram-node`,`diagram-node--${a.shape}`,`diagram-node--accent-${o}`,a.fill?`diagram-node--fill-${a.fill}`:void 0,a.stroke?`diagram-node--stroke-${a.stroke}`:void 0,n?`diagram-node--active`:void 0,n&&a.activeStroke?`diagram-node--active-stroke-${a.activeStroke}`:void 0].filter(Boolean).join(` `),"data-shape":a.shape,"data-accent":o,"data-kind":e.kind,"data-lens":t,onClick:r,role:r?`button`:void 0,tabIndex:r?0:void 0,children:(0,C.jsx)(`span`,{className:`diagram-node__label`,children:e.label})})}function ES({data:e}){return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(gy,{type:`target`,position:Q.Top,id:`t`,className:`diagram-node__handle`,isConnectable:!1}),(0,C.jsx)(gy,{type:`target`,position:Q.Left,id:`l`,className:`diagram-node__handle`,isConnectable:!1}),(0,C.jsx)(TS,{spec:e.spec,lens:e.lens,isActive:e.isActive,onClick:()=>e.onNodeClick(e.spec.id)}),(0,C.jsx)(gy,{type:`source`,position:Q.Bottom,id:`b`,className:`diagram-node__handle`,isConnectable:!1}),(0,C.jsx)(gy,{type:`source`,position:Q.Right,id:`r`,className:`diagram-node__handle`,isConnectable:!1})]})}var DS={diagram:ES};function OS(e,t,n){if(e.length===0)return{nodes:e,edges:t};try{let r=new bS.default.graphlib.Graph;r.setGraph({rankdir:n.direction,ranksep:n.ranksep,nodesep:n.nodesep,marginx:24,marginy:24}),r.setDefaultEdgeLabel(()=>({}));for(let t of e)r.setNode(t.id,{width:n.nodeWidth,height:n.nodeHeight});for(let e of t)r.setEdge(e.source,e.target);return bS.default.layout(r),{nodes:e.map(e=>{let t=r.node(e.id);return t===void 0?{...e,position:{x:0,y:0}}:{...e,position:{x:t.x-n.nodeWidth/2,y:t.y-n.nodeHeight/2}}}),edges:t}}catch(n){return console.error(`[GraphRenderer] dagre layout failed; using grid fallback:`,n),{nodes:kS(e),edges:t}}}function kS(e){let t=Math.max(1,Math.ceil(Math.sqrt(e.length)));return e.map((e,n)=>({...e,position:{x:n%t*220,y:Math.floor(n/t)*100}}))}function AS(e,t,n){let r=e.kind===void 0?void 0:`${t}.${e.kind}`,i=r!==void 0&&SS[r]!==void 0?SS[r]:wS;return{style:{strokeDasharray:i.stroke===`dashed`?`6 4`:void 0,stroke:`var(--color-accent-${i.accent}-stroke)`},className:n?`react-flow__edge--active`:void 0,animated:n}}function jS(e){return(0,S.useSyncExternalStore)((0,S.useCallback)(t=>e.subscribe(()=>t()),[e]),()=>e.getCurrentStep(),()=>e.getCurrentStep())}function MS({spec:e,controller:t,onCodePeek:n}){let r=jS(t),i=(0,S.useCallback)(r=>{let i=e.steps.findIndex(e=>e.highlight.nodes.includes(r));if(i>=0){t.scrub(i);let a=e.steps[i].code_focus??e.nodes.find(e=>e.id===r)?.code_anchor??null;a!==null&&n!==void 0&&n(a.file,a.range)}else{console.debug(`[GraphRenderer] click on '${r}' — no step highlights this node; no-op`);let t=e.nodes.find(e=>e.id===r)?.code_anchor;t!==void 0&&n!==void 0&&n(t.file,t.range)}},[e.steps,e.nodes,t,n]),a=(0,S.useMemo)(()=>e.nodes.map(t=>({id:t.id,type:`diagram`,position:{x:0,y:0},data:{spec:t,lens:e.lens,isActive:!1,onNodeClick:i}})),[e.nodes,e.lens,i]),o=(0,S.useMemo)(()=>e.edges.map(t=>{let n=AS(t,e.lens,!1);return{id:t.id,source:t.from,target:t.to,label:t.label,type:`smoothstep`,style:n.style,className:n.className,animated:n.animated,data:{kind:t.kind,lens:e.lens},markerEnd:{type:Sv.ArrowClosed,width:18,height:18,color:n.style?.stroke??`var(--color-text_secondary)`}}}),[e.edges,e.lens]),s=(0,S.useMemo)(()=>e.lens===`architecture`?{direction:`LR`,ranksep:80,nodesep:50,nodeWidth:180,nodeHeight:56}:{direction:`TB`,ranksep:60,nodesep:40,nodeWidth:180,nodeHeight:56},[e.lens]),c=(0,S.useMemo)(()=>OS(a,o,s),[a,o,s]),l=(0,S.useMemo)(()=>new Set(r?.highlight.nodes??[]),[r]),u=(0,S.useMemo)(()=>new Set(r?.highlight.edges??[]),[r]),d=(0,S.useMemo)(()=>c.nodes.map(e=>({...e,data:{...e.data,isActive:l.has(e.id)}})),[c.nodes,l]),f=(0,S.useMemo)(()=>c.edges.map(t=>{let n=u.has(t.id),r=AS({id:t.id,from:t.source,to:t.target,kind:t.data?.kind,label:typeof t.label==`string`?t.label:void 0},e.lens,n);return{...t,style:r.style,className:r.className,animated:r.animated}}),[c.edges,u,e.lens]);return e.nodes.length===0?(0,C.jsx)(`div`,{className:`graph-renderer-empty`,"data-testid":`graph-renderer-empty`,children:`No diagram content. Try a different file or scope.`}):(0,C.jsx)(`div`,{className:`graph-renderer`,"data-testid":`graph-renderer`,"data-lens":e.lens,children:(0,C.jsxs)(Ux,{nodes:d,edges:f,nodeTypes:DS,fitView:!0,proOptions:{hideAttribution:!0},children:[(0,C.jsx)(nS,{}),(0,C.jsx)(dS,{}),(0,C.jsx)(yS,{})]})})}function NS(e){return(0,C.jsx)(Fx,{children:(0,C.jsx)(MS,{...e})})}var PS={flow:`Flow`,architecture:`Architecture`,protocol:`Protocol`},FS={flow:`Step-by-step execution path through the code.`,architecture:`Deployable units (services, modules, components) and how they communicate.`,protocol:`Message exchanges between participants over time (sequence view).`};function IS(e,t){let n=FS[e];return t?`${n}\n\nWhy this fits: ${t}`:n}function LS({currentLens:e,alternatives:t,onSwitch:n}){return t.length===0?null:(0,C.jsxs)(`div`,{className:`lens-switcher`,role:`group`,"aria-label":`Lens selection`,children:[(0,C.jsx)(RS,{tooltip:IS(e),active:!0,children:PS[e]}),t.map(e=>{let t=PS[e.lens],r=IS(e.lens,e.reason);return(0,C.jsx)(RS,{tooltip:r,ariaLabel:`Switch to ${t} lens. ${r}`,onClick:()=>n(e.lens),children:t},e.lens)})]})}function RS({children:e,tooltip:t,active:n,onClick:r,ariaLabel:i}){let a=(0,S.useRef)(null),o=(0,S.useRef)(null),[s,c]=(0,S.useState)(null),[l,u]=(0,S.useState)(`north`);(0,S.useLayoutEffect)(()=>{if(s===null||o.current===null)return;let e=o.current.offsetHeight;u(s.top-e-8-8>=0?`north`:`south`)},[s]);let d=()=>{a.current&&c(a.current.getBoundingClientRect())},f=()=>c(null),p=`lens-switcher__pill`+(n?` lens-switcher__pill--active`:``),m={onPointerEnter:d,onPointerLeave:f,onFocus:d,onBlur:f},h=n?(0,C.jsx)(`span`,{ref:e=>{a.current=e},className:p,"aria-current":`true`,...m,children:e}):(0,C.jsx)(`button`,{ref:e=>{a.current=e},type:`button`,className:p,"aria-label":i,onClick:r,...m,children:e}),g=s?Math.round(l===`north`?s.top:s.bottom):0,_=s?Math.round(s.left+s.width/2):0;return(0,C.jsxs)(C.Fragment,{children:[h,s!==null&&typeof document<`u`&&(0,F_.createPortal)((0,C.jsx)(`div`,{ref:o,role:`tooltip`,className:`lens-switcher__tooltip lens-switcher__tooltip--${l}`,style:{top:g,left:_},children:t}),document.body)]})}function zS({step:e,index:t,total:n}){return e===null?(0,C.jsx)(`div`,{className:`narration-panel narration-panel--empty`,children:(0,C.jsx)(`span`,{className:`narration-panel__text`,children:`Click play to walk through this diagram.`})}):(0,C.jsxs)(`div`,{className:`narration-panel`,children:[(0,C.jsxs)(`div`,{className:`narration-panel__counter`,children:[`Step `,t+1,` / `,n]}),(0,C.jsx)(`div`,{className:`narration-panel__text`,"aria-live":`polite`,"aria-atomic":`true`,children:e.narration},e.id)]})}var BS=180,VS=56,HS=56,US=24,WS=32,GS=32,KS=8,qS=36,JS=24;function YS(e){return(0,S.useSyncExternalStore)((0,S.useCallback)(t=>e.subscribe(()=>t()),[e]),()=>e.getCurrentStep(),()=>e.getCurrentStep())}function XS({spec:e,controller:t,onCodePeek:n}){let r=YS(t),i=(0,S.useMemo)(()=>e.nodes.filter(e=>e.kind===`actor`),[e.nodes]),a=(0,S.useMemo)(()=>{let e=new Map;return i.forEach((t,n)=>e.set(t.id,n)),e},[i]),o=(0,S.useMemo)(()=>{let t=[],n=0;return e.steps.forEach((r,i)=>{for(let o of r.highlight.edges){let r=e.edges.find(e=>e.id===o);r&&(!a.has(r.from)||!a.has(r.to)||(t.push({rowIndex:n,stepIndex:i,edgeId:o,fromActorId:r.from,toActorId:r.to,label:r.label,kind:r.kind}),n+=1))}}),t},[e.steps,e.edges,a]);if(i.length===0)return(0,C.jsx)(`div`,{className:`protocol-diagram__empty`,"data-testid":`protocol-diagram-empty`,children:`No actors in this spec. Protocol diagrams need at least one node with kind = "actor".`});let s=i.length*BS+GS*2,c=US+VS+o.length*HS+WS,l=e=>GS+e*BS+BS/2,u=e=>US+VS+e*HS+HS/2,d=r=>{if(t.scrub(r.stepIndex),n===void 0)return;let i=e.steps[r.stepIndex].code_focus;i!==void 0&&n(i.file,i.range)},f=r?.id??null;return(0,C.jsx)(`div`,{className:`protocol-diagram`,"data-testid":`protocol-diagram`,"data-lens":`protocol`,children:(0,C.jsxs)(`svg`,{className:`protocol-diagram__svg`,viewBox:`0 0 ${s} ${c}`,preserveAspectRatio:`xMidYMin meet`,role:`img`,"aria-label":`Protocol diagram with ${i.length} actors and ${o.length} messages`,children:[(0,C.jsxs)(`defs`,{children:[(0,C.jsx)(`marker`,{id:`protocol-arrow`,viewBox:`0 0 10 10`,refX:`9`,refY:`5`,markerWidth:KS,markerHeight:KS,orient:`auto-start-reverse`,children:(0,C.jsx)(`path`,{d:`M 0 0 L 10 5 L 0 10 z`,fill:`currentColor`})}),(0,C.jsx)(`marker`,{id:`protocol-arrow-open`,viewBox:`0 0 10 10`,refX:`9`,refY:`5`,markerWidth:KS,markerHeight:KS,orient:`auto-start-reverse`,children:(0,C.jsx)(`path`,{d:`M 0 0 L 10 5 L 0 10`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`})})]}),i.map((e,t)=>{let n=l(t);return(0,C.jsx)(`line`,{className:`protocol-diagram__lifeline`,x1:n,y1:US+VS,x2:n,y2:c-WS},`lifeline-${e.id}`)}),i.map((e,t)=>{let n=l(t),r=BS-24,i=VS-16,a=n-r/2,o=US;return(0,C.jsxs)(`g`,{className:`protocol-diagram__header`,children:[(0,C.jsx)(`rect`,{x:a,y:o,width:r,height:i,rx:8,ry:8,className:`protocol-diagram__header-pill`}),(0,C.jsx)(`text`,{x:n,y:o+i/2,textAnchor:`middle`,dominantBaseline:`middle`,className:`protocol-diagram__header-label`,children:e.label})]},`header-${e.id}`)}),o.map(t=>{let n=a.get(t.fromActorId),r=a.get(t.toActorId);if(n===void 0||r===void 0)return null;let i=l(n),o=l(r),s=u(t.rowIndex),c=f===e.steps[t.stepIndex].id,p=t.kind?`protocol.${t.kind}`:void 0,m=p?SS[p]??wS:wS,h=`var(--color-accent-${m.accent}-stroke)`,g=m.stroke===`dashed`?`6 4`:void 0,_=m.arrowhead===`open`?`protocol-arrow-open`:`protocol-arrow`;if(t.fromActorId===t.toActorId){let n=i+1,r=s-JS/2,a=`M ${n} ${r} H ${i+qS} V ${s+JS/2} H ${i+1}`;return(0,C.jsxs)(`g`,{className:`protocol-diagram__message`+(c?` protocol-diagram__message--active`:``),onClick:()=>d(t),"data-step-id":e.steps[t.stepIndex].id,children:[(0,C.jsx)(`rect`,{x:i,y:r-6,width:qS+12,height:JS+12,className:`protocol-diagram__hitbox`}),(0,C.jsx)(`path`,{d:a,fill:`none`,stroke:h,strokeDasharray:g,markerEnd:`url(#${_})`,className:`protocol-diagram__message-line`,style:{color:h}}),t.label&&(0,C.jsx)(`text`,{x:i+qS+16,y:s,textAnchor:`start`,dominantBaseline:`middle`,className:`protocol-diagram__message-label`,children:t.label})]},`msg-${t.rowIndex}`)}let v=i<o,y=v?i+2:i-2,b=v?o-6:o+6,x=(y+b)/2;return(0,C.jsxs)(`g`,{className:`protocol-diagram__message`+(c?` protocol-diagram__message--active`:``),onClick:()=>d(t),"data-step-id":e.steps[t.stepIndex].id,children:[(0,C.jsx)(`rect`,{x:Math.min(y,b)-6,y:s-14,width:Math.abs(b-y)+12,height:28,className:`protocol-diagram__hitbox`}),(0,C.jsx)(`line`,{x1:y,y1:s,x2:b,y2:s,stroke:h,strokeDasharray:g,markerEnd:`url(#${_})`,className:`protocol-diagram__message-line`,style:{color:h}}),t.label&&(0,C.jsx)(`text`,{x,y:s-6,textAnchor:`middle`,className:`protocol-diagram__message-label`,children:t.label})]},`msg-${t.rowIndex}`)})]})})}function ZS(e){switch(e){case`flow`:case`architecture`:return`graph`;case`protocol`:return`timeline`;default:return`generic`}}var QS=2e3,$S={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),now:()=>Date.now()};function eC(e,t){return!Number.isFinite(e)||e<0?0:e>=t?Math.max(0,t-1):Math.trunc(e)}function tC(e,t){return e.phase===t.phase?e.phase===`playing`&&t.phase===`playing`?e.index===t.index&&e.startedAt===t.startedAt:e.phase===`paused`&&t.phase===`paused`?e.index===t.index:!0:!1}var nC=class{steps;msPerStep;scheduler;listeners=new Set;state={phase:`idle`};lastIndex=-1;timerHandle=null;constructor(e,t={}){this.steps=e,this.msPerStep=t.msPerStep??QS,this.scheduler=t.scheduler??$S}getState(){return this.state}getTotal(){return this.steps.length}getCurrentStep(){switch(this.state.phase){case`idle`:return null;case`playing`:case`paused`:return this.steps[this.state.index]??null;case`finished`:return this.lastIndex>=0?this.steps[this.lastIndex]??null:null}}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}play(){if(this.steps.length===0){this.transitionTo({phase:`finished`});return}if(this.state.phase===`finished`||this.state.phase===`playing`)return;let e=this.state.phase===`paused`?this.state.index:0;this.enterPlaying(e)}pause(){this.state.phase===`playing`&&(this.cancelTimer(),this.transitionTo({phase:`paused`,index:this.state.index}))}step(e){if(this.steps.length===0)return;if(e===`next`){if(this.state.phase===`finished`)return;this.cancelTimer();let e=(this.state.phase===`idle`?-1:this.state.phase===`playing`||this.state.phase===`paused`?this.state.index:-1)+1;e>=this.steps.length?this.transitionTo({phase:`finished`}):(this.lastIndex=e,this.transitionTo({phase:`paused`,index:e}));return}if(this.cancelTimer(),this.state.phase===`idle`){this.lastIndex=0,this.transitionTo({phase:`paused`,index:0});return}if(this.state.phase===`finished`){let e=this.lastIndex>=0?this.lastIndex:this.steps.length-1;this.transitionTo({phase:`paused`,index:e});return}let t=this.state.index,n=t>0?t-1:0;this.lastIndex=n,this.transitionTo({phase:`paused`,index:n})}scrub(e){if(this.steps.length===0)return;this.cancelTimer();let t=eC(e,this.steps.length);this.lastIndex=t,this.transitionTo({phase:`paused`,index:t})}reset(){this.cancelTimer(),this.lastIndex=-1,this.transitionTo({phase:`idle`})}enterPlaying(e){this.cancelTimer(),this.lastIndex=e;let t=this.scheduler.now();this.transitionTo({phase:`playing`,index:e,startedAt:t}),this.scheduleAdvance()}scheduleAdvance(){this.timerHandle=this.scheduler.setTimeout(()=>{if(this.timerHandle=null,this.state.phase!==`playing`)return;let e=this.state.index+1;if(e>=this.steps.length){this.lastIndex=this.state.index,this.transitionTo({phase:`finished`});return}this.lastIndex=e,this.transitionTo({phase:`playing`,index:e,startedAt:this.scheduler.now()}),this.scheduleAdvance()},this.msPerStep)}cancelTimer(){this.timerHandle!==null&&(this.scheduler.clearTimeout(this.timerHandle),this.timerHandle=null)}transitionTo(e){tC(this.state,e)||(this.state=e,this.emit())}emit(){let e=Array.from(this.listeners),t=this.getCurrentStep();for(let n of e)try{n(this.state,t)}catch(e){console.error(`StepController: listener threw`,e)}}};function rC(e){let t={};for(let n of e.split(`
23
+ `)){if(n.length===0||n.startsWith(`:`))continue;let e=n.indexOf(`:`);if(e===-1)continue;let r=n.slice(0,e),i=n.slice(e+1).replace(/^ /,``);r===`event`?t.event=i:r===`data`&&(t.data=t.data===void 0?i:`${t.data}\n${i}`)}return t}async function*iC(e){let t=e.fetchImpl??fetch,n=e.endpoint??`/api/diagram`,r=JSON.stringify({scope:e.scope,intent:e.intent?.trim()?e.intent.trim():void 0}),i;try{i=await t(n,{method:`POST`,headers:{"Content-Type":`application/json`},body:r,signal:e.signal})}catch(e){yield oC(e);return}if(!i.ok){yield{type:`error`,error:{type:`network`,message:`HTTP ${i.status}`}};return}if(!i.body){yield{type:`error`,error:{type:`network`,message:`response body unavailable`}};return}let a=i.body.getReader(),o=new TextDecoder,s=``,c=!1;try{for(;;){let{value:e,done:t}=await a.read();if(t){s+=o.decode();let e=s.trim();if(e.length>0){let t=aC(rC(e));t!==null&&((t.type===`complete`||t.type===`error`)&&(c=!0),yield t)}break}s+=o.decode(e,{stream:!0});let n=s.indexOf(`
24
+
25
+ `);for(;n!==-1;){let e=s.slice(0,n);s=s.slice(n+2);let t=aC(rC(e));if(t!==null&&((t.type===`complete`||t.type===`error`)&&(c=!0),yield t,c))return;n=s.indexOf(`
26
+
27
+ `)}}}catch(e){yield oC(e);return}finally{try{a.releaseLock()}catch{}}c||(yield{type:`error`,error:{type:`internal`,message:`stream ended without complete or error event`}})}function aC(e){if(e.event===void 0||e.event!==`partial`&&e.event!==`complete`&&e.event!==`error`&&e.event!==`progress`)return null;if(e.data===void 0)return{type:`error`,error:{type:`parse_error`,message:`SSE event '${e.event}' had no data`}};let t;try{t=JSON.parse(e.data)}catch(t){return{type:`error`,error:{type:`parse_error`,message:`SSE event '${e.event}' had invalid JSON: ${t instanceof Error?t.message:String(t)}`}}}if(e.event===`partial`)return{type:`partial`,spec:t};if(e.event===`complete`)return{type:`complete`,spec:t};if(e.event===`progress`){if(typeof t!=`object`||!t)return null;let e=t;return typeof e.phase==`string`?{type:`progress`,progress:{phase:e.phase,message:typeof e.message==`string`?e.message:void 0,data:e.data&&typeof e.data==`object`&&!Array.isArray(e.data)?e.data:void 0}}:null}if(typeof t!=`object`||!t)return{type:`error`,error:{type:`parse_error`,message:`SSE 'error' event payload was not an object`}};let n=t;return{type:`error`,error:{type:typeof n.type==`string`?n.type:`internal`,message:typeof n.message==`string`?n.message:`unknown error`,details:n.details&&typeof n.details==`object`&&!Array.isArray(n.details)?n.details:void 0}}}function oC(e){return e instanceof Error&&e.name===`AbortError`?{type:`error`,error:{type:`aborted`,message:`cancelled`}}:{type:`error`,error:{type:`network`,message:e instanceof Error?e.message:String(e)}}}var sC=(0,S.createContext)(null);function cC(){let e=(0,S.useContext)(sC);if(e===null)throw Error(`useMainPanelState must be called inside <MainPanelProvider>`);return e}function lC(e,t){let n=e.trim();if(t===null)return n;let r=`Render this as a ${t} diagram.`;return n.length>0?`${n}\n\n${r}`:r}function uC({initialParams:e,children:t,streamingSpecImpl:n=iC}){let[r,i]=(0,S.useState)(null),[a,o]=(0,S.useState)(`idle`),[s,c]=(0,S.useState)(null),[l,u]=(0,S.useState)(e.lensOverride),[d,f]=(0,S.useState)(null),[p,m]=(0,S.useState)([]),[h,g]=(0,S.useState)(null),[_,v]=(0,S.useState)(()=>Date.now()),y=(0,S.useRef)(null),b=(0,S.useRef)(null),x=(0,S.useRef)(null),w=(0,S.useRef)(n);(0,S.useEffect)(()=>{w.current=n},[n]),(0,S.useEffect)(()=>{x.current=d},[d]);let T=(0,S.useCallback)(e=>{x.current?.reset(),x.current=null,f(null),i(null),c(null),m([]),g(Date.now()),v(Date.now()),o(`streaming`);let t=new AbortController;y.current?.abort(),y.current=t,b.current=e;let n=lC(e.intent,e.lensOverride);(async()=>{try{for await(let r of w.current({scope:e.scope,intent:n.length>0?n:void 0,signal:t.signal})){if(y.current!==t)return;if(r.type===`progress`)m(e=>[...e,r.progress]);else if(r.type===`partial`)i(r.spec);else if(r.type===`complete`){i(r.spec);let e=new nC(r.spec.steps);r.spec.steps.length>0&&e.scrub(0),x.current=e,f(e),m([]),g(null),o(`complete`)}else r.error.type===`aborted`?(m([]),g(null),o(`idle`)):(c(r.error),m([]),g(null),o(`error`))}}finally{y.current===t&&(y.current=null)}})()},[]);(0,S.useEffect)(()=>(T({scope:e.scope,intent:e.intent,lensOverride:e.lensOverride}),()=>{y.current?.abort(),y.current=null,x.current?.reset(),x.current=null}),[]),(0,S.useEffect)(()=>{if(h===null)return;v(Date.now());let e=setInterval(()=>v(Date.now()),1e3);return()=>clearInterval(e)},[h]);let E=(0,S.useCallback)(t=>{u(t),T({scope:e.scope,intent:e.intent,lensOverride:t})},[e.scope,e.intent,T]),D=(0,S.useCallback)(()=>{let e=b.current;e!==null&&T(e)},[T]),O=(0,S.useCallback)(()=>{y.current?.abort()},[]),k=h===null?0:_-h,A=(0,S.useMemo)(()=>({scope:e.scope,intent:e.intent,streamState:a,latestSpec:r,streamError:s,lensOverride:l,controller:d,progressLog:p,elapsedMs:k,cancel:O,retry:D,switchLens:E}),[e.scope,e.intent,a,r,s,l,d,p,k,O,D,E]);return(0,C.jsx)(sC.Provider,{value:A,children:t})}var dC={state:{phase:`idle`},currentStep:null,currentIndex:-1,total:0};function fC(e){return e.phase===`playing`||e.phase===`paused`?e.index:-1}function pC(e){let t=(0,S.useRef)(dC),n=(0,S.useCallback)(t=>e===null?()=>{}:e.subscribe(()=>t()),[e]),r=(0,S.useCallback)(()=>{if(e===null)return t.current!==dC&&(t.current=dC),t.current;let n=e.getState(),r=e.getCurrentStep(),i=fC(n),a=e.getTotal(),o=t.current;if(o.state===n&&o.currentStep===r&&o.currentIndex===i&&o.total===a)return o;let s={state:n,currentStep:r,currentIndex:i,total:a};return t.current=s,s},[e]);return(0,S.useSyncExternalStore)(n,r,r)}function mC(e){switch(e.type){case`llm_auth`:return{title:`Claude can't authenticate`,hint:"Run `claude /login` in a terminal, then retry."};case`llm_rate_limit`:return{title:`Rate-limited by Claude`,hint:`Wait a minute and retry.`};case`llm_timeout`:return{title:`Claude took too long`,hint:`Network may be slow. Retry, or narrow the scope.`};case`llm_internal`:return{title:`Claude returned an error`,hint:`Retry. If it persists, the prompt may need attention.`};case`network`:return{title:`Network error`,hint:`Check your internet and retry.`};case`validation`:case`parse_error`:return{title:`Claude returned an invalid diagram`,hint:`Retry — this is usually transient.`};case`scope_too_large`:return{title:`Scope is too large`,hint:`Pick a smaller file or directory and try again.`};case`scope_outside_root`:return{title:`Scope is outside the project root`,hint:`Pick a file or directory under the launched root.`};case`file_resolution`:return{title:`File not found`,hint:`It may have been deleted. Pick another from the tree.`};case`empty_scope`:return{title:`Nothing to diagram`,hint:`The selected scope has no readable files.`};case`forbidden_origin`:return{title:`Request blocked`,hint:`The browser origin isn't allowed. Restart mochi.`};default:return{title:`Something went wrong`,hint:e.message||`Retry, or restart mochi if it persists.`}}}function hC({onCodePeek:e}={}){let{streamState:t,latestSpec:n,streamError:r,controller:i,progressLog:a,elapsedMs:o,retry:s,switchLens:c}=cC();return(0,C.jsxs)(`section`,{className:`main-panel`,"data-testid":`main-panel`,"data-stream-state":t,children:[typeof n?.lens==`string`&&n&&(0,C.jsx)(`div`,{className:`main-panel__lens-bar`,children:(0,C.jsx)(LS,{currentLens:n.lens,alternatives:n.alternative_lenses??[],onSwitch:c})}),r&&(()=>{let{title:e,hint:t}=mC(r);return(0,C.jsxs)(wo,{severity:`error`,children:[(0,C.jsxs)(`span`,{className:`main-panel__error-text`,children:[(0,C.jsxs)(`strong`,{children:[e,`.`]}),` `,t]}),(0,C.jsx)(ho,{variant:`ghost`,size:`sm`,onClick:s,className:`main-panel__retry`,children:`Retry`})]})})(),(0,C.jsx)(vC,{spec:n,controller:i,streamState:t,progressLog:a,elapsedMs:o,onCodePeek:e}),(0,C.jsx)(xC,{controller:i})]})}function gC(e){return e===`flow`||e===`architecture`}function _C(e){return Array.isArray(e.nodes)&&Array.isArray(e.edges)&&Array.isArray(e.steps)}function vC({spec:e,controller:t,streamState:n,progressLog:r,elapsedMs:i,onCodePeek:a}){if(e===null||typeof e.lens!=`string`)return(0,C.jsx)(`div`,{className:`main-panel__renderer main-panel__renderer--loading`,"data-testid":`renderer-loading`,children:n===`streaming`&&r.length>0?(0,C.jsx)(bC,{log:r,elapsedMs:i}):(0,C.jsx)(`span`,{className:`main-panel__progress-text`,children:n===`streaming`?`Generating…`:`No diagram yet.`})});if(n===`complete`&&Array.isArray(e.nodes)&&e.nodes.length===0)return(0,C.jsx)(`div`,{className:`main-panel__renderer main-panel__renderer--placeholder`,"data-testid":`renderer-empty`,children:(0,C.jsx)(`span`,{className:`main-panel__empty-message`,children:`Nothing useful to diagram here. Try a different file, or add an intent like "trace how X works" to focus Claude.`})});let o=ZS(e.lens);return o===`graph`&&gC(e.lens)&&t!==null&&_C(e)?(0,C.jsx)(`div`,{className:`main-panel__renderer`,children:(0,C.jsx)(NS,{spec:e,controller:t,onCodePeek:a})}):o===`timeline`&&e.lens===`protocol`&&t!==null&&_C(e)?(0,C.jsx)(`div`,{className:`main-panel__renderer`,children:(0,C.jsx)(XS,{spec:e,controller:t,onCodePeek:a})}):o===`timeline`?(0,C.jsxs)(`div`,{className:`main-panel__renderer main-panel__renderer--placeholder`,"data-testid":`timeline-placeholder`,children:[`Lens '`,e.lens,`' renderer not yet wired.`]}):(0,C.jsx)(`div`,{className:`main-panel__renderer main-panel__renderer--generic`,children:(0,C.jsx)(Do,{spec:e})})}function yC(e){let t=Math.max(0,Math.floor(e/1e3));return t<60?`${t}s`:`${Math.floor(t/60)}m${t%60}s`}function bC({log:e,elapsedMs:t}){return(0,C.jsxs)(`ul`,{className:`main-panel__progress-list`,role:`status`,"aria-live":`polite`,"data-testid":`progress-list`,children:[(0,C.jsx)(`li`,{className:`main-panel__progress-timer`,"data-testid":`progress-timer`,children:yC(t)}),e.map((t,n)=>{let r=n===e.length-1;return(0,C.jsxs)(`li`,{className:`main-panel__progress-item`,"data-phase":t.phase,"data-current":r?`true`:void 0,children:[r?(0,C.jsx)(`span`,{className:`main-panel__progress-spinner`,"aria-hidden":`true`}):(0,C.jsx)(`span`,{className:`main-panel__progress-glyph`,"aria-hidden":`true`,children:`✓`}),(0,C.jsx)(`span`,{className:`main-panel__progress-text`,children:t.message??t.phase.replace(/_/g,` `)})]},`${t.phase}-${n}`)})]})}function xC({controller:e}){let t=pC(e),n=(0,S.useCallback)(()=>{e!==null&&(t.state.phase===`playing`?e.pause():e.play())},[e,t.state.phase]),r=(0,S.useCallback)(()=>e?.step(`prev`),[e]),i=(0,S.useCallback)(()=>e?.step(`next`),[e]),a=(0,S.useCallback)(()=>e?.reset(),[e]),o=e!==null&&t.total>0,s=t.state.phase===`playing`,c=t.state.phase===`finished`,l=t.total===0?`—`:t.currentIndex>=0?`Step ${t.currentIndex+1} / ${t.total}`:`— / ${t.total}`;return(0,C.jsxs)(`div`,{className:`main-panel__playback`,children:[(0,C.jsxs)(`div`,{className:`main-panel__step-controls`,role:`group`,"aria-label":`Step controls`,children:[(0,C.jsx)(ho,{variant:`ghost`,size:`sm`,onClick:r,disabled:!o||t.currentIndex<=0,"aria-label":`Previous step`,children:`◀ Prev`}),(0,C.jsx)(ho,{variant:`primary`,size:`sm`,onClick:n,disabled:!o||c,"aria-label":s?`Pause`:`Play`,children:s?`⏸ Pause`:`▶ Play`}),(0,C.jsx)(ho,{variant:`ghost`,size:`sm`,onClick:i,disabled:!o||c,"aria-label":`Next step`,children:`Next ▶`}),(0,C.jsx)(ho,{variant:`ghost`,size:`sm`,onClick:a,disabled:!o,"aria-label":`Reset playback`,children:`↺ Reset`}),(0,C.jsx)(`span`,{className:`main-panel__counter`,"aria-live":`polite`,children:l})]}),(0,C.jsx)(zS,{step:t.currentStep,index:t.currentIndex>=0?t.currentIndex:0,total:t.total})]})}function SC({left:e,right:t,initialLeftPx:n=520,minLeftPx:r=280,minRightPx:i=360,storageKey:a,className:o}){let s=(0,S.useRef)(null),[c,l]=(0,S.useState)(()=>{if(a&&typeof window<`u`){let e=window.localStorage.getItem(a);if(e!==null){let t=Number.parseInt(e,10);if(Number.isFinite(t))return t}}return n}),[u,d]=(0,S.useState)(!1);(0,S.useEffect)(()=>{let e=s.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(t=>{let n=t[0]?.contentRect.width??e.clientWidth,a=Math.max(r,n-i);l(e=>Math.min(e,a))});return t.observe(e),()=>t.disconnect()},[r,i]),(0,S.useEffect)(()=>{if(!u)return;let e=e=>{let t=s.current;if(!t)return;let n=t.getBoundingClientRect(),a=e.clientX-n.left,o=Math.max(r,n.width-i);l(Math.max(r,Math.min(a,o)))},t=()=>d(!1);return window.addEventListener(`mousemove`,e),window.addEventListener(`mouseup`,t),()=>{window.removeEventListener(`mousemove`,e),window.removeEventListener(`mouseup`,t)}},[u,r,i]),(0,S.useEffect)(()=>{u||!a||typeof window>`u`||window.localStorage.setItem(a,String(Math.round(c)))},[u,c,a]);let f=(0,S.useCallback)(e=>{e.key===`ArrowLeft`?(e.preventDefault(),l(e=>Math.max(r,e-24))):e.key===`ArrowRight`&&(e.preventDefault(),l(e=>{let t=s.current;if(!t)return e+24;let n=Math.max(r,t.clientWidth-i);return Math.min(n,e+24)}))},[r,i]);return(0,C.jsxs)(`div`,{ref:s,className:[`split-pane`,o].filter(Boolean).join(` `),"data-testid":`split-pane`,children:[(0,C.jsx)(`div`,{className:`split-pane__left`,style:{width:c},children:e}),(0,C.jsx)(`div`,{role:`separator`,"aria-orientation":`vertical`,"aria-label":`Resize panes`,tabIndex:0,className:`split-pane__divider`+(u?` split-pane__divider--dragging`:``),onMouseDown:e=>{e.preventDefault(),d(!0)},onKeyDown:f}),(0,C.jsx)(`div`,{className:`split-pane__right`,children:t})]})}function CC({tabs:e,active:t,onChange:n,onClose:r,className:i}){return(0,C.jsxs)(`div`,{className:[`tabs`,i].filter(Boolean).join(` `),"data-testid":`tabs`,children:[(0,C.jsx)(`div`,{role:`tablist`,className:`tabs__strip`,children:e.map(e=>{let i=e.id===t;return(0,C.jsxs)(`div`,{className:`tabs__tab-wrap`,"data-active":i?`true`:void 0,children:[(0,C.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":i,"data-active":i?`true`:void 0,className:`tabs__tab`,onClick:()=>n(e.id),children:e.label}),e.closable&&r&&(0,C.jsx)(`button`,{type:`button`,className:`tabs__close`,"aria-label":`Close ${e.label}`,onClick:t=>{t.stopPropagation(),r(e.id)},children:`×`})]},e.id)})}),(0,C.jsx)(`div`,{className:`tabs__panels`,children:e.map(e=>{let n=e.id===t;return(0,C.jsx)(`div`,{role:`tabpanel`,"aria-hidden":!n,"data-active":n?`true`:void 0,className:`tabs__panel`,hidden:!n,children:e.content},e.id)})})]})}var wC={"tree-fetch-failed":`Couldn't load file tree. Is the mochi server running?`,"file-fetch-failed":`File not found or unreadable.`,"highlighter-init-failed":`Syntax highlighter failed to load. Showing raw text.`};function TC(){return(0,C.jsx)(xo,{children:(0,C.jsx)(EC,{})})}function EC(){let{scope:e,setScope:t}=E(),[n,r]=(0,S.useState)(null),[i,a]=(0,S.useState)(null),[o,s]=(0,S.useState)(null),[c,l]=(0,S.useState)(null),[u,d]=(0,S.useState)(null),[f,p]=(0,S.useState)(null),{tabs:m,activeTabId:h,setActiveTabId:g,closeTab:_,codePeekRequest:v,requestCodePeek:y}=_o();(0,S.useEffect)(()=>{let e=!1;return fetch(`/api/files`).then(e=>{if(!e.ok)throw Error(`tree fetch ${e.status}`);return e.json()}).then(n=>{if(e)return;let i=Array.isArray(n?.files)?n.files:[];r(i);let a=new URLSearchParams(window.location.search).get(`file`),o=a&&i.includes(a)?a:i[0]??null;o&&t({kind:`file`,path:o})}).catch(t=>{e||(console.error(`mochi: tree fetch failed`,t),l(`tree-fetch-failed`),r([]))}),()=>{e=!0}},[]);let b=(0,S.useRef)(null);(0,S.useEffect)(()=>{e?.kind===`file`&&b.current!==e.path&&(b.current=e.path,a(e.path),d(null),p(null))},[e]),(0,S.useEffect)(()=>{v!==null&&(a(v.file),d(v.range),p({line:v.range[0],key:v.tick}))},[v]),(0,S.useEffect)(()=>{if(!i){s(null);return}let e=new AbortController;fetch(`/api/files?path=${encodeURIComponent(i)}`,{signal:e.signal}).then(e=>{if(!e.ok)throw Error(`file fetch ${e.status}`);return e.json()}).then(e=>{s(e),l(e=>e===`file-fetch-failed`?null:e)}).catch(e=>{e?.name!==`AbortError`&&(console.error(`mochi: file fetch failed`,e),l(`file-fetch-failed`),s(null))});let t=`?file=${encodeURIComponent(i)}`;return window.location.search!==t&&window.history.replaceState(null,``,`${window.location.pathname}${t}`),()=>e.abort()},[i]);let x=(0,C.jsx)(`div`,{className:`pane pane--code`,"data-testid":`code-pane`,children:o?(0,C.jsx)(uo,{content:o.content,language:o.language,filePath:o.path,highlightedLines:u,scrollTarget:f,onError:()=>l(`highlighter-init-failed`)}):(0,C.jsx)(DC,{message:n&&n.length===0?`No files in this project`:`Select a file`})}),w=(0,S.useMemo)(()=>m.map(e=>({id:e.id,label:e.label,closable:!0,content:(0,C.jsx)(uC,{initialParams:e.params,children:(0,C.jsx)(hC,{onCodePeek:y})})})),[m,y]),T=(0,C.jsx)(`div`,{className:`pane pane--diagrams`,"data-testid":`diagram-pane`,children:w.length===0?(0,C.jsx)(DC,{message:`Type an intent above (optional) and click Generate to make a diagram.`}):(0,C.jsx)(CC,{tabs:w,active:h??w[0].id,onChange:g,onClose:_})});return(0,C.jsxs)(`div`,{className:`app-grid`,children:[(0,C.jsx)(`aside`,{className:`sidebar`,children:(0,C.jsx)(D,{files:n})}),(0,C.jsxs)(`main`,{className:`content`,children:[c&&(0,C.jsx)(OC,{error:c}),(0,C.jsx)(So,{}),(0,C.jsx)(SC,{storageKey:`mochi.split.leftPx`,left:x,right:T})]})]})}function DC({message:e}){return(0,C.jsx)(`div`,{className:`empty-state`,children:e})}function OC({error:e}){return(0,C.jsx)(wo,{severity:`error`,children:wC[e]})}var kC=document.getElementById(`root`);if(!kC)throw Error(`mochi: missing #root element in index.html`);(0,x.createRoot)(kC).render((0,C.jsx)(S.StrictMode,{children:(0,C.jsx)(T,{children:(0,C.jsx)(TC,{})})}));export{s as t};