@shareai-lab/kode 2.0.2 → 2.0.3

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 (343) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +649 -25
  3. package/README.zh-CN.md +579 -0
  4. package/cli-acp.js +3 -17
  5. package/cli.js +5 -7
  6. package/dist/chunks/Doctor-M3J7GRTJ.js +12 -0
  7. package/dist/chunks/LogList-ISWZ6DDD.js +121 -0
  8. package/dist/chunks/LogList-ISWZ6DDD.js.map +7 -0
  9. package/dist/chunks/REPL-RQ6LO6S7.js +56 -0
  10. package/dist/chunks/ResumeConversation-6DMVBEGH.js +56 -0
  11. package/dist/chunks/agentLoader-FCRG3TFJ.js +31 -0
  12. package/dist/{agentsValidate-XP3CFN6F.js → chunks/agentsValidate-PEWMYN4Q.js} +97 -69
  13. package/dist/chunks/agentsValidate-PEWMYN4Q.js.map +7 -0
  14. package/dist/{ask-3G5H5KD5.js → chunks/ask-D7SOHJ6Z.js} +36 -44
  15. package/dist/chunks/ask-D7SOHJ6Z.js.map +7 -0
  16. package/dist/chunks/autoUpdater-CNESBOKO.js +19 -0
  17. package/dist/{chunk-EH34V7CY.js → chunks/chunk-2JN5MY67.js} +12 -14
  18. package/dist/chunks/chunk-2JN5MY67.js.map +7 -0
  19. package/dist/chunks/chunk-2QONJ5MG.js +14 -0
  20. package/dist/chunks/chunk-2QONJ5MG.js.map +7 -0
  21. package/dist/chunks/chunk-2WEXPKHH.js +903 -0
  22. package/dist/chunks/chunk-2WEXPKHH.js.map +7 -0
  23. package/dist/{chunk-K2MI4TPB.js → chunks/chunk-3BYE3ME6.js} +717 -792
  24. package/dist/chunks/chunk-3BYE3ME6.js.map +7 -0
  25. package/dist/chunks/chunk-3JDNWX7W.js +1264 -0
  26. package/dist/chunks/chunk-3JDNWX7W.js.map +7 -0
  27. package/dist/chunks/chunk-3OEJVB5A.js +906 -0
  28. package/dist/chunks/chunk-3OEJVB5A.js.map +7 -0
  29. package/dist/chunks/chunk-3TNIOEBO.js +369 -0
  30. package/dist/chunks/chunk-3TNIOEBO.js.map +7 -0
  31. package/dist/chunks/chunk-4A46ZXMJ.js +67 -0
  32. package/dist/chunks/chunk-4A46ZXMJ.js.map +7 -0
  33. package/dist/{chunk-4GAIJGRH.js → chunks/chunk-4ATBQOFO.js} +107 -55
  34. package/dist/chunks/chunk-4ATBQOFO.js.map +7 -0
  35. package/dist/chunks/chunk-4CRUCZR4.js +0 -0
  36. package/dist/{chunk-54DNHKOD.js → chunks/chunk-4EO6SIQY.js} +32 -75
  37. package/dist/chunks/chunk-4EO6SIQY.js.map +7 -0
  38. package/dist/chunks/chunk-53M46S5I.js +64 -0
  39. package/dist/chunks/chunk-53M46S5I.js.map +7 -0
  40. package/dist/{chunk-JC6NCUG5.js → chunks/chunk-54KOYG5C.js} +0 -2
  41. package/dist/{chunk-EZXMVTDU.js → chunks/chunk-6BAS4WY6.js} +29 -45
  42. package/dist/chunks/chunk-6BAS4WY6.js.map +7 -0
  43. package/dist/{chunk-BHGTA6JQ.js → chunks/chunk-6KRRFSDN.js} +4 -6
  44. package/dist/chunks/chunk-6KRRFSDN.js.map +7 -0
  45. package/dist/chunks/chunk-6LJNZK4K.js +39 -0
  46. package/dist/chunks/chunk-6LJNZK4K.js.map +7 -0
  47. package/dist/chunks/chunk-6ZWEOSEI.js +666 -0
  48. package/dist/chunks/chunk-6ZWEOSEI.js.map +7 -0
  49. package/dist/chunks/chunk-77XDJMBP.js +3326 -0
  50. package/dist/chunks/chunk-77XDJMBP.js.map +7 -0
  51. package/dist/chunks/chunk-7RRW4NTB.js +6454 -0
  52. package/dist/chunks/chunk-7RRW4NTB.js.map +7 -0
  53. package/dist/chunks/chunk-7X3TW4JB.js +4520 -0
  54. package/dist/chunks/chunk-7X3TW4JB.js.map +7 -0
  55. package/dist/chunks/chunk-B3MW3YGY.js +1409 -0
  56. package/dist/chunks/chunk-B3MW3YGY.js.map +7 -0
  57. package/dist/chunks/chunk-BBJFHTBC.js +28 -0
  58. package/dist/chunks/chunk-BBJFHTBC.js.map +7 -0
  59. package/dist/chunks/chunk-BHDHXOXB.js +24 -0
  60. package/dist/chunks/chunk-BHDHXOXB.js.map +7 -0
  61. package/dist/{chunk-OZNRLY3E.js → chunks/chunk-BTA7SZ26.js} +152 -223
  62. package/dist/chunks/chunk-BTA7SZ26.js.map +7 -0
  63. package/dist/chunks/chunk-CDGRYGPZ.js +103 -0
  64. package/dist/chunks/chunk-CDGRYGPZ.js.map +7 -0
  65. package/dist/{chunk-S6HRABTA.js → chunks/chunk-CP6E5UG6.js} +1 -4
  66. package/dist/chunks/chunk-CP6E5UG6.js.map +7 -0
  67. package/dist/{chunk-2PMO2FS2.js → chunks/chunk-DQ4JHXMT.js} +462 -424
  68. package/dist/chunks/chunk-DQ4JHXMT.js.map +7 -0
  69. package/dist/chunks/chunk-DXD76CMV.js +208 -0
  70. package/dist/chunks/chunk-DXD76CMV.js.map +7 -0
  71. package/dist/chunks/chunk-GCQCAXJZ.js +0 -0
  72. package/dist/chunks/chunk-GELCZWMB.js +42 -0
  73. package/dist/chunks/chunk-GELCZWMB.js.map +7 -0
  74. package/dist/{chunk-NQLEUHMS.js → chunks/chunk-HJYOH4HC.js} +23 -18
  75. package/dist/chunks/chunk-HJYOH4HC.js.map +7 -0
  76. package/dist/chunks/chunk-HPYNW6TT.js +744 -0
  77. package/dist/chunks/chunk-HPYNW6TT.js.map +7 -0
  78. package/dist/{chunk-2KWKUXLT.js → chunks/chunk-HRJ3ICQK.js} +59 -55
  79. package/dist/chunks/chunk-HRJ3ICQK.js.map +7 -0
  80. package/dist/{chunk-ZQU3TXLC.js → chunks/chunk-IFCIADS3.js} +571 -573
  81. package/dist/chunks/chunk-IFCIADS3.js.map +7 -0
  82. package/dist/chunks/chunk-IN7XZ7BC.js +27 -0
  83. package/dist/chunks/chunk-IN7XZ7BC.js.map +7 -0
  84. package/dist/chunks/chunk-L7P4M4KW.js +193 -0
  85. package/dist/chunks/chunk-L7P4M4KW.js.map +7 -0
  86. package/dist/chunks/chunk-LB6TCPDI.js +0 -0
  87. package/dist/{chunk-3RUXVV4S.js → chunks/chunk-LOCXPQNJ.js} +1 -4
  88. package/dist/{chunk-3RUXVV4S.js.map → chunks/chunk-LOCXPQNJ.js.map} +2 -2
  89. package/dist/{chunk-IE2CG2TV.js → chunks/chunk-LOD5ZHCI.js} +213 -208
  90. package/dist/chunks/chunk-LOD5ZHCI.js.map +7 -0
  91. package/dist/{chunk-S3J2TLV6.js → chunks/chunk-M7P3QNRU.js} +1 -4
  92. package/dist/{chunk-S3J2TLV6.js.map → chunks/chunk-M7P3QNRU.js.map} +2 -2
  93. package/dist/chunks/chunk-PPHLQVL7.js +4234 -0
  94. package/dist/chunks/chunk-PPHLQVL7.js.map +7 -0
  95. package/dist/{chunk-ABLVTESJ.js → chunks/chunk-QAXE37B5.js} +1 -4
  96. package/dist/chunks/chunk-QAXE37B5.js.map +7 -0
  97. package/dist/chunks/chunk-QHQOBUF6.js +60 -0
  98. package/dist/chunks/chunk-QHQOBUF6.js.map +7 -0
  99. package/dist/{chunk-SRZZFAS7.js → chunks/chunk-RPJXO7GG.js} +241 -214
  100. package/dist/chunks/chunk-RPJXO7GG.js.map +7 -0
  101. package/dist/{chunk-NPFOMITO.js → chunks/chunk-SWQV4KSY.js} +1 -4
  102. package/dist/{chunk-NPFOMITO.js.map → chunks/chunk-SWQV4KSY.js.map} +2 -2
  103. package/dist/chunks/chunk-SZLAPULP.js +28 -0
  104. package/dist/chunks/chunk-SZLAPULP.js.map +7 -0
  105. package/dist/{chunk-SDGKPKDK.js → chunks/chunk-T7RB5V5J.js} +23 -25
  106. package/dist/chunks/chunk-T7RB5V5J.js.map +7 -0
  107. package/dist/{chunk-HN4E4UUQ.js → chunks/chunk-TI2CTTMA.js} +25 -17
  108. package/dist/chunks/chunk-TI2CTTMA.js.map +7 -0
  109. package/dist/{chunk-G6I7XROM.js → chunks/chunk-TNGVRTO5.js} +45 -20
  110. package/dist/chunks/chunk-TNGVRTO5.js.map +7 -0
  111. package/dist/chunks/chunk-TNWB3U5Y.js +2077 -0
  112. package/dist/chunks/chunk-TNWB3U5Y.js.map +7 -0
  113. package/dist/chunks/chunk-U2IHWPCU.js +12 -0
  114. package/dist/chunks/chunk-U2IHWPCU.js.map +7 -0
  115. package/dist/{chunk-KAA5BGMQ.js → chunks/chunk-UNOY3VJ2.js} +1 -4
  116. package/dist/{chunk-KAA5BGMQ.js.map → chunks/chunk-UNOY3VJ2.js.map} +2 -2
  117. package/dist/{chunk-3TXNP6HH.js → chunks/chunk-UVDJL6ZZ.js} +97 -58
  118. package/dist/chunks/chunk-UVDJL6ZZ.js.map +7 -0
  119. package/dist/chunks/chunk-VNCW4C2Z.js +13452 -0
  120. package/dist/chunks/chunk-VNCW4C2Z.js.map +7 -0
  121. package/dist/chunks/chunk-W5EGGA44.js +15 -0
  122. package/dist/chunks/chunk-W5EGGA44.js.map +7 -0
  123. package/dist/chunks/chunk-XR2W3MAM.js +1533 -0
  124. package/dist/chunks/chunk-XR2W3MAM.js.map +7 -0
  125. package/dist/{chunk-QYFKRZQC.js → chunks/chunk-YIO5EBMQ.js} +423 -377
  126. package/dist/chunks/chunk-YIO5EBMQ.js.map +7 -0
  127. package/dist/chunks/chunk-ZBVLKZ5V.js +1062 -0
  128. package/dist/chunks/chunk-ZBVLKZ5V.js.map +7 -0
  129. package/dist/{chunk-E6YNABER.js → chunks/chunk-ZCLTZIVP.js} +1 -4
  130. package/dist/chunks/chunk-ZCLTZIVP.js.map +7 -0
  131. package/dist/chunks/client-SILZNM5N.js +42 -0
  132. package/dist/{config-6ZMBCL23.js → chunks/config-25HRTPSP.js} +48 -10
  133. package/dist/chunks/cost-tracker-Z2UZT2J5.js +28 -0
  134. package/dist/{customCommands-DNEJS3ZU.js → chunks/customCommands-TYMYZRG5.js} +11 -8
  135. package/dist/chunks/engine-MRVF6FK6.js +39 -0
  136. package/dist/{env-OFAXZ3XG.js → chunks/env-TJ5NOBEB.js} +7 -5
  137. package/dist/{kodeAgentSessionId-X6XWQW7B.js → chunks/kodeAgentSessionId-VTNISJ2L.js} +2 -4
  138. package/dist/chunks/kodeAgentSessionLoad-YB2RKBGJ.js +15 -0
  139. package/dist/chunks/kodeAgentSessionResume-DZSIVKVA.js +13 -0
  140. package/dist/chunks/kodeAgentStreamJson-X5PLS2S6.js +11 -0
  141. package/dist/{kodeAgentStreamJsonSession-GRWG3SPE.js → chunks/kodeAgentStreamJsonSession-RDXM4XYF.js} +38 -24
  142. package/dist/chunks/kodeAgentStreamJsonSession-RDXM4XYF.js.map +7 -0
  143. package/dist/{chunk-4RTX4AG4.js → chunks/kodeAgentStructuredStdio-SVGDSB4P.js} +14 -9
  144. package/dist/chunks/kodeAgentStructuredStdio-SVGDSB4P.js.map +7 -0
  145. package/dist/{kodeHooks-TDMXFWSO.js → chunks/kodeHooks-RVKYRJHG.js} +11 -9
  146. package/dist/{llm-XVXWYOHK.js → chunks/llm-62N6T5ZT.js} +1734 -1526
  147. package/dist/chunks/llm-62N6T5ZT.js.map +7 -0
  148. package/dist/chunks/llmLazy-ZUSSE3ZA.js +13 -0
  149. package/dist/{mentionProcessor-YD7YXYGF.js → chunks/mentionProcessor-RJW5UPJD.js} +46 -16
  150. package/dist/chunks/mentionProcessor-RJW5UPJD.js.map +7 -0
  151. package/dist/{messages-OFUJSPRV.js → chunks/messages-EEWWLPHN.js} +2 -6
  152. package/dist/chunks/model-5TIEKQPD.js +37 -0
  153. package/dist/{openai-5G5D5Q4B.js → chunks/openai-XXK3YZG4.js} +13 -10
  154. package/dist/{outputStyles-HLDXFQK3.js → chunks/outputStyles-FAJTXN2A.js} +6 -9
  155. package/dist/chunks/permissions-HO7INPWM.js +27 -0
  156. package/dist/{pluginRuntime-FPTKK6NY.js → chunks/pluginRuntime-C7K5ULK2.js} +31 -48
  157. package/dist/chunks/pluginRuntime-C7K5ULK2.js.map +7 -0
  158. package/dist/chunks/pluginValidation-DAM7WRTC.js +20 -0
  159. package/dist/chunks/registry-XYJXMOA5.js +60 -0
  160. package/dist/chunks/responsesStreaming-JNGE2P3D.js +8 -0
  161. package/dist/chunks/runNonTextPrintMode-SVBLCZQX.js +577 -0
  162. package/dist/chunks/runNonTextPrintMode-SVBLCZQX.js.map +7 -0
  163. package/dist/chunks/server-REXXF5IK.js +46 -0
  164. package/dist/{skillMarketplace-PSNKDINM.js → chunks/skillMarketplace-N4HVHNST.js} +8 -6
  165. package/dist/chunks/src-OROQIWP3.js +44 -0
  166. package/dist/chunks/src-QXLGGMUW.js +1647 -0
  167. package/dist/chunks/src-QXLGGMUW.js.map +7 -0
  168. package/dist/{cli-SRV2INSL.js → chunks/src-SSDT6MVP.js} +2659 -3384
  169. package/dist/chunks/src-SSDT6MVP.js.map +7 -0
  170. package/dist/chunks/theme-YBJUIMWK.js +10 -0
  171. package/dist/{toolPermissionContext-65L65VEZ.js → chunks/toolPermissionContext-MOCTRR7N.js} +2 -4
  172. package/dist/chunks/toolPermissionSettings-EV2EJAXL.js +18 -0
  173. package/dist/chunks/toolPermissionSettings-EV2EJAXL.js.map +7 -0
  174. package/dist/chunks/uuid-6577SO6X.js +7 -0
  175. package/dist/chunks/uuid-6577SO6X.js.map +7 -0
  176. package/dist/chunks/webOnlyMode-ALXX7UQY.js +66 -0
  177. package/dist/chunks/webOnlyMode-ALXX7UQY.js.map +7 -0
  178. package/dist/entrypoints/cli.js +10 -0
  179. package/dist/entrypoints/cli.js.map +7 -0
  180. package/dist/entrypoints/daemon.js +10 -0
  181. package/dist/entrypoints/daemon.js.map +7 -0
  182. package/dist/entrypoints/mcp.js +71 -0
  183. package/dist/entrypoints/mcp.js.map +7 -0
  184. package/dist/index.js +6 -7
  185. package/dist/index.js.map +3 -3
  186. package/dist/sdk/client.cjs +391 -0
  187. package/dist/sdk/client.cjs.map +7 -0
  188. package/dist/sdk/client.js +364 -0
  189. package/dist/sdk/client.js.map +7 -0
  190. package/dist/sdk/core.cjs +19932 -0
  191. package/dist/sdk/core.cjs.map +7 -0
  192. package/dist/sdk/core.js +19893 -0
  193. package/dist/sdk/core.js.map +7 -0
  194. package/dist/sdk/daemon-client.cjs +257 -0
  195. package/dist/sdk/daemon-client.cjs.map +7 -0
  196. package/dist/sdk/daemon-client.js +221 -0
  197. package/dist/sdk/daemon-client.js.map +7 -0
  198. package/dist/sdk/protocol.cjs +170 -0
  199. package/dist/sdk/protocol.cjs.map +7 -0
  200. package/dist/sdk/protocol.js +140 -0
  201. package/dist/sdk/protocol.js.map +7 -0
  202. package/dist/sdk/runtime-node.cjs +236 -0
  203. package/dist/sdk/runtime-node.cjs.map +7 -0
  204. package/dist/sdk/runtime-node.js +222 -0
  205. package/dist/sdk/runtime-node.js.map +7 -0
  206. package/dist/sdk/runtime.cjs +17 -0
  207. package/dist/sdk/runtime.cjs.map +7 -0
  208. package/dist/sdk/runtime.js +0 -0
  209. package/dist/sdk/runtime.js.map +7 -0
  210. package/dist/sdk/tools.cjs +30300 -0
  211. package/dist/sdk/tools.cjs.map +7 -0
  212. package/dist/sdk/tools.js +30282 -0
  213. package/dist/sdk/tools.js.map +7 -0
  214. package/dist/webui/assets/index-5hlfByVS.css +1 -0
  215. package/dist/webui/assets/index-BR9lm1lA.js +82 -0
  216. package/dist/webui/index.html +28 -0
  217. package/package.json +93 -22
  218. package/scripts/binary-utils.cjs +12 -4
  219. package/scripts/cli-acp-wrapper.cjs +3 -17
  220. package/scripts/cli-wrapper.cjs +5 -7
  221. package/scripts/postinstall.js +8 -4
  222. package/dist/REPL-GIU4ZIXM.js +0 -42
  223. package/dist/acp-H3VJ77YG.js +0 -1357
  224. package/dist/acp-H3VJ77YG.js.map +0 -7
  225. package/dist/agentsValidate-XP3CFN6F.js.map +0 -7
  226. package/dist/ask-3G5H5KD5.js.map +0 -7
  227. package/dist/autoUpdater-DNRMJWFQ.js +0 -17
  228. package/dist/chunk-2KWKUXLT.js.map +0 -7
  229. package/dist/chunk-2PMO2FS2.js.map +0 -7
  230. package/dist/chunk-3TXNP6HH.js.map +0 -7
  231. package/dist/chunk-4GAIJGRH.js.map +0 -7
  232. package/dist/chunk-4RTX4AG4.js.map +0 -7
  233. package/dist/chunk-54DNHKOD.js.map +0 -7
  234. package/dist/chunk-67PY5IX6.js +0 -34
  235. package/dist/chunk-67PY5IX6.js.map +0 -7
  236. package/dist/chunk-6DRDLOLP.js +0 -2613
  237. package/dist/chunk-6DRDLOLP.js.map +0 -7
  238. package/dist/chunk-7CQVZNQV.js +0 -1609
  239. package/dist/chunk-7CQVZNQV.js.map +0 -7
  240. package/dist/chunk-ABLVTESJ.js.map +0 -7
  241. package/dist/chunk-AIMIPK4B.js +0 -835
  242. package/dist/chunk-AIMIPK4B.js.map +0 -7
  243. package/dist/chunk-BHGTA6JQ.js.map +0 -7
  244. package/dist/chunk-CIG63V4E.js +0 -72
  245. package/dist/chunk-CIG63V4E.js.map +0 -7
  246. package/dist/chunk-E6YNABER.js.map +0 -7
  247. package/dist/chunk-EH34V7CY.js.map +0 -7
  248. package/dist/chunk-EZXMVTDU.js.map +0 -7
  249. package/dist/chunk-FH5CHM6L.js +0 -148
  250. package/dist/chunk-FH5CHM6L.js.map +0 -7
  251. package/dist/chunk-G6I7XROM.js.map +0 -7
  252. package/dist/chunk-HN4E4UUQ.js.map +0 -7
  253. package/dist/chunk-HSPVVDIW.js +0 -30198
  254. package/dist/chunk-HSPVVDIW.js.map +0 -7
  255. package/dist/chunk-IE2CG2TV.js.map +0 -7
  256. package/dist/chunk-K2MI4TPB.js.map +0 -7
  257. package/dist/chunk-MN77D2F7.js +0 -2931
  258. package/dist/chunk-MN77D2F7.js.map +0 -7
  259. package/dist/chunk-NQLEUHMS.js.map +0 -7
  260. package/dist/chunk-OIFQB3S4.js +0 -515
  261. package/dist/chunk-OIFQB3S4.js.map +0 -7
  262. package/dist/chunk-OWTG2W3A.js +0 -164
  263. package/dist/chunk-OWTG2W3A.js.map +0 -7
  264. package/dist/chunk-OZNRLY3E.js.map +0 -7
  265. package/dist/chunk-QYFKRZQC.js.map +0 -7
  266. package/dist/chunk-S6HRABTA.js.map +0 -7
  267. package/dist/chunk-SDGKPKDK.js.map +0 -7
  268. package/dist/chunk-SRZZFAS7.js.map +0 -7
  269. package/dist/chunk-UKHTVRJM.js +0 -47
  270. package/dist/chunk-UKHTVRJM.js.map +0 -7
  271. package/dist/chunk-UYXEDKOZ.js +0 -24
  272. package/dist/chunk-UYXEDKOZ.js.map +0 -7
  273. package/dist/chunk-VBXVYQYY.js +0 -145
  274. package/dist/chunk-VBXVYQYY.js.map +0 -7
  275. package/dist/chunk-WVHORZQ5.js +0 -17
  276. package/dist/chunk-WVHORZQ5.js.map +0 -7
  277. package/dist/chunk-WWUWDNWW.js +0 -49
  278. package/dist/chunk-WWUWDNWW.js.map +0 -7
  279. package/dist/chunk-Z33T5YN5.js +0 -654
  280. package/dist/chunk-Z33T5YN5.js.map +0 -7
  281. package/dist/chunk-ZQU3TXLC.js.map +0 -7
  282. package/dist/cli-SRV2INSL.js.map +0 -7
  283. package/dist/commands-TWH6PGVG.js +0 -46
  284. package/dist/context-JQIOOI4W.js +0 -30
  285. package/dist/costTracker-6SL26FDB.js +0 -19
  286. package/dist/kodeAgentSessionLoad-6N27AC5K.js +0 -18
  287. package/dist/kodeAgentSessionResume-HUSAEO24.js +0 -16
  288. package/dist/kodeAgentStreamJson-NXFN7TXH.js +0 -13
  289. package/dist/kodeAgentStreamJsonSession-GRWG3SPE.js.map +0 -7
  290. package/dist/kodeAgentStructuredStdio-HGWJT7CU.js +0 -10
  291. package/dist/llm-XVXWYOHK.js.map +0 -7
  292. package/dist/llmLazy-7TD5N7XP.js +0 -15
  293. package/dist/loader-AUXIJTY6.js +0 -28
  294. package/dist/mcp-BXJ3K7NZ.js +0 -49
  295. package/dist/mentionProcessor-YD7YXYGF.js.map +0 -7
  296. package/dist/model-KPYCXWBK.js +0 -30
  297. package/dist/pluginRuntime-FPTKK6NY.js.map +0 -7
  298. package/dist/pluginValidation-DSFXZ4GF.js +0 -17
  299. package/dist/prompts-LWLAJRS2.js +0 -48
  300. package/dist/query-HVPWL27C.js +0 -50
  301. package/dist/responsesStreaming-AW344PQO.js +0 -10
  302. package/dist/ripgrep-YOPCY2GO.js +0 -17
  303. package/dist/state-KNRWP3FO.js +0 -16
  304. package/dist/theme-7S2QN2FO.js +0 -14
  305. package/dist/toolPermissionSettings-GPOBH4IV.js +0 -18
  306. package/dist/tools-FZU2FZBD.js +0 -47
  307. package/dist/userInput-VHNBN2MW.js +0 -311
  308. package/dist/userInput-VHNBN2MW.js.map +0 -7
  309. package/dist/uuid-QN2CNKKN.js +0 -9
  310. /package/dist/{REPL-GIU4ZIXM.js.map → chunks/Doctor-M3J7GRTJ.js.map} +0 -0
  311. /package/dist/{autoUpdater-DNRMJWFQ.js.map → chunks/REPL-RQ6LO6S7.js.map} +0 -0
  312. /package/dist/{chunk-JC6NCUG5.js.map → chunks/ResumeConversation-6DMVBEGH.js.map} +0 -0
  313. /package/dist/{commands-TWH6PGVG.js.map → chunks/agentLoader-FCRG3TFJ.js.map} +0 -0
  314. /package/dist/{config-6ZMBCL23.js.map → chunks/autoUpdater-CNESBOKO.js.map} +0 -0
  315. /package/dist/{context-JQIOOI4W.js.map → chunks/chunk-4CRUCZR4.js.map} +0 -0
  316. /package/dist/{costTracker-6SL26FDB.js.map → chunks/chunk-54KOYG5C.js.map} +0 -0
  317. /package/dist/{customCommands-DNEJS3ZU.js.map → chunks/chunk-GCQCAXJZ.js.map} +0 -0
  318. /package/dist/{env-OFAXZ3XG.js.map → chunks/chunk-LB6TCPDI.js.map} +0 -0
  319. /package/dist/{kodeAgentSessionId-X6XWQW7B.js.map → chunks/client-SILZNM5N.js.map} +0 -0
  320. /package/dist/{kodeAgentSessionLoad-6N27AC5K.js.map → chunks/config-25HRTPSP.js.map} +0 -0
  321. /package/dist/{kodeAgentSessionResume-HUSAEO24.js.map → chunks/cost-tracker-Z2UZT2J5.js.map} +0 -0
  322. /package/dist/{kodeAgentStreamJson-NXFN7TXH.js.map → chunks/customCommands-TYMYZRG5.js.map} +0 -0
  323. /package/dist/{kodeAgentStructuredStdio-HGWJT7CU.js.map → chunks/engine-MRVF6FK6.js.map} +0 -0
  324. /package/dist/{kodeHooks-TDMXFWSO.js.map → chunks/env-TJ5NOBEB.js.map} +0 -0
  325. /package/dist/{llmLazy-7TD5N7XP.js.map → chunks/kodeAgentSessionId-VTNISJ2L.js.map} +0 -0
  326. /package/dist/{loader-AUXIJTY6.js.map → chunks/kodeAgentSessionLoad-YB2RKBGJ.js.map} +0 -0
  327. /package/dist/{mcp-BXJ3K7NZ.js.map → chunks/kodeAgentSessionResume-DZSIVKVA.js.map} +0 -0
  328. /package/dist/{messages-OFUJSPRV.js.map → chunks/kodeAgentStreamJson-X5PLS2S6.js.map} +0 -0
  329. /package/dist/{model-KPYCXWBK.js.map → chunks/kodeHooks-RVKYRJHG.js.map} +0 -0
  330. /package/dist/{openai-5G5D5Q4B.js.map → chunks/llmLazy-ZUSSE3ZA.js.map} +0 -0
  331. /package/dist/{outputStyles-HLDXFQK3.js.map → chunks/messages-EEWWLPHN.js.map} +0 -0
  332. /package/dist/{pluginValidation-DSFXZ4GF.js.map → chunks/model-5TIEKQPD.js.map} +0 -0
  333. /package/dist/{prompts-LWLAJRS2.js.map → chunks/openai-XXK3YZG4.js.map} +0 -0
  334. /package/dist/{query-HVPWL27C.js.map → chunks/outputStyles-FAJTXN2A.js.map} +0 -0
  335. /package/dist/{responsesStreaming-AW344PQO.js.map → chunks/permissions-HO7INPWM.js.map} +0 -0
  336. /package/dist/{ripgrep-YOPCY2GO.js.map → chunks/pluginValidation-DAM7WRTC.js.map} +0 -0
  337. /package/dist/{skillMarketplace-PSNKDINM.js.map → chunks/registry-XYJXMOA5.js.map} +0 -0
  338. /package/dist/{state-KNRWP3FO.js.map → chunks/responsesStreaming-JNGE2P3D.js.map} +0 -0
  339. /package/dist/{theme-7S2QN2FO.js.map → chunks/server-REXXF5IK.js.map} +0 -0
  340. /package/dist/{toolPermissionContext-65L65VEZ.js.map → chunks/skillMarketplace-N4HVHNST.js.map} +0 -0
  341. /package/dist/{toolPermissionSettings-GPOBH4IV.js.map → chunks/src-OROQIWP3.js.map} +0 -0
  342. /package/dist/{tools-FZU2FZBD.js.map → chunks/theme-YBJUIMWK.js.map} +0 -0
  343. /package/dist/{uuid-QN2CNKKN.js.map → chunks/toolPermissionContext-MOCTRR7N.js.map} +0 -0
@@ -0,0 +1,82 @@
1
+ function Nb(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const l in o)if(l!=="default"&&!(l in e)){const s=Object.getOwnPropertyDescriptor(o,l);s&&Object.defineProperty(e,l,s.get?s:{enumerable:!0,get:()=>o[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))o(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&o(u)}).observe(document,{childList:!0,subtree:!0});function n(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function o(l){if(l.ep)return;l.ep=!0;const s=n(l);fetch(l.href,s)}})();function yl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vc={exports:{}},Yo={},Wc={exports:{}},Fe={};var eg;function Ab(){if(eg)return Fe;eg=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.iterator;function x(M){return M===null||typeof M!="object"?null:(M=g&&M[g]||M["@@iterator"],typeof M=="function"?M:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function E(M,H,T){this.props=M,this.context=H,this.refs=C,this.updater=T||v}E.prototype.isReactComponent={},E.prototype.setState=function(M,H){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,H,"setState")},E.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function R(){}R.prototype=E.prototype;function A(M,H,T){this.props=M,this.context=H,this.refs=C,this.updater=T||v}var N=A.prototype=new R;N.constructor=A,S(N,E.prototype),N.isPureReactComponent=!0;var F=Array.isArray,B=Object.prototype.hasOwnProperty,I={current:null},W={key:!0,ref:!0,__self:!0,__source:!0};function V(M,H,T){var de,Re={},xe=null,ce=null;if(H!=null)for(de in H.ref!==void 0&&(ce=H.ref),H.key!==void 0&&(xe=""+H.key),H)B.call(H,de)&&!W.hasOwnProperty(de)&&(Re[de]=H[de]);var Pe=arguments.length-2;if(Pe===1)Re.children=T;else if(1<Pe){for(var Le=Array(Pe),Ke=0;Ke<Pe;Ke++)Le[Ke]=arguments[Ke+2];Re.children=Le}if(M&&M.defaultProps)for(de in Pe=M.defaultProps,Pe)Re[de]===void 0&&(Re[de]=Pe[de]);return{$$typeof:e,type:M,key:xe,ref:ce,props:Re,_owner:I.current}}function Y(M,H){return{$$typeof:e,type:M.type,key:H,ref:M.ref,props:M.props,_owner:M._owner}}function D(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function q(M){var H={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(T){return H[T]})}var J=/\/+/g;function ue(M,H){return typeof M=="object"&&M!==null&&M.key!=null?q(""+M.key):H.toString(36)}function te(M,H,T,de,Re){var xe=typeof M;(xe==="undefined"||xe==="boolean")&&(M=null);var ce=!1;if(M===null)ce=!0;else switch(xe){case"string":case"number":ce=!0;break;case"object":switch(M.$$typeof){case e:case t:ce=!0}}if(ce)return ce=M,Re=Re(ce),M=de===""?"."+ue(ce,0):de,F(Re)?(T="",M!=null&&(T=M.replace(J,"$&/")+"/"),te(Re,H,T,"",function(Ke){return Ke})):Re!=null&&(D(Re)&&(Re=Y(Re,T+(!Re.key||ce&&ce.key===Re.key?"":(""+Re.key).replace(J,"$&/")+"/")+M)),H.push(Re)),1;if(ce=0,de=de===""?".":de+":",F(M))for(var Pe=0;Pe<M.length;Pe++){xe=M[Pe];var Le=de+ue(xe,Pe);ce+=te(xe,H,T,Le,Re)}else if(Le=x(M),typeof Le=="function")for(M=Le.call(M),Pe=0;!(xe=M.next()).done;)xe=xe.value,Le=de+ue(xe,Pe++),ce+=te(xe,H,T,Le,Re);else if(xe==="object")throw H=String(M),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.");return ce}function K(M,H,T){if(M==null)return M;var de=[],Re=0;return te(M,de,"","",function(xe){return H.call(T,xe,Re++)}),de}function oe(M){if(M._status===-1){var H=M._result;H=H(),H.then(function(T){(M._status===0||M._status===-1)&&(M._status=1,M._result=T)},function(T){(M._status===0||M._status===-1)&&(M._status=2,M._result=T)}),M._status===-1&&(M._status=0,M._result=H)}if(M._status===1)return M._result.default;throw M._result}var ae={current:null},L={transition:null},Z={ReactCurrentDispatcher:ae,ReactCurrentBatchConfig:L,ReactCurrentOwner:I};function _(){throw Error("act(...) is not supported in production builds of React.")}return Fe.Children={map:K,forEach:function(M,H,T){K(M,function(){H.apply(this,arguments)},T)},count:function(M){var H=0;return K(M,function(){H++}),H},toArray:function(M){return K(M,function(H){return H})||[]},only:function(M){if(!D(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Fe.Component=E,Fe.Fragment=n,Fe.Profiler=l,Fe.PureComponent=A,Fe.StrictMode=o,Fe.Suspense=d,Fe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,Fe.act=_,Fe.cloneElement=function(M,H,T){if(M==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+M+".");var de=S({},M.props),Re=M.key,xe=M.ref,ce=M._owner;if(H!=null){if(H.ref!==void 0&&(xe=H.ref,ce=I.current),H.key!==void 0&&(Re=""+H.key),M.type&&M.type.defaultProps)var Pe=M.type.defaultProps;for(Le in H)B.call(H,Le)&&!W.hasOwnProperty(Le)&&(de[Le]=H[Le]===void 0&&Pe!==void 0?Pe[Le]:H[Le])}var Le=arguments.length-2;if(Le===1)de.children=T;else if(1<Le){Pe=Array(Le);for(var Ke=0;Ke<Le;Ke++)Pe[Ke]=arguments[Ke+2];de.children=Pe}return{$$typeof:e,type:M.type,key:Re,ref:xe,props:de,_owner:ce}},Fe.createContext=function(M){return M={$$typeof:u,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},M.Provider={$$typeof:s,_context:M},M.Consumer=M},Fe.createElement=V,Fe.createFactory=function(M){var H=V.bind(null,M);return H.type=M,H},Fe.createRef=function(){return{current:null}},Fe.forwardRef=function(M){return{$$typeof:c,render:M}},Fe.isValidElement=D,Fe.lazy=function(M){return{$$typeof:h,_payload:{_status:-1,_result:M},_init:oe}},Fe.memo=function(M,H){return{$$typeof:p,type:M,compare:H===void 0?null:H}},Fe.startTransition=function(M){var H=L.transition;L.transition={};try{M()}finally{L.transition=H}},Fe.unstable_act=_,Fe.useCallback=function(M,H){return ae.current.useCallback(M,H)},Fe.useContext=function(M){return ae.current.useContext(M)},Fe.useDebugValue=function(){},Fe.useDeferredValue=function(M){return ae.current.useDeferredValue(M)},Fe.useEffect=function(M,H){return ae.current.useEffect(M,H)},Fe.useId=function(){return ae.current.useId()},Fe.useImperativeHandle=function(M,H,T){return ae.current.useImperativeHandle(M,H,T)},Fe.useInsertionEffect=function(M,H){return ae.current.useInsertionEffect(M,H)},Fe.useLayoutEffect=function(M,H){return ae.current.useLayoutEffect(M,H)},Fe.useMemo=function(M,H){return ae.current.useMemo(M,H)},Fe.useReducer=function(M,H,T){return ae.current.useReducer(M,H,T)},Fe.useRef=function(M){return ae.current.useRef(M)},Fe.useState=function(M){return ae.current.useState(M)},Fe.useSyncExternalStore=function(M,H,T){return ae.current.useSyncExternalStore(M,H,T)},Fe.useTransition=function(){return ae.current.useTransition()},Fe.version="18.3.1",Fe}var tg;function od(){return tg||(tg=1,Wc.exports=Ab()),Wc.exports}var ng;function Ib(){if(ng)return Yo;ng=1;var e=od(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(c,d,p){var h,g={},x=null,v=null;p!==void 0&&(x=""+p),d.key!==void 0&&(x=""+d.key),d.ref!==void 0&&(v=d.ref);for(h in d)o.call(d,h)&&!s.hasOwnProperty(h)&&(g[h]=d[h]);if(c&&c.defaultProps)for(h in d=c.defaultProps,d)g[h]===void 0&&(g[h]=d[h]);return{$$typeof:t,type:c,key:x,ref:v,props:g,_owner:l.current}}return Yo.Fragment=n,Yo.jsx=u,Yo.jsxs=u,Yo}var rg;function Ob(){return rg||(rg=1,Vc.exports=Ib()),Vc.exports}var w=Ob(),k=od();const Ce=yl(k),ld=Nb({__proto__:null,default:Ce},[k]);var zs={},Hc={exports:{}},$t={},Zc={exports:{}},Gc={};var ig;function Mb(){return ig||(ig=1,(function(e){function t(L,Z){var _=L.length;L.push(Z);e:for(;0<_;){var M=_-1>>>1,H=L[M];if(0<l(H,Z))L[M]=Z,L[_]=H,_=M;else break e}}function n(L){return L.length===0?null:L[0]}function o(L){if(L.length===0)return null;var Z=L[0],_=L.pop();if(_!==Z){L[0]=_;e:for(var M=0,H=L.length,T=H>>>1;M<T;){var de=2*(M+1)-1,Re=L[de],xe=de+1,ce=L[xe];if(0>l(Re,_))xe<H&&0>l(ce,Re)?(L[M]=ce,L[xe]=_,M=xe):(L[M]=Re,L[de]=_,M=de);else if(xe<H&&0>l(ce,_))L[M]=ce,L[xe]=_,M=xe;else break e}}return Z}function l(L,Z){var _=L.sortIndex-Z.sortIndex;return _!==0?_:L.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,c=u.now();e.unstable_now=function(){return u.now()-c}}var d=[],p=[],h=1,g=null,x=3,v=!1,S=!1,C=!1,E=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function N(L){for(var Z=n(p);Z!==null;){if(Z.callback===null)o(p);else if(Z.startTime<=L)o(p),Z.sortIndex=Z.expirationTime,t(d,Z);else break;Z=n(p)}}function F(L){if(C=!1,N(L),!S)if(n(d)!==null)S=!0,oe(B);else{var Z=n(p);Z!==null&&ae(F,Z.startTime-L)}}function B(L,Z){S=!1,C&&(C=!1,R(V),V=-1),v=!0;var _=x;try{for(N(Z),g=n(d);g!==null&&(!(g.expirationTime>Z)||L&&!q());){var M=g.callback;if(typeof M=="function"){g.callback=null,x=g.priorityLevel;var H=M(g.expirationTime<=Z);Z=e.unstable_now(),typeof H=="function"?g.callback=H:g===n(d)&&o(d),N(Z)}else o(d);g=n(d)}if(g!==null)var T=!0;else{var de=n(p);de!==null&&ae(F,de.startTime-Z),T=!1}return T}finally{g=null,x=_,v=!1}}var I=!1,W=null,V=-1,Y=5,D=-1;function q(){return!(e.unstable_now()-D<Y)}function J(){if(W!==null){var L=e.unstable_now();D=L;var Z=!0;try{Z=W(!0,L)}finally{Z?ue():(I=!1,W=null)}}else I=!1}var ue;if(typeof A=="function")ue=function(){A(J)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,K=te.port2;te.port1.onmessage=J,ue=function(){K.postMessage(null)}}else ue=function(){E(J,0)};function oe(L){W=L,I||(I=!0,ue())}function ae(L,Z){V=E(function(){L(e.unstable_now())},Z)}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(L){L.callback=null},e.unstable_continueExecution=function(){S||v||(S=!0,oe(B))},e.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<L?Math.floor(1e3/L):5},e.unstable_getCurrentPriorityLevel=function(){return x},e.unstable_getFirstCallbackNode=function(){return n(d)},e.unstable_next=function(L){switch(x){case 1:case 2:case 3:var Z=3;break;default:Z=x}var _=x;x=Z;try{return L()}finally{x=_}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(L,Z){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var _=x;x=L;try{return Z()}finally{x=_}},e.unstable_scheduleCallback=function(L,Z,_){var M=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?M+_:M):_=M,L){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=_+H,L={id:h++,callback:Z,priorityLevel:L,startTime:_,expirationTime:H,sortIndex:-1},_>M?(L.sortIndex=_,t(p,L),n(d)===null&&L===n(p)&&(C?(R(V),V=-1):C=!0,ae(F,_-M))):(L.sortIndex=H,t(d,L),S||v||(S=!0,oe(B))),L},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(L){var Z=x;return function(){var _=x;x=Z;try{return L.apply(this,arguments)}finally{x=_}}}})(Gc)),Gc}var og;function Db(){return og||(og=1,Zc.exports=Mb()),Zc.exports}var lg;function jb(){if(lg)return $t;lg=1;var e=od(),t=Db();function n(r){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+r,a=1;a<arguments.length;a++)i+="&args[]="+encodeURIComponent(arguments[a]);return"Minified React error #"+r+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,l={};function s(r,i){u(r,i),u(r+"Capture",i)}function u(r,i){for(l[r]=i,r=0;r<i.length;r++)o.add(i[r])}var c=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,p=/^[: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]*$/,h={},g={};function x(r){return d.call(g,r)?!0:d.call(h,r)?!1:p.test(r)?g[r]=!0:(h[r]=!0,!1)}function v(r,i,a,f){if(a!==null&&a.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return f?!1:a!==null?!a.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function S(r,i,a,f){if(i===null||typeof i>"u"||v(r,i,a,f))return!0;if(f)return!1;if(a!==null)switch(a.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function C(r,i,a,f,m,y,b){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=f,this.attributeNamespace=m,this.mustUseProperty=a,this.propertyName=r,this.type=i,this.sanitizeURL=y,this.removeEmptyString=b}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){E[r]=new C(r,0,!1,r,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var i=r[0];E[i]=new C(i,1,!1,r[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(r){E[r]=new C(r,2,!1,r.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){E[r]=new C(r,2,!1,r,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(r){E[r]=new C(r,3,!1,r.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(r){E[r]=new C(r,3,!0,r,null,!1,!1)}),["capture","download"].forEach(function(r){E[r]=new C(r,4,!1,r,null,!1,!1)}),["cols","rows","size","span"].forEach(function(r){E[r]=new C(r,6,!1,r,null,!1,!1)}),["rowSpan","start"].forEach(function(r){E[r]=new C(r,5,!1,r.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function A(r){return r[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(r){var i=r.replace(R,A);E[i]=new C(i,1,!1,r,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var i=r.replace(R,A);E[i]=new C(i,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(r){var i=r.replace(R,A);E[i]=new C(i,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(r){E[r]=new C(r,1,!1,r.toLowerCase(),null,!1,!1)}),E.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(r){E[r]=new C(r,1,!1,r.toLowerCase(),null,!0,!0)});function N(r,i,a,f){var m=E.hasOwnProperty(i)?E[i]:null;(m!==null?m.type!==0:f||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(S(i,a,m,f)&&(a=null),f||m===null?x(i)&&(a===null?r.removeAttribute(i):r.setAttribute(i,""+a)):m.mustUseProperty?r[m.propertyName]=a===null?m.type===3?!1:"":a:(i=m.attributeName,f=m.attributeNamespace,a===null?r.removeAttribute(i):(m=m.type,a=m===3||m===4&&a===!0?"":""+a,f?r.setAttributeNS(f,i,a):r.setAttribute(i,a))))}var F=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,B=Symbol.for("react.element"),I=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),q=Symbol.for("react.context"),J=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),oe=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),L=Symbol.iterator;function Z(r){return r===null||typeof r!="object"?null:(r=L&&r[L]||r["@@iterator"],typeof r=="function"?r:null)}var _=Object.assign,M;function H(r){if(M===void 0)try{throw Error()}catch(a){var i=a.stack.trim().match(/\n( *(at )?)/);M=i&&i[1]||""}return`
2
+ `+M+r}var T=!1;function de(r,i){if(!r||T)return"";T=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(U){var f=U}Reflect.construct(r,[],i)}else{try{i.call()}catch(U){f=U}r.call(i.prototype)}else{try{throw Error()}catch(U){f=U}r()}}catch(U){if(U&&f&&typeof U.stack=="string"){for(var m=U.stack.split(`
3
+ `),y=f.stack.split(`
4
+ `),b=m.length-1,P=y.length-1;1<=b&&0<=P&&m[b]!==y[P];)P--;for(;1<=b&&0<=P;b--,P--)if(m[b]!==y[P]){if(b!==1||P!==1)do if(b--,P--,0>P||m[b]!==y[P]){var O=`
5
+ `+m[b].replace(" at new "," at ");return r.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",r.displayName)),O}while(1<=b&&0<=P);break}}}finally{T=!1,Error.prepareStackTrace=a}return(r=r?r.displayName||r.name:"")?H(r):""}function Re(r){switch(r.tag){case 5:return H(r.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return r=de(r.type,!1),r;case 11:return r=de(r.type.render,!1),r;case 1:return r=de(r.type,!0),r;default:return""}}function xe(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case W:return"Fragment";case I:return"Portal";case Y:return"Profiler";case V:return"StrictMode";case ue:return"Suspense";case te:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case q:return(r.displayName||"Context")+".Consumer";case D:return(r._context.displayName||"Context")+".Provider";case J:var i=r.render;return r=r.displayName,r||(r=i.displayName||i.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case K:return i=r.displayName||null,i!==null?i:xe(r.type)||"Memo";case oe:i=r._payload,r=r._init;try{return xe(r(i))}catch{}}return null}function ce(r){var i=r.type;switch(r.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=i.render,r=r.displayName||r.name||"",i.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return xe(i);case 8:return i===V?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function Pe(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Le(r){var i=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function Ke(r){var i=Le(r)?"checked":"value",a=Object.getOwnPropertyDescriptor(r.constructor.prototype,i),f=""+r[i];if(!r.hasOwnProperty(i)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var m=a.get,y=a.set;return Object.defineProperty(r,i,{configurable:!0,get:function(){return m.call(this)},set:function(b){f=""+b,y.call(this,b)}}),Object.defineProperty(r,i,{enumerable:a.enumerable}),{getValue:function(){return f},setValue:function(b){f=""+b},stopTracking:function(){r._valueTracker=null,delete r[i]}}}}function Pt(r){r._valueTracker||(r._valueTracker=Ke(r))}function dn(r){if(!r)return!1;var i=r._valueTracker;if(!i)return!0;var a=i.getValue(),f="";return r&&(f=Le(r)?r.checked?"true":"false":r.value),r=f,r!==a?(i.setValue(r),!0):!1}function pn(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function uo(r,i){var a=i.checked;return _({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??r._wrapperState.initialChecked})}function co(r,i){var a=i.defaultValue==null?"":i.defaultValue,f=i.checked!=null?i.checked:i.defaultChecked;a=Pe(i.value!=null?i.value:a),r._wrapperState={initialChecked:f,initialValue:a,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function fo(r,i){i=i.checked,i!=null&&N(r,"checked",i,!1)}function mi(r,i){fo(r,i);var a=Pe(i.value),f=i.type;if(a!=null)f==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+a):r.value!==""+a&&(r.value=""+a);else if(f==="submit"||f==="reset"){r.removeAttribute("value");return}i.hasOwnProperty("value")?gi(r,i.type,a):i.hasOwnProperty("defaultValue")&&gi(r,i.type,Pe(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(r.defaultChecked=!!i.defaultChecked)}function Rl(r,i,a){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var f=i.type;if(!(f!=="submit"&&f!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+r._wrapperState.initialValue,a||i===r.value||(r.value=i),r.defaultValue=i}a=r.name,a!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,a!==""&&(r.name=a)}function gi(r,i,a){(i!=="number"||pn(r.ownerDocument)!==r)&&(a==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+a&&(r.defaultValue=""+a))}var dr=Array.isArray;function pr(r,i,a,f){if(r=r.options,i){i={};for(var m=0;m<a.length;m++)i["$"+a[m]]=!0;for(a=0;a<r.length;a++)m=i.hasOwnProperty("$"+r[a].value),r[a].selected!==m&&(r[a].selected=m),m&&f&&(r[a].defaultSelected=!0)}else{for(a=""+Pe(a),i=null,m=0;m<r.length;m++){if(r[m].value===a){r[m].selected=!0,f&&(r[m].defaultSelected=!0);return}i!==null||r[m].disabled||(i=r[m])}i!==null&&(i.selected=!0)}}function po(r,i){if(i.dangerouslySetInnerHTML!=null)throw Error(n(91));return _({},i,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function Tl(r,i){var a=i.value;if(a==null){if(a=i.children,i=i.defaultValue,a!=null){if(i!=null)throw Error(n(92));if(dr(a)){if(1<a.length)throw Error(n(93));a=a[0]}i=a}i==null&&(i=""),a=i}r._wrapperState={initialValue:Pe(a)}}function Pl(r,i){var a=Pe(i.value),f=Pe(i.defaultValue);a!=null&&(a=""+a,a!==r.value&&(r.value=a),i.defaultValue==null&&r.defaultValue!==a&&(r.defaultValue=a)),f!=null&&(r.defaultValue=""+f)}function Nl(r){var i=r.textContent;i===r._wrapperState.initialValue&&i!==""&&i!==null&&(r.value=i)}function G(r){switch(r){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(r,i){return r==null||r==="http://www.w3.org/1999/xhtml"?G(i):r==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Te,ze=(function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,a,f,m){MSApp.execUnsafeLocalFunction(function(){return r(i,a,f,m)})}:r})(function(r,i){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=i;else{for(Te=Te||document.createElement("div"),Te.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=Te.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;i.firstChild;)r.appendChild(i.firstChild)}});function We(r,i){if(i){var a=r.firstChild;if(a&&a===r.lastChild&&a.nodeType===3){a.nodeValue=i;return}}r.textContent=i}var vt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Gn=["Webkit","ms","Moz","O"];Object.keys(vt).forEach(function(r){Gn.forEach(function(i){i=i+r.charAt(0).toUpperCase()+r.substring(1),vt[i]=vt[r]})});function Jt(r,i,a){return i==null||typeof i=="boolean"||i===""?"":a||typeof i!="number"||i===0||vt.hasOwnProperty(r)&&vt[r]?(""+i).trim():i+"px"}function hr(r,i){r=r.style;for(var a in i)if(i.hasOwnProperty(a)){var f=a.indexOf("--")===0,m=Jt(a,i[a],f);a==="float"&&(a="cssFloat"),f?r.setProperty(a,m):r[a]=m}}var Ur=_({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xt(r,i){if(i){if(Ur[r]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(n(137,r));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(n(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(n(61))}if(i.style!=null&&typeof i.style!="object")throw Error(n(62))}}function Tn(r,i){if(r.indexOf("-")===-1)return typeof i.is=="string";switch(r){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Wt=null;function iu(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ou=null,yi=null,vi=null;function yp(r){if(r=Do(r)){if(typeof ou!="function")throw Error(n(280));var i=r.stateNode;i&&(i=Jl(i),ou(r.stateNode,r.type,i))}}function vp(r){yi?vi?vi.push(r):vi=[r]:yi=r}function xp(){if(yi){var r=yi,i=vi;if(vi=yi=null,yp(r),i)for(r=0;r<i.length;r++)yp(i[r])}}function wp(r,i){return r(i)}function kp(){}var lu=!1;function bp(r,i,a){if(lu)return r(i,a);lu=!0;try{return wp(r,i,a)}finally{lu=!1,(yi!==null||vi!==null)&&(kp(),xp())}}function ho(r,i){var a=r.stateNode;if(a===null)return null;var f=Jl(a);if(f===null)return null;a=f[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(f=!f.disabled)||(r=r.type,f=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!f;break e;default:r=!1}if(r)return null;if(a&&typeof a!="function")throw Error(n(231,i,typeof a));return a}var su=!1;if(c)try{var mo={};Object.defineProperty(mo,"passive",{get:function(){su=!0}}),window.addEventListener("test",mo,mo),window.removeEventListener("test",mo,mo)}catch{su=!1}function j0(r,i,a,f,m,y,b,P,O){var U=Array.prototype.slice.call(arguments,3);try{i.apply(a,U)}catch(Q){this.onError(Q)}}var go=!1,Al=null,Il=!1,au=null,L0={onError:function(r){go=!0,Al=r}};function z0(r,i,a,f,m,y,b,P,O){go=!1,Al=null,j0.apply(L0,arguments)}function F0(r,i,a,f,m,y,b,P,O){if(z0.apply(this,arguments),go){if(go){var U=Al;go=!1,Al=null}else throw Error(n(198));Il||(Il=!0,au=U)}}function Vr(r){var i=r,a=r;if(r.alternate)for(;i.return;)i=i.return;else{r=i;do i=r,(i.flags&4098)!==0&&(a=i.return),r=i.return;while(r)}return i.tag===3?a:null}function Sp(r){if(r.tag===13){var i=r.memoizedState;if(i===null&&(r=r.alternate,r!==null&&(i=r.memoizedState)),i!==null)return i.dehydrated}return null}function Cp(r){if(Vr(r)!==r)throw Error(n(188))}function $0(r){var i=r.alternate;if(!i){if(i=Vr(r),i===null)throw Error(n(188));return i!==r?null:r}for(var a=r,f=i;;){var m=a.return;if(m===null)break;var y=m.alternate;if(y===null){if(f=m.return,f!==null){a=f;continue}break}if(m.child===y.child){for(y=m.child;y;){if(y===a)return Cp(m),r;if(y===f)return Cp(m),i;y=y.sibling}throw Error(n(188))}if(a.return!==f.return)a=m,f=y;else{for(var b=!1,P=m.child;P;){if(P===a){b=!0,a=m,f=y;break}if(P===f){b=!0,f=m,a=y;break}P=P.sibling}if(!b){for(P=y.child;P;){if(P===a){b=!0,a=y,f=m;break}if(P===f){b=!0,f=y,a=m;break}P=P.sibling}if(!b)throw Error(n(189))}}if(a.alternate!==f)throw Error(n(190))}if(a.tag!==3)throw Error(n(188));return a.stateNode.current===a?r:i}function _p(r){return r=$0(r),r!==null?Ep(r):null}function Ep(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var i=Ep(r);if(i!==null)return i;r=r.sibling}return null}var Rp=t.unstable_scheduleCallback,Tp=t.unstable_cancelCallback,B0=t.unstable_shouldYield,U0=t.unstable_requestPaint,st=t.unstable_now,V0=t.unstable_getCurrentPriorityLevel,uu=t.unstable_ImmediatePriority,Pp=t.unstable_UserBlockingPriority,Ol=t.unstable_NormalPriority,W0=t.unstable_LowPriority,Np=t.unstable_IdlePriority,Ml=null,Pn=null;function H0(r){if(Pn&&typeof Pn.onCommitFiberRoot=="function")try{Pn.onCommitFiberRoot(Ml,r,void 0,(r.current.flags&128)===128)}catch{}}var hn=Math.clz32?Math.clz32:q0,Z0=Math.log,G0=Math.LN2;function q0(r){return r>>>=0,r===0?32:31-(Z0(r)/G0|0)|0}var Dl=64,jl=4194304;function yo(r){switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Ll(r,i){var a=r.pendingLanes;if(a===0)return 0;var f=0,m=r.suspendedLanes,y=r.pingedLanes,b=a&268435455;if(b!==0){var P=b&~m;P!==0?f=yo(P):(y&=b,y!==0&&(f=yo(y)))}else b=a&~m,b!==0?f=yo(b):y!==0&&(f=yo(y));if(f===0)return 0;if(i!==0&&i!==f&&(i&m)===0&&(m=f&-f,y=i&-i,m>=y||m===16&&(y&4194240)!==0))return i;if((f&4)!==0&&(f|=a&16),i=r.entangledLanes,i!==0)for(r=r.entanglements,i&=f;0<i;)a=31-hn(i),m=1<<a,f|=r[a],i&=~m;return f}function K0(r,i){switch(r){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Y0(r,i){for(var a=r.suspendedLanes,f=r.pingedLanes,m=r.expirationTimes,y=r.pendingLanes;0<y;){var b=31-hn(y),P=1<<b,O=m[b];O===-1?((P&a)===0||(P&f)!==0)&&(m[b]=K0(P,i)):O<=i&&(r.expiredLanes|=P),y&=~P}}function cu(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function Ap(){var r=Dl;return Dl<<=1,(Dl&4194240)===0&&(Dl=64),r}function fu(r){for(var i=[],a=0;31>a;a++)i.push(r);return i}function vo(r,i,a){r.pendingLanes|=i,i!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,i=31-hn(i),r[i]=a}function X0(r,i){var a=r.pendingLanes&~i;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=i,r.mutableReadLanes&=i,r.entangledLanes&=i,i=r.entanglements;var f=r.eventTimes;for(r=r.expirationTimes;0<a;){var m=31-hn(a),y=1<<m;i[m]=0,f[m]=-1,r[m]=-1,a&=~y}}function du(r,i){var a=r.entangledLanes|=i;for(r=r.entanglements;a;){var f=31-hn(a),m=1<<f;m&i|r[f]&i&&(r[f]|=i),a&=~m}}var qe=0;function Ip(r){return r&=-r,1<r?4<r?(r&268435455)!==0?16:536870912:4:1}var Op,pu,Mp,Dp,jp,hu=!1,zl=[],mr=null,gr=null,yr=null,xo=new Map,wo=new Map,vr=[],Q0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lp(r,i){switch(r){case"focusin":case"focusout":mr=null;break;case"dragenter":case"dragleave":gr=null;break;case"mouseover":case"mouseout":yr=null;break;case"pointerover":case"pointerout":xo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":wo.delete(i.pointerId)}}function ko(r,i,a,f,m,y){return r===null||r.nativeEvent!==y?(r={blockedOn:i,domEventName:a,eventSystemFlags:f,nativeEvent:y,targetContainers:[m]},i!==null&&(i=Do(i),i!==null&&pu(i)),r):(r.eventSystemFlags|=f,i=r.targetContainers,m!==null&&i.indexOf(m)===-1&&i.push(m),r)}function J0(r,i,a,f,m){switch(i){case"focusin":return mr=ko(mr,r,i,a,f,m),!0;case"dragenter":return gr=ko(gr,r,i,a,f,m),!0;case"mouseover":return yr=ko(yr,r,i,a,f,m),!0;case"pointerover":var y=m.pointerId;return xo.set(y,ko(xo.get(y)||null,r,i,a,f,m)),!0;case"gotpointercapture":return y=m.pointerId,wo.set(y,ko(wo.get(y)||null,r,i,a,f,m)),!0}return!1}function zp(r){var i=Wr(r.target);if(i!==null){var a=Vr(i);if(a!==null){if(i=a.tag,i===13){if(i=Sp(a),i!==null){r.blockedOn=i,jp(r.priority,function(){Mp(a)});return}}else if(i===3&&a.stateNode.current.memoizedState.isDehydrated){r.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Fl(r){if(r.blockedOn!==null)return!1;for(var i=r.targetContainers;0<i.length;){var a=gu(r.domEventName,r.eventSystemFlags,i[0],r.nativeEvent);if(a===null){a=r.nativeEvent;var f=new a.constructor(a.type,a);Wt=f,a.target.dispatchEvent(f),Wt=null}else return i=Do(a),i!==null&&pu(i),r.blockedOn=a,!1;i.shift()}return!0}function Fp(r,i,a){Fl(r)&&a.delete(i)}function e1(){hu=!1,mr!==null&&Fl(mr)&&(mr=null),gr!==null&&Fl(gr)&&(gr=null),yr!==null&&Fl(yr)&&(yr=null),xo.forEach(Fp),wo.forEach(Fp)}function bo(r,i){r.blockedOn===i&&(r.blockedOn=null,hu||(hu=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,e1)))}function So(r){function i(m){return bo(m,r)}if(0<zl.length){bo(zl[0],r);for(var a=1;a<zl.length;a++){var f=zl[a];f.blockedOn===r&&(f.blockedOn=null)}}for(mr!==null&&bo(mr,r),gr!==null&&bo(gr,r),yr!==null&&bo(yr,r),xo.forEach(i),wo.forEach(i),a=0;a<vr.length;a++)f=vr[a],f.blockedOn===r&&(f.blockedOn=null);for(;0<vr.length&&(a=vr[0],a.blockedOn===null);)zp(a),a.blockedOn===null&&vr.shift()}var xi=F.ReactCurrentBatchConfig,$l=!0;function t1(r,i,a,f){var m=qe,y=xi.transition;xi.transition=null;try{qe=1,mu(r,i,a,f)}finally{qe=m,xi.transition=y}}function n1(r,i,a,f){var m=qe,y=xi.transition;xi.transition=null;try{qe=4,mu(r,i,a,f)}finally{qe=m,xi.transition=y}}function mu(r,i,a,f){if($l){var m=gu(r,i,a,f);if(m===null)Ou(r,i,f,Bl,a),Lp(r,f);else if(J0(m,r,i,a,f))f.stopPropagation();else if(Lp(r,f),i&4&&-1<Q0.indexOf(r)){for(;m!==null;){var y=Do(m);if(y!==null&&Op(y),y=gu(r,i,a,f),y===null&&Ou(r,i,f,Bl,a),y===m)break;m=y}m!==null&&f.stopPropagation()}else Ou(r,i,f,null,a)}}var Bl=null;function gu(r,i,a,f){if(Bl=null,r=iu(f),r=Wr(r),r!==null)if(i=Vr(r),i===null)r=null;else if(a=i.tag,a===13){if(r=Sp(i),r!==null)return r;r=null}else if(a===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;r=null}else i!==r&&(r=null);return Bl=r,null}function $p(r){switch(r){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(V0()){case uu:return 1;case Pp:return 4;case Ol:case W0:return 16;case Np:return 536870912;default:return 16}default:return 16}}var xr=null,yu=null,Ul=null;function Bp(){if(Ul)return Ul;var r,i=yu,a=i.length,f,m="value"in xr?xr.value:xr.textContent,y=m.length;for(r=0;r<a&&i[r]===m[r];r++);var b=a-r;for(f=1;f<=b&&i[a-f]===m[y-f];f++);return Ul=m.slice(r,1<f?1-f:void 0)}function Vl(r){var i=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&i===13&&(r=13)):r=i,r===10&&(r=13),32<=r||r===13?r:0}function Wl(){return!0}function Up(){return!1}function Ht(r){function i(a,f,m,y,b){this._reactName=a,this._targetInst=m,this.type=f,this.nativeEvent=y,this.target=b,this.currentTarget=null;for(var P in r)r.hasOwnProperty(P)&&(a=r[P],this[P]=a?a(y):y[P]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Wl:Up,this.isPropagationStopped=Up,this}return _(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Wl)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Wl)},persist:function(){},isPersistent:Wl}),i}var wi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vu=Ht(wi),Co=_({},wi,{view:0,detail:0}),r1=Ht(Co),xu,wu,_o,Hl=_({},Co,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bu,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==_o&&(_o&&r.type==="mousemove"?(xu=r.screenX-_o.screenX,wu=r.screenY-_o.screenY):wu=xu=0,_o=r),xu)},movementY:function(r){return"movementY"in r?r.movementY:wu}}),Vp=Ht(Hl),i1=_({},Hl,{dataTransfer:0}),o1=Ht(i1),l1=_({},Co,{relatedTarget:0}),ku=Ht(l1),s1=_({},wi,{animationName:0,elapsedTime:0,pseudoElement:0}),a1=Ht(s1),u1=_({},wi,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),c1=Ht(u1),f1=_({},wi,{data:0}),Wp=Ht(f1),d1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},p1={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"},h1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function m1(r){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(r):(r=h1[r])?!!i[r]:!1}function bu(){return m1}var g1=_({},Co,{key:function(r){if(r.key){var i=d1[r.key]||r.key;if(i!=="Unidentified")return i}return r.type==="keypress"?(r=Vl(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?p1[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bu,charCode:function(r){return r.type==="keypress"?Vl(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Vl(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),y1=Ht(g1),v1=_({},Hl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hp=Ht(v1),x1=_({},Co,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bu}),w1=Ht(x1),k1=_({},wi,{propertyName:0,elapsedTime:0,pseudoElement:0}),b1=Ht(k1),S1=_({},Hl,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),C1=Ht(S1),_1=[9,13,27,32],Su=c&&"CompositionEvent"in window,Eo=null;c&&"documentMode"in document&&(Eo=document.documentMode);var E1=c&&"TextEvent"in window&&!Eo,Zp=c&&(!Su||Eo&&8<Eo&&11>=Eo),Gp=" ",qp=!1;function Kp(r,i){switch(r){case"keyup":return _1.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yp(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var ki=!1;function R1(r,i){switch(r){case"compositionend":return Yp(i);case"keypress":return i.which!==32?null:(qp=!0,Gp);case"textInput":return r=i.data,r===Gp&&qp?null:r;default:return null}}function T1(r,i){if(ki)return r==="compositionend"||!Su&&Kp(r,i)?(r=Bp(),Ul=yu=xr=null,ki=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return Zp&&i.locale!=="ko"?null:i.data;default:return null}}var P1={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 Xp(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i==="input"?!!P1[r.type]:i==="textarea"}function Qp(r,i,a,f){vp(f),i=Yl(i,"onChange"),0<i.length&&(a=new vu("onChange","change",null,a,f),r.push({event:a,listeners:i}))}var Ro=null,To=null;function N1(r){gh(r,0)}function Zl(r){var i=Ei(r);if(dn(i))return r}function A1(r,i){if(r==="change")return i}var Jp=!1;if(c){var Cu;if(c){var _u="oninput"in document;if(!_u){var eh=document.createElement("div");eh.setAttribute("oninput","return;"),_u=typeof eh.oninput=="function"}Cu=_u}else Cu=!1;Jp=Cu&&(!document.documentMode||9<document.documentMode)}function th(){Ro&&(Ro.detachEvent("onpropertychange",nh),To=Ro=null)}function nh(r){if(r.propertyName==="value"&&Zl(To)){var i=[];Qp(i,To,r,iu(r)),bp(N1,i)}}function I1(r,i,a){r==="focusin"?(th(),Ro=i,To=a,Ro.attachEvent("onpropertychange",nh)):r==="focusout"&&th()}function O1(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Zl(To)}function M1(r,i){if(r==="click")return Zl(i)}function D1(r,i){if(r==="input"||r==="change")return Zl(i)}function j1(r,i){return r===i&&(r!==0||1/r===1/i)||r!==r&&i!==i}var mn=typeof Object.is=="function"?Object.is:j1;function Po(r,i){if(mn(r,i))return!0;if(typeof r!="object"||r===null||typeof i!="object"||i===null)return!1;var a=Object.keys(r),f=Object.keys(i);if(a.length!==f.length)return!1;for(f=0;f<a.length;f++){var m=a[f];if(!d.call(i,m)||!mn(r[m],i[m]))return!1}return!0}function rh(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function ih(r,i){var a=rh(r);r=0;for(var f;a;){if(a.nodeType===3){if(f=r+a.textContent.length,r<=i&&f>=i)return{node:a,offset:i-r};r=f}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=rh(a)}}function oh(r,i){return r&&i?r===i?!0:r&&r.nodeType===3?!1:i&&i.nodeType===3?oh(r,i.parentNode):"contains"in r?r.contains(i):r.compareDocumentPosition?!!(r.compareDocumentPosition(i)&16):!1:!1}function lh(){for(var r=window,i=pn();i instanceof r.HTMLIFrameElement;){try{var a=typeof i.contentWindow.location.href=="string"}catch{a=!1}if(a)r=i.contentWindow;else break;i=pn(r.document)}return i}function Eu(r){var i=r&&r.nodeName&&r.nodeName.toLowerCase();return i&&(i==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||i==="textarea"||r.contentEditable==="true")}function L1(r){var i=lh(),a=r.focusedElem,f=r.selectionRange;if(i!==a&&a&&a.ownerDocument&&oh(a.ownerDocument.documentElement,a)){if(f!==null&&Eu(a)){if(i=f.start,r=f.end,r===void 0&&(r=i),"selectionStart"in a)a.selectionStart=i,a.selectionEnd=Math.min(r,a.value.length);else if(r=(i=a.ownerDocument||document)&&i.defaultView||window,r.getSelection){r=r.getSelection();var m=a.textContent.length,y=Math.min(f.start,m);f=f.end===void 0?y:Math.min(f.end,m),!r.extend&&y>f&&(m=f,f=y,y=m),m=ih(a,y);var b=ih(a,f);m&&b&&(r.rangeCount!==1||r.anchorNode!==m.node||r.anchorOffset!==m.offset||r.focusNode!==b.node||r.focusOffset!==b.offset)&&(i=i.createRange(),i.setStart(m.node,m.offset),r.removeAllRanges(),y>f?(r.addRange(i),r.extend(b.node,b.offset)):(i.setEnd(b.node,b.offset),r.addRange(i)))}}for(i=[],r=a;r=r.parentNode;)r.nodeType===1&&i.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<i.length;a++)r=i[a],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var z1=c&&"documentMode"in document&&11>=document.documentMode,bi=null,Ru=null,No=null,Tu=!1;function sh(r,i,a){var f=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Tu||bi==null||bi!==pn(f)||(f=bi,"selectionStart"in f&&Eu(f)?f={start:f.selectionStart,end:f.selectionEnd}:(f=(f.ownerDocument&&f.ownerDocument.defaultView||window).getSelection(),f={anchorNode:f.anchorNode,anchorOffset:f.anchorOffset,focusNode:f.focusNode,focusOffset:f.focusOffset}),No&&Po(No,f)||(No=f,f=Yl(Ru,"onSelect"),0<f.length&&(i=new vu("onSelect","select",null,i,a),r.push({event:i,listeners:f}),i.target=bi)))}function Gl(r,i){var a={};return a[r.toLowerCase()]=i.toLowerCase(),a["Webkit"+r]="webkit"+i,a["Moz"+r]="moz"+i,a}var Si={animationend:Gl("Animation","AnimationEnd"),animationiteration:Gl("Animation","AnimationIteration"),animationstart:Gl("Animation","AnimationStart"),transitionend:Gl("Transition","TransitionEnd")},Pu={},ah={};c&&(ah=document.createElement("div").style,"AnimationEvent"in window||(delete Si.animationend.animation,delete Si.animationiteration.animation,delete Si.animationstart.animation),"TransitionEvent"in window||delete Si.transitionend.transition);function ql(r){if(Pu[r])return Pu[r];if(!Si[r])return r;var i=Si[r],a;for(a in i)if(i.hasOwnProperty(a)&&a in ah)return Pu[r]=i[a];return r}var uh=ql("animationend"),ch=ql("animationiteration"),fh=ql("animationstart"),dh=ql("transitionend"),ph=new Map,hh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function wr(r,i){ph.set(r,i),s(i,[r])}for(var Nu=0;Nu<hh.length;Nu++){var Au=hh[Nu],F1=Au.toLowerCase(),$1=Au[0].toUpperCase()+Au.slice(1);wr(F1,"on"+$1)}wr(uh,"onAnimationEnd"),wr(ch,"onAnimationIteration"),wr(fh,"onAnimationStart"),wr("dblclick","onDoubleClick"),wr("focusin","onFocus"),wr("focusout","onBlur"),wr(dh,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ao="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(" "),B1=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ao));function mh(r,i,a){var f=r.type||"unknown-event";r.currentTarget=a,F0(f,i,void 0,r),r.currentTarget=null}function gh(r,i){i=(i&4)!==0;for(var a=0;a<r.length;a++){var f=r[a],m=f.event;f=f.listeners;e:{var y=void 0;if(i)for(var b=f.length-1;0<=b;b--){var P=f[b],O=P.instance,U=P.currentTarget;if(P=P.listener,O!==y&&m.isPropagationStopped())break e;mh(m,P,U),y=O}else for(b=0;b<f.length;b++){if(P=f[b],O=P.instance,U=P.currentTarget,P=P.listener,O!==y&&m.isPropagationStopped())break e;mh(m,P,U),y=O}}}if(Il)throw r=au,Il=!1,au=null,r}function Je(r,i){var a=i[Fu];a===void 0&&(a=i[Fu]=new Set);var f=r+"__bubble";a.has(f)||(yh(i,r,2,!1),a.add(f))}function Iu(r,i,a){var f=0;i&&(f|=4),yh(a,r,f,i)}var Kl="_reactListening"+Math.random().toString(36).slice(2);function Io(r){if(!r[Kl]){r[Kl]=!0,o.forEach(function(a){a!=="selectionchange"&&(B1.has(a)||Iu(a,!1,r),Iu(a,!0,r))});var i=r.nodeType===9?r:r.ownerDocument;i===null||i[Kl]||(i[Kl]=!0,Iu("selectionchange",!1,i))}}function yh(r,i,a,f){switch($p(i)){case 1:var m=t1;break;case 4:m=n1;break;default:m=mu}a=m.bind(null,i,a,r),m=void 0,!su||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(m=!0),f?m!==void 0?r.addEventListener(i,a,{capture:!0,passive:m}):r.addEventListener(i,a,!0):m!==void 0?r.addEventListener(i,a,{passive:m}):r.addEventListener(i,a,!1)}function Ou(r,i,a,f,m){var y=f;if((i&1)===0&&(i&2)===0&&f!==null)e:for(;;){if(f===null)return;var b=f.tag;if(b===3||b===4){var P=f.stateNode.containerInfo;if(P===m||P.nodeType===8&&P.parentNode===m)break;if(b===4)for(b=f.return;b!==null;){var O=b.tag;if((O===3||O===4)&&(O=b.stateNode.containerInfo,O===m||O.nodeType===8&&O.parentNode===m))return;b=b.return}for(;P!==null;){if(b=Wr(P),b===null)return;if(O=b.tag,O===5||O===6){f=y=b;continue e}P=P.parentNode}}f=f.return}bp(function(){var U=y,Q=iu(a),ee=[];e:{var X=ph.get(r);if(X!==void 0){var fe=vu,me=r;switch(r){case"keypress":if(Vl(a)===0)break e;case"keydown":case"keyup":fe=y1;break;case"focusin":me="focus",fe=ku;break;case"focusout":me="blur",fe=ku;break;case"beforeblur":case"afterblur":fe=ku;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=Vp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=o1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=w1;break;case uh:case ch:case fh:fe=a1;break;case dh:fe=b1;break;case"scroll":fe=r1;break;case"wheel":fe=C1;break;case"copy":case"cut":case"paste":fe=c1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=Hp}var ve=(i&4)!==0,at=!ve&&r==="scroll",z=ve?X!==null?X+"Capture":null:X;ve=[];for(var j=U,$;j!==null;){$=j;var ie=$.stateNode;if($.tag===5&&ie!==null&&($=ie,z!==null&&(ie=ho(j,z),ie!=null&&ve.push(Oo(j,ie,$)))),at)break;j=j.return}0<ve.length&&(X=new fe(X,me,null,a,Q),ee.push({event:X,listeners:ve}))}}if((i&7)===0){e:{if(X=r==="mouseover"||r==="pointerover",fe=r==="mouseout"||r==="pointerout",X&&a!==Wt&&(me=a.relatedTarget||a.fromElement)&&(Wr(me)||me[qn]))break e;if((fe||X)&&(X=Q.window===Q?Q:(X=Q.ownerDocument)?X.defaultView||X.parentWindow:window,fe?(me=a.relatedTarget||a.toElement,fe=U,me=me?Wr(me):null,me!==null&&(at=Vr(me),me!==at||me.tag!==5&&me.tag!==6)&&(me=null)):(fe=null,me=U),fe!==me)){if(ve=Vp,ie="onMouseLeave",z="onMouseEnter",j="mouse",(r==="pointerout"||r==="pointerover")&&(ve=Hp,ie="onPointerLeave",z="onPointerEnter",j="pointer"),at=fe==null?X:Ei(fe),$=me==null?X:Ei(me),X=new ve(ie,j+"leave",fe,a,Q),X.target=at,X.relatedTarget=$,ie=null,Wr(Q)===U&&(ve=new ve(z,j+"enter",me,a,Q),ve.target=$,ve.relatedTarget=at,ie=ve),at=ie,fe&&me)t:{for(ve=fe,z=me,j=0,$=ve;$;$=Ci($))j++;for($=0,ie=z;ie;ie=Ci(ie))$++;for(;0<j-$;)ve=Ci(ve),j--;for(;0<$-j;)z=Ci(z),$--;for(;j--;){if(ve===z||z!==null&&ve===z.alternate)break t;ve=Ci(ve),z=Ci(z)}ve=null}else ve=null;fe!==null&&vh(ee,X,fe,ve,!1),me!==null&&at!==null&&vh(ee,at,me,ve,!0)}}e:{if(X=U?Ei(U):window,fe=X.nodeName&&X.nodeName.toLowerCase(),fe==="select"||fe==="input"&&X.type==="file")var we=A1;else if(Xp(X))if(Jp)we=D1;else{we=O1;var be=I1}else(fe=X.nodeName)&&fe.toLowerCase()==="input"&&(X.type==="checkbox"||X.type==="radio")&&(we=M1);if(we&&(we=we(r,U))){Qp(ee,we,a,Q);break e}be&&be(r,X,U),r==="focusout"&&(be=X._wrapperState)&&be.controlled&&X.type==="number"&&gi(X,"number",X.value)}switch(be=U?Ei(U):window,r){case"focusin":(Xp(be)||be.contentEditable==="true")&&(bi=be,Ru=U,No=null);break;case"focusout":No=Ru=bi=null;break;case"mousedown":Tu=!0;break;case"contextmenu":case"mouseup":case"dragend":Tu=!1,sh(ee,a,Q);break;case"selectionchange":if(z1)break;case"keydown":case"keyup":sh(ee,a,Q)}var Se;if(Su)e:{switch(r){case"compositionstart":var Ne="onCompositionStart";break e;case"compositionend":Ne="onCompositionEnd";break e;case"compositionupdate":Ne="onCompositionUpdate";break e}Ne=void 0}else ki?Kp(r,a)&&(Ne="onCompositionEnd"):r==="keydown"&&a.keyCode===229&&(Ne="onCompositionStart");Ne&&(Zp&&a.locale!=="ko"&&(ki||Ne!=="onCompositionStart"?Ne==="onCompositionEnd"&&ki&&(Se=Bp()):(xr=Q,yu="value"in xr?xr.value:xr.textContent,ki=!0)),be=Yl(U,Ne),0<be.length&&(Ne=new Wp(Ne,r,null,a,Q),ee.push({event:Ne,listeners:be}),Se?Ne.data=Se:(Se=Yp(a),Se!==null&&(Ne.data=Se)))),(Se=E1?R1(r,a):T1(r,a))&&(U=Yl(U,"onBeforeInput"),0<U.length&&(Q=new Wp("onBeforeInput","beforeinput",null,a,Q),ee.push({event:Q,listeners:U}),Q.data=Se))}gh(ee,i)})}function Oo(r,i,a){return{instance:r,listener:i,currentTarget:a}}function Yl(r,i){for(var a=i+"Capture",f=[];r!==null;){var m=r,y=m.stateNode;m.tag===5&&y!==null&&(m=y,y=ho(r,a),y!=null&&f.unshift(Oo(r,y,m)),y=ho(r,i),y!=null&&f.push(Oo(r,y,m))),r=r.return}return f}function Ci(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function vh(r,i,a,f,m){for(var y=i._reactName,b=[];a!==null&&a!==f;){var P=a,O=P.alternate,U=P.stateNode;if(O!==null&&O===f)break;P.tag===5&&U!==null&&(P=U,m?(O=ho(a,y),O!=null&&b.unshift(Oo(a,O,P))):m||(O=ho(a,y),O!=null&&b.push(Oo(a,O,P)))),a=a.return}b.length!==0&&r.push({event:i,listeners:b})}var U1=/\r\n?/g,V1=/\u0000|\uFFFD/g;function xh(r){return(typeof r=="string"?r:""+r).replace(U1,`
6
+ `).replace(V1,"")}function Xl(r,i,a){if(i=xh(i),xh(r)!==i&&a)throw Error(n(425))}function Ql(){}var Mu=null,Du=null;function ju(r,i){return r==="textarea"||r==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Lu=typeof setTimeout=="function"?setTimeout:void 0,W1=typeof clearTimeout=="function"?clearTimeout:void 0,wh=typeof Promise=="function"?Promise:void 0,H1=typeof queueMicrotask=="function"?queueMicrotask:typeof wh<"u"?function(r){return wh.resolve(null).then(r).catch(Z1)}:Lu;function Z1(r){setTimeout(function(){throw r})}function zu(r,i){var a=i,f=0;do{var m=a.nextSibling;if(r.removeChild(a),m&&m.nodeType===8)if(a=m.data,a==="/$"){if(f===0){r.removeChild(m),So(i);return}f--}else a!=="$"&&a!=="$?"&&a!=="$!"||f++;a=m}while(a);So(i)}function kr(r){for(;r!=null;r=r.nextSibling){var i=r.nodeType;if(i===1||i===3)break;if(i===8){if(i=r.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return r}function kh(r){r=r.previousSibling;for(var i=0;r;){if(r.nodeType===8){var a=r.data;if(a==="$"||a==="$!"||a==="$?"){if(i===0)return r;i--}else a==="/$"&&i++}r=r.previousSibling}return null}var _i=Math.random().toString(36).slice(2),Nn="__reactFiber$"+_i,Mo="__reactProps$"+_i,qn="__reactContainer$"+_i,Fu="__reactEvents$"+_i,G1="__reactListeners$"+_i,q1="__reactHandles$"+_i;function Wr(r){var i=r[Nn];if(i)return i;for(var a=r.parentNode;a;){if(i=a[qn]||a[Nn]){if(a=i.alternate,i.child!==null||a!==null&&a.child!==null)for(r=kh(r);r!==null;){if(a=r[Nn])return a;r=kh(r)}return i}r=a,a=r.parentNode}return null}function Do(r){return r=r[Nn]||r[qn],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function Ei(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(n(33))}function Jl(r){return r[Mo]||null}var $u=[],Ri=-1;function br(r){return{current:r}}function et(r){0>Ri||(r.current=$u[Ri],$u[Ri]=null,Ri--)}function Xe(r,i){Ri++,$u[Ri]=r.current,r.current=i}var Sr={},bt=br(Sr),Dt=br(!1),Hr=Sr;function Ti(r,i){var a=r.type.contextTypes;if(!a)return Sr;var f=r.stateNode;if(f&&f.__reactInternalMemoizedUnmaskedChildContext===i)return f.__reactInternalMemoizedMaskedChildContext;var m={},y;for(y in a)m[y]=i[y];return f&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=i,r.__reactInternalMemoizedMaskedChildContext=m),m}function jt(r){return r=r.childContextTypes,r!=null}function es(){et(Dt),et(bt)}function bh(r,i,a){if(bt.current!==Sr)throw Error(n(168));Xe(bt,i),Xe(Dt,a)}function Sh(r,i,a){var f=r.stateNode;if(i=i.childContextTypes,typeof f.getChildContext!="function")return a;f=f.getChildContext();for(var m in f)if(!(m in i))throw Error(n(108,ce(r)||"Unknown",m));return _({},a,f)}function ts(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Sr,Hr=bt.current,Xe(bt,r),Xe(Dt,Dt.current),!0}function Ch(r,i,a){var f=r.stateNode;if(!f)throw Error(n(169));a?(r=Sh(r,i,Hr),f.__reactInternalMemoizedMergedChildContext=r,et(Dt),et(bt),Xe(bt,r)):et(Dt),Xe(Dt,a)}var Kn=null,ns=!1,Bu=!1;function _h(r){Kn===null?Kn=[r]:Kn.push(r)}function K1(r){ns=!0,_h(r)}function Cr(){if(!Bu&&Kn!==null){Bu=!0;var r=0,i=qe;try{var a=Kn;for(qe=1;r<a.length;r++){var f=a[r];do f=f(!0);while(f!==null)}Kn=null,ns=!1}catch(m){throw Kn!==null&&(Kn=Kn.slice(r+1)),Rp(uu,Cr),m}finally{qe=i,Bu=!1}}return null}var Pi=[],Ni=0,rs=null,is=0,en=[],tn=0,Zr=null,Yn=1,Xn="";function Gr(r,i){Pi[Ni++]=is,Pi[Ni++]=rs,rs=r,is=i}function Eh(r,i,a){en[tn++]=Yn,en[tn++]=Xn,en[tn++]=Zr,Zr=r;var f=Yn;r=Xn;var m=32-hn(f)-1;f&=~(1<<m),a+=1;var y=32-hn(i)+m;if(30<y){var b=m-m%5;y=(f&(1<<b)-1).toString(32),f>>=b,m-=b,Yn=1<<32-hn(i)+m|a<<m|f,Xn=y+r}else Yn=1<<y|a<<m|f,Xn=r}function Uu(r){r.return!==null&&(Gr(r,1),Eh(r,1,0))}function Vu(r){for(;r===rs;)rs=Pi[--Ni],Pi[Ni]=null,is=Pi[--Ni],Pi[Ni]=null;for(;r===Zr;)Zr=en[--tn],en[tn]=null,Xn=en[--tn],en[tn]=null,Yn=en[--tn],en[tn]=null}var Zt=null,Gt=null,nt=!1,gn=null;function Rh(r,i){var a=ln(5,null,null,0);a.elementType="DELETED",a.stateNode=i,a.return=r,i=r.deletions,i===null?(r.deletions=[a],r.flags|=16):i.push(a)}function Th(r,i){switch(r.tag){case 5:var a=r.type;return i=i.nodeType!==1||a.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(r.stateNode=i,Zt=r,Gt=kr(i.firstChild),!0):!1;case 6:return i=r.pendingProps===""||i.nodeType!==3?null:i,i!==null?(r.stateNode=i,Zt=r,Gt=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(a=Zr!==null?{id:Yn,overflow:Xn}:null,r.memoizedState={dehydrated:i,treeContext:a,retryLane:1073741824},a=ln(18,null,null,0),a.stateNode=i,a.return=r,r.child=a,Zt=r,Gt=null,!0):!1;default:return!1}}function Wu(r){return(r.mode&1)!==0&&(r.flags&128)===0}function Hu(r){if(nt){var i=Gt;if(i){var a=i;if(!Th(r,i)){if(Wu(r))throw Error(n(418));i=kr(a.nextSibling);var f=Zt;i&&Th(r,i)?Rh(f,a):(r.flags=r.flags&-4097|2,nt=!1,Zt=r)}}else{if(Wu(r))throw Error(n(418));r.flags=r.flags&-4097|2,nt=!1,Zt=r}}}function Ph(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Zt=r}function os(r){if(r!==Zt)return!1;if(!nt)return Ph(r),nt=!0,!1;var i;if((i=r.tag!==3)&&!(i=r.tag!==5)&&(i=r.type,i=i!=="head"&&i!=="body"&&!ju(r.type,r.memoizedProps)),i&&(i=Gt)){if(Wu(r))throw Nh(),Error(n(418));for(;i;)Rh(r,i),i=kr(i.nextSibling)}if(Ph(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(n(317));e:{for(r=r.nextSibling,i=0;r;){if(r.nodeType===8){var a=r.data;if(a==="/$"){if(i===0){Gt=kr(r.nextSibling);break e}i--}else a!=="$"&&a!=="$!"&&a!=="$?"||i++}r=r.nextSibling}Gt=null}}else Gt=Zt?kr(r.stateNode.nextSibling):null;return!0}function Nh(){for(var r=Gt;r;)r=kr(r.nextSibling)}function Ai(){Gt=Zt=null,nt=!1}function Zu(r){gn===null?gn=[r]:gn.push(r)}var Y1=F.ReactCurrentBatchConfig;function jo(r,i,a){if(r=a.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(a._owner){if(a=a._owner,a){if(a.tag!==1)throw Error(n(309));var f=a.stateNode}if(!f)throw Error(n(147,r));var m=f,y=""+r;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===y?i.ref:(i=function(b){var P=m.refs;b===null?delete P[y]:P[y]=b},i._stringRef=y,i)}if(typeof r!="string")throw Error(n(284));if(!a._owner)throw Error(n(290,r))}return r}function ls(r,i){throw r=Object.prototype.toString.call(i),Error(n(31,r==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":r))}function Ah(r){var i=r._init;return i(r._payload)}function Ih(r){function i(z,j){if(r){var $=z.deletions;$===null?(z.deletions=[j],z.flags|=16):$.push(j)}}function a(z,j){if(!r)return null;for(;j!==null;)i(z,j),j=j.sibling;return null}function f(z,j){for(z=new Map;j!==null;)j.key!==null?z.set(j.key,j):z.set(j.index,j),j=j.sibling;return z}function m(z,j){return z=Ir(z,j),z.index=0,z.sibling=null,z}function y(z,j,$){return z.index=$,r?($=z.alternate,$!==null?($=$.index,$<j?(z.flags|=2,j):$):(z.flags|=2,j)):(z.flags|=1048576,j)}function b(z){return r&&z.alternate===null&&(z.flags|=2),z}function P(z,j,$,ie){return j===null||j.tag!==6?(j=Lc($,z.mode,ie),j.return=z,j):(j=m(j,$),j.return=z,j)}function O(z,j,$,ie){var we=$.type;return we===W?Q(z,j,$.props.children,ie,$.key):j!==null&&(j.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===oe&&Ah(we)===j.type)?(ie=m(j,$.props),ie.ref=jo(z,j,$),ie.return=z,ie):(ie=Ns($.type,$.key,$.props,null,z.mode,ie),ie.ref=jo(z,j,$),ie.return=z,ie)}function U(z,j,$,ie){return j===null||j.tag!==4||j.stateNode.containerInfo!==$.containerInfo||j.stateNode.implementation!==$.implementation?(j=zc($,z.mode,ie),j.return=z,j):(j=m(j,$.children||[]),j.return=z,j)}function Q(z,j,$,ie,we){return j===null||j.tag!==7?(j=ti($,z.mode,ie,we),j.return=z,j):(j=m(j,$),j.return=z,j)}function ee(z,j,$){if(typeof j=="string"&&j!==""||typeof j=="number")return j=Lc(""+j,z.mode,$),j.return=z,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case B:return $=Ns(j.type,j.key,j.props,null,z.mode,$),$.ref=jo(z,null,j),$.return=z,$;case I:return j=zc(j,z.mode,$),j.return=z,j;case oe:var ie=j._init;return ee(z,ie(j._payload),$)}if(dr(j)||Z(j))return j=ti(j,z.mode,$,null),j.return=z,j;ls(z,j)}return null}function X(z,j,$,ie){var we=j!==null?j.key:null;if(typeof $=="string"&&$!==""||typeof $=="number")return we!==null?null:P(z,j,""+$,ie);if(typeof $=="object"&&$!==null){switch($.$$typeof){case B:return $.key===we?O(z,j,$,ie):null;case I:return $.key===we?U(z,j,$,ie):null;case oe:return we=$._init,X(z,j,we($._payload),ie)}if(dr($)||Z($))return we!==null?null:Q(z,j,$,ie,null);ls(z,$)}return null}function fe(z,j,$,ie,we){if(typeof ie=="string"&&ie!==""||typeof ie=="number")return z=z.get($)||null,P(j,z,""+ie,we);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case B:return z=z.get(ie.key===null?$:ie.key)||null,O(j,z,ie,we);case I:return z=z.get(ie.key===null?$:ie.key)||null,U(j,z,ie,we);case oe:var be=ie._init;return fe(z,j,$,be(ie._payload),we)}if(dr(ie)||Z(ie))return z=z.get($)||null,Q(j,z,ie,we,null);ls(j,ie)}return null}function me(z,j,$,ie){for(var we=null,be=null,Se=j,Ne=j=0,yt=null;Se!==null&&Ne<$.length;Ne++){Se.index>Ne?(yt=Se,Se=null):yt=Se.sibling;var Ge=X(z,Se,$[Ne],ie);if(Ge===null){Se===null&&(Se=yt);break}r&&Se&&Ge.alternate===null&&i(z,Se),j=y(Ge,j,Ne),be===null?we=Ge:be.sibling=Ge,be=Ge,Se=yt}if(Ne===$.length)return a(z,Se),nt&&Gr(z,Ne),we;if(Se===null){for(;Ne<$.length;Ne++)Se=ee(z,$[Ne],ie),Se!==null&&(j=y(Se,j,Ne),be===null?we=Se:be.sibling=Se,be=Se);return nt&&Gr(z,Ne),we}for(Se=f(z,Se);Ne<$.length;Ne++)yt=fe(Se,z,Ne,$[Ne],ie),yt!==null&&(r&&yt.alternate!==null&&Se.delete(yt.key===null?Ne:yt.key),j=y(yt,j,Ne),be===null?we=yt:be.sibling=yt,be=yt);return r&&Se.forEach(function(Or){return i(z,Or)}),nt&&Gr(z,Ne),we}function ve(z,j,$,ie){var we=Z($);if(typeof we!="function")throw Error(n(150));if($=we.call($),$==null)throw Error(n(151));for(var be=we=null,Se=j,Ne=j=0,yt=null,Ge=$.next();Se!==null&&!Ge.done;Ne++,Ge=$.next()){Se.index>Ne?(yt=Se,Se=null):yt=Se.sibling;var Or=X(z,Se,Ge.value,ie);if(Or===null){Se===null&&(Se=yt);break}r&&Se&&Or.alternate===null&&i(z,Se),j=y(Or,j,Ne),be===null?we=Or:be.sibling=Or,be=Or,Se=yt}if(Ge.done)return a(z,Se),nt&&Gr(z,Ne),we;if(Se===null){for(;!Ge.done;Ne++,Ge=$.next())Ge=ee(z,Ge.value,ie),Ge!==null&&(j=y(Ge,j,Ne),be===null?we=Ge:be.sibling=Ge,be=Ge);return nt&&Gr(z,Ne),we}for(Se=f(z,Se);!Ge.done;Ne++,Ge=$.next())Ge=fe(Se,z,Ne,Ge.value,ie),Ge!==null&&(r&&Ge.alternate!==null&&Se.delete(Ge.key===null?Ne:Ge.key),j=y(Ge,j,Ne),be===null?we=Ge:be.sibling=Ge,be=Ge);return r&&Se.forEach(function(Pb){return i(z,Pb)}),nt&&Gr(z,Ne),we}function at(z,j,$,ie){if(typeof $=="object"&&$!==null&&$.type===W&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case B:e:{for(var we=$.key,be=j;be!==null;){if(be.key===we){if(we=$.type,we===W){if(be.tag===7){a(z,be.sibling),j=m(be,$.props.children),j.return=z,z=j;break e}}else if(be.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===oe&&Ah(we)===be.type){a(z,be.sibling),j=m(be,$.props),j.ref=jo(z,be,$),j.return=z,z=j;break e}a(z,be);break}else i(z,be);be=be.sibling}$.type===W?(j=ti($.props.children,z.mode,ie,$.key),j.return=z,z=j):(ie=Ns($.type,$.key,$.props,null,z.mode,ie),ie.ref=jo(z,j,$),ie.return=z,z=ie)}return b(z);case I:e:{for(be=$.key;j!==null;){if(j.key===be)if(j.tag===4&&j.stateNode.containerInfo===$.containerInfo&&j.stateNode.implementation===$.implementation){a(z,j.sibling),j=m(j,$.children||[]),j.return=z,z=j;break e}else{a(z,j);break}else i(z,j);j=j.sibling}j=zc($,z.mode,ie),j.return=z,z=j}return b(z);case oe:return be=$._init,at(z,j,be($._payload),ie)}if(dr($))return me(z,j,$,ie);if(Z($))return ve(z,j,$,ie);ls(z,$)}return typeof $=="string"&&$!==""||typeof $=="number"?($=""+$,j!==null&&j.tag===6?(a(z,j.sibling),j=m(j,$),j.return=z,z=j):(a(z,j),j=Lc($,z.mode,ie),j.return=z,z=j),b(z)):a(z,j)}return at}var Ii=Ih(!0),Oh=Ih(!1),ss=br(null),as=null,Oi=null,Gu=null;function qu(){Gu=Oi=as=null}function Ku(r){var i=ss.current;et(ss),r._currentValue=i}function Yu(r,i,a){for(;r!==null;){var f=r.alternate;if((r.childLanes&i)!==i?(r.childLanes|=i,f!==null&&(f.childLanes|=i)):f!==null&&(f.childLanes&i)!==i&&(f.childLanes|=i),r===a)break;r=r.return}}function Mi(r,i){as=r,Gu=Oi=null,r=r.dependencies,r!==null&&r.firstContext!==null&&((r.lanes&i)!==0&&(Lt=!0),r.firstContext=null)}function nn(r){var i=r._currentValue;if(Gu!==r)if(r={context:r,memoizedValue:i,next:null},Oi===null){if(as===null)throw Error(n(308));Oi=r,as.dependencies={lanes:0,firstContext:r}}else Oi=Oi.next=r;return i}var qr=null;function Xu(r){qr===null?qr=[r]:qr.push(r)}function Mh(r,i,a,f){var m=i.interleaved;return m===null?(a.next=a,Xu(i)):(a.next=m.next,m.next=a),i.interleaved=a,Qn(r,f)}function Qn(r,i){r.lanes|=i;var a=r.alternate;for(a!==null&&(a.lanes|=i),a=r,r=r.return;r!==null;)r.childLanes|=i,a=r.alternate,a!==null&&(a.childLanes|=i),a=r,r=r.return;return a.tag===3?a.stateNode:null}var _r=!1;function Qu(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Dh(r,i){r=r.updateQueue,i.updateQueue===r&&(i.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Jn(r,i){return{eventTime:r,lane:i,tag:0,payload:null,callback:null,next:null}}function Er(r,i,a){var f=r.updateQueue;if(f===null)return null;if(f=f.shared,(He&2)!==0){var m=f.pending;return m===null?i.next=i:(i.next=m.next,m.next=i),f.pending=i,Qn(r,a)}return m=f.interleaved,m===null?(i.next=i,Xu(f)):(i.next=m.next,m.next=i),f.interleaved=i,Qn(r,a)}function us(r,i,a){if(i=i.updateQueue,i!==null&&(i=i.shared,(a&4194240)!==0)){var f=i.lanes;f&=r.pendingLanes,a|=f,i.lanes=a,du(r,a)}}function jh(r,i){var a=r.updateQueue,f=r.alternate;if(f!==null&&(f=f.updateQueue,a===f)){var m=null,y=null;if(a=a.firstBaseUpdate,a!==null){do{var b={eventTime:a.eventTime,lane:a.lane,tag:a.tag,payload:a.payload,callback:a.callback,next:null};y===null?m=y=b:y=y.next=b,a=a.next}while(a!==null);y===null?m=y=i:y=y.next=i}else m=y=i;a={baseState:f.baseState,firstBaseUpdate:m,lastBaseUpdate:y,shared:f.shared,effects:f.effects},r.updateQueue=a;return}r=a.lastBaseUpdate,r===null?a.firstBaseUpdate=i:r.next=i,a.lastBaseUpdate=i}function cs(r,i,a,f){var m=r.updateQueue;_r=!1;var y=m.firstBaseUpdate,b=m.lastBaseUpdate,P=m.shared.pending;if(P!==null){m.shared.pending=null;var O=P,U=O.next;O.next=null,b===null?y=U:b.next=U,b=O;var Q=r.alternate;Q!==null&&(Q=Q.updateQueue,P=Q.lastBaseUpdate,P!==b&&(P===null?Q.firstBaseUpdate=U:P.next=U,Q.lastBaseUpdate=O))}if(y!==null){var ee=m.baseState;b=0,Q=U=O=null,P=y;do{var X=P.lane,fe=P.eventTime;if((f&X)===X){Q!==null&&(Q=Q.next={eventTime:fe,lane:0,tag:P.tag,payload:P.payload,callback:P.callback,next:null});e:{var me=r,ve=P;switch(X=i,fe=a,ve.tag){case 1:if(me=ve.payload,typeof me=="function"){ee=me.call(fe,ee,X);break e}ee=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=ve.payload,X=typeof me=="function"?me.call(fe,ee,X):me,X==null)break e;ee=_({},ee,X);break e;case 2:_r=!0}}P.callback!==null&&P.lane!==0&&(r.flags|=64,X=m.effects,X===null?m.effects=[P]:X.push(P))}else fe={eventTime:fe,lane:X,tag:P.tag,payload:P.payload,callback:P.callback,next:null},Q===null?(U=Q=fe,O=ee):Q=Q.next=fe,b|=X;if(P=P.next,P===null){if(P=m.shared.pending,P===null)break;X=P,P=X.next,X.next=null,m.lastBaseUpdate=X,m.shared.pending=null}}while(!0);if(Q===null&&(O=ee),m.baseState=O,m.firstBaseUpdate=U,m.lastBaseUpdate=Q,i=m.shared.interleaved,i!==null){m=i;do b|=m.lane,m=m.next;while(m!==i)}else y===null&&(m.shared.lanes=0);Xr|=b,r.lanes=b,r.memoizedState=ee}}function Lh(r,i,a){if(r=i.effects,i.effects=null,r!==null)for(i=0;i<r.length;i++){var f=r[i],m=f.callback;if(m!==null){if(f.callback=null,f=a,typeof m!="function")throw Error(n(191,m));m.call(f)}}}var Lo={},An=br(Lo),zo=br(Lo),Fo=br(Lo);function Kr(r){if(r===Lo)throw Error(n(174));return r}function Ju(r,i){switch(Xe(Fo,i),Xe(zo,r),Xe(An,Lo),r=i.nodeType,r){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:le(null,"");break;default:r=r===8?i.parentNode:i,i=r.namespaceURI||null,r=r.tagName,i=le(i,r)}et(An),Xe(An,i)}function Di(){et(An),et(zo),et(Fo)}function zh(r){Kr(Fo.current);var i=Kr(An.current),a=le(i,r.type);i!==a&&(Xe(zo,r),Xe(An,a))}function ec(r){zo.current===r&&(et(An),et(zo))}var it=br(0);function fs(r){for(var i=r;i!==null;){if(i.tag===13){var a=i.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var tc=[];function nc(){for(var r=0;r<tc.length;r++)tc[r]._workInProgressVersionPrimary=null;tc.length=0}var ds=F.ReactCurrentDispatcher,rc=F.ReactCurrentBatchConfig,Yr=0,ot=null,dt=null,mt=null,ps=!1,$o=!1,Bo=0,X1=0;function St(){throw Error(n(321))}function ic(r,i){if(i===null)return!1;for(var a=0;a<i.length&&a<r.length;a++)if(!mn(r[a],i[a]))return!1;return!0}function oc(r,i,a,f,m,y){if(Yr=y,ot=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,ds.current=r===null||r.memoizedState===null?tb:nb,r=a(f,m),$o){y=0;do{if($o=!1,Bo=0,25<=y)throw Error(n(301));y+=1,mt=dt=null,i.updateQueue=null,ds.current=rb,r=a(f,m)}while($o)}if(ds.current=gs,i=dt!==null&&dt.next!==null,Yr=0,mt=dt=ot=null,ps=!1,i)throw Error(n(300));return r}function lc(){var r=Bo!==0;return Bo=0,r}function In(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?ot.memoizedState=mt=r:mt=mt.next=r,mt}function rn(){if(dt===null){var r=ot.alternate;r=r!==null?r.memoizedState:null}else r=dt.next;var i=mt===null?ot.memoizedState:mt.next;if(i!==null)mt=i,dt=r;else{if(r===null)throw Error(n(310));dt=r,r={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},mt===null?ot.memoizedState=mt=r:mt=mt.next=r}return mt}function Uo(r,i){return typeof i=="function"?i(r):i}function sc(r){var i=rn(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var f=dt,m=f.baseQueue,y=a.pending;if(y!==null){if(m!==null){var b=m.next;m.next=y.next,y.next=b}f.baseQueue=m=y,a.pending=null}if(m!==null){y=m.next,f=f.baseState;var P=b=null,O=null,U=y;do{var Q=U.lane;if((Yr&Q)===Q)O!==null&&(O=O.next={lane:0,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),f=U.hasEagerState?U.eagerState:r(f,U.action);else{var ee={lane:Q,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null};O===null?(P=O=ee,b=f):O=O.next=ee,ot.lanes|=Q,Xr|=Q}U=U.next}while(U!==null&&U!==y);O===null?b=f:O.next=P,mn(f,i.memoizedState)||(Lt=!0),i.memoizedState=f,i.baseState=b,i.baseQueue=O,a.lastRenderedState=f}if(r=a.interleaved,r!==null){m=r;do y=m.lane,ot.lanes|=y,Xr|=y,m=m.next;while(m!==r)}else m===null&&(a.lanes=0);return[i.memoizedState,a.dispatch]}function ac(r){var i=rn(),a=i.queue;if(a===null)throw Error(n(311));a.lastRenderedReducer=r;var f=a.dispatch,m=a.pending,y=i.memoizedState;if(m!==null){a.pending=null;var b=m=m.next;do y=r(y,b.action),b=b.next;while(b!==m);mn(y,i.memoizedState)||(Lt=!0),i.memoizedState=y,i.baseQueue===null&&(i.baseState=y),a.lastRenderedState=y}return[y,f]}function Fh(){}function $h(r,i){var a=ot,f=rn(),m=i(),y=!mn(f.memoizedState,m);if(y&&(f.memoizedState=m,Lt=!0),f=f.queue,uc(Vh.bind(null,a,f,r),[r]),f.getSnapshot!==i||y||mt!==null&&mt.memoizedState.tag&1){if(a.flags|=2048,Vo(9,Uh.bind(null,a,f,m,i),void 0,null),gt===null)throw Error(n(349));(Yr&30)!==0||Bh(a,i,m)}return m}function Bh(r,i,a){r.flags|=16384,r={getSnapshot:i,value:a},i=ot.updateQueue,i===null?(i={lastEffect:null,stores:null},ot.updateQueue=i,i.stores=[r]):(a=i.stores,a===null?i.stores=[r]:a.push(r))}function Uh(r,i,a,f){i.value=a,i.getSnapshot=f,Wh(i)&&Hh(r)}function Vh(r,i,a){return a(function(){Wh(i)&&Hh(r)})}function Wh(r){var i=r.getSnapshot;r=r.value;try{var a=i();return!mn(r,a)}catch{return!0}}function Hh(r){var i=Qn(r,1);i!==null&&wn(i,r,1,-1)}function Zh(r){var i=In();return typeof r=="function"&&(r=r()),i.memoizedState=i.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Uo,lastRenderedState:r},i.queue=r,r=r.dispatch=eb.bind(null,ot,r),[i.memoizedState,r]}function Vo(r,i,a,f){return r={tag:r,create:i,destroy:a,deps:f,next:null},i=ot.updateQueue,i===null?(i={lastEffect:null,stores:null},ot.updateQueue=i,i.lastEffect=r.next=r):(a=i.lastEffect,a===null?i.lastEffect=r.next=r:(f=a.next,a.next=r,r.next=f,i.lastEffect=r)),r}function Gh(){return rn().memoizedState}function hs(r,i,a,f){var m=In();ot.flags|=r,m.memoizedState=Vo(1|i,a,void 0,f===void 0?null:f)}function ms(r,i,a,f){var m=rn();f=f===void 0?null:f;var y=void 0;if(dt!==null){var b=dt.memoizedState;if(y=b.destroy,f!==null&&ic(f,b.deps)){m.memoizedState=Vo(i,a,y,f);return}}ot.flags|=r,m.memoizedState=Vo(1|i,a,y,f)}function qh(r,i){return hs(8390656,8,r,i)}function uc(r,i){return ms(2048,8,r,i)}function Kh(r,i){return ms(4,2,r,i)}function Yh(r,i){return ms(4,4,r,i)}function Xh(r,i){if(typeof i=="function")return r=r(),i(r),function(){i(null)};if(i!=null)return r=r(),i.current=r,function(){i.current=null}}function Qh(r,i,a){return a=a!=null?a.concat([r]):null,ms(4,4,Xh.bind(null,i,r),a)}function cc(){}function Jh(r,i){var a=rn();i=i===void 0?null:i;var f=a.memoizedState;return f!==null&&i!==null&&ic(i,f[1])?f[0]:(a.memoizedState=[r,i],r)}function em(r,i){var a=rn();i=i===void 0?null:i;var f=a.memoizedState;return f!==null&&i!==null&&ic(i,f[1])?f[0]:(r=r(),a.memoizedState=[r,i],r)}function tm(r,i,a){return(Yr&21)===0?(r.baseState&&(r.baseState=!1,Lt=!0),r.memoizedState=a):(mn(a,i)||(a=Ap(),ot.lanes|=a,Xr|=a,r.baseState=!0),i)}function Q1(r,i){var a=qe;qe=a!==0&&4>a?a:4,r(!0);var f=rc.transition;rc.transition={};try{r(!1),i()}finally{qe=a,rc.transition=f}}function nm(){return rn().memoizedState}function J1(r,i,a){var f=Nr(r);if(a={lane:f,action:a,hasEagerState:!1,eagerState:null,next:null},rm(r))im(i,a);else if(a=Mh(r,i,a,f),a!==null){var m=At();wn(a,r,f,m),om(a,i,f)}}function eb(r,i,a){var f=Nr(r),m={lane:f,action:a,hasEagerState:!1,eagerState:null,next:null};if(rm(r))im(i,m);else{var y=r.alternate;if(r.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var b=i.lastRenderedState,P=y(b,a);if(m.hasEagerState=!0,m.eagerState=P,mn(P,b)){var O=i.interleaved;O===null?(m.next=m,Xu(i)):(m.next=O.next,O.next=m),i.interleaved=m;return}}catch{}a=Mh(r,i,m,f),a!==null&&(m=At(),wn(a,r,f,m),om(a,i,f))}}function rm(r){var i=r.alternate;return r===ot||i!==null&&i===ot}function im(r,i){$o=ps=!0;var a=r.pending;a===null?i.next=i:(i.next=a.next,a.next=i),r.pending=i}function om(r,i,a){if((a&4194240)!==0){var f=i.lanes;f&=r.pendingLanes,a|=f,i.lanes=a,du(r,a)}}var gs={readContext:nn,useCallback:St,useContext:St,useEffect:St,useImperativeHandle:St,useInsertionEffect:St,useLayoutEffect:St,useMemo:St,useReducer:St,useRef:St,useState:St,useDebugValue:St,useDeferredValue:St,useTransition:St,useMutableSource:St,useSyncExternalStore:St,useId:St,unstable_isNewReconciler:!1},tb={readContext:nn,useCallback:function(r,i){return In().memoizedState=[r,i===void 0?null:i],r},useContext:nn,useEffect:qh,useImperativeHandle:function(r,i,a){return a=a!=null?a.concat([r]):null,hs(4194308,4,Xh.bind(null,i,r),a)},useLayoutEffect:function(r,i){return hs(4194308,4,r,i)},useInsertionEffect:function(r,i){return hs(4,2,r,i)},useMemo:function(r,i){var a=In();return i=i===void 0?null:i,r=r(),a.memoizedState=[r,i],r},useReducer:function(r,i,a){var f=In();return i=a!==void 0?a(i):i,f.memoizedState=f.baseState=i,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:i},f.queue=r,r=r.dispatch=J1.bind(null,ot,r),[f.memoizedState,r]},useRef:function(r){var i=In();return r={current:r},i.memoizedState=r},useState:Zh,useDebugValue:cc,useDeferredValue:function(r){return In().memoizedState=r},useTransition:function(){var r=Zh(!1),i=r[0];return r=Q1.bind(null,r[1]),In().memoizedState=r,[i,r]},useMutableSource:function(){},useSyncExternalStore:function(r,i,a){var f=ot,m=In();if(nt){if(a===void 0)throw Error(n(407));a=a()}else{if(a=i(),gt===null)throw Error(n(349));(Yr&30)!==0||Bh(f,i,a)}m.memoizedState=a;var y={value:a,getSnapshot:i};return m.queue=y,qh(Vh.bind(null,f,y,r),[r]),f.flags|=2048,Vo(9,Uh.bind(null,f,y,a,i),void 0,null),a},useId:function(){var r=In(),i=gt.identifierPrefix;if(nt){var a=Xn,f=Yn;a=(f&~(1<<32-hn(f)-1)).toString(32)+a,i=":"+i+"R"+a,a=Bo++,0<a&&(i+="H"+a.toString(32)),i+=":"}else a=X1++,i=":"+i+"r"+a.toString(32)+":";return r.memoizedState=i},unstable_isNewReconciler:!1},nb={readContext:nn,useCallback:Jh,useContext:nn,useEffect:uc,useImperativeHandle:Qh,useInsertionEffect:Kh,useLayoutEffect:Yh,useMemo:em,useReducer:sc,useRef:Gh,useState:function(){return sc(Uo)},useDebugValue:cc,useDeferredValue:function(r){var i=rn();return tm(i,dt.memoizedState,r)},useTransition:function(){var r=sc(Uo)[0],i=rn().memoizedState;return[r,i]},useMutableSource:Fh,useSyncExternalStore:$h,useId:nm,unstable_isNewReconciler:!1},rb={readContext:nn,useCallback:Jh,useContext:nn,useEffect:uc,useImperativeHandle:Qh,useInsertionEffect:Kh,useLayoutEffect:Yh,useMemo:em,useReducer:ac,useRef:Gh,useState:function(){return ac(Uo)},useDebugValue:cc,useDeferredValue:function(r){var i=rn();return dt===null?i.memoizedState=r:tm(i,dt.memoizedState,r)},useTransition:function(){var r=ac(Uo)[0],i=rn().memoizedState;return[r,i]},useMutableSource:Fh,useSyncExternalStore:$h,useId:nm,unstable_isNewReconciler:!1};function yn(r,i){if(r&&r.defaultProps){i=_({},i),r=r.defaultProps;for(var a in r)i[a]===void 0&&(i[a]=r[a]);return i}return i}function fc(r,i,a,f){i=r.memoizedState,a=a(f,i),a=a==null?i:_({},i,a),r.memoizedState=a,r.lanes===0&&(r.updateQueue.baseState=a)}var ys={isMounted:function(r){return(r=r._reactInternals)?Vr(r)===r:!1},enqueueSetState:function(r,i,a){r=r._reactInternals;var f=At(),m=Nr(r),y=Jn(f,m);y.payload=i,a!=null&&(y.callback=a),i=Er(r,y,m),i!==null&&(wn(i,r,m,f),us(i,r,m))},enqueueReplaceState:function(r,i,a){r=r._reactInternals;var f=At(),m=Nr(r),y=Jn(f,m);y.tag=1,y.payload=i,a!=null&&(y.callback=a),i=Er(r,y,m),i!==null&&(wn(i,r,m,f),us(i,r,m))},enqueueForceUpdate:function(r,i){r=r._reactInternals;var a=At(),f=Nr(r),m=Jn(a,f);m.tag=2,i!=null&&(m.callback=i),i=Er(r,m,f),i!==null&&(wn(i,r,f,a),us(i,r,f))}};function lm(r,i,a,f,m,y,b){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(f,y,b):i.prototype&&i.prototype.isPureReactComponent?!Po(a,f)||!Po(m,y):!0}function sm(r,i,a){var f=!1,m=Sr,y=i.contextType;return typeof y=="object"&&y!==null?y=nn(y):(m=jt(i)?Hr:bt.current,f=i.contextTypes,y=(f=f!=null)?Ti(r,m):Sr),i=new i(a,y),r.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=ys,r.stateNode=i,i._reactInternals=r,f&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=m,r.__reactInternalMemoizedMaskedChildContext=y),i}function am(r,i,a,f){r=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(a,f),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(a,f),i.state!==r&&ys.enqueueReplaceState(i,i.state,null)}function dc(r,i,a,f){var m=r.stateNode;m.props=a,m.state=r.memoizedState,m.refs={},Qu(r);var y=i.contextType;typeof y=="object"&&y!==null?m.context=nn(y):(y=jt(i)?Hr:bt.current,m.context=Ti(r,y)),m.state=r.memoizedState,y=i.getDerivedStateFromProps,typeof y=="function"&&(fc(r,i,y,a),m.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(i=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),i!==m.state&&ys.enqueueReplaceState(m,m.state,null),cs(r,a,m,f),m.state=r.memoizedState),typeof m.componentDidMount=="function"&&(r.flags|=4194308)}function ji(r,i){try{var a="",f=i;do a+=Re(f),f=f.return;while(f);var m=a}catch(y){m=`
7
+ Error generating stack: `+y.message+`
8
+ `+y.stack}return{value:r,source:i,stack:m,digest:null}}function pc(r,i,a){return{value:r,source:null,stack:a??null,digest:i??null}}function hc(r,i){try{console.error(i.value)}catch(a){setTimeout(function(){throw a})}}var ib=typeof WeakMap=="function"?WeakMap:Map;function um(r,i,a){a=Jn(-1,a),a.tag=3,a.payload={element:null};var f=i.value;return a.callback=function(){Cs||(Cs=!0,Pc=f),hc(r,i)},a}function cm(r,i,a){a=Jn(-1,a),a.tag=3;var f=r.type.getDerivedStateFromError;if(typeof f=="function"){var m=i.value;a.payload=function(){return f(m)},a.callback=function(){hc(r,i)}}var y=r.stateNode;return y!==null&&typeof y.componentDidCatch=="function"&&(a.callback=function(){hc(r,i),typeof f!="function"&&(Tr===null?Tr=new Set([this]):Tr.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})}),a}function fm(r,i,a){var f=r.pingCache;if(f===null){f=r.pingCache=new ib;var m=new Set;f.set(i,m)}else m=f.get(i),m===void 0&&(m=new Set,f.set(i,m));m.has(a)||(m.add(a),r=vb.bind(null,r,i,a),i.then(r,r))}function dm(r){do{var i;if((i=r.tag===13)&&(i=r.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return r;r=r.return}while(r!==null);return null}function pm(r,i,a,f,m){return(r.mode&1)===0?(r===i?r.flags|=65536:(r.flags|=128,a.flags|=131072,a.flags&=-52805,a.tag===1&&(a.alternate===null?a.tag=17:(i=Jn(-1,1),i.tag=2,Er(a,i,1))),a.lanes|=1),r):(r.flags|=65536,r.lanes=m,r)}var ob=F.ReactCurrentOwner,Lt=!1;function Nt(r,i,a,f){i.child=r===null?Oh(i,null,a,f):Ii(i,r.child,a,f)}function hm(r,i,a,f,m){a=a.render;var y=i.ref;return Mi(i,m),f=oc(r,i,a,f,y,m),a=lc(),r!==null&&!Lt?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~m,er(r,i,m)):(nt&&a&&Uu(i),i.flags|=1,Nt(r,i,f,m),i.child)}function mm(r,i,a,f,m){if(r===null){var y=a.type;return typeof y=="function"&&!jc(y)&&y.defaultProps===void 0&&a.compare===null&&a.defaultProps===void 0?(i.tag=15,i.type=y,gm(r,i,y,f,m)):(r=Ns(a.type,null,f,i,i.mode,m),r.ref=i.ref,r.return=i,i.child=r)}if(y=r.child,(r.lanes&m)===0){var b=y.memoizedProps;if(a=a.compare,a=a!==null?a:Po,a(b,f)&&r.ref===i.ref)return er(r,i,m)}return i.flags|=1,r=Ir(y,f),r.ref=i.ref,r.return=i,i.child=r}function gm(r,i,a,f,m){if(r!==null){var y=r.memoizedProps;if(Po(y,f)&&r.ref===i.ref)if(Lt=!1,i.pendingProps=f=y,(r.lanes&m)!==0)(r.flags&131072)!==0&&(Lt=!0);else return i.lanes=r.lanes,er(r,i,m)}return mc(r,i,a,f,m)}function ym(r,i,a){var f=i.pendingProps,m=f.children,y=r!==null?r.memoizedState:null;if(f.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xe(zi,qt),qt|=a;else{if((a&1073741824)===0)return r=y!==null?y.baseLanes|a:a,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:r,cachePool:null,transitions:null},i.updateQueue=null,Xe(zi,qt),qt|=r,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},f=y!==null?y.baseLanes:a,Xe(zi,qt),qt|=f}else y!==null?(f=y.baseLanes|a,i.memoizedState=null):f=a,Xe(zi,qt),qt|=f;return Nt(r,i,m,a),i.child}function vm(r,i){var a=i.ref;(r===null&&a!==null||r!==null&&r.ref!==a)&&(i.flags|=512,i.flags|=2097152)}function mc(r,i,a,f,m){var y=jt(a)?Hr:bt.current;return y=Ti(i,y),Mi(i,m),a=oc(r,i,a,f,y,m),f=lc(),r!==null&&!Lt?(i.updateQueue=r.updateQueue,i.flags&=-2053,r.lanes&=~m,er(r,i,m)):(nt&&f&&Uu(i),i.flags|=1,Nt(r,i,a,m),i.child)}function xm(r,i,a,f,m){if(jt(a)){var y=!0;ts(i)}else y=!1;if(Mi(i,m),i.stateNode===null)xs(r,i),sm(i,a,f),dc(i,a,f,m),f=!0;else if(r===null){var b=i.stateNode,P=i.memoizedProps;b.props=P;var O=b.context,U=a.contextType;typeof U=="object"&&U!==null?U=nn(U):(U=jt(a)?Hr:bt.current,U=Ti(i,U));var Q=a.getDerivedStateFromProps,ee=typeof Q=="function"||typeof b.getSnapshotBeforeUpdate=="function";ee||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(P!==f||O!==U)&&am(i,b,f,U),_r=!1;var X=i.memoizedState;b.state=X,cs(i,f,b,m),O=i.memoizedState,P!==f||X!==O||Dt.current||_r?(typeof Q=="function"&&(fc(i,a,Q,f),O=i.memoizedState),(P=_r||lm(i,a,P,f,X,O,U))?(ee||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(i.flags|=4194308)):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=f,i.memoizedState=O),b.props=f,b.state=O,b.context=U,f=P):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),f=!1)}else{b=i.stateNode,Dh(r,i),P=i.memoizedProps,U=i.type===i.elementType?P:yn(i.type,P),b.props=U,ee=i.pendingProps,X=b.context,O=a.contextType,typeof O=="object"&&O!==null?O=nn(O):(O=jt(a)?Hr:bt.current,O=Ti(i,O));var fe=a.getDerivedStateFromProps;(Q=typeof fe=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(P!==ee||X!==O)&&am(i,b,f,O),_r=!1,X=i.memoizedState,b.state=X,cs(i,f,b,m);var me=i.memoizedState;P!==ee||X!==me||Dt.current||_r?(typeof fe=="function"&&(fc(i,a,fe,f),me=i.memoizedState),(U=_r||lm(i,a,U,f,X,me,O)||!1)?(Q||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(f,me,O),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(f,me,O)),typeof b.componentDidUpdate=="function"&&(i.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof b.componentDidUpdate!="function"||P===r.memoizedProps&&X===r.memoizedState||(i.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||P===r.memoizedProps&&X===r.memoizedState||(i.flags|=1024),i.memoizedProps=f,i.memoizedState=me),b.props=f,b.state=me,b.context=O,f=U):(typeof b.componentDidUpdate!="function"||P===r.memoizedProps&&X===r.memoizedState||(i.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||P===r.memoizedProps&&X===r.memoizedState||(i.flags|=1024),f=!1)}return gc(r,i,a,f,y,m)}function gc(r,i,a,f,m,y){vm(r,i);var b=(i.flags&128)!==0;if(!f&&!b)return m&&Ch(i,a,!1),er(r,i,y);f=i.stateNode,ob.current=i;var P=b&&typeof a.getDerivedStateFromError!="function"?null:f.render();return i.flags|=1,r!==null&&b?(i.child=Ii(i,r.child,null,y),i.child=Ii(i,null,P,y)):Nt(r,i,P,y),i.memoizedState=f.state,m&&Ch(i,a,!0),i.child}function wm(r){var i=r.stateNode;i.pendingContext?bh(r,i.pendingContext,i.pendingContext!==i.context):i.context&&bh(r,i.context,!1),Ju(r,i.containerInfo)}function km(r,i,a,f,m){return Ai(),Zu(m),i.flags|=256,Nt(r,i,a,f),i.child}var yc={dehydrated:null,treeContext:null,retryLane:0};function vc(r){return{baseLanes:r,cachePool:null,transitions:null}}function bm(r,i,a){var f=i.pendingProps,m=it.current,y=!1,b=(i.flags&128)!==0,P;if((P=b)||(P=r!==null&&r.memoizedState===null?!1:(m&2)!==0),P?(y=!0,i.flags&=-129):(r===null||r.memoizedState!==null)&&(m|=1),Xe(it,m&1),r===null)return Hu(i),r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?((i.mode&1)===0?i.lanes=1:r.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(b=f.children,r=f.fallback,y?(f=i.mode,y=i.child,b={mode:"hidden",children:b},(f&1)===0&&y!==null?(y.childLanes=0,y.pendingProps=b):y=As(b,f,0,null),r=ti(r,f,a,null),y.return=i,r.return=i,y.sibling=r,i.child=y,i.child.memoizedState=vc(a),i.memoizedState=yc,r):xc(i,b));if(m=r.memoizedState,m!==null&&(P=m.dehydrated,P!==null))return lb(r,i,b,f,P,m,a);if(y){y=f.fallback,b=i.mode,m=r.child,P=m.sibling;var O={mode:"hidden",children:f.children};return(b&1)===0&&i.child!==m?(f=i.child,f.childLanes=0,f.pendingProps=O,i.deletions=null):(f=Ir(m,O),f.subtreeFlags=m.subtreeFlags&14680064),P!==null?y=Ir(P,y):(y=ti(y,b,a,null),y.flags|=2),y.return=i,f.return=i,f.sibling=y,i.child=f,f=y,y=i.child,b=r.child.memoizedState,b=b===null?vc(a):{baseLanes:b.baseLanes|a,cachePool:null,transitions:b.transitions},y.memoizedState=b,y.childLanes=r.childLanes&~a,i.memoizedState=yc,f}return y=r.child,r=y.sibling,f=Ir(y,{mode:"visible",children:f.children}),(i.mode&1)===0&&(f.lanes=a),f.return=i,f.sibling=null,r!==null&&(a=i.deletions,a===null?(i.deletions=[r],i.flags|=16):a.push(r)),i.child=f,i.memoizedState=null,f}function xc(r,i){return i=As({mode:"visible",children:i},r.mode,0,null),i.return=r,r.child=i}function vs(r,i,a,f){return f!==null&&Zu(f),Ii(i,r.child,null,a),r=xc(i,i.pendingProps.children),r.flags|=2,i.memoizedState=null,r}function lb(r,i,a,f,m,y,b){if(a)return i.flags&256?(i.flags&=-257,f=pc(Error(n(422))),vs(r,i,b,f)):i.memoizedState!==null?(i.child=r.child,i.flags|=128,null):(y=f.fallback,m=i.mode,f=As({mode:"visible",children:f.children},m,0,null),y=ti(y,m,b,null),y.flags|=2,f.return=i,y.return=i,f.sibling=y,i.child=f,(i.mode&1)!==0&&Ii(i,r.child,null,b),i.child.memoizedState=vc(b),i.memoizedState=yc,y);if((i.mode&1)===0)return vs(r,i,b,null);if(m.data==="$!"){if(f=m.nextSibling&&m.nextSibling.dataset,f)var P=f.dgst;return f=P,y=Error(n(419)),f=pc(y,f,void 0),vs(r,i,b,f)}if(P=(b&r.childLanes)!==0,Lt||P){if(f=gt,f!==null){switch(b&-b){case 4:m=2;break;case 16:m=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:m=32;break;case 536870912:m=268435456;break;default:m=0}m=(m&(f.suspendedLanes|b))!==0?0:m,m!==0&&m!==y.retryLane&&(y.retryLane=m,Qn(r,m),wn(f,r,m,-1))}return Dc(),f=pc(Error(n(421))),vs(r,i,b,f)}return m.data==="$?"?(i.flags|=128,i.child=r.child,i=xb.bind(null,r),m._reactRetry=i,null):(r=y.treeContext,Gt=kr(m.nextSibling),Zt=i,nt=!0,gn=null,r!==null&&(en[tn++]=Yn,en[tn++]=Xn,en[tn++]=Zr,Yn=r.id,Xn=r.overflow,Zr=i),i=xc(i,f.children),i.flags|=4096,i)}function Sm(r,i,a){r.lanes|=i;var f=r.alternate;f!==null&&(f.lanes|=i),Yu(r.return,i,a)}function wc(r,i,a,f,m){var y=r.memoizedState;y===null?r.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:f,tail:a,tailMode:m}:(y.isBackwards=i,y.rendering=null,y.renderingStartTime=0,y.last=f,y.tail=a,y.tailMode=m)}function Cm(r,i,a){var f=i.pendingProps,m=f.revealOrder,y=f.tail;if(Nt(r,i,f.children,a),f=it.current,(f&2)!==0)f=f&1|2,i.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=i.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Sm(r,a,i);else if(r.tag===19)Sm(r,a,i);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}f&=1}if(Xe(it,f),(i.mode&1)===0)i.memoizedState=null;else switch(m){case"forwards":for(a=i.child,m=null;a!==null;)r=a.alternate,r!==null&&fs(r)===null&&(m=a),a=a.sibling;a=m,a===null?(m=i.child,i.child=null):(m=a.sibling,a.sibling=null),wc(i,!1,m,a,y);break;case"backwards":for(a=null,m=i.child,i.child=null;m!==null;){if(r=m.alternate,r!==null&&fs(r)===null){i.child=m;break}r=m.sibling,m.sibling=a,a=m,m=r}wc(i,!0,a,null,y);break;case"together":wc(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function xs(r,i){(i.mode&1)===0&&r!==null&&(r.alternate=null,i.alternate=null,i.flags|=2)}function er(r,i,a){if(r!==null&&(i.dependencies=r.dependencies),Xr|=i.lanes,(a&i.childLanes)===0)return null;if(r!==null&&i.child!==r.child)throw Error(n(153));if(i.child!==null){for(r=i.child,a=Ir(r,r.pendingProps),i.child=a,a.return=i;r.sibling!==null;)r=r.sibling,a=a.sibling=Ir(r,r.pendingProps),a.return=i;a.sibling=null}return i.child}function sb(r,i,a){switch(i.tag){case 3:wm(i),Ai();break;case 5:zh(i);break;case 1:jt(i.type)&&ts(i);break;case 4:Ju(i,i.stateNode.containerInfo);break;case 10:var f=i.type._context,m=i.memoizedProps.value;Xe(ss,f._currentValue),f._currentValue=m;break;case 13:if(f=i.memoizedState,f!==null)return f.dehydrated!==null?(Xe(it,it.current&1),i.flags|=128,null):(a&i.child.childLanes)!==0?bm(r,i,a):(Xe(it,it.current&1),r=er(r,i,a),r!==null?r.sibling:null);Xe(it,it.current&1);break;case 19:if(f=(a&i.childLanes)!==0,(r.flags&128)!==0){if(f)return Cm(r,i,a);i.flags|=128}if(m=i.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),Xe(it,it.current),f)break;return null;case 22:case 23:return i.lanes=0,ym(r,i,a)}return er(r,i,a)}var _m,kc,Em,Rm;_m=function(r,i){for(var a=i.child;a!==null;){if(a.tag===5||a.tag===6)r.appendChild(a.stateNode);else if(a.tag!==4&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break;for(;a.sibling===null;){if(a.return===null||a.return===i)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},kc=function(){},Em=function(r,i,a,f){var m=r.memoizedProps;if(m!==f){r=i.stateNode,Kr(An.current);var y=null;switch(a){case"input":m=uo(r,m),f=uo(r,f),y=[];break;case"select":m=_({},m,{value:void 0}),f=_({},f,{value:void 0}),y=[];break;case"textarea":m=po(r,m),f=po(r,f),y=[];break;default:typeof m.onClick!="function"&&typeof f.onClick=="function"&&(r.onclick=Ql)}xt(a,f);var b;a=null;for(U in m)if(!f.hasOwnProperty(U)&&m.hasOwnProperty(U)&&m[U]!=null)if(U==="style"){var P=m[U];for(b in P)P.hasOwnProperty(b)&&(a||(a={}),a[b]="")}else U!=="dangerouslySetInnerHTML"&&U!=="children"&&U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&U!=="autoFocus"&&(l.hasOwnProperty(U)?y||(y=[]):(y=y||[]).push(U,null));for(U in f){var O=f[U];if(P=m?.[U],f.hasOwnProperty(U)&&O!==P&&(O!=null||P!=null))if(U==="style")if(P){for(b in P)!P.hasOwnProperty(b)||O&&O.hasOwnProperty(b)||(a||(a={}),a[b]="");for(b in O)O.hasOwnProperty(b)&&P[b]!==O[b]&&(a||(a={}),a[b]=O[b])}else a||(y||(y=[]),y.push(U,a)),a=O;else U==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,P=P?P.__html:void 0,O!=null&&P!==O&&(y=y||[]).push(U,O)):U==="children"?typeof O!="string"&&typeof O!="number"||(y=y||[]).push(U,""+O):U!=="suppressContentEditableWarning"&&U!=="suppressHydrationWarning"&&(l.hasOwnProperty(U)?(O!=null&&U==="onScroll"&&Je("scroll",r),y||P===O||(y=[])):(y=y||[]).push(U,O))}a&&(y=y||[]).push("style",a);var U=y;(i.updateQueue=U)&&(i.flags|=4)}},Rm=function(r,i,a,f){a!==f&&(i.flags|=4)};function Wo(r,i){if(!nt)switch(r.tailMode){case"hidden":i=r.tail;for(var a=null;i!==null;)i.alternate!==null&&(a=i),i=i.sibling;a===null?r.tail=null:a.sibling=null;break;case"collapsed":a=r.tail;for(var f=null;a!==null;)a.alternate!==null&&(f=a),a=a.sibling;f===null?i||r.tail===null?r.tail=null:r.tail.sibling=null:f.sibling=null}}function Ct(r){var i=r.alternate!==null&&r.alternate.child===r.child,a=0,f=0;if(i)for(var m=r.child;m!==null;)a|=m.lanes|m.childLanes,f|=m.subtreeFlags&14680064,f|=m.flags&14680064,m.return=r,m=m.sibling;else for(m=r.child;m!==null;)a|=m.lanes|m.childLanes,f|=m.subtreeFlags,f|=m.flags,m.return=r,m=m.sibling;return r.subtreeFlags|=f,r.childLanes=a,i}function ab(r,i,a){var f=i.pendingProps;switch(Vu(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ct(i),null;case 1:return jt(i.type)&&es(),Ct(i),null;case 3:return f=i.stateNode,Di(),et(Dt),et(bt),nc(),f.pendingContext&&(f.context=f.pendingContext,f.pendingContext=null),(r===null||r.child===null)&&(os(i)?i.flags|=4:r===null||r.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,gn!==null&&(Ic(gn),gn=null))),kc(r,i),Ct(i),null;case 5:ec(i);var m=Kr(Fo.current);if(a=i.type,r!==null&&i.stateNode!=null)Em(r,i,a,f,m),r.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!f){if(i.stateNode===null)throw Error(n(166));return Ct(i),null}if(r=Kr(An.current),os(i)){f=i.stateNode,a=i.type;var y=i.memoizedProps;switch(f[Nn]=i,f[Mo]=y,r=(i.mode&1)!==0,a){case"dialog":Je("cancel",f),Je("close",f);break;case"iframe":case"object":case"embed":Je("load",f);break;case"video":case"audio":for(m=0;m<Ao.length;m++)Je(Ao[m],f);break;case"source":Je("error",f);break;case"img":case"image":case"link":Je("error",f),Je("load",f);break;case"details":Je("toggle",f);break;case"input":co(f,y),Je("invalid",f);break;case"select":f._wrapperState={wasMultiple:!!y.multiple},Je("invalid",f);break;case"textarea":Tl(f,y),Je("invalid",f)}xt(a,y),m=null;for(var b in y)if(y.hasOwnProperty(b)){var P=y[b];b==="children"?typeof P=="string"?f.textContent!==P&&(y.suppressHydrationWarning!==!0&&Xl(f.textContent,P,r),m=["children",P]):typeof P=="number"&&f.textContent!==""+P&&(y.suppressHydrationWarning!==!0&&Xl(f.textContent,P,r),m=["children",""+P]):l.hasOwnProperty(b)&&P!=null&&b==="onScroll"&&Je("scroll",f)}switch(a){case"input":Pt(f),Rl(f,y,!0);break;case"textarea":Pt(f),Nl(f);break;case"select":case"option":break;default:typeof y.onClick=="function"&&(f.onclick=Ql)}f=m,i.updateQueue=f,f!==null&&(i.flags|=4)}else{b=m.nodeType===9?m:m.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=G(a)),r==="http://www.w3.org/1999/xhtml"?a==="script"?(r=b.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof f.is=="string"?r=b.createElement(a,{is:f.is}):(r=b.createElement(a),a==="select"&&(b=r,f.multiple?b.multiple=!0:f.size&&(b.size=f.size))):r=b.createElementNS(r,a),r[Nn]=i,r[Mo]=f,_m(r,i,!1,!1),i.stateNode=r;e:{switch(b=Tn(a,f),a){case"dialog":Je("cancel",r),Je("close",r),m=f;break;case"iframe":case"object":case"embed":Je("load",r),m=f;break;case"video":case"audio":for(m=0;m<Ao.length;m++)Je(Ao[m],r);m=f;break;case"source":Je("error",r),m=f;break;case"img":case"image":case"link":Je("error",r),Je("load",r),m=f;break;case"details":Je("toggle",r),m=f;break;case"input":co(r,f),m=uo(r,f),Je("invalid",r);break;case"option":m=f;break;case"select":r._wrapperState={wasMultiple:!!f.multiple},m=_({},f,{value:void 0}),Je("invalid",r);break;case"textarea":Tl(r,f),m=po(r,f),Je("invalid",r);break;default:m=f}xt(a,m),P=m;for(y in P)if(P.hasOwnProperty(y)){var O=P[y];y==="style"?hr(r,O):y==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,O!=null&&ze(r,O)):y==="children"?typeof O=="string"?(a!=="textarea"||O!=="")&&We(r,O):typeof O=="number"&&We(r,""+O):y!=="suppressContentEditableWarning"&&y!=="suppressHydrationWarning"&&y!=="autoFocus"&&(l.hasOwnProperty(y)?O!=null&&y==="onScroll"&&Je("scroll",r):O!=null&&N(r,y,O,b))}switch(a){case"input":Pt(r),Rl(r,f,!1);break;case"textarea":Pt(r),Nl(r);break;case"option":f.value!=null&&r.setAttribute("value",""+Pe(f.value));break;case"select":r.multiple=!!f.multiple,y=f.value,y!=null?pr(r,!!f.multiple,y,!1):f.defaultValue!=null&&pr(r,!!f.multiple,f.defaultValue,!0);break;default:typeof m.onClick=="function"&&(r.onclick=Ql)}switch(a){case"button":case"input":case"select":case"textarea":f=!!f.autoFocus;break e;case"img":f=!0;break e;default:f=!1}}f&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Ct(i),null;case 6:if(r&&i.stateNode!=null)Rm(r,i,r.memoizedProps,f);else{if(typeof f!="string"&&i.stateNode===null)throw Error(n(166));if(a=Kr(Fo.current),Kr(An.current),os(i)){if(f=i.stateNode,a=i.memoizedProps,f[Nn]=i,(y=f.nodeValue!==a)&&(r=Zt,r!==null))switch(r.tag){case 3:Xl(f.nodeValue,a,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Xl(f.nodeValue,a,(r.mode&1)!==0)}y&&(i.flags|=4)}else f=(a.nodeType===9?a:a.ownerDocument).createTextNode(f),f[Nn]=i,i.stateNode=f}return Ct(i),null;case 13:if(et(it),f=i.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(nt&&Gt!==null&&(i.mode&1)!==0&&(i.flags&128)===0)Nh(),Ai(),i.flags|=98560,y=!1;else if(y=os(i),f!==null&&f.dehydrated!==null){if(r===null){if(!y)throw Error(n(318));if(y=i.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(n(317));y[Nn]=i}else Ai(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;Ct(i),y=!1}else gn!==null&&(Ic(gn),gn=null),y=!0;if(!y)return i.flags&65536?i:null}return(i.flags&128)!==0?(i.lanes=a,i):(f=f!==null,f!==(r!==null&&r.memoizedState!==null)&&f&&(i.child.flags|=8192,(i.mode&1)!==0&&(r===null||(it.current&1)!==0?pt===0&&(pt=3):Dc())),i.updateQueue!==null&&(i.flags|=4),Ct(i),null);case 4:return Di(),kc(r,i),r===null&&Io(i.stateNode.containerInfo),Ct(i),null;case 10:return Ku(i.type._context),Ct(i),null;case 17:return jt(i.type)&&es(),Ct(i),null;case 19:if(et(it),y=i.memoizedState,y===null)return Ct(i),null;if(f=(i.flags&128)!==0,b=y.rendering,b===null)if(f)Wo(y,!1);else{if(pt!==0||r!==null&&(r.flags&128)!==0)for(r=i.child;r!==null;){if(b=fs(r),b!==null){for(i.flags|=128,Wo(y,!1),f=b.updateQueue,f!==null&&(i.updateQueue=f,i.flags|=4),i.subtreeFlags=0,f=a,a=i.child;a!==null;)y=a,r=f,y.flags&=14680066,b=y.alternate,b===null?(y.childLanes=0,y.lanes=r,y.child=null,y.subtreeFlags=0,y.memoizedProps=null,y.memoizedState=null,y.updateQueue=null,y.dependencies=null,y.stateNode=null):(y.childLanes=b.childLanes,y.lanes=b.lanes,y.child=b.child,y.subtreeFlags=0,y.deletions=null,y.memoizedProps=b.memoizedProps,y.memoizedState=b.memoizedState,y.updateQueue=b.updateQueue,y.type=b.type,r=b.dependencies,y.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),a=a.sibling;return Xe(it,it.current&1|2),i.child}r=r.sibling}y.tail!==null&&st()>Fi&&(i.flags|=128,f=!0,Wo(y,!1),i.lanes=4194304)}else{if(!f)if(r=fs(b),r!==null){if(i.flags|=128,f=!0,a=r.updateQueue,a!==null&&(i.updateQueue=a,i.flags|=4),Wo(y,!0),y.tail===null&&y.tailMode==="hidden"&&!b.alternate&&!nt)return Ct(i),null}else 2*st()-y.renderingStartTime>Fi&&a!==1073741824&&(i.flags|=128,f=!0,Wo(y,!1),i.lanes=4194304);y.isBackwards?(b.sibling=i.child,i.child=b):(a=y.last,a!==null?a.sibling=b:i.child=b,y.last=b)}return y.tail!==null?(i=y.tail,y.rendering=i,y.tail=i.sibling,y.renderingStartTime=st(),i.sibling=null,a=it.current,Xe(it,f?a&1|2:a&1),i):(Ct(i),null);case 22:case 23:return Mc(),f=i.memoizedState!==null,r!==null&&r.memoizedState!==null!==f&&(i.flags|=8192),f&&(i.mode&1)!==0?(qt&1073741824)!==0&&(Ct(i),i.subtreeFlags&6&&(i.flags|=8192)):Ct(i),null;case 24:return null;case 25:return null}throw Error(n(156,i.tag))}function ub(r,i){switch(Vu(i),i.tag){case 1:return jt(i.type)&&es(),r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 3:return Di(),et(Dt),et(bt),nc(),r=i.flags,(r&65536)!==0&&(r&128)===0?(i.flags=r&-65537|128,i):null;case 5:return ec(i),null;case 13:if(et(it),r=i.memoizedState,r!==null&&r.dehydrated!==null){if(i.alternate===null)throw Error(n(340));Ai()}return r=i.flags,r&65536?(i.flags=r&-65537|128,i):null;case 19:return et(it),null;case 4:return Di(),null;case 10:return Ku(i.type._context),null;case 22:case 23:return Mc(),null;case 24:return null;default:return null}}var ws=!1,_t=!1,cb=typeof WeakSet=="function"?WeakSet:Set,pe=null;function Li(r,i){var a=r.ref;if(a!==null)if(typeof a=="function")try{a(null)}catch(f){lt(r,i,f)}else a.current=null}function bc(r,i,a){try{a()}catch(f){lt(r,i,f)}}var Tm=!1;function fb(r,i){if(Mu=$l,r=lh(),Eu(r)){if("selectionStart"in r)var a={start:r.selectionStart,end:r.selectionEnd};else e:{a=(a=r.ownerDocument)&&a.defaultView||window;var f=a.getSelection&&a.getSelection();if(f&&f.rangeCount!==0){a=f.anchorNode;var m=f.anchorOffset,y=f.focusNode;f=f.focusOffset;try{a.nodeType,y.nodeType}catch{a=null;break e}var b=0,P=-1,O=-1,U=0,Q=0,ee=r,X=null;t:for(;;){for(var fe;ee!==a||m!==0&&ee.nodeType!==3||(P=b+m),ee!==y||f!==0&&ee.nodeType!==3||(O=b+f),ee.nodeType===3&&(b+=ee.nodeValue.length),(fe=ee.firstChild)!==null;)X=ee,ee=fe;for(;;){if(ee===r)break t;if(X===a&&++U===m&&(P=b),X===y&&++Q===f&&(O=b),(fe=ee.nextSibling)!==null)break;ee=X,X=ee.parentNode}ee=fe}a=P===-1||O===-1?null:{start:P,end:O}}else a=null}a=a||{start:0,end:0}}else a=null;for(Du={focusedElem:r,selectionRange:a},$l=!1,pe=i;pe!==null;)if(i=pe,r=i.child,(i.subtreeFlags&1028)!==0&&r!==null)r.return=i,pe=r;else for(;pe!==null;){i=pe;try{var me=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(me!==null){var ve=me.memoizedProps,at=me.memoizedState,z=i.stateNode,j=z.getSnapshotBeforeUpdate(i.elementType===i.type?ve:yn(i.type,ve),at);z.__reactInternalSnapshotBeforeUpdate=j}break;case 3:var $=i.stateNode.containerInfo;$.nodeType===1?$.textContent="":$.nodeType===9&&$.documentElement&&$.removeChild($.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(ie){lt(i,i.return,ie)}if(r=i.sibling,r!==null){r.return=i.return,pe=r;break}pe=i.return}return me=Tm,Tm=!1,me}function Ho(r,i,a){var f=i.updateQueue;if(f=f!==null?f.lastEffect:null,f!==null){var m=f=f.next;do{if((m.tag&r)===r){var y=m.destroy;m.destroy=void 0,y!==void 0&&bc(i,a,y)}m=m.next}while(m!==f)}}function ks(r,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var a=i=i.next;do{if((a.tag&r)===r){var f=a.create;a.destroy=f()}a=a.next}while(a!==i)}}function Sc(r){var i=r.ref;if(i!==null){var a=r.stateNode;r.tag,r=a,typeof i=="function"?i(r):i.current=r}}function Pm(r){var i=r.alternate;i!==null&&(r.alternate=null,Pm(i)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(i=r.stateNode,i!==null&&(delete i[Nn],delete i[Mo],delete i[Fu],delete i[G1],delete i[q1])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Nm(r){return r.tag===5||r.tag===3||r.tag===4}function Am(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Nm(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Cc(r,i,a){var f=r.tag;if(f===5||f===6)r=r.stateNode,i?a.nodeType===8?a.parentNode.insertBefore(r,i):a.insertBefore(r,i):(a.nodeType===8?(i=a.parentNode,i.insertBefore(r,a)):(i=a,i.appendChild(r)),a=a._reactRootContainer,a!=null||i.onclick!==null||(i.onclick=Ql));else if(f!==4&&(r=r.child,r!==null))for(Cc(r,i,a),r=r.sibling;r!==null;)Cc(r,i,a),r=r.sibling}function _c(r,i,a){var f=r.tag;if(f===5||f===6)r=r.stateNode,i?a.insertBefore(r,i):a.appendChild(r);else if(f!==4&&(r=r.child,r!==null))for(_c(r,i,a),r=r.sibling;r!==null;)_c(r,i,a),r=r.sibling}var wt=null,vn=!1;function Rr(r,i,a){for(a=a.child;a!==null;)Im(r,i,a),a=a.sibling}function Im(r,i,a){if(Pn&&typeof Pn.onCommitFiberUnmount=="function")try{Pn.onCommitFiberUnmount(Ml,a)}catch{}switch(a.tag){case 5:_t||Li(a,i);case 6:var f=wt,m=vn;wt=null,Rr(r,i,a),wt=f,vn=m,wt!==null&&(vn?(r=wt,a=a.stateNode,r.nodeType===8?r.parentNode.removeChild(a):r.removeChild(a)):wt.removeChild(a.stateNode));break;case 18:wt!==null&&(vn?(r=wt,a=a.stateNode,r.nodeType===8?zu(r.parentNode,a):r.nodeType===1&&zu(r,a),So(r)):zu(wt,a.stateNode));break;case 4:f=wt,m=vn,wt=a.stateNode.containerInfo,vn=!0,Rr(r,i,a),wt=f,vn=m;break;case 0:case 11:case 14:case 15:if(!_t&&(f=a.updateQueue,f!==null&&(f=f.lastEffect,f!==null))){m=f=f.next;do{var y=m,b=y.destroy;y=y.tag,b!==void 0&&((y&2)!==0||(y&4)!==0)&&bc(a,i,b),m=m.next}while(m!==f)}Rr(r,i,a);break;case 1:if(!_t&&(Li(a,i),f=a.stateNode,typeof f.componentWillUnmount=="function"))try{f.props=a.memoizedProps,f.state=a.memoizedState,f.componentWillUnmount()}catch(P){lt(a,i,P)}Rr(r,i,a);break;case 21:Rr(r,i,a);break;case 22:a.mode&1?(_t=(f=_t)||a.memoizedState!==null,Rr(r,i,a),_t=f):Rr(r,i,a);break;default:Rr(r,i,a)}}function Om(r){var i=r.updateQueue;if(i!==null){r.updateQueue=null;var a=r.stateNode;a===null&&(a=r.stateNode=new cb),i.forEach(function(f){var m=wb.bind(null,r,f);a.has(f)||(a.add(f),f.then(m,m))})}}function xn(r,i){var a=i.deletions;if(a!==null)for(var f=0;f<a.length;f++){var m=a[f];try{var y=r,b=i,P=b;e:for(;P!==null;){switch(P.tag){case 5:wt=P.stateNode,vn=!1;break e;case 3:wt=P.stateNode.containerInfo,vn=!0;break e;case 4:wt=P.stateNode.containerInfo,vn=!0;break e}P=P.return}if(wt===null)throw Error(n(160));Im(y,b,m),wt=null,vn=!1;var O=m.alternate;O!==null&&(O.return=null),m.return=null}catch(U){lt(m,i,U)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)Mm(i,r),i=i.sibling}function Mm(r,i){var a=r.alternate,f=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(xn(i,r),On(r),f&4){try{Ho(3,r,r.return),ks(3,r)}catch(ve){lt(r,r.return,ve)}try{Ho(5,r,r.return)}catch(ve){lt(r,r.return,ve)}}break;case 1:xn(i,r),On(r),f&512&&a!==null&&Li(a,a.return);break;case 5:if(xn(i,r),On(r),f&512&&a!==null&&Li(a,a.return),r.flags&32){var m=r.stateNode;try{We(m,"")}catch(ve){lt(r,r.return,ve)}}if(f&4&&(m=r.stateNode,m!=null)){var y=r.memoizedProps,b=a!==null?a.memoizedProps:y,P=r.type,O=r.updateQueue;if(r.updateQueue=null,O!==null)try{P==="input"&&y.type==="radio"&&y.name!=null&&fo(m,y),Tn(P,b);var U=Tn(P,y);for(b=0;b<O.length;b+=2){var Q=O[b],ee=O[b+1];Q==="style"?hr(m,ee):Q==="dangerouslySetInnerHTML"?ze(m,ee):Q==="children"?We(m,ee):N(m,Q,ee,U)}switch(P){case"input":mi(m,y);break;case"textarea":Pl(m,y);break;case"select":var X=m._wrapperState.wasMultiple;m._wrapperState.wasMultiple=!!y.multiple;var fe=y.value;fe!=null?pr(m,!!y.multiple,fe,!1):X!==!!y.multiple&&(y.defaultValue!=null?pr(m,!!y.multiple,y.defaultValue,!0):pr(m,!!y.multiple,y.multiple?[]:"",!1))}m[Mo]=y}catch(ve){lt(r,r.return,ve)}}break;case 6:if(xn(i,r),On(r),f&4){if(r.stateNode===null)throw Error(n(162));m=r.stateNode,y=r.memoizedProps;try{m.nodeValue=y}catch(ve){lt(r,r.return,ve)}}break;case 3:if(xn(i,r),On(r),f&4&&a!==null&&a.memoizedState.isDehydrated)try{So(i.containerInfo)}catch(ve){lt(r,r.return,ve)}break;case 4:xn(i,r),On(r);break;case 13:xn(i,r),On(r),m=r.child,m.flags&8192&&(y=m.memoizedState!==null,m.stateNode.isHidden=y,!y||m.alternate!==null&&m.alternate.memoizedState!==null||(Tc=st())),f&4&&Om(r);break;case 22:if(Q=a!==null&&a.memoizedState!==null,r.mode&1?(_t=(U=_t)||Q,xn(i,r),_t=U):xn(i,r),On(r),f&8192){if(U=r.memoizedState!==null,(r.stateNode.isHidden=U)&&!Q&&(r.mode&1)!==0)for(pe=r,Q=r.child;Q!==null;){for(ee=pe=Q;pe!==null;){switch(X=pe,fe=X.child,X.tag){case 0:case 11:case 14:case 15:Ho(4,X,X.return);break;case 1:Li(X,X.return);var me=X.stateNode;if(typeof me.componentWillUnmount=="function"){f=X,a=X.return;try{i=f,me.props=i.memoizedProps,me.state=i.memoizedState,me.componentWillUnmount()}catch(ve){lt(f,a,ve)}}break;case 5:Li(X,X.return);break;case 22:if(X.memoizedState!==null){Lm(ee);continue}}fe!==null?(fe.return=X,pe=fe):Lm(ee)}Q=Q.sibling}e:for(Q=null,ee=r;;){if(ee.tag===5){if(Q===null){Q=ee;try{m=ee.stateNode,U?(y=m.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none"):(P=ee.stateNode,O=ee.memoizedProps.style,b=O!=null&&O.hasOwnProperty("display")?O.display:null,P.style.display=Jt("display",b))}catch(ve){lt(r,r.return,ve)}}}else if(ee.tag===6){if(Q===null)try{ee.stateNode.nodeValue=U?"":ee.memoizedProps}catch(ve){lt(r,r.return,ve)}}else if((ee.tag!==22&&ee.tag!==23||ee.memoizedState===null||ee===r)&&ee.child!==null){ee.child.return=ee,ee=ee.child;continue}if(ee===r)break e;for(;ee.sibling===null;){if(ee.return===null||ee.return===r)break e;Q===ee&&(Q=null),ee=ee.return}Q===ee&&(Q=null),ee.sibling.return=ee.return,ee=ee.sibling}}break;case 19:xn(i,r),On(r),f&4&&Om(r);break;case 21:break;default:xn(i,r),On(r)}}function On(r){var i=r.flags;if(i&2){try{e:{for(var a=r.return;a!==null;){if(Nm(a)){var f=a;break e}a=a.return}throw Error(n(160))}switch(f.tag){case 5:var m=f.stateNode;f.flags&32&&(We(m,""),f.flags&=-33);var y=Am(r);_c(r,y,m);break;case 3:case 4:var b=f.stateNode.containerInfo,P=Am(r);Cc(r,P,b);break;default:throw Error(n(161))}}catch(O){lt(r,r.return,O)}r.flags&=-3}i&4096&&(r.flags&=-4097)}function db(r,i,a){pe=r,Dm(r)}function Dm(r,i,a){for(var f=(r.mode&1)!==0;pe!==null;){var m=pe,y=m.child;if(m.tag===22&&f){var b=m.memoizedState!==null||ws;if(!b){var P=m.alternate,O=P!==null&&P.memoizedState!==null||_t;P=ws;var U=_t;if(ws=b,(_t=O)&&!U)for(pe=m;pe!==null;)b=pe,O=b.child,b.tag===22&&b.memoizedState!==null?zm(m):O!==null?(O.return=b,pe=O):zm(m);for(;y!==null;)pe=y,Dm(y),y=y.sibling;pe=m,ws=P,_t=U}jm(r)}else(m.subtreeFlags&8772)!==0&&y!==null?(y.return=m,pe=y):jm(r)}}function jm(r){for(;pe!==null;){var i=pe;if((i.flags&8772)!==0){var a=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:_t||ks(5,i);break;case 1:var f=i.stateNode;if(i.flags&4&&!_t)if(a===null)f.componentDidMount();else{var m=i.elementType===i.type?a.memoizedProps:yn(i.type,a.memoizedProps);f.componentDidUpdate(m,a.memoizedState,f.__reactInternalSnapshotBeforeUpdate)}var y=i.updateQueue;y!==null&&Lh(i,y,f);break;case 3:var b=i.updateQueue;if(b!==null){if(a=null,i.child!==null)switch(i.child.tag){case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}Lh(i,b,a)}break;case 5:var P=i.stateNode;if(a===null&&i.flags&4){a=P;var O=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":O.autoFocus&&a.focus();break;case"img":O.src&&(a.src=O.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var U=i.alternate;if(U!==null){var Q=U.memoizedState;if(Q!==null){var ee=Q.dehydrated;ee!==null&&So(ee)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(n(163))}_t||i.flags&512&&Sc(i)}catch(X){lt(i,i.return,X)}}if(i===r){pe=null;break}if(a=i.sibling,a!==null){a.return=i.return,pe=a;break}pe=i.return}}function Lm(r){for(;pe!==null;){var i=pe;if(i===r){pe=null;break}var a=i.sibling;if(a!==null){a.return=i.return,pe=a;break}pe=i.return}}function zm(r){for(;pe!==null;){var i=pe;try{switch(i.tag){case 0:case 11:case 15:var a=i.return;try{ks(4,i)}catch(O){lt(i,a,O)}break;case 1:var f=i.stateNode;if(typeof f.componentDidMount=="function"){var m=i.return;try{f.componentDidMount()}catch(O){lt(i,m,O)}}var y=i.return;try{Sc(i)}catch(O){lt(i,y,O)}break;case 5:var b=i.return;try{Sc(i)}catch(O){lt(i,b,O)}}}catch(O){lt(i,i.return,O)}if(i===r){pe=null;break}var P=i.sibling;if(P!==null){P.return=i.return,pe=P;break}pe=i.return}}var pb=Math.ceil,bs=F.ReactCurrentDispatcher,Ec=F.ReactCurrentOwner,on=F.ReactCurrentBatchConfig,He=0,gt=null,ut=null,kt=0,qt=0,zi=br(0),pt=0,Zo=null,Xr=0,Ss=0,Rc=0,Go=null,zt=null,Tc=0,Fi=1/0,tr=null,Cs=!1,Pc=null,Tr=null,_s=!1,Pr=null,Es=0,qo=0,Nc=null,Rs=-1,Ts=0;function At(){return(He&6)!==0?st():Rs!==-1?Rs:Rs=st()}function Nr(r){return(r.mode&1)===0?1:(He&2)!==0&&kt!==0?kt&-kt:Y1.transition!==null?(Ts===0&&(Ts=Ap()),Ts):(r=qe,r!==0||(r=window.event,r=r===void 0?16:$p(r.type)),r)}function wn(r,i,a,f){if(50<qo)throw qo=0,Nc=null,Error(n(185));vo(r,a,f),((He&2)===0||r!==gt)&&(r===gt&&((He&2)===0&&(Ss|=a),pt===4&&Ar(r,kt)),Ft(r,f),a===1&&He===0&&(i.mode&1)===0&&(Fi=st()+500,ns&&Cr()))}function Ft(r,i){var a=r.callbackNode;Y0(r,i);var f=Ll(r,r===gt?kt:0);if(f===0)a!==null&&Tp(a),r.callbackNode=null,r.callbackPriority=0;else if(i=f&-f,r.callbackPriority!==i){if(a!=null&&Tp(a),i===1)r.tag===0?K1($m.bind(null,r)):_h($m.bind(null,r)),H1(function(){(He&6)===0&&Cr()}),a=null;else{switch(Ip(f)){case 1:a=uu;break;case 4:a=Pp;break;case 16:a=Ol;break;case 536870912:a=Np;break;default:a=Ol}a=qm(a,Fm.bind(null,r))}r.callbackPriority=i,r.callbackNode=a}}function Fm(r,i){if(Rs=-1,Ts=0,(He&6)!==0)throw Error(n(327));var a=r.callbackNode;if($i()&&r.callbackNode!==a)return null;var f=Ll(r,r===gt?kt:0);if(f===0)return null;if((f&30)!==0||(f&r.expiredLanes)!==0||i)i=Ps(r,f);else{i=f;var m=He;He|=2;var y=Um();(gt!==r||kt!==i)&&(tr=null,Fi=st()+500,Jr(r,i));do try{gb();break}catch(P){Bm(r,P)}while(!0);qu(),bs.current=y,He=m,ut!==null?i=0:(gt=null,kt=0,i=pt)}if(i!==0){if(i===2&&(m=cu(r),m!==0&&(f=m,i=Ac(r,m))),i===1)throw a=Zo,Jr(r,0),Ar(r,f),Ft(r,st()),a;if(i===6)Ar(r,f);else{if(m=r.current.alternate,(f&30)===0&&!hb(m)&&(i=Ps(r,f),i===2&&(y=cu(r),y!==0&&(f=y,i=Ac(r,y))),i===1))throw a=Zo,Jr(r,0),Ar(r,f),Ft(r,st()),a;switch(r.finishedWork=m,r.finishedLanes=f,i){case 0:case 1:throw Error(n(345));case 2:ei(r,zt,tr);break;case 3:if(Ar(r,f),(f&130023424)===f&&(i=Tc+500-st(),10<i)){if(Ll(r,0)!==0)break;if(m=r.suspendedLanes,(m&f)!==f){At(),r.pingedLanes|=r.suspendedLanes&m;break}r.timeoutHandle=Lu(ei.bind(null,r,zt,tr),i);break}ei(r,zt,tr);break;case 4:if(Ar(r,f),(f&4194240)===f)break;for(i=r.eventTimes,m=-1;0<f;){var b=31-hn(f);y=1<<b,b=i[b],b>m&&(m=b),f&=~y}if(f=m,f=st()-f,f=(120>f?120:480>f?480:1080>f?1080:1920>f?1920:3e3>f?3e3:4320>f?4320:1960*pb(f/1960))-f,10<f){r.timeoutHandle=Lu(ei.bind(null,r,zt,tr),f);break}ei(r,zt,tr);break;case 5:ei(r,zt,tr);break;default:throw Error(n(329))}}}return Ft(r,st()),r.callbackNode===a?Fm.bind(null,r):null}function Ac(r,i){var a=Go;return r.current.memoizedState.isDehydrated&&(Jr(r,i).flags|=256),r=Ps(r,i),r!==2&&(i=zt,zt=a,i!==null&&Ic(i)),r}function Ic(r){zt===null?zt=r:zt.push.apply(zt,r)}function hb(r){for(var i=r;;){if(i.flags&16384){var a=i.updateQueue;if(a!==null&&(a=a.stores,a!==null))for(var f=0;f<a.length;f++){var m=a[f],y=m.getSnapshot;m=m.value;try{if(!mn(y(),m))return!1}catch{return!1}}}if(a=i.child,i.subtreeFlags&16384&&a!==null)a.return=i,i=a;else{if(i===r)break;for(;i.sibling===null;){if(i.return===null||i.return===r)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Ar(r,i){for(i&=~Rc,i&=~Ss,r.suspendedLanes|=i,r.pingedLanes&=~i,r=r.expirationTimes;0<i;){var a=31-hn(i),f=1<<a;r[a]=-1,i&=~f}}function $m(r){if((He&6)!==0)throw Error(n(327));$i();var i=Ll(r,0);if((i&1)===0)return Ft(r,st()),null;var a=Ps(r,i);if(r.tag!==0&&a===2){var f=cu(r);f!==0&&(i=f,a=Ac(r,f))}if(a===1)throw a=Zo,Jr(r,0),Ar(r,i),Ft(r,st()),a;if(a===6)throw Error(n(345));return r.finishedWork=r.current.alternate,r.finishedLanes=i,ei(r,zt,tr),Ft(r,st()),null}function Oc(r,i){var a=He;He|=1;try{return r(i)}finally{He=a,He===0&&(Fi=st()+500,ns&&Cr())}}function Qr(r){Pr!==null&&Pr.tag===0&&(He&6)===0&&$i();var i=He;He|=1;var a=on.transition,f=qe;try{if(on.transition=null,qe=1,r)return r()}finally{qe=f,on.transition=a,He=i,(He&6)===0&&Cr()}}function Mc(){qt=zi.current,et(zi)}function Jr(r,i){r.finishedWork=null,r.finishedLanes=0;var a=r.timeoutHandle;if(a!==-1&&(r.timeoutHandle=-1,W1(a)),ut!==null)for(a=ut.return;a!==null;){var f=a;switch(Vu(f),f.tag){case 1:f=f.type.childContextTypes,f!=null&&es();break;case 3:Di(),et(Dt),et(bt),nc();break;case 5:ec(f);break;case 4:Di();break;case 13:et(it);break;case 19:et(it);break;case 10:Ku(f.type._context);break;case 22:case 23:Mc()}a=a.return}if(gt=r,ut=r=Ir(r.current,null),kt=qt=i,pt=0,Zo=null,Rc=Ss=Xr=0,zt=Go=null,qr!==null){for(i=0;i<qr.length;i++)if(a=qr[i],f=a.interleaved,f!==null){a.interleaved=null;var m=f.next,y=a.pending;if(y!==null){var b=y.next;y.next=m,f.next=b}a.pending=f}qr=null}return r}function Bm(r,i){do{var a=ut;try{if(qu(),ds.current=gs,ps){for(var f=ot.memoizedState;f!==null;){var m=f.queue;m!==null&&(m.pending=null),f=f.next}ps=!1}if(Yr=0,mt=dt=ot=null,$o=!1,Bo=0,Ec.current=null,a===null||a.return===null){pt=1,Zo=i,ut=null;break}e:{var y=r,b=a.return,P=a,O=i;if(i=kt,P.flags|=32768,O!==null&&typeof O=="object"&&typeof O.then=="function"){var U=O,Q=P,ee=Q.tag;if((Q.mode&1)===0&&(ee===0||ee===11||ee===15)){var X=Q.alternate;X?(Q.updateQueue=X.updateQueue,Q.memoizedState=X.memoizedState,Q.lanes=X.lanes):(Q.updateQueue=null,Q.memoizedState=null)}var fe=dm(b);if(fe!==null){fe.flags&=-257,pm(fe,b,P,y,i),fe.mode&1&&fm(y,U,i),i=fe,O=U;var me=i.updateQueue;if(me===null){var ve=new Set;ve.add(O),i.updateQueue=ve}else me.add(O);break e}else{if((i&1)===0){fm(y,U,i),Dc();break e}O=Error(n(426))}}else if(nt&&P.mode&1){var at=dm(b);if(at!==null){(at.flags&65536)===0&&(at.flags|=256),pm(at,b,P,y,i),Zu(ji(O,P));break e}}y=O=ji(O,P),pt!==4&&(pt=2),Go===null?Go=[y]:Go.push(y),y=b;do{switch(y.tag){case 3:y.flags|=65536,i&=-i,y.lanes|=i;var z=um(y,O,i);jh(y,z);break e;case 1:P=O;var j=y.type,$=y.stateNode;if((y.flags&128)===0&&(typeof j.getDerivedStateFromError=="function"||$!==null&&typeof $.componentDidCatch=="function"&&(Tr===null||!Tr.has($)))){y.flags|=65536,i&=-i,y.lanes|=i;var ie=cm(y,P,i);jh(y,ie);break e}}y=y.return}while(y!==null)}Wm(a)}catch(we){i=we,ut===a&&a!==null&&(ut=a=a.return);continue}break}while(!0)}function Um(){var r=bs.current;return bs.current=gs,r===null?gs:r}function Dc(){(pt===0||pt===3||pt===2)&&(pt=4),gt===null||(Xr&268435455)===0&&(Ss&268435455)===0||Ar(gt,kt)}function Ps(r,i){var a=He;He|=2;var f=Um();(gt!==r||kt!==i)&&(tr=null,Jr(r,i));do try{mb();break}catch(m){Bm(r,m)}while(!0);if(qu(),He=a,bs.current=f,ut!==null)throw Error(n(261));return gt=null,kt=0,pt}function mb(){for(;ut!==null;)Vm(ut)}function gb(){for(;ut!==null&&!B0();)Vm(ut)}function Vm(r){var i=Gm(r.alternate,r,qt);r.memoizedProps=r.pendingProps,i===null?Wm(r):ut=i,Ec.current=null}function Wm(r){var i=r;do{var a=i.alternate;if(r=i.return,(i.flags&32768)===0){if(a=ab(a,i,qt),a!==null){ut=a;return}}else{if(a=ub(a,i),a!==null){a.flags&=32767,ut=a;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{pt=6,ut=null;return}}if(i=i.sibling,i!==null){ut=i;return}ut=i=r}while(i!==null);pt===0&&(pt=5)}function ei(r,i,a){var f=qe,m=on.transition;try{on.transition=null,qe=1,yb(r,i,a,f)}finally{on.transition=m,qe=f}return null}function yb(r,i,a,f){do $i();while(Pr!==null);if((He&6)!==0)throw Error(n(327));a=r.finishedWork;var m=r.finishedLanes;if(a===null)return null;if(r.finishedWork=null,r.finishedLanes=0,a===r.current)throw Error(n(177));r.callbackNode=null,r.callbackPriority=0;var y=a.lanes|a.childLanes;if(X0(r,y),r===gt&&(ut=gt=null,kt=0),(a.subtreeFlags&2064)===0&&(a.flags&2064)===0||_s||(_s=!0,qm(Ol,function(){return $i(),null})),y=(a.flags&15990)!==0,(a.subtreeFlags&15990)!==0||y){y=on.transition,on.transition=null;var b=qe;qe=1;var P=He;He|=4,Ec.current=null,fb(r,a),Mm(a,r),L1(Du),$l=!!Mu,Du=Mu=null,r.current=a,db(a),U0(),He=P,qe=b,on.transition=y}else r.current=a;if(_s&&(_s=!1,Pr=r,Es=m),y=r.pendingLanes,y===0&&(Tr=null),H0(a.stateNode),Ft(r,st()),i!==null)for(f=r.onRecoverableError,a=0;a<i.length;a++)m=i[a],f(m.value,{componentStack:m.stack,digest:m.digest});if(Cs)throw Cs=!1,r=Pc,Pc=null,r;return(Es&1)!==0&&r.tag!==0&&$i(),y=r.pendingLanes,(y&1)!==0?r===Nc?qo++:(qo=0,Nc=r):qo=0,Cr(),null}function $i(){if(Pr!==null){var r=Ip(Es),i=on.transition,a=qe;try{if(on.transition=null,qe=16>r?16:r,Pr===null)var f=!1;else{if(r=Pr,Pr=null,Es=0,(He&6)!==0)throw Error(n(331));var m=He;for(He|=4,pe=r.current;pe!==null;){var y=pe,b=y.child;if((pe.flags&16)!==0){var P=y.deletions;if(P!==null){for(var O=0;O<P.length;O++){var U=P[O];for(pe=U;pe!==null;){var Q=pe;switch(Q.tag){case 0:case 11:case 15:Ho(8,Q,y)}var ee=Q.child;if(ee!==null)ee.return=Q,pe=ee;else for(;pe!==null;){Q=pe;var X=Q.sibling,fe=Q.return;if(Pm(Q),Q===U){pe=null;break}if(X!==null){X.return=fe,pe=X;break}pe=fe}}}var me=y.alternate;if(me!==null){var ve=me.child;if(ve!==null){me.child=null;do{var at=ve.sibling;ve.sibling=null,ve=at}while(ve!==null)}}pe=y}}if((y.subtreeFlags&2064)!==0&&b!==null)b.return=y,pe=b;else e:for(;pe!==null;){if(y=pe,(y.flags&2048)!==0)switch(y.tag){case 0:case 11:case 15:Ho(9,y,y.return)}var z=y.sibling;if(z!==null){z.return=y.return,pe=z;break e}pe=y.return}}var j=r.current;for(pe=j;pe!==null;){b=pe;var $=b.child;if((b.subtreeFlags&2064)!==0&&$!==null)$.return=b,pe=$;else e:for(b=j;pe!==null;){if(P=pe,(P.flags&2048)!==0)try{switch(P.tag){case 0:case 11:case 15:ks(9,P)}}catch(we){lt(P,P.return,we)}if(P===b){pe=null;break e}var ie=P.sibling;if(ie!==null){ie.return=P.return,pe=ie;break e}pe=P.return}}if(He=m,Cr(),Pn&&typeof Pn.onPostCommitFiberRoot=="function")try{Pn.onPostCommitFiberRoot(Ml,r)}catch{}f=!0}return f}finally{qe=a,on.transition=i}}return!1}function Hm(r,i,a){i=ji(a,i),i=um(r,i,1),r=Er(r,i,1),i=At(),r!==null&&(vo(r,1,i),Ft(r,i))}function lt(r,i,a){if(r.tag===3)Hm(r,r,a);else for(;i!==null;){if(i.tag===3){Hm(i,r,a);break}else if(i.tag===1){var f=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof f.componentDidCatch=="function"&&(Tr===null||!Tr.has(f))){r=ji(a,r),r=cm(i,r,1),i=Er(i,r,1),r=At(),i!==null&&(vo(i,1,r),Ft(i,r));break}}i=i.return}}function vb(r,i,a){var f=r.pingCache;f!==null&&f.delete(i),i=At(),r.pingedLanes|=r.suspendedLanes&a,gt===r&&(kt&a)===a&&(pt===4||pt===3&&(kt&130023424)===kt&&500>st()-Tc?Jr(r,0):Rc|=a),Ft(r,i)}function Zm(r,i){i===0&&((r.mode&1)===0?i=1:(i=jl,jl<<=1,(jl&130023424)===0&&(jl=4194304)));var a=At();r=Qn(r,i),r!==null&&(vo(r,i,a),Ft(r,a))}function xb(r){var i=r.memoizedState,a=0;i!==null&&(a=i.retryLane),Zm(r,a)}function wb(r,i){var a=0;switch(r.tag){case 13:var f=r.stateNode,m=r.memoizedState;m!==null&&(a=m.retryLane);break;case 19:f=r.stateNode;break;default:throw Error(n(314))}f!==null&&f.delete(i),Zm(r,a)}var Gm;Gm=function(r,i,a){if(r!==null)if(r.memoizedProps!==i.pendingProps||Dt.current)Lt=!0;else{if((r.lanes&a)===0&&(i.flags&128)===0)return Lt=!1,sb(r,i,a);Lt=(r.flags&131072)!==0}else Lt=!1,nt&&(i.flags&1048576)!==0&&Eh(i,is,i.index);switch(i.lanes=0,i.tag){case 2:var f=i.type;xs(r,i),r=i.pendingProps;var m=Ti(i,bt.current);Mi(i,a),m=oc(null,i,f,r,m,a);var y=lc();return i.flags|=1,typeof m=="object"&&m!==null&&typeof m.render=="function"&&m.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,jt(f)?(y=!0,ts(i)):y=!1,i.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,Qu(i),m.updater=ys,i.stateNode=m,m._reactInternals=i,dc(i,f,r,a),i=gc(null,i,f,!0,y,a)):(i.tag=0,nt&&y&&Uu(i),Nt(null,i,m,a),i=i.child),i;case 16:f=i.elementType;e:{switch(xs(r,i),r=i.pendingProps,m=f._init,f=m(f._payload),i.type=f,m=i.tag=bb(f),r=yn(f,r),m){case 0:i=mc(null,i,f,r,a);break e;case 1:i=xm(null,i,f,r,a);break e;case 11:i=hm(null,i,f,r,a);break e;case 14:i=mm(null,i,f,yn(f.type,r),a);break e}throw Error(n(306,f,""))}return i;case 0:return f=i.type,m=i.pendingProps,m=i.elementType===f?m:yn(f,m),mc(r,i,f,m,a);case 1:return f=i.type,m=i.pendingProps,m=i.elementType===f?m:yn(f,m),xm(r,i,f,m,a);case 3:e:{if(wm(i),r===null)throw Error(n(387));f=i.pendingProps,y=i.memoizedState,m=y.element,Dh(r,i),cs(i,f,null,a);var b=i.memoizedState;if(f=b.element,y.isDehydrated)if(y={element:f,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){m=ji(Error(n(423)),i),i=km(r,i,f,a,m);break e}else if(f!==m){m=ji(Error(n(424)),i),i=km(r,i,f,a,m);break e}else for(Gt=kr(i.stateNode.containerInfo.firstChild),Zt=i,nt=!0,gn=null,a=Oh(i,null,f,a),i.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(Ai(),f===m){i=er(r,i,a);break e}Nt(r,i,f,a)}i=i.child}return i;case 5:return zh(i),r===null&&Hu(i),f=i.type,m=i.pendingProps,y=r!==null?r.memoizedProps:null,b=m.children,ju(f,m)?b=null:y!==null&&ju(f,y)&&(i.flags|=32),vm(r,i),Nt(r,i,b,a),i.child;case 6:return r===null&&Hu(i),null;case 13:return bm(r,i,a);case 4:return Ju(i,i.stateNode.containerInfo),f=i.pendingProps,r===null?i.child=Ii(i,null,f,a):Nt(r,i,f,a),i.child;case 11:return f=i.type,m=i.pendingProps,m=i.elementType===f?m:yn(f,m),hm(r,i,f,m,a);case 7:return Nt(r,i,i.pendingProps,a),i.child;case 8:return Nt(r,i,i.pendingProps.children,a),i.child;case 12:return Nt(r,i,i.pendingProps.children,a),i.child;case 10:e:{if(f=i.type._context,m=i.pendingProps,y=i.memoizedProps,b=m.value,Xe(ss,f._currentValue),f._currentValue=b,y!==null)if(mn(y.value,b)){if(y.children===m.children&&!Dt.current){i=er(r,i,a);break e}}else for(y=i.child,y!==null&&(y.return=i);y!==null;){var P=y.dependencies;if(P!==null){b=y.child;for(var O=P.firstContext;O!==null;){if(O.context===f){if(y.tag===1){O=Jn(-1,a&-a),O.tag=2;var U=y.updateQueue;if(U!==null){U=U.shared;var Q=U.pending;Q===null?O.next=O:(O.next=Q.next,Q.next=O),U.pending=O}}y.lanes|=a,O=y.alternate,O!==null&&(O.lanes|=a),Yu(y.return,a,i),P.lanes|=a;break}O=O.next}}else if(y.tag===10)b=y.type===i.type?null:y.child;else if(y.tag===18){if(b=y.return,b===null)throw Error(n(341));b.lanes|=a,P=b.alternate,P!==null&&(P.lanes|=a),Yu(b,a,i),b=y.sibling}else b=y.child;if(b!==null)b.return=y;else for(b=y;b!==null;){if(b===i){b=null;break}if(y=b.sibling,y!==null){y.return=b.return,b=y;break}b=b.return}y=b}Nt(r,i,m.children,a),i=i.child}return i;case 9:return m=i.type,f=i.pendingProps.children,Mi(i,a),m=nn(m),f=f(m),i.flags|=1,Nt(r,i,f,a),i.child;case 14:return f=i.type,m=yn(f,i.pendingProps),m=yn(f.type,m),mm(r,i,f,m,a);case 15:return gm(r,i,i.type,i.pendingProps,a);case 17:return f=i.type,m=i.pendingProps,m=i.elementType===f?m:yn(f,m),xs(r,i),i.tag=1,jt(f)?(r=!0,ts(i)):r=!1,Mi(i,a),sm(i,f,m),dc(i,f,m,a),gc(null,i,f,!0,r,a);case 19:return Cm(r,i,a);case 22:return ym(r,i,a)}throw Error(n(156,i.tag))};function qm(r,i){return Rp(r,i)}function kb(r,i,a,f){this.tag=r,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=f,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ln(r,i,a,f){return new kb(r,i,a,f)}function jc(r){return r=r.prototype,!(!r||!r.isReactComponent)}function bb(r){if(typeof r=="function")return jc(r)?1:0;if(r!=null){if(r=r.$$typeof,r===J)return 11;if(r===K)return 14}return 2}function Ir(r,i){var a=r.alternate;return a===null?(a=ln(r.tag,i,r.key,r.mode),a.elementType=r.elementType,a.type=r.type,a.stateNode=r.stateNode,a.alternate=r,r.alternate=a):(a.pendingProps=i,a.type=r.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=r.flags&14680064,a.childLanes=r.childLanes,a.lanes=r.lanes,a.child=r.child,a.memoizedProps=r.memoizedProps,a.memoizedState=r.memoizedState,a.updateQueue=r.updateQueue,i=r.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},a.sibling=r.sibling,a.index=r.index,a.ref=r.ref,a}function Ns(r,i,a,f,m,y){var b=2;if(f=r,typeof r=="function")jc(r)&&(b=1);else if(typeof r=="string")b=5;else e:switch(r){case W:return ti(a.children,m,y,i);case V:b=8,m|=8;break;case Y:return r=ln(12,a,i,m|2),r.elementType=Y,r.lanes=y,r;case ue:return r=ln(13,a,i,m),r.elementType=ue,r.lanes=y,r;case te:return r=ln(19,a,i,m),r.elementType=te,r.lanes=y,r;case ae:return As(a,m,y,i);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case D:b=10;break e;case q:b=9;break e;case J:b=11;break e;case K:b=14;break e;case oe:b=16,f=null;break e}throw Error(n(130,r==null?r:typeof r,""))}return i=ln(b,a,i,m),i.elementType=r,i.type=f,i.lanes=y,i}function ti(r,i,a,f){return r=ln(7,r,f,i),r.lanes=a,r}function As(r,i,a,f){return r=ln(22,r,f,i),r.elementType=ae,r.lanes=a,r.stateNode={isHidden:!1},r}function Lc(r,i,a){return r=ln(6,r,null,i),r.lanes=a,r}function zc(r,i,a){return i=ln(4,r.children!==null?r.children:[],r.key,i),i.lanes=a,i.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},i}function Sb(r,i,a,f,m){this.tag=i,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fu(0),this.expirationTimes=fu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fu(0),this.identifierPrefix=f,this.onRecoverableError=m,this.mutableSourceEagerHydrationData=null}function Fc(r,i,a,f,m,y,b,P,O){return r=new Sb(r,i,a,P,O),i===1?(i=1,y===!0&&(i|=8)):i=0,y=ln(3,null,null,i),r.current=y,y.stateNode=r,y.memoizedState={element:f,isDehydrated:a,cache:null,transitions:null,pendingSuspenseBoundaries:null},Qu(y),r}function Cb(r,i,a){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:I,key:f==null?null:""+f,children:r,containerInfo:i,implementation:a}}function Km(r){if(!r)return Sr;r=r._reactInternals;e:{if(Vr(r)!==r||r.tag!==1)throw Error(n(170));var i=r;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(jt(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(n(171))}if(r.tag===1){var a=r.type;if(jt(a))return Sh(r,a,i)}return i}function Ym(r,i,a,f,m,y,b,P,O){return r=Fc(a,f,!0,r,m,y,b,P,O),r.context=Km(null),a=r.current,f=At(),m=Nr(a),y=Jn(f,m),y.callback=i??null,Er(a,y,m),r.current.lanes=m,vo(r,m,f),Ft(r,f),r}function Is(r,i,a,f){var m=i.current,y=At(),b=Nr(m);return a=Km(a),i.context===null?i.context=a:i.pendingContext=a,i=Jn(y,b),i.payload={element:r},f=f===void 0?null:f,f!==null&&(i.callback=f),r=Er(m,i,b),r!==null&&(wn(r,m,b,y),us(r,m,b)),b}function Os(r){return r=r.current,r.child?(r.child.tag===5,r.child.stateNode):null}function Xm(r,i){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var a=r.retryLane;r.retryLane=a!==0&&a<i?a:i}}function $c(r,i){Xm(r,i),(r=r.alternate)&&Xm(r,i)}function _b(){return null}var Qm=typeof reportError=="function"?reportError:function(r){console.error(r)};function Bc(r){this._internalRoot=r}Ms.prototype.render=Bc.prototype.render=function(r){var i=this._internalRoot;if(i===null)throw Error(n(409));Is(r,i,null,null)},Ms.prototype.unmount=Bc.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var i=r.containerInfo;Qr(function(){Is(null,r,null,null)}),i[qn]=null}};function Ms(r){this._internalRoot=r}Ms.prototype.unstable_scheduleHydration=function(r){if(r){var i=Dp();r={blockedOn:null,target:r,priority:i};for(var a=0;a<vr.length&&i!==0&&i<vr[a].priority;a++);vr.splice(a,0,r),a===0&&zp(r)}};function Uc(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function Ds(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function Jm(){}function Eb(r,i,a,f,m){if(m){if(typeof f=="function"){var y=f;f=function(){var U=Os(b);y.call(U)}}var b=Ym(i,f,r,0,null,!1,!1,"",Jm);return r._reactRootContainer=b,r[qn]=b.current,Io(r.nodeType===8?r.parentNode:r),Qr(),b}for(;m=r.lastChild;)r.removeChild(m);if(typeof f=="function"){var P=f;f=function(){var U=Os(O);P.call(U)}}var O=Fc(r,0,!1,null,null,!1,!1,"",Jm);return r._reactRootContainer=O,r[qn]=O.current,Io(r.nodeType===8?r.parentNode:r),Qr(function(){Is(i,O,a,f)}),O}function js(r,i,a,f,m){var y=a._reactRootContainer;if(y){var b=y;if(typeof m=="function"){var P=m;m=function(){var O=Os(b);P.call(O)}}Is(i,b,r,m)}else b=Eb(a,i,r,m,f);return Os(b)}Op=function(r){switch(r.tag){case 3:var i=r.stateNode;if(i.current.memoizedState.isDehydrated){var a=yo(i.pendingLanes);a!==0&&(du(i,a|1),Ft(i,st()),(He&6)===0&&(Fi=st()+500,Cr()))}break;case 13:Qr(function(){var f=Qn(r,1);if(f!==null){var m=At();wn(f,r,1,m)}}),$c(r,1)}},pu=function(r){if(r.tag===13){var i=Qn(r,134217728);if(i!==null){var a=At();wn(i,r,134217728,a)}$c(r,134217728)}},Mp=function(r){if(r.tag===13){var i=Nr(r),a=Qn(r,i);if(a!==null){var f=At();wn(a,r,i,f)}$c(r,i)}},Dp=function(){return qe},jp=function(r,i){var a=qe;try{return qe=r,i()}finally{qe=a}},ou=function(r,i,a){switch(i){case"input":if(mi(r,a),i=a.name,a.type==="radio"&&i!=null){for(a=r;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<a.length;i++){var f=a[i];if(f!==r&&f.form===r.form){var m=Jl(f);if(!m)throw Error(n(90));dn(f),mi(f,m)}}}break;case"textarea":Pl(r,a);break;case"select":i=a.value,i!=null&&pr(r,!!a.multiple,i,!1)}},wp=Oc,kp=Qr;var Rb={usingClientEntryPoint:!1,Events:[Do,Ei,Jl,vp,xp,Oc]},Ko={findFiberByHostInstance:Wr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Tb={bundleType:Ko.bundleType,version:Ko.version,rendererPackageName:Ko.rendererPackageName,rendererConfig:Ko.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:F.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=_p(r),r===null?null:r.stateNode},findFiberByHostInstance:Ko.findFiberByHostInstance||_b,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ls=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ls.isDisabled&&Ls.supportsFiber)try{Ml=Ls.inject(Tb),Pn=Ls}catch{}}return $t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Rb,$t.createPortal=function(r,i){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Uc(i))throw Error(n(200));return Cb(r,i,null,a)},$t.createRoot=function(r,i){if(!Uc(r))throw Error(n(299));var a=!1,f="",m=Qm;return i!=null&&(i.unstable_strictMode===!0&&(a=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onRecoverableError!==void 0&&(m=i.onRecoverableError)),i=Fc(r,1,!1,null,null,a,!1,f,m),r[qn]=i.current,Io(r.nodeType===8?r.parentNode:r),new Bc(i)},$t.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var i=r._reactInternals;if(i===void 0)throw typeof r.render=="function"?Error(n(188)):(r=Object.keys(r).join(","),Error(n(268,r)));return r=_p(i),r=r===null?null:r.stateNode,r},$t.flushSync=function(r){return Qr(r)},$t.hydrate=function(r,i,a){if(!Ds(i))throw Error(n(200));return js(null,r,i,!0,a)},$t.hydrateRoot=function(r,i,a){if(!Uc(r))throw Error(n(405));var f=a!=null&&a.hydratedSources||null,m=!1,y="",b=Qm;if(a!=null&&(a.unstable_strictMode===!0&&(m=!0),a.identifierPrefix!==void 0&&(y=a.identifierPrefix),a.onRecoverableError!==void 0&&(b=a.onRecoverableError)),i=Ym(i,null,r,1,a??null,m,!1,y,b),r[qn]=i.current,Io(r),f)for(r=0;r<f.length;r++)a=f[r],m=a._getVersion,m=m(a._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[a,m]:i.mutableSourceEagerHydrationData.push(a,m);return new Ms(i)},$t.render=function(r,i,a){if(!Ds(i))throw Error(n(200));return js(null,r,i,!1,a)},$t.unmountComponentAtNode=function(r){if(!Ds(r))throw Error(n(40));return r._reactRootContainer?(Qr(function(){js(null,null,r,!1,function(){r._reactRootContainer=null,r[qn]=null})}),!0):!1},$t.unstable_batchedUpdates=Oc,$t.unstable_renderSubtreeIntoContainer=function(r,i,a,f){if(!Ds(a))throw Error(n(200));if(r==null||r._reactInternals===void 0)throw Error(n(38));return js(r,i,a,!1,f)},$t.version="18.3.1-next-f1338f8080-20240426",$t}var sg;function Ky(){if(sg)return Hc.exports;sg=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Hc.exports=jb(),Hc.exports}var ag;function Lb(){if(ag)return zs;ag=1;var e=Ky();return zs.createRoot=e.createRoot,zs.hydrateRoot=e.hydrateRoot,zs}var zb=Lb();const Fb=yl(zb);const $b=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bb=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,o)=>o?o.toUpperCase():n.toLowerCase()),ug=e=>{const t=Bb(e);return t.charAt(0).toUpperCase()+t.slice(1)},Yy=(...e)=>e.filter((t,n,o)=>!!t&&t.trim()!==""&&o.indexOf(t)===n).join(" ").trim(),Ub=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var Vb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const Wb=k.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:o,className:l="",children:s,iconNode:u,...c},d)=>k.createElement("svg",{ref:d,...Vb,width:t,height:t,stroke:e,strokeWidth:o?Number(n)*24/Number(t):n,className:Yy("lucide",l),...!s&&!Ub(c)&&{"aria-hidden":"true"},...c},[...u.map(([p,h])=>k.createElement(p,h)),...Array.isArray(s)?s:[s]]));const _n=(e,t)=>{const n=k.forwardRef(({className:o,...l},s)=>k.createElement(Wb,{ref:s,iconNode:t,className:Yy(`lucide-${$b(ug(e))}`,`lucide-${e}`,o),...l}));return n.displayName=ug(e),n};const Hb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xy=_n("chevron-down",Hb);const Zb=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],cg=_n("file-text",Zb);const Gb=[["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 18h16",key:"19g7jn"}],["path",{d:"M4 6h16",key:"1o0s65"}]],qb=_n("menu",Gb);const Kb=[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]],fg=_n("messages-square",Kb);const Yb=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Xb=_n("moon",Yb);const Qb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Jb=_n("plus",Qb);const eS=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],tS=_n("send",eS);const nS=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],dg=_n("settings",nS);const rS=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],iS=_n("sun",rS);const oS=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],pg=_n("terminal",oS);const lS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Qy=_n("x",lS);function sS(e){return e.type==="permission_request"}function aS(e){const[t,n]=Ce.useState([]),[o,l]=Ce.useState(null),[s,u]=Ce.useState([]),[c,d]=Ce.useState(null),[p,h]=Ce.useState(""),[g,x]=Ce.useState(!1),v=Ce.useCallback(async()=>{if(e.client)try{const A=await e.client.listSessions();n(A)}catch{}},[e.client]);Ce.useEffect(()=>{l(null),u([]),d(null),h(""),v()},[e.client,e.resetKey,v]);const S=Ce.useCallback(()=>{e.onNewSession()},[e.onNewSession]),C=Ce.useCallback(async A=>{if(e.client){l(A),u([]),d(null);try{const N=await e.client.loadSession(A);u(N.events??[])}catch{u([])}finally{v()}}},[e.client,v]),E=Ce.useCallback(()=>d(null),[]),R=Ce.useCallback(async()=>{const A=p.trim();if(!(!A||!e.client||g)){h(""),x(!0),d(null);try{for await(const N of e.client.sendMessage(A)){if(sS(N)){d(N);continue}N.type==="history_begin"||N.type==="history_end"||u(F=>[...F,N])}}finally{x(!1),v()}}},[e.client,p,v,g]);return{sessions:t,selectedSessionId:o,events:s,permissionRequest:c,input:p,setInput:h,sending:g,send:R,startNewSession:S,selectSession:C,clearPermissionRequest:E}}var Ze;(function(e){e.assertEqual=l=>{};function t(l){}e.assertIs=t;function n(l){throw new Error}e.assertNever=n,e.arrayToEnum=l=>{const s={};for(const u of l)s[u]=u;return s},e.getValidEnumValues=l=>{const s=e.objectKeys(l).filter(c=>typeof l[l[c]]!="number"),u={};for(const c of s)u[c]=l[c];return e.objectValues(u)},e.objectValues=l=>e.objectKeys(l).map(function(s){return l[s]}),e.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{const s=[];for(const u in l)Object.prototype.hasOwnProperty.call(l,u)&&s.push(u);return s},e.find=(l,s)=>{for(const u of l)if(s(u))return u},e.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&Number.isFinite(l)&&Math.floor(l)===l;function o(l,s=" | "){return l.map(u=>typeof u=="string"?`'${u}'`:u).join(s)}e.joinValues=o,e.jsonStringifyReplacer=(l,s)=>typeof s=="bigint"?s.toString():s})(Ze||(Ze={}));var hg;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(hg||(hg={}));const he=Ze.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Lr=e=>{switch(typeof e){case"undefined":return he.undefined;case"string":return he.string;case"number":return Number.isNaN(e)?he.nan:he.number;case"boolean":return he.boolean;case"function":return he.function;case"bigint":return he.bigint;case"symbol":return he.symbol;case"object":return Array.isArray(e)?he.array:e===null?he.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?he.promise:typeof Map<"u"&&e instanceof Map?he.map:typeof Set<"u"&&e instanceof Set?he.set:typeof Date<"u"&&e instanceof Date?he.date:he.object;default:return he.unknown}},re=Ze.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class ar extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=o=>{this.issues=[...this.issues,o]},this.addIssues=(o=[])=>{this.issues=[...this.issues,...o]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(s){return s.message},o={_errors:[]},l=s=>{for(const u of s.issues)if(u.code==="invalid_union")u.unionErrors.map(l);else if(u.code==="invalid_return_type")l(u.returnTypeError);else if(u.code==="invalid_arguments")l(u.argumentsError);else if(u.path.length===0)o._errors.push(n(u));else{let c=o,d=0;for(;d<u.path.length;){const p=u.path[d];d===u.path.length-1?(c[p]=c[p]||{_errors:[]},c[p]._errors.push(n(u))):c[p]=c[p]||{_errors:[]},c=c[p],d++}}};return l(this),o}static assert(t){if(!(t instanceof ar))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Ze.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},o=[];for(const l of this.issues)if(l.path.length>0){const s=l.path[0];n[s]=n[s]||[],n[s].push(t(l))}else o.push(t(l));return{formErrors:o,fieldErrors:n}}get formErrors(){return this.flatten()}}ar.create=e=>new ar(e);const Rf=(e,t)=>{let n;switch(e.code){case re.invalid_type:e.received===he.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case re.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Ze.jsonStringifyReplacer)}`;break;case re.unrecognized_keys:n=`Unrecognized key(s) in object: ${Ze.joinValues(e.keys,", ")}`;break;case re.invalid_union:n="Invalid input";break;case re.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Ze.joinValues(e.options)}`;break;case re.invalid_enum_value:n=`Invalid enum value. Expected ${Ze.joinValues(e.options)}, received '${e.received}'`;break;case re.invalid_arguments:n="Invalid function arguments";break;case re.invalid_return_type:n="Invalid function return type";break;case re.invalid_date:n="Invalid date";break;case re.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Ze.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case re.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case re.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case re.custom:n="Invalid input";break;case re.invalid_intersection_types:n="Intersection results could not be merged";break;case re.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case re.not_finite:n="Number must be finite";break;default:n=t.defaultError,Ze.assertNever(e)}return{message:n}};let uS=Rf;function cS(){return uS}const fS=e=>{const{data:t,path:n,errorMaps:o,issueData:l}=e,s=[...n,...l.path||[]],u={...l,path:s};if(l.message!==void 0)return{...l,path:s,message:l.message};let c="";const d=o.filter(p=>!!p).slice().reverse();for(const p of d)c=p(u,{data:t,defaultError:c}).message;return{...l,path:s,message:c}};function se(e,t){const n=cS(),o=fS({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Rf?void 0:Rf].filter(l=>!!l)});e.common.issues.push(o)}class Ot{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const o=[];for(const l of n){if(l.status==="aborted")return Ae;l.status==="dirty"&&t.dirty(),o.push(l.value)}return{status:t.value,value:o}}static async mergeObjectAsync(t,n){const o=[];for(const l of n){const s=await l.key,u=await l.value;o.push({key:s,value:u})}return Ot.mergeObjectSync(t,o)}static mergeObjectSync(t,n){const o={};for(const l of n){const{key:s,value:u}=l;if(s.status==="aborted"||u.status==="aborted")return Ae;s.status==="dirty"&&t.dirty(),u.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof u.value<"u"||l.alwaysSet)&&(o[s.value]=u.value)}return{status:t.value,value:o}}}const Ae=Object.freeze({status:"aborted"}),nl=e=>({status:"dirty",value:e}),cn=e=>({status:"valid",value:e}),mg=e=>e.status==="aborted",gg=e=>e.status==="dirty",Qi=e=>e.status==="valid",na=e=>typeof Promise<"u"&&e instanceof Promise;var ke;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(ke||(ke={}));class Fn{constructor(t,n,o,l){this._cachedPath=[],this.parent=t,this.data=n,this._path=o,this._key=l}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const yg=(e,t)=>{if(Qi(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new ar(e.common.issues);return this._error=n,this._error}}};function De(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:o,description:l}=e;if(t&&(n||o))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:l}:{errorMap:(u,c)=>{const{message:d}=e;return u.code==="invalid_enum_value"?{message:d??c.defaultError}:typeof c.data>"u"?{message:d??o??c.defaultError}:u.code!=="invalid_type"?{message:c.defaultError}:{message:d??n??c.defaultError}},description:l}}class Be{get description(){return this._def.description}_getType(t){return Lr(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Lr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new Ot,ctx:{common:t.parent.common,data:t.data,parsedType:Lr(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(na(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const o=this.safeParse(t,n);if(o.success)return o.data;throw o.error}safeParse(t,n){const o={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Lr(t)},l=this._parseSync({data:t,path:o.path,parent:o});return yg(o,l)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Lr(t)};if(!this["~standard"].async)try{const o=this._parseSync({data:t,path:[],parent:n});return Qi(o)?{value:o.value}:{issues:n.common.issues}}catch(o){o?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(o=>Qi(o)?{value:o.value}:{issues:n.common.issues})}async parseAsync(t,n){const o=await this.safeParseAsync(t,n);if(o.success)return o.data;throw o.error}async safeParseAsync(t,n){const o={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Lr(t)},l=this._parse({data:t,path:o.path,parent:o}),s=await(na(l)?l:Promise.resolve(l));return yg(o,s)}refine(t,n){const o=l=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(l):n;return this._refinement((l,s)=>{const u=t(l),c=()=>s.addIssue({code:re.custom,...o(l)});return typeof Promise<"u"&&u instanceof Promise?u.then(d=>d?!0:(c(),!1)):u?!0:(c(),!1)})}refinement(t,n){return this._refinement((o,l)=>t(o)?!0:(l.addIssue(typeof n=="function"?n(o,l):n),!1))}_refinement(t){return new li({schema:this,typeName:Ie.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return lr.create(this,this._def)}nullable(){return si.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ln.create(this)}promise(){return aa.create(this,this._def)}or(t){return ia.create([this,t],this._def)}and(t){return oa.create(this,t,this._def)}transform(t){return new li({...De(this._def),schema:this,typeName:Ie.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new ua({...De(this._def),innerType:this,defaultValue:n,typeName:Ie.ZodDefault})}brand(){return new nv({typeName:Ie.ZodBranded,type:this,...De(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new ca({...De(this._def),innerType:this,catchValue:n,typeName:Ie.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return ad.create(this,t)}readonly(){return fa.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const dS=/^c[^\s-]{8,}$/i,pS=/^[0-9a-z]+$/,hS=/^[0-9A-HJKMNP-TV-Z]{26}$/i,mS=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,gS=/^[a-z0-9_-]{21}$/i,yS=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,vS=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,xS=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,wS="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let qc;const kS=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,bS=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,SS=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,CS=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,_S=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,ES=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Jy="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",RS=new RegExp(`^${Jy}$`);function ev(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function TS(e){return new RegExp(`^${ev(e)}$`)}function PS(e){let t=`${Jy}T${ev(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function NS(e,t){return!!((t==="v4"||!t)&&kS.test(e)||(t==="v6"||!t)&&SS.test(e))}function AS(e,t){if(!yS.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const o=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),l=JSON.parse(atob(o));return!(typeof l!="object"||l===null||"typ"in l&&l?.typ!=="JWT"||!l.alg||t&&l.alg!==t)}catch{return!1}}function IS(e,t){return!!((t==="v4"||!t)&&bS.test(e)||(t==="v6"||!t)&&CS.test(e))}class or extends Be{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==he.string){const s=this._getOrReturnCtx(t);return se(s,{code:re.invalid_type,expected:he.string,received:s.parsedType}),Ae}const o=new Ot;let l;for(const s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(l=this._getOrReturnCtx(t,l),se(l,{code:re.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),o.dirty());else if(s.kind==="max")t.data.length>s.value&&(l=this._getOrReturnCtx(t,l),se(l,{code:re.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),o.dirty());else if(s.kind==="length"){const u=t.data.length>s.value,c=t.data.length<s.value;(u||c)&&(l=this._getOrReturnCtx(t,l),u?se(l,{code:re.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):c&&se(l,{code:re.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),o.dirty())}else if(s.kind==="email")xS.test(t.data)||(l=this._getOrReturnCtx(t,l),se(l,{validation:"email",code:re.invalid_string,message:s.message}),o.dirty());else if(s.kind==="emoji")qc||(qc=new RegExp(wS,"u")),qc.test(t.data)||(l=this._getOrReturnCtx(t,l),se(l,{validation:"emoji",code:re.invalid_string,message:s.message}),o.dirty());else if(s.kind==="uuid")mS.test(t.data)||(l=this._getOrReturnCtx(t,l),se(l,{validation:"uuid",code:re.invalid_string,message:s.message}),o.dirty());else if(s.kind==="nanoid")gS.test(t.data)||(l=this._getOrReturnCtx(t,l),se(l,{validation:"nanoid",code:re.invalid_string,message:s.message}),o.dirty());else if(s.kind==="cuid")dS.test(t.data)||(l=this._getOrReturnCtx(t,l),se(l,{validation:"cuid",code:re.invalid_string,message:s.message}),o.dirty());else if(s.kind==="cuid2")pS.test(t.data)||(l=this._getOrReturnCtx(t,l),se(l,{validation:"cuid2",code:re.invalid_string,message:s.message}),o.dirty());else if(s.kind==="ulid")hS.test(t.data)||(l=this._getOrReturnCtx(t,l),se(l,{validation:"ulid",code:re.invalid_string,message:s.message}),o.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{l=this._getOrReturnCtx(t,l),se(l,{validation:"url",code:re.invalid_string,message:s.message}),o.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(l=this._getOrReturnCtx(t,l),se(l,{validation:"regex",code:re.invalid_string,message:s.message}),o.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(l=this._getOrReturnCtx(t,l),se(l,{code:re.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),o.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(l=this._getOrReturnCtx(t,l),se(l,{code:re.invalid_string,validation:{startsWith:s.value},message:s.message}),o.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(l=this._getOrReturnCtx(t,l),se(l,{code:re.invalid_string,validation:{endsWith:s.value},message:s.message}),o.dirty()):s.kind==="datetime"?PS(s).test(t.data)||(l=this._getOrReturnCtx(t,l),se(l,{code:re.invalid_string,validation:"datetime",message:s.message}),o.dirty()):s.kind==="date"?RS.test(t.data)||(l=this._getOrReturnCtx(t,l),se(l,{code:re.invalid_string,validation:"date",message:s.message}),o.dirty()):s.kind==="time"?TS(s).test(t.data)||(l=this._getOrReturnCtx(t,l),se(l,{code:re.invalid_string,validation:"time",message:s.message}),o.dirty()):s.kind==="duration"?vS.test(t.data)||(l=this._getOrReturnCtx(t,l),se(l,{validation:"duration",code:re.invalid_string,message:s.message}),o.dirty()):s.kind==="ip"?NS(t.data,s.version)||(l=this._getOrReturnCtx(t,l),se(l,{validation:"ip",code:re.invalid_string,message:s.message}),o.dirty()):s.kind==="jwt"?AS(t.data,s.alg)||(l=this._getOrReturnCtx(t,l),se(l,{validation:"jwt",code:re.invalid_string,message:s.message}),o.dirty()):s.kind==="cidr"?IS(t.data,s.version)||(l=this._getOrReturnCtx(t,l),se(l,{validation:"cidr",code:re.invalid_string,message:s.message}),o.dirty()):s.kind==="base64"?_S.test(t.data)||(l=this._getOrReturnCtx(t,l),se(l,{validation:"base64",code:re.invalid_string,message:s.message}),o.dirty()):s.kind==="base64url"?ES.test(t.data)||(l=this._getOrReturnCtx(t,l),se(l,{validation:"base64url",code:re.invalid_string,message:s.message}),o.dirty()):Ze.assertNever(s);return{status:o.value,value:t.data}}_regex(t,n,o){return this.refinement(l=>t.test(l),{validation:n,code:re.invalid_string,...ke.errToObj(o)})}_addCheck(t){return new or({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ke.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ke.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ke.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ke.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ke.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ke.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ke.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ke.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ke.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ke.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ke.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ke.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ke.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...ke.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...ke.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...ke.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ke.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...ke.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ke.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ke.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ke.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ke.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ke.errToObj(n)})}nonempty(t){return this.min(1,ke.errToObj(t))}trim(){return new or({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new or({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new or({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}or.create=e=>new or({checks:[],typeName:Ie.ZodString,coerce:e?.coerce??!1,...De(e)});function OS(e,t){const n=(e.toString().split(".")[1]||"").length,o=(t.toString().split(".")[1]||"").length,l=n>o?n:o,s=Number.parseInt(e.toFixed(l).replace(".","")),u=Number.parseInt(t.toFixed(l).replace(".",""));return s%u/10**l}class Ji extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==he.number){const s=this._getOrReturnCtx(t);return se(s,{code:re.invalid_type,expected:he.number,received:s.parsedType}),Ae}let o;const l=new Ot;for(const s of this._def.checks)s.kind==="int"?Ze.isInteger(t.data)||(o=this._getOrReturnCtx(t,o),se(o,{code:re.invalid_type,expected:"integer",received:"float",message:s.message}),l.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(o=this._getOrReturnCtx(t,o),se(o,{code:re.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),l.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(o=this._getOrReturnCtx(t,o),se(o,{code:re.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),l.dirty()):s.kind==="multipleOf"?OS(t.data,s.value)!==0&&(o=this._getOrReturnCtx(t,o),se(o,{code:re.not_multiple_of,multipleOf:s.value,message:s.message}),l.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(o=this._getOrReturnCtx(t,o),se(o,{code:re.not_finite,message:s.message}),l.dirty()):Ze.assertNever(s);return{status:l.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ke.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ke.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ke.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ke.toString(n))}setLimit(t,n,o,l){return new Ji({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:o,message:ke.toString(l)}]})}_addCheck(t){return new Ji({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ke.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ke.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ke.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ke.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ke.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ke.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ke.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ke.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ke.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Ze.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const o of this._def.checks){if(o.kind==="finite"||o.kind==="int"||o.kind==="multipleOf")return!0;o.kind==="min"?(n===null||o.value>n)&&(n=o.value):o.kind==="max"&&(t===null||o.value<t)&&(t=o.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Ji.create=e=>new Ji({checks:[],typeName:Ie.ZodNumber,coerce:e?.coerce||!1,...De(e)});class al extends Be{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==he.bigint)return this._getInvalidInput(t);let o;const l=new Ot;for(const s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(o=this._getOrReturnCtx(t,o),se(o,{code:re.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),l.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(o=this._getOrReturnCtx(t,o),se(o,{code:re.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),l.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(o=this._getOrReturnCtx(t,o),se(o,{code:re.not_multiple_of,multipleOf:s.value,message:s.message}),l.dirty()):Ze.assertNever(s);return{status:l.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return se(n,{code:re.invalid_type,expected:he.bigint,received:n.parsedType}),Ae}gte(t,n){return this.setLimit("min",t,!0,ke.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ke.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ke.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ke.toString(n))}setLimit(t,n,o,l){return new al({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:o,message:ke.toString(l)}]})}_addCheck(t){return new al({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ke.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ke.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ke.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ke.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ke.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}al.create=e=>new al({checks:[],typeName:Ie.ZodBigInt,coerce:e?.coerce??!1,...De(e)});class Tf extends Be{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==he.boolean){const o=this._getOrReturnCtx(t);return se(o,{code:re.invalid_type,expected:he.boolean,received:o.parsedType}),Ae}return cn(t.data)}}Tf.create=e=>new Tf({typeName:Ie.ZodBoolean,coerce:e?.coerce||!1,...De(e)});class ra extends Be{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==he.date){const s=this._getOrReturnCtx(t);return se(s,{code:re.invalid_type,expected:he.date,received:s.parsedType}),Ae}if(Number.isNaN(t.data.getTime())){const s=this._getOrReturnCtx(t);return se(s,{code:re.invalid_date}),Ae}const o=new Ot;let l;for(const s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(l=this._getOrReturnCtx(t,l),se(l,{code:re.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),o.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(l=this._getOrReturnCtx(t,l),se(l,{code:re.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),o.dirty()):Ze.assertNever(s);return{status:o.value,value:new Date(t.data.getTime())}}_addCheck(t){return new ra({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ke.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ke.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}ra.create=e=>new ra({checks:[],coerce:e?.coerce||!1,typeName:Ie.ZodDate,...De(e)});class vg extends Be{_parse(t){if(this._getType(t)!==he.symbol){const o=this._getOrReturnCtx(t);return se(o,{code:re.invalid_type,expected:he.symbol,received:o.parsedType}),Ae}return cn(t.data)}}vg.create=e=>new vg({typeName:Ie.ZodSymbol,...De(e)});class Pf extends Be{_parse(t){if(this._getType(t)!==he.undefined){const o=this._getOrReturnCtx(t);return se(o,{code:re.invalid_type,expected:he.undefined,received:o.parsedType}),Ae}return cn(t.data)}}Pf.create=e=>new Pf({typeName:Ie.ZodUndefined,...De(e)});class Nf extends Be{_parse(t){if(this._getType(t)!==he.null){const o=this._getOrReturnCtx(t);return se(o,{code:re.invalid_type,expected:he.null,received:o.parsedType}),Ae}return cn(t.data)}}Nf.create=e=>new Nf({typeName:Ie.ZodNull,...De(e)});class xg extends Be{constructor(){super(...arguments),this._any=!0}_parse(t){return cn(t.data)}}xg.create=e=>new xg({typeName:Ie.ZodAny,...De(e)});class Af extends Be{constructor(){super(...arguments),this._unknown=!0}_parse(t){return cn(t.data)}}Af.create=e=>new Af({typeName:Ie.ZodUnknown,...De(e)});class zr extends Be{_parse(t){const n=this._getOrReturnCtx(t);return se(n,{code:re.invalid_type,expected:he.never,received:n.parsedType}),Ae}}zr.create=e=>new zr({typeName:Ie.ZodNever,...De(e)});class wg extends Be{_parse(t){if(this._getType(t)!==he.undefined){const o=this._getOrReturnCtx(t);return se(o,{code:re.invalid_type,expected:he.void,received:o.parsedType}),Ae}return cn(t.data)}}wg.create=e=>new wg({typeName:Ie.ZodVoid,...De(e)});class Ln extends Be{_parse(t){const{ctx:n,status:o}=this._processInputParams(t),l=this._def;if(n.parsedType!==he.array)return se(n,{code:re.invalid_type,expected:he.array,received:n.parsedType}),Ae;if(l.exactLength!==null){const u=n.data.length>l.exactLength.value,c=n.data.length<l.exactLength.value;(u||c)&&(se(n,{code:u?re.too_big:re.too_small,minimum:c?l.exactLength.value:void 0,maximum:u?l.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:l.exactLength.message}),o.dirty())}if(l.minLength!==null&&n.data.length<l.minLength.value&&(se(n,{code:re.too_small,minimum:l.minLength.value,type:"array",inclusive:!0,exact:!1,message:l.minLength.message}),o.dirty()),l.maxLength!==null&&n.data.length>l.maxLength.value&&(se(n,{code:re.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),o.dirty()),n.common.async)return Promise.all([...n.data].map((u,c)=>l.type._parseAsync(new Fn(n,u,n.path,c)))).then(u=>Ot.mergeArray(o,u));const s=[...n.data].map((u,c)=>l.type._parseSync(new Fn(n,u,n.path,c)));return Ot.mergeArray(o,s)}get element(){return this._def.type}min(t,n){return new Ln({...this._def,minLength:{value:t,message:ke.toString(n)}})}max(t,n){return new Ln({...this._def,maxLength:{value:t,message:ke.toString(n)}})}length(t,n){return new Ln({...this._def,exactLength:{value:t,message:ke.toString(n)}})}nonempty(t){return this.min(1,t)}}Ln.create=(e,t)=>new Ln({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ie.ZodArray,...De(t)});function Gi(e){if(e instanceof ft){const t={};for(const n in e.shape){const o=e.shape[n];t[n]=lr.create(Gi(o))}return new ft({...e._def,shape:()=>t})}else return e instanceof Ln?new Ln({...e._def,type:Gi(e.element)}):e instanceof lr?lr.create(Gi(e.unwrap())):e instanceof si?si.create(Gi(e.unwrap())):e instanceof ii?ii.create(e.items.map(t=>Gi(t))):e}class ft extends Be{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=Ze.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==he.object){const p=this._getOrReturnCtx(t);return se(p,{code:re.invalid_type,expected:he.object,received:p.parsedType}),Ae}const{status:o,ctx:l}=this._processInputParams(t),{shape:s,keys:u}=this._getCached(),c=[];if(!(this._def.catchall instanceof zr&&this._def.unknownKeys==="strip"))for(const p in l.data)u.includes(p)||c.push(p);const d=[];for(const p of u){const h=s[p],g=l.data[p];d.push({key:{status:"valid",value:p},value:h._parse(new Fn(l,g,l.path,p)),alwaysSet:p in l.data})}if(this._def.catchall instanceof zr){const p=this._def.unknownKeys;if(p==="passthrough")for(const h of c)d.push({key:{status:"valid",value:h},value:{status:"valid",value:l.data[h]}});else if(p==="strict")c.length>0&&(se(l,{code:re.unrecognized_keys,keys:c}),o.dirty());else if(p!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const p=this._def.catchall;for(const h of c){const g=l.data[h];d.push({key:{status:"valid",value:h},value:p._parse(new Fn(l,g,l.path,h)),alwaysSet:h in l.data})}}return l.common.async?Promise.resolve().then(async()=>{const p=[];for(const h of d){const g=await h.key,x=await h.value;p.push({key:g,value:x,alwaysSet:h.alwaysSet})}return p}).then(p=>Ot.mergeObjectSync(o,p)):Ot.mergeObjectSync(o,d)}get shape(){return this._def.shape()}strict(t){return ke.errToObj,new ft({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,o)=>{const l=this._def.errorMap?.(n,o).message??o.defaultError;return n.code==="unrecognized_keys"?{message:ke.errToObj(t).message??l}:{message:l}}}:{}})}strip(){return new ft({...this._def,unknownKeys:"strip"})}passthrough(){return new ft({...this._def,unknownKeys:"passthrough"})}extend(t){return new ft({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new ft({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ie.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new ft({...this._def,catchall:t})}pick(t){const n={};for(const o of Ze.objectKeys(t))t[o]&&this.shape[o]&&(n[o]=this.shape[o]);return new ft({...this._def,shape:()=>n})}omit(t){const n={};for(const o of Ze.objectKeys(this.shape))t[o]||(n[o]=this.shape[o]);return new ft({...this._def,shape:()=>n})}deepPartial(){return Gi(this)}partial(t){const n={};for(const o of Ze.objectKeys(this.shape)){const l=this.shape[o];t&&!t[o]?n[o]=l:n[o]=l.optional()}return new ft({...this._def,shape:()=>n})}required(t){const n={};for(const o of Ze.objectKeys(this.shape))if(t&&!t[o])n[o]=this.shape[o];else{let s=this.shape[o];for(;s instanceof lr;)s=s._def.innerType;n[o]=s}return new ft({...this._def,shape:()=>n})}keyof(){return tv(Ze.objectKeys(this.shape))}}ft.create=(e,t)=>new ft({shape:()=>e,unknownKeys:"strip",catchall:zr.create(),typeName:Ie.ZodObject,...De(t)});ft.strictCreate=(e,t)=>new ft({shape:()=>e,unknownKeys:"strict",catchall:zr.create(),typeName:Ie.ZodObject,...De(t)});ft.lazycreate=(e,t)=>new ft({shape:e,unknownKeys:"strip",catchall:zr.create(),typeName:Ie.ZodObject,...De(t)});class ia extends Be{_parse(t){const{ctx:n}=this._processInputParams(t),o=this._def.options;function l(s){for(const c of s)if(c.result.status==="valid")return c.result;for(const c of s)if(c.result.status==="dirty")return n.common.issues.push(...c.ctx.common.issues),c.result;const u=s.map(c=>new ar(c.ctx.common.issues));return se(n,{code:re.invalid_union,unionErrors:u}),Ae}if(n.common.async)return Promise.all(o.map(async s=>{const u={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:u}),ctx:u}})).then(l);{let s;const u=[];for(const d of o){const p={...n,common:{...n.common,issues:[]},parent:null},h=d._parseSync({data:n.data,path:n.path,parent:p});if(h.status==="valid")return h;h.status==="dirty"&&!s&&(s={result:h,ctx:p}),p.common.issues.length&&u.push(p.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;const c=u.map(d=>new ar(d));return se(n,{code:re.invalid_union,unionErrors:c}),Ae}}get options(){return this._def.options}}ia.create=(e,t)=>new ia({options:e,typeName:Ie.ZodUnion,...De(t)});const rr=e=>e instanceof Of?rr(e.schema):e instanceof li?rr(e.innerType()):e instanceof sa?[e.value]:e instanceof oi?e.options:e instanceof Mf?Ze.objectValues(e.enum):e instanceof ua?rr(e._def.innerType):e instanceof Pf?[void 0]:e instanceof Nf?[null]:e instanceof lr?[void 0,...rr(e.unwrap())]:e instanceof si?[null,...rr(e.unwrap())]:e instanceof nv||e instanceof fa?rr(e.unwrap()):e instanceof ca?rr(e._def.innerType):[];class sd extends Be{_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==he.object)return se(n,{code:re.invalid_type,expected:he.object,received:n.parsedType}),Ae;const o=this.discriminator,l=n.data[o],s=this.optionsMap.get(l);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(se(n,{code:re.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[o]}),Ae)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,o){const l=new Map;for(const s of n){const u=rr(s.shape[t]);if(!u.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const c of u){if(l.has(c))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(c)}`);l.set(c,s)}}return new sd({typeName:Ie.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:l,...De(o)})}}function If(e,t){const n=Lr(e),o=Lr(t);if(e===t)return{valid:!0,data:e};if(n===he.object&&o===he.object){const l=Ze.objectKeys(t),s=Ze.objectKeys(e).filter(c=>l.indexOf(c)!==-1),u={...e,...t};for(const c of s){const d=If(e[c],t[c]);if(!d.valid)return{valid:!1};u[c]=d.data}return{valid:!0,data:u}}else if(n===he.array&&o===he.array){if(e.length!==t.length)return{valid:!1};const l=[];for(let s=0;s<e.length;s++){const u=e[s],c=t[s],d=If(u,c);if(!d.valid)return{valid:!1};l.push(d.data)}return{valid:!0,data:l}}else return n===he.date&&o===he.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class oa extends Be{_parse(t){const{status:n,ctx:o}=this._processInputParams(t),l=(s,u)=>{if(mg(s)||mg(u))return Ae;const c=If(s.value,u.value);return c.valid?((gg(s)||gg(u))&&n.dirty(),{status:n.value,value:c.data}):(se(o,{code:re.invalid_intersection_types}),Ae)};return o.common.async?Promise.all([this._def.left._parseAsync({data:o.data,path:o.path,parent:o}),this._def.right._parseAsync({data:o.data,path:o.path,parent:o})]).then(([s,u])=>l(s,u)):l(this._def.left._parseSync({data:o.data,path:o.path,parent:o}),this._def.right._parseSync({data:o.data,path:o.path,parent:o}))}}oa.create=(e,t,n)=>new oa({left:e,right:t,typeName:Ie.ZodIntersection,...De(n)});class ii extends Be{_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==he.array)return se(o,{code:re.invalid_type,expected:he.array,received:o.parsedType}),Ae;if(o.data.length<this._def.items.length)return se(o,{code:re.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ae;!this._def.rest&&o.data.length>this._def.items.length&&(se(o,{code:re.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const s=[...o.data].map((u,c)=>{const d=this._def.items[c]||this._def.rest;return d?d._parse(new Fn(o,u,o.path,c)):null}).filter(u=>!!u);return o.common.async?Promise.all(s).then(u=>Ot.mergeArray(n,u)):Ot.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new ii({...this._def,rest:t})}}ii.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ii({items:e,typeName:Ie.ZodTuple,rest:null,...De(t)})};class la extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==he.object)return se(o,{code:re.invalid_type,expected:he.object,received:o.parsedType}),Ae;const l=[],s=this._def.keyType,u=this._def.valueType;for(const c in o.data)l.push({key:s._parse(new Fn(o,c,o.path,c)),value:u._parse(new Fn(o,o.data[c],o.path,c)),alwaysSet:c in o.data});return o.common.async?Ot.mergeObjectAsync(n,l):Ot.mergeObjectSync(n,l)}get element(){return this._def.valueType}static create(t,n,o){return n instanceof Be?new la({keyType:t,valueType:n,typeName:Ie.ZodRecord,...De(o)}):new la({keyType:or.create(),valueType:t,typeName:Ie.ZodRecord,...De(n)})}}class kg extends Be{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==he.map)return se(o,{code:re.invalid_type,expected:he.map,received:o.parsedType}),Ae;const l=this._def.keyType,s=this._def.valueType,u=[...o.data.entries()].map(([c,d],p)=>({key:l._parse(new Fn(o,c,o.path,[p,"key"])),value:s._parse(new Fn(o,d,o.path,[p,"value"]))}));if(o.common.async){const c=new Map;return Promise.resolve().then(async()=>{for(const d of u){const p=await d.key,h=await d.value;if(p.status==="aborted"||h.status==="aborted")return Ae;(p.status==="dirty"||h.status==="dirty")&&n.dirty(),c.set(p.value,h.value)}return{status:n.value,value:c}})}else{const c=new Map;for(const d of u){const p=d.key,h=d.value;if(p.status==="aborted"||h.status==="aborted")return Ae;(p.status==="dirty"||h.status==="dirty")&&n.dirty(),c.set(p.value,h.value)}return{status:n.value,value:c}}}}kg.create=(e,t,n)=>new kg({valueType:t,keyType:e,typeName:Ie.ZodMap,...De(n)});class ul extends Be{_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.parsedType!==he.set)return se(o,{code:re.invalid_type,expected:he.set,received:o.parsedType}),Ae;const l=this._def;l.minSize!==null&&o.data.size<l.minSize.value&&(se(o,{code:re.too_small,minimum:l.minSize.value,type:"set",inclusive:!0,exact:!1,message:l.minSize.message}),n.dirty()),l.maxSize!==null&&o.data.size>l.maxSize.value&&(se(o,{code:re.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),n.dirty());const s=this._def.valueType;function u(d){const p=new Set;for(const h of d){if(h.status==="aborted")return Ae;h.status==="dirty"&&n.dirty(),p.add(h.value)}return{status:n.value,value:p}}const c=[...o.data.values()].map((d,p)=>s._parse(new Fn(o,d,o.path,p)));return o.common.async?Promise.all(c).then(d=>u(d)):u(c)}min(t,n){return new ul({...this._def,minSize:{value:t,message:ke.toString(n)}})}max(t,n){return new ul({...this._def,maxSize:{value:t,message:ke.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}ul.create=(e,t)=>new ul({valueType:e,minSize:null,maxSize:null,typeName:Ie.ZodSet,...De(t)});class Of extends Be{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}Of.create=(e,t)=>new Of({getter:e,typeName:Ie.ZodLazy,...De(t)});class sa extends Be{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return se(n,{received:n.data,code:re.invalid_literal,expected:this._def.value}),Ae}return{status:"valid",value:t.data}}get value(){return this._def.value}}sa.create=(e,t)=>new sa({value:e,typeName:Ie.ZodLiteral,...De(t)});function tv(e,t){return new oi({values:e,typeName:Ie.ZodEnum,...De(t)})}class oi extends Be{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),o=this._def.values;return se(n,{expected:Ze.joinValues(o),received:n.parsedType,code:re.invalid_type}),Ae}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),o=this._def.values;return se(n,{received:n.data,code:re.invalid_enum_value,options:o}),Ae}return cn(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return oi.create(t,{...this._def,...n})}exclude(t,n=this._def){return oi.create(this.options.filter(o=>!t.includes(o)),{...this._def,...n})}}oi.create=tv;class Mf extends Be{_parse(t){const n=Ze.getValidEnumValues(this._def.values),o=this._getOrReturnCtx(t);if(o.parsedType!==he.string&&o.parsedType!==he.number){const l=Ze.objectValues(n);return se(o,{expected:Ze.joinValues(l),received:o.parsedType,code:re.invalid_type}),Ae}if(this._cache||(this._cache=new Set(Ze.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const l=Ze.objectValues(n);return se(o,{received:o.data,code:re.invalid_enum_value,options:l}),Ae}return cn(t.data)}get enum(){return this._def.values}}Mf.create=(e,t)=>new Mf({values:e,typeName:Ie.ZodNativeEnum,...De(t)});class aa extends Be{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==he.promise&&n.common.async===!1)return se(n,{code:re.invalid_type,expected:he.promise,received:n.parsedType}),Ae;const o=n.parsedType===he.promise?n.data:Promise.resolve(n.data);return cn(o.then(l=>this._def.type.parseAsync(l,{path:n.path,errorMap:n.common.contextualErrorMap})))}}aa.create=(e,t)=>new aa({type:e,typeName:Ie.ZodPromise,...De(t)});class li extends Be{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:o}=this._processInputParams(t),l=this._def.effect||null,s={addIssue:u=>{se(o,u),u.fatal?n.abort():n.dirty()},get path(){return o.path}};if(s.addIssue=s.addIssue.bind(s),l.type==="preprocess"){const u=l.transform(o.data,s);if(o.common.async)return Promise.resolve(u).then(async c=>{if(n.value==="aborted")return Ae;const d=await this._def.schema._parseAsync({data:c,path:o.path,parent:o});return d.status==="aborted"?Ae:d.status==="dirty"||n.value==="dirty"?nl(d.value):d});{if(n.value==="aborted")return Ae;const c=this._def.schema._parseSync({data:u,path:o.path,parent:o});return c.status==="aborted"?Ae:c.status==="dirty"||n.value==="dirty"?nl(c.value):c}}if(l.type==="refinement"){const u=c=>{const d=l.refinement(c,s);if(o.common.async)return Promise.resolve(d);if(d instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c};if(o.common.async===!1){const c=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});return c.status==="aborted"?Ae:(c.status==="dirty"&&n.dirty(),u(c.value),{status:n.value,value:c.value})}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(c=>c.status==="aborted"?Ae:(c.status==="dirty"&&n.dirty(),u(c.value).then(()=>({status:n.value,value:c.value}))))}if(l.type==="transform")if(o.common.async===!1){const u=this._def.schema._parseSync({data:o.data,path:o.path,parent:o});if(!Qi(u))return Ae;const c=l.transform(u.value,s);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:c}}else return this._def.schema._parseAsync({data:o.data,path:o.path,parent:o}).then(u=>Qi(u)?Promise.resolve(l.transform(u.value,s)).then(c=>({status:n.value,value:c})):Ae);Ze.assertNever(l)}}li.create=(e,t,n)=>new li({schema:e,typeName:Ie.ZodEffects,effect:t,...De(n)});li.createWithPreprocess=(e,t,n)=>new li({schema:t,effect:{type:"preprocess",transform:e},typeName:Ie.ZodEffects,...De(n)});class lr extends Be{_parse(t){return this._getType(t)===he.undefined?cn(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}lr.create=(e,t)=>new lr({innerType:e,typeName:Ie.ZodOptional,...De(t)});class si extends Be{_parse(t){return this._getType(t)===he.null?cn(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}si.create=(e,t)=>new si({innerType:e,typeName:Ie.ZodNullable,...De(t)});class ua extends Be{_parse(t){const{ctx:n}=this._processInputParams(t);let o=n.data;return n.parsedType===he.undefined&&(o=this._def.defaultValue()),this._def.innerType._parse({data:o,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}ua.create=(e,t)=>new ua({innerType:e,typeName:Ie.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...De(t)});class ca extends Be{_parse(t){const{ctx:n}=this._processInputParams(t),o={...n,common:{...n.common,issues:[]}},l=this._def.innerType._parse({data:o.data,path:o.path,parent:{...o}});return na(l)?l.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ar(o.common.issues)},input:o.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new ar(o.common.issues)},input:o.data})}}removeCatch(){return this._def.innerType}}ca.create=(e,t)=>new ca({innerType:e,typeName:Ie.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...De(t)});class bg extends Be{_parse(t){if(this._getType(t)!==he.nan){const o=this._getOrReturnCtx(t);return se(o,{code:re.invalid_type,expected:he.nan,received:o.parsedType}),Ae}return{status:"valid",value:t.data}}}bg.create=e=>new bg({typeName:Ie.ZodNaN,...De(e)});class nv extends Be{_parse(t){const{ctx:n}=this._processInputParams(t),o=n.data;return this._def.type._parse({data:o,path:n.path,parent:n})}unwrap(){return this._def.type}}class ad extends Be{_parse(t){const{status:n,ctx:o}=this._processInputParams(t);if(o.common.async)return(async()=>{const s=await this._def.in._parseAsync({data:o.data,path:o.path,parent:o});return s.status==="aborted"?Ae:s.status==="dirty"?(n.dirty(),nl(s.value)):this._def.out._parseAsync({data:s.value,path:o.path,parent:o})})();{const l=this._def.in._parseSync({data:o.data,path:o.path,parent:o});return l.status==="aborted"?Ae:l.status==="dirty"?(n.dirty(),{status:"dirty",value:l.value}):this._def.out._parseSync({data:l.value,path:o.path,parent:o})}}static create(t,n){return new ad({in:t,out:n,typeName:Ie.ZodPipeline})}}class fa extends Be{_parse(t){const n=this._def.innerType._parse(t),o=l=>(Qi(l)&&(l.value=Object.freeze(l.value)),l);return na(n)?n.then(l=>o(l)):o(n)}unwrap(){return this._def.innerType}}fa.create=(e,t)=>new fa({innerType:e,typeName:Ie.ZodReadonly,...De(t)});var Ie;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ie||(Ie={}));const rt=or.create,Fs=Ji.create,MS=Tf.create,Df=Af.create;zr.create;const da=Ln.create,un=ft.create,DS=ia.create,jS=sd.create;oa.create;ii.create;const rv=la.create,$n=sa.create,iv=oi.create;aa.create;lr.create;si.create;const ov=un({type:rt()}).passthrough(),LS=un({type:$n("system"),subtype:rt(),session_id:rt().optional(),model:rt().optional(),cwd:rt().optional(),tools:da(rt()).optional(),slash_commands:da(rt()).optional(),status:rt().optional(),uuid:rt().optional()}).strict(),zS=un({type:$n("user"),session_id:rt().optional(),uuid:rt().optional(),parent_tool_use_id:rt().nullable().optional(),message:un({role:$n("user"),content:DS([rt(),da(ov)])}).strict()}).strict(),FS=un({type:$n("assistant"),session_id:rt().optional(),uuid:rt().optional(),parent_tool_use_id:rt().nullable().optional(),message:un({role:$n("assistant"),content:da(ov)}).strict()}).strict(),$S=un({type:$n("result"),subtype:iv(["success","error_during_execution","error_max_turns"]),result:rt().optional(),structured_output:rv(Df()).optional(),num_turns:Fs(),usage:Df().optional(),total_cost_usd:Fs(),duration_ms:Fs(),duration_api_ms:Fs(),is_error:MS(),session_id:rt()}).strict(),BS=un({type:$n("log"),log:un({level:iv(["debug","info","warn","error"]),message:rt()}).strict()}).strict(),US=un({type:$n("permission_request"),request_id:rt(),tool_name:rt(),tool_description:rt(),input:rv(Df())}).strict(),VS=un({type:$n("history_begin"),sessionId:rt()}).strict(),WS=un({type:$n("history_end"),sessionId:rt()}).strict(),Kc=jS("type",[LS,zS,FS,$S,BS,US,VS,WS]);function jf(e){return typeof e=="object"&&e!==null}function HS(e){return!jf(e)||e.type!=="session_list"?!1:Array.isArray(e.sessions)}function ZS(e){return typeof window<"u"&&window.location?new URL(e,window.location.href):new URL(e)}function GS(e){const t=new URL(e.baseUrl.toString());return t.protocol=t.protocol==="https:"?"wss:":"ws:",t.pathname="/ws",t.searchParams.set("token",e.token),e.workspaceId&&t.searchParams.set("workspace",e.workspaceId),t}function qS(e){try{return JSON.parse(e)}catch{return null}}class KS{constructor(t){this.options=t}ws=null;sessionId=null;listeners=new Set;isConnected(){return this.ws?.readyState===1}disconnect(){try{this.ws?.close()}catch{}this.ws=null,this.sessionId=null,this.listeners.clear()}emit(t){for(const n of this.listeners)try{n(t)}catch{}}onMessage(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}async ensureConnected(){if(this.ws?.readyState===1)return;const t=ZS(this.options.baseUrl),n=GS({baseUrl:t,token:this.options.token,workspaceId:this.options.workspaceId}),o=this.options.webSocketImpl??globalThis.WebSocket;if(!o)throw new Error("WebSocket implementation not found");const l=new o(n.toString());this.ws=l,await new Promise((s,u)=>{const c=()=>{p(),s()},d=()=>{p(),u(new Error("WebSocket connection error"))},p=()=>{try{l.removeEventListener?.("open",c),l.removeEventListener?.("error",d)}catch{}};l.addEventListener("open",c,{once:!0}),l.addEventListener("error",d,{once:!0})}),l.addEventListener("message",s=>{const u=s.data,c=typeof u=="string"?u:String(u??""),d=qS(c),p=Kc.safeParse(d);if(p.success){const h=p.data;h.type==="system"&&h.subtype==="init"&&(this.sessionId=h.session_id??null)}this.emit(d)}),l.addEventListener("close",()=>{this.ws=null,this.sessionId=null})}send(t){if(!this.ws||this.ws.readyState!==1)throw new Error("HttpClient is not connected");this.ws.send(JSON.stringify(t))}cancelRequest(){!this.ws||this.ws.readyState!==1||this.send({type:"cancel"})}async approveToolUse(t,n){const o=n?.decision??"allow_once";this.send({type:"permission_response",request_id:t,decision:o,...n?.updatedInput?{updated_input:n.updatedInput}:{}})}async denyToolUse(t,n,o){this.send({type:"permission_response",request_id:t,decision:"deny",...o?.updatedInput?{updated_input:o.updatedInput}:{},...n&&n.trim()?{rejection_message:n.trim()}:{}})}async listSessions(){return await this.ensureConnected(),await new Promise((t,n)=>{const o=this.onMessage(l=>{HS(l)&&(o(),t(l.sessions))});try{this.send({type:"list_sessions"})}catch(l){o(),n(l)}})}async loadSession(t){await this.ensureConnected();const n=(await this.listSessions()).find(l=>l.sessionId===t)??{sessionId:t,slug:null,customTitle:null,tag:null,summary:null,cwd:null,createdAt:null,modifiedAt:null},o=[];return await new Promise((l,s)=>{let u=!1;const c=this.onMessage(d=>{if(jf(d)&&d.type==="history_begin"){(typeof d.sessionId=="string"?d.sessionId:"")===t&&(u=!0);return}if(jf(d)&&d.type==="history_end"){(typeof d.sessionId=="string"?d.sessionId:"")===t&&(u=!1,c(),l());return}if(!u)return;const p=Kc.safeParse(d);p.success&&o.push(p.data)});try{this.send({type:"resume",session_id:t})}catch(d){c(),s(d)}}),{...n,events:o}}async deleteSession(t){throw new Error("deleteSession is not supported by the daemon yet")}async*sendMessage(t){await this.ensureConnected();const n=[];let o=null,l=!1;const s=()=>{if(!o)return;const c=o;o=null,c()},u=this.onMessage(c=>{const d=Kc.safeParse(c);if(!d.success)return;const p=d.data;n.push(p),p.type==="result"&&(l=!0),s()});try{for(this.send({type:"prompt",prompt:t});!l||n.length>0;){if(n.length===0){await new Promise(d=>{o=d});continue}const c=n.shift();c&&(yield c)}}finally{u()}}}function YS(e){const[t,n]=Ce.useState(0),o=Ce.useCallback(()=>n(c=>c+1),[]),l=Ce.useMemo(()=>e.token?new KS({baseUrl:e.baseUrl,token:e.token,workspaceId:e.workspaceId??void 0}):null,[e.baseUrl,e.token,e.workspaceId,t]);Ce.useEffect(()=>()=>{l?.disconnect()},[l]);const[s,u]=Ce.useState(!1);return Ce.useEffect(()=>{if(!l){u(!1);return}u(l.isConnected());const c=window.setInterval(()=>{u(l.isConnected())},500);return()=>window.clearInterval(c)},[l]),{client:l,connected:s,restartClient:o}}async function XS(e){const t=await fetch("/api/workspaces",{headers:e?{authorization:`Bearer ${e}`}:{}});if(!t.ok)throw new Error(`Failed to load workspaces (${t.status})`);const n=await t.json();if(!n||typeof n!="object")throw new Error("Invalid workspaces response");const o=n,l=Array.isArray(o.workspaces)?o.workspaces:[],s=typeof o.currentId=="string"?o.currentId:"";return{workspaces:l.filter(c=>!!c&&typeof c=="object").map(c=>({id:typeof c.id=="string"?c.id:"",path:typeof c.path=="string"?c.path:"",title:typeof c.title=="string"?c.title:"",branch:typeof c.branch=="string"?c.branch:null,isCurrent:c.isCurrent===!0})).filter(c=>!!c.id),currentId:s}}const Sg="kode.webui.workspace";function QS(e){const[t,n]=Ce.useState([]),[o,l]=Ce.useState(null),[s,u]=Ce.useState(!1);return Ce.useEffect(()=>{e.token&&(u(!0),XS(e.token).then(({workspaces:c,currentId:d})=>{n(c);const p=(()=>{try{return window.localStorage.getItem(Sg)}catch{return null}})(),h=(p&&c.some(g=>g.id===p)?p:null)||(d&&c.some(g=>g.id===d)?d:null)||(c[0]?.id??null);l(h)}).catch(()=>{n([]),l(null)}).finally(()=>u(!1)))},[e.token]),Ce.useEffect(()=>{if(o)try{window.localStorage.setItem(Sg,o)}catch{}},[o]),{workspaces:t,workspaceId:o,setWorkspaceId:l,loading:s}}function lv(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(n=lv(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function sv(){for(var e,t,n=0,o="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=lv(e))&&(o&&(o+=" "),o+=t);return o}const JS=(e,t)=>{const n=new Array(e.length+t.length);for(let o=0;o<e.length;o++)n[o]=e[o];for(let o=0;o<t.length;o++)n[e.length+o]=t[o];return n},eC=(e,t)=>({classGroupId:e,validator:t}),av=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),pa="-",Cg=[],tC="arbitrary..",nC=e=>{const t=iC(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return rC(u);const c=u.split(pa),d=c[0]===""&&c.length>1?1:0;return uv(c,d,t)},getConflictingClassGroupIds:(u,c)=>{if(c){const d=o[u],p=n[u];return d?p?JS(p,d):d:p||Cg}return n[u]||Cg}}},uv=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const l=e[t],s=n.nextPart.get(l);if(s){const p=uv(e,t+1,s);if(p)return p}const u=n.validators;if(u===null)return;const c=t===0?e.join(pa):e.slice(t).join(pa),d=u.length;for(let p=0;p<d;p++){const h=u[p];if(h.validator(c))return h.classGroupId}},rC=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),o=t.slice(0,n);return o?tC+o:void 0})(),iC=e=>{const{theme:t,classGroups:n}=e;return oC(n,t)},oC=(e,t)=>{const n=av();for(const o in e){const l=e[o];ud(l,n,o,t)}return n},ud=(e,t,n,o)=>{const l=e.length;for(let s=0;s<l;s++){const u=e[s];lC(u,t,n,o)}},lC=(e,t,n,o)=>{if(typeof e=="string"){sC(e,t,n);return}if(typeof e=="function"){aC(e,t,n,o);return}uC(e,t,n,o)},sC=(e,t,n)=>{const o=e===""?t:cv(t,e);o.classGroupId=n},aC=(e,t,n,o)=>{if(cC(e)){ud(e(o),t,n,o);return}t.validators===null&&(t.validators=[]),t.validators.push(eC(n,e))},uC=(e,t,n,o)=>{const l=Object.entries(e),s=l.length;for(let u=0;u<s;u++){const[c,d]=l[u];ud(d,cv(t,c),n,o)}},cv=(e,t)=>{let n=e;const o=t.split(pa),l=o.length;for(let s=0;s<l;s++){const u=o[s];let c=n.nextPart.get(u);c||(c=av(),n.nextPart.set(u,c)),n=c}return n},cC=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,fC=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),o=Object.create(null);const l=(s,u)=>{n[s]=u,t++,t>e&&(t=0,o=n,n=Object.create(null))};return{get(s){let u=n[s];if(u!==void 0)return u;if((u=o[s])!==void 0)return l(s,u),u},set(s,u){s in n?n[s]=u:l(s,u)}}},Lf="!",_g=":",dC=[],Eg=(e,t,n,o,l)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:o,isExternal:l}),pC=e=>{const{prefix:t,experimentalParseClassName:n}=e;let o=l=>{const s=[];let u=0,c=0,d=0,p;const h=l.length;for(let C=0;C<h;C++){const E=l[C];if(u===0&&c===0){if(E===_g){s.push(l.slice(d,C)),d=C+1;continue}if(E==="/"){p=C;continue}}E==="["?u++:E==="]"?u--:E==="("?c++:E===")"&&c--}const g=s.length===0?l:l.slice(d);let x=g,v=!1;g.endsWith(Lf)?(x=g.slice(0,-1),v=!0):g.startsWith(Lf)&&(x=g.slice(1),v=!0);const S=p&&p>d?p-d:void 0;return Eg(s,v,x,S)};if(t){const l=t+_g,s=o;o=u=>u.startsWith(l)?s(u.slice(l.length)):Eg(dC,!1,u,void 0,!0)}if(n){const l=o;o=s=>n({className:s,parseClassName:l})}return o},hC=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,o)=>{t.set(n,1e6+o)}),n=>{const o=[];let l=[];for(let s=0;s<n.length;s++){const u=n[s],c=u[0]==="[",d=t.has(u);c||d?(l.length>0&&(l.sort(),o.push(...l),l=[]),o.push(u)):l.push(u)}return l.length>0&&(l.sort(),o.push(...l)),o}},mC=e=>({cache:fC(e.cacheSize),parseClassName:pC(e),sortModifiers:hC(e),...nC(e)}),gC=/\s+/,yC=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:l,sortModifiers:s}=t,u=[],c=e.trim().split(gC);let d="";for(let p=c.length-1;p>=0;p-=1){const h=c[p],{isExternal:g,modifiers:x,hasImportantModifier:v,baseClassName:S,maybePostfixModifierPosition:C}=n(h);if(g){d=h+(d.length>0?" "+d:d);continue}let E=!!C,R=o(E?S.substring(0,C):S);if(!R){if(!E){d=h+(d.length>0?" "+d:d);continue}if(R=o(S),!R){d=h+(d.length>0?" "+d:d);continue}E=!1}const A=x.length===0?"":x.length===1?x[0]:s(x).join(":"),N=v?A+Lf:A,F=N+R;if(u.indexOf(F)>-1)continue;u.push(F);const B=l(R,E);for(let I=0;I<B.length;++I){const W=B[I];u.push(N+W)}d=h+(d.length>0?" "+d:d)}return d},vC=(...e)=>{let t=0,n,o,l="";for(;t<e.length;)(n=e[t++])&&(o=fv(n))&&(l&&(l+=" "),l+=o);return l},fv=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=fv(e[o]))&&(n&&(n+=" "),n+=t);return n},xC=(e,...t)=>{let n,o,l,s;const u=d=>{const p=t.reduce((h,g)=>g(h),e());return n=mC(p),o=n.cache.get,l=n.cache.set,s=c,c(d)},c=d=>{const p=o(d);if(p)return p;const h=yC(d,n);return l(d,h),h};return s=u,(...d)=>s(vC(...d))},wC=[],ht=e=>{const t=n=>n[e]||wC;return t.isThemeGetter=!0,t},dv=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,pv=/^\((?:(\w[\w-]*):)?(.+)\)$/i,kC=/^\d+\/\d+$/,bC=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,SC=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,CC=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,_C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,EC=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Bi=e=>kC.test(e),je=e=>!!e&&!Number.isNaN(Number(e)),Mr=e=>!!e&&Number.isInteger(Number(e)),Yc=e=>e.endsWith("%")&&je(e.slice(0,-1)),nr=e=>bC.test(e),RC=()=>!0,TC=e=>SC.test(e)&&!CC.test(e),hv=()=>!1,PC=e=>_C.test(e),NC=e=>EC.test(e),AC=e=>!ge(e)&&!ye(e),IC=e=>ro(e,yv,hv),ge=e=>dv.test(e),ni=e=>ro(e,vv,TC),Xc=e=>ro(e,LC,je),Rg=e=>ro(e,mv,hv),OC=e=>ro(e,gv,NC),$s=e=>ro(e,xv,PC),ye=e=>pv.test(e),Xo=e=>io(e,vv),MC=e=>io(e,zC),Tg=e=>io(e,mv),DC=e=>io(e,yv),jC=e=>io(e,gv),Bs=e=>io(e,xv,!0),ro=(e,t,n)=>{const o=dv.exec(e);return o?o[1]?t(o[1]):n(o[2]):!1},io=(e,t,n=!1)=>{const o=pv.exec(e);return o?o[1]?t(o[1]):n:!1},mv=e=>e==="position"||e==="percentage",gv=e=>e==="image"||e==="url",yv=e=>e==="length"||e==="size"||e==="bg-size",vv=e=>e==="length",LC=e=>e==="number",zC=e=>e==="family-name",xv=e=>e==="shadow",FC=()=>{const e=ht("color"),t=ht("font"),n=ht("text"),o=ht("font-weight"),l=ht("tracking"),s=ht("leading"),u=ht("breakpoint"),c=ht("container"),d=ht("spacing"),p=ht("radius"),h=ht("shadow"),g=ht("inset-shadow"),x=ht("text-shadow"),v=ht("drop-shadow"),S=ht("blur"),C=ht("perspective"),E=ht("aspect"),R=ht("ease"),A=ht("animate"),N=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...F(),ye,ge],I=()=>["auto","hidden","clip","visible","scroll"],W=()=>["auto","contain","none"],V=()=>[ye,ge,d],Y=()=>[Bi,"full","auto",...V()],D=()=>[Mr,"none","subgrid",ye,ge],q=()=>["auto",{span:["full",Mr,ye,ge]},Mr,ye,ge],J=()=>[Mr,"auto",ye,ge],ue=()=>["auto","min","max","fr",ye,ge],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],oe=()=>["auto",...V()],ae=()=>[Bi,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],L=()=>[e,ye,ge],Z=()=>[...F(),Tg,Rg,{position:[ye,ge]}],_=()=>["no-repeat",{repeat:["","x","y","space","round"]}],M=()=>["auto","cover","contain",DC,IC,{size:[ye,ge]}],H=()=>[Yc,Xo,ni],T=()=>["","none","full",p,ye,ge],de=()=>["",je,Xo,ni],Re=()=>["solid","dashed","dotted","double"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[je,Yc,Tg,Rg],Pe=()=>["","none",S,ye,ge],Le=()=>["none",je,ye,ge],Ke=()=>["none",je,ye,ge],Pt=()=>[je,ye,ge],dn=()=>[Bi,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[nr],breakpoint:[nr],color:[RC],container:[nr],"drop-shadow":[nr],ease:["in","out","in-out"],font:[AC],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[nr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[nr],shadow:[nr],spacing:["px",je],text:[nr],"text-shadow":[nr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Bi,ge,ye,E]}],container:["container"],columns:[{columns:[je,ge,ye,c]}],"break-after":[{"break-after":N()}],"break-before":[{"break-before":N()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:B()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:W()}],"overscroll-x":[{"overscroll-x":W()}],"overscroll-y":[{"overscroll-y":W()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{start:Y()}],end:[{end:Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[Mr,"auto",ye,ge]}],basis:[{basis:[Bi,"full","auto",c,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,Bi,"auto","initial","none",ge]}],grow:[{grow:["",je,ye,ge]}],shrink:[{shrink:["",je,ye,ge]}],order:[{order:[Mr,"first","last","none",ye,ge]}],"grid-cols":[{"grid-cols":D()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":J()}],"col-end":[{"col-end":J()}],"grid-rows":[{"grid-rows":D()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":J()}],"row-end":[{"row-end":J()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:oe()}],mx:[{mx:oe()}],my:[{my:oe()}],ms:[{ms:oe()}],me:[{me:oe()}],mt:[{mt:oe()}],mr:[{mr:oe()}],mb:[{mb:oe()}],ml:[{ml:oe()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:ae()}],w:[{w:[c,"screen",...ae()]}],"min-w":[{"min-w":[c,"screen","none",...ae()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[u]},...ae()]}],h:[{h:["screen","lh",...ae()]}],"min-h":[{"min-h":["screen","lh","none",...ae()]}],"max-h":[{"max-h":["screen","lh",...ae()]}],"font-size":[{text:["base",n,Xo,ni]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,ye,Xc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Yc,ge]}],"font-family":[{font:[MC,ge,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,ye,ge]}],"line-clamp":[{"line-clamp":[je,"none",ye,Xc]}],leading:[{leading:[s,...V()]}],"list-image":[{"list-image":["none",ye,ge]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ye,ge]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:L()}],"text-color":[{text:L()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Re(),"wavy"]}],"text-decoration-thickness":[{decoration:[je,"from-font","auto",ye,ni]}],"text-decoration-color":[{decoration:L()}],"underline-offset":[{"underline-offset":[je,"auto",ye,ge]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ye,ge]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ye,ge]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Z()}],"bg-repeat":[{bg:_()}],"bg-size":[{bg:M()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Mr,ye,ge],radial:["",ye,ge],conic:[Mr,ye,ge]},jC,OC]}],"bg-color":[{bg:L()}],"gradient-from-pos":[{from:H()}],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:L()}],"gradient-via":[{via:L()}],"gradient-to":[{to:L()}],rounded:[{rounded:T()}],"rounded-s":[{"rounded-s":T()}],"rounded-e":[{"rounded-e":T()}],"rounded-t":[{"rounded-t":T()}],"rounded-r":[{"rounded-r":T()}],"rounded-b":[{"rounded-b":T()}],"rounded-l":[{"rounded-l":T()}],"rounded-ss":[{"rounded-ss":T()}],"rounded-se":[{"rounded-se":T()}],"rounded-ee":[{"rounded-ee":T()}],"rounded-es":[{"rounded-es":T()}],"rounded-tl":[{"rounded-tl":T()}],"rounded-tr":[{"rounded-tr":T()}],"rounded-br":[{"rounded-br":T()}],"rounded-bl":[{"rounded-bl":T()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Re(),"hidden","none"]}],"divide-style":[{divide:[...Re(),"hidden","none"]}],"border-color":[{border:L()}],"border-color-x":[{"border-x":L()}],"border-color-y":[{"border-y":L()}],"border-color-s":[{"border-s":L()}],"border-color-e":[{"border-e":L()}],"border-color-t":[{"border-t":L()}],"border-color-r":[{"border-r":L()}],"border-color-b":[{"border-b":L()}],"border-color-l":[{"border-l":L()}],"divide-color":[{divide:L()}],"outline-style":[{outline:[...Re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[je,ye,ge]}],"outline-w":[{outline:["",je,Xo,ni]}],"outline-color":[{outline:L()}],shadow:[{shadow:["","none",h,Bs,$s]}],"shadow-color":[{shadow:L()}],"inset-shadow":[{"inset-shadow":["none",g,Bs,$s]}],"inset-shadow-color":[{"inset-shadow":L()}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:L()}],"ring-offset-w":[{"ring-offset":[je,ni]}],"ring-offset-color":[{"ring-offset":L()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":L()}],"text-shadow":[{"text-shadow":["none",x,Bs,$s]}],"text-shadow-color":[{"text-shadow":L()}],opacity:[{opacity:[je,ye,ge]}],"mix-blend":[{"mix-blend":[...xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[je]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":L()}],"mask-image-linear-to-color":[{"mask-linear-to":L()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":L()}],"mask-image-t-to-color":[{"mask-t-to":L()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":L()}],"mask-image-r-to-color":[{"mask-r-to":L()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":L()}],"mask-image-b-to-color":[{"mask-b-to":L()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":L()}],"mask-image-l-to-color":[{"mask-l-to":L()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":L()}],"mask-image-x-to-color":[{"mask-x-to":L()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":L()}],"mask-image-y-to-color":[{"mask-y-to":L()}],"mask-image-radial":[{"mask-radial":[ye,ge]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":L()}],"mask-image-radial-to-color":[{"mask-radial-to":L()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":F()}],"mask-image-conic-pos":[{"mask-conic":[je]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":L()}],"mask-image-conic-to-color":[{"mask-conic-to":L()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Z()}],"mask-repeat":[{mask:_()}],"mask-size":[{mask:M()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ye,ge]}],filter:[{filter:["","none",ye,ge]}],blur:[{blur:Pe()}],brightness:[{brightness:[je,ye,ge]}],contrast:[{contrast:[je,ye,ge]}],"drop-shadow":[{"drop-shadow":["","none",v,Bs,$s]}],"drop-shadow-color":[{"drop-shadow":L()}],grayscale:[{grayscale:["",je,ye,ge]}],"hue-rotate":[{"hue-rotate":[je,ye,ge]}],invert:[{invert:["",je,ye,ge]}],saturate:[{saturate:[je,ye,ge]}],sepia:[{sepia:["",je,ye,ge]}],"backdrop-filter":[{"backdrop-filter":["","none",ye,ge]}],"backdrop-blur":[{"backdrop-blur":Pe()}],"backdrop-brightness":[{"backdrop-brightness":[je,ye,ge]}],"backdrop-contrast":[{"backdrop-contrast":[je,ye,ge]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,ye,ge]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,ye,ge]}],"backdrop-invert":[{"backdrop-invert":["",je,ye,ge]}],"backdrop-opacity":[{"backdrop-opacity":[je,ye,ge]}],"backdrop-saturate":[{"backdrop-saturate":[je,ye,ge]}],"backdrop-sepia":[{"backdrop-sepia":["",je,ye,ge]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ye,ge]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[je,"initial",ye,ge]}],ease:[{ease:["linear","initial",R,ye,ge]}],delay:[{delay:[je,ye,ge]}],animate:[{animate:["none",A,ye,ge]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,ye,ge]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:Le()}],"rotate-x":[{"rotate-x":Le()}],"rotate-y":[{"rotate-y":Le()}],"rotate-z":[{"rotate-z":Le()}],scale:[{scale:Ke()}],"scale-x":[{"scale-x":Ke()}],"scale-y":[{"scale-y":Ke()}],"scale-z":[{"scale-z":Ke()}],"scale-3d":["scale-3d"],skew:[{skew:Pt()}],"skew-x":[{"skew-x":Pt()}],"skew-y":[{"skew-y":Pt()}],transform:[{transform:[ye,ge,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:dn()}],"translate-x":[{"translate-x":dn()}],"translate-y":[{"translate-y":dn()}],"translate-z":[{"translate-z":dn()}],"translate-none":["translate-none"],accent:[{accent:L()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:L()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ye,ge]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ye,ge]}],fill:[{fill:["none",...L()]}],"stroke-w":[{stroke:[je,Xo,ni,Xc]}],stroke:[{stroke:["none",...L()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},$C=xC(FC);function Oe(...e){return $C(sv(e))}function Pg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function vl(...e){return t=>{let n=!1;const o=e.map(l=>{const s=Pg(l,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let l=0;l<o.length;l++){const s=o[l];typeof s=="function"?s():Pg(e[l],null)}}}}function tt(...e){return k.useCallback(vl(...e),e)}var BC=Symbol.for("react.lazy"),ha=ld[" use ".trim().toString()];function UC(e){return typeof e=="object"&&e!==null&&"then"in e}function wv(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===BC&&"_payload"in e&&UC(e._payload)}function kv(e){const t=WC(e),n=k.forwardRef((o,l)=>{let{children:s,...u}=o;wv(s)&&typeof ha=="function"&&(s=ha(s._payload));const c=k.Children.toArray(s),d=c.find(ZC);if(d){const p=d.props.children,h=c.map(g=>g===d?k.Children.count(p)>1?k.Children.only(null):k.isValidElement(p)?p.props.children:null:g);return w.jsx(t,{...u,ref:l,children:k.isValidElement(p)?k.cloneElement(p,void 0,h):null})}return w.jsx(t,{...u,ref:l,children:s})});return n.displayName=`${e}.Slot`,n}var VC=kv("Slot");function WC(e){const t=k.forwardRef((n,o)=>{let{children:l,...s}=n;if(wv(l)&&typeof ha=="function"&&(l=ha(l._payload)),k.isValidElement(l)){const u=qC(l),c=GC(s,l.props);return l.type!==k.Fragment&&(c.ref=o?vl(o,u):u),k.cloneElement(l,c)}return k.Children.count(l)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var HC=Symbol("radix.slottable");function ZC(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===HC}function GC(e,t){const n={...t};for(const o in t){const l=e[o],s=t[o];/^on[A-Z]/.test(o)?l&&s?n[o]=(...c)=>{const d=s(...c);return l(...c),d}:l&&(n[o]=l):o==="style"?n[o]={...l,...s}:o==="className"&&(n[o]=[l,s].filter(Boolean).join(" "))}return{...e,...n}}function qC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const Ng=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Ag=sv,cd=(e,t)=>n=>{var o;if(t?.variants==null)return Ag(e,n?.class,n?.className);const{variants:l,defaultVariants:s}=t,u=Object.keys(l).map(p=>{const h=n?.[p],g=s?.[p];if(h===null)return null;const x=Ng(h)||Ng(g);return l[p][x]}),c=n&&Object.entries(n).reduce((p,h)=>{let[g,x]=h;return x===void 0||(p[g]=x),p},{}),d=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((p,h)=>{let{class:g,className:x,...v}=h;return Object.entries(v).every(S=>{let[C,E]=S;return Array.isArray(E)?E.includes({...s,...c}[C]):{...s,...c}[C]===E})?[...p,g,x]:p},[]);return Ag(e,u,d,n?.class,n?.className)},KC=cd(["inline-flex items-center justify-center gap-2 whitespace-nowrap","text-sm font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/20","disabled:pointer-events-none disabled:opacity-50","active:translate-y-px"].join(" "),{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",ghost:"hover:bg-accent hover:text-accent-foreground",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 rounded-lg px-4",sm:"h-8 rounded-md px-3 text-xs",lg:"h-11 rounded-lg px-6",icon:"h-10 w-10 rounded-lg"}},defaultVariants:{variant:"default",size:"default"}}),kn=k.forwardRef(({className:e,variant:t,size:n,asChild:o=!1,...l},s)=>{const u=o?VC:"button";return w.jsx(u,{ref:s,className:Oe(KC({variant:t,size:n,className:e})),...l})});kn.displayName="Button";var fd=Ky();const YC=yl(fd);function cl(e){const t=XC(e),n=k.forwardRef((o,l)=>{const{children:s,...u}=o,c=k.Children.toArray(s),d=c.find(JC);if(d){const p=d.props.children,h=c.map(g=>g===d?k.Children.count(p)>1?k.Children.only(null):k.isValidElement(p)?p.props.children:null:g);return w.jsx(t,{...u,ref:l,children:k.isValidElement(p)?k.cloneElement(p,void 0,h):null})}return w.jsx(t,{...u,ref:l,children:s})});return n.displayName=`${e}.Slot`,n}function XC(e){const t=k.forwardRef((n,o)=>{const{children:l,...s}=n;if(k.isValidElement(l)){const u=t_(l),c=e_(s,l.props);return l.type!==k.Fragment&&(c.ref=o?vl(o,u):u),k.cloneElement(l,c)}return k.Children.count(l)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var QC=Symbol("radix.slottable");function JC(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===QC}function e_(e,t){const n={...t};for(const o in t){const l=e[o],s=t[o];/^on[A-Z]/.test(o)?l&&s?n[o]=(...c)=>{const d=s(...c);return l(...c),d}:l&&(n[o]=l):o==="style"?n[o]={...l,...s}:o==="className"&&(n[o]=[l,s].filter(Boolean).join(" "))}return{...e,...n}}function t_(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var n_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ve=n_.reduce((e,t)=>{const n=cl(`Primitive.${t}`),o=k.forwardRef((l,s)=>{const{asChild:u,...c}=l,d=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(d,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function bv(e,t){e&&fd.flushSync(()=>e.dispatchEvent(t))}var Bn=globalThis?.document?k.useLayoutEffect:()=>{};function r_(e,t){return k.useReducer((n,o)=>t[n][o]??n,e)}var Ut=e=>{const{present:t,children:n}=e,o=i_(t),l=typeof n=="function"?n({present:o.isPresent}):k.Children.only(n),s=tt(o.ref,o_(l));return typeof n=="function"||o.isPresent?k.cloneElement(l,{ref:s}):null};Ut.displayName="Presence";function i_(e){const[t,n]=k.useState(),o=k.useRef(null),l=k.useRef(e),s=k.useRef("none"),u=e?"mounted":"unmounted",[c,d]=r_(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const p=Us(o.current);s.current=c==="mounted"?p:"none"},[c]),Bn(()=>{const p=o.current,h=l.current;if(h!==e){const x=s.current,v=Us(p);e?d("MOUNT"):v==="none"||p?.display==="none"?d("UNMOUNT"):d(h&&x!==v?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,d]),Bn(()=>{if(t){let p;const h=t.ownerDocument.defaultView??window,g=v=>{const C=Us(o.current).includes(CSS.escape(v.animationName));if(v.target===t&&C&&(d("ANIMATION_END"),!l.current)){const E=t.style.animationFillMode;t.style.animationFillMode="forwards",p=h.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=E)})}},x=v=>{v.target===t&&(s.current=Us(o.current))};return t.addEventListener("animationstart",x),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{h.clearTimeout(p),t.removeEventListener("animationstart",x),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:k.useCallback(p=>{o.current=p?getComputedStyle(p):null,n(p)},[])}}function Us(e){return e?.animationName||"none"}function o_(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function l_(e,t){const n=k.createContext(t),o=s=>{const{children:u,...c}=s,d=k.useMemo(()=>c,Object.values(c));return w.jsx(n.Provider,{value:d,children:u})};o.displayName=e+"Provider";function l(s){const u=k.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[o,l]}function Vn(e,t=[]){let n=[];function o(s,u){const c=k.createContext(u),d=n.length;n=[...n,u];const p=g=>{const{scope:x,children:v,...S}=g,C=x?.[e]?.[d]||c,E=k.useMemo(()=>S,Object.values(S));return w.jsx(C.Provider,{value:E,children:v})};p.displayName=s+"Provider";function h(g,x){const v=x?.[e]?.[d]||c,S=k.useContext(v);if(S)return S;if(u!==void 0)return u;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[p,h]}const l=()=>{const s=n.map(u=>k.createContext(u));return function(c){const d=c?.[e]||s;return k.useMemo(()=>({[`__scope${e}`]:{...c,[e]:d}}),[c,d])}};return l.scopeName=e,[o,s_(l,...t)]}function s_(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(s){const u=o.reduce((c,{useScope:d,scopeName:p})=>{const g=d(s)[`__scope${p}`];return{...c,...g}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}function Et(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>(...n)=>t.current?.(...n),[])}var a_=k.createContext(void 0);function xl(e){const t=k.useContext(a_);return e||t||"ltr"}function u_(e,[t,n]){return Math.min(n,Math.max(t,e))}function Ee(e,t,{checkForDefaultPrevented:n=!0}={}){return function(l){if(e?.(l),n===!1||!l.defaultPrevented)return t?.(l)}}function c_(e,t){return k.useReducer((n,o)=>t[n][o]??n,e)}var dd="ScrollArea",[Sv]=Vn(dd),[f_,fn]=Sv(dd),Cv=k.forwardRef((e,t)=>{const{__scopeScrollArea:n,type:o="hover",dir:l,scrollHideDelay:s=600,...u}=e,[c,d]=k.useState(null),[p,h]=k.useState(null),[g,x]=k.useState(null),[v,S]=k.useState(null),[C,E]=k.useState(null),[R,A]=k.useState(0),[N,F]=k.useState(0),[B,I]=k.useState(!1),[W,V]=k.useState(!1),Y=tt(t,q=>d(q)),D=xl(l);return w.jsx(f_,{scope:n,type:o,dir:D,scrollHideDelay:s,scrollArea:c,viewport:p,onViewportChange:h,content:g,onContentChange:x,scrollbarX:v,onScrollbarXChange:S,scrollbarXEnabled:B,onScrollbarXEnabledChange:I,scrollbarY:C,onScrollbarYChange:E,scrollbarYEnabled:W,onScrollbarYEnabledChange:V,onCornerWidthChange:A,onCornerHeightChange:F,children:w.jsx(Ve.div,{dir:D,...u,ref:Y,style:{position:"relative","--radix-scroll-area-corner-width":R+"px","--radix-scroll-area-corner-height":N+"px",...e.style}})})});Cv.displayName=dd;var _v="ScrollAreaViewport",Ev=k.forwardRef((e,t)=>{const{__scopeScrollArea:n,children:o,nonce:l,...s}=e,u=fn(_v,n),c=k.useRef(null),d=tt(t,c,u.onViewportChange);return w.jsxs(w.Fragment,{children:[w.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),w.jsx(Ve.div,{"data-radix-scroll-area-viewport":"",...s,ref:d,style:{overflowX:u.scrollbarXEnabled?"scroll":"hidden",overflowY:u.scrollbarYEnabled?"scroll":"hidden",...e.style},children:w.jsx("div",{ref:u.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});Ev.displayName=_v;var Wn="ScrollAreaScrollbar",pd=k.forwardRef((e,t)=>{const{forceMount:n,...o}=e,l=fn(Wn,e.__scopeScrollArea),{onScrollbarXEnabledChange:s,onScrollbarYEnabledChange:u}=l,c=e.orientation==="horizontal";return k.useEffect(()=>(c?s(!0):u(!0),()=>{c?s(!1):u(!1)}),[c,s,u]),l.type==="hover"?w.jsx(d_,{...o,ref:t,forceMount:n}):l.type==="scroll"?w.jsx(p_,{...o,ref:t,forceMount:n}):l.type==="auto"?w.jsx(Rv,{...o,ref:t,forceMount:n}):l.type==="always"?w.jsx(hd,{...o,ref:t}):null});pd.displayName=Wn;var d_=k.forwardRef((e,t)=>{const{forceMount:n,...o}=e,l=fn(Wn,e.__scopeScrollArea),[s,u]=k.useState(!1);return k.useEffect(()=>{const c=l.scrollArea;let d=0;if(c){const p=()=>{window.clearTimeout(d),u(!0)},h=()=>{d=window.setTimeout(()=>u(!1),l.scrollHideDelay)};return c.addEventListener("pointerenter",p),c.addEventListener("pointerleave",h),()=>{window.clearTimeout(d),c.removeEventListener("pointerenter",p),c.removeEventListener("pointerleave",h)}}},[l.scrollArea,l.scrollHideDelay]),w.jsx(Ut,{present:n||s,children:w.jsx(Rv,{"data-state":s?"visible":"hidden",...o,ref:t})})}),p_=k.forwardRef((e,t)=>{const{forceMount:n,...o}=e,l=fn(Wn,e.__scopeScrollArea),s=e.orientation==="horizontal",u=Na(()=>d("SCROLL_END"),100),[c,d]=c_("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return k.useEffect(()=>{if(c==="idle"){const p=window.setTimeout(()=>d("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(p)}},[c,l.scrollHideDelay,d]),k.useEffect(()=>{const p=l.viewport,h=s?"scrollLeft":"scrollTop";if(p){let g=p[h];const x=()=>{const v=p[h];g!==v&&(d("SCROLL"),u()),g=v};return p.addEventListener("scroll",x),()=>p.removeEventListener("scroll",x)}},[l.viewport,s,d,u]),w.jsx(Ut,{present:n||c!=="hidden",children:w.jsx(hd,{"data-state":c==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:Ee(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:Ee(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),Rv=k.forwardRef((e,t)=>{const n=fn(Wn,e.__scopeScrollArea),{forceMount:o,...l}=e,[s,u]=k.useState(!1),c=e.orientation==="horizontal",d=Na(()=>{if(n.viewport){const p=n.viewport.offsetWidth<n.viewport.scrollWidth,h=n.viewport.offsetHeight<n.viewport.scrollHeight;u(c?p:h)}},10);return eo(n.viewport,d),eo(n.content,d),w.jsx(Ut,{present:o||s,children:w.jsx(hd,{"data-state":s?"visible":"hidden",...l,ref:t})})}),hd=k.forwardRef((e,t)=>{const{orientation:n="vertical",...o}=e,l=fn(Wn,e.__scopeScrollArea),s=k.useRef(null),u=k.useRef(0),[c,d]=k.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),p=Iv(c.viewport,c.content),h={...o,sizes:c,onSizesChange:d,hasThumb:p>0&&p<1,onThumbChange:x=>s.current=x,onThumbPointerUp:()=>u.current=0,onThumbPointerDown:x=>u.current=x};function g(x,v){return x_(x,u.current,c,v)}return n==="horizontal"?w.jsx(h_,{...h,ref:t,onThumbPositionChange:()=>{if(l.viewport&&s.current){const x=l.viewport.scrollLeft,v=Ig(x,c,l.dir);s.current.style.transform=`translate3d(${v}px, 0, 0)`}},onWheelScroll:x=>{l.viewport&&(l.viewport.scrollLeft=x)},onDragScroll:x=>{l.viewport&&(l.viewport.scrollLeft=g(x,l.dir))}}):n==="vertical"?w.jsx(m_,{...h,ref:t,onThumbPositionChange:()=>{if(l.viewport&&s.current){const x=l.viewport.scrollTop,v=Ig(x,c);s.current.style.transform=`translate3d(0, ${v}px, 0)`}},onWheelScroll:x=>{l.viewport&&(l.viewport.scrollTop=x)},onDragScroll:x=>{l.viewport&&(l.viewport.scrollTop=g(x))}}):null}),h_=k.forwardRef((e,t)=>{const{sizes:n,onSizesChange:o,...l}=e,s=fn(Wn,e.__scopeScrollArea),[u,c]=k.useState(),d=k.useRef(null),p=tt(t,d,s.onScrollbarXChange);return k.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),w.jsx(Pv,{"data-orientation":"horizontal",...l,ref:p,sizes:n,style:{bottom:0,left:s.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:s.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Pa(n)+"px",...e.style},onThumbPointerDown:h=>e.onThumbPointerDown(h.x),onDragScroll:h=>e.onDragScroll(h.x),onWheelScroll:(h,g)=>{if(s.viewport){const x=s.viewport.scrollLeft+h.deltaX;e.onWheelScroll(x),Mv(x,g)&&h.preventDefault()}},onResize:()=>{d.current&&s.viewport&&u&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:ga(u.paddingLeft),paddingEnd:ga(u.paddingRight)}})}})}),m_=k.forwardRef((e,t)=>{const{sizes:n,onSizesChange:o,...l}=e,s=fn(Wn,e.__scopeScrollArea),[u,c]=k.useState(),d=k.useRef(null),p=tt(t,d,s.onScrollbarYChange);return k.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),w.jsx(Pv,{"data-orientation":"vertical",...l,ref:p,sizes:n,style:{top:0,right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Pa(n)+"px",...e.style},onThumbPointerDown:h=>e.onThumbPointerDown(h.y),onDragScroll:h=>e.onDragScroll(h.y),onWheelScroll:(h,g)=>{if(s.viewport){const x=s.viewport.scrollTop+h.deltaY;e.onWheelScroll(x),Mv(x,g)&&h.preventDefault()}},onResize:()=>{d.current&&s.viewport&&u&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:ga(u.paddingTop),paddingEnd:ga(u.paddingBottom)}})}})}),[g_,Tv]=Sv(Wn),Pv=k.forwardRef((e,t)=>{const{__scopeScrollArea:n,sizes:o,hasThumb:l,onThumbChange:s,onThumbPointerUp:u,onThumbPointerDown:c,onThumbPositionChange:d,onDragScroll:p,onWheelScroll:h,onResize:g,...x}=e,v=fn(Wn,n),[S,C]=k.useState(null),E=tt(t,Y=>C(Y)),R=k.useRef(null),A=k.useRef(""),N=v.viewport,F=o.content-o.viewport,B=Et(h),I=Et(d),W=Na(g,10);function V(Y){if(R.current){const D=Y.clientX-R.current.left,q=Y.clientY-R.current.top;p({x:D,y:q})}}return k.useEffect(()=>{const Y=D=>{const q=D.target;S?.contains(q)&&B(D,F)};return document.addEventListener("wheel",Y,{passive:!1}),()=>document.removeEventListener("wheel",Y,{passive:!1})},[N,S,F,B]),k.useEffect(I,[o,I]),eo(S,W),eo(v.content,W),w.jsx(g_,{scope:n,scrollbar:S,hasThumb:l,onThumbChange:Et(s),onThumbPointerUp:Et(u),onThumbPositionChange:I,onThumbPointerDown:Et(c),children:w.jsx(Ve.div,{...x,ref:E,style:{position:"absolute",...x.style},onPointerDown:Ee(e.onPointerDown,Y=>{Y.button===0&&(Y.target.setPointerCapture(Y.pointerId),R.current=S.getBoundingClientRect(),A.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",v.viewport&&(v.viewport.style.scrollBehavior="auto"),V(Y))}),onPointerMove:Ee(e.onPointerMove,V),onPointerUp:Ee(e.onPointerUp,Y=>{const D=Y.target;D.hasPointerCapture(Y.pointerId)&&D.releasePointerCapture(Y.pointerId),document.body.style.webkitUserSelect=A.current,v.viewport&&(v.viewport.style.scrollBehavior=""),R.current=null})})})}),ma="ScrollAreaThumb",Nv=k.forwardRef((e,t)=>{const{forceMount:n,...o}=e,l=Tv(ma,e.__scopeScrollArea);return w.jsx(Ut,{present:n||l.hasThumb,children:w.jsx(y_,{ref:t,...o})})}),y_=k.forwardRef((e,t)=>{const{__scopeScrollArea:n,style:o,...l}=e,s=fn(ma,n),u=Tv(ma,n),{onThumbPositionChange:c}=u,d=tt(t,g=>u.onThumbChange(g)),p=k.useRef(void 0),h=Na(()=>{p.current&&(p.current(),p.current=void 0)},100);return k.useEffect(()=>{const g=s.viewport;if(g){const x=()=>{if(h(),!p.current){const v=w_(g,c);p.current=v,c()}};return c(),g.addEventListener("scroll",x),()=>g.removeEventListener("scroll",x)}},[s.viewport,h,c]),w.jsx(Ve.div,{"data-state":u.hasThumb?"visible":"hidden",...l,ref:d,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:Ee(e.onPointerDownCapture,g=>{const v=g.target.getBoundingClientRect(),S=g.clientX-v.left,C=g.clientY-v.top;u.onThumbPointerDown({x:S,y:C})}),onPointerUp:Ee(e.onPointerUp,u.onThumbPointerUp)})});Nv.displayName=ma;var md="ScrollAreaCorner",Av=k.forwardRef((e,t)=>{const n=fn(md,e.__scopeScrollArea),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?w.jsx(v_,{...e,ref:t}):null});Av.displayName=md;var v_=k.forwardRef((e,t)=>{const{__scopeScrollArea:n,...o}=e,l=fn(md,n),[s,u]=k.useState(0),[c,d]=k.useState(0),p=!!(s&&c);return eo(l.scrollbarX,()=>{const h=l.scrollbarX?.offsetHeight||0;l.onCornerHeightChange(h),d(h)}),eo(l.scrollbarY,()=>{const h=l.scrollbarY?.offsetWidth||0;l.onCornerWidthChange(h),u(h)}),p?w.jsx(Ve.div,{...o,ref:t,style:{width:s,height:c,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function ga(e){return e?parseInt(e,10):0}function Iv(e,t){const n=e/t;return isNaN(n)?0:n}function Pa(e){const t=Iv(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*t;return Math.max(o,18)}function x_(e,t,n,o="ltr"){const l=Pa(n),s=l/2,u=t||s,c=l-u,d=n.scrollbar.paddingStart+u,p=n.scrollbar.size-n.scrollbar.paddingEnd-c,h=n.content-n.viewport,g=o==="ltr"?[0,h]:[h*-1,0];return Ov([d,p],g)(e)}function Ig(e,t,n="ltr"){const o=Pa(t),l=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,s=t.scrollbar.size-l,u=t.content-t.viewport,c=s-o,d=n==="ltr"?[0,u]:[u*-1,0],p=u_(e,d);return Ov([0,u],[0,c])(p)}function Ov(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(n-e[0])}}function Mv(e,t){return e>0&&e<t}var w_=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},o=0;return(function l(){const s={left:e.scrollLeft,top:e.scrollTop},u=n.left!==s.left,c=n.top!==s.top;(u||c)&&t(),n=s,o=window.requestAnimationFrame(l)})(),()=>window.cancelAnimationFrame(o)};function Na(e,t){const n=Et(e),o=k.useRef(0);return k.useEffect(()=>()=>window.clearTimeout(o.current),[]),k.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(n,t)},[n,t])}function eo(e,t){const n=Et(t);Bn(()=>{let o=0;if(e){const l=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return l.observe(e),()=>{window.cancelAnimationFrame(o),l.unobserve(e)}}},[e,n])}var Dv=Cv,k_=Ev,b_=Av;const gd=k.forwardRef(({className:e,children:t,...n},o)=>w.jsxs(Dv,{ref:o,className:Oe("relative overflow-hidden",e),...n,children:[w.jsx(k_,{className:"h-full w-full rounded-[inherit]",children:t}),w.jsx(jv,{}),w.jsx(b_,{})]}));gd.displayName=Dv.displayName;const jv=k.forwardRef(({className:e,orientation:t="vertical",...n},o)=>w.jsx(pd,{ref:o,orientation:t,className:Oe("flex touch-none select-none p-0.5 transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:w.jsx(Nv,{className:"relative flex-1 rounded-full bg-border"})}));jv.displayName=pd.displayName;var S_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],C_=S_.reduce((e,t)=>{const n=kv(`Primitive.${t}`),o=k.forwardRef((l,s)=>{const{asChild:u,...c}=l,d=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),w.jsx(d,{...c,ref:s})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),__="Separator",Og="horizontal",E_=["horizontal","vertical"],Lv=k.forwardRef((e,t)=>{const{decorative:n,orientation:o=Og,...l}=e,s=R_(o)?o:Og,c=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return w.jsx(C_.div,{"data-orientation":s,...c,...l,ref:t})});Lv.displayName=__;function R_(e){return E_.includes(e)}var zv=Lv;const yd=k.forwardRef(({className:e,orientation:t="horizontal",decorative:n=!0,...o},l)=>w.jsx(zv,{ref:l,decorative:n,orientation:t,className:Oe("shrink-0 bg-border",t==="horizontal"?"h-px w-full":"h-full w-px",e),...o}));yd.displayName=zv.displayName;var T_=ld[" useInsertionEffect ".trim().toString()]||Bn;function fi({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[l,s,u]=P_({defaultProp:t,onChange:n}),c=e!==void 0,d=c?e:l;{const h=k.useRef(e!==void 0);k.useEffect(()=>{const g=h.current;g!==c&&console.warn(`${o} is changing from ${g?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),h.current=c},[c,o])}const p=k.useCallback(h=>{if(c){const g=N_(h)?h(e):h;g!==e&&u.current?.(g)}else s(h)},[c,e,s,u]);return[d,p]}function P_({defaultProp:e,onChange:t}){const[n,o]=k.useState(e),l=k.useRef(n),s=k.useRef(t);return T_(()=>{s.current=t},[t]),k.useEffect(()=>{l.current!==n&&(s.current?.(n),l.current=n)},[n,l]),[n,o,s]}function N_(e){return typeof e=="function"}function vd(e){const t=e+"CollectionProvider",[n,o]=Vn(t),[l,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=C=>{const{scope:E,children:R}=C,A=Ce.useRef(null),N=Ce.useRef(new Map).current;return w.jsx(l,{scope:E,itemMap:N,collectionRef:A,children:R})};u.displayName=t;const c=e+"CollectionSlot",d=cl(c),p=Ce.forwardRef((C,E)=>{const{scope:R,children:A}=C,N=s(c,R),F=tt(E,N.collectionRef);return w.jsx(d,{ref:F,children:A})});p.displayName=c;const h=e+"CollectionItemSlot",g="data-radix-collection-item",x=cl(h),v=Ce.forwardRef((C,E)=>{const{scope:R,children:A,...N}=C,F=Ce.useRef(null),B=tt(E,F),I=s(h,R);return Ce.useEffect(()=>(I.itemMap.set(F,{ref:F,...N}),()=>{I.itemMap.delete(F)})),w.jsx(x,{[g]:"",ref:B,children:A})});v.displayName=h;function S(C){const E=s(e+"CollectionConsumer",C);return Ce.useCallback(()=>{const A=E.collectionRef.current;if(!A)return[];const N=Array.from(A.querySelectorAll(`[${g}]`));return Array.from(E.itemMap.values()).sort((I,W)=>N.indexOf(I.ref.current)-N.indexOf(W.ref.current))},[E.collectionRef,E.itemMap])}return[{Provider:u,Slot:p,ItemSlot:v},S,o]}function A_(e,t=globalThis?.document){const n=Et(e);k.useEffect(()=>{const o=l=>{l.key==="Escape"&&n(l)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var I_="DismissableLayer",zf="dismissableLayer.update",O_="dismissableLayer.pointerDownOutside",M_="dismissableLayer.focusOutside",Mg,Fv=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xd=k.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:u,onDismiss:c,...d}=e,p=k.useContext(Fv),[h,g]=k.useState(null),x=h?.ownerDocument??globalThis?.document,[,v]=k.useState({}),S=tt(t,W=>g(W)),C=Array.from(p.layers),[E]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),R=C.indexOf(E),A=h?C.indexOf(h):-1,N=p.layersWithOutsidePointerEventsDisabled.size>0,F=A>=R,B=L_(W=>{const V=W.target,Y=[...p.branches].some(D=>D.contains(V));!F||Y||(l?.(W),u?.(W),W.defaultPrevented||c?.())},x),I=z_(W=>{const V=W.target;[...p.branches].some(D=>D.contains(V))||(s?.(W),u?.(W),W.defaultPrevented||c?.())},x);return A_(W=>{A===p.layers.size-1&&(o?.(W),!W.defaultPrevented&&c&&(W.preventDefault(),c()))},x),k.useEffect(()=>{if(h)return n&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Mg=x.body.style.pointerEvents,x.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(h)),p.layers.add(h),Dg(),()=>{n&&p.layersWithOutsidePointerEventsDisabled.size===1&&(x.body.style.pointerEvents=Mg)}},[h,x,n,p]),k.useEffect(()=>()=>{h&&(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),Dg())},[h,p]),k.useEffect(()=>{const W=()=>v({});return document.addEventListener(zf,W),()=>document.removeEventListener(zf,W)},[]),w.jsx(Ve.div,{...d,ref:S,style:{pointerEvents:N?F?"auto":"none":void 0,...e.style},onFocusCapture:Ee(e.onFocusCapture,I.onFocusCapture),onBlurCapture:Ee(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:Ee(e.onPointerDownCapture,B.onPointerDownCapture)})});xd.displayName=I_;var D_="DismissableLayerBranch",j_=k.forwardRef((e,t)=>{const n=k.useContext(Fv),o=k.useRef(null),l=tt(t,o);return k.useEffect(()=>{const s=o.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),w.jsx(Ve.div,{...e,ref:l})});j_.displayName=D_;function L_(e,t=globalThis?.document){const n=Et(e),o=k.useRef(!1),l=k.useRef(()=>{});return k.useEffect(()=>{const s=c=>{if(c.target&&!o.current){let d=function(){$v(O_,n,p,{discrete:!0})};const p={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",l.current),l.current=d,t.addEventListener("click",l.current,{once:!0})):d()}else t.removeEventListener("click",l.current);o.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",s),t.removeEventListener("click",l.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function z_(e,t=globalThis?.document){const n=Et(e),o=k.useRef(!1);return k.useEffect(()=>{const l=s=>{s.target&&!o.current&&$v(M_,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",l),()=>t.removeEventListener("focusin",l)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Dg(){const e=new CustomEvent(zf);document.dispatchEvent(e)}function $v(e,t,n,{discrete:o}){const l=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&l.addEventListener(e,t,{once:!0}),o?bv(l,s):l.dispatchEvent(s)}var Qc=0;function Bv(){k.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??jg()),document.body.insertAdjacentElement("beforeend",e[1]??jg()),Qc++,()=>{Qc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Qc--}},[])}function jg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Jc="focusScope.autoFocusOnMount",ef="focusScope.autoFocusOnUnmount",Lg={bubbles:!1,cancelable:!0},F_="FocusScope",wd=k.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:l,onUnmountAutoFocus:s,...u}=e,[c,d]=k.useState(null),p=Et(l),h=Et(s),g=k.useRef(null),x=tt(t,C=>d(C)),v=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(o){let C=function(N){if(v.paused||!c)return;const F=N.target;c.contains(F)?g.current=F:jr(g.current,{select:!0})},E=function(N){if(v.paused||!c)return;const F=N.relatedTarget;F!==null&&(c.contains(F)||jr(g.current,{select:!0}))},R=function(N){if(document.activeElement===document.body)for(const B of N)B.removedNodes.length>0&&jr(c)};document.addEventListener("focusin",C),document.addEventListener("focusout",E);const A=new MutationObserver(R);return c&&A.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",C),document.removeEventListener("focusout",E),A.disconnect()}}},[o,c,v.paused]),k.useEffect(()=>{if(c){Fg.add(v);const C=document.activeElement;if(!c.contains(C)){const R=new CustomEvent(Jc,Lg);c.addEventListener(Jc,p),c.dispatchEvent(R),R.defaultPrevented||($_(H_(Uv(c)),{select:!0}),document.activeElement===C&&jr(c))}return()=>{c.removeEventListener(Jc,p),setTimeout(()=>{const R=new CustomEvent(ef,Lg);c.addEventListener(ef,h),c.dispatchEvent(R),R.defaultPrevented||jr(C??document.body,{select:!0}),c.removeEventListener(ef,h),Fg.remove(v)},0)}}},[c,p,h,v]);const S=k.useCallback(C=>{if(!n&&!o||v.paused)return;const E=C.key==="Tab"&&!C.altKey&&!C.ctrlKey&&!C.metaKey,R=document.activeElement;if(E&&R){const A=C.currentTarget,[N,F]=B_(A);N&&F?!C.shiftKey&&R===F?(C.preventDefault(),n&&jr(N,{select:!0})):C.shiftKey&&R===N&&(C.preventDefault(),n&&jr(F,{select:!0})):R===A&&C.preventDefault()}},[n,o,v.paused]);return w.jsx(Ve.div,{tabIndex:-1,...u,ref:x,onKeyDown:S})});wd.displayName=F_;function $_(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(jr(o,{select:t}),document.activeElement!==n)return}function B_(e){const t=Uv(e),n=zg(t,e),o=zg(t.reverse(),e);return[n,o]}function Uv(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const l=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||l?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zg(e,t){for(const n of e)if(!U_(n,{upTo:t}))return n}function U_(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function V_(e){return e instanceof HTMLInputElement&&"select"in e}function jr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&V_(e)&&t&&e.select()}}var Fg=W_();function W_(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=$g(e,t),e.unshift(t)},remove(t){e=$g(e,t),e[0]?.resume()}}}function $g(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function H_(e){return e.filter(t=>t.tagName!=="A")}var Z_=ld[" useId ".trim().toString()]||(()=>{}),G_=0;function sr(e){const[t,n]=k.useState(Z_());return Bn(()=>{n(o=>o??String(G_++))},[e]),t?`radix-${t}`:""}const q_=["top","right","bottom","left"],Fr=Math.min,Yt=Math.max,ya=Math.round,Vs=Math.floor,zn=e=>({x:e,y:e}),K_={left:"right",right:"left",bottom:"top",top:"bottom"},Y_={start:"end",end:"start"};function Ff(e,t,n){return Yt(e,Fr(t,n))}function ur(e,t){return typeof e=="function"?e(t):e}function cr(e){return e.split("-")[0]}function oo(e){return e.split("-")[1]}function kd(e){return e==="x"?"y":"x"}function bd(e){return e==="y"?"height":"width"}const X_=new Set(["top","bottom"]);function jn(e){return X_.has(cr(e))?"y":"x"}function Sd(e){return kd(jn(e))}function Q_(e,t,n){n===void 0&&(n=!1);const o=oo(e),l=Sd(e),s=bd(l);let u=l==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(u=va(u)),[u,va(u)]}function J_(e){const t=va(e);return[$f(e),t,$f(t)]}function $f(e){return e.replace(/start|end/g,t=>Y_[t])}const Bg=["left","right"],Ug=["right","left"],eE=["top","bottom"],tE=["bottom","top"];function nE(e,t,n){switch(e){case"top":case"bottom":return n?t?Ug:Bg:t?Bg:Ug;case"left":case"right":return t?eE:tE;default:return[]}}function rE(e,t,n,o){const l=oo(e);let s=nE(cr(e),n==="start",o);return l&&(s=s.map(u=>u+"-"+l),t&&(s=s.concat(s.map($f)))),s}function va(e){return e.replace(/left|right|bottom|top/g,t=>K_[t])}function iE(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vv(e){return typeof e!="number"?iE(e):{top:e,right:e,bottom:e,left:e}}function xa(e){const{x:t,y:n,width:o,height:l}=e;return{width:o,height:l,top:n,left:t,right:t+o,bottom:n+l,x:t,y:n}}function Vg(e,t,n){let{reference:o,floating:l}=e;const s=jn(t),u=Sd(t),c=bd(u),d=cr(t),p=s==="y",h=o.x+o.width/2-l.width/2,g=o.y+o.height/2-l.height/2,x=o[c]/2-l[c]/2;let v;switch(d){case"top":v={x:h,y:o.y-l.height};break;case"bottom":v={x:h,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:g};break;case"left":v={x:o.x-l.width,y:g};break;default:v={x:o.x,y:o.y}}switch(oo(t)){case"start":v[u]-=x*(n&&p?-1:1);break;case"end":v[u]+=x*(n&&p?-1:1);break}return v}const oE=async(e,t,n)=>{const{placement:o="bottom",strategy:l="absolute",middleware:s=[],platform:u}=n,c=s.filter(Boolean),d=await(u.isRTL==null?void 0:u.isRTL(t));let p=await u.getElementRects({reference:e,floating:t,strategy:l}),{x:h,y:g}=Vg(p,o,d),x=o,v={},S=0;for(let C=0;C<c.length;C++){const{name:E,fn:R}=c[C],{x:A,y:N,data:F,reset:B}=await R({x:h,y:g,initialPlacement:o,placement:x,strategy:l,middlewareData:v,rects:p,platform:u,elements:{reference:e,floating:t}});h=A??h,g=N??g,v={...v,[E]:{...v[E],...F}},B&&S<=50&&(S++,typeof B=="object"&&(B.placement&&(x=B.placement),B.rects&&(p=B.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:l}):B.rects),{x:h,y:g}=Vg(p,x,d)),C=-1)}return{x:h,y:g,placement:x,strategy:l,middlewareData:v}};async function fl(e,t){var n;t===void 0&&(t={});const{x:o,y:l,platform:s,rects:u,elements:c,strategy:d}=e,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:x=!1,padding:v=0}=ur(t,e),S=Vv(v),E=c[x?g==="floating"?"reference":"floating":g],R=xa(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(E)))==null||n?E:E.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:p,rootBoundary:h,strategy:d})),A=g==="floating"?{x:o,y:l,width:u.floating.width,height:u.floating.height}:u.reference,N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),F=await(s.isElement==null?void 0:s.isElement(N))?await(s.getScale==null?void 0:s.getScale(N))||{x:1,y:1}:{x:1,y:1},B=xa(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:N,strategy:d}):A);return{top:(R.top-B.top+S.top)/F.y,bottom:(B.bottom-R.bottom+S.bottom)/F.y,left:(R.left-B.left+S.left)/F.x,right:(B.right-R.right+S.right)/F.x}}const lE=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:l,rects:s,platform:u,elements:c,middlewareData:d}=t,{element:p,padding:h=0}=ur(e,t)||{};if(p==null)return{};const g=Vv(h),x={x:n,y:o},v=Sd(l),S=bd(v),C=await u.getDimensions(p),E=v==="y",R=E?"top":"left",A=E?"bottom":"right",N=E?"clientHeight":"clientWidth",F=s.reference[S]+s.reference[v]-x[v]-s.floating[S],B=x[v]-s.reference[v],I=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let W=I?I[N]:0;(!W||!await(u.isElement==null?void 0:u.isElement(I)))&&(W=c.floating[N]||s.floating[S]);const V=F/2-B/2,Y=W/2-C[S]/2-1,D=Fr(g[R],Y),q=Fr(g[A],Y),J=D,ue=W-C[S]-q,te=W/2-C[S]/2+V,K=Ff(J,te,ue),oe=!d.arrow&&oo(l)!=null&&te!==K&&s.reference[S]/2-(te<J?D:q)-C[S]/2<0,ae=oe?te<J?te-J:te-ue:0;return{[v]:x[v]+ae,data:{[v]:K,centerOffset:te-K-ae,...oe&&{alignmentOffset:ae}},reset:oe}}}),sE=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:l,middlewareData:s,rects:u,initialPlacement:c,platform:d,elements:p}=t,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:x,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:C=!0,...E}=ur(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const R=cr(l),A=jn(c),N=cr(c)===c,F=await(d.isRTL==null?void 0:d.isRTL(p.floating)),B=x||(N||!C?[va(c)]:J_(c)),I=S!=="none";!x&&I&&B.push(...rE(c,C,S,F));const W=[c,...B],V=await fl(t,E),Y=[];let D=((o=s.flip)==null?void 0:o.overflows)||[];if(h&&Y.push(V[R]),g){const te=Q_(l,u,F);Y.push(V[te[0]],V[te[1]])}if(D=[...D,{placement:l,overflows:Y}],!Y.every(te=>te<=0)){var q,J;const te=(((q=s.flip)==null?void 0:q.index)||0)+1,K=W[te];if(K&&(!(g==="alignment"?A!==jn(K):!1)||D.every(L=>jn(L.placement)===A?L.overflows[0]>0:!0)))return{data:{index:te,overflows:D},reset:{placement:K}};let oe=(J=D.filter(ae=>ae.overflows[0]<=0).sort((ae,L)=>ae.overflows[1]-L.overflows[1])[0])==null?void 0:J.placement;if(!oe)switch(v){case"bestFit":{var ue;const ae=(ue=D.filter(L=>{if(I){const Z=jn(L.placement);return Z===A||Z==="y"}return!0}).map(L=>[L.placement,L.overflows.filter(Z=>Z>0).reduce((Z,_)=>Z+_,0)]).sort((L,Z)=>L[1]-Z[1])[0])==null?void 0:ue[0];ae&&(oe=ae);break}case"initialPlacement":oe=c;break}if(l!==oe)return{reset:{placement:oe}}}return{}}}};function Wg(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Hg(e){return q_.some(t=>e[t]>=0)}const aE=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...l}=ur(e,t);switch(o){case"referenceHidden":{const s=await fl(t,{...l,elementContext:"reference"}),u=Wg(s,n.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:Hg(u)}}}case"escaped":{const s=await fl(t,{...l,altBoundary:!0}),u=Wg(s,n.floating);return{data:{escapedOffsets:u,escaped:Hg(u)}}}default:return{}}}}},Wv=new Set(["left","top"]);async function uE(e,t){const{placement:n,platform:o,elements:l}=e,s=await(o.isRTL==null?void 0:o.isRTL(l.floating)),u=cr(n),c=oo(n),d=jn(n)==="y",p=Wv.has(u)?-1:1,h=s&&d?-1:1,g=ur(t,e);let{mainAxis:x,crossAxis:v,alignmentAxis:S}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof S=="number"&&(v=c==="end"?S*-1:S),d?{x:v*h,y:x*p}:{x:x*p,y:v*h}}const cE=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:l,y:s,placement:u,middlewareData:c}=t,d=await uE(t,e);return u===((n=c.offset)==null?void 0:n.placement)&&(o=c.arrow)!=null&&o.alignmentOffset?{}:{x:l+d.x,y:s+d.y,data:{...d,placement:u}}}}},fE=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:l}=t,{mainAxis:s=!0,crossAxis:u=!1,limiter:c={fn:E=>{let{x:R,y:A}=E;return{x:R,y:A}}},...d}=ur(e,t),p={x:n,y:o},h=await fl(t,d),g=jn(cr(l)),x=kd(g);let v=p[x],S=p[g];if(s){const E=x==="y"?"top":"left",R=x==="y"?"bottom":"right",A=v+h[E],N=v-h[R];v=Ff(A,v,N)}if(u){const E=g==="y"?"top":"left",R=g==="y"?"bottom":"right",A=S+h[E],N=S-h[R];S=Ff(A,S,N)}const C=c.fn({...t,[x]:v,[g]:S});return{...C,data:{x:C.x-n,y:C.y-o,enabled:{[x]:s,[g]:u}}}}}},dE=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:l,rects:s,middlewareData:u}=t,{offset:c=0,mainAxis:d=!0,crossAxis:p=!0}=ur(e,t),h={x:n,y:o},g=jn(l),x=kd(g);let v=h[x],S=h[g];const C=ur(c,t),E=typeof C=="number"?{mainAxis:C,crossAxis:0}:{mainAxis:0,crossAxis:0,...C};if(d){const N=x==="y"?"height":"width",F=s.reference[x]-s.floating[N]+E.mainAxis,B=s.reference[x]+s.reference[N]-E.mainAxis;v<F?v=F:v>B&&(v=B)}if(p){var R,A;const N=x==="y"?"width":"height",F=Wv.has(cr(l)),B=s.reference[g]-s.floating[N]+(F&&((R=u.offset)==null?void 0:R[g])||0)+(F?0:E.crossAxis),I=s.reference[g]+s.reference[N]+(F?0:((A=u.offset)==null?void 0:A[g])||0)-(F?E.crossAxis:0);S<B?S=B:S>I&&(S=I)}return{[x]:v,[g]:S}}}},pE=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:l,rects:s,platform:u,elements:c}=t,{apply:d=()=>{},...p}=ur(e,t),h=await fl(t,p),g=cr(l),x=oo(l),v=jn(l)==="y",{width:S,height:C}=s.floating;let E,R;g==="top"||g==="bottom"?(E=g,R=x===(await(u.isRTL==null?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(R=g,E=x==="end"?"top":"bottom");const A=C-h.top-h.bottom,N=S-h.left-h.right,F=Fr(C-h[E],A),B=Fr(S-h[R],N),I=!t.middlewareData.shift;let W=F,V=B;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(V=N),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(W=A),I&&!x){const D=Yt(h.left,0),q=Yt(h.right,0),J=Yt(h.top,0),ue=Yt(h.bottom,0);v?V=S-2*(D!==0||q!==0?D+q:Yt(h.left,h.right)):W=C-2*(J!==0||ue!==0?J+ue:Yt(h.top,h.bottom))}await d({...t,availableWidth:V,availableHeight:W});const Y=await u.getDimensions(c.floating);return S!==Y.width||C!==Y.height?{reset:{rects:!0}}:{}}}};function Aa(){return typeof window<"u"}function lo(e){return Hv(e)?(e.nodeName||"").toLowerCase():"#document"}function Xt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hn(e){var t;return(t=(Hv(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hv(e){return Aa()?e instanceof Node||e instanceof Xt(e).Node:!1}function Sn(e){return Aa()?e instanceof Element||e instanceof Xt(e).Element:!1}function Un(e){return Aa()?e instanceof HTMLElement||e instanceof Xt(e).HTMLElement:!1}function Zg(e){return!Aa()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xt(e).ShadowRoot}const hE=new Set(["inline","contents"]);function wl(e){const{overflow:t,overflowX:n,overflowY:o,display:l}=Cn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!hE.has(l)}const mE=new Set(["table","td","th"]);function gE(e){return mE.has(lo(e))}const yE=[":popover-open",":modal"];function Ia(e){return yE.some(t=>{try{return e.matches(t)}catch{return!1}})}const vE=["transform","translate","scale","rotate","perspective"],xE=["transform","translate","scale","rotate","perspective","filter"],wE=["paint","layout","strict","content"];function Cd(e){const t=_d(),n=Sn(e)?Cn(e):e;return vE.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||xE.some(o=>(n.willChange||"").includes(o))||wE.some(o=>(n.contain||"").includes(o))}function kE(e){let t=$r(e);for(;Un(t)&&!to(t);){if(Cd(t))return t;if(Ia(t))return null;t=$r(t)}return null}function _d(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const bE=new Set(["html","body","#document"]);function to(e){return bE.has(lo(e))}function Cn(e){return Xt(e).getComputedStyle(e)}function Oa(e){return Sn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function $r(e){if(lo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zg(e)&&e.host||Hn(e);return Zg(t)?t.host:t}function Zv(e){const t=$r(e);return to(t)?e.ownerDocument?e.ownerDocument.body:e.body:Un(t)&&wl(t)?t:Zv(t)}function dl(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const l=Zv(e),s=l===((o=e.ownerDocument)==null?void 0:o.body),u=Xt(l);if(s){const c=Bf(u);return t.concat(u,u.visualViewport||[],wl(l)?l:[],c&&n?dl(c):[])}return t.concat(l,dl(l,[],n))}function Bf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gv(e){const t=Cn(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const l=Un(e),s=l?e.offsetWidth:n,u=l?e.offsetHeight:o,c=ya(n)!==s||ya(o)!==u;return c&&(n=s,o=u),{width:n,height:o,$:c}}function Ed(e){return Sn(e)?e:e.contextElement}function Ki(e){const t=Ed(e);if(!Un(t))return zn(1);const n=t.getBoundingClientRect(),{width:o,height:l,$:s}=Gv(t);let u=(s?ya(n.width):n.width)/o,c=(s?ya(n.height):n.height)/l;return(!u||!Number.isFinite(u))&&(u=1),(!c||!Number.isFinite(c))&&(c=1),{x:u,y:c}}const SE=zn(0);function qv(e){const t=Xt(e);return!_d()||!t.visualViewport?SE:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function CE(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xt(e)?!1:t}function ai(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect(),s=Ed(e);let u=zn(1);t&&(o?Sn(o)&&(u=Ki(o)):u=Ki(e));const c=CE(s,n,o)?qv(s):zn(0);let d=(l.left+c.x)/u.x,p=(l.top+c.y)/u.y,h=l.width/u.x,g=l.height/u.y;if(s){const x=Xt(s),v=o&&Sn(o)?Xt(o):o;let S=x,C=Bf(S);for(;C&&o&&v!==S;){const E=Ki(C),R=C.getBoundingClientRect(),A=Cn(C),N=R.left+(C.clientLeft+parseFloat(A.paddingLeft))*E.x,F=R.top+(C.clientTop+parseFloat(A.paddingTop))*E.y;d*=E.x,p*=E.y,h*=E.x,g*=E.y,d+=N,p+=F,S=Xt(C),C=Bf(S)}}return xa({width:h,height:g,x:d,y:p})}function Ma(e,t){const n=Oa(e).scrollLeft;return t?t.left+n:ai(Hn(e)).left+n}function Kv(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Ma(e,n),l=n.top+t.scrollTop;return{x:o,y:l}}function _E(e){let{elements:t,rect:n,offsetParent:o,strategy:l}=e;const s=l==="fixed",u=Hn(o),c=t?Ia(t.floating):!1;if(o===u||c&&s)return n;let d={scrollLeft:0,scrollTop:0},p=zn(1);const h=zn(0),g=Un(o);if((g||!g&&!s)&&((lo(o)!=="body"||wl(u))&&(d=Oa(o)),Un(o))){const v=ai(o);p=Ki(o),h.x=v.x+o.clientLeft,h.y=v.y+o.clientTop}const x=u&&!g&&!s?Kv(u,d):zn(0);return{width:n.width*p.x,height:n.height*p.y,x:n.x*p.x-d.scrollLeft*p.x+h.x+x.x,y:n.y*p.y-d.scrollTop*p.y+h.y+x.y}}function EE(e){return Array.from(e.getClientRects())}function RE(e){const t=Hn(e),n=Oa(e),o=e.ownerDocument.body,l=Yt(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),s=Yt(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let u=-n.scrollLeft+Ma(e);const c=-n.scrollTop;return Cn(o).direction==="rtl"&&(u+=Yt(t.clientWidth,o.clientWidth)-l),{width:l,height:s,x:u,y:c}}const Gg=25;function TE(e,t){const n=Xt(e),o=Hn(e),l=n.visualViewport;let s=o.clientWidth,u=o.clientHeight,c=0,d=0;if(l){s=l.width,u=l.height;const h=_d();(!h||h&&t==="fixed")&&(c=l.offsetLeft,d=l.offsetTop)}const p=Ma(o);if(p<=0){const h=o.ownerDocument,g=h.body,x=getComputedStyle(g),v=h.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,S=Math.abs(o.clientWidth-g.clientWidth-v);S<=Gg&&(s-=S)}else p<=Gg&&(s+=p);return{width:s,height:u,x:c,y:d}}const PE=new Set(["absolute","fixed"]);function NE(e,t){const n=ai(e,!0,t==="fixed"),o=n.top+e.clientTop,l=n.left+e.clientLeft,s=Un(e)?Ki(e):zn(1),u=e.clientWidth*s.x,c=e.clientHeight*s.y,d=l*s.x,p=o*s.y;return{width:u,height:c,x:d,y:p}}function qg(e,t,n){let o;if(t==="viewport")o=TE(e,n);else if(t==="document")o=RE(Hn(e));else if(Sn(t))o=NE(t,n);else{const l=qv(e);o={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return xa(o)}function Yv(e,t){const n=$r(e);return n===t||!Sn(n)||to(n)?!1:Cn(n).position==="fixed"||Yv(n,t)}function AE(e,t){const n=t.get(e);if(n)return n;let o=dl(e,[],!1).filter(c=>Sn(c)&&lo(c)!=="body"),l=null;const s=Cn(e).position==="fixed";let u=s?$r(e):e;for(;Sn(u)&&!to(u);){const c=Cn(u),d=Cd(u);!d&&c.position==="fixed"&&(l=null),(s?!d&&!l:!d&&c.position==="static"&&!!l&&PE.has(l.position)||wl(u)&&!d&&Yv(e,u))?o=o.filter(h=>h!==u):l=c,u=$r(u)}return t.set(e,o),o}function IE(e){let{element:t,boundary:n,rootBoundary:o,strategy:l}=e;const u=[...n==="clippingAncestors"?Ia(t)?[]:AE(t,this._c):[].concat(n),o],c=u[0],d=u.reduce((p,h)=>{const g=qg(t,h,l);return p.top=Yt(g.top,p.top),p.right=Fr(g.right,p.right),p.bottom=Fr(g.bottom,p.bottom),p.left=Yt(g.left,p.left),p},qg(t,c,l));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function OE(e){const{width:t,height:n}=Gv(e);return{width:t,height:n}}function ME(e,t,n){const o=Un(t),l=Hn(t),s=n==="fixed",u=ai(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const d=zn(0);function p(){d.x=Ma(l)}if(o||!o&&!s)if((lo(t)!=="body"||wl(l))&&(c=Oa(t)),o){const v=ai(t,!0,s,t);d.x=v.x+t.clientLeft,d.y=v.y+t.clientTop}else l&&p();s&&!o&&l&&p();const h=l&&!o&&!s?Kv(l,c):zn(0),g=u.left+c.scrollLeft-d.x-h.x,x=u.top+c.scrollTop-d.y-h.y;return{x:g,y:x,width:u.width,height:u.height}}function tf(e){return Cn(e).position==="static"}function Kg(e,t){if(!Un(e)||Cn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Hn(e)===n&&(n=n.ownerDocument.body),n}function Xv(e,t){const n=Xt(e);if(Ia(e))return n;if(!Un(e)){let l=$r(e);for(;l&&!to(l);){if(Sn(l)&&!tf(l))return l;l=$r(l)}return n}let o=Kg(e,t);for(;o&&gE(o)&&tf(o);)o=Kg(o,t);return o&&to(o)&&tf(o)&&!Cd(o)?n:o||kE(e)||n}const DE=async function(e){const t=this.getOffsetParent||Xv,n=this.getDimensions,o=await n(e.floating);return{reference:ME(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function jE(e){return Cn(e).direction==="rtl"}const LE={convertOffsetParentRelativeRectToViewportRelativeRect:_E,getDocumentElement:Hn,getClippingRect:IE,getOffsetParent:Xv,getElementRects:DE,getClientRects:EE,getDimensions:OE,getScale:Ki,isElement:Sn,isRTL:jE};function Qv(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function zE(e,t){let n=null,o;const l=Hn(e);function s(){var c;clearTimeout(o),(c=n)==null||c.disconnect(),n=null}function u(c,d){c===void 0&&(c=!1),d===void 0&&(d=1),s();const p=e.getBoundingClientRect(),{left:h,top:g,width:x,height:v}=p;if(c||t(),!x||!v)return;const S=Vs(g),C=Vs(l.clientWidth-(h+x)),E=Vs(l.clientHeight-(g+v)),R=Vs(h),N={rootMargin:-S+"px "+-C+"px "+-E+"px "+-R+"px",threshold:Yt(0,Fr(1,d))||1};let F=!0;function B(I){const W=I[0].intersectionRatio;if(W!==d){if(!F)return u();W?u(!1,W):o=setTimeout(()=>{u(!1,1e-7)},1e3)}W===1&&!Qv(p,e.getBoundingClientRect())&&u(),F=!1}try{n=new IntersectionObserver(B,{...N,root:l.ownerDocument})}catch{n=new IntersectionObserver(B,N)}n.observe(e)}return u(!0),s}function FE(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,p=Ed(e),h=l||s?[...p?dl(p):[],...dl(t)]:[];h.forEach(R=>{l&&R.addEventListener("scroll",n,{passive:!0}),s&&R.addEventListener("resize",n)});const g=p&&c?zE(p,n):null;let x=-1,v=null;u&&(v=new ResizeObserver(R=>{let[A]=R;A&&A.target===p&&v&&(v.unobserve(t),cancelAnimationFrame(x),x=requestAnimationFrame(()=>{var N;(N=v)==null||N.observe(t)})),n()}),p&&!d&&v.observe(p),v.observe(t));let S,C=d?ai(e):null;d&&E();function E(){const R=ai(e);C&&!Qv(C,R)&&n(),C=R,S=requestAnimationFrame(E)}return n(),()=>{var R;h.forEach(A=>{l&&A.removeEventListener("scroll",n),s&&A.removeEventListener("resize",n)}),g?.(),(R=v)==null||R.disconnect(),v=null,d&&cancelAnimationFrame(S)}}const $E=cE,BE=fE,UE=sE,VE=pE,WE=aE,Yg=lE,HE=dE,ZE=(e,t,n)=>{const o=new Map,l={platform:LE,...n},s={...l.platform,_c:o};return oE(e,t,{...l,platform:s})};var GE=typeof document<"u",qE=function(){},Qs=GE?k.useLayoutEffect:qE;function wa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,l;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!wa(e[o],t[o]))return!1;return!0}if(l=Object.keys(e),n=l.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,l[o]))return!1;for(o=n;o--!==0;){const s=l[o];if(!(s==="_owner"&&e.$$typeof)&&!wa(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Jv(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xg(e,t){const n=Jv(e);return Math.round(t*n)/n}function nf(e){const t=k.useRef(e);return Qs(()=>{t.current=e}),t}function KE(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:l,elements:{reference:s,floating:u}={},transform:c=!0,whileElementsMounted:d,open:p}=e,[h,g]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[x,v]=k.useState(o);wa(x,o)||v(o);const[S,C]=k.useState(null),[E,R]=k.useState(null),A=k.useCallback(L=>{L!==I.current&&(I.current=L,C(L))},[]),N=k.useCallback(L=>{L!==W.current&&(W.current=L,R(L))},[]),F=s||S,B=u||E,I=k.useRef(null),W=k.useRef(null),V=k.useRef(h),Y=d!=null,D=nf(d),q=nf(l),J=nf(p),ue=k.useCallback(()=>{if(!I.current||!W.current)return;const L={placement:t,strategy:n,middleware:x};q.current&&(L.platform=q.current),ZE(I.current,W.current,L).then(Z=>{const _={...Z,isPositioned:J.current!==!1};te.current&&!wa(V.current,_)&&(V.current=_,fd.flushSync(()=>{g(_)}))})},[x,t,n,q,J]);Qs(()=>{p===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,g(L=>({...L,isPositioned:!1})))},[p]);const te=k.useRef(!1);Qs(()=>(te.current=!0,()=>{te.current=!1}),[]),Qs(()=>{if(F&&(I.current=F),B&&(W.current=B),F&&B){if(D.current)return D.current(F,B,ue);ue()}},[F,B,ue,D,Y]);const K=k.useMemo(()=>({reference:I,floating:W,setReference:A,setFloating:N}),[A,N]),oe=k.useMemo(()=>({reference:F,floating:B}),[F,B]),ae=k.useMemo(()=>{const L={position:n,left:0,top:0};if(!oe.floating)return L;const Z=Xg(oe.floating,h.x),_=Xg(oe.floating,h.y);return c?{...L,transform:"translate("+Z+"px, "+_+"px)",...Jv(oe.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Z,top:_}},[n,c,oe.floating,h.x,h.y]);return k.useMemo(()=>({...h,update:ue,refs:K,elements:oe,floatingStyles:ae}),[h,ue,K,oe,ae])}const YE=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:l}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Yg({element:o.current,padding:l}).fn(n):{}:o?Yg({element:o,padding:l}).fn(n):{}}}},XE=(e,t)=>({...$E(e),options:[e,t]}),QE=(e,t)=>({...BE(e),options:[e,t]}),JE=(e,t)=>({...HE(e),options:[e,t]}),eR=(e,t)=>({...UE(e),options:[e,t]}),tR=(e,t)=>({...VE(e),options:[e,t]}),nR=(e,t)=>({...WE(e),options:[e,t]}),rR=(e,t)=>({...YE(e),options:[e,t]});var iR="Arrow",ex=k.forwardRef((e,t)=>{const{children:n,width:o=10,height:l=5,...s}=e;return w.jsx(Ve.svg,{...s,ref:t,width:o,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:w.jsx("polygon",{points:"0,0 30,0 15,10"})})});ex.displayName=iR;var oR=ex;function lR(e){const[t,n]=k.useState(void 0);return Bn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const s=l[0];let u,c;if("borderBoxSize"in s){const d=s.borderBoxSize,p=Array.isArray(d)?d[0]:d;u=p.inlineSize,c=p.blockSize}else u=e.offsetWidth,c=e.offsetHeight;n({width:u,height:c})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var Rd="Popper",[tx,nx]=Vn(Rd),[sR,rx]=tx(Rd),ix=e=>{const{__scopePopper:t,children:n}=e,[o,l]=k.useState(null);return w.jsx(sR,{scope:t,anchor:o,onAnchorChange:l,children:n})};ix.displayName=Rd;var ox="PopperAnchor",lx=k.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...l}=e,s=rx(ox,n),u=k.useRef(null),c=tt(t,u),d=k.useRef(null);return k.useEffect(()=>{const p=d.current;d.current=o?.current||u.current,p!==d.current&&s.onAnchorChange(d.current)}),o?null:w.jsx(Ve.div,{...l,ref:c})});lx.displayName=ox;var Td="PopperContent",[aR,uR]=tx(Td),sx=k.forwardRef((e,t)=>{const{__scopePopper:n,side:o="bottom",sideOffset:l=0,align:s="center",alignOffset:u=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:p=[],collisionPadding:h=0,sticky:g="partial",hideWhenDetached:x=!1,updatePositionStrategy:v="optimized",onPlaced:S,...C}=e,E=rx(Td,n),[R,A]=k.useState(null),N=tt(t,ce=>A(ce)),[F,B]=k.useState(null),I=lR(F),W=I?.width??0,V=I?.height??0,Y=o+(s!=="center"?"-"+s:""),D=typeof h=="number"?h:{top:0,right:0,bottom:0,left:0,...h},q=Array.isArray(p)?p:[p],J=q.length>0,ue={padding:D,boundary:q.filter(fR),altBoundary:J},{refs:te,floatingStyles:K,placement:oe,isPositioned:ae,middlewareData:L}=KE({strategy:"fixed",placement:Y,whileElementsMounted:(...ce)=>FE(...ce,{animationFrame:v==="always"}),elements:{reference:E.anchor},middleware:[XE({mainAxis:l+V,alignmentAxis:u}),d&&QE({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?JE():void 0,...ue}),d&&eR({...ue}),tR({...ue,apply:({elements:ce,rects:Pe,availableWidth:Le,availableHeight:Ke})=>{const{width:Pt,height:dn}=Pe.reference,pn=ce.floating.style;pn.setProperty("--radix-popper-available-width",`${Le}px`),pn.setProperty("--radix-popper-available-height",`${Ke}px`),pn.setProperty("--radix-popper-anchor-width",`${Pt}px`),pn.setProperty("--radix-popper-anchor-height",`${dn}px`)}}),F&&rR({element:F,padding:c}),dR({arrowWidth:W,arrowHeight:V}),x&&nR({strategy:"referenceHidden",...ue})]}),[Z,_]=cx(oe),M=Et(S);Bn(()=>{ae&&M?.()},[ae,M]);const H=L.arrow?.x,T=L.arrow?.y,de=L.arrow?.centerOffset!==0,[Re,xe]=k.useState();return Bn(()=>{R&&xe(window.getComputedStyle(R).zIndex)},[R]),w.jsx("div",{ref:te.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:ae?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Re,"--radix-popper-transform-origin":[L.transformOrigin?.x,L.transformOrigin?.y].join(" "),...L.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:w.jsx(aR,{scope:n,placedSide:Z,onArrowChange:B,arrowX:H,arrowY:T,shouldHideArrow:de,children:w.jsx(Ve.div,{"data-side":Z,"data-align":_,...C,ref:N,style:{...C.style,animation:ae?void 0:"none"}})})})});sx.displayName=Td;var ax="PopperArrow",cR={top:"bottom",right:"left",bottom:"top",left:"right"},ux=k.forwardRef(function(t,n){const{__scopePopper:o,...l}=t,s=uR(ax,o),u=cR[s.placedSide];return w.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:w.jsx(oR,{...l,ref:n,style:{...l.style,display:"block"}})})});ux.displayName=ax;function fR(e){return e!==null}var dR=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:l}=t,u=l.arrow?.centerOffset!==0,c=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[p,h]=cx(n),g={start:"0%",center:"50%",end:"100%"}[h],x=(l.arrow?.x??0)+c/2,v=(l.arrow?.y??0)+d/2;let S="",C="";return p==="bottom"?(S=u?g:`${x}px`,C=`${-d}px`):p==="top"?(S=u?g:`${x}px`,C=`${o.floating.height+d}px`):p==="right"?(S=`${-d}px`,C=u?g:`${v}px`):p==="left"&&(S=`${o.floating.width+d}px`,C=u?g:`${v}px`),{data:{x:S,y:C}}}});function cx(e){const[t,n="center"]=e.split("-");return[t,n]}var pR=ix,hR=lx,mR=sx,gR=ux,yR="Portal",Pd=k.forwardRef((e,t)=>{const{container:n,...o}=e,[l,s]=k.useState(!1);Bn(()=>s(!0),[]);const u=n||l&&globalThis?.document?.body;return u?YC.createPortal(w.jsx(Ve.div,{...o,ref:t}),u):null});Pd.displayName=yR;var rf="rovingFocusGroup.onEntryFocus",vR={bubbles:!1,cancelable:!0},kl="RovingFocusGroup",[Uf,fx,xR]=vd(kl),[wR,Da]=Vn(kl,[xR]),[kR,bR]=wR(kl),dx=k.forwardRef((e,t)=>w.jsx(Uf.Provider,{scope:e.__scopeRovingFocusGroup,children:w.jsx(Uf.Slot,{scope:e.__scopeRovingFocusGroup,children:w.jsx(SR,{...e,ref:t})})}));dx.displayName=kl;var SR=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:l=!1,dir:s,currentTabStopId:u,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:d,onEntryFocus:p,preventScrollOnEntryFocus:h=!1,...g}=e,x=k.useRef(null),v=tt(t,x),S=xl(s),[C,E]=fi({prop:u,defaultProp:c??null,onChange:d,caller:kl}),[R,A]=k.useState(!1),N=Et(p),F=fx(n),B=k.useRef(!1),[I,W]=k.useState(0);return k.useEffect(()=>{const V=x.current;if(V)return V.addEventListener(rf,N),()=>V.removeEventListener(rf,N)},[N]),w.jsx(kR,{scope:n,orientation:o,dir:S,loop:l,currentTabStopId:C,onItemFocus:k.useCallback(V=>E(V),[E]),onItemShiftTab:k.useCallback(()=>A(!0),[]),onFocusableItemAdd:k.useCallback(()=>W(V=>V+1),[]),onFocusableItemRemove:k.useCallback(()=>W(V=>V-1),[]),children:w.jsx(Ve.div,{tabIndex:R||I===0?-1:0,"data-orientation":o,...g,ref:v,style:{outline:"none",...e.style},onMouseDown:Ee(e.onMouseDown,()=>{B.current=!0}),onFocus:Ee(e.onFocus,V=>{const Y=!B.current;if(V.target===V.currentTarget&&Y&&!R){const D=new CustomEvent(rf,vR);if(V.currentTarget.dispatchEvent(D),!D.defaultPrevented){const q=F().filter(oe=>oe.focusable),J=q.find(oe=>oe.active),ue=q.find(oe=>oe.id===C),K=[J,ue,...q].filter(Boolean).map(oe=>oe.ref.current);mx(K,h)}}B.current=!1}),onBlur:Ee(e.onBlur,()=>A(!1))})})}),px="RovingFocusGroupItem",hx=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:l=!1,tabStopId:s,children:u,...c}=e,d=sr(),p=s||d,h=bR(px,n),g=h.currentTabStopId===p,x=fx(n),{onFocusableItemAdd:v,onFocusableItemRemove:S,currentTabStopId:C}=h;return k.useEffect(()=>{if(o)return v(),()=>S()},[o,v,S]),w.jsx(Uf.ItemSlot,{scope:n,id:p,focusable:o,active:l,children:w.jsx(Ve.span,{tabIndex:g?0:-1,"data-orientation":h.orientation,...c,ref:t,onMouseDown:Ee(e.onMouseDown,E=>{o?h.onItemFocus(p):E.preventDefault()}),onFocus:Ee(e.onFocus,()=>h.onItemFocus(p)),onKeyDown:Ee(e.onKeyDown,E=>{if(E.key==="Tab"&&E.shiftKey){h.onItemShiftTab();return}if(E.target!==E.currentTarget)return;const R=ER(E,h.orientation,h.dir);if(R!==void 0){if(E.metaKey||E.ctrlKey||E.altKey||E.shiftKey)return;E.preventDefault();let N=x().filter(F=>F.focusable).map(F=>F.ref.current);if(R==="last")N.reverse();else if(R==="prev"||R==="next"){R==="prev"&&N.reverse();const F=N.indexOf(E.currentTarget);N=h.loop?RR(N,F+1):N.slice(F+1)}setTimeout(()=>mx(N))}}),children:typeof u=="function"?u({isCurrentTabStop:g,hasTabStop:C!=null}):u})})});hx.displayName=px;var CR={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _R(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ER(e,t,n){const o=_R(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return CR[o]}function mx(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function RR(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var gx=dx,yx=hx,TR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ui=new WeakMap,Ws=new WeakMap,Hs={},of=0,vx=function(e){return e&&(e.host||vx(e.parentNode))},PR=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=vx(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},NR=function(e,t,n,o){var l=PR(t,Array.isArray(e)?e:[e]);Hs[n]||(Hs[n]=new WeakMap);var s=Hs[n],u=[],c=new Set,d=new Set(l),p=function(g){!g||c.has(g)||(c.add(g),p(g.parentNode))};l.forEach(p);var h=function(g){!g||d.has(g)||Array.prototype.forEach.call(g.children,function(x){if(c.has(x))h(x);else try{var v=x.getAttribute(o),S=v!==null&&v!=="false",C=(Ui.get(x)||0)+1,E=(s.get(x)||0)+1;Ui.set(x,C),s.set(x,E),u.push(x),C===1&&S&&Ws.set(x,!0),E===1&&x.setAttribute(n,"true"),S||x.setAttribute(o,"true")}catch(R){console.error("aria-hidden: cannot operate on ",x,R)}})};return h(t),c.clear(),of++,function(){u.forEach(function(g){var x=Ui.get(g)-1,v=s.get(g)-1;Ui.set(g,x),s.set(g,v),x||(Ws.has(g)||g.removeAttribute(o),Ws.delete(g)),v||g.removeAttribute(n)}),of--,of||(Ui=new WeakMap,Ui=new WeakMap,Ws=new WeakMap,Hs={})}},xx=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),l=TR(e);return l?(o.push.apply(o,Array.from(l.querySelectorAll("[aria-live], script"))),NR(o,l,n,"aria-hidden")):function(){return null}},Dn=function(){return Dn=Object.assign||function(t){for(var n,o=1,l=arguments.length;o<l;o++){n=arguments[o];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Dn.apply(this,arguments)};function wx(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]]);return n}function AR(e,t,n){if(n||arguments.length===2)for(var o=0,l=t.length,s;o<l;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}var Js="right-scroll-bar-position",ea="width-before-scroll-bar",IR="with-scroll-bars-hidden",OR="--removed-body-scroll-bar-size";function lf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function MR(e,t){var n=k.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var l=n.value;l!==o&&(n.value=o,n.callback(o,l))}}}})[0];return n.callback=t,n.facade}var DR=typeof window<"u"?k.useLayoutEffect:k.useEffect,Qg=new WeakMap;function jR(e,t){var n=MR(null,function(o){return e.forEach(function(l){return lf(l,o)})});return DR(function(){var o=Qg.get(n);if(o){var l=new Set(o),s=new Set(e),u=n.current;l.forEach(function(c){s.has(c)||lf(c,null)}),s.forEach(function(c){l.has(c)||lf(c,u)})}Qg.set(n,e)},[e]),n}function LR(e){return e}function zR(e,t){t===void 0&&(t=LR);var n=[],o=!1,l={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var u=t(s,o);return n.push(u),function(){n=n.filter(function(c){return c!==u})}},assignSyncMedium:function(s){for(o=!0;n.length;){var u=n;n=[],u.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){o=!0;var u=[];if(n.length){var c=n;n=[],c.forEach(s),u=n}var d=function(){var h=u;u=[],h.forEach(s)},p=function(){return Promise.resolve().then(d)};p(),n={push:function(h){u.push(h),p()},filter:function(h){return u=u.filter(h),n}}}};return l}function FR(e){e===void 0&&(e={});var t=zR(null);return t.options=Dn({async:!0,ssr:!1},e),t}var kx=function(e){var t=e.sideCar,n=wx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return k.createElement(o,Dn({},n))};kx.isSideCarExport=!0;function $R(e,t){return e.useMedium(t),kx}var bx=FR(),sf=function(){},ja=k.forwardRef(function(e,t){var n=k.useRef(null),o=k.useState({onScrollCapture:sf,onWheelCapture:sf,onTouchMoveCapture:sf}),l=o[0],s=o[1],u=e.forwardProps,c=e.children,d=e.className,p=e.removeScrollBar,h=e.enabled,g=e.shards,x=e.sideCar,v=e.noRelative,S=e.noIsolation,C=e.inert,E=e.allowPinchZoom,R=e.as,A=R===void 0?"div":R,N=e.gapMode,F=wx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=x,I=jR([n,t]),W=Dn(Dn({},F),l);return k.createElement(k.Fragment,null,h&&k.createElement(B,{sideCar:bx,removeScrollBar:p,shards:g,noRelative:v,noIsolation:S,inert:C,setCallbacks:s,allowPinchZoom:!!E,lockRef:n,gapMode:N}),u?k.cloneElement(k.Children.only(c),Dn(Dn({},W),{ref:I})):k.createElement(A,Dn({},W,{className:d,ref:I}),c))});ja.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ja.classNames={fullWidth:ea,zeroRight:Js};var BR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function UR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=BR();return t&&e.setAttribute("nonce",t),e}function VR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function WR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var HR=function(){var e=0,t=null;return{add:function(n){e==0&&(t=UR())&&(VR(t,n),WR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ZR=function(){var e=HR();return function(t,n){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Sx=function(){var e=ZR(),t=function(n){var o=n.styles,l=n.dynamic;return e(o,l),null};return t},GR={left:0,top:0,right:0,gap:0},af=function(e){return parseInt(e||"",10)||0},qR=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],l=t[e==="padding"?"paddingRight":"marginRight"];return[af(n),af(o),af(l)]},KR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return GR;var t=qR(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},YR=Sx(),Yi="data-scroll-locked",XR=function(e,t,n,o){var l=e.left,s=e.top,u=e.right,c=e.gap;return n===void 0&&(n="margin"),`
9
+ .`.concat(IR,` {
10
+ overflow: hidden `).concat(o,`;
11
+ padding-right: `).concat(c,"px ").concat(o,`;
12
+ }
13
+ body[`).concat(Yi,`] {
14
+ overflow: hidden `).concat(o,`;
15
+ overscroll-behavior: contain;
16
+ `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&`
17
+ padding-left: `.concat(l,`px;
18
+ padding-top: `).concat(s,`px;
19
+ padding-right: `).concat(u,`px;
20
+ margin-left:0;
21
+ margin-top:0;
22
+ margin-right: `).concat(c,"px ").concat(o,`;
23
+ `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(o,";")].filter(Boolean).join(""),`
24
+ }
25
+
26
+ .`).concat(Js,` {
27
+ right: `).concat(c,"px ").concat(o,`;
28
+ }
29
+
30
+ .`).concat(ea,` {
31
+ margin-right: `).concat(c,"px ").concat(o,`;
32
+ }
33
+
34
+ .`).concat(Js," .").concat(Js,` {
35
+ right: 0 `).concat(o,`;
36
+ }
37
+
38
+ .`).concat(ea," .").concat(ea,` {
39
+ margin-right: 0 `).concat(o,`;
40
+ }
41
+
42
+ body[`).concat(Yi,`] {
43
+ `).concat(OR,": ").concat(c,`px;
44
+ }
45
+ `)},Jg=function(){var e=parseInt(document.body.getAttribute(Yi)||"0",10);return isFinite(e)?e:0},QR=function(){k.useEffect(function(){return document.body.setAttribute(Yi,(Jg()+1).toString()),function(){var e=Jg()-1;e<=0?document.body.removeAttribute(Yi):document.body.setAttribute(Yi,e.toString())}},[])},JR=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,l=o===void 0?"margin":o;QR();var s=k.useMemo(function(){return KR(l)},[l]);return k.createElement(YR,{styles:XR(s,!t,l,n?"":"!important")})},Vf=!1;if(typeof window<"u")try{var Zs=Object.defineProperty({},"passive",{get:function(){return Vf=!0,!0}});window.addEventListener("test",Zs,Zs),window.removeEventListener("test",Zs,Zs)}catch{Vf=!1}var Vi=Vf?{passive:!1}:!1,eT=function(e){return e.tagName==="TEXTAREA"},Cx=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!eT(e)&&n[t]==="visible")},tT=function(e){return Cx(e,"overflowY")},nT=function(e){return Cx(e,"overflowX")},ey=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var l=_x(e,o);if(l){var s=Ex(e,o),u=s[1],c=s[2];if(u>c)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},rT=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},iT=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},_x=function(e,t){return e==="v"?tT(t):nT(t)},Ex=function(e,t){return e==="v"?rT(t):iT(t)},oT=function(e,t){return e==="h"&&t==="rtl"?-1:1},lT=function(e,t,n,o,l){var s=oT(e,window.getComputedStyle(t).direction),u=s*o,c=n.target,d=t.contains(c),p=!1,h=u>0,g=0,x=0;do{if(!c)break;var v=Ex(e,c),S=v[0],C=v[1],E=v[2],R=C-E-s*S;(S||R)&&_x(e,c)&&(g+=R,x+=S);var A=c.parentNode;c=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!d&&c!==document.body||d&&(t.contains(c)||t===c));return(h&&Math.abs(g)<1||!h&&Math.abs(x)<1)&&(p=!0),p},Gs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ty=function(e){return[e.deltaX,e.deltaY]},ny=function(e){return e&&"current"in e?e.current:e},sT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},aT=function(e){return`
46
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
47
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
48
+ `)},uT=0,Wi=[];function cT(e){var t=k.useRef([]),n=k.useRef([0,0]),o=k.useRef(),l=k.useState(uT++)[0],s=k.useState(Sx)[0],u=k.useRef(e);k.useEffect(function(){u.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(l));var C=AR([e.lockRef.current],(e.shards||[]).map(ny),!0).filter(Boolean);return C.forEach(function(E){return E.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),C.forEach(function(E){return E.classList.remove("allow-interactivity-".concat(l))})}}},[e.inert,e.lockRef.current,e.shards]);var c=k.useCallback(function(C,E){if("touches"in C&&C.touches.length===2||C.type==="wheel"&&C.ctrlKey)return!u.current.allowPinchZoom;var R=Gs(C),A=n.current,N="deltaX"in C?C.deltaX:A[0]-R[0],F="deltaY"in C?C.deltaY:A[1]-R[1],B,I=C.target,W=Math.abs(N)>Math.abs(F)?"h":"v";if("touches"in C&&W==="h"&&I.type==="range")return!1;var V=window.getSelection(),Y=V&&V.anchorNode,D=Y?Y===I||Y.contains(I):!1;if(D)return!1;var q=ey(W,I);if(!q)return!0;if(q?B=W:(B=W==="v"?"h":"v",q=ey(W,I)),!q)return!1;if(!o.current&&"changedTouches"in C&&(N||F)&&(o.current=B),!B)return!0;var J=o.current||B;return lT(J,E,C,J==="h"?N:F)},[]),d=k.useCallback(function(C){var E=C;if(!(!Wi.length||Wi[Wi.length-1]!==s)){var R="deltaY"in E?ty(E):Gs(E),A=t.current.filter(function(B){return B.name===E.type&&(B.target===E.target||E.target===B.shadowParent)&&sT(B.delta,R)})[0];if(A&&A.should){E.cancelable&&E.preventDefault();return}if(!A){var N=(u.current.shards||[]).map(ny).filter(Boolean).filter(function(B){return B.contains(E.target)}),F=N.length>0?c(E,N[0]):!u.current.noIsolation;F&&E.cancelable&&E.preventDefault()}}},[]),p=k.useCallback(function(C,E,R,A){var N={name:C,delta:E,target:R,should:A,shadowParent:fT(R)};t.current.push(N),setTimeout(function(){t.current=t.current.filter(function(F){return F!==N})},1)},[]),h=k.useCallback(function(C){n.current=Gs(C),o.current=void 0},[]),g=k.useCallback(function(C){p(C.type,ty(C),C.target,c(C,e.lockRef.current))},[]),x=k.useCallback(function(C){p(C.type,Gs(C),C.target,c(C,e.lockRef.current))},[]);k.useEffect(function(){return Wi.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:x}),document.addEventListener("wheel",d,Vi),document.addEventListener("touchmove",d,Vi),document.addEventListener("touchstart",h,Vi),function(){Wi=Wi.filter(function(C){return C!==s}),document.removeEventListener("wheel",d,Vi),document.removeEventListener("touchmove",d,Vi),document.removeEventListener("touchstart",h,Vi)}},[]);var v=e.removeScrollBar,S=e.inert;return k.createElement(k.Fragment,null,S?k.createElement(s,{styles:aT(l)}):null,v?k.createElement(JR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function fT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const dT=$R(bx,cT);var Nd=k.forwardRef(function(e,t){return k.createElement(ja,Dn({},e,{ref:t,sideCar:dT}))});Nd.classNames=ja.classNames;var Wf=["Enter"," "],pT=["ArrowDown","PageUp","Home"],Rx=["ArrowUp","PageDown","End"],hT=[...pT,...Rx],mT={ltr:[...Wf,"ArrowRight"],rtl:[...Wf,"ArrowLeft"]},gT={ltr:["ArrowLeft"],rtl:["ArrowRight"]},bl="Menu",[pl,yT,vT]=vd(bl),[di,Tx]=Vn(bl,[vT,nx,Da]),La=nx(),Px=Da(),[xT,pi]=di(bl),[wT,Sl]=di(bl),Nx=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:l,onOpenChange:s,modal:u=!0}=e,c=La(t),[d,p]=k.useState(null),h=k.useRef(!1),g=Et(s),x=xl(l);return k.useEffect(()=>{const v=()=>{h.current=!0,document.addEventListener("pointerdown",S,{capture:!0,once:!0}),document.addEventListener("pointermove",S,{capture:!0,once:!0})},S=()=>h.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",S,{capture:!0}),document.removeEventListener("pointermove",S,{capture:!0})}},[]),w.jsx(pR,{...c,children:w.jsx(xT,{scope:t,open:n,onOpenChange:g,content:d,onContentChange:p,children:w.jsx(wT,{scope:t,onClose:k.useCallback(()=>g(!1),[g]),isUsingKeyboardRef:h,dir:x,modal:u,children:o})})})};Nx.displayName=bl;var kT="MenuAnchor",Ad=k.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,l=La(n);return w.jsx(hR,{...l,...o,ref:t})});Ad.displayName=kT;var Id="MenuPortal",[bT,Ax]=di(Id,{forceMount:void 0}),Ix=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:l}=e,s=pi(Id,t);return w.jsx(bT,{scope:t,forceMount:n,children:w.jsx(Ut,{present:n||s.open,children:w.jsx(Pd,{asChild:!0,container:l,children:o})})})};Ix.displayName=Id;var an="MenuContent",[ST,Od]=di(an),Ox=k.forwardRef((e,t)=>{const n=Ax(an,e.__scopeMenu),{forceMount:o=n.forceMount,...l}=e,s=pi(an,e.__scopeMenu),u=Sl(an,e.__scopeMenu);return w.jsx(pl.Provider,{scope:e.__scopeMenu,children:w.jsx(Ut,{present:o||s.open,children:w.jsx(pl.Slot,{scope:e.__scopeMenu,children:u.modal?w.jsx(CT,{...l,ref:t}):w.jsx(_T,{...l,ref:t})})})})}),CT=k.forwardRef((e,t)=>{const n=pi(an,e.__scopeMenu),o=k.useRef(null),l=tt(t,o);return k.useEffect(()=>{const s=o.current;if(s)return xx(s)},[]),w.jsx(Md,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:Ee(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),_T=k.forwardRef((e,t)=>{const n=pi(an,e.__scopeMenu);return w.jsx(Md,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),ET=cl("MenuContent.ScrollLock"),Md=k.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:l,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:g,onInteractOutside:x,onDismiss:v,disableOutsideScroll:S,...C}=e,E=pi(an,n),R=Sl(an,n),A=La(n),N=Px(n),F=yT(n),[B,I]=k.useState(null),W=k.useRef(null),V=tt(t,W,E.onContentChange),Y=k.useRef(0),D=k.useRef(""),q=k.useRef(0),J=k.useRef(null),ue=k.useRef("right"),te=k.useRef(0),K=S?Nd:k.Fragment,oe=S?{as:ET,allowPinchZoom:!0}:void 0,ae=Z=>{const _=D.current+Z,M=F().filter(ce=>!ce.disabled),H=document.activeElement,T=M.find(ce=>ce.ref.current===H)?.textValue,de=M.map(ce=>ce.textValue),Re=zT(de,_,T),xe=M.find(ce=>ce.textValue===Re)?.ref.current;(function ce(Pe){D.current=Pe,window.clearTimeout(Y.current),Pe!==""&&(Y.current=window.setTimeout(()=>ce(""),1e3))})(_),xe&&setTimeout(()=>xe.focus())};k.useEffect(()=>()=>window.clearTimeout(Y.current),[]),Bv();const L=k.useCallback(Z=>ue.current===J.current?.side&&$T(Z,J.current?.area),[]);return w.jsx(ST,{scope:n,searchRef:D,onItemEnter:k.useCallback(Z=>{L(Z)&&Z.preventDefault()},[L]),onItemLeave:k.useCallback(Z=>{L(Z)||(W.current?.focus(),I(null))},[L]),onTriggerLeave:k.useCallback(Z=>{L(Z)&&Z.preventDefault()},[L]),pointerGraceTimerRef:q,onPointerGraceIntentChange:k.useCallback(Z=>{J.current=Z},[]),children:w.jsx(K,{...oe,children:w.jsx(wd,{asChild:!0,trapped:l,onMountAutoFocus:Ee(s,Z=>{Z.preventDefault(),W.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:w.jsx(xd,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:g,onInteractOutside:x,onDismiss:v,children:w.jsx(gx,{asChild:!0,...N,dir:R.dir,orientation:"vertical",loop:o,currentTabStopId:B,onCurrentTabStopIdChange:I,onEntryFocus:Ee(d,Z=>{R.isUsingKeyboardRef.current||Z.preventDefault()}),preventScrollOnEntryFocus:!0,children:w.jsx(mR,{role:"menu","aria-orientation":"vertical","data-state":Kx(E.open),"data-radix-menu-content":"",dir:R.dir,...A,...C,ref:V,style:{outline:"none",...C.style},onKeyDown:Ee(C.onKeyDown,Z=>{const M=Z.target.closest("[data-radix-menu-content]")===Z.currentTarget,H=Z.ctrlKey||Z.altKey||Z.metaKey,T=Z.key.length===1;M&&(Z.key==="Tab"&&Z.preventDefault(),!H&&T&&ae(Z.key));const de=W.current;if(Z.target!==de||!hT.includes(Z.key))return;Z.preventDefault();const xe=F().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);Rx.includes(Z.key)&&xe.reverse(),jT(xe)}),onBlur:Ee(e.onBlur,Z=>{Z.currentTarget.contains(Z.target)||(window.clearTimeout(Y.current),D.current="")}),onPointerMove:Ee(e.onPointerMove,hl(Z=>{const _=Z.target,M=te.current!==Z.clientX;if(Z.currentTarget.contains(_)&&M){const H=Z.clientX>te.current?"right":"left";ue.current=H,te.current=Z.clientX}}))})})})})})})});Ox.displayName=an;var RT="MenuGroup",Dd=k.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return w.jsx(Ve.div,{role:"group",...o,ref:t})});Dd.displayName=RT;var TT="MenuLabel",Mx=k.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return w.jsx(Ve.div,{...o,ref:t})});Mx.displayName=TT;var ka="MenuItem",ry="menu.itemSelect",za=k.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...l}=e,s=k.useRef(null),u=Sl(ka,e.__scopeMenu),c=Od(ka,e.__scopeMenu),d=tt(t,s),p=k.useRef(!1),h=()=>{const g=s.current;if(!n&&g){const x=new CustomEvent(ry,{bubbles:!0,cancelable:!0});g.addEventListener(ry,v=>o?.(v),{once:!0}),bv(g,x),x.defaultPrevented?p.current=!1:u.onClose()}};return w.jsx(Dx,{...l,ref:d,disabled:n,onClick:Ee(e.onClick,h),onPointerDown:g=>{e.onPointerDown?.(g),p.current=!0},onPointerUp:Ee(e.onPointerUp,g=>{p.current||g.currentTarget?.click()}),onKeyDown:Ee(e.onKeyDown,g=>{const x=c.searchRef.current!=="";n||x&&g.key===" "||Wf.includes(g.key)&&(g.currentTarget.click(),g.preventDefault())})})});za.displayName=ka;var Dx=k.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:l,...s}=e,u=Od(ka,n),c=Px(n),d=k.useRef(null),p=tt(t,d),[h,g]=k.useState(!1),[x,v]=k.useState("");return k.useEffect(()=>{const S=d.current;S&&v((S.textContent??"").trim())},[s.children]),w.jsx(pl.ItemSlot,{scope:n,disabled:o,textValue:l??x,children:w.jsx(yx,{asChild:!0,...c,focusable:!o,children:w.jsx(Ve.div,{role:"menuitem","data-highlighted":h?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:p,onPointerMove:Ee(e.onPointerMove,hl(S=>{o?u.onItemLeave(S):(u.onItemEnter(S),S.defaultPrevented||S.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ee(e.onPointerLeave,hl(S=>u.onItemLeave(S))),onFocus:Ee(e.onFocus,()=>g(!0)),onBlur:Ee(e.onBlur,()=>g(!1))})})})}),PT="MenuCheckboxItem",jx=k.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...l}=e;return w.jsx(Bx,{scope:e.__scopeMenu,checked:n,children:w.jsx(za,{role:"menuitemcheckbox","aria-checked":ba(n)?"mixed":n,...l,ref:t,"data-state":Ld(n),onSelect:Ee(l.onSelect,()=>o?.(ba(n)?!0:!n),{checkForDefaultPrevented:!1})})})});jx.displayName=PT;var Lx="MenuRadioGroup",[NT,AT]=di(Lx,{value:void 0,onValueChange:()=>{}}),zx=k.forwardRef((e,t)=>{const{value:n,onValueChange:o,...l}=e,s=Et(o);return w.jsx(NT,{scope:e.__scopeMenu,value:n,onValueChange:s,children:w.jsx(Dd,{...l,ref:t})})});zx.displayName=Lx;var Fx="MenuRadioItem",$x=k.forwardRef((e,t)=>{const{value:n,...o}=e,l=AT(Fx,e.__scopeMenu),s=n===l.value;return w.jsx(Bx,{scope:e.__scopeMenu,checked:s,children:w.jsx(za,{role:"menuitemradio","aria-checked":s,...o,ref:t,"data-state":Ld(s),onSelect:Ee(o.onSelect,()=>l.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});$x.displayName=Fx;var jd="MenuItemIndicator",[Bx,IT]=di(jd,{checked:!1}),Ux=k.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...l}=e,s=IT(jd,n);return w.jsx(Ut,{present:o||ba(s.checked)||s.checked===!0,children:w.jsx(Ve.span,{...l,ref:t,"data-state":Ld(s.checked)})})});Ux.displayName=jd;var OT="MenuSeparator",Vx=k.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return w.jsx(Ve.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Vx.displayName=OT;var MT="MenuArrow",Wx=k.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,l=La(n);return w.jsx(gR,{...l,...o,ref:t})});Wx.displayName=MT;var DT="MenuSub",[vj,Hx]=di(DT),rl="MenuSubTrigger",Zx=k.forwardRef((e,t)=>{const n=pi(rl,e.__scopeMenu),o=Sl(rl,e.__scopeMenu),l=Hx(rl,e.__scopeMenu),s=Od(rl,e.__scopeMenu),u=k.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=s,p={__scopeMenu:e.__scopeMenu},h=k.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return k.useEffect(()=>h,[h]),k.useEffect(()=>{const g=c.current;return()=>{window.clearTimeout(g),d(null)}},[c,d]),w.jsx(Ad,{asChild:!0,...p,children:w.jsx(Dx,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":l.contentId,"data-state":Kx(n.open),...e,ref:vl(t,l.onTriggerChange),onClick:g=>{e.onClick?.(g),!(e.disabled||g.defaultPrevented)&&(g.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:Ee(e.onPointerMove,hl(g=>{s.onItemEnter(g),!g.defaultPrevented&&!e.disabled&&!n.open&&!u.current&&(s.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),h()},100))})),onPointerLeave:Ee(e.onPointerLeave,hl(g=>{h();const x=n.content?.getBoundingClientRect();if(x){const v=n.content?.dataset.side,S=v==="right",C=S?-5:5,E=x[S?"left":"right"],R=x[S?"right":"left"];s.onPointerGraceIntentChange({area:[{x:g.clientX+C,y:g.clientY},{x:E,y:x.top},{x:R,y:x.top},{x:R,y:x.bottom},{x:E,y:x.bottom}],side:v}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(g),g.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:Ee(e.onKeyDown,g=>{const x=s.searchRef.current!=="";e.disabled||x&&g.key===" "||mT[o.dir].includes(g.key)&&(n.onOpenChange(!0),n.content?.focus(),g.preventDefault())})})})});Zx.displayName=rl;var Gx="MenuSubContent",qx=k.forwardRef((e,t)=>{const n=Ax(an,e.__scopeMenu),{forceMount:o=n.forceMount,...l}=e,s=pi(an,e.__scopeMenu),u=Sl(an,e.__scopeMenu),c=Hx(Gx,e.__scopeMenu),d=k.useRef(null),p=tt(t,d);return w.jsx(pl.Provider,{scope:e.__scopeMenu,children:w.jsx(Ut,{present:o||s.open,children:w.jsx(pl.Slot,{scope:e.__scopeMenu,children:w.jsx(Md,{id:c.contentId,"aria-labelledby":c.triggerId,...l,ref:p,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:h=>{u.isUsingKeyboardRef.current&&d.current?.focus(),h.preventDefault()},onCloseAutoFocus:h=>h.preventDefault(),onFocusOutside:Ee(e.onFocusOutside,h=>{h.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:Ee(e.onEscapeKeyDown,h=>{u.onClose(),h.preventDefault()}),onKeyDown:Ee(e.onKeyDown,h=>{const g=h.currentTarget.contains(h.target),x=gT[u.dir].includes(h.key);g&&x&&(s.onOpenChange(!1),c.trigger?.focus(),h.preventDefault())})})})})})});qx.displayName=Gx;function Kx(e){return e?"open":"closed"}function ba(e){return e==="indeterminate"}function Ld(e){return ba(e)?"indeterminate":e?"checked":"unchecked"}function jT(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function LT(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function zT(e,t,n){const l=t.length>1&&Array.from(t).every(p=>p===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let u=LT(e,Math.max(s,0));l.length===1&&(u=u.filter(p=>p!==n));const d=u.find(p=>p.toLowerCase().startsWith(l.toLowerCase()));return d!==n?d:void 0}function FT(e,t){const{x:n,y:o}=e;let l=!1;for(let s=0,u=t.length-1;s<t.length;u=s++){const c=t[s],d=t[u],p=c.x,h=c.y,g=d.x,x=d.y;h>o!=x>o&&n<(g-p)*(o-h)/(x-h)+p&&(l=!l)}return l}function $T(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return FT(n,t)}function hl(e){return t=>t.pointerType==="mouse"?e(t):void 0}var BT=Nx,UT=Ad,VT=Ix,WT=Ox,HT=Dd,ZT=Mx,GT=za,qT=jx,KT=zx,YT=$x,XT=Ux,QT=Vx,JT=Wx,eP=Zx,tP=qx,Fa="DropdownMenu",[nP]=Vn(Fa,[Tx]),Mt=Tx(),[rP,Yx]=nP(Fa),Xx=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:l,defaultOpen:s,onOpenChange:u,modal:c=!0}=e,d=Mt(t),p=k.useRef(null),[h,g]=fi({prop:l,defaultProp:s??!1,onChange:u,caller:Fa});return w.jsx(rP,{scope:t,triggerId:sr(),triggerRef:p,contentId:sr(),open:h,onOpenChange:g,onOpenToggle:k.useCallback(()=>g(x=>!x),[g]),modal:c,children:w.jsx(BT,{...d,open:h,onOpenChange:g,dir:o,modal:c,children:n})})};Xx.displayName=Fa;var Qx="DropdownMenuTrigger",Jx=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...l}=e,s=Yx(Qx,n),u=Mt(n);return w.jsx(UT,{asChild:!0,...u,children:w.jsx(Ve.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...l,ref:vl(t,s.triggerRef),onPointerDown:Ee(e.onPointerDown,c=>{!o&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:Ee(e.onKeyDown,c=>{o||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});Jx.displayName=Qx;var iP="DropdownMenuPortal",ew=e=>{const{__scopeDropdownMenu:t,...n}=e,o=Mt(t);return w.jsx(VT,{...o,...n})};ew.displayName=iP;var tw="DropdownMenuContent",nw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,l=Yx(tw,n),s=Mt(n),u=k.useRef(!1);return w.jsx(WT,{id:l.contentId,"aria-labelledby":l.triggerId,...s,...o,ref:t,onCloseAutoFocus:Ee(e.onCloseAutoFocus,c=>{u.current||l.triggerRef.current?.focus(),u.current=!1,c.preventDefault()}),onInteractOutside:Ee(e.onInteractOutside,c=>{const d=c.detail.originalEvent,p=d.button===0&&d.ctrlKey===!0,h=d.button===2||p;(!l.modal||h)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nw.displayName=tw;var oP="DropdownMenuGroup",lP=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,l=Mt(n);return w.jsx(HT,{...l,...o,ref:t})});lP.displayName=oP;var sP="DropdownMenuLabel",rw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,l=Mt(n);return w.jsx(ZT,{...l,...o,ref:t})});rw.displayName=sP;var aP="DropdownMenuItem",iw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,l=Mt(n);return w.jsx(GT,{...l,...o,ref:t})});iw.displayName=aP;var uP="DropdownMenuCheckboxItem",ow=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,l=Mt(n);return w.jsx(qT,{...l,...o,ref:t})});ow.displayName=uP;var cP="DropdownMenuRadioGroup",fP=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,l=Mt(n);return w.jsx(KT,{...l,...o,ref:t})});fP.displayName=cP;var dP="DropdownMenuRadioItem",lw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,l=Mt(n);return w.jsx(YT,{...l,...o,ref:t})});lw.displayName=dP;var pP="DropdownMenuItemIndicator",sw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,l=Mt(n);return w.jsx(XT,{...l,...o,ref:t})});sw.displayName=pP;var hP="DropdownMenuSeparator",aw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,l=Mt(n);return w.jsx(QT,{...l,...o,ref:t})});aw.displayName=hP;var mP="DropdownMenuArrow",gP=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,l=Mt(n);return w.jsx(JT,{...l,...o,ref:t})});gP.displayName=mP;var yP="DropdownMenuSubTrigger",uw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,l=Mt(n);return w.jsx(eP,{...l,...o,ref:t})});uw.displayName=yP;var vP="DropdownMenuSubContent",cw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,l=Mt(n);return w.jsx(tP,{...l,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});cw.displayName=vP;var xP=Xx,wP=Jx,kP=ew,fw=nw,dw=rw,pw=iw,hw=ow,mw=lw,gw=sw,yw=aw,vw=uw,xw=cw;const ww=xP,kw=wP,bP=k.forwardRef(({className:e,inset:t,children:n,...o},l)=>w.jsx(vw,{ref:l,className:Oe("flex cursor-default select-none items-center rounded-md px-2 py-1.5 text-sm outline-none","focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",e),...o,children:n}));bP.displayName=vw.displayName;const SP=k.forwardRef(({className:e,...t},n)=>w.jsx(xw,{ref:n,className:Oe("z-50 min-w-[8rem] overflow-hidden rounded-md border border-border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out",e),...t}));SP.displayName=xw.displayName;const zd=k.forwardRef(({className:e,sideOffset:t=4,...n},o)=>w.jsx(kP,{children:w.jsx(fw,{ref:o,sideOffset:t,className:Oe("z-50 min-w-[12rem] overflow-hidden rounded-xl border border-border bg-popover p-1 text-popover-foreground shadow-lg shadow-black/10",e),...n})}));zd.displayName=fw.displayName;const il=k.forwardRef(({className:e,inset:t,...n},o)=>w.jsx(pw,{ref:o,className:Oe("relative flex cursor-default select-none items-center rounded-lg px-2 py-2 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...n}));il.displayName=pw.displayName;const CP=k.forwardRef(({className:e,children:t,checked:n,...o},l)=>w.jsxs(hw,{ref:l,className:Oe("relative flex cursor-default select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...o,children:[w.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:w.jsx(gw,{children:w.jsx("span",{className:"h-2 w-2 rounded-full bg-primary"})})}),t]}));CP.displayName=hw.displayName;const _P=k.forwardRef(({className:e,children:t,...n},o)=>w.jsxs(mw,{ref:o,className:Oe("relative flex cursor-default select-none items-center rounded-md py-1.5 pl-8 pr-2 text-sm outline-none transition-colors","focus:bg-accent focus:text-accent-foreground","data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[w.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:w.jsx(gw,{children:w.jsx("span",{className:"h-2 w-2 rounded-full bg-primary"})})}),t]}));_P.displayName=mw.displayName;const EP=k.forwardRef(({className:e,inset:t,...n},o)=>w.jsx(dw,{ref:o,className:Oe("px-2 py-1.5 text-xs font-semibold",t&&"pl-8",e),...n}));EP.displayName=dw.displayName;const RP=k.forwardRef(({className:e,...t},n)=>w.jsx(yw,{ref:n,className:Oe("-mx-1 my-1 h-px bg-border",e),...t}));RP.displayName=yw.displayName;function TP(e){return e.customTitle&&e.customTitle.trim()||e.slug&&e.slug.trim()||e.sessionId}function PP(e){const t=e.workspaces.find(n=>n.id===e.workspaceId)??e.workspaces.find(n=>n.isCurrent)??e.workspaces[0]??null;return w.jsxs("div",{className:"flex h-full flex-col border-r border-border bg-muted/30",children:[w.jsx("div",{className:"flex items-center justify-between gap-2 p-3",children:w.jsxs("div",{className:"min-w-0",children:[w.jsx("div",{className:"text-sm font-semibold",children:"Kode Web"}),w.jsx("div",{className:"truncate text-xs text-muted-foreground",children:t?.path??"—"})]})}),w.jsx("div",{className:"px-3 pb-3",children:w.jsxs(ww,{children:[w.jsx(kw,{asChild:!0,children:w.jsxs(kn,{variant:"outline",className:"w-full justify-between",children:[w.jsx("span",{className:"truncate",children:t?.title??"Select workspace"}),w.jsx(Xy,{className:"h-4 w-4 opacity-70"})]})}),w.jsx(zd,{className:"w-[min(360px,calc(100vw-2rem))]",align:"start",children:e.workspaces.map(n=>w.jsxs(il,{onClick:()=>e.onSelectWorkspace(n.id),children:[w.jsx("span",{className:"truncate",children:n.title}),n.branch?w.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:n.branch}):null]},n.id))})]})}),w.jsx(yd,{}),w.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-3",children:[w.jsx("div",{className:"text-xs font-medium text-muted-foreground",children:"Sessions"}),w.jsx(kn,{variant:"ghost",size:"icon",onClick:e.onNewSession,"aria-label":"New session",children:w.jsx(Jb,{className:"h-4 w-4"})})]}),w.jsx(gd,{className:"flex-1 px-2 pb-2",children:w.jsx("div",{className:"grid gap-1",children:e.sessions.length===0?w.jsx("div",{className:"px-2 py-6 text-center text-xs text-muted-foreground",children:"No sessions yet"}):e.sessions.map(n=>w.jsxs("button",{className:Oe("w-full rounded-lg px-3 py-2 text-left text-sm transition-colors","hover:bg-muted/60",e.selectedSessionId===n.sessionId?"bg-muted":"bg-transparent"),onClick:()=>e.onSelectSession(n.sessionId),children:[w.jsx("div",{className:"truncate font-medium",children:TP(n)}),n.summary?w.jsx("div",{className:"truncate text-xs text-muted-foreground",children:n.summary}):null]},n.sessionId))})})]})}var NP=(e,t,n,o,l,s,u,c)=>{let d=document.documentElement,p=["light","dark"];function h(v){(Array.isArray(e)?e:[e]).forEach(S=>{let C=S==="class",E=C&&s?l.map(R=>s[R]||R):l;C?(d.classList.remove(...E),d.classList.add(s&&s[v]?s[v]:v)):d.setAttribute(S,v)}),g(v)}function g(v){c&&p.includes(v)&&(d.style.colorScheme=v)}function x(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(o)h(o);else try{let v=localStorage.getItem(t)||n,S=u&&v==="system"?x():v;h(S)}catch{}},iy=["light","dark"],bw="(prefers-color-scheme: dark)",AP=typeof window>"u",Fd=k.createContext(void 0),IP={setTheme:e=>{},themes:[]},OP=()=>{var e;return(e=k.useContext(Fd))!=null?e:IP},MP=e=>k.useContext(Fd)?k.createElement(k.Fragment,null,e.children):k.createElement(jP,{...e}),DP=["light","dark"],jP=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:n=!0,enableColorScheme:o=!0,storageKey:l="theme",themes:s=DP,defaultTheme:u=n?"system":"light",attribute:c="data-theme",value:d,children:p,nonce:h,scriptProps:g})=>{let[x,v]=k.useState(()=>zP(l,u)),[S,C]=k.useState(()=>x==="system"?uf():x),E=d?Object.values(d):s,R=k.useCallback(B=>{let I=B;if(!I)return;B==="system"&&n&&(I=uf());let W=d?d[I]:I,V=t?FP(h):null,Y=document.documentElement,D=q=>{q==="class"?(Y.classList.remove(...E),W&&Y.classList.add(W)):q.startsWith("data-")&&(W?Y.setAttribute(q,W):Y.removeAttribute(q))};if(Array.isArray(c)?c.forEach(D):D(c),o){let q=iy.includes(u)?u:null,J=iy.includes(I)?I:q;Y.style.colorScheme=J}V?.()},[h]),A=k.useCallback(B=>{let I=typeof B=="function"?B(x):B;v(I);try{localStorage.setItem(l,I)}catch{}},[x]),N=k.useCallback(B=>{let I=uf(B);C(I),x==="system"&&n&&!e&&R("system")},[x,e]);k.useEffect(()=>{let B=window.matchMedia(bw);return B.addListener(N),N(B),()=>B.removeListener(N)},[N]),k.useEffect(()=>{let B=I=>{I.key===l&&(I.newValue?v(I.newValue):A(u))};return window.addEventListener("storage",B),()=>window.removeEventListener("storage",B)},[A]),k.useEffect(()=>{R(e??x)},[e,x]);let F=k.useMemo(()=>({theme:x,setTheme:A,forcedTheme:e,resolvedTheme:x==="system"?S:x,themes:n?[...s,"system"]:s,systemTheme:n?S:void 0}),[x,A,e,S,n,s]);return k.createElement(Fd.Provider,{value:F},k.createElement(LP,{forcedTheme:e,storageKey:l,attribute:c,enableSystem:n,enableColorScheme:o,defaultTheme:u,value:d,themes:s,nonce:h,scriptProps:g}),p)},LP=k.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:l,defaultTheme:s,value:u,themes:c,nonce:d,scriptProps:p})=>{let h=JSON.stringify([n,t,s,e,c,u,o,l]).slice(1,-1);return k.createElement("script",{...p,suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(${NP.toString()})(${h})`}})}),zP=(e,t)=>{if(AP)return;let n;try{n=localStorage.getItem(e)||void 0}catch{}return n||t},FP=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},uf=e=>(e||(e=window.matchMedia(bw)),e.matches?"dark":"light");function $P(){const{theme:e,setTheme:t}=OP(),n=e==="dark";return w.jsxs(ww,{children:[w.jsx(kw,{asChild:!0,children:w.jsx(kn,{variant:"ghost",size:"icon","aria-label":"Toggle theme",children:n?w.jsx(Xb,{className:"h-4 w-4"}):w.jsx(iS,{className:"h-4 w-4"})})}),w.jsxs(zd,{align:"end",children:[w.jsx(il,{onClick:()=>t("light"),children:"Light"}),w.jsx(il,{onClick:()=>t("dark"),children:"Dark"}),w.jsx(il,{onClick:()=>t("system"),children:"System"})]})]})}var $a="Dialog",[Sw]=Vn($a),[BP,En]=Sw($a),Cw=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:l,onOpenChange:s,modal:u=!0}=e,c=k.useRef(null),d=k.useRef(null),[p,h]=fi({prop:o,defaultProp:l??!1,onChange:s,caller:$a});return w.jsx(BP,{scope:t,triggerRef:c,contentRef:d,contentId:sr(),titleId:sr(),descriptionId:sr(),open:p,onOpenChange:h,onOpenToggle:k.useCallback(()=>h(g=>!g),[h]),modal:u,children:n})};Cw.displayName=$a;var _w="DialogTrigger",Ew=k.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,l=En(_w,n),s=tt(t,l.triggerRef);return w.jsx(Ve.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":Ud(l.open),...o,ref:s,onClick:Ee(e.onClick,l.onOpenToggle)})});Ew.displayName=_w;var $d="DialogPortal",[UP,Rw]=Sw($d,{forceMount:void 0}),Tw=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:l}=e,s=En($d,t);return w.jsx(UP,{scope:t,forceMount:n,children:k.Children.map(o,u=>w.jsx(Ut,{present:n||s.open,children:w.jsx(Pd,{asChild:!0,container:l,children:u})}))})};Tw.displayName=$d;var Sa="DialogOverlay",Pw=k.forwardRef((e,t)=>{const n=Rw(Sa,e.__scopeDialog),{forceMount:o=n.forceMount,...l}=e,s=En(Sa,e.__scopeDialog);return s.modal?w.jsx(Ut,{present:o||s.open,children:w.jsx(WP,{...l,ref:t})}):null});Pw.displayName=Sa;var VP=cl("DialogOverlay.RemoveScroll"),WP=k.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,l=En(Sa,n);return w.jsx(Nd,{as:VP,allowPinchZoom:!0,shards:[l.contentRef],children:w.jsx(Ve.div,{"data-state":Ud(l.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),ui="DialogContent",Nw=k.forwardRef((e,t)=>{const n=Rw(ui,e.__scopeDialog),{forceMount:o=n.forceMount,...l}=e,s=En(ui,e.__scopeDialog);return w.jsx(Ut,{present:o||s.open,children:s.modal?w.jsx(HP,{...l,ref:t}):w.jsx(ZP,{...l,ref:t})})});Nw.displayName=ui;var HP=k.forwardRef((e,t)=>{const n=En(ui,e.__scopeDialog),o=k.useRef(null),l=tt(t,n.contentRef,o);return k.useEffect(()=>{const s=o.current;if(s)return xx(s)},[]),w.jsx(Aw,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ee(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Ee(e.onPointerDownOutside,s=>{const u=s.detail.originalEvent,c=u.button===0&&u.ctrlKey===!0;(u.button===2||c)&&s.preventDefault()}),onFocusOutside:Ee(e.onFocusOutside,s=>s.preventDefault())})}),ZP=k.forwardRef((e,t)=>{const n=En(ui,e.__scopeDialog),o=k.useRef(!1),l=k.useRef(!1);return w.jsx(Aw,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(o.current||n.triggerRef.current?.focus(),s.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(o.current=!0,s.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const u=s.target;n.triggerRef.current?.contains(u)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&l.current&&s.preventDefault()}})}),Aw=k.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:s,...u}=e,c=En(ui,n),d=k.useRef(null),p=tt(t,d);return Bv(),w.jsxs(w.Fragment,{children:[w.jsx(wd,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:l,onUnmountAutoFocus:s,children:w.jsx(xd,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":Ud(c.open),...u,ref:p,onDismiss:()=>c.onOpenChange(!1)})}),w.jsxs(w.Fragment,{children:[w.jsx(GP,{titleId:c.titleId}),w.jsx(KP,{contentRef:d,descriptionId:c.descriptionId})]})]})}),Bd="DialogTitle",Iw=k.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,l=En(Bd,n);return w.jsx(Ve.h2,{id:l.titleId,...o,ref:t})});Iw.displayName=Bd;var Ow="DialogDescription",Mw=k.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,l=En(Ow,n);return w.jsx(Ve.p,{id:l.descriptionId,...o,ref:t})});Mw.displayName=Ow;var Dw="DialogClose",jw=k.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,l=En(Dw,n);return w.jsx(Ve.button,{type:"button",...o,ref:t,onClick:Ee(e.onClick,()=>l.onOpenChange(!1))})});jw.displayName=Dw;function Ud(e){return e?"open":"closed"}var Lw="DialogTitleWarning",[xj,zw]=l_(Lw,{contentName:ui,titleName:Bd,docsSlug:"dialog"}),GP=({titleId:e})=>{const t=zw(Lw),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
49
+
50
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
51
+
52
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return k.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},qP="DialogDescriptionWarning",KP=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zw(qP).contentName}}.`;return k.useEffect(()=>{const l=e.current?.getAttribute("aria-describedby");t&&l&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},Fw=Cw,YP=Ew,$w=Tw,Ba=Pw,Ua=Nw,Va=Iw,Wa=Mw,Bw=jw;const XP=Fw,QP=$w,Uw=k.forwardRef(({className:e,...t},n)=>w.jsx(Ba,{ref:n,className:Oe("fixed inset-0 z-50 bg-black/60 data-[state=open]:animate-in data-[state=closed]:animate-out",e),...t}));Uw.displayName=Ba.displayName;const Vw=k.forwardRef(({className:e,children:t,...n},o)=>w.jsxs(QP,{children:[w.jsx(Uw,{}),w.jsxs(Ua,{ref:o,className:Oe("fixed left-[50%] top-[50%] z-50 w-full max-w-lg translate-x-[-50%] translate-y-[-50%] rounded-2xl border border-border bg-background p-6 shadow-lg shadow-black/20","data-[state=open]:animate-in data-[state=closed]:animate-out",e),...n,children:[t,w.jsxs(Bw,{className:Oe("absolute right-4 top-4 rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-foreground","focus:outline-none focus:ring-2 focus:ring-ring/20"),children:[w.jsx(Qy,{className:"h-4 w-4"}),w.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Vw.displayName=Ua.displayName;const Ww=({className:e,...t})=>w.jsx("div",{className:Oe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Ww.displayName="DialogHeader";const Hw=({className:e,...t})=>w.jsx("div",{className:Oe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),...t});Hw.displayName="DialogFooter";const Zw=k.forwardRef(({className:e,...t},n)=>w.jsx(Va,{ref:n,className:Oe("text-lg font-semibold leading-none tracking-tight",e),...t}));Zw.displayName=Va.displayName;const Gw=k.forwardRef(({className:e,...t},n)=>w.jsx(Wa,{ref:n,className:Oe("text-sm text-muted-foreground",e),...t}));Gw.displayName=Wa.displayName;const Vd=k.forwardRef(({className:e,...t},n)=>w.jsx("textarea",{className:Oe("flex min-h-[80px] w-full rounded-lg border border-input bg-background px-3 py-2 text-sm","ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/20","disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...t}));Vd.displayName="Textarea";function JP(e){const[t,n]=Ce.useState(""),o=e.request;return Ce.useEffect(()=>{n("")},[o?.request_id]),w.jsx(XP,{open:!!o,onOpenChange:l=>{l||o&&e.onDeny(o.request_id,"Cancelled")},children:w.jsxs(Vw,{className:"max-w-[min(720px,calc(100vw-2rem))]",children:[w.jsxs(Ww,{children:[w.jsx(Zw,{children:"Tool Permission"}),w.jsx(Gw,{children:"Approve or deny this tool execution."})]}),o?w.jsxs("div",{className:"grid gap-3",children:[w.jsxs("div",{className:"text-sm",children:[w.jsx("div",{className:"font-medium",children:o.tool_name}),w.jsx("div",{className:"text-muted-foreground",children:o.tool_description})]}),w.jsx("pre",{className:"max-h-64 overflow-auto rounded-md bg-muted/40 p-3 text-xs leading-relaxed",children:JSON.stringify(o.input??{},null,2)}),w.jsxs("div",{className:"grid gap-2",children:[w.jsx("div",{className:"text-xs font-medium text-muted-foreground",children:"Deny reason (optional)"}),w.jsx(Vd,{value:t,onChange:l=>n(l.target.value),placeholder:"Explain why you deny this tool use…"})]})]}):null,w.jsxs(Hw,{className:"gap-2 sm:gap-2",children:[w.jsx(kn,{variant:"secondary",onClick:()=>{o&&e.onAllowOnce(o.request_id)},children:"Allow Once"}),w.jsx(kn,{onClick:()=>{o&&e.onAllowAlways(o.request_id)},children:"Allow Always"}),w.jsx(kn,{variant:"destructive",onClick:()=>{o&&e.onDeny(o.request_id,t)},children:"Deny"})]})]})})}const eN=Fw,tN=YP,nN=$w,qw=k.forwardRef(({className:e,...t},n)=>w.jsx(Ba,{ref:n,className:Oe("fixed inset-0 z-50 bg-black/60 data-[state=open]:animate-in data-[state=closed]:animate-out",e),...t}));qw.displayName=Ba.displayName;const rN=cd("fixed z-50 gap-4 bg-background p-6 shadow-lg shadow-black/20 transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Kw=k.forwardRef(({side:e="right",className:t,children:n,...o},l)=>w.jsxs(nN,{children:[w.jsx(qw,{}),w.jsxs(Ua,{ref:l,className:Oe(rN({side:e}),t),...o,children:[n,w.jsxs(Bw,{className:Oe("absolute right-4 top-4 rounded-md p-1 text-muted-foreground hover:bg-accent hover:text-foreground","focus:outline-none focus:ring-2 focus:ring-ring/20"),children:[w.jsx(Qy,{className:"h-4 w-4"}),w.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Kw.displayName=Ua.displayName;const iN=k.forwardRef(({className:e,...t},n)=>w.jsx(Va,{ref:n,className:Oe("text-lg font-semibold",e),...t}));iN.displayName=Va.displayName;const oN=k.forwardRef(({className:e,...t},n)=>w.jsx(Wa,{ref:n,className:Oe("text-sm text-muted-foreground",e),...t}));oN.displayName=Wa.displayName;var Ha="Tabs",[lN]=Vn(Ha,[Da]),Yw=Da(),[sN,Wd]=lN(Ha),Xw=k.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,onValueChange:l,defaultValue:s,orientation:u="horizontal",dir:c,activationMode:d="automatic",...p}=e,h=xl(c),[g,x]=fi({prop:o,onChange:l,defaultProp:s??"",caller:Ha});return w.jsx(sN,{scope:n,baseId:sr(),value:g,onValueChange:x,orientation:u,dir:h,activationMode:d,children:w.jsx(Ve.div,{dir:h,"data-orientation":u,...p,ref:t})})});Xw.displayName=Ha;var Qw="TabsList",Jw=k.forwardRef((e,t)=>{const{__scopeTabs:n,loop:o=!0,...l}=e,s=Wd(Qw,n),u=Yw(n);return w.jsx(gx,{asChild:!0,...u,orientation:s.orientation,dir:s.dir,loop:o,children:w.jsx(Ve.div,{role:"tablist","aria-orientation":s.orientation,...l,ref:t})})});Jw.displayName=Qw;var ek="TabsTrigger",tk=k.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,disabled:l=!1,...s}=e,u=Wd(ek,n),c=Yw(n),d=ik(u.baseId,o),p=ok(u.baseId,o),h=o===u.value;return w.jsx(yx,{asChild:!0,...c,focusable:!l,active:h,children:w.jsx(Ve.button,{type:"button",role:"tab","aria-selected":h,"aria-controls":p,"data-state":h?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:d,...s,ref:t,onMouseDown:Ee(e.onMouseDown,g=>{!l&&g.button===0&&g.ctrlKey===!1?u.onValueChange(o):g.preventDefault()}),onKeyDown:Ee(e.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&u.onValueChange(o)}),onFocus:Ee(e.onFocus,()=>{const g=u.activationMode!=="manual";!h&&!l&&g&&u.onValueChange(o)})})})});tk.displayName=ek;var nk="TabsContent",rk=k.forwardRef((e,t)=>{const{__scopeTabs:n,value:o,forceMount:l,children:s,...u}=e,c=Wd(nk,n),d=ik(c.baseId,o),p=ok(c.baseId,o),h=o===c.value,g=k.useRef(h);return k.useEffect(()=>{const x=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(x)},[]),w.jsx(Ut,{present:l||h,children:({present:x})=>w.jsx(Ve.div,{"data-state":h?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!x,id:p,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:g.current?"0s":void 0},children:x&&s})})});rk.displayName=nk;function ik(e,t){return`${e}-trigger-${t}`}function ok(e,t){return`${e}-content-${t}`}var aN=Xw,lk=Jw,sk=tk,ak=rk;const uN=aN,Hf=k.forwardRef(({className:e,...t},n)=>w.jsx(lk,{ref:n,className:Oe("inline-flex h-10 items-center justify-center rounded-xl bg-muted p-1 text-muted-foreground",e),...t}));Hf.displayName=lk.displayName;const ir=k.forwardRef(({className:e,...t},n)=>w.jsx(sk,{ref:n,className:Oe("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg px-3 py-2 text-sm font-medium transition-colors","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/20","disabled:pointer-events-none disabled:opacity-50","data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));ir.displayName=sk.displayName;const cN=k.forwardRef(({className:e,...t},n)=>w.jsx(ak,{ref:n,className:Oe("mt-0 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/20",e),...t}));cN.displayName=ak.displayName;const Hd="kode.daemon.token";function fN(){try{return window.sessionStorage.getItem(Hd)??""}catch{return""}}function Zf(e){try{window.sessionStorage.setItem(Hd,e)}catch{}}function dN(){try{window.sessionStorage.removeItem(Hd)}catch{}}function pN(){try{const e=new URL(window.location.href),t=e.searchParams.get("token")??"";return t?(Zf(t),e.searchParams.delete("token"),window.history.replaceState({},"",e.toString()),t):""}catch{return""}}function hN(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const mN=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gN=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,yN={};function oy(e,t){return(yN.jsx?gN:mN).test(e)}const vN=/[ \t\n\f\r]/g;function xN(e){return typeof e=="object"?e.type==="text"?ly(e.value):!1:ly(e)}function ly(e){return e.replace(vN,"")===""}class Cl{constructor(t,n,o){this.normal=n,this.property=t,o&&(this.space=o)}}Cl.prototype.normal={};Cl.prototype.property={};Cl.prototype.space=void 0;function uk(e,t){const n={},o={};for(const l of e)Object.assign(n,l.property),Object.assign(o,l.normal);return new Cl(n,o,t)}function Gf(e){return e.toLowerCase()}class Vt{constructor(t,n){this.attribute=n,this.property=t}}Vt.prototype.attribute="";Vt.prototype.booleanish=!1;Vt.prototype.boolean=!1;Vt.prototype.commaOrSpaceSeparated=!1;Vt.prototype.commaSeparated=!1;Vt.prototype.defined=!1;Vt.prototype.mustUseProperty=!1;Vt.prototype.number=!1;Vt.prototype.overloadedBoolean=!1;Vt.prototype.property="";Vt.prototype.spaceSeparated=!1;Vt.prototype.space=void 0;let wN=0;const Me=hi(),ct=hi(),qf=hi(),ne=hi(),Qe=hi(),Xi=hi(),Kt=hi();function hi(){return 2**++wN}const Kf=Object.freeze(Object.defineProperty({__proto__:null,boolean:Me,booleanish:ct,commaOrSpaceSeparated:Kt,commaSeparated:Xi,number:ne,overloadedBoolean:qf,spaceSeparated:Qe},Symbol.toStringTag,{value:"Module"})),cf=Object.keys(Kf);class Zd extends Vt{constructor(t,n,o,l){let s=-1;if(super(t,n),sy(this,"space",l),typeof o=="number")for(;++s<cf.length;){const u=cf[s];sy(this,cf[s],(o&Kf[u])===Kf[u])}}}Zd.prototype.defined=!0;function sy(e,t,n){n&&(e[t]=n)}function so(e){const t={},n={};for(const[o,l]of Object.entries(e.properties)){const s=new Zd(o,e.transform(e.attributes||{},o),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(s.mustUseProperty=!0),t[o]=s,n[Gf(o)]=o,n[Gf(s.attribute)]=o}return new Cl(t,n,e.space)}const ck=so({properties:{ariaActiveDescendant:null,ariaAtomic:ct,ariaAutoComplete:null,ariaBusy:ct,ariaChecked:ct,ariaColCount:ne,ariaColIndex:ne,ariaColSpan:ne,ariaControls:Qe,ariaCurrent:null,ariaDescribedBy:Qe,ariaDetails:null,ariaDisabled:ct,ariaDropEffect:Qe,ariaErrorMessage:null,ariaExpanded:ct,ariaFlowTo:Qe,ariaGrabbed:ct,ariaHasPopup:null,ariaHidden:ct,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Qe,ariaLevel:ne,ariaLive:null,ariaModal:ct,ariaMultiLine:ct,ariaMultiSelectable:ct,ariaOrientation:null,ariaOwns:Qe,ariaPlaceholder:null,ariaPosInSet:ne,ariaPressed:ct,ariaReadOnly:ct,ariaRelevant:null,ariaRequired:ct,ariaRoleDescription:Qe,ariaRowCount:ne,ariaRowIndex:ne,ariaRowSpan:ne,ariaSelected:ct,ariaSetSize:ne,ariaSort:null,ariaValueMax:ne,ariaValueMin:ne,ariaValueNow:ne,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function fk(e,t){return t in e?e[t]:t}function dk(e,t){return fk(e,t.toLowerCase())}const kN=so({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xi,acceptCharset:Qe,accessKey:Qe,action:null,allow:null,allowFullScreen:Me,allowPaymentRequest:Me,allowUserMedia:Me,alt:null,as:null,async:Me,autoCapitalize:null,autoComplete:Qe,autoFocus:Me,autoPlay:Me,blocking:Qe,capture:null,charSet:null,checked:Me,cite:null,className:Qe,cols:ne,colSpan:null,content:null,contentEditable:ct,controls:Me,controlsList:Qe,coords:ne|Xi,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Me,defer:Me,dir:null,dirName:null,disabled:Me,download:qf,draggable:ct,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Me,formTarget:null,headers:Qe,height:ne,hidden:qf,high:ne,href:null,hrefLang:null,htmlFor:Qe,httpEquiv:Qe,id:null,imageSizes:null,imageSrcSet:null,inert:Me,inputMode:null,integrity:null,is:null,isMap:Me,itemId:null,itemProp:Qe,itemRef:Qe,itemScope:Me,itemType:Qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Me,low:ne,manifest:null,max:null,maxLength:ne,media:null,method:null,min:null,minLength:ne,multiple:Me,muted:Me,name:null,nonce:null,noModule:Me,noValidate:Me,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:Me,optimum:ne,pattern:null,ping:Qe,placeholder:null,playsInline:Me,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Me,referrerPolicy:null,rel:Qe,required:Me,reversed:Me,rows:ne,rowSpan:ne,sandbox:Qe,scope:null,scoped:Me,seamless:Me,selected:Me,shadowRootClonable:Me,shadowRootDelegatesFocus:Me,shadowRootMode:null,shape:null,size:ne,sizes:null,slot:null,span:ne,spellCheck:ct,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ne,step:null,style:null,tabIndex:ne,target:null,title:null,translate:null,type:null,typeMustMatch:Me,useMap:null,value:ct,width:ne,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Qe,axis:null,background:null,bgColor:null,border:ne,borderColor:null,bottomMargin:ne,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Me,declare:Me,event:null,face:null,frame:null,frameBorder:null,hSpace:ne,leftMargin:ne,link:null,longDesc:null,lowSrc:null,marginHeight:ne,marginWidth:ne,noResize:Me,noHref:Me,noShade:Me,noWrap:Me,object:null,profile:null,prompt:null,rev:null,rightMargin:ne,rules:null,scheme:null,scrolling:ct,standby:null,summary:null,text:null,topMargin:ne,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ne,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Me,disableRemotePlayback:Me,prefix:null,property:null,results:ne,security:null,unselectable:null},space:"html",transform:dk}),bN=so({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:Kt,accentHeight:ne,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ne,amplitude:ne,arabicForm:null,ascent:ne,attributeName:null,attributeType:null,azimuth:ne,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ne,by:null,calcMode:null,capHeight:ne,className:Qe,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:ne,diffuseConstant:ne,direction:null,display:null,dur:null,divisor:ne,dominantBaseline:null,download:Me,dx:null,dy:null,edgeMode:null,editable:null,elevation:ne,enableBackground:null,end:null,event:null,exponent:ne,externalResourcesRequired:null,fill:null,fillOpacity:ne,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:Xi,g2:Xi,glyphName:Xi,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ne,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ne,horizOriginX:ne,horizOriginY:ne,id:null,ideographic:ne,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ne,k:ne,k1:ne,k2:ne,k3:ne,k4:ne,kernelMatrix:Kt,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ne,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:ne,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:ne,overlineThickness:ne,paintOrder:null,panose1:null,path:null,pathLength:ne,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ne,pointsAtY:ne,pointsAtZ:ne,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Kt,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Kt,rev:Kt,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Kt,requiredFeatures:Kt,requiredFonts:Kt,requiredFormats:Kt,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:ne,specularExponent:ne,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ne,strikethroughThickness:ne,string:null,stroke:null,strokeDashArray:Kt,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ne,strokeOpacity:ne,strokeWidth:null,style:null,surfaceScale:ne,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Kt,tabIndex:ne,tableValues:null,target:null,targetX:ne,targetY:ne,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Kt,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ne,underlineThickness:ne,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ne,values:null,vAlphabetic:ne,vMathematical:ne,vectorEffect:null,vHanging:ne,vIdeographic:ne,version:null,vertAdvY:ne,vertOriginX:ne,vertOriginY:ne,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ne,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:fk}),pk=so({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()}}),hk=so({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:dk}),mk=so({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),SN={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},CN=/[A-Z]/g,ay=/-[a-z]/g,_N=/^data[-\w.:]+$/i;function EN(e,t){const n=Gf(t);let o=t,l=Vt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&_N.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(ay,TN);o="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!ay.test(s)){let u=s.replace(CN,RN);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=Zd}return new l(o,t)}function RN(e){return"-"+e.toLowerCase()}function TN(e){return e.charAt(1).toUpperCase()}const PN=uk([ck,kN,pk,hk,mk],"html"),Gd=uk([ck,bN,pk,hk,mk],"svg");function NN(e){return e.join(" ").trim()}var Hi={},ff,uy;function AN(){if(uy)return ff;uy=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,c=/^\s+|\s+$/g,d=`
53
+ `,p="/",h="*",g="",x="comment",v="declaration";function S(E,R){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];R=R||{};var A=1,N=1;function F(te){var K=te.match(t);K&&(A+=K.length);var oe=te.lastIndexOf(d);N=~oe?te.length-oe:N+te.length}function B(){var te={line:A,column:N};return function(K){return K.position=new I(te),Y(),K}}function I(te){this.start=te,this.end={line:A,column:N},this.source=R.source}I.prototype.content=E;function W(te){var K=new Error(R.source+":"+A+":"+N+": "+te);if(K.reason=te,K.filename=R.source,K.line=A,K.column=N,K.source=E,!R.silent)throw K}function V(te){var K=te.exec(E);if(K){var oe=K[0];return F(oe),E=E.slice(oe.length),K}}function Y(){V(n)}function D(te){var K;for(te=te||[];K=q();)K!==!1&&te.push(K);return te}function q(){var te=B();if(!(p!=E.charAt(0)||h!=E.charAt(1))){for(var K=2;g!=E.charAt(K)&&(h!=E.charAt(K)||p!=E.charAt(K+1));)++K;if(K+=2,g===E.charAt(K-1))return W("End of comment missing");var oe=E.slice(2,K-2);return N+=2,F(oe),E=E.slice(K),N+=2,te({type:x,comment:oe})}}function J(){var te=B(),K=V(o);if(K){if(q(),!V(l))return W("property missing ':'");var oe=V(s),ae=te({type:v,property:C(K[0].replace(e,g)),value:oe?C(oe[0].replace(e,g)):g});return V(u),ae}}function ue(){var te=[];D(te);for(var K;K=J();)K!==!1&&(te.push(K),D(te));return te}return Y(),ue()}function C(E){return E?E.replace(c,g):g}return ff=S,ff}var cy;function IN(){if(cy)return Hi;cy=1;var e=Hi&&Hi.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=n;const t=e(AN());function n(o,l){let s=null;if(!o||typeof o!="string")return s;const u=(0,t.default)(o),c=typeof l=="function";return u.forEach(d=>{if(d.type!=="declaration")return;const{property:p,value:h}=d;c?l(p,h,d):h&&(s=s||{},s[p]=h)}),s}return Hi}var Qo={},fy;function ON(){if(fy)return Qo;fy=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,s=function(p){return!p||n.test(p)||e.test(p)},u=function(p,h){return h.toUpperCase()},c=function(p,h){return"".concat(h,"-")},d=function(p,h){return h===void 0&&(h={}),s(p)?p:(p=p.toLowerCase(),h.reactCompat?p=p.replace(l,c):p=p.replace(o,c),p.replace(t,u))};return Qo.camelCase=d,Qo}var Jo,dy;function MN(){if(dy)return Jo;dy=1;var e=Jo&&Jo.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(IN()),n=ON();function o(l,s){var u={};return!l||typeof l!="string"||(0,t.default)(l,function(c,d){c&&d&&(u[(0,n.camelCase)(c,s)]=d)}),u}return o.default=o,Jo=o,Jo}var DN=MN();const jN=yl(DN),gk=yk("end"),qd=yk("start");function yk(e){return t;function t(n){const o=n&&n.position&&n.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function LN(e){const t=qd(e),n=gk(e);if(t&&n)return{start:t,end:n}}function ol(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?py(e.position):"start"in e||"end"in e?py(e):"line"in e||"column"in e?Yf(e):""}function Yf(e){return hy(e&&e.line)+":"+hy(e&&e.column)}function py(e){return Yf(e&&e.start)+"-"+Yf(e&&e.end)}function hy(e){return e&&typeof e=="number"?e:1}class Tt extends Error{constructor(t,n,o){super(),typeof n=="string"&&(o=n,n=void 0);let l="",s={},u=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?l=t:!s.cause&&t&&(u=!0,l=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof o=="string"){const d=o.indexOf(":");d===-1?s.ruleId=o:(s.source=o.slice(0,d),s.ruleId=o.slice(d+1))}if(!s.place&&s.ancestors&&s.ancestors){const d=s.ancestors[s.ancestors.length-1];d&&(s.place=d.position)}const c=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=c?c.column:void 0,this.fatal=void 0,this.file="",this.message=l,this.line=c?c.line:void 0,this.name=ol(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=u&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Tt.prototype.file="";Tt.prototype.name="";Tt.prototype.reason="";Tt.prototype.message="";Tt.prototype.stack="";Tt.prototype.column=void 0;Tt.prototype.line=void 0;Tt.prototype.ancestors=void 0;Tt.prototype.cause=void 0;Tt.prototype.fatal=void 0;Tt.prototype.place=void 0;Tt.prototype.ruleId=void 0;Tt.prototype.source=void 0;const Kd={}.hasOwnProperty,zN=new Map,FN=/[A-Z]/g,$N=new Set(["table","tbody","thead","tfoot","tr"]),BN=new Set(["td","th"]),vk="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function UN(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let o;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=YN(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=KN(n,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Gd:PN,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=xk(l,e,void 0);return s&&typeof s!="string"?s:l.create(e,l.Fragment,{children:s||void 0},void 0)}function xk(e,t,n){if(t.type==="element")return VN(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return WN(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ZN(e,t,n);if(t.type==="mdxjsEsm")return HN(e,t);if(t.type==="root")return GN(e,t,n);if(t.type==="text")return qN(e,t)}function VN(e,t,n){const o=e.schema;let l=o;t.tagName.toLowerCase()==="svg"&&o.space==="html"&&(l=Gd,e.schema=l),e.ancestors.push(t);const s=kk(e,t.tagName,!1),u=XN(e,t);let c=Xd(e,t);return $N.has(t.tagName)&&(c=c.filter(function(d){return typeof d=="string"?!xN(d):!0})),wk(e,u,s,t),Yd(u,c),e.ancestors.pop(),e.schema=o,e.create(t,s,u,n)}function WN(e,t){if(t.data&&t.data.estree&&e.evaluater){const o=t.data.estree.body[0];return o.type,e.evaluater.evaluateExpression(o.expression)}ml(e,t.position)}function HN(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ml(e,t.position)}function ZN(e,t,n){const o=e.schema;let l=o;t.name==="svg"&&o.space==="html"&&(l=Gd,e.schema=l),e.ancestors.push(t);const s=t.name===null?e.Fragment:kk(e,t.name,!0),u=QN(e,t),c=Xd(e,t);return wk(e,u,s,t),Yd(u,c),e.ancestors.pop(),e.schema=o,e.create(t,s,u,n)}function GN(e,t,n){const o={};return Yd(o,Xd(e,t)),e.create(t,e.Fragment,o,n)}function qN(e,t){return t.value}function wk(e,t,n,o){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=o)}function Yd(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function KN(e,t,n){return o;function o(l,s,u,c){const p=Array.isArray(u.children)?n:t;return c?p(s,u,c):p(s,u)}}function YN(e,t){return n;function n(o,l,s,u){const c=Array.isArray(s.children),d=qd(o);return t(l,s,u,c,{columnNumber:d?d.column-1:void 0,fileName:e,lineNumber:d?d.line:void 0},void 0)}}function XN(e,t){const n={};let o,l;for(l in t.properties)if(l!=="children"&&Kd.call(t.properties,l)){const s=JN(e,l,t.properties[l]);if(s){const[u,c]=s;e.tableCellAlignToStyle&&u==="align"&&typeof c=="string"&&BN.has(t.tagName)?o=c:n[u]=c}}if(o){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return n}function QN(e,t){const n={};for(const o of t.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&e.evaluater){const s=o.data.estree.body[0];s.type;const u=s.expression;u.type;const c=u.properties[0];c.type,Object.assign(n,e.evaluater.evaluateExpression(c.argument))}else ml(e,t.position);else{const l=o.name;let s;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&e.evaluater){const c=o.value.data.estree.body[0];c.type,s=e.evaluater.evaluateExpression(c.expression)}else ml(e,t.position);else s=o.value===null?!0:o.value;n[l]=s}return n}function Xd(e,t){const n=[];let o=-1;const l=e.passKeys?new Map:zN;for(;++o<t.children.length;){const s=t.children[o];let u;if(e.passKeys){const d=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(d){const p=l.get(d)||0;u=d+"-"+p,l.set(d,p+1)}}const c=xk(e,s,u);c!==void 0&&n.push(c)}return n}function JN(e,t,n){const o=EN(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=o.commaSeparated?hN(n):NN(n)),o.property==="style"){let l=typeof n=="object"?n:eA(e,String(n));return e.stylePropertyNameCase==="css"&&(l=tA(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&o.space?SN[o.property]||o.property:o.attribute,n]}}function eA(e,t){try{return jN(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const o=n,l=new Tt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=vk+"#cannot-parse-style-attribute",l}}function kk(e,t,n){let o;if(!n)o={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let s=-1,u;for(;++s<l.length;){const c=oy(l[s])?{type:"Identifier",name:l[s]}:{type:"Literal",value:l[s]};u=u?{type:"MemberExpression",object:u,property:c,computed:!!(s&&c.type==="Literal"),optional:!1}:c}o=u}else o=oy(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(o.type==="Literal"){const l=o.value;return Kd.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(o);ml(e)}function ml(e,t){const n=new Tt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=vk+"#cannot-handle-mdx-estrees-without-createevaluater",n}function tA(e){const t={};let n;for(n in e)Kd.call(e,n)&&(t[nA(n)]=e[n]);return t}function nA(e){let t=e.replace(FN,rA);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function rA(e){return"-"+e.toLowerCase()}const df={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},iA={};function Qd(e,t){const n=iA,o=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,l=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return bk(e,o,l)}function bk(e,t,n){if(oA(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return my(e.children,t,n)}return Array.isArray(e)?my(e,t,n):""}function my(e,t,n){const o=[];let l=-1;for(;++l<e.length;)o[l]=bk(e[l],t,n);return o.join("")}function oA(e){return!!(e&&typeof e=="object")}const gy=document.createElement("i");function Jd(e){const t="&"+e+";";gy.innerHTML=t;const n=gy.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Qt(e,t,n,o){const l=e.length;let s=0,u;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,n=n>0?n:0,o.length<1e4)u=Array.from(o),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);s<o.length;)u=o.slice(s,s+1e4),u.unshift(t,0),e.splice(...u),s+=1e4,t+=1e4}function sn(e,t){return e.length>0?(Qt(e,e.length,0,t),e):t}const yy={}.hasOwnProperty;function Sk(e){const t={};let n=-1;for(;++n<e.length;)lA(t,e[n]);return t}function lA(e,t){let n;for(n in t){const l=(yy.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let u;if(s)for(u in s){yy.call(l,u)||(l[u]=[]);const c=s[u];sA(l[u],Array.isArray(c)?c:c?[c]:[])}}}function sA(e,t){let n=-1;const o=[];for(;++n<t.length;)(t[n].add==="after"?e:o).push(t[n]);Qt(e,0,0,o)}function Ck(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function bn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const It=Br(/[A-Za-z]/),Rt=Br(/[\dA-Za-z]/),aA=Br(/[#-'*+\--9=?A-Z^-~]/);function Ca(e){return e!==null&&(e<32||e===127)}const Xf=Br(/\d/),uA=Br(/[\dA-Fa-f]/),cA=Br(/[!-/:-@[-`{-~]/);function _e(e){return e!==null&&e<-2}function Ye(e){return e!==null&&(e<0||e===32)}function $e(e){return e===-2||e===-1||e===32}const Za=Br(new RegExp("\\p{P}|\\p{S}","u")),ci=Br(/\s/);function Br(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ao(e){const t=[];let n=-1,o=0,l=0;for(;++n<e.length;){const s=e.charCodeAt(n);let u="";if(s===37&&Rt(e.charCodeAt(n+1))&&Rt(e.charCodeAt(n+2)))l=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(u=String.fromCharCode(s));else if(s>55295&&s<57344){const c=e.charCodeAt(n+1);s<56320&&c>56319&&c<57344?(u=String.fromCharCode(s,c),l=1):u="�"}else u=String.fromCharCode(s);u&&(t.push(e.slice(o,n),encodeURIComponent(u)),o=n+l+1,u=""),l&&(n+=l,l=0)}return t.join("")+e.slice(o)}function Ue(e,t,n,o){const l=o?o-1:Number.POSITIVE_INFINITY;let s=0;return u;function u(d){return $e(d)?(e.enter(n),c(d)):t(d)}function c(d){return $e(d)&&s++<l?(e.consume(d),c):(e.exit(n),t(d))}}const fA={tokenize:dA};function dA(e){const t=e.attempt(this.parser.constructs.contentInitial,o,l);let n;return t;function o(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),Ue(e,t,"linePrefix")}function l(c){return e.enter("paragraph"),s(c)}function s(c){const d=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=d),n=d,u(c)}function u(c){if(c===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(c);return}return _e(c)?(e.consume(c),e.exit("chunkText"),s):(e.consume(c),u)}}const pA={tokenize:hA},vy={tokenize:mA};function hA(e){const t=this,n=[];let o=0,l,s,u;return c;function c(N){if(o<n.length){const F=n[o];return t.containerState=F[1],e.attempt(F[0].continuation,d,p)(N)}return p(N)}function d(N){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&A();const F=t.events.length;let B=F,I;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){I=t.events[B][1].end;break}R(o);let W=F;for(;W<t.events.length;)t.events[W][1].end={...I},W++;return Qt(t.events,B+1,0,t.events.slice(F)),t.events.length=W,p(N)}return c(N)}function p(N){if(o===n.length){if(!l)return x(N);if(l.currentConstruct&&l.currentConstruct.concrete)return S(N);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(vy,h,g)(N)}function h(N){return l&&A(),R(o),x(N)}function g(N){return t.parser.lazy[t.now().line]=o!==n.length,u=t.now().offset,S(N)}function x(N){return t.containerState={},e.attempt(vy,v,S)(N)}function v(N){return o++,n.push([t.currentConstruct,t.containerState]),x(N)}function S(N){if(N===null){l&&A(),R(0),e.consume(N);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:s}),C(N)}function C(N){if(N===null){E(e.exit("chunkFlow"),!0),R(0),e.consume(N);return}return _e(N)?(e.consume(N),E(e.exit("chunkFlow")),o=0,t.interrupt=void 0,c):(e.consume(N),C)}function E(N,F){const B=t.sliceStream(N);if(F&&B.push(null),N.previous=s,s&&(s.next=N),s=N,l.defineSkip(N.start),l.write(B),t.parser.lazy[N.start.line]){let I=l.events.length;for(;I--;)if(l.events[I][1].start.offset<u&&(!l.events[I][1].end||l.events[I][1].end.offset>u))return;const W=t.events.length;let V=W,Y,D;for(;V--;)if(t.events[V][0]==="exit"&&t.events[V][1].type==="chunkFlow"){if(Y){D=t.events[V][1].end;break}Y=!0}for(R(o),I=W;I<t.events.length;)t.events[I][1].end={...D},I++;Qt(t.events,V+1,0,t.events.slice(W)),t.events.length=I}}function R(N){let F=n.length;for(;F-- >N;){const B=n[F];t.containerState=B[1],B[0].exit.call(t,e)}n.length=N}function A(){l.write([null]),s=void 0,l=void 0,t.containerState._closeFlow=void 0}}function mA(e,t,n){return Ue(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function no(e){if(e===null||Ye(e)||ci(e))return 1;if(Za(e))return 2}function Ga(e,t,n){const o=[];let l=-1;for(;++l<e.length;){const s=e[l].resolveAll;s&&!o.includes(s)&&(t=s(t,n),o.push(s))}return t}const Qf={name:"attention",resolveAll:gA,tokenize:yA};function gA(e,t){let n=-1,o,l,s,u,c,d,p,h;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(o=n;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&t.sliceSerialize(e[o][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[o][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;d=e[o][1].end.offset-e[o][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const g={...e[o][1].end},x={...e[n][1].start};xy(g,-d),xy(x,d),u={type:d>1?"strongSequence":"emphasisSequence",start:g,end:{...e[o][1].end}},c={type:d>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:x},s={type:d>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[n][1].start}},l={type:d>1?"strong":"emphasis",start:{...u.start},end:{...c.end}},e[o][1].end={...u.start},e[n][1].start={...c.end},p=[],e[o][1].end.offset-e[o][1].start.offset&&(p=sn(p,[["enter",e[o][1],t],["exit",e[o][1],t]])),p=sn(p,[["enter",l,t],["enter",u,t],["exit",u,t],["enter",s,t]]),p=sn(p,Ga(t.parser.constructs.insideSpan.null,e.slice(o+1,n),t)),p=sn(p,[["exit",s,t],["enter",c,t],["exit",c,t],["exit",l,t]]),e[n][1].end.offset-e[n][1].start.offset?(h=2,p=sn(p,[["enter",e[n][1],t],["exit",e[n][1],t]])):h=0,Qt(e,o-1,n-o+3,p),n=o+p.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function yA(e,t){const n=this.parser.constructs.attentionMarkers.null,o=this.previous,l=no(o);let s;return u;function u(d){return s=d,e.enter("attentionSequence"),c(d)}function c(d){if(d===s)return e.consume(d),c;const p=e.exit("attentionSequence"),h=no(d),g=!h||h===2&&l||n.includes(d),x=!l||l===2&&h||n.includes(o);return p._open=!!(s===42?g:g&&(l||!x)),p._close=!!(s===42?x:x&&(h||!g)),t(d)}}function xy(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const vA={name:"autolink",tokenize:xA};function xA(e,t,n){let o=0;return l;function l(v){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(v){return It(v)?(e.consume(v),u):v===64?n(v):p(v)}function u(v){return v===43||v===45||v===46||Rt(v)?(o=1,c(v)):p(v)}function c(v){return v===58?(e.consume(v),o=0,d):(v===43||v===45||v===46||Rt(v))&&o++<32?(e.consume(v),c):(o=0,p(v))}function d(v){return v===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),t):v===null||v===32||v===60||Ca(v)?n(v):(e.consume(v),d)}function p(v){return v===64?(e.consume(v),h):aA(v)?(e.consume(v),p):n(v)}function h(v){return Rt(v)?g(v):n(v)}function g(v){return v===46?(e.consume(v),o=0,h):v===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),t):x(v)}function x(v){if((v===45||Rt(v))&&o++<63){const S=v===45?x:g;return e.consume(v),S}return n(v)}}const _l={partial:!0,tokenize:wA};function wA(e,t,n){return o;function o(s){return $e(s)?Ue(e,l,"linePrefix")(s):l(s)}function l(s){return s===null||_e(s)?t(s):n(s)}}const _k={continuation:{tokenize:bA},exit:SA,name:"blockQuote",tokenize:kA};function kA(e,t,n){const o=this;return l;function l(u){if(u===62){const c=o.containerState;return c.open||(e.enter("blockQuote",{_container:!0}),c.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),s}return n(u)}function s(u){return $e(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function bA(e,t,n){const o=this;return l;function l(u){return $e(u)?Ue(e,s,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):s(u)}function s(u){return e.attempt(_k,t,n)(u)}}function SA(e){e.exit("blockQuote")}const Ek={name:"characterEscape",tokenize:CA};function CA(e,t,n){return o;function o(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),l}function l(s){return cA(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const Rk={name:"characterReference",tokenize:_A};function _A(e,t,n){const o=this;let l=0,s,u;return c;function c(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),d}function d(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),s=31,u=Rt,h(g))}function p(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,u=uA,h):(e.enter("characterReferenceValue"),s=7,u=Xf,h(g))}function h(g){if(g===59&&l){const x=e.exit("characterReferenceValue");return u===Rt&&!Jd(o.sliceSerialize(x))?n(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(g)&&l++<s?(e.consume(g),h):n(g)}}const wy={partial:!0,tokenize:RA},ky={concrete:!0,name:"codeFenced",tokenize:EA};function EA(e,t,n){const o=this,l={partial:!0,tokenize:B};let s=0,u=0,c;return d;function d(I){return p(I)}function p(I){const W=o.events[o.events.length-1];return s=W&&W[1].type==="linePrefix"?W[2].sliceSerialize(W[1],!0).length:0,c=I,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),h(I)}function h(I){return I===c?(u++,e.consume(I),h):u<3?n(I):(e.exit("codeFencedFenceSequence"),$e(I)?Ue(e,g,"whitespace")(I):g(I))}function g(I){return I===null||_e(I)?(e.exit("codeFencedFence"),o.interrupt?t(I):e.check(wy,C,F)(I)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),x(I))}function x(I){return I===null||_e(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(I)):$e(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Ue(e,v,"whitespace")(I)):I===96&&I===c?n(I):(e.consume(I),x)}function v(I){return I===null||_e(I)?g(I):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(I))}function S(I){return I===null||_e(I)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(I)):I===96&&I===c?n(I):(e.consume(I),S)}function C(I){return e.attempt(l,F,E)(I)}function E(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),R}function R(I){return s>0&&$e(I)?Ue(e,A,"linePrefix",s+1)(I):A(I)}function A(I){return I===null||_e(I)?e.check(wy,C,F)(I):(e.enter("codeFlowValue"),N(I))}function N(I){return I===null||_e(I)?(e.exit("codeFlowValue"),A(I)):(e.consume(I),N)}function F(I){return e.exit("codeFenced"),t(I)}function B(I,W,V){let Y=0;return D;function D(K){return I.enter("lineEnding"),I.consume(K),I.exit("lineEnding"),q}function q(K){return I.enter("codeFencedFence"),$e(K)?Ue(I,J,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):J(K)}function J(K){return K===c?(I.enter("codeFencedFenceSequence"),ue(K)):V(K)}function ue(K){return K===c?(Y++,I.consume(K),ue):Y>=u?(I.exit("codeFencedFenceSequence"),$e(K)?Ue(I,te,"whitespace")(K):te(K)):V(K)}function te(K){return K===null||_e(K)?(I.exit("codeFencedFence"),W(K)):V(K)}}}function RA(e,t,n){const o=this;return l;function l(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s)}function s(u){return o.parser.lazy[o.now().line]?n(u):t(u)}}const pf={name:"codeIndented",tokenize:PA},TA={partial:!0,tokenize:NA};function PA(e,t,n){const o=this;return l;function l(p){return e.enter("codeIndented"),Ue(e,s,"linePrefix",5)(p)}function s(p){const h=o.events[o.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?u(p):n(p)}function u(p){return p===null?d(p):_e(p)?e.attempt(TA,u,d)(p):(e.enter("codeFlowValue"),c(p))}function c(p){return p===null||_e(p)?(e.exit("codeFlowValue"),u(p)):(e.consume(p),c)}function d(p){return e.exit("codeIndented"),t(p)}}function NA(e,t,n){const o=this;return l;function l(u){return o.parser.lazy[o.now().line]?n(u):_e(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):Ue(e,s,"linePrefix",5)(u)}function s(u){const c=o.events[o.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):_e(u)?l(u):n(u)}}const AA={name:"codeText",previous:OA,resolve:IA,tokenize:MA};function IA(e){let t=e.length-4,n=3,o,l;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(o=n;++o<t;)if(e[o][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(o=n-1,t++;++o<=t;)l===void 0?o!==t&&e[o][1].type!=="lineEnding"&&(l=o):(o===t||e[o][1].type==="lineEnding")&&(e[l][1].type="codeTextData",o!==l+2&&(e[l][1].end=e[o-1][1].end,e.splice(l+2,o-l-2),t-=o-l-2,o=l+2),l=void 0);return e}function OA(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function MA(e,t,n){let o=0,l,s;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),c(g)}function c(g){return g===96?(e.consume(g),o++,c):(e.exit("codeTextSequence"),d(g))}function d(g){return g===null?n(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),d):g===96?(s=e.enter("codeTextSequence"),l=0,h(g)):_e(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("codeTextData"),p(g))}function p(g){return g===null||g===32||g===96||_e(g)?(e.exit("codeTextData"),d(g)):(e.consume(g),p)}function h(g){return g===96?(e.consume(g),l++,h):l===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(g)):(s.type="codeTextData",p(g))}}class DA{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const o=n??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(t,o):t>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(t,n,o){const l=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return o&&el(this.left,o),s.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),el(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),el(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);el(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);el(this.left,n.reverse())}}}function el(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Tk(e){const t={};let n=-1,o,l,s,u,c,d,p;const h=new DA(e);for(;++n<h.length;){for(;n in t;)n=t[n];if(o=h.get(n),n&&o[1].type==="chunkFlow"&&h.get(n-1)[1].type==="listItemPrefix"&&(d=o[1]._tokenizer.events,s=0,s<d.length&&d[s][1].type==="lineEndingBlank"&&(s+=2),s<d.length&&d[s][1].type==="content"))for(;++s<d.length&&d[s][1].type!=="content";)d[s][1].type==="chunkText"&&(d[s][1]._isInFirstContentOfListItem=!0,s++);if(o[0]==="enter")o[1].contentType&&(Object.assign(t,jA(h,n)),n=t[n],p=!0);else if(o[1]._container){for(s=n,l=void 0;s--;)if(u=h.get(s),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(l&&(h.get(l)[1].type="lineEndingBlank"),u[1].type="lineEnding",l=s);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;l&&(o[1].end={...h.get(l)[1].start},c=h.slice(l,n),c.unshift(o),h.splice(l,n-l+1,c))}}return Qt(e,0,Number.POSITIVE_INFINITY,h.slice(0)),!p}function jA(e,t){const n=e.get(t)[1],o=e.get(t)[2];let l=t-1;const s=[];let u=n._tokenizer;u||(u=o.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const c=u.events,d=[],p={};let h,g,x=-1,v=n,S=0,C=0;const E=[C];for(;v;){for(;e.get(++l)[1]!==v;);s.push(l),v._tokenizer||(h=o.sliceStream(v),v.next||h.push(null),g&&u.defineSkip(v.start),v._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(h),v._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=n;++x<c.length;)c[x][0]==="exit"&&c[x-1][0]==="enter"&&c[x][1].type===c[x-1][1].type&&c[x][1].start.line!==c[x][1].end.line&&(C=x+1,E.push(C),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(u.events=[],v?(v._tokenizer=void 0,v.previous=void 0):E.pop(),x=E.length;x--;){const R=c.slice(E[x],E[x+1]),A=s.pop();d.push([A,A+R.length-1]),e.splice(A,2,R)}for(d.reverse(),x=-1;++x<d.length;)p[S+d[x][0]]=S+d[x][1],S+=d[x][1]-d[x][0]-1;return p}const LA={resolve:FA,tokenize:$A},zA={partial:!0,tokenize:BA};function FA(e){return Tk(e),e}function $A(e,t){let n;return o;function o(c){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),l(c)}function l(c){return c===null?s(c):_e(c)?e.check(zA,u,s)(c):(e.consume(c),l)}function s(c){return e.exit("chunkContent"),e.exit("content"),t(c)}function u(c){return e.consume(c),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,l}}function BA(e,t,n){const o=this;return l;function l(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Ue(e,s,"linePrefix")}function s(u){if(u===null||_e(u))return n(u);const c=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?t(u):e.interrupt(o.parser.constructs.flow,n,t)(u)}}function Pk(e,t,n,o,l,s,u,c,d){const p=d||Number.POSITIVE_INFINITY;let h=0;return g;function g(R){return R===60?(e.enter(o),e.enter(l),e.enter(s),e.consume(R),e.exit(s),x):R===null||R===32||R===41||Ca(R)?n(R):(e.enter(o),e.enter(u),e.enter(c),e.enter("chunkString",{contentType:"string"}),C(R))}function x(R){return R===62?(e.enter(s),e.consume(R),e.exit(s),e.exit(l),e.exit(o),t):(e.enter(c),e.enter("chunkString",{contentType:"string"}),v(R))}function v(R){return R===62?(e.exit("chunkString"),e.exit(c),x(R)):R===null||R===60||_e(R)?n(R):(e.consume(R),R===92?S:v)}function S(R){return R===60||R===62||R===92?(e.consume(R),v):v(R)}function C(R){return!h&&(R===null||R===41||Ye(R))?(e.exit("chunkString"),e.exit(c),e.exit(u),e.exit(o),t(R)):h<p&&R===40?(e.consume(R),h++,C):R===41?(e.consume(R),h--,C):R===null||R===32||R===40||Ca(R)?n(R):(e.consume(R),R===92?E:C)}function E(R){return R===40||R===41||R===92?(e.consume(R),C):C(R)}}function Nk(e,t,n,o,l,s){const u=this;let c=0,d;return p;function p(v){return e.enter(o),e.enter(l),e.consume(v),e.exit(l),e.enter(s),h}function h(v){return c>999||v===null||v===91||v===93&&!d||v===94&&!c&&"_hiddenFootnoteSupport"in u.parser.constructs?n(v):v===93?(e.exit(s),e.enter(l),e.consume(v),e.exit(l),e.exit(o),t):_e(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||_e(v)||c++>999?(e.exit("chunkString"),h(v)):(e.consume(v),d||(d=!$e(v)),v===92?x:g)}function x(v){return v===91||v===92||v===93?(e.consume(v),c++,g):g(v)}}function Ak(e,t,n,o,l,s){let u;return c;function c(x){return x===34||x===39||x===40?(e.enter(o),e.enter(l),e.consume(x),e.exit(l),u=x===40?41:x,d):n(x)}function d(x){return x===u?(e.enter(l),e.consume(x),e.exit(l),e.exit(o),t):(e.enter(s),p(x))}function p(x){return x===u?(e.exit(s),d(u)):x===null?n(x):_e(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),Ue(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===u||x===null||_e(x)?(e.exit("chunkString"),p(x)):(e.consume(x),x===92?g:h)}function g(x){return x===u||x===92?(e.consume(x),h):h(x)}}function ll(e,t){let n;return o;function o(l){return _e(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n=!0,o):$e(l)?Ue(e,o,n?"linePrefix":"lineSuffix")(l):t(l)}}const UA={name:"definition",tokenize:WA},VA={partial:!0,tokenize:HA};function WA(e,t,n){const o=this;let l;return s;function s(v){return e.enter("definition"),u(v)}function u(v){return Nk.call(o,e,c,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function c(v){return l=bn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),d):n(v)}function d(v){return Ye(v)?ll(e,p)(v):p(v)}function p(v){return Pk(e,h,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function h(v){return e.attempt(VA,g,g)(v)}function g(v){return $e(v)?Ue(e,x,"whitespace")(v):x(v)}function x(v){return v===null||_e(v)?(e.exit("definition"),o.parser.defined.push(l),t(v)):n(v)}}function HA(e,t,n){return o;function o(c){return Ye(c)?ll(e,l)(c):n(c)}function l(c){return Ak(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(c)}function s(c){return $e(c)?Ue(e,u,"whitespace")(c):u(c)}function u(c){return c===null||_e(c)?t(c):n(c)}}const ZA={name:"hardBreakEscape",tokenize:GA};function GA(e,t,n){return o;function o(s){return e.enter("hardBreakEscape"),e.consume(s),l}function l(s){return _e(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const qA={name:"headingAtx",resolve:KA,tokenize:YA};function KA(e,t){let n=e.length-2,o=3,l,s;return e[o][1].type==="whitespace"&&(o+=2),n-2>o&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(o===n-1||n-4>o&&e[n-2][1].type==="whitespace")&&(n-=o+1===n?2:4),n>o&&(l={type:"atxHeadingText",start:e[o][1].start,end:e[n][1].end},s={type:"chunkText",start:e[o][1].start,end:e[n][1].end,contentType:"text"},Qt(e,o,n-o+1,[["enter",l,t],["enter",s,t],["exit",s,t],["exit",l,t]])),e}function YA(e,t,n){let o=0;return l;function l(h){return e.enter("atxHeading"),s(h)}function s(h){return e.enter("atxHeadingSequence"),u(h)}function u(h){return h===35&&o++<6?(e.consume(h),u):h===null||Ye(h)?(e.exit("atxHeadingSequence"),c(h)):n(h)}function c(h){return h===35?(e.enter("atxHeadingSequence"),d(h)):h===null||_e(h)?(e.exit("atxHeading"),t(h)):$e(h)?Ue(e,c,"whitespace")(h):(e.enter("atxHeadingText"),p(h))}function d(h){return h===35?(e.consume(h),d):(e.exit("atxHeadingSequence"),c(h))}function p(h){return h===null||h===35||Ye(h)?(e.exit("atxHeadingText"),c(h)):(e.consume(h),p)}}const XA=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],by=["pre","script","style","textarea"],QA={concrete:!0,name:"htmlFlow",resolveTo:tI,tokenize:nI},JA={partial:!0,tokenize:iI},eI={partial:!0,tokenize:rI};function tI(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function nI(e,t,n){const o=this;let l,s,u,c,d;return p;function p(T){return h(T)}function h(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),g}function g(T){return T===33?(e.consume(T),x):T===47?(e.consume(T),s=!0,C):T===63?(e.consume(T),l=3,o.interrupt?t:_):It(T)?(e.consume(T),u=String.fromCharCode(T),E):n(T)}function x(T){return T===45?(e.consume(T),l=2,v):T===91?(e.consume(T),l=5,c=0,S):It(T)?(e.consume(T),l=4,o.interrupt?t:_):n(T)}function v(T){return T===45?(e.consume(T),o.interrupt?t:_):n(T)}function S(T){const de="CDATA[";return T===de.charCodeAt(c++)?(e.consume(T),c===de.length?o.interrupt?t:J:S):n(T)}function C(T){return It(T)?(e.consume(T),u=String.fromCharCode(T),E):n(T)}function E(T){if(T===null||T===47||T===62||Ye(T)){const de=T===47,Re=u.toLowerCase();return!de&&!s&&by.includes(Re)?(l=1,o.interrupt?t(T):J(T)):XA.includes(u.toLowerCase())?(l=6,de?(e.consume(T),R):o.interrupt?t(T):J(T)):(l=7,o.interrupt&&!o.parser.lazy[o.now().line]?n(T):s?A(T):N(T))}return T===45||Rt(T)?(e.consume(T),u+=String.fromCharCode(T),E):n(T)}function R(T){return T===62?(e.consume(T),o.interrupt?t:J):n(T)}function A(T){return $e(T)?(e.consume(T),A):D(T)}function N(T){return T===47?(e.consume(T),D):T===58||T===95||It(T)?(e.consume(T),F):$e(T)?(e.consume(T),N):D(T)}function F(T){return T===45||T===46||T===58||T===95||Rt(T)?(e.consume(T),F):B(T)}function B(T){return T===61?(e.consume(T),I):$e(T)?(e.consume(T),B):N(T)}function I(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),d=T,W):$e(T)?(e.consume(T),I):V(T)}function W(T){return T===d?(e.consume(T),d=null,Y):T===null||_e(T)?n(T):(e.consume(T),W)}function V(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||Ye(T)?B(T):(e.consume(T),V)}function Y(T){return T===47||T===62||$e(T)?N(T):n(T)}function D(T){return T===62?(e.consume(T),q):n(T)}function q(T){return T===null||_e(T)?J(T):$e(T)?(e.consume(T),q):n(T)}function J(T){return T===45&&l===2?(e.consume(T),oe):T===60&&l===1?(e.consume(T),ae):T===62&&l===4?(e.consume(T),M):T===63&&l===3?(e.consume(T),_):T===93&&l===5?(e.consume(T),Z):_e(T)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(JA,H,ue)(T)):T===null||_e(T)?(e.exit("htmlFlowData"),ue(T)):(e.consume(T),J)}function ue(T){return e.check(eI,te,H)(T)}function te(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),K}function K(T){return T===null||_e(T)?ue(T):(e.enter("htmlFlowData"),J(T))}function oe(T){return T===45?(e.consume(T),_):J(T)}function ae(T){return T===47?(e.consume(T),u="",L):J(T)}function L(T){if(T===62){const de=u.toLowerCase();return by.includes(de)?(e.consume(T),M):J(T)}return It(T)&&u.length<8?(e.consume(T),u+=String.fromCharCode(T),L):J(T)}function Z(T){return T===93?(e.consume(T),_):J(T)}function _(T){return T===62?(e.consume(T),M):T===45&&l===2?(e.consume(T),_):J(T)}function M(T){return T===null||_e(T)?(e.exit("htmlFlowData"),H(T)):(e.consume(T),M)}function H(T){return e.exit("htmlFlow"),t(T)}}function rI(e,t,n){const o=this;return l;function l(u){return _e(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):n(u)}function s(u){return o.parser.lazy[o.now().line]?n(u):t(u)}}function iI(e,t,n){return o;function o(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(_l,t,n)}}const oI={name:"htmlText",tokenize:lI};function lI(e,t,n){const o=this;let l,s,u;return c;function c(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),d}function d(_){return _===33?(e.consume(_),p):_===47?(e.consume(_),B):_===63?(e.consume(_),N):It(_)?(e.consume(_),V):n(_)}function p(_){return _===45?(e.consume(_),h):_===91?(e.consume(_),s=0,S):It(_)?(e.consume(_),A):n(_)}function h(_){return _===45?(e.consume(_),v):n(_)}function g(_){return _===null?n(_):_===45?(e.consume(_),x):_e(_)?(u=g,ae(_)):(e.consume(_),g)}function x(_){return _===45?(e.consume(_),v):g(_)}function v(_){return _===62?oe(_):_===45?x(_):g(_)}function S(_){const M="CDATA[";return _===M.charCodeAt(s++)?(e.consume(_),s===M.length?C:S):n(_)}function C(_){return _===null?n(_):_===93?(e.consume(_),E):_e(_)?(u=C,ae(_)):(e.consume(_),C)}function E(_){return _===93?(e.consume(_),R):C(_)}function R(_){return _===62?oe(_):_===93?(e.consume(_),R):C(_)}function A(_){return _===null||_===62?oe(_):_e(_)?(u=A,ae(_)):(e.consume(_),A)}function N(_){return _===null?n(_):_===63?(e.consume(_),F):_e(_)?(u=N,ae(_)):(e.consume(_),N)}function F(_){return _===62?oe(_):N(_)}function B(_){return It(_)?(e.consume(_),I):n(_)}function I(_){return _===45||Rt(_)?(e.consume(_),I):W(_)}function W(_){return _e(_)?(u=W,ae(_)):$e(_)?(e.consume(_),W):oe(_)}function V(_){return _===45||Rt(_)?(e.consume(_),V):_===47||_===62||Ye(_)?Y(_):n(_)}function Y(_){return _===47?(e.consume(_),oe):_===58||_===95||It(_)?(e.consume(_),D):_e(_)?(u=Y,ae(_)):$e(_)?(e.consume(_),Y):oe(_)}function D(_){return _===45||_===46||_===58||_===95||Rt(_)?(e.consume(_),D):q(_)}function q(_){return _===61?(e.consume(_),J):_e(_)?(u=q,ae(_)):$e(_)?(e.consume(_),q):Y(_)}function J(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),l=_,ue):_e(_)?(u=J,ae(_)):$e(_)?(e.consume(_),J):(e.consume(_),te)}function ue(_){return _===l?(e.consume(_),l=void 0,K):_===null?n(_):_e(_)?(u=ue,ae(_)):(e.consume(_),ue)}function te(_){return _===null||_===34||_===39||_===60||_===61||_===96?n(_):_===47||_===62||Ye(_)?Y(_):(e.consume(_),te)}function K(_){return _===47||_===62||Ye(_)?Y(_):n(_)}function oe(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),t):n(_)}function ae(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),L}function L(_){return $e(_)?Ue(e,Z,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):Z(_)}function Z(_){return e.enter("htmlTextData"),u(_)}}const ep={name:"labelEnd",resolveAll:cI,resolveTo:fI,tokenize:dI},sI={tokenize:pI},aI={tokenize:hI},uI={tokenize:mI};function cI(e){let t=-1;const n=[];for(;++t<e.length;){const o=e[t][1];if(n.push(e[t]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const l=o.type==="labelImage"?4:2;o.type="data",t+=l}}return e.length!==n.length&&Qt(e,0,e.length,n),e}function fI(e,t){let n=e.length,o=0,l,s,u,c;for(;n--;)if(l=e[n][1],s){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[n][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(s=n,l.type!=="labelLink")){o=2;break}}else l.type==="labelEnd"&&(u=n);const d={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[s][1].start},end:{...e[u][1].end}},h={type:"labelText",start:{...e[s+o+2][1].end},end:{...e[u-2][1].start}};return c=[["enter",d,t],["enter",p,t]],c=sn(c,e.slice(s+1,s+o+3)),c=sn(c,[["enter",h,t]]),c=sn(c,Ga(t.parser.constructs.insideSpan.null,e.slice(s+o+4,u-3),t)),c=sn(c,[["exit",h,t],e[u-2],e[u-1],["exit",p,t]]),c=sn(c,e.slice(u+1)),c=sn(c,[["exit",d,t]]),Qt(e,s,e.length,c),e}function dI(e,t,n){const o=this;let l=o.events.length,s,u;for(;l--;)if((o.events[l][1].type==="labelImage"||o.events[l][1].type==="labelLink")&&!o.events[l][1]._balanced){s=o.events[l][1];break}return c;function c(x){return s?s._inactive?g(x):(u=o.parser.defined.includes(bn(o.sliceSerialize({start:s.end,end:o.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(x),e.exit("labelMarker"),e.exit("labelEnd"),d):n(x)}function d(x){return x===40?e.attempt(sI,h,u?h:g)(x):x===91?e.attempt(aI,h,u?p:g)(x):u?h(x):g(x)}function p(x){return e.attempt(uI,h,g)(x)}function h(x){return t(x)}function g(x){return s._balanced=!0,n(x)}}function pI(e,t,n){return o;function o(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),l}function l(g){return Ye(g)?ll(e,s)(g):s(g)}function s(g){return g===41?h(g):Pk(e,u,c,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return Ye(g)?ll(e,d)(g):h(g)}function c(g){return n(g)}function d(g){return g===34||g===39||g===40?Ak(e,p,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):h(g)}function p(g){return Ye(g)?ll(e,h)(g):h(g)}function h(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),t):n(g)}}function hI(e,t,n){const o=this;return l;function l(c){return Nk.call(o,e,s,u,"reference","referenceMarker","referenceString")(c)}function s(c){return o.parser.defined.includes(bn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?t(c):n(c)}function u(c){return n(c)}}function mI(e,t,n){return o;function o(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),l}function l(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const gI={name:"labelStartImage",resolveAll:ep.resolveAll,tokenize:yI};function yI(e,t,n){const o=this;return l;function l(c){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(c),e.exit("labelImageMarker"),s}function s(c){return c===91?(e.enter("labelMarker"),e.consume(c),e.exit("labelMarker"),e.exit("labelImage"),u):n(c)}function u(c){return c===94&&"_hiddenFootnoteSupport"in o.parser.constructs?n(c):t(c)}}const vI={name:"labelStartLink",resolveAll:ep.resolveAll,tokenize:xI};function xI(e,t,n){const o=this;return l;function l(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),s}function s(u){return u===94&&"_hiddenFootnoteSupport"in o.parser.constructs?n(u):t(u)}}const hf={name:"lineEnding",tokenize:wI};function wI(e,t){return n;function n(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Ue(e,t,"linePrefix")}}const ta={name:"thematicBreak",tokenize:kI};function kI(e,t,n){let o=0,l;return s;function s(p){return e.enter("thematicBreak"),u(p)}function u(p){return l=p,c(p)}function c(p){return p===l?(e.enter("thematicBreakSequence"),d(p)):o>=3&&(p===null||_e(p))?(e.exit("thematicBreak"),t(p)):n(p)}function d(p){return p===l?(e.consume(p),o++,d):(e.exit("thematicBreakSequence"),$e(p)?Ue(e,c,"whitespace")(p):c(p))}}const Bt={continuation:{tokenize:_I},exit:RI,name:"list",tokenize:CI},bI={partial:!0,tokenize:TI},SI={partial:!0,tokenize:EI};function CI(e,t,n){const o=this,l=o.events[o.events.length-1];let s=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,u=0;return c;function c(v){const S=o.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!o.containerState.marker||v===o.containerState.marker:Xf(v)){if(o.containerState.type||(o.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(ta,n,p)(v):p(v);if(!o.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),d(v)}return n(v)}function d(v){return Xf(v)&&++u<10?(e.consume(v),d):(!o.interrupt||u<2)&&(o.containerState.marker?v===o.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),p(v)):n(v)}function p(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||v,e.check(_l,o.interrupt?n:h,e.attempt(bI,x,g))}function h(v){return o.containerState.initialBlankLine=!0,s++,x(v)}function g(v){return $e(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),x):n(v)}function x(v){return o.containerState.size=s+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(v)}}function _I(e,t,n){const o=this;return o.containerState._closeFlow=void 0,e.check(_l,l,s);function l(c){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Ue(e,t,"listItemIndent",o.containerState.size+1)(c)}function s(c){return o.containerState.furtherBlankLines||!$e(c)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,u(c)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(SI,t,u)(c))}function u(c){return o.containerState._closeFlow=!0,o.interrupt=void 0,Ue(e,e.attempt(Bt,t,n),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c)}}function EI(e,t,n){const o=this;return Ue(e,l,"listItemIndent",o.containerState.size+1);function l(s){const u=o.events[o.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===o.containerState.size?t(s):n(s)}}function RI(e){e.exit(this.containerState.type)}function TI(e,t,n){const o=this;return Ue(e,l,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(s){const u=o.events[o.events.length-1];return!$e(s)&&u&&u[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const Sy={name:"setextUnderline",resolveTo:PI,tokenize:NI};function PI(e,t){let n=e.length,o,l,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){o=n;break}e[n][1].type==="paragraph"&&(l=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const u={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",s?(e.splice(l,0,["enter",u,t]),e.splice(s+1,0,["exit",e[o][1],t]),e[o][1].end={...e[s][1].end}):e[o][1]=u,e.push(["exit",u,t]),e}function NI(e,t,n){const o=this;let l;return s;function s(p){let h=o.events.length,g;for(;h--;)if(o.events[h][1].type!=="lineEnding"&&o.events[h][1].type!=="linePrefix"&&o.events[h][1].type!=="content"){g=o.events[h][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||g)?(e.enter("setextHeadingLine"),l=p,u(p)):n(p)}function u(p){return e.enter("setextHeadingLineSequence"),c(p)}function c(p){return p===l?(e.consume(p),c):(e.exit("setextHeadingLineSequence"),$e(p)?Ue(e,d,"lineSuffix")(p):d(p))}function d(p){return p===null||_e(p)?(e.exit("setextHeadingLine"),t(p)):n(p)}}const AI={tokenize:II};function II(e){const t=this,n=e.attempt(_l,o,e.attempt(this.parser.constructs.flowInitial,l,Ue(e,e.attempt(this.parser.constructs.flow,l,e.attempt(LA,l)),"linePrefix")));return n;function o(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function l(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const OI={resolveAll:Ok()},MI=Ik("string"),DI=Ik("text");function Ik(e){return{resolveAll:Ok(e==="text"?jI:void 0),tokenize:t};function t(n){const o=this,l=this.parser.constructs[e],s=n.attempt(l,u,c);return u;function u(h){return p(h)?s(h):c(h)}function c(h){if(h===null){n.consume(h);return}return n.enter("data"),n.consume(h),d}function d(h){return p(h)?(n.exit("data"),s(h)):(n.consume(h),d)}function p(h){if(h===null)return!0;const g=l[h];let x=-1;if(g)for(;++x<g.length;){const v=g[x];if(!v.previous||v.previous.call(o,o.previous))return!0}return!1}}}function Ok(e){return t;function t(n,o){let l=-1,s;for(;++l<=n.length;)s===void 0?n[l]&&n[l][1].type==="data"&&(s=l,l++):(!n[l]||n[l][1].type!=="data")&&(l!==s+2&&(n[s][1].end=n[l-1][1].end,n.splice(s+2,l-s-2),l=s+2),s=void 0);return e?e(n,o):n}}function jI(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const o=e[n-1][1],l=t.sliceStream(o);let s=l.length,u=-1,c=0,d;for(;s--;){const p=l[s];if(typeof p=="string"){for(u=p.length;p.charCodeAt(u-1)===32;)c++,u--;if(u)break;u=-1}else if(p===-2)d=!0,c++;else if(p!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(c=0),c){const p={type:n===e.length||d||c<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?u:o.start._bufferIndex+u,_index:o.start._index+s,line:o.end.line,column:o.end.column-c,offset:o.end.offset-c},end:{...o.end}};o.end={...p.start},o.start.offset===o.end.offset?Object.assign(o,p):(e.splice(n,0,["enter",p,t],["exit",p,t]),n+=2)}n++}return e}const LI={42:Bt,43:Bt,45:Bt,48:Bt,49:Bt,50:Bt,51:Bt,52:Bt,53:Bt,54:Bt,55:Bt,56:Bt,57:Bt,62:_k},zI={91:UA},FI={[-2]:pf,[-1]:pf,32:pf},$I={35:qA,42:ta,45:[Sy,ta],60:QA,61:Sy,95:ta,96:ky,126:ky},BI={38:Rk,92:Ek},UI={[-5]:hf,[-4]:hf,[-3]:hf,33:gI,38:Rk,42:Qf,60:[vA,oI],91:vI,92:[ZA,Ek],93:ep,95:Qf,96:AA},VI={null:[Qf,OI]},WI={null:[42,95]},HI={null:[]},ZI=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:WI,contentInitial:zI,disable:HI,document:LI,flow:$I,flowInitial:FI,insideSpan:VI,string:BI,text:UI},Symbol.toStringTag,{value:"Module"}));function GI(e,t,n){let o={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const l={},s=[];let u=[],c=[];const d={attempt:W(B),check:W(I),consume:A,enter:N,exit:F,interrupt:W(I,{interrupt:!0})},p={code:null,containerState:{},defineSkip:C,events:[],now:S,parser:e,previous:null,sliceSerialize:x,sliceStream:v,write:g};let h=t.tokenize.call(p,d);return t.resolveAll&&s.push(t),p;function g(q){return u=sn(u,q),E(),u[u.length-1]!==null?[]:(V(t,0),p.events=Ga(s,p.events,p),p.events)}function x(q,J){return KI(v(q),J)}function v(q){return qI(u,q)}function S(){const{_bufferIndex:q,_index:J,line:ue,column:te,offset:K}=o;return{_bufferIndex:q,_index:J,line:ue,column:te,offset:K}}function C(q){l[q.line]=q.column,D()}function E(){let q;for(;o._index<u.length;){const J=u[o._index];if(typeof J=="string")for(q=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===q&&o._bufferIndex<J.length;)R(J.charCodeAt(o._bufferIndex));else R(J)}}function R(q){h=h(q)}function A(q){_e(q)?(o.line++,o.column=1,o.offset+=q===-3?2:1,D()):q!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===u[o._index].length&&(o._bufferIndex=-1,o._index++)),p.previous=q}function N(q,J){const ue=J||{};return ue.type=q,ue.start=S(),p.events.push(["enter",ue,p]),c.push(ue),ue}function F(q){const J=c.pop();return J.end=S(),p.events.push(["exit",J,p]),J}function B(q,J){V(q,J.from)}function I(q,J){J.restore()}function W(q,J){return ue;function ue(te,K,oe){let ae,L,Z,_;return Array.isArray(te)?H(te):"tokenize"in te?H([te]):M(te);function M(xe){return ce;function ce(Pe){const Le=Pe!==null&&xe[Pe],Ke=Pe!==null&&xe.null,Pt=[...Array.isArray(Le)?Le:Le?[Le]:[],...Array.isArray(Ke)?Ke:Ke?[Ke]:[]];return H(Pt)(Pe)}}function H(xe){return ae=xe,L=0,xe.length===0?oe:T(xe[L])}function T(xe){return ce;function ce(Pe){return _=Y(),Z=xe,xe.partial||(p.currentConstruct=xe),xe.name&&p.parser.constructs.disable.null.includes(xe.name)?Re():xe.tokenize.call(J?Object.assign(Object.create(p),J):p,d,de,Re)(Pe)}}function de(xe){return q(Z,_),K}function Re(xe){return _.restore(),++L<ae.length?T(ae[L]):oe}}}function V(q,J){q.resolveAll&&!s.includes(q)&&s.push(q),q.resolve&&Qt(p.events,J,p.events.length-J,q.resolve(p.events.slice(J),p)),q.resolveTo&&(p.events=q.resolveTo(p.events,p))}function Y(){const q=S(),J=p.previous,ue=p.currentConstruct,te=p.events.length,K=Array.from(c);return{from:te,restore:oe};function oe(){o=q,p.previous=J,p.currentConstruct=ue,p.events.length=te,c=K,D()}}function D(){o.line in l&&o.column<2&&(o.column=l[o.line],o.offset+=l[o.line]-1)}}function qI(e,t){const n=t.start._index,o=t.start._bufferIndex,l=t.end._index,s=t.end._bufferIndex;let u;if(n===l)u=[e[n].slice(o,s)];else{if(u=e.slice(n,l),o>-1){const c=u[0];typeof c=="string"?u[0]=c.slice(o):u.shift()}s>0&&u.push(e[l].slice(0,s))}return u}function KI(e,t){let n=-1;const o=[];let l;for(;++n<e.length;){const s=e[n];let u;if(typeof s=="string")u=s;else switch(s){case-5:{u="\r";break}case-4:{u=`
54
+ `;break}case-3:{u=`\r
55
+ `;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&l)continue;u=" ";break}default:u=String.fromCharCode(s)}l=s===-2,o.push(u)}return o.join("")}function YI(e){const o={constructs:Sk([ZI,...(e||{}).extensions||[]]),content:l(fA),defined:[],document:l(pA),flow:l(AI),lazy:{},string:l(MI),text:l(DI)};return o;function l(s){return u;function u(c){return GI(o,s,c)}}}function XI(e){for(;!Tk(e););return e}const Cy=/[\0\t\n\r]/g;function QI(){let e=1,t="",n=!0,o;return l;function l(s,u,c){const d=[];let p,h,g,x,v;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(u||void 0).decode(s)),g=0,t="",n&&(s.charCodeAt(0)===65279&&g++,n=void 0);g<s.length;){if(Cy.lastIndex=g,p=Cy.exec(s),x=p&&p.index!==void 0?p.index:s.length,v=s.charCodeAt(x),!p){t=s.slice(g);break}if(v===10&&g===x&&o)d.push(-3),o=void 0;else switch(o&&(d.push(-5),o=void 0),g<x&&(d.push(s.slice(g,x)),e+=x-g),v){case 0:{d.push(65533),e++;break}case 9:{for(h=Math.ceil(e/4)*4,d.push(-2);e++<h;)d.push(-1);break}case 10:{d.push(-4),e=1;break}default:o=!0,e=1}g=x+1}return c&&(o&&d.push(-5),t&&d.push(t),d.push(null)),d}}const JI=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function e2(e){return e.replace(JI,t2)}function t2(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const l=n.charCodeAt(1),s=l===120||l===88;return Ck(n.slice(s?2:1),s?16:10)}return Jd(n)||e}const Mk={}.hasOwnProperty;function n2(e,t,n){return typeof t!="string"&&(n=t,t=void 0),r2(n)(XI(YI(n).document().write(QI()(e,t,!0))))}function r2(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(gi),autolinkProtocol:Y,autolinkEmail:Y,atxHeading:s(co),blockQuote:s(Ke),characterEscape:Y,characterReference:Y,codeFenced:s(Pt),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(Pt,u),codeText:s(dn,u),codeTextData:Y,data:Y,codeFlowValue:Y,definition:s(pn),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s(uo),hardBreakEscape:s(fo),hardBreakTrailing:s(fo),htmlFlow:s(mi,u),htmlFlowData:Y,htmlText:s(mi,u),htmlTextData:Y,image:s(Rl),label:u,link:s(gi),listItem:s(pr),listItemValue:x,listOrdered:s(dr,g),listUnordered:s(dr),paragraph:s(po),reference:T,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(co),strong:s(Tl),thematicBreak:s(Nl)},exit:{atxHeading:d(),atxHeadingSequence:B,autolink:d(),autolinkEmail:Le,autolinkProtocol:Pe,blockQuote:d(),characterEscapeValue:D,characterReferenceMarkerHexadecimal:Re,characterReferenceMarkerNumeric:Re,characterReferenceValue:xe,characterReference:ce,codeFenced:d(E),codeFencedFence:C,codeFencedFenceInfo:v,codeFencedFenceMeta:S,codeFlowValue:D,codeIndented:d(R),codeText:d(K),codeTextData:D,data:D,definition:d(),definitionDestinationString:F,definitionLabelString:A,definitionTitleString:N,emphasis:d(),hardBreakEscape:d(J),hardBreakTrailing:d(J),htmlFlow:d(ue),htmlFlowData:D,htmlText:d(te),htmlTextData:D,image:d(ae),label:Z,labelText:L,lineEnding:q,link:d(oe),listItem:d(),listOrdered:d(),listUnordered:d(),paragraph:d(),referenceString:de,resourceDestinationString:_,resourceTitleString:M,resource:H,setextHeading:d(V),setextHeadingLineSequence:W,setextHeadingText:I,strong:d(),thematicBreak:d()}};Dk(t,(e||{}).mdastExtensions||[]);const n={};return o;function o(G){let le={type:"root",children:[]};const Te={stack:[le],tokenStack:[],config:t,enter:c,exit:p,buffer:u,resume:h,data:n},ze=[];let We=-1;for(;++We<G.length;)if(G[We][1].type==="listOrdered"||G[We][1].type==="listUnordered")if(G[We][0]==="enter")ze.push(We);else{const vt=ze.pop();We=l(G,vt,We)}for(We=-1;++We<G.length;){const vt=t[G[We][0]];Mk.call(vt,G[We][1].type)&&vt[G[We][1].type].call(Object.assign({sliceSerialize:G[We][2].sliceSerialize},Te),G[We][1])}if(Te.tokenStack.length>0){const vt=Te.tokenStack[Te.tokenStack.length-1];(vt[1]||_y).call(Te,void 0,vt[0])}for(le.position={start:Dr(G.length>0?G[0][1].start:{line:1,column:1,offset:0}),end:Dr(G.length>0?G[G.length-2][1].end:{line:1,column:1,offset:0})},We=-1;++We<t.transforms.length;)le=t.transforms[We](le)||le;return le}function l(G,le,Te){let ze=le-1,We=-1,vt=!1,Gn,Jt,hr,Ur;for(;++ze<=Te;){const xt=G[ze];switch(xt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{xt[0]==="enter"?We++:We--,Ur=void 0;break}case"lineEndingBlank":{xt[0]==="enter"&&(Gn&&!Ur&&!We&&!hr&&(hr=ze),Ur=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ur=void 0}if(!We&&xt[0]==="enter"&&xt[1].type==="listItemPrefix"||We===-1&&xt[0]==="exit"&&(xt[1].type==="listUnordered"||xt[1].type==="listOrdered")){if(Gn){let Tn=ze;for(Jt=void 0;Tn--;){const Wt=G[Tn];if(Wt[1].type==="lineEnding"||Wt[1].type==="lineEndingBlank"){if(Wt[0]==="exit")continue;Jt&&(G[Jt][1].type="lineEndingBlank",vt=!0),Wt[1].type="lineEnding",Jt=Tn}else if(!(Wt[1].type==="linePrefix"||Wt[1].type==="blockQuotePrefix"||Wt[1].type==="blockQuotePrefixWhitespace"||Wt[1].type==="blockQuoteMarker"||Wt[1].type==="listItemIndent"))break}hr&&(!Jt||hr<Jt)&&(Gn._spread=!0),Gn.end=Object.assign({},Jt?G[Jt][1].start:xt[1].end),G.splice(Jt||ze,0,["exit",Gn,xt[2]]),ze++,Te++}if(xt[1].type==="listItemPrefix"){const Tn={type:"listItem",_spread:!1,start:Object.assign({},xt[1].start),end:void 0};Gn=Tn,G.splice(ze,0,["enter",Tn,xt[2]]),ze++,Te++,hr=void 0,Ur=!0}}}return G[le][1]._spread=vt,Te}function s(G,le){return Te;function Te(ze){c.call(this,G(ze),ze),le&&le.call(this,ze)}}function u(){this.stack.push({type:"fragment",children:[]})}function c(G,le,Te){this.stack[this.stack.length-1].children.push(G),this.stack.push(G),this.tokenStack.push([le,Te||void 0]),G.position={start:Dr(le.start),end:void 0}}function d(G){return le;function le(Te){G&&G.call(this,Te),p.call(this,Te)}}function p(G,le){const Te=this.stack.pop(),ze=this.tokenStack.pop();if(ze)ze[0].type!==G.type&&(le?le.call(this,G,ze[0]):(ze[1]||_y).call(this,G,ze[0]));else throw new Error("Cannot close `"+G.type+"` ("+ol({start:G.start,end:G.end})+"): it’s not open");Te.position.end=Dr(G.end)}function h(){return Qd(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function x(G){if(this.data.expectingFirstListItemValue){const le=this.stack[this.stack.length-2];le.start=Number.parseInt(this.sliceSerialize(G),10),this.data.expectingFirstListItemValue=void 0}}function v(){const G=this.resume(),le=this.stack[this.stack.length-1];le.lang=G}function S(){const G=this.resume(),le=this.stack[this.stack.length-1];le.meta=G}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const G=this.resume(),le=this.stack[this.stack.length-1];le.value=G.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function R(){const G=this.resume(),le=this.stack[this.stack.length-1];le.value=G.replace(/(\r?\n|\r)$/g,"")}function A(G){const le=this.resume(),Te=this.stack[this.stack.length-1];Te.label=le,Te.identifier=bn(this.sliceSerialize(G)).toLowerCase()}function N(){const G=this.resume(),le=this.stack[this.stack.length-1];le.title=G}function F(){const G=this.resume(),le=this.stack[this.stack.length-1];le.url=G}function B(G){const le=this.stack[this.stack.length-1];if(!le.depth){const Te=this.sliceSerialize(G).length;le.depth=Te}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function W(G){const le=this.stack[this.stack.length-1];le.depth=this.sliceSerialize(G).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function Y(G){const Te=this.stack[this.stack.length-1].children;let ze=Te[Te.length-1];(!ze||ze.type!=="text")&&(ze=Pl(),ze.position={start:Dr(G.start),end:void 0},Te.push(ze)),this.stack.push(ze)}function D(G){const le=this.stack.pop();le.value+=this.sliceSerialize(G),le.position.end=Dr(G.end)}function q(G){const le=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Te=le.children[le.children.length-1];Te.position.end=Dr(G.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(le.type)&&(Y.call(this,G),D.call(this,G))}function J(){this.data.atHardBreak=!0}function ue(){const G=this.resume(),le=this.stack[this.stack.length-1];le.value=G}function te(){const G=this.resume(),le=this.stack[this.stack.length-1];le.value=G}function K(){const G=this.resume(),le=this.stack[this.stack.length-1];le.value=G}function oe(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=le,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function ae(){const G=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";G.type+="Reference",G.referenceType=le,delete G.url,delete G.title}else delete G.identifier,delete G.label;this.data.referenceType=void 0}function L(G){const le=this.sliceSerialize(G),Te=this.stack[this.stack.length-2];Te.label=e2(le),Te.identifier=bn(le).toLowerCase()}function Z(){const G=this.stack[this.stack.length-1],le=this.resume(),Te=this.stack[this.stack.length-1];if(this.data.inReference=!0,Te.type==="link"){const ze=G.children;Te.children=ze}else Te.alt=le}function _(){const G=this.resume(),le=this.stack[this.stack.length-1];le.url=G}function M(){const G=this.resume(),le=this.stack[this.stack.length-1];le.title=G}function H(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function de(G){const le=this.resume(),Te=this.stack[this.stack.length-1];Te.label=le,Te.identifier=bn(this.sliceSerialize(G)).toLowerCase(),this.data.referenceType="full"}function Re(G){this.data.characterReferenceType=G.type}function xe(G){const le=this.sliceSerialize(G),Te=this.data.characterReferenceType;let ze;Te?(ze=Ck(le,Te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ze=Jd(le);const We=this.stack[this.stack.length-1];We.value+=ze}function ce(G){const le=this.stack.pop();le.position.end=Dr(G.end)}function Pe(G){D.call(this,G);const le=this.stack[this.stack.length-1];le.url=this.sliceSerialize(G)}function Le(G){D.call(this,G);const le=this.stack[this.stack.length-1];le.url="mailto:"+this.sliceSerialize(G)}function Ke(){return{type:"blockquote",children:[]}}function Pt(){return{type:"code",lang:null,meta:null,value:""}}function dn(){return{type:"inlineCode",value:""}}function pn(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function uo(){return{type:"emphasis",children:[]}}function co(){return{type:"heading",depth:0,children:[]}}function fo(){return{type:"break"}}function mi(){return{type:"html",value:""}}function Rl(){return{type:"image",title:null,url:"",alt:null}}function gi(){return{type:"link",title:null,url:"",children:[]}}function dr(G){return{type:"list",ordered:G.type==="listOrdered",start:null,spread:G._spread,children:[]}}function pr(G){return{type:"listItem",spread:G._spread,checked:null,children:[]}}function po(){return{type:"paragraph",children:[]}}function Tl(){return{type:"strong",children:[]}}function Pl(){return{type:"text",value:""}}function Nl(){return{type:"thematicBreak"}}}function Dr(e){return{line:e.line,column:e.column,offset:e.offset}}function Dk(e,t){let n=-1;for(;++n<t.length;){const o=t[n];Array.isArray(o)?Dk(e,o):i2(e,o)}}function i2(e,t){let n;for(n in t)if(Mk.call(t,n))switch(n){case"canContainEols":{const o=t[n];o&&e[n].push(...o);break}case"transforms":{const o=t[n];o&&e[n].push(...o);break}case"enter":case"exit":{const o=t[n];o&&Object.assign(e[n],o);break}}}function _y(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+ol({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ol({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+ol({start:t.start,end:t.end})+") is still open")}function o2(e){const t=this;t.parser=n;function n(o){return n2(o,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function l2(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function s2(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
56
+ `}]}function a2(e,t){const n=t.value?t.value+`
57
+ `:"",o={},l=t.lang?t.lang.split(/\s+/):[];l.length>0&&(o.className=["language-"+l[0]]);let s={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function u2(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function c2(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function f2(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",o=String(t.identifier).toUpperCase(),l=ao(o.toLowerCase()),s=e.footnoteOrder.indexOf(o);let u,c=e.footnoteCounts.get(o);c===void 0?(c=0,e.footnoteOrder.push(o),u=e.footnoteOrder.length):u=s+1,c+=1,e.footnoteCounts.set(o,c);const d={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+l,id:n+"fnref-"+l+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,d);const p={type:"element",tagName:"sup",properties:{},children:[d]};return e.patch(t,p),e.applyData(t,p)}function d2(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function p2(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function jk(e,t){const n=t.referenceType;let o="]";if(n==="collapsed"?o+="[]":n==="full"&&(o+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+o}];const l=e.all(t),s=l[0];s&&s.type==="text"?s.value="["+s.value:l.unshift({type:"text",value:"["});const u=l[l.length-1];return u&&u.type==="text"?u.value+=o:l.push({type:"text",value:o}),l}function h2(e,t){const n=String(t.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return jk(e,t);const l={src:ao(o.url||""),alt:t.alt};o.title!==null&&o.title!==void 0&&(l.title=o.title);const s={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,s),e.applyData(t,s)}function m2(e,t){const n={src:ao(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const o={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,o),e.applyData(t,o)}function g2(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const o={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,o),e.applyData(t,o)}function y2(e,t){const n=String(t.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return jk(e,t);const l={href:ao(o.url||"")};o.title!==null&&o.title!==void 0&&(l.title=o.title);const s={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function v2(e,t){const n={href:ao(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const o={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function x2(e,t,n){const o=e.all(t),l=n?w2(n):Lk(t),s={},u=[];if(typeof t.checked=="boolean"){const h=o[0];let g;h&&h.type==="element"&&h.tagName==="p"?g=h:(g={type:"element",tagName:"p",properties:{},children:[]},o.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let c=-1;for(;++c<o.length;){const h=o[c];(l||c!==0||h.type!=="element"||h.tagName!=="p")&&u.push({type:"text",value:`
58
+ `}),h.type==="element"&&h.tagName==="p"&&!l?u.push(...h.children):u.push(h)}const d=o[o.length-1];d&&(l||d.type!=="element"||d.tagName!=="p")&&u.push({type:"text",value:`
59
+ `});const p={type:"element",tagName:"li",properties:s,children:u};return e.patch(t,p),e.applyData(t,p)}function w2(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let o=-1;for(;!t&&++o<n.length;)t=Lk(n[o])}return t}function Lk(e){const t=e.spread;return t??e.children.length>1}function k2(e,t){const n={},o=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++l<o.length;){const u=o[l];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(o,!0)};return e.patch(t,s),e.applyData(t,s)}function b2(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function S2(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function C2(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _2(e,t){const n=e.all(t),o=n.shift(),l=[];if(o){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([o],!0)};e.patch(t.children[0],u),l.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=qd(t.children[1]),d=gk(t.children[t.children.length-1]);c&&d&&(u.position={start:c,end:d}),l.push(u)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,s),e.applyData(t,s)}function E2(e,t,n){const o=n?n.children:void 0,s=(o?o.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,c=u?u.length:t.children.length;let d=-1;const p=[];for(;++d<c;){const g=t.children[d],x={},v=u?u[d]:void 0;v&&(x.align=v);let S={type:"element",tagName:s,properties:x,children:[]};g&&(S.children=e.all(g),e.patch(g,S),S=e.applyData(g,S)),p.push(S)}const h={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(t,h),e.applyData(t,h)}function R2(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Ey=9,Ry=32;function T2(e){const t=String(e),n=/\r?\n|\r/g;let o=n.exec(t),l=0;const s=[];for(;o;)s.push(Ty(t.slice(l,o.index),l>0,!0),o[0]),l=o.index+o[0].length,o=n.exec(t);return s.push(Ty(t.slice(l),l>0,!1)),s.join("")}function Ty(e,t,n){let o=0,l=e.length;if(t){let s=e.codePointAt(o);for(;s===Ey||s===Ry;)o++,s=e.codePointAt(o)}if(n){let s=e.codePointAt(l-1);for(;s===Ey||s===Ry;)l--,s=e.codePointAt(l-1)}return l>o?e.slice(o,l):""}function P2(e,t){const n={type:"text",value:T2(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function N2(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const A2={blockquote:l2,break:s2,code:a2,delete:u2,emphasis:c2,footnoteReference:f2,heading:d2,html:p2,imageReference:h2,image:m2,inlineCode:g2,linkReference:y2,link:v2,listItem:x2,list:k2,paragraph:b2,root:S2,strong:C2,table:_2,tableCell:R2,tableRow:E2,text:P2,thematicBreak:N2,toml:qs,yaml:qs,definition:qs,footnoteDefinition:qs};function qs(){}const zk=-1,qa=0,sl=1,_a=2,tp=3,np=4,rp=5,ip=6,Fk=7,$k=8,Py=typeof self=="object"?self:globalThis,I2=(e,t)=>{const n=(l,s)=>(e.set(s,l),l),o=l=>{if(e.has(l))return e.get(l);const[s,u]=t[l];switch(s){case qa:case zk:return n(u,l);case sl:{const c=n([],l);for(const d of u)c.push(o(d));return c}case _a:{const c=n({},l);for(const[d,p]of u)c[o(d)]=o(p);return c}case tp:return n(new Date(u),l);case np:{const{source:c,flags:d}=u;return n(new RegExp(c,d),l)}case rp:{const c=n(new Map,l);for(const[d,p]of u)c.set(o(d),o(p));return c}case ip:{const c=n(new Set,l);for(const d of u)c.add(o(d));return c}case Fk:{const{name:c,message:d}=u;return n(new Py[c](d),l)}case $k:return n(BigInt(u),l);case"BigInt":return n(Object(BigInt(u)),l);case"ArrayBuffer":return n(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:c}=new Uint8Array(u);return n(new DataView(c),u)}}return n(new Py[s](u),l)};return o},Ny=e=>I2(new Map,e)(0),Zi="",{toString:O2}={},{keys:M2}=Object,tl=e=>{const t=typeof e;if(t!=="object"||!e)return[qa,t];const n=O2.call(e).slice(8,-1);switch(n){case"Array":return[sl,Zi];case"Object":return[_a,Zi];case"Date":return[tp,Zi];case"RegExp":return[np,Zi];case"Map":return[rp,Zi];case"Set":return[ip,Zi];case"DataView":return[sl,n]}return n.includes("Array")?[sl,n]:n.includes("Error")?[Fk,n]:[_a,n]},Ks=([e,t])=>e===qa&&(t==="function"||t==="symbol"),D2=(e,t,n,o)=>{const l=(u,c)=>{const d=o.push(u)-1;return n.set(c,d),d},s=u=>{if(n.has(u))return n.get(u);let[c,d]=tl(u);switch(c){case qa:{let h=u;switch(d){case"bigint":c=$k,h=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+d);h=null;break;case"undefined":return l([zk],u)}return l([c,h],u)}case sl:{if(d){let x=u;return d==="DataView"?x=new Uint8Array(u.buffer):d==="ArrayBuffer"&&(x=new Uint8Array(u)),l([d,[...x]],u)}const h=[],g=l([c,h],u);for(const x of u)h.push(s(x));return g}case _a:{if(d)switch(d){case"BigInt":return l([d,u.toString()],u);case"Boolean":case"Number":case"String":return l([d,u.valueOf()],u)}if(t&&"toJSON"in u)return s(u.toJSON());const h=[],g=l([c,h],u);for(const x of M2(u))(e||!Ks(tl(u[x])))&&h.push([s(x),s(u[x])]);return g}case tp:return l([c,u.toISOString()],u);case np:{const{source:h,flags:g}=u;return l([c,{source:h,flags:g}],u)}case rp:{const h=[],g=l([c,h],u);for(const[x,v]of u)(e||!(Ks(tl(x))||Ks(tl(v))))&&h.push([s(x),s(v)]);return g}case ip:{const h=[],g=l([c,h],u);for(const x of u)(e||!Ks(tl(x)))&&h.push(s(x));return g}}const{message:p}=u;return l([c,{name:d,message:p}],u)};return s},Ay=(e,{json:t,lossy:n}={})=>{const o=[];return D2(!(t||n),!!t,new Map,o)(e),o},Ea=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Ny(Ay(e,t)):structuredClone(e):(e,t)=>Ny(Ay(e,t));function j2(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function L2(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function z2(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||j2,o=e.options.footnoteBackLabel||L2,l=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let d=-1;for(;++d<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[d]);if(!p)continue;const h=e.all(p),g=String(p.identifier).toUpperCase(),x=ao(g.toLowerCase());let v=0;const S=[],C=e.footnoteCounts.get(g);for(;C!==void 0&&++v<=C;){S.length>0&&S.push({type:"text",value:" "});let A=typeof n=="string"?n:n(d,v);typeof A=="string"&&(A={type:"text",value:A}),S.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+x+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(d,v),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const E=h[h.length-1];if(E&&E.type==="element"&&E.tagName==="p"){const A=E.children[E.children.length-1];A&&A.type==="text"?A.value+=" ":E.children.push({type:"text",value:" "}),E.children.push(...S)}else h.push(...S);const R={type:"element",tagName:"li",properties:{id:t+"fn-"+x},children:e.wrap(h,!0)};e.patch(p,R),c.push(R)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Ea(u),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
60
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:`
61
+ `}]}}const Ka=(function(e){if(e==null)return U2;if(typeof e=="function")return Ya(e);if(typeof e=="object")return Array.isArray(e)?F2(e):$2(e);if(typeof e=="string")return B2(e);throw new Error("Expected function, string, or object as test")});function F2(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ka(e[n]);return Ya(o);function o(...l){let s=-1;for(;++s<t.length;)if(t[s].apply(this,l))return!0;return!1}}function $2(e){const t=e;return Ya(n);function n(o){const l=o;let s;for(s in e)if(l[s]!==t[s])return!1;return!0}}function B2(e){return Ya(t);function t(n){return n&&n.type===e}}function Ya(e){return t;function t(n,o,l){return!!(V2(n)&&e.call(this,n,typeof o=="number"?o:void 0,l||void 0))}}function U2(){return!0}function V2(e){return e!==null&&typeof e=="object"&&"type"in e}const Bk=[],W2=!0,Jf=!1,H2="skip";function Uk(e,t,n,o){let l;typeof t=="function"&&typeof n!="function"?(o=n,n=t):l=t;const s=Ka(l),u=o?-1:1;c(e,void 0,[])();function c(d,p,h){const g=d&&typeof d=="object"?d:{};if(typeof g.type=="string"){const v=typeof g.tagName=="string"?g.tagName:typeof g.name=="string"?g.name:void 0;Object.defineProperty(x,"name",{value:"node ("+(d.type+(v?"<"+v+">":""))+")"})}return x;function x(){let v=Bk,S,C,E;if((!t||s(d,p,h[h.length-1]||void 0))&&(v=Z2(n(d,h)),v[0]===Jf))return v;if("children"in d&&d.children){const R=d;if(R.children&&v[0]!==H2)for(C=(o?R.children.length:-1)+u,E=h.concat(R);C>-1&&C<R.children.length;){const A=R.children[C];if(S=c(A,C,E)(),S[0]===Jf)return S;C=typeof S[1]=="number"?S[1]:C+u}}return v}}}function Z2(e){return Array.isArray(e)?e:typeof e=="number"?[W2,e]:e==null?Bk:[e]}function op(e,t,n,o){let l,s,u;typeof t=="function"&&typeof n!="function"?(s=void 0,u=t,l=n):(s=t,u=n,l=o),Uk(e,s,c,l);function c(d,p){const h=p[p.length-1],g=h?h.children.indexOf(d):void 0;return u(d,g,h)}}const ed={}.hasOwnProperty,G2={};function q2(e,t){const n=t||G2,o=new Map,l=new Map,s=new Map,u={...A2,...n.handlers},c={all:p,applyData:Y2,definitionById:o,footnoteById:l,footnoteCounts:s,footnoteOrder:[],handlers:u,one:d,options:n,patch:K2,wrap:Q2};return op(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const g=h.type==="definition"?o:l,x=String(h.identifier).toUpperCase();g.has(x)||g.set(x,h)}}),c;function d(h,g){const x=h.type,v=c.handlers[x];if(ed.call(c.handlers,x)&&v)return v(c,h,g);if(c.options.passThrough&&c.options.passThrough.includes(x)){if("children"in h){const{children:C,...E}=h,R=Ea(E);return R.children=c.all(h),R}return Ea(h)}return(c.options.unknownHandler||X2)(c,h,g)}function p(h){const g=[];if("children"in h){const x=h.children;let v=-1;for(;++v<x.length;){const S=c.one(x[v],h);if(S){if(v&&x[v-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=Iy(S.value)),!Array.isArray(S)&&S.type==="element")){const C=S.children[0];C&&C.type==="text"&&(C.value=Iy(C.value))}Array.isArray(S)?g.push(...S):g.push(S)}}}return g}}function K2(e,t){e.position&&(t.position=LN(e))}function Y2(e,t){let n=t;if(e&&e.data){const o=e.data.hName,l=e.data.hChildren,s=e.data.hProperties;if(typeof o=="string")if(n.type==="element")n.tagName=o;else{const u="children"in n?n.children:[n];n={type:"element",tagName:o,properties:{},children:u}}n.type==="element"&&s&&Object.assign(n.properties,Ea(s)),"children"in n&&n.children&&l!==null&&l!==void 0&&(n.children=l)}return n}function X2(e,t){const n=t.data||{},o="value"in t&&!(ed.call(n,"hProperties")||ed.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Q2(e,t){const n=[];let o=-1;for(t&&n.push({type:"text",value:`
62
+ `});++o<e.length;)o&&n.push({type:"text",value:`
63
+ `}),n.push(e[o]);return t&&e.length>0&&n.push({type:"text",value:`
64
+ `}),n}function Iy(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Oy(e,t){const n=q2(e,t),o=n.one(e,void 0),l=z2(n),s=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return l&&s.children.push({type:"text",value:`
65
+ `},l),s}function J2(e,t){return e&&"run"in e?async function(n,o){const l=Oy(n,{file:o,...t});await e.run(l,o)}:function(n,o){return Oy(n,{file:o,...e||t})}}function My(e){if(e)throw e}var mf,Dy;function eO(){if(Dy)return mf;Dy=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},s=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var h=e.call(p,"constructor"),g=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!h&&!g)return!1;var x;for(x in p);return typeof x>"u"||e.call(p,x)},u=function(p,h){n&&h.name==="__proto__"?n(p,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):p[h.name]=h.newValue},c=function(p,h){if(h==="__proto__")if(e.call(p,h)){if(o)return o(p,h).value}else return;return p[h]};return mf=function d(){var p,h,g,x,v,S,C=arguments[0],E=1,R=arguments.length,A=!1;for(typeof C=="boolean"&&(A=C,C=arguments[1]||{},E=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});E<R;++E)if(p=arguments[E],p!=null)for(h in p)g=c(C,h),x=c(p,h),C!==x&&(A&&x&&(s(x)||(v=l(x)))?(v?(v=!1,S=g&&l(g)?g:[]):S=g&&s(g)?g:{},u(C,{name:h,newValue:d(A,S,x)})):typeof x<"u"&&u(C,{name:h,newValue:x}));return C},mf}var tO=eO();const gf=yl(tO);function td(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function nO(){const e=[],t={run:n,use:o};return t;function n(...l){let s=-1;const u=l.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);c(null,...l);function c(d,...p){const h=e[++s];let g=-1;if(d){u(d);return}for(;++g<l.length;)(p[g]===null||p[g]===void 0)&&(p[g]=l[g]);l=p,h?rO(h,c)(...p):u(null,...p)}}function o(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function rO(e,t){let n;return o;function o(...u){const c=e.length>u.length;let d;c&&u.push(l);try{d=e.apply(this,u)}catch(p){const h=p;if(c&&n)throw h;return l(h)}c||(d&&d.then&&typeof d.then=="function"?d.then(s,l):d instanceof Error?l(d):s(d))}function l(u,...c){n||(n=!0,t(u,...c))}function s(u){l(null,u)}}const Mn={basename:iO,dirname:oO,extname:lO,join:sO,sep:"/"};function iO(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');El(e);let n=0,o=-1,l=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(s){n=l+1;break}}else o<0&&(s=!0,o=l+1);return o<0?"":e.slice(n,o)}if(t===e)return"";let u=-1,c=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(s){n=l+1;break}}else u<0&&(s=!0,u=l+1),c>-1&&(e.codePointAt(l)===t.codePointAt(c--)?c<0&&(o=l):(c=-1,o=u));return n===o?o=u:o<0&&(o=e.length),e.slice(n,o)}function oO(e){if(El(e),e.length===0)return".";let t=-1,n=e.length,o;for(;--n;)if(e.codePointAt(n)===47){if(o){t=n;break}}else o||(o=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function lO(e){El(e);let t=e.length,n=-1,o=0,l=-1,s=0,u;for(;t--;){const c=e.codePointAt(t);if(c===47){if(u){o=t+1;break}continue}n<0&&(u=!0,n=t+1),c===46?l<0?l=t:s!==1&&(s=1):l>-1&&(s=-1)}return l<0||n<0||s===0||s===1&&l===n-1&&l===o+1?"":e.slice(l,n)}function sO(...e){let t=-1,n;for(;++t<e.length;)El(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":aO(n)}function aO(e){El(e);const t=e.codePointAt(0)===47;let n=uO(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function uO(e,t){let n="",o=0,l=-1,s=0,u=-1,c,d;for(;++u<=e.length;){if(u<e.length)c=e.codePointAt(u);else{if(c===47)break;c=47}if(c===47){if(!(l===u-1||s===1))if(l!==u-1&&s===2){if(n.length<2||o!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(d=n.lastIndexOf("/"),d!==n.length-1){d<0?(n="",o=0):(n=n.slice(0,d),o=n.length-1-n.lastIndexOf("/")),l=u,s=0;continue}}else if(n.length>0){n="",o=0,l=u,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",o=2)}else n.length>0?n+="/"+e.slice(l+1,u):n=e.slice(l+1,u),o=u-l-1;l=u,s=0}else c===46&&s>-1?s++:s=-1}return n}function El(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const cO={cwd:fO};function fO(){return"/"}function nd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function dO(e){if(typeof e=="string")e=new URL(e);else if(!nd(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return pO(e)}function pO(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const o=t.codePointAt(n+2);if(o===70||o===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const yf=["history","path","basename","stem","extname","dirname"];class Vk{constructor(t){let n;t?nd(t)?n={path:t}:typeof t=="string"||hO(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":cO.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<yf.length;){const s=yf[o];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let l;for(l in n)yf.includes(l)||(this[l]=n[l])}get basename(){return typeof this.path=="string"?Mn.basename(this.path):void 0}set basename(t){xf(t,"basename"),vf(t,"basename"),this.path=Mn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Mn.dirname(this.path):void 0}set dirname(t){jy(this.basename,"dirname"),this.path=Mn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Mn.extname(this.path):void 0}set extname(t){if(vf(t,"extname"),jy(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Mn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){nd(t)&&(t=dO(t)),xf(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Mn.basename(this.path,this.extname):void 0}set stem(t){xf(t,"stem"),vf(t,"stem"),this.path=Mn.join(this.dirname||"",t+(this.extname||""))}fail(t,n,o){const l=this.message(t,n,o);throw l.fatal=!0,l}info(t,n,o){const l=this.message(t,n,o);return l.fatal=void 0,l}message(t,n,o){const l=new Tt(t,n,o);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function vf(e,t){if(e&&e.includes(Mn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Mn.sep+"`")}function xf(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function jy(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function hO(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const mO=(function(e){const o=this.constructor.prototype,l=o[e],s=function(){return l.apply(s,arguments)};return Object.setPrototypeOf(s,o),s}),gO={}.hasOwnProperty;class lp extends mO{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=nO()}copy(){const t=new lp;let n=-1;for(;++n<this.attachers.length;){const o=this.attachers[n];t.use(...o)}return t.data(gf(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(bf("data",this.frozen),this.namespace[t]=n,this):gO.call(this.namespace,t)&&this.namespace[t]||void 0:t?(bf("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const l=n.call(t,...o);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Ys(t),o=this.parser||this.Parser;return wf("parse",o),o(String(n),n)}process(t,n){const o=this;return this.freeze(),wf("process",this.parser||this.Parser),kf("process",this.compiler||this.Compiler),n?l(void 0,n):new Promise(l);function l(s,u){const c=Ys(t),d=o.parse(c);o.run(d,c,function(h,g,x){if(h||!g||!x)return p(h);const v=g,S=o.stringify(v,x);xO(S)?x.value=S:x.result=S,p(h,x)});function p(h,g){h||!g?u(h):s?s(g):n(void 0,g)}}}processSync(t){let n=!1,o;return this.freeze(),wf("processSync",this.parser||this.Parser),kf("processSync",this.compiler||this.Compiler),this.process(t,l),zy("processSync","process",n),o;function l(s,u){n=!0,My(s),o=u}}run(t,n,o){Ly(t),this.freeze();const l=this.transformers;return!o&&typeof n=="function"&&(o=n,n=void 0),o?s(void 0,o):new Promise(s);function s(u,c){const d=Ys(n);l.run(t,d,p);function p(h,g,x){const v=g||t;h?c(h):u?u(v):o(void 0,v,x)}}}runSync(t,n){let o=!1,l;return this.run(t,n,s),zy("runSync","run",o),l;function s(u,c){My(u),l=c,o=!0}}stringify(t,n){this.freeze();const o=Ys(n),l=this.compiler||this.Compiler;return kf("stringify",l),Ly(t),l(t,o)}use(t,...n){const o=this.attachers,l=this.namespace;if(bf("use",this.frozen),t!=null)if(typeof t=="function")d(t,n);else if(typeof t=="object")Array.isArray(t)?c(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(p){if(typeof p=="function")d(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[h,...g]=p;d(h,g)}else u(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function u(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");c(p.plugins),p.settings&&(l.settings=gf(!0,l.settings,p.settings))}function c(p){let h=-1;if(p!=null)if(Array.isArray(p))for(;++h<p.length;){const g=p[h];s(g)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function d(p,h){let g=-1,x=-1;for(;++g<o.length;)if(o[g][0]===p){x=g;break}if(x===-1)o.push([p,...h]);else if(h.length>0){let[v,...S]=h;const C=o[x][1];td(C)&&td(v)&&(v=gf(!0,C,v)),o[x]=[p,v,...S]}}}}const yO=new lp().freeze();function wf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function kf(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function bf(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ly(e){if(!td(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zy(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ys(e){return vO(e)?e:new Vk(e)}function vO(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function xO(e){return typeof e=="string"||wO(e)}function wO(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const kO="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Fy=[],$y={allowDangerousHtml:!0},bO=/^(https?|ircs?|mailto|xmpp)$/i,SO=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function CO(e){const t=_O(e),n=EO(e);return RO(t.runSync(t.parse(n),n),e)}function _O(e){const t=e.rehypePlugins||Fy,n=e.remarkPlugins||Fy,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...$y}:$y;return yO().use(o2).use(n).use(J2,o).use(t)}function EO(e){const t=e.children||"",n=new Vk;return typeof t=="string"&&(n.value=t),n}function RO(e,t){const n=t.allowedElements,o=t.allowElement,l=t.components,s=t.disallowedElements,u=t.skipHtml,c=t.unwrapDisallowed,d=t.urlTransform||TO;for(const h of SO)Object.hasOwn(t,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+kO+h.id,void 0);return op(e,p),UN(e,{Fragment:w.Fragment,components:l,ignoreInvalidStyle:!0,jsx:w.jsx,jsxs:w.jsxs,passKeys:!0,passNode:!0});function p(h,g,x){if(h.type==="raw"&&x&&typeof g=="number")return u?x.children.splice(g,1):x.children[g]={type:"text",value:h.value},g;if(h.type==="element"){let v;for(v in df)if(Object.hasOwn(df,v)&&Object.hasOwn(h.properties,v)){const S=h.properties[v],C=df[v];(C===null||C.includes(h.tagName))&&(h.properties[v]=d(String(S||""),v,h))}}if(h.type==="element"){let v=n?!n.includes(h.tagName):s?s.includes(h.tagName):!1;if(!v&&o&&typeof g=="number"&&(v=!o(h,g,x)),v&&x&&typeof g=="number")return c&&h.children?x.children.splice(g,1,...h.children):x.children.splice(g,1),g}}}function TO(e){const t=e.indexOf(":"),n=e.indexOf("?"),o=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||n!==-1&&t>n||o!==-1&&t>o||bO.test(e.slice(0,t))?e:""}function By(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let o=0,l=n.indexOf(t);for(;l!==-1;)o++,l=n.indexOf(t,l+t.length);return o}function PO(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function NO(e,t,n){const l=Ka((n||{}).ignore||[]),s=AO(t);let u=-1;for(;++u<s.length;)Uk(e,"text",c);function c(p,h){let g=-1,x;for(;++g<h.length;){const v=h[g],S=x?x.children:void 0;if(l(v,S?S.indexOf(v):void 0,x))return;x=v}if(x)return d(p,h)}function d(p,h){const g=h[h.length-1],x=s[u][0],v=s[u][1];let S=0;const E=g.children.indexOf(p);let R=!1,A=[];x.lastIndex=0;let N=x.exec(p.value);for(;N;){const F=N.index,B={index:N.index,input:N.input,stack:[...h,p]};let I=v(...N,B);if(typeof I=="string"&&(I=I.length>0?{type:"text",value:I}:void 0),I===!1?x.lastIndex=F+1:(S!==F&&A.push({type:"text",value:p.value.slice(S,F)}),Array.isArray(I)?A.push(...I):I&&A.push(I),S=F+N[0].length,R=!0),!x.global)break;N=x.exec(p.value)}return R?(S<p.value.length&&A.push({type:"text",value:p.value.slice(S)}),g.children.splice(E,1,...A)):A=[p],E+A.length}}function AO(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let o=-1;for(;++o<n.length;){const l=n[o];t.push([IO(l[0]),OO(l[1])])}return t}function IO(e){return typeof e=="string"?new RegExp(PO(e),"g"):e}function OO(e){return typeof e=="function"?e:function(){return e}}const Sf="phrasing",Cf=["autolink","link","image","label"];function MO(){return{transforms:[BO],enter:{literalAutolink:jO,literalAutolinkEmail:_f,literalAutolinkHttp:_f,literalAutolinkWww:_f},exit:{literalAutolink:$O,literalAutolinkEmail:FO,literalAutolinkHttp:LO,literalAutolinkWww:zO}}}function DO(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Sf,notInConstruct:Cf},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Sf,notInConstruct:Cf},{character:":",before:"[ps]",after:"\\/",inConstruct:Sf,notInConstruct:Cf}]}}function jO(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function _f(e){this.config.enter.autolinkProtocol.call(this,e)}function LO(e){this.config.exit.autolinkProtocol.call(this,e)}function zO(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function FO(e){this.config.exit.autolinkEmail.call(this,e)}function $O(e){this.exit(e)}function BO(e){NO(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,UO],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),VO]],{ignore:["link","linkReference"]})}function UO(e,t,n,o,l){let s="";if(!Wk(l)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!WO(n)))return!1;const u=HO(n+o);if(!u[0])return!1;const c={type:"link",title:null,url:s+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[c,{type:"text",value:u[1]}]:c}function VO(e,t,n,o){return!Wk(o,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function WO(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function HO(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],o=n.indexOf(")");const l=By(e,"(");let s=By(e,")");for(;o!==-1&&l>s;)e+=n.slice(0,o+1),n=n.slice(o+1),o=n.indexOf(")"),s++;return[e,n]}function Wk(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ci(n)||Za(n))&&(!t||n!==47)}Hk.peek=eM;function ZO(){this.buffer()}function GO(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function qO(){this.buffer()}function KO(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function YO(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=bn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function XO(e){this.exit(e)}function QO(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=bn(this.sliceSerialize(e)).toLowerCase(),n.label=t}function JO(e){this.exit(e)}function eM(){return"["}function Hk(e,t,n,o){const l=n.createTracker(o);let s=l.move("[^");const u=n.enter("footnoteReference"),c=n.enter("reference");return s+=l.move(n.safe(n.associationId(e),{after:"]",before:s})),c(),u(),s+=l.move("]"),s}function tM(){return{enter:{gfmFootnoteCallString:ZO,gfmFootnoteCall:GO,gfmFootnoteDefinitionLabelString:qO,gfmFootnoteDefinition:KO},exit:{gfmFootnoteCallString:YO,gfmFootnoteCall:XO,gfmFootnoteDefinitionLabelString:QO,gfmFootnoteDefinition:JO}}}function nM(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Hk},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(o,l,s,u){const c=s.createTracker(u);let d=c.move("[^");const p=s.enter("footnoteDefinition"),h=s.enter("label");return d+=c.move(s.safe(s.associationId(o),{before:d,after:"]"})),h(),d+=c.move("]:"),o.children&&o.children.length>0&&(c.shift(4),d+=c.move((t?`
66
+ `:" ")+s.indentLines(s.containerFlow(o,c.current()),t?Zk:rM))),p(),d}}function rM(e,t,n){return t===0?e:Zk(e,t,n)}function Zk(e,t,n){return(n?"":" ")+e}const iM=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Gk.peek=uM;function oM(){return{canContainEols:["delete"],enter:{strikethrough:sM},exit:{strikethrough:aM}}}function lM(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:iM}],handlers:{delete:Gk}}}function sM(e){this.enter({type:"delete",children:[]},e)}function aM(e){this.exit(e)}function Gk(e,t,n,o){const l=n.createTracker(o),s=n.enter("strikethrough");let u=l.move("~~");return u+=n.containerPhrasing(e,{...l.current(),before:u,after:"~"}),u+=l.move("~~"),s(),u}function uM(){return"~"}function cM(e){return e.length}function fM(e,t){const n=t||{},o=(n.align||[]).concat(),l=n.stringLength||cM,s=[],u=[],c=[],d=[];let p=0,h=-1;for(;++h<e.length;){const C=[],E=[];let R=-1;for(e[h].length>p&&(p=e[h].length);++R<e[h].length;){const A=dM(e[h][R]);if(n.alignDelimiters!==!1){const N=l(A);E[R]=N,(d[R]===void 0||N>d[R])&&(d[R]=N)}C.push(A)}u[h]=C,c[h]=E}let g=-1;if(typeof o=="object"&&"length"in o)for(;++g<p;)s[g]=Uy(o[g]);else{const C=Uy(o);for(;++g<p;)s[g]=C}g=-1;const x=[],v=[];for(;++g<p;){const C=s[g];let E="",R="";C===99?(E=":",R=":"):C===108?E=":":C===114&&(R=":");let A=n.alignDelimiters===!1?1:Math.max(1,d[g]-E.length-R.length);const N=E+"-".repeat(A)+R;n.alignDelimiters!==!1&&(A=E.length+A+R.length,A>d[g]&&(d[g]=A),v[g]=A),x[g]=N}u.splice(1,0,x),c.splice(1,0,v),h=-1;const S=[];for(;++h<u.length;){const C=u[h],E=c[h];g=-1;const R=[];for(;++g<p;){const A=C[g]||"";let N="",F="";if(n.alignDelimiters!==!1){const B=d[g]-(E[g]||0),I=s[g];I===114?N=" ".repeat(B):I===99?B%2?(N=" ".repeat(B/2+.5),F=" ".repeat(B/2-.5)):(N=" ".repeat(B/2),F=N):F=" ".repeat(B)}n.delimiterStart!==!1&&!g&&R.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&A==="")&&(n.delimiterStart!==!1||g)&&R.push(" "),n.alignDelimiters!==!1&&R.push(N),R.push(A),n.alignDelimiters!==!1&&R.push(F),n.padding!==!1&&R.push(" "),(n.delimiterEnd!==!1||g!==p-1)&&R.push("|")}S.push(n.delimiterEnd===!1?R.join("").replace(/ +$/,""):R.join(""))}return S.join(`
67
+ `)}function dM(e){return e==null?"":String(e)}function Uy(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function pM(e,t,n,o){const l=n.enter("blockquote"),s=n.createTracker(o);s.move("> "),s.shift(2);const u=n.indentLines(n.containerFlow(e,s.current()),hM);return l(),u}function hM(e,t,n){return">"+(n?"":" ")+e}function mM(e,t){return Vy(e,t.inConstruct,!0)&&!Vy(e,t.notInConstruct,!1)}function Vy(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let o=-1;for(;++o<t.length;)if(e.includes(t[o]))return!0;return!1}function Wy(e,t,n,o){let l=-1;for(;++l<n.unsafe.length;)if(n.unsafe[l].character===`
68
+ `&&mM(n.stack,n.unsafe[l]))return/[ \t]/.test(o.before)?"":" ";return`\\
69
+ `}function gM(e,t){const n=String(e);let o=n.indexOf(t),l=o,s=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;o!==-1;)o===l?++s>u&&(u=s):s=1,l=o+t.length,o=n.indexOf(t,l);return u}function yM(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function vM(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function xM(e,t,n,o){const l=vM(n),s=e.value||"",u=l==="`"?"GraveAccent":"Tilde";if(yM(e,n)){const g=n.enter("codeIndented"),x=n.indentLines(s,wM);return g(),x}const c=n.createTracker(o),d=l.repeat(Math.max(gM(s,l)+1,3)),p=n.enter("codeFenced");let h=c.move(d);if(e.lang){const g=n.enter(`codeFencedLang${u}`);h+=c.move(n.safe(e.lang,{before:h,after:" ",encode:["`"],...c.current()})),g()}if(e.lang&&e.meta){const g=n.enter(`codeFencedMeta${u}`);h+=c.move(" "),h+=c.move(n.safe(e.meta,{before:h,after:`
70
+ `,encode:["`"],...c.current()})),g()}return h+=c.move(`
71
+ `),s&&(h+=c.move(s+`
72
+ `)),h+=c.move(d),p(),h}function wM(e,t,n){return(n?"":" ")+e}function sp(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function kM(e,t,n,o){const l=sp(n),s=l==='"'?"Quote":"Apostrophe",u=n.enter("definition");let c=n.enter("label");const d=n.createTracker(o);let p=d.move("[");return p+=d.move(n.safe(n.associationId(e),{before:p,after:"]",...d.current()})),p+=d.move("]: "),c(),!e.url||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),p+=d.move("<"),p+=d.move(n.safe(e.url,{before:p,after:">",...d.current()})),p+=d.move(">")):(c=n.enter("destinationRaw"),p+=d.move(n.safe(e.url,{before:p,after:e.title?" ":`
73
+ `,...d.current()}))),c(),e.title&&(c=n.enter(`title${s}`),p+=d.move(" "+l),p+=d.move(n.safe(e.title,{before:p,after:l,...d.current()})),p+=d.move(l),c()),u(),p}function bM(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function gl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ra(e,t,n){const o=no(e),l=no(t);return o===void 0?l===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}qk.peek=SM;function qk(e,t,n,o){const l=bM(n),s=n.enter("emphasis"),u=n.createTracker(o),c=u.move(l);let d=u.move(n.containerPhrasing(e,{after:l,before:c,...u.current()}));const p=d.charCodeAt(0),h=Ra(o.before.charCodeAt(o.before.length-1),p,l);h.inside&&(d=gl(p)+d.slice(1));const g=d.charCodeAt(d.length-1),x=Ra(o.after.charCodeAt(0),g,l);x.inside&&(d=d.slice(0,-1)+gl(g));const v=u.move(l);return s(),n.attentionEncodeSurroundingInfo={after:x.outside,before:h.outside},c+d+v}function SM(e,t,n){return n.options.emphasis||"*"}function CM(e,t){let n=!1;return op(e,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return n=!0,Jf}),!!((!e.depth||e.depth<3)&&Qd(e)&&(t.options.setext||n))}function _M(e,t,n,o){const l=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(o);if(CM(e,n)){const h=n.enter("headingSetext"),g=n.enter("phrasing"),x=n.containerPhrasing(e,{...s.current(),before:`
74
+ `,after:`
75
+ `});return g(),h(),x+`
76
+ `+(l===1?"=":"-").repeat(x.length-(Math.max(x.lastIndexOf("\r"),x.lastIndexOf(`
77
+ `))+1))}const u="#".repeat(l),c=n.enter("headingAtx"),d=n.enter("phrasing");s.move(u+" ");let p=n.containerPhrasing(e,{before:"# ",after:`
78
+ `,...s.current()});return/^[\t ]/.test(p)&&(p=gl(p.charCodeAt(0))+p.slice(1)),p=p?u+" "+p:u,n.options.closeAtx&&(p+=" "+u),d(),c(),p}Kk.peek=EM;function Kk(e){return e.value||""}function EM(){return"<"}Yk.peek=RM;function Yk(e,t,n,o){const l=sp(n),s=l==='"'?"Quote":"Apostrophe",u=n.enter("image");let c=n.enter("label");const d=n.createTracker(o);let p=d.move("![");return p+=d.move(n.safe(e.alt,{before:p,after:"]",...d.current()})),p+=d.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),p+=d.move("<"),p+=d.move(n.safe(e.url,{before:p,after:">",...d.current()})),p+=d.move(">")):(c=n.enter("destinationRaw"),p+=d.move(n.safe(e.url,{before:p,after:e.title?" ":")",...d.current()}))),c(),e.title&&(c=n.enter(`title${s}`),p+=d.move(" "+l),p+=d.move(n.safe(e.title,{before:p,after:l,...d.current()})),p+=d.move(l),c()),p+=d.move(")"),u(),p}function RM(){return"!"}Xk.peek=TM;function Xk(e,t,n,o){const l=e.referenceType,s=n.enter("imageReference");let u=n.enter("label");const c=n.createTracker(o);let d=c.move("![");const p=n.safe(e.alt,{before:d,after:"]",...c.current()});d+=c.move(p+"]["),u();const h=n.stack;n.stack=[],u=n.enter("reference");const g=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return u(),n.stack=h,s(),l==="full"||!p||p!==g?d+=c.move(g+"]"):l==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function TM(){return"!"}Qk.peek=PM;function Qk(e,t,n){let o=e.value||"",l="`",s=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(o);)l+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++s<n.unsafe.length;){const u=n.unsafe[s],c=n.compilePattern(u);let d;if(u.atBreak)for(;d=c.exec(o);){let p=d.index;o.charCodeAt(p)===10&&o.charCodeAt(p-1)===13&&p--,o=o.slice(0,p)+" "+o.slice(d.index+1)}}return l+o+l}function PM(){return"`"}function Jk(e,t){const n=Qd(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}e0.peek=NM;function e0(e,t,n,o){const l=sp(n),s=l==='"'?"Quote":"Apostrophe",u=n.createTracker(o);let c,d;if(Jk(e,n)){const h=n.stack;n.stack=[],c=n.enter("autolink");let g=u.move("<");return g+=u.move(n.containerPhrasing(e,{before:g,after:">",...u.current()})),g+=u.move(">"),c(),n.stack=h,g}c=n.enter("link"),d=n.enter("label");let p=u.move("[");return p+=u.move(n.containerPhrasing(e,{before:p,after:"](",...u.current()})),p+=u.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=n.enter("destinationLiteral"),p+=u.move("<"),p+=u.move(n.safe(e.url,{before:p,after:">",...u.current()})),p+=u.move(">")):(d=n.enter("destinationRaw"),p+=u.move(n.safe(e.url,{before:p,after:e.title?" ":")",...u.current()}))),d(),e.title&&(d=n.enter(`title${s}`),p+=u.move(" "+l),p+=u.move(n.safe(e.title,{before:p,after:l,...u.current()})),p+=u.move(l),d()),p+=u.move(")"),c(),p}function NM(e,t,n){return Jk(e,n)?"<":"["}t0.peek=AM;function t0(e,t,n,o){const l=e.referenceType,s=n.enter("linkReference");let u=n.enter("label");const c=n.createTracker(o);let d=c.move("[");const p=n.containerPhrasing(e,{before:d,after:"]",...c.current()});d+=c.move(p+"]["),u();const h=n.stack;n.stack=[],u=n.enter("reference");const g=n.safe(n.associationId(e),{before:d,after:"]",...c.current()});return u(),n.stack=h,s(),l==="full"||!p||p!==g?d+=c.move(g+"]"):l==="shortcut"?d=d.slice(0,-1):d+=c.move("]"),d}function AM(){return"["}function ap(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function IM(e){const t=ap(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function OM(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function n0(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function MM(e,t,n,o){const l=n.enter("list"),s=n.bulletCurrent;let u=e.ordered?OM(n):ap(n);const c=e.ordered?u==="."?")":".":IM(n);let d=t&&n.bulletLastUsed?u===n.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&h&&(!h.children||!h.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(d=!0),n0(n)===u&&h){let g=-1;for(;++g<e.children.length;){const x=e.children[g];if(x&&x.type==="listItem"&&x.children&&x.children[0]&&x.children[0].type==="thematicBreak"){d=!0;break}}}}d&&(u=c),n.bulletCurrent=u;const p=n.containerFlow(e,o);return n.bulletLastUsed=u,n.bulletCurrent=s,l(),p}function DM(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function jM(e,t,n,o){const l=DM(n);let s=n.bulletCurrent||ap(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let u=s.length+1;(l==="tab"||l==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const c=n.createTracker(o);c.move(s+" ".repeat(u-s.length)),c.shift(u);const d=n.enter("listItem"),p=n.indentLines(n.containerFlow(e,c.current()),h);return d(),p;function h(g,x,v){return x?(v?"":" ".repeat(u))+g:(v?s:s+" ".repeat(u-s.length))+g}}function LM(e,t,n,o){const l=n.enter("paragraph"),s=n.enter("phrasing"),u=n.containerPhrasing(e,o);return s(),l(),u}const zM=Ka(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function FM(e,t,n,o){return(e.children.some(function(u){return zM(u)})?n.containerPhrasing:n.containerFlow).call(n,e,o)}function $M(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}r0.peek=BM;function r0(e,t,n,o){const l=$M(n),s=n.enter("strong"),u=n.createTracker(o),c=u.move(l+l);let d=u.move(n.containerPhrasing(e,{after:l,before:c,...u.current()}));const p=d.charCodeAt(0),h=Ra(o.before.charCodeAt(o.before.length-1),p,l);h.inside&&(d=gl(p)+d.slice(1));const g=d.charCodeAt(d.length-1),x=Ra(o.after.charCodeAt(0),g,l);x.inside&&(d=d.slice(0,-1)+gl(g));const v=u.move(l+l);return s(),n.attentionEncodeSurroundingInfo={after:x.outside,before:h.outside},c+d+v}function BM(e,t,n){return n.options.strong||"*"}function UM(e,t,n,o){return n.safe(e.value,o)}function VM(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function WM(e,t,n){const o=(n0(n)+(n.options.ruleSpaces?" ":"")).repeat(VM(n));return n.options.ruleSpaces?o.slice(0,-1):o}const i0={blockquote:pM,break:Wy,code:xM,definition:kM,emphasis:qk,hardBreak:Wy,heading:_M,html:Kk,image:Yk,imageReference:Xk,inlineCode:Qk,link:e0,linkReference:t0,list:MM,listItem:jM,paragraph:LM,root:FM,strong:r0,text:UM,thematicBreak:WM};function HM(){return{enter:{table:ZM,tableData:Hy,tableHeader:Hy,tableRow:qM},exit:{codeText:KM,table:GM,tableData:Ef,tableHeader:Ef,tableRow:Ef}}}function ZM(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function GM(e){this.exit(e),this.data.inTable=void 0}function qM(e){this.enter({type:"tableRow",children:[]},e)}function Ef(e){this.exit(e)}function Hy(e){this.enter({type:"tableCell",children:[]},e)}function KM(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,YM));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function YM(e,t){return t==="|"?t:e}function XM(e){const t=e||{},n=t.tableCellPadding,o=t.tablePipeAlign,l=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
79
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:x,table:u,tableCell:d,tableRow:c}};function u(v,S,C,E){return p(h(v,C,E),v.align)}function c(v,S,C,E){const R=g(v,C,E),A=p([R]);return A.slice(0,A.indexOf(`
80
+ `))}function d(v,S,C,E){const R=C.enter("tableCell"),A=C.enter("phrasing"),N=C.containerPhrasing(v,{...E,before:s,after:s});return A(),R(),N}function p(v,S){return fM(v,{align:S,alignDelimiters:o,padding:n,stringLength:l})}function h(v,S,C){const E=v.children;let R=-1;const A=[],N=S.enter("table");for(;++R<E.length;)A[R]=g(E[R],S,C);return N(),A}function g(v,S,C){const E=v.children;let R=-1;const A=[],N=S.enter("tableRow");for(;++R<E.length;)A[R]=d(E[R],v,S,C);return N(),A}function x(v,S,C){let E=i0.inlineCode(v,S,C);return C.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function QM(){return{exit:{taskListCheckValueChecked:Zy,taskListCheckValueUnchecked:Zy,paragraph:eD}}}function JM(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:tD}}}function Zy(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function eD(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const o=n.children[0];if(o&&o.type==="text"){const l=t.children;let s=-1,u;for(;++s<l.length;){const c=l[s];if(c.type==="paragraph"){u=c;break}}u===n&&(o.value=o.value.slice(1),o.value.length===0?n.children.shift():n.position&&o.position&&typeof o.position.start.offset=="number"&&(o.position.start.column++,o.position.start.offset++,n.position.start=Object.assign({},o.position.start)))}}this.exit(e)}function tD(e,t,n,o){const l=e.children[0],s=typeof e.checked=="boolean"&&l&&l.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",c=n.createTracker(o);s&&c.move(u);let d=i0.listItem(e,t,n,{...o,...c.current()});return s&&(d=d.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),d;function p(h){return h+u}}function nD(){return[MO(),tM(),oM(),HM(),QM()]}function rD(e){return{extensions:[DO(),nM(e),lM(),XM(e),JM()]}}const iD={tokenize:cD,partial:!0},o0={tokenize:fD,partial:!0},l0={tokenize:dD,partial:!0},s0={tokenize:pD,partial:!0},oD={tokenize:hD,partial:!0},a0={name:"wwwAutolink",tokenize:aD,previous:c0},u0={name:"protocolAutolink",tokenize:uD,previous:f0},fr={name:"emailAutolink",tokenize:sD,previous:d0},Zn={};function lD(){return{text:Zn}}let ri=48;for(;ri<123;)Zn[ri]=fr,ri++,ri===58?ri=65:ri===91&&(ri=97);Zn[43]=fr;Zn[45]=fr;Zn[46]=fr;Zn[95]=fr;Zn[72]=[fr,u0];Zn[104]=[fr,u0];Zn[87]=[fr,a0];Zn[119]=[fr,a0];function sD(e,t,n){const o=this;let l,s;return u;function u(g){return!rd(g)||!d0.call(o,o.previous)||up(o.events)?n(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),c(g))}function c(g){return rd(g)?(e.consume(g),c):g===64?(e.consume(g),d):n(g)}function d(g){return g===46?e.check(oD,h,p)(g):g===45||g===95||Rt(g)?(s=!0,e.consume(g),d):h(g)}function p(g){return e.consume(g),l=!0,d}function h(g){return s&&l&&It(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(g)):n(g)}}function aD(e,t,n){const o=this;return l;function l(u){return u!==87&&u!==119||!c0.call(o,o.previous)||up(o.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(iD,e.attempt(o0,e.attempt(l0,s),n),n)(u))}function s(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function uD(e,t,n){const o=this;let l="",s=!1;return u;function u(g){return(g===72||g===104)&&f0.call(o,o.previous)&&!up(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(g),e.consume(g),c):n(g)}function c(g){if(It(g)&&l.length<5)return l+=String.fromCodePoint(g),e.consume(g),c;if(g===58){const x=l.toLowerCase();if(x==="http"||x==="https")return e.consume(g),d}return n(g)}function d(g){return g===47?(e.consume(g),s?p:(s=!0,d)):n(g)}function p(g){return g===null||Ca(g)||Ye(g)||ci(g)||Za(g)?n(g):e.attempt(o0,e.attempt(l0,h),n)(g)}function h(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(g)}}function cD(e,t,n){let o=0;return l;function l(u){return(u===87||u===119)&&o<3?(o++,e.consume(u),l):u===46&&o===3?(e.consume(u),s):n(u)}function s(u){return u===null?n(u):t(u)}}function fD(e,t,n){let o,l,s;return u;function u(p){return p===46||p===95?e.check(s0,d,c)(p):p===null||Ye(p)||ci(p)||p!==45&&Za(p)?d(p):(s=!0,e.consume(p),u)}function c(p){return p===95?o=!0:(l=o,o=void 0),e.consume(p),u}function d(p){return l||o||!s?n(p):t(p)}}function dD(e,t){let n=0,o=0;return l;function l(u){return u===40?(n++,e.consume(u),l):u===41&&o<n?s(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(s0,t,s)(u):u===null||Ye(u)||ci(u)?t(u):(e.consume(u),l)}function s(u){return u===41&&o++,e.consume(u),l}}function pD(e,t,n){return o;function o(c){return c===33||c===34||c===39||c===41||c===42||c===44||c===46||c===58||c===59||c===63||c===95||c===126?(e.consume(c),o):c===38?(e.consume(c),s):c===93?(e.consume(c),l):c===60||c===null||Ye(c)||ci(c)?t(c):n(c)}function l(c){return c===null||c===40||c===91||Ye(c)||ci(c)?t(c):o(c)}function s(c){return It(c)?u(c):n(c)}function u(c){return c===59?(e.consume(c),o):It(c)?(e.consume(c),u):n(c)}}function hD(e,t,n){return o;function o(s){return e.consume(s),l}function l(s){return Rt(s)?n(s):t(s)}}function c0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Ye(e)}function f0(e){return!It(e)}function d0(e){return!(e===47||rd(e))}function rd(e){return e===43||e===45||e===46||e===95||Rt(e)}function up(e){let t=e.length,n=!1;for(;t--;){const o=e[t][1];if((o.type==="labelLink"||o.type==="labelImage")&&!o._balanced){n=!0;break}if(o._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const mD={tokenize:SD,partial:!0};function gD(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:wD,continuation:{tokenize:kD},exit:bD}},text:{91:{name:"gfmFootnoteCall",tokenize:xD},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:yD,resolveTo:vD}}}}function yD(e,t,n){const o=this;let l=o.events.length;const s=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let u;for(;l--;){const d=o.events[l][1];if(d.type==="labelImage"){u=d;break}if(d.type==="gfmFootnoteCall"||d.type==="labelLink"||d.type==="label"||d.type==="image"||d.type==="link")break}return c;function c(d){if(!u||!u._balanced)return n(d);const p=bn(o.sliceSerialize({start:u.end,end:o.now()}));return p.codePointAt(0)!==94||!s.includes(p.slice(1))?n(d):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),t(d))}}function vD(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},c=[e[n+1],e[n+2],["enter",o,t],e[n+3],e[n+4],["enter",l,t],["exit",l,t],["enter",s,t],["enter",u,t],["exit",u,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",o,t]];return e.splice(n,e.length-n+1,...c),e}function xD(e,t,n){const o=this,l=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let s=0,u;return c;function c(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),d}function d(g){return g!==94?n(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(g){if(s>999||g===93&&!u||g===null||g===91||Ye(g))return n(g);if(g===93){e.exit("chunkString");const x=e.exit("gfmFootnoteCallString");return l.includes(bn(o.sliceSerialize(x)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(g)}return Ye(g)||(u=!0),s++,e.consume(g),g===92?h:p}function h(g){return g===91||g===92||g===93?(e.consume(g),s++,p):p(g)}}function wD(e,t,n){const o=this,l=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let s,u=0,c;return d;function d(S){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(S){return S===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):n(S)}function h(S){if(u>999||S===93&&!c||S===null||S===91||Ye(S))return n(S);if(S===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return s=bn(o.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(S),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),x}return Ye(S)||(c=!0),u++,e.consume(S),S===92?g:h}function g(S){return S===91||S===92||S===93?(e.consume(S),u++,h):h(S)}function x(S){return S===58?(e.enter("definitionMarker"),e.consume(S),e.exit("definitionMarker"),l.includes(s)||l.push(s),Ue(e,v,"gfmFootnoteDefinitionWhitespace")):n(S)}function v(S){return t(S)}}function kD(e,t,n){return e.check(_l,t,e.attempt(mD,t,n))}function bD(e){e.exit("gfmFootnoteDefinition")}function SD(e,t,n){const o=this;return Ue(e,l,"gfmFootnoteDefinitionIndent",5);function l(s){const u=o.events[o.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(s):n(s)}}function CD(e){let n=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:s,resolveAll:l};return n==null&&(n=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function l(u,c){let d=-1;for(;++d<u.length;)if(u[d][0]==="enter"&&u[d][1].type==="strikethroughSequenceTemporary"&&u[d][1]._close){let p=d;for(;p--;)if(u[p][0]==="exit"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._open&&u[d][1].end.offset-u[d][1].start.offset===u[p][1].end.offset-u[p][1].start.offset){u[d][1].type="strikethroughSequence",u[p][1].type="strikethroughSequence";const h={type:"strikethrough",start:Object.assign({},u[p][1].start),end:Object.assign({},u[d][1].end)},g={type:"strikethroughText",start:Object.assign({},u[p][1].end),end:Object.assign({},u[d][1].start)},x=[["enter",h,c],["enter",u[p][1],c],["exit",u[p][1],c],["enter",g,c]],v=c.parser.constructs.insideSpan.null;v&&Qt(x,x.length,0,Ga(v,u.slice(p+1,d),c)),Qt(x,x.length,0,[["exit",g,c],["enter",u[d][1],c],["exit",u[d][1],c],["exit",h,c]]),Qt(u,p-1,d-p+3,x),d=p+x.length-2;break}}for(d=-1;++d<u.length;)u[d][1].type==="strikethroughSequenceTemporary"&&(u[d][1].type="data");return u}function s(u,c,d){const p=this.previous,h=this.events;let g=0;return x;function x(S){return p===126&&h[h.length-1][1].type!=="characterEscape"?d(S):(u.enter("strikethroughSequenceTemporary"),v(S))}function v(S){const C=no(p);if(S===126)return g>1?d(S):(u.consume(S),g++,v);if(g<2&&!n)return d(S);const E=u.exit("strikethroughSequenceTemporary"),R=no(S);return E._open=!R||R===2&&!!C,E._close=!C||C===2&&!!R,c(S)}}}class _D{constructor(){this.map=[]}add(t,n,o){ED(this,t,n,o)}consume(t){if(this.map.sort(function(s,u){return s[0]-u[0]}),this.map.length===0)return;let n=this.map.length;const o=[];for(;n>0;)n-=1,o.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];o.push(t.slice()),t.length=0;let l=o.pop();for(;l;){for(const s of l)t.push(s);l=o.pop()}this.map.length=0}}function ED(e,t,n,o){let l=0;if(!(n===0&&o.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=n,e.map[l][2].push(...o);return}l+=1}e.map.push([t,n,o])}}function RD(e,t){let n=!1;const o=[];for(;t<e.length;){const l=e[t];if(n){if(l[0]==="enter")l[1].type==="tableContent"&&o.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=o.length-1;o[s]=o[s]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return o}function TD(){return{flow:{null:{name:"table",tokenize:PD,resolveAll:ND}}}}function PD(e,t,n){const o=this;let l=0,s=0,u;return c;function c(D){let q=o.events.length-1;for(;q>-1;){const te=o.events[q][1].type;if(te==="lineEnding"||te==="linePrefix")q--;else break}const J=q>-1?o.events[q][1].type:null,ue=J==="tableHead"||J==="tableRow"?I:d;return ue===I&&o.parser.lazy[o.now().line]?n(D):ue(D)}function d(D){return e.enter("tableHead"),e.enter("tableRow"),p(D)}function p(D){return D===124||(u=!0,s+=1),h(D)}function h(D){return D===null?n(D):_e(D)?s>1?(s=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),v):n(D):$e(D)?Ue(e,h,"whitespace")(D):(s+=1,u&&(u=!1,l+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),u=!0,h):(e.enter("data"),g(D)))}function g(D){return D===null||D===124||Ye(D)?(e.exit("data"),h(D)):(e.consume(D),D===92?x:g)}function x(D){return D===92||D===124?(e.consume(D),g):g(D)}function v(D){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(D):(e.enter("tableDelimiterRow"),u=!1,$e(D)?Ue(e,S,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):S(D))}function S(D){return D===45||D===58?E(D):D===124?(u=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),C):B(D)}function C(D){return $e(D)?Ue(e,E,"whitespace")(D):E(D)}function E(D){return D===58?(s+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),R):D===45?(s+=1,R(D)):D===null||_e(D)?F(D):B(D)}function R(D){return D===45?(e.enter("tableDelimiterFiller"),A(D)):B(D)}function A(D){return D===45?(e.consume(D),A):D===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),N):(e.exit("tableDelimiterFiller"),N(D))}function N(D){return $e(D)?Ue(e,F,"whitespace")(D):F(D)}function F(D){return D===124?S(D):D===null||_e(D)?!u||l!==s?B(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(D)):B(D)}function B(D){return n(D)}function I(D){return e.enter("tableRow"),W(D)}function W(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),W):D===null||_e(D)?(e.exit("tableRow"),t(D)):$e(D)?Ue(e,W,"whitespace")(D):(e.enter("data"),V(D))}function V(D){return D===null||D===124||Ye(D)?(e.exit("data"),W(D)):(e.consume(D),D===92?Y:V)}function Y(D){return D===92||D===124?(e.consume(D),V):V(D)}}function ND(e,t){let n=-1,o=!0,l=0,s=[0,0,0,0],u=[0,0,0,0],c=!1,d=0,p,h,g;const x=new _D;for(;++n<e.length;){const v=e[n],S=v[1];v[0]==="enter"?S.type==="tableHead"?(c=!1,d!==0&&(Gy(x,t,d,p,h),h=void 0,d=0),p={type:"table",start:Object.assign({},S.start),end:Object.assign({},S.end)},x.add(n,0,[["enter",p,t]])):S.type==="tableRow"||S.type==="tableDelimiterRow"?(o=!0,g=void 0,s=[0,0,0,0],u=[0,n+1,0,0],c&&(c=!1,h={type:"tableBody",start:Object.assign({},S.start),end:Object.assign({},S.end)},x.add(n,0,[["enter",h,t]])),l=S.type==="tableDelimiterRow"?2:h?3:1):l&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")?(o=!1,u[2]===0&&(s[1]!==0&&(u[0]=u[1],g=Xs(x,t,s,l,void 0,g),s=[0,0,0,0]),u[2]=n)):S.type==="tableCellDivider"&&(o?o=!1:(s[1]!==0&&(u[0]=u[1],g=Xs(x,t,s,l,void 0,g)),s=u,u=[s[1],n,0,0])):S.type==="tableHead"?(c=!0,d=n):S.type==="tableRow"||S.type==="tableDelimiterRow"?(d=n,s[1]!==0?(u[0]=u[1],g=Xs(x,t,s,l,n,g)):u[1]!==0&&(g=Xs(x,t,u,l,n,g)),l=0):l&&(S.type==="data"||S.type==="tableDelimiterMarker"||S.type==="tableDelimiterFiller")&&(u[3]=n)}for(d!==0&&Gy(x,t,d,p,h),x.consume(t.events),n=-1;++n<t.events.length;){const v=t.events[n];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=RD(t.events,n))}return e}function Xs(e,t,n,o,l,s){const u=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",c="tableContent";n[0]!==0&&(s.end=Object.assign({},qi(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const d=qi(t.events,n[1]);if(s={type:u,start:Object.assign({},d),end:Object.assign({},d)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const p=qi(t.events,n[2]),h=qi(t.events,n[3]),g={type:c,start:Object.assign({},p),end:Object.assign({},h)};if(e.add(n[2],0,[["enter",g,t]]),o!==2){const x=t.events[n[2]],v=t.events[n[3]];if(x[1].end=Object.assign({},v[1].end),x[1].type="chunkText",x[1].contentType="text",n[3]>n[2]+1){const S=n[2]+1,C=n[3]-n[2]-1;e.add(S,C,[])}}e.add(n[3]+1,0,[["exit",g,t]])}return l!==void 0&&(s.end=Object.assign({},qi(t.events,l)),e.add(l,0,[["exit",s,t]]),s=void 0),s}function Gy(e,t,n,o,l){const s=[],u=qi(t.events,n);l&&(l.end=Object.assign({},u),s.push(["exit",l,t])),o.end=Object.assign({},u),s.push(["exit",o,t]),e.add(n+1,0,s)}function qi(e,t){const n=e[t],o=n[0]==="enter"?"start":"end";return n[1][o]}const AD={name:"tasklistCheck",tokenize:OD};function ID(){return{text:{91:AD}}}function OD(e,t,n){const o=this;return l;function l(d){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?n(d):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),s)}function s(d){return Ye(d)?(e.enter("taskListCheckValueUnchecked"),e.consume(d),e.exit("taskListCheckValueUnchecked"),u):d===88||d===120?(e.enter("taskListCheckValueChecked"),e.consume(d),e.exit("taskListCheckValueChecked"),u):n(d)}function u(d){return d===93?(e.enter("taskListCheckMarker"),e.consume(d),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),c):n(d)}function c(d){return _e(d)?t(d):$e(d)?e.check({tokenize:MD},t,n)(d):n(d)}}function MD(e,t,n){return Ue(e,o,"whitespace");function o(l){return l===null?n(l):t(l)}}function DD(e){return Sk([lD(),gD(),CD(e),TD(),ID()])}const jD={};function LD(e){const t=this,n=e||jD,o=t.data(),l=o.micromarkExtensions||(o.micromarkExtensions=[]),s=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),u=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);l.push(DD(n)),s.push(nD()),u.push(rD(n))}const zD=cd("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-medium",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",outline:"text-foreground",success:"border-transparent bg-emerald-500/15 text-emerald-700 dark:text-emerald-200",danger:"border-transparent bg-rose-500/15 text-rose-700 dark:text-rose-200"}},defaultVariants:{variant:"default"}});function p0({className:e,variant:t,...n}){return w.jsx("div",{className:Oe(zD({variant:t}),e),...n})}const Xa=k.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,className:Oe("rounded-xl border border-border bg-card text-card-foreground shadow-sm shadow-black/5",e),...t}));Xa.displayName="Card";const Qa=k.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,className:Oe("flex flex-col space-y-1.5 p-4",e),...t}));Qa.displayName="CardHeader";const Ja=k.forwardRef(({className:e,...t},n)=>w.jsx("h3",{ref:n,className:Oe("text-base font-semibold leading-none tracking-tight",e),...t}));Ja.displayName="CardTitle";const FD=k.forwardRef(({className:e,...t},n)=>w.jsx("p",{ref:n,className:Oe("text-sm text-muted-foreground",e),...t}));FD.displayName="CardDescription";const eu=k.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,className:Oe("p-4 pt-0",e),...t}));eu.displayName="CardContent";const $D=k.forwardRef(({className:e,...t},n)=>w.jsx("div",{ref:n,className:Oe("flex items-center p-4 pt-0",e),...t}));$D.displayName="CardFooter";var tu="Collapsible",[BD,h0]=Vn(tu),[UD,cp]=BD(tu),m0=k.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:o,defaultOpen:l,disabled:s,onOpenChange:u,...c}=e,[d,p]=fi({prop:o,defaultProp:l??!1,onChange:u,caller:tu});return w.jsx(UD,{scope:n,disabled:s,contentId:sr(),open:d,onOpenToggle:k.useCallback(()=>p(h=>!h),[p]),children:w.jsx(Ve.div,{"data-state":dp(d),"data-disabled":s?"":void 0,...c,ref:t})})});m0.displayName=tu;var g0="CollapsibleTrigger",y0=k.forwardRef((e,t)=>{const{__scopeCollapsible:n,...o}=e,l=cp(g0,n);return w.jsx(Ve.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":dp(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...o,ref:t,onClick:Ee(e.onClick,l.onOpenToggle)})});y0.displayName=g0;var fp="CollapsibleContent",v0=k.forwardRef((e,t)=>{const{forceMount:n,...o}=e,l=cp(fp,e.__scopeCollapsible);return w.jsx(Ut,{present:n||l.open,children:({present:s})=>w.jsx(VD,{...o,ref:t,present:s})})});v0.displayName=fp;var VD=k.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:o,children:l,...s}=e,u=cp(fp,n),[c,d]=k.useState(o),p=k.useRef(null),h=tt(t,p),g=k.useRef(0),x=g.current,v=k.useRef(0),S=v.current,C=u.open||c,E=k.useRef(C),R=k.useRef(void 0);return k.useEffect(()=>{const A=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(A)},[]),Bn(()=>{const A=p.current;if(A){R.current=R.current||{transitionDuration:A.style.transitionDuration,animationName:A.style.animationName},A.style.transitionDuration="0s",A.style.animationName="none";const N=A.getBoundingClientRect();g.current=N.height,v.current=N.width,E.current||(A.style.transitionDuration=R.current.transitionDuration,A.style.animationName=R.current.animationName),d(o)}},[u.open,o]),w.jsx(Ve.div,{"data-state":dp(u.open),"data-disabled":u.disabled?"":void 0,id:u.contentId,hidden:!C,...s,ref:h,style:{"--radix-collapsible-content-height":x?`${x}px`:void 0,"--radix-collapsible-content-width":S?`${S}px`:void 0,...e.style},children:C&&l})});function dp(e){return e?"open":"closed"}var WD=m0,HD=y0,ZD=v0,Rn="Accordion",GD=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[pp,qD,KD]=vd(Rn),[nu]=Vn(Rn,[KD,h0]),hp=h0(),x0=Ce.forwardRef((e,t)=>{const{type:n,...o}=e,l=o,s=o;return w.jsx(pp.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?w.jsx(JD,{...s,ref:t}):w.jsx(QD,{...l,ref:t})})});x0.displayName=Rn;var[w0,YD]=nu(Rn),[k0,XD]=nu(Rn,{collapsible:!1}),QD=Ce.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:l=()=>{},collapsible:s=!1,...u}=e,[c,d]=fi({prop:n,defaultProp:o??"",onChange:l,caller:Rn});return w.jsx(w0,{scope:e.__scopeAccordion,value:Ce.useMemo(()=>c?[c]:[],[c]),onItemOpen:d,onItemClose:Ce.useCallback(()=>s&&d(""),[s,d]),children:w.jsx(k0,{scope:e.__scopeAccordion,collapsible:s,children:w.jsx(b0,{...u,ref:t})})})}),JD=Ce.forwardRef((e,t)=>{const{value:n,defaultValue:o,onValueChange:l=()=>{},...s}=e,[u,c]=fi({prop:n,defaultProp:o??[],onChange:l,caller:Rn}),d=Ce.useCallback(h=>c((g=[])=>[...g,h]),[c]),p=Ce.useCallback(h=>c((g=[])=>g.filter(x=>x!==h)),[c]);return w.jsx(w0,{scope:e.__scopeAccordion,value:u,onItemOpen:d,onItemClose:p,children:w.jsx(k0,{scope:e.__scopeAccordion,collapsible:!0,children:w.jsx(b0,{...s,ref:t})})})}),[ej,ru]=nu(Rn),b0=Ce.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:o,dir:l,orientation:s="vertical",...u}=e,c=Ce.useRef(null),d=tt(c,t),p=qD(n),g=xl(l)==="ltr",x=Ee(e.onKeyDown,v=>{if(!GD.includes(v.key))return;const S=v.target,C=p().filter(V=>!V.ref.current?.disabled),E=C.findIndex(V=>V.ref.current===S),R=C.length;if(E===-1)return;v.preventDefault();let A=E;const N=0,F=R-1,B=()=>{A=E+1,A>F&&(A=N)},I=()=>{A=E-1,A<N&&(A=F)};switch(v.key){case"Home":A=N;break;case"End":A=F;break;case"ArrowRight":s==="horizontal"&&(g?B():I());break;case"ArrowDown":s==="vertical"&&B();break;case"ArrowLeft":s==="horizontal"&&(g?I():B());break;case"ArrowUp":s==="vertical"&&I();break}const W=A%R;C[W].ref.current?.focus()});return w.jsx(ej,{scope:n,disabled:o,direction:l,orientation:s,children:w.jsx(pp.Slot,{scope:n,children:w.jsx(Ve.div,{...u,"data-orientation":s,ref:d,onKeyDown:o?void 0:x})})})}),Ta="AccordionItem",[tj,mp]=nu(Ta),S0=Ce.forwardRef((e,t)=>{const{__scopeAccordion:n,value:o,...l}=e,s=ru(Ta,n),u=YD(Ta,n),c=hp(n),d=sr(),p=o&&u.value.includes(o)||!1,h=s.disabled||e.disabled;return w.jsx(tj,{scope:n,open:p,disabled:h,triggerId:d,children:w.jsx(WD,{"data-orientation":s.orientation,"data-state":P0(p),...c,...l,ref:t,disabled:h,open:p,onOpenChange:g=>{g?u.onItemOpen(o):u.onItemClose(o)}})})});S0.displayName=Ta;var C0="AccordionHeader",_0=Ce.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,l=ru(Rn,n),s=mp(C0,n);return w.jsx(Ve.h3,{"data-orientation":l.orientation,"data-state":P0(s.open),"data-disabled":s.disabled?"":void 0,...o,ref:t})});_0.displayName=C0;var id="AccordionTrigger",E0=Ce.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,l=ru(Rn,n),s=mp(id,n),u=XD(id,n),c=hp(n);return w.jsx(pp.ItemSlot,{scope:n,children:w.jsx(HD,{"aria-disabled":s.open&&!u.collapsible||void 0,"data-orientation":l.orientation,id:s.triggerId,...c,...o,ref:t})})});E0.displayName=id;var R0="AccordionContent",T0=Ce.forwardRef((e,t)=>{const{__scopeAccordion:n,...o}=e,l=ru(Rn,n),s=mp(R0,n),u=hp(n);return w.jsx(ZD,{role:"region","aria-labelledby":s.triggerId,"data-orientation":l.orientation,...u,...o,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});T0.displayName=R0;function P0(e){return e?"open":"closed"}var nj=x0,N0=S0,rj=_0,A0=E0,I0=T0;const ij=nj,O0=k.forwardRef(({className:e,...t},n)=>w.jsx(N0,{ref:n,className:Oe("border-b border-border last:border-b-0",e),...t}));O0.displayName=N0.displayName;const M0=k.forwardRef(({className:e,children:t,...n},o)=>w.jsx(rj,{className:"flex",children:w.jsxs(A0,{ref:o,className:Oe("flex flex-1 items-center justify-between py-3 text-left text-sm font-medium transition-all","hover:text-foreground/90","[&[data-state=open]>svg]:rotate-180",e),...n,children:[t,w.jsx(Xy,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));M0.displayName=A0.displayName;const D0=k.forwardRef(({className:e,children:t,...n},o)=>w.jsx(I0,{ref:o,className:Oe("overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down"),...n,children:w.jsx("div",{className:Oe("pb-4 pt-0",e),children:t})}));D0.displayName=I0.displayName;function oj(e){return Array.isArray(e)&&e.every(t=>typeof t=="object"&&t)}function qy(e){return e.filter(t=>t.type==="text").map(t=>typeof t.text=="string"?t.text:"").filter(Boolean).join(`
81
+
82
+ `)}function lj(e){if(e.type==="user"){const t=e.message.content;return typeof t=="string"?{role:"user",text:t}:oj(t)?{role:"user",text:qy(t),blocks:t}:{role:"user",text:""}}if(e.type==="assistant"){const t=e.message.content;return{role:"assistant",text:qy(t),blocks:t}}return null}function sj(e){const t=e.block.type,n=typeof e.block.name=="string"?e.block.name:"",o=typeof e.block.id=="string"?e.block.id:"",l=e.block.input,s=t==="tool_use"?`Tool Use: ${n||"Unknown"}`:t==="tool_result"?"Tool Result":`Block: ${t}`;return w.jsxs(Xa,{className:"border-muted/60",children:[w.jsx(Qa,{className:"py-3",children:w.jsxs(Ja,{className:"flex items-center gap-2 text-sm font-medium",children:[w.jsx(p0,{variant:"secondary",children:t}),w.jsx("span",{className:"truncate",children:s}),o?w.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:o}):null]})}),w.jsx(eu,{className:"pb-4 pt-0 text-xs",children:w.jsx("pre",{className:"max-h-64 overflow-auto rounded-md bg-muted/40 p-3 leading-relaxed",children:JSON.stringify(l??e.block,null,2)})})]})}function aj(e){if(!e?.length)return null;const t=e.filter(n=>["tool_use","tool_result","server_tool_use","mcp_tool_use"].includes(n.type));return t.length===0?null:w.jsx(ij,{type:"multiple",className:"w-full",children:t.map((n,o)=>{const s=(typeof n.id=="string"?n.id:"")||`${n.type}-${o}`;return w.jsxs(O0,{value:s,className:"border-none",children:[w.jsx(M0,{className:"py-2 text-sm",children:w.jsxs("span",{className:"flex items-center gap-2",children:[w.jsx(p0,{variant:"outline",children:n.type}),w.jsx("span",{className:"truncate",children:typeof n.name=="string"?n.name:"Tool"})]})}),w.jsx(D0,{children:w.jsx(sj,{block:n})})]},s)})})}function uj(e){const t=lj(e.event);if(!t)return null;const n=t.role==="user",o=Oe("max-w-[min(740px,100%)] rounded-2xl px-4 py-3 text-sm leading-relaxed shadow-sm",n?"bg-primary text-primary-foreground":"bg-card text-foreground border border-border");return w.jsx("div",{className:Oe("flex w-full",n?"justify-end":"justify-start"),children:w.jsxs("div",{className:"flex w-full max-w-[min(820px,100%)] flex-col gap-2",children:[w.jsx("div",{className:o,children:t.text?w.jsx(CO,{remarkPlugins:[LD],children:t.text}):w.jsx("span",{className:"text-muted-foreground",children:"…"})}),aj(t.blocks)]})})}function cj(e){const t=n=>{n.key==="Enter"&&(n.shiftKey||(n.preventDefault(),e.onSubmit()))};return w.jsxs("div",{className:"flex gap-2 rounded-xl border border-border bg-background p-2 shadow-sm",children:[w.jsx(Vd,{value:e.value,onChange:n=>e.onChange(n.target.value),onKeyDown:t,placeholder:"Ask Kode to help with your code… (@ to reference files)",className:"min-h-[48px] resize-none border-0 shadow-none focus-visible:ring-0",disabled:e.disabled}),w.jsx(kn,{className:"h-[48px] w-[48px] rounded-lg",size:"icon",onClick:e.onSubmit,disabled:e.disabled||!e.value.trim(),"aria-label":"Send",children:w.jsx(tS,{className:"h-4 w-4"})})]})}function fj(e){const t=Ce.useRef(null);Ce.useEffect(()=>{t.current?.scrollIntoView({block:"end",behavior:"smooth"})},[e.events.length]);const n=e.events.filter(o=>o.type==="user"||o.type==="assistant"||o.type==="result"||o.type==="log");return w.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[w.jsx(gd,{className:"flex-1",children:w.jsxs("div",{className:Oe("mx-auto flex w-full max-w-5xl flex-col gap-4 px-4 py-6"),children:[n.length===0?w.jsx("div",{className:"py-16 text-center text-sm text-muted-foreground",children:"Start a new conversation."}):n.map((o,l)=>w.jsx(uj,{event:o},`${o.type}-${l}`)),w.jsx("div",{ref:t})]})}),w.jsx("div",{className:"border-t border-border bg-background/80 p-4 backdrop-blur",children:w.jsxs("div",{className:"mx-auto w-full max-w-5xl",children:[w.jsx(cj,{value:e.input,onChange:e.onInputChange,onSubmit:e.onSend,disabled:e.disabled}),w.jsx("div",{className:"mt-2 text-center text-xs text-muted-foreground",children:"Press Enter to send · Shift+Enter for new line"})]})})]})}const gp=k.forwardRef(({className:e,type:t,...n},o)=>w.jsx("input",{type:t,className:Oe("flex h-10 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm","ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium","placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/20","disabled:cursor-not-allowed disabled:opacity-50",e),ref:o,...n}));gp.displayName="Input";function dj(e){return w.jsx("div",{className:"min-h-screen bg-background",children:w.jsx("div",{className:"mx-auto flex min-h-screen max-w-xl flex-col justify-center p-6",children:w.jsxs(Xa,{children:[w.jsx(Qa,{children:w.jsx(Ja,{children:"Connect to Kode Server"})}),w.jsxs(eu,{className:"grid gap-4",children:[w.jsx("div",{className:"text-sm text-muted-foreground",children:"Paste your daemon token to connect."}),w.jsx(gp,{value:e.token,onChange:t=>e.onTokenChange(t.target.value),placeholder:"Daemon token"}),w.jsx(kn,{onClick:e.onSave,children:"Save Token"})]})]})})})}function pj(e){return w.jsx("div",{className:"mx-auto w-full max-w-3xl p-4 md:p-8",children:w.jsxs(Xa,{children:[w.jsx(Qa,{children:w.jsx(Ja,{children:"Settings"})}),w.jsxs(eu,{className:"grid gap-4",children:[w.jsxs("div",{className:"grid gap-2",children:[w.jsx("div",{className:"text-sm font-medium",children:"Daemon token"}),w.jsx(gp,{value:e.token,onChange:t=>e.onTokenChange(t.target.value),placeholder:"Paste daemon token"}),w.jsx("div",{className:"text-xs text-muted-foreground",children:"Stored in sessionStorage as `kode.daemon.token`."})]}),w.jsx(yd,{}),w.jsx("div",{className:"flex items-center justify-end gap-2",children:w.jsx(kn,{variant:"destructive",onClick:e.onTokenClear,children:"Clear Token"})})]})]})})}function hj(){return pN()||fN()}function mj(){return typeof window<"u"&&window.location?window.location.origin:"http://127.0.0.1:3000"}function gj(){const[e,t]=Ce.useState(hj),[n,o]=Ce.useState("chat"),[l,s]=Ce.useState(!1),{workspaces:u,workspaceId:c,setWorkspaceId:d,loading:p}=QS({token:e}),{client:h,restartClient:g,connected:x}=YS({baseUrl:mj(),token:e,workspaceId:c}),v=aS({client:h,resetKey:c??"none",onNewSession:g});if(!e)return w.jsx(dj,{token:e,onTokenChange:t,onSave:()=>{const C=e.trim();C&&(Zf(C),t(C))}});const S=w.jsx(PP,{workspaces:u,workspaceId:c,onSelectWorkspace:C=>{d(C),g()},sessions:v.sessions,selectedSessionId:v.selectedSessionId,onSelectSession:C=>{v.selectSession(C),o("chat"),s(!1)},onNewSession:()=>{v.startNewSession(),o("chat"),s(!1)}});return w.jsxs("div",{className:"h-screen bg-background text-foreground",children:[w.jsxs("div",{className:"grid h-full grid-cols-1 md:grid-cols-[320px_1fr]",children:[w.jsx("div",{className:"hidden md:block",children:S}),w.jsxs("div",{className:"flex h-full min-h-0 flex-col",children:[w.jsxs("div",{className:"flex items-center gap-2 border-b border-border bg-background/80 px-3 py-2 backdrop-blur",children:[w.jsxs(eN,{open:l,onOpenChange:s,children:[w.jsx(tN,{asChild:!0,className:"md:hidden",children:w.jsx(kn,{variant:"ghost",size:"icon","aria-label":"Open sidebar",children:w.jsx(qb,{className:"h-4 w-4"})})}),w.jsx(Kw,{side:"left",className:"w-[320px] p-0",children:S})]}),w.jsxs("div",{className:"min-w-0 flex-1",children:[w.jsx("div",{className:"truncate text-sm font-semibold",children:v.selectedSessionId?"Chat":"New Session"}),w.jsx("div",{className:"truncate text-xs text-muted-foreground",children:p?"Loading workspaces…":u.find(C=>C.id===c)?.title??"—"})]}),w.jsxs(uN,{value:n,onValueChange:C=>{(C==="chat"||C==="shell"||C==="files"||C==="settings")&&o(C)},children:[w.jsxs(Hf,{className:"hidden sm:inline-flex",children:[w.jsxs(ir,{value:"chat",children:[w.jsx(fg,{className:"h-4 w-4"}),"Chat"]}),w.jsxs(ir,{value:"shell",children:[w.jsx(pg,{className:"h-4 w-4"}),"Shell"]}),w.jsxs(ir,{value:"files",children:[w.jsx(cg,{className:"h-4 w-4"}),"Files"]}),w.jsxs(ir,{value:"settings",children:[w.jsx(dg,{className:"h-4 w-4"}),"Settings"]})]}),w.jsxs(Hf,{className:"sm:hidden",children:[w.jsx(ir,{value:"chat","aria-label":"Chat",children:w.jsx(fg,{className:"h-4 w-4"})}),w.jsx(ir,{value:"shell","aria-label":"Shell",children:w.jsx(pg,{className:"h-4 w-4"})}),w.jsx(ir,{value:"files","aria-label":"Files",children:w.jsx(cg,{className:"h-4 w-4"})}),w.jsx(ir,{value:"settings","aria-label":"Settings",children:w.jsx(dg,{className:"h-4 w-4"})})]})]}),w.jsx("div",{className:Oe("h-2 w-2 rounded-full",x?"bg-emerald-500":"bg-muted-foreground/40"),"aria-label":"Connection status"}),w.jsx($P,{})]}),w.jsx("div",{className:"flex-1 min-h-0",children:n==="settings"?w.jsx(pj,{token:e,onTokenChange:C=>{Zf(C),t(C)},onTokenClear:()=>{dN(),t("")}}):n==="chat"?w.jsx(fj,{events:v.events,input:v.input,onInputChange:v.setInput,onSend:()=>{v.send()},disabled:!h||v.sending}):w.jsx("div",{className:"flex h-full items-center justify-center px-6 text-center text-sm text-muted-foreground",children:n==="shell"?"Shell UI is coming soon.":"File browser is coming soon."})})]})]}),w.jsx(JP,{request:v.permissionRequest,onAllowOnce:C=>{h&&(h.approveToolUse(C,{decision:"allow_once"}),v.clearPermissionRequest())},onAllowAlways:C=>{h&&(h.approveToolUse(C,{decision:"allow_always"}),v.clearPermissionRequest())},onDeny:(C,E)=>{h&&(h.denyToolUse(C,E),v.clearPermissionRequest())}})]})}function yj({children:e,...t}){return w.jsx(MP,{...t,children:e})}Fb.createRoot(document.getElementById("root")).render(w.jsx(Ce.StrictMode,{children:w.jsx(yj,{attribute:"class",defaultTheme:"system",enableSystem:!0,disableTransitionOnChange:!0,storageKey:"kode.webui.theme",children:w.jsx(gj,{})})}));